import{$ as t}from"./datatables-Bo82YvhT.js";t(function(){const i=t("#cidr"),e=t("#cidr-preview");i.length&&i.on("input",function(){const o=String(t(this).val()).trim().match(/^(\d+)\.(\d+)\.(\d+)\.(\d+)\/(\d+)$/);if(!o){e.text("");return}const r=parseInt(o[5]);if(r<1||r>32){e.text("");return}const n=Math.pow(2,32-r),s=n>=4?n-4:0;e.text(`Total addresses: ${n} (≈ ${s} usable after reserved)`)})});
