const e=(e,t="",n)=>e.split(t,n),t=globalThis,n=Math,r=n.max,o=n.floor,a=e=>null==e,c=e=>void 0===e,l=((e=a)=>(t,n,r)=>e(t)?r?.():n(t))(c),s=(e,t)=>e.map(t),i=(e,t,n)=>e.reduce(t,n),u=Object,p=u.entries,d=e=>new Map(e),f=e("-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz"),m=d(s(f,(e,t)=>[e,t])),g=e=>f[63&e],w=(e,t)=>{return n=m,r=e[t],n?.get(r)??0;var n,r},y=t.crypto?e=>t.crypto.getRandomValues(e):e=>s(e,()=>o(256*n.random())),h=(e=16)=>i(y(new Uint8Array(e)),(e,t)=>e+g(t),""),v=JSON.stringify,x=new t.TextEncoder,E=e=>{let t=2166136261;var n;return n=e=>{t^=e,t+=(t<<1)+(t<<4)+(t<<7)+(t<<8)+(t<<24)},x.encode(e).forEach(n),t>>>0},M=(e,t)=>(e^t)>>>0,b=e=>i(p(e),(e,[t,n])=>M(e,O(t,n)^O(t,0)),0),O=(e,t)=>E(e+":"+t),T=(e,t)=>E(v(e??null,(e,t)=>t instanceof Map?u.fromEntries([...t]):t)+":"+t),j=T,A=O,D=b,J=O,N=e=>i(p(e),(e,[t,n])=>M(e,O(t,n)),0),R=O,S=N,U=2**36,V=2**30,k=2**24,q=2**18,z=4096,B=e=>{const t=E(e);return g(t/k)+g(t/q)+g(t/z)+g(t/64)+g(t)},C=(e,t=Date.now)=>{let n=0,o=-1;const a=l(e,B,()=>h(5)),s=e=>{const a=n,[l,s]=c(e)||""==e?[0,0]:u(e);n=r(a,l,t()),o=n==a?n==l?r(o,s):o:n==l?s:-1},i=(e,t,n)=>g(e/U)+g(e/V)+g(e/k)+g(e/q)+g(e/z)+g(e/64)+g(e)+g(t/q)+g(t/z)+g(t/64)+g(t)+(c(n)?a:B(n)),u=e=>[w(e,0)*U+w(e,1)*V+w(e,2)*k+w(e,3)*q+w(e,4)*z+64*w(e,5)+w(e,6),w(e,7)*q+w(e,8)*z+64*w(e,9)+w(e,10),e.slice(11)];return[()=>(s(),i(n,++o)),s,i,u,()=>n,()=>o,()=>a]},F=(e,t)=>(e??0)<(t??0)?-1:1;export{M as addOrRemoveHash,F as defaultSorter,j as getCellHash,A as getCellInRowHash,E as getHash,C as getHlcFunctions,D as getRowHash,J as getRowInTableHash,N as getTableHash,R as getTableInTablesHash,S as getTablesHash,h as getUniqueId,T as getValueHash,O as getValueInValuesHash,b as getValuesHash};
