`)}:!r.ok&&"detail"in u?{error:u.detail}:u})}function Oo(i){return Di(this,null,function*(){return yield zc(i,"GET")})}function*Tn(...i){for(let t of i)for(let e of document.querySelectorAll(t))e!==null&&(yield e)}function wo(i){i.startsWith("data-")||(i=`data-${i}`);for(let t of Tn("body > div#netbox-data > *")){let e=t.getAttribute(i);if(Vc(e))return e}return null}function Yc(i,t){i!==null&&(typeof t=="undefined"?window.getComputedStyle(i).display==="none"?i.style.display="":i.style.display="none":t==="show"?i.style.display="":i.style.display="none")}function $i(i){for(let t of Tn("div.card-overlay"))Yc(t,i)}function W(i,t,e=null,n=[]){let s=document.createElement(i);if(t!==null)for(let o of Object.keys(t)){let r=o,l=t[r];r in s&&(s[r]=l)}e!==null&&e.length>0&&s.classList.add(...e);for(let o of n)s.appendChild(o);return s}function $o(i){return Math.round((i*(9/5)+32+Number.EPSILON)*10)/10}window.Collapse=mt;window.Modal=ee;window.Popover=_e;window.Toast=se;window.Tooltip=Dt;function Ci(i,t,e,n){let s="mdi-alert";switch(i){case"warning":s="mdi-alert";break;case"success":s="mdi-check-circle";break;case"info":s="mdi-information";break;case"danger":s="mdi-alert";break}let o=document.createElement("div");o.setAttribute("class","toast-container position-fixed bottom-0 end-0 m-3");let r=document.createElement("div");r.setAttribute("class",`toastbg-${i}`),r.setAttribute("role","alert"),r.setAttribute("aria-live","assertive"),r.setAttribute("aria-atomic","true");let l=document.createElement("div");l.setAttribute("class",`toast-headerbg-${i}text-body`);let u=document.createElement("i");u.setAttribute("class",`mdi${s}`);let p=document.createElement("strong");p.setAttribute("class","me-auto ms-1"),p.innerText=t;let f=document.createElement("button");f.setAttribute("type","button"),f.setAttribute("class","btn-close"),f.setAttribute("data-bs-dismiss","toast"),f.setAttribute("aria-label","Close");let v=document.createElement("div");if(v.setAttribute("class","toast-body"),l.appendChild(u),l.appendChild(p),typeof n!="undefined"){let m=document.createElement("small");m.setAttribute("class","text-muted"),l.appendChild(m)}return l.appendChild(f),v.innerText=e.trim(),r.appendChild(l),r.appendChild(v),o.appendChild(r),document.body.appendChild(o),new se(r)}oe.default.extend(Co.default);oe.default.extend(Do.default);oe.default.extend(No.default);oe.default.extend(Lo.default);var Uc=["hostname","fqdn","vendor","model","serial_number","os_version"],Kc=["years","months","days","hours","minutes","seconds"];function Gc(i){let t=new Date,e=t.getTimezoneOffset(),s=(0,oe.default)(t).subtract(i,"seconds"),o=s.tz("Etc/UTC").format("YYYY-MM-DD HH:MM:ss z"),r=null;e!==0&&(r=s.format("YYYY-MM-DD HH:MM:ss z"));let l=oe.default.duration(i,"seconds"),u=[];for(let f of Kc){let v=l[f]();if(v===1){let d=f.replace(/s$/,"");u=[...u,`${v}${d}`]}else v>1&&(u=[...u,`${v}${f}`])}let p="None";return u.length>0&&(p=u.join(", ")),{utc:o,zoned:r,duration:p}}function qc(i){for(let l of Uc)if(l in i){let u=document.getElementById(l);u!==null&&(u.innerHTML=String(i[l]))}let{uptime:t}=i,{utc:e,zoned:n,duration:s}=Gc(t),o=document.getElementById("uptime-duration");o!==null&&(o.innerHTML=s);let r=document.getElementById("uptime");r!==null&&(n===null?r.innerHTML=e:r.innerHTML=[n,`<spanclass="fst-italic d-block">${e}</span>`].join(""))}functionze(i,t,e){letn=W("th",{innerText:t},["border-end","text-end"]),s=W("th",{innerText:e},["border-start","text-start"]),o=W("tr",{},[],[n,s]);i.insertAdjacentElement("beforebegin",o)}functionYe(i){lett=W("td",{colSpan:"2",innerText:"NoData"},["text-muted","text-center"]),e=W("tr",{},[],[t]);i!==null&&i.insertAdjacentElement("beforebegin",e)}functionFe(i){lett=document.getElementById(i);returnt!==null?t.nextElementSibling:null}functionXc(i){lett=Fe("status-cpu");if(typeofi!="undefined"){if(t!==null){ze(t,"Name","Usage");for(let[e,n]ofObject.entries(i)){lets=n["%usage"],o=W("td",{innerText:e},["border-end","text-end"]),r=W("td",{innerText:`${s}%`},["border-start","text-start"]),l=W("tr",{},[],[o,r]);t.insertAdjacentElemen