@kaifronsdal/transcript-viewer
Version:
A web-based viewer for AI conversation transcripts with rollback support
2 lines (1 loc) • 1.01 kB
JavaScript
import{h as f,q as d,e as n,N as u,L as h,g as v,f as g}from"./BcJau-i_.js";const A=Symbol("is custom element"),N=Symbol("is html");function l(r){if(f){var s=!1,e=()=>{if(!s){if(s=!0,r.hasAttribute("value")){var o=r.value;t(r,"value",null),r.value=o}if(r.hasAttribute("checked")){var a=r.checked;t(r,"checked",null),r.checked=a}}};r.__on_r=e,d(e),n()}}function L(r,s){var e=i(r);e.checked!==(e.checked=s??void 0)&&(r.checked=s)}function t(r,s,e,o){var a=i(r);f&&(a[s]=r.getAttribute(s),s==="src"||s==="srcset"||s==="href"&&r.nodeName==="LINK")||a[s]!==(a[s]=e)&&(s==="loading"&&(r[h]=e),e==null?r.removeAttribute(s):typeof e!="string"&&k(r).includes(s)?r[s]=e:r.setAttribute(s,e))}function i(r){return r.__attributes??(r.__attributes={[A]:r.nodeName.includes("-"),[N]:r.namespaceURI===u})}var _=new Map;function k(r){var s=_.get(r.nodeName);if(s)return s;_.set(r.nodeName,s=[]);for(var e,o=r,a=Element.prototype;a!==o;){e=g(o);for(var c in e)e[c].set&&s.push(c);o=v(o)}return s}export{t as a,l as r,L as s};