PageSourceSearch

https://refore.ai/_nuxt/CG1xCkvl.js

js refore.ai collected 2026-09-24 12:29:26 UTC 4,630 bytes, 2 lines download raw bytes

1import{dw as H}from"./DBJrdZQJ.js";var c={},P;function T(){return P||(P=1,c.removeLeadingAndTrailingHTTPWhitespace=e=>e.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,""),c.removeTrailingHTTPWhitespace=e=>e.replace(/[ \t\n\r]+$/u,""),c.isHTTPWhitespaceChar=e=>e===" "||e==="	"||e===`
2`||e==="\r",c.solelyContainsHTTPTokenCodePoints=e=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(e),c.soleyContainsHTTPQuotedStringTokenCodePoints=e=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(e),c.asciiLowercase=e=>e.replace(/[A-Z]/ug,a=>a.toLowerCase()),c.collectAnHTTPQuotedString=(e,a)=>{let n="";for(a++;;){for(;a<e.length&&e[a]!=='"'&&e[a]!=="\\";)n+=e[a],++a;if(a>=e.length)break;const l=e[a];if(++a,l==="\\"){if(a>=e.length){n+="\\";break}n+=e[a],++a}else break}return[n,a]}),c}var g,_;function M(){if(_)return g;_=1;const{asciiLowercase:e,solelyContainsHTTPTokenCodePoints:a,soleyContainsHTTPQuotedStringTokenCodePoints:n}=T();return g=class{constructor(t){this._map=t}get size(){return this._map.size}get(t){return t=e(String(t)),this._map.get(t)}has(t){return t=e(String(t)),this._map.has(t)}set(t,o){if(t=e(String(t)),o=String(o),!a(t))throw new Error(`Invalid MIME type parameter name "${t}": only HTTP token code points are valid.`);if(!n(o))throw new Error(`Invalid MIME type parameter value "${o}": only HTTP quoted-string token code points are valid.`);return this._map.set(t,o)}clear(){this._map.clear()}delete(t){return t=e(String(t)),this._map.delete(t)}forEach(t,o){this._map.forEach(t,o)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}},g}var d,v;function S(){if(v)return d;v=1;const{removeLeadingAndTrailingHTTPWhitespace:e,removeTrailingHTTPWhitespace:a,isHTTPWhitespaceChar:n,solelyContainsHTTPTokenCodePoints:l,soleyContainsHTTPQuotedStringTokenCodePoints:t,asciiLowercase:o,collectAnHTTPQuotedString:i}=T();return d=s=>{s=e(s);let r=0,y="";for(;r<s.length&&s[r]!=="/";)y+=s[r],++r;if(y.length===0||!l(y)||r>=s.length)return null;++r;let p="";for(;r<s.length&&s[r]!==";";)p+=s[r],++r;if(p=a(p),p.length===0||!l(p))return null;const m={type:o(y),subtype:o(p),parameters:new Map};for(;r<s.length;){for(++r;n(s[r]);)++r;let u="";for(;r<s.length&&s[r]!==";"&&s[r]!=="=";)u+=s[r],++r;if(u=o(u),r<s.length){if(s[r]===";")continue;++r}let h=null;if(s[r]==='"')for([h,r]=i(s,r);r<s.length&&s[r]!==";";)++r;else{for(h="";r<s.length&&s[r]!==";";)h+=s[r],++r;if(h=a(h),h==="")continue}u.length>0&&l(u)&&t(h)&&!m.parameters.has(u)&&m.parameters.set(u,h)}return m},d}var f,b;function k(){if(b)return f;b=1;const{solelyContainsHTTPTokenCodePoints:e}=T();return f=a=>{let n=`${a.type}/${a.subtype}`;if(a.parameters.size===0)return n;for(let[l,t]of a.parameters)n+=";",n+=l,n+="=",(!e(t)||t.length===0)&&(t=t.replace(/(["\\])/ug,"\\$1"),t=`"${t}"`),n+=t;return n},f}var w,C;function E(){if(C)return w;C=1;const e=M(),a=S(),n=k(),{asciiLowercase:l,solelyContainsHTTPTokenCodePoints:t}=T();return w=class{constructor(i){i=String(i);const s=a(i);if(s===null)throw new Error(`Could not parse MIME type string "${i}"`);this._type=s.type,this._subtype=s.subtype,this._parameters=new e(s.parameters)}static parse(i){try{return new this(i)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(i){if(i=l(String(i)),i.length===0)throw new Error("Invalid type: must be a non-empty string");if(!t(i))throw new Error(`Invalid type ${i}: must contain only HTTP token code points`);this._type=i}get subtype(){return this._subtype}set subtype(i){if(i=l(String(i)),i.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!t(i))throw new Error(`Invalid subtype ${i}: must contain only HTTP token code points`);this._subtype=i}get parameters(){return this._parameters}toString(){return n(this)}isJavaScript({prohibitParameters:i=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!i||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!i||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}},w}var $=E();const I=H($);export{I as M};

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.