var p=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var m=(e,o)=>{for(var r in o)p(e,r,{get:o[r],enumerable:!0})},g=(e,o,r,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let t of l(o))!d.call(e,t)&&t!==r&&p(e,t,{get:()=>o[t],enumerable:!(a=u(o,t))||a.enumerable});return e};var k=e=>g(p({},"__esModule",{value:!0}),e);var S={};m(S,{fonts:()=>C,isPartialBuildInfo:()=>b,knownInstancesList:()=>y,protocols:()=>T,sanitizeConfig:()=>h,typeMerge:()=>O,wLog:()=>w,wordWrap:()=>x});module.exports=k(S);function w(e){console.log("%c[WebCord]","color: #69A9C1",e)}const T=Object.freeze({secure:Object.freeze(["https:","mailto:","tel:","sms:"]),allowed:Object.freeze(["http:"])}),y=Object.freeze([["Discord",new URL("https://discord.com/app"),!0],["Discord Canary",new URL("https://canary.discord.com/app"),!0],["Discord Public Test Beta",new URL("https://ptb.discord.com/app"),!0]]);function b(e){if(!(e instanceof Object))return!1;if("type"in e)switch(e.type){case"release":case"devel":break;case void 0:break;default:return!1}if("commit"in e&&typeof e.commit!="string")return!1;const o=["updateNotifications"];if("features"in e)if(e.features instanceof Object){for(const r of o)if(Object.prototype.hasOwnProperty.call(e.features,r)&&typeof e.features[r]!="boolean")return!1}else return!1;return!(process.platform==="win32"&&typeof e.AppUserModelId!="string")}const h=Object.freeze({ALLOWED_TAGS:["b","i","u","s","em","kbd","strong","code","small","br"],ALLOWED_ATTR:[]});function O(e,o,...r){const a=Object.hasOwn,t=(n,i)=>(n?.constructor??n)===i;function f(n,i){const c={...n};return!(n instanceof Object)||!(i instanceof Object)?n:(Object.keys(n).filter(s=>a(n,s)&&a(i,s)&&(t(n[s],i[s]?.constructor)||(o.nullType!==void 0?n[s]===null&&i[s]?.constructor===o.nullType:!1))&&!Array.isArray(n)).map(s=>{t(n[s],Object)?c[s]=f(n[s],i[s]):c[s]=i[s]}),c)}return r.reduce((n,i)=>f(n,i),e)}function x(e,o,r){let a="",t=Math.floor(e.length/o);const f=t>r;t=f?r:t;for(let n=0;n<t;++n)a+=`${a===""?"":`
`}${e.substring(n*o,n*o+o)}`;return f&&(a+=" (\u2026)"),a===""?e:a}const C=Object.freeze({standard:process.platform==="win32"?"Segoe UI":process.platform==="darwin"?"SF Pro":"Sans",sansSerif:process.platform==="win32"?"Segoe UI":process.platform==="darwin"?"SF Pro":"Sans",serif:process.platform==="win32"?"Times New Roman":process.platform==="darwin"?"New York":"Serif",monospace:process.platform==="win32"?"Cascadia Code":process.platform==="darwin"?"SF Pro":"Monospace"});0&&(module.exports={fonts,isPartialBuildInfo,knownInstancesList,protocols,sanitizeConfig,typeMerge,wLog,wordWrap});
