import{i as e}from"./jsx-runtime-CutOxEx1.js";import{r as t}from"./norm-f7iXVy-b.js";var n=e({createClientId:()=>s,getBuiltinProxyDefaults:()=>a,hasBuiltinProxyDefaults:()=>o}),r=`https://api2.bysjob.com/api/llm/chat`,i=()=>`https://bysjob.com/api/llm/chat`,a=()=>({proxyUrl:t(void 0)||(()=>{try{if((()=>{let e=String(globalThis?.location?.protocol||``);return e!==`chrome-extension:`&&e!==`moz-extension:`&&e!==`safari-extension:`})()){let e=String(globalThis?.location?.origin||``).replace(/\/+$/g,``);return e&&(e.includes(`localhost`)||e.includes(`127.0.0.1`)||e.includes(`[::1]`)||e.includes(`0.0.0.0`))?`${e}/api/llm/chat`:r}}catch{}return i()})(),gatewayApiKey:``}),o=()=>!!a().proxyUrl,s=()=>{try{let e=new Uint8Array(16);return crypto.getRandomValues(e),`c_${Array.from(e).map(e=>e.toString(16).padStart(2,`0`)).join(``)}`}catch{return`c_${Math.random().toString(16).slice(2)}_${Date.now().toString(16)}`}};export{n as i,a as n,o as r,s as t};