@mthines/reaper-mcp 0.19.0 → 0.71.0-beta.83.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -570
- package/bridge-ui/mcp_bridge.html +129 -0
- package/bridge-ui/mcp_bridge.webmanifest +16 -0
- package/bridge-ui/mcp_bridge_icon_192.png +0 -0
- package/bridge-ui/mcp_bridge_icon_512.png +0 -0
- package/bridge-ui/mcp_bridge_sw.js +35 -0
- package/claude/agents/plugin-researcher.md +188 -0
- package/claude/knowledge/reference/aesthetics-scoring.md +48 -0
- package/{knowledge → claude/knowledge}/reference/common-mistakes.md +1 -1
- package/claude/knowledge/reference/lorekit-setup.md +36 -0
- package/claude/knowledge/reference/memory-protocol.md +377 -0
- package/{knowledge → claude/knowledge}/reference/metering.md +5 -5
- package/claude/knowledge/reference/perceived-loudness.md +182 -0
- package/{knowledge → claude/knowledge}/workflows/editing.md +4 -0
- package/{knowledge → claude/knowledge}/workflows/gain-staging.md +21 -23
- package/{knowledge → claude/knowledge}/workflows/learn-plugin.md +15 -48
- package/{knowledge → claude/knowledge}/workflows/master-bus.md +13 -1
- package/claude/knowledge/workflows/section-levels.md +138 -0
- package/{knowledge → claude/knowledge}/workflows/session-prep.md +4 -0
- package/claude/knowledge/workflows/transient-lighting.md +52 -0
- package/claude/skills/critique/SKILL.md +131 -0
- package/claude/skills/editing/SKILL.md +281 -0
- package/claude/skills/learn-plugin/SKILL.md +210 -0
- package/claude/skills/mastering/SKILL.md +151 -0
- package/claude/skills/mix-memory/SKILL.md +140 -0
- package/claude/skills/mixer/SKILL.md +253 -0
- package/claude/skills/new-extension/SKILL.md +324 -0
- package/main.js +7887 -1945
- package/package.json +17 -15
- package/reaper/CLAUDE.md +22 -4
- package/reaper/mcp_actions_lib.lua +375 -0
- package/reaper/mcp_analyzer.jsfx +27 -12
- package/reaper/mcp_arrange_lib.lua +949 -0
- package/reaper/mcp_bridge.lua +2331 -758
- package/reaper/mcp_edit_views_lib.lua +1378 -0
- package/reaper/mcp_envelopes_lib.lua +748 -0
- package/reaper/mcp_extensions_lib.lua +55 -0
- package/reaper/mcp_fxstate_lib.lua +144 -0
- package/reaper/mcp_gain_trace.jsfx +126 -0
- package/reaper/mcp_items_lib.lua +877 -0
- package/reaper/mcp_lufs_meter.jsfx +16 -13
- package/reaper/mcp_midi_lib.lua +555 -0
- package/reaper/mcp_mixing_lib.lua +1021 -0
- package/reaper/mcp_plan_lib.lua +801 -0
- package/reaper/mcp_prefs_lib.lua +127 -0
- package/reaper/mcp_project_lib.lua +1088 -0
- package/reaper/mcp_recording_lib.lua +595 -0
- package/reaper/mcp_render_lib.lua +492 -0
- package/reaper/mcp_snapshot_lib.lua +547 -120
- package/reaper/mcp_snapshot_next.lua +10 -4
- package/reaper/mcp_snapshot_prev.lua +11 -4
- package/reaper/mcp_snapshot_quick_save.lua +7 -32
- package/reaper/mcp_snapshots_ui_lib.lua +258 -0
- package/reaper/mcp_tracks_lib.lua +409 -0
- package/sidecar/analysis.py +661 -0
- package/sidecar/chords.py +96 -0
- package/sidecar/mixcheck.py +295 -0
- package/sidecar/requirements-chords.txt +6 -0
- package/sidecar/requirements-separation.txt +3 -0
- package/sidecar/requirements.txt +17 -0
- package/sidecar/separation.py +142 -0
- package/sidecar/server.py +622 -0
- package/sidecar/tests/test_analysis.py +249 -0
- package/sidecar/tests/test_chords.py +117 -0
- package/sidecar/tests/test_mixcheck.py +163 -0
- package/sidecar/tests/test_separation.py +73 -0
- package/sidecar/tests/test_server.py +464 -0
- package/sidecar/tests/test_verify.py +243 -0
- package/sidecar/tests/test_voice_render.py +268 -0
- package/sidecar/tests/test_voice_sketch.py +140 -0
- package/sidecar/verify.py +224 -0
- package/sidecar/voice_render.py +295 -0
- package/sidecar/voice_sketch.py +280 -0
- package/claude-agents/critique.md +0 -147
- package/claude-agents/editor.md +0 -184
- package/claude-agents/levels.md +0 -107
- package/claude-agents/mastering.md +0 -129
- package/claude-agents/mixer.md +0 -248
- package/claude-agents/preflight.md +0 -149
- package/claude-agents/producer.md +0 -159
- package/claude-agents/setup.md +0 -150
- package/claude-agents/stems.md +0 -135
- package/claude-rules/architecture.md +0 -39
- package/claude-rules/development.md +0 -54
- package/claude-rules/lua-bridge.md +0 -50
- package/claude-rules/testing.md +0 -42
- package/claude-skills/learn-plugin.md +0 -123
- package/knowledge/CLAUDE.md +0 -71
- package/knowledge/plugins/_template.md +0 -82
- package/knowledge/plugins/fabfilter/pro-c-2.md +0 -117
- package/knowledge/plugins/fabfilter/pro-l-2.md +0 -95
- package/knowledge/plugins/fabfilter/pro-q-3.md +0 -112
- package/knowledge/plugins/neural-dsp/helix-native.md +0 -104
- package/knowledge/plugins/stock-reaper/js-1175-compressor.md +0 -94
- package/knowledge/plugins/stock-reaper/rea-comp.md +0 -100
- package/knowledge/plugins/stock-reaper/rea-delay.md +0 -95
- package/knowledge/plugins/stock-reaper/rea-eq.md +0 -103
- package/knowledge/plugins/stock-reaper/rea-gate.md +0 -99
- package/knowledge/plugins/stock-reaper/rea-limit.md +0 -75
- package/knowledge/plugins/stock-reaper/rea-verb.md +0 -76
- package/knowledge/reference/perceived-loudness.md +0 -122
- package/reaper/mcp_snapshot_manager.lua +0 -1001
- /package/{knowledge → claude/knowledge}/genres/_template.md +0 -0
- /package/{knowledge → claude/knowledge}/genres/electronic.md +0 -0
- /package/{knowledge → claude/knowledge}/genres/hip-hop.md +0 -0
- /package/{knowledge → claude/knowledge}/genres/metal.md +0 -0
- /package/{knowledge → claude/knowledge}/genres/orchestral.md +0 -0
- /package/{knowledge → claude/knowledge}/genres/pop.md +0 -0
- /package/{knowledge → claude/knowledge}/genres/rock.md +0 -0
- /package/{knowledge → claude/knowledge}/reference/compression.md +0 -0
- /package/{knowledge → claude/knowledge}/reference/frequencies.md +0 -0
- /package/{knowledge → claude/knowledge}/workflows/delivery.md +0 -0
- /package/{knowledge → claude/knowledge}/workflows/drum-bus.md +0 -0
- /package/{knowledge → claude/knowledge}/workflows/low-end.md +0 -0
- /package/{knowledge → claude/knowledge}/workflows/stem-prep.md +0 -0
- /package/{knowledge → claude/knowledge}/workflows/vocal-chain.md +0 -0
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<title>MCP Bridge</title>
|
|
7
|
+
<meta name="theme-color" content="#0e0f11">
|
|
8
|
+
<link rel="manifest" href="./mcp_bridge.webmanifest">
|
|
9
|
+
<link rel="icon" type="image/png" href="./mcp_bridge_icon_192.png">
|
|
10
|
+
<link rel="apple-touch-icon" href="./mcp_bridge_icon_192.png">
|
|
11
|
+
<script type="module" crossorigin>(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))s(l);new MutationObserver(l=>{for(const a of l)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const a={};return l.integrity&&(a.integrity=l.integrity),l.referrerPolicy&&(a.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?a.credentials="include":l.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function s(l){if(l.ep)return;l.ep=!0;const a=n(l);fetch(l.href,a)}})();var j3={exports:{}},nm={};/**
|
|
12
|
+
* @license React
|
|
13
|
+
* react-jsx-runtime.production.js
|
|
14
|
+
*
|
|
15
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
16
|
+
*
|
|
17
|
+
* This source code is licensed under the MIT license found in the
|
|
18
|
+
* LICENSE file in the root directory of this source tree.
|
|
19
|
+
*/var G6=Symbol.for("react.transitional.element"),F6=Symbol.for("react.fragment");function N3(t,e,n){var s=null;if(n!==void 0&&(s=""+n),e.key!==void 0&&(s=""+e.key),"key"in e){n={};for(var l in e)l!=="key"&&(n[l]=e[l])}else n=e;return e=n.ref,{$$typeof:G6,type:t,key:s,ref:e!==void 0?e:null,props:n}}nm.Fragment=F6;nm.jsx=N3;nm.jsxs=N3;j3.exports=nm;var o=j3.exports,T3={exports:{}},sm={},E3={exports:{}},$3={};/**
|
|
20
|
+
* @license React
|
|
21
|
+
* scheduler.production.js
|
|
22
|
+
*
|
|
23
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
24
|
+
*
|
|
25
|
+
* This source code is licensed under the MIT license found in the
|
|
26
|
+
* LICENSE file in the root directory of this source tree.
|
|
27
|
+
*/(function(t){function e(S,$){var L=S.length;S.push($);e:for(;0<L;){var z=L-1>>>1,D=S[z];if(0<l(D,$))S[z]=$,S[L]=D,L=z;else break e}}function n(S){return S.length===0?null:S[0]}function s(S){if(S.length===0)return null;var $=S[0],L=S.pop();if(L!==$){S[0]=L;e:for(var z=0,D=S.length,U=D>>>1;z<U;){var I=2*(z+1)-1,F=S[I],P=I+1,X=S[P];if(0>l(F,L))P<D&&0>l(X,F)?(S[z]=X,S[P]=L,z=P):(S[z]=F,S[I]=L,z=I);else if(P<D&&0>l(X,L))S[z]=X,S[P]=L,z=P;else break e}}return $}function l(S,$){var L=S.sortIndex-$.sortIndex;return L!==0?L:S.id-$.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var i=Date,r=i.now();t.unstable_now=function(){return i.now()-r}}var c=[],u=[],d=1,m=null,f=3,h=!1,g=!1,y=!1,b=!1,p=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function x(S){for(var $=n(u);$!==null;){if($.callback===null)s(u);else if($.startTime<=S)s(u),$.sortIndex=$.expirationTime,e(c,$);else break;$=n(u)}}function k(S){if(y=!1,x(S),!g)if(n(c)!==null)g=!0,w||(w=!0,O());else{var $=n(u);$!==null&&T(k,$.startTime-S)}}var w=!1,R=-1,j=5,N=-1;function E(){return b?!0:!(t.unstable_now()-N<j)}function C(){if(b=!1,w){var S=t.unstable_now();N=S;var $=!0;try{e:{g=!1,y&&(y=!1,v(R),R=-1),h=!0;var L=f;try{t:{for(x(S),m=n(c);m!==null&&!(m.expirationTime>S&&E());){var z=m.callback;if(typeof z=="function"){m.callback=null,f=m.priorityLevel;var D=z(m.expirationTime<=S);if(S=t.unstable_now(),typeof D=="function"){m.callback=D,x(S),$=!0;break t}m===n(c)&&s(c),x(S)}else s(c);m=n(c)}if(m!==null)$=!0;else{var U=n(u);U!==null&&T(k,U.startTime-S),$=!1}}break e}finally{m=null,f=L,h=!1}$=void 0}}finally{$?O():w=!1}}}var O;if(typeof _=="function")O=function(){_(C)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,A=M.port2;M.port1.onmessage=C,O=function(){A.postMessage(null)}}else O=function(){p(C,0)};function T(S,$){R=p(function(){S(t.unstable_now())},$)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(S){S.callback=null},t.unstable_forceFrameRate=function(S){0>S||125<S?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<S?Math.floor(1e3/S):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_next=function(S){switch(f){case 1:case 2:case 3:var $=3;break;default:$=f}var L=f;f=$;try{return S()}finally{f=L}},t.unstable_requestPaint=function(){b=!0},t.unstable_runWithPriority=function(S,$){switch(S){case 1:case 2:case 3:case 4:case 5:break;default:S=3}var L=f;f=S;try{return $()}finally{f=L}},t.unstable_scheduleCallback=function(S,$,L){var z=t.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?z+L:z):L=z,S){case 1:var D=-1;break;case 2:D=250;break;case 5:D=1073741823;break;case 4:D=1e4;break;default:D=5e3}return D=L+D,S={id:d++,callback:$,priorityLevel:S,startTime:L,expirationTime:D,sortIndex:-1},L>z?(S.sortIndex=L,e(u,S),n(c)===null&&S===n(u)&&(y?(v(R),R=-1):y=!0,T(k,L-z))):(S.sortIndex=D,e(c,S),g||h||(g=!0,w||(w=!0,O()))),S},t.unstable_shouldYield=E,t.unstable_wrapCallback=function(S){var $=f;return function(){var L=f;f=$;try{return S.apply(this,arguments)}finally{f=L}}}})($3);E3.exports=$3;var P6=E3.exports,R3={exports:{}},Ze={};/**
|
|
28
|
+
* @license React
|
|
29
|
+
* react.production.js
|
|
30
|
+
*
|
|
31
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
32
|
+
*
|
|
33
|
+
* This source code is licensed under the MIT license found in the
|
|
34
|
+
* LICENSE file in the root directory of this source tree.
|
|
35
|
+
*/var H0=Symbol.for("react.transitional.element"),q6=Symbol.for("react.portal"),Y6=Symbol.for("react.fragment"),X6=Symbol.for("react.strict_mode"),K6=Symbol.for("react.profiler"),Q6=Symbol.for("react.consumer"),Z6=Symbol.for("react.context"),W6=Symbol.for("react.forward_ref"),J6=Symbol.for("react.suspense"),eS=Symbol.for("react.memo"),C3=Symbol.for("react.lazy"),tS=Symbol.for("react.activity"),nS=Symbol.for("react.view_transition"),Sv=Symbol.iterator;function sS(t){return t===null||typeof t!="object"?null:(t=Sv&&t[Sv]||t["@@iterator"],typeof t=="function"?t:null)}var M3={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A3=Object.assign,L3={};function Xr(t,e,n){this.props=t,this.context=e,this.refs=L3,this.updater=n||M3}Xr.prototype.isReactComponent={};Xr.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};Xr.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function O3(){}O3.prototype=Xr.prototype;function V0(t,e,n){this.props=t,this.context=e,this.refs=L3,this.updater=n||M3}var G0=V0.prototype=new O3;G0.constructor=V0;A3(G0,Xr.prototype);G0.isPureReactComponent=!0;var kv=Array.isArray;function F1(){}var Zt={H:null,A:null,T:null,S:null},D3=Object.prototype.hasOwnProperty;function F0(t,e,n){var s=n.ref;return{$$typeof:H0,type:t,key:e,ref:s!==void 0?s:null,props:n}}function lS(t,e){return F0(t.type,e,t.props)}function P0(t){return typeof t=="object"&&t!==null&&t.$$typeof===H0}function aS(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var wv=/\/+/g;function zm(t,e){return typeof t=="object"&&t!==null&&t.key!=null?aS(""+t.key):e.toString(36)}function oS(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(F1,F1):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function Fi(t,e,n,s,l){var a=typeof t;(a==="undefined"||a==="boolean")&&(t=null);var i=!1;if(t===null)i=!0;else switch(a){case"bigint":case"string":case"number":i=!0;break;case"object":switch(t.$$typeof){case H0:case q6:i=!0;break;case C3:return i=t._init,Fi(i(t._payload),e,n,s,l)}}if(i)return l=l(t),i=s===""?"."+zm(t,0):s,kv(l)?(n="",i!=null&&(n=i.replace(wv,"$&/")+"/"),Fi(l,e,n,"",function(u){return u})):l!=null&&(P0(l)&&(l=lS(l,n+(l.key==null||t&&t.key===l.key?"":(""+l.key).replace(wv,"$&/")+"/")+i)),e.push(l)),1;i=0;var r=s===""?".":s+":";if(kv(t))for(var c=0;c<t.length;c++)s=t[c],a=r+zm(s,c),i+=Fi(s,e,n,a,l);else if(c=sS(t),typeof c=="function")for(t=c.call(t),c=0;!(s=t.next()).done;)s=s.value,a=r+zm(s,c++),i+=Fi(s,e,n,a,l);else if(a==="object"){if(typeof t.then=="function")return Fi(oS(t),e,n,s,l);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return i}function Yu(t,e,n){if(t==null)return t;var s=[],l=0;return Fi(t,s,"","",function(a){return e.call(n,a,l++)}),s}function iS(t){if(t._status===-1){var e=t._result,n=e();n.then(function(s){(t._status===0||t._status===-1)&&(t._status=1,t._result=s,n.status===void 0&&(n.status="fulfilled",n.value=s))},function(s){(t._status===0||t._status===-1)&&(t._status=2,t._result=s,n.status===void 0&&(n.status="rejected",n.reason=s))}),t._status===-1&&(t._status=0,t._result=n)}if(t._status===1)return t._result.default;throw t._result}var jv=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function z3(t){var e=Zt.T,n={};n.types=e!==null?e.types:null,Zt.T=n;try{var s=t(),l=Zt.S;l!==null&&l(n,s),typeof s=="object"&&s!==null&&typeof s.then=="function"&&s.then(F1,jv)}catch(a){jv(a)}finally{e!==null&&n.types!==null&&(e.types=n.types),Zt.T=e}}function B3(t){var e=Zt.T;if(e!==null){var n=e.types;n===null?e.types=[t]:n.indexOf(t)===-1&&n.push(t)}else z3(B3.bind(null,t))}var rS={map:Yu,forEach:function(t,e,n){Yu(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return Yu(t,function(){e++}),e},toArray:function(t){return Yu(t,function(e){return e})||[]},only:function(t){if(!P0(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};Ze.Activity=tS;Ze.Children=rS;Ze.Component=Xr;Ze.Fragment=Y6;Ze.Profiler=K6;Ze.PureComponent=V0;Ze.StrictMode=X6;Ze.Suspense=J6;Ze.ViewTransition=nS;Ze.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Zt;Ze.__COMPILER_RUNTIME={__proto__:null,c:function(t){return Zt.H.useMemoCache(t)}};Ze.addTransitionType=B3;Ze.cache=function(t){return function(){return t.apply(null,arguments)}};Ze.cacheSignal=function(){return null};Ze.cloneElement=function(t,e,n){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var s=A3({},t.props),l=t.key;if(e!=null)for(a in e.key!==void 0&&(l=""+e.key),e)!D3.call(e,a)||a==="key"||a==="__self"||a==="__source"||a==="ref"&&e.ref===void 0||(s[a]=e[a]);var a=arguments.length-2;if(a===1)s.children=n;else if(1<a){for(var i=Array(a),r=0;r<a;r++)i[r]=arguments[r+2];s.children=i}return F0(t.type,l,s)};Ze.createContext=function(t){return t={$$typeof:Z6,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:Q6,_context:t},t};Ze.createElement=function(t,e,n){var s,l={},a=null;if(e!=null)for(s in e.key!==void 0&&(a=""+e.key),e)D3.call(e,s)&&s!=="key"&&s!=="__self"&&s!=="__source"&&(l[s]=e[s]);var i=arguments.length-2;if(i===1)l.children=n;else if(1<i){for(var r=Array(i),c=0;c<i;c++)r[c]=arguments[c+2];l.children=r}if(t&&t.defaultProps)for(s in i=t.defaultProps,i)l[s]===void 0&&(l[s]=i[s]);return F0(t,a,l)};Ze.createRef=function(){return{current:null}};Ze.forwardRef=function(t){return{$$typeof:W6,render:t}};Ze.isValidElement=P0;Ze.lazy=function(t){return{$$typeof:C3,_payload:{_status:-1,_result:t},_init:iS}};Ze.memo=function(t,e){return{$$typeof:eS,type:t,compare:e===void 0?null:e}};Ze.startTransition=z3;Ze.unstable_useCacheRefresh=function(){return Zt.H.useCacheRefresh()};Ze.use=function(t){return Zt.H.use(t)};Ze.useActionState=function(t,e,n){return Zt.H.useActionState(t,e,n)};Ze.useCallback=function(t,e){return Zt.H.useCallback(t,e)};Ze.useContext=function(t){return Zt.H.useContext(t)};Ze.useDebugValue=function(){};Ze.useDeferredValue=function(t,e){return Zt.H.useDeferredValue(t,e)};Ze.useEffect=function(t,e){return Zt.H.useEffect(t,e)};Ze.useEffectEvent=function(t){return Zt.H.useEffectEvent(t)};Ze.useId=function(){return Zt.H.useId()};Ze.useImperativeHandle=function(t,e,n){return Zt.H.useImperativeHandle(t,e,n)};Ze.useInsertionEffect=function(t,e){return Zt.H.useInsertionEffect(t,e)};Ze.useLayoutEffect=function(t,e){return Zt.H.useLayoutEffect(t,e)};Ze.useMemo=function(t,e){return Zt.H.useMemo(t,e)};Ze.useOptimistic=function(t,e){return Zt.H.useOptimistic(t,e)};Ze.useReducer=function(t,e,n){return Zt.H.useReducer(t,e,n)};Ze.useRef=function(t){return Zt.H.useRef(t)};Ze.useState=function(t){return Zt.H.useState(t)};Ze.useSyncExternalStore=function(t,e,n){return Zt.H.useSyncExternalStore(t,e,n)};Ze.useTransition=function(){return Zt.H.useTransition()};Ze.version="19.3.1";R3.exports=Ze;var Q=R3.exports,I3={exports:{}},Zn={};/**
|
|
36
|
+
* @license React
|
|
37
|
+
* react-dom.production.js
|
|
38
|
+
*
|
|
39
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
40
|
+
*
|
|
41
|
+
* This source code is licensed under the MIT license found in the
|
|
42
|
+
* LICENSE file in the root directory of this source tree.
|
|
43
|
+
*/var cS=Q;function U3(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function qa(){}var ps={d:{f:qa,r:function(){throw Error(U3(522))},D:qa,C:qa,L:qa,m:qa,X:qa,S:qa,M:qa},p:0,findDOMNode:null},uS=Symbol.for("react.portal"),dS=Symbol.for("react.recoverable"),Nv=Symbol.for("react.optimistic_key");function fS(t,e,n){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:uS,key:s==null?null:s===Nv?Nv:""+s,children:t,containerInfo:e,implementation:n}}var Rc=cS.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function lm(t,e){if(t==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}Zn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=ps;Zn.browser=function(t){return{$$typeof:dS,_reason:t}};Zn.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(U3(299));return fS(t,e,null,n)};Zn.flushSync=function(t){var e=Rc.T,n=ps.p;try{if(Rc.T=null,ps.p=2,t)return t()}finally{Rc.T=e,ps.p=n,ps.d.f()}};Zn.preconnect=function(t,e){typeof t=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,ps.d.C(t,e))};Zn.prefetchDNS=function(t){typeof t=="string"&&ps.d.D(t)};Zn.preinit=function(t,e){if(typeof t=="string"&&e&&typeof e.as=="string"){var n=e.as,s=lm(n,e.crossOrigin),l=typeof e.integrity=="string"?e.integrity:void 0,a=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;n==="style"?ps.d.S(t,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:s,integrity:l,fetchPriority:a}):n==="script"&&ps.d.X(t,{crossOrigin:s,integrity:l,fetchPriority:a,nonce:typeof e.nonce=="string"?e.nonce:void 0})}};Zn.preinitModule=function(t,e){if(typeof t=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var n=lm(e.as,e.crossOrigin);ps.d.M(t,{crossOrigin:n,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0})}}else e==null&&ps.d.M(t)};Zn.preload=function(t,e){if(typeof t=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var n=e.as,s=lm(n,e.crossOrigin);ps.d.L(t,n,{crossOrigin:s,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0})}};Zn.preloadModule=function(t,e){if(typeof t=="string")if(e){var n=lm(e.as,e.crossOrigin);ps.d.m(t,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:n,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0})}else ps.d.m(t)};Zn.requestFormReset=function(t){ps.d.r(t)};Zn.unstable_batchedUpdates=function(t,e){return t(e)};Zn.useFormState=function(t,e,n){return Rc.H.useFormState(t,e,n)};Zn.useFormStatus=function(){return Rc.H.useHostTransitionStatus()};Zn.version="19.3.1";function H3(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(H3)}catch(t){console.error(t)}}H3(),I3.exports=Zn;var mS=I3.exports;/**
|
|
44
|
+
* @license React
|
|
45
|
+
* react-dom-client.production.js
|
|
46
|
+
*
|
|
47
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
48
|
+
*
|
|
49
|
+
* This source code is licensed under the MIT license found in the
|
|
50
|
+
* LICENSE file in the root directory of this source tree.
|
|
51
|
+
*/var En=P6,V3=Q,hS=mS;function ve(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function G3(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Mu(t){for(var e=t,n=e;n&&!n.alternate;)e=n,e.flags&4098&&(t=e.return),n=e.return;for(;e.return;)e=e.return;return e.tag===3?t:null}function F3(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function P3(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Tv(t){if(Mu(t)!==t)throw Error(ve(188))}function pS(t){var e=t.alternate;if(!e){if(e=Mu(t),e===null)throw Error(ve(188));return e!==t?null:t}for(var n=t,s=e;;){var l=n.return;if(l===null)break;var a=l.alternate;if(a===null){if(s=l.return,s!==null){n=s;continue}break}if(l.child===a.child){for(a=l.child;a;){if(a===n)return Tv(l),t;if(a===s)return Tv(l),e;a=a.sibling}throw Error(ve(188))}if(n.return!==s.return)n=l,s=a;else{for(var i=!1,r=l.child;r;){if(r===n){i=!0,n=l,s=a;break}if(r===s){i=!0,s=l,n=a;break}r=r.sibling}if(!i){for(r=a.child;r;){if(r===n){i=!0,n=a,s=l;break}if(r===s){i=!0,s=a,n=l;break}r=r.sibling}if(!i)throw Error(ve(189))}}if(n.alternate!==s)throw Error(ve(190))}if(n.tag!==3)throw Error(ve(188));return n.stateNode.current===n?t:e}function q3(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=q3(t),e!==null)return e;t=t.sibling}return null}function Ls(t,e,n,s,l,a){for(;t!==null;){if((t.tag===5||t.tag===27||t.tag===6)&&n(t,s,l,a)||(t.tag!==22||t.memoizedState===null)&&(e||t.tag!==5&&t.tag!==27)&&Ls(t.child,e,n,s,l,a))return!0;t=t.sibling}return!1}function Ti(t){for(t=t.return;t!==null;){if(t.tag===3||t.tag===5||t.tag===27)return t;t=t.return}return null}function Ev(t){var e=!1;for(t=t.return;t!==null&&(t.tag===4&&(e=!0),!(t.tag===3||t.tag===5||t.tag===27));)t=t.return;return e}function Y3(t){var e=[null,null],n=Ti(t);return n===null||X3(e,t,n.child,{foundSelf:!1}),e}function X3(t,e,n,s){for(;n!==null;){if(n===e)s.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(s.foundSelf)return t[1]=n,!0;t[0]=n}else if((n.tag!==22||n.memoizedState===null)&&X3(t,e,n.child,s))return!0;n=n.sibling}return!1}function Tn(t){switch(t.tag){case 5:case 27:case 6:return t.stateNode;case 3:return t.stateNode.containerInfo;default:throw Error(ve(559))}}var Qi=null,P1=null;function vS(t,e,n){return t===n?!0:t===e?(Qi=t,!0):!1}function gS(t,e,n){return t===n?(P1=t,!1):t===e?(P1!==null&&(Qi=t),!0):!1}function $v(t){if(t===null)return null;do t=t===null?null:t.return;while(t&&t.tag!==5&&t.tag!==27&&t.tag!==3);return t||null}function q1(t,e,n){for(var s=0,l=t;l;l=n(l))s++;l=0;for(var a=e;a;a=n(a))l++;for(;0<s-l;)t=n(t),s--;for(;0<l-s;)e=n(e),l--;for(;s--;){if(t===e||e!==null&&t===e.alternate)return t;t=n(t),e=n(e)}return null}var Xt=Object.assign,_S=Symbol.for("react.element"),Xu=Symbol.for("react.transitional.element"),yc=Symbol.for("react.portal"),Zi=Symbol.for("react.fragment"),K3=Symbol.for("react.strict_mode"),Y1=Symbol.for("react.profiler"),Q3=Symbol.for("react.consumer"),Jl=Symbol.for("react.context"),q0=Symbol.for("react.forward_ref"),X1=Symbol.for("react.suspense"),K1=Symbol.for("react.suspense_list"),Y0=Symbol.for("react.memo"),to=Symbol.for("react.lazy"),Q1=Symbol.for("react.activity"),yS=Symbol.for("react.legacy_hidden"),bS=Symbol.for("react.memo_cache_sentinel"),Z1=Symbol.for("react.view_transition"),xS=Symbol.for("react.recoverable"),Rv=Symbol.iterator;function lc(t){return t===null||typeof t!="object"?null:(t=Rv&&t[Rv]||t["@@iterator"],typeof t=="function"?t:null)}var SS=Symbol.for("react.client.reference");function W1(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===SS?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Zi:return"Fragment";case Y1:return"Profiler";case K3:return"StrictMode";case X1:return"Suspense";case K1:return"SuspenseList";case Q1:return"Activity";case Z1:return"ViewTransition"}if(typeof t=="object")switch(t.$$typeof){case yc:return"Portal";case Jl:return t.displayName||"Context";case Q3:return(t._context.displayName||"Context")+".Consumer";case q0:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Y0:return e=t.displayName||null,e!==null?e:W1(t.type)||"Memo";case to:e=t._payload,t=t._init;try{return W1(t(e))}catch{}}return null}var bc=Array.isArray,Ye=V3.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,At=hS.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ui={pending:!1,data:null,method:null,action:null},J1=[],Wi=-1;function ua(t){return{current:t}}function Bn(t){0>Wi||(t.current=J1[Wi],J1[Wi]=null,Wi--)}function Wt(t,e){Wi++,J1[Wi]=t.current,t.current=e}var aa=ua(null),Kc=ua(null),yo=ua(null),rf=ua(null);function cf(t,e){switch(Wt(yo,e),Wt(Kc,t),Wt(aa,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?G2(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=G2(e),t=_b(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Bn(aa),Wt(aa,t)}function Lr(){Bn(aa),Bn(Kc),Bn(yo)}function eh(t){var e=t.memoizedState;e!==null&&(Fr._currentValue=e.memoizedState,Wt(rf,t)),e=aa.current;var n=_b(e,t.type);e!==n&&(Wt(Kc,t),Wt(aa,n))}function uf(t){Kc.current===t&&(Bn(aa),Bn(Kc)),rf.current===t&&(Bn(rf),Fr._currentValue=ui)}var Bm,Cv;function Wa(t){if(Bm===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Bm=e&&e[1]||"",Cv=-1<n.stack.indexOf(`
|
|
52
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
53
|
+
`+Bm+t+Cv}var Im=!1;function Um(t,e){if(!t||Im)return"";Im=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(e){var m=function(){throw Error()};if(Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(g){var f=g}Reflect.construct(t,[],m)}else{try{m.call()}catch(g){f=g}m=!1;try{var h=Object.getOwnPropertyDescriptor(t.prototype,"props");Object.defineProperty(t.prototype,"props",{configurable:!0,set:function(){throw Error()}}),m=!0,new t}finally{m&&(h!==void 0?Object.defineProperty(t.prototype,"props",h):delete t.prototype.props)}}}else{try{throw Error()}catch(g){f=g}(m=t())&&typeof m.catch=="function"&&m.catch(function(){})}}catch(g){if(g&&f&&typeof g.stack=="string")return[g.stack,f.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var a=s.DetermineComponentFrameRoot(),i=a[0],r=a[1];if(i&&r){var c=i.split(`
|
|
54
|
+
`),u=r.split(`
|
|
55
|
+
`);for(l=s=0;s<c.length&&!c[s].includes("DetermineComponentFrameRoot");)s++;for(;l<u.length&&!u[l].includes("DetermineComponentFrameRoot");)l++;if(s===c.length||l===u.length)for(s=c.length-1,l=u.length-1;1<=s&&0<=l&&c[s]!==u[l];)l--;for(;1<=s&&0<=l;s--,l--)if(c[s]!==u[l]){if(s!==1||l!==1)do if(s--,l--,0>l||c[s]!==u[l]){var d=`
|
|
56
|
+
`+c[s].replace(" at new "," at ");return t.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",t.displayName)),d}while(1<=s&&0<=l);break}}}finally{Im=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Wa(n):""}function kS(t,e){switch(t.tag){case 26:case 27:case 5:return Wa(t.type);case 16:return Wa("Lazy");case 13:return t.child!==e&&e!==null?Wa("Suspense Fallback"):Wa("Suspense");case 19:return Wa("SuspenseList");case 0:case 15:return Um(t.type,!1);case 11:return Um(t.type.render,!1);case 1:return Um(t.type,!0);case 31:return Wa("Activity");case 30:return Wa("ViewTransition");default:return""}}function Mv(t){try{var e="",n=null;do e+=kS(t,n),n=t,t=t.return;while(t);return e}catch(s){return`
|
|
57
|
+
Error generating stack: `+s.message+`
|
|
58
|
+
`+s.stack}}var th=Object.prototype.hasOwnProperty,X0=En.unstable_scheduleCallback,Hm=En.unstable_cancelCallback,wS=En.unstable_shouldYield,jS=En.unstable_requestPaint,Zs=En.unstable_now,NS=En.unstable_getCurrentPriorityLevel,Z3=En.unstable_ImmediatePriority,W3=En.unstable_UserBlockingPriority,df=En.unstable_NormalPriority,TS=En.unstable_LowPriority,J3=En.unstable_IdlePriority,ES=En.log,$S=En.unstable_setDisableYieldValue,Au=null,Ws=null;function co(t){if(typeof ES=="function"&&$S(t),Ws&&typeof Ws.setStrictMode=="function")try{Ws.setStrictMode(Au,t)}catch{}}var Js=Math.clz32?Math.clz32:MS,RS=Math.log,CS=Math.LN2;function MS(t){return t>>>=0,t===0?32:31-(RS(t)/CS|0)|0}var Ku=256,Qu=262144,Zu=4194304;function Jo(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&-t;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function am(t,e,n){var s=t.pendingLanes;if(s===0)return 0;var l=0,a=t.suspendedLanes,i=t.pingedLanes;t=t.warmLanes;var r=s&134217727;return r!==0?(s=r&~a,s!==0?l=Jo(s):(i&=r,i!==0?l=Jo(i):n||(n=r&~t,n!==0&&(l=Jo(n))))):(r=s&~a,r!==0?l=Jo(r):i!==0?l=Jo(i):n||(n=s&~t,n!==0&&(l=Jo(n)))),l===0?0:e!==0&&e!==l&&!(e&a)&&(a=l&-l,n=e&-e,a>=n||a===32&&(n&4194048)!==0)?e:l}function Lu(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function e4(t,e){e&8&&(e|=e&32);var n=t.entangledLanes;if(n!==0)for(t=t.entanglements,n&=e;0<n;){var s=31-Js(n),l=1<<s;e|=t[s],n&=~l}return e}function AS(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function t4(){var t=Zu;return Zu<<=1,!(Zu&62914560)&&(Zu=4194304),t}function Vm(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Ou(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function LS(t,e,n,s,l,a){var i=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var r=t.entanglements,c=t.expirationTimes,u=t.hiddenUpdates;for(n=i&~n;0<n;){var d=31-Js(n),m=1<<d;r[d]=0,c[d]=-1;var f=u[d];if(f!==null)for(u[d]=null,d=0;d<f.length;d++){var h=f[d];h!==null&&(h.lane&=-536870913)}n&=~m}s!==0&&n4(t,s,0),a!==0&&l===0&&t.tag!==0&&(t.suspendedLanes|=a&~(i&~e))}function n4(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var s=31-Js(e);t.entangledLanes|=e,t.entanglements[s]=t.entanglements[s]|1073741824|n&261930}function s4(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var s=31-Js(n),l=1<<s;l&e|t[s]&e&&(t[s]|=e),n&=~l}}function l4(t,e){var n=e&-e;return n=n&42?1:K0(n),n&(t.suspendedLanes|e)?0:n}function K0(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Q0(t){return t&=-t,2<t?8<t?t&134217727?32:268435456:8:2}function a4(){var t=At.p;return t!==0?t:(t=window.event,t===void 0?32:Ib(t.type))}function Av(t,e){var n=At.p;try{return At.p=t,e()}finally{At.p=n}}var Ba=Math.random().toString(36).slice(2),Dn="__reactFiber$"+Ba,Os="__reactProps$"+Ba,Kr="__reactContainer$"+Ba,Lv="__reactEvents$"+Ba,OS="__reactListeners$"+Ba,DS="__reactHandles$"+Ba,Ov="__reactResources$"+Ba,Du="__reactMarker$"+Ba,ff="__reactLoad$"+Ba;function om(t){delete t[Dn],delete t[Os],delete t[OS],delete t[DS]}function li(t){var e;if(e=t[Dn])return e;for(var n=t.parentNode;n;){if(e=n[Kr]||n[Dn]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Z2(t);t!==null;){if(n=t[Dn])return n;t=Z2(t)}return e}t=n,n=t.parentNode}return null}function Qr(t){if(t=t[Dn]||t[Kr]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function xc(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(ve(33))}function hr(t){var e=t[Ov];return e||(e=t[Ov]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Cn(t){t[Du]=!0}function o4(t){t[ff]=void 0}var i4=new Set,r4={};function Ei(t,e){Or(t,e),Or(t+"Capture",e)}function Or(t,e){for(r4[t]=e,t=0;t<e.length;t++)i4.add(e[t])}var zS=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Dv={},zv={};function BS(t){return th.call(zv,t)?!0:th.call(Dv,t)?!1:zS.test(t)?zv[t]=!0:(Dv[t]=!0,!1)}var $t=!1;function Bv(){var t=$t;return $t=!1,t}function Rd(t,e,n){if(BS(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var s=e.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,n)}}function Wu(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,n)}}function pa(t,e,n,s){if(s===null)t.removeAttribute(n);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,s)}}function qs(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function c4(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function IS(t,e,n){var s=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var l=s.get,a=s.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return l.call(this)},set:function(i){n=""+i,a.call(this,i)}}),Object.defineProperty(t,e,{enumerable:s.enumerable}),{getValue:function(){return n},setValue:function(i){n=""+i},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function nh(t){if(!t._valueTracker){var e=c4(t)?"checked":"value";t._valueTracker=IS(t,e,""+t[e])}}function u4(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),s="";return t&&(s=c4(t)?t.checked?"true":"false":t.value),t=s,t!==n?(e.setValue(t),!0):!1}var US=/[\n"\\]/g;function vl(t){return t.replace(US,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function sh(t,e,n,s,l,a,i,r){t.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?t.type=i:t.removeAttribute("type"),e!=null?i==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+qs(e)):t.value!==""+qs(e)&&(t.value=""+qs(e)):i!=="submit"&&i!=="reset"||t.removeAttribute("value"),e!=null?i==="number"&&t.value==e?Gm(t,qs(t.value)):Gm(t,qs(e)):n!=null?Gm(t,qs(n)):s!=null&&t.removeAttribute("value"),l==null&&a!=null&&(t.defaultChecked=!!a),l!=null&&(t.checked=l&&typeof l!="function"&&typeof l!="symbol"),r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"?t.name=""+qs(r):t.removeAttribute("name")}function d4(t,e,n,s,l,a,i,r){if(a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(t.type=a),e!=null||n!=null){if(!(a!=="submit"&&a!=="reset"||e!=null)){nh(t);return}n=n!=null?""+qs(n):"",e=e!=null?""+qs(e):n,r||e===t.value||(t.value=e),t.defaultValue=e}s=s??l,s=typeof s!="function"&&typeof s!="symbol"&&!!s,t.checked=r?t.checked:!!s,t.defaultChecked=!!s,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.name=i),nh(t)}function Gm(t,e){t.defaultValue!==""+e&&(t.defaultValue=""+e)}function pr(t,e,n,s){if(t=t.options,e){e={};for(var l=0;l<n.length;l++)e["$"+n[l]]=!0;for(n=0;n<t.length;n++)l=e.hasOwnProperty("$"+t[n].value),t[n].selected!==l&&(t[n].selected=l),l&&s&&(t[n].defaultSelected=!0)}else{for(n=""+qs(n),e=null,l=0;l<t.length;l++){if(t[l].value===n){t[l].selected=!0,s&&(t[l].defaultSelected=!0);return}e!==null||t[l].disabled||(e=t[l])}e!==null&&(e.selected=!0)}}function f4(t,e,n){if(e!=null&&(e=""+qs(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+qs(n):""}function m4(t,e,n,s){if(e==null){if(s!=null){if(n!=null)throw Error(ve(92));if(bc(s)){if(1<s.length)throw Error(ve(93));s=s[0]}n=s}n==null&&(n=""),e=n}n=qs(e),t.defaultValue=n,s=t.textContent,s===n&&s!==""&&s!==null&&(t.value=s),nh(t)}function Dr(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var HS=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Iv(t,e,n){var s=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?s?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":s?t.setProperty(e,n):typeof n!="number"||n===0||HS.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function h4(t,e,n){if(e!=null&&typeof e!="object")throw Error(ve(62));if(t=t.style,n!=null){for(var s in n)!n.hasOwnProperty(s)||e!=null&&e.hasOwnProperty(s)||(s.indexOf("--")===0?t.setProperty(s,""):s==="float"?t.cssFloat="":t[s]="",$t=!0);for(var l in e)s=e[l],e.hasOwnProperty(l)&&n[l]!==s&&(Iv(t,l,s),$t=!0)}else for(var a in e)e.hasOwnProperty(a)&&Iv(t,a,e[a])}function Z0(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var VS=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["maskType","mask-type"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),GS=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Cd(t){return GS.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function ea(){}var lh=null;function W0(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ji=null,vr=null;function Uv(t){var e=Qr(t);if(e&&(t=e.stateNode)){var n=t[Os]||null;e:switch(t=e.stateNode,e.type){case"input":if(sh(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+vl(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var s=n[e];if(s!==t&&s.form===t.form){var l=s[Os]||null;if(!l)throw Error(ve(90));sh(s,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(e=0;e<n.length;e++)s=n[e],s.form===t.form&&u4(s)}break e;case"textarea":f4(t,n.value,n.defaultValue);break e;case"select":e=n.value,e!=null&&pr(t,!!n.multiple,e,!1)}}}var Fm=!1;function p4(t,e,n){if(Fm)return t(e,n);Fm=!0;try{var s=t(e);return s}finally{if(Fm=!1,(Ji!==null||vr!==null)&&(bm(),Ji&&(e=Ji,t=vr,vr=Ji=null,Uv(e),t)))for(e=0;e<t.length;e++)Uv(t[e])}}function Qc(t,e){var n=t.stateNode;if(n===null)return null;var s=n[Os]||null;if(s===null)return null;n=s[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(t=t.type,s=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!s;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(ve(231,e,typeof n));return n}var $a=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ah=!1;if($a)try{var ac={};Object.defineProperty(ac,"passive",{get:function(){ah=!0}}),window.addEventListener("test",ac,ac),window.removeEventListener("test",ac,ac)}catch{ah=!1}var uo=null,J0=null,Md=null;function v4(){if(Md)return Md;var t,e=J0,n=e.length,s,l="value"in uo?uo.value:uo.textContent,a=l.length;for(t=0;t<n&&e[t]===l[t];t++);var i=n-t;for(s=1;s<=i&&e[n-s]===l[a-s];s++);return Md=l.slice(t,1<s?1-s:void 0)}function Ad(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Ju(){return!0}function Hv(){return!1}function _s(t){function e(n,s,l,a,i){this._reactName=n,this._targetInst=l,this.type=s,this.nativeEvent=a,this.target=i,this.currentTarget=null;for(var r in t)t.hasOwnProperty(r)&&(n=t[r],this[r]=n?n(a):a[r]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Ju:Hv,this.isPropagationStopped=Hv,this}return Xt(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ju)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ju)},persist:function(){},isPersistent:Ju}),e}var Ho={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},im=_s(Ho),zu=Xt({},Ho,{view:0,detail:0}),FS=_s(zu),Pm,qm,oc,rm=Xt({},zu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ep,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==oc&&(oc&&t.type==="mousemove"?(Pm=t.screenX-oc.screenX,qm=t.screenY-oc.screenY):qm=Pm=0,oc=t),Pm)},movementY:function(t){return"movementY"in t?t.movementY:qm}}),Vv=_s(rm),PS=Xt({},rm,{dataTransfer:0}),qS=_s(PS),YS=Xt({},zu,{relatedTarget:0}),Ym=_s(YS),XS=Xt({},Ho,{animationName:0,elapsedTime:0,pseudoElement:0}),KS=_s(XS),QS=Xt({},Ho,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),ZS=_s(QS),WS=Xt({},Ho,{data:0}),Gv=_s(WS),JS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},e8={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},t8={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function n8(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=t8[t])?!!e[t]:!1}function ep(){return n8}var s8=Xt({},zu,{key:function(t){if(t.key){var e=JS[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Ad(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?e8[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ep,charCode:function(t){return t.type==="keypress"?Ad(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ad(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),l8=_s(s8),a8=Xt({},rm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fv=_s(a8),o8=Xt({},Ho,{submitter:0}),i8=_s(o8),r8=Xt({},zu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ep}),c8=_s(r8),u8=Xt({},Ho,{propertyName:0,elapsedTime:0,pseudoElement:0}),d8=_s(u8),f8=Xt({},rm,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),m8=_s(f8),h8=Xt({},Ho,{newState:0,oldState:0,source:0}),p8=_s(h8),v8=[9,13,27,32],tp=$a&&"CompositionEvent"in window,Cc=null;$a&&"documentMode"in document&&(Cc=document.documentMode);var g8=$a&&"TextEvent"in window&&!Cc,g4=$a&&(!tp||Cc&&8<Cc&&11>=Cc),Pv=" ",qv=!1;function _4(t,e){switch(t){case"keyup":return v8.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function y4(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var er=!1;function _8(t,e){switch(t){case"compositionend":return y4(e);case"keypress":return e.which!==32?null:(qv=!0,Pv);case"textInput":return t=e.data,t===Pv&&qv?null:t;default:return null}}function y8(t,e){if(er)return t==="compositionend"||!tp&&_4(t,e)?(t=v4(),Md=J0=uo=null,er=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return g4&&e.locale!=="ko"?null:e.data;default:return null}}var b8={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Yv(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!b8[t.type]:e==="textarea"}function b4(t,e,n,s){Ji?vr?vr.push(s):vr=[s]:Ji=s,e=Lf(e,"onChange"),0<e.length&&(n=new im("onChange","change",null,n,s),t.push({event:n,listeners:e}))}var Mc=null,Zc=null;function x8(t){pb(t,0)}function cm(t){var e=xc(t);if(u4(e))return t}function Xv(t,e){if(t==="change")return e}var x4=!1;if($a){var Xm;if($a){var Km="oninput"in document;if(!Km){var Kv=document.createElement("div");Kv.setAttribute("oninput","return;"),Km=typeof Kv.oninput=="function"}Xm=Km}else Xm=!1;x4=Xm&&(!document.documentMode||9<document.documentMode)}function Qv(){Mc&&(Mc.detachEvent("onpropertychange",S4),Zc=Mc=null)}function S4(t){if(t.propertyName==="value"&&cm(Zc)){var e=[];b4(e,Zc,t,W0(t)),p4(x8,e)}}function S8(t,e,n){t==="focusin"?(Qv(),Mc=e,Zc=n,Mc.attachEvent("onpropertychange",S4)):t==="focusout"&&Qv()}function k8(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return cm(Zc)}function w8(t,e){if(t==="click")return cm(e)}function j8(t,e){if(t==="input"||t==="change")return cm(e)}function N8(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var tl=typeof Object.is=="function"?Object.is:N8;function Wc(t,e){if(tl(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),s=Object.keys(e);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var l=n[s];if(!th.call(e,l)||!tl(t[l],e[l]))return!1}return!0}function oh(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Zv(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Wv(t,e){var n=Zv(t);t=0;for(var s;n;){if(n.nodeType===3){if(s=t+n.textContent.length,t<=e&&s>=e)return{node:n,offset:e-t};t=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Zv(n)}}function k4(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?k4(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function w4(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=oh(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=oh(t.document)}return e}function np(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var T8=$a&&"documentMode"in document&&11>=document.documentMode,tr=null,ih=null,Ac=null,rh=!1;function Jv(t,e,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;rh||tr==null||tr!==oh(s)||(s=tr,"selectionStart"in s&&np(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Ac&&Wc(Ac,s)||(Ac=s,s=Lf(ih,"onSelect"),0<s.length&&(e=new im("onSelect","select",null,e,n),t.push({event:e,listeners:s}),e.target=tr)))}function Fo(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var nr={animationend:Fo("Animation","AnimationEnd"),animationiteration:Fo("Animation","AnimationIteration"),animationstart:Fo("Animation","AnimationStart"),transitionrun:Fo("Transition","TransitionRun"),transitionstart:Fo("Transition","TransitionStart"),transitioncancel:Fo("Transition","TransitionCancel"),transitionend:Fo("Transition","TransitionEnd")},Qm={},j4={};$a&&(j4=document.createElement("div").style,"AnimationEvent"in window||(delete nr.animationend.animation,delete nr.animationiteration.animation,delete nr.animationstart.animation),"TransitionEvent"in window||delete nr.transitionend.transition);function $i(t){if(Qm[t])return Qm[t];if(!nr[t])return t;var e=nr[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in j4)return Qm[t]=e[n];return t}var N4=$i("animationend"),T4=$i("animationiteration"),E4=$i("animationstart"),E8=$i("transitionrun"),$8=$i("transitionstart"),R8=$i("transitioncancel"),$4=$i("transitionend"),R4=new Map,ch="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");ch.push("scrollEnd");function zl(t,e){R4.set(t,e),Ei(e,[t])}var C8=0;function Ra(t,e){if(t.name!=null&&t.name!=="auto")return t.name;if(e.autoName!==null)return e.autoName;t=Ol.identifierPrefix;var n=C8++;return t="_"+t+"t_"+n.toString(32)+"_",e.autoName=t}function e2(t){if(t==null||typeof t=="string")return t;var e=null,n=kr;if(n!==null)for(var s=0;s<n.length;s++){var l=t[n[s]];if(l!=null){if(l==="none")return"none";e=e==null?l:e+(" "+l)}}return e??t.default}function Ia(t,e){return t=e2(t),e=e2(e),e==null?t==="auto"?null:t:e==="auto"?null:e}var mf=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},dl=[],sr=0,sp=0;function um(){for(var t=sr,e=sp=sr=0;e<t;){var n=dl[e];dl[e++]=null;var s=dl[e];dl[e++]=null;var l=dl[e];dl[e++]=null;var a=dl[e];if(dl[e++]=null,s!==null&&l!==null){var i=s.pending;i===null?l.next=l:(l.next=i.next,i.next=l),s.pending=l}a!==0&&C4(n,l,a)}}function dm(t,e,n,s){dl[sr++]=t,dl[sr++]=e,dl[sr++]=n,dl[sr++]=s,sp|=s,t.lanes|=s,t=t.alternate,t!==null&&(t.lanes|=s)}function lp(t,e,n,s){return dm(t,e,n,s),hf(t)}function Ri(t,e){return dm(t,null,null,e),hf(t)}function C4(t,e,n){t.lanes|=n;var s=t.alternate;s!==null&&(s.lanes|=n);for(var l=!1,a=t.return;a!==null;)a.childLanes|=n,s=a.alternate,s!==null&&(s.childLanes|=n),a.tag===22&&(t=a.stateNode,t===null||t._visibility&1||(l=!0)),t=a,a=a.return;return t.tag===3?(a=t.stateNode,l&&e!==null&&(l=31-Js(n),t=a.hiddenUpdates,s=t[l],s===null?t[l]=[e]:s.push(e),e.lane=n|536870912),a):null}function hf(t){if(50<Gc)throw Gc=0,Gd=null,Error(ve(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var lr={};function M8(t,e,n,s){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rs(t,e,n,s){return new M8(t,e,n,s)}function ap(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Ta(t,e){var n=t.alternate;return n===null?(n=Rs(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&1206910976,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function M4(t,e){t.flags&=1206910978;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Ld(t,e,n,s,l,a){var i=0;if(s=t,typeof s=="function")ap(s)&&(i=1);else if(typeof s=="string")i=o7(t,n,aa.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(s){case Q1:return t=Rs(31,n,e,l),t.elementType=Q1,t.lanes=a,t;case Zi:return di(n.children,l,a,e);case K3:i=8,l|=24;break;case Y1:return t=Rs(12,n,e,l|2),t.elementType=Y1,t.lanes=a,t;case X1:return t=Rs(13,n,e,l),t.elementType=X1,t.lanes=a,t;case K1:return t=Rs(19,n,e,l),t.elementType=K1,t.lanes=a,t;case yS:case Z1:return t=l|32,t=Rs(30,n,e,t),t.elementType=Z1,t.lanes=a,t.stateNode={autoName:null,paired:null,clones:null,ref:null},t;default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case Jl:i=10;break e;case Q3:i=9;break e;case q0:i=11;break e;case Y0:i=14;break e;case to:i=16,s=null;break e}i=29,n=Error(ve(130,t===null?"null":typeof t,"")),s=null}return e=Rs(i,n,e,l),e.elementType=t,e.type=s,e.lanes=a,e}function di(t,e,n,s){return t=Rs(7,t,s,e),t.lanes=n,t}function Zm(t,e,n){return t=Rs(6,t,null,e),t.lanes=n,t}function A4(t){var e=Rs(18,null,null,0);return e.stateNode=t,e}function Wm(t,e,n){return e=Rs(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var t2=new WeakMap;function gl(t,e){if(typeof t=="object"&&t!==null){var n=t2.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Mv(e)},t2.set(t,e),e)}return{value:t,source:e,stack:Mv(e)}}var ar=[],or=0,pf=null,Jc=0,ml=[],hl=0,Ao=null,ta=1,na="";function wa(t,e){ar[or++]=Jc,ar[or++]=pf,pf=t,Jc=e}function L4(t,e,n){ml[hl++]=ta,ml[hl++]=na,ml[hl++]=Ao,Ao=t;var s=ta;t=na;var l=32-Js(s)-1;s&=~(1<<l),n+=1;var a=32-Js(e)+l;if(30<a){var i=l-l%5;a=(s&(1<<i)-1).toString(32),s>>=i,l-=i,ta=1<<32-Js(e)+l|n<<l|s,na=a+t}else ta=1<<a|n<<l|s,na=t}function fm(t){t.return!==null&&(wa(t,1),L4(t,1,0))}function op(t){for(;t===pf;)pf=ar[--or],ar[or]=null,Jc=ar[--or],ar[or]=null;for(;t===Ao;)Ao=ml[--hl],ml[hl]=null,na=ml[--hl],ml[hl]=null,ta=ml[--hl],ml[hl]=null}function O4(t,e){ml[hl++]=ta,ml[hl++]=na,ml[hl++]=Ao,ta=e.id,na=e.overflow,Ao=t}var Mn=null,Qt=null,ut=!1,bo=null,_l=!1,uh=Error(ve(519));function Lo(t){var e=Error(ve(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw eu(gl(e,t)),uh}function n2(t){var e=t.stateNode,n=t.type,s=t.memoizedProps;switch(e[Dn]=t,e[Os]=s,n){case"dialog":vt("cancel",e),vt("close",e);break;case"iframe":case"object":case"embed":vt("load",e);break;case"video":case"audio":for(n=0;n<lu.length;n++)vt(lu[n],e);break;case"source":vt("error",e);break;case"img":case"image":case"link":vt("error",e),vt("load",e);break;case"details":vt("toggle",e);break;case"input":vt("invalid",e),d4(e,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":vt("invalid",e);break;case"textarea":vt("invalid",e),m4(e,s.value,s.defaultValue,s.children)}n=s.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||s.suppressHydrationWarning===!0||gb(e.textContent,n)?(s.popover!=null&&(vt("beforetoggle",e),vt("toggle",e)),s.onScroll!=null&&vt("scroll",e),s.onScrollEnd!=null&&vt("scrollend",e),s.onClick!=null&&(e.onclick=ea),e=!0):e=!1,e||Lo(t,!0)}function vf(t){for(Mn=t.return;Mn;)switch(Mn.tag){case 5:case 31:case 13:_l=!1;return;case 27:case 3:_l=!0;return;default:Mn=Mn.return}}function Bi(t){if(t!==Mn)return!1;if(!ut)return vf(t),ut=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||Xh(t.type,t.memoizedProps)),n=!n),n&&Qt&&Lo(t),vf(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(ve(317));Qt=Q2(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(ve(317));Qt=Q2(t)}else e===27?(e=Qt,Vo(t.type)?(t=Wh,Wh=null,Qt=t):Qt=e):Qt=Mn?Sl(t.stateNode.nextSibling):null;return!0}function vi(){Qt=Mn=null,ut=!1}function Jm(){var t=bo;return t!==null&&(Ns===null?Ns=t:Ns.push.apply(Ns,t),bo=null),t}function eu(t){bo===null?bo=[t]:bo.push(t)}var dh=ua(null),Ci=null,Na=null;function fo(t,e,n){Wt(dh,e._currentValue),e._currentValue=n}function Ea(t){t._currentValue=dh.current,Bn(dh)}function Od(t,e,n){for(;t!==null;){var s=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,s!==null&&(s.childLanes|=e)):s!==null&&(s.childLanes&e)!==e&&(s.childLanes|=e),t===n)break;t=t.return}}function fh(t,e,n,s){var l=t.child;for(l!==null&&(l.return=t);l!==null;){var a=l.dependencies;if(a!==null){var i=l.child;a=a.firstContext;e:for(;a!==null;){var r=a;a=l;for(var c=0;c<e.length;c++)if(r.context===e[c]){a.lanes|=n,r=a.alternate,r!==null&&(r.lanes|=n),Od(a.return,n,t),s||(i=null);break e}a=r.next}}else if(l.tag===18){if(i=l.return,i===null)throw Error(ve(341));i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Od(i,n,t),i=null}else l.tag===13&&l.memoizedState!==null&&l.memoizedState.dehydrated===null?(l.lanes|=n,i=l.alternate,i!==null&&(i.lanes|=n),Od(l.return,n,t),i=l.child,i=i!==null?i.sibling:null):i=l.child;if(i!==null)i.return=l;else for(i=l;i!==null;){if(i===t){i=null;break}if(l=i.sibling,l!==null){l.return=i.return,i=l;break}i=i.return}l=i}}function gi(t,e,n,s){t=null;for(var l=e,a=!1;l!==null;){if(!a){if(l.flags&524288)a=!0;else if(l.flags&262144)break}if(l.tag===10){var i=l.alternate;if(i===null)throw Error(ve(387));if(i=i.memoizedProps,i!==null){var r=l.type;tl(l.pendingProps.value,i.value)||(t!==null?t.push(r):t=[r])}}else if(l===rf.current){if(i=l.alternate,i===null)throw Error(ve(387));i.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(t!==null?t.push(Fr):t=[Fr])}l=l.return}return t!==null&&fh(e,t,n,s),e.flags|=262144,t!==null}function gf(t){for(t=t.firstContext;t!==null;){if(!tl(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function _i(t){Ci=t,Na=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function zn(t){return D4(Ci,t)}function ed(t,e){return Ci===null&&_i(t),D4(t,e)}function D4(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},Na===null){if(t===null)throw Error(ve(308));Na=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Na=Na.next=e;return n}var A8=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,s){t.push(s)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},L8=En.unstable_scheduleCallback,O8=En.unstable_NormalPriority,Sn={$$typeof:Jl,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ip(){return{controller:new A8,data:new Map,refCount:0}}function Bu(t){t.refCount--,t.refCount===0&&L8(O8,function(){t.controller.abort()})}function s2(t,e){if(t.pendingLanes&4194048){var n=t.transitionTypes;for(n===null&&(n=t.transitionTypes=[]),t=0;t<e.length;t++){var s=e[t];n.indexOf(s)===-1&&n.push(s)}}}var Sc=null;function D8(t){var e=t.transitionTypes;return t.transitionTypes=null,e}var Lc=null,mh=0,yi=0,gr=null;function z8(t,e){if(Lc===null){var n=Lc=[];mh=0,yi=Op(),gr={status:"pending",value:void 0,then:function(s){n.push(s)}}}return mh++,e.then(l2,l2),e}function l2(){if(--mh===0&&(Sc=null,Lc!==null)){gr!==null&&(gr.status="fulfilled");var t=Lc;Lc=null,yi=0,gr=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function B8(t,e){var n=[],s={status:"pending",value:null,reason:null,then:function(l){n.push(l)}};return t.then(function(){s.status="fulfilled",s.value=e;for(var l=0;l<n.length;l++)(0,n[l])(e)},function(l){for(s.status="rejected",s.reason=l,l=0;l<n.length;l++)(0,n[l])(void 0)}),s}var a2=Ye.S;Ye.S=function(t,e){if(eb=Zs(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&z8(t,e),Sc!==null)for(var n=Hr;n!==null;)s2(n,Sc),n=n.next;if(n=t.types,n!==null){for(var s=Hr;s!==null;)s2(s,n),s=s.next;if(yi!==0){s=Sc,s===null&&(s=Sc=[]);for(var l=0;l<n.length;l++){var a=n[l];s.indexOf(a)===-1&&s.push(a)}}}a2!==null&&a2(t,e)};var fi=ua(null);function rp(){var t=fi.current;return t!==null?t:Yt.pooledCache}function Dd(t,e){e===null?Wt(fi,fi.current):Wt(fi,e.pool)}function z4(){var t=rp();return t===null?null:{parent:Sn._currentValue,pool:t}}var Zr=Error(ve(460)),cp=Error(ve(474)),mm=Error(ve(542)),_f={then:function(){}};function o2(t){return t=t.status,t==="fulfilled"||t==="rejected"}function B4(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(ea,ea),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,r2(t),t===void 0&&!("reason"in e)?Error(ve(600)):t;default:if(typeof e.status=="string")e.then(ea,ea);else{if(t=Yt,t!==null&&100<t.shellSuspendCounter)throw Error(ve(482));t=e,t.status="pending",t.then(function(s){if(e.status==="pending"){var l=e;l.status="fulfilled",l.value=s}},function(s){if(e.status==="pending"){var l=e;l.status="rejected",l.reason=s}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,r2(t),t}throw mi=e,Zr}}function ei(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(mi=n,Zr):n}}var mi=null;function i2(){if(mi===null)throw Error(ve(459));var t=mi;return mi=null,t}function r2(t){if(t===Zr||t===mm)throw Error(ve(483))}var _r=null,tu=0;function td(t){var e=tu;return tu+=1,_r===null&&(_r=[]),B4(_r,t,e)}function Ya(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function nd(t,e){throw e.$$typeof===_S?Error(ve(525)):(t=Object.prototype.toString.call(e),Error(ve(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function I4(t){function e(p,v){if(t){var _=p.deletions;_===null?(p.deletions=[v],p.flags|=16):_.push(v)}}function n(p,v){if(!t)return null;for(;v!==null;)e(p,v),v=v.sibling;return null}function s(p){for(var v=new Map;p!==null;)p.key===null?v.set(p.index,p):v.set(p.key,p),p=p.sibling;return v}function l(p,v){return p=Ta(p,v),p.index=0,p.sibling=null,p}function a(p,v,_){return p.index=_,t?(_=p.alternate,_!==null?(_=_.index,_<v?(p.flags|=2,v):_):(p.flags|=134217730,v)):(p.flags|=1048576,v)}function i(p){return t&&p.alternate===null&&(p.flags|=134217730),p}function r(p,v,_,x){return v===null||v.tag!==6?(v=Zm(_,p.mode,x),v.return=p,v):(v=l(v,_),v.return=p,v)}function c(p,v,_,x){var k=_.type;return k===Zi?(p=d(p,v,_.props.children,x,_.key),Ya(p,_),p):v!==null&&(v.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===to&&ei(k)===v.type)?(v=l(v,_.props),Ya(v,_),v.return=p,v):(v=Ld(_.type,_.key,_.props,null,p.mode,x),Ya(v,_),v.return=p,v)}function u(p,v,_,x){return v===null||v.tag!==4||v.stateNode.containerInfo!==_.containerInfo||v.stateNode.implementation!==_.implementation?(v=Wm(_,p.mode,x),v.return=p,v):(v=l(v,_.children||[]),v.return=p,v)}function d(p,v,_,x,k){return v===null||v.tag!==7?(v=di(_,p.mode,x,k),v.return=p,v):(v=l(v,_),v.return=p,v)}function m(p,v,_){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return v=Zm(""+v,p.mode,_),v.return=p,v;if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Xu:return _=Ld(v.type,v.key,v.props,null,p.mode,_),Ya(_,v),_.return=p,_;case yc:return v=Wm(v,p.mode,_),v.return=p,v;case to:return v=ei(v),m(p,v,_)}if(bc(v)||lc(v))return v=di(v,p.mode,_,null),v.return=p,v;if(typeof v.then=="function")return m(p,td(v),_);if(v.$$typeof===Jl)return m(p,ed(p,v),_);nd(p,v)}return null}function f(p,v,_,x){var k=v!==null?v.key:null;if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return k!==null?null:r(p,v,""+_,x);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Xu:return _.key===k?c(p,v,_,x):null;case yc:return _.key===k?u(p,v,_,x):null;case to:return _=ei(_),f(p,v,_,x)}if(bc(_)||lc(_))return k!==null?null:d(p,v,_,x,null);if(typeof _.then=="function")return f(p,v,td(_),x);if(_.$$typeof===Jl)return f(p,v,ed(p,_),x);nd(p,_)}return null}function h(p,v,_,x,k){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return p=p.get(_)||null,r(v,p,""+x,k);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Xu:return p=p.get(x.key===null?_:x.key)||null,c(v,p,x,k);case yc:return p=p.get(x.key===null?_:x.key)||null,u(v,p,x,k);case to:return x=ei(x),h(p,v,_,x,k)}if(bc(x)||lc(x))return p=p.get(_)||null,d(v,p,x,k,null);if(typeof x.then=="function")return h(p,v,_,td(x),k);if(x.$$typeof===Jl)return h(p,v,_,ed(v,x),k);nd(v,x)}return null}function g(p,v,_,x){for(var k=null,w=null,R=v,j=v=0,N=null;R!==null&&j<_.length;j++){R.index>j?(N=R,R=null):N=R.sibling;var E=f(p,R,_[j],x);if(E===null){R===null&&(R=N);break}t&&R&&E.alternate===null&&e(p,R),v=a(E,v,j),w===null?k=E:w.sibling=E,w=E,R=N}if(j===_.length)return n(p,R),ut&&wa(p,j),k;if(R===null){for(;j<_.length;j++)R=m(p,_[j],x),R!==null&&(v=a(R,v,j),w===null?k=R:w.sibling=R,w=R);return ut&&wa(p,j),k}for(R=s(R);j<_.length;j++)N=h(R,p,j,_[j],x),N!==null&&(t&&(E=N.alternate,E!==null&&R.delete(E.key===null?j:E.key)),v=a(N,v,j),w===null?k=N:w.sibling=N,w=N);return t&&R.forEach(function(C){return e(p,C)}),ut&&wa(p,j),k}function y(p,v,_,x){if(_==null)throw Error(ve(151));for(var k=null,w=null,R=v,j=v=0,N=null,E=_.next();R!==null&&!E.done;j++,E=_.next()){R.index>j?(N=R,R=null):N=R.sibling;var C=f(p,R,E.value,x);if(C===null){R===null&&(R=N);break}t&&R&&C.alternate===null&&e(p,R),v=a(C,v,j),w===null?k=C:w.sibling=C,w=C,R=N}if(E.done)return n(p,R),ut&&wa(p,j),k;if(R===null){for(;!E.done;j++,E=_.next())E=m(p,E.value,x),E!==null&&(v=a(E,v,j),w===null?k=E:w.sibling=E,w=E);return ut&&wa(p,j),k}for(R=s(R);!E.done;j++,E=_.next())E=h(R,p,j,E.value,x),E!==null&&(t&&(N=E.alternate,N!==null&&R.delete(N.key===null?j:N.key)),v=a(E,v,j),w===null?k=E:w.sibling=E,w=E);return t&&R.forEach(function(O){return e(p,O)}),ut&&wa(p,j),k}function b(p,v,_,x){if(typeof _=="object"&&_!==null&&_.type===Zi&&_.key===null&&_.props.ref===void 0&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Xu:e:{for(var k=_.key;v!==null;){if(v.key===k){if(k=_.type,k===Zi){if(v.tag===7){n(p,v.sibling),x=l(v,_.props.children),Ya(x,_),x.return=p,p=x;break e}}else if(v.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===to&&ei(k)===v.type){n(p,v.sibling),x=l(v,_.props),Ya(x,_),x.return=p,p=x;break e}n(p,v);break}else e(p,v);v=v.sibling}_.type===Zi?(x=di(_.props.children,p.mode,x,_.key),Ya(x,_),x.return=p,p=x):(x=Ld(_.type,_.key,_.props,null,p.mode,x),Ya(x,_),x.return=p,p=x)}return i(p);case yc:e:{for(k=_.key;v!==null;){if(v.key===k)if(v.tag===4&&v.stateNode.containerInfo===_.containerInfo&&v.stateNode.implementation===_.implementation){n(p,v.sibling),x=l(v,_.children||[]),x.return=p,p=x;break e}else{n(p,v);break}else e(p,v);v=v.sibling}x=Wm(_,p.mode,x),x.return=p,p=x}return i(p);case to:return _=ei(_),b(p,v,_,x)}if(bc(_))return g(p,v,_,x);if(lc(_)){if(k=lc(_),typeof k!="function")throw Error(ve(150));return _=k.call(_),y(p,v,_,x)}if(typeof _.then=="function")return b(p,v,td(_),x);if(_.$$typeof===Jl)return b(p,v,ed(p,_),x);nd(p,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,v!==null&&v.tag===6?(n(p,v.sibling),x=l(v,_),x.return=p,p=x):(n(p,v),x=Zm(_,p.mode,x),x.return=p,p=x),i(p)):n(p,v)}return function(p,v,_,x){try{tu=0;var k=b(p,v,_,x);return _r=null,k}catch(R){if(R===Zr||R===mm)throw R;var w=Rs(29,R,null,p.mode);return w.lanes=x,w.return=p,w}finally{}}}var bi=I4(!0),U4=I4(!1),no=!1;function up(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hh(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function xo(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function So(t,e,n){var s=t.updateQueue;if(s===null)return null;if(s=s.shared,Mt&2){var l=s.pending;return l===null?e.next=e:(e.next=l.next,l.next=e),s.pending=e,e=hf(t),C4(t,null,n),e}return dm(t,s,e,n),hf(t)}function Oc(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var s=e.lanes;s&=t.pendingLanes,n|=s,e.lanes=n,s4(t,n)}}function e1(t,e){var n=t.updateQueue,s=t.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var l=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var i={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?l=a=i:a=a.next=i,n=n.next}while(n!==null);a===null?l=a=e:a=a.next=e}else l=a=e;n={baseState:s.baseState,firstBaseUpdate:l,lastBaseUpdate:a,shared:s.shared,callbacks:s.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var ph=!1;function Dc(){if(ph){var t=gr;if(t!==null)throw t}}function zc(t,e,n,s){ph=!1;var l=t.updateQueue;no=!1;var a=l.firstBaseUpdate,i=l.lastBaseUpdate,r=l.shared.pending;if(r!==null){l.shared.pending=null;var c=r,u=c.next;c.next=null,i===null?a=u:i.next=u,i=c;var d=t.alternate;d!==null&&(d=d.updateQueue,r=d.lastBaseUpdate,r!==i&&(r===null?d.firstBaseUpdate=u:r.next=u,d.lastBaseUpdate=c))}if(a!==null){var m=l.baseState;i=0,d=u=c=null,r=a;do{var f=r.lane&-536870913,h=f!==r.lane;if(h?(St&f)===f:(s&f)===f){f!==0&&f===yi&&(ph=!0),d!==null&&(d=d.next={lane:0,tag:r.tag,payload:r.payload,callback:null,next:null});e:{var g=t,y=r;f=e;var b=n;switch(y.tag){case 1:if(g=y.payload,typeof g=="function"){m=g.call(b,m,f);break e}m=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,f=typeof g=="function"?g.call(b,m,f):g,f==null)break e;m=Xt({},m,f);break e;case 2:no=!0}}f=r.callback,f!==null&&(t.flags|=64,h&&(t.flags|=8192),h=l.callbacks,h===null?l.callbacks=[f]:h.push(f))}else h={lane:f,tag:r.tag,payload:r.payload,callback:r.callback,next:null},d===null?(u=d=h,c=m):d=d.next=h,i|=f;if(r=r.next,r===null){if(r=l.shared.pending,r===null)break;h=r,r=h.next,h.next=null,l.lastBaseUpdate=h,l.shared.pending=null}}while(!0);d===null&&(c=m),l.baseState=c,l.firstBaseUpdate=u,l.lastBaseUpdate=d,a===null&&(l.shared.lanes=0),zo|=i,t.lanes=i,t.memoizedState=m}}function H4(t,e){if(typeof t!="function")throw Error(ve(191,t));t.call(e)}function V4(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)H4(n[t],e)}var Oo=ua(null),yf=ua(0);function c2(t,e){t=La,Wt(yf,t),Wt(Oo,e),La=t|e.baseLanes}function vh(){Wt(yf,La),Wt(Oo,Oo.current)}function dp(){La=yf.current,Bn(Oo),Bn(yf)}var Hn=ua(null),Kn=null;function ko(t){var e=t.alternate;Wt(In,In.current&1),Wt(Hn,t),Kn===null&&(e===null||Oo.current!==null||e.memoizedState!==null)&&(Kn=t)}function gh(t){Wt(In,In.current),Wt(Hn,t),Kn===null&&(Kn=t)}function G4(t){t.tag===22?(Wt(In,In.current),Wt(Hn,t),Kn===null&&(Kn=t)):wo()}function wo(){Wt(In,In.current),Wt(Hn,Hn.current)}function Xs(t){Bn(Hn),Kn===t&&(Kn=null),Bn(In)}var In=ua(0);function nu(t,e){Wt(Hn,Hn.current),Wt(In,e)}function fp(t){Bn(In),Bn(Hn),Kn===t&&(Kn=null)}function bf(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Zh(n)||Ip(n)))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!=="independent"){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Ca=0,nt=null,Ft=null,xn=null,xf=!1,yr=!1,xi=!1,Sf=0,su=0,br=null,I8=0;function rn(){throw Error(ve(321))}function mp(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!tl(t[n],e[n]))return!1;return!0}function hp(t,e,n,s,l,a){return Ca=a,nt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Ye.H=t===null||t.memoizedState===null?by:xy,xi=!1,a=n(s,l),xi=!1,yr&&(a=P4(e,n,s,l)),F4(t),a}function F4(t){Ye.H=kf;var e=Ft!==null&&Ft.next!==null;if(Ca=0,xn=Ft=nt=null,xf=!1,su=0,br=null,e)throw Error(ve(300));t===null||kn||(t=t.dependencies,t!==null&&gf(t)&&(kn=!0))}function P4(t,e,n,s){nt=t;var l=0;do{if(yr&&(br=null),su=0,yr=!1,25<=l)throw Error(ve(301));if(l+=1,xn=Ft=null,t.updateQueue!=null){var a=t.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}Ye.H=Y8,a=e(n,s)}while(yr);return a}function U8(){var t=Ye.H,e=t.useState()[0];return e=typeof e.then=="function"?Iu(e):e,t=t.useState()[0],(Ft!==null?Ft.memoizedState:null)!==t&&(nt.flags|=1024),e}function pp(){var t=Sf!==0;return Sf=0,t}function vp(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function gp(t){if(xf){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}xf=!1}Ca=0,xn=Ft=nt=null,yr=!1,su=Sf=0,br=null}function ms(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xn===null?nt.memoizedState=xn=t:xn=xn.next=t,xn}function _n(){if(Ft===null){var t=nt.alternate;t=t!==null?t.memoizedState:null}else t=Ft.next;var e=xn===null?nt.memoizedState:xn.next;if(e!==null)xn=e,Ft=t;else{if(t===null)throw nt.alternate===null?Error(ve(467)):Error(ve(310));Ft=t,t={memoizedState:Ft.memoizedState,baseState:Ft.baseState,baseQueue:Ft.baseQueue,queue:Ft.queue,next:null},xn===null?nt.memoizedState=xn=t:xn=xn.next=t}return xn}function hm(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Iu(t){var e=su;return su+=1,br===null&&(br=[]),t=B4(br,t,e),e=nt,(xn===null?e.memoizedState:xn.next)===null&&(e=e.alternate,Ye.H=e===null||e.memoizedState===null?by:xy),t}function pm(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Iu(t);if(t.$$typeof===xS)return;if(t.$$typeof===Jl)return zn(t)}throw Error(ve(438,String(t)))}function _p(t){var e=null,n=nt.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var s=nt.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(e={data:s.data.map(function(l){return l.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=hm(),nt.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),s=0;s<t;s++)n[s]=bS;return e.index++,n}function Ma(t,e){return typeof e=="function"?e(t):e}function zd(t){var e=_n();return yp(e,Ft,t)}function yp(t,e,n){var s=t.queue;if(s===null)throw Error(ve(311));s.lastRenderedReducer=n;var l=t.baseQueue,a=s.pending;if(a!==null){if(l!==null){var i=l.next;l.next=a.next,a.next=i}e.baseQueue=l=a,s.pending=null}if(a=t.baseState,l===null)t.memoizedState=a;else{e=l.next;var r=i=null,c=null,u=e,d=!1;do{var m=u.lane&-536870913;if(m!==u.lane?(St&m)===m:(Ca&m)===m){var f=u.revertLane;if(f===0)c!==null&&(c=c.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),m===yi&&(d=!0);else if((Ca&f)===f){u=u.next,f===yi&&(d=!0);continue}else m={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},c===null?(r=c=m,i=a):c=c.next=m,nt.lanes|=f,zo|=f;m=u.action,xi&&n(a,m),a=u.hasEagerState?u.eagerState:n(a,m)}else f={lane:m,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},c===null?(r=c=f,i=a):c=c.next=f,nt.lanes|=m,zo|=m;u=u.next}while(u!==null&&u!==e);if(c===null?i=a:c.next=r,!tl(a,t.memoizedState)&&(kn=!0,d&&(n=gr,n!==null)))throw n;t.memoizedState=a,t.baseState=i,t.baseQueue=c,s.lastRenderedState=a}return l===null&&(s.lanes=0),[t.memoizedState,s.dispatch]}function t1(t){var e=_n(),n=e.queue;if(n===null)throw Error(ve(311));n.lastRenderedReducer=t;var s=n.dispatch,l=n.pending,a=e.memoizedState;if(l!==null){n.pending=null;var i=l=l.next;do a=t(a,i.action),i=i.next;while(i!==l);tl(a,e.memoizedState)||(kn=!0),e.memoizedState=a,e.baseQueue===null&&(e.baseState=a),n.lastRenderedState=a}return[a,s]}function q4(t,e,n){var s=nt,l=_n(),a=ut;if(a){if(n===void 0)throw Error(ve(407));n=n()}else n=e();var i=!tl((Ft||l).memoizedState,n);if(i&&(l.memoizedState=n,kn=!0),l=l.queue,bp(K4.bind(null,s,l,t),[t]),t=l.getSnapshot!==e||i||xn!==null&&(xn.memoizedState.tag&1)!==0,zr(t?9:8,{destroy:void 0},X4.bind(null,s,l,n,e),null),t){if(s.flags|=2048,Yt===null)throw Error(ve(349));a||Ca&127||Y4(s,e,n)}return n}function Y4(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=nt.updateQueue,e===null?(e=hm(),nt.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function X4(t,e,n,s){e.value=n,e.getSnapshot=s,Q4(e)&&Z4(t)}function K4(t,e,n){return n(function(){Q4(e)&&Z4(t)})}function Q4(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!tl(t,n)}catch{return!0}}function Z4(t){var e=Ri(t,2);e!==null&&As(e,t,2)}function _h(t){var e=ms();if(typeof t=="function"){var n=t;if(t=n(),xi){co(!0);try{n()}finally{co(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ma,lastRenderedState:t},e}function W4(t,e,n,s){return t.baseState=n,yp(t,Ft,typeof s=="function"?s:Ma)}function H8(t,e,n,s,l){if(gm(t))throw Error(ve(485));if(t=e.action,t!==null){var a={payload:l,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){a.listeners.push(i)}};Ye.T!==null?n(!0):a.isTransition=!1,s(a),n=e.pending,n===null?(a.next=e.pending=a,J4(e,a)):(a.next=n.next,e.pending=n.next=a)}}function J4(t,e){var n=e.action,s=e.payload,l=t.state;if(e.isTransition){var a=Ye.T,i={};i.types=a!==null?a.types:null,Ye.T=i;try{var r=n(l,s),c=Ye.S;c!==null&&c(i,r),u2(t,e,r)}catch(u){yh(t,e,u)}finally{a!==null&&i.types!==null&&(a.types=i.types),Ye.T=a}}else try{a=n(l,s),u2(t,e,a)}catch(u){yh(t,e,u)}}function u2(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(s){d2(t,e,s)},function(s){return yh(t,e,s)}):d2(t,e,n)}function d2(t,e,n){e.status="fulfilled",e.value=n,ey(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,J4(t,n)))}function yh(t,e,n){var s=t.pending;if(t.pending=null,s!==null){s=s.next;do e.status="rejected",e.reason=n,ey(e),e=e.next;while(e!==s)}t.action=null}function ey(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function ty(t,e){return e}function f2(t,e){if(ut){var n=Yt.formState;if(n!==null){e:{var s=nt;if(ut){if(Qt){t:{for(var l=Qt,a=_l;l.nodeType!==8;){if(!a){l=null;break t}if(l=Sl(l.nextSibling),l===null){l=null;break t}}a=l.data,l=a==="F!"||a==="F"?l:null}if(l){Qt=Sl(l.nextSibling),s=l.data==="F!";break e}}Lo(s)}s=!1}s&&(e=n[0])}}return n=ms(),n.memoizedState=n.baseState=e,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ty,lastRenderedState:e},n.queue=s,n=gy.bind(null,nt,s),s.dispatch=n,s=_h(!1),a=wp.bind(null,nt,!1,s.queue),s=ms(),l={state:e,dispatch:null,action:t,pending:null},s.queue=l,n=H8.bind(null,nt,l,a,n),l.dispatch=n,s.memoizedState=t,[e,n,!1]}function m2(t){var e=_n();return ny(e,Ft,t)}function ny(t,e,n){if(e=yp(t,e,ty)[0],t=zd(Ma)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var s=Iu(e)}catch(i){throw i===Zr?mm:i}else s=e;e=_n();var l=e.queue,a=l.dispatch;return n!==e.memoizedState&&(nt.flags|=2048,zr(9,{destroy:void 0},V8.bind(null,l,n),null)),[s,a,t]}function V8(t,e){t.action=e}function h2(t){var e=_n(),n=Ft;if(n!==null)return ny(e,n,t);_n(),e=e.memoizedState,n=_n();var s=n.queue.dispatch;return n.memoizedState=t,[e,s,!1]}function zr(t,e,n,s){return t={tag:t,create:n,deps:s,inst:e,next:null},e=nt.updateQueue,e===null&&(e=hm(),nt.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(s=n.next,n.next=t,t.next=s,e.lastEffect=t),t}function sy(){return _n().memoizedState}function Bd(t,e,n,s){var l=ms();nt.flags|=t,l.memoizedState=zr(1|e,{destroy:void 0},n,s===void 0?null:s)}function vm(t,e,n,s){var l=_n();s=s===void 0?null:s;var a=l.memoizedState.inst;Ft!==null&&s!==null&&mp(s,Ft.memoizedState.deps)?l.memoizedState=zr(e,a,n,s):(nt.flags|=t,l.memoizedState=zr(1|e,a,n,s))}function p2(t,e){Bd(8390656,8,t,e)}function bp(t,e){vm(2048,8,t,e)}function G8(t){nt.flags|=4;var e=nt.updateQueue;if(e===null)e=hm(),nt.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function ly(t){var e=_n().memoizedState;return G8({ref:e,nextImpl:t}),function(){if(Mt&2)throw Error(ve(440));return e.impl.apply(void 0,arguments)}}function ay(t,e){return vm(4,2,t,e)}function oy(t,e){return vm(4,4,t,e)}function iy(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function ry(t,e,n){n=n!=null?n.concat([t]):null,vm(4,4,iy.bind(null,e,t),n)}function xp(){}function cy(t,e){var n=_n();e=e===void 0?null:e;var s=n.memoizedState;return e!==null&&mp(e,s[1])?s[0]:(n.memoizedState=[t,e],t)}function uy(t,e){var n=_n();e=e===void 0?null:e;var s=n.memoizedState;if(e!==null&&mp(e,s[1]))return s[0];if(s=t(),xi){co(!0);try{t()}finally{co(!1)}}return n.memoizedState=[s,e],s}function Sp(t,e,n){return n===void 0||Ca&1073741824&&!(St&261930)?t.memoizedState=e:(t.memoizedState=n,t=nb(),nt.lanes|=t,zo|=t,n)}function dy(t,e,n,s){return tl(n,e)?n:Oo.current!==null?(t=Sp(t,n,s),tl(t,e)||(kn=!0),t):!(Ca&106)||Ca&1073741824&&!(St&261930)?(kn=!0,t.memoizedState=n):(t=nb(),nt.lanes|=t,zo|=t,e)}function fy(t,e,n,s,l){var a=At.p;At.p=a!==0&&8>a?a:8;var i=Ye.T,r={};r.types=i!==null?i.types:null,Ye.T=r,wp(t,!1,e,n);try{var c=l(),u=Ye.S;if(u!==null&&u(r,c),c!==null&&typeof c=="object"&&typeof c.then=="function"){var d=B8(c,s);Bc(t,e,d,el(t))}else Bc(t,e,s,el(t))}catch(m){Bc(t,e,{then:function(){},status:"rejected",reason:m},el())}finally{At.p=a,i!==null&&r.types!==null&&(i.types=r.types),Ye.T=i}}function F8(){}function bh(t,e,n,s){if(t.tag!==5)throw Error(ve(476));var l=my(t).queue;fy(t,l,e,ui,n===null?F8:function(){return hy(t),n(s)})}function my(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:ui,baseState:ui,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ma,lastRenderedState:ui},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ma,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function hy(t){var e=my(t);e.next===null&&(e=t.alternate.memoizedState),Bc(t,e.next.queue,{},el())}function kp(){return zn(Fr)}function py(){return _n().memoizedState}function vy(){return _n().memoizedState}function P8(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=el();t=xo(n);var s=So(e,t,n);s!==null&&(As(s,e,n),Oc(s,e,n)),e={cache:ip()},t.payload=e;return}e=e.return}}function q8(t,e,n){var s=el();n={lane:s,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},gm(t)?_y(e,n):(n=lp(t,e,n,s),n!==null&&(As(n,t,s),yy(n,e,s)))}function gy(t,e,n){var s=el();Bc(t,e,n,s)}function Bc(t,e,n,s){var l={lane:s,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(gm(t))_y(e,l);else{var a=t.alternate;if(t.lanes===0&&(a===null||a.lanes===0)&&(a=e.lastRenderedReducer,a!==null))try{var i=e.lastRenderedState,r=a(i,n);if(l.hasEagerState=!0,l.eagerState=r,tl(r,i))return dm(t,e,l,0),Yt===null&&um(),!1}catch{}finally{}if(n=lp(t,e,l,s),n!==null)return As(n,t,s),yy(n,e,s),!0}return!1}function wp(t,e,n,s){if(s={lane:2,revertLane:Op(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},gm(t)){if(e)throw Error(ve(479))}else e=lp(t,n,s,2),e!==null&&As(e,t,2)}function gm(t){var e=t.alternate;return t===nt||e!==null&&e===nt}function _y(t,e){yr=xf=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function yy(t,e,n){if(n&4194048){var s=e.lanes;s&=t.pendingLanes,n|=s,e.lanes=n,s4(t,n)}}var kf={readContext:zn,use:pm,useCallback:rn,useContext:rn,useEffect:rn,useImperativeHandle:rn,useLayoutEffect:rn,useInsertionEffect:rn,useMemo:rn,useReducer:rn,useRef:rn,useState:rn,useDebugValue:rn,useDeferredValue:rn,useTransition:rn,useSyncExternalStore:rn,useId:rn,useHostTransitionStatus:rn,useFormState:rn,useActionState:rn,useOptimistic:rn,useMemoCache:rn,useCacheRefresh:rn,useEffectEvent:rn},by={readContext:zn,use:pm,useCallback:function(t,e){return ms().memoizedState=[t,e===void 0?null:e],t},useContext:zn,useEffect:p2,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Bd(4194308,4,iy.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Bd(4194308,4,t,e)},useInsertionEffect:function(t,e){Bd(4,2,t,e)},useMemo:function(t,e){var n=ms();e=e===void 0?null:e;var s=t();if(xi){co(!0);try{t()}finally{co(!1)}}return n.memoizedState=[s,e],s},useReducer:function(t,e,n){var s=ms();if(n!==void 0){var l=n(e);if(xi){co(!0);try{n(e)}finally{co(!1)}}}else l=e;return s.memoizedState=s.baseState=l,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:l},s.queue=t,t=t.dispatch=q8.bind(null,nt,t),[s.memoizedState,t]},useRef:function(t){var e=ms();return t={current:t},e.memoizedState=t},useState:function(t){t=_h(t);var e=t.queue,n=gy.bind(null,nt,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:xp,useDeferredValue:function(t,e){var n=ms();return Sp(n,t,e)},useTransition:function(){var t=_h(!1);return t=fy.bind(null,nt,t.queue,!0,!1),ms().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var s=nt,l=ms();if(ut){if(n===void 0)throw Error(ve(407));n=n()}else{if(n=e(),Yt===null)throw Error(ve(349));St&127||Y4(s,e,n)}l.memoizedState=n;var a={value:n,getSnapshot:e};return l.queue=a,p2(K4.bind(null,s,a,t),[t]),s.flags|=2048,zr(9,{destroy:void 0},X4.bind(null,s,a,n,e),null),n},useId:function(){var t=ms(),e=Yt.identifierPrefix;if(ut){var n=na,s=ta;n=(s&~(1<<32-Js(s)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Sf++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=I8++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:kp,useFormState:f2,useActionState:f2,useOptimistic:function(t){var e=ms();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=wp.bind(null,nt,!0,n),n.dispatch=e,[t,e]},useMemoCache:_p,useCacheRefresh:function(){return ms().memoizedState=P8.bind(null,nt)},useEffectEvent:function(t){var e=ms(),n={impl:t};return e.memoizedState=n,function(){if(Mt&2)throw Error(ve(440));return n.impl.apply(void 0,arguments)}}},xy={readContext:zn,use:pm,useCallback:cy,useContext:zn,useEffect:bp,useImperativeHandle:ry,useInsertionEffect:ay,useLayoutEffect:oy,useMemo:uy,useReducer:zd,useRef:sy,useState:function(){return zd(Ma)},useDebugValue:xp,useDeferredValue:function(t,e){var n=_n();return dy(n,Ft.memoizedState,t,e)},useTransition:function(){var t=zd(Ma)[0],e=_n().memoizedState;return[typeof t=="boolean"?t:Iu(t),e]},useSyncExternalStore:q4,useId:py,useHostTransitionStatus:kp,useFormState:m2,useActionState:m2,useOptimistic:function(t,e){var n=_n();return W4(n,Ft,t,e)},useMemoCache:_p,useCacheRefresh:vy,useEffectEvent:ly},Y8={readContext:zn,use:pm,useCallback:cy,useContext:zn,useEffect:bp,useImperativeHandle:ry,useInsertionEffect:ay,useLayoutEffect:oy,useMemo:uy,useReducer:t1,useRef:sy,useState:function(){return t1(Ma)},useDebugValue:xp,useDeferredValue:function(t,e){var n=_n();return Ft===null?Sp(n,t,e):dy(n,Ft.memoizedState,t,e)},useTransition:function(){var t=t1(Ma)[0],e=_n().memoizedState;return[typeof t=="boolean"?t:Iu(t),e]},useSyncExternalStore:q4,useId:py,useHostTransitionStatus:kp,useFormState:h2,useActionState:h2,useOptimistic:function(t,e){var n=_n();return Ft!==null?W4(n,Ft,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:_p,useCacheRefresh:vy,useEffectEvent:ly};function n1(t,e,n,s){e=t.memoizedState,n=n(s,e),n=n==null?e:Xt({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var xh={enqueueSetState:function(t,e,n){t=t._reactInternals;var s=el(),l=xo(s);l.payload=e,n!=null&&(l.callback=n),e=So(t,l,s),e!==null&&(As(e,t,s),Oc(e,t,s))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var s=el(),l=xo(s);l.tag=1,l.payload=e,n!=null&&(l.callback=n),e=So(t,l,s),e!==null&&(As(e,t,s),Oc(e,t,s))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=el(),s=xo(n);s.tag=2,e!=null&&(s.callback=e),e=So(t,s,n),e!==null&&(As(e,t,n),Oc(e,t,n))}};function v2(t,e,n,s,l,a,i){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(s,a,i):e.prototype&&e.prototype.isPureReactComponent?!Wc(n,s)||!Wc(l,a):!0}function g2(t,e,n,s){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,s),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,s),e.state!==t&&xh.enqueueReplaceState(e,e.state,null)}function Si(t,e){var n=e;if("ref"in e){n={};for(var s in e)s!=="ref"&&(n[s]=e[s])}if(t=t.defaultProps){n===e&&(n=Xt({},n));for(var l in t)n[l]===void 0&&(n[l]=t[l])}return n}function Sy(t){mf(t)}function ky(t){console.error(t)}function wy(t){mf(t)}function wf(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(s){setTimeout(function(){throw s})}}function _2(t,e,n){try{var s=t.onCaughtError;s(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function Sh(t,e,n){return n=xo(n),n.tag=3,n.payload={element:null},n.callback=function(){wf(t,e)},n}function jy(t){return t=xo(t),t.tag=3,t}function Ny(t,e,n,s){var l=n.type.getDerivedStateFromError;if(typeof l=="function"){var a=s.value;t.payload=function(){return l(a)},t.callback=function(){_2(e,n,s)}}var i=n.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(t.callback=function(){_2(e,n,s),typeof l!="function"&&(jo===null?jo=new Set([this]):jo.add(this));var r=s.stack;this.componentDidCatch(s.value,{componentStack:r!==null?r:""})})}function X8(t,e,n,s,l){if(n.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(e=n.alternate,e!==null&&gi(e,n,l,!0),n=Hn.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Kn===null?Mf():n.alternate===null&&cn===0&&(cn=3),n.flags&=-257,n.flags|=65536,n.lanes=l,s===_f?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([s]):e.add(s),c1(t,s,l)),!1;case 22:return n.flags|=65536,s===_f?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([s])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([s]):n.add(s)),c1(t,s,l)),!1}throw Error(ve(435,n.tag))}return c1(t,s,l),Mf(),!1}if(ut)return e=Hn.current,e!==null?(!(e.flags&65536)&&(e.flags|=256),e.flags|=65536,e.lanes=l,s!==uh&&(t=Error(ve(422),{cause:s}),eu(gl(t,n)))):(s!==uh&&(e=Error(ve(423),{cause:s}),eu(gl(e,n))),t=t.current.alternate,t.flags|=65536,l&=-l,t.lanes|=l,s=gl(s,n),l=Sh(t.stateNode,s,l),e1(t,l),cn!==4&&(cn=2)),!1;var a=Error(ve(520),{cause:s});if(a=gl(a,n),Vc===null?Vc=[a]:Vc.push(a),cn!==4&&(cn=2),e===null)return!0;s=gl(s,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=l&-l,n.lanes|=t,t=Sh(n.stateNode,s,t),e1(n,t),!1;case 1:if(e=n.type,a=n.stateNode,!(n.flags&128)&&(typeof e.getDerivedStateFromError=="function"||a!==null&&typeof a.componentDidCatch=="function"&&(jo===null||!jo.has(a))))return n.flags|=65536,l&=-l,n.lanes|=l,l=jy(l),Ny(l,t,n,s),e1(n,l),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var jp=Error(ve(461)),kn=!1;function jn(t,e,n,s){e.child=t===null?U4(e,null,n,s):bi(e,t.child,n,s)}function y2(t,e,n,s,l){n=n.render;var a=e.ref;if("ref"in s){var i={};for(var r in s)r!=="ref"&&(i[r]=s[r])}else i=s;return _i(e),s=hp(t,e,n,i,a,l),r=pp(),t!==null&&!kn?(vp(t,e,l),Aa(t,e,l)):(ut&&r&&fm(e),e.flags|=1,jn(t,e,s,l),e.child)}function b2(t,e,n,s,l){if(t===null){var a=n.type;return typeof a=="function"&&!ap(a)&&a.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=a,Ty(t,e,a,s,l)):(t=Ld(n.type,null,s,e,e.mode,l),t.ref=e.ref,t.return=e,e.child=t)}if(a=t.child,!Tp(t,l)){var i=a.memoizedProps;if(n=n.compare,n=n!==null?n:Wc,n(i,s)&&t.ref===e.ref)return Aa(t,e,l)}return e.flags|=1,t=Ta(a,s),t.ref=e.ref,t.return=e,e.child=t}function Ty(t,e,n,s,l){if(t!==null){var a=t.memoizedProps;if(Wc(a,s)&&t.ref===e.ref)if(kn=!1,e.pendingProps=s=a,Tp(t,l))t.flags&131072&&(kn=!0);else return e.lanes=t.lanes,Aa(t,e,l)}return kh(t,e,n,s,l)}function Ey(t,e,n,s){var l=s.children,a=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if(e.flags&128){if(a=a!==null?a.baseLanes|n:n,t!==null){for(s=e.child=t.child,l=0;s!==null;)l=l|s.lanes|s.childLanes,s=s.sibling;s=l&~a}else s=0,e.child=null;return x2(t,e,a,n,s)}if(n&536870912)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Dd(e,a!==null?a.cachePool:null),a!==null?c2(e,a):vh(),G4(e);else return s=e.lanes=536870912,x2(t,e,a!==null?a.baseLanes|n:n,n,s)}else a!==null?(Dd(e,a.cachePool),c2(e,a),wo(),e.memoizedState=null):(t!==null&&Dd(e,null),vh(),wo());return jn(t,e,l,n),e.child}function Ic(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function x2(t,e,n,s,l){var a=rp();return a=a===null?null:{parent:Sn._currentValue,pool:a},e.memoizedState={baseLanes:n,cachePool:a},t!==null&&Dd(e,null),vh(),G4(e),t!==null&&gi(t,e,s,!0),e.childLanes=l,null}function Id(t,e){return e=_m({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function S2(t,e,n){return bi(e,t.child,null,n),t=Id(e,e.pendingProps),t.flags|=2,Xs(e),e.memoizedState=null,t}function K8(t,e,n){var s=e.pendingProps,l=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(ut){if(s.mode==="hidden")return t=Id(e,s),e.lanes=536870912,t.memoizedState={baseLanes:0,cachePool:null},Ic(null,t);if(gh(e),(t=Qt)?(t=Tb(t,_l),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Ao!==null?{id:ta,overflow:na}:null,retryLane:536870912,hydrationErrors:null},n=A4(t),n.return=e,e.child=n,Mn=e,Qt=null)):t=null,t===null)throw Lo(e);return e.lanes=536870912,null}return Id(e,s)}var a=t.memoizedState;if(a!==null){var i=a.dehydrated;if(gh(e),l)if(e.flags&256)e.flags&=-257,e=S2(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(ve(558));else if(kn||gi(t,e,n,!1),l=(n&t.childLanes)!==0,kn||l){if(Oo.current===null){if(s=Yt,s!==null&&(i=l4(s,n),i!==0&&i!==a.retryLane))throw a.retryLane=i,Ri(t,i),As(s,t,i),jp;Mf()}e=S2(t,e,n)}else t=a.treeContext,Qt=Sl(i.nextSibling),Mn=e,ut=!0,bo=null,_l=!1,t!==null&&O4(e,t),e=Id(e,s),e.flags|=134221824;return e}return t=Ta(t.child,{mode:s.mode,children:s.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Pi(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(ve(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function kh(t,e,n,s,l){return _i(e),n=hp(t,e,n,s,void 0,l),s=pp(),t!==null&&!kn?(vp(t,e,l),Aa(t,e,l)):(ut&&s&&fm(e),e.flags|=1,jn(t,e,n,l),e.child)}function k2(t,e,n,s,l,a){return _i(e),e.updateQueue=null,n=P4(e,s,n,l),F4(t),s=pp(),t!==null&&!kn?(vp(t,e,a),Aa(t,e,a)):(ut&&s&&fm(e),e.flags|=1,jn(t,e,n,a),e.child)}function w2(t,e,n,s,l){if(_i(e),e.stateNode===null){var a=lr,i=n.contextType;typeof i=="object"&&i!==null&&(a=zn(i)),a=new n(s,a),e.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=xh,e.stateNode=a,a._reactInternals=e,a=e.stateNode,a.props=s,a.state=e.memoizedState,a.refs={},up(e),i=n.contextType,a.context=typeof i=="object"&&i!==null?zn(i):lr,a.state=e.memoizedState,i=n.getDerivedStateFromProps,typeof i=="function"&&(n1(e,n,i,s),a.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(i=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),i!==a.state&&xh.enqueueReplaceState(a,a.state,null),zc(e,s,a,l),Dc(),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308),s=!0}else if(t===null){a=e.stateNode;var r=e.memoizedProps,c=Si(n,r);a.props=c;var u=a.context,d=n.contextType;i=lr,typeof d=="object"&&d!==null&&(i=zn(d));var m=n.getDerivedStateFromProps;d=typeof m=="function"||typeof a.getSnapshotBeforeUpdate=="function",r=e.pendingProps!==r,d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(r||u!==i)&&g2(e,a,s,i),no=!1;var f=e.memoizedState;a.state=f,zc(e,s,a,l),Dc(),u=e.memoizedState,r||f!==u||no?(typeof m=="function"&&(n1(e,n,m,s),u=e.memoizedState),(c=no||v2(e,n,c,s,f,u,i))?(d||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(e.flags|=4194308)):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=s,e.memoizedState=u),a.props=s,a.state=u,a.context=i,s=c):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),s=!1)}else{a=e.stateNode,hh(t,e),i=e.memoizedProps,d=Si(n,i),a.props=d,m=e.pendingProps,f=a.context,u=n.contextType,c=lr,typeof u=="object"&&u!==null&&(c=zn(u)),r=n.getDerivedStateFromProps,(u=typeof r=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(i!==m||f!==c)&&g2(e,a,s,c),no=!1,f=e.memoizedState,a.state=f,zc(e,s,a,l),Dc();var h=e.memoizedState;i!==m||f!==h||no||t!==null&&t.dependencies!==null&&gf(t.dependencies)?(typeof r=="function"&&(n1(e,n,r,s),h=e.memoizedState),(d=no||v2(e,n,d,s,f,h,c)||t!==null&&t.dependencies!==null&&gf(t.dependencies))?(u||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(s,h,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(s,h,c)),typeof a.componentDidUpdate=="function"&&(e.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof a.componentDidUpdate!="function"||i===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),e.memoizedProps=s,e.memoizedState=h),a.props=s,a.state=h,a.context=c,s=d):(typeof a.componentDidUpdate!="function"||i===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||i===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),s=!1)}return a=s,Pi(t,e),s=(e.flags&128)!==0,a||s?(a=e.stateNode,n=s&&typeof n.getDerivedStateFromError!="function"?null:a.render(),e.flags|=1,t!==null&&s?(e.child=bi(e,t.child,null,l),e.child=bi(e,null,n,l)):jn(t,e,n,l),e.memoizedState=a.state,t=e.child):t=Aa(t,e,l),t}function j2(t,e,n,s){return vi(),e.flags|=256,jn(t,e,n,s),e.child}var wh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function jh(t){return{baseLanes:t,cachePool:z4()}}function Nh(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Qs),t}function $y(t,e,n){var s=e.pendingProps,l=!1,a=(e.flags&128)!==0,i;if((i=a)||(i=t!==null&&t.memoizedState===null?!1:(In.current&2)!==0),i&&(l=!0,e.flags&=-129),i=(e.flags&32)!==0,e.flags&=-33,t===null){if(ut){if(l?ko(e):wo(),(t=Qt)?(t=Tb(t,_l),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Ao!==null?{id:ta,overflow:na}:null,retryLane:536870912,hydrationErrors:null},n=A4(t),n.return=e,e.child=n,Mn=e,Qt=null)):t=null,t===null)throw Lo(e);return Ip(t)?e.lanes=32:e.lanes=536870912,null}return a=s.children,s=s.fallback,l?(wo(),l=e.mode,a=_m({mode:"hidden",children:a},l),s=di(s,l,n,null),a.return=e,s.return=e,a.sibling=s,e.child=a,s=e.child,s.memoizedState=jh(n),s.childLanes=Nh(t,i,n),e.memoizedState=wh,Ic(null,s)):(ko(e),Np(e,a))}var r=t.memoizedState;if(r!==null){var c=r.dehydrated;if(c!==null)return Q8(t,e,a,i,s,c,r,n)}return l?(wo(),l=s.fallback,a=e.mode,r=t.child,c=r.sibling,s=Ta(r,{mode:"hidden",children:s.children}),s.subtreeFlags=r.subtreeFlags&1206910976,c!==null?l=Ta(c,l):(l=di(l,a,n,null),l.flags|=2),l.return=e,s.return=e,s.sibling=l,e.child=s,Ic(null,s),s=e.child,l=t.child.memoizedState,l===null?l=jh(n):(a=l.cachePool,a!==null?(r=Sn._currentValue,a=a.parent!==r?{parent:r,pool:r}:a):a=z4(),l={baseLanes:l.baseLanes|n,cachePool:a}),s.memoizedState=l,s.childLanes=Nh(t,i,n),e.memoizedState=wh,Ic(t.child,s)):(ko(e),n=t.child,t=n.sibling,n=Ta(n,{mode:"visible",children:s.children}),n.return=e,n.sibling=null,t!==null&&(i=e.deletions,i===null?(e.deletions=[t],e.flags|=16):i.push(t)),e.child=n,e.memoizedState=null,n)}function Np(t,e){return e=_m({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function _m(t,e){return t=Rs(22,t,null,e),t.lanes=0,t}function sd(t,e,n){return bi(e,t.child,null,n),t=Np(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Q8(t,e,n,s,l,a,i,r){if(n)return e.flags&256?(ko(e),e.flags&=-257,sd(t,e,r)):e.memoizedState!==null?(wo(),e.child=t.child,e.flags|=128,null):(wo(),a=l.fallback,i=e.mode,l=_m({mode:"visible",children:l.children},i),a=di(a,i,r,null),a.flags|=2,l.return=e,a.return=e,l.sibling=a,e.child=l,bi(e,t.child,null,r),l=e.child,l.memoizedState=jh(r),l.childLanes=Nh(t,s,r),e.memoizedState=wh,Ic(null,l));if(ko(e),Ip(a)){if(s=a.nextSibling&&a.nextSibling.dataset,s)var c=s.dgst;return s=c,s!==""&&(l=Error(ve(419)),l.stack="",l.digest=s,eu({value:l,source:null,stack:null})),sd(t,e,r)}if(kn||gi(t,e,r,!1),s=(r&t.childLanes)!==0,kn||s){if(Oo.current!==null)return sd(t,e,r);if(s=Yt,s!==null&&(l=l4(s,r),l!==0&&l!==i.retryLane))throw i.retryLane=l,Ri(t,l),As(s,t,l),jp;return Zh(a)||Mf(),sd(t,e,r)}return Zh(a)?(e.flags|=192,e.child=t.child,null):(t=i.treeContext,Qt=Sl(a.nextSibling),Mn=e,ut=!0,bo=null,_l=!1,t!==null&&O4(e,t),e=Np(e,l.children),e.flags|=134221824,e)}function N2(t,e,n){t.lanes|=e;var s=t.alternate;s!==null&&(s.lanes|=e),Od(t.return,e,n)}function T2(t){for(var e=null;t!==null;){var n=t.alternate;n!==null&&bf(n)===null&&(e=t),t=t.sibling}return e}function ld(t,e,n,s,l,a){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:l,treeForkCount:a}:(i.isBackwards=e,i.rendering=null,i.renderingStartTime=0,i.last=s,i.tail=n,i.tailMode=l,i.treeForkCount=a)}function s1(t){var e=t.child;for(t.child=null;e!==null;){var n=e.sibling;e.sibling=t.child,t.child=e,e=n}}function Th(t,e,n){var s=e.pendingProps,l=s.revealOrder,a=s.tail;s=s.children;var i=In.current;if(e.flags&128)return nu(e,i),null;var r=(i&2)!==0;if(r?(i=i&1|2,e.flags|=128):i&=1,nu(e,i),l==="backwards"&&t!==null?(s1(t),jn(t,e,s,n),s1(t)):jn(t,e,s,n),s=ut?Jc:0,!r&&t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&N2(t,n,e);else if(t.tag===19)N2(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(l){case"backwards":n=T2(e.child),n===null?(l=e.child,e.child=null):(l=n.sibling,n.sibling=null,s1(e)),ld(e,!0,l,null,a,s);break;case"unstable_legacy-backwards":for(n=null,l=e.child,e.child=null;l!==null;){if(t=l.alternate,t!==null&&bf(t)===null){e.child=l;break}t=l.sibling,l.sibling=n,n=l,l=t}ld(e,!0,n,null,a,s);break;case"together":ld(e,!1,null,null,void 0,s);break;case"independent":e.memoizedState=null;break;default:n=T2(e.child),n===null?(l=e.child,e.child=null):(l=n.sibling,n.sibling=null),ld(e,!1,l,n,a,s)}return e.child}function E2(t,e,n){var s=e.pendingProps;return fo(e,e.type,s.value),jn(t,e,s.children,n),e.child}function Aa(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),zo|=e.lanes,!(n&e.childLanes))if(t!==null){if(gi(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(ve(153));if(e.child!==null){for(t=e.child,n=Ta(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Ta(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Tp(t,e){return t.lanes&e?!0:(t=t.dependencies,!!(t!==null&&gf(t)))}function Z8(t,e,n){switch(e.tag){case 3:cf(e,e.stateNode.containerInfo),fo(e,Sn,t.memoizedState.cache),vi();break;case 27:case 5:eh(e);break;case 4:cf(e,e.stateNode.containerInfo);break;case 10:fo(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,gh(e),null;break;case 13:var s=e.memoizedState;if(s!==null){if(s.dehydrated!==null)return ko(e),e.flags|=128,null;s=gi(t,e,n,!1);var l=e.child.childLanes;return s||n&l?$y(t,e,n):(ko(e),t=Aa(t,e,n),t!==null?t.sibling:null)}ko(e);break;case 19:if(e.flags&128)return Th(t,e,n);if(l=(t.flags&128)!==0,s=(n&e.childLanes)!==0,s||(gi(t,e,n,!1),s=(n&e.childLanes)!==0),l){if(s)return Th(t,e,n);e.flags|=128}if(l=e.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),nu(e,In.current),s)break;return null;case 22:return e.lanes=0,Ey(t,e,n,e.pendingProps);case 24:fo(e,Sn,t.memoizedState.cache)}return Aa(t,e,n)}function Ry(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)kn=!0;else{if(!Tp(t,n)&&!(e.flags&128))return kn=!1,Z8(t,e,n);kn=!!(t.flags&131072)}else kn=!1,ut&&e.flags&1048576&&L4(e,Jc,e.index);switch(e.lanes=0,e.tag){case 16:e:{var s=e.pendingProps;if(t=ei(e.elementType),e.type=t,typeof t=="function")ap(t)?(s=Si(t,s),e.tag=1,e=w2(null,e,t,s,n)):(e.tag=0,e=kh(null,e,t,s,n));else{if(t!=null){var l=t.$$typeof;if(l===q0){e.tag=11,e=y2(null,e,t,s,n);break e}else if(l===Y0){e.tag=14,e=b2(null,e,t,s,n);break e}else if(l===Jl){e.tag=10,e.type=t,e=E2(null,e,n);break e}}throw e=W1(t)||t,Error(ve(306,e,""))}}return e;case 0:return kh(t,e,e.type,e.pendingProps,n);case 1:return s=e.type,l=Si(s,e.pendingProps),w2(t,e,s,l,n);case 3:e:{if(cf(e,e.stateNode.containerInfo),t===null)throw Error(ve(387));s=e.pendingProps;var a=e.memoizedState;l=a.element,hh(t,e),zc(e,s,null,n);var i=e.memoizedState;if(s=i.cache,fo(e,Sn,s),s!==a.cache&&fh(e,[Sn],n,!0),Dc(),s=i.element,a.isDehydrated)if(a={element:s,isDehydrated:!1,cache:i.cache},e.updateQueue.baseState=a,e.memoizedState=a,e.flags&256){e=j2(t,e,s,n);break e}else if(s!==l){l=gl(Error(ve(424)),e),eu(l),e=j2(t,e,s,n);break e}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Qt=Sl(t.firstChild),Mn=e,ut=!0,bo=null,_l=!0,n=U4(e,null,s,n),e.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(vi(),s===l){e=Aa(t,e,n);break e}jn(t,e,s,n)}e=e.child}return e;case 26:return Pi(t,e),t===null?(n=J2(e.type,null,e.pendingProps,null))?e.memoizedState=n:ut||(e.stateNode=yb(e.type,e.pendingProps,yo.current,e)):e.memoizedState=J2(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return eh(e),t===null&&ut&&(s=e.stateNode=Eb(e.type,e.pendingProps,yo.current),Mn=e,_l=!0,l=Qt,Vo(e.type)?(Wh=l,Qt=Sl(s.firstChild)):Qt=l),jn(t,e,e.pendingProps.children,n),Pi(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&ut&&((l=s=Qt)&&(s=Pk(s,e.type,e.pendingProps,_l),s!==null?(e.stateNode=s,Mn=e,Qt=Sl(s.firstChild),_l=!1,l=!0):l=!1),l||Lo(e)),eh(e),l=e.type,a=e.pendingProps,i=t!==null?t.memoizedProps:null,s=a.children,Xh(l,a)?s=null:i!==null&&Xh(l,i)&&(e.flags|=32),e.memoizedState!==null&&(l=hp(t,e,U8,null,null,n),Fr._currentValue=l),Pi(t,e),jn(t,e,s,n),e.child;case 6:return t===null&&ut&&((t=n=Qt)&&(n=qk(n,e.pendingProps,_l),n!==null?(e.stateNode=n,Mn=e,Qt=null,t=!0):t=!1),t||Lo(e)),null;case 13:return $y(t,e,n);case 4:return cf(e,e.stateNode.containerInfo),s=e.pendingProps,t===null?e.child=bi(e,null,s,n):jn(t,e,s,n),e.child;case 11:return y2(t,e,e.type,e.pendingProps,n);case 7:return s=e.pendingProps,Pi(t,e),jn(t,e,s,n),e.child;case 8:return jn(t,e,e.pendingProps.children,n),e.child;case 12:return jn(t,e,e.pendingProps.children,n),e.child;case 10:return E2(t,e,n);case 9:return l=e.type._context,s=e.pendingProps.children,_i(e),l=zn(l),s=s(l),e.flags|=1,jn(t,e,s,n),e.child;case 14:return b2(t,e,e.type,e.pendingProps,n);case 15:return Ty(t,e,e.type,e.pendingProps,n);case 19:return Th(t,e,n);case 31:return K8(t,e,n);case 22:return Ey(t,e,n,e.pendingProps);case 24:return _i(e),s=zn(Sn),t===null?(l=rp(),l===null&&(l=Yt,a=ip(),l.pooledCache=a,a.refCount++,a!==null&&(l.pooledCacheLanes|=n),l=a),e.memoizedState={parent:s,cache:l},up(e),fo(e,Sn,l)):(t.lanes&n&&(hh(t,e),zc(e,null,null,n),Dc()),l=t.memoizedState,a=e.memoizedState,l.parent!==s?(l={parent:s,cache:s},e.memoizedState=l,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=l),fo(e,Sn,s)):(s=a.cache,fo(e,Sn,s),s!==l.cache&&fh(e,[Sn],n,!0))),jn(t,e,e.pendingProps.children,n),e.child;case 30:return e.stateNode===null&&(e.stateNode={autoName:null,paired:null,clones:null,ref:null}),s=e.pendingProps,s.name!=null&&s.name!=="auto"?e.flags|=t===null?18882560:18874368:ut&&fm(e),t!==null&&t.memoizedProps.name!==s.name?e.flags|=4194816:Pi(t,e),jn(t,e,s.children,n),e.child;case 29:throw e.pendingProps}throw Error(ve(156,e.tag))}function va(t){t.flags|=4}function l1(t,e,n,s,l){var a;if((a=(t.mode&32)!==0)&&(a=n===null?ng(e,s):ng(e,s)&&(s.src!==n.src||s.srcSet!==n.srcSet)),a){if(t.flags|=16777216,(l&335544128)===l)if(t.stateNode.complete)t.flags|=8192;else if(ab())t.flags|=8192;else throw mi=_f,cp}else t.flags&=-16777217}function $2(t,e){if(e.type!=="stylesheet"||e.state.loading&4)t.flags&=-16777217;else if(t.flags|=16777216,!Mb(e))if(ab())t.flags|=8192;else throw mi=_f,cp}function ad(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?t4():536870912,t.lanes|=e,Br|=e)}function ic(t,e){if(!ut)switch(t.tailMode){case"visible":break;case"collapsed":for(var n=t.tail,s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:s.sibling=null;break;default:for(e=t.tail,n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null}}function Kt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,s=0;if(e)for(var l=t.child;l!==null;)n|=l.lanes|l.childLanes,s|=l.subtreeFlags&1206910976,s|=l.flags&1206910976,l.return=t,l=l.sibling;else for(l=t.child;l!==null;)n|=l.lanes|l.childLanes,s|=l.subtreeFlags,s|=l.flags,l.return=t,l=l.sibling;return t.subtreeFlags|=s,t.childLanes=n,e}function W8(t,e,n){var s=e.pendingProps;switch(op(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Kt(e),null;case 1:return Kt(e),null;case 3:return n=e.stateNode,s=null,t!==null&&(s=t.memoizedState.cache),e.memoizedState.cache!==s&&(e.flags|=2048),Ea(Sn),Lr(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Bi(e)?va(e):t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Jm())),Kt(e),null;case 26:var l=e.type,a=e.memoizedState;return t===null?(va(e),a!==null?(Kt(e),$2(e,a)):(Kt(e),l1(e,l,null,s,n))):a?a!==t.memoizedState?(va(e),Kt(e),$2(e,a)):(Kt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==s&&va(e),Kt(e),l1(e,l,t,s,n)),null;case 27:if(uf(e),n=yo.current,l=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==s&&va(e);else{if(!s){if(e.stateNode===null)throw Error(ve(166));return Kt(e),e.subtreeFlags&=-33554433,null}t=aa.current,Bi(e)?n2(e):(t=Eb(l,s,n),e.stateNode=t,va(e))}return Kt(e),e.subtreeFlags&=-33554433,null;case 5:if(uf(e),l=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==s&&va(e);else{if(!s){if(e.stateNode===null)throw Error(ve(166));return Kt(e),e.subtreeFlags&=-33554433,null}if(a=aa.current,Bi(e))n2(e);else{var i=ou(yo.current);switch(a){case 1:a=i.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:a=i.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":a=i.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":a=i.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":a=i.createElement("div"),a.innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a=typeof s.is=="string"?i.createElement("select",{is:s.is}):i.createElement("select"),s.multiple?a.multiple=!0:s.size&&(a.size=s.size);break;default:a=typeof s.is=="string"?i.createElement(l,{is:s.is}):i.createElement(l)}}a[Dn]=e,a[Os]=s;e:for(i=e.child;i!==null;){if(i.tag===5||i.tag===6)a.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===e)break e;for(;i.sibling===null;){if(i.return===null||i.return===e)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}e.stateNode=a;e:switch(Un(a,l,s),l){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&va(e)}}return Kt(e),e.subtreeFlags&=-33554433,l1(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==s&&va(e);else{if(typeof s!="string"&&e.stateNode===null)throw Error(ve(166));if(t=yo.current,Bi(e)){if(t=e.stateNode,n=e.memoizedProps,s=null,l=Mn,l!==null)switch(l.tag){case 27:case 5:s=l.memoizedProps}t[Dn]=e,t=!!(t.nodeValue===n||s!==null&&s.suppressHydrationWarning===!0||gb(t.nodeValue,n)),t||Lo(e,!0)}else t=ou(t).createTextNode(s),t[Dn]=e,e.stateNode=t}return Kt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(s=Bi(e),n!==null){if(t===null){if(!s)throw Error(ve(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(ve(557));t[Dn]=e}else vi(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;Kt(e),t=!1}else n=Jm(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Xs(e),e):(Xs(e),null);if(e.flags&128)throw Error(ve(558))}return Kt(e),null;case 13:if(s=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(l=Bi(e),s!==null&&s.dehydrated!==null){if(t===null){if(!l)throw Error(ve(318));if(l=e.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(ve(317));l[Dn]=e}else vi(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;Kt(e),l=!1}else l=Jm(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),l=!0;if(!l)return e.flags&256?(Xs(e),e):(Xs(e),null)}return Xs(e),e.flags&128?(e.lanes=n,e):(n=s!==null,t=t!==null&&t.memoizedState!==null,n&&(s=e.child,l=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(l=s.alternate.memoizedState.cachePool.pool),a=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(a=s.memoizedState.cachePool.pool),a!==l&&(s.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),ad(e,e.updateQueue),Kt(e),null);case 4:return Lr(),t===null&&Dp(e.stateNode.containerInfo),e.flags|=67108864,Kt(e),null;case 10:return Ea(e.type),Kt(e),null;case 19:if(fp(e),s=e.memoizedState,s===null)return Kt(e),null;if(l=(e.flags&128)!==0,a=s.rendering,a===null)if(l)ic(s,!1);else{if(cn!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(a=bf(t),a!==null){for(e.flags|=128,ic(s,!1),t=a.updateQueue,e.updateQueue=t,ad(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)M4(n,t),n=n.sibling;return nu(e,In.current&1|2),ut&&wa(e,s.treeForkCount),e.child}t=t.sibling}s.tail!==null&&Zs()>Rf&&(e.flags|=128,l=!0,ic(s,!1),e.lanes=4194304)}else{if(!l)if(t=bf(a),t!==null){if(e.flags|=128,l=!0,t=t.updateQueue,e.updateQueue=t,ad(e,t),ic(s,!0),s.tail===null&&s.tailMode!=="collapsed"&&s.tailMode!=="visible"&&!a.alternate&&!ut)return Kt(e),null}else 2*Zs()-s.renderingStartTime>Rf&&n!==536870912&&(e.flags|=128,l=!0,ic(s,!1),e.lanes=4194304);s.isBackwards?(a.sibling=e.child,e.child=a):(t=s.last,t!==null?t.sibling=a:e.child=a,s.last=a)}if(s.tail!==null){t=s.tail;e:{for(n=t;n!==null;){if(n.alternate!==null){n=!1;break e}n=n.sibling}n=!0}return s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Zs(),t.sibling=null,a=In.current,a=l?a&1|2:a&1,s.tailMode==="visible"||s.tailMode==="collapsed"||!n||ut?nu(e,a):(n=a,Wt(Hn,e),Wt(In,n),Kn===null&&(Kn=e)),ut&&wa(e,s.treeForkCount),t}return Kt(e),null;case 22:case 23:return Xs(e),dp(),s=e.memoizedState!==null,t!==null?t.memoizedState!==null!==s&&(e.flags|=8192):s&&(e.flags|=8192),s?n&536870912&&!(e.flags&128)&&(Kt(e),e.subtreeFlags&6&&(e.flags|=8192)):Kt(e),n=e.updateQueue,n!==null&&ad(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),s=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),s!==n&&(e.flags|=2048),t!==null&&Bn(fi),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),Ea(Sn),Kt(e),null;case 25:return null;case 30:return e.flags|=33554432,Kt(e),null}throw Error(ve(156,e.tag))}function J8(t,e){switch(op(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Ea(Sn),Lr(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return uf(e),null;case 31:if(e.memoizedState!==null){if(Xs(e),e.alternate===null)throw Error(ve(340));vi()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Xs(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(ve(340));vi()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return fp(e),t=e.flags,t&65536?(e.flags=t&-65537|128,t=e.memoizedState,t!==null&&(t.rendering=null,t.tail=null),e.flags|=4,e):null;case 4:return Lr(),null;case 10:return Ea(e.type),null;case 22:case 23:return Xs(e),dp(),t!==null&&Bn(fi),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Ea(Sn),null;case 25:return null;default:return null}}function Cy(t,e){switch(op(e),e.tag){case 3:Ea(Sn),Lr();break;case 26:case 27:case 5:uf(e);break;case 4:Lr();break;case 31:e.memoizedState!==null&&Xs(e);break;case 13:Xs(e);break;case 19:fp(e);break;case 10:Ea(e.type);break;case 22:case 23:Xs(e),dp(),t!==null&&Bn(fi);break;case 24:Ea(Sn)}}function Uu(t,e){try{var n=e.updateQueue,s=n!==null?n.lastEffect:null;if(s!==null){var l=s.next;n=l;do{if((n.tag&t)===t){s=void 0;var a=n.create,i=n.inst;s=a(),i.destroy=s}n=n.next}while(n!==l)}}catch(r){Ht(e,e.return,r)}}function Do(t,e,n){try{var s=e.updateQueue,l=s!==null?s.lastEffect:null;if(l!==null){var a=l.next;s=a;do{if((s.tag&t)===t){var i=s.inst,r=i.destroy;if(r!==void 0){i.destroy=void 0,l=e;var c=n,u=r;try{u()}catch(d){Ht(l,c,d)}}}s=s.next}while(s!==a)}}catch(d){Ht(e,e.return,d)}}function My(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{V4(e,n)}catch(s){Ht(t,t.return,s)}}}function Ay(t,e,n){n.props=Si(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(s){Ht(t,e,s)}}function Ql(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var s=t.stateNode;break;case 30:var l=t.stateNode,a=Ra(t.memoizedProps,l);(l.ref===null||l.ref.name!==a)&&(l.ref=Sb(a)),s=l.ref;break;case 7:if(t.stateNode===null){var i=new nl(t);Ls(t.child,!1,Gk,i,void 0,void 0),t.stateNode=i}s=t.stateNode;break;default:s=t.stateNode}typeof n=="function"?t.refCleanup=n(s):n.current=s}}catch(r){Ht(t,e,r)}}function On(t,e){var n=t.ref,s=t.refCleanup;if(n!==null)if(typeof s=="function")try{s()}catch(l){Ht(t,e,l)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(l){Ht(t,e,l)}else n.current=null}function jf(t,e){if((t.tag===5||t.tag===27||t.tag===6)&&t.alternate===null&&e!==null)for(var n=0;n<e.length;n++)Nb(t.stateNode,e[n])}function R2(t){for(var e=t.return;e!==null&&($p(e)&&Nb(t.stateNode,e.stateNode),!Ep(e));)e=e.return}function Uc(t){for(var e=t.return;e!==null&&($p(e)&&Fk(t.stateNode,e.stateNode),!Ep(e));)e=e.return}function Ep(t){return t.tag===5||t.tag===3||t.tag===27}function $p(t){return t&&t.tag===7&&t.stateNode!==null}function Eh(t){var e=t.type,n=t.memoizedProps,s=t.stateNode;try{e:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&s.focus();break e;case"img":n.src?s.src=n.src:n.srcSet&&(s.srcset=n.srcSet)}}catch(l){Ht(t,t.return,l)}}function a1(t,e,n){try{var s=t.stateNode;jk(s,t.type,n,e),s[Os]=e}catch(l){Ht(t,t.return,l)}}function Ly(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Vo(t.type)||t.tag===4}function o1(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Ly(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Vo(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function $h(t,e,n,s){var l=t.tag;if(l===5||l===6)l=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(l,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(l),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=ea)),jf(t,s),$t=!0;else if(l!==4&&(l===27&&(jf(t,s),s=null,Vo(t.type)&&(n=t.stateNode,e=null)),t=t.child,t!==null))for($h(t,e,n,s),t=t.sibling;t!==null;)$h(t,e,n,s),t=t.sibling}function Nf(t,e,n,s){var l=t.tag;if(l===5||l===6)l=t.stateNode,e?n.insertBefore(l,e):n.appendChild(l),jf(t,s),$t=!0;else if(l!==4&&(l===27&&(jf(t,s),s=null,Vo(t.type)&&(n=t.stateNode)),t=t.child,t!==null))for(Nf(t,e,n,s),t=t.sibling;t!==null;)Nf(t,e,n,s),t=t.sibling}function Oy(t){var e=t.stateNode,n=t.memoizedProps;try{for(var s=t.type,l=e.attributes;l.length;)e.removeAttributeNode(l[0]);Un(e,s,n),e[Dn]=t,e[Os]=n}catch(a){Ht(t,t.return,a)}}var Tf=!1,Ks=null;function C2(t){(t.tag===30||t.subtreeFlags&33554432)&&(Tf=!0)}var Zl=null;function M2(){var t=Zl;return Zl=null,t}var Ts=0;function Wr(t,e,n,s,l){return Ts=0,Dy(t.child,e,n,s,l)}function Dy(t,e,n,s,l){for(var a=!1;t!==null;){if(t.tag===5){var i=t.stateNode;if(s!==null){var r=Kh(i);s.push(r),r.view&&(a=!0)}else a||Kh(i).view&&(a=!0);Tf=!0,bb(i,Ts===0?e:e+"_"+Ts,n),Ts++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&l||Dy(t.child,e,n,s,l)&&(a=!0));t=t.sibling}return a}function ra(t,e){for(;t!==null;)t.tag===5?xb(t.stateNode,t.memoizedProps):(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&e||ra(t.child,e)),t=t.sibling}function Ud(t){if(t.subtreeFlags&18874368)for(t=t.child;t!==null;){if((t.tag!==22||t.memoizedState===null)&&(Ud(t),t.tag===30&&(t.flags&18874368)!==0&&t.stateNode.paired)){var e=t.memoizedProps;if(e.name==null||e.name==="auto")throw Error(ve(544));var n=e.name;e=Ia(e.default,e.share),e!=="none"&&(Wr(t,n,e,null,!1)||ra(t.child,!1))}t=t.sibling}}function Rh(t,e){if(t.tag===30){var n=t.stateNode,s=t.memoizedProps,l=Ra(s,n),a=Ia(s.default,n.paired?s.share:s.enter);a!=="none"?Wr(t,l,a,null,!1)?(Ud(t),n.paired||e||Ir(t,s.onEnter)):ra(t.child,!1):Ud(t)}else if(t.subtreeFlags&33554432)for(t=t.child;t!==null;)Rh(t,e),t=t.sibling;else Ud(t)}function Ch(t){if(Ks!==null&&Ks.size!==0){var e=Ks;if(t.subtreeFlags&18874368)for(t=t.child;t!==null;){if(t.tag!==22||t.memoizedState===null){if(t.tag===30&&t.flags&18874368){var n=t.memoizedProps,s=n.name;if(s!=null&&s!=="auto"){var l=e.get(s);if(l!==void 0){var a=Ia(n.default,n.share);if(a!=="none"&&(Wr(t,s,a,null,!1)?(a=t.stateNode,l.paired=a,a.paired=l,Ir(t,n.onShare)):ra(t.child,!1)),e.delete(s),e.size===0)break}}}Ch(t)}t=t.sibling}}}function Mh(t){if(t.tag===30){var e=t.memoizedProps,n=Ra(e,t.stateNode),s=Ks!==null?Ks.get(n):void 0,l=Ia(e.default,s!==void 0?e.share:e.exit);l!=="none"&&(Wr(t,n,l,null,!1)?s!==void 0?(l=t.stateNode,s.paired=l,l.paired=s,Ks.delete(n),Ir(t,e.onShare)):Ir(t,e.onExit):ra(t.child,!1)),Ks!==null&&Ch(t)}else if(t.subtreeFlags&33554432)for(t=t.child;t!==null;)Mh(t),t=t.sibling;else Ks!==null&&Ch(t)}function zy(t){for(t=t.child;t!==null;){if(t.tag===30){var e=t.memoizedProps,n=Ra(e,t.stateNode);e=Ia(e.default,e.update),t.flags&=-5,e!=="none"&&Wr(t,n,e,t.memoizedState=[],!1)}else t.subtreeFlags&33554432&&zy(t);t=t.sibling}}function Ah(t){if(t.subtreeFlags&18874368)for(t=t.child;t!==null;){if(t.tag!==22||t.memoizedState===null){if(t.tag===30&&t.flags&18874368){var e=t.stateNode;e.paired!==null&&(e.paired=null,ra(t.child,!1))}Ah(t)}t=t.sibling}}function Hd(t){if(t.tag===30)t.stateNode.paired=null,ra(t.child,!1),Ah(t);else if(t.subtreeFlags&33554432)for(t=t.child;t!==null;)Hd(t),t=t.sibling;else Ah(t)}function By(t){for(t=t.child;t!==null;)t.tag===30?ra(t.child,!1):t.subtreeFlags&33554432&&By(t),t=t.sibling}function Rp(t,e,n,s,l,a,i){for(var r=!1;e!==null;){if(e.tag===5){var c=e.stateNode;if(a!==null&&Ts<a.length){var u=a[Ts],d=Kh(c);(u.view||d.view)&&(r=!0);var m;if(m=(t.flags&4)===0)if(d.clip)m=!0;else{m=u.rect;var f=d.rect;m=m.y!==f.y||m.x!==f.x||m.height!==f.height||m.width!==f.width}m&&(t.flags|=4),d.abs?d=!u.abs:(u=u.rect,d=d.rect,d=u.height!==d.height||u.width!==d.width),d&&(t.flags|=32)}else t.flags|=32;t.flags&4&&bb(c,Ts===0?n:n+"_"+Ts,l),r&&t.flags&4||(Zl===null&&(Zl=[]),Zl.push(c,Ts===0?s:s+"_"+Ts,e.memoizedProps)),Ts++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i?t.flags|=e.flags&32:Rp(t,e.child,n,s,l,a,i)&&(r=!0));e=e.sibling}return r}function Iy(t,e){for(t=t.child;t!==null;){if(t.tag===30){var n=t.memoizedProps,s=t.stateNode,l=Ra(n,s),a=Ia(n.default,n.update),i;i=t.memoizedState,t.memoizedState=null,s=t;var r=t.child;Ts=0,l=Rp(s,r,l,l,a,i,!1),t.flags&4&&l&&Ir(t,n.onUpdate)}else t.subtreeFlags&33554432&&Iy(t);t=t.sibling}}var $n=!1,Ot=!1,Il=!1,i1=!1,A2=typeof WeakSet=="function"?WeakSet:Set,Rn=null,Ul=!1,kc=!1,Ef=!1,Lh=!1;function ek(t,e,n){if(t=t.containerInfo,qh=Pr,t=w4(t),np(t)){if("selectionStart"in t)var s={start:t.selectionStart,end:t.selectionEnd};else e:{s=(s=t.ownerDocument)&&s.defaultView||window;var l=s.getSelection&&s.getSelection();if(l&&l.rangeCount!==0){s=l.anchorNode;var a=l.anchorOffset,i=l.focusNode;l=l.focusOffset;try{s.nodeType,i.nodeType}catch{s=null;break e}var r=0,c=-1,u=-1,d=0,m=0,f=t,h=null;t:for(;;){for(var g;f!==s||a!==0&&f.nodeType!==3||(c=r+a),f!==i||l!==0&&f.nodeType!==3||(u=r+l),f.nodeType===3&&(r+=f.nodeValue.length),(g=f.firstChild)!==null;)h=f,f=g;for(;;){if(f===t)break t;if(h===s&&++d===a&&(c=r),h===i&&++m===l&&(u=r),(g=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=g}s=c===-1||u===-1?null:{start:c,end:u}}else s=null}s=s||{start:0,end:0}}else s=null;for(Yh={focusedElem:t,selectionRange:s},Pr=!1,n=(n&335544064)===n,Rn=e,e=n?9270:1024;Rn!==null;){if(t=Rn,n&&(s=t.deletions,s!==null))for(a=0;a<s.length;a++)n&&Mh(s[a]);if(t.alternate===null&&t.flags&2)n&&C2(t),od(n);else{if(t.tag===22){if(s=t.alternate,t.memoizedState!==null){s!==null&&s.memoizedState===null&&n&&Mh(s),od(n);continue}else if(s!==null&&s.memoizedState!==null){n&&C2(t),od(n);continue}}s=t.child,t.subtreeFlags&e&&s!==null?(s.return=t,Rn=s):(n&&zy(t),od(n))}}Ks=null}function od(t){for(;Rn!==null;){var e=Rn,n=t,s=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 15:break;case 1:if(l&1024&&s!==null){n=void 0,l=s.memoizedProps,s=s.memoizedState;var a=e.stateNode;try{var i=Si(e.type,l);n=a.getSnapshotBeforeUpdate(i,s),a.__reactInternalSnapshotBeforeUpdate=n}catch(r){Ht(e,e.return,r)}}break;case 3:if(l&1024){if(s=e.stateNode.containerInfo,n=s.nodeType,n===9)Qh(s);else if(n===1)switch(s.nodeName){case"HEAD":case"HTML":case"BODY":Qh(s);break;default:s.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&s!==null&&(n=Ra(s.memoizedProps,s.stateNode),l=e.memoizedProps,l=Ia(l.default,l.update),l!=="none"&&Wr(s,n,l,s.memoizedState=[],!0));break;default:if(l&1024)throw Error(ve(163))}if(s=e.sibling,s!==null){s.return=e.return,Rn=s;break}Rn=e.return}}function Uy(t,e,n){var s=n.flags;switch(n.tag){case 0:case 11:case 15:Hl(t,n),s&4&&Uu(5,n);break;case 1:if(Hl(t,n),s&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(i){Ht(n,n.return,i)}else{var l=Si(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(l,e,t.__reactInternalSnapshotBeforeUpdate)}catch(i){Ht(n,n.return,i)}}s&64&&My(n),s&512&&Ql(n,n.return);break;case 3:if(Hl(t,n),s&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{V4(t,e)}catch(i){Ht(n,n.return,i)}}break;case 27:e===null&&s&4&&Oy(n);case 26:case 5:Hl(t,n),e===null&&s&4&&Eh(n),s&512&&Ql(n,n.return);break;case 12:Hl(t,n);break;case 31:Hl(t,n),s&4&&Fy(t,n);break;case 13:Hl(t,n),s&4&&Py(t,n),s&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=fk.bind(null,n),Yk(t,n))));break;case 22:if(s=n.memoizedState!==null||$n,!s){var a=e!==null&&e.memoizedState!==null||Ot;e=$n,l=Ot,$n=s,(Ot=a)&&!l?(s=2,n.subtreeFlags&8772&&(s|=1),$l(t,n,s)):Hl(t,n),$n=e,Ot=l}break;case 30:Hl(t,n),s&512&&Ql(n,n.return);break;case 7:s&512&&Ql(n,n.return);default:Hl(t,n)}}function Oh(t,e){for(t=t.child;t!==null;)Hy(t,e),t=t.sibling}function Hy(t,e){switch(t.tag){case 5:case 26:try{var n=t.stateNode;if(e){var s=n.style;typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"}else{var l=t.stateNode,a=t.memoizedProps.style,i=a!=null&&a.hasOwnProperty("display")?a.display:null;l.style.display=i==null||typeof i=="boolean"?"":(""+i).trim()}}catch(c){Ht(t,t.return,c)}Dh(t,e);break;case 6:try{t.stateNode.nodeValue=e?"":t.memoizedProps,$t=!0}catch(c){Ht(t,t.return,c)}break;case 18:try{var r=t.stateNode;e?Y2(r,!0):Y2(t.stateNode,!1)}catch(c){Ht(t,t.return,c)}break;case 22:case 23:t.memoizedState===null&&Oh(t,e);break;default:Oh(t,e)}}function Dh(t,e){if(t.subtreeFlags&67108864)for(t=t.child;t!==null;){e:{var n=t,s=e;switch(n.tag){case 4:Hy(n,s);break e;case 22:n.memoizedState===null&&Dh(n,s);break e;default:Dh(n,s)}}t=t.sibling}}function Vy(t){var e=t.alternate;e!==null&&(t.alternate=null,Vy(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&om(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var ln=null,js=!1;function jl(t,e,n){for(n=n.child;n!==null;)Gy(t,e,n),n=n.sibling}function Gy(t,e,n){if(Ws&&typeof Ws.onCommitFiberUnmount=="function")try{Ws.onCommitFiberUnmount(Au,n)}catch{}switch(n.tag){case 26:Ot||On(n,e),jl(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!Ot&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Ot||On(n,e),Uc(n);var s=ln,l=js;Vo(n.type)&&(ln=n.stateNode,js=!1),jl(t,e,n),$b(n.stateNode,n.type,n.memoizedProps),ln=s,js=l;break;case 5:Ot||On(n,e),Uc(n);case 6:if(n.tag===6&&Uc(n),s=ln,l=js,ln=null,jl(t,e,n),ln=s,js=l,ln!==null)if(js)try{(ln.nodeType===9?ln.body:ln.nodeName==="HTML"?ln.ownerDocument.body:ln).removeChild(n.stateNode),$t=!0}catch(a){Ht(n,e,a)}else try{ln.removeChild(n.stateNode),$t=!0}catch(a){Ht(n,e,a)}break;case 18:ln!==null&&(js?(t=ln,q2(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),qr(t)):q2(ln,n.stateNode));break;case 4:s=ln,l=js,ln=n.stateNode.containerInfo,js=!0,jl(t,e,n),ln=s,js=l;break;case 0:case 11:case 14:case 15:Do(2,n,e),Ot||Do(4,n,e),jl(t,e,n);break;case 1:Ot||(On(n,e),s=n.stateNode,typeof s.componentWillUnmount=="function"&&Ay(n,e,s)),jl(t,e,n);break;case 21:jl(t,e,n);break;case 22:Ot=(s=Ot)||n.memoizedState!==null,jl(t,e,n),Ot=s;break;case 30:On(n,e),jl(t,e,n);break;case 7:Ot||On(n,e),jl(t,e,n);break;default:jl(t,e,n)}}function Fy(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{qr(t)}catch(n){Ht(e,e.return,n)}}}function Py(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{qr(t)}catch(n){Ht(e,e.return,n)}}function tk(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new A2),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new A2),e;default:throw Error(ve(435,t.tag))}}function id(t,e){var n=tk(t);e.forEach(function(s){if(!n.has(s)){n.add(s);var l=mk.bind(null,t,s);s.then(l,l)}})}function cs(t,e,n){var s=e.deletions;if(s!==null)for(var l=0;l<s.length;l++){var a=s[l],i=t,r=e,c=r;e:for(;c!==null;){switch(c.tag){case 27:if(Vo(c.type)){ln=c.stateNode,js=!1;break e}break;case 5:ln=c.stateNode,js=!1;break e;case 3:case 4:ln=c.stateNode.containerInfo,js=!0;break e}c=c.return}if(ln===null)throw Error(ve(160));Gy(i,r,a),ln=null,js=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)qy(e,t,n),e=e.sibling}var Rl=null;function qy(t,e,n){var s=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(l&4&&(s=t.updateQueue,s=s!==null?s.events:null,s!==null))for(var a=0;a<s.length;a++){var i=s[a];i.ref.impl=i.nextImpl}cs(e,t,n),us(t),l&4&&(Do(3,t,t.return),Uu(3,t),Do(5,t,t.return));break;case 1:cs(e,t,n),us(t),l&512&&(Ot||s===null||On(s,s.return)),l&64&&$n&&(t=t.updateQueue,t!==null&&(e=t.callbacks,e!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?e:n.concat(e))));break;case 26:if(a=Rl,cs(e,t,n),us(t),l&512&&(Ot||s===null||On(s,s.return)),l&4)if(l=s!==null?s.memoizedState:null,n=t.memoizedState,s===null)if(n===null)if(t.stateNode===null)if($n)t.stateNode=yb(t.type,t.memoizedProps,e.containerInfo,t);else{e:{e=t.type,n=t.memoizedProps,l=a.ownerDocument||a;t:switch(e){case"title":s=l.getElementsByTagName("title")[0],(!s||s[Du]||s[Dn]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=l.createElement(e),l.head.insertBefore(s,l.querySelector("head > title"))),Un(s,e,n),s[Dn]=t,Cn(s),e=s;break e;case"link":if(a=tg("link","href",l).get(e+(n.href||""))){for(i=0;i<a.length;i++)if(s=a[i],s.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&s.getAttribute("rel")===(n.rel==null?null:n.rel)&&s.getAttribute("title")===(n.title==null?null:n.title)&&s.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){a.splice(i,1);break t}}s=l.createElement(e),Un(s,e,n),l.head.appendChild(s);break;case"meta":if(a=tg("meta","content",l).get(e+(n.content||""))){for(i=0;i<a.length;i++)if(s=a[i],s.getAttribute("content")===(n.content==null?null:""+n.content)&&s.getAttribute("name")===(n.name==null?null:n.name)&&s.getAttribute("property")===(n.property==null?null:n.property)&&s.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&s.getAttribute("charset")===(n.charSet==null?null:n.charSet)){a.splice(i,1);break t}}s=l.createElement(e),Un(s,e,n),l.head.appendChild(s);break;default:throw Error(ve(468,e))}s[Dn]=t,Cn(s),e=s}t.stateNode=e}else $n||Jh(a,t.type,t.stateNode);else t.stateNode=eg(a,n,t.memoizedProps);else l!==n?(l===null?(e=s.stateNode,e===null||Ot||e.parentNode.removeChild(e)):l.count--,n===null?$n||Jh(a,t.type,t.stateNode):eg(a,n,t.memoizedProps)):n===null&&t.stateNode!==null&&a1(t,t.memoizedProps,s.memoizedProps);break;case 27:cs(e,t,n),us(t),l&512&&(Ot||s===null||On(s,s.return)),s!==null&&l&4&&a1(t,t.memoizedProps,s.memoizedProps);break;case 5:if(a=Il,Il=!1,cs(e,t,n),Il=a,us(t),l&512&&(Ot||s===null||On(s,s.return)),t.flags&32){e=t.stateNode;try{Dr(e,""),$t=!0}catch(d){Ht(t,t.return,d)}}l&4&&t.stateNode!=null&&(e=t.memoizedProps,a1(t,e,s!==null?s.memoizedProps:e)),l&1024&&(i1=!0);break;case 6:if(cs(e,t,n),us(t),l&4){if(t.stateNode===null)throw Error(ve(162));e=t.memoizedProps,n=t.stateNode;try{n.nodeValue=e,$t=!0}catch(d){Ht(t,t.return,d)}}break;case 3:if($t=!1,Pd=null,a=Rl,Rl=iu(e.containerInfo),cs(e,t,n),Rl=a,us(t),l&4&&s!==null&&s.memoizedState.isDehydrated)try{qr(e.containerInfo)}catch(d){Ht(t,t.return,d)}i1&&(i1=!1,Yy(t)),$t=!1;break;case 4:l=Il,Il=$n,s=Bv(),a=Rl,Rl=iu(t.stateNode.containerInfo),cs(e,t,n),us(t),Rl=a,$t&&kc&&(Ef=!0),$t=s,Il=l;break;case 12:cs(e,t,n),us(t);break;case 31:cs(e,t,n),us(t),l&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,id(t,e)));break;case 13:cs(e,t,n),us(t),t.child.flags&8192&&t.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(ym=Zs()),l&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,id(t,e)));break;case 22:a=t.memoizedState!==null,i=s!==null&&s.memoizedState!==null;var r=$n,c=Ot,u=Il;$n=r||a,Il=u||a,Ot=c||i,cs(e,t,n),Ot=c,Il=u,$n=r,us(t),l&8192&&(e=t.stateNode,e._visibility=a?e._visibility&-2:e._visibility|1,!a||s===null||i||$n||Ot||(e=i||Ot,n=$n,s=Ot,$n=a||$n,Ot=e,Ja(t,2),$n=n,Ot=s),!a&&Il||Oh(t,a)),l&4&&(e=t.updateQueue,e!==null&&(n=e.retryQueue,n!==null&&(e.retryQueue=null,id(t,n))));break;case 19:cs(e,t,n),us(t),l&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,id(t,e)));break;case 30:l&512&&(Ot||s===null||On(s,s.return)),l=Bv(),a=kc,i=(n&335544064)===n,r=t.memoizedProps,kc=i&&Ia(r.default,r.update)!=="none",cs(e,t,n),us(t),i&&s!==null&&$t&&(t.flags|=4),kc=a,$t=l;break;case 21:break;case 7:l&512&&(Ot||s===null||On(s,s.return)),s&&s.stateNode!==null&&(s.stateNode._fragmentFiber=t);default:cs(e,t,n),us(t)}}function us(t){var e=t.flags;if(e&2){try{for(var n,s=t.return;s!==null;){if(Ly(s)){n=s;break}s=s.return}s=null;for(var l=t.return;l!==null;){if($p(l)){var a=l.stateNode;s===null?s=[a]:s.push(a)}if(Ep(l))break;l=l.return}var i=s;if(n==null)throw Error(ve(160));switch(n.tag){case 27:var r=n.stateNode,c=o1(t);Nf(t,c,r,i);break;case 5:var u=n.stateNode;n.flags&32&&(Dr(u,""),n.flags&=-33);var d=o1(t);Nf(t,d,u,i);break;case 3:case 4:var m=n.stateNode.containerInfo,f=o1(t);$h(t,f,m,i);break;default:throw Error(ve(161))}}catch(h){Ht(t,t.return,h)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Yy(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Yy(e),e.tag===5&&e.flags&1024&&(e=e.stateNode,Pr=!0,e.reset(),Pr=!1),t=t.sibling}}function Ii(t,e){if(e.subtreeFlags&9270)for(e=e.child;e!==null;)Xy(e,t),e=e.sibling;else Iy(e)}function Xy(t,e){var n=t.alternate;if(n===null)Rh(t,!1);else switch(t.tag){case 3:if(Lh=Ul=!1,M2(),Ii(e,t),!Ul&&!Ef){if(t=Zl,t!==null)for(var s=0;s<t.length;s+=3){n=t[s];var l=t[s+1];xb(n,t[s+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+l+")"})}t=e.containerInfo,t=t.nodeType===9?t.documentElement:t.ownerDocument.documentElement,t!==null&&t.style.viewTransitionName===""&&(t.style.viewTransitionName="none",t.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),t.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),Lh=!0}Zl=null;break;case 5:Ii(e,t);break;case 4:s=Ul,Ul=!1,Ii(e,t),Ul&&(Ef=!0),Ul=s;break;case 22:t.memoizedState===null&&(n.memoizedState!==null?Rh(t,!1):Ii(e,t));break;case 30:s=Ul,l=M2(),Ul=!1,Ii(e,t),Ul&&(t.flags|=4);var a=t.memoizedProps,i=t.stateNode;e=Ra(a,i),i=Ra(n.memoizedProps,i);var r=Ia(a.default,a.update);r==="none"?e=!1:(a=n.memoizedState,n.memoizedState=null,n=t.child,Ts=0,e=Rp(t,n,e,i,r,a,!0),Ts!==(a===null?0:a.length)&&(t.flags|=32)),t.flags&4&&e?(Ir(t,t.memoizedProps.onUpdate),Zl=l):l!==null&&(l.push.apply(l,Zl),Zl=l),Ul=t.flags&32?!0:s;break;default:Ii(e,t)}}function Hl(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Uy(t,e.alternate,e),e=e.sibling}function Ja(t,e){for(t=t.child;t!==null;){var n=t,s=e;switch(n.tag){case 0:case 11:case 14:case 15:Do(4,n,n.return),Ja(n,s);break;case 1:On(n,n.return);var l=n.stateNode;typeof l.componentWillUnmount=="function"&&Ay(n,n.return,l),Ja(n,s);break;case 27:s&2&&$b(n.stateNode,n.type,n.memoizedProps);case 5:On(n,n.return),n.tag!==5&&n.tag!==27||Uc(n),Ja(n,s);break;case 6:Uc(n);break;case 26:On(n,n.return),l=n.stateNode,n.memoizedState!==null||l===null||Ot||l.parentNode.removeChild(l),Ja(n,s);break;case 22:n.memoizedState===null&&Ja(n,s);break;case 30:On(n,n.return),Ja(n,s);break;case 7:On(n,n.return);default:Ja(n,s)}t=t.sibling}}function $l(t,e,n){for(n=e.subtreeFlags&8772?n:n&-2,e=e.child;e!==null;){var s=e.alternate,l=t,a=e,i=a.flags,r=(n&1)!==0;switch(a.tag){case 0:case 11:case 15:$l(l,a,n),Uu(4,a);break;case 1:if($l(l,a,n),s=a,l=s.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(d){Ht(s,s.return,d)}if(s=a,l=s.updateQueue,l!==null){var c=s.stateNode;try{var u=l.shared.hiddenCallbacks;if(u!==null)for(l.shared.hiddenCallbacks=null,l=0;l<u.length;l++)H4(u[l],c)}catch(d){Ht(s,s.return,d)}}r&&i&64&&My(a),Ql(a,a.return);break;case 27:n&2&&Oy(a);case 5:a.tag!==5&&a.tag!==27||R2(a),$l(l,a,n),r&&s===null&&i&4&&Eh(a),Ql(a,a.return);break;case 6:R2(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||$n||Jh(iu(c.ownerDocument),a.type,c),$l(l,a,n),r&&s===null&&i&4&&Eh(a),Ql(a,a.return);break;case 12:$l(l,a,n);break;case 31:$l(l,a,n),r&&i&4&&Fy(l,a);break;case 13:$l(l,a,n),r&&i&4&&Py(l,a);break;case 22:a.memoizedState===null&&$l(l,a,n),Ql(a,a.return);break;case 30:$l(l,a,n),Ql(a,a.return);break;case 7:Ql(a,a.return);default:$l(l,a,n)}e=e.sibling}}function Cp(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&Bu(n))}function Mp(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Bu(t))}function ol(t,e,n,s){var l=(n&335544064)===n;if(e.subtreeFlags&(l?10262:10256))for(e=e.child;e!==null;)Ky(t,e,n,s),e=e.sibling;else l&&By(e)}function Ky(t,e,n,s){var l=(n&335544064)===n;l&&e.alternate===null&&e.return!==null&&e.return.alternate!==null&&Hd(e);var a=e.flags;switch(e.tag){case 0:case 11:case 15:ol(t,e,n,s),a&2048&&Uu(9,e);break;case 1:ol(t,e,n,s);break;case 3:ol(t,e,n,s),l&&Lh&&(t=t.containerInfo,t=t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,t.style.viewTransitionName==="root"&&(t.style.viewTransitionName=""),t=t.ownerDocument.documentElement,t!==null&&t.style.viewTransitionName==="none"&&(t.style.viewTransitionName="")),a&2048&&(a=null,e.alternate!==null&&(a=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==a&&(e.refCount++,a!=null&&Bu(a)));break;case 12:if(a&2048){ol(t,e,n,s),a=e.stateNode;try{var i=e.memoizedProps,r=i.id,c=i.onPostCommit;typeof c=="function"&&c(r,e.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(u){Ht(e,e.return,u)}}else ol(t,e,n,s);break;case 31:ol(t,e,n,s);break;case 13:ol(t,e,n,s);break;case 23:break;case 22:i=e.stateNode,r=e.alternate,e.memoizedState!==null?(l&&r!==null&&r.memoizedState===null&&Hd(r),i._visibility&2?ol(t,e,n,s):Hc(t,e)):(l&&r!==null&&r.memoizedState!==null&&Hd(e),i._visibility&2?ol(t,e,n,s):(i._visibility|=2,qi(t,e,n,s,(e.subtreeFlags&10256)!==0||!1))),a&2048&&Cp(r,e);break;case 24:ol(t,e,n,s),a&2048&&Mp(e.alternate,e);break;case 30:l&&(a=e.alternate,a!==null&&(ra(a.child,!0),ra(e.child,!0))),ol(t,e,n,s);break;default:ol(t,e,n,s)}}function qi(t,e,n,s,l){for(l=l&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var a=t,i=e,r=n,c=s,u=i.flags;switch(i.tag){case 0:case 11:case 15:qi(a,i,r,c,l),Uu(8,i);break;case 23:break;case 22:var d=i.stateNode;i.memoizedState!==null?d._visibility&2?qi(a,i,r,c,l):Hc(a,i):(d._visibility|=2,qi(a,i,r,c,l)),l&&u&2048&&Cp(i.alternate,i);break;case 24:qi(a,i,r,c,l),l&&u&2048&&Mp(i.alternate,i);break;default:qi(a,i,r,c,l)}e=e.sibling}}function Hc(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,s=e,l=s.flags;switch(s.tag){case 22:Hc(n,s),l&2048&&Cp(s.alternate,s);break;case 24:Hc(n,s),l&2048&&Mp(s.alternate,s);break;default:Hc(n,s)}e=e.sibling}}var ti=8192;function Po(t,e,n){if(t.subtreeFlags&ti)for(t=t.child;t!==null;)Qy(t,e,n),t=t.sibling}function Qy(t,e,n){switch(t.tag){case 26:Po(t,e,n),t.flags&ti&&(t.memoizedState!==null?i7(n,Rl,t.memoizedState,t.memoizedProps):(t=t.stateNode,(e&335544128)===e&&sg(n,t)));break;case 5:Po(t,e,n),t.flags&ti&&(t=t.stateNode,(e&335544128)===e&&sg(n,t));break;case 3:case 4:var s=Rl;Rl=iu(t.stateNode.containerInfo),Po(t,e,n),Rl=s;break;case 22:t.memoizedState===null&&(s=t.alternate,s!==null&&s.memoizedState!==null?(s=ti,ti=16777216,Po(t,e,n),ti=s):Po(t,e,n));break;case 30:if(t.flags&ti&&(s=t.memoizedProps.name,s!=null&&s!=="auto")){var l=t.stateNode;l.paired=null,Ks===null&&(Ks=new Map),Ks.set(s,l)}Po(t,e,n);break;default:Po(t,e,n)}}function Zy(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function rc(t){var e=t.deletions;if(t.flags&16){if(e!==null)for(var n=0;n<e.length;n++){var s=e[n];Rn=s,Jy(s,t)}Zy(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Wy(t),t=t.sibling}function Wy(t){switch(t.tag){case 0:case 11:case 15:rc(t),t.flags&2048&&Do(9,t,t.return);break;case 3:rc(t);break;case 12:rc(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Vd(t)):rc(t);break;default:rc(t)}}function Vd(t){var e=t.deletions;if(t.flags&16){if(e!==null)for(var n=0;n<e.length;n++){var s=e[n];Rn=s,Jy(s,t)}Zy(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Do(8,e,e.return),Vd(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Vd(e));break;default:Vd(e)}t=t.sibling}}function Jy(t,e){for(;Rn!==null;){var n=Rn;switch(n.tag){case 0:case 11:case 15:Do(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var s=n.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:Bu(n.memoizedState.cache)}if(s=n.child,s!==null)s.return=n,Rn=s;else e:for(n=t;Rn!==null;){s=Rn;var l=s.sibling,a=s.return;if(Vy(s),s===n){Rn=null;break e}if(l!==null){l.return=a,Rn=l;break e}Rn=a}}}var nk={getCacheForType:function(t){var e=zn(Sn),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return zn(Sn).controller.signal}},sk=typeof WeakMap=="function"?WeakMap:Map,Mt=0,Yt=null,gt=null,St=0,It=0,Ps=null,mo=!1,Jr=!1,Ap=!1,La=0,cn=0,zo=0,hi=0,$f=0,Qs=0,Br=0,Vc=null,Ns=null,zh=!1,ym=0,eb=0,Rf=1/0,Cf=null,jo=null,on=0,Ol=null,ki=null,oa=0,Bh=0,Ih=null,tb=null,xr=null,Sr=null,kr=null,Gc=0,Gd=null;function el(){return Mt&2&&St!==0?St&-St:Ye.T!==null?Op():a4()}function nb(){if(Qs===0)if(!(St&536870912)||ut){var t=Qu;Qu<<=1,!(Qu&3932160)&&(Qu=262144),Qs=t}else Qs=536870912;return t=Hn.current,t!==null&&(t.flags|=32),Qs}function Ir(t,e){if(e!=null){var n=t.stateNode,s=n.ref;s===null&&(s=n.ref=Sb(Ra(t.memoizedProps,n))),Sr===null&&(Sr=[]),Sr.push(e.bind(null,s))}}function As(t,e,n){(t===Yt&&(It===2||It===9)||t.cancelPendingCommit!==null)&&(Ur(t,0),ho(t,St,Qs,!1)),Ou(t,n),(!(Mt&2)||t!==Yt)&&(t===Yt&&(!(Mt&2)&&(hi|=n),cn===4&&ho(t,St,Qs,!1)),da(t))}function sb(t,e,n){if(Mt&6)throw Error(ve(327));var s=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Lu(t,e),l=s?ok(t,e):r1(t,e,!0),a=s;do{if(l===0){Jr&&!s&&ho(t,e,0,!1);break}else{if(n=t.current.alternate,a&&!lk(n)){l=r1(t,e,!1),a=!1;continue}if(l===2){if(a=e,t.errorRecoveryDisabledLanes&a)var i=0;else i=t.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){e=i;e:{var r=t;l=Vc;var c=r.current.memoizedState.isDehydrated;if(c&&(Ur(r,i).flags|=256),i=r1(r,i,!1),i!==2&&i!==6){if(Ap&&!c){r.errorRecoveryDisabledLanes|=a,hi|=a,l=4;break e}a=Ns,Ns=l,a!==null&&(Ns===null?Ns=a:Ns.push.apply(Ns,a))}l=i}if(a=!1,l!==2)continue}}if(l===1){Ur(t,0),ho(t,e,0,!0);break}e:{switch(s=t,a=l,a){case 0:case 1:throw Error(ve(345));case 4:if((e&4194048)!==e&&(e&62914560)!==e)break;case 6:ho(s,e,Qs,!mo);break e;case 2:Ns=null;break;case 3:case 5:break;default:throw Error(ve(329))}if((e&62914560)===e&&(l=ym+300-Zs(),10<l)){if(ho(s,e,Qs,!mo),am(s,0,!0)!==0)break e;oa=e,s.timeoutHandle=zp(L2.bind(null,s,n,Ns,Cf,zh,e,Qs,hi,Br,mo,a,"Throttled",-0,0),l);break e}L2(s,n,Ns,Cf,zh,e,Qs,hi,Br,mo,a,null,-0,0)}}break}while(!0);da(t)}function L2(t,e,n,s,l,a,i,r,c,u,d,m,f,h){t.timeoutHandle=-1;var g=e.subtreeFlags,y=(a&335544064)===a;if(m=null,(y||g&8192||(g&16785408)===16785408)&&(m={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ea},Ks=null,Qy(e,a,m),y&&(g=m,y=t.containerInfo,y=(y.nodeType===9?y:y.ownerDocument).__reactViewTransition,y!=null&&(g.count++,g.waitingForViewTransition=!0,g=ru.bind(g),y.finished.then(g,g))),g=(a&62914560)===a?ym-Zs():(a&4194048)===a?eb-Zs():0,g=r7(m,g),g!==null)){oa=a,t.cancelPendingCommit=g(D2.bind(null,t,e,a,n,s,l,i,r,c,u,d,m,null,f,h)),ho(t,a,i,!u);return}D2(t,e,a,n,s,l,i,r,c,u,d,m)}function lk(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var s=0;s<n.length;s++){var l=n[s],a=l.getSnapshot;l=l.value;try{if(!tl(a(),l))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function ho(t,e,n,s){e=e4(t,e),e&=~$f,e&=~hi,t.suspendedLanes|=e,t.pingedLanes&=~e,s&&(t.warmLanes|=e),s=t.expirationTimes;for(var l=e;0<l;){var a=31-Js(l),i=1<<a;s[a]=-1,l&=~i}n!==0&&n4(t,n,e)}function bm(){return Mt&6?!0:(Hu(0),!1)}function Lp(){if(gt!==null){if(It===0)var t=gt.return;else t=gt,Na=Ci=null,gp(t),_r=null,tu=0,t=gt;for(;t!==null;)Cy(t.alternate,t),t=t.return;gt=null}}function Ur(t,e){var n=t.timeoutHandle;return n!==-1&&(t.timeoutHandle=-1,Ek(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),oa=0,Lp(),Yt=t,gt=n=Ta(t.current,null),St=e,It=0,Ps=null,mo=!1,Jr=Lu(t,e),Ap=!1,Br=Qs=$f=hi=zo=cn=0,Ns=Vc=null,zh=!1,La=e4(t,e),um(),n}function lb(t,e){nt=null,Ye.H=kf,e===Zr||e===mm?(e=i2(),It=3):e===cp?(e=i2(),It=4):It=e===jp?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ps=e,gt===null&&(cn=1,wf(t,gl(e,t.current)))}function ab(){var t=Hn.current;return t===null?!0:(St&4194048)===St?Kn===null:(St&62914560)===St||St&536870912?t===Kn:!1}function ob(){var t=Ye.H;return Ye.H=kf,t===null?kf:t}function ib(){var t=Ye.A;return Ye.A=nk,t}function Mf(){cn=4,mo||(St&4194048)!==St&&Hn.current!==null||(Jr=!0),!(zo&134217727)&&!(hi&134217727)||Yt===null||ho(Yt,St,Qs,!1)}function r1(t,e,n){var s=Mt;Mt|=2;var l=ob(),a=ib();(Yt!==t||St!==e)&&(Cf=null,Ur(t,e)),e=!1;var i=cn;e:do try{if(It!==0&>!==null){var r=gt,c=Ps;switch(It){case 8:Lp(),i=6;break e;case 3:case 2:case 9:case 6:Hn.current===null&&(e=!0);var u=It;if(It=0,Ps=null,ir(t,r,c,u),n&&Jr){i=0;break e}break;default:u=It,It=0,Ps=null,ir(t,r,c,u)}}ak(),i=cn;break}catch(d){lb(t,d)}while(!0);return e&&t.shellSuspendCounter++,Na=Ci=null,Mt=s,Ye.H=l,Ye.A=a,gt===null&&(Yt=null,St=0,um()),i}function ak(){for(;gt!==null;)rb(gt)}function ok(t,e){var n=Mt;Mt|=2;var s=ob(),l=ib();Yt!==t||St!==e?(Cf=null,Rf=Zs()+500,Ur(t,e)):Jr=Lu(t,e);e:do try{if(It!==0&>!==null){e=gt;var a=Ps;t:switch(It){case 1:It=0,Ps=null,ir(t,e,a,1);break;case 2:case 9:if(o2(a)){It=0,Ps=null,O2(e);break}e=function(){It!==2&&It!==9||Yt!==t||(It=7),da(t)},a.then(e,e);break e;case 3:It=7;break e;case 4:It=5;break e;case 7:o2(a)?(It=0,Ps=null,O2(e)):(It=0,Ps=null,ir(t,e,a,7));break;case 5:var i=null;switch(gt.tag){case 26:i=gt.memoizedState;case 5:case 27:var r=gt;if(i?Mb(i):r.stateNode.complete){It=0,Ps=null;var c=r.sibling;if(c!==null)gt=c;else{var u=r.return;u!==null?(gt=u,xm(u)):gt=null}break t}}It=0,Ps=null,ir(t,e,a,5);break;case 6:It=0,Ps=null,ir(t,e,a,6);break;case 8:Lp(),cn=6;break e;default:throw Error(ve(462))}}ik();break}catch(d){lb(t,d)}while(!0);return Na=Ci=null,Ye.H=s,Ye.A=l,Mt=n,gt!==null?0:(Yt=null,St=0,um(),cn)}function ik(){for(;gt!==null&&!wS();)rb(gt)}function rb(t){var e=Ry(t.alternate,t,La);t.memoizedProps=t.pendingProps,e===null?xm(t):gt=e}function O2(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=k2(n,e,e.pendingProps,e.type,void 0,St);break;case 11:e=k2(n,e,e.pendingProps,e.type.render,e.ref,St);break;case 5:gp(e);var s=e;s===Mn&&(ut?(vf(s),s.tag===5&&s.stateNode!=null&&(Qt=s.stateNode)):(vf(s),ut=!0));default:Cy(n,e),e=gt=M4(e,La),e=Ry(n,e,La)}t.memoizedProps=t.pendingProps,e===null?xm(t):gt=e}function ir(t,e,n,s){Na=Ci=null,gp(e),_r=null,tu=0;var l=e.return;try{if(X8(t,l,e,n,St)){cn=1,wf(t,gl(n,t.current)),gt=null;return}}catch(a){if(l!==null)throw gt=l,a;cn=1,wf(t,gl(n,t.current)),gt=null;return}e.flags&32768?(ut||s===1?t=!0:Jr||St&536870912?t=!1:(mo=t=!0,(s===2||s===9||s===3||s===6)&&(s=Hn.current,s!==null&&s.tag===13&&(s.flags|=16384))),cb(e,t)):xm(e)}function xm(t){var e=t;do{if(e.flags&32768){cb(e,mo);return}t=e.return;var n=W8(e.alternate,e,La);if(n!==null){gt=n;return}if(e=e.sibling,e!==null){gt=e;return}gt=e=t}while(e!==null);cn===0&&(cn=5)}function cb(t,e){do{var n=J8(t.alternate,t);if(n!==null){n.flags&=32767,gt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){gt=t;return}gt=t=n}while(t!==null);cn=6,gt=null}function D2(t,e,n,s,l,a,i,r,c,u,d,m){t.cancelPendingCommit=null;do Sm();while(on!==0);if(Mt&6)throw Error(ve(327));if(e!==null){if(e===t.current)throw Error(ve(177));t===Yt&&(gt=Yt=null,St=0),ki=e,Ol=t,oa=n,Ih=l,tb=s,rk(t,e,n,i,r,c,m)}}function rk(t,e,n,s,l,a,i){var r=e.lanes|e.childLanes;if(Bh=r,r|=sp,LS(t,n,r,s,l,a),Sr=null,(n&335544064)===n?(kr=D8(t),s=10262):(kr=null,s=10256),e.subtreeFlags&s||e.flags&s?(t.callbackNode=null,t.callbackPriority=0,hk(df,function(){return Gh(),null})):(t.callbackNode=null,t.callbackPriority=0),Tf=!1,s=(e.flags&13878)!==0,e.subtreeFlags&13878||s){s=Ye.T,Ye.T=null,l=At.p,At.p=2,a=Mt,Mt|=4;try{ek(t,e,n)}finally{Mt=a,At.p=l,Ye.T=s}}on=1,Tf?xr=Lk(i,t.containerInfo,kr,Uh,Hh,uk,Vh,Gh,ck):(Uh(),Hh(),Vh())}function ck(t){if(on!==0){var e=Ol.onRecoverableError;e(t,{componentStack:null})}}function uk(){on===3&&(on=0,Xy(ki,Ol),on=4)}function Uh(){if(on===1){on=0;var t=Ol,e=ki,n=oa,s=(e.flags&13878)!==0;if(e.subtreeFlags&13878||s){s=Ye.T,Ye.T=null;var l=At.p;At.p=2;var a=Mt;Mt|=4;try{kc=Ef=!1,qy(e,t,n),n=Yh;var i=w4(t.containerInfo),r=n.focusedElem,c=n.selectionRange;if(i!==r&&r&&r.ownerDocument&&k4(r.ownerDocument.documentElement,r)){if(c!==null&&np(r)){var u=c.start,d=c.end;if(d===void 0&&(d=u),"selectionStart"in r)r.selectionStart=u,r.selectionEnd=Math.min(d,r.value.length);else{var m=r.ownerDocument||document,f=m&&m.defaultView||window;if(f.getSelection){var h=f.getSelection(),g=r.textContent.length,y=Math.min(c.start,g),b=c.end===void 0?y:Math.min(c.end,g);!h.extend&&y>b&&(i=b,b=y,y=i);var p=Wv(r,y),v=Wv(r,b);if(p&&v&&(h.rangeCount!==1||h.anchorNode!==p.node||h.anchorOffset!==p.offset||h.focusNode!==v.node||h.focusOffset!==v.offset)){var _=m.createRange();_.setStart(p.node,p.offset),h.removeAllRanges(),y>b?(h.addRange(_),h.extend(v.node,v.offset)):(_.setEnd(v.node,v.offset),h.addRange(_))}}}}for(m=[],h=r;h=h.parentNode;)h.nodeType===1&&m.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<m.length;r++){var x=m[r];x.element.scrollLeft=x.left,x.element.scrollTop=x.top}}Pr=!!qh,Yh=qh=null}finally{Mt=a,At.p=l,Ye.T=s}}t.current=e,on=2}}function Hh(){if(on===2){on=0;var t=Ol,e=ki,n=(e.flags&8772)!==0;if(e.subtreeFlags&8772||n){n=Ye.T,Ye.T=null;var s=At.p;At.p=2;var l=Mt;Mt|=4;try{Uy(t,e.alternate,e)}finally{Mt=l,At.p=s,Ye.T=n}}on=3}}function Vh(){if(on===4||on===3){on=0;var t=xr;xr=null,jS();var e=Ol,n=ki,s=oa,l=tb,a=(s&335544064)===s?10262:10256;if(n.subtreeFlags&a||n.flags&a?on=5:(on=0,ki=Ol=null,ub(e,e.pendingLanes)),a=e.pendingLanes,a===0&&(jo=null),Q0(s),n=n.stateNode,Ws&&typeof Ws.onCommitFiberRoot=="function")try{Ws.onCommitFiberRoot(Au,n,void 0,(n.current.flags&128)===128)}catch{}if(l!==null){n=Ye.T,a=At.p,At.p=2,Ye.T=null;try{for(var i=e.onRecoverableError,r=0;r<l.length;r++){var c=l[r];i(c.value,{componentStack:c.stack})}}finally{Ye.T=n,At.p=a}}if(l=Sr,i=kr,kr=null,l!==null&&(Sr=null,i===null&&(i=[]),t!==null))for(c=0;c<l.length;c++)n=(0,l[c])(i),n!==void 0&&t.finished.finally(n);oa&3&&Sm(),da(e),a=e.pendingLanes,s&261930&&a&42?e===Gd?Gc++:(Gc=0,Gd=e):(Gc=0,Gd=null),Hu(0)}}function ub(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Bu(e)))}function Sm(){return xr!==null&&(xr.skipTransition(),xr=null),Uh(),Hh(),Vh(),Gh()}function Gh(){if(on!==5)return!1;var t=Ol,e=Bh;Bh=0;var n=Q0(oa),s=Ye.T,l=At.p;try{At.p=32>n?32:n,Ye.T=null,n=Ih,Ih=null;var a=Ol,i=oa;if(on=0,ki=Ol=null,oa=0,Mt&6)throw Error(ve(331));var r=Mt;if(Mt|=4,Wy(a.current),Ky(a,a.current,i,n),Mt=r,Hu(0,!1),Ws&&typeof Ws.onPostCommitFiberRoot=="function")try{Ws.onPostCommitFiberRoot(Au,a)}catch{}return!0}finally{At.p=l,Ye.T=s,ub(t,e)}}function z2(t,e,n){e=gl(n,e),e=Sh(t.stateNode,e,2),t=So(t,e,2),t!==null&&(Ou(t,2),da(t))}function Ht(t,e,n){if(t.tag===3)z2(t,t,n);else for(;e!==null;){if(e.tag===3){z2(e,t,n);break}else if(e.tag===1){var s=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(jo===null||!jo.has(s))){t=gl(n,t),n=jy(2),s=So(e,n,2),s!==null&&(Ny(n,s,e,t),Ou(s,2),da(s));break}}e=e.return}}function c1(t,e,n){var s=t.pingCache;if(s===null){s=t.pingCache=new sk;var l=new Set;s.set(e,l)}else l=s.get(e),l===void 0&&(l=new Set,s.set(e,l));l.has(n)||(Ap=!0,l.add(n),t=dk.bind(null,t,e,n),e.then(t,t))}function dk(t,e,n){var s=t.pingCache;s!==null&&s.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Yt===t&&(St&n)===n&&(cn===4||cn===3&&(St&62914560)===St&&300>Zs()-ym?Mt&2?$f|=n:Ur(t,0):$f|=n,Br===St&&(Br=0)),da(t)}function db(t,e){e===0&&(e=t4()),t=Ri(t,e),t!==null&&(Ou(t,e),da(t))}function fk(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),db(t,n)}function mk(t,e){var n=0;switch(t.tag){case 31:case 13:var s=t.stateNode,l=t.memoizedState;l!==null&&(n=l.retryLane);break;case 19:s=t.stateNode;break;case 22:s=t.stateNode._retryCache;break;default:throw Error(ve(314))}s!==null&&s.delete(e),db(t,n)}function hk(t,e){return X0(t,e)}var Hr=null,Yi=null,Fh=!1,Af=!1,u1=!1,po=0;function da(t){t!==Yi&&t.next===null&&(Yi===null?Hr=Yi=t:Yi=Yi.next=t),Af=!0,Fh||(Fh=!0,vk())}function Hu(t,e){if(!u1&&Af){u1=!0;do for(var n=!1,s=Hr;s!==null;){if(t!==0){var l=s.pendingLanes;if(l===0)var a=0;else{var i=s.suspendedLanes,r=s.pingedLanes;a=(1<<31-Js(42|t)+1)-1,a&=l&~(i&~r),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,B2(s,a))}else a=St,a=am(s,s===Yt?a:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),!(a&3)||Lu(s,a)||(n=!0,B2(s,a));s=s.next}while(n);u1=!1}}function pk(){fb()}function fb(){Af=Fh=!1;var t=0;po!==0&&Tk()&&(t=po);for(var e=Zs(),n=null,s=Hr;s!==null;){var l=s.next,a=mb(s,e);a===0?(s.next=null,n===null?Hr=l:n.next=l,l===null&&(Yi=n)):(n=s,(t!==0||a&3)&&(Af=!0)),s=l}on!==0&&on!==5||Hu(t),po!==0&&(po=0)}function mb(t,e){for(var n=t.suspendedLanes,s=t.pingedLanes,l=t.expirationTimes,a=t.pendingLanes&-62914561;0<a;){var i=31-Js(a),r=1<<i,c=l[i];c===-1?(!(r&n)||r&s)&&(l[i]=AS(r,e)):c<=e&&(t.expiredLanes|=r),a&=~r}if(e=Yt,n=St,n=am(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s=t.callbackNode,n===0||t===e&&(It===2||It===9)||t.cancelPendingCommit!==null)return s!==null&&s!==null&&Hm(s),t.callbackNode=null,t.callbackPriority=0;if(!(n&3)||Lu(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(s!==null&&Hm(s),Q0(n)){case 2:case 8:n=W3;break;case 32:n=df;break;case 268435456:n=J3;break;default:n=df}return s=hb.bind(null,t),n=X0(n,s),t.callbackPriority=e,t.callbackNode=n,e}return s!==null&&s!==null&&Hm(s),t.callbackPriority=2,t.callbackNode=null,2}function hb(t,e){if(on!==0&&on!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Sm()&&t.callbackNode!==n)return null;var s=St;return s=am(t,t===Yt?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s===0?null:(sb(t,s,e),mb(t,Zs()),t.callbackNode!=null&&t.callbackNode===n?hb.bind(null,t):null)}function B2(t,e){if(Sm())return null;sb(t,e,!0)}function vk(){$k(function(){Mt&6?X0(Z3,pk):fb()})}function Op(){if(po===0){var t=yi;t===0&&(t=Ku,Ku<<=1,!(Ku&261888)&&(Ku=256)),po=t}return po}function I2(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Cd(t)}function gk(t,e,n,s,l){if(e==="submit"&&n&&n.stateNode===l){var a=I2((l[Os]||null).action),i=s.submitter;i&&(e=(e=i[Os]||null)?I2(e.formAction):i.getAttribute("formAction"),e!==null&&(a=e,i=null));var r=new im("action","action",null,s,l);t.push({event:r,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(po!==0){var c=new FormData(l,i);bh(n,{pending:!0,data:c,method:l.method,action:a},null,c)}}else typeof a=="function"&&(r.preventDefault(),c=new FormData(l,i),bh(n,{pending:!0,data:c,method:l.method,action:a},a,c))},currentTarget:l}]})}}for(var d1=0;d1<ch.length;d1++){var f1=ch[d1],_k=f1.toLowerCase(),yk=f1[0].toUpperCase()+f1.slice(1);zl(_k,"on"+yk)}zl(N4,"onAnimationEnd");zl(T4,"onAnimationIteration");zl(E4,"onAnimationStart");zl("dblclick","onDoubleClick");zl("focusin","onFocus");zl("focusout","onBlur");zl(E8,"onTransitionRun");zl($8,"onTransitionStart");zl(R8,"onTransitionCancel");zl($4,"onTransitionEnd");Or("onMouseEnter",["mouseout","mouseover"]);Or("onMouseLeave",["mouseout","mouseover"]);Or("onPointerEnter",["pointerout","pointerover"]);Or("onPointerLeave",["pointerout","pointerover"]);Ei("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ei("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ei("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ei("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ei("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ei("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),bk=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(lu));function pb(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var s=t[n],l=s.event;s=s.listeners;e:{var a=void 0;if(e)for(var i=s.length-1;0<=i;i--){var r=s[i],c=r.instance,u=r.currentTarget;if(r=r.listener,c!==a&&l.isPropagationStopped())break e;a=r,l.currentTarget=u;try{a(l)}catch(d){mf(d)}l.currentTarget=null,a=c}else for(i=0;i<s.length;i++){if(r=s[i],c=r.instance,u=r.currentTarget,r=r.listener,c!==a&&l.isPropagationStopped())break e;a=r,l.currentTarget=u;try{a(l)}catch(d){mf(d)}l.currentTarget=null,a=c}}}}function vt(t,e){var n=e[Lv];n===void 0&&(n=e[Lv]=new Set);var s=t+"__bubble";n.has(s)||(vb(e,t,2,!1),n.add(s))}function m1(t,e,n){var s=0;e&&(s|=4),vb(n,t,s,e)}var rd="_reactListening"+Math.random().toString(36).slice(2);function Dp(t){if(!t[rd]){t[rd]=!0,i4.forEach(function(n){n!=="selectionchange"&&(bk.has(n)||m1(n,!1,t),m1(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[rd]||(e[rd]=!0,m1("selectionchange",!1,e))}}function vb(t,e,n,s){switch(Ib(e)){case 2:var l=f7;break;case 8:l=m7;break;default:l=Gp}n=l.bind(null,e,n,t),l=void 0,!ah||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(l=!0),s?l!==void 0?t.addEventListener(e,n,{capture:!0,passive:l}):t.addEventListener(e,n,!0):l!==void 0?t.addEventListener(e,n,{passive:l}):t.addEventListener(e,n,!1)}function h1(t,e,n,s,l){var a=s;if(!(e&1)&&!(e&2)&&s!==null)e:for(;;){if(s===null)return;var i=s.tag;if(i===3||i===4){var r=s.stateNode.containerInfo;if(r===l)break;if(i===4)for(i=s.return;i!==null;){var c=i.tag;if((c===3||c===4)&&i.stateNode.containerInfo===l)return;i=i.return}for(;r!==null;){if(i=li(r),i===null)return;if(c=i.tag,c===5||c===6||c===26||c===27){s=a=i;continue e}r=r.parentNode}}s=s.return}p4(function(){var u=a,d=W0(n),m=[];e:{var f=R4.get(t);if(f!==void 0){var h=im,g=t;switch(t){case"keypress":if(Ad(n)===0)break e;case"keydown":case"keyup":h=l8;break;case"focusin":g="focus",h=Ym;break;case"focusout":g="blur",h=Ym;break;case"beforeblur":case"afterblur":h=Ym;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=Vv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=qS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=c8;break;case N4:case T4:case E4:h=KS;break;case $4:h=d8;break;case"scroll":case"scrollend":h=FS;break;case"wheel":h=m8;break;case"copy":case"cut":case"paste":h=ZS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Fv;break;case"submit":h=i8;break;case"toggle":case"beforetoggle":h=p8}var y=(e&4)!==0,b=!y&&(t==="scroll"||t==="scrollend"),p=y?f!==null?f+"Capture":null:f;y=[];for(var v=u,_;v!==null;){var x=v;if(_=x.stateNode,x=x.tag,x!==5&&x!==26&&x!==27||_===null||p===null||(x=Qc(v,p),x!=null&&y.push(au(v,x,_))),b)break;v=v.return}0<y.length&&(f=new h(f,g,null,n,d),m.push({event:f,listeners:y}))}}if(!(e&7)){e:{if(h=t==="mouseover"||t==="pointerover",f=t==="mouseout"||t==="pointerout",h&&n!==lh&&(g=n.relatedTarget||n.fromElement)&&(li(g)||g[Kr]))break e;(f||h)&&(g=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,f?(h=n.relatedTarget||n.toElement,f=u,h=h?li(h):null,h!==null&&(b=Mu(h),y=h.tag,h!==b||y!==5&&y!==27&&y!==6)&&(h=null)):(f=null,h=u),f!==h&&(y=Vv,x="onMouseLeave",p="onMouseEnter",v="mouse",(t==="pointerout"||t==="pointerover")&&(y=Fv,x="onPointerLeave",p="onPointerEnter",v="pointer"),b=f==null?g:xc(f),_=h==null?g:xc(h),g=new y(x,v+"leave",f,n,d),g.target=b,g.relatedTarget=_,x=null,li(d)===u&&(y=new y(p,v+"enter",h,n,d),y.target=_,y.relatedTarget=b,x=y),b=x,y=f&&h?q1(f,h,xk):null,f!==null&&U2(m,g,f,y,!1),h!==null&&b!==null&&U2(m,b,h,y,!0)))}e:{if(f=u?xc(u):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var k=Xv;else if(Yv(f))if(x4)k=j8;else{k=k8;var w=S8}else h=f.nodeName,!h||h.toLowerCase()!=="input"||f.type!=="checkbox"&&f.type!=="radio"?u&&Z0(u.elementType)&&(k=Xv):k=w8;if(k&&(k=k(t,u))){b4(m,k,n,d);break e}w&&w(t,f,u)}switch(w=u?xc(u):window,t){case"focusin":(Yv(w)||w.contentEditable==="true")&&(tr=w,ih=u,Ac=null);break;case"focusout":Ac=ih=tr=null;break;case"mousedown":rh=!0;break;case"contextmenu":case"mouseup":case"dragend":rh=!1,Jv(m,n,d);break;case"selectionchange":if(T8)break;case"keydown":case"keyup":Jv(m,n,d)}var R;if(tp)e:{switch(t){case"compositionstart":var j="onCompositionStart";break e;case"compositionend":j="onCompositionEnd";break e;case"compositionupdate":j="onCompositionUpdate";break e}j=void 0}else er?_4(t,n)&&(j="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(j="onCompositionStart");j&&(g4&&n.locale!=="ko"&&(er||j!=="onCompositionStart"?j==="onCompositionEnd"&&er&&(R=v4()):(uo=d,J0="value"in uo?uo.value:uo.textContent,er=!0)),w=Lf(u,j),0<w.length&&(j=new Gv(j,t,null,n,d),m.push({event:j,listeners:w}),R?j.data=R:(R=y4(n),R!==null&&(j.data=R)))),(R=g8?_8(t,n):y8(t,n))&&(j=Lf(u,"onBeforeInput"),0<j.length&&(w=new Gv("onBeforeInput","beforeinput",null,n,d),m.push({event:w,listeners:j}),w.data=R)),gk(m,t,u,n,d)}pb(m,e)})}function au(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Lf(t,e){for(var n=e+"Capture",s=[];t!==null;){var l=t,a=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||a===null||(l=Qc(t,n),l!=null&&s.unshift(au(t,l,a)),l=Qc(t,e),l!=null&&s.push(au(t,l,a))),t.tag===3)return s;t=t.return}return[]}function xk(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function U2(t,e,n,s,l){for(var a=e._reactName,i=[];n!==null&&n!==s;){var r=n,c=r.alternate,u=r.stateNode;if(r=r.tag,c!==null&&c===s)break;r!==5&&r!==26&&r!==27||u===null||(c=u,l?(u=Qc(n,a),u!=null&&i.unshift(au(n,u,c))):l||(u=Qc(n,a),u!=null&&i.push(au(n,u,c)))),n=n.return}i.length!==0&&t.push({event:e,listeners:i})}var Sk=/\r\n?/g,kk=/\u0000|\uFFFD/g;function H2(t){return(typeof t=="string"?t:""+t).replace(Sk,`
|
|
59
|
+
`).replace(kk,"")}function gb(t,e){return e=H2(e),H2(t)===e}function Ut(t,e,n,s,l,a){switch(n){case"children":if(typeof s=="string")e==="body"||e==="textarea"&&s===""||Dr(t,s);else if(typeof s=="number"||typeof s=="bigint")e!=="body"&&Dr(t,""+s);else return;break;case"className":Wu(t,"class",s);break;case"tabIndex":Wu(t,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Wu(t,n,s);break;case"style":h4(t,s,a);return;case"data":if(e!=="object"){Wu(t,"data",s);break}case"src":case"href":if(s===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(n);break}s=Cd(s),t.setAttribute(n,s);break;case"action":case"formAction":if(typeof s=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof a=="function"&&(n==="formAction"?(e!=="input"&&Ut(t,e,"name",l.name,l,null),Ut(t,e,"formEncType",l.formEncType,l,null),Ut(t,e,"formMethod",l.formMethod,l,null),Ut(t,e,"formTarget",l.formTarget,l,null)):(Ut(t,e,"encType",l.encType,l,null),Ut(t,e,"method",l.method,l,null),Ut(t,e,"target",l.target,l,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(n);break}s=Cd(s),t.setAttribute(n,s);break;case"onClick":s!=null&&(t.onclick=ea);return;case"onScroll":s!=null&&vt("scroll",t);return;case"onScrollEnd":s!=null&&vt("scrollend",t);return;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(ve(61));if(n=s.__html,n!=null){if(l.children!=null)throw Error(ve(60));a?.__html!==n&&(t.innerHTML=n)}}break;case"multiple":t.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":t.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){t.removeAttribute("xlink:href");break}n=Cd(s),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(n,s):t.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":s===!0?t.setAttribute(n,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(n,s):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?t.setAttribute(n,s):t.removeAttribute(n);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?t.removeAttribute(n):t.setAttribute(n,s);break;case"popover":vt("beforetoggle",t),vt("toggle",t),Rd(t,"popover",s);break;case"xlinkActuate":pa(t,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":pa(t,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":pa(t,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":pa(t,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":pa(t,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":pa(t,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":pa(t,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":pa(t,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":pa(t,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":Rd(t,"is",s);break;case"innerText":case"textContent":return;default:if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")n=VS.get(n)||n,Rd(t,n,s);else return}$t=!0}function Ph(t,e,n,s,l,a){switch(n){case"style":h4(t,s,a);return;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(ve(61));if(n=s.__html,n!=null){if(l.children!=null)throw Error(ve(60));a?.__html!==n&&(t.innerHTML=n)}}break;case"children":if(typeof s=="string")Dr(t,s);else if(typeof s=="number"||typeof s=="bigint")Dr(t,""+s);else return;break;case"onScroll":s!=null&&vt("scroll",t);return;case"onScrollEnd":s!=null&&vt("scrollend",t);return;case"onClick":s!=null&&(t.onclick=ea);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!r4.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(l=n.endsWith("Capture"),a=n.slice(2,l?n.length-7:void 0),e=t[Os]||null,e=e!=null?e[n]:null,typeof e=="function"&&t.removeEventListener(a,e,l),typeof s=="function")){typeof e!="function"&&e!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(a,s,l);break e}$t=!0,n in t?t[n]=s:s===!0?t.setAttribute(n,""):Rd(t,n,s)}return}$t=!0}function Un(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":vt("error",t),vt("load",t);var s=!1,l=!1,a;for(a in n)if(n.hasOwnProperty(a)){var i=n[a];if(i!=null)switch(a){case"src":s=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(ve(137,e));default:Ut(t,e,a,i,n,null)}}l&&Ut(t,e,"srcSet",n.srcSet,n,null),s&&Ut(t,e,"src",n.src,n,null);return;case"input":vt("invalid",t);var r=a=i=l=null,c=null,u=null;for(s in n)if(n.hasOwnProperty(s)){var d=n[s];if(d!=null)switch(s){case"name":l=d;break;case"type":i=d;break;case"checked":c=d;break;case"defaultChecked":u=d;break;case"value":a=d;break;case"defaultValue":r=d;break;case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(ve(137,e));break;default:Ut(t,e,s,d,n,null)}}d4(t,a,r,c,u,i,l,!1);return;case"select":vt("invalid",t),s=i=a=null;for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case"value":a=r;break;case"defaultValue":i=r;break;case"multiple":s=r;default:Ut(t,e,l,r,n,null)}e=a,n=i,t.multiple=!!s,e!=null?pr(t,!!s,e,!1):n!=null&&pr(t,!!s,n,!0);return;case"textarea":vt("invalid",t),a=l=s=null;for(i in n)if(n.hasOwnProperty(i)&&(r=n[i],r!=null))switch(i){case"value":s=r;break;case"defaultValue":l=r;break;case"children":a=r;break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(ve(91));break;default:Ut(t,e,i,r,n,null)}m4(t,s,l,a);return;case"option":for(c in n)if(n.hasOwnProperty(c)&&(s=n[c],s!=null))switch(c){case"selected":t.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Ut(t,e,c,s,n,null)}return;case"dialog":vt("beforetoggle",t),vt("toggle",t),vt("cancel",t),vt("close",t);break;case"iframe":case"object":vt("load",t);break;case"video":case"audio":for(s=0;s<lu.length;s++)vt(lu[s],t);break;case"image":vt("error",t),vt("load",t);break;case"details":vt("toggle",t);break;case"embed":case"source":case"link":vt("error",t),vt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&(s=n[u],s!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(ve(137,e));default:Ut(t,e,u,s,n,null)}return;default:if(Z0(e)){for(d in n)n.hasOwnProperty(d)&&(s=n[d],s!==void 0&&Ph(t,e,d,s,n,void 0));return}}for(r in n)n.hasOwnProperty(r)&&(s=n[r],s!=null&&Ut(t,e,r,s,n,null))}var wk={};function jk(t,e,n,s){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,a=null,i=null,r=null,c=null,u=null,d=null;for(h in n){var m=n[h];if(n.hasOwnProperty(h)&&m!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":c=m;default:s.hasOwnProperty(h)||Ut(t,e,h,null,s,m)}}for(var f in s){var h=s[f];if(m=n[f],s.hasOwnProperty(f)&&(h!=null||m!=null))switch(f){case"type":h!==m&&($t=!0),a=h;break;case"name":h!==m&&($t=!0),l=h;break;case"checked":h!==m&&($t=!0),u=h;break;case"defaultChecked":h!==m&&($t=!0),d=h;break;case"value":h!==m&&($t=!0),i=h;break;case"defaultValue":h!==m&&($t=!0),r=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(ve(137,e));break;default:h!==m&&Ut(t,e,f,h,s,m)}}sh(t,i,r,c,u,d,a,l);return;case"select":h=i=r=f=null;for(a in n)if(c=n[a],n.hasOwnProperty(a)&&c!=null)switch(a){case"value":break;case"multiple":h=c;default:s.hasOwnProperty(a)||Ut(t,e,a,null,s,c)}for(l in s)if(a=s[l],c=n[l],s.hasOwnProperty(l)&&(a!=null||c!=null))switch(l){case"value":a!==c&&($t=!0),f=a;break;case"defaultValue":a!==c&&($t=!0),r=a;break;case"multiple":a!==c&&($t=!0),i=a;default:a!==c&&Ut(t,e,l,a,s,c)}e=r,n=i,s=h,f!=null?pr(t,!!n,f,!1):!!s!=!!n&&(e!=null?pr(t,!!n,e,!0):pr(t,!!n,n?[]:"",!1));return;case"textarea":h=f=null;for(r in n)if(l=n[r],n.hasOwnProperty(r)&&l!=null&&!s.hasOwnProperty(r))switch(r){case"value":break;case"children":break;default:Ut(t,e,r,null,s,l)}for(i in s)if(l=s[i],a=n[i],s.hasOwnProperty(i)&&(l!=null||a!=null))switch(i){case"value":l!==a&&($t=!0),f=l;break;case"defaultValue":l!==a&&($t=!0),h=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(ve(91));break;default:l!==a&&Ut(t,e,i,l,s,a)}f4(t,f,h);return;case"option":for(var g in n)if(f=n[g],n.hasOwnProperty(g)&&f!=null&&!s.hasOwnProperty(g))switch(g){case"selected":t.selected=!1;break;default:Ut(t,e,g,null,s,f)}for(c in s)if(f=s[c],h=n[c],s.hasOwnProperty(c)&&f!==h&&(f!=null||h!=null))switch(c){case"selected":f!==h&&($t=!0),t.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:Ut(t,e,c,f,s,h)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var y in n)f=n[y],n.hasOwnProperty(y)&&f!=null&&!s.hasOwnProperty(y)&&Ut(t,e,y,null,s,f);for(u in s)if(f=s[u],h=n[u],s.hasOwnProperty(u)&&f!==h&&(f!=null||h!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(ve(137,e));break;default:Ut(t,e,u,f,s,h)}return;default:if(Z0(e)){for(var b in n)f=n[b],n.hasOwnProperty(b)&&f!==void 0&&!s.hasOwnProperty(b)&&Ph(t,e,b,void 0,s,f);for(d in s)f=s[d],h=n[d],!s.hasOwnProperty(d)||f===h||f===void 0&&h===void 0||Ph(t,e,d,f,s,h);return}}for(var p in n)f=n[p],n.hasOwnProperty(p)&&f!=null&&!s.hasOwnProperty(p)&&Ut(t,e,p,null,s,f);for(m in s)f=s[m],h=n[m],!s.hasOwnProperty(m)||f===h||f==null&&h==null||Ut(t,e,m,f,s,h)}function V2(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Nk(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),s=0;s<n.length;s++){var l=n[s],a=l.transferSize,i=l.initiatorType,r=l.duration;if(a&&r&&V2(i)){for(i=0,r=l.responseEnd,s+=1;s<n.length;s++){var c=n[s],u=c.startTime;if(u>r)break;var d=c.transferSize,m=c.initiatorType;d&&V2(m)&&(c=c.responseEnd,i+=d*(c<r?1:(r-u)/(c-u)))}if(--s,e+=8*(a+i)/(l.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var qh=null,Yh=null;function ou(t){return t.nodeType===9?t:t.ownerDocument}function G2(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function _b(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function yb(t,e,n,s){return n=ou(n).createElement(t),n[Dn]=s,n[Os]=e,Un(n,t,e),Cn(n),n}function Xh(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var p1=null;function Tk(){var t=window.event;return t&&t.type==="popstate"?t===p1?!1:(p1=t,!0):(p1=null,!1)}var zp=typeof setTimeout=="function"?setTimeout:void 0,Ek=typeof clearTimeout=="function"?clearTimeout:void 0,F2=typeof Promise=="function"?Promise:void 0,P2=typeof requestAnimationFrame=="function"?requestAnimationFrame:zp,$k=typeof queueMicrotask=="function"?queueMicrotask:typeof F2<"u"?function(t){return F2.resolve(null).then(t).catch(Rk)}:zp;function Rk(t){setTimeout(function(){throw t})}function Vo(t){return t==="head"}function q2(t,e){var n=e,s=0;do{var l=n.nextSibling;if(t.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"||n==="/&"){if(s===0){t.removeChild(l),qr(e);return}s--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")s++;else if(n==="html")g1(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,g1(n);for(var a=n.firstChild;a;){var i=a.nextSibling,r=a.nodeName;a[Du]||r==="SCRIPT"||r==="STYLE"||r==="LINK"&&a.rel.toLowerCase()==="stylesheet"||n.removeChild(a),a=i}}else n==="body"&&g1(t.ownerDocument.body);n=l}while(n);qr(e)}function Y2(t,e){var n=t;t=0;do{var s=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),s&&s.nodeType===8)if(n=s.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=s}while(n)}function bb(t,e,n){if(e=CSS.escape(e)!==e?"r-"+btoa(e).replace(/=/g,""):e,t.style.viewTransitionName=e,n!=null&&(t.style.viewTransitionClass=n),n=getComputedStyle(t),n.display==="inline"){if(e=t.getClientRects(),e.length===1)var s=1;else for(var l=s=0;l<e.length;l++){var a=e[l];0<a.width&&0<a.height&&s++}s===1&&(t=t.style,t.display=e.length===1?"inline-block":"block",t.marginTop="-"+n.paddingTop,t.marginBottom="-"+n.paddingBottom)}}function xb(t,e){t=t.style,e=e.style;var n=e!=null?e.hasOwnProperty("viewTransitionName")?e.viewTransitionName:e.hasOwnProperty("view-transition-name")?e["view-transition-name"]:null:null;t.viewTransitionName=n==null||typeof n=="boolean"?"":(""+n).trim(),n=e!=null?e.hasOwnProperty("viewTransitionClass")?e.viewTransitionClass:e.hasOwnProperty("view-transition-class")?e["view-transition-class"]:null:null,t.viewTransitionClass=n==null||typeof n=="boolean"?"":(""+n).trim(),t.display==="inline-block"&&(e==null?t.display=t.margin="":(n=e.display,t.display=n==null||typeof n=="boolean"?"":n,n=e.margin,n!=null?t.margin=n:(n=e.hasOwnProperty("marginTop")?e.marginTop:e["margin-top"],t.marginTop=n==null||typeof n=="boolean"?"":n,e=e.hasOwnProperty("marginBottom")?e.marginBottom:e["margin-bottom"],t.marginBottom=e==null||typeof e=="boolean"?"":e)))}function Ck(t,e,n){return n=n.ownerDocument.defaultView,{rect:t,abs:e.position==="absolute"||e.position==="fixed",clip:e.clipPath!=="none"||e.overflow!=="visible"||e.filter!=="none"||e.mask!=="none"||e.mask!=="none"||e.borderRadius!=="0px",view:0<=t.bottom&&0<=t.right&&t.top<=n.innerHeight&&t.left<=n.innerWidth}}function Kh(t){var e=t.getBoundingClientRect(),n=getComputedStyle(t);return Ck(e,n,t)}function Mk(t){return t.documentElement.clientHeight}function Ak(t){this.addEventListener("load",t),this.addEventListener("error",t)}function Lk(t,e,n,s,l,a,i,r,c){var u=e.nodeType===9?e:e.ownerDocument;try{var d=u.startViewTransition({update:function(){var f=u.defaultView,h=f.navigation&&f.navigation.transition,g=u.fonts.status;s();var y=[];if(g==="loaded"&&(Mk(u),u.fonts.status==="loading"&&y.push(u.fonts.ready)),g=y.length,t!==null)for(var b=t.suspenseyImages,p=0,v=0;v<b.length;v++){var _=b[v];if(!_.complete){var x=_.getBoundingClientRect();if(0<x.bottom&&0<x.right&&x.top<f.innerHeight&&x.left<f.innerWidth){if(p+=Ab(_),p>qd){y.length=g;break}_=new Promise(Ak.bind(_)),y.push(_)}}}if(0<y.length)return f=Promise.race([Promise.all(y),new Promise(function(k){return setTimeout(k,500)})]).then(l,l),(h?Promise.allSettled([h.finished,f]):f).then(a,a);if(l(),h)return h.finished.then(a,a);a()},types:n});u.__reactViewTransition=d;var m=[];return d.ready.then(function(){for(var f=u.documentElement.getAnimations({subtree:!0}),h=0;h<f.length;h++){var g=f[h],y=g.effect,b=y.pseudoElement;if(b!=null&&b.startsWith("::view-transition")){m.push(g),g=y.getKeyframes();for(var p=b=void 0,v=!0,_=0;_<g.length;_++){var x=g[_],k=x.width;if(b===void 0)b=k;else if(b!==k){v=!1;break}if(k=x.height,p===void 0)p=k;else if(p!==k){v=!1;break}delete x.width,delete x.height,x.transform==="none"&&delete x.transform}v&&b!==void 0&&p!==void 0&&(y.setKeyframes(g),v=getComputedStyle(y.target,y.pseudoElement),v.width!==b||v.height!==p)&&(v=g[0],v.width=b,v.height=p,v=g[g.length-1],v.width=b,v.height=p,y.setKeyframes(g))}}i()},function(f){u.__reactViewTransition===d&&(u.__reactViewTransition=null);try{if(typeof f=="object"&&f!==null)switch(f.name){case"InvalidStateError":(f.message==="View transition was skipped because document visibility state is hidden."||f.message==="Skipping view transition because document visibility state has become hidden."||f.message==="Skipping view transition because viewport size changed."||f.message==="Transition was aborted because of invalid state")&&(f=null)}f!==null&&c(f)}finally{s(),l(),i()}}),d.finished.finally(function(){for(var f=0;f<m.length;f++)m[f].cancel();u.__reactViewTransition===d&&(u.__reactViewTransition=null),r()}),d}catch{return s(),l(),i(),null}}function ai(t,e){this._scope=document.documentElement,this._selector="::view-transition-"+t+"("+e+")"}ai.prototype.animate=function(t,e){return e=typeof e=="number"?{duration:e}:Xt({},e),e.pseudoElement=this._selector,this._scope.animate(t,e)};ai.prototype.getAnimations=function(){for(var t=this._scope,e=this._selector,n=t.getAnimations({subtree:!0}),s=[],l=0;l<n.length;l++){var a=n[l].effect;a!==null&&a.target===t&&a.pseudoElement===e&&s.push(n[l])}return s};ai.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Sb(t){return{name:t,group:new ai("group",t),imagePair:new ai("image-pair",t),old:new ai("old",t),new:new ai("new",t)}}function nl(t){this._fragmentFiber=t,this._observers=this._eventListeners=null}nl.prototype.addEventListener=function(t,e,n){var s=null,l=null;if(!(n!=null&&typeof n!="boolean"&&(s=n.signal||null,s!==null&&s.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(kb(a,t,e,n)===-1){var i=this,r=e;n!=null&&typeof n!="boolean"&&n.once===!0&&(r=function(c){i.removeEventListener(t,e,n),typeof e=="function"?e.call(this,c):e.handleEvent(c)}),s!==null&&(l=i.removeEventListener.bind(i,t,e,n),s.addEventListener("abort",l,{once:!0}),l=s.removeEventListener.bind(s,"abort",l)),s=Vr(n),a.push({type:t,listener:e,optionsOrUseCapture:n,attachedListener:r,cleanup:l}),Ls(this._fragmentFiber.child,!1,Ok,t,r,s)}this._eventListeners=a}};function Ok(t,e,n,s){return Tn(t).addEventListener(e,n,s),!1}nl.prototype.removeEventListener=function(t,e,n){var s=this._eventListeners;if(s!==null&&(e=kb(s,t,e,n),e!==-1)){var l=s[e];n=l.attachedListener;var a=l.cleanup;l=Vr(l.optionsOrUseCapture),Ls(this._fragmentFiber.child,!1,Dk,t,n,l),s.splice(e,1),a!==null&&a()}};function Dk(t,e,n,s){return Tn(t).removeEventListener(e,n,s),!1}function Vr(t){return t!=null&&typeof t!="boolean"&&(t.once===!0||t.signal instanceof AbortSignal)?{capture:t.capture,passive:t.passive}:t}function X2(t){return t==null?"c=0":typeof t=="boolean"?"c="+(t?"1":"0"):"c="+(t.capture?"1":"0")}function kb(t,e,n,s){if(t.length===0)return-1;s=X2(s);for(var l=0;l<t.length;l++){var a=t[l];if(a.type===e&&a.listener===n&&X2(a.optionsOrUseCapture)===s)return l}return-1}nl.prototype.dispatchEvent=function(t){var e=Ti(this._fragmentFiber);if(e===null)return!0;e=Tn(e);var n=this._eventListeners;if(n!==null&&0<n.length||!t.bubbles){var s=e.nodeType===9?e.createComment(""):document.createTextNode("");if(n)for(var l=0;l<n.length;l++){var a=n[l];s.addEventListener(a.type,a.attachedListener,Vr(a.optionsOrUseCapture))}if(e.appendChild(s),t=s.dispatchEvent(t),n)for(l=0;l<n.length;l++)a=n[l],s.removeEventListener(a.type,a.attachedListener,Vr(a.optionsOrUseCapture));return e.removeChild(s),t}return e.dispatchEvent(t)};nl.prototype.focus=function(t){Ls(this._fragmentFiber.child,!0,wb,t,void 0,void 0)};function wb(t,e){return t.tag===6?!1:(t=Tn(t),Xk(t,e))}nl.prototype.focusLast=function(t){var e=[];Ls(this._fragmentFiber.child,!0,Bp,e,void 0,void 0);for(var n=e.length-1;0<=n&&!wb(e[n],t);n--);};function Bp(t,e){return e.push(t),!1}nl.prototype.blur=function(){var t=Ti(this._fragmentFiber);t!==null&&(t=Tn(t),t=ou(t).activeElement,t!==null&&Ls(this._fragmentFiber.child,!1,zk,t,void 0,void 0))};function zk(t,e){return t.tag===6?!1:(t=Tn(t),t===e||t.contains(e)?(e.blur(),!0):!1)}nl.prototype.observeUsing=function(t){this._observers===null&&(this._observers=new Set),this._observers.add(t),Ls(this._fragmentFiber.child,!1,Bk,t,void 0,void 0)};function Bk(t,e){return t.tag===6||(t=Tn(t),e.observe(t)),!1}nl.prototype.unobserveUsing=function(t){var e=this._observers;if(e!==null&&e.has(t)){e.delete(t),Ls(this._fragmentFiber.child,!1,Ik,t,void 0,void 0);for(var n=e=0;n<Ml.length;n++){var s=Ml[n];s.fragmentInstance===this&&s.observer===t?t.unobserve(s.instance):Ml[e++]=s}Ml.length=e}};function Ik(t,e){return t.tag===6||(t=Tn(t),e.unobserve(t)),!1}var Ml=[],v1=!1;function Uk(t,e,n){Ml.push({fragmentInstance:t,observer:e,instance:n}),v1||(v1=!0,Kk(function(){v1=!1;var s=Ml;Ml=[];for(var l=0;l<s.length;l++){var a=s[l];a.observer.unobserve(a.instance)}}))}nl.prototype.getClientRects=function(){var t=[];return Ls(this._fragmentFiber.child,!1,Hk,t,void 0,void 0),t};function Hk(t,e){if(t.tag===6){t=t.stateNode;var n=t.ownerDocument.createRange();n.selectNodeContents(t),e.push.apply(e,n.getClientRects())}else t=Tn(t),e.push.apply(e,t.getClientRects());return!1}nl.prototype.getRootNode=function(t){var e=Ti(this._fragmentFiber);return e===null?this:Tn(e).getRootNode(t)};nl.prototype.compareDocumentPosition=function(t){var e=Ti(this._fragmentFiber);if(e===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];Ls(this._fragmentFiber.child,!1,Bp,n,void 0,void 0);var s=Tn(e);if(n.length===0){if(n=s,Ev(this._fragmentFiber)){e:{for(e=this._fragmentFiber.return;e!==null;){if(e.tag===4){e=e.stateNode.containerInfo;break e}if(e.tag===3||e.tag===5||e.tag===27)break;e=e.return}e=null}e!=null&&(n=e)}e=this._fragmentFiber;var l=s=n.compareDocumentPosition(t);return n===t?l=Node.DOCUMENT_POSITION_CONTAINS:s&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=Y3(e)[1],n===null?l=Node.DOCUMENT_POSITION_PRECEDING:(t=Tn(n).compareDocumentPosition(t),l=t===0||t&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),l|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}e=Tn(n[0]),l=Tn(n[n.length-1]);var a=Ev(this._fragmentFiber)?e.parentElement:s;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;s=a.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(l)&Node.DOCUMENT_POSITION_CONTAINED_BY;var i=e.compareDocumentPosition(t),r=l.compareDocumentPosition(t),c=i&Node.DOCUMENT_POSITION_CONTAINED_BY||r&Node.DOCUMENT_POSITION_CONTAINED_BY;return r=s&&a&&i&Node.DOCUMENT_POSITION_FOLLOWING&&r&Node.DOCUMENT_POSITION_PRECEDING,e=s&&e===t||a&&l===t||c||r?Node.DOCUMENT_POSITION_CONTAINED_BY:!s&&e===t||!a&&l===t?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:i,e&Node.DOCUMENT_POSITION_DISCONNECTED||e&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Vk(e,this._fragmentFiber,n[0],n[n.length-1],t)?e:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Vk(t,e,n,s,l){var a=li(l);if(t&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)e:{for(;a!==null;){if(a.tag===7&&(a===e||a.alternate===e)){n=!0;break e}a=a.return}n=!1}return n}if(t&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=l.ownerDocument,l===a||l===a.documentElement||l===a.body;e:{for(a=e,e=Ti(e);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==e&&a.alternate!==e)){a=!0;break e}a=a.return}a=!1}return a}return t&Node.DOCUMENT_POSITION_PRECEDING?((e=!!a)&&!(e=a===n)&&(e=q1(n,a,$v),e===null?e=!1:(Ls(e,!0,vS,a,n),a=Qi,Qi=null,e=a!==null)),e):t&Node.DOCUMENT_POSITION_FOLLOWING?((e=!!a)&&!(e=a===s)&&(e=q1(s,a,$v),e===null?e=!1:(Ls(e,!0,gS,a,s),a=Qi,P1=Qi=null,e=a!==null)),e):!1}function K2(t,e){var n=t.ownerDocument.createRange();n.selectNodeContents(t),t=n.getBoundingClientRect(),window.scrollTo(window.scrollX+t.left,e?window.scrollY+t.top:window.scrollY+t.bottom-window.innerHeight)}nl.prototype.scrollIntoView=function(t){if(typeof t=="object")throw Error(ve(566));var e=[];Ls(this._fragmentFiber.child,!1,Bp,e,void 0,void 0);var n=t!==!1;if(e.length===0){var s=Y3(this._fragmentFiber);if(s=n?s[1]||s[0]||Ti(this._fragmentFiber):s[0]||s[1],s===null)return;if(s.tag===6){t=Tn(s),K2(t,n);return}if(s=Tn(s),s.nodeType!==9){if(s.nodeType===11){n="host"in s?s.host:null,n!==null&&n.scrollIntoView(t);return}s.scrollIntoView(t)}}for(s=n?e.length-1:0;s!==(n?-1:e.length);){var l=e[s];l.tag===6?(l=Tn(l),K2(l,n)):Tn(l).scrollIntoView(t),s+=n?-1:1}};function Gk(t,e){return t=Tn(t),jb(t,e),!1}function jb(t,e){t.reactFragments==null&&(t.reactFragments=new Set),t.reactFragments.add(e)}function Nb(t,e){var n=e._eventListeners;if(n!==null)for(var s=0;s<n.length;s++){var l=n[s];t.addEventListener(l.type,l.attachedListener,Vr(l.optionsOrUseCapture))}t.nodeType!==3&&(n=e._observers,n!==null&&n.forEach(function(a){for(var i=0,r=0;r<Ml.length;r++){var c=Ml[r];(c.fragmentInstance!==e||c.observer!==a||c.instance!==t)&&(Ml[i++]=c)}Ml.length=i,a.observe(t)}),jb(t,e))}function Fk(t,e){var n=e._eventListeners;if(n!==null)for(var s=0;s<n.length;s++){var l=n[s];t.removeEventListener(l.type,l.attachedListener,Vr(l.optionsOrUseCapture))}t.nodeType!==3&&(n=e._observers,n!==null&&n.forEach(function(a){typeof a.rootMargin=="string"?Uk(e,a,t):a.unobserve(t)}),t.reactFragments!=null&&t.reactFragments.delete(e))}function Qh(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Qh(n),om(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function Pk(t,e,n,s){for(;t.nodeType===1;){var l=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!s&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(s){if(!t[Du])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(a=t.getAttribute("rel"),a==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(a!==l.rel||t.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||t.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||t.getAttribute("title")!==(l.title==null?null:l.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(a=t.getAttribute("src"),(a!==(l.src==null?null:l.src)||t.getAttribute("type")!==(l.type==null?null:l.type)||t.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&a&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var a=l.name==null?null:""+l.name;if(l.type==="hidden"&&t.getAttribute("name")===a)return t}else return t;if(t=Sl(t.nextSibling),t===null)break}return null}function qk(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Sl(t.nextSibling),t===null))return null;return t}function Tb(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Sl(t.nextSibling),t===null))return null;return t}function Zh(t){return t.data==="$?"||t.data==="$~"}function Ip(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Yk(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var s=function(){e(),n.removeEventListener("DOMContentLoaded",s)};n.addEventListener("DOMContentLoaded",s),t._reactRetry=s}}function Sl(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Wh=null;function Q2(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Sl(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function Z2(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function Xk(t,e){function n(){s=!0}if(t.ownerDocument.activeElement===t)return!0;var s=!1;try{t.ownerDocument.addEventListener("focus",n,!0),(t.focus||HTMLElement.prototype.focus).call(t,e)}finally{t.ownerDocument.removeEventListener("focus",n,!0)}return s}function Kk(t){P2(function(){P2(function(e){return t(e)})})}function Eb(t,e,n){switch(e=ou(n),t){case"html":if(t=e.documentElement,!t)throw Error(ve(452));return t;case"head":if(t=e.head,!t)throw Error(ve(453));return t;case"body":if(t=e.body,!t)throw Error(ve(454));return t;default:throw Error(ve(451))}}function $b(t,e,n){for(var s in n){var l=n[s];n.hasOwnProperty(s)&&l!=null&&Ut(t,e,s,null,wk,l)}n.dangerouslySetInnerHTML!=null&&(t.textContent=""),t.onclick===ea&&(t.onclick=null),om(t)}function g1(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);om(t)}var kl=new Map,W2=new Set;function iu(t){if(typeof t.getRootNode=="function"){var e=t.getRootNode();if(e.nodeType===9||e.nodeType===11)return e}return t.nodeType===9?t:t.ownerDocument}var Ua=At.d;At.d={f:Qk,r:Zk,D:Wk,C:Jk,L:e7,m:t7,X:s7,S:n7,M:l7};function Qk(){var t=Ua.f(),e=bm();return t||e}function Zk(t){var e=Qr(t);e!==null&&e.tag===5&&e.type==="form"?hy(e):Ua.r(t)}var ec=typeof document>"u"?null:document;function Rb(t,e,n){var s=ec;if(s&&typeof e=="string"&&e){var l=vl(e);l='link[rel="'+t+'"][href="'+l+'"]',typeof n=="string"&&(l+='[crossorigin="'+n+'"]'),W2.has(l)||(W2.add(l),t={rel:t,crossOrigin:n,href:e},s.querySelector(l)===null&&(e=s.createElement("link"),Un(e,"link",t),Cn(e),s.head.appendChild(e)))}}function Wk(t){Ua.D(t),Rb("dns-prefetch",t,null)}function Jk(t,e){Ua.C(t,e),Rb("preconnect",t,e)}function e7(t,e,n){Ua.L(t,e,n);var s=ec;if(s&&t&&e){var l='link[rel="preload"][as="'+vl(e)+'"]';e==="image"&&n&&n.imageSrcSet?(l+='[imagesrcset="'+vl(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(l+='[imagesizes="'+vl(n.imageSizes)+'"]')):l+='[href="'+vl(t)+'"]';var a=l;switch(e){case"style":a=Gr(t);break;case"script":a=tc(t)}if(!(kl.has(a)||(t=Xt({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),kl.set(a,t),s.querySelector(l)!==null||e==="style"&&s.querySelector(Vu(a))||e==="script"&&s.querySelector(Gu(a))))){var i=s.createElement("link");Un(i,"link",t),e==="style"&&(i[ff]=!0,i.onload=i.onerror=function(){o4(i)}),Cn(i),s.head.appendChild(i)}}}function t7(t,e){Ua.m(t,e);var n=ec;if(n&&t){var s=e&&typeof e.as=="string"?e.as:"script",l='link[rel="modulepreload"][as="'+vl(s)+'"][href="'+vl(t)+'"]',a=l;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=tc(t)}if(!kl.has(a)&&(t=Xt({rel:"modulepreload",href:t},e),kl.set(a,t),n.querySelector(l)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Gu(a)))return}s=n.createElement("link"),Un(s,"link",t),Cn(s),n.head.appendChild(s)}}}function n7(t,e,n){Ua.S(t,e,n);var s=ec;if(s&&t){var l=hr(s).hoistableStyles,a=Gr(t);e=e||"default";var i=l.get(a);if(!i){var r={loading:0,preload:null};if(i=s.querySelector(Vu(a)))r.loading=5;else{t=Xt({rel:"stylesheet",href:t,"data-precedence":e},n),(n=kl.get(a))&&Up(t,n);var c=i=s.createElement("link");Cn(c),Un(c,"link",t),c._p=new Promise(function(u,d){c.onload=u,c.onerror=d}),c.addEventListener("load",function(){r.loading|=1}),c.addEventListener("error",function(){r.loading|=2}),r.loading|=4,Fd(i,e,s)}i={type:"stylesheet",instance:i,count:1,state:r},l.set(a,i)}}}function s7(t,e){Ua.X(t,e);var n=ec;if(n&&t){var s=hr(n).hoistableScripts,l=tc(t),a=s.get(l);a||(a=n.querySelector(Gu(l)),a||(t=Xt({src:t,async:!0},e),(e=kl.get(l))&&Hp(t,e),a=n.createElement("script"),Cn(a),Un(a,"link",t),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},s.set(l,a))}}function l7(t,e){Ua.M(t,e);var n=ec;if(n&&t){var s=hr(n).hoistableScripts,l=tc(t),a=s.get(l);a||(a=n.querySelector(Gu(l)),a||(t=Xt({src:t,async:!0,type:"module"},e),(e=kl.get(l))&&Hp(t,e),a=n.createElement("script"),Cn(a),Un(a,"link",t),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},s.set(l,a))}}function J2(t,e,n,s){var l=(l=yo.current)?iu(l):null;if(!l)throw Error(ve(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=Gr(n.href),e=hr(l).hoistableStyles,s=e.get(n),s||(s={type:"style",instance:null,count:0,state:null},e.set(n,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=Gr(n.href);var a=hr(l).hoistableStyles,i=a.get(t);if(i||(l=l.ownerDocument||l,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},a.set(t,i),(a=l.querySelector(Vu(t)))?a._p||(i.instance=a,i.state.loading=5):(a=kl.get(t),a||(a={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},kl.set(t,a)),a7(l,t,a,i.state))),e&&s===null)throw Error(ve(528,""));return i}if(e&&s!==null)throw Error(ve(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(n=tc(n),e=hr(l).hoistableScripts,s=e.get(n),s||(s={type:"script",instance:null,count:0,state:null},e.set(n,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(ve(444,t))}}function Gr(t){return'href="'+vl(t)+'"'}function Vu(t){return'link[rel="stylesheet"]['+t+"]"}function Cb(t){return Xt({},t,{"data-precedence":t.precedence,precedence:null})}function a7(t,e,n,s){if(e=t.querySelector('link[rel="preload"][as="style"]['+e+"]")){if(e[ff]!==!0){s.loading=1;return}}else e=t.createElement("link"),e[ff]=!0,e.onload=e.onerror=o4.bind(null,e),Un(e,"link",n),Cn(e),t.head.appendChild(e);s.preload=e,e.addEventListener("load",function(){return s.loading|=1}),e.addEventListener("error",function(){return s.loading|=2})}function tc(t){return'[src="'+vl(t)+'"]'}function Gu(t){return"script[async]"+t}function eg(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var s=t.querySelector('style[data-href~="'+vl(n.href)+'"]');if(s)return e.instance=s,Cn(s),s;var l=Xt({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return s=(t.ownerDocument||t).createElement("style"),Cn(s),Un(s,"style",l),Fd(s,n.precedence,t),e.instance=s;case"stylesheet":l=Gr(n.href);var a=t.querySelector(Vu(l));if(a)return e.state.loading|=4,e.instance=a,Cn(a),a;s=Cb(n),(l=kl.get(l))&&Up(s,l),a=(t.ownerDocument||t).createElement("link"),Cn(a);var i=a;return i._p=new Promise(function(r,c){i.onload=r,i.onerror=c}),Un(a,"link",s),e.state.loading|=4,Fd(a,n.precedence,t),e.instance=a;case"script":return a=tc(n.src),(l=t.querySelector(Gu(a)))?(e.instance=l,Cn(l),l):(s=n,(l=kl.get(a))&&(s=Xt({},n),Hp(s,l)),t=t.ownerDocument||t,l=t.createElement("script"),Cn(l),Un(l,"link",s),t.head.appendChild(l),e.instance=l);case"void":return null;default:throw Error(ve(443,e.type))}else e.type==="stylesheet"&&!(e.state.loading&4)&&(s=e.instance,e.state.loading|=4,Fd(s,n.precedence,t));return e.instance}function Fd(t,e,n){for(var s=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=s.length?s[s.length-1]:null,a=l,i=0;i<s.length;i++){var r=s[i];if(r.dataset.precedence===e)a=r;else if(a!==l)break}a?a.parentNode.insertBefore(t,a.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Up(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Hp(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Pd=null;function tg(t,e,n){if(Pd===null){var s=new Map,l=Pd=new Map;l.set(n,s)}else l=Pd,s=l.get(n),s||(s=new Map,l.set(n,s));if(s.has(t))return s;for(s.set(t,null),n=n.getElementsByTagName(t),l=0;l<n.length;l++){var a=n[l];if(!(a[Du]||a[Dn]||t==="link"&&a.getAttribute("rel")==="stylesheet")&&a.namespaceURI!=="http://www.w3.org/2000/svg"){var i=a.getAttribute(e)||"";i=t+i;var r=s.get(i);r?r.push(a):s.set(i,[a])}}return s}function Jh(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function o7(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function ng(t,e){return t==="img"&&e.src!=null&&e.src!==""&&e.onLoad==null&&e.loading!=="lazy"}function Mb(t){return!(t.type==="stylesheet"&&!(t.state.loading&3))}function Ab(t){return(t.width||100)*(t.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function sg(t,e){typeof e.decode=="function"&&(t.imgCount++,e.complete||(t.imgBytes+=Ab(e),t.suspenseyImages.push(e)),t=c7.bind(t),e.decode().then(t,t))}function i7(t,e,n,s){if(n.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&!(n.state.loading&4)){if(n.instance===null){var l=Gr(s.href),a=e.querySelector(Vu(l));if(a){e=a._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=ru.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=a,Cn(a);return}a=e.ownerDocument||e,s=Cb(s),(l=kl.get(l))&&Up(s,l),a=a.createElement("link"),Cn(a);var i=a;i._p=new Promise(function(r,c){i.onload=r,i.onerror=c}),Un(a,"link",s),n.instance=a}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&!(n.state.loading&3)&&(t.count++,n=ru.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var qd=0;function r7(t,e){return t.stylesheets&&t.count===0&&Yd(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var s=setTimeout(function(){if(t.stylesheets&&Yd(t,t.stylesheets),t.unsuspend){var a=t.unsuspend;t.unsuspend=null,a()}},6e4+e);0<t.imgBytes&&qd===0&&(qd=62500*Nk());var l=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Yd(t,t.stylesheets),t.unsuspend)){var a=t.unsuspend;t.unsuspend=null,a()}},(t.imgBytes>qd?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(s),clearTimeout(l)}}:null}function Lb(t){if(t.count===0&&(t.imgCount===0||!t.waitingForImages)){if(t.stylesheets)Yd(t,t.stylesheets);else if(t.unsuspend){var e=t.unsuspend;t.unsuspend=null,e()}}}function ru(){this.count--,Lb(this)}function c7(){this.imgCount--,Lb(this)}var Of=null;function Yd(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Of=new Map,e.forEach(u7,t),Of=null,ru.call(t))}function u7(t,e){if(!(e.state.loading&4)){var n=Of.get(t);if(n)var s=n.get(null);else{n=new Map,Of.set(t,n);for(var l=t.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a<l.length;a++){var i=l[a];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(n.set(i.dataset.precedence,i),s=i)}s&&n.set(null,s)}l=e.instance,i=l.getAttribute("data-precedence"),a=n.get(i)||s,a===s&&n.set(null,l),n.set(i,l),this.count++,s=ru.bind(this),l.addEventListener("load",s),l.addEventListener("error",s),a?a.parentNode.insertBefore(l,a.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(l,t.firstChild)),e.state.loading|=4}}var Fr={$$typeof:Jl,Provider:null,Consumer:null,_currentValue:ui,_currentValue2:ui,_threadCount:0};function d7(t,e,n,s,l,a,i,r,c){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Vm(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vm(0),this.hiddenUpdates=Vm(null),this.identifierPrefix=s,this.onUncaughtError=l,this.onCaughtError=a,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function Ob(t,e,n,s,l,a,i,r,c,u,d,m){return t=new d7(t,e,n,i,c,u,d,m,r),e=1,a===!0&&(e|=24),a=Rs(3,null,null,e),t.current=a,a.stateNode=t,e=ip(),e.refCount++,t.pooledCache=e,e.refCount++,a.memoizedState={element:s,isDehydrated:n,cache:e},up(a),t}function Db(t){return t?(t=lr,t):lr}function zb(t,e,n,s,l,a){l=Db(l),s.context===null?s.context=l:s.pendingContext=l,s=xo(e),s.payload={element:n},a=a===void 0?null:a,a!==null&&(s.callback=a),n=So(t,s,e),n!==null&&(As(n,t,e),Oc(n,t,e))}function lg(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Vp(t,e){lg(t,e),(t=t.alternate)&&lg(t,e)}function Bb(t){if(t.tag===13||t.tag===31){var e=Ri(t,67108864);e!==null&&As(e,t,67108864),Vp(t,67108864)}}function ag(t){if(t.tag===13||t.tag===31){var e=el();e=K0(e);var n=Ri(t,e);n!==null&&As(n,t,e),Vp(t,e)}}var Pr=!0;function f7(t,e,n,s){var l=Ye.T;Ye.T=null;var a=At.p;try{At.p=2,Gp(t,e,n,s)}finally{At.p=a,Ye.T=l}}function m7(t,e,n,s){var l=Ye.T;Ye.T=null;var a=At.p;try{At.p=8,Gp(t,e,n,s)}finally{At.p=a,Ye.T=l}}function Gp(t,e,n,s){if(Pr){var l=e0(s);if(l===null)h1(t,e,s,Df,n),og(t,s);else if(p7(l,t,e,n,s))s.stopPropagation();else if(og(t,s),e&4&&-1<h7.indexOf(t)){for(;l!==null;){var a=Qr(l);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var i=Jo(a.pendingLanes);if(i!==0){var r=a;for(r.pendingLanes|=2,r.entangledLanes|=2;i;){var c=1<<31-Js(i);r.entanglements[1]|=c,i&=~c}da(a),!(Mt&6)&&(Rf=Zs()+500,Hu(0))}}break;case 31:case 13:r=Ri(a,2),r!==null&&As(r,a,2),bm(),Vp(a,2)}if(a=e0(s),a===null&&h1(t,e,s,Df,n),a===l)break;l=a}l!==null&&s.stopPropagation()}else h1(t,e,s,null,n)}}function e0(t){return t=W0(t),Fp(t)}var Df=null;function Fp(t){if(Df=null,t=li(t),t!==null){var e=Mu(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=F3(e),t!==null)return t;t=null}else if(n===31){if(t=P3(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Df=t,null}function Ib(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"fullscreenerror":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(NS()){case Z3:return 2;case W3:return 8;case df:case TS:return 32;case J3:return 268435456;default:return 32}default:return 32}}var t0=!1,No=null,To=null,Eo=null,cu=new Map,uu=new Map,lo=[],h7="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function og(t,e){switch(t){case"focusin":case"focusout":No=null;break;case"dragenter":case"dragleave":To=null;break;case"mouseover":case"mouseout":Eo=null;break;case"pointerover":case"pointerout":cu.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":uu.delete(e.pointerId)}}function cc(t,e,n,s,l,a){return t===null||t.nativeEvent!==a?(t={blockedOn:e,domEventName:n,eventSystemFlags:s,nativeEvent:a,targetContainers:[l]},e!==null&&(e=Qr(e),e!==null&&Bb(e)),t):(t.eventSystemFlags|=s,e=t.targetContainers,l!==null&&e.indexOf(l)===-1&&e.push(l),t)}function p7(t,e,n,s,l){switch(e){case"focusin":return No=cc(No,t,e,n,s,l),!0;case"dragenter":return To=cc(To,t,e,n,s,l),!0;case"mouseover":return Eo=cc(Eo,t,e,n,s,l),!0;case"pointerover":var a=l.pointerId;return cu.set(a,cc(cu.get(a)||null,t,e,n,s,l)),!0;case"gotpointercapture":return a=l.pointerId,uu.set(a,cc(uu.get(a)||null,t,e,n,s,l)),!0}return!1}function Ub(t){var e=li(t.target);if(e!==null){var n=Mu(e);if(n!==null){if(e=n.tag,e===13){if(e=F3(n),e!==null){t.blockedOn=e,Av(t.priority,function(){ag(n)});return}}else if(e===31){if(e=P3(n),e!==null){t.blockedOn=e,Av(t.priority,function(){ag(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Xd(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=e0(t.nativeEvent);if(n===null){n=t.nativeEvent;var s=new n.constructor(n.type,n);lh=s,n.target.dispatchEvent(s),lh=null}else return e=Qr(n),e!==null&&Bb(e),t.blockedOn=n,!1;e.shift()}return!0}function ig(t,e,n){Xd(t)&&n.delete(e)}function v7(){t0=!1,No!==null&&Xd(No)&&(No=null),To!==null&&Xd(To)&&(To=null),Eo!==null&&Xd(Eo)&&(Eo=null),cu.forEach(ig),uu.forEach(ig)}function cd(t,e){t.blockedOn===e&&(t.blockedOn=null,t0||(t0=!0,En.unstable_scheduleCallback(En.unstable_NormalPriority,v7)))}var ud=null;function rg(t){ud!==t&&(ud=t,En.unstable_scheduleCallback(En.unstable_NormalPriority,function(){ud===t&&(ud=null);for(var e=0;e<t.length;e+=3){var n=t[e],s=t[e+1],l=t[e+2];if(typeof s!="function"){if(Fp(s||n)===null)continue;break}var a=Qr(n);a!==null&&(t.splice(e,3),e-=3,bh(a,{pending:!0,data:l,method:n.method,action:s},s,l))}}))}function qr(t){function e(c){return cd(c,t)}No!==null&&cd(No,t),To!==null&&cd(To,t),Eo!==null&&cd(Eo,t),cu.forEach(e),uu.forEach(e);for(var n=0;n<lo.length;n++){var s=lo[n];s.blockedOn===t&&(s.blockedOn=null)}for(;0<lo.length&&(n=lo[0],n.blockedOn===null);)Ub(n),n.blockedOn===null&&lo.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(s=0;s<n.length;s+=3){var l=n[s],a=n[s+1],i=l[Os]||null;if(typeof a=="function")i||rg(n);else if(i){var r=null;if(a&&a.hasAttribute("formAction")){if(l=a,i=a[Os]||null)r=i.formAction;else if(Fp(l)!==null)continue}else r=i.action;typeof r=="function"?n[s+1]=r:(n.splice(s,3),s-=3),rg(n)}}}function Hb(){function t(a){a.canIntercept&&a.info==="react-transition"&&a.intercept({handler:function(){return new Promise(function(i){return l=i})},focusReset:"manual",scroll:"manual"})}function e(){l!==null&&(l(),l=null),s||setTimeout(n,20)}function n(){if(!s&&!navigation.transition){var a=navigation.currentEntry;a&&a.url!=null&&navigation.navigate(a.url,{state:a.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,l=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){s=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),l!==null&&(l(),l=null)}}}function Pp(t){this._internalRoot=t}km.prototype.render=Pp.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(ve(409));var n=e.current,s=el();zb(n,s,t,e,null,null)};km.prototype.unmount=Pp.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;zb(t.current,2,null,t,null,null),bm(),e[Kr]=null}};function km(t){this._internalRoot=t}km.prototype.unstable_scheduleHydration=function(t){if(t){var e=a4();t={blockedOn:null,target:t,priority:e};for(var n=0;n<lo.length&&e!==0&&e<lo[n].priority;n++);lo.splice(n,0,t),n===0&&Ub(t)}};var cg=V3.version;if(cg!=="19.3.1")throw Error(ve(527,cg,"19.3.1"));At.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(ve(188)):(t=Object.keys(t).join(","),Error(ve(268,t)));return t=pS(e),t=t!==null?q3(t):null,t=t===null?null:t.stateNode,t};var g7={bundleType:0,version:"19.3.1",rendererPackageName:"react-dom",currentDispatcherRef:Ye,reconcilerVersion:"19.3.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var dd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!dd.isDisabled&&dd.supportsFiber)try{Au=dd.inject(g7),Ws=dd}catch{}}sm.createRoot=function(t,e){if(!G3(t))throw Error(ve(299));var n=!1,s="",l=Sy,a=ky,i=wy;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(s=e.identifierPrefix),e.onUncaughtError!==void 0&&(l=e.onUncaughtError),e.onCaughtError!==void 0&&(a=e.onCaughtError),e.onRecoverableError!==void 0&&(i=e.onRecoverableError)),e=Ob(t,1,!1,null,null,n,s,null,l,a,i,Hb),t[Kr]=e.current,Dp(t),new Pp(e)};sm.hydrateRoot=function(t,e,n){if(!G3(t))throw Error(ve(299));var s=!1,l="",a=Sy,i=ky,r=wy,c=null;return n!=null&&(n.unstable_strictMode===!0&&(s=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(a=n.onUncaughtError),n.onCaughtError!==void 0&&(i=n.onCaughtError),n.onRecoverableError!==void 0&&(r=n.onRecoverableError),n.formState!==void 0&&(c=n.formState)),e=Ob(t,1,!0,e,n??null,s,l,c,a,i,r,Hb),e.context=Db(null),n=e.current,s=el(),s=K0(s),l=xo(s),l.callback=null,So(n,l,s),n=s,e.current.lanes=n,Ou(e,n),da(e),t[Kr]=e.current,Dp(t),new km(e)};sm.version="19.3.1";function Vb(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Vb)}catch(t){console.error(t)}}Vb(),T3.exports=sm;var _7=T3.exports;const y7="_measure_1uc2g_3",b7="_measureHead_1uc2g_4",x7="_measureHeadNote_1uc2g_10",S7="_measureBody_1uc2g_11",k7="_measureReadouts_1uc2g_12",w7="_measureRo_1uc2g_16",j7="_measureRoLabel_1uc2g_17",N7="_measureRoValue_1uc2g_18",T7="_measureRoWord_1uc2g_20",E7="_measureLegend_1uc2g_22",$7="_measureScale_1uc2g_24",R7="_measureScaleIndent_1uc2g_27",C7="_measureScaleWords_1uc2g_28",M7="_lgNeedle_1uc2g_29",A7="_lgShort_1uc2g_30",L7="_lgMomentary_1uc2g_31",O7="_lgTarget_1uc2g_32",D7="_lgLine_1uc2g_33",z7="_lgPrevious_1uc2g_34",B7="_spectrumGrid_1uc2g_35",I7="_spectrumBase_1uc2g_36",U7="_spectrumPrevious_1uc2g_37",H7="_spectrumCursor_1uc2g_38",V7="_spectrumY_1uc2g_39",G7="_spectrumTip_1uc2g_40",F7="_measurePrevious_1uc2g_48",P7="_measurePreviousDelta_1uc2g_55",q7="_lgTick_1uc2g_58",Y7="_lgWas_1uc2g_59",X7="_lgNew_1uc2g_60",K7="_lgRange_1uc2g_61",Q7="_lgNote_1uc2g_62",Z7="_lgNoteNew_1uc2g_63",W7="_lgNoteGone_1uc2g_64",J7="_lgNewMark_1uc2g_65",ew="_lgGoneMark_1uc2g_66",tw="_evMore_1uc2g_67",nw="_evWord_1uc2g_68",sw="_evRows_1uc2g_69",lw="_evRow_1uc2g_69",aw="_evName_1uc2g_71",ow="_evVal_1uc2g_73",iw="_evHot_1uc2g_75",rw="_evBar_1uc2g_76",cw="_evFill_1uc2g_78",uw="_evTick_1uc2g_80",dw="_evWas_1uc2g_81",fw="_evZero_1uc2g_82",mw="_lgAi_1uc2g_83",hw="_lgEdge_1uc2g_84",pw="_lgStruck_1uc2g_88",vw="_lgSel_1uc2g_89",gw="_offHints_1uc2g_95",_w="_lgWarn_1uc2g_97",yw="_lgBad_1uc2g_98",bw="_lgSpan_1uc2g_99",xw="_lgSpanCut_1uc2g_100",Sw="_lgSpanSrc_1uc2g_101",kw="_lgDot_1uc2g_102",ww="_lgWasDot_1uc2g_103",B={measure:y7,measureHead:b7,measureHeadNote:x7,measureBody:S7,measureReadouts:k7,measureRo:w7,measureRoLabel:j7,measureRoValue:N7,measureRoWord:T7,measureLegend:E7,measureScale:$7,measureScaleIndent:R7,measureScaleWords:C7,lgNeedle:M7,lgShort:A7,lgMomentary:L7,lgTarget:O7,lgLine:D7,lgPrevious:z7,spectrumGrid:B7,spectrumBase:I7,spectrumPrevious:U7,spectrumCursor:H7,spectrumY:V7,spectrumTip:G7,measurePrevious:F7,measurePreviousDelta:P7,lgTick:q7,lgWas:Y7,lgNew:X7,lgRange:K7,lgNote:Q7,lgNoteNew:Z7,lgNoteGone:W7,lgNewMark:J7,lgGoneMark:ew,evMore:tw,evWord:nw,evRows:sw,evRow:lw,evName:aw,evVal:ow,evHot:iw,evBar:rw,evFill:cw,evTick:uw,evWas:dw,evZero:fw,lgAi:mw,lgEdge:hw,lgStruck:pw,lgSel:vw,offHints:gw,lgWarn:_w,lgBad:yw,lgSpan:bw,lgSpanCut:xw,lgSpanSrc:Sw,lgDot:kw,lgWasDot:ww},jw="_drawer_cc7ns_1",Nw="_drawerSettings_cc7ns_13",Tw="_drawerHead_cc7ns_15",Ew="_drawerTitle_cc7ns_20",$w="_drawerBody_cc7ns_22",Rw="_resultBadge_cc7ns_23",Cw="_facts_cc7ns_31",Mw="_factWide_cc7ns_40",Aw="_codeBlock_cc7ns_45",Lw="_codeHead_cc7ns_46",Ow="_drawerNote_cc7ns_57",Dw="_drawerHint_cc7ns_61",zw="_drawerGrow_cc7ns_67",Et={drawer:jw,drawerSettings:Nw,drawerHead:Tw,drawerTitle:Ew,drawerBody:$w,resultBadge:Rw,facts:Cw,factWide:Mw,codeBlock:Aw,codeHead:Lw,drawerNote:Ow,drawerHint:Dw,drawerGrow:zw},Bw="_segSm_1bgq3_1",Iw="_seg_1bgq3_1",Uw="_chips_1bgq3_11",Hw="_chip_1bgq3_11",Vw="_rows_1bgq3_26",Gw="_empty_1bgq3_29",Fw="_tag_1bgq3_30",Dt={segSm:Bw,seg:Iw,chips:Uw,chip:Hw,rows:Vw,empty:Gw,tag:Fw};var Gb={exports:{}},Fb={};/**
|
|
60
|
+
* @license React
|
|
61
|
+
* react-compiler-runtime.production.js
|
|
62
|
+
*
|
|
63
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
64
|
+
*
|
|
65
|
+
* This source code is licensed under the MIT license found in the
|
|
66
|
+
* LICENSE file in the root directory of this source tree.
|
|
67
|
+
*/var Pw=Q.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;Fb.c=function(t){return Pw.H.useMemoCache(t)};Gb.exports=Fb;var fe=Gb.exports;function qp(){}function Pb(t){return t}var qb={debug:0,info:1,warn:2,error:3},qw=qb.warn;wm("info");var vs=wm("warn"),Yp=wm("error"),Ke=wm("debug");function wm(t){if(typeof console<"u"&&console[t]&&typeof console[t].apply=="function"){var e=qb[t];return function(){e>=qw&&console[t].apply(console,arguments)}}return qp}var Yw=Object.prototype.hasOwnProperty;function Xw(t,e){return Yw.call(t,e)}var je=typeof window<"u"?window:void 0,kt=je?.document,zf=je?.navigator,rr=typeof location<"u"?location:void 0,Xn=je?.performance||je?.webkitPerformance||je?.msPerformance||je?.mozPerformance;je?.encodeURIComponent;var n0=je?.fetch,oi=function(){try{var t;return(t=je?.localStorage)!==null&&t!==void 0?t:null}catch{return null}}(),ii=function(){try{var t;return(t=je?.sessionStorage)!==null&&t!==void 0?t:null}catch{return null}}(),fd=Array(32);function Bo(t){for(var e=0;e<2*t;e++)fd[e]=Math.floor(16*Math.random())+48,fd[e]>=58&&(fd[e]+=39);return String.fromCharCode.apply(null,fd.slice(0,2*t))}function $o(t,e,n){var s=arguments.length>3&&arguments[3]!==void 0&&arguments[3];t.addEventListener?t.addEventListener(e,n,s):t.attachEvent&&t.attachEvent("on"+e,n)}function wr(t,e,n){var s=arguments.length>3&&arguments[3]!==void 0&&arguments[3];t.removeEventListener?t.removeEventListener(e,n,s):t.detachEvent&&t.detachEvent("on"+e,n)}var Kd=oi!=null&&typeof oi.getItem=="function"&&typeof oi.setItem=="function";function s0(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,s=Array(e);n<e;n++)s[n]=t[n];return s}function ug(t,e,n,s,l,a,i){try{var r=t[a](i),c=r.value}catch(u){return void n(u)}r.done?e(c):Promise.resolve(c).then(s,l)}function du(t){return function(){var e=this,n=arguments;return new Promise(function(s,l){var a=t.apply(e,n);function i(c){ug(a,s,l,i,r,"next",c)}function r(c){ug(a,s,l,i,r,"throw",c)}i(void 0)})}}function Xp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Kp(t,e,n){return e&&function(s,l){for(var a=0;a<l.length;a++){var i=l[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(s,Xb(i.key),i)}}(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function wn(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Qp(t))||e){n&&(t=n);var s=0,l=function(){};return{s:l,n:function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}},e:function(c){throw c},f:l}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
68
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,i=!0,r=!1;return{s:function(){n=n.call(t)},n:function(){var c=n.next();return i=c.done,c},e:function(c){r=!0,a=c},f:function(){try{i||n.return==null||n.return()}finally{if(r)throw a}}}}function hs(t,e,n){return(e=Xb(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function dg(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(t,l).enumerable})),n.push.apply(n,s)}return n}function Qd(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?dg(Object(n),!0).forEach(function(s){hs(t,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):dg(Object(n)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(n,s))})}return t}function Al(){Al=function(){return e};var t,e={},n=Object.prototype,s=n.hasOwnProperty,l=Object.defineProperty||function(S,$,L){S[$]=L.value},a=typeof Symbol=="function"?Symbol:{},i=a.iterator||"@@iterator",r=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(S,$,L){return Object.defineProperty(S,$,{value:L,enumerable:!0,configurable:!0,writable:!0}),S[$]}try{u({},"")}catch{u=function($,L,z){return $[L]=z}}function d(S,$,L,z){var D=$&&$.prototype instanceof p?$:p,U=Object.create(D.prototype),I=new A(z||[]);return l(U,"_invoke",{value:E(S,L,I)}),U}function m(S,$,L){try{return{type:"normal",arg:S.call($,L)}}catch(z){return{type:"throw",arg:z}}}e.wrap=d;var f="suspendedStart",h="suspendedYield",g="executing",y="completed",b={};function p(){}function v(){}function _(){}var x={};u(x,i,function(){return this});var k=Object.getPrototypeOf,w=k&&k(k(T([])));w&&w!==n&&s.call(w,i)&&(x=w);var R=_.prototype=p.prototype=Object.create(x);function j(S){["next","throw","return"].forEach(function($){u(S,$,function(L){return this._invoke($,L)})})}function N(S,$){function L(D,U,I,F){var P=m(S[D],S,U);if(P.type!=="throw"){var X=P.arg,Y=X.value;return Y&&typeof Y=="object"&&s.call(Y,"__await")?$.resolve(Y.__await).then(function(Z){L("next",Z,I,F)},function(Z){L("throw",Z,I,F)}):$.resolve(Y).then(function(Z){X.value=Z,I(X)},function(Z){return L("throw",Z,I,F)})}F(P.arg)}var z;l(this,"_invoke",{value:function(D,U){function I(){return new $(function(F,P){L(D,U,F,P)})}return z=z?z.then(I,I):I()}})}function E(S,$,L){var z=f;return function(D,U){if(z===g)throw Error("Generator is already running");if(z===y){if(D==="throw")throw U;return{value:t,done:!0}}for(L.method=D,L.arg=U;;){var I=L.delegate;if(I){var F=C(I,L);if(F){if(F===b)continue;return F}}if(L.method==="next")L.sent=L._sent=L.arg;else if(L.method==="throw"){if(z===f)throw z=y,L.arg;L.dispatchException(L.arg)}else L.method==="return"&&L.abrupt("return",L.arg);z=g;var P=m(S,$,L);if(P.type==="normal"){if(z=L.done?y:h,P.arg===b)continue;return{value:P.arg,done:L.done}}P.type==="throw"&&(z=y,L.method="throw",L.arg=P.arg)}}}function C(S,$){var L=$.method,z=S.iterator[L];if(z===t)return $.delegate=null,L==="throw"&&S.iterator.return&&($.method="return",$.arg=t,C(S,$),$.method==="throw")||L!=="return"&&($.method="throw",$.arg=new TypeError("The iterator does not provide a '"+L+"' method")),b;var D=m(z,S.iterator,$.arg);if(D.type==="throw")return $.method="throw",$.arg=D.arg,$.delegate=null,b;var U=D.arg;return U?U.done?($[S.resultName]=U.value,$.next=S.nextLoc,$.method!=="return"&&($.method="next",$.arg=t),$.delegate=null,b):U:($.method="throw",$.arg=new TypeError("iterator result is not an object"),$.delegate=null,b)}function O(S){var $={tryLoc:S[0]};1 in S&&($.catchLoc=S[1]),2 in S&&($.finallyLoc=S[2],$.afterLoc=S[3]),this.tryEntries.push($)}function M(S){var $=S.completion||{};$.type="normal",delete $.arg,S.completion=$}function A(S){this.tryEntries=[{tryLoc:"root"}],S.forEach(O,this),this.reset(!0)}function T(S){if(S||S===""){var $=S[i];if($)return $.call(S);if(typeof S.next=="function")return S;if(!isNaN(S.length)){var L=-1,z=function D(){for(;++L<S.length;)if(s.call(S,L))return D.value=S[L],D.done=!1,D;return D.value=t,D.done=!0,D};return z.next=z}}throw new TypeError(typeof S+" is not iterable")}return v.prototype=_,l(R,"constructor",{value:_,configurable:!0}),l(_,"constructor",{value:v,configurable:!0}),v.displayName=u(_,c,"GeneratorFunction"),e.isGeneratorFunction=function(S){var $=typeof S=="function"&&S.constructor;return!!$&&($===v||($.displayName||$.name)==="GeneratorFunction")},e.mark=function(S){return Object.setPrototypeOf?Object.setPrototypeOf(S,_):(S.__proto__=_,u(S,c,"GeneratorFunction")),S.prototype=Object.create(R),S},e.awrap=function(S){return{__await:S}},j(N.prototype),u(N.prototype,r,function(){return this}),e.AsyncIterator=N,e.async=function(S,$,L,z,D){D===void 0&&(D=Promise);var U=new N(d(S,$,L,z),D);return e.isGeneratorFunction($)?U:U.next().then(function(I){return I.done?I.value:U.next()})},j(R),u(R,c,"Generator"),u(R,i,function(){return this}),u(R,"toString",function(){return"[object Generator]"}),e.keys=function(S){var $=Object(S),L=[];for(var z in $)L.push(z);return L.reverse(),function D(){for(;L.length;){var U=L.pop();if(U in $)return D.value=U,D.done=!1,D}return D.done=!0,D}},e.values=T,A.prototype={constructor:A,reset:function(S){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(M),!S)for(var $ in this)$.charAt(0)==="t"&&s.call(this,$)&&!isNaN(+$.slice(1))&&(this[$]=t)},stop:function(){this.done=!0;var S=this.tryEntries[0].completion;if(S.type==="throw")throw S.arg;return this.rval},dispatchException:function(S){if(this.done)throw S;var $=this;function L(P,X){return U.type="throw",U.arg=S,$.next=P,X&&($.method="next",$.arg=t),!!X}for(var z=this.tryEntries.length-1;z>=0;--z){var D=this.tryEntries[z],U=D.completion;if(D.tryLoc==="root")return L("end");if(D.tryLoc<=this.prev){var I=s.call(D,"catchLoc"),F=s.call(D,"finallyLoc");if(I&&F){if(this.prev<D.catchLoc)return L(D.catchLoc,!0);if(this.prev<D.finallyLoc)return L(D.finallyLoc)}else if(I){if(this.prev<D.catchLoc)return L(D.catchLoc,!0)}else{if(!F)throw Error("try statement without catch or finally");if(this.prev<D.finallyLoc)return L(D.finallyLoc)}}}},abrupt:function(S,$){for(var L=this.tryEntries.length-1;L>=0;--L){var z=this.tryEntries[L];if(z.tryLoc<=this.prev&&s.call(z,"finallyLoc")&&this.prev<z.finallyLoc){var D=z;break}}D&&(S==="break"||S==="continue")&&D.tryLoc<=$&&$<=D.finallyLoc&&(D=null);var U=D?D.completion:{};return U.type=S,U.arg=$,D?(this.method="next",this.next=D.finallyLoc,b):this.complete(U)},complete:function(S,$){if(S.type==="throw")throw S.arg;return S.type==="break"||S.type==="continue"?this.next=S.arg:S.type==="return"?(this.rval=this.arg=S.arg,this.method="return",this.next="end"):S.type==="normal"&&$&&(this.next=$),b},finish:function(S){for(var $=this.tryEntries.length-1;$>=0;--$){var L=this.tryEntries[$];if(L.finallyLoc===S)return this.complete(L.completion,L.afterLoc),M(L),b}},catch:function(S){for(var $=this.tryEntries.length-1;$>=0;--$){var L=this.tryEntries[$];if(L.tryLoc===S){var z=L.completion;if(z.type==="throw"){var D=z.arg;M(L)}return D}}throw Error("illegal catch attempt")},delegateYield:function(S,$,L){return this.delegate={iterator:T(S),resultName:$,nextLoc:L},this.method==="next"&&(this.arg=t),b}},e}function yl(t,e){return function(n){if(Array.isArray(n))return n}(t)||function(n,s){var l=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(l!=null){var a,i,r,c,u=[],d=!0,m=!1;try{if(r=(l=l.call(n)).next,s!==0)for(;!(d=(a=r.call(l)).done)&&(u.push(a.value),u.length!==s);d=!0);}catch(f){m=!0,i=f}finally{try{if(!d&&l.return!=null&&(c=l.return(),Object(c)!==c))return}finally{if(m)throw i}}return u}}(t,e)||Qp(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
69
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Yb(t){return function(e){if(Array.isArray(e))return s0(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||Qp(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
70
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Xb(t){var e=function(n,s){if(typeof n!="object"||!n)return n;var l=n[Symbol.toPrimitive];if(l!==void 0){var a=l.call(n,s);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}(t,"string");return typeof e=="symbol"?e:e+""}function Dl(t){return Dl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dl(t)}function Qp(t,e){if(t){if(typeof t=="string")return s0(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s0(t,e):void 0}}function ao(){return new Date().getTime()}function Go(){var t=Zp(),e=new Date;if(t){var n=Xn.now()+t,s=e.getTime();if(Math.abs(n-s)<6e4)return String(1e6*n)}return wi(e)}function wi(t){return Dl(t)==="object"?wi(t.getTime()):String(t)+"000000"}function Zp(){var t,e=Xn?.timeOrigin;return typeof e!="number"&&(e=Xn==null||(t=Xn.timing)===null||t===void 0?void 0:t.fetchStart),e}var fg={setTimeout:je?.setTimeout,clearTimeout:je?.clearTimeout,setInterval:je?.setInterval,clearInterval:je?.clearInterval},Wp=je!=null&&je.Zone!=null&&je.Zone.root!=null&&typeof je.Zone.root.run=="function";function Ro(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Jp.apply("setTimeout",arguments)}function fu(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Jp.apply("clearTimeout",arguments)}function mg(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return Jp.apply("setInterval",arguments)}function Jp(){var t,e=this;if(Wp)try{var n=Array.prototype.slice.apply(arguments);return je.Zone.root.run(fg[e],je,n)}catch(s){vs("Failed to execute %s inside of zone (via Zone.js). Falling back to execution inside currently active zone.",e,s)}return(t=fg[e])===null||t===void 0?void 0:t.apply(je,arguments)}Wp&&Ke("Discovered Zone.js globals. Will attempt to register all timers inside the root Zone.");Xn&&Xn.getEntriesByType;var Kw=Xn&&typeof je.PerformanceObserver=="function"&&typeof Xn.now=="function",ga=Object.freeze({CONNECT_END:"connectEnd",CONNECT_START:"connectStart",DECODED_BODY_SIZE:"decodedBodySize",DOM_COMPLETE:"domComplete",DOM_CONTENT_LOADED_EVENT_END:"domContentLoadedEventEnd",DOM_CONTENT_LOADED_EVENT_START:"domContentLoadedEventStart",DOM_INTERACTIVE:"domInteractive",DOMAIN_LOOKUP_END:"domainLookupEnd",DOMAIN_LOOKUP_START:"domainLookupStart",ENCODED_BODY_SIZE:"encodedBodySize",FETCH_START:"fetchStart",LOAD_EVENT_END:"loadEventEnd",LOAD_EVENT_START:"loadEventStart",NAVIGATION_START:"navigationStart",REDIRECT_END:"redirectEnd",REDIRECT_START:"redirectStart",REQUEST_START:"requestStart",RESPONSE_END:"responseEnd",RESPONSE_START:"responseStart",SECURE_CONNECTION_START:"secureConnectionStart",START_TIME:"startTime",UNLOAD_EVENT_END:"unloadEventEnd",UNLOAD_EVENT_START:"unloadEventStart"}),hg=new WeakSet;function Kb(t){if(!Kw)return function(f){var h=0;return{start:function(){h=ao()},end:function(){return f({duration:ao()-h})},cancel:qp}}(t.onEnd);var e,n,s,l,a,i=[];return{start:function(){e=Xn.now();try{var f,h=je?.PerformanceObserver;h&&((f=s=new h(c))===null||f===void 0||f.observe({type:"resource"}))}catch{}a=Ro(d,6e5)},end:function(f){if(!n){if(n=f??Xn.now(),m(),!pg())return r();Ro(function(){return r()},Math.min(300,t.maxWaitForResourceMillis)),$o(kt,"visibilitychange",u),l=Ro(r,t.maxWaitForResourceMillis)}},cancel:d};function r(){d();var f=function(){if(i.length){var h,g,y=i.filter(function(x){return x.responseEnd<=n+t.maxToleranceForResourceTimingsMillis&&!hg.has(x)});if(y.length){if(y.length===1&&(h=y[0]),!h){var b,p=wn(y);try{for(p.s();!(b=p.n()).done;){var v=b.value,_=Math.abs(n-e-v.duration)+Math.abs(v.responseEnd-n);(g===void 0||_<g)&&(g=_,h=v)}}catch(x){p.e(x)}finally{p.f()}}if(h)return hg.add(h),h}}}();f!=null&&f.duration&&f.duration<864e5?t.onEnd({resource:f,duration:f.duration}):t.onEnd({resource:f,duration:n-e})}function c(f){f.getEntriesByType("resource").filter(function(h){var g=h;return g.startTime>=e&&t.resourceMatcher(g)}).forEach(function(h){i.length>=100&&i.shift(),i.push(h)})}function u(){pg()||r()}function d(){(function(){if(s){try{var f;(f=s)===null||f===void 0||f.disconnect()}catch{}s=void 0}})(),l&&(clearTimeout(l),l=void 0),m(),function(){kt&&wr(kt,"visibilitychange",u)}()}function m(){a&&(clearTimeout(a),a=void 0)}}function pg(){return kt?.visibilityState==="visible"||kt?.visibilityState==="prerender"}function Qb(t){var e=t.maxCallsPerTenMinutes||128,n=t.maxCallsPerTenSeconds||32,s=0,l=0;return mg(function(){s=0},6e5),mg(function(){l=0},1e4),function(){return++s>e||++l>n}}var Fc="undefined";function l0(t){return Math.round(100*t)/100}function jm(t){var e;return typeof t!="string"?t:new URL(t,(e=kt?.baseURI)!==null&&e!==void 0?e:rr?.href)}function Qw(t){try{return jm(t).origin===(typeof location<"u"?location.origin:void 0)}catch{return!1}}var Zw=/['"<>{};\x00-\x1F\x7F]/,Zb=Symbol.for("INSTRUMENTED_BY_DASH0");function vg(t){t[Zb]=!0}function cr(t,e,n){var s=t[e];if(s)if(s[Zb]!==!0)try{var l=n(s);vg(s),l&&vg(l),t[e]=l}catch(a){vs("failed to instrument ".concat(String(e),", the page may have locked the property"),a)}else Ke("".concat(String(e)," has already been instrumented, skipping"));else Ke("".concat(String(e)," is not defined, unable to instrument"))}for(var Wb=new Uint32Array(256),md=0;md<256;md++){for(var uc=md,gg=0;gg<8;gg++)uc=1&uc?3988292384^uc>>>1:uc>>>1;Wb[md]=uc>>>0}function Jb(t){for(var e=new Uint8Array(t.length/2),n=0;n<t.length;n+=2)e[n/2]=parseInt(t.substring(n,n+2),16);for(var s=4294967295,l=0;l<e.length;l++){var a=e[l];s=s>>>8^Wb[255&(s^a)]}return(4294967295^s)>>>0}function ex(t,e){return!(e<=0)&&(e>=100||Jb(t)%100<e)}var Me={endpoints:[],resource:{attributes:[]},scope:{name:"dash0-web-sdk",version:"0.27.0",attributes:[]},signalAttributes:[],ignoreUrls:[],ignoreErrorMessages:[],wrapEventHandlers:!0,wrapTimers:!0,propagateTraceHeadersCorsURLs:[],maxWaitForResourceTimingsMillis:1e4,maxToleranceForResourceTimingsMillis:50,headersToCapture:[],urlAttributeScrubber:Pb,pageViewInstrumentation:{trackVirtualPageViews:!0,includeParts:[]},sessionRecording:{samplingRate:100,maskAllInputs:!0,maskTextClass:"dash0-mask",blockClass:"dash0-block",recordCanvas:!1,collectFonts:!1,chunkMaxBytes:48e3,chunkMaxMillis:5e3,checkoutEveryNms:3e5},frustrationSignals:{rageClick:{minClicks:3,windowMillis:1e3,radiusPixels:30}},enableTransportCompression:!1,isSessionSampled:!0},Ww="service.name",Jw="service.namespace",ej="service.version",tj="deployment.environment.name",nj="deployment.name",sj="deployment.id",Mi="event.name",a0="dash0.web.event.id",lj="page.load.id",aj="user_agent.original",tx="dash0.session_recording.id",_g="user.id",oj="user.name",ij="user.full_name",rj="user.email",cj="user.hash",uj="user.roles",o0="exception.message",i0="exception.type",nx="exception.stacktrace",ev="error.type",yg="url.full",sx="http.request.method",lx="http.request.method_original",ax="http.response.status_code",Ai={PAGE_VIEW:"browser.page_view",NAVIGATION_TIMING:"browser.navigation_timing",WEB_VITAL:"browser.web_vital",ERROR:"browser.error",SESSION_RECORDING:"browser.session_recording",RAGE_CLICK:"browser.rage_click"},Li={UNSPECIFIED:0,TRACE:1,DEBUG:5,INFO:9,WARN:13,ERROR:17,FATAL:21},dj=0,ox=1,fj="pushState",mj="replaceState",hj=1;function bg(){var t,e;return"".concat((t={ephemeralSession:!Kd},e=0,t.ephemeralSession&&(e|=hj),e.toString(16).padStart(2,"0"))).concat(Bo(7))}var xg="d0_session",_1="#",Sg=864e5,ia=null;function pj(t,e){if(!Kd)return Ke("Storage API is not available and session tracking is therefore not supported."),void(ia=bg());t||(t=108e5),e||(e=216e5),t=Math.min(t,Sg),e=Math.min(e,Sg);try{var n=function(l){return Kd&&oi?oi.getItem(l):null}(xg),s=function(l){if(!l)return null;var a=l.split(_1);if(a.length<3)return null;var i=a[0],r=parseInt(a[1],10),c=parseInt(a[2],10);return!i||isNaN(r)||isNaN(c)?null:{id:i,startTime:r,lastActivityTime:c}}(n);s&&!function(l,a,i){var r=ao()-a;if(l.lastActivityTime<r)return!1;var c=ao()-i;return l.startTime>=c}(s,t,e)&&(s=null),s?s.lastActivityTime=ao():s={id:bg(),startTime:ao(),lastActivityTime:ao()},function(l,a){Kd&&oi&&oi.setItem(l,a)}(xg,function(l){return l.id+_1+l.startTime+_1+l.lastActivityTime}(s)),ia=s.id}catch(l){vs("Failed to record session information",l)}}var ix=-1,mu=function(t){addEventListener("pageshow",function(e){e.persisted&&(ix=e.timeStamp,t(e))},!0)},vo=function(t,e,n,s){var l,a;return function(i){e.value>=0&&(i||s)&&((a=e.value-(l??0))||l===void 0)&&(l=e.value,e.delta=a,e.rating=function(r,c){return r>c[1]?"poor":r>c[0]?"needs-improvement":"good"}(e.value,n),t(e))}},r0=function(t){requestAnimationFrame(function(){return requestAnimationFrame(function(){return t()})})},rx=function(){var t=performance.getEntriesByType("navigation")[0];if(t&&t.responseStart>0&&t.responseStart<performance.now())return t},Nm=function(){var t,e=rx();return(t=e?.activationStart)!==null&&t!==void 0?t:0},go=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1,n=rx(),s="navigate";return ix>=0?s="back-forward-cache":n&&(document.prerendering||Nm()>0?s="prerender":document.wasDiscarded?s="restore":n.type&&(s=n.type.replace(/_/g,"-"))),{name:t,value:e,rating:"good",delta:0,entries:[],id:"v5-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:s}},y1=new WeakMap;function tv(t,e){return y1.get(t)||y1.set(t,new e),y1.get(t)}var c0,vj=function(){return Kp(function t(){Xp(this,t),hs(this,"t",void 0),hs(this,"i",0),hs(this,"o",[])},[{key:"h",value:function(t){var e;if(!t.hadRecentInput){var n=this.o[0],s=this.o.at(-1);this.i&&n&&s&&t.startTime-s.startTime<1e3&&t.startTime-n.startTime<5e3?(this.i+=t.value,this.o.push(t)):(this.i=t.value,this.o=[t]),(e=this.t)===null||e===void 0||e.call(this,t)}}}])}(),hu=function(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};try{if(PerformanceObserver.supportedEntryTypes.includes(t)){var s=new PerformanceObserver(function(l){Promise.resolve().then(function(){e(l.getEntries())})});return s.observe(Qd({type:t,buffered:!0},n)),s}}catch{}},nv=function(t){var e=!1;return function(){e||(t(),e=!0)}},ur=-1,kg=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},Bf=function(t){document.visibilityState==="hidden"&&ur>-1&&(ur=t.type==="visibilitychange"?t.timeStamp:0,gj())},wg=function(){addEventListener("visibilitychange",Bf,!0),addEventListener("prerenderingchange",Bf,!0)},gj=function(){removeEventListener("visibilitychange",Bf,!0),removeEventListener("prerenderingchange",Bf,!0)},cx=function(){if(ur<0){var t,e=Nm(),n=document.prerendering||(t=globalThis.performance.getEntriesByType("visibility-state").filter(function(s){return s.name==="hidden"&&s.startTime>e})[0])===null||t===void 0?void 0:t.startTime;ur=n??kg(),wg(),mu(function(){setTimeout(function(){ur=kg(),wg()})})}return{get firstHiddenTime(){return ur}}},sv=function(t){document.prerendering?addEventListener("prerenderingchange",function(){return t()},!0):t()},jg=[1800,3e3],Ng=[.1,.25],_j=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(function(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};sv(function(){var l,a=cx(),i=go("FCP"),r=hu("paint",function(c){var u,d=wn(c);try{for(d.s();!(u=d.n()).done;){var m=u.value;m.name==="first-contentful-paint"&&(r.disconnect(),m.startTime<a.firstHiddenTime&&(i.value=Math.max(m.startTime-Nm(),0),i.entries.push(m),l(!0)))}}catch(f){d.e(f)}finally{d.f()}});r&&(l=vo(n,i,jg,s.reportAllChanges),mu(function(c){i=go("FCP"),l=vo(n,i,jg,s.reportAllChanges),r0(function(){i.value=performance.now()-c.timeStamp,l(!0)})}))})})(nv(function(){var n,s=go("CLS",0),l=tv(e,vj),a=function(r){var c,u=wn(r);try{for(u.s();!(c=u.n()).done;){var d=c.value;l.h(d)}}catch(m){u.e(m)}finally{u.f()}l.i>s.value&&(s.value=l.i,s.entries=l.o,n())},i=hu("layout-shift",a);i&&(n=vo(t,s,Ng,e.reportAllChanges),document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&(a(i.takeRecords()),n(!0))}),mu(function(){l.i=0,s=go("CLS",0),n=vo(t,s,Ng,e.reportAllChanges),r0(function(){return n()})}),setTimeout(n))}))},ux=0,b1=1/0,hd=0,yj=function(t){var e,n=wn(t);try{for(n.s();!(e=n.n()).done;){var s=e.value;s.interactionId&&(b1=Math.min(b1,s.interactionId),hd=Math.max(hd,s.interactionId),ux=hd?(hd-b1)/7+1:0)}}catch(l){n.e(l)}finally{n.f()}},Tg=function(){var t;return c0?ux:(t=performance.interactionCount)!==null&&t!==void 0?t:0},Eg=0,bj=function(){return Kp(function t(){Xp(this,t),hs(this,"u",[]),hs(this,"l",new Map),hs(this,"m",void 0),hs(this,"v",void 0)},[{key:"p",value:function(){Eg=Tg(),this.u.length=0,this.l.clear()}},{key:"P",value:function(){var t=Math.min(this.u.length-1,Math.floor((Tg()-Eg)/50));return this.u[t]}},{key:"h",value:function(t){var e;if((e=this.m)!==null&&e!==void 0&&e.call(this,t),t.interactionId||t.entryType==="first-input"){var n=this.u.at(-1),s=this.l.get(t.interactionId);if(s||this.u.length<10||t.duration>n.T){var l;if(s?t.duration>s.T?(s.entries=[t],s.T=t.duration):t.duration===s.T&&t.startTime===s.entries[0].startTime&&s.entries.push(t):(s={id:t.interactionId,entries:[t],T:t.duration},this.l.set(s.id,s),this.u.push(s)),this.u.sort(function(c,u){return u.T-c.T}),this.u.length>10){var a,i=wn(this.u.splice(10));try{for(i.s();!(a=i.n()).done;){var r=a.value;this.l.delete(r.id)}}catch(c){i.e(c)}finally{i.f()}}(l=this.v)===null||l===void 0||l.call(this,s)}}}}])}(),dx=function(t){var e=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?t():(t=nv(t),document.addEventListener("visibilitychange",t,{once:!0}),e(function(){t(),document.removeEventListener("visibilitychange",t)}))},$g=[200,500],xj=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&sv(function(){var n;"interactionCount"in performance||c0||(c0=hu("event",yj,{type:"event",buffered:!0,durationThreshold:0}));var s,l=go("INP"),a=tv(e,bj),i=function(c){dx(function(){var u,d=wn(c);try{for(d.s();!(u=d.n()).done;){var m=u.value;a.h(m)}}catch(h){d.e(h)}finally{d.f()}var f=a.P();f&&f.T!==l.value&&(l.value=f.T,l.entries=f.entries,s())})},r=hu("event",i,{durationThreshold:(n=e.durationThreshold)!==null&&n!==void 0?n:40});s=vo(t,l,$g,e.reportAllChanges),r&&(r.observe({type:"first-input",buffered:!0}),document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&(i(r.takeRecords()),s(!0))}),mu(function(){a.p(),l=go("INP"),s=vo(t,l,$g,e.reportAllChanges)}))})},Sj=function(){return Kp(function t(){Xp(this,t),hs(this,"m",void 0)},[{key:"h",value:function(t){var e;(e=this.m)===null||e===void 0||e.call(this,t)}}])}(),Rg=[2500,4e3],x1=!1;function lv(t){x1&&t(),kt&&je&&($o(kt,"visibilitychange",function(){kt.visibilityState!=="visible"&&t()}),$o(je,"pagehide",function(){x1=!0,t()}),$o(je,"beforeunload",function(){x1=!0,t()}))}function fx(t){var e,n=[];return lv(s),{send:function(l){kt?.visibilityState==="visible"?(n.push(l),n.length>=15?s():e==null&&(e=Ro(s,1e3))):t([l])}};function s(){e!=null&&(clearTimeout(e),e=null),n.length>0&&(t(n.slice()),n.length=0)}}var S1=0,k1=0;function mx(t,e,n){return u0.apply(this,arguments)}function u0(){return u0=du(Al().mark(function t(e,n,s){var l,a,i,r;return Al().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(Ke("Transmitting telemetry to endpoints",n),l=JSON.stringify(n),a=l,i=new Blob([l]).size,r=!1,typeof CompressionStream>"u"||!(Me.enableTransportCompression||s!=null&&s.compress)){c.next=11;break}return c.next=8,kj(l);case 8:a=c.sent,i=a.byteLength,r=!0;case 11:return c.next=13,Promise.all(Me.endpoints.map(function(){var u=du(Al().mark(function d(m){var f,h,g;return Al().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(y.prev=0,(f=new URL(m.url)).pathname=f.pathname+(f.pathname.endsWith("/")?e.substring(1):e),h={"Content-Type":"application/json",Authorization:"Bearer ".concat(m.authToken)},m.dataset&&(h["Dash0-Dataset"]=m.dataset),r&&(h["Content-Encoding"]="gzip"),n0){y.next=9;break}return vs("Unable to send telemetry, fetch is not defined"),y.abrupt("return");case 9:return S1+=i,k1++,y.next=13,n0(f,{method:"POST",headers:h,body:a,keepalive:S1<=6e4&&k1<=15});case 13:(g=y.sent).text().catch(qp),g.ok||vs("Failed to send telemetry to ".concat(f,": ").concat(g.status," ").concat(g.statusText)),y.next=21;break;case 18:y.prev=18,y.t0=y.catch(0),vs("Error sending telemetry to ".concat(m.url).concat(e,":"),y.t0);case 21:return y.prev=21,S1-=i,k1--,y.finish(21);case 25:case"end":return y.stop()}},d,null,[[0,18,21,25]])}));return function(d){return u.apply(this,arguments)}}()));case 13:case"end":return c.stop()}},t)})),u0.apply(this,arguments)}function kj(t){return d0.apply(this,arguments)}function d0(){return d0=du(Al().mark(function t(e){var n,s,l;return Al().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return n=new Blob([e]),s=n.stream(),l=s.pipeThrough(new CompressionStream("gzip")),a.abrupt("return",new Response(l).arrayBuffer());case 4:case"end":return a.stop()}},t)})),d0.apply(this,arguments)}var wj=fx(vx),jj=fx(function(t){mx("/v1/traces",{resourceSpans:[{resource:Me.resource,scopeSpans:[{scope:Me.scope,spans:t}]}]}).catch(function(e){Yp("Failed to transmit spans",e)})});function hx(t){var e;return function(){return e||(e=Qb(t)),e()}}var px=hx({maxCallsPerTenMinutes:4096,maxCallsPerTenSeconds:128}),Nj=hx({maxCallsPerTenMinutes:512,maxCallsPerTenSeconds:64});function nc(t){Me.isSessionSampled&&(px()?Ke("Transport rate limit. Will not send item.",t):wj.send(t))}function vx(t,e){mx("/v1/logs",{resourceLogs:[{resource:Me.resource,scopeLogs:[{scope:Me.scope,logRecords:t}]}]},e).catch(function(n){Yp("Failed to transmit logs",n)})}function pu(t){t&&Me.isSessionSampled&&(px()?Ke("Transport rate limit. Will not send item.",t):jj.send(t))}var Tj=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"];function av(t){if(t!=null){var e={};return Array.isArray(t)?e.arrayValue={values:t.map(function(n){return av(n)})}:typeof t=="string"?e.stringValue=t:typeof t=="number"?e.doubleValue=t:typeof t=="boolean"?e.boolValue=t:function(n){if(n==null||Dl(n)!=="object")return!1;var s=Object.keys(n);return s.length===1&&Tj.includes(s[0])}(t)?e=t:Dl(t)==="object"&&(e.kvlistValue={values:Object.entries(t).map(function(n){var s=yl(n,2);return gx(s[0],s[1])})}),e}}function gx(t,e){return{key:t,value:av(e)}}function $e(t,e,n){e&&t.push(gx(e,n))}function ov(t,e){e&&Object.entries(e).forEach(function(n){var s=yl(n,2),l=s[0],a=s[1];return $e(t,l,a)})}function Ui(t,e){var n=t.findIndex(function(s){return s.key===e});n!==-1&&t.splice(n,1)}var Cg="traceparent",Mg=/^00-([a-f0-9]{32})-([a-f0-9]{16})-[0-9]{1,2}$/;function _x(){var t,e,n=(((t=Array.from((e=kt?.getElementsByTagName("meta"))!==null&&e!==void 0?e:[]).find(function(s){var l;return((l=s.getAttribute("name"))===null||l===void 0?void 0:l.toLowerCase())===Cg}))===null||t===void 0?void 0:t.content.trim())||"").match(Mg)||function(){var s=Xn.getEntriesByType("navigation")[0];return!s||!s.serverTiming?"":function(l){var a,i=wn(l);try{for(i.s();!(a=i.n()).done;){var r=a.value;if(r.name===Cg)return r.description.trim()}}catch(c){i.e(c)}finally{i.f()}return""}(s.serverTiming)}().match(Mg);if(n)return{traceId:n[1],spanId:n[2]}}function Ej(t,e,n){t.call(e,"traceparent","00-".concat(n.traceId,"-").concat(n.spanId,"-01"))}function $j(t,e,n){var s,l,a,i=(s=n.traceId,l=s.substring(0,8),a=s.substring(8,32),"1-".concat(l,"-").concat(a)),r="Root=".concat(i,";Parent=").concat(n.spanId,";Sampled=1");t.call(e,"X-Amzn-Trace-Id",r)}var Ag="d042",Rj=1;function Lg(t){var e=0;return t.withoutSession&&(e|=Rj),e.toString(16).padStart(2,"0")}function yx(t){return t?"".concat(Ag).concat(Lg({withoutSession:!1})).concat(t).concat(Bo(5)):"".concat(Ag).concat(Lg({withoutSession:!0})).concat(Bo(13))}function bx(t){var e=Jb(t).toString(16).padStart(8,"0");return"".concat(e).concat(Bo(4))}function xx(t){var e=yx(ia),n=bx(e),s=[];return $e(s,a0,n),{traceId:e,spanId:n,name:t,kind:3,startTimeUnixNano:Go(),attributes:s,events:[],links:[],status:{code:0}}}function vu(t,e,n){var s=t;if(!s.endTimeUnixNano)return e&&(s.status=e),s.endTimeUnixNano=n!=null?String(Math.round(parseInt(s.startTimeUnixNano)+n)):Go(),s;Ke("Attempting to end already ended span. Dropping...",s)}function Sx(t,e,n,s){var l=void 0,a=void 0;typeof n=="string"?l=n:Array.isArray(n)&&(a=n),t.events.push({name:e,timeUnixNano:l??Go(),attributes:a??[]})}function kx(t,e,n){t.status={code:e,message:n}}function wx(t,e){var n=[];typeof e=="string"?$e(n,o0,e):e&&(e.code?$e(n,i0,e.code.toString()):e.name&&$e(n,i0,e.name),e.message&&$e(n,o0,e.message),e.stack&&$e(n,nx,e.stack),Sx(t,"exception",n))}function iv(t,e,n){var s=function(i){return i?Array.isArray(i)?function(r){return[].concat(Yb(i),[r]).join(".")}:function(r){return"".concat(i,".").concat(r)}:function(r){return r}}(n);try{var l=jm(e);l.username&&(l.username="REDACTED"),l.password&&(l.password="REDACTED");var a=Me.urlAttributeScrubber(hs(hs(hs(hs(hs(hs({},yg,l.href),"url.path",l.pathname),"url.domain",l.hostname),"url.scheme",l.protocol.replace(":","")),"url.fragment",l.hash?l.hash.replace("#",""):void 0),"url.query",l.search?l.search.replace("?",""):void 0));Object.entries(a).forEach(function(i){var r=yl(i,2),c=r[0],u=r[1];u!==void 0&&$e(t,s(c),u)})}catch{Me.urlAttributeScrubber===Pb&&$e(t,s(yg),String(e))}}var w1=ii!=null&&typeof ii.getItem=="function"&&typeof ii.setItem=="function",Og="d0_tab",Pc=null;function Cj(){if(w1)try{var t=function(e){return w1&&ii?ii.getItem(e):null}(Og);if(t)return void(Pc=t);Pc=Bo(8),function(e,n){w1&&ii&&ii.setItem(e,n)}(Og,Pc)}catch(e){vs("Failed to record tab ID information",e)}else Ke("Storage API is not available and tab tracking is therefore not supported.")}function Ha(t,e){var n,s,l,a,i;t.find(function(u){return u.key===a0})===void 0&&$e(t,a0,Bo(8));for(var r=0;r<Me.signalAttributes.length;r++)t.push(Me.signalAttributes[r]);iv(t,(n=(s=e?.url)!==null&&s!==void 0?s:je?.location.href)!==null&&n!==void 0?n:Fc,"page"),ia&&$e(t,"session.id",ia),Pc&&$e(t,"browser.tab.id",Pc),$e(t,"browser.window.width",(l=je?.innerWidth)!==null&&l!==void 0?l:Fc),$e(t,"browser.window.height",(a=je?.innerHeight)!==null&&a!==void 0?a:Fc);var c=zf==null||(i=zf.connection)===null||i===void 0?void 0:i.effectiveType;c&&$e(t,"network.connection.subtype",c)}function Mj(){(function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};sv(function(){var n,s=cx(),l=go("LCP"),a=tv(e,Sj),i=function(m){e.reportAllChanges||(m=m.slice(-1));var f,h=wn(m);try{for(h.s();!(f=h.n()).done;){var g=f.value;a.h(g),g.startTime<s.firstHiddenTime&&(l.value=Math.max(g.startTime-Nm(),0),l.entries=[g],n())}}catch(y){h.e(y)}finally{h.f()}},r=hu("largest-contentful-paint",i);if(r){n=vo(t,l,Rg,e.reportAllChanges);for(var c=nv(function(){i(r.takeRecords()),r.disconnect(),n(!0)}),u=0,d=["keydown","click","visibilitychange"];u<d.length;u++)addEventListener(d[u],function(){return dx(c)},{capture:!0,once:!0});mu(function(m){l=go("LCP"),n=vo(t,l,Rg,e.reportAllChanges),r0(function(){l.value=performance.now()-m.timeStamp,n(!0)})})}})})(j1,{reportAllChanges:!0}),xj(j1,{reportAllChanges:!0}),_j(j1,{reportAllChanges:!0})}function j1(t){var e=[];$e(e,Mi,Ai.WEB_VITAL);var n=[];$e(n,"name",t.name),$e(n,"value",l0(t.value)),$e(n,"delta",l0(t.delta));var s={timeUnixNano:Go(),attributes:e,severityNumber:Li.INFO,severityText:"INFO",body:{kvlistValue:{values:n}}};Ha(s.attributes),nc(s)}function rv(t,e){for(var n=0,s=t.length;n<s;n++)if(t[n].test(e))return!0;return!1}var Aj="data:";function cv(t){return!t||!(t=String(t))||t.substring==null||t.substring(0,5).toLowerCase()===Aj||!!function(e){for(var n=e.toLowerCase(),s=0,l=Me.endpoints.length;s<l;s++){var a=Me.endpoints[s];if(n.startsWith(a.url))return!0}return!1}(t)||rv(Me.ignoreUrls,t)}var qc,jx=0,Zd=0,ri={},f0=!1;function Nx(){f0=!0}function Wd(t,e){t&&Tx(typeof t=="string"?{message:t,opts:e}:{message:t.message,type:t.name,stack:t.stack,opts:e})}function Tx(t){var e=t.message,n=t.type,s=t.stack,l=t.opts;if(e&&!(jx>100)&&!function(c){return!c||rv(Me.ignoreErrorMessages,c)}(e)){Zd>=20&&(ri={},Zd=0);var a=(e=String(e).substring(0,300))+(s=function(c){return String(c||"").split(`
|
|
71
|
+
`).slice(0,30).join(`
|
|
72
|
+
`)}(s))+je?.location.href,i=ri[a];if(i)i.seenCount++;else{var r=[];Ha(r),$e(r,Mi,Ai.ERROR),$e(r,o0,e),n&&$e(r,i0,n),s&&$e(r,nx,s),l!=null&&l.componentStack&&$e(r,"exception.component_stack",l?.componentStack.substring(0,2048)),ov(r,l?.attributes),i={seenCount:1,transmittedCount:0,log:{timeUnixNano:Go(),attributes:r,severityNumber:Li.ERROR,severityText:"ERROR",body:{stringValue:e}}},ri[a]=i,Zd++}(function(){qc||(qc=setTimeout(Lj,1e3))})()}}function Lj(){for(var t in qc&&(clearTimeout(qc),qc=null),ri)if(Xw(ri,t)){var e=ri[t];e.seenCount>e.transmittedCount&&(nc(e.log),jx++)}ri={},Zd=0}var N1="Unhandled promise rejection: ",T1="<unavailable because Promise wasn't rejected with an Error object>";function Oj(t){t.reason==null?Wd({message:N1+"<no reason defined>",stack:T1}):typeof t.reason.message=="string"?Wd({message:N1+t.reason.message,stack:typeof t.reason.stack=="string"?t.reason.stack:T1}):Dl(t.reason)!=="object"&&Wd({message:N1+t.reason,stack:T1})}var If="__dash0OriginalFunctions";function Ex(t,e){for(var n=t[If],s=0;s<n.length;s++)if(Dj(n[s].valuesForEqualityCheck,e))return s;return-1}function Dj(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function zj(t,e,n,s,l){return function(a,i,r){if(!a)return i;var c=a[If]=a[If]||[],u=Ex(a,r);return u!==-1?c[u].wrappedFunction:(c.push({wrappedFunction:i,valuesForEqualityCheck:r}),i)}(t,e,$x(n,s,l))}function $x(t,e,n){return[t,e,Bj(n)]}function Bj(t){return t!=null&&(Dl(t)==="object"?!!t.capture:!!t)}function Ij(t,e,n,s,l){return function(a,i,r){var c=a?.[If];if(c==null)return r;var u=Ex(a,i);if(u===-1)return r;var d=c[u];return c.splice(u,1),d.wrappedFunction}(t,$x(e,n,s),l)}function Uj(){Me.wrapEventHandlers&&function(t){if(!(!t||typeof t.prototype.addEventListener!="function"||typeof t.prototype.removeEventListener!="function")){var e=t.prototype.addEventListener,n=t.prototype.removeEventListener;t.prototype.addEventListener=function(s,l,a){if(typeof l!="function")return e.apply(this,arguments);for(var i=new Array(arguments.length),r=0;r<arguments.length;r++)i[r]=arguments[r];return i[1]=function(){try{return l.apply(this,arguments)}catch(c){throw Wd(c),Nx(),c}},i[1]=zj(this,i[1],s,l,a),e.apply(this,i)},t.prototype.removeEventListener=function(s,l,a){if(typeof l!="function")return n.apply(this,arguments);for(var i=new Array(arguments.length),r=0;r<arguments.length;r++)i[r]=arguments[r];return i[1]=Ij(this,s,l,a,l),n.apply(this,i)}}}(je?.EventTarget)}function Dg(t){var e=je?.[t];typeof e=="function"&&(je[t]=function(n){for(var s=new Array(arguments.length),l=0;l<arguments.length;l++)s[l]=arguments[l];return s[0]=function(a){return typeof a!="function"?a:function(){try{return a.apply(this,arguments)}catch(i){throw reportError(i),Nx(),i}}}(n),e.apply(this,s)})}function Hj(){(function(){if(je){var t=je.onerror;je.onerror=function(e,n,s,l,a){if(f0)return f0=!1,typeof t=="function"?t.apply(this,arguments):void 0;var i=a&&a.stack;return i||(i="at "+n+" "+s,l!=null&&(i+=":"+l)),Tx({message:String(e),stack:i}),typeof t=="function"?t.apply(this,arguments):void 0}}})(),typeof je?.addEventListener=="function"&&je.addEventListener("unhandledrejection",Oj),Uj(),function(){if(Me.wrapTimers){if(Wp)return void vs("We discovered a usage of Zone.js. In order to avoid any incompatibility issues timer wrapping is not going to be enabled.");Dg("setTimeout"),Dg("setInterval")}}()}function Rx(t){return"".concat("http.request.header",".").concat(t.toLowerCase())}function Cx(t){return"".concat("http.response.header",".").concat(t.toLowerCase())}var Vj=["GET","HEAD","POST","PUT","DELETE","CONNECT","OPTIONS","TRACE","PATCH"],Mx="_OTHER";function Uf(t){return Vj.includes(t)}function Ax(t,e){var n=e.startTime!==0;_a(t,ga.FETCH_START,e,n),_a(t,ga.DOMAIN_LOOKUP_START,e,n),_a(t,ga.DOMAIN_LOOKUP_END,e,n),_a(t,ga.CONNECT_START,e,n),_a(t,ga.SECURE_CONNECTION_START,e,n),_a(t,ga.CONNECT_END,e,n),_a(t,ga.REQUEST_START,e,n),_a(t,ga.RESPONSE_START,e,n),_a(t,ga.RESPONSE_END,e,n)}function _a(t,e,n){var s,l=!(arguments.length>3&&arguments[3]!==void 0)||arguments[3];!(e in n)||typeof n[e]!="number"||l&&n[e]===0||Sx(t,e,(s=n[e],String(Math.round(1e6*(s+Zp())))))}function Lx(t,e){var n=e.encodedBodySize;n!=null&&$e(t.attributes,"http.response.body.size",n)}function m0(t,e){var n;wx(t,e);var s=Dl(e)==="object"&&e?(n=e.name)!==null&&n!==void 0?n:e.code!=null?String(e.code):"error":"error";$e(t.attributes,ev,s),pu(vu(t,function(l){return{code:2,message:l&&Dl(l)==="object"&&"message"in l?l.message:String(l)}}(e),void 0))}function Hf(t){$e(t.attributes,"dash0.web.request.cancelled",!0),pu(vu(t,void 0,void 0))}function Ox(t){var e=[];if(Qw(t)){if(e.push("traceparent"),Me.propagators){var n,s=wn(Me.propagators);try{for(s.s();!(n=s.n()).done;){var l=n.value;l.type==="traceparent"||e.includes(l.type)||e.push(l.type)}}catch(c){s.e(c)}finally{s.f()}}return e}if(Me.propagators){var a,i=wn(Me.propagators);try{for(i.s();!(a=i.n()).done;){var r=a.value;rv(r.match,t)&&(e.includes(r.type)||e.push(r.type))}}catch(c){i.e(c)}finally{i.f()}return e}return[]}function Jd(t,e,n,s){var l,a=wn(s);try{for(a.s();!(l=a.n()).done;)l.value==="xray"?$j(t,e,n):Ej(t,e,n)}catch(i){a.e(i)}finally{a.f()}}function Gj(t){return function(){var e=du(Al().mark(function n(s,l){var a,i,r,c,u,d,m,f,h,g,y;return Al().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(a=s,b.prev=1,c=l&&Object.assign({},l),u=null,c!=null&&c.body&&(u=c.body,c.body=void 0),i=new Request(s,c),u&&c&&(c.body=u),a=s instanceof Request?i:s,!cv(i.url)){b.next=11;break}return Ke("Not creating span for fetch call because the url is ignored, URL: ".concat(i.url)),b.abrupt("return",t(a,l));case 11:r=Fj(s,l,i,c),b.next=18;break;case 14:return b.prev=14,b.t0=b.catch(1),Ke("failed to instrument fetch call",b.t0),b.abrupt("return",t(a,l));case 18:return m=(d=r).copyOfInit,f=d.span,h=d.performanceObserver,b.prev=19,b.next=22,t(a,m);case 22:return g=b.sent,Pj(f,g),b.abrupt("return",qj(g,Me.maxToleranceForResourceTimingsMillis,function(){return h.end()},function(p){var v;h.cancel(),(v=i)!==null&&v!==void 0&&(v=v.signal)!==null&&v!==void 0&&v.aborted?Hf(f):m0(f,p)}));case 27:throw b.prev=27,b.t1=b.catch(19),h.cancel(),(y=i)!==null&&y!==void 0&&(y=y.signal)!==null&&y!==void 0&&y.aborted?Hf(f):m0(f,b.t1),b.t1;case 32:case"end":return b.stop()}},n,null,[[1,14],[19,27]])}));return function(n,s){return e.apply(this,arguments)}}()}function Fj(t,e,n,s){var l,a=n.url,i=(l=n.method)!==null&&l!==void 0?l:"GET",r=Uf(i),c=Uf(i.toUpperCase())?i.toUpperCase():Mx,u=xx("HTTP ".concat(c));Ha(u.attributes),iv(u.attributes,a),function(h,g){try{return}catch(y){Ke("failed to analyze request for GraphQL insights",y,h,g)}}(t,e),$e(u.attributes,sx,c),r||$e(u.attributes,lx,i);var d,m=Ox(a);m.length>0&&((d=s)!==null&&d!==void 0&&d.headers?(s.headers=new Headers(s.headers),Jd(s.headers.append,s.headers,u,m)):t instanceof Request?Jd(n.headers.append,n.headers,u,m):(s||(s={}),s.headers=new Headers,Jd(s.headers.append,s.headers,u,m))),Dx(n.headers,u,function(h){return Rx(h)});var f=Kb({resourceMatcher:function(h){var g=h.initiatorType,y=h.name;return(g==="fetch"||g==="xmlhttprequest")&&y===jm(a).href},maxWaitForResourceMillis:Me.maxWaitForResourceTimingsMillis,maxToleranceForResourceTimingsMillis:Me.maxToleranceForResourceTimingsMillis,onEnd:function(h){var g=h.duration,y=h.resource;y&&(Ax(u,y),Lx(u,y)),pu(vu(u,void 0,1e6*g))}});return f.start(),{copyOfInit:s,span:u,performanceObserver:f}}function Dx(t,e,n){try{if(!Me.headersToCapture.length)return;t.forEach(function(s,l){Me.headersToCapture.some(function(a){return a.test(l)})&&$e(e.attributes,n(l),s)})}catch(s){Ke("unable to capture http headers",s)}}function Pj(t,e){var n=e.status;kx(t,n>=200&&n<400?0:2),n===0&&$e(t.attributes,ev,e.type),$e(t.attributes,ax,String(n)),Dx(e.headers,t,function(s){return Cx(s)})}function qj(t,e,n,s){var l,a,i=Xn.now(),r=t.body;if(!(r&&(l=t,a=l.status,a>=200&&a!=204&&a!=205&&a!=304)))return n(),t;var c=!1,u=function(g){c||(n(g),c=!0)},d=function(g){c||(s(g),c=!0)},m=Ro(function(){return u(i)},e),f=r.getReader(),h=new ReadableStream({pull:function(g){return du(Al().mark(function y(){var b,p;return Al().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.prev=0,fu(m),v.next=4,f.read();case 4:b=v.sent,p=b.value,b.done?(f.releaseLock(),g.close(),u()):(i=Xn.now(),m=Ro(function(){return u(i)},e),g.enqueue(p)),v.next=15;break;case 10:v.prev=10,v.t0=v.catch(0),d(v.t0),g.error(v.t0);try{f.releaseLock()}catch{}case 15:case"end":return v.stop()}},y,null,[[0,10]])}))()},cancel:function(g){return fu(m),u(),f.cancel(g)}});return new Response(h,{status:t.status,statusText:t.statusText,headers:t.headers})}var h0,gu=Symbol("dash0XhrState");function Yj(t){return function(e,n){for(var s=arguments.length,l=new Array(s>2?s-2:0),a=2;a<s;a++)l[a-2]=arguments[a];var i=[e,n].concat(l);try{i=[e,Xj(this,e,n)].concat(l)}catch(r){this[gu]=void 0,Ke("failed to instrument XMLHttpRequest.open",r)}return t.apply(this,i)}}function Xj(t,e,n){var s=t[gu];s!=null&&s.span&&!s.completed&&function(c,u){u.completed=!0;try{var d,m,f,h=wn((m=u.listeners)!==null&&m!==void 0?m:[]);try{for(h.s();!(f=h.n()).done;){var g=yl(f.value,2);wr(c,g[0],g[1])}}catch(y){h.e(y)}finally{h.f()}(d=u.performanceObserver)===null||d===void 0||d.cancel(),u.span&&Hf(u.span)}catch{}}(t,s);var l=String(n),a=jm(l).href,i=String(e??"GET"),r=Uf(i.toUpperCase())?i.toUpperCase():Mx;return t[gu]={method:r,originalMethod:i,isWellKnownMethod:Uf(i),url:a,ignored:cv(a),propagatorTypes:Ox(a),completed:!1},l}function Kj(t){return h0=t,function(e,n){t.call(this,e,n);try{(function(s,l,a){var i,r=s[gu];if(!(!r||r.ignored)){var c=l.toLowerCase();if(c!=="traceparent"&&c!=="x-amzn-trace-id"||(r.alreadyTraced=!0),Me.headersToCapture.length!==0&&Me.headersToCapture.some(function(d){return d.test(c)})){var u=(i=r.capturedRequestHeaders)!==null&&i!==void 0?i:r.capturedRequestHeaders={};u[c]=c in u?"".concat(u[c],", ").concat(a):a}}})(this,e,n)}catch(s){Ke("failed to instrument XMLHttpRequest.setRequestHeader",s)}}}function Qj(t){return function(e){var n=this[gu];if(!n||n.ignored)return n!=null&&n.ignored&&Ke("Not creating span for XMLHttpRequest because the url is ignored, URL: ".concat(n.url)),t.call(this,e);if(n.alreadyTraced)return Ke("Not creating span for XMLHttpRequest because a trace correlation header is already present, URL: ".concat(n.url)),t.call(this,e);if(n.span&&!n.completed)return t.call(this,e);try{(function(s,l){var a=xx("HTTP ".concat(l.method));if(Ha(a.attributes),iv(a.attributes,l.url),$e(a.attributes,sx,l.method),l.isWellKnownMethod||$e(a.attributes,lx,l.originalMethod),l.span=a,l.propagatorTypes.length>0)try{Jd(function(p,v){return(h0??s.setRequestHeader).call(s,p,v)},s,a,l.propagatorTypes)}catch(p){Ke("failed to inject trace context headers on XMLHttpRequest",p)}if(l.capturedRequestHeaders)for(var i=0,r=Object.entries(l.capturedRequestHeaders);i<r.length;i++){var c=yl(r[i],2),u=c[0],d=c[1];$e(a.attributes,Rx(u),d)}var m=Kb({resourceMatcher:function(p){var v=p.initiatorType,_=p.name;return v==="xmlhttprequest"&&_===l.url},maxWaitForResourceMillis:Me.maxWaitForResourceTimingsMillis,maxToleranceForResourceTimingsMillis:Me.maxToleranceForResourceTimingsMillis,onEnd:function(p){var v=p.duration,_=p.resource;_&&(Ax(a,_),Lx(a,_)),pu(vu(a,void 0,1e6*v))}});l.performanceObserver=m,m.start(),l.listeners=[["error",function(){l.failureKind="error"}],["timeout",function(){l.failureKind="timeout"}],["abort",function(){l.failureKind="abort"}],["loadend",function(){return function(p,v){var _;if(!v.completed){v.completed=!0;var x,k=wn((_=v.listeners)!==null&&_!==void 0?_:[]);try{for(k.s();!(x=k.n()).done;){var w=yl(x.value,2);wr(p,w[0],w[1])}}catch(C){k.e(C)}finally{k.f()}var R=v.span;if(R){var j=v.performanceObserver;if(v.failureKind==="abort")return j?.cancel(),void Hf(R);var N=0;try{N=p.status}catch{N=0}if(v.failureKind==="error"||v.failureKind==="timeout"||N===0){var E;return j?.cancel(),void m0(R,{name:(E=v.failureKind)!==null&&E!==void 0?E:"error",message:"XMLHttpRequest failed: ".concat(v.url)})}kx(R,N>=200&&N<400?0:2),$e(R.attributes,ax,String(N)),function(C,O){try{if(!Me.headersToCapture.length)return;var M=C.getAllResponseHeaders();if(!M)return;M.split(/\r?\n/).filter(function(A){return A.length>0}).forEach(function(A){var T=A.indexOf(":");if(T!==-1){var S=A.substring(0,T).trim(),$=A.substring(T+1).trim();Me.headersToCapture.some(function(L){return L.test(S)})&&$e(O.attributes,Cx(S),$)}})}catch(A){Ke("unable to capture http response headers",A)}}(p,R),j?.end()}}}(s,l)}]];var f,h=wn(l.listeners);try{for(h.s();!(f=h.n()).done;){var g=yl(f.value,2),y=g[0],b=g[1];$o(s,y,b)}}catch(p){h.e(p)}finally{h.f()}})(this,n)}catch(s){(function(l,a){try{var i,r;(i=a.performanceObserver)===null||i===void 0||i.cancel();var c,u=wn((r=a.listeners)!==null&&r!==void 0?r:[]);try{for(u.s();!(c=u.n()).done;){var d=yl(c.value,2);wr(l,d[0],d[1])}}catch(m){u.e(m)}finally{u.f()}}catch{}a.span=void 0})(this,n),Ke("failed to instrument XMLHttpRequest.send",s)}try{return t.call(this,e)}catch(s){throw function(l,a,i){if(!a.completed){a.completed=!0;try{var r,c,u,d,m=wn((u=a.listeners)!==null&&u!==void 0?u:[]);try{for(m.s();!(d=m.n()).done;){var f=yl(d.value,2);wr(l,f[0],f[1])}}catch(y){m.e(y)}finally{m.f()}(r=a.performanceObserver)===null||r===void 0||r.cancel();var h=a.span;if(!h)return;var g=(c=a.failureKind)!==null&&c!==void 0?c:i?.name==="TimeoutError"?"timeout":"error";wx(h,i??{name:g,message:"XMLHttpRequest failed: ".concat(a.url)}),$e(h.attributes,ev,g),pu(vu(h,{code:2,message:"XMLHttpRequest failed: ".concat(a.url)},void 0))}catch{}}}(this,n,s),s}}}function zx(t){var e,n,s=[];$e(s,Mi,Ai.PAGE_VIEW),t.metaAttributes&&Object.entries(t.metaAttributes).forEach(function(r){var c=yl(r,2),u=c[0],d=c[1];return $e(s,u,d)}),Ha(s,{url:t.url}),ov(s,t.customAttributes);var l=[];$e(l,"title",(e=(n=t.title)!==null&&n!==void 0?n:kt?.title)!==null&&e!==void 0?e:Fc),kt!=null&&kt.referrer&&$e(l,"referrer",kt.referrer),$e(l,"type",t.pageViewType),t.changeState&&$e(l,"change_state",t.changeState);var a={timeUnixNano:t.timeUnixNano,attributes:s,severityNumber:Li.INFO,severityText:"INFO",body:{kvlistValue:{values:l}}},i=_x();i&&(a.traceId=i.traceId,a.spanId=i.spanId),nc(a)}function Bx(t,e,n,s){var l=function(a){var i,r,c;return a&&(i=(r=(c=Me.pageViewInstrumentation).generateMetadata)===null||r===void 0?void 0:r.call(c,a))!==null&&i!==void 0?i:{}}(e);zx({timeUnixNano:t,url:e,title:l.title,metaAttributes:l.attributes,pageViewType:n?ox:dj,changeState:s?mj:fj})}function zg(){var t=je?.performance.getEntriesByType("navigation")[0];if(t){var e=[];$e(e,Mi,Ai.NAVIGATION_TIMING);var n=[];$e(n,"name",t.name),Nl(n,t,"responseStatus"),Nl(n,t,"fetchStart"),Nl(n,t,"requestStart"),Nl(n,t,"responseStart"),Nl(n,t,"domInteractive"),Nl(n,t,"domContentLoadedEventEnd"),Nl(n,t,"domComplete"),Nl(n,t,"loadEventEnd"),Nl(n,t,"transferSize"),Nl(n,t,"encodedBodySize"),Nl(n,t,"decodedBodySize");var s={timeUnixNano:Ix(),attributes:e,severityNumber:Li.INFO,severityText:"INFO",body:{kvlistValue:{values:n}}};Ha(s.attributes);var l=_x();l&&(s.traceId=l.traceId,s.spanId=l.spanId),nc(s)}else Ke("Navigation timings not available. Cannot emit navigation timing log")}function Nl(t,e,n){var s=e[n];typeof s!="number"||isNaN(s)||$e(t,n,Number.isInteger(s)?s:l0(s))}function Ix(){return wi(Math.round(Zp()))}var jr={},Ux=!1,Hx=!1;function Zj(){Vf(je?.location.href)}function Wj(t){Vf(t.newURL)}function Vf(t,e){var n;if(t)try{var s=new URL(t,je?.location.href);((n=s).pathname!==jr.path||Hx&&n.search!==jr.search||Ux&&n.hash!==jr.hash)&&(Vx(s),Bx(Go(),s,!0,!!e))}catch(l){Ke("Failed to handle url change",l)}}function Vx(t){jr.path=t.pathname,jr.search=t.search,jr.hash=t.hash}function Jj(){(function(){try{Bx(Ix(),je!=null&&je.location.href?new URL(je?.location.href):void 0)}catch(t){Yp("Failed to transmit initial page view event",t)}if(kt?.readyState==="complete")return zg();je&&$o(je,"load",function(){setTimeout(zg,0)})})(),function(){var t,e,n,s;if(je&&je.history){if(Me.pageViewInstrumentation.trackVirtualPageViews){Hx=(t=(e=Me.pageViewInstrumentation.includeParts)===null||e===void 0?void 0:e.includes("SEARCH"))!==null&&t!==void 0&&t,Ux=(n=(s=Me.pageViewInstrumentation.includeParts)===null||s===void 0?void 0:s.includes("HASH"))!==null&&n!==void 0&&n,cr(je.history,"replaceState",function(l){return function(a,i,r){return Vf(r?String(r):void 0,!0),l.apply(this,[a,i,r])}}),cr(je.history,"pushState",function(l){return function(a,i,r){return Vf(r?String(r):void 0),l.apply(this,[a,i,r])}}),je.addEventListener("hashchange",Wj),je.addEventListener("popstate",Zj);try{Vx(new URL(je.location.href))}catch{}}}else Ke("Browser does not support history API, skipping instrumentation")}()}function Vs(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];for(var s=0,l=e;s<l.length;s++){var a=l[s];if(a)return a}}var Bg={providerName:"vcs.provider.name",ownerName:"vcs.owner.name",repositoryName:"vcs.repository.name",repositoryUrlFull:"vcs.repository.url.full",refHeadName:"vcs.ref.head.name",refHeadRevision:"vcs.ref.head.revision",changeId:"vcs.change.id"};function eN(t){for(var e=function(i){var r,c,u,d,m,f,h,g,y,b,p,v,_,x,k,w=(r=i.vcs)!==null&&r!==void 0?r:{};if(i.disableVcsDetection)return w;var R=function(){var N,E,C,O,M,A;try{var T,S,$,L,z,D,U,I,F,P,X,Y,Z,V,H,W,J,ce,ee,he,pe,G,ae,oe,ye,_e,ne,te,ie,de,xe,Ne,Te,Ae,Re,Le,De,we,Ce,Oe,Xe,re,Ee,it,lt,ht,qe,_t,Qe,et,Ie,wt,yt,at,Rt,Lt,jt,Pt,bt,Nt;N=Vs((T=process)===null||T===void 0||(T=T.env)===null||T===void 0?void 0:T.NEXT_PUBLIC_VERCEL_GIT_PROVIDER,(S=process)===null||S===void 0||(S=S.env)===null||S===void 0?void 0:S.NUXT_PUBLIC_VERCEL_GIT_PROVIDER,($=process)===null||$===void 0||($=$.env)===null||$===void 0?void 0:$.NUXT_ENV_VERCEL_GIT_PROVIDER,(L=process)===null||L===void 0||(L=L.env)===null||L===void 0?void 0:L.REACT_APP_VERCEL_GIT_PROVIDER,(z=process)===null||z===void 0||(z=z.env)===null||z===void 0?void 0:z.GATSBY_VERCEL_GIT_PROVIDER,(D=process)===null||D===void 0||(D=D.env)===null||D===void 0?void 0:D.VITE_VERCEL_GIT_PROVIDER,(U=process)===null||U===void 0||(U=U.env)===null||U===void 0?void 0:U.PUBLIC_VERCEL_GIT_PROVIDER,(I=process)===null||I===void 0||(I=I.env)===null||I===void 0?void 0:I.VUE_APP_VERCEL_GIT_PROVIDER,(F=process)===null||F===void 0||(F=F.env)===null||F===void 0?void 0:F.REDWOOD_ENV_VERCEL_GIT_PROVIDER,(P=process)===null||P===void 0||(P=P.env)===null||P===void 0?void 0:P.SANITY_STUDIO_VERCEL_GIT_PROVIDER),E=Vs((X=process)===null||X===void 0||(X=X.env)===null||X===void 0?void 0:X.NEXT_PUBLIC_VERCEL_GIT_REPO_OWNER,(Y=process)===null||Y===void 0||(Y=Y.env)===null||Y===void 0?void 0:Y.NUXT_PUBLIC_VERCEL_GIT_REPO_OWNER,(Z=process)===null||Z===void 0||(Z=Z.env)===null||Z===void 0?void 0:Z.NUXT_ENV_VERCEL_GIT_REPO_OWNER,(V=process)===null||V===void 0||(V=V.env)===null||V===void 0?void 0:V.REACT_APP_VERCEL_GIT_REPO_OWNER,(H=process)===null||H===void 0||(H=H.env)===null||H===void 0?void 0:H.GATSBY_VERCEL_GIT_REPO_OWNER,(W=process)===null||W===void 0||(W=W.env)===null||W===void 0?void 0:W.VITE_VERCEL_GIT_REPO_OWNER,(J=process)===null||J===void 0||(J=J.env)===null||J===void 0?void 0:J.PUBLIC_VERCEL_GIT_REPO_OWNER,(ce=process)===null||ce===void 0||(ce=ce.env)===null||ce===void 0?void 0:ce.VUE_APP_VERCEL_GIT_REPO_OWNER,(ee=process)===null||ee===void 0||(ee=ee.env)===null||ee===void 0?void 0:ee.REDWOOD_ENV_VERCEL_GIT_REPO_OWNER,(he=process)===null||he===void 0||(he=he.env)===null||he===void 0?void 0:he.SANITY_STUDIO_VERCEL_GIT_REPO_OWNER),C=Vs((pe=process)===null||pe===void 0||(pe=pe.env)===null||pe===void 0?void 0:pe.NEXT_PUBLIC_VERCEL_GIT_REPO_SLUG,(G=process)===null||G===void 0||(G=G.env)===null||G===void 0?void 0:G.NUXT_PUBLIC_VERCEL_GIT_REPO_SLUG,(ae=process)===null||ae===void 0||(ae=ae.env)===null||ae===void 0?void 0:ae.NUXT_ENV_VERCEL_GIT_REPO_SLUG,(oe=process)===null||oe===void 0||(oe=oe.env)===null||oe===void 0?void 0:oe.REACT_APP_VERCEL_GIT_REPO_SLUG,(ye=process)===null||ye===void 0||(ye=ye.env)===null||ye===void 0?void 0:ye.GATSBY_VERCEL_GIT_REPO_SLUG,(_e=process)===null||_e===void 0||(_e=_e.env)===null||_e===void 0?void 0:_e.VITE_VERCEL_GIT_REPO_SLUG,(ne=process)===null||ne===void 0||(ne=ne.env)===null||ne===void 0?void 0:ne.PUBLIC_VERCEL_GIT_REPO_SLUG,(te=process)===null||te===void 0||(te=te.env)===null||te===void 0?void 0:te.VUE_APP_VERCEL_GIT_REPO_SLUG,(ie=process)===null||ie===void 0||(ie=ie.env)===null||ie===void 0?void 0:ie.REDWOOD_ENV_VERCEL_GIT_REPO_SLUG,(de=process)===null||de===void 0||(de=de.env)===null||de===void 0?void 0:de.SANITY_STUDIO_VERCEL_GIT_REPO_SLUG),O=Vs((xe=process)===null||xe===void 0||(xe=xe.env)===null||xe===void 0?void 0:xe.NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF,(Ne=process)===null||Ne===void 0||(Ne=Ne.env)===null||Ne===void 0?void 0:Ne.NUXT_PUBLIC_VERCEL_GIT_COMMIT_REF,(Te=process)===null||Te===void 0||(Te=Te.env)===null||Te===void 0?void 0:Te.NUXT_ENV_VERCEL_GIT_COMMIT_REF,(Ae=process)===null||Ae===void 0||(Ae=Ae.env)===null||Ae===void 0?void 0:Ae.REACT_APP_VERCEL_GIT_COMMIT_REF,(Re=process)===null||Re===void 0||(Re=Re.env)===null||Re===void 0?void 0:Re.GATSBY_VERCEL_GIT_COMMIT_REF,(Le=process)===null||Le===void 0||(Le=Le.env)===null||Le===void 0?void 0:Le.VITE_VERCEL_GIT_COMMIT_REF,(De=process)===null||De===void 0||(De=De.env)===null||De===void 0?void 0:De.PUBLIC_VERCEL_GIT_COMMIT_REF,(we=process)===null||we===void 0||(we=we.env)===null||we===void 0?void 0:we.VUE_APP_VERCEL_GIT_COMMIT_REF,(Ce=process)===null||Ce===void 0||(Ce=Ce.env)===null||Ce===void 0?void 0:Ce.REDWOOD_ENV_VERCEL_GIT_COMMIT_REF,(Oe=process)===null||Oe===void 0||(Oe=Oe.env)===null||Oe===void 0?void 0:Oe.SANITY_STUDIO_VERCEL_GIT_COMMIT_REF),M=Vs((Xe=process)===null||Xe===void 0||(Xe=Xe.env)===null||Xe===void 0?void 0:Xe.NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA,(re=process)===null||re===void 0||(re=re.env)===null||re===void 0?void 0:re.NUXT_PUBLIC_VERCEL_GIT_COMMIT_SHA,(Ee=process)===null||Ee===void 0||(Ee=Ee.env)===null||Ee===void 0?void 0:Ee.NUXT_ENV_VERCEL_GIT_COMMIT_SHA,(it=process)===null||it===void 0||(it=it.env)===null||it===void 0?void 0:it.REACT_APP_VERCEL_GIT_COMMIT_SHA,(lt=process)===null||lt===void 0||(lt=lt.env)===null||lt===void 0?void 0:lt.GATSBY_VERCEL_GIT_COMMIT_SHA,(ht=process)===null||ht===void 0||(ht=ht.env)===null||ht===void 0?void 0:ht.VITE_VERCEL_GIT_COMMIT_SHA,(qe=process)===null||qe===void 0||(qe=qe.env)===null||qe===void 0?void 0:qe.PUBLIC_VERCEL_GIT_COMMIT_SHA,(_t=process)===null||_t===void 0||(_t=_t.env)===null||_t===void 0?void 0:_t.VUE_APP_VERCEL_GIT_COMMIT_SHA,(Qe=process)===null||Qe===void 0||(Qe=Qe.env)===null||Qe===void 0?void 0:Qe.REDWOOD_ENV_VERCEL_GIT_COMMIT_SHA,(et=process)===null||et===void 0||(et=et.env)===null||et===void 0?void 0:et.SANITY_STUDIO_VERCEL_GIT_COMMIT_SHA),A=Vs((Ie=process)===null||Ie===void 0||(Ie=Ie.env)===null||Ie===void 0?void 0:Ie.NEXT_PUBLIC_VERCEL_GIT_PULL_REQUEST_ID,(wt=process)===null||wt===void 0||(wt=wt.env)===null||wt===void 0?void 0:wt.NUXT_PUBLIC_VERCEL_GIT_PULL_REQUEST_ID,(yt=process)===null||yt===void 0||(yt=yt.env)===null||yt===void 0?void 0:yt.NUXT_ENV_VERCEL_GIT_PULL_REQUEST_ID,(at=process)===null||at===void 0||(at=at.env)===null||at===void 0?void 0:at.REACT_APP_VERCEL_GIT_PULL_REQUEST_ID,(Rt=process)===null||Rt===void 0||(Rt=Rt.env)===null||Rt===void 0?void 0:Rt.GATSBY_VERCEL_GIT_PULL_REQUEST_ID,(Lt=process)===null||Lt===void 0||(Lt=Lt.env)===null||Lt===void 0?void 0:Lt.VITE_VERCEL_GIT_PULL_REQUEST_ID,(jt=process)===null||jt===void 0||(jt=jt.env)===null||jt===void 0?void 0:jt.PUBLIC_VERCEL_GIT_PULL_REQUEST_ID,(Pt=process)===null||Pt===void 0||(Pt=Pt.env)===null||Pt===void 0?void 0:Pt.VUE_APP_VERCEL_GIT_PULL_REQUEST_ID,(bt=process)===null||bt===void 0||(bt=bt.env)===null||bt===void 0?void 0:bt.REDWOOD_ENV_VERCEL_GIT_PULL_REQUEST_ID,(Nt=process)===null||Nt===void 0||(Nt=Nt.env)===null||Nt===void 0?void 0:Nt.SANITY_STUDIO_VERCEL_GIT_PULL_REQUEST_ID)}catch{}return{providerName:N,ownerName:E,repositoryName:C,repositoryUrlFull:tN(N,E,C),refHeadName:O,refHeadRevision:M,changeId:A}}(),j=function(){var N,E,C,O;try{var M,A,T,S,$,L,z,D,U,I,F,P,X,Y,Z,V,H,W,J,ce,ee,he,pe,G,ae,oe,ye,_e,ne,te,ie,de,xe,Ne,Te,Ae,Re,Le,De,we;N=Vs((M=process)===null||M===void 0||(M=M.env)===null||M===void 0?void 0:M.NEXT_PUBLIC_REPOSITORY_URL,(A=process)===null||A===void 0||(A=A.env)===null||A===void 0?void 0:A.NUXT_PUBLIC_REPOSITORY_URL,(T=process)===null||T===void 0||(T=T.env)===null||T===void 0?void 0:T.NUXT_ENV_REPOSITORY_URL,(S=process)===null||S===void 0||(S=S.env)===null||S===void 0?void 0:S.REACT_APP_REPOSITORY_URL,($=process)===null||$===void 0||($=$.env)===null||$===void 0?void 0:$.GATSBY_REPOSITORY_URL,(L=process)===null||L===void 0||(L=L.env)===null||L===void 0?void 0:L.VITE_REPOSITORY_URL,(z=process)===null||z===void 0||(z=z.env)===null||z===void 0?void 0:z.PUBLIC_REPOSITORY_URL,(D=process)===null||D===void 0||(D=D.env)===null||D===void 0?void 0:D.VUE_APP_REPOSITORY_URL,(U=process)===null||U===void 0||(U=U.env)===null||U===void 0?void 0:U.REDWOOD_ENV_REPOSITORY_URL,(I=process)===null||I===void 0||(I=I.env)===null||I===void 0?void 0:I.SANITY_STUDIO_REPOSITORY_URL),E=Vs((F=process)===null||F===void 0||(F=F.env)===null||F===void 0?void 0:F.NEXT_PUBLIC_BRANCH,(P=process)===null||P===void 0||(P=P.env)===null||P===void 0?void 0:P.NUXT_PUBLIC_BRANCH,(X=process)===null||X===void 0||(X=X.env)===null||X===void 0?void 0:X.NUXT_ENV_BRANCH,(Y=process)===null||Y===void 0||(Y=Y.env)===null||Y===void 0?void 0:Y.REACT_APP_BRANCH,(Z=process)===null||Z===void 0||(Z=Z.env)===null||Z===void 0?void 0:Z.GATSBY_BRANCH,(V=process)===null||V===void 0||(V=V.env)===null||V===void 0?void 0:V.VITE_BRANCH,(H=process)===null||H===void 0||(H=H.env)===null||H===void 0?void 0:H.PUBLIC_BRANCH,(W=process)===null||W===void 0||(W=W.env)===null||W===void 0?void 0:W.VUE_APP_BRANCH,(J=process)===null||J===void 0||(J=J.env)===null||J===void 0?void 0:J.REDWOOD_ENV_BRANCH,(ce=process)===null||ce===void 0||(ce=ce.env)===null||ce===void 0?void 0:ce.SANITY_STUDIO_BRANCH),C=Vs((ee=process)===null||ee===void 0||(ee=ee.env)===null||ee===void 0?void 0:ee.NEXT_PUBLIC_COMMIT_REF,(he=process)===null||he===void 0||(he=he.env)===null||he===void 0?void 0:he.NUXT_PUBLIC_COMMIT_REF,(pe=process)===null||pe===void 0||(pe=pe.env)===null||pe===void 0?void 0:pe.NUXT_ENV_COMMIT_REF,(G=process)===null||G===void 0||(G=G.env)===null||G===void 0?void 0:G.REACT_APP_COMMIT_REF,(ae=process)===null||ae===void 0||(ae=ae.env)===null||ae===void 0?void 0:ae.GATSBY_COMMIT_REF,(oe=process)===null||oe===void 0||(oe=oe.env)===null||oe===void 0?void 0:oe.VITE_COMMIT_REF,(ye=process)===null||ye===void 0||(ye=ye.env)===null||ye===void 0?void 0:ye.PUBLIC_COMMIT_REF,(_e=process)===null||_e===void 0||(_e=_e.env)===null||_e===void 0?void 0:_e.VUE_APP_COMMIT_REF,(ne=process)===null||ne===void 0||(ne=ne.env)===null||ne===void 0?void 0:ne.REDWOOD_ENV_COMMIT_REF,(te=process)===null||te===void 0||(te=te.env)===null||te===void 0?void 0:te.SANITY_STUDIO_COMMIT_REF),O=Vs((ie=process)===null||ie===void 0||(ie=ie.env)===null||ie===void 0?void 0:ie.NEXT_PUBLIC_REVIEW_ID,(de=process)===null||de===void 0||(de=de.env)===null||de===void 0?void 0:de.NUXT_PUBLIC_REVIEW_ID,(xe=process)===null||xe===void 0||(xe=xe.env)===null||xe===void 0?void 0:xe.NUXT_ENV_REVIEW_ID,(Ne=process)===null||Ne===void 0||(Ne=Ne.env)===null||Ne===void 0?void 0:Ne.REACT_APP_REVIEW_ID,(Te=process)===null||Te===void 0||(Te=Te.env)===null||Te===void 0?void 0:Te.GATSBY_REVIEW_ID,(Ae=process)===null||Ae===void 0||(Ae=Ae.env)===null||Ae===void 0?void 0:Ae.VITE_REVIEW_ID,(Re=process)===null||Re===void 0||(Re=Re.env)===null||Re===void 0?void 0:Re.PUBLIC_REVIEW_ID,(Le=process)===null||Le===void 0||(Le=Le.env)===null||Le===void 0?void 0:Le.VUE_APP_REVIEW_ID,(De=process)===null||De===void 0||(De=De.env)===null||De===void 0?void 0:De.REDWOOD_ENV_REVIEW_ID,(we=process)===null||we===void 0||(we=we.env)===null||we===void 0?void 0:we.SANITY_STUDIO_REVIEW_ID)}catch{}var Ce=function(Oe){if(Oe){var Xe,re;try{var Ee=new URL(Oe);Xe=Ee.host,re=Ee.pathname}catch{return}var it=function(_t){for(var Qe=0,et=Object.entries(Gx);Qe<et.length;Qe++){var Ie=yl(et[Qe],2),wt=Ie[0];if(Ie[1].includes(_t))return wt}}(Xe);if(it){var lt=re.replace(/^\/+/,"").replace(/\.git$/,"").split("/");if(!(lt.length<2)){var ht=lt[0],qe=lt[lt.length-1];return ht&&qe?{providerName:it,ownerName:ht,repositoryName:qe}:void 0}}}}(N);return{providerName:Ce?.providerName,ownerName:Ce?.ownerName,repositoryName:Ce?.repositoryName,repositoryUrlFull:N,refHeadName:E,refHeadRevision:C,changeId:O}}();return{providerName:(c=(u=w.providerName)!==null&&u!==void 0?u:R.providerName)!==null&&c!==void 0?c:j.providerName,ownerName:(d=(m=w.ownerName)!==null&&m!==void 0?m:R.ownerName)!==null&&d!==void 0?d:j.ownerName,repositoryName:(f=(h=w.repositoryName)!==null&&h!==void 0?h:R.repositoryName)!==null&&f!==void 0?f:j.repositoryName,repositoryUrlFull:(g=(y=w.repositoryUrlFull)!==null&&y!==void 0?y:R.repositoryUrlFull)!==null&&g!==void 0?g:j.repositoryUrlFull,refHeadName:(b=(p=w.refHeadName)!==null&&p!==void 0?p:R.refHeadName)!==null&&b!==void 0?b:j.refHeadName,refHeadRevision:(v=(_=w.refHeadRevision)!==null&&_!==void 0?_:R.refHeadRevision)!==null&&v!==void 0?v:j.refHeadRevision,changeId:(x=(k=w.changeId)!==null&&k!==void 0?k:R.changeId)!==null&&x!==void 0?x:j.changeId}}(t),n=0,s=Object.keys(Bg);n<s.length;n++){var l=s[n],a=e[l];a&&$e(Me.resource.attributes,Bg[l],a)}}function tN(t,e,n){if(t&&e&&n){var s=function(l){var a;return(a=Gx[l])===null||a===void 0?void 0:a[0]}(t);if(s)return"https://".concat(s,"/").concat(e,"/").concat(n)}}var Gx={github:["github.com","gist.github.com"],gitlab:["gitlab.com"],bitbucket:["bitbucket.org"]},dr,_o,Nr,uv,nN="dash0Recorder",Ig=!1,Ug=!1,Fx=!1,dc=!1,p0=[];function sN(t){p0.push(t);var e,n=_o!=null?(e=uv)===null||e===void 0?void 0:e.recordingId:void 0;n&&qx(t,n)}function Px(t){for(var e=0;e<p0.length;e++)qx(p0[e],t)}function qx(t,e){try{t(e)}catch(n){Ke("Recording state listener failed",n)}}function lN(){var t,e=_o!=null;if(_o){try{_o()}catch(n){Ke("Failed to stop session recorder",n)}_o=void 0}e&&Px(void 0),(t=Nr)===null||t===void 0||t.flush(),Nr=void 0,uv=void 0}function Hg(){var t=kt?.visibilityState;return t!=null&&t!=="visible"}function Yx(){var t,e,n;if(_o)Ke("Session recording already running. Ignoring start.");else if(dr&&je){var s=Me.sessionRecording;if(Me.isSessionSampled)if(ex(ia??"",(t=s.samplingRate)!==null&&t!==void 0?t:100))if(cv(je.location.href))Ke("Page URL is ignored. Session recording will not start.");else if(!Ug&&kt&&(Ug=!0,$o(kt,"visibilitychange",function(){if(Hg()){dc=!0;try{lN()}finally{dc=!1}}else Fx||Yx()})),Hg())Ke("Document is hidden. Session recording will start once it becomes visible.");else{var l=yx(ia),a={recordingId:Bo(16),traceId:l,spanId:bx(l)};uv=a;var i=function(r){var c=[],u=0,d=!1,m=0,f=0,h=0,g=null;return{add:function(p){p.type===4&&c.length>0&&b();var v=JSON.stringify(p);v!=null&&(c.length===0&&(m=p.timestamp,g=Ro(b,r.maxMillis)),c.push(v),u+=v.length,f=p.timestamp,p.type===2&&(d=!0),u>=r.maxBytes&&b())},flush:b,discard:function(){y(),c=[],u=0,d=!1}};function y(){g!=null&&(fu(g),g=null)}function b(){if(y(),c.length!==0){var p={seq:h++,body:"["+c.join(",")+"]",eventCount:c.length,hasSnapshot:d,startTime:m,endTime:f};c=[],u=0,d=!1,r.onChunk(p)}}}({maxBytes:(e=s.chunkMaxBytes)!==null&&e!==void 0?e:48e3,maxMillis:(n=s.chunkMaxMillis)!==null&&n!==void 0?n:5e3,onChunk:function(r){try{c=function(m,f){var h=[];return $e(h,Mi,Ai.SESSION_RECORDING),Ha(h),$e(h,tx,m.recordingId),$e(h,"dash0.session_recording.seq",{intValue:String(f.seq)}),$e(h,"dash0.session_recording.event_count",{intValue:String(f.eventCount)}),$e(h,"dash0.session_recording.has_snapshot",f.hasSnapshot),$e(h,"dash0.session_recording.end_time_unix_nano",{intValue:wi(f.endTime)}),{timeUnixNano:wi(f.startTime),severityNumber:Li.INFO,severityText:"INFO",body:{stringValue:f.body},attributes:h,traceId:m.traceId,spanId:m.spanId}}(a,r),u={compress:!dc},Me.isSessionSampled&&(Nj()?Ke("Session recording rate limit. Will not send chunk.",c):vx([c],{compress:(d=u?.compress)===null||d===void 0||d}))}catch(m){vs("Failed to transmit session recording chunk",m)}var c,u,d}});Nr=i;try{_o=dr({emit:function(r){Nr===i&&i.add(r)},checkoutEveryNms:s.checkoutEveryNms,maskAllInputs:s.maskAllInputs,maskTextClass:s.maskTextClass,maskTextSelector:s.maskTextSelector,maskInputFn:s.maskInputFn,maskTextFn:s.maskTextFn,blockClass:s.blockClass,blockSelector:s.blockSelector,recordCanvas:s.recordCanvas,collectFonts:s.collectFonts})}catch(r){return vs("Failed to start session recorder",r),void Vg(i)}if(!_o)return vs("Session recorder did not start."),void Vg(i);Ig||(Ig=!0,lv(function(){dc=!0;try{var r;(r=Nr)===null||r===void 0||r.flush()}finally{dc=!1}})),Ke("Session recording started",a),Px(a.recordingId)}else Ke("Session is not sampled for recording. Session recording will not start.");else Ke("Session is not sampled. Session recording will not start.")}}function Vg(t){t.discard(),Nr=void 0}var so,Tr,Xx,aN=["data-testid","data-test-id","data-test","data-cy","name"],v0=/^[A-Za-z_-][\w-]*$/,oN=/(^|[_-])[a-z0-9]{5,}$|^css-|^sc-/i,iN=["aria-label","title","alt","placeholder"];function rN(t){var e=_u(t,"id");if(e&&v0.test(e))return"#"+e;var n,s=wn(aN);try{for(s.s();!(n=s.n()).done;){var l=n.value,a=_u(t,l);if(a&&v0.test(a))return"".concat(dv(t),"[").concat(l,'="').concat(a,'"]')}}catch(i){s.e(i)}finally{s.f()}}function cN(t){var e,n=dv(t),s=function(i){var r=i.classList;if(!r)return[];for(var c=[],u=0;u<r.length&&c.length<2;u++){var d=r[u];v0.test(d)&&!oN.test(d)&&c.push(d)}return c}(t),l=wn(s);try{for(l.s();!(e=l.n()).done;)n+="."+e.value}catch(i){l.e(i)}finally{l.f()}if(s.length===0){var a=function(i){var r,c=(r=i.parentElement)===null||r===void 0?void 0:r.children;if(!c)return 0;for(var u=0,d=0,m=0;m<c.length;m++){var f=c[m];f.tagName===i.tagName&&(d++,f===i&&(u=d))}return d>1?u:0}(t);a>0&&(n+=":nth-of-type(".concat(a,")"))}return n}function uN(t){var e;if(!function(i){var r=Me.sessionRecording,c=r.maskTextClass,u=r.maskTextSelector,d=r.blockClass,m=r.blockSelector;if(Gg(i,u)||Gg(i,m))return!0;for(var f=i,h=0;f&&h<32;f=f.parentElement,h++)if(Fg(f,c)||Fg(f,d))return!0;return!1}(t)){var n=dv(t);if(n==="input"){var s,l,a=((s=_u(t,"type"))!==null&&s!==void 0?s:"text").toLowerCase();return a!=="button"&&a!=="submit"&&a!=="reset"?E1(t,["aria-label","title","placeholder"]):Gf(g0((l=_u(t,"value"))!==null&&l!==void 0?l:""),100)||void 0}return n==="textarea"||n==="select"?E1(t,["aria-label","title"]):Gf(g0((e=t.textContent)!==null&&e!==void 0?e:""),100)||E1(t,iN)}}function E1(t,e){var n,s=wn(e);try{for(s.s();!(n=s.n()).done;){var l,a=Gf(g0((l=_u(t,n.value))!==null&&l!==void 0?l:""),100);if(a)return a}}catch(i){s.e(i)}finally{s.f()}}function Gg(t,e){if(!e||!t.closest)return!1;try{return t.closest(e)!=null}catch{return!1}}function Fg(t,e){if(!e)return!1;var n,s,l=t.className;return typeof l=="string"&&(typeof e=="string"?(n=(s=t.classList)===null||s===void 0?void 0:s.contains(e))!==null&&n!==void 0&&n:l.split(/\s+/).some(function(a){return e.test(a)}))}function _u(t,e){var n,s;return(n=(s=t.getAttribute)===null||s===void 0?void 0:s.call(t,e))!==null&&n!==void 0?n:void 0}function dv(t){var e;return((e=t.tagName)!==null&&e!==void 0?e:"").toLowerCase()}function g0(t){return t.replace(/\s+/g," ").trim()}function Gf(t,e){return t.length>e?t.slice(0,e-1)+"…":t}var yu,Pg=!1;function dN(t){if(t)return yu=t,void function(){kt&&$o(kt,"click",qg,!0)}();Ff(),function(){kt&&wr(kt,"click",qg,!0)}(),yu=void 0}function qg(t){try{var e;if(!yu)return;var n=t;if(!n.isTrusted||((e=n.button)!==null&&e!==void 0?e:0)!==0)return;var s=function(i){var r,c,u=(r=i.composedPath)===null||r===void 0?void 0:r.call(i),d=u&&u.length>0?u[0]:i.target;return d?d.nodeType===3?(c=d.parentElement)!==null&&c!==void 0?c:void 0:d.nodeType===1?d:void 0:void 0}(n);if(!s)return;var l=Kx(),a=ao();so&&a-so.lastMillis<=l.windowMillis&&function(i,r,c,u){var d,m,f;if(i.target===r||(d=(m=i.target).contains)!==null&&d!==void 0&&d.call(m,r)||(f=r.contains)!==null&&f!==void 0&&f.call(r,i.target))return!0;var h=c.clientX-i.x,g=c.clientY-i.y;return h*h+g*g<=u*u}(so,s,n,l.radiusPixels)?(so.count++,so.lastMillis=a):(Ff(),so={target:s,x:n.clientX,y:n.clientY,count:1,firstMillis:a,lastMillis:a}),Tr!=null&&fu(Tr),Tr=Ro(Ff,l.windowMillis)}catch(i){Ke("Failed to evaluate click for rage click detection",i)}}function Ff(){Tr!=null&&(fu(Tr),Tr=void 0);var t=so;if(so=void 0,t&&!(t.count<Kx().minClicks))if(Xx())Ke("Suppressing rage click event due to excessive usage");else try{(function(e){var n=[];$e(n,Mi,Ai.RAGE_CLICK),Ha(n),yu&&$e(n,tx,yu);var s=[];$e(s,"click_count",e.count),$e(s,"duration_millis",e.lastMillis-e.firstMillis),$e(s,"selector",function(i){for(var r=[],c=i,u=0;c&&u<5&&c!==kt?.body&&c!==kt?.documentElement;u++){var d=rN(c);if(d){r.unshift(d);break}r.unshift(cN(c)),c=c.parentElement}return Gf(r.join(">"),250)}(e.target)),$e(s,"x",e.x),$e(s,"y",e.y);var l=uN(e.target);l&&$e(s,"text",l);var a={timeUnixNano:wi(e.firstMillis),attributes:n,severityNumber:Li.WARN,severityText:"WARN",body:{kvlistValue:{values:s}}};nc(a)})(t)}catch(e){Ke("Failed to report rage click",e)}}function Kx(){var t,e,n,s,l,a=(t=(e=Me.frustrationSignals)===null||e===void 0?void 0:e.rageClick)!==null&&t!==void 0?t:{};return{minClicks:(n=a.minClicks)!==null&&n!==void 0?n:3,windowMillis:(s=a.windowMillis)!==null&&s!==void 0?s:1e3,radiusPixels:(l=a.radiusPixels)!==null&&l!==void 0?l:30}}var $1=!1;function fN(t){if($1)Ke("Dash0 SDK is being reinitialized, skipping ...");else if(je!=null)if(typeof n0=="function"&&Xn&&Xn.getEntriesByType){var e,n,s=t.serviceName.trim();if(s){if(t.rejectSuspiciousServiceName!==!1&&(n=s,Zw.test(n))){var l;Ke("serviceName contains disallowed characters. Falling back to location.hostname."),t.serviceName=(l=rr?.hostname)!==null&&l!==void 0?l:"unknown"}}else Ke("Missing or empty serviceName value. Falling back to location.hostname."),t.serviceName=(e=rr?.hostname)!==null&&e!==void 0?e:"unknown";if(Me.endpoints=t.endpoint instanceof Array?t.endpoint:[t.endpoint],Me.endpoints.length!==0){if(Object.assign(Me,function(i,r){for(var c=Qd({},i),u=0,d=Object.keys(r);u<d.length;u++){var m=d[u],f=r[m],h=i[m];f!==void 0&&(f===null||Dl(f)!=="object"||Array.isArray(f)||Dl(h)!=="object"||h===null||Array.isArray(h)?c[m]=f:c[m]=Qd(Qd({},h),mN(f)))}return c}(Me,function(i,r){var c,u={},d=wn(r);try{for(d.s();!(c=d.n()).done;){var m=c.value;m in i&&(u[m]=i[m])}}catch(f){d.e(f)}finally{d.f()}return u}(t,["ignoreUrls","ignoreErrorMessages","wrapEventHandlers","wrapTimers","propagateTraceHeadersCorsURLs","maxWaitForResourceTimingsMillis","maxToleranceForResourceTimingsMillis","headersToCapture","urlAttributeScrubber","pageViewInstrumentation","sessionRecording","frustrationSignals","enableTransportCompression"]))),function(i){i.propagators?(i.propagateTraceHeadersCorsURLs&&vs("Both 'propagators' and deprecated 'propagateTraceHeadersCorsURLs' were provided. Using 'propagators' configuration. Please migrate to the new 'propagators' config."),Me.propagators=i.propagators):i.propagateTraceHeadersCorsURLs&&i.propagateTraceHeadersCorsURLs.length>0?(vs("'propagateTraceHeadersCorsURLs' is deprecated. Please use the new 'propagators' configuration."),Me.propagators=[{type:"traceparent",match:Yb(i.propagateTraceHeadersCorsURLs)}]):Me.propagators=[{type:"traceparent",match:[]}]}(t),function(i){$e(Me.resource.attributes,Ww,i.serviceName),i.serviceNamespace&&$e(Me.resource.attributes,Jw,i.serviceNamespace),i.serviceVersion&&$e(Me.resource.attributes,ej,i.serviceVersion);var r=function(d){if(d.environment)return d.environment;try{var m,f,h,g,y,b,p,v,_,x;return Vs((m=process)===null||m===void 0||(m=m.env)===null||m===void 0?void 0:m.NEXT_PUBLIC_VERCEL_ENV,(f=process)===null||f===void 0||(f=f.env)===null||f===void 0?void 0:f.NUXT_PUBLIC_VERCEL_ENV,(h=process)===null||h===void 0||(h=h.env)===null||h===void 0?void 0:h.NUXT_ENV_VERCEL_ENV,(g=process)===null||g===void 0||(g=g.env)===null||g===void 0?void 0:g.REACT_APP_VERCEL_ENV,(y=process)===null||y===void 0||(y=y.env)===null||y===void 0?void 0:y.GATSBY_VERCEL_ENV,(b=process)===null||b===void 0||(b=b.env)===null||b===void 0?void 0:b.VITE_VERCEL_ENV,(p=process)===null||p===void 0||(p=p.env)===null||p===void 0?void 0:p.PUBLIC_VERCEL_ENV,(v=process)===null||v===void 0||(v=v.env)===null||v===void 0?void 0:v.VUE_APP_VERCEL_ENV,(_=process)===null||_===void 0||(_=_.env)===null||_===void 0?void 0:_.REDWOOD_ENV_VERCEL_ENV,(x=process)===null||x===void 0||(x=x.env)===null||x===void 0?void 0:x.SANITY_STUDIO_VERCEL_ENV)}catch{return}}(i);r&&$e(Me.resource.attributes,tj,r);var c=function(d){if(d.deploymentName)return d.deploymentName;try{var m,f,h,g,y,b,p,v,_,x;return Vs((m=process)===null||m===void 0||(m=m.env)===null||m===void 0?void 0:m.NEXT_PUBLIC_VERCEL_TARGET_ENV,(f=process)===null||f===void 0||(f=f.env)===null||f===void 0?void 0:f.NUXT_PUBLIC_VERCEL_TARGET_ENV,(h=process)===null||h===void 0||(h=h.env)===null||h===void 0?void 0:h.NUXT_ENV_VERCEL_TARGET_ENV,(g=process)===null||g===void 0||(g=g.env)===null||g===void 0?void 0:g.REACT_APP_VERCEL_TARGET_ENV,(y=process)===null||y===void 0||(y=y.env)===null||y===void 0?void 0:y.GATSBY_VERCEL_TARGET_ENV,(b=process)===null||b===void 0||(b=b.env)===null||b===void 0?void 0:b.VITE_VERCEL_TARGET_ENV,(p=process)===null||p===void 0||(p=p.env)===null||p===void 0?void 0:p.PUBLIC_VERCEL_TARGET_ENV,(v=process)===null||v===void 0||(v=v.env)===null||v===void 0?void 0:v.VUE_APP_VERCEL_TARGET_ENV,(_=process)===null||_===void 0||(_=_.env)===null||_===void 0?void 0:_.REDWOOD_ENV_VERCEL_TARGET_ENV,(x=process)===null||x===void 0||(x=x.env)===null||x===void 0?void 0:x.SANITY_STUDIO_VERCEL_TARGET_ENV)}catch{return}}(i);c&&$e(Me.resource.attributes,nj,c);var u=function(d){if(d.deploymentId)return d.deploymentId;try{var m,f,h,g,y,b,p,v,_,x;return Vs((m=process)===null||m===void 0||(m=m.env)===null||m===void 0?void 0:m.NEXT_PUBLIC_VERCEL_BRANCH_URL,(f=process)===null||f===void 0||(f=f.env)===null||f===void 0?void 0:f.NUXT_PUBLIC_VERCEL_BRANCH_URL,(h=process)===null||h===void 0||(h=h.env)===null||h===void 0?void 0:h.NUXT_ENV_VERCEL_BRANCH_URL,(g=process)===null||g===void 0||(g=g.env)===null||g===void 0?void 0:g.REACT_APP_VERCEL_BRANCH_URL,(y=process)===null||y===void 0||(y=y.env)===null||y===void 0?void 0:y.GATSBY_VERCEL_BRANCH_URL,(b=process)===null||b===void 0||(b=b.env)===null||b===void 0?void 0:b.VITE_VERCEL_BRANCH_URL,(p=process)===null||p===void 0||(p=p.env)===null||p===void 0?void 0:p.PUBLIC_VERCEL_BRANCH_URL,(v=process)===null||v===void 0||(v=v.env)===null||v===void 0?void 0:v.VUE_APP_VERCEL_BRANCH_URL,(_=process)===null||_===void 0||(_=_.env)===null||_===void 0?void 0:_.REDWOOD_ENV_VERCEL_BRANCH_URL,(x=process)===null||x===void 0||(x=x.env)===null||x===void 0?void 0:x.SANITY_STUDIO_VERCEL_BRANCH_URL)}catch{return}}(i);u&&$e(Me.resource.attributes,sj,u),eN(i)}(t),function(i){var r;$e(Me.signalAttributes,lj,Bo(16)),$e(Me.signalAttributes,aj,(r=zf?.userAgent)!==null&&r!==void 0?r:Fc),i.additionalSignalAttributes&&Object.entries(i.additionalSignalAttributes).forEach(function(c){var u=yl(c,2),d=u[0],m=u[1];$e(Me.signalAttributes,d,m)})}(t),Cj(),pj(t.sessionInactivityTimeoutMillis,t.sessionTerminationTimeoutMillis),t.sessionSamplingRate!=null){var a=Math.max(0,Math.min(100,t.sessionSamplingRate));Me.isSessionSampled=ia!=null?ex(ia,a):a>0}if(!Me.isSessionSampled)return Ke("Session is not sampled. No telemetry will be transmitted for this session."),void($1=!0);qo("@dash0/navigation",t)&&Jj(),qo("@dash0/web-vitals",t)&&Mj(),qo("@dash0/error",t)&&Hj(),qo("@dash0/fetch",t)&&(je&&je.fetch&&je.Request?cr(je,"fetch",Gj):Ke("Browser does not support the Fetch API, skipping instrumentation")),qo("@dash0/xhr",t)&&function(){if(je&&je.XMLHttpRequest){var i=je.XMLHttpRequest.prototype;cr(i,"open",Yj),cr(i,"setRequestHeader",Kj),cr(i,"send",Qj)}else Ke("Browser does not support XMLHttpRequest, skipping instrumentation")}(),qo("@dash0/session-recording",t)&&function(){if(Fx=!1,Me.sessionRecording.recorder)dr=Me.sessionRecording.recorder;else if(!dr){var i=je?.[nN];typeof i=="function"&&(dr=i)}dr&&Yx()}(),qo("@dash0/frustration-signals",t)&&!Pg&&je&&kt&&(Pg=!0,Xx=Qb({maxCallsPerTenMinutes:32,maxCallsPerTenSeconds:4}),lv(Ff),sN(dN)),$1=!0}else vs("No telemetry endpoint configured. Aborting Dash0 Web SDK initialization process.")}else Ke("Stopping Dash0 Web SDK initialization. This browser does not support the necessary APIs.");else Ke("Looks like we are not running in a browser context. Stopping Dash0 Web SDK initialization.")}function qo(t,e){var n=e.enabledInstrumentations;return!n||n.includes(t)}function mN(t){for(var e={},n=0,s=Object.keys(t);n<s.length;n++){var l=s[n];t[l]!==void 0&&(e[l]=t[l])}return e}function hN(t,e){Ui(Me.signalAttributes,_g),t!=null&&$e(Me.signalAttributes,_g,t),Ui(Me.signalAttributes,oj),Ui(Me.signalAttributes,ij),Ui(Me.signalAttributes,rj),Ui(Me.signalAttributes,cj),Ui(Me.signalAttributes,uj)}function pN(t,e){$e(Me.signalAttributes,t,e)}function vN(t,e){if(Object.values(Ai).includes(t))vs("Unable to send custom event ".concat(t,". You are not allowed to use an internal event name while sending a custom event. Dropping event..."));else{var n=[];Ha(n),$e(n,Mi,t),e!=null&&e.title&&$e(n,"dash0.web.event.title",e.title),ov(n,e?.attributes),nc({timeUnixNano:e?.timestamp!=null?wi(e.timestamp):Go(),attributes:n,body:av(e?.data),severityText:e?.severity,severityNumber:e!=null&&e.severity?Li[e.severity]:void 0})}}function gN(t,e){if(Me.endpoints.length!==0)if(typeof t=="string"&&t.length!==0){var n;(function(s){zx({timeUnixNano:s.timeUnixNano,url:s.url,title:s.title,customAttributes:s.attributes,pageViewType:ox})})({timeUnixNano:Go(),title:t,url:n,attributes:void 0})}else Ke("startView requires a non-empty view name. Ignoring startView call.");else Ke("Dash0 SDK has not been initialized. Ignoring startView call.")}function _N(t){Ke("".concat("Initializing Dash0 Web SDK"," (via package)")),fN(t)}const Qx="mcp_bridge.usage_stats",Yg="mcp_bridge.install_id",yN="reaper-mcp-bridge-ui";function Zx(t){try{return localStorage.getItem(t)}catch{return null}}function Wx(t,e){try{localStorage.setItem(t,e)}catch{}}function bN(t){return t.demo?{on:!1,reason:"demo"}:t.configured?t.nav.globalPrivacyControl===!0||t.nav.doNotTrack==="1"?{on:!1,reason:"browser"}:t.stored==="0"?{on:!1,reason:"user"}:{on:!0}:{on:!1,reason:"unconfigured"}}function xN(t){const e={};for(const[n,s]of Object.entries(t))n!=="name"&&(e[`bridge_ui.${n}`]=s);return e}function SN(t){let e="/";try{e=new URL(t["url.full"]??"/","http://localhost").pathname}catch{}return{"url.full":e,"url.path":e}}let Xg=!1,fv=!1;function kN(){const t=Zx(Yg);if(t)return t;const e=crypto.randomUUID();return Wx(Yg,e),e}function Jx(t,e){const n=wN(t);return fv=n.on,!n.on||Xg||(Xg=!0,_N({serviceName:yN,serviceVersion:"0.70.1",endpoint:{url:"https://ingress.europe-west4.gcp.dash0-dev.com",authToken:"auth_qWTU9VhiQD5ADILLZKLuF5WiuZcAeGe8",dataset:"reaper-mcp"},enabledInstrumentations:["@dash0/web-vitals"],urlAttributeScrubber:SN,disableVcsDetection:!0}),hN(kN()),pN("bridge_ui.display_mode",NN()),window.addEventListener("error",s=>st({name:"page_error",type:Kg(s.error)})),window.addEventListener("unhandledrejection",s=>st({name:"page_error",type:Kg(s.reason)})),e&&e5(e)),n}function wN(t){const e=typeof navigator>"u"?{}:navigator;return bN({demo:t,stored:Zx(Qx),nav:e,configured:!0})}function jN(t,e){Wx(Qx,t?"1":"0");const n=Jx(e);return n.on&&st({name:"setting_changed",setting:"usage_stats",enabled:!0,source:"settings"}),n}function st(t){if(fv)try{vN(`bridge_ui.${t.name}`,{attributes:xN(t),severity:t.name==="page_error"||t.name==="plugin_publish_completed"&&t.outcome!=="published"?"ERROR":void 0})}catch{}}function e5(t){if(fv)try{gN(`/${t}`)}catch{}}function Kg(t){return t instanceof Error&&/^[A-Za-z]{1,40}$/.test(t.name)?t.name:"non_error"}function NN(){return new URLSearchParams(location.search).has("app")?"bridge_window":window.matchMedia?.("(display-mode: standalone)").matches?"installed_app":"browser_tab"}const t5=t=>typeof t=="boolean",TN=t=>typeof t=="string",n5=t=>t===null||typeof t=="string",EN=t=>t===null||typeof t=="number";function Yc(t){return JSON.stringify(t)}function Qg(t,e){if(t===null)return e;try{return JSON.parse(t)}catch{return e}}function $N(t,e,n,s,l,a=""){const i=new URLSearchParams(e);Yc(s)===Yc(l)?i.delete(n):i.set(n,Yc(s));const r=i.toString();return`${t}${r?`?${r}`:""}${a}`}const wc=new Set,s5=()=>wc.forEach(t=>t());let sa=null,Pf,ef=!1;function RN(t,e,n,s,l){const a=sa?.search??location.search;sa={search:new URL($N(location.pathname,a,t,e,n),location.href).search,push:(sa?.push??!1)||s==="push"},l>0&&!ef?(clearTimeout(Pf),Pf=setTimeout(qf,l)):ef||(ef=!0,queueMicrotask(qf)),s5()}function qf(){if(clearTimeout(Pf),ef=!1,!sa)return;const t=`${location.pathname}${sa.search}${location.hash}`;sa.push?history.pushState(history.state,"",t):history.replaceState(history.state,"",t),sa=null}function Zg(){clearTimeout(Pf),sa=null,s5()}function CN(t){return wc.add(t),wc.size===1&&(window.addEventListener("popstate",Zg),window.addEventListener("pagehide",qf)),()=>{wc.delete(t),wc.size===0&&(window.removeEventListener("popstate",Zg),window.removeEventListener("pagehide",qf))}}const MN=()=>sa?.search??location.search;function bl(t,e,n){const s=fe.c(9),l=n===void 0?{}:n,{navigationMode:a,validate:i,debounceMs:r}=l,c=a===void 0?"push":a,u=r===void 0?0:r,[d]=Q.useState(e),m=Q.useSyncExternalStore(CN,MN),f=Qg(new URLSearchParams(m).get(t),d),h=!i||i(f)?f:d;let g;s[0]!==u||s[1]!==d||s[2]!==t||s[3]!==c||s[4]!==i?(g=(p,v)=>{const _=v===void 0?c:v,x=Qg(new URLSearchParams(sa?.search??location.search).get(t),d),k=!i||i(x)?x:d,w=typeof p=="function"?p(k):p;Yc(w)!==Yc(k)&&RN(t,w,d,_,u)},s[0]=u,s[1]=d,s[2]=t,s[3]=c,s[4]=i,s[5]=g):g=s[5];const y=g;let b;return s[6]!==y||s[7]!==h?(b=[h,y],s[6]=y,s[7]=h,s[8]=b):b=s[8],b}function AN(t){if(!t||!(t.limit>0))return"ok";const e=t.stuck/t.limit;return e>=.8?"full":e>=.5?"filling":"ok"}function LN(t,e=[],n){const s=n===void 0?"":`;SET/EXTSTATE/MCPBridge/log_want/${n}`,l=e.map(a=>`;GET/EXTSTATE/MCPBridge/${a}`).join("");return`/_/SET/EXTSTATE/MCPBridge/ui_seen/${t}${s};GET/EXTSTATE/MCPBridge/status;GET/EXTSTATE/MCPBridge/history${l}`}function Io(t,e){const n=`EXTSTATE MCPBridge ${e} `,l=t.split(`
|
|
73
|
+
`).find(a=>a.startsWith(n))?.slice(n.length);if(!l)return null;for(const a of[l,IN(l)])try{return JSON.parse(a)}catch{}return null}function ON(t){const e=Io(t,"status");return e&&typeof e=="object"&&Array.isArray(e.recent)?e:null}function DN(t){const e=Io(t,"history");return e&&typeof e=="object"&&Array.isArray(e.b)&&e.size>0?e:null}function zN(t){const e=Io(t,"history_long");return e&&typeof e=="object"&&Array.isArray(e.tiers)?e:null}function BN(t){const e=Io(t,"log");return e&&Array.isArray(e.entries)?{req:String(e.req??""),entries:e.entries}:null}function IN(t){return t.replace(/\\(.)/g,(e,n)=>n==="t"?" ":n==="n"?`
|
|
74
|
+
`:n)}function UN(t,e,n){return t?n-e>3e3?"stale":"live":"offline"}function HN(t,e){return`/_/${t==="cfg_paused"?"SET/EXTSTATE":"SET/EXTSTATEPERSIST"}/MCPBridge/${t}/${e?1:0}`}function VN(t,e){return Math.max(0,t.findIndex(n=>n.value===e))}function l5(t,e,n){if(n===0)return t==="Escape"||t==="Tab"?{type:"close"}:{type:"none"};switch(t){case"ArrowDown":return{type:"move",index:Math.min(n-1,e+1)};case"ArrowUp":return{type:"move",index:Math.max(0,e-1)};case"Home":return{type:"move",index:0};case"End":return{type:"move",index:n-1};case"Enter":case" ":return{type:"select",index:e};case"Escape":case"Tab":return{type:"close"};default:return{type:"none"}}}function a5(t){return t==="ArrowDown"||t==="ArrowUp"||t==="Enter"||t===" "}function K(...t){return t.filter(Boolean).join(" ")}const GN="_combo_1dtrr_2",FN="_comboTrigger_1dtrr_3",PN="_comboList_1dtrr_10",qN="_comboChevron_1dtrr_11",YN="_comboOption_1dtrr_19",XN="_comboOptionHl_1dtrr_23",KN="_comboCheck_1dtrr_24",QN="_comboText_1dtrr_26",ZN="_comboLabel_1dtrr_27",WN="_comboHint_1dtrr_28",JN="_comboTriggerText_1dtrr_29",e9="_comboListFixed_1dtrr_30",t9="_comboGroup_1dtrr_31",n9="_comboHeading_1dtrr_32",s9="_comboOptionOff_1dtrr_33",nn={combo:GN,comboTrigger:FN,comboList:PN,comboChevron:qN,comboOption:YN,comboOptionHl:XN,comboCheck:KN,comboText:QN,comboLabel:ZN,comboHint:WN,comboTriggerText:JN,comboListFixed:e9,comboGroup:t9,comboHeading:n9,comboOptionOff:s9};function l9(t){const e=fe.c(24),{label:n,value:s,options:l,onChange:a,className:i}=t,r=i===void 0?"":i,[c,u]=Q.useState(!1),[d,m]=Q.useState(0),f=Q.useRef(null),h=Q.useRef(null),g=Q.useRef(null),y=Q.useId();let b;if(e[0]!==l||e[1]!==s){let T;e[3]!==s?(T=S=>S.value===s,e[3]=s,e[4]=T):T=e[4],b=l.find(T),e[0]=l,e[1]=s,e[2]=b}else b=e[2];const p=b;let v;e[5]!==l||e[6]!==s?(v=()=>{m(VN(l,s)),u(!0)},e[5]=l,e[6]=s,e[7]=v):v=e[7];const _=v,x=T=>{u(!1),T&&h.current?.focus()},k=T=>{const S=l[T];S&&a(S.value),x(!0)};let w,R;e[8]!==c?(w=()=>{if(!c)return;g.current?.focus();const T=S=>{f.current?.contains(S.target)||u(!1)};return document.addEventListener("mousedown",T),()=>document.removeEventListener("mousedown",T)},R=[c],e[8]=c,e[9]=w,e[10]=R):(w=e[9],R=e[10]),Q.useEffect(w,R);let j,N;e[11]!==d||e[12]!==y||e[13]!==c?(j=()=>{c&&document.getElementById(`${y}-opt-${d}`)?.scrollIntoView({block:"nearest"})},N=[c,d,y],e[11]=d,e[12]=y,e[13]=c,e[14]=j,e[15]=N):(j=e[14],N=e[15]),Q.useEffect(j,N);let E;e[16]!==r?(E=K(nn.combo,r),e[16]=r,e[17]=E):E=e[17];let C;e[18]!==c||e[19]!==_?(C=T=>{!c&&a5(T.key)&&(T.preventDefault(),_())},e[18]=c,e[19]=_,e[20]=C):C=e[20];const O=p?.label??s;let M;e[21]!==O?(M=o.jsx("span",{children:O}),e[21]=O,e[22]=M):M=e[22];let A;return e[23]===Symbol.for("react.memo_cache_sentinel")?(A=o.jsx("svg",{className:nn.comboChevron,viewBox:"0 0 16 16","aria-hidden":!0,children:o.jsx("path",{d:"M4 6l4 4 4-4",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})}),e[23]=A):A=e[23],o.jsxs("div",{className:E,ref:f,children:[o.jsxs("button",{ref:h,type:"button",className:nn.comboTrigger,"aria-haspopup":"listbox","aria-expanded":c,"aria-controls":c?`${y}-list`:void 0,"aria-label":`${n}: ${p?.label??s}`,onClick:()=>c?x(!1):_(),onKeyDown:C,children:[M,A]}),c&&o.jsx("ul",{ref:g,id:`${y}-list`,className:nn.comboList,role:"listbox","aria-label":n,tabIndex:-1,"aria-activedescendant":`${y}-opt-${d}`,onKeyDown:T=>{const S=l5(T.key,d,l.length);S.type!=="none"&&((S.type!=="close"||T.key==="Escape")&&T.preventDefault(),T.stopPropagation(),S.type==="move"?m(S.index):S.type==="select"?k(S.index):x(T.key==="Escape"))},children:l.map((T,S)=>o.jsxs("li",{id:`${y}-opt-${S}`,role:"option","aria-selected":T.value===s,className:K(nn.comboOption,S===d?nn.comboOptionHl:""),onMouseEnter:()=>m(S),onMouseDown:a9,onClick:()=>k(S),children:[o.jsx("span",{className:nn.comboCheck,"aria-hidden":!0,children:T.value===s&&o.jsx("svg",{viewBox:"0 0 16 16",children:o.jsx("path",{d:"M3.5 8.5l3 3 6-7",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}),o.jsxs("span",{className:nn.comboText,children:[o.jsx("span",{className:nn.comboLabel,children:T.label}),T.hint&&o.jsx("span",{className:nn.comboHint,children:T.hint})]})]},T.value))})]})}function a9(t){return t.preventDefault()}function o9(t){const e=fe.c(14),{label:n,triggerLabel:s,groups:l,className:a}=t,i=a===void 0?"":a,[r,c]=Q.useState(!1),[u,d]=Q.useState(0);let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m={top:0,left:0},e[0]=m):m=e[0];const[f,h]=Q.useState(m),g=Q.useRef(null),y=Q.useRef(null),b=Q.useRef(null),p=Q.useId(),v=l.filter(d9),_=v.flatMap(u9),x=()=>{const T=y.current?.getBoundingClientRect();T&&h({top:T.bottom+4,left:T.left}),d(Math.max(0,_.findIndex(c9))),c(!0)},k=T=>{c(!1),T&&y.current?.focus()},w=T=>{const S=_[T];!S||S.disabled||(k(!0),S.onPick())};let R,j;e[1]!==r?(R=()=>{if(!r)return;b.current?.focus();const T=S=>{g.current?.contains(S.target)||c(!1)};return document.addEventListener("mousedown",T),()=>document.removeEventListener("mousedown",T)},j=[r],e[1]=r,e[2]=R,e[3]=j):(R=e[2],j=e[3]),Q.useEffect(R,j);let N,E;e[4]!==u||e[5]!==p||e[6]!==r?(N=()=>{r&&document.getElementById(`${p}-opt-${u}`)?.scrollIntoView({block:"nearest"})},E=[r,u,p],e[4]=u,e[5]=p,e[6]=r,e[7]=N,e[8]=E):(N=e[7],E=e[8]),Q.useEffect(N,E);const C=v.map((T,S)=>v.slice(0,S).reduce(r9,0));let O;e[9]!==i?(O=K(nn.combo,i),e[9]=i,e[10]=O):O=e[10];let M;e[11]!==s?(M=o.jsx("span",{className:nn.comboTriggerText,children:s}),e[11]=s,e[12]=M):M=e[12];let A;return e[13]===Symbol.for("react.memo_cache_sentinel")?(A=o.jsx("svg",{className:nn.comboChevron,viewBox:"0 0 16 16","aria-hidden":!0,children:o.jsx("path",{d:"M4 6l4 4 4-4",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})}),e[13]=A):A=e[13],o.jsxs("div",{className:O,ref:g,children:[o.jsxs("button",{ref:y,type:"button",className:nn.comboTrigger,"aria-haspopup":"listbox","aria-expanded":r,"aria-controls":r?`${p}-list`:void 0,"aria-label":`${n}: ${s}`,onClick:()=>r?k(!1):x(),onKeyDown:T=>{!r&&a5(T.key)&&(T.preventDefault(),x())},children:[M,A]}),r&&o.jsx("div",{ref:b,id:`${p}-list`,className:K(nn.comboList,nn.comboListFixed),style:{top:f.top,left:f.left,maxHeight:`calc(100vh - ${f.top+8}px)`},role:"listbox","aria-label":n,tabIndex:-1,"aria-activedescendant":`${p}-opt-${u}`,onKeyDown:T=>{const S=l5(T.key,u,_.length);S.type!=="none"&&((S.type!=="close"||T.key==="Escape")&&T.preventDefault(),T.stopPropagation(),S.type==="move"?d(S.index):S.type==="select"?w(S.index):k(T.key==="Escape"))},children:v.map((T,S)=>o.jsxs("div",{role:"group","aria-labelledby":`${p}-g-${T.label}`,className:nn.comboGroup,children:[o.jsx("div",{id:`${p}-g-${T.label}`,role:"presentation",className:nn.comboHeading,children:T.label}),T.items.map(($,L)=>{const z=C[S]+L;return o.jsxs("div",{id:`${p}-opt-${z}`,role:"option","aria-selected":$.selected===!0,"aria-disabled":$.disabled||void 0,className:K(nn.comboOption,z===u?nn.comboOptionHl:"",$.disabled?nn.comboOptionOff:""),onMouseEnter:()=>d(z),onMouseDown:i9,onClick:()=>w(z),children:[o.jsx("span",{className:nn.comboCheck,"aria-hidden":!0,children:$.selected&&o.jsx("svg",{viewBox:"0 0 16 16",children:o.jsx("path",{d:"M3.5 8.5l3 3 6-7",fill:"none",stroke:"currentColor",strokeWidth:"1.8",strokeLinecap:"round",strokeLinejoin:"round"})})}),o.jsxs("span",{className:nn.comboText,children:[o.jsx("span",{className:nn.comboLabel,children:$.label}),$.hint&&o.jsx("span",{className:nn.comboHint,children:$.hint})]})]},$.key)})]},T.label))})]})}function i9(t){return t.preventDefault()}function r9(t,e){return t+e.items.length}function c9(t){return t.selected}function u9(t){return t.items}function d9(t){return t.items.length>0}function f9(){const t=fe.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":!0,children:o.jsx("path",{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"})}),t[0]=e):e=t[0],e}function m9(){const t=fe.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,children:[o.jsx("path",{d:"M6.6 1.5h2.8l.4 1.9 1.3.7 1.8-.7 1.4 2.4-1.4 1.3v1.6l1.4 1.3-1.4 2.4-1.8-.7-1.3.7-.4 1.9H6.6l-.4-1.9-1.3-.7-1.8.7-1.4-2.4 1.4-1.3V7.1L1.7 5.8l1.4-2.4 1.8.7 1.3-.7.4-1.9z",stroke:"currentColor",strokeWidth:"1.3",strokeLinejoin:"round"}),o.jsx("circle",{cx:"8",cy:"8",r:"2",stroke:"currentColor",strokeWidth:"1.3"})]}),t[0]=e):e=t[0],e}function h9(){const t=fe.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,children:o.jsx("path",{d:"M4 4l8 8M12 4l-8 8",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})}),t[0]=e):e=t[0],e}function p9(){const t=fe.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,children:[o.jsx("circle",{cx:"7",cy:"7",r:"4.5",stroke:"currentColor",strokeWidth:"1.5"}),o.jsx("path",{d:"M10.5 10.5L14 14",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}),t[0]=e):e=t[0],e}function v9(){const t=fe.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"currentColor","aria-hidden":!0,children:o.jsx("path",{d:"M8 0l1.8 5.2L15 7l-5.2 1.8L8 14l-1.8-5.2L1 7l5.2-1.8z"})}),t[0]=e):e=t[0],e}function g9(t){const e=fe.c(3),{className:n}=t;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("path",{d:"M6 3.5 10.5 8 6 12.5"}),e[0]=s):s=e[0];let l;return e[1]!==n?(l=o.jsx("svg",{className:n,width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":!0,children:s}),e[1]=n,e[2]=l):l=e[2],l}function _9(){const t=fe.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:o.jsx("path",{d:"M8 10V2.5M5 5.5l3-3 3 3M3 9.5v3a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-3"})}),t[0]=e):e=t[0],e}function y9(){const t=fe.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,children:[o.jsx("path",{d:"M2 5.5V2h3.5M10.5 2H14v3.5M14 10.5V14h-3.5M5.5 14H2v-3.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),o.jsx("circle",{cx:"8",cy:"8",r:"1.8",fill:"currentColor"})]}),t[0]=e):e=t[0],e}function b9(){const t=fe.c(1);let e;return t[0]===Symbol.for("react.memo_cache_sentinel")?(e=o.jsx("svg",{width:"12",height:"12",viewBox:"0 0 16 16",fill:"none","aria-hidden":!0,children:o.jsx("path",{d:"M1.5 3v10M14.5 3v10M4 8h8M6 5.5L3.8 8 6 10.5M10 5.5l2.2 2.5-2.2 2.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),t[0]=e):e=t[0],e}const x9="_mark_1i7uv_2",S9="_markArc_1i7uv_3",k9="_markDot_1i7uv_4",w9="_markGlow_1i7uv_5",j9="_markActive_1i7uv_6",N9="_markBtn_1i7uv_11",T9="_markLidRest_1i7uv_12",E9="_markLid_1i7uv_12",$9="_markBlink_1i7uv_25",R9="_markEye_1i7uv_26",Vl={mark:x9,markArc:S9,markDot:k9,markGlow:w9,markActive:j9,markBtn:N9,markLidRest:T9,markLid:E9,markBlink:$9,markEye:R9},C9=24,M9=18,A9=60;function o5(t){const e=fe.c(35),{active:n}=t,[s,l]=Q.useState(!1);let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={x:0,y:0},e[0]=a):a=e[0];const[i,r]=Q.useState(a),[c,u]=Q.useState(0),[d,m]=Q.useState(!1),f=Q.useRef(void 0);let h,g;e[1]===Symbol.for("react.memo_cache_sentinel")?(h=()=>()=>window.clearTimeout(f.current),g=[],e[1]=h,e[2]=g):(h=e[1],g=e[2]),Q.useEffect(h,g);let y,b;e[3]!==s?(y=()=>{if(!s)return;let F=0,P=0,X=null;const Y=V=>{F=performance.now(),r({x:(V.clientX/window.innerWidth-.5)*2,y:(V.clientY/window.innerHeight-.5)*2})},Z=V=>{const H=A9-(performance.now()-F);if(H<=0){Y(V);return}X=V,P||(P=window.setTimeout(()=>{P=0,X&&Y(X)},H))};return window.addEventListener("pointermove",Z),()=>{window.clearTimeout(P),window.removeEventListener("pointermove",Z)}},b=[s],e[3]=s,e[4]=y,e[5]=b):(y=e[4],b=e[5]),Q.useEffect(y,b);let p;e[6]===Symbol.for("react.memo_cache_sentinel")?(p=()=>{l(O9),r({x:0,y:0}),u(L9),m(!0),window.clearTimeout(f.current),f.current=window.setTimeout(()=>m(!1),260)},e[6]=p):p=e[6];const v=p;let _;e[7]!==i||e[8]!==s?(_=s?i:{x:0,y:0},e[7]=i,e[8]=s,e[9]=_):_=e[9];const x=_,k=n?Vl.markActive:"",w=d?Vl.markBlink:"";let R;e[10]!==k||e[11]!==w?(R=K(Vl.mark,k,w),e[10]=k,e[11]=w,e[12]=R):R=e[12];let j;e[13]===Symbol.for("react.memo_cache_sentinel")?(j=o.jsxs("linearGradient",{id:"mark-bg",x1:"0",y1:"0",x2:"1",y2:"1",children:[o.jsx("stop",{offset:"0",stopColor:"#1b1532"}),o.jsx("stop",{offset:"0.6",stopColor:"#0e0b18"}),o.jsx("stop",{offset:"1",stopColor:"#220d22"})]}),e[13]=j):j=e[13];let N;e[14]===Symbol.for("react.memo_cache_sentinel")?(N=o.jsxs("radialGradient",{id:"mark-glow",cx:"0.5",cy:"0.66",r:"0.42",children:[o.jsx("stop",{offset:"0",stopColor:"#ff6a4d",stopOpacity:"0.16"}),o.jsx("stop",{offset:"1",stopColor:"#ff6a4d",stopOpacity:"0"})]}),e[14]=N):N=e[14];let E;e[15]===Symbol.for("react.memo_cache_sentinel")?(E=o.jsxs("linearGradient",{id:"mark-dot",x1:"0",y1:"0",x2:"1",y2:"1",children:[o.jsx("stop",{offset:"0",stopColor:"#ffa24c"}),o.jsx("stop",{offset:"1",stopColor:"#ff4f5e"})]}),e[15]=E):E=e[15];let C,O,M,A,T;e[16]===Symbol.for("react.memo_cache_sentinel")?(C=o.jsxs("defs",{children:[j,N,E,o.jsx("clipPath",{id:"mark-eye",children:o.jsx("circle",{cx:"256",cy:"318",r:"58"})})]}),O=o.jsx("rect",{width:"512",height:"512",rx:"116",fill:"url(#mark-bg)"}),M=o.jsx("rect",{className:Vl.markGlow,width:"512",height:"512",rx:"116",fill:"url(#mark-glow)"}),A=o.jsx("rect",{x:"4",y:"4",width:"504",height:"504",rx:"112",fill:"none",stroke:"#fff",strokeOpacity:"0.08",strokeWidth:"8"}),T=o.jsx("path",{className:Vl.markArc,d:"M100 330 A156 156 0 0 1 412 330",fill:"none",strokeWidth:"56",strokeLinecap:"round"}),e[16]=C,e[17]=O,e[18]=M,e[19]=A,e[20]=T):(C=e[16],O=e[17],M=e[18],A=e[19],T=e[20]);const S=`translate(${x.x*C9}px, ${x.y*M9}px)`;let $;e[21]!==S?($={transform:S},e[21]=S,e[22]=$):$=e[22];let L;e[23]===Symbol.for("react.memo_cache_sentinel")?(L=o.jsx("circle",{className:Vl.markDot,cx:"256",cy:"318",r:"58"}),e[23]=L):L=e[23];let z;e[24]!==c?(z=o.jsx("g",{clipPath:"url(#mark-eye)",children:o.jsx("g",{className:Vl.markLidRest,children:o.jsx("ellipse",{className:Vl.markLid,cx:"256",cy:"180",rx:"74",ry:"80",fill:"#130f1f"},c)})}),e[24]=c,e[25]=z):z=e[25];let D;e[26]!==$||e[27]!==z?(D=o.jsxs("g",{className:Vl.markEye,style:$,children:[L,z]}),e[26]=$,e[27]=z,e[28]=D):D=e[28];let U;e[29]!==R||e[30]!==D?(U=o.jsxs("svg",{className:R,viewBox:"0 0 512 512","aria-hidden":!0,children:[C,O,M,A,T,D]}),e[29]=R,e[30]=D,e[31]=U):U=e[31];let I;return e[32]!==U||e[33]!==s?(I=o.jsx("button",{className:Vl.markBtn,onClick:v,"aria-label":"reaper-mcp","aria-pressed":s,children:U}),e[32]=U,e[33]=s,e[34]=I):I=e[34],I}function L9(t){return t+1}function O9(t){return!t}const D9="_md_3devl_1",z9="_mdTable_3devl_2",_0={md:D9,mdTable:z9};function B9(t){const e=fe.c(7),{source:n,className:s}=t;let l;e[0]!==s?(l=s?K(_0.md,s):_0.md,e[0]=s,e[1]=l):l=e[1];let a;e[2]!==n?(a=i5(n.replace(/\r\n?/g,`
|
|
75
|
+
`)),e[2]=n,e[3]=a):a=e[3];let i;return e[4]!==l||e[5]!==a?(i=o.jsx("div",{className:l,children:a}),e[4]=l,e[5]=a,e[6]=i):i=e[6],i}const I9=/^(https?:\/\/|mailto:)/i;function U9(t){const e=t.trim();return I9.test(e)?e:void 0}const R1=/^(\s*)([-*+]|\d+[.)])\s+(.*)$/,Wg=/^\s*\|?\s*:?-{2,}:?\s*(\|\s*:?-{2,}:?\s*)*\|?\s*$/,Jg=/^\s*([-*_])(\s*\1){2,}\s*$/;function i5(t){const e=t.split(`
|
|
76
|
+
`),n=[];let s=0;const l=()=>n.length;for(;s<e.length;){const a=e[s];if(!a.trim()){s++;continue}const i=a.match(/^\s*(`{3,}|~{3,})/);if(i){const u=[];for(s++;s<e.length&&!e[s].trim().startsWith(i[1]);)u.push(e[s++]);s++,n.push(o.jsx("pre",{children:o.jsx("code",{children:u.join(`
|
|
77
|
+
`)})},l()));continue}const r=a.match(/^\s*(#{1,6})\s+(.*?)\s*#*\s*$/);if(r){const d=`h${Math.min(r[1].length+2,6)}`;n.push(o.jsx(d,{children:la(r[2])},l())),s++;continue}if(Jg.test(a)){n.push(o.jsx("hr",{},l())),s++;continue}if(a.trim().startsWith("|")&&s+1<e.length&&Wg.test(e[s+1])){const u=e_(a),d=[];for(s+=2;s<e.length&&e[s].trim().startsWith("|");)d.push(e_(e[s++]));n.push(o.jsx("div",{className:_0.mdTable,children:o.jsxs("table",{children:[o.jsx("thead",{children:o.jsx("tr",{children:u.map((m,f)=>o.jsx("th",{children:la(m)},f))})}),o.jsx("tbody",{children:d.map((m,f)=>o.jsx("tr",{children:u.map((h,g)=>o.jsx("td",{children:la(m[g]??"")},g))},f))})]})},l()));continue}if(/^\s*>/.test(a)){const u=[];for(;s<e.length&&/^\s*>/.test(e[s]);)u.push(e[s++].replace(/^\s*>\s?/,""));n.push(o.jsx("blockquote",{children:i5(u.join(`
|
|
78
|
+
`))},l()));continue}if(R1.test(a)){const u=[];for(;s<e.length;){const d=e[s].match(R1);if(d)u.push({indent:d[1].replace(/\t/g," ").length,ordered:/\d/.test(d[2]),text:d[3]}),s++;else if(e[s].trim()&&/^\s{2,}/.test(e[s])&&u.length)u[u.length-1].text+=` ${e[s].trim()}`,s++;else break}n.push(H9(u,l()));continue}const c=[];for(;s<e.length&&e[s].trim()&&!R1.test(e[s])&&!/^\s*(#{1,6}\s|>|`{3,}|~{3,})/.test(e[s])&&!Jg.test(e[s])&&!(e[s].trim().startsWith("|")&&s+1<e.length&&Wg.test(e[s+1]));)c.push(e[s++]);n.push(o.jsx("p",{children:c.map((u,d)=>o.jsxs(Q.Fragment,{children:[d>0&&(/\s{2,}$/.test(c[d-1])?o.jsx("br",{}):" "),la(u.trim())]},d))},l()))}return n}function e_(t){return t.trim().replace(/^\|/,"").replace(/(?<!\\)\|$/,"").split(/(?<!\\)\|/).map(e=>e.trim().replace(/\\\|/g,"|"))}function H9(t,e){const n=t[0].indent,s=[];for(const a of t)a.indent>n&&s.length?s[s.length-1].children.push(a.text):s.push({text:a.text,children:[],ordered:a.ordered});const l=t[0].ordered?"ol":"ul";return o.jsx(l,{children:s.map((a,i)=>o.jsxs("li",{children:[la(a.text),a.children.length>0&&o.jsx("ul",{children:a.children.map((r,c)=>o.jsx("li",{children:la(r)},c))})]},i))},e)}const V9=[{re:/`([^`]+)`/,render:(t,e)=>o.jsx("code",{children:t[1]},e)},{re:/\[([^\]]+)\]\(([^()\s]+)\)/,render:(t,e)=>{const n=U9(t[2]);return n?o.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",children:la(t[1])},e):o.jsx(Q.Fragment,{children:la(t[1])},e)}},{re:/\*\*(.+?)\*\*|__(.+?)__/,render:(t,e)=>o.jsx("strong",{children:la(t[1]??t[2])},e)},{re:/(?<![*\w])\*(?!\s)(.+?)(?<!\s)\*(?!\*)|(?<![_\w])_(?!\s)(.+?)(?<!\s)_(?![_\w])/,render:(t,e)=>o.jsx("em",{children:la(t[1]??t[2])},e)}];function la(t){const e=[];let n=t;for(;n;){let s=null;for(const l of V9){const a=n.match(l.re);a&&a.index!==void 0&&(!s||a.index<(s.m.index??0))&&(s={m:a,render:l.render})}if(!s||s.m.index===void 0){e.push(n);break}s.m.index>0&&e.push(n.slice(0,s.m.index)),e.push(s.render(s.m,e.length)),n=n.slice(s.m.index+s.m[0].length)}return e}const G9="_notice_16p09_1",F9="_noticeText_16p09_11",P9="_noticeDot_16p09_12",C1={notice:G9,noticeText:F9,noticeDot:P9};function Gl(t){const e=fe.c(7),{tone:n,action:s,children:l}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=o.jsx("span",{className:C1.noticeDot,"aria-hidden":!0}),e[0]=a):a=e[0];let i;e[1]!==l?(i=o.jsx("span",{className:C1.noticeText,children:l}),e[1]=l,e[2]=i):i=e[2];let r;return e[3]!==s||e[4]!==i||e[5]!==n?(r=o.jsxs("div",{className:C1.notice,"data-tone":n,role:"status",children:[a,i,s]}),e[3]=s,e[4]=i,e[5]=n,e[6]=r):r=e[6],r}const r5=320,c5=.15,u5=.7,d5=400,q9=32,Y9=128;function mv(t){const e=Math.max(r5,t*c5);return{min:e,max:Math.max(e,t*u5)}}function Yf(t,e){const{min:n,max:s}=mv(e);return Math.min(s,Math.max(n,t))}function pd(t,e){return Yf(t===null?d5:t*e,e)}function t_(t,e){return e<=0?0:Math.round(Yf(t,e)/e*1e4)/1e4}function y0(t){const e=t===null?`${d5}px`:`${Math.round(t*1e4)/100}vw`;return`clamp(max(${r5}px, ${c5*100}vw), ${e}, ${u5*100}vw)`}function X9(t,e,n){return t+(e-n)}function K9(t,e,n,s){const l=e?Y9:q9,{min:a,max:i}=mv(s);switch(t){case"ArrowLeft":return Yf(n+l,s);case"ArrowRight":return Yf(n-l,s);case"Home":return a;case"End":return i;default:return null}}function Q9(t){if(t===null)return null;const e=Number(t);return Number.isFinite(e)&&e>0&&e<=1?e:null}const Z9="_resizeHandle_1uoua_2",W9={resizeHandle:Z9},b0="mcp_bridge.drawer_width";function f5(){const t=fe.c(8),[e,n]=Q.useState(J9);let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=c=>{n(c);try{c===null?localStorage.removeItem(b0):localStorage.setItem(b0,String(c))}catch{}},t[0]=s):s=t[0];const l=s;let a;t[1]!==e?(a=y0(e),t[1]=e,t[2]=a):a=t[2];let i;t[3]!==a?(i={width:a},t[3]=a,t[4]=i):i=t[4];let r;return t[5]!==e||t[6]!==i?(r={fraction:e,style:i,setFraction:l},t[5]=e,t[6]=i,t[7]=r):r=t[7],r}function J9(){try{return Q9(localStorage.getItem(b0))}catch{return null}}const eT=3,tT=new Set(["ArrowLeft","ArrowRight","Home","End"]);function m5(t){const e=fe.c(53),{fraction:n,onCommit:s}=t,l=Q.useRef(null),a=Q.useRef(null),i=Q.useRef(null),[r,c]=Q.useState(null),[u,d]=Q.useState(!1);let m;e[0]===Symbol.for("react.memo_cache_sentinel")?(m=()=>l.current?.parentElement??null,e[0]=m):m=e[0];const f=m;let h;e[1]===Symbol.for("react.memo_cache_sentinel")?(h=H=>{const W=f();W&&(i.current=H,W.style.width=y0(H),c(H))},e[1]=h):h=e[1];const g=h;let y;e[2]!==n?(y=()=>{i.current=null,c(null);const H=f();H&&(H.style.width=y0(n))},e[2]=n,e[3]=y):y=e[3];const b=y;let p;e[4]!==n||e[5]!==s||e[6]!==b?(p=()=>{const H=i.current;if(H===null)return;const W=window.innerWidth;if(Math.round(pd(H,W))===Math.round(pd(n,W)))return b();i.current=null,c(null),s(H)},e[4]=n,e[5]=s,e[6]=b,e[7]=p):p=e[7];const v=p;let _;e[8]===Symbol.for("react.memo_cache_sentinel")?(_=H=>{if(H.button!==0||!H.isPrimary||a.current)return;const W=f();if(W){H.preventDefault();try{H.currentTarget.setPointerCapture(H.pointerId)}catch{}a.current={pointerId:H.pointerId,startX:H.clientX,startWidth:W.getBoundingClientRect().width,moved:!1},d(!0)}},e[8]=_):_=e[8];const x=_;let k;e[9]===Symbol.for("react.memo_cache_sentinel")?(k=H=>{const W=a.current;!W||W.pointerId!==H.pointerId||!W.moved&&Math.abs(H.clientX-W.startX)<eT||(W.moved=!0,g(t_(X9(W.startWidth,W.startX,H.clientX),window.innerWidth)))},e[9]=k):k=e[9];const w=k;let R;e[10]!==v||e[11]!==b?(R=(H,W)=>{const J=a.current;!J||J.pointerId!==H.pointerId||(a.current=null,d(!1),H.currentTarget.hasPointerCapture(H.pointerId)&&H.currentTarget.releasePointerCapture(H.pointerId),W==="commit"?v():b())},e[10]=v,e[11]=b,e[12]=R):R=e[12];const j=R;let N;e[13]!==n?(N=H=>{if(H.altKey||H.ctrlKey||H.metaKey)return;const W=window.innerWidth,J=K9(H.key,H.shiftKey,pd(i.current??n,W),W);J!==null&&(H.preventDefault(),H.stopPropagation(),g(t_(J,W)))},e[13]=n,e[14]=N):N=e[14];const E=N,C=typeof window>"u"?0:window.innerWidth;let O,M,A,T,S,$,L,z;if(e[15]!==n||e[16]!==r){const H=mv(C);O=Math.round(pd(r??n,C)),z=l,M=W9.resizeHandle,A="separator",T="vertical",S="Resize sidebar",$=Math.round(H.min),L=Math.round(H.max),e[15]=n,e[16]=r,e[17]=O,e[18]=M,e[19]=A,e[20]=T,e[21]=S,e[22]=$,e[23]=L,e[24]=z}else O=e[17],M=e[18],A=e[19],T=e[20],S=e[21],$=e[22],L=e[23],z=e[24];const D=`${O} pixels wide`,U=u?"":void 0;let I,F,P;e[25]!==j?(I=H=>j(H,"commit"),F=H=>j(H,"revert"),P=H=>j(H,"commit"),e[25]=j,e[26]=I,e[27]=F,e[28]=P):(I=e[26],F=e[27],P=e[28]);let X;e[29]!==n||e[30]!==s?(X=()=>{i.current=null,c(null),n!==null&&s(null)},e[29]=n,e[30]=s,e[31]=X):X=e[31];let Y,Z;e[32]!==v?(Y=H=>tT.has(H.key)&&v(),Z=()=>!a.current&&v(),e[32]=v,e[33]=Y,e[34]=Z):(Y=e[33],Z=e[34]);let V;return e[35]!==O||e[36]!==E||e[37]!==M||e[38]!==A||e[39]!==T||e[40]!==S||e[41]!==$||e[42]!==L||e[43]!==D||e[44]!==U||e[45]!==I||e[46]!==F||e[47]!==P||e[48]!==X||e[49]!==Y||e[50]!==Z||e[51]!==z?(V=o.jsx("div",{ref:z,className:M,role:A,"aria-orientation":T,"aria-label":S,"aria-valuemin":$,"aria-valuemax":L,"aria-valuenow":O,"aria-valuetext":D,tabIndex:0,title:"Drag to resize · double-click to reset","data-resizing":U,onPointerDown:x,onPointerMove:w,onPointerUp:I,onPointerCancel:F,onLostPointerCapture:P,onDoubleClick:X,onKeyDown:E,onKeyUp:Y,onBlur:Z}),e[35]=O,e[36]=E,e[37]=M,e[38]=A,e[39]=T,e[40]=S,e[41]=$,e[42]=L,e[43]=D,e[44]=U,e[45]=I,e[46]=F,e[47]=P,e[48]=X,e[49]=Y,e[50]=Z,e[51]=z,e[52]=V):V=e[52],V}const nT="_toggle_1b0k2_1",sT="_toggleDisabled_1b0k2_8",lT="_toggleText_1b0k2_9",aT="_toggleLabel_1b0k2_10",oT="_toggleHint_1b0k2_11",Hi={toggle:nT,toggleDisabled:sT,toggleText:lT,toggleLabel:aT,toggleHint:oT,switch:"_switch_1b0k2_13"};function Yo(t){const e=fe.c(20),{label:n,hint:s,on:l,disabled:a,onChange:i}=t,r=a?Hi.toggleDisabled:"";let c;e[0]!==r?(c=K(Hi.toggle,r),e[0]=r,e[1]=c):c=e[1];let u;e[2]!==n?(u=o.jsx("span",{className:Hi.toggleLabel,children:n}),e[2]=n,e[3]=u):u=e[3];let d;e[4]!==s?(d=o.jsx("span",{className:Hi.toggleHint,children:s}),e[4]=s,e[5]=d):d=e[5];let m;e[6]!==u||e[7]!==d?(m=o.jsxs("span",{className:Hi.toggleText,children:[u,d]}),e[6]=u,e[7]=d,e[8]=m):m=e[8];let f;e[9]!==i?(f=b=>i(b.target.checked),e[9]=i,e[10]=f):f=e[10];let h;e[11]!==a||e[12]!==l||e[13]!==f?(h=o.jsx("input",{type:"checkbox",role:"switch",checked:l,disabled:a,onChange:f}),e[11]=a,e[12]=l,e[13]=f,e[14]=h):h=e[14];let g;e[15]===Symbol.for("react.memo_cache_sentinel")?(g=o.jsx("span",{className:Hi.switch,"aria-hidden":!0}),e[15]=g):g=e[15];let y;return e[16]!==c||e[17]!==m||e[18]!==h?(y=o.jsxs("label",{className:c,children:[m,h,g]}),e[16]=c,e[17]=m,e[18]=h,e[19]=y):y=e[19],y}const iT="_host_1q3ob_1",rT="_tip_1q3ob_2",cT="_line_1q3ob_8",x0={host:iT,tip:rT,line:cT};function uT(t){for(let e=t.parentElement;e;e=e.parentElement)if(getComputedStyle(e).overflowX!=="visible"){const s=e.getBoundingClientRect();return{left:s.left,right:s.right}}return{left:0,right:window.innerWidth}}function Qn(t){const e=fe.c(22);let n,s,l,a;e[0]!==t?({tip:a,className:s,children:n,...l}=t,e[0]=t,e[1]=n,e[2]=s,e[3]=l,e[4]=a):(n=e[1],s=e[2],l=e[3],a=e[4]);const[i,r]=Q.useState(!1),c=Q.useRef(null);let u,d;e[5]!==i?(u=()=>{const v=c.current;if(!i||!v)return;v.style.setProperty("--shift","0px");const _=v.getBoundingClientRect(),x=uT(v);let k=Math.min(0,x.right-4-_.right);_.left+k<x.left+4&&(k=x.left+4-_.left),v.style.setProperty("--shift",`${k}px`)},d=[i],e[5]=i,e[6]=u,e[7]=d):(u=e[6],d=e[7]),Q.useLayoutEffect(u,d);let m;e[8]!==a?(m=typeof a=="string"?[a]:a,e[8]=a,e[9]=m):m=e[9];const f=m;let h;e[10]!==s?(h=K(s,x0.host),e[10]=s,e[11]=h):h=e[11];let g,y;e[12]===Symbol.for("react.memo_cache_sentinel")?(g=()=>r(!0),y=()=>r(!1),e[12]=g,e[13]=y):(g=e[12],y=e[13]);let b;e[14]!==f||e[15]!==i?(b=i&&o.jsx("span",{ref:c,role:"tooltip",className:K(x0.tip,"mono"),children:f.map(dT)}),e[14]=f,e[15]=i,e[16]=b):b=e[16];let p;return e[17]!==n||e[18]!==l||e[19]!==h||e[20]!==b?(p=o.jsxs("span",{...l,className:h,onPointerEnter:g,onPointerLeave:y,children:[n,b]}),e[17]=n,e[18]=l,e[19]=h,e[20]=b,e[21]=p):p=e[21],p}function dT(t,e){return o.jsx("span",{className:x0.line,children:t},e)}const h5=Object.assign(l9,{Grouped:o9}),un={GitHub:f9,Gear:m9,Close:h9,Search:p9,Spark:v9,Chevron:g9,Share:_9,Focus:y9,Whole:b9},fT=1e3;function tf(){return typeof navigator<"u"&&/Mac|iPhone|iPad|iPod/.test(navigator.platform)}function p5(t){const e=t.toLowerCase().split("+");return{key:e[e.length-1]??"",mod:e.includes("mod")||e.includes("ctrl")||e.includes("meta"),shift:e.includes("shift"),alt:e.includes("alt")||e.includes("option")}}function v5(t){const e=[];return t.mod&&e.push("mod"),t.shift&&e.push("shift"),t.alt&&e.push("alt"),e.push(t.key),e.join("+")}const mT=t=>v5(p5(t));function hT(t){if(t.key==="Meta"||t.key==="Control"||t.key==="Alt"||t.key==="Shift")return null;const e=t.key.toLowerCase(),n=e.length===1&&e.toUpperCase()===e.toLowerCase();return v5({key:e,mod:tf()?t.metaKey:t.ctrlKey,shift:t.shiftKey&&!n,alt:t.altKey})}function hv(t){return t.map(e=>{const n=p5(e);return`${n.mod?tf()?"⌘":"Ctrl+":""}${n.shift?tf()?"⇧":"Shift+":""}${n.alt?tf()?"⌥":"Alt+":""}${n.key.toUpperCase()}`}).join(" ")}function n_(t,e){const n=e.filter(l=>l.keys.length>=t.length&&t.every((a,i)=>l.keys[i]===a)),s=n.find(l=>l.keys.length===t.length);return s&&n.length===1?{kind:"run",command:s}:n.length>0?s?{kind:"run",command:s}:{kind:"wait"}:{kind:"none"}}const s_=t=>t.replace(/…$/,"");function pv(t,e,n,s=!1){return t.flatMap(l=>{const a=s||l.contextual===!0;return[{command:l,trail:n,contextual:a},...e&&l.children?pv(l.children,!0,n?`${n} › ${s_(l.label)}`:s_(l.label),a):[]]})}function pT(t,e){const n=e.toLowerCase().split(/\s+/).filter(Boolean);if(!n.length)return t;const s=t.map((a,i)=>({e:a,i,label:a.command.label.toLowerCase(),h:`${a.trail??""} ${a.command.label} ${a.command.group??""} ${a.command.description??""}`.toLowerCase()})).filter(a=>n.every(i=>a.h.includes(i))),l=a=>n.every(i=>a.label.startsWith(i))?0:n.every(i=>a.label.includes(i))?1:2;return s.sort((a,i)=>l(a)-l(i)||Number(i.e.contextual??!1)-Number(a.e.contextual??!1)||a.i-i.i).map(a=>a.e)}function vT(t,e){if(e.trim())return t.length?[{label:"Results",entries:t}]:[];const n=new Map;for(const l of t){const a=l.command.group??"Commands";n.set(a,[...n.get(a)??[],l])}const s=l=>l.some(a=>a.contextual);return[...n].map(([l,a])=>({label:l,entries:a})).sort((l,a)=>Number(s(a.entries))-Number(s(l.entries)))}const gT="_scrim_1hgzr_1",_T="_leaving_1hgzr_2",yT="_dialog_1hgzr_7",bT="_inputRow_1hgzr_14",xT="_input_1hgzr_14",ST="_crumb_1hgzr_17",kT="_list_1hgzr_18",wT="_groupLabel_1hgzr_19",jT="_row_1hgzr_20",NT="_icon_1hgzr_22",TT="_label_1hgzr_23",ET="_kbd_1hgzr_24",$T="_empty_1hgzr_25",RT="_foot_1hgzr_26",CT="_trigger_1hgzr_27",MT="_helpHead_1hgzr_29",AT="_helpBody_1hgzr_30",LT="_helpRow_1hgzr_31",OT="_trail_1hgzr_32",DT="_menuMark_1hgzr_35",Tt={scrim:gT,leaving:_T,dialog:yT,inputRow:bT,input:xT,crumb:ST,list:kT,groupLabel:wT,row:jT,icon:NT,label:TT,kbd:ET,empty:$T,foot:RT,trigger:CT,helpHead:MT,helpBody:AT,helpRow:LT,trail:OT,menuMark:DT};function zT(t){const e=fe.c(57),{commands:n,closing:s,onClose:l}=t,[a,i]=Q.useState("");let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=[],e[0]=r):r=e[0];const[c,u]=Q.useState(r),[d,m]=Q.useState(0),f=Q.useRef(null),h=Q.useRef(null),g=Q.useId(),y=c[c.length-1]??null,b=y?.children??n;let p;if(e[1]!==b||e[2]!==a){let ie;e[4]!==a?(ie=a.trim(),e[4]=a,e[5]=ie):ie=e[5],p=pT(pv(b,ie!==""),a),e[1]=b,e[2]=a,e[3]=p}else p=e[3];const v=p;let _;e[6]!==v||e[7]!==a?(_=vT(v,a),e[6]=v,e[7]=a,e[8]=_):_=e[8];const x=_,k=x.flatMap(BT),w=Math.min(d,k.length-1);let R,j;e[9]===Symbol.for("react.memo_cache_sentinel")?(R=()=>{f.current?.focus();const ie=document.activeElement;return()=>{(!document.activeElement||document.activeElement===document.body)&&ie?.focus?.()}},j=[],e[9]=R,e[10]=j):(R=e[9],j=e[10]),Q.useEffect(R,j);let N;e[11]===Symbol.for("react.memo_cache_sentinel")?(N=()=>{h.current?.querySelector('[aria-selected="true"]')?.scrollIntoView({block:"nearest"})},e[11]=N):N=e[11],Q.useEffect(N,[w,k.length]);let E;e[12]!==l||e[13]!==c?(E=ie=>{const{command:de}=ie;de.children?(u([...c,de]),i(""),m(0)):(l(),queueMicrotask(()=>de.onSelect?.()))},e[12]=l,e[13]=c,e[14]=E):E=e[14];const C=E;let O;e[15]!==l||e[16]!==c?(O=()=>{c.length?(u(c.slice(0,-1)),i(""),m(0)):l()},e[15]=l,e[16]=c,e[17]=O):O=e[17];const M=O,A=ie=>{if(ie.key==="ArrowDown"||ie.key==="ArrowUp")ie.preventDefault(),k.length&&m((w+(ie.key==="ArrowDown"?1:-1)+k.length)%k.length);else if(ie.key==="Enter"){ie.preventDefault();const de=k[w];de&&C(de)}else if(ie.key==="Escape")ie.preventDefault(),ie.stopPropagation(),M();else if(ie.key==="ArrowRight"||ie.key==="ArrowLeft"){const de=ie.currentTarget.querySelector("input");if(!de||de.selectionStart!==de.selectionEnd)return;const xe=de.selectionStart===de.value.length,Ne=de.selectionStart===0,Te=k[w];ie.key==="ArrowRight"&&xe&&Te?.command.children?(ie.preventDefault(),C(Te)):ie.key==="ArrowLeft"&&Ne&&c.length&&(ie.preventDefault(),M())}else ie.key==="Backspace"&&!a&&c.length&&M()},T=s&&Tt.leaving;let S;e[18]!==T?(S=K(Tt.scrim,T),e[18]=T,e[19]=S):S=e[19];let $;e[20]!==l?($=ie=>ie.target===ie.currentTarget&&l(),e[20]=l,e[21]=$):$=e[21];const L=Tt,z="dialog",D="true",U="Command palette";let I;e[22]!==M||e[23]!==y?(I=y&&o.jsx("button",{className:Tt.crumb,onClick:M,title:"Back (Esc)",children:y.label.replace(/…$/,"")}),e[22]=M,e[23]=y,e[24]=I):I=e[24];const F=`${g}-list`,P=k[w]?`${g}-${k[w].command.id}`:void 0;let X;e[25]!==y?(X=y?y.label.replace(/…$/,""):"Type a command or search…",e[25]=y,e[26]=X):X=e[26];let Y;e[27]===Symbol.for("react.memo_cache_sentinel")?(Y=ie=>{i(ie.target.value),m(0)},e[27]=Y):Y=e[27];let Z;e[28]!==a||e[29]!==F||e[30]!==P||e[31]!==X?(Z=o.jsx("input",{ref:f,className:Tt.input,role:"combobox","aria-expanded":"true","aria-controls":F,"aria-activedescendant":P,"aria-label":"Search commands",placeholder:X,value:a,onChange:Y,spellCheck:!1,autoComplete:"off"}),e[28]=a,e[29]=F,e[30]=P,e[31]=X,e[32]=Z):Z=e[32];let V;e[33]!==I||e[34]!==Z?(V=o.jsxs("div",{className:Tt.inputRow,children:[I,Z]}),e[33]=I,e[34]=Z,e[35]=V):V=e[35];const H=Tt,W="listbox",J=`${g}-list`,ce=k.length===0&&o.jsxs("div",{className:Tt.empty,children:["No command matches “",a.trim(),"”."]}),ee=x.map(ie=>o.jsxs("div",{role:"group","aria-label":ie.label,children:[o.jsx("div",{className:Tt.groupLabel,children:ie.label}),ie.entries.map(de=>{const{command:xe,trail:Ne}=de,Te=k.indexOf(de),Ae=xe.children!==void 0;return o.jsxs("div",{id:`${g}-${xe.id}`,role:"option","aria-selected":Te===w,"aria-haspopup":Ae?"menu":void 0,"data-menu":Ae?"":void 0,className:Tt.row,onMouseMove:()=>Te!==w&&m(Te),onClick:()=>C(de),children:[xe.icon&&o.jsx("span",{className:Tt.icon,children:xe.icon}),o.jsxs("span",{className:Tt.label,children:[Ne&&o.jsxs("span",{className:Tt.trail,children:[Ne," › "]}),xe.label]}),xe.shortcut?o.jsx("kbd",{className:Tt.kbd,children:hv(xe.shortcut)}):xe.hint?o.jsx("kbd",{className:Tt.kbd,children:xe.hint}):null,Ae&&o.jsxs("span",{className:Tt.menuMark,title:"Opens a menu",children:[xe.children?.length,o.jsx("svg",{viewBox:"0 0 16 16",width:"12",height:"12","aria-hidden":"true",children:o.jsx("path",{d:"M6 3.5 10.5 8 6 12.5",fill:"none",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})]})]},xe.id)})]},ie.label));let he;e[36]!==H.list||e[37]!==J||e[38]!==ce||e[39]!==ee?(he=o.jsxs("div",{className:H.list,role:W,id:J,ref:h,children:[ce,ee]}),e[36]=H.list,e[37]=J,e[38]=ce,e[39]=ee,e[40]=he):he=e[40];let pe,G,ae,oe;e[41]===Symbol.for("react.memo_cache_sentinel")?(pe=o.jsxs("span",{children:[o.jsx("kbd",{className:Tt.kbd,children:"↑↓"})," move"]}),G=o.jsxs("span",{children:[o.jsx("kbd",{className:Tt.kbd,children:"↵"})," run"]}),ae=o.jsxs("span",{children:[o.jsx("kbd",{className:Tt.kbd,children:"←→"})," menus"]}),oe=o.jsx("kbd",{className:Tt.kbd,children:"Esc"}),e[41]=pe,e[42]=G,e[43]=ae,e[44]=oe):(pe=e[41],G=e[42],ae=e[43],oe=e[44]);const ye=c.length?"back":"close";let _e;e[45]!==ye?(_e=o.jsxs("div",{className:Tt.foot,children:[pe,G,ae,o.jsxs("span",{children:[oe," ",ye]})]}),e[45]=ye,e[46]=_e):_e=e[46];let ne;e[47]!==A||e[48]!==L.dialog||e[49]!==V||e[50]!==he||e[51]!==_e?(ne=o.jsxs("div",{className:L.dialog,role:z,"aria-modal":D,"aria-label":U,onKeyDown:A,children:[V,he,_e]}),e[47]=A,e[48]=L.dialog,e[49]=V,e[50]=he,e[51]=_e,e[52]=ne):ne=e[52];let te;return e[53]!==S||e[54]!==$||e[55]!==ne?(te=o.jsx("div",{className:S,onMouseDown:$,children:ne}),e[53]=S,e[54]=$,e[55]=ne,e[56]=te):te=e[56],te}function BT(t){return t.entries}function IT(t){const e=fe.c(39),{commands:n,closing:s,onClose:l}=t,a=Q.useRef(null);let i,r;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=()=>{const w=document.activeElement;return a.current?.focus(),()=>w?.focus?.()},r=[],e[0]=i,e[1]=r):(i=e[0],r=e[1]),Q.useEffect(i,r);let c,u,d,m,f,h,g,y,b,p,v;if(e[2]!==s||e[3]!==n||e[4]!==l){const w=pv(n,!0).map(GT).filter(VT),R=new Map;for(const E of w)R.set(E.group??"Commands",[...R.get(E.group??"Commands")??[],E]);const j=s&&Tt.leaving;e[16]!==j?(d=K(Tt.scrim,j),e[16]=j,e[17]=d):d=e[17],e[18]!==l?(m=E=>E.target===E.currentTarget&&l(),e[18]=l,e[19]=m):m=e[19],g=a,y=-1,b=Tt.dialog,p="dialog",v="true",c="Keyboard shortcuts";let N;e[20]===Symbol.for("react.memo_cache_sentinel")?(N=o.jsx("b",{children:"Keyboard shortcuts"}),e[20]=N):N=e[20],e[21]!==l?(u=o.jsxs("div",{className:Tt.helpHead,children:[N,o.jsx("button",{className:"icon-btn",onClick:l,"aria-label":"Close",title:"Close (Esc)",children:"×"})]}),e[21]=l,e[22]=u):u=e[22],f=Tt.helpBody,h=[...R].map(UT),e[2]=s,e[3]=n,e[4]=l,e[5]=c,e[6]=u,e[7]=d,e[8]=m,e[9]=f,e[10]=h,e[11]=g,e[12]=y,e[13]=b,e[14]=p,e[15]=v}else c=e[5],u=e[6],d=e[7],m=e[8],f=e[9],h=e[10],g=e[11],y=e[12],b=e[13],p=e[14],v=e[15];let _;e[23]!==f||e[24]!==h?(_=o.jsx("div",{className:f,children:h}),e[23]=f,e[24]=h,e[25]=_):_=e[25];let x;e[26]!==c||e[27]!==u||e[28]!==_||e[29]!==g||e[30]!==y||e[31]!==b||e[32]!==p||e[33]!==v?(x=o.jsxs("div",{ref:g,tabIndex:y,className:b,role:p,"aria-modal":v,"aria-label":c,children:[u,_]}),e[26]=c,e[27]=u,e[28]=_,e[29]=g,e[30]=y,e[31]=b,e[32]=p,e[33]=v,e[34]=x):x=e[34];let k;return e[35]!==d||e[36]!==m||e[37]!==x?(k=o.jsx("div",{className:d,onMouseDown:m,children:x}),e[35]=d,e[36]=m,e[37]=x,e[38]=k):k=e[38],k}function UT(t){const[e,n]=t;return o.jsxs("section",{"aria-label":e,children:[o.jsx("div",{className:Tt.groupLabel,children:e}),n.map(HT)]},e)}function HT(t){return o.jsxs("div",{className:Tt.helpRow,children:[o.jsx("span",{className:Tt.label,children:t.label}),o.jsx("kbd",{className:Tt.kbd,children:t.shortcut?hv(t.shortcut):t.hint})]},t.id)}function VT(t){return t.shortcut||t.hint}function GT(t){return t.command}const g5=Q.createContext(null),_5=Q.createContext(null),FT=()=>Q.useContext(g5),y5=()=>Q.useContext(_5),PT=120,qT=t=>!!(t&&(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.tagName==="SELECT"||t.isContentEditable));function YT(t){const e=fe.c(33),{children:n}=t,[s,l]=Q.useState(QT),[a,i]=Q.useState(!1),[r,c]=Q.useState(!1),[u,d]=Q.useState(!1),m=Q.useRef(void 0);let f;e[0]===Symbol.for("react.memo_cache_sentinel")?(f=D=>(l(U=>new Map(U).set(D.id,D)),()=>l(U=>{if(U.get(D.id)!==D)return U;const I=new Map(U);return I.delete(D.id),I})),e[0]=f):f=e[0];const h=f;let g;e[1]===Symbol.for("react.memo_cache_sentinel")?(g={register:h},e[1]=g):g=e[1];const y=g;let b;e[2]!==s?(b=[...s.values()],e[2]=s,e[3]=b):b=e[3];const p=b;let v;e[4]===Symbol.for("react.memo_cache_sentinel")?(v=D=>{clearTimeout(m.current),d(!1),i(D==="palette"),c(D==="help")},e[4]=v):v=e[4];const _=v;let x;e[5]===Symbol.for("react.memo_cache_sentinel")?(x=()=>{clearTimeout(m.current),d(!0),m.current=setTimeout(()=>{i(!1),c(!1),d(!1)},PT)},e[5]=x):x=e[5];const k=x;let w;e[6]===Symbol.for("react.memo_cache_sentinel")?(w=D=>D?_("palette"):k(),e[6]=w):w=e[6];let R;e[7]===Symbol.for("react.memo_cache_sentinel")?(R=D=>D?_("help"):k(),e[7]=R):R=e[7];let j;e[8]!==r||e[9]!==a?(j={open:a,setOpen:w,helpOpen:r,setHelpOpen:R},e[8]=r,e[9]=a,e[10]=j):j=e[10];const N=j;let E;e[11]===Symbol.for("react.memo_cache_sentinel")?(E=[],e[11]=E):E=e[11];const C=Q.useRef(E),O=Q.useRef(void 0);let M;e[12]!==u||e[13]!==s||e[14]!==r||e[15]!==a?(M=D=>{const U=hT(D);if(U===null)return;if(U==="mod+k"){D.preventDefault(),C.current=[],a&&!u?k():_("palette");return}if(a||r||D.defaultPrevented||qT(document.activeElement)){r&&U==="escape"&&k();return}const I=[...s.values()].filter(KT).map(XT);let F=[...C.current,U],P=n_(F,I);if(P.kind==="none"&&C.current.length>0&&(F=[U],P=n_(F,I)),clearTimeout(O.current),P.kind==="wait"){D.preventDefault(),C.current=F,O.current=setTimeout(()=>C.current=[],fT);return}C.current=[],P.kind==="run"&&(D.preventDefault(),P.command.command.onSelect?.())},e[12]=u,e[13]=s,e[14]=r,e[15]=a,e[16]=M):M=e[16];const A=Q.useEffectEvent(M);let T;e[17]!==A?(T=()=>{const D=U=>A(U);return window.addEventListener("keydown",D),()=>{window.removeEventListener("keydown",D),clearTimeout(O.current),clearTimeout(m.current)}},e[17]=A,e[18]=T):T=e[18];let S;e[19]===Symbol.for("react.memo_cache_sentinel")?(S=[],e[19]=S):S=e[19],Q.useEffect(T,S);let $;e[20]!==u||e[21]!==p||e[22]!==a?($=a&&o.jsx(zT,{commands:p,closing:u,onClose:k}),e[20]=u,e[21]=p,e[22]=a,e[23]=$):$=e[23];let L;e[24]!==u||e[25]!==r||e[26]!==p?(L=r&&o.jsx(IT,{commands:p,closing:u,onClose:k}),e[24]=u,e[25]=r,e[26]=p,e[27]=L):L=e[27];let z;return e[28]!==n||e[29]!==N||e[30]!==$||e[31]!==L?(z=o.jsx(g5.Provider,{value:y,children:o.jsxs(_5.Provider,{value:N,children:[n,$,L]})}),e[28]=n,e[29]=N,e[30]=$,e[31]=L,e[32]=z):z=e[32],z}function XT(t){return{command:t,keys:(t.shortcut??[]).map(mT)}}function KT(t){return t.shortcut&&t.onSelect}function QT(){return new Map}function ZT(){const t=fe.c(6),e=y5();if(!e)return null;let n;t[0]!==e?(n=()=>e.setOpen(!0),t[0]=e,t[1]=n):n=t[1];let s;t[2]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("kbd",{className:Tt.kbd,children:hv(["mod+k"])}),t[2]=s):s=t[2];let l;return t[3]!==n||t[4]!==s?(l=o.jsx("button",{className:Tt.trigger,onClick:n,title:"Command palette","aria-label":"Command palette",children:s}),t[3]=n,t[4]=s,t[5]=l):l=t[5],l}function mt(t,e){const n=fe.c(19),s=e===void 0?!0:e,l=FT(),a=Q.useRef(t);let i;n[0]!==t?(i=()=>{a.current=t},n[0]=t,n[1]=i):i=n[1],Q.useEffect(i);const r=l?.register;let c;n[2]!==t.shortcut?(c=t.shortcut?.join(" "),n[2]=t.shortcut,n[3]=c):c=n[3];const u=c;let d;n[4]!==t.children?(d=t.children?.map(WT).join(" "),n[4]=t.children,n[5]=d):d=n[5];const m=d;let f;n[6]!==s||n[7]!==r?(f=()=>{if(!(!r||!s))return r(JT(a))},n[6]=s,n[7]=r,n[8]=f):f=n[8];let h;n[9]!==m||n[10]!==t.description||n[11]!==t.group||n[12]!==t.hint||n[13]!==t.id||n[14]!==t.label||n[15]!==s||n[16]!==r||n[17]!==u?(h=[r,s,t.id,t.label,t.description,t.group,t.hint,u,m],n[9]=m,n[10]=t.description,n[11]=t.group,n[12]=t.hint,n[13]=t.id,n[14]=t.label,n[15]=s,n[16]=r,n[17]=u,n[18]=h):h=n[18],Q.useEffect(f,h)}function WT(t){return t.id}function JT(t){const e=()=>t.current;return{id:t.current.id,get label(){return e().label},get description(){return e().description},get icon(){return e().icon},get group(){return e().group},get contextual(){return e().contextual},get shortcut(){return e().shortcut},get hint(){return e().hint},get children(){return e().children},onSelect:()=>e().onSelect?.()}}function fa(t){try{return localStorage.getItem(t)}catch{return null}}function xl(t,e){try{localStorage.setItem(t,e)}catch{}}const Co=6e4,bu=60*Co,S0=24*bu,Mo=[{key:"5m",label:"Last 5 minutes",ms:5*Co,bars:30},{key:"10m",label:"Last 10 minutes",ms:10*Co,bars:60},{key:"30m",label:"Last 30 minutes",ms:30*Co,bars:60},{key:"1h",label:"Last hour",ms:bu,bars:60},{key:"6h",label:"Last 6 hours",ms:6*bu,bars:72},{key:"24h",label:"Last 24 hours",ms:S0,bars:96},{key:"7d",label:"Last 7 days",ms:7*S0,bars:168}],b5="mcp-bridge-range";function x5(t){return t<Co?`${t/1e3} s`:t<bu?`${t/Co} min`:`${t/bu} h`}const eE=Mo.map(t=>({value:t.key,label:t.label,hint:`${x5(t.ms/t.bars)} per bar`})),S5=t=>Mo.find(e=>e.key===t)??Mo[2],k5=t=>Mo.some(e=>e.key===t);function tE(){const t=fa(b5);return k5(t)?t:"30m"}function nE(t){const e=Math.max(0,Math.floor(t/1e3)),n=Math.floor(e/86400),s=Math.floor(e%86400/3600),l=Math.floor(e%3600/60);return n>0?`${n}d ${s}h`:s>0?`${s}h ${l}m`:l>0?`${l}m ${e%60}s`:`${e}s`}function oo(t){return t<1?`${t.toFixed(2)} ms`:t<100?`${t.toFixed(1)} ms`:`${Math.round(t)} ms`}function Oa(t){return t<1500?"now":t<6e4?`${Math.floor(t/1e3)}s ago`:t<36e5?`${Math.floor(t/6e4)}m ago`:t<864e5?`${Math.floor(t/36e5)}h ago`:`${Math.floor(t/864e5)}d ago`}function w5(t,e){const n=new Date(t),s=new Date(e);s.setHours(0,0,0,0);const l=new Date(n);l.setHours(0,0,0,0);const a=Math.round((s.getTime()-l.getTime())/864e5);return a<=0?"Today":a===1?"Yesterday":n.toLocaleDateString([],{month:"short",day:"numeric",...n.getFullYear()!==s.getFullYear()?{year:"2-digit"}:{}})}function sE(t){if(!t)return null;try{return JSON.stringify(JSON.parse(t),null,2)}catch{return`${t}…`}}function lE(t,e,n=0){const s=new Map;for(const l of e)l.n>n&&s.set(l.n,l);for(const l of t)s.set(l.n,l);return[...s.values()].sort((l,a)=>a.n-l.n).slice(0,Tm)}function aE(t,e){return e?t.map(n=>n.end<=e?{...n,total:0,errors:0,slow:0,avgMs:null}:n):t}function j5(t){if(t.length===0)return null;const e=t.map(s=>s.ms).sort((s,l)=>s-l);return{avg:e.reduce((s,l)=>s+l,0)/e.length,p95:e[Math.min(e.length-1,Math.floor(e.length*.95))],max:e[e.length-1]}}function oE(t,e){return t.filter(n=>e-n.t<=6e4).length}const Tm=1e3;function iE(t,e){const n=t[0]?.n??0,s=e.filter(l=>l.n>n);return s.length===0?t:[...s,...t].slice(0,Tm)}const N5=61;function rE(t,e){const n={commands:[],errors:[],latency:[],loop:[]};for(let s=1;s<t.length;s++){const l=t[s-1],a=t[s];n.commands.push(Math.max(0,a.commands-l.commands)),n.errors.push(Math.max(0,a.errors-l.errors));const i=e.filter(r=>r.t>l.t&&r.t<=a.t);n.latency.push(i.length?i.reduce((r,c)=>r+c.ms,0)/i.length:null),n.loop.push(a.deferMs)}return n}const cE={read_track_meters:{kind:"meters",fields:["peakL","peakR","rmsL","rmsR"]},read_track_lufs:{kind:"lufs",fields:["integrated","shortTerm","momentary","truePeakL","truePeakR","duration"]},read_track_correlation:{kind:"correlation",fields:["correlation","stereoWidth","midLevel","sideLevel"]},read_track_crest:{kind:"crest",fields:["crestFactor","peakLevel","rmsLevel"]},read_track_spectrum:{kind:"spectrum",fields:["peakDb","rmsDb","fftSize","sampleRate"]},render_track_to_wav:{kind:"waveform",fields:["peakDb","rmsDb","clipped","durationSeconds","channels"]},analyze_track_offline:{kind:"offline",fields:["lufs","lra","tp","peak","crest","dur","sib"]},analyze_audio_file:{kind:"offline",fields:["lufs","lra","tp","peak","crest","dur","sib"]},measure_track_alignment:{kind:"alignment",fields:["delayMs","samples","corr","inv","cur","offset","phase","warn"]},analyze_track_aesthetics:{kind:"aesthetics",fields:["pq","pc","ce","cu","lufs","dur"]},detect_key:{kind:"key",fields:["r","conf"]},detect_chords:{kind:"chords",fields:["start","end","more"]},analyze_loudness_curve:{kind:"curve",fields:["lufs","tp","lra","plr","maxM","target","overS","start","step"]},analyze_stereo_bands:{kind:"stereo",fields:["dur"]},measure_masking:{kind:"masking",fields:[]},separate_stems:{kind:"stems",fields:["secs","proc","inserted","muted"]}},fc=t=>Array.isArray(t)&&t.length>=2&&t.every(e=>typeof e=="number");function Em(t){if(t)try{return JSON.parse(t)}catch{return t}}const l_=t=>{const e=Em(t.p);return e&&typeof e=="object"?e.trackIndex:void 0};function uE(t,e,n=30){if(!Da(e))return[];const s=l_(e),l=t.filter(r=>r.c===e.c&&l_(r)===s&&Da(r)!==null),a=l.findIndex(r=>r.n===e.n),i=Math.max(0,Math.min(a-Math.floor(n/2),l.length-n));return l.slice(i,i+n)}function Da(t){const e=cE[t.c];if(!e||!t.ok||!t.r)return null;const n={kind:e.kind};for(const r of e.fields)typeof t.r[r]=="number"&&(n[r]=t.r[r]);if(e.kind==="spectrum"){if(!fc(t.r.bands))return null;n.bands=t.r.bands}if(e.kind==="offline"||e.kind==="alignment"||e.kind==="aesthetics"||e.kind==="curve"||e.kind==="stereo"||e.kind==="stems")for(const r of["name","ref","term","model","device","folder"])typeof t.r[r]=="string"&&(n[r]=t.r[r]);const s=t.r,l=r=>typeof r=="number"&&Number.isFinite(r)?r:null,a=r=>Array.isArray(r)?r.filter(c=>Array.isArray(c)):[],i=r=>Array.isArray(r)&&typeof r[0]=="number"&&typeof r[1]=="number"?[r[0],r[1],l(r[2])]:null;if(e.kind==="curve"){if(!fc(s.curve))return null;n.curve=s.curve,n.start=typeof s.start=="number"?s.start:0,n.loud=i(s.loud),n.quiet=i(s.quiet),n.over=a(s.over).map(i).filter(r=>r!==null)}if(e.kind==="stereo"){const r=a(s.bands).filter(c=>typeof c[0]=="string").map(c=>[c[0],...c.slice(1,5).map(l)]);if(r.length===0)return null;n.bands=r,n.flags=Array.isArray(s.flags)?s.flags.filter(c=>typeof c=="string"):[]}if(e.kind==="masking"){if(!fc(s.hz)||!Array.isArray(s.tracks))return null;n.tracks=s.tracks.map(String),n.hz=s.hz,n.pairs=a(s.pairs).filter(r=>Array.isArray(r[3])).map(r=>[String(r[0]),String(r[1]),l(r[2])??0,r[3].map(c=>l(c)??0)]),n.conflicts=a(s.conflicts).map(r=>[String(r[0]),String(r[1]),l(r[2]),l(r[3]),typeof r[4]=="string"?r[4]:""])}if(e.kind==="stems"&&(n.stems=a(s.stems).filter(r=>typeof r[0]=="string").map(r=>[r[0],l(r[1]),l(r[2])]),n.stems.length===0))return null;if(e.kind==="offline"){if(typeof s.lufs!="number")return null;const r=u=>Array.isArray(u)?u.map(d=>typeof d=="number"?d:null):[],c=(u,d)=>Array.isArray(u)?u.filter(m=>Array.isArray(m)&&m.length===d&&m.every(f=>typeof f=="number")):[];if(n.sections=c(s.sections,3),n.res=c(s.res,2),n.bands=r(s.bands),s.ref&&typeof s.ref=="object"){const u=s.ref;n.ref={...typeof u.lufs=="number"?{lufs:u.lufs}:{},...typeof u.delta=="number"?{delta:u.delta}:{},bands:r(u.bands)}}}if(e.kind==="key"){const{chroma:r,alt:c}=t.r;if(!Array.isArray(r)||r.length!==12||!r.every(u=>typeof u=="number"))return null;for(const u of["name","src","key","tonic","mode","rel"])typeof t.r[u]=="string"&&(n[u]=t.r[u]);if(typeof n.key!="string")return null;n.chroma=r,n.alt=Array.isArray(c)?c.filter(u=>Array.isArray(u)&&typeof u[0]=="string"&&typeof u[1]=="number"):[]}if(e.kind==="chords"){for(const r of["name","src","key","per"])typeof s[r]=="string"&&(n[r]=s[r]);if(n.ch=a(s.ch).filter(r=>typeof r[0]=="number"&&typeof r[1]=="number"&&typeof r[2]=="string").map(r=>[r[0],r[1],r[2],typeof r[3]=="string"?r[3]:""]),n.ch.length===0)return null}if(e.kind==="waveform"){const{hi:r,lo:c}=t.r;if(!fc(r)||!fc(c)||r.length!==c.length)return null;n.hi=r,n.lo=c}return n}const dE=["get_","list_","read_","analyze_","search_","measure_"],fE=new Set(["play","stop","record","set_cursor_position","set_time_selection"]);function T5(t){return fE.has(t)?"transport":dE.some(e=>t.startsWith(e))||t==="snapshot_list"||t==="render_track_to_wav"||t==="render_tracks_to_wav"?"read":"write"}const E5=100,$5=500,mE=["Handler error:","Unknown command type","Internal error:"];function za(t){return t.ok?"ok":mE.some(e=>t.e?.startsWith(e))?"error":"refused"}const hE=new Set(["freeze_tracks","unfreeze_tracks","apply_fx_to_items","quantize_audio","align_audio_to_guide","analyze_track_offline","analyze_audio_file","measure_track_alignment","verify_edit","detect_transients","create_transient_automation","process_items","analyze_track_aesthetics","detect_key","detect_chords","transcribe_voice_sketch","analyze_loudness_curve","analyze_stereo_bands","measure_masking","separate_stems","insert_stem_tracks","import_midi_file","render_project","render_track_to_wav","render_tracks_to_wav","render_versions","run_plan","run_action","save_project","undo_project","redo_project","add_fx","add_take_fx","setup_fx_chain","copy_fx","move_fx","set_fx_offline","set_fx_preset","get_fx_preset_list","list_available_fx","load_fx_chain","insert_track_template","insert_audio_file","snapshot_save","snapshot_restore","snapshot_edit"]);function $m(t,e){return hE.has(t)?"long":e>=$5?"very-slow":e>=E5?"slow":"fast"}function k0(t,e="count"){const n=new Map;for(const a of t){const i=n.get(a.c)??{entries:[],errors:0};i.entries.push(a),za(a)==="error"&&(i.errors+=1,i.lastError??(i.lastError=a.e)),n.set(a.c,i)}const s=[...n].map(([a,i])=>{const r=j5(i.entries);return{c:a,kind:T5(a),count:i.entries.length,errors:i.errors,avg:r.avg,p95:r.p95,max:r.max,last:i.entries[0].t,lastError:i.lastError}}),l={count:(a,i)=>i.count-a.count,errors:(a,i)=>i.errors-a.errors||i.count-a.count,slowest:(a,i)=>i.p95-a.p95,recent:(a,i)=>i.last-a.last};return s.sort((a,i)=>l[e](a,i)||a.c.localeCompare(i.c))}const pE={1e4:36e5,6e4:864e5,6e5:7*864e5};function vE(t,e){const n=t?[t]:[];for(const s of e?.tiers??[])n.push({v:e?.v??1,size:s.size,b:s.b});return n.sort((s,l)=>s.size-l.size)}function gE(t,e,n,s){const l=e/n,a=t.filter(r=>r.size<=l&&l%r.size===0),i=a.find(r=>(pE[r.size]??0)>=e)??a[a.length-1]??null;return yE(i,e,n,s)}function a_(t,e,n){const[s,l]=e<=n?[e,n]:[n,e];return{start:t[s].start,end:t[l].end}}function _E(t,e){return e?t.filter(n=>n.t>=e.start&&n.t<e.end):t}function yE(t,e,n,s){const l=e/n,a=Math.ceil(s/l)*l-e,i=t?.size??1,r=Array.from({length:n},(c,u)=>({start:a+u*l,end:a+(u+1)*l,total:0,errors:0,slow:0,ms:0}));for(const[c,u,d,m,f]of t?.b??[]){const h=Math.floor((c*i-a)/l);h<0||h>=n||(r[h].total+=u,r[h].errors+=d,r[h].slow+=m,r[h].ms+=f)}return r.map(({ms:c,...u})=>({...u,avgMs:u.total?c/u.total:null}))}const bE="_timeline_owk4p_1",xE="_timelineHead_owk4p_8",SE="_timelineTitle_owk4p_12",kE="_timelineSub_owk4p_13",wE="_timelineControls_owk4p_14",jE="_legend_owk4p_15",NE="_lg_owk4p_16",TE="_lgOk_owk4p_17",EE="_lgSlow_owk4p_18",$E="_lgErr_owk4p_19",RE="_timelineChart_owk4p_20",CE="_yAxis_owk4p_21",ME="_plot_owk4p_27",AE="_grid_owk4p_28",LE="_tbar_owk4p_36",OE="_tbarHover_owk4p_37",DE="_tstack_owk4p_41",zE="_segOk_owk4p_48",BE="_segSlow_owk4p_49",IE="_segErr_owk4p_50",UE="_plotDense_owk4p_55",HE="_plotPicking_owk4p_56",VE="_tbarPicked_owk4p_56",GE="_xPicked_owk4p_62",FE="_xAxis_owk4p_63",PE="_ttip_owk4p_68",qE="_ttipTime_owk4p_80",YE="_ttipRow_owk4p_81",XE="_ttipMuted_owk4p_84",ct={timeline:bE,timelineHead:xE,timelineTitle:SE,timelineSub:kE,timelineControls:wE,legend:jE,lg:NE,lgOk:TE,lgSlow:EE,lgErr:$E,timelineChart:RE,yAxis:CE,plot:ME,grid:AE,tbar:LE,tbarHover:OE,tstack:DE,segOk:zE,segSlow:BE,segErr:IE,plotDense:UE,plotPicking:HE,tbarPicked:VE,xPicked:GE,xAxis:FE,ttip:PE,ttipTime:qE,ttipRow:YE,ttipMuted:XE};function KE(t){const e=Math.max(4,t*1.1),n=10**Math.floor(Math.log10(e));return[1,2,3,4,5,6,8,10].map(s=>s*n).find(s=>s>=e)??e}const Yr=(t,e=!1)=>new Date(t).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",...e?{second:"2-digit"}:{},hour12:!1}),vd=(t,e,n=!1)=>e>S0?`${new Date(t).toLocaleDateString([],{weekday:"short"})} ${Yr(t)}`:Yr(t,n);function QE(t){const e=new Date().toDateString(),n=s=>new Date(s).toDateString()===e?Yr(s):`${new Date(s).toLocaleDateString([],{weekday:"short"})} ${Yr(s)}`;return`${n(t.start)} – ${n(t.end)}`}function o_(t,e,n){const s=t.getBoundingClientRect();return Math.min(n-1,Math.max(0,Math.floor((e-s.left)/s.width*n)))}function ZE(t){const e=fe.c(121),{history:n,longHistory:s,now:l,rangeKey:a,onRange:i,selection:r,onSelect:c,clearedAt:u}=t,[d,m]=Q.useState(null),[f,h]=Q.useState(null);let g;e[0]!==a?(g=S5(a),e[0]=a,e[1]=g):g=e[1];const y=g;let b;e[2]!==n||e[3]!==s?(b=vE(n,s),e[2]=n,e[3]=s,e[4]=b):b=e[4];const p=b;let v;e[5]!==u||e[6]!==l||e[7]!==y.bars||e[8]!==y.ms||e[9]!==p?(v=aE(gE(p,y.ms,y.bars,l),u),e[5]=u,e[6]=l,e[7]=y.bars,e[8]=y.ms,e[9]=p,e[10]=v):v=e[10];const _=v;let x;e[11]!==_?(x=Math.max(0,..._.map(e$)),e[11]=_,e[12]=x):x=e[12];const w=KE(x);let R,j,N,E,C,O,M,A;if(e[13]!==_||e[14]!==f||e[15]!==d||e[16]!==l||e[17]!==i||e[18]!==c||e[19]!==y.bars||e[20]!==y.label||e[21]!==y.ms||e[22]!==a||e[23]!==r||e[24]!==w){const L=_.reduce(JE,0),z=y.ms/y.bars;let D;e[33]!==_||e[34]!==f||e[35]!==r?(D=f?a_(_,f.from,f.to):r,e[33]=_,e[34]=f,e[35]=r,e[36]=D):D=e[36];const U=D;let I;e[37]!==U?(I=re=>U!==null&&re.start>=U.start&&re.end<=U.end,e[37]=U,e[38]=I):I=e[38];const F=I,P=U?_.filter(F).reduce(WE,0):0;let X;e[39]!==_.length?(X=re=>{if(re.button!==0)return;re.currentTarget.setPointerCapture(re.pointerId);const Ee=o_(re.currentTarget,re.clientX,_.length);h({from:Ee,to:Ee})},e[39]=_.length,e[40]=X):X=e[40];const Y=X;let Z;e[41]!==_.length||e[42]!==f?(Z=re=>{const Ee=o_(re.currentTarget,re.clientX,_.length);m(Ee),f&&Ee!==f.to&&h({...f,to:Ee})},e[41]=_.length,e[42]=f,e[43]=Z):Z=e[43];const V=Z;let H;e[44]!==_||e[45]!==f||e[46]!==c||e[47]!==r?(H=()=>{if(!f)return;const re=a_(_,f.from,f.to);h(null);const Ee=r&&r.start===re.start&&r.end===re.end?null:re;st({name:"timeline_span_selected",selected:Ee!==null}),c(Ee)},e[44]=_,e[45]=f,e[46]=c,e[47]=r,e[48]=H):H=e[48];const W=H,J=d===null||f?void 0:_[d],ce=d===null?0:(d+.5)/_.length*100,ee=ce<15?"start":ce>85?"end":"center";A=ct.timeline,R="Commands over time";const he=L.toLocaleString();let pe;e[49]!==y.label?(pe=y.label.toLowerCase(),e[49]=y.label,e[50]=pe):pe=e[50];let G;e[51]!==z?(G=x5(z),e[51]=z,e[52]=G):G=e[52];let ae;e[53]!==he||e[54]!==pe||e[55]!==G?(ae=o.jsxs("span",{className:ct.timelineTitle,children:["Commands"," ",o.jsxs("span",{className:ct.timelineSub,children:[he," in the ",pe," · ",G," per bar"]})]}),e[53]=he,e[54]=pe,e[55]=G,e[56]=ae):ae=e[56];let oe;e[57]===Symbol.for("react.memo_cache_sentinel")?(oe=o.jsx("i",{className:K(ct.lg,ct.lgOk)}),e[57]=oe):oe=e[57];let ye;e[58]===Symbol.for("react.memo_cache_sentinel")?(ye=o.jsx("i",{className:K(ct.lg,ct.lgSlow)}),e[58]=ye):ye=e[58];let _e;e[59]===Symbol.for("react.memo_cache_sentinel")?(_e=o.jsxs("span",{className:ct.legend,children:[oe," ok",ye," ≥ ",E5," ms",o.jsx("i",{className:K(ct.lg,ct.lgErr)})," error"]}),e[59]=_e):_e=e[59];let ne;e[60]!==i||e[61]!==a?(ne=o.jsxs("div",{className:ct.timelineControls,children:[_e,o.jsx(h5,{label:"Time range",value:a,options:eE,onChange:i})]}),e[60]=i,e[61]=a,e[62]=ne):ne=e[62],e[63]!==ae||e[64]!==ne?(j=o.jsxs("div",{className:ct.timelineHead,children:[ae,ne]}),e[63]=ae,e[64]=ne,e[65]=j):j=e[65];let te;e[66]!==w?(te=o.jsx("span",{children:w}),e[66]=w,e[67]=te):te=e[67];const ie=w/2;let de;e[68]!==ie?(de=o.jsx("span",{children:ie}),e[68]=ie,e[69]=de):de=e[69];let xe;e[70]===Symbol.for("react.memo_cache_sentinel")?(xe=o.jsx("span",{children:"0"}),e[70]=xe):xe=e[70];let Ne;e[71]!==te||e[72]!==de?(Ne=o.jsxs("div",{className:ct.yAxis,"aria-hidden":!0,children:[te,de,xe]}),e[71]=te,e[72]=de,e[73]=Ne):Ne=e[73];const Te=U?ct.plotPicking:"",Ae=_.length>100?ct.plotDense:"";let Re;e[74]!==Te||e[75]!==Ae?(Re=K(ct.plot,Te,Ae),e[74]=Te,e[75]=Ae,e[76]=Re):Re=e[76];let Le,De;e[77]===Symbol.for("react.memo_cache_sentinel")?(Le=()=>h(null),De=()=>m(null),e[77]=Le,e[78]=De):(Le=e[77],De=e[78]);let we;e[79]===Symbol.for("react.memo_cache_sentinel")?(we=o.jsx("div",{className:ct.grid,"aria-hidden":!0}),e[79]=we):we=e[79];let Ce;if(e[80]!==_||e[81]!==f||e[82]!==d||e[83]!==F||e[84]!==w){let re;e[86]!==f||e[87]!==d||e[88]!==F||e[89]!==w?(re=(Ee,it)=>{const lt=Math.max(0,Ee.total-Ee.errors-Ee.slow);return o.jsx("div",{className:K(ct.tbar,d===it&&!f?ct.tbarHover:"",F(Ee)?ct.tbarPicked:""),children:o.jsxs("div",{className:ct.tstack,style:{height:`${Ee.total/w*100}%`},children:[Ee.errors>0&&o.jsx("span",{className:ct.segErr,style:{flexGrow:Ee.errors}}),Ee.slow>0&&o.jsx("span",{className:ct.segSlow,style:{flexGrow:Ee.slow}}),lt>0&&o.jsx("span",{className:ct.segOk,style:{flexGrow:lt}})]})},Ee.start)},e[86]=f,e[87]=d,e[88]=F,e[89]=w,e[90]=re):re=e[90],Ce=_.map(re),e[80]=_,e[81]=f,e[82]=d,e[83]=F,e[84]=w,e[85]=Ce}else Ce=e[85];let Oe;e[91]!==z||e[92]!==J||e[93]!==ce||e[94]!==y.ms||e[95]!==ee?(Oe=J&&o.jsxs("div",{className:ct.ttip,"data-align":ee,style:{left:`${ce}%`},children:[o.jsxs("div",{className:ct.ttipTime,children:[vd(J.start,y.ms,z<Co),"–",Yr(J.end,z<Co)]}),J.total===0?o.jsx("div",{className:ct.ttipRow,children:"No commands"}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:ct.ttipRow,children:[o.jsx("b",{children:J.total})," command",J.total===1?"":"s"]}),J.slow>0&&o.jsxs("div",{className:ct.ttipRow,children:[o.jsx("i",{className:K(ct.lg,ct.lgSlow)})," ",J.slow," slow"]}),J.errors>0&&o.jsxs("div",{className:ct.ttipRow,children:[o.jsx("i",{className:K(ct.lg,ct.lgErr)})," ",J.errors," error",J.errors===1?"":"s"]}),J.avgMs!==null&&o.jsxs("div",{className:K(ct.ttipRow,ct.ttipMuted),children:["avg ",oo(J.avgMs)]})]})]}),e[91]=z,e[92]=J,e[93]=ce,e[94]=y.ms,e[95]=ee,e[96]=Oe):Oe=e[96];let Xe;e[97]!==Y||e[98]!==V||e[99]!==W||e[100]!==Re||e[101]!==Ce||e[102]!==Oe?(Xe=o.jsxs("div",{className:Re,onPointerDown:Y,onPointerMove:V,onPointerUp:W,onPointerCancel:Le,onMouseLeave:De,title:"Drag to select a span; the log shows only its commands",children:[we,Ce,Oe]}),e[97]=Y,e[98]=V,e[99]=W,e[100]=Re,e[101]=Ce,e[102]=Oe,e[103]=Xe):Xe=e[103],e[104]!==Ne||e[105]!==Xe?(N=o.jsxs("div",{className:ct.timelineChart,children:[Ne,Xe]}),e[104]=Ne,e[105]=Xe,e[106]=N):N=e[106],E=ct.xAxis,C=!0,e[107]!==a?(O=o.jsxs("span",{children:["−",a]}),e[107]=a,e[108]=O):O=e[108],M=U?o.jsxs("span",{className:ct.xPicked,children:[vd(U.start,y.ms),"–",vd(U.end,y.ms)," · ",P.toLocaleString()," command",P===1?"":"s"]}):o.jsx("span",{children:vd(l-y.ms/2,y.ms)}),e[13]=_,e[14]=f,e[15]=d,e[16]=l,e[17]=i,e[18]=c,e[19]=y.bars,e[20]=y.label,e[21]=y.ms,e[22]=a,e[23]=r,e[24]=w,e[25]=R,e[26]=j,e[27]=N,e[28]=E,e[29]=C,e[30]=O,e[31]=M,e[32]=A}else R=e[25],j=e[26],N=e[27],E=e[28],C=e[29],O=e[30],M=e[31],A=e[32];let T;e[109]===Symbol.for("react.memo_cache_sentinel")?(T=o.jsx("span",{children:"now"}),e[109]=T):T=e[109];let S;e[110]!==E||e[111]!==C||e[112]!==O||e[113]!==M?(S=o.jsxs("div",{className:E,"aria-hidden":C,children:[O,M,T]}),e[110]=E,e[111]=C,e[112]=O,e[113]=M,e[114]=S):S=e[114];let $;return e[115]!==R||e[116]!==j||e[117]!==N||e[118]!==S||e[119]!==A?($=o.jsxs("section",{className:A,"aria-label":R,children:[j,N,S]}),e[115]=R,e[116]=j,e[117]=N,e[118]=S,e[119]=A,e[120]=$):$=e[120],$}function WE(t,e){return t+e.total}function JE(t,e){return t+e.total}function e$(t){return t.total}const ji="https://github.com/mthines/reaper-mcp",vv="https://discord.gg/Eg8tznuXp4",M1=t=>()=>void window.open(t,"_blank","noreferrer");function t$(t){const e=fe.c(52),{rangeKey:n,onRange:s,settings:l,onSet:a,onOpenSettings:i,overview:r,onToggleOverview:c,onRebuild:u,onRestart:d,notify:m,onNotify:f,usageStats:h,onUsageStats:g}=t,y=y5();let b;e[0]!==a?(b=(ee,he,pe,G)=>({id:ee,label:pe?G[1]:G[0],group:"Bridge",onSelect:()=>a(he,!pe)}),e[0]=a,e[1]=b):b=e[1];const p=b,v=l!==null,_=l?.paused;let x;e[2]!==_||e[3]!==p?(x=p("bridge-pause","cfg_paused",_,["Pause agent control","Resume agent control"]),e[2]=_,e[3]=p,e[4]=x):x=e[4],mt(x,v);const k=l?.readonly;let w;e[5]!==k||e[6]!==p?(w=p("bridge-readonly","cfg_readonly",k,["Turn on read-only mode","Turn off read-only mode"]),e[5]=k,e[6]=p,e[7]=w):w=e[7],mt(w,v);const R=l?.openOnStart;let j;e[8]!==R||e[9]!==p?(j=p("bridge-open-on-start","cfg_open_on_start",R,["Open this page when the bridge starts","Stop opening this page when the bridge starts"]),e[8]=R,e[9]=p,e[10]=j):j=e[10],mt(j,v);const N=l?.dev;let E;e[11]!==N||e[12]!==p?(E=p("bridge-dev","cfg_dev",N,["Turn on developer mode","Turn off developer mode"]),e[11]=N,e[12]=p,e[13]=E):E=e[13],mt(E,v);const C=l?.autostart;let O;e[14]!==C||e[15]!==p?(O=p("bridge-autostart","cfg_autostart",C,["Start the bridge with REAPER","Stop starting the bridge with REAPER"]),e[14]=C,e[15]=p,e[16]=O):O=e[16],mt(O,v&&l?.autostart!==void 0);let M;e[17]!==s||e[18]!==n?(M=Mo.map(ee=>({id:`range-${ee.key}`,label:ee.label,hint:ee.key===n?"current":void 0,onSelect:()=>s(ee.key)})),e[17]=s,e[18]=n,e[19]=M):M=e[19];let A;e[20]!==M?(A={id:"timeline-range",label:"Timeline range…",group:"Timeline",description:"time window of the chart and the log",children:M},e[20]=M,e[21]=A):A=e[21],mt(A);let T;e[22]===Symbol.for("react.memo_cache_sentinel")?(T=o.jsx(un.Gear,{}),e[22]=T):T=e[22];let S;e[23]!==i?(S={id:"settings-open",label:"Open settings",group:"Bridge",icon:T,onSelect:()=>i?.()},e[23]=i,e[24]=S):S=e[24],mt(S,!!i);let $;e[25]!==u?($={id:"bridge-rebuild",label:"Rebuild & reload",group:"Bridge",description:"developer mode working tree changed",onSelect:()=>u?.()},e[25]=u,e[26]=$):$=e[26],mt($,!!u);let L;e[27]!==d?(L={id:"bridge-restart",label:"Restart bridge",group:"Bridge",onSelect:()=>d?.()},e[27]=d,e[28]=L):L=e[28],mt(L,!!d);const z=r?"Hide stats & timeline":"Show stats & timeline";let D;e[29]!==c?(D=()=>c?.(),e[29]=c,e[30]=D):D=e[30];let U;e[31]!==z||e[32]!==D?(U={id:"page-overview",label:z,group:"Page",onSelect:D},e[31]=z,e[32]=D,e[33]=U):U=e[33],mt(U,!!c);const I=m?"Turn off error notifications":"Turn on error notifications";let F;e[34]!==m||e[35]!==f?(F=()=>f(!m),e[34]=m,e[35]=f,e[36]=F):F=e[36];let P;e[37]!==I||e[38]!==F?(P={id:"page-notify",label:I,group:"Page",onSelect:F},e[37]=I,e[38]=F,e[39]=P):P=e[39],mt(P);const X=h.on?"Turn off usage statistics":"Turn on usage statistics";let Y;e[40]!==g||e[41]!==h.on?(Y=()=>g(!h.on),e[40]=g,e[41]=h.on,e[42]=Y):Y=e[42];let Z;e[43]!==X||e[44]!==Y?(Z={id:"page-usage-stats",label:X,group:"Page",description:"privacy telemetry analytics",onSelect:Y},e[43]=X,e[44]=Y,e[45]=Z):Z=e[45],mt(Z,h.on||h.reason==="user");let V;e[46]===Symbol.for("react.memo_cache_sentinel")?(V=["?"],e[46]=V):V=e[46];let H;e[47]!==y?(H={id:"help-shortcuts",label:"Keyboard shortcuts",group:"Help",shortcut:V,onSelect:()=>y?.setHelpOpen(!0)},e[47]=y,e[48]=H):H=e[48],mt(H);let W;e[49]===Symbol.for("react.memo_cache_sentinel")?(W={id:"help-github",label:"Open reaper-mcp on GitHub",group:"Help",icon:o.jsx(un.GitHub,{}),onSelect:M1(ji)},e[49]=W):W=e[49],mt(W);let J;e[50]===Symbol.for("react.memo_cache_sentinel")?(J={id:"help-issue",label:"Report an issue",group:"Help",onSelect:M1(`${ji}/issues`)},e[50]=J):J=e[50],mt(J);let ce;return e[51]===Symbol.for("react.memo_cache_sentinel")?(ce={id:"help-discord",label:"Join the Discord",group:"Help",onSelect:M1(vv)},e[51]=ce):ce=e[51],mt(ce),null}function n$(){const t=fe.c(5),[e,n]=Q.useState(!1),s=Q.useRef(null);let l,a;t[0]!==e?(l=()=>{if(!e)return;const r=u=>{s.current?.contains(u.target)||n(!1)},c=u=>u.key==="Escape"&&n(!1);return document.addEventListener("pointerdown",r),document.addEventListener("keydown",c),()=>{document.removeEventListener("pointerdown",r),document.removeEventListener("keydown",c)}},a=[e],t[0]=e,t[1]=l,t[2]=a):(l=t[1],a=t[2]),Q.useEffect(l,a);let i;return t[3]!==e?(i={open:e,setOpen:n,ref:s},t[3]=e,t[4]=i):i=t[4],i}function Er(t,e){return!t.ended&&e-t.last<45e3}function R5(t){return t.commands>0}const C5=t=>(t??"").replace(/[\\/]+$/,"").split(/[\\/]/).filter(Boolean);function Cs(t){return t.label||C5(t.dir).pop()||t.id.replace(/^pid-/,"pid ").slice(0,8)}function s$(t){const e=l=>Cs({id:l.id,dir:l.dir}),n=new Map(t.map(l=>[l.id,e(l)])),s=l=>{const a=new Map;for(const i of t)a.set(l(i),[...a.get(l(i))??[],i]);return[...a.values()].filter(i=>i.length>1)};for(const l of s(a=>n.get(a.id)))for(const a of l){const i=C5(a.dir);new Set(l.map(r=>r.dir)).size>1&&i.length>1&&n.set(a.id,i.slice(-2).join("/"))}for(const l of s(a=>n.get(a.id)))[...l].sort((a,i)=>a.first-i.first).forEach((a,i)=>n.set(a.id,`${n.get(a.id)} #${i+1}`));return t.map(l=>({...l,label:n.get(l.id)}))}function Ni(t){let e=0;for(let n=0;n<t.length;n++)e=e*31+t.charCodeAt(n)>>>0;return e%6}const l$="_header_1b0or_1",a$="_brand_1b0or_2",o$="_brandText_1b0or_4",i$="_sub_1b0or_5",r$="_subProject_1b0or_15",c$="_subVersion_1b0or_16",u$="_pill_1b0or_17",d$="_pillDot_1b0or_26",f$="_headerActions_1b0or_31",m$="_iconLink_1b0or_32",h$="_agents_1b0or_41",p$="_agentsOn_1b0or_48",v$="_agentsDots_1b0or_51",g$="_headerMenu_1b0or_68",_$="_headerMenuFlag_1b0or_69",y$="_menu_1b0or_75",b$="_menuAccent_1b0or_89",x$="_menuCheck_1b0or_90",S$="_btnRebuild_1b0or_94",hn={header:l$,brand:a$,brandText:o$,sub:i$,subProject:r$,subVersion:c$,pill:u$,pillDot:d$,headerActions:f$,iconLink:m$,agents:h$,agentsOn:p$,agentsDots:v$,headerMenu:g$,headerMenuFlag:_$,menu:y$,menuAccent:b$,menuCheck:x$,btnRebuild:S$};function k$(t){const e=fe.c(45),{status:n,state:s,reachable:l,now:a,sessions:i,onShowAgents:r,onOpenSettings:c,onRebuild:u,overview:d,onToggleOverview:m}=t,f=s==="live"?"Live":s==="stale"?"Not responding":l?"Bridge stopped":"REAPER unreachable";let h,g,y,b;if(e[0]!==a||e[1]!==r||e[2]!==i||e[3]!==s||e[4]!==n){const E=[...i.values()].filter(S=>Er(S,a)&&R5(S));y=hn.header;const C=s==="live";let O;e[9]!==C?(O=o.jsx(o5,{active:C}),e[9]=C,e[10]=O):O=e[10];let M;e[11]===Symbol.for("react.memo_cache_sentinel")?(M=o.jsx("h1",{children:"MCP Bridge"}),e[11]=M):M=e[11];let A;e[12]!==n?(A=n?o.jsxs(o.Fragment,{children:[o.jsx("span",{className:hn.subProject,title:n.project||void 0,children:o.jsx("bdi",{dir:"ltr",children:n.project||"Unsaved project"})}),o.jsx("span",{className:"dot-sep"}),o.jsxs("span",{className:hn.subVersion,children:["REAPER ",n.reaperVersion.split("/")[0]]})]}):"reaper-mcp",e[12]=n,e[13]=A):A=e[13];let T;e[14]!==A?(T=o.jsxs("div",{className:hn.brandText,children:[M,o.jsx("p",{className:hn.sub,children:A})]}),e[14]=A,e[15]=T):T=e[15],e[16]!==O||e[17]!==T?(b=o.jsxs("div",{className:hn.brand,children:[O,T]}),e[16]=O,e[17]=T,e[18]=b):b=e[18],h=hn.headerActions,g=n?.sessions&&s==="live"&&o.jsxs("button",{className:K(hn.agents,E.length?hn.agentsOn:""),onClick:r,title:(E.length?`Connected: ${E.map(j$).join(", ")}`:"No agent has pinged in the last 45s")+`
|
|
79
|
+
Click to see sessions`,children:[o.jsx("span",{className:hn.agentsDots,"aria-hidden":!0,children:E.slice(0,4).map(w$)}),E.length===0?"No agents":`${E.length} agent${E.length===1?"":"s"}`]}),e[0]=a,e[1]=r,e[2]=i,e[3]=s,e[4]=n,e[5]=h,e[6]=g,e[7]=y,e[8]=b}else h=e[5],g=e[6],y=e[7],b=e[8];let p;e[19]!==u?(p=u&&o.jsx("button",{className:K(hn.btnRebuild,"btn btn-sm"),onClick:u,title:"Developer mode: your working tree changed since the last install. Build it, install it into REAPER, restart the bridge and reload",children:"Rebuild & reload"}),e[19]=u,e[20]=p):p=e[20];let v;e[21]===Symbol.for("react.memo_cache_sentinel")?(v=o.jsx(ZT,{}),e[21]=v):v=e[21];let _;e[22]!==c?(_=c&&o.jsx("button",{className:hn.iconLink,onClick:c,title:"Settings","aria-label":"Settings",children:o.jsx(un.Gear,{})}),e[22]=c,e[23]=_):_=e[23];let x;e[24]===Symbol.for("react.memo_cache_sentinel")?(x=o.jsx("a",{className:hn.iconLink,href:ji,target:"_blank",rel:"noreferrer",title:"reaper-mcp on GitHub","aria-label":"reaper-mcp on GitHub",children:o.jsx(un.GitHub,{})}),e[24]=x):x=e[24];let k;e[25]!==c||e[26]!==u||e[27]!==m||e[28]!==d?(k=o.jsx(N$,{overview:d,onToggleOverview:m,onRebuild:u,onOpenSettings:c}),e[25]=c,e[26]=u,e[27]=m,e[28]=d,e[29]=k):k=e[29];let w;e[30]===Symbol.for("react.memo_cache_sentinel")?(w=o.jsx("span",{className:hn.pillDot}),e[30]=w):w=e[30];let R;e[31]!==f||e[32]!==s?(R=o.jsxs("span",{className:hn.pill,"data-state":s,children:[w,f]}),e[31]=f,e[32]=s,e[33]=R):R=e[33];let j;e[34]!==h||e[35]!==R||e[36]!==g||e[37]!==p||e[38]!==_||e[39]!==k?(j=o.jsxs("div",{className:h,children:[g,p,v,_,x,k,R]}),e[34]=h,e[35]=R,e[36]=g,e[37]=p,e[38]=_,e[39]=k,e[40]=j):j=e[40];let N;return e[41]!==j||e[42]!==y||e[43]!==b?(N=o.jsxs("header",{className:y,children:[b,j]}),e[41]=j,e[42]=y,e[43]=b,e[44]=N):N=e[44],N}function w$(t){return o.jsx("i",{className:`hue-${Ni(t.id)}`},t.id)}function j$(t){return`${Cs(t)}${t.client?` (${t.client})`:""}`}function N$(t){const e=fe.c(26),{overview:n,onToggleOverview:s,onRebuild:l,onOpenSettings:a}=t,{open:i,setOpen:r,ref:c}=n$();let u;e[0]!==r?(u=x=>()=>{r(!1),x()},e[0]=r,e[1]=u):u=e[1];const d=u,m=l?hn.headerMenuFlag:"";let f;e[2]!==m?(f=K(hn.iconLink,m),e[2]=m,e[3]=f):f=e[3];const h=l?"More (rebuild available)":"More",g=l?"More: your working tree changed, rebuild available":"More";let y;e[4]!==i||e[5]!==r?(y=()=>r(!i),e[4]=i,e[5]=r,e[6]=y):y=e[6];let b;e[7]===Symbol.for("react.memo_cache_sentinel")?(b=o.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16","aria-hidden":!0,children:[o.jsx("circle",{cx:"3.5",cy:"8",r:"1.3",fill:"currentColor"}),o.jsx("circle",{cx:"8",cy:"8",r:"1.3",fill:"currentColor"}),o.jsx("circle",{cx:"12.5",cy:"8",r:"1.3",fill:"currentColor"})]}),e[7]=b):b=e[7];let p;e[8]!==i||e[9]!==f||e[10]!==h||e[11]!==g||e[12]!==y?(p=o.jsx("button",{className:f,"aria-haspopup":"menu","aria-expanded":i,"aria-label":h,title:g,onClick:y,children:b}),e[8]=i,e[9]=f,e[10]=h,e[11]=g,e[12]=y,e[13]=p):p=e[13];let v;e[14]!==a||e[15]!==l||e[16]!==s||e[17]!==i||e[18]!==n||e[19]!==d||e[20]!==r?(v=i&&o.jsxs("div",{className:hn.menu,role:"menu",children:[l&&o.jsx("button",{role:"menuitem",className:hn.menuAccent,onClick:d(l),children:"Rebuild & reload"}),s&&o.jsxs("button",{role:"menuitemcheckbox","aria-checked":n,onClick:d(s),children:[o.jsx("span",{className:hn.menuCheck,"aria-hidden":!0,children:n?"✓":""}),"Stats & timeline"]}),a&&o.jsx("button",{role:"menuitem",onClick:d(a),children:"Settings"}),o.jsx("a",{role:"menuitem",href:ji,target:"_blank",rel:"noreferrer",onClick:()=>r(!1),children:"reaper-mcp on GitHub"})]}),e[14]=a,e[15]=l,e[16]=s,e[17]=i,e[18]=n,e[19]=d,e[20]=r,e[21]=v):v=e[21];let _;return e[22]!==c||e[23]!==p||e[24]!==v?(_=o.jsxs("div",{className:hn.headerMenu,ref:c,children:[p,v]}),e[22]=c,e[23]=p,e[24]=v,e[25]=_):_=e[25],_}const T$="https://api.github.com/repos/mthines/reaper-mcp/releases/latest",M5="mcp-bridge-latest-release",E$=6*36e5;function i_(t,e){const n=a=>a.replace(/^v/,"").split("-")[0].split(".").map(i=>parseInt(i,10)||0),[s,l]=[n(t),n(e)];for(let a=0;a<Math.max(s.length,l.length);a++){const i=(s[a]??0)-(l[a]??0);if(i)return Math.sign(i)}return 0}function $$(t,e){return`/_/SET/EXTSTATE/MCPBridge/request/${t}-${e}`}function r_(t){return Array.isArray(t?.log)?t.log:[]}function R$(t){const e=fe.c(3),[n,s]=Q.useState(A$);let l,a;return e[0]!==t?(l=()=>{if(!t)return;const i=A5();if(i&&Date.now()-i.at<E$)return;let r=!1;return fetch(T$,{headers:{Accept:"application/vnd.github+json"}}).then(M$).then(c=>{if(r||!c?.tag_name||!c.html_url)return;const u={version:c.tag_name.replace(/^v/,""),url:c.html_url};try{localStorage.setItem(M5,JSON.stringify({at:Date.now(),release:u}))}catch{}s(u)}).catch(C$),()=>{r=!0}},a=[t],e[0]=t,e[1]=l,e[2]=a):(l=e[1],a=e[2]),Q.useEffect(l,a),n}function C$(){}function M$(t){return t.ok?t.json():null}function A$(){return A5()?.release??null}function A5(){try{const t=localStorage.getItem(M5);return t?JSON.parse(t):null}catch{return null}}const L$={get_project_info:{},list_tracks:"example",get_track_properties:"example",set_track_property:"example",set_multiple_track_properties:"example",add_track:"example",delete_track:"example",move_track:"example",set_track_folder:"example",set_track_info:"example",set_track_group:{track:"Kick In",group:3,roles:'["volume_lead","mute_lead"]'},add_fx:"example",remove_fx:"example",get_fx_parameters:"example",analyze_fx:{trackIndex:3,fxIndex:0},set_fx_parameter:"example",set_fx_enabled:"example",set_fx_offline:"example",setup_fx_chain:"example",set_multiple_fx_parameters:"example",play:{},stop:{},record:{},get_transport_state:{},set_cursor_position:"example",create_midi_item:{trackIndex:7,startPosition:32,endPosition:40},list_midi_items:"example",get_midi_notes:"example",analyze_midi:"example",insert_midi_note:"example",insert_midi_notes:"example",edit_midi_note:"example",edit_midi_notes:"example",delete_midi_note:"example",get_midi_cc:"example",insert_midi_cc:"example",delete_midi_cc:"example",get_midi_item_properties:{trackIndex:7,itemIndex:0},set_midi_item_properties:{trackIndex:7,itemIndex:0,loopSource:1},quantize_midi:"example",transform_midi:"example",import_midi_file:"example",detect_key:"example",detect_chords:"example",transcribe_voice_sketch:{path:"/music/voice-sketch.mp3",mode:"auto",grid:.25},send_midi_cc:"example",send_midi_pc:{trackIndex:8,program:12,bankMsb:0},send_midi_note:{trackIndex:8,pitch:64,velocity:100,durationMs:500},list_media_items:"example",get_media_item_properties:{trackIndex:4,itemIndex:2},set_media_item_properties:"example",set_media_items_properties:"example",split_media_item:"example",delete_media_item:"example",move_media_item:"example",trim_media_item:"example",add_stretch_marker:{trackIndex:2,itemIndex:0,position:1.5},get_stretch_markers:{trackIndex:2,itemIndex:0},delete_stretch_marker:{trackIndex:2,itemIndex:0,markerIndex:1},copy_media_items:"example",insert_time:"example",remove_time:"example",copy_section:"example",process_items:"example",get_selected_tracks:{},set_selected_tracks:{tracks:'["Kick In","Snare Top"]',mode:"replace"},set_selected_items:{items:'[{"trackIndex":4,"itemIndex":0}]',mode:"replace"},get_time_selection:"example",set_time_selection:"example",list_markers:"example",list_regions:"example",add_marker:"example",add_region:"example",delete_marker:"example",delete_region:"example",edit_marker:"example",edit_region:"example",get_tempo_map:"example",add_tempo_marker:"example",edit_tempo_marker:"example",delete_tempo_marker:"example",set_project_tempo:"example",create_track_envelope:{trackIndex:4,envelopeName:"Volume"},get_track_envelopes:{trackIndex:4},get_envelope_points:"example",insert_envelope_point:"example",insert_envelope_points:"example",edit_envelope_points:"example",delete_envelope_point:"example",clear_envelope:"example",remove_envelope_points:"example",set_envelope_properties:{trackIndex:4,envelopeIndex:0,armed:!0},list_automation_items:"example",insert_automation_item:"example",set_automation_item:"example",delete_automation_item:"example",list_available_fx:{category:"eq"},search_fx:{query:"pro-q"},get_fx_preset_list:{trackIndex:3,fxIndex:0},set_fx_preset:"example",snapshot_save:{name:"before-vocal-chain"},snapshot_restore:"example",snapshot_list:{},snapshot_delete:{name:"mix-old"},snapshot_edit:{name:"mix-B",newName:"mix-B (warm)"},get_track_routing:"example",add_send:"example",set_send:"example",remove_send:"example",add_hardware_output:"example",read_track_meters:"example",read_track_spectrum:"example",read_track_lufs:"example",read_track_correlation:"example",read_track_crest:"example",remove_mcp_meters:{trackIndices:[0,2,-1]},get_fx_state:{trackIndex:3,fxIndex:0,outFile:"fxstate_5f3a.out"},set_fx_state:{trackIndex:3,fxIndex:0,inFile:"fxstate_8c21.in",expectName:"Vital"},extension_call:{extension:"vital",command:"summarize",paramsJson:'{"trackIndex":3}'},render_track_to_wav:"example",render_tracks_to_wav:{trackIndices:[0,1,2],startTime:30,endTime:50,commandId:"demo"},analyze_track_aesthetics:"example",analyze_track_offline:"example",analyze_audio_file:"example",measure_track_alignment:"example",verify_edit:{trackIndex:2,referenceTrack:1,startTime:0,durationSeconds:10},detect_transients:{trackIndex:1,startTime:0,endTime:30,band:"low"},create_transient_automation:{trackIndex:1,targetTrack:"Lights",envelopeIndex:0,startTime:0,endTime:30,band:"low"},analyze_loudness_curve:"example",analyze_stereo_bands:"example",measure_masking:"example",separate_stems:"example",insert_stem_tracks:{files:'["/stems/vocals.wav","/stems/drums.wav","/stems/bass.wav","/stems/other.wav"]',afterTrack:9,folderName:"Stems"},run_plan:"example",search_actions:{query:"normalize",limit:20},get_action:{action:"_SWS_AWNORMALIZE"},run_action:{action:40044},undo_project:{},redo_project:{},save_project:{},get_render_settings:{},set_render_settings:{format:"wav",bitDepth:24,bounds:"project",secondaryFormat:"none"},render_project:"example",render_versions:"example",get_project_settings:{},set_project_settings:{title:"Midnight Drive",author:"You"},insert_audio_file:"example",list_takes:{trackIndex:2,itemIndex:0},set_active_take:{trackIndex:2,itemIndex:0,takeIndex:1},get_take_fx:{trackIndex:2,itemIndex:0},add_take_fx:{trackIndex:2,itemIndex:0,fxName:"ReaPitch"},remove_take_fx:{trackIndex:2,itemIndex:0,fxIndex:0},set_take_fx_parameter:{trackIndex:2,itemIndex:0,fxIndex:0,paramIndex:2,value:.5},get_item_appearance:{trackIndex:4,itemIndex:0},set_item_color:{trackIndex:4,itemIndex:0,color:"#5AA0E8"},set_item_fades:"example",move_fx:"example",copy_fx:"example",rename_fx:"example",save_fx_chain:{trackIndex:3,name:"Vocals/Lead chain"},load_fx_chain:"example",list_fx_chains:{},save_track_template:{trackIndex:3,name:"Lead Vocal"},insert_track_template:{name:"Lead Vocal",index:10},list_track_templates:{},get_record_setup:"example",set_track_record:"example",set_record_mode:"example",get_track_lanes:"example",set_track_lanes:"example",comp_lanes:"example",set_automation_mode:"example",get_fx_param_modulation:"example",set_fx_param_modulation:"example",get_fx_pins:"example",set_fx_pins:"example",list_monitoring_fx:"example",add_monitoring_fx:"example",set_monitoring_fx:"example",remove_monitoring_fx:"example",freeze_tracks:"example",unfreeze_tracks:"example",apply_fx_to_items:"example",add_stretch_markers:"example",edit_stretch_markers:"example",quantize_audio:"example",align_audio_to_guide:"example"},w0=864e5,j0=Date.now(),il=(t,e,n,s,l,a,i,r)=>({key:t,name:e,vendor:n,category:s,preference:l,style:a,matches:i,layer:"built-in",updatedAt:j0-.4*w0,preview:r}),O$=[il("plugins::fabfilter/pro-q-3","FabFilter Pro-Q 3","FabFilter","eq",90,"transparent",["Pro-Q 3","VST3: Pro-Q3 (FabFilter)"],"Surgical and musical parametric EQ with dynamic bands, linear phase and M/S. First choice for corrective and tonal EQ."),il("plugins::fabfilter/pro-c-2","FabFilter Pro-C 2","FabFilter","compressor",85,"transparent",["Pro-C 2","VST3: Pro-C2 (FabFilter)"],"Versatile compressor with eight styles from clean to vintage; sidechain EQ and lookahead."),il("plugins::fabfilter/pro-l-2","FabFilter Pro-L 2","FabFilter","limiter",92,"transparent",["Pro-L 2","VST3: Pro-L2 (FabFilter)"],"True-peak limiter for mastering with loudness metering; preferred for the final stage."),il("plugins::line-6/helix-native","Line 6 Helix Native","Line 6","amp-sim",82,"character",["Helix Native","VST3: Helix Native (Line 6)"],"Full Helix amp and effects modeller. Amp controls live in its GUI; the host sees only Knob/Switch controllers, Master In/Out and Snapshot Index (1-8). Save a full-chunk snapshot before changing presets."),il("plugins::joey-sturgis-tones/jst-heat","JST Heat","Joey Sturgis Tones","saturator",80,"character",["JST Heat","VST3: JST Heat (Joey Sturgis Tones)"],"Saturation and harmonic exciter for guitars, bass and drum buses."),il("plugins::stock-reaper/rea-eq","ReaEQ","Cockos","eq",40,"transparent",["ReaEQ","VST: ReaEQ (Cockos)"],"REAPER's built-in parametric EQ. Fallback when no third-party EQ is installed."),il("plugins::stock-reaper/rea-comp","ReaComp","Cockos","compressor",35,"transparent",["ReaComp","VST: ReaComp (Cockos)"],"REAPER's built-in compressor with sidechain filtering."),il("plugins::stock-reaper/rea-limit","ReaLimit","Cockos","limiter",38,"transparent",["ReaLimit","VST: ReaLimit (Cockos)"],"REAPER's built-in brickwall limiter."),il("plugins::stock-reaper/rea-verb","ReaVerb","Cockos","reverb",32,"transparent",["ReaVerb","VST: ReaVerb (Cockos)"],"Convolution and algorithmic reverb."),il("plugins::stock-reaper/rea-delay","ReaDelay","Cockos","delay",38,"transparent",["ReaDelay","VST: ReaDelay (Cockos)"],"Multi-tap delay with tempo sync."),il("plugins::stock-reaper/rea-gate","ReaGate","Cockos","gate",40,"transparent",["ReaGate","VST: ReaGate (Cockos)"],"Noise gate with sidechain and hysteresis."),il("plugins::stock-reaper/js-1175-compressor","JS 1175 Compressor","Cockos (JSFX)","compressor",50,"vintage",["JS: Dynamics/1175_compressor"],"1176-style FET compressor in JSFX; fast attack for vocals and drums."),{key:"user::plugins::auburn-sounds/graillon-3",name:"Graillon 3",vendor:"Auburn Sounds",category:"pitch",preference:70,style:"character",matches:["Graillon 3","VST3: Graillon 3 (Auburn Sounds)"],layer:"user",notes:2,updatedAt:j0-5*w0,preview:"Pitch correction and pitch shifting. Learned: correction amount 0.35 keeps it natural on the lead vocal; bypass on backing doubles.",source:{value:`# Graillon 3
|
|
80
|
+
|
|
81
|
+
**Vendor:** Auburn Sounds
|
|
82
|
+
|
|
83
|
+
Pitch correction and pitch shifting.
|
|
84
|
+
|
|
85
|
+
## Learned notes
|
|
86
|
+
- Correction amount 0.35 keeps it natural on the lead vocal
|
|
87
|
+
- Bypass on backing doubles`,tags:["plugin-knowledge","category::pitch","preference::70","style::character","fx::Graillon 3","layer::user"]}},{key:"user::plugins::joey-sturgis-tones/gain-reduction-2",name:"Gain Reduction 2",vendor:"Joey Sturgis Tones",category:"compressor",preference:78,style:"character",matches:["Gain Reduction 2","VST3: Gain Reduction 2 (Joey Sturgis Tones)"],layer:"user",notes:1,updatedAt:j0-9*w0,preview:'Aggressive vocal compressor. Learned: the "Vibe" knob above 0.6 gets harsh on screams.',source:{value:`# Gain Reduction 2
|
|
88
|
+
|
|
89
|
+
**Vendor:** Joey Sturgis Tones
|
|
90
|
+
|
|
91
|
+
Aggressive vocal compressor.
|
|
92
|
+
|
|
93
|
+
## Learned notes
|
|
94
|
+
- The "Vibe" knob above 0.6 gets harsh on screams`,tags:["plugin-knowledge","category::compressor","preference::78","style::character","fx::Gain Reduction 2","layer::user"]}}],D$=["VST3: Pro-Q 3 (FabFilter)","VST3: Helix Native (Line 6)","VST3: JST Heat (Joey Sturgis Tones)","VST3: Gain Reduction 2 (Joey Sturgis Tones)","VST3: Howard Benson Vocals (Joey Sturgis Tones)","VST3: Graillon 3 (Auburn Sounds)","VST3: Melodyne (Celemony)","VST3: ValhallaVintageVerb (Valhalla DSP, LLC)","VST3: Clear (Supertone)","VST3: Remix (Acon Digital)","VST3: Kontakt 7 (Native Instruments)","VST: ReaEQ (Cockos)","VST: ReaComp (Cockos)","VST: ReaLimit (Cockos)","VST: ReaVerb (Cockos)","VST: ReaDelay (Cockos)","VST: ReaGate (Cockos)","JS: Dynamics/1175_compressor"],c_={"plugins::stock-reaper/rea-verb":"ee3a7217-0792-4895-88f5-ae59ebc87af8","plugins::stock-reaper/rea-limit":"180b5c17-b5f8-4a57-ac97-5b4f77629574","plugins::stock-reaper/rea-gate":"1c197136-3a79-47a9-8995-2bad9d5a1d81","plugins::stock-reaper/rea-eq":"1f6a6ac9-1f83-4d0c-897d-805beee735b1","plugins::stock-reaper/rea-delay":"c2eb218d-8138-41e3-a065-ebf3d8805160","plugins::stock-reaper/rea-comp":"f9fc42b5-a31e-4d15-a5de-0305474190b7","plugins::stock-reaper/js-1175-compressor":"2a68dd7f-4dc4-4091-9b7a-5eab50f411ec","plugins::line-6/helix-native":"52780449-21d4-4966-b3db-6f3be2edcbd7","plugins::joey-sturgis-tones/jst-heat":"4deb8d5f-a12b-44a7-a642-19badf365035","plugins::fabfilter/pro-q-3":"84daa88a-5e98-4e52-8cf2-bb3f14ce1a6f","plugins::fabfilter/pro-l-2":"163ba4be-afe0-4253-bada-9c0731a74bc2","plugins::fabfilter/pro-c-2":"a583716f-b5b4-40cc-be25-bb010c79e3ee"},z$={installed:D$.map(t=>({name:t,type:t.split(":")[0]})),records:O$.map(t=>c_[t.key]?{...t,id:c_[t.key]}:t),used:[{name:"VST3: Pro-Q3 (FabFilter)",count:4},{name:"VST3: Helix Native (Line 6)",count:2},{name:"VST3: Melodyne (Celemony)",count:1},{name:"VST3: Kontakt 7 (Native Instruments)",count:1},{name:"VST: ReaComp (Cockos)",count:3}],publish:async(t,{removeCopy:e})=>(await new Promise(n=>setTimeout(n,600)),{key:t.key.replace(/^user::/,""),removedCopy:e})},B$=["copy","section","insert","remove","normalize","reverse","glue"],L5={},I$=[["changes",["set_track_property","set_multiple_track_properties","set_fx_parameter","set_multiple_fx_parameters","get_fx_parameters","set_automation_mode","freeze_tracks","unfreeze_tracks","apply_fx_to_items"]],["envelope",["insert_envelope_point","insert_envelope_points","edit_envelope_points","delete_envelope_point","remove_envelope_points","clear_envelope","get_envelope_points","list_automation_items","insert_automation_item","set_automation_item","delete_automation_item","get_midi_cc","insert_midi_cc","delete_midi_cc"]],["midi",["insert_midi_note","insert_midi_notes","edit_midi_note","edit_midi_notes","delete_midi_note","get_midi_notes","quantize_midi","transform_midi","import_midi_file"]],["midiStats",["analyze_midi"]],["timeline",["add_marker","add_region","edit_marker","edit_region","delete_marker","delete_region","add_tempo_marker","edit_tempo_marker","delete_tempo_marker","set_project_tempo","list_markers","list_regions","get_tempo_map","list_media_items","move_media_item","split_media_item","trim_media_item","delete_media_item","set_media_item_properties","set_media_items_properties","set_item_fades","insert_audio_file","list_midi_items","set_time_selection","get_time_selection","set_cursor_position","copy_media_items","insert_time","remove_time","copy_section","process_items"]],["mixer",["list_tracks","add_track","delete_track","move_track","set_track_folder","set_track_info"]],["fxChain",["add_fx","remove_fx","move_fx","copy_fx","set_fx_enabled","set_fx_offline","setup_fx_chain","load_fx_chain","rename_fx","set_fx_preset","get_track_properties","list_monitoring_fx","add_monitoring_fx","set_monitoring_fx","remove_monitoring_fx"]],["routing",["get_track_routing","add_send","set_send","remove_send","add_hardware_output"]],["plan",["run_plan"]],["record",["get_record_setup","set_track_record","set_record_mode"]],["lanes",["get_track_lanes","set_track_lanes","comp_lanes"]],["modulation",["get_fx_param_modulation","set_fx_param_modulation"]],["pins",["get_fx_pins","set_fx_pins"]],["stretch",["add_stretch_markers","edit_stretch_markers","quantize_audio","align_audio_to_guide"]],["render",["render_project","render_versions"]]];for(const[t,e]of I$)for(const n of e)L5[n]=t;const ke=t=>typeof t=="number"&&Number.isFinite(t),Je=t=>typeof t=="string";function Gt(t,e){return Array.isArray(t)?t.filter(n=>Array.isArray(n)&&n.length>=e.length&&e.every((s,l)=>s(n[l]))):[]}const N0=[ke,ke,ke],u_=[ke,ke,ke,Je];function d_(t){return Array.isArray(t)?t.flatMap(e=>Array.isArray(e)&&ke(e[0])?[[e[0],Gt(e[1],N0)]]:[]):[]}const f_=[ke,ke,ke,ke],U$=[ke,ke,Je,Je],H$=[ke,Je,Je],V$=[ke,ke,ke,ke],A1=[Je,ke,Je,ke,ke,Je],O5=[ke,ke,ke,ke,ke,ke],m_=[Je,Je,Je,Je],h_=[t=>t==="s"||t==="r"||t==="h",Je,ke,ke,Je],G$=[Je,ke,Je,Je,Je],p_=[Je,ke],v_=[ke,ke,ke,ke];function g_(t){return Je(t.mode)?{mode:t.mode,...Je(t.path)?{path:t.path}:{},...ni(t.punch)?{punch:t.punch}:{},...Array.isArray(t.rows)?{rows:Gt(t.rows,G$)}:{}}:null}const $r=t=>Array.isArray(t)&&t.every(ke),F$=[Je,ke,ke,ke,ke,$r,$r],ni=t=>Array.isArray(t)&&t.length===2&&ke(t[0])&&ke(t[1]),gd=t=>Array.isArray(t)?t.map(e=>$r(e)?e:[]):[];function D5(t,e=0){if(!t||typeof t!="object")return null;const n=t;if(!Je(n.p))return null;const s={p:n.p,base:ke(n.base)?n.base:0,v:ke(n.v)?n.v:0};return n.off===1&&(s.off=1),Array.isArray(n.lfo)&&Je(n.lfo[0])&&n.lfo.slice(1,6).every(ke)&&(s.lfo=n.lfo.slice(0,6)),Array.isArray(n.acs)&&n.acs.length>=7&&n.acs.every(ke)&&(s.acs=n.acs.slice(0,7)),Array.isArray(n.link)&&Je(n.link[0])&&ke(n.link[1])&&ke(n.link[2])&&(s.link=[n.link[0],n.link[1],n.link[2]]),e===0&&n.was!==void 0&&(s.was=n.was===!1?!1:D5(n.was,1)??!1),s}const _d=t=>Array.isArray(t)&&t.every(Je);function __(t){return Gt(t,O5).map(e=>ke(e[6])?[...e.slice(0,6),e[6]]:e.slice(0,6))}function y_(t){return{regions:Gt(t.regions,U$),markers:Gt(t.markers,H$),tempo:Gt(t.tempo,V$)}}function Ms(t){const e=L5[t.c],n=t.r;if(!e||!t.ok||!n)return null;switch(e){case"changes":{if(!Array.isArray(n.rows))return null;const s=n.rows.filter(l=>!!l&&typeof l=="object"&&Je(l.t)&&Je(l.p)&&["db","pan","bool","norm"].includes(l.s));return s.length?{kind:e,rows:s,...ke(n.more)&&n.more>0?{more:n.more}:{}}:null}case"envelope":{if(!ke(n.from)||!ke(n.to)||!Array.isArray(n.pts))return null;const s=["dB","pan","mute","cc"].includes(n.unit)?n.unit:"raw";return{kind:e,unit:s,env:Je(n.env)?n.env:"Envelope",from:n.from,to:n.to,pts:Gt(n.pts,N0),...Array.isArray(n.was)?{was:Gt(n.was,N0)}:{},count:ke(n.count)?n.count:n.pts.length,...n.beats===1||n.beats===!0?{beats:!0}:{},...ke(n.otherCcs)&&n.otherCcs>0?{otherCcs:n.otherCcs}:{},...Array.isArray(n.ais)?{ais:Gt(n.ais,u_),pools:d_(n.pools)}:{},...ke(n.ai)?{ai:n.ai}:{},...ke(n.aisMore)&&n.aisMore>0?{aisMore:n.aisMore}:{},...Array.isArray(n.wasAis)?{wasAis:Gt(n.wasAis,u_),wasPools:d_(n.wasPools)}:{}}}case"midi":{if(!Array.isArray(n.notes))return null;const s=Gt(n.notes,f_).map(a=>[a[0],a[1],a[2],a[3],a[4]===1?1:0]),l=Array.isArray(n.ts)&&ke(n.ts[0])&&ke(n.ts[1])&&n.ts[0]>0&&n.ts[1]>0?[n.ts[0],n.ts[1]]:void 0;return{kind:e,notes:s,ts:l,total:ke(n.total)?n.total:s.length,beats:ke(n.beats)&&n.beats>0?n.beats:void 0,more:ke(n.more)?n.more:0,...ke(n.items)&&n.items>0?{items:n.items}:{},...Array.isArray(n.gone)?{gone:Gt(n.gone,f_).map(a=>[a[0],a[1],a[2],a[3],0])}:{}}}case"midiStats":{const s=Gt(n.pitches,[ke,ke,ke,ke,ke]).map(a=>[a[0],a[1],a[2],a[3],a[4],ke(a[5])?a[5]:0]);if(!s.length)return null;const l=Array.isArray(n.hist)&&n.hist.every(ke)?n.hist:void 0;return{kind:e,pitches:s,hist:l,total:ke(n.total)?n.total:void 0,beats:ke(n.beats)?n.beats:void 0}}case"timeline":{if(!Array.isArray(n.tempo))return null;const s=n.was&&typeof n.was=="object"?y_(n.was):void 0,l=Array.isArray(n.lanes)?n.lanes.flatMap(a=>{if(!a||typeof a!="object"||!Je(a.t))return[];const i=a;return[{t:i.t,items:__(i.items),...Array.isArray(i.was)?{was:__(i.was)}:{}}]}):void 0;return{kind:e,...y_(n),len:ke(n.len)?n.len:0,...Array.isArray(n.items)?{items:Gt(n.items,O5)}:{},...s?{was:s}:{},...l?{lanes:l}:{},...ni(n.sel)?{sel:n.sel}:{},...ke(n.cur)?{cur:n.cur}:{},...ni(n.wasSel)?{wasSel:n.wasSel}:ke(n.wasCur)?{wasSel:null}:{},...ke(n.wasCur)?{wasCur:n.wasCur}:{},...Je(n.op)&&B$.includes(n.op)?{op:n.op}:{},...ni(n.span)?{span:n.span}:{},...ni(n.to)?{to:n.to}:{},...ke(n.moreTracks)&&n.moreTracks>0?{moreTracks:n.moreTracks}:{}}}case"mixer":{const s=Gt(n.tracks,A1),l=Gt([n.master],A1)[0];if(!s.length&&!l)return null;const a=n.was&&typeof n.was=="object"?n.was:void 0,i=_d(n.ids)&&n.ids.length===s.length&&a&&_d(a.ids);return{kind:e,tracks:s,total:ke(n.total)?n.total:s.length,...l?{master:l}:{},...ke(n.from)&&n.from>0?{from:n.from}:{},...i?{ids:n.ids,was:{tracks:Gt(a.tracks,A1),ids:a.ids}}:{}}}case"fxChain":{if(!Array.isArray(n.chains))return null;const s=n.chains.flatMap(l=>{if(!l||typeof l!="object"||!Je(l.t))return[];const a=l;return[{t:a.t,fx:Gt(a.fx,m_),...Array.isArray(a.was)?{was:Gt(a.was,m_)}:{}}]});return s.length?{kind:e,chains:s}:null}case"routing":return!Je(n.t)||!Array.isArray(n.routes)?null:{kind:e,t:n.t,routes:Gt(n.routes,h_),...Array.isArray(n.was)?{was:Gt(n.was,h_)}:{}};case"record":{const s=g_(n);if(!s)return null;const l=n.was&&typeof n.was=="object"?g_(n.was):null;return{kind:e,...s,...ke(n.more)&&n.more>0?{more:n.more}:{},...l?{was:l}:{}}}case"lanes":{if(!Je(n.t)||!Array.isArray(n.lanes))return null;const s=n.was&&typeof n.was=="object"?n.was:void 0;return{kind:e,t:n.t,fixed:n.fixed===1||n.fixed===!0,len:ke(n.len)?n.len:0,lanes:Gt(n.lanes,p_),items:Gt(n.items,v_),...ke(n.comp)?{comp:n.comp,segs:Gt(n.segs,[ke,ke,ke])}:{},...ke(n.more)&&n.more>0?{more:n.more}:{},...s&&Array.isArray(s.lanes)?{was:{lanes:Gt(s.lanes,p_),items:Gt(s.items,v_),fixed:s.fixed===1||s.fixed===!0}}:{}}}case"render":{if(!Array.isArray(n.groups))return null;const s=n.groups.flatMap(l=>{if(!l||typeof l!="object")return[];const a=l;return[{v:Je(a.v)?a.v:"",m:_d(a.m)?a.m:[],f:Gt(a.f,F$)}]});return s.some(l=>l.f.length)?{kind:e,fmt:Je(n.fmt)?n.fmt:"",src:Je(n.src)?n.src:"master",groups:s,...ke(n.more)&&n.more>0?{more:n.more}:{},...Je(n.bd)?{bd:n.bd}:{},...ke(n.kbps)?{kbps:n.kbps}:{},...Je(n.norm)?{norm:n.norm,...ke(n.nt)?{nt:n.nt}:{}}:{},...ke(n.lim)?{lim:n.lim,tp:n.tp===!0}:{}}:null}case"plan":{const s=Gt(n.ops,[Je,Je]);return s.length?{kind:e,ops:s,total:ke(n.total)?n.total:s.length,...n.dryRun===!0?{dryRun:!0}:{}}:null}case"modulation":{const s=Array.isArray(n.rows)?n.rows.map(l=>D5(l)).filter(l=>!!l):[];return{kind:e,fx:Je(n.fx)?n.fx:"",rows:s,...ke(n.total)?{total:n.total}:{}}}case"pins":return!ke(n.ch)||!Array.isArray(n.in)?null:{kind:e,fx:Je(n.fx)?n.fx:"",ch:n.ch,in:gd(n.in),out:gd(n.out),..._d(n.names)?{names:n.names}:{},...ke(n.chWas)?{chWas:n.chWas}:{},...Array.isArray(n.inWas)?{inWas:gd(n.inWas),outWas:gd(n.outWas)}:{}};case"stretch":return!ke(n.len)||n.len<=0?null:{kind:e,len:n.len,...Array.isArray(n.moves)?{moves:n.moves.filter(ni)}:{},...ke(n.more)&&n.more>0?{more:n.more}:{},...$r(n.grid)?{grid:n.grid}:{},...ni(n.off)?{off:n.off}:{},...n.guide===!0?{guide:!0}:{},...$r(n.marks)?{marks:n.marks}:{},...$r(n.was)?{was:n.was}:{}}}}function P$(t){return t.flatMap(e=>e.items.flatMap(n=>{const s=(e.was??[]).find(l=>l[0]===n[0]&&l[1]===n[1]);return n[6]!==void 0&&s?.[6]!==void 0&&s[6]!==n[6]?[[n[6],s[6]]]:[]}))}function pi(t,e){if(!e)return{added:new Set,removed:[]};const n=a=>JSON.stringify(a),s=new Set(e.map(n)),l=new Set(t.map(n));return{added:new Set(t.filter(a=>!s.has(n(a)))),removed:e.filter(a=>!l.has(n(a)))}}function q$(t,e){if(!e)return new Set;const n=new Set(e.map(s=>`${s[0]}:${s[1]}`));return new Set(t.filter(s=>!n.has(`${s[0]}:${s[1]}`)))}const Y$=t=>Math.min(80,t.length*6.4)+6;function X$(t,e,n=new Set){const s=[],l=new Set,a=t.map((i,r)=>r).sort((i,r)=>Number(n.has(r))-Number(n.has(i))||t[i][0]-t[r][0]);for(const i of a){const r=t[i][0]*e,c=Math.min(e,r+Y$(t[i][1]));s.some(([u,d])=>r<d&&c>u)||(s.push([r,c]),l.add(i))}return l}function gv(t,e,n,s){const l=new Map;if(!e)return{change:l,removed:[]};const a=t.map(n),i=e.map(n),r=new Map(i.map((f,h)=>[f,h])),c=new Set(a.filter(f=>r.has(f))),u=a.filter(f=>c.has(f)),d=i.filter(f=>c.has(f)),m=K$(d.map(f=>u.indexOf(f)));return a.forEach((f,h)=>{const g=r.get(f);g===void 0?l.set(h,"new"):m.has(u.indexOf(f))?s(t[h],e[g])||l.set(h,"changed"):l.set(h,"moved")}),{change:l,removed:e.flatMap((f,h)=>c.has(i[h])?[]:[[h,f]])}}function K$(t){const e=[];for(const n of t){let s=[];for(const l of e)l[l.length-1]<n&&l.length>s.length&&(s=l);e.push([...s,n])}return new Set(e.reduce((n,s)=>s.length>n.length?s:n,[]))}function b_(t){const e=new Map;return t.map(n=>{const s=`${n[0]}:${n[1]}`,l=(e.get(s)??0)+1;return e.set(s,l),`${s}#${l}`})}function Q$(t,e){const n=[],s=u=>u&&n.push(u[0],u[1]);if(s(t.span),s(t.to),!t.op){for(const u of t.lanes??[]){if(!u.was)continue;const{added:d,removed:m}=pi(u.items,u.was),f=b=>[...b].flatMap(p=>[p[0],p[0]+p[1]]),h=f(d),g=f(m),y=(b,p)=>b.some(v=>Math.abs(p-v)<.001);n.push(...h.filter(b=>!y(g,b)),...g.filter(b=>!y(h,b)))}for(const[u,d]of[[t.regions,t.was?.regions],[t.markers,t.was?.markers],[t.tempo,t.was?.tempo]]){const{added:m,removed:f}=pi(u,d);for(const h of[...m,...f])n.push(h[0])}}if(!n.length)return null;const l=Math.min(...n),a=Math.max(...n),i=Math.max(8,(a-l)/2),r=Math.max(0,l-i),c=Math.min(e,a+i);return c-r>=e*.8?null:[r,c]}const be=(t,e=1)=>t===void 0?"–":t<=-149?"−∞":(t>0?`+${t.toFixed(e)}`:t.toFixed(e)).replace("-","−"),gn=(t,e,n)=>Math.min(100,Math.max(0,(t-e)/(n-e)*100)),fl=t=>`${Math.floor(t/60)}:${String(Math.floor(t%60)).padStart(2,"0")}`,Rr=t=>t>=1e3?`${+(t/1e3).toFixed(t>=1e4?0:1)}k`:`${Math.round(t)}`,Ll=t=>t===void 0?"ok":t>0?"over":t>-6?"hot":"ok",Z$={ok:null,hot:"hot",over:"over 0"},Xf=t=>t===void 0?"ok":t>0?"over":t>-1?"hot":"ok",xu=t=>t===void 0?void 0:t>0?"over 0":t>-1?"over −1":void 0;function W$(t){const e=Em(t.p),n=e&&typeof e=="object"?e.targetLufs:void 0;return typeof n=="number"&&n<0&&n>-60?n:null}function Uo(t,e,n,s,{deltaUnit:l=n,digits:a=1,signed:i=!0}={}){const r=d=>i||d===void 0?be(d,a):d.toFixed(a),c=n?` ${n}`:"";if(s===void 0||s<=-149||e===void 0||e<=-149)return`${t} ${r(e)}${c}`;const u=e-s;return Math.abs(u)<.5*10**-a?`${t} ${r(e)}${c}, as in the previous call`:`${t} ${r(s)} → ${r(e)}${c} ${u>0?"▲":"▼"} ${Math.abs(u).toFixed(a)}${l?` ${l}`:""}`}const J$=[["pq","Production quality","How clean and well produced it sounds"],["pc","Production complexity","How much is going on"],["ce","Content enjoyment","How enjoyable it is"],["cu","Content usefulness","How usable it is as material"]];function z5(t){const e=fe.c(20),{m:n,was:s}=t;let l;e[0]!==n||e[1]!==s?(l=J$.map(h=>{const[g,y,b]=h,p=n[g],v=s?.[g];return o.jsxs(Qn,{className:B.evRow,tip:[b,Uo("Score",p,"of 10",v,{deltaUnit:"",signed:!1})],children:[o.jsx("span",{className:B.evName,children:y}),o.jsxs("span",{className:K(B.evVal,"mono"),children:[o.jsx("b",{children:p===void 0?"–":p.toFixed(1)})," / 10",v!==void 0&&p!==void 0&&Math.abs(p-v)>=.05&&o.jsxs("span",{children:[" ",p>v?"▲":"▼"," ",Math.abs(p-v).toFixed(1)]})]}),o.jsxs("span",{className:B.evBar,children:[o.jsx("span",{className:B.evFill,style:{left:0,width:`${p===void 0?0:gn(p,0,10)}%`}}),v!==void 0&&o.jsx("span",{className:B.evWas,style:{left:`${gn(v,0,10)}%`}})]})]},g)}),e[0]=n,e[1]=s,e[2]=l):l=e[2];let a;e[3]!==l?(a=o.jsx("div",{className:B.evRows,children:l}),e[3]=l,e[4]=a):a=e[4];let i;e[5]!==s?(i=s&&o.jsxs("div",{className:B.measureLegend,children:[o.jsxs("span",{children:[o.jsx("i",{className:B.lgRange})," This call"]}),o.jsxs("span",{children:[o.jsx("i",{className:B.lgWas})," Previous call"]})]}),e[5]=s,e[6]=i):i=e[6];const r=n.name??"Clip";let c;e[7]!==n.dur?(c=n.dur!==void 0?`, ${Math.round(n.dur)} s`:"",e[7]=n.dur,e[8]=c):c=e[8];let u;e[9]!==n.lufs?(u=n.lufs!==void 0?`, scored at ${be(n.lufs,0)} LUFS`:", scored as rendered",e[9]=n.lufs,e[10]=u):u=e[10];const d=n.dur!==void 0&&` Differences under ~${n.dur>=30?"0.1":"0.4"} are render noise at this length.`;let m;e[11]!==r||e[12]!==c||e[13]!==u||e[14]!==d?(m=o.jsx("div",{className:B.offHints,children:o.jsxs("span",{children:[r,c,u,".",d]})}),e[11]=r,e[12]=c,e[13]=u,e[14]=d,e[15]=m):m=e[15];let f;return e[16]!==a||e[17]!==i||e[18]!==m?(f=o.jsxs(o.Fragment,{children:[a,i,m]}),e[16]=a,e[17]=i,e[18]=m,e[19]=f):f=e[19],f}const eR="_hlLevel_s6mov_2",tR="_hlLabel_s6mov_3",nR="_hlValue_s6mov_4",sR="_hlTrack_s6mov_7",lR="_hlFill_s6mov_9",aR="_hlHold_s6mov_10",oR="_hlZero_s6mov_11",iR="_hlCentre_s6mov_12",rR="_hlDot_s6mov_13",cR="_hlWas_s6mov_18",uR="_hlWasHold_s6mov_19",dR="_hlWasDot_s6mov_20",fR="_hlFillLevel_s6mov_24",mR="_hlFillCorrelation_s6mov_30",qn={hlLevel:eR,hlLabel:tR,hlValue:nR,hlTrack:sR,hlFill:lR,hlHold:aR,hlZero:oR,hlCentre:iR,hlDot:rR,hlWas:cR,hlWasHold:uR,hlWasDot:dR,hlFillLevel:fR,hlFillCorrelation:mR};function ot(t){const e=fe.c(16),{label:n,value:s,unit:l,zone:a,word:i,title:r}=t,c=a===void 0?"ok":a,u=i??Z$[c];let d;e[0]!==u?(d=u&&o.jsxs("span",{className:B.measureRoWord,children:[" · ",u]}),e[0]=u,e[1]=d):d=e[1];let m;e[2]!==n||e[3]!==d?(m=o.jsxs("span",{className:B.measureRoLabel,children:[n,d]}),e[2]=n,e[3]=d,e[4]=m):m=e[4];let f;e[5]===Symbol.for("react.memo_cache_sentinel")?(f=K(B.measureRoValue,"mono"),e[5]=f):f=e[5];let h;e[6]!==l?(h=l&&o.jsx("small",{children:l}),e[6]=l,e[7]=h):h=e[7];let g;e[8]!==h||e[9]!==s?(g=o.jsxs("span",{className:f,children:[s,h]}),e[8]=h,e[9]=s,e[10]=g):g=e[10];let y;return e[11]!==m||e[12]!==g||e[13]!==r||e[14]!==c?(y=o.jsxs("div",{className:B.measureRo,"data-zone":c,title:r,children:[m,g]}),e[11]=m,e[12]=g,e[13]=r,e[14]=c,e[15]=y):y=e[15],y}function nf(t){const e=fe.c(35),{label:n,value:s,hold:l,was:a,showValue:i}=t,r=i===void 0?!0:i;let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c=K(qn.hlLabel,"mono"),e[0]=c):c=e[0];let u;e[1]!==n?(u=o.jsx("span",{className:c,children:n}),e[1]=n,e[2]=u):u=e[2];const d=a?.hold;let m;e[3]!==l||e[4]!==d?(m=Uo("Peak",l,"dB",d),e[3]=l,e[4]=d,e[5]=m):m=e[5];const f=a?.value;let h;e[6]!==f||e[7]!==s?(h=Uo("RMS",s,"dB",f),e[6]=f,e[7]=s,e[8]=h):h=e[8];let g;e[9]!==m||e[10]!==h?(g=[m,h],e[9]=m,e[10]=h,e[11]=g):g=e[11];let y;e[12]!==s?(y=s!==void 0&&o.jsx("span",{className:K(qn.hlFill,qn.hlFillLevel),style:{clipPath:`inset(0 ${100-gn(s,-60,6)}% 0 0 round 2px)`}}),e[12]=s,e[13]=y):y=e[13];let b;e[14]===Symbol.for("react.memo_cache_sentinel")?(b=o.jsx("span",{className:qn.hlZero,style:{left:`${gn(0,-60,6)}%`}}),e[14]=b):b=e[14];let p;e[15]!==a?(p=a?.value!==void 0&&o.jsx("span",{className:qn.hlWas,style:{left:`${gn(a.value,-60,6)}%`}}),e[15]=a,e[16]=p):p=e[16];let v;e[17]!==a?(v=a?.hold!==void 0&&o.jsx("span",{className:qn.hlWasHold,style:{left:`${gn(a.hold,-60,6)}%`}}),e[17]=a,e[18]=v):v=e[18];let _;e[19]!==l?(_=l!==void 0&&o.jsx("span",{className:qn.hlHold,"data-zone":Ll(l),style:{left:`${gn(l,-60,6)}%`}}),e[19]=l,e[20]=_):_=e[20];let x;e[21]!==p||e[22]!==v||e[23]!==_||e[24]!==g||e[25]!==y?(x=o.jsxs(Qn,{className:qn.hlTrack,tip:g,children:[y,b,p,v,_]}),e[21]=p,e[22]=v,e[23]=_,e[24]=g,e[25]=y,e[26]=x):x=e[26];let k;e[27]!==l||e[28]!==r||e[29]!==s?(k=r&&o.jsx("span",{className:K(qn.hlValue,"mono"),"data-zone":Ll(l??s),children:be(l??s)}),e[27]=l,e[28]=r,e[29]=s,e[30]=k):k=e[30];let w;return e[31]!==x||e[32]!==k||e[33]!==u?(w=o.jsxs("div",{className:qn.hlLevel,children:[u,x,k]}),e[31]=x,e[32]=k,e[33]=u,e[34]=w):w=e[34],w}function Su(t){const e=fe.c(14),{ticks:n,min:s,max:l,indent:a}=t,i=a?B.measureScaleIndent:"";let r;e[0]!==i?(r=K(B.measureScale,i),e[0]=i,e[1]=r):r=e[1];let c;if(e[2]!==l||e[3]!==s||e[4]!==n){let m;e[6]!==l||e[7]!==s?(m=f=>o.jsx("span",{style:{left:`${gn(f,s,l)}%`},children:be(f,0)},f),e[6]=l,e[7]=s,e[8]=m):m=e[8],c=n.map(m),e[2]=l,e[3]=s,e[4]=n,e[5]=c}else c=e[5];let u;e[9]!==c?(u=o.jsx("div",{children:c}),e[9]=c,e[10]=u):u=e[10];let d;return e[11]!==r||e[12]!==u?(d=o.jsx("div",{className:r,children:u}),e[11]=r,e[12]=u,e[13]=d):d=e[13],d}const hR="_offAlign_19zpk_1",pR="_offAlignFill_19zpk_3",vR="_offAlignRef_19zpk_4",gR="_offAlignTrk_19zpk_4",_R="_offInv_19zpk_6",mc={offAlign:hR,offAlignFill:pR,offAlignRef:vR,offAlignTrk:gR,offInv:_R};function B5(t){const e=fe.c(58),{m:n}=t,s=n.delayMs??0,l=Math.max(1,Math.ceil(Math.abs(s)*1.5));let a;e[0]!==l?(a=L=>gn(L,-l,l),e[0]=l,e[1]=a):a=e[1];const i=a,r=n.warn===1;let c;e[2]!==s||e[3]!==n.delayMs?(c=n.delayMs===void 0?"–":`${s>0?"+":""}${s.toFixed(2)}`,e[2]=s,e[3]=n.delayMs,e[4]=c):c=e[4];const u=n.samples!==void 0?`${n.samples} samples`:void 0;let d;e[5]!==c||e[6]!==u?(d=o.jsx(ot,{label:"Delay",value:c,unit:"ms",title:u}),e[5]=c,e[6]=u,e[7]=d):d=e[7];const m=n.inv?"inverted":"normal",f=n.inv?"hot":"ok";let h;e[8]!==m||e[9]!==f?(h=o.jsx(ot,{label:"Polarity",value:m,zone:f,word:""}),e[8]=m,e[9]=f,e[10]=h):h=e[10];let g;e[11]!==n.corr?(g=n.corr===void 0?"–":n.corr.toFixed(2),e[11]=n.corr,e[12]=g):g=e[12];const y=r?"hot":"ok";let b;e[13]!==g||e[14]!==y?(b=o.jsx(ot,{label:"Correlation",value:g,zone:y,word:""}),e[13]=g,e[14]=y,e[15]=b):b=e[15];let p;e[16]!==b||e[17]!==d||e[18]!==h?(p=o.jsxs("div",{className:B.measureReadouts,children:[d,h,b]}),e[16]=b,e[17]=d,e[18]=h,e[19]=p):p=e[19];let v;e[20]!==s?(v=Math.abs(s).toFixed(2),e[20]=s,e[21]=v):v=e[21];const _=`${n.name??"Track"} ${v} ms ${s>=0?"after":"before"} ${n.ref??"the reference"}`,x=`${i(0)}%`;let k;e[22]!==x?(k={left:x},e[22]=x,e[23]=k):k=e[23];const w=n.ref??"Reference";let R;e[24]!==w?(R=o.jsx("b",{children:w}),e[24]=w,e[25]=R):R=e[25];let j;e[26]!==k||e[27]!==R?(j=o.jsx("span",{className:mc.offAlignRef,style:k,children:R}),e[26]=k,e[27]=R,e[28]=j):j=e[28];let N;e[29]!==i||e[30]!==s||e[31]!==n.delayMs||e[32]!==n.inv||e[33]!==n.name?(N=n.delayMs!==void 0&&o.jsxs(o.Fragment,{children:[o.jsx("span",{className:K(B.evFill,mc.offAlignFill),style:{left:`${Math.min(i(0),i(s))}%`,width:`${Math.abs(i(s)-i(0))}%`}}),o.jsx("span",{className:K(mc.offAlignTrk,n.inv?mc.offInv:""),style:{left:`${i(s)}%`},children:o.jsx("b",{children:n.name??"Track"})})]}),e[29]=i,e[30]=s,e[31]=n.delayMs,e[32]=n.inv,e[33]=n.name,e[34]=N):N=e[34];let E;e[35]!==_||e[36]!==j||e[37]!==N?(E=o.jsxs("div",{className:mc.offAlign,role:"img","aria-label":_,children:[j,N]}),e[35]=_,e[36]=j,e[37]=N,e[38]=E):E=e[38];let C;e[39]===Symbol.for("react.memo_cache_sentinel")?(C=K(B.measureScaleWords,"mono"),e[39]=C):C=e[39];let O;e[40]!==l?(O=o.jsxs("span",{children:["−",l," ms (earlier)"]}),e[40]=l,e[41]=O):O=e[41];let M;e[42]===Symbol.for("react.memo_cache_sentinel")?(M=o.jsx("span",{children:"0"}),e[42]=M):M=e[42];let A;e[43]!==l?(A=o.jsxs("span",{children:["+",l," ms (later)"]}),e[43]=l,e[44]=A):A=e[44];let T;e[45]!==O||e[46]!==A?(T=o.jsxs("div",{className:C,children:[O,M,A]}),e[45]=O,e[46]=A,e[47]=T):T=e[47];let S;e[48]!==n.cur||e[49]!==n.offset||e[50]!==n.phase||e[51]!==r?(S=r?o.jsx("div",{className:B.offHints,children:o.jsx("span",{className:B.evWord,children:"Too little in common in this range to trust the delay; no fix suggested."})}):n.offset!==void 0&&o.jsx("div",{className:B.offHints,children:o.jsxs("span",{children:["Fix: play offset ",o.jsxs("span",{className:"mono",children:[n.cur!==void 0&&n.cur!==0?`${be(n.cur,2)} → `:"",be(n.offset,2)," ms"]}),n.phase!==void 0&&o.jsxs(o.Fragment,{children:[", polarity ",o.jsx("span",{className:"mono",children:n.phase?"inverted":"normal"})]})]})}),e[48]=n.cur,e[49]=n.offset,e[50]=n.phase,e[51]=r,e[52]=S):S=e[52];let $;return e[53]!==p||e[54]!==E||e[55]!==T||e[56]!==S?($=o.jsxs(o.Fragment,{children:[p,E,T,S]}),e[53]=p,e[54]=E,e[55]=T,e[56]=S,e[57]=$):$=e[57],$}const yR="_bars_113rx_2",bR="_col_113rx_3",xR="_track_113rx_4",SR="_fill_113rx_5",kR="_was_113rx_8",wR="_pc_113rx_9",jR="_deg_113rx_11",NR="_lgTonic_113rx_13",TR="_lgIn_113rx_14",ER="_lgOut_113rx_15",Fl={bars:yR,col:bR,track:xR,fill:SR,was:kR,pc:wR,deg:jR,lgTonic:NR,lgIn:TR,lgOut:ER},L1=["C","C#","D","Eb","E","F","F#","G","Ab","A","Bb","B"],$R={major:[0,2,4,5,7,9,11],minor:[0,2,3,5,7,8,10]},x_={major:["1","2","3","4","5","6","7"],minor:["1","2","♭3","4","5","♭6","♭7"]};function I5(t){const e=fe.c(61),{m:n,was:s}=t,l=L1.indexOf(n.tonic??"");let a,i,r,c,u;if(e[0]!==n.chroma||e[1]!==n.conf||e[2]!==n.key||e[3]!==n.mode||e[4]!==n.rel||e[5]!==l||e[6]!==s?.chroma){const j=$R[n.mode??""]??[],N=D=>l<0?-1:j.indexOf((D-l+12)%12),E=n.conf,C=E===void 0||E>=.25?"ok":"hot",O=n.key??"–";let M;e[12]!==O?(M=o.jsx(ot,{label:"Key",value:O}),e[12]=O,e[13]=M):M=e[13];let A;e[14]!==E?(A=E===void 0?"–":`${Math.round(E*100)}`,e[14]=E,e[15]=A):A=e[15];const T=C==="hot"?"low":void 0;let S;e[16]!==A||e[17]!==T||e[18]!==C?(S=o.jsx(ot,{label:"Confidence",value:A,unit:"%",zone:C,word:T,title:"How far this key stands out from the next one that is not its relative key, scaled by how well it fits"}),e[16]=A,e[17]=T,e[18]=C,e[19]=S):S=e[19];const $=n.rel??"–";let L;e[20]!==$?(L=o.jsx(ot,{label:"Relative key",value:$}),e[20]=$,e[21]=L):L=e[21],e[22]!==S||e[23]!==L||e[24]!==M?(u=o.jsxs("div",{className:B.measureReadouts,children:[M,S,L]}),e[22]=S,e[23]=L,e[24]=M,e[25]=u):u=e[25],a=Fl.bars,i="img";let z;e[26]!==n.chroma?(z=L1.map((D,U)=>`${D} ${Math.round(n.chroma[U]*100)}%`).join(", "),e[26]=n.chroma,e[27]=z):z=e[27],r=`Pitch classes: ${z}`,c=L1.map((D,U)=>{const I=N(U),F=s?.chroma[U];return o.jsxs(Qn,{className:Fl.col,"data-scale":I===0?"tonic":I>0?"in":"out",tip:[`${D} · ${I>=0?`scale degree ${x_[n.mode??"major"]?.[I]??""}`:"outside the key"}`,F===void 0?`${Math.round(n.chroma[U]*100)}%`:Uo("Share",n.chroma[U]*100,"%",F*100,{digits:0,signed:!1})],children:[o.jsxs("span",{className:Fl.track,children:[o.jsx("span",{className:Fl.fill,style:{height:`${gn(n.chroma[U],0,1)}%`}}),F!==void 0&&o.jsx("span",{className:Fl.was,style:{bottom:`${gn(F,0,1)}%`}})]}),o.jsx("span",{className:K(Fl.pc,"mono"),children:D}),o.jsx("span",{className:K(Fl.deg,"mono"),children:I>=0?x_[n.mode??"major"]?.[I]:""})]},D)}),e[0]=n.chroma,e[1]=n.conf,e[2]=n.key,e[3]=n.mode,e[4]=n.rel,e[5]=l,e[6]=s?.chroma,e[7]=a,e[8]=i,e[9]=r,e[10]=c,e[11]=u}else a=e[7],i=e[8],r=e[9],c=e[10],u=e[11];let d;e[28]!==a||e[29]!==i||e[30]!==r||e[31]!==c?(d=o.jsx("div",{className:a,role:i,"aria-label":r,children:c}),e[28]=a,e[29]=i,e[30]=r,e[31]=c,e[32]=d):d=e[32];let m;e[33]!==l?(m=l>=0&&o.jsxs("span",{children:[o.jsx("i",{className:Fl.lgTonic})," Tonic"]}),e[33]=l,e[34]=m):m=e[34];let f;e[35]!==l?(f=l>=0&&o.jsxs("span",{children:[o.jsx("i",{className:Fl.lgIn})," In the key"]}),e[35]=l,e[36]=f):f=e[36];let h;e[37]===Symbol.for("react.memo_cache_sentinel")?(h=o.jsx("i",{className:Fl.lgOut}),e[37]=h):h=e[37];const g=l>=0?"Outside the key":"Pitch class";let y;e[38]!==g?(y=o.jsxs("span",{children:[h," ",g]}),e[38]=g,e[39]=y):y=e[39];let b;e[40]!==s?(b=s&&o.jsxs("span",{children:[o.jsx("i",{className:B.lgPrevious})," Previous call"]}),e[40]=s,e[41]=b):b=e[41];let p;e[42]!==y||e[43]!==b||e[44]!==m||e[45]!==f?(p=o.jsxs("div",{className:B.measureLegend,children:[m,f,y,b]}),e[42]=y,e[43]=b,e[44]=m,e[45]=f,e[46]=p):p=e[46];const v=n.name?`${n.name}, `:"",_=n.src==="midi"?"MIDI notes":n.src==="file"?"an audio file":"the rendered audio";let x;e[47]!==n.r?(x=n.r!==void 0&&` · fit ${n.r.toFixed(2)}`,e[47]=n.r,e[48]=x):x=e[48];let k;e[49]!==n.alt?(k=n.alt.length>0&&o.jsxs(o.Fragment,{children:[" · next closest: ",n.alt.map(RR).join(", ")]}),e[49]=n.alt,e[50]=k):k=e[50];let w;e[51]!==v||e[52]!==_||e[53]!==x||e[54]!==k?(w=o.jsx("div",{className:B.offHints,children:o.jsxs("span",{children:[v,"from ",_,x,k]})}),e[51]=v,e[52]=_,e[53]=x,e[54]=k,e[55]=w):w=e[55];let R;return e[56]!==p||e[57]!==w||e[58]!==u||e[59]!==d?(R=o.jsxs(o.Fragment,{children:[u,d,p,w]}),e[56]=p,e[57]=w,e[58]=u,e[59]=d,e[60]=R):R=e[60],R}function RR(t){const[e,n]=t;return`${e} (${n.toFixed(2)})`}const CR="_chart_nls73_2",MR="_chord_nls73_3",AR="_name_nls73_10",LR="_roman_nls73_12",OR="_lgIn_nls73_13",DR="_lgOut_nls73_14",zR="_lgNone_nls73_15",ci={chart:CR,chord:MR,name:AR,roman:LR,lgIn:OR,lgOut:DR,lgNone:zR},U5=(t,e)=>t==="N"?"none":/[♭♯]/.test(e)?"out":e?"in":"unknown",BR=1.8,Kf=t=>`${Math.floor(t/60)}:${(t%60).toFixed(1).padStart(4,"0")}`;function H5(t){const e=fe.c(41),{m:n}=t;let s;e[0]!==n.ch?(s=new Set(n.ch.map(VR).filter(HR)),e[0]=n.ch,e[1]=s):s=e[1];const l=s;let a;e[2]!==n.ch?(a=new Set(n.ch.map(UR)),e[2]=n.ch,e[3]=a):a=e[3];const i=a,r=n.key??"–";let c;e[4]!==r?(c=o.jsx(ot,{label:"Key",value:r}),e[4]=r,e[5]=c):c=e[5];const u=String(l.size);let d;e[6]!==u?(d=o.jsx(ot,{label:"Chords",value:u,title:"Different chords in the range"}),e[6]=u,e[7]=d):d=e[7];const m=n.per==="beat"?"Beat":n.per==="bar"?"Bar":n.per??"–";let f;e[8]!==m?(f=o.jsx(ot,{label:"One per",value:m}),e[8]=m,e[9]=f):f=e[9];let h;e[10]!==c||e[11]!==d||e[12]!==f?(h=o.jsxs("div",{className:B.measureReadouts,children:[c,d,f]}),e[10]=c,e[11]=d,e[12]=f,e[13]=h):h=e[13];let g;e[14]!==n.ch?(g=n.ch.map(IR),e[14]=n.ch,e[15]=g):g=e[15];let y;e[16]!==g?(y=o.jsx("ol",{className:ci.chart,"aria-label":"Chord progression",children:g}),e[16]=g,e[17]=y):y=e[17];let b;e[18]!==i?(b=i.has("in")&&o.jsxs("span",{children:[o.jsx("i",{className:ci.lgIn})," In the key"]}),e[18]=i,e[19]=b):b=e[19];let p;e[20]!==i?(p=i.has("out")&&o.jsxs("span",{children:[o.jsx("i",{className:ci.lgOut})," Root outside the key"]}),e[20]=i,e[21]=p):p=e[21];let v;e[22]!==i?(v=i.has("none")&&o.jsxs("span",{children:[o.jsx("i",{className:ci.lgNone})," No chord"]}),e[22]=i,e[23]=v):v=e[23];let _;e[24]!==b||e[25]!==p||e[26]!==v?(_=o.jsxs("div",{className:B.measureLegend,children:[b,p,v]}),e[24]=b,e[25]=p,e[26]=v,e[27]=_):_=e[27];const x=n.name?`${n.name}, `:"",k=n.src==="midi"?"MIDI notes":n.src==="file"?"an audio file":"the rendered audio";let w;e[28]!==n.end||e[29]!==n.start?(w=n.start!==void 0&&n.end!==void 0&&` · ${Kf(n.start)} – ${Kf(n.end)}`,e[28]=n.end,e[29]=n.start,e[30]=w):w=e[30];const R=n.more?` · ${n.more} more not shown`:"";let j;e[31]!==x||e[32]!==k||e[33]!==w||e[34]!==R?(j=o.jsx("div",{className:B.offHints,children:o.jsxs("span",{children:[x,"from ",k,w,R]})}),e[31]=x,e[32]=k,e[33]=w,e[34]=R,e[35]=j):j=e[35];let N;return e[36]!==y||e[37]!==_||e[38]!==j||e[39]!==h?(N=o.jsxs(o.Fragment,{children:[h,y,_,j]}),e[36]=y,e[37]=_,e[38]=j,e[39]=h,e[40]=N):N=e[40],N}function IR(t){const[e,n,s,l]=t;return o.jsxs("li",{className:ci.chord,"data-place":U5(s,l),style:{flexBasis:`${Math.max(n-e,0)*BR}em`},title:`${s==="N"?"No chord":s}${l?` (${l})`:""} · ${Kf(e)} – ${Kf(n)}`,children:[o.jsx("span",{className:K(ci.name,"mono"),children:s==="N"?"–":s}),o.jsx("span",{className:K(ci.roman,"mono"),children:l})]},e)}function UR(t){const[,,e,n]=t;return U5(e,n)}function HR(t){return t!=="N"}function VR(t){return t[2]}const GR="_lufsBig_1ydsm_2",FR="_lufsDelta_1ydsm_5",PR="_lufsOn_1ydsm_6",qR="_lufsOver_1ydsm_7",YR="_lufsTrack_1ydsm_8",XR="_lufsShort_1ydsm_9",KR="_lufsMomentary_1ydsm_10",QR="_lufsNeedle_1ydsm_11",ZR="_lufsWas_1ydsm_12",WR="_lufsTarget_1ydsm_13",JR="_offRef_1ydsm_14",pn={lufsBig:GR,lufsDelta:FR,lufsOn:PR,lufsOver:qR,lufsTrack:YR,lufsShort:XR,lufsMomentary:KR,lufsNeedle:QR,lufsWas:ZR,lufsTarget:WR,offRef:JR},Cl=t=>gn(t,-40,0);function V5(t){const e=fe.c(103),{m:n,target:s,was:l}=t,a=n.integrated,i=s===null||a===void 0||a<=-149?null:a-s;let r;e[0]!==a?(r=be(a),e[0]=a,e[1]=r):r=e[1];let c;e[2]!==r?(c=o.jsx("b",{className:"mono",children:r}),e[2]=r,e[3]=c):c=e[3];let u;e[4]===Symbol.for("react.memo_cache_sentinel")?(u=o.jsx("small",{children:"LUFS integrated"}),e[4]=u):u=e[4];let d;e[5]!==i||e[6]!==s?(d=i!==null&&s!==null&&o.jsx("span",{className:K(pn.lufsDelta,"mono",Math.abs(i)<=1?pn.lufsOn:i>0?pn.lufsOver:""),children:Math.abs(i)<.05?`on ${be(s,0)}`:`${Math.abs(i).toFixed(1)} ${i>0?"over":"under"} ${be(s,0)}`}),e[5]=i,e[6]=s,e[7]=d):d=e[7];let m;e[8]!==c||e[9]!==d?(m=o.jsxs("div",{className:pn.lufsBig,children:[c,u,d]}),e[8]=c,e[9]=d,e[10]=m):m=e[10];let f;e[11]!==a?(f=be(a),e[11]=a,e[12]=f):f=e[12];let h;e[13]!==n.shortTerm?(h=be(n.shortTerm),e[13]=n.shortTerm,e[14]=h):h=e[14];let g;e[15]!==n.momentary?(g=be(n.momentary),e[15]=n.momentary,e[16]=g):g=e[16];let y;e[17]!==s?(y=s!==null?`, target ${be(s,0)}`:"",e[17]=s,e[18]=y):y=e[18];const b=`Integrated ${f} LUFS, short-term ${h}, momentary ${g}${y}`;let p;e[19]!==a||e[20]!==l?(p=Uo("Integrated",a,"LUFS",l,{deltaUnit:"LU"}),e[19]=a,e[20]=l,e[21]=p):p=e[21];let v;e[22]!==n.shortTerm?(v=n.shortTerm!==void 0?[`Short-term ${be(n.shortTerm)} LUFS`]:[],e[22]=n.shortTerm,e[23]=v):v=e[23];let _;e[24]!==n.momentary?(_=n.momentary!==void 0?[`Momentary ${be(n.momentary)} LUFS`]:[],e[24]=n.momentary,e[25]=_):_=e[25];let x;e[26]!==s?(x=s!==null?[`Target ${be(s,0)} ±1 LU`]:[],e[26]=s,e[27]=x):x=e[27];let k;e[28]!==p||e[29]!==v||e[30]!==_||e[31]!==x?(k=[p,...v,..._,...x],e[28]=p,e[29]=v,e[30]=_,e[31]=x,e[32]=k):k=e[32];let w;e[33]!==s?(w=s!==null&&o.jsx("span",{className:pn.lufsTarget,style:{left:`${Cl(s-1)}%`,width:`${Cl(s+1)-Cl(s-1)}%`}}),e[33]=s,e[34]=w):w=e[34];let R;e[35]!==n.shortTerm?(R=n.shortTerm!==void 0&&o.jsx("span",{className:pn.lufsShort,style:{width:`${Cl(n.shortTerm)}%`}}),e[35]=n.shortTerm,e[36]=R):R=e[36];let j;e[37]!==n.momentary?(j=n.momentary!==void 0&&o.jsx("span",{className:pn.lufsMomentary,style:{left:`${Cl(n.momentary)}%`}}),e[37]=n.momentary,e[38]=j):j=e[38];let N;e[39]!==l?(N=l!==void 0&&l>-149&&o.jsx("span",{className:pn.lufsWas,style:{left:`${Cl(l)}%`}}),e[39]=l,e[40]=N):N=e[40];let E;e[41]!==a?(E=a!==void 0&&o.jsx("span",{className:pn.lufsNeedle,style:{left:`${Cl(a)}%`}}),e[41]=a,e[42]=E):E=e[42];let C;e[43]!==b||e[44]!==k||e[45]!==w||e[46]!==R||e[47]!==j||e[48]!==N||e[49]!==E?(C=o.jsxs(Qn,{className:pn.lufsTrack,role:"img","aria-label":b,tip:k,children:[w,R,j,N,E]}),e[43]=b,e[44]=k,e[45]=w,e[46]=R,e[47]=j,e[48]=N,e[49]=E,e[50]=C):C=e[50];let O;e[51]===Symbol.for("react.memo_cache_sentinel")?(O=o.jsx(Su,{ticks:[-40,-30,-20,-10,0],min:-40,max:0}),e[51]=O):O=e[51];let M,A,T;e[52]===Symbol.for("react.memo_cache_sentinel")?(M=o.jsxs("span",{children:[o.jsx("i",{className:B.lgNeedle})," Integrated"]}),A=o.jsxs("span",{children:[o.jsx("i",{className:B.lgShort})," Short-term"]}),T=o.jsxs("span",{children:[o.jsx("i",{className:B.lgMomentary})," Momentary"]}),e[52]=M,e[53]=A,e[54]=T):(M=e[52],A=e[53],T=e[54]);let S;e[55]!==s?(S=s!==null&&o.jsxs("span",{children:[o.jsx("i",{className:B.lgTarget})," Target ",be(s,0)," ±1 LU"]}),e[55]=s,e[56]=S):S=e[56];let $;e[57]!==l?($=l!==void 0&&l>-149&&o.jsxs("span",{children:[o.jsx("i",{className:B.lgWas})," Previous call"]}),e[57]=l,e[58]=$):$=e[58];let L;e[59]!==S||e[60]!==$?(L=o.jsxs("div",{className:B.measureLegend,children:[M,A,T,S,$]}),e[59]=S,e[60]=$,e[61]=L):L=e[61];let z;e[62]!==n.shortTerm?(z=be(n.shortTerm),e[62]=n.shortTerm,e[63]=z):z=e[63];let D;e[64]!==z?(D=o.jsx(ot,{label:"Short-term",value:z,unit:"LUFS"}),e[64]=z,e[65]=D):D=e[65];let U;e[66]!==n.momentary?(U=be(n.momentary),e[66]=n.momentary,e[67]=U):U=e[67];let I;e[68]!==U?(I=o.jsx(ot,{label:"Momentary",value:U,unit:"LUFS"}),e[68]=U,e[69]=I):I=e[69];let F;e[70]!==n.duration?(F=n.duration!==void 0&&o.jsx(ot,{label:"Measured",value:n.duration.toFixed(1),unit:"s"}),e[70]=n.duration,e[71]=F):F=e[71];let P;e[72]!==n.truePeakL?(P=be(n.truePeakL),e[72]=n.truePeakL,e[73]=P):P=e[73];let X;e[74]!==n.truePeakL?(X=Xf(n.truePeakL),e[74]=n.truePeakL,e[75]=X):X=e[75];let Y;e[76]!==n.truePeakL?(Y=xu(n.truePeakL),e[76]=n.truePeakL,e[77]=Y):Y=e[77];let Z;e[78]!==P||e[79]!==X||e[80]!==Y?(Z=o.jsx(ot,{label:"True peak L",value:P,unit:"dBTP",zone:X,word:Y}),e[78]=P,e[79]=X,e[80]=Y,e[81]=Z):Z=e[81];let V;e[82]!==n.truePeakR?(V=be(n.truePeakR),e[82]=n.truePeakR,e[83]=V):V=e[83];let H;e[84]!==n.truePeakR?(H=Xf(n.truePeakR),e[84]=n.truePeakR,e[85]=H):H=e[85];let W;e[86]!==n.truePeakR?(W=xu(n.truePeakR),e[86]=n.truePeakR,e[87]=W):W=e[87];let J;e[88]!==V||e[89]!==H||e[90]!==W?(J=o.jsx(ot,{label:"True peak R",value:V,unit:"dBTP",zone:H,word:W}),e[88]=V,e[89]=H,e[90]=W,e[91]=J):J=e[91];let ce;e[92]!==D||e[93]!==I||e[94]!==F||e[95]!==Z||e[96]!==J?(ce=o.jsxs("div",{className:B.measureReadouts,children:[D,I,F,Z,J]}),e[92]=D,e[93]=I,e[94]=F,e[95]=Z,e[96]=J,e[97]=ce):ce=e[97];let ee;return e[98]!==C||e[99]!==L||e[100]!==ce||e[101]!==m?(ee=o.jsxs(o.Fragment,{children:[m,C,O,L,ce]}),e[98]=C,e[99]=L,e[100]=ce,e[101]=m,e[102]=ee):ee=e[102],ee}const eC="_spectrum_1x9na_2",tC="_spectrumArea_1x9na_4",nC="_spectrumLine_1x9na_5",sC="_spectrumX_1x9na_6",jc={spectrum:eC,spectrumArea:tC,spectrumLine:nC,spectrumX:sC},lC="_line_1dpsh_2",aC="_target_1dpsh_3",oC="_integrated_1dpsh_4",iC="_over_1dpsh_5",rC="_loud_1dpsh_6",cC="_quiet_1dpsh_7",uC="_lgTarget_1dpsh_8",dC="_lgOver_1dpsh_9",fC="_lgLoud_1dpsh_10",mC="_lgIntegrated_1dpsh_11",hC="_lgQuiet_1dpsh_12",Tl={line:lC,target:aC,integrated:oC,over:iC,loud:rC,quiet:cC,lgTarget:uC,lgOver:dC,lgLoud:fC,lgIntegrated:mC,lgQuiet:hC},Xo=600,Ko=120;function G5(t){const e=fe.c(177),{m:n,was:s}=t,[l,a]=Q.useState(null),i=n.curve.length,r=n.step??1,c=i*r;let u;e[0]!==s?.curve?(u=s?.curve??[],e[0]=s?.curve,e[1]=u):u=e[1];let d;e[2]!==n.curve||e[3]!==u?(d=[...n.curve,...u].filter(vC),e[2]=n.curve,e[3]=u,e[4]=d):d=e[4];const m=d,f=Math.min(0,Math.ceil(Math.max(n.target??-60,...m,-30)/6)*6+3),h=Math.max(-60,Math.floor(Math.min(f-18,...m)/6)*6);let g;e[5]!==h||e[6]!==f?(g=ae=>(f-Math.min(f,Math.max(h,ae)))/(f-h)*Ko,e[5]=h,e[6]=f,e[7]=g):g=e[7];const y=g;let b;e[8]!==c||e[9]!==n.start?(b=ae=>(ae-n.start)/c*Xo,e[8]=c,e[9]=n.start,e[10]=b):b=e[10];const p=b,v=n.start;let _;e[11]!==c||e[12]!==n.start||e[13]!==v||e[14]!==r||e[15]!==y?(_=(ae,oe,ye)=>{const _e=oe===void 0?r:oe,ne=ye===void 0?v:ye;return`M${ae.map((te,ie)=>`${((ne+ie*_e-n.start)/c*Xo).toFixed(1)},${y(te).toFixed(1)}`).join("L")}`},e[11]=c,e[12]=n.start,e[13]=v,e[14]=r,e[15]=y,e[16]=_):_=e[16];const x=_;let k;e[17]!==i?(k=ae=>{const oe=ae.currentTarget.getBoundingClientRect();a(Math.min(i-1,Math.max(0,Math.round((ae.clientX-oe.left)/oe.width*i-.5))))},e[17]=i,e[18]=k):k=e[18];const w=k;let R;e[19]!==n.over||e[20]!==n.overS?(R=n.overS??n.over.reduce(pC,0),e[19]=n.over,e[20]=n.overS,e[21]=R):R=e[21];const j=R,N=l===null?0:p(n.start+l*r),E=f-h>24?12:6;let C,O,M,A,T,S;if(e[22]!==c||e[23]!==h||e[24]!==E||e[25]!==l||e[26]!==N||e[27]!==n.curve||e[28]!==n.loud||e[29]!==n.lra||e[30]!==n.lufs||e[31]!==n.name||e[32]!==n.over||e[33]!==n.plr||e[34]!==n.quiet||e[35]!==n.start||e[36]!==n.target||e[37]!==n.term||e[38]!==n.tp||e[39]!==w||e[40]!==j||e[41]!==x||e[42]!==r||e[43]!==f||e[44]!==s||e[45]!==p||e[46]!==y){const ae=Array.from({length:8},(Ie,wt)=>Math.floor(f/E)*E-wt*E).filter(Ie=>Ie<f-1&&Ie>h+1).slice(0,3);let oe;e[53]!==n.lufs?(oe=be(n.lufs),e[53]=n.lufs,e[54]=oe):oe=e[54];let ye;e[55]!==oe?(ye=o.jsx("b",{className:"mono",children:oe}),e[55]=oe,e[56]=ye):ye=e[56];const _e=n.name?` · ${n.name}`:"";let ne;e[57]!==_e?(ne=o.jsxs("small",{children:["LUFS integrated",_e]}),e[57]=_e,e[58]=ne):ne=e[58];let te;e[59]!==n.target||e[60]!==j?(te=n.target!==void 0&&o.jsx("span",{className:K(pn.lufsDelta,"mono",j===0&&pn.lufsOn),children:j===0?`never over ${be(n.target,0)} LUFS`:`${Math.round(j)} s over ${be(n.target,0)} LUFS`}),e[59]=n.target,e[60]=j,e[61]=te):te=e[61],e[62]!==ye||e[63]!==ne||e[64]!==te?(M=o.jsxs("div",{className:pn.lufsBig,children:[ye,ne,te]}),e[62]=ye,e[63]=ne,e[64]=te,e[65]=M):M=e[65];let ie;e[66]!==n.tp?(ie=be(n.tp),e[66]=n.tp,e[67]=ie):ie=e[67];let de;e[68]!==n.tp?(de=Xf(n.tp),e[68]=n.tp,e[69]=de):de=e[69];const xe=n.tp!==void 0&&n.tp>0?"over 0":"";let Ne;e[70]!==n.tp?(Ne=xu(n.tp)?`True peak ${xu(n.tp)} dBTP`:void 0,e[70]=n.tp,e[71]=Ne):Ne=e[71];let Te;e[72]!==ie||e[73]!==de||e[74]!==xe||e[75]!==Ne?(Te=o.jsx(ot,{label:"Peak",value:ie,unit:"dBTP",zone:de,word:xe,title:Ne}),e[72]=ie,e[73]=de,e[74]=xe,e[75]=Ne,e[76]=Te):Te=e[76];let Ae;e[77]!==n.lra?(Ae=n.lra===void 0?"–":n.lra.toFixed(1),e[77]=n.lra,e[78]=Ae):Ae=e[78];let Re;e[79]!==Ae?(Re=o.jsx(ot,{label:"Range",value:Ae,unit:"LU",title:"Loudness range (LRA): how much the loudness moves"}),e[79]=Ae,e[80]=Re):Re=e[80];let Le;e[81]!==n.plr?(Le=n.plr===void 0?"–":n.plr.toFixed(1),e[81]=n.plr,e[82]=Le):Le=e[82];let De;e[83]!==Le?(De=o.jsx(ot,{label:"Dynamics",value:Le,unit:"dB",title:"Peak to loudness ratio (PLR): true peak minus integrated loudness"}),e[83]=Le,e[84]=De):De=e[84],e[85]!==Te||e[86]!==Re||e[87]!==De?(A=o.jsxs("div",{className:B.measureReadouts,children:[Te,Re,De]}),e[85]=Te,e[86]=Re,e[87]=De,e[88]=A):A=e[88],T=jc.spectrum;let we;e[89]===Symbol.for("react.memo_cache_sentinel")?(we=()=>a(null),e[89]=we):we=e[89];let Ce;e[90]!==c?(Ce=Math.round(c),e[90]=c,e[91]=Ce):Ce=e[91];let Oe;e[92]!==n.loud?(Oe=n.loud?`, loudest ${be(n.loud[2]??void 0)} LUFS at ${fl(n.loud[0])}`:"",e[92]=n.loud,e[93]=Oe):Oe=e[93];const Xe=ae.map(Ie=>o.jsx("line",{className:B.spectrumGrid,x1:0,x2:Xo,y1:y(Ie),y2:y(Ie),vectorEffect:"non-scaling-stroke"},Ie));let re;if(e[94]!==n.over||e[95]!==p){let Ie;e[97]!==p?(Ie=(wt,yt)=>{const[at,Rt]=wt;return o.jsx("rect",{className:Tl.over,x:p(at),width:Math.max(1,p(Rt)-p(at)),y:0,height:Ko},yt)},e[97]=p,e[98]=Ie):Ie=e[98],re=n.over.map(Ie),e[94]=n.over,e[95]=p,e[96]=re}else re=e[96];let Ee;e[99]!==n.loud||e[100]!==p?(Ee=n.loud&&o.jsx("rect",{className:Tl.loud,x:p(n.loud[0]),width:Math.max(1,p(n.loud[1])-p(n.loud[0])),y:0,height:Ko}),e[99]=n.loud,e[100]=p,e[101]=Ee):Ee=e[101];let it;e[102]!==n.quiet||e[103]!==p?(it=n.quiet&&o.jsx("rect",{className:Tl.quiet,x:p(n.quiet[0]),width:Math.max(1,p(n.quiet[1])-p(n.quiet[0])),y:0,height:Ko}),e[102]=n.quiet,e[103]=p,e[104]=it):it=e[104];let lt;e[105]!==n.target||e[106]!==y?(lt=n.target!==void 0&&o.jsx("line",{className:Tl.target,x1:0,x2:Xo,y1:y(n.target),y2:y(n.target),vectorEffect:"non-scaling-stroke"}),e[105]=n.target,e[106]=y,e[107]=lt):lt=e[107];let ht;e[108]!==n.lufs||e[109]!==y?(ht=n.lufs!==void 0&&o.jsx("line",{className:Tl.integrated,x1:0,x2:Xo,y1:y(n.lufs),y2:y(n.lufs),vectorEffect:"non-scaling-stroke"}),e[108]=n.lufs,e[109]=y,e[110]=ht):ht=e[110];let qe;e[111]!==x||e[112]!==r||e[113]!==s?(qe=s&&s.curve.length>1&&o.jsx("path",{className:B.spectrumPrevious,d:x(s.curve,s.step??r,s.start),vectorEffect:"non-scaling-stroke"}),e[111]=x,e[112]=r,e[113]=s,e[114]=qe):qe=e[114];const _t=x(n.curve);let Qe;e[115]!==_t?(Qe=o.jsx("path",{className:Tl.line,d:_t,vectorEffect:"non-scaling-stroke"}),e[115]=_t,e[116]=Qe):Qe=e[116];let et;e[117]!==l||e[118]!==N?(et=l!==null&&o.jsx("line",{className:B.spectrumCursor,x1:N,x2:N,y1:0,y2:Ko,vectorEffect:"non-scaling-stroke"}),e[117]=l,e[118]=N,e[119]=et):et=e[119],S=o.jsxs("svg",{viewBox:`0 0 ${Xo} ${Ko}`,preserveAspectRatio:"none",onPointerMove:w,onPointerLeave:we,role:"img","aria-label":`${n.term==="m"?"Momentary":"Short-term"} loudness over ${Ce} s${Oe}`,children:[Xe,re,Ee,it,lt,ht,qe,Qe,et]}),e[120]!==l||e[121]!==N||e[122]!==n.curve||e[123]!==n.start||e[124]!==n.target||e[125]!==r?(C=l!==null&&o.jsxs("div",{className:K(B.spectrumTip,"mono"),style:{left:`${Math.min(80,Math.max(20,N/Xo*100))}%`},children:[fl(n.start+l*r)," · ",o.jsxs("span",{"data-zone":n.target!==void 0&&n.curve[l]>n.target?"hot":void 0,children:[be(n.curve[l])," LUFS"]})]}),e[120]=l,e[121]=N,e[122]=n.curve,e[123]=n.start,e[124]=n.target,e[125]=r,e[126]=C):C=e[126],O=ae.map(Ie=>o.jsx("span",{className:K(B.spectrumY,"mono"),style:{top:`${y(Ie)/Ko*100}%`},children:be(Ie,0)},Ie)),e[22]=c,e[23]=h,e[24]=E,e[25]=l,e[26]=N,e[27]=n.curve,e[28]=n.loud,e[29]=n.lra,e[30]=n.lufs,e[31]=n.name,e[32]=n.over,e[33]=n.plr,e[34]=n.quiet,e[35]=n.start,e[36]=n.target,e[37]=n.term,e[38]=n.tp,e[39]=w,e[40]=j,e[41]=x,e[42]=r,e[43]=f,e[44]=s,e[45]=p,e[46]=y,e[47]=C,e[48]=O,e[49]=M,e[50]=A,e[51]=T,e[52]=S}else C=e[47],O=e[48],M=e[49],A=e[50],T=e[51],S=e[52];let $;e[127]!==C||e[128]!==O||e[129]!==T||e[130]!==S?($=o.jsxs("div",{className:T,children:[S,C,O]}),e[127]=C,e[128]=O,e[129]=T,e[130]=S,e[131]=$):$=e[131];let L;e[132]===Symbol.for("react.memo_cache_sentinel")?(L=K(B.measureScaleWords,"mono"),e[132]=L):L=e[132];let z;e[133]!==n.start?(z=fl(n.start),e[133]=n.start,e[134]=z):z=e[134];let D;e[135]!==z?(D=o.jsx("span",{children:z}),e[135]=z,e[136]=D):D=e[136];const U=n.start+c;let I;e[137]!==U?(I=fl(U),e[137]=U,e[138]=I):I=e[138];let F;e[139]!==I?(F=o.jsx("span",{children:I}),e[139]=I,e[140]=F):F=e[140];let P;e[141]!==D||e[142]!==F?(P=o.jsxs("div",{className:L,children:[D,F]}),e[141]=D,e[142]=F,e[143]=P):P=e[143];let X;e[144]===Symbol.for("react.memo_cache_sentinel")?(X=o.jsx("i",{className:B.lgLine}),e[144]=X):X=e[144];const Y=n.term==="m"?"Momentary":"Short-term";let Z;e[145]!==Y?(Z=o.jsxs("span",{children:[X," ",Y]}),e[145]=Y,e[146]=Z):Z=e[146];let V;e[147]!==n.target?(V=n.target!==void 0&&o.jsxs("span",{children:[o.jsx("i",{className:Tl.lgTarget})," Target"]}),e[147]=n.target,e[148]=V):V=e[148];let H;e[149]!==n.over.length?(H=n.over.length>0&&o.jsxs("span",{children:[o.jsx("i",{className:Tl.lgOver})," Over target"]}),e[149]=n.over.length,e[150]=H):H=e[150];let W;e[151]!==n.lufs?(W=n.lufs!==void 0&&o.jsxs("span",{children:[o.jsx("i",{className:Tl.lgIntegrated})," Integrated"]}),e[151]=n.lufs,e[152]=W):W=e[152];let J;e[153]!==n.loud?(J=n.loud&&o.jsxs("span",{children:[o.jsx("i",{className:Tl.lgLoud})," Loudest 3 s"]}),e[153]=n.loud,e[154]=J):J=e[154];let ce;e[155]!==n.quiet?(ce=n.quiet&&o.jsxs("span",{children:[o.jsx("i",{className:Tl.lgQuiet})," Quietest 3 s"]}),e[155]=n.quiet,e[156]=ce):ce=e[156];let ee;e[157]!==s?(ee=s&&o.jsxs("span",{children:[o.jsx("i",{className:B.lgPrevious})," Previous call"]}),e[157]=s,e[158]=ee):ee=e[158];let he;e[159]!==Z||e[160]!==V||e[161]!==H||e[162]!==W||e[163]!==J||e[164]!==ce||e[165]!==ee?(he=o.jsxs("div",{className:B.measureLegend,children:[Z,V,H,W,J,ce,ee]}),e[159]=Z,e[160]=V,e[161]=H,e[162]=W,e[163]=J,e[164]=ce,e[165]=ee,e[166]=he):he=e[166];let pe;e[167]!==n.loud||e[168]!==n.quiet?(pe=(n.loud||n.quiet)&&o.jsxs("div",{className:B.offHints,children:[n.loud&&o.jsxs("span",{children:["Loudest ",o.jsxs("span",{className:"mono",children:[fl(n.loud[0]),"–",fl(n.loud[1])," · ",be(n.loud[2]??void 0)," LUFS"]})]}),n.quiet&&o.jsxs("span",{children:["Quietest ",o.jsxs("span",{className:"mono",children:[fl(n.quiet[0]),"–",fl(n.quiet[1])," · ",be(n.quiet[2]??void 0)," LUFS"]})]})]}),e[167]=n.loud,e[168]=n.quiet,e[169]=pe):pe=e[169];let G;return e[170]!==M||e[171]!==A||e[172]!==$||e[173]!==P||e[174]!==he||e[175]!==pe?(G=o.jsxs(o.Fragment,{children:[M,A,$,P,he,pe]}),e[170]=M,e[171]=A,e[172]=$,e[173]=P,e[174]=he,e[175]=pe,e[176]=G):G=e[176],G}function pC(t,e){const[n,s]=e;return t+(s-n)}function vC(t){return t>-69}const gC="_mask_cjupa_2",_C="_row_cjupa_3",yC="_name_cjupa_4",bC="_cells_cjupa_5",xC="_hot_cjupa_7",SC="_score_cjupa_8",kC="_axis_cjupa_9",wC="_marks_cjupa_10",jC="_markEnd_cjupa_12",NC="_lgFaint_cjupa_19",TC="_lgStrong_cjupa_20",EC="_lgHot_cjupa_21",ds={mask:gC,row:_C,name:yC,cells:bC,hot:xC,score:SC,axis:kC,marks:wC,markEnd:jC,lgFaint:NC,lgStrong:TC,lgHot:EC};function F5(t){const e=fe.c(14),{m:n}=t;let s;if(e[0]!==n.hz||e[1]!==n.pairs||e[2]!==n.tracks){const c=n.hz.map(AC).filter(MC);s=n.pairs.length>0&&o.jsxs("div",{className:ds.mask,role:"img","aria-label":`Masking between ${n.tracks.length} tracks across ${n.hz.length} bands`,children:[n.pairs.map(u=>{const[d,m,f,h]=u;return o.jsxs("div",{className:ds.row,children:[o.jsxs("span",{className:ds.name,title:`${d} × ${m}: overall ${f.toFixed(2)}`,children:[d," × ",m]}),o.jsx("span",{className:ds.cells,style:{gridTemplateColumns:`repeat(${h.length}, 1fr)`},children:h.map((g,y)=>o.jsx(Qn,{className:g>=.6?ds.hot:void 0,style:{"--o":`${Math.round((g<=0?.06:.15+.85*Math.min(1,g))*100)}%`},tip:[`${d} × ${m}`,`${Rr(n.hz[y])} Hz: overlap ${g.toFixed(2)}`]},y))}),o.jsx("span",{className:K(ds.score,"mono"),children:f.toFixed(2)})]},`${d}|${m}`)}),o.jsxs("div",{className:K(ds.row,ds.axis),children:[o.jsx("span",{className:ds.name}),o.jsx("span",{className:ds.marks,children:c.map(u=>{const{hz:d,i:m}=u;return m===n.hz.length-1?o.jsx("span",{className:ds.markEnd,children:Rr(d)},d):o.jsx("span",{style:{left:`${(m+.5)/n.hz.length*100}%`},children:Rr(d)},d)})}),o.jsx("span",{className:ds.score})]})]}),e[0]=n.hz,e[1]=n.pairs,e[2]=n.tracks,e[3]=s}else s=e[3];let l;e[4]!==n.pairs?(l=n.pairs.length>0&&o.jsxs("div",{className:B.measureLegend,children:[o.jsxs("span",{children:[o.jsx("i",{className:ds.lgFaint}),o.jsx("i",{className:ds.lgStrong})," Little → a lot of overlap"]}),n.pairs.some(RC)&&o.jsxs("span",{children:[o.jsx("i",{className:ds.lgHot})," They fight here"]})]}),e[4]=n.pairs,e[5]=l):l=e[5];let a;e[6]!==n.conflicts?(a=n.conflicts.length===0?o.jsx("span",{children:"No band where two of these tracks are both loud and within a few dB: nothing masks."}):n.conflicts.map($C),e[6]=n.conflicts,e[7]=a):a=e[7];let i;e[8]!==a?(i=o.jsx("div",{className:B.offHints,children:a}),e[8]=a,e[9]=i):i=e[9];let r;return e[10]!==s||e[11]!==l||e[12]!==i?(r=o.jsxs(o.Fragment,{children:[s,l,i]}),e[10]=s,e[11]=l,e[12]=i,e[13]=r):r=e[13],r}function $C(t){const[e,n,s,l,a]=t;return o.jsxs("span",{children:[o.jsxs("span",{className:"mono",children:[e," × ",n," · ",s===null?"–":`${Rr(s)} Hz`," · ",l?.toFixed(2)??"–"]}),a&&o.jsxs(o.Fragment,{children:[" — ",a]})]},`${e}|${n}|${s}`)}function RC(t){const[,,,e]=t;return e.some(CC)}function CC(t){return t>=.6}function MC(t){const{hz:e}=t;return[63,250,1e3,4e3,16e3].includes(e)}function AC(t,e){return{hz:t,i:e}}const LC="_offBlock_ob3ye_2",OC="_offTitle_ob3ye_3",DC="_offSections_ob3ye_4",zC="_offIntegrated_ob3ye_5",BC="_offLoud_ob3ye_6",IC="_lgRef_ob3ye_8",UC="_lgSection_ob3ye_9",HC="_lgSectionLoud_ob3ye_10",VC="_lgIntegrated_ob3ye_11",El={offBlock:LC,offTitle:OC,offSections:DC,offIntegrated:zC,offLoud:BC,lgRef:IC,lgSection:UC,lgSectionLoud:HC,lgIntegrated:VC},S_=["Sub","Bass","Low mid","Mid","Upper mid","Presence","Brilliance"],GC=["20–60 Hz","60–250 Hz","250–500 Hz","500 Hz–2 kHz","2–4 kHz","4–6 kHz","6–20 kHz"];function P5(t){const e=fe.c(88),{m:n,was:s}=t,l=n.ref?.delta;let a;e[0]!==n.sections?(a=Math.min(-40,...n.sections.map(KC)),e[0]=n.sections,e[1]=a):a=e[1];const i=a;let r;e[2]!==n.ref?(r=!!n.ref&&n.ref.bands.some(XC),e[2]=n.ref,e[3]=r):r=e[3];const c=r;let u;e[4]!==n.lufs?(u=be(n.lufs),e[4]=n.lufs,e[5]=u):u=e[5];let d;e[6]!==u?(d=o.jsx("b",{className:"mono",children:u}),e[6]=u,e[7]=d):d=e[7];const m=n.name?` · ${n.name}`:"";let f;e[8]!==m?(f=o.jsxs("small",{children:["LUFS integrated",m]}),e[8]=m,e[9]=f):f=e[9];let h;e[10]!==l?(h=l!==void 0&&o.jsx("span",{className:K(pn.lufsDelta,"mono",Math.abs(l)<=1?pn.lufsOn:""),children:Math.abs(l)<.05?"as loud as the reference":`${Math.abs(l).toFixed(1)} LU ${l>0?"louder":"quieter"} than the reference`}),e[10]=l,e[11]=h):h=e[11];let g;e[12]!==d||e[13]!==f||e[14]!==h?(g=o.jsxs("div",{className:pn.lufsBig,children:[d,f,h]}),e[12]=d,e[13]=f,e[14]=h,e[15]=g):g=e[15];let y;e[16]!==n.lufs?(y=be(n.lufs),e[16]=n.lufs,e[17]=y):y=e[17];const b=`Integrated ${y} LUFS`;let p;e[18]!==n.lufs||e[19]!==s?(p=Uo("Integrated",n.lufs,"LUFS",s,{deltaUnit:"LU"}),e[18]=n.lufs,e[19]=s,e[20]=p):p=e[20];let v;e[21]!==n.ref?(v=n.ref?.lufs!==void 0?[`Reference ${be(n.ref.lufs)} LUFS`]:[],e[21]=n.ref,e[22]=v):v=e[22];let _;e[23]!==p||e[24]!==v?(_=[p,...v],e[23]=p,e[24]=v,e[25]=_):_=e[25];let x;e[26]!==n.ref?(x=n.ref?.lufs!==void 0&&o.jsx("span",{className:K(pn.lufsWas,pn.offRef),style:{left:`${Cl(n.ref.lufs)}%`}}),e[26]=n.ref,e[27]=x):x=e[27];let k;e[28]!==s?(k=s!==void 0&&s>-149&&o.jsx("span",{className:pn.lufsWas,style:{left:`${Cl(s)}%`}}),e[28]=s,e[29]=k):k=e[29];let w;e[30]!==n.lufs?(w=n.lufs!==void 0&&o.jsx("span",{className:pn.lufsNeedle,style:{left:`${Cl(n.lufs)}%`}}),e[30]=n.lufs,e[31]=w):w=e[31];let R;e[32]!==b||e[33]!==_||e[34]!==x||e[35]!==k||e[36]!==w?(R=o.jsxs(Qn,{className:pn.lufsTrack,role:"img","aria-label":b,tip:_,children:[x,k,w]}),e[32]=b,e[33]=_,e[34]=x,e[35]=k,e[36]=w,e[37]=R):R=e[37];let j;e[38]===Symbol.for("react.memo_cache_sentinel")?(j=o.jsx(Su,{ticks:[-40,-30,-20,-10,0],min:-40,max:0}),e[38]=j):j=e[38];let N;e[39]===Symbol.for("react.memo_cache_sentinel")?(N=o.jsxs("span",{children:[o.jsx("i",{className:B.lgNeedle})," Integrated"]}),e[39]=N):N=e[39];let E;e[40]!==n.ref?.lufs?(E=n.ref?.lufs!==void 0&&o.jsxs("span",{children:[o.jsx("i",{className:El.lgRef})," Reference"]}),e[40]=n.ref?.lufs,e[41]=E):E=e[41];let C;e[42]!==s?(C=s!==void 0&&s>-149&&o.jsxs("span",{children:[o.jsx("i",{className:B.lgWas})," Previous call"]}),e[42]=s,e[43]=C):C=e[43];let O;e[44]!==E||e[45]!==C?(O=o.jsxs("div",{className:B.measureLegend,children:[N,E,C]}),e[44]=E,e[45]=C,e[46]=O):O=e[46];let M;e[47]!==n.lra?(M=n.lra===void 0?"–":n.lra.toFixed(1),e[47]=n.lra,e[48]=M):M=e[48];let A;e[49]!==M?(A=o.jsx(ot,{label:"Range",value:M,unit:"LU",title:"Loudness range (LRA): how much the loudness moves"}),e[49]=M,e[50]=A):A=e[50];let T;e[51]!==n.tp?(T=be(n.tp),e[51]=n.tp,e[52]=T):T=e[52];let S;e[53]!==n.tp?(S=Xf(n.tp),e[53]=n.tp,e[54]=S):S=e[54];let $;e[55]!==n.tp?($=xu(n.tp),e[55]=n.tp,e[56]=$):$=e[56];let L;e[57]!==T||e[58]!==S||e[59]!==$?(L=o.jsx(ot,{label:"Peak",value:T,unit:"dBTP",zone:S,word:$}),e[57]=T,e[58]=S,e[59]=$,e[60]=L):L=e[60];let z;e[61]!==n.crest?(z=n.crest===void 0?"–":n.crest.toFixed(1),e[61]=n.crest,e[62]=z):z=e[62];let D;e[63]!==z?(D=o.jsx(ot,{label:"Crest",value:z,unit:"dB"}),e[63]=z,e[64]=D):D=e[64];let U;e[65]!==A||e[66]!==L||e[67]!==D?(U=o.jsxs("div",{className:B.measureReadouts,children:[A,L,D]}),e[65]=A,e[66]=L,e[67]=D,e[68]=U):U=e[68];let I;e[69]!==i||e[70]!==n.lufs||e[71]!==n.sections?(I=n.sections.length>1&&o.jsxs("div",{className:El.offBlock,children:[o.jsx("div",{className:El.offTitle,children:"Loudness per section"}),o.jsxs("div",{className:El.offSections,role:"img","aria-label":`Loudness of ${n.sections.length} sections, ${be(Math.min(...n.sections.map(YC)))} to ${be(Math.max(...n.sections.map(qC)))} LUFS`,children:[n.lufs!==void 0&&o.jsx("span",{className:El.offIntegrated,style:{bottom:`${gn(n.lufs,i,0)}%`}}),n.sections.map((Y,Z)=>{const[V,H,W]=Y;return o.jsx(Qn,{className:W>(n.lufs??0)+3?El.offLoud:"",style:{height:`${Math.max(2,gn(W,i,0))}%`},tip:[`${fl(V)}–${fl(H)}`,`${be(W)} LUFS${n.lufs!==void 0?`, ${Math.abs(W-n.lufs).toFixed(1)} LU ${W>=n.lufs?"above":"below"} integrated`:""}`]},Z)})]}),o.jsxs("div",{className:K(B.measureScaleWords,"mono"),children:[o.jsx("span",{children:fl(n.sections[0][0])}),o.jsx("span",{children:fl(n.sections[n.sections.length-1][1])})]}),o.jsxs("div",{className:B.measureLegend,children:[o.jsxs("span",{children:[o.jsx("i",{className:El.lgSection})," Section"]}),n.sections.some(Y=>Y[2]>(n.lufs??0)+3)&&o.jsxs("span",{children:[o.jsx("i",{className:El.lgSectionLoud})," Over 3 LU above integrated"]}),n.lufs!==void 0&&o.jsxs("span",{children:[o.jsx("i",{className:El.lgIntegrated})," Integrated"]})]})]}),e[69]=i,e[70]=n.lufs,e[71]=n.sections,e[72]=I):I=e[72];let F;e[73]!==c||e[74]!==n.bands||e[75]!==n.ref?.bands?(F=n.bands.some(PC)&&o.jsxs("div",{className:El.offBlock,children:[o.jsxs("div",{className:El.offTitle,children:["Band balance · share of energy, dB",c?" · against the reference":""]}),o.jsx("div",{className:B.evRows,children:n.bands.map((Y,Z)=>{const V=n.ref?.bands[Z]??null,H=V!==null&&Math.abs(V)>=3;return o.jsxs(Qn,{className:K(B.evRow,H?B.evHot:""),tip:[`${S_[Z]} · ${GC[Z]}`,Y===null?"Silent":`${be(Y)} dB of the energy`,...V!==null&&Y!==null?[`Reference ${be(Y-V)} dB, ${be(V)} dB against it`]:[]],children:[o.jsx("span",{className:B.evName,children:S_[Z]}),o.jsxs("span",{className:K(B.evVal,"mono"),children:[o.jsx("b",{children:Y===null?"–":be(Y)}),V!==null&&o.jsxs("span",{className:H?B.evWord:"",children:[" · ",be(V)," vs reference"]})]}),o.jsxs("span",{className:B.evBar,children:[o.jsx("span",{className:B.evFill,style:{left:0,width:`${Y===null?0:gn(Y,-40,0)}%`}}),V!==null&&Y!==null&&o.jsx("span",{className:B.evWas,style:{left:`${gn(Y-V,-40,0)}%`}})]})]},Z)})}),c&&o.jsxs("div",{className:B.measureLegend,children:[o.jsxs("span",{children:[o.jsx("i",{className:B.lgRange})," This audio"]}),o.jsxs("span",{children:[o.jsx("i",{className:B.lgWas})," Reference"]})]})]}),e[73]=c,e[74]=n.bands,e[75]=n.ref?.bands,e[76]=F):F=e[76];let P;e[77]!==n.res||e[78]!==n.sib?(P=(n.res.length>0||(n.sib??0)>0)&&o.jsxs("div",{className:B.offHints,children:[n.res.length>0&&o.jsxs("span",{children:["Resonances ",o.jsx("span",{className:"mono",children:n.res.map(FC).join(" · ")})]}),(n.sib??0)>0&&o.jsxs("span",{children:["Sibilance ",o.jsxs("span",{className:"mono",children:[n.sib," spikes"]})]})]}),e[77]=n.res,e[78]=n.sib,e[79]=P):P=e[79];let X;return e[80]!==R||e[81]!==O||e[82]!==U||e[83]!==I||e[84]!==F||e[85]!==P||e[86]!==g?(X=o.jsxs(o.Fragment,{children:[g,R,j,O,U,I,F,P]}),e[80]=R,e[81]=O,e[82]=U,e[83]=I,e[84]=F,e[85]=P,e[86]=g,e[87]=X):X=e[87],X}function FC(t){const[e,n]=t;return`${e>=1e3?`${(e/1e3).toFixed(1)} kHz`:`${e} Hz`} +${n.toFixed(1)}`}function PC(t){return t!==null}function qC(t){return t[2]}function YC(t){return t[2]}function XC(t){return t!==null}function KC(t){return t[2]}const fr=320,Xa=110,Qf=20,q5=2e4,si=t=>Math.log10(t/Qf)/Math.log10(q5/Qf)*fr;function Y5(t){const e=fe.c(109),{m:n,previous:s}=t,[l,a]=Q.useState(null),i=Q.useId();let r;if(e[0]!==i){let I;e[2]===Symbol.for("react.memo_cache_sentinel")?(I=/:/g,e[2]=I):I=e[2],r=i.replace(I,""),e[0]=i,e[1]=r}else r=e[1];const c=r,u=n.bands,d=u.length;let m;e[3]!==d?(m=(I,F)=>{const P=F===void 0?d:F;return Qf*(q5/Qf)**((I+.5)/P)},e[3]=d,e[4]=m):m=e[4];const f=m;let h;e[5]!==s?(h=s??[],e[5]=s,e[6]=h):h=e[6];let g;e[7]!==u||e[8]!==h?(g=[...u,...h],e[7]=u,e[8]=h,e[9]=g):g=e[9];const y=g,b=Math.max(0,Math.ceil(Math.max(...y)/12)*12);let p;e[10]!==y?(p=y.filter(ZC),e[10]=y,e[11]=p):p=e[11];const v=p;let _;e[12]!==v||e[13]!==b?(_=v.length?v:[b-48],e[12]=v,e[13]=b,e[14]=_):_=e[14];const x=Math.max(-120,Math.min(b-48,Math.floor(Math.min(..._)/24)*24));let k;e[15]!==x||e[16]!==b?(k=I=>(b-Math.max(x,I))/(b-x)*Xa,e[15]=x,e[16]=b,e[17]=k):k=e[17];const w=k,R=x+(b-x)/3,j=x+(b-x)*2/3;let N,E,C,O;if(e[18]!==u||e[19]!==f||e[20]!==l||e[21]!==n.fftSize||e[22]!==n.peakDb||e[23]!==n.rmsDb||e[24]!==d||e[25]!==s||e[26]!==j||e[27]!==R||e[28]!==c||e[29]!==w){const I=[R,j].map(Math.round);let F;e[34]!==f||e[35]!==w?(F=we=>`M${we.map((Ce,Oe)=>`${si(f(Oe,we.length)).toFixed(1)},${w(Ce).toFixed(1)}`).join("L")}`,e[34]=f,e[35]=w,e[36]=F):F=e[36];const P=F,X=P(u);let Y;e[37]!==f||e[38]!==d?(Y=si(f(d-1)).toFixed(1),e[37]=f,e[38]=d,e[39]=Y):Y=e[39];let Z;e[40]!==f?(Z=si(f(0)).toFixed(1),e[40]=f,e[41]=Z):Z=e[41];const V=`${X}L${Y},${Xa}L${Z},${Xa}Z`;let H;e[42]!==d?(H=we=>{const Ce=we.currentTarget.getBoundingClientRect(),Oe=Math.round((we.clientX-Ce.left)/Ce.width*d-.5);a(Math.min(d-1,Math.max(0,Oe)))},e[42]=d,e[43]=H):H=e[43];const W=H;let J;e[44]!==n.peakDb?(J=be(n.peakDb),e[44]=n.peakDb,e[45]=J):J=e[45];let ce;e[46]!==n.peakDb?(ce=Ll(n.peakDb),e[46]=n.peakDb,e[47]=ce):ce=e[47];let ee;e[48]!==J||e[49]!==ce?(ee=o.jsx(ot,{label:"Peak",value:J,unit:"dB",zone:ce}),e[48]=J,e[49]=ce,e[50]=ee):ee=e[50];let he;e[51]!==n.rmsDb?(he=be(n.rmsDb),e[51]=n.rmsDb,e[52]=he):he=e[52];let pe;e[53]!==he?(pe=o.jsx(ot,{label:"RMS",value:he,unit:"dB"}),e[53]=he,e[54]=pe):pe=e[54];let G;e[55]!==n.fftSize?(G=n.fftSize!==void 0&&o.jsx(ot,{label:"FFT size",value:String(n.fftSize),unit:"bins"}),e[55]=n.fftSize,e[56]=G):G=e[56],e[57]!==ee||e[58]!==pe||e[59]!==G?(O=o.jsxs("div",{className:B.measureReadouts,children:[ee,pe,G]}),e[57]=ee,e[58]=pe,e[59]=G,e[60]=O):O=e[60],N=jc.spectrum;let ae;e[61]===Symbol.for("react.memo_cache_sentinel")?(ae=()=>a(null),e[61]=ae):ae=e[61];const oe=`spec-heat-${c}`,ye=w(0),_e=w(-18);let ne,te,ie;e[62]===Symbol.for("react.memo_cache_sentinel")?(ne=o.jsx("stop",{offset:0,stopColor:"var(--bad)"}),te=o.jsx("stop",{offset:.33,stopColor:"var(--warn)"}),ie=o.jsx("stop",{offset:1,stopColor:"var(--accent)"}),e[62]=ne,e[63]=te,e[64]=ie):(ne=e[62],te=e[63],ie=e[64]);let de;e[65]!==oe||e[66]!==ye||e[67]!==_e?(de=o.jsx("defs",{children:o.jsxs("linearGradient",{id:oe,gradientUnits:"userSpaceOnUse",x1:0,x2:0,y1:ye,y2:_e,children:[ne,te,ie]})}),e[65]=oe,e[66]=ye,e[67]=_e,e[68]=de):de=e[68];let xe;e[69]===Symbol.for("react.memo_cache_sentinel")?(xe=o.jsx("line",{className:B.spectrumBase,x1:0,x2:fr,y1:Xa,y2:Xa,vectorEffect:"non-scaling-stroke"}),e[69]=xe):xe=e[69];let Ne;e[70]!==P||e[71]!==s?(Ne=s&&o.jsx("path",{className:B.spectrumPrevious,d:P(s),vectorEffect:"non-scaling-stroke"}),e[70]=P,e[71]=s,e[72]=Ne):Ne=e[72];const Te=`url(#spec-heat-${c})`;let Ae;e[73]!==V||e[74]!==Te?(Ae=o.jsx("path",{className:jc.spectrumArea,d:V,fill:Te}),e[73]=V,e[74]=Te,e[75]=Ae):Ae=e[75];const Re=`url(#spec-heat-${c})`;let Le;e[76]!==X||e[77]!==Re?(Le=o.jsx("path",{className:jc.spectrumLine,d:X,stroke:Re,vectorEffect:"non-scaling-stroke"}),e[76]=X,e[77]=Re,e[78]=Le):Le=e[78];let De;e[79]!==f||e[80]!==l?(De=l!==null&&o.jsx("line",{className:B.spectrumCursor,x1:si(f(l)),x2:si(f(l)),y1:0,y2:Xa,vectorEffect:"non-scaling-stroke"}),e[79]=f,e[80]=l,e[81]=De):De=e[81],E=o.jsxs("svg",{viewBox:`0 0 ${fr} ${Xa}`,preserveAspectRatio:"none",onPointerMove:W,onPointerLeave:ae,role:"img","aria-label":"Frequency spectrum, 20 Hz to 20 kHz",children:[de,I.map(we=>o.jsx("line",{className:B.spectrumGrid,x1:0,x2:fr,y1:w(we),y2:w(we),vectorEffect:"non-scaling-stroke"},we)),xe,Ne,Ae,Le,De]}),C=I.map(we=>o.jsx("span",{className:K(B.spectrumY,"mono"),style:{top:`${w(we)/Xa*100}%`},children:be(we,0)},we)),e[18]=u,e[19]=f,e[20]=l,e[21]=n.fftSize,e[22]=n.peakDb,e[23]=n.rmsDb,e[24]=d,e[25]=s,e[26]=j,e[27]=R,e[28]=c,e[29]=w,e[30]=N,e[31]=E,e[32]=C,e[33]=O}else N=e[30],E=e[31],C=e[32],O=e[33];let M;e[82]!==u||e[83]!==f||e[84]!==l||e[85]!==d||e[86]!==s?(M=l!==null&&o.jsxs("div",{className:K(B.spectrumTip,"mono"),style:{left:`${si(f(l))/fr*100}%`},children:[Rr(f(l))," Hz · ",be(u[l])," dB",s&&s.length===d&&o.jsxs("span",{className:"muted",children:[" (was ",be(s[l]),")"]})]}),e[82]=u,e[83]=f,e[84]=l,e[85]=d,e[86]=s,e[87]=M):M=e[87];let A;e[88]!==N||e[89]!==E||e[90]!==C||e[91]!==M?(A=o.jsxs("div",{className:N,children:[E,C,M]}),e[88]=N,e[89]=E,e[90]=C,e[91]=M,e[92]=A):A=e[92];let T;e[93]===Symbol.for("react.memo_cache_sentinel")?(T=o.jsx("div",{className:K(jc.spectrumX,"mono"),children:[100,1e3,1e4].map(QC)}),e[93]=T):T=e[93];let S;e[94]===Symbol.for("react.memo_cache_sentinel")?(S=o.jsxs("span",{children:[o.jsx("i",{className:B.lgLine})," This call"]}),e[94]=S):S=e[94];let $;e[95]!==s?($=s&&o.jsxs("span",{children:[o.jsx("i",{className:B.lgPrevious})," Previous call"]}),e[95]=s,e[96]=$):$=e[96];let L;e[97]!==u?(L=Math.max(...u)>-6&&o.jsxs("span",{children:[o.jsx("i",{className:B.lgWarn})," Within 6 dB of 0"]}),e[97]=u,e[98]=L):L=e[98];let z;e[99]!==u?(z=Math.max(...u)>=0&&o.jsxs("span",{children:[o.jsx("i",{className:B.lgBad})," Over 0 dB"]}),e[99]=u,e[100]=z):z=e[100];let D;e[101]!==$||e[102]!==L||e[103]!==z?(D=o.jsxs("div",{className:B.measureLegend,children:[S,$,L,z]}),e[101]=$,e[102]=L,e[103]=z,e[104]=D):D=e[104];let U;return e[105]!==O||e[106]!==A||e[107]!==D?(U=o.jsxs(o.Fragment,{children:[O,A,T,D]}),e[105]=O,e[106]=A,e[107]=D,e[108]=U):U=e[108],U}function QC(t){return o.jsx("span",{style:{left:`${si(t)/fr*100}%`},children:Rr(t)},t)}function ZC(t){return t>-149}const k_=t=>t.charAt(0).toUpperCase()+t.slice(1);function X5(t){const e=fe.c(30),{m:n}=t,s=n.secs&&n.proc?n.secs/n.proc:void 0,l=n.model??"–";let a;e[0]!==l?(a=o.jsx(ot,{label:"Model",value:l}),e[0]=l,e[1]=a):a=e[1];const i=n.device==="cpu_fallback"?"CPU (fallback)":n.device??"–";let r;e[2]!==i?(r=o.jsx(ot,{label:"Device",value:i}),e[2]=i,e[3]=r):r=e[3];let c;e[4]!==s?(c=s===void 0?"–":s.toFixed(1),e[4]=s,e[5]=c):c=e[5];const u=n.secs!==void 0&&n.proc!==void 0?`${n.secs} s of audio in ${n.proc} s`:void 0;let d;e[6]!==c||e[7]!==u?(d=o.jsx(ot,{label:"Speed",value:c,unit:"× real time",title:u}),e[6]=c,e[7]=u,e[8]=d):d=e[8];let m;e[9]!==a||e[10]!==r||e[11]!==d?(m=o.jsxs("div",{className:B.measureReadouts,children:[a,r,d]}),e[9]=a,e[10]=r,e[11]=d,e[12]=m):m=e[12];let f;e[13]!==n.stems?(f=n.stems.map(JC),e[13]=n.stems,e[14]=f):f=e[14];let h;e[15]!==f?(h=o.jsx("div",{className:B.evRows,children:f}),e[15]=f,e[16]=h):h=e[16];const g=n.name??"Source";let y;e[17]!==n.secs?(y=n.secs!==void 0?`, ${Math.round(n.secs)} s`:"",e[17]=n.secs,e[18]=y):y=e[18];const b=n.inserted?` · ${n.inserted} tracks added under “${n.folder??"Stems"}”${n.muted?", muted: they sum back to the source":""}`:" · written to disk, not added to the project";let p;e[19]!==n.stems?(p=n.stems.some(WC)&&". A stem peaking over 0 is kept unclipped (32-bit float).",e[19]=n.stems,e[20]=p):p=e[20];let v;e[21]!==g||e[22]!==y||e[23]!==b||e[24]!==p?(v=o.jsx("div",{className:B.offHints,children:o.jsxs("span",{children:[g,y,b,p]})}),e[21]=g,e[22]=y,e[23]=b,e[24]=p,e[25]=v):v=e[25];let _;return e[26]!==h||e[27]!==v||e[28]!==m?(_=o.jsxs(o.Fragment,{children:[m,h,v]}),e[26]=h,e[27]=v,e[28]=m,e[29]=_):_=e[29],_}function WC(t){const[,,e]=t;return e!==null&&e>0}function JC(t){const[e,n,s]=t,l=s!==null&&s>0;return o.jsxs(Qn,{className:K(B.evRow,l&&B.evHot),tip:[k_(e),n===null?"Silent":`${be(n)} LUFS`,...s!==null?[`Peak ${be(s)} dBFS`]:[]],children:[o.jsx("span",{className:B.evName,children:k_(e)}),o.jsxs("span",{className:K(B.evVal,"mono"),children:[n===null?o.jsx("b",{children:"silent"}):o.jsxs(o.Fragment,{children:[o.jsx("b",{children:be(n)})," LUFS"]}),s!==null&&o.jsxs("span",{className:l?B.evWord:void 0,children:[" · peak ",be(s)]})]}),o.jsx("span",{className:B.evBar,children:o.jsx("span",{className:B.evFill,style:{left:0,width:`${n===null?0:Cl(n)}%`}})})]},e)}const eM="_bad_1iywl_2",tM="_val_1iywl_2",nM="_fill_1iywl_3",sM="_wordBad_1iywl_4",yd={bad:eM,val:tM,fill:nM,wordBad:sM},lM={low:["Low","< 120 Hz"],lowMid:["Low mid","120–500 Hz"],mid:["Mid","500 Hz–2 kHz"],high:["High","2–8 kHz"],air:["Air","> 8 kHz"]};function K5(t){const e=fe.c(20),{m:n,was:s}=t,l=oM;let a;if(e[0]!==n.bands||e[1]!==s?.bands){let g;e[3]!==s?.bands?(g=y=>{const[b,p,v,_,x]=y,[k,w]=lM[b]??[b,""],R=p!==null&&p<0,j=!R&&b==="low"&&p!==null&&p<.5,N=s?.bands.find(E=>E[0]===b)?.[1]??null;return o.jsxs(Qn,{className:K(B.evRow,R&&yd.bad,j&&B.evHot),tip:[`${k} · ${w}`,p===null?"Silent":Uo("Correlation",p,"",N??void 0,{digits:2}),...v!==null?[`Worst moment ${be(v,2)}`]:[],..._!==null?[`Out of phase ${Math.round(_*100)}% of the time`]:[],...x!==null?[`Side ${be(x)} dB against mid`]:[]],children:[o.jsxs("span",{className:B.evName,children:[k,o.jsx("small",{children:w})]}),o.jsxs("span",{className:K(B.evVal,yd.val,"mono"),children:[o.jsx("b",{children:p===null?"silent":be(p,2)}),R&&o.jsx("span",{className:yd.wordBad,children:" · phase"}),j&&o.jsx("span",{className:B.evWord,children:" · wide"})]}),o.jsxs("span",{className:B.evBar,children:[o.jsx("span",{className:B.evZero,style:{left:"50%"}}),p!==null&&o.jsx("span",{className:K(B.evFill,yd.fill),style:{left:`${Math.min(50,l(p))}%`,width:`${Math.abs(l(p)-50)}%`}}),v!==null&&p!==null&&v<p&&o.jsx("span",{className:B.evTick,style:{left:`${l(v)}%`}}),N!==null&&o.jsx("span",{className:B.evWas,style:{left:`${Math.min(99,Math.max(1,l(N)))}%`}})]})]},b)},e[3]=s?.bands,e[4]=g):g=e[4],a=n.bands.map(g),e[0]=n.bands,e[1]=s?.bands,e[2]=a}else a=e[2];let i;e[5]!==a?(i=o.jsx("div",{className:B.evRows,children:a}),e[5]=a,e[6]=i):i=e[6];let r;e[7]===Symbol.for("react.memo_cache_sentinel")?(r=o.jsxs("div",{className:B.measureScaleWords,children:[o.jsx("span",{children:"−1 phase"}),o.jsx("span",{children:"0 wide"}),o.jsx("span",{children:"+1 mono"})]}),e[7]=r):r=e[7];let c,u;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=o.jsxs("span",{children:[o.jsx("i",{className:B.lgRange})," Correlation"]}),u=o.jsxs("span",{children:[o.jsx("i",{className:B.lgTick})," Worst moment"]}),e[8]=c,e[9]=u):(c=e[8],u=e[9]);let d;e[10]!==s?(d=s&&o.jsxs("span",{children:[o.jsx("i",{className:B.lgWas})," Previous call"]}),e[10]=s,e[11]=d):d=e[11];let m;e[12]!==d?(m=o.jsxs("div",{className:B.measureLegend,children:[c,u,d]}),e[12]=d,e[13]=m):m=e[13];let f;e[14]!==n.flags?(f=n.flags.length>0&&o.jsx("div",{className:B.offHints,children:n.flags.map(aM)}),e[14]=n.flags,e[15]=f):f=e[15];let h;return e[16]!==i||e[17]!==m||e[18]!==f?(h=o.jsxs(o.Fragment,{children:[i,r,m,f]}),e[16]=i,e[17]=m,e[18]=f,e[19]=h):h=e[19],h}function aM(t){return o.jsx("span",{className:B.evWord,children:t},t)}function oM(t){return gn(t,-1,1)}const iM="_waveform_hrs3c_1",rM="_waveformY_hrs3c_6",cM="_waveformShape_hrs3c_7",T0={waveform:iM,waveformY:rM,waveformShape:cM},Xi=320,io=84,Zf=-48,uM=t=>{const e=Math.min(1,Math.abs(t)),n=e>0?Math.max(0,(20*Math.log10(e)-Zf)/-Zf):0;return t<0?-n:n},ku=t=>(1-(t-Zf)/-Zf)/2;function Q5(t){const e=fe.c(95),{m:n,entry:s,previous:l}=t,a=Q.useId();let i;if(e[0]!==a){let T;e[2]===Symbol.for("react.memo_cache_sentinel")?(T=/:/g,e[2]=T):T=e[2],i=a.replace(T,""),e[0]=a,e[1]=i}else i=e[1];const r=i,[c,u]=Q.useState(null),d=n.hi.length,m=gM;let f;e[3]===Symbol.for("react.memo_cache_sentinel")?(f=T=>{const S=$=>$.map((L,z)=>`${(z/($.length-1)*Xi).toFixed(1)},${m(L).toFixed(1)}`);return`M${S(T.hi).join("L")}L${S(T.lo).reverse().join("L")}Z`},e[3]=f):f=e[3];const h=f,g=h(n);let y,b,p,v,_,x;if(e[4]!==s.p||e[5]!==c||e[6]!==n||e[7]!==d||e[8]!==l||e[9]!==g||e[10]!==r){const T=Em(s.p),S=T&&typeof T=="object"&&typeof T.startTime=="number"?T.startTime:0;b=S+(n.durationSeconds??0),y=(n.clipped??0)>0;const $=vM;let L;e[17]!==d?(L=Ae=>{const Re=Ae.currentTarget.getBoundingClientRect();u(Math.min(d-1,Math.max(0,Math.round((Ae.clientX-Re.left)/Re.width*(d-1)))))},e[17]=d,e[18]=L):L=e[18];const z=L,D=c===null?0:c/(d-1)*Xi,U=c===null?0:$(n,c);let I;e[19]!==n.peakDb?(I=be(n.peakDb),e[19]=n.peakDb,e[20]=I):I=e[20];let F;e[21]!==y||e[22]!==n.peakDb?(F=y?"over":Ll(n.peakDb),e[21]=y,e[22]=n.peakDb,e[23]=F):F=e[23];const P=y?"clipped":void 0;let X;e[24]!==F||e[25]!==P||e[26]!==I?(X=o.jsx(ot,{label:"Peak",value:I,unit:"dBFS",zone:F,word:P}),e[24]=F,e[25]=P,e[26]=I,e[27]=X):X=e[27];let Y;e[28]!==n.rmsDb?(Y=be(n.rmsDb),e[28]=n.rmsDb,e[29]=Y):Y=e[29];let Z;e[30]!==Y?(Z=o.jsx(ot,{label:"RMS",value:Y,unit:"dBFS"}),e[30]=Y,e[31]=Z):Z=e[31];const V=String(n.clipped??"–"),H=y?"over":"ok",W=y?"":void 0;let J;e[32]!==V||e[33]!==H||e[34]!==W?(J=o.jsx(ot,{label:"Clipped",value:V,unit:"samples",zone:H,word:W}),e[32]=V,e[33]=H,e[34]=W,e[35]=J):J=e[35],e[36]!==X||e[37]!==Z||e[38]!==J?(_=o.jsxs("div",{className:B.measureReadouts,children:[X,Z,J]}),e[36]=X,e[37]=Z,e[38]=J,e[39]=_):_=e[39];let ce;e[40]===Symbol.for("react.memo_cache_sentinel")?(ce=()=>u(null),e[40]=ce):ce=e[40];let ee;e[41]!==n.peakDb?(ee=be(n.peakDb),e[41]=n.peakDb,e[42]=ee):ee=e[42];const he=`Waveform of the rendered audio, peak ${ee} dBFS${y?`, ${n.clipped} clipped samples`:""}`,pe=`wave-heat-${r}`;let G;e[43]===Symbol.for("react.memo_cache_sentinel")?(G=[[0,"bad"],[-1,"warn"],[-6,"warn"],[-18,"accent"]].flatMap(pM).sort(hM),e[43]=G):G=e[43];let ae;e[44]!==pe?(ae=o.jsx("defs",{children:o.jsx("linearGradient",{id:pe,gradientUnits:"userSpaceOnUse",x1:0,x2:0,y1:0,y2:io,children:G})}),e[44]=pe,e[45]=ae):ae=e[45];let oe,ye;e[46]===Symbol.for("react.memo_cache_sentinel")?(oe=[-6,-18].flatMap(mM).map(fM),ye=o.jsx("line",{className:B.spectrumBase,x1:0,x2:Xi,y1:io/2,y2:io/2,vectorEffect:"non-scaling-stroke"}),e[46]=oe,e[47]=ye):(oe=e[46],ye=e[47]);let _e;e[48]!==l?(_e=l&&o.jsx("path",{className:B.spectrumPrevious,d:h(l),vectorEffect:"non-scaling-stroke"}),e[48]=l,e[49]=_e):_e=e[49];const ne=`url(#wave-heat-${r})`,te=`url(#wave-heat-${r})`;let ie;e[50]!==g||e[51]!==ne||e[52]!==te?(ie=o.jsx("path",{className:T0.waveformShape,d:g,fill:ne,stroke:te,vectorEffect:"non-scaling-stroke"}),e[50]=g,e[51]=ne,e[52]=te,e[53]=ie):ie=e[53];let de;e[54]!==c||e[55]!==D?(de=c!==null&&o.jsx("line",{className:B.spectrumCursor,x1:D,x2:D,y1:0,y2:io,vectorEffect:"non-scaling-stroke"}),e[54]=c,e[55]=D,e[56]=de):de=e[56];let xe;e[57]!==z||e[58]!==he||e[59]!==ae||e[60]!==_e||e[61]!==ie||e[62]!==de?(xe=o.jsxs("svg",{viewBox:`0 0 ${Xi} ${io}`,preserveAspectRatio:"none",onPointerMove:z,onPointerLeave:ce,role:"img","aria-label":he,children:[ae,oe,ye,_e,ie,de]}),e[57]=z,e[58]=he,e[59]=ae,e[60]=_e,e[61]=ie,e[62]=de,e[63]=xe):xe=e[63];const Ne=c!==null&&o.jsxs("div",{className:K(B.spectrumTip,"mono"),style:{left:`${Math.min(80,Math.max(20,D/Xi*100))}%`},children:[(S+(b-S)*c/(d-1)).toFixed(2)," s · ",o.jsxs("span",{"data-zone":U>=-.01?"over":Ll(U),children:[be(U)," dBFS"]}),l&&l.hi.length===d&&o.jsxs("span",{className:"muted",children:[" (was ",be($(l,c)),")"]})]});let Te;e[64]===Symbol.for("react.memo_cache_sentinel")?(Te=[-18,-6].map(dM),e[64]=Te):Te=e[64],e[65]!==xe||e[66]!==Ne?(x=o.jsxs("div",{className:T0.waveform,children:[xe,Ne,Te]}),e[65]=xe,e[66]=Ne,e[67]=x):x=e[67],e[68]===Symbol.for("react.memo_cache_sentinel")?(v=K(B.measureScaleWords,"mono"),e[68]=v):v=e[68],p=S.toFixed(1),e[4]=s.p,e[5]=c,e[6]=n,e[7]=d,e[8]=l,e[9]=g,e[10]=r,e[11]=y,e[12]=b,e[13]=p,e[14]=v,e[15]=_,e[16]=x}else y=e[11],b=e[12],p=e[13],v=e[14],_=e[15],x=e[16];let k;e[69]!==p?(k=o.jsxs("span",{children:[p," s"]}),e[69]=p,e[70]=k):k=e[70];let w;e[71]!==b?(w=b.toFixed(1),e[71]=b,e[72]=w):w=e[72];let R;e[73]!==w?(R=o.jsxs("span",{children:[w," s"]}),e[73]=w,e[74]=R):R=e[74];let j;e[75]!==R||e[76]!==v||e[77]!==k?(j=o.jsxs("div",{className:v,children:[k,R]}),e[75]=R,e[76]=v,e[77]=k,e[78]=j):j=e[78];let N;e[79]===Symbol.for("react.memo_cache_sentinel")?(N=o.jsxs("span",{children:[o.jsx("i",{className:B.lgLine})," This call"]}),e[79]=N):N=e[79];let E;e[80]!==l?(E=l&&o.jsxs("span",{children:[o.jsx("i",{className:B.lgPrevious})," Previous call"]}),e[80]=l,e[81]=E):E=e[81];let C;e[82]!==n.peakDb?(C=(n.peakDb??-150)>-6&&o.jsxs("span",{children:[o.jsx("i",{className:B.lgWarn})," Within 6 dB of clipping"]}),e[82]=n.peakDb,e[83]=C):C=e[83];let O;e[84]!==y?(O=y&&o.jsxs("span",{children:[o.jsx("i",{className:B.lgBad})," Clipping"]}),e[84]=y,e[85]=O):O=e[85];let M;e[86]!==E||e[87]!==C||e[88]!==O?(M=o.jsxs("div",{className:B.measureLegend,children:[N,E,C,O]}),e[86]=E,e[87]=C,e[88]=O,e[89]=M):M=e[89];let A;return e[90]!==j||e[91]!==M||e[92]!==_||e[93]!==x?(A=o.jsxs(o.Fragment,{children:[_,x,j,M]}),e[90]=j,e[91]=M,e[92]=_,e[93]=x,e[94]=A):A=e[94],A}function dM(t){return o.jsx("span",{className:K(B.spectrumY,T0.waveformY,"mono"),style:{top:`${(t===-18?ku(t):1-ku(t))*100}%`},children:be(t,0)},t)}function fM(t){return o.jsx("line",{className:B.spectrumGrid,x1:0,x2:Xi,y1:t*io,y2:t*io,vectorEffect:"non-scaling-stroke"},t)}function mM(t){return[ku(t),1-ku(t)]}function hM(t,e){return Number(t.props.offset)-Number(e.props.offset)}function pM(t){const[e,n]=t,s=ku(e);return[o.jsx("stop",{offset:s,stopColor:`var(--${n})`},`t${e}`),o.jsx("stop",{offset:1-s,stopColor:`var(--${n})`},`b${e}`)]}function vM(t,e){const n=Math.max(Math.abs(t.hi[e]??0),Math.abs(t.lo[e]??0));return n>0?20*Math.log10(n):-150}function gM(t){return(1-uM(t))/2*io}function _M(t){const e=fe.c(28),{entry:n,history:s,now:l,onPick:a}=t;let i,r,c,u,d,m,f,h;if(e[0]!==n||e[1]!==s){h=Symbol.for("react.early_return_sentinel");e:{if(i=Da(n),!i){h=null;break e}let p;e[10]!==n?(p=_=>_.n<n.n,e[10]=n,e[11]=p):p=e[11],r=s.find(p),d=B.measure,m=w_[i.kind];const v=w_[i.kind];e[12]!==v?(f=o.jsx("div",{className:B.measureHead,children:v}),e[12]=v,e[13]=f):f=e[13],c=B.measureBody,u=bM(i,n,r)}e[0]=n,e[1]=s,e[2]=i,e[3]=r,e[4]=c,e[5]=u,e[6]=d,e[7]=m,e[8]=f,e[9]=h}else i=e[2],r=e[3],c=e[4],u=e[5],d=e[6],m=e[7],f=e[8],h=e[9];if(h!==Symbol.for("react.early_return_sentinel"))return h;let g;e[14]!==c||e[15]!==u?(g=o.jsx("div",{className:c,children:u}),e[14]=c,e[15]=u,e[16]=g):g=e[16];let y;e[17]!==i||e[18]!==l||e[19]!==a||e[20]!==r?(y=r&&o.jsx(xM,{m:i,previous:r,now:l,onPick:a}),e[17]=i,e[18]=l,e[19]=a,e[20]=r,e[21]=y):y=e[21];let b;return e[22]!==d||e[23]!==m||e[24]!==f||e[25]!==g||e[26]!==y?(b=o.jsxs("section",{className:d,"aria-label":m,children:[f,g,y]}),e[22]=d,e[23]=m,e[24]=f,e[25]=g,e[26]=y,e[27]=b):b=e[27],b}const w_={meters:"Levels",lufs:"Loudness",offline:"Loudness and tone",alignment:"Timing and phase",aesthetics:"Sound quality score",key:"Key",chords:"Chords",curve:"Loudness over time",stereo:"Stereo by band",masking:"Masking",stems:"Stems",correlation:"Stereo correlation",crest:"Dynamics",spectrum:"Spectrum",waveform:"Waveform"};function Pl(t,e){const n=e?Da(e):null;return n?.kind===t?n:null}function j_(t){const e=fe.c(17),{was:n,peaks:s}=t;let l;e[0]!==s?(l=new Set(s.map(yM)),e[0]=s,e[1]=l):l=e[1];const a=l;let i,r;e[2]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsxs("span",{children:[o.jsx("i",{className:B.lgLine})," RMS (average)"]}),r=o.jsxs("span",{children:[o.jsx("i",{className:B.lgTick})," Peak"]}),e[2]=i,e[3]=r):(i=e[2],r=e[3]);let c;e[4]!==n?(c=n&&o.jsxs("span",{children:[o.jsx("i",{className:B.lgWas})," Previous peak"]}),e[4]=n,e[5]=c):c=e[5];let u;e[6]!==n?(u=n&&o.jsxs("span",{children:[o.jsx("i",{className:B.lgPrevious})," Previous RMS"]}),e[6]=n,e[7]=u):u=e[7];let d;e[8]!==a?(d=a.has("hot")&&o.jsxs("span",{children:[o.jsx("i",{className:B.lgWarn})," Within 6 dB of clipping"]}),e[8]=a,e[9]=d):d=e[9];let m;e[10]!==a?(m=a.has("over")&&o.jsxs("span",{children:[o.jsx("i",{className:B.lgBad})," Clipping"]}),e[10]=a,e[11]=m):m=e[11];let f;return e[12]!==c||e[13]!==u||e[14]!==d||e[15]!==m?(f=o.jsxs("div",{className:B.measureLegend,children:[i,r,c,u,d,m]}),e[12]=c,e[13]=u,e[14]=d,e[15]=m,e[16]=f):f=e[16],f}function yM(t){return Ll(t)}function bM(t,e,n){switch(t.kind){case"meters":{const s=Pl("meters",n);return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:B.measureReadouts,children:[o.jsx(ot,{label:"Peak L",value:be(t.peakL),unit:"dB",zone:Ll(t.peakL),word:""}),o.jsx(ot,{label:"Peak R",value:be(t.peakR),unit:"dB",zone:Ll(t.peakR),word:""}),o.jsx(ot,{label:"RMS L",value:be(t.rmsL),unit:"dB"}),o.jsx(ot,{label:"RMS R",value:be(t.rmsR),unit:"dB"})]}),o.jsx(nf,{label:"L",value:t.rmsL,hold:t.peakL,was:s&&{value:s.rmsL,hold:s.peakL},showValue:!1}),o.jsx(nf,{label:"R",value:t.rmsR,hold:t.peakR,was:s&&{value:s.rmsR,hold:s.peakR},showValue:!1}),o.jsx(Su,{ticks:[-60,-40,-20,-6,0],min:-60,max:6,indent:!0}),o.jsx(j_,{was:!!s,peaks:[t.peakL,t.peakR]})]})}case"lufs":return o.jsx(V5,{m:t,target:W$(e),was:Pl("lufs",n)?.integrated});case"offline":return o.jsx(P5,{m:t,was:Pl("offline",n)?.lufs});case"alignment":return o.jsx(B5,{m:t});case"aesthetics":return o.jsx(z5,{m:t,was:Pl("aesthetics",n)});case"key":return o.jsx(I5,{m:t,was:Pl("key",n)});case"chords":return o.jsx(H5,{m:t});case"curve":return o.jsx(G5,{m:t,was:Pl("curve",n)});case"stereo":return o.jsx(K5,{m:t,was:Pl("stereo",n)});case"masking":return o.jsx(F5,{m:t});case"stems":return o.jsx(X5,{m:t});case"correlation":{const s=t.correlation,l=Pl("correlation",n)?.correlation,a=s!==void 0&&s<0;return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:B.measureReadouts,children:[o.jsx(ot,{label:"Correlation",value:s===void 0?"–":be(s,2),zone:a?"over":"ok",word:a?"phase":void 0}),o.jsx(ot,{label:"Width",value:t.stereoWidth?.toFixed(2)??"–"}),o.jsx(ot,{label:"Side level",value:be(t.sideLevel),unit:"dB"})]}),o.jsxs(Qn,{className:qn.hlTrack,role:"img","aria-label":`Correlation ${s?.toFixed(2)??"unknown"}, from −1 out of phase to +1 mono`,tip:Uo("Correlation",s,"",l,{digits:2}),children:[o.jsx("span",{className:qn.hlCentre}),s!==void 0&&o.jsxs(o.Fragment,{children:[o.jsx("span",{className:K(qn.hlFill,qn.hlFillCorrelation),style:{clipPath:`inset(0 ${100-Math.max(50,gn(s,-1,1))}% 0 ${Math.min(50,gn(s,-1,1))}% round 2px)`}}),o.jsx("span",{className:qn.hlDot,"data-zone":a?"over":"ok",style:{left:`${gn(s,-1,1)}%`}})]}),l!==void 0&&o.jsx("span",{className:qn.hlWasDot,style:{left:`${gn(l,-1,1)}%`}})]}),o.jsxs("div",{className:B.measureScaleWords,children:[o.jsx("span",{children:"−1 phase"}),o.jsx("span",{children:"0"}),o.jsx("span",{children:"+1 mono"})]}),o.jsxs("div",{className:B.measureLegend,children:[o.jsxs("span",{children:[o.jsx("i",{className:B.lgDot})," Correlation"]}),l!==void 0&&o.jsxs("span",{children:[o.jsx("i",{className:B.lgWasDot})," Previous call"]}),a&&o.jsxs("span",{children:[o.jsx("i",{className:B.lgBad})," Out of phase"]})]})]})}case"crest":{const s=Pl("crest",n);return o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:B.measureReadouts,children:[o.jsx(ot,{label:"Crest",value:be(t.crestFactor),unit:"dB"}),o.jsx(ot,{label:"Peak",value:be(t.peakLevel),unit:"dB",zone:Ll(t.peakLevel)}),o.jsx(ot,{label:"RMS",value:be(t.rmsLevel),unit:"dB",zone:Ll(t.rmsLevel)})]}),o.jsx(nf,{label:"",value:t.rmsLevel,hold:t.peakLevel,was:s&&{value:s.rmsLevel,hold:s.peakLevel},showValue:!1}),o.jsx(Su,{ticks:[-60,-40,-20,-6,0],min:-60,max:6,indent:!0}),o.jsx(j_,{was:!!s,peaks:[t.peakLevel]})]})}case"spectrum":{const s=n?Da(n):null;return o.jsx(Y5,{m:t,previous:s?.kind==="spectrum"?s.bands:null})}case"waveform":return o.jsx(Q5,{m:t,entry:e,previous:Pl("waveform",n)})}}function N_(t){const e=(n,s,l,a=!1)=>n===void 0||n<=-149?null:{value:n,label:s,unit:l,plain:a};switch(t.kind){case"lufs":return e(t.integrated,"Integrated","LUFS");case"meters":return e(t.peakL===void 0?t.peakR:t.peakR===void 0?t.peakL:Math.max(t.peakL,t.peakR),"Peak","dB");case"correlation":return e(t.correlation,"Correlation","");case"crest":return e(t.crestFactor,"Crest","dB");case"spectrum":return e(t.rmsDb,"RMS","dB");case"waveform":return e(t.peakDb,"Peak","dB");case"offline":return e(t.lufs,"Integrated","LUFS");case"alignment":return e(t.delayMs,"Delay","ms");case"aesthetics":return e(t.pq,"Quality","/ 10",!0);case"key":return e(t.conf===void 0?void 0:t.conf*100,"Confidence","%",!0);case"chords":return null;case"curve":return e(t.lufs,"Integrated","LUFS");case"stereo":{const n=t.bands.find(s=>s[0]==="low")?.[1];return e(n??void 0,"Low-end correlation","",!0)}case"masking":return e(t.pairs[0]?.[2],"Worst pair","",!0);case"stems":return t.secs&&t.proc?e(t.secs/t.proc,"Speed","× real time",!0):null}}function xM(t){const e=fe.c(46),{m:n,previous:s,now:l,onPick:a}=t;let i,r,c,u,d,m,f,h,g,y,b,p,v,_;if(e[0]!==n||e[1]!==l||e[2]!==a||e[3]!==s){d=Symbol.for("react.early_return_sentinel");e:{const R=Da(s),j=N_(n);if(_=R&&N_(R),!_){d=null;break e}r=_.unit==="%"?0:_.unit?1:2,i=j?j.value-_.value:null,c=i===null||Math.abs(i)<.5/10**r;let N;e[18]!==r?(N=M=>M.plain?M.value.toFixed(r):be(M.value,r),e[18]=r,e[19]=N):N=e[19];const E=N;y=B.measurePrevious,e[20]!==a||e[21]!==s?(b=()=>a(s),e[20]=a,e[21]=s,e[22]=b):b=e[22],p="Open the previous call (↓)";const C=l-s.t;let O;e[23]!==C?(O=Oa(C),e[23]=C,e[24]=O):O=e[24],e[25]!==O?(v=o.jsxs("span",{children:["Previous call · ",O]}),e[25]=O,e[26]=v):v=e[26],u="mono",m=_.label,f=" ",h=E(_),g=j&&o.jsxs(o.Fragment,{children:[" → ",E(j)]})}e[0]=n,e[1]=l,e[2]=a,e[3]=s,e[4]=i,e[5]=r,e[6]=c,e[7]=u,e[8]=d,e[9]=m,e[10]=f,e[11]=h,e[12]=g,e[13]=y,e[14]=b,e[15]=p,e[16]=v,e[17]=_}else i=e[4],r=e[5],c=e[6],u=e[7],d=e[8],m=e[9],f=e[10],h=e[11],g=e[12],y=e[13],b=e[14],p=e[15],v=e[16],_=e[17];if(d!==Symbol.for("react.early_return_sentinel"))return d;let x;e[27]!==i||e[28]!==r||e[29]!==c||e[30]!==_.unit?(x=i!==null&&o.jsxs("b",{className:B.measurePreviousDelta,children:[" ",c?"no change":`${i>0?"▲":"▼"} ${Math.abs(i).toFixed(r)}${_.unit?` ${_.unit}`:""}`]}),e[27]=i,e[28]=r,e[29]=c,e[30]=_.unit,e[31]=x):x=e[31];let k;e[32]!==u||e[33]!==x||e[34]!==m||e[35]!==f||e[36]!==h||e[37]!==g||e[38]!==_.unit?(k=o.jsxs("span",{className:u,children:[m,f,h,g," ",_.unit,x]}),e[32]=u,e[33]=x,e[34]=m,e[35]=f,e[36]=h,e[37]=g,e[38]=_.unit,e[39]=k):k=e[39];let w;return e[40]!==k||e[41]!==y||e[42]!==b||e[43]!==p||e[44]!==v?(w=o.jsxs("button",{className:y,onClick:b,title:p,children:[v,k]}),e[40]=k,e[41]=y,e[42]=b,e[43]=p,e[44]=v,e[45]=w):w=e[45],w}const Ue=Object.assign(_M,{Readout:ot,Level:nf,Scale:Su,Loudness:V5,Spectrum:Y5,Waveform:Q5,Offline:P5,Alignment:B5,Aesthetics:z5,Key:I5,Chords:H5,LoudnessCurve:G5,StereoBands:K5,Masking:F5,Stems:X5}),Jt=(t,e,n)=>n===e?0:Math.min(100,Math.max(0,(t-e)/(n-e)*100)),SM=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"],mr=t=>`${SM[t%12]}${Math.floor(t/12)-1}`,Ge=(t,e=0)=>{const n=Math.floor(t/60),s=t-n*60;return`${n}:${s.toFixed(e).padStart(e?e+3:2,"0")}`},ca=(t,e)=>`${t} ${e}${t===1?"":"s"}`,Ka=t=>String(+t.toFixed(2)).replace("-","−"),wu=t=>t.replace(/^[A-Z0-9]+i?:\s*/,"").replace(/\s*\([^()]*\)$/,"")||t,kM=(t,e)=>t||`var(--h${e%6})`,Rm={new:"added",moved:"moved",changed:"changed"},wM={mute:["on","muted"],solo:["off","soloed"],recordArm:["off","armed"],phase:["normal","inverted"],Freeze:["live","frozen"]},jM={volume:"Volume",pan:"Pan",mute:"Mute",solo:"Solo",recordArm:"Record arm",phase:"Phase"},ju=t=>Math.abs(t)<.005?"centre":`${Math.round(Math.abs(t)*100)}% ${t<0?"left":"right"}`,Cr=t=>Math.abs(t)<.005?"C":`${Math.round(Math.abs(t)*100)}% ${t<0?"L":"R"}`;function T_(t,e,n){if(e===void 0)return"–";switch(t.s){case"db":return`${be(e)} dB`;case"pan":return Cr(e);case"bool":return n||(wM[t.p]??["off","on"])[e?1:0];case"norm":return n||`${Math.round(e*100)}%`}}const E_=(t,e)=>t.s==="db"?Jt(e,-60,6):t.s==="pan"?Jt(e,-1,1):Jt(e,0,1),NM="_evFillHot_19ozh_1",TM="_evMix_19ozh_2",EM="_evTrk_19ozh_3",$M="_evTrkMuted_19ozh_5",RM="_evTrkMaster_19ozh_6",CM="_evSw_19ozh_7",MM="_evTn_19ozh_8",AM="_evTnText_19ozh_11",LM="_evMark_19ozh_12",OM="_evTnFolder_19ozh_13",DM="_evFader_19ozh_14",zM="_evTv_19ozh_15",BM="_evPan_19ozh_17",IM="_evPanC_19ozh_19",UM="_evPanD_19ozh_20",HM="_evChips_19ozh_21",VM="_evChip_19ozh_21",GM="_evSlot_19ozh_33",FM="_evSlotName_19ozh_37",PM="_evMarkLegend_19ozh_42",qM="_evRoute_19ozh_45",YM="_evSlots_19ozh_48",XM="_evSlotState_19ozh_53",KM="_evSlotBypassed_19ozh_54",QM="_evSlotOffline_19ozh_55",ZM="_evRouteKind_19ozh_60",Fe={evFillHot:NM,evMix:TM,evTrk:EM,evTrkMuted:$M,evTrkMaster:RM,evSw:CM,evTn:MM,evTnText:AM,evMark:LM,evTnFolder:OM,evFader:DM,evTv:zM,evPan:BM,evPanC:IM,evPanD:UM,evChips:HM,evChip:VM,evSlot:GM,evSlotName:FM,evMarkLegend:PM,evRoute:qM,evSlots:YM,evSlotState:XM,evSlotBypassed:KM,evSlotOffline:QM,evRouteKind:ZM},Cm=t=>{const e=fe.c(2),{c:n}=t;let s;return e[0]!==n?(s=n?o.jsx("span",{className:Fe.evMark,"data-change":n,children:Rm[n]}):null,e[0]=n,e[1]=s):s=e[1],s},Z5=t=>{const e=fe.c(11),{change:n,removed:s}=t;let l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l=["new","moved","changed"],e[0]=l):l=e[0];let a;e[1]!==n?(a=l.filter(m=>[...n.values()].includes(m)),e[1]=n,e[2]=a):a=e[2];const i=a;if(!i.length&&!s)return null;let r;e[3]===Symbol.for("react.memo_cache_sentinel")?(r=K(B.measureLegend,Fe.evMarkLegend),e[3]=r):r=e[3];let c;e[4]!==i?(c=i.map(WM),e[4]=i,e[5]=c):c=e[5];let u;e[6]!==s?(u=s>0&&o.jsx("span",{className:B.lgStruck,children:"removed"}),e[6]=s,e[7]=u):u=e[7];let d;return e[8]!==c||e[9]!==u?(d=o.jsxs("div",{className:r,children:[c,u]}),e[8]=c,e[9]=u,e[10]=d):d=e[10],d},gs=t=>{const e=fe.c(4),{items:n}=t;let s;e[0]!==n?(s=n.map(JM),e[0]=n,e[1]=s):s=e[1];let l;return e[2]!==s?(l=o.jsx("div",{className:B.measureLegend,children:s}),e[2]=s,e[3]=l):l=e[3],l};function WM(t){return o.jsxs("span",{children:[o.jsx("i",{className:B.lgEdge,"data-change":t})," ",Rm[t]]},t)}function JM(t){const[e,n]=t;return o.jsxs("span",{children:[o.jsx("i",{className:e})," ",n]},n)}const eA="_evSame_1m18b_1",tA="_evFillRest_1m18b_2",nA="_evFillDown_1m18b_3",sA="_lgUp_1m18b_4",lA="_lgDown_1m18b_5",Nu={evSame:eA,evFillRest:tA,evFillDown:nA,lgUp:sA,lgDown:lA};function aA(t){const e=fe.c(9),{rows:n,more:s}=t,l=s===void 0?0:s;let a;if(e[0]!==l||e[1]!==n){const i=n.filter(cA);let r;e[3]!==n?(r=n.map(rA),e[3]=n,e[4]=r):r=e[4];let c;e[5]!==r?(c=o.jsx("div",{className:B.evRows,children:r}),e[5]=r,e[6]=c):c=e[6];let u;e[7]!==l?(u=l>0&&o.jsxs("div",{className:B.evMore,children:["+",ca(l,"more parameter")," not drawn"]}),e[7]=l,e[8]=u):u=e[8],a=o.jsxs(o.Fragment,{children:[c,u,i.length>0&&o.jsx(gs,{items:[[B.lgWas,"Before"],[B.lgTick,"Now"],...i.some(iA)?[[Nu.lgUp,"Raised"]]:[],...i.some(oA)?[[Nu.lgDown,"Lowered"]]:[]]})]}),e[0]=l,e[1]=n,e[2]=a}else a=e[2];return a}function oA(t){return(t.b??0)<(t.a??0)}function iA(t){return(t.b??0)>(t.a??0)}function rA(t,e){const n=t.a!==void 0&&t.a===t.b,s=t.s==="db"&&(t.b??-150)>0,l=T_(t,t.a,t.at),a=T_(t,t.b,t.bt),i=jM[t.p]??t.p;return o.jsxs("div",{className:K(B.evRow,n?Nu.evSame:"",s?B.evHot:""),children:[o.jsxs("span",{className:B.evName,title:`${t.t} · ${i}`,children:[t.t,o.jsx("small",{children:i})]}),o.jsxs("span",{className:K(B.evVal,"mono"),children:[n?o.jsxs(o.Fragment,{children:[a," · no change"]}):t.a===void 0?o.jsx("b",{children:a}):o.jsxs(o.Fragment,{children:[l," → ",o.jsx("b",{children:a})]}),s&&o.jsx("span",{className:B.evWord,children:" · above 0"})]}),t.s!=="bool"&&t.b!==void 0&&o.jsx(uA,{r:t,b:t.b,label:`${t.t} ${i} from ${l} to ${a}`,tip:n||t.a===void 0?`${i} ${a}`:`${i} ${l} → ${a}`})]},e)}function cA(t){return t.s!=="bool"&&t.a!==void 0&&t.b!==void 0&&t.a!==t.b}function uA(t){const e=fe.c(30),{r:n,b:s,label:l,tip:a}=t,i=E_(n,s);let r;e[0]!==n?(r=n.a===void 0?null:E_(n,n.a),e[0]=n,e[1]=r):r=e[1];const c=r,u=n.s==="pan"?50:0;let d;e[2]!==n.s?(d=n.s==="db"&&o.jsx("span",{className:B.evZero,style:{left:`${Jt(0,-60,6)}%`}}),e[2]=n.s,e[3]=d):d=e[3];let m;e[4]!==n.s?(m=n.s==="pan"&&o.jsx("span",{className:B.evZero,style:{left:"50%"}}),e[4]=n.s,e[5]=m):m=e[5];let f;e[6]===Symbol.for("react.memo_cache_sentinel")?(f=K(B.evFill,Nu.evFillRest),e[6]=f):f=e[6];const h=`${Math.min(u,i)}%`;let g;e[7]!==i||e[8]!==u?(g=Math.abs(i-u),e[7]=i,e[8]=u,e[9]=g):g=e[9];const y=`${g}%`;let b;e[10]!==h||e[11]!==y?(b=o.jsx("span",{className:f,style:{left:h,width:y}}),e[10]=h,e[11]=y,e[12]=b):b=e[12];let p;e[13]!==c||e[14]!==i?(p=c!==null&&c!==i&&o.jsx("span",{className:K(B.evFill,i<c?Nu.evFillDown:""),style:{left:`${Math.min(c,i)}%`,width:`${Math.abs(i-c)}%`}}),e[13]=c,e[14]=i,e[15]=p):p=e[15];let v;e[16]!==c||e[17]!==i?(v=c!==null&&c!==i&&o.jsx("span",{className:B.evWas,style:{left:`${c}%`}}),e[16]=c,e[17]=i,e[18]=v):v=e[18];const _=`${i}%`;let x;e[19]!==_?(x=o.jsx("span",{className:B.evTick,style:{left:_}}),e[19]=_,e[20]=x):x=e[20];let k;return e[21]!==l||e[22]!==v||e[23]!==x||e[24]!==d||e[25]!==m||e[26]!==b||e[27]!==p||e[28]!==a?(k=o.jsxs(Qn,{className:B.evBar,role:"img","aria-label":l,tip:a,children:[d,m,b,p,v,x]}),e[21]=l,e[22]=v,e[23]=x,e[24]=d,e[25]=m,e[26]=b,e[27]=p,e[28]=a,e[29]=k):k=e[29],k}function Fu(t){const e=fe.c(9),{added:n,removed:s,changed:l}=t,a=l===void 0?0:l;let i;e[0]!==n||e[1]!==a||e[2]!==s?(i=n||s?[["Added",n],["Removed",s]]:[["Changed",a]],e[0]=n,e[1]=a,e[2]=s,e[3]=i):i=e[3];const r=i;let c;e[4]!==r?(c=r.filter(fA),e[4]=r,e[5]=c):c=e[5];const u=c;if(!u.length){let m;return e[6]===Symbol.for("react.memo_cache_sentinel")?(m=o.jsx(Ue.Readout,{label:"Changed",value:"nothing"}),e[6]=m):m=e[6],m}let d;return e[7]!==u?(d=o.jsx(o.Fragment,{children:u.map(dA)}),e[7]=u,e[8]=d):d=e[8],d}function dA(t){const[e,n]=t;return o.jsx(Ue.Readout,{label:e,value:String(n)},e)}function fA(t){const[,e]=t;return e>0}const mA="_evEnv_1leuz_1",hA="_evEnvArea_1leuz_3",pA="_evEnvLine_1leuz_4",vA="_evAiCover_1leuz_7",gA="_evAi_1leuz_7",_A="_evAiTouched_1leuz_9",yA="_evAiGone_1leuz_10",bA="_evAiLine_1leuz_11",xA="_evAiLabel_1leuz_12",SA="_evAiLabelTouched_1leuz_16",kA="_evAiItem_1leuz_18",wA="_lgAiDim_1leuz_20",jA="_evGutter_1leuz_21",NA="_evPlot_1leuz_22",TA="_evY_1leuz_23",EA="_evDot_1leuz_24",$A="_evDotNew_1leuz_28",RA="_evDotGone_1leuz_29",CA="_evDotHover_1leuz_31",MA="_evTip_1leuz_32",Ct={evEnv:mA,evEnvArea:hA,evEnvLine:pA,evAiCover:vA,evAi:gA,evAiTouched:_A,evAiGone:yA,evAiLine:bA,evAiLabel:xA,evAiLabelTouched:SA,evAiItem:kA,lgAiDim:wA,evGutter:jA,evPlot:NA,evY:TA,evDot:EA,evDotNew:$A,evDotGone:RA,evDotHover:CA,evTip:MA},AA="_evRoll_2433p_1",LA="_evRollBlack_2433p_3",OA="_evNote_2433p_4",DA="_evNoteNew_2433p_5",zA="_evNoteGone_2433p_6",BA="_evVel_2433p_7",IA="_evVelNew_2433p_8",UA="_evVelOld_2433p_9",HA="_evBars_2433p_10",ya={evRoll:AA,evRollBlack:LA,evNote:OA,evNoteNew:DA,evNoteGone:zA,evVel:BA,evVelNew:IA,evVelOld:UA,evBars:HA},$_=(t,e)=>({left:`${t/vn*100}%`,top:`${e/ja*100}%`}),Qa=120,Vi=28;function VA(t){const e=fe.c(120),{v:n}=t,[s,l]=Q.useState(null);let a;e[0]!==n.gone?(a=n.gone??[],e[0]=n.gone,e[1]=a):a=e[1];const i=a;let r;e[2]!==i||e[3]!==n.notes?(r=[...n.notes,...i],e[2]=i,e[3]=n.notes,e[4]=r):r=e[4];const c=r;let u;e[5]!==c||e[6]!==n.beats?(u=n.beats??Math.max(4,...c.map(qA)),e[5]=c,e[6]=n.beats,e[7]=u):u=e[7];const d=u;let m;e[8]!==c?(m=c.map(PA),e[8]=c,e[9]=m):m=e[9];const f=m,h=f.length?(Math.min(...f)+Math.max(...f))/2:60,g=Math.floor(Math.min(h-6,...f)-1),y=Math.ceil(Math.max(h+6,...f)+1),b=y-g+1;let p;e[10]!==d?(p=ne=>ne/d*vn,e[10]=d,e[11]=p):p=e[11];const v=p;let _;e[12]!==y||e[13]!==b?(_=ne=>(y-ne)/b*Qa,e[12]=y,e[13]=b,e[14]=_):_=e[14];const x=_,k=n.ts?n.ts[0]*4/n.ts[1]:4;let w;e[15]!==n.notes?(w=n.notes.filter(FA),e[15]=n.notes,e[16]=w):w=e[16];const R=w.length;let j;e[17]!==d||e[18]!==y||e[19]!==b||e[20]!==n.notes?(j=ne=>{const te=ne.currentTarget.getBoundingClientRect(),ie=(ne.clientX-te.left)/te.width*d,de=y-Math.floor((ne.clientY-te.top)/te.height*b);l(n.notes.find(xe=>xe[0]===de&&ie>=xe[1]&&ie<=xe[1]+xe[2])??null)},e[17]=d,e[18]=y,e[19]=b,e[20]=n.notes,e[21]=j):j=e[21];const N=j;let E;e[22]!==y||e[23]!==b?(E=ne=>Array.from({length:b},(te,ie)=>y-ie).filter(te=>te%12===ne),e[22]=y,e[23]=b,e[24]=E):E=e[24];const C=E,O=String(n.total);let M;e[25]!==O?(M=o.jsx(Ue.Readout,{label:"Notes",value:O}),e[25]=O,e[26]=M):M=e[26];const A=n.beats??d;let T;e[27]!==d||e[28]!==A?(T=A.toFixed(d%1?2:0),e[27]=d,e[28]=A,e[29]=T):T=e[29];let S;e[30]!==T?(S=o.jsx(Ue.Readout,{label:"Length",value:T,unit:"beats"}),e[30]=T,e[31]=S):S=e[31];let $;e[32]!==R||e[33]!==i.length||e[34]!==f||e[35]!==n.gone?($=n.gone?o.jsx(Fu,{added:R,removed:i.length}):o.jsx(Ue.Readout,{label:"Range",value:f.length?`${mr(Math.min(...f))}–${mr(Math.max(...f))}`:"–"}),e[32]=R,e[33]=i.length,e[34]=f,e[35]=n.gone,e[36]=$):$=e[36];let L;e[37]!==M||e[38]!==S||e[39]!==$?(L=o.jsxs("div",{className:B.measureReadouts,children:[M,S,$]}),e[37]=M,e[38]=S,e[39]=$,e[40]=L):L=e[40];let z;e[41]===Symbol.for("react.memo_cache_sentinel")?(z=K(ya.evRoll,Ct.evGutter),e[41]=z):z=e[41];let D;e[42]!==C||e[43]!==b||e[44]!==x?(D=C(0).map(ne=>o.jsx("span",{className:K(Ct.evY,"mono"),style:{top:`${(x(ne)+Qa/b/2)/Qa*100}%`},children:mr(ne)},ne)),e[42]=C,e[43]=b,e[44]=x,e[45]=D):D=e[45];let U;e[46]===Symbol.for("react.memo_cache_sentinel")?(U=()=>l(null),e[46]=U):U=e[46];let I;e[47]!==n.total?(I=ca(n.total,"note"),e[47]=n.total,e[48]=I):I=e[48];const F=`Piano roll, ${I} over ${d} beats`;let P;e[49]!==y||e[50]!==b||e[51]!==x?(P=Array.from({length:b},(ne,te)=>y-te).filter(GA).map(ne=>o.jsx("rect",{className:ya.evRollBlack,x:0,y:x(ne),width:vn,height:Qa/b},ne)),e[49]=y,e[50]=b,e[51]=x,e[52]=P):P=e[52];let X;if(e[53]!==k||e[54]!==d||e[55]!==v){let ne;e[57]!==k||e[58]!==v?(ne=(te,ie)=>o.jsx("line",{className:ie%k===0?B.spectrumBase:B.spectrumGrid,x1:v(ie),x2:v(ie),y1:0,y2:Qa,vectorEffect:"non-scaling-stroke"},ie),e[57]=k,e[58]=v,e[59]=ne):ne=e[59],X=Array.from({length:Math.floor(d)+1},ne),e[53]=k,e[54]=d,e[55]=v,e[56]=X}else X=e[56];let Y;if(e[60]!==i||e[61]!==b||e[62]!==v||e[63]!==x){let ne;e[65]!==b||e[66]!==v||e[67]!==x?(ne=(te,ie)=>o.jsx("rect",{className:ya.evNoteGone,x:v(te[1]),y:x(te[0])+.5,width:Math.max(1,v(te[1]+te[2])-v(te[1])-.5),height:Qa/b-1,vectorEffect:"non-scaling-stroke"},`g${ie}`),e[65]=b,e[66]=v,e[67]=x,e[68]=ne):ne=e[68],Y=i.map(ne),e[60]=i,e[61]=b,e[62]=v,e[63]=x,e[64]=Y}else Y=e[64];let Z;if(e[69]!==b||e[70]!==n.notes||e[71]!==v||e[72]!==x){let ne;e[74]!==b||e[75]!==v||e[76]!==x?(ne=(te,ie)=>o.jsx("rect",{className:te[4]?ya.evNoteNew:ya.evNote,x:v(te[1]),y:x(te[0])+.5,width:Math.max(1,v(te[1]+te[2])-v(te[1])-.5),height:Qa/b-1,style:{opacity:.35+te[3]/127*.65}},ie),e[74]=b,e[75]=v,e[76]=x,e[77]=ne):ne=e[77],Z=n.notes.map(ne),e[69]=b,e[70]=n.notes,e[71]=v,e[72]=x,e[73]=Z}else Z=e[73];let V;e[78]!==F||e[79]!==P||e[80]!==X||e[81]!==Y||e[82]!==Z?(V=o.jsxs("svg",{viewBox:`0 0 ${vn} ${Qa}`,preserveAspectRatio:"none",role:"img","aria-label":F,children:[P,X,Y,Z]}),e[78]=F,e[79]=P,e[80]=X,e[81]=Y,e[82]=Z,e[83]=V):V=e[83];let H;e[84]!==s||e[85]!==v?(H=s&&o.jsxs("div",{className:K(B.spectrumTip,"mono"),style:{left:`${Math.min(80,Math.max(20,v(s[1])/vn*100))}%`},children:[mr(s[0])," · beat ",+(s[1]+1).toFixed(2)," ·"," ",+s[2].toFixed(2)," long · vel ",s[3]]}),e[84]=s,e[85]=v,e[86]=H):H=e[86];let W;e[87]!==N||e[88]!==V||e[89]!==H?(W=o.jsxs("div",{className:Ct.evPlot,onPointerMove:N,onPointerLeave:U,children:[V,H]}),e[87]=N,e[88]=V,e[89]=H,e[90]=W):W=e[90];let J;e[91]!==D||e[92]!==W?(J=o.jsxs("div",{className:z,children:[D,W]}),e[91]=D,e[92]=W,e[93]=J):J=e[93];let ce;e[94]===Symbol.for("react.memo_cache_sentinel")?(ce=o.jsx("line",{className:B.spectrumBase,x1:0,x2:vn,y1:Vi,y2:Vi,vectorEffect:"non-scaling-stroke"}),e[94]=ce):ce=e[94];let ee;if(e[95]!==n.notes||e[96]!==v){let ne;e[98]!==v?(ne=(te,ie)=>o.jsx("line",{className:te[4]?ya.evVelNew:ya.evVelOld,x1:v(te[1])+1,x2:v(te[1])+1,y1:Vi-te[3]/127*Vi,y2:Vi,vectorEffect:"non-scaling-stroke"},ie),e[98]=v,e[99]=ne):ne=e[99],ee=n.notes.map(ne),e[95]=n.notes,e[96]=v,e[97]=ee}else ee=e[97];let he;e[100]!==ee?(he=o.jsx("div",{className:Ct.evGutter,children:o.jsxs("svg",{className:ya.evVel,viewBox:`0 0 ${vn} ${Vi}`,preserveAspectRatio:"none",role:"img","aria-label":"Velocities",children:[ce,ee]})}),e[100]=ee,e[101]=he):he=e[101];let pe;e[102]===Symbol.for("react.memo_cache_sentinel")?(pe=K(ya.evBars,Ct.evGutter,"mono"),e[102]=pe):pe=e[102];let G;e[103]!==k||e[104]!==d?(G=o.jsx("div",{className:pe,children:Array.from({length:Math.ceil(d/k)},(ne,te)=>o.jsx("span",{style:{left:`${Jt(te*k,0,d)}%`},children:te+1},te))}),e[103]=k,e[104]=d,e[105]=G):G=e[105];let ae;e[106]!==n.more?(ae=n.more>0&&o.jsxs("div",{className:B.evMore,children:["+",n.more," more ",n.more===1?"note":"notes"," not drawn"]}),e[106]=n.more,e[107]=ae):ae=e[107];let oe;e[108]!==n.items?(oe=n.items&&o.jsxs("div",{className:B.evMore,children:["+",ca(n.items,"more imported item")," not drawn"]}),e[108]=n.items,e[109]=oe):oe=e[109];let ye;e[110]!==n.gone?(ye=n.gone&&o.jsx(gs,{items:[[B.lgNoteNew,"Added or changed"],[B.lgNote,"Unchanged"],[B.lgNoteGone,"Removed"]]}),e[110]=n.gone,e[111]=ye):ye=e[111];let _e;return e[112]!==L||e[113]!==J||e[114]!==he||e[115]!==G||e[116]!==ae||e[117]!==oe||e[118]!==ye?(_e=o.jsxs(o.Fragment,{children:[L,J,he,G,ae,oe,ye]}),e[112]=L,e[113]=J,e[114]=he,e[115]=G,e[116]=ae,e[117]=oe,e[118]=ye,e[119]=_e):_e=e[119],_e}function GA(t){return[1,3,6,8,10].includes(t%12)}function FA(t){return t[4]}function PA(t){return t[0]}function qA(t){return t[1]+t[2]}const vn=400;function Tu(t){const e=fe.c(8),{left:n,top:s,children:l}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a=K(B.spectrumTip,Ct.evTip,"mono"),e[0]=a):a=e[0];const i=s<35?"below":void 0,r=`${Math.min(88,Math.max(12,n))}%`,c=`${s}%`;let u;e[1]!==r||e[2]!==c?(u={left:r,top:c},e[1]=r,e[2]=c,e[3]=u):u=e[3];let d;return e[4]!==l||e[5]!==i||e[6]!==u?(d=o.jsx("div",{role:"tooltip",className:a,"data-align":i,style:u,children:l}),e[4]=l,e[5]=i,e[6]=u,e[7]=d):d=e[7],d}const ja=110;function E0(t,e,n){if(!t.length)return"";if(t.length===1)return`M0,${n(t[0][1])}H${vn}`;let s=`M${e(t[0][0])},${n(t[0][1])}`;for(let l=1;l<t.length;l++){const[a,i,r]=t[l-1],[c,u]=t[l],d=e(a),m=e(c),f=n(i),h=n(u);r===1?s+=`H${m}V${h}`:r===2||r===5?s+=`C${(d+m)/2},${f} ${(d+m)/2},${h} ${m},${h}`:r===3?s+=`Q${d},${h} ${m},${h}`:r===4?s+=`Q${m},${f} ${m},${h}`:s+=`L${m},${h}`}return s}function YA(t,e){if(t==="pan")return{top:1,bottom:-1,ticks:[[1,"+1"],[0,"C"],[-1,"−1"]]};if(t==="cc")return{top:127,bottom:0,ticks:[[127,"127"],[64,"64"],[0,"0"]]};if(t==="mute")return{top:1.15,bottom:-.15,ticks:[[1,"1"],[0,"0"]]};if(t==="dB"){const a=e.filter(u=>u>-149),i=Math.max(6,Math.ceil(Math.max(0,...a)/6)*6),r=Math.max(-60,Math.min(-24,Math.floor(Math.min(0,...a)/6)*6-6)),c=[i,0,-6,-12,-24,-48].filter((u,d,m)=>u<=i&&u>r&&m.indexOf(u)===d);return{top:i,bottom:r,ticks:c.map(u=>[u,be(u,0)])}}const n=Math.min(...e),s=Math.max(...e),l=s===n?1:(s-n)*.15;return{top:s+l,bottom:n-l,ticks:[[s,s.toFixed(2)],[n,n.toFixed(2)]]}}const R_=(t,e)=>t==="dB"?`${be(e)} dB`:t==="pan"?Math.abs(e)<.005?"C":`${e>0?"+":"−"}${Math.round(Math.abs(e)*100)}%`:t==="mute"?String(e>=.5?1:0):t==="cc"?String(Math.round(e)):e.toFixed(3);function XA(t){const e=fe.c(142),{v:n}=t,[s,l]=Q.useState(null);let a;e[0]!==n.beats?(a=(S,$)=>{const L=$===void 0?1:$;return n.beats?`beat ${+(S+1).toFixed(L===2?2:1)}`:Ge(S,L)},e[0]=n.beats,e[1]=a):a=e[1];const i=a,r=Math.max(.001,n.to-n.from);let c,u,d,m,f,h,g,y,b,p,v,_;if(e[2]!==s||e[3]!==r||e[4]!==n||e[5]!==i){const S=[...n.pools??[],...n.wasPools??[]].flatMap(ZA),$=[...n.pts,...n.was??[],...S].map(QA),{top:L,bottom:z,ticks:D}=YA(n.unit,$.length?$:[0]);let U;e[18]!==r||e[19]!==n.from?(U=we=>(we-n.from)/r*vn,e[18]=r,e[19]=n.from,e[20]=U):U=e[20],v=U;let I;e[21]!==z||e[22]!==L?(I=we=>(L-Math.min(L,Math.max(z,we)))/(L-z)*ja,e[21]=z,e[22]=L,e[23]=I):I=e[23],_=I;const F=q$(n.pts,n.was),P=n.was?n.was.filter(we=>!n.pts.some(Ce=>Ce[0]===we[0]&&Ce[1]===we[1])):[];let X;e[24]!==n.pts||e[25]!==v||e[26]!==_?(X=E0(n.pts,v,_),e[24]=n.pts,e[25]=v,e[26]=_,e[27]=X):X=e[27];const Y=X;let Z;e[28]!==n.from||e[29]!==n.to?(Z=we=>we[0]>=n.from&&we[0]<=n.to,e[28]=n.from,e[29]=n.to,e[30]=Z):Z=e[30];const V=Z;let H;e[31]!==V||e[32]!==r||e[33]!==n.from||e[34]!==n.pts?(H=we=>{const Ce=we.currentTarget.getBoundingClientRect(),Oe=n.from+(we.clientX-Ce.left)/Ce.width*r,Xe=n.pts.filter(V).reduce((re,Ee)=>!re||Math.abs(Ee[0]-Oe)<Math.abs(re[0]-Oe)?Ee:re,null);l(Xe)},e[31]=V,e[32]=r,e[33]=n.from,e[34]=n.pts,e[35]=H):H=e[35];const W=H,J=n.unit==="cc"?"CC":"Envelope";let ce;e[36]!==n.env||e[37]!==n.unit?(ce=n.unit==="cc"?n.env.split(" · ")[0].replace(/^CC /,""):n.env,e[36]=n.env,e[37]=n.unit,e[38]=ce):ce=e[38];let ee;e[39]!==n.env||e[40]!==n.unit?(ee=n.unit==="cc"?n.env.split(" · ")[1]:void 0,e[39]=n.env,e[40]=n.unit,e[41]=ee):ee=e[41];let he;e[42]!==J||e[43]!==ce||e[44]!==ee?(he=o.jsx(Ue.Readout,{label:J,value:ce,unit:ee}),e[42]=J,e[43]=ce,e[44]=ee,e[45]=he):he=e[45];const pe=n.unit==="cc"?"Events":"Points",G=String(n.count);let ae;e[46]!==pe||e[47]!==G?(ae=o.jsx(Ue.Readout,{label:pe,value:G}),e[46]=pe,e[47]=G,e[48]=ae):ae=e[48];let oe;e[49]!==n.ais||e[50]!==n.aisMore?(oe=n.ais&&o.jsx(Ue.Readout,{label:"Items",value:String(n.ais.length+(n.aisMore??0)),unit:ca(new Set(n.ais.map(KA)).size,"pool")}),e[49]=n.ais,e[50]=n.aisMore,e[51]=oe):oe=e[51];const ye=n.was&&(F.size>0||P.length>0||!n.ais)&&o.jsx(Fu,{added:F.size,removed:P.length});e[52]!==he||e[53]!==ae||e[54]!==oe||e[55]!==ye?(u=o.jsxs("div",{className:B.measureReadouts,children:[he,ae,oe,ye]}),e[52]=he,e[53]=ae,e[54]=oe,e[55]=ye,e[56]=u):u=e[56],e[57]===Symbol.for("react.memo_cache_sentinel")?(p=K(Ct.evEnv,Ct.evGutter),e[57]=p):p=e[57];let _e;e[58]!==_?(_e=we=>{const[Ce,Oe]=we;return o.jsx("span",{className:K(Ct.evY,"mono"),style:{top:`${_(Ce)/ja*100}%`},children:Oe},Ce)},e[58]=_,e[59]=_e):_e=e[59],c=D.map(_e),d=Ct.evPlot,m=W,e[60]===Symbol.for("react.memo_cache_sentinel")?(f=()=>l(null),e[60]=f):f=e[60];const ne=n.env;let te;e[61]!==n.from||e[62]!==i?(te=i(n.from,1),e[61]=n.from,e[62]=i,e[63]=te):te=e[63];let ie;e[64]!==n.to||e[65]!==i?(ie=i(n.to,1),e[64]=n.to,e[65]=i,e[66]=ie):ie=e[66];const de=`${ne} automation from ${te} to ${ie}`;let xe;e[67]!==_?(xe=we=>{const[Ce]=we;return o.jsx("line",{className:Ce===0?B.spectrumBase:B.spectrumGrid,x1:0,x2:vn,y1:_(Ce),y2:_(Ce),vectorEffect:"non-scaling-stroke"},Ce)},e[67]=_,e[68]=xe):xe=e[68];const Ne=D.map(xe);let Te;e[69]!==n.was||e[70]!==v||e[71]!==_?(Te=n.was&&o.jsx("path",{className:B.spectrumPrevious,d:E0(n.was,v,_),vectorEffect:"non-scaling-stroke"}),e[69]=n.was,e[70]=v,e[71]=_,e[72]=Te):Te=e[72];let Ae;e[73]!==Y||e[74]!==n.pts[0]||e[75]!==n.pts.length||e[76]!==v?(Ae=Y&&o.jsx("path",{className:Ct.evEnvArea,d:`${Y}V${ja}H${n.pts.length===1?0:v(n.pts[0][0])}Z`}),e[73]=Y,e[74]=n.pts[0],e[75]=n.pts.length,e[76]=v,e[77]=Ae):Ae=e[77];let Re;e[78]!==Y?(Re=Y&&o.jsx("path",{className:Ct.evEnvLine,d:Y,vectorEffect:"non-scaling-stroke"}),e[78]=Y,e[79]=Re):Re=e[79];let Le;e[80]!==n||e[81]!==v||e[82]!==_?(Le=n.ais&&o.jsx(JA,{v:n,x:v,y:_}),e[80]=n,e[81]=v,e[82]=_,e[83]=Le):Le=e[83],e[84]!==de||e[85]!==Ne||e[86]!==Te||e[87]!==Ae||e[88]!==Re||e[89]!==Le?(h=o.jsxs("svg",{viewBox:`0 0 ${vn} ${ja}`,preserveAspectRatio:"none",role:"img","aria-label":de,children:[Ne,Te,Ae,Re,Le]}),e[84]=de,e[85]=Ne,e[86]=Te,e[87]=Ae,e[88]=Re,e[89]=Le,e[90]=h):h=e[90],e[91]!==n||e[92]!==v?(g=n.ais&&o.jsx(nL,{v:n,x:v}),e[91]=n,e[92]=v,e[93]=g):g=e[93];let De;e[94]!==n.unit||e[95]!==i||e[96]!==v||e[97]!==_?(De=(we,Ce)=>o.jsx("span",{className:K(Ct.evDot,Ct.evDotGone),style:$_(v(we[0]),_(we[1])),title:`Removed: ${i(we[0],2)} · ${R_(n.unit,we[1])}`},`r${Ce}`),e[94]=n.unit,e[95]=i,e[96]=v,e[97]=_,e[98]=De):De=e[98],y=P.filter(V).map(De),b=n.pts.filter(V).map((we,Ce)=>o.jsx("span",{className:K(Ct.evDot,F.has(we)?Ct.evDotNew:"",we===s?Ct.evDotHover:""),style:$_(v(we[0]),_(we[1]))},Ce)),e[2]=s,e[3]=r,e[4]=n,e[5]=i,e[6]=c,e[7]=u,e[8]=d,e[9]=m,e[10]=f,e[11]=h,e[12]=g,e[13]=y,e[14]=b,e[15]=p,e[16]=v,e[17]=_}else c=e[6],u=e[7],d=e[8],m=e[9],f=e[10],h=e[11],g=e[12],y=e[13],b=e[14],p=e[15],v=e[16],_=e[17];let x;e[99]!==s||e[100]!==n.unit||e[101]!==i||e[102]!==v||e[103]!==_?(x=s&&o.jsxs(Tu,{left:v(s[0])/vn*100,top:_(s[1])/ja*100,children:[i(s[0],2)," · ",R_(n.unit,s[1])]}),e[99]=s,e[100]=n.unit,e[101]=i,e[102]=v,e[103]=_,e[104]=x):x=e[104];let k;e[105]!==x||e[106]!==d||e[107]!==m||e[108]!==f||e[109]!==h||e[110]!==g||e[111]!==y||e[112]!==b?(k=o.jsxs("div",{className:d,onPointerMove:m,onPointerLeave:f,children:[h,g,y,b,x]}),e[105]=x,e[106]=d,e[107]=m,e[108]=f,e[109]=h,e[110]=g,e[111]=y,e[112]=b,e[113]=k):k=e[113];let w;e[114]!==c||e[115]!==k||e[116]!==p?(w=o.jsxs("div",{className:p,children:[c,k]}),e[114]=c,e[115]=k,e[116]=p,e[117]=w):w=e[117];let R;e[118]===Symbol.for("react.memo_cache_sentinel")?(R=K(B.measureScaleWords,Ct.evGutter,"mono"),e[118]=R):R=e[118];let j;e[119]!==n.from||e[120]!==i?(j=i(n.from,1),e[119]=n.from,e[120]=i,e[121]=j):j=e[121];let N;e[122]!==j?(N=o.jsx("span",{children:j}),e[122]=j,e[123]=N):N=e[123];let E;e[124]!==n.to||e[125]!==i?(E=i(n.to,1),e[124]=n.to,e[125]=i,e[126]=E):E=e[126];let C;e[127]!==E?(C=o.jsx("span",{children:E}),e[127]=E,e[128]=C):C=e[128];let O;e[129]!==N||e[130]!==C?(O=o.jsxs("div",{className:R,children:[N,C]}),e[129]=N,e[130]=C,e[131]=O):O=e[131];let M;e[132]!==n.otherCcs?(M=n.otherCcs&&o.jsxs("div",{className:B.evMore,children:["+",ca(n.otherCcs,"other controller")," in this item (filter with ccNumber)"]}),e[132]=n.otherCcs,e[133]=M):M=e[133];let A;e[134]!==n?(A=(n.was||n.ais)&&o.jsx(gs,{items:[...n.was?[[B.lgLine,"Now"],[B.lgPrevious,"Before"],[B.lgNew,"Added or moved"]]:[],...n.ais?[[B.lgAi,"Automation item (one colour per pool)"]]:[],...n.ais&&_v(n).size?[[K(B.lgAi,Ct.lgAiDim),"Unchanged item"]]:[]]}),e[134]=n,e[135]=A):A=e[135];let T;return e[136]!==u||e[137]!==w||e[138]!==O||e[139]!==M||e[140]!==A?(T=o.jsxs(o.Fragment,{children:[u,w,O,M,A]}),e[136]=u,e[137]=w,e[138]=O,e[139]=M,e[140]=A,e[141]=T):T=e[141],T}function KA(t){return t[2]}function QA(t){return t[1]}function ZA(t){return t[1]}function WA(t){const e=new Map;for(const n of[...t.ais??[],...t.wasAis??[]])e.has(n[2])||e.set(n[2],`var(--h${e.size%6})`);return e}const W5=(t,e)=>t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2];function _v(t){const e=t.ais??[],n=new Set;t.ai!==void 0&&t.ai>=0&&n.add(t.ai),t.wasAis&&e.forEach((a,i)=>!t.wasAis?.some(r=>W5(a,r))&&n.add(i));const s=new Map((t.wasPools??[]).map(a=>[a[0],JSON.stringify(a[1])])),l=new Map((t.pools??[]).map(a=>[a[0],JSON.stringify(a[1])]));return e.forEach((a,i)=>s.has(a[2])&&s.get(a[2])!==(l.get(a[2])??"[]")&&n.add(i)),n}function C_(t,e,n,s){const l=t.filter(i=>i[0]<=e[1]+1e-6).map(i=>[e[0]+i[0],i[1],i[2]]);if(!l.length)return"";const a=l[l.length-1];return a[0]<e[0]+e[1]&&l.push([e[0]+e[1],a[1],0]),l[0][0]>e[0]&&l.unshift([e[0],l[0][1],0]),E0(l,n,s)}function JA(t){const e=fe.c(8),{v:n,x:s,y:l}=t;let a,i;if(e[0]!==n||e[1]!==s||e[2]!==l){const c=WA(n),u=new Map((n.pools??[]).map(tL)),d=new Map((n.wasPools??[]).map(eL)),m=n.ais??[],f=_v(n);a=(n.wasAis??[]).filter(g=>!m.some(y=>W5(y,g))).map((g,y)=>o.jsx("rect",{className:Ct.evAiGone,x:s(g[0]),width:Math.max(.5,s(g[0]+g[1])-s(g[0])),y:0,height:ja,style:{stroke:c.get(g[2])},vectorEffect:"non-scaling-stroke"},`g${y}`)),i=m.map((g,y)=>{const b=c.get(g[2]),p=d.get(g[2]),v=u.get(g[2])??[],_=p&&JSON.stringify(p)!==JSON.stringify(v);return o.jsxs("g",{className:Ct.evAiItem,"data-state":f.size&&!f.has(y)?"dim":void 0,children:[o.jsx("rect",{className:Ct.evAiCover,x:s(g[0]),width:Math.max(.5,s(g[0]+g[1])-s(g[0])),y:0,height:ja}),o.jsx("rect",{className:K(Ct.evAi,n.ai===y?Ct.evAiTouched:""),x:s(g[0]),width:Math.max(.5,s(g[0]+g[1])-s(g[0])),y:0,height:ja,style:{fill:b,stroke:b},vectorEffect:"non-scaling-stroke"}),_&&o.jsx("path",{className:B.spectrumPrevious,d:C_(p,g,s,l),vectorEffect:"non-scaling-stroke"}),o.jsx("path",{className:Ct.evAiLine,d:C_(v,g,s,l),style:{stroke:b},vectorEffect:"non-scaling-stroke"})]},y)}),e[0]=n,e[1]=s,e[2]=l,e[3]=a,e[4]=i}else a=e[3],i=e[4];let r;return e[5]!==a||e[6]!==i?(r=o.jsxs("g",{children:[a,i]}),e[5]=a,e[6]=i,e[7]=r):r=e[7],r}function eL(t){return[t[0],t[1]]}function tL(t){return[t[0],t[1]]}function nL(t){const e=fe.c(5),{v:n,x:s}=t;let l;if(e[0]!==n||e[1]!==s){const i=n.ais??[],r=new Map;for(const u of i)r.set(u[2],(r.get(u[2])??0)+1);const c=_v(n);l=i.map((u,d)=>{const m=Math.max(0,s(u[0])),f=Math.min(vn,s(u[0]+u[1]))-m;if(f<=0)return null;const h=u[3]||`Pool ${u[2]}`,g=(r.get(u[2])??1)>1;return o.jsx("span",{className:K(Ct.evAiLabel,"mono",n.ai===d?Ct.evAiLabelTouched:""),"data-state":c.size&&!c.has(d)?"dim":void 0,style:{left:`${m/vn*100}%`,width:`${f/vn*100}%`},title:`${h} · pool ${u[2]}${g?` · ${r.get(u[2])} pooled items`:""} · ${Ge(u[0],2)}–${Ge(u[0]+u[1],2)}${c.has(d)?" · changed by this call":""}`,children:f/vn>.1?`${h}${g?" ⧉":""}`:""},d)}),e[0]=n,e[1]=s,e[2]=l}else l=e[2];let a;return e[3]!==l?(a=o.jsx(o.Fragment,{children:l}),e[3]=l,e[4]=a):a=e[4],a}const sL="_evTimeline_148t4_1",lL="_evLane_148t4_2",aL="_evLaneMarkers_148t4_3",oL="_evLaneContext_148t4_4",iL="_evMarker_148t4_5",rL="_evNew_148t4_8",cL="_evGone_148t4_9",uL="_evLaneRegions_148t4_11",dL="_evRegion_148t4_14",fL="_evLaneItems_148t4_21",mL="_evItem_148t4_22",hL="_evItemMidi_148t4_23",pL="_evItemMuted_148t4_24",vL="_evFadeIn_148t4_26",gL="_evFadeOut_148t4_27",_L="_evTempo_148t4_28",yL="_evTempoLabel_148t4_30",bL="_evLaneName_148t4_31",xL="_evLaneWrap_148t4_35",SL="_evLaneEmpty_148t4_38",kL="_evSel_148t4_39",wL="_evSelWas_148t4_40",jL="_evCur_148t4_41",NL="_evCurWas_148t4_42",TL="_evQuiet_148t4_46",EL="_evSpan_148t4_53",$L="_evItemGain_148t4_57",RL="_zoomBar_148t4_60",Pe={evTimeline:sL,evLane:lL,evLaneMarkers:aL,evLaneContext:oL,evMarker:iL,evNew:rL,evGone:cL,evLaneRegions:uL,evRegion:dL,evLaneItems:fL,evItem:mL,evItemMidi:hL,evItemMuted:pL,evFadeIn:vL,evFadeOut:gL,evTempo:_L,evTempoLabel:yL,evLaneName:bL,evLaneWrap:xL,evLaneEmpty:SL,evSel:kL,evSelWas:wL,evCur:jL,evCurWas:NL,evQuiet:TL,evSpan:EL,evItemGain:$L,zoomBar:RL},CL="_evPlan_1feb6_1",ML="_evOpN_1feb6_4",AL="_evOp_1feb6_4",LL="_evOpWhat_1feb6_6",Mr={evPlan:CL,evOpN:ML,evOp:AL,evOpWhat:LL},OL="_evChain_jd7kb_2",DL={evChain:OL},zL=(t,e)=>t[0]===e[0]&&t[1]===e[1]&&t[3]===e[3];function BL(t){const e=fe.c(33),{v:n}=t;let s,l,a,i;e[0]!==n.chains?(l=n.chains.map(YL),s=l.reduce(PL,0),a=l.reduce(FL,0),i=l.reduce(GL,0),e[0]=n.chains,e[1]=s,e[2]=l,e[3]=a,e[4]=i):(s=e[1],l=e[2],a=e[3],i=e[4]);const r=i+a;let c;e[5]!==n.chains?(c=n.chains.some(VL),e[5]=n.chains,e[6]=c):c=e[6];const u=c;let d;if(e[7]!==s||e[8]!==a||e[9]!==r||e[10]!==n.chains||e[11]!==u){const g=n.chains.flatMap(HL),y=n.chains.length>1?"Tracks":"Track";let b;e[13]!==n.chains?(b=n.chains.map(UL).join(" → "),e[13]=n.chains,e[14]=b):b=e[14];let p;e[15]!==y||e[16]!==b?(p=o.jsx(Ue.Readout,{label:y,value:b}),e[15]=y,e[16]=b,e[17]=p):p=e[17];const v=String(g.length);let _;e[18]!==v?(_=o.jsx(Ue.Readout,{label:"Plugins",value:v}),e[18]=v,e[19]=_):_=e[19],d=o.jsxs("div",{className:B.measureReadouts,children:[p,_,u?o.jsx(Fu,{added:s,removed:a,changed:r}):o.jsx(Ue.Readout,{label:"Bypassed",value:String(g.filter(IL).length)})]}),e[7]=s,e[8]=a,e[9]=r,e[10]=n.chains,e[11]=u,e[12]=d}else d=e[12];let m;if(e[20]!==l||e[21]!==n.chains){let g;e[23]!==l||e[24]!==n.chains.length?(g=(y,b)=>o.jsx(KL,{chain:y,diff:l[b],named:n.chains.length>1},b),e[23]=l,e[24]=n.chains.length,e[25]=g):g=e[25],m=n.chains.map(g),e[20]=l,e[21]=n.chains,e[22]=m}else m=e[22];let f;e[26]!==r||e[27]!==u?(f=u&&r===0&&o.jsx("div",{className:B.evMore,children:"Nothing in the chain changed"}),e[26]=r,e[27]=u,e[28]=f):f=e[28];let h;return e[29]!==d||e[30]!==m||e[31]!==f?(h=o.jsxs(o.Fragment,{children:[d,m,f]}),e[29]=d,e[30]=m,e[31]=f,e[32]=h):h=e[32],h}function IL(t){return t[1].includes("B")}function UL(t){return t.t}function HL(t){return t.fx}function VL(t){return t.was}function GL(t,e){return t+e.change.size}function FL(t,e){return t+e.removed.length}function PL(t,e){return t+[...e.change.values()].filter(qL).length}function qL(t){return t==="new"}function YL(t){return gv(t.fx,t.was,XL,zL)}function XL(t,e){return t[2]||`${e}:${t[0]}`}function KL(t){const e=fe.c(22),{chain:n,diff:s,named:l}=t;let a;e[0]!==n.t||e[1]!==l?(a=l&&o.jsx("div",{className:Pe.evLaneName,children:n.t}),e[0]=n.t,e[1]=l,e[2]=a):a=e[2];let i;e[3]!==n.fx.length||e[4]!==s.removed.length?(i=n.fx.length===0&&s.removed.length===0&&o.jsx("div",{className:B.evMore,children:"No plugins on this track"}),e[3]=n.fx.length,e[4]=s.removed.length,e[5]=i):i=e[5];let r;if(e[6]!==n.fx||e[7]!==n.was||e[8]!==s.change){let m;e[10]!==n.was||e[11]!==s.change?(m=(f,h)=>{const g=s.change.get(h),y=n.was?.find(b=>b[2]&&b[2]===f[2]);return o.jsxs("li",{className:K(Fe.evSlot,f[1].includes("B")&&Fe.evSlotBypassed,f[1].includes("O")&&Fe.evSlotOffline),"data-change":g,title:[f[0],f[3]&&`preset ${f[3]}`,y&&y[0]!==f[0]&&`was ${y[0]}`].filter(Boolean).join(" · "),children:[o.jsx("span",{className:K(Mr.evOpN,"mono"),children:h+1}),o.jsxs("span",{className:Fe.evSlotName,children:[wu(f[0]),f[3]&&o.jsx("small",{children:f[3]})]}),o.jsxs("span",{className:Fe.evSlotState,children:[f[1].includes("O")?"offline":f[1].includes("B")?"bypassed":"",o.jsx(Cm,{c:g})]})]},`${f[2]}${h}`)},e[10]=n.was,e[11]=s.change,e[12]=m):m=e[12],r=n.fx.map(m),e[6]=n.fx,e[7]=n.was,e[8]=s.change,e[9]=r}else r=e[9];let c;e[13]!==s.removed?(c=s.removed.map(QL),e[13]=s.removed,e[14]=c):c=e[14];let u;e[15]!==r||e[16]!==c?(u=o.jsxs("ol",{className:Fe.evSlots,children:[r,c]}),e[15]=r,e[16]=c,e[17]=u):u=e[17];let d;return e[18]!==a||e[19]!==i||e[20]!==u?(d=o.jsxs("div",{className:DL.evChain,children:[a,i,u]}),e[18]=a,e[19]=i,e[20]=u,e[21]=d):d=e[21],d}function QL(t){const[e,n]=t;return o.jsxs("li",{className:Fe.evSlot,"data-change":"gone",title:`Removed: ${n[0]}`,children:[o.jsx("span",{className:K(Mr.evOpN,"mono"),children:e+1}),o.jsx("span",{className:Fe.evSlotName,children:wu(n[0])}),o.jsx("span",{className:Fe.evSlotState,children:o.jsx("span",{className:Fe.evMark,"data-change":"gone",children:"removed"})})]},`gone${n[2]}${e}`)}const ZL="_evHist_1ensh_1",WL="_lgHist_1ensh_3",M_={evHist:ZL,lgHist:WL};function JL(t){const e=fe.c(36),{v:n}=t;let s;e[0]!==n.pitches?(s=n.pitches.filter(nO),e[0]=n.pitches,e[1]=s):s=e[1];const l=s.length;let a;e[2]!==n.hist?(a=n.hist??[],e[2]=n.hist,e[3]=a):a=e[3];const i=Math.max(1,...a);let r;e[4]!==n.pitches||e[5]!==n.total?(r=n.total??n.pitches.reduce(tO,0),e[4]=n.pitches,e[5]=n.total,e[6]=r):r=e[6];const c=String(r);let u;e[7]!==c?(u=o.jsx(Ue.Readout,{label:"Notes",value:c}),e[7]=c,e[8]=u):u=e[8];const d=String(n.pitches.length);let m;e[9]!==d?(m=o.jsx(Ue.Readout,{label:"Pitches",value:d}),e[9]=d,e[10]=m):m=e[10];const f=l?`${l} ${l===1?"pitch":"pitches"}`:"none",h=l?"hot":"ok",g=l?"":void 0;let y;e[11]!==g||e[12]!==f||e[13]!==h?(y=o.jsx(Ue.Readout,{label:"Machine gun",value:f,zone:h,word:g}),e[11]=g,e[12]=f,e[13]=h,e[14]=y):y=e[14];let b;e[15]!==y||e[16]!==u||e[17]!==m?(b=o.jsxs("div",{className:B.measureReadouts,children:[u,m,y]}),e[15]=y,e[16]=u,e[17]=m,e[18]=b):b=e[18];let p;e[19]!==n.pitches?(p=n.pitches.map(eO),e[19]=n.pitches,e[20]=p):p=e[20];let v;e[21]!==p?(v=o.jsx("div",{className:B.evRows,children:p}),e[21]=p,e[22]=v):v=e[22];let _;e[23]===Symbol.for("react.memo_cache_sentinel")?(_=o.jsxs("div",{className:K(B.measureScaleWords,"mono"),children:[o.jsx("span",{children:"velocity 1"}),o.jsx("span",{children:"64"}),o.jsx("span",{children:"127"})]}),e[23]=_):_=e[23];let x;e[24]!==i||e[25]!==n.hist?(x=n.hist&&n.hist.length>1&&o.jsx("div",{className:M_.evHist,role:"img","aria-label":"Velocity histogram, 1 to 127",children:n.hist.map((N,E)=>o.jsx("span",{style:{height:`${N/i*100}%`},title:`${E*10}–${Math.min(127,E*10+9)}: ${N}`},E))}),e[24]=i,e[25]=n.hist,e[26]=x):x=e[26];let k,w;e[27]===Symbol.for("react.memo_cache_sentinel")?(k=[B.lgRange,"Velocity range"],w=[B.lgTick,"Average"],e[27]=k,e[28]=w):(k=e[27],w=e[28]);let R;e[29]!==n.hist?(R=o.jsx(gs,{items:[k,w,...n.hist&&n.hist.length>1?[[M_.lgHist,"Notes per velocity"]]:[]]}),e[29]=n.hist,e[30]=R):R=e[30];let j;return e[31]!==b||e[32]!==v||e[33]!==x||e[34]!==R?(j=o.jsxs(o.Fragment,{children:[b,v,_,x,R]}),e[31]=b,e[32]=v,e[33]=x,e[34]=R,e[35]=j):j=e[35],j}function eO(t){const[e,n,s,l,a,i]=t;return o.jsxs("div",{className:K(B.evRow,i?B.evHot:""),children:[o.jsxs("span",{className:B.evName,children:[mr(e),o.jsx("small",{children:e})]}),o.jsxs("span",{className:K(B.evVal,"mono"),children:["×",n," · ",s===l?s:`${s}–${l}`,i>0&&o.jsxs("span",{className:B.evWord,title:`${i} notes in a row at one velocity`,children:[" ","· ",i," in a row"]})]}),o.jsxs("span",{className:B.evBar,role:"img","aria-label":`${mr(e)} velocity ${s} to ${l}, average ${Math.round(a)}`,children:[o.jsx("span",{className:B.evFill,style:{left:`${Jt(s,1,127)}%`,width:`max(3px, ${Jt(l,1,127)-Jt(s,1,127)}%)`}}),o.jsx("span",{className:B.evTick,style:{left:`${Jt(a,1,127)}%`}})]})]},e)}function tO(t,e){return t+e[1]}function nO(t){return t[5]>0}function $0(t){const e=fe.c(79),{row:n,master:s,c:l,gone:a}=t,[i,r,c,u,d,m]=n,f=u>0,h=m.includes("F");let g;e[0]!==m?(g=[["M","muted"],["S","soloed"],["R","armed"]].filter(Ne=>{const[Te]=Ne;return m.includes(Te)}).map(sO),e[0]=m,e[1]=g):g=e[1];const y=g,b=s&&Fe.evTrkMaster;let p;e[2]!==m||e[3]!==b?(p=K(Fe.evTrk,b,m.includes("M")&&Fe.evTrkMuted),e[2]=m,e[3]=b,e[4]=p):p=e[4];const v=a?"gone":l;let _;e[5]!==u?(_=be(u),e[5]=u,e[6]=_):_=e[6];let x;e[7]!==d?(x=Cr(d),e[7]=d,e[8]=x):x=e[8];const k=`${i} · ${_} dB · pan ${x}${a?" · removed":l?` · ${Rm[l]}`:""}`,w=s?"var(--line-2)":c||"var(--line-2)";let R;e[9]!==w?(R=o.jsx("span",{className:Fe.evSw,style:{background:w}}),e[9]=w,e[10]=R):R=e[10];const j=h?Fe.evTnFolder:"";let N;e[11]!==j?(N=K(Fe.evTn,j),e[11]=j,e[12]=N):N=e[12];const E=`${Math.min(r,4)*12}px`;let C;e[13]!==E?(C={paddingLeft:E},e[13]=E,e[14]=C):C=e[14];const O=h?"▾ ":"";let M;e[15]!==i||e[16]!==O?(M=o.jsxs("span",{className:Fe.evTnText,children:[O,i]}),e[15]=i,e[16]=O,e[17]=M):M=e[17];let A;e[18]!==l||e[19]!==a?(A=a?o.jsx("span",{className:Fe.evMark,"data-change":"gone",children:"removed"}):o.jsx(Cm,{c:l}),e[18]=l,e[19]=a,e[20]=A):A=e[20];let T;e[21]!==N||e[22]!==C||e[23]!==M||e[24]!==A?(T=o.jsxs("span",{className:N,style:C,children:[M,A]}),e[21]=N,e[22]=C,e[23]=M,e[24]=A,e[25]=T):T=e[25];let S;e[26]===Symbol.for("react.memo_cache_sentinel")?(S=K(B.evBar,Fe.evFader),e[26]=S):S=e[26];let $;e[27]!==u?($=be(u),e[27]=u,e[28]=$):$=e[28];const L=`${i} ${$} dB`;let z;e[29]!==u?(z=be(u),e[29]=u,e[30]=z):z=e[30];const D=`Volume ${z} dB`;let U;e[31]===Symbol.for("react.memo_cache_sentinel")?(U=o.jsx("span",{className:B.evZero,style:{left:`${Jt(0,-60,6)}%`}}),e[31]=U):U=e[31];const I=f?Fe.evFillHot:"";let F;e[32]!==I?(F=K(B.evFill,I),e[32]=I,e[33]=F):F=e[33];let P;e[34]!==u?(P=Jt(u,-60,6),e[34]=u,e[35]=P):P=e[35];const X=`${P}%`;let Y;e[36]!==X?(Y={left:0,width:X},e[36]=X,e[37]=Y):Y=e[37];let Z;e[38]!==F||e[39]!==Y?(Z=o.jsx("span",{className:F,style:Y}),e[38]=F,e[39]=Y,e[40]=Z):Z=e[40];let V;e[41]!==L||e[42]!==D||e[43]!==Z?(V=o.jsxs(Qn,{className:S,role:"img","aria-label":L,tip:D,children:[U,Z]}),e[41]=L,e[42]=D,e[43]=Z,e[44]=V):V=e[44];let H;e[45]===Symbol.for("react.memo_cache_sentinel")?(H=K(Fe.evTv,"mono"),e[45]=H):H=e[45];const W=f?"hot":"ok";let J;e[46]!==u?(J=be(u),e[46]=u,e[47]=J):J=e[47];let ce;e[48]!==W||e[49]!==J?(ce=o.jsx("span",{className:H,"data-zone":W,children:J}),e[48]=W,e[49]=J,e[50]=ce):ce=e[50];let ee;e[51]!==d?(ee=Cr(d),e[51]=d,e[52]=ee):ee=e[52];const he=`pan ${ee}`;let pe;e[53]!==d?(pe=ju(d),e[53]=d,e[54]=pe):pe=e[54];const G=`Pan ${pe}`;let ae;e[55]===Symbol.for("react.memo_cache_sentinel")?(ae=o.jsx("span",{className:Fe.evPanC}),e[55]=ae):ae=e[55];let oe;e[56]!==d?(oe=Jt(d,-1,1),e[56]=d,e[57]=oe):oe=e[57];const ye=`${oe}%`;let _e;e[58]!==ye?(_e=o.jsx("span",{className:Fe.evPanD,style:{left:ye}}),e[58]=ye,e[59]=_e):_e=e[59];let ne;e[60]!==he||e[61]!==G||e[62]!==_e?(ne=o.jsxs(Qn,{className:Fe.evPan,role:"img","aria-label":he,tip:G,children:[ae,_e]}),e[60]=he,e[61]=G,e[62]=_e,e[63]=ne):ne=e[63];const te=y.length?y.join(", "):void 0;let ie;e[64]!==m?(ie=["M","S","R"].map(Ne=>o.jsx("span",{className:Fe.evChip,"data-chip":m.includes(Ne)?Ne.toLowerCase():void 0,children:Ne},Ne)),e[64]=m,e[65]=ie):ie=e[65];let de;e[66]!==te||e[67]!==ie?(de=o.jsx("span",{className:Fe.evChips,"aria-label":te,children:ie}),e[66]=te,e[67]=ie,e[68]=de):de=e[68];let xe;return e[69]!==T||e[70]!==p||e[71]!==V||e[72]!==ce||e[73]!==v||e[74]!==ne||e[75]!==de||e[76]!==k||e[77]!==R?(xe=o.jsxs("div",{className:p,"data-change":v,title:k,children:[R,T,V,ce,ne,de]}),e[69]=T,e[70]=p,e[71]=V,e[72]=ce,e[73]=v,e[74]=ne,e[75]=de,e[76]=k,e[77]=R,e[78]=xe):xe=e[78],xe}function sO(t){const[,e]=t;return e}const lO={M:"muted",S:"soloed",R:"armed"};function J5(t){const e=fe.c(3),{flags:n}=t;let s,l;if(e[0]!==n){l=Symbol.for("react.early_return_sentinel");e:{const a=["M","S","R"].filter(i=>n.some(r=>r.includes(i)));if(!a.length){l=null;break e}s=o.jsx("div",{className:B.measureLegend,children:a.map(aO)})}e[0]=n,e[1]=s,e[2]=l}else s=e[1],l=e[2];return l!==Symbol.for("react.early_return_sentinel")?l:s}function aO(t){return o.jsxs("span",{children:[o.jsx("span",{className:Fe.evChip,"data-chip":t.toLowerCase(),children:t})," ",lO[t]]},t)}function oO(t){const e=fe.c(43),{v:n}=t,s=n.ids&&n.was?n.was:void 0;let l;e[0]!==n.ids?(l=n.ids??[],e[0]=n.ids,e[1]=l):l=e[1];const a=l;let i,r,c,u,d,m;if(e[2]!==a||e[3]!==n.from||e[4]!==n.total||e[5]!==n.tracks||e[6]!==s){let _;e[13]!==a?(_=(k,w)=>[a[w]??"",k],e[13]=a,e[14]=_):_=e[14],i=gv(n.tracks.map(_),s?.tracks.map((k,w)=>[s.ids[w]??"",k]),dO,uO);const x=[...i.change.values()].filter(cO).length;d=s&&o.jsxs("div",{className:B.measureReadouts,children:[o.jsx(Ue.Readout,{label:"Tracks",value:String(n.total)}),o.jsx(Fu,{added:x,removed:i.removed.length,changed:i.change.size})]}),e[15]!==n.from?(m=(n.from??0)>0&&o.jsxs("div",{className:B.evMore,children:[ca(n.from??0,"track")," above"]}),e[15]=n.from,e[16]=m):m=e[16],r=Fe.evMix,c=n.tracks.map((k,w)=>o.jsx($0,{row:k,c:i.change.get(w)},a[w]??w)),u=i.removed.map(rO),e[2]=a,e[3]=n.from,e[4]=n.total,e[5]=n.tracks,e[6]=s,e[7]=i,e[8]=r,e[9]=c,e[10]=u,e[11]=d,e[12]=m}else i=e[7],r=e[8],c=e[9],u=e[10],d=e[11],m=e[12];let f;e[17]!==n.master?(f=n.master&&o.jsx($0,{row:n.master,master:!0}),e[17]=n.master,e[18]=f):f=e[18];let h;e[19]!==r||e[20]!==c||e[21]!==u||e[22]!==f?(h=o.jsxs("div",{className:r,children:[c,u,f]}),e[19]=r,e[20]=c,e[21]=u,e[22]=f,e[23]=h):h=e[23];let g;e[24]!==i||e[25]!==s?(g=s&&o.jsx(Z5,{change:i.change,removed:i.removed.length}),e[24]=i,e[25]=s,e[26]=g):g=e[26];let y;e[27]!==n.master?(y=n.master?[n.master]:[],e[27]=n.master,e[28]=y):y=e[28];let b;e[29]!==y||e[30]!==n.tracks?(b=o.jsx(J5,{flags:[...n.tracks,...y].map(iO)}),e[29]=y,e[30]=n.tracks,e[31]=b):b=e[31];let p;e[32]!==n.from||e[33]!==n.total||e[34]!==n.tracks.length?(p=n.total>(n.from??0)+n.tracks.length&&o.jsxs("div",{className:B.evMore,children:["+",n.total-(n.from??0)-n.tracks.length," more tracks not drawn"]}),e[32]=n.from,e[33]=n.total,e[34]=n.tracks.length,e[35]=p):p=e[35];let v;return e[36]!==b||e[37]!==p||e[38]!==d||e[39]!==m||e[40]!==h||e[41]!==g?(v=o.jsxs(o.Fragment,{children:[d,m,h,g,b,p]}),e[36]=b,e[37]=p,e[38]=d,e[39]=m,e[40]=h,e[41]=g,e[42]=v):v=e[42],v}function iO(t){return t[5]}function rO(t){const[e,n]=t;return o.jsx($0,{row:n[1],gone:!0},`gone${e}`)}function cO(t){return t==="new"}function uO(t,e){return JSON.stringify(t[1])===JSON.stringify(e[1])}function dO(t){return t[0]}function fO(t){const e=fe.c(21),{v:n}=t,s=String(n.total);let l;e[0]!==s?(l=o.jsx(Ue.Readout,{label:"Steps",value:s}),e[0]=s,e[1]=l):l=e[1];const a=n.dryRun?"Dry run":"Applied";let i;e[2]!==a?(i=o.jsx(Ue.Readout,{label:"Result",value:a}),e[2]=a,e[3]=i):i=e[3];let r;e[4]!==l||e[5]!==i?(r=o.jsxs("div",{className:B.measureReadouts,children:[l,i]}),e[4]=l,e[5]=i,e[6]=r):r=e[6];let c;e[7]!==n.ops?(c=n.ops.map(mO),e[7]=n.ops,e[8]=c):c=e[8];let u;e[9]!==c?(u=o.jsx("ol",{className:Mr.evPlan,children:c}),e[9]=c,e[10]=u):u=e[10];let d;e[11]!==n.ops.length||e[12]!==n.total?(d=n.total>n.ops.length&&o.jsxs("div",{className:B.evMore,children:["+",n.total-n.ops.length," more steps not listed"]}),e[11]=n.ops.length,e[12]=n.total,e[13]=d):d=e[13];let m;e[14]!==n.dryRun?(m=n.dryRun&&o.jsx("div",{className:B.evMore,children:"A dry run: checked, nothing written."}),e[14]=n.dryRun,e[15]=m):m=e[15];let f;return e[16]!==r||e[17]!==u||e[18]!==d||e[19]!==m?(f=o.jsxs(o.Fragment,{children:[r,u,d,m]}),e[16]=r,e[17]=u,e[18]=d,e[19]=m,e[20]=f):f=e[20],f}function mO(t,e){const[n,s]=t;return o.jsxs("li",{children:[o.jsx("span",{className:K(Mr.evOpN,"mono"),children:e+1}),o.jsx("span",{className:K(Mr.evOp,"mono"),children:n}),o.jsx("span",{className:Mr.evOpWhat,title:s,children:s})]},e)}const hO="_lanes_1ghxo_2",pO="_lane_1ghxo_2",vO="_name_1ghxo_4",gO="_on_1ghxo_5",_O="_gone_1ghxo_6",yO="_play_1ghxo_7",bO="_changed_1ghxo_10",xO="_item_1ghxo_11",SO="_axisRow_1ghxo_13",kO="_axis_1ghxo_13",wO="_lgPlays_1ghxo_18",jO="_lgLayered_1ghxo_18",NO="_lgSilent_1ghxo_18",TO="_lgComp_1ghxo_21",fs={lanes:hO,lane:pO,name:vO,on:gO,gone:_O,play:yO,changed:bO,item:xO,axisRow:SO,axis:kO,lgPlays:wO,lgLayered:jO,lgSilent:NO,lgComp:TO},A_=t=>`var(--h${t%6})`,L_=["silent","plays","plays (layered)"];function EO(t){const e=fe.c(94),{v:n}=t;let s;e[0]!==n.was?.items?(s=n.was?.items??[],e[0]=n.was?.items,e[1]=s):s=e[1];let l;if(e[2]!==s||e[3]!==n.items){const I=[...n.items,...s];l=I.length?Math.min(...I.map(DO)):0,e[2]=s,e[3]=n.items,e[4]=l}else l=e[4];const a=l,i=Math.max(n.len,a+1);let r;e[5]!==a||e[6]!==i?(r=I=>`${Jt(I,a,i)}%`,e[5]=a,e[6]=i,e[7]=r):r=e[7];const c=r;let u;e[8]!==a||e[9]!==i?(u=(I,F)=>`calc(${Jt(I+F,a,i)-Jt(I,a,i)}% - 1px)`,e[8]=a,e[9]=i,e[10]=u):u=e[10];const d=u;let m;e[11]!==n.segs?(m=I=>n.segs?.find(F=>Math.abs(F[0]-I)<.011),e[11]=n.segs,e[12]=m):m=e[12];const f=m;let h,g,y,b,p;if(e[13]!==c||e[14]!==f||e[15]!==n.comp||e[16]!==n.fixed||e[17]!==n.items||e[18]!==n.lanes||e[19]!==n.more||e[20]!==n.t||e[21]!==n.was||e[22]!==d){const I=n.lanes.map(OO).filter(LO),F=n.was?.lanes,P=AO;let X;e[28]!==n.items?(X=ae=>!n.items.some(oe=>P(oe,ae)),e[28]=n.items,e[29]=X):X=e[29],g=(n.was?.items??[]).filter(X);let Y;e[30]!==n.was?(Y=ae=>n.was!==void 0&&!n.was.items.some(oe=>P(oe,ae)),e[30]=n.was,e[31]=Y):Y=e[31],h=Y;const Z=MO,V=Math.max(n.lanes.length,F?.length??0);let H;e[32]!==n.t?(H=o.jsx(Ue.Readout,{label:"Track",value:n.t}),e[32]=n.t,e[33]=H):H=e[33];const W=n.fixed?String(n.lanes.length+(n.more??0)):"off",J=n.was&&n.was.fixed!==n.fixed?n.fixed?"turned on":"turned off":"";let ce;e[34]!==W||e[35]!==J?(ce=o.jsx(Ue.Readout,{label:"Lanes",value:W,word:J}),e[34]=W,e[35]=J,e[36]=ce):ce=e[36];const ee=I.length===0?"–":I.length===1?Z(I[0][0],I[0][1]):`${I.length} lanes`,he=I.length>1?"layered":"",pe=I.map(ae=>{const[oe,ye]=ae;return Z(oe,ye)}).join(" + ")||void 0;let G;e[37]!==ee||e[38]!==he||e[39]!==pe?(G=o.jsx(Ue.Readout,{label:"Playing",value:ee,word:he,title:pe}),e[37]=ee,e[38]=he,e[39]=pe,e[40]=G):G=e[40],e[41]!==H||e[42]!==ce||e[43]!==G?(p=o.jsxs("div",{className:B.measureReadouts,children:[H,ce,G]}),e[41]=H,e[42]=ce,e[43]=G,e[44]=p):p=e[44],y=fs.lanes,b=Array.from({length:V},(ae,oe)=>{const ye=n.lanes[oe],_e=F?.[oe],ne=ye?.[1]??0,te=_e!==void 0&&ye!==void 0&&_e[1]!==ne,ie=n.comp===oe;return o.jsxs("div",{className:K(fs.lane,!!ne&&fs.on,!ye&&fs.gone),children:[o.jsxs("span",{className:fs.name,style:{"--hue":A_(oe)},title:`${Z(ye??_e,oe)} · ${L_[ne]}${te?` (was ${L_[_e[1]]})`:""}`,children:[o.jsx("i",{className:K(fs.play,te&&fs.changed),"data-plays":ne,"aria-hidden":!0}),o.jsx("span",{className:Fe.evTnText,children:Z(ye??_e,oe)}),ie&&o.jsx(Cm,{c:"new"})]}),o.jsxs("span",{className:K(Pe.evLane,Pe.evLaneItems),children:[g.filter(de=>de[2]===oe).map((de,xe)=>o.jsx("span",{className:K(Pe.evItem,Pe.evGone),style:{left:c(de[0]),width:d(de[0],de[1])},title:`Before · ${Ge(de[0],1)}–${Ge(de[0]+de[1],1)}`},`g${xe}`)),n.items.filter(de=>de[2]===oe).map((de,xe)=>{const Ne=ie?f(de[0]):void 0,Te=A_(Ne?Ne[2]:oe);return o.jsx("span",{className:K(Pe.evItem,fs.item,!!de[3]&&Pe.evItemMidi,h(de)&&!ie&&Pe.evNew),style:{left:c(de[0]),width:d(de[0],de[1]),"--hue":Te},title:`${Ne?`From ${Z(n.lanes[Ne[2]],Ne[2])} · `:""}${Ge(de[0],1)}–${Ge(de[0]+de[1],1)}`},xe)})]})]},oe)}),e[13]=c,e[14]=f,e[15]=n.comp,e[16]=n.fixed,e[17]=n.items,e[18]=n.lanes,e[19]=n.more,e[20]=n.t,e[21]=n.was,e[22]=d,e[23]=h,e[24]=g,e[25]=y,e[26]=b,e[27]=p}else h=e[23],g=e[24],y=e[25],b=e[26],p=e[27];let v;e[45]===Symbol.for("react.memo_cache_sentinel")?(v=K(fs.lane,fs.axisRow),e[45]=v):v=e[45];let _,x;e[46]===Symbol.for("react.memo_cache_sentinel")?(_=o.jsx("span",{}),x=K(fs.axis,"mono"),e[46]=_,e[47]=x):(_=e[46],x=e[47]);let k;e[48]!==a?(k=Ge(a),e[48]=a,e[49]=k):k=e[49];let w;e[50]!==k?(w=o.jsx("span",{children:k}),e[50]=k,e[51]=w):w=e[51];let R;e[52]!==i?(R=Ge(i),e[52]=i,e[53]=R):R=e[53];let j;e[54]!==R?(j=o.jsx("span",{children:R}),e[54]=R,e[55]=j):j=e[55];let N;e[56]!==w||e[57]!==j?(N=o.jsxs("div",{className:v,"aria-hidden":!0,children:[_,o.jsxs("span",{className:x,children:[w,j]})]}),e[56]=w,e[57]=j,e[58]=N):N=e[58];let E;e[59]!==N||e[60]!==y||e[61]!==b?(E=o.jsxs("div",{className:y,children:[b,N]}),e[59]=N,e[60]=y,e[61]=b,e[62]=E):E=e[62];let C;e[63]!==n.more?(C=n.more!==void 0&&n.more>0&&o.jsxs("div",{className:B.evMore,children:["+",ca(n.more,"more lane")," not drawn"]}),e[63]=n.more,e[64]=C):C=e[64];let O,M,A;e[65]!==n.lanes?(O=n.lanes.some(CO)?[[fs.lgPlays,"Plays"]]:[],M=n.lanes.some(RO)?[[fs.lgLayered,"Plays layered"]]:[],A=n.lanes.some($O)?[[fs.lgSilent,"Silent"]]:[],e[65]=n.lanes,e[66]=O,e[67]=M,e[68]=A):(O=e[66],M=e[67],A=e[68]);let T;e[69]!==n.comp||e[70]!==n.segs?.length?(T=n.comp!==void 0&&n.segs?.length?[[fs.lgComp,"Comp part, in the colour of its lane"]]:[],e[69]=n.comp,e[70]=n.segs?.length,e[71]=T):T=e[71];let S;e[72]!==g||e[73]!==n.was?(S=n.was&&g.length>0?[[B.lgGoneMark,"Before"]]:[],e[72]=g,e[73]=n.was,e[74]=S):S=e[74];let $;e[75]!==h||e[76]!==n.comp||e[77]!==n.items||e[78]!==n.was?($=n.was&&n.comp===void 0&&n.items.some(h)?[[B.lgNewMark,"Added"]]:[],e[75]=h,e[76]=n.comp,e[77]=n.items,e[78]=n.was,e[79]=$):$=e[79];let L;e[80]!==O||e[81]!==M||e[82]!==A||e[83]!==T||e[84]!==S||e[85]!==$?(L=[...O,...M,...A,...T,...S,...$],e[80]=O,e[81]=M,e[82]=A,e[83]=T,e[84]=S,e[85]=$,e[86]=L):L=e[86];const z=L;let D;e[87]!==z?(D=o.jsx(gs,{items:z}),e[87]=z,e[88]=D):D=e[88];let U;return e[89]!==E||e[90]!==C||e[91]!==D||e[92]!==p?(U=o.jsxs(o.Fragment,{children:[p,E,C,D]}),e[89]=E,e[90]=C,e[91]=D,e[92]=p,e[93]=U):U=e[93],U}function $O(t){return!t[1]}function RO(t){return t[1]===2}function CO(t){return t[1]===1}function MO(t,e){return t&&t[0]||`Lane ${e+1}`}function AO(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function LO(t){const[e]=t;return e[1]>0}function OO(t,e){return[t,e]}function DO(t){return t[0]}const zO="_rec_19eeb_2",BO="_off_19eeb_4",IO="_name_19eeb_4",UO="_arm_19eeb_5",HO="_on_19eeb_6",VO="_field_19eeb_7",GO="_input_19eeb_8",FO="_changed_19eeb_9",PO="_now_19eeb_10",qO="_was_19eeb_10",YO="_mode_19eeb_18",XO="_lgArmed_19eeb_20",KO="_lgUnarmed_19eeb_21",ks={rec:zO,off:BO,name:IO,arm:UO,on:HO,field:VO,input:GO,changed:FO,now:PO,was:qO,mode:YO,lgArmed:XO,lgUnarmed:KO},O_={normal:"Normal",time_selection:"Punch in time",selected_items:"Punch on items"},D_={time_selection:"time selection",selected_items:"selected items"},e6={input:"input",none:"monitor only",stereo_out:"output (stereo)",stereo_out_latency:"output (stereo, latency compensated)",mono_out:"output (mono)",mono_out_latency:"output (mono, latency compensated)",midi_out:"MIDI output",midi_overdub:"MIDI overdub",midi_replace:"MIDI replace",midi_touch_replace:"MIDI touch-replace",midi_latch_replace:"MIDI latch-replace",multichannel_out:"output (multichannel)",multichannel_out_latency:"output (multichannel, latency compensated)",input_mono:"input (mono)",input_stereo:"input (stereo)",input_multichannel:"input (multichannel)",input_midi:"input (MIDI)"},bd=t=>t?`${Ge(t[0])}–${Ge(t[1])}`:"–";function QO(t){const e=fe.c(47),{v:n}=t,s=n.was;let l;e[0]!==s?(l=(g,y)=>s!==void 0&&g!==y,e[0]=s,e[1]=l):l=e[1];const a=l;let i,r,c,u;if(e[2]!==a||e[3]!==n.mode||e[4]!==n.path||e[5]!==n.punch||e[6]!==n.rows||e[7]!==s){const g=new Map((s?.rows??[]).map(JO)),y=(A,T)=>s?.rows?.[T]?.[0]===A[0]?s.rows[T]:g.get(A[0]),b=a(s?.mode,n.mode);let p;e[12]!==n.punch||e[13]!==s?(p=s!==void 0&&bd(s.punch)!==bd(n.punch),e[12]=n.punch,e[13]=s,e[14]=p):p=e[14];const v=p,_=a(s?.path,n.path);r=n.rows??[],i=r.some((A,T)=>{const S=y(A,T);return S&&S.some(($,L)=>$!==A[L])});const x=D_[n.mode]&&`Auto-punch on the ${D_[n.mode]}`,k=b&&s&&`Was ${O_[s.mode]??s.mode}`;let w;e[15]!==x||e[16]!==k?(w=[x,k].filter(Boolean),e[15]=x,e[16]=k,e[17]=w):w=e[17];const R=w,j=R.length?R.join(" · "):void 0,N=O_[n.mode]??n.mode,E=b?"new":"";let C;e[18]!==j||e[19]!==N||e[20]!==E?(C=o.jsx(Ue.Readout,{label:"Record mode",value:N,word:E,title:j}),e[18]=j,e[19]=N,e[20]=E,e[21]=C):C=e[21];let O;e[22]!==v||e[23]!==n.mode||e[24]!==n.punch||e[25]!==s?.punch?(O=(n.mode==="time_selection"||n.punch)&&o.jsx(Ue.Readout,{label:"Punch",value:bd(n.punch),word:v?"new":n.punch?"":"none",zone:n.punch?"ok":"hot",title:v?`Was ${bd(s?.punch)}`:n.punch?void 0:"No time selection: nothing records"}),e[22]=v,e[23]=n.mode,e[24]=n.punch,e[25]=s?.punch,e[26]=O):O=e[26];let M;e[27]!==_||e[28]!==n.path||e[29]!==s?.path?(M=n.path!==void 0&&o.jsx(Ue.Readout,{label:"Record path",value:n.path||"project folder",word:_?"new":"",title:_?`Was ${s?.path||"project folder"}`:void 0}),e[27]=_,e[28]=n.path,e[29]=s?.path,e[30]=M):M=e[30],e[31]!==C||e[32]!==O||e[33]!==M?(c=o.jsxs("div",{className:B.measureReadouts,children:[C,O,M]}),e[31]=C,e[32]=O,e[33]=M,e[34]=c):c=e[34],u=n.rows&&(r.length===0?o.jsx("div",{className:B.evMore,children:"No armed tracks"}):o.jsx("div",{className:Fe.evMix,children:r.map((A,T)=>o.jsx(eD,{r:A,was:y(A,T)},T))})),e[2]=a,e[3]=n.mode,e[4]=n.path,e[5]=n.punch,e[6]=n.rows,e[7]=s,e[8]=i,e[9]=r,e[10]=c,e[11]=u}else i=e[8],r=e[9],c=e[10],u=e[11];let d;e[35]!==n.more?(d=n.more!==void 0&&n.more>0&&o.jsxs("div",{className:B.evMore,children:["+",ca(n.more,"more track")," not drawn"]}),e[35]=n.more,e[36]=d):d=e[36];let m;e[37]!==r?(m=r.length>0&&o.jsx(gs,{items:[...r.some(WO)?[[ks.lgArmed,"Armed"]]:[],...r.some(ZO)?[[ks.lgUnarmed,"Not armed"]]:[]]}),e[37]=r,e[38]=m):m=e[38];let f;e[39]!==i?(f=i&&o.jsx("div",{className:B.evMore,children:"Changed values are underlined, with what they were beneath"}),e[39]=i,e[40]=f):f=e[40];let h;return e[41]!==c||e[42]!==u||e[43]!==d||e[44]!==m||e[45]!==f?(h=o.jsxs(o.Fragment,{children:[c,u,d,m,f]}),e[41]=c,e[42]=u,e[43]=d,e[44]=m,e[45]=f,e[46]=h):h=e[46],h}function ZO(t){return!t[1]}function WO(t){return t[1]}function JO(t){return[t[0],t]}function eD(t){const e=fe.c(31),{r:n,was:s}=t,[l,a,i,r,c]=n;let u;e[0]!==n||e[1]!==s?(u=(O,M,A,T)=>{const S=s&&s[O]!==n[O]?T(s):null;return o.jsxs("span",{className:K(ks.field,A,S!==null&&ks.changed),title:S!==null?`${M} · was ${S}`:M,children:[o.jsx("span",{className:ks.now,children:M}),S!==null&&o.jsx("s",{className:ks.was,children:S})]})},e[0]=n,e[1]=s,e[2]=u):u=e[2];const d=u,m=s!==void 0&&s[1]!==a,f=!a&&ks.off;let h;e[3]!==f?(h=K(ks.rec,f),e[3]=f,e[4]=h):h=e[4];const g=`${l} · ${a?"armed":"not armed"}${m?a?" (was not armed)":" (was armed)":""}`,y=!!a&&ks.on,b=m&&ks.changed;let p;e[5]!==y||e[6]!==b?(p=K(ks.arm,y,b),e[5]=y,e[6]=b,e[7]=p):p=e[7];const v=a?"armed":"not armed";let _;e[8]!==p||e[9]!==v?(_=o.jsx("span",{className:p,role:"img","aria-label":v}),e[8]=p,e[9]=v,e[10]=_):_=e[10];let x;e[11]===Symbol.for("react.memo_cache_sentinel")?(x=K(Fe.evTnText,ks.name),e[11]=x):x=e[11];let k;e[12]!==l?(k=o.jsx("span",{className:Fe.evTn,children:o.jsx("span",{className:x,children:l})}),e[12]=l,e[13]=k):k=e[13];let w;e[14]!==d||e[15]!==i?(w=d(2,i,ks.input,sD),e[14]=d,e[15]=i,e[16]=w):w=e[16];const R=`monitor ${r}`;let j;e[17]!==d||e[18]!==R?(j=d(3,R,void 0,nD),e[17]=d,e[18]=R,e[19]=j):j=e[19];const N=e6[c]??c;let E;e[20]!==d||e[21]!==N?(E=d(4,N,ks.mode,tD),e[20]=d,e[21]=N,e[22]=E):E=e[22];let C;return e[23]!==k||e[24]!==w||e[25]!==j||e[26]!==E||e[27]!==h||e[28]!==g||e[29]!==_?(C=o.jsxs("div",{className:h,title:g,children:[_,k,w,j,E]}),e[23]=k,e[24]=w,e[25]=j,e[26]=E,e[27]=h,e[28]=g,e[29]=_,e[30]=C):C=e[30],C}function tD(t){return e6[t[4]]??t[4]}function nD(t){return`monitor ${t[3]}`}function sD(t){return t[2]}const lD="_mods_jrmxm_2",aD="_head_jrmxm_3",oD="_name_jrmxm_4",iD="_src_jrmxm_5",rD="_svg_jrmxm_7",cD="_base_jrmxm_8",uD="_lfo_jrmxm_9",dD="_was_jrmxm_10",fD="_band_jrmxm_11",mD="_facts_jrmxm_12",hD="_lgBaseline_jrmxm_21",pD="_lgBand_jrmxm_22",Gs={mods:lD,head:aD,name:oD,src:iD,svg:rD,base:cD,lfo:uD,was:dD,band:fD,facts:mD,lgBaseline:hD,lgBand:pD},Nc=400,Eu=64,z_={sine:t=>Math.sin(t*2*Math.PI),square:t=>t%1<.5?1:-1,saw_down:t=>1-2*(t%1),saw_up:t=>2*(t%1)-1,triangle:t=>1-4*Math.abs(t%1-.5),random:t=>Math.sin(Math.floor(t*8)*12.9898)*.9};function B_(t){if(!t.lfo)return"";const[e,,n,s,l]=t.lfo,a=z_[e]??z_.sine,i=[];for(let r=0;r<=120;r++){const c=r/120*2+s,u=a(c),d=l>0?t.base+n*(u+1)/2:l<0?t.base-n*(u+1)/2:t.base+n*u/2,m=Eu-Math.min(1,Math.max(0,d))*Eu;i.push(`${r===0?"M":"L"}${(r/120*Nc).toFixed(1)},${m.toFixed(1)}`)}return i.join("")}function vD(t){if(!t.acs)return null;const e=t.acs[4],n=t.acs[6],s=n>0?t.base:n<0?t.base-e:t.base-e/2;return[Math.max(0,s),Math.min(1,s+e)]}const gD=t=>t.charAt(0).toUpperCase()+t.slice(1),I_=t=>[t.lfo&&"LFO",t.acs&&"audio",t.link&&"link"].filter(Boolean).join(" + ")||"baseline only";function _D(t){const e=fe.c(20),{v:n}=t;let s;e[0]!==n.rows?(s=n.rows.some(wD),e[0]=n.rows,e[1]=s):s=e[1];const l=s;let a;e[2]!==n.fx?(a=n.fx?wu(n.fx):"–",e[2]=n.fx,e[3]=a):a=e[3];let i;e[4]!==a?(i=o.jsx(Ue.Readout,{label:"Plugin",value:a}),e[4]=a,e[5]=i):i=e[5];let r;e[6]!==n.rows.length||e[7]!==n.total||e[8]!==l?(r=!l&&o.jsx(Ue.Readout,{label:"Modulated",value:String(n.total??n.rows.length),unit:"params"}),e[6]=n.rows.length,e[7]=n.total,e[8]=l,e[9]=r):r=e[9];let c;e[10]!==i||e[11]!==r?(c=o.jsxs("div",{className:B.measureReadouts,children:[i,r]}),e[10]=i,e[11]=r,e[12]=c):c=e[12];let u,d;e[13]!==n.rows?(u=n.rows.length===0?o.jsx("div",{className:B.evMore,children:"No parameter of this FX is modulated"}):o.jsx("div",{className:Gs.mods,children:n.rows.map(kD)}),d=n.rows.some(SD)&&o.jsx(gs,{items:[[Gs.lgBaseline,"Baseline (the setting's own value)"],...n.rows.some(xD)?[[B.lgLine,"LFO swing"]]:[],...n.rows.some(bD)?[[Gs.lgBand,"Audio follower range"]]:[],...n.rows.some(yD)?[[B.lgPrevious,"Before"]]:[]]}),e[13]=n.rows,e[14]=u,e[15]=d):(u=e[14],d=e[15]);let m;return e[16]!==c||e[17]!==u||e[18]!==d?(m=o.jsxs(o.Fragment,{children:[c,u,d]}),e[16]=c,e[17]=u,e[18]=d,e[19]=m):m=e[19],m}function yD(t){return t.was&&(t.was.lfo||t.was.base!==t.base)}function bD(t){return t.acs}function xD(t){return t.lfo}function SD(t){return!t.off}function kD(t,e){return o.jsx(jD,{r:t},e)}function wD(t){return t.was!==void 0}function jD(t){const e=fe.c(32),{r:n}=t,s=n.was||null;let l,a;if(e[0]!==n||e[1]!==s){const f=vD(n),h=ND;let g;e[4]!==n?(g=n.off?"Modulation off":I_(n),e[4]=n,e[5]=g):g=e[5];const y=g;let b;e[6]!==n.p?(b=o.jsx("span",{className:Gs.name,title:n.p,children:n.p}),e[6]=n.p,e[7]=b):b=e[7];let p;e[8]!==y||e[9]!==s?(p=o.jsx("span",{className:`${Gs.src} mono`,children:s?o.jsxs(o.Fragment,{children:[I_(s)," → ",o.jsx("b",{children:y})]}):o.jsx("b",{children:y})}),e[8]=y,e[9]=s,e[10]=p):p=e[10],e[11]!==b||e[12]!==p?(l=o.jsxs("div",{className:Gs.head,children:[b,p]}),e[11]=b,e[12]=p,e[13]=l):l=e[13],a=!n.off&&o.jsxs("svg",{viewBox:`0 0 ${Nc} ${Eu}`,preserveAspectRatio:"none",className:Gs.svg,role:"img","aria-label":`${n.p}: ${y}, baseline ${Math.round(n.base*100)}%`,children:[f&&o.jsx("rect",{className:Gs.band,x:0,width:Nc,y:h(f[1]),height:Math.max(1,h(f[0])-h(f[1]))}),s?.lfo&&o.jsx("path",{className:Gs.was,d:B_(s),vectorEffect:"non-scaling-stroke"}),s&&!s.off&&o.jsx("line",{className:Gs.was,x1:0,x2:Nc,y1:h(s.base),y2:h(s.base),vectorEffect:"non-scaling-stroke"}),o.jsx("line",{className:Gs.base,x1:0,x2:Nc,y1:h(n.base),y2:h(n.base),vectorEffect:"non-scaling-stroke"}),n.lfo&&o.jsx("path",{className:Gs.lfo,d:B_(n),vectorEffect:"non-scaling-stroke"})]}),e[0]=n,e[1]=s,e[2]=l,e[3]=a}else l=e[2],a=e[3];let i;e[14]!==n.base||e[15]!==n.off?(i=!n.off&&o.jsxs("span",{children:["Baseline ",Math.round(n.base*100),"%"]}),e[14]=n.base,e[15]=n.off,e[16]=i):i=e[16];let r;e[17]!==n.lfo?(r=n.lfo&&o.jsxs(o.Fragment,{children:[o.jsxs("span",{children:[gD(n.lfo[0].replace("_"," "))," LFO"]}),o.jsx("span",{title:n.lfo[5]?"Cycle length in quarter notes, synced to the tempo":"Cycles per second",children:n.lfo[5]?`${Ka(n.lfo[1])} QN cycle`:`${Ka(n.lfo[1])} Hz`}),o.jsxs("span",{children:["Depth ",Math.round(n.lfo[2]*100),"%"]})]}),e[17]=n.lfo,e[18]=r):r=e[18];let c;e[19]!==n.acs?(c=n.acs&&o.jsxs(o.Fragment,{children:[o.jsxs("span",{children:["Follows channel ",n.acs[5]]}),o.jsxs("span",{children:[Ka(n.acs[2])," to ",Ka(n.acs[3])," dB"]}),o.jsxs("span",{title:"Attack / release",children:[Ka(n.acs[0])," / ",Ka(n.acs[1])," ms"]})]}),e[19]=n.acs,e[20]=c):c=e[20];let u;e[21]!==n.link?(u=n.link&&o.jsxs("span",{title:`Linked to ${n.link[0]}`,children:["← ",n.link[0]," × ",Ka(n.link[1]),n.link[2]?` ${n.link[2]>0?"+":"−"} ${Ka(Math.abs(n.link[2]))}`:""]}),e[21]=n.link,e[22]=u):u=e[22];let d;e[23]!==i||e[24]!==r||e[25]!==c||e[26]!==u?(d=o.jsxs("div",{className:`${Gs.facts} mono`,children:[i,r,c,u]}),e[23]=i,e[24]=r,e[25]=c,e[26]=u,e[27]=d):d=e[27];let m;return e[28]!==l||e[29]!==a||e[30]!==d?(m=o.jsxs("div",{children:[l,a,d]}),e[28]=l,e[29]=a,e[30]=d,e[31]=m):m=e[31],m}function ND(t){return Eu-Math.min(1,Math.max(0,t))*Eu}const TD="_heads_1x2zn_2",ED="_headFx_1x2zn_7",$D="_patch_1x2zn_8",RD="_box_1x2zn_10",CD="_wire_1x2zn_12",MD="_chan_1x2zn_16",AD="_pin_1x2zn_16",LD="_lgSame_1x2zn_25",OD="_lgGone_1x2zn_26",DD="_lgNewCh_1x2zn_28",zD="_lgOffCh_1x2zn_28",Hs={heads:TD,headFx:ED,patch:$D,box:RD,wire:CD,chan:MD,pin:AD,lgSame:LD,lgGone:OD,lgNewCh:DD,lgOffCh:zD},U_=16,H_=22;function V_(t,e,n,s){const l=[];for(let a=0;a<Math.max(t.length,e?.length??0);a++){const i=t[a]??[],r=e?.[a]??(s?[]:i);for(const c of[...new Set([...i,...r])].sort((u,d)=>u-d)){const u=i.includes(c),d=r.includes(c);l.push({side:n,pin:a,ch:c,state:s?u&&d?"same":u?"new":"gone":"on"})}}return l}const G_=t=>[...new Set(t)].sort((e,n)=>e-n),sf={on:"",same:"",new:" (new)",gone:" (disconnected)"};function BD(t){const e=fe.c(45),{v:n}=t,[s,l]=Q.useState(null),a=!!n.inWas;let i,r,c,u;if(e[0]!==s||e[1]!==n.ch||e[2]!==n.chWas||e[3]!==n.fx||e[4]!==n.in||e[5]!==n.inWas||e[6]!==n.names||e[7]!==n.out||e[8]!==n.outWas||e[9]!==a){const h=[...V_(n.in,n.inWas,"in",a),...V_(n.out,n.outWas,"out",a)],g=G=>G_(h.filter(ae=>ae.side===G).map(FD)),y=g("in").slice(0,U_),b=g("out").slice(0,U_),p=h.filter(G=>(G.side==="in"?y:b).includes(G.pin)),v=G=>G_(p.filter(ae=>ae.side===G).map(GD)),_=v("in"),x=v("out");let k;e[14]!==n.in||e[15]!==n.inWas||e[16]!==n.out||e[17]!==n.outWas?(k=G=>Math.max(G==="in"?n.in.length:n.out.length,(G==="in"?n.inWas:n.outWas)?.length??0),e[14]=n.in,e[15]=n.inWas,e[16]=n.out,e[17]=n.outWas,e[18]=k):k=e[18];const w=k,R=w("in")-y.length+w("out")-b.length;let j;e[19]!==n.names?(j=(G,ae)=>G==="in"?n.names?.[ae]||`In ${ae+1}`:`Out ${ae+1}`,e[19]=n.names,e[20]=j):j=e[20];const N=j;let E;e[21]!==n.ch||e[22]!==n.chWas?(E=G=>G>n.ch?"off":n.chWas!==void 0&&G>n.chWas?"new":void 0,e[21]=n.ch,e[22]=n.chWas,e[23]=E):E=e[23];const C=E,O=Math.max(_.length,y.length,b.length,x.length,1),M=O*H_;let A;e[24]!==O?(A=(G,ae)=>((O-ae)/2+G+.5)*H_,e[24]=O,e[25]=A):A=e[25];const T=A,S={chIn:10,boxL:28,boxR:72,chOut:90},$=VD,L=G=>G.side==="in"?$(S.chIn+1,T(_.indexOf(G.ch),_.length),S.boxL,T(y.indexOf(G.pin),y.length)):$(S.boxR,T(b.indexOf(G.pin),b.length),S.chOut-1,T(x.indexOf(G.ch),x.length)),z=HD;let D;e[26]!==s?(D=G=>s?G?"on":"off":void 0,e[26]=s,e[27]=D):D=e[27];const U=D,I=G=>U(!!s&&z(G,s)),F=(G,ae)=>U(!!s&&p.some(oe=>z(oe,s)&&oe.side===G&&oe.pin===ae)),P=(G,ae)=>U(!!s&&p.some(oe=>z(oe,s)&&oe.side===G&&oe.ch===ae));let X;e[28]===Symbol.for("react.memo_cache_sentinel")?(X=G=>({onPointerEnter:()=>l(G),onPointerLeave:()=>l(null)}),e[28]=X):X=e[28];const Y=X,Z=G=>{const ae=p.filter(_e=>z(_e,G)),oe=G.side==="in"?"←":"→";return"pin"in G?`${N(G.side,G.pin)} ${oe} ${ae.map(UD).join(", ")}`:`${`Channel ${G.ch}${C(G.ch)==="new"?" (new)":C(G.ch)==="off"?" (not on the track)":""}`} ${G.side==="in"?"→":"←"} ${ae.map(_e=>`${N(_e.side,_e.pin)}${sf[_e.state]}`).join(", ")}`},V=G=>"pin"in G?T((G.side==="in"?y:b).indexOf(G.pin),(G.side==="in"?y:b).length):T((G.side==="in"?_:x).indexOf(G.ch),(G.side==="in"?_:x).length),H=G=>p.filter(ae=>ae.side===G).map(ae=>G==="in"?`channel ${ae.ch} into ${N("in",ae.pin)}${sf[ae.state]}`:`${N("out",ae.pin)} to channel ${ae.ch}${sf[ae.state]}`).join(", "),W=new Set(p.map(ID)),J=[..._,...x];let ce;e[29]!==n.fx?(ce=n.fx?wu(n.fx):"–",e[29]=n.fx,e[30]=ce):ce=e[30];let ee;e[31]!==ce?(ee=o.jsx(Ue.Readout,{label:"Plugin",value:ce}),e[31]=ce,e[32]=ee):ee=e[32];const he=n.chWas!==void 0&&n.chWas!==n.ch?`${n.chWas} → ${n.ch}`:String(n.ch);let pe;e[33]!==he?(pe=o.jsx(Ue.Readout,{label:"Channels",value:he}),e[33]=he,e[34]=pe):pe=e[34],e[35]!==ee||e[36]!==pe?(r=o.jsxs("div",{className:B.measureReadouts,children:[ee,pe]}),e[35]=ee,e[36]=pe,e[37]=r):r=e[37],c=p.length===0?o.jsx("div",{className:B.evMore,children:"No pin is connected to a track channel"}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{className:Hs.heads,"aria-hidden":!0,children:[o.jsx("span",{children:"Track"}),o.jsx("span",{className:Hs.headFx,children:n.fx?wu(n.fx):"Plugin"}),o.jsx("span",{children:"Track"})]}),o.jsxs("div",{className:Hs.patch,style:{height:M},role:"img","aria-label":[H("in"),H("out")].filter(Boolean).join("; "),children:[o.jsx("span",{className:Hs.box,style:{left:`${S.boxL}%`,width:`${S.boxR-S.boxL}%`}}),o.jsx("svg",{viewBox:`0 0 100 ${M}`,preserveAspectRatio:"none","aria-hidden":!0,children:p.map(G=>o.jsx("path",{className:Hs.wire,"data-state":G.state,"data-focus":I(G),d:L(G),vectorEffect:"non-scaling-stroke",...Y({side:G.side,pin:G.pin})},`${G.side}${G.pin}-${G.ch}`))}),_.map((G,ae)=>o.jsx("span",{className:`${Hs.chan} mono`,"data-side":"in","data-state":C(G),"data-focus":P("in",G),style:{right:`${100-S.chIn}%`,top:T(ae,_.length)},...Y({side:"in",ch:G}),children:G},`ci${G}`)),y.map((G,ae)=>o.jsx("span",{className:Hs.pin,"data-side":"in","data-focus":F("in",G),style:{left:`${S.boxL+1.5}%`,top:T(ae,y.length)},...Y({side:"in",pin:G}),children:N("in",G)},`pi${G}`)),b.map((G,ae)=>o.jsx("span",{className:Hs.pin,"data-side":"out","data-focus":F("out",G),style:{right:`${100-S.boxR+1.5}%`,top:T(ae,b.length)},...Y({side:"out",pin:G}),children:N("out",G)},`po${G}`)),x.map((G,ae)=>o.jsx("span",{className:`${Hs.chan} mono`,"data-side":"out","data-state":C(G),"data-focus":P("out",G),style:{left:`${S.chOut}%`,top:T(ae,x.length)},...Y({side:"out",ch:G}),children:G},`co${G}`)),s&&o.jsx(Tu,{left:50,top:V(s)/M*100,children:Z(s)})]}),R>0&&o.jsxs("div",{className:B.evMore,children:[R," ",R===1?"pin":"pins"," not connected or not drawn"]})]}),i=gs,u=[...W.has("on")?[[B.lgLine,"Connected"]]:[],...W.has("same")?[[Hs.lgSame,"Unchanged"]]:[],...W.has("new")?[[B.lgLine,"Newly connected"]]:[],...W.has("gone")?[[Hs.lgGone,"Disconnected"]]:[],...J.some(G=>C(G)==="new")?[[Hs.lgNewCh,"Channel added to the track"]]:[],...J.some(G=>C(G)==="off")?[[Hs.lgOffCh,"Channel the track doesn't have"]]:[]],e[0]=s,e[1]=n.ch,e[2]=n.chWas,e[3]=n.fx,e[4]=n.in,e[5]=n.inWas,e[6]=n.names,e[7]=n.out,e[8]=n.outWas,e[9]=a,e[10]=i,e[11]=r,e[12]=c,e[13]=u}else i=e[10],r=e[11],c=e[12],u=e[13];const d=u;let m;e[38]!==i||e[39]!==d?(m=o.jsx(i,{items:d}),e[38]=i,e[39]=d,e[40]=m):m=e[40];let f;return e[41]!==r||e[42]!==c||e[43]!==m?(f=o.jsxs(o.Fragment,{children:[r,c,m]}),e[41]=r,e[42]=c,e[43]=m,e[44]=f):f=e[44],f}function ID(t){return t.state}function UD(t){return`channel ${t.ch}${sf[t.state]}`}function HD(t,e){return t.side===e.side&&("pin"in e?t.pin===e.pin:t.ch===e.ch)}function VD(t,e,n,s){const l=(t+n)/2;return`M${t},${e} C${l},${e} ${l},${s} ${n},${s}`}function GD(t){return t.ch}function FD(t){return t.pin}const PD="_tags_rx8a3_2",qD="_tag_rx8a3_2",YD="_files_rx8a3_4",XD="_row_rx8a3_5",KD="_group_rx8a3_6",QD="_head_rx8a3_7",ZD="_name_rx8a3_8",WD="_waveWrap_rx8a3_9",JD="_wave_rx8a3_9",ez="_waveTip_rx8a3_12",tz="_shape_rx8a3_13",nz="_v_rx8a3_14",sz="_version_rx8a3_17",lz="_muted_rx8a3_18",az="_lufs_rx8a3_24",oz="_tp_rx8a3_25",iz="_dur_rx8a3_26",tn={tags:PD,tag:qD,files:YD,row:XD,group:KD,head:QD,name:ZD,waveWrap:WD,wave:JD,waveTip:ez,shape:tz,v:nz,version:sz,muted:lz,lufs:az,tp:oz,dur:iz},rz={master:"Master",stems:"Stems",master_and_stems:"Mix + stems",selected_via_master:"Via master",region_matrix:"Regions",selected_items:"Items",selected_items_via_master:"Items via mix"},cz={lufs_i:["LUFS-I","LUFS"],lufs_m_max:["LUFS-M max","LUFS"],lufs_s_max:["LUFS-S max","LUFS"],rms:["RMS","dB"],peak:["Peak","dBFS"],true_peak:["True peak","dBTP"]},eo=t=>t>-150,xd=120,lf=22,uz=t=>{const e=Math.min(1,Math.abs(t)),n=e>0?Math.max(0,(20*Math.log10(e)+48)/48):0;return(1-(t<0?-n:n))/2*lf},dz=(t,e)=>{const n=Math.max(Math.abs(t),Math.abs(e));return n>0?20*Math.log10(n):-150};function fz(t){const e=fe.c(33),{hi:n,lo:s,dur:l}=t,[a,i]=Q.useState(null),r=n.length;if(r<2||s.length!==r){let b;return e[0]===Symbol.for("react.memo_cache_sentinel")?(b=o.jsx("span",{className:tn.waveWrap}),e[0]=b):b=e[0],b}let c;e[1]!==r?(c=b=>(b+.5)/r*xd,e[1]=r,e[2]=c):c=e[2];const u=c;let d;e[3]!==u?(d=b=>b.map((p,v)=>`${u(v).toFixed(1)},${uz(p).toFixed(1)}`),e[3]=u,e[4]=d):d=e[4];const m=d,f=lf/2;let h;e[5]!==r?(h=b=>{const p=b.currentTarget.getBoundingClientRect();i(p.width>0?Math.min(r-1,Math.max(0,Math.floor((b.clientX-p.left)/p.width*r))):0)},e[5]=r,e[6]=h):h=e[6];const g=h;let y;if(e[7]!==m||e[8]!==l||e[9]!==n||e[10]!==a||e[11]!==s||e[12]!==r||e[13]!==g||e[14]!==u){const b=a===null?0:dz(n[a],s[a]);let p,v;e[16]===Symbol.for("react.memo_cache_sentinel")?(p=()=>i(null),v=o.jsx("line",{className:B.spectrumBase,x1:0,x2:xd,y1:f,y2:f,vectorEffect:"non-scaling-stroke"}),e[16]=p,e[17]=v):(p=e[16],v=e[17]);let _;e[18]!==m||e[19]!==n?(_=m(n).join("L"),e[18]=m,e[19]=n,e[20]=_):_=e[20];let x;e[21]!==m||e[22]!==s?(x=m(s).reverse().join("L"),e[21]=m,e[22]=s,e[23]=x):x=e[23];const k=`M0,${f}L${_}L${xd},${f}L${x}Z`;let w;e[24]!==k?(w=o.jsx("path",{className:tn.shape,d:k,vectorEffect:"non-scaling-stroke"}),e[24]=k,e[25]=w):w=e[25];let R;e[26]!==a||e[27]!==u?(R=a!==null&&o.jsx("line",{className:B.spectrumCursor,x1:u(a),x2:u(a),y1:0,y2:lf,vectorEffect:"non-scaling-stroke"}),e[26]=a,e[27]=u,e[28]=R):R=e[28];let j;e[29]!==g||e[30]!==w||e[31]!==R?(j=o.jsxs("svg",{className:tn.wave,viewBox:`0 0 ${xd} ${lf}`,preserveAspectRatio:"none",role:"img","aria-label":"Waveform: peak level over time",onPointerMove:g,onPointerLeave:p,children:[v,w,R]}),e[29]=g,e[30]=w,e[31]=R,e[32]=j):j=e[32],y=o.jsxs("span",{className:tn.waveWrap,children:[j,a!==null&&o.jsxs("span",{role:"tooltip",className:K(B.spectrumTip,tn.waveTip,"mono"),style:{left:`${Math.min(85,Math.max(15,(a+.5)/r*100))}%`},children:[l>0?`${Ge((a+.5)/r*l,1)} · `:"",eo(b)?`peak ${be(b)} dBFS`:"silence"]})]}),e[7]=m,e[8]=l,e[9]=n,e[10]=a,e[11]=s,e[12]=r,e[13]=g,e[14]=u,e[15]=y}else y=e[15];return y}function mz(t){const e=fe.c(72),{v:n}=t;let s;e[0]!==n.norm?(s=n.norm&&cz[n.norm]||["",""],e[0]=n.norm,e[1]=s):s=e[1];const[l,a]=s,i=n.norm==="lufs_i"&&n.nt!==void 0?n.nt:void 0;let r;e[2]!==n.fmt?(r=n.fmt.toUpperCase()||"–",e[2]=n.fmt,e[3]=r):r=e[3];const c=n.bd??(n.kbps?String(n.kbps):"");let u;e[4]!==r||e[5]!==c?(u=[r,c].filter(Boolean),e[4]=r,e[5]=c,e[6]=u):u=e[6];const d=u.join(" ");let m;e[7]!==i?(m=X=>i===void 0||!eo(X)||Math.abs(X-i)<=1?"ok":"hot",e[7]=i,e[8]=m):m=e[8];const f=m;let h;e[9]!==n.lim?(h=X=>eo(X)?X>0?"over":n.lim!==void 0?X>n.lim+.05?"hot":"ok":X>-1?"hot":"ok":"ok",e[9]=n.lim,e[10]=h):h=e[10];const g=h;let y,b;if(e[11]!==i||e[12]!==f||e[13]!==g||e[14]!==n.groups||e[15]!==n.lim){const X=n.groups.flatMap(hz);y=[X.some(Z=>f(Z[2])==="hot")&&`loudness more than 1 LU from ${be(i)}`,X.some(Z=>g(Z[3])==="hot")&&(n.lim!==void 0?"peak over the limit":"peak within 1 dB of 0")].filter(Boolean);let Y;e[18]!==g?(Y=Z=>g(Z[3])==="over",e[18]=g,e[19]=Y):Y=e[19],b=X.some(Y),e[11]=i,e[12]=f,e[13]=g,e[14]=n.groups,e[15]=n.lim,e[16]=y,e[17]=b}else y=e[16],b=e[17];const p=b;let v;e[20]!==f||e[21]!==g?(v=(X,Y)=>{const[Z,V,H,W,J,ce,ee]=X,he=f(H),pe=g(W),G=`${Z} · ${V>=0?Ge(V,1):"length unknown"}${eo(H)?` · ${be(H)} LUFS-I${he==="hot"?" (off target)":""}`:""}${eo(W)?` · true peak ${be(W)} dBTP${pe==="over"?" (over 0)":pe==="hot"?" (hot)":""}`:""}${eo(J)?` · sample peak ${be(J)} dBFS`:""}`;return o.jsxs("div",{className:tn.row,role:"group","aria-label":G,children:[o.jsx("span",{className:tn.name,children:Z}),o.jsx(fz,{hi:ce,lo:ee,dur:V}),o.jsx("span",{className:K(tn.v,tn.lufs,"mono"),"data-zone":he,children:eo(H)?be(H):"–"}),o.jsx("span",{className:K(tn.v,tn.tp,"mono"),"data-zone":pe,children:eo(W)?be(W):"–"}),o.jsx("span",{className:K(tn.v,tn.dur,"mono"),children:V>=0?Ge(V):"–"})]},Y)},e[20]=f,e[21]=g,e[22]=v):v=e[22];const _=v;let x;e[23]!==n.bd||e[24]!==n.fmt||e[25]!==n.kbps?(x=n.bd?`${n.fmt.toUpperCase()} ${n.bd==="32f"?"32-bit float":`${n.bd}-bit`}`:n.kbps?`${n.fmt.toUpperCase()} ${n.kbps} kbps`:void 0,e[23]=n.bd,e[24]=n.fmt,e[25]=n.kbps,e[26]=x):x=e[26];let k;e[27]!==d||e[28]!==x?(k=o.jsx(Ue.Readout,{label:"Format",value:d,title:x}),e[27]=d,e[28]=x,e[29]=k):k=e[29];const w=rz[n.src]??n.src;let R;e[30]!==w?(R=o.jsx(Ue.Readout,{label:"Source",value:w}),e[30]=w,e[31]=R):R=e[31];let j;e[32]!==n.norm||e[33]!==n.nt?(j=n.nt!==void 0&&n.norm?be(n.nt):"off",e[32]=n.norm,e[33]=n.nt,e[34]=j):j=e[34];const N=n.norm?a:void 0,E=n.norm?`Normalized by ${l}`:"Not normalized";let C;e[35]!==j||e[36]!==N||e[37]!==E?(C=o.jsx(Ue.Readout,{label:"Target",value:j,unit:N,title:E}),e[35]=j,e[36]=N,e[37]=E,e[38]=C):C=e[38];let O;e[39]!==k||e[40]!==R||e[41]!==C?(O=o.jsxs("div",{className:B.measureReadouts,children:[k,R,C]}),e[39]=k,e[40]=R,e[41]=C,e[42]=O):O=e[42];let M;e[43]!==n.lim||e[44]!==n.tp?(M=n.lim!==void 0&&o.jsx("div",{className:tn.tags,children:n.lim!==void 0&&o.jsxs("span",{className:tn.tag,children:["Limit ",be(n.lim)," ",n.tp?"dBTP":"dBFS"]})}),e[43]=n.lim,e[44]=n.tp,e[45]=M):M=e[45];let A;e[46]===Symbol.for("react.memo_cache_sentinel")?(A=K(tn.row,tn.head),e[46]=A):A=e[46];let T;e[47]===Symbol.for("react.memo_cache_sentinel")?(T=o.jsxs("div",{className:A,"aria-hidden":"true",children:[o.jsx("span",{children:"File"}),o.jsx("span",{children:"Waveform"}),o.jsx("span",{className:tn.v,title:"Integrated loudness, LUFS",children:"LUFS"}),o.jsx("span",{className:tn.v,title:"True peak, dBTP",children:"Peak"}),o.jsx("span",{className:K(tn.v,tn.dur),children:"Length"})]}),e[47]=T):T=e[47];let S;if(e[48]!==_||e[49]!==n.groups){let X;e[51]!==_?(X=(Y,Z)=>o.jsxs("div",{className:tn.group,children:[Y.v&&o.jsxs("div",{className:tn.version,children:[o.jsx("b",{children:Y.v}),o.jsx("span",{className:K(tn.muted,"muted"),title:Y.m.join(", "),children:Y.m.length?`muted ${Y.m.join(", ")}`:"full mix"})]}),Y.f.map((V,H)=>_(V,`${Z}:${H}`))]},Z),e[51]=_,e[52]=X):X=e[52],S=n.groups.map(X),e[48]=_,e[49]=n.groups,e[50]=S}else S=e[50];let $;e[53]!==S?($=o.jsxs("div",{className:tn.files,role:"group","aria-label":"Rendered files",children:[T,S]}),e[53]=S,e[54]=$):$=e[54];let L;e[55]!==n.more?(L=n.more?o.jsxs("div",{className:B.evMore,children:["+",ca(n.more,"more file")," not listed"]}):null,e[55]=n.more,e[56]=L):L=e[56];let z;e[57]!==y?(z=y.length?[[B.lgWarn,`Off: ${y.join(", ")}`]]:[],e[57]=y,e[58]=z):z=e[58];let D;e[59]!==p?(D=p?[[B.lgBad,"True peak over 0 dB"]]:[],e[59]=p,e[60]=D):D=e[60];let U;e[61]!==z||e[62]!==D?(U=[...z,...D],e[61]=z,e[62]=D,e[63]=U):U=e[63];const I=U;let F;e[64]!==I?(F=o.jsx(gs,{items:I}),e[64]=I,e[65]=F):F=e[65];let P;return e[66]!==O||e[67]!==M||e[68]!==$||e[69]!==L||e[70]!==F?(P=o.jsxs(o.Fragment,{children:[O,M,$,L,F]}),e[66]=O,e[67]=M,e[68]=$,e[69]=L,e[70]=F,e[71]=P):P=e[71],P}function hz(t){return t.f}const pz="_stretch_1w3jq_2",vz="_item_1w3jq_3",gz="_grid_1w3jq_4",_z="_was_1w3jq_5",yz="_move_1w3jq_6",bz="_mark_1w3jq_7",xz="_kept_1w3jq_8",Sz="_lgGrid_1w3jq_9",kz="_lgKept_1w3jq_10",wz="_lgMove_1w3jq_11",rl={stretch:pz,item:vz,grid:gz,was:_z,move:yz,mark:bz,kept:xz,lgGrid:Sz,lgKept:kz,lgMove:wz},O1=400,ba=56,hc=(t,e)=>(t??[]).some(n=>Math.abs(n-e)<5e-4);function jz(t){const e=fe.c(81),{v:n}=t;let s;e[0]!==n.len?(s=M=>Math.min(n.len,Math.max(0,M))/n.len*O1,e[0]=n.len,e[1]=s):s=e[1];const l=s;let a;e[2]!==n.moves?(a=n.moves??[],e[2]=n.moves,e[3]=a):a=e[3];const i=a;let r;e[4]!==i?(r=i.filter(Nz),e[4]=i,e[5]=r):r=e[5];const c=r.length;let u;e[6]!==n.grid?.length?(u=n.grid?.length?[[rl.lgGrid,"Grid line"]]:[],e[6]=n.grid?.length,e[7]=u):u=e[7];let d;e[8]!==c||e[9]!==i.length||e[10]!==n.marks||e[11]!==n.was?(d=n.marks&&n.was?[...n.marks.some(M=>hc(n.was,M))?[[rl.lgKept,"Kept"]]:[],...n.marks.some(M=>!hc(n.was,M))?[[B.lgTick,"Added"]]:[],...n.was.some(M=>!hc(n.marks,M))?[[B.lgWas,"Removed"]]:[]]:[...c>0?[[B.lgWas,"Before"]]:[],[B.lgTick,i.length?"Now":"Marker"],...c>0?[[rl.lgMove,"Moved"]]:[]],e[8]=c,e[9]=i.length,e[10]=n.marks,e[11]=n.was,e[12]=d):d=e[12];let m;e[13]!==u||e[14]!==d?(m=[...u,...d],e[13]=u,e[14]=d,e[15]=m):m=e[15];const f=m;let h;e[16]!==c||e[17]!==i.length||e[18]!==n.guide||e[19]!==n.marks||e[20]!==n.more||e[21]!==n.off||e[22]!==n.was?(h=n.off?o.jsxs(o.Fragment,{children:[o.jsx(Ue.Readout,{label:"Hits moved",value:`${c} of ${i.length+(n.more??0)}`}),o.jsx(Ue.Readout,{label:"Timing off",title:`Average distance of the hits from the ${n.guide?"guide":"grid"}`,value:`${Math.round(n.off[0])} → ${Math.round(n.off[1])}`,unit:"ms",zone:n.off[1]>10?"hot":"ok",word:""})]}):o.jsx(Ue.Readout,{label:"Markers",value:n.was?`${n.was.length} → ${(n.marks??[]).length}`:String((n.marks??[]).length)}),e[16]=c,e[17]=i.length,e[18]=n.guide,e[19]=n.marks,e[20]=n.more,e[21]=n.off,e[22]=n.was,e[23]=h):h=e[23];let g;e[24]!==n.len?(g=Ge(n.len,2),e[24]=n.len,e[25]=g):g=e[25];let y;e[26]!==g?(y=o.jsx(Ue.Readout,{label:"Item length",value:g}),e[26]=g,e[27]=y):y=e[27];let b;e[28]!==h||e[29]!==y?(b=o.jsxs("div",{className:B.measureReadouts,children:[h,y]}),e[28]=h,e[29]=y,e[30]=b):b=e[30];let p;e[31]!==c||e[32]!==n.guide||e[33]!==n.marks||e[34]!==n.off?(p=n.off?`${c} hits moved toward the ${n.guide?"guide":"grid"}`:`${(n.marks??[]).length} stretch markers`,e[31]=c,e[32]=n.guide,e[33]=n.marks,e[34]=n.off,e[35]=p):p=e[35];let v;e[36]===Symbol.for("react.memo_cache_sentinel")?(v=o.jsx("rect",{className:rl.item,x:0,y:8,width:O1,height:ba-16,rx:3}),e[36]=v):v=e[36];let _;e[37]!==n.grid?(_=n.grid??[],e[37]=n.grid,e[38]=_):_=e[38];let x;if(e[39]!==_||e[40]!==l){let M;e[42]!==l?(M=(A,T)=>o.jsx("line",{className:rl.grid,x1:l(A),x2:l(A),y1:8,y2:ba-8,vectorEffect:"non-scaling-stroke"},`g${T}`),e[42]=l,e[43]=M):M=e[43],x=_.map(M),e[39]=_,e[40]=l,e[41]=x}else x=e[41];let k;if(e[44]!==n.marks||e[45]!==n.was||e[46]!==l){let M;e[48]!==n.marks?(M=T=>!hc(n.marks,T),e[48]=n.marks,e[49]=M):M=e[49];let A;e[50]!==l?(A=(T,S)=>o.jsx("line",{className:rl.was,x1:l(T),x2:l(T),y1:4,y2:ba-4,vectorEffect:"non-scaling-stroke"},`w${S}`),e[50]=l,e[51]=A):A=e[51],k=(n.was??[]).filter(M).map(A),e[44]=n.marks,e[45]=n.was,e[46]=l,e[47]=k}else k=e[47];let w;if(e[52]!==i||e[53]!==l){let M;e[55]!==l?(M=(A,T)=>{const[S,$]=A;return o.jsxs("g",{children:[Math.abs(S-$)>5e-4&&o.jsx("line",{className:rl.was,x1:l(S),x2:l(S),y1:4,y2:ba-4,vectorEffect:"non-scaling-stroke"}),Math.abs(S-$)>5e-4&&o.jsx("line",{className:rl.move,x1:l(S),x2:l($),y1:ba/2,y2:ba/2,vectorEffect:"non-scaling-stroke"}),o.jsx("line",{className:rl.mark,x1:l($),x2:l($),y1:4,y2:ba-4,vectorEffect:"non-scaling-stroke"})]},`m${T}`)},e[55]=l,e[56]=M):M=e[56],w=i.map(M),e[52]=i,e[53]=l,e[54]=w}else w=e[54];let R;e[57]!==n.marks?(R=n.marks??[],e[57]=n.marks,e[58]=R):R=e[58];let j;if(e[59]!==R||e[60]!==n.was||e[61]!==l){let M;e[63]!==n.was||e[64]!==l?(M=(A,T)=>o.jsx("line",{className:n.was&&hc(n.was,A)?rl.kept:rl.mark,x1:l(A),x2:l(A),y1:4,y2:ba-4,vectorEffect:"non-scaling-stroke"},`k${T}`),e[63]=n.was,e[64]=l,e[65]=M):M=e[65],j=R.map(M),e[59]=R,e[60]=n.was,e[61]=l,e[62]=j}else j=e[62];let N;e[66]!==p||e[67]!==x||e[68]!==k||e[69]!==w||e[70]!==j?(N=o.jsxs("svg",{viewBox:`0 0 ${O1} ${ba}`,preserveAspectRatio:"none",className:rl.stretch,role:"img","aria-label":p,children:[v,x,k,w,j]}),e[66]=p,e[67]=x,e[68]=k,e[69]=w,e[70]=j,e[71]=N):N=e[71];let E;e[72]!==n.more?(E=(n.more??0)>0&&o.jsxs("div",{className:B.evMore,children:["+",ca(n.more??0,"more marker")," not drawn"]}),e[72]=n.more,e[73]=E):E=e[73];let C;e[74]!==f?(C=o.jsx(gs,{items:f}),e[74]=f,e[75]=C):C=e[75];let O;return e[76]!==b||e[77]!==N||e[78]!==E||e[79]!==C?(O=o.jsxs(o.Fragment,{children:[b,N,E,C]}),e[76]=b,e[77]=N,e[78]=E,e[79]=C,e[80]=O):O=e[80],O}function Nz(t){const[e,n]=t;return Math.abs(e-n)>5e-4}const Tz="_flow_fgd4e_2",Ez="_wire_fgd4e_4",$z="_node_fgd4e_8",Rz="_nodeName_fgd4e_14",Cz="_label_fgd4e_15",Mz="_section_fgd4e_25",Az="_heading_fgd4e_26",Lz="_lgWeight_fgd4e_28",Oz="_lgSame_fgd4e_29",Dz="_lgMuted_fgd4e_30",zz="_lgGone_fgd4e_31",Bz="_row_fgd4e_42",Es={flow:Tz,wire:Ez,node:$z,nodeName:Rz,label:Cz,section:Mz,heading:Az,lgWeight:Lz,lgSame:Oz,lgMuted:Dz,lgGone:zz,row:Bz},Mm={s:["→","Send to"],r:["←","Receive from"],h:["⇥","Hardware output"]},Iz=[["r","Receives from"],["s","Sends to"],["h","Hardware outputs"]],Uz=(t,e)=>t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4];function Hz(t){const e=fe.c(28),{v:n}=t,s=b_(n.routes),l=n.was?b_(n.was):[],a=gv(n.routes.map((N,E)=>[s[E],N]),n.was?.map((N,E)=>[l[E],N]),Fz,Gz),i=n.routes.some((N,E)=>a.change.get(E)==="changed"&&n.was?.[l.indexOf(s[E])]?.[2]!==N[2]),[r,c]=Q.useState(null);let u;e[0]!==n.routes?(u=N=>n.routes.filter(E=>E[0]===N).length,e[0]=n.routes,e[1]=u):u=e[1];const d=u,m=[...n.routes.map((N,E)=>{const C=a.change.get(E);return{key:s[E],r:N,c:C,was:C==="changed"?n.was?.[l.indexOf(s[E])]:void 0}}),...a.removed.map(N=>{const[E,C]=N;return{key:`gone${l[E]}`,r:C[1],gone:!0}})];let f;e[2]!==n.t?(f=o.jsx(Ue.Readout,{label:"Track",value:n.t}),e[2]=n.t,e[3]=f):f=e[3];const h=String(d("s")+d("h"));let g;e[4]!==h?(g=o.jsx(Ue.Readout,{label:"Sends",value:h}),e[4]=h,e[5]=g):g=e[5];const y=String(d("r"));let b;e[6]!==y?(b=o.jsx(Ue.Readout,{label:"Receives",value:y}),e[6]=y,e[7]=b):b=e[7];let p;e[8]!==f||e[9]!==g||e[10]!==b?(p=o.jsxs("div",{className:B.measureReadouts,children:[f,g,b]}),e[8]=f,e[9]=g,e[10]=b,e[11]=p):p=e[11];const v=n.routes.length===0&&a.removed.length===0?o.jsx("div",{className:B.evMore,children:"No sends, receives or hardware outputs"}):o.jsxs(o.Fragment,{children:[o.jsx(Yz,{t:n.t,entries:m,write:!!n.was,focus:r,onFocus:N=>c(N?{key:N,inFlow:!0}:null)}),Iz.map(N=>{const[E,C]=N,O=m.filter(M=>M.r[0]===E);return O.length?o.jsxs("section",{className:Es.section,"aria-label":C,children:[o.jsxs("h4",{className:Es.heading,children:[o.jsx("span",{className:"mono","aria-hidden":!0,children:Mm[E][0]})," ",C]}),o.jsx("div",{className:Fe.evMix,children:O.map(M=>o.jsx(Pz,{r:M.r,c:M.c,was:M.was,gone:M.gone,focused:r?.key===M.key,onFocus:A=>c(A?{key:M.key,inFlow:!1}:null)},M.key))})]},E):null})]}),_=m.length>0&&o.jsx(tB,{entries:m,write:!!n.was});let x;e[12]!==n.routes?(x=n.routes.map(Vz),e[12]=n.routes,e[13]=x):x=e[13];let k;e[14]!==x?(k=o.jsx(J5,{flags:x}),e[14]=x,e[15]=k):k=e[15];let w;e[16]!==a||e[17]!==n.was?(w=n.was&&o.jsx(Z5,{change:a.change,removed:a.removed.length}),e[16]=a,e[17]=n.was,e[18]=w):w=e[18];let R;e[19]!==i?(R=i&&o.jsx(gs,{items:[[B.lgWas,"Before"],[B.lgRange,"Now"]]}),e[19]=i,e[20]=R):R=e[20];let j;return e[21]!==_||e[22]!==k||e[23]!==w||e[24]!==R||e[25]!==p||e[26]!==v?(j=o.jsxs(o.Fragment,{children:[p,v,_,k,w,R]}),e[21]=_,e[22]=k,e[23]=w,e[24]=R,e[25]=p,e[26]=v,e[27]=j):j=e[27],j}function Vz(t){return t[4]}function Gz(t,e){return Uz(t[1],e[1])}function Fz(t){return t[0]}function Pz(t){const e=fe.c(86),{r:n,c:s,was:l,gone:a,focused:i,onFocus:r}=t,[c,u,d,m,f]=n,[h,g]=Mm[c],y=d>0;let b;e[0]!==f?(b=K(Fe.evTrk,Fe.evRoute,Es.row,f.includes("M")&&Fe.evTrkMuted),e[0]=f,e[1]=b):b=e[1];const p=a?"gone":s,v=i||void 0,_=i||void 0;let x,k;e[2]!==r?(x=()=>r?.(!0),k=()=>r?.(!1),e[2]=r,e[3]=x,e[4]=k):(x=e[3],k=e[4]);let w;e[5]!==d?(w=be(d),e[5]=d,e[6]=w):w=e[6];let R;e[7]!==m?(R=Cr(m),e[7]=m,e[8]=R):R=e[8];let j;e[9]!==l?(j=l?` · was ${be(l[2])} dB, pan ${Cr(l[3])}`:"",e[9]=l,e[10]=j):j=e[10];const N=`${g} ${u} · ${w} dB · pan ${R}${f.includes("M")?" · muted":""}${j}${a?" · removed":s?` · ${Rm[s]}`:""}`;let E;e[11]!==h||e[12]!==g?(E=o.jsx("span",{className:Fe.evRouteKind,"aria-label":g,children:h}),e[11]=h,e[12]=g,e[13]=E):E=e[13];let C;e[14]!==u?(C=o.jsx("span",{className:Fe.evTnText,children:u}),e[14]=u,e[15]=C):C=e[15];let O;e[16]!==s||e[17]!==a?(O=a?o.jsx("span",{className:Fe.evMark,"data-change":"gone",children:"removed"}):o.jsx(Cm,{c:s}),e[16]=s,e[17]=a,e[18]=O):O=e[18];let M;e[19]!==C||e[20]!==O?(M=o.jsxs("span",{className:Fe.evTn,children:[C,O]}),e[19]=C,e[20]=O,e[21]=M):M=e[21];let A;e[22]===Symbol.for("react.memo_cache_sentinel")?(A=K(B.evBar,Fe.evFader),e[22]=A):A=e[22];let T;e[23]!==d?(T=be(d),e[23]=d,e[24]=T):T=e[24];const S=`${T} dB`;let $;e[25]!==d||e[26]!==l?($=l&&l[2]!==d?`${be(l[2])} → `:"",e[25]=d,e[26]=l,e[27]=$):$=e[27];let L;e[28]!==d?(L=be(d),e[28]=d,e[29]=L):L=e[29];const z=`Level ${$}${L} dB`;let D;e[30]===Symbol.for("react.memo_cache_sentinel")?(D=o.jsx("span",{className:B.evZero,style:{left:`${Jt(0,-60,6)}%`}}),e[30]=D):D=e[30];const U=y?Fe.evFillHot:"";let I;e[31]!==U?(I=K(B.evFill,U),e[31]=U,e[32]=I):I=e[32];let F;e[33]!==d?(F=Jt(d,-60,6),e[33]=d,e[34]=F):F=e[34];const P=`${F}%`;let X;e[35]!==P?(X={left:0,width:P},e[35]=P,e[36]=X):X=e[36];let Y;e[37]!==I||e[38]!==X?(Y=o.jsx("span",{className:I,style:X}),e[37]=I,e[38]=X,e[39]=Y):Y=e[39];let Z;e[40]!==d||e[41]!==l?(Z=l&&l[2]!==d&&o.jsx("span",{className:B.evWas,style:{left:`${Jt(l[2],-60,6)}%`}}),e[40]=d,e[41]=l,e[42]=Z):Z=e[42];let V;e[43]!==S||e[44]!==z||e[45]!==Y||e[46]!==Z?(V=o.jsxs(Qn,{className:A,role:"img","aria-label":S,tip:z,children:[D,Y,Z]}),e[43]=S,e[44]=z,e[45]=Y,e[46]=Z,e[47]=V):V=e[47];let H;e[48]===Symbol.for("react.memo_cache_sentinel")?(H=K(Fe.evTv,"mono"),e[48]=H):H=e[48];const W=y?"hot":"ok";let J;e[49]!==d?(J=be(d),e[49]=d,e[50]=J):J=e[50];let ce;e[51]!==W||e[52]!==J?(ce=o.jsx("span",{className:H,"data-zone":W,children:J}),e[51]=W,e[52]=J,e[53]=ce):ce=e[53];let ee;e[54]!==m?(ee=Cr(m),e[54]=m,e[55]=ee):ee=e[55];const he=`pan ${ee}`;let pe;e[56]!==m||e[57]!==l?(pe=l&&l[3]!==m?`${ju(l[3])} → `:"",e[56]=m,e[57]=l,e[58]=pe):pe=e[58];let G;e[59]!==m?(G=ju(m),e[59]=m,e[60]=G):G=e[60];const ae=`Pan ${pe}${G}`;let oe;e[61]===Symbol.for("react.memo_cache_sentinel")?(oe=o.jsx("span",{className:Fe.evPanC}),e[61]=oe):oe=e[61];let ye;e[62]!==m?(ye=Jt(m,-1,1),e[62]=m,e[63]=ye):ye=e[63];const _e=`${ye}%`;let ne;e[64]!==_e?(ne=o.jsx("span",{className:Fe.evPanD,style:{left:_e}}),e[64]=_e,e[65]=ne):ne=e[65];let te;e[66]!==he||e[67]!==ae||e[68]!==ne?(te=o.jsxs(Qn,{className:Fe.evPan,role:"img","aria-label":he,tip:ae,children:[oe,ne]}),e[66]=he,e[67]=ae,e[68]=ne,e[69]=te):te=e[69];const ie=f.includes("M")?"m":void 0;let de;e[70]!==ie?(de=o.jsx("span",{className:Fe.evChips,children:o.jsx("span",{className:Fe.evChip,"data-chip":ie,children:"M"})}),e[70]=ie,e[71]=de):de=e[71];let xe;return e[72]!==b||e[73]!==N||e[74]!==E||e[75]!==M||e[76]!==p||e[77]!==V||e[78]!==v||e[79]!==ce||e[80]!==_||e[81]!==te||e[82]!==de||e[83]!==x||e[84]!==k?(xe=o.jsxs("div",{className:b,"data-change":p,"data-focus":v,"aria-current":_,onPointerEnter:x,onPointerLeave:k,title:N,children:[E,M,V,ce,te,de]}),e[72]=b,e[73]=N,e[74]=E,e[75]=M,e[76]=p,e[77]=V,e[78]=v,e[79]=ce,e[80]=_,e[81]=te,e[82]=de,e[83]=x,e[84]=k,e[85]=xe):xe=e[85],xe}const qz=16,F_=24,t6=t=>Math.max(t.filter(e=>e.r[0]==="r").length,t.filter(e=>e.r[0]!=="r").length)<=qz,P_=t=>.75+(Math.min(6,Math.max(-60,t))+60)/66*2.75,Tc=(t,e)=>t.gone?"gone":t.r[4].includes("M")?"muted":!e||t.c?"now":"same";function Yz(t){const e=fe.c(28),{t:n,entries:s,write:l,focus:a,onFocus:i}=t;let r,c;if(e[0]!==s||e[1]!==a||e[2]!==i||e[3]!==n||e[4]!==l){c=Symbol.for("react.early_return_sentinel");e:{const u=s.filter(eB),d=s.filter(Jz);if(!t6(s)){c=null;break e}const m=Math.max(u.length,d.length,1),f=m*F_,h=f/2,g=Math.min(f-4,Math.max(26,m*6+14));let y;e[7]!==h||e[8]!==g?(y=(D,U)=>h+(U>1?(D/(U-1)-.5)*(g-12):0),e[7]=h,e[8]=g,e[9]=y):y=e[9];const b=y,[p,v]=u.length?d.length?[37,63]:[74,100]:[0,26];let _;e[10]!==m?(_=(D,U)=>((m-U)/2+D+.5)*F_,e[10]=m,e[11]=_):_=e[11];const x=_,k=Wz,w=Zz;let R;e[12]!==i?(R=D=>({onPointerEnter:()=>i(D.key),onPointerLeave:()=>i(null)}),e[12]=i,e[13]=R):R=e[13];const j=R;let N;e[14]!==a?(N=D=>a?a.key===D.key?"on":"off":void 0,e[14]=a,e[15]=N):N=e[15];const E=N,C=a?.inFlow?u.findIndex(D=>D.key===a.key):-1,O=a?.inFlow?d.findIndex(D=>D.key===a.key):-1,M=Xz;let A;e[16]!==f?(A={height:f},e[16]=f,e[17]=A):A=e[17];const T=`${p}%`,S=`${v-p}%`;let $;e[18]!==h||e[19]!==g||e[20]!==T||e[21]!==S?($={left:T,width:S,top:h,height:g},e[18]=h,e[19]=g,e[20]=T,e[21]=S,e[22]=$):$=e[22];let L;e[23]!==n?(L=o.jsx("span",{className:Es.nodeName,children:n}),e[23]=n,e[24]=L):L=e[24];let z;e[25]!==$||e[26]!==L?(z=o.jsx("span",{className:Es.node,style:$,children:L}),e[25]=$,e[26]=L,e[27]=z):z=e[27],r=o.jsxs("div",{className:Es.flow,style:A,role:"img","aria-label":[u.length&&`${M(u)} into ${n}`,d.length&&`${n} out to ${M(d)}`].filter(Boolean).join("; "),children:[o.jsxs("svg",{viewBox:`0 0 100 ${f}`,preserveAspectRatio:"none","aria-hidden":!0,children:[u.map((D,U)=>o.jsx("path",{className:Es.wire,"data-state":Tc(D,l),d:k(27,x(U,u.length),p,b(U,u.length)),"data-focus":E(D),style:{strokeWidth:P_(D.r[2])},vectorEffect:"non-scaling-stroke",...j(D)},D.key)),d.map((D,U)=>o.jsx("path",{className:Es.wire,"data-state":Tc(D,l),d:k(v,b(U,d.length),u.length?73:50,x(U,d.length)),"data-focus":E(D),style:{strokeWidth:P_(D.r[2])},vectorEffect:"non-scaling-stroke",...j(D)},D.key))]}),z,u.map((D,U)=>o.jsx("span",{className:Es.label,"data-side":"in","data-state":Tc(D,l),"data-focus":E(D),style:{right:"74%",top:x(U,u.length)},...j(D),children:D.r[1]},D.key)),d.map((D,U)=>o.jsxs("span",{className:Es.label,"data-side":"out","data-state":Tc(D,l),"data-focus":E(D),style:{left:`${(u.length?73:50)+1}%`,top:x(U,d.length)},...j(D),children:[o.jsx("span",{className:"mono","aria-hidden":!0,children:Mm[D.r[0]][0]})," ",D.r[1]]},D.key)),C>=0&&o.jsx(Tu,{left:50,top:x(C,u.length)/f*100,children:w(u[C])}),O>=0&&o.jsx(Tu,{left:50,top:x(O,d.length)/f*100,children:w(d[O])})]})}e[0]=s,e[1]=a,e[2]=i,e[3]=n,e[4]=l,e[5]=r,e[6]=c}else r=e[5],c=e[6];return c!==Symbol.for("react.early_return_sentinel")?c:r}function Xz(t){return t.filter(Qz).map(Kz).join(", ")}function Kz(t){return t.r[1]}function Qz(t){return!t.gone}function Zz(t){return`${Mm[t.r[0]][1]} ${t.r[1]} · ${t.was&&t.was[2]!==t.r[2]?`${be(t.was[2])} → `:""}${be(t.r[2])} dB · pan ${t.was&&t.was[3]!==t.r[3]?`${ju(t.was[3])} → `:""}${ju(t.r[3])}${t.r[4].includes("M")?" · muted":""}${t.gone?" · removed":""}`}function Wz(t,e,n,s){const l=(t+n)/2;return`M${t},${e} C${l},${e} ${l},${s} ${n},${s}`}function Jz(t){return t.r[0]!=="r"}function eB(t){return t.r[0]==="r"}function tB(t){const e=fe.c(18),{entries:n,write:s}=t;if(!t6(n))return null;let l;if(e[0]!==n||e[1]!==s){let f;e[3]!==s?(f=h=>Tc(h,s),e[3]=s,e[4]=f):f=e[4],l=new Set(n.map(f)),e[0]=n,e[1]=s,e[2]=l}else l=e[2];const a=l;let i;e[5]===Symbol.for("react.memo_cache_sentinel")?(i=[Es.lgWeight,"Thicker = louder"],e[5]=i):i=e[5];let r;e[6]!==a||e[7]!==s?(r=a.has("now")?[[B.lgLine,s?"Added or changed":"Route"]]:[],e[6]=a,e[7]=s,e[8]=r):r=e[8];let c,u,d;e[9]!==a?(c=a.has("same")?[[Es.lgSame,"Unchanged"]]:[],u=a.has("muted")?[[Es.lgMuted,"Muted"]]:[],d=a.has("gone")?[[Es.lgGone,"Removed"]]:[],e[9]=a,e[10]=c,e[11]=u,e[12]=d):(c=e[10],u=e[11],d=e[12]);let m;if(e[13]!==r||e[14]!==c||e[15]!==u||e[16]!==d){const f=[i,...r,...c,...u,...d];m=o.jsx(gs,{items:f}),e[13]=r,e[14]=c,e[15]=u,e[16]=d,e[17]=m}else m=e[17];return m}function nB(){const t=fe.c(4),e=Q.useRef(null),[n,s]=Q.useState(0);let l,a;t[0]===Symbol.for("react.memo_cache_sentinel")?(l=()=>{const r=e.current;if(!r)return;const c=()=>s(r.clientWidth);c();const u=new ResizeObserver(c);return u.observe(r),()=>u.disconnect()},a=[],t[0]=l,t[1]=a):(l=t[0],a=t[1]),Q.useLayoutEffect(l,a);let i;return t[2]!==n?(i=[e,n],t[2]=n,t[3]=i):i=t[3],i}const n6="mcp-bridge-zoom",R0=new Set,sB=()=>fa(n6)==="whole"?"whole":"change";let s6=null;const lB=()=>s6??(s6=sB()),aB=t=>(R0.add(t),()=>R0.delete(t));function oB(){const t=fe.c(2),e=Q.useSyncExternalStore(aB,lB),n=iB;let s;return t[0]!==e?(s=[e,n],t[0]=e,t[1]=s):s=t[1],s}function iB(t){s6=t,xl(n6,t),R0.forEach(rB)}function rB(t){return t()}const cB={switch:"_switch_rmvq3_2"};function uB(t){const e=fe.c(17),{zoom:n,onChange:s,span:l,total:a}=t,i=n==="change";let r;e[0]!==s?(r=()=>s("change"),e[0]=s,e[1]=r):r=e[1];const c=`Zoom in around the change (${l}), so it's easy to see`;let u;e[2]===Symbol.for("react.memo_cache_sentinel")?(u=o.jsx(un.Focus,{}),e[2]=u):u=e[2];let d;e[3]!==i||e[4]!==r||e[5]!==c?(d=o.jsxs("button",{"aria-pressed":i,onClick:r,title:c,children:[u," Change"]}),e[3]=i,e[4]=r,e[5]=c,e[6]=d):d=e[6];const m=n==="whole";let f;e[7]!==s?(f=()=>s("whole"),e[7]=s,e[8]=f):f=e[8];const h=`Show the whole project (${a}), to see where the change sits`;let g;e[9]===Symbol.for("react.memo_cache_sentinel")?(g=o.jsx(un.Whole,{}),e[9]=g):g=e[9];let y;e[10]!==m||e[11]!==f||e[12]!==h?(y=o.jsxs("button",{"aria-pressed":m,onClick:f,title:h,children:[g," Whole"]}),e[10]=m,e[11]=f,e[12]=h,e[13]=y):y=e[13];let b;return e[14]!==y||e[15]!==d?(b=o.jsxs("div",{className:cB.switch,role:"group","aria-label":"Zoom",children:[d,y]}),e[14]=y,e[15]=d,e[16]=b):b=e[16],b}const dB={insert:"Opened",remove:"Cut",copy:"Copied to",section:"Copied to"},Xc=t=>`${t>0?"+":""}${t.toFixed(1)}`,q_=t=>{if(!t.length)return"–";const e=Math.min(...t),n=Math.max(...t);return e===n?Xc(e):`${Xc(e)}…${Xc(n)}`};function fB(t){const e=fe.c(18),{v:n,added:s,removed:l}=t;let a,i,r,c;if(e[0]!==s||e[1]!==l||e[2]!==n.lanes||e[3]!==n.moreTracks||e[4]!==n.op||e[5]!==n.span||e[6]!==n.to){a=n.lanes??[],c=a.map(pB).join(", ")+(n.moreTracks?` +${n.moreTracks}`:"");const f=P$(a),h=n.to??n.span;i=B.measureReadouts,r=n.op==="normalize"?o.jsxs(o.Fragment,{children:[o.jsx(Ue.Readout,{label:"Gain",value:q_(f.map(hB)),unit:"dB"}),o.jsx(Ue.Readout,{label:"Before",value:q_(f.map(mB)),unit:"dB"})]}):h?o.jsxs(o.Fragment,{children:[o.jsx(Ue.Readout,{label:n.op==="remove"?"From":"At",value:Ge(h[0],1)}),o.jsx(Ue.Readout,{label:"Length",value:(h[1]-h[0]).toFixed(1),unit:"s"}),o.jsx(Ue.Readout,{label:"Items",value:String(Math.max(s,l)),title:`${s} items where they are now, ${l} where they were`})]}):o.jsx(Ue.Readout,{label:"Items",value:String(Math.max(s,l)),title:`${s} items where they are now, ${l} where they were`}),e[0]=s,e[1]=l,e[2]=n.lanes,e[3]=n.moreTracks,e[4]=n.op,e[5]=n.span,e[6]=n.to,e[7]=a,e[8]=i,e[9]=r,e[10]=c}else a=e[7],i=e[8],r=e[9],c=e[10];const u=String(a.length+(n.moreTracks??0));let d;e[11]!==u||e[12]!==c?(d=o.jsx(Ue.Readout,{label:"Tracks",value:u,title:c}),e[11]=u,e[12]=c,e[13]=d):d=e[13];let m;return e[14]!==i||e[15]!==r||e[16]!==d?(m=o.jsxs("div",{className:i,children:[r,d]}),e[14]=i,e[15]=r,e[16]=d,e[17]=m):m=e[17],m}function mB(t){const[,e]=t;return e}function hB(t){const[e]=t;return e}function pB(t){return t.t}function vB(t){const e=fe.c(74),{v:n}=t,s=Math.max(1,n.len),l=Q$(n,s),[a,i]=oB(),r=l&&a==="change"?l:[0,s],c=r[1]-r[0],u=re=>re>=r[0]&&re<=r[1],d=re=>`${Jt(re,r[0],r[1])}%`,m=(re,Ee)=>Jt(Ee,r[0],r[1])-Jt(re,r[0],r[1]),f=pi(n.regions,n.was?.regions),h=pi(n.markers,n.was?.markers),g=pi(n.tempo,n.was?.tempo),y=[...n.tempo,...g.removed].map(NB),b=new Set(y).size>1,p=n.tempo[0],v=n.op==="insert"||n.op==="remove"?n.span:n.to,_=n.op&&dB[n.op],x=p&&p[2]>0?`${p[2]}/${p[3]}`:"–",k=!n.was||g.removed.length>1?void 0:g.added.size===1?[...g.added][0]:g.added.size===0&&g.removed.length===1?g.removed[0]:void 0,w=k&&n.was?Y_(n.was.tempo,k[0]):null,R=k?Y_(n.tempo,k[0]):null,j=jB,N=f.added.size+h.added.size+g.added.size,E=f.removed.length+h.removed.length+g.removed.length,[C,O]=nB(),M=[...h.removed,...n.markers],A=X$(M.map(re=>[u(re[0])?Jt(re[0],r[0],r[1])/100:re[0]<r[0]?-10:10,String(re[1]||re[3])]),O||1e6,new Set(M.flatMap((re,Ee)=>Ee<h.removed.length||h.added.has(re)?[Ee]:[]))),T=n.sel!==void 0||n.cur!==void 0||n.wasSel!==void 0,S=T||n.lanes!==void 0,$=re=>!(!S&&A.has(re)),L=re=>!O||(Math.min(re[1],r[1])-Math.max(re[0],r[0]))/c*O>=28,z=n.lanes??[],D=z.map(wB),U=D.reduce(kB,0),I=D.reduce(SB,0),F=z.some(xB),P=n.op?o.jsx(fB,{v:n,added:U,removed:I}):T?o.jsxs("div",{className:B.measureReadouts,children:[o.jsx(Ue.Readout,{label:"Selection",value:n.sel?Ge(n.sel[0],1):"none"}),o.jsx(Ue.Readout,{label:"End",value:n.sel?Ge(n.sel[1],1):"–"}),o.jsx(Ue.Readout,{label:"Length",value:n.sel?(n.sel[1]-n.sel[0]).toFixed(1):"–",unit:n.sel?"s":void 0}),o.jsx(Ue.Readout,{label:"Cursor",value:Ge(n.cur??0,1)})]}):n.lanes?o.jsxs("div",{className:B.measureReadouts,children:[o.jsx(Ue.Readout,{label:"Items",value:String(z.reduce(bB,0))}),F?o.jsx(Ue.Readout,{label:"Items",value:String(Math.max(U,I)),title:`${U} items where they are now, ${I} where they were`}):o.jsx(Ue.Readout,{label:"MIDI",value:String(z.reduce(_B,0))}),o.jsx(Ue.Readout,{label:z.length>1?"Tracks":"Track",value:z.map(gB).join(", ")})]}):o.jsxs("div",{className:B.measureReadouts,children:[o.jsx(Ue.Readout,{label:"Tempo",value:k?j(w?String(w.bpm):void 0,R?String(R.bpm):void 0):p?b?`${Math.min(...y)}–${Math.max(...y)}`:String(p[1]):"–",unit:"BPM",title:k?`At ${Ge(k[0],1)}`:void 0}),o.jsx(Ue.Readout,{label:"Time sig",value:k?j(w?.sig,R?.sig):x,title:k?`At ${Ge(k[0],1)}`:void 0}),n.was?o.jsx(Fu,{added:N,removed:E}):o.jsxs(o.Fragment,{children:[o.jsx(Ue.Readout,{label:"Regions",value:String(n.regions.length)}),o.jsx(Ue.Readout,{label:"Markers",value:String(n.markers.length)})]})]}),X=l&&o.jsxs("div",{className:Pe.zoomBar,children:[o.jsx("span",{children:a==="whole"?`0:00–${Ge(s)}, the whole project`:`${Ge(r[0])}–${Ge(r[1])} of ${Ge(s)}`}),o.jsx(uB,{zoom:a,onChange:i,span:`${Ge(l[0])}–${Ge(l[1])}`,total:Ge(s)})]}),Y=Pe,Z=n.span&&(n.op==="copy"||n.op==="section")&&o.jsx("span",{className:Pe.evSpan,"data-span":"source",style:{left:d(n.span[0]),width:`${m(n.span[0],n.span[1])}%`},title:`Source ${Ge(n.span[0],1)}–${Ge(n.span[1],1)}`}),V=v&&o.jsx("span",{className:Pe.evSpan,"data-span":n.op==="remove"?"cut":void 0,style:{left:d(v[0]),width:`${m(v[0],v[1])}%`},title:`${_||""} ${Ge(v[0],1)}–${Ge(v[1],1)}`}),H=n.wasSel&&o.jsx("span",{className:K(Pe.evSel,Pe.evSelWas),style:{left:d(n.wasSel[0]),width:`${m(n.wasSel[0],n.wasSel[1])}%`},title:`Selection before: ${Ge(n.wasSel[0],1)}–${Ge(n.wasSel[1],1)}`}),W=n.sel&&o.jsx("span",{className:Pe.evSel,style:{left:d(n.sel[0]),width:`${m(n.sel[0],n.sel[1])}%`},title:`Selection ${Ge(n.sel[0],1)}–${Ge(n.sel[1],1)}`}),J=n.wasCur!==void 0&&n.wasCur!==n.cur&&o.jsx("span",{className:K(Pe.evCur,Pe.evCurWas),style:{left:d(n.wasCur)},title:`Cursor before: ${Ge(n.wasCur,1)}`}),ce=n.cur!==void 0&&o.jsx("span",{className:Pe.evCur,style:{left:d(n.cur)},title:`Cursor ${Ge(n.cur,1)}`}),ee=(n.markers.length>0||h.removed.length>0)&&o.jsxs("div",{className:K(Pe.evLane,Pe.evLaneMarkers,S?Pe.evLaneContext:""),children:[h.removed.map((re,Ee)=>o.jsxs("span",{className:K(Pe.evMarker,Pe.evGone,$(Ee)&&Pe.evQuiet),hidden:!u(re[0]),style:{left:d(re[0])},title:`Removed: ${re[1]||`Marker ${re[3]}`} at ${Ge(re[0],1)}`,children:[o.jsx("i",{}),o.jsx("b",{children:re[1]||re[3]})]},`r${re[3]}${re[0]}`)),n.markers.map((re,Ee)=>o.jsxs("span",{className:K(Pe.evMarker,h.added.has(re)&&Pe.evNew,$(h.removed.length+Ee)&&Pe.evQuiet),hidden:!u(re[0]),style:{left:d(re[0]),...re[2]?{"--mk":re[2]}:{}},title:`${re[1]||`Marker ${re[3]}`} at ${Ge(re[0],1)}`,children:[o.jsx("i",{}),o.jsx("b",{children:re[1]||re[3]})]},`${re[3]}${re[0]}`))]});let he;e[0]===Symbol.for("react.memo_cache_sentinel")?(he=K(Pe.evLane,Pe.evLaneRegions),e[0]=he):he=e[0];const pe=f.removed.map(re=>o.jsx("span",{className:K(Pe.evRegion,Pe.evGone),style:{left:d(re[0]),width:`calc(${m(re[0],re[1])}% - 1px)`},title:`Removed: ${re[2]||`Region ${re[4]}`}`},`r${re[4]}${re[0]}`)),G=n.regions.map((re,Ee)=>o.jsx("span",{className:K(Pe.evRegion,f.added.has(re)?Pe.evNew:""),style:{left:d(re[0]),width:`calc(${m(re[0],re[1])}% - 1px)`,"--rg":kM(re[3],Ee)},title:`${re[2]||`Region ${re[4]}`} · ${Ge(re[0],1)}–${Ge(re[1],1)}`,children:L(re)&&re[2]},`${re[4]}${re[0]}`));let ae;e[1]!==he||e[2]!==pe||e[3]!==G?(ae=o.jsxs("div",{className:he,children:[pe,G]}),e[1]=he,e[2]=pe,e[3]=G,e[4]=ae):ae=e[4];let oe;e[5]!==n.items||e[6]!==r?(oe=n.items&&o.jsx(X_,{items:n.items,win:r}),e[5]=n.items,e[6]=r,e[7]=oe):oe=e[7];let ye;e[8]!==n.lanes||e[9]!==r?(ye=n.lanes?.map((re,Ee)=>o.jsx(X_,{items:re.items,was:re.was,win:r,name:re.t},Ee)),e[8]=n.lanes,e[9]=r,e[10]=ye):ye=e[10];let _e;e[11]!==n.moreTracks?(_e=n.moreTracks?o.jsxs("span",{className:B.evMore,children:["+",n.moreTracks," more ",n.moreTracks===1?"track":"tracks"," changed the same way"]}):null,e[11]=n.moreTracks,e[12]=_e):_e=e[12];let ne;e[13]!==g||e[14]!==n.tempo||e[15]!==b||e[16]!==r?(ne=(b||g.added.size>0||g.removed.length>0)&&o.jsx(TB,{tempo:n.tempo,removed:g.removed,added:g.added,win:r}),e[13]=g,e[14]=n.tempo,e[15]=b,e[16]=r,e[17]=ne):ne=e[17];let te;e[18]!==C||e[19]!==ee||e[20]!==ae||e[21]!==oe||e[22]!==ye||e[23]!==_e||e[24]!==ne||e[25]!==Y.evTimeline||e[26]!==Z||e[27]!==V||e[28]!==H||e[29]!==W||e[30]!==J||e[31]!==ce?(te=o.jsxs("div",{className:Y.evTimeline,ref:C,children:[Z,V,H,W,J,ce,ee,ae,oe,ye,_e,ne]}),e[18]=C,e[19]=ee,e[20]=ae,e[21]=oe,e[22]=ye,e[23]=_e,e[24]=ne,e[25]=Y.evTimeline,e[26]=Z,e[27]=V,e[28]=H,e[29]=W,e[30]=J,e[31]=ce,e[32]=te):te=e[32];let ie;e[33]===Symbol.for("react.memo_cache_sentinel")?(ie=K(B.measureScaleWords,"mono"),e[33]=ie):ie=e[33];let de;e[34]!==r[0]?(de=Ge(r[0]),e[34]=r[0],e[35]=de):de=e[35];let xe;e[36]!==de?(xe=o.jsx("span",{children:de}),e[36]=de,e[37]=xe):xe=e[37];const Ne=r[0]+c/2;let Te;e[38]!==Ne?(Te=Ge(Ne),e[38]=Ne,e[39]=Te):Te=e[39];let Ae;e[40]!==Te?(Ae=o.jsx("span",{children:Te}),e[40]=Te,e[41]=Ae):Ae=e[41];let Re;e[42]!==r[1]?(Re=Ge(r[1]),e[42]=r[1],e[43]=Re):Re=e[43];let Le;e[44]!==Re?(Le=o.jsx("span",{children:Re}),e[44]=Re,e[45]=Le):Le=e[45];let De;e[46]!==xe||e[47]!==Ae||e[48]!==Le?(De=o.jsxs("div",{className:ie,children:[xe,Ae,Le]}),e[46]=xe,e[47]=Ae,e[48]=Le,e[49]=De):De=e[49];let we;e[50]!==U||e[51]!==I||e[52]!==_||e[53]!==n.op||e[54]!==n.span||e[55]!==n.to?(we=(U>0||I>0||n.op)&&o.jsx(gs,{items:[...n.op==="copy"||n.op==="section"?[[B.lgSpanSrc,"Source"]]:[],..._&&(n.to||n.span)?[[n.op==="remove"?K(B.lgSpan,B.lgSpanCut):B.lgSpan,_]]:[],[B.lgNewMark,n.op==="normalize"?"New gain":"Added or changed"],[B.lgGoneMark,"Before"]]}),e[50]=U,e[51]=I,e[52]=_,e[53]=n.op,e[54]=n.span,e[55]=n.to,e[56]=we):we=e[56];let Ce;e[57]!==T||e[58]!==n.wasCur||e[59]!==n.wasSel?(Ce=T&&(n.wasSel!==void 0||n.wasCur!==void 0)&&o.jsx(gs,{items:[[B.lgSel,"Now"],[B.lgGoneMark,"Before"]]}),e[57]=T,e[58]=n.wasCur,e[59]=n.wasSel,e[60]=Ce):Ce=e[60];let Oe;e[61]!==N||e[62]!==E||e[63]!==n.op||e[64]!==n.was?(Oe=n.was&&!n.op&&(N>0||E>0)&&o.jsx(gs,{items:[[B.lgNewMark,"Added or changed"],[B.lgGoneMark,"Removed"]]}),e[61]=N,e[62]=E,e[63]=n.op,e[64]=n.was,e[65]=Oe):Oe=e[65];let Xe;return e[66]!==P||e[67]!==te||e[68]!==X||e[69]!==De||e[70]!==we||e[71]!==Ce||e[72]!==Oe?(Xe=o.jsxs(o.Fragment,{children:[P,X,te,De,we,Ce,Oe]}),e[66]=P,e[67]=te,e[68]=X,e[69]=De,e[70]=we,e[71]=Ce,e[72]=Oe,e[73]=Xe):Xe=e[73],Xe}function gB(t){return t.t}function _B(t,e){return t+e.items.filter(yB).length}function yB(t){return t[4]}function bB(t,e){return t+e.items.length}function xB(t){return t.was}function SB(t,e){return t+e.removed.length}function kB(t,e){return t+e.added.size}function wB(t){return pi(t.items,t.was)}function jB(t,e){return t!==void 0&&e!==void 0&&t!==e?`${t} → ${e}`:e??t??"–"}function NB(t){return t[1]}const Sd=40;function Y_(t,e){let n,s="–";for(const l of[...t].sort((a,i)=>a[0]-i[0])){if(l[0]>e+1e-6)break;n=l[1],l[2]>0&&(s=`${l[2]}/${l[3]}`)}return n===void 0?null:{bpm:n,sig:s}}function TB(t){const e=fe.c(55),{tempo:n,removed:s,added:l,win:a}=t,[i,r]=Q.useState(null);let c;e[0]!==s||e[1]!==n?(c=[...n,...s].map($B),e[0]=s,e[1]=n,e[2]=c):c=e[2];const u=c,d=Math.max(...u)+2,m=Math.min(...u)-2;let f;e[3]!==a[0]||e[4]!==a[1]?(f=S=>(S-a[0])/(a[1]-a[0])*vn,e[3]=a[0],e[4]=a[1],e[5]=f):f=e[5];const h=f;let g;e[6]!==m||e[7]!==d?(g=S=>(d-S)/(d-m)*Sd,e[6]=m,e[7]=d,e[8]=g):g=e[8];const y=g;let b;e[9]!==h||e[10]!==y?(b=S=>{const $=[...S].sort(EB);if(!$.length)return"";let L=`M0,${y($[0][1])}`;return $.forEach((z,D)=>{L=L+(D===0?`H${h(z[0])}`:$[D-1][4]?`L${h(z[0])},${y(z[1])}`:`H${h(z[0])}V${y(z[1])}`)}),`${L}H${vn}`},e[9]=h,e[10]=y,e[11]=b):b=e[11];const p=b;let v;e[12]!==a[0]||e[13]!==a[1]?(v=S=>S[0]>=a[0]&&S[0]<=a[1],e[12]=a[0],e[13]=a[1],e[14]=v):v=e[14];const _=v;let x;e[15]!==_||e[16]!==n||e[17]!==a[0]||e[18]!==a[1]?(x=S=>{const $=S.currentTarget.getBoundingClientRect(),L=a[0]+(S.clientX-$.left)/$.width*(a[1]-a[0]);r(n.filter(_).reduce((z,D)=>!z||Math.abs(D[0]-L)<Math.abs(z[0]-L)?D:z,null))},e[15]=_,e[16]=n,e[17]=a[0],e[18]=a[1],e[19]=x):x=e[19];const k=x;let w,R;e[20]===Symbol.for("react.memo_cache_sentinel")?(w=()=>r(null),R=o.jsx("span",{className:K(Pe.evTempoLabel,"mono"),children:"tempo"}),e[20]=w,e[21]=R):(w=e[20],R=e[21]);const j=`Tempo from ${Math.min(...u)} to ${Math.max(...u)} BPM`;let N;e[22]!==l||e[23]!==p||e[24]!==s||e[25]!==n?(N=s.length>0&&o.jsx("path",{className:B.spectrumPrevious,d:p([...n.filter(S=>!l.has(S)),...s]),vectorEffect:"non-scaling-stroke"}),e[22]=l,e[23]=p,e[24]=s,e[25]=n,e[26]=N):N=e[26];const E=p(n);let C;e[27]!==E?(C=o.jsx("path",{className:Ct.evEnvLine,d:E,vectorEffect:"non-scaling-stroke"}),e[27]=E,e[28]=C):C=e[28];let O;e[29]!==N||e[30]!==C||e[31]!==j?(O=o.jsxs("svg",{viewBox:`0 0 ${vn} ${Sd}`,preserveAspectRatio:"none",role:"img","aria-label":j,children:[N,C]}),e[29]=N,e[30]=C,e[31]=j,e[32]=O):O=e[32];let M;if(e[33]!==l||e[34]!==i||e[35]!==_||e[36]!==n||e[37]!==h||e[38]!==y){let S;e[40]!==l||e[41]!==i||e[42]!==_||e[43]!==h||e[44]!==y?(S=($,L)=>o.jsx("span",{className:K(Ct.evDot,l.has($)?Ct.evDotNew:"",$===i?Ct.evDotHover:""),hidden:!_($),style:{left:`${h($[0])/vn*100}%`,top:`${y($[1])/Sd*100}%`}},L),e[40]=l,e[41]=i,e[42]=_,e[43]=h,e[44]=y,e[45]=S):S=e[45],M=n.map(S),e[33]=l,e[34]=i,e[35]=_,e[36]=n,e[37]=h,e[38]=y,e[39]=M}else M=e[39];let A;e[46]!==i||e[47]!==h||e[48]!==y?(A=i&&o.jsxs(Tu,{left:h(i[0])/vn*100,top:y(i[1])/Sd*100,children:[i[1]," BPM",i[2]>0?` · ${i[2]}/${i[3]}`:""," at ",Ge(i[0],1)]}),e[46]=i,e[47]=h,e[48]=y,e[49]=A):A=e[49];let T;return e[50]!==k||e[51]!==O||e[52]!==M||e[53]!==A?(T=o.jsxs("div",{className:Pe.evTempo,onPointerMove:k,onPointerLeave:w,children:[R,O,M,A]}),e[50]=k,e[51]=O,e[52]=M,e[53]=A,e[54]=T):T=e[54],T}function EB(t,e){return t[0]-e[0]}function $B(t){return t[1]}function X_(t){const e=fe.c(33),{items:n,was:s,win:l,name:a}=t;let i;e[0]!==l?(i=_=>`${Jt(_,l[0],l[1])}%`,e[0]=l,e[1]=i):i=e[1];const r=i;let c;e[2]!==l?(c=_=>`calc(${Jt(_[0]+_[1],l[0],l[1])-Jt(_[0],l[0],l[1])}% - 1px)`,e[2]=l,e[3]=c):c=e[3];const u=c;let d,m,f,h,g,y;if(e[4]!==r||e[5]!==n||e[6]!==a||e[7]!==s||e[8]!==u){const{added:_,removed:x}=pi(n,s);d=x,g=Pe.evLaneWrap,e[15]!==a?(y=a&&o.jsx("div",{className:Pe.evLaneName,children:a}),e[15]=a,e[16]=y):y=e[16],e[17]===Symbol.for("react.memo_cache_sentinel")?(m=K(Pe.evLane,Pe.evLaneItems),e[17]=m):m=e[17];let k;e[18]!==r||e[19]!==u?(k=(w,R)=>o.jsx("span",{className:K(Pe.evItem,Pe.evGone),style:{left:r(w[0]),width:u(w)},title:`Before · ${Ge(w[0],1)}–${Ge(w[0]+w[1],1)}`},`gone${R}`),e[18]=r,e[19]=u,e[20]=k):k=e[20],f=d.map(k),h=n.map((w,R)=>o.jsxs("span",{className:K(Pe.evItem,w[4]?Pe.evItemMidi:"",w[5]?Pe.evItemMuted:"",_.has(w)?Pe.evNew:""),style:{left:r(w[0]),width:u(w)},title:`${w[4]?"MIDI":"Audio"} item · ${Ge(w[0],1)}–${Ge(w[0]+w[1],1)}${w[5]?" · muted":""}${w[6]!==void 0?` · gain ${Xc(w[6])} dB`:""}`,children:[w[6]!==void 0&&_.has(w)&&o.jsx("b",{className:K(Pe.evItemGain,"mono"),children:Xc(w[6])}),w[2]>0&&o.jsx("i",{className:Pe.evFadeIn,style:{width:`${w[2]/w[1]*100}%`}}),w[3]>0&&o.jsx("i",{className:Pe.evFadeOut,style:{width:`${w[3]/w[1]*100}%`}})]},R)),e[4]=r,e[5]=n,e[6]=a,e[7]=s,e[8]=u,e[9]=d,e[10]=m,e[11]=f,e[12]=h,e[13]=g,e[14]=y}else d=e[9],m=e[10],f=e[11],h=e[12],g=e[13],y=e[14];let b;e[21]!==n.length||e[22]!==d?(b=n.length===0&&d.length===0&&o.jsx("span",{className:K(B.evMore,Pe.evLaneEmpty),children:"No items"}),e[21]=n.length,e[22]=d,e[23]=b):b=e[23];let p;e[24]!==m||e[25]!==f||e[26]!==h||e[27]!==b?(p=o.jsxs("div",{className:m,children:[f,h,b]}),e[24]=m,e[25]=f,e[26]=h,e[27]=b,e[28]=p):p=e[28];let v;return e[29]!==g||e[30]!==y||e[31]!==p?(v=o.jsxs("div",{className:g,children:[y,p]}),e[29]=g,e[30]=y,e[31]=p,e[32]=v):v=e[32],v}function RB(t){const e=fe.c(22),{entry:n}=t;let s,l,a,i,r,c;if(e[0]!==n){c=Symbol.for("react.early_return_sentinel");e:{const m=Ms(n);if(!m){c=null;break e}const f=!CB.has(n.c)&&!(m.kind==="plan"&&m.dryRun);a=B.measure,i=K_[m.kind];const h=K_[m.kind];let g;e[7]!==h?(g=o.jsx("span",{children:h}),e[7]=h,e[8]=g):g=e[8];const y=f?"before → after":"as it is now";let b;e[9]!==y?(b=o.jsx("span",{className:B.measureHeadNote,children:y}),e[9]=y,e[10]=b):b=e[10],e[11]!==b||e[12]!==g?(r=o.jsxs("div",{className:B.measureHead,children:[g,b]}),e[11]=b,e[12]=g,e[13]=r):r=e[13],s=B.measureBody,l=MB(m)}e[0]=n,e[1]=s,e[2]=l,e[3]=a,e[4]=i,e[5]=r,e[6]=c}else s=e[1],l=e[2],a=e[3],i=e[4],r=e[5],c=e[6];if(c!==Symbol.for("react.early_return_sentinel"))return c;let u;e[14]!==s||e[15]!==l?(u=o.jsx("div",{className:s,children:l}),e[14]=s,e[15]=l,e[16]=u):u=e[16];let d;return e[17]!==a||e[18]!==i||e[19]!==r||e[20]!==u?(d=o.jsxs("section",{className:a,"aria-label":i,children:[r,u]}),e[17]=a,e[18]=i,e[19]=r,e[20]=u,e[21]=d):d=e[21],d}const K_={changes:"Settings",envelope:"Automation",midi:"Notes",midiStats:"Velocity by pitch",timeline:"Timeline",mixer:"Tracks",fxChain:"Plugin chain",routing:"Routing",plan:"Plan",record:"Record setup",lanes:"Lanes",modulation:"Modulation",pins:"Plugin pins",stretch:"Stretch markers",render:"Rendered files"},CB=new Set(["render_project","render_versions","get_envelope_points","get_midi_cc","get_midi_notes","analyze_midi","list_markers","list_regions","get_tempo_map","list_media_items","list_tracks","list_midi_items","get_track_properties","get_track_routing","get_time_selection","get_fx_parameters","get_record_setup","get_track_lanes","get_fx_param_modulation","get_fx_pins","list_monitoring_fx"]);function MB(t){switch(t.kind){case"changes":return o.jsx(aA,{rows:t.rows,more:t.more});case"envelope":return o.jsx(XA,{v:t});case"midi":return o.jsx(VA,{v:t});case"midiStats":return o.jsx(JL,{v:t});case"timeline":return o.jsx(vB,{v:t});case"mixer":return o.jsx(oO,{v:t});case"plan":return o.jsx(fO,{v:t});case"fxChain":return o.jsx(BL,{v:t});case"routing":return o.jsx(Hz,{v:t});case"render":return o.jsx(mz,{v:t});case"record":return o.jsx(QO,{v:t});case"lanes":return o.jsx(EO,{v:t});case"modulation":return o.jsx(_D,{v:t});case"pins":return o.jsx(BD,{v:t});case"stretch":return o.jsx(jz,{v:t})}}const AB={Section:RB},Wf=128,yv=500;function LB(t){return`/_/SET/EXTSTATE/MCPBridge/snap_seen/${t};GET/EXTSTATE/MCPBridge/snapshots`}function OB(t){return Array.from(new TextEncoder().encode(t),e=>e.toString(16).padStart(2,"0")).join("")}function D1(t,e){let n="",s=0;for(const l of t){if(s+=new TextEncoder().encode(l).length,s>e)break;n+=l}return n}function DB(t,e,n,s,l="",a=""){const i=t==="save"||t==="edit"?D1(l.trim(),yv):"",r=[D1(s.trim(),Wf)];return t==="edit"?r.push(D1(a.trim(),Wf),i):i&&r.push(i),`/_/SET/EXTSTATE/MCPBridge/snap_req/${e}-${n}-${t}-${r.map(OB).join("-")}`}function l6(t){const e=t.trim();return e?new TextEncoder().encode(e).length>Wf?`Keep the name under ${Wf} characters`:null:"Give the snapshot a name"}function Q_(t){return Array.from(new TextEncoder().encode(t.trim()),n=>{const s=String.fromCharCode(n);return n<128&&/[A-Za-z0-9\-_.\s]/.test(s)?s:"_"}).join("").replace(/\s+/g,"_")}function zB(t,e=new Date){const n=a=>String(a).padStart(2,"0"),s=`${e.getFullYear()}-${n(e.getMonth()+1)}-${n(e.getDate())} ${n(e.getHours())}:${n(e.getMinutes())}:${n(e.getSeconds())}`;let l=s;for(let a=2;Am(t,l);a++)l=`${s} ${a}`;return l}function Am(t,e){const n=Q_(e);return t.find(s=>Q_(s.name)===n)??null}function BB(t){const e=t;return typeof t=="object"&&t!==null&&typeof e.name=="string"&&typeof e.timestamp=="number"}function IB(t){const e=t;if(!(typeof t!="object"||t===null||typeof e.id!="string"||!["restore","save","delete","edit","clear"].includes(e.op)))return{...e,ok:e.ok===!0,warnings:Array.isArray(e.warnings)&&e.warnings.length>0?e.warnings.filter(n=>typeof n=="string"):void 0}}function UB(t){const e=Io(t,"snapshots");if(!e||typeof e!="object"||e.v!==1)return null;const n=Array.isArray(e.snapshots)?e.snapshots.filter(BB):[];return{v:1,storage:e.storage==="global"?"global":"project",current:typeof e.current=="string"?e.current:void 0,snapshots:n.map(s=>({name:s.name,description:typeof s.description=="string"?s.description:"",timestamp:s.timestamp,trackCount:typeof s.trackCount=="number"?s.trackCount:void 0,scoped:s.scoped===!0,fullChunk:s.fullChunk===!0})),result:IB(e.result)}}const HB=8e3;function VB(t,e,n){return!t||t.state!=="pending"?t:e?.result?.id===t.id?{...t,state:"done",result:e.result}:n-t.at>HB?{...t,state:"lost"}:t}function a6(t){return{v:1,storage:"project",current:"mix-B",snapshots:[{name:"mix-C",description:"Vocal up 1 dB, darker reverb",timestamp:t-4*6e4,trackCount:24,scoped:!1,fullChunk:!1},{name:"mix-B",description:"Wider chorus guitars, Helix on snapshot 3",timestamp:t-18*6e4,trackCount:3,scoped:!0,fullChunk:!0},{name:"mix-A",description:"",timestamp:t-62*6e4,trackCount:24,scoped:!1,fullChunk:!1},{name:"before-bus-comp",description:"Pre mix-bus compression",timestamp:t-26*60*6e4,trackCount:22,scoped:!1,fullChunk:!1}]}}function GB(t){return t?.paused?"Paused: resume the bridge to restore or save snapshots":t?.readonly?"Read-only: turn it off in Settings to restore or save snapshots":null}const FB="_snapSave_v7oiz_1",PB="_snapInput_v7oiz_2",qB="_snapInputDesc_v7oiz_3",YB="_snapHint_v7oiz_7",XB="_snapHintBad_v7oiz_8",pl={snapSave:FB,snapInput:PB,snapInputDesc:qB,snapHint:YB,snapHintBad:XB},KB="_snapEdit_1kutk_1",QB={snapEdit:KB};function o6(t){const e=fe.c(47),{snapshot:n,snapshots:s,onSave:l,onCancel:a}=t,[i,r]=Q.useState(n.name),[c,u]=Q.useState(n.description);let d;e[0]!==i?(d=l6(i),e[0]=i,e[1]=d):d=e[1];const m=d;let f;e[2]!==i||e[3]!==m||e[4]!==n.name||e[5]!==s?(f=m?null:Am(s.filter(S=>S.name!==n.name),i),e[2]=i,e[3]=m,e[4]=n.name,e[5]=s,e[6]=f):f=e[6];const h=f;let g;e[7]!==c||e[8]!==i||e[9]!==n.description||e[10]!==n.name?(g=i.trim()===n.name&&c.trim()===n.description,e[7]=c,e[8]=i,e[9]=n.description,e[10]=n.name,e[11]=g):g=e[11];const y=g;let b;e[12]!==c||e[13]!==i||e[14]!==a||e[15]!==l||e[16]!==m||e[17]!==h||e[18]!==y?(b=S=>{if(S.preventDefault(),!(m||h)){if(y)return a();l(i.trim(),c.trim())}},e[12]=c,e[13]=i,e[14]=a,e[15]=l,e[16]=m,e[17]=h,e[18]=y,e[19]=b):b=e[19];const p=b;let v;e[20]===Symbol.for("react.memo_cache_sentinel")?(v=K(pl.snapSave,QB.snapEdit),e[20]=v):v=e[20];let _;e[21]!==a?(_=S=>{S.key==="Escape"&&a()},e[21]=a,e[22]=_):_=e[22];const x=`Edit ${n.name}`;let k;e[23]===Symbol.for("react.memo_cache_sentinel")?(k=S=>r(S.target.value),e[23]=k):k=e[23];const w=m||h?!0:void 0;let R;e[24]!==i||e[25]!==w?(R=o.jsx("input",{className:pl.snapInput,value:i,onChange:k,"aria-label":"New name","aria-invalid":w,spellCheck:!1,autoFocus:!0}),e[24]=i,e[25]=w,e[26]=R):R=e[26];let j;e[27]===Symbol.for("react.memo_cache_sentinel")?(j=K(pl.snapInput,pl.snapInputDesc),e[27]=j):j=e[27];let N;e[28]===Symbol.for("react.memo_cache_sentinel")?(N=S=>u(S.target.value),e[28]=N):N=e[28];let E;e[29]!==c?(E=o.jsx("input",{className:j,value:c,onChange:N,placeholder:"Description (optional)","aria-label":"Description",maxLength:yv}),e[29]=c,e[30]=E):E=e[30];const C=!!(m||h);let O;e[31]!==C?(O=o.jsx("button",{className:"btn",type:"submit",disabled:C,children:"Save"}),e[31]=C,e[32]=O):O=e[32];let M;e[33]!==a?(M=o.jsx("button",{className:"btn",type:"button",onClick:a,children:"Cancel"}),e[33]=a,e[34]=M):M=e[34];let A;e[35]!==m||e[36]!==h?(A=(m||h)&&o.jsx("span",{className:K(pl.snapHint,pl.snapHintBad),role:"status",children:m??`“${h?.name}” already uses that name.`}),e[35]=m,e[36]=h,e[37]=A):A=e[37];let T;return e[38]!==p||e[39]!==R||e[40]!==E||e[41]!==O||e[42]!==M||e[43]!==A||e[44]!==_||e[45]!==x?(T=o.jsxs("form",{className:v,onSubmit:p,onKeyDown:_,"aria-label":x,children:[R,E,O,M,A]}),e[38]=p,e[39]=R,e[40]=E,e[41]=O,e[42]=M,e[43]=A,e[44]=_,e[45]=x,e[46]=T):T=e[46],T}function bv(t){const e=fe.c(27),{snapshots:n,blocked:s,saving:l,onSave:a,initial:i}=t,[r,c]=Q.useState(i?.name??""),[u,d]=Q.useState(i?.description??""),[m,f]=Q.useState(i?.confirm??!1);let h;e[0]!==r||e[1]!==n?(h=r.trim()?Am(n,r):null,e[0]=r,e[1]=n,e[2]=h):h=e[2];const g=h;let y;if(e[3]!==s||e[4]!==m||e[5]!==u||e[6]!==r||e[7]!==a||e[8]!==g||e[9]!==l){const b=r.trim()?l6(r):null,p=T=>{if(T.preventDefault(),!(s||l||b)){if(g&&!m){f(!0);return}a(r.trim(),u.trim()),c(""),d(""),f(!1)}};let v;e[11]===Symbol.for("react.memo_cache_sentinel")?(v=T=>{c(T.target.value),f(!1)},e[11]=v):v=e[11];const _=b?!0:void 0,x=!!s;let k;e[12]!==r||e[13]!==_||e[14]!==x?(k=o.jsx("input",{className:pl.snapInput,value:r,onChange:v,placeholder:"Name (blank: date and time)","aria-label":"Snapshot name","aria-invalid":_,spellCheck:!1,disabled:x}),e[12]=r,e[13]=_,e[14]=x,e[15]=k):k=e[15];let w;e[16]===Symbol.for("react.memo_cache_sentinel")?(w=K(pl.snapInput,pl.snapInputDesc),e[16]=w):w=e[16];let R;e[17]===Symbol.for("react.memo_cache_sentinel")?(R=T=>d(T.target.value),e[17]=R):R=e[17];const j=!!s;let N;e[18]!==u||e[19]!==j?(N=o.jsx("input",{className:w,value:u,onChange:R,placeholder:"Description (optional)","aria-label":"Snapshot description",maxLength:yv,disabled:j}),e[18]=u,e[19]=j,e[20]=N):N=e[20];const E=m&&"btn-warn";let C;e[21]!==E?(C=K("btn",E),e[21]=E,e[22]=C):C=e[22];const O=!!s||l||!!b,M=l?"Saving…":m?`Replace ${g?.name??""}`:"Save current mix";let A;e[23]!==C||e[24]!==O||e[25]!==M?(A=o.jsx("button",{className:C,type:"submit",disabled:O,children:M}),e[23]=C,e[24]=O,e[25]=M,e[26]=A):A=e[26],y=o.jsxs("form",{className:pl.snapSave,onSubmit:p,"aria-label":"Save a snapshot",children:[k,N,A,(b||g&&!m)&&o.jsx("span",{className:K(pl.snapHint,b&&pl.snapHintBad),role:"status",children:b??`Saving replaces “${g?.name}”.`})]}),e[3]=s,e[4]=m,e[5]=u,e[6]=r,e[7]=a,e[8]=g,e[9]=l,e[10]=y}else y=e[10];return y}function ZB(t){const e=fe.c(6);let n;e[0]!==t.confirm||e[1]!==t.name?(n={name:t.name,confirm:t.confirm},e[0]=t.confirm,e[1]=t.name,e[2]=n):n=e[2];let s;return e[3]!==t.snapshots||e[4]!==n?(s=o.jsx(bv,{snapshots:t.snapshots,blocked:null,saving:!1,onSave:WB,initial:n}),e[3]=t.snapshots,e[4]=n,e[5]=s):s=e[5],s}function WB(){}const JB="_snaps_6ph84_3",eI="_snapBlocked_6ph84_4",tI="_snapResult_6ph84_5",nI="_snapWarnings_6ph84_10",sI="_snapList_6ph84_11",lI="_snapRow_6ph84_12",aI="_snapCurrent_6ph84_20",oI="_snapLoading_6ph84_21",iI="_snapKey_6ph84_22",rI="_snapMain_6ph84_23",cI="_snapName_6ph84_24",uI="_snapSub_6ph84_25",dI="_snapDesc_6ph84_26",fI="_snapMeta_6ph84_27",mI="_snapState_6ph84_28",hI="_snapFoot_6ph84_31",pI="_snapItem_6ph84_32",vI="_snapActions_6ph84_34",gI="_snapConfirmText_6ph84_37",_I="_snapClear_6ph84_50",an={snaps:JB,snapBlocked:eI,snapResult:tI,snapWarnings:nI,snapList:sI,snapRow:lI,snapCurrent:aI,snapLoading:oI,snapKey:iI,snapMain:rI,snapName:cI,snapSub:uI,snapDesc:dI,snapMeta:fI,snapState:mI,snapFoot:hI,snapItem:pI,snapActions:vI,snapConfirmText:gI,snapClear:_I};function yI(t){const e=fe.c(67),{feed:n,request:s,blocked:l,query:a,now:i,onSend:r,keys:c,initialRow:u}=t,d=a===void 0?"":a,m=c===void 0?!0:c,[f,h]=Q.useState(u??null),[g,y]=Q.useState(!1);let b;if(e[0]!==n?.snapshots||e[1]!==d){const V=d.trim().toLowerCase(),H=n?.snapshots??[];b=V?H.filter(W=>W.name.toLowerCase().includes(V)||W.description.toLowerCase().includes(V)):H,e[0]=n?.snapshots,e[1]=d,e[2]=b}else b=e[2];const p=b,v=s?.state==="pending"?s:null;let _;e[3]!==l||e[4]!==r?(_=V=>{l||r("restore",V.name)},e[3]=l,e[4]=r,e[5]=_):_=e[5];const x=_;let k;e[6]!==x||e[7]!==p?(k=V=>{if(V.target instanceof Element&&V.target.closest('[role="dialog"]'))return;const H=document.activeElement;if(V.repeat||V.metaKey||V.ctrlKey||V.altKey||H&&(H.tagName==="INPUT"||H.tagName==="TEXTAREA"))return;const W=V.shiftKey?Number(/^Digit([1-9])$/.exec(V.code)?.[1]):NaN,J=Number.isInteger(W)?p[W-1]:void 0;J&&(V.preventDefault(),x(J))},e[6]=x,e[7]=p,e[8]=k):k=e[8];const w=Q.useEffectEvent(k);let R;e[9]!==m||e[10]!==w?(R=()=>{if(!m)return;const V=H=>w(H);return window.addEventListener("keydown",V),()=>window.removeEventListener("keydown",V)},e[9]=m,e[10]=w,e[11]=R):R=e[11];let j;e[12]!==m?(j=[m],e[12]=m,e[13]=j):j=e[13],Q.useEffect(R,j);let N;e[14]!==n?.snapshots?(N=n?.snapshots??[],e[14]=n?.snapshots,e[15]=N):N=e[15];const E=N;let C;e[16]===Symbol.for("react.memo_cache_sentinel")?(C=K(Dt.rows,an.snaps),e[16]=C):C=e[16];const O=!!l;let M;e[17]!==r?(M=()=>r("save","",""),e[17]=r,e[18]=M):M=e[18];let A,T,S;e[19]===Symbol.for("react.memo_cache_sentinel")?(A=V=>h({name:V.name,mode:"edit"}),T=V=>h({name:V.name,mode:"delete"}),S=()=>y(!0),e[19]=A,e[20]=T,e[21]=S):(A=e[19],T=e[20],S=e[21]);let $;e[22]!==E||e[23]!==m||e[24]!==x||e[25]!==O||e[26]!==M?($=o.jsx(SI,{snapshots:E,blocked:O,keys:m,onLoad:x,onQuickSave:M,onRename:A,onDelete:T,onClearAll:S}),e[22]=E,e[23]=m,e[24]=x,e[25]=O,e[26]=M,e[27]=$):$=e[27];let L;e[28]!==n?.snapshots?(L=n?.snapshots??[],e[28]=n?.snapshots,e[29]=L):L=e[29];const z=v?.op==="save";let D;e[30]!==r?(D=(V,H)=>r("save",V,H),e[30]=r,e[31]=D):D=e[31];let U;e[32]!==l||e[33]!==L||e[34]!==z||e[35]!==D?(U=o.jsx(bv,{snapshots:L,blocked:l,saving:z,onSave:D}),e[32]=l,e[33]=L,e[34]=z,e[35]=D,e[36]=U):U=e[36];let I;e[37]!==l?(I=l&&o.jsx("p",{className:an.snapBlocked,role:"note",children:l}),e[37]=l,e[38]=I):I=e[38];let F;e[39]!==s?(F=o.jsx(bI,{request:s}),e[39]=s,e[40]=F):F=e[40];let P;e[41]!==l||e[42]!==n||e[43]!==m||e[44]!==x||e[45]!==i||e[46]!==r||e[47]!==v||e[48]!==d||e[49]!==f||e[50]!==p?(P=n===null?o.jsx("div",{className:Dt.empty,children:"Reading snapshots from the bridge…"}):n.snapshots.length===0?o.jsx("div",{className:Dt.empty,children:"No snapshots yet. Save the current mix to start comparing."}):p.length===0?o.jsxs("div",{className:Dt.empty,children:["No snapshot matches “",d.trim(),"”."]}):o.jsx("ol",{className:an.snapList,"aria-label":"Snapshots",children:p.map((V,H)=>{const W=n.current===V.name,J=v?.op==="restore"&&v.name===V.name,ce=f?.name===V.name?f.mode:null;return ce==="edit"?o.jsx("li",{children:o.jsx(o6,{snapshot:V,snapshots:n.snapshots,onCancel:()=>h(null),onSave:(ee,he)=>{r("edit",V.name,he,ee),h(null)}})},V.name):o.jsxs("li",{className:an.snapItem,children:[o.jsxs("button",{className:K(an.snapRow,W&&an.snapCurrent,J&&an.snapLoading),onClick:()=>x(V),disabled:!!l,"aria-current":W?"true":void 0,title:l??`Load ${V.name}${H<9&&m?` (Shift+${H+1})`:""}`,children:[H<9&&m&&o.jsxs("kbd",{className:an.snapKey,children:["⇧",H+1]}),o.jsxs("span",{className:an.snapMain,children:[o.jsx("span",{className:an.snapName,title:V.name,children:V.name}),o.jsxs("span",{className:an.snapSub,children:[o.jsxs("span",{className:an.snapMeta,children:[o.jsx("span",{title:new Date(V.timestamp).toLocaleString(),children:Oa(i-V.timestamp)}),V.trackCount!==void 0&&o.jsxs("span",{children:[V.trackCount," track",V.trackCount===1?"":"s",V.scoped?" only":""]}),V.fullChunk&&o.jsx("span",{title:"Exact track state: every plugin's internal state",children:"exact"})]}),V.description&&o.jsx("span",{className:an.snapDesc,title:V.description,children:V.description})]})]}),o.jsx("span",{className:an.snapState,children:J?"Loading…":W?"Loaded":"Load"})]}),ce==="delete"?o.jsxs("span",{className:an.snapActions,role:"group","aria-label":`Delete ${V.name}?`,children:[o.jsx("span",{className:an.snapConfirmText,children:"Delete?"}),o.jsx("button",{className:"btn btn-sm btn-warn",autoFocus:!0,onClick:()=>{r("delete",V.name),h(null)},children:"Delete"}),o.jsx("button",{className:"btn btn-sm",onClick:()=>h(null),children:"Keep"})]}):o.jsxs("span",{className:an.snapActions,children:[o.jsx("button",{className:"btn btn-sm",disabled:!!l,onClick:()=>h({name:V.name,mode:"edit"}),title:l??`Rename ${V.name} or change its description`,children:"Rename"}),o.jsx("button",{className:"btn btn-sm",disabled:!!l,onClick:()=>h({name:V.name,mode:"delete"}),title:l??`Delete ${V.name}`,children:"Delete"})]})]},V.name)})}),e[41]=l,e[42]=n,e[43]=m,e[44]=x,e[45]=i,e[46]=r,e[47]=v,e[48]=d,e[49]=f,e[50]=p,e[51]=P):P=e[51];let X;e[52]!==l||e[53]!==g||e[54]!==n||e[55]!==r?(X=n&&n.snapshots.length>0&&o.jsx("div",{className:an.snapClear,children:g?o.jsxs("span",{role:"group","aria-label":"Delete all snapshots?",className:an.snapActions,children:[o.jsxs("span",{className:an.snapConfirmText,children:["Delete all ",n.snapshots.length,"?"]}),o.jsx("button",{className:"btn btn-sm btn-warn",autoFocus:!0,onClick:()=>{r("clear","all snapshots"),y(!1),h(null)},children:"Delete all"}),o.jsx("button",{className:"btn btn-sm",onClick:()=>y(!1),children:"Keep"})]}):o.jsx("button",{className:"btn btn-sm",disabled:!!l,onClick:()=>y(!0),title:l??"Delete every snapshot of this project",children:"Clear all"})}),e[52]=l,e[53]=g,e[54]=n,e[55]=r,e[56]=X):X=e[56];let Y;e[57]!==n?(Y=n&&o.jsxs("p",{className:K(an.snapFoot,"muted"),children:[n.storage==="project"?"Saved next to the project, in .reaper-mcp/snapshots.":"The project isn’t saved yet: snapshots go to the bridge folder."," ","Each load is one undo step."]}),e[57]=n,e[58]=Y):Y=e[58];let Z;return e[59]!==$||e[60]!==U||e[61]!==I||e[62]!==F||e[63]!==P||e[64]!==X||e[65]!==Y?(Z=o.jsxs("div",{className:C,children:[$,U,I,F,P,X,Y]}),e[59]=$,e[60]=U,e[61]=I,e[62]=F,e[63]=P,e[64]=X,e[65]=Y,e[66]=Z):Z=e[66],Z}function bI(t){const e=fe.c(26),{request:n}=t;if(!n)return null;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s={restore:"load",save:"save",delete:"delete",edit:"rename",clear:"delete"},e[0]=s):s=e[0];const l=s[n.op];let a;e[1]===Symbol.for("react.memo_cache_sentinel")?(a={restore:"loaded",save:"saved",delete:"deleted",edit:"renamed",clear:"deleted"},e[1]=a):a=e[1];const i=a[n.op];let r="info",c,u,d,m,f,h;if(e[2]!==i||e[3]!==n.name||e[4]!==n.op||e[5]!==n.result||e[6]!==n.state||e[7]!==c||e[8]!==r||e[9]!==l){let y=[];if(n.state==="pending"){let b;e[17]===Symbol.for("react.memo_cache_sentinel")?(b={restore:"Loading",save:"Saving",delete:"Deleting",edit:"Saving",clear:"Deleting"},e[17]=b):b=e[17],c=`${b[n.op]} ${n.name}…`}else if(n.state==="lost")r="bad",c=`No answer from the bridge: ${n.name} wasn’t ${i}. Is the bridge script running?`;else if(n.result.ok){r=n.result.warnings?.length?"warn":"ok",y=n.result.warnings??[];const b=n.result.tracksRestored;c=n.op==="restore"?`Loaded ${n.name}${b!==void 0?` · ${b} track${b===1?"":"s"}`:""}${y.length?` · ${y.length} warning${y.length===1?"":"s"}`:""}`:`${{save:"Saved",delete:"Deleted",edit:"Saved",clear:"Deleted"}[n.op]} ${n.name}`}else r="bad",c=`Couldn’t ${l} ${n.name}: ${n.result.error??"refused by the bridge"}`;u=an.snapResult,d=r,m="status",e[18]!==c?(f=o.jsx("span",{children:c}),e[18]=c,e[19]=f):f=e[19],h=y.length>0&&o.jsxs("ul",{className:an.snapWarnings,children:[y.slice(0,5).map(xI),y.length>5&&o.jsxs("li",{children:["…and ",y.length-5," more"]})]}),e[2]=i,e[3]=n.name,e[4]=n.op,e[5]=n.result,e[6]=n.state,e[7]=c,e[8]=r,e[9]=l,e[10]=u,e[11]=d,e[12]=m,e[13]=f,e[14]=h,e[15]=c,e[16]=r}else u=e[10],d=e[11],m=e[12],f=e[13],h=e[14],c=e[15],r=e[16];let g;return e[20]!==u||e[21]!==d||e[22]!==m||e[23]!==f||e[24]!==h?(g=o.jsxs("div",{className:u,"data-tone":d,role:m,children:[f,h]}),e[20]=u,e[21]=d,e[22]=m,e[23]=f,e[24]=h,e[25]=g):g=e[25],g}function xI(t){return o.jsx("li",{children:t},t)}function SI(t){const e=fe.c(26),{snapshots:n,blocked:s,keys:l,onLoad:a,onQuickSave:i,onRename:r,onDelete:c,onClearAll:u}=t;let d;e[0]===Symbol.for("react.memo_cache_sentinel")?(d=["c"],e[0]=d):d=e[0];let m;e[1]!==i?(m={contextual:!0,id:"snapshots-save",label:"Save the current mix",group:"Snapshots",shortcut:d,description:"new snapshot, named by the date and time",onSelect:i},e[1]=i,e[2]=m):m=e[2],mt(m,!s);let f;if(e[3]!==l||e[4]!==a||e[5]!==n){let k;e[7]!==l||e[8]!==a?(k=(w,R)=>({id:`load-${w.name}`,label:w.name,description:w.description,hint:l&&R<9?`⇧${R+1}`:void 0,onSelect:()=>a(w)}),e[7]=l,e[8]=a,e[9]=k):k=e[9],f=n.map(k),e[3]=l,e[4]=a,e[5]=n,e[6]=f}else f=e[6];let h;e[10]!==f?(h={contextual:!0,id:"snapshots-load",label:"Load a snapshot…",group:"Snapshots",description:"restore the mix",children:f},e[10]=f,e[11]=h):h=e[11],mt(h,!s&&n.length>0);let g;e[12]!==n?(g=(k,w)=>n.map(R=>({id:`${k}-${R.name}`,label:R.name,onSelect:()=>w(R)})),e[12]=n,e[13]=g):g=e[13];const y=g;let b;e[14]!==r||e[15]!==y?(b=y("rename",r),e[14]=r,e[15]=y,e[16]=b):b=e[16];let p;e[17]!==b?(p={contextual:!0,id:"snapshots-rename",label:"Rename a snapshot…",group:"Snapshots",children:b},e[17]=b,e[18]=p):p=e[18],mt(p,!s&&n.length>0);let v;e[19]!==c||e[20]!==y?(v=y("delete",c),e[19]=c,e[20]=y,e[21]=v):v=e[21];let _;e[22]!==v?(_={contextual:!0,id:"snapshots-delete",label:"Delete a snapshot…",group:"Snapshots",children:v},e[22]=v,e[23]=_):_=e[23],mt(_,!s&&n.length>0);let x;return e[24]!==u?(x={contextual:!0,id:"snapshots-clear",label:"Delete all snapshots…",group:"Snapshots",onSelect:u},e[24]=u,e[25]=x):x=e[25],mt(x,!s&&n.length>0),null}async function Pu(t){try{return await(await fetch(t,{cache:"no-store"})).text()}catch{return null}}const kI=1e3;function wI(t,e){const n=t.state==="lost"?"lost":t.state==="done"&&t.result.ok?"ok":"refused";t.op==="restore"?st({name:"snapshot_restored",outcome:n,warnings:t.state==="done"&&!!t.result.warnings?.length}):t.op==="clear"?st({name:"snapshots_cleared",outcome:n}):t.op==="delete"?st({name:"snapshot_deleted",outcome:n}):t.op==="edit"?st({name:"snapshot_edited",outcome:n,renamed:e.named}):st({name:"snapshot_saved",outcome:n,described:e.described,replaced:e.replaced,named:e.named})}function jI(t,e,n){const s=fe.c(24);let l;s[0]!==n?(l=()=>n?a6(Date.now()):null,s[0]=n,s[1]=l):l=s[1];const[a,i]=Q.useState(l),[r,c]=Q.useState(null);let u;s[2]===Symbol.for("react.memo_cache_sentinel")?(u={replaced:!1,described:!1,named:!0},s[2]=u):u=s[2];const d=Q.useRef(u),m=Q.useRef(0);let f,h;s[3]!==n||s[4]!==t?(f=()=>{if(!t||n)return;let w=!1,R;const j=async()=>{if(!document.hidden){const N=await Pu(LB(Date.now())),E=N===null?null:UB(N);!w&&E&&i(E)}w||(R=setTimeout(j,kI))};return j(),()=>{w=!0,clearTimeout(R)}},h=[t,n],s[3]=n,s[4]=t,s[5]=f,s[6]=h):(f=s[5],h=s[6]),Q.useEffect(f,h);let g;s[7]!==a||s[8]!==r?(g=()=>{const w=VB(r,a,Date.now());!w||w===r||(c(w),w.state!=="pending"&&wI(w,d.current))},s[7]=a,s[8]=r,s[9]=g):g=s[9];const y=Q.useEffectEvent(g);let b;s[10]!==y||s[11]!==r?.state?(b=()=>{if(r?.state!=="pending")return;y();const w=setInterval(()=>y(),1e3);return()=>clearInterval(w)},s[10]=y,s[11]=r?.state,s[12]=b):b=s[12];const p=r?.state;let v;s[13]!==a||s[14]!==p?(v=[a,p],s[13]=a,s[14]=p,s[15]=v):v=s[15],Q.useEffect(b,v);let _;s[16]!==n||s[17]!==a?.snapshots||s[18]!==e?(_=(w,R,j,N)=>{const E=j===void 0?"":j,C=N===void 0?"":N;if(!n&&!e)return;const O=`${Date.now()}${String(m.current=m.current+1).padStart(2,"0")}`.slice(-15),M=a?.snapshots??[],A=R.trim()!=="",T=w==="save"&&!A?zB(M):w==="clear"?"all snapshots":R.trim();if(d.current={replaced:w==="save"&&Am(M,T)!==null,described:E.trim()!=="",named:w==="edit"?C.trim()!==T:A},c({id:O,op:w,name:w==="edit"?C.trim():T,at:Date.now(),state:"pending"}),n){setTimeout(()=>i(S=>S&&TI(S,O,w,T,E.trim(),C.trim())),300);return}fetch(DB(w,O,e??"",T,E,C),{cache:"no-store"}).catch(NI)},s[16]=n,s[17]=a?.snapshots,s[18]=e,s[19]=_):_=s[19];const x=_;let k;return s[20]!==a||s[21]!==r||s[22]!==x?(k={feed:a,request:r,send:x},s[20]=a,s[21]=r,s[22]=x,s[23]=k):k=s[23],k}function NI(){}function TI(t,e,n,s,l,a){if(n==="clear"){const r=t.snapshots.length;return{...t,snapshots:[],current:void 0,result:{id:e,op:n,name:`${r} snapshot${r===1?"":"s"}`,ok:!0}}}if(n==="delete")return{...t,snapshots:t.snapshots.filter(r=>r.name!==s),result:{id:e,op:n,name:s,ok:!0}};if(n==="edit"){const r=t.snapshots.map(c=>c.name===s?{...c,name:a,description:l}:c);return{...t,snapshots:r,current:t.current===s?a:t.current,result:{id:e,op:n,name:a,ok:!0}}}if(n==="restore"){const r=t.snapshots.find(c=>c.name===s);return{...t,current:r?s:t.current,result:{id:e,op:n,name:s,ok:!!r,tracksRestored:r?.trackCount,error:r?void 0:`Snapshot not found: ${s}`}}}const i={name:s,description:l,timestamp:Date.now(),trackCount:24,scoped:!1,fullChunk:!1};return{...t,snapshots:[i,...t.snapshots.filter(r=>r.name!==s)],result:{id:e,op:n,name:s,ok:!0}}}const EI=Object.assign(yI,{SaveForm:bv,SaveFormPreview:ZB,EditForm:o6}),C0=Date.UTC(2026,9,29,20,30);let z1=100;function se(t,e,n,s={}){return z1+=1,{n:z1,t:C0-6e4+z1*1e3,c:t,ms:4.2,ok:!0,s:"example",p:JSON.stringify(e),r:n,...s}}function Gn(t,e){return{...t,n:t.n-50,t:t.t-12e4,r:e}}const le=(t,e,n,s)=>({title:t,note:n,entry:e,history:s?[e,s]:[e]});function B1(t=0,e=4){return Array.from({length:48},(n,s)=>{const l=20*1e3**((s+.5)/48),a=-3*Math.log2(l/100),i=8*Math.exp(-(Math.log2(l/60)**2)),r=e*Math.exp(-(Math.log2(l/3e3)**2)*2),c=l>16e3?-36*Math.log2(l/16e3):0;return Math.round((-24+a+i+r+c+t)*100)/100})}function kd(t,e=.03){const n=Array.from({length:120},(a,i)=>Math.round(Math.min(1,e+t*Math.exp(-(i%12/12)*9))*100)/100),s=n.map(a=>-Math.round(a*.92*100)/100),l=Math.max(...n);return{hi:n,lo:s,peakDb:Math.round(20*Math.log10(l)*100)/100,durationSeconds:5,sampleRate:44100,channels:2}}function xa(t,e,n,s,l,a){const i=c=>c<6?.02+c*.03:c<18?.45:c<26?.95:c<36?.5:c<42?.15:c<54?1:((59-c)/6)**2,r=Array.from({length:60},(c,u)=>Math.round(Math.min(1,a*i(u)*(.82+.18*Math.abs(Math.sin(u*2.3))))*100)/100);return[t,e,n,s,l,r,r.map(c=>-Math.round(c*.94*100)/100)]}const He=(t,e={})=>({trackIndex:t,...e});function $I(){const t=se("read_track_meters",He(0),{peakL:-9.4,peakR:-10.1,rmsL:-21.3,rmsR:-22}),e=se("read_track_meters",He(1),{peakL:-2.6,peakR:-4.1,rmsL:-14.2,rmsR:-15}),n=se("read_track_meters",He(2),{peakL:1.2,peakR:.4,rmsL:-8.1,rmsR:-8.6}),s=se("read_track_lufs",He(-1,{targetLufs:-14}),{integrated:-14.3,shortTerm:-13.6,momentary:-12.9,truePeakL:-1.8,truePeakR:-2.1,duration:30}),l=se("read_track_lufs",He(-1,{targetLufs:-14}),{integrated:-9.2,shortTerm:-8.4,momentary:-7.5,truePeakL:.4,truePeakR:-.6,duration:30}),a=se("read_track_lufs",He(3),{integrated:-18.6,shortTerm:-17.9,momentary:-16.2,truePeakL:-4.4,truePeakR:-4.9,duration:8}),i=se("read_track_correlation",He(4),{correlation:.82,stereoWidth:1.12,midLevel:-14.2,sideLevel:-24.8}),r=se("read_track_correlation",He(5),{correlation:-.38,stereoWidth:1.9,midLevel:-22.4,sideLevel:-15.1}),c=se("read_track_crest",He(6),{crestFactor:12.4,peakLevel:-6.2,rmsLevel:-18.6}),u=se("read_track_crest",He(7),{crestFactor:6.1,peakLevel:-.8,rmsLevel:-6.9}),d={sampleRate:48e3,fftSize:4096},m=se("read_track_spectrum",He(8,{fftSize:4096}),{...d,peakDb:-7.4,rmsDb:-18.2,bands:B1()}),f=se("read_track_spectrum",He(9,{fftSize:4096}),{...d,peakDb:-.4,rmsDb:-9.8,bands:B1(14,8)}),h={trackIndex:0,startTime:30,endTime:35,commandId:"example"},g=se("render_track_to_wav",h,{...kd(.55),rmsDb:-19.4,clipped:0},{ms:912}),y=se("render_track_to_wav",{...h,trackIndex:1},{...kd(1.1,.06),rmsDb:-11.2,clipped:37},{ms:1043}),b=se("render_track_to_wav",{...h,trackIndex:2},{...kd(.06,.004),rmsDb:-42.5,clipped:0},{ms:870}),p=[-16.2,-15.8,-11.4,-9.6,-9.1,-12.8,-15.1,-9.2,-8.7,-9.4,-14,-18.5].map((V,H)=>[H*15,H*15+15,V]),v={name:"Master",lufs:-10.4,lra:6.8,tp:-.6,peak:-.9,crest:9.1,dur:180,sib:4,sections:p,bands:[-15.2,-4.6,-8.9,-6.1,-11.8,-16.4,-18.9],res:[[315,6.2],[2480,4.1]]},_=se("analyze_track_offline",{trackIndex:-1,startTime:0,durationSeconds:180,sectionSeconds:15},v,{ms:11840}),x=se("analyze_track_offline",{trackIndex:-1,durationSeconds:180,referencePath:"/refs/Pop Ref.wav"},{...v,ref:{lufs:-8.6,delta:-1.8,bands:[-.8,3.4,1.2,.2,-1.6,-3.7,-2.9]}},{ms:14210}),k=se("analyze_audio_file",{path:"/refs/Pop Ref.wav",sectionSeconds:15},{...v,name:"Pop Ref.wav",lufs:-8.6,lra:4.2,tp:-.1,crest:7.4,sib:0,res:[],sections:p.map(([V,H,W])=>[V,H,W+1.6])},{ms:2930}),w=se("measure_track_alignment",{referenceTrack:2,trackIndex:3,startTime:12},{ref:"Snare Top",name:"Snare Btm",delayMs:.84,samples:37,corr:.93,inv:1,cur:0,offset:-.84,phase:1},{ms:3120}),R=se("measure_track_alignment",{referenceTrack:2,trackIndex:9,startTime:12},{ref:"Snare Top",name:"Room",delayMs:-9.84,samples:-434,corr:.01,inv:0,cur:0,warn:1},{ms:3040}),j=se("analyze_track_aesthetics",{trackIndex:-1,startTime:60},{name:"Master",pq:7.42,pc:5.81,ce:6.66,cu:7.05,lufs:-18,dur:30},{ms:6400}),N=V=>p.flatMap(([,,H],W)=>Array.from({length:15},(J,ce)=>Math.round((H+V+Math.sin((W*15+ce)/2.3)*.9-(ce<2&&W>0?1.5:0))*10)/10)),E={name:"Master",lufs:-10.4,tp:-.6,lra:6.8,plr:9.8,maxM:-6.9,target:-14,overS:86,start:0,step:1,term:"s",curve:N(0),loud:[124,127,-7.8],quiet:[176,179,-19.3],over:[[30,76,-8.6],[105,150,-7.8]]},C=se("analyze_loudness_curve",{trackIndex:-1,endTime:180,targetLufs:-14},E,{ms:9800}),O=se("analyze_loudness_curve",{path:"/bounces/Hook.wav"},{name:"Hook",lufs:-16.8,tp:-3.2,lra:1.4,plr:13.6,start:0,step:.1,term:"m",curve:Array.from({length:24},(V,H)=>-17+Math.sin(H/2)*2),loud:null,quiet:null,over:[]},{ms:410}),M={name:"Master",dur:180,flags:["low end wide (correlation 0.42): mono the bass below 120 Hz"],bands:[["low",.42,-.31,.08,-6.2],["lowMid",.71,.12,.01,-9.4],["mid",.55,-.12,.04,-7.1],["high",.38,-.22,.09,-4.8],["air",.21,-.4,.18,-3.1]]},A=se("analyze_stereo_bands",{trackIndex:-1,endTime:180},M,{ms:8200}),T=se("analyze_stereo_bands",{trackIndex:4},{name:"Synth Pad",dur:60,flags:["low end out of phase (correlation −0.62): it cancels in mono","the low mids (120–500 Hz) out of phase overall (correlation −0.18): it cancels in mono"],bands:[["low",-.62,-.91,.84,4.1],["lowMid",-.18,-.7,.61,1.2],["mid",.34,-.3,.22,-3.3],["high",.51,.02,.05,-5.6],["air",null,null,null,null]]},{ms:3100}),S=[40,50,63,80,100,125,160,200,250,315,400,500,630,800,1e3,1250,1600,2e3,2500,3150,4e3,5e3,6300,8e3,1e4,12500,16e3],$=(V,H,W)=>S.map((J,ce)=>Math.round(Math.max(0,W*(1-Math.abs(ce-V)/H))*100)/100),L={tracks:["Kick","Bass","Keys","Vocal"],hz:S,pairs:[["Kick","Bass",.31,$(4,4,.92)],["Keys","Vocal",.24,$(13,5,.74)],["Bass","Keys",.12,$(8,3,.48)],["Kick","Keys",.03,$(19,2,.21)],["Kick","Vocal",.01,$(20,1,.1)],["Bass","Vocal",0,$(0,0,0)]],conflicts:[["Kick","Bass",100,.92,"cut Bass around 100 Hz (it matters more to Kick)"],["Keys","Vocal",800,.74,"cut Keys around 800 Hz (it matters more to Vocal)"],["Bass","Keys",250,.48,"cut Keys around 250 Hz (it matters more to Bass)"]]},z=se("measure_masking",{tracks:[0,1,5,9],startTime:48,durationSeconds:20},L,{ms:6900}),D=se("measure_masking",{tracks:[0,12],startTime:48},{tracks:["Kick","Hi-hat"],hz:S,pairs:[["Kick","Hi-hat",0,$(0,0,0)]],conflicts:[]},{ms:2400}),U={name:"Master",model:"htdemucs",device:"mps",secs:180,proc:61.4,inserted:4,folder:"Master stems",muted:1,stems:[["drums",-14.2,-1.8],["bass",-16.9,-4.1],["other",-15.3,-2.6],["vocals",-13.1,.7]]},I=se("separate_stems",{trackIndex:-1,endTime:180,insertTracks:!0},U,{ms:64200}),F=se("separate_stems",{path:"/refs/Live Take.flac",model:"htdemucs_6s",stems:["guitar","piano","vocals"]},{name:"Live Take",model:"htdemucs_6s",device:"cpu",secs:45,proc:52.3,stems:[["vocals",-17.4,-5.2],["guitar",-19.8,-7.9],["piano",null,-61.2]]},{ms:54800}),P=se("detect_key",{trackIndex:7},{name:void 0,src:"midi",key:"A minor",tonic:"A",mode:"minor",r:.89,conf:.62,rel:"C major",alt:[["C major",.82],["D minor",.71],["F major",.66]],chroma:[.81,.04,.38,.06,.74,.31,.03,.47,.05,1,.07,.22]},{ms:140}),X=se("detect_key",{trackIndex:3,endTime:60},{name:"Gtr Bus",src:"audio",key:"D major",tonic:"D",mode:"major",r:.61,conf:.14,rel:"B minor",alt:[["G major",.58],["A major",.55],["E minor",.52]],chroma:[.55,.42,1,.38,.71,.49,.83,.77,.44,.92,.4,.58]},{ms:4820}),Y=se("detect_chords",{trackIndex:7},{src:"midi",key:"A minor",per:"bar",start:0,end:32,ch:[[0,4,"Am","i"],[4,8,"F","VI"],[8,12,"C","III"],[12,16,"G","VII"],[16,20,"Am","i"],[20,24,"F","VI"],[24,28,"Dm7","iv7"],[28,30,"E7","V7"],[30,32,"N",""]]},{ms:120}),Z=se("detect_chords",{trackIndex:3,itemIndex:2,per:"beat"},{name:"Gtr Bus",src:"audio",key:"D major",per:"beat",start:48,end:56,ch:[[48,50,"D","I"],[50,51,"A/C#","V"],[51,52,"Bm","vi"],[52,54,"G","IV"],[54,55,"Bb","♭VI"],[55,56,"A","V"]]},{ms:5210});return[le("Meters",t,"Comfortable levels"),le("Meters · hot",e,"Peaks above −6 dB turn amber, previous call ghosted",Gn(e,{peakL:-6.8,peakR:-7.4,rmsL:-18.2,rmsR:-18.9})),le("Meters · over",n,"Peaks over 0 dB turn red"),le("Loudness · on target",s,"Within ±1 LU of the agent’s target",Gn(s,{integrated:-16.1,shortTerm:-15.2,momentary:-14.8,truePeakL:-3,truePeakR:-3.2,duration:30})),le("Loudness · over target",l,"Louder than the target, true peak over 0"),le("Loudness · no target",a,"The agent gave no target"),le("Correlation",i,"Mostly mono-compatible",Gn(i,{correlation:.64,stereoWidth:1.3,midLevel:-14.5,sideLevel:-21.9})),le("Correlation · phase",r,"Negative correlation is out of phase"),le("Crest",c,"Dynamic",Gn(c,{crestFactor:9.8,peakLevel:-4.1,rmsLevel:-13.9})),le("Crest · squashed",u,"Little crest, peak near 0"),le("Spectrum",m,"Previous call dashed; hover for values",Gn(m,{...d,peakDb:-9.1,rmsDb:-19.9,bands:B1(-3,1)})),le("Spectrum · hot",f,"Bands near 0 dB turn amber, then red"),le("Waveform",g,"A render’s waveform on a dB scale; hover for values",Gn(g,{...kd(.45),rmsDb:-21.2,clipped:0})),le("Waveform · clipped",y,"Clipped samples counted and named"),le("Waveform · quiet",b,"Quiet material still fills the height"),le("Offline analysis",_,"Sections, band balance, resonances; previous call ghosted",Gn(_,{...v,lufs:-11.6})),le("Offline · against a reference",x,"Loudness and band balance against a reference file"),le("Audio file",k,"A reference on disk, no REAPER involved",Gn(k,{...v,lufs:-8.6})),le("Alignment",w,"Bottom mic 0.84 ms late and inverted; the fix",Gn(w,{ref:"Snare Top",name:"Snare Btm",delayMs:.02,samples:1,corr:.95,inv:0,cur:-.84,offset:-.84,phase:1})),le("Alignment · unsure",R,"Low correlation: no fix suggested"),le("Aesthetics",j,"Four scores on 0–10; previous call ghosted",Gn(j,{name:"Master",pq:7.18,pc:5.9,ce:6.4,cu:6.95,lufs:-18,dur:30})),le("Key · MIDI",P,"A minor from the notes: scale tones lit, the tonic strongest",Gn(P,{src:"midi",key:"C major",tonic:"C",mode:"major",r:.8,conf:.4,rel:"A minor",alt:[],chroma:[1,.04,.4,.06,.7,.35,.03,.8,.05,.6,.07,.2]})),le("Key · audio, unsure",X,"A dense guitar bus: low confidence flagged"),le("Chords · MIDI, per bar",Y,"One chord per bar in A minor, with roman numerals; the last bar holds no chord",Gn(Y,{src:"midi",key:"A minor",per:"bar",start:0,end:16,ch:[[0,8,"Am","i"],[8,16,"F","VI"]]})),le("Chords · audio, per beat",Z,"One media item, per beat: a borrowed ♭VI outside the key, a slash chord"),le("Loudness curve",C,"Short-term loudness against −14 LUFS: spans over target shaded, previous call dashed; hover for values",Gn(C,{...E,lufs:-9.1,curve:N(1.3),over:[[28,80,-7.3],[100,165,-6.5]]})),le("Loudness curve · short clip",O,"Under 3 s: momentary only, no target"),le("Stereo per band",A,"A wide low end flagged; previous call ghosted",Gn(A,{...M,bands:M.bands.map(([V,H,...W])=>[V,Math.min(1,H+.3),...W])})),le("Stereo per band · out of phase",T,"Bands below 0 cancel in mono: red, named; a silent band says so"),le("Masking",z,"Pairs by band: Kick × Bass fight at 100 Hz; which to cut",Gn(z,{...L,pairs:L.pairs.map(([V,H,W,J])=>[V,H,W*1.4,J])})),le("Masking · clear",D,"Nothing masks"),le("Stems",I,"Four stems inserted under a folder; vocals peak over 0 kept as float",Gn(I,{...U,proc:58.2})),le("Stems · 6-stem model on a CPU",F,"Three of six stems written to disk only; a silent stem")]}const i6=$I(),RI=[[0,0,0],[32,0,0]],Z_=[[0,0,0],[8,0,0],[12,-2.5,2],[13.5,-6,0],[16,-6,2],[17.5,-1.5,0],[24,-1.5,2],[26,2,0],[32,2,0]],xs=[[57,60,64],[53,57,60],[55,60,64],[55,59,62]].flatMap((t,e)=>t.map(n=>[n,e*4,4,72,0])),Sa=[[72,0,1,96],[71,1,.5,88],[69,1.5,1.5,104],[67,4,1,92],[69,5,1,100],[72,8,2,112],[74,10,2,108],[72,12,4,84]].map(t=>[...t,1]),pt=[[0,16,"Intro","",1],[16,48,"Verse 1","#7cc4ff",2],[48,80,"Chorus","#c4a5ff",3],[80,112,"Verse 2","#7cc4ff",4],[112,144,"Chorus","#c4a5ff",5],[144,160,"Bridge","#fcd34d",6],[160,192,"Chorus","#c4a5ff",7],[192,200,"Outro","",8]],Vt=[[18,"Vox in","",1],[140,"Fill","",3]],xt=[[0,92,4,4,0]];function CI(){const t=se("set_track_property",He(0,{property:"volume",value:-4.5}),{rows:[{t:"Kick",p:"volume",s:"db",a:-6,b:-4.5}]}),e=se("set_multiple_track_properties",{tracks:"[…]"},{rows:[{t:"Bass",p:"volume",s:"db",a:-10,b:-12},{t:"Vox",p:"volume",s:"db",a:-6,b:1.5},{t:"Gtr L",p:"pan",s:"pan",a:-.8,b:-1},{t:"Vox Dbl",p:"mute",s:"bool",a:0,b:1}]}),n=se("set_multiple_fx_parameters",{updates:"[…]"},{rows:[{t:"Vox · Pro-Q 3",p:"Band 2 Gain",s:"norm",a:.47,b:.4,at:"−1.8 dB",bt:"−4.2 dB"},{t:"Vox · Pro-Q 3",p:"Band 2 Frequency",s:"norm",a:.52,b:.55,at:"320 Hz",bt:"380 Hz"},{t:"Vox · Pro-Q 3",p:"Band 5 Gain",s:"norm",a:.5,b:.56,at:"0.0 dB",bt:"+2.0 dB"},{t:"Vox · Pro-Q 3",p:"Output Level",s:"norm",a:.5,b:.5,at:"0.0 dB",bt:"0.0 dB"}]}),s=se("insert_envelope_points",He(4,{envelopeIndex:0,points:"[…]"}),{env:"Volume",unit:"dB",from:0,to:32,count:9,pts:Z_,was:RI}),l=se("get_envelope_points",He(6,{envelopeIndex:1}),{env:"Pan",unit:"pan",from:16,to:32,count:9,pts:Array.from({length:9},(ze,tt)=>[16+tt*2,tt%2?-.6:.6,2])}),a=se("remove_envelope_points",He(4,{envelopeIndex:0,timeStart:12,timeEnd:18}),{env:"Volume",unit:"dB",from:9,to:21,count:4,pts:[[8,0,0],[24,-1.5,2]],was:Z_.slice(1,7)}),i=[[0,-1,0],[64,-1,0]],r=[[0,.5,0],[30,.5,2],[32,1.5,0]],c=[[56,64,1,"Vox Verse"],[120,32,2,"Vox Chorus"],[152,52,1,"Vox Verse"],[204,32,2,"Vox Chorus"],[236,16,3,"Vox C"],[292,32,2,"Vox Chorus"]],u=se("insert_automation_item",He(79,{envelopeIndex:0,position:292,length:32,poolId:2}),{env:"Volume",unit:"dB",from:20,to:360,count:1,pts:[[0,0,0]],was:[[0,0,0]],ai:5,ais:c,pools:[[1,i],[2,r],[3,[[0,-2,0],[16,-2,0]]]],wasAis:c.slice(0,5),wasPools:[[1,i],[2,r],[3,[[0,-2,0],[16,-2,0]]]]}),d=se("edit_envelope_points",He(79,{envelopeIndex:0,automationItemIndex:1,points:"[…]"}),{env:"Volume",unit:"dB",from:100,to:256,count:1,pts:[[0,0,0]],was:[[0,0,0]],ai:1,ais:c,pools:[[1,i],[2,r.map(([ze,tt,ha])=>[ze,tt-1,ha])],[3,[[0,-2,0],[16,-2,0]]]],wasAis:c,wasPools:[[1,i],[2,r],[3,[[0,-2,0],[16,-2,0]]]]}),m=se("delete_automation_item",He(79,{envelopeIndex:0,automationItemIndex:4}),{env:"Volume",unit:"dB",from:220,to:268,count:1,pts:[[0,0,0]],was:[[0,0,0]],ais:c.filter((ze,tt)=>tt!==4),pools:[[1,i],[2,r]],wasAis:c,wasPools:[[1,i],[2,r],[3,[[0,-2,0],[16,-2,0]]]]}),f=se("insert_midi_notes",{trackIndex:7,itemIndex:0,notes:"[…]"},{total:xs.length+Sa.length,beats:16,ts:[4,4],more:0,gone:[],notes:[...xs,...Sa]}),h=Sa.map(([ze,tt,ha,zi],Dm)=>[ze,tt+[.06,-.08,.11,-.04,.09,-.07,.05,.12][Dm],ha,zi]),g=se("quantize_midi",{trackIndex:7,itemIndex:0,grid:.5},{total:xs.length+Sa.length,beats:16,ts:[4,4],more:0,notes:[...xs,...Sa],gone:h}),y=se("import_midi_file",{path:"/Users/me/Sketches/hook.mid",trackIndex:7,position:0},{total:xs.length+Sa.length,beats:16,ts:[4,4],more:0,gone:[],notes:[...xs,...Sa].map(ze=>[...ze.slice(0,4),1])}),b=se("delete_midi_note",{trackIndex:7,itemIndex:0,noteIndex:3},{total:xs.length-1,beats:16,ts:[4,4],more:0,gone:[[53,4,4,72]],notes:xs.filter(ze=>!(ze[0]===53&&ze[1]===4))}),p=se("get_midi_notes",{trackIndex:2,itemIndex:0},{total:2044,beats:64,ts:[4,4],more:1788,notes:Array.from({length:256},(ze,tt)=>[[36,38,42,42][tt%4],tt*.25,.25,tt%4===2?100:80+tt*37%40,0])}),v=se("analyze_midi",{trackIndex:2,itemIndex:0},{total:120,beats:32,pitches:[[36,32,96,118,108,0],[38,16,88,124,104,0],[42,56,100,101,100.5,24],[46,8,70,96,84,0],[49,8,110,120,114,0]],hist:[0,0,0,0,0,0,0,2,7,18,62,23,8]}),_=se("list_markers",{},{regions:pt,markers:Vt,tempo:xt,len:200}),x=[[0,"COUNT","",1],[4,"PRESET","",2],[62,"12 Ret guitar","",3],[70,"Fill","",4],[96,"Ret guitar","",5],[100,"Drop","",6],[150,"Lead","",7],[208,"TILFØJ","",8],[212,"Stik","",9],[216,"Solo","",10],[300,"Break","",11],[330,"END","",12]],k=se("list_markers",{},{regions:pt.map(ze=>[Number(ze[0])*1.8,Number(ze[1])*1.8,ze[2],ze[3],ze[4]]),markers:x,tempo:xt,len:366}),w=se("add_marker",{position:80,name:"Drop"},{regions:pt,markers:[Vt[0],[80,"Drop","",2],Vt[1]],tempo:xt,len:200,was:{regions:pt,markers:Vt,tempo:xt}}),R=se("add_tempo_marker",{position:144,bpm:88,timeSigNumerator:3,timeSigDenominator:4},{regions:pt,markers:Vt,tempo:[...xt,[144,88,3,4,0],[160,92,4,4,0]],len:200,was:{regions:pt,markers:Vt,tempo:[...xt,[160,92,4,4,0]]}}),j=se("list_media_items",He(4),{regions:pt,markers:[],tempo:xt,len:200,items:[[16,30,.5,2,0,0],[48,31,0,.5,0,0],[82,28,1,0,0,1],[112,31,0,0,0,0],[160,31,0,4,1,0]]}),N=se("list_tracks",{},{total:10,tracks:[["Drums",0,"#f9a8d4",-3,0,"F"],["Kick",1,"#f9a8d4",-4.5,0,""],["Snare",1,"#f9a8d4",-8,.05,""],["Overheads",1,"#f9a8d4",-12,0,""],["Bass",0,"#fcd34d",-12,0,"R"],["Guitars",0,"#a3e635",-2,0,"F"],["Gtr L",1,"#a3e635",-9,-1,""],["Gtr R",1,"#a3e635",-9,1,""],["Vox",0,"#7cc4ff",1.5,0,"S"],["Vox Dbl",0,"",-9,0,"M"]],master:["Master",0,"",-.3,0,""]}),E=[["Drums",0,"#f9a8d4",-3,0,"F"],["Kick",1,"#f9a8d4",-4.5,0,""],["Snare",1,"#f9a8d4",-8,.05,""],["Bass",0,"#fcd34d",-12,0,""],["Vox",0,"#7cc4ff",1.5,0,""],["Old Vox",0,"",-9,0,"M"]],C=["d1","k2","s3","b4","v5","o6"],O=se("add_track",{name:"Vox Bus",index:5},{total:6,tracks:[E[3],E[0],E[1],E[2],E[4],["Vox Bus",0,"#7cc4ff",0,0,""]],ids:["b4","d1","k2","s3","v5","vb7"],was:{tracks:E,ids:C},master:["Master",0,"",-.3,0,""]}),M=se("delete_track",{track:"Old Vox"},{total:5,tracks:E.slice(0,5),ids:C.slice(0,5),was:{tracks:E,ids:C},master:["Master",0,"",-.3,0,""]}),A=[["VST3: Pro-Q 3 (FabFilter)","","a1",""],["VST3: Pro-C 2 (FabFilter)","","b2","Vocal Leveler"],["JS: De-esser","","c3",""],["VST3: Saturn 2 (FabFilter)","","d4",""]],T=se("set_fx_enabled",He(8,{fxIndex:3,enabled:0}),{chains:[{t:"Vox",fx:[...A.slice(0,3),["VST3: Saturn 2 (FabFilter)","B","d4",""]],was:A}]}),S=se("add_fx",He(8,{fxName:"ReaComp",position:1}),{chains:[{t:"Vox",fx:[A[0],["VST: ReaComp (Cockos)","","e5",""],A[1],A[3]],was:A}]}),$=se("move_fx",He(8,{fxIndex:2,toTrackIndex:9,toFxIndex:0}),{chains:[{t:"Vox",fx:[A[0],A[1],A[3]],was:A},{t:"Vox Dbl",fx:[A[2],["VST3: Pro-Q 3 (FabFilter)","O","f6",""]],was:[["VST3: Pro-Q 3 (FabFilter)","O","f6",""]]}]}),L=se("get_track_properties",He(8),{chains:[{t:"Vox",fx:[...A.slice(0,3),["VST3: Saturn 2 (FabFilter)","BO","d4",""]]}]}),z=se("add_send",{from:"Vox",to:"Vox Bus",volume:-6},{t:"Vox",routes:[["s","Verb",-12,0,""],["s","Vox Bus",-6,0,""],["s","Delay",-16,-.3,"M"],["h","Out 3/4",0,0,""]],was:[["s","Verb",-14,0,""],["s","Delay",-16,-.3,"M"],["h","Out 3/4",0,0,""],["r","Vox Dbl",-3,0,""]]}),D=se("get_track_routing",He(10),{t:"Verb",routes:[["r","Vox",-12,0,""],["r","Gtr L",-18,-.6,""],["r","Gtr R",-18,.6,""],["r","Snare",-20,0,"M"]]}),U=["Kick In","Kick Out","Kick Sub","Snare Top","Snare Bottom","Hi-Hat","Tom 1","Tom 2","Floor Tom","Overheads","Room Mics (Far, Mono)","Trash Mic"],I=se("add_send",{from:"Drum Bus",to:"Drum Crush",volume:-8},{t:"Drum Bus",routes:[...U.slice(0,7).map((ze,tt)=>["r",ze,-4-tt*2,0,tt===6?"M":""]),["s","Drum Crush",-8,0,""],["s","Room Verb",-14,0,""],["s","Plate",-18,.2,""],["h","Out 5/6",-3,0,""]],was:[...U.slice(0,7).map((ze,tt)=>["r",ze,-4-tt*2,0,tt===6?"M":""]),["s","Room Verb",-20,0,""],["s","Plate",-18,.2,""],["s","Slap Delay",-22,0,""],["h","Out 5/6",-3,0,""]]}),F=se("get_track_routing",He(2),{t:"Drum Bus",routes:[...U.map((ze,tt)=>["r",ze,-3-tt*1.5,(tt%3-1)*.4,tt===11?"M":""]),["s","Drum Crush",-8,0,""],["s","Room Verb",-14,0,""],["s","Plate",-18,.2,""],["s","Slap Delay",-22,0,"M"],["s","Sidechain → Bass Comp",-6,0,""],["h","Out 5/6",-3,0,""],["h","Out 7 (Click)",-10,0,""]]}),P=[["Lead Vox",1,"In 1 · Shure SM7B","auto","input"],["Gtr DI",1,"In 3/4","off","input"],["Keys",1,"MIDI: all MIDI inputs, all channels","on","midi_overdub"]],X=se("get_record_setup",{},{mode:"time_selection",path:"Audio",punch:[62.5,78],rows:P}),Y=se("set_track_record",{tracks:[{track:"Lead Vox",arm:!0,input:{kind:"audio",channel:1},monitor:"auto"}]},{mode:"normal",path:"Audio",rows:[P[0],["Gtr DI",0,"In 3/4","off","stereo_out"]],was:{mode:"normal",path:"Audio",rows:[["Lead Vox",0,"In 2","off","input"],["Gtr DI",0,"In 3/4","off","stereo_out"]]}}),Z=se("set_record_mode",{mode:"time_selection",punchStart:62.5,punchEnd:78},{mode:"time_selection",path:"Audio",punch:[62.5,78],was:{mode:"normal",path:"media"}}),V=[["Take 1",1],["Take 2",0],["Take 3",0]],H=[[60,32,0,0],[60,32,1,0],[60,14,2,0],[77,15,2,0]],W=se("get_track_lanes",{track:"Lead Vox"},{t:"Lead Vox",fixed:1,lanes:V,items:H,len:92}),J=se("set_track_lanes",{track:"Lead Vox",play:[0,2]},{t:"Lead Vox",fixed:1,lanes:[["Take 1",2],["Take 2",0],["Take 3",2]],items:H,len:92,was:{fixed:1,lanes:V,items:H}}),ce=se("comp_lanes",{track:"Lead Vox",ranges:[{start:60,end:68,lane:0},{start:68,end:81,lane:1},{start:81,end:92,lane:2}]},{t:"Lead Vox",fixed:1,lanes:[["Take 1",0],["Take 2",0],["Take 3",0],["Comp",1]],items:[...H,[60,8.01,3,0],[68,9,3,0],[77,4.01,3,0],[81,11,3,0]],comp:3,segs:[[60,68,0],[68,77,1],[77,81,1],[81,92,2]],len:92,was:{fixed:1,lanes:V,items:H}}),ee=[[16,30,.5,2,0,0],[48,31,0,.5,0,0],[112,31,0,0,0,0]],he=se("move_media_item",He(4,{itemIndex:1,newTrackIndex:5,newPosition:82}),{regions:pt,markers:Vt,tempo:xt,len:200,lanes:[{t:"Gtr L",items:[ee[0],ee[2]],was:ee},{t:"Gtr R",items:[[82,31,0,.5,0,0],[160,31,0,4,0,0]],was:[[160,31,0,4,0,0]]}]}),pe=se("split_media_item",He(4,{itemIndex:0,position:30}),{regions:pt,markers:[],tempo:xt,len:200,lanes:[{t:"Gtr L",items:[[16,14,.5,0,0,0],[30,16,0,2,0,0],ee[1],ee[2]],was:ee}]}),G=se("list_midi_items",He(7),{regions:pt,markers:[],tempo:xt,len:200,lanes:[{t:"Keys",items:[[16,32,0,0,1,0],[48,32,0,0,1,0],[112,32,0,0,1,1],[160,32,0,0,1,0]]}]}),ae=se("set_time_selection",{start:48,end:80},{regions:pt,markers:Vt,tempo:xt,len:200,sel:[48,80],cur:48,wasSel:[16,48],wasCur:12.5}),oe=se("get_fx_parameters",He(8,{fxIndex:1}),{more:41,rows:[{t:"Pro-C 2",p:"Threshold",s:"norm",b:.62,bt:"−18.0 dB"},{t:"Pro-C 2",p:"Ratio",s:"norm",b:.3,bt:"3.0:1"},{t:"Pro-C 2",p:"Attack",s:"norm",b:.18,bt:"4.5 ms"},{t:"Pro-C 2",p:"Release",s:"norm",b:.44,bt:"120 ms"},{t:"Pro-C 2",p:"Knee",s:"norm",b:.5,bt:"12 dB"}]}),ye=se("insert_midi_cc",{trackIndex:7,itemIndex:0,ccNumber:11,value:30,position:12},{env:"CC 11 · Expression",unit:"cc",beats:1,from:0,to:17,count:9,otherCcs:2,pts:[[0,64,1],[2,80,1],[4,96,1],[6,110,1],[8,100,1],[10,72,1],[12,30,1],[14,48,1],[15.5,90,1]],was:[[0,64,1],[2,80,1],[4,96,1],[6,110,1],[8,100,1],[10,72,1],[14,48,1],[15.5,90,1]]}),_e=(ze,tt,ha)=>ze[0]>=ha?[ze[0]+tt,ze[1]+tt,...ze.slice(2)]:ze,ne=pt.filter(ze=>ze[2]!=="Bridge").map(ze=>_e(ze,-16,160)),te=se("insert_time",{position:144,length:16},{op:"insert",span:[144,160],moreTracks:6,regions:pt.map(ze=>_e(ze,16,144)),markers:Vt,tempo:xt,len:216,was:{regions:pt,markers:Vt,tempo:xt},lanes:[{t:"Drums",items:[[0,144,0,0,0,0],[160,56,0,2,0,0]],was:[[0,200,0,2,0,0]]},{t:"Gtr L",items:[ee[0],ee[1],ee[2],[176,31,0,4,0,0]],was:[ee[0],ee[1],ee[2],[160,31,0,4,0,0]]}]}),ie=se("remove_time",{start:144,end:160},{op:"remove",span:[144,160],moreTracks:6,regions:ne,markers:Vt,tempo:xt,len:200,was:{regions:pt,markers:Vt,tempo:xt},lanes:[{t:"Drums",items:[[0,144,0,0,0,0],[144,40,0,2,0,0]],was:[[0,200,0,2,0,0]]},{t:"Gtr L",items:[ee[0],ee[1],ee[2],[144,31,0,4,0,0]],was:[ee[0],ee[1],ee[2],[160,31,0,4,0,0]]}]}),de=se("copy_section",{regionIndex:2,position:200},{op:"section",span:[48,80],to:[200,232],regions:pt,markers:Vt,tempo:xt,len:232,was:{regions:pt,markers:Vt,tempo:xt},lanes:[{t:"Gtr L",items:[...ee,[200,31,0,.5,0,0]],was:ee},{t:"Vox",items:[[18,28,.2,.5,0,0],[52,26,.2,1,0,0],[204,26,.2,1,0,0]],was:[[18,28,.2,.5,0,0],[52,26,.2,1,0,0]]}]}),xe=se("copy_media_items",{items:'[{"trackIndex":7,"itemIndex":0}]',times:3},{op:"copy",span:[16,24],to:[24,48],regions:pt,markers:[],tempo:xt,len:200,was:{regions:pt,markers:[],tempo:xt},lanes:[{t:"Keys",items:[[16,8,0,0,1,0],[24,8,0,0,1,0],[32,8,0,0,1,0],[40,8,0,0,1,0]],was:[[16,8,0,0,1,0]]}]}),Ne=se("process_items",{operation:"normalize",items:"[…]",target:-1},{op:"normalize",regions:pt,markers:[],tempo:xt,len:200,was:{regions:pt,markers:[],tempo:xt},lanes:[{t:"Gtr L",items:[[16,30,.5,2,0,0,11],[48,31,0,.5,0,0,5.5]],was:[[16,30,.5,2,0,0,0],[48,31,0,.5,0,0,0]]}]}),Te=se("process_items",{operation:"glue",items:"[…]"},{op:"glue",regions:pt,markers:[],tempo:xt,len:200,was:{regions:pt,markers:[],tempo:xt},lanes:[{t:"Gtr L",items:[[16,63,.5,.5,0,0],ee[2]],was:[[16,14,.5,0,0,0],[30,16,0,2,0,0],ee[1],ee[2]]}]}),Ae=se("run_plan",{ops:"[…]",dryRun:!0},{total:4,dryRun:!0,ops:[["add_track","Vox Bus"],["add_fx","$bus · VST3: Pro-C 2"],["add_send","Vox → $bus"],["set_track","Vox"]]}),Re=se("set_automation_mode",{tracks:'["Vox","Bass"]',mode:"latch"},{rows:[{t:"Vox",p:"Automation",s:"bool",a:1,b:4,at:"read",bt:"latch"},{t:"Bass",p:"Automation",s:"bool",a:0,b:4,at:"trim",bt:"latch"}]}),Le=se("set_fx_param_modulation",He(3,{fxIndex:0,paramIndex:4}),{fx:"VST3: Pro-Q 3 (FabFilter)",rows:[{p:"Band 2 Frequency",base:.42,v:.5,lfo:["triangle",.25,.3,0,0,1],was:{p:"Band 2 Frequency",base:.42,v:.42}}]}),De=se("get_fx_param_modulation",He(6,{fxIndex:1}),{fx:"ReaComp (Cockos)",total:2,rows:[{p:"Threshold",base:.55,v:.4,acs:[5,180,-42,-12,.35,3,-1]},{p:"Ratio",base:.3,v:.36,link:["ReaEQ / Gain-Band 1",-.5,.1]}]}),we=se("set_fx_pins",He(6,{fxIndex:1}),{fx:"ReaComp (Cockos)",ch:4,chWas:2,names:["L in","R in","Aux L in","Aux R in"],in:[[1],[2],[3],[4]],out:[[1],[2]],inWas:[[1],[2],[],[]],outWas:[[1],[2]]}),Ce=se("set_fx_pins",He(4,{fxIndex:0}),{fx:"ReaDelay (Cockos)",ch:6,names:["L in","R in"],in:[[1],[2]],out:[[5],[6]],inWas:[[1],[2]],outWas:[[1],[2]]}),Oe=se("get_fx_pins",He(2,{fxIndex:0}),{fx:"VST3: Pro-L 2 (FabFilter)",ch:2,names:["Input L","Input R"],in:[[1],[2]],out:[[1],[2]]}),re=se("quantize_audio",{trackIndex:1,itemIndex:0,grid:.5},{len:4,moves:[[.52,.5],[1.03,1],[1.47,1.5],[2.02,2],[2.55,2.5],[2.98,3],[3.49,3.5]],grid:[0,.25,.5,.75,1,1.25,1.5,1.75,2,2.25,2.5,2.75,3,3.25,3.5,3.75,4],off:[23.6,0]}),Ee=se("align_audio_to_guide",{trackIndex:2,itemIndex:0,pairs:"[…]",guideTrackIndex:1,guideItemIndex:0},{len:4,moves:[[.52,.45],[1.03,1],[1.47,1.5],[2.02,1.96],[2.55,2.5],[3.49,3.4]],guide:!0,off:[41.7,0]}),it=se("edit_stretch_markers",{trackIndex:1,itemIndex:0,edits:"[…]"},{len:4,marks:[.5,1.2,1.5,2,3],was:[.5,1,1.5,2,3]}),lt=se("add_stretch_markers",{trackIndex:1,itemIndex:0,markers:"[…]"},{len:4,marks:[.5,1,1.5,2,3],was:[2,3]}),ht=se("freeze_tracks",{tracks:'["Synth","Pad"]',mode:"stereo"},{rows:[{t:"Synth",p:"Freeze",s:"bool",a:0,b:1,at:"live",bt:"frozen · stereo"},{t:"Synth",p:"FX",s:"norm",a:.375,b:0,at:"6",bt:"0"},{t:"Pad",p:"Freeze",s:"bool",a:0,b:1,at:"live",bt:"frozen · stereo"},{t:"Pad",p:"FX",s:"norm",a:.25,b:0,at:"4",bt:"0"}]}),qe=se("add_monitoring_fx",{fxName:"VST3: SoundID Reference"},{chains:[{t:"Monitoring FX",fx:[["VST3: SoundID Reference (Sonarworks)","","m1",""],["JS: Mono check","B","m2",""]],was:[["JS: Mono check","B","m2",""]]}]}),_t=se("render_project",{overwrite:!0},{fmt:"wav",bd:"24",src:"master",norm:"lufs_i",nt:-14,lim:-1,tp:!0,groups:[{v:"",m:[],f:[xa("Night Drive (Master).wav",214.6,-14.1,-1.02,-1.4,.8)]}]}),Qe=se("render_project",{},{fmt:"flac",bd:"16",src:"master",norm:"lufs_i",nt:-14,groups:[{v:"",m:[],f:[xa("Night Drive (Loud).flac",214.6,-9.8,.4,.1,1)]}]}),et=se("render_project",{tracks:'["Drums","Bass","Keys","Vocals"]'},{fmt:"wav",bd:"32f",src:"stems",groups:[{v:"",m:[],f:[xa("Drums.wav",214.6,-17.2,-2.1,-2.6,.75),xa("Bass.wav",214.6,-19.8,-5.3,-5.9,.5),xa("Keys.wav",214.6,-24.5,-9.1,-9.6,.3),xa("Lead Vocal Double (Harmony).wav",214.6,-21.3,-.6,-.9,.85)]}]}),Ie=se("render_versions",{versions:"[…]"},{fmt:"mp3",kbps:320,src:"master",norm:"lufs_i",nt:-14,lim:-1,tp:!0,groups:[{v:"Full",m:[],f:[xa("song-Full.mp3",214.6,-14,-1.1,-1.3,.8)]},{v:"Instrumental",m:["Lead Vox","Vox Dbl","Backing Vox"],f:[xa("song-Instrumental.mp3",214.6,-14.2,-1.05,-1.3,.7)]},{v:"TV",m:["Lead Vox"],f:[xa("song-TV.mp3",214.6,-13.9,-1.2,-1.5,.72)]}]}),wt=se("set_fx_parameter",He(8,{fxIndex:0,paramIndex:4,value:.42}),{rows:[{t:"Vox · Pro-Q 3",p:"Band 2 Gain",s:"norm",a:.47,b:.42,at:"−1.8 dB",bt:"−3.6 dB"}]}),yt=se("unfreeze_tracks",{tracks:'["Synth"]'},{rows:[{t:"Synth",p:"Freeze",s:"bool",a:1,b:0,at:"frozen",bt:"live"},{t:"Synth",p:"FX",s:"norm",a:0,b:.375,at:"0",bt:"6"}]}),at=se("apply_fx_to_items",{items:'[{"trackIndex":2,"itemIndex":0}]',mode:"stereo"},{rows:[{t:"Track 3 · item 1",p:"Active take",s:"norm",a:.125,b:.25,at:"Synth Pad",bt:"Synth Pad render 001"}]}),Rt=se("insert_envelope_point",He(4,{envelopeIndex:0,time:20,db:-3}),{env:"Volume",unit:"dB",from:19,to:21,count:10,pts:[[17.5,-1.5,0],[20,-3,0],[24,-1.5,2]],was:[[16,-6,2],[17.5,-1.5,0],[24,-1.5,2],[26,2,0]]}),Lt=se("delete_envelope_point",He(4,{envelopeIndex:0,pointIndex:3}),{env:"Volume",unit:"dB",from:12.5,to:14.5,count:8,pts:[[8,0,0],[12,-2.5,2],[16,-6,2],[17.5,-1.5,0]],was:[[12,-2.5,2],[13.5,-6,0],[16,-6,2]]}),jt=Array.from({length:9},(ze,tt)=>[16+tt*2,tt%2?-.6:.6,2]),Pt=se("clear_envelope",He(6,{envelopeIndex:1}),{env:"Pan",unit:"pan",from:12,to:36,count:0,pts:[],was:jt}),bt=[[1,i],[2,r],[3,[[0,-2,0],[16,-2,0]]]],Nt=se("list_automation_items",He(79,{envelopeIndex:0}),{env:"Volume",unit:"dB",from:0,to:391,count:1,pts:[[0,0,0]],ais:c,pools:bt}),en=se("set_automation_item",He(79,{envelopeIndex:0,automationItemIndex:4,length:24,loop:!0}),{env:"Volume",unit:"dB",from:230,to:266,count:1,pts:[[0,0,0]],was:[[0,0,0]],ai:4,ais:c.map((ze,tt)=>tt===4?[236,24,3,"Vox C"]:ze),pools:bt,wasAis:c,wasPools:bt}),qt=[[0,64,1],[2,80,1],[4,96,1],[6,110,1],[8,100,1],[10,72,1],[12,30,1],[14,48,1],[15.5,90,1]],rt=se("get_midi_cc",{trackIndex:7,itemIndex:0,ccNumber:11},{env:"CC 11 · Expression",unit:"cc",beats:1,from:0,to:17,count:9,otherCcs:2,pts:qt}),dn=se("delete_midi_cc",{trackIndex:7,itemIndex:0,ccIndex:6},{env:"CC 11 · Expression",unit:"cc",beats:1,from:0,to:17,count:8,otherCcs:2,pts:qt.filter(ze=>ze[0]!==12),was:qt}),Wn=se("insert_midi_note",{trackIndex:7,itemIndex:0,pitch:69,velocity:80,startPosition:12,duration:4},{total:xs.length+1,beats:16,ts:[4,4],more:0,gone:[],notes:[...xs,[69,12,4,80,1]]}),Jn=se("edit_midi_note",{trackIndex:7,itemIndex:0,noteIndex:9,velocity:96},{total:xs.length,beats:16,ts:[4,4],more:0,gone:[[55,12,4,72]],notes:xs.map((ze,tt)=>tt===9?[55,12,4,96,1]:ze)}),sl=se("edit_midi_notes",{trackIndex:7,itemIndex:0,edits:'[{"noteIndex":3,"velocity":90},{"noteIndex":4,"velocity":90}]'},{total:xs.length,beats:16,ts:[4,4],more:0,gone:[[53,4,4,72],[57,4,4,72]],notes:xs.map((ze,tt)=>tt===3||tt===4?[ze[0],ze[1],ze[2],90,1]:ze)}),Ds=Sa.map(ze=>ze.slice(0,4)),es=se("transform_midi",{trackIndex:8,itemIndex:0,transpose:12,velocity:'{"scale":0.9}'},{total:Sa.length,beats:16,ts:[4,4],more:0,gone:Ds,notes:Ds.map(([ze,tt,ha,zi])=>[ze+12,tt,ha,Math.round(zi*.9),1])}),sn=(ze,tt,ha,zi,Dm=200)=>({regions:ze,markers:tt,tempo:ha,len:Dm,...zi?{was:zi}:{}}),yn={regions:pt,markers:Vt,tempo:xt},Vn=pt.filter(ze=>ze[2]!=="Bridge"),ts=se("add_region",{start:144,end:160,name:"Bridge"},sn(pt,Vt,xt,{...yn,regions:Vn})),ll=se("edit_marker",{markerIndex:1,name:"Vox enters"},sn(pt,[[18,"Vox enters","",1],Vt[1]],xt,yn)),zs=se("edit_region",{regionIndex:8,end:208},sn(pt.map(ze=>ze[2]==="Outro"?[192,208,"Outro","",8]:ze),Vt,xt,yn,208)),ma=se("delete_marker",{markerIndex:3},sn(pt,[Vt[0]],xt,yn)),Bs=se("delete_region",{regionIndex:6},sn(Vn,Vt,xt,yn)),ys=[...xt,[144,88,3,4,0],[160,92,4,4,0]],ns=se("edit_tempo_marker",{index:1,bpm:84},sn(pt,Vt,[...xt,[144,84,3,4,0],[160,92,4,4,0]],{...yn,tempo:ys})),ss=se("delete_tempo_marker",{index:1},sn(pt,Vt,[...xt,[160,92,4,4,0]],{...yn,tempo:ys})),ls=se("set_project_tempo",{bpm:96},sn(pt,Vt,[[0,96,4,4,0]],yn)),as=se("list_regions",{},sn(pt,Vt,xt,void 0)),os=se("get_tempo_map",{},sn(pt,Vt,ys,void 0)),An=(ze,tt=ee)=>({...sn(pt,Vt,xt,void 0),lanes:[{t:"Gtr L",items:ze,was:tt}]}),al=se("trim_media_item",He(4,{itemIndex:1,trimStart:2}),An([ee[0],[50,29,0,.5,0,0],ee[2]])),Is=se("delete_media_item",He(4,{itemIndex:2}),An([ee[0],ee[1]])),is=se("set_media_item_properties",He(4,{itemIndex:1,volume:-2.5,fadeInLength:.5}),An([ee[0],[48,31,.5,.5,0,0],ee[2]])),rs=se("set_media_items_properties",{items:'[{"trackIndex":4,"itemIndex":0,"mute":1},{"trackIndex":4,"itemIndex":1,"mute":1}]'},An([[16,30,.5,2,0,1],[48,31,0,.5,0,1],ee[2]])),Us=se("set_item_fades",He(4,{itemIndex:0,fadeInLength:.02,fadeOutLength:.5,fadeOutShape:2}),An([[16,30,.02,.5,0,0],ee[1],ee[2]])),ue=se("insert_audio_file",He(4,{filePath:"/Users/you/Music/Samples/riser.wav",position:44}),An([ee[0],[44,4,0,0,0,0],ee[1],ee[2]])),dt=se("get_time_selection",{},{...sn(pt,Vt,xt,void 0),sel:[48,80],cur:48}),zt=se("set_cursor_position",{position:64.5},{...sn(pt,Vt,xt,void 0),sel:[48,80],cur:64.5,wasSel:[48,80],wasCur:48}),bs=["Master",0,"",-.3,0,""],Va=se("move_track",{track:"Bass",toIndex:0},{total:6,tracks:[E[3],E[0],E[1],E[2],E[4],E[5]],ids:["b4","d1","k2","s3","v5","o6"],was:{tracks:E,ids:C},master:bs}),Ga=se("set_track_folder",{track:"Vox",mode:"folder"},{total:6,tracks:[...E.slice(0,4),["Vox",0,"#7cc4ff",1.5,0,"F"],["Old Vox",1,"",-9,0,"M"]],ids:C,was:{tracks:E,ids:C},master:bs}),Fa=se("set_track_info",{track:"Vox",name:"Lead Vocal",color:"#E86A5A"},{total:6,tracks:[...E.slice(0,4),["Lead Vocal",0,"#E86A5A",1.5,0,""],E[5]],ids:C,was:{tracks:E,ids:C},master:bs}),wl=[["VST3: Pro-Q 3 (FabFilter)","O","f6",""]],Oi=se("remove_fx",He(8,{fxIndex:2}),{chains:[{t:"Vox",fx:[A[0],A[1],A[3]],was:A}]}),ge=se("copy_fx",He(8,{fxIndex:1,toTrackIndex:9}),{chains:[{t:"Vox",fx:A,was:A},{t:"Vox Dbl",fx:[...wl,["VST3: Pro-C 2 (FabFilter)","","g7","Vocal Leveler"]],was:wl}]}),Be=se("set_fx_offline",He(8,{fxIndex:3,offline:!0}),{chains:[{t:"Vox",fx:[...A.slice(0,3),["VST3: Saturn 2 (FabFilter)","O","d4",""]],was:A}]}),Ln=se("setup_fx_chain",He(3,{plugins:[{fxName:"ReaEQ"},{fxName:"ReaComp",parameters:[{index:0,value:.35}]}]}),{chains:[{t:"Bass",fx:[["VST: ReaEQ (Cockos)","","h8",""],["VST: ReaComp (Cockos)","","i9",""]],was:[]}]}),Bl=se("load_fx_chain",He(9,{name:"Vocals/Lead chain",mode:"append"}),{chains:[{t:"Vox Dbl",fx:[...wl,["VST3: Pro-Q 3 (FabFilter)","","j1",""],["VST3: Pro-C 2 (FabFilter)","","j2","Vocal Leveler"],["JS: De-esser","","j3",""],["VST3: Saturn 2 (FabFilter)","","j4",""]],was:wl}]}),Pa=se("rename_fx",He(8,{fxIndex:0,name:"Vox EQ"}),{chains:[{t:"Vox",fx:[["Vox EQ","","a1",""],...A.slice(1)],was:A}]}),Om=se("set_fx_preset",He(8,{fxIndex:0,presetName:"Vocal Presence"}),{chains:[{t:"Vox",fx:[["VST3: Pro-Q 3 (FabFilter)","","a1","Vocal Presence"],...A.slice(1)],was:A}]}),sc=[["VST3: SoundID Reference (Sonarworks)","","m1",""],["JS: Mono check","B","m2",""]],z6=se("list_monitoring_fx",{},{chains:[{t:"Monitoring FX",fx:sc}]}),B6=se("set_monitoring_fx",{fxIndex:0,enabled:!1},{chains:[{t:"Monitoring FX",fx:[["VST3: SoundID Reference (Sonarworks)","B","m1",""],sc[1]],was:sc}]}),I6=se("remove_monitoring_fx",{fxIndex:1},{chains:[{t:"Monitoring FX",fx:[sc[0]],was:sc}]}),Di=[["s","Verb",-12,0,""],["s","Vox Bus",-6,0,""],["s","Delay",-16,-.3,"M"],["h","Out 3/4",0,0,""]],U6=se("set_send",{track:"Vox",index:0,volume:-9},{t:"Vox",routes:[["s","Verb",-9,0,""],...Di.slice(1)],was:Di}),H6=se("remove_send",{track:"Vox",category:"send",index:2},{t:"Vox",routes:[Di[0],Di[1],Di[3]],was:Di}),V6=se("add_hardware_output",{track:"Click",outputChannel:3,mono:!0},{t:"Click",routes:[["h","Out 3",0,0,""]],was:[]});return[le("Track volume",t,"One track, before → after"),le("Several tracks",e,"Volume above 0, pan, mute"),le("FX parameters",n,"The plugin’s own readout; unchanged rows fade"),le("Automation added",s,"New points over the curve before"),le("Automation listed",l,"Pan envelope, no before"),le("Automation removed",a,"A range cleared: removed points dashed"),le("Automation items pooled",u,"One pool per section type; the new chorus instance outlined"),le("Pool edited",d,"One chorus edited, every chorus follows; the old curve dashed"),le("Automation item deleted",m,"The C section’s item gone, its place dashed"),le("Notes added",f,"A melody over the chords it kept"),le("Note deleted",b,"The removed note dashed"),le("MIDI quantized",g,"A played-in melody snapped to 8ths: where each note was, dashed"),le("MIDI file imported",y,"Every note new, from a .mid without REAPER’s dialog"),le("Large MIDI item",p,"First 256 of 2044 notes"),le("MIDI analysis",v,"Velocity per pitch, machine gun on the hi-hat"),le("Markers listed",_,"Regions and markers"),le("Markers · dense",k,"Labels that would collide show on hover"),le("Marker added",w,"The new marker underlined"),le("Tempo change",R,"A 3/4 bridge at 88 BPM"),le("Items listed",j,"Fades, a muted item, a MIDI item"),le("Mixer",N,"Folders, mute, solo, arm, a hot fader"),le("Tracks changed",O,"Added, moved and removed tracks marked"),le("Track deleted",M,"The deleted track stays, dashed, where it was"),le("FX bypassed",T,"The chain after, the bypassed slot marked"),le("FX added",S,"Inserted mid-chain; the removed one struck through"),le("FX moved to another track",$,"Both chains, before → after"),le("FX chain listed",L,"Presets, a bypassed and offline slot"),le("Send added",z,"New, changed and removed routes; was-level ghosted"),le("Routing listed",D,"A bus and its receives"),le("Big routing",I,"A drum bus: 7 kit pieces in, a send added, one removed, one turned up"),le("Huge routing",F,"12 kit pieces in, 7 out: the flow at full size"),le("Item moved",he,"From one track to another; where it was dashed"),le("Item split",pe,"One item became two"),le("MIDI items listed",G,"One lane, a muted item"),le("Time selection",ae,"Selection and cursor, where they were dashed"),le("FX parameters listed",oe,"The plugin’s readout, first parameters only"),le("MIDI CC inserted",ye,"A controller lane in beats, held between events"),le("Plan",Ae,"A dry run"),le("Arrange · time inserted",te,"A 16 s gap opened at 2:24: everything after moves, the drum item split"),le("Arrange · time removed",ie,"The bridge cut: its region gone, the rest pulled back"),le("Arrange · section copied",de,"The chorus (outlined) copied to the end (hatched)"),le("Arrange · items repeated",xe,"A 4-bar MIDI loop repeated 3 times"),le("Arrange · normalized",Ne,"Item gain to −1 dB peak, the gain each item got"),le("Arrange · glued",Te,"Three items became one"),le("Render · on target",_t,"Normalized to −14 LUFS, true-peak limited at −1"),le("Render · off target",Qe,"Louder than the target, true peak over 0"),le("Render · stems",et,"One file per selected track, 32-bit float, no target"),le("Render · versions",Ie,"Full, instrumental and TV mix in one call; muted tracks named"),le("Record setup",X,"Armed tracks with input, monitoring and mode; auto-punch on a time selection"),le("Track armed",Y,"Arm, input and monitoring changed: old values struck through"),le("Record mode set",Z,"Normal → auto-punch with a punch range and a new record path"),le("Lanes listed",W,"Three takes on fixed lanes; the first plays"),le("Lanes layered",J,"Two lanes play together; the play marks were changed"),le("Comp built",ce,"A new Comp lane, each part tinted by the take it came from; the takes go silent"),le("Automation mode",Re,"Two tracks to latch"),le("Modulation · LFO",Le,"A tempo-synced LFO around the baseline; none before"),le("Modulation listed",De,"An audio follower on 3 (band) and a parameter link"),le("Pins · sidechain",we,"Aux pins routed to 3/4; the track widened to 4 channels"),le("Pins · outputs moved",Ce,"The delay now plays on channels 5/6 instead of 1/2"),le("Pins listed",Oe,"A stereo limiter"),le("Audio quantized",re,"Hits moved onto the 8th grid; where they were dashed"),le("Audio aligned to a guide",Ee,"A double’s hits pulled onto the lead’s; where they were dashed"),le("Stretch markers edited",it,"One marker moved from 1.0 s to 1.2 s"),le("Stretch markers added",lt,"Three new markers beside the two kept"),le("Tracks frozen",ht,"Two tracks frozen, their FX taken out"),le("Monitoring FX added",qe,"Room correction ahead of a bypassed mono check"),le("FX parameter",wt,"One parameter, the plugin’s readout before → after"),le("Tracks unfrozen",yt,"Live again, its FX back"),le("FX applied to an item",at,"Rendered to a new active take; the old take stays"),le("Automation point added",Rt,"One new point; the curve before dashed"),le("Automation point deleted",Lt,"The removed point dashed"),le("Automation cleared",Pt,"Every point removed, the old curve dashed"),le("Automation items listed",Nt,"Every item with its pool"),le("Automation item changed",en,"The C section’s item made longer; where it ended dashed"),le("MIDI CC listed",rt,"One controller lane, no before"),le("MIDI CC deleted",dn,"The removed event dashed"),le("Note added",Wn,"One new note over the chords"),le("Note edited",Jn,"A louder note; the old one dashed"),le("Notes edited",sl,"Two notes at once"),le("MIDI transformed",es,"An octave up, 10% softer"),le("Region added",ts,"The bridge region added"),le("Marker edited",ll,"A marker renamed"),le("Region edited",zs,"The outro made longer"),le("Marker deleted",ma,"The removed marker dashed"),le("Region deleted",Bs,"The bridge region removed"),le("Tempo marker edited",ns,"The bridge slowed to 84 BPM"),le("Tempo marker deleted",ss,"The 3/4 bridge marker removed"),le("Project tempo",ls,"92 → 96 BPM at the start"),le("Regions listed",as,"The song’s sections"),le("Tempo map",os,"A 3/4 bridge at 88 BPM"),le("Item trimmed",al,"The left edge moved in 2 s"),le("Item deleted",Is,"The last item gone, dashed"),le("Item changed",is,"A fade-in added"),le("Items changed",rs,"Two items muted"),le("Item fades",Us,"A short fade-in and a shorter fade-out"),le("Audio file inserted",ue,"A riser before the chorus"),le("Time selection read",dt,"Selection and cursor, as they are"),le("Cursor moved",zt,"The edit cursor into the chorus"),le("Track moved",Va,"Bass to the top"),le("Folder made",Ga,"Vox became a folder over Old Vox"),le("Track renamed",Fa,"New name and colour"),le("FX removed",Oi,"The de-esser struck through"),le("FX copied",ge,"The compressor copied with its preset to the double"),le("FX offline",Be,"One slot taken offline"),le("FX chain set up",Ln,"An EQ and a compressor on an empty chain"),le("FX chain loaded",Bl,"A saved chain appended"),le("FX renamed",Pa,"The EQ renamed"),le("Preset loaded",Om,"A preset on the EQ"),le("Monitoring FX listed",z6,"Room correction and a bypassed mono check"),le("Monitoring FX bypassed",B6,"Room correction bypassed"),le("Monitoring FX removed",I6,"The mono check struck through"),le("Send changed",U6,"The reverb send up 3 dB; its old level ghosted"),le("Send removed",H6,"The delay send struck through"),le("Hardware output added",V6,"The click to output 3, mono")]}const r6=CI(),MI=(()=>{const t=i6[3],e=se("add_fx",{trackIndex:3,fxName:"VST3: Pro-Q 4"},void 0,{ok:!1,e:'FX "VST3: Pro-Q 4" not found on track 3. Installed match candidates: Pro-Q 3',ms:22.4}),n=se("send_midi_cc",{trackIndex:0,cc:1,value:64},void 0,{ok:!1,e:"Internal error: reaper-mcp/mcp_midi_emitter was inserted but could not be found in the MCP Meters container",ms:3.1}),s=se("render_project",{bounds:"time_selection",overwrite:!0},void 0,{ms:4655}),l=se("get_fx_parameters",{trackIndex:3,fxIndex:0},void 0,{ms:612}),a=se("list_tracks",{},void 0,{p:void 0,ms:3.1});return[{...t,title:"With a result",note:"A measurement, its params and the previous call"},le("Refused",e,"An expected rejection: a warning, not counted as an error"),le("Error",n,"A system error: counted, and notified when enabled"),le("Long-running",s,"Slow by nature, so not marked slow"),le("Very slow",l,"Over 500 ms"),le("No params",a),le("From this page",se("snapshot_restore",{name:"mix-B"},void 0,{s:void 0,src:"page",ms:38.2}),"A snapshot loaded from the Snapshots view")]})();(()=>{const t=a6(C0),e=(s,l)=>({id:"17618",op:s,name:l,at:C0-2e3});return[{title:"List",note:"mix-B loaded; 1–9 load from the keyboard",feed:t,request:null,blocked:null},{title:"Loading",note:"Waiting for the bridge",feed:t,request:{...e("restore","mix-C"),state:"pending"},blocked:null},{title:"Loaded with warnings",note:"A track renamed since the save",feed:{...t,current:"mix-A"},request:{...e("restore","mix-A"),state:"done",result:{id:"17618",op:"restore",name:"mix-A",ok:!0,tracksRestored:24,warnings:["Track 4: is now 'Gtr L' (saved as 'Guitar L')"]}},blocked:null},{title:"Saved",feed:t,request:{...e("save","mix-C"),state:"done",result:{id:"17618",op:"save",name:"mix-C",ok:!0}},blocked:null},{title:"Refused",note:"Read-only was switched on meanwhile",feed:t,request:{...e("restore","mix-A"),state:"done",result:{id:"17618",op:"restore",name:"mix-A",ok:!1,error:"Read-only mode is on in the MCP Bridge window: 'snapshot_restore' would change the project. Ask the user to turn read-only off."}},blocked:null},{title:"No answer",note:"The bridge script stopped",feed:t,request:{...e("save","mix-D"),state:"lost"},blocked:null},{title:"Read-only",note:"Restore and save off",feed:t,request:null,blocked:"Read-only: turn it off in Settings to restore or save snapshots"},{title:"Empty",note:"Unsaved project",feed:{v:1,storage:"global",snapshots:[]},request:null,blocked:null},{title:"Waiting for the list",feed:null,request:null,blocked:null},{title:"Save · replaces",note:"A name already saved",feed:t,request:null,blocked:null,saveForm:{name:"mix-B"}},{title:"Save · confirm replace",feed:t,request:null,blocked:null,saveForm:{name:"mix-B",confirm:!0}},{title:"Deleted",feed:t,request:{...e("delete","mix-A"),state:"done",result:{id:"17618",op:"delete",name:"mix-A",ok:!0}},blocked:null},{title:"Delete · confirm",note:"Delete asks once, in the row",feed:t,request:null,blocked:null,row:{name:"mix-B",mode:"delete"}},{title:"Rename",note:"Name and description, in place of the row",feed:t,request:null,blocked:null,row:{name:"mix-B",mode:"edit"}},{title:"Narrow",note:"Under ~420px",feed:t,request:{...e("restore","mix-B"),state:"pending"},blocked:null,narrow:!0}]})();function AI(t){let e=t>>>0;return()=>{e=e+1831565813>>>0;let n=e;return n=Math.imul(n^n>>>15,n|1),n^=n+Math.imul(n^n>>>7,n|61),((n^n>>>14)>>>0)/4294967296}}const W_=[["list_tracks",3,{}],["get_track_properties",2,{trackIndex:3}],["set_fx_parameter",.6,{trackIndex:3,fxIndex:0,paramIndex:4,value:.42}],["set_multiple_fx_parameters",4,{params:'[{"trackIndex":3,"fxIndex":0,"paramIndex":1,"value":0.3}]'}],["read_track_meters",1.2,{trackIndex:0}],["read_track_lufs",18,{trackIndex:0,targetLufs:-14}],["read_track_spectrum",35,{trackIndex:5,fftSize:4096}],["read_track_correlation",6,{trackIndex:4}],["read_track_crest",5,{trackIndex:1}],["render_track_to_wav",900,{trackIndex:0,startTime:30,endTime:35,commandId:"demo"}],["add_fx",22,{trackIndex:3,fxName:"VST3: Pro-Q 3"}],["set_track_property",.8,{trackIndex:2,property:"volume",value:-3.5}],["snapshot_save",60,{name:"before-vocal-chain"}],["get_fx_parameters",9,{trackIndex:3,fxIndex:0}],["insert_envelope_points",3,{trackIndex:4,envelopeIndex:0,points:"[…]"}],["insert_midi_notes",5,{trackIndex:7,itemIndex:0,notes:"[…]"}],["analyze_midi",4,{trackIndex:2,itemIndex:0}],["add_marker",1.1,{position:80,name:"Drop"}],["list_media_items",1.4,{trackIndex:4}],["run_plan",14,{ops:"[…]",dryRun:!0}]];function LI(t,e){const n=(s,l)=>Math.round((s+(e()-.5)*l)*100)/100;switch(t){case"read_track_meters":return{peakL:n(-4,6),peakR:n(-5,6),rmsL:n(-16,4),rmsR:n(-17,4)};case"read_track_lufs":return{integrated:n(-12,3),shortTerm:n(-11,4),momentary:n(-10,6),truePeakL:n(-1.2,1.5),truePeakR:n(-1.6,1.5),duration:3};case"read_track_correlation":return{correlation:n(.55,.9),stereoWidth:n(1.1,.4),midLevel:n(-15,3),sideLevel:n(-24,4)};case"read_track_crest":return{crestFactor:n(11,4),peakLevel:n(-3,3),rmsLevel:n(-14,3)};case"read_track_spectrum":{const s=Array.from({length:48},(l,a)=>{const i=20*1e3**((a+.5)/48),r=-3*Math.log2(i/100),c=8*Math.exp(-(Math.log2(i/60)**2)),u=4*Math.exp(-(Math.log2(i/3e3)**2)*2),d=i>16e3?-12*Math.log2(i/16e3)*3:0;return n(-24+r+c+u+d,3)});return{peakDb:n(-6,2),rmsDb:n(-18,2),fftSize:4096,sampleRate:48e3,bands:s}}case"render_track_to_wav":{const s=.8+e()*.25,l=Array.from({length:120},(r,c)=>{const u=c%12/12;return Math.round(Math.min(1,.03+s*Math.exp(-u*9)+e()*.02)*100)/100}),a=l.map(r=>-Math.round(r*(.9+e()*.1)*100)/100),i=Math.max(...l);return{durationSeconds:5,sampleRate:44100,channels:2,hi:l,lo:a,peakDb:Math.round(20*Math.log10(i)*100)/100,rmsDb:n(-15,2),clipped:i>=1?Math.round(e()*40)+1:0}}}return r6.find(s=>s.entry.c===t)?.entry.r}const J_=['FX "VST3: Pro-Q 4" not found on track 3. Installed match candidates: Pro-Q 3',"Track index 42 out of range (project has 18 tracks)","Handler error: mcp_bridge.lua:2214: attempt to index a nil value (local 'item')"],e3=1e4,wd=[6e4,6e5],OI=24*36e5,t3=[...i6,...r6,...MI],n3=Object.entries(L$).flatMap(([t,e])=>e==="example"?[]:[{n:0,t:0,c:t,ms:2.4,ok:!0,p:JSON.stringify(e)}]);function DI({now:t=Date.now,random:e=Math.random,tour:n=!1}={}){const s=t()-282e4;let l=0,a=0,i=[],r=[],c=!0;const u=new Map,d=wd.map(()=>new Map),m=(_,x,k,w,R,j,N)=>{const E=Math.floor(k/x),C=_.get(E)??[E,0,0,0,0];C[1]+=w,C[2]+=R,C[3]+=j,C[4]+=N,_.set(E,C)},f={paused:!1,readonly:!1,openOnStart:!0,dev:!1,autostart:!0},h=[{id:"4f1c2a9e-1b7d-4c55-9a51-7f0d3e2b8c10",dir:"/Users/you/Music/midnight-drive",client:"claude-code",first:s+6e4,last:0,commands:0,errors:0},{id:"9b2e77d0-5c3a-4e8f-b1d2-2a6c9f4e0d31",dir:"/Users/you/Music/stems-prep",client:"claude-code",first:s+20*6e4,last:0,commands:0,errors:0},{id:"pid-48213",dir:"/Users/you/Workspace/mix-scripts",client:"cursor",first:s+5*6e4,last:0,commands:0,errors:0}],g=(_,x)=>{const[k,w,R]=x?[x.c,x.ms,void 0]:W_[Math.floor(e()*W_.length)],j=e(),N=_-s>25*6e4&&j>.75?h[1]:j>.9&&_-s<25*6e4?h[2]:h[0];let E=x?x.ok:e()>.06,C=x?x.e:E?void 0:J_[Math.floor(e()*J_.length)];f.paused?(E=!1,C="Paused by user in the MCP Bridge window. Ask the user to resume agent control."):f.readonly&&T5(k)==="write"&&(E=!1,C=`Read-only mode is on in the MCP Bridge window: '${k}' would change the project. Ask the user to turn read-only off.`),l+=1,E||(a+=1);const O=x&&!f.paused?w:E||!f.paused?Math.round(w*(.5+e()*1.5)*100)/100:.01,M=x?.src?{n:l,t:_,c:k,ms:O,ok:E,src:x.src,p:x.p}:{n:l,t:_,c:k,ms:O,ok:E,s:N.id,p:x?x.p:JSON.stringify(R)},A=E?x?x.r:LI(k,e):void 0;A&&(M.r=A),C&&(M.e=C),i=[M,...i].slice(0,50),r=[M,...r].slice(0,Tm),M.src||(N.last=_,N.commands+=1,E||(N.errors+=1));const T=E&&!["fast","long"].includes($m(k,M.ms))?1:0;m(u,e3,_,1,E?0:1,T,M.ms),d.forEach((S,$)=>m(S,wd[$],_,1,E?0:1,T,M.ms))};for(let _=s-7*OI;_<s;_+=6e4){const x=new Date(_).getHours();if(x<10||x>22||Math.sin(_/72e5)<.2)continue;const k=Math.round(e()*12);if(k===0)continue;const w=e()<.15?1:0;d.forEach((R,j)=>m(R,wd[j],_,k,w,e()<.2?1:0,k*6))}const y=n?[...n3,...t3.flatMap(_=>[..._.history].reverse())]:[],b=t()-5*6e4;let p=0;for(let _=s;_<t();_+=1e3){for(;p<y.length&&b+Math.floor(p/y.length*5*6e4)<=_;p++)g(b+Math.floor(p/y.length*5*6e4),y[p]);const x=Math.floor((_-s)/6e4),w=x%9<4||x>40?.25+.45*Math.abs(Math.sin(x)):.02;e()<w&&g(_)}for(h[2].ended=!0;p<y.length;p++)g(b+Math.floor(p/y.length*5*6e4),y[p]);const v=n?[...n3,...t3.map(_=>_.entry)]:[];return{tick(){e()<.35&&g(t(),v.length&&e()<.5?v[Math.floor(e()*v.length)]:void 0);const _=c?r:void 0;return c=!1,h[1].last=Math.max(h[1].last,t()-8e3),{status:{v:1,ts:t(),startedAt:s,reaperVersion:"7.27/macOS-arm64",project:"/Users/you/Music/Projects/Midnight Drive/Midnight Drive — mix v3.rpp",bridgeDir:"/Users/you/Library/Application Support/REAPER/Scripts/mcp_bridge_data/",commands:l,errors:a,deferMs:33+e()*2,recent:i,sessions:[...h].sort((x,k)=>k.last-x.last),settings:{...f},health:{sws:!0,jsfx:!0,autostart:!0,outdated:typeof location<"u"&&new URLSearchParams(location.search).has("outdated")},knowledge:z$},history:{v:1,size:e3,b:[...u.values()].sort((x,k)=>x[0]-k[0])},longHistory:{v:1,tiers:d.map((x,k)=>({size:wd[k],b:[...x.values()].sort((w,R)=>w[0]-R[0])}))},..._?{log:_}:{}}},set(_,x){_==="cfg_paused"?f.paused=x:_==="cfg_readonly"?f.readonly=x:_==="cfg_dev"?f.dev=x:_==="cfg_autostart"?f.autostart=x:f.openOnStart=x}}}const $s=new URLSearchParams(location.search).has("demo")?DI({tour:!0,random:AI(42)}):null,zI="_notices_19m43_1",BI="_noticeActions_19m43_2",II="_noticeLog_19m43_3",UI="_noticeDetails_19m43_4",jd={notices:zI,noticeActions:BI,noticeLog:II,noticeDetails:UI},c6="mcp-bridge-sws-dismissed";function HI(t){const e=fe.c(86),{status:n,settings:s,onSet:l,request:a}=t,[i,r]=Q.useState(GI),[c,u]=Q.useState(VI),[d,m]=Q.useState(!1),f=n.health,h=n.control,g=h?.update,y=s?.dev===!0,b=g?.kind==="rebuild",p=R$(!$s&&!y),v=[],_=g?.state!=="running"&&g?.state!=="failed"&&!y&&p&&i_(p.version,"0.70.1")>0&&c!==p.version,x=`Update reaper-mcp to v${p?.version??""}`;let k;e[0]!==a?(k=()=>a("update"),e[0]=a,e[1]=k):k=e[1];let w;if(e[2]!==x||e[3]!==k?(w={id:"bridge-update",label:x,group:"Bridge",onSelect:k},e[2]=x,e[3]=k,e[4]=w):w=e[4],mt(w,!!(_&&h?.canUpdate)),g?.state==="done"&&!d){let j;e[5]===Symbol.for("react.memo_cache_sentinel")?(j=o.jsx("button",{className:"icon-btn","aria-label":"Dismiss",title:"Dismiss",onClick:()=>m(!0),children:o.jsx(un.Close,{})}),e[5]=j):j=e[5];const N=b?"Rebuilt from your working tree":"reaper-mcp is up to date (v0.70.1)";let E;e[6]!==N?(E=o.jsxs("b",{children:[N,"."]}),e[6]=N,e[7]=E):E=e[7];let C;e[8]===Symbol.for("react.memo_cache_sentinel")?(C=o.jsx("code",{children:"/mcp"}),e[8]=C):C=e[8];let O;e[9]!==E?(O=o.jsxs(Gl,{tone:"info",action:j,children:[E," Restart Claude Code, or run"," ",C," there, to use the new tools."]},"update"),e[9]=E,e[10]=O):O=e[10],v.push(O)}else if(g?.state==="running"){let j;e[11]!==g?(j=r_(g),e[11]=g,e[12]=j):j=e[12];const N=j,E=b?"Rebuilding from your working tree…":"Updating reaper-mcp…";let C;e[13]!==E?(C=o.jsx("b",{children:E}),e[13]=E,e[14]=C):C=e[14];const O=b?"The bridge restarts and this page reloads when it’s done.":"This takes a minute or two; the bridge restarts when it’s done.";let M;e[15]!==N?(M=N.length>0&&o.jsx("span",{className:K(jd.noticeLog,"mono"),children:N[N.length-1]}),e[15]=N,e[16]=M):M=e[16];let A;e[17]!==C||e[18]!==O||e[19]!==M?(A=o.jsxs(Gl,{tone:"info",children:[C," ",O,M]},"update"),e[17]=C,e[18]=O,e[19]=M,e[20]=A):A=e[20],v.push(A)}else if(g?.state==="failed"){const j=r_(g);let N;e[21]!==b||e[22]!==a?(N=o.jsx("button",{className:"btn btn-sm",onClick:()=>a(b?"rebuild":"update"),children:"Try again"}),e[21]=b,e[22]=a,e[23]=N):N=e[23];const E=b?"The rebuild didn’t finish.":"The update didn’t finish.";let C;e[24]!==E?(C=o.jsx("b",{children:E}),e[24]=E,e[25]=C):C=e[25];const O=j[j.length-1]??"See tmp/install.log in your reaper-mcp folder.",M=j.length>1&&o.jsxs("details",{className:jd.noticeDetails,children:[o.jsx("summary",{children:"Show log"}),o.jsx("pre",{className:"mono",children:j.join(`
|
|
95
|
+
`)})]});let A;e[26]!==N||e[27]!==C||e[28]!==O||e[29]!==M?(A=o.jsxs(Gl,{tone:"bad",action:N,children:[C," ",O,M]},"update"),e[26]=N,e[27]=C,e[28]=O,e[29]=M,e[30]=A):A=e[30],v.push(A)}else if(!y&&p&&i_(p.version,"0.70.1")>0&&c!==p.version){let j;e[31]!==h?.canUpdate||e[32]!==a?(j=h?.canUpdate&&o.jsx("button",{className:"btn btn-sm",onClick:()=>a("update"),children:"Update"}),e[31]=h?.canUpdate,e[32]=a,e[33]=j):j=e[33];let N;e[34]!==p.version?(N=()=>{u(p.version),xl(u6,p.version)},e[34]=p.version,e[35]=N):N=e[35];let E;e[36]===Symbol.for("react.memo_cache_sentinel")?(E=o.jsx(un.Close,{}),e[36]=E):E=e[36];let C;e[37]!==N?(C=o.jsx("button",{className:"icon-btn","aria-label":"Skip this version",title:"Skip this version",onClick:N,children:E}),e[37]=N,e[38]=C):C=e[38];let O;e[39]!==j||e[40]!==C?(O=o.jsxs("span",{className:jd.noticeActions,children:[j,C]}),e[39]=j,e[40]=C,e[41]=O):O=e[41];let M;e[42]!==p.version?(M=o.jsxs("b",{children:["reaper-mcp v",p.version," is available"]}),e[42]=p.version,e[43]=M):M=e[43];let A;e[44]!==p.url?(A=o.jsx("a",{href:p.url,target:"_blank",rel:"noreferrer",children:"What’s new"}),e[44]=p.url,e[45]=A):A=e[45];let T;e[46]!==h?.canUpdate?(T=!h?.canUpdate&&o.jsxs(o.Fragment,{children:[" ","· Update from your reaper-mcp folder: ",o.jsx("code",{children:"git pull && ./scripts/install.sh"})]}),e[46]=h?.canUpdate,e[47]=T):T=e[47];let S;e[48]!==A||e[49]!==T||e[50]!==O||e[51]!==M?(S=o.jsxs(Gl,{tone:"info",action:O,children:[M," (you have v","0.70.1",")."," ",A,T]},"update"),e[48]=A,e[49]=T,e[50]=O,e[51]=M,e[52]=S):S=e[52],v.push(S)}if(s?.paused){let j;e[53]!==l?(j=o.jsx("button",{className:"btn btn-sm",onClick:()=>l("cfg_paused",!1),children:"Resume"}),e[53]=l,e[54]=j):j=e[54];let N;e[55]===Symbol.for("react.memo_cache_sentinel")?(N=o.jsx("b",{children:"Agent control is paused."}),e[55]=N):N=e[55];let E;e[56]!==j?(E=o.jsxs(Gl,{tone:"warn",action:j,children:[N," Every command gets an error until you resume. Resets when REAPER restarts."]},"paused"),e[56]=j,e[57]=E):E=e[57],v.push(E)}if(s?.readonly){let j;e[58]!==l?(j=o.jsx("button",{className:"btn btn-sm",onClick:()=>l("cfg_readonly",!1),children:"Turn off"}),e[58]=l,e[59]=j):j=e[59];let N;e[60]===Symbol.for("react.memo_cache_sentinel")?(N=o.jsx("b",{children:"Read-only mode."}),e[60]=N):N=e[60];let E;e[61]!==j?(E=o.jsxs(Gl,{tone:"info",action:j,children:[N," Agents can inspect, meter and play, but not change the project."]},"readonly"),e[61]=j,e[62]=E):E=e[62],v.push(E)}if(f?.outdated){let j;e[63]!==h?.canRestart||e[64]!==a?(j=h?.canRestart&&o.jsx("button",{className:"btn btn-sm",onClick:()=>a("restart"),children:"Restart bridge"}),e[63]=h?.canRestart,e[64]=a,e[65]=j):j=e[65];let N;e[66]===Symbol.for("react.memo_cache_sentinel")?(N=o.jsx("b",{children:"A newer bridge is installed."}),e[66]=N):N=e[66];let E;e[67]!==h?.canRestart?(E=h?.canRestart?"Restart it to load it.":o.jsxs(o.Fragment,{children:["Stop ",o.jsx("code",{children:"mcp_bridge.lua"})," and run it again to load it."]}),e[67]=h?.canRestart,e[68]=E):E=e[68];let C;e[69]!==j||e[70]!==E?(C=o.jsxs(Gl,{tone:"warn",action:j,children:[N," ",E]},"outdated"),e[69]=j,e[70]=E,e[71]=C):C=e[71],v.push(C)}const R=AN(n.web);if(n.web&&R!=="ok"){const j=R==="full"?"bad":"warn";let N;e[72]===Symbol.for("react.memo_cache_sentinel")?(N=o.jsx("b",{children:"REAPER’s web server is filling up."}),e[72]=N):N=e[72];let E;e[73]!==n.web.limit||e[74]!==n.web.stuck||e[75]!==j?(E=o.jsxs(Gl,{tone:j,children:[N," It holds ",n.web.stuck," of about ",n.web.limit," connections that browsers closed and it never freed, and stops answering at the limit. Restart REAPER to clear them."]},"web"),e[73]=n.web.limit,e[74]=n.web.stuck,e[75]=j,e[76]=E):E=e[76],v.push(E)}if(f&&!f.jsfx){let j;e[77]===Symbol.for("react.memo_cache_sentinel")?(j=o.jsx("b",{children:"Meters are missing"}),e[77]=j):j=e[77];let N;e[78]!==f.missingJsfx?(N=f.missingJsfx?.join(", ")??"JSFX",e[78]=f.missingJsfx,e[79]=N):N=e[79];let E;e[80]===Symbol.for("react.memo_cache_sentinel")?(E=o.jsx("code",{children:"reaper-mcp setup"}),e[80]=E):E=e[80];let C;e[81]!==N?(C=o.jsxs(Gl,{tone:"bad",children:[j," (",N,"). Run ",E," to install them."]},"jsfx"),e[81]=N,e[82]=C):C=e[82],v.push(C)}if(f&&!f.sws&&!i){let j,N;e[83]===Symbol.for("react.memo_cache_sentinel")?(j=o.jsx("button",{className:"icon-btn","aria-label":"Dismiss",title:"Dismiss",onClick:()=>{r(!0),xl(c6,"1")},children:o.jsx(un.Close,{})}),N=o.jsx("b",{children:"SWS isn’t installed."}),e[83]=j,e[84]=N):(j=e[83],N=e[84]);let E;e[85]===Symbol.for("react.memo_cache_sentinel")?(E=o.jsxs(Gl,{tone:"info",action:j,children:[N," Envelope and some FX tools fall back to slower paths."," ",o.jsx("a",{href:"https://www.sws-extension.org",target:"_blank",rel:"noreferrer",children:"Get SWS"})]},"sws"),e[85]=E):E=e[85],v.push(E)}return v.length?o.jsx("div",{className:jd.notices,children:v}):null}function VI(){return fa(u6)}function GI(){return fa(c6)==="1"}const u6="mcp-bridge-update-skipped",FI="_offline_16u7n_1",PI="_offlineIcon_16u7n_9",s3={offline:FI,offlineIcon:PI};function qI(t){const e=fe.c(3),{reachable:n}=t;let s;e[0]===Symbol.for("react.memo_cache_sentinel")?(s=o.jsx("div",{className:s3.offlineIcon,"aria-hidden":!0,children:o.jsx(o5,{active:!1})}),e[0]=s):s=e[0];let l;return e[1]!==n?(l=o.jsxs("section",{className:s3.offline,children:[s,n?o.jsxs(o.Fragment,{children:[o.jsx("h2",{children:"The bridge isn’t running"}),o.jsxs("p",{children:["REAPER is up, but ",o.jsx("code",{children:"mcp_bridge.lua"})," hasn’t published a status yet."]}),o.jsxs("ol",{children:[o.jsx("li",{children:"In REAPER: Actions → Show action list → Load ReaScript…"}),o.jsxs("li",{children:["Select ",o.jsx("code",{children:"Scripts/mcp_bridge.lua"})," and run it"]}),o.jsx("li",{children:"This page connects on its own. No reload needed."})]})]}):o.jsxs(o.Fragment,{children:[o.jsx("h2",{children:"Can’t reach REAPER"}),o.jsx("p",{children:"Open REAPER and start the bridge. This page connects on its own."}),o.jsxs("ol",{children:[o.jsx("li",{children:"Open REAPER"}),o.jsxs("li",{children:["Run ",o.jsx("code",{children:"mcp_bridge.lua"})," from the action list (first time: Actions → Show action list → Load ReaScript…)"]}),o.jsxs("li",{children:["Still unreachable? Close REAPER and run ",o.jsx("code",{children:"reaper-mcp setup"}),". It turns on REAPER’s web interface."]})]})]})]}),e[1]=n,e[2]=l):l=e[2],l}const YI=500,XI=2e3,KI=1e4,I1="mcp-bridge-cleared-through",M0="mcp-bridge-cleared-at";function QI(t){const e=fe.c(11);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={status:null,history:null,longHistory:null,reachable:!0,lastChangeAt:0,log:[]},e[0]=n):n=e[0];const[s,l]=Q.useState(n),a=Q.useRef(t);let i,r;e[1]!==t?(i=()=>{a.current=t},r=[t],e[1]=t,e[2]=i,e[3]=r):(i=e[2],r=e[3]),Q.useEffect(i,r);let c;e[4]===Symbol.for("react.memo_cache_sentinel")?(c=Number(fa(I1))||0,e[4]=c):c=e[4];const u=Q.useRef(c),[d,m]=Q.useState(ZI),f=Q.useRef(!0),h=Q.useRef(null);let g,y;e[5]===Symbol.for("react.memo_cache_sentinel")?(g=()=>{let _,x=!1,k=-1/0;const w=(j,N,E,C,O)=>l(M=>{const A=j!==null&&j.ts!==M.status?.ts,T=j!==null&&M.status!==null&&j.startedAt!==M.status.startedAt,S=j?.recent[0]?.n,$=S!==void 0&&S<Math.max(u.current,T?M.log[0]?.n??0:0);$&&(u.current=0,xl(I1,"0"),xl(M0,"0"),m(0));const L=j?j.recent.filter(D=>D.n>u.current):[];let z=$?[]:M.log;if(O&&!a.current&&O.req===String(h.current?.req)&&(z=lE(z,O.entries,u.current),f.current=!1,h.current=null),j&&!a.current){const D=L[L.length-1]?.n;(T||D!==void 0&&z.length>0&&D>z[0].n+1)&&(f.current=!0),z=iE(z,L)}return{status:j,history:N,longHistory:C===void 0?M.longHistory:C,reachable:E,lastChangeAt:A?Date.now():M.lastChangeAt,log:z}}),R=async()=>{if($s){if(!document.hidden){const j=$s.tick();j.log&&(h.current={req:0,at:0}),w(j.status,j.history,!0,j.longHistory,j.log?{req:"0",entries:j.log}:void 0)}}else{const j=Date.now(),N=j-k>=KI,E=f.current&&!a.current,C=E&&(!h.current||j-h.current.at>5e3);C&&(h.current={req:j,at:j});const O=[...N?["history_long"]:[],...E?["log"]:[]],M=await Pu(LN(j,O,C?j:void 0));M===null?w(null,null,!1):(N&&(k=j),w(ON(M),DN(M),!0,N?zN(M):void 0,E?BN(M):void 0))}x||(_=setTimeout(R,document.hidden?XI:YI))};return R(),()=>{x=!0,clearTimeout(_)}},y=[],e[5]=g,e[6]=y):(g=e[5],y=e[6]),Q.useEffect(g,y);let b;e[7]===Symbol.for("react.memo_cache_sentinel")?(b=()=>{const _=Date.now();xl(M0,String(_)),m(_),l(x=>(u.current=Math.max(x.log[0]?.n??0,x.status?.recent[0]?.n??0),xl(I1,String(u.current)),{...x,log:[]}))},e[7]=b):b=e[7];const p=b;let v;return e[8]!==d||e[9]!==s?(v={...s,clearLog:p,clearedAt:d},e[8]=d,e[9]=s,e[10]=v):v=e[10],v}function ZI(){return Number(fa(M0))||0}function WI(t){const e=fe.c(13),n=Q.useRef(!1),s=t?.control?.update;let l,a;e[0]!==s?(l=()=>{s&&(n.current=!0)},a=[s],e[0]=s,e[1]=l,e[2]=a):(l=e[1],a=e[2]),Q.useEffect(l,a);const i=t?.startedAt,r=Q.useRef(i);let c,u;e[3]!==i?(c=()=>{if(i===void 0||i===r.current)return;const y=r.current!==void 0;r.current=i,y&&n.current&&location.reload()},u=[i],e[3]=i,e[4]=c,e[5]=u):(c=e[4],u=e[5]),Q.useEffect(c,u);let d;e[6]!==s?(d=()=>{if(s?.state!=="done"||$s)return;const y=`mcp-bridge-reloaded-${s.startedAt}`;try{if(sessionStorage.getItem(y))return;sessionStorage.setItem(y,"1")}catch{return}location.reload()},e[6]=s,e[7]=d):d=e[7];const m=s?.state,f=s?.startedAt;let h;e[8]!==m||e[9]!==f?(h=[m,f],e[8]=m,e[9]=f,e[10]=h):h=e[10],Q.useEffect(d,h);let g;return e[11]!==t?.control?.token?(g=y=>{const b=t?.control?.token;!b||$s||(n.current=!0,fetch($$(y,b),{cache:"no-store"}).catch(JI))},e[11]=t?.control?.token,e[12]=g):g=e[12],g}function JI(){}const d6="mcp-bridge-notify";function eU(t,e){const n=fe.c(12),[s,l]=Q.useState(tU),a=Q.useRef(t[0]?.n??0);let i;n[0]!==e?(i=h=>Cs(e.get(h)??{id:h}),n[0]=e,n[1]=i):i=n[1];const r=Q.useEffectEvent(i);let c;n[2]!==s||n[3]!==t||n[4]!==r?(c=()=>{const h=t[0]?.n??0;if(s){const g=t.filter(y=>y.n>a.current&&za(y)==="error");if(g.length>3)new Notification(`MCP Bridge: ${g.length} commands failed`,{body:g[0].e,tag:"mcp-bridge-errors"});else for(const y of g.reverse()){const b=y.s?` · ${r(y.s)}`:"";new Notification(`${y.c} failed${b}`,{body:y.e,tag:`mcp-bridge-${y.n}`})}}a.current=Math.max(a.current,h)},n[2]=s,n[3]=t,n[4]=r,n[5]=c):c=n[5];let u;n[6]!==s||n[7]!==t?(u=[t,s],n[6]=s,n[7]=t,n[8]=u):u=n[8],Q.useEffect(c,u);let d;n[9]===Symbol.for("react.memo_cache_sentinel")?(d=async h=>{h&&$u()!=="granted"&&($u()==="unsupported"||await Notification.requestPermission()!=="granted")||(l(h),xl(d6,h?"1":"0"))},n[9]=d):d=n[9];const m=d;let f;return n[10]!==s?(f=[s,m],n[10]=s,n[11]=f):f=n[11],f}function tU(){return fa(d6)==="1"&&$u()==="granted"}function $u(){return typeof Notification>"u"?"unsupported":Notification.permission}function nU(t,e){const n=fe.c(1);let s;n[0]===Symbol.for("react.memo_cache_sentinel")?(s=[],n[0]=s):s=n[0];const[l,a]=Q.useState(s),[i,r]=Q.useState(null);if(t&&e!==i){r(e);const c=l[l.length-1],u=c&&t.commands<c.commands?[]:l;a([...u,{t:e,commands:t.commands,errors:t.errors,deferMs:t.deferMs}].slice(-N5))}return l}const l3={cfg_paused:"paused",cfg_readonly:"readonly",cfg_open_on_start:"openOnStart",cfg_dev:"dev",cfg_autostart:"autostart"};function sU(t){const e=fe.c(7);let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n={},e[0]=n):n=e[0];const[s,l]=Q.useState(n),a=t?.settings??null,i=a&&`${a.paused}/${a.readonly}/${a.openOnStart}/${a.dev}/${a.autostart}`,[r,c]=Q.useState(i);if(a&&i!==r){c(i);const h=Object.fromEntries(Object.entries(s).filter(g=>{const[y,b]=g;return a[y]!==b}));Object.keys(h).length!==Object.keys(s).length&&l(h)}let u;e[1]===Symbol.for("react.memo_cache_sentinel")?(u=(h,g)=>{l(y=>({...y,[l3[h]]:g})),$s?$s.set(h,g):fetch(HN(h,g),{cache:"no-store"}).catch(()=>l(y=>{const b={...y};return delete b[l3[h]],b}))},e[1]=u):u=e[1];const d=u;let m;e[2]!==a||e[3]!==s?(m=a?{...a,...s}:null,e[2]=a,e[3]=s,e[4]=m):m=e[4];let f;return e[5]!==m?(f=[m,d],e[5]=m,e[6]=f):f=e[6],f}function lU(t){const e=fe.c(3),[n,s]=Q.useState(aU);let l,a;return e[0]!==t?(l=()=>{const i=setInterval(()=>s(Date.now()),t);return()=>clearInterval(i)},a=[t],e[0]=t,e[1]=l,e[2]=a):(l=e[1],a=e[2]),Q.useEffect(l,a),n}function aU(){return Date.now()}const oU={ok:"ok ",error:"ERR",refused:"WRN"},iU={ok:"Success",error:"Error",refused:"Refused"},rU={fast:"",slow:"tone-warn","very-slow":"tone-bad",long:""},f6={fast:"Fast",slow:"Slow","very-slow":"Very slow",long:"Long-running (expected)"},cU=t=>Math.min(1,Math.max(.06,Math.log10(1+t)/Math.log10(1+$5)));function af(t){const e=[];for(const n of t.matchAll(/(\w+):"([^"]*)"?|(\w+):(\S+)|"([^"]*)"?|(\S+)/g))if(n[1]!==void 0)e.push({key:n[1],value:n[2].toLowerCase()});else if(n[3]!==void 0)e.push({key:n[3],value:n[4].toLowerCase()});else{const s=(n[5]??n[6]).toLowerCase();s&&e.push({value:s})}return e}function m6(t,e){if(e.length===0)return!0;let n;return e.every(s=>{if(s.key===void 0)return t.c.toLowerCase().includes(s.value)||!!t.e?.toLowerCase().includes(s.value)||!!t.p?.toLowerCase().includes(s.value);if(n===void 0){const a=Em(t.p);n=a&&typeof a=="object"?a:null}const l=n?.[s.key];return l!=null&&typeof l!="object"&&String(l).toLowerCase()===s.value})}function uU(t,e){const n=String(e);return/[\s"]/.test(n)?`${t}:"${n.replace(/"/g,"")}"`:`${t}:${n}`}function dU(t,e,n){const[s,l]=e<=n?[e,n]:[n,e],a=t.slice(s,l).trim();if(!a)return null;const i=t.lastIndexOf(`
|
|
96
|
+
`,s-1)+1,r=t.indexOf(`
|
|
97
|
+
`,s),c=r===-1?t.length:r;if(l<=c){const u=/^\s*"(\w+)":\s*(.+?),?\s*$/.exec(t.slice(i,c));if(u&&!/^[[{]/.test(u[2]))try{return uU(u[1],JSON.parse(u[2]))}catch{}}return a.replace(/["{}]/g," ").split(/\s+/).filter(Boolean).join(" ")||null}function q(t){try{const e=t.p?JSON.parse(t.p):{};return e&&typeof e=="object"?e:{}}catch{return{}}}function Fs(t){return typeof t=="number"?t===-1?"the master":`track ${t+1}`:typeof t=="string"&&t?t.toLowerCase()==="master"?"the master":`“${t.replace(/^\{|\}$/g,"")}”`:null}function Ru(t){const e=q(t);return Fs(e.trackIndex??e.track)}const Wl=t=>`${Math.floor(t/60)}:${(t%60).toFixed(1).padStart(4,"0")}`,fU=t=>t<6e4?`${Math.max(1,Math.round(t/1e3))} s`:`${Math.round(t/6e4)} min`,Lm=t=>t.replace(/^[A-Z0-9]+i?:\s*/,"").replace(/\s*\([^()]*\)$/,"")||t,mU=t=>Math.abs(t)<.05?"the same as":`${Math.abs(t).toFixed(1)} dB ${t>0?"hotter":"quieter"} than`;function hU(t,{previous:e,now:n}){const s=Da(t);if(s?.kind!=="meters")return null;const l=Math.max(s.peakL??-150,s.peakR??-150),a=Math.max(s.rmsL??-150,s.rmsR??-150),i=Ll(l),r=i==="over"?" — clipping":i==="hot"?" — within 6 dB of clipping":"",c=e&&Da(e),u=c?.kind==="meters"?Math.max(c.peakL??-150,c.peakR??-150):null,d=u!==null&&e?`; peaks ${mU(l-u)} ${fU(n-e.t)} ago`:"";return`read the levels on ${Ru(t)??"a track"}: peaks at ${be(l)} dB, RMS ${be(a)} dB${r}${d}`}const a3=t=>[t.lfo&&"an LFO",t.acs&&"an audio follower",t.link&&"a parameter link"].filter(Boolean),ws=t=>t.length<2?t.join(""):`${t.slice(0,-1).join(", ")} and ${t[t.length-1]}`;function pU(t){const e=Ms(t),n=e?.kind==="modulation"?e.rows[0]:void 0;if(!e||!n)return null;const s=`${n.p} on ${Lm(e.fx)}${Ru(t)?`, ${Ru(t)}`:""}`;if(n.off)return`turned off the modulation of ${s}`;const l=a3(n),a=n.was?a3(n.was):[],i=l.filter(r=>!a.includes(r));return i.length&&i.length===l.length?`added ${ws(i)} to ${s}`:`changed how ${s} is modulated: now ${ws(l)||"its baseline only"}`}function vU(t){const e=q(t);if(typeof e.start!="number"||typeof e.end!="number")return null;const n=(e.end-e.start).toFixed(1),s=Ms(t),l=s?.kind==="timeline"&&s.lanes?s.lanes.length+(s.moreTracks??0):0;return`cut ${Wl(e.start)}–${Wl(e.end)} out of the project, and everything after it moved ${n} s earlier${l?` on ${l} tracks`:""}`}function gU(t){const e=Fs(q(t).track);return e?`deleted the track ${e}`:null}const Se=t=>typeof t=="number"&&Number.isFinite(t)?t:void 0,Ve=t=>typeof t=="string"&&t?t:void 0,Kl=(t,e)=>`${t} ${e}${t===1?"":"s"}`,Bt=t=>`“${t}”`,Jf=t=>{if(Array.isArray(t))return t;if(typeof t!="string")return null;try{const e=JSON.parse(t);return Array.isArray(e)?e:null}catch{return null}},fn=(t,e,n)=>{const s=Jf(t);return s?Kl(s.length,e):n},Nd=t=>{const e=Jf(t)?.map(n=>Fs(n)).filter(n=>!!n);return e?.length?ws(e):null},me=(t,e="a track")=>Ru(t)??e,mn=(t,e="fxIndex")=>{const n=Ve(t.fxName);if(n)return Lm(n);const s=Se(t[e]);return s===void 0?"a plugin":`plugin ${s+1}`},ft=t=>{const e=Se(t.itemIndex);return e===void 0?"an item":`item ${e+1}`},ql=t=>Se(t)===void 0?"":` at ${Wl(Se(t))}`,pc=t=>Se(t)===void 0?"":`${be(Se(t))} dB`,_U=["C","C♯","D","D♯","E","F","F♯","G","G♯","A","A♯","B"],o3=t=>Se(t)===void 0?"a note":`${_U[Se(t)%12]}${Math.floor(Se(t)/12)-1}`,i3=t=>{const e=Se(t);return e===void 0?"the grid":{4:"whole notes",2:"half notes",1:"quarter notes","0.5":"8th notes","0.25":"16th notes","0.125":"32nd notes"}[String(e)]??`${e}-beat steps`},h6=t=>Math.abs(t)<.005?"centre":`${Math.round(Math.abs(t)*100)}% ${t<0?"left":"right"}`,Qo=t=>Ve(t)?.split(/[\\/]/).pop()??"a file",Yl=(t,e)=>Se(t)!==void 0&&Se(e)!==void 0?` from ${Wl(Se(t))} to ${Wl(Se(e))}`:"",Za=t=>{const e=Se(t.envelopeIndex);return e===void 0?"an automation lane":`automation lane ${e+1}`};function yU(t,e){const n=Se(e);if(n===void 0||typeof t!="string")return null;switch(t){case"volume":return`the volume to ${be(n)} dB`;case"pan":return`the pan to ${h6(n)}`;case"mute":return n?"it muted":"it unmuted";case"solo":return n?"it soloed":"it unsoloed";case"recordArm":return n?"it armed to record":"it disarmed";case"phase":return n?"its polarity inverted":"its polarity normal";case"playOffsetMs":return`its playback offset to ${n} ms`;default:return`its ${t} to ${n}`}}function r3(t){const e=Ms(t);if(e?.kind!=="changes"||e.rows.length!==1)return null;const n=e.rows[0],s=(i,r)=>r??(i===void 0?null:n.s==="db"?`${be(i)} dB`:n.s==="pan"?h6(i):n.s==="bool"?i?"on":"off":`${Math.round(i*100)}%`),l=s(n.a,n.at),a=s(n.b,n.bt);return a?`${n.p} on ${Bt(n.t)}${l?` from ${l}`:""} to ${a}`:null}function Ss(t,e){const n=Da(t);return n?.kind===e?n:null}const Ec=(t,e)=>(e===void 0?String(t):t.toFixed(e)).replace("-","−"),Td=t=>t===void 0?null:`${Ec(t,1)} LUFS`,p6={get_project_info:{title:"Read the project info",did:()=>"read the project’s tempo, time signature and sample rate"},list_tracks:{title:"List the tracks",did:t=>{const e=Ms(t);return e?.kind==="mixer"?`listed the ${Kl(e.total,"track")} in the project`:"listed the tracks in the project"}},get_track_properties:{title:"Read a track",did:t=>`read the settings and plugins of ${me(t)}`},set_track_property:{title:"Change a track setting",did:t=>{const e=r3(t);if(e)return`set ${e}`;const n=q(t),s=yU(n.property,n.value);return s?`set ${me(t)}: ${s}`:null}},set_multiple_track_properties:{title:"Change several tracks",did:t=>`changed the settings of ${fn(q(t).tracks,"track",xU(t)??"several tracks")} at once`},add_track:{title:"Add a track",did:t=>{const e=q(t),n=Se(e.index)===void 0?"":` at position ${Se(e.index)+1}`;return`added ${Ve(e.name)?`the track ${Bt(Ve(e.name))}`:"a track"}${n}`}},delete_track:{title:"Delete a track",did:gU},move_track:{title:"Move a track",did:t=>{const e=q(t);return Se(e.toIndex)===void 0?null:`moved ${me(t)} to position ${Se(e.toIndex)+1}`}},set_track_folder:{title:"Change a folder",did:t=>{const e=q(t);return e.mode==="folder"?`made ${me(t)} a folder${e.collapsed?" and collapsed it":""}`:e.mode==="last"?`made ${me(t)} the last track in its folder`:e.mode==="normal"?`made ${me(t)} a normal track, not a folder`:e.collapsed!==void 0?`${e.collapsed?"collapsed":"expanded"} the folder ${me(t)}`:null}},set_track_info:{title:"Rename or recolour a track",did:t=>{const e=q(t),n=[Ve(e.name)&&`renamed ${me(t)} to ${Bt(Ve(e.name))}`,Ve(e.color)&&(e.color==="none"?"cleared its colour":`coloured it ${e.color}`),Se(e.channels)!==void 0&&`gave it ${e.channels} channels`,e.masterSend!==void 0&&(e.masterSend?"sent it to the master":"took it off the master")].filter(Boolean);return n.length?Ve(e.name)?ws(n):`changed ${me(t)}: ${ws(n)}`:null}},set_track_group:{title:"Group tracks",did:t=>{const e=q(t);return Se(e.group)===void 0?null:`${e.enable===!1?"took":"put"} ${me(t)} ${e.enable===!1?"out of":"in"} group ${e.group}`}},add_fx:{title:"Add a plugin",did:t=>`added ${mn(q(t))} to ${me(t)}`},remove_fx:{title:"Remove a plugin",did:t=>`removed ${vc(t,"was")??mn(q(t))} from ${me(t)}`},get_fx_parameters:{title:"Read a plugin’s settings",did:t=>`read the settings of ${mn(q(t))} on ${me(t)}`},analyze_fx:{title:"Look through a plugin’s settings",did:t=>`looked through the settings of ${mn(q(t))} on ${me(t)}`},set_fx_parameter:{title:"Change a plugin setting",did:t=>{const e=r3(t);if(e)return`set ${e}`;const n=q(t);return Se(n.value)===void 0?null:`set parameter ${(Se(n.paramIndex)??0)+1} of ${mn(n)} on ${me(t)} to ${Math.round(Se(n.value)*100)}%`}},set_fx_enabled:{title:"Bypass or enable a plugin",did:t=>{const e=q(t);return`${e.enabled===0||e.enabled===!1?"bypassed":"enabled"} ${vc(t,"now")??mn(e)} on ${me(t)}`}},set_fx_offline:{title:"Take a plugin offline or online",did:t=>{const e=q(t);return`took ${vc(t,"now")??mn(e)} on ${me(t)} ${e.offline?"offline (it uses no CPU and keeps its settings)":"back online"}`}},setup_fx_chain:{title:"Build a plugin chain",did:t=>{const e=Jf(q(t).plugins)?.map(n=>n&&typeof n=="object"?Ve(n.fxName):void 0).filter(n=>!!n);return e?.length?`built a chain of ${Kl(e.length,"plugin")} on ${me(t)}: ${e.map(Lm).join(" → ")}`:`built a plugin chain on ${me(t)}`}},set_multiple_fx_parameters:{title:"Change several plugin settings",did:t=>`changed ${fn(q(t).updates??q(t).params,"plugin setting",SU(t,"plugin setting")??"several plugin settings")} at once`},play:{title:"Start playback",did:()=>"started playback"},stop:{title:"Stop playback",did:()=>"stopped playback"},record:{title:"Start recording",did:()=>"started recording on the armed tracks"},get_transport_state:{title:"Read the transport",did:()=>"checked whether REAPER is playing and where the cursor is"},set_cursor_position:{title:"Move the edit cursor",did:t=>Se(q(t).position)===void 0?null:`moved the edit cursor to ${Wl(Se(q(t).position))}`},create_midi_item:{title:"Create a MIDI item",did:t=>`created an empty MIDI item on ${me(t)}${Yl(q(t).startPosition,q(t).endPosition)}`},list_midi_items:{title:"List MIDI items",did:t=>`listed the MIDI items on ${me(t)}`},get_midi_notes:{title:"Read MIDI notes",did:t=>`read the notes in MIDI ${ft(q(t))} on ${me(t)}`},analyze_midi:{title:"Analyse MIDI",did:t=>`analysed the notes in MIDI ${ft(q(t))} on ${me(t)}: velocities per pitch and repeated hits`},insert_midi_note:{title:"Add a MIDI note",did:t=>{const e=q(t);return`added ${o3(e.pitch)}${Se(e.velocity)!==void 0?` (velocity ${e.velocity})`:""} to MIDI ${ft(e)} on ${me(t)}`}},insert_midi_notes:{title:"Add MIDI notes",did:t=>`added ${fn(q(t).notes,"note","notes")} to MIDI ${ft(q(t))} on ${me(t)}`},edit_midi_note:{title:"Edit a MIDI note",did:t=>`edited note ${(Se(q(t).noteIndex)??0)+1} in MIDI ${ft(q(t))} on ${me(t)}`},edit_midi_notes:{title:"Edit MIDI notes",did:t=>`edited ${fn(q(t).edits,"note","notes")} in MIDI ${ft(q(t))} on ${me(t)}`},delete_midi_note:{title:"Delete a MIDI note",did:t=>`deleted note ${(Se(q(t).noteIndex)??0)+1} from MIDI ${ft(q(t))} on ${me(t)}`},get_midi_cc:{title:"Read MIDI CC",did:t=>`read ${Se(q(t).ccNumber)!==void 0?`CC ${q(t).ccNumber}`:"the controller data"} in MIDI ${ft(q(t))} on ${me(t)}`},insert_midi_cc:{title:"Add a MIDI CC event",did:t=>{const e=q(t);return`added a CC ${e.ccNumber??""} event${Se(e.value)!==void 0?` (value ${e.value})`:""} to MIDI ${ft(e)} on ${me(t)}`}},delete_midi_cc:{title:"Delete a MIDI CC event",did:t=>`deleted controller event ${(Se(q(t).ccIndex)??0)+1} from MIDI ${ft(q(t))} on ${me(t)}`},get_midi_item_properties:{title:"Read a MIDI item",did:t=>`read the position, length and loop setting of MIDI ${ft(q(t))} on ${me(t)}`},set_midi_item_properties:{title:"Change a MIDI item",did:t=>{const e=q(t),n=[Se(e.position)!==void 0&&`moved it to ${Wl(Se(e.position))}`,Se(e.length)!==void 0&&`made it ${Se(e.length)} s long`,e.mute!==void 0&&(e.mute?"muted it":"unmuted it"),e.loopSource!==void 0&&(e.loopSource?"set it to loop":"stopped it looping")].filter(Boolean);return`changed MIDI ${ft(e)} on ${me(t)}${n.length?`: ${ws(n)}`:""}`}},quantize_midi:{title:"Quantize MIDI",did:t=>{const e=q(t),n=Se(e.strength);return`quantized the notes in MIDI ${ft(e)} on ${me(t)} to ${i3(e.grid)}${n!==void 0&&n<1?` at ${Math.round(n*100)}% strength`:""}`}},transform_midi:{title:"Transform MIDI",did:t=>{const e=q(t),n=Se(e.transpose),s=[n&&`transposed them ${n>0?"up":"down"} ${Kl(Math.abs(n),"semitone")}`,e.velocity&&"changed their velocities",e.humanize&&"humanized their timing",e.length&&"changed their lengths"].filter(Boolean);return`reworked the notes in MIDI ${ft(e)} on ${me(t)}${s.length?`: ${ws(s)}`:""}`}},import_midi_file:{title:"Import a MIDI file",did:t=>`imported ${Qo(q(t).path)} onto ${me(t)}${ql(q(t).position)}`},transcribe_voice_sketch:{title:"Compose from a voice sketch",did:t=>`${q(t).arrange===!1?"transcribed":"composed an arrangement from"} ${Qo(q(t).path)}`},detect_key:{title:"Detect the key",did:t=>{const e=Ss(t,"key");return e?.key?`found ${me(t,"the audio")} is in ${e.key}${e.conf!==void 0?` (${Math.round(e.conf*100)}% sure)`:""}`:`looked for the key of ${me(t)}`}},detect_chords:{title:"Detect the chords",did:t=>{const e=Ss(t,"chords");if(!e)return`looked for the chords of ${me(t)}`;const n=[...new Set(e.ch.map(s=>s[2]).filter(s=>s!=="N"))];return`found ${n.length} chord${n.length===1?"":"s"} in ${me(t,"the audio")}${e.key?` (${e.key})`:""}: ${n.slice(0,6).join(" ")}${n.length>6?" …":""}`}},send_midi_cc:{title:"Send a live MIDI CC",did:t=>`sent CC ${q(t).cc??""} = ${q(t).value??""} live to ${me(t)}`},send_midi_pc:{title:"Send a program change",did:t=>`switched ${me(t)} to program ${q(t).program??""} live`},send_midi_note:{title:"Play a live MIDI note",did:t=>{const e=q(t);return`played ${o3(e.pitch)} live on ${me(t)}${Se(e.durationMs)!==void 0?` for ${e.durationMs} ms`:""}`}},list_media_items:{title:"List items",did:t=>`listed the items on ${me(t)}`},get_media_item_properties:{title:"Read an item",did:t=>`read the position, fades, rate and source of ${ft(q(t))} on ${me(t)}`},set_media_item_properties:{title:"Change an item",did:t=>{const e=q(t),n=[Se(e.position)!==void 0&&`moved it to ${Wl(Se(e.position))}`,Se(e.length)!==void 0&&`made it ${Se(e.length)} s long`,Se(e.volume)!==void 0&&`set its gain to ${pc(e.volume)}`,e.mute!==void 0&&(e.mute?"muted it":"unmuted it"),(Se(e.fadeInLength)!==void 0||Se(e.fadeOutLength)!==void 0)&&"changed its fades",Se(e.playRate)!==void 0&&`set its play rate to ${e.playRate}×`].filter(Boolean);return`changed ${ft(e)} on ${me(t)}${n.length?`: ${ws(n)}`:""}`}},set_media_items_properties:{title:"Change several items",did:t=>`changed ${fn(q(t).items,"item","several items")} at once`},split_media_item:{title:"Split an item",did:t=>`split ${ft(q(t))} on ${me(t)} in two${ql(q(t).position)}`},delete_media_item:{title:"Delete an item",did:t=>`deleted ${ft(q(t))} from ${me(t)}`},move_media_item:{title:"Move an item",did:t=>{const e=q(t),n=[Se(e.newPosition)!==void 0&&`to ${Wl(Se(e.newPosition))}`,Se(e.newTrackIndex)!==void 0&&`onto ${Fs(e.newTrackIndex)}`].filter(Boolean);return`moved ${ft(e)} on ${me(t)}${n.length?` ${n.join(" ")}`:""}`}},trim_media_item:{title:"Trim an item",did:t=>{const e=q(t),n=(l,a)=>{const i=Se(l);return i?`${i>0?"trimmed":"extended"} ${Math.abs(i)} s ${i>0?"off":"onto"} the ${a}`:null},s=[n(e.trimStart,"start"),n(e.trimEnd,"end")].filter(Boolean);return s.length?`${ws(s)} of ${ft(e)} on ${me(t)}`:`trimmed ${ft(e)} on ${me(t)}`}},add_stretch_marker:{title:"Add a stretch marker",did:t=>`added a stretch marker to ${ft(q(t))} on ${me(t)}, ${Se(q(t).position)??0} s in`},get_stretch_markers:{title:"Read stretch markers",did:t=>`read the stretch markers of ${ft(q(t))} on ${me(t)}`},delete_stretch_marker:{title:"Delete a stretch marker",did:t=>`deleted stretch marker ${(Se(q(t).markerIndex)??0)+1} from ${ft(q(t))} on ${me(t)}`},copy_media_items:{title:"Copy items",did:t=>{const e=q(t),n=Se(e.times);return`copied ${fn(e.items,"item","the items")}${n&&n>1?`, ${n} times end to end`:""}${ql(e.position)}`}},insert_time:{title:"Insert time",did:t=>{const e=q(t);return Se(e.length)===void 0?null:`opened ${Se(e.length)} s of empty space${ql(e.position)}, and everything after it moved later`}},remove_time:{title:"Remove time",did:vU},copy_section:{title:"Copy a section",did:t=>{const e=q(t);return`copied ${Se(e.regionIndex)!==void 0?`region ${Se(e.regionIndex)+1}`:Yl(e.start,e.end).replace(/^ from/,"").trim()||"a section"}, items and automation,${ql(e.position)||" elsewhere"}${e.insert?", opening time for it":""}`}},process_items:{title:"Normalize, reverse or glue items",did:t=>{const e=q(t),n=fn(e.items,"item","items");return e.operation==="normalize"?`normalized ${n}${Se(e.target)!==void 0?` to ${pc(e.target)}`:""}`:e.operation==="reverse"?`reversed ${n}`:e.operation==="glue"?`glued ${n} into one`:null}},get_selected_tracks:{title:"Read the track selection",did:()=>"checked which tracks are selected"},set_selected_tracks:{title:"Select tracks",did:t=>`${q(t).mode==="add"?"added":"selected"} ${Nd(q(t).tracks)??"tracks"}${q(t).mode==="add"?" to the selection":""}`},set_selected_items:{title:"Select items",did:t=>`selected ${fn(q(t).items,"item","items")}`},get_time_selection:{title:"Read the time selection",did:()=>"checked the time selection"},set_time_selection:{title:"Set the time selection",did:t=>`selected the time${Yl(q(t).start,q(t).end)}`},list_markers:{title:"List markers",did:()=>"listed the markers"},list_regions:{title:"List regions",did:()=>"listed the regions"},add_marker:{title:"Add a marker",did:t=>`added ${Ve(q(t).name)?`the marker ${Bt(Ve(q(t).name))}`:"a marker"}${ql(q(t).position)}`},add_region:{title:"Add a region",did:t=>`added ${Ve(q(t).name)?`the region ${Bt(Ve(q(t).name))}`:"a region"}${Yl(q(t).start,q(t).end)}`},delete_marker:{title:"Delete a marker",did:t=>`deleted marker ${(Se(q(t).markerIndex)??0)+1}`},delete_region:{title:"Delete a region",did:t=>`deleted region ${(Se(q(t).regionIndex)??0)+1}`},edit_marker:{title:"Edit a marker",did:t=>{const e=q(t),n=[Ve(e.name)&&`renamed it ${Bt(Ve(e.name))}`,Se(e.position)!==void 0&&`moved it to ${Wl(Se(e.position))}`,e.color!==void 0&&"recoloured it"].filter(Boolean);return`changed marker ${(Se(e.markerIndex)??0)+1}${n.length?`: ${ws(n)}`:""}`}},edit_region:{title:"Edit a region",did:t=>{const e=q(t),n=[Ve(e.name)&&`renamed it ${Bt(Ve(e.name))}`,(Se(e.start)!==void 0||Se(e.end)!==void 0)&&"moved its edges",e.color!==void 0&&"recoloured it"].filter(Boolean);return`changed region ${(Se(e.regionIndex)??0)+1}${n.length?`: ${ws(n)}`:""}`}},get_tempo_map:{title:"Read the tempo map",did:()=>"read the tempo and time signature changes"},add_tempo_marker:{title:"Add a tempo change",did:t=>{const e=q(t),n=Se(e.timeSigNumerator)?` in ${e.timeSigNumerator}/${e.timeSigDenominator??4}`:"";return`changed the tempo to ${e.bpm??"?"} BPM${n}${ql(e.position)}`}},edit_tempo_marker:{title:"Edit a tempo change",did:t=>`changed tempo marker ${(Se(q(t).index)??0)+1}${Se(q(t).bpm)!==void 0?` to ${q(t).bpm} BPM`:""}`},delete_tempo_marker:{title:"Delete a tempo change",did:t=>`deleted tempo marker ${(Se(q(t).index)??0)+1}`},set_project_tempo:{title:"Set the tempo",did:t=>Se(q(t).bpm)===void 0?null:`set the song’s tempo to ${q(t).bpm} BPM`},create_track_envelope:{title:"Show an automation lane",did:t=>{const e=q(t);return`showed the ${Ve(e.envelopeName)??(Se(e.paramIndex)!==void 0?`parameter ${Se(e.paramIndex)+1} of ${mn(e)}`:"an")} automation lane on ${me(t)}`}},get_track_envelopes:{title:"List automation lanes",did:t=>`listed the automation lanes on ${me(t)}`},get_envelope_points:{title:"Read automation",did:t=>`read the points of ${Zo(t)??Za(q(t))} on ${me(t)}`},insert_envelope_point:{title:"Add an automation point",did:t=>{const e=q(t);return`added a point${Se(e.db)!==void 0?` (${pc(e.db)})`:Se(e.value)!==void 0?` (value ${e.value})`:""}${ql(e.time)} to ${Zo(t)??Za(e)} on ${me(t)}`}},insert_envelope_points:{title:"Write automation",did:t=>`wrote ${fn(q(t).points,"point","new points")} into ${Zo(t)??Za(q(t))} on ${me(t)}`},edit_envelope_points:{title:"Edit automation",did:t=>`moved or reshaped ${fn(q(t).points,"point","the points")} in ${Zo(t)??Za(q(t))} on ${me(t)}`},delete_envelope_point:{title:"Delete an automation point",did:t=>`deleted point ${(Se(q(t).pointIndex)??0)+1} from ${Zo(t)??Za(q(t))} on ${me(t)}`},clear_envelope:{title:"Clear an automation lane",did:t=>`deleted every point in ${Zo(t)??Za(q(t))} on ${me(t)}`},remove_envelope_points:{title:"Erase automation",did:t=>`erased ${Zo(t)??"the automation"} on ${me(t)}${Yl(q(t).timeStart,q(t).timeEnd)}`},set_envelope_properties:{title:"Arm or show an automation lane",did:t=>{const e=q(t),n=[e.armed!==void 0&&(e.armed?"armed it":"disarmed it"),e.visible!==void 0&&(e.visible?"showed it":"hid it"),e.active!==void 0&&(e.active?"turned it on":"turned it off")].filter(Boolean);return`changed ${Za(e)} on ${me(t)}${n.length?`: ${ws(n)}`:""}`}},list_automation_items:{title:"List automation items",did:t=>`listed the automation items in ${Za(q(t))} on ${me(t)}`},insert_automation_item:{title:"Add an automation item",did:t=>{const e=q(t);return`added an automation item${Se(e.poolId)!==void 0?` sharing pool ${e.poolId}`:""}${ql(e.position)}${Se(e.length)!==void 0?`, ${e.length} s long,`:""} to ${me(t)}`}},set_automation_item:{title:"Change an automation item",did:t=>`changed automation item ${(Se(q(t).automationItemIndex)??0)+1} on ${me(t)}`},delete_automation_item:{title:"Delete an automation item",did:t=>`deleted automation item ${(Se(q(t).automationItemIndex)??0)+1} on ${me(t)}${q(t).preservePoints?", keeping its points":""}`},list_available_fx:{title:"List installed plugins",did:t=>`listed the installed ${Ve(q(t).category)?`${q(t).category} `:""}plugins`},search_fx:{title:"Search plugins",did:t=>`searched the installed plugins for ${Bt(Ve(q(t).query)??"")}`},get_fx_preset_list:{title:"List a plugin’s presets",did:t=>`listed the presets of ${mn(q(t))} on ${me(t)}`},set_fx_preset:{title:"Load a preset",did:t=>`loaded the preset ${Bt(Ve(q(t).presetName)??"")} on ${vc(t,"now")??mn(q(t))}, ${me(t)}`},snapshot_save:{title:"Save a mix snapshot",did:t=>`saved the mix as the snapshot ${Bt(Ve(q(t).name)??"")}`},snapshot_restore:{title:"Load a mix snapshot",did:t=>`loaded the mix snapshot ${Bt(Ve(q(t).name)??"")}: volumes, pans, sends and plugin settings`},snapshot_list:{title:"List mix snapshots",did:()=>"listed the saved mix snapshots"},snapshot_delete:{title:"Delete a mix snapshot",did:t=>`deleted the mix snapshot ${Bt(Ve(q(t).name)??"")}`},snapshot_edit:{title:"Rename a mix snapshot",did:t=>{const e=q(t);return Ve(e.newName)?`renamed the snapshot ${Bt(Ve(e.name)??"")} to ${Bt(Ve(e.newName))}`:`changed the description of the snapshot ${Bt(Ve(e.name)??"")}`}},get_track_routing:{title:"Read a track’s routing",did:t=>`read the sends, receives and outputs of ${me(t)}`},add_send:{title:"Add a send",did:t=>{const e=q(t);return`sent ${Fs(e.from)??"a track"} to ${Fs(e.to)??"a track"}${Se(e.volume)!==void 0?` at ${pc(e.volume)}`:""}`}},set_send:{title:"Change a send",did:t=>{const e=q(t),n=e.category==="receive"?"receive":e.category==="hardware"?"hardware output":"send",s=kU(t,n==="send"?"s":n==="receive"?"r":"h");return s?`turned the ${n} ${n==="receive"?"from":"to"} ${Bt(s.other)} on ${me(t)} ${s.change}`:`changed ${n} ${(Se(e.index)??0)+1} on ${me(t)}${Se(e.volume)!==void 0?`: level ${pc(e.volume)}`:""}`}},remove_send:{title:"Remove a send",did:t=>{const e=q(t);return`removed ${e.category==="receive"?"receive":e.category==="hardware"?"hardware output":"send"} ${(Se(e.index)??0)+1} from ${me(t)}`}},add_hardware_output:{title:"Route to a hardware output",did:t=>`routed ${me(t)} to hardware output ${q(t).outputChannel??1}${q(t).mono?" (mono)":""}`},read_track_meters:{title:"Read the levels",did:hU},read_track_spectrum:{title:"Read the spectrum",did:t=>{const e=Ss(t,"spectrum");return`read the frequency spectrum of ${me(t)}${e?.rmsDb!==void 0?` (RMS ${be(e.rmsDb)} dB)`:""}`}},read_track_lufs:{title:"Measure loudness",did:t=>{const e=Ss(t,"lufs"),n=Se(q(t).targetLufs),s=e?.integrated;if(s===void 0)return`measured the loudness of ${me(t)}`;const l=n===void 0?"":Math.abs(s-n)<.5?`, on the ${Ec(n)} LUFS target`:`, ${Math.abs(s-n).toFixed(1)} LU ${s>n?"over":"under"} the ${Ec(n)} LUFS target`;return`measured ${me(t)} at ${Td(s)} integrated${l}`}},read_track_correlation:{title:"Measure stereo correlation",did:t=>{const e=Ss(t,"correlation")?.correlation;if(e===void 0)return`measured the stereo image of ${me(t)}`;const n=e<0?" — out of phase, it will thin out in mono":e>.9?" — nearly mono":"";return`measured the stereo image of ${me(t)}: correlation ${Ec(e,2)}${n}`}},read_track_crest:{title:"Measure dynamics",did:t=>{const e=Ss(t,"crest")?.crestFactor;return e===void 0?`measured the dynamics of ${me(t)}`:`measured the dynamics of ${me(t)}: peaks ${e.toFixed(1)} dB above the average (crest factor)`}},get_fx_state:{title:"Read a plugin’s saved state",did:t=>`read the saved state of the plugin on ${me(t)}`},set_fx_state:{title:"Replace a plugin’s saved state",did:t=>`replaced the saved state of the plugin on ${me(t)}`},extension_call:{title:"Run an extension command",did:t=>{const e=q(t);return`ran ${typeof e.command=="string"?`“${e.command}”`:"a command"} of the ${typeof e.extension=="string"?`“${e.extension}”`:""} extension`}},remove_mcp_meters:{title:"Remove the agent’s meters",did:t=>`removed the meters it had added to ${fn(q(t).trackIndices,"track","the tracks")}`},render_track_to_wav:{title:"Render a clip to listen to",did:t=>`rendered ${me(t)}${Yl(q(t).startTime,q(t).endTime)} to a file to analyse`},render_tracks_to_wav:{title:"Render several clips to listen to",did:t=>`rendered ${fn(q(t).trackIndices,"track","the tracks")}${Yl(q(t).startTime,q(t).endTime)} in one pass to analyse`},analyze_track_aesthetics:{title:"Score the sound quality",did:t=>{const e=Ss(t,"aesthetics");return e?.pq===void 0?`scored the sound of ${me(t)}`:`scored the sound of ${me(t)}: production quality ${e.pq.toFixed(1)} / 10`}},analyze_track_offline:{title:"Analyse a track offline",did:t=>{const e=Ss(t,"offline"),n=[Td(e?.lufs),e?.lra!==void 0&&`loudness range ${e.lra.toFixed(1)} LU`,e?.tp!==void 0&&`true peak ${be(e.tp)} dBTP`].filter(Boolean);return`rendered and analysed ${me(t)}${n.length?`: ${ws(n)}`:""}`}},analyze_audio_file:{title:"Analyse an audio file",did:t=>{const e=Ss(t,"offline");return`analysed ${Qo(q(t).path)}${e?.lufs!==void 0?`: ${Td(e.lufs)} integrated`:""}`}},measure_track_alignment:{title:"Check two tracks’ timing and phase",did:t=>{const e=Ss(t,"alignment"),n=q(t),s=`${me(t)} against ${Fs(n.referenceTrack)??"the reference"}`;if(e?.delayMs===void 0)return`compared the timing of ${s}`;const l=Math.abs(e.delayMs)<.05?"in time with":`${Math.abs(e.delayMs).toFixed(1)} ms ${e.delayMs>0?"late":"early"} against`;return`found ${me(t)} ${l} ${Fs(n.referenceTrack)??"the reference"}${e.inv?", with its polarity inverted":""}`}},verify_edit:{title:"Check the result of an edit",did:t=>{const e=q(t),n=Ve(e.referencePath)?Qo(e.referencePath):Fs(e.referenceTrack)??"the audio from before the edit";return`checked the edit on ${me(t)} against ${n}`}},detect_transients:{title:"Find the hits",did:t=>{const e=q(t);return`found the ${Ve(e.band)?`${e.band} `:""}hits in ${Ve(e.path)?Qo(e.path):me(t)}${Yl(e.startTime,e.endTime)}`}},create_transient_automation:{title:"Write automation from the hits",did:t=>{const e=q(t);return`${e.dryRun?"worked out":"wrote"} one automation pulse per ${Ve(e.band)?`${e.band} `:""}hit of ${me(t)} onto ${Fs(e.targetTrack)??"the target lane"}${Yl(e.startTime,e.endTime)}`}},analyze_loudness_curve:{title:"Chart loudness over time",did:t=>{const e=Ss(t,"curve"),n=e?.overS?`; ${Math.round(e.overS)} s over the ${e.target===void 0?"":Ec(e.target)} LUFS target`:"";return`charted the loudness of ${me(t)} over time${e?.lufs!==void 0?`: ${Td(e.lufs)} integrated`:""}${n}`}},analyze_stereo_bands:{title:"Check stereo by band",did:t=>{const e=Ss(t,"stereo");return`checked the stereo image of ${me(t)} band by band${e?.flags.length?`: ${e.flags.join("; ")}`:e?": nothing out of phase":""}`}},measure_masking:{title:"Find tracks masking each other",did:t=>{const n=Ss(t,"masking")?.pairs[0];return`compared ${fn(q(t).tracks,"track","tracks")} for frequencies they fight over${n?`: ${Bt(n[0])} and ${Bt(n[1])} clash the most`:""}`}},separate_stems:{title:"Split audio into stems",did:t=>{const e=Ss(t,"stems"),n=e?.stems.length?`${e.stems.map(s=>s[0]).join(", ")}`:"stems";return`split ${me(t)} into ${n}${e?.inserted?`, on ${Kl(e.inserted,"new track")} in a muted folder`:""}`}},insert_stem_tracks:{title:"Add stem tracks",did:t=>`added ${fn(q(t).files,"stem track","the stem tracks")}${Ve(q(t).folderName)?` in the folder ${Bt(Ve(q(t).folderName))}`:""}`},run_plan:{title:"Run a plan of edits",did:t=>{const e=q(t),n=Ms(t),s=n?.kind==="plan"?Kl(n.total,"edit"):fn(e.ops,"edit","several edits");return e.dryRun?`checked a plan of ${s} without changing anything`:`made ${s} in one go, as one undo step`}},search_actions:{title:"Search REAPER actions",did:t=>`searched REAPER’s actions for ${Bt(Ve(q(t).query)??"")}`},get_action:{title:"Read a REAPER action",did:t=>`looked up the REAPER action ${Bt(String(q(t).action??""))}`},run_action:{title:"Run a REAPER action",did:t=>`ran the REAPER action ${Bt(String(q(t).action??""))}`},undo_project:{title:"Undo",did:()=>"undid the last change"},redo_project:{title:"Redo",did:()=>"redid the last undone change"},save_project:{title:"Save the project",did:t=>Ve(q(t).path)?`saved a copy of the project as ${Qo(q(t).path)}`:"saved the project"},get_render_settings:{title:"Read the render settings",did:()=>"read the render settings"},set_render_settings:{title:"Change the render settings",did:t=>{const e=q(t),n=Ve(e.format)?.toUpperCase();return`set renders to ${Se(e.bitDepth)?`${e.bitDepth}-bit `:""}${n??"new settings"}${Ve(e.bounds)?`, ${bU[String(e.bounds)]??String(e.bounds).replace(/_/g," ")}`:""}`}},render_project:{title:"Render the project",did:t=>{const e=Ms(t),n=e?.kind==="render"?e.groups.reduce((s,l)=>s+l.f.length,0):0;return n?`rendered the project to ${Kl(n,"file")}`:"rendered the project"}},render_versions:{title:"Render versions",did:t=>{const e=Ms(t);return`rendered ${fn(q(t).versions,"version",e?.kind==="render"?Kl(e.groups.length,"version"):"several versions")} of the mix`}},get_project_settings:{title:"Read the project settings",did:()=>"read the project settings"},set_project_settings:{title:"Change the project settings",did:t=>{const e=q(t),n=[Se(e.sampleRate)!==void 0&&`sample rate ${e.sampleRate} Hz`,Ve(e.title)&&`title ${Bt(Ve(e.title))}`,Ve(e.author)&&`author ${Bt(Ve(e.author))}`,e.repeat!==void 0&&`repeat ${e.repeat?"on":"off"}`,e.metronome!==void 0&&`metronome ${e.metronome?"on":"off"}`].filter(Boolean);return`changed the project settings${n.length?`: ${ws(n)}`:""}`}},insert_audio_file:{title:"Import an audio file",did:t=>`imported ${Qo(q(t).filePath)} onto ${me(t)}${ql(q(t).position)}`},list_takes:{title:"List takes",did:t=>`listed the takes of ${ft(q(t))} on ${me(t)}`},set_active_take:{title:"Switch the take",did:t=>`switched ${ft(q(t))} on ${me(t)} to take ${(Se(q(t).takeIndex)??0)+1}`},get_take_fx:{title:"Read a take’s plugins",did:t=>`read the plugins on ${ft(q(t))}, ${me(t)}`},add_take_fx:{title:"Add a plugin to a take",did:t=>`added ${mn(q(t))} to ${ft(q(t))} on ${me(t)}`},remove_take_fx:{title:"Remove a plugin from a take",did:t=>`removed ${mn(q(t))} from ${ft(q(t))} on ${me(t)}`},set_take_fx_parameter:{title:"Change a take plugin setting",did:t=>`changed a setting of ${mn(q(t))} on ${ft(q(t))}, ${me(t)}`},get_item_appearance:{title:"Read an item’s colour and fades",did:t=>`read the colour and fades of ${ft(q(t))} on ${me(t)}`},set_item_color:{title:"Colour an item",did:t=>q(t).color==="none"?`reset the colour of ${ft(q(t))} on ${me(t)}`:`coloured ${ft(q(t))} on ${me(t)} ${q(t).color??""}`.trim()},set_item_fades:{title:"Set an item’s fades",did:t=>`set the fades of ${ft(q(t))} on ${me(t)}`},move_fx:{title:"Move a plugin",did:t=>{const e=q(t),n=Se(e.toTrackIndex)!==void 0&&e.toTrackIndex!==e.trackIndex;return`moved ${vc(t,"was")??mn(e)} ${n?`from ${me(t)} to ${Fs(e.toTrackIndex)}`:`within ${me(t)}'s chain`}`}},copy_fx:{title:"Copy a plugin",did:t=>{const e=q(t);return`copied ${mn(e)} with its settings from ${me(t)}${Se(e.toTrackIndex)!==void 0?` to ${Fs(e.toTrackIndex)}`:""}`}},rename_fx:{title:"Rename a plugin",did:t=>Ve(q(t).name)?`renamed ${mn(q(t))} on ${me(t)} to ${Bt(Ve(q(t).name))}`:`gave ${mn(q(t))} on ${me(t)} its own name back`},save_fx_chain:{title:"Save a plugin chain",did:t=>`saved the plugins on ${me(t)} as the chain ${Bt(Ve(q(t).name)??"")}`},load_fx_chain:{title:"Load a plugin chain",did:t=>`loaded the chain ${Bt(Ve(q(t).name)??"")} onto ${me(t)}, ${q(t).mode==="replace"?"replacing its plugins":"after its plugins"}`},list_fx_chains:{title:"List saved plugin chains",did:()=>"listed the saved plugin chains"},save_track_template:{title:"Save a track template",did:t=>`saved ${me(t)} as the track template ${Bt(Ve(q(t).name)??"")}`},insert_track_template:{title:"Add tracks from a template",did:t=>`added the track template ${Bt(Ve(q(t).name)??"")}`},list_track_templates:{title:"List track templates",did:()=>"listed the saved track templates"},get_record_setup:{title:"Read the record setup",did:()=>"checked the record setup: armed tracks, inputs, monitoring and punch"},set_track_record:{title:"Set up tracks to record",did:t=>{const e=Jf(q(t).tracks),n=e?.[0]&&typeof e[0]=="object"?Fs(e[0].track):null;return e?.length===1&&n?`set up ${n} to record`:`set up ${fn(q(t).tracks,"track","tracks")} to record`}},set_record_mode:{title:"Change the record mode",did:t=>{const e=q(t);return e.mode==="time_selection"?`set recording to punch in${Yl(e.punchStart,e.punchEnd)}`:e.mode==="selected_items"?"set recording to punch in on the selected items":e.mode==="normal"?"set recording back to normal, no punch":"changed the record settings"}},get_track_lanes:{title:"Read a track’s lanes",did:t=>`read the take lanes of ${me(t)}`},set_track_lanes:{title:"Change a track’s lanes",did:t=>`changed the take lanes of ${me(t)}`},comp_lanes:{title:"Comp takes",did:t=>`comped ${me(t)} from ${fn(q(t).ranges,"part","parts")} of its takes, on a new comp lane`},set_automation_mode:{title:"Change the automation mode",did:t=>{const e=q(t);return Ve(e.globalOverride)?`set every track's automation to ${String(e.globalOverride).replace("_"," ")}`:`set ${Nd(e.tracks)??"tracks"} to ${Ve(e.mode)?String(e.mode).replace("_"," "):"a new"} automation`}},get_fx_param_modulation:{title:"Read a plugin’s modulation",did:t=>`checked which settings of ${mn(q(t))} on ${me(t)} are modulated`},set_fx_param_modulation:{title:"Modulate a plugin setting",did:pU},get_fx_pins:{title:"Read a plugin’s pins",did:t=>`read how ${mn(q(t))} on ${me(t)} is wired to the track's channels`},set_fx_pins:{title:"Wire a plugin’s pins",did:t=>`rewired ${mn(q(t))} on ${me(t)} to the track's channels`},list_monitoring_fx:{title:"List monitoring plugins",did:()=>"listed the monitoring plugins (heard in your monitors, never rendered)"},add_monitoring_fx:{title:"Add a monitoring plugin",did:t=>`added ${mn(q(t))} to the monitoring chain (heard in your monitors, never rendered)`},set_monitoring_fx:{title:"Change a monitoring plugin",did:t=>{const e=q(t);return`${e.enabled===!1?"bypassed":e.enabled===!0?"enabled":e.offline?"took offline":"changed"} monitoring plugin ${(Se(e.fxIndex)??0)+1}`}},remove_monitoring_fx:{title:"Remove a monitoring plugin",did:t=>`removed monitoring plugin ${(Se(q(t).fxIndex)??0)+1}`},freeze_tracks:{title:"Freeze tracks",did:t=>`froze ${Nd(q(t).tracks)??"tracks"}${Ve(q(t).mode)?` to ${q(t).mode}`:""}, rendering their plugins to save CPU`},unfreeze_tracks:{title:"Unfreeze tracks",did:t=>`unfroze ${Nd(q(t).tracks)??"tracks"}, bringing the plugins back live`},apply_fx_to_items:{title:"Render plugins into items",did:t=>`rendered the plugins into ${fn(q(t).items,"item","items")} as a new take (the old take stays)`},add_stretch_markers:{title:"Add stretch markers",did:t=>`added ${fn(q(t).markers,"stretch marker","stretch markers")} to ${ft(q(t))} on ${me(t)}`},edit_stretch_markers:{title:"Edit stretch markers",did:t=>`edited ${fn(q(t).edits,"stretch marker","stretch markers")} in ${ft(q(t))} on ${me(t)}`},align_audio_to_guide:{title:"Align audio to a guide",did:t=>`pulled the hits in ${ft(q(t))} on ${me(t)} onto the guide with stretch markers${q(t).dryRun===!0?" (dry run — nothing written)":""}`},quantize_audio:{title:"Quantize audio",did:t=>`pulled the hits in ${ft(q(t))} on ${me(t)} toward ${i3(q(t).grid)} with stretch markers`}},bU={project:"the whole project",time_selection:"the time selection",regions:"each region",selected_regions:"the selected regions",custom:"a custom range"};function xU(t){const e=Ms(t);return e?.kind==="changes"?Kl(new Set(e.rows.map(n=>n.t)).size,"track"):null}function SU(t,e){const n=Ms(t);return n?.kind==="changes"?Kl(n.rows.length+(n.more??0),e):null}function kU(t,e){const n=Ms(t),s=Se(q(t).index);if(n?.kind!=="routing"||s===void 0)return null;const l=n.routes.filter(i=>i[0]===e)[s],a=n.was?.filter(i=>i[0]===e)[s];return l?!a||Math.abs(a[2]-l[2])<.05?{other:l[1],change:`to ${be(l[2])} dB`}:{other:l[1],change:`${l[2]>a[2]?"up":"down"} from ${be(a[2])} to ${be(l[2])} dB`}:null}function vc(t,e){const n=Ms(t),s=Se(q(t).fxIndex);if(n?.kind!=="fxChain"||s===void 0)return null;const l=n.chains[0],a=(e==="was"?l?.was:l?.fx)?.[s];return a?Lm(a[0]):null}function Zo(t){const e=Ms(t);return e?.kind==="envelope"&&e.env?`the ${e.env} automation`:null}function v6(t){const e=p6[t];if(e)return e.title;const n=t.replace(/_/g," ");return n.charAt(0).toUpperCase()+n.slice(1)}const c3=t=>t.charAt(0).toLowerCase()+t.slice(1);function wU(t,e,n){const s=v6(t.c),l=Ru(t),a=l?` on ${l}`:"";if(!t.ok)return`${e} tried to ${c3(s)}${a}, ${za(t)==="refused"?"and REAPER refused":"and it failed"}.`;const i=p6[t.c]?.did?.(t,n);return`${e} ${i??`ran “${c3(s)}”${a}`}.`}const jU="_rowsWindow_16u0j_1",NU="_row_16u0j_1",TU="_rowSelected_16u0j_5",EU="_rowErrInline_16u0j_9",$U="_rowMain_16u0j_10",RU="_rowTime_16u0j_18",CU="_rowMs_16u0j_19",MU="_rowDay_16u0j_22",AU="_statusDot_16u0j_23",LU="_rowCmd_16u0j_27",OU="_rowEnd_16u0j_34",DU="_rowSession_16u0j_35",zU="_rowDur_16u0j_41",BU="_durTrack_16u0j_47",IU="_durFill_16u0j_48",Pn={rowsWindow:jU,row:NU,rowSelected:TU,rowErrInline:EU,rowMain:$U,rowTime:RU,rowMs:CU,rowDay:MU,statusDot:AU,rowCmd:LU,rowEnd:OU,rowSession:DU,rowDur:zU,durTrack:BU,durFill:IU},UU="_drawerFilter_b1kmv_1",HU="_active_b1kmv_6",VU="_tipAnchor_b1kmv_7",GU="_tip_b1kmv_7",FU="_sessionFactClient_b1kmv_22",PU="_sessionFact_b1kmv_22",qU="_sessionFactName_b1kmv_26",YU="_errorBlock_b1kmv_28",XU="_errorHead_b1kmv_29",KU="_paramsText_b1kmv_42",QU="_paramsFilter_b1kmv_43",ZU="_sessionInline_b1kmv_52",WU="_sessionSub_b1kmv_53",JU="_headText_b1kmv_56",eH="_title_b1kmv_57",tH="_headSub_b1kmv_59",nH="_headWhen_b1kmv_61",sH="_summary_b1kmv_65",lH="_summaryText_b1kmv_67",aH="_more_b1kmv_72",bn={drawerFilter:UU,active:HU,tipAnchor:VU,tip:GU,sessionFactClient:FU,sessionFact:PU,sessionFactName:qU,errorBlock:YU,errorHead:XU,paramsText:KU,paramsFilter:QU,sessionInline:ZU,sessionSub:WU,headText:JU,title:eH,headSub:tH,headWhen:nH,summary:sH,summaryText:lH,more:aH};function g6(t){const e=fe.c(180),{entry:n,session:s,now:l,filtered:a,onFilter:i,onAddTerm:r,onClose:c,history:u,onPick:d}=t,m=f5(),[f,h]=Q.useState(null);let g,y,b,p,v,_,x,k,w,R,j,N,E,C,O,M,A,T,S,$,L,z,D;if(e[0]!==f||e[1]!==n||e[2]!==a||e[3]!==u||e[4]!==l||e[5]!==r||e[6]!==c||e[7]!==i||e[8]!==d||e[9]!==s||e[10]!==m.fraction||e[11]!==m.setFraction||e[12]!==m.style){const J=new Date(n.t),ce=f6[$m(n.c,n.ms)];let ee;e[36]!==n.p?(ee=sE(n.p),e[36]=n.p,e[37]=ee):ee=e[37];const he=ee;let pe;e[38]!==n?(pe=za(n),e[38]=n,e[39]=pe):pe=e[39];const G=pe;let ae;if(e[40]!==n||e[41]!==u||e[42]!==l||e[43]!==s){const en=s?Cs(s):n.src==="page"?"You":"The agent";let qt;e[45]!==n.n?(qt=rt=>rt.n<n.n,e[45]=n.n,e[46]=qt):qt=e[46],ae=wU(n,en,{previous:u.find(qt),now:l}),e[40]=n,e[41]=u,e[42]=l,e[43]=s,e[44]=ae}else ae=e[44];const oe=ae;let ye;e[47]===Symbol.for("react.memo_cache_sentinel")?(ye=async(en,qt)=>{st({name:"log_copied",what:en});try{await navigator.clipboard.writeText(qt),h(en),setTimeout(()=>h(null),1200)}catch{}},e[47]=ye):ye=e[47];const _e=ye;j=Et.drawer,E=`Details for ${n.c}`,C=m.style,e[48]!==m.fraction||e[49]!==m.setFraction?(O=o.jsx(m5,{fraction:m.fraction,onCommit:m.setFraction}),e[48]=m.fraction,e[49]=m.setFraction,e[50]=O):O=e[50];let ne;e[51]!==G?(ne=o.jsx("span",{className:Pn.statusDot,"data-outcome":G}),e[51]=G,e[52]=ne):ne=e[52];let te;e[53]!==n.c?(te=v6(n.c),e[53]=n.c,e[54]=te):te=e[54];let ie;e[55]!==te?(ie=o.jsx("span",{children:te}),e[55]=te,e[56]=ie):ie=e[56];let de;e[57]!==ne||e[58]!==ie?(de=o.jsxs("h2",{className:bn.title,children:[ne,ie]}),e[57]=ne,e[58]=ie,e[59]=de):de=e[59];const xe=a&&bn.active;let Ne;e[60]!==xe?(Ne=K(bn.drawerFilter,"mono",xe),e[60]=xe,e[61]=Ne):Ne=e[61];let Te;e[62]!==n.c||e[63]!==a||e[64]!==i||e[65]!==Ne?(Te=o.jsx("button",{className:Ne,onClick:i,"aria-pressed":a,"aria-describedby":"drawer-filter-tip",children:n.c}),e[62]=n.c,e[63]=a,e[64]=i,e[65]=Ne,e[66]=Te):Te=e[66];const Ae=a?"Click to show all commands again":`Click to show only ${n.c} calls`;let Re;e[67]!==Ae?(Re=o.jsx("span",{id:"drawer-filter-tip",role:"tooltip",className:bn.tip,children:Ae}),e[67]=Ae,e[68]=Re):Re=e[68];let Le;e[69]!==Te||e[70]!==Re?(Le=o.jsxs("span",{className:bn.tipAnchor,children:[Te,Re]}),e[69]=Te,e[70]=Re,e[71]=Le):Le=e[71];const De=J.toISOString(),we=l-n.t;let Ce;e[72]!==we?(Ce=Oa(we),e[72]=we,e[73]=Ce):Ce=e[73];const Oe=o.jsxs("div",{className:bn.headSub,children:[Le,o.jsx("span",{className:bn.headWhen,title:De,children:Ce})]});let Xe;e[74]!==de||e[75]!==Oe?(Xe=o.jsxs("div",{className:bn.headText,children:[de,Oe]}),e[74]=de,e[75]=Oe,e[76]=Xe):Xe=e[76];let re;e[77]===Symbol.for("react.memo_cache_sentinel")?(re=o.jsx(un.Close,{}),e[77]=re):re=e[77];let Ee;e[78]!==c?(Ee=o.jsx("button",{className:"icon-btn",onClick:c,"aria-label":"Close details",title:"Close (Esc)",children:re}),e[78]=c,e[79]=Ee):Ee=e[79],e[80]!==Xe||e[81]!==Ee?(M=o.jsxs("div",{className:Et.drawerHead,children:[Xe,Ee]}),e[80]=Xe,e[81]=Ee,e[82]=M):M=e[82],v=Et.drawerBody;let it;e[83]!==s?(it=s&&o.jsx("i",{className:`sdot hue-${Ni(s.id)}`}),e[83]=s,e[84]=it):it=e[84];let lt;e[85]!==oe?(lt=o.jsx("span",{className:bn.summaryText,children:oe}),e[85]=oe,e[86]=lt):lt=e[86];let ht;e[87]!==G?(ht=G!=="ok"&&o.jsx("span",{className:Et.resultBadge,"data-outcome":G,children:iU[G]}),e[87]=G,e[88]=ht):ht=e[88],e[89]!==G||e[90]!==it||e[91]!==lt||e[92]!==ht?(_=o.jsxs("p",{className:bn.summary,"data-outcome":G,children:[it,lt,ht]}),e[89]=G,e[90]=it,e[91]=lt,e[92]=ht,e[93]=_):_=e[93],e[94]!==f||e[95]!==n.e?(x=n.e&&o.jsxs("div",{className:bn.errorBlock,children:[o.jsxs("div",{className:bn.errorHead,children:[o.jsx("span",{children:"Error"}),o.jsx("button",{className:"link-btn",onClick:()=>_e("error",n.e??""),children:f==="error"?"Copied":"Copy"})]}),o.jsx("pre",{children:n.e})]}),e[94]=f,e[95]=n.e,e[96]=x):x=e[96],e[97]!==n||e[98]!==u||e[99]!==l||e[100]!==d?(k=o.jsx(Ue,{entry:n,history:u,now:l,onPick:d}),e[97]=n,e[98]=u,e[99]=l,e[100]=d,e[101]=k):k=e[101],e[102]!==n?(w=o.jsx(AB.Section,{entry:n}),e[102]=n,e[103]=w):w=e[103];let qe;e[104]===Symbol.for("react.memo_cache_sentinel")?(qe=o.jsx("span",{children:"Params"}),e[104]=qe):qe=e[104];let _t;e[105]!==f||e[106]!==he?(_t=he&&o.jsx("button",{className:"link-btn",onClick:()=>_e("params",he),children:f==="params"?"Copied":"Copy"}),e[105]=f,e[106]=he,e[107]=_t):_t=e[107];let Qe;e[108]!==_t?(Qe=o.jsxs("div",{className:Et.codeHead,children:[qe,_t]}),e[108]=_t,e[109]=Qe):Qe=e[109];let et;e[110]!==r||e[111]!==he?(et=he?o.jsx(oH,{text:he,onAddTerm:r}):o.jsx("pre",{children:o.jsx("span",{className:"muted",children:"No params"})}),e[110]=r,e[111]=he,e[112]=et):et=e[112],e[113]!==Qe||e[114]!==et?(R=o.jsxs("div",{className:Et.codeBlock,children:[Qe,et]}),e[113]=Qe,e[114]=et,e[115]=R):R=e[115],b=bn.more,e[116]===Symbol.for("react.memo_cache_sentinel")?(p=o.jsx("summary",{children:"Details"}),e[116]=p):p=e[116],A=Et.facts,e[117]===Symbol.for("react.memo_cache_sentinel")?(T=o.jsx("dt",{children:"Handler time"}),e[117]=T):T=e[117];let Ie;e[118]!==n.ms?(Ie=o.jsxs("span",{className:"mono",children:[n.ms," ms"]}),e[118]=n.ms,e[119]=Ie):Ie=e[119];let wt;e[120]!==ce?(wt=o.jsxs("span",{className:"muted",children:["· ",ce]}),e[120]=ce,e[121]=wt):wt=e[121],e[122]!==Ie||e[123]!==wt?(S=o.jsxs("dd",{children:[Ie," ",wt]}),e[122]=Ie,e[123]=wt,e[124]=S):S=e[124],e[125]===Symbol.for("react.memo_cache_sentinel")?($=o.jsx("dt",{children:"When"}),e[125]=$):$=e[125];const yt=J.toISOString();let at;e[126]!==n.t||e[127]!==l?(at=w5(n.t,l),e[126]=n.t,e[127]=l,e[128]=at):at=e[128];const Rt=J.toLocaleTimeString([],{hour12:!1}),Lt=String(J.getMilliseconds());let jt;e[129]!==Lt?(jt=Lt.padStart(3,"0"),e[129]=Lt,e[130]=jt):jt=e[130];const Pt=l-n.t;let bt;e[131]!==Pt?(bt=Oa(Pt),e[131]=Pt,e[132]=bt):bt=e[132];let Nt;e[133]!==bt?(Nt=o.jsxs("span",{className:"muted",children:["· ",bt]}),e[133]=bt,e[134]=Nt):Nt=e[134],L=o.jsxs("dd",{title:yt,children:[at," ",Rt,".",jt," ",Nt]}),e[135]!==s?(z=s&&o.jsxs(o.Fragment,{children:[o.jsx("dt",{children:"Session"}),o.jsxs("dd",{children:[o.jsxs("span",{className:K(bn.sessionInline,bn.sessionFact),title:[Cs(s),s.client].filter(Boolean).join(" · "),children:[o.jsx("i",{className:`sdot hue-${Ni(s.id)}`}),o.jsx("span",{className:bn.sessionFactName,children:Cs(s)}),s.client&&o.jsxs("span",{className:K(bn.sessionFactClient,"muted"),children:[" · ",s.client]})]}),o.jsx("span",{className:K(bn.sessionSub,"mono muted"),children:s.id})]})]}),e[135]=s,e[136]=z):z=e[136],e[137]!==n.src?(D=n.src==="page"&&o.jsxs(o.Fragment,{children:[o.jsx("dt",{children:"Sent from"}),o.jsx("dd",{children:"This page (Snapshots)"})]}),e[137]=n.src,e[138]=D):D=e[138],e[139]===Symbol.for("react.memo_cache_sentinel")?(y=o.jsx("dt",{className:Et.factWide,children:"Timestamp"}),g=K(Et.factWide,"mono"),e[139]=g,e[140]=y):(g=e[139],y=e[140]),N=J.toISOString(),e[0]=f,e[1]=n,e[2]=a,e[3]=u,e[4]=l,e[5]=r,e[6]=c,e[7]=i,e[8]=d,e[9]=s,e[10]=m.fraction,e[11]=m.setFraction,e[12]=m.style,e[13]=g,e[14]=y,e[15]=b,e[16]=p,e[17]=v,e[18]=_,e[19]=x,e[20]=k,e[21]=w,e[22]=R,e[23]=j,e[24]=N,e[25]=E,e[26]=C,e[27]=O,e[28]=M,e[29]=A,e[30]=T,e[31]=S,e[32]=$,e[33]=L,e[34]=z,e[35]=D}else g=e[13],y=e[14],b=e[15],p=e[16],v=e[17],_=e[18],x=e[19],k=e[20],w=e[21],R=e[22],j=e[23],N=e[24],E=e[25],C=e[26],O=e[27],M=e[28],A=e[29],T=e[30],S=e[31],$=e[32],L=e[33],z=e[34],D=e[35];let U;e[141]!==g||e[142]!==N?(U=o.jsx("dd",{className:g,children:N}),e[141]=g,e[142]=N,e[143]=U):U=e[143];let I;e[144]===Symbol.for("react.memo_cache_sentinel")?(I=o.jsx("dt",{children:"Sequence"}),e[144]=I):I=e[144];let F;e[145]!==n.n?(F=o.jsxs("dd",{className:"mono",children:["#",n.n]}),e[145]=n.n,e[146]=F):F=e[146];let P;e[147]!==y||e[148]!==U||e[149]!==F||e[150]!==A||e[151]!==T||e[152]!==S||e[153]!==$||e[154]!==L||e[155]!==z||e[156]!==D?(P=o.jsxs("dl",{className:A,children:[T,S,$,L,z,D,y,U,I,F]}),e[147]=y,e[148]=U,e[149]=F,e[150]=A,e[151]=T,e[152]=S,e[153]=$,e[154]=L,e[155]=z,e[156]=D,e[157]=P):P=e[157];let X;e[158]!==b||e[159]!==p||e[160]!==P?(X=o.jsxs("details",{className:b,children:[p,P]}),e[158]=b,e[159]=p,e[160]=P,e[161]=X):X=e[161];let Y;e[162]===Symbol.for("react.memo_cache_sentinel")?(Y=o.jsx("kbd",{children:"↑"}),e[162]=Y):Y=e[162];let Z;e[163]===Symbol.for("react.memo_cache_sentinel")?(Z=o.jsx("kbd",{children:"↓"}),e[163]=Z):Z=e[163];let V;e[164]===Symbol.for("react.memo_cache_sentinel")?(V=o.jsxs("p",{className:Et.drawerHint,children:[Y," ",Z," to move between commands · select a param to filter by it · ",o.jsx("kbd",{children:"Esc"})," to close"]}),e[164]=V):V=e[164];let H;e[165]!==v||e[166]!==_||e[167]!==x||e[168]!==k||e[169]!==w||e[170]!==R||e[171]!==X?(H=o.jsxs("div",{className:v,children:[_,x,k,w,R,X,V]}),e[165]=v,e[166]=_,e[167]=x,e[168]=k,e[169]=w,e[170]=R,e[171]=X,e[172]=H):H=e[172];let W;return e[173]!==j||e[174]!==E||e[175]!==C||e[176]!==O||e[177]!==M||e[178]!==H?(W=o.jsxs("aside",{className:j,"aria-label":E,style:C,children:[O,M,H]}),e[173]=j,e[174]=E,e[175]=C,e[176]=O,e[177]=M,e[178]=H,e[179]=W):W=e[179],W}function oH(t){const e=fe.c(13),{text:n,onAddTerm:s}=t,l=Q.useRef(null),[a,i]=Q.useState(null),r=a?.text===n?a:null;let c;e[0]!==n?(c=()=>{const y=l.current,b=window.getSelection();if(!y||!b||b.rangeCount===0||b.isCollapsed||!y.contains(b.anchorNode)||!y.contains(b.focusNode))return i(null);const p=b.getRangeAt(0),v=document.createRange();v.setStart(y,0),v.setEnd(p.startContainer,p.startOffset);const _=v.toString().length,x=dU(n,_,_+p.toString().length),k=p.getBoundingClientRect(),w=y.getBoundingClientRect();i(x?{term:x,x:k.left+k.width/2-w.left,y:k.top-w.top,text:n}:null)},e[0]=n,e[1]=c):c=e[1];const u=c;let d,m;e[2]===Symbol.for("react.memo_cache_sentinel")?(d=()=>{const y=()=>{const b=window.getSelection();(!b||b.isCollapsed)&&i(null)};return document.addEventListener("selectionchange",y),()=>document.removeEventListener("selectionchange",y)},m=[],e[2]=d,e[3]=m):(d=e[2],m=e[3]),Q.useEffect(d,m);let f;e[4]!==u||e[5]!==n?(f=o.jsx("pre",{ref:l,onMouseUp:u,onKeyUp:u,children:n}),e[4]=u,e[5]=n,e[6]=f):f=e[6];let h;e[7]!==s||e[8]!==r?(h=r&&o.jsxs("button",{className:bn.paramsFilter,style:{left:r.x,top:r.y},onMouseDown:iH,onClick:()=>{s(r.term),window.getSelection()?.removeAllRanges(),i(null)},children:["Filter ",o.jsx("span",{className:"mono",children:r.term})]}),e[7]=s,e[8]=r,e[9]=h):h=e[9];let g;return e[10]!==f||e[11]!==h?(g=o.jsxs("div",{className:bn.paramsText,children:[f,h]}),e[10]=f,e[11]=h,e[12]=g):g=e[12],g}function iH(t){return t.preventDefault()}function rH(t,e,n,s,l,a=0){const i=Math.max(0,t-a),r=Math.floor(i/n),c=Math.ceil((i+e)/n);return{start:Math.max(0,r-l),end:Math.min(s,c+l)}}function cH(t,e,n,s,l=0){const a=l+s*n,i=a+n;return a<t?a===l?0:a:i>t+e?i-e:t}function uH(t,e){if(t===void 0)return 0;const n=e.indexOf(t);return n>0?n:0}const Ki=32,u3=4,dH=10;function d3(t,e){t.scrollTop=e}function _6(t){const e=fe.c(42),{rows:n,today:s,selectedN:l,sessionOf:a,onSelect:i}=t,r=Q.useRef(null);let c;e[0]===Symbol.for("react.memo_cache_sentinel")?(c={top:0,height:800},e[0]=c):c=e[0];const[u,d]=Q.useState(c);let m,f;e[1]===Symbol.for("react.memo_cache_sentinel")?(m=()=>{const C=r.current?.parentElement;if(!C)return;const O=()=>d(A=>A.top===C.scrollTop&&A.height===C.clientHeight?A:{top:C.scrollTop,height:C.clientHeight});O(),C.addEventListener("scroll",O,{passive:!0});const M=new ResizeObserver(O);return M.observe(C),()=>{C.removeEventListener("scroll",O),M.disconnect()}},f=[],e[1]=m,e[2]=f):(m=e[1],f=e[2]),Q.useLayoutEffect(m,f);const h=Q.useRef(void 0);let g,y;e[3]!==n?(g=()=>{const C=r.current?.parentElement,O=uH(h.current,n.map(fH));h.current=n[0]?.n,C&&O>0&&C.scrollTop>0&&d3(C,C.scrollTop+O*Ki)},y=[n],e[3]=n,e[4]=g,e[5]=y):(g=e[4],y=e[5]),Q.useLayoutEffect(g,y);let b;e[6]!==n||e[7]!==l?(b=()=>{const C=r.current?.parentElement;if(!C||l===void 0)return;const O=n.findIndex(M=>M.n===l);O>=0&&d3(C,cH(C.scrollTop,C.clientHeight,Ki,O,u3))},e[6]=n,e[7]=l,e[8]=b):b=e[8];const p=Q.useEffectEvent(b);let v;e[9]!==p?(v=()=>p(),e[9]=p,e[10]=v):v=e[10];let _;e[11]!==l?(_=[l],e[11]=l,e[12]=_):_=e[12],Q.useLayoutEffect(v,_);let x,k,w,R,j;if(e[13]!==i||e[14]!==n||e[15]!==l||e[16]!==a||e[17]!==s||e[18]!==u.height||e[19]!==u.top){const{start:C,end:O}=rH(u.top,u.height,Ki,n.length,dH,u3);k=r,w=Pn.rowsWindow;const M=n.length*Ki;e[25]!==M?(R={height:M},e[25]=M,e[26]=R):R=e[26];const A=`translateY(${C*Ki}px)`;e[27]!==A?(j={transform:A},e[27]=A,e[28]=j):j=e[28];let T;e[29]!==i||e[30]!==l||e[31]!==a||e[32]!==s?(T=S=>o.jsx(mH,{entry:S,today:s,session:a&&S.s?a(S.s):null,selected:l===S.n,onSelect:i},S.n),e[29]=i,e[30]=l,e[31]=a,e[32]=s,e[33]=T):T=e[33],x=n.slice(C,O).map(T),e[13]=i,e[14]=n,e[15]=l,e[16]=a,e[17]=s,e[18]=u.height,e[19]=u.top,e[20]=x,e[21]=k,e[22]=w,e[23]=R,e[24]=j}else x=e[20],k=e[21],w=e[22],R=e[23],j=e[24];let N;e[34]!==x||e[35]!==j?(N=o.jsx("div",{style:j,children:x}),e[34]=x,e[35]=j,e[36]=N):N=e[36];let E;return e[37]!==k||e[38]!==w||e[39]!==R||e[40]!==N?(E=o.jsx("div",{ref:k,className:w,style:R,children:N}),e[37]=k,e[38]=w,e[39]=R,e[40]=N,e[41]=E):E=e[41],E}function fH(t){return t.n}const mH=Q.memo(function(e){const n=fe.c(68),{entry:s,today:l,session:a,selected:i,onSelect:r}=e;let c,u,d;if(n[0]!==s.t){const Y=new Date(s.t);c=Y.toLocaleTimeString([],{hour12:!1}),u=String,d=Y.getMilliseconds(),n[0]=s.t,n[1]=c,n[2]=u,n[3]=d}else c=n[1],u=n[2],d=n[3];const m=u(d);let f;n[4]!==m?(f=m.padStart(3,"0"),n[4]=m,n[5]=f):f=n[5];const h=f;let g;n[6]!==s.c||n[7]!==s.ms?(g=$m(s.c,s.ms),n[6]=s.c,n[7]=s.ms,n[8]=g):g=n[8];const y=g,b=i&&Pn.rowSelected;let p;n[9]!==b?(p=K(Pn.row,b),n[9]=b,n[10]=p):p=n[10];let v;n[11]!==s?(v=za(s),n[11]=s,n[12]=v):v=n[12];let _;n[13]===Symbol.for("react.memo_cache_sentinel")?(_={height:Ki},n[13]=_):_=n[13];let x;n[14]!==s||n[15]!==r?(x=()=>r(s),n[14]=s,n[15]=r,n[16]=x):x=n[16];let k;n[17]===Symbol.for("react.memo_cache_sentinel")?(k=K(Pn.rowTime,"mono"),n[17]=k):k=n[17];let w;n[18]!==s.t?(w=Y=>Y.currentTarget.title=Oa(Date.now()-s.t),n[18]=s.t,n[19]=w):w=n[19];let R;n[20]!==s.t||n[21]!==l?(R=w5(s.t,l),n[20]=s.t,n[21]=l,n[22]=R):R=n[22];let j;n[23]!==R?(j=o.jsx("span",{className:Pn.rowDay,children:R}),n[23]=R,n[24]=j):j=n[24];let N;n[25]!==h?(N=o.jsxs("span",{className:Pn.rowMs,children:[".",h]}),n[25]=h,n[26]=N):N=n[26];let E;n[27]!==c||n[28]!==w||n[29]!==j||n[30]!==N?(E=o.jsxs("span",{className:k,onMouseEnter:w,children:[j,c,N]}),n[27]=c,n[28]=w,n[29]=j,n[30]=N,n[31]=E):E=n[31];let C;n[32]!==s?(C=za(s),n[32]=s,n[33]=C):C=n[33];let O;n[34]!==C?(O=o.jsx("span",{className:Pn.statusDot,"data-outcome":C}),n[34]=C,n[35]=O):O=n[35];let M;n[36]===Symbol.for("react.memo_cache_sentinel")?(M=K(Pn.rowCmd,"mono"),n[36]=M):M=n[36];let A;n[37]!==s.c?(A=o.jsx("span",{className:M,children:s.c}),n[37]=s.c,n[38]=A):A=n[38];let T;n[39]!==s.e?(T=s.e&&o.jsx("span",{className:Pn.rowErrInline,children:s.e}),n[39]=s.e,n[40]=T):T=n[40];let S;n[41]!==a?(S=a&&o.jsxs("span",{className:Pn.rowSession,title:a.dir??a.id,children:[o.jsx("i",{className:`sdot hue-${Ni(a.id)}`}),Cs(a)]}),n[41]=a,n[42]=S):S=n[42];let $;n[43]===Symbol.for("react.memo_cache_sentinel")?($=K(Pn.rowDur,"mono"),n[43]=$):$=n[43];const L=y==="long"?f6.long:void 0,z=`${cU(s.ms)*100}%`;let D;n[44]!==z?(D=o.jsx("span",{className:Pn.durTrack,"aria-hidden":!0,children:o.jsx("span",{className:Pn.durFill,style:{width:z}})}),n[44]=z,n[45]=D):D=n[45];let U;n[46]!==s.ms?(U=oo(s.ms),n[46]=s.ms,n[47]=U):U=n[47];let I;n[48]!==y||n[49]!==L||n[50]!==D||n[51]!==U?(I=o.jsxs("span",{className:$,"data-speed":y,title:L,children:[D,U]}),n[48]=y,n[49]=L,n[50]=D,n[51]=U,n[52]=I):I=n[52];let F;n[53]!==S||n[54]!==I?(F=o.jsxs("span",{className:Pn.rowEnd,children:[S,I]}),n[53]=S,n[54]=I,n[55]=F):F=n[55];let P;n[56]!==i||n[57]!==x||n[58]!==E||n[59]!==O||n[60]!==A||n[61]!==T||n[62]!==F?(P=o.jsxs("button",{className:Pn.rowMain,style:_,onClick:x,"aria-pressed":i,children:[E,O,A,T,F]}),n[56]=i,n[57]=x,n[58]=E,n[59]=O,n[60]=A,n[61]=T,n[62]=F,n[63]=P):P=n[63];let X;return n[64]!==P||n[65]!==p||n[66]!==v?(X=o.jsx("div",{className:p,"data-outcome":v,children:P}),n[64]=P,n[65]=p,n[66]=v,n[67]=X):X=n[67],X},(t,e)=>t.entry===e.entry&&t.today===e.today&&t.selected===e.selected&&t.onSelect===e.onSelect&&t.session?.id===e.session?.id&&t.session?.label===e.session?.label&&t.session?.dir===e.session?.dir),hH="_sessions_17rxn_1",pH="_sessionsHelp_17rxn_5",vH="_sessionCard_17rxn_6",gH="_sessionTop_17rxn_14",_H="_sessionName_17rxn_16",yH="_sessionState_17rxn_17",bH="_on_17rxn_18",xH="_sessionDir_17rxn_19",SH="_sessionFacts_17rxn_20",kH="_sessionTools_17rxn_23",wH="_toolChip_17rxn_24",jH="_sessionId_17rxn_30",ul={sessions:hH,sessionsHelp:pH,sessionCard:vH,sessionTop:gH,sessionName:_H,sessionState:yH,on:bH,sessionDir:xH,sessionFacts:SH,sessionTools:kH,toolChip:wH,sessionId:jH};function y6(t){const e=fe.c(16),{ids:n,sessionOf:s,log:l,now:a,onPick:i}=t;let r,c;if(e[0]!==n||e[1]!==l||e[2]!==a||e[3]!==i||e[4]!==s){c=Symbol.for("react.early_return_sentinel");e:{let u;e[7]!==a?(u=(g,y)=>Number(Er(y,a))-Number(Er(g,a)),e[7]=a,e[8]=u):u=e[8];const d=n.map(s).sort(u);if(d.length===0){let g;e[9]===Symbol.for("react.memo_cache_sentinel")?(g=o.jsx("div",{className:Dt.rows,children:o.jsx("div",{className:Dt.empty,children:"No agent sessions yet. Each Claude Code session that connects to the REAPER MCP server shows up here."})}),e[9]=g):g=e[9],c=g;break e}let m,f;e[10]===Symbol.for("react.memo_cache_sentinel")?(m=K(Dt.rows,ul.sessions),f=o.jsx("p",{className:ul.sessionsHelp,children:"An agent is one MCP server, usually one Claude Code session; agents in the same folder are numbered by start time. It pings every 20s and shows as idle after 45s without one. Click a card to see only its calls."}),e[10]=m,e[11]=f):(m=e[10],f=e[11]);let h;e[12]!==l||e[13]!==a||e[14]!==i?(h=g=>{const y=l.filter(v=>v.s===g.id),b=k0(y).slice(0,4),p=Er(g,a);return o.jsxs("button",{className:ul.sessionCard,onClick:()=>i(g.id),title:"Show this session's calls",children:[o.jsxs("div",{className:ul.sessionTop,children:[o.jsx("i",{className:`sdot hue-${Ni(g.id)} ${p?"":"sdot-off"}`}),o.jsx("span",{className:ul.sessionName,title:Cs(g),children:Cs(g)}),g.client&&o.jsx("span",{className:Dt.tag,children:g.client}),o.jsx("span",{className:K(ul.sessionState,p?ul.on:""),children:p?"Connected":g.ended?"Disconnected":"Idle"})]}),g.dir&&o.jsx("div",{className:K(ul.sessionDir,"mono"),title:g.dir,children:o.jsx("bdi",{children:g.dir})}),o.jsxs("div",{className:ul.sessionFacts,children:[o.jsxs("span",{children:[o.jsx("b",{children:(g.commands||y.length).toLocaleString()})," calls"]}),o.jsxs("span",{className:g.errors?"tone-bad":"",children:[o.jsx("b",{children:g.errors.toLocaleString()})," errors"]}),g.first>0&&o.jsxs("span",{children:["started ",Yr(g.first)]}),g.last>0&&o.jsxs("span",{children:["active ",Oa(a-g.last)]})]}),b.length>0&&o.jsx("div",{className:ul.sessionTools,children:b.map(NH)}),o.jsx("span",{className:K(ul.sessionId,"mono"),children:g.id})]},g.id)},e[12]=l,e[13]=a,e[14]=i,e[15]=h):h=e[15],r=o.jsxs("div",{className:m,children:[f,d.map(h)]})}e[0]=n,e[1]=l,e[2]=a,e[3]=i,e[4]=s,e[5]=r,e[6]=c}else r=e[5],c=e[6];return c!==Symbol.for("react.early_return_sentinel")?c:r}function NH(t){return o.jsxs("span",{className:K(ul.toolChip,"mono"),children:[o.jsx("i",{className:"kdot","data-kind":t.kind}),t.c," ",o.jsxs("span",{className:"muted",children:["×",t.count]})]},t.c)}const TH="_tools_yxs2b_1",EH="_mix_yxs2b_2",$H="_mixSeg_yxs2b_3",RH="_mixLegend_yxs2b_7",CH="_mixNote_yxs2b_13",MH="_toolHead_yxs2b_14",AH="_toolRow_yxs2b_14",LH="_th_yxs2b_27",OH="_thOn_yxs2b_28",DH="_toolName_yxs2b_36",zH="_share_yxs2b_38",BH="_num_yxs2b_40",IH="_errLink_yxs2b_41",Fn={tools:TH,mix:EH,mixSeg:$H,mixLegend:RH,mixNote:CH,toolHead:MH,toolRow:AH,th:LH,thOn:OH,toolName:DH,share:zH,num:BH,errLink:IH},UH=t=>b6.some(e=>e.key===t),b6=[{key:"count",label:"Calls"},{key:"errors",label:"Errors"},{key:"slowest",label:"p95"},{key:"recent",label:"Last"}];function x6(t){const e=fe.c(47),{log:n,query:s,now:l,onPick:a}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={validate:UH},e[0]=i):i=e[0];const[r,c]=bl("sort","count",i);let u;if(e[1]!==n||e[2]!==s||e[3]!==r){const T=af(s),S=T.filter(GH),$=T.filter(VH),L=S.length?n.filter(z=>m6(z,S)):n;u=k0(L,r).filter(z=>$.every(D=>z.c.includes(D.value))),e[1]=n,e[2]=s,e[3]=r,e[4]=u}else u=e[4];const d=u;let m;e[5]!==d?(m=Math.max(1,...d.map(HH)),e[5]=d,e[6]=m):m=e[6];const f=m;let h;if(e[7]!==n){h={read:0,write:0,transport:0};for(const T of k0(n))h[T.kind]=h[T.kind]+T.count;e[7]=n,e[8]=h}else h=e[8];const g=h;if(n.length===0){let T;return e[9]===Symbol.for("react.memo_cache_sentinel")?(T=o.jsx("div",{className:Dt.rows,children:o.jsx("div",{className:Dt.empty,children:"No commands yet. Tools show up here once your agent calls them."})}),e[9]=T):T=e[9],T}let y;e[10]===Symbol.for("react.memo_cache_sentinel")?(y=K(Dt.rows,Fn.tools),e[10]=y):y=e[10];let b;e[11]===Symbol.for("react.memo_cache_sentinel")?(b=["read","write","transport"],e[11]=b):b=e[11];let p;e[12]!==g?(p=o.jsx("div",{className:Fn.mix,"aria-label":"Calls by kind",children:b.map(T=>g[T]?o.jsx("span",{className:Fn.mixSeg,"data-kind":T,style:{flexGrow:g[T]},title:`${g[T]} ${T}`},T):null)}),e[12]=g,e[13]=p):p=e[13];let v;e[14]===Symbol.for("react.memo_cache_sentinel")?(v=o.jsx("i",{className:"kdot","data-kind":"read"}),e[14]=v):v=e[14];let _;e[15]!==g.read?(_=o.jsxs("span",{children:[v," inspect ",g.read]}),e[15]=g.read,e[16]=_):_=e[16];let x;e[17]===Symbol.for("react.memo_cache_sentinel")?(x=o.jsx("i",{className:"kdot","data-kind":"write"}),e[17]=x):x=e[17];let k;e[18]!==g.write?(k=o.jsxs("span",{children:[x," change ",g.write]}),e[18]=g.write,e[19]=k):k=e[19];let w;e[20]===Symbol.for("react.memo_cache_sentinel")?(w=o.jsx("i",{className:"kdot","data-kind":"transport"}),e[20]=w):w=e[20];let R;e[21]!==g.transport?(R=o.jsxs("span",{children:[w," transport ",g.transport]}),e[21]=g.transport,e[22]=R):R=e[22];let j;e[23]!==d.length||e[24]!==n.length?(j=o.jsxs("span",{className:Fn.mixNote,children:[d.length," tools · last ",n.length," calls"]}),e[23]=d.length,e[24]=n.length,e[25]=j):j=e[25];let N;e[26]!==k||e[27]!==R||e[28]!==j||e[29]!==_?(N=o.jsxs("div",{className:Fn.mixLegend,children:[_,k,R,j]}),e[26]=k,e[27]=R,e[28]=j,e[29]=_,e[30]=N):N=e[30];let E;e[31]===Symbol.for("react.memo_cache_sentinel")?(E=o.jsx("span",{children:"Tool"}),e[31]=E):E=e[31];let C;e[32]!==c||e[33]!==r?(C=b6.map(T=>o.jsxs("button",{className:K(Fn.th,r===T.key?Fn.thOn:""),onClick:()=>{T.key!==r&&st({name:"tools_sorted",sort:T.key}),c(T.key)},"aria-pressed":r===T.key,children:[T.label,r===T.key&&" ↓"]},T.key)),e[32]=c,e[33]=r,e[34]=C):C=e[34];let O;e[35]!==C?(O=o.jsxs("div",{className:Fn.toolHead,role:"row",children:[E,C]}),e[35]=C,e[36]=O):O=e[36];let M;e[37]!==d||e[38]!==l||e[39]!==a||e[40]!==f?(M=d.length===0?o.jsx("div",{className:Dt.empty,children:"No tool matches that filter."}):d.map(T=>o.jsxs("button",{className:Fn.toolRow,onClick:()=>a(T.c,!1),title:T.lastError?`Last error: ${T.lastError}`:`Show ${T.c} calls`,children:[o.jsxs("span",{className:Fn.toolName,children:[o.jsx("i",{className:"kdot","data-kind":T.kind}),o.jsx("span",{className:"mono",children:T.c}),o.jsx("span",{className:Fn.share,"aria-hidden":!0,children:o.jsx("span",{style:{width:`${T.count/f*100}%`}})})]}),o.jsx("span",{className:K(Fn.num,"mono"),children:T.count}),o.jsx("span",{className:K(Fn.num,"mono",T.errors?K(Fn.errLink,"tone-bad"):"muted"),onClick:S=>{T.errors&&(S.stopPropagation(),a(T.c,!0))},children:T.errors?`${T.errors} · ${Math.round(T.errors/T.count*100)}%`:"0"}),o.jsx("span",{className:K(Fn.num,"mono",rU[$m(T.c,T.p95)]),children:oo(T.p95)}),o.jsx("span",{className:K(Fn.num,"muted"),children:Oa(l-T.last)})]},T.c)),e[37]=d,e[38]=l,e[39]=a,e[40]=f,e[41]=M):M=e[41];let A;return e[42]!==N||e[43]!==O||e[44]!==M||e[45]!==p?(A=o.jsxs("div",{className:y,children:[p,N,O,M]}),e[42]=N,e[43]=O,e[44]=M,e[45]=p,e[46]=A):A=e[46],A}function HH(t){return t.count}function VH(t){return t.key===void 0}function GH(t){return t.key!==void 0}const FH="_wrap_r8eiy_2",PH="_chips_r8eiy_3",qH="_more_r8eiy_5",U1={wrap:FH,chips:PH,more:qH},f3=2,YH=24,XH=6,KH=f3*YH+(f3-1)*XH;function QH(t){const e=fe.c(34),{ids:n,sessionOf:s,countOf:l,selected:a,now:i,onPick:r,className:c}=t,[u,d]=Q.useState(!1),[m,f]=Q.useState(0),h=Q.useRef(null);let g;e[0]===Symbol.for("react.memo_cache_sentinel")?(g=()=>{const N=h.current;if(!N)return;const E=()=>f([...N.children].filter(ZH).length),C=new ResizeObserver(E);C.observe(N);for(const O of N.children)C.observe(O);return()=>C.disconnect()},e[0]=g):g=e[0];let y;e[1]!==n?(y=[n],e[1]=n,e[2]=y):y=e[2],Q.useEffect(g,y);let b;e[3]!==c?(b=K(Dt.chips,U1.wrap,c),e[3]=c,e[4]=b):b=e[4];const p=u?"":void 0,v=a===null;let _;e[5]!==r?(_=()=>r(null),e[5]=r,e[6]=_):_=e[6];let x;e[7]!==v||e[8]!==_?(x=o.jsx("button",{role:"tab","aria-selected":v,className:Dt.chip,onClick:_,children:"All agents"}),e[7]=v,e[8]=_,e[9]=x):x=e[9];let k;if(e[10]!==l||e[11]!==n||e[12]!==i||e[13]!==r||e[14]!==a||e[15]!==s){let N;e[17]!==l||e[18]!==i||e[19]!==r||e[20]!==a||e[21]!==s?(N=E=>{const C=s(E);return o.jsxs("button",{role:"tab","aria-selected":a===E,className:Dt.chip,title:C.dir??E,onClick:()=>r(a===E?null:E),children:[o.jsx("i",{className:`sdot hue-${Ni(E)} ${Er(C,i)?"":"sdot-off"}`}),Cs(C),o.jsx("span",{className:"count",children:l(E)})]},E)},e[17]=l,e[18]=i,e[19]=r,e[20]=a,e[21]=s,e[22]=N):N=e[22],k=n.map(N),e[10]=l,e[11]=n,e[12]=i,e[13]=r,e[14]=a,e[15]=s,e[16]=k}else k=e[16];let w;e[23]!==p||e[24]!==x||e[25]!==k?(w=o.jsxs("div",{ref:h,className:U1.chips,"data-expanded":p,role:"tablist","aria-label":"Agent session",id:"agent-chips",children:[x,k]}),e[23]=p,e[24]=x,e[25]=k,e[26]=w):w=e[26];let R;e[27]!==m||e[28]!==u?(R=(m>0||u)&&o.jsx("button",{className:K(Dt.chip,U1.more),"aria-expanded":u,"aria-controls":"agent-chips",onClick:()=>d(!u),children:u?"Show less":`+${m} more`}),e[27]=m,e[28]=u,e[29]=R):R=e[29];let j;return e[30]!==R||e[31]!==b||e[32]!==w?(j=o.jsxs("div",{className:b,children:[w,R]}),e[30]=R,e[31]=b,e[32]=w,e[33]=j):j=e[33],j}function ZH(t){return t.offsetTop>=KH}const WH={calls:"c",tools:"t",sessions:"a",plugins:"p",snapshots:"s"};function JH(t){const e=fe.c(10),{view:n,label:s,onView:l}=t,a=`go-${n}`,i=`Go to ${s}`,r=WH[n];let c;e[0]!==r?(c=["g",r],e[0]=r,e[1]=c):c=e[1];let u;e[2]!==l||e[3]!==n?(u=()=>l(n),e[2]=l,e[3]=n,e[4]=u):u=e[4];let d;return e[5]!==a||e[6]!==i||e[7]!==c||e[8]!==u?(d={id:a,label:i,group:"Go to",shortcut:c,description:"view tab",onSelect:u},e[5]=a,e[6]=i,e[7]=c,e[8]=u,e[9]=d):d=e[9],mt(d),null}function eV(t){const e=fe.c(45),{views:n,view:s,onView:l,onFocusSearch:a,errorsOnly:i,onToggleErrors:r,paused:c,onTogglePause:u,canCopy:d,onCopy:m,canClear:f,onClear:h,detailsOpen:g,onStep:y,onCloseDetails:b,hasSpan:p,onClearSpan:v,agents:_,agentFilter:x,onAgent:k}=t,w=s==="calls";let R;e[0]===Symbol.for("react.memo_cache_sentinel")?(R=["/"],e[0]=R):R=e[0];let j;e[1]!==a?(j={id:"search-focus",label:"Search",group:"Find",shortcut:R,description:"filter the list focus search box",onSelect:a},e[1]=a,e[2]=j):j=e[2],mt(j);const N=i?"Show all calls":"Show only errors";let E;e[3]===Symbol.for("react.memo_cache_sentinel")?(E=["f"],e[3]=E):E=e[3];let C;e[4]!==r||e[5]!==N?(C={contextual:!0,id:"calls-errors",label:N,group:"Calls",shortcut:E,description:"filter failed calls",onSelect:r},e[4]=r,e[5]=N,e[6]=C):C=e[6],mt(C,w);const O=c?"Resume the log":"Pause the log";let M;e[7]===Symbol.for("react.memo_cache_sentinel")?(M=["p"],e[7]=M):M=e[7];let A;e[8]!==u||e[9]!==O?(A={contextual:!0,id:"calls-pause",label:O,group:"Calls",shortcut:M,description:"freeze to read",onSelect:u},e[8]=u,e[9]=O,e[10]=A):A=e[10],mt(A,w);let T;e[11]===Symbol.for("react.memo_cache_sentinel")?(T=["j"],e[11]=T):T=e[11];let S;e[12]!==y?(S={contextual:!0,id:"calls-next",label:"Next call",group:"Calls",shortcut:T,description:"open step down",onSelect:()=>y(1)},e[12]=y,e[13]=S):S=e[13],mt(S,w);let $;e[14]===Symbol.for("react.memo_cache_sentinel")?($=["k"],e[14]=$):$=e[14];let L;e[15]!==y?(L={contextual:!0,id:"calls-prev",label:"Previous call",group:"Calls",shortcut:$,description:"open step up",onSelect:()=>y(-1)},e[15]=y,e[16]=L):L=e[16],mt(L,w);let z;e[17]!==b?(z={contextual:!0,id:"calls-close",label:"Close call details",group:"Calls",hint:"Esc",onSelect:b},e[17]=b,e[18]=z):z=e[18],mt(z,w&&g);let D;e[19]!==m?(D={contextual:!0,id:"calls-copy",label:"Copy visible rows",group:"Calls",onSelect:m},e[19]=m,e[20]=D):D=e[20],mt(D,w&&d);let U;e[21]!==h?(U={contextual:!0,id:"calls-clear",label:"Clear the log",group:"Calls",description:"the bridge keeps its history",onSelect:h},e[21]=h,e[22]=U):U=e[22],mt(U,w&&f);let I;e[23]!==v?(I={contextual:!0,id:"timeline-clear-span",label:"Clear the timeline selection",group:"Timeline",hint:"Esc",onSelect:v},e[23]=v,e[24]=I):I=e[24],mt(I,p&&s!=="plugins"&&s!=="snapshots");const F=x===null?"current":void 0;let P;e[25]!==k?(P=()=>k(null),e[25]=k,e[26]=P):P=e[26];let X;e[27]!==F||e[28]!==P?(X={id:"agent-all",label:"All agents",hint:F,onSelect:P},e[27]=F,e[28]=P,e[29]=X):X=e[29];let Y;if(e[30]!==x||e[31]!==_||e[32]!==k||e[33]!==X){let H;e[35]!==x||e[36]!==k?(H=W=>({id:`agent-${W.id}`,label:W.name,hint:x===W.id?"current":void 0,onSelect:()=>k(W.id)}),e[35]=x,e[36]=k,e[37]=H):H=e[37],Y={contextual:!0,id:"agent-filter",label:"Filter by agent…",group:"Calls",description:"agent session",children:[X,..._.map(H)]},e[30]=x,e[31]=_,e[32]=k,e[33]=X,e[34]=Y}else Y=e[34];mt(Y,(s==="calls"||s==="tools")&&_.length>0);let Z;if(e[38]!==l||e[39]!==n){let H;e[41]!==l?(H=W=>o.jsx(JH,{view:W.key,label:W.label,onView:l},W.key),e[41]=l,e[42]=H):H=e[42],Z=n.map(H),e[38]=l,e[39]=n,e[40]=Z}else Z=e[40];let V;return e[43]!==Z?(V=o.jsx(o.Fragment,{children:Z}),e[43]=Z,e[44]=V):V=e[44],V}const A0=/^(VST3i?|VSTi?|AUi?|CLAPi?|LV2i?|DXi?|JS):\s*/i,m3=/^(\d+\s*(->\s*\d+\s*)?(ch|out|in)|x86_64|x64|arm64|\d+\s*bit)$/i;function qu(t){const e=(t.match(A0)?.[1]??"").toUpperCase().replace(/I$/,"");let n=t.replace(A0,"").trim();if(e==="JS"||e==="")return{type:e,title:n};const s=[];for(let c=n.match(/\s*\(([^()]*)\)\s*$/);c&&c.index!==void 0&&c.index>0;c=n.match(/\s*\(([^()]*)\)\s*$/))s.unshift(c[1].trim()),n=n.slice(0,c.index);const l=s.map((c,u)=>({g:c,i:u})).filter(({g:c})=>!m3.test(c)),a=e==="VST3"||e==="CLAP",i=(a?l[0]:l[l.length-1])?.i,r=s.filter((c,u)=>u!==i&&!m3.test(c)&&!(a&&i!==void 0&&u>i));return{type:e,title:[n.trim(),...r.map(c=>`(${c})`)].join(" "),vendor:i===void 0?void 0:s[i]}}const L0=t=>qu(t).title.toLowerCase().replace(/\s*\(mono\)/g,"").replace(/[\s_-]+/g,"");function tV(t){return t.match(A0)?.[1]??""}function nV(t){return qu(t).title}function O0(t,e){const n=L0(e.name);return t.matches.some(s=>L0(s)===n)}function sV(t,e){if(e?.vendor)return e.vendor;const n=qu(t.name);return(n.type||t.type.toUpperCase())==="JS"?"JSFX":n.vendor||"Other"}const h3=["VST3","CLAP","VST","AU","LV2","DX","JS"],p3=t=>{const e=h3.indexOf(qu(t.name).type);return e<0?h3.length:e},of=t=>`${L0(t)}\0${(qu(t).vendor??"").toLowerCase()}`;function lV(t){const e=new Map;for(const n of t){const s=of(n.name);e.set(s,[...e.get(s)??[],n])}return[...e.values()].map(n=>[...n].sort((s,l)=>p3(s)-p3(l)))}function aV(t){const e=new Map,n=new Map;for(const s of t.used??[])e.set(s.name,(e.get(s.name)??0)+s.count),n.set(of(s.name),(n.get(of(s.name))??0)+s.count);return lV(t.installed).map(s=>{const l=s[0],a=t.records.find(u=>u.layer==="user"&&s.some(d=>O0(u,d))),i=t.records.find(u=>u.layer==="built-in"&&s.some(d=>O0(u,d))),r=a??i,c=s.reduce((u,d)=>u+(e.get(d.name)??0),0);return{fx:l,variants:s,label:nV(l.name),coverage:a?"learned":i?"built-in":"unknown",record:r,shadows:a&&i?i:void 0,used:c||n.get(of(l.name))||0,creator:sV(l,r)}})}function oV(t){return t.records.filter(e=>!t.installed.some(n=>O0(e,n))&&!(e.layer==="built-in"&&t.records.some(n=>n.layer==="user"&&n.key.endsWith(e.key))))}const iV="project::reaper-mcp";function Ed(t){return t.id?`https://www.lorekit.io/lore?${new URLSearchParams({scope:JSON.stringify(iV),memoryId:t.id})}`:void 0}function rV(t){const e=new Map;for(const s of t){const l=s.creator.toLowerCase(),a=e.get(l)??{creator:s.creator,rows:[],used:0};a.rows.push(s),s.used>0&&(a.used+=1),e.set(l,a)}const n=s=>s.creator==="Other"?1:0;return[...e.values()].sort((s,l)=>+(l.used>0)-+(s.used>0)||n(s)-n(l)||s.creator.localeCompare(l.creator))}const v3=2e4,g3=50,D0="\x3C!-- lorekit-record",cV=/^plugins::[a-z0-9][a-z0-9._-]*\/[a-z0-9][a-z0-9._-]*$/,uV=/^(plugin-knowledge|(plugin|category|vendor|preference|style|fx|replaces)::.+)$/;function S6(t){return`\x3C!-- reaper-mcp plugin contribution. Each record below becomes a built-in LoreKit record once the maintainer publishes it. -->
|
|
98
|
+
`+t.map(n=>{const s=n.key.replace(/^user::/,""),l=n.tags.filter(a=>!a.startsWith("layer::"));return`
|
|
99
|
+
${D0}
|
|
100
|
+
key: ${s}
|
|
101
|
+
tags: ${JSON.stringify(l)}
|
|
102
|
+
-->
|
|
103
|
+
${n.value.trim()}
|
|
104
|
+
`}).join("")}function dV(t){const e=[],n=[],s=`
|
|
105
|
+
${t.replace(/\r\n?/g,`
|
|
106
|
+
`)}`.split(`
|
|
107
|
+
${D0}
|
|
108
|
+
`);return s.length<2?{records:n,errors:['No records found (each starts with a "\x3C!-- lorekit-record" header).']}:(s.length-1>g3&&e.push(`At most ${g3} records per file.`),s.slice(1).forEach((l,a)=>{const i=a+1,r=l.indexOf(`
|
|
109
|
+
-->
|
|
110
|
+
`);if(r<0){e.push(`Record ${i}: header is not closed with "-->".`);return}const c=Object.fromEntries(l.slice(0,r).split(`
|
|
111
|
+
`).map(h=>h.match(/^(\w+):\s*(.*)$/)).filter(Boolean).map(h=>[h[1],h[2].trim()])),u=l.slice(r+5).trim(),d=c.key??"",m=d||`Record ${i}`;cV.test(d)||e.push(`${m}: key must look like plugins::<vendor>/<plugin> (lowercase, no user:: prefix).`);let f=[];try{if(f=JSON.parse(c.tags??""),!Array.isArray(f)||!f.every(h=>typeof h=="string"))throw new Error}catch{e.push(`${m}: tags must be a JSON array of strings.`),f=[]}f=f.filter(h=>!h.startsWith("layer::")),f.includes("plugin-knowledge")||e.push(`${m}: tags must include "plugin-knowledge".`);for(const h of f)(!uV.test(h)||h.length>200)&&e.push(`${m}: tag ${JSON.stringify(h.slice(0,80))} is not allowed.`);/^#\s+\S/.test(u)||e.push(`${m}: the record must start with a "# Plugin name" title.`),u.length>v3&&e.push(`${m}: the record is over ${v3} characters.`),u.includes(D0)&&e.push(`${m}: the record contains a record header.`),n.some(h=>h.key===d)&&e.push(`${m}: the key appears twice.`),n.push({key:d,tags:[...new Set([...f,"layer::built-in"])],value:u})}),{records:n,errors:e})}const fV="https://github.com/mthines/reaper-mcp",mV=8e3,hV=`Paste your clipboard here (⌘V / Ctrl+V), replacing this text.
|
|
112
|
+
|
|
113
|
+
The MCP Bridge copied your plugin records when you pressed Contribute. If the clipboard is empty, press Contribute again.
|
|
114
|
+
`;function pV(t){return t.filter(e=>e.layer==="user"&&e.source)}function vV(t,e=new Date,n=Math.random().toString(36).slice(2,6)){const s=e.toISOString().slice(0,10),l=t.length===1?t[0].key.split("/").pop():`${t.length}-plugins`;return`knowledge/contributions/${s}-${l}-${n}.md`}function gV(t,e=vV(t)){const n=S6(t.flatMap(r=>r.source?[{key:r.key,tags:r.source.tags,value:r.source.value}]:[])),s=t.map(r=>r.name),l=`Contribute plugin knowledge: ${s.length>3?`${s.slice(0,3).join(", ")} and ${s.length-3} more`:s.join(", ")}`,a=r=>`${fV}/new/main?${new URLSearchParams({filename:e,message:l,value:r})}`,i=a(n);return i.length<=mV?{url:i,text:n,prefilled:!0}:{url:a(hV),text:n,prefilled:!1}}const z0="project::reaper-mcp",k6="reaper-mcp",$d=(t,e)=>t.find(n=>n.startsWith(`${e}::`))?.slice(e.length+2);function _V(t,e){const n=t.split(`
|
|
115
|
+
`),s=n.findIndex(a=>/^##\s/.test(a)&&e.test(a));if(s<0)return;const l=n.findIndex((a,i)=>i>s&&/^##?\s/.test(a));return n.slice(s+1,l<0?void 0:l).join(`
|
|
116
|
+
`).trim()}function yV(t){return t.replace(/^\s*#\s+.*\n?/,"").split(`
|
|
117
|
+
`).filter(e=>!/^\s*\*\*(Category|Matches FX):\*\*/.test(e)).join(`
|
|
118
|
+
`).trim()}function bV(t){const e=t.tags??[],n=t.key.startsWith("user::plugins::");if(!n&&!t.key.startsWith("plugins::")||!e.includes("plugin-knowledge")||!n&&!e.includes("layer::built-in"))return null;const s=t.value??"",l=Number($d(e,"preference")),a=_V(s,/learned notes/i);return{id:t.id,key:t.key,name:s.match(/^#\s+(.+)$/m)?.[1].trim()??t.key.split("/").pop()??t.key,vendor:s.match(/\*\*Vendor:\*\*\s*([^·\n]+)/)?.[1].trim()??$d(e,"vendor")??"",category:$d(e,"category")??"other",style:$d(e,"style"),preference:Number.isFinite(l)?l:void 0,layer:n?"user":"built-in",matches:e.filter(i=>i.startsWith("fx::")).map(i=>i.slice(4)),notes:a?a.split(`
|
|
119
|
+
`).filter(i=>/^(-|\*)\s/.test(i)).length:void 0,updatedAt:t.updated_at?Date.parse(t.updated_at):0,preview:yV(s),source:n?{value:s,tags:e}:void 0}}async function _3(t,e,n,s){if(!e.startsWith("lk_ro_"))throw new Error("Use a read-only LoreKit token (lk_ro_…)");const l=[];let a;for(let i=0;i<20;i++){const r=new URLSearchParams({scope:z0,key_prefix:n==="user"?"user::plugins::":"plugins::",tags:n==="user"?"plugin-knowledge":"plugin-knowledge,layer::built-in",tags_mode:"all",limit:"100"});a&&r.set("cursor",a);const c=await fetch(`${t}/memories?${r}`,{headers:{Authorization:`Bearer ${e}`,"X-LoreKit-Client":"api"},signal:s});if(!c.ok)throw new Error(c.status===401||c.status===403?"LoreKit refused the token":`LoreKit answered ${c.status}`);const u=await c.json();for(const d of u.entries??[]){const m=bV(d);m&&m.layer===n&&l.push(m)}if(!u.hasMore||!u.nextCursor)break;a=u.nextCursor}return l}function xV(t){if(!t.source)throw new Error("Only your own records can be published");const{records:e,errors:n}=dV(S6([{key:t.key,tags:t.source.tags,value:t.source.value}]));if(n.length)throw new Error(n.join(" "));return e[0]}async function y3(t){if(t.status===401)return"LoreKit refused the token";if(t.status===403)return`LoreKit refused the write: the token needs write access as a member of the ${k6} org`;try{const e=await t.json(),n=typeof e.error=="string"?e.error:typeof e.message=="string"?e.message:"";if(n)return`LoreKit answered ${t.status}: ${n}`}catch{}return`LoreKit answered ${t.status}`}async function SV(t,e,n,{removeCopy:s}){if(!e.startsWith("lk_rw_"))throw new Error("Publishing needs a read + write LoreKit token (lk_rw_…)");const l=xV(n),a={Authorization:`Bearer ${e}`,"X-LoreKit-Client":"api"},i=await fetch(`${t}/memories`,{method:"POST",headers:{...a,"Content-Type":"application/json"},body:JSON.stringify({scope:z0,org:k6,key:l.key,value:l.value,tags:l.tags,source_agent:"mcp-bridge",trigger:"manual"})});if(!i.ok)throw new Error(await y3(i));const r=await i.json().catch(()=>({}));if(typeof r.notice=="string"&&r.notice)throw new Error(`LoreKit didn't write to the built-in layer: ${r.notice}`);if(!s)return{key:l.key,removedCopy:!1};const c=new URLSearchParams({scope:z0,key:n.key});try{const u=await fetch(`${t}/memories?${c}`,{method:"DELETE",headers:a});if(!u.ok)return{key:l.key,removedCopy:!1,warning:`Published, but your copy wasn't archived (${await y3(u)})`}}catch(u){return{key:l.key,removedCopy:!1,warning:`Published, but your copy wasn't archived (${u instanceof Error?u.message:String(u)})`}}return{key:l.key,removedCopy:!0}}async function kV(t,e,n){const s=[];for(const l of t){try{s.push({record:l,result:await e(l)})}catch(a){s.push({record:l,error:a instanceof Error?a.message:String(a)})}n?.(s.length)}return s}function wV(t){if(!t||typeof t!="object")return null;const e=t,s=(Array.isArray(e.fx)?e.fx:[]).flatMap(l=>l&&typeof l=="object"&&typeof l.n=="string"?[{name:l.n,type:String(l.t??"")}]:[]);return{supported:e.supported!==!1,fx:s}}function jV(t){return!t||typeof t!="object"||!Array.isArray(t.fx)?null:t.fx.flatMap(e=>{const n=e;return n&&typeof n.n=="string"&&typeof n.c=="number"&&n.c>0?[{name:n.n,count:n.c}]:[]})}const NV="_knPublishBtn_15t5y_2",TV="_knPublish_15t5y_2",EV="_knPublishDone_15t5y_4",$V="_knPublishCheck_15t5y_5",RV="_knPublishActions_15t5y_7",CV="_knPublishWarn_15t5y_8",Nn={knPublishBtn:NV,knPublish:TV,knPublishDone:EV,knPublishCheck:$V,knPublishActions:RV,knPublishWarn:CV};function w6(t){const e=fe.c(65),{records:n,builtIn:s,publish:l,onClose:a}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={step:"confirm"},e[0]=i):i=e[0];const[r,c]=Q.useState(i),[u,d]=Q.useState(!0);let m;e[1]!==s?(m=new Set(s.filter(UV).map(IV)),e[1]=s,e[2]=m):m=e[2];const f=m;let h;if(e[3]!==f||e[4]!==n){let S;e[6]!==f?(S=$=>f.has($.key.replace(/^user::/,"")),e[6]=f,e[7]=S):S=e[7],h=n.filter(S),e[3]=f,e[4]=n,e[5]=h}else h=e[5];const g=h.length;let y;e[8]!==l||e[9]!==u?(y=async S=>{c({step:"busy",done:0,total:S.length});const $=await kV(S,L=>l(L,{removeCopy:u}),L=>c({step:"busy",done:L,total:S.length}));c({step:"done",outcomes:$})},e[8]=l,e[9]=u,e[10]=y):y=e[10];const b=y;if(r.step==="done"){let S,$,L,z,D;if(e[11]!==r.outcomes){S=r.outcomes.filter(BV);const X=r.outcomes.length-S.length,Y=r.outcomes.flatMap(zV);e[17]===Symbol.for("react.memo_cache_sentinel")?($=K(Nn.knPublish,Nn.knPublishDone),e[17]=$):$=e[17],L="status";const Z=X>0&&r.outcomes.some(DV)?"; your copies are archived (restorable in LoreKit)":"";e[18]!==X||e[19]!==r.outcomes.length||e[20]!==Z?(z=o.jsxs("div",{children:["Published ",X," of ",r.outcomes.length," to the built-in layer",Z,"."]}),e[18]=X,e[19]=r.outcomes.length,e[20]=Z,e[21]=z):z=e[21],D=[...S.map(OV),...Y].map(LV),e[11]=r.outcomes,e[12]=S,e[13]=$,e[14]=L,e[15]=z,e[16]=D}else S=e[12],$=e[13],L=e[14],z=e[15],D=e[16];let U;e[22]!==S||e[23]!==b?(U=S.length>0&&o.jsxs("button",{className:K(Nn.knPublishBtn,"btn btn-sm"),onClick:()=>b(S.map(AV)),children:["Retry ",S.length," failed"]}),e[22]=S,e[23]=b,e[24]=U):U=e[24];let I;e[25]!==a?(I=o.jsx("button",{className:"btn btn-sm",onClick:a,children:"Done"}),e[25]=a,e[26]=I):I=e[26];let F;e[27]!==I||e[28]!==U?(F=o.jsxs("div",{className:Nn.knPublishActions,children:[U,I]}),e[27]=I,e[28]=U,e[29]=F):F=e[29];let P;return e[30]!==F||e[31]!==$||e[32]!==L||e[33]!==z||e[34]!==D?(P=o.jsxs("div",{className:$,role:L,children:[z,D,F]}),e[30]=F,e[31]=$,e[32]=L,e[33]=z,e[34]=D,e[35]=P):P=e[35],P}const p=r.step==="busy",v=n.length,_=n.length===1?"":"s",x=g>0?`, replacing ${g} current built-in record${g===1?"":"s"}`:"";let k;e[36]!==n?(k=n.map(MV).join(", "),e[36]=n,e[37]=k):k=e[37];let w;e[38]!==n.length||e[39]!==_||e[40]!==x||e[41]!==k?(w=o.jsxs("p",{className:Et.drawerNote,children:["Writes your ",v," record",_," to the built-in layer for everyone",x,":"," ",k,"."]}),e[38]=n.length,e[39]=_,e[40]=x,e[41]=k,e[42]=w):w=e[42];let R;e[43]===Symbol.for("react.memo_cache_sentinel")?(R=S=>d(S.target.checked),e[43]=R):R=e[43];let j;e[44]!==p||e[45]!==u?(j=o.jsxs("label",{className:Nn.knPublishCheck,children:[o.jsx("input",{type:"checkbox",checked:u,disabled:p,onChange:R}),"Archive my copies afterwards (they would keep overriding the built-in ones)"]}),e[44]=p,e[45]=u,e[46]=j):j=e[46];let N;e[47]===Symbol.for("react.memo_cache_sentinel")?(N=K(Nn.knPublishBtn,"btn btn-sm"),e[47]=N):N=e[47];let E;e[48]!==n||e[49]!==b?(E=()=>b(n),e[48]=n,e[49]=b,e[50]=E):E=e[50];const C=p?`Publishing ${r.done+1} of ${r.total}…`:`Publish ${n.length}`;let O;e[51]!==p||e[52]!==E||e[53]!==C?(O=o.jsx("button",{className:N,onClick:E,disabled:p,children:C}),e[51]=p,e[52]=E,e[53]=C,e[54]=O):O=e[54];let M;e[55]!==p||e[56]!==a?(M=o.jsx("button",{className:"btn btn-sm",onClick:a,disabled:p,children:"Cancel"}),e[55]=p,e[56]=a,e[57]=M):M=e[57];let A;e[58]!==O||e[59]!==M?(A=o.jsxs("div",{className:Nn.knPublishActions,children:[O,M]}),e[58]=O,e[59]=M,e[60]=A):A=e[60];let T;return e[61]!==j||e[62]!==A||e[63]!==w?(T=o.jsxs("div",{className:Nn.knPublish,children:[w,j,A]}),e[61]=j,e[62]=A,e[63]=w,e[64]=T):T=e[64],T}function MV(t){return t.name}function AV(t){return t.record}function LV(t){return o.jsx("div",{className:Nn.knPublishWarn,children:t},t)}function OV(t){return`${t.record.name}: ${t.error}`}function DV(t){return"result"in t&&t.result.removedCopy}function zV(t){return"result"in t&&t.result.warning?[`${t.record.name}: ${t.result.warning}`]:[]}function BV(t){return"error"in t}function IV(t){return t.key}function UV(t){return t.layer==="built-in"}const HV="_knChevron_fj8en_1",VV="_knChevronOpen_fj8en_2",GV="_splitChevron_fj8en_3",FV="_split_fj8en_3",PV="_splitMain_fj8en_6",qV="_splitCaret_fj8en_8",YV="_splitMenu_fj8en_9",XV="_knTeachAll_fj8en_16",Xl={knChevron:HV,knChevronOpen:VV,splitChevron:GV,split:FV,splitMain:PV,splitCaret:qV,splitMenu:YV,knTeachAll:XV};function KV(t){const e=t.match(/^contribute:(\d+):(filled|paste)$/);if(e){const l=`${e[1]} record${e[1]==="1"?"":"s"}`;return e[2]==="filled"?`Opened GitHub with your ${l} · review the file, then propose it`:`Your ${l} ${e[1]==="1"?"is":"are"} copied · paste over the placeholder on GitHub, then propose it`}const n=" · paste it into Claude Code",s=t.match(/^all:[^:]+:(\d+)$/);return s?`Prompt for ${s[1]} plugin${s[1]==="1"?"":"s"} copied${n}`:t.startsWith("group:")?`Prompt for the unknown ${t.slice(6)} plugins copied${n}`:`Prompt copied${n}`}function j6(t){const e=fe.c(5),{options:n,onCopy:s}=t,[l,a]=Q.useState(!1),i=Q.useRef(null),r=n.filter(ZV);let c,u;if(e[0]!==l?(c=()=>{if(!l)return;const h=g=>{(g instanceof KeyboardEvent?g.key==="Escape":!i.current?.contains(g.target))&&(g.stopPropagation(),a(!1))};return window.addEventListener("pointerdown",h,!0),window.addEventListener("keydown",h,!0),()=>{window.removeEventListener("pointerdown",h,!0),window.removeEventListener("keydown",h,!0)}},u=[l],e[0]=l,e[1]=c,e[2]=u):(c=e[1],u=e[2]),Q.useEffect(c,u),r.length===0)return null;const d=r[0];let m;e[3]===Symbol.for("react.memo_cache_sentinel")?(m=K(Xl.knTeachAll,Xl.splitMain,"btn btn-sm"),e[3]=m):m=e[3];let f;return e[4]===Symbol.for("react.memo_cache_sentinel")?(f=o.jsx(un.Spark,{}),e[4]=f):f=e[4],o.jsxs("div",{className:Xl.split,ref:i,children:[o.jsxs("button",{className:m,onClick:()=>s(d.key,d.rows),title:"Copy a /learn-plugin prompt for these plugins",children:[f," Teach ",d.rows.length," ",d.label]}),r.length>1&&o.jsx("button",{className:K(Xl.knTeachAll,Xl.splitCaret,"btn btn-sm"),"aria-haspopup":"menu","aria-expanded":l,"aria-label":"More teach options",onClick:()=>a(QV),children:o.jsx(un.Chevron,{className:K(Xl.splitChevron,l?Xl.knChevronOpen:"")})}),l&&o.jsx("div",{className:Xl.splitMenu,role:"menu",children:r.map(h=>o.jsxs("button",{role:"menuitem",onClick:()=>{a(!1),s(h.key,h.rows)},children:["Teach all ",h.rows.length," ",h.label]},h.key))})]})}function QV(t){return!t}function ZV(t){return t.rows.length>0}const em=t=>`/learn-plugin ${t.fx.name}`,H1=t=>t.length===1?em(t[0]):`Run /learn-plugin for each of these installed plugins, one at a time:
|
|
120
|
+
${t.map(e=>`- ${e.fx.name}`).join(`
|
|
121
|
+
`)}`;function WV(){const t=fe.c(3),[e,n]=Q.useState(null);let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=async(i,r)=>{try{await navigator.clipboard.writeText(i),n(r),setTimeout(()=>n(c=>c===r?null:c),2200)}catch{}},t[0]=s):s=t[0];const l=s;let a;return t[1]!==e?(a=[e,l],t[1]=e,t[2]=a):a=t[2],a}const JV="_knProblem_1j6hk_1",eG="_knConnect_1j6hk_2",tG="_knControls_1j6hk_3",nG="_chipProject_1j6hk_4",sG="_knUsed_1j6hk_5",lG="_knGroup_1j6hk_9",aG="_knGroupHead_1j6hk_10",oG="_knGroupToggleBtn_1j6hk_15",iG="_knGroupName_1j6hk_19",rG="_knGroupMeta_1j6hk_21",cG="_plugins_1j6hk_23",uG="_knSummary_1j6hk_24",dG="_knMeter_1j6hk_25",fG="_knSeg_1j6hk_26",mG="_knLearned_1j6hk_27",hG="_knBuiltin_1j6hk_28",pG="_knUnknown_1j6hk_29",vG="_knHeadline_1j6hk_30",gG="_knChips_1j6hk_32",_G="_knRow_1j6hk_33",yG="_knRowMain_1j6hk_38",bG="_knHead_1j6hk_30",xG="_knTeach_1j6hk_45",SG="_knTeachDone_1j6hk_52",kG="_toast_1j6hk_53",wG="_knRowOpen_1j6hk_61",jG="_knName_1j6hk_64",NG="_knTitle_1j6hk_65",TG="_knVendor_1j6hk_66",EG="_knPref_1j6hk_67",$G="_knState_1j6hk_69",RG="_knElsewhere_1j6hk_73",CG="_knActions_1j6hk_81",MG="_knContribute_1j6hk_82",We={knProblem:JV,knConnect:eG,knControls:tG,chipProject:nG,knUsed:sG,knGroup:lG,knGroupHead:aG,knGroupToggleBtn:oG,knGroupName:iG,knGroupMeta:rG,plugins:cG,knSummary:uG,knMeter:dG,knSeg:fG,knLearned:mG,knBuiltin:hG,knUnknown:pG,knHeadline:vG,knChips:gG,knRow:_G,knRowMain:yG,knHead:bG,knTeach:xG,knTeachDone:SG,toast:kG,knRowOpen:wG,knName:jG,knTitle:NG,knVendor:TG,knPref:EG,knState:$G,knElsewhere:RG,knActions:CG,knContribute:MG},AG=t=>t==="all"||t==="learned"||t==="built-in"||t==="unknown",tm={learned:"Learned by you","built-in":"Built-in",unknown:"Unknown"},N6="mcp_bridge.plugins_grouped";function LG(){try{return localStorage.getItem(N6)==="1"}catch{return!1}}function OG(t){const e=fe.c(197),{feed:n,query:s,now:l,onOpenSettings:a}=t;let i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i={validate:AG},e[0]=i):i=e[0];const[r,c]=bl("coverage","all",i);let u;e[1]===Symbol.for("react.memo_cache_sentinel")?(u={validate:t5},e[1]=u):u=e[1];const[d,m]=bl("inProject",!1,u),[f,h]=Q.useState(LG),[g,y]=Q.useState(FG);let b;e[2]===Symbol.for("react.memo_cache_sentinel")?(b={validate:n5},e[2]=b):b=e[2];const[p,v]=bl("plugin",null,b),[_,x]=WV(),[k,w]=Q.useState(!1);let R;e[3]!==n?.records?(R=n?.records??[],e[3]=n?.records,e[4]=R):R=e[4];let j;e[5]!==R?(j=pV(R),e[5]=R,e[6]=j):j=e[6];const N=j;let E;e[7]!==x?(E=ue=>{const dt=gV(ue);st({name:"plugin_contribute_clicked",count:ue.length,prefilled:dt.prefilled}),x(dt.text,`contribute:${ue.length}:${dt.prefilled?"filled":"paste"}`),window.open(dt.url,"_blank","noopener,noreferrer")},e[7]=x,e[8]=E):E=e[8];const C=E;let O;e[9]!==n?(O=n?aV(n):[],e[9]=n,e[10]=O):O=e[10];const M=O;let A;e[11]!==p||e[12]!==M?(A=p===null?null:M.find(ue=>ue.fx.name===p)??null,e[11]=p,e[12]=M,e[13]=A):A=e[13];const T=A;let S;e[14]!==v?(S=(ue,dt)=>v(ue?ue.fx.name:null,dt),e[14]=v,e[15]=S):S=e[15];const $=S;let L;e[16]!==n?(L=n?oV(n):[],e[16]=n,e[17]=L):L=e[17];const z=L;let D;e[18]!==M?(D=ue=>M.filter(dt=>dt.coverage===ue).length,e[18]=M,e[19]=D):D=e[19];const U=D,I=M.filter(GG),F=s.trim().toLowerCase(),P=M.filter(ue=>(r==="all"||ue.coverage===r)&&(!d||ue.used>0)&&(!F||ue.label.toLowerCase().includes(F)||ue.creator.toLowerCase().includes(F)||ue.record?.category.includes(F))).sort(VG),X=f?rV(P):[],Y=ue=>!!F||ue===T?.creator||g.has(ue),Z=f?X.flatMap(ue=>Y(ue.creator)?ue.rows:[]):P,V=Q.useEffectEvent(ue=>{if(ue.key!=="ArrowDown"&&ue.key!=="ArrowUp"||!T||ue.target instanceof Element&&ue.target.closest('[role="dialog"]')||ue.target instanceof HTMLElement&&ue.target.closest('input, textarea, [role="separator"], [role="menu"]'))return;ue.preventDefault();const dt=Z.findIndex(bs=>bs.fx.name===T.fx.name),zt=Z[dt+(ue.key==="ArrowDown"?1:-1)];zt&&v(zt.fx.name,"replace")});let H;e[20]!==V?(H=()=>{const ue=dt=>V(dt);return window.addEventListener("keydown",ue),()=>window.removeEventListener("keydown",ue)},e[20]=V,e[21]=H):H=e[21];let W;e[22]===Symbol.for("react.memo_cache_sentinel")?(W=[],e[22]=W):W=e[22],Q.useEffect(H,W);let J,ce;if(e[23]!==T?(J=()=>{T&&document.querySelector(`[data-fx="${CSS.escape(T.fx.name)}"]`)?.scrollIntoView({block:"nearest"})},ce=[T],e[23]=T,e[24]=J,e[25]=ce):(J=e[24],ce=e[25]),Q.useEffect(J,ce),!n){let ue;return e[26]===Symbol.for("react.memo_cache_sentinel")?(ue=o.jsx("div",{className:Dt.rows,children:o.jsx("div",{className:Dt.empty,children:"Plugin knowledge isn’t available from this bridge yet."})}),e[26]=ue):ue=e[26],ue}const ee=M.length-U("unknown");let he;e[27]!==P?(he=P.filter(HG),e[27]=P,e[28]=he):he=e[28];const pe=he,G=I.filter(UG);let ae;e[29]!==x?(ae=(ue,dt,zt)=>{st({name:"plugin_teach_copied",scope:ue.length===1?"one":"many",count:ue.length}),x(dt,zt)},e[29]=x,e[30]=ae):ae=e[30];const oe=ae;let ye;e[31]!==T?.fx||e[32]!==$?(ye=ue=>{if(T?.fx.name===ue.fx.name)return $(null);st({name:"plugin_opened",coverage:ue.coverage,in_project:ue.used>0,formats:ue.variants.length}),$(ue,"push")},e[31]=T?.fx,e[32]=$,e[33]=ye):ye=e[33];const _e=ye;let ne;e[34]!==d||e[35]!==c||e[36]!==m?(ne=(ue,dt)=>{const zt=dt===void 0?d:dt;st({name:"plugins_filtered",filter:ue,in_project:zt}),c(ue),m(zt)},e[34]=d,e[35]=c,e[36]=m,e[37]=ne):ne=e[37];const te=ne;let ie;e[38]!==f?(ie=ue=>{ue!==f&&st({name:"plugins_grouped",grouped:ue}),h(ue);const dt=ue?"1":"0";try{localStorage.setItem(N6,dt)}catch{}},e[38]=f,e[39]=ie):ie=e[39];const de=ie;let xe;e[40]!==T?.creator||e[41]!==$?(xe=ue=>{T?.creator===ue&&$(null),y(dt=>{const zt=new Set(dt);return zt.has(ue)?zt.delete(ue):T?.creator!==ue&&zt.add(ue),zt})},e[40]=T?.creator,e[41]=$,e[42]=xe):xe=e[42];const Ne=xe;let Te;e[43]!==_||e[44]!==f||e[45]!==T?.fx||e[46]!==_e||e[47]!==oe?(Te=ue=>o.jsxs("div",{"data-fx":ue.fx.name,className:K(We.knRow,T?.fx.name===ue.fx.name?We.knRowOpen:""),children:[o.jsxs("button",{className:We.knRowMain,onClick:()=>_e(ue),children:[o.jsx("i",{className:"kdot","data-coverage":ue.coverage}),o.jsxs("span",{className:We.knName,children:[o.jsx("span",{className:We.knTitle,children:ue.label}),!f&&o.jsx("span",{className:We.knVendor,children:ue.creator}),ue.used>0&&o.jsxs("span",{className:We.knUsed,title:`${ue.used} instance${ue.used===1?"":"s"} in the open project`,children:["in project",ue.used>1?` ×${ue.used}`:""]})]}),ue.record?o.jsx("span",{className:Dt.tag,children:ue.record.category}):o.jsx("span",{}),ue.record?.preference!==void 0?o.jsx("span",{className:We.knPref,title:`Preference ${ue.record.preference}/100 within ${ue.record.category}`,children:o.jsx("span",{style:{width:`${ue.record.preference}%`}})}):o.jsx("span",{}),ue.coverage!=="unknown"&&o.jsx("span",{className:We.knState,"data-coverage":ue.coverage,children:ue.coverage==="learned"?`${ue.record?.notes??0} note${ue.record?.notes===1?"":"s"}`:tm[ue.coverage]})]}),ue.coverage==="unknown"&&o.jsx("button",{className:K(We.knTeach,_===ue.fx.name?We.knTeachDone:""),onClick:()=>oe([ue],em(ue),ue.fx.name),title:`Copy: ${em(ue)}`,children:_===ue.fx.name?"Copied":o.jsxs(o.Fragment,{children:[o.jsx(un.Spark,{})," Teach"]})})]},ue.fx.name),e[43]=_,e[44]=f,e[45]=T?.fx,e[46]=_e,e[47]=oe,e[48]=Te):Te=e[48];const Ae=Te;let Re;e[49]===Symbol.for("react.memo_cache_sentinel")?(Re=K(Dt.rows,We.plugins),e[49]=Re):Re=e[49];let Le;e[50]!==te?(Le=ue=>te(ue),e[50]=te,e[51]=Le):Le=e[51];const De=!!n.used;let we;e[52]!==te||e[53]!==r||e[54]!==d?(we=()=>te(r,!d),e[52]=te,e[53]=r,e[54]=d,e[55]=we):we=e[55];const Ce=N.length;let Oe;e[56]!==C||e[57]!==n.publish||e[58]!==N?(Oe=()=>n.publish?w(IG):C(N),e[56]=C,e[57]=n.publish,e[58]=N,e[59]=Oe):Oe=e[59];const Xe=!!n.publish;let re;e[60]!==oe||e[61]!==G?(re=()=>oe(G,H1(G),`all:project:${G.length}`),e[60]=oe,e[61]=G,e[62]=re):re=e[62];let Ee;e[63]!==de||e[64]!==r||e[65]!==f||e[66]!==d||e[67]!==N.length||e[68]!==Le||e[69]!==De||e[70]!==we||e[71]!==Oe||e[72]!==Xe||e[73]!==re||e[74]!==G.length?(Ee=o.jsx(PG,{filter:r,onFilter:Le,hasProjectList:De,inProject:d,onInProject:we,grouped:f,onGrouped:de,mine:Ce,onContribute:Oe,publishes:Xe,unknownInProject:G.length,onTeachProject:re}),e[63]=de,e[64]=r,e[65]=f,e[66]=d,e[67]=N.length,e[68]=Le,e[69]=De,e[70]=we,e[71]=Oe,e[72]=Xe,e[73]=re,e[74]=G.length,e[75]=Ee):Ee=e[75];const it=`${ee} of ${M.length} installed plugins known`;let lt;e[76]===Symbol.for("react.memo_cache_sentinel")?(lt=K(We.knSeg,We.knLearned),e[76]=lt):lt=e[76];const ht=U("learned");let qe;e[77]!==ht?(qe=o.jsx("span",{className:lt,style:{flexGrow:ht}}),e[77]=ht,e[78]=qe):qe=e[78];let _t;e[79]===Symbol.for("react.memo_cache_sentinel")?(_t=K(We.knSeg,We.knBuiltin),e[79]=_t):_t=e[79];const Qe=U("built-in");let et;e[80]!==Qe?(et=o.jsx("span",{className:_t,style:{flexGrow:Qe}}),e[80]=Qe,e[81]=et):et=e[81];let Ie;e[82]===Symbol.for("react.memo_cache_sentinel")?(Ie=K(We.knSeg,We.knUnknown),e[82]=Ie):Ie=e[82];const wt=U("unknown");let yt;e[83]!==wt?(yt=o.jsx("span",{className:Ie,style:{flexGrow:wt}}),e[83]=wt,e[84]=yt):yt=e[84];let at;e[85]!==it||e[86]!==qe||e[87]!==et||e[88]!==yt?(at=o.jsxs("div",{className:We.knMeter,"aria-label":it,children:[qe,et,yt]}),e[85]=it,e[86]=qe,e[87]=et,e[88]=yt,e[89]=at):at=e[89];let Rt;e[90]!==ee?(Rt=o.jsx("b",{children:ee}),e[90]=ee,e[91]=Rt):Rt=e[91];let Lt;e[92]!==M.length?(Lt=o.jsx("b",{children:M.length}),e[92]=M.length,e[93]=Lt):Lt=e[93];let jt;e[94]!==n.used||e[95]!==G.length||e[96]!==I?(jt=n.used&&o.jsxs(o.Fragment,{children:[" · ",o.jsx("b",{children:I.length-G.length})," of the ",o.jsx("b",{children:I.length})," in this project"]}),e[94]=n.used,e[95]=G.length,e[96]=I,e[97]=jt):jt=e[97];let Pt;e[98]!==Rt||e[99]!==Lt||e[100]!==jt?(Pt=o.jsxs("p",{className:We.knHeadline,children:["The mixer knows ",Rt," of your ",Lt," installed plugins",jt]}),e[98]=Rt,e[99]=Lt,e[100]=jt,e[101]=Pt):Pt=e[101];let bt;e[102]!==C||e[103]!==n.publish||e[104]!==N||e[105]!==k?(bt=N.length>0&&(n.publish?o.jsxs("button",{className:K(We.knContribute,Nn.knPublishBtn,"btn btn-sm"),onClick:()=>w(BG),"aria-expanded":k,title:"Write the plugins you taught the mixer to the built-in layer in LoreKit, for everyone",children:[o.jsx(un.Share,{})," Publish ",N.length," to built-in"]}):o.jsxs("button",{className:K(We.knContribute,"btn btn-sm"),onClick:()=>C(N),title:"Share the plugins you taught the mixer with everyone: opens a pull request on GitHub",children:[o.jsx(un.Share,{})," Contribute ",N.length]})),e[102]=C,e[103]=n.publish,e[104]=N,e[105]=k,e[106]=bt):bt=e[106];let Nt;e[107]!==G?(Nt={key:"project",label:"in this project",rows:G},e[107]=G,e[108]=Nt):Nt=e[108];const en=r==="all"&&!d&&!F?"unknown":"shown";let qt;e[109]!==en||e[110]!==pe?(qt={key:"shown",label:en,rows:pe},e[109]=en,e[110]=pe,e[111]=qt):qt=e[111];let rt;e[112]!==Nt||e[113]!==qt?(rt=[Nt,qt],e[112]=Nt,e[113]=qt,e[114]=rt):rt=e[114];let dn;e[115]!==oe?(dn=(ue,dt)=>oe(dt,H1(dt),`all:${ue}:${dt.length}`),e[115]=oe,e[116]=dn):dn=e[116];let Wn;e[117]!==rt||e[118]!==dn?(Wn=o.jsx(j6,{options:rt,onCopy:dn}),e[117]=rt,e[118]=dn,e[119]=Wn):Wn=e[119];let Jn;e[120]!==bt||e[121]!==Wn?(Jn=o.jsxs("div",{className:We.knActions,children:[bt,Wn]}),e[120]=bt,e[121]=Wn,e[122]=Jn):Jn=e[122];let sl;e[123]!==Pt||e[124]!==Jn?(sl=o.jsxs("div",{className:We.knHead,children:[Pt,Jn]}),e[123]=Pt,e[124]=Jn,e[125]=sl):sl=e[125];let Ds;e[126]!==n.publish||e[127]!==n.records||e[128]!==N||e[129]!==k?(Ds=k&&n.publish&&o.jsx(w6,{records:N,builtIn:n.records,publish:n.publish,onClose:()=>w(!1)}),e[126]=n.publish,e[127]=n.records,e[128]=N,e[129]=k,e[130]=Ds):Ds=e[130];let es;e[131]!==n.problem?(es=n.problem&&o.jsx("p",{className:We.knProblem,children:n.problem}),e[131]=n.problem,e[132]=es):es=e[132];let sn;e[133]!==n.userLayer||e[134]!==a?(sn=n.userLayer==="off"&&o.jsxs("p",{className:We.knConnect,children:["Showing built-in records."," ",a?o.jsx("button",{className:"link-btn",onClick:a,children:"Connect your LoreKit"}):"Connect your LoreKit in Settings"," ","to include the plugins you taught the mixer."]}),e[133]=n.userLayer,e[134]=a,e[135]=sn):sn=e[135];let yn;e[136]===Symbol.for("react.memo_cache_sentinel")?(yn=K(Dt.chips,We.knChips),e[136]=yn):yn=e[136];let Vn;e[137]!==te||e[138]!==U||e[139]!==r||e[140]!==M.length?(Vn=["all","learned","built-in","unknown"].map(ue=>o.jsxs("button",{role:"tab","aria-selected":r===ue,className:Dt.chip,onClick:()=>te(ue),children:[ue!=="all"&&o.jsx("i",{className:"kdot","data-coverage":ue}),ue==="all"?"All":tm[ue],o.jsx("span",{className:"count",children:ue==="all"?M.length:U(ue)})]},ue)),e[137]=te,e[138]=U,e[139]=r,e[140]=M.length,e[141]=Vn):Vn=e[141];let ts;e[142]!==te||e[143]!==n.used||e[144]!==r||e[145]!==d||e[146]!==I?(ts=n.used&&o.jsxs("button",{className:K(Dt.chip,We.chipProject),"aria-pressed":d,onClick:()=>te(r,!d),title:"Only plugins loaded in the open project",children:["In this project ",o.jsx("span",{className:"count",children:I.length})]}),e[142]=te,e[143]=n.used,e[144]=r,e[145]=d,e[146]=I,e[147]=ts):ts=e[147];let ll;e[148]!==Vn||e[149]!==ts?(ll=o.jsxs("div",{className:yn,role:"tablist","aria-label":"Coverage",children:[Vn,ts]}),e[148]=Vn,e[149]=ts,e[150]=ll):ll=e[150];let zs;e[151]===Symbol.for("react.memo_cache_sentinel")?(zs=K(Dt.seg,Dt.segSm),e[151]=zs):zs=e[151];const ma=!f;let Bs;e[152]!==de?(Bs=()=>de(!1),e[152]=de,e[153]=Bs):Bs=e[153];let ys;e[154]!==ma||e[155]!==Bs?(ys=o.jsx("button",{role:"tab","aria-selected":ma,onClick:Bs,children:"List"}),e[154]=ma,e[155]=Bs,e[156]=ys):ys=e[156];let ns;e[157]!==de?(ns=()=>de(!0),e[157]=de,e[158]=ns):ns=e[158];let ss;e[159]!==f||e[160]!==ns?(ss=o.jsx("button",{role:"tab","aria-selected":f,onClick:ns,children:"By creator"}),e[159]=f,e[160]=ns,e[161]=ss):ss=e[161];let ls;e[162]!==ys||e[163]!==ss?(ls=o.jsxs("div",{className:zs,role:"tablist","aria-label":"Layout",children:[ys,ss]}),e[162]=ys,e[163]=ss,e[164]=ls):ls=e[164];let as;e[165]!==ll||e[166]!==ls?(as=o.jsxs("div",{className:We.knControls,children:[ll,ls]}),e[165]=ll,e[166]=ls,e[167]=as):as=e[167];let os;e[168]!==at||e[169]!==sl||e[170]!==Ds||e[171]!==es||e[172]!==sn||e[173]!==as?(os=o.jsxs("div",{className:We.knSummary,children:[at,sl,Ds,es,sn,as]}),e[168]=at,e[169]=sl,e[170]=Ds,e[171]=es,e[172]=sn,e[173]=as,e[174]=os):os=e[174];const An=P.length===0&&o.jsx("div",{className:Dt.empty,children:d&&I.length===0?"The open project has no plugins loaded.":"No plugins match."}),al=f?X.map(ue=>{const dt=Y(ue.creator),zt=ue.rows.filter(zG),bs=ue.rows.length-zt.length;return o.jsxs("section",{className:We.knGroup,"aria-label":ue.creator,children:[o.jsxs("div",{className:We.knGroupHead,children:[o.jsxs("button",{className:We.knGroupToggleBtn,"aria-expanded":dt,onClick:()=>Ne(ue.creator),children:[o.jsx(un.Chevron,{className:K(Xl.knChevron,dt?Xl.knChevronOpen:"")}),o.jsx("span",{className:We.knGroupName,children:ue.creator}),o.jsxs("span",{className:We.knGroupMeta,children:[bs," of ",ue.rows.length," known",ue.used>0&&o.jsxs("span",{className:We.knUsed,children:[ue.used," in project"]})]})]}),zt.length>0&&o.jsx("button",{className:K(We.knTeach,_===`group:${ue.creator}`?We.knTeachDone:""),onClick:()=>oe(zt,H1(zt),`group:${ue.creator}`),title:`Copy a prompt that teaches the ${zt.length} unknown ${ue.creator} plugin${zt.length===1?"":"s"}`,children:_===`group:${ue.creator}`?"Copied":o.jsxs(o.Fragment,{children:[o.jsx(un.Spark,{})," Teach ",zt.length]})})]}),dt&&ue.rows.map(Ae)]},ue.creator)}):P.map(Ae);let Is;e[175]!==z||e[176]!==r||e[177]!==d||e[178]!==F?(Is=z.length>0&&r==="all"&&!d&&!F&&o.jsxs("div",{className:We.knElsewhere,children:["Also known but not installed here: ",z.map(DG).join(", ")]}),e[175]=z,e[176]=r,e[177]=d,e[178]=F,e[179]=Is):Is=e[179];let is;e[180]!==C||e[181]!==n.publish||e[182]!==l||e[183]!==T||e[184]!==$?(is=T&&o.jsx(E6,{row:T,now:l,onClose:()=>$(null),onContribute:ue=>C([ue]),publish:n.publish}),e[180]=C,e[181]=n.publish,e[182]=l,e[183]=T,e[184]=$,e[185]=is):is=e[185];let rs;e[186]!==_?(rs=_&&o.jsx("div",{className:We.toast,role:"status",children:KV(_)}),e[186]=_,e[187]=rs):rs=e[187];let Us;return e[188]!==Re||e[189]!==Ee||e[190]!==os||e[191]!==An||e[192]!==al||e[193]!==Is||e[194]!==is||e[195]!==rs?(Us=o.jsxs("div",{className:Re,children:[Ee,os,An,al,Is,is,rs]}),e[188]=Re,e[189]=Ee,e[190]=os,e[191]=An,e[192]=al,e[193]=Is,e[194]=is,e[195]=rs,e[196]=Us):Us=e[196],Us}function DG(t){return t.name}function zG(t){return t.coverage==="unknown"}function BG(t){return!t}function IG(t){return!t}function UG(t){return t.coverage==="unknown"}function HG(t){return t.coverage==="unknown"}function VG(t,e){return+(e.used>0)-+(t.used>0)||b3(t)-b3(e)||t.label.localeCompare(e.label)}function GG(t){return t.used>0}function FG(){return new Set}function PG(t){const e=fe.c(19),{filter:n,onFilter:s,hasProjectList:l,inProject:a,onInProject:i,grouped:r,onGrouped:c,mine:u,onContribute:d,publishes:m,unknownInProject:f,onTeachProject:h}=t;let g;e[0]===Symbol.for("react.memo_cache_sentinel")?(g=["all","learned","built-in","unknown"],e[0]=g):g=e[0];let y;e[1]!==n||e[2]!==s?(y={contextual:!0,id:"plugins-filter",label:"Filter plugins…",group:"Plugins",description:"coverage learned built-in unknown",children:g.map(N=>({id:`plugins-filter-${N}`,label:N==="all"?"All plugins":tm[N],hint:n===N?"current":void 0,onSelect:()=>s(N)}))},e[1]=n,e[2]=s,e[3]=y):y=e[3],mt(y);const b=a?"Show all installed plugins":"Show only plugins in this project";let p;e[4]!==i||e[5]!==b?(p={contextual:!0,id:"plugins-in-project",label:b,group:"Plugins",onSelect:i},e[4]=i,e[5]=b,e[6]=p):p=e[6],mt(p,l);const v=r?"List plugins":"Group plugins by creator";let _;e[7]!==r||e[8]!==c?(_=()=>c(!r),e[7]=r,e[8]=c,e[9]=_):_=e[9];let x;e[10]!==v||e[11]!==_?(x={contextual:!0,id:"plugins-layout",label:v,group:"Plugins",onSelect:_},e[10]=v,e[11]=_,e[12]=x):x=e[12],mt(x);const k=m?`Publish ${u} to built-in`:`Contribute ${u} plugin${u===1?"":"s"}`;let w;e[13]!==d||e[14]!==k?(w={contextual:!0,id:"plugins-contribute",label:k,group:"Plugins",description:"share learned records",onSelect:d},e[13]=d,e[14]=k,e[15]=w):w=e[15],mt(w,u>0);const R=`Copy the prompt to teach ${f} unknown plugin${f===1?"":"s"} in this project`;let j;return e[16]!==h||e[17]!==R?(j={contextual:!0,id:"plugins-teach-project",label:R,group:"Plugins",description:"learn-plugin",onSelect:h},e[16]=h,e[17]=R,e[18]=j):j=e[18],mt(j,f>0),null}function T6(t){const e=fe.c(51),{record:n,shadows:s,publish:l}=t;let a;e[0]===Symbol.for("react.memo_cache_sentinel")?(a={step:"idle"},e[0]=a):a=e[0];const[i,r]=Q.useState(a),[c,u]=Q.useState(!0);let d;if(e[1]!==n.key){let A;e[3]===Symbol.for("react.memo_cache_sentinel")?(A=/^user::/,e[3]=A):A=e[3],d=n.key.replace(A,""),e[1]=n.key,e[2]=d}else d=e[2];const m=d;let f;e[4]!==l||e[5]!==n||e[6]!==c||e[7]!==s?(f=async()=>{r({step:"busy"});try{const A=await l(n,{removeCopy:c});st({name:"plugin_publish_completed",outcome:"published",removed_copy:A.removedCopy,replaced:!!s}),r({step:"done",result:A})}catch(A){const T=A,S=T instanceof Error?T.message:String(T),$=/refused|not allowed|must|needs/i.test(S);st({name:"plugin_publish_completed",outcome:$?"refused":"failed",removed_copy:!1,replaced:!!s}),r({step:"error",message:S})}},e[4]=l,e[5]=n,e[6]=c,e[7]=s,e[8]=f):f=e[8];const h=f;if(i.step==="done"){let A;e[9]===Symbol.for("react.memo_cache_sentinel")?(A=K(Nn.knPublish,Nn.knPublishDone),e[9]=A):A=e[9];let T;e[10]!==i.result.key?(T=o.jsx("span",{className:"mono",children:i.result.key}),e[10]=i.result.key,e[11]=T):T=e[11];const S=i.result.removedCopy?". Your copy is archived (restorable in LoreKit).":".";let $;e[12]!==T||e[13]!==S?($=o.jsxs("div",{children:["Published as ",T,S]}),e[12]=T,e[13]=S,e[14]=$):$=e[14];let L;e[15]!==i.result.warning?(L=i.result.warning&&o.jsx("div",{className:Nn.knPublishWarn,children:i.result.warning}),e[15]=i.result.warning,e[16]=L):L=e[16];let z;return e[17]!==$||e[18]!==L?(z=o.jsxs("div",{className:A,role:"status",children:[$,L]}),e[17]=$,e[18]=L,e[19]=z):z=e[19],z}if(i.step==="idle"){let A,T;e[20]===Symbol.for("react.memo_cache_sentinel")?(A=K(We.knContribute,Nn.knPublishBtn,"btn btn-block"),T=()=>r({step:"confirm"}),e[20]=A,e[21]=T):(A=e[20],T=e[21]);let S;return e[22]===Symbol.for("react.memo_cache_sentinel")?(S=o.jsxs("button",{className:A,onClick:T,title:"Writes the record to the built-in layer in LoreKit",children:[o.jsx(un.Share,{})," Publish to built-in"]}),e[22]=S):S=e[22],S}let g;e[23]!==m?(g=o.jsx("span",{className:"mono",children:m}),e[23]=m,e[24]=g):g=e[24];const y=s?", replacing the current built-in record":"";let b;e[25]!==g||e[26]!==y?(b=o.jsxs("p",{className:Et.drawerNote,children:["Writes ",g," to the built-in layer for everyone",y,"."]}),e[25]=g,e[26]=y,e[27]=b):b=e[27];const p=i.step==="busy";let v;e[28]===Symbol.for("react.memo_cache_sentinel")?(v=A=>u(A.target.checked),e[28]=v):v=e[28];let _;e[29]!==c||e[30]!==p?(_=o.jsxs("label",{className:Nn.knPublishCheck,children:[o.jsx("input",{type:"checkbox",checked:c,disabled:p,onChange:v}),"Archive my copy afterwards (it would keep overriding the built-in one)"]}),e[29]=c,e[30]=p,e[31]=_):_=e[31];let x;e[32]!==i.message||e[33]!==i.step?(x=i.step==="error"&&o.jsx("div",{className:Nn.knPublishWarn,role:"alert",children:i.message}),e[32]=i.message,e[33]=i.step,e[34]=x):x=e[34];let k;e[35]===Symbol.for("react.memo_cache_sentinel")?(k=K(Nn.knPublishBtn,"btn btn-sm"),e[35]=k):k=e[35];const w=i.step==="busy",R=i.step==="busy"?"Publishing…":i.step==="error"?"Try again":"Publish";let j;e[36]!==h||e[37]!==w||e[38]!==R?(j=o.jsx("button",{className:k,onClick:h,disabled:w,children:R}),e[36]=h,e[37]=w,e[38]=R,e[39]=j):j=e[39];let N;e[40]===Symbol.for("react.memo_cache_sentinel")?(N=()=>r({step:"idle"}),e[40]=N):N=e[40];const E=i.step==="busy";let C;e[41]!==E?(C=o.jsx("button",{className:"btn btn-sm",onClick:N,disabled:E,children:"Cancel"}),e[41]=E,e[42]=C):C=e[42];let O;e[43]!==j||e[44]!==C?(O=o.jsxs("div",{className:Nn.knPublishActions,children:[j,C]}),e[43]=j,e[44]=C,e[45]=O):O=e[45];let M;return e[46]!==x||e[47]!==O||e[48]!==b||e[49]!==_?(M=o.jsxs("div",{className:Nn.knPublish,children:[b,_,x,O]}),e[46]=x,e[47]=O,e[48]=b,e[49]=_,e[50]=M):M=e[50],M}const qG="_knOpen_1a1o8_1",YG="_covBadge_1a1o8_2",XG="_knRecord_1a1o8_7",KG="_knMd_1a1o8_8",QG="_knPrompt_1a1o8_12",ZG="_knTeachDrawer_1a1o8_13",Gi={knOpen:qG,covBadge:YG,knRecord:XG,knMd:KG,knPrompt:QG,knTeachDrawer:ZG},b3=t=>t.coverage==="learned"?0:t.coverage==="built-in"?1:2;function E6(t){const e=fe.c(47),{row:n,now:s,onClose:l,onContribute:a,publish:i}=t,[r,c]=Q.useState(!1),u=f5(),d=n.record;let m,f;e[0]!==l?(m=()=>{const S=$=>{$.key==="Escape"&&($.stopPropagation(),l())};return window.addEventListener("keydown",S,!0),()=>window.removeEventListener("keydown",S,!0)},f=[l],e[0]=l,e[1]=m,e[2]=f):(m=e[1],f=e[2]),Q.useEffect(m,f);let h;e[3]!==n?(h=em(n),e[3]=n,e[4]=h):h=e[4];const g=h;let y;e[5]!==g?(y=async()=>{try{await navigator.clipboard.writeText(g),c(!0),setTimeout(()=>c(!1),2e3)}catch{}},e[5]=g,e[6]=y):y=e[6];const b=y,p=`Plugin ${n.label}`,v=u.style;let _;e[7]!==u.fraction||e[8]!==u.setFraction?(_=o.jsx(m5,{fraction:u.fraction,onCommit:u.setFraction}),e[7]=u.fraction,e[8]=u.setFraction,e[9]=_):_=e[9];let x;e[10]!==n.coverage?(x=o.jsx("i",{className:"kdot","data-coverage":n.coverage}),e[10]=n.coverage,e[11]=x):x=e[11];let k;e[12]!==n.label?(k=o.jsx("span",{children:n.label}),e[12]=n.label,e[13]=k):k=e[13];let w;e[14]!==x||e[15]!==k?(w=o.jsxs("div",{className:Et.drawerTitle,children:[x,k]}),e[14]=x,e[15]=k,e[16]=w):w=e[16];let R;e[17]!==l?(R=o.jsx("button",{className:"icon-btn",onClick:l,"aria-label":"Close",title:"Close (Esc)",children:"✕"}),e[17]=l,e[18]=R):R=e[18];let j;e[19]!==w||e[20]!==R?(j=o.jsxs("div",{className:Et.drawerHead,children:[w,R]}),e[19]=w,e[20]=R,e[21]=j):j=e[21];let N;e[22]===Symbol.for("react.memo_cache_sentinel")?(N=K(Et.resultBadge,Gi.covBadge),e[22]=N):N=e[22];const E=tm[n.coverage];let C;e[23]!==n.coverage||e[24]!==E?(C=o.jsx("div",{className:N,"data-coverage":n.coverage,children:E}),e[23]=n.coverage,e[24]=E,e[25]=C):C=e[25];let O;e[26]!==n.variants?(O=n.variants.length>1&&o.jsxs("p",{className:Et.drawerNote,title:n.variants.map(JG).join(`
|
|
122
|
+
`),children:["Installed as ",n.variants.map(WG).join(", "),", shown as one plugin."]}),e[26]=n.variants,e[27]=O):O=e[27];let M;e[28]!==r||e[29]!==b||e[30]!==g||e[31]!==s||e[32]!==a||e[33]!==i||e[34]!==d||e[35]!==n.shadows?(M=d?o.jsxs(o.Fragment,{children:[o.jsxs("dl",{className:Et.facts,children:[o.jsx("dt",{children:"Category"}),o.jsxs("dd",{children:[d.category,d.style&&o.jsxs("span",{className:"muted",children:[" · ",d.style]})]}),o.jsx("dt",{children:"Preference"}),o.jsxs("dd",{children:[d.preference??"—","/100"]}),o.jsx("dt",{children:"Matches FX"}),o.jsx("dd",{className:"mono",children:d.matches.join(", ")}),o.jsx("dt",{children:"Record"}),o.jsx("dd",{className:"mono",children:d.key}),o.jsx("dt",{children:"Updated"}),o.jsx("dd",{children:Oa(s-d.updatedAt)})]}),o.jsxs("div",{className:K(Et.codeBlock,Et.drawerGrow,Gi.knRecord),children:[o.jsx("div",{className:Et.codeHead,children:o.jsx("span",{children:d.layer==="user"?"Your notes":"What the mixer knows"})}),o.jsx(B9,{className:Gi.knMd,source:d.preview})]}),Ed(d)&&o.jsx("a",{className:K(Gi.knOpen,"btn btn-block"),href:Ed(d),target:"_blank",rel:"noreferrer",children:"Read the full record in LoreKit ↗"}),d.layer==="user"&&d.source&&i&&o.jsx(T6,{record:d,shadows:n.shadows,publish:i},d.key),d.layer==="user"&&d.source&&o.jsxs("button",{className:K(We.knContribute,"btn btn-block"),onClick:()=>a(d),title:"Opens a pull request on GitHub",children:[o.jsx(un.Share,{})," Contribute this record to everyone"]}),n.shadows&&o.jsxs("p",{className:Et.drawerNote,children:["Your record overrides the"," ",Ed(n.shadows)?o.jsx("a",{href:Ed(n.shadows),target:"_blank",rel:"noreferrer",children:"built-in one"}):"built-in one"," ","(",o.jsx("span",{className:"mono",children:n.shadows.key}),")."]})]}):o.jsxs(o.Fragment,{children:[o.jsx("p",{className:Et.drawerNote,children:"The mixer has no record for this plugin, so it falls back to a stock plugin in the same category. Teach it once and it’ll use this one:"}),o.jsxs("div",{className:Et.codeBlock,children:[o.jsx("div",{className:Et.codeHead,children:o.jsx("span",{children:"Prompt"})}),o.jsx("pre",{className:Gi.knPrompt,children:g})]}),o.jsx("button",{className:K(Gi.knTeachDrawer,"btn btn-block",r?We.knTeachDone:""),onClick:b,children:r?"Copied":o.jsxs(o.Fragment,{children:[o.jsx(un.Spark,{})," Teach · copy prompt"]})}),o.jsx("p",{className:Et.drawerHint,children:"Paste into Claude Code. It researches the plugin and probes it on a scratch track."})]}),e[28]=r,e[29]=b,e[30]=g,e[31]=s,e[32]=a,e[33]=i,e[34]=d,e[35]=n.shadows,e[36]=M):M=e[36];let A;e[37]!==C||e[38]!==O||e[39]!==M?(A=o.jsxs("div",{className:Et.drawerBody,children:[C,O,M]}),e[37]=C,e[38]=O,e[39]=M,e[40]=A):A=e[40];let T;return e[41]!==j||e[42]!==A||e[43]!==p||e[44]!==_||e[45]!==u.style?(T=o.jsxs("aside",{className:Et.drawer,"aria-label":p,style:v,children:[_,j,A]}),e[41]=j,e[42]=A,e[43]=p,e[44]=_,e[45]=u.style,e[46]=T):T=e[46],T}function WG(t){return tV(t.name)||t.type}function JG(t){return t.name}const eF=5e3,tF=6,x3=10*6e4,Ar="mcp_bridge.lorekit_token",$6="mcp_bridge.lorekit_publish_token";function xv(t=Ar){try{return localStorage.getItem(t)}catch{return null}}function V1(t,e=Ar){try{t?localStorage.setItem(e,t):localStorage.removeItem(e)}catch{}}function nF(t,e,n){const s=fe.c(36),l=n===void 0?null:n,[a,i]=Q.useState(null),[r,c]=Q.useState(null),[u,d]=Q.useState(null),m=u&&u.token===e?u:null,[f,h]=Q.useState(void 0),[g,y]=Q.useState(0);let b,p;s[0]!==t?(b=()=>{if(!t)return;let z=!1,D,U=0,I=!1;const F=async()=>{if(!document.hidden){const P=!I||U%tF===0;U=U+1;const X=await Pu(`/_/GET/EXTSTATE/MCPBridge/used${P?";GET/EXTSTATE/MCPBridge/installed":""}`);if(X!==null){const Y=jV(Io(X,"used"));!z&&Y&&h(Y);const Z=P?wV(Io(X,"installed")):null;!z&&Z&&(I=!0,i(Z))}}z||(D=setTimeout(F,eF))};return F(),()=>{z=!0,clearTimeout(D)}},p=[t],s[0]=t,s[1]=b,s[2]=p):(b=s[1],p=s[2]),Q.useEffect(b,p);const v=t&&a!==null;let _;s[3]!==v?(_=()=>{if(!v)return;const z=new AbortController,D=()=>_3("https://pqokxlhvnosogizsjztg.supabase.co/functions/v1","lk_ro_9YKX9WXJXZYKDQeRrG3bRt9XxYDn77Rj","built-in",z.signal).then(I=>c({records:I}),I=>{z.signal.aborted||(st({name:"knowledge_load_failed",layer:"built-in"}),c(F=>({records:F?.records??[],error:S3(I)})))});D();const U=setInterval(D,x3);return()=>{z.abort(),clearInterval(U)}},s[3]=v,s[4]=_):_=s[4];let x;s[5]!==v||s[6]!==g?(x=[v,g],s[5]=v,s[6]=g,s[7]=x):x=s[7],Q.useEffect(_,x);let k;s[8]!==v||s[9]!==e?(k=()=>{if(!v||!e)return;const z=new AbortController,D=()=>_3("https://pqokxlhvnosogizsjztg.supabase.co/functions/v1",e,"user",z.signal).then(I=>d({token:e,records:I}),I=>{z.signal.aborted||(st({name:"knowledge_load_failed",layer:"user"}),d({token:e,records:[],error:S3(I)}))});D();const U=setInterval(D,x3);return()=>{z.abort(),clearInterval(U)}},s[8]=v,s[9]=e,s[10]=k):k=s[10];let w;if(s[11]!==v||s[12]!==g||s[13]!==e?(w=[v,e,g],s[11]=v,s[12]=g,s[13]=e,s[14]=w):w=s[14],Q.useEffect(k,w),!v||!a)return;const R=!a.supported&&"This REAPER can’t list its installed plugins (needs REAPER 6.37 or newer).",j=r?.error&&`Built-in records couldn’t be loaded: ${r.error}.`,N=m?.error&&`Your records couldn’t be loaded: ${m.error}.`;let E;s[15]!==R||s[16]!==j||s[17]!==N?(E=[R,j,N].filter(Boolean),s[15]=R,s[16]=j,s[17]=N,s[18]=E):E=s[18];const C=E;let O;s[19]!==r?.records?(O=r?.records??[],s[19]=r?.records,s[20]=O):O=s[20];let M;s[21]!==m?.records?(M=m?.records??[],s[21]=m?.records,s[22]=M):M=s[22];let A;s[23]!==O||s[24]!==M?(A=[...O,...M],s[23]=O,s[24]=M,s[25]=A):A=s[25];const T=e?m?.error?"error":"on":"off",S=C.length?C.join(" "):void 0;let $;s[26]!==l?($=l?async(z,D)=>{const U=await SV("https://pqokxlhvnosogizsjztg.supabase.co/functions/v1",l,z,D);return y(sF),U}:void 0,s[26]=l,s[27]=$):$=s[27];let L;return s[28]!==a.fx||s[29]!==a.supported||s[30]!==A||s[31]!==T||s[32]!==S||s[33]!==$||s[34]!==f?(L={installed:a.fx,records:A,installedSupported:a.supported,userLayer:T,problem:S,used:f,publish:$},s[28]=a.fx,s[29]=a.supported,s[30]=A,s[31]=T,s[32]=S,s[33]=$,s[34]=f,s[35]=L):L=s[35],L}function sF(t){return t+1}const S3=t=>(t instanceof Error?t.message:String(t)).replace(/\.$/,""),lF=()=>"/_/GET/EXTSTATE/MCPBridge/lorekit_tokens",aF=t=>[...new TextEncoder().encode(t)].map(e=>e.toString(16).padStart(2,"0")).join("");function oF(t,e,n){return`/_/SET/EXTSTATE/MCPBridge/tokens_req/${t}-${e}-${aF(n??"")}`}function iF(t){const e=Io(t,"lorekit_tokens");return!e||typeof e!="object"?null:{read:typeof e.read=="string"&&e.read?e.read:null,writable:e.writable===!0}}const k3=(t,e)=>{Pu(oF(String(Date.now()),t,e))};function rF(t,e){const n=fe.c(13),[s,l]=Q.useState(uF),[a,i]=Q.useState(cF),[r,c]=Q.useState(!1);let u,d;n[0]!==e||n[1]!==t?(u=()=>{if(!t||!e)return;let b=!1;return Pu(lF()).then(p=>{const v=p===null?null:iF(p);if(b||!v?.writable)return;const _=v.read??xv(Ar);l(_),V1(_,Ar),_!==v.read&&k3(e,_),c(!0)}),()=>{b=!0}},d=[t,e],n[0]=e,n[1]=t,n[2]=u,n[3]=d):(u=n[2],d=n[3]),Q.useEffect(u,d);let m;n[4]!==e||n[5]!==r?(m=b=>{V1(b,Ar),l(b),r&&e&&k3(e,b)},n[4]=e,n[5]=r,n[6]=m):m=n[6];const f=m;let h;n[7]===Symbol.for("react.memo_cache_sentinel")?(h=b=>{V1(b,$6),i(b)},n[7]=h):h=n[7];const g=h;let y;return n[8]!==a||n[9]!==s||n[10]!==f||n[11]!==r?(y={read:s,publish:a,setRead:f,setPublish:g,shared:r},n[8]=a,n[9]=s,n[10]=f,n[11]=r,n[12]=y):y=n[12],y}function cF(){return xv($6)}function uF(){return xv(Ar)}const dF=Object.assign(OG,{Details:E6,TeachMenu:j6,PublishRecord:T6,PublishAll:w6}),fF="_selectionBar_1etfg_2",mF="_selectionNote_1etfg_10",hF="_log_1etfg_11",pF="_toolbar_1etfg_21",vF="_search_1etfg_27",gF="_actions_1etfg_40",_F="_logMore_1etfg_41",yF="_pausedBanner_1etfg_45",bF="_logMenu_1etfg_57",xF="_folds_1etfg_65",cl={selectionBar:fF,selectionNote:mF,log:hF,toolbar:pF,search:vF,actions:gF,logMore:_F,pausedBanner:yF,logMenu:bF,folds:xF},R6="mcp-bridge-view",B0=[{key:"calls",label:"Calls"},{key:"tools",label:"Tools"},{key:"sessions",label:"Sessions"},{key:"plugins",label:"Plugins"},{key:"snapshots",label:"Snapshots"}],C6=t=>B0.some(e=>e.key===t),SF=t=>t==="all"||t==="errors",kF=t=>t===null||typeof t=="object"&&typeof t.start=="number"&&typeof t.end=="number";function wF(){const t=fa(R6);return C6(t)?t:"calls"}function jF(t){const e=fe.c(270),{log:n,selection:s,rangeKey:l,onRange:a,oldestKept:i,onClearSelection:r,sessions:c,knowledge:u,snapshots:d,view:m,onView:f,paused:h,onTogglePause:g,onClear:y,now:b,onOpenSettings:p}=t;let v;e[0]===Symbol.for("react.memo_cache_sentinel")?(v={validate:SF},e[0]=v):v=e[0];const[_,x]=bl("filter","all",v);let k;e[1]===Symbol.for("react.memo_cache_sentinel")?(k={validate:TN,navigationMode:"replace",debounceMs:300},e[1]=k):k=e[1];const[w,R]=bl("q","",k);let j;e[2]===Symbol.for("react.memo_cache_sentinel")?(j={validate:n5},e[2]=j):j=e[2];const[N,E]=bl("agent",null,j);let C;e[3]===Symbol.for("react.memo_cache_sentinel")?(C={validate:EN},e[3]=C):C=e[3];const[O,M]=bl("entry",null,C);let A;e[4]!==n||e[5]!==O?(A=O===null?null:n.find(ge=>ge.n===O)??null,e[4]=n,e[5]=O,e[6]=A):A=e[6];const T=A;let S;e[7]!==M?(S=(ge,Be)=>M(ge?ge.n:null,Be),e[7]=M,e[8]=S):S=e[8];const $=S,[L,z]=Q.useState(!1),D=Q.useRef(null);let U;e[9]===Symbol.for("react.memo_cache_sentinel")?(U=new Map,e[9]=U):U=e[9];const I=Q.useRef(U);let F;e[10]!==f||e[11]!==w||e[12]!==R||e[13]!==$||e[14]!==m?(F=(ge,Be)=>{ge!==m&&(I.current.set(m,w),R(Be??I.current.get(ge)??"")),f(ge),ge!=="calls"&&$(null)},e[10]=f,e[11]=w,e[12]=R,e[13]=$,e[14]=m,e[15]=F):F=e[15];const P=F;let X;if(e[16]!==n||e[17]!==c){const ge=new Set([...c.values()].filter(R5).map(TF));for(const Pa of n)Pa.s&&ge.add(Pa.s);let Be;e[19]!==c?(Be=Pa=>c.get(Pa)?.first??1/0,e[19]=c,e[20]=Be):Be=e[20];const Ln=Be;let Bl;e[21]!==Ln?(Bl=(Pa,Om)=>Ln(Pa)-Ln(Om),e[21]=Ln,e[22]=Bl):Bl=e[22],X=[...ge].sort(Bl),e[16]=n,e[17]=c,e[18]=X}else X=e[18];const Y=X,Z=Y.length>1;let V;e[23]!==c?(V=ge=>c.get(ge)??{id:ge,first:0,last:0,commands:0,errors:0},e[23]=c,e[24]=V):V=e[24];const H=V;let W;e[25]!==l?(W=l?S5(l):null,e[25]=l,e[26]=W):W=e[26];const J=W,ce=J?b-J.ms:null;let ee;e[27]!==n||e[28]!==ce?(ee=ce===null?n:n.filter(ge=>ge.t>=ce),e[27]=n,e[28]=ce,e[29]=ee):ee=e[29];const he=ee;let pe;e[30]!==N||e[31]!==he?(pe=N?he.filter(ge=>ge.s===N):he,e[30]=N,e[31]=he,e[32]=pe):pe=e[32];const G=pe;let ae;e[33]!==G?(ae=G.filter(NF),e[33]=G,e[34]=ae):ae=e[34];const oe=ae.length;let ye;if(e[35]!==_||e[36]!==n||e[37]!==w||e[38]!==N){const ge=af(w);ye=n.filter(Be=>(!N||Be.s===N)&&(_==="all"||za(Be)==="error")&&m6(Be,ge)),e[35]=_,e[36]=n,e[37]=w,e[38]=N,e[39]=ye}else ye=e[39];const _e=ye;let ne;e[40]!==_e||e[41]!==ce?(ne=ce===null?_e:_e.filter(ge=>ge.t>=ce),e[40]=_e,e[41]=ce,e[42]=ne):ne=e[42];const te=ne,ie=_e.length-te.length;let de;e:{const ge=_e[te.length];if(!J||!ge){de=null;break e}let Be;e[43]!==ge||e[44]!==b||e[45]!==J?(Be=Mo.find(Ln=>Ln.ms>J.ms&&ge.t>=b-Ln.ms)??Mo[Mo.length-1],e[43]=ge,e[44]=b,e[45]=J,e[46]=Be):Be=e[46],de=Be}const xe=de;let Ne;e[47]!==r||e[48]!==s||e[49]!==m?(Ne=()=>!s||m==="plugins"||m==="snapshots"?!1:(st({name:"timeline_span_selected",selected:!1}),r(),!0),e[47]=r,e[48]=s,e[49]=m,e[50]=Ne):Ne=e[50];const Te=Ne;let Ae;e[51]!==Te||e[52]!==te||e[53]!==T||e[54]!==R||e[55]!==$?(Ae=ge=>{if(!(ge.target instanceof Element&&ge.target.closest('[role="dialog"]'))){if(ge.key==="Escape")T?$(null):Te()||(R(""),D.current?.blur());else if((ge.key==="ArrowDown"||ge.key==="ArrowUp")&&T){ge.preventDefault();const Be=te.findIndex(Bl=>Bl.n===T.n),Ln=te[Be+(ge.key==="ArrowDown"?1:-1)];Ln&&$(Ln,"replace")}}},e[51]=Te,e[52]=te,e[53]=T,e[54]=R,e[55]=$,e[56]=Ae):Ae=e[56];const Re=Q.useEffectEvent(Ae);let Le;e[57]!==Re?(Le=()=>{const ge=Be=>Re(Be);return window.addEventListener("keydown",ge),()=>window.removeEventListener("keydown",ge)},e[57]=Re,e[58]=Le):Le=e[58];let De;e[59]===Symbol.for("react.memo_cache_sentinel")?(De=[],e[59]=De):De=e[59],Q.useEffect(Le,De);let we;e[60]!==T?.n||e[61]!==$?(we=ge=>{const Be=T?.n===ge.n;Be||st({name:"log_entry_opened",ok:ge.ok,view:Ms(ge)?.kind??"none"}),$(Be?null:ge,"push")},e[60]=T?.n,e[61]=$,e[62]=we):we=e[62];const Ce=we;let Oe;e[63]!==b?(Oe=new Date(b).setHours(0,0,0,0),e[63]=b,e[64]=Oe):Oe=e[64];const Xe=Oe;let re;e[65]!==_||e[66]!==x?(re=ge=>{ge!==_&&st({name:"log_filtered",filter:ge}),x(ge)},e[65]=_,e[66]=x,e[67]=re):re=e[67];const Ee=re;let it;e[68]!==w||e[69]!==R||e[70]!==m?(it=ge=>{!w.trim()&&ge.trim()&&st({name:"log_searched",view:m}),R(ge)},e[68]=w,e[69]=R,e[70]=m,e[71]=it):it=e[71];const lt=it;let ht;e[72]!==te||e[73]!==H?(ht=async()=>{st({name:"log_copied",what:"rows"});const ge=te.map(Be=>`${new Date(Be.t).toISOString()} #${Be.n} ${oU[za(Be)]} ${Be.c} ${Be.ms}ms${Be.s?` [${Cs(H(Be.s))}]`:""}${Be.e?` ${Be.e}`:""}`).join(`
|
|
123
|
+
`);try{await navigator.clipboard.writeText(ge),z(!0),setTimeout(()=>z(!1),1200)}catch{}},e[72]=te,e[73]=H,e[74]=ht):ht=e[74];const qe=ht;let _t;e[75]!==y||e[76]!==$?(_t=()=>{st({name:"log_cleared"}),$(null),y()},e[75]=y,e[76]=$,e[77]=_t):_t=e[77];const Qe=_t;let et;e[78]!==N||e[79]!==E?(et=ge=>{ge!==null&&N!==ge&&st({name:"session_filtered"}),E(ge)},e[78]=N,e[79]=E,e[80]=et):et=e[80];const Ie=et;let wt;e[81]!==u||e[82]!==d?(wt=B0.filter(ge=>(ge.key!=="plugins"||u)&&(ge.key!=="snapshots"||d)),e[81]=u,e[82]=d,e[83]=wt):wt=e[83];const yt=wt,at=Z&&(m==="calls"||m==="tools");let Rt;e[84]!==te||e[85]!==T||e[86]!==$?(Rt=ge=>{const Be=T?te.findIndex(Bl=>Bl.n===T.n):-1,Ln=te[T?Be+ge:ge===1?0:te.length-1];Ln&&$(Ln,T?"replace":"push")},e[84]=te,e[85]=T,e[86]=$,e[87]=Rt):Rt=e[87];const Lt=Rt;let jt;e[88]!==Z||e[89]!==Y||e[90]!==H?(jt=Z?Y.map(ge=>({id:ge,name:Cs(H(ge))})):[],e[88]=Z,e[89]=Y,e[90]=H,e[91]=jt):jt=e[91];const Pt=jt;let bt;e[92]!==P||e[93]!==x||e[94]!==E?(bt=ge=>{ge.session!==void 0&&E(ge.session),x(ge.errors?"errors":"all"),P("calls",ge.tool)},e[92]=P,e[93]=x,e[94]=E,e[95]=bt):bt=e[95];const Nt=bt;let en;e[96]!==P?(en=ge=>P(ge),e[96]=P,e[97]=en):en=e[97];let qt;e[98]===Symbol.for("react.memo_cache_sentinel")?(qt=()=>D.current?.focus(),e[98]=qt):qt=e[98];const rt=_==="errors";let dn;e[99]!==Ee||e[100]!==_?(dn=()=>Ee(_==="errors"?"all":"errors"),e[99]=Ee,e[100]=_,e[101]=dn):dn=e[101];const Wn=te.length>0;let Jn;e[102]!==qe?(Jn=()=>void qe(),e[102]=qe,e[103]=Jn):Jn=e[103];const sl=n.length>0,Ds=T!==null;let es;e[104]!==$?(es=()=>$(null),e[104]=$,e[105]=es):es=e[105];const sn=s!==null;let yn;e[106]!==Te?(yn=()=>Te(),e[106]=Te,e[107]=yn):yn=e[107];let Vn;e[108]!==Pt||e[109]!==Ie||e[110]!==Qe||e[111]!==g||e[112]!==h||e[113]!==N||e[114]!==yt||e[115]!==Lt||e[116]!==en||e[117]!==rt||e[118]!==dn||e[119]!==Wn||e[120]!==Jn||e[121]!==sl||e[122]!==Ds||e[123]!==es||e[124]!==sn||e[125]!==yn||e[126]!==m?(Vn=o.jsx(eV,{views:yt,view:m,onView:en,onFocusSearch:qt,errorsOnly:rt,onToggleErrors:dn,paused:h,onTogglePause:g,canCopy:Wn,onCopy:Jn,canClear:sl,onClear:Qe,detailsOpen:Ds,onStep:Lt,onCloseDetails:es,hasSpan:sn,onClearSpan:yn,agents:Pt,agentFilter:N,onAgent:Ie}),e[108]=Pt,e[109]=Ie,e[110]=Qe,e[111]=g,e[112]=h,e[113]=N,e[114]=yt,e[115]=Lt,e[116]=en,e[117]=rt,e[118]=dn,e[119]=Wn,e[120]=Jn,e[121]=sl,e[122]=Ds,e[123]=es,e[124]=sn,e[125]=yn,e[126]=m,e[127]=Vn):Vn=e[127];let ts;e[128]!==m?(ts=B0.find(ge=>ge.key===m)?.label,e[128]=m,e[129]=ts):ts=e[129];const ll=m==="calls"&&_==="errors"?"Errors":null;let zs;e[130]!==at||e[131]!==N||e[132]!==H?(zs=at&&N?Cs(H(N)):null,e[130]=at,e[131]=N,e[132]=H,e[133]=zs):zs=e[133];const ma=m==="calls"&&h?"Paused":null;let Bs;e[134]!==ts||e[135]!==ll||e[136]!==zs||e[137]!==ma?(Bs=[ts,ll,zs,ma].filter(Boolean),e[134]=ts,e[135]=ll,e[136]=zs,e[137]=ma,e[138]=Bs):Bs=e[138];const ys=Bs.join(" · ");let ns;if(e[139]!==P||e[140]!==yt||e[141]!==m){let ge;e[143]!==P||e[144]!==m?(ge=Be=>({key:Be.key,label:Be.label,selected:m===Be.key,onPick:()=>P(Be.key)}),e[143]=P,e[144]=m,e[145]=ge):ge=e[145],ns=yt.map(ge),e[139]=P,e[140]=yt,e[141]=m,e[142]=ns}else ns=e[142];let ss;e[146]!==ns?(ss={label:"View",items:ns},e[146]=ns,e[147]=ss):ss=e[147];let ls;e[148]!==Ee||e[149]!==oe||e[150]!==_||e[151]!==G.length||e[152]!==m?(ls={label:"Show",items:m==="calls"?[{key:"all",label:o.jsxs(o.Fragment,{children:["All ",o.jsx("span",{className:"count",children:G.length})]}),selected:_==="all",onPick:()=>Ee("all")},{key:"errors",label:o.jsxs(o.Fragment,{children:["Errors ",o.jsx("span",{className:K("count",oe?"count-bad":""),children:oe})]}),selected:_==="errors",onPick:()=>Ee("errors")}]:[]},e[148]=Ee,e[149]=oe,e[150]=_,e[151]=G.length,e[152]=m,e[153]=ls):ls=e[153];let as;e[154]!==at||e[155]!==Ie||e[156]!==b||e[157]!==N||e[158]!==Y||e[159]!==H||e[160]!==he?(as={label:"Agent",items:at?[{key:"",label:"All agents",selected:N===null,onPick:()=>Ie(null)},...Y.map(ge=>({key:ge,label:o.jsxs(o.Fragment,{children:[o.jsx("i",{className:`sdot hue-${Ni(ge)} ${Er(H(ge),b)?"":"sdot-off"}`}),Cs(H(ge)),o.jsx("span",{className:"count",children:he.filter(Be=>Be.s===ge).length})]}),selected:N===ge,onPick:()=>Ie(ge)}))]:[]},e[154]=at,e[155]=Ie,e[156]=b,e[157]=N,e[158]=Y,e[159]=H,e[160]=he,e[161]=as):as=e[161];let os;e[162]!==Qe||e[163]!==qe||e[164]!==n.length||e[165]!==g||e[166]!==h||e[167]!==te.length||e[168]!==m?(os={label:"Actions",items:m==="calls"?[{key:"pause",label:h?"Resume":"Pause",hint:h?void 0:"Freeze the log to read it",onPick:g},{key:"copy",label:"Copy visible rows",disabled:te.length===0,onPick:()=>void qe()},{key:"clear",label:"Clear",hint:"The bridge keeps its history",disabled:n.length===0,onPick:Qe}]:[]},e[162]=Qe,e[163]=qe,e[164]=n.length,e[165]=g,e[166]=h,e[167]=te.length,e[168]=m,e[169]=os):os=e[169];let An;e[170]!==ss||e[171]!==ls||e[172]!==as||e[173]!==os?(An=[ss,ls,as,os],e[170]=ss,e[171]=ls,e[172]=as,e[173]=os,e[174]=An):An=e[174];let al;e[175]!==ys||e[176]!==An?(al=o.jsx(h5.Grouped,{className:cl.logMenu,label:"View, filters and actions",triggerLabel:ys,groups:An}),e[175]=ys,e[176]=An,e[177]=al):al=e[177];let Is;e[178]===Symbol.for("react.memo_cache_sentinel")?(Is=K(Dt.seg,cl.folds),e[178]=Is):Is=e[178];let is;if(e[179]!==P||e[180]!==yt||e[181]!==m){let ge;e[183]!==P||e[184]!==m?(ge=Be=>o.jsx("button",{role:"tab","aria-selected":m===Be.key,onClick:()=>P(Be.key),children:Be.label},Be.key),e[183]=P,e[184]=m,e[185]=ge):ge=e[185],is=yt.map(ge),e[179]=P,e[180]=yt,e[181]=m,e[182]=is}else is=e[182];let rs;e[186]!==is?(rs=o.jsx("div",{className:Is,role:"tablist","aria-label":"View",children:is}),e[186]=is,e[187]=rs):rs=e[187];let Us;e[188]!==Ee||e[189]!==oe||e[190]!==_||e[191]!==G.length||e[192]!==m?(Us=m==="calls"&&o.jsxs("div",{className:K(Dt.seg,cl.folds),role:"tablist","aria-label":"Result",children:[o.jsxs("button",{role:"tab","aria-selected":_==="all",onClick:()=>Ee("all"),children:["All ",o.jsx("span",{className:"count",children:G.length})]}),o.jsxs("button",{role:"tab","aria-selected":_==="errors",onClick:()=>Ee("errors"),children:["Errors ",o.jsx("span",{className:K("count",oe?"count-bad":""),children:oe})]})]}),e[188]=Ee,e[189]=oe,e[190]=_,e[191]=G.length,e[192]=m,e[193]=Us):Us=e[193];let ue;e[194]!==w||e[195]!==lt||e[196]!==m?(ue=m!=="sessions"&&o.jsxs("label",{className:cl.search,children:[o.jsx(un.Search,{}),o.jsx("input",{ref:D,value:w,onChange:ge=>lt(ge.target.value),placeholder:m==="tools"?"Filter tools":m==="plugins"?"Filter plugins or categories":m==="snapshots"?"Filter snapshots":"Filter commands or errors",spellCheck:!1}),!w&&o.jsx("kbd",{children:"/"})]}),e[194]=w,e[195]=lt,e[196]=m,e[197]=ue):ue=e[197];let dt;e[198]!==Qe||e[199]!==L||e[200]!==qe||e[201]!==n.length||e[202]!==g||e[203]!==h||e[204]!==te.length||e[205]!==m?(dt=m==="calls"&&o.jsxs("div",{className:cl.actions,children:[o.jsx("button",{className:K("btn",h?"btn-on":""),onClick:g,title:"Freeze the log to read it",children:h?"Resume":"Pause"}),o.jsx("button",{className:"btn",onClick:qe,disabled:te.length===0,title:"Copy visible rows",children:L?"Copied":"Copy"}),o.jsx("button",{className:"btn",onClick:Qe,disabled:n.length===0,title:"Clear the log and the chart in this window (the bridge keeps its history and the counters)",children:"Clear"})]}),e[198]=Qe,e[199]=L,e[200]=qe,e[201]=n.length,e[202]=g,e[203]=h,e[204]=te.length,e[205]=m,e[206]=dt):dt=e[206];let zt;e[207]!==al||e[208]!==rs||e[209]!==Us||e[210]!==ue||e[211]!==dt?(zt=o.jsxs("div",{className:cl.toolbar,children:[al,rs,Us,ue,dt]}),e[207]=al,e[208]=rs,e[209]=Us,e[210]=ue,e[211]=dt,e[212]=zt):zt=e[212];let bs;e[213]!==n.length||e[214]!==i||e[215]!==r||e[216]!==s||e[217]!==m?(bs=s&&m!=="plugins"&&m!=="snapshots"&&o.jsxs("div",{className:cl.selectionBar,role:"status",children:[o.jsxs("span",{children:["Showing ",o.jsx("b",{children:n.length.toLocaleString()})," command",n.length===1?"":"s"," from"," ",o.jsx("span",{className:"mono",children:QE(s)}),(i===null||s.start<i)&&o.jsxs("span",{className:cl.selectionNote,children:[" · the log keeps the latest ",Tm.toLocaleString(),"; older commands are only counted in the chart"]})]}),o.jsx("button",{className:"btn",onClick:r,title:"Clear selection (Esc)",children:"Clear selection"})]}),e[213]=n.length,e[214]=i,e[215]=r,e[216]=s,e[217]=m,e[218]=bs):bs=e[218];let Va;e[219]!==at||e[220]!==Ie||e[221]!==b||e[222]!==N||e[223]!==Y||e[224]!==H||e[225]!==he?(Va=at&&o.jsx(QH,{className:cl.folds,ids:Y,sessionOf:H,countOf:ge=>he.filter(Be=>Be.s===ge).length,selected:N,now:b,onPick:Ie}),e[219]=at,e[220]=Ie,e[221]=b,e[222]=N,e[223]=Y,e[224]=H,e[225]=he,e[226]=Va):Va=e[226];let Ga;e[227]!==_||e[228]!==u||e[229]!==n||e[230]!==Z||e[231]!==b||e[232]!==ie||e[233]!==p||e[234]!==a||e[235]!==w||e[236]!==J||e[237]!==te||e[238]!==G||e[239]!==Ce||e[240]!==T?.n||e[241]!==N||e[242]!==Y||e[243]!==H||e[244]!==Nt||e[245]!==d||e[246]!==Xe||e[247]!==m||e[248]!==xe?(Ga=m==="plugins"&&u?o.jsx(dF,{feed:u,query:w,now:b,onOpenSettings:p}):m==="snapshots"&&d?o.jsx(EI,{feed:d.feed,request:d.request,blocked:d.blocked,query:w,now:b,onSend:d.send}):m==="tools"?o.jsx(x6,{log:G,query:w,now:b,onPick:(ge,Be)=>{st({name:"tool_picked",errors_only:Be}),Nt({tool:ge,errors:Be})}}):m==="sessions"?o.jsx(y6,{ids:Y,sessionOf:H,log:n,now:b,onPick:ge=>{st({name:"session_picked"}),Nt({session:ge,tool:""})}}):o.jsxs("div",{className:Dt.rows,role:"log","aria-live":"off",children:[te.length===0?o.jsx("div",{className:Dt.empty,children:n.length===0?"No commands yet. New ones show up here as your agent sends them.":ie>0&&J?`Nothing in the ${J.label.toLowerCase()}.`:_==="errors"&&!w?"No errors. Nice.":"Nothing matches that filter."}):o.jsx(_6,{rows:te,today:Xe,selectedN:T?.n,sessionOf:Z&&!N?H:null,onSelect:Ce}),xe&&o.jsxs("div",{className:cl.logMore,children:[o.jsxs("span",{children:[ie.toLocaleString()," older ",ie===1?"command":"commands"]}),o.jsxs("button",{className:"btn btn-sm",onClick:()=>a(xe.key),children:["Show ",xe.label.toLowerCase()]})]})]}),e[227]=_,e[228]=u,e[229]=n,e[230]=Z,e[231]=b,e[232]=ie,e[233]=p,e[234]=a,e[235]=w,e[236]=J,e[237]=te,e[238]=G,e[239]=Ce,e[240]=T?.n,e[241]=N,e[242]=Y,e[243]=H,e[244]=Nt,e[245]=d,e[246]=Xe,e[247]=m,e[248]=xe,e[249]=Ga):Ga=e[249];let Fa;e[250]!==h||e[251]!==m?(Fa=h&&m==="calls"&&o.jsx("div",{className:cl.pausedBanner,children:"Paused · new commands are still counted, the log is frozen"}),e[250]=h,e[251]=m,e[252]=Fa):Fa=e[252];let wl;e[253]!==n||e[254]!==b||e[255]!==w||e[256]!==T||e[257]!==H||e[258]!==R||e[259]!==$||e[260]!==m?(wl=T&&o.jsx(g6,{entry:T,session:T.s?H(T.s):null,now:b,filtered:w.trim()===T.c,onFilter:()=>{const ge=w.trim()===T.c;!ge&&!w.trim()&&st({name:"log_searched",view:m}),R(ge?"":T.c,"push")},onAddTerm:ge=>{w.trim()||st({name:"log_searched",view:m}),R(Be=>af(Be).some(Ln=>JSON.stringify(Ln)===JSON.stringify(af(ge)[0]))?Be:`${Be.trim()} ${ge}`.trim(),"push")},onClose:()=>$(null),history:uE(n,T),onPick:ge=>$(ge,"push")}),e[253]=n,e[254]=b,e[255]=w,e[256]=T,e[257]=H,e[258]=R,e[259]=$,e[260]=m,e[261]=wl):wl=e[261];let Oi;return e[262]!==Vn||e[263]!==zt||e[264]!==bs||e[265]!==Va||e[266]!==Ga||e[267]!==Fa||e[268]!==wl?(Oi=o.jsxs("section",{className:cl.log,children:[Vn,zt,bs,Va,Ga,Fa,wl]}),e[262]=Vn,e[263]=zt,e[264]=bs,e[265]=Va,e[266]=Ga,e[267]=Fa,e[268]=wl,e[269]=Oi):Oi=e[269],Oi}function NF(t){return za(t)==="error"}function TF(t){return t.id}const EF=Object.assign(jF,{Rows:_6,Details:g6,Tools:x6,Sessions:y6}),$F="_settingGroup_sllb8_1",RF="_installRow_sllb8_8",CF="_installText_sllb8_9",MF="_installDone_sllb8_11",AF="_rowLabel_sllb8_14",LF="_rowHint_sllb8_15",Yn={settingGroup:$F,installRow:RF,installText:CF,installDone:MF,rowLabel:AF,rowHint:LF},OF="_settingHint_xy6ka_1",DF="_loreSteps_xy6ka_2",zF="_loreOpen_xy6ka_4",BF="_loreForm_xy6ka_7",IF="_loreInput_xy6ka_8",UF="_loreConnected_xy6ka_14",HF="_settingLink_xy6ka_16",Ys={settingHint:OF,loreSteps:DF,loreOpen:zF,loreForm:BF,loreInput:IF,loreConnected:UF,settingLink:HF},VF="https://www.lorekit.io/settings/api-keys";function M6(t){const e=fe.c(15),{token:n,onChange:s,shared:l}=t,a=l===void 0?!1:l,[i,r]=Q.useState("");let c,u;e[0]!==i?(u=i.trim(),c=u!==""&&!/^lk_ro_[A-Za-z0-9]+$/.test(u),e[0]=i,e[1]=c,e[2]=u):(c=e[1],u=e[2]);const d=c,m=a?"in ~/.config/reaper-mcp/lorekit.json, the same for every way of opening this page":"in this browser";let f;e[3]===Symbol.for("react.memo_cache_sentinel")?(f=o.jsx("h3",{children:"Your plugin knowledge"}),e[3]=f):f=e[3];let h;e[4]!==i||e[5]!==d||e[6]!==s||e[7]!==n||e[8]!==u?(h=n?o.jsxs("div",{className:Ys.loreConnected,children:[o.jsxs("span",{children:[o.jsx("i",{className:"kdot","data-coverage":"learned"})," LoreKit connected ",o.jsxs("span",{className:"mono muted",children:[n.slice(0,10),"…"]})]}),o.jsx("button",{className:"btn btn-sm",onClick:()=>s(null),children:"Disconnect"})]}):o.jsxs(o.Fragment,{children:[o.jsxs("ol",{className:Ys.loreSteps,children:[o.jsxs("li",{children:[o.jsx("a",{className:K(Ys.loreOpen,"btn btn-sm"),href:VF,target:"_blank",rel:"noreferrer",children:"Open LoreKit API keys ↗"}),o.jsx("span",{children:"Sign in or create a free account"})]}),o.jsxs("li",{children:["Create a key with ",o.jsx("b",{children:"read-only"})," access and copy it (it starts with ",o.jsx("span",{className:"mono",children:"lk_ro_"}),")"]}),o.jsx("li",{children:"Paste it here and connect"})]}),o.jsxs("form",{className:Ys.loreForm,onSubmit:p=>{p.preventDefault(),u&&!d&&(s(u),r(""))},children:[o.jsx("input",{className:K(Ys.loreInput,"mono"),type:"password",autoComplete:"off",spellCheck:!1,placeholder:"lk_ro_…",value:i,onChange:p=>r(p.target.value),"aria-label":"LoreKit read-only token","aria-invalid":d}),o.jsx("button",{className:"btn btn-sm",type:"submit",disabled:!u||d,children:"Connect"})]})]}),e[4]=i,e[5]=d,e[6]=s,e[7]=n,e[8]=u,e[9]=h):h=e[9];const g=d?"That isn’t a read-only token. Use one that starts with lk_ro_ here; a write token only goes under Publish to built-in.":n?`The Plugins tab includes the plugins you taught the mixer. The token is kept ${m} and is only sent to LoreKit.`:`The Plugins tab always shows the built-in records. Your token adds the plugins you taught the mixer; it is kept ${m} and is only sent to LoreKit.`;let y;e[10]!==g?(y=o.jsx("p",{className:Ys.settingHint,children:g}),e[10]=g,e[11]=y):y=e[11];let b;return e[12]!==h||e[13]!==y?(b=o.jsxs("div",{className:Yn.settingGroup,children:[f,h,y]}),e[12]=h,e[13]=y,e[14]=b):b=e[14],b}const GF=`${ji}/issues/new?template=contributor-request.yml`;function A6(t){const e=fe.c(18),{token:n,readToken:s,onChange:l}=t,[a,i]=Q.useState("");let r,c;e[0]!==a?(c=a.trim(),r=c!==""&&!/^lk_rw_[A-Za-z0-9]+$/.test(c),e[0]=a,e[1]=r,e[2]=c):(r=e[1],c=e[2]);const u=r;let d;e[3]===Symbol.for("react.memo_cache_sentinel")?(d=o.jsx("h3",{children:"Publish to built-in"}),e[3]=d):d=e[3];let m;e[4]!==a||e[5]!==u||e[6]!==l||e[7]!==n||e[8]!==c?(m=n?o.jsxs("div",{className:Ys.loreConnected,children:[o.jsxs("span",{children:[o.jsx("i",{className:"kdot","data-coverage":"built-in"})," Publishing enabled ",o.jsxs("span",{className:"mono muted",children:[n.slice(0,10),"…"]})]}),o.jsx("button",{className:"btn btn-sm",onClick:()=>l(null),children:"Remove"})]}):o.jsxs("form",{className:Ys.loreForm,onSubmit:b=>{b.preventDefault(),c&&!u&&(l(c),i(""))},children:[o.jsx("input",{className:K(Ys.loreInput,"mono"),type:"password",autoComplete:"off",spellCheck:!1,placeholder:"lk_rw_…",value:a,onChange:b=>i(b.target.value),"aria-label":"LoreKit read + write token for publishing","aria-invalid":u}),o.jsx("button",{className:"btn btn-sm",type:"submit",disabled:!c||u,children:"Enable"})]}),e[4]=a,e[5]=u,e[6]=l,e[7]=n,e[8]=c,e[9]=m):m=e[9];const f=u?"Publishing needs a read + write token, starting with lk_rw_.":n?s?"Your records get a Publish to built-in button. LoreKit only accepts it while you’re a member of the reaper-mcp org.":"Connect your read-only token above too, so your records (and their Publish button) show up.":"For members of the reaper-mcp LoreKit org: publish your records for everyone without a GitHub pull request. Create a read + write key limited to project::reaper-mcp and the reaper-mcp org. Everyone else uses Contribute.";let h;e[10]!==f?(h=o.jsx("p",{className:Ys.settingHint,children:f}),e[10]=f,e[11]=h):h=e[11];let g;e[12]!==n?(g=!n&&o.jsxs("p",{className:Ys.settingHint,children:["Not a member yet? Ask to become a contributor"," ",o.jsx("a",{className:Ys.settingLink,href:vv,target:"_blank",rel:"noreferrer",children:"on Discord ↗"})," ","or"," ",o.jsx("a",{className:Ys.settingLink,href:GF,target:"_blank",rel:"noreferrer",children:"on GitHub ↗"})]}),e[12]=n,e[13]=g):g=e[13];let y;return e[14]!==m||e[15]!==h||e[16]!==g?(y=o.jsxs("div",{className:Yn.settingGroup,children:[d,m,h,g]}),e[14]=m,e[15]=h,e[16]=g,e[17]=y):y=e[17],y}let Cu=null,L6=!1;const I0=new Set,U0=()=>I0.forEach(t=>t());typeof window<"u"&&(window.addEventListener("beforeinstallprompt",t=>{t.preventDefault(),Cu=t,U0()}),window.addEventListener("appinstalled",()=>{L6=!0,Cu=null,U0()}));function FF(){return window.matchMedia?.("(display-mode: standalone)").matches||window.matchMedia?.("(display-mode: window-controls-overlay)").matches||navigator.standalone===!0}function PF(){return new URLSearchParams(location.search).get("app")==="window"}function w3(){return L6?"installed":FF()?PF()?"window":"installed":Cu?"available":"unavailable"}async function qF(){const t=Cu;if(!t)return!1;Cu=null,await t.prompt();const{outcome:e}=await t.userChoice;return U0(),e==="accepted"}function YF(){const t=fe.c(2),[e,n]=Q.useState(w3);let s,l;return t[0]===Symbol.for("react.memo_cache_sentinel")?(s=()=>{const a=()=>n(w3());return I0.add(a),a(),()=>{I0.delete(a)}},l=[],t[0]=s,t[1]=l):(s=t[0],l=t[1]),Q.useEffect(s,l),e}function XF(){window.open(`${location.origin}${location.pathname}?install`,"_blank","noopener")}function KF(t){return/Edg\//.test(t)?"In Edge, open the … menu → Apps → Install this site as an app.":/Firefox\//.test(t)?"Firefox can’t install web apps. Open this page in Chrome, Edge or Safari to install it.":/Chrome\//.test(t)?"In Chrome, open the ⋮ menu → Cast, save and share → Install page as app. Already installed? Use “Open in MCP Bridge” in the address bar.":/Safari\//.test(t)&&/Macintosh/.test(t)?"In Safari, choose File → Add to Dock.":"Use your browser’s “Install app” or “Add to Dock” command."}function QF(t){const e=fe.c(86),{settings:n,onSet:s,notify:l,onNotify:a,usageStats:i,onUsageStats:r,loreToken:c,onLoreToken:u,publishToken:d,onPublishToken:m,tokensShared:f,onClose:h,canUpdate:g,onRestart:y,autostartInstalled:b}=t,p=f===void 0?!1:f;let v,_;e[0]!==h?(v=()=>{const ne=te=>te.key==="Escape"&&h();return window.addEventListener("keydown",ne),()=>window.removeEventListener("keydown",ne)},_=[h],e[0]=h,e[1]=v,e[2]=_):(v=e[1],_=e[2]),Q.useEffect(v,_);let x;e[3]===Symbol.for("react.memo_cache_sentinel")?(x=$u(),e[3]=x):x=e[3];const k=x!=="unsupported";let w;e[4]===Symbol.for("react.memo_cache_sentinel")?(w=$u(),e[4]=w):w=e[4];const R=w==="denied";let j;e[5]===Symbol.for("react.memo_cache_sentinel")?(j=K(Et.drawer,Et.drawerSettings),e[5]=j):j=e[5];let N;e[6]===Symbol.for("react.memo_cache_sentinel")?(N=o.jsx("div",{className:Et.drawerTitle,children:"Settings"}),e[6]=N):N=e[6];let E;e[7]===Symbol.for("react.memo_cache_sentinel")?(E=o.jsx(un.Close,{}),e[7]=E):E=e[7];let C;e[8]!==h?(C=o.jsxs("div",{className:Et.drawerHead,children:[N,o.jsx("button",{className:"icon-btn",onClick:h,"aria-label":"Close settings",title:"Close (Esc)",children:E})]}),e[8]=h,e[9]=C):C=e[9];let O;e[10]===Symbol.for("react.memo_cache_sentinel")?(O=o.jsx("h3",{children:"Agent control"}),e[10]=O):O=e[10];let M;e[11]!==s?(M=ne=>s("cfg_paused",ne),e[11]=s,e[12]=M):M=e[12];let A;e[13]!==n.paused||e[14]!==M?(A=o.jsx(Yo,{label:"Pause agents",hint:"Reject every command with a “paused by user” error. Handy while you’re hands-on. Clears when REAPER restarts.",on:n.paused,onChange:M}),e[13]=n.paused,e[14]=M,e[15]=A):A=e[15];let T;e[16]!==s?(T=ne=>s("cfg_readonly",ne),e[16]=s,e[17]=T):T=e[17];let S;e[18]!==n.readonly||e[19]!==T?(S=o.jsx(Yo,{label:"Read-only mode",hint:"Agents can inspect, meter and play, but anything that changes the project fails. Persists.",on:n.readonly,onChange:T}),e[18]=n.readonly,e[19]=T,e[20]=S):S=e[20];let $;e[21]!==A||e[22]!==S?($=o.jsxs("div",{className:Yn.settingGroup,children:[O,A,S]}),e[21]=A,e[22]=S,e[23]=$):$=e[23];let L;e[24]===Symbol.for("react.memo_cache_sentinel")?(L=o.jsx("h3",{children:"This window"}),e[24]=L):L=e[24];let z;e[25]!==s?(z=ne=>s("cfg_open_on_start",ne),e[25]=s,e[26]=z):z=e[26];let D;e[27]!==n.openOnStart||e[28]!==z?(D=o.jsx(Yo,{label:"Open when the bridge starts",hint:"Pop this window up each time mcp_bridge.lua starts. Persists.",on:n.openOnStart,onChange:z}),e[27]=n.openOnStart,e[28]=z,e[29]=D):D=e[29];let U;e[30]!==l||e[31]!==a?(U=o.jsx(Yo,{label:"Desktop notifications for errors",hint:k?R?"Blocked for this site. Allow notifications in the browser’s site settings.":"Get a system notification when a command fails, even when this window is in the background.":"This browser doesn’t support notifications.",on:l,disabled:!k||R,onChange:a}),e[30]=l,e[31]=a,e[32]=U):U=e[32];let I;e[33]===Symbol.for("react.memo_cache_sentinel")?(I=o.jsx(JF,{}),e[33]=I):I=e[33];let F;e[34]!==D||e[35]!==U?(F=o.jsxs("div",{className:Yn.settingGroup,children:[L,D,U,I]}),e[34]=D,e[35]=U,e[36]=F):F=e[36];let P;e[37]===Symbol.for("react.memo_cache_sentinel")?(P=o.jsx("h3",{children:"Bridge"}),e[37]=P):P=e[37];let X;e[38]!==b||e[39]!==s||e[40]!==n.autostart?(X=n.autostart!==void 0&&o.jsx(Yo,{label:"Start with REAPER",hint:b===!1?"Not set up in this REAPER. Run reaper-mcp setup in a terminal: it adds the bridge to REAPER’s startup script (Scripts/__startup.lua).":"Run mcp_bridge.lua each time REAPER opens, from REAPER’s startup script. Takes effect the next time REAPER starts. Persists.",on:n.autostart&&b!==!1,disabled:b===!1,onChange:ne=>s("cfg_autostart",ne)}),e[38]=b,e[39]=s,e[40]=n.autostart,e[41]=X):X=e[41];let Y;e[42]===Symbol.for("react.memo_cache_sentinel")?(Y=o.jsx("div",{className:Yn.rowLabel,children:"Restart bridge"}),e[42]=Y):Y=e[42];let Z;e[43]!==y?(Z=y?"Stop mcp_bridge.lua and start it again, loading the installed copy.":o.jsxs(o.Fragment,{children:["This REAPER can’t restart the bridge for you. Stop ",o.jsx("code",{children:"mcp_bridge.lua"})," in the Actions list and run it again."]}),e[43]=y,e[44]=Z):Z=e[44];let V;e[45]!==Z?(V=o.jsxs("div",{className:Yn.installText,children:[Y,o.jsx("div",{className:Yn.rowHint,children:Z})]}),e[45]=Z,e[46]=V):V=e[46];let H;e[47]!==y?(H=y&&o.jsx("button",{className:"btn btn-sm",onClick:()=>{st({name:"bridge_restart_clicked",source:"settings"}),y()},children:"Restart"}),e[47]=y,e[48]=H):H=e[48];let W;e[49]!==V||e[50]!==H?(W=o.jsxs("div",{className:Yn.installRow,children:[V,H]}),e[49]=V,e[50]=H,e[51]=W):W=e[51];let J;e[52]!==X||e[53]!==W?(J=o.jsxs("div",{className:Yn.settingGroup,children:[P,X,W]}),e[52]=X,e[53]=W,e[54]=J):J=e[54];let ce;e[55]!==g||e[56]!==s||e[57]!==n.dev?(ce=g&&o.jsxs("div",{className:Yn.settingGroup,children:[o.jsx("h3",{children:"Updates"}),o.jsx(Yo,{label:"Developer mode",hint:"Rebuild & reload builds your working tree as it is, uncommitted changes included, instead of offering release updates. Detected from your clone until you choose. Persists.",on:n.dev===!0,onChange:ne=>s("cfg_dev",ne)})]}),e[55]=g,e[56]=s,e[57]=n.dev,e[58]=ce):ce=e[58];let ee;e[59]!==c||e[60]!==u||e[61]!==p?(ee=o.jsx(M6,{token:c,onChange:u,shared:p}),e[59]=c,e[60]=u,e[61]=p,e[62]=ee):ee=e[62];let he;e[63]!==c||e[64]!==m||e[65]!==d?(he=o.jsx(A6,{token:d,readToken:c,onChange:m}),e[63]=c,e[64]=m,e[65]=d,e[66]=he):he=e[66];let pe;e[67]===Symbol.for("react.memo_cache_sentinel")?(pe=o.jsx("h3",{children:"Privacy"}),e[67]=pe):pe=e[67];let G;e[68]!==i?(G=ZF(i),e[68]=i,e[69]=G):G=e[69];const ae=!i.on&&i.reason!=="user";let oe;e[70]!==r||e[71]!==G||e[72]!==ae||e[73]!==i.on?(oe=o.jsxs("div",{className:Yn.settingGroup,children:[pe,o.jsx(Yo,{label:"Share usage statistics",hint:G,on:i.on,disabled:ae,onChange:r})]}),e[70]=r,e[71]=G,e[72]=ae,e[73]=i.on,e[74]=oe):oe=e[74];let ye;e[75]!==$||e[76]!==F||e[77]!==J||e[78]!==ce||e[79]!==ee||e[80]!==he||e[81]!==oe?(ye=o.jsxs("div",{className:Et.drawerBody,children:[$,F,J,ce,ee,he,oe]}),e[75]=$,e[76]=F,e[77]=J,e[78]=ce,e[79]=ee,e[80]=he,e[81]=oe,e[82]=ye):ye=e[82];let _e;return e[83]!==ye||e[84]!==C?(_e=o.jsxs("aside",{className:j,"aria-label":"Settings",children:[C,ye]}),e[83]=ye,e[84]=C,e[85]=_e):_e=e[85],_e}function ZF(t){return t.on?"Sends which views and buttons you use, pseudonymously, so this page can get better. Never plugin, track or project names, searches or tokens. Turning it off stops events at once and everything else from the next page load.":t.reason==="browser"?"Off: your browser asks sites not to track you (Global Privacy Control / Do Not Track).":t.reason==="demo"?"Off in the demo.":t.reason==="unconfigured"?"This build has no usage statistics destination.":"Off. Turn it on to help improve this page: it sends which views and buttons you use, never names, searches or tokens."}const WF={cfg_paused:"paused",cfg_readonly:"readonly",cfg_open_on_start:"open_on_start",cfg_dev:"dev",cfg_autostart:"autostart"};function JF(){const t=fe.c(14),e=YF(),[n,s]=Q.useState(!1);let l;t[0]!==e?(l=()=>{st({name:"app_install_clicked",state:e}),e==="available"?qF():e==="window"?XF():s(!0)},t[0]=e,t[1]=l):l=t[1];const a=l;let i;t[2]===Symbol.for("react.memo_cache_sentinel")?(i=o.jsx("div",{className:Yn.rowLabel,children:"Desktop app"}),t[2]=i):i=t[2];let r;t[3]!==n||t[4]!==e?(r=e==="installed"?"Running as the installed app.":e==="window"?"This is the bridge’s browser window. Install opens the page in a browser tab, where you can install it as an app.":n?KF(navigator.userAgent):"Install this page as an app with its own Dock / taskbar icon and window.",t[3]=n,t[4]=e,t[5]=r):r=t[5];let c;t[6]!==r?(c=o.jsxs("div",{className:Yn.installText,children:[i,o.jsx("div",{className:Yn.rowHint,children:r})]}),t[6]=r,t[7]=c):c=t[7];let u;t[8]!==a||t[9]!==e?(u=e==="installed"?o.jsxs("span",{className:Yn.installDone,children:[o.jsx("i",{className:"kdot","data-coverage":"learned"})," Installed"]}):o.jsx("button",{className:"btn btn-sm",onClick:a,children:"Install app"}),t[8]=a,t[9]=e,t[10]=u):u=t[10];let d;return t[11]!==c||t[12]!==u?(d=o.jsxs("div",{className:Yn.installRow,children:[c,u]}),t[11]=c,t[12]=u,t[13]=d):d=t[13],d}const eP=Object.assign(QF,{LoreKit:M6,Publish:A6}),tP="_sparkWrap_rgyuy_1",nP="_spark_rgyuy_1",sP="_sparkBase_rgyuy_3",lP="_sparkLine_rgyuy_4",aP="_sparkBar_rgyuy_5",oP="_sparkBarHover_rgyuy_6",iP="_sparkGuide_rgyuy_11",rP="_sparkDot_rgyuy_16",cP="_sparkTip_rgyuy_22",ka={sparkWrap:tP,spark:nP,sparkBase:sP,sparkLine:lP,sparkBar:aP,sparkBarHover:oP,sparkGuide:iP,sparkDot:rP,sparkTip:cP},G1=100,Wo=24;function $c(t){const e=fe.c(46),{values:n,floor:s,tone:l,label:a,format:i,variant:r}=t,c=r===void 0?"line":r,[u,d]=Q.useState(null),m=N5-1;let f;e[0]!==s||e[1]!==n?(f=Math.max(s,...n.map(dP)),e[0]=s,e[1]=n,e[2]=f):f=e[2];const h=f*1.15,g=G1/m,y=m-n.length;let b;e[3]!==h?(b=T=>Wo-1-T/h*(Wo-3),e[3]=h,e[4]=b):b=e[4];const p=b;let v;e[5]!==y||e[6]!==n||e[7]!==c?(v=T=>{const S=T.currentTarget.getBoundingClientRect(),$=Math.floor((T.clientX-S.left)/S.width*m)-y;if($<0||$>=n.length)return d(null);if(c==="bars"||n[$]!==null)return d($);let L=null;n.forEach((z,D)=>{z!==null&&(L===null||Math.abs(D-$)<Math.abs(L-$))&&(L=D)}),d(L)},e[5]=y,e[6]=n,e[7]=c,e[8]=v):v=e[8];const _=v;let x;if(c==="bars"){let T;if(e[9]!==u||e[10]!==y||e[11]!==n||e[12]!==p){let S;e[14]!==u||e[15]!==y||e[16]!==p?(S=($,L)=>$?o.jsx("rect",{className:K(ka.sparkBar,u===L?ka.sparkBarHover:""),x:(y+L)*g+g*.15,width:g*.7,y:p($),height:Wo-p($),rx:.4},L):null,e[14]=u,e[15]=y,e[16]=p,e[17]=S):S=e[17],T=n.map(S),e[9]=u,e[10]=y,e[11]=n,e[12]=p,e[13]=T}else T=e[13];x=T}else if(e[18]!==y||e[19]!==n||e[20]!==p){let T;e[22]!==y||e[23]!==p?(T=($,L)=>$===null?[]:[[(y+L+.5)*g,p($)]],e[22]=y,e[23]=p,e[24]=T):T=e[24];const S=n.flatMap(T);if(S.length>0){const $=S.map(uP).join(""),L=S.length>1?$:`M${S[0][0]},${S[0][1]}h0.01`;let z;e[25]!==L?(z=o.jsx("path",{className:ka.sparkLine,d:L}),e[25]=L,e[26]=z):z=e[26],x=z}e[18]=y,e[19]=n,e[20]=p,e[21]=x}else x=e[21];const k=u===null?void 0:n[u],w=u===null?0:(y+u+.5)/m*100,R=u===null?0:n.length-1-u,j=w<18?"start":w>82?"end":"center";let N;e[27]===Symbol.for("react.memo_cache_sentinel")?(N=()=>d(null),e[27]=N):N=e[27];const E=`${a}, last minute`;let C;e[28]===Symbol.for("react.memo_cache_sentinel")?(C=o.jsx("line",{className:ka.sparkBase,x1:"0",x2:G1,y1:Wo-.5,y2:Wo-.5}),e[28]=C):C=e[28];let O;e[29]!==x||e[30]!==E?(O=o.jsxs("svg",{className:ka.spark,viewBox:`0 0 ${G1} ${Wo}`,preserveAspectRatio:"none",role:"img","aria-label":E,children:[C,x]}),e[29]=x,e[30]=E,e[31]=O):O=e[31];let M;e[32]!==R||e[33]!==i||e[34]!==u||e[35]!==k||e[36]!==w||e[37]!==j||e[38]!==c||e[39]!==p?(M=u!==null&&o.jsxs(o.Fragment,{children:[o.jsx("span",{className:ka.sparkGuide,style:{left:`${w}%`}}),c==="line"&&k!=null&&o.jsx("span",{className:ka.sparkDot,style:{left:`${w}%`,top:`${p(k)/Wo*100}%`}}),o.jsxs("span",{className:ka.sparkTip,"data-align":j,style:{left:`${w}%`},children:[o.jsx("b",{children:k==null?"no commands":i(k)}),o.jsx("span",{children:R===0?"now":`${R}s ago`})]})]}),e[32]=R,e[33]=i,e[34]=u,e[35]=k,e[36]=w,e[37]=j,e[38]=c,e[39]=p,e[40]=M):M=e[40];let A;return e[41]!==_||e[42]!==O||e[43]!==M||e[44]!==l?(A=o.jsxs("div",{className:ka.sparkWrap,"data-tone":l,onMouseMove:_,onMouseLeave:N,children:[O,M]}),e[41]=_,e[42]=O,e[43]=M,e[44]=l,e[45]=A):A=e[45],A}function uP(t,e){const[n,s]=t;return`${e?"L":"M"}${n.toFixed(2)},${s.toFixed(2)}`}function dP(t){return t??0}const fP="_stats_g4xb6_1",mP="_stat_g4xb6_1",hP="_statLabel_g4xb6_12",pP="_statValue_g4xb6_13",vP="_statHint_g4xb6_14",gP="_statSpark_g4xb6_15",_P="_statsToggle_g4xb6_16",yP="_statsFolded_g4xb6_20",ro={stats:fP,stat:mP,statLabel:hP,statValue:pP,statHint:vP,statSpark:gP,statsToggle:_P,statsFolded:yP},O6="mcp-bridge-stats-open";function bP(t){const e=fe.c(67),{status:n,log:s,now:l,series:a}=t,i=j5(n.recent),r=n.commands>0?n.errors/n.commands*100:0,[c,u]=Q.useState(wP);let d;e[0]!==c?(d=()=>{xl(O6,c?"0":"1"),u(!c)},e[0]=c,e[1]=d):d=e[1];const m=d,f=c?"":ro.statsFolded;let h;e[2]!==f?(h=K(ro.stats,f),e[2]=f,e[3]=h):h=e[3];const g=c?"Show fewer stats":"Show stat details",y=c?"Show fewer stats":"Show stat details",b=c?"M3 7.5 6 4.5 9 7.5":"M3 4.5 6 7.5 9 4.5";let p;e[4]!==b?(p=o.jsx("svg",{viewBox:"0 0 12 12",width:"12",height:"12","aria-hidden":"true",children:o.jsx("path",{d:b,fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),e[4]=b,e[5]=p):p=e[5];let v;e[6]!==c||e[7]!==g||e[8]!==y||e[9]!==p||e[10]!==m?(v=o.jsx("button",{type:"button",className:ro.statsToggle,"aria-expanded":c,"aria-label":g,title:y,onClick:m,children:p}),e[6]=c,e[7]=g,e[8]=y,e[9]=p,e[10]=m,e[11]=v):v=e[11];const _=l-n.startedAt;let x;e[12]!==_?(x=nE(_),e[12]=_,e[13]=x):x=e[13];let k;e[14]!==n.startedAt?(k=new Date(n.startedAt).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",hour12:!1}),e[14]=n.startedAt,e[15]=k):k=e[15];const w=`since ${k}`;let R;e[16]!==x||e[17]!==w?(R=o.jsx(gc,{label:"Uptime",value:x,hint:w}),e[16]=x,e[17]=w,e[18]=R):R=e[18];let j;e[19]!==n.commands?(j=n.commands.toLocaleString(),e[19]=n.commands,e[20]=j):j=e[20];let N;e[21]!==s||e[22]!==l?(N=oE(s,l),e[21]=s,e[22]=l,e[23]=N):N=e[23];const E=`${N} / min`;let C;e[24]!==a.commands?(C=o.jsx($c,{values:a.commands,floor:2,tone:"accent",label:"commands per second",variant:"bars",format:kP}),e[24]=a.commands,e[25]=C):C=e[25];let O;e[26]!==j||e[27]!==E||e[28]!==C?(O=o.jsx(gc,{label:"Commands",value:j,hint:E,spark:C}),e[26]=j,e[27]=E,e[28]=C,e[29]=O):O=e[29];let M;e[30]!==n.errors?(M=n.errors.toLocaleString(),e[30]=n.errors,e[31]=M):M=e[31];let A;e[32]!==r||e[33]!==n.commands?(A=n.commands>0?`${r.toFixed(1)}%`:"—",e[32]=r,e[33]=n.commands,e[34]=A):A=e[34];const T=n.errors>0?"bad":void 0,S=a.errors.some(SP)?"bad":"muted";let $;e[35]!==a.errors||e[36]!==S?($=o.jsx($c,{values:a.errors,floor:2,tone:S,label:"errors per second",variant:"bars",format:xP}),e[35]=a.errors,e[36]=S,e[37]=$):$=e[37];let L;e[38]!==M||e[39]!==A||e[40]!==T||e[41]!==$?(L=o.jsx(gc,{label:"Errors",value:M,hint:A,tone:T,spark:$}),e[38]=M,e[39]=A,e[40]=T,e[41]=$,e[42]=L):L=e[42];const z=gc,D="Latency",U=i?oo(i.avg):"—",I=i?`p95 ${oo(i.p95)}`:"avg handler";let F;e[43]!==a.latency?(F=o.jsx($c,{values:a.latency,floor:5,tone:"accent",label:"avg handler ms",format:oo}),e[43]=a.latency,e[44]=F):F=e[44];let P;e[45]!==z||e[46]!==U||e[47]!==I||e[48]!==F?(P=o.jsx(z,{label:D,value:U,hint:I,spark:F}),e[45]=z,e[46]=U,e[47]=I,e[48]=F,e[49]=P):P=e[49];let X;e[50]!==n.deferMs?(X=n.deferMs>0?oo(n.deferMs):"—",e[50]=n.deferMs,e[51]=X):X=e[51];const Y=n.deferMs>100?"warn":void 0,Z=n.deferMs>100?"warn":"muted";let V;e[52]!==a.loop||e[53]!==Z?(V=o.jsx($c,{values:a.loop,floor:40,tone:Z,label:"defer cycle ms",format:oo}),e[52]=a.loop,e[53]=Z,e[54]=V):V=e[54];let H;e[55]!==X||e[56]!==Y||e[57]!==V?(H=o.jsx(gc,{label:"Loop",value:X,hint:"defer cycle",tone:Y,spark:V}),e[55]=X,e[56]=Y,e[57]=V,e[58]=H):H=e[58];let W;return e[59]!==R||e[60]!==O||e[61]!==L||e[62]!==P||e[63]!==h||e[64]!==H||e[65]!==v?(W=o.jsxs("section",{className:h,children:[v,R,O,L,P,H]}),e[59]=R,e[60]=O,e[61]=L,e[62]=P,e[63]=h,e[64]=H,e[65]=v,e[66]=W):W=e[66],W}function xP(t){return`${t} error${t===1?"":"s"}`}function SP(t){return t>0}function kP(t){return`${t} cmd`}function wP(){return fa(O6)==="1"}function gc(t){const e=fe.c(16),{label:n,value:s,hint:l,tone:a,spark:i}=t;let r;e[0]!==n?(r=o.jsx("span",{className:ro.statLabel,children:n}),e[0]=n,e[1]=r):r=e[1];const c=a&&`tone-${a}`;let u;e[2]!==c?(u=K(ro.statValue,c),e[2]=c,e[3]=u):u=e[3];let d;e[4]!==u||e[5]!==s?(d=o.jsx("span",{className:u,children:s}),e[4]=u,e[5]=s,e[6]=d):d=e[6];let m;e[7]!==l?(m=l&&o.jsx("span",{className:ro.statHint,children:l}),e[7]=l,e[8]=m):m=e[8];let f;e[9]!==i?(f=i&&o.jsx("div",{className:ro.statSpark,children:i}),e[9]=i,e[10]=f):f=e[10];let h;return e[11]!==r||e[12]!==d||e[13]!==m||e[14]!==f?(h=o.jsxs("div",{className:ro.stat,children:[r,d,m,f]}),e[11]=r,e[12]=d,e[13]=m,e[14]=f,e[15]=h):h=e[15],h}const jP=Object.assign(bP,{Sparkline:$c}),NP="_shell_1bhue_1",TP="_footer_1bhue_10",EP="_overview_1bhue_18",$P="_footerMeta_1bhue_19",RP="_overviewOn_1bhue_29",_c={shell:NP,footer:TP,overview:EP,footerMeta:$P,overviewOn:RP},D6="mcp-bridge-overview";function CP(){const t=fe.c(140),[e,n]=Q.useState(!1);let s;t[0]===Symbol.for("react.memo_cache_sentinel")?(s=[],t[0]=s):s=t[0],Q.useEffect(LP,s);const{status:l,history:a,longHistory:i,reachable:r,lastChangeAt:c,log:u,clearLog:d,clearedAt:m}=QI(e);let f;t[1]===Symbol.for("react.memo_cache_sentinel")?(f={validate:kF},t[1]=f):f=t[1];const[h,g]=bl("span",null,f);let y;t[2]!==u||t[3]!==h?(y=_E(u,h),t[2]=u,t[3]=h,t[4]=y):y=t[4];const b=y,p=lU(1e3),[v]=Q.useState(tE);let _;t[5]===Symbol.for("react.memo_cache_sentinel")?(_={validate:k5},t[5]=_):_=t[5];const[x,k]=bl("range",v,_);let w;t[6]!==x||t[7]!==k||t[8]!==g?(w=rt=>{rt!==x&&(st({name:"timeline_range_changed",range:rt}),k(rt),xl(b5,rt),g(null))},t[6]=x,t[7]=k,t[8]=g,t[9]=w):w=t[9];const R=w;let j;t[10]!==c||t[11]!==p||t[12]!==l?(j=UN(l,c,p),t[10]=c,t[11]=p,t[12]=l,t[13]=j):j=t[13];const N=j,E=nU(l,p);let C;t[14]!==u||t[15]!==E?(C=rE(E,u),t[14]=u,t[15]=E,t[16]=C):C=t[16];const O=C;let M;t[17]!==l?.sessions?(M=()=>new Map(s$(l?.sessions??[]).map(AP)),t[17]=l?.sessions,t[18]=M):M=t[18],l?.sessions;let A;t[19]!==M?(A=M(),t[19]=M,t[20]=A):A=t[20];const T=A,[S]=Q.useState(wF);let $;t[21]===Symbol.for("react.memo_cache_sentinel")?($={validate:C6},t[21]=$):$=t[21];const[L,z]=bl("view",S,$);let D;t[22]!==z||t[23]!==L?(D=rt=>{rt!==L&&e5(rt),z(rt),xl(R6,rt)},t[22]=z,t[23]=L,t[24]=D):D=t[24];const U=D,[I,F]=sU(l);let P;t[25]!==F?(P=rt=>(dn,Wn)=>{st({name:"setting_changed",setting:WF[dn],enabled:Wn,source:rt}),F(dn,Wn)},t[25]=F,t[26]=P):P=t[26];const X=P,[Y,Z]=eU(u,T);let V;t[27]!==Z?(V=rt=>{st({name:"setting_changed",setting:"error_notifications",enabled:rt,source:"settings"}),Z(rt)},t[27]=Z,t[28]=V):V=t[28];const H=V;let W;t[29]!==L?(W=()=>Jx(!!$s,L),t[29]=L,t[30]=W):W=t[30];const[J,ce]=Q.useState(W);let ee;t[31]===Symbol.for("react.memo_cache_sentinel")?(ee=rt=>ce(jN(rt,!!$s)),t[31]=ee):ee=t[31];const he=ee,pe=WI(l);let G;t[32]===Symbol.for("react.memo_cache_sentinel")?(G={validate:t5},t[32]=G):G=t[32];const[ae,oe]=bl("settings",!1,G);let ye,_e;t[33]!==oe?(ye=()=>{new URLSearchParams(location.search).has("install")&&oe(!0,"replace")},_e=[oe],t[33]=oe,t[34]=ye,t[35]=_e):(ye=t[34],_e=t[35]),Q.useEffect(ye,_e);const ne=rF(!$s,l?.control?.token),te=ne.read,ie=ne.publish;let de;t[36]!==ne?(de=rt=>{st({name:"lorekit_token_changed",kind:"read",connected:rt!==null}),ne.setRead(rt)},t[36]=ne,t[37]=de):de=t[37];const xe=de;let Ne;t[38]!==ne?(Ne=rt=>{st({name:"lorekit_token_changed",kind:"publish",connected:rt!==null}),ne.setPublish(rt)},t[38]=ne,t[39]=Ne):Ne=t[39];const Te=Ne,Ae=nF(!$s,te,ie),Re=!!$s||l?.control?.snapshots===!0,Le=jI(Re&&L==="snapshots",l?.control?.token,!!$s);let De,we;t[40]!==N?(De=()=>{document.title=`${N==="live"?"●":"○"} MCP Bridge`},we=[N],t[40]=N,t[41]=De,t[42]=we):(De=t[41],we=t[42]),Q.useEffect(De,we);const Ce=Q.useRef(null);let Oe,Xe;t[43]!==N?(Oe=()=>{if(Ce.current===null){N==="live"&&(Ce.current=N);return}Ce.current!==N&&st({name:"bridge_state_changed",state:N}),Ce.current=N},Xe=[N],t[43]=N,t[44]=Oe,t[45]=Xe):(Oe=t[44],Xe=t[45]),Q.useEffect(Oe,Xe);const[re,Ee]=Q.useState(MP);let it;t[46]!==re?(it=()=>{xl(D6,re?"0":"1"),Ee(!re)},t[46]=re,t[47]=it):it=t[47];const lt=it;let ht;t[48]!==oe||t[49]!==ae?(ht=rt=>()=>{const dn=rt?!ae:!0;dn&&!ae&&st({name:"settings_opened"}),oe(dn)},t[48]=oe,t[49]=ae,t[50]=ht):ht=t[50];const qe=ht,_t=re?_c.overviewOn:"";let Qe;t[51]!==_t?(Qe=K(_c.shell,_t),t[51]=_t,t[52]=Qe):Qe=t[52];let et;t[53]!==X?(et=X("settings"),t[53]=X,t[54]=et):et=t[54];let Ie;t[55]!==qe||t[56]!==I?(Ie=I?qe(!0):void 0,t[55]=qe,t[56]=I,t[57]=Ie):Ie=t[57];const wt=l?lt:void 0;let yt;t[58]!==pe||t[59]!==I?.dev||t[60]!==l?(yt=I?.dev&&l?.control?.canUpdate&&l.control.changed&&l.control.update?.state!=="running"?()=>pe("rebuild"):void 0,t[58]=pe,t[59]=I?.dev,t[60]=l,t[61]=yt):yt=t[61];let at;t[62]!==pe||t[63]!==l?.control?.canRestart?(at=l?.control?.canRestart?()=>pe("restart"):void 0,t[62]=pe,t[63]=l?.control?.canRestart,t[64]=at):at=t[64];let Rt;t[65]!==R||t[66]!==Y||t[67]!==re||t[68]!==x||t[69]!==H||t[70]!==I||t[71]!==et||t[72]!==Ie||t[73]!==wt||t[74]!==yt||t[75]!==at||t[76]!==J?(Rt=o.jsx(t$,{rangeKey:x,onRange:R,settings:I,onSet:et,onOpenSettings:Ie,overview:re,onToggleOverview:wt,onRebuild:yt,onRestart:at,notify:Y,onNotify:H,usageStats:J,onUsageStats:he}),t[65]=R,t[66]=Y,t[67]=re,t[68]=x,t[69]=H,t[70]=I,t[71]=et,t[72]=Ie,t[73]=wt,t[74]=yt,t[75]=at,t[76]=J,t[77]=Rt):Rt=t[77];let Lt;t[78]!==U?(Lt=()=>U("sessions"),t[78]=U,t[79]=Lt):Lt=t[79];let jt;t[80]!==qe||t[81]!==I?(jt=I?qe(!0):void 0,t[80]=qe,t[81]=I,t[82]=jt):jt=t[82];const Pt=l?lt:void 0;let bt;t[83]!==pe||t[84]!==I?.dev||t[85]!==l?(bt=I?.dev&&l?.control?.canUpdate&&l.control.changed&&l.control.update?.state!=="running"?()=>pe("rebuild"):void 0,t[83]=pe,t[84]=I?.dev,t[85]=l,t[86]=bt):bt=t[86];let Nt;t[87]!==p||t[88]!==re||t[89]!==r||t[90]!==T||t[91]!==N||t[92]!==l||t[93]!==Lt||t[94]!==jt||t[95]!==Pt||t[96]!==bt?(Nt=o.jsx(k$,{status:l,state:N,reachable:r,now:p,sessions:T,onShowAgents:Lt,onOpenSettings:jt,overview:re,onToggleOverview:Pt,onRebuild:bt}),t[87]=p,t[88]=re,t[89]=r,t[90]=T,t[91]=N,t[92]=l,t[93]=Lt,t[94]=jt,t[95]=Pt,t[96]=bt,t[97]=Nt):Nt=t[97];let en;t[98]!==X||t[99]!==xe||t[100]!==Te||t[101]!==R||t[102]!==U||t[103]!==d||t[104]!==m||t[105]!==a||t[106]!==c||t[107]!==Ae||t[108]!==u||t[109]!==i||t[110]!==te||t[111]!==Y||t[112]!==p||t[113]!==qe||t[114]!==e||t[115]!==ie||t[116]!==x||t[117]!==r||t[118]!==pe||t[119]!==h||t[120]!==O||t[121]!==T||t[122]!==H||t[123]!==g||t[124]!==oe||t[125]!==I||t[126]!==ae||t[127]!==b||t[128]!==Le||t[129]!==Re||t[130]!==l||t[131]!==ne.shared||t[132]!==J||t[133]!==L?(en=l?o.jsxs(o.Fragment,{children:[o.jsx(HI,{status:l,settings:I,onSet:X("notice"),request:pe}),o.jsxs("div",{className:_c.overview,children:[o.jsx(jP,{status:l,log:u,now:p,series:O}),o.jsx(ZE,{history:a,longHistory:i,now:p,rangeKey:x,onRange:R,selection:h,onSelect:g,clearedAt:m})]}),o.jsx(EF,{log:b,selection:h,rangeKey:h?null:x,onRange:R,oldestKept:u[u.length-1]?.t??null,onClearSelection:()=>g(null),sessions:T,knowledge:$s?l.knowledge:Ae,snapshots:Re?{...Le,blocked:GB(I)}:void 0,onOpenSettings:I?qe(!1):void 0,view:L,onView:U,paused:e,onTogglePause:()=>{st({name:"log_paused",paused:!e}),n(!e)},onClear:d,now:p}),ae&&I&&o.jsx(eP,{settings:I,onSet:X("settings"),notify:Y,onNotify:H,usageStats:J,onUsageStats:he,loreToken:te,onLoreToken:xe,publishToken:ie,tokensShared:ne.shared,onPublishToken:Te,onClose:()=>oe(!1),canUpdate:l.control?.canUpdate===!0,onRestart:l.control?.canRestart?()=>pe("restart"):void 0,autostartInstalled:l.health?.autostart}),o.jsxs("footer",{className:_c.footer,children:[o.jsx("span",{className:"mono",title:"Bridge IPC directory",children:l.bridgeDir}),o.jsxs("span",{className:_c.footerMeta,children:["Updated ",Oa(p-c),o.jsx("span",{className:"dot-sep"}),o.jsxs("a",{href:ji,target:"_blank",rel:"noreferrer",children:["reaper-mcp v","0.70.1"]}),o.jsx("span",{className:"dot-sep"}),o.jsx("a",{href:`${ji}/issues`,target:"_blank",rel:"noreferrer",children:"Report an issue"}),o.jsx("span",{className:"dot-sep"}),o.jsx("a",{href:vv,target:"_blank",rel:"noreferrer",children:"Discord"})]})]})]}):o.jsx(qI,{reachable:r}),t[98]=X,t[99]=xe,t[100]=Te,t[101]=R,t[102]=U,t[103]=d,t[104]=m,t[105]=a,t[106]=c,t[107]=Ae,t[108]=u,t[109]=i,t[110]=te,t[111]=Y,t[112]=p,t[113]=qe,t[114]=e,t[115]=ie,t[116]=x,t[117]=r,t[118]=pe,t[119]=h,t[120]=O,t[121]=T,t[122]=H,t[123]=g,t[124]=oe,t[125]=I,t[126]=ae,t[127]=b,t[128]=Le,t[129]=Re,t[130]=l,t[131]=ne.shared,t[132]=J,t[133]=L,t[134]=en):en=t[134];let qt;return t[135]!==Qe||t[136]!==Rt||t[137]!==Nt||t[138]!==en?(qt=o.jsxs("div",{className:Qe,children:[Rt,Nt,en]}),t[135]=Qe,t[136]=Rt,t[137]=Nt,t[138]=en,t[139]=qt):qt=t[139],qt}function MP(){return fa(D6)==="1"}function AP(t){return[t.id,t]}function LP(){new URLSearchParams(location.search).has("app")&&window.outerWidth>1100&&window.resizeTo(980,720)}const OP=_7.createRoot(document.getElementById("root"));OP.render(o.jsx(YT,{children:o.jsx(CP,{})}));"serviceWorker"in navigator&&location.protocol.startsWith("http")&&navigator.serviceWorker.register("/mcp_bridge_sw.js",{scope:"/mcp_bridge"}).catch(()=>{});</script>
|
|
124
|
+
<style rel="stylesheet" crossorigin>:root{--bg: #0e0f11;--panel: #15171a;--panel-2: #1b1d21;--line: #24272c;--line-2: #2f333a;--text: #e7e9ec;--muted: #8a909a;--faint: #5b616b;--live: #4ade80;--warn: #f5b84b;--bad: #f87171;--accent: #7cc4ff;--bar: #3f6f99;--h0: #7cc4ff;--h1: #c4a5ff;--h2: #5eead4;--h3: #f9a8d4;--h4: #fcd34d;--h5: #a3e635;--k-read: #3f6f99;--k-write: #b78af7;--k-transport: #5eead4;--mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;--sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", system-ui, sans-serif;color-scheme:dark}*{box-sizing:border-box}html,body{margin:0;height:100%;background:var(--bg);color:var(--text)}body{font:13px/1.45 var(--sans);-webkit-font-smoothing:antialiased;background:radial-gradient(1200px 400px at 10% -10%,rgba(124,196,255,.06),transparent 60%),var(--bg)}#root{height:100%}button{font:inherit;color:inherit;cursor:pointer}code{font-family:var(--mono);font-size:12px;background:var(--panel-2);border:1px solid var(--line);padding:1px 5px;border-radius:4px}kbd{font-family:var(--mono);font-size:10.5px;padding:0 5px;border-radius:4px;border:1px solid var(--line-2);color:var(--faint)}.mono{font-family:var(--mono);font-variant-numeric:tabular-nums}.muted{color:var(--faint)}.tone-bad{color:var(--bad)}.tone-warn{color:var(--warn)}.count{font-size:11px;color:var(--faint);font-variant-numeric:tabular-nums}.count-bad{color:var(--bad)}.dot-sep{flex:none;display:inline-block;width:3px;height:3px;border-radius:50%;background:var(--faint);margin:0 8px;vertical-align:middle}.hue-0{--hue: var(--h0)}.hue-1{--hue: var(--h1)}.hue-2{--hue: var(--h2)}.hue-3{--hue: var(--h3)}.hue-4{--hue: var(--h4)}.hue-5{--hue: var(--h5)}.sdot{display:inline-block;flex:none;width:7px;height:7px;border-radius:50%;background:var(--hue)}.sdot-off{background:none;box-shadow:inset 0 0 0 1.5px var(--hue);opacity:.7}.kdot:where([data-kind=read]){background:var(--k-read)}.kdot:where([data-kind=write]){background:var(--k-write)}.kdot:where([data-kind=transport]){background:var(--k-transport)}.kdot{display:inline-block;flex:none;width:7px;height:7px;border-radius:2px}.kdot[data-coverage=learned]{background:var(--live);border-radius:50%}.kdot[data-coverage=built-in]{background:var(--accent);border-radius:50%}.kdot[data-coverage=unknown]{background:none;box-shadow:inset 0 0 0 1.5px var(--faint);border-radius:50%}.btn-sm{height:26px;padding:0 10px;font-size:12px;flex:none}.btn{height:30px;padding:0 12px;border-radius:8px;border:1px solid var(--line-2);background:var(--panel-2);color:var(--text)}:where(a).btn{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.btn:hover:not(:disabled){border-color:#3c414a;background:#22252a}.btn:disabled{opacity:.4;cursor:default}.btn-on{color:var(--warn);border-color:#f5b84b59}.btn-block{width:100%}.btn-warn{color:var(--warn);border-color:#f5b84b73}.icon-btn{flex:none;width:28px;height:28px;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;background:none;color:var(--muted)}.icon-btn:hover{color:var(--text);background:var(--panel-2);border-color:var(--line-2)}.link-btn{border:0;background:none;padding:0;color:var(--muted);font-size:11px;text-transform:none;letter-spacing:0}.link-btn:hover{color:var(--text);text-decoration:underline}._measure_1uc2g_3{--hold: #f4f7fa;--target: #b9a3ff;border:1px solid var(--line-2);border-radius:10px;overflow:hidden;container-type:inline-size}._measureHead_1uc2g_4{display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding:8px 12px;border-bottom:1px solid var(--line);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);background:var(--panel-2)}._measureHeadNote_1uc2g_10{flex:none;font-size:10.5px;letter-spacing:0;text-transform:none;color:var(--faint)}._measureBody_1uc2g_11{padding:14px 12px 12px;display:flex;flex-direction:column;gap:10px}._measureReadouts_1uc2g_12{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 12px}@container (min-width: 301px){._measureReadouts_1uc2g_12:has(>:nth-child(4):last-child){grid-template-columns:repeat(4,minmax(0,1fr))}}._measureRo_1uc2g_16{display:flex;flex-direction:column;gap:2px;min-width:0}._measureRoLabel_1uc2g_17{font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._measureRoValue_1uc2g_18{overflow:hidden;text-overflow:ellipsis;font-size:14px;color:var(--text);white-space:nowrap;font-variant-numeric:tabular-nums}._measureRoValue_1uc2g_18 small{margin-left:3px;font-size:10.5px;color:var(--muted)}._measureRo_1uc2g_16[data-zone=hot] ._measureRoValue_1uc2g_18,._measureRo_1uc2g_16[data-zone=hot] ._measureRoWord_1uc2g_20{color:var(--warn)}._measureRo_1uc2g_16[data-zone=over] ._measureRoValue_1uc2g_18,._measureRo_1uc2g_16[data-zone=over] ._measureRoWord_1uc2g_20{color:var(--bad)}._measureLegend_1uc2g_22{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:11px;color:var(--muted)}._measureLegend_1uc2g_22 i{display:inline-block;vertical-align:middle;margin-right:4px;border-radius:1px}._measureScale_1uc2g_24{height:14px;font:10.5px var(--mono);color:var(--faint)}._measureScale_1uc2g_24>div{position:relative;height:100%}._measureScale_1uc2g_24 span{position:absolute;transform:translate(-50%);white-space:nowrap}._measureScaleIndent_1uc2g_27{padding:0 60px 0 22px}._measureScaleWords_1uc2g_28{display:flex;justify-content:space-between;font:10.5px var(--mono);color:var(--faint)}._lgNeedle_1uc2g_29{width:3px;height:10px;background:var(--hold)}._lgShort_1uc2g_30{width:12px;height:6px;border-radius:3px;background:var(--accent);opacity:.35}._lgMomentary_1uc2g_31{width:6px;height:6px;border-radius:50%!important;background:var(--muted)}._lgTarget_1uc2g_32{width:12px;height:8px;background:color-mix(in srgb,var(--target) 40%,transparent)}._lgLine_1uc2g_33{width:12px;height:2px;background:var(--accent)}._lgPrevious_1uc2g_34{width:12px;height:0;border-top:1px dashed var(--muted)}._spectrumGrid_1uc2g_35{stroke:var(--line);stroke-width:1}._spectrumBase_1uc2g_36{stroke:var(--line-2);stroke-width:1}._spectrumPrevious_1uc2g_37{fill:none;stroke:var(--muted);stroke-width:1;stroke-dasharray:3 3;opacity:.7}._spectrumCursor_1uc2g_38{stroke:var(--muted);stroke-width:1}._spectrumY_1uc2g_39{position:absolute;left:2px;transform:translateY(-110%);font-size:10px;color:var(--faint);pointer-events:none}._spectrumTip_1uc2g_40{position:absolute;z-index:2;top:4px;transform:translate(-50%);padding:3px 7px;border-radius:6px;font-size:11px;color:var(--text);background:var(--panel-2);border:1px solid var(--line-2);white-space:nowrap;pointer-events:none}._spectrumTip_1uc2g_40 [data-zone=hot]{color:var(--warn)}._spectrumTip_1uc2g_40 [data-zone=over]{color:var(--bad)}._measurePrevious_1uc2g_48{display:flex;justify-content:space-between;align-items:baseline;gap:8px;width:100%;border:0;border-top:1px solid var(--line);padding:9px 12px;background:transparent;font-size:11px;color:var(--muted);text-align:left;cursor:pointer}._measurePrevious_1uc2g_48:hover{background:var(--hover, rgba(127, 127, 127, .06));color:var(--text)}._measurePrevious_1uc2g_48:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}._measurePreviousDelta_1uc2g_55{font-weight:500;color:var(--text)}._lgTick_1uc2g_58{width:2px;height:10px;background:var(--hold)}._lgWas_1uc2g_59{width:3px;height:10px;border:1px solid var(--muted);background:var(--panel)}._lgNew_1uc2g_60{width:7px;height:7px;border-radius:50%!important;background:var(--accent)}._lgRange_1uc2g_61{width:12px;height:3px;background:var(--accent)}._lgNote_1uc2g_62{width:12px;height:6px;background:var(--muted);opacity:.5}._lgNoteNew_1uc2g_63{width:12px;height:6px;background:var(--accent)}._lgNoteGone_1uc2g_64{width:12px;height:6px;border:1px dashed var(--bad)}._lgNewMark_1uc2g_65{width:10px;height:8px;border:1.5px solid var(--accent)}._lgGoneMark_1uc2g_66{width:10px;height:8px;border:1px dashed var(--muted)}._evMore_1uc2g_67{font-size:11px;color:var(--faint)}._evWord_1uc2g_68{color:var(--warn)}._evRows_1uc2g_69{display:flex;flex-direction:column;gap:9px}._evRow_1uc2g_69{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;align-items:baseline}._evName_1uc2g_71{font-size:12px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._evName_1uc2g_71 small{margin-left:5px;font-size:11px;color:var(--faint)}._evVal_1uc2g_73{font-size:11.5px;color:var(--muted);white-space:nowrap;text-align:right}._evVal_1uc2g_73 b{font-weight:400;color:var(--text)}._evHot_1uc2g_75 ._evVal_1uc2g_73 b{color:var(--warn)}._evBar_1uc2g_76{grid-column:1 / -1;position:relative;height:12px}._evBar_1uc2g_76:before{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:var(--line-2)}._evFill_1uc2g_78{position:absolute;top:50%;height:3px;margin-top:-1.5px;border-radius:2px;background:var(--accent)}._evHot_1uc2g_75 ._evFill_1uc2g_78{background:var(--warn)}._evTick_1uc2g_80{position:absolute;top:1px;bottom:1px;width:2px;margin-left:-1px;border-radius:1px;background:var(--hold)}._evWas_1uc2g_81{position:absolute;top:-1px;bottom:-1px;width:3px;margin-left:-1.5px;border:1px solid var(--muted);border-radius:1px;background:var(--panel)}._evZero_1uc2g_82{position:absolute;top:2px;bottom:2px;width:1px;background:var(--faint)}._lgAi_1uc2g_83{width:12px;height:8px;border:1px solid var(--h0);background:color-mix(in srgb,var(--h0) 15%,transparent)}._lgEdge_1uc2g_84{width:2px;height:10px}._lgEdge_1uc2g_84:where([data-change=new]){background:var(--accent)}._lgEdge_1uc2g_84:where([data-change=moved]){background:var(--h1)}._lgEdge_1uc2g_84:where([data-change=changed]){background:var(--muted)}._lgStruck_1uc2g_88{text-decoration:line-through;color:var(--faint)}._lgSel_1uc2g_89{width:12px;height:8px;border-inline:1px solid var(--accent);background:color-mix(in srgb,var(--accent) 25%,transparent)}@container (max-width: 300px){._measureReadouts_1uc2g_12{grid-template-columns:repeat(2,minmax(0,1fr))}._evName_1uc2g_71{white-space:normal}}._offHints_1uc2g_95{display:flex;flex-direction:column;gap:3px;font-size:11.5px;color:var(--muted)}._offHints_1uc2g_95 .mono{color:var(--text)}._lgWarn_1uc2g_97{width:8px;height:8px;border-radius:2px;background:var(--warn)}._lgBad_1uc2g_98{width:8px;height:8px;border-radius:2px;background:var(--bad)}._lgSpan_1uc2g_99{width:12px;height:8px;border-inline:1px solid var(--accent);background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--accent) 45%,transparent) 0 2px,transparent 2px 4px)}._lgSpanCut_1uc2g_100{border-color:var(--bad);background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--bad) 45%,transparent) 0 2px,transparent 2px 4px)}._lgSpanSrc_1uc2g_101{width:12px;height:8px;border:1px dashed var(--accent)}._lgDot_1uc2g_102{width:8px;height:8px;border-radius:50%!important;background:var(--hold)}._lgWasDot_1uc2g_103{width:8px;height:8px;border-radius:50%!important;border:1.5px solid var(--muted);box-sizing:border-box}._drawer_cc7ns_1{position:fixed;top:0;right:0;bottom:0;z-index:10;width:min(400px,100vw);padding-top:env(safe-area-inset-top,0px);display:flex;flex-direction:column;background:var(--panel);border-left:1px solid var(--line-2);box-shadow:-16px 0 40px #00000073;animation:_drawer-in_cc7ns_1 .18s ease-out}@media (max-width: 720px){._drawer_cc7ns_1:not(._drawerSettings_cc7ns_13){width:100vw!important}}._drawerHead_cc7ns_15{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 14px 12px 18px;border-bottom:1px solid var(--line)}._drawerTitle_cc7ns_20{display:flex;align-items:center;gap:10px;min-width:0;font-size:13.5px;font-weight:600}._drawerTitle_cc7ns_20 .mono{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._drawerBody_cc7ns_22{flex:1;overflow-y:auto;padding:16px 18px 20px;display:flex;flex-direction:column;gap:16px}._resultBadge_cc7ns_23{align-self:flex-start;padding:3px 9px;border-radius:999px;font-size:11.5px;font-weight:600}._resultBadge_cc7ns_23:where([data-outcome=ok]){color:var(--live);background:#4ade8017;border:1px solid rgba(74,222,128,.25)}._resultBadge_cc7ns_23:where([data-outcome=error]){color:var(--bad);background:#f8717117;border:1px solid rgba(248,113,113,.28)}._resultBadge_cc7ns_23:where([data-outcome=refused]){color:var(--warn);background:#f5b84b14;border:1px solid rgba(245,184,75,.28)}._facts_cc7ns_31{display:grid;grid-template-columns:104px 1fr;gap:9px 12px;margin:0;font-size:12.5px}._drawerBody_cc7ns_22{container-type:inline-size}@container (max-width: 340px){._facts_cc7ns_31{grid-template-columns:76px minmax(0,1fr);gap:9px 10px}._facts_cc7ns_31 ._factWide_cc7ns_40{display:none}}._facts_cc7ns_31 dt{color:var(--faint)}._facts_cc7ns_31 dd{min-width:0;margin:0;color:var(--text);word-break:break-word;user-select:text}._facts_cc7ns_31 .mono{font-size:12px}._codeBlock_cc7ns_45{border:1px solid var(--line-2);border-radius:10px;overflow:hidden}._codeHead_cc7ns_46{display:flex;justify-content:space-between;align-items:center;padding:6px 10px;background:var(--panel-2);font-size:11px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}._codeBlock_cc7ns_45 pre{margin:0;padding:10px 12px;max-height:260px;overflow:auto;font-family:var(--mono);font-size:12px;line-height:1.5;color:var(--text);white-space:pre-wrap;word-break:break-word;user-select:text}._drawerNote_cc7ns_57 a{color:var(--accent)}._drawerSettings_cc7ns_13{z-index:11;width:min(380px,100vw)}._drawerHint_cc7ns_61{margin:auto 0 0;color:var(--faint);font-size:11px;text-align:center}@media (prefers-reduced-motion: reduce){._drawer_cc7ns_1{animation:none}}._drawerBody_cc7ns_22>:not(._drawerGrow_cc7ns_67){flex-shrink:0}._drawerNote_cc7ns_57{margin:0;font-size:12.5px;color:var(--muted);line-height:1.5}@keyframes _drawer-in_cc7ns_1{0%{transform:translate(24px);opacity:0}}._segSm_1bgq3_1 button{padding:2px 9px;font-size:11.5px}._seg_1bgq3_1{display:inline-flex;padding:2px;background:var(--bg);border:1px solid var(--line);border-radius:8px}._seg_1bgq3_1 button{border:0;background:none;padding:4px 10px;border-radius:6px;color:var(--muted);display:inline-flex;align-items:center;gap:6px}._seg_1bgq3_1 button[aria-selected=true]{background:var(--panel-2);color:var(--text);box-shadow:0 0 0 1px var(--line-2)}._chips_1bgq3_11{display:flex;gap:6px;flex-wrap:wrap;padding:7px 8px;border-bottom:1px solid var(--line)}._chip_1bgq3_11{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 9px;border-radius:999px;border:1px solid var(--line);background:none;color:var(--muted);font-size:12px}._chip_1bgq3_11:hover{border-color:var(--line-2);color:var(--text)}._chip_1bgq3_11[aria-selected=true]{background:var(--panel-2);border-color:#3c414a;color:var(--text)}._rows_1bgq3_26{flex:1;overflow-y:auto;padding:4px 0}._rows_1bgq3_26::-webkit-scrollbar{width:10px}._rows_1bgq3_26::-webkit-scrollbar-thumb{background:var(--line-2);border-radius:10px;border:3px solid var(--panel)}._empty_1bgq3_29{padding:48px 16px;text-align:center;color:var(--faint)}._tag_1bgq3_30{padding:1px 7px;border-radius:999px;border:1px solid var(--line-2);font-size:11px;color:var(--muted);white-space:nowrap}._combo_1dtrr_2{position:relative}._comboTrigger_1dtrr_3{display:inline-flex;align-items:center;gap:6px;padding:3px 8px 3px 10px;border-radius:8px;background:var(--bg);border:1px solid var(--line);font-size:11.5px;color:var(--text)}._comboTrigger_1dtrr_3:hover,._comboTrigger_1dtrr_3[aria-expanded=true]{border-color:var(--line-2)}._comboTrigger_1dtrr_3:focus-visible,._comboList_1dtrr_10:focus-visible{outline:2px solid var(--accent);outline-offset:1px}._comboChevron_1dtrr_11{width:12px;height:12px;color:var(--muted)}._comboList_1dtrr_10{position:absolute;right:0;top:calc(100% + 4px);z-index:10;min-width:190px;max-height:320px;overflow-y:auto;margin:0;padding:4px;list-style:none;background:#0b0c0e;border:1px solid var(--line-2);border-radius:10px;box-shadow:0 12px 32px #00000080}._comboOption_1dtrr_19{display:flex;align-items:flex-start;gap:6px;padding:5px 8px 5px 4px;border-radius:6px;cursor:pointer}._comboOptionHl_1dtrr_23{background:var(--panel-2)}._comboCheck_1dtrr_24{flex:none;width:14px;height:14px;margin-top:1px;color:var(--accent)}._comboCheck_1dtrr_24 svg{width:14px;height:14px;display:block}._comboText_1dtrr_26{display:grid}._comboLabel_1dtrr_27{font-size:12px;color:var(--text)}._comboHint_1dtrr_28{font-size:10.5px;color:var(--faint)}._comboTriggerText_1dtrr_29{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._comboListFixed_1dtrr_30{position:fixed;right:auto;max-height:none;min-width:200px}._comboGroup_1dtrr_31+._comboGroup_1dtrr_31{margin-top:4px;padding-top:4px;border-top:1px solid var(--line)}._comboHeading_1dtrr_32{padding:4px 8px 2px 24px;font-size:10.5px;color:var(--faint);text-transform:uppercase;letter-spacing:.06em}._comboOptionOff_1dtrr_33{cursor:default;opacity:.45}._comboLabel_1dtrr_27 .sdot{margin-right:6px}._comboLabel_1dtrr_27 .count{margin-left:6px}._mark_1i7uv_2{width:34px;height:34px;flex:none;display:block}._mark_1i7uv_2 ._markArc_1i7uv_3{stroke:#d9d3e6;opacity:.55;transition:opacity .3s}._mark_1i7uv_2 ._markDot_1i7uv_4{fill:var(--faint);transition:fill .3s}._mark_1i7uv_2 ._markGlow_1i7uv_5{opacity:0;transition:opacity .3s}._markActive_1i7uv_6 ._markArc_1i7uv_3,._markActive_1i7uv_6 ._markGlow_1i7uv_5{opacity:1}._markActive_1i7uv_6 ._markDot_1i7uv_4{fill:url(#mark-dot)}._markBtn_1i7uv_11{--lid-rest: 0px}._mark_1i7uv_2 ._markLidRest_1i7uv_12{transition:transform .22s ease-out}@media (hover: hover){._markBtn_1i7uv_11:hover{--lid-rest: 46px}._markBtn_1i7uv_11:hover ._markLidRest_1i7uv_12{transform:translateY(46px)}}._markActive_1i7uv_6 ._markLid_1i7uv_12{animation:_blink_1i7uv_1 16s infinite}._mark_1i7uv_2._markBlink_1i7uv_25 ._markLid_1i7uv_12{animation:_blink-once_1i7uv_1 .24s}._mark_1i7uv_2 ._markEye_1i7uv_26{transition:transform .18s ease-out}._markBtn_1i7uv_11{display:block;flex:none;padding:0;border:0;background:none;border-radius:9px;cursor:pointer}._markBtn_1i7uv_11:focus-visible{outline:2px solid var(--accent);outline-offset:2px}@media (prefers-reduced-motion: reduce){._markActive_1i7uv_6 ._markLid_1i7uv_12,._mark_1i7uv_2._markBlink_1i7uv_25 ._markLid_1i7uv_12{animation:none}._mark_1i7uv_2 ._markLidRest_1i7uv_12,._mark_1i7uv_2 ._markEye_1i7uv_26{transition:none}}@keyframes _blink_1i7uv_1{0%,44%,96%{transform:translateY(0);animation-timing-function:ease-in}44.5%,96.5%,97.8%{transform:translateY(calc(140px - var(--lid-rest)));animation-timing-function:ease-out}45.4%,97.3%,98.7%,to{transform:translateY(0);animation-timing-function:ease-in}}@keyframes _blink-once_1i7uv_1{0%{transform:translateY(0);animation-timing-function:ease-in}35%{transform:translateY(calc(140px - var(--lid-rest)));animation-timing-function:ease-out}to{transform:translateY(0)}}._md_3devl_1>:first-child{margin-top:8px}._md_3devl_1 p,._md_3devl_1 ul,._md_3devl_1 ol,._md_3devl_1 blockquote,._md_3devl_1 ._mdTable_3devl_2,._md_3devl_1 pre{margin:8px 0}._md_3devl_1 h3,._md_3devl_1 h4,._md_3devl_1 h5,._md_3devl_1 h6{margin:16px 0 6px;font-size:12px;font-weight:600;color:var(--text)}._md_3devl_1 h3{font-size:13px}._md_3devl_1 h5,._md_3devl_1 h6{color:var(--muted)}._md_3devl_1 ul,._md_3devl_1 ol{padding-left:18px}._md_3devl_1 li{margin:3px 0}._md_3devl_1 li>ul{margin:3px 0}._md_3devl_1 strong{font-weight:600;color:var(--text)}._md_3devl_1 em{color:var(--muted)}._md_3devl_1 code{font-family:var(--mono);font-size:11.5px;padding:1px 4px;border-radius:4px;background:#ffffff0f}._md_3devl_1 pre{padding:8px 10px;border-radius:7px;background:var(--bg);overflow-x:auto;max-height:none}._md_3devl_1 pre code{padding:0;background:none}._md_3devl_1 a{color:var(--accent)}._md_3devl_1 blockquote{padding-left:10px;border-left:2px solid var(--line-2);color:var(--muted)}._md_3devl_1 hr{border:0;border-top:1px solid var(--line);margin:12px 0}._mdTable_3devl_2{overflow-x:auto}._md_3devl_1 table{border-collapse:collapse;width:100%;font-size:11.5px}._md_3devl_1 th,._md_3devl_1 td{padding:4px 8px;border:1px solid var(--line);text-align:left;vertical-align:top;overflow-wrap:normal;word-break:normal;hyphens:auto}._md_3devl_1 th{white-space:nowrap}._md_3devl_1 th{color:var(--muted);font-weight:600;background:#ffffff05}._notice_16p09_1{display:flex;align-items:center;gap:10px;padding:7px 8px 7px 12px;min-height:38px;border-radius:10px;border:1px solid var(--line-2);background:var(--panel);font-size:12.5px;color:var(--muted)}._notice_16p09_1 b{color:var(--text);font-weight:600}._notice_16p09_1 a{color:var(--accent)}._noticeText_16p09_11{flex:1;min-width:0}._noticeDot_16p09_12{width:7px;height:7px;border-radius:50%;flex:none;background:var(--tone)}._notice_16p09_1:where([data-tone=warn]){--tone: var(--warn);border-color:#f5b84b4d;background:#f5b84b0f}._notice_16p09_1:where([data-tone=bad]){--tone: var(--bad);border-color:#f871714d;background:#f871710f}._notice_16p09_1:where([data-tone=info]){--tone: var(--accent);border-color:#7cc4ff38;background:#7cc4ff0d}._resizeHandle_1uoua_2{position:absolute;top:0;bottom:0;left:-12px;width:24px;z-index:1;cursor:col-resize;touch-action:none;user-select:none;outline:none}._resizeHandle_1uoua_2:after{content:"";position:absolute;top:0;bottom:0;left:50%;width:2px;transform:translate(-50%);background:linear-gradient(to bottom,transparent,var(--accent),transparent);opacity:0;transition:opacity .2s}._resizeHandle_1uoua_2:hover:after,._resizeHandle_1uoua_2:focus-visible:after,._resizeHandle_1uoua_2[data-resizing]:after{opacity:1}body:has(._resizeHandle_1uoua_2[data-resizing]){cursor:col-resize;user-select:none}@media (max-width: 720px){._resizeHandle_1uoua_2{display:none}}._toggle_1b0k2_1{position:relative;display:flex;align-items:flex-start;gap:14px;padding:10px 12px;margin:0 -12px;border-radius:9px;cursor:pointer}._toggle_1b0k2_1:hover{background:#ffffff06}._toggleDisabled_1b0k2_8{cursor:default;opacity:.55}._toggleText_1b0k2_9{flex:1;display:grid;gap:3px}._toggleLabel_1b0k2_10{font-size:13px;color:var(--text)}._toggleHint_1b0k2_11{font-size:11.5px;color:var(--faint);line-height:1.45}._toggle_1b0k2_1 input{position:absolute;opacity:0;pointer-events:none}._switch_1b0k2_13{position:relative;flex:none;margin-top:1px;width:32px;height:18px;border-radius:999px;background:var(--line-2);transition:background .15s}._switch_1b0k2_13:after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:#c9cdd3;transition:transform .15s,background .15s}._toggle_1b0k2_1 input:checked+._switch_1b0k2_13{background:#4ade808c}._toggle_1b0k2_1 input:checked+._switch_1b0k2_13:after{transform:translate(14px);background:#fff}._toggle_1b0k2_1 input:focus-visible+._switch_1b0k2_13{box-shadow:0 0 0 2px var(--bg),0 0 0 4px #7cc4ff99}@media (prefers-reduced-motion: reduce){._switch_1b0k2_13,._switch_1b0k2_13:after{transition:none}}._host_1q3ob_1{position:relative;cursor:default}._tip_1q3ob_2{position:absolute;z-index:3;bottom:calc(100% + 6px);left:50%;transform:translate(calc(-50% + var(--shift, 0px)));width:max-content;max-width:280px;padding:3px 7px;border-radius:6px;font-size:11px;line-height:1.5;font-weight:400;text-align:left;white-space:normal;color:var(--text);background:var(--panel-2);border:1px solid var(--line-2);pointer-events:none}._line_1q3ob_8{display:block}._scrim_1hgzr_1{position:fixed;inset:0;z-index:50;display:flex;justify-content:center;align-items:flex-start;padding:12vh 16px 16px;background:#0506088c;animation:_scrim-in_1hgzr_1 .14s ease-out}._scrim_1hgzr_1._leaving_1hgzr_2{animation:_scrim-out_1hgzr_1 .12s ease-in forwards;pointer-events:none}@keyframes _scrim-in_1hgzr_1{0%{opacity:0}}@keyframes _scrim-out_1hgzr_1{to{opacity:0}}@keyframes _dialog-in_1hgzr_1{0%{opacity:0;transform:translateY(-8px) scale(.98)}}@keyframes _dialog-out_1hgzr_1{to{opacity:0;transform:translateY(-6px) scale(.98)}}@media (prefers-reduced-motion: reduce){._scrim_1hgzr_1,._scrim_1hgzr_1._leaving_1hgzr_2,._dialog_1hgzr_7,._leaving_1hgzr_2 ._dialog_1hgzr_7{animation-duration:1ms}}._dialog_1hgzr_7{width:min(560px,100%);max-height:min(70vh,560px);display:flex;flex-direction:column;overflow:hidden;background:var(--panel);border:1px solid var(--line-2);border-radius:12px;box-shadow:0 24px 60px #0000008c;color:var(--text);outline:0;animation:_dialog-in_1hgzr_1 .16s cubic-bezier(.2,.8,.2,1)}._leaving_1hgzr_2 ._dialog_1hgzr_7{animation:_dialog-out_1hgzr_1 .12s ease-in forwards}._inputRow_1hgzr_14{display:flex;align-items:center;gap:8px;padding:0 14px;border-bottom:1px solid var(--line)}._input_1hgzr_14{flex:1;min-width:0;height:46px;border:0;outline:0;background:none;color:var(--text);font:inherit;font-size:14.5px}._input_1hgzr_14::placeholder{color:var(--faint)}._crumb_1hgzr_17{flex:none;height:24px;padding:0 8px;border:1px solid var(--line-2);border-radius:6px;background:var(--panel-2);color:var(--muted);font:inherit;font-size:12px}._list_1hgzr_18{flex:1;overflow-y:auto;padding:4px 6px 6px}._groupLabel_1hgzr_19{padding:8px 8px 4px;font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--faint)}._row_1hgzr_20{display:flex;align-items:center;gap:10px;padding:7px 8px;border-radius:7px;cursor:pointer}._row_1hgzr_20[aria-selected=true]{background:var(--panel-2);box-shadow:0 0 0 1px var(--line-2)}._icon_1hgzr_22{display:inline-flex;color:var(--muted)}._label_1hgzr_23{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._kbd_1hgzr_24{flex:none;padding:1px 6px;border:1px solid var(--line-2);border-radius:5px;background:var(--bg);color:var(--muted);font:11.5px var(--mono)}._empty_1hgzr_25{padding:28px 12px;text-align:center;color:var(--faint)}._foot_1hgzr_26{display:flex;gap:14px;padding:7px 14px;border-top:1px solid var(--line);font-size:11.5px;color:var(--faint)}._trigger_1hgzr_27{display:inline-flex;align-items:center;height:28px;padding:0 4px;border:0;background:none;cursor:pointer}._trigger_1hgzr_27:hover ._kbd_1hgzr_24{color:var(--text);border-color:#3c414a}._helpHead_1hgzr_29{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid var(--line)}._helpBody_1hgzr_30{overflow-y:auto;padding:0 14px 12px}._helpRow_1hgzr_31{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:4px 0}._trail_1hgzr_32{color:var(--faint)}._row_1hgzr_20[data-menu] ._label_1hgzr_23{font-weight:500}._menuMark_1hgzr_35{display:inline-flex;align-items:center;gap:4px;flex:none;color:var(--faint);font-size:11.5px}._row_1hgzr_20[data-menu][aria-selected=true] ._menuMark_1hgzr_35{color:var(--text)}._timeline_owk4p_1{flex:none;padding:10px 14px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}._timelineHead_owk4p_8{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:10px}._timelineTitle_owk4p_12{font-size:12px;font-weight:600}._timelineSub_owk4p_13{margin-left:6px;font-weight:400;color:var(--faint);font-size:11.5px}._timelineControls_owk4p_14{display:flex;align-items:center;gap:14px;flex-wrap:wrap}._legend_owk4p_15{display:inline-flex;align-items:center;gap:6px;color:var(--faint);font-size:11px}._lg_owk4p_16{display:inline-block;width:7px;height:7px;border-radius:2px;margin-left:6px}._lgOk_owk4p_17{background:var(--bar)}._lgSlow_owk4p_18{background:var(--warn)}._lgErr_owk4p_19{background:var(--bad)}._timelineChart_owk4p_20{display:flex;gap:8px;height:84px}._yAxis_owk4p_21{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;min-width:18px;font-size:10px;color:var(--faint);font-variant-numeric:tabular-nums;margin:-6px 0}._plot_owk4p_27{position:relative;flex:1;display:flex;align-items:stretch;gap:2px}._grid_owk4p_28{position:absolute;inset:0;background:linear-gradient(var(--line),var(--line)) 0 0 / 100% 1px no-repeat,linear-gradient(var(--line),var(--line)) 0 50% / 100% 1px no-repeat,linear-gradient(var(--line-2),var(--line-2)) 0 100% / 100% 1px no-repeat;pointer-events:none}._tbar_owk4p_36{position:relative;flex:1;display:flex;align-items:flex-end;min-width:2px}._tbarHover_owk4p_37:before{content:"";position:absolute;inset:0 -1px;border-radius:3px;background:#ffffff0d}._tstack_owk4p_41{position:relative;width:100%;display:flex;flex-direction:column;border-radius:2px 2px 0 0;overflow:hidden;transition:height .3s ease}._tstack_owk4p_41 span{display:block;min-height:1px}._segOk_owk4p_48{background:var(--bar)}._segSlow_owk4p_49{background:var(--warn)}._segErr_owk4p_50{background:var(--bad)}._tbarHover_owk4p_37 ._tstack_owk4p_41{filter:brightness(1.25)}._plot_owk4p_27{cursor:crosshair;user-select:none;touch-action:none}._plotDense_owk4p_55{gap:1px}._plotPicking_owk4p_56 ._tbar_owk4p_36:not(._tbarPicked_owk4p_56) ._tstack_owk4p_41{opacity:.35}._tbarPicked_owk4p_56:after{content:"";position:absolute;inset:0 -1px;pointer-events:none;background:#7cc4ff1a;border-top:1px solid rgba(124,196,255,.5)}._xPicked_owk4p_62{color:var(--accent)}._xAxis_owk4p_63{display:flex;justify-content:space-between;margin:6px 0 0 26px;font-size:10.5px;color:var(--faint);font-variant-numeric:tabular-nums}._ttip_owk4p_68{position:absolute;bottom:calc(100% + 8px);min-width:130px;padding:7px 9px;border-radius:8px;background:#0b0c0e;border:1px solid var(--line-2);box-shadow:0 8px 24px #00000073;font-size:11.5px;color:var(--muted);pointer-events:none;z-index:3;display:grid;gap:3px}._ttip_owk4p_68:where([data-align=center]){transform:translate(-50%)}._ttip_owk4p_68:where([data-align=end]){transform:translate(-100%)}._ttipTime_owk4p_80{color:var(--faint);font-size:10.5px;font-variant-numeric:tabular-nums;margin-bottom:1px}._ttipRow_owk4p_81{display:flex;align-items:center;gap:2px;white-space:nowrap}._ttipRow_owk4p_81 b{color:var(--text);margin-right:4px}._ttipRow_owk4p_81 ._lg_owk4p_16{margin:0 4px 0 0}._ttipMuted_owk4p_84{color:var(--faint)}@media (max-width: 720px){._timelineChart_owk4p_20{height:56px}._timelineSub_owk4p_13{display:none}}@media (prefers-reduced-motion: reduce){._tstack_owk4p_41{transition:none}}._header_1b0or_1{flex:none;display:flex;align-items:center;justify-content:space-between;gap:16px}._brand_1b0or_2{display:flex;align-items:center;gap:12px;min-width:0}._brand_1b0or_2 h1{margin:0;font-size:15px;font-weight:600;letter-spacing:-.01em}._brandText_1b0or_4{min-width:0}._sub_1b0or_5{display:flex;align-items:center;margin:1px 0 0;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._subProject_1b0or_15{min-width:0;overflow:hidden;text-overflow:ellipsis;direction:rtl;text-align:left}._subVersion_1b0or_16{flex:none}._pill_1b0or_17{display:inline-flex;align-items:center;gap:7px;padding:5px 11px;border-radius:999px;font-size:12px;font-weight:500;border:1px solid var(--line-2);background:var(--panel);white-space:nowrap}._pillDot_1b0or_26{width:7px;height:7px;border-radius:50%;background:currentColor}._pill_1b0or_17:where([data-state=live]){color:var(--live);border-color:#4ade8040;background:#4ade8012}._pill_1b0or_17:where([data-state=live]) ._pillDot_1b0or_26{box-shadow:0 0 #4ade8099;animation:_ping_1b0or_1 2s infinite}._pill_1b0or_17:where([data-state=stale]){color:var(--warn);border-color:#f5b84b40;background:#f5b84b12}._pill_1b0or_17:where([data-state=offline]){color:var(--muted)}._headerActions_1b0or_31{flex:none;display:flex;align-items:center;gap:8px}._iconLink_1b0or_32{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;color:var(--muted);border:1px solid transparent;transition:color .15s,background .15s,border-color .15s}._iconLink_1b0or_32:hover{color:var(--text);background:var(--panel-2);border-color:var(--line-2)}button._iconLink_1b0or_32{background:none;padding:0}._agents_1b0or_41{display:inline-flex;align-items:center;gap:7px;padding:0 10px 0 8px;height:26px;border-radius:999px;font-size:12px;color:var(--faint);white-space:nowrap;cursor:default}._agentsOn_1b0or_48{color:var(--muted)}button._agents_1b0or_41{border:1px solid transparent;background:none;cursor:pointer;font:inherit;font-size:12px}button._agents_1b0or_41:hover{color:var(--text);background:var(--panel-2);border-color:var(--line-2)}._agentsDots_1b0or_51{display:inline-flex}._agentsDots_1b0or_51 i{width:8px;height:8px;border-radius:50%;background:var(--hue);box-shadow:0 0 0 2px var(--bg)}._agentsDots_1b0or_51 i+i{margin-left:-2px}@media (max-width: 720px){._agents_1b0or_41{display:none}}@media (prefers-reduced-motion: reduce){._pill_1b0or_17:where([data-state=live]) ._pillDot_1b0or_26{animation:none}}._headerMenu_1b0or_68{position:relative;display:none}._headerMenuFlag_1b0or_69{position:relative}._headerMenuFlag_1b0or_69:after{content:"";position:absolute;top:5px;right:5px;width:6px;height:6px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 2px var(--bg)}._menu_1b0or_75{position:absolute;top:calc(100% + 6px);right:0;z-index:30;min-width:180px;padding:4px;display:flex;flex-direction:column;border:1px solid var(--line-2);border-radius:10px;background:var(--panel-2);box-shadow:0 8px 24px #0000004d}._menu_1b0or_75>a,._menu_1b0or_75>button{display:flex;align-items:center;gap:6px;padding:7px 10px;border:0;border-radius:6px;background:none;color:var(--text);font:inherit;font-size:12.5px;text-align:left;text-decoration:none;cursor:pointer}._menu_1b0or_75>a:hover,._menu_1b0or_75>button:hover,._menu_1b0or_75>a:focus-visible,._menu_1b0or_75>button:focus-visible{background:var(--panel);outline:none}._menuAccent_1b0or_89{color:var(--accent)!important;font-weight:600}._menuCheck_1b0or_90{width:12px;flex:none;color:var(--accent)}._menu_1b0or_75>a,._menu_1b0or_75>button:not(:has(._menuCheck_1b0or_90)){padding-left:28px}@media (max-height: 640px){._headerActions_1b0or_31>._iconLink_1b0or_32,._headerActions_1b0or_31>._btnRebuild_1b0or_94{display:none}._headerMenu_1b0or_68{display:block}}@keyframes _ping_1b0or_1{70%{box-shadow:0 0 0 6px #4ade8000}to{box-shadow:0 0 #4ade8000}}._hlLevel_s6mov_2{display:grid;grid-template-columns:14px minmax(0,1fr) 52px;align-items:center;gap:8px}._hlLabel_s6mov_3{font-size:11px;color:var(--muted)}._hlValue_s6mov_4{font-size:12px;text-align:right;color:var(--text);font-variant-numeric:tabular-nums}._hlValue_s6mov_4[data-zone=hot]{color:var(--warn)}._hlValue_s6mov_4[data-zone=over]{color:var(--bad)}._hlTrack_s6mov_7{display:block;position:relative;height:12px}._hlTrack_s6mov_7:before{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:var(--line-2)}._hlFill_s6mov_9{position:absolute;top:50%;height:3px;margin-top:-1.5px;border-radius:2px;background:var(--accent)}._hlHold_s6mov_10{position:absolute;top:0;bottom:0;width:1.5px;margin-left:-.75px;background:var(--hold)}._hlZero_s6mov_11{position:absolute;top:2px;bottom:2px;width:1px;background:var(--faint)}._hlCentre_s6mov_12{position:absolute;left:50%;top:1px;bottom:1px;width:1px;background:var(--faint)}._hlDot_s6mov_13{position:absolute;top:50%;width:8px;height:8px;margin:-4px 0 0 -4px;border-radius:50%;background:var(--hold);box-shadow:0 0 0 2px var(--panel)}._hlHold_s6mov_10[data-zone=hot]{background:var(--warn)}._hlHold_s6mov_10[data-zone=over],._hlDot_s6mov_13[data-zone=over]{background:var(--bad)}._hlWas_s6mov_18{position:absolute;top:-2px;bottom:-2px;width:0;border-left:1px dashed var(--muted);opacity:.8}._hlWasHold_s6mov_19{position:absolute;top:-1px;bottom:-1px;width:3px;margin-left:-1.5px;border:1px solid var(--muted);border-radius:1px;opacity:.8}._hlWasDot_s6mov_20{position:absolute;top:50%;width:8px;height:8px;margin:-4px 0 0 -4px;border-radius:50%;border:1.5px solid var(--muted);background:var(--panel);box-sizing:border-box}._hlFillLevel_s6mov_24{left:0;right:0;background:linear-gradient(90deg,var(--accent) 0%,var(--accent) 72.7%,var(--warn) 81.8%,var(--bad) 90.9%,var(--bad) 100%)}._hlFillCorrelation_s6mov_30{left:0;right:0;background:linear-gradient(90deg,var(--bad) 0%,color-mix(in srgb,var(--bad) 45%,var(--muted)) 45%,var(--muted) 50%,var(--accent) 70%,var(--accent) 100%)}._offAlign_19zpk_1{position:relative;height:40px;margin-block:14px 10px}._offAlign_19zpk_1:before{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:var(--line-2)}._offAlign_19zpk_1 ._offAlignFill_19zpk_3{top:50%}._offAlignRef_19zpk_4,._offAlignTrk_19zpk_4{position:absolute;top:4px;bottom:4px;width:2px;margin-left:-1px;background:var(--muted)}._offAlignTrk_19zpk_4{background:var(--hold)}._offAlignTrk_19zpk_4._offInv_19zpk_6{background:var(--warn)}._offAlignRef_19zpk_4 b,._offAlignTrk_19zpk_4 b{position:absolute;left:50%;transform:translate(-50%);font:10.5px var(--mono);font-weight:400;color:var(--muted);white-space:nowrap;max-width:120px;overflow:hidden;text-overflow:ellipsis}._offAlignRef_19zpk_4 b{top:-14px}._offAlignTrk_19zpk_4 b{bottom:-14px;color:var(--text)}._bars_113rx_2{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:3px;margin:10px 0 4px}._col_113rx_3{display:flex;flex-direction:column;align-items:stretch;gap:3px;min-width:0;text-align:center}._track_113rx_4{position:relative;height:84px;border-bottom:1px solid var(--line-2)}._fill_113rx_5{position:absolute;left:0;right:0;bottom:0;border-radius:2px 2px 0 0;background:var(--faint);opacity:.45}._col_113rx_3:where([data-scale=in]) ._fill_113rx_5{background:var(--accent);opacity:.55}._col_113rx_3:where([data-scale=tonic]) ._fill_113rx_5{background:var(--accent);opacity:1}._was_113rx_8{position:absolute;left:10%;right:10%;height:0;border-top:1px dashed var(--muted)}._pc_113rx_9{font-size:10.5px;color:var(--muted);overflow:hidden}._col_113rx_3:where([data-scale=tonic]) ._pc_113rx_9{color:var(--accent);font-weight:600}._deg_113rx_11{min-height:1.2em;font-size:9.5px;color:var(--faint)}@container (max-width: 300px){._deg_113rx_11{display:none}._bars_113rx_2{gap:2px}}._lgTonic_113rx_13{width:8px;height:10px;border-radius:2px 2px 0 0;background:var(--accent)}._lgIn_113rx_14{width:8px;height:10px;border-radius:2px 2px 0 0;background:color-mix(in srgb,var(--accent) 55%,transparent)}._lgOut_113rx_15{width:8px;height:10px;border-radius:2px 2px 0 0;background:color-mix(in srgb,var(--faint) 45%,transparent)}._chart_nls73_2{display:flex;flex-wrap:wrap;gap:3px;margin:10px 0 4px;padding:0;list-style:none}._chord_nls73_3{display:flex;flex-direction:column;justify-content:center;gap:1px;flex:0 0 auto;min-width:3.4em;max-width:100%;padding:4px 6px;border-radius:3px;border:1px solid transparent;background:color-mix(in srgb,var(--accent) 22%,transparent)}._chord_nls73_3:where([data-place=out]){background:color-mix(in srgb,var(--warn) 22%,transparent)}._chord_nls73_3:where([data-place=none]){background:transparent;border:1px dashed var(--line-2)}._chord_nls73_3:where([data-place=unknown]){background:color-mix(in srgb,var(--faint) 25%,transparent)}._name_nls73_10{font-size:12px;font-weight:600;white-space:nowrap}._chord_nls73_3:where([data-place=none]) ._name_nls73_10{color:var(--faint);font-weight:400}._roman_nls73_12{min-height:1.2em;font-size:10px;color:var(--muted);white-space:nowrap}._lgIn_nls73_13{width:10px;height:10px;border-radius:2px;background:color-mix(in srgb,var(--accent) 22%,transparent)}._lgOut_nls73_14{width:10px;height:10px;border-radius:2px;background:color-mix(in srgb,var(--warn) 22%,transparent)}._lgNone_nls73_15{width:10px;height:10px;border-radius:2px;border:1px dashed var(--line-2)}._lufsBig_1ydsm_2{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}._lufsBig_1ydsm_2 b{font-size:34px;line-height:1;font-weight:500;letter-spacing:-.02em;color:var(--text);font-variant-numeric:tabular-nums}._lufsBig_1ydsm_2 small{font-size:12px;color:var(--muted)}._lufsDelta_1ydsm_5{margin-left:auto;font-size:12px;color:var(--muted)}._lufsDelta_1ydsm_5._lufsOn_1ydsm_6{color:var(--live)}._lufsDelta_1ydsm_5._lufsOver_1ydsm_7{color:var(--warn)}._lufsTrack_1ydsm_8{display:block;position:relative;height:8px;margin-top:16px;border-radius:4px;background:var(--bg);box-shadow:inset 0 0 0 1px var(--line)}._lufsShort_1ydsm_9{position:absolute;left:0;top:0;bottom:0;border-radius:4px;background:var(--accent);opacity:.35}._lufsMomentary_1ydsm_10{position:absolute;top:50%;width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:50%;background:var(--muted)}._lufsNeedle_1ydsm_11{position:absolute;top:-5px;bottom:-5px;width:3px;margin-left:-1.5px;border-radius:2px;background:var(--hold);box-shadow:0 0 0 2px var(--panel)}._lufsWas_1ydsm_12{position:absolute;top:-5px;bottom:-5px;width:3px;margin-left:-1.5px;border:1px solid var(--muted);border-radius:2px;background:var(--panel)}._lufsTarget_1ydsm_13{position:absolute;top:-4px;bottom:-4px;border-radius:3px;background:color-mix(in srgb,var(--target) 22%,transparent)}._lufsWas_1ydsm_12._offRef_1ydsm_14{border-color:var(--target)}._spectrum_1x9na_2{position:relative}._spectrum_1x9na_2 svg{display:block;width:100%;height:120px;cursor:crosshair}._spectrumArea_1x9na_4{fill-opacity:.1}._spectrumLine_1x9na_5{fill:none;stroke-width:1.4;stroke-linejoin:round}._spectrumX_1x9na_6{position:relative;height:14px;font-size:10.5px;color:var(--faint)}._spectrumX_1x9na_6 span{position:absolute;transform:translate(-50%)}._line_1dpsh_2{fill:none;stroke:var(--accent);stroke-width:1.4;stroke-linejoin:round}._target_1dpsh_3{stroke:var(--target);stroke-width:1;stroke-dasharray:4 3}._integrated_1dpsh_4{stroke:var(--hold);stroke-width:1;stroke-dasharray:1 3}._over_1dpsh_5{fill:var(--warn);fill-opacity:.14}._loud_1dpsh_6{fill:var(--accent);fill-opacity:.1}._quiet_1dpsh_7{fill:var(--muted);fill-opacity:.08}._lgTarget_1dpsh_8{width:12px;height:0;border-top:1px dashed var(--target)}._lgOver_1dpsh_9{width:10px;height:8px;background:color-mix(in srgb,var(--warn) 30%,transparent)}._lgLoud_1dpsh_10{width:10px;height:8px;background:color-mix(in srgb,var(--accent) 22%,transparent)}._lgIntegrated_1dpsh_11{width:12px;height:0;border-top:1px dotted var(--hold)}._lgQuiet_1dpsh_12{width:10px;height:8px;background:color-mix(in srgb,var(--muted) 18%,transparent)}._mask_cjupa_2{display:flex;flex-direction:column;gap:3px}._row_cjupa_3{display:grid;grid-template-columns:minmax(64px,30%) minmax(0,1fr) 32px;gap:8px;align-items:center}._name_cjupa_4{font-size:11.5px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._cells_cjupa_5{display:grid;gap:1px;height:14px}._cells_cjupa_5>span{border-radius:1px;background:color-mix(in srgb,var(--accent) var(--o, 100%),transparent)}._cells_cjupa_5>span._hot_cjupa_7{background:color-mix(in srgb,var(--warn) var(--o, 100%),transparent)}._score_cjupa_8{font-size:11px;color:var(--muted);text-align:right}._axis_cjupa_9{height:14px}._marks_cjupa_10{position:relative;height:14px}._marks_cjupa_10>span{position:absolute;transform:translate(-50%);font:10px var(--mono);color:var(--faint)}._marks_cjupa_10>span._markEnd_cjupa_12{right:0;transform:none}@container (max-width: 300px){._mask_cjupa_2{gap:8px}._row_cjupa_3{grid-template-columns:minmax(0,1fr) 30px;row-gap:2px}._name_cjupa_4{grid-column:1 / -1}._axis_cjupa_9 ._name_cjupa_4{display:none}}._lgFaint_cjupa_19{width:10px;height:10px;background:color-mix(in srgb,var(--accent) 20%,transparent)}._lgStrong_cjupa_20{width:10px;height:10px;background:var(--accent)}._lgHot_cjupa_21{width:10px;height:10px;background:var(--warn)}._offBlock_ob3ye_2{display:flex;flex-direction:column;gap:6px}._offTitle_ob3ye_3{font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--faint)}._offSections_ob3ye_4{position:relative;display:flex;align-items:flex-end;gap:2px;height:48px;border-bottom:1px solid var(--line-2)}._offSections_ob3ye_4>span:not(._offIntegrated_ob3ye_5){flex:1;min-width:2px;border-radius:1px 1px 0 0;background:color-mix(in srgb,var(--accent) 55%,transparent)}._offSections_ob3ye_4>span._offLoud_ob3ye_6{background:var(--warn)}._offIntegrated_ob3ye_5{position:absolute;left:0;right:0;height:0;border-top:1px dashed var(--hold);pointer-events:none}._lgRef_ob3ye_8{width:3px;height:10px;border:1px solid var(--target);border-radius:1px;background:var(--panel)}._lgSection_ob3ye_9{width:8px;height:10px;border-radius:1px 1px 0 0;background:color-mix(in srgb,var(--accent) 55%,transparent)}._lgSectionLoud_ob3ye_10{width:8px;height:10px;border-radius:1px 1px 0 0;background:var(--warn)}._lgIntegrated_ob3ye_11{width:12px;height:0;border-top:1px dashed var(--hold)}._bad_1iywl_2 ._val_1iywl_2 b{color:var(--bad)}._bad_1iywl_2 ._fill_1iywl_3{background:var(--bad)}._wordBad_1iywl_4{color:var(--bad)}._waveform_hrs3c_1 svg{cursor:crosshair}._waveform_hrs3c_1{position:relative}._waveform_hrs3c_1 svg{display:block;width:100%;height:160px}._waveform_hrs3c_1 ._waveformY_hrs3c_6{z-index:1;padding:0 3px;border-radius:3px;background:var(--panel)}._waveformShape_hrs3c_7{fill-opacity:.55;stroke-width:.8;stroke-linejoin:round}._evFillHot_19ozh_1{background:var(--warn)}._evMix_19ozh_2{display:flex;flex-direction:column}._evTrk_19ozh_3{display:grid;grid-template-columns:8px minmax(0,96px) minmax(0,1fr) 40px 30px 47px;gap:8px;align-items:center;padding:4px 0;font-size:12px}._evTrk_19ozh_3+._evTrk_19ozh_3{border-top:1px solid var(--line)}._evTrkMuted_19ozh_5{opacity:.5}._evTrkMaster_19ozh_6{border-top-color:var(--line-2)!important;padding-top:7px}._evSw_19ozh_7{width:8px;height:14px;border-radius:2px}._evTn_19ozh_8{display:flex;align-items:center;min-width:0;white-space:nowrap}._evTnText_19ozh_11{min-width:0;overflow:hidden;text-overflow:ellipsis}._evTn_19ozh_8 ._evMark_19ozh_12{flex-shrink:0}._evTnFolder_19ozh_13{color:var(--muted);font-weight:500}._evFader_19ozh_14{grid-column:auto}._evTv_19ozh_15{font-size:11px;text-align:right;color:var(--muted)}._evTv_19ozh_15[data-zone=hot]{color:var(--warn)}._evPan_19ozh_17{position:relative;height:12px}._evPan_19ozh_17:before{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:var(--line-2)}._evPanC_19ozh_19{position:absolute;left:50%;top:2px;bottom:2px;width:1px;background:var(--faint)}._evPanD_19ozh_20{position:absolute;top:50%;width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:50%;background:var(--hold)}._evChips_19ozh_21{display:flex;gap:3px;justify-content:flex-end}._evChip_19ozh_21{width:13px;border-radius:3px;border:1px solid var(--line-2);font:600 9px/13px var(--mono);text-align:center;color:var(--faint)}._evChip_19ozh_21:where([data-chip=m]){background:var(--warn);border-color:var(--warn);color:var(--panel-2)}._evChip_19ozh_21:where([data-chip=s]){background:var(--live);border-color:var(--live);color:var(--panel-2)}._evChip_19ozh_21:where([data-chip=r]){background:var(--bad);border-color:var(--bad);color:var(--panel-2)}._evMark_19ozh_12{margin-left:6px;padding:0 4px;border-radius:3px;font-size:10px;font-weight:500;line-height:15px;white-space:nowrap}._evMark_19ozh_12:where([data-change=new]){color:var(--accent);background:color-mix(in srgb,var(--accent) 14%,transparent)}._evMark_19ozh_12:where([data-change=moved]){color:var(--h1);background:color-mix(in srgb,var(--h1) 14%,transparent)}._evMark_19ozh_12:where([data-change=changed]){color:var(--muted);background:var(--panel-2)}._evMark_19ozh_12:where([data-change=gone]){color:var(--faint);border:1px dashed var(--line-2)}:is(._evSlot_19ozh_33,._evTrk_19ozh_3):where([data-change=new]){box-shadow:inset 2px 0 var(--accent)}:is(._evSlot_19ozh_33,._evTrk_19ozh_3):where([data-change=moved]){box-shadow:inset 2px 0 var(--h1)}:is(._evSlot_19ozh_33,._evTrk_19ozh_3):where([data-change=changed]){box-shadow:inset 2px 0 var(--muted)}._evTrk_19ozh_3:is(._evSlot_19ozh_33,._evTrk_19ozh_3):where([data-change=new]),._evTrk_19ozh_3:is(._evSlot_19ozh_33,._evTrk_19ozh_3):where([data-change=moved]),._evTrk_19ozh_3:is(._evSlot_19ozh_33,._evTrk_19ozh_3):where([data-change=changed]){padding-left:5px}:is(._evSlot_19ozh_33,._evTrk_19ozh_3):where([data-change=gone]) ._evSlotName_19ozh_37,:is(._evSlot_19ozh_33,._evTrk_19ozh_3):where([data-change=gone]) ._evTn_19ozh_8{color:var(--faint);text-decoration:line-through}:is(._evSlot_19ozh_33,._evTrk_19ozh_3):where([data-change=gone]) ._evFader_19ozh_14,:is(._evSlot_19ozh_33,._evTrk_19ozh_3):where([data-change=gone]) ._evPan_19ozh_17,:is(._evSlot_19ozh_33,._evTrk_19ozh_3):where([data-change=gone]) ._evChips_19ozh_21,:is(._evSlot_19ozh_33,._evTrk_19ozh_3):where([data-change=gone]) ._evTv_19ozh_15{opacity:.35}._evMarkLegend_19ozh_42{display:none;margin-top:8px}@container (max-width: 460px){._evTrk_19ozh_3 ._evMark_19ozh_12,._evRoute_19ozh_45 ._evMark_19ozh_12{display:none}._evMarkLegend_19ozh_42{display:flex}}._evSlots_19ozh_48{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}._evSlot_19ozh_33{display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:8px;align-items:baseline;padding:6px 0 6px 4px;font-size:12px}._evSlot_19ozh_33+._evSlot_19ozh_33{border-top:1px solid var(--line)}._evSlotName_19ozh_37{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text)}._evSlotName_19ozh_37 small{margin-left:6px;font-size:11px;color:var(--faint)}._evSlotState_19ozh_53{display:flex;align-items:baseline;font-size:11px;color:var(--warn);white-space:nowrap}._evSlotBypassed_19ozh_54 ._evSlotName_19ozh_37{color:var(--muted)}._evSlotOffline_19ozh_55 ._evSlotName_19ozh_37{color:var(--faint);font-style:italic}._evSlotOffline_19ozh_55 ._evSlotState_19ozh_53{color:var(--faint)}._evRoute_19ozh_45{grid-template-columns:14px minmax(0,1fr) minmax(40px,1fr) 40px 30px 13px}._evRouteKind_19ozh_60{font-size:12px;color:var(--faint);text-align:center}._evRoute_19ozh_45 ._evTn_19ozh_8{display:flex;align-items:baseline;min-width:0}@container (max-width: 300px){._evTrk_19ozh_3{grid-template-columns:8px minmax(0,1fr) minmax(36px,.8fr) 38px 47px;gap:7px}._evTrk_19ozh_3 ._evPan_19ozh_17{display:none}._evRoute_19ozh_45{grid-template-columns:14px minmax(0,1fr) minmax(36px,.8fr) 38px 13px}}._evSame_1m18b_1{opacity:.55}._evFillRest_1m18b_2{opacity:.3}._evFillDown_1m18b_3{background:color-mix(in srgb,var(--accent) 55%,var(--muted))}._lgUp_1m18b_4{width:12px;height:3px;border-radius:2px;background:var(--accent)}._lgDown_1m18b_5{width:12px;height:3px;border-radius:2px;background:color-mix(in srgb,var(--accent) 55%,var(--muted))}._evEnv_1leuz_1{position:relative;cursor:crosshair}._evEnv_1leuz_1 svg{display:block;width:100%;height:110px}._evEnvArea_1leuz_3{fill:var(--accent);fill-opacity:.08}._evEnvLine_1leuz_4{fill:none;stroke:var(--accent);stroke-width:1.6;stroke-linejoin:round}._evAiCover_1leuz_7{fill:var(--panel);fill-opacity:.85}._evAi_1leuz_7{fill-opacity:.12;stroke-opacity:.55;stroke-width:1}._evAiTouched_1leuz_9{fill-opacity:.2;stroke-opacity:1;stroke-width:2}._evAiGone_1leuz_10{fill:none;stroke-width:1;stroke-dasharray:3 3;stroke-opacity:.7}._evAiLine_1leuz_11{fill:none;stroke-width:1.6;stroke-linejoin:round}._evAiLabel_1leuz_12{position:absolute;top:2px;padding:0 4px;box-sizing:border-box;font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._evAiLabelTouched_1leuz_16{color:var(--text)}._evAiItem_1leuz_18:where([data-state=dim]) :is(._evAi_1leuz_7,._evAiLine_1leuz_11){opacity:.3}._evAiLabel_1leuz_12:where([data-state=dim]){opacity:.45}._lgAiDim_1leuz_20{opacity:.3}._evGutter_1leuz_21{padding-left:30px}._evPlot_1leuz_22{position:relative}._evY_1leuz_23{position:absolute;left:0;transform:translateY(-50%);font-size:10px;color:var(--faint);pointer-events:none}._evDot_1leuz_24{position:absolute;width:7px;height:7px;margin:-3.5px 0 0 -3.5px;border-radius:50%;background:var(--panel);border:1.5px solid var(--muted);pointer-events:none}._evDotNew_1leuz_28{width:8px;height:8px;margin:-4px 0 0 -4px;background:var(--accent);border:2px solid var(--panel)}._evDotGone_1leuz_29{border:1px dashed var(--bad);background:transparent}._evDotHover_1leuz_31{box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 45%,transparent);border-color:var(--accent)}._evTip_1leuz_32{transform:translate(-50%,calc(-100% - 9px))}._evTip_1leuz_32:where([data-align=below]){transform:translate(-50%,9px)}._evRoll_2433p_1{position:relative;cursor:crosshair}._evRoll_2433p_1 svg{display:block;width:100%;height:120px}._evRollBlack_2433p_3{fill:var(--bg);opacity:.55}._evNote_2433p_4{fill:var(--muted)}._evNoteNew_2433p_5{fill:var(--accent)}._evNoteGone_2433p_6{fill:none;stroke:var(--bad);stroke-width:1;stroke-dasharray:2 2}._evVel_2433p_7{display:block;width:100%;height:28px}._evVelNew_2433p_8{stroke:var(--accent);stroke-width:1.5}._evVelOld_2433p_9{stroke:var(--muted);stroke-width:1.5;opacity:.5}._evBars_2433p_10{position:relative;height:14px;font-size:10.5px;color:var(--faint)}._evBars_2433p_10 span{position:absolute;padding-left:3px}._evTimeline_148t4_1{display:flex;flex-direction:column;gap:6px}._evLane_148t4_2{position:relative}._evLaneMarkers_148t4_3{height:22px}._evLaneMarkers_148t4_3._evLaneContext_148t4_4{height:8px}._evMarker_148t4_5{position:absolute;top:0;bottom:-30px;display:flex;gap:4px;align-items:flex-start;pointer-events:auto}._evMarker_148t4_5 i{width:1px;height:100%;background:var(--mk, var(--hold));opacity:.8}._evMarker_148t4_5 b{margin-top:-1px;font:10.5px var(--mono);color:var(--muted);white-space:nowrap;max-width:80px;overflow:hidden;text-overflow:ellipsis}._evMarker_148t4_5._evNew_148t4_8 b{color:var(--text);border-bottom:1.5px solid var(--accent)}._evMarker_148t4_5._evGone_148t4_9 i{background:none;border-left:1px dashed var(--muted)}._evMarker_148t4_5._evGone_148t4_9 b{color:var(--faint);text-decoration:line-through}._evLaneRegions_148t4_11{height:22px}._evLaneRegions_148t4_11{overflow:hidden}._evRegion_148t4_14{position:absolute;top:0;bottom:0;overflow:hidden;padding:0 5px;border-radius:2px;font-size:10px;line-height:22px;color:var(--text);white-space:nowrap;text-overflow:ellipsis;background:color-mix(in srgb,var(--rg, var(--accent)) 22%,transparent);box-shadow:inset 2px 0 var(--rg, var(--accent))}._evRegion_148t4_14._evNew_148t4_8{outline:1.5px solid var(--accent);outline-offset:-1.5px}._evRegion_148t4_14._evGone_148t4_9{background:none;box-shadow:none;border:1px dashed var(--muted)}._evLaneItems_148t4_21{height:22px}._evItem_148t4_22{position:absolute;top:0;bottom:0;overflow:hidden;border-radius:3px;border:1px solid color-mix(in srgb,var(--accent) 60%,transparent);background:color-mix(in srgb,var(--accent) 18%,transparent)}._evItemMidi_148t4_23{border-color:color-mix(in srgb,var(--h1) 60%,transparent);background:color-mix(in srgb,var(--h1) 18%,transparent)}._evItemMuted_148t4_24{opacity:.4}._evItem_148t4_22 i{position:absolute;top:0;bottom:0}._evFadeIn_148t4_26{left:0;background:linear-gradient(to top right,transparent calc(50% - .5px),var(--muted) 50%,transparent calc(50% + .5px))}._evFadeOut_148t4_27{right:0;background:linear-gradient(to top left,transparent calc(50% - .5px),var(--muted) 50%,transparent calc(50% + .5px))}._evTempo_148t4_28{position:relative;margin-top:16px;cursor:crosshair}._evTempo_148t4_28 svg{display:block;width:100%;height:40px}._evTempoLabel_148t4_30{position:absolute;top:-12px;left:0;font-size:10px;color:var(--faint)}._evLaneName_148t4_31{font-size:10.5px;color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._evTimeline_148t4_1{position:relative}._evLaneWrap_148t4_35{display:flex;flex-direction:column;gap:2px}._evItem_148t4_22._evNew_148t4_8{outline:1.5px solid var(--accent);outline-offset:-1.5px}._evItem_148t4_22._evGone_148t4_9{background:none;border:1px dashed var(--muted)}._evLaneEmpty_148t4_38{position:absolute;left:0;line-height:22px}._evSel_148t4_39{position:absolute;top:-3px;bottom:-3px;z-index:1;pointer-events:none;border-inline:1px solid var(--accent);background:color-mix(in srgb,var(--accent) 13%,transparent)}._evSelWas_148t4_40{border:1px dashed var(--muted);background:none}._evCur_148t4_41{position:absolute;top:-5px;bottom:-5px;z-index:2;width:0;margin-left:-1px;border-left:2px solid var(--hold);pointer-events:none}._evCurWas_148t4_42{border-left:1px dashed var(--muted)}._evMarker_148t4_5._evQuiet_148t4_46{padding:0 4px;margin-left:-4px}._evMarker_148t4_5._evQuiet_148t4_46 b{display:none}._evMarker_148t4_5._evQuiet_148t4_46:hover{z-index:2}._evMarker_148t4_5._evQuiet_148t4_46:hover b{display:block;padding:0 3px;border-radius:2px;background:var(--panel);max-width:none}._evSpan_148t4_53{position:absolute;top:-3px;bottom:-3px;z-index:0;pointer-events:none;border-inline:1px solid var(--accent);background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--accent) 22%,transparent) 0 3px,transparent 3px 7px)}._evSpan_148t4_53:where([data-span=cut]){border-color:var(--bad);background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--bad) 20%,transparent) 0 3px,transparent 3px 7px)}._evSpan_148t4_53:where([data-span=source]){border:1px dashed color-mix(in srgb,var(--accent) 70%,transparent);background:none}._evItemGain_148t4_57{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:9.5px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden}._zoomBar_148t4_60{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px;color:var(--muted)}._zoomBar_148t4_60>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._evPlan_1feb6_1{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}._evPlan_1feb6_1 li{display:grid;grid-template-columns:18px auto minmax(0,1fr);gap:8px;align-items:baseline;padding:6px 0;font-size:12px}._evPlan_1feb6_1 li+li{border-top:1px solid var(--line)}._evOpN_1feb6_4{font-size:10.5px;color:var(--faint)}._evOp_1feb6_4{font-size:11.5px;font-weight:500;color:var(--k-write)}._evOpWhat_1feb6_6{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted)}@container (max-width: 300px){._evPlan_1feb6_1 li{grid-template-columns:14px minmax(0,auto) minmax(0,1fr);gap:6px}}._evChain_jd7kb_2{display:flex;flex-direction:column;gap:4px}._evHist_1ensh_1{display:flex;align-items:flex-end;gap:2px;height:28px;border-bottom:1px solid var(--line-2)}._evHist_1ensh_1 span{flex:1;min-height:1px;border-radius:1px 1px 0 0;background:var(--bar)}._lgHist_1ensh_3{width:8px;height:10px;border-radius:1px 1px 0 0;background:var(--bar)}._lanes_1ghxo_2{display:flex;flex-direction:column;gap:4px}._lane_1ghxo_2{display:grid;grid-template-columns:minmax(0,124px) minmax(0,1fr);gap:8px;align-items:center}._name_1ghxo_4{display:flex;align-items:center;gap:5px;min-width:0;font-size:11px;color:var(--muted);white-space:nowrap}._on_1ghxo_5 ._name_1ghxo_4{color:var(--text)}._gone_1ghxo_6 ._name_1ghxo_4{color:var(--faint);text-decoration:line-through}._play_1ghxo_7{flex-shrink:0;width:8px;height:8px;border-radius:2px;border:1px solid var(--hue)}._play_1ghxo_7[data-plays="1"]{background:var(--hue)}._play_1ghxo_7[data-plays="2"]{background:linear-gradient(135deg,var(--hue) 50%,transparent 50%)}._play_1ghxo_7._changed_1ghxo_10{box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 45%,transparent)}._item_1ghxo_11{border-color:color-mix(in srgb,var(--hue) 70%,transparent);background:color-mix(in srgb,var(--hue) 22%,transparent)}._lane_1ghxo_2:not(._on_1ghxo_5) ._item_1ghxo_11{opacity:.45}._axisRow_1ghxo_13{margin-top:-2px}._axis_1ghxo_13{display:flex;justify-content:space-between;font-size:10px;color:var(--faint)}@container (max-width: 300px){._lane_1ghxo_2{grid-template-columns:minmax(0,64px) minmax(0,1fr)}}._lgPlays_1ghxo_18,._lgLayered_1ghxo_18,._lgSilent_1ghxo_18{width:8px;height:8px;border-radius:2px;border:1px solid var(--muted)}._lgPlays_1ghxo_18{background:var(--muted)}._lgLayered_1ghxo_18{background:linear-gradient(135deg,var(--muted) 50%,transparent 50%)}._lgComp_1ghxo_21{width:12px;height:8px;border-radius:2px;background:linear-gradient(90deg,var(--h0) 0 50%,var(--h1) 50% 100%);opacity:.6}._rec_19eeb_2{display:grid;grid-template-columns:10px minmax(0,96px) minmax(0,1fr) auto auto;gap:8px;align-items:center;padding:4px 0;font-size:12px}._rec_19eeb_2+._rec_19eeb_2{border-top:1px solid var(--line)}._off_19eeb_4 ._name_19eeb_4{color:var(--muted)}._arm_19eeb_5{width:9px;height:9px;border-radius:50%;border:1.5px solid var(--faint)}._arm_19eeb_5._on_19eeb_6{background:var(--bad);border-color:var(--bad)}._field_19eeb_7{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}._input_19eeb_8{color:var(--text);font-family:var(--mono)}._field_19eeb_7._changed_19eeb_9{display:flex;flex-direction:column;line-height:1.25}._now_19eeb_10,._was_19eeb_10{overflow:hidden;text-overflow:ellipsis}._was_19eeb_10{color:var(--faint);font-size:10px}._changed_19eeb_9 ._now_19eeb_10{color:var(--text);border-bottom:1.5px solid var(--accent);align-self:flex-start;max-width:100%}._arm_19eeb_5._changed_19eeb_9{box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 45%,transparent)}@container (max-width: 420px){._rec_19eeb_2{grid-template-columns:10px minmax(0,1fr) auto;row-gap:2px}._input_19eeb_8{grid-column:2 / 4;grid-row:2}._mode_19eeb_18{grid-column:2 / 4;grid-row:3}}._lgArmed_19eeb_20{width:9px;height:9px;border-radius:50%!important;background:var(--bad)}._lgUnarmed_19eeb_21{width:9px;height:9px;border-radius:50%!important;border:1.5px solid var(--faint);box-sizing:border-box}._mods_jrmxm_2{display:flex;flex-direction:column;gap:10px}._head_jrmxm_3{display:flex;justify-content:space-between;gap:8px;align-items:baseline;min-width:0}._name_jrmxm_4{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}._src_jrmxm_5{color:var(--muted);font-size:11px;white-space:nowrap}._src_jrmxm_5 b{color:var(--text);font-weight:500}._svg_jrmxm_7{display:block;width:100%;height:64px;margin-top:4px;background:var(--panel-2);border-radius:4px}._base_jrmxm_8{stroke:var(--muted);stroke-width:1.2;stroke-dasharray:1 3;stroke-linecap:round}._lfo_jrmxm_9{fill:none;stroke:var(--accent);stroke-width:1.6;stroke-linejoin:round}._was_jrmxm_10{fill:none;stroke:var(--muted);stroke-width:1;stroke-dasharray:3 3;opacity:.8}._band_jrmxm_11{fill:var(--h2);fill-opacity:.16}._facts_jrmxm_12{display:flex;flex-wrap:wrap;gap:2px 12px;margin-top:4px;font-size:11px;color:var(--muted)}._facts_jrmxm_12 span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}@container (max-width: 300px){._head_jrmxm_3{flex-direction:column;align-items:flex-start;gap:0}._src_jrmxm_5{white-space:normal}}._lgBaseline_jrmxm_21{width:12px;height:0;border-top:1.5px dotted var(--muted)}._lgBand_jrmxm_22{width:12px;height:8px;background:color-mix(in srgb,var(--h2) 16%,transparent)}._heads_1x2zn_2{display:grid;grid-template-columns:10% 1fr 10%;margin-top:6px;font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--faint)}._heads_1x2zn_2>span:last-child{text-align:right}._headFx_1x2zn_7{text-align:center;text-transform:none;letter-spacing:0;font-size:11px;font-weight:500;color:var(--muted)}._patch_1x2zn_8{position:relative;margin:4px 0 12px}._patch_1x2zn_8 svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}._box_1x2zn_10{position:absolute;top:-3px;bottom:-3px;border:1px solid var(--line-2);border-radius:6px;background:var(--panel-2)}._wire_1x2zn_12{fill:none;stroke:var(--accent);stroke-width:2;stroke-linecap:round;pointer-events:stroke;transition:opacity .12s}._wire_1x2zn_12:where([data-state=same]){stroke:var(--muted)}._wire_1x2zn_12:where([data-state=gone]){stroke:var(--faint);stroke-dasharray:2 3}._chan_1x2zn_16,._pin_1x2zn_16{position:absolute;transform:translateY(-50%);font-size:12px;white-space:nowrap;transition:opacity .12s}._chan_1x2zn_16{padding-inline:4px;color:var(--text)}._chan_1x2zn_16:where([data-state=new]){color:var(--accent)}._chan_1x2zn_16:where([data-state=off]){color:var(--faint);text-decoration:line-through}._pin_1x2zn_16{max-width:21%;overflow:hidden;text-overflow:ellipsis;color:var(--text)}._pin_1x2zn_16:where([data-side=out]){text-align:right}._wire_1x2zn_12:where([data-focus=off]),._chan_1x2zn_16:where([data-focus=off]),._pin_1x2zn_16:where([data-focus=off]){opacity:.25}._lgSame_1x2zn_25{width:12px;height:2px;background:var(--muted)}._lgGone_1x2zn_26{width:12px;height:0;border-top:1px dashed var(--faint)}._lgNewCh_1x2zn_28,._lgOffCh_1x2zn_28{font:normal 11px var(--mono)}._lgNewCh_1x2zn_28:before{content:"3";color:var(--accent)}._lgOffCh_1x2zn_28:before{content:"3";color:var(--faint);text-decoration:line-through}._tags_rx8a3_2{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 2px}._tag_rx8a3_2{padding:1px 7px;border:1px solid var(--line-2);border-radius:999px;font:500 10.5px/16px var(--mono);color:var(--muted)}._files_rx8a3_4{display:flex;flex-direction:column;margin-top:10px}._row_rx8a3_5{display:grid;grid-template-columns:minmax(0,1fr) minmax(48px,1.1fr) 42px 44px 46px;gap:8px;align-items:center;padding:5px 0;font-size:12px}._row_rx8a3_5+._row_rx8a3_5,._group_rx8a3_6+._group_rx8a3_6{border-top:1px solid var(--line)}._head_rx8a3_7{padding-top:0;font-size:10px;letter-spacing:.04em;text-transform:uppercase;color:var(--faint)}._name_rx8a3_8{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._waveWrap_rx8a3_9{position:relative;display:block;min-width:0}._wave_rx8a3_9{display:block;width:100%;height:22px;overflow:visible;cursor:crosshair}._waveTip_rx8a3_12{top:auto;bottom:calc(100% + 4px)}._shape_rx8a3_13{fill:var(--accent);stroke:var(--accent);stroke-width:.5px;opacity:.85}._v_rx8a3_14{font-size:11px;text-align:right;color:var(--muted)}._v_rx8a3_14:where([data-zone=hot]){color:var(--warn)}._v_rx8a3_14:where([data-zone=over]){color:var(--bad)}._version_rx8a3_17{display:flex;gap:8px;align-items:baseline;padding:8px 0 2px;font-size:12px;min-width:0}._muted_rx8a3_18{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}@container (max-width: 300px){._row_rx8a3_5{grid-template-columns:minmax(0,1fr) 72px 56px;grid-template-areas:"name name dur" "wave wave wave" ". lufs tp";row-gap:3px}._name_rx8a3_8{grid-area:name}._waveWrap_rx8a3_9{grid-area:wave}._lufs_rx8a3_24{grid-area:lufs}._tp_rx8a3_25{grid-area:tp}._dur_rx8a3_26{grid-area:dur}._head_rx8a3_7{display:none}._lufs_rx8a3_24:after{content:" LUFS";color:var(--faint)}._tp_rx8a3_25:after{content:" dBTP";color:var(--faint)}._lufs_rx8a3_24,._tp_rx8a3_25{white-space:nowrap}}._stretch_1w3jq_2{display:block;width:100%;height:56px}._item_1w3jq_3{fill:var(--panel-2);stroke:var(--line-2);stroke-width:1}._grid_1w3jq_4{stroke:var(--line-2);stroke-width:1}._was_1w3jq_5{stroke:var(--muted);stroke-width:1;stroke-dasharray:2 2}._move_1w3jq_6{stroke:var(--accent);stroke-width:1;opacity:.6}._mark_1w3jq_7{stroke:var(--accent);stroke-width:1.6}._kept_1w3jq_8{stroke:var(--muted);stroke-width:1.4}._lgGrid_1w3jq_9{width:2px;height:10px;background:var(--line-2)}._lgKept_1w3jq_10{width:2px;height:10px;background:var(--muted)}._lgMove_1w3jq_11{width:12px;height:2px;background:var(--accent);opacity:.6}._flow_fgd4e_2{position:relative;margin:4px 0 14px}._flow_fgd4e_2 svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}._wire_fgd4e_4{fill:none;stroke:var(--accent);stroke-linecap:round}._wire_fgd4e_4:where([data-state=same]){stroke:var(--muted)}._wire_fgd4e_4:where([data-state=muted]){stroke:var(--muted);stroke-dasharray:3 3}._wire_fgd4e_4:where([data-state=gone]){stroke:var(--faint);stroke-dasharray:2 3}._node_fgd4e_8{position:absolute;transform:translateY(-50%);box-sizing:border-box;padding:0 6px;border-radius:5px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line-2);background:var(--panel-2);font-size:12px;font-weight:500;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._nodeName_fgd4e_14{min-width:0;overflow:hidden;text-overflow:ellipsis}._label_fgd4e_15{position:absolute;transform:translateY(-50%);max-width:26%;font-size:12px;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._label_fgd4e_15:where([data-side=out]){max-width:none;right:0}._label_fgd4e_15:where([data-state=same],[data-state=muted]){color:var(--muted)}._label_fgd4e_15:where([data-state=gone]){color:var(--faint);text-decoration:line-through}._label_fgd4e_15 .mono{color:var(--faint)}._section_fgd4e_25+._section_fgd4e_25{margin-top:10px}._heading_fgd4e_26{margin:0 0 2px;font-size:10px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--faint)}._lgWeight_fgd4e_28{width:14px;height:4px;background:var(--muted);clip-path:polygon(0 45%,100% 0,100% 100%,0 55%)}._lgSame_fgd4e_29{width:12px;height:2px;background:var(--muted)}._lgMuted_fgd4e_30{width:12px;height:0;border-top:2px dashed var(--muted)}._lgGone_fgd4e_31{width:12px;height:0;border-top:1px dashed var(--faint)}@container (max-width: 300px){._flow_fgd4e_2{display:none}}._wire_fgd4e_4,._label_fgd4e_15{transition:opacity .12s}._wire_fgd4e_4{pointer-events:stroke;cursor:default}._wire_fgd4e_4:where([data-focus=off]),._label_fgd4e_15:where([data-focus=off]){opacity:.25}._row_fgd4e_42:where([data-focus]){background:color-mix(in srgb,var(--accent) 10%,transparent);border-radius:4px}._switch_rmvq3_2{flex:none;display:inline-flex;padding:2px;background:var(--bg);border:1px solid var(--line);border-radius:7px}._switch_rmvq3_2 button{display:inline-flex;align-items:center;gap:5px;padding:2px 8px;border:0;border-radius:5px;background:none;font:inherit;font-size:11px;color:var(--muted);cursor:pointer}._switch_rmvq3_2 button:hover{color:var(--text)}._switch_rmvq3_2 button[aria-pressed=true]{background:var(--panel-2);color:var(--text);box-shadow:0 0 0 1px var(--line-2)}._switch_rmvq3_2 button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}._snapSave_v7oiz_1{display:flex;flex-wrap:wrap;gap:8px;align-items:center}._snapInput_v7oiz_2{flex:1 1 140px;min-width:0;height:30px;padding:0 10px;border:1px solid var(--line-2);border-radius:7px;background:var(--panel-2);color:var(--text);font:inherit}._snapInputDesc_v7oiz_3{flex:2 1 200px}._snapInput_v7oiz_2:focus{outline:0;border-color:var(--accent)}._snapInput_v7oiz_2[aria-invalid=true]{border-color:var(--bad)}._snapInput_v7oiz_2:disabled{opacity:.5}._snapHint_v7oiz_7{flex-basis:100%;font-size:12px;color:var(--warn)}._snapHintBad_v7oiz_8{color:var(--bad)}._snapEdit_1kutk_1{padding:8px;border:1px solid var(--accent);border-radius:9px;background:var(--panel)}._snaps_6ph84_3{container-type:inline-size;padding:12px 14px 16px;display:flex;flex-direction:column;gap:10px}._snapBlocked_6ph84_4{margin:0;padding:8px 10px;border-radius:7px;font-size:12.5px;color:var(--warn);background:#f5b84b12;border:1px solid rgba(245,184,75,.25)}._snapResult_6ph84_5{padding:8px 10px;border-radius:7px;font-size:12.5px;border:1px solid var(--line-2);background:var(--panel-2);overflow-wrap:anywhere}._snapResult_6ph84_5:where([data-tone=ok]){color:var(--live);border-color:#4ade804d}._snapResult_6ph84_5:where([data-tone=warn]){color:var(--warn);border-color:#f5b84b4d}._snapResult_6ph84_5:where([data-tone=bad]){color:var(--bad);border-color:#f871714d}._snapResult_6ph84_5:where([data-tone=info]){color:var(--muted)}._snapWarnings_6ph84_10{margin:6px 0 0;padding-left:18px;color:var(--muted)}._snapList_6ph84_11{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}._snapRow_6ph84_12{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:7px 12px;border:1px solid var(--line);border-radius:9px;background:var(--panel);color:var(--text);font:inherit;text-align:left;cursor:pointer}._snapRow_6ph84_12:hover:not(:disabled){border-color:var(--line-2);background:var(--panel-2)}._snapRow_6ph84_12:focus-visible{outline:2px solid var(--accent);outline-offset:1px}._snapRow_6ph84_12:disabled{cursor:default;opacity:.6}._snapCurrent_6ph84_20{border-color:#4ade8073;background:#4ade800d}._snapLoading_6ph84_21{border-color:#7cc4ff80}._snapKey_6ph84_22{min-width:20px;text-align:center}._snapMain_6ph84_23{display:flex;flex-direction:column;gap:1px;min-width:0}._snapName_6ph84_24{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._snapSub_6ph84_25{display:flex;align-items:baseline;gap:10px;min-width:0}._snapDesc_6ph84_26{flex:1 1 0;min-width:0;font-size:12.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._snapMeta_6ph84_27{display:flex;flex:none;gap:8px;font-size:12px;color:var(--faint);white-space:nowrap}._snapState_6ph84_28{font-size:12px;color:var(--muted);min-width:64px;text-align:right}._snapCurrent_6ph84_20 ._snapState_6ph84_28{color:var(--live)}._snapLoading_6ph84_21 ._snapState_6ph84_28{color:var(--accent)}._snapFoot_6ph84_31{margin:0;font-size:12px}._snapItem_6ph84_32{display:flex;align-items:center;gap:6px}._snapItem_6ph84_32 ._snapRow_6ph84_12{flex:1;min-width:0}._snapActions_6ph84_34{display:flex;align-items:center;gap:4px;flex:none}._snapActions_6ph84_34 .btn-sm{color:var(--muted)}._snapActions_6ph84_34 .btn-sm.btn-warn{color:var(--warn)}._snapConfirmText_6ph84_37{font-size:12px;color:var(--warn);margin-right:2px}@container (max-width: 520px){._snapItem_6ph84_32{flex-wrap:wrap;justify-content:flex-end}._snapItem_6ph84_32 ._snapRow_6ph84_12{flex-basis:100%}}@container (max-width: 360px){._snapRow_6ph84_12{gap:8px;padding:6px 10px}._snapSub_6ph84_25{flex-wrap:wrap;row-gap:0}._snapDesc_6ph84_26{flex-basis:100%}._snapKey_6ph84_22{display:none}}._snapClear_6ph84_50{display:flex;justify-content:flex-end}._snapClear_6ph84_50 .btn-sm:not(.btn-warn){color:var(--muted)}._notices_19m43_1{flex:none;display:grid;gap:8px}._noticeActions_19m43_2{display:inline-flex;align-items:center;gap:6px;flex-shrink:0}._noticeLog_19m43_3{display:block;margin-top:4px;font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._noticeDetails_19m43_4 summary{cursor:pointer;margin-top:4px;color:var(--muted);font-size:12px}._noticeDetails_19m43_4 pre{margin:6px 0 0;padding:8px;max-height:200px;overflow:auto;font-size:11px;background:#00000040;border-radius:6px;white-space:pre-wrap}._offline_16u7n_1{margin:8vh 0 0;max-width:440px;padding:28px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}._offlineIcon_16u7n_9{margin-bottom:14px}._offline_16u7n_1 h2{margin:0 0 6px;font-size:16px;font-weight:600}._offline_16u7n_1 p{margin:0 0 14px;color:var(--muted)}._offline_16u7n_1 ol{margin:0;padding-left:18px;color:var(--muted);display:grid;gap:6px}._rowsWindow_16u0j_1{position:relative}._row_16u0j_1{border-left:2px solid transparent}._row_16u0j_1:hover{background:#ffffff05}._row_16u0j_1:where([data-outcome=error]){border-left-color:var(--bad);background:#f871710a}._rowSelected_16u0j_5{background:#7cc4ff12;border-left-color:var(--accent)}._row_16u0j_1:where([data-outcome=error])._rowSelected_16u0j_5{border-left-color:var(--bad)}._row_16u0j_1:where([data-outcome=refused]){border-left-color:var(--warn);background:#f5b84b09}._row_16u0j_1:where([data-outcome=refused])._rowSelected_16u0j_5{border-left-color:var(--warn)}._row_16u0j_1:where([data-outcome=refused]) ._rowErrInline_16u0j_9{color:var(--warn)}._rowMain_16u0j_10{width:100%;display:flex;align-items:center;gap:12px;padding:0 14px 0 12px;border:0;background:none;text-align:left;overflow:hidden;white-space:nowrap}._rowTime_16u0j_18{color:var(--faint);font-size:12px;flex:none}._rowMs_16u0j_19{opacity:.55}._rowDay_16u0j_22{display:inline-block;min-width:9ch;margin-right:1ch;opacity:.7}._statusDot_16u0j_23{width:6px;height:6px;border-radius:50%;flex:none}._statusDot_16u0j_23[data-outcome=ok]{background:var(--live);opacity:.75}._statusDot_16u0j_23[data-outcome=error]{background:var(--bad);box-shadow:0 0 8px #f8717199}._statusDot_16u0j_23[data-outcome=refused]{background:var(--warn)}._rowCmd_16u0j_27{font-size:12.5px;color:var(--text);flex:none}._rowErrInline_16u0j_9{flex:1;min-width:0;color:var(--bad);opacity:.85;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._rowEnd_16u0j_34{margin-left:auto;flex:none;display:inline-flex;align-items:center;gap:14px}._rowSession_16u0j_35{display:inline-flex;align-items:center;gap:6px;max-width:140px;font-size:11.5px;color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._rowDur_16u0j_41{flex:none;display:inline-flex;align-items:center;gap:10px;font-size:12px;color:var(--muted);min-width:140px;justify-content:flex-end}._durTrack_16u0j_47{width:56px;height:3px;border-radius:2px;background:var(--line);overflow:hidden}._durFill_16u0j_48{display:block;height:100%;background:var(--bar);border-radius:2px}[data-speed=slow] ._durFill_16u0j_48{background:var(--warn)}[data-speed=very-slow] ._durFill_16u0j_48{background:var(--bad)}._rowDur_16u0j_41[data-speed=slow]{color:var(--warn)}._rowDur_16u0j_41[data-speed=very-slow]{color:var(--bad)}@media (max-width: 720px){._rowErrInline_16u0j_9,._durTrack_16u0j_47{display:none}._rowDur_16u0j_41{min-width:0}._rowSession_16u0j_35{display:none}}._rowMain_16u0j_10{outline:none}._row_16u0j_1:has(._rowMain_16u0j_10:focus-visible):not(._rowSelected_16u0j_5){background:#ffffff0a}._drawerFilter_b1kmv_1{min-width:0;padding:2px 6px;margin-left:-6px;border-radius:6px;border:1px solid transparent;background:none;color:inherit;font:inherit;cursor:pointer}._drawerFilter_b1kmv_1:hover{background:var(--panel-2);border-color:var(--line-2)}._drawerFilter_b1kmv_1._active_b1kmv_6{border-color:var(--line-2);background:var(--panel-2)}._tipAnchor_b1kmv_7{position:relative;display:flex;min-width:0}._tip_b1kmv_7{position:absolute;top:calc(100% + 6px);left:-6px;z-index:1;width:max-content;max-width:240px;overflow-wrap:anywhere;padding:5px 8px;border-radius:6px;font-size:12px;font-weight:500;color:var(--text);background:var(--panel-2);border:1px solid var(--line-2);box-shadow:0 4px 12px #00000040;opacity:0;pointer-events:none;transition:opacity .12s}._tipAnchor_b1kmv_7:hover ._tip_b1kmv_7,._tipAnchor_b1kmv_7:has(:focus-visible) ._tip_b1kmv_7{opacity:1;transition-delay:.3s}@container (max-width: 340px){._sessionFactClient_b1kmv_22{display:none}}._sessionFact_b1kmv_22{display:flex;min-width:0;white-space:nowrap}._sessionFact_b1kmv_22 .sdot{flex:none}._sessionFactName_b1kmv_26{min-width:0;overflow:hidden;text-overflow:ellipsis}._sessionFactClient_b1kmv_22{flex:none;white-space:pre}._errorBlock_b1kmv_28{border:1px solid rgba(248,113,113,.28);border-radius:10px;overflow:hidden}._errorHead_b1kmv_29{display:flex;justify-content:space-between;align-items:center;padding:6px 10px;background:#f8717114;font-size:11px;font-weight:600;color:var(--bad);text-transform:uppercase;letter-spacing:.05em}._errorBlock_b1kmv_28 pre{margin:0;padding:10px 12px;font-family:var(--mono);font-size:12px;line-height:1.5;color:#fecaca;white-space:pre-wrap;word-break:break-word;user-select:text}._paramsText_b1kmv_42{position:relative}._paramsFilter_b1kmv_43{position:absolute;z-index:2;transform:translate(-50%,calc(-100% - 6px));display:inline-flex;gap:6px;align-items:baseline;max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:4px 9px;border:1px solid var(--line-2);border-radius:6px;background:var(--panel-2);color:var(--text);font-size:11.5px;box-shadow:0 4px 14px #00000059;cursor:pointer}._paramsFilter_b1kmv_43 .mono{color:var(--accent)}._paramsFilter_b1kmv_43:hover{border-color:var(--accent)}._paramsFilter_b1kmv_43:focus-visible{outline:2px solid var(--accent);outline-offset:1px}._sessionInline_b1kmv_52{display:inline-flex;align-items:center;gap:7px}._sessionSub_b1kmv_53{display:block;font-size:10.5px;margin-top:2px}._headText_b1kmv_56{display:flex;flex-direction:column;gap:3px;min-width:0}._title_b1kmv_57{display:flex;align-items:center;gap:9px;margin:0;min-width:0;font-size:15px;font-weight:600;line-height:1.3}._title_b1kmv_57>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._headSub_b1kmv_59{display:flex;align-items:center;gap:6px;min-width:0;padding-left:16px;font-size:11.5px;color:var(--muted)}._headSub_b1kmv_59 ._drawerFilter_b1kmv_1{font-size:11.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._headWhen_b1kmv_61{flex:none;color:var(--faint)}._headWhen_b1kmv_61:before{content:"· "}._summary_b1kmv_65{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 8px;margin:0;font-size:14px;line-height:1.5;color:var(--text)}._summary_b1kmv_65 .sdot{flex:none;align-self:center}._summaryText_b1kmv_67{flex:1 1 0;min-width:0}._summary_b1kmv_65:where([data-outcome=error]){color:#fecaca}._summary_b1kmv_65:where([data-outcome=refused]){color:color-mix(in srgb,var(--warn) 70%,var(--text))}._more_b1kmv_72{border-top:1px solid var(--line);padding-top:10px}._more_b1kmv_72>summary{cursor:pointer;font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--faint);list-style-position:inside}._more_b1kmv_72>summary:hover{color:var(--muted)}._more_b1kmv_72[open]>summary{margin-bottom:10px}._sessions_17rxn_1{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));align-content:start;gap:10px;padding:10px}._sessionsHelp_17rxn_5{grid-column:1 / -1;margin:0 2px 2px;font-size:11.5px;color:var(--faint);line-height:1.5}._sessionCard_17rxn_6{display:flex;flex-direction:column;gap:8px;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:var(--bg);text-align:left;min-width:0}._sessionCard_17rxn_6:hover{border-color:var(--line-2);background:#121316}._sessionTop_17rxn_14{display:flex;align-items:center;gap:8px;min-width:0}._sessionTop_17rxn_14 .sdot{width:9px;height:9px}._sessionName_17rxn_16{font-weight:600;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._sessionState_17rxn_17{margin-left:auto;font-size:11.5px;color:var(--faint);white-space:nowrap}._sessionState_17rxn_17._on_17rxn_18{color:var(--live)}._sessionDir_17rxn_19{font-size:11.5px;color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;direction:rtl;text-align:left}._sessionFacts_17rxn_20{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12px;color:var(--faint);font-variant-numeric:tabular-nums}._sessionFacts_17rxn_20 b{color:var(--text);font-weight:600}._sessionFacts_17rxn_20 .tone-bad b{color:var(--bad)}._sessionTools_17rxn_23{display:flex;flex-wrap:wrap;gap:5px}._toolChip_17rxn_24{display:inline-flex;align-items:center;gap:6px;padding:2px 7px;border-radius:6px;background:var(--panel-2);border:1px solid var(--line);font-size:11px;color:var(--muted)}._sessionId_17rxn_30{font-size:10.5px;color:var(--faint);opacity:.7;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._tools_yxs2b_1{padding:10px 0 6px}._mix_yxs2b_2{display:flex;gap:2px;height:6px;margin:0 14px;border-radius:3px;overflow:hidden}._mixSeg_yxs2b_3{display:block;min-width:2px}._mixSeg_yxs2b_3:where([data-kind=read]){background:var(--k-read)}._mixSeg_yxs2b_3:where([data-kind=write]){background:var(--k-write)}._mixSeg_yxs2b_3:where([data-kind=transport]){background:var(--k-transport)}._mixLegend_yxs2b_7{display:flex;flex-wrap:wrap;gap:4px 14px;margin:7px 14px 8px;font-size:11px;color:var(--faint);font-variant-numeric:tabular-nums}._mixLegend_yxs2b_7 span{display:inline-flex;align-items:center;gap:6px}._mixNote_yxs2b_13{margin-left:auto}._toolHead_yxs2b_14,._toolRow_yxs2b_14{display:grid;grid-template-columns:minmax(0,1fr) 64px 92px 76px 72px;align-items:center;gap:10px;padding:0 14px 0 12px}._toolHead_yxs2b_14{position:sticky;top:-10px;z-index:1;height:28px;background:var(--panel);border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:11px;color:var(--faint);text-transform:uppercase;letter-spacing:.05em}._th_yxs2b_27{border:0;background:none;padding:0;text-align:right;color:inherit;font:inherit;text-transform:inherit;letter-spacing:inherit}._th_yxs2b_27:hover,._thOn_yxs2b_28{color:var(--text)}._toolRow_yxs2b_14{width:100%;min-height:34px;border:0;border-left:2px solid transparent;background:none;text-align:left;font-size:12.5px}._toolRow_yxs2b_14:hover{background:#ffffff06;border-left-color:var(--line-2)}._toolName_yxs2b_36{display:flex;align-items:center;gap:9px;min-width:0}._toolName_yxs2b_36 .mono{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._share_yxs2b_38{flex:1;min-width:24px;max-width:160px;height:3px;margin-left:auto;border-radius:2px;background:var(--line);overflow:hidden}._share_yxs2b_38 span{display:block;height:100%;background:var(--bar);border-radius:2px}._num_yxs2b_40{text-align:right;font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap}._errLink_yxs2b_41{cursor:pointer;text-decoration:underline dotted;text-underline-offset:3px}@media (max-width: 720px){._toolHead_yxs2b_14,._toolRow_yxs2b_14{grid-template-columns:minmax(0,1fr) 48px 64px 64px}._toolHead_yxs2b_14>:last-child,._toolRow_yxs2b_14>:last-child{display:none}._share_yxs2b_38{display:none}}._wrap_r8eiy_2{flex-wrap:nowrap;align-items:flex-start}._chips_r8eiy_3{--chip-rows: 2;position:relative;flex:1;min-width:0;display:flex;flex-wrap:wrap;gap:6px;max-height:calc(var(--chip-rows) * 24px + (var(--chip-rows) - 1) * 6px);overflow:hidden}._chips_r8eiy_3[data-expanded]{max-height:none;overflow:visible}._more_r8eiy_5{flex:none;color:var(--accent)}._knPublishBtn_15t5y_2{color:var(--accent);border-color:#7cc4ff4d}._knPublish_15t5y_2{display:flex;flex-direction:column;gap:8px;padding:10px 12px;border:1px solid rgba(124,196,255,.25);border-radius:8px;background:#7cc4ff0a}._knPublishDone_15t5y_4{font-size:12.5px;color:var(--muted);line-height:1.5}._knPublishCheck_15t5y_5{display:flex;align-items:flex-start;gap:8px;font-size:12px;color:var(--muted);line-height:1.4;cursor:pointer}._knPublishCheck_15t5y_5 input{margin-top:2px}._knPublishActions_15t5y_7{display:flex;gap:8px}._knPublishWarn_15t5y_8{font-size:12px;color:#f87171;line-height:1.45}._knChevron_fj8en_1{flex:none;color:var(--faint);transition:transform .15s}._knChevronOpen_fj8en_2{transform:rotate(90deg)}._splitChevron_fj8en_3{transform:rotate(90deg);transition:transform .15s}._splitChevron_fj8en_3._knChevronOpen_fj8en_2{transform:rotate(-90deg)}._split_fj8en_3{position:relative;display:inline-flex}._splitMain_fj8en_6{border-top-right-radius:0;border-bottom-right-radius:0}._splitMain_fj8en_6:only-child{border-radius:7px}._splitCaret_fj8en_8{display:inline-flex;align-items:center;justify-content:center;border-top-left-radius:0;border-bottom-left-radius:0;border-left:0;padding:0 8px}._splitMenu_fj8en_9{position:absolute;right:0;top:calc(100% + 4px);z-index:5;min-width:220px;display:grid;padding:4px;border-radius:9px;background:var(--panel-2);border:1px solid var(--line-2);box-shadow:0 8px 24px #00000073}._splitMenu_fj8en_9 button{padding:7px 10px;border:0;border-radius:6px;background:none;color:var(--text);font-size:12.5px;text-align:left}._splitMenu_fj8en_9 button:hover,._splitMenu_fj8en_9 button:focus-visible{background:#7cc4ff1a;outline:none}._knTeachAll_fj8en_16{display:inline-flex;align-items:center;gap:6px}._knTeachAll_fj8en_16{color:var(--accent);border-color:#7cc4ff4d}._knProblem_1j6hk_1{margin:0;font-size:12px;color:var(--warn, #fbbf24)}._knConnect_1j6hk_2{margin:0;font-size:12px;color:var(--faint)}._knControls_1j6hk_3{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}._chipProject_1j6hk_4[aria-pressed=true]{color:var(--live);border-color:#4ade8066;background:#4ade8014}._knUsed_1j6hk_5{flex:none;padding:1px 7px;border-radius:999px;font-size:10.5px;line-height:16px;white-space:nowrap;color:var(--live);background:#4ade801a;border:1px solid rgba(74,222,128,.25)}._knGroup_1j6hk_9+._knGroup_1j6hk_9{border-top:1px solid var(--line)}._knGroupHead_1j6hk_10{position:sticky;top:0;z-index:1;display:flex;align-items:center;gap:8px;padding-right:14px;background:var(--panel)}._knGroupToggleBtn_1j6hk_15{flex:1;min-width:0;min-height:36px;display:flex;align-items:center;gap:8px;padding:4px 0 4px 12px;border:0;background:none;text-align:left;outline:none}._knGroupToggleBtn_1j6hk_15:focus-visible ._knGroupName_1j6hk_19{text-decoration:underline}._knGroupName_1j6hk_19{font-size:12.5px;font-weight:600;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._knGroupMeta_1j6hk_21{display:inline-flex;align-items:center;gap:8px;font-size:11.5px;color:var(--faint);white-space:nowrap}._knConnect_1j6hk_2 .link-btn{font-size:12px;color:var(--accent)}._plugins_1j6hk_23{padding:0 0 8px}._knSummary_1j6hk_24{padding:12px 14px 4px;display:grid;gap:8px}._knMeter_1j6hk_25{display:flex;gap:2px;height:6px;border-radius:3px;overflow:hidden}._knSeg_1j6hk_26{display:block;min-width:2px}._knLearned_1j6hk_27{background:var(--live)}._knBuiltin_1j6hk_28{background:var(--accent)}._knUnknown_1j6hk_29{background:var(--line-2)}._knHeadline_1j6hk_30{margin:0;font-size:12.5px;color:var(--muted)}._knHeadline_1j6hk_30 b{color:var(--text);font-weight:600}._knChips_1j6hk_32{padding:0;border:0}._knRow_1j6hk_33{display:flex;align-items:center;gap:8px;min-height:42px;padding-right:14px;border-left:2px solid transparent}._knRowMain_1j6hk_38{flex:1;min-width:0;min-height:42px;display:grid;grid-template-columns:10px minmax(0,1fr) auto 72px minmax(0,auto);align-items:center;gap:12px;padding:4px 0 4px 12px;border:0;background:none;text-align:left}._knHead_1j6hk_30{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}._knTeach_1j6hk_45{display:inline-flex;align-items:center;gap:6px}._knTeach_1j6hk_45{flex:none;height:26px;min-width:82px;justify-content:center;padding:0 10px;border-radius:7px;border:1px solid var(--line-2);background:var(--panel-2);font-size:12px;color:var(--muted)}._knRow_1j6hk_33:hover ._knTeach_1j6hk_45,._knTeach_1j6hk_45:focus-visible{color:var(--accent);border-color:#7cc4ff66}._knTeachDone_1j6hk_52{color:var(--live)!important;border-color:#4ade8066!important}._toast_1j6hk_53{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom,0px));transform:translate(-50%);z-index:20;padding:8px 14px;border-radius:999px;background:#0b0c0e;border:1px solid rgba(74,222,128,.35);color:var(--text);font-size:12.5px;white-space:nowrap;box-shadow:0 8px 24px #00000073;animation:_drawer-in_1j6hk_1 .15s ease-out}._knRow_1j6hk_33:hover{background:#ffffff06;border-left-color:var(--line-2)}._knRowOpen_1j6hk_61{background:#7cc4ff12;border-left-color:var(--accent)}._knRowMain_1j6hk_38{outline:none}._knRow_1j6hk_33:has(._knRowMain_1j6hk_38:focus-visible):not(._knRowOpen_1j6hk_61){background:#ffffff0a}._knName_1j6hk_64{display:flex;align-items:baseline;gap:8px;min-width:0}._knTitle_1j6hk_65{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._knVendor_1j6hk_66{font-size:11.5px;color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._knPref_1j6hk_67{height:3px;border-radius:2px;background:var(--line);overflow:hidden}._knPref_1j6hk_67 span{display:block;height:100%;background:var(--bar)}._knState_1j6hk_69{font-size:11.5px;text-align:right;white-space:nowrap}._knState_1j6hk_69:where([data-coverage=learned]){color:var(--live)}._knState_1j6hk_69:where([data-coverage=built-in]){color:var(--accent)}._knState_1j6hk_69:where([data-coverage=unknown]){color:var(--faint)}._knElsewhere_1j6hk_73{padding:12px 14px 4px;font-size:11.5px;color:var(--faint)}@media (max-width: 720px){._knRowMain_1j6hk_38{grid-template-columns:10px minmax(0,1fr) auto 0 minmax(0,auto)}._knPref_1j6hk_67{display:none}}._knActions_1j6hk_81{display:flex;align-items:center;gap:8px;flex-wrap:wrap}._knContribute_1j6hk_82{display:inline-flex;align-items:center;justify-content:center;gap:6px}@keyframes _drawer-in_1j6hk_1{0%{transform:translate(24px);opacity:0}}._knOpen_1a1o8_1{display:flex;align-items:center;justify-content:center;text-decoration:none;color:var(--accent)}._covBadge_1a1o8_2:where([data-coverage=learned]){color:var(--live);background:#4ade8017;border:1px solid rgba(74,222,128,.25)}._covBadge_1a1o8_2:where([data-coverage=built-in]){color:var(--accent);background:#7cc4ff14;border:1px solid rgba(124,196,255,.25)}._covBadge_1a1o8_2:where([data-coverage=unknown]){color:var(--muted);border:1px solid var(--line-2)}._knRecord_1a1o8_7{flex:1 1 auto;min-height:160px;display:flex;flex-direction:column}._knRecord_1a1o8_7 ._knMd_1a1o8_8{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain}._knMd_1a1o8_8{padding:4px 12px 12px;font-size:12.5px;line-height:1.55;color:var(--text);user-select:text;overflow-wrap:anywhere}._knPrompt_1a1o8_12{white-space:pre-wrap;overflow-wrap:anywhere}._knTeachDrawer_1a1o8_13{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:34px;color:var(--accent);border-color:#7cc4ff4d}._selectionBar_1etfg_2{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 8px;padding:6px 8px 6px 12px;border:1px solid rgba(124,196,255,.35);border-radius:8px;background:#7cc4ff0f;font-size:12px;color:var(--muted)}._selectionBar_1etfg_2 b{color:var(--text)}._selectionNote_1etfg_10{color:var(--faint)}._log_1etfg_11{flex:1;min-height:240px;display:flex;flex-direction:column;border:1px solid var(--line);border-radius:12px;background:var(--panel);overflow:hidden;position:relative}._toolbar_1etfg_21{display:flex;align-items:center;gap:10px;padding:8px;border-bottom:1px solid var(--line);flex-wrap:wrap}._search_1etfg_27{flex:1;min-width:160px;display:flex;align-items:center;gap:8px;padding:0 10px;height:30px;background:var(--bg);border:1px solid var(--line);border-radius:8px;color:var(--faint)}._search_1etfg_27:focus-within{border-color:#7cc4ff80;color:var(--muted)}._search_1etfg_27 input{flex:1;min-width:0;border:0;outline:0;background:none;color:var(--text);font:inherit}._search_1etfg_27 input::placeholder{color:var(--faint)}._actions_1etfg_40{display:flex;gap:6px}._logMore_1etfg_41{display:flex;align-items:center;justify-content:center;gap:12px;padding:14px 16px 18px;font-size:12px;color:var(--faint)}._pausedBanner_1etfg_45{position:absolute;left:50%;bottom:12px;transform:translate(-50%);padding:5px 12px;border-radius:999px;font-size:11.5px;color:var(--warn);background:#14120ceb;border:1px solid rgba(245,184,75,.3);white-space:nowrap}@media (max-height: 640px){._log_1etfg_11{min-height:160px}}._logMenu_1etfg_57{display:none;flex:none;min-width:0}._logMenu_1etfg_57>button{height:30px;max-width:220px;padding:0 10px;font-size:12.5px}@media (max-height: 640px){._logMenu_1etfg_57{display:block}._toolbar_1etfg_21>._folds_1etfg_65,._toolbar_1etfg_21>._actions_1etfg_40,._log_1etfg_11>._folds_1etfg_65{display:none}._toolbar_1etfg_21{flex-wrap:nowrap;padding:6px}._search_1etfg_27{min-width:0}}._settingGroup_sllb8_1{display:grid;gap:4px}._settingGroup_sllb8_1 h3{margin:0 0 4px;font-size:11px;font-weight:600;color:var(--faint);text-transform:uppercase;letter-spacing:.06em}._installRow_sllb8_8{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px 0}._installText_sllb8_9{display:grid;gap:2px;min-width:0}._installRow_sllb8_8 .btn{flex-shrink:0}._installDone_sllb8_11{display:inline-flex;align-items:center;gap:6px;flex-shrink:0;font-size:12px;color:var(--muted)}._rowLabel_sllb8_14{font-size:13px;color:var(--text)}._rowHint_sllb8_15{font-size:11.5px;color:var(--faint);line-height:1.45}._settingHint_xy6ka_1{margin:6px 0 0;font-size:11.5px;color:var(--faint);line-height:1.45}._loreSteps_xy6ka_2{margin:0 0 8px;padding-left:18px;display:grid;gap:8px;font-size:12.5px;color:var(--muted);line-height:1.45}._loreSteps_xy6ka_2 li::marker{color:var(--faint)}._loreSteps_xy6ka_2 li:first-child ._loreOpen_xy6ka_4{vertical-align:middle}._loreSteps_xy6ka_2 li:first-child span{display:block;margin-top:4px;font-size:11.5px;color:var(--faint)}._loreOpen_xy6ka_4{display:inline-flex;align-items:center;text-decoration:none;color:var(--accent);border-color:#7cc4ff4d}._loreForm_xy6ka_7{display:flex;gap:8px}._loreInput_xy6ka_8{flex:1;min-width:0;height:30px;padding:0 10px;border-radius:7px;border:1px solid var(--line-2);background:var(--bg);color:var(--text);font-size:12px}._loreInput_xy6ka_8:focus{outline:none;border-color:#7cc4ff80}._loreInput_xy6ka_8[aria-invalid=true]{border-color:#f8717199}._loreConnected_xy6ka_14{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px}._loreConnected_xy6ka_14>span{display:inline-flex;align-items:center;gap:8px}._settingLink_xy6ka_16{color:var(--accent);text-decoration:none}._settingLink_xy6ka_16:hover{text-decoration:underline}._sparkWrap_rgyuy_1{position:relative;height:100%;cursor:crosshair}._spark_rgyuy_1{display:block;width:100%;height:100%;overflow:visible}._sparkBase_rgyuy_3{stroke:var(--line);stroke-width:1;vector-effect:non-scaling-stroke}._sparkLine_rgyuy_4{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}._sparkBar_rgyuy_5{fill:currentColor;opacity:.75}._sparkBarHover_rgyuy_6{opacity:1}._sparkWrap_rgyuy_1:where([data-tone=accent]){color:var(--accent)}._sparkWrap_rgyuy_1:where([data-tone=bad]){color:var(--bad)}._sparkWrap_rgyuy_1:where([data-tone=warn]){color:var(--warn)}._sparkWrap_rgyuy_1:where([data-tone=muted]){color:var(--muted)}._sparkGuide_rgyuy_11{position:absolute;top:-2px;bottom:0;width:1px;background:var(--line-2);pointer-events:none}._sparkDot_rgyuy_16{position:absolute;width:7px;height:7px;margin:-3.5px 0 0 -3.5px;border-radius:50%;background:currentColor;box-shadow:0 0 0 2px var(--panel);pointer-events:none}._sparkTip_rgyuy_22{position:absolute;bottom:calc(100% + 6px);display:inline-flex;gap:6px;align-items:baseline;padding:3px 7px;border-radius:6px;background:#0b0c0e;border:1px solid var(--line-2);box-shadow:0 4px 14px #0006;font-size:11px;color:var(--faint);white-space:nowrap;font-variant-numeric:tabular-nums;pointer-events:none;z-index:2}._sparkTip_rgyuy_22 b{color:var(--text);font-weight:600}._sparkTip_rgyuy_22:where([data-align=center]){transform:translate(-50%)}._sparkTip_rgyuy_22:where([data-align=end]){transform:translate(-100%)}._stats_g4xb6_1{flex:none;position:relative;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));border:1px solid var(--line);border-radius:12px;background:var(--panel)}._stat_g4xb6_1{display:flex;flex-direction:column;gap:2px;padding:12px 14px;min-width:0}._stat_g4xb6_1+._stat_g4xb6_1{border-left:1px solid var(--line)}._statLabel_g4xb6_12{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}._statValue_g4xb6_13{font-size:20px;font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums}._statHint_g4xb6_14{font-size:11.5px;color:var(--faint);font-variant-numeric:tabular-nums}._statSpark_g4xb6_15{margin-top:8px;height:24px}._statsToggle_g4xb6_16{display:none}@media (max-width: 720px){._stats_g4xb6_1:not(._statsFolded_g4xb6_20){grid-template-columns:repeat(2,minmax(0,1fr))}._stats_g4xb6_1:not(._statsFolded_g4xb6_20) ._stat_g4xb6_1+._stat_g4xb6_1{border-left:0}._stats_g4xb6_1:not(._statsFolded_g4xb6_20) ._stat_g4xb6_1{border-top:1px solid var(--line)}._stats_g4xb6_1:not(._statsFolded_g4xb6_20) ._stat_g4xb6_1:nth-of-type(-n+2){border-top:0}._stats_g4xb6_1:not(._statsFolded_g4xb6_20) ._stat_g4xb6_1:nth-of-type(2n){border-left:1px solid var(--line)}._stats_g4xb6_1:not(._statsFolded_g4xb6_20) ._stat_g4xb6_1:last-of-type:nth-of-type(odd){grid-column:span 2}._statsToggle_g4xb6_16{position:absolute;top:6px;right:6px;z-index:1;display:grid;place-items:center;width:24px;height:24px;padding:0;border:0;border-radius:6px;background:transparent;color:var(--faint);cursor:pointer}._statsToggle_g4xb6_16:hover{color:var(--text);background:var(--line)}._statsToggle_g4xb6_16:focus-visible{outline:2px solid var(--accent);outline-offset:1px}._statsFolded_g4xb6_20{grid-template-columns:repeat(5,minmax(0,1fr));padding-right:30px}._statsFolded_g4xb6_20 ._stat_g4xb6_1{padding:8px 10px}._statsFolded_g4xb6_20 ._statLabel_g4xb6_12{font-size:10px;letter-spacing:.04em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._statsFolded_g4xb6_20 ._statValue_g4xb6_13{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._statsFolded_g4xb6_20 ._statHint_g4xb6_14,._statsFolded_g4xb6_20 ._statSpark_g4xb6_15{display:none}._statsFolded_g4xb6_20 ._statsToggle_g4xb6_16{top:50%;transform:translateY(-50%)}}._shell_1bhue_1{max-width:1100px;height:100%;margin:0;padding:20px 20px 12px;display:flex;flex-direction:column;gap:14px}._footer_1bhue_10{flex:none;display:flex;justify-content:space-between;gap:16px;color:var(--faint);font-size:11.5px}._footer_1bhue_10 .mono{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._overview_1bhue_18{display:contents}._footerMeta_1bhue_19{flex:none;display:inline-flex;align-items:center}._footer_1bhue_10 a{color:var(--muted);text-decoration:none}._footer_1bhue_10 a:hover{color:var(--text);text-decoration:underline;text-underline-offset:2px}@media (max-width: 720px){._shell_1bhue_1{padding:14px 16px 10px}}@media (max-height: 640px){._shell_1bhue_1{padding:10px 12px 8px;gap:10px}._shell_1bhue_1:not(._overviewOn_1bhue_29)>._overview_1bhue_18,._footer_1bhue_10{display:none}}</style>
|
|
125
|
+
</head>
|
|
126
|
+
<body>
|
|
127
|
+
<div id="root"></div>
|
|
128
|
+
</body>
|
|
129
|
+
</html>
|