`)}:!r.ok&&"detail"in u?{error:u.detail}:u})}function Mo(i){return Mi(this,null,function*(){return yield tu(i,"GET")})}function*On(...i){for(let t of i)for(let e of document.querySelectorAll(t))e!==null&&(yield e)}function Io(i){i.startsWith("data-")||(i=`data-${i}`);for(let t of On("body > div#netbox-data > *")){let e=t.getAttribute(i);if(Jc(e))return e}return null}function eu(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 Di(i){for(let t of On("div.card-overlay"))eu(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,a=t[r];r in s&&(s[r]=a)}e!==null&&e.length>0&&s.classList.add(...e);for(let o of n)s.appendChild(o);return s}function Po(i){return Math.round((i*(9/5)+32+Number.EPSILON)*10)/10}window.Collapse=_t;window.Modal=ie;window.Popover=be;window.Toast=oe;window.Tooltip=xt;function xi(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 a=document.createElement("div");a.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 _=document.createElement("div");if(_.setAttribute("class","toast-body"),a.appendChild(u),a.appendChild(p),typeof n!="undefined"){let m=document.createElement("small");m.setAttribute("class","text-muted"),a.appendChild(m)}return a.appendChild(f),_.innerText=e.trim(),r.appendChild(a),r.appendChild(_),o.appendChild(r),document.body.appendChild(o),new oe(r)}re.default.extend(Ro.default);re.default.extend(jo.default);re.default.extend(ko.default);re.default.extend(Ho.default);var nu=["hostname","fqdn","vendor","model","serial_number","os_version"],su=["years","months","days","hours","minutes","seconds"];function ou(i){let t=new Date,e=t.getTimezoneOffset(),s=(0,re.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 a=re.default.duration(i,"seconds"),u=[];for(let f of su){let _=a[f]();if(_===1){let d=f.replace(/s$/,"");u=[...u,`${_}${d}`]}else _>1&&(u=[...u,`${_}${f}`])}let p="None";return u.length>0&&(p=u.join(", ")),{utc:o,zoned:r,duration:p}}function ru(i){for(let a of nu)if(a in i){let u=document.getElementById(a);u!==null&&(u.innerHTML=String(i[a]))}let{uptime:t}=i,{utc:e,zoned:n,duration:s}=ou(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(""))}functionUe(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)}functionKe(i){lett=W("td",{colSpan:"2",innerText:"NoData"},["text-muted","text-center"]),e=W("tr",{},[],[t]);i!==null&&i.insertAdjacentElement("beforebegin",e)}functionGe(i){lett=document.getElementById(i);returnt!==null?t.nextElementSibling:null}functionau(i){lett=Ge("status-cpu");if(typeofi!="undefined"){if(t!==null){Ue(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"]),a=W("tr",{},[],[o,r]);t.insertAdjacentElemen