/**
 * Minified by jsDelivr using Terser v5.37.0.
 * Original file: /npm/uwire@1.1.0/cjs/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
"use strict";const{slice:slice}=require("uarray"),ELEMENT_NODE=1,nodeType=111,remove=({firstChild:e,lastChild:t})=>{const r=document.createRange();return r.setStartAfter(e),r.setEndAfter(t),r.deleteContents(),e},diffable=(e,t)=>111===e.nodeType?1/t<0?t?remove(e):e.lastChild:t?e.valueOf():e.firstChild:e;exports.diffable=diffable;const persistent=e=>{const{childNodes:t}=e,{length:r}=t;if(r<2)return r?t[0]:e;const s=slice.call(t,0);return{ELEMENT_NODE:1,nodeType:111,firstChild:s[0],lastChild:s[r-1],valueOf(){if(t.length!==r){let t=0;for(;t<r;)e.appendChild(s[t++])}return e}}};exports.persistent=persistent;
//# sourceMappingURL=/sm/d932effc79fcc725d450af86077b9061f9fb7cdf086f5c4af1738efd8528861a.map