1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="a4ed1c98-576a-bf49-5794-486ce2b91b89")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,89888,e=>{"use strict";var t=e.i(271645),a=e.i(266027),r=e.i(693162),o=e.i(38190);function i(){let e=(0,t.useContext)(r.PreviewContext);return{auth:e?.auth??null,previewWebsiteId:e?.preview?.plusWebsiteId}}e.s(["usePreviewData",0,i,"useWebsiteAppLink",0,function(){return(0,a.useQuery)({...(0,o.getWebsiteSettingsQueryOptions)(i()),select:e=>e?.urls?.appLink})},"useWebsiteFooter",0,function(){return(0,a.useQuery)({...(0,o.getWebsiteSettingsQueryOptions)(i()),select:e=>e?.footer?.data??null})},"useWebsiteHeader",0,function(){return(0,a.useQuery)({...(0,o.getWebsiteSettingsQueryOptions)(i()),select:e=>e?.header?.data??null})},"useWebsiteIdentity",0,function(){return(0,a.useQuery)({...(0,o.getWebsiteSettingsQueryOptions)(i()),select:e=>e?{organisationId:e.organisationId,bundleId:e.bundleId,organisationName:e.organisationName}:void 0})},"useWebsitePages",0,function(){return(0,a.useQuery)({...(0,o.getWebsiteSettingsQueryOptions)(i()),select:e=>e?.pages})},"useWebsiteSettings",0,function(){return(0,a.useQuery)((0,o.getWebsiteSettingsQueryOptions)(i()))},"useWebsiteThemeFavicons",0,function(){return(0,a.useQuery)({...(0,o.getWebsiteSettingsQueryOptions)(i()),select:e=>e?.theme.favicons})},"useWebsiteThemeLogo",0,function(){return(0,a.useQuery)({...(0,o.getWebsiteSettingsQueryOptions)(i()),select:e=>e?.theme.logoUrl})}])},693162,e=>{"use strict";var t=e.i(843476),a=e.i(271645),r=e.i(912598),o=e.i(42151);let i={AUTH:"AUTH",PREVIEW:"PREVIEW",PROPS_UPDATED:"PROPS_UPDATED",AUTO_SCROLL:"AUTO_SCROLL",COLOR_PREVIEW:"COLOR_PREVIEW",LOGO_PREVIEW:"LOGO_PREVIEW",THEME_OVERRIDE:"THEME_OVERRIDE",SECTION_DATA:"SECTION_DATA"},n=new Set(Object.values(i)),l=(0,a.createContext)(null);e.s(["PreviewContext",0,l,"PreviewProvider",0,function({children:e}){let[u,d]=(0,a.useState)(null),[h,s]=(0,a.useState)(null),[p,f]=(0,a.useState)(null),[b,v]=(0,a.useState)(null),[c,g]=(0,a.useState)(null),[m,y]=(0,a.useState)(null),[M,x]=(0,a.useState)(!1),w=(0,r.useQueryClient)();(0,a.useEffect)(()=>(function(e){function t(t){if(!t.origin.startsWith("http://localhost:")&&"https://connectme.healthera.co.uk"!==t.origin||!function(e){if("object"!=typeof e||null===e||!("type"in e))return!1;let t=e.type;if(!n.has(t))return!1;if(t===i.AUTH){let t=e.payload;return"object"==typeof t&&null!==t&&"userId"in t&&"expiresAt"in t&&"signature"in t}if(t===i.PROPS_UPDATED||t===i.AUTO_SCROLL)return!0;let a=e.payload;if("object"!=typeof a||null===a)return!1;if(t===i.COLOR_PREVIEW)return"string"==typeof a.primaryColor;if(t===i.LOGO_PREVIEW)return"string"==typeof a.logoUrl;if(t===i.THEME_OVERRIDE){let{primaryColor:e,logoUrl:t}=a;if(void 0!==e&&"string"!=typeof e||void 0!==t&&"string"!=typeof t)return!1}return!0}(t.data))return;let a=t.data;switch(a.type){case i.AUTH:e.onAuth(a.payload);break;case i.PREVIEW:e.onPreview(a.payload);break;case i.PROPS_UPDATED:e.onPropsUpdated();break;case i.AUTO_SCROLL:e.onAutoScroll();break;case i.COLOR_PREVIEW:e.onColorPreview?.(a.payload);break;case i.LOGO_PREVIEW:e.onLogoPreview?.(a.payload);break;case i.THEME_OVERRIDE:e.onThemeOverride?.(a.payload);break;case i.SECTION_DATA:e.onSectionData?.(a.payload)}}return window.addEventListener("message",t),window.parent.postMessage({type:"READY"},"*"),()=>window.removeEventListener("message",t)})({onAuth:e=>{d(e)},onPreview:e=>{s(e)},onPropsUpdated:()=>{w.invalidateQueries({queryKey:["landing-page"]}),w.invalidateQueries({queryKey:["landing-section"]}),w.invalidateQueries({queryKey:["global-section"]}),w.invalidateQueries({queryKey:["website-settings"]})},onAutoScroll:()=>{x(!0)},onColorPreview:e=>{f(e)},onLogoPreview:e=>{v(e)},onThemeOverride:e=>{g(e)},onSectionData:e=>{y(e)}}),[w]),(0,a.useEffect)(()=>{u&&w.resetQueries({queryKey:["website-settings"]})}
2,[u,w]),(0,a.useEffect)(()=>{if(!M)return;let e=null,t=null,a=null,r=null,o=a=>{if(null!==t){let e=Math.min((a-t)/1e3,.1),r=document.documentElement.scrollHeight-window.innerHeight;if(!(window.scrollY<r))return void l();window.scrollBy(0,30*e)}t=a,e=requestAnimationFrame(o)},i=!1,n=()=>{null!==e||i||(t=null,e=requestAnimationFrame(o))},l=()=>{null!==e&&(cancelAnimationFrame(e),e=null),t=null},u=()=>{i=!0,l(),r&&(clearTimeout(r),r=null),a&&clearTimeout(a),a=setTimeout(()=>{i=!1,n()},3e3)},d=["wheel","touchstart","pointerdown"];d.forEach(e=>window.addEventListener(e,u,{passive:!0}));let h=new MutationObserver(()=>{document.documentElement.scrollHeight-window.innerHeight>0&&(h.disconnect(),r=setTimeout(n,2e3))});return document.documentElement.scrollHeight-window.innerHeight>0?r=setTimeout(n,2e3):h.observe(document.body,{childList:!0,subtree:!0}),()=>{h.disconnect(),l(),a&&clearTimeout(a),r&&clearTimeout(r),d.forEach(e=>window.removeEventListener(e,u))}},[M]);let z=null!==u&&null!==h;(0,a.useEffect)(()=>{let e=c?.primaryColor??(z?void 0:p?.primaryColor);if(!e)return;let t=document.documentElement,a=(0,o.getColorVariables)(e),r=new Map;for(let[e,o]of Object.entries(a))r.set(e,t.style.getPropertyValue(e)),t.style.setProperty(e,o);return()=>{for(let[e,a]of r)a?t.style.setProperty(e,a):t.style.removeProperty(e)}},[p,c,z]),(0,a.useEffect)(()=>{let e=e=>{let t=e.target.closest("a");t&&t.href&&e.preventDefault()},t=e=>{e.preventDefault()},a=history.pushState.bind(history),r=history.replaceState.bind(history);history.pushState=()=>{},history.replaceState=()=>{};let o=e=>{let t=e.target.closest("a");t&&t.href&&e.preventDefault()};return document.addEventListener("click",e,!0),document.addEventListener("auxclick",o,!0),document.addEventListener("contextmenu",t,!0),()=>{document.removeEventListener("click",e,!0),document.removeEventListener("auxclick",o,!0),document.removeEventListener("contextmenu",t,!0),history.pushState=a,history.replaceState=r}},[]);let k=(0,a.useMemo)(()=>({auth:u,preview:h,colorPreview:p,logoPreview:b,themeOverride:c,sectionData:m,isReady:z}),[u,h,p,b,c,m,z]);return(0,t.jsx)(l.Provider,{value:k,children:e})},"usePreviewContext",0,function(){let e=(0,a.useContext)(l);if(!e)throw Error("usePreviewContext must be used within a PreviewProvider");return e}],693162)},42151,286110,699208,432771,e=>{"use strict";let t,a,r,o;e.s(["Tok",()=>N,"default",()=>H],286110);let i=(e,t)=>{if("number"==typeof e){if(3===t)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|240&e)/255,b:(15&e|e<<4&240)/255};if(4===t)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|240&e)/255,alpha:(15&e|e<<4&240)/255};if(6===t)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(255&e)/255};if(8===t)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(255&e)/255}}},n={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32},l=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,u="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",d=`${u}%`,h=`(?:${u}%|${u})`,s=`(?:${u}%|${u}|none)`,p=`(?:${u}(deg|grad|rad|turn)|${u})`,f="\\s*,\\s*";RegExp("^"+s+"$");let b=RegExp(`^rgba?\\(\\s*${u}${f}${u}${f}${u}\\s*(?:,\\s*${h}
2\\s*)?\\)$`),v=RegExp(`^rgba?\\(\\s*${d}${f}${d}${f}${d}\\s*(?:,\\s*${h}\\s*)?\\)$`),c=(e,t)=>void 0===e?void 0:"object"!=typeof e?H(e):void 0!==e.mode?e:t?{...e,mode:t}:void 0,g=(e="rgb")=>t=>void 0!==(t=c(t,e))?t.mode===e?t:m[t.mode][e]?m[t.mode][e](t):"rgb"===e?m[t.mode].rgb(t):m.rgb[e](m[t.mode].rgb(t)):void 0,m={},y={},M=[],x={},w=e=>e,z=e=>(m[e.mode]={...m[e.mode],...e.toMode},Object.keys(e.fromMode||{}).forEach(t=>{m[t]||(m[t]={}),m[t][e.mode]=e.fromMode[t]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(t=>{if(void 0===e.ranges[t]&&(e.ranges[t]=[0,1]),!e.interpolate[t])throw Error(`Missing interpolator for: ${t}`);"function"==typeof e.interpolate[t]&&(e.interpolate[t]={use:e.interpolate[t]}),e.interpolate[t].fixup||(e.interpolate[t].fixup=w)}),y[e.mode]=e,(e.parse||[]).forEach(t=>{P(t,e.mode)}),g(e.mode)),k=e=>y[e],P=(e,t)=>{if("string"==typeof e){if(!t)throw Error("'mode' required when 'parser' is a string");x[e]=t}else"function"==typeof e&&0>M.indexOf(e)&&M.push(e)},E=/[^\x00-\x7F]|[a-zA-Z_]/,$=/[^\x00-\x7F]|[-\w]/,N={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},I=0;function O(e){let t=e[I],a=e[I+1];return"-"===t||"+"===t?/\d/.test(a)||"."===a&&/\d/.test(e[I+2]):"."===t?/\d/.test(a):/\d/.test(t)}function S(e){if(I>=e.length)return!1;let t=e[I];if(E.test(t))return!0;if("-"===t){if(e.length-I<2)return!1;let t=e[I+1];if("-"===t||E.test(t))return!0}return!1}let A={deg:1,rad:180/Math.PI,grad:.9,turn:360};function q(e){let t="";if(("-"===e[I]||"+"===e[I])&&(t+=e[I++]),t+=R(e),"."===e[I]&&/\d/.test(e[I+1])&&(t+=e[I++]+R(e)),("e"===e[I]||"E"===e[I])&&(("-"===e[I+1]||"+"===e[I+1])&&/\d/.test(e[I+2])?t+=e[I++]+e[I++]+R(e):/\d/.test(e[I+1])&&(t+=e[I++]+R(e))),S(e)){let a=T(e);return"deg"===a||"rad"===a||"turn"===a||"grad"===a?{type:N.Hue,value:t*A[a]}:void 0}return"%"===e[I]?(I++,{type:N.Percentage,value:+t}):{type:N.Number,value:+t}}function R(e){let t="";for(;/\d/.test(e[I]);)t+=e[I++];return t}function T(e){let t="";for(;I<e.length&&$.test(e[I]);)t+=e[I++];return t}function j(e,t){let a,r=[];for(;e._i<e.length;){if((a=e[e._i++]).type===N.None||a.type===N.Number||a.type===N.Alpha||a.type===N.Percentage||t&&a.type===N.Hue){r.push(a);continue}if(a.type===N.ParenClose){if(e._i<e.length)return;continue}return}if(!(r.length<3)&&!(r.length>4)){if(4===r.length){if(r[3].type!==N.Alpha)return;r[3]=r[3].value}return 3===r.length&&r.push({type:N.None,value:void 0}),r.every(e=>e.type!==N.Alpha)?r:void 0}}let H=e=>{let t;if("string"!=typeof e)return;let a=function(e=""){let t,a=e.trim(),r=[];for(I=0;I<a.length;){if("\n"===(t=a[I++])||" "===t||" "===t){for(;I<a.length&&("\n"===a[I]||" "===a[I]||" "===a[I]);)I++;continue}if(","===t)return;if(")"===t){r.push({type:N.ParenClose});continue}if("+"===t){if(I--,O(a)){r.push(q(a));continue}return}if("-"===t){if(I--,O(a)){r.push(q(a));continue}if(S(a)){r.push({type:N.Ident,value:T(a)});continue}return}if("."===t){if(I--,O(a)){r.push(q(a));continue}return}if("/"===t){let e;for(;I<a.length&&("\n"===a[I]||" "===a[I]||" "===a[I]);)I++;if(O(a)&&(e=q(a)).type!==N.Hue){r.push({type:N.Alpha,value:e});continue}if(S(a)&&"none"===T(a)){r.push({type:N.Alpha,value:{type:N.None,value:void 0}});continue}return}if(/\d/.test(t)){I--,r.push(q(a));continue}if(E.test(t)){I--,r.push(function(e){let t=T(e);return"("===e[I]?(I++,{type:N.Function,value:t}):"none"===t?{type:N.None,value:void 0}:{type:N.Ident,value:t}}(a));continue}return}return r}(e),r=a?function(e,t){e._i=0;let a=e[e._i++];if(!a||a.type!==N.Function)return;let r=j(e,t);if(r)return r.unshift(a.value),r}(a,!0):void 0,o=0,i=M.length;for(;o<i;)if(void 0!==(t=M[o++](e,r)))return t;return a?function(e){e._i=0;let t=e[e._i++];if(!t||t.type!==N.Function||"color"!==t.value||(t=e[e._i++]).type!==N.Ident)return;let a=x[t.value];if(!a)return;let r={mode:a},o=j(e,!1);if(!o)return;let i=k(a).channels;for(let e=0,t,a;e<i.length;e++)t=o[e],a=i[e],t.type!==N.None&&(r[a]=t.type===N.Number?t.value:t.value/100,"alpha"===a&&(r[a]=Math.max(0,Math.min(1,r[a]))));return r}(a):void 0},C=(t=(e,t,a)=>e+a*(t-e),e=>{let a=(e=>{let t=[];for(let a=0;a<e.length-1;a++){let r=e[a],o=e[a+1];void 0===r&&void 0===o?t.push(void 0):void 0!==r&&void 0!==o?t.push([r,o]):t.push(void 0!==r?[r,r]:[o,o])}return t})(e);return e=>{let r=e*a.length,o=e>=1?a.length-1:Math.max(Math.floor(r),0),i=a[o];return void 0===i?void 0:t(i[0],i[1],r-o)}}),L=e=>{let t=!1,a=e.map(e=>void 0!==e?(t=!0,e):1);return t?a:e},_={mode:"rgb",channels:["r","g","b","alpha"],parse:[function(e,t){if(!t||"rgb"!==t[0]&&"rgba"!==t[0])return;let a={mode:"rgb"},[,r,o,i,n]=t;if(r.type!==N.Hue&&o.type!==N.Hue&&i.type!==N.Hue)return r.type!==N.None&&(a.r=r.type===N.Number?r.value/255:r.value/100),o.type!==N.None&&(a.g=o.type===N.Number?o.value/255:o.value/100),i.type!==N.None&&(a.b=i.type===N.Number?i.value/255:i.value/100),n.type!==N.None&&(a.alpha=Math.min(1,Math.max(0,n.type===N.Number?n.value:n.value/100))),a},e=>{let t;return(t=e.match(l))?i(parseInt(t[1],16),t[1].length):void 0},e=>{let t,a={mode:"rgb"};if(t=e.match(b))void 0!==t[1]&&(a.r=t[1]/255),void 0!==t[2]&&(a.g=t[2]/255),void 0!==t[3]&&(a.b=t[3]/255
2);else{if(!(t=e.match(v)))return;void 0!==t[1]&&(a.r=t[1]/100),void 0!==t[2]&&(a.g=t[2]/100),void 0!==t[3]&&(a.b=t[3]/100)}return void 0!==t[4]?a.alpha=Math.max(0,Math.min(1,t[4]/100)):void 0!==t[5]&&(a.alpha=Math.max(0,Math.min(1,+t[5]))),a},e=>i(n[e.toLowerCase()],6),e=>"transparent"===e?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,"srgb"],serialize:"srgb",interpolate:{r:C,g:C,b:C,alpha:{use:C,fixup:L}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},W=(e=0)=>Math.pow(Math.abs(e),563/256)*Math.sign(e),D=e=>{let t=W(e.r),a=W(e.g),r=W(e.b),o={mode:"xyz65",x:.5766690429101305*t+.1855582379065463*a+.1882286462349947*r,y:.297344975250536*t+.6273635662554661*a+.0752914584939979*r,z:.0270313613864123*t+.0706888525358272*a+.9913375368376386*r};return void 0!==e.alpha&&(o.alpha=e.alpha),o},Q=e=>Math.pow(Math.abs(e),256/563)*Math.sign(e),U=({x:e,y:t,z:a,alpha:r})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===a&&(a=0);let o={mode:"a98",r:Q(2.0415879038107465*e-.5650069742788597*t-.3447313507783297*a),g:Q(-.9692436362808798*e+1.8759675015077206*t+.0415550574071756*a),b:Q(.0134442806320312*e-.1183623922310184*t+1.0151749943912058*a)};return void 0!==r&&(o.alpha=r),o},V=(e=0)=>{let t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((t+.055)/1.055,2.4)},Y=({r:e,g:t,b:a,alpha:r})=>{let o={mode:"lrgb",r:V(e),g:V(t),b:V(a)};return void 0!==r&&(o.alpha=r),o},F=e=>{let{r:t,g:a,b:r,alpha:o}=Y(e),i={mode:"xyz65",x:.4123907992659593*t+.357584339383878*a+.1804807884018343*r,y:.2126390058715102*t+.715168678767756*a+.0721923153607337*r,z:.0193308187155918*t+.119194779794626*a+.9505321522496607*r};return void 0!==o&&(i.alpha=o),i},Z=(e=0)=>{let t=Math.abs(e);return t>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(t,1/2.4)-.055):12.92*e},X=({r:e,g:t,b:a,alpha:r},o="rgb")=>{let i={mode:o,r:Z(e),g:Z(t),b:Z(a)};return void 0!==r&&(i.alpha=r),i},K=({x:e,y:t,z:a,alpha:r})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===a&&(a=0);let o=X({r:3.2409699419045226*e-1.537383177570094*t-.4986107602930034*a,g:-.9692436362808796*e+1.8759675015077204*t+.0415550574071756*a,b:.0556300796969936*e-.2039769588889765*t+1.0569715142428784*a});return void 0!==r&&(o.alpha=r),o},G={..._,mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>U(F(e)),xyz65:U},toMode:{rgb:e=>K(D(e)),xyz65:D}},B=e=>(e%=360)<0?e+360:e,J=e=>{let t;return t=e=>180>=Math.abs(e)?e:e-360*Math.sign(e),e.map((a,r,o)=>{if(void 0===a)return a;let i=B(a);return 0===r||void 0===e[r-1]?i:t(i-B(o[r-1]))}).reduce((e,t)=>(e.length&&void 0!==t&&void 0!==e[e.length-1]?e.push(t+e[e.length-1]):e.push(t),e),[])},ee=Math.PI/180,et=180/Math.PI,ea=-1.78277*.29227-.1347134789,er=(e,t)=>{if(void 0===e.h||void 0===t.h||!e.s||!t.s)return 0;let a=B(e.h),r=Math.sin((B(t.h)-a+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*t.s)*r},eo=(e,t)=>{if(void 0===e.h||void 0===t.h||!e.c||!t.c)return 0;let a=B(e.h),r=Math.sin((B(t.h)-a+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*t.c)*r},ei=e=>{let t=e.reduce((e,t)=>{if(void 0!==t){let a=t*Math.PI/180;e.sin+=Math.sin(a),e.cos+=Math.cos(a)}return e},{sin:0,cos:0}),a=180*Math.atan2(t.sin,t.cos)/Math.PI;return a<0?360+a:a},en={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:({r:e,g:t,b:a,alpha:r})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===a&&(a=0);let o=(ea*a+-1.7884503806*e-3.5172982438*t)/(ea+-1.7884503806-3.5172982438),i=a-o,n=-((1.97294*(t-o)- -.29227*i)/.90649),l={mode:"cubehelix",l:o,s:0===o||1===o?void 0:Math.sqrt(i*i+n*n)/(1.97294*o*(1-o))};return l.s&&(l.h=Math.atan2(n,i)*et-120),void 0!==r&&(l.alpha=r),l}},toMode:{rgb:({h:e,s:t,l:a,alpha:r})=>{let o={mode:"rgb"};void 0===a&&(a=0);let i=void 0===t?0:t*a*(1-a),n=Math.cos(e=(void 0===e?0:e+120)*ee),l=Math.sin(e);return o.r=a+i*(-.14861*n+1.78277*l),o.g=a+i*(-.29227*n+-.90649*l),o.b=a+i*(1.97294*n+0*l),void 0!==r&&(o.alpha=r),o}},interpolate:{h:{use:C,fixup:J},s:C,l:C,alpha:{use:C,fixup:L}},difference:{h:er},average:{h:ei}},el=({l:e,a:t,b:a,alpha:r},o="lch")=>{void 0===t&&(t=0),void 0===a&&(a=0);let i=Math.sqrt(t*t+a*a),n={mode:o,l:e,c:i};return i&&(n.h=B(180*Math.atan2(a,t)/Math.PI)),void 0!==r&&(n.alpha=r),n}
2,eu=({l:e,c:t,h:a,alpha:r},o="lab")=>{void 0===a&&(a=0);let i={mode:o,l:e,a:t?t*Math.cos(a/180*Math.PI):0,b:t?t*Math.sin(a/180*Math.PI):0};return void 0!==r&&(i.alpha=r),i},ed={X:.3457/.3585,Y:1,Z:.8251046025104602},eh={X:.3127/.329,Y:1,Z:1.0890577507598784},es=e=>Math.pow(e,3)>.008856451679035631?Math.pow(e,3):(116*e-16)/903.2962962962963,ep=({l:e,a:t,b:a,alpha:r})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===a&&(a=0);let o=(e+16)/116,i=t/500+o,n=o-a/200,l={mode:"xyz65",x:es(i)*eh.X,y:es(o)*eh.Y,z:es(n)*eh.Z};return void 0!==r&&(l.alpha=r),l},ef=e=>K(ep(e)),eb=e=>e>.008856451679035631?Math.cbrt(e):(903.2962962962963*e+16)/116,ev=({x:e,y:t,z:a,alpha:r})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===a&&(a=0);let o=eb(e/eh.X),i=eb(t/eh.Y),n={mode:"lab65",l:116*i-16,a:500*(o-i),b:200*(i-eb(a/eh.Z))};return void 0!==r&&(n.alpha=r),n},ec=e=>{let t=ev(F(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},eg=26/180*Math.PI,em=Math.cos(eg),ey=Math.sin(eg),eM=100/Math.log(1.39),ex=({l:e,c:t,h:a,alpha:r})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===a&&(a=0);let o={mode:"lab65",l:(Math.exp(e/eM)-1)/.0039},i=(Math.exp(.0435*t*1)-1)/.075,n=i*Math.cos(a/180*Math.PI-eg),l=i*Math.sin(a/180*Math.PI-eg);return o.a=n*em-l/.83*ey,o.b=n*ey+l/.83*em,void 0!==r&&(o.alpha=r),o},ew=({l:e,a:t,b:a,alpha:r})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===a&&(a=0);let o=t*em+a*ey,i=.83*(a*em-t*ey),n={mode:"dlch",l:eM/1*Math.log(1+.0039*e),c:Math.log(1+.075*Math.sqrt(o*o+i*i))/.0435};return n.c&&(n.h=B((Math.atan2(i,o)+eg)/Math.PI*180)),void 0!==r&&(n.alpha=r),n},ez=e=>ex(el(e,"dlch")),ek=e=>eu(ew(e),"dlab"),eP=RegExp(`^hsla?\\(\\s*${p}${f}${d}${f}${d}\\s*(?:,\\s*${h}\\s*)?\\)$`),eE={mode:"hsl",toMode:{rgb:function({h:e,s:t,l:a,alpha:r}){let o;e=B(void 0!==e?e:0),void 0===t&&(t=0),void 0===a&&(a=0);let i=a+t*(a<.5?a:1-a),n=i-(i-a)*2*Math.abs(e/60%2-1);switch(Math.floor(e/60)){case 0:o={r:i,g:n,b:2*a-i};break;case 1:o={r:n,g:i,b:2*a-i};break;case 2:o={r:2*a-i,g:i,b:n};break;case 3:o={r:2*a-i,g:n,b:i};break;case 4:o={r:n,g:2*a-i,b:i};break;case 5:o={r:i,g:2*a-i,b:n};break;default:o={r:2*a-i,g:2*a-i,b:2*a-i}}return o.mode="rgb",void 0!==r&&(o.alpha=r),o}},fromMode:{rgb:function({r:e,g:t,b:a,alpha:r}){void 0===e&&(e=0),void 0===t&&(t=0),void 0===a&&(a=0);let o=Math.max(e,t,a),i=Math.min(e,t,a),n={mode:"hsl",s:o===i?0:(o-i)/(1-Math.abs(o+i-1)),l:.5*(o+i)};return o-i!=0&&(n.h=(o===e?(t-a)/(o-i)+(t<a)*6:o===t?(a-e)/(o-i)+2:(e-t)/(o-i)+4)*60),void 0!==r&&(n.alpha=r),n}},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[function(e,t){if(!t||"hsl"!==t[0]&&"hsla"!==t[0])return;let a={mode:"hsl"},[,r,o,i,n]=t;if(r.type!==N.None){if(r.type===N.Percentage)return;a.h=r.value}if(o.type!==N.None){if(o.type===N.Hue)return;a.s=o.value/100}if(i.type!==N.None){if(i.type===N.Hue)return;a.l=i.value/100}return n.type!==N.None&&(a.alpha=Math.min(1,Math.max(0,n.type===N.Number?n.value:n.value/100))),a},e=>{let t=e.match(eP);if(!t)return;let a={mode:"hsl"};return void 0!==t[3]?a.h=+t[3]:void 0!==t[1]&&void 0!==t[2]&&(a.h=((e,t)=>{switch(t){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return 360*e}})(t[1],t[2])),void 0!==t[4]&&(a.s=Math.min(Math.max(0,t[4]/100),1)),void 0!==t[5]&&(a.l=Math.min(Math.max(0,t[5]/100),1)),void 0!==t[6]?a.alpha=Math.max(0,Math.min(1,t[6]/100)):void 0!==t[7]&&(a.alpha=Math.max(0,Math.min(1,+t[7]))),a}],serialize:e=>`hsl(${void 0!==e.h?e.h:"none"} ${void 0!==e.s?100*e.s+"%":"none"} ${void 0!==e.l?100*e.l+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:C,fixup:J},s:C,l:C,alpha:{use:C,fixup:L}},difference:{h:er},average:{h:ei}};function e$({h:e,s:t,v:a,alpha:r}){let o;e=B(void 0!==e?e:0),void 0===t&&(t=0),void 0===a&&(a=0);let i=Math.abs(e/60%2-1);switch(Math.floor(e/60)){case 0:o={r:a,g:a*(1-t*i),b:a*(1-t)};break;case 1:o={r:a*(1-t*i),g:a,b:a*(1-t)};break;case 2:o={r:a*(1-t),g:a,b:a*(1-t*i)};break;case 3:o={r:a*(1-t),g:a*(1-t*i),b:a};break;case 4:o={r:a*(1-t*i),g:a*(1-t),b:a};break;case 5:o={r:a,g:a*(1-t),b:a*(1-t*i)};break;default:o={r:a*(1-t),g:a*(1-t),b:a*(1-t)}}return o.mode="rgb",void 0!==r&&(o.alpha=r),o}function eN({r:e,g:t,b:a,alpha:r}){void 0===e&&(e=0),void 0===t&&(t=0),void 0===a&&(a=0);let o=Math.max(e,t,a),i=Math.min(e,t,a),n={mode:"hsv",s:0===o?0:1-i/o,v:o};return o-i!=0&&(n.h=(o===e?(t-a)/(o-i)+(t<a)*6:o===t?(a-e)/(o-i)+2:(e-t)/(o-i)+4)*60),void 0!==r&&(n.alpha=r),n}let eI={mode:"hsv",toMode:{rgb:e$},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:eN},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:C,fixup:J},s:C,v:C,alpha:{use:C,fixup:L}},difference:{h:er},average:{h:ei}};function eO(e){if(e<0)return 0;let t=Math.pow(e,.012683313515655966);return 1e4*Math.pow(Math.max(0,t-.8359375)/(18.8515625-18.6875*t),6.277394636015326)}function eS(e){if(e<0)return 0;let t=Math.pow(e/1e4,.1593017578125);return Math.pow((.8359375+18.8515625*t)/(1+18.6875*t),78.84375)}let eA=e=>
2Math.max(e/203,0),eq=({i:e,t,p:a,alpha:r})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===a&&(a=0);let o=eO(e+.008609037037932761*t+.11102962500302593*a),i=eO(e-.00860903703793275*t-.11102962500302599*a),n=eO(e+.5600313357106791*t-.32062717498731885*a),l={mode:"xyz65",x:eA(2.070152218389422*o-1.3263473389671556*i+.2066510476294051*n),y:eA(.3647385209748074*o+.680566024947227*i-.0453045459220346*n),z:eA(-.049747207535812*o-.0492609666966138*i+1.1880659249923042*n)};return void 0!==r&&(l.alpha=r),l},eR=(e=0)=>Math.max(203*e,0),eT=({x:e,y:t,z:a,alpha:r})=>{let o=eR(e),i=eR(t),n=eR(a),l=eS(.3592832590121217*o+.6976051147779502*i-.0358915932320289*n),u=eS(-.1920808463704995*o+1.1004767970374323*i+.0753748658519118*n),d=eS(.0070797844607477*o+.0748396662186366*i+.8433265453898765*n),h={mode:"itp",i:.5*l+.5*u,t:1.61376953125*l-3.323486328125*u+1.709716796875*d,p:4.378173828125*l-4.24560546875*u-.132568359375*d};return void 0!==r&&(h.alpha=r),h},ej=e=>{if(e<0)return 0;let t=Math.pow(e/1e4,.1593017578125);return Math.pow((.8359375+18.8515625*t)/(1+18.6875*t),134.03437499999998)},eH=(e=0)=>Math.max(203*e,0),eC=({x:e,y:t,z:a,alpha:r})=>{e=eH(e),t=eH(t);let o=1.15*e-.15*(a=eH(a)),i=.66*t+.34*e,n=ej(.41478972*o+.579999*i+.014648*a),l=ej(-.20151*o+1.120649*i+.0531008*a),u=ej(-.0166008*o+.2648*i+.6684799*a),d=(n+l)/2,h={mode:"jab",j:.44*d/(1-.56*d)-16295499532821565e-27,a:3.524*n-4.066708*l+.542708*u,b:.199076*n+1.096799*l-1.295875*u};return void 0!==r&&(h.alpha=r),h},eL=e=>{if(e<0)return 0;let t=Math.pow(e,.007460772656268216);return 1e4*Math.pow((.8359375-t)/(18.6875*t-18.8515625),6.277394636015326)},e_=({j:e,a:t,b:a,alpha:r})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===a&&(a=0);let o=(e+16295499532821565e-27)/(.44+.56*(e+16295499532821565e-27)),i=eL(o+.13860504*t+.058047316*a),n=eL(o-.13860504*t-.058047316*a),l=eL(o-.096019242*t-.8118919*a),u={mode:"xyz65",x:(1.661373024652174*i-.914523081304348*n+.23136208173913045*l)/203,y:(-.3250758611844533*i+1.571847026732543*n-.21825383453227928*l)/203,z:(-.090982811*i-.31272829*n+1.5227666*l)/203};return void 0!==r&&(u.alpha=r),u},eW=e=>{let t=eC(F(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},eD=e=>K(e_(e)),eQ=({j:e,a:t,b:a,alpha:r})=>{void 0===t&&(t=0),void 0===a&&(a=0);let o=Math.sqrt(t*t+a*a),i={mode:"jch",j:e,c:o};return o&&(i.h=B(180*Math.atan2(a,t)/Math.PI)),void 0!==r&&(i.alpha=r),i},eU=({j:e,c:t,h:a,alpha:r})=>{void 0===a&&(a=0);let o={mode:"jab",j:e,a:t?t*Math.cos(a/180*Math.PI):0,b:t?t*Math.sin(a/180*Math.PI):0};return void 0!==r&&(o.alpha=r),o},eV=e=>Math.pow(e,3)>.008856451679035631?Math.pow(e,3):(116*e-16)/903.2962962962963,eY=({l:e,a:t,b:a,alpha:r})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===a&&(a=0);let o=(e+16)/116,i=t/500+o,n=o-a/200,l={mode:"xyz50",x:eV(i)*ed.X,y:eV(o)*ed.Y,z:eV(n)*ed.Z};return void 0!==r&&(l.alpha=r),l},eF=({x:e,y:t,z:a,alpha:r})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===a&&(a=0);let o=X({r:3.1341359569958707*e-1.6173863321612538*t-.4906619460083532*a,g:-.978795502912089*e+1.916254567259524*t+.03344273116131949*a,b:.07195537988411677*e-.2289768264158322*t+1.405386058324125*a});return void 0!==r&&(o.alpha=r),o},eZ=e=>eF(eY(e)),eX=e=>{let{r:t,g:a,b:r,alpha:o}=Y(e),i={mode:"xyz50",x:.436065742824811*t+.3851514688337912*a+.14307845442264197*r,y:.22249319175623702*t+.7168870538238823*a+.06061979053616537*r,z:.013923904500943465*t+.09708128566574634*a+.7140993584005155*r};return void 0!==o&&(i.alpha=o),i},eK=e=>e>.008856451679035631?Math.cbrt(e):(903.2962962962963*e+16)/116,eG=({x:e,y:t,z:a,alpha:r})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===a&&(a=0);let o=eK(e/ed.X),i=eK(t/ed.Y),n={mode:"lab",l:116*i-16,a:500*(o-i),b:200*(i-eK(a/ed.Z))};return void 0!==r&&(n.alpha=r),n},eB=e=>{let t=eG(eX(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},eJ={mode:"lab",toMode:{xyz50:eY,rgb:eZ},fromMode:{xyz50:eG,rgb:eB},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[function(e,t){if(!t||"lab"!==t[0])return;let a={mode:"lab"},[,r,o,i,n]=t;if(r.type!==N.Hue&&o.type!==N.Hue&&i.type!==N.Hue)return r.type!==N.None&&(a.l=Math.min(Math.max(0,r.value),100)),o.type!==N.None&&(a.a=o.type===N.Number?o.value:125*o.value/100),i.type!==N.None&&(a.b=i.type===N.Number?i.value:125*i.value/100),n.type!==N.None&&(a.alpha=Math.min(1,Math.max(0,n.type===N.Number?n.value:n.value/100))),a}],serialize:e=>`lab(${void 0!==e.l?e.l:"none"} ${void 0!==e.a?e.a:"none"} ${void 0!==e.b?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:C,a:C,b:C,alpha:{use:C,fixup:L}}}
2,e0={...eJ,mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:ep,rgb:ef},fromMode:{xyz65:ev,rgb:ec},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}},e1={mode:"lch",toMode:{lab:eu,rgb:e=>eZ(eu(e))},fromMode:{rgb:e=>el(eB(e)),lab:el},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[function(e,t){if(!t||"lch"!==t[0])return;let a={mode:"lch"},[,r,o,i,n]=t;if(r.type!==N.None){if(r.type===N.Hue)return;a.l=Math.min(Math.max(0,r.value),100)}if(o.type!==N.None&&(a.c=Math.max(0,o.type===N.Number?o.value:150*o.value/100)),i.type!==N.None){if(i.type===N.Percentage)return;a.h=i.value}return n.type!==N.None&&(a.alpha=Math.min(1,Math.max(0,n.type===N.Number?n.value:n.value/100))),a}],serialize:e=>`lch(${void 0!==e.l?e.l:"none"} ${void 0!==e.c?e.c:"none"} ${void 0!==e.h?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:C,fixup:J},c:C,l:C,alpha:{use:C,fixup:L}},difference:{h:eo},average:{h:ei}},e5={...e1,mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>eu(e,"lab65"),rgb:e=>ef(eu(e,"lab65"))},fromMode:{rgb:e=>el(ec(e),"lch65"),lab65:e=>el(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}},e2=({l:e,u:t,v:a,alpha:r})=>{void 0===t&&(t=0),void 0===a&&(a=0);let o=Math.sqrt(t*t+a*a),i={mode:"lchuv",l:e,c:o};return o&&(i.h=B(180*Math.atan2(a,t)/Math.PI)),void 0!==r&&(i.alpha=r),i},e6=({l:e,c:t,h:a,alpha:r})=>{void 0===a&&(a=0);let o={mode:"luv",l:e,u:t?t*Math.cos(a/180*Math.PI):0,v:t?t*Math.sin(a/180*Math.PI):0};return void 0!==r&&(o.alpha=r),o},e3=(e,t,a)=>4*e/(e+15*t+3*a),e9=(e,t,a)=>9*t/(e+15*t+3*a),e4=e3(ed.X,ed.Y,ed.Z),e8=e9(ed.X,ed.Y,ed.Z),e7=({x:e,y:t,z:a,alpha:r})=>{let o;void 0===e&&(e=0),void 0===t&&(t=0),void 0===a&&(a=0);let i=(o=t/ed.Y)<=.008856451679035631?903.2962962962963*o:116*Math.cbrt(o)-16,n=e3(e,t,a),l=e9(e,t,a);isFinite(n)&&isFinite(l)?(n=13*i*(n-e4),l=13*i*(l-e8)):i=n=l=0;let u={mode:"luv",l:i,u:n,v:l};return void 0!==r&&(u.alpha=r),u},te=(a=ed.X,4*a/(a+15*ed.Y+3*ed.Z)),tt=(r=ed.X,9*(o=ed.Y)/(r+15*o+3*ed.Z)),ta=({l:e,u:t,v:a,alpha:r})=>{if(void 0===e&&(e=0),0===e)return{mode:"xyz50",x:0,y:0,z:0};void 0===t&&(t=0),void 0===a&&(a=0);let o=t/(13*e)+te,i=a/(13*e)+tt,n=ed.Y*(e<=8?e/903.2962962962963:Math.pow((e+16)/116,3)),l={mode:"xyz50",x:9*o*n/(4*i),y:n,z:n*(12-3*o-20*i)/(4*i)};return void 0!==r&&(l.alpha=r),l},tr={..._,mode:"lrgb",toMode:{rgb:X},fromMode:{rgb:Y},parse:["srgb-linear"],serialize:"srgb-linear"},to=({r:e,g:t,b:a,alpha:r})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===a&&(a=0);let o=Math.cbrt(.412221469470763*e+.5363325372617348*t+.0514459932675022*a),i=Math.cbrt(.2119034958178252*e+.6806995506452344*t+.1073969535369406*a),n=Math.cbrt(.0883024591900564*e+.2817188391361215*t+.6299787016738222*a),l={mode:"oklab",l:.210454268309314*o+.7936177747023054*i-.0040720430116193*n,a:1.9779985324311684*o-2.42859224204858*i+.450593709617411*n,b:.0259040424655478*o+.7827717124575296*i-.8086757549230774*n};return void 0!==r&&(l.alpha=r),l},ti=e=>{let t=to(Y(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},tn=({l:e,a:t,b:a,alpha:r})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===a&&(a=0);let o=Math.pow(e+.3963377773761749*t+.2158037573099136*a,3),i=Math.pow(e-.1055613458156586*t-.0638541728258133*a,3),n=Math.pow(e-.0894841775298119*t-1.2914855480194092*a,3),l={mode:"lrgb",r:4.076741636075957*o-3.3077115392580616*i+.2309699031821044*n,g:-1.2684379732850317*o+2.6097573492876887*i-.3413193760026573*n,b:-.0041960761386756*o-.7034186179359362*i+1.7076146940746117*n};return void 0!==r&&(l.alpha=r),l},tl=e=>X(tn(e));function tu(e){return .5*(1.206/1.03*e-.206+Math.sqrt((1.206/1.03*e-.206)*(1.206/1.03*e-.206)+1.206/1.03*.12*e))}function td(e){return(e*e+.206*e)/(1.206/1.03*(e+.03))}function th(e,t){let a,r,o,i,n,l,u,d,h,s,p,f,b,v,c,g,m,y=(-1.88170328*e-.80936493*t>1?(a=1.19086277,r=1.76576728,o=.59662641,i=.75515197,n=.56771245,l=4.0767416621,u=-3.3077115913,d=.2309699292):1.81444104*e-1.19445276*t>1?(a=.73956515,r=-.45954404,o=.08285427,i=.1254107,n=.14503204,l=-1.2684380046,u=2.6097574011,d=-.3413193965):(a=1.35733652,r=-.00915799,o=-1.1513021,i=-.50559606,n=.00692167,l=-.0041960863,u=-.7034186147,d=1.707614701),h=a+r*e+o*t+i*e*e+n*e*t,s=.39
263377774*e+.2158037573*t,p=-.1055613458*e-.0638541728*t,f=-.0894841775*e-1.291485548*t,g=l*((b=1+h*s)*b*b)+u*((v=1+h*p)*v*v)+d*((c=1+h*f)*c*c),h-=g*(m=3*s*b*b*l+3*p*v*v*u+3*f*c*c*d)/(m*m-.5*g*(6*s*s*b*l+6*p*p*v*u+6*f*f*c*d))),M=tn({l:1,a:y*e,b:y*t}),x=Math.cbrt(1/Math.max(M.r,M.g,M.b));return[x,x*y]}function ts(e,t,a=null){a||(a=th(e,t));let r=a[0],o=a[1];return[o/r,o/(1-r)]}function tp(e,t,a){let r=th(t,a),o=function(e,t,a,r,o=null){let i;if(o||(o=th(e,t)),(a-r)*o[1]-(o[0]-r)*1<=0)i=o[1]*r/(+o[0]+o[1]*(r-a));else{i=o[1]*(r-1)/(+(o[0]-1)+o[1]*(r-a));{let o=a-r,n=.3963377774*e+.2158037573*t,l=-.1055613458*e-.0638541728*t,u=-.0894841775*e-1.291485548*t,d=o+ +n,h=o+ +l,s=o+ +u;{let e=r*(1-i)+i*a,t=+i,o=e+t*n,p=e+t*l,f=e+t*u,b=o*o*o,v=p*p*p,c=f*f*f,g=3*d*o*o,m=3*h*p*p,y=3*s*f*f,M=6*d*d*o,x=6*h*h*p,w=6*s*s*f,z=4.0767416621*b-3.3077115913*v+.2309699292*c-1,k=4.0767416621*g-3.3077115913*m+.2309699292*y,P=k/(k*k-.5*z*(4.0767416621*M-3.3077115913*x+.2309699292*w)),E=-z*P,$=-1.2684380046*b+2.6097574011*v-.3413193965*c-1,N=-1.2684380046*g+2.6097574011*m-.3413193965*y,I=N/(N*N-.5*$*(-1.2684380046*M+2.6097574011*x-.3413193965*w)),O=-$*I,S=-.0041960863*b-.7034186147*v+1.707614701*c-1,A=-.0041960863*g-.7034186147*m+1.707614701*y,q=A/(A*A-.5*S*(-.0041960863*M-.7034186147*x+1.707614701*w)),R=-S*q;i+=Math.min(E=P>=0?E:1e6,Math.min(O=I>=0?O:1e6,R=q>=0?R:1e6))}}}return i}(t,a,e,e,r),i=ts(t,a,r),n=.11516993+1/(7.4477897+4.1590124*a+t*(-2.19557347+1.75198401*a+t*(-2.13704948-10.02301043*a+t*(-4.24894561+5.38770819*a+4.69891013*t)))),l=.11239642+1/(1.6132032-.68124379*a+t*(.40370612+.90148123*a+t*(-.27087943+.6122399*a+t*(.00299215-.45399568*a-.14661872*t)))),u=o/Math.min(e*i[0],(1-e)*i[1]),d=e*n,h=(1-e)*l,s=.9*u*Math.sqrt(Math.sqrt(1/(1/(d*d*d*d)+1/(h*h*h*h))));return[Math.sqrt(1/(1/((d=.4*e)*d)+1/((h=(1-e)*.8)*h))),s,o]}function tf(e){let t,a=void 0!==e.l?e.l:0,r=void 0!==e.a?e.a:0,o=void 0!==e.b?e.b:0,i={mode:"okhsl",l:tu(a)};void 0!==e.alpha&&(i.alpha=e.alpha);let n=Math.sqrt(r*r+o*o);if(!n)return i.s=0,i;let[l,u,d]=tp(a,r/n,o/n);if(n<u){let e=.8*l;t=(n-0)/(e+(1-e/u)*(n-0))*.8}else{let e=.2*u*u*1.5625/l;t=.8+.2*((n-u)/(e+(1-e/(d-u))*(n-u)))}return t&&(i.s=t,i.h=B(180*Math.atan2(o,r)/Math.PI)),i}function tb(e){let t,a,r,o,i=void 0!==e.h?e.h:0,n=void 0!==e.s?e.s:0,l=void 0!==e.l?e.l:0,u={mode:"oklab",l:td(l)};if(void 0!==e.alpha&&(u.alpha=e.alpha),!n||1===l)return u.a=u.b=0,u;let d=Math.cos(i/180*Math.PI),h=Math.sin(i/180*Math.PI),[s,p,f]=tp(u.l,d,h);n<.8?(t=1.25*n,a=0,o=1-(r=.8*s)/p):(t=5*(n-.8),a=p,o=1-(r=.2*p*p*1.5625/s)/(f-p));let b=a+t*r/(1-o*t);return u.a=b*d,u.b=b*h,u}let tv={...eE,mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:tf,rgb:e=>tf(ti(e))},toMode:{oklab:tb,rgb:e=>tl(tb(e))}};function tc(e){let t=void 0!==e.l?e.l:0,a=void 0!==e.a?e.a:0,r=void 0!==e.b?e.b:0,o=Math.sqrt(a*a+r*r),i=o?a/o:1,n=o?r/o:1,[l,u]=ts(i,n),d=u/(o+t*u),h=d*t,s=d*o,p=td(h),f=s*p/h,b=tn({l:p,a:i*f,b:n*f}),v=Math.cbrt(1/Math.max(b.r,b.g,b.b,0));t/=v;let c={mode:"okhsv",s:(o=o/v*tu(t)/t)?(.5+u)*s/(.5*u+u*(1-.5/l)*s):0,v:(t=tu(t))?t/h:0};return c.s&&(c.h=B(180*Math.atan2(r,a)/Math.PI)),void 0!==e.alpha&&(c.alpha=e.alpha),c}function tg(e){let t={mode:"oklab"};void 0!==e.alpha&&(t.alpha=e.alpha);let a=void 0!==e.h?e.h:0,r=void 0!==e.s?e.s:0,o=void 0!==e.v?e.v:0,i=Math.cos(a/180*Math.PI),n=Math.sin(a/180*Math.PI),[l,u]=ts(i,n),d=1-.5/l,h=1-.5*r/(.5+u-u*d*r),s=r*u*.5/(.5+u-u*d*r),p=td(h),f=s*p/h,b=tn({l:p,a:i*f,b:n*f}),v=Math.cbrt(1/Math.max(b.r,b.g,b.b,0)),c=td(o*h),g=s*c/h;return t.l=c*v,t.a=g*i*v,t.b=g*n*v,t}let tm={...eI,mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:tc,rgb:e=>tc(ti(e))},toMode:{oklab:tg,rgb:e=>tl(tg(e))}},ty={...eJ,mode:"oklab",toMode:{lrgb:tn,rgb:tl},fromMode:{lrgb:to,rgb:ti},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[function(e,t){if(!t||"oklab"!==t[0])return;let a={mode:"oklab"},[,r,o,i,n]=t;if(r.type!==N.Hue&&o.type!==N.Hue&&i.type!==N.Hue)return r.type!==N.None&&(a.l=Math.min(Math.max(0,r.type===N.Number?r.value:r.value/100),1)),o.type!==N.None&&(a.a=o.type===N.Number?o.value:.4*o.value/100),i.type!==N.None&&(a.b=i.type===N.Number?i.value:.4*i.value/100),n.type!==N.None&&(a.alpha=Math.min(1,Math.max(0,n.type===N.Number?n.value:n.value/100))),a}],serialize:e=>`oklab(${void 0!==e.l?e.l:"none"} ${void 0!==e.a?e.a:"none"} ${void 0!==e.b?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`},tM={...e1,mode:"oklch",toMode:{oklab:e=>eu(e,"oklab"),rgb:e=>tl(eu(e,"oklab"))},fromMode:{rgb:e=>el(ti(e),"oklch"),oklab:e=>el(e,"oklch")},parse:[function(e,t){if(!t||"oklch"!==t[0])return;let a={mode:"oklch"},[,r,o,i,n]=t;if(r.type!==N.None){if(r.type===N.Hue)return;a.l=Math.min(Math.max(0,r.type===N.Number?r.value:r.value/100),1)}if(o.type!==N.None&&(a.c=Math.max(0,o.type===N.Number?o.value:.4*o.value/100)),i.type!==N.None){if(i.type===N.Percentage)return;a.h=i.value}return n.type!==N.None&&(a.alpha=Math.min(1,Math.max(0,n.type===N.Number?n.value:n.value/100))),a}],serialize:e=>`oklch(${void 0!==e.l?e.l:"none"} ${void 0!==e.c?e.c:"none"} ${void 0!==e.h?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}},tx=e=>{let{r:t,g:a,b:r,alpha:o}=Y(e),i={mode:"xyz65",x:.486570948648216*t+.265667693169093*a+.1982172852343625*r,y:.2289745640697487*t+.6917385218365062*a+.079286914093745*r,z
2:0*t+.0451133818589026*a+1.043944368900976*r};return void 0!==o&&(i.alpha=o),i},tw=({x:e,y:t,z:a,alpha:r})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===a&&(a=0);let o=X({r:2.4934969119414263*e-.9313836179191242*t-.402710784450717*a,g:-.8294889695615749*e+1.7626640603183465*t+.0236246858419436*a,b:.0358458302437845*e-.0761723892680418*t+.9568845240076871*a},"p3");return void 0!==r&&(o.alpha=r),o},tz={..._,mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>tw(F(e)),xyz65:tw},toMode:{rgb:e=>K(tx(e)),xyz65:tx}},tk=e=>{let t=Math.abs(e);return t>=1/512?Math.sign(e)*Math.pow(t,1/1.8):16*e},tP=({x:e,y:t,z:a,alpha:r})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===a&&(a=0);let o={mode:"prophoto",r:tk(1.3457868816471585*e-.2555720873797946*t-.0511018649755453*a),g:tk(-.5446307051249019*e+1.5082477428451466*t+.0205274474364214*a),b:tk(0*e+0*t+1.2119675456389452*a)};return void 0!==r&&(o.alpha=r),o},tE=(e=0)=>{let t=Math.abs(e);return t>=16/512?Math.sign(e)*Math.pow(t,1.8):e/16},t$=e=>{let t=tE(e.r),a=tE(e.g),r=tE(e.b),o={mode:"xyz50",x:.7977666449006423*t+.1351812974005331*a+.0313477341283922*r,y:.2880748288194013*t+.7118352342418731*a+899369387256e-16*r,z:0*t+0*a+.8251046025104602*r};return void 0!==e.alpha&&(o.alpha=e.alpha),o},tN={..._,mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:tP,rgb:e=>tP(eX(e))},toMode:{xyz50:t$,rgb:e=>eF(t$(e))}},tI=e=>{let t=Math.abs(e);return t>.018053968510807?(Math.sign(e)||1)*(1.09929682680944*Math.pow(t,.45)-(1.09929682680944-1)):4.5*e},tO=({x:e,y:t,z:a,alpha:r})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===a&&(a=0);let o={mode:"rec2020",r:tI(1.7166511879712683*e-.3556707837763925*t-.2533662813736599*a),g:tI(-.6666843518324893*e+1.6164812366349395*t+.0157685458139111*a),b:tI(.0176398574453108*e-.0427706132578085*t+.9421031212354739*a)};return void 0!==r&&(o.alpha=r),o},tS=(e=0)=>{let t=Math.abs(e);return t<.08124285829863151?e/4.5:(Math.sign(e)||1)*Math.pow((t+1.09929682680944-1)/1.09929682680944,1/.45)},tA=e=>{let t=tS(e.r),a=tS(e.g),r=tS(e.b),o={mode:"xyz65",x:.6369580483012911*t+.1446169035862083*a+.1688809751641721*r,y:.262700212011267*t+.6779980715188708*a+.059301716469862*r,z:0*t+.0280726930490874*a+1.0609850577107909*r};return void 0!==e.alpha&&(o.alpha=e.alpha),o},tq={..._,mode:"rec2020",fromMode:{xyz65:tO,rgb:e=>tO(F(e))},toMode:{xyz65:tA,rgb:e=>K(tA(e))}
2,parse:["rec2020"],serialize:"rec2020"},tR=Math.cbrt(.0037930732552754493),tT=e=>Math.cbrt(e)-tR,tj=e=>Math.pow(e+tR,3),tH={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:({x:e,y:t,b:a,alpha:r})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===a&&(a=0);let o=tj(e+t)-.0037930732552754493,i=tj(t-e)-.0037930732552754493,n=tj(a+t)-.0037930732552754493,l=X({r:11.031566904639861*o-9.866943908131562*i-.16462299650829934*n,g:-3.2541473810744237*o+4.418770377582723*i-.16462299650829934*n,b:-3.6588512867136815*o+2.7129230459360922*i+1.9459282407775895*n});return void 0!==r&&(l.alpha=r),l}},fromMode:{rgb:e=>{let{r:t,g:a,b:r,alpha:o}=Y(e),i=tT(.3*t+.622*a+.078*r+.0037930732552754493),n=tT(.23*t+.692*a+.078*r+.0037930732552754493),l={mode:"xyb",x:(i-n)/2,y:(i+n)/2,b:tT(.2434226892454782*t+.2047674442449682*a+.5518098665095535*r+.0037930732552754493)-(i+n)/2};return void 0!==o&&(l.alpha=o),l}},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x:C,y:C,b:C,alpha:{use:C,fixup:L}}},tC={mode:"yiq",toMode:{rgb:({y:e,i:t,q:a,alpha:r})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===a&&(a=0);let o={mode:"rgb",r:e+.95608445*t+.6208885*a,g:e-.27137664*t-.6486059*a,b:e-1.10561724*t+1.70250126*a};return void 0!==r&&(o.alpha=r),o}},fromMode:{rgb:({r:e,g:t,b:a,alpha:r})=>{void 0===e&&(e=0),void 0===t&&(t=0),void 0===a&&(a=0);let o={mode:"yiq",y:.29889531*e+.58662247*t+.11448223*a,i:.59597799*e-.2741761*t-.32180189*a,q:.21147017*e-.52261711*t+.31114694*a};return void 0!==r&&(o.alpha=r),o}},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:C,i:C,q:C,alpha:{use:C,fixup:L}}};z(G),z(en),z({mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:ez,rgb:e=>ef(ez(e))},fromMode:{lab65:ek,rgb:e=>ek(ec(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:C,a:C,b:C,alpha:{use:C,fixup:L}}}),z({mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:ex,dlab:e=>eu(e,"dlab"),rgb:e=>ef(ex(e))},fromMode:{lab65:ew,dlab:e=>el(e,"dlch"),rgb:e=>ew(ec(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:C,c:C,h:{use:C,fixup:J},alpha:{use:C,fixup:L}},difference:{h:eo},average:{h:ei}}),z({mode:"hsi",toMode:{rgb:function({h:e,s:t,i:a,alpha:r}){let o;e=B(void 0!==e?e:0),void 0===t&&(t=0),void 0===a&&(a=0);let i=Math.abs(e/60%2-1);switch(Math.floor(e/60)){case 0:o={r:a*(1+t*(3/(2-i)-1)),g:a*(1+t*(3*(1-i)/(2-i)-1)),b:a*(1-t)};break;case 1:o={r:a*(1+t*(3*(1-i)/(2-i)-1)),g:a*(1+t*(3/(2-i)-1)),b:a*(1-t)};break;case 2:o={r:a*(1-t),g:a*(1+t*(3/(2-i)-1)),b:a*(1+t*(3*(1-i)/(2-i)-1))};break;case 3:o={r:a*(1-t),g:a*(1+t*(3*(1-i)/(2-i)-1)),b:a*(1+t*(3/(2-i)-1))};break;case 4:o={r:a*(1+t*(3*(1-i)/(2-i)-1)),g:a*(1-t),b:a*(1+t*(3/(2-i)-1))};break;case 5:o={r:a*(1+t*(3/(2-i)-1)),g:a*(1-t),b:a*(1+t*(3*(1-i)/(2-i)-1))};break;default:o={r:a*(1-t),g:a*(1-t),b:a*(1-t)}}return o.mode="rgb",void 0!==r&&(o.alpha=r),o}},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:function({r:e,g:t,b:a,alpha:r}){void 0===e&&(e=0),void 0===t&&(t=0),void 0===a&&(a=0);let o=Math.max(e,t,a),i=Math.min(e,t,a),n={mode:"hsi",s:e+t+a===0?0:1-3*i/(e+t+a),i:(e+t+a)/3};return o-i!=0&&(n.h=(o===e?(t-a)/(o-i)+(t<a)*6:o===t?(a-e)/(o-i)+2:(e-t)/(o-i)+4)*60),void 0!==r&&(n.alpha=r),n}},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:C,fixup:J},s:C,i:C,alpha:{use:C,fixup:L}},difference:{h:er},average:{h:ei}}),z(eE),z(eI),z({mode:"hwb",toMode:{rgb:function({h:e,w:t,b:a,alpha:r}){if(void 0===t&&(t=0),void 0===a&&(a=0),t+a>1){let e=t+a;t/=e,a/=e}return e$({h:e,s:1===a?1:1-t/(1-a),v:1-a,alpha:r})}},fromMode:{rgb:function(e){let t=eN(e);if(void 0===t)return;let a=void 0!==t.s?t.s:0,r=void 0!==t.v?t.v:0,o={mode:"hwb",w:(1-a)*r,b:1-r};return void 0!==t.h&&(o.h=t.h),void 0!==t.alpha&&(o.alpha=t.alpha),o}},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[function(e,t){if(!t||"hwb"!==t[0])return;let a={mode:"hwb"},[,r,o,i,n]=t;if(r.type!==N.None){if(r.type===N.Percentage)return;a.h=r.value}if(o.type!==N.None){if(o.type===N.Hue)return;a.w=o.value/100}if(i.type!==N.None){if(i.type===N.Hue)return;a.b=i.value/100}return n.type!==N.None&&(a.alpha=Math.min(1,Math.max(0,n.type===N.Number?n.value:n.value/100))),a}],serialize:e=>`hwb(${void 0!==e.h?e.h:"none"} ${void 0!==e.w?100*e.w+"%":"none"} ${void 0!==e.b?100*e.b+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:C,fixup:J},w:C,b:C,alpha:{use:C,fixup:L}},difference:{h:(e,t)=>{if(void 0===e.h||void 0===t.h)return 0;let a=B(e.h),r=B(t.h);return Math.abs(r-a)>180?a-(r-360*Math.sign(r-a)):r-a}},average:{h:ei}}),z({mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],seri
2alize:"--ictcp",toMode:{xyz65:eq,rgb:e=>K(eq(e))},fromMode:{xyz65:eT,rgb:e=>eT(F(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:C,t:C,p:C,alpha:{use:C,fixup:L}}}),z({mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:eW,xyz65:eC},toMode:{rgb:eD,xyz65:e_},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:C,a:C,b:C,alpha:{use:C,fixup:L}}}),z({mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:eU,rgb:e=>eD(eU(e))},fromMode:{rgb:e=>eQ(eW(e)),jab:eQ},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:C,fixup:J},c:C,j:C,alpha:{use:C,fixup:L}},difference:{h:eo},average:{h:ei}}),z(eJ),z(e0),z(e1),z(e5),z({mode:"lchuv",toMode:{luv:e6,rgb:e=>eF(ta(e6(e)))},fromMode:{rgb:e=>e2(e7(eX(e))),luv:e2},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:C,fixup:J},c:C,l:C,alpha:{use:C,fixup:L}},difference:{h:eo},average:{h:ei}}),z(tr),z({mode:"luv",toMode:{xyz50:ta,rgb:e=>eF(ta(e))},fromMode:{xyz50:e7,rgb:e=>e7(eX(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:C,u:C,v:C,alpha:{use:C,fixup:L}}}),z(tv),z(tm),z(ty),z(tM),z(tz),z(tN),z(tq),z(_),z(tH),z({mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:eF,lab:eG},fromMode:{rgb:eX,lab:eY},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x:C,y:C,z:C,alpha:{use:C,fixup:L}}}),z({mode:"xyz65",toMode:{rgb:K,xyz50:e=>{let{x:t,y:a,z:r,alpha:o}=e;void 0===t&&(t=0),void 0===a&&(a=0),void 0===r&&(r=0);let i={mode:"xyz50",x:1.0479298208405488*t+.0229467933410191*a-.0501922295431356*r,y:.0296278156881593*t+.990434484573249*a-.0170738250293851*r,z:-.0092430581525912*t+.0150551448965779*a+.7518742899580008*r};return void 0!==o&&(i.alpha=o),i}},fromMode:{rgb:F,xyz50:e=>{let{x:t,y:a,z:r,alpha:o}=e;void 0===t&&(t=0),void 0===a&&(a=0),void 0===r&&(r=0);let i={mode:"xyz65",x:.9554734527042182*t-.0230985368742614*a+.0632593086610217*r,y:-.0283697069632081*t+1.0099954580058226*a+.021041398966943*r,z:.0123140016883199*t-.0205076964334779*a+1.3303659366080753*r};return void 0!==o&&(i.alpha=o),i}},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x:C,y:C,z:C,alpha:{use:C,fixup:L}}}),z(tC),e.s([],699208);function tL(e){let t=g("lrgb")(e);return .2126*t.r+.7152*t.g+.0722*t.b}((e=4)=>t=>{let a;return"number"==typeof t?Math.round(t*(a=Math.pow(10,a=e)))/a:t})(2);let t_=e=>Math.round(255*Math.max(0,Math.min(1,e||0))),tW=g("rgb");g("hsl");let tD=e=>{let t=c(e);if(!t)return;let a=k(t.mode);if(!a.serialize||"string"==typeof a.serialize){let e=`color(${a.serialize||`--${t.mode}`} `;return a.channels.forEach((a,r)=>{"alpha"!==a&&(e+=(r?" ":"")+(void 0!==t[a]?t[a]:"none"))}),void 0!==t.alpha&&t.alpha<1&&(e+=` / ${t.alpha}`),e+")"}if("function"==typeof a.serialize)return a.serialize(t)};e.s(["formatCss",0,tD,"formatHex",0,e=>(e=>{if(void 0!==e)return"#"+(0x1000000|t_(e.r)<<16|t_(e.g)<<8|t_(e.b)).toString(16).slice(1)})(tW(e))],432771);let tQ=new Map,tU=new Map,tV=new Map;function tY(e,t,a){return tD(((e,t="rgb")=>((e,t="rgb",a)=>{let r=k(t),o=g(t),i=[],n=[],l={};e.forEach(e=>{Array.isArray(e)?(i.push(o(e[0])),n.push(e[1])):"number"==typeof e||"function"==typeof e?l[n.length]=e:(i.push(o(e)),n.push(void 0))}),(e=>{let t,a,r,o;void 0===e[0]&&(e[0]=0),void 0===e[e.length-1]&&(e[e.length-1]=1);let i=1;for(;i<e.length;){if(void 0===e[i]){for(a=i,r=e[i-1],t=i;void 0===e[t];)t++;for(o=(e[t]-r)/(t-i+1);i<t;)e[i]=r+(i+1-a)*o,i++}else e[i]<e[i-1]&&(e[i]=e[i-1]);i++}})(n);let u=r.channels.reduce((e,t)=>{let o,n;if(a&&"object"==typeof a&&(n=a[t])&&"object"==typeof n&&a[t].fixup)o=a[t].fixup;else{let e;o=(e=r.interpolate[t])&&"object"==typeof e&&r.interpolate[t].fixup?r.interpolate[t].fixup:e=>e}return e[t]=o(i.map(e=>e[t])),e},{});!1;let d=r.channels.reduce((e,t)=>{let o;if("function"==typeof a)o=a;else if(a&&"object"==typeof a&&"function"==typeof a[t])o=a[t];else{let e;if(a&&"object"==typeof a&&(e=a[t])&&"object"==typeof e&&a[t].use)o=a[t].use;else if("function"==typeof r.interpolate[t])o=r.interpolate[t];else{let e;(e=r.interpolate[t])&&"object"==typeof e&&(o=r.interpolate[t].use)}}return e[t]=o(u[t]),e},{}),h=i.length-1;return e=>{if((e=Math.min(Math.max(0,e),1))<=n[0])return i[0];if(e>n[h])return i[h];let a=0;for(;n[a]<e;)a++;let o=n[a-1],u=n[a]-o,s=(e-o)/u,p=l[a]||l[0];void 0!==p&&("number"==typeof p&&(p=((e=.5)=>t=>e<=0?1:e>=1?0:Math.pow(t,Math.log(.5)/Math.log(e)))((p-o)/u)),s=p(s));let f=(a-1+s)/h;return r.channels.reduce((e,t)=>
2{let a=d[t](f);return void 0!==a&&(e[t]=a),e},{mode:t})}})(e,t,void 0))([e,t],"oklch")(a))}e.s(["getColorVariables",0,function(e="#218354"){let t=function(e){let t=tV.get(e);if(t)return t;let a=.03>tL(e)?"#ffffff":"#000000",r={hover:tY(e,a,.15),active:tY(e,a,.25)};return tV.set(e,r),r}(e);return{"--web-primary":e,"--web-foreground":function(e){let t=tQ.get(e);if(t)return t;let a=tL(e)>.179?"#000000":"#ffffff";return tQ.set(e,a),a}(e),"--web-contrast":function(e,t=4.5){let a=tU.get(e);if(a)return a;for(let a=.4;a<=.95;a+=.05){let r=tY(e,"#000000",a);if(function(e,t){let a=tL(e),r=tL(t);return(Math.max(a,r)+.05)/(Math.min(a,r)+.05)}(r,"#ffffff")>=t)return tU.set(e,r),r}let r=tY(e,"#000000",.95);return tU.set(e,r),r}(e),"--web-tint":tY(e,"#ffffff",.85),"--web-primary-hover":t.hover,"--web-primary-active":t.active}}],42151)}]); 3 4//# debugId=a4ed1c98-576a-bf49-5794-486ce2b91b89
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.