Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

uland

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uland - npm Package Compare versions

Comparing version 0.4.2 to 0.4.3

8

es.js

@@ -1,7 +0,7 @@

self.uland=function(e){"use strict";var t=CustomEvent;const n=(e,t,n,s)=>{const l=new WeakMap,o=new WeakMap,c=new WeakMap,a=e=>l.has(e),i=e=>{a(e)&&(u(e,e.removeEventListener,l.get(e)),l.delete(e))},u=(e,t,n)=>{t.call(e,"disconnected",n),t.call(e,"connected",n)},h=(e,t,n,r)=>{for(let{length:s}=e,l=0;l<s;l++)d(e[l],t,n,r)},d=(e,r,s,l)=>{a(e)&&!s.has(e)&&(l.delete(e),s.set(e,0),e.dispatchEvent(new(n||CustomEvent)(r))),h(e[t||"children"]||[],r,s,l)},f=new(s||MutationObserver)((e=>{for(let{length:t}=e,n=0;n<t;n++){const{removedNodes:t,addedNodes:r}=e[n];h(t,"disconnected",c,o),h(r,"connected",o,c)}}));return f.observe(e||document,{subtree:!0,childList:!0}),{has:a,connect:(e,t)=>{i(e),(t||(t={})).handleEvent||(t.handleEvent=r),u(e,e.addEventListener,t),l.set(e,t)},disconnect:i,kill(){f.disconnect()}}};function r(e){e.type in this&&this[e.type](e)}var s=Promise;let l=null,o=new Set;const c=new WeakMap,a=e=>{const{$:t,r:n,h:r}=e;m(n)&&(u.get(r).delete(e),n()),m(e.r=t())&&u.get(r).add(e)},i=()=>{const e=o;o=new Set,e.forEach((({h:e,c:t,a:n,e:r})=>{r&&e.apply(t,n)}))},u=new WeakMap,h=[],d=[];function f(e,t){return e!==this[t]}const p=e=>{const t=u.get(e);t&&w.then((()=>{t.forEach((e=>{e.r(),e.r=null})),t.clear()}))},g=()=>c.get(l),v=e=>u.has(e),m=e=>"function"==typeof e,y=e=>{const t={h:n,c:null,a:null,e:0,i:0,s:[]};return c.set(n,t),n;function n(){const r=l;l=n,t.e=t.i=0;try{return e.apply(t.c=this,t.a=arguments)}finally{l=r,h.length&&w.then(h.forEach.bind(h.splice(0),a)),d.length&&d.splice(0).forEach(a)}}},w=new s((e=>e()));function b(e){const{_:t,value:n}=this;n!==e&&(this._=new Set,this.value=e,t.forEach((({h:e,c:t,a:n})=>{e.apply(t,n)})))}const $=(e,t)=>{const n=g(),{i:r,s:s}=n;return r!==s.length&&t&&!t.some(f,s[r]._)||(s[r]={$:e(),_:t}),s[n.i++].$},C=e=>(t,n)=>{const r=g(),{i:s,s:l,h:o}=r,c=s===l.length;c&&(u.has(o)||u.set(o,new Set),l.push({$:t,_:n,r:null,h:o}));const a=l[r.i++];(c||!n||n.some(f,a._))&&e.push(a)},E=C(h),k=C(d),x=(e,t)=>m(t)?t(e):t,N=(e,t,n)=>{const r=g(),{i:s,s:l}=r;s===l.length&&l.push({$:m(n)?n(t):x(void 0,t),set:t=>{l[s].$=e(l[s].$,t),(e=>{o.has(e)||(e.e=1,o.add(e),w.then(i))})(r)}});const{$:c,set:a}=l[r.i++];return[c,a]};
self.uland=function(e){"use strict";var t=CustomEvent;const n=(e,t,n,s)=>{const l=new WeakMap,o=new WeakMap,c=new WeakMap,a=e=>l.has(e),i=e=>{a(e)&&(u(e,e.removeEventListener,l.get(e)),l.delete(e))},u=(e,t,n)=>{t.call(e,"disconnected",n),t.call(e,"connected",n)},h=(e,t,n,r)=>{for(let{length:s}=e,l=0;l<s;l++)d(e[l],t,n,r)},d=(e,r,s,l)=>{a(e)&&!s.has(e)&&(l.delete(e),s.set(e,0),e.dispatchEvent(new(n||CustomEvent)(r))),h(e[t||"children"]||[],r,s,l)},f=new(s||MutationObserver)((e=>{for(let{length:t}=e,n=0;n<t;n++){const{removedNodes:t,addedNodes:r}=e[n];h(t,"disconnected",c,o),h(r,"connected",o,c)}}));return f.observe(e||document,{subtree:!0,childList:!0}),{has:a,connect:(e,t)=>{i(e),(t||(t={})).handleEvent||(t.handleEvent=r),u(e,e.addEventListener,t),l.set(e,t)},disconnect:i,kill(){f.disconnect()}}};function r(e){e.type in this&&this[e.type](e)}var s=Promise;let l=null,o=new Set;const c=new WeakMap,a=e=>{const{$:t,r:n,h:r}=e;m(n)&&(u.get(r).delete(e),n()),m(e.r=t())&&u.get(r).add(e)},i=()=>{const e=o;o=new Set,e.forEach((({h:e,c:t,a:n,e:r})=>{r&&e.apply(t,n)}))},u=new WeakMap,h=[],d=[];function f(e,t){return e!==this[t]}const p=e=>{const t=u.get(e);t&&w.then((()=>{t.forEach((e=>{e.r(),e.r=null})),t.clear()}))},g=()=>c.get(l),v=e=>u.has(e),m=e=>"function"==typeof e,y=e=>{const t={h:n,c:null,a:null,e:0,i:0,s:[]};return c.set(n,t),n;function n(){const r=l;l=n,t.e=t.i=0;try{return e.apply(t.c=this,t.a=arguments)}finally{l=r,h.length&&w.then(h.forEach.bind(h.splice(0),a)),d.length&&d.splice(0).forEach(a)}}},w=new s((e=>e()));function b(e){const{_:t,value:n}=this;n!==e&&(this._=new Set,this.value=e,t.forEach((({h:e,c:t,a:n})=>{e.apply(t,n)})))}const $=(e,t)=>{const n=g(),{i:r,s:s}=n;return r!==s.length&&t&&!t.some(f,s[r]._)||(s[r]={$:e(),_:t}),s[n.i++].$},C=e=>(t,n)=>{const r=g(),{i:s,s:l,h:o}=r,c=s===l.length;r.i++,c&&(u.has(o)||u.set(o,new Set),l[s]={$:t,_:n,r:null,h:o}),(c||!n||n.some(f,l[s]._))&&e.push(l[s]),l[s].$=t,l[s]._=n},E=C(h),k=C(d),x=(e,t)=>m(t)?t(e):t,N=(e,t,n)=>{const r=g(),{i:s,s:l}=r;s===l.length&&l.push({$:m(n)?n(t):x(void 0,t),set:t=>{l[s].$=e(l[s].$,t),(e=>{o.has(e)||(e.e=1,o.add(e),w.then(i))})(r)}});const{$:c,set:a}=l[r.i++];return[c,a]};
/*! (c) Andrea Giammarchi - ISC */
let M=null,S=null,L=null;const T=new WeakMap,A=(e,t,n,r)=>e?[r[0],s=>{T.has(e)||(T.set(e,0),w.then((()=>{T.delete(e),e.apply(t,n)}))),r[1](s)}]:r,_=(e,t)=>y(t?function t(){const[n,r,s]=[M,S,L];[M,S,L]=[t,this,arguments];try{return e.apply(S,L)}finally{[M,S,L]=[n,r,s]}}:e);
let M=null,S=null,L=null;const T=new WeakMap,_=(e,t,n,r)=>e?[r[0],s=>{T.has(e)||(T.set(e,0),w.then((()=>{T.delete(e),e.apply(t,n)}))),r[1](s)}]:r,A=(e,t)=>y(t?function t(){const[n,r,s]=[M,S,L];[M,S,L]=[t,this,arguments];try{return e.apply(S,L)}finally{[M,S,L]=[n,r,s]}}:e);
/*! (c) Andrea Giammarchi - ISC */
let O=null;const W=({firstChild:e})=>{if(e&&1!==e.nodeType&&!(e=e.nextElementSibling))throw"unobservable";return e},j=e=>{const{nodeType:t}=e;if(t)return 1===t?e:W(e);{const t=e.valueOf();return t!==e?j(t):W(t)}},R=(e,r)=>{const s=_(e,r);return function(){const e=s.apply(this,arguments);if(v(s)){const r=j(e);O||(O=n(r.ownerDocument,"children",t)),O.has(r)||O.connect(r,{disconnected(){p(s)}})}return e}};var B=e=>({get:t=>e.get(t),set:(t,n)=>(e.set(t,n),n)});const{isArray:D}=Array,{indexOf:H,slice:z}=[],P=/([^\s\\>"'=]+)\s*=\s*(['"]?)$/,q=/^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i,F=/<[a-z][^>]+$/i,G=/>[^<>]*$/,I=/<([a-z]+[a-z0-9:._-]*)([^>]*?)(\/>)/gi,J=/\s+$/,K=(e,t)=>0<t--&&(F.test(e[t])||!G.test(e[t])&&K(e,t)),Q=(e,t,n)=>q.test(t)?e:`<${t}${n.replace(J,"")}></${t}>`;const U=(e,t)=>111===e.nodeType?1/t<0?t?(({firstChild:e,lastChild:t})=>{const n=document.createRange();return n.setStartAfter(e),n.setEndAfter(t),n.deleteContents(),e})(e):e.lastChild:t?e.valueOf():e.firstChild:e;
let O=null;const W=({firstChild:e})=>{if(e&&1!==e.nodeType&&!(e=e.nextElementSibling))throw"unobservable";return e},j=e=>{const{nodeType:t}=e;if(t)return 1===t?e:W(e);{const t=e.valueOf();return t!==e?j(t):W(t)}},R=(e,r)=>{const s=A(e,r);return function(){const e=s.apply(this,arguments);if(v(s)){const r=j(e);O||(O=n(r.ownerDocument,"children",t)),O.has(r)||O.connect(r,{disconnected(){p(s)}})}return e}};var B=e=>({get:t=>e.get(t),set:(t,n)=>(e.set(t,n),n)});const{isArray:D}=Array,{indexOf:H,slice:z}=[],P=/([^\s\\>"'=]+)\s*=\s*(['"]?)$/,q=/^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i,F=/<[a-z][^>]+$/i,G=/>[^<>]*$/,I=/<([a-z]+[a-z0-9:._-]*)([^>]*?)(\/>)/gi,J=/\s+$/,K=(e,t)=>0<t--&&(F.test(e[t])||!G.test(e[t])&&K(e,t)),Q=(e,t,n)=>q.test(t)?e:`<${t}${n.replace(J,"")}></${t}>`;const U=(e,t)=>111===e.nodeType?1/t<0?t?(({firstChild:e,lastChild:t})=>{const n=document.createRange();return n.setStartAfter(e),n.setEndAfter(t),n.deleteContents(),e})(e):e.lastChild:t?e.valueOf():e.firstChild:e;
/*! (c) Andrea Giammarchi - ISC */
self.V=function(e){var t="fragment",n="template",r="content"in l(n)?function(e){var t=l(n);return t.innerHTML=e,t.content}:function(e){var r=l(t),o=l(n),c=null;if(/^[^\S]*?<(col(?:group)?|t(?:head|body|foot|r|d|h))/i.test(e)){var a=RegExp.$1;o.innerHTML="<table>"+e+"</table>",c=o.querySelectorAll(a)}else o.innerHTML=e,c=o.childNodes;return s(r,c),r};return function(e,t){return("svg"===t?o:r)(e)};function s(e,t){for(var n=t.length;n--;)e.appendChild(t[0])}function l(n){return n===t?e.createDocumentFragment():e.createElementNS("http://www.w3.org/1999/xhtml",n)}function o(e){var n=l(t),r=l("div");return r.innerHTML='<svg xmlns="http://www.w3.org/2000/svg">'+e+"</svg>",s(n,r.firstChild.childNodes),n}}(document);const X=({childNodes:e},t)=>e[t],Y=e=>{const t=[];let{parentNode:n}=e;for(;n;)t.push(H.call(n.childNodes,e)),n=(e=n).parentNode;return t},{createTreeWalker:Z,importNode:ee}=document,te=1!=ee.length,ne=te?(e,t)=>ee.call(document,V(e,t),!0):V,re=te?e=>Z.call(document,e,129,null,!1):e=>Z.call(document,e,129),se=(e,t,n)=>((e,t,n,r,s)=>{const l=n.length;let o=t.length,c=l,a=0,i=0,u=null;for(;a<o||i<c;)if(o===a){const t=c<l?i?r(n[i-1],-0).nextSibling:r(n[c-i],0):s;for(;i<c;)e.insertBefore(r(n[i++],1),t)}else if(c===i)for(;a<o;)u&&u.has(t[a])||e.removeChild(r(t[a],-1)),a++;else if(t[a]===n[i])a++,i++;else if(t[o-1]===n[c-1])o--,c--;else if(t[a]===n[c-1]&&n[i]===t[o-1]){const s=r(t[--o],-1).nextSibling;e.insertBefore(r(n[i++],1),r(t[a++],-1).nextSibling),e.insertBefore(r(n[--c],1),s),t[o]=n[c]}else{if(!u){u=new Map;let e=i;for(;e<c;)u.set(n[e],e++)}if(u.has(t[a])){const s=u.get(t[a]);if(i<s&&s<c){let l=a,h=1;for(;++l<o&&l<c&&u.get(t[l])===s+h;)h++;if(h>s-i){const l=r(t[a],0);for(;i<s;)e.insertBefore(r(n[i++],1),l)}else e.replaceChild(r(n[i++],1),r(t[a++],-1))}else a++}else e.removeChild(r(t[a++],-1))}return n})(e.parentNode,t,n,U,e),le=(e,t)=>"ref"===t?(e=>t=>{"function"==typeof t?t(e):t.current=e})(e):"aria"===t?(e=>t=>{for(const n in t){const r="role"===n?n:`aria-${n}`,s=t[n];null==s?e.removeAttribute(r):e.setAttribute(r,s)}})(e):".dataset"===t?(({dataset:e})=>t=>{for(const n in t){const r=t[n];null==r?delete e[n]:e[n]=r}})(e):"."===t.slice(0,1)?((e,t)=>n=>{e[t]=n})(e,t.slice(1)):"on"===t.slice(0,2)?((e,t)=>{let n,r=t.slice(2);return!(t in e)&&t.toLowerCase()in e&&(r=r.toLowerCase()),t=>{const s=D(t)?t:[t,!1];n!==s[0]&&(n&&e.removeEventListener(r,n,s[1]),(n=s[0])&&e.addEventListener(r,n,s[1]))}})(e,t):((e,t)=>{let n,r=!0;const s=document.createAttributeNS(null,t);return t=>{n!==t&&(n=t,null==n?r||(e.removeAttributeNode(s),r=!0):(s.value=t,r&&(e.setAttributeNodeNS(s),r=!1)))}})(e,t);function oe(e){const{type:t,path:n}=e,r=n.reduceRight(X,this);return"node"===t?(e=>{let t,n,r=[];const s=l=>{switch(typeof l){case"string":case"number":case"boolean":t!==l&&(t=l,n?n.textContent=l:n=document.createTextNode(l),r=se(e,r,[n]));break;case"object":case"undefined":if(null==l){t!=l&&(t=l,r=se(e,r,[]));break}if(D(l)){t=l,0===l.length?r=se(e,r,[]):"object"==typeof l[0]?r=se(e,r,l):s(String(l));break}"ELEMENT_NODE"in l&&t!==l&&(t=l,r=se(e,r,11===l.nodeType?z.call(l.childNodes):[l]))}};return s})(r):"attr"===t?le(r,e.name):(e=>{let t;return n=>{t!=n&&(t=n,e.textContent=null==n?"":n)}})(r)}const ce="isµ",ae=B(new WeakMap),ie=(e,t)=>{const n=((e,t,n)=>{const r=[],{length:s}=e;for(let n=1;n<s;n++){const s=e[n-1];r.push(P.test(s)&&K(e,n)?s.replace(P,((e,r,s)=>`${t}${n-1}=${s||'"'}${r}${s?"":'"'}`)):`${s}\x3c!--${t}${n-1}--\x3e`)}r.push(e[s-1]);const l=r.join("").trim();return n?l:l.replace(I,Q)})(t,ce,"svg"===e),r=ne(n,e),s=re(r),l=[],o=t.length-1;let c=0,a=`isµ${c}`;for(;c<o;){const e=s.nextNode();if(!e)throw`bad template: ${n}`;if(8===e.nodeType)e.textContent===a&&(l.push({type:"node",path:Y(e)}),a="isµ"+ ++c);else{for(;e.hasAttribute(a);)l.push({type:"attr",path:Y(e),name:e.getAttribute(a)}),e.removeAttribute(a),a="isµ"+ ++c;/^(?:style|textarea)$/i.test(e.tagName)&&e.textContent.trim()===`\x3c!--${a}--\x3e`&&(e.textContent="",l.push({type:"text",path:Y(e)}),a="isµ"+ ++c)}}return{content:r,nodes:l}},ue=(e,t)=>{const{content:n,nodes:r}=ae.get(t)||ae.set(t,ie(e,t)),s=ee.call(document,n,!0);return{content:s,updates:r.map(oe,s)}},he=(e,{type:t,template:n,values:r})=>{const{length:s}=r;de(e,r,s);let{entry:l}=e;l&&l.template===n&&l.type===t||(e.entry=l=((e,t)=>{const{content:n,updates:r}=ue(e,t);return{type:e,template:t,content:n,updates:r,wire:null}})(t,n));const{content:o,updates:c,wire:a}=l;for(let e=0;e<s;e++)c[e](r[e]);return a||(l.wire=(e=>{const{childNodes:t}=e,{length:n}=t;if(n<2)return n?t[0]:e;const r=z.call(t,0);return{ELEMENT_NODE:1,nodeType:111,firstChild:r[0],lastChild:r[n-1],valueOf(){if(t.length!==n){let t=0;for(;t<n;)e.appendChild(r[t++])}return e}}})(o))},de=({stack:e},t,n)=>{for(let r=0;r<n;r++){const n=t[r];n instanceof fe?t[r]=he(e[r]||(e[r]={stack:[],entry:null,wire:null}),n):D(n)?de(e[r]||(e[r]={stack:[],entry:null,wire:null}),n,n.length):e[r]=null}n<e.length&&e.splice(n)};function fe(e,t,n){this.type=e,this.template=t,this.values=n}const{create:pe,defineProperties:ge}=Object,ve=e=>{const t=B(new WeakMap);return ge(((t,...n)=>new fe(e,t,n)),{for:{value(n,r){const s=t.get(n)||t.set(n,pe(null));return s[r]||(s[r]=(t=>(n,...r)=>he(t,{type:e,template:n,values:r}))({stack:[],entry:null,wire:null}))}},node:{value:(t,...n)=>he({stack:[],entry:null,wire:null},{type:e,template:t,values:n}).valueOf()}})},me=B(new WeakMap),ye=ve("html"),we=ve("svg"),{create:be}=Object,$e=(e,...t)=>new fe("html",e,t);$e.for=Ae(ye);const Ce=(e,...t)=>new fe("svg",e,t);Ce.for=Ae(we);const Ee=B(new WeakMap),ke=(e,t)=>R((function(){const n=t.f.apply(this,arguments);return n instanceof fe?(Me(e,n),t.$=Le(t,n)):t.$=n,t.$})),xe=()=>({s:[],e:null}),Ne=(e,{f:t,c:n,a:r})=>{let{e:s}=e;return s&&s.f===t||(e.e=s={f:t,h:null,$:null},s.h=ke(xe(),s)),s.h.apply(n,r)},Me=(e,{values:t})=>{Se(e,t,t.length)},Se=(e,t,n)=>{const{s:r}=e;for(let e=0;e<n;e++){const n=t[e];n instanceof Te?t[e]=Ne(r[e]||(r[e]=xe()),n):n instanceof fe?Me(r[e]||(r[e]=xe()),n):D(n)?Se(r[e]||(r[e]=xe()),n,n.length):r[e]=null}n<r.length&&r.splice(n)},Le=(e,{type:t,template:n,values:r})=>("svg"===t?we:ye).for(e,t)(n,...r);function Te(e,t,n){this.f=e,this.c=t,this.a=n}function Ae(e){const t=B(new WeakMap);return(n,r)=>{const s=t.get(n)||t.set(n,be(null)),l=s[r]||(s[r]=xe());return(t,...s)=>(Se(l,s),e.for(n,r)(t,...s))}}return e.Component=function(e){return function(){return new Te(e,this,arguments)}},e.createContext=e=>({_:new Set,provide:b,value:e}),e.html=$e,e.render=(e,t)=>(Ee.get(e)||Ee.set(e,{c:xe(),h:R((function(t){const n="function"==typeof t?t():t;return((e,t)=>{const n="function"==typeof t?t():t,r=me.get(e)||me.set(e,{stack:[],entry:null,wire:null}),s=n instanceof fe?he(r,n):n;return s!==r.wire&&(r.wire=s,e.textContent="",e.appendChild(s.valueOf())),e})(e,n instanceof Te?Ne(this.c,n):(Me(this.c,n),n))}),e)})).h(t),e.svg=Ce,e.useCallback=(e,t)=>$((()=>e),t),e.useContext=({_:e,value:t})=>(e.add(g()),t),e.useEffect=E,e.useLayoutEffect=k,e.useMemo=$,e.useReducer=(e,t,n)=>A(M,S,L,N(e,t,n)),e.useRef=e=>{const t=g(),{i:n,s:r}=t;return n===r.length&&r.push({current:e}),r[t.i++]},e.useState=e=>A(M,S,L,(e=>N(x,e))(e)),Object.defineProperty(e,"__esModule",{value:!0}),e}({});
self.V=function(e){var t="fragment",n="template",r="content"in l(n)?function(e){var t=l(n);return t.innerHTML=e,t.content}:function(e){var r=l(t),o=l(n),c=null;if(/^[^\S]*?<(col(?:group)?|t(?:head|body|foot|r|d|h))/i.test(e)){var a=RegExp.$1;o.innerHTML="<table>"+e+"</table>",c=o.querySelectorAll(a)}else o.innerHTML=e,c=o.childNodes;return s(r,c),r};return function(e,t){return("svg"===t?o:r)(e)};function s(e,t){for(var n=t.length;n--;)e.appendChild(t[0])}function l(n){return n===t?e.createDocumentFragment():e.createElementNS("http://www.w3.org/1999/xhtml",n)}function o(e){var n=l(t),r=l("div");return r.innerHTML='<svg xmlns="http://www.w3.org/2000/svg">'+e+"</svg>",s(n,r.firstChild.childNodes),n}}(document);const X=({childNodes:e},t)=>e[t],Y=e=>{const t=[];let{parentNode:n}=e;for(;n;)t.push(H.call(n.childNodes,e)),n=(e=n).parentNode;return t},{createTreeWalker:Z,importNode:ee}=document,te=1!=ee.length,ne=te?(e,t)=>ee.call(document,V(e,t),!0):V,re=te?e=>Z.call(document,e,129,null,!1):e=>Z.call(document,e,129),se=(e,t,n)=>((e,t,n,r,s)=>{const l=n.length;let o=t.length,c=l,a=0,i=0,u=null;for(;a<o||i<c;)if(o===a){const t=c<l?i?r(n[i-1],-0).nextSibling:r(n[c-i],0):s;for(;i<c;)e.insertBefore(r(n[i++],1),t)}else if(c===i)for(;a<o;)u&&u.has(t[a])||e.removeChild(r(t[a],-1)),a++;else if(t[a]===n[i])a++,i++;else if(t[o-1]===n[c-1])o--,c--;else if(t[a]===n[c-1]&&n[i]===t[o-1]){const s=r(t[--o],-1).nextSibling;e.insertBefore(r(n[i++],1),r(t[a++],-1).nextSibling),e.insertBefore(r(n[--c],1),s),t[o]=n[c]}else{if(!u){u=new Map;let e=i;for(;e<c;)u.set(n[e],e++)}if(u.has(t[a])){const s=u.get(t[a]);if(i<s&&s<c){let l=a,h=1;for(;++l<o&&l<c&&u.get(t[l])===s+h;)h++;if(h>s-i){const l=r(t[a],0);for(;i<s;)e.insertBefore(r(n[i++],1),l)}else e.replaceChild(r(n[i++],1),r(t[a++],-1))}else a++}else e.removeChild(r(t[a++],-1))}return n})(e.parentNode,t,n,U,e),le=(e,t)=>"ref"===t?(e=>t=>{"function"==typeof t?t(e):t.current=e})(e):"aria"===t?(e=>t=>{for(const n in t){const r="role"===n?n:`aria-${n}`,s=t[n];null==s?e.removeAttribute(r):e.setAttribute(r,s)}})(e):".dataset"===t?(({dataset:e})=>t=>{for(const n in t){const r=t[n];null==r?delete e[n]:e[n]=r}})(e):"."===t.slice(0,1)?((e,t)=>n=>{e[t]=n})(e,t.slice(1)):"on"===t.slice(0,2)?((e,t)=>{let n,r=t.slice(2);return!(t in e)&&t.toLowerCase()in e&&(r=r.toLowerCase()),t=>{const s=D(t)?t:[t,!1];n!==s[0]&&(n&&e.removeEventListener(r,n,s[1]),(n=s[0])&&e.addEventListener(r,n,s[1]))}})(e,t):((e,t)=>{let n,r=!0;const s=document.createAttributeNS(null,t);return t=>{n!==t&&(n=t,null==n?r||(e.removeAttributeNode(s),r=!0):(s.value=t,r&&(e.setAttributeNodeNS(s),r=!1)))}})(e,t);function oe(e){const{type:t,path:n}=e,r=n.reduceRight(X,this);return"node"===t?(e=>{let t,n,r=[];const s=l=>{switch(typeof l){case"string":case"number":case"boolean":t!==l&&(t=l,n?n.textContent=l:n=document.createTextNode(l),r=se(e,r,[n]));break;case"object":case"undefined":if(null==l){t!=l&&(t=l,r=se(e,r,[]));break}if(D(l)){t=l,0===l.length?r=se(e,r,[]):"object"==typeof l[0]?r=se(e,r,l):s(String(l));break}"ELEMENT_NODE"in l&&t!==l&&(t=l,r=se(e,r,11===l.nodeType?z.call(l.childNodes):[l]))}};return s})(r):"attr"===t?le(r,e.name):(e=>{let t;return n=>{t!=n&&(t=n,e.textContent=null==n?"":n)}})(r)}const ce="isµ",ae=B(new WeakMap),ie=(e,t)=>{const n=((e,t,n)=>{const r=[],{length:s}=e;for(let n=1;n<s;n++){const s=e[n-1];r.push(P.test(s)&&K(e,n)?s.replace(P,((e,r,s)=>`${t}${n-1}=${s||'"'}${r}${s?"":'"'}`)):`${s}\x3c!--${t}${n-1}--\x3e`)}r.push(e[s-1]);const l=r.join("").trim();return n?l:l.replace(I,Q)})(t,ce,"svg"===e),r=ne(n,e),s=re(r),l=[],o=t.length-1;let c=0,a=`isµ${c}`;for(;c<o;){const e=s.nextNode();if(!e)throw`bad template: ${n}`;if(8===e.nodeType)e.textContent===a&&(l.push({type:"node",path:Y(e)}),a="isµ"+ ++c);else{for(;e.hasAttribute(a);)l.push({type:"attr",path:Y(e),name:e.getAttribute(a)}),e.removeAttribute(a),a="isµ"+ ++c;/^(?:style|textarea)$/i.test(e.tagName)&&e.textContent.trim()===`\x3c!--${a}--\x3e`&&(e.textContent="",l.push({type:"text",path:Y(e)}),a="isµ"+ ++c)}}return{content:r,nodes:l}},ue=(e,t)=>{const{content:n,nodes:r}=ae.get(t)||ae.set(t,ie(e,t)),s=ee.call(document,n,!0);return{content:s,updates:r.map(oe,s)}},he=(e,{type:t,template:n,values:r})=>{const{length:s}=r;de(e,r,s);let{entry:l}=e;l&&l.template===n&&l.type===t||(e.entry=l=((e,t)=>{const{content:n,updates:r}=ue(e,t);return{type:e,template:t,content:n,updates:r,wire:null}})(t,n));const{content:o,updates:c,wire:a}=l;for(let e=0;e<s;e++)c[e](r[e]);return a||(l.wire=(e=>{const{childNodes:t}=e,{length:n}=t;if(n<2)return n?t[0]:e;const r=z.call(t,0);return{ELEMENT_NODE:1,nodeType:111,firstChild:r[0],lastChild:r[n-1],valueOf(){if(t.length!==n){let t=0;for(;t<n;)e.appendChild(r[t++])}return e}}})(o))},de=({stack:e},t,n)=>{for(let r=0;r<n;r++){const n=t[r];n instanceof fe?t[r]=he(e[r]||(e[r]={stack:[],entry:null,wire:null}),n):D(n)?de(e[r]||(e[r]={stack:[],entry:null,wire:null}),n,n.length):e[r]=null}n<e.length&&e.splice(n)};function fe(e,t,n){this.type=e,this.template=t,this.values=n}const{create:pe,defineProperties:ge}=Object,ve=e=>{const t=B(new WeakMap);return ge(((t,...n)=>new fe(e,t,n)),{for:{value(n,r){const s=t.get(n)||t.set(n,pe(null));return s[r]||(s[r]=(t=>(n,...r)=>he(t,{type:e,template:n,values:r}))({stack:[],entry:null,wire:null}))}},node:{value:(t,...n)=>he({stack:[],entry:null,wire:null},{type:e,template:t,values:n}).valueOf()}})},me=B(new WeakMap),ye=ve("html"),we=ve("svg"),{create:be}=Object,$e=(e,...t)=>new fe("html",e,t);$e.for=_e(ye);const Ce=(e,...t)=>new fe("svg",e,t);Ce.for=_e(we);const Ee=B(new WeakMap),ke=(e,t)=>R((function(){const n=t.f.apply(this,arguments);return n instanceof fe?(Me(e,n),t.$=Le(t,n)):t.$=n,t.$})),xe=()=>({s:[],e:null}),Ne=(e,{f:t,c:n,a:r})=>{let{e:s}=e;return s&&s.f===t||(e.e=s={f:t,h:null,$:null},s.h=ke(xe(),s)),s.h.apply(n,r)},Me=(e,{values:t})=>{Se(e,t,t.length)},Se=(e,t,n)=>{const{s:r}=e;for(let e=0;e<n;e++){const n=t[e];n instanceof Te?t[e]=Ne(r[e]||(r[e]=xe()),n):n instanceof fe?Me(r[e]||(r[e]=xe()),n):D(n)?Se(r[e]||(r[e]=xe()),n,n.length):r[e]=null}n<r.length&&r.splice(n)},Le=(e,{type:t,template:n,values:r})=>("svg"===t?we:ye).for(e,t)(n,...r);function Te(e,t,n){this.f=e,this.c=t,this.a=n}function _e(e){const t=B(new WeakMap);return(n,r)=>{const s=t.get(n)||t.set(n,be(null)),l=s[r]||(s[r]=xe());return(t,...s)=>(Se(l,s),e.for(n,r)(t,...s))}}return e.Component=function(e){return function(){return new Te(e,this,arguments)}},e.createContext=e=>({_:new Set,provide:b,value:e}),e.html=$e,e.render=(e,t)=>(Ee.get(e)||Ee.set(e,{c:xe(),h:R((function(t){const n="function"==typeof t?t():t;return((e,t)=>{const n="function"==typeof t?t():t,r=me.get(e)||me.set(e,{stack:[],entry:null,wire:null}),s=n instanceof fe?he(r,n):n;return s!==r.wire&&(r.wire=s,e.textContent="",e.appendChild(s.valueOf())),e})(e,n instanceof Te?Ne(this.c,n):(Me(this.c,n),n))}),e)})).h(t),e.svg=Ce,e.useCallback=(e,t)=>$((()=>e),t),e.useContext=({_:e,value:t})=>(e.add(g()),t),e.useEffect=E,e.useLayoutEffect=k,e.useMemo=$,e.useReducer=(e,t,n)=>_(M,S,L,N(e,t,n)),e.useRef=e=>{const t=g(),{i:n,s:r}=t;return n===r.length&&r.push({current:e}),r[t.i++]},e.useState=e=>_(M,S,L,(e=>N(x,e))(e)),Object.defineProperty(e,"__esModule",{value:!0}),e}({});

@@ -314,6 +314,7 @@ self.uland = (function (exports) {

var call = i === s.length;
info.i++;
if (call) {
if (!fx.has(h)) fx.set(h, new Set());
s.push({
s[i] = {
$: callback,

@@ -323,7 +324,8 @@ _: guards,

h: h
});
};
}
var effect = s[info.i++];
if (call || !guards || guards.some(different, effect._)) stack.push(effect);
if (call || !guards || guards.some(different, s[i]._)) stack.push(s[i]);
s[i].$ = callback;
s[i]._ = guards;
};

@@ -330,0 +332,0 @@ };

self.uland=function(n){"use strict";function t(n){return function(n){if(Array.isArray(n))return e(n)}(n)||function(n){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(n))return Array.from(n)}(n)||function(n,t){if(!n)return;if("string"==typeof n)return e(n,t);var r=Object.prototype.toString.call(n).slice(8,-1);"Object"===r&&n.constructor&&(r=n.constructor.name);if("Map"===r||"Set"===r)return Array.from(n);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e(n,t)}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}
/*! (c) Andrea Giammarchi - ISC */()}function e(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=new Array(t);e<t;e++)r[e]=n[e];return r}var r={};r.CustomEvent="function"==typeof CustomEvent?CustomEvent:function(n){return t[n]=new t("").constructor[n],t;function t(n,t){t||(t={});var e=document.createEvent("CustomEvent");return e.initCustomEvent(n,!!t.bubbles,!!t.cancelable,t.detail),e}}("prototype");var u=r.CustomEvent,o=function(n,t,e,r){var u=new WeakMap,o=new WeakMap,i=new WeakMap,c=function(n){return u.has(n)},l=function(n){c(n)&&(f(n,n.removeEventListener,u.get(n)),u.delete(n))},f=function(n,t,e){t.call(n,"disconnected",e),t.call(n,"connected",e)},s=function(n,t,e,r){for(var u=n.length,o=0;o<u;o++)v(n[o],t,e,r)},v=function(n,r,u,o){c(n)&&!u.has(n)&&(o.delete(n),u.set(n,0),n.dispatchEvent(new(e||CustomEvent)(r))),s(n[t||"children"]||[],r,u,o)},h=new(r||MutationObserver)((function(n){for(var t=n.length,e=0;e<t;e++){var r=n[e],u=r.removedNodes,a=r.addedNodes;s(u,"disconnected",i,o),s(a,"connected",o,i)}}));return h.observe(n||document,{subtree:!0,childList:!0}),{has:c,connect:function(n,t){l(n),(t||(t={})).handleEvent||(t.handleEvent=a),f(n,n.addEventListener,t),u.set(n,t)},disconnect:l,kill:function(){h.disconnect()}}};function a(n){n.type in this&&this[n.type](n)}var i="function"==typeof Promise?Promise:function(n){var t,e=[],r=0;return n((function(n){t=n,r=1,e.splice(0).forEach(u)})),{then:u};function u(n){return r?setTimeout(n,0,t):e.push(n),this}},c=null,l=new Set,f=new WeakMap,s=function(n){var t=n.$,e=n.r,r=n.h;b(e)&&(h.get(r).delete(n),e()),b(n.r=t())&&h.get(r).add(n)},v=function(){var n=l;l=new Set,n.forEach((function(n){var t=n.h,e=n.c,r=n.a;n.e&&t.apply(e,r)}))},h=new WeakMap,d=[],p=[];function m(n,t){return n!==this[t]}var y=function(n){var t=h.get(n);t&&E.then((function(){t.forEach((function(n){n.r(),n.r=null})),t.clear()}))},g=function(){return f.get(c)},w=function(n){return h.has(n)},b=function(n){return"function"==typeof n},E=new i((function(n){return n()}));function C(n){var t=this._;this.value!==n&&(this._=new Set,this.value=n,t.forEach((function(n){var t=n.h,e=n.c,r=n.a;t.apply(e,r)})))}var k=function(n,t){var e=g(),r=e.i,u=e.s;return r!==u.length&&t&&!t.some(m,u[r]._)||(u[r]={$:n(),_:t}),u[e.i++].$},A=function(n){return function(t,e){var r=g(),u=r.i,o=r.s,a=r.h,i=u===o.length;i&&(h.has(a)||h.set(a,new Set),o.push({$:t,_:e,r:null,h:a}));var c=o[r.i++];(i||!e||e.some(m,c._))&&n.push(c)}},x=A(d),N=A(p),M=function(n,t){return b(t)?t(n):t},S=function(n,t,e){var r=g(),u=r.i,o=r.s;u===o.length&&o.push({$:b(e)?e(t):M(void 0,t),set:function(t){o[u].$=n(o[u].$,t),function(n){l.has(n)||(n.e=1,l.add(n),E.then(v))}(r)}});var a=o[r.i++];return[a.$,a.set]},$=null,O=null,T=null,L=new WeakMap,_=function(n,t,e,r){return n?[r[0],function(u){L.has(n)||(L.set(n,0),E.then((function(){L.delete(n),n.apply(t,e)}))),r[1](u)}]:r},W=function(n,t){return function(n){var t={h:e,c:null,a:null,e:0,i:0,s:[]};return f.set(e,t),e;function e(){var r=c;c=e,t.e=t.i=0;try{return n.apply(t.c=this,t.a=arguments)}finally{c=r,d.length&&E.then(d.forEach.bind(d.splice(0),s)),p.length&&p.splice(0).forEach(s)}}}(t?function t(){var e=$,r=O,u=T;$=t,O=this,T=arguments;try{return n.apply(O,T)}finally{$=e,O=r,T=u}}:n)},j=null,R=function(n){var t=n.firstChild;if(t&&1!==t.nodeType&&!(t=t.nextElementSibling))throw"unobservable";return t},B=function n(t){var e=t.nodeType;if(e)return 1===e?t:R(t);var r=t.valueOf();return r!==t?n(r):R(r)},D=function(n,t){var e=W(n,t);return function(){var n=e.apply(this,arguments);if(w(e)){var t=B(n);j||(j=o(t.ownerDocument,"children",u)),j.has(t)||j.connect(t,{disconnected:function(){y(e)}})}return n}},H=function(n){return{get:function(t){return n.get(t)},set:function(t,e){return n.set(t,e),e}}},P=Array.isArray,z=[],I=z.indexOf,q=z.slice,F=/([^\s\\>"'=]+)\s*=\s*(['"]?)$/,U=/^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i,G=/<[a-z][^>]+$/i,J=/>[^<>]*$/,K=/<([a-z]+[a-z0-9:._-]*)([^>]*?)(\/>)/gi,Q=/\s+$/,V=function n(t,e){return 0<e--&&(G.test(t[e])||!J.test(t[e])&&n(t,e))},X=function(n,t,e){return U.test(t)?n:"<".concat(t).concat(e.replace(Q,""),"></").concat(t,">")},Y=function(n,t,e){for(var r=[],u=n.length,o=function(e){var u=n[e-1];r.push(F.test(u)&&V(n,e)?u.replace(F,(function(n,r,u){return"".concat(t).concat(e-1,"=").concat(u||'"').concat(r).concat(u?"":'"')})):"".concat(u,"\x3c!--").concat(t).concat(e-1,"--\x3e"))},a=1;a<u;a++)o(a);r.push(n[u-1]);var i=r.join("").trim();return e?i:i.replace(K,X)},Z=function(n,t){return 111===n.nodeType?1/t<0?t?function(n){var t=n.firstChild,e=n.lastChild,r=document.createRange();return r.setStartAfter(t),r.setEndAfter(e),r.deleteContents(),t}(n):n.lastChild:t?n.valueOf():n.firstChild:n},nn=function(n){var t="fragment",e="template",r="content"in o(e)?function(n){var t=o(e);return t.innerHTML=n,t.content}:function(n){var r=o(t),a=o(e),i=null;if(/^[^\S]*?<(col(?:group)?|t(?:head|body|foot|r|d|h))/i.test(n)){var c=RegExp.$1;a.innerHTML="<table>"+n+"</table>",i=a.querySelectorAll(c)}else a.innerHTML=n,i=a.childNodes;return u(r,i),r};return function(n,t){return("svg"===t?a:r)(n)};function u(n,t){for(var e=t.length;e--;)n.appendChild(t[0])}function o(e){return e===t?n.createDocumentFragment():n.createElementNS("http://www.w3.org/1999/xhtml",e)}function a(n){var e=o(t),r=o("div");return r.innerHTML='<svg xmlns="http://www.w3.org/2000/svg">'+n+"</svg>",u(e,r.firstChild.childNodes),e}}(document),tn=function(n,t){return n.childNodes[t]},en=function(n){for(var t=[],e=n.parentNode;e;)t.push(I.call(e.childNodes,n)),e=(n=e).parentNode;return t},rn=document,un=rn.createTreeWalker,on=rn.importNode,an=1!=on.length,cn=an?function(n,t){return on.call(document,nn(n,t),!0)}:nn,ln=an?function(n){return un.call(document,n,129,null,!1)}:function(n){return un.call(document,n,129)},fn=function(n,t,e){return function(n,t,e,r,u){for(var o=e.length,a=t.length,i=o,c=0,l=0,f=null;c<a||l<i;)if(a===c)for(var s=i<o?l?r(e[l-1],-0).nextSibling:r(e[i-l],0):u;l<i;)n.insertBefore(r(e[l++],1),s);else if(i===l)for(;c<a;)f&&f.has(t[c])||n.removeChild(r(t[c],-1)),c++;else if(t[c]===e[l])c++,l++;else if(t[a-1]===e[i-1])a--,i--;else if(t[c]===e[i-1]&&e[l]===t[a-1]){var v=r(t[--a],-1).nextSibling;n.insertBefore(r(e[l++],1),r(t[c++],-1).nextSibling),n.insertBefore(r(e[--i],1),v),t[a]=e[i]}else{if(!f){f=new Map;for(var h=l;h<i;)f.set(e[h],h++)}if(f.has(t[c])){var d=f.get(t[c]);if(l<d&&d<i){for(var p=c,m=1;++p<a&&p<i&&f.get(t[p])===d+m;)m++;if(m>d-l)for(var y=r(t[c],0);l<d;)n.insertBefore(r(e[l++],1),y);else n.replaceChild(r(e[l++],1),r(t[c++],-1))}else c++}else n.removeChild(r(t[c++],-1))}return e}(n.parentNode,t,e,Z,n)},sn=function(n,t){return"ref"===t?function(n){return function(t){"function"==typeof t?t(n):t.current=n}}(n):"aria"===t?function(n){return function(t){for(var e in t){var r="role"===e?e:"aria-".concat(e),u=t[e];null==u?n.removeAttribute(r):n.setAttribute(r,u)}}}(n):".dataset"===t?function(n){var t=n.dataset;return function(n){for(var e in n){var r=n[e];null==r?delete t[e]:t[e]=r}}}(n):"."===t.slice(0,1)?function(n,t){return function(e){n[t]=e}}(n,t.slice(1)):"on"===t.slice(0,2)?function(n,t){var e,r=t.slice(2);return!(t in n)&&t.toLowerCase()in n&&(r=r.toLowerCase()),function(t){var u=P(t)?t:[t,!1];e!==u[0]&&(e&&n.removeEventListener(r,e,u[1]),(e=u[0])&&n.addEventListener(r,e,u[1]))}}(n,t):function(n,t){var e,r=!0,u=document.createAttributeNS(null,t);return function(t){e!==t&&(null==(e=t)?r||(n.removeAttributeNode(u),r=!0):(u.value=t,r&&(n.setAttributeNodeNS(u),r=!1)))}}(n,t)};function vn(n){var t=n.type,e=n.path.reduceRight(tn,this);return"node"===t?function(n){var t,e,r=[];return function u(o){switch(typeof o){case"string":case"number":case"boolean":t!==o&&(t=o,e?e.textContent=o:e=document.createTextNode(o),r=fn(n,r,[e]));break;case"object":case"undefined":if(null==o){t!=o&&(t=o,r=fn(n,r,[]));break}if(P(o)){t=o,0===o.length?r=fn(n,r,[]):"object"==typeof o[0]?r=fn(n,r,o):u(String(o));break}"ELEMENT_NODE"in o&&t!==o&&(t=o,r=fn(n,r,11===o.nodeType?q.call(o.childNodes):[o]))}}}(e):"attr"===t?sn(e,n.name):function(n){var t;return function(e){t!=e&&(t=e,n.textContent=null==e?"":e)}}(e)}var hn="isµ",dn=H(new WeakMap),pn=function(n,t){var e=dn.get(t)||dn.set(t,function(n,t){for(var e=Y(t,hn,"svg"===n),r=cn(e,n),u=ln(r),o=[],a=t.length-1,i=0,c="".concat(hn).concat(i);i<a;){var l=u.nextNode();if(!l)throw"bad template: ".concat(e);if(8===l.nodeType)l.textContent===c&&(o.push({type:"node",path:en(l)}),c="".concat(hn).concat(++i));else{for(;l.hasAttribute(c);)o.push({type:"attr",path:en(l),name:l.getAttribute(c)}),l.removeAttribute(c),c="".concat(hn).concat(++i);/^(?:style|textarea)$/i.test(l.tagName)&&l.textContent.trim()==="\x3c!--".concat(c,"--\x3e")&&(l.textContent="",o.push({type:"text",path:en(l)}),c="".concat(hn).concat(++i))}}return{content:r,nodes:o}}(n,t)),r=e.content,u=e.nodes,o=on.call(document,r,!0);return{content:o,updates:u.map(vn,o)}},mn=function(n,t){var e=t.type,r=t.template,u=t.values,o=u.length;yn(n,u,o);var a=n.entry;a&&a.template===r&&a.type===e||(n.entry=a=function(n,t){var e=pn(n,t);return{type:n,template:t,content:e.content,updates:e.updates,wire:null}}(e,r));for(var i=a,c=i.content,l=i.updates,f=i.wire,s=0;s<o;s++)l[s](u[s]);return f||(a.wire=function(n){var t=n.childNodes,e=t.length;if(e<2)return e?t[0]:n;var r=q.call(t,0);return{ELEMENT_NODE:1,nodeType:111,firstChild:r[0],lastChild:r[e-1],valueOf:function(){if(t.length!==e)for(var u=0;u<e;)n.appendChild(r[u++]);return n}}}(c))},yn=function n(t,e,r){for(var u=t.stack,o=0;o<r;o++){var a=e[o];a instanceof gn?e[o]=mn(u[o]||(u[o]={stack:[],entry:null,wire:null}),a):P(a)?n(u[o]||(u[o]={stack:[],entry:null,wire:null}),a,a.length):u[o]=null}r<u.length&&u.splice(r)};function gn(n,t,e){this.type=n,this.template=t,this.values=e}var wn=Object.create,bn=Object.defineProperties,En=function(n){var t=H(new WeakMap);return bn((function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),u=1;u<e;u++)r[u-1]=arguments[u];return new gn(n,t,r)}),{for:{value:function(e,r){var u=t.get(e)||t.set(e,wn(null));return u[r]||(u[r]=function(t){return function(e){for(var r=arguments.length,u=new Array(r>1?r-1:0),o=1;o<r;o++)u[o-1]=arguments[o];return mn(t,{type:n,template:e,values:u})}}({stack:[],entry:null,wire:null}))}},node:{value:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),u=1;u<e;u++)r[u-1]=arguments[u];return mn({stack:[],entry:null,wire:null},{type:n,template:t,values:r}).valueOf()}}})},Cn=H(new WeakMap),kn=En("html"),An=En("svg"),xn=Object.create,Nn=function(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;r<t;r++)e[r-1]=arguments[r];return new gn("html",n,e)};Nn.for=jn(kn);var Mn=function(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;r<t;r++)e[r-1]=arguments[r];return new gn("svg",n,e)};Mn.for=jn(An);var Sn=H(new WeakMap),$n=function(){return{s:[],e:null}},On=function(n,t){var e=t.f,r=t.c,u=t.a,o=n.e;return o&&o.f===e||(n.e=o={f:e,h:null,$:null},o.h=function(n,t){return D((function(){var e=t.f.apply(this,arguments);return e instanceof gn?(Tn(n,e),t.$=_n(t,e)):t.$=e,t.$}))}($n(),o)),o.h.apply(r,u)},Tn=function(n,t){var e=t.values;Ln(n,e,e.length)},Ln=function n(t,e,r){for(var u=t.s,o=0;o<r;o++){var a=e[o];a instanceof Wn?e[o]=On(u[o]||(u[o]=$n()),a):a instanceof gn?Tn(u[o]||(u[o]=$n()),a):P(a)?n(u[o]||(u[o]=$n()),a,a.length):u[o]=null}r<u.length&&u.splice(r)},_n=function(n,e){var r=e.type,u=e.template,o=e.values;return("svg"===r?An:kn).for(n,r).apply(void 0,[u].concat(t(o)))};function Wn(n,t,e){this.f=n,this.c=t,this.a=e}function jn(n){var t=H(new WeakMap);return function(e,r){var u=t.get(e)||t.set(e,xn(null)),o=u[r]||(u[r]=$n());return function(t){for(var u=arguments.length,a=new Array(u>1?u-1:0),i=1;i<u;i++)a[i-1]=arguments[i];return Ln(o,a),n.for(e,r).apply(void 0,[t].concat(a))}}}return n.Component=function(n){return function(){return new Wn(n,this,arguments)}},n.createContext=function(n){return{_:new Set,provide:C,value:n}},n.html=Nn,n.render=function(n,t){return(Sn.get(n)||Sn.set(n,{c:$n(),h:D((function(t){var e="function"==typeof t?t():t;return function(n,t){var e="function"==typeof t?t():t,r=Cn.get(n)||Cn.set(n,{stack:[],entry:null,wire:null}),u=e instanceof gn?mn(r,e):e;return u!==r.wire&&(r.wire=u,n.textContent="",n.appendChild(u.valueOf())),n}(n,e instanceof Wn?On(this.c,e):(Tn(this.c,e),e))}),n)})).h(t)},n.svg=Mn,n.useCallback=function(n,t){return k((function(){return n}),t)},n.useContext=function(n){var t=n._,e=n.value;return t.add(g()),e},n.useEffect=x,n.useLayoutEffect=N,n.useMemo=k,n.useReducer=function(n,t,e){return _($,O,T,S(n,t,e))},n.useRef=function(n){var t=g(),e=t.i,r=t.s;return e===r.length&&r.push({current:n}),r[t.i++]},n.useState=function(n){return _($,O,T,function(n){return S(M,n)}(n))},Object.defineProperty(n,"__esModule",{value:!0}),n}({});
/*! (c) Andrea Giammarchi - ISC */()}function e(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,r=new Array(t);e<t;e++)r[e]=n[e];return r}var r={};r.CustomEvent="function"==typeof CustomEvent?CustomEvent:function(n){return t[n]=new t("").constructor[n],t;function t(n,t){t||(t={});var e=document.createEvent("CustomEvent");return e.initCustomEvent(n,!!t.bubbles,!!t.cancelable,t.detail),e}}("prototype");var u=r.CustomEvent,o=function(n,t,e,r){var u=new WeakMap,o=new WeakMap,i=new WeakMap,c=function(n){return u.has(n)},l=function(n){c(n)&&(f(n,n.removeEventListener,u.get(n)),u.delete(n))},f=function(n,t,e){t.call(n,"disconnected",e),t.call(n,"connected",e)},s=function(n,t,e,r){for(var u=n.length,o=0;o<u;o++)v(n[o],t,e,r)},v=function(n,r,u,o){c(n)&&!u.has(n)&&(o.delete(n),u.set(n,0),n.dispatchEvent(new(e||CustomEvent)(r))),s(n[t||"children"]||[],r,u,o)},h=new(r||MutationObserver)((function(n){for(var t=n.length,e=0;e<t;e++){var r=n[e],u=r.removedNodes,a=r.addedNodes;s(u,"disconnected",i,o),s(a,"connected",o,i)}}));return h.observe(n||document,{subtree:!0,childList:!0}),{has:c,connect:function(n,t){l(n),(t||(t={})).handleEvent||(t.handleEvent=a),f(n,n.addEventListener,t),u.set(n,t)},disconnect:l,kill:function(){h.disconnect()}}};function a(n){n.type in this&&this[n.type](n)}var i="function"==typeof Promise?Promise:function(n){var t,e=[],r=0;return n((function(n){t=n,r=1,e.splice(0).forEach(u)})),{then:u};function u(n){return r?setTimeout(n,0,t):e.push(n),this}},c=null,l=new Set,f=new WeakMap,s=function(n){var t=n.$,e=n.r,r=n.h;b(e)&&(h.get(r).delete(n),e()),b(n.r=t())&&h.get(r).add(n)},v=function(){var n=l;l=new Set,n.forEach((function(n){var t=n.h,e=n.c,r=n.a;n.e&&t.apply(e,r)}))},h=new WeakMap,d=[],p=[];function m(n,t){return n!==this[t]}var y=function(n){var t=h.get(n);t&&E.then((function(){t.forEach((function(n){n.r(),n.r=null})),t.clear()}))},g=function(){return f.get(c)},w=function(n){return h.has(n)},b=function(n){return"function"==typeof n},E=new i((function(n){return n()}));function C(n){var t=this._;this.value!==n&&(this._=new Set,this.value=n,t.forEach((function(n){var t=n.h,e=n.c,r=n.a;t.apply(e,r)})))}var k=function(n,t){var e=g(),r=e.i,u=e.s;return r!==u.length&&t&&!t.some(m,u[r]._)||(u[r]={$:n(),_:t}),u[e.i++].$},A=function(n){return function(t,e){var r=g(),u=r.i,o=r.s,a=r.h,i=u===o.length;r.i++,i&&(h.has(a)||h.set(a,new Set),o[u]={$:t,_:e,r:null,h:a}),(i||!e||e.some(m,o[u]._))&&n.push(o[u]),o[u].$=t,o[u]._=e}},x=A(d),N=A(p),M=function(n,t){return b(t)?t(n):t},S=function(n,t,e){var r=g(),u=r.i,o=r.s;u===o.length&&o.push({$:b(e)?e(t):M(void 0,t),set:function(t){o[u].$=n(o[u].$,t),function(n){l.has(n)||(n.e=1,l.add(n),E.then(v))}(r)}});var a=o[r.i++];return[a.$,a.set]},$=null,O=null,T=null,L=new WeakMap,_=function(n,t,e,r){return n?[r[0],function(u){L.has(n)||(L.set(n,0),E.then((function(){L.delete(n),n.apply(t,e)}))),r[1](u)}]:r},W=function(n,t){return function(n){var t={h:e,c:null,a:null,e:0,i:0,s:[]};return f.set(e,t),e;function e(){var r=c;c=e,t.e=t.i=0;try{return n.apply(t.c=this,t.a=arguments)}finally{c=r,d.length&&E.then(d.forEach.bind(d.splice(0),s)),p.length&&p.splice(0).forEach(s)}}}(t?function t(){var e=$,r=O,u=T;$=t,O=this,T=arguments;try{return n.apply(O,T)}finally{$=e,O=r,T=u}}:n)},j=null,R=function(n){var t=n.firstChild;if(t&&1!==t.nodeType&&!(t=t.nextElementSibling))throw"unobservable";return t},B=function n(t){var e=t.nodeType;if(e)return 1===e?t:R(t);var r=t.valueOf();return r!==t?n(r):R(r)},D=function(n,t){var e=W(n,t);return function(){var n=e.apply(this,arguments);if(w(e)){var t=B(n);j||(j=o(t.ownerDocument,"children",u)),j.has(t)||j.connect(t,{disconnected:function(){y(e)}})}return n}},H=function(n){return{get:function(t){return n.get(t)},set:function(t,e){return n.set(t,e),e}}},P=Array.isArray,z=[],I=z.indexOf,q=z.slice,F=/([^\s\\>"'=]+)\s*=\s*(['"]?)$/,U=/^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i,G=/<[a-z][^>]+$/i,J=/>[^<>]*$/,K=/<([a-z]+[a-z0-9:._-]*)([^>]*?)(\/>)/gi,Q=/\s+$/,V=function n(t,e){return 0<e--&&(G.test(t[e])||!J.test(t[e])&&n(t,e))},X=function(n,t,e){return U.test(t)?n:"<".concat(t).concat(e.replace(Q,""),"></").concat(t,">")},Y=function(n,t,e){for(var r=[],u=n.length,o=function(e){var u=n[e-1];r.push(F.test(u)&&V(n,e)?u.replace(F,(function(n,r,u){return"".concat(t).concat(e-1,"=").concat(u||'"').concat(r).concat(u?"":'"')})):"".concat(u,"\x3c!--").concat(t).concat(e-1,"--\x3e"))},a=1;a<u;a++)o(a);r.push(n[u-1]);var i=r.join("").trim();return e?i:i.replace(K,X)},Z=function(n,t){return 111===n.nodeType?1/t<0?t?function(n){var t=n.firstChild,e=n.lastChild,r=document.createRange();return r.setStartAfter(t),r.setEndAfter(e),r.deleteContents(),t}(n):n.lastChild:t?n.valueOf():n.firstChild:n},nn=function(n){var t="fragment",e="template",r="content"in o(e)?function(n){var t=o(e);return t.innerHTML=n,t.content}:function(n){var r=o(t),a=o(e),i=null;if(/^[^\S]*?<(col(?:group)?|t(?:head|body|foot|r|d|h))/i.test(n)){var c=RegExp.$1;a.innerHTML="<table>"+n+"</table>",i=a.querySelectorAll(c)}else a.innerHTML=n,i=a.childNodes;return u(r,i),r};return function(n,t){return("svg"===t?a:r)(n)};function u(n,t){for(var e=t.length;e--;)n.appendChild(t[0])}function o(e){return e===t?n.createDocumentFragment():n.createElementNS("http://www.w3.org/1999/xhtml",e)}function a(n){var e=o(t),r=o("div");return r.innerHTML='<svg xmlns="http://www.w3.org/2000/svg">'+n+"</svg>",u(e,r.firstChild.childNodes),e}}(document),tn=function(n,t){return n.childNodes[t]},en=function(n){for(var t=[],e=n.parentNode;e;)t.push(I.call(e.childNodes,n)),e=(n=e).parentNode;return t},rn=document,un=rn.createTreeWalker,on=rn.importNode,an=1!=on.length,cn=an?function(n,t){return on.call(document,nn(n,t),!0)}:nn,ln=an?function(n){return un.call(document,n,129,null,!1)}:function(n){return un.call(document,n,129)},fn=function(n,t,e){return function(n,t,e,r,u){for(var o=e.length,a=t.length,i=o,c=0,l=0,f=null;c<a||l<i;)if(a===c)for(var s=i<o?l?r(e[l-1],-0).nextSibling:r(e[i-l],0):u;l<i;)n.insertBefore(r(e[l++],1),s);else if(i===l)for(;c<a;)f&&f.has(t[c])||n.removeChild(r(t[c],-1)),c++;else if(t[c]===e[l])c++,l++;else if(t[a-1]===e[i-1])a--,i--;else if(t[c]===e[i-1]&&e[l]===t[a-1]){var v=r(t[--a],-1).nextSibling;n.insertBefore(r(e[l++],1),r(t[c++],-1).nextSibling),n.insertBefore(r(e[--i],1),v),t[a]=e[i]}else{if(!f){f=new Map;for(var h=l;h<i;)f.set(e[h],h++)}if(f.has(t[c])){var d=f.get(t[c]);if(l<d&&d<i){for(var p=c,m=1;++p<a&&p<i&&f.get(t[p])===d+m;)m++;if(m>d-l)for(var y=r(t[c],0);l<d;)n.insertBefore(r(e[l++],1),y);else n.replaceChild(r(e[l++],1),r(t[c++],-1))}else c++}else n.removeChild(r(t[c++],-1))}return e}(n.parentNode,t,e,Z,n)},sn=function(n,t){return"ref"===t?function(n){return function(t){"function"==typeof t?t(n):t.current=n}}(n):"aria"===t?function(n){return function(t){for(var e in t){var r="role"===e?e:"aria-".concat(e),u=t[e];null==u?n.removeAttribute(r):n.setAttribute(r,u)}}}(n):".dataset"===t?function(n){var t=n.dataset;return function(n){for(var e in n){var r=n[e];null==r?delete t[e]:t[e]=r}}}(n):"."===t.slice(0,1)?function(n,t){return function(e){n[t]=e}}(n,t.slice(1)):"on"===t.slice(0,2)?function(n,t){var e,r=t.slice(2);return!(t in n)&&t.toLowerCase()in n&&(r=r.toLowerCase()),function(t){var u=P(t)?t:[t,!1];e!==u[0]&&(e&&n.removeEventListener(r,e,u[1]),(e=u[0])&&n.addEventListener(r,e,u[1]))}}(n,t):function(n,t){var e,r=!0,u=document.createAttributeNS(null,t);return function(t){e!==t&&(null==(e=t)?r||(n.removeAttributeNode(u),r=!0):(u.value=t,r&&(n.setAttributeNodeNS(u),r=!1)))}}(n,t)};function vn(n){var t=n.type,e=n.path.reduceRight(tn,this);return"node"===t?function(n){var t,e,r=[];return function u(o){switch(typeof o){case"string":case"number":case"boolean":t!==o&&(t=o,e?e.textContent=o:e=document.createTextNode(o),r=fn(n,r,[e]));break;case"object":case"undefined":if(null==o){t!=o&&(t=o,r=fn(n,r,[]));break}if(P(o)){t=o,0===o.length?r=fn(n,r,[]):"object"==typeof o[0]?r=fn(n,r,o):u(String(o));break}"ELEMENT_NODE"in o&&t!==o&&(t=o,r=fn(n,r,11===o.nodeType?q.call(o.childNodes):[o]))}}}(e):"attr"===t?sn(e,n.name):function(n){var t;return function(e){t!=e&&(t=e,n.textContent=null==e?"":e)}}(e)}var hn="isµ",dn=H(new WeakMap),pn=function(n,t){var e=dn.get(t)||dn.set(t,function(n,t){for(var e=Y(t,hn,"svg"===n),r=cn(e,n),u=ln(r),o=[],a=t.length-1,i=0,c="".concat(hn).concat(i);i<a;){var l=u.nextNode();if(!l)throw"bad template: ".concat(e);if(8===l.nodeType)l.textContent===c&&(o.push({type:"node",path:en(l)}),c="".concat(hn).concat(++i));else{for(;l.hasAttribute(c);)o.push({type:"attr",path:en(l),name:l.getAttribute(c)}),l.removeAttribute(c),c="".concat(hn).concat(++i);/^(?:style|textarea)$/i.test(l.tagName)&&l.textContent.trim()==="\x3c!--".concat(c,"--\x3e")&&(l.textContent="",o.push({type:"text",path:en(l)}),c="".concat(hn).concat(++i))}}return{content:r,nodes:o}}(n,t)),r=e.content,u=e.nodes,o=on.call(document,r,!0);return{content:o,updates:u.map(vn,o)}},mn=function(n,t){var e=t.type,r=t.template,u=t.values,o=u.length;yn(n,u,o);var a=n.entry;a&&a.template===r&&a.type===e||(n.entry=a=function(n,t){var e=pn(n,t);return{type:n,template:t,content:e.content,updates:e.updates,wire:null}}(e,r));for(var i=a,c=i.content,l=i.updates,f=i.wire,s=0;s<o;s++)l[s](u[s]);return f||(a.wire=function(n){var t=n.childNodes,e=t.length;if(e<2)return e?t[0]:n;var r=q.call(t,0);return{ELEMENT_NODE:1,nodeType:111,firstChild:r[0],lastChild:r[e-1],valueOf:function(){if(t.length!==e)for(var u=0;u<e;)n.appendChild(r[u++]);return n}}}(c))},yn=function n(t,e,r){for(var u=t.stack,o=0;o<r;o++){var a=e[o];a instanceof gn?e[o]=mn(u[o]||(u[o]={stack:[],entry:null,wire:null}),a):P(a)?n(u[o]||(u[o]={stack:[],entry:null,wire:null}),a,a.length):u[o]=null}r<u.length&&u.splice(r)};function gn(n,t,e){this.type=n,this.template=t,this.values=e}var wn=Object.create,bn=Object.defineProperties,En=function(n){var t=H(new WeakMap);return bn((function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),u=1;u<e;u++)r[u-1]=arguments[u];return new gn(n,t,r)}),{for:{value:function(e,r){var u=t.get(e)||t.set(e,wn(null));return u[r]||(u[r]=function(t){return function(e){for(var r=arguments.length,u=new Array(r>1?r-1:0),o=1;o<r;o++)u[o-1]=arguments[o];return mn(t,{type:n,template:e,values:u})}}({stack:[],entry:null,wire:null}))}},node:{value:function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),u=1;u<e;u++)r[u-1]=arguments[u];return mn({stack:[],entry:null,wire:null},{type:n,template:t,values:r}).valueOf()}}})},Cn=H(new WeakMap),kn=En("html"),An=En("svg"),xn=Object.create,Nn=function(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;r<t;r++)e[r-1]=arguments[r];return new gn("html",n,e)};Nn.for=jn(kn);var Mn=function(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),r=1;r<t;r++)e[r-1]=arguments[r];return new gn("svg",n,e)};Mn.for=jn(An);var Sn=H(new WeakMap),$n=function(){return{s:[],e:null}},On=function(n,t){var e=t.f,r=t.c,u=t.a,o=n.e;return o&&o.f===e||(n.e=o={f:e,h:null,$:null},o.h=function(n,t){return D((function(){var e=t.f.apply(this,arguments);return e instanceof gn?(Tn(n,e),t.$=_n(t,e)):t.$=e,t.$}))}($n(),o)),o.h.apply(r,u)},Tn=function(n,t){var e=t.values;Ln(n,e,e.length)},Ln=function n(t,e,r){for(var u=t.s,o=0;o<r;o++){var a=e[o];a instanceof Wn?e[o]=On(u[o]||(u[o]=$n()),a):a instanceof gn?Tn(u[o]||(u[o]=$n()),a):P(a)?n(u[o]||(u[o]=$n()),a,a.length):u[o]=null}r<u.length&&u.splice(r)},_n=function(n,e){var r=e.type,u=e.template,o=e.values;return("svg"===r?An:kn).for(n,r).apply(void 0,[u].concat(t(o)))};function Wn(n,t,e){this.f=n,this.c=t,this.a=e}function jn(n){var t=H(new WeakMap);return function(e,r){var u=t.get(e)||t.set(e,xn(null)),o=u[r]||(u[r]=$n());return function(t){for(var u=arguments.length,a=new Array(u>1?u-1:0),i=1;i<u;i++)a[i-1]=arguments[i];return Ln(o,a),n.for(e,r).apply(void 0,[t].concat(a))}}}return n.Component=function(n){return function(){return new Wn(n,this,arguments)}},n.createContext=function(n){return{_:new Set,provide:C,value:n}},n.html=Nn,n.render=function(n,t){return(Sn.get(n)||Sn.set(n,{c:$n(),h:D((function(t){var e="function"==typeof t?t():t;return function(n,t){var e="function"==typeof t?t():t,r=Cn.get(n)||Cn.set(n,{stack:[],entry:null,wire:null}),u=e instanceof gn?mn(r,e):e;return u!==r.wire&&(r.wire=u,n.textContent="",n.appendChild(u.valueOf())),n}(n,e instanceof Wn?On(this.c,e):(Tn(this.c,e),e))}),n)})).h(t)},n.svg=Mn,n.useCallback=function(n,t){return k((function(){return n}),t)},n.useContext=function(n){var t=n._,e=n.value;return t.add(g()),e},n.useEffect=x,n.useLayoutEffect=N,n.useMemo=k,n.useReducer=function(n,t,e){return _($,O,T,S(n,t,e))},n.useRef=function(n){var t=g(),e=t.i,r=t.s;return e===r.length&&r.push({current:n}),r[t.i++]},n.useState=function(n){return _($,O,T,function(n){return S(M,n)}(n))},Object.defineProperty(n,"__esModule",{value:!0}),n}({});
{
"name": "uland",
"version": "0.4.2",
"version": "0.4.3",
"main": "./cjs/index.js",

@@ -44,3 +44,3 @@ "scripts": {

"uarray": "^1.0.0",
"uhooks-dom": "^0.1.8",
"uhooks-dom": "^0.1.9",
"uhtml": "^2.1.4",

@@ -47,0 +47,0 @@ "umap": "^1.0.2"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc