@zaide6137/m3-web-big-calendar 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs ADDED
@@ -0,0 +1,232 @@
1
+ import {createContext,forwardRef,useMemo,useState,useImperativeHandle,useContext,useRef,useEffect}from'react';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {motion,AnimatePresence}from'framer-motion';import {momentLocalizer,Calendar}from'react-big-calendar';var lu=Object.create;var To=Object.defineProperty;var uu=Object.getOwnPropertyDescriptor;var hu=Object.getOwnPropertyNames;var du=Object.getPrototypeOf,mu=Object.prototype.hasOwnProperty;var Mo=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var fu=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var pu=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of hu(e))!mu.call(t,i)&&i!==r&&To(t,i,{get:()=>e[i],enumerable:!(o=uu(e,i))||o.enumerable});return t};var Ao=(t,e,r)=>(r=t!=null?lu(du(t)):{},pu(!t||!t.__esModule?To(r,"default",{value:t,enumerable:true}):r,t));var bn=fu((yn,Dr)=>{(function(t,e){typeof yn=="object"&&typeof Dr<"u"?Dr.exports=e():typeof define=="function"&&define.amd?define(e):t.moment=e();})(yn,(function(){var t;function e(){return t.apply(null,arguments)}function r(a){t=a;}function o(a){return a instanceof Array||Object.prototype.toString.call(a)==="[object Array]"}function i(a){return a!=null&&Object.prototype.toString.call(a)==="[object Object]"}function u(a,n){return Object.prototype.hasOwnProperty.call(a,n)}function l(a){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(a).length===0;var n;for(n in a)if(u(a,n))return false;return true}function d(a){return a===void 0}function f(a){return typeof a=="number"||Object.prototype.toString.call(a)==="[object Number]"}function g(a){return a instanceof Date||Object.prototype.toString.call(a)==="[object Date]"}function y(a,n){var s=[],c,h=a.length;for(c=0;c<h;++c)s.push(n(a[c],c));return s}function b(a,n){for(var s in n)u(n,s)&&(a[s]=n[s]);return u(n,"toString")&&(a.toString=n.toString),u(n,"valueOf")&&(a.valueOf=n.valueOf),a}function w(a,n,s,c){return ao(a,n,s,c,true).utc()}function v(){return {empty:false,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:false,invalidEra:null,invalidMonth:null,invalidFormat:false,userInvalidated:false,iso:false,parsedDateParts:[],era:null,meridiem:null,rfc2822:false,weekdayMismatch:false}}function m(a){return a._pf==null&&(a._pf=v()),a._pf}var p;Array.prototype.some?p=Array.prototype.some:p=function(a){var n=Object(this),s=n.length>>>0,c;for(c=0;c<s;c++)if(c in n&&a.call(this,n[c],c,n))return true;return false};function k(a){var n=null,s=false,c=a._d&&!isNaN(a._d.getTime());if(c&&(n=m(a),s=p.call(n.parsedDateParts,function(h){return h!=null}),c=n.overflow<0&&!n.empty&&!n.invalidEra&&!n.invalidMonth&&!n.invalidWeekday&&!n.weekdayMismatch&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||n.meridiem&&s),a._strict&&(c=c&&n.charsLeftOver===0&&n.unusedTokens.length===0&&n.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(a))a._isValid=c;else return c;return a._isValid}function O(a){var n=w(NaN);return a!=null?b(m(n),a):m(n).userInvalidated=true,n}var L=e.momentProperties=[],V=false;function Y(a,n){var s,c,h,P=L.length;if(d(n._isAMomentObject)||(a._isAMomentObject=n._isAMomentObject),d(n._i)||(a._i=n._i),d(n._f)||(a._f=n._f),d(n._l)||(a._l=n._l),d(n._strict)||(a._strict=n._strict),d(n._tzm)||(a._tzm=n._tzm),d(n._isUTC)||(a._isUTC=n._isUTC),d(n._offset)||(a._offset=n._offset),d(n._pf)||(a._pf=m(n)),d(n._locale)||(a._locale=n._locale),P>0)for(s=0;s<P;s++)c=L[s],h=n[c],d(h)||(a[c]=h);return a}function B(a){Y(this,a),this._d=new Date(a._d!=null?a._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),V===false&&(V=true,e.updateOffset(this),V=false);}function H(a){return a instanceof B||a!=null&&a._isAMomentObject!=null}function N(a){e.suppressDeprecationWarnings===false&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+a);}function I(a,n){var s=true;return b(function(){if(e.deprecationHandler!=null&&e.deprecationHandler(null,a),s){var c=[],h,P,D,W=arguments.length;for(P=0;P<W;P++){if(h="",typeof arguments[P]=="object"){h+=`
2
+ [`+P+"] ";for(D in arguments[0])u(arguments[0],D)&&(h+=D+": "+arguments[0][D]+", ");h=h.slice(0,-2);}else h=arguments[P];c.push(h);}N(a+`
3
+ Arguments: `+Array.prototype.slice.call(c).join("")+`
4
+ `+new Error().stack),s=false;}return n.apply(this,arguments)},n)}var z={};function ie(a,n){e.deprecationHandler!=null&&e.deprecationHandler(a,n),z[a]||(N(n),z[a]=true);}e.suppressDeprecationWarnings=false,e.deprecationHandler=null;function fe(a){return typeof Function<"u"&&a instanceof Function||Object.prototype.toString.call(a)==="[object Function]"}function pe(a){var n,s;for(s in a)u(a,s)&&(n=a[s],fe(n)?this[s]=n:this["_"+s]=n);this._config=a,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source);}function Se(a,n){var s=b({},a),c;for(c in n)u(n,c)&&(i(a[c])&&i(n[c])?(s[c]={},b(s[c],a[c]),b(s[c],n[c])):n[c]!=null?s[c]=n[c]:delete s[c]);for(c in a)u(a,c)&&!u(n,c)&&i(a[c])&&(s[c]=b({},s[c]));return s}function Q(a){a!=null&&this.set(a);}var Fe;Object.keys?Fe=Object.keys:Fe=function(a){var n,s=[];for(n in a)u(a,n)&&s.push(n);return s};var Me={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Ye(a,n,s){var c=this._calendar[a]||this._calendar.sameElse;return fe(c)?c.call(n,s):c}function _e(a,n,s){var c=""+Math.abs(a),h=n-c.length,P=a>=0;return (P?s?"+":"":"-")+Math.pow(10,Math.max(0,h)).toString().substr(1)+c}var qe=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Qe=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Xe={},et={};function $(a,n,s,c){var h=c;typeof c=="string"&&(h=function(){return this[c]()}),a&&(et[a]=h),n&&(et[n[0]]=function(){return _e(h.apply(this,arguments),n[1],n[2])}),s&&(et[s]=function(){return this.localeData().ordinal(h.apply(this,arguments),a)});}function Yt(a){return a.match(/\[[\s\S]/)?a.replace(/^\[|\]$/g,""):a.replace(/\\/g,"")}function Ut(a){var n=a.match(qe),s,c;for(s=0,c=n.length;s<c;s++)et[n[s]]?n[s]=et[n[s]]:n[s]=Yt(n[s]);return function(h){var P="",D;for(D=0;D<c;D++)P+=fe(n[D])?n[D].call(h,a):n[D];return P}}function ut(a,n){return a.isValid()?(n=zt(n,a.localeData()),Xe[n]=Xe[n]||Ut(n),Xe[n](a)):a.localeData().invalidDate()}function zt(a,n){var s=5;function c(h){return n.longDateFormat(h)||h}for(Qe.lastIndex=0;s>=0&&Qe.test(a);)a=a.replace(Qe,c),Qe.lastIndex=0,s-=1;return a}var Wt={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Ba(a){var n=this._longDateFormat[a],s=this._longDateFormat[a.toUpperCase()];return n||!s?n:(this._longDateFormat[a]=s.match(qe).map(function(c){return c==="MMMM"||c==="MM"||c==="DD"||c==="dddd"?c.slice(1):c}).join(""),this._longDateFormat[a])}var Na="Invalid date";function Pi(){return this._invalidDate}var vi="%d",wi=/\d{1,2}/;function Ci(a){return this._ordinal.replace("%d",a)}var ki={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Si(a,n,s,c){var h=this._relativeTime[s];return fe(h)?h(a,n,s,c):h.replace(/%d/i,a)}function xi(a,n){var s=this._relativeTime[a>0?"future":"past"];return fe(s)?s(n):s.replace(/%s/i,n)}var Ln={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ht(a){return typeof a=="string"?Ln[a]||Ln[a.toLowerCase()]:void 0}function Va(a){var n={},s,c;for(c in a)u(a,c)&&(s=ht(c),s&&(n[s]=a[c]));return n}var Di={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Ti(a){var n=[],s;for(s in a)u(a,s)&&n.push({unit:s,priority:Di[s]});return n.sort(function(c,h){return c.priority-h.priority}),n}var Bn=/\d/,it=/\d\d/,Nn=/\d{3}/,Ha=/\d{4}/,aa=/[+-]?\d{6}/,Ee=/\d\d?/,Vn=/\d\d\d\d?/,Hn=/\d\d\d\d\d\d?/,na=/\d{1,3}/,Ya=/\d{1,4}/,oa=/[+-]?\d{1,6}/,pr=/\d+/,ia=/[+-]?\d+/,Mi=/Z|[+-]\d\d:?\d\d/gi,sa=/Z|[+-]\d\d(?::?\d\d)?/gi,Ai=/[+-]?\d+(\.\d{1,3})?/,Or=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,gr=/^[1-9]\d?/,Ua=/^([1-9]\d|\d)/,ca;ca={};function G(a,n,s){ca[a]=fe(n)?n:function(c,h){return c&&s?s:n};}function Fi(a,n){return u(ca,a)?ca[a](n._strict,n._locale):new RegExp(_i(a))}function _i(a){return xt(a.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,s,c,h,P){return s||c||h||P}))}function xt(a){return a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function dt(a){return a<0?Math.ceil(a)||0:Math.floor(a)}function Pe(a){var n=+a,s=0;return n!==0&&isFinite(n)&&(s=dt(n)),s}var za={};function Ae(a,n){var s,c=n,h;for(typeof a=="string"&&(a=[a]),f(n)&&(c=function(P,D){D[n]=Pe(P);}),h=a.length,s=0;s<h;s++)za[a[s]]=c;}function Ir(a,n){Ae(a,function(s,c,h,P){h._w=h._w||{},n(s,h._w,h,P);});}function Ei(a,n,s){n!=null&&u(za,a)&&za[a](n,s._a,s,a);}function la(a){return a%4===0&&a%100!==0||a%400===0}var tt=0,Dt=1,wt=2,ze=3,ft=4,Tt=5,or=6,Oi=7,Ii=8;$("Y",0,0,function(){var a=this.year();return a<=9999?_e(a,4):"+"+a}),$(0,["YY",2],0,function(){return this.year()%100}),$(0,["YYYY",4],0,"year"),$(0,["YYYYY",5],0,"year"),$(0,["YYYYYY",6,true],0,"year"),G("Y",ia),G("YY",Ee,it),G("YYYY",Ya,Ha),G("YYYYY",oa,aa),G("YYYYYY",oa,aa),Ae(["YYYYY","YYYYYY"],tt),Ae("YYYY",function(a,n){n[tt]=a.length===2?e.parseTwoDigitYear(a):Pe(a);}),Ae("YY",function(a,n){n[tt]=e.parseTwoDigitYear(a);}),Ae("Y",function(a,n){n[tt]=parseInt(a,10);});function Rr(a){return la(a)?366:365}e.parseTwoDigitYear=function(a){return Pe(a)+(Pe(a)>68?1900:2e3)};var Yn=yr("FullYear",true);function Ri(){return la(this.year())}function yr(a,n){return function(s){return s!=null?(Un(this,a,s),e.updateOffset(this,n),this):Lr(this,a)}}function Lr(a,n){if(!a.isValid())return NaN;var s=a._d,c=a._isUTC;switch(n){case "Milliseconds":return c?s.getUTCMilliseconds():s.getMilliseconds();case "Seconds":return c?s.getUTCSeconds():s.getSeconds();case "Minutes":return c?s.getUTCMinutes():s.getMinutes();case "Hours":return c?s.getUTCHours():s.getHours();case "Date":return c?s.getUTCDate():s.getDate();case "Day":return c?s.getUTCDay():s.getDay();case "Month":return c?s.getUTCMonth():s.getMonth();case "FullYear":return c?s.getUTCFullYear():s.getFullYear();default:return NaN}}function Un(a,n,s){var c,h,P,D,W;if(!(!a.isValid()||isNaN(s))){switch(c=a._d,h=a._isUTC,n){case "Milliseconds":return void(h?c.setUTCMilliseconds(s):c.setMilliseconds(s));case "Seconds":return void(h?c.setUTCSeconds(s):c.setSeconds(s));case "Minutes":return void(h?c.setUTCMinutes(s):c.setMinutes(s));case "Hours":return void(h?c.setUTCHours(s):c.setHours(s));case "Date":return void(h?c.setUTCDate(s):c.setDate(s));case "FullYear":break;default:return}P=s,D=a.month(),W=a.date(),W=W===29&&D===1&&!la(P)?28:W,h?c.setUTCFullYear(P,D,W):c.setFullYear(P,D,W);}}function Li(a){return a=ht(a),fe(this[a])?this[a]():this}function Bi(a,n){if(typeof a=="object"){a=Va(a);var s=Ti(a),c,h=s.length;for(c=0;c<h;c++)this[s[c].unit](a[s[c].unit]);}else if(a=ht(a),fe(this[a]))return this[a](n);return this}function Ni(a,n){return (a%n+n)%n}var Ne;Array.prototype.indexOf?Ne=Array.prototype.indexOf:Ne=function(a){var n;for(n=0;n<this.length;++n)if(this[n]===a)return n;return -1};function Wa(a,n){if(isNaN(a)||isNaN(n))return NaN;var s=Ni(n,12);return a+=(n-s)/12,s===1?la(a)?29:28:31-s%7%2}$("M",["MM",2],"Mo",function(){return this.month()+1}),$("MMM",0,0,function(a){return this.localeData().monthsShort(this,a)}),$("MMMM",0,0,function(a){return this.localeData().months(this,a)}),G("M",Ee,gr),G("MM",Ee,it),G("MMM",function(a,n){return n.monthsShortRegex(a)}),G("MMMM",function(a,n){return n.monthsRegex(a)}),Ae(["M","MM"],function(a,n){n[Dt]=Pe(a)-1;}),Ae(["MMM","MMMM"],function(a,n,s,c){var h=s._locale.monthsParse(a,c,s._strict);h!=null?n[Dt]=h:m(s).invalidMonth=a;});var Vi="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),zn="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Wn=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Hi=Or,Yi=Or;function Ui(a,n){return a?o(this._months)?this._months[a.month()]:this._months[(this._months.isFormat||Wn).test(n)?"format":"standalone"][a.month()]:o(this._months)?this._months:this._months.standalone}function zi(a,n){return a?o(this._monthsShort)?this._monthsShort[a.month()]:this._monthsShort[Wn.test(n)?"format":"standalone"][a.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Wi(a,n,s){var c,h,P,D=a.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],c=0;c<12;++c)P=w([2e3,c]),this._shortMonthsParse[c]=this.monthsShort(P,"").toLocaleLowerCase(),this._longMonthsParse[c]=this.months(P,"").toLocaleLowerCase();return s?n==="MMM"?(h=Ne.call(this._shortMonthsParse,D),h!==-1?h:null):(h=Ne.call(this._longMonthsParse,D),h!==-1?h:null):n==="MMM"?(h=Ne.call(this._shortMonthsParse,D),h!==-1?h:(h=Ne.call(this._longMonthsParse,D),h!==-1?h:null)):(h=Ne.call(this._longMonthsParse,D),h!==-1?h:(h=Ne.call(this._shortMonthsParse,D),h!==-1?h:null))}function Gi(a,n,s){var c,h,P;if(this._monthsParseExact)return Wi.call(this,a,n,s);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),c=0;c<12;c++){if(h=w([2e3,c]),s&&!this._longMonthsParse[c]&&(this._longMonthsParse[c]=new RegExp("^"+this.months(h,"").replace(".","")+"$","i"),this._shortMonthsParse[c]=new RegExp("^"+this.monthsShort(h,"").replace(".","")+"$","i")),!s&&!this._monthsParse[c]&&(P="^"+this.months(h,"")+"|^"+this.monthsShort(h,""),this._monthsParse[c]=new RegExp(P.replace(".",""),"i")),s&&n==="MMMM"&&this._longMonthsParse[c].test(a))return c;if(s&&n==="MMM"&&this._shortMonthsParse[c].test(a))return c;if(!s&&this._monthsParse[c].test(a))return c}}function Gn(a,n){if(!a.isValid())return a;if(typeof n=="string"){if(/^\d+$/.test(n))n=Pe(n);else if(n=a.localeData().monthsParse(n),!f(n))return a}var s=n,c=a.date();return c=c<29?c:Math.min(c,Wa(a.year(),s)),a._isUTC?a._d.setUTCMonth(s,c):a._d.setMonth(s,c),a}function $n(a){return a!=null?(Gn(this,a),e.updateOffset(this,true),this):Lr(this,"Month")}function $i(){return Wa(this.year(),this.month())}function ji(a){return this._monthsParseExact?(u(this,"_monthsRegex")||jn.call(this),a?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=Hi),this._monthsShortStrictRegex&&a?this._monthsShortStrictRegex:this._monthsShortRegex)}function Ki(a){return this._monthsParseExact?(u(this,"_monthsRegex")||jn.call(this),a?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=Yi),this._monthsStrictRegex&&a?this._monthsStrictRegex:this._monthsRegex)}function jn(){function a(le,ve){return ve.length-le.length}var n=[],s=[],c=[],h,P,D,W;for(h=0;h<12;h++)P=w([2e3,h]),D=xt(this.monthsShort(P,"")),W=xt(this.months(P,"")),n.push(D),s.push(W),c.push(W),c.push(D);n.sort(a),s.sort(a),c.sort(a),this._monthsRegex=new RegExp("^("+c.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i");}function qi(a,n,s,c,h,P,D){var W;return a<100&&a>=0?(W=new Date(a+400,n,s,c,h,P,D),isFinite(W.getFullYear())&&W.setFullYear(a)):W=new Date(a,n,s,c,h,P,D),W}function Br(a){var n,s;return a<100&&a>=0?(s=Array.prototype.slice.call(arguments),s[0]=a+400,n=new Date(Date.UTC.apply(null,s)),isFinite(n.getUTCFullYear())&&n.setUTCFullYear(a)):n=new Date(Date.UTC.apply(null,arguments)),n}function ua(a,n,s){var c=7+n-s,h=(7+Br(a,0,c).getUTCDay()-n)%7;return -h+c-1}function Kn(a,n,s,c,h){var P=(7+s-c)%7,D=ua(a,c,h),W=1+7*(n-1)+P+D,le,ve;return W<=0?(le=a-1,ve=Rr(le)+W):W>Rr(a)?(le=a+1,ve=W-Rr(a)):(le=a,ve=W),{year:le,dayOfYear:ve}}function Nr(a,n,s){var c=ua(a.year(),n,s),h=Math.floor((a.dayOfYear()-c-1)/7)+1,P,D;return h<1?(D=a.year()-1,P=h+Mt(D,n,s)):h>Mt(a.year(),n,s)?(P=h-Mt(a.year(),n,s),D=a.year()+1):(D=a.year(),P=h),{week:P,year:D}}function Mt(a,n,s){var c=ua(a,n,s),h=ua(a+1,n,s);return (Rr(a)-c+h)/7}$("w",["ww",2],"wo","week"),$("W",["WW",2],"Wo","isoWeek"),G("w",Ee,gr),G("ww",Ee,it),G("W",Ee,gr),G("WW",Ee,it),Ir(["w","ww","W","WW"],function(a,n,s,c){n[c.substr(0,1)]=Pe(a);});function Xi(a){return Nr(a,this._week.dow,this._week.doy).week}var Ji={dow:0,doy:6};function Zi(){return this._week.dow}function Qi(){return this._week.doy}function es(a){var n=this.localeData().week(this);return a==null?n:this.add((a-n)*7,"d")}function ts(a){var n=Nr(this,1,4).week;return a==null?n:this.add((a-n)*7,"d")}$("d",0,"do","day"),$("dd",0,0,function(a){return this.localeData().weekdaysMin(this,a)}),$("ddd",0,0,function(a){return this.localeData().weekdaysShort(this,a)}),$("dddd",0,0,function(a){return this.localeData().weekdays(this,a)}),$("e",0,0,"weekday"),$("E",0,0,"isoWeekday"),G("d",Ee),G("e",Ee),G("E",Ee),G("dd",function(a,n){return n.weekdaysMinRegex(a)}),G("ddd",function(a,n){return n.weekdaysShortRegex(a)}),G("dddd",function(a,n){return n.weekdaysRegex(a)}),Ir(["dd","ddd","dddd"],function(a,n,s,c){var h=s._locale.weekdaysParse(a,c,s._strict);h!=null?n.d=h:m(s).invalidWeekday=a;}),Ir(["d","e","E"],function(a,n,s,c){n[c]=Pe(a);});function rs(a,n){return typeof a!="string"?a:isNaN(a)?(a=n.weekdaysParse(a),typeof a=="number"?a:null):parseInt(a,10)}function as(a,n){return typeof a=="string"?n.weekdaysParse(a)%7||7:isNaN(a)?null:a}function Ga(a,n){return a.slice(n,7).concat(a.slice(0,n))}var ns="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),qn="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),os="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),is=Or,ss=Or,cs=Or;function ls(a,n){var s=o(this._weekdays)?this._weekdays:this._weekdays[a&&a!==true&&this._weekdays.isFormat.test(n)?"format":"standalone"];return a===true?Ga(s,this._week.dow):a?s[a.day()]:s}function us(a){return a===true?Ga(this._weekdaysShort,this._week.dow):a?this._weekdaysShort[a.day()]:this._weekdaysShort}function hs(a){return a===true?Ga(this._weekdaysMin,this._week.dow):a?this._weekdaysMin[a.day()]:this._weekdaysMin}function ds(a,n,s){var c,h,P,D=a.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],c=0;c<7;++c)P=w([2e3,1]).day(c),this._minWeekdaysParse[c]=this.weekdaysMin(P,"").toLocaleLowerCase(),this._shortWeekdaysParse[c]=this.weekdaysShort(P,"").toLocaleLowerCase(),this._weekdaysParse[c]=this.weekdays(P,"").toLocaleLowerCase();return s?n==="dddd"?(h=Ne.call(this._weekdaysParse,D),h!==-1?h:null):n==="ddd"?(h=Ne.call(this._shortWeekdaysParse,D),h!==-1?h:null):(h=Ne.call(this._minWeekdaysParse,D),h!==-1?h:null):n==="dddd"?(h=Ne.call(this._weekdaysParse,D),h!==-1||(h=Ne.call(this._shortWeekdaysParse,D),h!==-1)?h:(h=Ne.call(this._minWeekdaysParse,D),h!==-1?h:null)):n==="ddd"?(h=Ne.call(this._shortWeekdaysParse,D),h!==-1||(h=Ne.call(this._weekdaysParse,D),h!==-1)?h:(h=Ne.call(this._minWeekdaysParse,D),h!==-1?h:null)):(h=Ne.call(this._minWeekdaysParse,D),h!==-1||(h=Ne.call(this._weekdaysParse,D),h!==-1)?h:(h=Ne.call(this._shortWeekdaysParse,D),h!==-1?h:null))}function ms(a,n,s){var c,h,P;if(this._weekdaysParseExact)return ds.call(this,a,n,s);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),c=0;c<7;c++){if(h=w([2e3,1]).day(c),s&&!this._fullWeekdaysParse[c]&&(this._fullWeekdaysParse[c]=new RegExp("^"+this.weekdays(h,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[c]=new RegExp("^"+this.weekdaysShort(h,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[c]=new RegExp("^"+this.weekdaysMin(h,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[c]||(P="^"+this.weekdays(h,"")+"|^"+this.weekdaysShort(h,"")+"|^"+this.weekdaysMin(h,""),this._weekdaysParse[c]=new RegExp(P.replace(".",""),"i")),s&&n==="dddd"&&this._fullWeekdaysParse[c].test(a))return c;if(s&&n==="ddd"&&this._shortWeekdaysParse[c].test(a))return c;if(s&&n==="dd"&&this._minWeekdaysParse[c].test(a))return c;if(!s&&this._weekdaysParse[c].test(a))return c}}function fs(a){if(!this.isValid())return a!=null?this:NaN;var n=Lr(this,"Day");return a!=null?(a=rs(a,this.localeData()),this.add(a-n,"d")):n}function ps(a){if(!this.isValid())return a!=null?this:NaN;var n=(this.day()+7-this.localeData()._week.dow)%7;return a==null?n:this.add(a-n,"d")}function gs(a){if(!this.isValid())return a!=null?this:NaN;if(a!=null){var n=as(a,this.localeData());return this.day(this.day()%7?n:n-7)}else return this.day()||7}function ys(a){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||$a.call(this),a?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=is),this._weekdaysStrictRegex&&a?this._weekdaysStrictRegex:this._weekdaysRegex)}function bs(a){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||$a.call(this),a?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ss),this._weekdaysShortStrictRegex&&a?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Ps(a){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||$a.call(this),a?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=cs),this._weekdaysMinStrictRegex&&a?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function $a(){function a(at,Ot){return Ot.length-at.length}var n=[],s=[],c=[],h=[],P,D,W,le,ve;for(P=0;P<7;P++)D=w([2e3,1]).day(P),W=xt(this.weekdaysMin(D,"")),le=xt(this.weekdaysShort(D,"")),ve=xt(this.weekdays(D,"")),n.push(W),s.push(le),c.push(ve),h.push(W),h.push(le),h.push(ve);n.sort(a),s.sort(a),c.sort(a),h.sort(a),this._weekdaysRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+n.join("|")+")","i");}function ja(){return this.hours()%12||12}function vs(){return this.hours()||24}$("H",["HH",2],0,"hour"),$("h",["hh",2],0,ja),$("k",["kk",2],0,vs),$("hmm",0,0,function(){return ""+ja.apply(this)+_e(this.minutes(),2)}),$("hmmss",0,0,function(){return ""+ja.apply(this)+_e(this.minutes(),2)+_e(this.seconds(),2)}),$("Hmm",0,0,function(){return ""+this.hours()+_e(this.minutes(),2)}),$("Hmmss",0,0,function(){return ""+this.hours()+_e(this.minutes(),2)+_e(this.seconds(),2)});function Xn(a,n){$(a,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)});}Xn("a",true),Xn("A",false);function Jn(a,n){return n._meridiemParse}G("a",Jn),G("A",Jn),G("H",Ee,Ua),G("h",Ee,gr),G("k",Ee,gr),G("HH",Ee,it),G("hh",Ee,it),G("kk",Ee,it),G("hmm",Vn),G("hmmss",Hn),G("Hmm",Vn),G("Hmmss",Hn),Ae(["H","HH"],ze),Ae(["k","kk"],function(a,n,s){var c=Pe(a);n[ze]=c===24?0:c;}),Ae(["a","A"],function(a,n,s){s._isPm=s._locale.isPM(a),s._meridiem=a;}),Ae(["h","hh"],function(a,n,s){n[ze]=Pe(a),m(s).bigHour=true;}),Ae("hmm",function(a,n,s){var c=a.length-2;n[ze]=Pe(a.substr(0,c)),n[ft]=Pe(a.substr(c)),m(s).bigHour=true;}),Ae("hmmss",function(a,n,s){var c=a.length-4,h=a.length-2;n[ze]=Pe(a.substr(0,c)),n[ft]=Pe(a.substr(c,2)),n[Tt]=Pe(a.substr(h)),m(s).bigHour=true;}),Ae("Hmm",function(a,n,s){var c=a.length-2;n[ze]=Pe(a.substr(0,c)),n[ft]=Pe(a.substr(c));}),Ae("Hmmss",function(a,n,s){var c=a.length-4,h=a.length-2;n[ze]=Pe(a.substr(0,c)),n[ft]=Pe(a.substr(c,2)),n[Tt]=Pe(a.substr(h));});function ws(a){return (a+"").toLowerCase().charAt(0)==="p"}var Cs=/[ap]\.?m?\.?/i,ks=yr("Hours",true);function Ss(a,n,s){return a>11?s?"pm":"PM":s?"am":"AM"}var Zn={calendar:Me,longDateFormat:Wt,invalidDate:Na,ordinal:vi,dayOfMonthOrdinalParse:wi,relativeTime:ki,months:Vi,monthsShort:zn,week:Ji,weekdays:ns,weekdaysMin:os,weekdaysShort:qn,meridiemParse:Cs},Ie={},Vr={},Hr;function xs(a,n){var s,c=Math.min(a.length,n.length);for(s=0;s<c;s+=1)if(a[s]!==n[s])return s;return c}function Qn(a){return a&&a.toLowerCase().replace("_","-")}function Ds(a){for(var n=0,s,c,h,P;n<a.length;){for(P=Qn(a[n]).split("-"),s=P.length,c=Qn(a[n+1]),c=c?c.split("-"):null;s>0;){if(h=ha(P.slice(0,s).join("-")),h)return h;if(c&&c.length>=s&&xs(P,c)>=s-1)break;s--;}n++;}return Hr}function Ts(a){return !!(a&&a.match("^[^/\\\\]*$"))}function ha(a){var n=null,s;if(Ie[a]===void 0&&typeof Dr<"u"&&Dr&&Dr.exports&&Ts(a))try{n=Hr._abbr,s=Mo,s("./locale/"+a),Gt(n);}catch{Ie[a]=null;}return Ie[a]}function Gt(a,n){var s;return a&&(d(n)?s=At(a):s=Ka(a,n),s?Hr=s:typeof console<"u"&&console.warn&&console.warn("Locale "+a+" not found. Did you forget to load it?")),Hr._abbr}function Ka(a,n){if(n!==null){var s,c=Zn;if(n.abbr=a,Ie[a]!=null)ie("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),c=Ie[a]._config;else if(n.parentLocale!=null)if(Ie[n.parentLocale]!=null)c=Ie[n.parentLocale]._config;else if(s=ha(n.parentLocale),s!=null)c=s._config;else return Vr[n.parentLocale]||(Vr[n.parentLocale]=[]),Vr[n.parentLocale].push({name:a,config:n}),null;return Ie[a]=new Q(Se(c,n)),Vr[a]&&Vr[a].forEach(function(h){Ka(h.name,h.config);}),Gt(a),Ie[a]}else return delete Ie[a],null}function Ms(a,n){if(n!=null){var s,c,h=Zn;Ie[a]!=null&&Ie[a].parentLocale!=null?Ie[a].set(Se(Ie[a]._config,n)):(c=ha(a),c!=null&&(h=c._config),n=Se(h,n),c==null&&(n.abbr=a),s=new Q(n),s.parentLocale=Ie[a],Ie[a]=s),Gt(a);}else Ie[a]!=null&&(Ie[a].parentLocale!=null?(Ie[a]=Ie[a].parentLocale,a===Gt()&&Gt(a)):Ie[a]!=null&&delete Ie[a]);return Ie[a]}function At(a){var n;if(a&&a._locale&&a._locale._abbr&&(a=a._locale._abbr),!a)return Hr;if(!o(a)){if(n=ha(a),n)return n;a=[a];}return Ds(a)}function As(){return Fe(Ie)}function qa(a){var n,s=a._a;return s&&m(a).overflow===-2&&(n=s[Dt]<0||s[Dt]>11?Dt:s[wt]<1||s[wt]>Wa(s[tt],s[Dt])?wt:s[ze]<0||s[ze]>24||s[ze]===24&&(s[ft]!==0||s[Tt]!==0||s[or]!==0)?ze:s[ft]<0||s[ft]>59?ft:s[Tt]<0||s[Tt]>59?Tt:s[or]<0||s[or]>999?or:-1,m(a)._overflowDayOfYear&&(n<tt||n>wt)&&(n=wt),m(a)._overflowWeeks&&n===-1&&(n=Oi),m(a)._overflowWeekday&&n===-1&&(n=Ii),m(a).overflow=n),a}var Fs=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_s=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Es=/Z|[+-]\d\d(?::?\d\d)?/,da=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,false],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,false],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,false],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,false],["YYYY",/\d{4}/,false]],Xa=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Os=/^\/?Date\((-?\d+)/i,Is=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Rs={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function eo(a){var n,s,c=a._i,h=Fs.exec(c)||_s.exec(c),P,D,W,le,ve=da.length,at=Xa.length;if(h){for(m(a).iso=true,n=0,s=ve;n<s;n++)if(da[n][1].exec(h[1])){D=da[n][0],P=da[n][2]!==false;break}if(D==null){a._isValid=false;return}if(h[3]){for(n=0,s=at;n<s;n++)if(Xa[n][1].exec(h[3])){W=(h[2]||" ")+Xa[n][0];break}if(W==null){a._isValid=false;return}}if(!P&&W!=null){a._isValid=false;return}if(h[4])if(Es.exec(h[4]))le="Z";else {a._isValid=false;return}a._f=D+(W||"")+(le||""),Za(a);}else a._isValid=false;}function Ls(a,n,s,c,h,P){var D=[Bs(a),zn.indexOf(n),parseInt(s,10),parseInt(c,10),parseInt(h,10)];return P&&D.push(parseInt(P,10)),D}function Bs(a){var n=parseInt(a,10);return n<=49?2e3+n:n<=999?1900+n:n}function Ns(a){return a.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Vs(a,n,s){if(a){var c=qn.indexOf(a),h=new Date(n[0],n[1],n[2]).getDay();if(c!==h)return m(s).weekdayMismatch=true,s._isValid=false,false}return true}function Hs(a,n,s){if(a)return Rs[a];if(n)return 0;var c=parseInt(s,10),h=c%100,P=(c-h)/100;return P*60+h}function to(a){var n=Is.exec(Ns(a._i)),s;if(n){if(s=Ls(n[4],n[3],n[2],n[5],n[6],n[7]),!Vs(n[1],s,a))return;a._a=s,a._tzm=Hs(n[8],n[9],n[10]),a._d=Br.apply(null,a._a),a._d.setUTCMinutes(a._d.getUTCMinutes()-a._tzm),m(a).rfc2822=true;}else a._isValid=false;}function Ys(a){var n=Os.exec(a._i);if(n!==null){a._d=new Date(+n[1]);return}if(eo(a),a._isValid===false)delete a._isValid;else return;if(to(a),a._isValid===false)delete a._isValid;else return;a._strict?a._isValid=false:e.createFromInputFallback(a);}e.createFromInputFallback=I("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(a){a._d=new Date(a._i+(a._useUTC?" UTC":""));});function br(a,n,s){return a??n??s}function Us(a){var n=new Date(e.now());return a._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function Ja(a){var n,s,c=[],h,P,D;if(!a._d){for(h=Us(a),a._w&&a._a[wt]==null&&a._a[Dt]==null&&zs(a),a._dayOfYear!=null&&(D=br(a._a[tt],h[tt]),(a._dayOfYear>Rr(D)||a._dayOfYear===0)&&(m(a)._overflowDayOfYear=true),s=Br(D,0,a._dayOfYear),a._a[Dt]=s.getUTCMonth(),a._a[wt]=s.getUTCDate()),n=0;n<3&&a._a[n]==null;++n)a._a[n]=c[n]=h[n];for(;n<7;n++)a._a[n]=c[n]=a._a[n]==null?n===2?1:0:a._a[n];a._a[ze]===24&&a._a[ft]===0&&a._a[Tt]===0&&a._a[or]===0&&(a._nextDay=true,a._a[ze]=0),a._d=(a._useUTC?Br:qi).apply(null,c),P=a._useUTC?a._d.getUTCDay():a._d.getDay(),a._tzm!=null&&a._d.setUTCMinutes(a._d.getUTCMinutes()-a._tzm),a._nextDay&&(a._a[ze]=24),a._w&&typeof a._w.d<"u"&&a._w.d!==P&&(m(a).weekdayMismatch=true);}}function zs(a){var n,s,c,h,P,D,W,le,ve;n=a._w,n.GG!=null||n.W!=null||n.E!=null?(P=1,D=4,s=br(n.GG,a._a[tt],Nr(Oe(),1,4).year),c=br(n.W,1),h=br(n.E,1),(h<1||h>7)&&(le=true)):(P=a._locale._week.dow,D=a._locale._week.doy,ve=Nr(Oe(),P,D),s=br(n.gg,a._a[tt],ve.year),c=br(n.w,ve.week),n.d!=null?(h=n.d,(h<0||h>6)&&(le=true)):n.e!=null?(h=n.e+P,(n.e<0||n.e>6)&&(le=true)):h=P),c<1||c>Mt(s,P,D)?m(a)._overflowWeeks=true:le!=null?m(a)._overflowWeekday=true:(W=Kn(s,c,h,P,D),a._a[tt]=W.year,a._dayOfYear=W.dayOfYear);}e.ISO_8601=function(){},e.RFC_2822=function(){};function Za(a){if(a._f===e.ISO_8601){eo(a);return}if(a._f===e.RFC_2822){to(a);return}a._a=[],m(a).empty=true;var n=""+a._i,s,c,h,P,D,W=n.length,le=0,ve,at;for(h=zt(a._f,a._locale).match(qe)||[],at=h.length,s=0;s<at;s++)P=h[s],c=(n.match(Fi(P,a))||[])[0],c&&(D=n.substr(0,n.indexOf(c)),D.length>0&&m(a).unusedInput.push(D),n=n.slice(n.indexOf(c)+c.length),le+=c.length),et[P]?(c?m(a).empty=false:m(a).unusedTokens.push(P),Ei(P,c,a)):a._strict&&!c&&m(a).unusedTokens.push(P);m(a).charsLeftOver=W-le,n.length>0&&m(a).unusedInput.push(n),a._a[ze]<=12&&m(a).bigHour===true&&a._a[ze]>0&&(m(a).bigHour=void 0),m(a).parsedDateParts=a._a.slice(0),m(a).meridiem=a._meridiem,a._a[ze]=Ws(a._locale,a._a[ze],a._meridiem),ve=m(a).era,ve!==null&&(a._a[tt]=a._locale.erasConvertYear(ve,a._a[tt])),Ja(a),qa(a);}function Ws(a,n,s){var c;return s==null?n:a.meridiemHour!=null?a.meridiemHour(n,s):(a.isPM!=null&&(c=a.isPM(s),c&&n<12&&(n+=12),!c&&n===12&&(n=0)),n)}function Gs(a){var n,s,c,h,P,D,W=false,le=a._f.length;if(le===0){m(a).invalidFormat=true,a._d=new Date(NaN);return}for(h=0;h<le;h++)P=0,D=false,n=Y({},a),a._useUTC!=null&&(n._useUTC=a._useUTC),n._f=a._f[h],Za(n),k(n)&&(D=true),P+=m(n).charsLeftOver,P+=m(n).unusedTokens.length*10,m(n).score=P,W?P<c&&(c=P,s=n):(c==null||P<c||D)&&(c=P,s=n,D&&(W=true));b(a,s||n);}function $s(a){if(!a._d){var n=Va(a._i),s=n.day===void 0?n.date:n.day;a._a=y([n.year,n.month,s,n.hour,n.minute,n.second,n.millisecond],function(c){return c&&parseInt(c,10)}),Ja(a);}}function js(a){var n=new B(qa(ro(a)));return n._nextDay&&(n.add(1,"d"),n._nextDay=void 0),n}function ro(a){var n=a._i,s=a._f;return a._locale=a._locale||At(a._l),n===null||s===void 0&&n===""?O({nullInput:true}):(typeof n=="string"&&(a._i=n=a._locale.preparse(n)),H(n)?new B(qa(n)):(g(n)?a._d=n:o(s)?Gs(a):s?Za(a):Ks(a),k(a)||(a._d=null),a))}function Ks(a){var n=a._i;d(n)?a._d=new Date(e.now()):g(n)?a._d=new Date(n.valueOf()):typeof n=="string"?Ys(a):o(n)?(a._a=y(n.slice(0),function(s){return parseInt(s,10)}),Ja(a)):i(n)?$s(a):f(n)?a._d=new Date(n):e.createFromInputFallback(a);}function ao(a,n,s,c,h){var P={};return (n===true||n===false)&&(c=n,n=void 0),(s===true||s===false)&&(c=s,s=void 0),(i(a)&&l(a)||o(a)&&a.length===0)&&(a=void 0),P._isAMomentObject=true,P._useUTC=P._isUTC=h,P._l=s,P._i=a,P._f=n,P._strict=c,js(P)}function Oe(a,n,s,c){return ao(a,n,s,c,false)}var qs=I("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var a=Oe.apply(null,arguments);return this.isValid()&&a.isValid()?a<this?this:a:O()}),Xs=I("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var a=Oe.apply(null,arguments);return this.isValid()&&a.isValid()?a>this?this:a:O()});function no(a,n){var s,c;if(n.length===1&&o(n[0])&&(n=n[0]),!n.length)return Oe();for(s=n[0],c=1;c<n.length;++c)(!n[c].isValid()||n[c][a](s))&&(s=n[c]);return s}function Js(){var a=[].slice.call(arguments,0);return no("isBefore",a)}function Zs(){var a=[].slice.call(arguments,0);return no("isAfter",a)}var Qs=function(){return Date.now?Date.now():+new Date},Yr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ec(a){var n,s=false,c,h=Yr.length;for(n in a)if(u(a,n)&&!(Ne.call(Yr,n)!==-1&&(a[n]==null||!isNaN(a[n]))))return false;for(c=0;c<h;++c)if(a[Yr[c]]){if(s)return false;parseFloat(a[Yr[c]])!==Pe(a[Yr[c]])&&(s=true);}return true}function tc(){return this._isValid}function rc(){return pt(NaN)}function ma(a){var n=Va(a),s=n.year||0,c=n.quarter||0,h=n.month||0,P=n.week||n.isoWeek||0,D=n.day||0,W=n.hour||0,le=n.minute||0,ve=n.second||0,at=n.millisecond||0;this._isValid=ec(n),this._milliseconds=+at+ve*1e3+le*6e4+W*1e3*60*60,this._days=+D+P*7,this._months=+h+c*3+s*12,this._data={},this._locale=At(),this._bubble();}function fa(a){return a instanceof ma}function Qa(a){return a<0?Math.round(-1*a)*-1:Math.round(a)}function ac(a,n,s){var c=Math.min(a.length,n.length),h=Math.abs(a.length-n.length),P=0,D;for(D=0;D<c;D++)(Pe(a[D])!==Pe(n[D]))&&P++;return P+h}function oo(a,n){$(a,0,0,function(){var s=this.utcOffset(),c="+";return s<0&&(s=-s,c="-"),c+_e(~~(s/60),2)+n+_e(~~s%60,2)});}oo("Z",":"),oo("ZZ",""),G("Z",sa),G("ZZ",sa),Ae(["Z","ZZ"],function(a,n,s){s._useUTC=true,s._tzm=en(sa,a);});var nc=/([\+\-]|\d\d)/gi;function en(a,n){var s=(n||"").match(a),c,h,P;return s===null?null:(c=s[s.length-1]||[],h=(c+"").match(nc)||["-",0,0],P=+(h[1]*60)+Pe(h[2]),P===0?0:h[0]==="+"?P:-P)}function tn(a,n){var s,c;return n._isUTC?(s=n.clone(),c=(H(a)||g(a)?a.valueOf():Oe(a).valueOf())-s.valueOf(),s._d.setTime(s._d.valueOf()+c),e.updateOffset(s,false),s):Oe(a).local()}function rn(a){return -Math.round(a._d.getTimezoneOffset())}e.updateOffset=function(){};function oc(a,n,s){var c=this._offset||0,h;if(!this.isValid())return a!=null?this:NaN;if(a!=null){if(typeof a=="string"){if(a=en(sa,a),a===null)return this}else Math.abs(a)<16&&!s&&(a=a*60);return !this._isUTC&&n&&(h=rn(this)),this._offset=a,this._isUTC=true,h!=null&&this.add(h,"m"),c!==a&&(!n||this._changeInProgress?lo(this,pt(a-c,"m"),1,false):this._changeInProgress||(this._changeInProgress=true,e.updateOffset(this,true),this._changeInProgress=null)),this}else return this._isUTC?c:rn(this)}function ic(a,n){return a!=null?(typeof a!="string"&&(a=-a),this.utcOffset(a,n),this):-this.utcOffset()}function sc(a){return this.utcOffset(0,a)}function cc(a){return this._isUTC&&(this.utcOffset(0,a),this._isUTC=false,a&&this.subtract(rn(this),"m")),this}function lc(){if(this._tzm!=null)this.utcOffset(this._tzm,false,true);else if(typeof this._i=="string"){var a=en(Mi,this._i);a!=null?this.utcOffset(a):this.utcOffset(0,true);}return this}function uc(a){return this.isValid()?(a=a?Oe(a).utcOffset():0,(this.utcOffset()-a)%60===0):false}function hc(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function dc(){if(!d(this._isDSTShifted))return this._isDSTShifted;var a={},n;return Y(a,this),a=ro(a),a._a?(n=a._isUTC?w(a._a):Oe(a._a),this._isDSTShifted=this.isValid()&&ac(a._a,n.toArray())>0):this._isDSTShifted=false,this._isDSTShifted}function mc(){return this.isValid()?!this._isUTC:false}function fc(){return this.isValid()?this._isUTC:false}function io(){return this.isValid()?this._isUTC&&this._offset===0:false}var pc=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,gc=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function pt(a,n){var s=a,c=null,h,P,D;return fa(a)?s={ms:a._milliseconds,d:a._days,M:a._months}:f(a)||!isNaN(+a)?(s={},n?s[n]=+a:s.milliseconds=+a):(c=pc.exec(a))?(h=c[1]==="-"?-1:1,s={y:0,d:Pe(c[wt])*h,h:Pe(c[ze])*h,m:Pe(c[ft])*h,s:Pe(c[Tt])*h,ms:Pe(Qa(c[or]*1e3))*h}):(c=gc.exec(a))?(h=c[1]==="-"?-1:1,s={y:ir(c[2],h),M:ir(c[3],h),w:ir(c[4],h),d:ir(c[5],h),h:ir(c[6],h),m:ir(c[7],h),s:ir(c[8],h)}):s==null?s={}:typeof s=="object"&&("from"in s||"to"in s)&&(D=yc(Oe(s.from),Oe(s.to)),s={},s.ms=D.milliseconds,s.M=D.months),P=new ma(s),fa(a)&&u(a,"_locale")&&(P._locale=a._locale),fa(a)&&u(a,"_isValid")&&(P._isValid=a._isValid),P}pt.fn=ma.prototype,pt.invalid=rc;function ir(a,n){var s=a&&parseFloat(a.replace(",","."));return (isNaN(s)?0:s)*n}function so(a,n){var s={};return s.months=n.month()-a.month()+(n.year()-a.year())*12,a.clone().add(s.months,"M").isAfter(n)&&--s.months,s.milliseconds=+n-+a.clone().add(s.months,"M"),s}function yc(a,n){var s;return a.isValid()&&n.isValid()?(n=tn(n,a),a.isBefore(n)?s=so(a,n):(s=so(n,a),s.milliseconds=-s.milliseconds,s.months=-s.months),s):{milliseconds:0,months:0}}function co(a,n){return function(s,c){var h,P;return c!==null&&!isNaN(+c)&&(ie(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),P=s,s=c,c=P),h=pt(s,c),lo(this,h,a),this}}function lo(a,n,s,c){var h=n._milliseconds,P=Qa(n._days),D=Qa(n._months);a.isValid()&&(c=c??true,D&&Gn(a,Lr(a,"Month")+D*s),P&&Un(a,"Date",Lr(a,"Date")+P*s),h&&a._d.setTime(a._d.valueOf()+h*s),c&&e.updateOffset(a,P||D));}var bc=co(1,"add"),Pc=co(-1,"subtract");function uo(a){return typeof a=="string"||a instanceof String}function vc(a){return H(a)||g(a)||uo(a)||f(a)||Cc(a)||wc(a)||a===null||a===void 0}function wc(a){var n=i(a)&&!l(a),s=false,c=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],h,P,D=c.length;for(h=0;h<D;h+=1)P=c[h],s=s||u(a,P);return n&&s}function Cc(a){var n=o(a),s=false;return n&&(s=a.filter(function(c){return !f(c)&&uo(a)}).length===0),n&&s}function kc(a){var n=i(a)&&!l(a),s=false,c=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],h,P;for(h=0;h<c.length;h+=1)P=c[h],s=s||u(a,P);return n&&s}function Sc(a,n){var s=a.diff(n,"days",true);return s<-6?"sameElse":s<-1?"lastWeek":s<0?"lastDay":s<1?"sameDay":s<2?"nextDay":s<7?"nextWeek":"sameElse"}function xc(a,n){arguments.length===1&&(arguments[0]?vc(arguments[0])?(a=arguments[0],n=void 0):kc(arguments[0])&&(n=arguments[0],a=void 0):(a=void 0,n=void 0));var s=a||Oe(),c=tn(s,this).startOf("day"),h=e.calendarFormat(this,c)||"sameElse",P=n&&(fe(n[h])?n[h].call(this,s):n[h]);return this.format(P||this.localeData().calendar(h,this,Oe(s)))}function Dc(){return new B(this)}function Tc(a,n){var s=H(a)?a:Oe(a);return this.isValid()&&s.isValid()?(n=ht(n)||"millisecond",n==="millisecond"?this.valueOf()>s.valueOf():s.valueOf()<this.clone().startOf(n).valueOf()):false}function Mc(a,n){var s=H(a)?a:Oe(a);return this.isValid()&&s.isValid()?(n=ht(n)||"millisecond",n==="millisecond"?this.valueOf()<s.valueOf():this.clone().endOf(n).valueOf()<s.valueOf()):false}function Ac(a,n,s,c){var h=H(a)?a:Oe(a),P=H(n)?n:Oe(n);return this.isValid()&&h.isValid()&&P.isValid()?(c=c||"()",(c[0]==="("?this.isAfter(h,s):!this.isBefore(h,s))&&(c[1]===")"?this.isBefore(P,s):!this.isAfter(P,s))):false}function Fc(a,n){var s=H(a)?a:Oe(a),c;return this.isValid()&&s.isValid()?(n=ht(n)||"millisecond",n==="millisecond"?this.valueOf()===s.valueOf():(c=s.valueOf(),this.clone().startOf(n).valueOf()<=c&&c<=this.clone().endOf(n).valueOf())):false}function _c(a,n){return this.isSame(a,n)||this.isAfter(a,n)}function Ec(a,n){return this.isSame(a,n)||this.isBefore(a,n)}function Oc(a,n,s){var c,h,P;if(!this.isValid())return NaN;if(c=tn(a,this),!c.isValid())return NaN;switch(h=(c.utcOffset()-this.utcOffset())*6e4,n=ht(n),n){case "year":P=pa(this,c)/12;break;case "month":P=pa(this,c);break;case "quarter":P=pa(this,c)/3;break;case "second":P=(this-c)/1e3;break;case "minute":P=(this-c)/6e4;break;case "hour":P=(this-c)/36e5;break;case "day":P=(this-c-h)/864e5;break;case "week":P=(this-c-h)/6048e5;break;default:P=this-c;}return s?P:dt(P)}function pa(a,n){if(a.date()<n.date())return -pa(n,a);var s=(n.year()-a.year())*12+(n.month()-a.month()),c=a.clone().add(s,"months"),h,P;return n-c<0?(h=a.clone().add(s-1,"months"),P=(n-c)/(c-h)):(h=a.clone().add(s+1,"months"),P=(n-c)/(h-c)),-(s+P)||0}e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function Ic(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function Rc(a){if(!this.isValid())return null;var n=a!==true,s=n?this.clone().utc():this;return s.year()<0||s.year()>9999?ut(s,n?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):fe(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",ut(s,"Z")):ut(s,n?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Lc(){if(!this.isValid())return "moment.invalid(/* "+this._i+" */)";var a="moment",n="",s,c,h,P;return this.isLocal()||(a=this.utcOffset()===0?"moment.utc":"moment.parseZone",n="Z"),s="["+a+'("]',c=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",h="-MM-DD[T]HH:mm:ss.SSS",P=n+'[")]',this.format(s+c+h+P)}function Bc(a){a||(a=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var n=ut(this,a);return this.localeData().postformat(n)}function Nc(a,n){return this.isValid()&&(H(a)&&a.isValid()||Oe(a).isValid())?pt({to:this,from:a}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function Vc(a){return this.from(Oe(),a)}function Hc(a,n){return this.isValid()&&(H(a)&&a.isValid()||Oe(a).isValid())?pt({from:this,to:a}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()}function Yc(a){return this.to(Oe(),a)}function ho(a){var n;return a===void 0?this._locale._abbr:(n=At(a),n!=null&&(this._locale=n),this)}var mo=I("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(a){return a===void 0?this.localeData():this.locale(a)});function fo(){return this._locale}var ga=1e3,Pr=60*ga,ya=60*Pr,po=(365*400+97)*24*ya;function vr(a,n){return (a%n+n)%n}function go(a,n,s){return a<100&&a>=0?new Date(a+400,n,s)-po:new Date(a,n,s).valueOf()}function yo(a,n,s){return a<100&&a>=0?Date.UTC(a+400,n,s)-po:Date.UTC(a,n,s)}function Uc(a){var n,s;if(a=ht(a),a===void 0||a==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?yo:go,a){case "year":n=s(this.year(),0,1);break;case "quarter":n=s(this.year(),this.month()-this.month()%3,1);break;case "month":n=s(this.year(),this.month(),1);break;case "week":n=s(this.year(),this.month(),this.date()-this.weekday());break;case "isoWeek":n=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case "day":case "date":n=s(this.year(),this.month(),this.date());break;case "hour":n=this._d.valueOf(),n-=vr(n+(this._isUTC?0:this.utcOffset()*Pr),ya);break;case "minute":n=this._d.valueOf(),n-=vr(n,Pr);break;case "second":n=this._d.valueOf(),n-=vr(n,ga);break}return this._d.setTime(n),e.updateOffset(this,true),this}function zc(a){var n,s;if(a=ht(a),a===void 0||a==="millisecond"||!this.isValid())return this;switch(s=this._isUTC?yo:go,a){case "year":n=s(this.year()+1,0,1)-1;break;case "quarter":n=s(this.year(),this.month()-this.month()%3+3,1)-1;break;case "month":n=s(this.year(),this.month()+1,1)-1;break;case "week":n=s(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case "isoWeek":n=s(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case "day":case "date":n=s(this.year(),this.month(),this.date()+1)-1;break;case "hour":n=this._d.valueOf(),n+=ya-vr(n+(this._isUTC?0:this.utcOffset()*Pr),ya)-1;break;case "minute":n=this._d.valueOf(),n+=Pr-vr(n,Pr)-1;break;case "second":n=this._d.valueOf(),n+=ga-vr(n,ga)-1;break}return this._d.setTime(n),e.updateOffset(this,true),this}function Wc(){return this._d.valueOf()-(this._offset||0)*6e4}function Gc(){return Math.floor(this.valueOf()/1e3)}function $c(){return new Date(this.valueOf())}function jc(){var a=this;return [a.year(),a.month(),a.date(),a.hour(),a.minute(),a.second(),a.millisecond()]}function Kc(){var a=this;return {years:a.year(),months:a.month(),date:a.date(),hours:a.hours(),minutes:a.minutes(),seconds:a.seconds(),milliseconds:a.milliseconds()}}function qc(){return this.isValid()?this.toISOString():null}function Xc(){return k(this)}function Jc(){return b({},m(this))}function Zc(){return m(this).overflow}function Qc(){return {input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}$("N",0,0,"eraAbbr"),$("NN",0,0,"eraAbbr"),$("NNN",0,0,"eraAbbr"),$("NNNN",0,0,"eraName"),$("NNNNN",0,0,"eraNarrow"),$("y",["y",1],"yo","eraYear"),$("y",["yy",2],0,"eraYear"),$("y",["yyy",3],0,"eraYear"),$("y",["yyyy",4],0,"eraYear"),G("N",an),G("NN",an),G("NNN",an),G("NNNN",ul),G("NNNNN",hl),Ae(["N","NN","NNN","NNNN","NNNNN"],function(a,n,s,c){var h=s._locale.erasParse(a,c,s._strict);h?m(s).era=h:m(s).invalidEra=a;}),G("y",pr),G("yy",pr),G("yyy",pr),G("yyyy",pr),G("yo",dl),Ae(["y","yy","yyy","yyyy"],tt),Ae(["yo"],function(a,n,s,c){var h;s._locale._eraYearOrdinalRegex&&(h=a.match(s._locale._eraYearOrdinalRegex)),s._locale.eraYearOrdinalParse?n[tt]=s._locale.eraYearOrdinalParse(a,h):n[tt]=parseInt(a,10);});function el(a,n){var s,c,h,P=this._eras||At("en")._eras;for(s=0,c=P.length;s<c;++s)switch(typeof P[s].since==="string"&&(h=e(P[s].since).startOf("day"),P[s].since=h.valueOf()),typeof P[s].until){case "undefined":P[s].until=1/0;break;case "string":h=e(P[s].until).startOf("day").valueOf(),P[s].until=h.valueOf();break}return P}function tl(a,n,s){var c,h,P=this.eras(),D,W,le;for(a=a.toUpperCase(),c=0,h=P.length;c<h;++c)if(D=P[c].name.toUpperCase(),W=P[c].abbr.toUpperCase(),le=P[c].narrow.toUpperCase(),s)switch(n){case "N":case "NN":case "NNN":if(W===a)return P[c];break;case "NNNN":if(D===a)return P[c];break;case "NNNNN":if(le===a)return P[c];break}else if([D,W,le].indexOf(a)>=0)return P[c]}function rl(a,n){var s=a.since<=a.until?1:-1;return n===void 0?e(a.since).year():e(a.since).year()+(n-a.offset)*s}function al(){var a,n,s,c=this.localeData().eras();for(a=0,n=c.length;a<n;++a)if(s=this.clone().startOf("day").valueOf(),c[a].since<=s&&s<=c[a].until||c[a].until<=s&&s<=c[a].since)return c[a].name;return ""}function nl(){var a,n,s,c=this.localeData().eras();for(a=0,n=c.length;a<n;++a)if(s=this.clone().startOf("day").valueOf(),c[a].since<=s&&s<=c[a].until||c[a].until<=s&&s<=c[a].since)return c[a].narrow;return ""}function ol(){var a,n,s,c=this.localeData().eras();for(a=0,n=c.length;a<n;++a)if(s=this.clone().startOf("day").valueOf(),c[a].since<=s&&s<=c[a].until||c[a].until<=s&&s<=c[a].since)return c[a].abbr;return ""}function il(){var a,n,s,c,h=this.localeData().eras();for(a=0,n=h.length;a<n;++a)if(s=h[a].since<=h[a].until?1:-1,c=this.clone().startOf("day").valueOf(),h[a].since<=c&&c<=h[a].until||h[a].until<=c&&c<=h[a].since)return (this.year()-e(h[a].since).year())*s+h[a].offset;return this.year()}function sl(a){return u(this,"_erasNameRegex")||nn.call(this),a?this._erasNameRegex:this._erasRegex}function cl(a){return u(this,"_erasAbbrRegex")||nn.call(this),a?this._erasAbbrRegex:this._erasRegex}function ll(a){return u(this,"_erasNarrowRegex")||nn.call(this),a?this._erasNarrowRegex:this._erasRegex}function an(a,n){return n.erasAbbrRegex(a)}function ul(a,n){return n.erasNameRegex(a)}function hl(a,n){return n.erasNarrowRegex(a)}function dl(a,n){return n._eraYearOrdinalRegex||pr}function nn(){var a=[],n=[],s=[],c=[],h,P,D,W,le,ve=this.eras();for(h=0,P=ve.length;h<P;++h)D=xt(ve[h].name),W=xt(ve[h].abbr),le=xt(ve[h].narrow),n.push(D),a.push(W),s.push(le),c.push(D),c.push(W),c.push(le);this._erasRegex=new RegExp("^("+c.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+a.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+s.join("|")+")","i");}$(0,["gg",2],0,function(){return this.weekYear()%100}),$(0,["GG",2],0,function(){return this.isoWeekYear()%100});function ba(a,n){$(0,[a,a.length],0,n);}ba("gggg","weekYear"),ba("ggggg","weekYear"),ba("GGGG","isoWeekYear"),ba("GGGGG","isoWeekYear"),G("G",ia),G("g",ia),G("GG",Ee,it),G("gg",Ee,it),G("GGGG",Ya,Ha),G("gggg",Ya,Ha),G("GGGGG",oa,aa),G("ggggg",oa,aa),Ir(["gggg","ggggg","GGGG","GGGGG"],function(a,n,s,c){n[c.substr(0,2)]=Pe(a);}),Ir(["gg","GG"],function(a,n,s,c){n[c]=e.parseTwoDigitYear(a);});function ml(a){return bo.call(this,a,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function fl(a){return bo.call(this,a,this.isoWeek(),this.isoWeekday(),1,4)}function pl(){return Mt(this.year(),1,4)}function gl(){return Mt(this.isoWeekYear(),1,4)}function yl(){var a=this.localeData()._week;return Mt(this.year(),a.dow,a.doy)}function bl(){var a=this.localeData()._week;return Mt(this.weekYear(),a.dow,a.doy)}function bo(a,n,s,c,h){var P;return a==null?Nr(this,c,h).year:(P=Mt(a,c,h),n>P&&(n=P),Pl.call(this,a,n,s,c,h))}function Pl(a,n,s,c,h){var P=Kn(a,n,s,c,h),D=Br(P.year,0,P.dayOfYear);return this.year(D.getUTCFullYear()),this.month(D.getUTCMonth()),this.date(D.getUTCDate()),this}$("Q",0,"Qo","quarter"),G("Q",Bn),Ae("Q",function(a,n){n[Dt]=(Pe(a)-1)*3;});function vl(a){return a==null?Math.ceil((this.month()+1)/3):this.month((a-1)*3+this.month()%3)}$("D",["DD",2],"Do","date"),G("D",Ee,gr),G("DD",Ee,it),G("Do",function(a,n){return a?n._dayOfMonthOrdinalParse||n._ordinalParse:n._dayOfMonthOrdinalParseLenient}),Ae(["D","DD"],wt),Ae("Do",function(a,n){n[wt]=Pe(a.match(Ee)[0]);});var Po=yr("Date",true);$("DDD",["DDDD",3],"DDDo","dayOfYear"),G("DDD",na),G("DDDD",Nn),Ae(["DDD","DDDD"],function(a,n,s){s._dayOfYear=Pe(a);});function wl(a){var n=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return a==null?n:this.add(a-n,"d")}$("m",["mm",2],0,"minute"),G("m",Ee,Ua),G("mm",Ee,it),Ae(["m","mm"],ft);var Cl=yr("Minutes",false);$("s",["ss",2],0,"second"),G("s",Ee,Ua),G("ss",Ee,it),Ae(["s","ss"],Tt);var kl=yr("Seconds",false);$("S",0,0,function(){return ~~(this.millisecond()/100)}),$(0,["SS",2],0,function(){return ~~(this.millisecond()/10)}),$(0,["SSS",3],0,"millisecond"),$(0,["SSSS",4],0,function(){return this.millisecond()*10}),$(0,["SSSSS",5],0,function(){return this.millisecond()*100}),$(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),$(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),$(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),$(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),G("S",na,Bn),G("SS",na,it),G("SSS",na,Nn);var $t,vo;for($t="SSSS";$t.length<=9;$t+="S")G($t,pr);function Sl(a,n){n[or]=Pe(("0."+a)*1e3);}for($t="S";$t.length<=9;$t+="S")Ae($t,Sl);vo=yr("Milliseconds",false),$("z",0,0,"zoneAbbr"),$("zz",0,0,"zoneName");function xl(){return this._isUTC?"UTC":""}function Dl(){return this._isUTC?"Coordinated Universal Time":""}var R=B.prototype;R.add=bc,R.calendar=xc,R.clone=Dc,R.diff=Oc,R.endOf=zc,R.format=Bc,R.from=Nc,R.fromNow=Vc,R.to=Hc,R.toNow=Yc,R.get=Li,R.invalidAt=Zc,R.isAfter=Tc,R.isBefore=Mc,R.isBetween=Ac,R.isSame=Fc,R.isSameOrAfter=_c,R.isSameOrBefore=Ec,R.isValid=Xc,R.lang=mo,R.locale=ho,R.localeData=fo,R.max=Xs,R.min=qs,R.parsingFlags=Jc,R.set=Bi,R.startOf=Uc,R.subtract=Pc,R.toArray=jc,R.toObject=Kc,R.toDate=$c,R.toISOString=Rc,R.inspect=Lc,typeof Symbol<"u"&&Symbol.for!=null&&(R[Symbol.for("nodejs.util.inspect.custom")]=function(){return "Moment<"+this.format()+">"}),R.toJSON=qc,R.toString=Ic,R.unix=Gc,R.valueOf=Wc,R.creationData=Qc,R.eraName=al,R.eraNarrow=nl,R.eraAbbr=ol,R.eraYear=il,R.year=Yn,R.isLeapYear=Ri,R.weekYear=ml,R.isoWeekYear=fl,R.quarter=R.quarters=vl,R.month=$n,R.daysInMonth=$i,R.week=R.weeks=es,R.isoWeek=R.isoWeeks=ts,R.weeksInYear=yl,R.weeksInWeekYear=bl,R.isoWeeksInYear=pl,R.isoWeeksInISOWeekYear=gl,R.date=Po,R.day=R.days=fs,R.weekday=ps,R.isoWeekday=gs,R.dayOfYear=wl,R.hour=R.hours=ks,R.minute=R.minutes=Cl,R.second=R.seconds=kl,R.millisecond=R.milliseconds=vo,R.utcOffset=oc,R.utc=sc,R.local=cc,R.parseZone=lc,R.hasAlignedHourOffset=uc,R.isDST=hc,R.isLocal=mc,R.isUtcOffset=fc,R.isUtc=io,R.isUTC=io,R.zoneAbbr=xl,R.zoneName=Dl,R.dates=I("dates accessor is deprecated. Use date instead.",Po),R.months=I("months accessor is deprecated. Use month instead",$n),R.years=I("years accessor is deprecated. Use year instead",Yn),R.zone=I("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",ic),R.isDSTShifted=I("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",dc);function Tl(a){return Oe(a*1e3)}function Ml(){return Oe.apply(null,arguments).parseZone()}function wo(a){return a}var ke=Q.prototype;ke.calendar=Ye,ke.longDateFormat=Ba,ke.invalidDate=Pi,ke.ordinal=Ci,ke.preparse=wo,ke.postformat=wo,ke.relativeTime=Si,ke.pastFuture=xi,ke.set=pe,ke.eras=el,ke.erasParse=tl,ke.erasConvertYear=rl,ke.erasAbbrRegex=cl,ke.erasNameRegex=sl,ke.erasNarrowRegex=ll,ke.months=Ui,ke.monthsShort=zi,ke.monthsParse=Gi,ke.monthsRegex=Ki,ke.monthsShortRegex=ji,ke.week=Xi,ke.firstDayOfYear=Qi,ke.firstDayOfWeek=Zi,ke.weekdays=ls,ke.weekdaysMin=hs,ke.weekdaysShort=us,ke.weekdaysParse=ms,ke.weekdaysRegex=ys,ke.weekdaysShortRegex=bs,ke.weekdaysMinRegex=Ps,ke.isPM=ws,ke.meridiem=Ss;function Pa(a,n,s,c){var h=At(),P=w().set(c,n);return h[s](P,a)}function Co(a,n,s){if(f(a)&&(n=a,a=void 0),a=a||"",n!=null)return Pa(a,n,s,"month");var c,h=[];for(c=0;c<12;c++)h[c]=Pa(a,c,s,"month");return h}function on(a,n,s,c){typeof a=="boolean"?(f(n)&&(s=n,n=void 0),n=n||""):(n=a,s=n,a=false,f(n)&&(s=n,n=void 0),n=n||"");var h=At(),P=a?h._week.dow:0,D,W=[];if(s!=null)return Pa(n,(s+P)%7,c,"day");for(D=0;D<7;D++)W[D]=Pa(n,(D+P)%7,c,"day");return W}function Al(a,n){return Co(a,n,"months")}function Fl(a,n){return Co(a,n,"monthsShort")}function _l(a,n,s){return on(a,n,s,"weekdays")}function El(a,n,s){return on(a,n,s,"weekdaysShort")}function Ol(a,n,s){return on(a,n,s,"weekdaysMin")}Gt("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(a){var n=a%10,s=Pe(a%100/10)===1?"th":n===1?"st":n===2?"nd":n===3?"rd":"th";return a+s}}),e.lang=I("moment.lang is deprecated. Use moment.locale instead.",Gt),e.langData=I("moment.langData is deprecated. Use moment.localeData instead.",At);var Ft=Math.abs;function Il(){var a=this._data;return this._milliseconds=Ft(this._milliseconds),this._days=Ft(this._days),this._months=Ft(this._months),a.milliseconds=Ft(a.milliseconds),a.seconds=Ft(a.seconds),a.minutes=Ft(a.minutes),a.hours=Ft(a.hours),a.months=Ft(a.months),a.years=Ft(a.years),this}function ko(a,n,s,c){var h=pt(n,s);return a._milliseconds+=c*h._milliseconds,a._days+=c*h._days,a._months+=c*h._months,a._bubble()}function Rl(a,n){return ko(this,a,n,1)}function Ll(a,n){return ko(this,a,n,-1)}function So(a){return a<0?Math.floor(a):Math.ceil(a)}function Bl(){var a=this._milliseconds,n=this._days,s=this._months,c=this._data,h,P,D,W,le;return a>=0&&n>=0&&s>=0||a<=0&&n<=0&&s<=0||(a+=So(sn(s)+n)*864e5,n=0,s=0),c.milliseconds=a%1e3,h=dt(a/1e3),c.seconds=h%60,P=dt(h/60),c.minutes=P%60,D=dt(P/60),c.hours=D%24,n+=dt(D/24),le=dt(xo(n)),s+=le,n-=So(sn(le)),W=dt(s/12),s%=12,c.days=n,c.months=s,c.years=W,this}function xo(a){return a*4800/146097}function sn(a){return a*146097/4800}function Nl(a){if(!this.isValid())return NaN;var n,s,c=this._milliseconds;if(a=ht(a),a==="month"||a==="quarter"||a==="year")switch(n=this._days+c/864e5,s=this._months+xo(n),a){case "month":return s;case "quarter":return s/3;case "year":return s/12}else switch(n=this._days+Math.round(sn(this._months)),a){case "week":return n/7+c/6048e5;case "day":return n+c/864e5;case "hour":return n*24+c/36e5;case "minute":return n*1440+c/6e4;case "second":return n*86400+c/1e3;case "millisecond":return Math.floor(n*864e5)+c;default:throw new Error("Unknown unit "+a)}}function _t(a){return function(){return this.as(a)}}var Do=_t("ms"),Vl=_t("s"),Hl=_t("m"),Yl=_t("h"),Ul=_t("d"),zl=_t("w"),Wl=_t("M"),Gl=_t("Q"),$l=_t("y"),jl=Do;function Kl(){return pt(this)}function ql(a){return a=ht(a),this.isValid()?this[a+"s"]():NaN}function sr(a){return function(){return this.isValid()?this._data[a]:NaN}}var Xl=sr("milliseconds"),Jl=sr("seconds"),Zl=sr("minutes"),Ql=sr("hours"),eu=sr("days"),tu=sr("months"),ru=sr("years");function au(){return dt(this.days()/7)}var Et=Math.round,wr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function nu(a,n,s,c,h){return h.relativeTime(n||1,!!s,a,c)}function ou(a,n,s,c){var h=pt(a).abs(),P=Et(h.as("s")),D=Et(h.as("m")),W=Et(h.as("h")),le=Et(h.as("d")),ve=Et(h.as("M")),at=Et(h.as("w")),Ot=Et(h.as("y")),jt=P<=s.ss&&["s",P]||P<s.s&&["ss",P]||D<=1&&["m"]||D<s.m&&["mm",D]||W<=1&&["h"]||W<s.h&&["hh",W]||le<=1&&["d"]||le<s.d&&["dd",le];return s.w!=null&&(jt=jt||at<=1&&["w"]||at<s.w&&["ww",at]),jt=jt||ve<=1&&["M"]||ve<s.M&&["MM",ve]||Ot<=1&&["y"]||["yy",Ot],jt[2]=n,jt[3]=+a>0,jt[4]=c,nu.apply(null,jt)}function iu(a){return a===void 0?Et:typeof a=="function"?(Et=a,true):false}function su(a,n){return wr[a]===void 0?false:n===void 0?wr[a]:(wr[a]=n,a==="s"&&(wr.ss=n-1),true)}function cu(a,n){if(!this.isValid())return this.localeData().invalidDate();var s=false,c=wr,h,P;return typeof a=="object"&&(n=a,a=false),typeof a=="boolean"&&(s=a),typeof n=="object"&&(c=Object.assign({},wr,n),n.s!=null&&n.ss==null&&(c.ss=n.s-1)),h=this.localeData(),P=ou(this,!s,c,h),s&&(P=h.pastFuture(+this,P)),h.postformat(P)}var cn=Math.abs;function Cr(a){return (a>0)-(a<0)||+a}function va(){if(!this.isValid())return this.localeData().invalidDate();var a=cn(this._milliseconds)/1e3,n=cn(this._days),s=cn(this._months),c,h,P,D,W=this.asSeconds(),le,ve,at,Ot;return W?(c=dt(a/60),h=dt(c/60),a%=60,c%=60,P=dt(s/12),s%=12,D=a?a.toFixed(3).replace(/\.?0+$/,""):"",le=W<0?"-":"",ve=Cr(this._months)!==Cr(W)?"-":"",at=Cr(this._days)!==Cr(W)?"-":"",Ot=Cr(this._milliseconds)!==Cr(W)?"-":"",le+"P"+(P?ve+P+"Y":"")+(s?ve+s+"M":"")+(n?at+n+"D":"")+(h||c||a?"T":"")+(h?Ot+h+"H":"")+(c?Ot+c+"M":"")+(a?Ot+D+"S":"")):"P0D"}var we=ma.prototype;we.isValid=tc,we.abs=Il,we.add=Rl,we.subtract=Ll,we.as=Nl,we.asMilliseconds=Do,we.asSeconds=Vl,we.asMinutes=Hl,we.asHours=Yl,we.asDays=Ul,we.asWeeks=zl,we.asMonths=Wl,we.asQuarters=Gl,we.asYears=$l,we.valueOf=jl,we._bubble=Bl,we.clone=Kl,we.get=ql,we.milliseconds=Xl,we.seconds=Jl,we.minutes=Zl,we.hours=Ql,we.days=eu,we.weeks=au,we.months=tu,we.years=ru,we.humanize=cu,we.toISOString=va,we.toString=va,we.toJSON=va,we.locale=ho,we.localeData=fo,we.toIsoString=I("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",va),we.lang=mo,$("X",0,0,"unix"),$("x",0,0,"valueOf"),G("x",ia),G("X",Ai),Ae("X",function(a,n,s){s._d=new Date(parseFloat(a)*1e3);}),Ae("x",function(a,n,s){s._d=new Date(Pe(a));});return e.version="2.30.1",r(Oe),e.fn=R,e.min=Js,e.max=Zs,e.now=Qs,e.utc=w,e.unix=Tl,e.months=Al,e.isDate=g,e.locale=Gt,e.invalid=O,e.duration=pt,e.isMoment=H,e.weekdays=_l,e.parseZone=Ml,e.localeData=At,e.isDuration=fa,e.monthsShort=Fl,e.weekdaysMin=Ol,e.defineLocale=Ka,e.updateLocale=Ms,e.locales=As,e.weekdaysShort=El,e.normalizeUnits=ht,e.relativeTimeRounding=iu,e.relativeTimeThreshold=su,e.calendarFormat=Sc,e.prototype=R,e.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},e}));});function rt(t){return t<0?-1:t===0?0:1}function cr(t,e,r){return (1-r)*t+r*e}function Fo(t,e,r){return r<t?t:r>e?e:r}function Ue(t,e,r){return r<t?t:r>e?e:r}function kr(t){return t=t%360,t<0&&(t=t+360),t}function We(t){return t=t%360,t<0&&(t=t+360),t}function Ur(t,e){let r=t[0]*e[0][0]+t[1]*e[0][1]+t[2]*e[0][2],o=t[0]*e[1][0]+t[1]*e[1][1]+t[2]*e[1][2],i=t[0]*e[2][0]+t[1]*e[2][1]+t[2]*e[2][2];return [r,o,i]}var _o=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],gu=[[3.2413774792388685,-1.5376652402851851,-0.49885366846268053],[-0.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-0.20395524564742123,1.0571799111220335]],Eo=[95.047,100,108.883];function wa(t,e,r){return (255<<24|(t&255)<<16|(e&255)<<8|r&255)>>>0}function un(t){let e=lr(t[0]),r=lr(t[1]),o=lr(t[2]);return wa(e,r,o)}function Wr(t){return t>>16&255}function Gr(t){return t>>8&255}function $r(t){return t&255}function Oo(t,e,r){let o=gu,i=o[0][0]*t+o[0][1]*e+o[0][2]*r,u=o[1][0]*t+o[1][1]*e+o[1][2]*r,l=o[2][0]*t+o[2][1]*e+o[2][2]*r,d=lr(i),f=lr(u),g=lr(l);return wa(d,f,g)}function yu(t){let e=Ct(Wr(t)),r=Ct(Gr(t)),o=Ct($r(t));return Ur([e,r,o],_o)}function hn(t){let e=Ct(Wr(t)),r=Ct(Gr(t)),o=Ct($r(t)),i=_o,u=i[0][0]*e+i[0][1]*r+i[0][2]*o,l=i[1][0]*e+i[1][1]*r+i[1][2]*o,d=i[2][0]*e+i[2][1]*r+i[2][2]*o,f=Eo,g=u/f[0],y=l/f[1],b=d/f[2],w=zr(g),v=zr(y),m=zr(b),p=116*v-16,k=500*(w-v),O=200*(v-m);return [p,k,O]}function Io(t){let e=gt(t),r=lr(e);return wa(r,r,r)}function Ca(t){let e=yu(t)[1];return 116*zr(e/100)-16}function gt(t){return 100*bu((t+16)/116)}function jr(t){return zr(t/100)*116-16}function Ct(t){let e=t/255;return e<=.040449936?e/12.92*100:Math.pow((e+.055)/1.055,2.4)*100}function lr(t){let e=t/100,r=0;return e<=.0031308?r=e*12.92:r=1.055*Math.pow(e,1/2.4)-.055,Fo(0,255,Math.round(r*255))}function Ro(){return Eo}function zr(t){let e=.008856451679035631,r=24389/27;return t>e?Math.pow(t,1/3):(r*t+16)/116}function bu(t){let e=.008856451679035631,r=24389/27,o=t*t*t;return o>e?o:(116*t-16)/r}var st=class t{static make(e=Ro(),r=200/Math.PI*gt(50)/100,o=50,i=2,u=false){let l=e,d=l[0]*.401288+l[1]*.650173+l[2]*-0.051461,f=l[0]*-0.250268+l[1]*1.204414+l[2]*.045854,g=l[0]*-2079e-6+l[1]*.048952+l[2]*.953127,y=.8+i/10,b=y>=.9?cr(.59,.69,(y-.9)*10):cr(.525,.59,(y-.8)*10),w=u?1:y*(1-1/3.6*Math.exp((-r-42)/92));w=w>1?1:w<0?0:w;let v=y,m=[w*(100/d)+1-w,w*(100/f)+1-w,w*(100/g)+1-w],p=1/(5*r+1),k=p*p*p*p,O=1-k,L=k*r+.1*O*O*Math.cbrt(5*r),V=gt(o)/e[1],Y=1.48+Math.sqrt(V),B=.725/Math.pow(V,.2),H=B,N=[Math.pow(L*m[0]*d/100,.42),Math.pow(L*m[1]*f/100,.42),Math.pow(L*m[2]*g/100,.42)],I=[400*N[0]/(N[0]+27.13),400*N[1]/(N[1]+27.13),400*N[2]/(N[2]+27.13)],z=(2*I[0]+I[1]+.05*I[2])*B;return new t(V,z,B,H,b,v,m,L,Math.pow(L,.25),Y)}constructor(e,r,o,i,u,l,d,f,g,y){this.n=e,this.aw=r,this.nbb=o,this.ncb=i,this.c=u,this.nc=l,this.rgbD=d,this.fl=f,this.fLRoot=g,this.z=y;}};st.DEFAULT=st.make();var kt=class t{constructor(e,r,o,i,u,l,d,f,g){this.hue=e,this.chroma=r,this.j=o,this.q=i,this.m=u,this.s=l,this.jstar=d,this.astar=f,this.bstar=g;}distance(e){let r=this.jstar-e.jstar,o=this.astar-e.astar,i=this.bstar-e.bstar,u=Math.sqrt(r*r+o*o+i*i);return 1.41*Math.pow(u,.63)}static fromInt(e){return t.fromIntInViewingConditions(e,st.DEFAULT)}static fromIntInViewingConditions(e,r){let o=(e&16711680)>>16,i=(e&65280)>>8,u=e&255,l=Ct(o),d=Ct(i),f=Ct(u),g=.41233895*l+.35762064*d+.18051042*f,y=.2126*l+.7152*d+.0722*f,b=.01932141*l+.11916382*d+.95034478*f,w=.401288*g+.650173*y-.051461*b,v=-0.250268*g+1.204414*y+.045854*b,m=-2079e-6*g+.048952*y+.953127*b,p=r.rgbD[0]*w,k=r.rgbD[1]*v,O=r.rgbD[2]*m,L=Math.pow(r.fl*Math.abs(p)/100,.42),V=Math.pow(r.fl*Math.abs(k)/100,.42),Y=Math.pow(r.fl*Math.abs(O)/100,.42),B=rt(p)*400*L/(L+27.13),H=rt(k)*400*V/(V+27.13),N=rt(O)*400*Y/(Y+27.13),I=(11*B+-12*H+N)/11,z=(B+H-2*N)/9,ie=(20*B+20*H+21*N)/20,fe=(40*B+20*H+N)/20,Se=Math.atan2(z,I)*180/Math.PI,Q=We(Se),Fe=Q*Math.PI/180,Me=fe*r.nbb,Ye=100*Math.pow(Me/r.aw,r.c*r.z),_e=4/r.c*Math.sqrt(Ye/100)*(r.aw+4)*r.fLRoot,qe=Q<20.14?Q+360:Q,Qe=.25*(Math.cos(qe*Math.PI/180+2)+3.8),et=5e4/13*Qe*r.nc*r.ncb*Math.sqrt(I*I+z*z)/(ie+.305),$=Math.pow(et,.9)*Math.pow(1.64-Math.pow(.29,r.n),.73),Yt=$*Math.sqrt(Ye/100),Ut=Yt*r.fLRoot,ut=50*Math.sqrt($*r.c/(r.aw+4)),zt=(1+100*.007)*Ye/(1+.007*Ye),Wt=1/.0228*Math.log(1+.0228*Ut),Ba=Wt*Math.cos(Fe),Na=Wt*Math.sin(Fe);return new t(Q,Yt,Ye,_e,Ut,ut,zt,Ba,Na)}static fromJch(e,r,o){return t.fromJchInViewingConditions(e,r,o,st.DEFAULT)}static fromJchInViewingConditions(e,r,o,i){let u=4/i.c*Math.sqrt(e/100)*(i.aw+4)*i.fLRoot,l=r*i.fLRoot,d=r/Math.sqrt(e/100),f=50*Math.sqrt(d*i.c/(i.aw+4)),g=o*Math.PI/180,y=(1+100*.007)*e/(1+.007*e),b=1/.0228*Math.log(1+.0228*l),w=b*Math.cos(g),v=b*Math.sin(g);return new t(o,r,e,u,l,f,y,w,v)}static fromUcs(e,r,o){return t.fromUcsInViewingConditions(e,r,o,st.DEFAULT)}static fromUcsInViewingConditions(e,r,o,i){let u=r,l=o,d=Math.sqrt(u*u+l*l),g=(Math.exp(d*.0228)-1)/.0228/i.fLRoot,y=Math.atan2(l,u)*(180/Math.PI);y<0&&(y+=360);let b=e/(1-(e-100)*.007);return t.fromJchInViewingConditions(b,g,y,i)}toInt(){return this.viewed(st.DEFAULT)}viewed(e){let r=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),o=Math.pow(r/Math.pow(1.64-Math.pow(.29,e.n),.73),1/.9),i=this.hue*Math.PI/180,u=.25*(Math.cos(i+2)+3.8),l=e.aw*Math.pow(this.j/100,1/e.c/e.z),d=u*(5e4/13)*e.nc*e.ncb,f=l/e.nbb,g=Math.sin(i),y=Math.cos(i),b=23*(f+.305)*o/(23*d+11*o*y+108*o*g),w=b*y,v=b*g,m=(460*f+451*w+288*v)/1403,p=(460*f-891*w-261*v)/1403,k=(460*f-220*w-6300*v)/1403,O=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),L=rt(m)*(100/e.fl)*Math.pow(O,1/.42),V=Math.max(0,27.13*Math.abs(p)/(400-Math.abs(p))),Y=rt(p)*(100/e.fl)*Math.pow(V,1/.42),B=Math.max(0,27.13*Math.abs(k)/(400-Math.abs(k))),H=rt(k)*(100/e.fl)*Math.pow(B,1/.42),N=L/e.rgbD[0],I=Y/e.rgbD[1],z=H/e.rgbD[2],ie=1.86206786*N-1.01125463*I+.14918677*z,fe=.38752654*N+.62144744*I-.00897398*z,pe=-0.0158415*N-.03412294*I+1.04996444*z;return Oo(ie,fe,pe)}static fromXyzInViewingConditions(e,r,o,i){let u=.401288*e+.650173*r-.051461*o,l=-0.250268*e+1.204414*r+.045854*o,d=-2079e-6*e+.048952*r+.953127*o,f=i.rgbD[0]*u,g=i.rgbD[1]*l,y=i.rgbD[2]*d,b=Math.pow(i.fl*Math.abs(f)/100,.42),w=Math.pow(i.fl*Math.abs(g)/100,.42),v=Math.pow(i.fl*Math.abs(y)/100,.42),m=rt(f)*400*b/(b+27.13),p=rt(g)*400*w/(w+27.13),k=rt(y)*400*v/(v+27.13),O=(11*m+-12*p+k)/11,L=(m+p-2*k)/9,V=(20*m+20*p+21*k)/20,Y=(40*m+20*p+k)/20,H=Math.atan2(L,O)*180/Math.PI,N=H<0?H+360:H>=360?H-360:H,I=N*Math.PI/180,z=Y*i.nbb,ie=100*Math.pow(z/i.aw,i.c*i.z),fe=4/i.c*Math.sqrt(ie/100)*(i.aw+4)*i.fLRoot,pe=N<20.14?N+360:N,Se=1/4*(Math.cos(pe*Math.PI/180+2)+3.8),Fe=5e4/13*Se*i.nc*i.ncb*Math.sqrt(O*O+L*L)/(V+.305),Me=Math.pow(Fe,.9)*Math.pow(1.64-Math.pow(.29,i.n),.73),Ye=Me*Math.sqrt(ie/100),_e=Ye*i.fLRoot,qe=50*Math.sqrt(Me*i.c/(i.aw+4)),Qe=(1+100*.007)*ie/(1+.007*ie),Xe=Math.log(1+.0228*_e)/.0228,et=Xe*Math.cos(I),$=Xe*Math.sin(I);return new t(N,Ye,ie,fe,_e,qe,Qe,et,$)}xyzInViewingConditions(e){let r=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),o=Math.pow(r/Math.pow(1.64-Math.pow(.29,e.n),.73),1/.9),i=this.hue*Math.PI/180,u=.25*(Math.cos(i+2)+3.8),l=e.aw*Math.pow(this.j/100,1/e.c/e.z),d=u*(5e4/13)*e.nc*e.ncb,f=l/e.nbb,g=Math.sin(i),y=Math.cos(i),b=23*(f+.305)*o/(23*d+11*o*y+108*o*g),w=b*y,v=b*g,m=(460*f+451*w+288*v)/1403,p=(460*f-891*w-261*v)/1403,k=(460*f-220*w-6300*v)/1403,O=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),L=rt(m)*(100/e.fl)*Math.pow(O,1/.42),V=Math.max(0,27.13*Math.abs(p)/(400-Math.abs(p))),Y=rt(p)*(100/e.fl)*Math.pow(V,1/.42),B=Math.max(0,27.13*Math.abs(k)/(400-Math.abs(k))),H=rt(k)*(100/e.fl)*Math.pow(B,1/.42),N=L/e.rgbD[0],I=Y/e.rgbD[1],z=H/e.rgbD[2],ie=1.86206786*N-1.01125463*I+.14918677*z,fe=.38752654*N+.62144744*I-.00897398*z,pe=-0.0158415*N-.03412294*I+1.04996444*z;return [ie,fe,pe]}};var bt=class t{static sanitizeRadians(e){return (e+Math.PI*8)%(Math.PI*2)}static trueDelinearized(e){let r=e/100,o=0;return r<=.0031308?o=r*12.92:o=1.055*Math.pow(r,1/2.4)-.055,o*255}static chromaticAdaptation(e){let r=Math.pow(Math.abs(e),.42);return rt(e)*400*r/(r+27.13)}static hueOf(e){let r=Ur(e,t.SCALED_DISCOUNT_FROM_LINRGB),o=t.chromaticAdaptation(r[0]),i=t.chromaticAdaptation(r[1]),u=t.chromaticAdaptation(r[2]),l=(11*o+-12*i+u)/11,d=(o+i-2*u)/9;return Math.atan2(d,l)}static areInCyclicOrder(e,r,o){let i=t.sanitizeRadians(r-e),u=t.sanitizeRadians(o-e);return i<u}static intercept(e,r,o){return (r-e)/(o-e)}static lerpPoint(e,r,o){return [e[0]+(o[0]-e[0])*r,e[1]+(o[1]-e[1])*r,e[2]+(o[2]-e[2])*r]}static setCoordinate(e,r,o,i){let u=t.intercept(e[i],r,o[i]);return t.lerpPoint(e,u,o)}static isBounded(e){return 0<=e&&e<=100}static nthVertex(e,r){let o=t.Y_FROM_LINRGB[0],i=t.Y_FROM_LINRGB[1],u=t.Y_FROM_LINRGB[2],l=r%4<=1?0:100,d=r%2===0?0:100;if(r<4){let f=l,g=d,y=(e-f*i-g*u)/o;return t.isBounded(y)?[y,f,g]:[-1,-1,-1]}else if(r<8){let f=l,g=d,y=(e-g*o-f*u)/i;return t.isBounded(y)?[g,y,f]:[-1,-1,-1]}else {let f=l,g=d,y=(e-f*o-g*i)/u;return t.isBounded(y)?[f,g,y]:[-1,-1,-1]}}static bisectToSegment(e,r){let o=[-1,-1,-1],i=o,u=0,l=0,d=false,f=true;for(let g=0;g<12;g++){let y=t.nthVertex(e,g);if(y[0]<0)continue;let b=t.hueOf(y);if(!d){o=y,i=y,u=b,l=b,d=true;continue}(f||t.areInCyclicOrder(u,b,l))&&(f=false,t.areInCyclicOrder(u,r,b)?(i=y,l=b):(o=y,u=b));}return [o,i]}static midpoint(e,r){return [(e[0]+r[0])/2,(e[1]+r[1])/2,(e[2]+r[2])/2]}static criticalPlaneBelow(e){return Math.floor(e-.5)}static criticalPlaneAbove(e){return Math.ceil(e-.5)}static bisectToLimit(e,r){let o=t.bisectToSegment(e,r),i=o[0],u=t.hueOf(i),l=o[1];for(let d=0;d<3;d++)if(i[d]!==l[d]){let f=-1,g=255;i[d]<l[d]?(f=t.criticalPlaneBelow(t.trueDelinearized(i[d])),g=t.criticalPlaneAbove(t.trueDelinearized(l[d]))):(f=t.criticalPlaneAbove(t.trueDelinearized(i[d])),g=t.criticalPlaneBelow(t.trueDelinearized(l[d])));for(let y=0;y<8&&!(Math.abs(g-f)<=1);y++){let b=Math.floor((f+g)/2),w=t.CRITICAL_PLANES[b],v=t.setCoordinate(i,w,l,d),m=t.hueOf(v);t.areInCyclicOrder(u,r,m)?(l=v,g=b):(i=v,u=m,f=b);}}return t.midpoint(i,l)}static inverseChromaticAdaptation(e){let r=Math.abs(e),o=Math.max(0,27.13*r/(400-r));return rt(e)*Math.pow(o,1/.42)}static findResultByJ(e,r,o){let i=Math.sqrt(o)*11,u=st.DEFAULT,l=1/Math.pow(1.64-Math.pow(.29,u.n),.73),f=.25*(Math.cos(e+2)+3.8)*(5e4/13)*u.nc*u.ncb,g=Math.sin(e),y=Math.cos(e);for(let b=0;b<5;b++){let w=i/100,v=r===0||i===0?0:r/Math.sqrt(w),m=Math.pow(v*l,1/.9),k=u.aw*Math.pow(w,1/u.c/u.z)/u.nbb,O=23*(k+.305)*m/(23*f+11*m*y+108*m*g),L=O*y,V=O*g,Y=(460*k+451*L+288*V)/1403,B=(460*k-891*L-261*V)/1403,H=(460*k-220*L-6300*V)/1403,N=t.inverseChromaticAdaptation(Y),I=t.inverseChromaticAdaptation(B),z=t.inverseChromaticAdaptation(H),ie=Ur([N,I,z],t.LINRGB_FROM_SCALED_DISCOUNT);if(ie[0]<0||ie[1]<0||ie[2]<0)return 0;let fe=t.Y_FROM_LINRGB[0],pe=t.Y_FROM_LINRGB[1],Se=t.Y_FROM_LINRGB[2],Q=fe*ie[0]+pe*ie[1]+Se*ie[2];if(Q<=0)return 0;if(b===4||Math.abs(Q-o)<.002)return ie[0]>100.01||ie[1]>100.01||ie[2]>100.01?0:un(ie);i=i-(Q-o)*i/(2*Q);}return 0}static solveToInt(e,r,o){if(r<1e-4||o<1e-4||o>99.9999)return Io(o);e=We(e);let i=e/180*Math.PI,u=gt(o),l=t.findResultByJ(i,r,u);if(l!==0)return l;let d=t.bisectToLimit(u,i);return un(d)}static solveToCam(e,r,o){return kt.fromInt(t.solveToInt(e,r,o))}};bt.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]];bt.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]];bt.Y_FROM_LINRGB=[.2126,.7152,.0722];bt.CRITICAL_PLANES=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];var J=class t{static from(e,r,o){return new t(bt.solveToInt(e,r,o))}static fromInt(e){return new t(e)}toInt(){return this.argb}get hue(){return this.internalHue}set hue(e){this.setInternalState(bt.solveToInt(e,this.internalChroma,this.internalTone));}get chroma(){return this.internalChroma}set chroma(e){this.setInternalState(bt.solveToInt(this.internalHue,e,this.internalTone));}get tone(){return this.internalTone}set tone(e){this.setInternalState(bt.solveToInt(this.internalHue,this.internalChroma,e));}setValue(e,r){this[e]=r;}toString(){return `HCT(${this.hue.toFixed(0)}, ${this.chroma.toFixed(0)}, ${this.tone.toFixed(0)})`}static isBlue(e){return e>=250&&e<270}static isYellow(e){return e>=105&&e<125}static isCyan(e){return e>=170&&e<207}constructor(e){this.argb=e;let r=kt.fromInt(e);this.internalHue=r.hue,this.internalChroma=r.chroma,this.internalTone=Ca(e),this.argb=e;}setInternalState(e){let r=kt.fromInt(e);this.internalHue=r.hue,this.internalChroma=r.chroma,this.internalTone=Ca(e),this.argb=e;}inViewingConditions(e){let o=kt.fromInt(this.toInt()).xyzInViewingConditions(e),i=kt.fromXyzInViewingConditions(o[0],o[1],o[2],st.make());return t.from(i.hue,i.chroma,jr(o[1]))}};var Ve=class t{static ratioOfTones(e,r){return e=Ue(0,100,e),r=Ue(0,100,r),t.ratioOfYs(gt(e),gt(r))}static ratioOfYs(e,r){let o=e>r?e:r,i=o===r?e:r;return (o+5)/(i+5)}static lighter(e,r){if(e<0||e>100)return -1;let o=gt(e),i=r*(o+5)-5,u=t.ratioOfYs(i,o),l=Math.abs(u-r);if(u<r&&l>.04)return -1;let d=jr(i)+.4;return d<0||d>100?-1:d}static darker(e,r){if(e<0||e>100)return -1;let o=gt(e),i=(o+5)/r-5,u=t.ratioOfYs(o,i),l=Math.abs(u-r);if(u<r&&l>.04)return -1;let d=jr(i)-.4;return d<0||d>100?-1:d}static lighterUnsafe(e,r){let o=t.lighter(e,r);return o<0?100:o}static darkerUnsafe(e,r){let o=t.darker(e,r);return o<0?0:o}};var ur=class t{static isDisliked(e){let r=Math.round(e.hue)>=90&&Math.round(e.hue)<=111,o=Math.round(e.chroma)>16,i=Math.round(e.tone)<65;return r&&o&&i}static fixIfDisliked(e){return t.isDisliked(e)?J.from(e.hue,e.chroma,70):e}};function Pu(t,e,r){if(t.name!==r.name)throw new Error(`Attempting to extend color ${t.name} with color ${r.name} of different name for spec version ${e}.`);if(t.isBackground!==r.isBackground)throw new Error(`Attempting to extend color ${t.name} as a ${t.isBackground?"background":"foreground"} with color ${r.name} as a ${r.isBackground?"background":"foreground"} for spec version ${e}.`)}function oe(t,e,r){return Pu(t,e,r),T.fromPalette({name:t.name,palette:o=>o.specVersion===e?r.palette(o):t.palette(o),tone:o=>o.specVersion===e?r.tone(o):t.tone(o),isBackground:t.isBackground,chromaMultiplier:o=>{let i=o.specVersion===e?r.chromaMultiplier:t.chromaMultiplier;return i!==void 0?i(o):1},background:o=>{let i=o.specVersion===e?r.background:t.background;return i!==void 0?i(o):void 0},secondBackground:o=>{let i=o.specVersion===e?r.secondBackground:t.secondBackground;return i!==void 0?i(o):void 0},contrastCurve:o=>{let i=o.specVersion===e?r.contrastCurve:t.contrastCurve;return i!==void 0?i(o):void 0},toneDeltaPair:o=>{let i=o.specVersion===e?r.toneDeltaPair:t.toneDeltaPair;return i!==void 0?i(o):void 0}})}var T=class t{static fromPalette(e){return new t(e.name??"",e.palette,e.tone??t.getInitialToneFromBackground(e.background),e.isBackground??false,e.chromaMultiplier,e.background,e.secondBackground,e.contrastCurve,e.toneDeltaPair)}static getInitialToneFromBackground(e){return e===void 0?r=>50:r=>e(r)?e(r).getTone(r):50}constructor(e,r,o,i,u,l,d,f,g){if(this.name=e,this.palette=r,this.tone=o,this.isBackground=i,this.chromaMultiplier=u,this.background=l,this.secondBackground=d,this.contrastCurve=f,this.toneDeltaPair=g,this.hctCache=new Map,!l&&d)throw new Error(`Color ${e} has secondBackgrounddefined, but background is not defined.`);if(!l&&f)throw new Error(`Color ${e} has contrastCurvedefined, but background is not defined.`);if(l&&!f)throw new Error(`Color ${e} has backgrounddefined, but contrastCurve is not defined.`)}clone(){return t.fromPalette({name:this.name,palette:this.palette,tone:this.tone,isBackground:this.isBackground,chromaMultiplier:this.chromaMultiplier,background:this.background,secondBackground:this.secondBackground,contrastCurve:this.contrastCurve,toneDeltaPair:this.toneDeltaPair})}clearCache(){this.hctCache.clear();}getArgb(e){return this.getHct(e).toInt()}getHct(e){let r=this.hctCache.get(e);if(r!=null)return r;let o=Lo(e.specVersion).getHct(e,this);return this.hctCache.size>4&&this.hctCache.clear(),this.hctCache.set(e,o),o}getTone(e){return Lo(e.specVersion).getTone(e,this)}static foregroundTone(e,r){let o=Ve.lighterUnsafe(e,r),i=Ve.darkerUnsafe(e,r),u=Ve.ratioOfTones(o,e),l=Ve.ratioOfTones(i,e);if(t.tonePrefersLightForeground(e)){let f=Math.abs(u-l)<.1&&u<r&&l<r;return u>=r||u>=l||f?o:i}else return l>=r||l>=u?i:o}static tonePrefersLightForeground(e){return Math.round(e)<60}static toneAllowsLightForeground(e){return Math.round(e)<=49}static enableLightForeground(e){return t.tonePrefersLightForeground(e)&&!t.toneAllowsLightForeground(e)?49:e}},dn=class{getHct(e,r){let o=r.getTone(e);return r.palette(e).getHct(o)}getTone(e,r){let o=e.contrastLevel<0,i=r.toneDeltaPair?r.toneDeltaPair(e):void 0;if(i){let u=i.roleA,l=i.roleB,d=i.delta,f=i.polarity,g=i.stayTogether,y=f==="nearer"||f==="lighter"&&!e.isDark||f==="darker"&&e.isDark,b=y?u:l,w=y?l:u,v=r.name===b.name,m=e.isDark?1:-1,p=b.tone(e),k=w.tone(e);if(r.background&&b.contrastCurve&&w.contrastCurve){let O=r.background(e),L=b.contrastCurve(e),V=w.contrastCurve(e);if(O&&L&&V){let Y=O.getTone(e),B=L.get(e.contrastLevel),H=V.get(e.contrastLevel);Ve.ratioOfTones(Y,p)<B&&(p=T.foregroundTone(Y,B)),Ve.ratioOfTones(Y,k)<H&&(k=T.foregroundTone(Y,H)),o&&(p=T.foregroundTone(Y,B),k=T.foregroundTone(Y,H));}}return (k-p)*m<d&&(k=Ue(0,100,p+d*m),(k-p)*m>=d||(p=Ue(0,100,k-d*m))),50<=p&&p<60?m>0?(p=60,k=Math.max(k,p+d*m)):(p=49,k=Math.min(k,p+d*m)):50<=k&&k<60&&(g?m>0?(p=60,k=Math.max(k,p+d*m)):(p=49,k=Math.min(k,p+d*m)):m>0?k=60:k=49),v?p:k}else {let u=r.tone(e);if(r.background==null||r.background(e)===void 0||r.contrastCurve==null||r.contrastCurve(e)===void 0)return u;let l=r.background(e).getTone(e),d=r.contrastCurve(e).get(e.contrastLevel);if(Ve.ratioOfTones(l,u)>=d||(u=T.foregroundTone(l,d)),o&&(u=T.foregroundTone(l,d)),r.isBackground&&50<=u&&u<60&&(Ve.ratioOfTones(49,l)>=d?u=49:u=60),r.secondBackground==null||r.secondBackground(e)===void 0)return u;let[f,g]=[r.background,r.secondBackground],[y,b]=[f(e).getTone(e),g(e).getTone(e)],[w,v]=[Math.max(y,b),Math.min(y,b)];if(Ve.ratioOfTones(w,u)>=d&&Ve.ratioOfTones(v,u)>=d)return u;let m=Ve.lighter(w,d),p=Ve.darker(v,d),k=[];return m!==-1&&k.push(m),p!==-1&&k.push(p),T.tonePrefersLightForeground(y)||T.tonePrefersLightForeground(b)?m<0?100:m:k.length===1?k[0]:p<0?0:p}}},mn=class{getHct(e,r){let o=r.palette(e),i=r.getTone(e),u=o.hue,l=o.chroma*(r.chromaMultiplier?r.chromaMultiplier(e):1);return J.from(u,l,i)}getTone(e,r){let o=r.toneDeltaPair?r.toneDeltaPair(e):void 0;if(o){let i=o.roleA,u=o.roleB,l=o.polarity,d=o.constraint,f=l==="darker"||l==="relative_lighter"&&e.isDark||l==="relative_darker"&&!e.isDark?-o.delta:o.delta,g=r.name===i.name,y=g?i:u,b=g?u:i,w=y.tone(e),v=b.getTone(e),m=f*(g?1:-1);if(d==="exact"?w=Ue(0,100,v+m):d==="nearer"?m>0?w=Ue(0,100,Ue(v,v+m,w)):w=Ue(0,100,Ue(v+m,v,w)):d==="farther"&&(m>0?w=Ue(v+m,100,w):w=Ue(0,v+m,w)),r.background&&r.contrastCurve){let p=r.background(e),k=r.contrastCurve(e);if(p&&k){let O=p.getTone(e),L=k.get(e.contrastLevel);w=Ve.ratioOfTones(O,w)>=L&&e.contrastLevel>=0?w:T.foregroundTone(O,L);}}return r.isBackground&&!r.name.endsWith("_fixed_dim")&&(w>=57?w=Ue(65,100,w):w=Ue(0,49,w)),w}else {let i=r.tone(e);if(r.background==null||r.background(e)===void 0||r.contrastCurve==null||r.contrastCurve(e)===void 0)return i;let u=r.background(e).getTone(e),l=r.contrastCurve(e).get(e.contrastLevel);if(i=Ve.ratioOfTones(u,i)>=l&&e.contrastLevel>=0?i:T.foregroundTone(u,l),r.isBackground&&!r.name.endsWith("_fixed_dim")&&(i>=57?i=Ue(65,100,i):i=Ue(0,49,i)),r.secondBackground==null||r.secondBackground(e)===void 0)return i;let[d,f]=[r.background,r.secondBackground],[g,y]=[d(e).getTone(e),f(e).getTone(e)],[b,w]=[Math.max(g,y),Math.min(g,y)];if(Ve.ratioOfTones(b,i)>=l&&Ve.ratioOfTones(w,i)>=l)return i;let v=Ve.lighter(b,l),m=Ve.darker(w,l),p=[];return v!==-1&&p.push(v),m!==-1&&p.push(m),T.tonePrefersLightForeground(g)||T.tonePrefersLightForeground(y)?v<0?100:v:p.length===1?p[0]:m<0?0:m}}},vu=new dn,wu=new mn;function Lo(t){return t==="2025"?wu:vu}var U=class t{static fromInt(e){let r=J.fromInt(e);return t.fromHct(r)}static fromHct(e){return new t(e.hue,e.chroma,e)}static fromHueAndChroma(e,r){let o=new fn(e,r).create();return new t(e,r,o)}constructor(e,r,o){this.hue=e,this.chroma=r,this.keyColor=o,this.cache=new Map;}tone(e){let r=this.cache.get(e);return r===void 0&&(e==99&&J.isYellow(this.hue)?r=this.averageArgb(this.tone(98),this.tone(100)):r=J.from(this.hue,this.chroma,e).toInt(),this.cache.set(e,r)),r}getHct(e){return J.fromInt(this.tone(e))}averageArgb(e,r){let o=e>>>16&255,i=e>>>8&255,u=e&255,l=r>>>16&255,d=r>>>8&255,f=r&255,g=Math.round((o+l)/2),y=Math.round((i+d)/2),b=Math.round((u+f)/2);return (255<<24|(g&255)<<16|(y&255)<<8|b&255)>>>0}},fn=class{constructor(e,r){this.hue=e,this.requestedChroma=r,this.chromaCache=new Map,this.maxChromaValue=200;}create(){let i=0,u=100;for(;i<u;){let l=Math.floor((i+u)/2),d=this.maxChroma(l)<this.maxChroma(l+1);if(this.maxChroma(l)>=this.requestedChroma-.01)if(Math.abs(i-50)<Math.abs(u-50))u=l;else {if(i===l)return J.from(this.hue,this.requestedChroma,i);i=l;}else d?i=l+1:u=l;}return J.from(this.hue,this.requestedChroma,i)}maxChroma(e){if(this.chromaCache.has(e))return this.chromaCache.get(e);let r=J.from(this.hue,this.maxChromaValue,e).chroma;return this.chromaCache.set(e,r),r}};var Kr=class t{constructor(e){this.input=e,this.hctsByTempCache=[],this.hctsByHueCache=[],this.tempsByHctCache=new Map,this.inputRelativeTemperatureCache=-1,this.complementCache=null;}get hctsByTemp(){if(this.hctsByTempCache.length>0)return this.hctsByTempCache;let e=this.hctsByHue.concat([this.input]),r=this.tempsByHct;return e.sort((o,i)=>r.get(o)-r.get(i)),this.hctsByTempCache=e,e}get warmest(){return this.hctsByTemp[this.hctsByTemp.length-1]}get coldest(){return this.hctsByTemp[0]}analogous(e=5,r=12){let o=Math.round(this.input.hue),i=this.hctsByHue[o],u=this.relativeTemperature(i),l=[i],d=0;for(let m=0;m<360;m++){let p=kr(o+m),k=this.hctsByHue[p],O=this.relativeTemperature(k),L=Math.abs(O-u);u=O,d+=L;}let f=1,g=d/r,y=0;for(u=this.relativeTemperature(i);l.length<r;){let m=kr(o+f),p=this.hctsByHue[m],k=this.relativeTemperature(p),O=Math.abs(k-u);y+=O;let L=l.length*g,V=y>=L,Y=1;for(;V&&l.length<r;){l.push(p);let B=(l.length+Y)*g;V=y>=B,Y++;}if(u=k,f++,f>360){for(;l.length<r;)l.push(p);break}}let b=[this.input],w=Math.floor((e-1)/2);for(let m=1;m<w+1;m++){let p=0-m;for(;p<0;)p=l.length+p;p>=l.length&&(p=p%l.length),b.splice(0,0,l[p]);}let v=e-w-1;for(let m=1;m<v+1;m++){let p=m;for(;p<0;)p=l.length+p;p>=l.length&&(p=p%l.length),b.push(l[p]);}return b}get complement(){if(this.complementCache!=null)return this.complementCache;let e=this.coldest.hue,r=this.tempsByHct.get(this.coldest),o=this.warmest.hue,u=this.tempsByHct.get(this.warmest)-r,l=t.isBetween(this.input.hue,e,o),d=l?o:e,f=l?e:o,g=1,y=1e3,b=this.hctsByHue[Math.round(this.input.hue)],w=1-this.inputRelativeTemperature;for(let v=0;v<=360;v+=1){let m=We(d+g*v);if(!t.isBetween(m,d,f))continue;let p=this.hctsByHue[Math.round(m)],k=(this.tempsByHct.get(p)-r)/u,O=Math.abs(w-k);O<y&&(y=O,b=p);}return this.complementCache=b,this.complementCache}relativeTemperature(e){let r=this.tempsByHct.get(this.warmest)-this.tempsByHct.get(this.coldest),o=this.tempsByHct.get(e)-this.tempsByHct.get(this.coldest);return r===0?.5:o/r}get inputRelativeTemperature(){return this.inputRelativeTemperatureCache>=0?this.inputRelativeTemperatureCache:(this.inputRelativeTemperatureCache=this.relativeTemperature(this.input),this.inputRelativeTemperatureCache)}get tempsByHct(){if(this.tempsByHctCache.size>0)return this.tempsByHctCache;let e=this.hctsByHue.concat([this.input]),r=new Map;for(let o of e)r.set(o,t.rawTemperature(o));return this.tempsByHctCache=r,r}get hctsByHue(){if(this.hctsByHueCache.length>0)return this.hctsByHueCache;let e=[];for(let r=0;r<=360;r+=1){let o=J.from(r,this.input.chroma,this.input.tone);e.push(o);}return this.hctsByHueCache=e,this.hctsByHueCache}static isBetween(e,r,o){return r<o?r<=e&&e<=o:r<=e||e<=o}static rawTemperature(e){let r=hn(e.toInt()),o=We(Math.atan2(r[2],r[1])*180/Math.PI),i=Math.sqrt(r[1]*r[1]+r[2]*r[2]);return -0.5+.02*Math.pow(i,1.07)*Math.cos(We(o-50)*Math.PI/180)}};var Z=class{constructor(e,r,o,i){this.low=e,this.normal=r,this.medium=o,this.high=i;}get(e){return e<=-1?this.low:e<0?cr(this.low,this.normal,(e- -1)/1):e<.5?cr(this.normal,this.medium,(e-0)/.5):e<1?cr(this.medium,this.high,(e-.5)/.5):this.high}};var Ce=class{constructor(e,r,o,i,u,l){this.roleA=e,this.roleB=r,this.delta=o,this.polarity=i,this.stayTogether=u,this.constraint=l,this.constraint=l??"exact";}};var C;(function(t){t[t.MONOCHROME=0]="MONOCHROME",t[t.NEUTRAL=1]="NEUTRAL",t[t.TONAL_SPOT=2]="TONAL_SPOT",t[t.VIBRANT=3]="VIBRANT",t[t.EXPRESSIVE=4]="EXPRESSIVE",t[t.FIDELITY=5]="FIDELITY",t[t.CONTENT=6]="CONTENT",t[t.RAINBOW=7]="RAINBOW",t[t.FRUIT_SALAD=8]="FRUIT_SALAD";})(C||(C={}));function Sr(t){return t.variant===C.FIDELITY||t.variant===C.CONTENT}function Re(t){return t.variant===C.MONOCHROME}function Cu(t,e,r,o){let i=r,u=J.from(t,e,r);if(u.chroma<e){let l=u.chroma;for(;u.chroma<e;){i+=o?-1:1;let d=J.from(t,e,i);if(l>d.chroma||Math.abs(d.chroma-e)<.4)break;let f=Math.abs(d.chroma-e),g=Math.abs(u.chroma-e);f<g&&(u=d),l=Math.max(l,d.chroma);}}return i}var ka=class{primaryPaletteKeyColor(){return T.fromPalette({name:"primary_palette_key_color",palette:e=>e.primaryPalette,tone:e=>e.primaryPalette.keyColor.tone})}secondaryPaletteKeyColor(){return T.fromPalette({name:"secondary_palette_key_color",palette:e=>e.secondaryPalette,tone:e=>e.secondaryPalette.keyColor.tone})}tertiaryPaletteKeyColor(){return T.fromPalette({name:"tertiary_palette_key_color",palette:e=>e.tertiaryPalette,tone:e=>e.tertiaryPalette.keyColor.tone})}neutralPaletteKeyColor(){return T.fromPalette({name:"neutral_palette_key_color",palette:e=>e.neutralPalette,tone:e=>e.neutralPalette.keyColor.tone})}neutralVariantPaletteKeyColor(){return T.fromPalette({name:"neutral_variant_palette_key_color",palette:e=>e.neutralVariantPalette,tone:e=>e.neutralVariantPalette.keyColor.tone})}errorPaletteKeyColor(){return T.fromPalette({name:"error_palette_key_color",palette:e=>e.errorPalette,tone:e=>e.errorPalette.keyColor.tone})}background(){return T.fromPalette({name:"background",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:true})}onBackground(){return T.fromPalette({name:"on_background",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>this.background(),contrastCurve:e=>new Z(3,3,4.5,7)})}surface(){return T.fromPalette({name:"surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:98,isBackground:true})}surfaceDim(){return T.fromPalette({name:"surface_dim",palette:e=>e.neutralPalette,tone:e=>e.isDark?6:new Z(87,87,80,75).get(e.contrastLevel),isBackground:true})}surfaceBright(){return T.fromPalette({name:"surface_bright",palette:e=>e.neutralPalette,tone:e=>e.isDark?new Z(24,24,29,34).get(e.contrastLevel):98,isBackground:true})}surfaceContainerLowest(){return T.fromPalette({name:"surface_container_lowest",palette:e=>e.neutralPalette,tone:e=>e.isDark?new Z(4,4,2,0).get(e.contrastLevel):100,isBackground:true})}surfaceContainerLow(){return T.fromPalette({name:"surface_container_low",palette:e=>e.neutralPalette,tone:e=>e.isDark?new Z(10,10,11,12).get(e.contrastLevel):new Z(96,96,96,95).get(e.contrastLevel),isBackground:true})}surfaceContainer(){return T.fromPalette({name:"surface_container",palette:e=>e.neutralPalette,tone:e=>e.isDark?new Z(12,12,16,20).get(e.contrastLevel):new Z(94,94,92,90).get(e.contrastLevel),isBackground:true})}surfaceContainerHigh(){return T.fromPalette({name:"surface_container_high",palette:e=>e.neutralPalette,tone:e=>e.isDark?new Z(17,17,21,25).get(e.contrastLevel):new Z(92,92,88,85).get(e.contrastLevel),isBackground:true})}surfaceContainerHighest(){return T.fromPalette({name:"surface_container_highest",palette:e=>e.neutralPalette,tone:e=>e.isDark?new Z(22,22,26,30).get(e.contrastLevel):new Z(90,90,84,80).get(e.contrastLevel),isBackground:true})}onSurface(){return T.fromPalette({name:"on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:10,background:e=>this.highestSurface(e),contrastCurve:e=>new Z(4.5,7,11,21)})}surfaceVariant(){return T.fromPalette({name:"surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:90,isBackground:true})}onSurfaceVariant(){return T.fromPalette({name:"on_surface_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?80:30,background:e=>this.highestSurface(e),contrastCurve:e=>new Z(3,4.5,7,11)})}inverseSurface(){return T.fromPalette({name:"inverse_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?90:20,isBackground:true})}inverseOnSurface(){return T.fromPalette({name:"inverse_on_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?20:95,background:e=>this.inverseSurface(),contrastCurve:e=>new Z(4.5,7,11,21)})}outline(){return T.fromPalette({name:"outline",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?60:50,background:e=>this.highestSurface(e),contrastCurve:e=>new Z(1.5,3,4.5,7)})}outlineVariant(){return T.fromPalette({name:"outline_variant",palette:e=>e.neutralVariantPalette,tone:e=>e.isDark?30:80,background:e=>this.highestSurface(e),contrastCurve:e=>new Z(1,1,3,4.5)})}shadow(){return T.fromPalette({name:"shadow",palette:e=>e.neutralPalette,tone:e=>0})}scrim(){return T.fromPalette({name:"scrim",palette:e=>e.neutralPalette,tone:e=>0})}surfaceTint(){return T.fromPalette({name:"surface_tint",palette:e=>e.primaryPalette,tone:e=>e.isDark?80:40,isBackground:true})}primary(){return T.fromPalette({name:"primary",palette:e=>e.primaryPalette,tone:e=>Re(e)?e.isDark?100:0:e.isDark?80:40,isBackground:true,background:e=>this.highestSurface(e),contrastCurve:e=>new Z(3,4.5,7,7),toneDeltaPair:e=>new Ce(this.primaryContainer(),this.primary(),10,"nearer",false)})}primaryDim(){}onPrimary(){return T.fromPalette({name:"on_primary",palette:e=>e.primaryPalette,tone:e=>Re(e)?e.isDark?10:90:e.isDark?20:100,background:e=>this.primary(),contrastCurve:e=>new Z(4.5,7,11,21)})}primaryContainer(){return T.fromPalette({name:"primary_container",palette:e=>e.primaryPalette,tone:e=>Sr(e)?e.sourceColorHct.tone:Re(e)?e.isDark?85:25:e.isDark?30:90,isBackground:true,background:e=>this.highestSurface(e),contrastCurve:e=>new Z(1,1,3,4.5),toneDeltaPair:e=>new Ce(this.primaryContainer(),this.primary(),10,"nearer",false)})}onPrimaryContainer(){return T.fromPalette({name:"on_primary_container",palette:e=>e.primaryPalette,tone:e=>Sr(e)?T.foregroundTone(this.primaryContainer().tone(e),4.5):Re(e)?e.isDark?0:100:e.isDark?90:30,background:e=>this.primaryContainer(),contrastCurve:e=>new Z(3,4.5,7,11)})}inversePrimary(){return T.fromPalette({name:"inverse_primary",palette:e=>e.primaryPalette,tone:e=>e.isDark?40:80,background:e=>this.inverseSurface(),contrastCurve:e=>new Z(3,4.5,7,7)})}secondary(){return T.fromPalette({name:"secondary",palette:e=>e.secondaryPalette,tone:e=>e.isDark?80:40,isBackground:true,background:e=>this.highestSurface(e),contrastCurve:e=>new Z(3,4.5,7,7),toneDeltaPair:e=>new Ce(this.secondaryContainer(),this.secondary(),10,"nearer",false)})}secondaryDim(){}onSecondary(){return T.fromPalette({name:"on_secondary",palette:e=>e.secondaryPalette,tone:e=>Re(e)?e.isDark?10:100:e.isDark?20:100,background:e=>this.secondary(),contrastCurve:e=>new Z(4.5,7,11,21)})}secondaryContainer(){return T.fromPalette({name:"secondary_container",palette:e=>e.secondaryPalette,tone:e=>{let r=e.isDark?30:90;return Re(e)?e.isDark?30:85:Sr(e)?Cu(e.secondaryPalette.hue,e.secondaryPalette.chroma,r,!e.isDark):r},isBackground:true,background:e=>this.highestSurface(e),contrastCurve:e=>new Z(1,1,3,4.5),toneDeltaPair:e=>new Ce(this.secondaryContainer(),this.secondary(),10,"nearer",false)})}onSecondaryContainer(){return T.fromPalette({name:"on_secondary_container",palette:e=>e.secondaryPalette,tone:e=>Re(e)?e.isDark?90:10:Sr(e)?T.foregroundTone(this.secondaryContainer().tone(e),4.5):e.isDark?90:30,background:e=>this.secondaryContainer(),contrastCurve:e=>new Z(3,4.5,7,11)})}tertiary(){return T.fromPalette({name:"tertiary",palette:e=>e.tertiaryPalette,tone:e=>Re(e)?e.isDark?90:25:e.isDark?80:40,isBackground:true,background:e=>this.highestSurface(e),contrastCurve:e=>new Z(3,4.5,7,7),toneDeltaPair:e=>new Ce(this.tertiaryContainer(),this.tertiary(),10,"nearer",false)})}tertiaryDim(){}onTertiary(){return T.fromPalette({name:"on_tertiary",palette:e=>e.tertiaryPalette,tone:e=>Re(e)?e.isDark?10:90:e.isDark?20:100,background:e=>this.tertiary(),contrastCurve:e=>new Z(4.5,7,11,21)})}tertiaryContainer(){return T.fromPalette({name:"tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>{if(Re(e))return e.isDark?60:49;if(!Sr(e))return e.isDark?30:90;let r=e.tertiaryPalette.getHct(e.sourceColorHct.tone);return ur.fixIfDisliked(r).tone},isBackground:true,background:e=>this.highestSurface(e),contrastCurve:e=>new Z(1,1,3,4.5),toneDeltaPair:e=>new Ce(this.tertiaryContainer(),this.tertiary(),10,"nearer",false)})}onTertiaryContainer(){return T.fromPalette({name:"on_tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>Re(e)?e.isDark?0:100:Sr(e)?T.foregroundTone(this.tertiaryContainer().tone(e),4.5):e.isDark?90:30,background:e=>this.tertiaryContainer(),contrastCurve:e=>new Z(3,4.5,7,11)})}error(){return T.fromPalette({name:"error",palette:e=>e.errorPalette,tone:e=>e.isDark?80:40,isBackground:true,background:e=>this.highestSurface(e),contrastCurve:e=>new Z(3,4.5,7,7),toneDeltaPair:e=>new Ce(this.errorContainer(),this.error(),10,"nearer",false)})}errorDim(){}onError(){return T.fromPalette({name:"on_error",palette:e=>e.errorPalette,tone:e=>e.isDark?20:100,background:e=>this.error(),contrastCurve:e=>new Z(4.5,7,11,21)})}errorContainer(){return T.fromPalette({name:"error_container",palette:e=>e.errorPalette,tone:e=>e.isDark?30:90,isBackground:true,background:e=>this.highestSurface(e),contrastCurve:e=>new Z(1,1,3,4.5),toneDeltaPair:e=>new Ce(this.errorContainer(),this.error(),10,"nearer",false)})}onErrorContainer(){return T.fromPalette({name:"on_error_container",palette:e=>e.errorPalette,tone:e=>Re(e)?e.isDark?90:10:e.isDark?90:30,background:e=>this.errorContainer(),contrastCurve:e=>new Z(3,4.5,7,11)})}primaryFixed(){return T.fromPalette({name:"primary_fixed",palette:e=>e.primaryPalette,tone:e=>Re(e)?40:90,isBackground:true,background:e=>this.highestSurface(e),contrastCurve:e=>new Z(1,1,3,4.5),toneDeltaPair:e=>new Ce(this.primaryFixed(),this.primaryFixedDim(),10,"lighter",true)})}primaryFixedDim(){return T.fromPalette({name:"primary_fixed_dim",palette:e=>e.primaryPalette,tone:e=>Re(e)?30:80,isBackground:true,background:e=>this.highestSurface(e),contrastCurve:e=>new Z(1,1,3,4.5),toneDeltaPair:e=>new Ce(this.primaryFixed(),this.primaryFixedDim(),10,"lighter",true)})}onPrimaryFixed(){return T.fromPalette({name:"on_primary_fixed",palette:e=>e.primaryPalette,tone:e=>Re(e)?100:10,background:e=>this.primaryFixedDim(),secondBackground:e=>this.primaryFixed(),contrastCurve:e=>new Z(4.5,7,11,21)})}onPrimaryFixedVariant(){return T.fromPalette({name:"on_primary_fixed_variant",palette:e=>e.primaryPalette,tone:e=>Re(e)?90:30,background:e=>this.primaryFixedDim(),secondBackground:e=>this.primaryFixed(),contrastCurve:e=>new Z(3,4.5,7,11)})}secondaryFixed(){return T.fromPalette({name:"secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>Re(e)?80:90,isBackground:true,background:e=>this.highestSurface(e),contrastCurve:e=>new Z(1,1,3,4.5),toneDeltaPair:e=>new Ce(this.secondaryFixed(),this.secondaryFixedDim(),10,"lighter",true)})}secondaryFixedDim(){return T.fromPalette({name:"secondary_fixed_dim",palette:e=>e.secondaryPalette,tone:e=>Re(e)?70:80,isBackground:true,background:e=>this.highestSurface(e),contrastCurve:e=>new Z(1,1,3,4.5),toneDeltaPair:e=>new Ce(this.secondaryFixed(),this.secondaryFixedDim(),10,"lighter",true)})}onSecondaryFixed(){return T.fromPalette({name:"on_secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>10,background:e=>this.secondaryFixedDim(),secondBackground:e=>this.secondaryFixed(),contrastCurve:e=>new Z(4.5,7,11,21)})}onSecondaryFixedVariant(){return T.fromPalette({name:"on_secondary_fixed_variant",palette:e=>e.secondaryPalette,tone:e=>Re(e)?25:30,background:e=>this.secondaryFixedDim(),secondBackground:e=>this.secondaryFixed(),contrastCurve:e=>new Z(3,4.5,7,11)})}tertiaryFixed(){return T.fromPalette({name:"tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>Re(e)?40:90,isBackground:true,background:e=>this.highestSurface(e),contrastCurve:e=>new Z(1,1,3,4.5),toneDeltaPair:e=>new Ce(this.tertiaryFixed(),this.tertiaryFixedDim(),10,"lighter",true)})}tertiaryFixedDim(){return T.fromPalette({name:"tertiary_fixed_dim",palette:e=>e.tertiaryPalette,tone:e=>Re(e)?30:80,isBackground:true,background:e=>this.highestSurface(e),contrastCurve:e=>new Z(1,1,3,4.5),toneDeltaPair:e=>new Ce(this.tertiaryFixed(),this.tertiaryFixedDim(),10,"lighter",true)})}onTertiaryFixed(){return T.fromPalette({name:"on_tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>Re(e)?100:10,background:e=>this.tertiaryFixedDim(),secondBackground:e=>this.tertiaryFixed(),contrastCurve:e=>new Z(4.5,7,11,21)})}onTertiaryFixedVariant(){return T.fromPalette({name:"on_tertiary_fixed_variant",palette:e=>e.tertiaryPalette,tone:e=>Re(e)?90:30,background:e=>this.tertiaryFixedDim(),secondBackground:e=>this.tertiaryFixed(),contrastCurve:e=>new Z(3,4.5,7,11)})}highestSurface(e){return e.isDark?this.surfaceBright():this.surfaceDim()}};function ge(t,e=0,r=100,o=1){let i=Bo(t.hue,t.chroma*o,100,true);return Ue(e,r,i)}function Kt(t,e=0,r=100){let o=Bo(t.hue,t.chroma,0,false);return Ue(e,r,o)}function Bo(t,e,r,o){let i=r,u=J.from(t,e,i);for(;u.chroma<e&&!(r<0||r>100);){r+=o?-1:1;let l=J.from(t,e,r);u.chroma<l.chroma&&(u=l,i=r);}return i}function re(t){return t===1.5?new Z(1.5,1.5,3,5.5):t===3?new Z(3,3,4.5,7):t===4.5?new Z(4.5,4.5,7,11):t===6?new Z(6,6,7,11):t===7?new Z(7,7,11,21):t===9?new Z(9,9,11,21):t===11?new Z(11,11,21,21):t===21?new Z(21,21,21,21):new Z(t,t,7,21)}var Sa=class extends ka{surface(){let e=T.fromPalette({name:"surface",palette:r=>r.neutralPalette,tone:r=>(super.surface().tone(r),r.platform==="phone"?r.isDark?4:J.isYellow(r.neutralPalette.hue)?99:r.variant===C.VIBRANT?97:98:0),isBackground:true});return oe(super.surface(),"2025",e)}surfaceDim(){let e=T.fromPalette({name:"surface_dim",palette:r=>r.neutralPalette,tone:r=>r.isDark?4:J.isYellow(r.neutralPalette.hue)?90:r.variant===C.VIBRANT?85:87,isBackground:true,chromaMultiplier:r=>{if(!r.isDark){if(r.variant===C.NEUTRAL)return 2.5;if(r.variant===C.TONAL_SPOT)return 1.7;if(r.variant===C.EXPRESSIVE)return J.isYellow(r.neutralPalette.hue)?2.7:1.75;if(r.variant===C.VIBRANT)return 1.36}return 1}});return oe(super.surfaceDim(),"2025",e)}surfaceBright(){let e=T.fromPalette({name:"surface_bright",palette:r=>r.neutralPalette,tone:r=>r.isDark?18:J.isYellow(r.neutralPalette.hue)?99:r.variant===C.VIBRANT?97:98,isBackground:true,chromaMultiplier:r=>{if(r.isDark){if(r.variant===C.NEUTRAL)return 2.5;if(r.variant===C.TONAL_SPOT)return 1.7;if(r.variant===C.EXPRESSIVE)return J.isYellow(r.neutralPalette.hue)?2.7:1.75;if(r.variant===C.VIBRANT)return 1.36}return 1}});return oe(super.surfaceBright(),"2025",e)}surfaceContainerLowest(){let e=T.fromPalette({name:"surface_container_lowest",palette:r=>r.neutralPalette,tone:r=>r.isDark?0:100,isBackground:true});return oe(super.surfaceContainerLowest(),"2025",e)}surfaceContainerLow(){let e=T.fromPalette({name:"surface_container_low",palette:r=>r.neutralPalette,tone:r=>r.platform==="phone"?r.isDark?6:J.isYellow(r.neutralPalette.hue)?98:r.variant===C.VIBRANT?95:96:15,isBackground:true,chromaMultiplier:r=>{if(r.platform==="phone"){if(r.variant===C.NEUTRAL)return 1.3;if(r.variant===C.TONAL_SPOT)return 1.25;if(r.variant===C.EXPRESSIVE)return J.isYellow(r.neutralPalette.hue)?1.3:1.15;if(r.variant===C.VIBRANT)return 1.08}return 1}});return oe(super.surfaceContainerLow(),"2025",e)}surfaceContainer(){let e=T.fromPalette({name:"surface_container",palette:r=>r.neutralPalette,tone:r=>r.platform==="phone"?r.isDark?9:J.isYellow(r.neutralPalette.hue)?96:r.variant===C.VIBRANT?92:94:20,isBackground:true,chromaMultiplier:r=>{if(r.platform==="phone"){if(r.variant===C.NEUTRAL)return 1.6;if(r.variant===C.TONAL_SPOT)return 1.4;if(r.variant===C.EXPRESSIVE)return J.isYellow(r.neutralPalette.hue)?1.6:1.3;if(r.variant===C.VIBRANT)return 1.15}return 1}});return oe(super.surfaceContainer(),"2025",e)}surfaceContainerHigh(){let e=T.fromPalette({name:"surface_container_high",palette:r=>r.neutralPalette,tone:r=>r.platform==="phone"?r.isDark?12:J.isYellow(r.neutralPalette.hue)?94:r.variant===C.VIBRANT?90:92:25,isBackground:true,chromaMultiplier:r=>{if(r.platform==="phone"){if(r.variant===C.NEUTRAL)return 1.9;if(r.variant===C.TONAL_SPOT)return 1.5;if(r.variant===C.EXPRESSIVE)return J.isYellow(r.neutralPalette.hue)?1.95:1.45;if(r.variant===C.VIBRANT)return 1.22}return 1}});return oe(super.surfaceContainerHigh(),"2025",e)}surfaceContainerHighest(){let e=T.fromPalette({name:"surface_container_highest",palette:r=>r.neutralPalette,tone:r=>r.isDark?15:J.isYellow(r.neutralPalette.hue)?92:r.variant===C.VIBRANT?88:90,isBackground:true,chromaMultiplier:r=>r.variant===C.NEUTRAL?2.2:r.variant===C.TONAL_SPOT?1.7:r.variant===C.EXPRESSIVE?J.isYellow(r.neutralPalette.hue)?2.3:1.6:r.variant===C.VIBRANT?1.29:1});return oe(super.surfaceContainerHighest(),"2025",e)}onSurface(){let e=T.fromPalette({name:"on_surface",palette:r=>r.neutralPalette,tone:r=>r.variant===C.VIBRANT?ge(r.neutralPalette,0,100,1.1):T.getInitialToneFromBackground(o=>o.platform==="phone"?this.highestSurface(o):this.surfaceContainerHigh())(r),chromaMultiplier:r=>{if(r.platform==="phone"){if(r.variant===C.NEUTRAL)return 2.2;if(r.variant===C.TONAL_SPOT)return 1.7;if(r.variant===C.EXPRESSIVE)return J.isYellow(r.neutralPalette.hue)?r.isDark?3:2.3:1.6}return 1},background:r=>r.platform==="phone"?this.highestSurface(r):this.surfaceContainerHigh(),contrastCurve:r=>r.isDark&&r.platform==="phone"?re(11):re(9)});return oe(super.onSurface(),"2025",e)}onSurfaceVariant(){let e=T.fromPalette({name:"on_surface_variant",palette:r=>r.neutralPalette,chromaMultiplier:r=>{if(r.platform==="phone"){if(r.variant===C.NEUTRAL)return 2.2;if(r.variant===C.TONAL_SPOT)return 1.7;if(r.variant===C.EXPRESSIVE)return J.isYellow(r.neutralPalette.hue)?r.isDark?3:2.3:1.6}return 1},background:r=>r.platform==="phone"?this.highestSurface(r):this.surfaceContainerHigh(),contrastCurve:r=>r.platform==="phone"?r.isDark?re(6):re(4.5):re(7)});return oe(super.onSurfaceVariant(),"2025",e)}outline(){let e=T.fromPalette({name:"outline",palette:r=>r.neutralPalette,chromaMultiplier:r=>{if(r.platform==="phone"){if(r.variant===C.NEUTRAL)return 2.2;if(r.variant===C.TONAL_SPOT)return 1.7;if(r.variant===C.EXPRESSIVE)return J.isYellow(r.neutralPalette.hue)?r.isDark?3:2.3:1.6}return 1},background:r=>r.platform==="phone"?this.highestSurface(r):this.surfaceContainerHigh(),contrastCurve:r=>r.platform==="phone"?re(3):re(4.5)});return oe(super.outline(),"2025",e)}outlineVariant(){let e=T.fromPalette({name:"outline_variant",palette:r=>r.neutralPalette,chromaMultiplier:r=>{if(r.platform==="phone"){if(r.variant===C.NEUTRAL)return 2.2;if(r.variant===C.TONAL_SPOT)return 1.7;if(r.variant===C.EXPRESSIVE)return J.isYellow(r.neutralPalette.hue)?r.isDark?3:2.3:1.6}return 1},background:r=>r.platform==="phone"?this.highestSurface(r):this.surfaceContainerHigh(),contrastCurve:r=>r.platform==="phone"?re(1.5):re(3)});return oe(super.outlineVariant(),"2025",e)}inverseSurface(){let e=T.fromPalette({name:"inverse_surface",palette:r=>r.neutralPalette,tone:r=>r.isDark?98:4,isBackground:true});return oe(super.inverseSurface(),"2025",e)}inverseOnSurface(){let e=T.fromPalette({name:"inverse_on_surface",palette:r=>r.neutralPalette,background:r=>this.inverseSurface(),contrastCurve:r=>re(7)});return oe(super.inverseOnSurface(),"2025",e)}primary(){let e=T.fromPalette({name:"primary",palette:r=>r.primaryPalette,tone:r=>r.variant===C.NEUTRAL?r.platform==="phone"?r.isDark?80:40:90:r.variant===C.TONAL_SPOT?r.platform==="phone"?r.isDark?80:ge(r.primaryPalette):ge(r.primaryPalette,0,90):r.variant===C.EXPRESSIVE?r.platform==="phone"?ge(r.primaryPalette,0,J.isYellow(r.primaryPalette.hue)?25:J.isCyan(r.primaryPalette.hue)?88:98):ge(r.primaryPalette):r.platform==="phone"?ge(r.primaryPalette,0,J.isCyan(r.primaryPalette.hue)?88:98):ge(r.primaryPalette),isBackground:true,background:r=>r.platform==="phone"?this.highestSurface(r):this.surfaceContainerHigh(),contrastCurve:r=>r.platform==="phone"?re(4.5):re(7),toneDeltaPair:r=>r.platform==="phone"?new Ce(this.primaryContainer(),this.primary(),5,"relative_lighter",true,"farther"):void 0});return oe(super.primary(),"2025",e)}primaryDim(){return T.fromPalette({name:"primary_dim",palette:e=>e.primaryPalette,tone:e=>e.variant===C.NEUTRAL?85:e.variant===C.TONAL_SPOT?ge(e.primaryPalette,0,90):ge(e.primaryPalette),isBackground:true,background:e=>this.surfaceContainerHigh(),contrastCurve:e=>re(4.5),toneDeltaPair:e=>new Ce(this.primaryDim(),this.primary(),5,"darker",true,"farther")})}onPrimary(){let e=T.fromPalette({name:"on_primary",palette:r=>r.primaryPalette,background:r=>r.platform==="phone"?this.primary():this.primaryDim(),contrastCurve:r=>r.platform==="phone"?re(6):re(7)});return oe(super.onPrimary(),"2025",e)}primaryContainer(){let e=T.fromPalette({name:"primary_container",palette:r=>r.primaryPalette,tone:r=>r.platform==="watch"?30:r.variant===C.NEUTRAL?r.isDark?30:90:r.variant===C.TONAL_SPOT?r.isDark?Kt(r.primaryPalette,35,93):ge(r.primaryPalette,0,90):r.variant===C.EXPRESSIVE?r.isDark?ge(r.primaryPalette,30,93):ge(r.primaryPalette,78,J.isCyan(r.primaryPalette.hue)?88:90):r.isDark?Kt(r.primaryPalette,66,93):ge(r.primaryPalette,66,J.isCyan(r.primaryPalette.hue)?88:93),isBackground:true,background:r=>r.platform==="phone"?this.highestSurface(r):void 0,toneDeltaPair:r=>r.platform==="phone"?void 0:new Ce(this.primaryContainer(),this.primaryDim(),10,"darker",true,"farther"),contrastCurve:r=>r.platform==="phone"&&r.contrastLevel>0?re(1.5):void 0});return oe(super.primaryContainer(),"2025",e)}onPrimaryContainer(){let e=T.fromPalette({name:"on_primary_container",palette:r=>r.primaryPalette,background:r=>this.primaryContainer(),contrastCurve:r=>r.platform==="phone"?re(6):re(7)});return oe(super.onPrimaryContainer(),"2025",e)}primaryFixed(){let e=T.fromPalette({name:"primary_fixed",palette:r=>r.primaryPalette,tone:r=>{let o=Object.assign({},r,{isDark:false,contrastLevel:0});return this.primaryContainer().getTone(o)},isBackground:true,background:r=>r.platform==="phone"?this.highestSurface(r):void 0,contrastCurve:r=>r.platform==="phone"&&r.contrastLevel>0?re(1.5):void 0});return oe(super.primaryFixed(),"2025",e)}primaryFixedDim(){let e=T.fromPalette({name:"primary_fixed_dim",palette:r=>r.primaryPalette,tone:r=>this.primaryFixed().getTone(r),isBackground:true,toneDeltaPair:r=>new Ce(this.primaryFixedDim(),this.primaryFixed(),5,"darker",true,"exact")});return oe(super.primaryFixedDim(),"2025",e)}onPrimaryFixed(){let e=T.fromPalette({name:"on_primary_fixed",palette:r=>r.primaryPalette,background:r=>this.primaryFixedDim(),contrastCurve:r=>re(7)});return oe(super.onPrimaryFixed(),"2025",e)}onPrimaryFixedVariant(){let e=T.fromPalette({name:"on_primary_fixed_variant",palette:r=>r.primaryPalette,background:r=>this.primaryFixedDim(),contrastCurve:r=>re(4.5)});return oe(super.onPrimaryFixedVariant(),"2025",e)}inversePrimary(){let e=T.fromPalette({name:"inverse_primary",palette:r=>r.primaryPalette,tone:r=>ge(r.primaryPalette),background:r=>this.inverseSurface(),contrastCurve:r=>r.platform==="phone"?re(6):re(7)});return oe(super.inversePrimary(),"2025",e)}secondary(){let e=T.fromPalette({name:"secondary",palette:r=>r.secondaryPalette,tone:r=>r.platform==="watch"?r.variant===C.NEUTRAL?90:ge(r.secondaryPalette,0,90):r.variant===C.NEUTRAL?r.isDark?Kt(r.secondaryPalette,0,98):ge(r.secondaryPalette):r.variant===C.VIBRANT?ge(r.secondaryPalette,0,r.isDark?90:98):r.isDark?80:ge(r.secondaryPalette),isBackground:true,background:r=>r.platform==="phone"?this.highestSurface(r):this.surfaceContainerHigh(),contrastCurve:r=>r.platform==="phone"?re(4.5):re(7),toneDeltaPair:r=>r.platform==="phone"?new Ce(this.secondaryContainer(),this.secondary(),5,"relative_lighter",true,"farther"):void 0});return oe(super.secondary(),"2025",e)}secondaryDim(){return T.fromPalette({name:"secondary_dim",palette:e=>e.secondaryPalette,tone:e=>e.variant===C.NEUTRAL?85:ge(e.secondaryPalette,0,90),isBackground:true,background:e=>this.surfaceContainerHigh(),contrastCurve:e=>re(4.5),toneDeltaPair:e=>new Ce(this.secondaryDim(),this.secondary(),5,"darker",true,"farther")})}onSecondary(){let e=T.fromPalette({name:"on_secondary",palette:r=>r.secondaryPalette,background:r=>r.platform==="phone"?this.secondary():this.secondaryDim(),contrastCurve:r=>r.platform==="phone"?re(6):re(7)});return oe(super.onSecondary(),"2025",e)}secondaryContainer(){let e=T.fromPalette({name:"secondary_container",palette:r=>r.secondaryPalette,tone:r=>r.platform==="watch"?30:r.variant===C.VIBRANT?r.isDark?Kt(r.secondaryPalette,30,40):ge(r.secondaryPalette,84,90):r.variant===C.EXPRESSIVE?r.isDark?15:ge(r.secondaryPalette,90,95):r.isDark?25:90,isBackground:true,background:r=>r.platform==="phone"?this.highestSurface(r):void 0,toneDeltaPair:r=>r.platform==="watch"?new Ce(this.secondaryContainer(),this.secondaryDim(),10,"darker",true,"farther"):void 0,contrastCurve:r=>r.platform==="phone"&&r.contrastLevel>0?re(1.5):void 0});return oe(super.secondaryContainer(),"2025",e)}onSecondaryContainer(){let e=T.fromPalette({name:"on_secondary_container",palette:r=>r.secondaryPalette,background:r=>this.secondaryContainer(),contrastCurve:r=>r.platform==="phone"?re(6):re(7)});return oe(super.onSecondaryContainer(),"2025",e)}secondaryFixed(){let e=T.fromPalette({name:"secondary_fixed",palette:r=>r.secondaryPalette,tone:r=>{let o=Object.assign({},r,{isDark:false,contrastLevel:0});return this.secondaryContainer().getTone(o)},isBackground:true,background:r=>r.platform==="phone"?this.highestSurface(r):void 0,contrastCurve:r=>r.platform==="phone"&&r.contrastLevel>0?re(1.5):void 0});return oe(super.secondaryFixed(),"2025",e)}secondaryFixedDim(){let e=T.fromPalette({name:"secondary_fixed_dim",palette:r=>r.secondaryPalette,tone:r=>this.secondaryFixed().getTone(r),isBackground:true,toneDeltaPair:r=>new Ce(this.secondaryFixedDim(),this.secondaryFixed(),5,"darker",true,"exact")});return oe(super.secondaryFixedDim(),"2025",e)}onSecondaryFixed(){let e=T.fromPalette({name:"on_secondary_fixed",palette:r=>r.secondaryPalette,background:r=>this.secondaryFixedDim(),contrastCurve:r=>re(7)});return oe(super.onSecondaryFixed(),"2025",e)}onSecondaryFixedVariant(){let e=T.fromPalette({name:"on_secondary_fixed_variant",palette:r=>r.secondaryPalette,background:r=>this.secondaryFixedDim(),contrastCurve:r=>re(4.5)});return oe(super.onSecondaryFixedVariant(),"2025",e)}tertiary(){let e=T.fromPalette({name:"tertiary",palette:r=>r.tertiaryPalette,tone:r=>r.platform==="watch"?r.variant===C.TONAL_SPOT?ge(r.tertiaryPalette,0,90):ge(r.tertiaryPalette):r.variant===C.EXPRESSIVE||r.variant===C.VIBRANT?ge(r.tertiaryPalette,0,J.isCyan(r.tertiaryPalette.hue)?88:r.isDark?98:100):r.isDark?ge(r.tertiaryPalette,0,98):ge(r.tertiaryPalette),isBackground:true,background:r=>r.platform==="phone"?this.highestSurface(r):this.surfaceContainerHigh(),contrastCurve:r=>r.platform==="phone"?re(4.5):re(7),toneDeltaPair:r=>r.platform==="phone"?new Ce(this.tertiaryContainer(),this.tertiary(),5,"relative_lighter",true,"farther"):void 0});return oe(super.tertiary(),"2025",e)}tertiaryDim(){return T.fromPalette({name:"tertiary_dim",palette:e=>e.tertiaryPalette,tone:e=>e.variant===C.TONAL_SPOT?ge(e.tertiaryPalette,0,90):ge(e.tertiaryPalette),isBackground:true,background:e=>this.surfaceContainerHigh(),contrastCurve:e=>re(4.5),toneDeltaPair:e=>new Ce(this.tertiaryDim(),this.tertiary(),5,"darker",true,"farther")})}onTertiary(){let e=T.fromPalette({name:"on_tertiary",palette:r=>r.tertiaryPalette,background:r=>r.platform==="phone"?this.tertiary():this.tertiaryDim(),contrastCurve:r=>r.platform==="phone"?re(6):re(7)});return oe(super.onTertiary(),"2025",e)}tertiaryContainer(){let e=T.fromPalette({name:"tertiary_container",palette:r=>r.tertiaryPalette,tone:r=>r.platform==="watch"?r.variant===C.TONAL_SPOT?ge(r.tertiaryPalette,0,90):ge(r.tertiaryPalette):r.variant===C.NEUTRAL?r.isDark?ge(r.tertiaryPalette,0,93):ge(r.tertiaryPalette,0,96):r.variant===C.TONAL_SPOT?ge(r.tertiaryPalette,0,r.isDark?93:100):r.variant===C.EXPRESSIVE?ge(r.tertiaryPalette,75,J.isCyan(r.tertiaryPalette.hue)?88:r.isDark?93:100):r.isDark?ge(r.tertiaryPalette,0,93):ge(r.tertiaryPalette,72,100),isBackground:true,background:r=>r.platform==="phone"?this.highestSurface(r):void 0,toneDeltaPair:r=>r.platform==="watch"?new Ce(this.tertiaryContainer(),this.tertiaryDim(),10,"darker",true,"farther"):void 0,contrastCurve:r=>r.platform==="phone"&&r.contrastLevel>0?re(1.5):void 0});return oe(super.tertiaryContainer(),"2025",e)}onTertiaryContainer(){let e=T.fromPalette({name:"on_tertiary_container",palette:r=>r.tertiaryPalette,background:r=>this.tertiaryContainer(),contrastCurve:r=>r.platform==="phone"?re(6):re(7)});return oe(super.onTertiaryContainer(),"2025",e)}tertiaryFixed(){let e=T.fromPalette({name:"tertiary_fixed",palette:r=>r.tertiaryPalette,tone:r=>{let o=Object.assign({},r,{isDark:false,contrastLevel:0});return this.tertiaryContainer().getTone(o)},isBackground:true,background:r=>r.platform==="phone"?this.highestSurface(r):void 0,contrastCurve:r=>r.platform==="phone"&&r.contrastLevel>0?re(1.5):void 0});return oe(super.tertiaryFixed(),"2025",e)}tertiaryFixedDim(){let e=T.fromPalette({name:"tertiary_fixed_dim",palette:r=>r.tertiaryPalette,tone:r=>this.tertiaryFixed().getTone(r),isBackground:true,toneDeltaPair:r=>new Ce(this.tertiaryFixedDim(),this.tertiaryFixed(),5,"darker",true,"exact")});return oe(super.tertiaryFixedDim(),"2025",e)}onTertiaryFixed(){let e=T.fromPalette({name:"on_tertiary_fixed",palette:r=>r.tertiaryPalette,background:r=>this.tertiaryFixedDim(),contrastCurve:r=>re(7)});return oe(super.onTertiaryFixed(),"2025",e)}onTertiaryFixedVariant(){let e=T.fromPalette({name:"on_tertiary_fixed_variant",palette:r=>r.tertiaryPalette,background:r=>this.tertiaryFixedDim(),contrastCurve:r=>re(4.5)});return oe(super.onTertiaryFixedVariant(),"2025",e)}error(){let e=T.fromPalette({name:"error",palette:r=>r.errorPalette,tone:r=>r.platform==="phone"?r.isDark?Kt(r.errorPalette,0,98):ge(r.errorPalette):Kt(r.errorPalette),isBackground:true,background:r=>r.platform==="phone"?this.highestSurface(r):this.surfaceContainerHigh(),contrastCurve:r=>r.platform==="phone"?re(4.5):re(7),toneDeltaPair:r=>r.platform==="phone"?new Ce(this.errorContainer(),this.error(),5,"relative_lighter",true,"farther"):void 0});return oe(super.error(),"2025",e)}errorDim(){return T.fromPalette({name:"error_dim",palette:e=>e.errorPalette,tone:e=>Kt(e.errorPalette),isBackground:true,background:e=>this.surfaceContainerHigh(),contrastCurve:e=>re(4.5),toneDeltaPair:e=>new Ce(this.errorDim(),this.error(),5,"darker",true,"farther")})}onError(){let e=T.fromPalette({name:"on_error",palette:r=>r.errorPalette,background:r=>r.platform==="phone"?this.error():this.errorDim(),contrastCurve:r=>r.platform==="phone"?re(6):re(7)});return oe(super.onError(),"2025",e)}errorContainer(){let e=T.fromPalette({name:"error_container",palette:r=>r.errorPalette,tone:r=>r.platform==="watch"?30:r.isDark?Kt(r.errorPalette,30,93):ge(r.errorPalette,0,90),isBackground:true,background:r=>r.platform==="phone"?this.highestSurface(r):void 0,toneDeltaPair:r=>r.platform==="watch"?new Ce(this.errorContainer(),this.errorDim(),10,"darker",true,"farther"):void 0,contrastCurve:r=>r.platform==="phone"&&r.contrastLevel>0?re(1.5):void 0});return oe(super.errorContainer(),"2025",e)}onErrorContainer(){let e=T.fromPalette({name:"on_error_container",palette:r=>r.errorPalette,background:r=>this.errorContainer(),contrastCurve:r=>r.platform==="phone"?re(4.5):re(7)});return oe(super.onErrorContainer(),"2025",e)}surfaceVariant(){let e=Object.assign(this.surfaceContainerHighest().clone(),{name:"surface_variant"});return oe(super.surfaceVariant(),"2025",e)}surfaceTint(){let e=Object.assign(this.primary().clone(),{name:"surface_tint"});return oe(super.surfaceTint(),"2025",e)}background(){let e=Object.assign(this.surface().clone(),{name:"background"});return oe(super.background(),"2025",e)}onBackground(){let e=Object.assign(this.onSurface().clone(),{name:"on_background",tone:r=>r.platform==="watch"?100:this.onSurface().getTone(r)});return oe(super.onBackground(),"2025",e)}};var F=class t{constructor(){this.allColors=[this.background(),this.onBackground(),this.surface(),this.surfaceDim(),this.surfaceBright(),this.surfaceContainerLowest(),this.surfaceContainerLow(),this.surfaceContainer(),this.surfaceContainerHigh(),this.surfaceContainerHighest(),this.onSurface(),this.onSurfaceVariant(),this.outline(),this.outlineVariant(),this.inverseSurface(),this.inverseOnSurface(),this.primary(),this.primaryDim(),this.onPrimary(),this.primaryContainer(),this.onPrimaryContainer(),this.primaryFixed(),this.primaryFixedDim(),this.onPrimaryFixed(),this.onPrimaryFixedVariant(),this.inversePrimary(),this.secondary(),this.secondaryDim(),this.onSecondary(),this.secondaryContainer(),this.onSecondaryContainer(),this.secondaryFixed(),this.secondaryFixedDim(),this.onSecondaryFixed(),this.onSecondaryFixedVariant(),this.tertiary(),this.tertiaryDim(),this.onTertiary(),this.tertiaryContainer(),this.onTertiaryContainer(),this.tertiaryFixed(),this.tertiaryFixedDim(),this.onTertiaryFixed(),this.onTertiaryFixedVariant(),this.error(),this.errorDim(),this.onError(),this.errorContainer(),this.onErrorContainer()].filter(e=>e!==void 0);}highestSurface(e){return t.colorSpec.highestSurface(e)}primaryPaletteKeyColor(){return t.colorSpec.primaryPaletteKeyColor()}secondaryPaletteKeyColor(){return t.colorSpec.secondaryPaletteKeyColor()}tertiaryPaletteKeyColor(){return t.colorSpec.tertiaryPaletteKeyColor()}neutralPaletteKeyColor(){return t.colorSpec.neutralPaletteKeyColor()}neutralVariantPaletteKeyColor(){return t.colorSpec.neutralVariantPaletteKeyColor()}errorPaletteKeyColor(){return t.colorSpec.errorPaletteKeyColor()}background(){return t.colorSpec.background()}onBackground(){return t.colorSpec.onBackground()}surface(){return t.colorSpec.surface()}surfaceDim(){return t.colorSpec.surfaceDim()}surfaceBright(){return t.colorSpec.surfaceBright()}surfaceContainerLowest(){return t.colorSpec.surfaceContainerLowest()}surfaceContainerLow(){return t.colorSpec.surfaceContainerLow()}surfaceContainer(){return t.colorSpec.surfaceContainer()}surfaceContainerHigh(){return t.colorSpec.surfaceContainerHigh()}surfaceContainerHighest(){return t.colorSpec.surfaceContainerHighest()}onSurface(){return t.colorSpec.onSurface()}surfaceVariant(){return t.colorSpec.surfaceVariant()}onSurfaceVariant(){return t.colorSpec.onSurfaceVariant()}outline(){return t.colorSpec.outline()}outlineVariant(){return t.colorSpec.outlineVariant()}inverseSurface(){return t.colorSpec.inverseSurface()}inverseOnSurface(){return t.colorSpec.inverseOnSurface()}shadow(){return t.colorSpec.shadow()}scrim(){return t.colorSpec.scrim()}surfaceTint(){return t.colorSpec.surfaceTint()}primary(){return t.colorSpec.primary()}primaryDim(){return t.colorSpec.primaryDim()}onPrimary(){return t.colorSpec.onPrimary()}primaryContainer(){return t.colorSpec.primaryContainer()}onPrimaryContainer(){return t.colorSpec.onPrimaryContainer()}inversePrimary(){return t.colorSpec.inversePrimary()}primaryFixed(){return t.colorSpec.primaryFixed()}primaryFixedDim(){return t.colorSpec.primaryFixedDim()}onPrimaryFixed(){return t.colorSpec.onPrimaryFixed()}onPrimaryFixedVariant(){return t.colorSpec.onPrimaryFixedVariant()}secondary(){return t.colorSpec.secondary()}secondaryDim(){return t.colorSpec.secondaryDim()}onSecondary(){return t.colorSpec.onSecondary()}secondaryContainer(){return t.colorSpec.secondaryContainer()}onSecondaryContainer(){return t.colorSpec.onSecondaryContainer()}secondaryFixed(){return t.colorSpec.secondaryFixed()}secondaryFixedDim(){return t.colorSpec.secondaryFixedDim()}onSecondaryFixed(){return t.colorSpec.onSecondaryFixed()}onSecondaryFixedVariant(){return t.colorSpec.onSecondaryFixedVariant()}tertiary(){return t.colorSpec.tertiary()}tertiaryDim(){return t.colorSpec.tertiaryDim()}onTertiary(){return t.colorSpec.onTertiary()}tertiaryContainer(){return t.colorSpec.tertiaryContainer()}onTertiaryContainer(){return t.colorSpec.onTertiaryContainer()}tertiaryFixed(){return t.colorSpec.tertiaryFixed()}tertiaryFixedDim(){return t.colorSpec.tertiaryFixedDim()}onTertiaryFixed(){return t.colorSpec.onTertiaryFixed()}onTertiaryFixedVariant(){return t.colorSpec.onTertiaryFixedVariant()}error(){return t.colorSpec.error()}errorDim(){return t.colorSpec.errorDim()}onError(){return t.colorSpec.onError()}errorContainer(){return t.colorSpec.errorContainer()}onErrorContainer(){return t.colorSpec.onErrorContainer()}static highestSurface(e){return t.colorSpec.highestSurface(e)}};F.contentAccentToneDelta=15;F.colorSpec=new Sa;F.primaryPaletteKeyColor=F.colorSpec.primaryPaletteKeyColor();F.secondaryPaletteKeyColor=F.colorSpec.secondaryPaletteKeyColor();F.tertiaryPaletteKeyColor=F.colorSpec.tertiaryPaletteKeyColor();F.neutralPaletteKeyColor=F.colorSpec.neutralPaletteKeyColor();F.neutralVariantPaletteKeyColor=F.colorSpec.neutralVariantPaletteKeyColor();F.background=F.colorSpec.background();F.onBackground=F.colorSpec.onBackground();F.surface=F.colorSpec.surface();F.surfaceDim=F.colorSpec.surfaceDim();F.surfaceBright=F.colorSpec.surfaceBright();F.surfaceContainerLowest=F.colorSpec.surfaceContainerLowest();F.surfaceContainerLow=F.colorSpec.surfaceContainerLow();F.surfaceContainer=F.colorSpec.surfaceContainer();F.surfaceContainerHigh=F.colorSpec.surfaceContainerHigh();F.surfaceContainerHighest=F.colorSpec.surfaceContainerHighest();F.onSurface=F.colorSpec.onSurface();F.surfaceVariant=F.colorSpec.surfaceVariant();F.onSurfaceVariant=F.colorSpec.onSurfaceVariant();F.inverseSurface=F.colorSpec.inverseSurface();F.inverseOnSurface=F.colorSpec.inverseOnSurface();F.outline=F.colorSpec.outline();F.outlineVariant=F.colorSpec.outlineVariant();F.shadow=F.colorSpec.shadow();F.scrim=F.colorSpec.scrim();F.surfaceTint=F.colorSpec.surfaceTint();F.primary=F.colorSpec.primary();F.onPrimary=F.colorSpec.onPrimary();F.primaryContainer=F.colorSpec.primaryContainer();F.onPrimaryContainer=F.colorSpec.onPrimaryContainer();F.inversePrimary=F.colorSpec.inversePrimary();F.secondary=F.colorSpec.secondary();F.onSecondary=F.colorSpec.onSecondary();F.secondaryContainer=F.colorSpec.secondaryContainer();F.onSecondaryContainer=F.colorSpec.onSecondaryContainer();F.tertiary=F.colorSpec.tertiary();F.onTertiary=F.colorSpec.onTertiary();F.tertiaryContainer=F.colorSpec.tertiaryContainer();F.onTertiaryContainer=F.colorSpec.onTertiaryContainer();F.error=F.colorSpec.error();F.onError=F.colorSpec.onError();F.errorContainer=F.colorSpec.errorContainer();F.onErrorContainer=F.colorSpec.onErrorContainer();F.primaryFixed=F.colorSpec.primaryFixed();F.primaryFixedDim=F.colorSpec.primaryFixedDim();F.onPrimaryFixed=F.colorSpec.onPrimaryFixed();F.onPrimaryFixedVariant=F.colorSpec.onPrimaryFixedVariant();F.secondaryFixed=F.colorSpec.secondaryFixed();F.secondaryFixedDim=F.colorSpec.secondaryFixedDim();F.onSecondaryFixed=F.colorSpec.onSecondaryFixed();F.onSecondaryFixedVariant=F.colorSpec.onSecondaryFixedVariant();F.tertiaryFixed=F.colorSpec.tertiaryFixed();F.tertiaryFixedDim=F.colorSpec.tertiaryFixedDim();F.onTertiaryFixed=F.colorSpec.onTertiaryFixed();F.onTertiaryFixedVariant=F.colorSpec.onTertiaryFixedVariant();var xe=class t{static maybeFallbackSpecVersion(e,r){switch(r){case C.EXPRESSIVE:case C.VIBRANT:case C.TONAL_SPOT:case C.NEUTRAL:return e;default:return "2021"}}constructor(e){this.sourceColorArgb=e.sourceColorHct.toInt(),this.variant=e.variant,this.contrastLevel=e.contrastLevel,this.isDark=e.isDark,this.platform=e.platform??"phone",this.specVersion=t.maybeFallbackSpecVersion(e.specVersion??"2021",this.variant),this.sourceColorHct=e.sourceColorHct,this.primaryPalette=e.primaryPalette??xr(this.specVersion).getPrimaryPalette(this.variant,e.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.secondaryPalette=e.secondaryPalette??xr(this.specVersion).getSecondaryPalette(this.variant,e.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.tertiaryPalette=e.tertiaryPalette??xr(this.specVersion).getTertiaryPalette(this.variant,e.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.neutralPalette=e.neutralPalette??xr(this.specVersion).getNeutralPalette(this.variant,e.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.neutralVariantPalette=e.neutralVariantPalette??xr(this.specVersion).getNeutralVariantPalette(this.variant,e.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.errorPalette=e.errorPalette??xr(this.specVersion).getErrorPalette(this.variant,e.sourceColorHct,this.isDark,this.platform,this.contrastLevel)??U.fromHueAndChroma(25,84),this.colors=new F;}toString(){return `Scheme: variant=${C[this.variant]}, mode=${this.isDark?"dark":"light"}, platform=${this.platform}, contrastLevel=${this.contrastLevel.toFixed(1)}, seed=${this.sourceColorHct.toString()}, specVersion=${this.specVersion}`}static getPiecewiseHue(e,r,o){let i=Math.min(r.length-1,o.length),u=e.hue;for(let l=0;l<i;l++)if(u>=r[l]&&u<r[l+1])return We(o[l]);return u}static getRotatedHue(e,r,o){let i=t.getPiecewiseHue(e,r,o);return Math.min(r.length-1,o.length)<=0&&(i=0),We(e.hue+i)}getArgb(e){return e.getArgb(this)}getHct(e){return e.getHct(this)}get primaryPaletteKeyColor(){return this.getArgb(this.colors.primaryPaletteKeyColor())}get secondaryPaletteKeyColor(){return this.getArgb(this.colors.secondaryPaletteKeyColor())}get tertiaryPaletteKeyColor(){return this.getArgb(this.colors.tertiaryPaletteKeyColor())}get neutralPaletteKeyColor(){return this.getArgb(this.colors.neutralPaletteKeyColor())}get neutralVariantPaletteKeyColor(){return this.getArgb(this.colors.neutralVariantPaletteKeyColor())}get errorPaletteKeyColor(){return this.getArgb(this.colors.errorPaletteKeyColor())}get background(){return this.getArgb(this.colors.background())}get onBackground(){return this.getArgb(this.colors.onBackground())}get surface(){return this.getArgb(this.colors.surface())}get surfaceDim(){return this.getArgb(this.colors.surfaceDim())}get surfaceBright(){return this.getArgb(this.colors.surfaceBright())}get surfaceContainerLowest(){return this.getArgb(this.colors.surfaceContainerLowest())}get surfaceContainerLow(){return this.getArgb(this.colors.surfaceContainerLow())}get surfaceContainer(){return this.getArgb(this.colors.surfaceContainer())}get surfaceContainerHigh(){return this.getArgb(this.colors.surfaceContainerHigh())}get surfaceContainerHighest(){return this.getArgb(this.colors.surfaceContainerHighest())}get onSurface(){return this.getArgb(this.colors.onSurface())}get surfaceVariant(){return this.getArgb(this.colors.surfaceVariant())}get onSurfaceVariant(){return this.getArgb(this.colors.onSurfaceVariant())}get inverseSurface(){return this.getArgb(this.colors.inverseSurface())}get inverseOnSurface(){return this.getArgb(this.colors.inverseOnSurface())}get outline(){return this.getArgb(this.colors.outline())}get outlineVariant(){return this.getArgb(this.colors.outlineVariant())}get shadow(){return this.getArgb(this.colors.shadow())}get scrim(){return this.getArgb(this.colors.scrim())}get surfaceTint(){return this.getArgb(this.colors.surfaceTint())}get primary(){return this.getArgb(this.colors.primary())}get primaryDim(){let e=this.colors.primaryDim();if(e===void 0)throw new Error("`primaryDim` color is undefined prior to 2025 spec.");return this.getArgb(e)}get onPrimary(){return this.getArgb(this.colors.onPrimary())}get primaryContainer(){return this.getArgb(this.colors.primaryContainer())}get onPrimaryContainer(){return this.getArgb(this.colors.onPrimaryContainer())}get primaryFixed(){return this.getArgb(this.colors.primaryFixed())}get primaryFixedDim(){return this.getArgb(this.colors.primaryFixedDim())}get onPrimaryFixed(){return this.getArgb(this.colors.onPrimaryFixed())}get onPrimaryFixedVariant(){return this.getArgb(this.colors.onPrimaryFixedVariant())}get inversePrimary(){return this.getArgb(this.colors.inversePrimary())}get secondary(){return this.getArgb(this.colors.secondary())}get secondaryDim(){let e=this.colors.secondaryDim();if(e===void 0)throw new Error("`secondaryDim` color is undefined prior to 2025 spec.");return this.getArgb(e)}get onSecondary(){return this.getArgb(this.colors.onSecondary())}get secondaryContainer(){return this.getArgb(this.colors.secondaryContainer())}get onSecondaryContainer(){return this.getArgb(this.colors.onSecondaryContainer())}get secondaryFixed(){return this.getArgb(this.colors.secondaryFixed())}get secondaryFixedDim(){return this.getArgb(this.colors.secondaryFixedDim())}get onSecondaryFixed(){return this.getArgb(this.colors.onSecondaryFixed())}get onSecondaryFixedVariant(){return this.getArgb(this.colors.onSecondaryFixedVariant())}get tertiary(){return this.getArgb(this.colors.tertiary())}get tertiaryDim(){let e=this.colors.tertiaryDim();if(e===void 0)throw new Error("`tertiaryDim` color is undefined prior to 2025 spec.");return this.getArgb(e)}get onTertiary(){return this.getArgb(this.colors.onTertiary())}get tertiaryContainer(){return this.getArgb(this.colors.tertiaryContainer())}get onTertiaryContainer(){return this.getArgb(this.colors.onTertiaryContainer())}get tertiaryFixed(){return this.getArgb(this.colors.tertiaryFixed())}get tertiaryFixedDim(){return this.getArgb(this.colors.tertiaryFixedDim())}get onTertiaryFixed(){return this.getArgb(this.colors.onTertiaryFixed())}get onTertiaryFixedVariant(){return this.getArgb(this.colors.onTertiaryFixedVariant())}get error(){return this.getArgb(this.colors.error())}get errorDim(){let e=this.colors.errorDim();if(e===void 0)throw new Error("`errorDim` color is undefined prior to 2025 spec.");return this.getArgb(e)}get onError(){return this.getArgb(this.colors.onError())}get errorContainer(){return this.getArgb(this.colors.errorContainer())}get onErrorContainer(){return this.getArgb(this.colors.onErrorContainer())}};xe.DEFAULT_SPEC_VERSION="2021";xe.DEFAULT_PLATFORM="phone";var xa=class{getPrimaryPalette(e,r,o,i,u){switch(e){case C.CONTENT:case C.FIDELITY:return U.fromHueAndChroma(r.hue,r.chroma);case C.FRUIT_SALAD:return U.fromHueAndChroma(We(r.hue-50),48);case C.MONOCHROME:return U.fromHueAndChroma(r.hue,0);case C.NEUTRAL:return U.fromHueAndChroma(r.hue,12);case C.RAINBOW:return U.fromHueAndChroma(r.hue,48);case C.TONAL_SPOT:return U.fromHueAndChroma(r.hue,36);case C.EXPRESSIVE:return U.fromHueAndChroma(We(r.hue+240),40);case C.VIBRANT:return U.fromHueAndChroma(r.hue,200);default:throw new Error(`Unsupported variant: ${e}`)}}getSecondaryPalette(e,r,o,i,u){switch(e){case C.CONTENT:case C.FIDELITY:return U.fromHueAndChroma(r.hue,Math.max(r.chroma-32,r.chroma*.5));case C.FRUIT_SALAD:return U.fromHueAndChroma(We(r.hue-50),36);case C.MONOCHROME:return U.fromHueAndChroma(r.hue,0);case C.NEUTRAL:return U.fromHueAndChroma(r.hue,8);case C.RAINBOW:return U.fromHueAndChroma(r.hue,16);case C.TONAL_SPOT:return U.fromHueAndChroma(r.hue,16);case C.EXPRESSIVE:return U.fromHueAndChroma(xe.getRotatedHue(r,[0,21,51,121,151,191,271,321,360],[45,95,45,20,45,90,45,45,45]),24);case C.VIBRANT:return U.fromHueAndChroma(xe.getRotatedHue(r,[0,41,61,101,131,181,251,301,360],[18,15,10,12,15,18,15,12,12]),24);default:throw new Error(`Unsupported variant: ${e}`)}}getTertiaryPalette(e,r,o,i,u){switch(e){case C.CONTENT:return U.fromHct(ur.fixIfDisliked(new Kr(r).analogous(3,6)[2]));case C.FIDELITY:return U.fromHct(ur.fixIfDisliked(new Kr(r).complement));case C.FRUIT_SALAD:return U.fromHueAndChroma(r.hue,36);case C.MONOCHROME:return U.fromHueAndChroma(r.hue,0);case C.NEUTRAL:return U.fromHueAndChroma(r.hue,16);case C.RAINBOW:case C.TONAL_SPOT:return U.fromHueAndChroma(We(r.hue+60),24);case C.EXPRESSIVE:return U.fromHueAndChroma(xe.getRotatedHue(r,[0,21,51,121,151,191,271,321,360],[120,120,20,45,20,15,20,120,120]),32);case C.VIBRANT:return U.fromHueAndChroma(xe.getRotatedHue(r,[0,41,61,101,131,181,251,301,360],[35,30,20,25,30,35,30,25,25]),32);default:throw new Error(`Unsupported variant: ${e}`)}}getNeutralPalette(e,r,o,i,u){switch(e){case C.CONTENT:case C.FIDELITY:return U.fromHueAndChroma(r.hue,r.chroma/8);case C.FRUIT_SALAD:return U.fromHueAndChroma(r.hue,10);case C.MONOCHROME:return U.fromHueAndChroma(r.hue,0);case C.NEUTRAL:return U.fromHueAndChroma(r.hue,2);case C.RAINBOW:return U.fromHueAndChroma(r.hue,0);case C.TONAL_SPOT:return U.fromHueAndChroma(r.hue,6);case C.EXPRESSIVE:return U.fromHueAndChroma(We(r.hue+15),8);case C.VIBRANT:return U.fromHueAndChroma(r.hue,10);default:throw new Error(`Unsupported variant: ${e}`)}}getNeutralVariantPalette(e,r,o,i,u){switch(e){case C.CONTENT:return U.fromHueAndChroma(r.hue,r.chroma/8+4);case C.FIDELITY:return U.fromHueAndChroma(r.hue,r.chroma/8+4);case C.FRUIT_SALAD:return U.fromHueAndChroma(r.hue,16);case C.MONOCHROME:return U.fromHueAndChroma(r.hue,0);case C.NEUTRAL:return U.fromHueAndChroma(r.hue,2);case C.RAINBOW:return U.fromHueAndChroma(r.hue,0);case C.TONAL_SPOT:return U.fromHueAndChroma(r.hue,8);case C.EXPRESSIVE:return U.fromHueAndChroma(We(r.hue+15),12);case C.VIBRANT:return U.fromHueAndChroma(r.hue,12);default:throw new Error(`Unsupported variant: ${e}`)}}getErrorPalette(e,r,o,i,u){}},pn=class t extends xa{getPrimaryPalette(e,r,o,i,u){switch(e){case C.NEUTRAL:return U.fromHueAndChroma(r.hue,i==="phone"?J.isBlue(r.hue)?12:8:J.isBlue(r.hue)?16:12);case C.TONAL_SPOT:return U.fromHueAndChroma(r.hue,i==="phone"&&o?26:32);case C.EXPRESSIVE:return U.fromHueAndChroma(r.hue,i==="phone"?o?36:48:40);case C.VIBRANT:return U.fromHueAndChroma(r.hue,i==="phone"?74:56);default:return super.getPrimaryPalette(e,r,o,i,u)}}getSecondaryPalette(e,r,o,i,u){switch(e){case C.NEUTRAL:return U.fromHueAndChroma(r.hue,i==="phone"?J.isBlue(r.hue)?6:4:J.isBlue(r.hue)?10:6);case C.TONAL_SPOT:return U.fromHueAndChroma(r.hue,16);case C.EXPRESSIVE:return U.fromHueAndChroma(xe.getRotatedHue(r,[0,105,140,204,253,278,300,333,360],[-160,155,-100,96,-96,-156,-165,-160]),i==="phone"&&o?16:24);case C.VIBRANT:return U.fromHueAndChroma(xe.getRotatedHue(r,[0,38,105,140,333,360],[-14,10,-14,10,-14]),i==="phone"?56:36);default:return super.getSecondaryPalette(e,r,o,i,u)}}getTertiaryPalette(e,r,o,i,u){switch(e){case C.NEUTRAL:return U.fromHueAndChroma(xe.getRotatedHue(r,[0,38,105,161,204,278,333,360],[-32,26,10,-39,24,-15,-32]),i==="phone"?20:36);case C.TONAL_SPOT:return U.fromHueAndChroma(xe.getRotatedHue(r,[0,20,71,161,333,360],[-40,48,-32,40,-32]),i==="phone"?28:32);case C.EXPRESSIVE:return U.fromHueAndChroma(xe.getRotatedHue(r,[0,105,140,204,253,278,300,333,360],[-165,160,-105,101,-101,-160,-170,-165]),48);case C.VIBRANT:return U.fromHueAndChroma(xe.getRotatedHue(r,[0,38,71,105,140,161,253,333,360],[-72,35,24,-24,62,50,62,-72]),56);default:return super.getTertiaryPalette(e,r,o,i,u)}}static getExpressiveNeutralHue(e){return xe.getRotatedHue(e,[0,71,124,253,278,300,360],[10,0,10,0,10,0])}static getExpressiveNeutralChroma(e,r,o){let i=t.getExpressiveNeutralHue(e);return o==="phone"?r?J.isYellow(i)?6:14:18:12}static getVibrantNeutralHue(e){return xe.getRotatedHue(e,[0,38,105,140,333,360],[-14,10,-14,10,-14])}static getVibrantNeutralChroma(e,r){let o=t.getVibrantNeutralHue(e);return r==="phone"||J.isBlue(o)?28:20}getNeutralPalette(e,r,o,i,u){switch(e){case C.NEUTRAL:return U.fromHueAndChroma(r.hue,i==="phone"?1.4:6);case C.TONAL_SPOT:return U.fromHueAndChroma(r.hue,i==="phone"?5:10);case C.EXPRESSIVE:return U.fromHueAndChroma(t.getExpressiveNeutralHue(r),t.getExpressiveNeutralChroma(r,o,i));case C.VIBRANT:return U.fromHueAndChroma(t.getVibrantNeutralHue(r),t.getVibrantNeutralChroma(r,i));default:return super.getNeutralPalette(e,r,o,i,u)}}getNeutralVariantPalette(e,r,o,i,u){switch(e){case C.NEUTRAL:return U.fromHueAndChroma(r.hue,(i==="phone"?1.4:6)*2.2);case C.TONAL_SPOT:return U.fromHueAndChroma(r.hue,(i==="phone"?5:10)*1.7);case C.EXPRESSIVE:let l=t.getExpressiveNeutralHue(r),d=t.getExpressiveNeutralChroma(r,o,i);return U.fromHueAndChroma(l,d*(l>=105&&l<125?1.6:2.3));case C.VIBRANT:let f=t.getVibrantNeutralHue(r),g=t.getVibrantNeutralChroma(r,i);return U.fromHueAndChroma(f,g*1.29);default:return super.getNeutralVariantPalette(e,r,o,i,u)}}getErrorPalette(e,r,o,i,u){let l=xe.getPiecewiseHue(r,[0,3,13,23,33,43,153,273,360],[12,22,32,12,22,32,22,12]);switch(e){case C.NEUTRAL:return U.fromHueAndChroma(l,i==="phone"?50:40);case C.TONAL_SPOT:return U.fromHueAndChroma(l,i==="phone"?60:48);case C.EXPRESSIVE:return U.fromHueAndChroma(l,i==="phone"?64:48);case C.VIBRANT:return U.fromHueAndChroma(l,i==="phone"?80:60);default:return super.getErrorPalette(e,r,o,i,u)}}},ku=new xa,Su=new pn;function xr(t){return t==="2025"?Su:ku}var Da=class extends xe{constructor(e,r,o,i=xe.DEFAULT_SPEC_VERSION,u=xe.DEFAULT_PLATFORM){super({sourceColorHct:e,variant:C.VIBRANT,contrastLevel:o,isDark:r,platform:u,specVersion:i});}};function gn(t){let e=Wr(t),r=Gr(t),o=$r(t),i=[e.toString(16),r.toString(16),o.toString(16)];for(let[u,l]of i.entries())l.length===1&&(i[u]="0"+l);return "#"+i.join("")}function Vo(t){t=t.replace("#","");let e=t.length===3,r=t.length===6,o=t.length===8;if(!e&&!r&&!o)throw new Error("unexpected hex "+t);let i=0,u=0,l=0;return e?(i=Rt(t.slice(0,1).repeat(2)),u=Rt(t.slice(1,2).repeat(2)),l=Rt(t.slice(2,3).repeat(2))):r?(i=Rt(t.slice(0,2)),u=Rt(t.slice(2,4)),l=Rt(t.slice(4,6))):o&&(i=Rt(t.slice(2,4)),u=Rt(t.slice(4,6)),l=Rt(t.slice(6,8))),(255<<24|(i&255)<<16|(u&255)<<8|l&255)>>>0}function Rt(t){return parseInt(t,16)}function Ho(t,e){let r=J.fromInt(Vo(t)),o=new Da(r,e,0),i={},u=["primary","onPrimary","primaryContainer","onPrimaryContainer","secondary","onSecondary","secondaryContainer","onSecondaryContainer","tertiary","onTertiary","tertiaryContainer","onTertiaryContainer","error","onError","errorContainer","onErrorContainer","background","onBackground","surface","onSurface","surfaceVariant","onSurfaceVariant","outline","outlineVariant","shadow","scrim","inverseSurface","inverseOnSurface","inversePrimary","surfaceDim","surfaceBright","surfaceContainerLowest","surfaceContainerLow","surfaceContainer","surfaceContainerHigh","surfaceContainerHighest"];for(let l of u){let d=F[l];d&&(i[l]=gn(d.getArgb(o)));}return i}function Yo(t,e){let r=t.replace("#",""),o=parseInt(r.substring(0,2),16),i=parseInt(r.substring(2,4),16),u=parseInt(r.substring(4,6),16);return `rgba(${o}, ${i}, ${u}, ${e})`}var Au=createContext(null),Fu=Ho("#6750A4",false);var Ta=()=>{let t=useContext(Au);return t||{themeColors:Fu,systemTheme:"auto",setThemeColors:()=>{throw new Error("[@zaide6137/m3-components-web] Wrap your app in <ThemeProvider>.")},setColorScheme:()=>{throw new Error("[@zaide6137/m3-components-web] Wrap your app in <ThemeProvider>.")}}};var La=Ao(bn());var Tn=Ao(bn());function nt(t){return t<0?-1:t===0?0:1}function Jr(t,e,r){return (1-r)*t+r*e}function Lu(t,e,r){return r<t?t:r>e?e:r}function Je(t,e,r){return r<t?t:r>e?e:r}function Uo(t){return t=t%360,t<0&&(t=t+360),t}function ct(t){return t=t%360,t<0&&(t=t+360),t}function Pn(t,e){let r=t[0]*e[0][0]+t[1]*e[0][1]+t[2]*e[0][2],o=t[0]*e[1][0]+t[1]*e[1][1]+t[2]*e[1][2],i=t[0]*e[2][0]+t[1]*e[2][1]+t[2]*e[2][2];return [r,o,i]}var jo=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],Bu=[[3.2413774792388685,-1.5376652402851851,-0.49885366846268053],[-0.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-0.20395524564742123,1.0571799111220335]],Ko=[95.047,100,108.883];function kn(t,e,r){return (255<<24|(t&255)<<16|(e&255)<<8|r&255)>>>0}function zo(t){let e=dr(t[0]),r=dr(t[1]),o=dr(t[2]);return kn(e,r,o)}function Sn(t){return t>>16&255}function xn(t){return t>>8&255}function Dn(t){return t&255}function Nu(t,e,r){let o=Bu,i=o[0][0]*t+o[0][1]*e+o[0][2]*r,u=o[1][0]*t+o[1][1]*e+o[1][2]*r,l=o[2][0]*t+o[2][1]*e+o[2][2]*r,d=dr(i),f=dr(u),g=dr(l);return kn(d,f,g)}function Vu(t){let e=Bt(Sn(t)),r=Bt(xn(t)),o=Bt(Dn(t));return Pn([e,r,o],jo)}function Hu(t){let e=Bt(Sn(t)),r=Bt(xn(t)),o=Bt(Dn(t)),i=jo,u=i[0][0]*e+i[0][1]*r+i[0][2]*o,l=i[1][0]*e+i[1][1]*r+i[1][2]*o,d=i[2][0]*e+i[2][1]*r+i[2][2]*o,f=Ko,g=u/f[0],y=l/f[1],b=d/f[2],w=Zr(g),v=Zr(y),m=Zr(b),p=116*v-16,k=500*(w-v),O=200*(v-m);return [p,k,O]}function Yu(t){let e=Jt(t),r=dr(e);return kn(r,r,r)}function Wo(t){let e=Vu(t)[1];return 116*Zr(e/100)-16}function Jt(t){return 100*zu((t+16)/116)}function vn(t){return Zr(t/100)*116-16}function Bt(t){let e=t/255;return e<=.040449936?e/12.92*100:Math.pow((e+.055)/1.055,2.4)*100}function dr(t){let e=t/100,r=0;return e<=.0031308?r=e*12.92:r=1.055*Math.pow(e,1/2.4)-.055,Lu(0,255,Math.round(r*255))}function Uu(){return Ko}function Zr(t){let e=.008856451679035631,r=24389/27;return t>e?Math.pow(t,1/3):(r*t+16)/116}function zu(t){let e=.008856451679035631,r=24389/27,o=t*t*t;return o>e?o:(116*t-16)/r}var Zt=class qo{static make(e=Uu(),r=200/Math.PI*Jt(50)/100,o=50,i=2,u=false){let l=e,d=l[0]*.401288+l[1]*.650173+l[2]*-0.051461,f=l[0]*-0.250268+l[1]*1.204414+l[2]*.045854,g=l[0]*-2079e-6+l[1]*.048952+l[2]*.953127,y=.8+i/10,b=y>=.9?Jr(.59,.69,(y-.9)*10):Jr(.525,.59,(y-.8)*10),w=u?1:y*(1-1/3.6*Math.exp((-r-42)/92));w=w>1?1:w<0?0:w;let v=y,m=[w*(100/d)+1-w,w*(100/f)+1-w,w*(100/g)+1-w],p=1/(5*r+1),k=p*p*p*p,O=1-k,L=k*r+.1*O*O*Math.cbrt(5*r),V=Jt(o)/e[1],Y=1.48+Math.sqrt(V),B=.725/Math.pow(V,.2),H=B,N=[Math.pow(L*m[0]*d/100,.42),Math.pow(L*m[1]*f/100,.42),Math.pow(L*m[2]*g/100,.42)],I=[400*N[0]/(N[0]+27.13),400*N[1]/(N[1]+27.13),400*N[2]/(N[2]+27.13)],z=(2*I[0]+I[1]+.05*I[2])*B;return new qo(V,z,B,H,b,v,m,L,Math.pow(L,.25),Y)}constructor(e,r,o,i,u,l,d,f,g,y){this.n=e,this.aw=r,this.nbb=o,this.ncb=i,this.c=u,this.nc=l,this.rgbD=d,this.fl=f,this.fLRoot=g,this.z=y;}};Zt.DEFAULT=Zt.make();var Xr=class Xt{constructor(e,r,o,i,u,l,d,f,g){this.hue=e,this.chroma=r,this.j=o,this.q=i,this.m=u,this.s=l,this.jstar=d,this.astar=f,this.bstar=g;}distance(e){let r=this.jstar-e.jstar,o=this.astar-e.astar,i=this.bstar-e.bstar,u=Math.sqrt(r*r+o*o+i*i);return 1.41*Math.pow(u,.63)}static fromInt(e){return Xt.fromIntInViewingConditions(e,Zt.DEFAULT)}static fromIntInViewingConditions(e,r){let o=(e&16711680)>>16,i=(e&65280)>>8,u=e&255,l=Bt(o),d=Bt(i),f=Bt(u),g=.41233895*l+.35762064*d+.18051042*f,y=.2126*l+.7152*d+.0722*f,b=.01932141*l+.11916382*d+.95034478*f,w=.401288*g+.650173*y-.051461*b,v=-0.250268*g+1.204414*y+.045854*b,m=-2079e-6*g+.048952*y+.953127*b,p=r.rgbD[0]*w,k=r.rgbD[1]*v,O=r.rgbD[2]*m,L=Math.pow(r.fl*Math.abs(p)/100,.42),V=Math.pow(r.fl*Math.abs(k)/100,.42),Y=Math.pow(r.fl*Math.abs(O)/100,.42),B=nt(p)*400*L/(L+27.13),H=nt(k)*400*V/(V+27.13),N=nt(O)*400*Y/(Y+27.13),I=(11*B+-12*H+N)/11,z=(B+H-2*N)/9,ie=(20*B+20*H+21*N)/20,fe=(40*B+20*H+N)/20,pe=Math.atan2(z,I)*180/Math.PI,Se=ct(pe),Q=Se*Math.PI/180,Fe=fe*r.nbb,Me=100*Math.pow(Fe/r.aw,r.c*r.z),Ye=4/r.c*Math.sqrt(Me/100)*(r.aw+4)*r.fLRoot,_e=Se<20.14?Se+360:Se,qe=.25*(Math.cos(_e*Math.PI/180+2)+3.8),Qe=5e4/13*qe*r.nc*r.ncb*Math.sqrt(I*I+z*z)/(ie+.305),Xe=Math.pow(Qe,.9)*Math.pow(1.64-Math.pow(.29,r.n),.73),et=Xe*Math.sqrt(Me/100),$=et*r.fLRoot,Yt=50*Math.sqrt(Xe*r.c/(r.aw+4)),Ut=(1+100*.007)*Me/(1+.007*Me),ut=1/.0228*Math.log(1+.0228*$),zt=ut*Math.cos(Q),Wt=ut*Math.sin(Q);return new Xt(Se,et,Me,Ye,$,Yt,Ut,zt,Wt)}static fromJch(e,r,o){return Xt.fromJchInViewingConditions(e,r,o,Zt.DEFAULT)}static fromJchInViewingConditions(e,r,o,i){let u=4/i.c*Math.sqrt(e/100)*(i.aw+4)*i.fLRoot,l=r*i.fLRoot,d=r/Math.sqrt(e/100),f=50*Math.sqrt(d*i.c/(i.aw+4)),g=o*Math.PI/180,y=(1+100*.007)*e/(1+.007*e),b=1/.0228*Math.log(1+.0228*l),w=b*Math.cos(g),v=b*Math.sin(g);return new Xt(o,r,e,u,l,f,y,w,v)}static fromUcs(e,r,o){return Xt.fromUcsInViewingConditions(e,r,o,Zt.DEFAULT)}static fromUcsInViewingConditions(e,r,o,i){let u=r,l=o,d=Math.sqrt(u*u+l*l),f=(Math.exp(d*.0228)-1)/.0228/i.fLRoot,g=Math.atan2(l,u)*(180/Math.PI);g<0&&(g+=360);let y=e/(1-(e-100)*.007);return Xt.fromJchInViewingConditions(y,f,g,i)}toInt(){return this.viewed(Zt.DEFAULT)}viewed(e){let r=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),o=Math.pow(r/Math.pow(1.64-Math.pow(.29,e.n),.73),1/.9),i=this.hue*Math.PI/180,u=.25*(Math.cos(i+2)+3.8),l=e.aw*Math.pow(this.j/100,1/e.c/e.z),d=u*(5e4/13)*e.nc*e.ncb,f=l/e.nbb,g=Math.sin(i),y=Math.cos(i),b=23*(f+.305)*o/(23*d+11*o*y+108*o*g),w=b*y,v=b*g,m=(460*f+451*w+288*v)/1403,p=(460*f-891*w-261*v)/1403,k=(460*f-220*w-6300*v)/1403,O=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),L=nt(m)*(100/e.fl)*Math.pow(O,1/.42),V=Math.max(0,27.13*Math.abs(p)/(400-Math.abs(p))),Y=nt(p)*(100/e.fl)*Math.pow(V,1/.42),B=Math.max(0,27.13*Math.abs(k)/(400-Math.abs(k))),H=nt(k)*(100/e.fl)*Math.pow(B,1/.42),N=L/e.rgbD[0],I=Y/e.rgbD[1],z=H/e.rgbD[2],ie=1.86206786*N-1.01125463*I+.14918677*z,fe=.38752654*N+.62144744*I-.00897398*z,pe=-0.0158415*N-.03412294*I+1.04996444*z;return Nu(ie,fe,pe)}static fromXyzInViewingConditions(e,r,o,i){let u=.401288*e+.650173*r-.051461*o,l=-0.250268*e+1.204414*r+.045854*o,d=-2079e-6*e+.048952*r+.953127*o,f=i.rgbD[0]*u,g=i.rgbD[1]*l,y=i.rgbD[2]*d,b=Math.pow(i.fl*Math.abs(f)/100,.42),w=Math.pow(i.fl*Math.abs(g)/100,.42),v=Math.pow(i.fl*Math.abs(y)/100,.42),m=nt(f)*400*b/(b+27.13),p=nt(g)*400*w/(w+27.13),k=nt(y)*400*v/(v+27.13),O=(11*m+-12*p+k)/11,L=(m+p-2*k)/9,V=(20*m+20*p+21*k)/20,Y=(40*m+20*p+k)/20,B=Math.atan2(L,O)*180/Math.PI,H=B<0?B+360:B>=360?B-360:B,N=H*Math.PI/180,I=Y*i.nbb,z=100*Math.pow(I/i.aw,i.c*i.z),ie=4/i.c*Math.sqrt(z/100)*(i.aw+4)*i.fLRoot,fe=H<20.14?H+360:H,pe=1/4*(Math.cos(fe*Math.PI/180+2)+3.8),Se=5e4/13*pe*i.nc*i.ncb*Math.sqrt(O*O+L*L)/(V+.305),Q=Math.pow(Se,.9)*Math.pow(1.64-Math.pow(.29,i.n),.73),Fe=Q*Math.sqrt(z/100),Me=Fe*i.fLRoot,Ye=50*Math.sqrt(Q*i.c/(i.aw+4)),_e=(1+100*.007)*z/(1+.007*z),qe=Math.log(1+.0228*Me)/.0228,Qe=qe*Math.cos(N),Xe=qe*Math.sin(N);return new Xt(H,Fe,z,ie,Me,Ye,_e,Qe,Xe)}xyzInViewingConditions(e){let r=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),o=Math.pow(r/Math.pow(1.64-Math.pow(.29,e.n),.73),1/.9),i=this.hue*Math.PI/180,u=.25*(Math.cos(i+2)+3.8),l=e.aw*Math.pow(this.j/100,1/e.c/e.z),d=u*(5e4/13)*e.nc*e.ncb,f=l/e.nbb,g=Math.sin(i),y=Math.cos(i),b=23*(f+.305)*o/(23*d+11*o*y+108*o*g),w=b*y,v=b*g,m=(460*f+451*w+288*v)/1403,p=(460*f-891*w-261*v)/1403,k=(460*f-220*w-6300*v)/1403,O=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),L=nt(m)*(100/e.fl)*Math.pow(O,1/.42),V=Math.max(0,27.13*Math.abs(p)/(400-Math.abs(p))),Y=nt(p)*(100/e.fl)*Math.pow(V,1/.42),B=Math.max(0,27.13*Math.abs(k)/(400-Math.abs(k))),H=nt(k)*(100/e.fl)*Math.pow(B,1/.42),N=L/e.rgbD[0],I=Y/e.rgbD[1],z=H/e.rgbD[2],ie=1.86206786*N-1.01125463*I+.14918677*z,fe=.38752654*N+.62144744*I-.00897398*z,pe=-0.0158415*N-.03412294*I+1.04996444*z;return [ie,fe,pe]}},Qt=class de{static sanitizeRadians(e){return (e+Math.PI*8)%(Math.PI*2)}static trueDelinearized(e){let r=e/100,o=0;return r<=.0031308?o=r*12.92:o=1.055*Math.pow(r,1/2.4)-.055,o*255}static chromaticAdaptation(e){let r=Math.pow(Math.abs(e),.42);return nt(e)*400*r/(r+27.13)}static hueOf(e){let r=Pn(e,de.SCALED_DISCOUNT_FROM_LINRGB),o=de.chromaticAdaptation(r[0]),i=de.chromaticAdaptation(r[1]),u=de.chromaticAdaptation(r[2]),l=(11*o+-12*i+u)/11,d=(o+i-2*u)/9;return Math.atan2(d,l)}static areInCyclicOrder(e,r,o){let i=de.sanitizeRadians(r-e),u=de.sanitizeRadians(o-e);return i<u}static intercept(e,r,o){return (r-e)/(o-e)}static lerpPoint(e,r,o){return [e[0]+(o[0]-e[0])*r,e[1]+(o[1]-e[1])*r,e[2]+(o[2]-e[2])*r]}static setCoordinate(e,r,o,i){let u=de.intercept(e[i],r,o[i]);return de.lerpPoint(e,u,o)}static isBounded(e){return 0<=e&&e<=100}static nthVertex(e,r){let o=de.Y_FROM_LINRGB[0],i=de.Y_FROM_LINRGB[1],u=de.Y_FROM_LINRGB[2],l=r%4<=1?0:100,d=r%2===0?0:100;if(r<4){let f=l,g=d,y=(e-f*i-g*u)/o;return de.isBounded(y)?[y,f,g]:[-1,-1,-1]}else if(r<8){let f=l,g=d,y=(e-g*o-f*u)/i;return de.isBounded(y)?[g,y,f]:[-1,-1,-1]}else {let f=l,g=d,y=(e-f*o-g*i)/u;return de.isBounded(y)?[f,g,y]:[-1,-1,-1]}}static bisectToSegment(e,r){let o=[-1,-1,-1],i=o,u=0,l=0,d=false,f=true;for(let g=0;g<12;g++){let y=de.nthVertex(e,g);if(y[0]<0)continue;let b=de.hueOf(y);if(!d){o=y,i=y,u=b,l=b,d=true;continue}(f||de.areInCyclicOrder(u,b,l))&&(f=false,de.areInCyclicOrder(u,r,b)?(i=y,l=b):(o=y,u=b));}return [o,i]}static midpoint(e,r){return [(e[0]+r[0])/2,(e[1]+r[1])/2,(e[2]+r[2])/2]}static criticalPlaneBelow(e){return Math.floor(e-.5)}static criticalPlaneAbove(e){return Math.ceil(e-.5)}static bisectToLimit(e,r){let o=de.bisectToSegment(e,r),i=o[0],u=de.hueOf(i),l=o[1];for(let d=0;d<3;d++)if(i[d]!==l[d]){let f=-1,g=255;i[d]<l[d]?(f=de.criticalPlaneBelow(de.trueDelinearized(i[d])),g=de.criticalPlaneAbove(de.trueDelinearized(l[d]))):(f=de.criticalPlaneAbove(de.trueDelinearized(i[d])),g=de.criticalPlaneBelow(de.trueDelinearized(l[d])));for(let y=0;y<8&&!(Math.abs(g-f)<=1);y++){let b=Math.floor((f+g)/2),w=de.CRITICAL_PLANES[b],v=de.setCoordinate(i,w,l,d),m=de.hueOf(v);de.areInCyclicOrder(u,r,m)?(l=v,g=b):(i=v,u=m,f=b);}}return de.midpoint(i,l)}static inverseChromaticAdaptation(e){let r=Math.abs(e),o=Math.max(0,27.13*r/(400-r));return nt(e)*Math.pow(o,1/.42)}static findResultByJ(e,r,o){let i=Math.sqrt(o)*11,u=Zt.DEFAULT,l=1/Math.pow(1.64-Math.pow(.29,u.n),.73),d=.25*(Math.cos(e+2)+3.8)*(5e4/13)*u.nc*u.ncb,f=Math.sin(e),g=Math.cos(e);for(let y=0;y<5;y++){let b=i/100,w=r===0||i===0?0:r/Math.sqrt(b),v=Math.pow(w*l,1/.9),m=u.aw*Math.pow(b,1/u.c/u.z)/u.nbb,p=23*(m+.305)*v/(23*d+11*v*g+108*v*f),k=p*g,O=p*f,L=(460*m+451*k+288*O)/1403,V=(460*m-891*k-261*O)/1403,Y=(460*m-220*k-6300*O)/1403,B=de.inverseChromaticAdaptation(L),H=de.inverseChromaticAdaptation(V),N=de.inverseChromaticAdaptation(Y),I=Pn([B,H,N],de.LINRGB_FROM_SCALED_DISCOUNT);if(I[0]<0||I[1]<0||I[2]<0)return 0;let z=de.Y_FROM_LINRGB[0],ie=de.Y_FROM_LINRGB[1],fe=de.Y_FROM_LINRGB[2],pe=z*I[0]+ie*I[1]+fe*I[2];if(pe<=0)return 0;if(y===4||Math.abs(pe-o)<.002)return I[0]>100.01||I[1]>100.01||I[2]>100.01?0:zo(I);i=i-(pe-o)*i/(2*pe);}return 0}static solveToInt(e,r,o){if(r<1e-4||o<1e-4||o>99.9999)return Yu(o);e=ct(e);let i=e/180*Math.PI,u=Jt(o),l=de.findResultByJ(i,r,u);if(l!==0)return l;let d=de.bisectToLimit(u,i);return zo(d)}static solveToCam(e,r,o){return Xr.fromInt(de.solveToInt(e,r,o))}};Qt.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]];Qt.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]];Qt.Y_FROM_LINRGB=[.2126,.7152,.0722];Qt.CRITICAL_PLANES=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];var ue=class Aa{static from(e,r,o){return new Aa(Qt.solveToInt(e,r,o))}static fromInt(e){return new Aa(e)}toInt(){return this.argb}get hue(){return this.internalHue}set hue(e){this.setInternalState(Qt.solveToInt(e,this.internalChroma,this.internalTone));}get chroma(){return this.internalChroma}set chroma(e){this.setInternalState(Qt.solveToInt(this.internalHue,e,this.internalTone));}get tone(){return this.internalTone}set tone(e){this.setInternalState(Qt.solveToInt(this.internalHue,this.internalChroma,e));}setValue(e,r){this[e]=r;}toString(){return `HCT(${this.hue.toFixed(0)}, ${this.chroma.toFixed(0)}, ${this.tone.toFixed(0)})`}static isBlue(e){return e>=250&&e<270}static isYellow(e){return e>=105&&e<125}static isCyan(e){return e>=170&&e<207}constructor(e){this.argb=e;let r=Xr.fromInt(e);this.internalHue=r.hue,this.internalChroma=r.chroma,this.internalTone=Wo(e),this.argb=e;}setInternalState(e){let r=Xr.fromInt(e);this.internalHue=r.hue,this.internalChroma=r.chroma,this.internalTone=Wo(e),this.argb=e;}inViewingConditions(e){let r=Xr.fromInt(this.toInt()).xyzInViewingConditions(e),o=Xr.fromXyzInViewingConditions(r[0],r[1],r[2],Zt.make());return Aa.from(o.hue,o.chroma,vn(r[1]))}},$e=class Ar{static ratioOfTones(e,r){return e=Je(0,100,e),r=Je(0,100,r),Ar.ratioOfYs(Jt(e),Jt(r))}static ratioOfYs(e,r){let o=e>r?e:r,i=o===r?e:r;return (o+5)/(i+5)}static lighter(e,r){if(e<0||e>100)return -1;let o=Jt(e),i=r*(o+5)-5,u=Ar.ratioOfYs(i,o),l=Math.abs(u-r);if(u<r&&l>.04)return -1;let d=vn(i)+.4;return d<0||d>100?-1:d}static darker(e,r){if(e<0||e>100)return -1;let o=Jt(e),i=(o+5)/r-5,u=Ar.ratioOfYs(o,i),l=Math.abs(u-r);if(u<r&&l>.04)return -1;let d=vn(i)-.4;return d<0||d>100?-1:d}static lighterUnsafe(e,r){let o=Ar.lighter(e,r);return o<0?100:o}static darkerUnsafe(e,r){let o=Ar.darker(e,r);return o<0?0:o}},wn=class Xo{static isDisliked(e){let r=Math.round(e.hue)>=90&&Math.round(e.hue)<=111,o=Math.round(e.chroma)>16,i=Math.round(e.tone)<65;return r&&o&&i}static fixIfDisliked(e){return Xo.isDisliked(e)?ue.from(e.hue,e.chroma,70):e}};function Wu(t,e,r){if(t.name!==r.name)throw new Error(`Attempting to extend color ${t.name} with color ${r.name} of different name for spec version ${e}.`);if(t.isBackground!==r.isBackground)throw new Error(`Attempting to extend color ${t.name} as a ${t.isBackground?"background":"foreground"} with color ${r.name} as a ${r.isBackground?"background":"foreground"} for spec version ${e}.`)}function se(t,e,r){return Wu(t,e,r),M.fromPalette({name:t.name,palette:o=>o.specVersion===e?r.palette(o):t.palette(o),tone:o=>o.specVersion===e?r.tone(o):t.tone(o),isBackground:t.isBackground,chromaMultiplier:o=>{let i=o.specVersion===e?r.chromaMultiplier:t.chromaMultiplier;return i!==void 0?i(o):1},background:o=>{let i=o.specVersion===e?r.background:t.background;return i!==void 0?i(o):void 0},secondBackground:o=>{let i=o.specVersion===e?r.secondBackground:t.secondBackground;return i!==void 0?i(o):void 0},contrastCurve:o=>{let i=o.specVersion===e?r.contrastCurve:t.contrastCurve;return i!==void 0?i(o):void 0},toneDeltaPair:o=>{let i=o.specVersion===e?r.toneDeltaPair:t.toneDeltaPair;return i!==void 0?i(o):void 0}})}var M=class hr{static fromPalette(e){return new hr(e.name??"",e.palette,e.tone??hr.getInitialToneFromBackground(e.background),e.isBackground??false,e.chromaMultiplier,e.background,e.secondBackground,e.contrastCurve,e.toneDeltaPair)}static getInitialToneFromBackground(e){return e===void 0?r=>50:r=>e(r)?e(r).getTone(r):50}constructor(e,r,o,i,u,l,d,f,g){if(this.name=e,this.palette=r,this.tone=o,this.isBackground=i,this.chromaMultiplier=u,this.background=l,this.secondBackground=d,this.contrastCurve=f,this.toneDeltaPair=g,this.hctCache=new Map,!l&&d)throw new Error(`Color ${e} has secondBackgrounddefined, but background is not defined.`);if(!l&&f)throw new Error(`Color ${e} has contrastCurvedefined, but background is not defined.`);if(l&&!f)throw new Error(`Color ${e} has backgrounddefined, but contrastCurve is not defined.`)}clone(){return hr.fromPalette({name:this.name,palette:this.palette,tone:this.tone,isBackground:this.isBackground,chromaMultiplier:this.chromaMultiplier,background:this.background,secondBackground:this.secondBackground,contrastCurve:this.contrastCurve,toneDeltaPair:this.toneDeltaPair})}clearCache(){this.hctCache.clear();}getArgb(e){return this.getHct(e).toInt()}getHct(e){let r=this.hctCache.get(e);if(r!=null)return r;let o=Go(e.specVersion).getHct(e,this);return this.hctCache.size>4&&this.hctCache.clear(),this.hctCache.set(e,o),o}getTone(e){return Go(e.specVersion).getTone(e,this)}static foregroundTone(e,r){let o=$e.lighterUnsafe(e,r),i=$e.darkerUnsafe(e,r),u=$e.ratioOfTones(o,e),l=$e.ratioOfTones(i,e);if(hr.tonePrefersLightForeground(e)){let d=Math.abs(u-l)<.1&&u<r&&l<r;return u>=r||u>=l||d?o:i}else return l>=r||l>=u?i:o}static tonePrefersLightForeground(e){return Math.round(e)<60}static toneAllowsLightForeground(e){return Math.round(e)<=49}static enableLightForeground(e){return hr.tonePrefersLightForeground(e)&&!hr.toneAllowsLightForeground(e)?49:e}},Gu=class{getHct(t,e){let r=e.getTone(t);return e.palette(t).getHct(r)}getTone(t,e){let r=t.contrastLevel<0,o=e.toneDeltaPair?e.toneDeltaPair(t):void 0;if(o){let i=o.roleA,u=o.roleB,l=o.delta,d=o.polarity,f=o.stayTogether,g=d==="nearer"||d==="lighter"&&!t.isDark||d==="darker"&&t.isDark,y=g?i:u,b=g?u:i,w=e.name===y.name,v=t.isDark?1:-1,m=y.tone(t),p=b.tone(t);if(e.background&&y.contrastCurve&&b.contrastCurve){let k=e.background(t),O=y.contrastCurve(t),L=b.contrastCurve(t);if(k&&O&&L){let V=k.getTone(t),Y=O.get(t.contrastLevel),B=L.get(t.contrastLevel);$e.ratioOfTones(V,m)<Y&&(m=M.foregroundTone(V,Y)),$e.ratioOfTones(V,p)<B&&(p=M.foregroundTone(V,B)),r&&(m=M.foregroundTone(V,Y),p=M.foregroundTone(V,B));}}return (p-m)*v<l&&(p=Je(0,100,m+l*v),(p-m)*v>=l||(m=Je(0,100,p-l*v))),50<=m&&m<60?v>0?(m=60,p=Math.max(p,m+l*v)):(m=49,p=Math.min(p,m+l*v)):50<=p&&p<60&&(f?v>0?(m=60,p=Math.max(p,m+l*v)):(m=49,p=Math.min(p,m+l*v)):v>0?p=60:p=49),w?m:p}else {let i=e.tone(t);if(e.background==null||e.background(t)===void 0||e.contrastCurve==null||e.contrastCurve(t)===void 0)return i;let u=e.background(t).getTone(t),l=e.contrastCurve(t).get(t.contrastLevel);if($e.ratioOfTones(u,i)>=l||(i=M.foregroundTone(u,l)),r&&(i=M.foregroundTone(u,l)),e.isBackground&&50<=i&&i<60&&($e.ratioOfTones(49,u)>=l?i=49:i=60),e.secondBackground==null||e.secondBackground(t)===void 0)return i;let[d,f]=[e.background,e.secondBackground],[g,y]=[d(t).getTone(t),f(t).getTone(t)],[b,w]=[Math.max(g,y),Math.min(g,y)];if($e.ratioOfTones(b,i)>=l&&$e.ratioOfTones(w,i)>=l)return i;let v=$e.lighter(b,l),m=$e.darker(w,l),p=[];return v!==-1&&p.push(v),m!==-1&&p.push(m),M.tonePrefersLightForeground(g)||M.tonePrefersLightForeground(y)?v<0?100:v:p.length===1?p[0]:m<0?0:m}}},$u=class{getHct(t,e){let r=e.palette(t),o=e.getTone(t),i=r.hue,u=r.chroma*(e.chromaMultiplier?e.chromaMultiplier(t):1);return ue.from(i,u,o)}getTone(t,e){let r=e.toneDeltaPair?e.toneDeltaPair(t):void 0;if(r){let o=r.roleA,i=r.roleB,u=r.polarity,l=r.constraint,d=u==="darker"||u==="relative_lighter"&&t.isDark||u==="relative_darker"&&!t.isDark?-r.delta:r.delta,f=e.name===o.name,g=f?o:i,y=f?i:o,b=g.tone(t),w=y.getTone(t),v=d*(f?1:-1);if(l==="exact"?b=Je(0,100,w+v):l==="nearer"?v>0?b=Je(0,100,Je(w,w+v,b)):b=Je(0,100,Je(w+v,w,b)):l==="farther"&&(v>0?b=Je(w+v,100,b):b=Je(0,w+v,b)),e.background&&e.contrastCurve){let m=e.background(t),p=e.contrastCurve(t);if(m&&p){let k=m.getTone(t),O=p.get(t.contrastLevel);b=$e.ratioOfTones(k,b)>=O&&t.contrastLevel>=0?b:M.foregroundTone(k,O);}}return e.isBackground&&!e.name.endsWith("_fixed_dim")&&(b>=57?b=Je(65,100,b):b=Je(0,49,b)),b}else {let o=e.tone(t);if(e.background==null||e.background(t)===void 0||e.contrastCurve==null||e.contrastCurve(t)===void 0)return o;let i=e.background(t).getTone(t),u=e.contrastCurve(t).get(t.contrastLevel);if(o=$e.ratioOfTones(i,o)>=u&&t.contrastLevel>=0?o:M.foregroundTone(i,u),e.isBackground&&!e.name.endsWith("_fixed_dim")&&(o>=57?o=Je(65,100,o):o=Je(0,49,o)),e.secondBackground==null||e.secondBackground(t)===void 0)return o;let[l,d]=[e.background,e.secondBackground],[f,g]=[l(t).getTone(t),d(t).getTone(t)],[y,b]=[Math.max(f,g),Math.min(f,g)];if($e.ratioOfTones(y,o)>=u&&$e.ratioOfTones(b,o)>=u)return o;let w=$e.lighter(y,u),v=$e.darker(b,u),m=[];return w!==-1&&m.push(w),v!==-1&&m.push(v),M.tonePrefersLightForeground(f)||M.tonePrefersLightForeground(g)?w<0?100:w:m.length===1?m[0]:v<0?0:v}}},ju=new Gu,Ku=new $u;function Go(t){return t==="2025"?Ku:ju}var j=class Fa{static fromInt(e){let r=ue.fromInt(e);return Fa.fromHct(r)}static fromHct(e){return new Fa(e.hue,e.chroma,e)}static fromHueAndChroma(e,r){let o=new qu(e,r).create();return new Fa(e,r,o)}constructor(e,r,o){this.hue=e,this.chroma=r,this.keyColor=o,this.cache=new Map;}tone(e){let r=this.cache.get(e);return r===void 0&&(e==99&&ue.isYellow(this.hue)?r=this.averageArgb(this.tone(98),this.tone(100)):r=ue.from(this.hue,this.chroma,e).toInt(),this.cache.set(e,r)),r}getHct(e){return ue.fromInt(this.tone(e))}averageArgb(e,r){let o=e>>>16&255,i=e>>>8&255,u=e&255,l=r>>>16&255,d=r>>>8&255,f=r&255,g=Math.round((o+l)/2),y=Math.round((i+d)/2),b=Math.round((u+f)/2);return (255<<24|(g&255)<<16|(y&255)<<8|b&255)>>>0}},qu=class{constructor(t,e){this.hue=t,this.requestedChroma=e,this.chromaCache=new Map,this.maxChromaValue=200;}create(){let t=0,e=100;for(;t<e;){let r=Math.floor((t+e)/2),o=this.maxChroma(r)<this.maxChroma(r+1);if(this.maxChroma(r)>=this.requestedChroma-.01)if(Math.abs(t-50)<Math.abs(e-50))e=r;else {if(t===r)return ue.from(this.hue,this.requestedChroma,t);t=r;}else o?t=r+1:e=r;}return ue.from(this.hue,this.requestedChroma,t)}maxChroma(t){if(this.chromaCache.has(t))return this.chromaCache.get(t);let e=ue.from(this.hue,this.maxChromaValue,t).chroma;return this.chromaCache.set(t,e),e}},$o=class _a{constructor(e){this.input=e,this.hctsByTempCache=[],this.hctsByHueCache=[],this.tempsByHctCache=new Map,this.inputRelativeTemperatureCache=-1,this.complementCache=null;}get hctsByTemp(){if(this.hctsByTempCache.length>0)return this.hctsByTempCache;let e=this.hctsByHue.concat([this.input]),r=this.tempsByHct;return e.sort((o,i)=>r.get(o)-r.get(i)),this.hctsByTempCache=e,e}get warmest(){return this.hctsByTemp[this.hctsByTemp.length-1]}get coldest(){return this.hctsByTemp[0]}analogous(e=5,r=12){let o=Math.round(this.input.hue),i=this.hctsByHue[o],u=this.relativeTemperature(i),l=[i],d=0;for(let m=0;m<360;m++){let p=Uo(o+m),k=this.hctsByHue[p],O=this.relativeTemperature(k),L=Math.abs(O-u);u=O,d+=L;}let f=1,g=d/r,y=0;for(u=this.relativeTemperature(i);l.length<r;){let m=Uo(o+f),p=this.hctsByHue[m],k=this.relativeTemperature(p),O=Math.abs(k-u);y+=O;let L=l.length*g,V=y>=L,Y=1;for(;V&&l.length<r;){l.push(p);let B=(l.length+Y)*g;V=y>=B,Y++;}if(u=k,f++,f>360){for(;l.length<r;)l.push(p);break}}let b=[this.input],w=Math.floor((e-1)/2);for(let m=1;m<w+1;m++){let p=0-m;for(;p<0;)p=l.length+p;p>=l.length&&(p=p%l.length),b.splice(0,0,l[p]);}let v=e-w-1;for(let m=1;m<v+1;m++){let p=m;for(;p<0;)p=l.length+p;p>=l.length&&(p=p%l.length),b.push(l[p]);}return b}get complement(){if(this.complementCache!=null)return this.complementCache;let e=this.coldest.hue,r=this.tempsByHct.get(this.coldest),o=this.warmest.hue,i=this.tempsByHct.get(this.warmest)-r,u=_a.isBetween(this.input.hue,e,o),l=u?o:e,d=u?e:o,f=1,g=1e3,y=this.hctsByHue[Math.round(this.input.hue)],b=1-this.inputRelativeTemperature;for(let w=0;w<=360;w+=1){let v=ct(l+f*w);if(!_a.isBetween(v,l,d))continue;let m=this.hctsByHue[Math.round(v)],p=(this.tempsByHct.get(m)-r)/i,k=Math.abs(b-p);k<g&&(g=k,y=m);}return this.complementCache=y,this.complementCache}relativeTemperature(e){let r=this.tempsByHct.get(this.warmest)-this.tempsByHct.get(this.coldest),o=this.tempsByHct.get(e)-this.tempsByHct.get(this.coldest);return r===0?.5:o/r}get inputRelativeTemperature(){return this.inputRelativeTemperatureCache>=0?this.inputRelativeTemperatureCache:(this.inputRelativeTemperatureCache=this.relativeTemperature(this.input),this.inputRelativeTemperatureCache)}get tempsByHct(){if(this.tempsByHctCache.size>0)return this.tempsByHctCache;let e=this.hctsByHue.concat([this.input]),r=new Map;for(let o of e)r.set(o,_a.rawTemperature(o));return this.tempsByHctCache=r,r}get hctsByHue(){if(this.hctsByHueCache.length>0)return this.hctsByHueCache;let e=[];for(let r=0;r<=360;r+=1){let o=ue.from(r,this.input.chroma,this.input.tone);e.push(o);}return this.hctsByHueCache=e,this.hctsByHueCache}static isBetween(e,r,o){return r<o?r<=e&&e<=o:r<=e||e<=o}static rawTemperature(e){let r=Hu(e.toInt()),o=ct(Math.atan2(r[2],r[1])*180/Math.PI),i=Math.sqrt(r[1]*r[1]+r[2]*r[2]);return -0.5+.02*Math.pow(i,1.07)*Math.cos(ct(o-50)*Math.PI/180)}},ee=class{constructor(t,e,r,o){this.low=t,this.normal=e,this.medium=r,this.high=o;}get(t){return t<=-1?this.low:t<0?Jr(this.low,this.normal,(t- -1)/1):t<.5?Jr(this.normal,this.medium,(t-0)/.5):t<1?Jr(this.medium,this.high,(t-.5)/.5):this.high}},De=class{constructor(t,e,r,o,i,u){this.roleA=t,this.roleB=e,this.delta=r,this.polarity=o,this.stayTogether=i,this.constraint=u,this.constraint=u??"exact";}},S;(function(t){t[t.MONOCHROME=0]="MONOCHROME",t[t.NEUTRAL=1]="NEUTRAL",t[t.TONAL_SPOT=2]="TONAL_SPOT",t[t.VIBRANT=3]="VIBRANT",t[t.EXPRESSIVE=4]="EXPRESSIVE",t[t.FIDELITY=5]="FIDELITY",t[t.CONTENT=6]="CONTENT",t[t.RAINBOW=7]="RAINBOW",t[t.FRUIT_SALAD=8]="FRUIT_SALAD";})(S||(S={}));function Tr(t){return t.variant===S.FIDELITY||t.variant===S.CONTENT}function Le(t){return t.variant===S.MONOCHROME}function Xu(t,e,r,o){let i=r,u=ue.from(t,e,r);if(u.chroma<e){let l=u.chroma;for(;u.chroma<e;){i+=o?-1:1;let d=ue.from(t,e,i);if(l>d.chroma||Math.abs(d.chroma-e)<.4)break;let f=Math.abs(d.chroma-e),g=Math.abs(u.chroma-e);f<g&&(u=d),l=Math.max(l,d.chroma);}}return i}var Ju=class{primaryPaletteKeyColor(){return M.fromPalette({name:"primary_palette_key_color",palette:t=>t.primaryPalette,tone:t=>t.primaryPalette.keyColor.tone})}secondaryPaletteKeyColor(){return M.fromPalette({name:"secondary_palette_key_color",palette:t=>t.secondaryPalette,tone:t=>t.secondaryPalette.keyColor.tone})}tertiaryPaletteKeyColor(){return M.fromPalette({name:"tertiary_palette_key_color",palette:t=>t.tertiaryPalette,tone:t=>t.tertiaryPalette.keyColor.tone})}neutralPaletteKeyColor(){return M.fromPalette({name:"neutral_palette_key_color",palette:t=>t.neutralPalette,tone:t=>t.neutralPalette.keyColor.tone})}neutralVariantPaletteKeyColor(){return M.fromPalette({name:"neutral_variant_palette_key_color",palette:t=>t.neutralVariantPalette,tone:t=>t.neutralVariantPalette.keyColor.tone})}errorPaletteKeyColor(){return M.fromPalette({name:"error_palette_key_color",palette:t=>t.errorPalette,tone:t=>t.errorPalette.keyColor.tone})}background(){return M.fromPalette({name:"background",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:98,isBackground:true})}onBackground(){return M.fromPalette({name:"on_background",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:10,background:t=>this.background(),contrastCurve:t=>new ee(3,3,4.5,7)})}surface(){return M.fromPalette({name:"surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:98,isBackground:true})}surfaceDim(){return M.fromPalette({name:"surface_dim",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:new ee(87,87,80,75).get(t.contrastLevel),isBackground:true})}surfaceBright(){return M.fromPalette({name:"surface_bright",palette:t=>t.neutralPalette,tone:t=>t.isDark?new ee(24,24,29,34).get(t.contrastLevel):98,isBackground:true})}surfaceContainerLowest(){return M.fromPalette({name:"surface_container_lowest",palette:t=>t.neutralPalette,tone:t=>t.isDark?new ee(4,4,2,0).get(t.contrastLevel):100,isBackground:true})}surfaceContainerLow(){return M.fromPalette({name:"surface_container_low",palette:t=>t.neutralPalette,tone:t=>t.isDark?new ee(10,10,11,12).get(t.contrastLevel):new ee(96,96,96,95).get(t.contrastLevel),isBackground:true})}surfaceContainer(){return M.fromPalette({name:"surface_container",palette:t=>t.neutralPalette,tone:t=>t.isDark?new ee(12,12,16,20).get(t.contrastLevel):new ee(94,94,92,90).get(t.contrastLevel),isBackground:true})}surfaceContainerHigh(){return M.fromPalette({name:"surface_container_high",palette:t=>t.neutralPalette,tone:t=>t.isDark?new ee(17,17,21,25).get(t.contrastLevel):new ee(92,92,88,85).get(t.contrastLevel),isBackground:true})}surfaceContainerHighest(){return M.fromPalette({name:"surface_container_highest",palette:t=>t.neutralPalette,tone:t=>t.isDark?new ee(22,22,26,30).get(t.contrastLevel):new ee(90,90,84,80).get(t.contrastLevel),isBackground:true})}onSurface(){return M.fromPalette({name:"on_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:10,background:t=>this.highestSurface(t),contrastCurve:t=>new ee(4.5,7,11,21)})}surfaceVariant(){return M.fromPalette({name:"surface_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?30:90,isBackground:true})}onSurfaceVariant(){return M.fromPalette({name:"on_surface_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?80:30,background:t=>this.highestSurface(t),contrastCurve:t=>new ee(3,4.5,7,11)})}inverseSurface(){return M.fromPalette({name:"inverse_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:20,isBackground:true})}inverseOnSurface(){return M.fromPalette({name:"inverse_on_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?20:95,background:t=>this.inverseSurface(),contrastCurve:t=>new ee(4.5,7,11,21)})}outline(){return M.fromPalette({name:"outline",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?60:50,background:t=>this.highestSurface(t),contrastCurve:t=>new ee(1.5,3,4.5,7)})}outlineVariant(){return M.fromPalette({name:"outline_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?30:80,background:t=>this.highestSurface(t),contrastCurve:t=>new ee(1,1,3,4.5)})}shadow(){return M.fromPalette({name:"shadow",palette:t=>t.neutralPalette,tone:t=>0})}scrim(){return M.fromPalette({name:"scrim",palette:t=>t.neutralPalette,tone:t=>0})}surfaceTint(){return M.fromPalette({name:"surface_tint",palette:t=>t.primaryPalette,tone:t=>t.isDark?80:40,isBackground:true})}primary(){return M.fromPalette({name:"primary",palette:t=>t.primaryPalette,tone:t=>Le(t)?t.isDark?100:0:t.isDark?80:40,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new ee(3,4.5,7,7),toneDeltaPair:t=>new De(this.primaryContainer(),this.primary(),10,"nearer",false)})}primaryDim(){}onPrimary(){return M.fromPalette({name:"on_primary",palette:t=>t.primaryPalette,tone:t=>Le(t)?t.isDark?10:90:t.isDark?20:100,background:t=>this.primary(),contrastCurve:t=>new ee(4.5,7,11,21)})}primaryContainer(){return M.fromPalette({name:"primary_container",palette:t=>t.primaryPalette,tone:t=>Tr(t)?t.sourceColorHct.tone:Le(t)?t.isDark?85:25:t.isDark?30:90,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new ee(1,1,3,4.5),toneDeltaPair:t=>new De(this.primaryContainer(),this.primary(),10,"nearer",false)})}onPrimaryContainer(){return M.fromPalette({name:"on_primary_container",palette:t=>t.primaryPalette,tone:t=>Tr(t)?M.foregroundTone(this.primaryContainer().tone(t),4.5):Le(t)?t.isDark?0:100:t.isDark?90:30,background:t=>this.primaryContainer(),contrastCurve:t=>new ee(3,4.5,7,11)})}inversePrimary(){return M.fromPalette({name:"inverse_primary",palette:t=>t.primaryPalette,tone:t=>t.isDark?40:80,background:t=>this.inverseSurface(),contrastCurve:t=>new ee(3,4.5,7,7)})}secondary(){return M.fromPalette({name:"secondary",palette:t=>t.secondaryPalette,tone:t=>t.isDark?80:40,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new ee(3,4.5,7,7),toneDeltaPair:t=>new De(this.secondaryContainer(),this.secondary(),10,"nearer",false)})}secondaryDim(){}onSecondary(){return M.fromPalette({name:"on_secondary",palette:t=>t.secondaryPalette,tone:t=>Le(t)?t.isDark?10:100:t.isDark?20:100,background:t=>this.secondary(),contrastCurve:t=>new ee(4.5,7,11,21)})}secondaryContainer(){return M.fromPalette({name:"secondary_container",palette:t=>t.secondaryPalette,tone:t=>{let e=t.isDark?30:90;return Le(t)?t.isDark?30:85:Tr(t)?Xu(t.secondaryPalette.hue,t.secondaryPalette.chroma,e,!t.isDark):e},isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new ee(1,1,3,4.5),toneDeltaPair:t=>new De(this.secondaryContainer(),this.secondary(),10,"nearer",false)})}onSecondaryContainer(){return M.fromPalette({name:"on_secondary_container",palette:t=>t.secondaryPalette,tone:t=>Le(t)?t.isDark?90:10:Tr(t)?M.foregroundTone(this.secondaryContainer().tone(t),4.5):t.isDark?90:30,background:t=>this.secondaryContainer(),contrastCurve:t=>new ee(3,4.5,7,11)})}tertiary(){return M.fromPalette({name:"tertiary",palette:t=>t.tertiaryPalette,tone:t=>Le(t)?t.isDark?90:25:t.isDark?80:40,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new ee(3,4.5,7,7),toneDeltaPair:t=>new De(this.tertiaryContainer(),this.tertiary(),10,"nearer",false)})}tertiaryDim(){}onTertiary(){return M.fromPalette({name:"on_tertiary",palette:t=>t.tertiaryPalette,tone:t=>Le(t)?t.isDark?10:90:t.isDark?20:100,background:t=>this.tertiary(),contrastCurve:t=>new ee(4.5,7,11,21)})}tertiaryContainer(){return M.fromPalette({name:"tertiary_container",palette:t=>t.tertiaryPalette,tone:t=>{if(Le(t))return t.isDark?60:49;if(!Tr(t))return t.isDark?30:90;let e=t.tertiaryPalette.getHct(t.sourceColorHct.tone);return wn.fixIfDisliked(e).tone},isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new ee(1,1,3,4.5),toneDeltaPair:t=>new De(this.tertiaryContainer(),this.tertiary(),10,"nearer",false)})}onTertiaryContainer(){return M.fromPalette({name:"on_tertiary_container",palette:t=>t.tertiaryPalette,tone:t=>Le(t)?t.isDark?0:100:Tr(t)?M.foregroundTone(this.tertiaryContainer().tone(t),4.5):t.isDark?90:30,background:t=>this.tertiaryContainer(),contrastCurve:t=>new ee(3,4.5,7,11)})}error(){return M.fromPalette({name:"error",palette:t=>t.errorPalette,tone:t=>t.isDark?80:40,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new ee(3,4.5,7,7),toneDeltaPair:t=>new De(this.errorContainer(),this.error(),10,"nearer",false)})}errorDim(){}onError(){return M.fromPalette({name:"on_error",palette:t=>t.errorPalette,tone:t=>t.isDark?20:100,background:t=>this.error(),contrastCurve:t=>new ee(4.5,7,11,21)})}errorContainer(){return M.fromPalette({name:"error_container",palette:t=>t.errorPalette,tone:t=>t.isDark?30:90,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new ee(1,1,3,4.5),toneDeltaPair:t=>new De(this.errorContainer(),this.error(),10,"nearer",false)})}onErrorContainer(){return M.fromPalette({name:"on_error_container",palette:t=>t.errorPalette,tone:t=>Le(t)?t.isDark?90:10:t.isDark?90:30,background:t=>this.errorContainer(),contrastCurve:t=>new ee(3,4.5,7,11)})}primaryFixed(){return M.fromPalette({name:"primary_fixed",palette:t=>t.primaryPalette,tone:t=>Le(t)?40:90,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new ee(1,1,3,4.5),toneDeltaPair:t=>new De(this.primaryFixed(),this.primaryFixedDim(),10,"lighter",true)})}primaryFixedDim(){return M.fromPalette({name:"primary_fixed_dim",palette:t=>t.primaryPalette,tone:t=>Le(t)?30:80,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new ee(1,1,3,4.5),toneDeltaPair:t=>new De(this.primaryFixed(),this.primaryFixedDim(),10,"lighter",true)})}onPrimaryFixed(){return M.fromPalette({name:"on_primary_fixed",palette:t=>t.primaryPalette,tone:t=>Le(t)?100:10,background:t=>this.primaryFixedDim(),secondBackground:t=>this.primaryFixed(),contrastCurve:t=>new ee(4.5,7,11,21)})}onPrimaryFixedVariant(){return M.fromPalette({name:"on_primary_fixed_variant",palette:t=>t.primaryPalette,tone:t=>Le(t)?90:30,background:t=>this.primaryFixedDim(),secondBackground:t=>this.primaryFixed(),contrastCurve:t=>new ee(3,4.5,7,11)})}secondaryFixed(){return M.fromPalette({name:"secondary_fixed",palette:t=>t.secondaryPalette,tone:t=>Le(t)?80:90,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new ee(1,1,3,4.5),toneDeltaPair:t=>new De(this.secondaryFixed(),this.secondaryFixedDim(),10,"lighter",true)})}secondaryFixedDim(){return M.fromPalette({name:"secondary_fixed_dim",palette:t=>t.secondaryPalette,tone:t=>Le(t)?70:80,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new ee(1,1,3,4.5),toneDeltaPair:t=>new De(this.secondaryFixed(),this.secondaryFixedDim(),10,"lighter",true)})}onSecondaryFixed(){return M.fromPalette({name:"on_secondary_fixed",palette:t=>t.secondaryPalette,tone:t=>10,background:t=>this.secondaryFixedDim(),secondBackground:t=>this.secondaryFixed(),contrastCurve:t=>new ee(4.5,7,11,21)})}onSecondaryFixedVariant(){return M.fromPalette({name:"on_secondary_fixed_variant",palette:t=>t.secondaryPalette,tone:t=>Le(t)?25:30,background:t=>this.secondaryFixedDim(),secondBackground:t=>this.secondaryFixed(),contrastCurve:t=>new ee(3,4.5,7,11)})}tertiaryFixed(){return M.fromPalette({name:"tertiary_fixed",palette:t=>t.tertiaryPalette,tone:t=>Le(t)?40:90,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new ee(1,1,3,4.5),toneDeltaPair:t=>new De(this.tertiaryFixed(),this.tertiaryFixedDim(),10,"lighter",true)})}tertiaryFixedDim(){return M.fromPalette({name:"tertiary_fixed_dim",palette:t=>t.tertiaryPalette,tone:t=>Le(t)?30:80,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new ee(1,1,3,4.5),toneDeltaPair:t=>new De(this.tertiaryFixed(),this.tertiaryFixedDim(),10,"lighter",true)})}onTertiaryFixed(){return M.fromPalette({name:"on_tertiary_fixed",palette:t=>t.tertiaryPalette,tone:t=>Le(t)?100:10,background:t=>this.tertiaryFixedDim(),secondBackground:t=>this.tertiaryFixed(),contrastCurve:t=>new ee(4.5,7,11,21)})}onTertiaryFixedVariant(){return M.fromPalette({name:"on_tertiary_fixed_variant",palette:t=>t.tertiaryPalette,tone:t=>Le(t)?90:30,background:t=>this.tertiaryFixedDim(),secondBackground:t=>this.tertiaryFixed(),contrastCurve:t=>new ee(3,4.5,7,11)})}highestSurface(t){return t.isDark?this.surfaceBright():this.surfaceDim()}};function ye(t,e=0,r=100,o=1){let i=Jo(t.hue,t.chroma*o,100,true);return Je(e,r,i)}function qt(t,e=0,r=100){let o=Jo(t.hue,t.chroma,0,false);return Je(e,r,o)}function Jo(t,e,r,o){let i=r,u=ue.from(t,e,i);for(;u.chroma<e&&!(r<0||r>100);){r+=o?-1:1;let l=ue.from(t,e,r);u.chroma<l.chroma&&(u=l,i=r);}return i}function ae(t){return t===1.5?new ee(1.5,1.5,3,5.5):t===3?new ee(3,3,4.5,7):t===4.5?new ee(4.5,4.5,7,11):t===6?new ee(6,6,7,11):t===7?new ee(7,7,11,21):t===9?new ee(9,9,11,21):t===11?new ee(11,11,21,21):t===21?new ee(21,21,21,21):new ee(t,t,7,21)}var Zu=class extends Ju{surface(){let t=M.fromPalette({name:"surface",palette:e=>e.neutralPalette,tone:e=>(super.surface().tone(e),e.platform==="phone"?e.isDark?4:ue.isYellow(e.neutralPalette.hue)?99:e.variant===S.VIBRANT?97:98:0),isBackground:true});return se(super.surface(),"2025",t)}surfaceDim(){let t=M.fromPalette({name:"surface_dim",palette:e=>e.neutralPalette,tone:e=>e.isDark?4:ue.isYellow(e.neutralPalette.hue)?90:e.variant===S.VIBRANT?85:87,isBackground:true,chromaMultiplier:e=>{if(!e.isDark){if(e.variant===S.NEUTRAL)return 2.5;if(e.variant===S.TONAL_SPOT)return 1.7;if(e.variant===S.EXPRESSIVE)return ue.isYellow(e.neutralPalette.hue)?2.7:1.75;if(e.variant===S.VIBRANT)return 1.36}return 1}});return se(super.surfaceDim(),"2025",t)}surfaceBright(){let t=M.fromPalette({name:"surface_bright",palette:e=>e.neutralPalette,tone:e=>e.isDark?18:ue.isYellow(e.neutralPalette.hue)?99:e.variant===S.VIBRANT?97:98,isBackground:true,chromaMultiplier:e=>{if(e.isDark){if(e.variant===S.NEUTRAL)return 2.5;if(e.variant===S.TONAL_SPOT)return 1.7;if(e.variant===S.EXPRESSIVE)return ue.isYellow(e.neutralPalette.hue)?2.7:1.75;if(e.variant===S.VIBRANT)return 1.36}return 1}});return se(super.surfaceBright(),"2025",t)}surfaceContainerLowest(){let t=M.fromPalette({name:"surface_container_lowest",palette:e=>e.neutralPalette,tone:e=>e.isDark?0:100,isBackground:true});return se(super.surfaceContainerLowest(),"2025",t)}surfaceContainerLow(){let t=M.fromPalette({name:"surface_container_low",palette:e=>e.neutralPalette,tone:e=>e.platform==="phone"?e.isDark?6:ue.isYellow(e.neutralPalette.hue)?98:e.variant===S.VIBRANT?95:96:15,isBackground:true,chromaMultiplier:e=>{if(e.platform==="phone"){if(e.variant===S.NEUTRAL)return 1.3;if(e.variant===S.TONAL_SPOT)return 1.25;if(e.variant===S.EXPRESSIVE)return ue.isYellow(e.neutralPalette.hue)?1.3:1.15;if(e.variant===S.VIBRANT)return 1.08}return 1}});return se(super.surfaceContainerLow(),"2025",t)}surfaceContainer(){let t=M.fromPalette({name:"surface_container",palette:e=>e.neutralPalette,tone:e=>e.platform==="phone"?e.isDark?9:ue.isYellow(e.neutralPalette.hue)?96:e.variant===S.VIBRANT?92:94:20,isBackground:true,chromaMultiplier:e=>{if(e.platform==="phone"){if(e.variant===S.NEUTRAL)return 1.6;if(e.variant===S.TONAL_SPOT)return 1.4;if(e.variant===S.EXPRESSIVE)return ue.isYellow(e.neutralPalette.hue)?1.6:1.3;if(e.variant===S.VIBRANT)return 1.15}return 1}});return se(super.surfaceContainer(),"2025",t)}surfaceContainerHigh(){let t=M.fromPalette({name:"surface_container_high",palette:e=>e.neutralPalette,tone:e=>e.platform==="phone"?e.isDark?12:ue.isYellow(e.neutralPalette.hue)?94:e.variant===S.VIBRANT?90:92:25,isBackground:true,chromaMultiplier:e=>{if(e.platform==="phone"){if(e.variant===S.NEUTRAL)return 1.9;if(e.variant===S.TONAL_SPOT)return 1.5;if(e.variant===S.EXPRESSIVE)return ue.isYellow(e.neutralPalette.hue)?1.95:1.45;if(e.variant===S.VIBRANT)return 1.22}return 1}});return se(super.surfaceContainerHigh(),"2025",t)}surfaceContainerHighest(){let t=M.fromPalette({name:"surface_container_highest",palette:e=>e.neutralPalette,tone:e=>e.isDark?15:ue.isYellow(e.neutralPalette.hue)?92:e.variant===S.VIBRANT?88:90,isBackground:true,chromaMultiplier:e=>e.variant===S.NEUTRAL?2.2:e.variant===S.TONAL_SPOT?1.7:e.variant===S.EXPRESSIVE?ue.isYellow(e.neutralPalette.hue)?2.3:1.6:e.variant===S.VIBRANT?1.29:1});return se(super.surfaceContainerHighest(),"2025",t)}onSurface(){let t=M.fromPalette({name:"on_surface",palette:e=>e.neutralPalette,tone:e=>e.variant===S.VIBRANT?ye(e.neutralPalette,0,100,1.1):M.getInitialToneFromBackground(r=>r.platform==="phone"?this.highestSurface(r):this.surfaceContainerHigh())(e),chromaMultiplier:e=>{if(e.platform==="phone"){if(e.variant===S.NEUTRAL)return 2.2;if(e.variant===S.TONAL_SPOT)return 1.7;if(e.variant===S.EXPRESSIVE)return ue.isYellow(e.neutralPalette.hue)?e.isDark?3:2.3:1.6}return 1},background:e=>e.platform==="phone"?this.highestSurface(e):this.surfaceContainerHigh(),contrastCurve:e=>e.isDark&&e.platform==="phone"?ae(11):ae(9)});return se(super.onSurface(),"2025",t)}onSurfaceVariant(){let t=M.fromPalette({name:"on_surface_variant",palette:e=>e.neutralPalette,chromaMultiplier:e=>{if(e.platform==="phone"){if(e.variant===S.NEUTRAL)return 2.2;if(e.variant===S.TONAL_SPOT)return 1.7;if(e.variant===S.EXPRESSIVE)return ue.isYellow(e.neutralPalette.hue)?e.isDark?3:2.3:1.6}return 1},background:e=>e.platform==="phone"?this.highestSurface(e):this.surfaceContainerHigh(),contrastCurve:e=>e.platform==="phone"?e.isDark?ae(6):ae(4.5):ae(7)});return se(super.onSurfaceVariant(),"2025",t)}outline(){let t=M.fromPalette({name:"outline",palette:e=>e.neutralPalette,chromaMultiplier:e=>{if(e.platform==="phone"){if(e.variant===S.NEUTRAL)return 2.2;if(e.variant===S.TONAL_SPOT)return 1.7;if(e.variant===S.EXPRESSIVE)return ue.isYellow(e.neutralPalette.hue)?e.isDark?3:2.3:1.6}return 1},background:e=>e.platform==="phone"?this.highestSurface(e):this.surfaceContainerHigh(),contrastCurve:e=>e.platform==="phone"?ae(3):ae(4.5)});return se(super.outline(),"2025",t)}outlineVariant(){let t=M.fromPalette({name:"outline_variant",palette:e=>e.neutralPalette,chromaMultiplier:e=>{if(e.platform==="phone"){if(e.variant===S.NEUTRAL)return 2.2;if(e.variant===S.TONAL_SPOT)return 1.7;if(e.variant===S.EXPRESSIVE)return ue.isYellow(e.neutralPalette.hue)?e.isDark?3:2.3:1.6}return 1},background:e=>e.platform==="phone"?this.highestSurface(e):this.surfaceContainerHigh(),contrastCurve:e=>e.platform==="phone"?ae(1.5):ae(3)});return se(super.outlineVariant(),"2025",t)}inverseSurface(){let t=M.fromPalette({name:"inverse_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?98:4,isBackground:true});return se(super.inverseSurface(),"2025",t)}inverseOnSurface(){let t=M.fromPalette({name:"inverse_on_surface",palette:e=>e.neutralPalette,background:e=>this.inverseSurface(),contrastCurve:e=>ae(7)});return se(super.inverseOnSurface(),"2025",t)}primary(){let t=M.fromPalette({name:"primary",palette:e=>e.primaryPalette,tone:e=>e.variant===S.NEUTRAL?e.platform==="phone"?e.isDark?80:40:90:e.variant===S.TONAL_SPOT?e.platform==="phone"?e.isDark?80:ye(e.primaryPalette):ye(e.primaryPalette,0,90):e.variant===S.EXPRESSIVE?e.platform==="phone"?ye(e.primaryPalette,0,ue.isYellow(e.primaryPalette.hue)?25:ue.isCyan(e.primaryPalette.hue)?88:98):ye(e.primaryPalette):e.platform==="phone"?ye(e.primaryPalette,0,ue.isCyan(e.primaryPalette.hue)?88:98):ye(e.primaryPalette),isBackground:true,background:e=>e.platform==="phone"?this.highestSurface(e):this.surfaceContainerHigh(),contrastCurve:e=>e.platform==="phone"?ae(4.5):ae(7),toneDeltaPair:e=>e.platform==="phone"?new De(this.primaryContainer(),this.primary(),5,"relative_lighter",true,"farther"):void 0});return se(super.primary(),"2025",t)}primaryDim(){return M.fromPalette({name:"primary_dim",palette:t=>t.primaryPalette,tone:t=>t.variant===S.NEUTRAL?85:t.variant===S.TONAL_SPOT?ye(t.primaryPalette,0,90):ye(t.primaryPalette),isBackground:true,background:t=>this.surfaceContainerHigh(),contrastCurve:t=>ae(4.5),toneDeltaPair:t=>new De(this.primaryDim(),this.primary(),5,"darker",true,"farther")})}onPrimary(){let t=M.fromPalette({name:"on_primary",palette:e=>e.primaryPalette,background:e=>e.platform==="phone"?this.primary():this.primaryDim(),contrastCurve:e=>e.platform==="phone"?ae(6):ae(7)});return se(super.onPrimary(),"2025",t)}primaryContainer(){let t=M.fromPalette({name:"primary_container",palette:e=>e.primaryPalette,tone:e=>e.platform==="watch"?30:e.variant===S.NEUTRAL?e.isDark?30:90:e.variant===S.TONAL_SPOT?e.isDark?qt(e.primaryPalette,35,93):ye(e.primaryPalette,0,90):e.variant===S.EXPRESSIVE?e.isDark?ye(e.primaryPalette,30,93):ye(e.primaryPalette,78,ue.isCyan(e.primaryPalette.hue)?88:90):e.isDark?qt(e.primaryPalette,66,93):ye(e.primaryPalette,66,ue.isCyan(e.primaryPalette.hue)?88:93),isBackground:true,background:e=>e.platform==="phone"?this.highestSurface(e):void 0,toneDeltaPair:e=>e.platform==="phone"?void 0:new De(this.primaryContainer(),this.primaryDim(),10,"darker",true,"farther"),contrastCurve:e=>e.platform==="phone"&&e.contrastLevel>0?ae(1.5):void 0});return se(super.primaryContainer(),"2025",t)}onPrimaryContainer(){let t=M.fromPalette({name:"on_primary_container",palette:e=>e.primaryPalette,background:e=>this.primaryContainer(),contrastCurve:e=>e.platform==="phone"?ae(6):ae(7)});return se(super.onPrimaryContainer(),"2025",t)}primaryFixed(){let t=M.fromPalette({name:"primary_fixed",palette:e=>e.primaryPalette,tone:e=>{let r=Object.assign({},e,{isDark:false,contrastLevel:0});return this.primaryContainer().getTone(r)},isBackground:true,background:e=>e.platform==="phone"?this.highestSurface(e):void 0,contrastCurve:e=>e.platform==="phone"&&e.contrastLevel>0?ae(1.5):void 0});return se(super.primaryFixed(),"2025",t)}primaryFixedDim(){let t=M.fromPalette({name:"primary_fixed_dim",palette:e=>e.primaryPalette,tone:e=>this.primaryFixed().getTone(e),isBackground:true,toneDeltaPair:e=>new De(this.primaryFixedDim(),this.primaryFixed(),5,"darker",true,"exact")});return se(super.primaryFixedDim(),"2025",t)}onPrimaryFixed(){let t=M.fromPalette({name:"on_primary_fixed",palette:e=>e.primaryPalette,background:e=>this.primaryFixedDim(),contrastCurve:e=>ae(7)});return se(super.onPrimaryFixed(),"2025",t)}onPrimaryFixedVariant(){let t=M.fromPalette({name:"on_primary_fixed_variant",palette:e=>e.primaryPalette,background:e=>this.primaryFixedDim(),contrastCurve:e=>ae(4.5)});return se(super.onPrimaryFixedVariant(),"2025",t)}inversePrimary(){let t=M.fromPalette({name:"inverse_primary",palette:e=>e.primaryPalette,tone:e=>ye(e.primaryPalette),background:e=>this.inverseSurface(),contrastCurve:e=>e.platform==="phone"?ae(6):ae(7)});return se(super.inversePrimary(),"2025",t)}secondary(){let t=M.fromPalette({name:"secondary",palette:e=>e.secondaryPalette,tone:e=>e.platform==="watch"?e.variant===S.NEUTRAL?90:ye(e.secondaryPalette,0,90):e.variant===S.NEUTRAL?e.isDark?qt(e.secondaryPalette,0,98):ye(e.secondaryPalette):e.variant===S.VIBRANT?ye(e.secondaryPalette,0,e.isDark?90:98):e.isDark?80:ye(e.secondaryPalette),isBackground:true,background:e=>e.platform==="phone"?this.highestSurface(e):this.surfaceContainerHigh(),contrastCurve:e=>e.platform==="phone"?ae(4.5):ae(7),toneDeltaPair:e=>e.platform==="phone"?new De(this.secondaryContainer(),this.secondary(),5,"relative_lighter",true,"farther"):void 0});return se(super.secondary(),"2025",t)}secondaryDim(){return M.fromPalette({name:"secondary_dim",palette:t=>t.secondaryPalette,tone:t=>t.variant===S.NEUTRAL?85:ye(t.secondaryPalette,0,90),isBackground:true,background:t=>this.surfaceContainerHigh(),contrastCurve:t=>ae(4.5),toneDeltaPair:t=>new De(this.secondaryDim(),this.secondary(),5,"darker",true,"farther")})}onSecondary(){let t=M.fromPalette({name:"on_secondary",palette:e=>e.secondaryPalette,background:e=>e.platform==="phone"?this.secondary():this.secondaryDim(),contrastCurve:e=>e.platform==="phone"?ae(6):ae(7)});return se(super.onSecondary(),"2025",t)}secondaryContainer(){let t=M.fromPalette({name:"secondary_container",palette:e=>e.secondaryPalette,tone:e=>e.platform==="watch"?30:e.variant===S.VIBRANT?e.isDark?qt(e.secondaryPalette,30,40):ye(e.secondaryPalette,84,90):e.variant===S.EXPRESSIVE?e.isDark?15:ye(e.secondaryPalette,90,95):e.isDark?25:90,isBackground:true,background:e=>e.platform==="phone"?this.highestSurface(e):void 0,toneDeltaPair:e=>e.platform==="watch"?new De(this.secondaryContainer(),this.secondaryDim(),10,"darker",true,"farther"):void 0,contrastCurve:e=>e.platform==="phone"&&e.contrastLevel>0?ae(1.5):void 0});return se(super.secondaryContainer(),"2025",t)}onSecondaryContainer(){let t=M.fromPalette({name:"on_secondary_container",palette:e=>e.secondaryPalette,background:e=>this.secondaryContainer(),contrastCurve:e=>e.platform==="phone"?ae(6):ae(7)});return se(super.onSecondaryContainer(),"2025",t)}secondaryFixed(){let t=M.fromPalette({name:"secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>{let r=Object.assign({},e,{isDark:false,contrastLevel:0});return this.secondaryContainer().getTone(r)},isBackground:true,background:e=>e.platform==="phone"?this.highestSurface(e):void 0,contrastCurve:e=>e.platform==="phone"&&e.contrastLevel>0?ae(1.5):void 0});return se(super.secondaryFixed(),"2025",t)}secondaryFixedDim(){let t=M.fromPalette({name:"secondary_fixed_dim",palette:e=>e.secondaryPalette,tone:e=>this.secondaryFixed().getTone(e),isBackground:true,toneDeltaPair:e=>new De(this.secondaryFixedDim(),this.secondaryFixed(),5,"darker",true,"exact")});return se(super.secondaryFixedDim(),"2025",t)}onSecondaryFixed(){let t=M.fromPalette({name:"on_secondary_fixed",palette:e=>e.secondaryPalette,background:e=>this.secondaryFixedDim(),contrastCurve:e=>ae(7)});return se(super.onSecondaryFixed(),"2025",t)}onSecondaryFixedVariant(){let t=M.fromPalette({name:"on_secondary_fixed_variant",palette:e=>e.secondaryPalette,background:e=>this.secondaryFixedDim(),contrastCurve:e=>ae(4.5)});return se(super.onSecondaryFixedVariant(),"2025",t)}tertiary(){let t=M.fromPalette({name:"tertiary",palette:e=>e.tertiaryPalette,tone:e=>e.platform==="watch"?e.variant===S.TONAL_SPOT?ye(e.tertiaryPalette,0,90):ye(e.tertiaryPalette):e.variant===S.EXPRESSIVE||e.variant===S.VIBRANT?ye(e.tertiaryPalette,0,ue.isCyan(e.tertiaryPalette.hue)?88:e.isDark?98:100):e.isDark?ye(e.tertiaryPalette,0,98):ye(e.tertiaryPalette),isBackground:true,background:e=>e.platform==="phone"?this.highestSurface(e):this.surfaceContainerHigh(),contrastCurve:e=>e.platform==="phone"?ae(4.5):ae(7),toneDeltaPair:e=>e.platform==="phone"?new De(this.tertiaryContainer(),this.tertiary(),5,"relative_lighter",true,"farther"):void 0});return se(super.tertiary(),"2025",t)}tertiaryDim(){return M.fromPalette({name:"tertiary_dim",palette:t=>t.tertiaryPalette,tone:t=>t.variant===S.TONAL_SPOT?ye(t.tertiaryPalette,0,90):ye(t.tertiaryPalette),isBackground:true,background:t=>this.surfaceContainerHigh(),contrastCurve:t=>ae(4.5),toneDeltaPair:t=>new De(this.tertiaryDim(),this.tertiary(),5,"darker",true,"farther")})}onTertiary(){let t=M.fromPalette({name:"on_tertiary",palette:e=>e.tertiaryPalette,background:e=>e.platform==="phone"?this.tertiary():this.tertiaryDim(),contrastCurve:e=>e.platform==="phone"?ae(6):ae(7)});return se(super.onTertiary(),"2025",t)}tertiaryContainer(){let t=M.fromPalette({name:"tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>e.platform==="watch"?e.variant===S.TONAL_SPOT?ye(e.tertiaryPalette,0,90):ye(e.tertiaryPalette):e.variant===S.NEUTRAL?e.isDark?ye(e.tertiaryPalette,0,93):ye(e.tertiaryPalette,0,96):e.variant===S.TONAL_SPOT?ye(e.tertiaryPalette,0,e.isDark?93:100):e.variant===S.EXPRESSIVE?ye(e.tertiaryPalette,75,ue.isCyan(e.tertiaryPalette.hue)?88:e.isDark?93:100):e.isDark?ye(e.tertiaryPalette,0,93):ye(e.tertiaryPalette,72,100),isBackground:true,background:e=>e.platform==="phone"?this.highestSurface(e):void 0,toneDeltaPair:e=>e.platform==="watch"?new De(this.tertiaryContainer(),this.tertiaryDim(),10,"darker",true,"farther"):void 0,contrastCurve:e=>e.platform==="phone"&&e.contrastLevel>0?ae(1.5):void 0});return se(super.tertiaryContainer(),"2025",t)}onTertiaryContainer(){let t=M.fromPalette({name:"on_tertiary_container",palette:e=>e.tertiaryPalette,background:e=>this.tertiaryContainer(),contrastCurve:e=>e.platform==="phone"?ae(6):ae(7)});return se(super.onTertiaryContainer(),"2025",t)}tertiaryFixed(){let t=M.fromPalette({name:"tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>{let r=Object.assign({},e,{isDark:false,contrastLevel:0});return this.tertiaryContainer().getTone(r)},isBackground:true,background:e=>e.platform==="phone"?this.highestSurface(e):void 0,contrastCurve:e=>e.platform==="phone"&&e.contrastLevel>0?ae(1.5):void 0});return se(super.tertiaryFixed(),"2025",t)}tertiaryFixedDim(){let t=M.fromPalette({name:"tertiary_fixed_dim",palette:e=>e.tertiaryPalette,tone:e=>this.tertiaryFixed().getTone(e),isBackground:true,toneDeltaPair:e=>new De(this.tertiaryFixedDim(),this.tertiaryFixed(),5,"darker",true,"exact")});return se(super.tertiaryFixedDim(),"2025",t)}onTertiaryFixed(){let t=M.fromPalette({name:"on_tertiary_fixed",palette:e=>e.tertiaryPalette,background:e=>this.tertiaryFixedDim(),contrastCurve:e=>ae(7)});return se(super.onTertiaryFixed(),"2025",t)}onTertiaryFixedVariant(){let t=M.fromPalette({name:"on_tertiary_fixed_variant",palette:e=>e.tertiaryPalette,background:e=>this.tertiaryFixedDim(),contrastCurve:e=>ae(4.5)});return se(super.onTertiaryFixedVariant(),"2025",t)}error(){let t=M.fromPalette({name:"error",palette:e=>e.errorPalette,tone:e=>e.platform==="phone"?e.isDark?qt(e.errorPalette,0,98):ye(e.errorPalette):qt(e.errorPalette),isBackground:true,background:e=>e.platform==="phone"?this.highestSurface(e):this.surfaceContainerHigh(),contrastCurve:e=>e.platform==="phone"?ae(4.5):ae(7),toneDeltaPair:e=>e.platform==="phone"?new De(this.errorContainer(),this.error(),5,"relative_lighter",true,"farther"):void 0});return se(super.error(),"2025",t)}errorDim(){return M.fromPalette({name:"error_dim",palette:t=>t.errorPalette,tone:t=>qt(t.errorPalette),isBackground:true,background:t=>this.surfaceContainerHigh(),contrastCurve:t=>ae(4.5),toneDeltaPair:t=>new De(this.errorDim(),this.error(),5,"darker",true,"farther")})}onError(){let t=M.fromPalette({name:"on_error",palette:e=>e.errorPalette,background:e=>e.platform==="phone"?this.error():this.errorDim(),contrastCurve:e=>e.platform==="phone"?ae(6):ae(7)});return se(super.onError(),"2025",t)}errorContainer(){let t=M.fromPalette({name:"error_container",palette:e=>e.errorPalette,tone:e=>e.platform==="watch"?30:e.isDark?qt(e.errorPalette,30,93):ye(e.errorPalette,0,90),isBackground:true,background:e=>e.platform==="phone"?this.highestSurface(e):void 0,toneDeltaPair:e=>e.platform==="watch"?new De(this.errorContainer(),this.errorDim(),10,"darker",true,"farther"):void 0,contrastCurve:e=>e.platform==="phone"&&e.contrastLevel>0?ae(1.5):void 0});return se(super.errorContainer(),"2025",t)}onErrorContainer(){let t=M.fromPalette({name:"on_error_container",palette:e=>e.errorPalette,background:e=>this.errorContainer(),contrastCurve:e=>e.platform==="phone"?ae(4.5):ae(7)});return se(super.onErrorContainer(),"2025",t)}surfaceVariant(){let t=Object.assign(this.surfaceContainerHighest().clone(),{name:"surface_variant"});return se(super.surfaceVariant(),"2025",t)}surfaceTint(){let t=Object.assign(this.primary().clone(),{name:"surface_tint"});return se(super.surfaceTint(),"2025",t)}background(){let t=Object.assign(this.surface().clone(),{name:"background"});return se(super.background(),"2025",t)}onBackground(){let t=Object.assign(this.onSurface().clone(),{name:"on_background",tone:e=>e.platform==="watch"?100:this.onSurface().getTone(e)});return se(super.onBackground(),"2025",t)}},_=class q{constructor(){this.allColors=[this.background(),this.onBackground(),this.surface(),this.surfaceDim(),this.surfaceBright(),this.surfaceContainerLowest(),this.surfaceContainerLow(),this.surfaceContainer(),this.surfaceContainerHigh(),this.surfaceContainerHighest(),this.onSurface(),this.onSurfaceVariant(),this.outline(),this.outlineVariant(),this.inverseSurface(),this.inverseOnSurface(),this.primary(),this.primaryDim(),this.onPrimary(),this.primaryContainer(),this.onPrimaryContainer(),this.primaryFixed(),this.primaryFixedDim(),this.onPrimaryFixed(),this.onPrimaryFixedVariant(),this.inversePrimary(),this.secondary(),this.secondaryDim(),this.onSecondary(),this.secondaryContainer(),this.onSecondaryContainer(),this.secondaryFixed(),this.secondaryFixedDim(),this.onSecondaryFixed(),this.onSecondaryFixedVariant(),this.tertiary(),this.tertiaryDim(),this.onTertiary(),this.tertiaryContainer(),this.onTertiaryContainer(),this.tertiaryFixed(),this.tertiaryFixedDim(),this.onTertiaryFixed(),this.onTertiaryFixedVariant(),this.error(),this.errorDim(),this.onError(),this.errorContainer(),this.onErrorContainer()].filter(e=>e!==void 0);}highestSurface(e){return q.colorSpec.highestSurface(e)}primaryPaletteKeyColor(){return q.colorSpec.primaryPaletteKeyColor()}secondaryPaletteKeyColor(){return q.colorSpec.secondaryPaletteKeyColor()}tertiaryPaletteKeyColor(){return q.colorSpec.tertiaryPaletteKeyColor()}neutralPaletteKeyColor(){return q.colorSpec.neutralPaletteKeyColor()}neutralVariantPaletteKeyColor(){return q.colorSpec.neutralVariantPaletteKeyColor()}errorPaletteKeyColor(){return q.colorSpec.errorPaletteKeyColor()}background(){return q.colorSpec.background()}onBackground(){return q.colorSpec.onBackground()}surface(){return q.colorSpec.surface()}surfaceDim(){return q.colorSpec.surfaceDim()}surfaceBright(){return q.colorSpec.surfaceBright()}surfaceContainerLowest(){return q.colorSpec.surfaceContainerLowest()}surfaceContainerLow(){return q.colorSpec.surfaceContainerLow()}surfaceContainer(){return q.colorSpec.surfaceContainer()}surfaceContainerHigh(){return q.colorSpec.surfaceContainerHigh()}surfaceContainerHighest(){return q.colorSpec.surfaceContainerHighest()}onSurface(){return q.colorSpec.onSurface()}surfaceVariant(){return q.colorSpec.surfaceVariant()}onSurfaceVariant(){return q.colorSpec.onSurfaceVariant()}outline(){return q.colorSpec.outline()}outlineVariant(){return q.colorSpec.outlineVariant()}inverseSurface(){return q.colorSpec.inverseSurface()}inverseOnSurface(){return q.colorSpec.inverseOnSurface()}shadow(){return q.colorSpec.shadow()}scrim(){return q.colorSpec.scrim()}surfaceTint(){return q.colorSpec.surfaceTint()}primary(){return q.colorSpec.primary()}primaryDim(){return q.colorSpec.primaryDim()}onPrimary(){return q.colorSpec.onPrimary()}primaryContainer(){return q.colorSpec.primaryContainer()}onPrimaryContainer(){return q.colorSpec.onPrimaryContainer()}inversePrimary(){return q.colorSpec.inversePrimary()}primaryFixed(){return q.colorSpec.primaryFixed()}primaryFixedDim(){return q.colorSpec.primaryFixedDim()}onPrimaryFixed(){return q.colorSpec.onPrimaryFixed()}onPrimaryFixedVariant(){return q.colorSpec.onPrimaryFixedVariant()}secondary(){return q.colorSpec.secondary()}secondaryDim(){return q.colorSpec.secondaryDim()}onSecondary(){return q.colorSpec.onSecondary()}secondaryContainer(){return q.colorSpec.secondaryContainer()}onSecondaryContainer(){return q.colorSpec.onSecondaryContainer()}secondaryFixed(){return q.colorSpec.secondaryFixed()}secondaryFixedDim(){return q.colorSpec.secondaryFixedDim()}onSecondaryFixed(){return q.colorSpec.onSecondaryFixed()}onSecondaryFixedVariant(){return q.colorSpec.onSecondaryFixedVariant()}tertiary(){return q.colorSpec.tertiary()}tertiaryDim(){return q.colorSpec.tertiaryDim()}onTertiary(){return q.colorSpec.onTertiary()}tertiaryContainer(){return q.colorSpec.tertiaryContainer()}onTertiaryContainer(){return q.colorSpec.onTertiaryContainer()}tertiaryFixed(){return q.colorSpec.tertiaryFixed()}tertiaryFixedDim(){return q.colorSpec.tertiaryFixedDim()}onTertiaryFixed(){return q.colorSpec.onTertiaryFixed()}onTertiaryFixedVariant(){return q.colorSpec.onTertiaryFixedVariant()}error(){return q.colorSpec.error()}errorDim(){return q.colorSpec.errorDim()}onError(){return q.colorSpec.onError()}errorContainer(){return q.colorSpec.errorContainer()}onErrorContainer(){return q.colorSpec.onErrorContainer()}static highestSurface(e){return q.colorSpec.highestSurface(e)}};_.contentAccentToneDelta=15;_.colorSpec=new Zu;_.primaryPaletteKeyColor=_.colorSpec.primaryPaletteKeyColor();_.secondaryPaletteKeyColor=_.colorSpec.secondaryPaletteKeyColor();_.tertiaryPaletteKeyColor=_.colorSpec.tertiaryPaletteKeyColor();_.neutralPaletteKeyColor=_.colorSpec.neutralPaletteKeyColor();_.neutralVariantPaletteKeyColor=_.colorSpec.neutralVariantPaletteKeyColor();_.background=_.colorSpec.background();_.onBackground=_.colorSpec.onBackground();_.surface=_.colorSpec.surface();_.surfaceDim=_.colorSpec.surfaceDim();_.surfaceBright=_.colorSpec.surfaceBright();_.surfaceContainerLowest=_.colorSpec.surfaceContainerLowest();_.surfaceContainerLow=_.colorSpec.surfaceContainerLow();_.surfaceContainer=_.colorSpec.surfaceContainer();_.surfaceContainerHigh=_.colorSpec.surfaceContainerHigh();_.surfaceContainerHighest=_.colorSpec.surfaceContainerHighest();_.onSurface=_.colorSpec.onSurface();_.surfaceVariant=_.colorSpec.surfaceVariant();_.onSurfaceVariant=_.colorSpec.onSurfaceVariant();_.inverseSurface=_.colorSpec.inverseSurface();_.inverseOnSurface=_.colorSpec.inverseOnSurface();_.outline=_.colorSpec.outline();_.outlineVariant=_.colorSpec.outlineVariant();_.shadow=_.colorSpec.shadow();_.scrim=_.colorSpec.scrim();_.surfaceTint=_.colorSpec.surfaceTint();_.primary=_.colorSpec.primary();_.onPrimary=_.colorSpec.onPrimary();_.primaryContainer=_.colorSpec.primaryContainer();_.onPrimaryContainer=_.colorSpec.onPrimaryContainer();_.inversePrimary=_.colorSpec.inversePrimary();_.secondary=_.colorSpec.secondary();_.onSecondary=_.colorSpec.onSecondary();_.secondaryContainer=_.colorSpec.secondaryContainer();_.onSecondaryContainer=_.colorSpec.onSecondaryContainer();_.tertiary=_.colorSpec.tertiary();_.onTertiary=_.colorSpec.onTertiary();_.tertiaryContainer=_.colorSpec.tertiaryContainer();_.onTertiaryContainer=_.colorSpec.onTertiaryContainer();_.error=_.colorSpec.error();_.onError=_.colorSpec.onError();_.errorContainer=_.colorSpec.errorContainer();_.onErrorContainer=_.colorSpec.onErrorContainer();_.primaryFixed=_.colorSpec.primaryFixed();_.primaryFixedDim=_.colorSpec.primaryFixedDim();_.onPrimaryFixed=_.colorSpec.onPrimaryFixed();_.onPrimaryFixedVariant=_.colorSpec.onPrimaryFixedVariant();_.secondaryFixed=_.colorSpec.secondaryFixed();_.secondaryFixedDim=_.colorSpec.secondaryFixedDim();_.onSecondaryFixed=_.colorSpec.onSecondaryFixed();_.onSecondaryFixedVariant=_.colorSpec.onSecondaryFixedVariant();_.tertiaryFixed=_.colorSpec.tertiaryFixed();_.tertiaryFixedDim=_.colorSpec.tertiaryFixedDim();_.onTertiaryFixed=_.colorSpec.onTertiaryFixed();_.onTertiaryFixedVariant=_.colorSpec.onTertiaryFixedVariant();var Ge=class Cn{static maybeFallbackSpecVersion(e,r){switch(r){case S.EXPRESSIVE:case S.VIBRANT:case S.TONAL_SPOT:case S.NEUTRAL:return e;default:return "2021"}}constructor(e){this.sourceColorArgb=e.sourceColorHct.toInt(),this.variant=e.variant,this.contrastLevel=e.contrastLevel,this.isDark=e.isDark,this.platform=e.platform??"phone",this.specVersion=Cn.maybeFallbackSpecVersion(e.specVersion??"2021",this.variant),this.sourceColorHct=e.sourceColorHct,this.primaryPalette=e.primaryPalette??Mr(this.specVersion).getPrimaryPalette(this.variant,e.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.secondaryPalette=e.secondaryPalette??Mr(this.specVersion).getSecondaryPalette(this.variant,e.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.tertiaryPalette=e.tertiaryPalette??Mr(this.specVersion).getTertiaryPalette(this.variant,e.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.neutralPalette=e.neutralPalette??Mr(this.specVersion).getNeutralPalette(this.variant,e.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.neutralVariantPalette=e.neutralVariantPalette??Mr(this.specVersion).getNeutralVariantPalette(this.variant,e.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.errorPalette=e.errorPalette??Mr(this.specVersion).getErrorPalette(this.variant,e.sourceColorHct,this.isDark,this.platform,this.contrastLevel)??j.fromHueAndChroma(25,84),this.colors=new _;}toString(){return `Scheme: variant=${S[this.variant]}, mode=${this.isDark?"dark":"light"}, platform=${this.platform}, contrastLevel=${this.contrastLevel.toFixed(1)}, seed=${this.sourceColorHct.toString()}, specVersion=${this.specVersion}`}static getPiecewiseHue(e,r,o){let i=Math.min(r.length-1,o.length),u=e.hue;for(let l=0;l<i;l++)if(u>=r[l]&&u<r[l+1])return ct(o[l]);return u}static getRotatedHue(e,r,o){let i=Cn.getPiecewiseHue(e,r,o);return Math.min(r.length-1,o.length)<=0&&(i=0),ct(e.hue+i)}getArgb(e){return e.getArgb(this)}getHct(e){return e.getHct(this)}get primaryPaletteKeyColor(){return this.getArgb(this.colors.primaryPaletteKeyColor())}get secondaryPaletteKeyColor(){return this.getArgb(this.colors.secondaryPaletteKeyColor())}get tertiaryPaletteKeyColor(){return this.getArgb(this.colors.tertiaryPaletteKeyColor())}get neutralPaletteKeyColor(){return this.getArgb(this.colors.neutralPaletteKeyColor())}get neutralVariantPaletteKeyColor(){return this.getArgb(this.colors.neutralVariantPaletteKeyColor())}get errorPaletteKeyColor(){return this.getArgb(this.colors.errorPaletteKeyColor())}get background(){return this.getArgb(this.colors.background())}get onBackground(){return this.getArgb(this.colors.onBackground())}get surface(){return this.getArgb(this.colors.surface())}get surfaceDim(){return this.getArgb(this.colors.surfaceDim())}get surfaceBright(){return this.getArgb(this.colors.surfaceBright())}get surfaceContainerLowest(){return this.getArgb(this.colors.surfaceContainerLowest())}get surfaceContainerLow(){return this.getArgb(this.colors.surfaceContainerLow())}get surfaceContainer(){return this.getArgb(this.colors.surfaceContainer())}get surfaceContainerHigh(){return this.getArgb(this.colors.surfaceContainerHigh())}get surfaceContainerHighest(){return this.getArgb(this.colors.surfaceContainerHighest())}get onSurface(){return this.getArgb(this.colors.onSurface())}get surfaceVariant(){return this.getArgb(this.colors.surfaceVariant())}get onSurfaceVariant(){return this.getArgb(this.colors.onSurfaceVariant())}get inverseSurface(){return this.getArgb(this.colors.inverseSurface())}get inverseOnSurface(){return this.getArgb(this.colors.inverseOnSurface())}get outline(){return this.getArgb(this.colors.outline())}get outlineVariant(){return this.getArgb(this.colors.outlineVariant())}get shadow(){return this.getArgb(this.colors.shadow())}get scrim(){return this.getArgb(this.colors.scrim())}get surfaceTint(){return this.getArgb(this.colors.surfaceTint())}get primary(){return this.getArgb(this.colors.primary())}get primaryDim(){let e=this.colors.primaryDim();if(e===void 0)throw new Error("`primaryDim` color is undefined prior to 2025 spec.");return this.getArgb(e)}get onPrimary(){return this.getArgb(this.colors.onPrimary())}get primaryContainer(){return this.getArgb(this.colors.primaryContainer())}get onPrimaryContainer(){return this.getArgb(this.colors.onPrimaryContainer())}get primaryFixed(){return this.getArgb(this.colors.primaryFixed())}get primaryFixedDim(){return this.getArgb(this.colors.primaryFixedDim())}get onPrimaryFixed(){return this.getArgb(this.colors.onPrimaryFixed())}get onPrimaryFixedVariant(){return this.getArgb(this.colors.onPrimaryFixedVariant())}get inversePrimary(){return this.getArgb(this.colors.inversePrimary())}get secondary(){return this.getArgb(this.colors.secondary())}get secondaryDim(){let e=this.colors.secondaryDim();if(e===void 0)throw new Error("`secondaryDim` color is undefined prior to 2025 spec.");return this.getArgb(e)}get onSecondary(){return this.getArgb(this.colors.onSecondary())}get secondaryContainer(){return this.getArgb(this.colors.secondaryContainer())}get onSecondaryContainer(){return this.getArgb(this.colors.onSecondaryContainer())}get secondaryFixed(){return this.getArgb(this.colors.secondaryFixed())}get secondaryFixedDim(){return this.getArgb(this.colors.secondaryFixedDim())}get onSecondaryFixed(){return this.getArgb(this.colors.onSecondaryFixed())}get onSecondaryFixedVariant(){return this.getArgb(this.colors.onSecondaryFixedVariant())}get tertiary(){return this.getArgb(this.colors.tertiary())}get tertiaryDim(){let e=this.colors.tertiaryDim();if(e===void 0)throw new Error("`tertiaryDim` color is undefined prior to 2025 spec.");return this.getArgb(e)}get onTertiary(){return this.getArgb(this.colors.onTertiary())}get tertiaryContainer(){return this.getArgb(this.colors.tertiaryContainer())}get onTertiaryContainer(){return this.getArgb(this.colors.onTertiaryContainer())}get tertiaryFixed(){return this.getArgb(this.colors.tertiaryFixed())}get tertiaryFixedDim(){return this.getArgb(this.colors.tertiaryFixedDim())}get onTertiaryFixed(){return this.getArgb(this.colors.onTertiaryFixed())}get onTertiaryFixedVariant(){return this.getArgb(this.colors.onTertiaryFixedVariant())}get error(){return this.getArgb(this.colors.error())}get errorDim(){let e=this.colors.errorDim();if(e===void 0)throw new Error("`errorDim` color is undefined prior to 2025 spec.");return this.getArgb(e)}get onError(){return this.getArgb(this.colors.onError())}get errorContainer(){return this.getArgb(this.colors.errorContainer())}get onErrorContainer(){return this.getArgb(this.colors.onErrorContainer())}};Ge.DEFAULT_SPEC_VERSION="2021";Ge.DEFAULT_PLATFORM="phone";var Zo=class{getPrimaryPalette(t,e,r,o,i){switch(t){case S.CONTENT:case S.FIDELITY:return j.fromHueAndChroma(e.hue,e.chroma);case S.FRUIT_SALAD:return j.fromHueAndChroma(ct(e.hue-50),48);case S.MONOCHROME:return j.fromHueAndChroma(e.hue,0);case S.NEUTRAL:return j.fromHueAndChroma(e.hue,12);case S.RAINBOW:return j.fromHueAndChroma(e.hue,48);case S.TONAL_SPOT:return j.fromHueAndChroma(e.hue,36);case S.EXPRESSIVE:return j.fromHueAndChroma(ct(e.hue+240),40);case S.VIBRANT:return j.fromHueAndChroma(e.hue,200);default:throw new Error(`Unsupported variant: ${t}`)}}getSecondaryPalette(t,e,r,o,i){switch(t){case S.CONTENT:case S.FIDELITY:return j.fromHueAndChroma(e.hue,Math.max(e.chroma-32,e.chroma*.5));case S.FRUIT_SALAD:return j.fromHueAndChroma(ct(e.hue-50),36);case S.MONOCHROME:return j.fromHueAndChroma(e.hue,0);case S.NEUTRAL:return j.fromHueAndChroma(e.hue,8);case S.RAINBOW:return j.fromHueAndChroma(e.hue,16);case S.TONAL_SPOT:return j.fromHueAndChroma(e.hue,16);case S.EXPRESSIVE:return j.fromHueAndChroma(Ge.getRotatedHue(e,[0,21,51,121,151,191,271,321,360],[45,95,45,20,45,90,45,45,45]),24);case S.VIBRANT:return j.fromHueAndChroma(Ge.getRotatedHue(e,[0,41,61,101,131,181,251,301,360],[18,15,10,12,15,18,15,12,12]),24);default:throw new Error(`Unsupported variant: ${t}`)}}getTertiaryPalette(t,e,r,o,i){switch(t){case S.CONTENT:return j.fromHct(wn.fixIfDisliked(new $o(e).analogous(3,6)[2]));case S.FIDELITY:return j.fromHct(wn.fixIfDisliked(new $o(e).complement));case S.FRUIT_SALAD:return j.fromHueAndChroma(e.hue,36);case S.MONOCHROME:return j.fromHueAndChroma(e.hue,0);case S.NEUTRAL:return j.fromHueAndChroma(e.hue,16);case S.RAINBOW:case S.TONAL_SPOT:return j.fromHueAndChroma(ct(e.hue+60),24);case S.EXPRESSIVE:return j.fromHueAndChroma(Ge.getRotatedHue(e,[0,21,51,121,151,191,271,321,360],[120,120,20,45,20,15,20,120,120]),32);case S.VIBRANT:return j.fromHueAndChroma(Ge.getRotatedHue(e,[0,41,61,101,131,181,251,301,360],[35,30,20,25,30,35,30,25,25]),32);default:throw new Error(`Unsupported variant: ${t}`)}}getNeutralPalette(t,e,r,o,i){switch(t){case S.CONTENT:case S.FIDELITY:return j.fromHueAndChroma(e.hue,e.chroma/8);case S.FRUIT_SALAD:return j.fromHueAndChroma(e.hue,10);case S.MONOCHROME:return j.fromHueAndChroma(e.hue,0);case S.NEUTRAL:return j.fromHueAndChroma(e.hue,2);case S.RAINBOW:return j.fromHueAndChroma(e.hue,0);case S.TONAL_SPOT:return j.fromHueAndChroma(e.hue,6);case S.EXPRESSIVE:return j.fromHueAndChroma(ct(e.hue+15),8);case S.VIBRANT:return j.fromHueAndChroma(e.hue,10);default:throw new Error(`Unsupported variant: ${t}`)}}getNeutralVariantPalette(t,e,r,o,i){switch(t){case S.CONTENT:return j.fromHueAndChroma(e.hue,e.chroma/8+4);case S.FIDELITY:return j.fromHueAndChroma(e.hue,e.chroma/8+4);case S.FRUIT_SALAD:return j.fromHueAndChroma(e.hue,16);case S.MONOCHROME:return j.fromHueAndChroma(e.hue,0);case S.NEUTRAL:return j.fromHueAndChroma(e.hue,2);case S.RAINBOW:return j.fromHueAndChroma(e.hue,0);case S.TONAL_SPOT:return j.fromHueAndChroma(e.hue,8);case S.EXPRESSIVE:return j.fromHueAndChroma(ct(e.hue+15),12);case S.VIBRANT:return j.fromHueAndChroma(e.hue,12);default:throw new Error(`Unsupported variant: ${t}`)}}getErrorPalette(t,e,r,o,i){}},Qu=class Pt extends Zo{getPrimaryPalette(e,r,o,i,u){switch(e){case S.NEUTRAL:return j.fromHueAndChroma(r.hue,i==="phone"?ue.isBlue(r.hue)?12:8:ue.isBlue(r.hue)?16:12);case S.TONAL_SPOT:return j.fromHueAndChroma(r.hue,i==="phone"&&o?26:32);case S.EXPRESSIVE:return j.fromHueAndChroma(r.hue,i==="phone"?o?36:48:40);case S.VIBRANT:return j.fromHueAndChroma(r.hue,i==="phone"?74:56);default:return super.getPrimaryPalette(e,r,o,i,u)}}getSecondaryPalette(e,r,o,i,u){switch(e){case S.NEUTRAL:return j.fromHueAndChroma(r.hue,i==="phone"?ue.isBlue(r.hue)?6:4:ue.isBlue(r.hue)?10:6);case S.TONAL_SPOT:return j.fromHueAndChroma(r.hue,16);case S.EXPRESSIVE:return j.fromHueAndChroma(Ge.getRotatedHue(r,[0,105,140,204,253,278,300,333,360],[-160,155,-100,96,-96,-156,-165,-160]),i==="phone"&&o?16:24);case S.VIBRANT:return j.fromHueAndChroma(Ge.getRotatedHue(r,[0,38,105,140,333,360],[-14,10,-14,10,-14]),i==="phone"?56:36);default:return super.getSecondaryPalette(e,r,o,i,u)}}getTertiaryPalette(e,r,o,i,u){switch(e){case S.NEUTRAL:return j.fromHueAndChroma(Ge.getRotatedHue(r,[0,38,105,161,204,278,333,360],[-32,26,10,-39,24,-15,-32]),i==="phone"?20:36);case S.TONAL_SPOT:return j.fromHueAndChroma(Ge.getRotatedHue(r,[0,20,71,161,333,360],[-40,48,-32,40,-32]),i==="phone"?28:32);case S.EXPRESSIVE:return j.fromHueAndChroma(Ge.getRotatedHue(r,[0,105,140,204,253,278,300,333,360],[-165,160,-105,101,-101,-160,-170,-165]),48);case S.VIBRANT:return j.fromHueAndChroma(Ge.getRotatedHue(r,[0,38,71,105,140,161,253,333,360],[-72,35,24,-24,62,50,62,-72]),56);default:return super.getTertiaryPalette(e,r,o,i,u)}}static getExpressiveNeutralHue(e){return Ge.getRotatedHue(e,[0,71,124,253,278,300,360],[10,0,10,0,10,0])}static getExpressiveNeutralChroma(e,r,o){let i=Pt.getExpressiveNeutralHue(e);return o==="phone"?r?ue.isYellow(i)?6:14:18:12}static getVibrantNeutralHue(e){return Ge.getRotatedHue(e,[0,38,105,140,333,360],[-14,10,-14,10,-14])}static getVibrantNeutralChroma(e,r){let o=Pt.getVibrantNeutralHue(e);return r==="phone"||ue.isBlue(o)?28:20}getNeutralPalette(e,r,o,i,u){switch(e){case S.NEUTRAL:return j.fromHueAndChroma(r.hue,i==="phone"?1.4:6);case S.TONAL_SPOT:return j.fromHueAndChroma(r.hue,i==="phone"?5:10);case S.EXPRESSIVE:return j.fromHueAndChroma(Pt.getExpressiveNeutralHue(r),Pt.getExpressiveNeutralChroma(r,o,i));case S.VIBRANT:return j.fromHueAndChroma(Pt.getVibrantNeutralHue(r),Pt.getVibrantNeutralChroma(r,i));default:return super.getNeutralPalette(e,r,o,i,u)}}getNeutralVariantPalette(e,r,o,i,u){switch(e){case S.NEUTRAL:return j.fromHueAndChroma(r.hue,(i==="phone"?1.4:6)*2.2);case S.TONAL_SPOT:return j.fromHueAndChroma(r.hue,(i==="phone"?5:10)*1.7);case S.EXPRESSIVE:let l=Pt.getExpressiveNeutralHue(r),d=Pt.getExpressiveNeutralChroma(r,o,i);return j.fromHueAndChroma(l,d*(l>=105&&l<125?1.6:2.3));case S.VIBRANT:let f=Pt.getVibrantNeutralHue(r),g=Pt.getVibrantNeutralChroma(r,i);return j.fromHueAndChroma(f,g*1.29);default:return super.getNeutralVariantPalette(e,r,o,i,u)}}getErrorPalette(e,r,o,i,u){let l=Ge.getPiecewiseHue(r,[0,3,13,23,33,43,153,273,360],[12,22,32,12,22,32,22,12]);switch(e){case S.NEUTRAL:return j.fromHueAndChroma(l,i==="phone"?50:40);case S.TONAL_SPOT:return j.fromHueAndChroma(l,i==="phone"?60:48);case S.EXPRESSIVE:return j.fromHueAndChroma(l,i==="phone"?64:48);case S.VIBRANT:return j.fromHueAndChroma(l,i==="phone"?80:60);default:return super.getErrorPalette(e,r,o,i,u)}}},eh=new Zo,th=new Qu;function Mr(t){return t==="2025"?th:eh}var rh=class extends Ge{constructor(t,e,r,o=Ge.DEFAULT_SPEC_VERSION,i=Ge.DEFAULT_PLATFORM){super({sourceColorHct:t,variant:S.VIBRANT,contrastLevel:r,isDark:e,platform:i,specVersion:o});}};function ah(t){let e=Sn(t),r=xn(t),o=Dn(t),i=[e.toString(16),r.toString(16),o.toString(16)];for(let[u,l]of i.entries())l.length===1&&(i[u]="0"+l);return "#"+i.join("")}function nh(t){t=t.replace("#","");let e=t.length===3,r=t.length===6,o=t.length===8;if(!e&&!r&&!o)throw new Error("unexpected hex "+t);let i=0,u=0,l=0;return e?(i=Lt(t.slice(0,1).repeat(2)),u=Lt(t.slice(1,2).repeat(2)),l=Lt(t.slice(2,3).repeat(2))):r?(i=Lt(t.slice(0,2)),u=Lt(t.slice(2,4)),l=Lt(t.slice(4,6))):o&&(i=Lt(t.slice(2,4)),u=Lt(t.slice(4,6)),l=Lt(t.slice(6,8))),(255<<24|(i&255)<<16|(u&255)<<8|l&255)>>>0}function Lt(t){return parseInt(t,16)}function oh(t,e){let r=ue.fromInt(nh(t)),o=new rh(r,e,0),i={},u=["primary","onPrimary","primaryContainer","onPrimaryContainer","secondary","onSecondary","secondaryContainer","onSecondaryContainer","tertiary","onTertiary","tertiaryContainer","onTertiaryContainer","error","onError","errorContainer","onErrorContainer","background","onBackground","surface","onSurface","surfaceVariant","onSurfaceVariant","outline","outlineVariant","shadow","scrim","inverseSurface","inverseOnSurface","inversePrimary","surfaceDim","surfaceBright","surfaceContainerLowest","surfaceContainerLow","surfaceContainer","surfaceContainerHigh","surfaceContainerHighest"];for(let l of u){let d=_[l];d&&(i[l]=ah(d.getArgb(o)));}return i}function qr(t,e){let r=t.replace("#",""),o=parseInt(r.substring(0,2),16),i=parseInt(r.substring(2,4),16),u=parseInt(r.substring(4,6),16);return `rgba(${o}, ${i}, ${u}, ${e})`}var ih=createContext(null),sh=oh("#6750A4",false),ch=()=>useContext(ih)||{themeColors:sh,systemTheme:"auto",setThemeColors:()=>{throw new Error("[@zaide6137/m3-components-web] Wrap your app in <ThemeProvider>.")},setColorScheme:()=>{throw new Error("[@zaide6137/m3-components-web] Wrap your app in <ThemeProvider>.")}},Qo=forwardRef((t,e)=>{let{className:r,shape:o,type:i,hoverEffect:u=true,text:l,icon:d,onClick:f,disabled:g,loading:y=false}=t,{themeColors:b}=ch(),w=g?i==="filled"?{backgroundColor:qr(b.onSurface,.12),color:qr(b.onSurface,.38),border:"none"}:{backgroundColor:"transparent",color:qr(b.onSurface,.38),border:`1px solid ${qr(b.onSurface,.12)}`}:i==="filled"?{backgroundColor:b.primary,color:b.onPrimary,border:"none"}:{backgroundColor:"transparent",color:b.primary,border:`1px solid ${b.primary}`},v=40,m=o==="rounded-full"?32:o==="rounded-lg"?12:o==="rounded-md"?8:4;return jsx(motion.button,{disabled:g||y,onClick:!g&&!y?f:void 0,className:`${r||""} m3-components-button`,style:{backgroundColor:w.backgroundColor,color:w.color,border:w.border,borderRadius:"40px"},initial:{borderRadius:v},animate:{borderRadius:v},whileHover:!g&&!y&&u?{borderRadius:m,backgroundColor:i==="outlined"?qr(b.primary,.08):b.primary}:{},transition:{ease:["easeIn","easeOut"],duration:.2},children:jsxs("div",{className:"m3-components-button-content",children:[y&&jsx("span",{style:{marginRight:"4px"},children:"... "}),d&&jsx("span",{className:"m3-components-button-icon",children:d}),jsx("span",{className:"m3-components-button-text",children:l})]})})});var ei=({date:t,onPrev:e,onNext:r,onToday:o,view:i,onViewChange:u})=>{let{themeColors:l}=Ta(),[d,f]=useState(false),g=(0, Tn.default)(),y=g.format("MMM").toUpperCase(),b=g.format("DD"),w=(0, Tn.default)(t).format("MMMM YYYY"),v=Math.ceil(g.date()/7),m=i.charAt(0).toUpperCase()+i.slice(1);return jsxs("div",{className:"m3-components-bigcalendar-toolbar",children:[jsxs("div",{className:"m3-components-bigcalendar-toolbar-w1",children:[jsxs("div",{className:"m3-components-bigcalendar-toolbar-date-box",style:{backgroundColor:l.surfaceContainerLowest,borderColor:l.outlineVariant},children:[jsx("div",{className:"m3-components-bigcalendar-toolbar-w2",style:{backgroundColor:l.primary},children:jsx("span",{className:"m3-components-bigcalendar-toolbar-date-month",style:{color:l.onPrimary},children:y})}),jsx("span",{className:"m3-components-bigcalendar-toolbar-date-day",style:{color:l.onSurface},children:b})]}),jsxs("div",{className:"m3-components-bigcalendar-toolbar-w3",children:[jsx("div",{className:"m3-components-bigcalendar-toolbar-w4",children:jsx("div",{className:"m3-components-bigcalendar-toolbar-w5",children:jsx("h1",{className:"m3-components-bigcalendar-toolbar-title",style:{color:l.onSurface},children:w})})}),jsxs("span",{className:"m3-components-bigcalendar-toolbar-week-badge",style:{color:l.onSurfaceVariant,borderColor:l.outlineVariant},children:["Week ",v]})]})]}),jsxs("div",{className:"m3-components-bigcalendar-toolbar-w6",children:[jsxs("div",{className:"m3-components-bigcalendar-toolbar-nav-group",style:{borderColor:l.outlineVariant},children:[jsx("button",{onClick:e,className:"m3-components-bigcalendar-toolbar-nav-prev",style:{borderColor:l.outlineVariant,color:l.onSurface},children:jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"m3-components-bigcalendar-toolbar-nav-icon",children:jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})})}),jsx("button",{onClick:o,className:"m3-components-bigcalendar-toolbar-nav-today",style:{color:l.onSurface},children:"Today"}),jsx("button",{onClick:r,className:"m3-components-bigcalendar-toolbar-nav-next",style:{borderColor:l.outlineVariant,color:l.onSurface},children:jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:"m3-components-bigcalendar-toolbar-nav-icon",children:jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})})})]}),jsxs("div",{className:"m3-components-bigcalendar-toolbar-w7",children:[jsxs("button",{onClick:()=>f(!d),className:"m3-components-bigcalendar-toolbar-dropdown-btn",style:{borderColor:l.outlineVariant,color:l.onSurface},children:[jsx("span",{className:"m3-components-bigcalendar-toolbar-dropdown-label",children:"View by:"}),m,jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",className:`m3-components-bigcalendar-toolbar-dropdown-icon ${d?"rotate-180":""}`,children:jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 8.25l-7.5 7.5-7.5-7.5"})})]}),jsx(AnimatePresence,{children:d&&jsxs(Fragment,{children:[jsx("div",{className:"m3-components-bigcalendar-toolbar-dropdown-backdrop",onClick:()=>f(false)}),jsx(motion.div,{initial:{opacity:0,y:-10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.95},transition:{duration:.15},className:"m3-components-bigcalendar-toolbar-dropdown-menu",style:{backgroundColor:l.surfaceContainerHigh,borderColor:l.outlineVariant},children:["month","week","day"].map(p=>jsx("button",{onClick:()=>{u(p),f(false);},className:"m3-components-bigcalendar-toolbar-dropdown-item",style:{color:i===p?l.primary:l.onSurface},children:p.charAt(0).toUpperCase()+p.slice(1)},p))})]})})]}),jsx(Qo,{type:"filled",shape:"rounded-lg",text:"+ Create",onClick:()=>{}})]})]})};var ai=({event:t,onMouseEnter:e,onMouseLeave:r})=>{let o=t.resource,i=o.eventStyleFilled??true,u=o.eventStyle||{backgroundColor:o.eventSeedColor||"#6750A4",contentColor:"#FFFFFF"},l=i?u.backgroundColor:Yo(u.backgroundColor,.15),d=i?"transparent":u.backgroundColor,f=i?u.contentColor:u.backgroundColor,g=useRef(null),[y,b]=useState(1e3);useEffect(()=>{if(!g.current)return;let p=new ResizeObserver(k=>{window.requestAnimationFrame(()=>{k[0]&&b(k[0].contentRect.width);});});return p.observe(g.current),()=>p.disconnect()},[]);let w=y<120,v=y>=180;return jsx("div",{ref:g,className:"m3-components-bigcalendar-event",children:w?jsx(motion.div,{className:"m3-components-bigcalendar-event-dot",onMouseEnter:p=>e(p,o),onMouseLeave:r,style:{backgroundColor:l,borderColor:d==="transparent"?u.backgroundColor:d}}):jsx(motion.div,{initial:{opacity:0,scale:.98},animate:{opacity:1,scale:1},onMouseEnter:p=>e(p,o),onMouseLeave:r,className:"m3-components-bigcalendar-event-chip",style:{backgroundColor:l,color:f,border:i?"none":`1.5px solid ${d}`},children:jsxs("div",{className:"m3-components-bigcalendar-event-content",children:[jsx("span",{className:"m3-components-bigcalendar-event-title",children:t.title}),v&&jsxs("span",{className:"m3-components-bigcalendar-event-time",children:[t.start.toLocaleString("en-US",{hour:"numeric",minute:"2-digit",hour12:true}),t.end&&t.end instanceof Date&&!isNaN(t.end.getTime())&&` - ${t.end.toLocaleString("en-US",{hour:"numeric",minute:"2-digit",hour12:true})}`]}),o.eventTrailingIcon&&jsx("div",{className:"",style:{color:f},children:o.eventTrailingIcon})]})})})};function ot(t){return t<0?-1:t===0?0:1}function ta(t,e,r){return (1-r)*t+r*e}function yh(t,e,r){return r<t?t:r>e?e:r}function Ze(t,e,r){return r<t?t:r>e?e:r}function ni(t){return t=t%360,t<0&&(t=t+360),t}function lt(t){return t=t%360,t<0&&(t=t+360),t}function Mn(t,e){let r=t[0]*e[0][0]+t[1]*e[0][1]+t[2]*e[0][2],o=t[0]*e[1][0]+t[1]*e[1][1]+t[2]*e[1][2],i=t[0]*e[2][0]+t[1]*e[2][1]+t[2]*e[2][2];return [r,o,i]}var li=[[.41233895,.35762064,.18051042],[.2126,.7152,.0722],[.01932141,.11916382,.95034478]],bh=[[3.2413774792388685,-1.5376652402851851,-0.49885366846268053],[-0.9691452513005321,1.8758853451067872,.04156585616912061],[.05562093689691305,-0.20395524564742123,1.0571799111220335]],ui=[95.047,100,108.883];function En(t,e,r){return (255<<24|(t&255)<<16|(e&255)<<8|r&255)>>>0}function oi(t){let e=fr(t[0]),r=fr(t[1]),o=fr(t[2]);return En(e,r,o)}function On(t){return t>>16&255}function In(t){return t>>8&255}function Rn(t){return t&255}function Ph(t,e,r){let o=bh,i=o[0][0]*t+o[0][1]*e+o[0][2]*r,u=o[1][0]*t+o[1][1]*e+o[1][2]*r,l=o[2][0]*t+o[2][1]*e+o[2][2]*r,d=fr(i),f=fr(u),g=fr(l);return En(d,f,g)}function vh(t){let e=Vt(On(t)),r=Vt(In(t)),o=Vt(Rn(t));return Mn([e,r,o],li)}function wh(t){let e=Vt(On(t)),r=Vt(In(t)),o=Vt(Rn(t)),i=li,u=i[0][0]*e+i[0][1]*r+i[0][2]*o,l=i[1][0]*e+i[1][1]*r+i[1][2]*o,d=i[2][0]*e+i[2][1]*r+i[2][2]*o,f=ui,g=u/f[0],y=l/f[1],b=d/f[2],w=ra(g),v=ra(y),m=ra(b),p=116*v-16,k=500*(w-v),O=200*(v-m);return [p,k,O]}function Ch(t){let e=rr(t),r=fr(e);return En(r,r,r)}function ii(t){let e=vh(t)[1];return 116*ra(e/100)-16}function rr(t){return 100*Sh((t+16)/116)}function An(t){return ra(t/100)*116-16}function Vt(t){let e=t/255;return e<=.040449936?e/12.92*100:Math.pow((e+.055)/1.055,2.4)*100}function fr(t){let e=t/100,r=0;return e<=.0031308?r=e*12.92:r=1.055*Math.pow(e,1/2.4)-.055,yh(0,255,Math.round(r*255))}function kh(){return ui}function ra(t){let e=.008856451679035631,r=24389/27;return t>e?Math.pow(t,1/3):(r*t+16)/116}function Sh(t){let e=.008856451679035631,r=24389/27,o=t*t*t;return o>e?o:(116*t-16)/r}var ar=class hi{static make(e=kh(),r=200/Math.PI*rr(50)/100,o=50,i=2,u=false){let l=e,d=l[0]*.401288+l[1]*.650173+l[2]*-0.051461,f=l[0]*-0.250268+l[1]*1.204414+l[2]*.045854,g=l[0]*-2079e-6+l[1]*.048952+l[2]*.953127,y=.8+i/10,b=y>=.9?ta(.59,.69,(y-.9)*10):ta(.525,.59,(y-.8)*10),w=u?1:y*(1-1/3.6*Math.exp((-r-42)/92));w=w>1?1:w<0?0:w;let v=y,m=[w*(100/d)+1-w,w*(100/f)+1-w,w*(100/g)+1-w],p=1/(5*r+1),k=p*p*p*p,O=1-k,L=k*r+.1*O*O*Math.cbrt(5*r),V=rr(o)/e[1],Y=1.48+Math.sqrt(V),B=.725/Math.pow(V,.2),H=B,N=[Math.pow(L*m[0]*d/100,.42),Math.pow(L*m[1]*f/100,.42),Math.pow(L*m[2]*g/100,.42)],I=[400*N[0]/(N[0]+27.13),400*N[1]/(N[1]+27.13),400*N[2]/(N[2]+27.13)],z=(2*I[0]+I[1]+.05*I[2])*B;return new hi(V,z,B,H,b,v,m,L,Math.pow(L,.25),Y)}constructor(e,r,o,i,u,l,d,f,g,y){this.n=e,this.aw=r,this.nbb=o,this.ncb=i,this.c=u,this.nc=l,this.rgbD=d,this.fl=f,this.fLRoot=g,this.z=y;}};ar.DEFAULT=ar.make();var ea=class tr{constructor(e,r,o,i,u,l,d,f,g){this.hue=e,this.chroma=r,this.j=o,this.q=i,this.m=u,this.s=l,this.jstar=d,this.astar=f,this.bstar=g;}distance(e){let r=this.jstar-e.jstar,o=this.astar-e.astar,i=this.bstar-e.bstar,u=Math.sqrt(r*r+o*o+i*i);return 1.41*Math.pow(u,.63)}static fromInt(e){return tr.fromIntInViewingConditions(e,ar.DEFAULT)}static fromIntInViewingConditions(e,r){let o=(e&16711680)>>16,i=(e&65280)>>8,u=e&255,l=Vt(o),d=Vt(i),f=Vt(u),g=.41233895*l+.35762064*d+.18051042*f,y=.2126*l+.7152*d+.0722*f,b=.01932141*l+.11916382*d+.95034478*f,w=.401288*g+.650173*y-.051461*b,v=-0.250268*g+1.204414*y+.045854*b,m=-2079e-6*g+.048952*y+.953127*b,p=r.rgbD[0]*w,k=r.rgbD[1]*v,O=r.rgbD[2]*m,L=Math.pow(r.fl*Math.abs(p)/100,.42),V=Math.pow(r.fl*Math.abs(k)/100,.42),Y=Math.pow(r.fl*Math.abs(O)/100,.42),B=ot(p)*400*L/(L+27.13),H=ot(k)*400*V/(V+27.13),N=ot(O)*400*Y/(Y+27.13),I=(11*B+-12*H+N)/11,z=(B+H-2*N)/9,ie=(20*B+20*H+21*N)/20,fe=(40*B+20*H+N)/20,pe=Math.atan2(z,I)*180/Math.PI,Se=lt(pe),Q=Se*Math.PI/180,Fe=fe*r.nbb,Me=100*Math.pow(Fe/r.aw,r.c*r.z),Ye=4/r.c*Math.sqrt(Me/100)*(r.aw+4)*r.fLRoot,_e=Se<20.14?Se+360:Se,qe=.25*(Math.cos(_e*Math.PI/180+2)+3.8),Qe=5e4/13*qe*r.nc*r.ncb*Math.sqrt(I*I+z*z)/(ie+.305),Xe=Math.pow(Qe,.9)*Math.pow(1.64-Math.pow(.29,r.n),.73),et=Xe*Math.sqrt(Me/100),$=et*r.fLRoot,Yt=50*Math.sqrt(Xe*r.c/(r.aw+4)),Ut=(1+100*.007)*Me/(1+.007*Me),ut=1/.0228*Math.log(1+.0228*$),zt=ut*Math.cos(Q),Wt=ut*Math.sin(Q);return new tr(Se,et,Me,Ye,$,Yt,Ut,zt,Wt)}static fromJch(e,r,o){return tr.fromJchInViewingConditions(e,r,o,ar.DEFAULT)}static fromJchInViewingConditions(e,r,o,i){let u=4/i.c*Math.sqrt(e/100)*(i.aw+4)*i.fLRoot,l=r*i.fLRoot,d=r/Math.sqrt(e/100),f=50*Math.sqrt(d*i.c/(i.aw+4)),g=o*Math.PI/180,y=(1+100*.007)*e/(1+.007*e),b=1/.0228*Math.log(1+.0228*l),w=b*Math.cos(g),v=b*Math.sin(g);return new tr(o,r,e,u,l,f,y,w,v)}static fromUcs(e,r,o){return tr.fromUcsInViewingConditions(e,r,o,ar.DEFAULT)}static fromUcsInViewingConditions(e,r,o,i){let u=r,l=o,d=Math.sqrt(u*u+l*l),f=(Math.exp(d*.0228)-1)/.0228/i.fLRoot,g=Math.atan2(l,u)*(180/Math.PI);g<0&&(g+=360);let y=e/(1-(e-100)*.007);return tr.fromJchInViewingConditions(y,f,g,i)}toInt(){return this.viewed(ar.DEFAULT)}viewed(e){let r=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),o=Math.pow(r/Math.pow(1.64-Math.pow(.29,e.n),.73),1/.9),i=this.hue*Math.PI/180,u=.25*(Math.cos(i+2)+3.8),l=e.aw*Math.pow(this.j/100,1/e.c/e.z),d=u*(5e4/13)*e.nc*e.ncb,f=l/e.nbb,g=Math.sin(i),y=Math.cos(i),b=23*(f+.305)*o/(23*d+11*o*y+108*o*g),w=b*y,v=b*g,m=(460*f+451*w+288*v)/1403,p=(460*f-891*w-261*v)/1403,k=(460*f-220*w-6300*v)/1403,O=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),L=ot(m)*(100/e.fl)*Math.pow(O,1/.42),V=Math.max(0,27.13*Math.abs(p)/(400-Math.abs(p))),Y=ot(p)*(100/e.fl)*Math.pow(V,1/.42),B=Math.max(0,27.13*Math.abs(k)/(400-Math.abs(k))),H=ot(k)*(100/e.fl)*Math.pow(B,1/.42),N=L/e.rgbD[0],I=Y/e.rgbD[1],z=H/e.rgbD[2],ie=1.86206786*N-1.01125463*I+.14918677*z,fe=.38752654*N+.62144744*I-.00897398*z,pe=-0.0158415*N-.03412294*I+1.04996444*z;return Ph(ie,fe,pe)}static fromXyzInViewingConditions(e,r,o,i){let u=.401288*e+.650173*r-.051461*o,l=-0.250268*e+1.204414*r+.045854*o,d=-2079e-6*e+.048952*r+.953127*o,f=i.rgbD[0]*u,g=i.rgbD[1]*l,y=i.rgbD[2]*d,b=Math.pow(i.fl*Math.abs(f)/100,.42),w=Math.pow(i.fl*Math.abs(g)/100,.42),v=Math.pow(i.fl*Math.abs(y)/100,.42),m=ot(f)*400*b/(b+27.13),p=ot(g)*400*w/(w+27.13),k=ot(y)*400*v/(v+27.13),O=(11*m+-12*p+k)/11,L=(m+p-2*k)/9,V=(20*m+20*p+21*k)/20,Y=(40*m+20*p+k)/20,B=Math.atan2(L,O)*180/Math.PI,H=B<0?B+360:B>=360?B-360:B,N=H*Math.PI/180,I=Y*i.nbb,z=100*Math.pow(I/i.aw,i.c*i.z),ie=4/i.c*Math.sqrt(z/100)*(i.aw+4)*i.fLRoot,fe=H<20.14?H+360:H,pe=1/4*(Math.cos(fe*Math.PI/180+2)+3.8),Se=5e4/13*pe*i.nc*i.ncb*Math.sqrt(O*O+L*L)/(V+.305),Q=Math.pow(Se,.9)*Math.pow(1.64-Math.pow(.29,i.n),.73),Fe=Q*Math.sqrt(z/100),Me=Fe*i.fLRoot,Ye=50*Math.sqrt(Q*i.c/(i.aw+4)),_e=(1+100*.007)*z/(1+.007*z),qe=Math.log(1+.0228*Me)/.0228,Qe=qe*Math.cos(N),Xe=qe*Math.sin(N);return new tr(H,Fe,z,ie,Me,Ye,_e,Qe,Xe)}xyzInViewingConditions(e){let r=this.chroma===0||this.j===0?0:this.chroma/Math.sqrt(this.j/100),o=Math.pow(r/Math.pow(1.64-Math.pow(.29,e.n),.73),1/.9),i=this.hue*Math.PI/180,u=.25*(Math.cos(i+2)+3.8),l=e.aw*Math.pow(this.j/100,1/e.c/e.z),d=u*(5e4/13)*e.nc*e.ncb,f=l/e.nbb,g=Math.sin(i),y=Math.cos(i),b=23*(f+.305)*o/(23*d+11*o*y+108*o*g),w=b*y,v=b*g,m=(460*f+451*w+288*v)/1403,p=(460*f-891*w-261*v)/1403,k=(460*f-220*w-6300*v)/1403,O=Math.max(0,27.13*Math.abs(m)/(400-Math.abs(m))),L=ot(m)*(100/e.fl)*Math.pow(O,1/.42),V=Math.max(0,27.13*Math.abs(p)/(400-Math.abs(p))),Y=ot(p)*(100/e.fl)*Math.pow(V,1/.42),B=Math.max(0,27.13*Math.abs(k)/(400-Math.abs(k))),H=ot(k)*(100/e.fl)*Math.pow(B,1/.42),N=L/e.rgbD[0],I=Y/e.rgbD[1],z=H/e.rgbD[2],ie=1.86206786*N-1.01125463*I+.14918677*z,fe=.38752654*N+.62144744*I-.00897398*z,pe=-0.0158415*N-.03412294*I+1.04996444*z;return [ie,fe,pe]}},nr=class me{static sanitizeRadians(e){return (e+Math.PI*8)%(Math.PI*2)}static trueDelinearized(e){let r=e/100,o=0;return r<=.0031308?o=r*12.92:o=1.055*Math.pow(r,1/2.4)-.055,o*255}static chromaticAdaptation(e){let r=Math.pow(Math.abs(e),.42);return ot(e)*400*r/(r+27.13)}static hueOf(e){let r=Mn(e,me.SCALED_DISCOUNT_FROM_LINRGB),o=me.chromaticAdaptation(r[0]),i=me.chromaticAdaptation(r[1]),u=me.chromaticAdaptation(r[2]),l=(11*o+-12*i+u)/11,d=(o+i-2*u)/9;return Math.atan2(d,l)}static areInCyclicOrder(e,r,o){let i=me.sanitizeRadians(r-e),u=me.sanitizeRadians(o-e);return i<u}static intercept(e,r,o){return (r-e)/(o-e)}static lerpPoint(e,r,o){return [e[0]+(o[0]-e[0])*r,e[1]+(o[1]-e[1])*r,e[2]+(o[2]-e[2])*r]}static setCoordinate(e,r,o,i){let u=me.intercept(e[i],r,o[i]);return me.lerpPoint(e,u,o)}static isBounded(e){return 0<=e&&e<=100}static nthVertex(e,r){let o=me.Y_FROM_LINRGB[0],i=me.Y_FROM_LINRGB[1],u=me.Y_FROM_LINRGB[2],l=r%4<=1?0:100,d=r%2===0?0:100;if(r<4){let f=l,g=d,y=(e-f*i-g*u)/o;return me.isBounded(y)?[y,f,g]:[-1,-1,-1]}else if(r<8){let f=l,g=d,y=(e-g*o-f*u)/i;return me.isBounded(y)?[g,y,f]:[-1,-1,-1]}else {let f=l,g=d,y=(e-f*o-g*i)/u;return me.isBounded(y)?[f,g,y]:[-1,-1,-1]}}static bisectToSegment(e,r){let o=[-1,-1,-1],i=o,u=0,l=0,d=false,f=true;for(let g=0;g<12;g++){let y=me.nthVertex(e,g);if(y[0]<0)continue;let b=me.hueOf(y);if(!d){o=y,i=y,u=b,l=b,d=true;continue}(f||me.areInCyclicOrder(u,b,l))&&(f=false,me.areInCyclicOrder(u,r,b)?(i=y,l=b):(o=y,u=b));}return [o,i]}static midpoint(e,r){return [(e[0]+r[0])/2,(e[1]+r[1])/2,(e[2]+r[2])/2]}static criticalPlaneBelow(e){return Math.floor(e-.5)}static criticalPlaneAbove(e){return Math.ceil(e-.5)}static bisectToLimit(e,r){let o=me.bisectToSegment(e,r),i=o[0],u=me.hueOf(i),l=o[1];for(let d=0;d<3;d++)if(i[d]!==l[d]){let f=-1,g=255;i[d]<l[d]?(f=me.criticalPlaneBelow(me.trueDelinearized(i[d])),g=me.criticalPlaneAbove(me.trueDelinearized(l[d]))):(f=me.criticalPlaneAbove(me.trueDelinearized(i[d])),g=me.criticalPlaneBelow(me.trueDelinearized(l[d])));for(let y=0;y<8&&!(Math.abs(g-f)<=1);y++){let b=Math.floor((f+g)/2),w=me.CRITICAL_PLANES[b],v=me.setCoordinate(i,w,l,d),m=me.hueOf(v);me.areInCyclicOrder(u,r,m)?(l=v,g=b):(i=v,u=m,f=b);}}return me.midpoint(i,l)}static inverseChromaticAdaptation(e){let r=Math.abs(e),o=Math.max(0,27.13*r/(400-r));return ot(e)*Math.pow(o,1/.42)}static findResultByJ(e,r,o){let i=Math.sqrt(o)*11,u=ar.DEFAULT,l=1/Math.pow(1.64-Math.pow(.29,u.n),.73),d=.25*(Math.cos(e+2)+3.8)*(5e4/13)*u.nc*u.ncb,f=Math.sin(e),g=Math.cos(e);for(let y=0;y<5;y++){let b=i/100,w=r===0||i===0?0:r/Math.sqrt(b),v=Math.pow(w*l,1/.9),m=u.aw*Math.pow(b,1/u.c/u.z)/u.nbb,p=23*(m+.305)*v/(23*d+11*v*g+108*v*f),k=p*g,O=p*f,L=(460*m+451*k+288*O)/1403,V=(460*m-891*k-261*O)/1403,Y=(460*m-220*k-6300*O)/1403,B=me.inverseChromaticAdaptation(L),H=me.inverseChromaticAdaptation(V),N=me.inverseChromaticAdaptation(Y),I=Mn([B,H,N],me.LINRGB_FROM_SCALED_DISCOUNT);if(I[0]<0||I[1]<0||I[2]<0)return 0;let z=me.Y_FROM_LINRGB[0],ie=me.Y_FROM_LINRGB[1],fe=me.Y_FROM_LINRGB[2],pe=z*I[0]+ie*I[1]+fe*I[2];if(pe<=0)return 0;if(y===4||Math.abs(pe-o)<.002)return I[0]>100.01||I[1]>100.01||I[2]>100.01?0:oi(I);i=i-(pe-o)*i/(2*pe);}return 0}static solveToInt(e,r,o){if(r<1e-4||o<1e-4||o>99.9999)return Ch(o);e=lt(e);let i=e/180*Math.PI,u=rr(o),l=me.findResultByJ(i,r,u);if(l!==0)return l;let d=me.bisectToLimit(u,i);return oi(d)}static solveToCam(e,r,o){return ea.fromInt(me.solveToInt(e,r,o))}};nr.SCALED_DISCOUNT_FROM_LINRGB=[[.001200833568784504,.002389694492170889,.0002795742885861124],[.0005891086651375999,.0029785502573438758,.0003270666104008398],[.00010146692491640572,.0005364214359186694,.0032979401770712076]];nr.LINRGB_FROM_SCALED_DISCOUNT=[[1373.2198709594231,-1100.4251190754821,-7.278681089101213],[-271.815969077903,559.6580465940733,-32.46047482791194],[1.9622899599665666,-57.173814538844006,308.7233197812385]];nr.Y_FROM_LINRGB=[.2126,.7152,.0722];nr.CRITICAL_PLANES=[.015176349177441876,.045529047532325624,.07588174588720938,.10623444424209313,.13658714259697685,.16693984095186062,.19729253930674434,.2276452376616281,.2579979360165119,.28835063437139563,.3188300904430532,.350925934958123,.3848314933096426,.42057480301049466,.458183274052838,.4976837250274023,.5391024159806381,.5824650784040898,.6277969426914107,.6751227633498623,.7244668422128921,.775853049866786,.829304845476233,.8848452951698498,.942497089126609,1.0022825574869039,1.0642236851973577,1.1283421258858297,1.1946592148522128,1.2631959812511864,1.3339731595349034,1.407011200216447,1.4823302800086415,1.5599503113873272,1.6398909516233677,1.7221716113234105,1.8068114625156377,1.8938294463134073,1.9832442801866852,2.075074464868551,2.1693382909216234,2.2660538449872063,2.36523901573795,2.4669114995532007,2.5710888059345764,2.6777882626779785,2.7870270208169257,2.898822059350997,3.0131901897720907,3.1301480604002863,3.2497121605402226,3.3718988244681087,3.4967242352587946,3.624204428461639,3.754355295633311,3.887192587735158,4.022731918402185,4.160988767090289,4.301978482107941,4.445716283538092,4.592217266055746,4.741496401646282,4.893568542229298,5.048448422192488,5.20615066083972,5.3666897647573375,5.5300801301023865,5.696336044816294,5.865471690767354,6.037501145825082,6.212438385869475,6.390297286737924,6.571091626112461,6.7548350853498045,6.941541251256611,7.131223617812143,7.323895587840543,7.5195704746346665,7.7182615035334345,7.919981813454504,8.124744458384042,8.332562408825165,8.543448553206703,8.757415699253682,8.974476575321063,9.194643831691977,9.417930041841839,9.644347703669503,9.873909240696694,10.106627003236781,10.342513269534024,10.58158024687427,10.8238400726681,11.069304815507364,11.317986476196008,11.569896988756009,11.825048221409341,12.083451977536606,12.345119996613247,12.610063955123938,12.878295467455942,13.149826086772048,13.42466730586372,13.702830557985108,13.984327217668513,14.269168601521828,14.55736596900856,14.848930523210871,15.143873411576273,15.44220572664832,15.743938506781891,16.04908273684337,16.35764934889634,16.66964922287304,16.985093187232053,17.30399201960269,17.62635644741625,17.95219714852476,18.281524751807332,18.614349837764564,18.95068293910138,19.290534541298456,19.633915083172692,19.98083495742689,20.331304511189067,20.685334046541502,21.042933821039977,21.404114048223256,21.76888489811322,22.137256497705877,22.50923893145328,22.884842241736916,23.264076429332462,23.6469514538663,24.033477234264016,24.42366364919083,24.817520537484558,25.21505769858089,25.61628489293138,26.021211842414342,26.429848230738664,26.842203703840827,27.258287870275353,27.678110301598522,28.10168053274597,28.529008062403893,28.96010235337422,29.39497283293396,29.83362889318845,30.276079891419332,30.722335150426627,31.172403958865512,31.62629557157785,32.08401920991837,32.54558406207592,33.010999283389665,33.4802739966603,33.953417292456834,34.430438229418264,34.911345834551085,35.39614910352207,35.88485700094671,36.37747846067349,36.87402238606382,37.37449765026789,37.87891309649659,38.38727753828926,38.89959975977785,39.41588851594697,39.93615253289054,40.460400508064545,40.98864111053629,41.520882981230194,42.05713473317016,42.597404951718396,43.141702194811224,43.6900349931913,44.24241185063697,44.798841244188324,45.35933162437017,45.92389141541209,46.49252901546552,47.065252796817916,47.64207110610409,48.22299226451468,48.808024568002054,49.3971762874833,49.9904556690408,50.587870934119984,51.189430279724725,51.79514187861014,52.40501387947288,53.0190544071392,53.637271562750364,54.259673423945976,54.88626804504493,55.517063457223934,56.15206766869424,56.79128866487574,57.43473440856916,58.08241284012621,58.734331877617365,59.39049941699807,60.05092333227251,60.715611475655585,61.38457167773311,62.057811747619894,62.7353394731159,63.417162620860914,64.10328893648692,64.79372614476921,65.48848194977529,66.18756403501224,66.89098006357258,67.59873767827808,68.31084450182222,69.02730813691093,69.74813616640164,70.47333615344107,71.20291564160104,71.93688215501312,72.67524319850172,73.41800625771542,74.16517879925733,74.9167682708136,75.67278210128072,76.43322770089146,77.1981124613393,77.96744375590167,78.74122893956174,79.51947534912904,80.30219030335869,81.08938110306934,81.88105503125999,82.67721935322541,83.4778813166706,84.28304815182372,85.09272707154808,85.90692527145302,86.72564993000343,87.54890820862819,88.3767072518277,89.2090541872801,90.04595612594655,90.88742016217518,91.73345337380438,92.58406282226491,93.43925555268066,94.29903859396902,95.16341895893969,96.03240364439274,96.9059996312159,97.78421388448044,98.6670533535366,99.55452497210776];var he=class Ea{static from(e,r,o){return new Ea(nr.solveToInt(e,r,o))}static fromInt(e){return new Ea(e)}toInt(){return this.argb}get hue(){return this.internalHue}set hue(e){this.setInternalState(nr.solveToInt(e,this.internalChroma,this.internalTone));}get chroma(){return this.internalChroma}set chroma(e){this.setInternalState(nr.solveToInt(this.internalHue,e,this.internalTone));}get tone(){return this.internalTone}set tone(e){this.setInternalState(nr.solveToInt(this.internalHue,this.internalChroma,e));}setValue(e,r){this[e]=r;}toString(){return `HCT(${this.hue.toFixed(0)}, ${this.chroma.toFixed(0)}, ${this.tone.toFixed(0)})`}static isBlue(e){return e>=250&&e<270}static isYellow(e){return e>=105&&e<125}static isCyan(e){return e>=170&&e<207}constructor(e){this.argb=e;let r=ea.fromInt(e);this.internalHue=r.hue,this.internalChroma=r.chroma,this.internalTone=ii(e),this.argb=e;}setInternalState(e){let r=ea.fromInt(e);this.internalHue=r.hue,this.internalChroma=r.chroma,this.internalTone=ii(e),this.argb=e;}inViewingConditions(e){let r=ea.fromInt(this.toInt()).xyzInViewingConditions(e),o=ea.fromXyzInViewingConditions(r[0],r[1],r[2],ar.make());return Ea.from(o.hue,o.chroma,An(r[1]))}},Ke=class Er{static ratioOfTones(e,r){return e=Ze(0,100,e),r=Ze(0,100,r),Er.ratioOfYs(rr(e),rr(r))}static ratioOfYs(e,r){let o=e>r?e:r,i=o===r?e:r;return (o+5)/(i+5)}static lighter(e,r){if(e<0||e>100)return -1;let o=rr(e),i=r*(o+5)-5,u=Er.ratioOfYs(i,o),l=Math.abs(u-r);if(u<r&&l>.04)return -1;let d=An(i)+.4;return d<0||d>100?-1:d}static darker(e,r){if(e<0||e>100)return -1;let o=rr(e),i=(o+5)/r-5,u=Er.ratioOfYs(o,i),l=Math.abs(u-r);if(u<r&&l>.04)return -1;let d=An(i)-.4;return d<0||d>100?-1:d}static lighterUnsafe(e,r){let o=Er.lighter(e,r);return o<0?100:o}static darkerUnsafe(e,r){let o=Er.darker(e,r);return o<0?0:o}},Fn=class di{static isDisliked(e){let r=Math.round(e.hue)>=90&&Math.round(e.hue)<=111,o=Math.round(e.chroma)>16,i=Math.round(e.tone)<65;return r&&o&&i}static fixIfDisliked(e){return di.isDisliked(e)?he.from(e.hue,e.chroma,70):e}};function xh(t,e,r){if(t.name!==r.name)throw new Error(`Attempting to extend color ${t.name} with color ${r.name} of different name for spec version ${e}.`);if(t.isBackground!==r.isBackground)throw new Error(`Attempting to extend color ${t.name} as a ${t.isBackground?"background":"foreground"} with color ${r.name} as a ${r.isBackground?"background":"foreground"} for spec version ${e}.`)}function ce(t,e,r){return xh(t,e,r),A.fromPalette({name:t.name,palette:o=>o.specVersion===e?r.palette(o):t.palette(o),tone:o=>o.specVersion===e?r.tone(o):t.tone(o),isBackground:t.isBackground,chromaMultiplier:o=>{let i=o.specVersion===e?r.chromaMultiplier:t.chromaMultiplier;return i!==void 0?i(o):1},background:o=>{let i=o.specVersion===e?r.background:t.background;return i!==void 0?i(o):void 0},secondBackground:o=>{let i=o.specVersion===e?r.secondBackground:t.secondBackground;return i!==void 0?i(o):void 0},contrastCurve:o=>{let i=o.specVersion===e?r.contrastCurve:t.contrastCurve;return i!==void 0?i(o):void 0},toneDeltaPair:o=>{let i=o.specVersion===e?r.toneDeltaPair:t.toneDeltaPair;return i!==void 0?i(o):void 0}})}var A=class mr{static fromPalette(e){return new mr(e.name??"",e.palette,e.tone??mr.getInitialToneFromBackground(e.background),e.isBackground??false,e.chromaMultiplier,e.background,e.secondBackground,e.contrastCurve,e.toneDeltaPair)}static getInitialToneFromBackground(e){return e===void 0?r=>50:r=>e(r)?e(r).getTone(r):50}constructor(e,r,o,i,u,l,d,f,g){if(this.name=e,this.palette=r,this.tone=o,this.isBackground=i,this.chromaMultiplier=u,this.background=l,this.secondBackground=d,this.contrastCurve=f,this.toneDeltaPair=g,this.hctCache=new Map,!l&&d)throw new Error(`Color ${e} has secondBackgrounddefined, but background is not defined.`);if(!l&&f)throw new Error(`Color ${e} has contrastCurvedefined, but background is not defined.`);if(l&&!f)throw new Error(`Color ${e} has backgrounddefined, but contrastCurve is not defined.`)}clone(){return mr.fromPalette({name:this.name,palette:this.palette,tone:this.tone,isBackground:this.isBackground,chromaMultiplier:this.chromaMultiplier,background:this.background,secondBackground:this.secondBackground,contrastCurve:this.contrastCurve,toneDeltaPair:this.toneDeltaPair})}clearCache(){this.hctCache.clear();}getArgb(e){return this.getHct(e).toInt()}getHct(e){let r=this.hctCache.get(e);if(r!=null)return r;let o=si(e.specVersion).getHct(e,this);return this.hctCache.size>4&&this.hctCache.clear(),this.hctCache.set(e,o),o}getTone(e){return si(e.specVersion).getTone(e,this)}static foregroundTone(e,r){let o=Ke.lighterUnsafe(e,r),i=Ke.darkerUnsafe(e,r),u=Ke.ratioOfTones(o,e),l=Ke.ratioOfTones(i,e);if(mr.tonePrefersLightForeground(e)){let d=Math.abs(u-l)<.1&&u<r&&l<r;return u>=r||u>=l||d?o:i}else return l>=r||l>=u?i:o}static tonePrefersLightForeground(e){return Math.round(e)<60}static toneAllowsLightForeground(e){return Math.round(e)<=49}static enableLightForeground(e){return mr.tonePrefersLightForeground(e)&&!mr.toneAllowsLightForeground(e)?49:e}},Dh=class{getHct(t,e){let r=e.getTone(t);return e.palette(t).getHct(r)}getTone(t,e){let r=t.contrastLevel<0,o=e.toneDeltaPair?e.toneDeltaPair(t):void 0;if(o){let i=o.roleA,u=o.roleB,l=o.delta,d=o.polarity,f=o.stayTogether,g=d==="nearer"||d==="lighter"&&!t.isDark||d==="darker"&&t.isDark,y=g?i:u,b=g?u:i,w=e.name===y.name,v=t.isDark?1:-1,m=y.tone(t),p=b.tone(t);if(e.background&&y.contrastCurve&&b.contrastCurve){let k=e.background(t),O=y.contrastCurve(t),L=b.contrastCurve(t);if(k&&O&&L){let V=k.getTone(t),Y=O.get(t.contrastLevel),B=L.get(t.contrastLevel);Ke.ratioOfTones(V,m)<Y&&(m=A.foregroundTone(V,Y)),Ke.ratioOfTones(V,p)<B&&(p=A.foregroundTone(V,B)),r&&(m=A.foregroundTone(V,Y),p=A.foregroundTone(V,B));}}return (p-m)*v<l&&(p=Ze(0,100,m+l*v),(p-m)*v>=l||(m=Ze(0,100,p-l*v))),50<=m&&m<60?v>0?(m=60,p=Math.max(p,m+l*v)):(m=49,p=Math.min(p,m+l*v)):50<=p&&p<60&&(f?v>0?(m=60,p=Math.max(p,m+l*v)):(m=49,p=Math.min(p,m+l*v)):v>0?p=60:p=49),w?m:p}else {let i=e.tone(t);if(e.background==null||e.background(t)===void 0||e.contrastCurve==null||e.contrastCurve(t)===void 0)return i;let u=e.background(t).getTone(t),l=e.contrastCurve(t).get(t.contrastLevel);if(Ke.ratioOfTones(u,i)>=l||(i=A.foregroundTone(u,l)),r&&(i=A.foregroundTone(u,l)),e.isBackground&&50<=i&&i<60&&(Ke.ratioOfTones(49,u)>=l?i=49:i=60),e.secondBackground==null||e.secondBackground(t)===void 0)return i;let[d,f]=[e.background,e.secondBackground],[g,y]=[d(t).getTone(t),f(t).getTone(t)],[b,w]=[Math.max(g,y),Math.min(g,y)];if(Ke.ratioOfTones(b,i)>=l&&Ke.ratioOfTones(w,i)>=l)return i;let v=Ke.lighter(b,l),m=Ke.darker(w,l),p=[];return v!==-1&&p.push(v),m!==-1&&p.push(m),A.tonePrefersLightForeground(g)||A.tonePrefersLightForeground(y)?v<0?100:v:p.length===1?p[0]:m<0?0:m}}},Th=class{getHct(t,e){let r=e.palette(t),o=e.getTone(t),i=r.hue,u=r.chroma*(e.chromaMultiplier?e.chromaMultiplier(t):1);return he.from(i,u,o)}getTone(t,e){let r=e.toneDeltaPair?e.toneDeltaPair(t):void 0;if(r){let o=r.roleA,i=r.roleB,u=r.polarity,l=r.constraint,d=u==="darker"||u==="relative_lighter"&&t.isDark||u==="relative_darker"&&!t.isDark?-r.delta:r.delta,f=e.name===o.name,g=f?o:i,y=f?i:o,b=g.tone(t),w=y.getTone(t),v=d*(f?1:-1);if(l==="exact"?b=Ze(0,100,w+v):l==="nearer"?v>0?b=Ze(0,100,Ze(w,w+v,b)):b=Ze(0,100,Ze(w+v,w,b)):l==="farther"&&(v>0?b=Ze(w+v,100,b):b=Ze(0,w+v,b)),e.background&&e.contrastCurve){let m=e.background(t),p=e.contrastCurve(t);if(m&&p){let k=m.getTone(t),O=p.get(t.contrastLevel);b=Ke.ratioOfTones(k,b)>=O&&t.contrastLevel>=0?b:A.foregroundTone(k,O);}}return e.isBackground&&!e.name.endsWith("_fixed_dim")&&(b>=57?b=Ze(65,100,b):b=Ze(0,49,b)),b}else {let o=e.tone(t);if(e.background==null||e.background(t)===void 0||e.contrastCurve==null||e.contrastCurve(t)===void 0)return o;let i=e.background(t).getTone(t),u=e.contrastCurve(t).get(t.contrastLevel);if(o=Ke.ratioOfTones(i,o)>=u&&t.contrastLevel>=0?o:A.foregroundTone(i,u),e.isBackground&&!e.name.endsWith("_fixed_dim")&&(o>=57?o=Ze(65,100,o):o=Ze(0,49,o)),e.secondBackground==null||e.secondBackground(t)===void 0)return o;let[l,d]=[e.background,e.secondBackground],[f,g]=[l(t).getTone(t),d(t).getTone(t)],[y,b]=[Math.max(f,g),Math.min(f,g)];if(Ke.ratioOfTones(y,o)>=u&&Ke.ratioOfTones(b,o)>=u)return o;let w=Ke.lighter(y,u),v=Ke.darker(b,u),m=[];return w!==-1&&m.push(w),v!==-1&&m.push(v),A.tonePrefersLightForeground(f)||A.tonePrefersLightForeground(g)?w<0?100:w:m.length===1?m[0]:v<0?0:v}}},Mh=new Dh,Ah=new Th;function si(t){return t==="2025"?Ah:Mh}var K=class Oa{static fromInt(e){let r=he.fromInt(e);return Oa.fromHct(r)}static fromHct(e){return new Oa(e.hue,e.chroma,e)}static fromHueAndChroma(e,r){let o=new Fh(e,r).create();return new Oa(e,r,o)}constructor(e,r,o){this.hue=e,this.chroma=r,this.keyColor=o,this.cache=new Map;}tone(e){let r=this.cache.get(e);return r===void 0&&(e==99&&he.isYellow(this.hue)?r=this.averageArgb(this.tone(98),this.tone(100)):r=he.from(this.hue,this.chroma,e).toInt(),this.cache.set(e,r)),r}getHct(e){return he.fromInt(this.tone(e))}averageArgb(e,r){let o=e>>>16&255,i=e>>>8&255,u=e&255,l=r>>>16&255,d=r>>>8&255,f=r&255,g=Math.round((o+l)/2),y=Math.round((i+d)/2),b=Math.round((u+f)/2);return (255<<24|(g&255)<<16|(y&255)<<8|b&255)>>>0}},Fh=class{constructor(t,e){this.hue=t,this.requestedChroma=e,this.chromaCache=new Map,this.maxChromaValue=200;}create(){let t=0,e=100;for(;t<e;){let r=Math.floor((t+e)/2),o=this.maxChroma(r)<this.maxChroma(r+1);if(this.maxChroma(r)>=this.requestedChroma-.01)if(Math.abs(t-50)<Math.abs(e-50))e=r;else {if(t===r)return he.from(this.hue,this.requestedChroma,t);t=r;}else o?t=r+1:e=r;}return he.from(this.hue,this.requestedChroma,t)}maxChroma(t){if(this.chromaCache.has(t))return this.chromaCache.get(t);let e=he.from(this.hue,this.maxChromaValue,t).chroma;return this.chromaCache.set(t,e),e}},ci=class Ia{constructor(e){this.input=e,this.hctsByTempCache=[],this.hctsByHueCache=[],this.tempsByHctCache=new Map,this.inputRelativeTemperatureCache=-1,this.complementCache=null;}get hctsByTemp(){if(this.hctsByTempCache.length>0)return this.hctsByTempCache;let e=this.hctsByHue.concat([this.input]),r=this.tempsByHct;return e.sort((o,i)=>r.get(o)-r.get(i)),this.hctsByTempCache=e,e}get warmest(){return this.hctsByTemp[this.hctsByTemp.length-1]}get coldest(){return this.hctsByTemp[0]}analogous(e=5,r=12){let o=Math.round(this.input.hue),i=this.hctsByHue[o],u=this.relativeTemperature(i),l=[i],d=0;for(let m=0;m<360;m++){let p=ni(o+m),k=this.hctsByHue[p],O=this.relativeTemperature(k),L=Math.abs(O-u);u=O,d+=L;}let f=1,g=d/r,y=0;for(u=this.relativeTemperature(i);l.length<r;){let m=ni(o+f),p=this.hctsByHue[m],k=this.relativeTemperature(p),O=Math.abs(k-u);y+=O;let L=l.length*g,V=y>=L,Y=1;for(;V&&l.length<r;){l.push(p);let B=(l.length+Y)*g;V=y>=B,Y++;}if(u=k,f++,f>360){for(;l.length<r;)l.push(p);break}}let b=[this.input],w=Math.floor((e-1)/2);for(let m=1;m<w+1;m++){let p=0-m;for(;p<0;)p=l.length+p;p>=l.length&&(p=p%l.length),b.splice(0,0,l[p]);}let v=e-w-1;for(let m=1;m<v+1;m++){let p=m;for(;p<0;)p=l.length+p;p>=l.length&&(p=p%l.length),b.push(l[p]);}return b}get complement(){if(this.complementCache!=null)return this.complementCache;let e=this.coldest.hue,r=this.tempsByHct.get(this.coldest),o=this.warmest.hue,i=this.tempsByHct.get(this.warmest)-r,u=Ia.isBetween(this.input.hue,e,o),l=u?o:e,d=u?e:o,f=1,g=1e3,y=this.hctsByHue[Math.round(this.input.hue)],b=1-this.inputRelativeTemperature;for(let w=0;w<=360;w+=1){let v=lt(l+f*w);if(!Ia.isBetween(v,l,d))continue;let m=this.hctsByHue[Math.round(v)],p=(this.tempsByHct.get(m)-r)/i,k=Math.abs(b-p);k<g&&(g=k,y=m);}return this.complementCache=y,this.complementCache}relativeTemperature(e){let r=this.tempsByHct.get(this.warmest)-this.tempsByHct.get(this.coldest),o=this.tempsByHct.get(e)-this.tempsByHct.get(this.coldest);return r===0?.5:o/r}get inputRelativeTemperature(){return this.inputRelativeTemperatureCache>=0?this.inputRelativeTemperatureCache:(this.inputRelativeTemperatureCache=this.relativeTemperature(this.input),this.inputRelativeTemperatureCache)}get tempsByHct(){if(this.tempsByHctCache.size>0)return this.tempsByHctCache;let e=this.hctsByHue.concat([this.input]),r=new Map;for(let o of e)r.set(o,Ia.rawTemperature(o));return this.tempsByHctCache=r,r}get hctsByHue(){if(this.hctsByHueCache.length>0)return this.hctsByHueCache;let e=[];for(let r=0;r<=360;r+=1){let o=he.from(r,this.input.chroma,this.input.tone);e.push(o);}return this.hctsByHueCache=e,this.hctsByHueCache}static isBetween(e,r,o){return r<o?r<=e&&e<=o:r<=e||e<=o}static rawTemperature(e){let r=wh(e.toInt()),o=lt(Math.atan2(r[2],r[1])*180/Math.PI),i=Math.sqrt(r[1]*r[1]+r[2]*r[2]);return -0.5+.02*Math.pow(i,1.07)*Math.cos(lt(o-50)*Math.PI/180)}},te=class{constructor(t,e,r,o){this.low=t,this.normal=e,this.medium=r,this.high=o;}get(t){return t<=-1?this.low:t<0?ta(this.low,this.normal,(t- -1)/1):t<.5?ta(this.normal,this.medium,(t-0)/.5):t<1?ta(this.medium,this.high,(t-.5)/.5):this.high}},Te=class{constructor(t,e,r,o,i,u){this.roleA=t,this.roleB=e,this.delta=r,this.polarity=o,this.stayTogether=i,this.constraint=u,this.constraint=u??"exact";}},x;(function(t){t[t.MONOCHROME=0]="MONOCHROME",t[t.NEUTRAL=1]="NEUTRAL",t[t.TONAL_SPOT=2]="TONAL_SPOT",t[t.VIBRANT=3]="VIBRANT",t[t.EXPRESSIVE=4]="EXPRESSIVE",t[t.FIDELITY=5]="FIDELITY",t[t.CONTENT=6]="CONTENT",t[t.RAINBOW=7]="RAINBOW",t[t.FRUIT_SALAD=8]="FRUIT_SALAD";})(x||(x={}));function Fr(t){return t.variant===x.FIDELITY||t.variant===x.CONTENT}function Be(t){return t.variant===x.MONOCHROME}function _h(t,e,r,o){let i=r,u=he.from(t,e,r);if(u.chroma<e){let l=u.chroma;for(;u.chroma<e;){i+=o?-1:1;let d=he.from(t,e,i);if(l>d.chroma||Math.abs(d.chroma-e)<.4)break;let f=Math.abs(d.chroma-e),g=Math.abs(u.chroma-e);f<g&&(u=d),l=Math.max(l,d.chroma);}}return i}var Eh=class{primaryPaletteKeyColor(){return A.fromPalette({name:"primary_palette_key_color",palette:t=>t.primaryPalette,tone:t=>t.primaryPalette.keyColor.tone})}secondaryPaletteKeyColor(){return A.fromPalette({name:"secondary_palette_key_color",palette:t=>t.secondaryPalette,tone:t=>t.secondaryPalette.keyColor.tone})}tertiaryPaletteKeyColor(){return A.fromPalette({name:"tertiary_palette_key_color",palette:t=>t.tertiaryPalette,tone:t=>t.tertiaryPalette.keyColor.tone})}neutralPaletteKeyColor(){return A.fromPalette({name:"neutral_palette_key_color",palette:t=>t.neutralPalette,tone:t=>t.neutralPalette.keyColor.tone})}neutralVariantPaletteKeyColor(){return A.fromPalette({name:"neutral_variant_palette_key_color",palette:t=>t.neutralVariantPalette,tone:t=>t.neutralVariantPalette.keyColor.tone})}errorPaletteKeyColor(){return A.fromPalette({name:"error_palette_key_color",palette:t=>t.errorPalette,tone:t=>t.errorPalette.keyColor.tone})}background(){return A.fromPalette({name:"background",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:98,isBackground:true})}onBackground(){return A.fromPalette({name:"on_background",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:10,background:t=>this.background(),contrastCurve:t=>new te(3,3,4.5,7)})}surface(){return A.fromPalette({name:"surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:98,isBackground:true})}surfaceDim(){return A.fromPalette({name:"surface_dim",palette:t=>t.neutralPalette,tone:t=>t.isDark?6:new te(87,87,80,75).get(t.contrastLevel),isBackground:true})}surfaceBright(){return A.fromPalette({name:"surface_bright",palette:t=>t.neutralPalette,tone:t=>t.isDark?new te(24,24,29,34).get(t.contrastLevel):98,isBackground:true})}surfaceContainerLowest(){return A.fromPalette({name:"surface_container_lowest",palette:t=>t.neutralPalette,tone:t=>t.isDark?new te(4,4,2,0).get(t.contrastLevel):100,isBackground:true})}surfaceContainerLow(){return A.fromPalette({name:"surface_container_low",palette:t=>t.neutralPalette,tone:t=>t.isDark?new te(10,10,11,12).get(t.contrastLevel):new te(96,96,96,95).get(t.contrastLevel),isBackground:true})}surfaceContainer(){return A.fromPalette({name:"surface_container",palette:t=>t.neutralPalette,tone:t=>t.isDark?new te(12,12,16,20).get(t.contrastLevel):new te(94,94,92,90).get(t.contrastLevel),isBackground:true})}surfaceContainerHigh(){return A.fromPalette({name:"surface_container_high",palette:t=>t.neutralPalette,tone:t=>t.isDark?new te(17,17,21,25).get(t.contrastLevel):new te(92,92,88,85).get(t.contrastLevel),isBackground:true})}surfaceContainerHighest(){return A.fromPalette({name:"surface_container_highest",palette:t=>t.neutralPalette,tone:t=>t.isDark?new te(22,22,26,30).get(t.contrastLevel):new te(90,90,84,80).get(t.contrastLevel),isBackground:true})}onSurface(){return A.fromPalette({name:"on_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:10,background:t=>this.highestSurface(t),contrastCurve:t=>new te(4.5,7,11,21)})}surfaceVariant(){return A.fromPalette({name:"surface_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?30:90,isBackground:true})}onSurfaceVariant(){return A.fromPalette({name:"on_surface_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?80:30,background:t=>this.highestSurface(t),contrastCurve:t=>new te(3,4.5,7,11)})}inverseSurface(){return A.fromPalette({name:"inverse_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?90:20,isBackground:true})}inverseOnSurface(){return A.fromPalette({name:"inverse_on_surface",palette:t=>t.neutralPalette,tone:t=>t.isDark?20:95,background:t=>this.inverseSurface(),contrastCurve:t=>new te(4.5,7,11,21)})}outline(){return A.fromPalette({name:"outline",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?60:50,background:t=>this.highestSurface(t),contrastCurve:t=>new te(1.5,3,4.5,7)})}outlineVariant(){return A.fromPalette({name:"outline_variant",palette:t=>t.neutralVariantPalette,tone:t=>t.isDark?30:80,background:t=>this.highestSurface(t),contrastCurve:t=>new te(1,1,3,4.5)})}shadow(){return A.fromPalette({name:"shadow",palette:t=>t.neutralPalette,tone:t=>0})}scrim(){return A.fromPalette({name:"scrim",palette:t=>t.neutralPalette,tone:t=>0})}surfaceTint(){return A.fromPalette({name:"surface_tint",palette:t=>t.primaryPalette,tone:t=>t.isDark?80:40,isBackground:true})}primary(){return A.fromPalette({name:"primary",palette:t=>t.primaryPalette,tone:t=>Be(t)?t.isDark?100:0:t.isDark?80:40,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new te(3,4.5,7,7),toneDeltaPair:t=>new Te(this.primaryContainer(),this.primary(),10,"nearer",false)})}primaryDim(){}onPrimary(){return A.fromPalette({name:"on_primary",palette:t=>t.primaryPalette,tone:t=>Be(t)?t.isDark?10:90:t.isDark?20:100,background:t=>this.primary(),contrastCurve:t=>new te(4.5,7,11,21)})}primaryContainer(){return A.fromPalette({name:"primary_container",palette:t=>t.primaryPalette,tone:t=>Fr(t)?t.sourceColorHct.tone:Be(t)?t.isDark?85:25:t.isDark?30:90,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new te(1,1,3,4.5),toneDeltaPair:t=>new Te(this.primaryContainer(),this.primary(),10,"nearer",false)})}onPrimaryContainer(){return A.fromPalette({name:"on_primary_container",palette:t=>t.primaryPalette,tone:t=>Fr(t)?A.foregroundTone(this.primaryContainer().tone(t),4.5):Be(t)?t.isDark?0:100:t.isDark?90:30,background:t=>this.primaryContainer(),contrastCurve:t=>new te(3,4.5,7,11)})}inversePrimary(){return A.fromPalette({name:"inverse_primary",palette:t=>t.primaryPalette,tone:t=>t.isDark?40:80,background:t=>this.inverseSurface(),contrastCurve:t=>new te(3,4.5,7,7)})}secondary(){return A.fromPalette({name:"secondary",palette:t=>t.secondaryPalette,tone:t=>t.isDark?80:40,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new te(3,4.5,7,7),toneDeltaPair:t=>new Te(this.secondaryContainer(),this.secondary(),10,"nearer",false)})}secondaryDim(){}onSecondary(){return A.fromPalette({name:"on_secondary",palette:t=>t.secondaryPalette,tone:t=>Be(t)?t.isDark?10:100:t.isDark?20:100,background:t=>this.secondary(),contrastCurve:t=>new te(4.5,7,11,21)})}secondaryContainer(){return A.fromPalette({name:"secondary_container",palette:t=>t.secondaryPalette,tone:t=>{let e=t.isDark?30:90;return Be(t)?t.isDark?30:85:Fr(t)?_h(t.secondaryPalette.hue,t.secondaryPalette.chroma,e,!t.isDark):e},isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new te(1,1,3,4.5),toneDeltaPair:t=>new Te(this.secondaryContainer(),this.secondary(),10,"nearer",false)})}onSecondaryContainer(){return A.fromPalette({name:"on_secondary_container",palette:t=>t.secondaryPalette,tone:t=>Be(t)?t.isDark?90:10:Fr(t)?A.foregroundTone(this.secondaryContainer().tone(t),4.5):t.isDark?90:30,background:t=>this.secondaryContainer(),contrastCurve:t=>new te(3,4.5,7,11)})}tertiary(){return A.fromPalette({name:"tertiary",palette:t=>t.tertiaryPalette,tone:t=>Be(t)?t.isDark?90:25:t.isDark?80:40,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new te(3,4.5,7,7),toneDeltaPair:t=>new Te(this.tertiaryContainer(),this.tertiary(),10,"nearer",false)})}tertiaryDim(){}onTertiary(){return A.fromPalette({name:"on_tertiary",palette:t=>t.tertiaryPalette,tone:t=>Be(t)?t.isDark?10:90:t.isDark?20:100,background:t=>this.tertiary(),contrastCurve:t=>new te(4.5,7,11,21)})}tertiaryContainer(){return A.fromPalette({name:"tertiary_container",palette:t=>t.tertiaryPalette,tone:t=>{if(Be(t))return t.isDark?60:49;if(!Fr(t))return t.isDark?30:90;let e=t.tertiaryPalette.getHct(t.sourceColorHct.tone);return Fn.fixIfDisliked(e).tone},isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new te(1,1,3,4.5),toneDeltaPair:t=>new Te(this.tertiaryContainer(),this.tertiary(),10,"nearer",false)})}onTertiaryContainer(){return A.fromPalette({name:"on_tertiary_container",palette:t=>t.tertiaryPalette,tone:t=>Be(t)?t.isDark?0:100:Fr(t)?A.foregroundTone(this.tertiaryContainer().tone(t),4.5):t.isDark?90:30,background:t=>this.tertiaryContainer(),contrastCurve:t=>new te(3,4.5,7,11)})}error(){return A.fromPalette({name:"error",palette:t=>t.errorPalette,tone:t=>t.isDark?80:40,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new te(3,4.5,7,7),toneDeltaPair:t=>new Te(this.errorContainer(),this.error(),10,"nearer",false)})}errorDim(){}onError(){return A.fromPalette({name:"on_error",palette:t=>t.errorPalette,tone:t=>t.isDark?20:100,background:t=>this.error(),contrastCurve:t=>new te(4.5,7,11,21)})}errorContainer(){return A.fromPalette({name:"error_container",palette:t=>t.errorPalette,tone:t=>t.isDark?30:90,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new te(1,1,3,4.5),toneDeltaPair:t=>new Te(this.errorContainer(),this.error(),10,"nearer",false)})}onErrorContainer(){return A.fromPalette({name:"on_error_container",palette:t=>t.errorPalette,tone:t=>Be(t)?t.isDark?90:10:t.isDark?90:30,background:t=>this.errorContainer(),contrastCurve:t=>new te(3,4.5,7,11)})}primaryFixed(){return A.fromPalette({name:"primary_fixed",palette:t=>t.primaryPalette,tone:t=>Be(t)?40:90,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new te(1,1,3,4.5),toneDeltaPair:t=>new Te(this.primaryFixed(),this.primaryFixedDim(),10,"lighter",true)})}primaryFixedDim(){return A.fromPalette({name:"primary_fixed_dim",palette:t=>t.primaryPalette,tone:t=>Be(t)?30:80,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new te(1,1,3,4.5),toneDeltaPair:t=>new Te(this.primaryFixed(),this.primaryFixedDim(),10,"lighter",true)})}onPrimaryFixed(){return A.fromPalette({name:"on_primary_fixed",palette:t=>t.primaryPalette,tone:t=>Be(t)?100:10,background:t=>this.primaryFixedDim(),secondBackground:t=>this.primaryFixed(),contrastCurve:t=>new te(4.5,7,11,21)})}onPrimaryFixedVariant(){return A.fromPalette({name:"on_primary_fixed_variant",palette:t=>t.primaryPalette,tone:t=>Be(t)?90:30,background:t=>this.primaryFixedDim(),secondBackground:t=>this.primaryFixed(),contrastCurve:t=>new te(3,4.5,7,11)})}secondaryFixed(){return A.fromPalette({name:"secondary_fixed",palette:t=>t.secondaryPalette,tone:t=>Be(t)?80:90,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new te(1,1,3,4.5),toneDeltaPair:t=>new Te(this.secondaryFixed(),this.secondaryFixedDim(),10,"lighter",true)})}secondaryFixedDim(){return A.fromPalette({name:"secondary_fixed_dim",palette:t=>t.secondaryPalette,tone:t=>Be(t)?70:80,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new te(1,1,3,4.5),toneDeltaPair:t=>new Te(this.secondaryFixed(),this.secondaryFixedDim(),10,"lighter",true)})}onSecondaryFixed(){return A.fromPalette({name:"on_secondary_fixed",palette:t=>t.secondaryPalette,tone:t=>10,background:t=>this.secondaryFixedDim(),secondBackground:t=>this.secondaryFixed(),contrastCurve:t=>new te(4.5,7,11,21)})}onSecondaryFixedVariant(){return A.fromPalette({name:"on_secondary_fixed_variant",palette:t=>t.secondaryPalette,tone:t=>Be(t)?25:30,background:t=>this.secondaryFixedDim(),secondBackground:t=>this.secondaryFixed(),contrastCurve:t=>new te(3,4.5,7,11)})}tertiaryFixed(){return A.fromPalette({name:"tertiary_fixed",palette:t=>t.tertiaryPalette,tone:t=>Be(t)?40:90,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new te(1,1,3,4.5),toneDeltaPair:t=>new Te(this.tertiaryFixed(),this.tertiaryFixedDim(),10,"lighter",true)})}tertiaryFixedDim(){return A.fromPalette({name:"tertiary_fixed_dim",palette:t=>t.tertiaryPalette,tone:t=>Be(t)?30:80,isBackground:true,background:t=>this.highestSurface(t),contrastCurve:t=>new te(1,1,3,4.5),toneDeltaPair:t=>new Te(this.tertiaryFixed(),this.tertiaryFixedDim(),10,"lighter",true)})}onTertiaryFixed(){return A.fromPalette({name:"on_tertiary_fixed",palette:t=>t.tertiaryPalette,tone:t=>Be(t)?100:10,background:t=>this.tertiaryFixedDim(),secondBackground:t=>this.tertiaryFixed(),contrastCurve:t=>new te(4.5,7,11,21)})}onTertiaryFixedVariant(){return A.fromPalette({name:"on_tertiary_fixed_variant",palette:t=>t.tertiaryPalette,tone:t=>Be(t)?90:30,background:t=>this.tertiaryFixedDim(),secondBackground:t=>this.tertiaryFixed(),contrastCurve:t=>new te(3,4.5,7,11)})}highestSurface(t){return t.isDark?this.surfaceBright():this.surfaceDim()}};function be(t,e=0,r=100,o=1){let i=mi(t.hue,t.chroma*o,100,true);return Ze(e,r,i)}function er(t,e=0,r=100){let o=mi(t.hue,t.chroma,0,false);return Ze(e,r,o)}function mi(t,e,r,o){let i=r,u=he.from(t,e,i);for(;u.chroma<e&&!(r<0||r>100);){r+=o?-1:1;let l=he.from(t,e,r);u.chroma<l.chroma&&(u=l,i=r);}return i}function ne(t){return t===1.5?new te(1.5,1.5,3,5.5):t===3?new te(3,3,4.5,7):t===4.5?new te(4.5,4.5,7,11):t===6?new te(6,6,7,11):t===7?new te(7,7,11,21):t===9?new te(9,9,11,21):t===11?new te(11,11,21,21):t===21?new te(21,21,21,21):new te(t,t,7,21)}var Oh=class extends Eh{surface(){let t=A.fromPalette({name:"surface",palette:e=>e.neutralPalette,tone:e=>(super.surface().tone(e),e.platform==="phone"?e.isDark?4:he.isYellow(e.neutralPalette.hue)?99:e.variant===x.VIBRANT?97:98:0),isBackground:true});return ce(super.surface(),"2025",t)}surfaceDim(){let t=A.fromPalette({name:"surface_dim",palette:e=>e.neutralPalette,tone:e=>e.isDark?4:he.isYellow(e.neutralPalette.hue)?90:e.variant===x.VIBRANT?85:87,isBackground:true,chromaMultiplier:e=>{if(!e.isDark){if(e.variant===x.NEUTRAL)return 2.5;if(e.variant===x.TONAL_SPOT)return 1.7;if(e.variant===x.EXPRESSIVE)return he.isYellow(e.neutralPalette.hue)?2.7:1.75;if(e.variant===x.VIBRANT)return 1.36}return 1}});return ce(super.surfaceDim(),"2025",t)}surfaceBright(){let t=A.fromPalette({name:"surface_bright",palette:e=>e.neutralPalette,tone:e=>e.isDark?18:he.isYellow(e.neutralPalette.hue)?99:e.variant===x.VIBRANT?97:98,isBackground:true,chromaMultiplier:e=>{if(e.isDark){if(e.variant===x.NEUTRAL)return 2.5;if(e.variant===x.TONAL_SPOT)return 1.7;if(e.variant===x.EXPRESSIVE)return he.isYellow(e.neutralPalette.hue)?2.7:1.75;if(e.variant===x.VIBRANT)return 1.36}return 1}});return ce(super.surfaceBright(),"2025",t)}surfaceContainerLowest(){let t=A.fromPalette({name:"surface_container_lowest",palette:e=>e.neutralPalette,tone:e=>e.isDark?0:100,isBackground:true});return ce(super.surfaceContainerLowest(),"2025",t)}surfaceContainerLow(){let t=A.fromPalette({name:"surface_container_low",palette:e=>e.neutralPalette,tone:e=>e.platform==="phone"?e.isDark?6:he.isYellow(e.neutralPalette.hue)?98:e.variant===x.VIBRANT?95:96:15,isBackground:true,chromaMultiplier:e=>{if(e.platform==="phone"){if(e.variant===x.NEUTRAL)return 1.3;if(e.variant===x.TONAL_SPOT)return 1.25;if(e.variant===x.EXPRESSIVE)return he.isYellow(e.neutralPalette.hue)?1.3:1.15;if(e.variant===x.VIBRANT)return 1.08}return 1}});return ce(super.surfaceContainerLow(),"2025",t)}surfaceContainer(){let t=A.fromPalette({name:"surface_container",palette:e=>e.neutralPalette,tone:e=>e.platform==="phone"?e.isDark?9:he.isYellow(e.neutralPalette.hue)?96:e.variant===x.VIBRANT?92:94:20,isBackground:true,chromaMultiplier:e=>{if(e.platform==="phone"){if(e.variant===x.NEUTRAL)return 1.6;if(e.variant===x.TONAL_SPOT)return 1.4;if(e.variant===x.EXPRESSIVE)return he.isYellow(e.neutralPalette.hue)?1.6:1.3;if(e.variant===x.VIBRANT)return 1.15}return 1}});return ce(super.surfaceContainer(),"2025",t)}surfaceContainerHigh(){let t=A.fromPalette({name:"surface_container_high",palette:e=>e.neutralPalette,tone:e=>e.platform==="phone"?e.isDark?12:he.isYellow(e.neutralPalette.hue)?94:e.variant===x.VIBRANT?90:92:25,isBackground:true,chromaMultiplier:e=>{if(e.platform==="phone"){if(e.variant===x.NEUTRAL)return 1.9;if(e.variant===x.TONAL_SPOT)return 1.5;if(e.variant===x.EXPRESSIVE)return he.isYellow(e.neutralPalette.hue)?1.95:1.45;if(e.variant===x.VIBRANT)return 1.22}return 1}});return ce(super.surfaceContainerHigh(),"2025",t)}surfaceContainerHighest(){let t=A.fromPalette({name:"surface_container_highest",palette:e=>e.neutralPalette,tone:e=>e.isDark?15:he.isYellow(e.neutralPalette.hue)?92:e.variant===x.VIBRANT?88:90,isBackground:true,chromaMultiplier:e=>e.variant===x.NEUTRAL?2.2:e.variant===x.TONAL_SPOT?1.7:e.variant===x.EXPRESSIVE?he.isYellow(e.neutralPalette.hue)?2.3:1.6:e.variant===x.VIBRANT?1.29:1});return ce(super.surfaceContainerHighest(),"2025",t)}onSurface(){let t=A.fromPalette({name:"on_surface",palette:e=>e.neutralPalette,tone:e=>e.variant===x.VIBRANT?be(e.neutralPalette,0,100,1.1):A.getInitialToneFromBackground(r=>r.platform==="phone"?this.highestSurface(r):this.surfaceContainerHigh())(e),chromaMultiplier:e=>{if(e.platform==="phone"){if(e.variant===x.NEUTRAL)return 2.2;if(e.variant===x.TONAL_SPOT)return 1.7;if(e.variant===x.EXPRESSIVE)return he.isYellow(e.neutralPalette.hue)?e.isDark?3:2.3:1.6}return 1},background:e=>e.platform==="phone"?this.highestSurface(e):this.surfaceContainerHigh(),contrastCurve:e=>e.isDark&&e.platform==="phone"?ne(11):ne(9)});return ce(super.onSurface(),"2025",t)}onSurfaceVariant(){let t=A.fromPalette({name:"on_surface_variant",palette:e=>e.neutralPalette,chromaMultiplier:e=>{if(e.platform==="phone"){if(e.variant===x.NEUTRAL)return 2.2;if(e.variant===x.TONAL_SPOT)return 1.7;if(e.variant===x.EXPRESSIVE)return he.isYellow(e.neutralPalette.hue)?e.isDark?3:2.3:1.6}return 1},background:e=>e.platform==="phone"?this.highestSurface(e):this.surfaceContainerHigh(),contrastCurve:e=>e.platform==="phone"?e.isDark?ne(6):ne(4.5):ne(7)});return ce(super.onSurfaceVariant(),"2025",t)}outline(){let t=A.fromPalette({name:"outline",palette:e=>e.neutralPalette,chromaMultiplier:e=>{if(e.platform==="phone"){if(e.variant===x.NEUTRAL)return 2.2;if(e.variant===x.TONAL_SPOT)return 1.7;if(e.variant===x.EXPRESSIVE)return he.isYellow(e.neutralPalette.hue)?e.isDark?3:2.3:1.6}return 1},background:e=>e.platform==="phone"?this.highestSurface(e):this.surfaceContainerHigh(),contrastCurve:e=>e.platform==="phone"?ne(3):ne(4.5)});return ce(super.outline(),"2025",t)}outlineVariant(){let t=A.fromPalette({name:"outline_variant",palette:e=>e.neutralPalette,chromaMultiplier:e=>{if(e.platform==="phone"){if(e.variant===x.NEUTRAL)return 2.2;if(e.variant===x.TONAL_SPOT)return 1.7;if(e.variant===x.EXPRESSIVE)return he.isYellow(e.neutralPalette.hue)?e.isDark?3:2.3:1.6}return 1},background:e=>e.platform==="phone"?this.highestSurface(e):this.surfaceContainerHigh(),contrastCurve:e=>e.platform==="phone"?ne(1.5):ne(3)});return ce(super.outlineVariant(),"2025",t)}inverseSurface(){let t=A.fromPalette({name:"inverse_surface",palette:e=>e.neutralPalette,tone:e=>e.isDark?98:4,isBackground:true});return ce(super.inverseSurface(),"2025",t)}inverseOnSurface(){let t=A.fromPalette({name:"inverse_on_surface",palette:e=>e.neutralPalette,background:e=>this.inverseSurface(),contrastCurve:e=>ne(7)});return ce(super.inverseOnSurface(),"2025",t)}primary(){let t=A.fromPalette({name:"primary",palette:e=>e.primaryPalette,tone:e=>e.variant===x.NEUTRAL?e.platform==="phone"?e.isDark?80:40:90:e.variant===x.TONAL_SPOT?e.platform==="phone"?e.isDark?80:be(e.primaryPalette):be(e.primaryPalette,0,90):e.variant===x.EXPRESSIVE?e.platform==="phone"?be(e.primaryPalette,0,he.isYellow(e.primaryPalette.hue)?25:he.isCyan(e.primaryPalette.hue)?88:98):be(e.primaryPalette):e.platform==="phone"?be(e.primaryPalette,0,he.isCyan(e.primaryPalette.hue)?88:98):be(e.primaryPalette),isBackground:true,background:e=>e.platform==="phone"?this.highestSurface(e):this.surfaceContainerHigh(),contrastCurve:e=>e.platform==="phone"?ne(4.5):ne(7),toneDeltaPair:e=>e.platform==="phone"?new Te(this.primaryContainer(),this.primary(),5,"relative_lighter",true,"farther"):void 0});return ce(super.primary(),"2025",t)}primaryDim(){return A.fromPalette({name:"primary_dim",palette:t=>t.primaryPalette,tone:t=>t.variant===x.NEUTRAL?85:t.variant===x.TONAL_SPOT?be(t.primaryPalette,0,90):be(t.primaryPalette),isBackground:true,background:t=>this.surfaceContainerHigh(),contrastCurve:t=>ne(4.5),toneDeltaPair:t=>new Te(this.primaryDim(),this.primary(),5,"darker",true,"farther")})}onPrimary(){let t=A.fromPalette({name:"on_primary",palette:e=>e.primaryPalette,background:e=>e.platform==="phone"?this.primary():this.primaryDim(),contrastCurve:e=>e.platform==="phone"?ne(6):ne(7)});return ce(super.onPrimary(),"2025",t)}primaryContainer(){let t=A.fromPalette({name:"primary_container",palette:e=>e.primaryPalette,tone:e=>e.platform==="watch"?30:e.variant===x.NEUTRAL?e.isDark?30:90:e.variant===x.TONAL_SPOT?e.isDark?er(e.primaryPalette,35,93):be(e.primaryPalette,0,90):e.variant===x.EXPRESSIVE?e.isDark?be(e.primaryPalette,30,93):be(e.primaryPalette,78,he.isCyan(e.primaryPalette.hue)?88:90):e.isDark?er(e.primaryPalette,66,93):be(e.primaryPalette,66,he.isCyan(e.primaryPalette.hue)?88:93),isBackground:true,background:e=>e.platform==="phone"?this.highestSurface(e):void 0,toneDeltaPair:e=>e.platform==="phone"?void 0:new Te(this.primaryContainer(),this.primaryDim(),10,"darker",true,"farther"),contrastCurve:e=>e.platform==="phone"&&e.contrastLevel>0?ne(1.5):void 0});return ce(super.primaryContainer(),"2025",t)}onPrimaryContainer(){let t=A.fromPalette({name:"on_primary_container",palette:e=>e.primaryPalette,background:e=>this.primaryContainer(),contrastCurve:e=>e.platform==="phone"?ne(6):ne(7)});return ce(super.onPrimaryContainer(),"2025",t)}primaryFixed(){let t=A.fromPalette({name:"primary_fixed",palette:e=>e.primaryPalette,tone:e=>{let r=Object.assign({},e,{isDark:false,contrastLevel:0});return this.primaryContainer().getTone(r)},isBackground:true,background:e=>e.platform==="phone"?this.highestSurface(e):void 0,contrastCurve:e=>e.platform==="phone"&&e.contrastLevel>0?ne(1.5):void 0});return ce(super.primaryFixed(),"2025",t)}primaryFixedDim(){let t=A.fromPalette({name:"primary_fixed_dim",palette:e=>e.primaryPalette,tone:e=>this.primaryFixed().getTone(e),isBackground:true,toneDeltaPair:e=>new Te(this.primaryFixedDim(),this.primaryFixed(),5,"darker",true,"exact")});return ce(super.primaryFixedDim(),"2025",t)}onPrimaryFixed(){let t=A.fromPalette({name:"on_primary_fixed",palette:e=>e.primaryPalette,background:e=>this.primaryFixedDim(),contrastCurve:e=>ne(7)});return ce(super.onPrimaryFixed(),"2025",t)}onPrimaryFixedVariant(){let t=A.fromPalette({name:"on_primary_fixed_variant",palette:e=>e.primaryPalette,background:e=>this.primaryFixedDim(),contrastCurve:e=>ne(4.5)});return ce(super.onPrimaryFixedVariant(),"2025",t)}inversePrimary(){let t=A.fromPalette({name:"inverse_primary",palette:e=>e.primaryPalette,tone:e=>be(e.primaryPalette),background:e=>this.inverseSurface(),contrastCurve:e=>e.platform==="phone"?ne(6):ne(7)});return ce(super.inversePrimary(),"2025",t)}secondary(){let t=A.fromPalette({name:"secondary",palette:e=>e.secondaryPalette,tone:e=>e.platform==="watch"?e.variant===x.NEUTRAL?90:be(e.secondaryPalette,0,90):e.variant===x.NEUTRAL?e.isDark?er(e.secondaryPalette,0,98):be(e.secondaryPalette):e.variant===x.VIBRANT?be(e.secondaryPalette,0,e.isDark?90:98):e.isDark?80:be(e.secondaryPalette),isBackground:true,background:e=>e.platform==="phone"?this.highestSurface(e):this.surfaceContainerHigh(),contrastCurve:e=>e.platform==="phone"?ne(4.5):ne(7),toneDeltaPair:e=>e.platform==="phone"?new Te(this.secondaryContainer(),this.secondary(),5,"relative_lighter",true,"farther"):void 0});return ce(super.secondary(),"2025",t)}secondaryDim(){return A.fromPalette({name:"secondary_dim",palette:t=>t.secondaryPalette,tone:t=>t.variant===x.NEUTRAL?85:be(t.secondaryPalette,0,90),isBackground:true,background:t=>this.surfaceContainerHigh(),contrastCurve:t=>ne(4.5),toneDeltaPair:t=>new Te(this.secondaryDim(),this.secondary(),5,"darker",true,"farther")})}onSecondary(){let t=A.fromPalette({name:"on_secondary",palette:e=>e.secondaryPalette,background:e=>e.platform==="phone"?this.secondary():this.secondaryDim(),contrastCurve:e=>e.platform==="phone"?ne(6):ne(7)});return ce(super.onSecondary(),"2025",t)}secondaryContainer(){let t=A.fromPalette({name:"secondary_container",palette:e=>e.secondaryPalette,tone:e=>e.platform==="watch"?30:e.variant===x.VIBRANT?e.isDark?er(e.secondaryPalette,30,40):be(e.secondaryPalette,84,90):e.variant===x.EXPRESSIVE?e.isDark?15:be(e.secondaryPalette,90,95):e.isDark?25:90,isBackground:true,background:e=>e.platform==="phone"?this.highestSurface(e):void 0,toneDeltaPair:e=>e.platform==="watch"?new Te(this.secondaryContainer(),this.secondaryDim(),10,"darker",true,"farther"):void 0,contrastCurve:e=>e.platform==="phone"&&e.contrastLevel>0?ne(1.5):void 0});return ce(super.secondaryContainer(),"2025",t)}onSecondaryContainer(){let t=A.fromPalette({name:"on_secondary_container",palette:e=>e.secondaryPalette,background:e=>this.secondaryContainer(),contrastCurve:e=>e.platform==="phone"?ne(6):ne(7)});return ce(super.onSecondaryContainer(),"2025",t)}secondaryFixed(){let t=A.fromPalette({name:"secondary_fixed",palette:e=>e.secondaryPalette,tone:e=>{let r=Object.assign({},e,{isDark:false,contrastLevel:0});return this.secondaryContainer().getTone(r)},isBackground:true,background:e=>e.platform==="phone"?this.highestSurface(e):void 0,contrastCurve:e=>e.platform==="phone"&&e.contrastLevel>0?ne(1.5):void 0});return ce(super.secondaryFixed(),"2025",t)}secondaryFixedDim(){let t=A.fromPalette({name:"secondary_fixed_dim",palette:e=>e.secondaryPalette,tone:e=>this.secondaryFixed().getTone(e),isBackground:true,toneDeltaPair:e=>new Te(this.secondaryFixedDim(),this.secondaryFixed(),5,"darker",true,"exact")});return ce(super.secondaryFixedDim(),"2025",t)}onSecondaryFixed(){let t=A.fromPalette({name:"on_secondary_fixed",palette:e=>e.secondaryPalette,background:e=>this.secondaryFixedDim(),contrastCurve:e=>ne(7)});return ce(super.onSecondaryFixed(),"2025",t)}onSecondaryFixedVariant(){let t=A.fromPalette({name:"on_secondary_fixed_variant",palette:e=>e.secondaryPalette,background:e=>this.secondaryFixedDim(),contrastCurve:e=>ne(4.5)});return ce(super.onSecondaryFixedVariant(),"2025",t)}tertiary(){let t=A.fromPalette({name:"tertiary",palette:e=>e.tertiaryPalette,tone:e=>e.platform==="watch"?e.variant===x.TONAL_SPOT?be(e.tertiaryPalette,0,90):be(e.tertiaryPalette):e.variant===x.EXPRESSIVE||e.variant===x.VIBRANT?be(e.tertiaryPalette,0,he.isCyan(e.tertiaryPalette.hue)?88:e.isDark?98:100):e.isDark?be(e.tertiaryPalette,0,98):be(e.tertiaryPalette),isBackground:true,background:e=>e.platform==="phone"?this.highestSurface(e):this.surfaceContainerHigh(),contrastCurve:e=>e.platform==="phone"?ne(4.5):ne(7),toneDeltaPair:e=>e.platform==="phone"?new Te(this.tertiaryContainer(),this.tertiary(),5,"relative_lighter",true,"farther"):void 0});return ce(super.tertiary(),"2025",t)}tertiaryDim(){return A.fromPalette({name:"tertiary_dim",palette:t=>t.tertiaryPalette,tone:t=>t.variant===x.TONAL_SPOT?be(t.tertiaryPalette,0,90):be(t.tertiaryPalette),isBackground:true,background:t=>this.surfaceContainerHigh(),contrastCurve:t=>ne(4.5),toneDeltaPair:t=>new Te(this.tertiaryDim(),this.tertiary(),5,"darker",true,"farther")})}onTertiary(){let t=A.fromPalette({name:"on_tertiary",palette:e=>e.tertiaryPalette,background:e=>e.platform==="phone"?this.tertiary():this.tertiaryDim(),contrastCurve:e=>e.platform==="phone"?ne(6):ne(7)});return ce(super.onTertiary(),"2025",t)}tertiaryContainer(){let t=A.fromPalette({name:"tertiary_container",palette:e=>e.tertiaryPalette,tone:e=>e.platform==="watch"?e.variant===x.TONAL_SPOT?be(e.tertiaryPalette,0,90):be(e.tertiaryPalette):e.variant===x.NEUTRAL?e.isDark?be(e.tertiaryPalette,0,93):be(e.tertiaryPalette,0,96):e.variant===x.TONAL_SPOT?be(e.tertiaryPalette,0,e.isDark?93:100):e.variant===x.EXPRESSIVE?be(e.tertiaryPalette,75,he.isCyan(e.tertiaryPalette.hue)?88:e.isDark?93:100):e.isDark?be(e.tertiaryPalette,0,93):be(e.tertiaryPalette,72,100),isBackground:true,background:e=>e.platform==="phone"?this.highestSurface(e):void 0,toneDeltaPair:e=>e.platform==="watch"?new Te(this.tertiaryContainer(),this.tertiaryDim(),10,"darker",true,"farther"):void 0,contrastCurve:e=>e.platform==="phone"&&e.contrastLevel>0?ne(1.5):void 0});return ce(super.tertiaryContainer(),"2025",t)}onTertiaryContainer(){let t=A.fromPalette({name:"on_tertiary_container",palette:e=>e.tertiaryPalette,background:e=>this.tertiaryContainer(),contrastCurve:e=>e.platform==="phone"?ne(6):ne(7)});return ce(super.onTertiaryContainer(),"2025",t)}tertiaryFixed(){let t=A.fromPalette({name:"tertiary_fixed",palette:e=>e.tertiaryPalette,tone:e=>{let r=Object.assign({},e,{isDark:false,contrastLevel:0});return this.tertiaryContainer().getTone(r)},isBackground:true,background:e=>e.platform==="phone"?this.highestSurface(e):void 0,contrastCurve:e=>e.platform==="phone"&&e.contrastLevel>0?ne(1.5):void 0});return ce(super.tertiaryFixed(),"2025",t)}tertiaryFixedDim(){let t=A.fromPalette({name:"tertiary_fixed_dim",palette:e=>e.tertiaryPalette,tone:e=>this.tertiaryFixed().getTone(e),isBackground:true,toneDeltaPair:e=>new Te(this.tertiaryFixedDim(),this.tertiaryFixed(),5,"darker",true,"exact")});return ce(super.tertiaryFixedDim(),"2025",t)}onTertiaryFixed(){let t=A.fromPalette({name:"on_tertiary_fixed",palette:e=>e.tertiaryPalette,background:e=>this.tertiaryFixedDim(),contrastCurve:e=>ne(7)});return ce(super.onTertiaryFixed(),"2025",t)}onTertiaryFixedVariant(){let t=A.fromPalette({name:"on_tertiary_fixed_variant",palette:e=>e.tertiaryPalette,background:e=>this.tertiaryFixedDim(),contrastCurve:e=>ne(4.5)});return ce(super.onTertiaryFixedVariant(),"2025",t)}error(){let t=A.fromPalette({name:"error",palette:e=>e.errorPalette,tone:e=>e.platform==="phone"?e.isDark?er(e.errorPalette,0,98):be(e.errorPalette):er(e.errorPalette),isBackground:true,background:e=>e.platform==="phone"?this.highestSurface(e):this.surfaceContainerHigh(),contrastCurve:e=>e.platform==="phone"?ne(4.5):ne(7),toneDeltaPair:e=>e.platform==="phone"?new Te(this.errorContainer(),this.error(),5,"relative_lighter",true,"farther"):void 0});return ce(super.error(),"2025",t)}errorDim(){return A.fromPalette({name:"error_dim",palette:t=>t.errorPalette,tone:t=>er(t.errorPalette),isBackground:true,background:t=>this.surfaceContainerHigh(),contrastCurve:t=>ne(4.5),toneDeltaPair:t=>new Te(this.errorDim(),this.error(),5,"darker",true,"farther")})}onError(){let t=A.fromPalette({name:"on_error",palette:e=>e.errorPalette,background:e=>e.platform==="phone"?this.error():this.errorDim(),contrastCurve:e=>e.platform==="phone"?ne(6):ne(7)});return ce(super.onError(),"2025",t)}errorContainer(){let t=A.fromPalette({name:"error_container",palette:e=>e.errorPalette,tone:e=>e.platform==="watch"?30:e.isDark?er(e.errorPalette,30,93):be(e.errorPalette,0,90),isBackground:true,background:e=>e.platform==="phone"?this.highestSurface(e):void 0,toneDeltaPair:e=>e.platform==="watch"?new Te(this.errorContainer(),this.errorDim(),10,"darker",true,"farther"):void 0,contrastCurve:e=>e.platform==="phone"&&e.contrastLevel>0?ne(1.5):void 0});return ce(super.errorContainer(),"2025",t)}onErrorContainer(){let t=A.fromPalette({name:"on_error_container",palette:e=>e.errorPalette,background:e=>this.errorContainer(),contrastCurve:e=>e.platform==="phone"?ne(4.5):ne(7)});return ce(super.onErrorContainer(),"2025",t)}surfaceVariant(){let t=Object.assign(this.surfaceContainerHighest().clone(),{name:"surface_variant"});return ce(super.surfaceVariant(),"2025",t)}surfaceTint(){let t=Object.assign(this.primary().clone(),{name:"surface_tint"});return ce(super.surfaceTint(),"2025",t)}background(){let t=Object.assign(this.surface().clone(),{name:"background"});return ce(super.background(),"2025",t)}onBackground(){let t=Object.assign(this.onSurface().clone(),{name:"on_background",tone:e=>e.platform==="watch"?100:this.onSurface().getTone(e)});return ce(super.onBackground(),"2025",t)}},E=class X{constructor(){this.allColors=[this.background(),this.onBackground(),this.surface(),this.surfaceDim(),this.surfaceBright(),this.surfaceContainerLowest(),this.surfaceContainerLow(),this.surfaceContainer(),this.surfaceContainerHigh(),this.surfaceContainerHighest(),this.onSurface(),this.onSurfaceVariant(),this.outline(),this.outlineVariant(),this.inverseSurface(),this.inverseOnSurface(),this.primary(),this.primaryDim(),this.onPrimary(),this.primaryContainer(),this.onPrimaryContainer(),this.primaryFixed(),this.primaryFixedDim(),this.onPrimaryFixed(),this.onPrimaryFixedVariant(),this.inversePrimary(),this.secondary(),this.secondaryDim(),this.onSecondary(),this.secondaryContainer(),this.onSecondaryContainer(),this.secondaryFixed(),this.secondaryFixedDim(),this.onSecondaryFixed(),this.onSecondaryFixedVariant(),this.tertiary(),this.tertiaryDim(),this.onTertiary(),this.tertiaryContainer(),this.onTertiaryContainer(),this.tertiaryFixed(),this.tertiaryFixedDim(),this.onTertiaryFixed(),this.onTertiaryFixedVariant(),this.error(),this.errorDim(),this.onError(),this.errorContainer(),this.onErrorContainer()].filter(e=>e!==void 0);}highestSurface(e){return X.colorSpec.highestSurface(e)}primaryPaletteKeyColor(){return X.colorSpec.primaryPaletteKeyColor()}secondaryPaletteKeyColor(){return X.colorSpec.secondaryPaletteKeyColor()}tertiaryPaletteKeyColor(){return X.colorSpec.tertiaryPaletteKeyColor()}neutralPaletteKeyColor(){return X.colorSpec.neutralPaletteKeyColor()}neutralVariantPaletteKeyColor(){return X.colorSpec.neutralVariantPaletteKeyColor()}errorPaletteKeyColor(){return X.colorSpec.errorPaletteKeyColor()}background(){return X.colorSpec.background()}onBackground(){return X.colorSpec.onBackground()}surface(){return X.colorSpec.surface()}surfaceDim(){return X.colorSpec.surfaceDim()}surfaceBright(){return X.colorSpec.surfaceBright()}surfaceContainerLowest(){return X.colorSpec.surfaceContainerLowest()}surfaceContainerLow(){return X.colorSpec.surfaceContainerLow()}surfaceContainer(){return X.colorSpec.surfaceContainer()}surfaceContainerHigh(){return X.colorSpec.surfaceContainerHigh()}surfaceContainerHighest(){return X.colorSpec.surfaceContainerHighest()}onSurface(){return X.colorSpec.onSurface()}surfaceVariant(){return X.colorSpec.surfaceVariant()}onSurfaceVariant(){return X.colorSpec.onSurfaceVariant()}outline(){return X.colorSpec.outline()}outlineVariant(){return X.colorSpec.outlineVariant()}inverseSurface(){return X.colorSpec.inverseSurface()}inverseOnSurface(){return X.colorSpec.inverseOnSurface()}shadow(){return X.colorSpec.shadow()}scrim(){return X.colorSpec.scrim()}surfaceTint(){return X.colorSpec.surfaceTint()}primary(){return X.colorSpec.primary()}primaryDim(){return X.colorSpec.primaryDim()}onPrimary(){return X.colorSpec.onPrimary()}primaryContainer(){return X.colorSpec.primaryContainer()}onPrimaryContainer(){return X.colorSpec.onPrimaryContainer()}inversePrimary(){return X.colorSpec.inversePrimary()}primaryFixed(){return X.colorSpec.primaryFixed()}primaryFixedDim(){return X.colorSpec.primaryFixedDim()}onPrimaryFixed(){return X.colorSpec.onPrimaryFixed()}onPrimaryFixedVariant(){return X.colorSpec.onPrimaryFixedVariant()}secondary(){return X.colorSpec.secondary()}secondaryDim(){return X.colorSpec.secondaryDim()}onSecondary(){return X.colorSpec.onSecondary()}secondaryContainer(){return X.colorSpec.secondaryContainer()}onSecondaryContainer(){return X.colorSpec.onSecondaryContainer()}secondaryFixed(){return X.colorSpec.secondaryFixed()}secondaryFixedDim(){return X.colorSpec.secondaryFixedDim()}onSecondaryFixed(){return X.colorSpec.onSecondaryFixed()}onSecondaryFixedVariant(){return X.colorSpec.onSecondaryFixedVariant()}tertiary(){return X.colorSpec.tertiary()}tertiaryDim(){return X.colorSpec.tertiaryDim()}onTertiary(){return X.colorSpec.onTertiary()}tertiaryContainer(){return X.colorSpec.tertiaryContainer()}onTertiaryContainer(){return X.colorSpec.onTertiaryContainer()}tertiaryFixed(){return X.colorSpec.tertiaryFixed()}tertiaryFixedDim(){return X.colorSpec.tertiaryFixedDim()}onTertiaryFixed(){return X.colorSpec.onTertiaryFixed()}onTertiaryFixedVariant(){return X.colorSpec.onTertiaryFixedVariant()}error(){return X.colorSpec.error()}errorDim(){return X.colorSpec.errorDim()}onError(){return X.colorSpec.onError()}errorContainer(){return X.colorSpec.errorContainer()}onErrorContainer(){return X.colorSpec.onErrorContainer()}static highestSurface(e){return X.colorSpec.highestSurface(e)}};E.contentAccentToneDelta=15;E.colorSpec=new Oh;E.primaryPaletteKeyColor=E.colorSpec.primaryPaletteKeyColor();E.secondaryPaletteKeyColor=E.colorSpec.secondaryPaletteKeyColor();E.tertiaryPaletteKeyColor=E.colorSpec.tertiaryPaletteKeyColor();E.neutralPaletteKeyColor=E.colorSpec.neutralPaletteKeyColor();E.neutralVariantPaletteKeyColor=E.colorSpec.neutralVariantPaletteKeyColor();E.background=E.colorSpec.background();E.onBackground=E.colorSpec.onBackground();E.surface=E.colorSpec.surface();E.surfaceDim=E.colorSpec.surfaceDim();E.surfaceBright=E.colorSpec.surfaceBright();E.surfaceContainerLowest=E.colorSpec.surfaceContainerLowest();E.surfaceContainerLow=E.colorSpec.surfaceContainerLow();E.surfaceContainer=E.colorSpec.surfaceContainer();E.surfaceContainerHigh=E.colorSpec.surfaceContainerHigh();E.surfaceContainerHighest=E.colorSpec.surfaceContainerHighest();E.onSurface=E.colorSpec.onSurface();E.surfaceVariant=E.colorSpec.surfaceVariant();E.onSurfaceVariant=E.colorSpec.onSurfaceVariant();E.inverseSurface=E.colorSpec.inverseSurface();E.inverseOnSurface=E.colorSpec.inverseOnSurface();E.outline=E.colorSpec.outline();E.outlineVariant=E.colorSpec.outlineVariant();E.shadow=E.colorSpec.shadow();E.scrim=E.colorSpec.scrim();E.surfaceTint=E.colorSpec.surfaceTint();E.primary=E.colorSpec.primary();E.onPrimary=E.colorSpec.onPrimary();E.primaryContainer=E.colorSpec.primaryContainer();E.onPrimaryContainer=E.colorSpec.onPrimaryContainer();E.inversePrimary=E.colorSpec.inversePrimary();E.secondary=E.colorSpec.secondary();E.onSecondary=E.colorSpec.onSecondary();E.secondaryContainer=E.colorSpec.secondaryContainer();E.onSecondaryContainer=E.colorSpec.onSecondaryContainer();E.tertiary=E.colorSpec.tertiary();E.onTertiary=E.colorSpec.onTertiary();E.tertiaryContainer=E.colorSpec.tertiaryContainer();E.onTertiaryContainer=E.colorSpec.onTertiaryContainer();E.error=E.colorSpec.error();E.onError=E.colorSpec.onError();E.errorContainer=E.colorSpec.errorContainer();E.onErrorContainer=E.colorSpec.onErrorContainer();E.primaryFixed=E.colorSpec.primaryFixed();E.primaryFixedDim=E.colorSpec.primaryFixedDim();E.onPrimaryFixed=E.colorSpec.onPrimaryFixed();E.onPrimaryFixedVariant=E.colorSpec.onPrimaryFixedVariant();E.secondaryFixed=E.colorSpec.secondaryFixed();E.secondaryFixedDim=E.colorSpec.secondaryFixedDim();E.onSecondaryFixed=E.colorSpec.onSecondaryFixed();E.onSecondaryFixedVariant=E.colorSpec.onSecondaryFixedVariant();E.tertiaryFixed=E.colorSpec.tertiaryFixed();E.tertiaryFixedDim=E.colorSpec.tertiaryFixedDim();E.onTertiaryFixed=E.colorSpec.onTertiaryFixed();E.onTertiaryFixedVariant=E.colorSpec.onTertiaryFixedVariant();var je=class _n{static maybeFallbackSpecVersion(e,r){switch(r){case x.EXPRESSIVE:case x.VIBRANT:case x.TONAL_SPOT:case x.NEUTRAL:return e;default:return "2021"}}constructor(e){this.sourceColorArgb=e.sourceColorHct.toInt(),this.variant=e.variant,this.contrastLevel=e.contrastLevel,this.isDark=e.isDark,this.platform=e.platform??"phone",this.specVersion=_n.maybeFallbackSpecVersion(e.specVersion??"2021",this.variant),this.sourceColorHct=e.sourceColorHct,this.primaryPalette=e.primaryPalette??_r(this.specVersion).getPrimaryPalette(this.variant,e.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.secondaryPalette=e.secondaryPalette??_r(this.specVersion).getSecondaryPalette(this.variant,e.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.tertiaryPalette=e.tertiaryPalette??_r(this.specVersion).getTertiaryPalette(this.variant,e.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.neutralPalette=e.neutralPalette??_r(this.specVersion).getNeutralPalette(this.variant,e.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.neutralVariantPalette=e.neutralVariantPalette??_r(this.specVersion).getNeutralVariantPalette(this.variant,e.sourceColorHct,this.isDark,this.platform,this.contrastLevel),this.errorPalette=e.errorPalette??_r(this.specVersion).getErrorPalette(this.variant,e.sourceColorHct,this.isDark,this.platform,this.contrastLevel)??K.fromHueAndChroma(25,84),this.colors=new E;}toString(){return `Scheme: variant=${x[this.variant]}, mode=${this.isDark?"dark":"light"}, platform=${this.platform}, contrastLevel=${this.contrastLevel.toFixed(1)}, seed=${this.sourceColorHct.toString()}, specVersion=${this.specVersion}`}static getPiecewiseHue(e,r,o){let i=Math.min(r.length-1,o.length),u=e.hue;for(let l=0;l<i;l++)if(u>=r[l]&&u<r[l+1])return lt(o[l]);return u}static getRotatedHue(e,r,o){let i=_n.getPiecewiseHue(e,r,o);return Math.min(r.length-1,o.length)<=0&&(i=0),lt(e.hue+i)}getArgb(e){return e.getArgb(this)}getHct(e){return e.getHct(this)}get primaryPaletteKeyColor(){return this.getArgb(this.colors.primaryPaletteKeyColor())}get secondaryPaletteKeyColor(){return this.getArgb(this.colors.secondaryPaletteKeyColor())}get tertiaryPaletteKeyColor(){return this.getArgb(this.colors.tertiaryPaletteKeyColor())}get neutralPaletteKeyColor(){return this.getArgb(this.colors.neutralPaletteKeyColor())}get neutralVariantPaletteKeyColor(){return this.getArgb(this.colors.neutralVariantPaletteKeyColor())}get errorPaletteKeyColor(){return this.getArgb(this.colors.errorPaletteKeyColor())}get background(){return this.getArgb(this.colors.background())}get onBackground(){return this.getArgb(this.colors.onBackground())}get surface(){return this.getArgb(this.colors.surface())}get surfaceDim(){return this.getArgb(this.colors.surfaceDim())}get surfaceBright(){return this.getArgb(this.colors.surfaceBright())}get surfaceContainerLowest(){return this.getArgb(this.colors.surfaceContainerLowest())}get surfaceContainerLow(){return this.getArgb(this.colors.surfaceContainerLow())}get surfaceContainer(){return this.getArgb(this.colors.surfaceContainer())}get surfaceContainerHigh(){return this.getArgb(this.colors.surfaceContainerHigh())}get surfaceContainerHighest(){return this.getArgb(this.colors.surfaceContainerHighest())}get onSurface(){return this.getArgb(this.colors.onSurface())}get surfaceVariant(){return this.getArgb(this.colors.surfaceVariant())}get onSurfaceVariant(){return this.getArgb(this.colors.onSurfaceVariant())}get inverseSurface(){return this.getArgb(this.colors.inverseSurface())}get inverseOnSurface(){return this.getArgb(this.colors.inverseOnSurface())}get outline(){return this.getArgb(this.colors.outline())}get outlineVariant(){return this.getArgb(this.colors.outlineVariant())}get shadow(){return this.getArgb(this.colors.shadow())}get scrim(){return this.getArgb(this.colors.scrim())}get surfaceTint(){return this.getArgb(this.colors.surfaceTint())}get primary(){return this.getArgb(this.colors.primary())}get primaryDim(){let e=this.colors.primaryDim();if(e===void 0)throw new Error("`primaryDim` color is undefined prior to 2025 spec.");return this.getArgb(e)}get onPrimary(){return this.getArgb(this.colors.onPrimary())}get primaryContainer(){return this.getArgb(this.colors.primaryContainer())}get onPrimaryContainer(){return this.getArgb(this.colors.onPrimaryContainer())}get primaryFixed(){return this.getArgb(this.colors.primaryFixed())}get primaryFixedDim(){return this.getArgb(this.colors.primaryFixedDim())}get onPrimaryFixed(){return this.getArgb(this.colors.onPrimaryFixed())}get onPrimaryFixedVariant(){return this.getArgb(this.colors.onPrimaryFixedVariant())}get inversePrimary(){return this.getArgb(this.colors.inversePrimary())}get secondary(){return this.getArgb(this.colors.secondary())}get secondaryDim(){let e=this.colors.secondaryDim();if(e===void 0)throw new Error("`secondaryDim` color is undefined prior to 2025 spec.");return this.getArgb(e)}get onSecondary(){return this.getArgb(this.colors.onSecondary())}get secondaryContainer(){return this.getArgb(this.colors.secondaryContainer())}get onSecondaryContainer(){return this.getArgb(this.colors.onSecondaryContainer())}get secondaryFixed(){return this.getArgb(this.colors.secondaryFixed())}get secondaryFixedDim(){return this.getArgb(this.colors.secondaryFixedDim())}get onSecondaryFixed(){return this.getArgb(this.colors.onSecondaryFixed())}get onSecondaryFixedVariant(){return this.getArgb(this.colors.onSecondaryFixedVariant())}get tertiary(){return this.getArgb(this.colors.tertiary())}get tertiaryDim(){let e=this.colors.tertiaryDim();if(e===void 0)throw new Error("`tertiaryDim` color is undefined prior to 2025 spec.");return this.getArgb(e)}get onTertiary(){return this.getArgb(this.colors.onTertiary())}get tertiaryContainer(){return this.getArgb(this.colors.tertiaryContainer())}get onTertiaryContainer(){return this.getArgb(this.colors.onTertiaryContainer())}get tertiaryFixed(){return this.getArgb(this.colors.tertiaryFixed())}get tertiaryFixedDim(){return this.getArgb(this.colors.tertiaryFixedDim())}get onTertiaryFixed(){return this.getArgb(this.colors.onTertiaryFixed())}get onTertiaryFixedVariant(){return this.getArgb(this.colors.onTertiaryFixedVariant())}get error(){return this.getArgb(this.colors.error())}get errorDim(){let e=this.colors.errorDim();if(e===void 0)throw new Error("`errorDim` color is undefined prior to 2025 spec.");return this.getArgb(e)}get onError(){return this.getArgb(this.colors.onError())}get errorContainer(){return this.getArgb(this.colors.errorContainer())}get onErrorContainer(){return this.getArgb(this.colors.onErrorContainer())}};je.DEFAULT_SPEC_VERSION="2021";je.DEFAULT_PLATFORM="phone";var fi=class{getPrimaryPalette(t,e,r,o,i){switch(t){case x.CONTENT:case x.FIDELITY:return K.fromHueAndChroma(e.hue,e.chroma);case x.FRUIT_SALAD:return K.fromHueAndChroma(lt(e.hue-50),48);case x.MONOCHROME:return K.fromHueAndChroma(e.hue,0);case x.NEUTRAL:return K.fromHueAndChroma(e.hue,12);case x.RAINBOW:return K.fromHueAndChroma(e.hue,48);case x.TONAL_SPOT:return K.fromHueAndChroma(e.hue,36);case x.EXPRESSIVE:return K.fromHueAndChroma(lt(e.hue+240),40);case x.VIBRANT:return K.fromHueAndChroma(e.hue,200);default:throw new Error(`Unsupported variant: ${t}`)}}getSecondaryPalette(t,e,r,o,i){switch(t){case x.CONTENT:case x.FIDELITY:return K.fromHueAndChroma(e.hue,Math.max(e.chroma-32,e.chroma*.5));case x.FRUIT_SALAD:return K.fromHueAndChroma(lt(e.hue-50),36);case x.MONOCHROME:return K.fromHueAndChroma(e.hue,0);case x.NEUTRAL:return K.fromHueAndChroma(e.hue,8);case x.RAINBOW:return K.fromHueAndChroma(e.hue,16);case x.TONAL_SPOT:return K.fromHueAndChroma(e.hue,16);case x.EXPRESSIVE:return K.fromHueAndChroma(je.getRotatedHue(e,[0,21,51,121,151,191,271,321,360],[45,95,45,20,45,90,45,45,45]),24);case x.VIBRANT:return K.fromHueAndChroma(je.getRotatedHue(e,[0,41,61,101,131,181,251,301,360],[18,15,10,12,15,18,15,12,12]),24);default:throw new Error(`Unsupported variant: ${t}`)}}getTertiaryPalette(t,e,r,o,i){switch(t){case x.CONTENT:return K.fromHct(Fn.fixIfDisliked(new ci(e).analogous(3,6)[2]));case x.FIDELITY:return K.fromHct(Fn.fixIfDisliked(new ci(e).complement));case x.FRUIT_SALAD:return K.fromHueAndChroma(e.hue,36);case x.MONOCHROME:return K.fromHueAndChroma(e.hue,0);case x.NEUTRAL:return K.fromHueAndChroma(e.hue,16);case x.RAINBOW:case x.TONAL_SPOT:return K.fromHueAndChroma(lt(e.hue+60),24);case x.EXPRESSIVE:return K.fromHueAndChroma(je.getRotatedHue(e,[0,21,51,121,151,191,271,321,360],[120,120,20,45,20,15,20,120,120]),32);case x.VIBRANT:return K.fromHueAndChroma(je.getRotatedHue(e,[0,41,61,101,131,181,251,301,360],[35,30,20,25,30,35,30,25,25]),32);default:throw new Error(`Unsupported variant: ${t}`)}}getNeutralPalette(t,e,r,o,i){switch(t){case x.CONTENT:case x.FIDELITY:return K.fromHueAndChroma(e.hue,e.chroma/8);case x.FRUIT_SALAD:return K.fromHueAndChroma(e.hue,10);case x.MONOCHROME:return K.fromHueAndChroma(e.hue,0);case x.NEUTRAL:return K.fromHueAndChroma(e.hue,2);case x.RAINBOW:return K.fromHueAndChroma(e.hue,0);case x.TONAL_SPOT:return K.fromHueAndChroma(e.hue,6);case x.EXPRESSIVE:return K.fromHueAndChroma(lt(e.hue+15),8);case x.VIBRANT:return K.fromHueAndChroma(e.hue,10);default:throw new Error(`Unsupported variant: ${t}`)}}getNeutralVariantPalette(t,e,r,o,i){switch(t){case x.CONTENT:return K.fromHueAndChroma(e.hue,e.chroma/8+4);case x.FIDELITY:return K.fromHueAndChroma(e.hue,e.chroma/8+4);case x.FRUIT_SALAD:return K.fromHueAndChroma(e.hue,16);case x.MONOCHROME:return K.fromHueAndChroma(e.hue,0);case x.NEUTRAL:return K.fromHueAndChroma(e.hue,2);case x.RAINBOW:return K.fromHueAndChroma(e.hue,0);case x.TONAL_SPOT:return K.fromHueAndChroma(e.hue,8);case x.EXPRESSIVE:return K.fromHueAndChroma(lt(e.hue+15),12);case x.VIBRANT:return K.fromHueAndChroma(e.hue,12);default:throw new Error(`Unsupported variant: ${t}`)}}getErrorPalette(t,e,r,o,i){}},Ih=class vt extends fi{getPrimaryPalette(e,r,o,i,u){switch(e){case x.NEUTRAL:return K.fromHueAndChroma(r.hue,i==="phone"?he.isBlue(r.hue)?12:8:he.isBlue(r.hue)?16:12);case x.TONAL_SPOT:return K.fromHueAndChroma(r.hue,i==="phone"&&o?26:32);case x.EXPRESSIVE:return K.fromHueAndChroma(r.hue,i==="phone"?o?36:48:40);case x.VIBRANT:return K.fromHueAndChroma(r.hue,i==="phone"?74:56);default:return super.getPrimaryPalette(e,r,o,i,u)}}getSecondaryPalette(e,r,o,i,u){switch(e){case x.NEUTRAL:return K.fromHueAndChroma(r.hue,i==="phone"?he.isBlue(r.hue)?6:4:he.isBlue(r.hue)?10:6);case x.TONAL_SPOT:return K.fromHueAndChroma(r.hue,16);case x.EXPRESSIVE:return K.fromHueAndChroma(je.getRotatedHue(r,[0,105,140,204,253,278,300,333,360],[-160,155,-100,96,-96,-156,-165,-160]),i==="phone"&&o?16:24);case x.VIBRANT:return K.fromHueAndChroma(je.getRotatedHue(r,[0,38,105,140,333,360],[-14,10,-14,10,-14]),i==="phone"?56:36);default:return super.getSecondaryPalette(e,r,o,i,u)}}getTertiaryPalette(e,r,o,i,u){switch(e){case x.NEUTRAL:return K.fromHueAndChroma(je.getRotatedHue(r,[0,38,105,161,204,278,333,360],[-32,26,10,-39,24,-15,-32]),i==="phone"?20:36);case x.TONAL_SPOT:return K.fromHueAndChroma(je.getRotatedHue(r,[0,20,71,161,333,360],[-40,48,-32,40,-32]),i==="phone"?28:32);case x.EXPRESSIVE:return K.fromHueAndChroma(je.getRotatedHue(r,[0,105,140,204,253,278,300,333,360],[-165,160,-105,101,-101,-160,-170,-165]),48);case x.VIBRANT:return K.fromHueAndChroma(je.getRotatedHue(r,[0,38,71,105,140,161,253,333,360],[-72,35,24,-24,62,50,62,-72]),56);default:return super.getTertiaryPalette(e,r,o,i,u)}}static getExpressiveNeutralHue(e){return je.getRotatedHue(e,[0,71,124,253,278,300,360],[10,0,10,0,10,0])}static getExpressiveNeutralChroma(e,r,o){let i=vt.getExpressiveNeutralHue(e);return o==="phone"?r?he.isYellow(i)?6:14:18:12}static getVibrantNeutralHue(e){return je.getRotatedHue(e,[0,38,105,140,333,360],[-14,10,-14,10,-14])}static getVibrantNeutralChroma(e,r){let o=vt.getVibrantNeutralHue(e);return r==="phone"||he.isBlue(o)?28:20}getNeutralPalette(e,r,o,i,u){switch(e){case x.NEUTRAL:return K.fromHueAndChroma(r.hue,i==="phone"?1.4:6);case x.TONAL_SPOT:return K.fromHueAndChroma(r.hue,i==="phone"?5:10);case x.EXPRESSIVE:return K.fromHueAndChroma(vt.getExpressiveNeutralHue(r),vt.getExpressiveNeutralChroma(r,o,i));case x.VIBRANT:return K.fromHueAndChroma(vt.getVibrantNeutralHue(r),vt.getVibrantNeutralChroma(r,i));default:return super.getNeutralPalette(e,r,o,i,u)}}getNeutralVariantPalette(e,r,o,i,u){switch(e){case x.NEUTRAL:return K.fromHueAndChroma(r.hue,(i==="phone"?1.4:6)*2.2);case x.TONAL_SPOT:return K.fromHueAndChroma(r.hue,(i==="phone"?5:10)*1.7);case x.EXPRESSIVE:let l=vt.getExpressiveNeutralHue(r),d=vt.getExpressiveNeutralChroma(r,o,i);return K.fromHueAndChroma(l,d*(l>=105&&l<125?1.6:2.3));case x.VIBRANT:let f=vt.getVibrantNeutralHue(r),g=vt.getVibrantNeutralChroma(r,i);return K.fromHueAndChroma(f,g*1.29);default:return super.getNeutralVariantPalette(e,r,o,i,u)}}getErrorPalette(e,r,o,i,u){let l=je.getPiecewiseHue(r,[0,3,13,23,33,43,153,273,360],[12,22,32,12,22,32,22,12]);switch(e){case x.NEUTRAL:return K.fromHueAndChroma(l,i==="phone"?50:40);case x.TONAL_SPOT:return K.fromHueAndChroma(l,i==="phone"?60:48);case x.EXPRESSIVE:return K.fromHueAndChroma(l,i==="phone"?64:48);case x.VIBRANT:return K.fromHueAndChroma(l,i==="phone"?80:60);default:return super.getErrorPalette(e,r,o,i,u)}}},Rh=new fi,Lh=new Ih;function _r(t){return t==="2025"?Lh:Rh}var Bh=class extends je{constructor(t,e,r,o=je.DEFAULT_SPEC_VERSION,i=je.DEFAULT_PLATFORM){super({sourceColorHct:t,variant:x.VIBRANT,contrastLevel:r,isDark:e,platform:i,specVersion:o});}};function Nh(t){let e=On(t),r=In(t),o=Rn(t),i=[e.toString(16),r.toString(16),o.toString(16)];for(let[u,l]of i.entries())l.length===1&&(i[u]="0"+l);return "#"+i.join("")}function Vh(t){t=t.replace("#","");let e=t.length===3,r=t.length===6,o=t.length===8;if(!e&&!r&&!o)throw new Error("unexpected hex "+t);let i=0,u=0,l=0;return e?(i=Nt(t.slice(0,1).repeat(2)),u=Nt(t.slice(1,2).repeat(2)),l=Nt(t.slice(2,3).repeat(2))):r?(i=Nt(t.slice(0,2)),u=Nt(t.slice(2,4)),l=Nt(t.slice(4,6))):o&&(i=Nt(t.slice(2,4)),u=Nt(t.slice(4,6)),l=Nt(t.slice(6,8))),(255<<24|(i&255)<<16|(u&255)<<8|l&255)>>>0}function Nt(t){return parseInt(t,16)}function Hh(t,e){let r=he.fromInt(Vh(t)),o=new Bh(r,e,0),i={},u=["primary","onPrimary","primaryContainer","onPrimaryContainer","secondary","onSecondary","secondaryContainer","onSecondaryContainer","tertiary","onTertiary","tertiaryContainer","onTertiaryContainer","error","onError","errorContainer","onErrorContainer","background","onBackground","surface","onSurface","surfaceVariant","onSurfaceVariant","outline","outlineVariant","shadow","scrim","inverseSurface","inverseOnSurface","inversePrimary","surfaceDim","surfaceBright","surfaceContainerLowest","surfaceContainerLow","surfaceContainer","surfaceContainerHigh","surfaceContainerHighest"];for(let l of u){let d=E[l];d&&(i[l]=Nh(d.getArgb(o)));}return i}function pi(t,e){let r=0,o=0,i=0;return t.length===4?(r=parseInt(t[1]+t[1],16),o=parseInt(t[2]+t[2],16),i=parseInt(t[3]+t[3],16)):t.length===7&&(r=parseInt(t.slice(1,3),16),o=parseInt(t.slice(3,5),16),i=parseInt(t.slice(5,7),16)),`rgba(${r}, ${o}, ${i}, ${e})`}createContext(null);Hh("#6750A4",false);var o1=forwardRef((t,e)=>{let{currentDate:r,filterOptions:o,events:i,toolBar:u,filterBar:l,filterBy:d,backgroundMode:f,defaultView:g="month",enableAnimations:y=true,slideVariants:b={enter:Q=>({x:Q>0?"10%":"-10%",opacity:0}),center:{zIndex:1,x:0,opacity:1},exit:Q=>({zIndex:0,x:Q<0?"10%":"-10%",opacity:0})},transition:w={type:"spring",stiffness:300,damping:30,opacity:{duration:.2}},onEventClicked:v}=t,{themeColors:m}=Ta(),p=r?new Date(r):new Date,k=momentLocalizer(La.default),O=useMemo(()=>i?i.filter(Q=>!d||d.length===0||d.includes("All")?true:d.every(Fe=>Q.eventCategory?.includes(Fe))).map(Q=>{let{eventTitle:Fe,eventStart:Me,eventEnd:Ye,..._e}=Q;return {title:Fe,start:new Date(Me),end:new Date(Ye),resource:_e}}):[],[i,d]),L=useMemo(()=>({event:Q=>jsx(ai,{...Q,onMouseEnter:()=>{},onMouseLeave:()=>{}})}),[]),[V,Y]=useState(0),[B,H]=useState(p),[N,I]=useState(g),[z,ie]=useState(o),fe=()=>{Y(-1),H((0, La.default)(B).subtract(1,N).toDate());},pe=()=>{Y(1),H((0, La.default)(B).add(1,N).toDate());},Se=()=>{Y(0),H(new Date);};return useImperativeHandle(e,()=>({previousMonth:fe,nextMonth:pe,jumpToNow:Se})),jsxs(motion.div,{layout:true,style:{backgroundColor:m.surfaceContainerHigh,borderColor:m.outlineVariant,"--m3-primary":m.primary,"--m3-on-primary":m.onPrimary,"--m3-outline-variant":m.outlineVariant,"--m3-on-surface":m.onSurface,"--m3-on-surface-variant":m.onSurfaceVariant,"--m3-today-highlight":pi(m.primary,.03)},className:"m3-components-bigcalendar",children:[jsxs("div",{className:"m3-components-bigcalendar-w1",children:[jsx(ei,{date:B,view:N,onViewChange:I,onPrev:fe,onNext:pe,onToday:Se}),l?l(o):jsx("div",{className:"m3-components-bigcalendar-filterbar-w1",children:o.map(Q=>jsx("button",{onClick:()=>{ie(Fe=>Fe.includes(Q)?Fe.filter(Me=>Me!==Q):[...Fe,Q]);},className:"m3-components-bigcalendar-filterbar-filterchip",style:{backgroundColor:z.includes(Q)?m.onSurface:"transparent",color:z.includes(Q)?m.surface:m.onSurfaceVariant,borderColor:z.includes(Q)?m.onSurface:m.outlineVariant},children:Q},Q))})]}),jsx("div",{style:{backgroundColor:m.outlineVariant},className:"m3-components-bigcalendar-divider"}),jsx("div",{className:"rbc-container-wrapper m3-components-bigcalendar-w2",children:jsx(AnimatePresence,{initial:false,custom:V,mode:"wait",children:jsx(motion.div,{custom:V,variants:b,initial:"enter",animate:"center",exit:"exit",transition:w,className:"m3-components-bigcalendar-viewport",children:jsx(Calendar,{localizer:k,events:O,date:B,view:N,onNavigate:Q=>H(Q),onView:Q=>{(Q==="month"||Q==="week"||Q==="day")&&I(Q);},onSelectEvent:Q=>v?.(Q),toolbar:false,components:L,eventPropGetter:()=>({style:{backgroundColor:"transparent",border:"none",padding:"1px 2px"}})})},B.toISOString())})})]})});/*! Bundled license information:
5
+
6
+ @material/material-color-utilities/utils/math_utils.js:
7
+ @material/material-color-utilities/utils/color_utils.js:
8
+ @material/material-color-utilities/hct/viewing_conditions.js:
9
+ @material/material-color-utilities/hct/cam16.js:
10
+ @material/material-color-utilities/hct/hct_solver.js:
11
+ @material/material-color-utilities/hct/hct.js:
12
+ @material/material-color-utilities/blend/blend.js:
13
+ @material/material-color-utilities/palettes/tonal_palette.js:
14
+ @material/material-color-utilities/palettes/core_palette.js:
15
+ @material/material-color-utilities/quantize/lab_point_provider.js:
16
+ @material/material-color-utilities/quantize/quantizer_wsmeans.js:
17
+ @material/material-color-utilities/quantize/quantizer_map.js:
18
+ @material/material-color-utilities/quantize/quantizer_wu.js:
19
+ @material/material-color-utilities/quantize/quantizer_celebi.js:
20
+ @material/material-color-utilities/scheme/scheme.js:
21
+ @material/material-color-utilities/scheme/scheme_android.js:
22
+ @material/material-color-utilities/score/score.js:
23
+ @material/material-color-utilities/utils/string_utils.js:
24
+ @material/material-color-utilities/utils/image_utils.js:
25
+ @material/material-color-utilities/utils/theme_utils.js:
26
+ @material/material-color-utilities/index.js:
27
+ (**
28
+ * @license
29
+ * Copyright 2021 Google LLC
30
+ *
31
+ * Licensed under the Apache License, Version 2.0 (the "License");
32
+ * you may not use this file except in compliance with the License.
33
+ * You may obtain a copy of the License at
34
+ *
35
+ * http://www.apache.org/licenses/LICENSE-2.0
36
+ *
37
+ * Unless required by applicable law or agreed to in writing, software
38
+ * distributed under the License is distributed on an "AS IS" BASIS,
39
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
40
+ * See the License for the specific language governing permissions and
41
+ * limitations under the License.
42
+ *)
43
+
44
+ @material/material-color-utilities/contrast/contrast.js:
45
+ @material/material-color-utilities/dynamiccolor/dynamic_color.js:
46
+ @material/material-color-utilities/dynamiccolor/variant.js:
47
+ @material/material-color-utilities/dynamiccolor/material_dynamic_colors.js:
48
+ @material/material-color-utilities/dynamiccolor/dynamic_scheme.js:
49
+ @material/material-color-utilities/scheme/scheme_expressive.js:
50
+ @material/material-color-utilities/scheme/scheme_fruit_salad.js:
51
+ @material/material-color-utilities/scheme/scheme_monochrome.js:
52
+ @material/material-color-utilities/scheme/scheme_neutral.js:
53
+ @material/material-color-utilities/scheme/scheme_rainbow.js:
54
+ @material/material-color-utilities/scheme/scheme_tonal_spot.js:
55
+ @material/material-color-utilities/scheme/scheme_vibrant.js:
56
+ (**
57
+ * @license
58
+ * Copyright 2022 Google LLC
59
+ *
60
+ * Licensed under the Apache License, Version 2.0 (the "License");
61
+ * you may not use this file except in compliance with the License.
62
+ * You may obtain a copy of the License at
63
+ *
64
+ * http://www.apache.org/licenses/LICENSE-2.0
65
+ *
66
+ * Unless required by applicable law or agreed to in writing, software
67
+ * distributed under the License is distributed on an "AS IS" BASIS,
68
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
69
+ * See the License for the specific language governing permissions and
70
+ * limitations under the License.
71
+ *)
72
+
73
+ @material/material-color-utilities/dislike/dislike_analyzer.js:
74
+ @material/material-color-utilities/temperature/temperature_cache.js:
75
+ @material/material-color-utilities/dynamiccolor/contrast_curve.js:
76
+ @material/material-color-utilities/dynamiccolor/tone_delta_pair.js:
77
+ @material/material-color-utilities/scheme/scheme_content.js:
78
+ @material/material-color-utilities/scheme/scheme_fidelity.js:
79
+ (**
80
+ * @license
81
+ * Copyright 2023 Google LLC
82
+ *
83
+ * Licensed under the Apache License, Version 2.0 (the "License");
84
+ * you may not use this file except in compliance with the License.
85
+ * You may obtain a copy of the License at
86
+ *
87
+ * http://www.apache.org/licenses/LICENSE-2.0
88
+ *
89
+ * Unless required by applicable law or agreed to in writing, software
90
+ * distributed under the License is distributed on an "AS IS" BASIS,
91
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
92
+ * See the License for the specific language governing permissions and
93
+ * limitations under the License.
94
+ *)
95
+
96
+ @material/material-color-utilities/dynamiccolor/color_spec_2021.js:
97
+ @material/material-color-utilities/dynamiccolor/color_spec_2025.js:
98
+ (**
99
+ * @license
100
+ * Copyright 2025 Google LLC
101
+ *
102
+ * Licensed under the Apache License, Version 2.0 (the "License");
103
+ * you may not use this file except in compliance with the License.
104
+ * You may obtain a copy of the License at
105
+ *
106
+ * http://www.apache.org/licenses/LICENSE-2.0
107
+ *
108
+ * Unless required by applicable law or agreed to in writing, software
109
+ * distributed under the License is distributed on an "AS IS" BASIS,
110
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
111
+ * See the License for the specific language governing permissions and
112
+ * limitations under the License.
113
+ *)
114
+ */
115
+ /*! Bundled license information:
116
+
117
+ moment/moment.js:
118
+ (*! moment.js *)
119
+ (*! version : 2.30.1 *)
120
+ (*! authors : Tim Wood, Iskren Chernev, Moment.js contributors *)
121
+ (*! license : MIT *)
122
+ (*! momentjs.com *)
123
+
124
+ @material/material-color-utilities/utils/math_utils.js:
125
+ @material/material-color-utilities/utils/color_utils.js:
126
+ @material/material-color-utilities/hct/viewing_conditions.js:
127
+ @material/material-color-utilities/hct/cam16.js:
128
+ @material/material-color-utilities/hct/hct_solver.js:
129
+ @material/material-color-utilities/hct/hct.js:
130
+ @material/material-color-utilities/blend/blend.js:
131
+ @material/material-color-utilities/palettes/tonal_palette.js:
132
+ @material/material-color-utilities/palettes/core_palette.js:
133
+ @material/material-color-utilities/quantize/lab_point_provider.js:
134
+ @material/material-color-utilities/quantize/quantizer_wsmeans.js:
135
+ @material/material-color-utilities/quantize/quantizer_map.js:
136
+ @material/material-color-utilities/quantize/quantizer_wu.js:
137
+ @material/material-color-utilities/quantize/quantizer_celebi.js:
138
+ @material/material-color-utilities/scheme/scheme.js:
139
+ @material/material-color-utilities/scheme/scheme_android.js:
140
+ @material/material-color-utilities/score/score.js:
141
+ @material/material-color-utilities/utils/string_utils.js:
142
+ @material/material-color-utilities/utils/image_utils.js:
143
+ @material/material-color-utilities/utils/theme_utils.js:
144
+ @material/material-color-utilities/index.js:
145
+ (**
146
+ * @license
147
+ * Copyright 2021 Google LLC
148
+ *
149
+ * Licensed under the Apache License, Version 2.0 (the "License");
150
+ * you may not use this file except in compliance with the License.
151
+ * You may obtain a copy of the License at
152
+ *
153
+ * http://www.apache.org/licenses/LICENSE-2.0
154
+ *
155
+ * Unless required by applicable law or agreed to in writing, software
156
+ * distributed under the License is distributed on an "AS IS" BASIS,
157
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
158
+ * See the License for the specific language governing permissions and
159
+ * limitations under the License.
160
+ *)
161
+
162
+ @material/material-color-utilities/contrast/contrast.js:
163
+ @material/material-color-utilities/dynamiccolor/dynamic_color.js:
164
+ @material/material-color-utilities/dynamiccolor/variant.js:
165
+ @material/material-color-utilities/dynamiccolor/material_dynamic_colors.js:
166
+ @material/material-color-utilities/dynamiccolor/dynamic_scheme.js:
167
+ @material/material-color-utilities/scheme/scheme_expressive.js:
168
+ @material/material-color-utilities/scheme/scheme_fruit_salad.js:
169
+ @material/material-color-utilities/scheme/scheme_monochrome.js:
170
+ @material/material-color-utilities/scheme/scheme_neutral.js:
171
+ @material/material-color-utilities/scheme/scheme_rainbow.js:
172
+ @material/material-color-utilities/scheme/scheme_tonal_spot.js:
173
+ @material/material-color-utilities/scheme/scheme_vibrant.js:
174
+ (**
175
+ * @license
176
+ * Copyright 2022 Google LLC
177
+ *
178
+ * Licensed under the Apache License, Version 2.0 (the "License");
179
+ * you may not use this file except in compliance with the License.
180
+ * You may obtain a copy of the License at
181
+ *
182
+ * http://www.apache.org/licenses/LICENSE-2.0
183
+ *
184
+ * Unless required by applicable law or agreed to in writing, software
185
+ * distributed under the License is distributed on an "AS IS" BASIS,
186
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
187
+ * See the License for the specific language governing permissions and
188
+ * limitations under the License.
189
+ *)
190
+
191
+ @material/material-color-utilities/dislike/dislike_analyzer.js:
192
+ @material/material-color-utilities/temperature/temperature_cache.js:
193
+ @material/material-color-utilities/dynamiccolor/contrast_curve.js:
194
+ @material/material-color-utilities/dynamiccolor/tone_delta_pair.js:
195
+ @material/material-color-utilities/scheme/scheme_content.js:
196
+ @material/material-color-utilities/scheme/scheme_fidelity.js:
197
+ (**
198
+ * @license
199
+ * Copyright 2023 Google LLC
200
+ *
201
+ * Licensed under the Apache License, Version 2.0 (the "License");
202
+ * you may not use this file except in compliance with the License.
203
+ * You may obtain a copy of the License at
204
+ *
205
+ * http://www.apache.org/licenses/LICENSE-2.0
206
+ *
207
+ * Unless required by applicable law or agreed to in writing, software
208
+ * distributed under the License is distributed on an "AS IS" BASIS,
209
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
210
+ * See the License for the specific language governing permissions and
211
+ * limitations under the License.
212
+ *)
213
+
214
+ @material/material-color-utilities/dynamiccolor/color_spec_2021.js:
215
+ @material/material-color-utilities/dynamiccolor/color_spec_2025.js:
216
+ (**
217
+ * @license
218
+ * Copyright 2025 Google LLC
219
+ *
220
+ * Licensed under the Apache License, Version 2.0 (the "License");
221
+ * you may not use this file except in compliance with the License.
222
+ * You may obtain a copy of the License at
223
+ *
224
+ * http://www.apache.org/licenses/LICENSE-2.0
225
+ *
226
+ * Unless required by applicable law or agreed to in writing, software
227
+ * distributed under the License is distributed on an "AS IS" BASIS,
228
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
229
+ * See the License for the specific language governing permissions and
230
+ * limitations under the License.
231
+ *)
232
+ */export{o1 as BigCalendar};