1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5797],{5797:function(e,r,t){t.r(r),t.d(r,{default:function(){return a}});class a{static namedColors={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};isGradient=!1;constructor(e){if("transparent"===e||""===e)this.rgb={r:0,g:0,b:0},this.alpha=0;else if(e.startsWith("#"))this.rgb=a.hexToRgb(e),this.alpha=1;else if(e.startsWith("rgba(")){const{r:r,g:t,b:o,a:n}=a.fromRgbaString(e);this.rgb={r:r,g:t,b:o},this.alpha=n}else e.startsWith("rgb(")?(this.rgb=a.fromRgbString(e),this.alpha=1):e.startsWith("color(srgb")?(this.rgb=a.fromSrgbString(e),this.alpha=1):e.startsWith("color-mix(")?(this.rgb=a.fromColorMix(e),this.alpha=1):a.namedColors[e.toLowerCase()]&&(this.rgb=a.hexToRgb(a.namedColors[e.toLowerCase()]),this.alpha=1)}static fromRgbString(e){const r=e.match(/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/i);return r?{r:+r[1],g:+r[2],b:+r[3]}:null}static fromRgbaString(e){const r=e.match(/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([0-9.]+)\s*\)/i);return r?{r:+r[1],g:+r[2],b:+r[3],a:parseFloat(r[4])}:null}static fromSrgbString(e){const r=e.match(/color\(srgb\s+([0-9.]+)\s+([0-9.]+)\s+([0-9.]+)\)/i);return r?{r:Math.round(255*parseFloat(r[1])),g:Math.round(255*parseFloat(r[2])),b:Math.round(255*parseFloat(r[3]))}:null}static fromColorMix(e){const r=e.match(/color-mix\(\s*in\s+srgb\s*,\s*([^ ]+)\s+([0-9]+)%\s*,\s*([^ )]+)\s*\)/i);if(!r)return null;const[,t,o,n]=r,s=parseFloat(o)/100,i=1-s,l=new a(t),f=new a(n);return{r:Math.round(l.rgb.r*s+f.rgb.r*i),g:Math.round(l.rgb.g*s+f.rgb.g*i),b:Math.round(l.rgb.b*s+f.rgb.b*i)}}static hexToRgb(e){if(3===(e=e.replace(/^#/,"")).length&&(e=e.split("").map((e=>e+e)).join("")),6!==e.length)return null;const r=parseInt(e,16);return{r:r>>16&255,g:r>>8&255,b:255&r}}static rgbToHex(e,r,t){return"#"+[e,r,t].map((e=>{const r=e.toString(16);return 1===r.length?"0"+r:r})).join("")}static lerp(e,r,t){return e+(r-e)*t}static lerpInterpolate(e,r,t){const o=new a(e),n=new a(r);return o.interpolate(n,t)}static lerpPosition(e,r,t){if(!e||!r)return null;const o=parseFloat(e),n=parseFloat(r),s=e.replace(/[0-9.-]/g,"")||"%";return a.lerp(o,n,t)+s}static parseLinearGradient(e,r=null){if(r=r||"180deg",!/^linear-gradient/i.test(e)){const t=e.trim();return{angle:r,stops:[{color:t,position:"0%"},{color:t,position:"100%"}]}}const t=e.slice(e.indexOf("(")+1,-1).trim(),a=[];let o="",n=0;for(let e of t)"("===e&&n++,")"===e&&n--,","!==e||0!==n?o+=e:(a.push(o.trim()),o="");o&&a.push(o.trim());let s=r,i=0;(a[0].match(/deg|turn|rad|grad/i)||a[0].toLowerCase().startsWith("to "))&&(s=a[0],i=1);const l=[];for(;i<a.length;i++){const e=a[i];let r=e.trim(),t=null,o=0,n=-1;for(let r=0;r<e.length;r++){const t=e[r];if("("===t)o++;else if(")"===t)o--;else if(/\s/.test(t)&&0===o){n=r;break}}-1!==n&&(r=e.slice(0,n).trim(),t=e.slice(n).trim(),""===t&&(t=null)),l.push({color:r,position:t})}return{angle:s,stops:l}}static buildLinearGradient(e,r){return`linear-gradient(${e}, ${r.map((e=>e.position?`${e.color} ${e.position}`:e.color)).join(", ")})`}static getBottomColorFromParsedLinearGradient({angle:e,stops:r}){const t=(e=new a("").normalizeCSSAngle(e))*Math.PI/180,o=(Math.sin(t),-Math.cos(t));return o>0?new a(r[r.length-1].color).toHex():o<0?new a(r[0].color).toHex():new a(r[r.length-1].color).toHex()}static getDarkestColorFromParsedLinearGradient({angle:e,stops:r}){let t=null,o=-1/0;for(const e of r){const r=new a(e.color),n=r.darkness();n>o&&(o=n,t=r)}return t.toHex()}normalizeCSSAngle(e){if((e=e.trim()).startsWith("to ")){return{"to top":0,"to right":90,"to bottom":180,"to left":270,"to top right":45,"to right top":45,"to bottom right":135,"to right bottom":135,"to bottom left":225,"to left bottom":225,"to top left"
1:315,"to left top":315}[e.toLowerCase()]??180}return e.endsWith("deg")?parseFloat(e):e.endsWith("turn")?360*parseFloat(e):e.endsWith("rad")?parseFloat(e)*(180/Math.PI):e.endsWith("grad")?.9*parseFloat(e):180}static getLuminance({r:e,g:r,b:t}){const a=e=>{const r=e/255;return r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)};return.2126*a(e)+.7152*a(r)+.0722*a(t)}static getDarkness(e){return 1-a.getLuminance(e)}static darken(e,r=.1){const t=a.hexToRgb(e),o={r:Math.max(0,t.r-t.r*r),g:Math.max(0,t.g-t.g*r),b:Math.max(0,t.b-t.b*r)};return a.rgbToHex(Math.round(o.r),Math.round(o.g),Math.round(o.b))}toHex(){return a.rgbToHex(this.rgb.r,this.rgb.g,this.rgb.b)}luminance(){return a.getLuminance(this.rgb)}darkness(){return a.getDarkness(this.rgb)}darken(e=.1){const r=a.darken(this.toHex(),e);return new a(r)}static lighten(e,r=.1){const{r:t,g:o,b:n}=a.hexToRgb(e),s=e=>Math.min(255,Math.round(e+(255-e)*r));return a.rgbToHex(s(t),s(o),s(n))}toRgb(){return`rgb(${this.rgb.r}, ${this.rgb.g}, ${this.rgb.b})`}toRgba(){return`rgba(${this.rgb.r}, ${this.rgb.g}, ${this.rgb.b}, ${this.alpha})`}toSrgbString(){const e=e=>(e/255).toFixed(5).replace(/0+$/,"");return`color(srgb ${e(this.rgb.r)} ${e(this.rgb.g)} ${e(this.rgb.b)})`}isTransparent(){return this.alpha<1}interpolate(e,r){return`rgba(${Math.round(a.lerp(this.rgb.r,e.rgb.r,r))}, ${Math.round(a.lerp(this.rgb.g,e.rgb.g,r))}, ${Math.round(a.lerp(this.rgb.b,e.rgb.b,r))}, ${a.lerp(this.alpha,e.alpha,r)})`}tint(e=3){const r=this.luminance(),t=Math.min(5,Math.max(1,e)),{base:o,range:n,power:s}={1:{base:.06,range:.18,power:.4},2:{base:.09,range:.23,power:.5},3:{base:.12,range:.3,power:.6},4:{base:.15,range:.35,power:.75},5:{base:.18,range:.42,power:.95}}[t],i=o+n*Math.pow(1-r,s),l=a.lighten(this.toHex(),i);return new a(l)}shade(e=3){const r=1-this.luminance(),t=Math.min(5,Math.max(1,e)),{base:o,range:n,power:s}={1:{base:.05,range:.15,power:.5},2:{base:.07,range:.2,power:.55},3:{base:.1,range:.25,power:.65},4:{base:.1,range:.3,power:.8},5:{base:.12,range:.35,power:1}}[t],i=o+n*Math.pow(r,s),l=a.darken(this.toHex(),i);return new a(l)}}}}]);
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.