PageSourceSearch

https://mouseless.click/faq/faq.bundle.js

js mouseless.click collected 2026-10-03 23:47:27 UTC 181,642 bytes, 60 lines download raw bytes

1var bc=Object.defineProperty;var xc=(e,t)=>{for(var r in t)bc(e,r,{get:t[r],enumerable:!0})};var In=Symbol("keyStack"),Dn=Symbol("setVal"),yc={get(e,t,r){if(!(Fn.includes(t)&&!Object.hasOwn(e,t)))return Reflect.get(e,t,r)},set(e,t,r,o){return Fn.includes(t)?(Object.defineProperty(e,t,{value:r,enumerable:!0,writable:!0,configurable:!0}),!0):Reflect.set(e,t,r,o)}},Fn=[...Object.getOwnPropertyNames(Function.prototype),"prototype"];function _c(){function e(i){return r[In].push(i),r}function t(i){let s=r[In].pop();if(s===void 0)throw new Error("Ref key not set");let a=r[s];if(a!==void 0)throw new Error(`Ref val (${a}) already set for key ("${s}")`);r[s]=i}let r=new Proxy(e,yc);r[Dn]=t,r[In]=[];let o={writable:!0,value:void 0},n=Fn.filter(i=>i!=="arguments"&&i!=="caller"&&i!=="callee");return Object.defineProperties(r,Object.fromEntries(n.map(i=>[i,o]))),r}var hs=_c;var R={_globalVersion:0,_notifyQueue:new Set,_batchDepth:0,_isDraining:!1,_scheduleDrain:null,_isDrainPending:!1,_currentTracker:null,_currentScope:null},Hn=class{_value;_subscribers=new Set;_version=0;_trackers=new Set;_isQueued=!1;_pendingPrev=void 0;constructor(t){this._value=t}get value(){return R._currentTracker&&R._currentTracker._addDependency(this),this._value}set value(t){let r=this._value;Object.is(t,r)||(this._value=t,this._version++,R._globalVersion++,this._propagate(r),vc())}peek(){return this._value}subscribe(t){return this._subscribers.add(t),()=>{this._subscribers.delete(t)}}_addTracker(t){this._trackers.add(t)}_removeTracker(t){this._trackers.delete(t)}_refresh(){return this._version}_propagate(t){this._subscribers.size>0&&!this._isQueued&&(this._pendingPrev=t,this._isQueued=!0,R._notifyQueue.add(this));let r=[...this._trackers];for(let o of r)o._mark()}_flush(){this._isQueued=!1;let t=this._pendingPrev;if(this._pendingPrev=void 0,!Object.is(this._value,t))for(let r of this._subscribers)r(this._value,t)}};function ro(e){for(let[t,r]of e)if(t._refresh()!==r)return!0;return!1}function vc(){if(!(R._batchDepth>0||R._isDraining)){if(R._scheduleDrain){if(R._isDrainPending)return;R._isDrainPending=!0,R._scheduleDrain(gs);return}gs()}}function gs(){if(R._isDrainPending=!1,R._isDraining)return;R._isDraining=!0;let e=0,t=[],r=0;try{for(;R._notifyQueue.size>0;){if(e++,e>100)throw new Error("Cycle detected: the notification queue was still filling after 100 drain passes.");for(t=[...R._notifyQueue],r=0,R._notifyQueue.clear();r<t.length;)t[r++]._flush()}}finally{R._isDraining=!1;for(let o of t.slice(r))o._isQueued=!1;for(let o of R._notifyQueue)o._isQueued=!1;R._notifyQueue.clear()}}function oo(e,t){let r=R._currentTracker;R._currentTracker=e;try{t()}finally{R._currentTracker=r}}var B=Hn;var jn=class e{static under(t){return Xn(t,()=>new e)}_owned=new Set;_children=new Set;_parent;_disposed=!1;constructor(){this._parent=R._currentScope,this._parent&&this._parent._children.add(this)}run(t){return Xn(this,t)}_register(t){if(this._disposed){t.dispose();return}this._owned.add(t)}dispose(){if(!this._disposed){this._disposed=!0;for(let t of this._children)t.dispose();this._children.clear();for(let t of this._owned)t.dispose();this._owned.clear(),this._parent&&(this._parent._children.delete(this),this._parent=null)}}};function Xn(e,t){let r=R._currentScope;R._currentScope=e;try{return t()}finally{R._currentScope=r}}var _e=jn;var qn=class{_fn;_isQueued=!1;_dependencies=new Map;_cleanup=void 0;_runScope=null;_disposed=!1;constructor(t){this._fn=t,this._run()}_addDependency(t){this._dependencies.set(t,t._version),t._addTracker(this)}_mark(){this._disposed||this._isQueued||(this._isQueued=!0,R._notifyQueue.add(this))}_flush(){this._isQueued=!1,!(this._disposed||!ro(this._dependencies))&&this._run()}_run(){if(this._disposed)return;this._cleanup&&(this._cleanup(),this._cleanup=void 0),this._runScope?.dispose();let t=this._dependencies;this._dependencies=new Map;let r=_e.under(null);this._runScope=r,oo(this,()=>r.run(()=>{let o=this._fn();this._cleanup=typeof o=="function"?o:void 0}));for(let o of t.keys())this._dependencies.has(o)||o._removeTracker(this)}dispose(){if(!this._disposed){this._disposed=!0,this._cleanup&&(this._cleanup(),this._cleanup=void 0),this._runScope?.dispose(),this._runScope=null;for(let t of this._dependencies.keys())t._removeTracker(this);this._dependencies.clear()}}};function wc(e){let t=new qn(e);return R._currentScope?._register(t),()=>t.dispose()}var lt=wc;var no=class extends B{_fn;_dependencies=new Map;_isActive=!1;_dirty=!0;_globalVersion=-1;_notifiedVersion=0;_notifiedValue=void 0;_runScope=null;_creatingScope=null;_computing=!1;_disposed=!1;constructor(t){super(void 0),this._fn=t,this._creatingScope=R._currentScope}get value(){return this._globalVersion!==R._globalVersion&&this._refresh(),super.value}set value(t){throw new Error("Cannot set the value of a computed signal.")}peek(){return this._refresh(),super.peek()}_addDependency(t){this._dependencies.set(t,t._version),this._isActive&&t._addTracker(this)}_refresh(){return this._disposed?this._version:this._globalVersion===R._globalVersion?this._version:((this._dirty||ro(this._dependencies))&&this._recompute(),this._globalVersion=R._globalVersion,this._version)}_mark(){if(this._disposed||!this._isActive||this._isQueued)return;this._isQueued=!0,R._notifyQueue.add(this);let t=[...this._trackers];for(let r of t)r._mark()}_flush(){if(this._isQueued=!1,this._disposed||(this._refresh(),this._version===this._notifiedVersion))return;let t=this._notifiedValue;this._notifiedVersion=this._version,this._notifiedValue=this._value;for(let r of this._subscribers)r(this._value,t)}_addTracker(t){super._addTracker(t),this._activate()}_removeTracker(t){super._removeTracker(t),this._hasDependents()||this._deactivate()}subscribe(t){this._refresh();let r=super.subscribe(t);
1return this._activate(),()=>{r(),this._hasDependents()||this._deactivate()}}dispose(){this._disposed||(this._disposed=!0,this._deactivate(),this._dependencies.clear(),this._runScope?.dispose(),this._runScope=null)}_recompute(){if(this._computing)throw new Error("Cycle detected: a computed was read from within its own computation.");this._computing=!0;let t=this._dependencies,r=this._value;this._dependencies=new Map,this._runScope?.dispose();let o=_e.under(null);this._runScope=o;try{oo(this,()=>o.run(()=>{this._value=this._fn()}))}finally{this._computing=!1}if(this._dirty=!1,this._isActive)for(let i of t.keys())this._dependencies.has(i)||i._removeTracker(this);let n=!Object.is(this._value,r);return n&&this._version++,(o._owned.size>0||o._children.size>0)&&this._creatingScope?._register(this),n}_hasDependents(){return this._trackers.size>0||this._subscribers.size>0}_activate(){if(!(this._isActive||this._disposed)){this._isActive=!0,this._notifiedVersion=this._version,this._notifiedValue=this._value;for(let t of this._dependencies.keys())t._addTracker(this)}}_deactivate(){if(this._isActive){this._isActive=!1;for(let t of this._dependencies.keys())t._removeTracker(this)}}};function Mc(e){return new no(e)}var Bn=Mc;var ys="__scrySrcCapture",_s="srccapture",bs=Error,Tc=50,vs=!1,ws=new WeakMap,xs;function Ms(){vs=!0,xs===void 0&&(xs=bs.stackTraceLimit),bs.stackTraceLimit=Tc,globalThis[ys]={getSrcError:Ts}}function Un(){return typeof location>"u"||!new URLSearchParams(location.search).has(_s)?!1:(Ms(),!0)}function Ts(e){return ws.get(e)}function je(e){return vs&&ws.set(e,new Error),e}var ve={mode:null,_counter:0,_claims:null,_container:null,_missedEls:[],beginStamp(){this.mode="stamp",this._counter=0},beginClaim(e){let t=new Map,r=e.querySelectorAll("[data-h]");for(let o=0;o<r.length;o++){let n=r[o];t.set(Number(n.getAttribute("data-h")),n)}this.mode="claim",this._counter=0,this._claims=t,this._container=e,this._missedEls=[]},end(){if(this.mode==="claim"&&this._claims){for(let o of this._claims.values())o.removeAttribute("data-h");let e=this._container,r=this._missedEls.filter(o=>e?.contains(o)).length+this._claims.size;r>0&&console.warn(`[scry] hydrate: ${r} mismatch(es) between server HTML and client render \u2014 divergent nodes were re-created or swept`)}this.mode=null,this._claims=null,this._container=null,this._missedEls=[]},createElement(e,t){let r=this._counter++;if(this.mode==="stamp"){let n=Ss(e,t);return n.setAttribute("data-h",String(r)),n}if(this._claims){let n=this._claims.get(r);if(n&&n.tagName.toLowerCase()===e.toLowerCase())return this._claims.delete(r),n.removeAttribute("data-h"),n}let o=Ss(e,t);return this._missedEls.push(o),o},alignChildren:ks};function Sc(e,t){let r=new _e;ve.beginClaim(e);try{let o=r.run(t),n=Array.isArray(o)?o:[o];return ks(e,n),{nodes:n,dispose:()=>r.dispose()}}finally{ve.end()}}function Ss(e,t){return t?document.createElementNS(t,e):document.createElement(e)}function ks(e,t){let r=e.firstChild,o=n=>{if(typeof n=="string"){r instanceof Text&&r.data===n?r=r.nextSibling:e.insertBefore(je(document.createTextNode(n)),r);return}if(n===r){r=r.nextSibling;return}if(r&&kc(n,r)){let i=r.nextSibling;e.replaceChild(n,r),r=i;return}e.insertBefore(n,r)};for(let n of t)if(n instanceof DocumentFragment)for(let i of[...n.childNodes])o(i);else o(n);for(;r;){let n=r.nextSibling;e.removeChild(r),r=n}}function kc(e,t){return(e instanceof Comment&&t instanceof Comment||e instanceof Text&&t instanceof Text)&&e.data===t.data}var Wn=Sc;function Es(e){let t=[...e.childNodes],r=At.get(e);r&&(r.dispose(),At.delete(e));for(let o of t)Es(o)}function io(e,t){Ec(e)._register({dispose:t})}function Ec(e){let t=At.get(e);if(t)return t;let r=new _e;return At.set(e,r),r}var Cs=Es;function Cc(e){return e.nodeType===11?[...e.childNodes]:[e]}function As(e){return e.nodeType===11}function Rs(e,t){let r=[];for(let o=e.nextSibling;o!==null&&o!==t;o=o.nextSibling)r.push(o);return r}var Ps=Cc;var Ac={toNodeArr(e){let t=e.map(o=>typeof o=="function"?o():o),r=[];for(let o of t)o instanceof B?Rc(o,r):o!=null&&typeof o!="boolean"&&r.push(o);return r}};function Rc(e,t){let r=je(document.createComment("")),o=[],n=null;t.push(r),{nodes:o,endMarker:n}=zs(e.peek()),t.push(...o),n!==null&&t.push(n);let i=!0;io(r,lt(()=>{let s=e.value;if(i){i=!1;return}let a=n===null&&o.length===1?o[0]:void 0;if(a instanceof Text&&(typeof s=="string"||typeof s=="number")){a.data=String(s);return}let l=n===null?o:Rs(r,n);for(let c of l)c instanceof Text||Cs(c),c.parentNode?.removeChild(c);n?.parentNode?.removeChild(n),{nodes:o,endMarker:n}=zs(s),r.after(...o,...n===null?[]:[n])}))}function zs(e){return e==null||typeof e=="boolean"?{nodes:[],endMarker:null}:e instanceof Node?As(e)?{nodes:Ps(e),endMarker:je(document.createComment(""))}:{nodes:[e],endMarker:null}
1:{nodes:[je(document.createTextNode(String(e)))],endMarker:null}}var so=Ac;var Ls=new WeakMap,$s=new WeakMap;function Os(e,t){let r=Ls.get(e);r?r.push(t):Ls.set(e,[t])}function Ns(e,t){let r=$s.get(e);r?r.push(t):$s.set(e,[t])}function Pc(e,t,r){let o=e,n,i,s,a;t instanceof B?a=t:Is(t)?(s=t,a=s.signal):(n=t.prop,i=t.event,s=Is(t.to)?t.to:void 0,a=s?.signal??t.to);let l=zc(e),c=n??l.prop,f=i??l.event;o[c]=a.peek();let u=lt(()=>{o[c]=a.value}),d=s?b=>s.set(b):b=>a.value=b,p=()=>{d(o[c])};e.addEventListener(f,p);let h=()=>{u(),e.removeEventListener(f,p)};return r&&r.push(h),h}function zc(e){let t=e.tagName;if(t==="SELECT")return{prop:"value",event:"change"};if(t==="INPUT"){let r=e.type;if(r==="checkbox"||r==="radio")return{prop:"checked",event:"change"}}return t!=="INPUT"&&t!=="TEXTAREA"&&e.isContentEditable?{prop:"textContent",event:"input"}:{prop:"value",event:"input"}}function Is(e){return e.isParam}var Fs=Pc;var Kn={mapVal(e,t,r,o,n,i){e=Ds(e,t,r);let s=r-t,a=n-o,l=(o+n)/2;return s===0?l:i?((e-t)/s)**(1/i)*a+o:(e-t)/s*a+o},mapValExp(e,t,r,o,n,i){e=Ds(e,r,o);let s=o-r,a=i-n;return s===0?(n+i)/2:t===1?(e-r)/s*a+n:n+(t**((e-r)/s)-1)*a/(t-1)},mapValExp2(e,t,r,o,n,i,s){return Kn.mapValExp(e,r**t,o,n,i,s)},mapValWithMap(e,t,r){let o=1;for(;t[o]<e;)o++;let n=t[o-1],i=r[o-1],s=t[o],a=r[o];return Kn.mapVal(e,n,s,i,a)}};function Ds(e,t,r){return Math.min(Math.max(e,t),r)}var ao=Kn;var lo={...ao,___CONTENT_META___(){},decimalPlaces(e){let t=(""+e).match(/(?:\.(\d+))?(?:[Ee]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},isInteger(e){return Math.trunc(e)===e},isPowerOf2(e){return e>0&&!(e&e-1)},___GENERATE___(){},randomInt(e,t){let r;return t===void 0?(t=e,r=0):r=e,r+Math.floor(Math.random()*(t-r+1))},___TRANSFORM___(){},pct(e,t){return 100*e/t},___TRANSFORM___clamp_n_wrap___(){},clamp(e,t,r){return Math.min(Math.max(e,t),r)},pongFloat(e,t,r){if(t>r){let i=t;t=r,r=i}let o=r-t;if(o<1e-4)return t;let n=0;for(;e<t;)e+=o,n++;for(;e>r;)e-=o,n++;return n%2===1&&(e=t+r-e),e},wrapFloat(e,t,r){if(t>r){let n=t;t=r,r=n}let o=r-t;if(o<1e-4)return t;for(;e<t;)e+=o;for(;e>r;)e-=o;return e},wrapInt(e,t,r){let o=r-t+1;if(o<1e-4)return t;for(;e<t;)e+=o;for(;e>r;)e-=o;return e},____TRANSFORM___geometry___(){},toDegrees(e){return e/Math.PI*180},toRadians(e){return e/180*Math.PI},getRadius(e,t){return Math.hypot(e,t)},getTheta(e,t){return Math.atan2(t,e)},checkRectIntersect(e,t,r,o,n,i,s,a){return!(e>i||n>t||r>a||s>o)},___TRANSFORM___mean___(){},avg(...e){let t=0,r=0;for(let o of e)o!==void 0&&(t+=o,r++);return t/r},geoMean(...e){let t=1,r=0;for(let o of e)o!==void 0&&(t*=o,r++);return t**(1/r)},logMean(e,t){if(!(e<0||t<0))return e===0||t===0?0:e===t?e:(t-e)/Math.log(t/e)},___TRANSFORM___round_n_trunc___(){},ceilToNearest(e,t){return Math.ceil(e/t)*t},floorToNearest(e,t){return Math.floor(e/t)*t},roundToNearest(e,t){return Math.round(e/t)*t},roundToNearestAndTrunc(e,t){let r=lo.decimalPlaces(t);return lo.truncate2(lo.roundToNearest(e,t),r)},roundToPlaces(e,t){return+(Math.round(+(e+"e"+t))+"e-"+t)},roundToPowerOf10(e){return Math.pow(10,Math.round(Math.log10(e)))},sigFigs(e,t){if(e===0)return 0;let r=e<0;r&&(e=-e);let o=Math.pow(10,t-Math.floor(Math.log10(e))-1);return Math.round(e*o)/o*(r?-1:1)},truncate(e,t){let r=Math.pow(10,t);return(e*r|0)/r},truncate2(e,t){return Math.trunc(e*Math.pow(10,t))/Math.pow(10,t)},truncate3(e,t){let r=new RegExp(String.raw`^-?\d+(?:.\d{0,`+(t||-1)+"})?");return Number(e.toString().match(r)[0])}},W=lo;var me={___CONTENT_META___(){},hasDupes(e){return new Set(e).size!==e.length},getMatchingIndices(e,t){let r=[];for(let[o,n]of e.entries())t(n)&&r.push(o);return r},___CONTENT_META___comparative___(){},getInsertionIndex(e,t,r){return Math.abs(me.binarySearch(e,t,r))},binarySearch(e,t,r=(o,n)=>o-n){let o=0,n=e.length-1,i,s,a;for(;o<=n;)if(i=Math.trunc((o+n)/2),s=e[i],a=r(s,t),a<0)o=i+1;else if(a>0)n=i-1;else return i;return~n},binarySearchOnProp(e,t,r){let o=t;typeof t!="object"?o={[r]:t}:o=t;let n=(i,s)=>i[r]-s[r];return me.binarySearch(e,o,n)},___CONTENT_META___comparative___multi___(){},contentsEqual(e,t,r=!0){if(e.length!==t.length)return!1;if(r){for(let[o,n]of e.entries())if(Array.isArray(n)&&Array.isArray(t[o])){if(!me.contentsEqual(n,t[o],r))return!1}else if(n!==t[o])return!1}else for(let[o,n]of e.entries())if(n!==t[o])return!1;return!0}
1,___CONTENT_META___equality___(){},findAllIndices(e,t){let r=[],o=e.length;for(let n=0;n<o;n++)e[n]===t&&r.push(n);return r},includesAll(e,t){for(let r=t.length-1;r>=0;r--)if(!e.includes(t[r]))return!1;return!0},includesAny(e,t){for(let r=t.length-1;r>=0;r--)if(e.includes(t[r]))return!0;return!1},includesOnly(e,t){for(let r=e.length-1;r>=0;r--)if(!t.includes(e[r]))return!1;return!0},___CONTENT_RETRIEVAL___(){},getDuplicates(e){let t=new Set,r=new Set;for(let o of e)r.has(o)?t.add(o):r.add(o);return t},randomItem(e){return e[Math.floor(Math.random()*e.length)]},___CONTENT_RETRIEVAL___positional___(){},last:e=>e.at(-1),getWrapped(e,t){return e[W.wrapInt(t,0,e.length-1)]},cycleValue(e,t,r=1){let o=e.indexOf(t);if(o===-1)throw new Error("Value not found in array");return e[W.wrapInt(o+r,0,e.length-1)]},___CONTENT_RETRIEVAL___predicate___(){},findReverse(e,t){for(let r=e.length-1;r>-1;r--)if(t(e[r]))return e[r]},___CREATE___(){},createArray(...e){let t=e[0],r=[];r.length=t;let o=t;if(e.length>1)for(;o--;)r[t-1-o]=me.createArray(...e.slice(1));else r.fill(null);return r},array(e,t){let r=[];if(typeof t=="function"){let o=t;for(let n=0;n<e;n++)r.push(o(n))}else r.length=e,r.fill(t,0,e);return r},___MUTATE___order___(){},moveToEnd(e,t){me.removeValue(t,e),t.push(e)},moveToIdx(e,t,r){me.removeValue(t,e),t.splice(r,0,e)},rotate(e,t){if(t>0)for(;t-- >0;)e.push(e.shift());else for(;t++<0;)e.unshift(e.pop())},shiftElement(e,t,r,o){r=Math.round(r);let n=e.indexOf(t),i=n+r;return i=o?W.wrapInt(i,0,e.length-1):W.clamp(i,0,e.length-1),e.splice(n,1),e.splice(i,0,t),i-n},shuffle(e){let t=e.length,r;for(;t!==0;)r=Math.floor(Math.random()*t),t--,[e[t],e[r]]=[e[r],e[t]];return e},___MUTATE___removal___(){},removeDupes(e){let t=new Set(e);e.length=0,e.push(...t)},removeValue(e,t){if(!e)return;let r=e.indexOf(t);return r!==-1&&e.splice(r,1),r},removeValues(e,...t){for(let r of t)me.removeValue(e,r)},spliceLeft(e,t){let r=e.findIndex((o,n)=>!t(o,n,e));return r===-1?[]:e.splice(0,r)},___TRANSFORM___many_to_one___(){},sum(e){let t=0;for(let r of e)r!==void 0&&(t+=r);return t},zipMerge(e,t){let r=[],o=Math.max(e.length,t.length);for(let n=0;n<o;n++)n<e.length&&r.push(e[n]),n<t.length&&r.push(t[n]);return r},zipMergeIf(e,t,r,o){let n=[],i=Math.max(e.length,t.length);for(let s=0;s<i;s++){let a=e[s],l=t[s];s<e.length&&(!r||r(a,l))&&n.push(a),s<t.length&&(!o||o(a,l))&&n.push(l)}return n},zipMergeIfDifferent(e,t){return me.zipMergeIf(e,t,void 0,(r,o)=>r!==o)},zipMergeIfDifferentIgnoreWhitespace(e,t){return me.zipMergeIf(e,t,void 0,(r,o)=>Hs(r||"")!==Hs(o||""))},___TRANSFORM___one_to_many___(){},getCombinations(e,t){let r=[];for(let o=0;o<e.length;o++){let n=e[o],i=e.slice(o+1);if(t===1)r.push([n]);else for(let s of me.getCombinations(i,t-1))r.push([n,...s])}return r},getPermutations(e,t){let r=[];for(let o=0;o<e.length;o++){let n=e[o],i=[...e.slice(0,o),...e.slice(o+1)];if(t===1)r.push([n]);else for(let s of me.getPermutations(i,t-1))r.push([n,...s])}return r},getTuples(e,t){let r=[];for(let o=0;o<e.length-t+1;o++)r.push(e.slice(o,o+t));return r},___TRANSFORM___set_operations___(){},getSetIntersection(e,t){return e.filter(r=>t.includes(r))},getSetDifference(e,t){return t.filter(r=>!e.includes(r))},getSetSymmetricDifference(e,t){return[...e.filter(r=>!t.includes(r)),...t.filter(r=>!e.includes(r))]},___TRANSFORM___structure___(){},wrapIfBare(e){return Array.isArray(e)?e:[e]}};function Hs(e){return e.replaceAll(/\s/g,"")}var Ae=me;var zi={};xc(zi,{average:()=>ca,averageAngle:()=>G,averageNumber:()=>ri,blend:()=>Ga,blerp:()=>wo,clampChroma:()=>gl,clampGamut:()=>ln,clampRgb:()=>hl,colorsNamed:()=>co,convertA98ToXyz65:()=>mr,convertCubehelixToRgb:()=>ko,convertDlchToLab65:()=>dt,convertHsiToRgb:()=>br,convertHslToRgb:()=>yr,convertHsvToRgb:()=>mt,convertHwbToRgb:()=>vr,convertItpToXyz65:()=>Mr,convertJabToJch:()=>Sr,convertJabToRgb:()=>jt,convertJabToXyz65:()=>Dt,convertJchToJab:()=>kr,convertLab65ToDlch:()=>pt,convertLab65ToRgb:()=>Le,convertLab65ToXyz65:()=>Rt,convertLabToLch:()=>ne,convertLabToRgb:()=>qt,convertLabToXyz50:()=>Ze,convertLchToLab:()=>ie,convertLchuvToLuv:()=>Cr,convertLrgbToOklab:()=>Kt,convertLrgbToRgb:()=>fe,convertLuvToLchuv:()=>Er,convertLuvToXyz50:()=>bt,convertOkhslToOklab:()=>Gt,convertOkhsvToOklab:()=>Jt,convertOklabToLrgb:()=>xe,convertOklabToOkhsl:()=>Vt,convertOklabToOkhsv:()=>Yt,convertOklabToRgb:()=>Ne,convertP3ToXyz65:()=>Pr,convertProphotoToXyz50:()=>$r,convertRec2020ToXyz65:()=>Nr,convertRgbToCubehelix:()=>So,convertRgbToHsi:()=>xr,convertRgbToHsl:()=>_r,convertRgbToHsv:()=>ht,convertRgbToHwb:()=>wr,convertRgbToJab:()=>Ht,convertRgbToLab:()=>Bt,convertRgbToLab65:()=>$e,convertRgbToLrgb:()=>le,convertRgbToOklab:()=>Oe,convertRgbToXyb:()=>Bo,convertRgbToXyz50:()=>be,convertRgbToXyz65:()=>ee,convertRgbToYiq:()=>Vo,convertXybToRgb:()=>Uo,convertXyz50ToLab:()=>Qe,convertXyz50ToLuv:()=>gt,convertXyz50ToProphoto:()=>Lr,convertXyz50ToRgb:()=>ge,convertXyz50ToXyz65:()=>Ko,convertXyz65ToA98:()=>hr,convertXyz65ToItp:()=>Tr,convertXyz65ToJab:()=>Ft,convertXyz65ToLab65:()=>Pt,convertXyz65ToP3:()=>zr,convertXyz65ToRec2020:()=>Or,convertXyz65ToRgb:()=>te,convertXyz65ToXyz50:()=>Wo,convertYiqToRgb:()=>Go,converter:()=>k,differenceCie76:()=>oa,differenceCie94:()=>na,differenceCiede2000:()=>ia,differenceCmc:()=>sa,differenceEuclidean:()=>Xe,differenceHueChroma:()=>ze,differenceHueNaive:()=>Eo,differenceHueSaturation:()=>Pe,differenceHyab:()=>aa,differenceItp:()=>fa,differenceKotsarenkoRamos:()=>la,displayable:()=>an,easingGamma:()=>sn,easingInOutSine:()=>zl,easingMidpoint:()=>en,easingSmootherstep:()=>Pl,easingSmoothstep:()=>Al,easingSmoothstepInverse:()=>Rl,filterBrightness:()=>yl,filterContrast:()=>_l,filterDeficiencyDeuter:()=>El,filterDeficiencyProt:()=>kl,filterDeficiencyTrit:()=>Cl,filterGrayscale:()=>Ml,filterHueRotate:()=>Sl,filterInvert:()=>Tl,filterSaturate:()=>wl,filterSepia:()=>vl,fixupAlpha:()=>E,fixupHueDecreasing:()=>Js,fixupHueIncreasing:()=>Ys,fixupHueLonger:()=>Gs,fixupHueShorter:()=>K,formatCss:()=>Ba,formatHex:()=>Ua,formatHex8:()=>Wa,formatHsl:()=>Va,formatRgb:()=>Ka,getMode:()=>I,inGamut:()=>Hr,interpolate:()=>tl,interpolateWith:()=>Si,interpolateWithPremultipliedAlpha:()=>rl,interpolatorLinear:()=>x,interpolatorPiecewise:()=>Mo,interpolatorSplineBasis:()=>on,interpolatorSplineBasisClosed:()=>nn,interpolatorSplineMonotone:()=>al,interpolatorSplineMonotone2:()=>ll,interpolatorSplineMonotoneClosed:()=>
vendor: 5,116 bytes, line 1
1fl,interpolatorSplineNatural:()=>il,interpolatorSplineNaturalClosed:()=>sl,lerp:()=>Re,mapAlphaDivide:()=>Qo,mapAlphaMultiply:()=>Zo,mapTransferGamma:()=>Ja,mapTransferLinear:()=>Dr,mapper:()=>et,modeA98:()=>Vs,modeCubehelix:()=>ua,modeDlab:()=>ma,modeDlch:()=>ha,modeHsi:()=>ga,modeHsl:()=>Lo,modeHsv:()=>$o,modeHwb:()=>xa,modeItp:()=>_a,modeJab:()=>wa,modeJch:()=>Ma,modeLab:()=>Ut,modeLab65:()=>Ta,modeLch:()=>Wt,modeLch65:()=>Sa,modeLchuv:()=>Ca,modeLrgb:()=>Aa,modeLuv:()=>Ra,modeOkhsl:()=>Pa,modeOkhsv:()=>za,modeOklab:()=>La,modeOklch:()=>$a,modeP3:()=>Oa,modeProphoto:()=>Na,modeRec2020:()=>Da,modeRgb:()=>he,modeXyb:()=>Ha,modeXyz50:()=>ja,modeXyz65:()=>Xa,modeYiq:()=>qa,nearest:()=>xl,parse:()=>ho,parseHex:()=>po,parseHsl:()=>zo,parseHslLegacy:()=>Po,parseHwb:()=>Oo,parseLab:()=>Fo,parseLch:()=>Do,parseNamed:()=>uo,parseOklab:()=>jo,parseOklch:()=>Xo,parseRgb:()=>_o,parseRgbLegacy:()=>mo,parseTransparent:()=>vo,random:()=>Ya,removeParser:()=>Bs,round:()=>Yo,samples:()=>cl,serializeHex:()=>Jo,serializeHex8:()=>wi,serializeHsl:()=>Ti,serializeRgb:()=>Mi,toGamut:()=>bl,trilerp:()=>Ks,unlerp:()=>Ws,useMode:()=>qs,useParser:()=>Vn,wcagContrast:()=>Ll,wcagLuminance:()=>cn});var Lc=(e,t)=>{if(typeof e=="number"){if(t===3)return{mode:"rgb",r:(e>>8&15|e>>4&240)/255,g:(e>>4&15|e&240)/255,b:(e&15|e<<4&240)/255};if(t===4)return{mode:"rgb",r:(e>>12&15|e>>8&240)/255,g:(e>>8&15|e>>4&240)/255,b:(e>>4&15|e&240)/255,alpha:(e&15|e<<4&240)/255};if(t===6)return{mode:"rgb",r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255};if(t===8)return{mode:"rgb",r:(e>>24&255)/255,g:(e>>16&255)/255,b:(e>>8&255)/255,alpha:(e&255)/255}}},fo=Lc;var $c={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},co=$c;var Oc=e=>fo(co[e.toLowerCase()],6),uo=Oc;var Nc=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,Ic=e=>{let t;return(t=e.match(Nc))?fo(parseInt(t[1],16),t[1].length):void 0},po=Ic;var oe="([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)",jh=`(?:${oe}|none)`,ft=`${oe}%`,Xh=`(?:${oe}%|none)`,dr=`(?:${oe}%|${oe})`,Fc=`(?:${oe}%|${oe}|none)`,js=`(?:${oe}(deg|grad|rad|turn)|${oe})`,qh=`(?:${oe}(deg|grad|rad|turn)|${oe}|none)`,Ge="\\s*,\\s*";var Bh=new RegExp("^"+Fc+"$");var Dc=new RegExp(`^rgba?\\(\\s*${oe}${Ge}${oe}${Ge}${oe}\\s*(?:,\\s*${dr}\\s*)?\\)$`),Hc=new RegExp(`^rgba?\\(\\s*${ft}${Ge}${ft}${Ge}${ft}\\s*(?:,\\s*${dr}\\s*)?\\)$`),jc=e=>{let t={mode:"rgb"},r;if(r=e.match(Dc))r[1]!==void 0&&(t.r=r[1]/255),r[2]!==void 0&&(t.g=r[2]/255),r[3]!==void 0&&(t.b=r[3]/255
vendor: 26,434 bytes, lines 1-4
1);else if(r=e.match(Hc))r[1]!==void 0&&(t.r=r[1]/100),r[2]!==void 0&&(t.g=r[2]/100),r[3]!==void 0&&(t.b=r[3]/100);else return;return r[4]!==void 0?t.alpha=Math.max(0,Math.min(1,r[4]/100)):r[5]!==void 0&&(t.alpha=Math.max(0,Math.min(1,+r[5]))),t},mo=jc;var Xc=(e,t)=>e===void 0?void 0:typeof e!="object"?ho(e):e.mode!==void 0?e:t?{...e,mode:t}:void 0,Z=Xc;var qc=(e="rgb")=>t=>(t=Z(t,e))!==void 0?t.mode===e?t:we[t.mode][e]?we[t.mode][e](t):e==="rgb"?we[t.mode].rgb(t):we.rgb[e](we[t.mode].rgb(t)):void 0,k=qc;var we={},Xs={},ct=[],go={},Bc=e=>e,qs=e=>(we[e.mode]={...we[e.mode],...e.toMode},Object.keys(e.fromMode||{}).forEach(t=>{we[t]||(we[t]={}),we[t][e.mode]=e.fromMode[t]}),e.ranges||(e.ranges={}),e.difference||(e.difference={}),e.channels.forEach(t=>{if(e.ranges[t]===void 0&&(e.ranges[t]=[0,1]),!e.interpolate[t])throw new Error(`Missing interpolator for: ${t}`);typeof e.interpolate[t]=="function"&&(e.interpolate[t]={use:e.interpolate[t]}),e.interpolate[t].fixup||(e.interpolate[t].fixup=Bc)}),Xs[e.mode]=e,(e.parse||[]).forEach(t=>{Vn(t,e.mode)}),k(e.mode)),I=e=>Xs[e],Vn=(e,t)=>{if(typeof e=="string"){if(!t)throw new Error("'mode' required when 'parser' is a string");go[e]=t}else typeof e=="function"&&ct.indexOf(e)<0&&ct.push(e)},Bs=e=>{if(typeof e=="string")delete go[e];else if(typeof e=="function"){let t=ct.indexOf(e);t>0&&ct.splice(t,1)}};var Gn=/[^\x00-\x7F]|[a-zA-Z_]/,Uc=/[^\x00-\x7F]|[-\w]/,y={Function:"function",Ident:"ident",Number:"number",Percentage:"percentage",ParenClose:")",None:"none",Hue:"hue",Alpha:"alpha"},M=0;function bo(e){let t=e[M],r=e[M+1];return t==="-"||t==="+"?/\d/.test(r)||r==="."&&/\d/.test(e[M+2]):t==="."?/\d/.test(r):/\d/.test(t)}function Yn(e){if(M>=e.length)return!1;let t=e[M];if(Gn.test(t))return!0;if(t==="-"){if(e.length-M<2)return!1;let r=e[M+1];return!!(r==="-"||Gn.test(r))}return!1}var Wc={deg:1,rad:180/Math.PI,grad:9/10,turn:360};function pr(e){let t="";if((e[M]==="-"||e[M]==="+")&&(t+=e[M++]),t+=xo(e),e[M]==="."&&/\d/.test(e[M+1])&&(t+=e[M++]+xo(e)),(e[M]==="e"||e[M]==="E")&&((e[M+1]==="-"||e[M+1]==="+")&&/\d/.test(e[M+2])?t+=e[M++]+e[M++]+xo(e):/\d/.test(e[M+1])&&(t+=e[M++]+xo(e))),Yn(e)){let r=yo(e);return r==="deg"||r==="rad"||r==="turn"||r==="grad"?{type:y.Hue,value:t*Wc[r]}:void 0}return e[M]==="%"?(M++,{type:y.Percentage,value:+t}):{type:y.Number,value:+t}}function xo(e){let t="";for(;/\d/.test(e[M]);)t+=e[M++];return t}function yo(e){let t="";for(;M<e.length&&Uc.test(e[M]);)t+=e[M++];return t}function Kc(e){let t=yo(e);return e[M]==="("?(M++,{type:y.Function,value:t}):t==="none"?{type:y.None,value:void 0}:{type:y.Ident,value:t}}function Vc(e=""){let t=e.trim(),r=[],o;for(M=0;M<t.length;){if(o=t[M++],o===`
2`||o==="	"||o===" "){for(;M<t.length&&(t[M]===`
3`||t[M]==="	"||t[M]===" ");)M++;continue}if(o===",")return;if(o===")"){r.push({type:y.ParenClose});continue}if(o==="+"){if(M--,bo(t)){r.push(pr(t));continue}return}if(o==="-"){if(M--,bo(t)){r.push(pr(t));continue}if(Yn(t)){r.push({type:y.Ident,value:yo(t)});continue}return}if(o==="."){if(M--,bo(t)){r.push(pr(t));continue}return}if(o==="/"){for(;M<t.length&&(t[M]===`
4`||t[M]==="	"||t[M]===" ");)M++;let n;if(bo(t)&&(n=pr(t),n.type!==y.Hue)){r.push({type:y.Alpha,value:n});continue}if(Yn(t)&&yo(t)==="none"){r.push({type:y.Alpha,value:{type:y.None,value:void 0}});continue}return}if(/\d/.test(o)){M--,r.push(pr(t));continue}if(Gn.test(o)){M--,r.push(Kc(t));continue}return}return r}function Gc(e){e._i=0;let t=e[e._i++];if(!t||t.type!==y.Function||t.value!=="color"||(t=e[e._i++],t.type!==y.Ident))return;let r=go[t.value];if(!r)return;let o={mode:r},n=Us(e,!1);if(!n)return;let i=I(r).channels;for(let s=0,a,l;s<i.length;s++)a=n[s],l=i[s],a.type!==y.None&&(o[l]=a.type===y.Number?a.value:a.value/100,l==="alpha"&&(o[l]=Math.max(0,Math.min(1,o[l]))));return o}function Us(e,t){let r=[],o;for(;e._i<e.length;){if(o=e[e._i++],o.type===y.None||o.type===y.Number||o.type===y.Alpha||o.type===y.Percentage||t&&o.type===y.Hue){r.push(o);continue}if(o.type===y.ParenClose){if(e._i<e.length)return;continue}return}if(!(r.length<3||r.length>4)){if(r.length===4){if(r[3].type!==y.Alpha)return;r[3]=r[3].value}return r.length===3&&r.push({type:y.None,value:void 0}),r.every(n=>n.type!==y.Alpha)?r:void 0}}function Yc(e,t){e._i=0;let r=e[e._i++];if(!r||r.type!==y.Function)return;let o=Us(e,t);if(o)return o.unshift(r.value),o}var Jc=e=>{if(typeof e!="string")return;let t=Vc(e),r=t?Yc(t,!0):void 0,o,n=0,i=ct.length;for(;n<i;)if((o=ct[n++](e,r))!==void 0)return o;return t?Gc(t):void 0},ho=Jc;function Zc(e,t){if(!t||t[0]!=="rgb"&&t[0]!=="rgba")return;let r={mode:"rgb"},[,o,n,i,s]=t;if(!(o.type===y.Hue||n.type===y.Hue||i.type===y.Hue))return o.type!==y.None&&(r.r=o.type===y.Number?o.value/255:o.value/100),n.type!==y.None&&(r.g=n.type===y.Number?n.value/255:n.value/100),i.type!==y.None&&(r.b=i.type===y.Number?i.value/255:i.value/100),s.type!==y.None&&(r.alpha=Math.min(1,Math.max(0,s.type===y.Number?s.value:s.value/100))),r}var _o=Zc;var Qc=e=>e==="transparent"?{mode:"rgb",r:0,g:0,b:0,alpha:0}:void 0,vo=Qc;var Re=(e,t,r)=>e+r*(t-e),Ws=(e,t,r)=>(r-e)/(t-e),wo=(e,t,r,o,n,i)=>Re(Re(e,t,n),Re(r,o,n),i),Ks=(e,t,r,o,n,i,s,a,l,c,f)=>Re(wo(e,t,r,o,l,c),wo(n,i,s,a,l,c),f);var eu=e=>{let t=[];for(let r=0;r<e.length-1;r++){let o=e[r],n=e[r+1];o===void 0&&n===void 0?t.push(void 0):o!==void 0&&n!==void 0?t.push([o,n]):t.push(o!==void 0?[o,o]:[n,n])}return t},Mo=e=>t=>{let r=eu(t);return o=>{let n=o*r.length,i=o>=1?r.length-1:Math.max(Math.floor(n),0),s=r[i];return s===void 0?void 0:e(s[0],s[1],n-i)}};var x=Mo(Re);var E=e=>{let t=!1,r=e.map(o=>o!==void 0?(t=!0,o):1);return t?r:e};var tu={mode:"rgb",channels:["r","g","b","alpha"],parse:[_o,po,mo,uo,vo,"srgb"],serialize:"srgb",interpolate:{r:x,g:x,b:x,alpha:{use:x,fixup:E}},gamut:!0,white:{r:1,g:1,b:1},black:{r:0,g:0,b:0}},he=tu;var Jn=(e=0)=>Math.pow(Math.abs(e),2.19921875)*Math.sign(e),ru=e=>{let t=Jn(e.r),r=Jn(e.g),o=Jn(e.b),n={mode:"xyz65",x:.5766690429101305*t+.1855582379065463*r+.1882286462349947*o,y:.297344975250536*t+.6273635662554661*r+.0752914584939979*o,z:.0270313613864123*t+.0706888525358272*r+.9913375368376386*o};return e.alpha!==void 0&&(n.alpha=e.alpha),n},mr=ru;var Zn=e=>Math.pow(Math.abs(e),.4547069271758437)*Math.sign(e),ou=({x:e,y:t,z:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"a98",r:Zn(e*2.0415879038107465-t*.5650069742788597-.3447313507783297*r),g:Zn(e*-.9692436362808798+t*1.8759675015077206+.0415550574071756*r),b:Zn(e*.0134442806320312-t*.1183623922310184+1.0151749943912058*r)};return o!==void 0&&(n.alpha=o),n},hr=ou;var Qn=(e=0)=>{let t=Math.abs(e);return t<=.04045?e/12.92:(Math.sign(e)||1)*Math.pow((t+.055)/1.055,2.4)},nu=({r:e,g:t,b:r,alpha:o})=>{let n={mode:"lrgb",r:Qn(e),g:Qn(t),b:Qn(r)};return o!==void 0&&(n.alpha=o),n},le=nu;var iu=e=>{let{r:t,g:r,b:o,alpha:n}=le(e),i={mode:"xyz65",x:.4123907992659593*t+.357584339383878*r+.1804807884018343*o,y:.2126390058715102*t+.715168678767756*r+.0721923153607337*o,z:.0193308187155918*t+.119194779794626*r+.9505321522496607*o};return n!==void 0&&(i.alpha=n),i},ee=iu;var ei=(e=0)=>{let t=Math.abs(e);return t>.0031308?(Math.sign(e)||1)*(1.055*Math.pow(t,.4166666666666667)-.055):e*12.92},su=({r:e,g:t,b:r,alpha:o},n="rgb")=>{let i={mode:n,r:ei(e),g:ei(t),b:ei(r)};return o!==void 0&&(i.alpha=o),i},fe=su;var au=({x:e,y:t,z:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=fe({r:e*3.2409699419045226-t*1.537383177570094-.4986107602930034*r,g:e*-.9692436362808796+t*1.8759675015077204+.0415550574071756*r,b:e*.0556300796969936-t*.2039769588889765+1.0569715142428784*r});return o!==void 0&&(n.alpha=o),n},te=au;var lu={...he,mode:"a98",parse:["a98-rgb"],serialize:"a98-rgb",fromMode:{rgb:e=>hr(ee(e)),xyz65:hr},toMode:{rgb:e=>te(mr(e)),xyz65:mr}},Vs=lu;var fu=e=>(e=e%360)<0?e+360:e,N=fu;var To=(e,t)=>e.map((r,o,n)=>{if(r===void 0)return r;let i=N(r);return o===0||e[o-1]===void 0?i:t(i-N(n[o-1]))}).reduce((r,o)=>!r.length||o===void 0||r[r.length-1]===void 0?(r.push(o),r):(r.push(o+r[r.length-1]),r),[]),K=e=>To(e,t=>Math.abs(t)<=180?t:t-360*Math.sign(t)),Gs=e=>To(e,t=>Math.abs(t)>=180||t===0?t:t-360*Math.sign(t)),Ys=e=>To(e,t=>t>=0?t:t+360),Js=e=>To(e,t=>t<=0?t:t-360);var V=[-.14861,1.78277,-.29227,-.90649,1.97294,0],Zs=Math.PI/180,Qs=180/Math.PI;var ea=V[3]*V[4],ta=V[1]*V[4],ra=V[1]*V[2]-V[0]*V[3],cu=({r:e,g:t,b:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=(ra*r+e*ea-t*ta)/(ra+ea-ta),i=r-n,s=(V[4]*(t-n)-V[2]*i)/V[3],a={mode:"cubehelix",l:n,s:n===0||n===1?void 0:Math.sqrt(i*i+s*s)/(V[4]*n*(1-n))};return a.s&&(a.h=Math.atan2(s,i)*Qs-120),o!==void 0&&(a.alpha=o),a},So=cu;var uu=({h:e,s:t,l:r,alpha:o})=>{let n={mode:"rgb"};e=(e===void 0?0:e+120)*Zs,r===void 0&&(r=0);let i=t===void 0?0:t*r*(1-r),s=Math.cos(e),a=Math.sin(e);return n.r=r+i*(V[0]*s+V[1]*a),n.g=r+i*(V[2]*s+V[3]*a),n.b=r+i*(V[4]*s+V[5]*a),o!==void 0&&(n.alpha=o),n},ko=uu;var Pe=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.s||!t.s)return 0;let r=N(e.h),o=N(t.h),n=Math.sin((o-r+360)/2*Math.PI/180);return 2*Math.sqrt(e.s*t.s)*n},Eo=(e,t)=>{if(e.h===void 0||t.h===void 0)return 0;let r=N(e.h),o=N(t.h);return Math.abs(o-r)>180?r-(o-360*Math.sign(o-r)):o-r},ze=(e,t)=>{if(e.h===void 0||t.h===void 0||!e.c||!t.c)return 0;let r=N(e.h),o=N(t.h),n=Math.sin((o-r+360)/2*Math.PI/180);return 2*Math.sqrt(e.c*t.c)*n},Xe=(e="rgb",t=[1,1,1,0])=>{let r=I(e),o=r.channels,n=r.difference,i=k(e);return(s,a)=>{let l=i(s),c=i(a);return Math.sqrt(o.reduce((f,u,d)=>{let p=n[u]?n[u](l,c):l[u]-c[u];return f+(t[d]||0)*Math.pow(isNaN(p)?0:p,2)},0))}},oa=()=>Xe("lab65"),na=(e=1,t=.045,r=.015)=>{let o=k("lab65");return(n,i)=>{let s=o(n),a=o(i),l=s.l,c=s.a,f=s.b,u=Math.sqrt(c*c+f*f),d=a.l,p=a.a,h=a.b,b=Math.sqrt(p*p+h*h),m=Math.pow(l-d,2),_=Math.pow(u-b,2),T=Math.pow(c-p,2)+Math.pow(f-h,2)-_;return Math.sqrt(m/Math.pow(e,2)+_/Math.pow(1+t*u,2)+T/Math.pow(1+r*u,2))}},ia=(e=1,t=1,r=1)=>{let o=k("lab65");return(n,i)=>{let s=o(n),a=o(i),l=s.l,c=s.a,f=s.b,u=Math.sqrt(c*c+f*f),d=a.l,p=a.a,h=a.b,b=Math.sqrt(p*p+h*h),m=(u+b)/2,_=.5*(1-Math.sqrt(Math.pow(m,7)/(Math.pow(m,7)+Math.pow(25,7)))),T=c*(1+_),w=p*(1+_),S=Math.sqrt(T*T+f*f),z=Math.sqrt(w*w+h*h),A=Math.abs(T)+Math.abs(f)===0?0:Math.atan2(f,T);A+=(A<0)*2*Math.PI;let F=Math.abs(w)+Math.abs(h)===0?0:Math.atan2(h,w);F+=(F<0)*2*Math.PI;let D=d-l,P=z-S,L=S*z===0?0:F-A;L-=(L>Math.PI)*2*Math.PI,L+=(L<-Math.PI)*2*Math.PI;let $=2*Math.sqrt(S*z)*Math.sin(L/2),O=(l+d)/2,ae=(S+z)/2,Y;S*z===0?Y=A+F:(Y=(A+F)/2,Y-=(Math.abs(A-F)>Math.PI)*Math.PI,Y+=(Y<0)*2*Math.PI);let Ke=Math.pow(O-50,2),Ct=1-.17*Math.cos(Y-Math.PI/6)+.24*Math.cos(2*Y)+.32*Math.cos(3*Y+Math.PI/30)-.2*Math.cos(4*Y-63*Math.PI/180),st=1+.015*Ke/Math.sqrt(20+Ke),at=1+.045*ae,Ve=1+.015*ae*Ct,cr=30*Math.PI/180*Math.exp(-1*Math.pow((180/Math.PI*Y-275)/25,2)),to=2*Math.sqrt(Math.pow(ae,7)/(Math.pow(ae,7)+Math.pow(25,7))),ur=-1*Math.sin(2*cr)*to;return Math.sqrt(Math.pow(D/(e*st),2)+Math.pow(P/(t*at),2)+Math.pow($/(r*Ve),2)+ur*P/(t*at)*$/(r*Ve))}},sa=(e=1,t=1)=>{let r=k("lab65");return(o,n)=>{let i=r(o),s=i.l,a=i.a,l=i.b,c=Math.sqrt(a*a+l*l),f=Math.atan2(l,a);f=f+2*Math.PI*(f<0);let u=r(n),d=u.l,p=u.a,h=u.b,b=Math.sqrt(p*p+h*h),m=Math.pow(s-d,2),_=Math.pow(c-b,2),T=Math.pow(a-p,2)+Math.pow(l-h,2)-_,w=Math.sqrt(Math.pow(c,4)/(Math.pow(c,4)+1900)),S=f>=164/180*Math.PI&&f<=345/180*Math.PI?.56+Math.abs(.2*Math.cos(f+168/180*Math.PI)):.36+Math.abs(.4*Math.cos(f+35/180*Math.PI)),z=s<16?.511:.040975*s/(1+.01765*s),A=.0638*c/(1+.0131*c)+.638,F=A*(w*S+1-w);return Math.sqrt(m/Math.pow(e*z,2)+_/Math.pow(t*A,2)+T/Math.pow(F,2))}},aa=()=>{let e=k("lab65");return(t,r)=>{let o=e(t),n=e(r),i=o.l-n.l,s=o.a-n.a,a=o.b-n.b;return Math.abs(i)+Math.sqrt(s*s+a*a)}},la=()=>Xe("yiq",[.5053,.299,.1957]),fa=()=>Xe("itp",[518400,129600,518400]);var G=e=>{let t=e.reduce((o,n)=>{if(n!==void 0){let i=n*Math.PI/180;o.sin+=Math.sin(i),o.cos+=Math.cos(i)}return o},{sin:0,cos:0}),r=Math.atan2(t.sin,t.cos)*180/Math.PI;return r<0?360+r:r},ri=e=>{let t=e.filter(r=>r!==void 0);return t.length?t.reduce((r,o)=>r+o,0)/t.length:void 0},ti=e=>typeof e=="function";function ca(e,t="rgb",r){let o=I(t),n=e.map(k(t));return o.channels.reduce((i,s)=>{let a=n.map(l=>l[s]).filter(l=>l!==void 0);if(a.length){let l;ti(r)?l=r:r&&ti(r[s])?l=r[s]:o.average&&ti(o.average[s])?l=o.average[s]:l=ri,i[s]=l(a,s)}return i},{mode:t})}var du={mode:"cubehelix",channels:["h","s","l","alpha"],parse:["--cubehelix"],serialize:"--cubehelix",ranges:{h:[0,360],s:[0,4.614],l:[0,1]},fromMode:{rgb:So},toMode:{rgb:ko},interpolate:{h:{use:x,fixup:K},s:x,l:x,alpha:{use:x,fixup:E}},difference:{h:Pe},average:{h:G}},ua=du;var pu=({l:e,a:t,b:r,alpha:o},n="lch")=>{t===void 0&&(t=0),r===void 0&&(r=0);let i=Math.sqrt(t*t+r*r),s={mode:n,l:e,c:i};return i&&(s.h=N(Math.atan2(r,t)*180/Math.PI)),o!==void 0&&(s.alpha=o),s},ne=pu;var mu=({l:e,c:t,h:r,alpha:o},n="lab")=>{r===void 0&&(r=0);let i={mode:n,l:e,a:t?t*Math.cos(r/180*Math.PI):0,b:t?t*Math.sin(r/180*Math.PI):0};return o!==void 0&&(i.alpha=o),i},ie=mu;var Co=Math.pow(29,3)/Math.pow(3,3),Ao=Math.pow(6,3)/Math.pow(29,3);var H={X:.9642956764295677,Y:1,Z:.8251046025104602},Ye={X:.3127/.329,Y:1,Z:(1-.3127-.329)/.329},a1=Math.pow(29,3)/Math.pow(3,3),l1=Math.pow(6,3)/Math.pow(29,3);var oi=e=>Math.pow(e,3)>Ao?Math.pow(e,3):(116*e-16)/Co,hu=({l:e,a:t,b:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=(e+16)/116,i=t/500+n,s=n-r/200,a={mode:"xyz65",x:oi(i)*Ye.X,y:oi(n)*Ye.Y,z:oi(s)*Ye.Z};return o!==void 0&&(a.alpha=o),a},Rt=hu;var gu=e=>te(Rt(e)),Le=gu;var ni=e=>e>Ao?Math.cbrt(e):(Co*e+16)/116,bu=({x:e,y:t,z:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=ni(e/Ye.X),i=ni(t/Ye.Y),s=ni(r/Ye.Z),a={mode:"lab65",l:116*i-16,a:500*(n-i),b:200*(i-s)};return o!==void 0&&(a.alpha=o),a},Pt=bu;var xu=e=>{let t=Pt(ee(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},$e=xu;var ut=.14444444444444443*Math.PI,zt=Math.cos(ut),Lt=Math.sin(ut),Ro=100/Math.log(139/100);var yu=({l:e,c:t,h:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"lab65",l:(Math.exp(e*1/Ro)-1)/.0039},i=(Math.exp(.0435*t*1*1)-1)/.075,s=i*Math.cos(r/180*Math.PI-ut),a=i*Math.sin(r/180*Math.PI-ut);return n.a=s*zt-a/.83*Lt,n.b=s*Lt+a/.83*zt,o!==void 0&&(n.alpha=o),n},dt=yu;var _u=({l:e,a:t,b:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=t*zt+r*Lt,i=.83*(r*zt-t*Lt),s=Math.sqrt(n*n+i*i),a={mode:"dlch",l:Ro/1*Math.log(1+.0039*e),c:Math.log(1+.075*s)/(.0435*1*1)};return a.c&&(a.h=N((Math.atan2(i,n)+ut)/Math.PI*180)),o!==void 0&&(a.alpha=o),a},pt=_u;var da=e=>dt(ne(e,"dlch")),pa=e=>ie(pt(e),"dlab"),vu={mode:"dlab",parse:["--din99o-lab"],serialize:"--din99o-lab",toMode:{lab65:da,rgb:e=>Le(da(e))},fromMode:{lab65:pa,rgb:e=>pa($e(e))},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-40.09,45.501],b:[-40.469,44.344]},interpolate:{l:x,a:x,b:x,alpha:{use:x,fixup:E}}},ma=vu;var wu={mode:"dlch",parse:["--din99o-lch"],serialize:"--din99o-lch",toMode:{lab65:dt,dlab:e=>ie(e,"dlab"),rgb:e=>Le(dt(e))},fromMode:{lab65:pt,dlab:e=>ne(e,"dlch"),rgb:e=>pt($e(e))},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,51.484],h:[0,360]},interpolate:{l:x,c:x,h:{use:x,fixup:K},alpha:{use:x,fixup:E}},difference:{h:ze},average:{h:G}},ha=wu;function br({h:e,s:t,i:r,alpha:o}){e=N(e!==void 0?e:0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r:r*(1+t*(3/(2-n)-1)),g:r*(1+t*(3*(1-n)/(2-n)-1)),b:r*(1-t)};break;case 1:i={r:r*(1+t*(3*(1-n)/(2-n)-1)),g:r*(1+t*(3/(2-n)-1)),b:r*(1-t)};break;case 2:i={r:r*(1-t),g:r*(1+t*(3/(2-n)-1)),b:r*(1+t*(3*(1-n)/(2-n)-1))};break;case 3:i={r:r*(1-t),g:r*(1+t*(3*(1-n)/(2-n)-1)),b:r*(1+t*(3/(2-n)-1))};break;case 4:i={r:r*(1+t*(3*(1-n)/(2-n)-1)),g:r*(1-t),b:r*(1+t*(3/(2-n)-1))};break;case 5:i={r:r*(1+t*(3/(2-n)-1)),g:r*(1-t),b:r*(1+t*(3*(1-n)/(2-n)-1))};break;default:i={r:r*(1-t),g:r*(1-t),b:r*(1-t)}}return i.mode="rgb",o!==void 0&&(i.alpha=o),i}function xr({r:e,g:t,b:r,alpha:o}){e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.max(e,t,r),i=Math.min(e,t,r),s={mode:"hsi",s:e+t+r===0?0:1-3*i/(e+t+r),i:(e+t+r)/3};return n-i!==0&&(s.h=(n===e?(t-r)/(n-i)+(t<r)*6:n===t?(r-e)/(n-i)+2:(e-t)/(n-i)+4)*60),o!==void 0&&(s.alpha=o),s}var Mu={mode:"hsi",toMode:{rgb:br},parse:["--hsi"],serialize:"--hsi",fromMode:{rgb:xr},channels:["h","s","i","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:x,fixup:K},s:x,i:x,alpha:{use:x,fixup:E}},difference:{h:Pe},average:{h:G}},ga=Mu;function yr({h:e,s:t,l:r,alpha:o}){e=N(e!==void 0?e:0),t===void 0&&(t=0),r===void 0&&(r=0);let n=r+t*(r<.5?r:1-r),i=n-(n-r)*2*Math.abs(e/60%2-1),s;switch(Math.floor(e/60)){case 0:s={r:n,g:i,b:2*r-n};break;case 1:s={r:i,g:n,b:2*r-n};break;case 2:s={r:2*r-n,g:n,b:i};break;case 3:s={r:2*r-n,g:i,b:n};break;case 4:s={r:i,g:2*r-n,b:n};break;case 5:s={r:n,g:2*r-n,b:i};break;default:s={r:2*r-n,g:2*r-n,b:2*r-n}}return s.mode="rgb",o!==void 0&&(s.alpha=o),s}function _r({r:e,g:t,b:r,alpha:o}){e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.max(e,t,r),i=Math.min(e,t,r),s={mode:"hsl",s:n===i?0:(n-i)/(1-Math.abs(n+i-1)),l:.5*(n+i)};return n-i!==0&&(s.h=(n===e?(t-r)/(n-i)+(t<r)*6:n===t?(r-e)/(n-i)+2:(e-t)/(n-i)+4)*60),o!==void 0&&(s.alpha=o),s}var Tu=(e,t)=>{switch(t){case"deg":return+e;case"rad":return e/Math.PI*180;case"grad":return e/10*9;case"turn":return e*360}},ba=Tu;var Su=new RegExp(`^hsla?\\(\\s*${js}${Ge}${ft}${Ge}${ft}\\s*(?:,\\s*${dr}\\s*)?\\)$`),ku=e=>{let t=e.match(Su);if(!t)return;let r={mode:"hsl"};return t[3]!==void 0?r.h=+t[3]:t[1]!==void 0&&t[2]!==void 0&&(r.h=ba(t[1],t[2])),t[4]!==void 0&&(r.s=Math.min(Math.max(0,t[4]/100),1)),t[5]!==void 0&&(r.l=Math.min(Math.max(0,t[5]/100),1)),t[6]!==void 0?r.alpha=Math.max(0,Math.min(1,t[6]/100)):t[7]!==void 0&&(r.alpha=Math.max(0,Math.min(1,+t[7]))),r},Po=ku;function Eu(e,t){if(!t||t[0]!=="hsl"&&t[0]!=="hsla")return;let r={mode:"hsl"},[,o,n,i,s]=t;if(o.type!==y.None){if(o.type===y.Percentage)return;r.h=o.value}if(n.type!==y.None){if(n.type===y.Hue)return;r.s=n.value/100}if(i.type!==y.None){if(i.type===y.Hue)return;r.l=i.value/100}return s.type!==y.None&&(r.alpha=Math.min(1,Math.max(0,s.type===y.Number?s.value:s.value/100))),r}var zo=Eu;var Cu={mode:"hsl",toMode:{rgb:yr},fromMode:{rgb:_r},channels:["h","s","l","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[zo,Po],serialize:e=>`hsl(${e.h!==void 0?e.h:"none"} ${e.s!==void 0?e.s*100+"%":"none"} ${e.l!==void 0?e.l*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:x,fixup:K},s:x,l:x,alpha:{use:x,fixup:E}},difference:{h:Pe},average:{h:G}},Lo=Cu;function mt({h:e,s:t,v:r,alpha:o}){e=N(e!==void 0?e:0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.abs(e/60%2-1),i;switch(Math.floor(e/60)){case 0:i={r,g:r*(1-t*n),b:r*(1-t)};break;case 1:i={r:r*(1-t*n),g:r,b:r*(1-t)};break;case 2:i={r:r*(1-t),g:r,b:r*(1-t*n)};break;case 3:i={r:r*(1-t),g:r*(1-t*n),b:r};break;case 4:i={r:r*(1-t*n),g:r*(1-t),b:r};break;case 5:i={r,g:r*(1-t),b:r*(1-t*n)};break;default:i={r:r*(1-t),g:r*(1-t),b:r*(1-t)}}return i.mode="rgb",o!==void 0&&(i.alpha=o),i}function ht({r:e,g:t,b:r,alpha:o}){e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.max(e,t,r),i=Math.min(e,t,r),s={mode:"hsv",s:n===0?0:1-i/n,v:n};return n-i!==0&&(s.h=(n===e?(t-r)/(n-i)+(t<r)*6:n===t?(r-e)/(n-i)+2:(e-t)/(n-i)+4)*60),o!==void 0&&(s.alpha=o),s}var Au={mode:"hsv",toMode:{rgb:mt},parse:["--hsv"],serialize:"--hsv",fromMode:{rgb:ht},channels:["h","s","v","alpha"],ranges:{h:[0,360]},gamut:"rgb",interpolate:{h:{use:x,fixup:K},s:x,v:x,alpha:{use:x,fixup:E}},difference:{h:Pe},average:{h:G}},$o=Au;function vr({h:e,w:t,b:r,alpha:o}){if(t===void 0&&(t=0),r===void 0&&(r=0),t+r>1){let n=t+r;t/=n,r/=n}return mt({h:e,s:r===1?1:1-t/(1-r),v:1-r,alpha:o})}function wr(e){let t=ht(e);if(t===void 0)return;let r=t.s!==void 0?t.s:0,o=t.v!==void 0?t.v:0,n={mode:"hwb",w:(1-r)*o,b:1-o};return t.h!==void 0&&(n.h=t.h),t.alpha!==void 0&&(n.alpha=t.alpha),n}function Ru(e,t){if(!t||t[0]!=="hwb")return;let r={mode:"hwb"},[,o,n,i,s]=t;if(o.type!==y.None){if(o.type===y.Percentage)return;r.h=o.value}if(n.type!==y.None){if(n.type===y.Hue)return;r.w=n.value/100}if(i.type!==y.None){if(i.type===y.Hue)return;r.b=i.value/100}return s.type!==y.None&&(r.alpha=Math.min(1,Math.max(0,s.type===y.Number?s.value:s.value/100))),r}var Oo=Ru;var Pu={mode:"hwb",toMode:{rgb:vr},fromMode:{rgb:wr},channels:["h","w","b","alpha"],ranges:{h:[0,360]},gamut:"rgb",parse:[Oo],serialize:e=>`hwb(${e.h!==void 0?e.h:"none"} ${e.w!==void 0?e.w*100+"%":"none"} ${e.b!==void 0?e.b*100+"%":"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:x,fixup:K},w:x,b:x,alpha:{use:x,fixup:E}},difference:{h:Eo},average:{h:G}},xa=Pu;var $t=.1593017578125,ya=78.84375,Ot=.8359375,Nt=18.8515625,It=18.6875;function No(e){if(e<0)return 0;let t=Math.pow(e,1/ya);return 1e4*Math.pow(Math.max(0,t-Ot)/(Nt-It*t),1/$t)}function Io(e){if(e<0)return 0;let t=Math.pow(e/1e4,$t);return Math.pow((Ot+Nt*t)/(1+It*t),ya)}var si=e=>Math.max(e/203,0),Lu=({i:e,t,p:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=No(e+.008609037037932761*t+.11102962500302593*r),i=No(e-.00860903703793275*t-.11102962500302599*r),s=No(e+.5600313357106791*t-.32062717498731885*r),a={mode:"xyz65",x:si(2.070152218389422*n-1.3263473389671556*i+.2066510476294051*s),y:si(.3647385209748074*n+.680566024947227*i-.0453045459220346*s),z:si(-.049747207535812*n-.0492609666966138*i+1.1880659249923042*s)};return o!==void 0&&(a.alpha=o),a},Mr=Lu;var ai=(e=0)=>Math.max(e*203,0),$u=({x:e,y:t,z:r,alpha:o})=>{let n=ai(e),i=ai(t),s=ai(r),a=Io(.3592832590121217*n+.6976051147779502*i-.0358915932320289*s),l=Io(-.1920808463704995*n+1.1004767970374323*i+.0753748658519118*s),c=Io(.0070797844607477*n+.0748396662186366*i+.8433265453898765*s),f=.5*a+.5*l,u=1.61376953125*a-3.323486328125*l+1.709716796875*c,d=4.378173828125*a-4.24560546875*l-.132568359375*c,p={mode:"itp",i:f,t:u,p:d};return o!==void 0&&(p.alpha=o),p},Tr=$u;var Ou={mode:"itp",channels:["i","t","p","alpha"],parse:["--ictcp"],serialize:"--ictcp",toMode:{xyz65:Mr,rgb:e=>te(Mr(e))},fromMode:{xyz65:Tr,rgb:e=>Tr(ee(e))},ranges:{i:[0,.581],t:[-.369,.272],p:[-.164,.331]},interpolate:{i:x,t:x,p:x,alpha:{use:x,fixup:E}}},_a=Ou;var Nu=134.03437499999998,Iu=16295499532821565e-27,li=e=>{if(e<0)return 0;let t=Math.pow(e/1e4,$t);return Math.pow((Ot+Nt*t)/(1+It*t),Nu)},fi=(e=0)=>Math.max(e*203,0),Fu=({x:e,y:t,z:r,alpha:o})=>{e=fi(e),t=fi(t),r=fi(r);let n=1.15*e-.15*r,i=.66*t+.34*e,s=li(.41478972*n+.579999*i+.014648*r),a=li(-.20151*n+1.120649*i+.0531008*r),l=li(-.0166008*n+.2648*i+.6684799*r),c=(s+a)/2,f={mode:"jab",j:.44*c/(1-.56*c)-Iu,a:3.524*s-4.066708*a+.542708*l,b:.199076*s+1.096799*a-1.295875*l};return o!==void 0&&(f.alpha=o),f},Ft=Fu;var Du=134.03437499999998,va=16295499532821565e-27,ci=e=>{if(e<0)return 0;let t=Math.pow(e,1/Du);return 1e4*Math.pow((Ot-t)/(It*t-Nt),1/$t)},ui=e=>e/203,Hu=({j:e,a:t,b:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=(e+va)/(.44+.56*(e+va)),i=ci(n+.13860504*t+.058047316*r),s=ci(n-.13860504*t-.058047316*r),a=ci(n-.096019242*t-.8118919*r),l={mode:"xyz65",x:ui(1.661373024652174*i-.914523081304348*s+.23136208173913045*a),y:ui(-.3250758611844533*i+1.571847026732543*s-.21825383453227928*a),z:ui(-.090982811*i-.31272829*s+1.5227666*a)};return o!==void 0&&(l.alpha=o),l},Dt=Hu;var ju=e=>{let t=Ft(ee(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},Ht=ju;var Xu=e=>te(Dt(e)),jt=Xu;var qu={mode:"jab",channels:["j","a","b","alpha"],parse:["--jzazbz"],serialize:"--jzazbz",fromMode:{rgb:Ht,xyz65:Ft},toMode:{rgb:jt,xyz65:Dt},ranges:{j:[0,.222],a:[-.109,.129],b:[-.185,.134]},interpolate:{j:x,a:x,b:x,alpha:{use:x,fixup:E}}},wa=qu;var Bu=({j:e,a:t,b:r,alpha:o})=>{t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.sqrt(t*t+r*r),i={mode:"jch",j:e,c:n};return n&&(i.h=N(Math.atan2(r,t)*180/Math.PI)),o!==void 0&&(i.alpha=o),i},Sr=Bu;var Uu=({j:e,c:t,h:r,alpha:o})=>{r===void 0&&(r=0);let n={mode:"jab",j:e,a:t?t*Math.cos(r/180*Math.PI):0,b:t?t*Math.sin(r/180*Math.PI):0};return o!==void 0&&(n.alpha=o),n},kr=Uu;var Wu={mode:"jch",parse:["--jzczhz"],serialize:"--jzczhz",toMode:{jab:kr,rgb:e=>jt(kr(e))},fromMode:{rgb:e=>Sr(Ht(e)),jab:Sr},channels:["j","c","h","alpha"],ranges:{j:[0,.221],c:[0,.19],h:[0,360]},interpolate:{h:{use:x,fixup:K},c:x,j:x,alpha:{use:x,fixup:E}},difference:{h:ze},average:{h:G}},Ma=Wu;var Je=Math.pow(29,3)/Math.pow(3,3),Xt=Math.pow(6,3)/Math.pow(29,3);var di=e=>Math.pow(e,3)>Xt?Math.pow(e,3):(116*e-16)/Je,Ku=({l:e,a:t,b:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=(e+16)/116,i=t/500+n,s=n-r/200,a={mode:"xyz50",x:di(i)*H.X,y:di(n)*H.Y,z:di(s)*H.Z};return o!==void 0&&(a.alpha=o),a},Ze=Ku;var Vu=({x:e,y:t,z:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=fe({r:e*3.1341359569958707-t*1.6173863321612538-.4906619460083532*r,g:e*-.978795502912089+t*1.916254567259524+.03344273116131949*r,b:e*.07195537988411677-t*.2289768264158322+1.405386058324125*r});return o!==void 0&&(n.alpha=o),n},ge=Vu;var Gu=e=>ge(Ze(e)),qt=Gu;var Yu=e=>{let{r:t,g:r,b:o,alpha:n}=le(e),i={mode:"xyz50",x:.436065742824811*t+.3851514688337912*r+.14307845442264197*o,y:.22249319175623702*t+.7168870538238823*r+.06061979053616537*o,z:.013923904500943465*t+.09708128566574634*r+.7140993584005155*o};return n!==void 0&&(i.alpha=n),i},be=Yu;var pi=e=>e>Xt?Math.cbrt(e):(Je*e+16)/116,Ju=({x:e,y:t,z:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=pi(e/H.X),i=pi(t/H.Y),s=pi(r/H.Z),a={mode:"lab",l:116*i-16,a:500*(n-i),b:200*(i-s)};return o!==void 0&&(a.alpha=o),a},Qe=Ju;var Zu=e=>{let t=Qe(be(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},Bt=Zu;function Qu(e,t){if(!t||t[0]!=="lab")return;let r={mode:"lab"},[,o,n,i,s]=t;if(!(o.type===y.Hue||n.type===y.Hue||i.type===y.Hue))return o.type!==y.None&&(r.l=Math.min(Math.max(0,o.value),100)),n.type!==y.None&&(r.a=n.type===y.Number?n.value:n.value*125/100),i.type!==y.None&&(r.b=i.type===y.Number?i.value:i.value*125/100),s.type!==y.None&&(r.alpha=Math.min(1,Math.max(0,s.type===y.Number?s.value:s.value/100))),r}var Fo=Qu;var ed={mode:"lab",toMode:{xyz50:Ze,rgb:qt},fromMode:{xyz50:Qe,rgb:Bt},channels:["l","a","b","alpha"],ranges:{l:[0,100],a:[-125,125],b:[-125,125]},parse:[Fo],serialize:e=>`lab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{l:x,a:x,b:x,alpha:{use:x,fixup:E}}},Ut=ed;
vendor: 6,077 bytes, line 4
4var td={...Ut,mode:"lab65",parse:["--lab-d65"],serialize:"--lab-d65",toMode:{xyz65:Rt,rgb:Le},fromMode:{xyz65:Pt,rgb:$e},ranges:{l:[0,100],a:[-125,125],b:[-125,125]}},Ta=td;function rd(e,t){if(!t||t[0]!=="lch")return;let r={mode:"lch"},[,o,n,i,s]=t;if(o.type!==y.None){if(o.type===y.Hue)return;r.l=Math.min(Math.max(0,o.value),100)}if(n.type!==y.None&&(r.c=Math.max(0,n.type===y.Number?n.value:n.value*150/100)),i.type!==y.None){if(i.type===y.Percentage)return;r.h=i.value}return s.type!==y.None&&(r.alpha=Math.min(1,Math.max(0,s.type===y.Number?s.value:s.value/100))),r}var Do=rd;var od={mode:"lch",toMode:{lab:ie,rgb:e=>qt(ie(e))},fromMode:{rgb:e=>ne(Bt(e)),lab:ne},channels:["l","c","h","alpha"],ranges:{l:[0,100],c:[0,150],h:[0,360]},parse:[Do],serialize:e=>`lch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,interpolate:{h:{use:x,fixup:K},c:x,l:x,alpha:{use:x,fixup:E}},difference:{h:ze},average:{h:G}},Wt=od;var nd={...Wt,mode:"lch65",parse:["--lch-d65"],serialize:"--lch-d65",toMode:{lab65:e=>ie(e,"lab65"),rgb:e=>Le(ie(e,"lab65"))},fromMode:{rgb:e=>ne($e(e),"lch65"),lab65:e=>ne(e,"lch65")},ranges:{l:[0,100],c:[0,150],h:[0,360]}},Sa=nd;var id=({l:e,u:t,v:r,alpha:o})=>{t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.sqrt(t*t+r*r),i={mode:"lchuv",l:e,c:n};return n&&(i.h=N(Math.atan2(r,t)*180/Math.PI)),o!==void 0&&(i.alpha=o),i},Er=id;var sd=({l:e,c:t,h:r,alpha:o})=>{r===void 0&&(r=0);let n={mode:"luv",l:e,u:t?t*Math.cos(r/180*Math.PI):0,v:t?t*Math.sin(r/180*Math.PI):0};return o!==void 0&&(n.alpha=o),n},Cr=sd;var ka=(e,t,r)=>4*e/(e+15*t+3*r),Ea=(e,t,r)=>9*t/(e+15*t+3*r),ad=ka(H.X,H.Y,H.Z),ld=Ea(H.X,H.Y,H.Z),fd=e=>e<=Xt?Je*e:116*Math.cbrt(e)-16,cd=({x:e,y:t,z:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=fd(t/H.Y),i=ka(e,t,r),s=Ea(e,t,r);!isFinite(i)||!isFinite(s)?n=i=s=0:(i=13*n*(i-ad),s=13*n*(s-ld));let a={mode:"luv",l:n,u:i,v:s};return o!==void 0&&(a.alpha=o),a},gt=cd;var ud=(e,t,r)=>4*e/(e+15*t+3*r),dd=(e,t,r)=>9*t/(e+15*t+3*r),pd=ud(H.X,H.Y,H.Z),md=dd(H.X,H.Y,H.Z),hd=({l:e,u:t,v:r,alpha:o})=>{if(e===void 0&&(e=0),e===0)return{mode:"xyz50",x:0,y:0,z:0};t===void 0&&(t=0),r===void 0&&(r=0);let n=t/(13*e)+pd,i=r/(13*e)+md,s=H.Y*(e<=8?e/Je:Math.pow((e+16)/116,3)),a=s*(9*n)/(4*i),l=s*(12-3*n-20*i)/(4*i),c={mode:"xyz50",x:a,y:s,z:l};return o!==void 0&&(c.alpha=o),c},bt=hd;var gd=e=>Er(gt(be(e))),bd=e=>ge(bt(Cr(e))),xd={mode:"lchuv",toMode:{luv:Cr,rgb:bd},fromMode:{rgb:gd,luv:Er},channels:["l","c","h","alpha"],parse:["--lchuv"],serialize:"--lchuv",ranges:{l:[0,100],c:[0,176.956],h:[0,360]},interpolate:{h:{use:x,fixup:K},c:x,l:x,alpha:{use:x,fixup:E}},difference:{h:ze},average:{h:G}},Ca=xd;var yd={...he,mode:"lrgb",toMode:{rgb:fe},fromMode:{rgb:le},parse:["srgb-linear"],serialize:"srgb-linear"},Aa=yd;var _d={mode:"luv",toMode:{xyz50:bt,rgb:e=>ge(bt(e))},fromMode:{xyz50:gt,rgb:e=>gt(be(e))},channels:["l","u","v","alpha"],parse:["--luv"],serialize:"--luv",ranges:{l:[0,100],u:[-84.936,175.042],v:[-125.882,87.243]},interpolate:{l:x,u:x,v:x,alpha:{use:x,fixup:E}}},Ra=_d;var vd=({r:e,g:t,b:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.cbrt(.412221469470763*e+.5363325372617348*t+.0514459932675022*r),i=Math.cbrt(.2119034958178252*e+.6806995506452344*t+.1073969535369406*r),s=Math.cbrt(.0883024591900564*e+.2817188391361215*t+.6299787016738222*r),a={mode:"oklab",l:.210454268309314*n+.7936177747023054*i-.0040720430116193*s,a:1.9779985324311684*n-2.42859224204858*i+.450593709617411*s,b:.0259040424655478*n+.7827717124575296*i-.8086757549230774*s};return o!==void 0&&(a.alpha=o),a},Kt=vd;var wd=e=>{let t=Kt(le(e));return e.r===e.b&&e.b===e.g&&(t.a=t.b=0),t},Oe=wd;var Md=({l:e,a:t,b:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=Math.pow(e+.3963377773761749*t+.2158037573099136*r,3),i=Math.pow(e-.1055613458156586*t-.0638541728258133*r,3),s=Math.pow(e-.0894841775298119*t-1.2914855480194092*r,3),a={mode:"lrgb",r:4.076741636075957*n-3.3077115392580616*i+.2309699031821044*s,g:-1.2684379732850317*n+2.6097573492876887*i-.3413193760026573*s,b:-.0041960761386756*n-.7034186179359362*i+1.7076146940746117*s};return o!==void 0&&(a.alpha=o),a},xe=Md;var Td=e=>fe(xe(e)),Ne=Td;function Ar(e){let o=1.170873786407767;return .5*(o*e-.206+Math.sqrt((o*e-.206)*(o*e-.206)+4*.03*o*e))}function xt(e){return(e*e+.206*e)/(1.170873786407767*(e+.03))}function Sd(e,t){let r,o,n,i,s,a,l,c;-1.88170328*e-.80936493*t>1?(r=1.19086277,o=1.76576728,n=.59662641,i=.75515197,s=.56771245,a=4.0767416621,l=-3.3077115913,c=.2309699292):1.81444104*e-1.19445276*t>1?(r=.73956515,o=-.45954404,n=.08285427,i=.1254107,s=.14503204,a=-1.2684380046,l=2.6097574011,c=-.3413193965):(r=1.35733652,o=-.00915799,n=-1.1513021,i=-.50559606,s=.00692167,a=-.0041960863,l=-.7034186147,c=1.707614701);let f=r+o*e+n*t+i*e*e+s*e*t,u=.3963377774*e+.2158037573*t,d=-.1055613458*e-.0638541728*t,p=-.0894841775*e-1.291485548*t;{let h=1+f*u,b=1+f*d,m=1+f*p,_=h*h*h,T=b*b*b,w=m*m*m,S=3*u*h*h,z=3*d*b*b,A=3*p*m*m,F=6*u*u*h,D=6*d*d*b,P=6*p*p*m,L=a*_+l*T+c*w,$=a*S+l*z+c*A,O=a*F+l*D+c*P;f=f-L*$/($*$-.5*L*O)}return f}function mi(e,t){let r=Sd(e,t),o=xe({l:1,a:r*e,b:r*t}),n=Math.cbrt(1/Math.max(o.r,o.g,o.b)),i=n*r;return[n,i]}function kd(e,t,r,o,n,i=null){i||(i=mi(e,t));let s;if((r-n)*i[1]-(i[0]-n)*o<=0)s=i[1]*n/(o*i[0]+i[1]*(n-r));else{s=i[1]*(n-1)/(o*(i[0]-1)+i[1]*(n-r));{let a=r-n,l=o,c=.3963377774*e+.2158037573*t,f=-.1055613458*e-.0638541728*t,u=-.0894841775*e-1.291485548*t,d=a+l*c,p=a+l*f,h=a+l*u;{let b=n*(1-s)+s*r,m=s*o,_=b+m*c,T=b+m*f,w=b+m*u,S=_*_*_,z=T*T*T,A=w*w*w,F=3*d*_*_,D=3*p*T*T,P=3*h*w*w,L=6*d*d*_,$=6*p*p*T,O=6*h*h*w,ae=4.0767416621*S-3.3077115913*z+.2309699292*A-1,Y=4.0767416621*F-3.3077115913*D+.2309699292*P,Ke=4.0767416621*L-3.3077115913*$+.2309699292*O,Ct=Y/(Y*Y-.5*ae*Ke),st=-ae*Ct,at=-1.2684380046*S+2.6097574011*z-.3413193965*A-1,Ve=-1.2684380046*F+2.6097574011*D-.3413193965*P,cr=-1.2684380046*L+2.6097574011*$-.3413193965*O,to=Ve/(Ve*Ve-.5*at*cr),ur=-at*to,ps=-.0041960863*S-.7034186147*z+1.707614701*A-1,On=-.
vendor: 22,688 bytes, line 4
40041960863*F-.7034186147*D+1.707614701*P,gc=-.0041960863*L-.7034186147*$+1.707614701*O,ms=On/(On*On-.5*ps*gc),Nn=-ps*ms;st=Ct>=0?st:1e6,ur=to>=0?ur:1e6,Nn=ms>=0?Nn:1e6,s+=Math.min(st,Math.min(ur,Nn))}}}return s}function Rr(e,t,r=null){r||(r=mi(e,t));let o=r[0],n=r[1];return[n/o,n/(1-o)]}function Ho(e,t,r){let o=mi(t,r),n=kd(t,r,e,1,e,o),i=Rr(t,r,o),s=.11516993+1/(7.4477897+4.1590124*r+t*(-2.19557347+1.75198401*r+t*(-2.13704948-10.02301043*r+t*(-4.24894561+5.38770819*r+4.69891013*t)))),a=.11239642+1/(1.6132032-.68124379*r+t*(.40370612+.90148123*r+t*(-.27087943+.6122399*r+t*(.00299215-.45399568*r-.14661872*t)))),l=n/Math.min(e*i[0],(1-e)*i[1]),c=e*s,f=(1-e)*a,u=.9*l*Math.sqrt(Math.sqrt(1/(1/(c*c*c*c)+1/(f*f*f*f))));return c=e*.4,f=(1-e)*.8,[Math.sqrt(1/(1/(c*c)+1/(f*f))),u,n]}function Vt(e){let t=e.l!==void 0?e.l:0,r=e.a!==void 0?e.a:0,o=e.b!==void 0?e.b:0,n={mode:"okhsl",l:Ar(t)};e.alpha!==void 0&&(n.alpha=e.alpha);let i=Math.sqrt(r*r+o*o);if(!i)return n.s=0,n;let[s,a,l]=Ho(t,r/i,o/i),c;if(i<a){let f=0,u=.8*s,d=1-u/a;c=(i-f)/(u+d*(i-f))*.8}else{let f=a,u=.2*a*a*1.25*1.25/s,d=1-u/(l-a);c=.8+.2*((i-f)/(u+d*(i-f)))}return c&&(n.s=c,n.h=N(Math.atan2(o,r)*180/Math.PI)),n}function Gt(e){let t=e.h!==void 0?e.h:0,r=e.s!==void 0?e.s:0,o=e.l!==void 0?e.l:0,n={mode:"oklab",l:xt(o)};if(e.alpha!==void 0&&(n.alpha=e.alpha),!r||o===1)return n.a=n.b=0,n;let i=Math.cos(t/180*Math.PI),s=Math.sin(t/180*Math.PI),[a,l,c]=Ho(n.l,i,s),f,u,d,p;r<.8?(f=1.25*r,u=0,d=.8*a,p=1-d/l):(f=5*(r-.8),u=l,d=.2*l*l*1.25*1.25/a,p=1-d/(c-l));let h=u+f*d/(1-p*f);return n.a=h*i,n.b=h*s,n}var Ed={...Lo,mode:"okhsl",channels:["h","s","l","alpha"],parse:["--okhsl"],serialize:"--okhsl",fromMode:{oklab:Vt,rgb:e=>Vt(Oe(e))},toMode:{oklab:Gt,rgb:e=>Ne(Gt(e))}},Pa=Ed;function Yt(e){let t=e.l!==void 0?e.l:0,r=e.a!==void 0?e.a:0,o=e.b!==void 0?e.b:0,n=Math.sqrt(r*r+o*o),i=n?r/n:1,s=n?o/n:1,[a,l]=Rr(i,s),c=.5,f=1-c/a,u=l/(n+t*l),d=u*t,p=u*n,h=xt(d),b=p*h/d,m=xe({l:h,a:i*b,b:s*b}),_=Math.cbrt(1/Math.max(m.r,m.g,m.b,0));t=t/_,n=n/_*Ar(t)/t,t=Ar(t);let T={mode:"okhsv",s:n?(c+l)*p/(l*c+l*f*p):0,v:t?t/d:0};return T.s&&(T.h=N(Math.atan2(o,r)*180/Math.PI)),e.alpha!==void 0&&(T.alpha=e.alpha),T}function Jt(e){let t={mode:"oklab"};e.alpha!==void 0&&(t.alpha=e.alpha);let r=e.h!==void 0?e.h:0,o=e.s!==void 0?e.s:0,n=e.v!==void 0?e.v:0,i=Math.cos(r/180*Math.PI),s=Math.sin(r/180*Math.PI),[a,l]=Rr(i,s),c=.5,f=1-c/a,u=1-o*c/(c+l-l*f*o),d=o*l*c/(c+l-l*f*o),p=xt(u),h=d*p/u,b=xe({l:p,a:i*h,b:s*h}),m=Math.cbrt(1/Math.max(b.r,b.g,b.b,0)),_=xt(n*u),T=d*_/u;return t.l=_*m,t.a=T*i*m,t.b=T*s*m,t}var Cd={...$o,mode:"okhsv",channels:["h","s","v","alpha"],parse:["--okhsv"],serialize:"--okhsv",fromMode:{oklab:Yt,rgb:e=>Yt(Oe(e))},toMode:{oklab:Jt,rgb:e=>Ne(Jt(e))}},za=Cd;function Ad(e,t){if(!t||t[0]!=="oklab")return;let r={mode:"oklab"},[,o,n,i,s]=t;if(!(o.type===y.Hue||n.type===y.Hue||i.type===y.Hue))return o.type!==y.None&&(r.l=Math.min(Math.max(0,o.type===y.Number?o.value:o.value/100),1)),n.type!==y.None&&(r.a=n.type===y.Number?n.value:n.value*.4/100),i.type!==y.None&&(r.b=i.type===y.Number?i.value:i.value*.4/100),s.type!==y.None&&(r.alpha=Math.min(1,Math.max(0,s.type===y.Number?s.value:s.value/100))),r}var jo=Ad;var Rd={...Ut,mode:"oklab",toMode:{lrgb:xe,rgb:Ne},fromMode:{lrgb:Kt,rgb:Oe},ranges:{l:[0,1],a:[-.4,.4],b:[-.4,.4]},parse:[jo],serialize:e=>`oklab(${e.l!==void 0?e.l:"none"} ${e.a!==void 0?e.a:"none"} ${e.b!==void 0?e.b:"none"}${e.alpha<1?` / ${e.alpha}`:""})`},La=Rd;function Pd(e,t){if(!t||t[0]!=="oklch")return;let r={mode:"oklch"},[,o,n,i,s]=t;if(o.type!==y.None){if(o.type===y.Hue)return;r.l=Math.min(Math.max(0,o.type===y.Number?o.value:o.value/100),1)}if(n.type!==y.None&&(r.c=Math.max(0,n.type===y.Number?n.value:n.value*.4/100)),i.type!==y.None){if(i.type===y.Percentage)return;r.h=i.value}return s.type!==y.None&&(r.alpha=Math.min(1,Math.max(0,s.type===y.Number?s.value:s.value/100))),r}var Xo=Pd;var zd={...Wt,mode:"oklch",toMode:{oklab:e=>ie(e,"oklab"),rgb:e=>Ne(ie(e,"oklab"))},fromMode:{rgb:e=>ne(Oe(e),"oklch"),oklab:e=>ne(e,"oklch")},parse:[Xo],serialize:e=>`oklch(${e.l!==void 0?e.l:"none"} ${e.c!==void 0?e.c:"none"} ${e.h!==void 0?e.h:"none"}${e.alpha<1?` / ${e.alpha}`:""})`,ranges:{l:[0,1],c:[0,.4],h:[0,360]}},$a=zd;var Ld=e=>{let{r:t,g:r,b:o,alpha:n}=le(e),i={mode:"xyz65",x:.486570948648216*t+.265667693169093*r+.1982172852343625*o,y:.2289745640697487*t+.6917385218365062*r+.079286914093745*o,z:0*t+.0451133818589026*r+1.043944368900976*o};return n!==void 0&&(i.alpha=n),i},Pr=Ld;var $d=({x:e,y:t,z:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=fe({r:e*2.4934969119414263-t*.9313836179191242-.402710784450717*r,g:e*-.8294889695615749+t*1.7626640603183465+.0236246858419436*r,b:e*.0358458302437845-t*.0761723892680418+.9568845240076871*r},"p3");return o!==void 0&&(n.alpha=o),n},zr=$d;var Od={...he,mode:"p3",parse:["display-p3"],serialize:"display-p3",fromMode:{rgb:e=>zr(ee(e)),xyz65:zr},toMode:{rgb:e=>te(Pr(e)),xyz65:Pr}},Oa=Od;var hi=e=>{let t=Math.abs(e);return t>=.001953125?Math.sign(e)*Math.pow(t,.5555555555555556):16*e},Nd=({x:e,y:t,z:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"prophoto",r:hi(e*1.3457868816471585-t*.2555720873797946-.0511018649755453*r),g:hi(e*-.5446307051249019+t*1.5082477428451466+.0205274474364214*r),b:hi(e*0+t*0+1.2119675456389452*r)};return o!==void 0&&(n.alpha=o),n},Lr=Nd;var gi=(e=0)=>{let t=Math.abs(e);return t>=.03125?Math.sign(e)*Math.pow(t,1.8):e/16},Id=e=>{let t=gi(e.r),r=gi(e.g),o=gi(e.b),n={mode:"xyz50",x:.7977666449006423*t+.1351812974005331*r+.0313477341283922*o,y:.2880748288194013*t+.7118352342418731*r+899369387256e-16*o,z:0*t+0*r+.8251046025104602*o};return e.alpha!==void 0&&(n.alpha=e.alpha),n},$r=Id;var Fd={...he,mode:"prophoto",parse:["prophoto-rgb"],serialize:"prophoto-rgb",fromMode:{xyz50:Lr,rgb:e=>Lr(be(e))},toMode:{xyz50:$r,rgb:e=>ge($r(e))}},Na=Fd;var Ia=1.09929682680944,Dd=.018053968510807,bi=e=>{let t=Math.abs(e);return t>Dd?(Math.sign(e)||1)*(Ia*Math.pow(t,.45)-(Ia-1)):4.5*e},Hd=({x:e,y:t,z:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"rec2020",r:bi(e*1.7166511879712683-t*.3556707837763925-.2533662813736599*r),g:bi(e*-.6666843518324893+t*1.6164812366349395+.0157685458139111*r),b:bi(e*.0176398574453108-t*.0427706132578085+.9421031212354739*r)};return o!==void 0&&(n.alpha=o),n},Or=Hd;var Fa=1.09929682680944,jd=.018053968510807,xi=(e=0)=>{let t=Math.abs(e);return t<jd*4.5?e/4.5:(Math.sign(e)||1)*Math.pow((t+Fa-1)/Fa,1/.45)},Xd=e=>{let t=xi(e.r),r=xi(e.g),o=xi(e.b),n={mode:"xyz65",x:.6369580483012911*t+.1446169035862083*r+.1688809751641721*o,y:.262700212011267*t+.6779980715188708*r+.059301716469862*o,z:0*t+.0280726930490874*r+1.0609850577107909*o};return e.alpha!==void 0&&(n.alpha=e.alpha),n},Nr=Xd;var qd={...he,mode:"rec2020",fromMode:{xyz65:Or,rgb:e=>Or(ee(e))},toMode:{xyz65:Nr,rgb:e=>te(Nr(e))},parse:["rec2020"],serialize:"rec2020"},Da=qd;var qe=.0037930732552754493,qo=Math.cbrt(qe);var yi=e=>Math.cbrt(e)-qo,Bd=e=>{let{r:t,g:r,b:o,alpha:n}=le(e),i=yi(.3*t+.622*r+.078*o+qe),s=yi(.23*t+.692*r+.078*o+qe),a=yi(.2434226892454782*t+.2047674442449682*r+.5518098665095535*o+qe),l={mode:"xyb",x:(i-s)/2,y:(i+s)/2,b:a-(i+s)/2};return n!==void 0&&(l.alpha=n),l},Bo=Bd;var _i=e=>Math.pow(e+qo,3),Ud=({x:e,y:t,b:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n=_i(e+t)-qe,i=_i(t-e)-qe,s=_i(r+t)-qe,a=fe({r:11.031566904639861*n-9.866943908131562*i-.16462299650829934*s,g:-3.2541473810744237*n+4.418770377582723*i-.16462299650829934*s,b:-3.6588512867136815*n+2.7129230459360922*i+1.9459282407775895*s});return o!==void 0&&(a.alpha=o),a},Uo=Ud;var Wd={mode:"xyb",channels:["x","y","b","alpha"],parse:["--xyb"],serialize:"--xyb",toMode:{rgb:Uo},fromMode:{rgb:Bo},ranges:{x:[-.0154,.0281],y:[0,.8453],b:[-.2778,.388]},interpolate:{x,y:x,b:x,alpha:{use:x,fixup:E}}},Ha=Wd;var Kd={mode:"xyz50",parse:["xyz-d50"],serialize:"xyz-d50",toMode:{rgb:ge,lab:Qe},fromMode:{rgb:be,lab:Ze},channels:["x","y","z","alpha"],ranges:{x:[0,.964],y:[0,.999],z:[0,.825]},interpolate:{x,y:x,z:x,alpha:{use:x,fixup:E}}},ja=Kd;var Vd=e=>{let{x:t,y:r,z:o,alpha:n}=e;t===void 0&&(t=0),r===void 0&&(r=0),o===void 0&&(o=0);let i={mode:"xyz50",x:1.0479298208405488*t+.0229467933410191*r-.0501922295431356*o,y:.0296278156881593*t+.990434484573249*r-.0170738250293851*o,z:-.0092430581525912*t+.0150551448965779*r+.7518742899580008*o};return n!==void 0&&(i.alpha=n),i},Wo=Vd;var Gd=e=>{let{x:t,y:r,z:o,alpha:n}=e;t===void 0&&(t=0),r===void 0&&(r=0),o===void 0&&(o=0);let i={mode:"xyz65",x:.9554734527042182*t-.0230985368742614*r+.0632593086610217*o,y:-.0283697069632081*t+1.0099954580058226*r+.021041398966943*o,z:.0123140016883199*t-.0205076964334779*r+1.3303659366080753*o};return n!==void 0&&(i.alpha=n),i},Ko=Gd;var Yd={mode:"xyz65",toMode:{rgb:te,xyz50:Wo},fromMode:{rgb:ee,xyz50:Ko},ranges:{x:[0,.95],y:[0,1],z:[0,1.088]},channels:["x","y","z","alpha"],parse:["xyz","xyz-d65"],serialize:"xyz-d65",interpolate:{x,y:x,z:x,alpha:{use:x,fixup:E}}},Xa=Yd;var Jd=({r:e,g:t,b:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"yiq",y:.29889531*e+.58662247*t+.11448223*r,i:.59597799*e-.2741761*t-.32180189*r,q:.21147017*e-.52261711*t+.31114694*r};return o!==void 0&&(n.alpha=o),n},Vo=Jd;var Zd=({y:e,i:t,q:r,alpha:o})=>{e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=0);let n={mode:"rgb",r:e+.95608445*t+.6208885*r,g:e-.27137664*t-.6486059*r,b:e-1.10561724*t+1.70250126*r};return o!==void 0&&(n.alpha=o),n},Go=Zd;var Qd={mode:"yiq",toMode:{rgb:Go},fromMode:{rgb:Vo},channels:["y","i","q","alpha"],parse:["--yiq"],serialize:"--yiq",ranges:{i:[-.595,.595],q:[-.522,.522]},interpolate:{y:x,i:x,q:x,alpha:{use:x,fixup:E}}},qa=Qd;var ep=(e,t)=>Math.round(e*(t=Math.pow(10,t)))/t,tp=(e=4)=>t=>typeof t=="number"?ep(t,e):t,Yo=tp;var Ir=Yo(2),Fr=e=>Math.max(0,Math.min(1,e||0)),yt=e=>Math.round(Fr(e)*255),vi=k("rgb"),rp=k("hsl"),Jo=e=>{if(e===void 0)return;let t=yt(e.r),r=yt(e.g),o=yt(e.b);return"#"+(1<<24|t<<16|r<<8|o).toString(16).slice(1)},wi=e=>{if(e===void 0)return;let t=yt(e.alpha!==void 0?e.alpha:1);return Jo(e)+(256|t).toString(16).slice(1)},Mi=e=>{if(e===void 0)return;let t=yt(e.r),r=yt(e.g),o=yt(e.b);return e.alpha===void 0||e.alpha===1?`rgb(${t}, ${r}, ${o})`:`rgba(${t}, ${r}, ${o}, ${Ir(Fr(e.alpha))})`},Ti=e=>{if(e===void 0)return;let t=Ir(e.h||0),r=Ir(Fr(e.s)*100)+"%",o=Ir(Fr(e.l)*100)+"%";return e.alpha===void 0||e.alpha===1?`hsl(${t}, ${r}, ${o})`:`hsla(${t}, ${r}, ${o}, ${Ir(Fr(e.alpha))})`},Ba=e=>{let t=Z(e);if(!t)return;let r=I(t.mode);if(!r.serialize||typeof r.serialize=="string"){let o=`color(${r.serialize||`--${t.mode}`} `;return r.channels.forEach((n,i)=>{n!=="alpha"&&(o+=(i?" ":"")+(t[n]!==void 0?t[n]:"none"))}),t.alpha!==void 0&&t.alpha<1&&(o+=` / ${t.alpha}`),o+")"}if(typeof r.serialize=="function")return r.serialize(t)},Ua=e=>Jo(vi(e)),Wa=e=>wi(vi(e)),Ka=e=>Mi(vi(e)),Va=e=>Ti(rp(e));var op={normal:(e,t)=>t,multiply:(e,t)=>e*t,screen:(e,t)=>e+t-e*t,"hard-light":(e,t)=>t<.5?e*2*t:2*t*(1-e)-1,overlay:(e,t)=>e<.5?t*2*e:2*e*(1-t)-1,darken:(e,t)=>Math.min(e,t),lighten:(e,t)=>Math.max(e,t),"color-dodge":(e,t)=>e===0?0:t===1?1:Math.min(1,e/(1-t)),"color-burn":(e,t)=>e===1?1:t===0?0:1-Math.min(1,(1-e)/t),"soft-light":(e,t)=>t<.5?e-(1-2*t)*e*(1-e):e+(2*t-1)*((e<.25?((16*e-12)*e+4)*e:Math.sqrt(e))-e),difference:(e,t)=>Math.abs(e-t),exclusion:(e,t)=>e+t-2*e*t},np=(e,t="normal",r="rgb")=>{let o=typeof t=="function"?t:op[t],n=k(r),i=I(r).channels;return e.map(a=>{let l=n(a);return l.alpha===void 0&&(l.alpha=1),l}).reduce((a,l)=>{if(a===void 0)return l;let c=l.alpha+a.alpha*(1-l.alpha);return i.reduce((f,u)=>(u!=="alpha"&&(c===0?f[u]=0:(f[u]=l.alpha*(1-a.alpha)*l[u]+l.alpha*a.alpha*o(a[u],l[u])+(1-l.alpha)*a.alpha*a[u],f[u]=Math.max(0,Math.min(1,f[u]/c)))),f),{mode:r,alpha:c})})},Ga=np;var ip=([e,t])=>e+Math.random()*(t-e),sp=e=>Object.keys(e).reduce((t,r)=>{let o=e[r];return t[r]=Array.isArray(o)?o:[o,o],t},{}),ap=(e="rgb",t={})=>{let r=I(e),o=sp(t);return r.channels.reduce((n,i)=>((o.alpha||i!=="alpha")&&(n[i]=ip(o[i]||r.ranges[i])),n),{mode:e})},Ya=ap;var et=(e,t="rgb",r=!1)=>{let o=t?I(t).channels:null,n=t?k(t):Z;return i=>{let s=n(i);if(!s)return;let a=(o||I(s.mode).channels).reduce((c,f)=>{let u=e(s[f],f,s,t);return u!==void 0&&!isNaN(u)&&(c[f]=u),c},{mode:s.mode});if(!r)return a;let l=Z(i);return l&&l.mode!==a.mode?k(l.mode)(a):a}},Zo=(e,t,r)=>t!=="alpha"?(e||0)*(r.alpha!==void 0?r.alpha:1):e,Qo=(e,t,r)=>t!=="alpha"&&r.alpha!==0?(e||0)/(r.alpha!==void 0?r.alpha:1):e,Dr=(e=1,t=0)=>(r,o)=>o!=="alpha"?r*e+t:r,Ja=(e=1,t=1,r=0)=>(o,n)=>n!=="alpha"?e*Math.pow(o,t)+r:o;var lp=e=>{e[0]===void 0&&(e[0]=0),e[e.length-1]===void 0&&(e[e.length-1]=1);let t=1,r,o,n,i;for(;t<e.length;){if(e[t]===void 0){for(o=t,n=e[t-1],r=t;e[r]===void 0;)r++;for(i=(e[r]-n)/(r-t+1);t<r;)e[t]=n+(t+1-o)*i,t++}else e[t]<e[t-1]&&(e[t]=e[t-1]);t++}return e},Za=lp;var fp=(e=.5)=>t=>e<=0?1:e>=1?0:Math.pow(t,Math.log(.5)/Math.log(e)),en=fp;var tn=e=>typeof e=="function",_t=e=>e&&typeof e=="object",Qa=e=>typeof e=="number",el=(e,t="rgb",r,o)=>{let n=I(t),i=k(t),s=[],a=[],l={};e.forEach(d=>{Array.isArray(d)?(s.push(i(d[0])),a.push(d[1])):Qa(d)||tn(d)?l[a.length]=d:(s.push(i(d)),a.push(void 0))}),Za(a);let c=n.channels.reduce((d,p)=>{let h;return _t(r)&&_t(r[p])&&r[p].fixup?h=r[p].fixup:_t(n.interpolate[p])&&n.interpolate[p].fixup?h=n.interpolate[p].fixup:h=b=>b,d[p]=h(s.map(b=>b[p])),d},{});if(o){let d=s.map((p,h)=>n.channels.reduce((b,m)=>(b[m]=c[m][h],b),{mode:t}));c=n.channels.reduce((p,h)=>(p[h]=d.map(b=>{let m=o(b[h],h,b,t);return isNaN(m)?void 0:m}),p),{})}let f=n.channels.reduce((d,p)=>{let h;return tn(r)?h=r:_t(r)&&tn(r[p])?h=r[p]:_t(r)&&_t(r[p])&&r[p].use?h=r[p].use:tn(n.interpolate[p])?h=n.interpolate[p]:_t(n.interpolate[p])&&(h=n.interpolate[p].use),d[p]=h(c[p]),d},{}),u=s.length-1;return d=>{if(d=Math.min(Math.max(0,d),1),d<=a[0])return s[0];if(d>a[u])return s[u];let p=0;for(;a[p]<d;)p++;let h=a[p-1],b=a[p]-h,m=(d-h)/b,_=l[p]||l[0];_!==void 0&&(Qa(_)&&(_=en((_-h)/b)),m=_(m));let T=(p-1+m)/u;return n.channels.reduce((w,S)=>{let z=f[S](T);return z!==void 0&&(w[S]=z),w},{mode:t})}},tl=(e,t="rgb",r)=>el(e,t,r),Si=(e,t)=>(r,o="rgb",n)=>{let i=t?et(t,o):void 0,s=el(r,o,n,e);return i?a=>i(s(a)):s},rl=Si(Zo,Qo);var rn=(e,t)=>(e+t)%t,ol=(e,t,r,o,n)=>{let i=n*n,s=i*n;return((1-3*n+3*i-s)*e+(4-6*i+3*s)*t+(1+3*n+3*i-3*s)*r+s*o)/6},on=e=>t=>{let r=e.length-1,o=t>=1?r-1:Math.max(0,Math.floor(t*r));return ol(o>0?e[o-1]:2*e[o]-e[o+1],e[o],e[o+1],o<r-1?e[o+2]:2*e[o+1]-e[o],(t-o/r)*r)},nn=e=>t=>{let r=e.length-1,o=Math.floor(t*r);return ol(e[rn(o-1,e.length)],e[rn(o,e.length)],e[rn(o+1,e.length)],e[rn(o+2,e.length)],(t-o/r)*r)};var nl=e=>{let t,r=e.length-1,o=new Array(r),n=new Array(r),i=new Array(r);for(o[1]=1/4,n[1]=(6*e[1]-e[0])/4,t=2;t<r;++t)o[t]=1/(4-o[t-1]),n[t]=(6*e[t]-(t==r-1?e[r]:0)-n[t-1])*o[t];for(i[0]=e[0],i[r]=e[r],r-1>0&&(i[r-1]=n[r-1]),t=r-2;t>0;--t)i[t]=n[t]-o[t]*i[t+1];return i},il=e=>on(nl(e)),sl=e=>nn(nl(e));var Zt=Math.sign,ki=Math.min,de=Math.abs,Ei=e=>{let t=e.length-1,r=[],o=[],n=[];for(let i=0;i<t;i++)r.push((e[i+1]-e[i])*t),o.push(i>0?.5*(e[i+1]-e[i-1])*t:void 0),n.push(i>0?(Zt(r[i-1])+Zt(r[i]))*ki(de(r[i-1]),de(r[i]),.5*de(o[i])):void 0);return[r,o,n]},Ci=(e,t,r)=>{let o=e.length-1,n=o*o;return i=>{let s;i>=1?s=o-1:s=Math.max(0,Math.floor(i*o));let a=i-s/o,l=a*a,c=l*a;return(t[s]+t[s+1]-2*r[s])*n*c+(3*r[s]-2*t[s]-t[s+1])*o*l+t[s]*a+e[s]}},al=e=>{if(e.length<3)return x(e);let t=e.length-1,[r,,o]=Ei(e);return o[0]=r[0],o[t]=r[t-1],Ci(e,o,r)},ll=e=>{if(e.length<3)return x(e);let t=e.length-1,[r,o,n]=Ei(e);return o[0]=(e[1]*2-e[0]*1.5-e[2]*.5)*t,o[t]=(e[t]*1.5-e[t-1]*2+e[t-2]*.5)*t,n[0]=o[0]*r[0]<=0?0:de(o[0])>2*de(r[0])?2*r[0]:o[0],n[t]=o[t]*r[t-1]<=0?0:de(o[t])>2*de(r[t-1])?2*r[t-1]:o[t],Ci(e,n,r)},fl=e=>{let t=e.length-1,[r,o,n]=Ei(e);o[0]=.5*(e[1]-e[t])*t,o[t]=.5*(e[0]-e[t-1])*t;let i=(e[0]-e[t])*t,s=i;return n[0]=(Zt(i)+Zt(r[0]))*ki(de(i),de(r[0]),.5*de(o[0])),n[t]=(Zt(r[t-1])+Zt(s))*ki(de(r[t-1]),de(s),.5*de(o[t])),Ci(e,n,r)};var cp=(e=1)=>e===1?t=>t:t=>Math.pow(t,e),sn=cp;var up=(e=2,t=1)=>{let r=sn(t);if(e<2)return e<1?[]:[r(.5)];let o=[];for(let n=0;n<e;n++)o.push(r(n/(e-1)));return o},cl=up;var ul=k("rgb"),dl=e=>{let t={mode:e.mode,r:Math.max(0,Math.min(e.r!==void 0?e.r:0,1)),g:Math.max(0,Math.min(e.g!==void 0?e.g:0,1)),b:Math.max(0,Math.min(e.b!==void 0?e.b:0,1))};return e.alpha!==void 0&&(t.alpha=e.alpha),t},pl=e=>dl(ul(e)),ml=e=>e!==void 0&&(e.r===void 0||e.r>=0&&e.r<=1)&&(e.g===void 0||e.g>=0&&e.g<=1)&&(e.b===void 0||e.b>=0&&e.b<=1);function an(e){return ml(ul(e))}function Hr(e="rgb"){let{gamut:t}=I(e);if(!t)return o=>!0;let r=k(typeof t=="string"?t:e);return o=>ml(r(o))}function hl(e){return e=Z(e),e===void 0||an(e)?e:k(e.mode)(pl(e))}function ln(e="rgb"){let{gamut:t}=I(e);if(!t)return i=>Z(i);let r=typeof t=="string"?t:e,o=k(r),n=Hr(r);return i=>{let s=Z(i);if(!s)return;let a=o(s);if(n(a))return s;let l=dl(a);return s.mode===l.mode?l:k(s.mode)(l)}}function gl(e,t="lch",r="rgb"){e=Z(e);let o=r==="rgb"?an:Hr(r),n=r==="rgb"?pl:ln(r);if(e===void 0||o(e))return e;let i=k(e.mode);e=k(t)(e);let s={...e,c:0};if(!o(s))return i(n(s));let a=0,l=e.c!==void 0?e.c:0,c=I(t).ranges.c,f=(c[1]-c[0])/Math.pow(2,13),u=s.c;for(;l-a>f;)s.c=a+(l-a)*.5,o(s)?(u=s.c,a=s.c):l=s.c;return i(o(s)?s:{...s,c:u})}function bl(e="rgb",t="oklch",r=Xe("oklch"),o=.02){let n=k(e),i=I(e);if(!i.gamut)return f=>n(f);let s=Hr(e),a=ln(e),l=k(t),{ranges:c}=I(t);if(!c.l||!c.c)throw new Error("LCH-like space expected");return f=>{if(f=Z(f),f===void 0)return;let u={...l(f)};if(u.l===void 0&&(u.l=0),u.c===void 0&&(u.c=0),u.l>=c.l[1]){let m={...i.white,mode:e};return f.alpha!==void 0&&(m.alpha=f.alpha),m}if(u.l<=c.l[0]){let m={...i.black,mode:e};return f.alpha!==void 0&&(m.alpha=f.alpha),m}if(s(u))return n(u);let d=0,p=u.c,h=(c.c[1]-c.c[0])/4e3,b=a(u);for(;p-d>h;)u.c=(d+p)*.5,b=a(u),s(u)||r&&o>0&&r(u,b)<=o?d=u.c:p=u.c;return n(s(u)?u:b)}}var dp=(e,t=Xe(),r=o=>o)=>{let o=e.map((n,i)=>({color:r(n),i}));return(n,i=1,s=1/0)=>(isFinite(i)&&(i=Math.max(1,Math.min(i,o.length-1))),o.forEach(a=>{a.d=t(n,a.color)}),o.sort((a,l)=>a.d-l.d).slice(0,i).filter(a=>a.d<s).map(a=>e[a.i]))},xl=dp;var Ai=e=>Math.max(e,0),Ri=e=>Math.max(Math.min(e,1),0),pp=(e,t,r)=>e===void 0||t===void 0?void 0:e+r*(t-e),mp=e=>{let t=1-Ri(e);return[.393+.607*t,.769-.769*t,.189-.189*t,0,.349-.349*t,.686+.314*t,.168-.168*t,0,.272-.272*t,.534-.534*t,.131+.869*t,0,0,0,0,1]},hp=e=>{let t=Ai(e);return[.213+.787*t,.715-.715*t,.072-.072*t,0,.213-.213*t,.715+.285*t,.072-.072*t,0,.213-.213*t,.715-.715*t,.072+.928*t,0,0,0,0,1]},gp=e=>{let t=1-Ri(e);return[.2126+.7874*t,.7152-.7152*t,.0722-.0722*t,0,.2126-.2126*t,.7152+.2848*t,.0722-.0722*t,0,.2126-.2126*t,.7152-.7152*t,.0722+.9278*t,0,0,0,0,1]},bp=e=>{let t=Math.PI*e/180,r=Math.cos(t),o=Math.sin(t);return[.213+r*.787-o*.213,.715-r*.715-o*.715,.072-r*.072+o*.928,0,.213-r*.213+o*.143,.715+r*.285+o*.14,.072-r*.072-o*.283,0,.213-r*.213-o*.787,.715-r*.715+o*.715,.072+r*.928+o*.072,0,0,0,0,1]},fn=(e,t,r=!1)=>{let o=k(t),n=I(t).channels;return i=>{let s=o(i);if(!s)return;let a={mode:t},l,c=n.length;for(let u=0;u<e.length;u++)l=n[Math.floor(u/c)],s[l]!==void 0&&(a[l]=(a[l]||0)+e[u]*(s[n[u%c]]||0));if(!r)return a;let f=Z(i);return f&&a.mode!==f.mode?k(f.mode)(a):a}},yl=(e=1,t="rgb")=>{let r=Ai(e);return et(Dr(r),t,!0)},_l=(e=1,t="rgb")=>{let r=Ai(e);return et(Dr(r,(1-r)/2),t,!0)},vl=(e=1,t="rgb")=>fn(mp(e),t,!0),wl=(e=1,t="rgb")=>fn(hp(e),t,!0),Ml=(e=1,t="rgb")=>fn(gp(e),t,!0),Tl=(e=1,t="rgb")=>{let r=Ri(e);return et((o,n)=>n==="alpha"?o:pp(r,1-r,o),t,!0)},Sl=(e=0,t="rgb")=>fn(bp(e),t,!0);var xp=k("rgb"),yp=[[1,0,-0,0,1,0,-0,-0,1],[.856167,.182038,-.038205,.029342,.955115,.015544,-.00288,-.001563,1.004443],[.734766,.334872,-.069637,.05184,.919198,.028963,-.004928,-.004209,1.009137],[.630323,.465641,-.095964,.069181,.890046,.040773,-.006308,-.007724,1.014032],[.539009,.579343,-.118352,.082546,.866121,.051332,-.007136,-.011959,1.019095],[.458064,.679578,-.137642,.092785,.846313,.060902,-.007494,-.016807,1.024301],[.38545,.769005,-.154455,.100526,.829802,.069673,-.007442,-.02219,1.029632],[.319627,.849633,-.169261,.106241,.815969,.07779,-.007025,-.028051,1.035076],[.259411,.923008,-.18242,.110296,.80434,.085364,-.006276,-.034346,1.040622],[.203876,.990338,-.194214,.112975,.794542,.092483,-.005222,-.041043,1.046265],[.152286,1.052583,-.204868,.114503,.786281,.099216,-.003882,-.048116,1.051998]],_p=[[1,0,-0,0,1,0,-0,-0,1],[.866435,.177704,-.044139,.049567,.939063,.01137,-.003453,.007233,.99622],[.760729,.319078,-.079807,.090568,.889315,.020117,-.006027,.013325,.992702],[.675425,.43385,-.109275,.125303,.847755,.026942,-.00795,.018572,.989378],[.605511,.52856,-.134071,.155318,.812366,.032316,-.009376,.023176,.9862],[.547494,.607765,-.155259,.181692,.781742,.036566,-.01041,.027275,.983136],[.498864,.674741,-.173604,.205199,.754872,.039929,-.011131,.030969,.980162],[.457771,.731899,-.18967,.226409,.731012,.042579,-.011595,.034333,.977261],[.422823,.781057,-.203881,.245752,.709602,.044646,-.011843,.037423,.974421],[.392952,.82361,-.216562,.263559,.69021,.046232,-.01191,.040281,.97163],[.367322,.860646,-.227968,.280085,.672501,.047413,-.01182,.04294,.968881]],vp=[[1,0,-0,0,1,0,-0,-0,1],[.92667,.092514,-.019184,.021191,.964503,.014306,.008437,.054813,.93675],[.89572,.13333,-.02905,.029997,.9454,.024603,.013027,.104707,.882266],[.905871,.127791,-.033662,.026856,.941251,.031893,.01341,.148296,.838294],[.948035,.08949,-.037526,.014364,.946792,.038844,.010853,.193991,.795156],[1.017277,.027029,-.044306,-.006113,.958479,.047634,.006379,.248708,.744913],[1.104996,-.046633,-.058363,-.032137,.971635,.060503,.001336,.317922,.680742],[1.193214,-.109812,-.083402,-.058496,.97941,.079086,-.002346,.403492,.598854],[1.257728,-.139648,-.118081,-.078003,.975409,.102594,-.003316,.501214,.502102],[1.278864,-.125333,-.153531,-.084748,.957674,.127074,-989e-6,.601151,.399838],[1.255528,-.076749,-.178779,-.078411,.930809,.147602,.004733,.691367,.3039]],Pi=(e,t)=>{let r=Math.max(0,Math.min(1,t)),o=Math.round(r/.1),n=Math.round(r%.1),i=e[o];if(n>0&&o<e.length-1){let s=e[o+1];i=i.map((a,l)=>Re(i[l],s[l],n))}return s=>{let a=Z(s);if(a===void 0)return;let{r:l,g:c,b:f}=xp(a),u={mode:"rgb",r:i[0]*l+i[1]*c+i[2]*f,g:i[3]*l+i[4]*c+i[5]*f,b:i[6]*l+i[7]*c+i[8]*f};return a.alpha!==void 0&&(u.alpha=a.alpha),k(a.mode)(u)}},kl=(e=1)=>Pi(yp,e),El=(e=1)=>Pi(_p,e),Cl=(e=1)=>Pi(vp,e);var Al=e=>e*e*(3-2*e),Rl=e=>.5-Math.sin(Math.asin(1-2*e)/3);var wp=e=>e*e*e*(e*(e*6-15)+10),Pl=wp;var Mp=e=>(1-Math.cos(e*Math.PI))/2,zl=Mp;function cn(e){let t=k("lrgb")(e);return .2126*t.r+.7152*t.g+.0722*t.b}function Ll(e,t){let r=cn(e),o=cn(t);
4return(Math.max(r,o)+.05)/(Math.min(r,o)+.05)}var{modeOklch:Tp,modeRgb:Sp,modeP3:kp,toGamut:$l,useMode:Li}=zi,Ep=Li(Tp),Cp=Li(Sp),Ap=Li(kp),Rp=$l("rgb","oklch"),Pp=$l("p3","oklch"),Qt=e=>Math.max(0,Math.min(1,e)),Ie={rgbToHsv(e){let{r:t,g:r,b:o}=e,n=Math.max(t,r,o),i=Math.min(t,r,o),s=n-i,a=s*6,l={h:s===0?0:n===t?(r-o)/a+(r>o?0:1):n===r?(o-t)/a+1/3:(t-r)/a+2/3,s:n===0?0:s/n,v:n};return l.h===1&&(l.h=0),l},rgbToHsl(e){return Ie.hsvToHsl(Ie.rgbToHsv(e))},hsvToRgb(e){let{h:t,s:r,v:o}=e,n,i,s,a=Math.floor(t*6),l=t*6-a,c=o*(1-r),f=o*(1-l*r),u=o*(1-(1-l)*r);switch(a%6){case 0:n=o,i=u,s=c;break;case 1:n=f,i=o,s=c;break;case 2:n=c,i=o,s=u;break;case 3:n=c,i=f,s=o;break;case 4:n=u,i=c,s=o;break;default:n=o,i=c,s=f;break}return{r:n,g:i,b:s}},hslToRgb(e){let t=(1-Math.abs(2*e.l-1))*e.s,r=t*(1-Math.abs(e.h*6%2-1)),o=e.l-t/2,[n,i,s]=e.h<1/6?[t,r,0]:e.h<2/6?[r,t,0]:e.h<3/6?[0,t,r]:e.h<4/6?[0,r,t]:e.h<5/6?[r,0,t]:[t,0,r];return{r:n+o,g:i+o,b:s+o}},hsvToHsl(e){let t={h:e.h};return t.l=(2-e.s)*e.v/2,t.s=t.l&&t.l<1?e.s*e.v/(t.l<.5?t.l*2:2-t.l*2):e.s,t},hslToHsv(e){let t={h:e.h},r=e.s*(e.l<.5?e.l:1-e.l);return t.v=e.l+r,t.s=e.l>0?2*r/t.v:e.s,t},rgbToOklch(e){let t=Ep({mode:"rgb",...e});return{l:t.l,c:t.c,h:t.h??0}},oklchToRawRgb(e){let t=Cp({mode:"oklch",...e});return{r:t.r,g:t.g,b:t.b}},oklchToDisplayRgb(e){let t=Rp({mode:"oklch",...e});return{r:Qt(t.r),g:Qt(t.g),b:Qt(t.b)}},oklchToDisplayP3(e){let t=Pp({mode:"oklch",...e});return{r:Qt(t.r),g:Qt(t.g),b:Qt(t.b)}},oklchToRawP3(e){let t=Ap({mode:"oklch",...e});return{r:t.r,g:t.g,b:t.b}},oklchaToRgba(e){return{...Ie.oklchToDisplayRgb(e),a:e.a}},oklchaToHsva(e){return{...Ie.rgbToHsv(Ie.oklchToDisplayRgb(e)),a:e.a}},oklchaToHsla(e){return{...Ie.rgbToHsl(Ie.oklchToDisplayRgb(e)),a:e.a}},oklchaToRgbaTuple(e){let{r:t,g:r,b:o,a:n}=Ie.oklchaToRgba(e);return[t,r,o,n]},rgbaTupleToOklcha(e){let[t,r,o,n]=e;return{...Ie.rgbToOklch({r:t,g:r,b:o}),a:n}}},Me=Ie;var un={normalizeRgbHex(e){let t=e.replace("#","").trim();return t.length===3?t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]:t.length===4&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]),"#"+t.toLowerCase()},hexToRgb(e){let t=e.replace("#","").trim(),r=t.length===4||t.length===8;t.length===3?t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]:t.length===4&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]+t[3]+t[3]);let o=Number.parseInt(t.slice(0,2),16)/255,n=Number.parseInt(t.slice(2,4),16)/255,i=Number.parseInt(t.slice(4,6),16)/255;if(r){let s=Number.parseInt(t.slice(6,8),16)/255;return{r:o,g:n,b:i,a:s}}return{r:o,g:n,b:i}},rgbToHex(e){let t=Math.round(e.r*255).toString(16).padStart(2,"0"),r=Math.round(e.g*255).toString(16).padStart(2,"0"),o=Math.round(e.b*255).toString(16).padStart(2,"0");return`#${t}${r}${o}`},rgbaToHex(e){let t=Math.round(e.r*255).toString(16).padStart(2,"0"),r=Math.round(e.g*255).toString(16).padStart(2,"0"),o=Math.round(e.b*255).toString(16).padStart(2,"0"),n=Math.round(e.a*255).toString(16).padStart(2,"0");return`#${t}${r}${o}${n}`},hexToHsva(e){let{r:t,g:r,b:o,a:n}=un.hexToRgb(e);return{...Me.rgbToHsv({r:t,g:r,b:o}),a:n??1}},hsvToHex(e){return un.rgbToHex(Me.hsvToRgb(e))},hsvaToHex(e){return un.rgbaToHex({...Me.hsvToRgb(e),a:e.a})}},jr=un;var $i={0:0,1:17,2:34,3:51,4:68,5:85,6:102,7:119,8:136,9:153,a:170,b:187,c:204,d:221,e:238,f:255,A:170,B:187,C:204,D:221,E:238,F:255},zp={rgbHexToNumber(e){return typeof e=="string"?(e=e.replace("#","").trim(),e.length===3?$i[e[0]]<<16|$i[e[1]]<<8|$i[e[2]]:Number.parseInt(e,16)):e},rgbNumberToHex(e){return"#"+("000000"+e.toString(16).split(".")[0]).slice(-6)},rgbNumberToHsl(e){return Me.rgbToHsl({r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255})},rgbNumberToHsv(e){return Me.rgbToHsv({r:(e>>16&255)/255,g:(e>>8&255)/255,b:(e&255)/255})}},vt=zp;function dn(e){let{r:t,g:r,b:o}=Me.hslToRgb(e);return Math.round(t*255)<<16|Math.round(r*255)<<8|Math.round(o*255)}var Oi={blendColors(e,t,r){let o=e>>16&255,n=e>>8&255,i=e&255,s=t>>16&255,a=t>>8&255,l=t&255,c=Math.round(o*(1-r)+s*r),f=Math.round(n*(1-r)+a*r),u=Math.round(i*(1-r)+l*r);return c<<16|f<<8|u},darkenColor(e,t){return Oi.blendColors(e,0,t)},lightenColor(e,t){return Oi.blendColors(e,16777215,t)},desaturateColor(e,t){let r=vt.rgbNumberToHsl(e);return r.s*=1-t,dn(r)},saturateColor(e,t){let r=vt.rgbNumberToHsl(e);return r.s+=(1-r.s)*t,dn(r)},shiftHsl(e,t,r,o){let n=vt.rgbNumberToHsl(e);return n.h+=t,n.s+=r,n.l+=o,n.h<0&&(n.h+=1),n.h>1&&(n.h-=1),n.s=Math.min(1,Math.max(0,n.s)),dn(n)},multSl(e,t,r){let o=vt.rgbNumberToHsl(e);return o.s*=t,o.l*=r,o.s=Math.min(1,Math.max(0,o.s)),dn(o)}},Ol=Oi;var Lp={...jr,...Me,...Ol,...vt},Nl=Lp;var $p={bind(e,...t){return e.bind(void 0,...t)},pipe:(e,...t)=>t.reduce((r,o)=>o(r),e)},Il=$p;var Op={async nextFrame(){return await new Promise(e=>requestAnimationFrame(e))},async sleepFrames(e){for(;e>0;)e--,await this.nextFrame()},async sleep(e){return await new Promise(t=>setTimeout(t,e))}},Np={...Op},wt=Np;var Ip="global"in globalThis,Xr={getFilepath(e,t){let r=Xr.removeFilename(e.url)+t;return Ip?Xr.removeProtocol(r):r},getModuleDirname(e){return Xr.removeProtocol(Xr.removeFilename(e.url))},removeProtocol(e){let t=e.replace(/^[a-z]+:\/+/,"");return t===e?t:!t.startsWith(".")&&!/^[a-z]:/i.test(t)?"/"+t:t},removeFilename(e){return e.replace(/\/[^/]*$/,"/")}},Fl=Xr;var ce={___CONTENT_RETRIEVAL___(){},getPropFirstDefined(e,t){let r;for(let o of t)if(r=ce.getProp(e,o),r!==void 0)return r},getProp(e,t){return ce.getPropChain(e,t.split("."))},getPropChain(e,t){let r=e;for(let o of t){if(r==null||r[o]===void 0)return;r=r[o]}return r},getProps(e,t,r=!1){if(!e)return[];let o;typeof t=="string"?o=ce.propStrToPropArrs(t):(o=t,Array.isArray(o[0])||
4(o=o.map(i=>[i])));let n=[e];for(let[i,s]of o.entries()){let a=[];for(let l of n)for(let c of s)if(Array.isArray(l)&&(c.includes(":")||c==="[]"))if(c==="[]")a.push(...l);else{let[f,u]=c.split(":"),d=l.slice(f===""?0:Number(f),u===""?l.length:Number(u));a.push(...d)}else Array.isArray(l)&&!Object.hasOwn(l,c)?a.push(...l.map(f=>f[c])):(r&&!Object.hasOwn(l,c)&&(i===o.length-1?l[c]=r==="array"?[]:r==="object"?{}:void 0:l[c]={}),a.push(l[c]));n=a.filter(l=>l!=null)}return n},getPropFn(e){let t=e.replace("this.","");return function(){return ce.getProp(this,t)}},___CONTENT_META___(){},hasProp(e,t){return ce.hasPropChain(e,t.split("."))},hasPropChain(e,t){return ce.getPropChain(e,t)!==void 0},___INVOCATION___(){},execProp(e,t,r){return ce.execPropChain(e,t.split("."),r)},execPropChain(e,t,r){if(t.length===0)return;let o=e;for(let n=0;n<t.length;n++){let i=t[n];if(!o||!o[i])return!1;if(n===t.length-1)return Array.isArray(r)?o[i](...r):o[i](r);o=o[i]}},execProps(e,t,r=[]){let o=typeof t=="string"?ce.propStrToPropArrs(t):t,n=o.slice(-1);o=o.slice(0,-1);let i=ce.getProps(e,o),s=Ae.wrapIfBare(r);for(let a of i)for(let l of n)a[l]?.(...s)},___HELPERS___(){},propStrToPropArrs(e){return e.split(".").map(r=>r.split(/[()]/).filter(Boolean).map(i=>i.split("|")).reduce((i,s)=>i.reduce((a,l)=>[...a,...s.map(c=>l+c)],[])))},___ITERATION___(){},forEachProp(e,t,r){let o;typeof t=="string"?o=ce.propStrToPropArrs(t):o=t;let n=o.at(-1);o=o.slice(0,-1);let i=ce.getProps(e,o);for(let s of i)for(let a of n)r(s[a],a,s)},___MUTATION___(){},setProps(e,t,r,o=!1){r=Ae.wrapIfBare(r),r.length===0&&(r=[r]);let n;typeof t=="string"?n=ce.propStrToPropArrs(t):n=t;let i=n.at(-1);n=n.slice(0,-1);let s=ce.getProps(e,n,o),a=0;for(let l of s)for(let c of i)l[c]=r[a++%r.length]}},er=ce;var pn=er,Fp={defineBoolProp(e,t,r,o){let n="_"+t,i,s;switch(typeof r){case"boolean":i=r;break;case"function":s=r;break;case"string":s=pn.getPropFn(r);break}Object.defineProperties(e.prototype,{[t]:{get(){return this[n]===void 0?i===void 0?s?.call(this):i:this[n]},set(a){if(typeof a!="boolean")throw`${e.name}.${t} must be a boolean.`;this[n]=a,o?.call(this,a,t)}}})},defineEnumProp(e,t,r,o,n){let i="_"+t,s,a;switch(typeof r){case"boolean":s=r;break;case"string":s=r;break;case"function":a=r;break}Object.defineProperties(e.prototype,{[t]:{get(){return this[i]===void 0?s===void 0?a?.call(this):s:this[i]},set(l){if(!o.includes(l))throw`${l} is not a valid value for ${e.name}.${t}.`;this[i]=l,n&&n.call(this,l,t)}}})},defineNumberProp(e,t,r,o,n,i){let s="_"+t,a,l;switch(typeof r){case"number":a=r;break;case"function":l=r;break;case"string":l=pn.getPropFn(r);break}let c,f;switch(typeof o){case"number":c=o;break;case"function":f=o;break;case"string":f=pn.getPropFn(o);break}let u,d;switch(typeof n){case"number":u=n;break;case"function":d=n;break;case"string":d=pn.getPropFn(n);break}Object.defineProperties(e.prototype,{[t]:{get(){return this[s]===void 0?a===void 0?l?.call(this):a:this[s]},set(p){if(isNaN(p))throw`${e.name}.${t} must be a number.`;this[s]=p=W.clamp(p,c===void 0?f.call(this):c,u===void 0?d.call(this):u),i&&i.call(this,p,t)}}})}},Dl=Fp;function Dp(e){return{type:"string",values:[...new Set(e)].sort()}}function Hp(e,t){let r=[...new Set(e.map(n=>n.length))].sort(),o;if(t){let n=mn(e.flat());o=n.types||[n]}else o=[...new Set(e.map(n=>JSON.stringify(mn(n))))].map(n=>JSON.parse(n));return{type:"array",lengths:r,types:o}}function jp(e){let t={},r={};for(let o of e)for(let n of Object.keys(o))n in r||(r[n]=[]),r[n].push(o[n]);for(let o of Object.keys(r))t[o]=mn(r[o]),t[o].required=r[o].length===e.length;return{type:"object",props:t}}function mn(e,t=!0){if(e.length===0)return{type:"empty"};let r=e.filter(u=>typeof u=="string"),o=e.filter(u=>typeof u=="object"&&!Array.isArray(u)),n=e.filter(u=>Array.isArray(u)),i=e.filter(u=>typeof u!="string"&&typeof u!="object"),s=r.length>0?Dp(r):void 0,a=o.length>0?jp(o):void 0,l=n.length>0?Hp(n,t):void 0,c=i.length>0?{type:"other",values:i}:void 0,f=[s,l,a,c].filter(u=>u!==void 0);return f.length===1?f[0]:{type:"mixed",types:f}}var Hl=mn;var ue={buildType:Hl,___CONTENT_META___(){},areEqual(e,t){return JSON.stringify(e)===JSON.stringify(t)},deepEqual(e,t){if(e===t)return!0;
4if(e==null||t==null)return e==t;if(typeof e!=typeof t)return!1;if(typeof e=="number"&&typeof t=="number")return Number.isNaN(e)&&Number.isNaN(t)?!0:e===t;if(Array.isArray(e)&&Array.isArray(t))return e.length!==t.length?!1:e.every((r,o)=>ue.deepEqual(r,t[o]));if(typeof e=="object"&&typeof t=="object"){let r=e,o=t,n=Object.keys(r),i=Object.keys(o);return n.length!==i.length?!1:n.every(s=>ue.deepEqual(r[s],o[s]))}return!1},getClass(e){return e?.constructor?.name},getKeyByValue(e,t){let r=e;for(let o in r)if(r[o]===t)return o},isA(e,t){let r=t.constructor.name==="RegExp";r||(t=Array.isArray(t)?t:[t]);function o(n){return Object.prototype.toString.call(n).slice(8,-1)}for(;e;){if(r&&(t.test(e.constructor.name)||t.test(o(e)))||!r&&(t.includes(e.constructor.name)||t.includes(o(e))))return e.constructor.name;e=Object.getPrototypeOf(e)}},isGetter(e,t){return e==null?!1:!!Object.getOwnPropertyDescriptor(e,t)?.get},isSetter(e,t){return e==null?!1:!!Object.getOwnPropertyDescriptor(e,t)?.set},sizeOf(e){let t=0;for(let r in e)Object.hasOwnProperty.call(e,r)&&t++;return t},sizeOfWhere(e,t){let r=0;for(let o in e)Object.hasOwnProperty.call(e,o)&&t(e[o],o)&&r++;return r},___CREATE___(){},deepCopy(e){return e&&JSON.parse(JSON.stringify(e))},randomObject(e){let t={},r=[t];for(let n=0;n<e;n++){let i=o(),s=r[Math.floor(Math.random()*r.length)];if(Array.isArray(s))s.push(i);else{let a=Math.random().toString(36).slice(2,8);s[a]=i}i&&typeof i=="object"&&r.push(i)}return t;function o(){switch(Math.floor(Math.random()*6)){case 0:return;case 1:return;case 2:return Math.random();case 3:return Math.random().toString(36).slice(2,12);case 4:return[];case 5:return{};default:return}}},___MUTATE___addition___(){},addToObject(e,t,r){if(t.includes(".")){let o=t.split("."),n=o.shift();e[n]||(e[n]={}),ue.addToObject(e[n],o.join("."),r)}else e[t]=r},deepAssign(e,t){for(let r of Object.getOwnPropertyNames(t))typeof t[r]=="object"&&t[r]!==null?(e[r]||(e[r]={}),ue.deepAssign(e[r],t[r])):e[r]=t[r]},___MUTATE___composition___(){},assign(e,t,r){let o=e,n=t;for(let i of r)o[i]=n[i];return e},assignPrototype(e,t){let r=Object.getOwnPropertyDescriptors(t.prototype);delete r.constructor,Object.defineProperties(e.prototype,r)},assignWithoutOverwrite(e,t,r){let o=e,n=t;for(let i in n)o[i]===void 0&&(!r||!r.includes(i))&&(o[i]=n[i]);return e},copy(e,t={}){return Object.assign(t,e)},deepCopyInPlace(e,t){if(t){if(Array.isArray(t)&&Array.isArray(e)){t.length=0;for(let[r,o]of e.entries())t[r]=ue.deepCopy(o)}else if(typeof t=="object"){ue.clear(t);let r=t;ue.forEach(e,(o,n)=>r[n]=ue.deepCopy(o))}}},___MUTATE___removal___(){},clear(e){for(let t in e)delete e[t]},removeNullishAndEmpty(e){for(let[t,r]of Object.entries(e))r&&typeof r=="object"&&Object.keys(r).length>0&&ue.removeNullishAndEmpty(r),(r===""||r===void 0||r===null||typeof r=="object"&&Object.keys(r).length===0)&&delete e[t]},removeValueFromObj(e,t){for(let[r,o]of Object.entries(e))o===t&&delete e[r],typeof o=="object"&&ue.removeValueFromObj(o,t)},___SHORTHANDS___(){},e:Object.entries.bind(Object),k:Object.keys.bind(Object),v:Object.values.bind(Object),fe:Object.fromEntries.bind(Object),___TRANSFORM___(){},mapKV(e,t){return Object.fromEntries(Object.entries(e).map(([r,o])=>[r,t(r,o)]))},map(e,t){let r={};return ue.forEach(e,(o,n)=>{r[n]=t(o,n,e)}),r},flattenPrototypeChain(e,t=!0){let r=[e],o=Object.getPrototypeOf(e);for(;o;)r.push(o),o=Object.getPrototypeOf(o);r.reverse(),t&&r.shift();let n=new Set;for(let s of r)for(let a of Object.getOwnPropertyNames(s))n.add(a);t&&n.delete("constructor");let i={};for(let s of n)i[s]=e[s];return i},___TRANSFORM___removal(){},filterKV(e,t){return Object.fromEntries(Object.entries(e).filter(([r,o])=>t(r,o)))},filter(e,t){let r={};for(let o in e){let n=e[o];t(n,o)&&(r[o]=n)}return r},___TRANSFORM___structure___(){},flattenObjectProperties(e){let t={};for(let[r,o]of Object.entries(e))if(typeof o!="object"||o===null)t[r]=o;else for(let[n,i]of Object.entries(ue.flattenObjectProperties(o)))t[`${r}.${n}`]=i;return t},___UTIL___iteration___(){},forEach(e,t){if(typeof e=="object")for(let r in e)t(e[r],r,e);else e&&[...e].forEach(t)}
4,forEachReverse(e,t){typeof e=="string"?ue.forEachReverse([...e],t):Array.isArray(e)||(e=Object.values(e));for(let r=e.length-1;r>=0;r--)t(e[r])}},Mt=ue;var Ni={basenameOf(e){let t=Ni.trimTrailingSlash(e);return t.slice(t.lastIndexOf("/")+1)},dirnameOf(e){let t=Ni.trimTrailingSlash(e),r=t.lastIndexOf("/");return r<=0?"":t.slice(0,r)},getFilename(e){return e.replace(/.*\//,"")},trimTrailingSlash(e){return e.endsWith("/")?e.slice(0,-1):e},ensureTrailingSlash(e){return e.endsWith("/")?e:`${e}/`},normalizeAbsolutePath(e){let t=[];for(let o of e.split("/"))if(!(o===""||o===".")){if(o===".."){t.pop();continue}t.push(o)}let r=e.endsWith("/")&&t.length>0?"/":"";return`/${t.join("/")}${r}`},joinPaths(...e){return e.filter(Boolean).join("/").replaceAll(/\/+/g,"/")}},jl=Ni;var hn=ao,qr={____AGG____(){},lerp(e,t){let r=e[1][0]-e[0][0];return r===0?(e[0][1]+e[1][1])/2:e[0][1]+(e[1][1]-e[0][1])*(t-e[0][0])/r},smoothedPoint(e,t,r,o){let n=t[0]-e[0],i=e[0]+n*r,s=t[1]-e[1],a=e[1]+s*o;return[i,a]},pointDistance(e,t){let r=t[0]-e[0],o=t[1]-e[1];return Math.hypot(r,o)},slopeRadians(e,t){let r=t[1]-e[1],o=t[0]-e[0];return o===0?r===0?0:r>0?Math.PI/2:r<0?-Math.PI/2:Number.NaN:Math.atan(r/o)},____GET_V____(){},getValueAtTime(e,t,r){if(e.length===0)return;if(t<e[0][0])return e[0][1];let o=1;for(;e[o]&&e[o][0]<t;)o++;let n=e[o-1],i=e[o];if(!i||r==="step")return n[1];let s=n[0],a=i[0],l=n[1],c=i[1];if(t===a)return c;let f=(t-s)/Math.max(a-s,1e-4);switch(r){case"linear":return l+(c-l)*f;case"exponential":{let u=Math.max(l,1e-4);return u*Math.pow(c/u,f)}default:return hn.mapValExp(t,i[2],s,a,l,c)}},getValAtTImplicit(e,t,r="linear",o=0,n=1){if(e.length<2||t<o)return e[0];let i=e.length-1,s=1,a=hn.mapVal(s-1,0,i,o,n),l=hn.mapVal(s,0,i,o,n);for(;e[s]!==void 0&&l<t;)s++,a=l,l=hn.mapVal(s,0,i,o,n);let c=e[s-1],f=e[s];if(f===void 0||r==="step")return c;let u=(t-a)/Math.max(l-a,1e-4);if(r==="linear")return c+(f-c)*u;if(r==="exponential"){let d=Math.max(c,1e-4);return d*Math.pow(f/d,u)}else throw new Error(`Ramp type "${r}" not valid for this function`)},____GET_IDX____(){},getPtIdxAtT(e,t){return Math.abs(Ae.binarySearch(e,t,(r,o)=>r[0]-o))},getPtIdxAtT_2(e,t){let r=Ae.binarySearch(e,t,(o,n)=>o[0]-n);if(!(r<0||r===0&&!(e[0]&&e[0][0]===t)))return r},____GET_PT____(){},getPtAtT(e,t){let r=qr.getPtIdxAtT(e,t);if(!(!e[r]||e[r][0]!==t)){for(;e[r+1]?.[0]===t;)r++;return e[r]}},getPtLeftOfT(e,t){let r=qr.getPtIdxAtT(e,t)-1;for(;e[r]?.[0]===t;)r--;return e[r]},getPtRightOfT(e,t){let r=qr.getPtIdxAtT(e,t);for(;e[r]?.[0]===t;)r++;if(e[r]){let o=e[r]?.[0];for(;e[r+1]?.[0]===o;)r++}return e[r]},getPointNearestTo(e,t){let r,o=Number.POSITIVE_INFINITY;for(let n of e){let i=Math.abs(n[0]-t);i<o&&(o=i,r=n)}return r},____TRANSFORM_COLL____(){},shiftT(e,t){for(let r=e.length-1;r>=0;r--)e[r][0]+=t;return e},getTruncatedPointColl(e,t,r,o){r=r-t;let n=e.length-1,i=n;for(;i>=0&&r<e[i][0];)i--;if(i===n)return e;let s=[r,qr.getValueAtTime(e,r,o)];return e=e.slice(0,i+1),e.push(s),e}},Xl=qr;var Be={jpPunctuation:[12288,12351,7/4],hiragana:[12352,12447,7/4],katakana:[12448,12543,7/4],kanji:[19968,40879,7/4],rareKanji:[13312,19903,7/4],fullWidthRoman:[65280,65376,7/4],halfWidthKatakana:[65377,65503,7/8],fullWidthRoman2:[65504,65519,7/4]};function tt(e,t){let r=e.codePointAt(0);return r>=t[0]&&r<=t[1]}var Ue={reverse(e){return[...e].reverse().join("")},intStringCompare(e,t){let r=Number.parseInt(e.match(/\d+/)?.[0]||""),o=Number.parseInt(t.match(/\d+/)?.[0]||"");return Number.isNaN(o)?-1:Number.isNaN(r)?1:r-o},isJapaneseCharacter(e){return tt(e,Be.jpPunctuation)||tt(e,Be.hiragana)||tt(e,Be.katakana)||tt(e,Be.kanji)||tt(e,Be.rareKanji)||tt(e,Be.fullWidthRoman)||tt(e,Be.halfWidthKatakana)||tt(e,Be.fullWidthRoman2)},getCharWidth(e){let t=e.codePointAt(0);for(let r of Object.values(Be))if(t>=r[0]&&t<=r[1])return r[2]||1;return 1},getStringWidth(e){return Math.round([...e].reduce((t,r)=>t+Ue.getCharWidth(r),0))},alignText(e,t,r){if(Array.isArray(t)){for(let h of t)e=Ue.alignText(e,h,r);let d=`[${t.map(h=>h.replace("]",String.raw`\]`)).join("")}]`,p=new RegExp(`(${d})( +)(${d})`,"g");return e=e.replace(p,"$1$3"),e.replaceAll(/ +\n/g,`
5`)}let o=e.split(`
6`),n=u=>Ue.countInIgnoreStrings(u,t)>0&&(!r||r(u)),i=Ae.getMatchingIndices(o,n),s=o.filter(u=>n(u)).map(u=>Ue.splitIgnoreStrings(u,t)),a=s.map(u=>u.length-1);
6if(new Set(a).size!==1)throw console.log(s),new Error("not implemented: handling of lines with different number of separators");let c=s[0].map((u,d)=>s.map(p=>p[d])).map(u=>Math.max(...u.map(d=>Ue.getStringWidth(d))));for(let u of s)for(let d=0;d<u.length;d++)u[d]=Ue.padWidth(u[d],c[d]," ");let f=s.map(u=>u.join(t));for(let[u,d]of i.entries())o[d]=f[u];return o.join(`
7`)},padWidth(e,t,r=" "){let o=Ue.getStringWidth(e);if(o>=t)return e;let n=t-o,i=r.repeat(n);return e+i},toCamelCase(e){return e.trim().replaceAll(/^\w|[A-Z]|\b\w/g,(t,r)=>r===0?t.toLowerCase():t.toUpperCase()).replaceAll(/\s+/g,"")},toKebabCase(e){return e.trim().replaceAll(/([a-z])([A-Z])/g,"$1-$2").replaceAll(/(\s|_)+/g,"-").toLowerCase()},toSpaceCase(e,t=!0){let r=e.trim().replaceAll(/([a-z])([A-Z])/g,"$1 $2").replaceAll(/[\_\-]+/g," ");return t&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r},toSentenceCase(e){return Ue.toSpaceCase(e,!0)},toTitleCase(e){return this.toSpaceCase(e).split(" ").map(t=>t.charAt(0).toUpperCase()+t.slice(1)).join(" ")},plural(e,t,r){return t===1?e:r??`${e}s`},sliceLines(e,t,r){return e.split(`
8`).slice(t,r).join(`
9`)},joinToRegExp(...e){return e=e.map(t=>t instanceof RegExp?t.source:t),new RegExp(e.join(""))},countIn(e,t){let r=0;for(let o of e)o===t&&r++;return r},countInIgnoreStrings(e,t){let r=0,o=!1;for(let n of e)n==='"'?o=!o:!o&&n===t&&r++;return r},dedent(e){let t=e.split(`
10`),r=t.filter(n=>n.trim()!==""),o=Number.POSITIVE_INFINITY;for(let n of r)o=Math.min(o,n.match(/^\s*/)[0].length);for(let[n,i]of Object.entries(t))t[Number(n)]=i.slice(o);return t[0]===""&&t.splice(0,1),t.at(-1)?.trim()===""&&t.splice(-1,1),t.join(`
11`)},splitIgnoreStrings(e,t){let r=[],o="",n=!1;for(let i of e)!n&&(i===t||t.test&&t.test(i))?(r.push(o),o=""):(o+=i,i==='"'&&(n=!n));return r.push(o),r}},gn=Ue;var Xp={pctStr(e,t=2){return Number.isNaN(Number(e))?"N/A":e.toFixed(t)+" %"},percentReplacer(e,t){return typeof t=="number"&&(t=t.toFixed(2)),e==="total"&&(t+="%"),t},toFixedReplacer(e,t,r){return typeof r=="number"&&(r=r.toFixed(e)),r},stringifyWithSingleLineArrays(e){return JSON.stringify(e,void 0,2).replaceAll(/\[\n\s+"/g,'["').replaceAll(/",\n\s+"/g,'", "').replaceAll(/"\n\s*]/g,'"]').replaceAll(`]
12`,`],
13`)}},ql=Xp;var qp=function(e){let t=this,r=Up();t.next=function(){let o=2091639*t.s0+t.c*23283064365386963e-26;return t.s0=t.s1,t.s1=t.s2,t.s2=o-(t.c=o|0)},t.c=1,t.s0=r(" "),t.s1=r(" "),t.s2=r(" "),t.s0-=r(e),t.s0<0&&(t.s0+=1),t.s1-=r(e),t.s1<0&&(t.s1+=1),t.s2-=r(e),t.s2<0&&(t.s2+=1)};function Bl(e,t){return t.c=e.c,t.s0=e.s0,t.s1=e.s1,t.s2=e.s2,t}function Bp(e,t){let r=new qp(e),o=t&&t.state,n=r.next;return n.int32=function(){return r.next()*4294967296|0},n.double=function(){return n()+(n()*2097152|0)*11102230246251565e-32},n.quick=n,o&&(typeof o=="object"&&Bl(o,r),n.state=function(){return Bl(r,{})}),n}function Up(){let e=4022871197;return function(t){let r=String(t);for(let o=0;o<r.length;o++){e+=r.charCodeAt(o);let n=.02519603282416938*e;e=n>>>0,n-=e,n*=e,e=n>>>0,n-=e,e+=n*4294967296}return(e>>>0)*23283064365386963e-26}}var Ii=Bp;var Wp=er,Ul={classic:{symmetrize:!1,params:{a:"Strength"},constantSetup:(e,t)=>e.a=t*1e3,fn:(e,t)=>(10+t.a)*e/(10+t.a*Math.abs(e))},softSat:{symmetrize:!0,params:{a:"Thresh"},constantSetup:(e,t)=>e.a=t,fn:(e,t)=>e<t.a?e:e>1?(t.a+1)/2:t.a+(e-t.a)/(1+((e-t.a)/(1-t.a))**2)},bramDJ2:{params:{a:"Slope"},constantSetup:(e,t)=>e.a=t**3*1e3,fn:(e,t)=>e*(Math.abs(e)+t.a)/(e**2+(t.a-1)*Math.abs(e)+1)},diginoise:{params:{a:"Strength"},constantSetup:(e,t)=>e.a=t,fn:(e,t)=>e+t.a*(t.rng()>.5?-1:1)},angle:{params:{a:"Angle",b:"Length",c:"Knee"},paramOpts:{a:{wrap:!0}},symmetrize:!0,constantSetup:(e,t,r,o)=>{let n=r*10,i=o,s=-Fi/2+t*Fi;e.innerSlope=Math.tan(s),e.x1=Math.min(1-1e-5,Math.abs(Math.cos(s)*n/2)),e.y1=Math.tan(s)*e.x1,e.outerSlope=(1-e.y1)/(1-e.x1);let a=Math.atan2(e.outerSlope,1);e.x0=e.x1-Math.cos(s)*i,e.y0=e.y1-Math.sin(s)*i,e.x2=e.x1+Math.cos(a)*i,e.y2=e.y1+Math.sin(a)*i;{let l=e.x0-2*e.x1+e.x2,c=-2*e.x0+2*e.x1,f=e.x0;e.bezA=l,e.bezH=-c/(2*l),e.bezK=f-c**2/(4*l),e.bezSign=Math.abs(e.outerSlope)>Math.abs(e.innerSlope)?-1:1}},fn:(e,t)=>{let r;if(Math.abs(e)<1e-15)r=0;else if(e<t.x0||t.innerSlope===t.outerSlope)r=t.innerSlope*e;else if(e<t.x2){let o=Math.sqrt((e-t.bezK)/t.bezA)*t.bezSign+t.bezH;r=(1-o)**2*t.y0+2*(1-o)*o*t.y1+o**2*t.y2}else r=t.outerSlope*e+1-t.outerSlope;return r}},sine:{params:{b:"StretchX"},paramOpts:{b:{defaultValue:.5}},constantSetup:(e,t,r)=>{e.stretchX=(r+.5)**10},fn:(e,t)=>Math.sin(e*Fi*t.stretchX)},ramp:{params:{a:"Width",b:"StretchX"},paramOpts:{a:{defaultValue:.5},b:{defaultValue:.5,displaySubFn:"valFns.b"}},valFns:{b:e=>(e+.5)**10},constantSetup(e,t,r){e.width=t,e.stretchX=this.valFns.b(r)},fn(e,t){e=W.wrapFloat(e*t.stretchX,-1,1);let r;
13return e<-t.width?r=-(e+1)/(1-t.width):e<t.width?r=e/t.width:r=-(e-1)/(1-t.width),r}},flat:{params:{a:"Width",b:"StretchX"},paramOpts:{a:{defaultValue:.5},b:{defaultValue:.5,displaySubFn:"valFns.b"}},valFns:{b:e=>(e+.5)**10},constantSetup(e,t,r){e.width=t,e.stretchX=this.valFns.b(r)},fn(e,t){if(Math.abs(e)<1e-15)return 0;e=W.wrapFloat(e*t.stretchX*.5,0,1);let r;return Math.abs(e)<1e-15?r=0:e>t.width?r=-1:r=1,r}},crackle:{params:{a:"Chance",b:"Amp",c:"Width"},paramOpts:{a:{defaultValue:0},c:{defaultValue:0}},constantSetup(e,t,r,o){e.chance=t,e.amp=r,e.width=o},fn(e,t){if(t.holdFrameDur){if(t.holdSign===Math.sign(e))return t.holdFrameDur--,t.holdVal;t.holdFrameDur=0}return t.rng()<t.chance?(t.holdFrameDur=Math.floor(t.rng()*t.width*t.res*4),t.holdSign=Math.sign(e),t.holdVal=e+t.amp*(t.rng()-.5)*2,t.holdVal):e}},staircase:{symmetrize:!0,params:{a:"Steps"},paramOpts:{a:{defaultValue:.5}},constantSetup:(e,t)=>{e.a=Math.max(1,Math.round(2+t*254))},fn:(e,t)=>{let r=1/t.a;return r*Math.floor(e/r+.5)}}},Kp={curveFns:Ul,initTvCurves(){Mt.forEach(Ul,e=>{Mt.forEach(e.paramOpts,t=>{Mt.forEach(t,(r,o)=>{/^valFns/.test(r)&&(t[o]=Wp.getProp(e,r))})})})},getCurve(e,t,r,o,n,i=1,s=1,a,l,c){let f=e.length,u=Vp(f),d=t.fn,p=t.symmetrize;Mt.clear(tr),tr.res=f,t.constantSetup(tr,r,o,n),tr.rng=Ii(a);let h=1-i;if(p){let b=Math.floor(f/2),m=-1+b*u;for(let _=b;_<f;_++)e[_]=i*s*d(m,tr)+h*m,m+=u;for(let _=0;_<b;_++)e[_]=-e[f-_-1]}else{let b=-1;for(let m=0;m<f;m++)e[m]=i*s*d(b,tr)+h*b,b+=u}if(l){let b=Ii(a+"2"),m=l**3;for(let _=0;_<f;_++)e[_]+=m*(b()-.5)*2}switch(c){case"clip":{for(let b=0;b<f;b++)e[b]=W.clamp(e[b],-1,1);break}case"foldback":{for(let b=0;b<f;b++)e[b]=W.pongFloat(e[b],-1,1);break}case"compress":{let b=e.reduce((m,_)=>Math.max(Math.abs(_),Math.abs(m)),0);if(b>1)for(let m=0;m<f;m++)e[m]/=b;break}case"wrap":{for(let b=0;b<f;b++)e[b]=W.wrapFloat(e[b],-1,1);break}}}},tr={},Fi=Math.PI;function Vp(e){return 2/(e-1)}var Wl=Kp;var Gp=0,Yp={getNextId(){return++Gp},getNextUuid(){return Jp()}},Q=[];for(let e=0;e<256;e++)Q[e]=(e<16?"0":"")+e.toString(16);var Br=0;function Jp(){Br++;let e=Math.random()*4294967295|0,t=Math.random()*4294967295|0,r=Math.random()*4294967295|0;return(Q[Br>>24&255]+Q[Br>>16&255]+Q[Br>>8&255]+Q[Br&255]+"-"+Q[e&255]+Q[e>>8&255]+"-"+Q[e>>16&15|64]+Q[e>>24&255]+"-"+Q[t&63|128]+Q[t>>8&255]+"-"+Q[t>>16&255]+Q[t>>24&255]+Q[r&255]+Q[r>>8&255]+Q[r>>16&255]+Q[r>>24&255]).toUpperCase()}var Cw=new Uint8Array(10);var Kl=Yp;var Zp={...Ae,...Nl,...Il,idGen:Kl,...W,...wt,...Fl,...er,...Dl,...Mt,...jl,...Xl,...gn,...ql,...Wl},Vl=Zp;var Di={drawBorder(e,t,r){let o=e.getContext("2d");if(!o){console.error("drawBorder called on canvas with no 2d context.");return}let{width:n,height:i}=e,s=t;return r&&(o.fillStyle=r),o.fillRect(0,0,n,s),o.fillRect(0,i-s,n,s),o.fillRect(0,s,s,i-2*s),o.fillRect(n-s,s,s,i-2*s),e},drawArcFancy(e,t,r,o,n,i,s,a,l,c,f,u,d,p,h,b){let m=e.getContext("2d");if(!m){console.error("drawArc called on canvas with no 2d context.");return}let _=-c/2,T=c/2,w=t+i/2,S=r+s/2,z=c/d,A=(_+p)*Math.PI/180,F=(T+p)*Math.PI/180;if(Di.drawArc(m,w,S,a,l,A,F),c&&h&&b){m.globalCompositeOperation="destination-over";let D=l-h;h>l&&(D=0);let P=m.createRadialGradient(w,S,D,w,S,l);P.addColorStop(0,"rgba(0, 0, 0, 0)"),P.addColorStop(1,"rgba(0, 0, 0, "+b+")"),m.fillStyle=P,m.beginPath(),m.arc(w,S,l+.5,0,Math.PI*2,!1),m.closePath(),m.fill();let L=a+h,$=m.createRadialGradient(w,S,a,w,S,L);$.addColorStop(0,"rgba(0, 0, 0, "+b+")"),$.addColorStop(1,"rgba(0, 0, 0, 0)"),m.fillStyle=$,m.beginPath(),m.arc(w,S,L,0,Math.PI*2,!1),m.arc(w,S,a-1,0,Math.PI*2,!0),m.closePath(),m.fill(),c<360&&(m.globalCompositeOperation="destination-out",m.fillStyle="#000",m.beginPath(),m.arc(w,S,L+2,F,A,!1),m.lineTo(w,S),m.closePath(),m.fill())}if(m.globalCompositeOperation="source-atop",n&&n!==o){let D=jr.hexToRgb(o),P=jr.hexToRgb(n),L=[D.r*255,D.g*255,D.b*255],$=[P.r*255,P.g*255,P.b*255];for(let O=0;O<d;O++){let ae=O*z+(_+p),Y=Math.trunc(($[0]-L[0])*O/(d-1)+L[0]),Ke=Math.trunc(($[1]-L[1])*O/(d-1)+L[1]),Ct=Math.trunc(($[2]-L[2])*O/(d-1)+L[2]);m.fillStyle="rgb("+Y+", "+Ke+", "+Ct+")",m.strokeStyle=m.fillStyle,m.beginPath(),m.moveTo(w,S);let st=w+a*10*Math.cos(ae*Math.PI/180),at=S+a*10*Math.sin(ae*Math.PI/180),Ve=w+a*10*Math.cos((ae+z)*Math.PI/180),cr=S+a*10*Math.sin((ae+z)*Math.PI/180);m.lineTo(st,at),m.lineTo(Ve,cr),m.closePath(),m.fill(),m.stroke()}}else A=(_+f+p)*Math.PI/180,F=(_+u+p)*Math.PI/180,m.fillStyle=o,Di.drawArc(m,w,S,a,l,A,F)},drawArc(e,t,r,o,n,i,s){e.globalCompositeOperation="source-over",e.beginPath(),e.arc(t,r,o,i,s,!1),e.lineTo(t,r),e.closePath(),e.fill(),e.globalCompositeOperation="destination-out",e.beginPath(),n>o&&(n=o),e.arc(t,r,n,0,Math.PI*2,!1),e.lineTo(t,r),e.closePath(),e.fill()}},Gl=Di;var Yl="_last_build_time",Qp="data-app-bundle",em=["localhost","127.0.0.1","[::1]",""],Jl={async fetchBuildInfo(e){let t=e??document.querySelector(`script[${Qp}]`)?.src;if(!t)return null;let r;try{r=await fetch(t,{method:"HEAD",cache:"no-store"})}catch{return null}if(!r.ok||r.redirected)return null;let o=r.headers.get("Last-Modified");if(!o)return null;let n=new Date(o);return Number.isNaN(n.getTime())?null:{time:n,type:em.includes(location.hostname)?"dev":"prod"}},async checkBuildUpdate(e={}){let{onNew:t,onNotUpdated:r,onUnavailable:o}=e,n=e.buildInfo??await Jl.fetchBuildInfo();if(!n){o?.();return}if(n.type==="prod")return;let i=localStorage.getItem(Yl),s=n.time.getTime(),a=n.time.toLocaleTimeString();if(i===s.toString()){let l=`Build not updated (last was at ${a})`;console.warn(l),r?.(l)}else{let l=`New build loaded (built at ${a})`;console.log(l),t?.(l)}localStorage.setItem(Yl,s.toString())}},Zl=Jl;var Ql="croian-util__overlay",Hi=`.${Ql}`,X={$$(e){return e[0]==="#"?document.getElementById(e.slice(1)):[...document.querySelectorAll(e)]},$h(e,t=document){return t.querySelector(e)},$ha(e,t=document){return[...t.querySelectorAll(e)]},$$text(e,t=document){let r=[...t.querySelectorAll("*")];return typeof e=="string"?r.filter(o=>o.textContent?.includes(e)):r.filter(o=>e.test(o.textContent??""))},toggleFullscreen(e=document.documentElement){document.fullscreenElement===e?document.exitFullscreen().catch(t=>{console.error(`Error attempting to exit fullscreen: ${t.message}`)}):e.requestFullscreen().catch(t=>{console.error(`Error attempting to enable fullscreen: ${t.message}`)})},loadStylesheet(e){let t=document.createElement("link");t.rel="stylesheet",t.type="text/css",t.href=e,document.head.append(t)},getCssRuleOrRules(e){let t=[];for(let r of document.styleSheets)try{for(let o of r.cssRules)(o.selectorText===e||e instanceof RegExp&&e.test(o.selectorText))&&t.push(o)}catch(o){console.warn(`Could not get CSS rule from sheet from ${r.href}`,o)}return t.length===1?t[0]:t.length>1?t:void 0},modifyCssRule(e,t,r=!0,o=!0){let n=!1;for(let i of document.styleSheets)try{for(let s of i.cssRules)if(s.selectorText===e||e instanceof RegExp&&e.test(s.selectorText)){n=!0;for(let[a,l]of Object.entries(t))s.style.setProperty(a,l);if(!r)return}}catch(s){console.warn(`Could not modify CSS rule for sheet from ${i.href}`,s)}!n&&o&&X.addCssRule(typeof e=="string"?e:e.source,t)},addCssRule(e,t){let r=document.querySelector("style");r||(r=document.createElement("style"),document.head.append(r)),r.textContent+=`
14${e} {
15  ${Object.entries(t).map(([o,n])=>`${gn.toKebabCase(o)}: ${n};`).join(`
16  `)}
17}
18`},style(e){return globalThis.getComputedStyle(e)},addToStyle(e,t){for(let[r,o]of Object.entries(t))typeof o=="str
18ing"&&(r.startsWith("--")?e.style.setProperty(r,o):r in e.style?e.style[r]=o:e.style.setProperty(r,o))},px(e,t){let r=X.style(e).getPropertyValue(t);return Number.parseFloat(r==="auto"?"0":r)},setPx(e,t,r){e.style.setProperty(t,`${r}px`)},setPct(e,t,r){e.style.setProperty(t,`${r}%`)},randomPx(e){return{x:Math.floor(Math.random()*X.px(e,"width")),y:Math.floor(Math.random()*X.px(e,"height"))}},center(e){let t=e.getBoundingClientRect();return{x:t.left+t.width/2,y:t.top+t.height/2}},setCenter(e,t){if(Array.isArray(e)){for(let o of e)X.setCenter(o,t);return}let r=e.getBoundingClientRect();X.setPx(e,"left",t.x-r.width/2),X.setPx(e,"top",t.y-r.height/2)},contains(e,t){let r=e.getBoundingClientRect();return r.left<=t.x&&t.x<=r.right&&r.top<=t.y&&t.y<=r.bottom},anchorTo(e,t,{side:r="bottom",align:o="start",margin:n=8}={}){X.addToStyle(e,{position:"fixed"});let i=()=>{let s=t.getBoundingClientRect(),{width:a,height:l}=e.getBoundingClientRect(),c=r==="top"||r==="bottom",f=c?l:a,u=(c?s.top:s.left)-n-f,d=(c?s.bottom:s.right)+n,p=r==="top"||r==="left",h=c?globalThis.innerHeight:globalThis.innerWidth,m=(p?u>=n:d+f+n<=h)===p?u:d,_=c?s.left:s.top,T=c?s.width:s.height,w=c?a:l,S=o==="start"?_:o==="end"?_+T-w:_+(T-w)/2,z=c?S:m,A=c?m:S;X.addToStyle(e,{left:W.clamp(z,n,globalThis.innerWidth-a-n)+"px",top:W.clamp(A,n,globalThis.innerHeight-l-n)+"px"})};return i(),globalThis.addEventListener("scroll",i,!0),globalThis.addEventListener("resize",i),()=>{globalThis.removeEventListener("scroll",i,!0),globalThis.removeEventListener("resize",i)}},el(e,t,r,o,n){let i=document.createElement(e);if(t&&(Array.isArray(t)?i.classList.add(...t):i.classList.add(t)),r&&(i.id=r),o&&X.addToStyle(i,o),n)for(let s of n)i.append(typeof s=="string"?document.createTextNode(s):s);return i},addDot(e,t,r=1,o="red",n){let i=X.square(r,o);return X.display(i,e,t,0,n),i},square(e=1,t="red"){return X.el("div","square",void 0,{position:"absolute",width:`${e}px`,height:`${e}px`,backgroundColor:t})},display(e,t,r,o=0,n,i=!0){if(document.body.append(e),i){let s=e.getBoundingClientRect();t-=(s.width-1)/2,r-=(s.height-1)/2}Object.assign(e.style,{position:"absolute",left:`${t}px`,top:`${r}px`,zIndex:1e4+o}),n&&setTimeout(()=>{e.remove(),Object.assign(e.style,{position:"",left:"",top:"",zIndex:""})},n)},moveElement(e,t,r){let o=X.px(e,"left")+t,n=X.px(e,"top")+r;X.setPx(e,"left",o),X.setPx(e,"top",n)},circle(e,t=e-1,r="black"){let o=document.createElement("div");o.setAttribute("name","circle");let n=e-t;return Object.assign(o.style,{boxSizing:"border-box",width:`${e*2}px`,height:`${e*2}px`,borderRadius:`${e}px`,border:`${n}px solid`,borderColor:r}),o},messageOverlay(e,t,r){let o=X.el("div",Ql);o.textContent=e,document.body.append(o),t&&setTimeout(()=>o.remove(),t),r&&X.addToStyle(o,r)},removeOverlay(){let e=document.querySelector(Hi);e&&e.remove()},toggleOverlay(e,t,r){document.querySelector(Hi)?X.removeOverlay():X.messageOverlay(e,t,r)}};X.addCssRule(Hi,{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",backgroundColor:"#00000088",display:"flex",justifyContent:"center",alignItems:"center",fontSize:"40px",fontFamily:'"Helvetica Neue", Helvetica, Arial, sans-serif',color:"#aaaaaa",zIndex:"1000"});var pe=X;var Xi;document.addEventListener("mouseover",e=>Xi=e);var Wr=new Map,tm="yellow",Ur=new WeakMap;function qi(e){!(e.target instanceof HTMLElement)||!Wr.has(e.target)||(e.target.style.backgroundColor=Wr.get(e.target))}function Bi(e){e.target instanceof HTMLElement&&(Wr.has(e.target)||Wr.set(e.target,globalThis.getComputedStyle(e.target).backgroundColor),e.target.style.backgroundColor=tm)}function rm(){Xi&&Bi(Xi),document.addEventListener("mousemove",Bi),document.addEventListener("mouseout",qi)}function om(e){qi(e),Wr.clear(),document.removeEventListener("mousemove",Bi),document.removeEventListener("mouseout",qi)}var rr=new WeakMap,ji=new WeakMap,bn={adjustPx(e,t,r,o=0,n=globalThis.innerWidth){let i=pe.px(e,t)+r.movementX;pe.setPx(e,t,W.clamp(i,o,n))},_addHandle(e){if(pe.style(e).position==="static"){let n={position:"relative",top:"0",left:"0",right:"0",bottom:"0"};Object.assign(e.style,n)}let t=document.createElement("div");t.classList.add("croian-handle");let o={position:"absolute",top:"0",height:"100%",left:e.getBoundingClientRect().width+"px",width:"20px",backgroundColor:"#a88",opacity:"0.3",zIndex:"1000",cursor:"ew-resize",transform:"translate(-50%)"};return Object.assign(t.style,o),e.prepend(t),t},makeResizable(e){let t=bn._addHandle(e),r=o=>{bn.adjustPx(e,"width",o),bn.adjustPx(t,"left",o,pe.px(e,"left")+pe.px(e,"width"))};t.addEventListener("mousedown",()=>{document.addEventListener("mousemove",r),document.addEventListener("mouseup",()=>{document.removeEventListener("mousemove",r)})})},async getElementFromUserClick(e=!0){return e&&rm(),await new Promise(t=>{let r=o=>{o.preventDefault(),o.stopPropagation(),om(o),t(o.target)};document.addEventListener("click",r,{once:!0})})},makeDraggable(e,t={}){if(rr.set(e,{useDefaultMoveLogic:!0,clampToViewport:!0,autoScroll:!1,...rr.get(e),...t}),Ur.has(e))return Ur.get(e);let r=n=>{let i=rr.get(e);if(!i||i.intersectsDraggableRegion&&!i.intersectsDraggableRegion(n))return;i.onDragStart?.(n);let s=f=>{let u=rr.get(e);if(!u)return;let d=0,p=0;if(u.autoScroll&&(f.clientX<50?d=-10:f.clientX>
18globalThis.innerWidth-50&&(d=10),f.clientY<50?p=-10:f.clientY>globalThis.innerHeight-50&&(p=10),(d!==0||p!==0)&&globalThis.scrollBy(d,p)),u.useDefaultMoveLogic){let h=e.style,b=pe.px(e,"left")+f.movementX+d,m=pe.px(e,"top")+f.movementY+p,_=pe.px(e,"bottom")-f.movementY-p;if(u.clampToViewport){let T=e.offsetWidth,w=e.offsetHeight,S=document.documentElement.clientWidth,z=document.documentElement.clientHeight,A=globalThis.scrollX,F=globalThis.scrollY;if(b=Math.max(A,Math.min(A+S-T,b)),h.bottom&&h.bottom!=="auto"){let D=document.documentElement.scrollHeight,P=F+z,L=F,$=D-P,O=D-L-w;_=Math.max($,Math.min(O,_))}else m=Math.max(F,Math.min(F+z-w,m))}h.left=b+"px",h.bottom&&h.bottom!=="auto"?h.bottom=_+"px":h.top=m+"px"}u.onDrag?.(f)},a=f=>{rr.get(e)?.onDragEnd?.(f),c()},l=()=>{c()},c=()=>{globalThis.removeEventListener("mousemove",s),globalThis.removeEventListener("mouseup",a),globalThis.removeEventListener("blur",l),ji.delete(e)};globalThis.addEventListener("mousemove",s),globalThis.addEventListener("mouseup",a),globalThis.addEventListener("blur",l),ji.set(e,c)};e.addEventListener("mousedown",r);let o=()=>{e.removeEventListener("mousedown",r),ji.get(e)?.(),Ur.delete(e),rr.delete(e)};return Ur.set(e,o),o},removeDraggable(e){let t=Ur.get(e);t&&t()}};var ef=bn;var nm={async searchFonts(e){let t=await queryLocalFonts(),r=new RegExp(e,"i");return t.filter(o=>r.test(o.fullName))},async displayAllFonts(e="",t,r=!1,o=!1,n=/.*/){if(!("queryLocalFonts"in globalThis)){console.error("queryLocalFonts not available.");return}try{if((await navigator.permissions.query({name:"local-fonts"})).state==="granted"){let s=await queryLocalFonts();r||(s=s.filter((l,c,f)=>f.findIndex(u=>u.family===l.family)===c)),s=s.filter(l=>n.test(l.fullName));let a=document.createElement("div");a.textContent=`Showing ${s.length} fonts.
19
20`,Object.assign(a.style,{whiteSpace:"pre",marginLeft:"1em"}),document.body.append(a);for(let l of s){let c=document.createElement("div");c.style.fontFamily=o?l.fullName:l.family,c.textContent=e||[`Font: ${l.fullName}`,"    a b c d e f g h i j k l m n o p q r s t u v w x y z","    A B C D E F G H I J K L M N O P Q R S T U V W X Y Z","    0 1 2 3 4 5 6 7 8 9",`    ! @ # $ % ^ & * ( ) _ + - = { } [ ] | \\ : ; " ' < > , . ? /`,"    The quick brown fox jumped over the lazy dog!",`
21`].join(`
22`),e&&(c.style.fontSize="3em",c.title=l.fullName),t&&(c.style.fontWeight=String(t)),Object.assign(c.style,{whiteSpace:"pre",marginLeft:"1em"}),document.body.append(c)}}else console.log("Font access permission not granted.")}catch(i){console.error("Error accessing local fonts",i)}}},tf=nm;var im={Escape:"Escape",Backquote:"~",Digit1:"1",Digit2:"2",Digit3:"3",Digit4:"4",Digit5:"5",Digit6:"6",Digit7:"7",Digit8:"8",Digit9:"9",Digit0:"0",Minus:"-",Equal:"+",Backspace:"Backspace",Tab:"Tab",KeyQ:"Q",KeyW:"W",KeyE:"E",KeyR:"R",KeyT:"T",KeyY:"Y",KeyU:"U",KeyI:"I",KeyO:"O",KeyP:"P",BracketLeft:"[",BracketRight:"]",Backslash:"\\",CapsLock:"CapsLock",KeyA:"A",KeyS:"S",KeyD:"D",KeyF:"F",KeyG:"G",KeyH:"H",KeyJ:"J",KeyK:"K",KeyL:"L",Semicolon:[";",":"],Quote:["'",'"'],Enter:"Enter",ShiftLeft:"Shift",KeyZ:"Z",KeyX:"X",KeyC:"C",KeyV:"V",KeyB:"B",KeyN:"N",KeyM:"M",Comma:[",","<"],Period:[".",">"],Slash:["/","?"],ShiftRight:"Shift",ControlLeft:"Control",AltLeft:"Alt",MetaLeft:"Meta",Space:"Space",MetaRight:"Meta",AltRight:"Alt",ArrowLeft:"ArrowLeft",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowRight:"ArrowRight",Home:"Home",End:"End",PageUp:"PageUp",PageDown:"PageDown",Insert:"Insert",Delete:"Delete"},rf=im;var or={getMouseEventString(e){let t=or.getModString(e);return e instanceof WheelEvent?t+"W":t+["L","M","R","B","F"][e.button]+(e.type==="dblclick"?"dc":e.type==="mouseup"||e.type==="click"?"c":"")},getKeyboardEventString(e,t){let r=or.getModString(e),o=or.getNormalizedKey(e),n="";return e.type==="keyup"&&(n="^",sm(e,t)?n+="^":am(e,t?.[0])&&(n+="+")),r+o+n},getNormalizedKey(e){let t=rf[e.code];if(Array.isArray(t)){let r=e.shiftKey?1:0;t=t[r]}return t},getModString(e,t=!0){let r;if(t?r=(e.ctrlKey||e.metaKey?"c":"")+(e.altKey?"a":"")+(e.shiftKey?"s":""):r=(e.ctrlKey?"c":"")+(e.altKey?"a":"")+(e.shiftKey?"s":"")+(e.metaKey?"m":""),e instanceof KeyboardEvent)switch(e.key){case"Control":return r.replace("c","");case"Meta":return r.replace(t?"c":"m","");case"Alt":return r.replace("a","");case"Shift":return r.replace("s","")}return r},modSymbols(e){return e.replace("m","\u2318").replace("c","^").replace("a","\u2325").replace("s","\u21E7")},async simulateMouseInputAction(e,t){let{x:r,y:o,showDotMs:n}=e,i=or.getPseudoMouseEvents(e);if(i){t.down(i.down);
22for(let s of i.moves)await wt.nextFrame(),t.move(s);await wt.nextFrame(),t.up(i.up),i.dblclick&&(await wt.nextFrame(),t.down(i.down),await wt.nextFrame(),t.up(i.up),t.dblclick(i.dblclick)),n&&pe.addDot(r,o,void 0,void 0,n)}},async executeMouseInputAction(e){let t=or.getMouseEvents(e);for(let r of[t.down,...t.moves,t.up])(document.elementFromPoint(r.clientX,r.clientY)||window).dispatchEvent(r),await new Promise(n=>requestAnimationFrame(n))},getPseudoMouseEvents(e){let{eventString:t,x:r,y:o,dx:n=0,dy:i=0,numFrames:s=1}=e,a=/^[a-z]*/.exec(t)[0],l=document.elementFromPoint(r,o);if(!l)return;let c=l.getBoundingClientRect(),f={x:r,y:o,clientX:r,clientY:o,offsetX:r-c.left,offsetY:o-c.top,button:t.includes("L")?0:t.includes("M")?1:2,target:l,altKey:a.includes("a"),ctrlKey:a.includes("c"),metaKey:a.includes("m"),shiftKey:a.includes("s")},u={down:{...f,type:"mousedown"},moves:[],up:{...f,type:"mouseup",clientX:r+n,clientY:o+i,offsetX:r+n-c.left,offsetY:o+i-c.top}};if(t.endsWith("dc")&&(u.dblclick={...f,type:"dblclick"}),n||i){let d=n/s,p=i/s;for(let h=1;h<=s;++h){let b=d*h,m=p*h;u.moves.push({...f,type:"mousemove",movementX:d,movementY:p,x:r+b,y:o+m,clientX:r+b,clientY:o+m,offsetX:r+b-c.left,offsetY:o+m-c.top})}}return u},getMouseEvents(e){let{eventString:t,x:r,y:o,dx:n=0,dy:i=0,numFrames:s=1}=e,a={button:t.includes("L")?0:t.includes("M")?1:2,clientX:r,clientY:o,altKey:t.includes("a"),ctrlKey:t.includes("c"),metaKey:t.includes("m"),shiftKey:t.includes("s")},l={down:new MouseEvent("mousedown",a),moves:[],up:new MouseEvent("mouseup",{...a,clientX:r+n,clientY:o+i})};if(t.endsWith("dc")&&(l.dblclick=new MouseEvent("dblclick",a)),n||i){let c=n/s,f=i/s;for(let u=1;u<=s;++u)l.moves.push(new MouseEvent("mousemove",{movementX:c,movementY:f,clientX:r+c*u,clientY:o+f*u}))}return l}};function sm(e,t,r=500,o=!1){let n=t?.[0],i=t?.[1],s=t?.[2];return e.type==="keyup"&&s&&i&&n&&e.timeStamp-s.timeStamp<r&&[n,i,s].every(a=>(a.code===e.code||!o&&a.key===e.key)&&(e.key==="Control"||a.ctrlKey===e.ctrlKey)&&(e.key==="Alt"||a.altKey===e.altKey)&&(e.key==="Shift"||a.shiftKey===e.shiftKey)&&(e.key==="Meta"||a.metaKey===e.metaKey))}function am(e,t){return e.type==="keyup"&&t&&t.code===e.code&&(e.key==="Control"||t.ctrlKey===e.ctrlKey)&&(e.key==="Alt"||t.altKey===e.altKey)&&(e.key==="Shift"||t.shiftKey===e.shiftKey)&&(e.key==="Meta"||t.metaKey===e.metaKey)}var of=or;var xn=new Set,Wi=new Set,Ui=!1;function sf(){lm(),fm(),xn.size>0||Wi.size>0?requestAnimationFrame(sf):Ui=!1}function lm(){for(let e of xn)e();xn.clear()}function fm(){for(let e of Wi)e()}function nf(){Ui||(Ui=!0,requestAnimationFrame(sf))}var cm={oncePerFrame(e){return function(){xn.add(e),nf()}},invokeEveryFrame(e){Wi.add(e),nf()}},af=cm;var um={...Vl,...Zl,...pe,...ef,...tf,...of,...Gl,...af},Kr=um;var Vr=[],lf=!1;function dm(e){let t={dismiss:()=>pm(t),options:e};return Vr.push(t),mm(),()=>ff(t)}function pm(e){ff(e)&&e.options.onDismiss()}function ff(e){let t=Vr.indexOf(e);return t===-1?!1:(Vr.splice(t,1),!0)}function mm(){lf||(lf=!0,document.addEventListener("pointerdown",e=>{let t=e.target;for(let r of[...Vr].reverse()){if(r.options.within().some(n=>n!=null&&t!=null&&n.contains(t)))return;r.options.onOutsidePress!==!1&&r.dismiss()}},!0),document.addEventListener("keydown",e=>{if(e.key!=="Escape")return;let t=Vr.at(-1);!t||t.options.onEscape===!1||t.dismiss()}))}var nr=dm;var hm={accent:"text-(--link-fg) cursor-pointer hover:underline",muted:"text-(--link-fg-alt) cursor-pointer hover:underline"},Gr=hm;function yn(e){let t=[],r=/(`{1,3})([^`]+?)\1|(\*{1,3})([^*]+?)\3|\[([^\]]+)]\(([^)]+)\)|~~([^~]+?)~~|<((?:https?|mailto):[^>\s]+)>/g,o=0;return e.replaceAll(r,(n,i,s,a,l,c,f,u,d,p)=>{if(p>o&&t.push(e.slice(o,p)),i)i.length===1?t.push(uf({class:"inline-code"},s)):t.push(_n(s));else if(a){let h={"*":"italic","**":"font-bold","***":"font-bold italic"};t.push(U({class:h[a]},...yn(l)))}else c&&f?t.push(re({href:f,class:Gr.accent},...yn(c))):u?t.push(Yr(...yn(u))):d&&t.push(re({href:d,class:Gr.accent},d.replace(/^mailto:/,"")));o=p+n.length}),o<e.length&&t.push(e.slice(o)),t}var cf=yn;var ye=8,df=38,gm=!0,q=document.createElement("div");q.className="scry-tooltip";var Ki,ir=0,Vi;function Gi(){Ki?.disconnect(),Vi?.(),Vi=void 0,ir!==0&&(cancelAnimationFrame(ir),ir=0),q.remove(),q.textContent="",q._currentTarget=void 0}function bm(e,t){if(!t)return;let r=xm(t)?t:{text:t},{text:o,content:n,side:i=["bottom","top","right","left"],alignStart:s=!1,shiftForCursor:a=!0}=r;!n&&typeof o!="object"&&typeof o!="function"&&!o||(e.addEventListener("mouseenter",()=>{if(q._currentTarget===e)return;
22let l=n?void 0:ym(o);!n&&!l||(q.innerHTML="",q.append(...n?[typeof n=="function"?n():n]:cf(Kr.dedent(l))),q._currentTarget=e,document.body.append(q),_m(),Vi=nr({onDismiss:Gi,within:()=>[]}),pf(e,i,s,a),q.style.opacity="0",requestAnimationFrame(()=>{pf(e,i,s),q.style.opacity=""}))}),e.addEventListener("mouseleave",l=>{l.relatedTarget!==q&&q._currentTarget===e&&Gi()}))}function xm(e){return typeof e=="object"&&e!==null&&("text"in e||"content"in e)}function ym(e){return typeof e=="function"?e():typeof e=="object"&&e!==null?e.value:e}function _m(){typeof MutationObserver>"u"||(Ki??=new MutationObserver(vm),Ki.observe(document.body,{childList:!0,subtree:!0,attributes:!0}))}function vm(){ir===0&&(ir=requestAnimationFrame(()=>{ir=0;let e=q._currentTarget;e&&(!e.isConnected||e.checkVisibility?.()===!1)&&Gi()}))}function pf(e,t,r=!1,o=!0){let n=e.getBoundingClientRect();Array.isArray(t)&&(t=wm(n,t));let i=(n.left+n.right)/2,s=(n.top+n.bottom)/2,a=q.clientWidth,l=q.clientHeight,c,f;if(t==="bottom"||t==="top"?r===!0||r==="x"?c=n.left:c=i-a/2:t==="left"?c=n.left-a-ye:c=n.right+ye,t==="left"||t==="right")r===!0||r==="y"?f=n.top:f=s-l/2;else if(t==="top")f=n.top-l-ye;else{let _=!o||n.height>df?0:(df-n.height)/2;f=n.bottom+ye+_}let u=ye,d=globalThis.innerWidth-a-ye,p=Kr.clamp(c,u,d),h=ye,b=globalThis.innerHeight-l-ye,m=Kr.clamp(f,h,b);q.style.left=p+"px",q.style.top=m+"px"}function wm(e,t){let r=globalThis.innerWidth,o=globalThis.innerHeight,n=parseFloat(getComputedStyle(q).getPropertyValue("--tooltip-max-w")),i=gm&&n||q.clientWidth;for(let s of t)if(s==="left"&&e.left>i+ye||s==="right"&&e.right<r-i-ye||s==="top"&&e.top>q.clientHeight+ye||s==="bottom"&&e.bottom<o-q.clientHeight-ye)return s;return t[0]||"bottom"}var mf=bm;var Mm={name:"$tooltip",handler:mf},hf=Mm;function Tm(...e){let t="";for(let r=0;r<e.length;r++){let o=e[r];if(o instanceof B)return Bn(()=>Sm(e));o&&(t+=t===""?o:` ${o}`)}return t}function Sm(e){let t="";for(let r=0;r<e.length;r++){let o=e[r],n=o instanceof B?o.value:o;n&&(t+=t===""?n:` ${n}`)}return t}var j=Tm;function gf(...e){let[t,...r]=e;if(t!==null&&typeof t=="object"&&!(t instanceof Node)&&!(t instanceof B)){let n=t;return{props:n,attrs:n.attrs,children:r}}return{props:{},attrs:void 0,children:e}}function rt(e){return Array.isArray(e)?e:e==null?[]:[e]}function km({class:e,callback:t,size:r,attrs:o},n){let i=r==="sm"?" flex h-6":"";return xf({...o,class:j(e,o?.class),role:"menuitem",tabindex:-1},re({class:i,onclick:t},...rt(n)))}var bf=km;function Em({class:e,items:t=[],size:r="md",attrs:o},n){return _f({...o,class:j("menu rounded-xl z-1 w-52 p-2 shadow-sm",e,o?.class),role:"menu",tabindex:-1},...t.map(s=>{if(Array.isArray(s)){let[a,l]=s;return bf({callback:l,size:r},a)}else return s}),...rt(n))}var yf=Em;var vf=4,Yi,wf=!1;function Cm(e,t){Am();let r;e.addEventListener("mousedown",o=>{if(o.button!==2)return;o.stopPropagation(),Yi&&Yi(),r=yf({items:typeof t=="function"?t():t}),r.style.position="fixed",r.classList.add("context-menu");let n,i=l=>{r?.remove(),r=void 0,n?.(),n=void 0,document.removeEventListener("click",i)};Yi=i,n=nr({onDismiss:i,within:()=>[r]}),requestAnimationFrame(()=>{document.addEventListener("mouseup",()=>{requestAnimationFrame(()=>document.addEventListener("click",i))},{once:!0})}),r.style.left=o.clientX+"px",r.style.top=o.clientY+"px",document.body.append(r);let{width:s,height:a}=r.getBoundingClientRect();r.style.left=`${Mf(o.clientX,s,globalThis.innerWidth)}px`,r.style.top=`${Mf(o.clientY,a,globalThis.innerHeight)}px`})}function Mf(e,t,r){return Math.max(vf,Math.min(e,r-t-vf))}function Am(){wf||(wf=!0,globalThis.addEventListener("contextmenu",e=>{e.ctrlKey||e.preventDefault()}))}var Tf=Cm;var Rm={name:"$contextMenu",handler:(e,t)=>{Tf(e,t)}},Sf=Rm;var Pm=new Set(["$ref","$decorators","$bind","$ns","$onShown","$onHidden","$onDispose"]),kf=Pm;var Cf=new Map,zm=new Set,Ef=!1;
22function Lm(){if(!Ef){Ef=!0;for(let e of[hf,Sf])zm.has(e.name)||Cf.set(e.name,e.handler)}}function Af(e){return Lm(),Cf.get(e)}function $m(e,t,...r){if(Array.isArray(t)?(r=t,t=void 0):r.length===1&&Array.isArray(r[0])&&(r=r[0]),Rf.has(e))return ot(e,t,...r);let o,n;if(t instanceof Node||t instanceof B||typeof t=="string"||typeof t=="function"){if(t instanceof B)return ot(e,t,...r);for(let s of r)if(s instanceof B)return ot(e,t,...r);r.unshift(t),o={},n=r}else{o=t||{},n=r;for(let s in o)if(s[0]==="$"||o[s]instanceof B)return ot(e,t,...r);for(let s of n)if(s instanceof B)return ot(e,t,...r)}let i=ve.mode===null?document.createElement(e):ve.createElement(e,null);o.id&&(i.id=o.id),o.class&&(i.className=o.class);for(let s in o){if(s==="id"||s==="class")continue;let a=o[s];a==null?Jr(i,s,a):s in i||typeof a=="function"?i[s]=a:Jr(i,s,a)}if(ve.mode!=="claim")for(let s of n){let a=typeof s=="function"?s():s;a!=null&&typeof a!="boolean"&&i.append(a)}else{let s=[];for(let a of n){let l=typeof a=="function"?a():a;l!=null&&typeof l!="boolean"&&s.push(l)}ve.alignChildren(i,s)}return je(i),i}function ot(e,t,...r){let o,n;t instanceof Node||t instanceof B||typeof t=="string"||typeof t=="function"?(o={},r.unshift(t),n=r):(o=t||{},n=r);let i=o.$ns,s=i==="svg"?"http://www.w3.org/2000/svg":i==="math"?"http://www.w3.org/1998/Math/MathML":Rf.has(e)?"http://www.w3.org/2000/svg":null,a=ve.mode===null?s?document.createElementNS(s,e):document.createElement(e):ve.createElement(e,s);o.$ref&&o.$ref[Dn]?.(a);let l=new _e;return At.set(a,l),l.run(()=>{let c=so.toNodeArr(n),f;for(let u in o){let d=o[u];if(u[0]==="$"){if(kf.has(u)||d===void 0)continue;let p=Af(u);if(!p){console.error(`Unknown directive: ${u} \u2014 register it with registerDirective() before the first render`);continue}(f??=[]).push([p,d]);continue}d instanceof B?(Ji(a,u,d.peek()),lt(()=>{Ji(a,u,d.value)})):Ji(a,u,d)}if(ve.mode!=="claim"?a.append(...c):ve.alignChildren(a,c),o.$bind&&Fs(a,o.$bind),o.$decorators)for(let u of o.$decorators)u(a);if(f)for(let[u,d]of f)u(a,d);typeof o.$onShown=="function"&&Os(a,o.$onShown),typeof o.$onHidden=="function"&&Ns(a,o.$onHidden),typeof o.$onDispose=="function"&&io(a,o.$onDispose)}),je(a),a}function Ji(e,t,r){r==null?Jr(e,t,r):t==="style"&&typeof r=="string"?e.setAttribute(t,r):typeof r=="function"?e[t]=r:e instanceof SVGElement?Jr(e,t,r):t in e?e[t]=r:Jr(e,t,r)}function Jr(e,t,r){r==null?e.removeAttribute(t):typeof r=="boolean"&&!t.startsWith("aria-")&&!t.startsWith("data-")?r?e.setAttribute(t,""):e.removeAttribute(t):e.setAttribute(t,String(r))}var At=new WeakMap,Rf=new Set(["svg","animate","animateMotion","animateTransform","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","switch","symbol","text","textPath","tspan","use","view"]),Pf=$m;function g(e){return(...t)=>Pf(e,...t)}var c4=g("html"),u4=g("base"),d4=g("head"),p4=g("link"),m4=g("meta"),h4=g("style"),g4=g("title"),b4=g("body"),x4=g("address"),y4=g("article"),_4=g("aside"),zf=g("footer"),vn=g("header"),wn=g("h1"),Mn=g("h2"),Lf=g("h3"),v4=g("h4"),w4=g("h5"),M4=g("h6"),T4=g("hgroup"),$f=g("main"),Of=g("nav"),Nf=g("section"),S4=g("search"),k4=g("blockquote"),E4=g("dd"),C=g("div"),C4=g("dl"),A4=g("dt"),R4=g("figcaption"),P4=g("figure"),Tn=g("hr"),xf=g("li"),z4=g("menu"),L4=g("ol"),Te=g("p"),_n=g("pre"),_f=g("ul"),re=g("a"),$4=g("abbr"),O4=g("b"),N4=g("bdi"),I4=g("bdo"),F4=g("br"),D4=g("cite"),uf=g("code"),H4=g("data"),j4=g("dfn"),X4=g("em"),q4=g("i"),B4=g("kbd"),U4=g("mark"),W4=g("q"),K4=g("rp"),V4=g("rt"),G4=g("ruby"),Yr=g("s"),Y4=g("samp"),J4=g("small"),U=g("span"),Z4=g("strong"),Q4=g("sub"),eT=g("sup"),tT=g("time"),rT=g("u"),oT=g("var"),nT=g("wbr"),iT=g("area"),sT=g("audio"),If=g("img"),aT=g("map"),lT=g("track"),fT=g("video"),cT=g("embed"),uT=g("iframe"),dT=g("object"),pT=g("picture"),mT=g("portal"),hT=g("source"),gT=g("svg"),bT=g("math"),xT=g("canvas"),yT=g("noscript"),_T=g("script"),vT=g("del"),wT=g("ins"),MT=g
22("caption"),TT=g("col"),ST=g("colgroup"),kT=g("table"),ET=g("tbody"),CT=g("td"),AT=g("tfoot"),RT=g("th"),PT=g("thead"),zT=g("tr"),sr=g("button"),LT=g("datalist"),$T=g("fieldset"),OT=g("form"),Zr=g("input"),Ff=g("label"),NT=g("legend"),IT=g("meter"),FT=g("optgroup"),DT=g("option"),HT=g("output"),jT=g("progress"),XT=g("select"),qT=g("textarea"),BT=g("details"),UT=g("dialog"),WT=g("summary"),KT=g("slot"),VT=g("template");function Om(e,t){Un();let r=document.querySelector("#app");if(!r)throw new Error(`${e} boot: #app container not found in shell`);if(r.childElementCount>0)Wn(r,t);else{let o=t();r.append(...Array.isArray(o)?o:[o])}}var Df=Om;var Nm={getCallerFile(){return Hf()?.path},getCallerLocation(){let e=Hf();if(e)return`${e.path}:${e.line}:${e.col}`},getRelativePath(e){let t=globalThis.process;if(!t?.cwd)return e;let o=t.cwd().replaceAll("\\","/"),n=e.replaceAll("\\","/");if(n.startsWith(o)){let i=n.slice(o.length);return i.startsWith("/")&&(i=i.slice(1)),i.startsWith(".")?i:"./"+i}return e},filterTrace(e){return e.split(`
23`).filter(t=>{let r=t.trim();return r.startsWith("at ")?!jf(r):!0}).join(`
24`)}};function Hf(){let e=new Error("stack-trace-detect").stack;if(e)for(let t of e.split(`
25`)){if(!t.includes("at ")||jf(t))continue;let r=t.match(/\((.*):(\d+):(\d+)\)$/)||t.match(/at\s+(.*):(\d+):(\d+)$/);if(r&&r[1]){let o=r[1];return o=o.replace(/^file:\/\//,""),o=o.replace(/^[A-Z]:\\/,""),{path:o,line:r[2],col:r[3]}}}}function jf(e){return e.includes(".test.")?!1:["speck","node:internal","<anonymous>"].some(r=>e.includes(r))}var Sn=Nm;var Im={sm:"small",md:"medium",lg:"large"},Fm=/\.(?:test|spec)\.(sm|md|lg)\.[cm]?[jt]s$/,Dm=/\.(?:test|spec)(?:\.(?:sm|md|lg))?\.[cm]?[jt]s$/,kn={includePatternsBySize:[],timeoutMsBySize:{}},Fe={SIZES:["small","medium","large"],DEFAULT_TIMEOUT_MS:{small:2e3,medium:3e4,large:3e5},createSettings(e={}){let t=[],r={};for(let o of Fe.SIZES){let n=e[o];if(n&&(n.include?.length&&t.push([o,n.include.map(Hm)]),n.timeoutMs!==void 0)){if(!Fe.isTimeoutMs(n.timeoutMs))throw new Error(`${o}.timeoutMs must be a positive finite number, got ${n.timeoutMs}`);r[o]=n.timeoutMs}}return{includePatternsBySize:t,timeoutMsBySize:r}},fromSuffix(e){let t=e.match(Fm)?.[1];return t===void 0?void 0:Im[t]},fromPath(e,t=kn){let r=Fe.fromSuffix(e);if(r!==void 0)return r;let o=jm(e),n=t.includePatternsBySize.filter(([,i])=>i.some(s=>Xm(s,o))).map(([i])=>i);if(n.length>1)throw new Error(`${e} matches include patterns for multiple sizes: ${n.join(", ")}`);return n[0]},ofTestFile(e,t=kn){return Fe.fromPath(e,t)??(Dm.test(e.replaceAll("\\","/"))?"small":void 0)},ofSelectedFile(e,t=kn){return Fe.fromPath(e,t)??"small"},timeoutMs(e,t=kn){return t.timeoutMsBySize[e]??Fe.DEFAULT_TIMEOUT_MS[e]},isSize(e){return Fe.SIZES.includes(e)},isTimeoutMs(e){return typeof e=="number"&&Number.isFinite(e)&&e>0},max(e,t){return Fe.SIZES.indexOf(e)>=Fe.SIZES.indexOf(t)?e:t},pathKey(e){return e.replace(/^file:\/\//,"").replaceAll("\\","/").replace(/^\/([A-Za-z]:\/)/,"$1").replace(/^[A-Za-z]:\//,"")}};function Hm(e){return typeof e=="string"?new RegExp(e):new RegExp(e.source,e.flags)}function jm(e){let t=e.replaceAll("\\","/");return t.startsWith("/")?t:"/"+t}function Xm(e,t){e.lastIndex=0;let r=e.test(t);return e.lastIndex=0,r}var J=Fe;var Zi=class e{_suites=[];_suiteStack=[];_someTestsAreOnly=!1;_numEmptySuites=0;_currentFileContext=void 0;_sizeSettings=J.createSettings();_testFileSizes=new Map;static _instance=new e;static instance(){return e._instance}static reset(){e._instance=new e}},De=Zi;var qm={resolve(e){let{declaredSize:t,fixedFileSize:r,parentSize:o,filename:n}=e,i=J.isSize(t)?t:void 0,s=o??"small",a=r??(i?J.max(s,i):s);return t!==void 0&&i===void 0?{size:a,diagnostic:{testName:"invalid size",message:`The suite declares invalid size "${String(t)}". Valid sizes: ${J.SIZES.join(", ")}.`}}:r!==void 0&&i!==void 0&&i!==r?{size:a,diagnostic:{testName:"size mismatch",message:`The suite declares size "${i}" but its file declares "${r}": ${n}. Make them agree.`}}:r===void 0&&o!==void 0&&i!==void 0&&a!==i?{size:a,diagnostic:{testName:"size mismatch",message:`The suite declares size "${i}" but inherits "${o}" from its parent. A child suite cannot decrease its parent's size.`}}:{size:a,diagnostic:void 0}}},En=qm;var Qi=class{name;tags;size;_timeoutOverride;_parent;_filename;_sizeSettings;tests=[];beforeEach=[];afterEach=[];beforeAll=[];afterAll=[];constructor(t,r,o,n={},i=J.createSettings(),s=o===void 0?void 0:J.ofTestFile(o,i)){this.name=t,this._parent=r,this._filename=o,this._sizeSettings=i,this.tags=n.tags??[],this.size=En.resolve({declaredSize:n.size,fixedFileSize:s,parentSize:r?.size,filename:o}).size,this._timeoutOverride=J.isTimeoutMs(n.timeout)?n.timeout:r?._timeoutOverride}getTimeoutMs(){return this._timeoutOverride??J.timeoutMs(this.size,this._sizeSettings)}getDepth(){let t=0,r=this._parent;for(;r;)t++,r=r._parent;return t}getAncestry(){let t=[],r=this;for(;r;)t.unshift(r),r=r._parent;return t}},Xf=Qi;var es={describe(e,t,...r){let o=De.instance(),n=o._suiteStack.at(-1),i=r[0],s=Array.isArray(i)?{tags:i}:i??{},a=o._currentFileContext||Sn.getCallerFile(),l=a===void 0?void 0:o._testFileSizes.get(J.pathKey(a))??J.ofTestFile(a,o._sizeSettings),c=new Xf(e,n,a,s,o._sizeSettings,l);o._suites.push(c),o._suiteStack.push(c);let f=En.resolve({declaredSize:s.size,fixedFileSize:l,parentSize:n?.size,filename:a}).diagnostic;f&&Cn(f.testName,()=>{throw new Error(f.message)});let u=s.timeout;u!==void 0&&!J.isTimeoutMs(u)&&Cn("invalid timeout",()=>{throw new Error(`The suite declares invalid timeout ${String(u)}. timeout must be a positive finite number of milliseconds.`)}),t(),o._suiteStack.pop()},it:Object.assign(Cn,{only:Bm}),beforeEach(e){let t=De.instance();if(t._suiteStack.length===0)throw new Error("beforeEach() must be called within a describe() block");t._suiteStack.at(-1).beforeEach.push(e)},afterEach(e){let t=De.instance();if(t._suiteStack.length===0)throw new Error("afterEach() must be called within a describe() block");t._suiteStack.at(-1).afterEach.push(e)},beforeAll(e){let t=De.instance();if(t._suiteStack.length===0)throw new Error("beforeAll() must be called within a describe() block");t._suiteStack.at(-1).beforeAll.push(e)},afterAll(e){let t=De.instance();if(t._suiteStack.length===0)throw new Error("afterAll() must be called within a describe() block");t._suiteStack.at(-1).afterAll.push(e)},before(e){es.beforeAll(e)},after(e){es.afterAll(e)}};function Cn(e,t,r){let o=De.instance();if(o._suiteStack.length===0)throw new Error("it() must be called within a describe() block");let n=Sn.getCallerLocation(),i={name:e,fn:t,registrationLocation:n,...r};o._suiteStack.at(-1).tests.push(i)}function Bm(...e){let t=De.instance();Cn(...e);let r=t._suiteStack.at(-1);if(r){let o=r.tests.at(-1);o&&(o.only=!0)}t._someTestsAreOnly=!0}var Se=es;var qf={checkMark:"\u2714",xMark:"\u2716\uFE0E",badColor(e){return`\x1B[31m${String(e)}\x1B[0m`}
25,goodColor(e){return`\x1B[32m${String(e)}\x1B[0m`},dimColor(e){return`\x1B[2m${String(e)}\x1B[0m`},dimGoodColor(e){return`\x1B[2;32m${String(e)}\x1B[0m`},dimBadColor(e){return`\x1B[2;31m${String(e)}\x1B[0m`},safeJSONStringify(e,t=2){let r=new WeakSet;return JSON.stringify(e,(o,n)=>{if(typeof n=="bigint")return n.toString()+"n";if(typeof n=="object"&&n!==null){if(r.has(n))return"[Circular]";r.add(n)}return typeof n=="function"?"_fn_"+n.toString().replace(/ ?{[\S\s]*/," { ... }").replace(/ ?=>\s+{.*/," => { ... }").replace(/ ?=>\s+[^{}].*/," => ..."):n},t)},getFormattedObjectString(e){return["string","number","undefined"].includes(typeof e)?String(e):qf.safeJSONStringify(e,1).replaceAll(/ *\n */g," ").replaceAll(/ "([A-Z_a-z]\w*)": /g," $1: ").replaceAll(/"_fn_([^"]*)"/g,"$1").replaceAll(/(\b\w+\b): \1\(\)/g,"$1()")}},Tt=qf;var nt=Tt.goodColor,it=Tt.badColor;function An(e,t){let r=`
26Expected: ${nt(Tt.getFormattedObjectString(t))}
27Received: ${it(Tt.getFormattedObjectString(e))}`;if(e===t||e!==e&&t!==t)return;if(typeof e!="object"||e===null||typeof t!="object"||t===null)throw new Error(r);if(Object.prototype.toString.call(e)!==Object.prototype.toString.call(t))throw new Error(r);if(e instanceof RegExp&&t instanceof RegExp){if(e.source!==t.source||e.flags!==t.flags)throw new Error(r);return}if(e instanceof Date&&t instanceof Date){if(!Object.is(e.getTime(),t.getTime()))throw new Error(r);return}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)throw new Error(r);for(let[i,s]of e){if(!t.has(i))throw new Error(r);An(s,t.get(i))}return}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)throw new Error(r);for(let i of e)if(!t.has(i))throw new Error(r);return}let o=Object.keys(e),n=Object.keys(t);if(o.length!==n.length)throw new Error(r);for(let i of o)if(!n.includes(i))throw new Error(r);for(let i of o)An(e[i],t[i])}function Um(e,t){if(e!==t)throw new Error(`
28Expected: ${nt(String(t))}
29Received: ${it(String(e))}`)}function Wm(e,t){for(let r of Object.keys(t))if(!(r in e)||e[r]!==t[r])throw new Error(`
30Expected property: ${nt(`${r} = ${t[r]}`)}
31Received: ${it(`${r} = ${e[r]}`)}`)}function Km(e,t){if(typeof t!="object"||t===null||typeof e!="object"||e===null)throw new Error(`
32Expected: object (deep inclusion check)
33Received: target=${e}, expected=${t}`);for(let r of Object.keys(t)){if(!(r in e))throw new Error(`
34Expected property: ${r}
35Received: missing`);try{An(e[r],t[r])}catch(o){throw new Error(`
36Mismatch in property '${r}':`+o.message)}}}function Bf(e,t){if(t===void 0)return;let r=e.message||e;if(typeof t=="function"&&!(e instanceof t))throw new TypeError(`
37Expected error type: ${nt(t.name)}
38Received error type: ${it(e.constructor.name)}
39Message: ${r}`);if(typeof t=="string"&&r!==t)throw new Error(`
40Expected error: ${nt(`"${t}"`)}
41Received: ${it(`"${r}"`)}`);if(t instanceof RegExp&&!t.test(r))throw new Error(`
42Expected error: ${nt(String(t))}
43Received: ${it(`"${r}"`)}`);if(t instanceof Error&&r!==t.message)throw new Error(`
44Expected error: ${nt(`"${t.message}"`)}
45Received: ${it(`"${r}"`)}`);if(t instanceof Error&&e.constructor!==t.constructor)throw new Error(`
46Expected error type: ${nt(t.constructor.name)}
47Received error type: ${it(e.constructor.name)}`)}function Vm(e,t){try{e()}catch(r){Bf(r,t);return}throw new Error(`
48Expected: error throw
49Received: no error thrown`)}async function Gm(e,t){try{await(typeof e=="function"?e():e)}catch(r){Bf(r,t);return}throw new Error(`
50Expected: rejection
51Received: no rejection`)}function He(e){return{to:{equal:Um.bind(void 0,e),include:t=>Wm(e,t),throw:Vm.bind(void 0,e),reject:Gm.bind(void 0,e),deep:{equal:An.bind(void 0,e),include:t=>Km(e,t)}}}}function Ym(e,t){let r="default",o,n=0,i=[],s=e&&t?e[t]:void 0;if(e&&t&&typeof e[t]!="function")throw new TypeError(`Cannot stub non-function property: ${String(t)}`);let l=(...c)=>{if(n++,i.push(c),r==="return")return o;if(r==="throw")throw o};return Object.defineProperties(l,{callCount:{get:()=>n},calledWithArgs:{value:i},returns:{value:c=>(r="return",o=c,l)},throws:{value:c=>(r="throw",o=c,l)},restore:{value:()=>{e&&t&&s&&(e[t]=s)}}}),e&&t&&(e[t]=l),l}var ts=Ym;var S8=console.log.bind(console);var N8=console.log.bind(console),I8=globalThis.window===globalThis;var{describe:ns,it:We,beforeAll:Uf,afterAll:Wf}=Se;function Jm(e){let t={name:!0,description:!0,tags:!0,size:!0,timeout:!0,fn:!0,getThis:!0,produces:!0,mutatesArgs:!0,mutatesThis:!0,throws:!0,sideEffects:!0,calls:!0,assert:!0,comparisonMode:!0,beforeEach:!0,after
51Each:!0,beforeAll:!0,afterAll:!0,_isConstructorSpec:!0,class:!0,object:!0};for(let i of Object.keys(e))if(!Object.prototype.hasOwnProperty.call(t,i))throw new Error(`Unknown property "${i}" found in test spec. Allowed properties are: ${Object.keys(t).join(", ")}`);if(!e.fn&&!e.assert)throw new Error("Test spec must provide a 'fn' property, or an 'assert' property for standalone assertions.");if(!(e.name||e.description||e.fn?.name))throw new Error("Test spec must provide a 'name', 'description', or a named function.");let o=["produces","mutatesArgs","mutatesThis","throws","sideEffects","calls","assert"];if(!o.some(i=>e[i]!==void 0)){let i=e.name||e.description,s=i?`"${i}"`:`for function "${e.fn?.name}"`;throw new Error(`Test spec ${s} must contain at least one of the following spec fields: ${o.join(", ")}`)}if(e._isConstructorSpec&&e.getThis)throw new Error("constructor specs cannot have .getThis (because constructors can't be given a this arg)");if(e._isConstructorSpec&&e.mutatesThis)throw new Error("constructor specs cannot have .mutatesThis (because constructors can't be given a this arg)")}function Zm(e){if(e.class||e.object){Qm(e);return}rs(e)}function rs(e){let t=e;try{typeof t=="function"&&(t=t()),Jm(t)}catch(r){a0(l0(t??e),r);return}e=t,e.assert&&St(e,e.assert),e.produces&&St(e,e.produces,e0),e.mutatesArgs&&St(e,e.mutatesArgs,t0),e.mutatesThis&&St(e,e.mutatesThis,r0),e.sideEffects&&St(e,e.sideEffects),e.throws&&St(e,e.throws,o0),e.calls&&St(e,e.calls,n0,([,[r,o,n]])=>`should call ${r}.${o}${n===void 0?"":" "+n+" time(s)"}`)}function Qm(e){let t=e.class||e.object,r=!!e.class,o=e.methods,n=e.name||t.name||"(anonymous)",i=e.constructorArgs||[],s=r?(...a)=>new t(...a.length?a:i):()=>t;ns(n,function(){if(e.beforeAll&&Uf(e.beforeAll),e.afterAll&&Wf(e.afterAll),Object.hasOwn(o,"constructor")&&o.constructor!=="skip"){let a={...o.constructor};a._isConstructorSpec=!0,a.fn=(...l)=>new t(...l),a.name=a.name||"constructor",rs(a)}for(let[a,l]of Object.entries(o)){if(a==="constructor"||l==="skip")continue;let c=r?t.prototype[a]:t[a];if(typeof c!="function"){We(`"${a}" is not a method`,()=>{throw new Error(`"${a}" is not a method on ${n}`)});continue}let f=typeof l=="function"?l():{...l};f.fn=c,f.name=f.name||a,f.getThis||(f.getThis=s),e.beforeEach&&!f.beforeEach&&(f.beforeEach=e.beforeEach),e.afterEach&&!f.afterEach&&(f.afterEach=e.afterEach),rs(f)}},e)}function St(e,t,r,o){let n=e.name||e.description||e.fn?.name||"";n==="fn"&&(n=""),n=n||"(anonymous)";let i=e.name||e.description||"should work";ns(n,function(){e.beforeAll&&Uf(e.beforeAll),e.afterAll&&Wf(e.afterAll);let s={constructorArgs:[],comparisonMode:e.comparisonMode||"deepEquals",beforeEach:e.beforeEach,afterEach:e.afterEach},a="",l=-1,c=null;for(let f of t){if(typeof f=="string"){a=f;continue}if(i0(f)){if(f.constructorArgs&&e._isConstructorSpec){We("constructorArgs is not allowed on constructor specs",()=>{throw new Error("constructorArgs is not allowed on constructor specs")});continue}f.run&&s.run&&We("consecutive run steps",()=>{throw new Error("A run step overwrites an earlier run that no assertion row has consumed yet, so the earlier run would silently never execute. Merge them into a single run(), or place an assertion row between them.")}),Object.assign(s,f),c=f;continue}l++,c=null;let u,d,p,h="";if(Array.isArray(f))u=e.fn,[d,p,h=""]=f;else if(typeof f=="object"&&f!==null&&"args"in f)u=e.fn,d=f.args,p=f.expected;else if(typeof f=="function")d=[],p=f;else{let A=f0(n,l,f);We(`(${l}) malformed test data`,()=>{throw new Error(A)});continue}if(!e.fn&&typeof p!="function"){We(`(${l}) only functions allowed when spec.fn is undefined`,()=>{throw new Error("Only functions are allowed as test data when spec.fn is undefined.")});continue}h=h||o?.(f)||a;let b=e.getThis?.(...s.constructorArgs),m=h?.startsWith("ONLY")||a?.startsWith("ONLY")||i?.startsWith("ONLY"),_=m?We.only:We,T="("+l+") "+(m?(h||i).replace(/^ONLY ?/,""):h||i),w;if(u===void 0)w=async()=>{if(await p()!==!0)throw new Error("")};else if(!r||typeof p=="function"&&!s0(p))w=async()=>{let A=await u.call(b,...os(d));He(await p(A)).to.equal(!0)};else{let A=s.comparisonMode;w=()=>r(u,d,p,b,A)}let S={run:s.run,before:s.beforeEach,after:s.afterEach,_shouldFail:s._shouldFail,args:u===void 0?void 0:os(d)};delete s.run,_(T,async()=>{try{await w()}catch(A){if(S._shouldFail)return;throw A}if(S._shouldFail)throw new Error("Expected test to fail, but it passed")},S)}c&&We("trailing options object",()=>{throw new Error("An options object trails the assertion list with no test row after it, so it never takes effect. Remove it, or add the assertion row it was meant to configure. (For per-spec teardown, use afterAll.)")})},e)}async function e0(e,t,r,o,n){let i=await e.call(o,...os(t));is(i,r,n)}async function t0(e,t,r,o,n){await e.call(o,...t);for(let[i,s]of Object.entries(r))is(t[Number(i)],s,n)}async function r0(e,t,r,o,n){await e.call(o,...t),is(o,r,n)}async function o0(e,t,r,o){await He(()=>e.call(o,...t)).to.reject(r)}async function n0(e,t,[r,o,n],i){let s=ts(r,o);try{await e.call(i,...t)}
51finally{s.restore()}n===void 0?He(s.callCount>0).to.equal(!0):He(s.callCount).to.equal(n)}function i0(e){if(typeof e!="object"||e===null||Array.isArray(e))return!1;let t=new Set(["run","constructorArgs","beforeEach","afterEach","comparisonMode","_shouldFail"]);return Object.keys(e).every(r=>t.has(r))}function is(e,t,r="deepEquals"){typeof r=="function"?He(r(e,t)).to.equal(!0):r==="deepIncludes"?He(e).to.deep.include(t):r==="deepEquals"&&["string","number","boolean"].includes(typeof e)?He(e).to.equal(t):r==="deepEquals"&&He(e).to.deep.equal(t)}function os(e){return Array.isArray(e)?e:[e]}function s0(e){return typeof e=="function"&&(e===Error||e.prototype instanceof Error)}function a0(e,t){let r=t instanceof Error?t:new Error(String(t));ns(e,function(){We("invalid test spec",()=>{throw r})})}function l0(e){return typeof e=="function"?e.name||"(invalid spec factory)":e&&typeof e=="object"&&(e.name||e.description||e.fn?.name)||"(invalid spec)"}function f0(e,t,r){let o;try{o=JSON.stringify(r),o&&o.length>120&&(o=o.slice(0,117)+"...")}catch{o=String(r)}return`Invalid test data in "${e}" at index ${t}: ${o}. Expected one of: a string label, a TestOptions object, [args, expected], { args, expected }, or a predicate function.`}var Qr=Zm;var W8=new Set(["include","exclude","colocated","sizes",...J.SIZES]);var Q8=Se.describe,e9=Se.it,t9=Se.beforeEach,r9=Se.afterEach,o9=Se.beforeAll,n9=Se.afterAll,i9=Se.before,s9=Se.after;function c0({class:e,attrs:t,width:r,variant:o="default",onclick:n},i){let s=r==="xs"?"w-12":r==="sm"?"w-20":r==="md"?"w-32":"",a={default:"",primary:"btn-primary",secondary:"btn-secondary",tertiary:"btn-tertiary",neutral:"btn-neutral",disabled:"btn-disabled"}[o]??"";return sr({...t,class:j("btn",a,e,t?.class,s),...n?{onclick:n}:void 0},...rt(i))}var kt=c0;function u0(...e){let{props:t,attrs:r,children:o}=gf(...e);return C({...r,class:j("flex-none flex gap-2 my-2 justify-end",t.class,r?.class)},...o)}var Kf=u0;function v(e,t){let r={$ns:"svg",...t};return(o,...n)=>{if(o instanceof Node||o instanceof B||typeof o=="string"||typeof o=="function"||o===null||o===void 0||typeof o=="boolean")return ot(e,r,o,...n);let i=o?{...r,...o}:r;return ot(e,i,...n)}}var T9=v("animate"),S9=v("animateMotion"),k9=v("animateTransform"),E9=v("mpath"),C9=v("set"),A9=v("circle"),R9=v("ellipse"),P9=v("line",{stroke:"black"}),Vf=v("polygon"),Gf=v("polyline"),z9=v("rect"),L9=v("a"),$9=v("defs"),O9=v("g"),N9=v("marker"),I9=v("mask"),F9=v("pattern"),ar=v("svg"),D9=v("switch"),H9=v("symbol"),j9=v("desc"),X9=v("metadata"),q9=v("title"),B9=v("feBlend"),U9=v("feColorMatrix"),W9=v("feComponentTransfer"),K9=v("feComposite"),V9=v("feConvolveMatrix"),G9=v("feDiffuseLighting"),Y9=v("feDisplacementMap"),J9=v("feDropShadow"),Z9=v("feFlood"),Q9=v("feFuncA"),e7=v("feFuncB"),t7=v("feFuncG"),r7=v("feFuncR"),o7=v("feGaussianBlur"),n7=v("feImage"),i7=v("feMerge"),s7=v("feMergeNode"),a7=v("feMorphology"),l7=v("feOffset"),f7=v("feSpecularLighting"),c7=v("feTile"),u7=v("feTurbulence"),d7=v("linearGradient"),p7=v("radialGradient"),m7=v("stop"),h7=v("image"),Rn=v("path"),g7=v("text"),b7=v("use"),x7=v("feDistantLight"),y7=v("fePointLight"),_7=v("feSpotLight"),v7=v("clipPath"),w7=v("hatch"),M7=v("script"),T7=v("style"),S7=v("solidcolor"),k7=v("foreignObject"),E7=v("textPath"),C7=v("tspan"),A7=v("filter"),R7=v("hatchpath"),P7=v("view");function d0(e={}){let{items:t=[]}=e;return zf({class:"absolute bottom-4 left-0 right-0 text-xs sm:text-sm"},Te({class:"flex flex-wrap justify-center gap-x-4 gap-y-2"},...t.map(({href:r,text:o,onclick:n})=>re({...r?{href:r}:{},...n?{onclick:n}:{},class:"hover:opacity-90 cursor-pointer whitespace-nowrap"},o))))}var ss=d0;function p0({class:e,href:t,attrs:r={},variant:o,blue:n},i){return re({href:t,...r,class:j(Gr[(o?o==="accent":n===!0)?"accent":"muted"],e,r.class)},...rt(i))}var Et=p0;var Ee,as,Yf=!1;function ke(e,t){m0(),ke.close();let r=e.maxWidth??e.max_width,o=e.closeCallback??e.close_callback,n=e.autocloseMs??e.autoclose_ms,i=e.buttonDefns??[{text:"OK",triggeredByEnter:!0}],s=i.map(f=>({text:f.text,variant:f.type||"primary",onclick:()=>{f.onclick?.(),f.closesModal!==!1&&ke.close()}}));n&&setTimeout(ke.close,n);
51let a=r==="lg"?"max-w-lg":r==="xl"?"max-w-xl":"max-w-md",l=C({class:j("fixed bg-black/60 dark:bg-black/50 inset-0 flex items-center justify-center z-50",e.backdropClass),id:"main-modal"},C({class:j(`bg-(--bg-main) p-8 rounded-lg shadow-lg mx-4 ${a} flex flex-col max-h-[calc(100vh-4rem)] relative`,e.modalClass)},...e.showXCloseButton?[C({class:"absolute top-3 right-3 text-3xl leading-none opacity-30 hover:opacity-80 cursor-pointer transition-opacity select-none p-3 z-10",onclick:ke.close,title:"Close"},"\xD7")]:[],...e.title?[Mn({class:j("text-2xl",e.titleClass)},e.title)]:[],C({class:"h-2"}),...e.showHr?[Tn({class:j("border-t border-(--text-color) opacity-30",e.hrClass)})]:[],C({class:"h-2"}),C({class:"flex-1 overflow-y-auto -mr-4 pr-4 -ml-1 pl-1"},...t||[]),...s.length===0?[]:[C({class:"h-2"}),Kf(...s.map(f=>kt({variant:f.variant||"primary",attrs:{onclick:f.onclick,class:"min-w-24"}},f.text)))]));o&&(l.closeCallback=o);let c=i.find(f=>f.triggeredByEnter);return c&&(l.onEnter=()=>{c.onclick?.(),c.closesModal!==!1&&ke.close()}),l.show=()=>{Ee!==l&&Ee?.parentElement&&ke.close(),Ee=l,document.body.append(l),as=nr({onDismiss:()=>ke.close(),within:()=>[l],onOutsidePress:!1}),l.setAttribute("tabindex","-1"),requestAnimationFrame(()=>{l.focus(),e.autofocusSelector?l.querySelector(e.autofocusSelector)?.focus():e.autofocus&&l.querySelector("input, select, textarea, button")?.focus()})},Ee=l,l}ke.show=function(...t){let r=ke(...t);return r.show(),r};ke.close=function(){as?.(),as=void 0,Ee?.closeCallback?.(),Ee?.remove(),Ee=void 0};function m0(){Yf||(Yf=!0,document.addEventListener("keydown",e=>{e.key==="Enter"&&!e.ctrlKey&&!e.altKey&&!e.shiftKey&&!e.metaKey&&Ee?.onEnter&&Ee.parentElement&&Ee.contains(e.target)&&Ee.onEnter()}))}var lr=ke;function h0({variant:e="chevron",open:t=!1,width:r=12,height:o=12,closedAngle:n=0,openAngle:i=90,animMs:s,animStyle:a="rotateCw",class:l=""}={}){let c=a==="rotateCw"?i>=n?i:i+360:a==="rotateCcw"?i<=n?i:i-360:i,f=`rotate(${n}deg)`,u=a==="flip"?`rotate(${c}deg) rotateX(180deg)`:`rotate(${c}deg)`,d=s!==void 0?`${s}ms`:"var(--anim-time, 200ms)",p=a==="none"?"none":`transform ${d} ease`,h=ar({viewBox:"0 0 12 12",fill:"none",class:j("inline-block shrink-0",l),style:`width: ${r}px; height: ${o}px; transition: ${p};`},e==="chevron"?Gf({points:"4 2 8.5 6 4 10",class:"stroke-current","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}):Vf({points:"4 2.5, 9.5 6, 4 9.5",class:"fill-current","stroke-linejoin":"round"})),b=t;function m(){h.style.transform=b?u:f}return Object.assign(h,{setOpen:_=>{b=_,m()}}),Object.defineProperty(h,"isOpen",{get:()=>b,enumerable:!0,configurable:!0}),m(),h}var Jf=h0;function g0(e={}){return ar({viewBox:"0 0 24 24",width:24,height:24,fill:"none",...e,class:j("info-icon",e.class)},Rn({"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":2,d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}))}var ls=g0;function b0({title:e="",initiallyOpen:t,open:r,class:o="",onOpenChange:n,headerClass:i="",titleClass:s="truncate",contentClass:a="",noHeader:l=!1,chevron:c,chevronSide:f="end",tabStop:u="header"},...d){let p=t??r??!1,h=d.length===1&&typeof d[0]=="function"?d[0]:d,b=hs(),m=c===void 0?null:typeof c=="string"?Jf({variant:c,open:p}):c,_=m===null||u!=="chevron"?null:sr({type:"button",class:"flex shrink-0 cursor-pointer items-center rounded border-none bg-transparent p-0.5",onclick:O=>{O.stopPropagation(),$(!P)}},m);_!==null&&_.textContent?.trim()===""&&_.setAttribute("aria-label",typeof e=="string"&&e!==""?e:"Toggle section");let T="cursor-pointer select-none hover:bg-black/5 dark:hover:bg-white/5 transition-colors",w=`grid grid-cols-[minmax(0,1fr)] transition-[grid-template-rows] duration-200 ease-out ${p?"grid-rows-[1fr]":"grid-rows-[0fr]"}`,S=_===null,z=_??m,A=l?null:C({class:j("flex items-center gap-2",!(m!==null&&f==="start")&&"justify-between",i,T),...S?{tabindex:0,role:"button",onkeydown:O=>{O.key!=="Enter"&&O.key!==" "||(O.preventDefault(),$(!P))}}:{},onclick:()=>$(!P)},...z!==null&&f==="start"?[z]:[],U({class:s},e),...z!==null&&f==="end"?[z]:[]),F=_??A,D=C({class:j("rounded-lg",!p&&"overflow-hidden",o)},...A===null?[]:[A],C({class:w,$ref:b("contentWrapper")},C({class:p?"":"overflow-hidden",$ref:b("contentClipper")},C({class:a,$ref:b("content")},...typeof h!="function"?h:[])))),P=!1,L=typeof h!="function";function $(O,ae=!1){if(b.contentClipper.inert=!O,m?.setOpen?.(O),F?.setAttribute("aria-expanded",String(O)),O!==P){if(P=O,P?D.dataset.open="":delete D.dataset.open,P&&!L&&typeof h=="function"&&(b.content.append(...so.toNodeArr(h())),L=!0),b.contentWrapper.classList.toggle("grid-rows-[1fr]",P),b.contentWrapper.classList.toggle("grid-rows-[0fr]",!P),P){let Y=Ke=>{Ke.propertyName==="grid-template-rows"&&(b.contentWrapper.removeEventListener("transitionend",Y),P&&(b.contentClipper.classList.remove("overflow-hidden"),D.classList.remove("overflow-hidden")))};b.contentWrapper.addEventListener("transitionend",Y)}else b.contentClipper.classList.add("overflow-hidden"),D.classList.add("overflow-hidden");ae||(P&&D.dispatchEvent(new CustomEvent("collapsible-open",{bubbles:!0})),n?.(P))}}return Object.assign(D,{open:()=>$(!0),close:()=>$(!1),toggle:()=>$(!P)}),Object.defineProperty(D,"isOpen",{get:()=>P,enumerable:!0,configurable:!0}),$(p,!0),D}var fs=b0;function x0(e,t){let r="h-4";typeof e=="string"?r=e:e&&(t=e,t.sizeClass&&(r=t.sizeClass));let n=r.startsWith("w-")?"inline-block":"";return C({...t?.attrs,class:j(r,n,t?.class,t?.attrs?.class)})}var eo=x0;var Pn={isBrowser:!("Deno"in globalThis),sleep(e){return new Promise(t=>setTimeout(t,e))},convertInlineMarkdownToHTML(e){let t=[],r=/(`{1,3})([^`]+?)\1|(\*{1,3})([^*]+?)\3|\[([^\]]+)]\(([^)]+)\)|~~([^~]+?)~~/g,o=0;return e.replaceAll(r,(n,i,s,a,l,c,f,u,d)=>{if(d>
51o&&t.push(e.slice(o,d)),i)i.length===1?t.push(U({class:"code"},s)):t.push(_n({},s));else if(a){let p={"*":"italic","**":"font-bold","***":"font-bold italic"};t.push(U({class:p[a]},l))}else c&&f?t.push(Et({href:f},c)):u&&t.push(Yr(u));o=d+n.length}),o<e.length&&t.push(e.slice(o)),t},deepMerge(...e){return e.reduce((t,r)=>{if(typeof t!="object"||typeof r!="object")return r;let o={...t};for(let n in r)o[n]=n in t?Pn.deepMerge(t[n],r[n]):r[n];return o},{})},initiateDownload(e){let t=document.createElement("a");t.href=e,t.download="",document.body.append(t),t.click(),t.remove()},downloadFile(e,t,r="application/octet-stream"){let o=new Blob([e],{type:r}),n=document.createElement("a");n.href=URL.createObjectURL(o),n.download=t,document.body.append(n),n.click(),n.remove(),URL.revokeObjectURL(n.href)},getOS(){let e=navigator.userAgent;return e.includes("Mac OS X")?"mac":e.includes("Linux")?"linux":e.includes("Windows")?"windows":"unknown"}};Qr({fn:Pn.convertInlineMarkdownToHTML,produces:["returns an array",[["a"],["a"]],"italics",[["*a*"],[U({class:"italic"},"a")]],"bold",[["**a**"],[U({class:"font-bold"},"a")]],"bold italic",[["***a***"],[U({class:"font-bold italic"},"a")]],"link",[["[a](b)"],[Et({href:"b"},"a")]],"code",[["`a`"],[U({class:"code"},"a")]],"strikethrough",[["~~a~~"],[Yr("a")]],"combined",[["a *b* c **d** e ***f*** g [h](i) j `k` *l*"],["a ",U({class:"italic"},"b")," c ",U({class:"font-bold"},"d")," e ",U({class:"font-bold italic"},"f")," g ",Et({href:"i"},"h")," j ",U({class:"code"},"k")," ",U({class:"italic"},"l")]]]});Qr({fn:Pn.deepMerge,produces:["handles arbitrary number of  objects",[[],{}],[[{}],{}],[[{},{}],{}],[[{},{},{}],{}],"merges objects",[[{a:1},{b:2}],{a:1,b:2}],[[{a:1},{b:2},{c:3}],{a:1,b:2,c:3}],"overwrites values",[[{a:1},{a:2}],{a:2}],[[{a:1},{a:2},{a:3}],{a:3}],"handles nested objects",[[{a:{b:1}},{a:{c:2}}],{a:{b:1,c:2}}],[[{a:{b:1}},{a:{b:2}}],{a:{b:2}}],[[{a:{b:1}},{a:{b:2}},{a:{b:3}}],{a:{b:3}}],"handles mixed nested objects",[[{a:{b:1}},{a:{c:2}},{a:{d:3}}],{a:{b:1,c:2,d:3}}],"handles multiple layers of nesting",[[{a:{b:{c:1}}},{a:{b:{d:2}}}],{a:{b:{c:1,d:2}}}]]});var Ce=Pn;function Ln(e,t){try{fetch("https://api.sonuscape.net/mouseless/client-event",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify([e,t]),keepalive:!0}).catch(()=>{})}catch{}}function y0(){if(document.visibilityState==="hidden"){let e=zn?"page_re-hidden":"page_hidden",t=zn?void 0:navigator.userAgent;us=Date.now(),zn=!0,Ln(e,{url:location.href,user_agent:t,duration_shown_s:Math.round((us-cs)/1e3)})}if(document.visibilityState==="visible"){if(!zn)return;cs=Date.now(),Ln("page_re-shown",{url:location.href,duration_hidden_s:Math.round((cs-us)/1e3)})}}var cs=Date.now(),us=Date.now(),zn=!1;Ce.isBrowser&&(Ln("page_loaded",{url:location.href,user_agent:navigator.userAgent}),document.addEventListener("visibilitychange",y0));var fr=Ln;var Zf="text-(--text-fg)",_0={buttonGroup:"flex justify-center gap-4 mt-4",mainInner:"p-8 rounded-lg space-y-12 text-left",mainOuter:`relative min-h-screen pb-16 ${Zf}`,mainTextColor:Zf,logoTextColor:"text-(--logo-fg)",mainTextColorAsBg:"bg-(--text-fg)",linkColor:"text-(--link-fg)",linkHoverUnderline:"text-(--link-fg) hover:underline",linkHoverUnderlineAlt:"text-(--link-fg-alt) hover:underline",linkHoverColor:"hover:text-(--link-fg)",linkHoverColorAlt:"hover:text-(--link-fg-alt)",iconHue:"hue-rotate-(--icon-hue)",logoHue:"hue-rotate-(--logo-hue)",iconBrightness:"brightness-(--icon-brightness)",iconSaturation:"saturate-(--icon-saturation)",emphasisBgColor:"bg-(--bg-emphasis)",newBadgeTextColor:"text-(--link-fg-alt)",bgColor:"bg-(--bg-main)",bgColorDark:"bg-(--bg-shade)",navHeaderBgColor:"bg-(--nav-bg)/60",buttonColors:{primary:"bg-(--btn-primary-bg) hover:bg-(--btn-primary-hover)",secondary:"bg-(--btn-secondary-bg) hover:bg-(--btn-secondary-hover)",tertiary:"bg-(--btn-tertiary-bg) hover:bg-(--btn-tertiary-hover)",neutral:"bg-(--btn-neutral-bg) hover:bg-(--btn-neutral-hover)",disabled:"bg-(--btn-disabled-bg) cursor-default text-(--btn-disabled-fg)",inverted:"text-(--btn-primary-bg) bg-(--btn-inverted-bg) hover:bg-(--btn-inverted-hover) ",invertedSecondary:"text-(--btn-secondary-bg) bg-(--btn-inverted-bg) hover:bg-(--btn-inverted-hover) "}};function Qf([e,t]){return typeof t=="string"?[e," "+t+" "]:[e,Object.fromEntries(Object.entries(t).map(Qf))]}var v0=Object.fromEntries(Object.entries(_0).map(Qf)),se=v0;var w0="https://api.sonuscape.net/mouseless/academic-discount",M0="[email protected]",ec=`Something went wrong -- please try again, or email us at ${M0}.`,tc="Submit",T0=/(^|\.)(edu|ac|sch)(\.[a-z]{2})?$|\.k12\.[a-z]{2}\.us$/i,S0=["student","alumni","univ","campus","school","schule","college","academ","institut","k12"],k0=["uni-"],E0=/^[^\s@]+@[^\s@]+\.[^\s@]+$/,C0=`No spam, no third parties, ever. Unsubscribe anytime.
52
53(Click for the full privacy policy)`;function A0(){return ar({viewBox:"0 0 24 24",fill:"none",class:"w-3 h-3 shrink-0 transition-transform duration-200"},Rn({"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":3,stroke:"currentColor",d:"M6 9l6 6 6-6"}))}function R0(e){let t=e.split("@")[1]?.toLowerCase();return t?T0.test(t)||t.split(".").some(r=>S0.some(o=>r.includes(o))||k0.some(o=>r.startsWith(o))):!1}function P0({class:e="",linkClass:t="",linkText:r="Academic discounts",linkTooltip:o,showInfoIcon:n=!0}={}){let i=Zr({type:"email",autocomplete:"email",placeholder:"[email protected]","aria-label":"Academic email address",class:"input text-sm flex-1 min-w-0",onkeydown:_=>{_.key==="Enter"&&(_.preventDefault(),h())}}),s=kt({variant:"primary",attrs:{class:"whitespace-nowrap",onclick:()=>void h()}},tc),a=C({class:"text-xs opacity-70 empty:hidden mt-1 px-1 wrap-break-word"}),l=Zr({type:"checkbox",class:"checkbox checkbox-sm"}),c=C(C({class:"flex items-center gap-2"},i,s),a,C({class:"flex items-center gap-2 mt-1 text-sm"},Ff({class:"flex items-center gap-2 cursor-pointer select-none"},l,"Also subscribe to the newsletter")),re({href:"/terms#newsletter",target:"_blank",rel:"noopener",class:"block w-fit ms-6 -mt-0.5 text-xs opacity-70 hover:opacity-100 "+se.linkHoverUnderline,$tooltip:C0},"Privacy")),f=fs({noHeader:!0,contentClass:"pt-3 pb-1",onOpenChange:_=>u.classList.toggle("-scale-y-100",_)},c),u=A0(),d=C({class:"flex items-center gap-1 w-fit cursor-pointer "+t,role:"button",tabindex:0,onclick:()=>
53f.toggle(),onkeydown:_=>{_.key!=="Enter"&&_.key!==" "||(_.preventDefault(),f.toggle())},$tooltip:o},...n?[ls({class:"w-4! h-4!"})]:[],U({class:"hover:underline"},r),u);function p(_,T=!1){a.textContent=_,a.classList.toggle("text-(--error-fg)",T),a.classList.toggle("opacity-70",!T)}async function h(){let _=i.value.trim();if(!E0.test(_)){p("Please enter a valid email address.",!0),i.focus();return}s.disabled=!0,s.textContent="Sending...",p("");let T=l.checked;try{let w=await fetch(w0,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({emailAddress:_,subscribeToNewsletter:T})}),S=await w.json().catch(()=>({}));if(!w.ok){console.error("Academic discount request rejected:",w.status,S.error),p(S.error||ec,!0),b();return}m(_,S.outcome),fr("academic_discount_requested",{outcome:S.outcome,subscribeToNewsletter:T})}catch(w){console.error("Error submitting academic discount request:",w),p(ec,!0),b()}}function b(){s.disabled=!1,s.textContent=tc}function m(_,T){let w=T?T==="code_sent":R0(_);c.replaceChildren(Te({class:"font-semibold"},"Request received"),Te({class:"text-sm mt-1 wrap-break-word"},w?`Discount code sent to ${_}.`:`The system couldn't auto-verify ${_} as an academic address, so we'll check your request manually and reply soon.`),Te({class:"text-sm mt-2 opacity-70"},"Please check your spam and promotions folders -- the mention of a discount can trigger certain filters."))}return C({class:"[contain:inline-size] "+e},d,f)}var rc=P0;var z0={clear(){let e=history.state;history.replaceState(e,document.title,location.pathname+location.search)},set(e){location.hash=e},is(e){return location.hash===e}},$n=z0;function L0(){let e=Zr({type:"email",class:"bg-[#fffcf8] flex-1 px-3 py-2 border border-gray-300 rounded-l placeholder-gray-400",placeholder:"Enter your email",onkeypress:async r=>{r.key==="Enter"&&await t()}});async function t(){let r=e.value;if(!$0(r)){alert("Please enter a valid email address.");return}try{let o=await fetch("https://api.sonuscape.net/mouseless/newsletter-subscription",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({emailAddress:r})});o.ok?lr.show({title:"Thank you for subscribing",autocloseMs:2500,buttonDefns:[]},["Your support and interest are genuinely appreciated!"]):(console.error("Error submitting newsletter subscription:",o.status),oc(o.status))}catch(o){console.error("Error submitting newsletter subscription:",o),oc()}}return C({class:"flex items-center mb-2"},e,kt({variant:"primary",attrs:{class:"rounded-l-none rounded-r",onclick:t}},"Sign up"))}function oc(e){lr.show({title:"An unexpected error occurred :("+(e?` (code: ${e})`:""),closeCallback:$n.clear},[U("Please try again later or contact "),Et({href:"mailto:[email protected]"},"[email protected]")])}function $0(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)}var nc=L0;function O0(){return lr({title:"Subscribe to our newsletter",buttonDefns:[{text:"Close",onclick:$n.clear}]},[Te({class:"mb-4"},"Stay up to date with the latest on Mouseless and other exciting Sonuscape projects."),nc(),eo("h-1"),Te({class:"mb-4 text-xs px-1"},"No spam, no third parties, ever. Unsubscribe anytime. See our full ",re({href:"/terms",class:se.linkHoverUnderline},"privacy policy"),".")])}var ic=O0;function N0(){return ss({items:[{href:"https://sonuscape.net",text:"\xA9 "+new Date().getFullYear()+" Sonuscape LLC"},{href:"/terms",text:"Privacy Policy & Terms of Service"},{text:"Newsletter",onclick:I0},{href:"mailto:[email protected]",text:"Contact"}]})}var ds;function I0(){ds=ds||ic(),ds.show()}var sc=N0;function F0(e){return`/docs/${e}.html`}function D0(){return"/docs/"}var ac={chapterHref:F0,homeHref:D0};function H0(e,t){Ce.isBrowser&&queueMicrotask(()=>{Date.now()>=new Date(t).getTime()&&e.remove()})}var lc=H0;function j0(e={}){let{siteName:t,siteHref:r,navItems:o=[],side:n="left",sticky:i=!1,showBackground:s=!1,iconPath:a="",showThemeToggle:l=!0,isSiteNameHiddenOnNarrow:c=!1}=e,f=n==="right"?"justify-between":"justify-start",u=i?" sticky top-0":"";e.class||="";let p=s?` mask-[linear-gradient(to_bottom,black_90%,transparent)] [-webkit-mask-image:linear-gradient(to_bottom,black_90%,transparent)] ${se.navHeaderBgColor} backdrop-blur-xs`:" ",h;return l&&(h=B0()),vn({class:`${e.class||""} ${u} ${p} z-50`},C({class:`rounded-lg flex ${f} items-center gap-4 sm:gap-8 px-3 sm:px-5 pt-3 pb-4`},...t?[re({href:r||"/",class:"flex items-center gap-2 sm:gap-3"},...a===""?[]:[If({src:a,class:"shrink-0 h-8 w-8 sm:h-10 sm:w-10 drop-shadow-lg"+se.logoHue})],wn({class:(c?"hidden md:block ":"")+"text-shadow text-2xl xs:text-3xl sm:text-4xl tracking-wider tk-quiche-sans"},t))]:[],Of({class:`flex items-center gap-3 min-[375px]:gap-4 sm:gap-8 ${n==="right"?"ml-auto":""}`},...o.map(X0),...h?[h]:[])))}function X0({href:e,text:t=e.replace(/[#/]/,""),newUntilISO:r}){let o=re({href:e.toLocaleLowerCase(),class:(r?"relative ":"")+`text-base sm:text-lg ${se.linkHoverColorAlt} transition-colors`},t);if(!r)return o;let n=U({class:"absolute -bottom-2 -right-1 leading-none text-2xs font-semibold uppercase tracking-wide"+se.newBadgeTextColor},"new");return o.append(n),lc(n,r),o}var q0=e=>`
54  mask-image: url('${"/img/theme_icons/"+e}');
55  mask-size: contain;
56  mask-repeat: no-repeat;
57  mask-position: center;
58`,fc={system:{class:"w-5 h-5 bg-(--text-fg)/50 dark:bg-(--text-fg)/85",icon:"sun-moon-filled.svg"},light:{class:"w-5 h-5 bg-(--text-fg)/50",icon:"sun-filled.svg"},dark:{class:"w-5 h-5 bg-(--text-fg)/85",icon:"moon-stars-filled.svg"}};(function(){if(!Ce.isBrowser)return;let t=["sun-moon-filled.svg","sun-filled.svg","moon-stars-filled.svg"];for(let r of t)new Image().src="/img/theme_icons/"+r})();function B0(){let e={};function t(l){return e[l]??=C({class:fc[l].class,style:q0(fc[l].icon)}),e[l]}let r="system",o="light",n=["system","light","dark"],i=sr({class:"flex items-center justify-center -ml-2 w-8 h-8 rounded-full text-lg bg-white/0 hover:bg-black/5 dark:hover:bg-white/7 transition-colors cursor-pointer select-none",title:`Current theme: ${r}`,onclick:()=>{let l=(n.indexOf(r)+1)%n.length;r=n[l],a(r)}},t(r));Ce.isBrowser&&queueMicrotask(s);function s(){let l=localStorage.getItem("theme")||"system";o=globalThis.matchMedia("(prefers-color-scheme: dark)").matches?"dar
58k":"light",n=[],l==="system"&&o==="light"?n.push("system","dark","light"):l==="system"&&o==="dark"?n.push("system","light","dark"):l==="light"&&o==="light"||l==="light"&&o==="dark"?n.push("light","dark","system"):l==="dark"&&o==="light"?n.push("dark","system","light"):l==="dark"&&o==="dark"?n.push("dark","light","system"):n.push("system","light","dark"),r=l,a(r,!0),globalThis.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",c=>{o=c.matches?"dark":"light",r==="system"&&(document.documentElement.dataset.theme=o,fr("system_theme_change",{theme:"system",system:o}))})}function a(l,c=!1){if(l==="system"){localStorage.removeItem("theme");let f=globalThis.matchMedia("(prefers-color-scheme: dark)").matches;document.documentElement.dataset.theme=f?"dark":"light"}else localStorage.setItem("theme",l),document.documentElement.dataset.theme=l;c?fr("theme_load",{theme:l,system:o}):fr("theme_change",{theme:l,system:o}),i&&(i.innerHTML="",i.append(t(l)),i.title=`Theme: ${l.charAt(0).toUpperCase()+l.slice(1)}`)}return i}var cc=j0;var U0="2026-09-15T00:00:00Z";function W0(){return cc({siteName:"mouseless",siteHref:"/",sticky:!0,side:"right",class:se.mainTextColor,showBackground:!0,iconPath:"/img/social_icons/mouseless.png",isSiteNameHiddenOnNarrow:!0,navItems:[{href:ac.homeHref(),text:"Docs"},{href:"/faq",text:"FAQ"},{href:"/support",text:"Support"},{href:"/training",text:"Training",newUntilISO:U0}]})}var uc=W0;function K0(e){return $f({class:se.mainOuter},C({style:"zoom: 1.1"},uc(),C({class:"py-6 px-8 w-full"},eo("h-6"),...e),sc()))}var dc=K0;function pc({title:e,id:t,text:r,trailingEls:o,sections:n,class_:i="",titleClass:s="",textClass:a="",spacingClass:l="space-y-12",useHr:c=!1},f=1){let u=[];if(e){let d=f===1?vn(wn({class:"text-4xl max-w-4xl "+s},e)):f===2?Mn({class:"text-2xl mb-4 "+s},e):Lf({class:"text-lg mb-4 font-medium "+s},e);u.push(d)}if(r){let d=Array.isArray(r)?r:[r];for(let p of d.values()){let h=Ce.convertInlineMarkdownToHTML(p),b=(f===1?"max-w-3xl":"mb-3")+(p.startsWith("- ")?" pl-2 -indent-2":"")+" mb-3 text-lg "+a;u.push(Te({class:b},...h))}}return o&&u.push(...o),n&&u.push(...n.flatMap(d=>[pc(d,f+1),c?Tn({class:"border-black/10"}):""])),f===1?C({class:"flex justify-center "+i,...t&&{id:t}},C({class:"rounded-lg text-left "+l},...u)):Nf({class:"max-w-3xl mb-10"+(t?" scroll-mt-24":""),...t&&{id:t}},...u)}var mc=pc;var aE={title:"Mouseless FAQ \u2014 licenses, subscriptions, and privacy",description:"Answers to common questions about Mouseless: what a license covers, moving between machines, subscriptions, academic discounts, invoices, and privacy."};function hc(){return dc([C({class:"flex flex-col items-center gap-4 mb-16"},mc({title:"Mouseless FAQ",titleClass:"tk-quiche-sans",spacingClass:"space-y-8",useHr:!0,sections:[{title:"License",titleClass:"tk-quiche-sans font-bold",text:["**Scope**","A lifetime or subscription license is valid for all current and future versions of Mouseless, across all platforms (macOS, Windows, Linux).  Each license can be activated on 5 machines.","**Machine transfers**","Machine transfers are handled simply by entering your license key on a new machine -- if you try to activate beyond the 5-machine limit, you will be presented with a dialog to deactivate a prior machine or cancel.","**Refresh period**","Currently, licenses must be validated at least every 30 days -- the app attempts to do this automatically after 10 days, and starting at 20 days, if it hasn't successfully validated (e.g. due to no network connection), it will alert you.","**Offline licensing**","For lifetime license holders, network-less activation and refresh is available for air-gapped or network-restricted machines.  Choose offline licensing when first starting the app, or from the Mouseless menu (Tools > Offline Licensing).","See the [docs](https://mouseless.click/docs/offline_licensing.html) for more details.","**Trial licenses**",`Currently, trial licenses require a network connection on startup to validate.
59
60If you start a trial and can't fully use it due to technical issues, please contact [support](mailto:[email protected]) for a fresh trial period.`]},{title:"Academic discounts",titleClass:"tk-quiche-sans font-bold",text:["Request a code below with **your academic institution email address**, and we'll send you **25% off** the lifetime license or first subscription payment.  You can use a different email address during the purchase process.","Please be sure to check your spam and promotions (if applicable) folders for our reply -- the mention of a discount might trigger certain filters."],trailingEls:[rc({class:"max-w-md mt-1",linkClass:se.linkColor,linkText:"Request a discount code",showInfoIcon:!1})]},{title:"Invoice customization",titleClass:"tk-quiche-sans font-bold",text:["**For business expense reporting** or other reasons, you can customize an invoice through our [customer portal](https://customer-portal.paddle.com/cpl_01hrmzaqeg8mdy82whff7paa38) after you make a purchase.  Each invoice can be updated **one time** only.  You can update your name, company, tax id, and address fields (other than country)."]},{title:"Subscriptions",titleClass:"tk-quiche-sans font-bold",text:["To update your payment method or cancel a subscription, you can use the links in your subscription confirmation email from Paddle, or use our [customer portal](https://customer-portal.paddle.com/cpl_01hrmzaqeg8mdy82whff7paa38)."]},{title:"Security and Privacy",titleClass:"tk-quiche-sans font-bold pb-2",textClass:"pb-2",text:["Your security and privacy are our number one priority. We take the following measures to protect you and your data."],sections:[{text:["**Minimal data collection**",`Mouseless collects only the very minimum data needed to activate and validate licenses, and to check for updates (if you have automatic checking enabled, or choose to 'check for updates' from the menu).  The only data collected by the app are: a securely-hashed, anonymized machine identifier; your license key; the version of Mouseless you are using; and your OS version and architecture (e.g. "macOS 26 arm64").  Please see our full [privacy policy](/terms) for more details.`]},{text:["**Secure by design**","Mouseless minimizes attack surface area and takes advantage of the latest security features of the operating system to protect your data.  On macOS, this includes hardened runtime and using the minimal entitlements for Mouseless to function."]},{text:["**Robust privacy measures and transparency**","Mouseless requires a low-level keyboard event hook so that it can utilize global hotkeys and suppress keyboard events to other apps when the overlay is up.  We take this privilege very seriously, and have the following measures in place for your security and peace of mind:","- **Strict boundaries**: Keypress (or any other HID input) data is *never* transmitted to disk or network.","- **Short data life**: Keypress data in memory is strictly minimized: only current modifier state and up to 3 keydown/keyup events are stored at a time (5 if the user invokes 'display input' mode e.g. for demoing or troubleshooting).","- **Memory hygiene**: Input data is stored in buffers that are zeroed-out before release, preventing persistence in deallocated memory.","- **Total transparency**: All disk and network activity is transparently viewable via standard system monitoring tools. Network activity is limited to licensing and optional update checks, and offline/air-gapped activation is available for paid licenses."]}]}]}))])}Ce.isBrowser&&Df("faq",hc);var lE=hc;export{lE as default,aE as meta};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.