PageSourceSearch

https://www.sqlfluff.com/stats/_npm/[email protected]/65d51007.js

js sqlfluff.com collected 2026-09-24 18:57:08 UTC 10,445 bytes, 7 lines download raw bytes

vendor: 8,515 bytes, lines 1-7
1/**
2 * Bundled by jsDelivr using Rollup v4.62.2 and esbuild v0.28.1.
3 * Original file: /npm/[email protected]/src/index.js
4 *
5 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
6 */
7function y(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function v(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function g(){}var d=.7,m=1/d,$="\\s*([+-]?\\d+)\\s*",M="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",c="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ge=/^#([0-9a-f]{3,8})$/,de=new RegExp(`^rgb\\(${$},${$},${$}\\)$`),oe=new RegExp(`^rgb\\(${c},${c},${c}\\)$`),pe=new RegExp(`^rgba\\(${$},${$},${$},${M}\\)$`),we=new RegExp(`^rgba\\(${c},${c},${c},${M}\\)$`),ye=new RegExp(`^hsl\\(${M},${c},${c}\\)$`),me=new RegExp(`^hsla\\(${M},${c},${c},${M}\\)$`),A={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};y(g,R,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:L,formatHex:L,formatHex8:$e,formatHsl:Ne,formatRgb:K,toString:K});function L(){return this.rgb().formatHex()}function $e(){return this.rgb().formatHex8()}function Ne(){return J(this).formatHsl()}function K(){return this.rgb().formatRgb()}function R(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=ge.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?X(t):r===3?new a(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?k(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?k(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=de.exec(e))?new a(t[1],t[2],t[3],1):(t=oe.exec(e))?new a(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=pe.exec(e))?k(t[1],t[2],t[3],t[4]):(t=we.exec(e))?k(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=ye.exec(e))?G(t[1],t[2]/100,t[3]/100,1):(t=me.exec(e))?G(t[1],t[2]/100,t[3]/100,t[4]):A.hasOwnProperty(e)?X(A[e]):e==="transparent"?new a(NaN,NaN,NaN,0):null}function X(e){return new a(e>>16&255,e>>8&255,e&255,1)}function k(e,t,r,n){return n<=0&&(e=t=r=NaN),new a(e,t,r,n)}function _(e){return e instanceof g||(e=R(e)),e?(e=e.rgb(),new a(e.r,e.g,e.b,e.opacity)):new a}function Y(e,t,r,n){return arguments.length===1?_(e):new a(e,t,r,n??1)}function a(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}y(a,Y,v(g,{brighter(e){return e=e==null?m:Math.pow(m,e),new a(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?d:Math.pow(d,e),new a(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new a(o(this.r),o(this.g),o(this.b),q(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Z,formatHex:Z,formatHex8:ve,formatRgb:F,toString:F}));function Z(){return`#${p(this.r)}${p(this.g)}${p(this.b)}`}function ve(){return`#${p(this.r)}${p(this.g)}${p(this.b)}${p((isNaN(this.opacity)?1:this.opacity)*255)}`}function F(){const e=q(this.opacity);return`${e===1?"rgb(":"rgba("}${o(this.r)}, ${o(this.g)}, ${o(this.b)}${e===1?")":`, ${e})`}`}function q(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function o(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function p(e){return e=o(e),(e<16?"0":"")+e.toString(16)}function G(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new h(e,t,r,n)}function J(e){if(e instanceof h)return new h(e.h,e.s,e.l,e.opacity);if(e instanceof g||(e=R(e)),!e)return new h;if(e instanceof h)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),f=Math.max(t,r,n),s=NaN,x=f-i,b=(f+i)/2;return x?(t===f?s=(r-n)/x+(r<n)*6:r===f?s=(n-t)/x+2:s=(t-r)/x+4,x/=b<.5?f+i:2-f-i,s*=60):x=b>0&&b<1?0:s,new h(s,x,b,e.opacity)}function Q(e,t,r,n){return arguments.length===1?J(e):new h(e,t,r,n??1)}function h(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}y(h,Q,v(g,{brighter(e){return e=e==null?m:Math.pow(m,e),new h(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?d:Math.pow(d,e),new h(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new a(I(e>=240?e-240:e+120,i,n),I(e,i,n),I(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new h(T(this.h),E(this.s),E(this.l),q(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=q(this.opacity);return`${e===1?"hsl(":"hsla("}${T(this.h)}, ${E(this.s)*100}%, ${E(this.l)*100}%${e===1?")":`, ${e})`}`}}));function T(e){return e=(e||0)%360,e<0?e+360:e}function E(e){return Math.max(0,Math.min(1,e||0))}function I(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const U=Math.PI/180,V=180/Math.PI,C=18,W=.96422,ee=1,te=.82521,re=4/29,N=6/29,ne=3*N*N,Me=N*N*N;function ie(e){if(e instanceof l)return new l(e.l,e.a,e.b,e.opacity);if(e instanceof u)return he(e);e instanceof a||(e=_(e));var t=D(e.r),r=D(e.g),n=D(e.b),i=z((.2225045*t+.7168786*r+.0606169*n)/ee),f,s;return t===r&&r===n?f=s=i:(f=z((.4360747*t+.3850649*r+.1430804*n)/W),s=z((.0139322*t+.0971045*r+.7141733*n)/te)),new l(116*i-16,500*(f-i),200*(i-s),e.opacity)}function He(e,t){return new l(e,0,0,t??1)}function ae(e,t,r,n){return arguments.length===1?ie(e):new l(e,t,r,n??1)}function l(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}y(l,ae,v(g,{brighter(e){return new l(this.l+C*(e??1),this.a,this.b,this.opacity)},darker(e){return new l(this.l-C*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return t=W*j(t),e=ee*j(e),r=te*j(r),new a(B(3.1338561*t-1.6168667*e-.4906146*r),B(-.9787684*t+1.9161415*e+.033454*r),B(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}}));function z(e){return e>Me?Math.pow(e,1/3):e/ne+re}function j(e){return e>N?e*e*e:ne*(e-re)}
7function B(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function D(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function fe(e){if(e instanceof u)return new u(e.h,e.c,e.l,e.opacity);if(e instanceof l||(e=ie(e)),e.a===0&&e.b===0)return new u(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*V;return new u(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Re(e,t,r,n){return arguments.length===1?fe(e):new u(r,t,e,n??1)}function se(e,t,r,n){return arguments.length===1?fe(e):new u(e,t,r,n??1)}function u(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}function he(e){if(isNaN(e.h))return new l(e.l,0,0,e.opacity);var t=e.h*U;return new l(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}y(u,se,v(g,{brighter(e){return new u(this.h,this.c,this.l+C*(e??1),this.opacity)},darker(e){return new u(this.h,this.c,this.l-C*(e??1),this.opacity)},rgb(){return he(this).rgb()}}));var le=-.14861,O=1.78277,S=-.29227,P=-.90649,H=1.97294,xe=H*P,ce=H*O,ue=O*S-P*le;function ke(e){if(e instanceof w)return new w(e.h,e.s,e.l,e.opacity);e instanceof a||(e=_(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(ue*n+xe*t-ce*r)/(ue+xe-ce),f=n-i,s=(H*(r-i)-S*f)/P,x=Math.sqrt(s*s+f*f)/(H*i*(1-i)),b=x?Math.atan2(s,f)*V-120:NaN;return new w(b<0?b+360:b,x,i,e.opacity)}function be(e,t,r,n){return arguments.length===1?ke(e):new w(e,t,r,n??1)}function w(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}y(w,be,v(g,{brighter(e){return e=e==null?m:Math.pow(m,e),new w(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?d:Math.pow(d,e),new w(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*U,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new a(255*(t+r*(le*n+O*i)),255*(t+r*(S*n+P*i)),255*(t+r*(H*n)),this.opacity)}}));export{R as color,be as cubehelix,He as gray,se as hcl,Q as hsl,ae as lab,Re as lch,Y as rgb};

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.