1import{y as c}from"./index-CpeGhXo5.js";const h=c("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]),a=/\b(?:up-?work|freelance(?:rs?|d|ing)?|independents?|independently|contractors?|contracting|self[-\s]?employed)\b/gi,p=/^(?:senior|junior|lead|staff|principal|freelance|independent)?\s*(?:software\s+)?(?:engineer|developer|writer|consultant|specialist|manager|architect|analyst|designer|contractor)s?$/i;function l(n){return/\b(?:up-?work|freelance(?:rs?|d|ing)?|independents?|independently|contractors?|contracting|self[-\s]?employed)\b/i.test(String(n||""))}function i(n){let e=String(n??"");return e&&(e=e.replace(/https?:\/\/(?:www\.)?upwork\.com\S*/gi,""),e=e.replace(/\b(?:www\.)?upwork\.com\b/gi,""),e=e.replace(/\bas an?\s+(?:freelance(?:rs?)?|independent|contractors?)\b/gi,""),e=e.replace(/\b(?:freelance(?:rs?|d|ing)?|independent|contractor)\s+(?:work|projects?|engagements?|gigs?)\b/gi,""),e=e.replace(/\b(?:on|via|through|from|at|using)\s+up-?work\b/gi,""),e=e.replace(/\s*[\(\[\{]\s*(?:up-?work|freelance(?:rs?|d|ing)?|independents?|independently|contractors?|self[-\s]?employed)\s*[\)\]\}]/gi,""),e=e.replace(a,""),e=e.replace(/(?<!:)\s*[/|·â¢]\s*[/|·â¢]/g," "),e=e.replace(/\(\s*\)/g,""),e=e.replace(/\[\s*\]/g,""),e=e.replace(/\s+([,.;:])/g,"$1"),e=e.replace(/([,.;:]){2,}/g,"$1"),e=e.replace(/\s{2,}/g," "),e=e.replace(/^[/\s|,;:\-ââ]+|[/\s|,;:\-ââ]+$/g,""),e.replace(/\s{2,}/g," ").trim())}const u=/^(?:company(?:\s+name)?|your\s+company|organi[sz]ation|company\s*[\/|]\s*organi[sz]ation|employer(?:\s+name)?|n\.?a\.?|n\/a|none|tbd|todo|-+|â+|xxx+|placeholder|click to edit.*)$/i;function f(n){const e=String(n||"").trim().replace(/\s+/g," ");return!e||u.test(e)}function d(n){const e=String(n||"").trim().replace(/[ââ]/g,"/").replace(/\s+/g," ");if(!e)return!1;const r=e.toLowerCase();if(r.length<=64&&(/(freelance|freelancer|independent|contractor).{0,20}agency/.test(r)||/^consulting\s*[\/|&]\s*agency$/.test(r)||/^agency work$/.test(r)||/^(self[-\s]?employed|independent|contractor|consulting)$/.test(r)))return!0;const t=i(e);return!!(l(e)&&(!t||p.test(t)))}function g(n){const e=String(n??"").trim();return!e||f(e)||d(e)?"":i(e)}function m(n){return g(n)}function y(n){const e=n.trim();if(!(e.startsWith("{")||e.startsWith("[")))return!1;try{return JSON.parse(e),!0}catch{return!1}}function s(n,e){if(e==="type"&&typeof n=="string"||e==="studioTemplateId"||e==="studioThemeId"||e==="studioFont"||e==="photoUrl")return n;if((e==="company"||e==="organization"||e==="employer")&&typeof n=="string")return m(n);if(typeof n=="string")return e==="richtext"&&y(n)?n:i(n);if(Array.isArray(n))return n.map(r=>s(r)).filter(r=>typeof r=="string"?r.trim().length>0:r!=null);if(n&&typeof n=="object"){const r={};for(const[t,o]of Object.entries(n))r[t]=s(o,t);return r}return n}function w(n){return s(n)}export{h as G,f as a,w as b,g as c,d as i,i as s};
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.