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.8.0 to 0.8.1

4

async.js

@@ -1,2 +0,2 @@

self.uland=function(e){"use strict";var t=CustomEvent;const n=(e,t,n,s)=>{const l=new WeakMap,a=new WeakMap,o=new WeakMap,c=e=>l.has(e),i=e=>{c(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)=>{c(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",o,a),h(r,"connected",a,o)}}));return f.observe(e||document,{subtree:!0,childList:!0}),{has:c,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,a=new Set;const o=e=>{const{$:t,r:n,h:r}=e;p(n)&&(i.get(r).delete(e),n()),p(e.r=t())&&i.get(r).add(e)},c=()=>{const e=a;a=new Set,e.forEach((({h:e,c:t,a:n,e:r})=>{r&&e.apply(t,n)}))},i=new WeakMap,u=[],h=[];function d(e,t){return e!==this[t]}const f=()=>l,p=e=>"function"==typeof e,g=e=>{const t={h:n,c:null,a:null,e:0,i:0,s:[]};return n;function n(){const n=l;l=t,t.e=t.i=0;try{return e.apply(t.c=this,t.a=arguments)}finally{l=n,u.length&&w.then(u.forEach.bind(u.splice(0),o)),h.length&&h.splice(0).forEach(o)}}},w=new s((e=>e()));function v(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 m=(e,t)=>{const n=f(),{i:r,s:s}=n;return r!==s.length&&t&&!t.some(d,s[r]._)||(s[r]={$:e(),_:t}),s[n.i++].$},y=e=>(t,n)=>{const r=f(),{i:s,s:l,h:a}=r,o=s===l.length;r.i++,o&&(i.has(a)||i.set(a,new Set),l[s]={$:t,_:n,r:null,h:a}),(o||!n||n.some(d,l[s]._))&&e.push(l[s]),l[s].$=t,l[s]._=n},b=y(u),$=y(h),k=(e,t)=>p(t)?t(e):t,E=(e,t,n)=>{const r=f(),{i:s,s:l}=r;s===l.length&&l.push({$:p(n)?n(t):k(void 0,t),set:t=>{l[s].$=e(l[s].$,t),(e=>{a.has(e)||(e.e=1,a.add(e),w.then(c))})(r)}});const{$:o,set:i}=l[r.i++];return[o,i]},C=new WeakMap,x=e=>(e=>{const t=i.get(e);t&&w.then((()=>{t.forEach((e=>{e.r(),e.r=null})),t.clear()}))})(C.get(e)),N=e=>(e=>i.has(e))(C.get(e)),M=e=>{const t=g(e);return C.set(n,t),n;async function n(){return await t.apply(this,arguments)}};
self.uland=function(e){"use strict";var t=CustomEvent;const n=(e,t,n,s)=>{const l=new WeakMap,a=new WeakMap,o=new WeakMap,c=e=>l.has(e),i=e=>{c(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++)f(e[l],t,n,r)},f=(e,r,s,l)=>{c(e)&&!s.has(e)&&(l.delete(e),s.set(e,0),e.dispatchEvent(new(n||CustomEvent)(r))),h(e[t||"children"]||[],r,s,l)},d=new(s||MutationObserver)((e=>{for(let{length:t}=e,n=0;n<t;n++){const{removedNodes:t,addedNodes:r}=e[n];h(t,"disconnected",o,a),h(r,"connected",a,o)}}));return d.observe(e||document,{subtree:!0,childList:!0}),{has:c,connect:(e,t)=>{i(e),(t||(t={})).handleEvent||(t.handleEvent=r),u(e,e.addEventListener,t),l.set(e,t)},disconnect:i,kill(){d.disconnect()}}};function r(e){e.type in this&&this[e.type](e)}var s=Promise;let l=null,a=new Set;const o=e=>{const{$:t,r:n,h:r}=e;p(n)&&(i.get(r).delete(e),n()),p(e.r=t())&&i.get(r).add(e)},c=()=>{const e=a;a=new Set,e.forEach((({h:e,c:t,a:n,e:r})=>{r&&e.apply(t,n)}))},i=new WeakMap,u=[],h=[];function f(e,t){return e!==this[t]}const d=()=>l,p=e=>"function"==typeof e,g=e=>{const t={h:n,c:null,a:null,e:0,i:0,s:[]};return n;function n(){const n=l;l=t,t.e=t.i=0;try{return e.apply(t.c=this,t.a=arguments)}finally{l=n,u.length&&w.then(u.forEach.bind(u.splice(0),o)),h.length&&h.splice(0).forEach(o)}}},w=new s((e=>e()));function v(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 m=(e,t)=>{const n=d(),{i:r,s:s}=n;return r!==s.length&&t&&!t.some(f,s[r]._)||(s[r]={$:e(),_:t}),s[n.i++].$},y=e=>(t,n)=>{const r=d(),{i:s,s:l,h:a}=r,o=s===l.length;r.i++,o&&(i.has(a)||i.set(a,new Set),l[s]={$:t,_:n,r:null,h:a}),(o||!n||n.some(f,l[s]._))&&e.push(l[s]),l[s].$=t,l[s]._=n},b=y(u),$=y(h),k=(e,t)=>p(t)?t(e):t,E=(e,t,n)=>{const r=d(),{i:s,s:l}=r;s===l.length&&l.push({$:p(n)?n(t):k(void 0,t),set:t=>{l[s].$=e(l[s].$,t),(e=>{a.has(e)||(e.e=1,a.add(e),w.then(c))})(r)}});const{$:o,set:i}=l[r.i++];return[o,i]},C=new WeakMap,x=e=>(e=>{const t=i.get(e);t&&w.then((()=>{t.forEach((e=>{e.r(),e.r=null})),t.clear()}))})(C.get(e)),N=e=>(e=>i.has(e))(C.get(e)),M=e=>{const t=g(e);return C.set(n,t),n;async function n(){return await t.apply(this,arguments)}};
/*! (c) Andrea Giammarchi - ISC */

@@ -7,2 +7,2 @@ let S=null,A=null,L=null;const T=new WeakMap,W=new WeakMap,_=(e,t,n,r)=>{const s=s=>{T.has(e)||(T.set(e,0),w.then((()=>{T.delete(e),e.apply(t,n)}))),r(s)};return W.set(r,s),s},O=(e,t,n,r)=>e?[r[0],W.get(r[1])||_(e,t,n,r[1])]:r,j=(e,t)=>{const n=M(t?async function(){const[t,r,s]=[S,A,L];[S,A,L]=[n,this,arguments];try{return await e.apply(A,L)}finally{[S,A,L]=[t,r,s]}}:e);return n};

/*! (c) Andrea Giammarchi - ISC */
self.Z=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),a=l(n),o=null;if(/^[^\S]*?<(col(?:group)?|t(?:head|body|foot|r|d|h))/i.test(e)){var c=RegExp.$1;a.innerHTML="<table>"+e+"</table>",o=a.querySelectorAll(c)}else a.innerHTML=e,o=a.childNodes;return s(r,o),r};return function(e,t){return("svg"===t?a: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 a(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 ee=({childNodes:e},t)=>e[t],te=e=>{const t=[];let{parentNode:n}=e;for(;n;)t.push(V.call(n.childNodes,e)),n=(e=n).parentNode;return t},{createTreeWalker:ne,importNode:re}=document,se=1!=re.length,le=se?(e,t,n)=>re.call(document,Z(e,t,n),!0):Z,ae=se?e=>ne.call(document,e,129,null,!1):e=>ne.call(document,e,129),oe=(e,t,n)=>((e,t,n,r,s)=>{const l=n.length;let a=t.length,o=l,c=0,i=0,u=null;for(;c<a||i<o;)if(a===c){const t=o<l?i?r(n[i-1],-0).nextSibling:r(n[o-i],0):s;for(;i<o;)e.insertBefore(r(n[i++],1),t)}else if(o===i)for(;c<a;)u&&u.has(t[c])||e.removeChild(r(t[c],-1)),c++;else if(t[c]===n[i])c++,i++;else if(t[a-1]===n[o-1])a--,o--;else if(t[c]===n[o-1]&&n[i]===t[a-1]){const s=r(t[--a],-1).nextSibling;e.insertBefore(r(n[i++],1),r(t[c++],-1).nextSibling),e.insertBefore(r(n[--o],1),s),t[a]=n[o]}else{if(!u){u=new Map;let e=i;for(;e<o;)u.set(n[e],e++)}if(u.has(t[c])){const s=u.get(t[c]);if(i<s&&s<o){let l=c,h=1;for(;++l<a&&l<o&&u.get(t[l])===s+h;)h++;if(h>s-i){const l=r(t[c],0);for(;i<s;)e.insertBefore(r(n[i++],1),l)}else e.replaceChild(r(n[i++],1),r(t[c++],-1))}else c++}else e.removeChild(r(t[c++],-1))}return n})(e.parentNode,t,n,Y,e),ce=e=>{let t,n,r=[];const s=l=>{switch(typeof l){case"string":case"number":case"boolean":t!==l&&(t=l,n?n.nodeValue=l:n=document.createTextNode(l),r=oe(e,r,[n]));break;case"function":s(l(node));break;case"object":case"undefined":if(null==l){t!=l&&(t=l,r=oe(e,r,[]));break}if(P(l)){t=l,0===l.length?r=oe(e,r,[]):"object"==typeof l[0]?r=oe(e,r,l):s(String(l));break}"ELEMENT_NODE"in l&&t!==l&&(t=l,r=oe(e,r,11===l.nodeType?q.call(l.childNodes):[l]))}};return s},ie=(e,t)=>{switch(t[0]){case"?":return((e,t,n)=>r=>{n!==!!r&&((n=!!r)?e.setAttribute(t,""):e.removeAttribute(t))})(e,t.slice(1),!1);case".":return((e,t)=>"dataset"===t?(({dataset:e})=>t=>{for(const n in t){const r=t[n];null==r?delete e[n]:e[n]=r}})(e):n=>{e[t]=n})(e,t.slice(1));case"o":if("n"===t[1])return((e,t)=>{let n,r=t.slice(2);return!(t in e)&&t.toLowerCase()in e&&(r=r.toLowerCase()),t=>{const s=P(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)}switch(t){case"ref":return(e=>t=>{"function"==typeof t?t(e):t.current=e})(e);case"aria":return(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)}return((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 ue(e){const{type:t,path:n}=e,r=n.reduceRight(ee,this);return"node"===t?ce(r):"attr"===t?ie(r,e.name):(e=>{let t;return n=>{t!=n&&(t=n,e.textContent=null==n?"":n)}})(r)}const he="isµ",de=z(new WeakMap),fe=/^(?:plaintext|script|style|textarea|title|xmp)$/i,pe=(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(F.test(s)&&U(e,n)?s.replace(F,((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(K,X)})(t,he,"svg"===e),r=le(n,e),s=ae(r),l=[],a=t.length-1;let o=0,c=`isµ${o}`;for(;o<a;){const e=s.nextNode();if(!e)throw`bad template: ${n}`;if(8===e.nodeType)e.nodeValue===c&&(l.push({type:"node",path:te(e)}),c="isµ"+ ++o);else{for(;e.hasAttribute(c);)l.push({type:"attr",path:te(e),name:e.getAttribute(c)}),e.removeAttribute(c),c="isµ"+ ++o;fe.test(e.tagName)&&e.textContent.trim()===`\x3c!--${c}--\x3e`&&(e.textContent="",l.push({type:"text",path:te(e)}),c="isµ"+ ++o)}}return{content:r,nodes:l}},ge=(e,t)=>{const{content:n,nodes:r}=de.get(t)||de.set(t,pe(e,t)),s=re.call(document,n,!0);return{content:s,updates:r.map(ue,s)}},we=(e,{type:t,template:n,values:r})=>{const{length:s}=r;ve(e,r,s);let{entry:l}=e;l&&l.template===n&&l.type===t||(e.entry=l=((e,t)=>{const{content:n,updates:r}=ge(e,t);return{type:e,template:t,content:n,updates:r,wire:null}})(t,n));const{content:a,updates:o,wire:c}=l;for(let e=0;e<s;e++)o[e](r[e]);return c||(l.wire=(e=>{const{childNodes:t}=e,{length:n}=t;if(n<2)return n?t[0]:e;const r=q.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}}})(a))},ve=({stack:e},t,n)=>{for(let r=0;r<n;r++){const n=t[r];n instanceof me?t[r]=we(e[r]||(e[r]={stack:[],entry:null,wire:null}),n):P(n)?ve(e[r]||(e[r]={stack:[],entry:null,wire:null}),n,n.length):e[r]=null}n<e.length&&e.splice(n)};function me(e,t,n){this.type=e,this.template=t,this.values=n}const{create:ye,defineProperties:be}=Object,$e=e=>{const t=z(new WeakMap);return be(((t,...n)=>new me(e,t,n)),{for:{value(n,r){const s=t.get(n)||t.set(n,ye(null));return s[r]||(s[r]=(t=>(n,...r)=>we(t,{type:e,template:n,values:r}))({stack:[],entry:null,wire:null}))}},node:{value:(t,...n)=>we({stack:[],entry:null,wire:null},{type:e,template:t,values:n}).valueOf()}})},ke=z(new WeakMap),Ee=$e("html"),Ce=$e("svg"),{create:xe}=Object,Ne=(e,...t)=>new me("html",e,t);Ne.for=Re(Ee);const Me=(e,...t)=>new me("svg",e,t);Me.for=Re(Ce);const Se=z(new WeakMap),Ae=(e,t)=>H((async function(){const n=await t.f.apply(this,arguments);return n instanceof me?(await We(e,n),t.$=Oe(t,n)):t.$=n,t.$})),Le=()=>({s:[],e:null}),Te=(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=Ae(Le(),s)),s.h.apply(n,r)},We=async(e,{values:t})=>{await _e(e,t,t.length)},_e=async(e,t,n)=>{const{s:r}=e;for(let e=0;e<n;e++){const n=await t[e];n instanceof je?t[e]=await Te(r[e]||(r[e]=Le()),n):n instanceof me?await We(r[e]||(r[e]=Le()),n):P(n)?await _e(r[e]||(r[e]=Le()),n,n.length):r[e]=null}n<r.length&&r.splice(n)},Oe=(e,{type:t,template:n,values:r})=>("svg"===t?Ce:Ee).for(e,t)(n,...r);function je(e,t,n){this.f=e,this.c=t,this.a=n}function Re(e){const t=z(new WeakMap);return(n,r)=>{const s=t.get(n)||t.set(n,xe(null)),l=s[r]||(s[r]=Le());return async(t,...s)=>(await _e(l,s),e.for(n,r)(t,...s))}}return e.Component=function(e){return function(){return new je(e,this,arguments)}},e.createContext=e=>({_:new Set,provide:v,value:e}),e.html=Ne,e.render=(e,t)=>(Se.get(e)||Se.set(e,{c:Le(),h:H((async function(t){const n=await("function"==typeof t?t():t);return((e,t)=>{const n="function"==typeof t?t():t,r=ke.get(e)||ke.set(e,{stack:[],entry:null,wire:null}),s=n instanceof me?we(r,n):n;return s!==r.wire&&(r.wire=s,e.textContent="",e.appendChild(s.valueOf())),e})(e,n instanceof je?await Te(this.c,n):(await We(this.c,n),n))}),e)})).h(t),e.svg=Me,e.useCallback=(e,t)=>m((()=>e),t),e.useContext=({_:e,value:t})=>(e.add(f()),t),e.useEffect=b,e.useLayoutEffect=$,e.useMemo=m,e.useReducer=(e,t,n)=>O(S,A,L,E(e,t,n)),e.useRef=e=>{const t=f(),{i:n,s:r}=t;return n===r.length&&r.push({current:e}),r[t.i++]},e.useState=e=>O(S,A,L,(e=>E(k,e))(e)),e}({});
self.Z=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),a=l(n),o=null;if(/^[^\S]*?<(col(?:group)?|t(?:head|body|foot|r|d|h))/i.test(e)){var c=RegExp.$1;a.innerHTML="<table>"+e+"</table>",o=a.querySelectorAll(c)}else a.innerHTML=e,o=a.childNodes;return s(r,o),r};return function(e,t){return("svg"===t?a: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 a(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 ee=({childNodes:e},t)=>e[t],te=e=>{const t=[];let{parentNode:n}=e;for(;n;)t.push(V.call(n.childNodes,e)),n=(e=n).parentNode;return t},{createTreeWalker:ne,importNode:re}=document,se=1!=re.length,le=se?(e,t,n)=>re.call(document,Z(e,t,n),!0):Z,ae=se?e=>ne.call(document,e,129,null,!1):e=>ne.call(document,e,129),oe=(e,t,n)=>((e,t,n,r,s)=>{const l=n.length;let a=t.length,o=l,c=0,i=0,u=null;for(;c<a||i<o;)if(a===c){const t=o<l?i?r(n[i-1],-0).nextSibling:r(n[o-i],0):s;for(;i<o;)e.insertBefore(r(n[i++],1),t)}else if(o===i)for(;c<a;)u&&u.has(t[c])||e.removeChild(r(t[c],-1)),c++;else if(t[c]===n[i])c++,i++;else if(t[a-1]===n[o-1])a--,o--;else if(t[c]===n[o-1]&&n[i]===t[a-1]){const s=r(t[--a],-1).nextSibling;e.insertBefore(r(n[i++],1),r(t[c++],-1).nextSibling),e.insertBefore(r(n[--o],1),s),t[a]=n[o]}else{if(!u){u=new Map;let e=i;for(;e<o;)u.set(n[e],e++)}if(u.has(t[c])){const s=u.get(t[c]);if(i<s&&s<o){let l=c,h=1;for(;++l<a&&l<o&&u.get(t[l])===s+h;)h++;if(h>s-i){const l=r(t[c],0);for(;i<s;)e.insertBefore(r(n[i++],1),l)}else e.replaceChild(r(n[i++],1),r(t[c++],-1))}else c++}else e.removeChild(r(t[c++],-1))}return n})(e.parentNode,t,n,Y,e),ce=(e,t)=>{switch(t[0]){case"?":return((e,t,n)=>r=>{n!==!!r&&((n=!!r)?e.setAttribute(t,""):e.removeAttribute(t))})(e,t.slice(1),!1);case".":return((e,t)=>"dataset"===t?(({dataset:e})=>t=>{for(const n in t){const r=t[n];null==r?delete e[n]:e[n]=r}})(e):n=>{e[t]=n})(e,t.slice(1));case"o":if("n"===t[1])return((e,t)=>{let n,r=t.slice(2);return!(t in e)&&t.toLowerCase()in e&&(r=r.toLowerCase()),t=>{const s=P(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)}switch(t){case"ref":return(e=>t=>{"function"==typeof t?t(e):t.current=e})(e);case"aria":return(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)}return((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 ie(e){const{type:t,path:n}=e,r=n.reduceRight(ee,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=document.createTextNode("")),n.nodeValue=l,r=oe(e,r,[n]));break;case"object":case"undefined":if(null==l){t!=l&&(t=l,r=oe(e,r,[]));break}if(P(l)){t=l,0===l.length?r=oe(e,r,[]):"object"==typeof l[0]?r=oe(e,r,l):s(String(l));break}"ELEMENT_NODE"in l&&t!==l&&(t=l,r=oe(e,r,11===l.nodeType?q.call(l.childNodes):[l]));break;case"function":s(l(e))}};return s})(r):"attr"===t?ce(r,e.name):(e=>{let t;return n=>{t!=n&&(t=n,e.textContent=null==n?"":n)}})(r)}const ue="isµ",he=z(new WeakMap),fe=/^(?:plaintext|script|style|textarea|title|xmp)$/i,de=(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(F.test(s)&&U(e,n)?s.replace(F,((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(K,X)})(t,ue,"svg"===e),r=le(n,e),s=ae(r),l=[],a=t.length-1;let o=0,c=`isµ${o}`;for(;o<a;){const e=s.nextNode();if(!e)throw`bad template: ${n}`;if(8===e.nodeType)e.nodeValue===c&&(l.push({type:"node",path:te(e)}),c="isµ"+ ++o);else{for(;e.hasAttribute(c);)l.push({type:"attr",path:te(e),name:e.getAttribute(c)}),e.removeAttribute(c),c="isµ"+ ++o;fe.test(e.tagName)&&e.textContent.trim()===`\x3c!--${c}--\x3e`&&(e.textContent="",l.push({type:"text",path:te(e)}),c="isµ"+ ++o)}}return{content:r,nodes:l}},pe=(e,t)=>{const{content:n,nodes:r}=he.get(t)||he.set(t,de(e,t)),s=re.call(document,n,!0);return{content:s,updates:r.map(ie,s)}},ge=(e,{type:t,template:n,values:r})=>{const{length:s}=r;we(e,r,s);let{entry:l}=e;l&&l.template===n&&l.type===t||(e.entry=l=((e,t)=>{const{content:n,updates:r}=pe(e,t);return{type:e,template:t,content:n,updates:r,wire:null}})(t,n));const{content:a,updates:o,wire:c}=l;for(let e=0;e<s;e++)o[e](r[e]);return c||(l.wire=(e=>{const{childNodes:t}=e,{length:n}=t;if(n<2)return n?t[0]:e;const r=q.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}}})(a))},we=({stack:e},t,n)=>{for(let r=0;r<n;r++){const n=t[r];n instanceof ve?t[r]=ge(e[r]||(e[r]={stack:[],entry:null,wire:null}),n):P(n)?we(e[r]||(e[r]={stack:[],entry:null,wire:null}),n,n.length):e[r]=null}n<e.length&&e.splice(n)};function ve(e,t,n){this.type=e,this.template=t,this.values=n}const{create:me,defineProperties:ye}=Object,be=e=>{const t=z(new WeakMap);return ye(((t,...n)=>new ve(e,t,n)),{for:{value(n,r){const s=t.get(n)||t.set(n,me(null));return s[r]||(s[r]=(t=>(n,...r)=>ge(t,{type:e,template:n,values:r}))({stack:[],entry:null,wire:null}))}},node:{value:(t,...n)=>ge({stack:[],entry:null,wire:null},{type:e,template:t,values:n}).valueOf()}})},$e=z(new WeakMap),ke=be("html"),Ee=be("svg"),{create:Ce}=Object,xe=(e,...t)=>new ve("html",e,t);xe.for=je(ke);const Ne=(e,...t)=>new ve("svg",e,t);Ne.for=je(Ee);const Me=z(new WeakMap),Se=(e,t)=>H((async function(){const n=await t.f.apply(this,arguments);return n instanceof ve?(await Te(e,n),t.$=_e(t,n)):t.$=n,t.$})),Ae=()=>({s:[],e:null}),Le=(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=Se(Ae(),s)),s.h.apply(n,r)},Te=async(e,{values:t})=>{await We(e,t)},We=async(e,t)=>{const{s:n}=e,{length:r}=t;for(let e=0;e<r;e++){const r=await t[e];r instanceof Oe?t[e]=await Le(n[e]||(n[e]=Ae()),r):r instanceof ve?await Te(n[e]||(n[e]=Ae()),r):P(r)?await We(n[e]||(n[e]=Ae()),r):n[e]=null}r<n.length&&n.splice(r)},_e=(e,{type:t,template:n,values:r})=>("svg"===t?Ee:ke).for(e,t)(n,...r);function Oe(e,t,n){this.f=e,this.c=t,this.a=n}function je(e){const t=z(new WeakMap);return(n,r)=>{const s=t.get(n)||t.set(n,Ce(null)),l=s[r]||(s[r]=Ae());return async(t,...s)=>(await We(l,s),e.for(n,r)(t,...s))}}return e.Component=function(e){return function(){return new Oe(e,this,arguments)}},e.createContext=e=>({_:new Set,provide:v,value:e}),e.html=xe,e.render=(e,t)=>(Me.get(e)||Me.set(e,{c:Ae(),h:H((async function(t){const n=await("function"==typeof t?t():t);return((e,t)=>{const n="function"==typeof t?t():t,r=$e.get(e)||$e.set(e,{stack:[],entry:null,wire:null}),s=n instanceof ve?ge(r,n):n;return s!==r.wire&&(r.wire=s,e.textContent="",e.appendChild(s.valueOf())),e})(e,n instanceof Oe?await Le(this.c,n):(await Te(this.c,n),n))}),e)})).h(t),e.svg=Ne,e.useCallback=(e,t)=>m((()=>e),t),e.useContext=({_:e,value:t})=>(e.add(d()),t),e.useEffect=b,e.useLayoutEffect=$,e.useMemo=m,e.useReducer=(e,t,n)=>O(S,A,L,E(e,t,n)),e.useRef=e=>{const t=d(),{i:n,s:r}=t;return n===r.length&&r.push({current:e}),r[t.i++]},e.useState=e=>O(S,A,L,(e=>E(k,e))(e)),e}({});

@@ -81,7 +81,7 @@ 'use strict';

const unrollHole = async (info, {values}) => {
await unrollValues(info, values, values.length);
await unrollValues(info, values);
};
const unrollValues = async (info, values, length) => {
const {s} = info;
const unrollValues = async (info, values) => {
const {s} = info, {length} = values;
for (let i = 0; i < length; i++) {

@@ -94,3 +94,3 @@ const hook = await values[i];

else if (isArray(hook))
await unrollValues(s[i] || (s[i] = createCache()), hook, hook.length);
await unrollValues(s[i] || (s[i] = createCache()), hook);
else

@@ -97,0 +97,0 @@ s[i] = null;

@@ -81,7 +81,7 @@ 'use strict';

const unrollHole = /*async*/ (info, {values}) => {
/*await*/ unrollValues(info, values, values.length);
/*await*/ unrollValues(info, values);
};
const unrollValues = /*async*/ (info, values, length) => {
const {s} = info;
const unrollValues = /*async*/ (info, values) => {
const {s} = info, {length} = values;
for (let i = 0; i < length; i++) {

@@ -94,3 +94,3 @@ const hook = /*await*/ values[i];

else if (isArray(hook))
/*await*/ unrollValues(s[i] || (s[i] = createCache()), hook, hook.length);
/*await*/ unrollValues(s[i] || (s[i] = createCache()), hook);
else

@@ -97,0 +97,0 @@ s[i] = null;

@@ -7,2 +7,2 @@ 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=e=>{const{$:t,r:n,h:r}=e;v(n)&&(i.get(r).delete(e),n()),v(e.r=t())&&i.get(r).add(e)},a=()=>{const e=o;o=new Set,e.forEach((({h:e,c:t,a:n,e:r})=>{r&&e.apply(t,n)}))},i=new WeakMap,u=[],h=[];function d(e,t){return e!==this[t]}const f=e=>{const t=i.get(e);t&&w.then((()=>{t.forEach((e=>{e.r(),e.r=null})),t.clear()}))},p=()=>l,g=e=>i.has(e),v=e=>"function"==typeof e,m=e=>{const t={h:n,c:null,a:null,e:0,i:0,s:[]};return n;function n(){const n=l;l=t,t.e=t.i=0;try{return e.apply(t.c=this,t.a=arguments)}finally{l=n,u.length&&w.then(u.forEach.bind(u.splice(0),c)),h.length&&h.splice(0).forEach(c)}}},w=new s((e=>e()));function y(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 b=(e,t)=>{const n=p(),{i:r,s:s}=n;return r!==s.length&&t&&!t.some(d,s[r]._)||(s[r]={$:e(),_:t}),s[n.i++].$},$=e=>(t,n)=>{const r=p(),{i:s,s:l,h:o}=r,c=s===l.length;r.i++,c&&(i.has(o)||i.set(o,new Set),l[s]={$:t,_:n,r:null,h:o}),(c||!n||n.some(d,l[s]._))&&e.push(l[s]),l[s].$=t,l[s]._=n},E=$(u),k=$(h),C=(e,t)=>v(t)?t(e):t,x=(e,t,n)=>{const r=p(),{i:s,s:l}=r;s===l.length&&l.push({$:v(n)?n(t):C(void 0,t),set:t=>{l[s].$=e(l[s].$,t),(e=>{o.has(e)||(e.e=1,o.add(e),w.then(a))})(r)}});const{$:c,set:i}=l[r.i++];return[c,i]};

/*! (c) Andrea Giammarchi - ISC */
self.X=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 Y=({childNodes:e},t)=>e[t],Z=e=>{const t=[];let{parentNode:n}=e;for(;n;)t.push(z.call(n.childNodes,e)),n=(e=n).parentNode;return t},{createTreeWalker:ee,importNode:te}=document,ne=1!=te.length,re=ne?(e,t,n)=>te.call(document,X(e,t,n),!0):X,se=ne?e=>ee.call(document,e,129,null,!1):e=>ee.call(document,e,129),le=(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),oe=e=>{let t,n,r=[];const s=l=>{switch(typeof l){case"string":case"number":case"boolean":t!==l&&(t=l,n?n.nodeValue=l:n=document.createTextNode(l),r=le(e,r,[n]));break;case"function":s(l(node));break;case"object":case"undefined":if(null==l){t!=l&&(t=l,r=le(e,r,[]));break}if(H(l)){t=l,0===l.length?r=le(e,r,[]):"object"==typeof l[0]?r=le(e,r,l):s(String(l));break}"ELEMENT_NODE"in l&&t!==l&&(t=l,r=le(e,r,11===l.nodeType?P.call(l.childNodes):[l]))}};return s},ce=(e,t)=>{switch(t[0]){case"?":return((e,t,n)=>r=>{n!==!!r&&((n=!!r)?e.setAttribute(t,""):e.removeAttribute(t))})(e,t.slice(1),!1);case".":return((e,t)=>"dataset"===t?(({dataset:e})=>t=>{for(const n in t){const r=t[n];null==r?delete e[n]:e[n]=r}})(e):n=>{e[t]=n})(e,t.slice(1));case"o":if("n"===t[1])return((e,t)=>{let n,r=t.slice(2);return!(t in e)&&t.toLowerCase()in e&&(r=r.toLowerCase()),t=>{const s=H(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)}switch(t){case"ref":return(e=>t=>{"function"==typeof t?t(e):t.current=e})(e);case"aria":return(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)}return((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 ae(e){const{type:t,path:n}=e,r=n.reduceRight(Y,this);return"node"===t?oe(r):"attr"===t?ce(r,e.name):(e=>{let t;return n=>{t!=n&&(t=n,e.textContent=null==n?"":n)}})(r)}const ie="isµ",ue=D(new WeakMap),he=/^(?:plaintext|script|style|textarea|title|xmp)$/i,de=(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(V.test(s)&&K(e,n)?s.replace(V,((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,ie,"svg"===e),r=re(n,e),s=se(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.nodeValue===a&&(l.push({type:"node",path:Z(e)}),a="isµ"+ ++c);else{for(;e.hasAttribute(a);)l.push({type:"attr",path:Z(e),name:e.getAttribute(a)}),e.removeAttribute(a),a="isµ"+ ++c;he.test(e.tagName)&&e.textContent.trim()===`\x3c!--${a}--\x3e`&&(e.textContent="",l.push({type:"text",path:Z(e)}),a="isµ"+ ++c)}}return{content:r,nodes:l}},fe=(e,t)=>{const{content:n,nodes:r}=ue.get(t)||ue.set(t,de(e,t)),s=te.call(document,n,!0);return{content:s,updates:r.map(ae,s)}},pe=(e,{type:t,template:n,values:r})=>{const{length:s}=r;ge(e,r,s);let{entry:l}=e;l&&l.template===n&&l.type===t||(e.entry=l=((e,t)=>{const{content:n,updates:r}=fe(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=P.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))},ge=({stack:e},t,n)=>{for(let r=0;r<n;r++){const n=t[r];n instanceof ve?t[r]=pe(e[r]||(e[r]={stack:[],entry:null,wire:null}),n):H(n)?ge(e[r]||(e[r]={stack:[],entry:null,wire:null}),n,n.length):e[r]=null}n<e.length&&e.splice(n)};function ve(e,t,n){this.type=e,this.template=t,this.values=n}const{create:me,defineProperties:we}=Object,ye=e=>{const t=D(new WeakMap);return we(((t,...n)=>new ve(e,t,n)),{for:{value(n,r){const s=t.get(n)||t.set(n,me(null));return s[r]||(s[r]=(t=>(n,...r)=>pe(t,{type:e,template:n,values:r}))({stack:[],entry:null,wire:null}))}},node:{value:(t,...n)=>pe({stack:[],entry:null,wire:null},{type:e,template:t,values:n}).valueOf()}})},be=D(new WeakMap),$e=ye("html"),Ee=ye("svg"),{create:ke}=Object,Ce=(e,...t)=>new ve("html",e,t);Ce.for=Oe($e);const xe=(e,...t)=>new ve("svg",e,t);xe.for=Oe(Ee);const Ne=D(new WeakMap),Me=(e,t)=>B((function(){const n=t.f.apply(this,arguments);return n instanceof ve?(Le(e,n),t.$=We(t,n)):t.$=n,t.$})),Se=()=>({s:[],e:null}),Ae=(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=Me(Se(),s)),s.h.apply(n,r)},Le=(e,{values:t})=>{Te(e,t,t.length)},Te=(e,t,n)=>{const{s:r}=e;for(let e=0;e<n;e++){const n=t[e];n instanceof _e?t[e]=Ae(r[e]||(r[e]=Se()),n):n instanceof ve?Le(r[e]||(r[e]=Se()),n):H(n)?Te(r[e]||(r[e]=Se()),n,n.length):r[e]=null}n<r.length&&r.splice(n)},We=(e,{type:t,template:n,values:r})=>("svg"===t?Ee:$e).for(e,t)(n,...r);function _e(e,t,n){this.f=e,this.c=t,this.a=n}function Oe(e){const t=D(new WeakMap);return(n,r)=>{const s=t.get(n)||t.set(n,ke(null)),l=s[r]||(s[r]=Se());return(t,...s)=>(Te(l,s),e.for(n,r)(t,...s))}}return e.Component=function(e){return function(){return new _e(e,this,arguments)}},e.createContext=e=>({_:new Set,provide:y,value:e}),e.html=Ce,e.render=(e,t)=>(Ne.get(e)||Ne.set(e,{c:Se(),h:B((function(t){const n="function"==typeof t?t():t;return((e,t)=>{const n="function"==typeof t?t():t,r=be.get(e)||be.set(e,{stack:[],entry:null,wire:null}),s=n instanceof ve?pe(r,n):n;return s!==r.wire&&(r.wire=s,e.textContent="",e.appendChild(s.valueOf())),e})(e,n instanceof _e?Ae(this.c,n):(Le(this.c,n),n))}),e)})).h(t),e.svg=xe,e.useCallback=(e,t)=>b((()=>e),t),e.useContext=({_:e,value:t})=>(e.add(p()),t),e.useEffect=E,e.useLayoutEffect=k,e.useMemo=b,e.useReducer=(e,t,n)=>W(N,M,S,x(e,t,n)),e.useRef=e=>{const t=p(),{i:n,s:r}=t;return n===r.length&&r.push({current:e}),r[t.i++]},e.useState=e=>W(N,M,S,(e=>x(C,e))(e)),e}({});
self.X=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 Y=({childNodes:e},t)=>e[t],Z=e=>{const t=[];let{parentNode:n}=e;for(;n;)t.push(z.call(n.childNodes,e)),n=(e=n).parentNode;return t},{createTreeWalker:ee,importNode:te}=document,ne=1!=te.length,re=ne?(e,t,n)=>te.call(document,X(e,t,n),!0):X,se=ne?e=>ee.call(document,e,129,null,!1):e=>ee.call(document,e,129),le=(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),oe=(e,t)=>{switch(t[0]){case"?":return((e,t,n)=>r=>{n!==!!r&&((n=!!r)?e.setAttribute(t,""):e.removeAttribute(t))})(e,t.slice(1),!1);case".":return((e,t)=>"dataset"===t?(({dataset:e})=>t=>{for(const n in t){const r=t[n];null==r?delete e[n]:e[n]=r}})(e):n=>{e[t]=n})(e,t.slice(1));case"o":if("n"===t[1])return((e,t)=>{let n,r=t.slice(2);return!(t in e)&&t.toLowerCase()in e&&(r=r.toLowerCase()),t=>{const s=H(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)}switch(t){case"ref":return(e=>t=>{"function"==typeof t?t(e):t.current=e})(e);case"aria":return(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)}return((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 ce(e){const{type:t,path:n}=e,r=n.reduceRight(Y,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=document.createTextNode("")),n.nodeValue=l,r=le(e,r,[n]));break;case"object":case"undefined":if(null==l){t!=l&&(t=l,r=le(e,r,[]));break}if(H(l)){t=l,0===l.length?r=le(e,r,[]):"object"==typeof l[0]?r=le(e,r,l):s(String(l));break}"ELEMENT_NODE"in l&&t!==l&&(t=l,r=le(e,r,11===l.nodeType?P.call(l.childNodes):[l]));break;case"function":s(l(e))}};return s})(r):"attr"===t?oe(r,e.name):(e=>{let t;return n=>{t!=n&&(t=n,e.textContent=null==n?"":n)}})(r)}const ae="isµ",ie=D(new WeakMap),ue=/^(?:plaintext|script|style|textarea|title|xmp)$/i,he=(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(V.test(s)&&K(e,n)?s.replace(V,((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,ae,"svg"===e),r=re(n,e),s=se(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.nodeValue===a&&(l.push({type:"node",path:Z(e)}),a="isµ"+ ++c);else{for(;e.hasAttribute(a);)l.push({type:"attr",path:Z(e),name:e.getAttribute(a)}),e.removeAttribute(a),a="isµ"+ ++c;ue.test(e.tagName)&&e.textContent.trim()===`\x3c!--${a}--\x3e`&&(e.textContent="",l.push({type:"text",path:Z(e)}),a="isµ"+ ++c)}}return{content:r,nodes:l}},de=(e,t)=>{const{content:n,nodes:r}=ie.get(t)||ie.set(t,he(e,t)),s=te.call(document,n,!0);return{content:s,updates:r.map(ce,s)}},fe=(e,{type:t,template:n,values:r})=>{const{length:s}=r;pe(e,r,s);let{entry:l}=e;l&&l.template===n&&l.type===t||(e.entry=l=((e,t)=>{const{content:n,updates:r}=de(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=P.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))},pe=({stack:e},t,n)=>{for(let r=0;r<n;r++){const n=t[r];n instanceof ge?t[r]=fe(e[r]||(e[r]={stack:[],entry:null,wire:null}),n):H(n)?pe(e[r]||(e[r]={stack:[],entry:null,wire:null}),n,n.length):e[r]=null}n<e.length&&e.splice(n)};function ge(e,t,n){this.type=e,this.template=t,this.values=n}const{create:ve,defineProperties:me}=Object,we=e=>{const t=D(new WeakMap);return me(((t,...n)=>new ge(e,t,n)),{for:{value(n,r){const s=t.get(n)||t.set(n,ve(null));return s[r]||(s[r]=(t=>(n,...r)=>fe(t,{type:e,template:n,values:r}))({stack:[],entry:null,wire:null}))}},node:{value:(t,...n)=>fe({stack:[],entry:null,wire:null},{type:e,template:t,values:n}).valueOf()}})},ye=D(new WeakMap),be=we("html"),$e=we("svg"),{create:Ee}=Object,ke=(e,...t)=>new ge("html",e,t);ke.for=_e(be);const Ce=(e,...t)=>new ge("svg",e,t);Ce.for=_e($e);const xe=D(new WeakMap),Ne=(e,t)=>B((function(){const n=t.f.apply(this,arguments);return n instanceof ge?(Ae(e,n),t.$=Te(t,n)):t.$=n,t.$})),Me=()=>({s:[],e:null}),Se=(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=Ne(Me(),s)),s.h.apply(n,r)},Ae=(e,{values:t})=>{Le(e,t)},Le=(e,t)=>{const{s:n}=e,{length:r}=t;for(let e=0;e<r;e++){const r=t[e];r instanceof We?t[e]=Se(n[e]||(n[e]=Me()),r):r instanceof ge?Ae(n[e]||(n[e]=Me()),r):H(r)?Le(n[e]||(n[e]=Me()),r):n[e]=null}r<n.length&&n.splice(r)},Te=(e,{type:t,template:n,values:r})=>("svg"===t?$e:be).for(e,t)(n,...r);function We(e,t,n){this.f=e,this.c=t,this.a=n}function _e(e){const t=D(new WeakMap);return(n,r)=>{const s=t.get(n)||t.set(n,Ee(null)),l=s[r]||(s[r]=Me());return(t,...s)=>(Le(l,s),e.for(n,r)(t,...s))}}return e.Component=function(e){return function(){return new We(e,this,arguments)}},e.createContext=e=>({_:new Set,provide:y,value:e}),e.html=ke,e.render=(e,t)=>(xe.get(e)||xe.set(e,{c:Me(),h:B((function(t){const n="function"==typeof t?t():t;return((e,t)=>{const n="function"==typeof t?t():t,r=ye.get(e)||ye.set(e,{stack:[],entry:null,wire:null}),s=n instanceof ge?fe(r,n):n;return s!==r.wire&&(r.wire=s,e.textContent="",e.appendChild(s.valueOf())),e})(e,n instanceof We?Se(this.c,n):(Ae(this.c,n),n))}),e)})).h(t),e.svg=Ce,e.useCallback=(e,t)=>b((()=>e),t),e.useContext=({_:e,value:t})=>(e.add(p()),t),e.useEffect=E,e.useLayoutEffect=k,e.useMemo=b,e.useReducer=(e,t,n)=>W(N,M,S,x(e,t,n)),e.useRef=e=>{const t=p(),{i:n,s:r}=t;return n===r.length&&r.push({current:e}),r[t.i++]},e.useState=e=>W(N,M,S,(e=>x(C,e))(e)),e}({});

@@ -72,7 +72,7 @@ import {hooked} from 'uhooks-dom/async';

const unrollHole = async (info, {values}) => {
await unrollValues(info, values, values.length);
await unrollValues(info, values);
};
const unrollValues = async (info, values, length) => {
const {s} = info;
const unrollValues = async (info, values) => {
const {s} = info, {length} = values;
for (let i = 0; i < length; i++) {

@@ -85,3 +85,3 @@ const hook = await values[i];

else if (isArray(hook))
await unrollValues(s[i] || (s[i] = createCache()), hook, hook.length);
await unrollValues(s[i] || (s[i] = createCache()), hook);
else

@@ -88,0 +88,0 @@ s[i] = null;

@@ -72,7 +72,7 @@ import {hooked} from 'uhooks-dom';

const unrollHole = /*async*/ (info, {values}) => {
/*await*/ unrollValues(info, values, values.length);
/*await*/ unrollValues(info, values);
};
const unrollValues = /*async*/ (info, values, length) => {
const {s} = info;
const unrollValues = /*async*/ (info, values) => {
const {s} = info, {length} = values;
for (let i = 0; i < length; i++) {

@@ -85,3 +85,3 @@ const hook = /*await*/ values[i];

else if (isArray(hook))
/*await*/ unrollValues(s[i] || (s[i] = createCache()), hook, hook.length);
/*await*/ unrollValues(s[i] || (s[i] = createCache()), hook);
else

@@ -88,0 +88,0 @@ s[i] = null;

@@ -491,3 +491,3 @@ self.uland = (function (exports) {

var empty = /^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i;
var node$1 = /<[a-z][^>]+$/i;
var node = /<[a-z][^>]+$/i;
var notNode = />[^<>]*$/;

@@ -498,3 +498,3 @@ var selfClosing = /<([a-z]+[a-z0-9:._-]*)([^>]*?)(\/>)/ig;

var isNode = function isNode(template, i) {
return 0 < i-- && (node$1.test(template[i]) || !notNode.test(template[i]) && isNode(template, i));
return 0 < i-- && (node.test(template[i]) || !notNode.test(template[i]) && isNode(template, i));
};

@@ -932,3 +932,4 @@

oldValue = newValue;
if (text) text.nodeValue = newValue;else text = document.createTextNode(newValue);
if (!text) text = document.createTextNode('');
text.nodeValue = newValue;
nodes = diff(comment, nodes, [text]);

@@ -938,6 +939,2 @@ }

break;
case 'function':
anyContent(newValue(node));
break;
// null, and undefined are used to cleanup previous content

@@ -976,2 +973,7 @@

break;
case 'function':
anyContent(newValue(comment));
break;
}

@@ -1421,3 +1423,3 @@ };

/*await*/
unrollValues$1(info, values, values.length);
unrollValues$1(info, values);
};

@@ -1427,4 +1429,5 @@

/*async*/
function unrollValues(info, values, length) {
var s = info.s;
function unrollValues(info, values) {
var s = info.s,
length = values.length;

@@ -1441,3 +1444,3 @@ for (var i = 0; i < length; i++) {

/*await*/
unrollValues(s[i] || (s[i] = createCache$1()), hook, hook.length);else s[i] = null;
unrollValues(s[i] || (s[i] = createCache$1()), hook);else s[i] = null;
}

@@ -1444,0 +1447,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=function(n){var t=n.$,e=n.r,r=n.h;w(e)&&(v.get(r).delete(n),e()),w(n.r=t())&&v.get(r).add(n)},s=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)}))},v=new WeakMap,h=[],d=[];function p(n,t){return n!==this[t]}var m=function(n){var t=v.get(n);t&&b.then((function(){t.forEach((function(n){n.r(),n.r=null})),t.clear()}))},g=function(){return c},y=function(n){return v.has(n)},w=function(n){return"function"==typeof n},b=new i((function(n){return n()}));function E(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 C=function(n,t){var e=g(),r=e.i,u=e.s;return r!==u.length&&t&&!t.some(p,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&&(v.has(a)||v.set(a,new Set),o[u]={$:t,_:e,r:null,h:a}),(i||!e||e.some(p,o[u]._))&&n.push(o[u]),o[u].$=t,o[u]._=e}},k=A(h),x=A(d),N=function(n,t){return w(t)?t(n):t},S=function(n,t,e){var r=g(),u=r.i,o=r.s;u===o.length&&o.push({$:w(e)?e(t):N(void 0,t),set:function(t){o[u].$=n(o[u].$,t),function(n){l.has(n)||(n.e=1,l.add(n),b.then(s))}(r)}});var a=o[r.i++];return[a.$,a.set]},M=null,$=null,T=null,O=new WeakMap,L=new WeakMap,W=function(n,t,e,r){var u=function(u){O.has(n)||(O.set(n,0),b.then((function(){O.delete(n),n.apply(t,e)}))),r(u)};return L.set(r,u),u},_=function(n,t,e,r){return n?[r[0],L.get(r[1])||W(n,t,e,r[1])]:r},j=function(n,t){var e=function(n){var t={h:e,c:null,a:null,e:0,i:0,s:[]};return e;function e(){var e=c;c=t,t.e=t.i=0;try{return n.apply(t.c=this,t.a=arguments)}finally{c=e,h.length&&b.then(h.forEach.bind(h.splice(0),f)),d.length&&d.splice(0).forEach(f)}}}(t?function(){var t=M,r=$,u=T;M=e,$=this,T=arguments;try{return n.apply($,T)}finally{M=t,$=r,T=u}}:n);return e},R=null,B=function(n){var t=n.firstChild;if(t&&1!==t.nodeType&&!(t=t.nextElementSibling))throw"unobservable";return t},D=function n(t){var e=t.nodeType;if(e)return 1===e?t:B(t);var r=t.valueOf();return r!==t?n(r):B(r)},H=function(n,t){var e=j(n,t);return function(){var n=e.apply(this,arguments);if(y(e)){var t=D(n);R||(R=o(t.ownerDocument,"children",u)),R.has(t)||R.connect(t,{disconnected:function(){m(e)}})}return n}},z=function(n){return{get:function(t){return n.get(t)},set:function(t,e){return n.set(t,e),e}}},I=Array.isArray,P=[],V=P.indexOf,q=P.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+$/,X=function n(t,e){return 0<e--&&(G.test(t[e])||!J.test(t[e])&&n(t,e))},Y=function(n,t,e){return U.test(t)?n:"<".concat(t).concat(e.replace(Q,""),"></").concat(t,">")},Z=function(n,t,e){for(var r=[],u=n.length,o=function(e){var u=n[e-1];r.push(F.test(u)&&X(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,Y)},nn=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},tn=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),en=function(n,t){return n.childNodes[t]},rn=function(n){for(var t=[],e=n.parentNode;e;)t.push(V.call(e.childNodes,n)),e=(n=e).parentNode;return t},un=document,on=un.createTreeWalker,an=un.importNode,cn=1!=an.length,ln=cn?function(n,t,e){return an.call(document,tn(n,t,e),!0)}:tn,fn=cn?function(n){return on.call(document,n,129,null,!1)}:function(n){return on.call(document,n,129)},sn=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 g=r(t[c],0);l<d;)n.insertBefore(r(e[l++],1),g);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,nn,n)},vn=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.nodeValue=o:e=document.createTextNode(o),r=sn(n,r,[e]));break;case"function":u(o(node));break;case"object":case"undefined":if(null==o){t!=o&&(t=o,r=sn(n,r,[]));break}if(I(o)){t=o,0===o.length?r=sn(n,r,[]):"object"==typeof o[0]?r=sn(n,r,o):u(String(o));break}"ELEMENT_NODE"in o&&t!==o&&(t=o,r=sn(n,r,11===o.nodeType?q.call(o.childNodes):[o]))}}},hn=function(n,t){switch(t[0]){case"?":return function(n,t,e){return function(r){e!==!!r&&((e=!!r)?n.setAttribute(t,""):n.removeAttribute(t))}}(n,t.slice(1),!1);case".":return function(n,t){return"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):function(e){n[t]=e}}(n,t.slice(1));case"o":if("n"===t[1])return function(n,t){var e,r=t.slice(2);return!(t in n)&&t.toLowerCase()in n&&(r=r.toLowerCase()),function(t){var u=I(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)}switch(t){case"ref":return function(n){return function(t){"function"==typeof t?t(n):t.current=n}}(n);case"aria":return 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)}return 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 dn(n){var t=n.type,e=n.path.reduceRight(en,this);return"node"===t?vn(e):"attr"===t?hn(e,n.name):function(n){var t;return function(e){t!=e&&(t=e,n.textContent=null==e?"":e)}}(e)}var pn="isµ",mn=z(new WeakMap),gn=/^(?:plaintext|script|style|textarea|title|xmp)$/i,yn=function(n,t){var e=mn.get(t)||mn.set(t,function(n,t){for(var e=Z(t,pn,"svg"===n),r=ln(e,n),u=fn(r),o=[],a=t.length-1,i=0,c="".concat(pn).concat(i);i<a;){var l=u.nextNode();if(!l)throw"bad template: ".concat(e);if(8===l.nodeType)l.nodeValue===c&&(o.push({type:"node",path:rn(l)}),c="".concat(pn).concat(++i));else{for(;l.hasAttribute(c);)o.push({type:"attr",path:rn(l),name:l.getAttribute(c)}),l.removeAttribute(c),c="".concat(pn).concat(++i);gn.test(l.tagName)&&l.textContent.trim()==="\x3c!--".concat(c,"--\x3e")&&(l.textContent="",o.push({type:"text",path:rn(l)}),c="".concat(pn).concat(++i))}}return{content:r,nodes:o}}(n,t)),r=e.content,u=e.nodes,o=an.call(document,r,!0);return{content:o,updates:u.map(dn,o)}},wn=function(n,t){var e=t.type,r=t.template,u=t.values,o=u.length;bn(n,u,o);var a=n.entry;a&&a.template===r&&a.type===e||(n.entry=a=function(n,t){var e=yn(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))},bn=function n(t,e,r){for(var u=t.stack,o=0;o<r;o++){var a=e[o];a instanceof En?e[o]=wn(u[o]||(u[o]={stack:[],entry:null,wire:null}),a):I(a)?n(u[o]||(u[o]={stack:[],entry:null,wire:null}),a,a.length):u[o]=null}r<u.length&&u.splice(r)};function En(n,t,e){this.type=n,this.template=t,this.values=e}var Cn=Object.create,An=Object.defineProperties,kn=function(n){var t=z(new WeakMap);return An((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 En(n,t,r)}),{for:{value:function(e,r){var u=t.get(e)||t.set(e,Cn(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 wn(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 wn({stack:[],entry:null,wire:null},{type:n,template:t,values:r}).valueOf()}}})},xn=z(new WeakMap),Nn=kn("html"),Sn=kn("svg"),Mn=Object.create,$n=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 En("html",n,e)};$n.for=Dn(Nn);var Tn=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 En("svg",n,e)};Tn.for=Dn(Sn);var On=z(new WeakMap),Ln=function(){return{s:[],e:null}},Wn=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 H((function(){var e=t.f.apply(this,arguments);return e instanceof En?(_n(n,e),t.$=Rn(t,e)):t.$=e,t.$}))}(Ln(),o)),o.h.apply(r,u)},_n=function(n,t){var e=t.values;jn(n,e,e.length)},jn=function n(t,e,r){for(var u=t.s,o=0;o<r;o++){var a=e[o];a instanceof Bn?e[o]=Wn(u[o]||(u[o]=Ln()),a):a instanceof En?_n(u[o]||(u[o]=Ln()),a):I(a)?n(u[o]||(u[o]=Ln()),a,a.length):u[o]=null}r<u.length&&u.splice(r)},Rn=function(n,e){var r=e.type,u=e.template,o=e.values;return("svg"===r?Sn:Nn).for(n,r).apply(void 0,[u].concat(t(o)))};function Bn(n,t,e){this.f=n,this.c=t,this.a=e}function Dn(n){var t=z(new WeakMap);return function(e,r){var u=t.get(e)||t.set(e,Mn(null)),o=u[r]||(u[r]=Ln());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 jn(o,a),n.for(e,r).apply(void 0,[t].concat(a))}}}return n.Component=function(n){return function(){return new Bn(n,this,arguments)}},n.createContext=function(n){return{_:new Set,provide:E,value:n}},n.html=$n,n.render=function(n,t){return(On.get(n)||On.set(n,{c:Ln(),h:H((function(t){var e="function"==typeof t?t():t;return function(n,t){var e="function"==typeof t?t():t,r=xn.get(n)||xn.set(n,{stack:[],entry:null,wire:null}),u=e instanceof En?wn(r,e):e;return u!==r.wire&&(r.wire=u,n.textContent="",n.appendChild(u.valueOf())),n}(n,e instanceof Bn?Wn(this.c,e):(_n(this.c,e),e))}),n)})).h(t)},n.svg=Tn,n.useCallback=function(n,t){return C((function(){return n}),t)},n.useContext=function(n){var t=n._,e=n.value;return t.add(g()),e},n.useEffect=k,n.useLayoutEffect=x,n.useMemo=C,n.useReducer=function(n,t,e){return _(M,$,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 _(M,$,T,function(n){return S(N,n)}(n))},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=function(n){var t=n.$,e=n.r,r=n.h;w(e)&&(v.get(r).delete(n),e()),w(n.r=t())&&v.get(r).add(n)},s=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)}))},v=new WeakMap,h=[],d=[];function p(n,t){return n!==this[t]}var m=function(n){var t=v.get(n);t&&b.then((function(){t.forEach((function(n){n.r(),n.r=null})),t.clear()}))},y=function(){return c},g=function(n){return v.has(n)},w=function(n){return"function"==typeof n},b=new i((function(n){return n()}));function E(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 C=function(n,t){var e=y(),r=e.i,u=e.s;return r!==u.length&&t&&!t.some(p,u[r]._)||(u[r]={$:n(),_:t}),u[e.i++].$},A=function(n){return function(t,e){var r=y(),u=r.i,o=r.s,a=r.h,i=u===o.length;r.i++,i&&(v.has(a)||v.set(a,new Set),o[u]={$:t,_:e,r:null,h:a}),(i||!e||e.some(p,o[u]._))&&n.push(o[u]),o[u].$=t,o[u]._=e}},k=A(h),x=A(d),N=function(n,t){return w(t)?t(n):t},S=function(n,t,e){var r=y(),u=r.i,o=r.s;u===o.length&&o.push({$:w(e)?e(t):N(void 0,t),set:function(t){o[u].$=n(o[u].$,t),function(n){l.has(n)||(n.e=1,l.add(n),b.then(s))}(r)}});var a=o[r.i++];return[a.$,a.set]},M=null,$=null,T=null,O=new WeakMap,L=new WeakMap,W=function(n,t,e,r){var u=function(u){O.has(n)||(O.set(n,0),b.then((function(){O.delete(n),n.apply(t,e)}))),r(u)};return L.set(r,u),u},_=function(n,t,e,r){return n?[r[0],L.get(r[1])||W(n,t,e,r[1])]:r},j=function(n,t){var e=function(n){var t={h:e,c:null,a:null,e:0,i:0,s:[]};return e;function e(){var e=c;c=t,t.e=t.i=0;try{return n.apply(t.c=this,t.a=arguments)}finally{c=e,h.length&&b.then(h.forEach.bind(h.splice(0),f)),d.length&&d.splice(0).forEach(f)}}}(t?function(){var t=M,r=$,u=T;M=e,$=this,T=arguments;try{return n.apply($,T)}finally{M=t,$=r,T=u}}:n);return e},R=null,B=function(n){var t=n.firstChild;if(t&&1!==t.nodeType&&!(t=t.nextElementSibling))throw"unobservable";return t},D=function n(t){var e=t.nodeType;if(e)return 1===e?t:B(t);var r=t.valueOf();return r!==t?n(r):B(r)},H=function(n,t){var e=j(n,t);return function(){var n=e.apply(this,arguments);if(g(e)){var t=D(n);R||(R=o(t.ownerDocument,"children",u)),R.has(t)||R.connect(t,{disconnected:function(){m(e)}})}return n}},z=function(n){return{get:function(t){return n.get(t)},set:function(t,e){return n.set(t,e),e}}},I=Array.isArray,P=[],V=P.indexOf,q=P.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+$/,X=function n(t,e){return 0<e--&&(G.test(t[e])||!J.test(t[e])&&n(t,e))},Y=function(n,t,e){return U.test(t)?n:"<".concat(t).concat(e.replace(Q,""),"></").concat(t,">")},Z=function(n,t,e){for(var r=[],u=n.length,o=function(e){var u=n[e-1];r.push(F.test(u)&&X(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,Y)},nn=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},tn=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),en=function(n,t){return n.childNodes[t]},rn=function(n){for(var t=[],e=n.parentNode;e;)t.push(V.call(e.childNodes,n)),e=(n=e).parentNode;return t},un=document,on=un.createTreeWalker,an=un.importNode,cn=1!=an.length,ln=cn?function(n,t,e){return an.call(document,tn(n,t,e),!0)}:tn,fn=cn?function(n){return on.call(document,n,129,null,!1)}:function(n){return on.call(document,n,129)},sn=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,nn,n)},vn=function(n,t){switch(t[0]){case"?":return function(n,t,e){return function(r){e!==!!r&&((e=!!r)?n.setAttribute(t,""):n.removeAttribute(t))}}(n,t.slice(1),!1);case".":return function(n,t){return"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):function(e){n[t]=e}}(n,t.slice(1));case"o":if("n"===t[1])return function(n,t){var e,r=t.slice(2);return!(t in n)&&t.toLowerCase()in n&&(r=r.toLowerCase()),function(t){var u=I(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)}switch(t){case"ref":return function(n){return function(t){"function"==typeof t?t(n):t.current=n}}(n);case"aria":return 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)}return 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 hn(n){var t=n.type,e=n.path.reduceRight(en,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=document.createTextNode("")),e.nodeValue=o,r=sn(n,r,[e]));break;case"object":case"undefined":if(null==o){t!=o&&(t=o,r=sn(n,r,[]));break}if(I(o)){t=o,0===o.length?r=sn(n,r,[]):"object"==typeof o[0]?r=sn(n,r,o):u(String(o));break}"ELEMENT_NODE"in o&&t!==o&&(t=o,r=sn(n,r,11===o.nodeType?q.call(o.childNodes):[o]));break;case"function":u(o(n))}}}(e):"attr"===t?vn(e,n.name):function(n){var t;return function(e){t!=e&&(t=e,n.textContent=null==e?"":e)}}(e)}var dn="isµ",pn=z(new WeakMap),mn=/^(?:plaintext|script|style|textarea|title|xmp)$/i,yn=function(n,t){var e=pn.get(t)||pn.set(t,function(n,t){for(var e=Z(t,dn,"svg"===n),r=ln(e,n),u=fn(r),o=[],a=t.length-1,i=0,c="".concat(dn).concat(i);i<a;){var l=u.nextNode();if(!l)throw"bad template: ".concat(e);if(8===l.nodeType)l.nodeValue===c&&(o.push({type:"node",path:rn(l)}),c="".concat(dn).concat(++i));else{for(;l.hasAttribute(c);)o.push({type:"attr",path:rn(l),name:l.getAttribute(c)}),l.removeAttribute(c),c="".concat(dn).concat(++i);mn.test(l.tagName)&&l.textContent.trim()==="\x3c!--".concat(c,"--\x3e")&&(l.textContent="",o.push({type:"text",path:rn(l)}),c="".concat(dn).concat(++i))}}return{content:r,nodes:o}}(n,t)),r=e.content,u=e.nodes,o=an.call(document,r,!0);return{content:o,updates:u.map(hn,o)}},gn=function(n,t){var e=t.type,r=t.template,u=t.values,o=u.length;wn(n,u,o);var a=n.entry;a&&a.template===r&&a.type===e||(n.entry=a=function(n,t){var e=yn(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))},wn=function n(t,e,r){for(var u=t.stack,o=0;o<r;o++){var a=e[o];a instanceof bn?e[o]=gn(u[o]||(u[o]={stack:[],entry:null,wire:null}),a):I(a)?n(u[o]||(u[o]={stack:[],entry:null,wire:null}),a,a.length):u[o]=null}r<u.length&&u.splice(r)};function bn(n,t,e){this.type=n,this.template=t,this.values=e}var En=Object.create,Cn=Object.defineProperties,An=function(n){var t=z(new WeakMap);return Cn((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 bn(n,t,r)}),{for:{value:function(e,r){var u=t.get(e)||t.set(e,En(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 gn(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 gn({stack:[],entry:null,wire:null},{type:n,template:t,values:r}).valueOf()}}})},kn=z(new WeakMap),xn=An("html"),Nn=An("svg"),Sn=Object.create,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 bn("html",n,e)};Mn.for=Bn(xn);var $n=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 bn("svg",n,e)};$n.for=Bn(Nn);var Tn=z(new WeakMap),On=function(){return{s:[],e:null}},Ln=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 H((function(){var e=t.f.apply(this,arguments);return e instanceof bn?(Wn(n,e),t.$=jn(t,e)):t.$=e,t.$}))}(On(),o)),o.h.apply(r,u)},Wn=function(n,t){var e=t.values;_n(n,e)},_n=function n(t,e){for(var r=t.s,u=e.length,o=0;o<u;o++){var a=e[o];a instanceof Rn?e[o]=Ln(r[o]||(r[o]=On()),a):a instanceof bn?Wn(r[o]||(r[o]=On()),a):I(a)?n(r[o]||(r[o]=On()),a):r[o]=null}u<r.length&&r.splice(u)},jn=function(n,e){var r=e.type,u=e.template,o=e.values;return("svg"===r?Nn:xn).for(n,r).apply(void 0,[u].concat(t(o)))};function Rn(n,t,e){this.f=n,this.c=t,this.a=e}function Bn(n){var t=z(new WeakMap);return function(e,r){var u=t.get(e)||t.set(e,Sn(null)),o=u[r]||(u[r]=On());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 _n(o,a),n.for(e,r).apply(void 0,[t].concat(a))}}}return n.Component=function(n){return function(){return new Rn(n,this,arguments)}},n.createContext=function(n){return{_:new Set,provide:E,value:n}},n.html=Mn,n.render=function(n,t){return(Tn.get(n)||Tn.set(n,{c:On(),h:H((function(t){var e="function"==typeof t?t():t;return function(n,t){var e="function"==typeof t?t():t,r=kn.get(n)||kn.set(n,{stack:[],entry:null,wire:null}),u=e instanceof bn?gn(r,e):e;return u!==r.wire&&(r.wire=u,n.textContent="",n.appendChild(u.valueOf())),n}(n,e instanceof Rn?Ln(this.c,e):(Wn(this.c,e),e))}),n)})).h(t)},n.svg=$n,n.useCallback=function(n,t){return C((function(){return n}),t)},n.useContext=function(n){var t=n._,e=n.value;return t.add(y()),e},n.useEffect=k,n.useLayoutEffect=x,n.useMemo=C,n.useReducer=function(n,t,e){return _(M,$,T,S(n,t,e))},n.useRef=function(n){var t=y(),e=t.i,r=t.s;return e===r.length&&r.push({current:n}),r[t.i++]},n.useState=function(n){return _(M,$,T,function(n){return S(N,n)}(n))},n}({});
{
"name": "uland",
"version": "0.8.0",
"version": "0.8.1",
"main": "./cjs/index.js",

@@ -25,4 +25,4 @@ "scripts": {

"devDependencies": {
"@babel/core": "^7.12.16",
"@babel/preset-env": "^7.12.16",
"@babel/core": "^7.12.17",
"@babel/preset-env": "^7.12.17",
"@rollup/plugin-node-resolve": "^11.2.0",

@@ -55,3 +55,3 @@ "@ungap/degap": "^0.2.3",

"uhooks-dom": "^0.2.4",
"uhtml": "^2.5.0",
"uhtml": "^2.5.3",
"umap": "^1.0.2"

@@ -58,0 +58,0 @@ },

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