-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbrowser.js
More file actions
1 lines (1 loc) · 42.1 KB
/
Copy pathbrowser.js
File metadata and controls
1 lines (1 loc) · 42.1 KB
1
!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).$={})}(this,function(t){"use strict";function n(t){return t.length=0,t}function e(t){return void 0===t}function r(t){return Boolean(t.length)}function o(t){return null===t}function i(t){return!e(t)&&!o(t)}function s(t){return t}function c(t,n,e,r){if(!t)return;const o=t.length;if(i(e))for(let i=0;i<o;i++)n.call(e,t[i],i,t,o,r);else for(let e=0;e<o;e++)n(t[e],e,t,o,r);return t}function u(t,n=s,e=[],r,o){return i(r)?c(t,(t,s,c,u)=>{const a=n.call(r,t,s,e,c,u,o);i(a)&&e.push(a)}):c(t,(t,s,c,u)=>{const a=n(t,s,e,c,u,r,o);i(a)&&e.push(a)}),e}async function a(t,n,e,r){if(!t)return;const o=t.length;if(i(e))for(let i=0;i<o;i++)await n.call(e,t[i],i,t,o,r);else for(let e=0;e<o;e++)await n(t[e],e,t,o,r);return t}async function f(t,n=s){const e=[];return await a(t,async(t,r,o)=>{const s=await n(t,r,e,o);i(s)&&e.push(s)}),e}const{sign:l}=Math;function h(t){return-1===l(t)}function g(t,n,e,r){let o=t;for(;o<n;)r.push(o),o+=e;return r}function p(t,n,e,r){let o=t;for(;o>n;)r.push(o),o-=e;return r}function d(t){return Boolean(t)}function m(t,n=d,e){if(!t)return;const r=t.length;if(r){for(let o=0;o<r;o++)if(!1===n(t[o],o,t,r,e))return!1;return!0}}function y(t){return function(n,...e){return e?.length?t(n)&&m(e,t):t(n)}}const b=y(Array.isArray);const w=Reflect.construct;function A(t,n=[],e){const r=b(n)?n:[n];return e?w(t,r,e):w(t,r)}function v(t){return b(t)&&t||i(t)&&[t]||[]}function C(t){return t.flat(1/0)}function x(t,n){return t.forEach(n),t}function I(...t){const n=A(Map),e=[];return c(t,(t,e)=>{c(t,(t,r)=>{let o=n.get(t);if(o){if(o.parentIndex===e)return;o.count++}else o={count:1,parentIndex:e,child:t},n.set(t,o)})}),x(n,t=>{1===t.count&&0===t.parentIndex&&e.push(t.child)}),e}function T(t,n=1,e=t.length){return t.splice(n,e)}function E(t,n,e){if(!t)return;const r=t.length;for(let o=r-1;o>=0;o--)n(t[o],o,t,r,e);return t}async function O(t,n){if(!t)return;const e=t.length;for(let r=e-1;r>=0;r--)await n(t[r],r,t,e);return t}async function M(t,n,e){if(!t)return;const r=t.length;for(let o=0;o<r;o++)if(!1===await n(t[o],o,t,r,e))return!1;return!0}function j(t,n,e=[],r){return c(t,(t,o,i,s)=>{!0===n(t,o,e,i,s,r)&&e.push(t)}),e}async function S(t,n,e=[],r){return await a(t,async(t,o,i,s)=>{!0===await n(t,o,e,i,s,r)&&e.push(t)}),e}function F(t){return t?n=>n?.constructor===t||!1:()=>!1}const B=F(globalThis.Buffer),R=y(B);function $(t,...n){return globalThis.Buffer?Buffer.isBuffer?Buffer.isBuffer(t)&&(!n?.length||m(n,Buffer.isBuffer)):R(t,...n):Error("Buffer is not available in this environment")}const N=F(Date),k=y(N),L=t=>!!i(t)&&"Object("===t.constructor.toString().trim().slice(9,16),U=F(RegExp),P=y(U);function D(t){return t?.constructor}function q(t){return D(t)?.name}const z=/Array/;function W(t){if(t){const n=q(t);if(z.test(n)&&"Array"!==n)return!0}return!1}const K=Object.keys;function V(t){if(t)return K(t)}function Z(t,n){if(t===n)return!0;if(null===t||null===n||void 0===t||void 0===n)return!1;if(typeof t!=typeof n)return!1;if($(t))return $(n)&&t.equals(n);if(k(t))return k(n)&&t.getTime()===n.getTime();if(P(t))return P(n)&&t.source===n.source&&t.flags===n.flags;if(b(t)||W(t))return t.length===n?.length&&m(t,(t,e)=>Z(t,n[e]));if(L(t)){if(!L(n))return!1;const e=V(t);return e.length===V(n).length&&m(e,e=>Z(t[e],n[e]))}return!1}const H=Math.max;function _(t,n,e=[],r,o){return i(r)?c(t,(t,i,s,c)=>{e[i]=n.call(r,t,i,e,s,c,o)}):c(t,(t,r,i,s)=>{e[r]=n(t,r,e,i,s,o)}),e}async function G(t,n,e){if(!t)return;const r=[],o=t.length;if(e)for(let i=0;i<o;i++)r[i]=n.call(e,t[i],i,r,o);else for(let e=0;e<o;e++)r[e]=n(t[e],e,r,o);return Promise.all(r)}async function J(t,n){const e=[];return await a(t,async(t,r,o)=>{e[r]=await n(t,r,e,o)}),e}function Q(t,n){return t-n}function X(t,n){return n-t}const{floor:Y,random:tt}=Math;function nt(t,n=0){return Y(tt()*(t-n))+n}const et=Array.from;function rt(t,n,e){if(i(t))return et(t,n,e)}function ot(t,n=t.length){if(t.length<=1)return rt(t);const e=rt(t);let r,o,i=0;for(;i<n;)r=nt(e.length-1,0),o=e[i],e[i]=e[r],e[r]=o,i++;return e}const it=Math.min;function st(t,n,e){return e.indexOf(t)===n}function ct(t,n,e){return t!==e[n-1]}function ut(t,n){return n?t.filter(ct):t.filter(st)}function at(t){return($(t)||t?.fill)&&t.fill(0),t}const ft=t=>!!i(t)&&t instanceof Function,lt=F(Number),ht=y(lt);const gt=y(F(String));function pt(t,n){const e=D(t);return e&&e===n||!1}function dt(t){return n=>{const e=q(n);return e&&e===t||!1}}const mt=Object.assign;function yt(t,n){if(L(n))mt(t,n);else if(ft(n)){const e=n.name;e?t[e]=n:mt(t,n)}else(gt(n)||ht(n))&&(t[n]=n);return t}function bt(t={},...n){const e=n.length;for(let r=0;r<e;r++)yt(t,n[r]);return t}function wt(t,n){if(L(n))mt(t.prototype,n);else if(ft(n)){const e=n.name;e&&(t.prototype[e]=n)}else if(pt(n)){const e=n.constructor?.name;e&&(t.prototype[e]=n)}else(gt(n)||ht(n))&&(t.prototype[n]=n);return t}function At(t,n,e,r,o){if(t[o]===r)return!0}function vt(t,n,e,r){const o=t[e],i=n[e];return o===i&&r?r(t,n,e):i?o?o<i?1:o>i?-1:0:1:-1}function Ct(t,n="id",e){return t.sort((t,r)=>vt(t,r,n,e))}function xt(t,n,e,r){const o=t[e],i=n[e];return o===i&&r?r(t,n,e):i?o?o<i?-1:o>i?1:0:-1:1}function It(t,n="id",e){return t.sort((t,r)=>xt(t,r,n,e))}function Tt(t,n){if(t)return gt(n)?t[n]:_(n,n=>t[n])}function Et(t,n,e,r){const o=t[e],i=n[e];return o===i&&r?r(t,n,e):o.localeCompare(i)}function Ot(t,n,e,r){const o=t[e],i=n[e];return o===i&&r?r(t,n,e):i.localeCompare(o)}function Mt(t){return n=>!!i(n)&&t.test(n)}const jt=Mt(/\.css$/),St=Mt(/\.html$/),Ft=Mt(/\.js$/),Bt=Mt(/\.json$/);const Rt=async(t,n,e,r)=>{if(!t)return;const o=V(t);return i(e)?await a(o,(i,s,c,u)=>n.call(e,t[i],i,t,u,o,r)):await a(o,(e,i,s,c)=>n(t[e],e,t,c,o,r)),t};function $t(t,n,e,r){if(!t)return;const o=V(t);return i(e)?c(o,(o,i,s,c)=>{n.call(e,t[o],o,t,c,s,r)}):c(o,(e,o,i,s)=>{n(t[e],e,t,s,i,r)}),t}const Nt=F(Set),kt=y(Nt);function Lt(t,n){if(kt(t)){for(const e of t)n(e,t);return t}for(const[e,r]of t)n(r,e,t);return t}const Ut=dt("GeneratorFunction"),Pt=y(Ut);async function Dt(t,n,e){if(kt(t)){for(const e of t)await n(e,t);return t}if(Pt(t))for await(const r of t(...e))await n(r,t);for(const[e,r]of t)await n(r,e,t);return t}const qt=dt("AsyncFunction"),zt=y(qt);function Wt(t,n,e,r,o,s){return(c,u,a,f,l)=>{let h;const g=zt(u);if(i(c)&&u)return h=b(c)?g?n:t:L(c)||ft(c)?g?r:e:o?g?s:o:Pt(c)?s:g?r:e,h(c,u,a,f,l)}}const Kt=Wt(c,a,$t,Rt,Lt,Dt);class Vt{constructor(t){this.addChainMethod(t)}addChainMethod(t){const n=this;Kt(t,(t,e)=>{n[e]=function(...e){return this.value=t.call(n,n.value,...e),n}})}setValue(t){return this.value=t,this}done(){const t=this.value;return this.value=null,t}value=null}class Zt{list=A(Map);remove(t){clearTimeout(t),this.list.delete(t)}has(t){return this.list.has(t)}get(t){return this.list.get(t)}set(t,n){const e=this,r=setTimeout(()=>{t(),e.remove(r)},n);return this.list.set(r,!0),r}clear(){const t=this;t.list.forEach(n=>{t.remove(n)})}}const Ht=A(Zt);function _t(t,n){return Ht.set(t,n)}const Gt=Reflect.apply;function Jt(t,n,e){if(ft(t))return Gt(t,n,e)}function Qt(t,n=[]){const e=D(t);return e===Function&&"function"===e.name?function(){}:A(e,n)}function Xt(t,n=s,e){const r=e||Qt(t);if(b(t)||kt(t)){const e=r.push||r.add,o=e&&e.bind(r);for(const e of t){o(n(e,r,t))}return r}const o=ft(r.set);for(const[e,i]of t){const s=n(i,e,r,t);o?r.set(e,s):r[e]=s}return r}async function Yt(t,n=s,e,r){if(Pt(t)){const e=[];for await(const o of t(...r))e.push(await n(o,e,t));return e}const o=e||Qt(t);if(b(t)||kt(t)){const e=o.push||o.add,r=e&&e.bind(o);for(const e of t){r(await n(e,o,t))}return o}const i=ft(o.set);for await(const[e,r]of t){const s=await n(r,e,o,t);i?o.set(e,s):o[e]=s}return o}async function tn(t,n,e={}){if(t)return await Rt(t,async(t,r,o,i,s)=>{e[r]=await n(t,r,e,o,i,s)}),e}function nn(t,n,e={},r,o){if(t)return i(r)?$t(t,(t,i,s,c,u)=>{e[i]=n.call(r,t,i,e,s,c,u,o)}):$t(t,(t,r,i,s,c)=>{e[r]=n(t,r,e,i,s,c,o)}),e}const en=Wt(_,J,nn,tn,Xt,Yt);async function rn(t,n){if(!t)return;return M(V(t),(e,r,o,i)=>n(t[e],e,t,i,o))}function on(t,n){if(!t)return;return m(V(t),(e,r,o,i)=>n(t[e],e,t,i,o))}function sn(t,n=s){if(b(t)||kt(t))for(const e of t){if(!1===n(e,t))return!1}else for(const[e,r]of t){if(!1===n(r,e,t))return!1}return!0}async function cn(t,n=s,e){if(Pt(t))for await(const r of t(...e)){if(!1===await n(r,t))return!1}else if(b(t)||kt(t))for(const e of t){if(!1===await n(e,t))return!1}else for(const[e,r]of t){if(!1===await n(r,e,t))return!1}return!0}const un=Wt(m,M,on,rn,sn,cn);const an=/\.|\[/,fn=/]/g;function ln(t){return t.replace(fn,"").split(an)}function hn(t,n){if(!n)return!1;let e=n;return m(b(t)?t:ln(t),t=>(e=e[t],i(e))),e}const gn=Function.prototype;function pn(t){return gn.call.bind(t)}const dn=Object.getOwnPropertyNames,mn=Object.getOwnPropertyDescriptor,yn=Object.defineProperty,bn=pn(Object.hasOwnProperty),wn=Object.is;const{random:An}=Math;const{round:vn,floor:Cn,ceil:xn}=Math;function In(t,n,e){if(!e)return t(n);const r=10**e;return t(n*r)/r}const{sign:Tn}=Math;function En(t){return 0===t}async function On(t,n=s,e={}){return await Rt(t,async(t,r,o,s,c)=>{const u=await n(t,r,e,o,s,c);i(u)&&(e[r]=u)}),e}function Mn(t,n=s,e={}){return $t(t,(t,r,o,s,c)=>{const u=n(t,r,e,o,s,c);i(u)&&(e[r]=u)}),e}const jn=Object.assign;const Sn=Object.assign;function Fn(t,n,e={}){return $t(t,(t,r,o,i,s)=>{!0===n(t,r,e,o,i,s)&&(e[r]=t)}),e}async function Bn(t,n,e={}){return await Rt(t,async(t,r,o,i,s)=>{!0===await n(t,r,e,o,i,s)&&(e[r]=t)}),e}const Rn=Object.entries;const $n=Object.hasOwn;const Nn=/[()[\]{}*+?^$|#.,/\\\s-]/g;function kn(t){return t.replace(Nn,"\\$&")}function Ln(t,n){return n?Ln(_(t,kn)):RegExp(t.join("|"))}function Un(t){if(!t)return;if(L(t))return V(t).length;const n=t.length;if(i(n))return n;const e=t.size;return i(n)?e:V(t).length}const Pn=(t,n)=>{const e={};return c(t,(t,r)=>{e[t]=n[r]}),e},Dn=/[ _-]+/g;const qn=/[ _-]+/g,zn=/[ ]+/g;const Wn=/[ _-]+/g,Kn=/[ ]+/g;const Vn=/[ _-]+/g;const Zn=/[ _-]+/g;function Hn(t,n=1){return t.substring(n)}const _n=/%(?![\da-f]{2})/gi,Gn=/&/g,Jn=/</g,Qn=/>/g,Xn=/"/g;function Yn(t){return decodeURIComponent(t.replace(_n,()=>"%25"))}function te(t){return t.replace(Gn,"&").replace(Jn,"<").replace(Qn,">").replace(Xn,""")}const ne=/[̀-ͯ]/g,ee=/[^a-z0-9]+/g,re=/^-+|-+$/g;const oe=/\S+/g,ie=/\w+/g;const se=/\w+/g;function ce(t){return t[0].toUpperCase()}function ue(t){return ce(t)+Hn(t)}function ae(t){return ce(t)+Hn(t).toLowerCase()}const fe=F(Map),le=y(fe);function he(t){return!i(t)}function ge(t,n){if(he(t)||ft(t))return!1;if(b(t)||W(t))return!0;const e=t.length;if(he(e)||!ht(e)||e<0)return!1;if(n){const n=V(t);return!!n&&un(n,(t,n)=>n>=0&&ht(n))}return!0}const pe=F(BigInt),de=y(pe),me=F(Boolean),ye=y(me),be=F(ArrayBuffer),we=y(be);const Ae=RegExp("Array|ArrayBuffer|Boolean|DataView|Date|Map|Object|Boolean|Number|BigInt|String|RegExp|Set|Error|EvalError|RangeError|ReferenceError|SyntaxError|TypeError|URIError");const ve=F(Error),Ce=y(ve);function xe(t){return!1===t}const Ie=F(Float32Array),Te=y(Ie),Ee=F(Float64Array),Oe=y(Ee),{isInteger:Me}=Number,je=Me,Se=F(Int16Array),Fe=y(Se),Be=F(Int32Array),Re=y(Be),$e=F(Int8Array),Ne=y($e);function ke(t){return!!t&&t instanceof Promise}function Le(t){return!!t&&(ke(t)||zt(t)||Pt(t))}const{isSafeInteger:Ue}=Number,Pe=Ue;const De=F(Uint16Array),qe=y(De),ze=F(Uint32Array),We=y(ze),Ke=F(Uint8Array),Ve=y(Ke),Ze=F(Uint8ClampedArray),He=y(Ze),_e=F(WeakMap),Ge=y(_e);const Je=void 0!==globalThis.Deno,Qe=void 0!==globalThis.process&&process.versions&&process.versions.node;function Xe(t,n=!0){return Boolean(t)&&n}function Ye(t,n){return xe(Z(t,n))}const tr=JSON,nr=tr.parse;function er(t,n){if(gt(t))return nr(t,n)}const rr=tr.stringify;function or(t,n,e){const r=globalThis.options||e;let o;return ft(r)?o=`${r.name} : ${r.constructor.name}`:r&&(o=`${r.title||r.method.name} -> ${r.file}`),new Error(`Test Failed: ${o}\n\t\t\tResult: ${rr(t)}\n\t\t\tExpected: ${rr(n)}`,r)}async function ir(t){return ke(t)||Le(t)?await t:t}const sr=/^class[\s{]/;function cr(t){return ft(t)&&!function(t){return"function"==typeof t&&sr.test(Function.prototype.toString.call(t))}(t)}async function ur(t,n,e){const r=await ir(t);if(r===n)return!0;if(cr(n)){return!1!==await n(r,e)||or(r,n,e)}const o=await ir(n);return!Ye(r,o)||or(r,o,e)}const ar=globalThis.structuredClone;async function fr(t,n=s,e,r){if(Pt(t)){const e=[];for await(const o of t(...r)){const r=await n(o,e,t);i(r)&&e.push(r)}return e}const o=e||Qt(t);if(b(t)||kt(t)){const e=o.push||o.add,r=e&&e.bind(o);for(const e of t){const s=await n(e,o,t);i(s)&&r(s)}return o}const c=ft(o.set);for await(const[e,r]of t){const s=await n(r,e,o,t);i(s)&&(c?o.set(e,s):o[e]=s)}return o}function lr(t,n=s,e){const r=e||Qt(t);if(b(t)||kt(t)){const e=r.push||r.add,o=e&&e.bind(r);for(const e of t){const s=n(e,r,t);i(s)&&o(s)}return r}const o=ft(r.set);for(const[e,s]of t){const c=n(s,e,r,t);i(c)&&(o?r.set(e,c):r[e]=c)}return r}const hr=Wt(u,f,Mn,On,lr,fr);function gr(t,n){return new Promise(e=>{setTimeout(()=>e(n),t)})}const pr=globalThis.requestAnimationFrame;function dr(t,n=s,e){const r=e||Qt(t);if(b(t)||kt(t)){const e=r.push||r.add,o=e&&e.bind(r);for(const e of t){!0===n(e,r,t)&&o(e)}}else{const e=ft(r.set);for(const[o,i]of t){!0===n(i,o,r,t)&&(e?r.set(o,i):r[o]=i)}}return r}async function mr(t,n=s,e,r){if(Pt(t)){const e=[];for await(const o of t(...r))!0===await n(o,e,t)&&e.push(o);return e}const o=e||Qt(t);if(b(t)||kt(t)){const e=o.push||o.add,r=e&&e.bind(o);for(const e of t){!0===await n(e,o,t)&&r(e)}}else{const e=ft(o.set);for await(const[r,i]of t){!0===await n(i,r,o,t)&&(e?o.set(r,i):o[r]=i)}}return o}const yr=Wt(j,S,Fn,Bn,dr,mr);function br(t){return(...n)=>e=>{let r=e;return t(n,t=>{r=t(r)}),r}}const wr=br(c),Ar=br(E);function vr(t){return(...n)=>async e=>{let r=e;return await t(n,async t=>{r=await t(r)}),r}}const Cr=vr(a),xr=vr(O);const Ir=Mt(/\./);class Tr{list=A(Map);remove(t){clearInterval(t),this.list.delete(t)}has(t){return this.list.has(t)}get(t){return this.list.get(t)}set(t,n){const e=setInterval(()=>{t()},n);return this.list.set(e,!0),e}clear(){const t=this;t.list.forEach(n=>{t.remove(n)})}}const Er=A(Tr);class Or{static models=new Map;constructor(t,n){i(n)?(bt(this,n),this.modelName=t,Or.models.set(t,n)):bt(this,t)}delete(t){Or.models.delete(t||this.modelName)}set(t){t&&(this.modelName=t),Or.models.set(t||this.modelName,this)}has(t){return Or.models.has(t||this.modelName)}get(t){return Or.models.get(t||this.modelName)}}function Mr(t){return new Promise(t)}class jr{source;constructor(t={}){if(this.source=t,null===t||"object"!=typeof t)return t;$t(t,n=>{t[n]=new jr(t[n])}),this.data=new Proxy(t,{get:(t,n)=>(console.log(t,n,t[n]),t[n]),set:(t,n,e)=>(console.log(t,n,t[n]),t[n]=new jr(e),!0)})}}class Sr{totalActive=0;freed=[];totalFree=0;get(){let t=this.freed.shift();return i(t)?this.totalFree--:(t=this.totalActive,this.totalActive++),t}free(t){this.freed.push(t),this.totalFree++;const n=this.totalActive>0,e=this.totalActive===this.totalFree;n&&e&&this.reset()}reset(){this.totalActive=0,this.freed.length=0,this.totalFree=0}}const Fr=A(Sr),Br=globalThis.crypto,Rr="function"==typeof Br?.randomUUID;class $r{constructor(t=new Map){this.items=t,this.isMap=t instanceof Map}getItem(t){return this.isMap?this.items.get(t):this.items[t]}get(...t){return this.getItem(...t)}hasItem(t){return this.isMap?this.items.has(t):i(this.items[t])}has(...t){return this.hasItem(...t)}setItem(t,n){return this.isMap?this.items.set(t,n):this.items[t]=n,this}set(...t){return this.setItem(...t)}clear(){return this.isMap?this.items.clear():this.items=Qt(this.items),this}removeItem(t){return this.isMap?this.items.delete(t):this.items[t]=null,this}remove(...t){return this.removeItem(...t)}}function Nr(t){return new $r(t)}function kr(t){return i(t)?kr[t]:V(kr)}const Lr=globalThis.navigator?.userAgentData;if(Lr)$t(Lr,(t,n)=>{ye(t)&&t&&(kr[n]=t)}),c(Lr.brands,t=>{kr[t.brand]=t.version});else if(globalThis.navigator?.userAgent){let t=globalThis.navigator.userAgent.toLowerCase();t=t.replace(/_/g,"."),t=t.replace(/[#_,;()]/g,"");c(t.split(/ |\//),t=>{kr[t]=!0})}function Ur(t,n){return t.appendChild(n),n}function Pr(t,n){return b(n)?Pn(n,_(n,n=>t.getAttribute(n))):($t(n,(n,e)=>{t.setAttribute(e,n)}),t)}const Dr=(t,n)=>`color:${t};background:${n};`,qr={alert:Dr("#fff","#f44336"),important:Dr("#fff","#E91E63"),notify:Dr("#fff","#651FFF"),warning:Dr("#000","#FFEA00")};function zr(t,n,e={}){let r=`${t}=${encodeURIComponent(n)}`;const{maxAge:o,expires:i,path:s="/",domain:c,sameSite:u,secure:a}=e;void 0!==o&&(r+=`; Max-Age=${o}`),i&&(r+=`; Expires=${i.toUTCString()}`),s&&(r+=`; Path=${s}`),c&&(r+=`; Domain=${c}`),u&&(r+=`; SameSite=${u}`),a&&(r+="; Secure"),document.cookie=r}function Wr(t,n,e,r){return t.addEventListener(n,e,r),t}const Kr=globalThis.location?.protocol,Vr="http:"===Kr?"ws":"wss",Zr=globalThis.location?.hostname,Hr={hardware:{cores:globalThis.navigator?.hardwareConcurrency},host:{name:Zr,protocol:Kr,protocolSocket:Vr}},_r=/^.[\w_-]+$/,Gr=/^[A-Za-z]+$/,Jr=/\s/,Qr=document.getElementsByClassName.bind(document),Xr=document.getElementsByTagName.bind(document),Yr=document.getElementById.bind(document),to=document.querySelector.bind(document),no=document.querySelectorAll.bind(document);const eo=document.createElement.bind(document);function ro(t){if("undefined"==typeof document)return!1;const n=document.readyState;return"interactive"===n||"completed"===n||"complete"===n?!t||t():(t&&Wr(document,"DOMContentLoaded",t),!1)}function oo(){bt(Hr,{bodyHeight:document.body.offsetHeight,bodyWidth:document.body.offsetWidth,windowHeight:window.innerHeight,windowWidth:window.innerWidth})}function io(){oo()}"undefined"!=typeof window&&(ro(io),Wr(window,"load",io,!0),Wr(window,"resize",io,!0));const so=document.createDocumentFragment.bind(document);t.hasLocal=void 0,function(n){try{n().removeItem("TESTING"),t.hasLocal=!0}catch(n){t.hasLocal=!1}}(()=>localStorage);class co{constructor(t){this.hasLocal&&(this.local=localStorage),this.storage=Nr(t)}hasLocal=t.hasLocal;setItem(t,n){return this.hasLocal&&this.local.setItem(t,gt(n)?n:rr(n)),this.storage.setItem(t,n)}getItem(t){const n=this.storage.getItem(t);return i(n)?n:!i(n)&&this.hasLocal?this.local.getItem(t):void 0}clear(){this.hasLocal&&this.local.clear(),this.storage.clear()}removeItem(t){this.hasLocal&&this.local.removeItem(t),this.storage.removeItem(t)}}t.BrowserStorage=co,t.Chain=Vt,t.Emitter=class{constructor(){this.listeners=new Map}on(t,n){const e=this.listeners.get(t);return e?e.push(n):this.listeners.set(t,[n]),this}once(t,n){const e=(...r)=>{this.off(t,e),n(...r)};return this.on(t,e)}off(t,n){const e=this.listeners.get(t);if(!e)return this;if(!n)return this.listeners.delete(t),this;const r=e.filter(t=>t!==n);return r.length?this.listeners.set(t,r):this.listeners.delete(t),this}emit(t,...n){const e=this.listeners.get(t);if(!e)return!1;for(const t of[...e])t(...n);return!0}clear(){this.listeners.clear()}},t.Intervals=Tr,t.LRUCache=class{constructor(t=100){this.capacity=t,this.store=new Map}get(t){if(!this.store.has(t))return;const n=this.store.get(t);return this.store.delete(t),this.store.set(t,n),n}set(t,n){if(this.store.has(t))this.store.delete(t);else if(this.store.size>=this.capacity){const t=this.store.keys().next().value;this.store.delete(t)}return this.store.set(t,n),this}has(t){return this.store.has(t)}delete(t){return this.store.delete(t)}clear(){this.store.clear()}get size(){return this.store.size}},t.Model=Or,t.Store=jr,t.Timers=Zt,t.UniqID=Sr,t.VirtualStorage=$r,t.add=function(t,n){return t+n},t.after=function(t,n){let e,r=t;return(...t)=>(null!==r&&r--,r<=0&&(e=n(...t),r=null),e)},t.append=Ur,t.apply=Jt,t.arrayToRegex=Ln,t.arraysToObject=function(t,n){const e={};return c(t,(t,r)=>{e[n[r]]=t}),e},t.ary=function(t,n){return(...e)=>t(...e.splice(0,n))},t.assert=function(t,n,e){if(Le(t)||Le(n)||ke(t)||ke(n))return ur(t,n,e);if(t===n)return!0;if(cr(n)){return!1!==n(t,e)||or(t,n,e)}return!Ye(t,n)||or(t,n,e)},t.assertAsync=ur,t.assign=bt,t.assignToClass=wt,t.assignToObject=yt,t.before=function(t,n){let e,r=t;return(...t)=>(null!==r&&r--,r>=1?e=n(...t):r=null,e)},t.bindAll=function(t,n,e){const r=en(t,t=>ft(t)?t.bind(n):t);return e?bt(e,r):r},t.browserStorage=function(t){return new co(t)},t.cacheNativeMethod=pn,t.calcProgress=function(t,n){return 0!==t&&(0===n?0:n/t*100)},t.camelCase=function(t){let n="";return t.replace(Dn," ").trim().split(" ").forEach((t,e)=>{n+=0===e?t.toLowerCase():t[0].toUpperCase()+t.slice(1).toLowerCase()}),n},t.ceilTo=function(t,n=0){return In(xn,t,n)},t.chain=function(t){return A(Vt,[t])},t.chunk=function(t,n=1){const e=[];let r=0;return t.forEach((t,o)=>{o%n||(e.push([]),o&&r++),e[r].push(t)}),e},t.chunkString=function(t,n){return t.match(new RegExp(`(.|[\r\n]){1,${n}}`,"g"))},t.clamp=function(t,n,e){return t<n?n:t>e?e:t},t.clear=function(t){if(t){if($(t))return at(t);if(b(t))return n(t);t.clear?t.clear():t.length&&(t.length=0)}return t},t.clearArray=n,t.clearBuffer=at,t.clearIntervals=function(){Er.clear()},t.clearTimers=function(){Ht.clear()},t.clone=function(t){return ar(t)},t.cloneArray=function(t){return t.slice()},t.cloneType=Qt,t.cnsl=(t,n)=>{const e=gt(t)?t:rr(t);if("alert"===n||"warning"===n)return console.trace(`%c${e}`,`${qr[n]}font-size:13px;padding:2px 5px;border-radius:2px;`);console.log(`%c${e}`,`${qr[n]}font-size:13px;padding:2px 5px;border-radius:2px;`)},t.cnslTheme=(t,n,e)=>{qr[t]=Dr(n,e)},t.compact=function(t){if(L(t)){const n=V(t),e=n.length,r={};for(let o=0;o<e;o++){const e=n[o],i=t[e];Xe(i)&&(r[e]=i)}return r}return t.filter(t=>Xe(t))},t.compactKeys=function(t){const n=[];return $t(t,(t,e)=>{i(t)&&n.push(e)}),n},t.compactMap=hr,t.compactMapArray=u,t.compactMapAsyncArray=f,t.compactMapAsyncObject=On,t.compactMapObject=Mn,t.concurrent=async function(t,n,...e){const r=t.length,o=[];if(n)for(let i=0;i<r;i++){const r=t[i];o[i]=t[i].call(n,...e,i,o,r)}else for(let n=0;n<r;n++){const r=t[n];o[n]=t[n](...e,n,o,r)}return Promise.all(o)},t.concurrentEach=async function(t,n,e){if(t)return b(t)?G(t,n,e):void 0},t.concurrentEachArray=G,t.concurrentStatus=function(t,n,e){const r=t.length,o=[];for(let i=0;i<r;i++)o[i]=n(t[i],i,t,r,e);return Promise.allSettled(o)},t.cond=function(t){return function(...n){for(const[e,r]of t)if(e.apply(this,n))return r.apply(this,n)}},t.consolidate=function(...t){return jn({},...t)},t.constant=function(t){return()=>t},t.construct=A,t.copy=function(t){if(t)return Sn({},t)},t.copyToClipboard=function(t){return navigator.clipboard.writeText(t)},t.countBy=function(t,n){const e={};let r;return c(t,t=>{r=n(t),e[r]||(e[r]=0),e[r]++}),e},t.countKey=function(t,n){let e=0;return c(t,t=>{t[n]&&e++}),e},t.countWithoutKey=function(t,n){let e=0;return c(t,t=>{t[n]||e++}),e},t.createFragment=so,t.curry=function(t,e=t.length){const r=[],o=(...i)=>{if(r.push(...i),r.length===e){const e=t(...r);return n(r),e}return o};return o},t.curryRight=function(t,e=t.length){const r=[],o=(...i)=>{if(r.unshift(...i),r.length===e){const e=t(...r);return n(r),e}return o};return o},t.debounce=function(t,n){function e(...t){!1!==e.id&&Ht.remove(e.id),e.id=_t(()=>{e.callable(...t),e.id=!1},n)}return e.id=!1,e.callable=t.bind(e),e.clear=()=>{!1!==e.id&&(Ht.remove(e.id),e.id=!1)},e},t.deduct=function(t){return t-1},t.defProp=yn,t.defaults=function(t,...n){const e={...t},r=n.length;for(let t=0;t<r;t++){const r=n[t],o=Object.keys(r),i=o.length;for(let t=0;t<i;t++){const n=o[t];void 0===e[n]&&(e[n]=r[n])}}return e},t.delay=gr,t.difference=I,t.divide=function(t,n){return t/n},t.download=function(t,n,e="application/octet-stream"){const r=t instanceof Blob?t:new Blob([t],{type:e}),o=URL.createObjectURL(r),i=document.createElement("a");i.href=o,i.download=n,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL(o)},t.drop=T,t.dropRight=(t,n=1,e=t.length)=>T(t,0,e-n),t.each=Kt,t.eachArray=c,t.eachAsyncArray=a,t.eachAsyncObject=Rt,t.eachObject=$t,t.eachRight=E,t.eachRightAsync=O,t.ensureArray=v,t.ensureBuffer=function(t){return globalThis.Buffer?$(t)&&t||i(t)&&Buffer.from(t)||Buffer.alloc(0):Error("Buffer is not available in this environment")},t.equalsZero=En,t.escapeRegex=kn,t.escapeRegexRegex=Nn,t.eventAdd=Wr,t.eventRemove=function(t,n,e,r){return t.removeEventListener(n,e,r),t},t.every=un,t.everyArg=function(...t){return zt(t[0])?async function(...n){return un(t,async t=>un(n,async n=>t(n)))}:function(...n){return un(t,t=>un(n,n=>t(n)))}},t.everyArray=m,t.everyAsyncArray=M,t.everyAsyncObject=rn,t.everyObject=on,t.extendClass=function(t,...n){const e=n.length;for(let r=0;r<e;r++)wt(t,n[r]);return t},t.filter=yr,t.filterArray=j,t.filterAsyncArray=S,t.filterAsyncObject=Bn,t.filterObject=Fn,t.findIndex=function(t,n,e="id"){const r=t.findIndex((t,r)=>At(t,0,0,n,e));return-1!==r&&r},t.findIndexCache=At,t.findItem=function(t,n,e="id"){const r=t.find((t,r)=>At(t,0,0,n,e));return-1!==r&&r},t.first=function(t,n){return n?t.slice(0,n):t[0]},t.flatten=function(t,n=1){if(!t)return;let e=t;for(let t=0;t<n;t++)e=e.reduce((t,n)=>t.concat(v(n)),[]);return e},t.flattenDeep=C,t.floorTo=function(t,n=0){return In(Cn,t,n)},t.flow=wr,t.flowAsync=Cr,t.flowAsyncRight=xr,t.flowRight=Ar,t.forCompactMap=function(t,n){const e=Qt(t),r=e.push||e.add;if(r&&ft(r)){const o=r.bind(e);t.forEach(t=>{const r=n(t,e);i(r)&&o(r)})}else ft(e.set)?t.forEach((t,r)=>{const o=n(t,r,e);i(o)&&e.set(r,o)}):t.forEach((t,r)=>{const o=n(t,r,e);i(o)&&(e[r]=o)});return e},t.forEach=x,t.forEachAsync=async function(t,n){const e=[],r=[];let o=0;t.forEach((t,n)=>{e[o]=t,r[o]=t,o++});for(let t=0;t<o;t++)await n(e[t],r[t]);return t},t.forMap=function(t,n){const e=Qt(t),r=e.push||e.add;if(r&&ft(r)){const o=r.bind(e);t.forEach(t=>{const r=n(t,e);o(r)})}else ft(e.set)?t.forEach((t,r)=>{const o=n(t,r,e);e.set(r,o)}):t.forEach((t,r)=>{const o=n(t,r,e);e[r]=o});return e},t.forOf=Lt,t.forOfAsync=Dt,t.forOfCompactMap=lr,t.forOfCompactMapAsync=fr,t.forOfEvery=sn,t.forOfEveryAsync=cn,t.forOfFilter=dr,t.forOfFilterAsync=mr,t.forOfMap=Xt,t.forOfMapAsync=Yt,t.generateLoop=Wt,t.get=hn,t.getByClass=Qr,t.getById=Yr,t.getByTag=Xr,t.getChild=function(t){return null==t?null:t.constructor??null},t.getCollectionInsertIndex=function(t,n,e){let r=0;return m(t,(t,o)=>(r=o,n[e]>=t[e]&&(r=o+1,!0))),r},t.getConstructor=D,t.getConstructorName=q,t.getCookie=function(t){const n=`${t}=`,e=document.cookie.split("; ");for(const t of e)if(t.startsWith(n))return decodeURIComponent(t.slice(n.length))},t.getEntries=function(t){if(i(t))return Rn(t)},t.getFileExtension=function(t){if(t)return t.substring(t.lastIndexOf(".")+1)},t.getFilename=function(t){if(t)return t.substring(t.lastIndexOf("/")+1)},t.getHighest=function(t,n="id"){return It(t,n)[0]},t.getLowest=function(t,n){return Ct(t,n,!1)[0]},t.getNumberInsertIndex=function(t,n){let e=0;return m(t,(t,r)=>(e=r,n>=t&&(e=r+1,!0))),e},t.getParent=function(t){return null==t?null:Object.getPrototypeOf(t)},t.getPropDesc=mn,t.getPropNames=dn,t.getType=D,t.getTypeName=q,t.groupBy=function(t,n){const e={};return c(t,t=>{const r=n(t);e[r]||(e[r]=[]),e[r].push(t)}),e},t.has=function t(n,e,r){if(he(n)||he(e))return!1;if(n===e)return!0;if(gt(n))return gt(e)?n.includes(e,r):P(e)?e.test(n):ft(e)?e(n):b(e)?m(e,e=>t(n,e)):un(e,e=>t(n,e));if(b(n))return P(e)?n.some(t=>e.test(t)):ft(e)?n.some(e):b(e)?m(e,e=>t(n,e)):n.includes(e,r);if(L(n)){const t=Object.keys(n),r=t.length;if(P(e)){for(let o=0;o<r;o++)if(e.test(n[t[o]]))return!0;return!1}if(ft(e)){for(let o=0;o<r;o++){const r=t[o];if(e(n[r],r,n))return!0}return!1}if(L(e))return on(e,(t,e)=>n[e]===t);for(let o=0;o<r;o++)if(n[t[o]]===e)return!0;return!1}return!1},t.hasAnyKeys=function(t,...n){if(t)return Boolean(n.find(n=>{const e=ln(n);if(1===e.length)return $n(t,n);{const n=e.pop(),r=hn(e,t);return!!r&&$n(r,n)}}))},t.hasDot=Ir,t.hasKeys=function(t,...n){if(t)return m(n,n=>{const e=ln(n);if(1===e.length)return $n(t,n);{const n=e.pop(),r=hn(e,t);return!!r&&$n(r,n)}})},t.hasLength=r,t.hasProp=bn,t.hasValue=i,t.htmlEntities=te,t.ifInvoke=function(t,n,...e){if(ft(t))return n?t.call(n,...e):t(...e)},t.ifNotAssign=(t,n,e)=>(n&&!i(t[n])&&(t[n]=e),t),t.ifValue=function(t,n,e,r){if(i(t)){if(ft(n))return e?Jt(n,e,r):n(...r);if(L(n))return n[e]=t,n}},t.importjs=function(t){const n=Ir(t)&&t||`${t}.js`;return(t=>Mr(n=>{Wr(t,"load",n,!0),Wr(t,"error",n,!0),Ur(to("head"),t)}))(Pr(eo("script"),{async:"",src:n}))},t.inAsync=async function(t,n,...e){const r=t.length,o=[];if(n)for(let i=0;i<r;i++){const r=t[i];o[i]=await t[i].call(n,...e,i,r)}else for(let n=0;n<r;n++){const r=t[n];o[n]=await t[n](...e,n,r)}return o},t.inSync=function(t,n,...e){const r=t.length,o=[];if(n)for(let i=0;i<r;i++){const r=t[i];o[i]=r.call(n,...e,i,r)}else for(let n=0;n<r;n++){const r=t[n];o[n]=r(...e,n,r)}return o},t.increment=function(t){return t+1},t.indexBy=function(t,n="id"){const e={};return c(t,t=>{e[t[n]]=t}),e},t.info=Hr,t.initial=function(t){return t.slice(0,t.length-1)},t.initialString=function(t,n=1){return t.slice(0,-1*n)},t.insertInRange=function(t,n,e){return t.slice(0,n)+e+t.slice(n,t.length)},t.intersection=function(t,...n){return u(t,t=>{if(m(n,n=>n.includes(t)))return t})},t.interval=function(t,n){return Er.set(t,n)},t.intervals=Er,t.invert=function(t,n={}){if(t)return $t(t,(t,e)=>{n[t]=e}),n},t.invokeArray=function(t,n,e){if(!t)return;const r=t.length;if(i(e))for(let o=0;o<r;o++)t[o].call(e,n);else for(let e=0;e<r;e++)t[e](n);return t},t.invokeCollection=function(t,n,e,r){return _(t,r?(t,o)=>t[n].call(r,e):(t,r)=>t[n](e))},t.invokeCollectionAsync=function(t,n,e,r){return J(t,r?t=>t[n].call(r,e):async t=>t[n](e))},t.isAgent=kr,t.isArguments=function(t){return!!i(t)&&"[object Arguments]"===t.toString()},t.isArray=b,t.isArrayBuffer=we,t.isArrayBufferCall=be,t.isArrayLike=ge,t.isAsync=zt,t.isAsyncCall=qt,t.isBigInt=de,t.isBigIntCall=pe,t.isBoolean=ye,t.isBooleanCall=me,t.isBuffer=$,t.isBufferCall=B,t.isChild=function(t,n){return!(!t||!n)&&t instanceof n},t.isCloneable=function(t){if(i(t)){const n=t?.constructor?.name;return Ae.test(n)}return!1},t.isConstructor=pt,t.isConstructorFactory=F,t.isDate=k,t.isDateCall=N,t.isDeno=Je,t.isDocumentReady=ro,t.isDom=function(t){return t&&9!==t.nodeType},t.isEmpty=function(t){return gt(t)||b(t)?!r(t):L(t)?!Un(t):!i(t)},t.isEnter=function(t){return 13===t.keyCode},t.isEqual=Z,t.isError=Ce,t.isErrorCall=ve,t.isEven=function(t){return!(1&t)},t.isF32=Te,t.isF32Call=Ie,t.isF64=Oe,t.isF64Call=Ee,t.isFalse=xe,t.isFalsy=function(t,n=!0){return!1===Boolean(t)&&n},t.isFileCSS=jt,t.isFileHTML=St,t.isFileJS=Ft,t.isFileJSON=Bt,t.isFloat=je,t.isFunction=ft,t.isGenerator=Pt,t.isGeneratorCall=Ut,t.isHTMLCollection=function(t){return!!i(t)&&"[object HTMLCollection]"===t.toString()},t.isI16=Fe,t.isI16Call=Se,t.isI32=Re,t.isI32Call=Be,t.isI8=Ne,t.isI8Call=$e,t.isIndexable=function(t){return b(t)||W(t)||gt(t)||ge(t)},t.isIterable=function(t){return i(t)&&"function"==typeof t[Symbol.iterator]},t.isKindAsync=Le,t.isMap=le,t.isMapCall=fe,t.isMatchArray=function(t,n){return t.length===n.length&&m(t,(t,e)=>Z(n[e],t))},t.isMatchObject=(t,n)=>{if(t===n)return!0;const e=V(t),r=V(n);return e.length===r.length&&m(e,e=>t[e]===n[e])},t.isNegative=h,t.isNodeList=function(t){return!!i(t)&&"[object NodeList]"===t.toString()},t.isNodejs=Qe,t.isNotArray=function(t,...n){return!b(t,...n)},t.isNotNumber=function(t){return!ht(t)},t.isNotString=function(t){return!gt(t)},t.isNull=o,t.isNumber=ht,t.isNumberCall=lt,t.isNumberEqual=function(t,n){return t===n},t.isNumberInRange=function(t,n,e){return t>n&&t<e},t.isNumberNotInRange=function(t,n,e){return t<n||t>e},t.isOdd=function(t){return!(1&~t)},t.isParent=function(t,n){return!!(t&&n&&n.call)&&t instanceof n},t.isPlainObject=L,t.isPositive=function(t){return 1===Tn(t)},t.isPrimitive=function(t){const n=typeof t;return null==t||"object"!==n&&"function"!==n},t.isPromise=ke,t.isRegex=P,t.isRegexCall=U,t.isRelated=function(t,n){return!he(t)&&!he(n)&&(t.call?n instanceof t:n.call?t instanceof n:n.constructor===t.constructor)},t.isSafeInt=Pe,t.isSame=wn,t.isSameType=function(t,n){const e=D(t),r=D(n);return e===r&&e.name===r.name},t.isSet=kt,t.isSetCall=Nt,t.isString=gt,t.isTrue=function(t){return!0===t},t.isTruthy=Xe,t.isType=pt,t.isTypeFactory=y,t.isTypeNameFactory=dt,t.isTypedArray=W,t.isU16=qe,t.isU16Call=De,t.isU32=We,t.isU32Call=ze,t.isU8=Ve,t.isU8C=He,t.isU8CCall=Ze,t.isU8Call=Ke,t.isUndefined=e,t.isWeakMap=Ge,t.isWeakMapCall=_e,t.isZero=En,t.jsonParse=er,t.jsonParseNative=nr,t.jsonParseTry=function(t,n){if(t)try{return er(t,n)}catch(t){return}},t.kebabCase=function(t){return t.replace(/([A-Z]+)/g," $1").replace(qn," ").trim().toLowerCase().replace(zn,"-")},t.keyBy=function(t,n){const e={},r="function"==typeof n;for(let o=0;o<t.length;o++){const i=t[o];e[r?n(i,o,t):i[n]]=i}return e},t.keys=V,t.largest=function(t){return H(...t)},t.last=function(t,n){const e=t.length;return n?t.slice(e-n,e):t[e-1]},t.lowerCase=function(t){return t.replace(/([A-Z]+)/g," $1").replace(Zn," ").trim().toLowerCase()},t.map=en,t.mapArray=_,t.mapAsyncArray=J,t.mapAsyncObject=tn,t.mapKeys=function(t,n){const e={},r=Object.keys(t),o=r.length;for(let i=0;i<o;i++){const o=r[i],s=t[o];e[n(s,o,t)]=s}return e},t.mapObject=nn,t.mapRightArray=function(t,n,e=[],r){let o=0;const i=t.length;for(let s=i-1;s>=0;s--)e[o]=n(t[s],s,t,i,r),o++;return e},t.mapValues=function(t,n){const e={},r=Object.keys(t),o=r.length;for(let i=0;i<o;i++){const o=r[i];e[o]=n(t[o],o,t)}return e},t.mapWhile=function(t,n,e=[],r){const o=t.length;for(let i=0;i<o;i++){const s=t[i];if(!1===n(s,i,e,t,o,r))break;e[i]=s}return e},t.max=function(t){if(t?.length)return Math.max(...t)},t.mean=function(t){if(!t?.length)return;let n=0;for(let e=0;e<t.length;e++)n+=t[e];return n/t.length},t.median=function(t){if(!t?.length)return;const n=[...t].sort((t,n)=>t-n),e=n.length>>1;return n.length%2?n[e]:(n[e-1]+n[e])/2},t.memoize=function(t,n){const e=new Map;function r(...r){const o=n?n(...r):r[0];if(e.has(o))return e.get(o);const i=t.apply(this,r);return e.set(o,i),i}return r.cache=e,r},t.merge=function t(n,...e){return Kt(e,e=>{Kt(e,(e,r)=>{if(n[r]&&(L(e)||b(e)))return t(n[r],e);n[r]=e})}),n},t.min=function(t){if(t?.length)return Math.min(...t)},t.model=function(t,n){return i(n)?A(Or,[t,n]):Or.models.get(t)},t.multiply=function(t,n){return t*n},t.negate=function(t){return(...n)=>!t(...n)},t.nextFrame=function(){return new Promise(pr?t=>pr(t):t=>setTimeout(t,0))},t.noValue=he,t.nodeAttribute=Pr,t.noop=function(){},t.notEmpty=function(t){return gt(t)||b(t)?r(t):L(t)?Un(t)>0:i(t)},t.notEqual=Ye,t.nthArg=function(t=0){return(...n)=>n[t]},t.objectAssign=mt,t.objectEntries=Rn,t.objectSize=Un,t.omit=function(t,n){if(!t)return{};if(b(n)){const e=Ln(n);return Fn(t,(t,n)=>!e.test(n))}if(P(n))return Fn(t,(t,e)=>!n.test(e));if(gt(n))return Fn(t,(t,e)=>e!==n);if(ht(n)){const e=n.toString();return Fn(t,(t,n)=>n!==e)}return ft(n)?Fn(t,(t,e)=>!n(t,e)):mt({},t)},t.once=t=>{let n;return(...e)=>(i(n)||(n=t(...e)),n)},t.onlyUnique=st,t.over=function(t){return(...n)=>en(t,t=>t(...n))},t.overArgs=function(t,n){const e=n.length;return function(...r){const o=new Array(r.length);for(let t=0;t<r.length;t++)o[t]=t<e?n[t](r[t]):r[t];return t.apply(this,o)}},t.overAsync=function(t){return async(...n)=>en(t,async t=>t(...n))},t.overEvery=function(t){return n=>un(t,t=>t(n))},t.pair=function(t,n){return[t,n]},t.parseQuery=function(t){const n=t??globalThis.location?.search??"",e={},r=new URLSearchParams(n.startsWith("?")?n.slice(1):n);for(const[t,n]of r)if(t in e){const r=e[t];e[t]=Array.isArray(r)?[...r,n]:[r,n]}else e[t]=n;return e},t.partition=function(t,n){const e=[];return[u(t,(t,r)=>{if(n(t,r))return t;e.push(t)}),e]},t.pick=(t,n,e={})=>{if(t)return c(n,n=>{e[n]=t[n]}),e},t.pluck=function(t,n){return _(t,t=>Tt(t,n))},t.pluckObject=Tt,t.promise=Mr,t.property=function(t){return n=>hn(t,n)},t.propertyMatch=(t,n,e=V(t))=>m(e,e=>Z(t[e],n[e])),t.propertyOf=function(t){return n=>hn(n,t)},t.querySelector=to,t.querySelectorAll=no,t.randomFloat=function(t,n=0){return An()*(t-n)+n},t.randomInt=nt,t.randomString=function(t,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"){const e=n.length;let r="";for(let o=0;o<t;o++)r+=n[Math.floor(Math.random()*e)];return r},t.range=function(t,n,e=1,r=[]){return h(e)?r:t<n?g(t,n,e,r):p(t,n,e,r)},t.rangeDown=p,t.rangeUp=g,t.rawURLDecode=Yn,t.reArg=function(t,n){return(...e)=>t(...n.map(t=>e[t]))},t.readFromClipboard=function(){return navigator.clipboard.readText()},t.regexTestFactory=Mt,t.remainder=function(t,n){return t%n},t.remove=function(t,n){let e=t.length;for(let r=0;r<e;r++){const o=t[r];n.includes(o)&&(t.splice(r,1),r--,e--)}return t},t.removeBy=function(t,n){let e=t.length;for(let r=0;r<e;r++){n(t[r],r)&&(t.splice(r,1),r--,e--)}return t},t.removeCookie=function(t,n={}){zr(t,"",{...n,maxAge:0})},t.replaceList=function(t,n,e){return t.replace(new RegExp(`\\b${n.join("|")}\\b`,"gi"),e)},t.rest=function(t){return t.slice(1,t.length)},t.restString=Hn,t.retry=async function(t,{attempts:n=3,wait:e=0,factor:r=1}={}){let o,i=e;for(let e=0;e<n;e++)try{return await t(e)}catch(t){o=t,e<n-1&&i>0&&(await gr(i),i*=r)}throw o},t.returnValue=s,t.right=function(t,n){return t[t.length-1-n]},t.rightString=function(t,n=1){return t[t.length-n]},t.roundTo=function(t,n=0){return In(vn,t,n)},t.sameClass=function(t,n){const e=D(t),r=D(n);return Boolean(e)&&e===r},t.sameType=function(t,n){return typeof t==typeof n},t.sample=function(t,n){if(!t)return!1;const e=t.length;if(e===n||n>e)return ot(t);if(1===n)return[t[nt(e-1,0)]];const r=[],o={};let i,s=0;for(;s<n;)i=nt(t.length-1,0),o[i]||(r.push(t[i]),o[i]=!0,s++);return r},t.sanitize=function(t){return te(Yn(t))},t.saveDimensions=oo,t.selector=function(t){switch(t[0]){case"#":if(!Jr.test(t))return Yr(Hn(t));break;case".":if(_r.test(t))return Qr(Hn(t));break;default:if(Gr.test(t))return Xr(t)}return no(t)},t.set=function(t,n,e){if(!t)return t;const r=b(n)?n:ln(n),o=r.length-1;let i=t;for(let t=0;t<o;t++){const n=r[t];if(void 0===i[n]||null===i[n]){const e=r[t+1];i[n]=/^\d+$/.test(e)?[]:{}}i=i[n]}return i[r[o]]=e,t},t.setCookie=zr,t.setKey=function(t,n,e){return n&&L(t)||ht(n)&&b(t)?t[n]=e:t.set?t.set(n,e):t.push?t.push(e):t.add?t.add(e):t[n]=e,t},t.setValue=function(t,n,e){return ht(e)&&b(t)?t[e]=n:t.push?t.push(n):t.add?t.add(n):t[e]=n,t},t.shuffle=ot,t.slugify=function(t,n="-"){const e=t.normalize("NFKD").replace(ne,"").toLowerCase().replace(ee,n);if("-"===n)return e.replace(re,"");const r=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return e.replace(new RegExp(`^${r}+|${r}+$`,"g"),"")},t.smallest=function(t){return it(...t)},t.snakeCase=function(t){return t.replace(/([A-Z]+)/g," $1").replace(Wn," ").trim().toLowerCase().replace(Kn,"_")},t.sortBy=function(t,n){const e="function"==typeof n;return[...t].sort((t,r)=>function(t,n){return t<n?-1:t>n?1:0}(e?n(t):t[n],e?n(r):r[n]))},t.sortCollectionAlphabetically=function(t,n="id",e){return t.sort((t,r)=>Et(t,r,n,e))},t.sortCollectionAlphabeticallyReverse=function(t,n="id",e){return t.sort((t,r)=>Ot(t,r,n,e))},t.sortCollectionAscending=It,t.sortCollectionAscendingFilter=xt,t.sortCollectionDescending=Ct,t.sortCollectionDescendingFilter=vt,t.sortNumberAscending=function(t){return t.sort(Q)},t.sortNumberDescending=function(t){return t.sort(X)},t.sortObjectsAlphabetically=Et,t.sortObjectsAlphabeticallyReverse=Ot,t.sortUnique=ct,t.stringify=rr,t.stringifyQuery=function(t){const n=new URLSearchParams,e=Object.keys(t),r=e.length;for(let o=0;o<r;o++){const r=e[o],i=t[r];if(null!=i)if(Array.isArray(i)){const t=i.length;for(let e=0;e<t;e++)n.append(r,i[e])}else n.append(r,i)}return n.toString()},t.stubArray=function(){return[]},t.stubFalse=function(){return!1},t.stubObject=()=>({}),t.stubString=()=>"",t.stubTrue=()=>!0,t.subtract=Q,t.subtractAll=function(t){return t.reduce((t,n)=>t-n)},t.subtractReverse=X,t.sumAll=function(t){return t.reduce((t,n)=>t+n,0)},t.take=function(t,n=1){return t.slice(0,n)},t.takeRight=function(t,n=1){const e=t.length;return t.slice(e-n,e)},t.themes=qr,t.throttle=function(t,n){function e(...t){e.id?e.shouldThrottle=!0:(e.callable(...t),e.id=_t(()=>{e.shouldThrottle&&e.callable(...t),e.id=!1},n))}return e.id=!1,e.callable=t.bind(e),e.clear=()=>{Ht.remove(e.id),e.id=!1},e},t.timer=_t,t.timers=Ht,t.times=function(t,n,e){for(let r=0;r<t;r++)e&&n.call(e,r)||n(r)},t.timesAsync=async function(t,n,e){for(let r=0;r<t;r++)e&&await n.call(e,r)||await n(r)},t.timesMap=function(t,n,e=[]){for(let r=0;r<t;r++)e[r]=n(t);return e},t.timesMapAsync=async function(t,n,e=[]){for(let r=0;r<t;r++)e[r]=await n(t);return e},t.toArray=rt,t.toPath=ln,t.toggle=function(t,n=!0,e=!1){return Z(n,t)?e:n},t.tokenize=function(t){return t.match(oe)||[]},t.truncate=function(t,n){const e=t.length;return e>n?((t,n,e)=>{const r=t.split(""),o=r.length;let i,s=e-n;for(;s<o&&s>=0&&(i=r[s]," "!==i);s--);return t.slice(0,s).trim()})(t,n,e):t},t.truncateRight=function(t,n){const e=t.length;return e>n?((t,n,e)=>{const r=t.split(""),o=r.length;let i,s=n;for(;s<o&&s>0&&(i=r[s]," "!==i);s++);return t.substring(s,e).trim()})(t,n,e):t},t.unZip=function(t){return t[0].map((n,e)=>t.map(t=>t[e]))},t.unZipObject=t=>{const n=[],e=[];return $t(t,(t,r)=>{n.push(r),e.push(t)}),[n,e]},t.union=function(...t){return ut(C(t))},t.uniqID=Fr,t.unique=ut,t.untilFalseArray=function(t,n){const e=t.length;for(let r=0;r<e;r++)if(!1===n(t[r],r))return!1;return!0},t.untilTrueArray=function(t,n){const e=t.length;for(let r=0;r<e;r++)if(!0===n(t[r],r))return!1;return!0},t.updateDimensions=io,t.upperCase=function(t){return t.replace(/([A-Z]+)/g," $1").replace(Vn," ").trim().toUpperCase()},t.upperFirst=ue,t.upperFirstAll=function(t){return t.replace(se,t=>ue(t))},t.upperFirstLetter=ce,t.upperFirstOnly=ae,t.upperFirstOnlyAll=function(t){return t.replace(se,t=>ae(t))},t.uuid=function(){return Rr?Br.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=16*Math.random()|0;return("x"===t?n:3&n|8).toString(16)})},t.virtualStorage=Nr,t.whileCompactMap=function(t,n,e=[],r){let o=0;for(;o<t.length;){const s=n(t[o],o,t,t.length,r);i(s)&&e.push(s),o++}return e},t.whileEachArray=function(t,n,e){let r=0;for(;r<t.length;)n(t[r],r,t,t.length,e),r++;return t},t.whileMapArray=function(t,n,e=[],r){let o=0;for(;o<t.length;)e.push(n(t[o],o,t,t.length,r)),o++;return t},t.withTimeout=function(t,n,e="Timed out"){const r="function"==typeof t?t():t;return new Promise((t,o)=>{const i=setTimeout(()=>o(new Error(e)),n);r.then(n=>{clearTimeout(i),t(n)},t=>{clearTimeout(i),o(t)})})},t.without=function(t,n){if(!n)return t;const e=A(Set,[n]);return t.filter(t=>!e.has(t))},t.words=function(t){return t.match(ie)||[]},t.wrap=function(t,n){return(...e)=>n(t,...e)},t.xor=function(...t){const n=A(Map),e=[];return 2===t.length?I(t[0],t[1]):(c(t,(t,e)=>{c(t,(t,r)=>{let o=n.get(t);if(o){if(o.parentIndex===e)return;o.count++}else o={count:1,parentIndex:e,child:t},n.set(t,o)})}),x(n,t=>{1===t.count&&e.push(t.child)}),e)},t.zip=function(...t){return t[0].map((n,e)=>t.map(t=>t[e]))},t.zipObject=Pn});