PageSourceSearch

https://www.holaboss.ai/assets/hono-api-2VxIxK2M.js

js holaboss.ai collected 2026-10-05 12:03:24 UTC 4,851 bytes, 1 lines download raw bytes

1import"./orpc-aD8BRD0P.js";var e=/^[\w!#$%&'*.^`|~+-]+$/,t=(t,n,r={})=>{if(!e.test(t))throw Error(`Invalid cookie name`);let i=`${t}=${n}`;if(t.startsWith(`__Secure-`)&&!r.secure)throw Error(`__Secure- Cookie must have Secure attributes`);if(t.startsWith(`__Host-`)){if(!r.secure)throw Error(`__Host- Cookie must have Secure attributes`);if(r.path!==`/`)throw Error(`__Host- Cookie must have Path attributes with "/"`);if(r.domain)throw Error(`__Host- Cookie must not have Domain attributes`)}for(let e of[`domain`,`path`,`sameSite`,`priority`])if(r[e]&&/[;\r\n]/.test(r[e]))throw Error(`${e} must not contain ";", "\\r", or "\\n"`);if(r&&typeof r.maxAge==`number`&&r.maxAge>=0){if(r.maxAge>3456e4)throw Error(`Cookies Max-Age SHOULD NOT be greater than 400 days (34560000 seconds) in duration.`);i+=`; Max-Age=${r.maxAge|0}`}if(r.domain&&r.prefix!==`host`&&(i+=`; Domain=${r.domain}`),r.path&&(i+=`; Path=${r.path}`),r.expires){if(r.expires.getTime()-Date.now()>3456e7)throw Error(`Cookies Expires SHOULD NOT be greater than 400 days (34560000 seconds) in the future.`);i+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(i+=`; HttpOnly`),r.secure&&(i+=`; Secure`),r.sameSite&&(i+=`; SameSite=${r.sameSite.charAt(0).toUpperCase()+r.sameSite.slice(1)}`),r.priority&&(i+=`; Priority=${r.priority.charAt(0).toUpperCase()+r.priority.slice(1)}`),r.partitioned){if(!r.secure)throw Error(`Partitioned Cookie must have Secure attributes`);i+=`; Partitioned`}return i},n=(e,n,r)=>(n=encodeURIComponent(n),t(e,n,r)),r=(e,t)=>(e=e.replace(/\/+$/,``),e+=`/`,t=t.replace(/^\/+/,``),e+t),i=(e,t)=>{for(let[n,r]of Object.entries(t)){let t=RegExp(`/:`+n+`(?:{[^/]+})?\\??(?=/|$)`);e=e.replace(t,r?`/${r}`:``)}return e},a=e=>{let t=new URLSearchParams;for(let[n,r]of Object.entries(e))if(r!==void 0){if(Array.isArray(r))for(let e of r)t.append(n,e);else t.set(n,r)}return t},o=(e,t)=>{switch(t){case`ws`:return e.replace(/^http/,`ws`);case`http`:return e.replace(/^ws/,`http`)}},s=e=>/^https?:\/\/[^\/]+?\/index(?=\?|$)/.test(e)?e.replace(/\/index(?=\?|$)/,`/`):e.replace(/\/index(?=\?|$)/,``);function c(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function l(e,t){if(!c(e)&&!c(t))return t;let n={...e};for(let e in t){let r=t[e];n[e]=c(n[e])&&c(r)?l(n[e],r):r}return n}var u=(e,t)=>new Proxy(()=>{},{get(n,r){if(typeof r==`string`&&r!==`then`)return u(e,[...t,r])},apply(n,r,i){return e({path:t,args:i})}}),d=class{url;method;buildSearchParams;queryParams=void 0;pathParams={};rBody;cType=void 0;constructor(e,t,n){this.url=e,this.method=t,this.buildSearchParams=n.buildSearchParams}fetch=async(e,t)=>{if(e){if(e.query&&(this.queryParams=this.buildSearchParams(e.query)),e.form){let t=new FormData;for(let[n,r]of Object.entries(e.form))if(r!==void 0){if(Array.isArray(r))for(let e of r)t.append(n,e);else t.append(n,r)}this.rBody=t}e.json!==void 0&&(this.rBody=JSON.stringify(e.json),this.cType=`application/json`),e.param&&(this.pathParams=e.param)}let r=this.method.toUpperCase(),a={...e?.header,...typeof t?.headers==`function`?await t.headers():t?.headers};if(e?.cookie){let t=[];for(let[r,i]of Object.entries(e.cookie))t.push(n(r,i));a.Cookie=t.join(`; `)}this.cType&&(a[`Content-Type`]=this.cType);let o=new Headers(a??void 0),c=this.url;c=s(c),c=i(c,this.pathParams),this.queryParams&&(c=c+`?`+this.queryParams.toString()),r=this.method.toUpperCase();let l=r!==`GET`&&r!==`HEAD`;return(t?.fetch||fetch)(c,{body:l?this.rBody:void 0,method:r,headers:o,...t?.init})}},f=(e,t)=>u(function n(c){let u=t?.buildSearchParams??a,f=[...c.path],p=f.slice(-3).reverse();if(p[0]===`toString`)return p[1]===`name`?p[2]||``:n.toString();if(p[0]===`valueOf`)return p[1]===`name`?p[2]||``:n;let m=``;if(/^\$/.test(p[0])){let e=f.pop();e&&(m=e.replace(/^\$/,``))}let h=r(e,f.join(`/`));if(m===`url`||m===`path`){let t=h;return c.args[0]&&(c.args[0].param&&(t=i(h,c.args[0].param)),c.args[0].query&&(t=t+`?`+u(c.args[0].query).toString())),t=s(t),m===`url`?new URL(t):t.slice(e.replace(/\/+$/,``).length).replace(/^\/?/,`/`)}if(m===`ws`){let e=o(c.args[0]&&c.args[0].param?i(h,c.args[0].param):h,`ws`),n=new URL(e),r=c.args[0]?.query;return r&&Object.entries(r).forEach(([e,t])=>{Array.isArray(t)?t.forEach(t=>n.searchParams.append(e,t)):n.searchParams.set(e,t)}),((...e)=>t?.webSocket!==void 0&&typeof t.webSocket==`function`?t.webSocket(...e):new WebSocket(...e))(n.toString())}let g=new d(h,m,{buildSearchParams:u});if(m){t??={};let e={...c.args[1]}
1,n=t.headers,r=e.headers;n&&r&&(e.headers=async()=>({...typeof n==`function`?await n():n,...typeof r==`function`?await r():r}));let i=l(t,e);return g.fetch(c.args[0],i)}return g},[]),p=`https://api.holaboss.ai`,m=(()=>{try{let e=new URL(p).hostname.split(`.`);return e.length<2?``:`https://preview.${e.slice(-2).join(`.`)}`}catch{return``}})();f(`${p}/api`,{init:{credentials:`include`}});export{m as n,p as t};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.