@xfey/tutti 0.1.95 → 0.1.97
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/collaboration-state/index.d.ts +5 -5
- package/dist/collaboration-state/index.js +4 -4
- package/dist/collaboration-state/scratchpad-source-state.d.ts +6 -1
- package/dist/collaboration-state/scratchpad-source-state.js +37 -6
- package/dist/collaboration-state/storage-types.d.ts +10 -0
- package/dist/collaboration-state/task-compile-context.d.ts +8 -3
- package/dist/collaboration-state/task-compile-context.js +91 -7
- package/dist/collaboration-state/task-retry.js +3 -1
- package/dist/collaboration-state/types.d.ts +12 -0
- package/dist/collaboration-state/worklist.d.ts +2 -1
- package/dist/collaboration-state/worklist.js +6 -0
- package/dist/control-plane/clarification-commands.d.ts +12 -8
- package/dist/control-plane/clarification-commands.js +29 -10
- package/dist/control-plane/dispatch-intents.d.ts +104 -0
- package/dist/control-plane/dispatch-intents.js +276 -0
- package/dist/control-plane/follow-up-run.d.ts +1 -1
- package/dist/control-plane/follow-up-run.js +12 -4
- package/dist/control-plane/follow-up-start.d.ts +3 -1
- package/dist/control-plane/follow-up-start.js +7 -2
- package/dist/control-plane/formatters.d.ts +2 -0
- package/dist/control-plane/formatters.js +6 -0
- package/dist/control-plane/index.d.ts +13 -1
- package/dist/control-plane/index.js +313 -16
- package/dist/control-plane/intent-dispatcher.d.ts +52 -0
- package/dist/control-plane/intent-dispatcher.js +184 -0
- package/dist/control-plane/reference-summary-refresh.d.ts +4 -1
- package/dist/control-plane/reference-summary-refresh.js +39 -4
- package/dist/control-plane/run-dispatch-intents.d.ts +15 -0
- package/dist/control-plane/run-dispatch-intents.js +40 -0
- package/dist/control-plane/run-retry.d.ts +1 -1
- package/dist/control-plane/run-retry.js +14 -6
- package/dist/control-plane/run-scheduler.d.ts +1 -1
- package/dist/control-plane/run-scheduler.js +12 -4
- package/dist/control-plane/scratchpad-refresh-start.d.ts +10 -2
- package/dist/control-plane/scratchpad-refresh-start.js +57 -8
- package/dist/control-plane/scratchpad-refresh.js +3 -4
- package/dist/control-plane/startup-recovery.d.ts +2 -2
- package/dist/control-plane/startup-recovery.js +73 -3
- package/dist/control-plane/task-compile-continuation.d.ts +3 -1
- package/dist/control-plane/task-compile-continuation.js +14 -9
- package/dist/control-plane/task-compile-start.d.ts +33 -1
- package/dist/control-plane/task-compile-start.js +244 -26
- package/dist/control-plane/types.d.ts +4 -2
- package/dist/providers/openai/app-server/session-store.js +2 -4
- package/migrations/0015_control_plane_intents.sql +115 -0
- package/migrations/README.md +2 -1
- package/node_modules/@tutti/shared/dist/ids/index.d.ts +3 -0
- package/node_modules/@tutti/shared/dist/ids/index.js +2 -0
- package/package.json +1 -1
- package/web/assets/{homepage-motion-scene-BFo4r4nz.js → homepage-motion-scene-lpr-1FjJ.js} +1 -1
- package/web/assets/{index-CNIl4TF8.js → index-CQoq2PtU.js} +2 -2
- package/web/index.html +1 -1
|
@@ -6,7 +6,7 @@ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=
|
|
|
6
6
|
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{be=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ye(n):``}function Se(e,t){switch(e.tag){case 26:case 27:case 5:return ye(e.type);case 16:return ye(`Lazy`);case 13:return e.child!==t&&t!==null?ye(`Suspense Fallback`):ye(`Suspense`);case 19:return ye(`SuspenseList`);case 0:case 15:return xe(e.type,!1);case 11:return xe(e.type.render,!1);case 1:return xe(e.type,!0);case 31:return ye(`Activity`);default:return``}}function Ce(e){try{var t=``,n=null;do t+=Se(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
7
7
|
Error generating stack: `+e.message+`
|
|
8
8
|
`+e.stack}}var we=Object.prototype.hasOwnProperty,Te=t.unstable_scheduleCallback,Ee=t.unstable_cancelCallback,De=t.unstable_shouldYield,Oe=t.unstable_requestPaint,ke=t.unstable_now,Ae=t.unstable_getCurrentPriorityLevel,je=t.unstable_ImmediatePriority,Me=t.unstable_UserBlockingPriority,Ne=t.unstable_NormalPriority,Pe=t.unstable_LowPriority,Fe=t.unstable_IdlePriority,Ie=t.log,Le=t.unstable_setDisableYieldValue,Re=null,ze=null;function Be(e){if(typeof Ie==`function`&&Le(e),ze&&typeof ze.setStrictMode==`function`)try{ze.setStrictMode(Re,e)}catch{}}var Ve=Math.clz32?Math.clz32:We,He=Math.log,Ue=Math.LN2;function We(e){return e>>>=0,e===0?32:31-(He(e)/Ue|0)|0}var Ge=256,Ke=262144,qe=4194304;function Je(e){var t=e&42;if(t!==0)return t;switch(e&-e){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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ye(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Je(n))):i=Je(o):i=Je(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Je(n))):i=Je(o)):i=Je(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Xe(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ze(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 Qe(){var e=qe;return qe<<=1,!(qe&62914560)&&(qe=4194304),e}function $e(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function F(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function I(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ve(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&et(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function et(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ve(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function tt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ve(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function nt(e,t){var n=t&-t;return n=n&42?1:rt(n),(n&(e.suspendedLanes|t))===0?n:0}function rt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function it(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function at(){var e=P.p;return e===0?(e=window.event,e===void 0?32:Cp(e.type)):e}function ot(e,t){var n=P.p;try{return P.p=e,t()}finally{P.p=n}}var st=Math.random().toString(36).slice(2),ct=`__reactFiber$`+st,lt=`__reactProps$`+st,ut=`__reactContainer$`+st,dt=`__reactEvents$`+st,ft=`__reactListeners$`+st,pt=`__reactHandles$`+st,mt=`__reactResources$`+st,ht=`__reactMarker$`+st;function gt(e){delete e[ct],delete e[lt],delete e[dt],delete e[ft],delete e[pt]}function L(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ut]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Sf(e);e!==null;){if(n=e[ct])return n;e=Sf(e)}return t}e=n,n=e.parentNode}return null}function _t(e){if(e=e[ct]||e[ut]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function vt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function yt(e){var t=e[mt];return t||=e[mt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function bt(e){e[ht]=!0}var xt=new Set,St={};function Ct(e,t){wt(e,t),wt(e+`Capture`,t)}function wt(e,t){for(St[e]=t,e=0;e<t.length;e++)xt.add(t[e])}var Tt=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]*$`),Et={},Dt={};function Ot(e){return we.call(Dt,e)?!0:we.call(Et,e)?!1:Tt.test(e)?Dt[e]=!0:(Et[e]=!0,!1)}function kt(e,t,n){if(Ot(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function At(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function jt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Mt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Nt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Pt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ft(e){if(!e._valueTracker){var t=Nt(e)?`checked`:`value`;e._valueTracker=Pt(e,t,``+e[t])}}function It(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Nt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Lt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Rt=/[\n"\\]/g;function zt(e){return e.replace(Rt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Bt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Mt(t)):e.value!==``+Mt(t)&&(e.value=``+Mt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Ht(e,o,Mt(n)):Ht(e,o,Mt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Mt(s):e.removeAttribute(`name`)}function Vt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Ft(e);return}n=n==null?``:``+Mt(n),t=t==null?n:``+Mt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Ft(e)}function Ht(e,t,n){t===`number`&&Lt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Ut(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Mt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Wt(e,t,n){if(t!=null&&(t=``+Mt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Mt(n)}function Gt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(ne(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Mt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Ft(e)}function Kt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var qt=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 Jt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||qt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Yt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Jt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Jt(e,o,t[o])}function Xt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){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 Zt=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`],[`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`]]),Qt=/^[\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 $t(e){return Qt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function en(){}var tn=null;function nn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rn=null,an=null;function on(e){var t=_t(e);if(t&&(e=t.stateNode)){var n=e[lt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Bt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+zt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[lt]||null;if(!a)throw Error(i(90));Bt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&It(r)}break a;case`textarea`:Wt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Ut(e,!!n.multiple,t,!1)}}}var sn=!1;function cn(e,t,n){if(sn)return e(t,n);sn=!0;try{return e(t)}finally{if(sn=!1,(rn!==null||an!==null)&&(Ou(),rn&&(t=rn,e=an,an=rn=null,on(t),e)))for(t=0;t<e.length;t++)on(e[t])}}function ln(e,t){var n=e.stateNode;if(n===null)return null;var r=n[lt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var un=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),dn=!1;if(un)try{var fn={};Object.defineProperty(fn,`passive`,{get:function(){dn=!0}}),window.addEventListener(`test`,fn,fn),window.removeEventListener(`test`,fn,fn)}catch{dn=!1}var pn=null,mn=null,hn=null;function gn(){if(hn)return hn;var e,t=mn,n=t.length,r,i=`value`in pn?pn.value:pn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return hn=i.slice(e,1<r?1-r:void 0)}function _n(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function vn(){return!0}function yn(){return!1}function bn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?vn:yn,this.isPropagationStopped=yn,this}return m(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=vn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=vn)},persist:function(){},isPersistent:vn}),t}var xn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sn=bn(xn),Cn=m({},xn,{view:0,detail:0}),wn=bn(Cn),Tn,En,Dn,On=m({},Cn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rn,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Dn&&(Dn&&e.type===`mousemove`?(Tn=e.screenX-Dn.screenX,En=e.screenY-Dn.screenY):En=Tn=0,Dn=e),Tn)},movementY:function(e){return`movementY`in e?e.movementY:En}}),R=bn(On),kn=bn(m({},On,{dataTransfer:0})),An=bn(m({},Cn,{relatedTarget:0})),jn=bn(m({},xn,{animationName:0,elapsedTime:0,pseudoElement:0})),Mn=bn(m({},xn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Nn=bn(m({},xn,{data:0})),Pn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Fn={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`},In={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Ln(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=In[e])?!!t[e]:!1}function Rn(){return Ln}var zn=bn(m({},Cn,{key:function(e){if(e.key){var t=Pn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=_n(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Fn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rn,charCode:function(e){return e.type===`keypress`?_n(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?_n(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Bn=bn(m({},On,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Vn=bn(m({},Cn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rn})),Hn=bn(m({},xn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Un=bn(m({},On,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),Wn=bn(m({},xn,{newState:0,oldState:0})),Gn=[9,13,27,32],Kn=un&&`CompositionEvent`in window,qn=null;un&&`documentMode`in document&&(qn=document.documentMode);var Jn=un&&`TextEvent`in window&&!qn,Yn=un&&(!Kn||qn&&8<qn&&11>=qn),Xn=` `,Zn=!1;function Qn(e,t){switch(e){case`keyup`:return Gn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function $n(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var er=!1;function tr(e,t){switch(e){case`compositionend`:return $n(t);case`keypress`:return t.which===32?(Zn=!0,Xn):null;case`textInput`:return e=t.data,e===Xn&&Zn?null:e;default:return null}}function nr(e,t){if(er)return e===`compositionend`||!Kn&&Qn(e,t)?(e=gn(),hn=mn=pn=null,er=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Yn&&t.locale!==`ko`?null:t.data;default:return null}}var rr={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 ir(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!rr[e.type]:t===`textarea`}function ar(e,t,n,r){rn?an?an.push(r):an=[r]:rn=r,t=Id(t,`onChange`),0<t.length&&(n=new Sn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var or=null,sr=null;function cr(e){Od(e,0)}function lr(e){if(It(vt(e)))return e}function ur(e,t){if(e===`change`)return t}var dr=!1;if(un){var fr;if(un){var pr=`oninput`in document;if(!pr){var mr=document.createElement(`div`);mr.setAttribute(`oninput`,`return;`),pr=typeof mr.oninput==`function`}fr=pr}else fr=!1;dr=fr&&(!document.documentMode||9<document.documentMode)}function hr(){or&&(or.detachEvent(`onpropertychange`,gr),sr=or=null)}function gr(e){if(e.propertyName===`value`&&lr(sr)){var t=[];ar(t,sr,e,nn(e)),cn(cr,t)}}function _r(e,t,n){e===`focusin`?(hr(),or=t,sr=n,or.attachEvent(`onpropertychange`,gr)):e===`focusout`&&hr()}function vr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return lr(sr)}function yr(e,t){if(e===`click`)return lr(t)}function br(e,t){if(e===`input`||e===`change`)return lr(t)}function xr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Sr=typeof Object.is==`function`?Object.is:xr;function Cr(e,t){if(Sr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!we.call(t,i)||!Sr(e[i],t[i]))return!1}return!0}function wr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Tr(e,t){var n=wr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=wr(n)}}function Er(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Er(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Lt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Lt(e.document)}return t}function Or(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var kr=un&&`documentMode`in document&&11>=document.documentMode,Ar=null,jr=null,Mr=null,Nr=!1;function Pr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Nr||Ar==null||Ar!==Lt(r)||(r=Ar,`selectionStart`in r&&Or(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Mr&&Cr(Mr,r)||(Mr=r,r=Id(jr,`onSelect`),0<r.length&&(t=new Sn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Ar)))}function Fr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Ir={animationend:Fr(`Animation`,`AnimationEnd`),animationiteration:Fr(`Animation`,`AnimationIteration`),animationstart:Fr(`Animation`,`AnimationStart`),transitionrun:Fr(`Transition`,`TransitionRun`),transitionstart:Fr(`Transition`,`TransitionStart`),transitioncancel:Fr(`Transition`,`TransitionCancel`),transitionend:Fr(`Transition`,`TransitionEnd`)},Lr={},Rr={};un&&(Rr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Ir.animationend.animation,delete Ir.animationiteration.animation,delete Ir.animationstart.animation),`TransitionEvent`in window||delete Ir.transitionend.transition);function zr(e){if(Lr[e])return Lr[e];if(!Ir[e])return e;var t=Ir[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Rr)return Lr[e]=t[n];return e}var Br=zr(`animationend`),Vr=zr(`animationiteration`),Hr=zr(`animationstart`),Ur=zr(`transitionrun`),Wr=zr(`transitionstart`),Gr=zr(`transitioncancel`),Kr=zr(`transitionend`),qr=new Map,Jr=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error 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(` `);Jr.push(`scrollEnd`);function Yr(e,t){qr.set(e,t),Ct(t,[e])}var Xr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Zr=[],Qr=0,$r=0;function ei(){for(var e=Qr,t=$r=Qr=0;t<e;){var n=Zr[t];Zr[t++]=null;var r=Zr[t];Zr[t++]=null;var i=Zr[t];Zr[t++]=null;var a=Zr[t];if(Zr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ii(n,i,a)}}function ti(e,t,n,r){Zr[Qr++]=e,Zr[Qr++]=t,Zr[Qr++]=n,Zr[Qr++]=r,$r|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ni(e,t,n,r){return ti(e,t,n,r),ai(e)}function ri(e,t){return ti(e,null,null,t),ai(e)}function ii(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ve(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ai(e){if(50<yu)throw yu=0,bu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var oi={};function si(e,t,n,r){this.tag=e,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=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ci(e,t,n,r){return new si(e,t,n,r)}function li(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ui(e,t){var n=e.alternate;return n===null?(n=ci(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function di(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function fi(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)li(e)&&(s=1);else if(typeof e==`string`)s=U(e,n,le.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case O:return e=ci(31,n,t,a),e.elementType=O,e.lanes=o,e;case y:return pi(n.children,a,o,t);case b:s=8,a|=24;break;case x:return e=ci(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case T:return e=ci(13,n,t,a),e.elementType=T,e.lanes=o,e;case E:return e=ci(19,n,t,a),e.elementType=E,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case S:s=9;break a;case w:s=11;break a;case ee:s=14;break a;case D:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ci(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function pi(e,t,n,r){return e=ci(7,e,r,t),e.lanes=n,e}function mi(e,t,n){return e=ci(6,e,null,t),e.lanes=n,e}function hi(e){var t=ci(18,null,null,0);return t.stateNode=e,t}function z(e,t,n){return t=ci(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var gi=new WeakMap;function _i(e,t){if(typeof e==`object`&&e){var n=gi.get(e);return n===void 0?(t={value:e,source:t,stack:Ce(t)},gi.set(e,t),t):n}return{value:e,source:t,stack:Ce(t)}}var vi=[],yi=0,bi=null,xi=0,Si=[],Ci=0,wi=null,Ti=1,Ei=``;function Di(e,t){vi[yi++]=xi,vi[yi++]=bi,bi=e,xi=t}function Oi(e,t,n){Si[Ci++]=Ti,Si[Ci++]=Ei,Si[Ci++]=wi,wi=e;var r=Ti;e=Ei;var i=32-Ve(r)-1;r&=~(1<<i),n+=1;var a=32-Ve(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ti=1<<32-Ve(t)+i|n<<i|r,Ei=a+e}else Ti=1<<a|n<<i|r,Ei=e}function ki(e){e.return!==null&&(Di(e,1),Oi(e,1,0))}function Ai(e){for(;e===bi;)bi=vi[--yi],vi[yi]=null,xi=vi[--yi],vi[yi]=null;for(;e===wi;)wi=Si[--Ci],Si[Ci]=null,Ei=Si[--Ci],Si[Ci]=null,Ti=Si[--Ci],Si[Ci]=null}function ji(e,t){Si[Ci++]=Ti,Si[Ci++]=Ei,Si[Ci++]=wi,Ti=t.id,Ei=t.overflow,wi=e}var Mi=null,Ni=null,Pi=!1,Fi=null,Ii=!1,Li=Error(i(519));function Ri(e){throw Wi(_i(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Li}function zi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[ct]=e,t[lt]=r,n){case`dialog`:kd(`cancel`,t),kd(`close`,t);break;case`iframe`:case`object`:case`embed`:kd(`load`,t);break;case`video`:case`audio`:for(n=0;n<Ed.length;n++)kd(Ed[n],t);break;case`source`:kd(`error`,t);break;case`img`:case`image`:case`link`:kd(`error`,t),kd(`load`,t);break;case`details`:kd(`toggle`,t);break;case`input`:kd(`invalid`,t),Vt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:kd(`invalid`,t);break;case`textarea`:kd(`invalid`,t),Gt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Hd(t.textContent,n)?(r.popover!=null&&(kd(`beforetoggle`,t),kd(`toggle`,t)),r.onScroll!=null&&kd(`scroll`,t),r.onScrollEnd!=null&&kd(`scrollend`,t),r.onClick!=null&&(t.onclick=en),t=!0):t=!1,t||Ri(e,!0)}function Bi(e){for(Mi=e.return;Mi;)switch(Mi.tag){case 5:case 31:case 13:Ii=!1;return;case 27:case 3:Ii=!0;return;default:Mi=Mi.return}}function Vi(e){if(e!==Mi)return!1;if(!Pi)return Bi(e),Pi=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||ef(e.type,e.memoizedProps)),n=!n),n&&Ni&&Ri(e),Bi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ni=xf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Ni=xf(e)}else t===27?(t=Ni,lf(e.type)?(e=bf,bf=null,Ni=e):Ni=t):Ni=Mi?yf(e.stateNode.nextSibling):null;return!0}function Hi(){Ni=Mi=null,Pi=!1}function Ui(){var e=Fi;return e!==null&&(au===null?au=e:au.push.apply(au,e),Fi=null),e}function Wi(e){Fi===null?Fi=[e]:Fi.push(e)}var Gi=oe(null),Ki=null,qi=null;function Ji(e,t,n){ce(Gi,t._currentValue),t._currentValue=n}function Yi(e){e._currentValue=Gi.current,se(Gi)}function Xi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Zi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Xi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Xi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Qi(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Sr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===fe.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[sp]:e.push(sp))}a=a.return}e!==null&&Zi(t,e,n,r),t.flags|=262144}function $i(e){for(e=e.firstContext;e!==null;){if(!Sr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ea(e){Ki=e,qi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ta(e){return ra(Ki,e)}function na(e,t){return Ki===null&&ea(e),ra(e,t)}function ra(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},qi===null){if(e===null)throw Error(i(308));qi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else qi=qi.next=t;return n}var ia=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},aa=t.unstable_scheduleCallback,oa=t.unstable_NormalPriority,sa={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ca(){return{controller:new ia,data:new Map,refCount:0}}function la(e){e.refCount--,e.refCount===0&&aa(oa,function(){e.controller.abort()})}var ua=null,da=0,fa=0,pa=null;function ma(e,t){if(ua===null){var n=ua=[];da=0,fa=bd(),pa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return da++,t.then(ha,ha),t}function ha(){if(--da===0&&ua!==null){pa!==null&&(pa.status=`fulfilled`);var e=ua;ua=null,fa=0,pa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ga(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var _a=N.S;N.S=function(e,t){cu=ke(),typeof t==`object`&&t&&typeof t.then==`function`&&ma(e,t),_a!==null&&_a(e,t)};var va=oe(null);function B(){var e=va.current;return e===null?Ul.pooledCache:e}function ya(e,t){t===null?ce(va,va.current):ce(va,t.pool)}function ba(){var e=B();return e===null?null:{parent:sa._currentValue,pool:e}}var xa=Error(i(460)),Sa=Error(i(474)),Ca=Error(i(542)),wa={then:function(){}};function Ta(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ea(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(en,en),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Aa(e),e;default:if(typeof t.status==`string`)t.then(en,en);else{if(e=Ul,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Aa(e),e}throw Oa=t,xa}}function Da(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Oa=e,xa):e}}var Oa=null;function ka(){if(Oa===null)throw Error(i(459));var e=Oa;return Oa=null,e}function Aa(e){if(e===xa||e===Ca)throw Error(i(483))}var ja=null,Ma=0;function Na(e){var t=Ma;return Ma+=1,ja===null&&(ja=[]),Ea(ja,e,t)}function Pa(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Fa(e,t){throw t.$$typeof===g?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function V(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=ui(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=mi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===D&&Da(i)===t.type)?(t=a(t,n.props),Pa(t,n),t.return=e,t):(t=fi(n.type,n.key,n.props,null,e.mode,r),Pa(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=z(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=pi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=mi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case _:return n=fi(t.type,t.key,t.props,null,e.mode,n),Pa(n,t),n.return=e,n;case v:return t=z(t,e.mode,n),t.return=e,t;case D:return t=Da(t),f(e,t,n)}if(ne(t)||j(t))return t=pi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Na(t),n);if(t.$$typeof===C)return f(e,na(e,t),n);Fa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case _:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case D:return n=Da(n),p(e,t,n,r)}if(ne(n)||j(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Na(n),r);if(n.$$typeof===C)return p(e,t,na(e,n),r);Fa(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case _:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case D:return r=Da(r),m(e,t,n,r,i)}if(ne(r)||j(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Na(r),i);if(r.$$typeof===C)return m(e,t,n,na(t,r),i);Fa(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Pi&&Di(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Pi&&Di(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),Pi&&Di(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Pi&&Di(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Pi&&Di(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Pi&&Di(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===D&&Da(l)===r.type){n(e,r.sibling),c=a(r,o.props),Pa(c,o),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}o.type===y?(c=pi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=fi(o.type,o.key,o.props,null,e.mode,c),Pa(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=z(o,e.mode,c),c.return=e,e=c}return s(e);case D:return o=Da(o),b(e,r,o,c)}if(ne(o))return h(e,r,o,c);if(j(o)){if(l=j(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Na(o),c);if(o.$$typeof===C)return b(e,r,na(e,o),c);Fa(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=mi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Ma=0;var i=b(e,t,n,r);return ja=null,i}catch(t){if(t===xa||t===Ca)throw t;var a=ci(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ia=V(!0),La=V(!1),Ra=!1;function za(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ba(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Va(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ha(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Hl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ai(e),ii(e,null,n),t}return ti(e,r,t,n),ai(e)}function Ua(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tt(e,n)}}function Wa(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ga=!1;function Ka(){if(Ga){var e=pa;if(e!==null)throw e}}function qa(e,t,n,r){Ga=!1;var i=e.updateQueue;Ra=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Gl&f)===f:(r&f)===f){f!==0&&f===fa&&(Ga=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=m({},d,f);break a;case 2:Ra=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),$l|=o,e.lanes=o,e.memoizedState=d}}function Ja(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ya(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ja(n[e],t)}var Xa=oe(null),Za=oe(0);function Qa(e,t){e=Zl,ce(Za,e),ce(Xa,t),Zl=e|t.baseLanes}function $a(){ce(Za,Zl),ce(Xa,Xa.current)}function eo(){Zl=Za.current,se(Xa),se(Za)}var to=oe(null),no=null;function ro(e){var t=e.alternate;ce(co,co.current&1),ce(to,e),no===null&&(t===null||Xa.current!==null||t.memoizedState!==null)&&(no=e)}function io(e){ce(co,co.current),ce(to,e),no===null&&(no=e)}function ao(e){e.tag===22?(ce(co,co.current),ce(to,e),no===null&&(no=e)):oo(e)}function oo(){ce(co,co.current),ce(to,to.current)}function so(e){se(to),no===e&&(no=null),se(co)}var co=oe(0);function lo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||gf(n)||_f(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var uo=0,H=null,fo=null,po=null,mo=!1,ho=!1,go=!1,_o=0,vo=0,yo=null,bo=0;function xo(){throw Error(i(321))}function So(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Sr(e[n],t[n]))return!1;return!0}function Co(e,t,n,r,i,a){return uo=a,H=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,N.H=e===null||e.memoizedState===null?Bs:Vs,go=!1,a=n(r,i),go=!1,ho&&(a=To(t,n,r,i)),wo(e),a}function wo(e){N.H=zs;var t=fo!==null&&fo.next!==null;if(uo=0,po=fo=H=null,mo=!1,vo=0,yo=null,t)throw Error(i(300));e===null||ic||(e=e.dependencies,e!==null&&$i(e)&&(ic=!0))}function To(e,t,n,r){H=e;var a=0;do{if(ho&&(yo=null),vo=0,ho=!1,25<=a)throw Error(i(301));if(a+=1,po=fo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}N.H=Hs,o=t(n,r)}while(ho);return o}function Eo(){var e=N.H,t=e.useState()[0];return t=typeof t.then==`function`?No(t):t,e=e.useState()[0],(fo===null?null:fo.memoizedState)!==e&&(H.flags|=1024),t}function Do(){var e=_o!==0;return _o=0,e}function Oo(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function ko(e){if(mo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}mo=!1}uo=0,po=fo=H=null,ho=!1,vo=_o=0,yo=null}function Ao(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return po===null?H.memoizedState=po=e:po=po.next=e,po}function jo(){if(fo===null){var e=H.alternate;e=e===null?null:e.memoizedState}else e=fo.next;var t=po===null?H.memoizedState:po.next;if(t!==null)po=t,fo=e;else{if(e===null)throw H.alternate===null?Error(i(467)):Error(i(310));fo=e,e={memoizedState:fo.memoizedState,baseState:fo.baseState,baseQueue:fo.baseQueue,queue:fo.queue,next:null},po===null?H.memoizedState=po=e:po=po.next=e}return po}function Mo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function No(e){var t=vo;return vo+=1,yo===null&&(yo=[]),e=Ea(yo,e,t),t=H,(po===null?t.memoizedState:po.next)===null&&(t=t.alternate,N.H=t===null||t.memoizedState===null?Bs:Vs),e}function Po(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return No(e);if(e.$$typeof===C)return ta(e)}throw Error(i(438,String(e)))}function Fo(e){var t=null,n=H.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=H.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=Mo(),H.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=k;return t.index++,n}function Io(e,t){return typeof t==`function`?t(e):t}function Lo(e){return Ro(jo(),fo,e)}function Ro(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(uo&f)===f:(Gl&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===fa&&(d=!0);else if((uo&p)===p){u=u.next,p===fa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,H.lanes|=p,$l|=p;f=u.action,go&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,H.lanes|=f,$l|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Sr(o,e.memoizedState)&&(ic=!0,d&&(n=pa,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function zo(e){var t=jo(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Sr(o,t.memoizedState)||(ic=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Bo(e,t,n){var r=H,a=jo(),o=Pi;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Sr((fo||a).memoizedState,n);if(s&&(a.memoizedState=n,ic=!0),a=a.queue,ds(Uo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||po!==null&&po.memoizedState.tag&1){if(r.flags|=2048,os(9,{destroy:void 0},Ho.bind(null,r,a,n,t),null),Ul===null)throw Error(i(349));o||uo&127||Vo(r,t,n)}return n}function Vo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=H.updateQueue,t===null?(t=Mo(),H.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ho(e,t,n,r){t.value=n,t.getSnapshot=r,Wo(t)&&Go(e)}function Uo(e,t,n){return n(function(){Wo(t)&&Go(e)})}function Wo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Sr(e,n)}catch{return!0}}function Go(e){var t=ri(e,2);t!==null&&Cu(t,e,2)}function Ko(e){var t=Ao();if(typeof e==`function`){var n=e;if(e=n(),go){Be(!0);try{n()}finally{Be(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:e},t}function qo(e,t,n,r){return e.baseState=n,Ro(e,fo,typeof r==`function`?r:Io)}function Jo(e,t,n,r,a){if(Is(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};N.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Yo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Yo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=N.T,o={};N.T=o;try{var s=n(i,r),c=N.S;c!==null&&c(o,s),Xo(e,t,s)}catch(n){Qo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),N.T=a}}else try{a=n(i,r),Xo(e,t,a)}catch(n){Qo(e,t,n)}}function Xo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Zo(e,t,n)},function(n){return Qo(e,t,n)}):Zo(e,t,n)}function Zo(e,t,n){t.status=`fulfilled`,t.value=n,$o(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Yo(e,n)))}function Qo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,$o(t),t=t.next;while(t!==r)}e.action=null}function $o(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function es(e,t){return t}function ts(e,t){if(Pi){var n=Ul.formState;if(n!==null){a:{var r=H;if(Pi){if(Ni){b:{for(var i=Ni,a=Ii;i.nodeType!==8;){if(!a){i=null;break b}if(i=yf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Ni=yf(i.nextSibling),r=i.data===`F!`;break a}}Ri(r)}r=!1}r&&(t=n[0])}}return n=Ao(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:es,lastRenderedState:t},n.queue=r,n=Ns.bind(null,H,r),r.dispatch=n,r=Ko(!1),a=Fs.bind(null,H,!1,r.queue),r=Ao(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Jo.bind(null,H,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function ns(e){return rs(jo(),fo,e)}function rs(e,t,n){if(t=Ro(e,t,es)[0],e=Lo(Io)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=No(t)}catch(e){throw e===xa?Ca:e}else r=t;t=jo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(H.flags|=2048,os(9,{destroy:void 0},is.bind(null,i,n),null)),[r,a,e]}function is(e,t){e.action=t}function as(e){var t=jo(),n=fo;if(n!==null)return rs(t,n,e);jo(),t=t.memoizedState,n=jo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function os(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=H.updateQueue,t===null&&(t=Mo(),H.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ss(){return jo().memoizedState}function cs(e,t,n,r){var i=Ao();H.flags|=e,i.memoizedState=os(1|t,{destroy:void 0},n,r===void 0?null:r)}function ls(e,t,n,r){var i=jo();r=r===void 0?null:r;var a=i.memoizedState.inst;fo!==null&&r!==null&&So(r,fo.memoizedState.deps)?i.memoizedState=os(t,a,n,r):(H.flags|=e,i.memoizedState=os(1|t,a,n,r))}function us(e,t){cs(8390656,8,e,t)}function ds(e,t){ls(2048,8,e,t)}function fs(e){H.flags|=4;var t=H.updateQueue;if(t===null)t=Mo(),H.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ps(e){var t=jo().memoizedState;return fs({ref:t,nextImpl:e}),function(){if(Hl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function ms(e,t){return ls(4,2,e,t)}function hs(e,t){return ls(4,4,e,t)}function gs(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function _s(e,t,n){n=n==null?null:n.concat([e]),ls(4,4,gs.bind(null,t,e),n)}function vs(){}function ys(e,t){var n=jo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&So(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function bs(e,t){var n=jo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&So(t,r[1]))return r[0];if(r=e(),go){Be(!0);try{e()}finally{Be(!1)}}return n.memoizedState=[r,t],r}function xs(e,t,n){return n===void 0||uo&1073741824&&!(Gl&261930)?e.memoizedState=t:(e.memoizedState=n,e=Su(),H.lanes|=e,$l|=e,n)}function Ss(e,t,n,r){return Sr(n,t)?n:Xa.current===null?!(uo&42)||uo&1073741824&&!(Gl&261930)?(ic=!0,e.memoizedState=n):(e=Su(),H.lanes|=e,$l|=e,t):(e=xs(e,n,r),Sr(e,t)||(ic=!0),e)}function Cs(e,t,n,r,i){var a=P.p;P.p=a!==0&&8>a?a:8;var o=N.T,s={};N.T=s,Fs(e,!1,t,n);try{var c=i(),l=N.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Ps(e,t,ga(c,r),xu(e)):Ps(e,t,r,xu(e))}catch(n){Ps(e,t,{then:function(){},status:`rejected`,reason:n},xu())}finally{P.p=a,o!==null&&s.types!==null&&(o.types=s.types),N.T=o}}function ws(){}function Ts(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Es(e).queue;Cs(e,a,t,re,n===null?ws:function(){return Ds(e),n(r)})}function Es(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:re},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Io,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ds(e){var t=Es(e);t.next===null&&(t=e.alternate.memoizedState),Ps(e,t.next.queue,{},xu())}function Os(){return ta(sp)}function ks(){return jo().memoizedState}function As(){return jo().memoizedState}function js(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=xu();e=Va(n);var r=Ha(t,e,n);r!==null&&(Cu(r,t,n),Ua(r,t,n)),t={cache:ca()},e.payload=t;return}t=t.return}}function Ms(e,t,n){var r=xu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Is(e)?Ls(t,n):(n=ni(e,t,n,r),n!==null&&(Cu(n,e,r),Rs(n,t,r)))}function Ns(e,t,n){Ps(e,t,n,xu())}function Ps(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Is(e))Ls(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Sr(s,o))return ti(e,t,i,0),Ul===null&&ei(),!1}catch{}if(n=ni(e,t,i,r),n!==null)return Cu(n,e,r),Rs(n,t,r),!0}return!1}function Fs(e,t,n,r){if(r={lane:2,revertLane:bd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Is(e)){if(t)throw Error(i(479))}else t=ni(e,n,r,2),t!==null&&Cu(t,e,2)}function Is(e){var t=e.alternate;return e===H||t!==null&&t===H}function Ls(e,t){ho=mo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Rs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tt(e,n)}}var zs={readContext:ta,use:Po,useCallback:xo,useContext:xo,useEffect:xo,useImperativeHandle:xo,useLayoutEffect:xo,useInsertionEffect:xo,useMemo:xo,useReducer:xo,useRef:xo,useState:xo,useDebugValue:xo,useDeferredValue:xo,useTransition:xo,useSyncExternalStore:xo,useId:xo,useHostTransitionStatus:xo,useFormState:xo,useActionState:xo,useOptimistic:xo,useMemoCache:xo,useCacheRefresh:xo};zs.useEffectEvent=xo;var Bs={readContext:ta,use:Po,useCallback:function(e,t){return Ao().memoizedState=[e,t===void 0?null:t],e},useContext:ta,useEffect:us,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),cs(4194308,4,gs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return cs(4194308,4,e,t)},useInsertionEffect:function(e,t){cs(4,2,e,t)},useMemo:function(e,t){var n=Ao();t=t===void 0?null:t;var r=e();if(go){Be(!0);try{e()}finally{Be(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Ao();if(n!==void 0){var i=n(t);if(go){Be(!0);try{n(t)}finally{Be(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ms.bind(null,H,e),[r.memoizedState,e]},useRef:function(e){var t=Ao();return e={current:e},t.memoizedState=e},useState:function(e){e=Ko(e);var t=e.queue,n=Ns.bind(null,H,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:vs,useDeferredValue:function(e,t){return xs(Ao(),e,t)},useTransition:function(){var e=Ko(!1);return e=Cs.bind(null,H,e.queue,!0,!1),Ao().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=H,a=Ao();if(Pi){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Ul===null)throw Error(i(349));Gl&127||Vo(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,us(Uo.bind(null,r,o,e),[e]),r.flags|=2048,os(9,{destroy:void 0},Ho.bind(null,r,o,n,t),null),n},useId:function(){var e=Ao(),t=Ul.identifierPrefix;if(Pi){var n=Ei,r=Ti;n=(r&~(1<<32-Ve(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=_o++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=bo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Os,useFormState:ts,useActionState:ts,useOptimistic:function(e){var t=Ao();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Fs.bind(null,H,!0,n),n.dispatch=t,[e,t]},useMemoCache:Fo,useCacheRefresh:function(){return Ao().memoizedState=js.bind(null,H)},useEffectEvent:function(e){var t=Ao(),n={impl:e};return t.memoizedState=n,function(){if(Hl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Vs={readContext:ta,use:Po,useCallback:ys,useContext:ta,useEffect:ds,useImperativeHandle:_s,useInsertionEffect:ms,useLayoutEffect:hs,useMemo:bs,useReducer:Lo,useRef:ss,useState:function(){return Lo(Io)},useDebugValue:vs,useDeferredValue:function(e,t){return Ss(jo(),fo.memoizedState,e,t)},useTransition:function(){var e=Lo(Io)[0],t=jo().memoizedState;return[typeof e==`boolean`?e:No(e),t]},useSyncExternalStore:Bo,useId:ks,useHostTransitionStatus:Os,useFormState:ns,useActionState:ns,useOptimistic:function(e,t){return qo(jo(),fo,e,t)},useMemoCache:Fo,useCacheRefresh:As};Vs.useEffectEvent=ps;var Hs={readContext:ta,use:Po,useCallback:ys,useContext:ta,useEffect:ds,useImperativeHandle:_s,useInsertionEffect:ms,useLayoutEffect:hs,useMemo:bs,useReducer:zo,useRef:ss,useState:function(){return zo(Io)},useDebugValue:vs,useDeferredValue:function(e,t){var n=jo();return fo===null?xs(n,e,t):Ss(n,fo.memoizedState,e,t)},useTransition:function(){var e=zo(Io)[0],t=jo().memoizedState;return[typeof e==`boolean`?e:No(e),t]},useSyncExternalStore:Bo,useId:ks,useHostTransitionStatus:Os,useFormState:as,useActionState:as,useOptimistic:function(e,t){var n=jo();return fo===null?(n.baseState=e,[e,n.queue.dispatch]):qo(n,fo,e,t)},useMemoCache:Fo,useCacheRefresh:As};Hs.useEffectEvent=ps;function Us(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:m({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ws={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=xu(),i=Va(r);i.payload=t,n!=null&&(i.callback=n),t=Ha(e,i,r),t!==null&&(Cu(t,e,r),Ua(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=xu(),i=Va(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ha(e,i,r),t!==null&&(Cu(t,e,r),Ua(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=xu(),r=Va(n);r.tag=2,t!=null&&(r.callback=t),t=Ha(e,r,n),t!==null&&(Cu(t,e,n),Ua(t,e,n))}};function Gs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Cr(n,r)||!Cr(i,a):!0}function Ks(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ws.enqueueReplaceState(t,t.state,null)}function qs(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=m({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Js(e){Xr(e)}function Ys(e){console.error(e)}function Xs(e){Xr(e)}function Zs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Qs(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function $s(e,t,n){return n=Va(n),n.tag=3,n.payload={element:null},n.callback=function(){Zs(e,t)},n}function ec(e){return e=Va(e),e.tag=3,e}function tc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Qs(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Qs(t,n,r),typeof i!=`function`&&(du===null?du=new Set([this]):du.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function nc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Qi(t,n,a,!0),n=to.current,n!==null){switch(n.tag){case 31:case 13:return no===null?Fu():n.alternate===null&&Ql===0&&(Ql=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===wa?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),ed(e,r,a)),!1;case 22:return n.flags|=65536,r===wa?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),ed(e,r,a)),!1}throw Error(i(435,n.tag))}return ed(e,r,a),Fu(),!1}if(Pi)return t=to.current,t===null?(r!==Li&&(t=Error(i(423),{cause:r}),Wi(_i(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=_i(r,n),a=$s(e.stateNode,r,a),Wa(e,a),Ql!==4&&(Ql=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Li&&(e=Error(i(422),{cause:r}),Wi(_i(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=_i(o,n),iu===null?iu=[o]:iu.push(o),Ql!==4&&(Ql=2),t===null)return!0;r=_i(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=$s(n.stateNode,r,e),Wa(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(du===null||!du.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=ec(a),tc(a,e,n,r),Wa(n,a),!1}n=n.return}while(n!==null);return!1}var rc=Error(i(461)),ic=!1;function ac(e,t,n,r){t.child=e===null?La(t,null,n,r):Ia(t,e.child,n,r)}function oc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return ea(t),r=Co(e,t,n,o,a,i),s=Do(),e!==null&&!ic?(Oo(e,t,i),Ac(e,t,i)):(Pi&&s&&ki(t),t.flags|=1,ac(e,t,r,i),t.child)}function sc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!li(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,cc(e,t,a,r,i)):(e=fi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!jc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Cr:n,n(o,r)&&e.ref===t.ref)return Ac(e,t,i)}return t.flags|=1,e=ui(a,r),e.ref=t.ref,e.return=t,t.child=e}function cc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Cr(a,r)&&e.ref===t.ref)if(ic=!1,t.pendingProps=r=a,jc(e,i))e.flags&131072&&(ic=!0);else return t.lanes=e.lanes,Ac(e,t,i)}return gc(e,t,n,r,i)}function lc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return dc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ya(t,a===null?null:a.cachePool),a===null?$a():Qa(t,a),ao(t);else return r=t.lanes=536870912,dc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ya(t,null),$a(),oo(t)):(ya(t,a.cachePool),Qa(t,a),oo(t),t.memoizedState=null);return ac(e,t,i,n),t.child}function uc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function dc(e,t,n,r,i){var a=B();return a=a===null?null:{parent:sa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ya(t,null),$a(),ao(t),e!==null&&Qi(e,t,r,!0),t.childLanes=i,null}function fc(e,t){return t=Tc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function pc(e,t,n){return Ia(t,e.child,null,n),e=fc(t,t.pendingProps),e.flags|=2,so(t),t.memoizedState=null,e}function mc(e,t,n){var r=t.pendingProps,a=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(Pi){if(r.mode===`hidden`)return e=fc(t,r),t.lanes=536870912,uc(null,e);if(io(t),(e=Ni)?(e=hf(e,Ii),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:wi===null?null:{id:Ti,overflow:Ei},retryLane:536870912,hydrationErrors:null},n=hi(e),n.return=t,t.child=n,Mi=t,Ni=null)):e=null,e===null)throw Ri(t);return t.lanes=536870912,null}return fc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(io(t),a)if(t.flags&256)t.flags&=-257,t=pc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(ic||Qi(e,t,n,!1),a=(n&e.childLanes)!==0,ic||a){if(r=Ul,r!==null&&(s=nt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ri(e,s),Cu(r,e,s),rc;Fu(),t=pc(e,t,n)}else e=o.treeContext,Ni=yf(s.nextSibling),Mi=t,Pi=!0,Fi=null,Ii=!1,e!==null&&ji(t,e),t=fc(t,r),t.flags|=4096;return t}return e=ui(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function hc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function gc(e,t,n,r,i){return ea(t),n=Co(e,t,n,r,void 0,i),r=Do(),e!==null&&!ic?(Oo(e,t,i),Ac(e,t,i)):(Pi&&r&&ki(t),t.flags|=1,ac(e,t,n,i),t.child)}function _c(e,t,n,r,i,a){return ea(t),t.updateQueue=null,n=To(t,r,n,i),wo(e),r=Do(),e!==null&&!ic?(Oo(e,t,a),Ac(e,t,a)):(Pi&&r&&ki(t),t.flags|=1,ac(e,t,n,a),t.child)}function vc(e,t,n,r,i){if(ea(t),t.stateNode===null){var a=oi,o=n.contextType;typeof o==`object`&&o&&(a=ta(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Ws,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},za(t),o=n.contextType,a.context=typeof o==`object`&&o?ta(o):oi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Us(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Ws.enqueueReplaceState(a,a.state,null),qa(t,r,a,i),Ka(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=qs(n,s);a.props=c;var l=a.context,u=n.contextType;o=oi,typeof u==`object`&&u&&(o=ta(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Ks(t,a,r,o),Ra=!1;var f=t.memoizedState;a.state=f,qa(t,r,a,i),Ka(),l=t.memoizedState,s||f!==l||Ra?(typeof d==`function`&&(Us(t,n,d,r),l=t.memoizedState),(c=Ra||Gs(t,n,c,r,f,l,o))?(u||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`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ba(e,t),o=t.memoizedProps,u=qs(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=oi,typeof l==`object`&&l&&(c=ta(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Ks(t,a,r,c),Ra=!1,f=t.memoizedState,a.state=f,qa(t,r,a,i),Ka();var p=t.memoizedState;o!==d||f!==p||Ra||e!==null&&e.dependencies!==null&&$i(e.dependencies)?(typeof s==`function`&&(Us(t,n,s,r),p=t.memoizedState),(u=Ra||Gs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&$i(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,hc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ia(t,e.child,null,i),t.child=Ia(t,null,n,i)):ac(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Ac(e,t,i),e}function yc(e,t,n,r){return Hi(),t.flags|=256,ac(e,t,n,r),t.child}var bc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xc(e){return{baseLanes:e,cachePool:ba()}}function Sc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=nu),e}function Cc(e,t,n){var r=t.pendingProps,a=!1,o=(t.flags&128)!=0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(co.current&2)!=0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!=0,t.flags&=-33,e===null){if(Pi){if(a?ro(t):oo(t),(e=Ni)?(e=hf(e,Ii),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:wi===null?null:{id:Ti,overflow:Ei},retryLane:536870912,hydrationErrors:null},n=hi(e),n.return=t,t.child=n,Mi=t,Ni=null)):e=null,e===null)throw Ri(t);return _f(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(oo(t),a=t.mode,c=Tc({mode:`hidden`,children:c},a),r=pi(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=xc(n),r.childLanes=Sc(e,s,n),t.memoizedState=bc,uc(null,r)):(ro(t),wc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(ro(t),t.flags&=-257,t=Ec(e,t,n)):t.memoizedState===null?(oo(t),c=r.fallback,a=t.mode,r=Tc({mode:`visible`,children:r.children},a),c=pi(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ia(t,e.child,null,n),r=t.child,r.memoizedState=xc(n),r.childLanes=Sc(e,s,n),t.memoizedState=bc,t=uc(null,r)):(oo(t),t.child=e.child,t.flags|=128,t=null);else if(ro(t),_f(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Wi({value:r,source:null,stack:null}),t=Ec(e,t,n)}else if(ic||Qi(e,t,n,!1),s=(n&e.childLanes)!==0,ic||s){if(s=Ul,s!==null&&(r=nt(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ri(e,r),Cu(s,e,r),rc;gf(c)||Fu(),t=Ec(e,t,n)}else gf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Ni=yf(c.nextSibling),Mi=t,Pi=!0,Fi=null,Ii=!1,e!==null&&ji(t,e),t=wc(t,r.children),t.flags|=4096);return t}return a?(oo(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=ui(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=pi(c,a,n,null),c.flags|=2):c=ui(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,uc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=xc(n):(a=c.cachePool,a===null?a=ba():(l=sa._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=Sc(e,s,n),t.memoizedState=bc,uc(e.child,r)):(ro(t),n=e.child,e=n.sibling,n=ui(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function wc(e,t){return t=Tc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Tc(e,t){return e=ci(22,e,null,t),e.lanes=0,e}function Ec(e,t,n){return Ia(t,e.child,null,n),e=wc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Dc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Xi(e.return,t,n)}function Oc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function kc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=co.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,ce(co,o),ac(e,t,r,n),r=Pi?xi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Dc(e,n,t);else if(e.tag===19)Dc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&lo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Oc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&lo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Oc(t,!0,n,null,a,r);break;case`together`:Oc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Ac(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),$l|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Qi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=ui(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ui(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function jc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&$i(e))):!0}function Mc(e,t,n){switch(t.tag){case 3:pe(t,t.stateNode.containerInfo),Ji(t,sa,e.memoizedState.cache),Hi();break;case 27:case 5:he(t);break;case 4:pe(t,t.stateNode.containerInfo);break;case 10:Ji(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,io(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(ro(t),e=Ac(e,t,n),e===null?null:e.sibling):Cc(e,t,n):(ro(t),t.flags|=128,null);ro(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Qi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return kc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ce(co,co.current),r)break;return null;case 22:return t.lanes=0,lc(e,t,n,t.pendingProps);case 24:Ji(t,sa,e.memoizedState.cache)}return Ac(e,t,n)}function Nc(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)ic=!0;else{if(!jc(e,n)&&!(t.flags&128))return ic=!1,Mc(e,t,n);ic=!!(e.flags&131072)}else ic=!1,Pi&&t.flags&1048576&&Oi(t,xi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Da(t.elementType),t.type=e,typeof e==`function`)li(e)?(r=qs(e,r),t.tag=1,t=vc(null,t,e,r,n)):(t.tag=0,t=gc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=oc(null,t,e,r,n);break a}else if(a===ee){t.tag=14,t=sc(null,t,e,r,n);break a}}throw t=te(e)||e,Error(i(306,t,``))}}return t;case 0:return gc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=qs(r,t.pendingProps),vc(e,t,r,a,n);case 3:a:{if(pe(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ba(e,t),qa(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Ji(t,sa,r),r!==o.cache&&Zi(t,[sa],n,!0),Ka(),r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=yc(e,t,r,n);break a}else if(r!==a){a=_i(Error(i(424)),t),Wi(a),t=yc(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Ni=yf(e.firstChild),Mi=t,Pi=!0,Fi=null,Ii=!0,n=La(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Hi(),r===a){t=Ac(e,t,n);break a}ac(e,t,r,n)}t=t.child}return t;case 26:return hc(e,t),e===null?(n=Bf(t.type,null,t.pendingProps,null))?t.memoizedState=n:Pi||(n=t.type,e=t.pendingProps,r=Zd(de.current).createElement(n),r[ct]=t,r[lt]=e,Gd(r,n,e),bt(r),t.stateNode=r):t.memoizedState=Bf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return he(t),e===null&&Pi&&(r=t.stateNode=Cf(t.type,t.pendingProps,de.current),Mi=t,Ii=!0,a=Ni,lf(t.type)?(bf=a,Ni=yf(r.firstChild)):Ni=a),ac(e,t,t.pendingProps.children,n),hc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Pi&&((a=r=Ni)&&(r=pf(r,t.type,t.pendingProps,Ii),r===null?a=!1:(t.stateNode=r,Mi=t,Ni=yf(r.firstChild),Ii=!1,a=!0)),a||Ri(t)),he(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,ef(a,o)?r=null:s!==null&&ef(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Co(e,t,Eo,null,null,n),sp._currentValue=a),hc(e,t),ac(e,t,r,n),t.child;case 6:return e===null&&Pi&&((e=n=Ni)&&(n=mf(n,t.pendingProps,Ii),n===null?e=!1:(t.stateNode=n,Mi=t,Ni=null,e=!0)),e||Ri(t)),null;case 13:return Cc(e,t,n);case 4:return pe(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ia(t,null,r,n):ac(e,t,r,n),t.child;case 11:return oc(e,t,t.type,t.pendingProps,n);case 7:return ac(e,t,t.pendingProps,n),t.child;case 8:return ac(e,t,t.pendingProps.children,n),t.child;case 12:return ac(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ji(t,t.type,r.value),ac(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,ea(t),a=ta(a),r=r(a),t.flags|=1,ac(e,t,r,n),t.child;case 14:return sc(e,t,t.type,t.pendingProps,n);case 15:return cc(e,t,t.type,t.pendingProps,n);case 19:return kc(e,t,n);case 31:return mc(e,t,n);case 22:return lc(e,t,n,t.pendingProps);case 24:return ea(t),r=ta(sa),e===null?(a=B(),a===null&&(a=Ul,o=ca(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},za(t),Ji(t,sa,a)):((e.lanes&n)!==0&&(Ba(e,t),qa(t,null,null,n),Ka()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Ji(t,sa,r),r!==a.cache&&Zi(t,[sa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ji(t,sa,r))),ac(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Pc(e){e.flags|=4}function Fc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(Mu())e.flags|=8192;else throw Oa=wa,Sa}else e.flags&=-16777217}function Ic(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!ep(t))if(Mu())e.flags|=8192;else throw Oa=wa,Sa}function Lc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Qe(),e.lanes|=t,ru|=t)}function Rc(e,t){if(!Pi)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function zc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Bc(e,t,n){var r=t.pendingProps;switch(Ai(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return zc(t),null;case 1:return zc(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Yi(sa),me(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Vi(t)?Pc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ui())),zc(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Pc(t),o===null?(zc(t),Fc(t,a,null,r,n)):(zc(t),Ic(t,o))):o?o===e.memoizedState?(zc(t),t.flags&=-16777217):(Pc(t),zc(t),Ic(t,o)):(e=e.memoizedProps,e!==r&&Pc(t),zc(t),Fc(t,a,e,r,n)),null;case 27:if(ge(t),n=de.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return zc(t),null}e=le.current,Vi(t)?zi(t,e):(e=Cf(a,r,n),t.stateNode=e,Pc(t))}return zc(t),null;case 5:if(ge(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return zc(t),null}if(o=le.current,Vi(t))zi(t,o);else{var s=Zd(de.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[ct]=t,o[lt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Gd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Pc(t)}}return zc(t),Fc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=de.current,Vi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Mi,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[ct]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Hd(e.nodeValue,n)),e||Ri(t,!0)}else e=Zd(e).createTextNode(r),e[ct]=t,t.stateNode=e}return zc(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Vi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[ct]=t}else Hi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;zc(t),e=!1}else n=Ui(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(so(t),t):(so(t),null);if(t.flags&128)throw Error(i(558))}return zc(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Vi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[ct]=t}else Hi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;zc(t),a=!1}else a=Ui(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(so(t),t):(so(t),null)}return so(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Lc(t,t.updateQueue),zc(t),null);case 4:return me(),e===null&&Md(t.stateNode.containerInfo),zc(t),null;case 10:return Yi(t.type),zc(t),null;case 19:if(se(co),r=t.memoizedState,r===null)return zc(t),null;if(a=(t.flags&128)!=0,o=r.rendering,o===null)if(a)Rc(r,!1);else{if(Ql!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=lo(e),o!==null){for(t.flags|=128,Rc(r,!1),e=o.updateQueue,t.updateQueue=e,Lc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)di(n,e),n=n.sibling;return ce(co,co.current&1|2),Pi&&Di(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&ke()>lu&&(t.flags|=128,a=!0,Rc(r,!1),t.lanes=4194304)}else{if(!a)if(e=lo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Lc(t,e),Rc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Pi)return zc(t),null}else 2*ke()-r.renderingStartTime>lu&&n!==536870912&&(t.flags|=128,a=!0,Rc(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(zc(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=ke(),e.sibling=null,n=co.current,ce(co,a?n&1|2:n&1),Pi&&Di(t,r.treeForkCount),e);case 22:case 23:return so(t),eo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(zc(t),t.subtreeFlags&6&&(t.flags|=8192)):zc(t),n=t.updateQueue,n!==null&&Lc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&se(va),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Yi(sa),zc(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Vc(e,t){switch(Ai(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yi(sa),me(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ge(t),null;case 31:if(t.memoizedState!==null){if(so(t),t.alternate===null)throw Error(i(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(so(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return se(co),null;case 4:return me(),null;case 10:return Yi(t.type),null;case 22:case 23:return so(t),eo(),e!==null&&se(va),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Yi(sa),null;case 25:return null;default:return null}}function Hc(e,t){switch(Ai(t),t.tag){case 3:Yi(sa),me();break;case 26:case 27:case 5:ge(t);break;case 4:me();break;case 31:t.memoizedState!==null&&so(t);break;case 13:so(t);break;case 19:se(co);break;case 10:Yi(t.type);break;case 22:case 23:so(t),eo(),e!==null&&se(va);break;case 24:Yi(sa)}}function Uc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){$u(t,t.return,e)}}function Wc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){$u(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){$u(t,t.return,e)}}function Gc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ya(t,n)}catch(t){$u(e,e.return,t)}}}function Kc(e,t,n){n.props=qs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){$u(e,t,n)}}function qc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){$u(e,t,n)}}function Jc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){$u(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){$u(e,t,n)}else n.current=null}function Yc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){$u(e,e.return,t)}}function Xc(e,t,n){try{var r=e.stateNode;Kd(r,e.type,n,t),r[lt]=t}catch(t){$u(e,e.return,t)}}function Zc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&lf(e.type)||e.tag===4}function Qc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Zc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&lf(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function $c(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=en));else if(r!==4&&(r===27&&lf(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for($c(e,t,n),e=e.sibling;e!==null;)$c(e,t,n),e=e.sibling}function el(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&lf(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(el(e,t,n),e=e.sibling;e!==null;)el(e,t,n),e=e.sibling}function tl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Gd(t,r,n),t[ct]=e,t[lt]=n}catch(t){$u(e,e.return,t)}}var nl=!1,rl=!1,il=!1,al=typeof WeakSet==`function`?WeakSet:Set,ol=null;function sl(e,t){if(e=e.containerInfo,Yd=gp,e=Dr(e),Or(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Xd={focusedElem:e,selectionRange:n},gp=!1,ol=t;ol!==null;)if(t=ol,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,ol=e;else for(;ol!==null;){switch(t=ol,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=qs(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){$u(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ff(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:ff(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,ol=e;break}ol=t.return}}function cl(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Cl(e,n),r&4&&Uc(5,n);break;case 1:if(Cl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){$u(n,n.return,e)}else{var i=qs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){$u(n,n.return,e)}}r&64&&Gc(n),r&512&&qc(n,n.return);break;case 3:if(Cl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ya(e,t)}catch(e){$u(n,n.return,e)}}break;case 27:t===null&&r&4&&tl(n);case 26:case 5:Cl(e,n),t===null&&r&4&&Yc(n),r&512&&qc(n,n.return);break;case 12:Cl(e,n);break;case 31:Cl(e,n),r&4&&ml(e,n);break;case 13:Cl(e,n),r&4&&hl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=rd.bind(null,n),vf(e,n))));break;case 22:if(r=n.memoizedState!==null||nl,!r){t=t!==null&&t.memoizedState!==null||rl,i=nl;var a=rl;nl=r,(rl=t)&&!a?Tl(e,n,(n.subtreeFlags&8772)!=0):Cl(e,n),nl=i,rl=a}break;case 30:break;default:Cl(e,n)}}function ll(e){var t=e.alternate;t!==null&&(e.alternate=null,ll(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&>(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ul=null,dl=!1;function fl(e,t,n){for(n=n.child;n!==null;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(ze&&typeof ze.onCommitFiberUnmount==`function`)try{ze.onCommitFiberUnmount(Re,n)}catch{}switch(n.tag){case 26:rl||Jc(n,t),fl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:rl||Jc(n,t);var r=ul,i=dl;lf(n.type)&&(ul=n.stateNode,dl=!1),fl(e,t,n),wf(n.stateNode),ul=r,dl=i;break;case 5:rl||Jc(n,t);case 6:if(r=ul,i=dl,ul=null,fl(e,t,n),ul=r,dl=i,ul!==null)if(dl)try{(ul.nodeType===9?ul.body:ul.nodeName===`HTML`?ul.ownerDocument.body:ul).removeChild(n.stateNode)}catch(e){$u(n,t,e)}else try{ul.removeChild(n.stateNode)}catch(e){$u(n,t,e)}break;case 18:ul!==null&&(dl?(e=ul,uf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Hp(e)):uf(ul,n.stateNode));break;case 4:r=ul,i=dl,ul=n.stateNode.containerInfo,dl=!0,fl(e,t,n),ul=r,dl=i;break;case 0:case 11:case 14:case 15:Wc(2,n,t),rl||Wc(4,n,t),fl(e,t,n);break;case 1:rl||(Jc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Kc(n,t,r)),fl(e,t,n);break;case 21:fl(e,t,n);break;case 22:rl=(r=rl)||n.memoizedState!==null,fl(e,t,n),rl=r;break;default:fl(e,t,n)}}function ml(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Hp(e)}catch(e){$u(t,t.return,e)}}}function hl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Hp(e)}catch(e){$u(t,t.return,e)}}function gl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new al),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new al),t;default:throw Error(i(435,e.tag))}}function _l(e,t){var n=gl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=id.bind(null,e,t);t.then(r,r)}})}function vl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(lf(c.type)){ul=c.stateNode,dl=!1;break a}break;case 5:ul=c.stateNode,dl=!1;break a;case 3:case 4:ul=c.stateNode.containerInfo,dl=!0;break a}c=c.return}if(ul===null)throw Error(i(160));pl(o,s,a),ul=null,dl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)bl(t,e),t=t.sibling}var yl=null;function bl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:vl(t,e),xl(e),r&4&&(Wc(3,e,e.return),Uc(3,e),Wc(5,e,e.return));break;case 1:vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),r&64&&nl&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=yl;if(vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[ht]||o[ct]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Gd(o,r,n),o[ct]=e,bt(o),r=o;break a;case`link`:var s=Qf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Gd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Qf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Gd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[ct]=e,bt(o),r=o}e.stateNode=r}else $f(a,e.type,e.stateNode);else e.stateNode=qf(a,r,e.memoizedProps);else o===r?r===null&&e.stateNode!==null&&Xc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?$f(a,e.type,e.stateNode):qf(a,r,e.memoizedProps))}break;case 27:vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),n!==null&&r&4&&Xc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(vl(t,e),xl(e),r&512&&(rl||n===null||Jc(n,n.return)),e.flags&32){a=e.stateNode;try{Kt(a,``)}catch(t){$u(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Xc(e,a,n===null?a:n.memoizedProps)),r&1024&&(il=!0);break;case 6:if(vl(t,e),xl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){$u(e,e.return,t)}}break;case 3:if(Zf=null,a=yl,yl=Df(t.containerInfo),vl(t,e),yl=a,xl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Hp(t.containerInfo)}catch(t){$u(e,e.return,t)}il&&(il=!1,Sl(e));break;case 4:r=yl,yl=Df(e.stateNode.containerInfo),vl(t,e),xl(e),yl=r;break;case 12:vl(t,e),xl(e);break;case 31:vl(t,e),xl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_l(e,r)));break;case 13:vl(t,e),xl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(su=ke()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_l(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=nl,d=rl;if(nl=u||a,rl=d||l,vl(t,e),rl=d,nl=u,xl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||nl||rl||wl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){$u(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){$u(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?df(m,!0):df(l.stateNode,!1)}catch(e){$u(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,_l(e,n))));break;case 19:vl(t,e),xl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,_l(e,r)));break;case 30:break;case 21:break;default:vl(t,e),xl(e)}}function xl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Zc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;el(e,Qc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Kt(o,``),n.flags&=-33),el(e,Qc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;$c(e,Qc(e),s);break;default:throw Error(i(161))}}catch(t){$u(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Sl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Sl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Cl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)cl(e,t.alternate,t),t=t.sibling}function wl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Wc(4,t,t.return),wl(t);break;case 1:Jc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Kc(t,t.return,n),wl(t);break;case 27:wf(t.stateNode);case 26:case 5:Jc(t,t.return),wl(t);break;case 22:t.memoizedState===null&&wl(t);break;case 30:wl(t);break;default:wl(t)}e=e.sibling}}function Tl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:Tl(i,a,n),Uc(4,a);break;case 1:if(Tl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){$u(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Ja(c[i],s)}catch(e){$u(r,r.return,e)}}n&&o&64&&Gc(a),qc(a,a.return);break;case 27:tl(a);case 26:case 5:Tl(i,a,n),n&&r===null&&o&4&&Yc(a),qc(a,a.return);break;case 12:Tl(i,a,n);break;case 31:Tl(i,a,n),n&&o&4&&ml(i,a);break;case 13:Tl(i,a,n),n&&o&4&&hl(i,a);break;case 22:a.memoizedState===null&&Tl(i,a,n),qc(a,a.return);break;case 30:break;default:Tl(i,a,n)}t=t.sibling}}function El(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&la(n))}function Dl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&la(e))}function Ol(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)kl(e,t,n,r),t=t.sibling}function kl(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Ol(e,t,n,r),i&2048&&Uc(9,t);break;case 1:Ol(e,t,n,r);break;case 3:Ol(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&la(e)));break;case 12:if(i&2048){Ol(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){$u(t,t.return,e)}}else Ol(e,t,n,r);break;case 31:Ol(e,t,n,r);break;case 13:Ol(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Ol(e,t,n,r):(a._visibility|=2,Al(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?Ol(e,t,n,r):jl(e,t),i&2048&&El(o,t);break;case 24:Ol(e,t,n,r),i&2048&&Dl(t.alternate,t);break;default:Ol(e,t,n,r)}}function Al(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Al(a,o,s,c,i),Uc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Al(a,o,s,c,i)):u._visibility&2?Al(a,o,s,c,i):jl(a,o),i&&l&2048&&El(o.alternate,o);break;case 24:Al(a,o,s,c,i),i&&l&2048&&Dl(o.alternate,o);break;default:Al(a,o,s,c,i)}t=t.sibling}}function jl(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:jl(n,r),i&2048&&El(r.alternate,r);break;case 24:jl(n,r),i&2048&&Dl(r.alternate,r);break;default:jl(n,r)}t=t.sibling}}var Ml=8192;function Nl(e,t,n){if(e.subtreeFlags&Ml)for(e=e.child;e!==null;)Pl(e,t,n),e=e.sibling}function Pl(e,t,n){switch(e.tag){case 26:Nl(e,t,n),e.flags&Ml&&e.memoizedState!==null&&tp(n,yl,e.memoizedState,e.memoizedProps);break;case 5:Nl(e,t,n);break;case 3:case 4:var r=yl;yl=Df(e.stateNode.containerInfo),Nl(e,t,n),yl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ml,Ml=16777216,Nl(e,t,n),Ml=r):Nl(e,t,n));break;default:Nl(e,t,n)}}function Fl(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Il(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ol=r,zl(r,e)}Fl(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ll(e),e=e.sibling}function Ll(e){switch(e.tag){case 0:case 11:case 15:Il(e),e.flags&2048&&Wc(9,e,e.return);break;case 3:Il(e);break;case 12:Il(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Rl(e)):Il(e);break;default:Il(e)}}function Rl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];ol=r,zl(r,e)}Fl(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Wc(8,t,t.return),Rl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Rl(t));break;default:Rl(t)}e=e.sibling}}function zl(e,t){for(;ol!==null;){var n=ol;switch(n.tag){case 0:case 11:case 15:Wc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:la(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,ol=r;else a:for(n=e;ol!==null;){r=ol;var i=r.sibling,a=r.return;if(ll(r),r===n){ol=null;break a}if(i!==null){i.return=a,ol=i;break a}ol=a}}}var Bl={getCacheForType:function(e){var t=ta(sa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ta(sa).controller.signal}},Vl=typeof WeakMap==`function`?WeakMap:Map,Hl=0,Ul=null,Wl=null,Gl=0,Kl=0,ql=null,Jl=!1,Yl=!1,Xl=!1,Zl=0,Ql=0,$l=0,eu=0,tu=0,nu=0,ru=0,iu=null,au=null,ou=!1,su=0,cu=0,lu=1/0,uu=null,du=null,fu=0,pu=null,mu=null,hu=0,gu=0,_u=null,vu=null,yu=0,bu=null;function xu(){return Hl&2&&Gl!==0?Gl&-Gl:N.T===null?at():bd()}function Su(){if(nu===0)if(!(Gl&536870912)||Pi){var e=Ke;Ke<<=1,!(Ke&3932160)&&(Ke=262144),nu=e}else nu=536870912;return e=to.current,e!==null&&(e.flags|=32),nu}function Cu(e,t,n){(e===Ul&&(Kl===2||Kl===9)||e.cancelPendingCommit!==null)&&(Au(e,0),Du(e,Gl,nu,!1)),F(e,n),(!(Hl&2)||e!==Ul)&&(e===Ul&&(!(Hl&2)&&(eu|=n),Ql===4&&Du(e,Gl,nu,!1)),fd(e))}function wu(e,t,n){if(Hl&6)throw Error(i(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Xe(e,t),a=r?Ru(e,t):Iu(e,t,!0),o=r;do{if(a===0){Yl&&!r&&Du(e,t,0,!1);break}else{if(n=e.current.alternate,o&&!Eu(n)){a=Iu(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=iu;var l=c.current.memoizedState.isDehydrated;if(l&&(Au(c,s).flags|=256),s=Iu(c,s,!1),s!==2){if(Xl&&!l){c.errorRecoveryDisabledLanes|=o,eu|=o,a=4;break a}o=au,au=a,o!==null&&(au===null?au=o:au.push.apply(au,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Au(e,0),Du(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Du(r,t,nu,!Jl);break a;case 2:au=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=su+300-ke(),10<a)){if(Du(r,t,nu,!Jl),Ye(r,0,!0)!==0)break a;hu=t,r.timeoutHandle=rf(Tu.bind(null,r,n,au,uu,ou,t,nu,eu,ru,Jl,o,`Throttled`,-0,0),a);break a}Tu(r,n,au,uu,ou,t,nu,eu,ru,Jl,o,null,-0,0)}}break}while(1);fd(e)}function Tu(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:en},Pl(t,a,d);var m=(a&62914560)===a?su-ke():(a&4194048)===a?cu-ke():0;if(m=np(d,m),m!==null){hu=a,e.cancelPendingCommit=m(Gu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),Du(e,a,o,!l);return}}Gu(e,t,a,n,r,i,o,s,c)}function Eu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Sr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Du(e,t,n,r){t&=~tu,t&=~eu,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ve(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&et(e,n,t)}function Ou(){return Hl&6?!0:(pd(0,!1),!1)}function ku(){if(Wl!==null){if(Kl===0)var e=Wl.return;else e=Wl,qi=Ki=null,ko(e),ja=null,Ma=0,e=Wl;for(;e!==null;)Hc(e.alternate,e),e=e.return;Wl=null}}function Au(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,af(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),hu=0,ku(),Ul=e,Wl=n=ui(e.current,null),Gl=t,Kl=0,ql=null,Jl=!1,Yl=Xe(e,t),Xl=!1,ru=nu=tu=eu=$l=Ql=0,au=iu=null,ou=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Ve(r),a=1<<i;t|=e[i],r&=~a}return Zl=t,ei(),n}function ju(e,t){H=null,N.H=zs,t===xa||t===Ca?(t=ka(),Kl=3):t===Sa?(t=ka(),Kl=4):Kl=t===rc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,ql=t,Wl===null&&(Ql=1,Zs(e,_i(t,e.current)))}function Mu(){var e=to.current;return e===null?!0:(Gl&4194048)===Gl?no===null:(Gl&62914560)===Gl||Gl&536870912?e===no:!1}function Nu(){var e=N.H;return N.H=zs,e===null?zs:e}function Pu(){var e=N.A;return N.A=Bl,e}function Fu(){Ql=4,Jl||(Gl&4194048)!==Gl&&to.current!==null||(Yl=!0),!($l&134217727)&&!(eu&134217727)||Ul===null||Du(Ul,Gl,nu,!1)}function Iu(e,t,n){var r=Hl;Hl|=2;var i=Nu(),a=Pu();(Ul!==e||Gl!==t)&&(uu=null,Au(e,t)),t=!1;var o=Ql;a:do try{if(Kl!==0&&Wl!==null){var s=Wl,c=ql;switch(Kl){case 8:ku(),o=6;break a;case 3:case 2:case 9:case 6:to.current===null&&(t=!0);var l=Kl;if(Kl=0,ql=null,Hu(e,s,c,l),n&&Yl){o=0;break a}break;default:l=Kl,Kl=0,ql=null,Hu(e,s,c,l)}}Lu(),o=Ql;break}catch(t){ju(e,t)}while(1);return t&&e.shellSuspendCounter++,qi=Ki=null,Hl=r,N.H=i,N.A=a,Wl===null&&(Ul=null,Gl=0,ei()),o}function Lu(){for(;Wl!==null;)Bu(Wl)}function Ru(e,t){var n=Hl;Hl|=2;var r=Nu(),a=Pu();Ul!==e||Gl!==t?(uu=null,lu=ke()+500,Au(e,t)):Yl=Xe(e,t);a:do try{if(Kl!==0&&Wl!==null){t=Wl;var o=ql;b:switch(Kl){case 1:Kl=0,ql=null,Hu(e,t,o,1);break;case 2:case 9:if(Ta(o)){Kl=0,ql=null,Vu(t);break}t=function(){Kl!==2&&Kl!==9||Ul!==e||(Kl=7),fd(e)},o.then(t,t);break a;case 3:Kl=7;break a;case 4:Kl=5;break a;case 7:Ta(o)?(Kl=0,ql=null,Vu(t)):(Kl=0,ql=null,Hu(e,t,o,7));break;case 5:var s=null;switch(Wl.tag){case 26:s=Wl.memoizedState;case 5:case 27:var c=Wl;if(s?ep(s):c.stateNode.complete){Kl=0,ql=null;var l=c.sibling;if(l!==null)Wl=l;else{var u=c.return;u===null?Wl=null:(Wl=u,Uu(u))}break b}}Kl=0,ql=null,Hu(e,t,o,5);break;case 6:Kl=0,ql=null,Hu(e,t,o,6);break;case 8:ku(),Ql=6;break a;default:throw Error(i(462))}}zu();break}catch(t){ju(e,t)}while(1);return qi=Ki=null,N.H=r,N.A=a,Hl=n,Wl===null?(Ul=null,Gl=0,ei(),Ql):0}function zu(){for(;Wl!==null&&!De();)Bu(Wl)}function Bu(e){var t=Nc(e.alternate,e,Zl);e.memoizedProps=e.pendingProps,t===null?Uu(e):Wl=t}function Vu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=_c(n,t,t.pendingProps,t.type,void 0,Gl);break;case 11:t=_c(n,t,t.pendingProps,t.type.render,t.ref,Gl);break;case 5:ko(t);default:Hc(n,t),t=Wl=di(t,Zl),t=Nc(n,t,Zl)}e.memoizedProps=e.pendingProps,t===null?Uu(e):Wl=t}function Hu(e,t,n,r){qi=Ki=null,ko(t),ja=null,Ma=0;var i=t.return;try{if(nc(e,i,t,n,Gl)){Ql=1,Zs(e,_i(n,e.current)),Wl=null;return}}catch(t){if(i!==null)throw Wl=i,t;Ql=1,Zs(e,_i(n,e.current)),Wl=null;return}t.flags&32768?(Pi||r===1?e=!0:Yl||Gl&536870912?e=!1:(Jl=e=!0,(r===2||r===9||r===3||r===6)&&(r=to.current,r!==null&&r.tag===13&&(r.flags|=16384))),Wu(t,e)):Uu(t)}function Uu(e){var t=e;do{if(t.flags&32768){Wu(t,Jl);return}e=t.return;var n=Bc(t.alternate,t,Zl);if(n!==null){Wl=n;return}if(t=t.sibling,t!==null){Wl=t;return}Wl=t=e}while(t!==null);Ql===0&&(Ql=5)}function Wu(e,t){do{var n=Vc(e.alternate,e);if(n!==null){n.flags&=32767,Wl=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Wl=e;return}Wl=e=n}while(e!==null);Ql=6,Wl=null}function Gu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Xu();while(fu!==0);if(Hl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=$r,I(e,n,o,s,c,l),e===Ul&&(Wl=Ul=null,Gl=0),mu=t,pu=e,hu=n,gu=o,_u=a,vu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,ad(Ne,function(){return Zu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=N.T,N.T=null,a=P.p,P.p=2,s=Hl,Hl|=4;try{sl(e,t,n)}finally{Hl=s,P.p=a,N.T=r}}fu=1,Ku(),qu(),Ju()}}function Ku(){if(fu===1){fu=0;var e=pu,t=mu,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=N.T,N.T=null;var r=P.p;P.p=2;var i=Hl;Hl|=4;try{bl(t,e);var a=Xd,o=Dr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Er(s.ownerDocument.documentElement,s)){if(c!==null&&Or(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Tr(s,h),v=Tr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}gp=!!Yd,Xd=Yd=null}finally{Hl=i,P.p=r,N.T=n}}e.current=t,fu=2}}function qu(){if(fu===2){fu=0;var e=pu,t=mu,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=N.T,N.T=null;var r=P.p;P.p=2;var i=Hl;Hl|=4;try{cl(e,t.alternate,t)}finally{Hl=i,P.p=r,N.T=n}}fu=3}}function Ju(){if(fu===4||fu===3){fu=0,Oe();var e=pu,t=mu,n=hu,r=vu;t.subtreeFlags&10256||t.flags&10256?fu=5:(fu=0,mu=pu=null,Yu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(du=null),it(n),t=t.stateNode,ze&&typeof ze.onCommitFiberRoot==`function`)try{ze.onCommitFiberRoot(Re,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=N.T,i=P.p,P.p=2,N.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{N.T=t,P.p=i}}hu&3&&Xu(),fd(e),i=e.pendingLanes,n&261930&&i&42?e===bu?yu++:(yu=0,bu=e):yu=0,pd(0,!1)}}function Yu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,la(t)))}function Xu(){return Ku(),qu(),Ju(),Zu()}function Zu(){if(fu!==5)return!1;var e=pu,t=gu;gu=0;var n=it(hu),r=N.T,a=P.p;try{P.p=32>n?32:n,N.T=null,n=_u,_u=null;var o=pu,s=hu;if(fu=0,mu=pu=null,hu=0,Hl&6)throw Error(i(331));var c=Hl;if(Hl|=4,Ll(o.current),kl(o,o.current,s,n),Hl=c,pd(0,!1),ze&&typeof ze.onPostCommitFiberRoot==`function`)try{ze.onPostCommitFiberRoot(Re,o)}catch{}return!0}finally{P.p=a,N.T=r,Yu(e,t)}}function Qu(e,t,n){t=_i(n,t),t=$s(e.stateNode,t,2),e=Ha(e,t,2),e!==null&&(F(e,2),fd(e))}function $u(e,t,n){if(e.tag===3)Qu(e,e,n);else for(;t!==null;){if(t.tag===3){Qu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(du===null||!du.has(r))){e=_i(n,e),n=ec(2),r=Ha(t,n,2),r!==null&&(tc(n,r,t,e),F(r,2),fd(r));break}}t=t.return}}function ed(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Vl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Xl=!0,i.add(n),e=td.bind(null,e,t,n),t.then(e,e))}function td(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ul===e&&(Gl&n)===n&&(Ql===4||Ql===3&&(Gl&62914560)===Gl&&300>ke()-su?!(Hl&2)&&Au(e,0):tu|=n,ru===Gl&&(ru=0)),fd(e)}function nd(e,t){t===0&&(t=Qe()),e=ri(e,t),e!==null&&(F(e,t),fd(e))}function rd(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),nd(e,n)}function id(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),nd(e,n)}function ad(e,t){return Te(e,t)}var od=null,sd=null,cd=!1,ld=!1,ud=!1,dd=0;function fd(e){e!==sd&&e.next===null&&(sd===null?od=sd=e:sd=sd.next=e),ld=!0,cd||(cd=!0,yd())}function pd(e,t){if(!ud&&ld){ud=!0;do for(var n=!1,r=od;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ve(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,vd(r,a))}else a=Gl,a=Ye(r,r===Ul?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Xe(r,a)||(n=!0,vd(r,a));r=r.next}while(n);ud=!1}}function md(){hd()}function hd(){ld=cd=!1;var e=0;dd!==0&&nf()&&(e=dd);for(var t=ke(),n=null,r=od;r!==null;){var i=r.next,a=gd(r,t);a===0?(r.next=null,n===null?od=i:n.next=i,i===null&&(sd=n)):(n=r,(e!==0||a&3)&&(ld=!0)),r=i}fu!==0&&fu!==5||pd(e,!1),dd!==0&&(dd=0)}function gd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ve(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ze(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Ul,n=Gl,n=Ye(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Kl===2||Kl===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ee(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Xe(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ee(r),it(n)){case 2:case 8:n=Me;break;case 32:n=Ne;break;case 268435456:n=Fe;break;default:n=Ne}return r=_d.bind(null,e),n=Te(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ee(r),e.callbackPriority=2,e.callbackNode=null,2}function _d(e,t){if(fu!==0&&fu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Xu()&&e.callbackNode!==n)return null;var r=Gl;return r=Ye(e,e===Ul?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(wu(e,r,t),gd(e,ke()),e.callbackNode!=null&&e.callbackNode===n?_d.bind(null,e):null)}function vd(e,t){if(Xu())return null;wu(e,t,!0)}function yd(){sf(function(){Hl&6?Te(je,md):hd()})}function bd(){if(dd===0){var e=fa;e===0&&(e=Ge,Ge<<=1,!(Ge&261888)&&(Ge=256)),dd=e}return dd}function xd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:$t(``+e)}function Sd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Cd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=xd((i[lt]||null).action),o=r.submitter;o&&(t=(t=o[lt]||null)?xd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Sn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(dd!==0){var e=o?Sd(i,o):new FormData(i);Ts(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?Sd(i,o):new FormData(i),Ts(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var wd=0;wd<Jr.length;wd++){var Td=Jr[wd];Yr(Td.toLowerCase(),`on`+(Td[0].toUpperCase()+Td.slice(1)))}Yr(Br,`onAnimationEnd`),Yr(Vr,`onAnimationIteration`),Yr(Hr,`onAnimationStart`),Yr(`dblclick`,`onDoubleClick`),Yr(`focusin`,`onFocus`),Yr(`focusout`,`onBlur`),Yr(Ur,`onTransitionRun`),Yr(Wr,`onTransitionStart`),Yr(Gr,`onTransitionCancel`),Yr(Kr,`onTransitionEnd`),wt(`onMouseEnter`,[`mouseout`,`mouseover`]),wt(`onMouseLeave`,[`mouseout`,`mouseover`]),wt(`onPointerEnter`,[`pointerout`,`pointerover`]),wt(`onPointerLeave`,[`pointerout`,`pointerover`]),Ct(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Ct(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Ct(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Ct(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Ct(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Ct(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Ed=`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(` `),Dd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Ed));function Od(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Xr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Xr(e)}i.currentTarget=null,a=c}}}}function kd(e,t){var n=t[dt];n===void 0&&(n=t[dt]=new Set);var r=e+`__bubble`;n.has(r)||(Nd(t,e,2,!1),n.add(r))}function Ad(e,t,n){var r=0;t&&(r|=4),Nd(n,e,r,t)}var jd=`_reactListening`+Math.random().toString(36).slice(2);function Md(e){if(!e[jd]){e[jd]=!0,xt.forEach(function(t){t!==`selectionchange`&&(Dd.has(t)||Ad(t,!1,e),Ad(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[jd]||(t[jd]=!0,Ad(`selectionchange`,!1,t))}}function Nd(e,t,n,r){switch(Cp(t)){case 2:var i=_p;break;case 8:i=vp;break;default:i=yp}n=i.bind(null,t,n,e),i=void 0,!dn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function Pd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=L(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}cn(function(){var r=a,i=nn(n),s=[];a:{var c=qr.get(e);if(c!==void 0){var l=Sn,u=e;switch(e){case`keypress`:if(_n(n)===0)break a;case`keydown`:case`keyup`:l=zn;break;case`focusin`:u=`focus`,l=An;break;case`focusout`:u=`blur`,l=An;break;case`beforeblur`:case`afterblur`:l=An;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=R;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=kn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Vn;break;case Br:case Vr:case Hr:l=jn;break;case Kr:l=Hn;break;case`scroll`:case`scrollend`:l=wn;break;case`wheel`:l=Un;break;case`copy`:case`cut`:case`paste`:l=Mn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Bn;break;case`toggle`:case`beforetoggle`:l=Wn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=ln(m,p),g!=null&&d.push(Fd(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==tn&&(u=n.relatedTarget||n.fromElement)&&(L(u)||u[ut]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?L(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=R,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Bn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:vt(l),h=u==null?c:vt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,L(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Ld,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Rd(s,c,l,d,!1),u!==null&&f!==null&&Rd(s,f,u,d,!0)}}a:{if(c=r?vt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=ur;else if(ir(c))if(dr)v=br;else{v=vr;var y=_r}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Xt(r.elementType)&&(v=ur):v=yr;if(v&&=v(e,r)){ar(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Ht(c,`number`,c.value)}switch(y=r?vt(r):window,e){case`focusin`:(ir(y)||y.contentEditable===`true`)&&(Ar=y,jr=r,Mr=null);break;case`focusout`:Mr=jr=Ar=null;break;case`mousedown`:Nr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Nr=!1,Pr(s,n,i);break;case`selectionchange`:if(kr)break;case`keydown`:case`keyup`:Pr(s,n,i)}var b;if(Kn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else er?Qn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Yn&&n.locale!==`ko`&&(er||x!==`onCompositionStart`?x===`onCompositionEnd`&&er&&(b=gn()):(pn=i,mn=`value`in pn?pn.value:pn.textContent,er=!0)),y=Id(r,x),0<y.length&&(x=new Nn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=$n(n),b!==null&&(x.data=b)))),(b=Jn?tr(e,n):nr(e,n))&&(x=Id(r,`onBeforeInput`),0<x.length&&(y=new Nn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),Cd(s,e,r,n,i)}Od(s,t)})}function Fd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Id(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=ln(e,n),i!=null&&r.unshift(Fd(e,i,a)),i=ln(e,t),i!=null&&r.push(Fd(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Ld(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Rd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=ln(n,a),l!=null&&o.unshift(Fd(n,l,c))):i||(l=ln(n,a),l!=null&&o.push(Fd(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var zd=/\r\n?/g,Bd=/\u0000|\uFFFD/g;function Vd(e){return(typeof e==`string`?e:``+e).replace(zd,`
|
|
9
|
-
`).replace(Bd,``)}function Hd(e,t){return t=Vd(t),Vd(e)===t}function Ud(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Kt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Kt(e,``+r);break;case`className`:At(e,`class`,r);break;case`tabIndex`:At(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:At(e,n,r);break;case`style`:Yt(e,r,o);break;case`data`:if(t!==`object`){At(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=$t(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.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 o==`function`&&(n===`formAction`?(t!==`input`&&Ud(e,t,`name`,a.name,a,null),Ud(e,t,`formEncType`,a.formEncType,a,null),Ud(e,t,`formMethod`,a.formMethod,a,null),Ud(e,t,`formTarget`,a.formTarget,a,null)):(Ud(e,t,`encType`,a.encType,a,null),Ud(e,t,`method`,a.method,a,null),Ud(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=$t(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=en);break;case`onScroll`:r!=null&&kd(`scroll`,e);break;case`onScrollEnd`:r!=null&&kd(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=$t(``+r),e.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`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`: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`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:kd(`beforetoggle`,e),kd(`toggle`,e),kt(e,`popover`,r);break;case`xlinkActuate`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:kt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Zt.get(n)||n,kt(e,n,r))}}function Wd(e,t,n,r,a,o){switch(n){case`style`:Yt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Kt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Kt(e,``+r);break;case`onScroll`:r!=null&&kd(`scroll`,e);break;case`onScrollEnd`:r!=null&&kd(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=en);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!St.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[lt]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):kt(e,n,r)}}}function Gd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:kd(`error`,e),kd(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Ud(e,t,o,s,n,null)}}a&&Ud(e,t,`srcSet`,n.srcSet,n,null),r&&Ud(e,t,`src`,n.src,n,null);return;case`input`:kd(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Ud(e,t,r,d,n,null)}}Vt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in kd(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Ud(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Ut(e,!!r,n,!0):Ut(e,!!r,t,!1);return;case`textarea`:for(s in kd(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Ud(e,t,s,c,n,null)}Gt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Ud(e,t,l,r,n,null)}return;case`dialog`:kd(`beforetoggle`,e),kd(`toggle`,e),kd(`cancel`,e),kd(`close`,e);break;case`iframe`:case`object`:kd(`load`,e);break;case`video`:case`audio`:for(r=0;r<Ed.length;r++)kd(Ed[r],e);break;case`image`:kd(`error`,e),kd(`load`,e);break;case`details`:kd(`toggle`,e);break;case`embed`:case`source`:case`link`:kd(`error`,e),kd(`load`,e);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)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Ud(e,t,u,r,n,null)}return;default:if(Xt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Wd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Ud(e,t,c,r,n,null))}function Kd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Ud(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Ud(e,t,p,m,r,f)}}Bt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Ud(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Ud(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Ut(e,!!n,n?[]:``,!1):Ut(e,!!n,t,!0)):Ut(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Ud(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Ud(e,t,s,a,r,o)}Wt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Ud(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Ud(e,t,l,p,r,m)}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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Ud(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Ud(e,t,u,p,r,m)}return;default:if(Xt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Wd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Wd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Ud(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Ud(e,t,f,p,r,m)}function qd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Jd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&qd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&qd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Yd=null,Xd=null;function Zd(e){return e.nodeType===9?e:e.ownerDocument}function Qd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function $d(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function ef(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var tf=null;function nf(){var e=window.event;return e&&e.type===`popstate`?e===tf?!1:(tf=e,!0):(tf=null,!1)}var rf=typeof setTimeout==`function`?setTimeout:void 0,af=typeof clearTimeout==`function`?clearTimeout:void 0,of=typeof Promise==`function`?Promise:void 0,sf=typeof queueMicrotask==`function`?queueMicrotask:of===void 0?rf:function(e){return of.resolve(null).then(e).catch(cf)};function cf(e){setTimeout(function(){throw e})}function lf(e){return e===`head`}function uf(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Hp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)wf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,wf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[ht]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&wf(e.ownerDocument.body);n=i}while(n);Hp(t)}function df(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function ff(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:ff(n),gt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function pf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[ht])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=yf(e.nextSibling),e===null)break}return null}function mf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=yf(e.nextSibling),e===null))return null;return e}function hf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=yf(e.nextSibling),e===null))return null;return e}function gf(e){return e.data===`$?`||e.data===`$~`}function _f(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function vf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function yf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var bf=null;function xf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return yf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function Sf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function Cf(e,t,n){switch(t=Zd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function wf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);gt(e)}var Tf=new Map,Ef=new Set;function Df(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Of=P.d;P.d={f:kf,r:Af,D:Nf,C:Pf,L:Ff,m:If,X:Rf,S:Lf,M:zf};function kf(){var e=Of.f(),t=Ou();return e||t}function Af(e){var t=_t(e);t!==null&&t.tag===5&&t.type===`form`?Ds(t):Of.r(e)}var jf=typeof document>`u`?null:document;function Mf(e,t,n){var r=jf;if(r&&typeof t==`string`&&t){var i=zt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Ef.has(i)||(Ef.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Gd(t,`link`,e),bt(t),r.head.appendChild(t)))}}function Nf(e){Of.D(e),Mf(`dns-prefetch`,e,null)}function Pf(e,t){Of.C(e,t),Mf(`preconnect`,e,t)}function Ff(e,t,n){Of.L(e,t,n);var r=jf;if(r&&e&&t){var i=`link[rel="preload"][as="`+zt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+zt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+zt(n.imageSizes)+`"]`)):i+=`[href="`+zt(e)+`"]`;var a=i;switch(t){case`style`:a=Vf(e);break;case`script`:a=Gf(e)}Tf.has(a)||(e=m({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Tf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Hf(a))||t===`script`&&r.querySelector(Kf(a))||(t=r.createElement(`link`),Gd(t,`link`,e),bt(t),r.head.appendChild(t)))}}function If(e,t){Of.m(e,t);var n=jf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+zt(r)+`"][href="`+zt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Gf(e)}if(!Tf.has(a)&&(e=m({rel:`modulepreload`,href:e},t),Tf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Kf(a)))return}r=n.createElement(`link`),Gd(r,`link`,e),bt(r),n.head.appendChild(r)}}}function Lf(e,t,n){Of.S(e,t,n);var r=jf;if(r&&e){var i=yt(r).hoistableStyles,a=Vf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Hf(a)))s.loading=5;else{e=m({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Tf.get(a))&&Yf(e,n);var c=o=r.createElement(`link`);bt(c),Gd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Jf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Rf(e,t){Of.X(e,t);var n=jf;if(n&&e){var r=yt(n).hoistableScripts,i=Gf(e),a=r.get(i);a||(a=n.querySelector(Kf(i)),a||(e=m({src:e,async:!0},t),(t=Tf.get(i))&&Xf(e,t),a=n.createElement(`script`),bt(a),Gd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function zf(e,t){Of.M(e,t);var n=jf;if(n&&e){var r=yt(n).hoistableScripts,i=Gf(e),a=r.get(i);a||(a=n.querySelector(Kf(i)),a||(e=m({src:e,async:!0,type:`module`},t),(t=Tf.get(i))&&Xf(e,t),a=n.createElement(`script`),bt(a),Gd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Bf(e,t,n,r){var a=(a=de.current)?Df(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Vf(n.href),n=yt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Vf(n.href);var o=yt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Hf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Tf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Tf.set(e,n),o||Wf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Gf(n),n=yt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Vf(e){return`href="`+zt(e)+`"`}function Hf(e){return`link[rel="stylesheet"][`+e+`]`}function Uf(e){return m({},e,{"data-precedence":e.precedence,precedence:null})}function Wf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Gd(t,`link`,n),bt(t),e.head.appendChild(t))}function Gf(e){return`[src="`+zt(e)+`"]`}function Kf(e){return`script[async]`+e}function qf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+zt(n.href)+`"]`);if(r)return t.instance=r,bt(r),r;var a=m({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),bt(r),Gd(r,`style`,a),Jf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Vf(n.href);var o=e.querySelector(Hf(a));if(o)return t.state.loading|=4,t.instance=o,bt(o),o;r=Uf(n),(a=Tf.get(a))&&Yf(r,a),o=(e.ownerDocument||e).createElement(`link`),bt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Gd(o,`link`,r),t.state.loading|=4,Jf(o,n.precedence,e),t.instance=o;case`script`:return o=Gf(n.src),(a=e.querySelector(Kf(o)))?(t.instance=a,bt(a),a):(r=n,(a=Tf.get(o))&&(r=m({},n),Xf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),bt(a),Gd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Jf(r,n.precedence,e));return t.instance}function Jf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Yf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Xf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Zf=null;function Qf(e,t,n){if(Zf===null){var r=new Map,i=Zf=new Map;i.set(n,r)}else i=Zf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[ht]||a[ct]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function $f(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function U(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function ep(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function tp(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Vf(r.href),a=t.querySelector(Hf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=rp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,bt(a);return}a=t.ownerDocument||t,r=Uf(r),(i=Tf.get(i))&&Yf(r,i),a=a.createElement(`link`),bt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Gd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=rp.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var W=0;function np(e,t){return e.stylesheets&&e.count===0&&ap(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ap(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&W===0&&(W=62500*Jd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ap(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>W?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function rp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ap(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ip=null;function ap(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ip=new Map,t.forEach(op,e),ip=null,rp.call(e))}function op(e,t){if(!(t.state.loading&4)){var n=ip.get(e);if(n)var r=n.get(null);else{n=new Map,ip.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=rp.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var sp={$$typeof:C,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function cp(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,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=$e(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$e(0),this.hiddenUpdates=$e(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function lp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new cp(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ci(3,null,null,t),e.current=a,a.stateNode=e,t=ca(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},za(a),e}function up(e){return e?(e=oi,e):oi}function dp(e,t,n,r,i,a){i=up(i),r.context===null?r.context=i:r.pendingContext=i,r=Va(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ha(e,r,t),n!==null&&(Cu(n,e,t),Ua(n,e,t))}function fp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function pp(e,t){fp(e,t),(e=e.alternate)&&fp(e,t)}function mp(e){if(e.tag===13||e.tag===31){var t=ri(e,67108864);t!==null&&Cu(t,e,67108864),pp(e,67108864)}}function hp(e){if(e.tag===13||e.tag===31){var t=xu();t=rt(t);var n=ri(e,t);n!==null&&Cu(n,e,t),pp(e,t)}}var gp=!0;function _p(e,t,n,r){var i=N.T;N.T=null;var a=P.p;try{P.p=2,yp(e,t,n,r)}finally{P.p=a,N.T=i}}function vp(e,t,n,r){var i=N.T;N.T=null;var a=P.p;try{P.p=8,yp(e,t,n,r)}finally{P.p=a,N.T=i}}function yp(e,t,n,r){if(gp){var i=bp(r);if(i===null)Pd(e,t,r,xp,n),Mp(e,r);else if(Pp(i,e,t,n,r))r.stopPropagation();else if(Mp(e,r),t&4&&-1<jp.indexOf(e)){for(;i!==null;){var a=_t(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Je(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ve(o);s.entanglements[1]|=c,o&=~c}fd(a),!(Hl&6)&&(lu=ke()+500,pd(0,!1))}}break;case 31:case 13:s=ri(a,2),s!==null&&Cu(s,a,2),Ou(),pp(a,2)}if(a=bp(r),a===null&&Pd(e,t,r,xp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Pd(e,t,r,null,n)}}function bp(e){return e=nn(e),Sp(e)}var xp=null;function Sp(e){if(xp=null,e=L(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return xp=e,null}function Cp(e){switch(e){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`resize`: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`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`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ae()){case je:return 2;case Me:return 8;case Ne:case Pe:return 32;case Fe:return 268435456;default:return 32}default:return 32}}var wp=!1,Tp=null,Ep=null,Dp=null,Op=new Map,kp=new Map,Ap=[],jp=`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 Mp(e,t){switch(e){case`focusin`:case`focusout`:Tp=null;break;case`dragenter`:case`dragleave`:Ep=null;break;case`mouseover`:case`mouseout`:Dp=null;break;case`pointerover`:case`pointerout`:Op.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:kp.delete(t.pointerId)}}function Np(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=_t(t),t!==null&&mp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Pp(e,t,n,r,i){switch(t){case`focusin`:return Tp=Np(Tp,e,t,n,r,i),!0;case`dragenter`:return Ep=Np(Ep,e,t,n,r,i),!0;case`mouseover`:return Dp=Np(Dp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Op.set(a,Np(Op.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,kp.set(a,Np(kp.get(a)||null,e,t,n,r,i)),!0}return!1}function Fp(e){var t=L(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,ot(e.priority,function(){hp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,ot(e.priority,function(){hp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ip(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=bp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);tn=r,n.target.dispatchEvent(r),tn=null}else return t=_t(n),t!==null&&mp(t),e.blockedOn=n,!1;t.shift()}return!0}function Lp(e,t,n){Ip(e)&&n.delete(t)}function Rp(){wp=!1,Tp!==null&&Ip(Tp)&&(Tp=null),Ep!==null&&Ip(Ep)&&(Ep=null),Dp!==null&&Ip(Dp)&&(Dp=null),Op.forEach(Lp),kp.forEach(Lp)}function zp(e,n){e.blockedOn===n&&(e.blockedOn=null,wp||(wp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Rp)))}var Bp=null;function Vp(e){Bp!==e&&(Bp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Bp===e&&(Bp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Sp(r||n)===null)continue;break}var a=_t(n);a!==null&&(e.splice(t,3),t-=3,Ts(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Hp(e){function t(t){return zp(t,e)}Tp!==null&&zp(Tp,e),Ep!==null&&zp(Ep,e),Dp!==null&&zp(Dp,e),Op.forEach(t),kp.forEach(t);for(var n=0;n<Ap.length;n++){var r=Ap[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ap.length&&(n=Ap[0],n.blockedOn===null);)Fp(n),n.blockedOn===null&&Ap.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[lt]||null;if(typeof a==`function`)o||Vp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[lt]||null)s=o.formAction;else if(Sp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Vp(n)}}}function Up(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Wp(e){this._internalRoot=e}Gp.prototype.render=Wp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;dp(n,xu(),e,t,null,null)},Gp.prototype.unmount=Wp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;dp(e.current,2,null,e,null,null),Ou(),t[ut]=null}};function Gp(e){this._internalRoot=e}Gp.prototype.unstable_scheduleHydration=function(e){if(e){var t=at();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ap.length&&t!==0&&t<Ap[n].priority;n++);Ap.splice(n,0,e),n===0&&Fp(e)}};var Kp=n.version;if(Kp!==`19.2.5`)throw Error(i(527,Kp,`19.2.5`));P.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:f(e),e=e===null?null:e.stateNode,e};var qp={bundleType:0,version:`19.2.5`,rendererPackageName:`react-dom`,currentDispatcherRef:N,reconcilerVersion:`19.2.5`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Jp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jp.isDisabled&&Jp.supportsFiber)try{Re=Jp.inject(qp),ze=Jp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Js,s=Ys,c=Xs;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=lp(e,1,!1,null,null,n,r,null,o,s,c,Up),e[ut]=t.current,Md(e),new Wp(t)}})),_=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=g()})),v=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},y=new class extends v{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},b={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},x=new class{#e=b;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function S(e){setTimeout(e,0)}var C=typeof window>`u`||`Deno`in globalThis;function w(){}function T(e,t){return typeof e==`function`?e(t):e}function E(e){return typeof e==`number`&&e>=0&&e!==1/0}function ee(e,t){return Math.max(e+(t||0)-Date.now(),0)}function D(e,t){return typeof e==`function`?e(t):e}function O(e,t){return typeof e==`function`?e(t):e}function k(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==j(o,t.options))return!1}else if(!te(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function A(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(M(t.options.mutationKey)!==M(a))return!1}else if(!te(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function j(e,t){return(t?.queryKeyHashFn||M)(e)}function M(e){return JSON.stringify(e,(e,t)=>ie(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function te(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>te(e[n],t[n])):!1}var ne=Object.prototype.hasOwnProperty;function N(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=re(e)&&re(t);if(!r&&!(ie(e)&&ie(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:ne.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=N(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function P(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function re(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ie(e){if(!ae(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!ae(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function ae(e){return Object.prototype.toString.call(e)===`[object Object]`}function oe(e){return new Promise(t=>{x.setTimeout(t,e)})}function se(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:N(e,t)}function ce(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function le(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ue=Symbol();function de(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===ue?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function fe(e,t){return typeof e==`function`?e(...t):!!e}function pe(e,t,n){let r=!1,i;return Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var me=(()=>{let e=()=>C;return{isServer(){return e()},setIsServer(t){e=t}}})();function he(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var ge=S;function _e(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=ge,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var ve=_e(),ye=new class extends v{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function be(e){return Math.min(1e3*2**e,3e4)}function xe(e){return(e??`online`)===`online`?ye.isOnline():!0}var Se=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function Ce(e){let t=!1,n=0,r,i=he(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new Se(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>y.isFocused()&&(e.networkMode===`always`||ye.isOnline())&&e.canRun(),u=()=>xe(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(me.isServer()?0:3),o=e.retryDelay??be,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),oe(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var we=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),E(this.gcTime)&&(this.#e=x.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(me.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(x.clearTimeout(this.#e),this.#e=void 0)}};function Te(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{pe(e,()=>t.signal,()=>n=!0)},u=de(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?le:ce;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?De:Ee,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:Ee(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function Ee(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function De(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function Oe(e,t){return t?Ee(e,t)!=null:!1}function ke(e,t){return!t||!e.getPreviousPageParam?!1:De(e,t)!=null}var Ae=class extends we{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Ne(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Ne(this.options);e.data!==void 0&&(this.setState(Me(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=se(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(w).catch(w):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>O(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ue||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>D(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!ee(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=de(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?Te(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=Ce({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof Se&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Se){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...je(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Me(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),ve.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function je(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:xe(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Me(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Ne(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Pe=class extends v{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=he(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Ie(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Le(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Le(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof O(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!P(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&Re(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||O(this.options.enabled,this.#t)!==O(t.enabled,this.#t)||D(this.options.staleTime,this.#t)!==D(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||O(this.options.enabled,this.#t)!==O(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return Be(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(w)),t}#g(){this.#b();let e=D(this.options.staleTime,this.#t);if(me.isServer()||this.#r.isStale||!E(e))return;let t=ee(this.#r.dataUpdatedAt,e)+1;this.#d=x.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(me.isServer()||O(this.options.enabled,this.#t)===!1||!E(this.#p)||this.#p===0)&&(this.#f=x.setInterval(()=>{(this.options.refetchIntervalInBackground||y.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(x.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(x.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&Ie(e,t),o=i&&Re(e,n,t,r);(a||o)&&(l={...l,...je(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=se(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=se(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,x={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:ze(e,t),refetch:this.refetch,promise:this.#o,isEnabled:O(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=x.data!==void 0,r=x.status===`error`&&!t,i=e=>{r?e.reject(x.error):t&&e.resolve(x.data)},a=()=>{i(this.#o=x.promise=he())},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||x.data!==o.value)&&a();break;case`rejected`:(!r||x.error!==o.reason)&&a();break}}return x}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!P(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){ve.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function Fe(e,t){return O(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&O(t.retryOnMount,e)===!1)}function Ie(e,t){return Fe(e,t)||e.state.data!==void 0&&Le(e,t,t.refetchOnMount)}function Le(e,t,n){if(O(t.enabled,e)!==!1&&D(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&ze(e,t)}return!1}function Re(e,t,n,r){return(e!==t||O(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&ze(e,n)}function ze(e,t){return O(t.enabled,e)!==!1&&e.isStaleByTime(D(t.staleTime,e))}function Be(e,t){return!P(e.getCurrentResult(),t)}var Ve=class extends Pe{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type=`infinite`,super.setOptions(e)}getOptimisticResult(e){return e._type=`infinite`,super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`forward`}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`backward`}}})}createResult(e,t){let{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a,isError:o,isRefetchError:s}=r,c=n.fetchMeta?.fetchMore?.direction,l=o&&c===`forward`,u=i&&c===`forward`,d=o&&c===`backward`,f=i&&c===`backward`;return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Oe(t,n.data),hasPreviousPage:ke(t,n.data),isFetchNextPageError:l,isFetchingNextPage:u,isFetchPreviousPageError:d,isFetchingPreviousPage:f,isRefetchError:s&&!l&&!d,isRefetching:a&&!u&&!f}}},He=class extends we{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Ue(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=Ce({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),ve.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Ue(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var We=class extends v{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new He({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Ge(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Ge(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Ge(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=Ge(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){ve.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>A(t,e))}findAll(e={}){return this.getAll().filter(t=>A(e,t))}notify(e){ve.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return ve.batch(()=>Promise.all(e.map(e=>e.continue().catch(w))))}};function Ge(e){return e.options.scope?.id}var Ke=class extends v{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),P(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&M(t.mutationKey)!==M(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??Ue();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){ve.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}};function qe(e,t){let n=new Set(t);return e.filter(e=>!n.has(e))}function Je(e,t,n){let r=e.slice(0);return r[t]=n,r}var Ye=class extends v{#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=[];constructor(e,t,n){super(),this.#e=e,this.#r=n,this.#n=[],this.#i=[],this.#t=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#i.forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#i.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#r=t,ve.batch(()=>{let e=this.#i,t=this.#p(this.#n);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let n=t.map(e=>e.observer),r=n.map(e=>e.getCurrentResult()),i=e.length!==n.length,a=n.some((t,n)=>t!==e[n]),o=i||a,s=o?!0:r.some((e,t)=>{let n=this.#t[t];return!n||!P(e,n)});!o&&!s||(o&&(this.#l=t,this.#i=n),this.#t=r,this.hasListeners()&&(o&&(qe(e,n).forEach(e=>{e.destroy()}),qe(n,e).forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})),this.#h()))})}getCurrentResult(){return this.#t}getQueries(){return this.#i.map(e=>e.getCurrentQuery())}getObservers(){return this.#i}getOptimisticResult(e,t){let n=this.#p(e),r=n.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),i=n.map(e=>e.defaultedQueryOptions.queryHash);return[r,e=>this.#d(e??r,t,i),()=>this.#u(r,n)]}#u(e,t){return t.map((n,r)=>{let i=e[r];return n.defaultedQueryOptions.notifyOnChangeProps?i:n.observer.trackResult(i,e=>{t.forEach(t=>{t.observer.trackProp(e)})})})}#d(e,t,n){if(t){let r=this.#c,i=n!==void 0&&r!==void 0&&(r.length!==n.length||n.some((e,t)=>e!==r[t]));return(!this.#a||this.#t!==this.#s||i||t!==this.#o)&&(this.#o=t,this.#s=this.#t,n!==void 0&&(this.#c=n),this.#a=N(this.#a,t(e))),this.#a}return e}#f(){return this.#r?.combine!==void 0&&this.#i.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#p(e){let t=new Map;this.#i.forEach(e=>{let n=e.options.queryHash;if(!n)return;let r=t.get(n);r?r.push(e):t.set(n,[e])});let n=[];return e.forEach(e=>{let r=this.#e.defaultQueryOptions(e),i=t.get(r.queryHash)?.shift()??new Pe(this.#e,r);n.push({defaultedQueryOptions:r,observer:i})}),n}#m(e,t){let n=this.#i.indexOf(e);n!==-1&&(this.#t=Je(this.#t,n,t),this.#h())}#h(){if(this.hasListeners()){let e=this.#u(this.#t,this.#l),t=this.#f(),n=this.#a,r=t?n:this.#d(e,this.#r?.combine);(t||n!==r)&&ve.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},Xe=class extends v{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??j(r,t),a=this.get(i);return a||(a=new Ae({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){ve.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>k(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>k(e,t)):t}notify(e){ve.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){ve.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){ve.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Ze=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Xe,this.#t=e.mutationCache||new We,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=y.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=ye.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(D(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=T(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return ve.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;ve.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return ve.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=ve.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(w).catch(w)}invalidateQueries(e,t={}){return ve.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=ve.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(w)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(w)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(D(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(w).catch(w)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(w).catch(w)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return ye.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(M(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{te(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(M(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{te(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=j(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===ue&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Qe=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),$e=o(((e,t)=>{t.exports=Qe()})),F=l(d(),1),I=$e(),et=F.createContext(void 0),tt=e=>{let t=F.useContext(et);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},nt=({client:e,children:t})=>(F.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,I.jsx)(et.Provider,{value:e,children:t})),rt=F.createContext(!1),it=()=>F.useContext(rt);rt.Provider;function at(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var ot=F.createContext(at()),st=()=>F.useContext(ot),ct=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?fe(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},lt=e=>{F.useEffect(()=>{e.clearReset()},[e])},ut=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||fe(n,[e.error,r])),dt=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},ft=(e,t)=>e.isLoading&&e.isFetching&&!t,pt=(e,t)=>e?.suspense&&t.isPending,mt=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function ht({queries:e,...t},n){let r=tt(n),i=it(),a=st(),o=F.useMemo(()=>e.map(e=>{let t=r.defaultQueryOptions(e);return t._optimisticResults=i?`isRestoring`:`optimistic`,t}),[e,r,i]);o.forEach(e=>{dt(e),ct(e,a,r.getQueryCache().get(e.queryHash))}),lt(a);let[s]=F.useState(()=>new Ye(r,o,t)),[c,l,u]=s.getOptimisticResult(o,t.combine),d=!i&&t.subscribed!==!1;F.useSyncExternalStore(F.useCallback(e=>d?s.subscribe(ve.batchCalls(e)):w,[s,d]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),F.useEffect(()=>{s.setQueries(o,t)},[o,t,s]);let f=c.some((e,t)=>pt(o[t],e))?c.flatMap((e,t)=>{let n=o[t];return n&&pt(n,e)?mt(n,new Pe(r,n),a):[]}):[];if(f.length>0)throw Promise.all(f);let p=c.find((e,t)=>{let n=o[t];return n&&ut({result:e,errorResetBoundary:a,throwOnError:n.throwOnError,query:r.getQueryCache().get(n.queryHash),suspense:n.suspense})});if(p?.error)throw p.error;return l(u())}function gt(e,t,n){let r=it(),i=st(),a=tt(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash);o._optimisticResults=r?`isRestoring`:`optimistic`,dt(o),ct(o,i,s),lt(i);let c=!a.getQueryCache().get(o.queryHash),[l]=F.useState(()=>new t(a,o)),u=l.getOptimisticResult(o),d=!r&&e.subscribed!==!1;if(F.useSyncExternalStore(F.useCallback(e=>{let t=d?l.subscribe(ve.batchCalls(e)):w;return l.updateResult(),t},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),F.useEffect(()=>{l.setOptions(o)},[o,l]),pt(o,u))throw mt(o,l,i);if(ut({result:u,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw u.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,u),o.experimental_prefetchInRender&&!me.isServer()&&ft(u,r)&&(c?mt(o,l,i):s?.promise)?.catch(w).finally(()=>{l.updateResult()}),o.notifyOnChangeProps?u:l.trackResult(u)}function L(e,t){return gt(e,Pe,t)}function _t(e,t){let n=tt(t),[r]=F.useState(()=>new Ke(n,e));F.useEffect(()=>{r.setOptions(e)},[r,e]);let i=F.useSyncExternalStore(F.useCallback(e=>r.subscribe(ve.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=F.useCallback((e,t)=>{r.mutate(e,t).catch(w)},[r]);if(i.error&&fe(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function vt(e,t){return gt(e,Ve,t)}var yt=_(),bt=`0123456789ABCDEFGHJKMNPQRSTVWXYZ`,xt=32,St=16,Ct=0xffffffffffff,wt;(function(e){e.Base32IncorrectEncoding=`B32_ENC_INVALID`,e.DecodeTimeInvalidCharacter=`DEC_TIME_CHAR`,e.DecodeTimeValueMalformed=`DEC_TIME_MALFORMED`,e.EncodeTimeNegative=`ENC_TIME_NEG`,e.EncodeTimeSizeExceeded=`ENC_TIME_SIZE_EXCEED`,e.EncodeTimeValueMalformed=`ENC_TIME_MALFORMED`,e.PRNGDetectFailure=`PRNG_DETECT`,e.ULIDInvalid=`ULID_INVALID`,e.Unexpected=`UNEXPECTED`,e.UUIDInvalid=`UUID_INVALID`})(wt||={});var Tt=class extends Error{constructor(e,t){super(`${t} (${e})`),this.name=`ULIDError`,this.code=e}};function Et(e){let t=Math.floor(e()*xt)%xt;return bt.charAt(t)}function Dt(e){let t=Ot(),n=t&&(t.crypto||t.msCrypto)||null;if(typeof n?.getRandomValues==`function`)return()=>{let e=new Uint8Array(1);return n.getRandomValues(e),e[0]/256};if(typeof n?.randomBytes==`function`)return()=>n.randomBytes(1).readUInt8()/256;throw new Tt(wt.PRNGDetectFailure,`Failed to find a reliable PRNG`)}function Ot(){return jt()?self:typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:null}function kt(e,t){let n=``;for(;e>0;e--)n=Et(t)+n;return n}function At(e,t=10){if(isNaN(e))throw new Tt(wt.EncodeTimeValueMalformed,`Time must be a number: ${e}`);if(e>0xffffffffffff)throw new Tt(wt.EncodeTimeSizeExceeded,`Cannot encode a time larger than ${Ct}: ${e}`);if(e<0)throw new Tt(wt.EncodeTimeNegative,`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new Tt(wt.EncodeTimeValueMalformed,`Time must be an integer: ${e}`);let n,r=``;for(let i=t;i>0;i--)n=e%xt,r=bt.charAt(n)+r,e=(e-n)/xt;return r}function jt(){return typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope}function Mt(e,t){let n=t||Dt();return At(!e||isNaN(e)?Date.now():e,10)+kt(St,n)}var Nt=`[0-7][0-9A-HJKMNP-TV-Z]{25}`,Pt=/^[0-7][0-9A-HJKMNP-TV-Z]{25}$/,Ft={project:`prj_`,message:`msg_`,taskModule:`mod_`,task:`task_`,runResult:`run_result_`,recoverySummary:`recovery_`,activity:`act_`,event:`evt_`,workflowInvocation:`wf_`,clarificationThread:`clar_thread_`,clarificationRound:`clar_round_`,clarificationInteractionResponse:`clar_response_`,approvalRequest:`approval_`,idempotency:`idem_`,relayProject:`relay_project_`,relayAccount:`relay_account_`,relayMembership:`relay_member_`,relayAccountSession:`relay_account_session_`,relayClientSession:`relay_client_session_`,relayUpload:`relay_upload_`,relayAuthChallenge:`relay_auth_challenge_`,relayDesktopEntryContinuation:`relay_desktop_entry_continuation_`,hostConnection:`host_connection_`,joinToken:`join_token_`,notice:`notice_`};function It(e){return`${e}${Mt()}`}function Lt(e){return Pt.test(e)}function Rt(e,t){if(!e.startsWith(t))return null;let n=e.slice(t.length);return Lt(n)?n:null}function zt(e,t){return Rt(e,t)!==null}function Bt(e){return Rt(e,Ft.relayProject)??e.slice(Ft.relayProject.length)}function Vt(e){return zt(e,Ft.relayProject)?e:Lt(e)?`${Ft.relayProject}${e}`:null}var Ht=()=>It(Ft.idempotency),Ut=()=>It(Ft.notice);function Wt(e){return e instanceof Date?e.toISOString():e}function Gt(e,t={}){let n=typeof t==`function`?{now:t}:t,r=n.issuedAt??n.issued_at??n.now?.()??new Date;return{command_id:n.commandId??n.command_id??Ht(),issued_at:Wt(r),payload:e}}var Kt=class extends Error{statusCode;code;retryable;details;constructor(e){super(e.message),this.name=`TuttiApiError`,this.statusCode=e.statusCode,this.code=e.code,this.retryable=e.retryable,e.details!==void 0&&(this.details=e.details)}};function qt(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Jt(e,t){if(qt(t)&&qt(t.error)){let n=t.error;return new Kt({message:typeof n.message==`string`?n.message:`Request failed`,statusCode:e,code:typeof n.code==`string`?n.code:`internal_error`,retryable:typeof n.retryable==`boolean`?n.retryable:e>=500,...n.details===void 0?{}:{details:n.details}})}return new Kt({message:`Request failed with HTTP ${e}`,statusCode:e,code:e===401?`unauthorized`:`internal_error`,retryable:e>=500})}function Yt(e,t){return e instanceof Kt&&(t===void 0||e.code===t)}function Xt(e){return e instanceof Kt&&(e.statusCode===401||e.code===`unauthorized`||e.code===`relay_session_invalid`)}function Zt(e){return e.startsWith(`/`)?e:`/${e}`}function Qt(e,t){let n=e.replace(/\/+$/u,``),r=Zt(t);return n===``?r:`${n}${r}`}function $t(e,t){if(t===void 0)return e;let n=new URLSearchParams;for(let[e,r]of Object.entries(t))r!=null&&n.set(e,String(r));let r=n.toString();return r===``?e:`${e}${e.includes(`?`)?`&`:`?`}${r}`}function en(e,t,n){return $t(Qt(e,t),n)}function tn(e){return`/projects/${encodeURIComponent(Bt(e))}/workspace`}function nn(e,t=``){let n=t===``?``:Zt(t);return`/projects/${encodeURIComponent(e)}/host/api/v1${n}`}function rn(e,t,n=``,r){return en(e,nn(t,n),r)}var an=[`connection.ready`,`message.created`,`scratchpad.updated`,`worklist.changed`,`task.updated`,`task_detail.updated`,`clarification.changed`,`approval.changed`,`activity.event`,`execution_status.changed`,`provider_config.changed`,`workspace.recovered`,`query.invalidate`],on=[`connection.ready`,`query.invalidate`];function sn(){let e=globalThis.EventSource;if(e===void 0)throw Error(`No EventSource implementation is available`);return e}function cn(e){if(e===void 0)throw Error(`SSE event data is missing`);return JSON.parse(e)}function ln(e){return e.event_type===`connection.ready`}function un(e,t){return $t(e,t===void 0?void 0:{after:t})}var dn=[3e3,1e4,3e4,6e4],fn=.2,pn=3e4;function mn(){return globalThis.navigator?.onLine!==!1}function hn(e){let t=e.delaysMs[Math.min(e.attempt,e.delaysMs.length-1)]??6e4,n=t*e.jitterRatio*(e.random()*2-1);return Math.max(0,Math.round(t+n))}function gn(e,t){return un(e,t)}function _n(e,t){return un(e,t)}function vn(e){let t=un(e.url,e.after),n=`connecting`,r,i=!1,a,o,s,c=0,l,u=t,d=!1,f=e.reconnectDelaysMs??dn,p=e.reconnectJitterRatio??fn,m=e.reconnectResetAfterMs??pn,h=e.random??Math.random,g=e.isOnline??mn,_=t=>{n!==t&&(n=t,e.onStatusChange?.(t))},v=()=>{a!==void 0&&(clearTimeout(a),a=void 0)},y=()=>{o!==void 0&&(clearTimeout(o),o=void 0)},b=()=>{s!==void 0&&(clearTimeout(s),s=void 0)},x=()=>{v(),!(e.heartbeatTimeoutMs===void 0||i)&&(a=setTimeout(()=>{i||(_(`stale`),e.onError?.({kind:`heartbeat_timeout`}),w(l),d=!1,T(!0))},e.heartbeatTimeoutMs))},S=new Map,C=t=>{x();let n;try{n=cn(t.data)}catch(n){e.onError?.({kind:`parse_error`,error:n,...t.data===void 0?{}:{raw_data:t.data}});return}r=n.event_id||t.lastEventId,e.onEvent?.(n),ln(n)&&(r=n.payload.current_event_cursor,e.onReady?.(n)),n.invalidates!==void 0&&e.onInvalidate?.(n.invalidates,n)};function w(e){let t=S.get(e);if(t!==void 0){for(let[n,r]of t)e.removeEventListener?.(n,r);S.delete(e)}e.onopen=null,e.onerror=null,e.close(),v(),b()}function T(e=!1){if(i||o!==void 0||(e||_(`reconnecting`),!g()))return;let t=hn({attempt:c,delaysMs:f,jitterRatio:p,random:h});c+=1,o=setTimeout(()=>{o=void 0,E(!1)},t)}function E(t){if(i||d)return;if(!t&&!g()){_(`reconnecting`);return}d=!0,u=un(e.url,r??e.after);let n;try{n=new(e.eventSource??(sn()))(u,{withCredentials:e.withCredentials??!0})}catch(n){if(d=!1,e.onError?.({kind:`event_source_unavailable`,error:n}),t)throw n;T();return}l=n;let a=new Map;S.set(n,a);for(let t of e.eventTypes){let e=C;a.set(t,e),n.addEventListener(t,e)}n.onopen=()=>{i||l!==n||(d=!1,x(),_(`open`),b(),s=setTimeout(()=>{s=void 0,c=0},m))},n.onerror=t=>{i||l!==n||(e.onError?.({kind:`event_source_error`,error:t}),w(n),d=!1,T())}}let ee=()=>{i||n===`open`||d||(y(),E(!1))},D=globalThis,O=globalThis.document,k=()=>ee(),A=()=>{O?.visibilityState!==`hidden`&&ee()};D.addEventListener?.(`online`,k),D.addEventListener?.(`focus`,k),O?.addEventListener?.(`visibilitychange`,A);try{E(!0)}catch(e){throw D.removeEventListener?.(`online`,k),D.removeEventListener?.(`focus`,k),O?.removeEventListener?.(`visibilitychange`,A),e}return{get url(){return u},get source(){return l},close:()=>{i||(i=!0,v(),y(),b(),w(l),D.removeEventListener?.(`online`,k),D.removeEventListener?.(`focus`,k),O?.removeEventListener?.(`visibilitychange`,A),_(`closed`))},retryNow:ee,currentCursor:()=>r,status:()=>n}}function yn(e){return vn({...e,eventTypes:e.eventTypes??an})}function bn(e){return vn({...e,eventTypes:e.eventTypes??on})}var xn=new Set([`forwarded`,`x-real-ip`]),Sn=[`x-tutti-`,`x-forwarded-`];function Cn(e){if(e!==void 0)return e;if(globalThis.fetch===void 0)throw new Kt({message:`No fetch implementation is available`,statusCode:0,code:`network_error`,retryable:!0});return globalThis.fetch.bind(globalThis)}function wn(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&`forEach`in e&&typeof e.forEach==`function`}function Tn(e){if(e===void 0)return[];if(wn(e)){let t=[];return e.forEach((e,n)=>t.push([n,e])),t}return Array.isArray(e)?e.map(([e,t])=>[e,t]):Object.entries(e)}function En(e){let t=e.toLowerCase();return xn.has(t)||Sn.some(e=>t.startsWith(e))}function Dn(...e){let t={};for(let n of e)for(let[e,r]of Tn(n))En(e)||(t[e]=r);return t}async function On(e){let t=await e.text();if(t.trim()!==``)return JSON.parse(t)}async function R(e,t,n={}){let r=Dn({accept:`application/json`},e.headers,n.headers),i={method:n.method??`GET`,credentials:n.credentials??e.credentials??`include`,headers:r,...n.signal===void 0?{}:{signal:n.signal}};n.body!==void 0&&(Object.keys(r).some(e=>e.toLowerCase()===`content-type`)||(r[`content-type`]=`application/json`),i.body=JSON.stringify(n.body));let a=$t(Qt(e.baseUrl,t),n.query),o;try{o=await Cn(e.fetch)(a,i)}catch(e){throw new Kt({message:e instanceof Error?e.message:`Network request failed`,statusCode:0,code:`network_error`,retryable:!0})}let s=await On(o);if(!o.ok)throw Jt(o.status,s);return s}function kn(e){return{baseUrl:rn(e.relayBaseUrl,e.relayProjectRef),...e.fetch===void 0?{}:{fetch:e.fetch},...e.credentials===void 0?{}:{credentials:e.credentials},...e.headers===void 0?{}:{headers:e.headers}}}function An(e){return e}function jn(e){let t=`${e.baseUrl.replace(/\/+$/u,``)}/events`;return{getSession:()=>R(e,`/session`),getWorkspace:()=>R(e,`/workspace`),getBootstrap:()=>R(e,`/bootstrap`),getProviderConfig:()=>R(e,`/provider/config`),getProviderModels:()=>R(e,`/provider/models`),updateProviderDefaultModel:(t,n)=>R(e,`/provider/default-model`,{method:`POST`,body:Gt(t,n)}),getProviderUsage:()=>R(e,`/provider/usage`),getProjectTimeline:()=>R(e,`/project-timeline`),updateProjectDisplayName:(t,n)=>R(e,`/workspace/project-display-name`,{method:`POST`,body:Gt(t,n)}),updateProjectDescription:(t,n)=>R(e,`/workspace/project-description`,{method:`POST`,body:Gt(t,n)}),getReadState:()=>R(e,`/read-state`),markRead:(t,n)=>R(e,`/read-state/mark-read`,{method:`POST`,body:Gt(t,n)}),getMessages:t=>R(e,`/messages`,{...t===void 0?{}:{query:An(t)}}),sendMainChatMessage:(t,n)=>R(e,`/messages`,{method:`POST`,body:Gt(t,n)}),getScratchpad:()=>R(e,`/scratchpad`),getWorklist:()=>R(e,`/worklist`),submitWorklist:(t={},n)=>R(e,`/worklist/submit`,{method:`POST`,body:Gt(t,n)}),getActiveApproval:()=>R(e,`/approvals/active`),decideApproval:(t,n,r)=>R(e,`/approvals/${encodeURIComponent(t)}/decide`,{method:`POST`,body:Gt(n,r)}),getActiveClarification:()=>R(e,`/clarifications/active`),getClarificationThread:t=>R(e,`/clarifications/${encodeURIComponent(t)}`),getClarificationRound:t=>R(e,`/clarifications/rounds/${encodeURIComponent(t)}`),getClarificationRoundMessages:(t,n)=>R(e,`/clarifications/rounds/${encodeURIComponent(t)}/messages`,{...n===void 0?{}:{query:An(n)}}),sendClarificationRoundMessage:(t,n,r)=>R(e,`/clarifications/rounds/${encodeURIComponent(t)}/messages`,{method:`POST`,body:Gt(n,r)}),submitClarificationRound:(t,n={},r)=>R(e,`/clarifications/rounds/${encodeURIComponent(t)}/submit`,{method:`POST`,body:Gt(n,r)}),getTask:t=>R(e,`/tasks/${encodeURIComponent(t)}`),getTaskDetail:t=>R(e,`/tasks/${encodeURIComponent(t)}/detail`),getTaskRunResults:(t,n)=>R(e,`/tasks/${encodeURIComponent(t)}/run-results`,{...n===void 0?{}:{query:An(n)}}),getRecoverySummaries:t=>R(e,`/recovery-summaries`,{...t===void 0?{}:{query:An(t)}}),getRecoverySummary:t=>R(e,`/recovery-summaries/${encodeURIComponent(t)}`),getExecutionStatus:()=>R(e,`/execution-status`),getArtifacts:()=>R(e,`/artifacts`),renewArtifactPreviewLease:()=>R(e,`/artifacts/preview/lease`,{method:`POST`}),runSchedulerNow:(t={},n)=>R(e,`/scheduler/run-now`,{method:`POST`,body:Gt(t,n)}),retryTask:(t,n,r)=>R(e,`/tasks/${encodeURIComponent(t)}/retry`,{method:`POST`,body:Gt(n,r)}),getProjectDocs:()=>R(e,`/viewer/project-docs`),getProjectDoc:(t,n)=>R(e,`/viewer/project-docs/${encodeURIComponent(t)}`,{...n===void 0?{}:{query:An(n)}}),getViewerTree:t=>R(e,`/viewer/tree`,{...t===void 0?{}:{query:An(t)}}),getViewerFile:t=>R(e,`/viewer/files`,{query:An(t)}),viewerAssetUrl:t=>$t(Qt(e.baseUrl,`/viewer/assets`),An(t)),getReferenceFiles:t=>R(e,`/references/files`,{...t===void 0?{}:{query:An(t)}}),uploadReferenceFile:(t,n)=>R(e,`/references/files`,{method:`POST`,body:Gt(t,n)}),refreshReferenceSummaries:(t={},n)=>R(e,`/references/summaries/refresh`,{method:`POST`,body:Gt(t,n)}),getSkills:()=>R(e,`/skills`),getSkill:t=>R(e,`/skills/${encodeURIComponent(t)}`),importSkillZip:(t,n)=>R(e,`/skills/import`,{method:`POST`,body:Gt(t,n)}),deleteSkill:(t,n)=>R(e,`/skills/delete`,{method:`POST`,body:Gt(t,n)}),initializeProjectDocs:(t={},n)=>R(e,`/viewer/project-docs/init`,{method:`POST`,body:Gt(t,n)}),contextSync:(t={},n)=>R(e,`/viewer/project-docs/context-sync`,{method:`POST`,body:Gt(t,n)}),eventsUrl:e=>gn(t,e?.after),connectEvents:(e={})=>yn({...e,url:t})}}function Mn(e){return jn(kn(e))}function Nn(e){let t={baseUrl:e.baseUrl,credentials:`include`,...e.fetch===void 0?{}:{fetch:e.fetch}},n=()=>{let t=e.contextToken?.();return t===void 0?{}:{"x-local-console-context":t}},r=()=>{let t=e.csrfToken?.();return{...n(),...t===void 0?{}:{"x-local-console-csrf":t}}};return{exchangeSession:(e,n)=>R(t,`/local-console/v1/session`,{method:`POST`,body:{access_token:e,...n===void 0?{}:{account_display_name:n}}}),getBootstrap:()=>R(t,`/local-console/v1/bootstrap`,{headers:n()}),createAccountContinuation:()=>R(t,`/local-console/v1/account-continuations`,{method:`POST`,headers:r()}),heartbeat:()=>R(t,`/local-console/v1/heartbeat`,{headers:n()}),getProjects:()=>R(t,`/local-console/v1/projects`,{headers:n()}),getPackageUpdate:(e={})=>R(t,`/local-console/v1/package-update`,{headers:n(),...e.refresh===!0?{query:{refresh:`true`}}:{},...e.signal===void 0?{}:{signal:e.signal}}),startPackageUpdate:()=>R(t,`/local-console/v1/package-update`,{method:`POST`,headers:r()}),pickFolder:()=>R(t,`/local-console/v1/folders/pick`,{method:`POST`,headers:r(),body:{}}),discoverModels:e=>R(t,`/local-console/v1/providers/models`,{method:`POST`,headers:r(),body:e}),launchProject:e=>R(t,`/local-console/v1/projects/launch`,{method:`POST`,headers:r(),body:e}),openProject:e=>R(t,`/local-console/v1/projects/${encodeURIComponent(e)}/open`,{method:`POST`,headers:r(),body:{}}),refreshInvite:e=>R(t,`/local-console/v1/projects/${encodeURIComponent(e)}/invite`,{method:`POST`,headers:r(),body:{}}),stopProject:e=>R(t,`/local-console/v1/projects/${encodeURIComponent(e)}/stop`,{method:`POST`,headers:r(),body:{}})}}function Pn(e){return{baseUrl:e.relayBaseUrl,...e.fetch===void 0?{}:{fetch:e.fetch},...e.credentials===void 0?{}:{credentials:e.credentials},...e.headers===void 0?{}:{headers:e.headers}}}function Fn(e){return{email:e.email,...e.display_name===void 0||e.display_name.trim()===``?{}:{display_name:e.display_name}}}function In(e){let t=`${e.baseUrl.replace(/\/+$/u,``)}/api/v1/events`;return{getMe:()=>R(e,`/api/v1/me`),createDesktopEntryContinuation:t=>R(e,`/api/v1/desktop-entry-continuations`,{method:`POST`,...t?.signal===void 0?{}:{signal:t.signal}}),getDesktopEntryContinuation:(t,n)=>R(e,`/api/v1/desktop-entry-continuations/${encodeURIComponent(t)}`,n?.signal===void 0?{}:{signal:n.signal}),login:(t,n)=>R(e,`/api/v1/auth/login`,{method:`POST`,body:Gt(Fn(t),n)}),startEmailLogin:(t,n)=>R(e,`/api/v1/auth/email/start`,{method:`POST`,body:Gt({email:t.email},n)}),verifyEmailLogin:(t,n)=>R(e,`/api/v1/auth/email/verify`,{method:`POST`,body:Gt(t,n)}),completeAccountProfile:(t,n)=>R(e,`/api/v1/me/profile`,{method:`POST`,body:Gt(t,n)}),logout:t=>R(e,`/api/v1/auth/logout`,{method:`POST`,body:Gt({},t)}),getJoinEntry:t=>R(e,`/join/${encodeURIComponent(t)}`,{query:{format:`json`}}),acceptJoin:(t,n)=>R(e,`/api/v1/join/${encodeURIComponent(t)}/accept`,{method:`POST`,body:Gt({},n)}),getRecentProjects:t=>R(e,`/api/v1/projects/recent`,{...t===void 0?{}:{query:t}}),openProject:(t,n)=>R(e,`/api/v1/projects/${encodeURIComponent(t)}/open`,{method:`POST`,body:Gt({},n)}),getProjectPresence:t=>R(e,`/api/v1/projects/${encodeURIComponent(t)}/presence`),issueArtifactPreviewSession:(t,n)=>R(e,`/api/v1/projects/${encodeURIComponent(t)}/artifacts/preview-session`,{method:`POST`,body:Gt({},n)}),startUpload:(t,n)=>R(e,`/api/v1/projects/${encodeURIComponent(t.relay_project_ref)}/uploads/start`,{method:`POST`,body:Gt(t,n)}),eventsUrl:e=>_n(t,e?.after),connectEvents:(e={})=>bn({...e,url:t}),workspacePath:tn}}function Ln(e){return In(Pn(e))}function Rn(e){return Ln(e).getMe()}function zn(e,t){return Ln(e).createDesktopEntryContinuation(t)}function Bn(e,t,n){return Ln(e).getDesktopEntryContinuation(t,n)}function Vn(e,t,n){return Ln(e).startEmailLogin(t,n)}function Hn(e,t,n){return Ln(e).verifyEmailLogin(t,n)}function Un(e,t,n){return Ln(e).completeAccountProfile(t,n)}function Wn(e,t){return Ln(e).logout(t)}function Gn(e,t){return Ln(e).getJoinEntry(t)}function Kn(e,t,n){return Ln(e).acceptJoin(t,n)}function qn(e,t){return Ln(e).getRecentProjects(t)}function Jn(e,t,n){return Ln(e).openProject(t,n)}function Yn(e,t){return Ln(e).getProjectPresence(t)}function Xn(e){try{return decodeURIComponent(e)}catch{return e}}function Zn(e){return Vt(Xn(e))}function Qn(e,t=``){if(/^\/$/u.test(e))return{kind:`home`};if(/^\/console\/?$/u.test(e))return{kind:`local_console`};if(/^\/account\/local-console\/?$/u.test(e))return{kind:`local_console_account_gate`};if(/^\/setup\/?$/u.test(e))return{kind:`setup`};if(/^\/projects\/?$/u.test(e)){let e=new URLSearchParams(t).get(`open`);if(e!==null){let t=Zn(e);if(t!==null)return{kind:`project_open`,relayProjectRef:t}}return{kind:`project_center`}}let n=/^\/join\/([^/]+)\/?$/u.exec(e);if(n?.[1]!==void 0)return{kind:`join`,joinToken:Xn(n[1])};let r=/^\/projects\/([^/]+)\/workspace\/?$/u.exec(e);if(r?.[1]!==void 0){let e=Zn(r[1]);return e===null?{kind:`project_center`}:{kind:`workspace`,relayProjectRef:e}}let i=/^\/projects\/([^/]+)\/references\/?$/u.exec(e);if(i?.[1]!==void 0){let e=Zn(i[1]);return e===null?{kind:`project_center`}:{kind:`references`,relayProjectRef:e}}let a=/^\/projects\/([^/]+)\/artifacts\/?$/u.exec(e);if(a?.[1]!==void 0){let e=Zn(a[1]);return e===null?{kind:`project_center`}:{kind:`artifacts`,relayProjectRef:e}}let o=/^\/projects\/([^/]+)\/worklist\/?$/u.exec(e);if(o?.[1]!==void 0){let e=Zn(o[1]);return e===null?{kind:`project_center`}:{kind:`worklist`,relayProjectRef:e}}let s=/^\/projects\/([^/]+)\/skills\/?$/u.exec(e);if(s?.[1]!==void 0){let e=Zn(s[1]);return e===null?{kind:`project_center`}:{kind:`skills`,relayProjectRef:e}}let c=/^\/projects\/([^/]+)\/timeline\/?$/u.exec(e);if(c?.[1]!==void 0){let e=Zn(c[1]);return e===null?{kind:`project_center`}:{kind:`timeline`,relayProjectRef:e}}let l=/^\/projects\/([^/]+)\/settings\/?$/u.exec(e);if(l?.[1]!==void 0){let e=Zn(l[1]);return e===null?{kind:`project_center`}:{kind:`settings`,relayProjectRef:e}}return{kind:`project_center`}}function $n(e){return`${e} | Tutti`}function er(e){let t=e?.trim();return t===void 0||t.length===0?null:t}function tr(e,t){let n=er(t);switch(e.kind){case`home`:case`local_console_account_gate`:return`Tutti`;case`local_console`:return $n(`Projects`);case`setup`:return $n(`Project Setup`);case`join`:return $n(n===null?`Join a project`:`Join ${n}`);case`workspace`:case`worklist`:case`references`:case`artifacts`:case`skills`:case`timeline`:case`settings`:return $n(n??`Workspace`);case`project_center`:case`project_open`:return $n(`Projects`)}}function nr({route:e,projectDisplayName:t}){let n=tr(e,t);return(0,F.useEffect)(()=>{document.title=n},[n]),null}var rr=`en-US`;function ir(e){if(e===void 0)return`Never`;let t=new Date(e);return Number.isFinite(t.getTime())?t.toLocaleString(rr,{month:`short`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`}):e}function ar(e){if(e===void 0)return`Unknown`;let t=new Date(e);return Number.isFinite(t.getTime())?t.toLocaleDateString(rr,{month:`short`,day:`numeric`,year:`numeric`}):`Unknown`}function or(e,t=new Date){let n=new Date(e);if(!Number.isFinite(n.getTime()))return e;if(n.getFullYear()===t.getFullYear()&&n.getMonth()===t.getMonth()&&n.getDate()===t.getDate()){let e=Math.max(0,Math.floor((t.getTime()-n.getTime())/6e4));return e<1?`now`:e<60?`${e}m`:`${Math.floor(e/60)}h`}return n.toLocaleString(rr,{month:`short`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`})}function sr(e){return e.toString().padStart(2,`0`)}function cr(e){if(e===void 0)return`Never`;let t=new Date(e);return Number.isFinite(t.getTime())?`${t.getFullYear()}-${sr(t.getMonth()+1)}-${sr(t.getDate())} ${sr(t.getHours())}:${sr(t.getMinutes())}`:e}function lr(e){let t=new Date(e);return Number.isFinite(t.getTime())?t.toLocaleTimeString(rr,{hour:`2-digit`,minute:`2-digit`}):``}function ur(e){switch(e){case`online`:return`Host online`;case`offline`:return`Host offline`;case`unknown`:return`Host unknown`}}function dr(e){let t=e.relay_project.host_status;return{relayProjectRef:e.relay_project.relay_project_ref,displayName:e.relay_project.display_name,hostStatus:t,membershipLabel:e.membership.label===`owner`?`Owner`:`Member`,lastOpenedLabel:ir(e.last_opened_at),canOpen:t===`online`}}var fr=[`green`,`blue`,`yellow`,`neutral`];function pr(e){if(typeof Intl<`u`&&`Segmenter`in Intl){let t=new Intl.Segmenter(void 0,{granularity:`grapheme`});return Array.from(t.segment(e),e=>e.segment)}return Array.from(e)}function mr(e,t){return pr(e).slice(0,t).join(``)}function hr(e){return e.trim().replace(/\s+/gu,` `)}function gr(e){return pr(e)[0]??``}function _r(e){let t=hr(e).split(` `).filter(Boolean),n=(t.length>=2?`${gr(t[0]??``)}${gr(t[t.length-1]??``)}`:mr(t[0]??e,2)).trim().toLocaleUpperCase(`en-US`);return n===``?`?`:n}function vr(e){return{kind:`initials`,initials:_r(br(e)),color:`blue`}}function yr(e){return e.author.ref===void 0||!zt(e.author.ref,Ft.relayAccount)?null:{kind:`image`,image_url:`/api/v1/accounts/${encodeURIComponent(e.author.ref)}/avatar`,initials:_r(br(e)),color:`blue`}}function br(e){return e.author.display_name??(e.author.kind===`human`?`Member`:`Tutti`)}function xr(e,t={}){if(e.author.kind===`agent`||e.author.kind===`system`)return{avatarKind:`tutti`,online:!1};if(e.author.avatar!==void 0)return{avatarKind:`member`,avatar:e.author.avatar,online:t[e.author.ref??``]?.online??!1};let n=e.author.ref===void 0?void 0:t[e.author.ref];return n===void 0?{avatarKind:`member`,avatar:yr(e)??vr(e),online:!1}:{avatarKind:`member`,avatar:n.avatar,online:n.online??!1}}function Sr(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function Cr(e,t={}){let n={id:e.id,messageKind:e.message_kind,author:br(e),body:e.body,createdAt:e.created_at,time:lr(e.created_at),...xr(e,t.authorProfiles)};if(e.refs?.workflow_ref!==void 0&&(n.workflowRef=e.refs.workflow_ref),e.refs?.reference_file!==void 0){let r=e.refs.reference_file;n.referenceFile={path:r.path,name:r.name,category:r.category,...r.media_type===void 0?{}:{mediaType:r.media_type},sizeBytes:r.size_bytes,...r.category===`image`&&r.blob_oid!==void 0&&t.referenceAssetUrl!==void 0?{imageUrl:t.referenceAssetUrl(r.path,`thumbnail`,r.blob_oid)}:{}}}if(e.clarification_card!==void 0&&(n.clarificationCard={threadId:e.clarification_card.thread_id,roundId:e.clarification_card.round_id,...e.clarification_card.title===void 0?{}:{title:e.clarification_card.title},summary:e.clarification_card.summary,status:e.clarification_card.status,isCurrentRound:e.clarification_card.is_current_round}),e.refs?.task_result!==void 0){let r=e.refs.task_result,i=r.latest_run_result_id===void 0?r.retry_action:t.taskRetryState?.(r.task_id,r.latest_run_result_id,r.retry_action)??r.retry_action;n.taskResult={title:r.title,status:r.status,taskId:r.task_id,taskTitle:r.task_title,summary:r.summary,...r.module_name===void 0?{}:{moduleName:r.module_name},...r.latest_run_result_id===void 0?{}:{latestRunResultId:r.latest_run_result_id},...r.final_note===void 0?{}:{finalNote:r.final_note},...r.generated_files===void 0?{}:{generatedFiles:r.generated_files.map(e=>({path:e.path,name:e.name,meta:e.media_type===void 0?Sr(e.size_bytes):`${e.media_type} · ${Sr(e.size_bytes)}`,...e.group===void 0?{}:{group:e.group}}))},...r.error_code===void 0?{}:{errorCode:r.error_code},...i===void 0?{}:{retryState:i}}}return n}function wr(e){return e.state===`none`?null:{threadId:e.thread.id,roundId:e.round.id,cardMessageId:e.round.card_message_id,title:e.round.request_payload.title??`Clarification`,summary:e.round.request_payload.summary,request:e.round.request_payload.request,ownerLabel:e.thread.owner.kind===`task`?`Task-bound clarification ${e.thread.owner.task_id}`:`Workflow clarification`,status:e.round.status}}function Tr(e){let t=e.resolution.decided_by,n=t===void 0?``:` by ${t.display_name}`;return`${e.resolution.label}${n}`}function Er(e){return e.resolution.outcome===`accepted`?{status:`resolved`,statusLabel:`resolved`}:{status:`expired`,statusLabel:e.resolution.outcome}}function Dr(e){return e.reason??e.summary}function Or(e){if(e===void 0||e.state===`none`)return null;let t=e.request;return e.state===`pending`?{approvalId:t.approval_id,title:t.title,summary:Dr(t),requestedAt:t.requested_at,...t.command?.text===void 0?{}:{detailLabel:`Codex wants to run`,detail:t.command.text,detailCode:!0},status:`pending`,statusLabel:`needs approval`,decisions:t.decisions.map(e=>({decisionId:e.decision_id,label:e.label,tone:e.tone}))}:{approvalId:t.approval_id,title:t.title,summary:Dr(t),requestedAt:t.requested_at,...t.command?.text===void 0?{}:{detailLabel:`Codex wants to run`,detail:t.command.text,detailCode:!0},...Er(e),decisions:[],resolutionLabel:Tr(e)}}function kr(e){return e.state===`ready`?[e.topic,e.background_summary,...e.current_consensus,...e.open_questions,...e.task_changes].some(e=>e.trim().length>0):!1}function Ar(e){let t=e.map(e=>e.trim()).filter(e=>e.length>0).join(`; `);return t.length===0?void 0:t}function jr(e){return[{id:`scratchpad-confirmed`,label:`CONFIRMED`,rows:e.current_consensus.map(e=>({kind:`confirmed`,text:e}))},{id:`scratchpad-questions`,label:`OPEN QUESTIONS`,rows:e.open_questions.map(e=>({kind:`question`,text:e}))}].filter(e=>e.rows.length>0)}function Mr(e){let t=Ar(e.task_changes);return{key:`current:${e.updated_at??`unknown`}`,title:e.topic||`Current Scratchpad`,summary:e.background_summary||`No background summary`,submitAvailable:kr(e),sections:jr(e),...e.updated_at===void 0?{}:{updatedLabel:or(e.updated_at)},...t===void 0?{}:{footerNote:{text:t,tone:`neutral`}}}}function Nr(e){return{key:`submitted:${e.submitted_by_workflow_ref??e.submitted_at??`current`}`,title:e.topic||`Current Scratchpad`,summary:e.background_summary||`No background summary`,submitAvailable:!1,sections:jr(e),submitted:!0,updatedLabelPrefix:`Submitted`,...e.submitted_at===void 0?e.updated_at===void 0?{}:{updatedLabel:or(e.updated_at)}:{updatedLabel:or(e.submitted_at)}}}function Pr(e){return{key:`receipt:${e.workflow_ref}`,title:e.topic||`Current Scratchpad`,summary:e.background_summary||`No background summary`,submitAvailable:!1,sections:jr(e),submitted:!0,updatedLabelPrefix:`Submitted`,updatedLabel:or(e.submitted_at),...e.compiled_tasks===void 0||e.compiled_tasks.length===0?{}:{compiledTasks:e.compiled_tasks.map(e=>({taskId:e.task_id,title:e.title,moduleName:e.module_name,status:e.status}))}}}function Fr(e){return[...e].reverse().map(Pr)}function Ir(e){let t=Fr(e.receipts);return e.state===`ready`?[...t,Mr(e)]:e.state===`submitted`&&t.length===0?[Nr(e)]:t}function Lr(e){let t=e.refs?.scratchpad_source;return t===void 0?e.scope.kind===`main_chat`?e.message_kind===`user_text`&&e.author.kind===`human`?!0:e.message_kind===`agent_text`&&e.author.kind===`agent`?e.refs?.workflow_ref===void 0&&e.refs?.activity_ref===void 0:!1:!1:t===`include`}function Rr(e,t){let n=e.updated_at??(e.state===`submitted`?e.submitted_at:void 0);return t.some(e=>Lr(e)?n===void 0||e.created_at>n:!1)}function zr(e,t=[]){let n=Rr(e,t),r=Ir(e),i=n?r.map((e,t)=>t===r.length-1?{...e,submitAvailable:!0}:e):r;if(i.length>0){let e=i[i.length-1];if(e===void 0)throw Error(`Scratchpad pages unexpectedly empty`);return{title:e.title,summary:e.summary,submitAvailable:e.submitAvailable,sections:e.sections,...e.updatedLabel===void 0?{}:{updatedLabel:e.updatedLabel},...e.updatedLabelPrefix===void 0?{}:{updatedLabelPrefix:e.updatedLabelPrefix},...e.footerNote===void 0?{}:{footerNote:e.footerNote},pages:i}}if(e.state!==`ready`)return{title:`Current Scratchpad`,summary:`Scratchpad empty. Discuss more, tutti together!.`,sections:[],submitAvailable:n};let a=Mr(e);return{...a,submitAvailable:a.submitAvailable||n}}function Br(e,t){let n=e.modules.map(e=>({label:e.module.name,rows:e.tasks.map(e=>({id:e.id,title:e.title,status:e.status,selected:e.id===t}))})).filter(e=>e.rows.length>0);return{modules:n,taskCount:n.reduce((e,t)=>e+t.rows.length,0)}}function Vr(e){return e.modules.flatMap(e=>e.tasks)}function Hr(e){return e.replace(/\s+/gu,` `).trim()}function Ur(e,t=`None`){let n=Hr(e??``);return n.length===0?t:n}function Wr(e){let t=e.map(Hr).filter(e=>e.length>0);return t.length===0?`None`:t.join(`
|
|
9
|
+
`).replace(Bd,``)}function Hd(e,t){return t=Vd(t),Vd(e)===t}function Ud(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Kt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Kt(e,``+r);break;case`className`:At(e,`class`,r);break;case`tabIndex`:At(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:At(e,n,r);break;case`style`:Yt(e,r,o);break;case`data`:if(t!==`object`){At(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=$t(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.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 o==`function`&&(n===`formAction`?(t!==`input`&&Ud(e,t,`name`,a.name,a,null),Ud(e,t,`formEncType`,a.formEncType,a,null),Ud(e,t,`formMethod`,a.formMethod,a,null),Ud(e,t,`formTarget`,a.formTarget,a,null)):(Ud(e,t,`encType`,a.encType,a,null),Ud(e,t,`method`,a.method,a,null),Ud(e,t,`target`,a.target,a,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=$t(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=en);break;case`onScroll`:r!=null&&kd(`scroll`,e);break;case`onScrollEnd`:r!=null&&kd(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=$t(``+r),e.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`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`: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`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:kd(`beforetoggle`,e),kd(`toggle`,e),kt(e,`popover`,r);break;case`xlinkActuate`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:kt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Zt.get(n)||n,kt(e,n,r))}}function Wd(e,t,n,r,a,o){switch(n){case`style`:Yt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Kt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Kt(e,``+r);break;case`onScroll`:r!=null&&kd(`scroll`,e);break;case`onScrollEnd`:r!=null&&kd(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=en);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!St.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[lt]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):kt(e,n,r)}}}function Gd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:kd(`error`,e),kd(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Ud(e,t,o,s,n,null)}}a&&Ud(e,t,`srcSet`,n.srcSet,n,null),r&&Ud(e,t,`src`,n.src,n,null);return;case`input`:kd(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Ud(e,t,r,d,n,null)}}Vt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in kd(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Ud(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Ut(e,!!r,n,!0):Ut(e,!!r,t,!1);return;case`textarea`:for(s in kd(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Ud(e,t,s,c,n,null)}Gt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Ud(e,t,l,r,n,null)}return;case`dialog`:kd(`beforetoggle`,e),kd(`toggle`,e),kd(`cancel`,e),kd(`close`,e);break;case`iframe`:case`object`:kd(`load`,e);break;case`video`:case`audio`:for(r=0;r<Ed.length;r++)kd(Ed[r],e);break;case`image`:kd(`error`,e),kd(`load`,e);break;case`details`:kd(`toggle`,e);break;case`embed`:case`source`:case`link`:kd(`error`,e),kd(`load`,e);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)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Ud(e,t,u,r,n,null)}return;default:if(Xt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Wd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Ud(e,t,c,r,n,null))}function Kd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Ud(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Ud(e,t,p,m,r,f)}}Bt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Ud(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Ud(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Ut(e,!!n,n?[]:``,!1):Ut(e,!!n,t,!0)):Ut(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Ud(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Ud(e,t,s,a,r,o)}Wt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Ud(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Ud(e,t,l,p,r,m)}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 g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Ud(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Ud(e,t,u,p,r,m)}return;default:if(Xt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Wd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Wd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Ud(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Ud(e,t,f,p,r,m)}function qd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Jd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&qd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&qd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Yd=null,Xd=null;function Zd(e){return e.nodeType===9?e:e.ownerDocument}function Qd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function $d(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function ef(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var tf=null;function nf(){var e=window.event;return e&&e.type===`popstate`?e===tf?!1:(tf=e,!0):(tf=null,!1)}var rf=typeof setTimeout==`function`?setTimeout:void 0,af=typeof clearTimeout==`function`?clearTimeout:void 0,of=typeof Promise==`function`?Promise:void 0,sf=typeof queueMicrotask==`function`?queueMicrotask:of===void 0?rf:function(e){return of.resolve(null).then(e).catch(cf)};function cf(e){setTimeout(function(){throw e})}function lf(e){return e===`head`}function uf(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Hp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)wf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,wf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[ht]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&wf(e.ownerDocument.body);n=i}while(n);Hp(t)}function df(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function ff(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:ff(n),gt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function pf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[ht])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=yf(e.nextSibling),e===null)break}return null}function mf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=yf(e.nextSibling),e===null))return null;return e}function hf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=yf(e.nextSibling),e===null))return null;return e}function gf(e){return e.data===`$?`||e.data===`$~`}function _f(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function vf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function yf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var bf=null;function xf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return yf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function Sf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function Cf(e,t,n){switch(t=Zd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function wf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);gt(e)}var Tf=new Map,Ef=new Set;function Df(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Of=P.d;P.d={f:kf,r:Af,D:Nf,C:Pf,L:Ff,m:If,X:Rf,S:Lf,M:zf};function kf(){var e=Of.f(),t=Ou();return e||t}function Af(e){var t=_t(e);t!==null&&t.tag===5&&t.type===`form`?Ds(t):Of.r(e)}var jf=typeof document>`u`?null:document;function Mf(e,t,n){var r=jf;if(r&&typeof t==`string`&&t){var i=zt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Ef.has(i)||(Ef.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Gd(t,`link`,e),bt(t),r.head.appendChild(t)))}}function Nf(e){Of.D(e),Mf(`dns-prefetch`,e,null)}function Pf(e,t){Of.C(e,t),Mf(`preconnect`,e,t)}function Ff(e,t,n){Of.L(e,t,n);var r=jf;if(r&&e&&t){var i=`link[rel="preload"][as="`+zt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+zt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+zt(n.imageSizes)+`"]`)):i+=`[href="`+zt(e)+`"]`;var a=i;switch(t){case`style`:a=Vf(e);break;case`script`:a=Gf(e)}Tf.has(a)||(e=m({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Tf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Hf(a))||t===`script`&&r.querySelector(Kf(a))||(t=r.createElement(`link`),Gd(t,`link`,e),bt(t),r.head.appendChild(t)))}}function If(e,t){Of.m(e,t);var n=jf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+zt(r)+`"][href="`+zt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Gf(e)}if(!Tf.has(a)&&(e=m({rel:`modulepreload`,href:e},t),Tf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Kf(a)))return}r=n.createElement(`link`),Gd(r,`link`,e),bt(r),n.head.appendChild(r)}}}function Lf(e,t,n){Of.S(e,t,n);var r=jf;if(r&&e){var i=yt(r).hoistableStyles,a=Vf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Hf(a)))s.loading=5;else{e=m({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Tf.get(a))&&Yf(e,n);var c=o=r.createElement(`link`);bt(c),Gd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Jf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Rf(e,t){Of.X(e,t);var n=jf;if(n&&e){var r=yt(n).hoistableScripts,i=Gf(e),a=r.get(i);a||(a=n.querySelector(Kf(i)),a||(e=m({src:e,async:!0},t),(t=Tf.get(i))&&Xf(e,t),a=n.createElement(`script`),bt(a),Gd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function zf(e,t){Of.M(e,t);var n=jf;if(n&&e){var r=yt(n).hoistableScripts,i=Gf(e),a=r.get(i);a||(a=n.querySelector(Kf(i)),a||(e=m({src:e,async:!0,type:`module`},t),(t=Tf.get(i))&&Xf(e,t),a=n.createElement(`script`),bt(a),Gd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Bf(e,t,n,r){var a=(a=de.current)?Df(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Vf(n.href),n=yt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Vf(n.href);var o=yt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Hf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Tf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Tf.set(e,n),o||Wf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Gf(n),n=yt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Vf(e){return`href="`+zt(e)+`"`}function Hf(e){return`link[rel="stylesheet"][`+e+`]`}function Uf(e){return m({},e,{"data-precedence":e.precedence,precedence:null})}function Wf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Gd(t,`link`,n),bt(t),e.head.appendChild(t))}function Gf(e){return`[src="`+zt(e)+`"]`}function Kf(e){return`script[async]`+e}function qf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+zt(n.href)+`"]`);if(r)return t.instance=r,bt(r),r;var a=m({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),bt(r),Gd(r,`style`,a),Jf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Vf(n.href);var o=e.querySelector(Hf(a));if(o)return t.state.loading|=4,t.instance=o,bt(o),o;r=Uf(n),(a=Tf.get(a))&&Yf(r,a),o=(e.ownerDocument||e).createElement(`link`),bt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Gd(o,`link`,r),t.state.loading|=4,Jf(o,n.precedence,e),t.instance=o;case`script`:return o=Gf(n.src),(a=e.querySelector(Kf(o)))?(t.instance=a,bt(a),a):(r=n,(a=Tf.get(o))&&(r=m({},n),Xf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),bt(a),Gd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Jf(r,n.precedence,e));return t.instance}function Jf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Yf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Xf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Zf=null;function Qf(e,t,n){if(Zf===null){var r=new Map,i=Zf=new Map;i.set(n,r)}else i=Zf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[ht]||a[ct]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function $f(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function U(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function ep(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function tp(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Vf(r.href),a=t.querySelector(Hf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=rp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,bt(a);return}a=t.ownerDocument||t,r=Uf(r),(i=Tf.get(i))&&Yf(r,i),a=a.createElement(`link`),bt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Gd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=rp.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var W=0;function np(e,t){return e.stylesheets&&e.count===0&&ap(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ap(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&W===0&&(W=62500*Jd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ap(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>W?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function rp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ap(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ip=null;function ap(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ip=new Map,t.forEach(op,e),ip=null,rp.call(e))}function op(e,t){if(!(t.state.loading&4)){var n=ip.get(e);if(n)var r=n.get(null);else{n=new Map,ip.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=rp.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var sp={$$typeof:C,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function cp(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,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=$e(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$e(0),this.hiddenUpdates=$e(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function lp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new cp(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ci(3,null,null,t),e.current=a,a.stateNode=e,t=ca(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},za(a),e}function up(e){return e?(e=oi,e):oi}function dp(e,t,n,r,i,a){i=up(i),r.context===null?r.context=i:r.pendingContext=i,r=Va(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ha(e,r,t),n!==null&&(Cu(n,e,t),Ua(n,e,t))}function fp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function pp(e,t){fp(e,t),(e=e.alternate)&&fp(e,t)}function mp(e){if(e.tag===13||e.tag===31){var t=ri(e,67108864);t!==null&&Cu(t,e,67108864),pp(e,67108864)}}function hp(e){if(e.tag===13||e.tag===31){var t=xu();t=rt(t);var n=ri(e,t);n!==null&&Cu(n,e,t),pp(e,t)}}var gp=!0;function _p(e,t,n,r){var i=N.T;N.T=null;var a=P.p;try{P.p=2,yp(e,t,n,r)}finally{P.p=a,N.T=i}}function vp(e,t,n,r){var i=N.T;N.T=null;var a=P.p;try{P.p=8,yp(e,t,n,r)}finally{P.p=a,N.T=i}}function yp(e,t,n,r){if(gp){var i=bp(r);if(i===null)Pd(e,t,r,xp,n),Mp(e,r);else if(Pp(i,e,t,n,r))r.stopPropagation();else if(Mp(e,r),t&4&&-1<jp.indexOf(e)){for(;i!==null;){var a=_t(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Je(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ve(o);s.entanglements[1]|=c,o&=~c}fd(a),!(Hl&6)&&(lu=ke()+500,pd(0,!1))}}break;case 31:case 13:s=ri(a,2),s!==null&&Cu(s,a,2),Ou(),pp(a,2)}if(a=bp(r),a===null&&Pd(e,t,r,xp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Pd(e,t,r,null,n)}}function bp(e){return e=nn(e),Sp(e)}var xp=null;function Sp(e){if(xp=null,e=L(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return xp=e,null}function Cp(e){switch(e){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`resize`: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`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`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ae()){case je:return 2;case Me:return 8;case Ne:case Pe:return 32;case Fe:return 268435456;default:return 32}default:return 32}}var wp=!1,Tp=null,Ep=null,Dp=null,Op=new Map,kp=new Map,Ap=[],jp=`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 Mp(e,t){switch(e){case`focusin`:case`focusout`:Tp=null;break;case`dragenter`:case`dragleave`:Ep=null;break;case`mouseover`:case`mouseout`:Dp=null;break;case`pointerover`:case`pointerout`:Op.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:kp.delete(t.pointerId)}}function Np(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=_t(t),t!==null&&mp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Pp(e,t,n,r,i){switch(t){case`focusin`:return Tp=Np(Tp,e,t,n,r,i),!0;case`dragenter`:return Ep=Np(Ep,e,t,n,r,i),!0;case`mouseover`:return Dp=Np(Dp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Op.set(a,Np(Op.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,kp.set(a,Np(kp.get(a)||null,e,t,n,r,i)),!0}return!1}function Fp(e){var t=L(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,ot(e.priority,function(){hp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,ot(e.priority,function(){hp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ip(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=bp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);tn=r,n.target.dispatchEvent(r),tn=null}else return t=_t(n),t!==null&&mp(t),e.blockedOn=n,!1;t.shift()}return!0}function Lp(e,t,n){Ip(e)&&n.delete(t)}function Rp(){wp=!1,Tp!==null&&Ip(Tp)&&(Tp=null),Ep!==null&&Ip(Ep)&&(Ep=null),Dp!==null&&Ip(Dp)&&(Dp=null),Op.forEach(Lp),kp.forEach(Lp)}function zp(e,n){e.blockedOn===n&&(e.blockedOn=null,wp||(wp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Rp)))}var Bp=null;function Vp(e){Bp!==e&&(Bp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Bp===e&&(Bp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(Sp(r||n)===null)continue;break}var a=_t(n);a!==null&&(e.splice(t,3),t-=3,Ts(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Hp(e){function t(t){return zp(t,e)}Tp!==null&&zp(Tp,e),Ep!==null&&zp(Ep,e),Dp!==null&&zp(Dp,e),Op.forEach(t),kp.forEach(t);for(var n=0;n<Ap.length;n++){var r=Ap[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ap.length&&(n=Ap[0],n.blockedOn===null);)Fp(n),n.blockedOn===null&&Ap.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[lt]||null;if(typeof a==`function`)o||Vp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[lt]||null)s=o.formAction;else if(Sp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Vp(n)}}}function Up(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Wp(e){this._internalRoot=e}Gp.prototype.render=Wp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;dp(n,xu(),e,t,null,null)},Gp.prototype.unmount=Wp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;dp(e.current,2,null,e,null,null),Ou(),t[ut]=null}};function Gp(e){this._internalRoot=e}Gp.prototype.unstable_scheduleHydration=function(e){if(e){var t=at();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ap.length&&t!==0&&t<Ap[n].priority;n++);Ap.splice(n,0,e),n===0&&Fp(e)}};var Kp=n.version;if(Kp!==`19.2.5`)throw Error(i(527,Kp,`19.2.5`));P.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:f(e),e=e===null?null:e.stateNode,e};var qp={bundleType:0,version:`19.2.5`,rendererPackageName:`react-dom`,currentDispatcherRef:N,reconcilerVersion:`19.2.5`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Jp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Jp.isDisabled&&Jp.supportsFiber)try{Re=Jp.inject(qp),ze=Jp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Js,s=Ys,c=Xs;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=lp(e,1,!1,null,null,n,r,null,o,s,c,Up),e[ut]=t.current,Md(e),new Wp(t)}})),_=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=g()})),v=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},y=new class extends v{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},b={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},x=new class{#e=b;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function S(e){setTimeout(e,0)}var C=typeof window>`u`||`Deno`in globalThis;function w(){}function T(e,t){return typeof e==`function`?e(t):e}function E(e){return typeof e==`number`&&e>=0&&e!==1/0}function ee(e,t){return Math.max(e+(t||0)-Date.now(),0)}function D(e,t){return typeof e==`function`?e(t):e}function O(e,t){return typeof e==`function`?e(t):e}function k(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==j(o,t.options))return!1}else if(!te(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function A(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(M(t.options.mutationKey)!==M(a))return!1}else if(!te(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function j(e,t){return(t?.queryKeyHashFn||M)(e)}function M(e){return JSON.stringify(e,(e,t)=>ie(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function te(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>te(e[n],t[n])):!1}var ne=Object.prototype.hasOwnProperty;function N(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=re(e)&&re(t);if(!r&&!(ie(e)&&ie(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:ne.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=N(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function P(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function re(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ie(e){if(!ae(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!ae(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function ae(e){return Object.prototype.toString.call(e)===`[object Object]`}function oe(e){return new Promise(t=>{x.setTimeout(t,e)})}function se(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:N(e,t)}function ce(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function le(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ue=Symbol();function de(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===ue?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function fe(e,t){return typeof e==`function`?e(...t):!!e}function pe(e,t,n){let r=!1,i;return Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var me=(()=>{let e=()=>C;return{isServer(){return e()},setIsServer(t){e=t}}})();function he(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var ge=S;function _e(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=ge,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var ve=_e(),ye=new class extends v{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function be(e){return Math.min(1e3*2**e,3e4)}function xe(e){return(e??`online`)===`online`?ye.isOnline():!0}var Se=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function Ce(e){let t=!1,n=0,r,i=he(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new Se(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>y.isFocused()&&(e.networkMode===`always`||ye.isOnline())&&e.canRun(),u=()=>xe(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(me.isServer()?0:3),o=e.retryDelay??be,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),oe(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var we=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),E(this.gcTime)&&(this.#e=x.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(me.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(x.clearTimeout(this.#e),this.#e=void 0)}};function Te(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{pe(e,()=>t.signal,()=>n=!0)},u=de(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=await u((()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})()),{maxPages:o}=t.options,s=i?le:ce;return{pages:s(e.pages,a,o),pageParams:s(e.pageParams,r,o)}};if(i&&a.length){let e=i===`backward`,t=e?De:Ee,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:Ee(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function Ee(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function De(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}function Oe(e,t){return t?Ee(e,t)!=null:!1}function ke(e,t){return!t||!e.getPreviousPageParam?!1:De(e,t)!=null}var Ae=class extends we{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Ne(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Ne(this.options);e.data!==void 0&&(this.setState(Me(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=se(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(w).catch(w):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>O(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ue||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>D(e.options.staleTime,this)===`static`):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!ee(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,`signal`,{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=de(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?Te(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=Ce({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof Se&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof Se){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...je(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Me(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),ve.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function je(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:xe(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Me(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Ne(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Pe=class extends v{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=he(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Ie(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Le(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Le(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof O(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!P(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&Re(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||O(this.options.enabled,this.#t)!==O(t.enabled,this.#t)||D(this.options.staleTime,this.#t)!==D(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||O(this.options.enabled,this.#t)!==O(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return Be(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(w)),t}#g(){this.#b();let e=D(this.options.staleTime,this.#t);if(me.isServer()||this.#r.isStale||!E(e))return;let t=ee(this.#r.dataUpdatedAt,e)+1;this.#d=x.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(me.isServer()||O(this.options.enabled,this.#t)===!1||!E(this.#p)||this.#p===0)&&(this.#f=x.setInterval(()=>{(this.options.refetchIntervalInBackground||y.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(x.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(x.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&Ie(e,t),o=i&&Re(e,n,t,r);(a||o)&&(l={...l,...je(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=se(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=se(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,x={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:ze(e,t),refetch:this.refetch,promise:this.#o,isEnabled:O(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=x.data!==void 0,r=x.status===`error`&&!t,i=e=>{r?e.reject(x.error):t&&e.resolve(x.data)},a=()=>{i(this.#o=x.promise=he())},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||x.data!==o.value)&&a();break;case`rejected`:(!r||x.error!==o.reason)&&a();break}}return x}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!P(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){ve.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function Fe(e,t){return O(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&O(t.retryOnMount,e)===!1)}function Ie(e,t){return Fe(e,t)||e.state.data!==void 0&&Le(e,t,t.refetchOnMount)}function Le(e,t,n){if(O(t.enabled,e)!==!1&&D(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&ze(e,t)}return!1}function Re(e,t,n,r){return(e!==t||O(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&ze(e,n)}function ze(e,t){return O(t.enabled,e)!==!1&&e.isStaleByTime(D(t.staleTime,e))}function Be(e,t){return!P(e.getCurrentResult(),t)}var Ve=class extends Pe{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type=`infinite`,super.setOptions(e)}getOptimisticResult(e){return e._type=`infinite`,super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`forward`}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:`backward`}}})}createResult(e,t){let{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a,isError:o,isRefetchError:s}=r,c=n.fetchMeta?.fetchMore?.direction,l=o&&c===`forward`,u=i&&c===`forward`,d=o&&c===`backward`,f=i&&c===`backward`;return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Oe(t,n.data),hasPreviousPage:ke(t,n.data),isFetchNextPageError:l,isFetchingNextPage:u,isFetchPreviousPageError:d,isFetchingPreviousPage:f,isRefetchError:s&&!l&&!d,isRefetching:a&&!u&&!f}}},He=class extends we{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Ue(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=Ce({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),ve.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Ue(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var We=class extends v{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new He({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Ge(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Ge(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Ge(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=Ge(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){ve.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>A(t,e))}findAll(e={}){return this.getAll().filter(t=>A(e,t))}notify(e){ve.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return ve.batch(()=>Promise.all(e.map(e=>e.continue().catch(w))))}};function Ge(e){return e.options.scope?.id}var Ke=class extends v{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),P(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&M(t.mutationKey)!==M(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??Ue();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){ve.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}};function qe(e,t){let n=new Set(t);return e.filter(e=>!n.has(e))}function Je(e,t,n){let r=e.slice(0);return r[t]=n,r}var Ye=class extends v{#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=[];constructor(e,t,n){super(),this.#e=e,this.#r=n,this.#n=[],this.#i=[],this.#t=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#i.forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#i.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#r=t,ve.batch(()=>{let e=this.#i,t=this.#p(this.#n);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let n=t.map(e=>e.observer),r=n.map(e=>e.getCurrentResult()),i=e.length!==n.length,a=n.some((t,n)=>t!==e[n]),o=i||a,s=o?!0:r.some((e,t)=>{let n=this.#t[t];return!n||!P(e,n)});!o&&!s||(o&&(this.#l=t,this.#i=n),this.#t=r,this.hasListeners()&&(o&&(qe(e,n).forEach(e=>{e.destroy()}),qe(n,e).forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})),this.#h()))})}getCurrentResult(){return this.#t}getQueries(){return this.#i.map(e=>e.getCurrentQuery())}getObservers(){return this.#i}getOptimisticResult(e,t){let n=this.#p(e),r=n.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),i=n.map(e=>e.defaultedQueryOptions.queryHash);return[r,e=>this.#d(e??r,t,i),()=>this.#u(r,n)]}#u(e,t){return t.map((n,r)=>{let i=e[r];return n.defaultedQueryOptions.notifyOnChangeProps?i:n.observer.trackResult(i,e=>{t.forEach(t=>{t.observer.trackProp(e)})})})}#d(e,t,n){if(t){let r=this.#c,i=n!==void 0&&r!==void 0&&(r.length!==n.length||n.some((e,t)=>e!==r[t]));return(!this.#a||this.#t!==this.#s||i||t!==this.#o)&&(this.#o=t,this.#s=this.#t,n!==void 0&&(this.#c=n),this.#a=N(this.#a,t(e))),this.#a}return e}#f(){return this.#r?.combine!==void 0&&this.#i.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#p(e){let t=new Map;this.#i.forEach(e=>{let n=e.options.queryHash;if(!n)return;let r=t.get(n);r?r.push(e):t.set(n,[e])});let n=[];return e.forEach(e=>{let r=this.#e.defaultQueryOptions(e),i=t.get(r.queryHash)?.shift()??new Pe(this.#e,r);n.push({defaultedQueryOptions:r,observer:i})}),n}#m(e,t){let n=this.#i.indexOf(e);n!==-1&&(this.#t=Je(this.#t,n,t),this.#h())}#h(){if(this.hasListeners()){let e=this.#u(this.#t,this.#l),t=this.#f(),n=this.#a,r=t?n:this.#d(e,this.#r?.combine);(t||n!==r)&&ve.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},Xe=class extends v{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??j(r,t),a=this.get(i);return a||(a=new Ae({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){ve.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>k(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>k(e,t)):t}notify(e){ve.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){ve.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){ve.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Ze=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Xe,this.#t=e.mutationCache||new We,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=y.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=ye.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(D(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=T(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return ve.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;ve.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return ve.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=ve.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(w).catch(w)}invalidateQueries(e,t={}){return ve.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=ve.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(w)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(w)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(D(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(w).catch(w)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(w).catch(w)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return ye.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(M(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{te(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(M(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{te(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=j(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===ue&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Qe=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),$e=o(((e,t)=>{t.exports=Qe()})),F=l(d(),1),I=$e(),et=F.createContext(void 0),tt=e=>{let t=F.useContext(et);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},nt=({client:e,children:t})=>(F.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,I.jsx)(et.Provider,{value:e,children:t})),rt=F.createContext(!1),it=()=>F.useContext(rt);rt.Provider;function at(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var ot=F.createContext(at()),st=()=>F.useContext(ot),ct=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?fe(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},lt=e=>{F.useEffect(()=>{e.clearReset()},[e])},ut=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||fe(n,[e.error,r])),dt=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},ft=(e,t)=>e.isLoading&&e.isFetching&&!t,pt=(e,t)=>e?.suspense&&t.isPending,mt=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function ht({queries:e,...t},n){let r=tt(n),i=it(),a=st(),o=F.useMemo(()=>e.map(e=>{let t=r.defaultQueryOptions(e);return t._optimisticResults=i?`isRestoring`:`optimistic`,t}),[e,r,i]);o.forEach(e=>{dt(e),ct(e,a,r.getQueryCache().get(e.queryHash))}),lt(a);let[s]=F.useState(()=>new Ye(r,o,t)),[c,l,u]=s.getOptimisticResult(o,t.combine),d=!i&&t.subscribed!==!1;F.useSyncExternalStore(F.useCallback(e=>d?s.subscribe(ve.batchCalls(e)):w,[s,d]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),F.useEffect(()=>{s.setQueries(o,t)},[o,t,s]);let f=c.some((e,t)=>pt(o[t],e))?c.flatMap((e,t)=>{let n=o[t];return n&&pt(n,e)?mt(n,new Pe(r,n),a):[]}):[];if(f.length>0)throw Promise.all(f);let p=c.find((e,t)=>{let n=o[t];return n&&ut({result:e,errorResetBoundary:a,throwOnError:n.throwOnError,query:r.getQueryCache().get(n.queryHash),suspense:n.suspense})});if(p?.error)throw p.error;return l(u())}function gt(e,t,n){let r=it(),i=st(),a=tt(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash);o._optimisticResults=r?`isRestoring`:`optimistic`,dt(o),ct(o,i,s),lt(i);let c=!a.getQueryCache().get(o.queryHash),[l]=F.useState(()=>new t(a,o)),u=l.getOptimisticResult(o),d=!r&&e.subscribed!==!1;if(F.useSyncExternalStore(F.useCallback(e=>{let t=d?l.subscribe(ve.batchCalls(e)):w;return l.updateResult(),t},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),F.useEffect(()=>{l.setOptions(o)},[o,l]),pt(o,u))throw mt(o,l,i);if(ut({result:u,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw u.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,u),o.experimental_prefetchInRender&&!me.isServer()&&ft(u,r)&&(c?mt(o,l,i):s?.promise)?.catch(w).finally(()=>{l.updateResult()}),o.notifyOnChangeProps?u:l.trackResult(u)}function L(e,t){return gt(e,Pe,t)}function _t(e,t){let n=tt(t),[r]=F.useState(()=>new Ke(n,e));F.useEffect(()=>{r.setOptions(e)},[r,e]);let i=F.useSyncExternalStore(F.useCallback(e=>r.subscribe(ve.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=F.useCallback((e,t)=>{r.mutate(e,t).catch(w)},[r]);if(i.error&&fe(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function vt(e,t){return gt(e,Ve,t)}var yt=_(),bt=`0123456789ABCDEFGHJKMNPQRSTVWXYZ`,xt=32,St=16,Ct=0xffffffffffff,wt;(function(e){e.Base32IncorrectEncoding=`B32_ENC_INVALID`,e.DecodeTimeInvalidCharacter=`DEC_TIME_CHAR`,e.DecodeTimeValueMalformed=`DEC_TIME_MALFORMED`,e.EncodeTimeNegative=`ENC_TIME_NEG`,e.EncodeTimeSizeExceeded=`ENC_TIME_SIZE_EXCEED`,e.EncodeTimeValueMalformed=`ENC_TIME_MALFORMED`,e.PRNGDetectFailure=`PRNG_DETECT`,e.ULIDInvalid=`ULID_INVALID`,e.Unexpected=`UNEXPECTED`,e.UUIDInvalid=`UUID_INVALID`})(wt||={});var Tt=class extends Error{constructor(e,t){super(`${t} (${e})`),this.name=`ULIDError`,this.code=e}};function Et(e){let t=Math.floor(e()*xt)%xt;return bt.charAt(t)}function Dt(e){let t=Ot(),n=t&&(t.crypto||t.msCrypto)||null;if(typeof n?.getRandomValues==`function`)return()=>{let e=new Uint8Array(1);return n.getRandomValues(e),e[0]/256};if(typeof n?.randomBytes==`function`)return()=>n.randomBytes(1).readUInt8()/256;throw new Tt(wt.PRNGDetectFailure,`Failed to find a reliable PRNG`)}function Ot(){return jt()?self:typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:null}function kt(e,t){let n=``;for(;e>0;e--)n=Et(t)+n;return n}function At(e,t=10){if(isNaN(e))throw new Tt(wt.EncodeTimeValueMalformed,`Time must be a number: ${e}`);if(e>0xffffffffffff)throw new Tt(wt.EncodeTimeSizeExceeded,`Cannot encode a time larger than ${Ct}: ${e}`);if(e<0)throw new Tt(wt.EncodeTimeNegative,`Time must be positive: ${e}`);if(Number.isInteger(e)===!1)throw new Tt(wt.EncodeTimeValueMalformed,`Time must be an integer: ${e}`);let n,r=``;for(let i=t;i>0;i--)n=e%xt,r=bt.charAt(n)+r,e=(e-n)/xt;return r}function jt(){return typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope}function Mt(e,t){let n=t||Dt();return At(!e||isNaN(e)?Date.now():e,10)+kt(St,n)}var Nt=`[0-7][0-9A-HJKMNP-TV-Z]{25}`,Pt=/^[0-7][0-9A-HJKMNP-TV-Z]{25}$/,Ft={project:`prj_`,message:`msg_`,taskModule:`mod_`,task:`task_`,runResult:`run_result_`,recoverySummary:`recovery_`,activity:`act_`,event:`evt_`,workflowInvocation:`wf_`,clarificationThread:`clar_thread_`,clarificationRound:`clar_round_`,clarificationInteractionResponse:`clar_response_`,approvalRequest:`approval_`,idempotency:`idem_`,relayProject:`relay_project_`,relayAccount:`relay_account_`,relayMembership:`relay_member_`,relayAccountSession:`relay_account_session_`,relayClientSession:`relay_client_session_`,relayUpload:`relay_upload_`,relayAuthChallenge:`relay_auth_challenge_`,relayDesktopEntryContinuation:`relay_desktop_entry_continuation_`,hostConnection:`host_connection_`,joinToken:`join_token_`,notice:`notice_`,controlPlaneIntent:`intent_`};function It(e){return`${e}${Mt()}`}function Lt(e){return Pt.test(e)}function Rt(e,t){if(!e.startsWith(t))return null;let n=e.slice(t.length);return Lt(n)?n:null}function zt(e,t){return Rt(e,t)!==null}function Bt(e){return Rt(e,Ft.relayProject)??e.slice(Ft.relayProject.length)}function Vt(e){return zt(e,Ft.relayProject)?e:Lt(e)?`${Ft.relayProject}${e}`:null}var Ht=()=>It(Ft.idempotency),Ut=()=>It(Ft.notice);function Wt(e){return e instanceof Date?e.toISOString():e}function Gt(e,t={}){let n=typeof t==`function`?{now:t}:t,r=n.issuedAt??n.issued_at??n.now?.()??new Date;return{command_id:n.commandId??n.command_id??Ht(),issued_at:Wt(r),payload:e}}var Kt=class extends Error{statusCode;code;retryable;details;constructor(e){super(e.message),this.name=`TuttiApiError`,this.statusCode=e.statusCode,this.code=e.code,this.retryable=e.retryable,e.details!==void 0&&(this.details=e.details)}};function qt(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Jt(e,t){if(qt(t)&&qt(t.error)){let n=t.error;return new Kt({message:typeof n.message==`string`?n.message:`Request failed`,statusCode:e,code:typeof n.code==`string`?n.code:`internal_error`,retryable:typeof n.retryable==`boolean`?n.retryable:e>=500,...n.details===void 0?{}:{details:n.details}})}return new Kt({message:`Request failed with HTTP ${e}`,statusCode:e,code:e===401?`unauthorized`:`internal_error`,retryable:e>=500})}function Yt(e,t){return e instanceof Kt&&(t===void 0||e.code===t)}function Xt(e){return e instanceof Kt&&(e.statusCode===401||e.code===`unauthorized`||e.code===`relay_session_invalid`)}function Zt(e){return e.startsWith(`/`)?e:`/${e}`}function Qt(e,t){let n=e.replace(/\/+$/u,``),r=Zt(t);return n===``?r:`${n}${r}`}function $t(e,t){if(t===void 0)return e;let n=new URLSearchParams;for(let[e,r]of Object.entries(t))r!=null&&n.set(e,String(r));let r=n.toString();return r===``?e:`${e}${e.includes(`?`)?`&`:`?`}${r}`}function en(e,t,n){return $t(Qt(e,t),n)}function tn(e){return`/projects/${encodeURIComponent(Bt(e))}/workspace`}function nn(e,t=``){let n=t===``?``:Zt(t);return`/projects/${encodeURIComponent(e)}/host/api/v1${n}`}function rn(e,t,n=``,r){return en(e,nn(t,n),r)}var an=[`connection.ready`,`message.created`,`scratchpad.updated`,`worklist.changed`,`task.updated`,`task_detail.updated`,`clarification.changed`,`approval.changed`,`activity.event`,`execution_status.changed`,`provider_config.changed`,`workspace.recovered`,`query.invalidate`],on=[`connection.ready`,`query.invalidate`];function sn(){let e=globalThis.EventSource;if(e===void 0)throw Error(`No EventSource implementation is available`);return e}function cn(e){if(e===void 0)throw Error(`SSE event data is missing`);return JSON.parse(e)}function ln(e){return e.event_type===`connection.ready`}function un(e,t){return $t(e,t===void 0?void 0:{after:t})}var dn=[3e3,1e4,3e4,6e4],fn=.2,pn=3e4;function mn(){return globalThis.navigator?.onLine!==!1}function hn(e){let t=e.delaysMs[Math.min(e.attempt,e.delaysMs.length-1)]??6e4,n=t*e.jitterRatio*(e.random()*2-1);return Math.max(0,Math.round(t+n))}function gn(e,t){return un(e,t)}function _n(e,t){return un(e,t)}function vn(e){let t=un(e.url,e.after),n=`connecting`,r,i=!1,a,o,s,c=0,l,u=t,d=!1,f=e.reconnectDelaysMs??dn,p=e.reconnectJitterRatio??fn,m=e.reconnectResetAfterMs??pn,h=e.random??Math.random,g=e.isOnline??mn,_=t=>{n!==t&&(n=t,e.onStatusChange?.(t))},v=()=>{a!==void 0&&(clearTimeout(a),a=void 0)},y=()=>{o!==void 0&&(clearTimeout(o),o=void 0)},b=()=>{s!==void 0&&(clearTimeout(s),s=void 0)},x=()=>{v(),!(e.heartbeatTimeoutMs===void 0||i)&&(a=setTimeout(()=>{i||(_(`stale`),e.onError?.({kind:`heartbeat_timeout`}),w(l),d=!1,T(!0))},e.heartbeatTimeoutMs))},S=new Map,C=t=>{x();let n;try{n=cn(t.data)}catch(n){e.onError?.({kind:`parse_error`,error:n,...t.data===void 0?{}:{raw_data:t.data}});return}r=n.event_id||t.lastEventId,e.onEvent?.(n),ln(n)&&(r=n.payload.current_event_cursor,e.onReady?.(n)),n.invalidates!==void 0&&e.onInvalidate?.(n.invalidates,n)};function w(e){let t=S.get(e);if(t!==void 0){for(let[n,r]of t)e.removeEventListener?.(n,r);S.delete(e)}e.onopen=null,e.onerror=null,e.close(),v(),b()}function T(e=!1){if(i||o!==void 0||(e||_(`reconnecting`),!g()))return;let t=hn({attempt:c,delaysMs:f,jitterRatio:p,random:h});c+=1,o=setTimeout(()=>{o=void 0,E(!1)},t)}function E(t){if(i||d)return;if(!t&&!g()){_(`reconnecting`);return}d=!0,u=un(e.url,r??e.after);let n;try{n=new(e.eventSource??(sn()))(u,{withCredentials:e.withCredentials??!0})}catch(n){if(d=!1,e.onError?.({kind:`event_source_unavailable`,error:n}),t)throw n;T();return}l=n;let a=new Map;S.set(n,a);for(let t of e.eventTypes){let e=C;a.set(t,e),n.addEventListener(t,e)}n.onopen=()=>{i||l!==n||(d=!1,x(),_(`open`),b(),s=setTimeout(()=>{s=void 0,c=0},m))},n.onerror=t=>{i||l!==n||(e.onError?.({kind:`event_source_error`,error:t}),w(n),d=!1,T())}}let ee=()=>{i||n===`open`||d||(y(),E(!1))},D=globalThis,O=globalThis.document,k=()=>ee(),A=()=>{O?.visibilityState!==`hidden`&&ee()};D.addEventListener?.(`online`,k),D.addEventListener?.(`focus`,k),O?.addEventListener?.(`visibilitychange`,A);try{E(!0)}catch(e){throw D.removeEventListener?.(`online`,k),D.removeEventListener?.(`focus`,k),O?.removeEventListener?.(`visibilitychange`,A),e}return{get url(){return u},get source(){return l},close:()=>{i||(i=!0,v(),y(),b(),w(l),D.removeEventListener?.(`online`,k),D.removeEventListener?.(`focus`,k),O?.removeEventListener?.(`visibilitychange`,A),_(`closed`))},retryNow:ee,currentCursor:()=>r,status:()=>n}}function yn(e){return vn({...e,eventTypes:e.eventTypes??an})}function bn(e){return vn({...e,eventTypes:e.eventTypes??on})}var xn=new Set([`forwarded`,`x-real-ip`]),Sn=[`x-tutti-`,`x-forwarded-`];function Cn(e){if(e!==void 0)return e;if(globalThis.fetch===void 0)throw new Kt({message:`No fetch implementation is available`,statusCode:0,code:`network_error`,retryable:!0});return globalThis.fetch.bind(globalThis)}function wn(e){return typeof e==`object`&&!!e&&!Array.isArray(e)&&`forEach`in e&&typeof e.forEach==`function`}function Tn(e){if(e===void 0)return[];if(wn(e)){let t=[];return e.forEach((e,n)=>t.push([n,e])),t}return Array.isArray(e)?e.map(([e,t])=>[e,t]):Object.entries(e)}function En(e){let t=e.toLowerCase();return xn.has(t)||Sn.some(e=>t.startsWith(e))}function Dn(...e){let t={};for(let n of e)for(let[e,r]of Tn(n))En(e)||(t[e]=r);return t}async function On(e){let t=await e.text();if(t.trim()!==``)return JSON.parse(t)}async function R(e,t,n={}){let r=Dn({accept:`application/json`},e.headers,n.headers),i={method:n.method??`GET`,credentials:n.credentials??e.credentials??`include`,headers:r,...n.signal===void 0?{}:{signal:n.signal}};n.body!==void 0&&(Object.keys(r).some(e=>e.toLowerCase()===`content-type`)||(r[`content-type`]=`application/json`),i.body=JSON.stringify(n.body));let a=$t(Qt(e.baseUrl,t),n.query),o;try{o=await Cn(e.fetch)(a,i)}catch(e){throw new Kt({message:e instanceof Error?e.message:`Network request failed`,statusCode:0,code:`network_error`,retryable:!0})}let s=await On(o);if(!o.ok)throw Jt(o.status,s);return s}function kn(e){return{baseUrl:rn(e.relayBaseUrl,e.relayProjectRef),...e.fetch===void 0?{}:{fetch:e.fetch},...e.credentials===void 0?{}:{credentials:e.credentials},...e.headers===void 0?{}:{headers:e.headers}}}function An(e){return e}function jn(e){let t=`${e.baseUrl.replace(/\/+$/u,``)}/events`;return{getSession:()=>R(e,`/session`),getWorkspace:()=>R(e,`/workspace`),getBootstrap:()=>R(e,`/bootstrap`),getProviderConfig:()=>R(e,`/provider/config`),getProviderModels:()=>R(e,`/provider/models`),updateProviderDefaultModel:(t,n)=>R(e,`/provider/default-model`,{method:`POST`,body:Gt(t,n)}),getProviderUsage:()=>R(e,`/provider/usage`),getProjectTimeline:()=>R(e,`/project-timeline`),updateProjectDisplayName:(t,n)=>R(e,`/workspace/project-display-name`,{method:`POST`,body:Gt(t,n)}),updateProjectDescription:(t,n)=>R(e,`/workspace/project-description`,{method:`POST`,body:Gt(t,n)}),getReadState:()=>R(e,`/read-state`),markRead:(t,n)=>R(e,`/read-state/mark-read`,{method:`POST`,body:Gt(t,n)}),getMessages:t=>R(e,`/messages`,{...t===void 0?{}:{query:An(t)}}),sendMainChatMessage:(t,n)=>R(e,`/messages`,{method:`POST`,body:Gt(t,n)}),getScratchpad:()=>R(e,`/scratchpad`),getWorklist:()=>R(e,`/worklist`),submitWorklist:(t={},n)=>R(e,`/worklist/submit`,{method:`POST`,body:Gt(t,n)}),getActiveApproval:()=>R(e,`/approvals/active`),decideApproval:(t,n,r)=>R(e,`/approvals/${encodeURIComponent(t)}/decide`,{method:`POST`,body:Gt(n,r)}),getActiveClarification:()=>R(e,`/clarifications/active`),getClarificationThread:t=>R(e,`/clarifications/${encodeURIComponent(t)}`),getClarificationRound:t=>R(e,`/clarifications/rounds/${encodeURIComponent(t)}`),getClarificationRoundMessages:(t,n)=>R(e,`/clarifications/rounds/${encodeURIComponent(t)}/messages`,{...n===void 0?{}:{query:An(n)}}),sendClarificationRoundMessage:(t,n,r)=>R(e,`/clarifications/rounds/${encodeURIComponent(t)}/messages`,{method:`POST`,body:Gt(n,r)}),submitClarificationRound:(t,n={},r)=>R(e,`/clarifications/rounds/${encodeURIComponent(t)}/submit`,{method:`POST`,body:Gt(n,r)}),getTask:t=>R(e,`/tasks/${encodeURIComponent(t)}`),getTaskDetail:t=>R(e,`/tasks/${encodeURIComponent(t)}/detail`),getTaskRunResults:(t,n)=>R(e,`/tasks/${encodeURIComponent(t)}/run-results`,{...n===void 0?{}:{query:An(n)}}),getRecoverySummaries:t=>R(e,`/recovery-summaries`,{...t===void 0?{}:{query:An(t)}}),getRecoverySummary:t=>R(e,`/recovery-summaries/${encodeURIComponent(t)}`),getExecutionStatus:()=>R(e,`/execution-status`),getArtifacts:()=>R(e,`/artifacts`),renewArtifactPreviewLease:()=>R(e,`/artifacts/preview/lease`,{method:`POST`}),runSchedulerNow:(t={},n)=>R(e,`/scheduler/run-now`,{method:`POST`,body:Gt(t,n)}),retryTask:(t,n,r)=>R(e,`/tasks/${encodeURIComponent(t)}/retry`,{method:`POST`,body:Gt(n,r)}),getProjectDocs:()=>R(e,`/viewer/project-docs`),getProjectDoc:(t,n)=>R(e,`/viewer/project-docs/${encodeURIComponent(t)}`,{...n===void 0?{}:{query:An(n)}}),getViewerTree:t=>R(e,`/viewer/tree`,{...t===void 0?{}:{query:An(t)}}),getViewerFile:t=>R(e,`/viewer/files`,{query:An(t)}),viewerAssetUrl:t=>$t(Qt(e.baseUrl,`/viewer/assets`),An(t)),getReferenceFiles:t=>R(e,`/references/files`,{...t===void 0?{}:{query:An(t)}}),uploadReferenceFile:(t,n)=>R(e,`/references/files`,{method:`POST`,body:Gt(t,n)}),refreshReferenceSummaries:(t={},n)=>R(e,`/references/summaries/refresh`,{method:`POST`,body:Gt(t,n)}),getSkills:()=>R(e,`/skills`),getSkill:t=>R(e,`/skills/${encodeURIComponent(t)}`),importSkillZip:(t,n)=>R(e,`/skills/import`,{method:`POST`,body:Gt(t,n)}),deleteSkill:(t,n)=>R(e,`/skills/delete`,{method:`POST`,body:Gt(t,n)}),initializeProjectDocs:(t={},n)=>R(e,`/viewer/project-docs/init`,{method:`POST`,body:Gt(t,n)}),contextSync:(t={},n)=>R(e,`/viewer/project-docs/context-sync`,{method:`POST`,body:Gt(t,n)}),eventsUrl:e=>gn(t,e?.after),connectEvents:(e={})=>yn({...e,url:t})}}function Mn(e){return jn(kn(e))}function Nn(e){let t={baseUrl:e.baseUrl,credentials:`include`,...e.fetch===void 0?{}:{fetch:e.fetch}},n=()=>{let t=e.contextToken?.();return t===void 0?{}:{"x-local-console-context":t}},r=()=>{let t=e.csrfToken?.();return{...n(),...t===void 0?{}:{"x-local-console-csrf":t}}};return{exchangeSession:(e,n)=>R(t,`/local-console/v1/session`,{method:`POST`,body:{access_token:e,...n===void 0?{}:{account_display_name:n}}}),getBootstrap:()=>R(t,`/local-console/v1/bootstrap`,{headers:n()}),createAccountContinuation:()=>R(t,`/local-console/v1/account-continuations`,{method:`POST`,headers:r()}),heartbeat:()=>R(t,`/local-console/v1/heartbeat`,{headers:n()}),getProjects:()=>R(t,`/local-console/v1/projects`,{headers:n()}),getPackageUpdate:(e={})=>R(t,`/local-console/v1/package-update`,{headers:n(),...e.refresh===!0?{query:{refresh:`true`}}:{},...e.signal===void 0?{}:{signal:e.signal}}),startPackageUpdate:()=>R(t,`/local-console/v1/package-update`,{method:`POST`,headers:r()}),pickFolder:()=>R(t,`/local-console/v1/folders/pick`,{method:`POST`,headers:r(),body:{}}),discoverModels:e=>R(t,`/local-console/v1/providers/models`,{method:`POST`,headers:r(),body:e}),launchProject:e=>R(t,`/local-console/v1/projects/launch`,{method:`POST`,headers:r(),body:e}),openProject:e=>R(t,`/local-console/v1/projects/${encodeURIComponent(e)}/open`,{method:`POST`,headers:r(),body:{}}),refreshInvite:e=>R(t,`/local-console/v1/projects/${encodeURIComponent(e)}/invite`,{method:`POST`,headers:r(),body:{}}),stopProject:e=>R(t,`/local-console/v1/projects/${encodeURIComponent(e)}/stop`,{method:`POST`,headers:r(),body:{}})}}function Pn(e){return{baseUrl:e.relayBaseUrl,...e.fetch===void 0?{}:{fetch:e.fetch},...e.credentials===void 0?{}:{credentials:e.credentials},...e.headers===void 0?{}:{headers:e.headers}}}function Fn(e){return{email:e.email,...e.display_name===void 0||e.display_name.trim()===``?{}:{display_name:e.display_name}}}function In(e){let t=`${e.baseUrl.replace(/\/+$/u,``)}/api/v1/events`;return{getMe:()=>R(e,`/api/v1/me`),createDesktopEntryContinuation:t=>R(e,`/api/v1/desktop-entry-continuations`,{method:`POST`,...t?.signal===void 0?{}:{signal:t.signal}}),getDesktopEntryContinuation:(t,n)=>R(e,`/api/v1/desktop-entry-continuations/${encodeURIComponent(t)}`,n?.signal===void 0?{}:{signal:n.signal}),login:(t,n)=>R(e,`/api/v1/auth/login`,{method:`POST`,body:Gt(Fn(t),n)}),startEmailLogin:(t,n)=>R(e,`/api/v1/auth/email/start`,{method:`POST`,body:Gt({email:t.email},n)}),verifyEmailLogin:(t,n)=>R(e,`/api/v1/auth/email/verify`,{method:`POST`,body:Gt(t,n)}),completeAccountProfile:(t,n)=>R(e,`/api/v1/me/profile`,{method:`POST`,body:Gt(t,n)}),logout:t=>R(e,`/api/v1/auth/logout`,{method:`POST`,body:Gt({},t)}),getJoinEntry:t=>R(e,`/join/${encodeURIComponent(t)}`,{query:{format:`json`}}),acceptJoin:(t,n)=>R(e,`/api/v1/join/${encodeURIComponent(t)}/accept`,{method:`POST`,body:Gt({},n)}),getRecentProjects:t=>R(e,`/api/v1/projects/recent`,{...t===void 0?{}:{query:t}}),openProject:(t,n)=>R(e,`/api/v1/projects/${encodeURIComponent(t)}/open`,{method:`POST`,body:Gt({},n)}),getProjectPresence:t=>R(e,`/api/v1/projects/${encodeURIComponent(t)}/presence`),issueArtifactPreviewSession:(t,n)=>R(e,`/api/v1/projects/${encodeURIComponent(t)}/artifacts/preview-session`,{method:`POST`,body:Gt({},n)}),startUpload:(t,n)=>R(e,`/api/v1/projects/${encodeURIComponent(t.relay_project_ref)}/uploads/start`,{method:`POST`,body:Gt(t,n)}),eventsUrl:e=>_n(t,e?.after),connectEvents:(e={})=>bn({...e,url:t}),workspacePath:tn}}function Ln(e){return In(Pn(e))}function Rn(e){return Ln(e).getMe()}function zn(e,t){return Ln(e).createDesktopEntryContinuation(t)}function Bn(e,t,n){return Ln(e).getDesktopEntryContinuation(t,n)}function Vn(e,t,n){return Ln(e).startEmailLogin(t,n)}function Hn(e,t,n){return Ln(e).verifyEmailLogin(t,n)}function Un(e,t,n){return Ln(e).completeAccountProfile(t,n)}function Wn(e,t){return Ln(e).logout(t)}function Gn(e,t){return Ln(e).getJoinEntry(t)}function Kn(e,t,n){return Ln(e).acceptJoin(t,n)}function qn(e,t){return Ln(e).getRecentProjects(t)}function Jn(e,t,n){return Ln(e).openProject(t,n)}function Yn(e,t){return Ln(e).getProjectPresence(t)}function Xn(e){try{return decodeURIComponent(e)}catch{return e}}function Zn(e){return Vt(Xn(e))}function Qn(e,t=``){if(/^\/$/u.test(e))return{kind:`home`};if(/^\/console\/?$/u.test(e))return{kind:`local_console`};if(/^\/account\/local-console\/?$/u.test(e))return{kind:`local_console_account_gate`};if(/^\/setup\/?$/u.test(e))return{kind:`setup`};if(/^\/projects\/?$/u.test(e)){let e=new URLSearchParams(t).get(`open`);if(e!==null){let t=Zn(e);if(t!==null)return{kind:`project_open`,relayProjectRef:t}}return{kind:`project_center`}}let n=/^\/join\/([^/]+)\/?$/u.exec(e);if(n?.[1]!==void 0)return{kind:`join`,joinToken:Xn(n[1])};let r=/^\/projects\/([^/]+)\/workspace\/?$/u.exec(e);if(r?.[1]!==void 0){let e=Zn(r[1]);return e===null?{kind:`project_center`}:{kind:`workspace`,relayProjectRef:e}}let i=/^\/projects\/([^/]+)\/references\/?$/u.exec(e);if(i?.[1]!==void 0){let e=Zn(i[1]);return e===null?{kind:`project_center`}:{kind:`references`,relayProjectRef:e}}let a=/^\/projects\/([^/]+)\/artifacts\/?$/u.exec(e);if(a?.[1]!==void 0){let e=Zn(a[1]);return e===null?{kind:`project_center`}:{kind:`artifacts`,relayProjectRef:e}}let o=/^\/projects\/([^/]+)\/worklist\/?$/u.exec(e);if(o?.[1]!==void 0){let e=Zn(o[1]);return e===null?{kind:`project_center`}:{kind:`worklist`,relayProjectRef:e}}let s=/^\/projects\/([^/]+)\/skills\/?$/u.exec(e);if(s?.[1]!==void 0){let e=Zn(s[1]);return e===null?{kind:`project_center`}:{kind:`skills`,relayProjectRef:e}}let c=/^\/projects\/([^/]+)\/timeline\/?$/u.exec(e);if(c?.[1]!==void 0){let e=Zn(c[1]);return e===null?{kind:`project_center`}:{kind:`timeline`,relayProjectRef:e}}let l=/^\/projects\/([^/]+)\/settings\/?$/u.exec(e);if(l?.[1]!==void 0){let e=Zn(l[1]);return e===null?{kind:`project_center`}:{kind:`settings`,relayProjectRef:e}}return{kind:`project_center`}}function $n(e){return`${e} | Tutti`}function er(e){let t=e?.trim();return t===void 0||t.length===0?null:t}function tr(e,t){let n=er(t);switch(e.kind){case`home`:case`local_console_account_gate`:return`Tutti`;case`local_console`:return $n(`Projects`);case`setup`:return $n(`Project Setup`);case`join`:return $n(n===null?`Join a project`:`Join ${n}`);case`workspace`:case`worklist`:case`references`:case`artifacts`:case`skills`:case`timeline`:case`settings`:return $n(n??`Workspace`);case`project_center`:case`project_open`:return $n(`Projects`)}}function nr({route:e,projectDisplayName:t}){let n=tr(e,t);return(0,F.useEffect)(()=>{document.title=n},[n]),null}var rr=`en-US`;function ir(e){if(e===void 0)return`Never`;let t=new Date(e);return Number.isFinite(t.getTime())?t.toLocaleString(rr,{month:`short`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`}):e}function ar(e){if(e===void 0)return`Unknown`;let t=new Date(e);return Number.isFinite(t.getTime())?t.toLocaleDateString(rr,{month:`short`,day:`numeric`,year:`numeric`}):`Unknown`}function or(e,t=new Date){let n=new Date(e);if(!Number.isFinite(n.getTime()))return e;if(n.getFullYear()===t.getFullYear()&&n.getMonth()===t.getMonth()&&n.getDate()===t.getDate()){let e=Math.max(0,Math.floor((t.getTime()-n.getTime())/6e4));return e<1?`now`:e<60?`${e}m`:`${Math.floor(e/60)}h`}return n.toLocaleString(rr,{month:`short`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`})}function sr(e){return e.toString().padStart(2,`0`)}function cr(e){if(e===void 0)return`Never`;let t=new Date(e);return Number.isFinite(t.getTime())?`${t.getFullYear()}-${sr(t.getMonth()+1)}-${sr(t.getDate())} ${sr(t.getHours())}:${sr(t.getMinutes())}`:e}function lr(e){let t=new Date(e);return Number.isFinite(t.getTime())?t.toLocaleTimeString(rr,{hour:`2-digit`,minute:`2-digit`}):``}function ur(e){switch(e){case`online`:return`Host online`;case`offline`:return`Host offline`;case`unknown`:return`Host unknown`}}function dr(e){let t=e.relay_project.host_status;return{relayProjectRef:e.relay_project.relay_project_ref,displayName:e.relay_project.display_name,hostStatus:t,membershipLabel:e.membership.label===`owner`?`Owner`:`Member`,lastOpenedLabel:ir(e.last_opened_at),canOpen:t===`online`}}var fr=[`green`,`blue`,`yellow`,`neutral`];function pr(e){if(typeof Intl<`u`&&`Segmenter`in Intl){let t=new Intl.Segmenter(void 0,{granularity:`grapheme`});return Array.from(t.segment(e),e=>e.segment)}return Array.from(e)}function mr(e,t){return pr(e).slice(0,t).join(``)}function hr(e){return e.trim().replace(/\s+/gu,` `)}function gr(e){return pr(e)[0]??``}function _r(e){let t=hr(e).split(` `).filter(Boolean),n=(t.length>=2?`${gr(t[0]??``)}${gr(t[t.length-1]??``)}`:mr(t[0]??e,2)).trim().toLocaleUpperCase(`en-US`);return n===``?`?`:n}function vr(e){return{kind:`initials`,initials:_r(br(e)),color:`blue`}}function yr(e){return e.author.ref===void 0||!zt(e.author.ref,Ft.relayAccount)?null:{kind:`image`,image_url:`/api/v1/accounts/${encodeURIComponent(e.author.ref)}/avatar`,initials:_r(br(e)),color:`blue`}}function br(e){return e.author.display_name??(e.author.kind===`human`?`Member`:`Tutti`)}function xr(e,t={}){if(e.author.kind===`agent`||e.author.kind===`system`)return{avatarKind:`tutti`,online:!1};if(e.author.avatar!==void 0)return{avatarKind:`member`,avatar:e.author.avatar,online:t[e.author.ref??``]?.online??!1};let n=e.author.ref===void 0?void 0:t[e.author.ref];return n===void 0?{avatarKind:`member`,avatar:yr(e)??vr(e),online:!1}:{avatarKind:`member`,avatar:n.avatar,online:n.online??!1}}function Sr(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function Cr(e,t={}){let n={id:e.id,messageKind:e.message_kind,author:br(e),body:e.body,createdAt:e.created_at,time:lr(e.created_at),...xr(e,t.authorProfiles)};if(e.refs?.workflow_ref!==void 0&&(n.workflowRef=e.refs.workflow_ref),e.refs?.reference_file!==void 0){let r=e.refs.reference_file;n.referenceFile={path:r.path,name:r.name,category:r.category,...r.media_type===void 0?{}:{mediaType:r.media_type},sizeBytes:r.size_bytes,...r.category===`image`&&r.blob_oid!==void 0&&t.referenceAssetUrl!==void 0?{imageUrl:t.referenceAssetUrl(r.path,`thumbnail`,r.blob_oid)}:{}}}if(e.clarification_card!==void 0&&(n.clarificationCard={threadId:e.clarification_card.thread_id,roundId:e.clarification_card.round_id,...e.clarification_card.title===void 0?{}:{title:e.clarification_card.title},summary:e.clarification_card.summary,status:e.clarification_card.status,isCurrentRound:e.clarification_card.is_current_round}),e.refs?.task_result!==void 0){let r=e.refs.task_result,i=r.latest_run_result_id===void 0?r.retry_action:t.taskRetryState?.(r.task_id,r.latest_run_result_id,r.retry_action)??r.retry_action;n.taskResult={title:r.title,status:r.status,taskId:r.task_id,taskTitle:r.task_title,summary:r.summary,...r.module_name===void 0?{}:{moduleName:r.module_name},...r.latest_run_result_id===void 0?{}:{latestRunResultId:r.latest_run_result_id},...r.final_note===void 0?{}:{finalNote:r.final_note},...r.generated_files===void 0?{}:{generatedFiles:r.generated_files.map(e=>({path:e.path,name:e.name,meta:e.media_type===void 0?Sr(e.size_bytes):`${e.media_type} · ${Sr(e.size_bytes)}`,...e.group===void 0?{}:{group:e.group}}))},...r.error_code===void 0?{}:{errorCode:r.error_code},...i===void 0?{}:{retryState:i}}}return n}function wr(e){return e.state===`none`?null:{threadId:e.thread.id,roundId:e.round.id,cardMessageId:e.round.card_message_id,title:e.round.request_payload.title??`Clarification`,summary:e.round.request_payload.summary,request:e.round.request_payload.request,ownerLabel:e.thread.owner.kind===`task`?`Task-bound clarification ${e.thread.owner.task_id}`:`Workflow clarification`,status:e.round.status}}function Tr(e){let t=e.resolution.decided_by,n=t===void 0?``:` by ${t.display_name}`;return`${e.resolution.label}${n}`}function Er(e){return e.resolution.outcome===`accepted`?{status:`resolved`,statusLabel:`resolved`}:{status:`expired`,statusLabel:e.resolution.outcome}}function Dr(e){return e.reason??e.summary}function Or(e){if(e===void 0||e.state===`none`)return null;let t=e.request;return e.state===`pending`?{approvalId:t.approval_id,title:t.title,summary:Dr(t),requestedAt:t.requested_at,...t.command?.text===void 0?{}:{detailLabel:`Codex wants to run`,detail:t.command.text,detailCode:!0},status:`pending`,statusLabel:`needs approval`,decisions:t.decisions.map(e=>({decisionId:e.decision_id,label:e.label,tone:e.tone}))}:{approvalId:t.approval_id,title:t.title,summary:Dr(t),requestedAt:t.requested_at,...t.command?.text===void 0?{}:{detailLabel:`Codex wants to run`,detail:t.command.text,detailCode:!0},...Er(e),decisions:[],resolutionLabel:Tr(e)}}function kr(e){return e.state===`ready`?[e.topic,e.background_summary,...e.current_consensus,...e.open_questions,...e.task_changes].some(e=>e.trim().length>0):!1}function Ar(e){let t=e.map(e=>e.trim()).filter(e=>e.length>0).join(`; `);return t.length===0?void 0:t}function jr(e){return[{id:`scratchpad-confirmed`,label:`CONFIRMED`,rows:e.current_consensus.map(e=>({kind:`confirmed`,text:e}))},{id:`scratchpad-questions`,label:`OPEN QUESTIONS`,rows:e.open_questions.map(e=>({kind:`question`,text:e}))}].filter(e=>e.rows.length>0)}function Mr(e){let t=Ar(e.task_changes);return{key:`current:${e.updated_at??`unknown`}`,title:e.topic||`Current Scratchpad`,summary:e.background_summary||`No background summary`,submitAvailable:kr(e),sections:jr(e),...e.updated_at===void 0?{}:{updatedLabel:or(e.updated_at)},...t===void 0?{}:{footerNote:{text:t,tone:`neutral`}}}}function Nr(e){return{key:`submitted:${e.submitted_by_workflow_ref??e.submitted_at??`current`}`,title:e.topic||`Current Scratchpad`,summary:e.background_summary||`No background summary`,submitAvailable:!1,sections:jr(e),submitted:!0,updatedLabelPrefix:`Submitted`,...e.submitted_at===void 0?e.updated_at===void 0?{}:{updatedLabel:or(e.updated_at)}:{updatedLabel:or(e.submitted_at)}}}function Pr(e){return{key:`receipt:${e.workflow_ref}`,title:e.topic||`Current Scratchpad`,summary:e.background_summary||`No background summary`,submitAvailable:!1,sections:jr(e),submitted:!0,updatedLabelPrefix:`Submitted`,updatedLabel:or(e.submitted_at),...e.compiled_tasks===void 0||e.compiled_tasks.length===0?{}:{compiledTasks:e.compiled_tasks.map(e=>({taskId:e.task_id,title:e.title,moduleName:e.module_name,status:e.status}))}}}function Fr(e){return[...e].reverse().map(Pr)}function Ir(e){let t=Fr(e.receipts);return e.state===`ready`?[...t,Mr(e)]:e.state===`submitted`&&t.length===0?[Nr(e)]:t}function Lr(e){let t=e.refs?.scratchpad_source;return t===void 0?e.scope.kind===`main_chat`?e.message_kind===`user_text`&&e.author.kind===`human`?!0:e.message_kind===`agent_text`&&e.author.kind===`agent`?e.refs?.workflow_ref===void 0&&e.refs?.activity_ref===void 0:!1:!1:t===`include`}function Rr(e,t){let n=e.updated_at??(e.state===`submitted`?e.submitted_at:void 0);return t.some(e=>Lr(e)?n===void 0||e.created_at>n:!1)}function zr(e,t=[]){let n=Rr(e,t),r=Ir(e),i=n?r.map((e,t)=>t===r.length-1?{...e,submitAvailable:!0}:e):r;if(i.length>0){let e=i[i.length-1];if(e===void 0)throw Error(`Scratchpad pages unexpectedly empty`);return{title:e.title,summary:e.summary,submitAvailable:e.submitAvailable,sections:e.sections,...e.updatedLabel===void 0?{}:{updatedLabel:e.updatedLabel},...e.updatedLabelPrefix===void 0?{}:{updatedLabelPrefix:e.updatedLabelPrefix},...e.footerNote===void 0?{}:{footerNote:e.footerNote},pages:i}}if(e.state!==`ready`)return{title:`Current Scratchpad`,summary:`Scratchpad empty. Discuss more, tutti together!.`,sections:[],submitAvailable:n};let a=Mr(e);return{...a,submitAvailable:a.submitAvailable||n}}function Br(e,t){let n=e.modules.map(e=>({label:e.module.name,rows:e.tasks.map(e=>({id:e.id,title:e.title,status:e.status,selected:e.id===t}))})).filter(e=>e.rows.length>0);return{modules:n,taskCount:n.reduce((e,t)=>e+t.rows.length,0)}}function Vr(e){return e.modules.flatMap(e=>e.tasks)}function Hr(e){return e.replace(/\s+/gu,` `).trim()}function Ur(e,t=`None`){let n=Hr(e??``);return n.length===0?t:n}function Wr(e){let t=e.map(Hr).filter(e=>e.length>0);return t.length===0?`None`:t.join(`
|
|
10
10
|
`)}function Gr(e){return e.status===`promoted`?`promoted`:e.status===`not_promoted`?`not promoted`:`not attempted`}function Kr(e){return e.result_kind===`needs_human`?`needs human`:e.result_kind===`failed`?`failed`:e.result_kind===`finished`?e.outcome??`finished`:`none`}function qr(e){if(e.result_kind===`needs_human`)return`pending`;if(e.result_kind===`failed`)return`failed`;if(e.result_kind===`finished`)return e.outcome===`completed`?`done`:`failed`}function Jr(e){return e.result_kind===`needs_human`?`pending`:e.result_kind===`failed`?`failed`:e.outcome===`completed`?`done`:`failed`}function Yr(e){return e.result_kind===`needs_human`?`Needs human`:e.result_kind===`failed`?`Failed`:e.outcome===`completed`?`Finished`:`Finished with failure`}function Xr(e){return{id:e.id,title:Yr(e),meta:cr(e.created_at),status:Jr(e)}}function Zr(e,t){if(e===void 0)return;let n=e.detail.result,r=e.detail.contract,i=qr(n),a=[i===void 0?{label:`STATUS`,value:Kr(n)}:{label:`STATUS`,value:Kr(n),status:i}];return n.updated_at!==void 0&&a.push({label:`UPDATED`,value:cr(n.updated_at)}),a.push({label:`RESULT`,value:Ur(n.summary,`No run result yet.`)}),n.checks!==void 0&&a.push({label:`CHECKS`,value:n.checks}),n.docs!==void 0&&a.push({label:`DOCS`,value:n.docs}),n.promotion!==void 0&&a.push({label:`PROMOTE`,value:Gr(n.promotion)}),n.error_code!==void 0&&a.push({label:`ERROR`,value:n.error_code}),n.retryable!==void 0&&a.push({label:`RETRY`,value:n.retryable?`can retry`:`needs new scope`}),{taskId:e.task.id,title:e.task.title,status:e.task.status,summary:Ur(e.task.summary),contractRows:[{label:`GOAL`,value:r.goal||`None`},{label:`SCOPE`,value:Wr(r.scope)}],resultRows:a,evidenceRows:a,runResults:(t?.items??[]).map(Xr),...n.retry_action===void 0?{}:{retryAction:{state:n.retry_action}}}}var Qr=new Intl.DateTimeFormat(rr,{year:`numeric`,month:`short`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,hour12:!1}),$r={connected:`Connected`,reconnecting:`Reconnecting`,unavailable:`Unavailable`},ei={configured:`Configured`,invalid:`Needs attention`,not_configured:`Not configured`},ti={provider_auth_invalid:`API key is invalid`,provider_quota_or_billing_required:`Quota or billing needs attention`,provider_rate_limited:`Provider rate limit reached`,provider_model_unavailable:`Selected model is unavailable`,provider_network_error:`Provider could not be reached`,unknown:`Provider validation failed`};function ni(e){let t=new Date(e);return Number.isFinite(t.getTime())?Qr.format(t):e}function ri(e){return e===`owner`?`Owner`:`Member`}function ii(e){return e.status===`not_configured`?{status:ei[e.status]}:{status:ei[e.status],...e.default_model===void 0?{}:{model:e.default_model},...e.validated_at===void 0?{}:{lastValidated:ni(e.validated_at)},...e.status!==`invalid`||e.invalid_reason_code===void 0?{}:{issue:ti[e.invalid_reason_code]}}}function ai(e,t){let n=(t?.members??[]).map(e=>({key:e.account_ref,displayName:e.display_name,avatar:e.avatar}));return n.some(t=>t.key===e.account.account_ref)?n:[...n,{key:e.account.account_ref,displayName:e.account.display_name,avatar:e.account.avatar}]}function oi(e,t,n,r){return{connectionStatus:{label:$r[e.relay.status],tone:e.relay.status===`connected`?`live`:`warning`},project:{displayName:e.project.display_name,description:e.project.description??``,members:ai(t,r)},access:{...e.relay.join_url===void 0?{}:{inviteLink:e.relay.join_url},...e.relay.join_token_expires_at===void 0?{}:{inviteExpires:ni(e.relay.join_token_expires_at)},signedInAs:{displayName:t.account.display_name,avatar:t.account.avatar},role:ri(t.membership.label),joined:ni(t.membership.joined_at)},provider:ii(n),tutti:{version:e.server.version}}}var si=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),ci=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),li=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),ui=e=>{let t=li(e);return t.charAt(0).toUpperCase()+t.slice(1)},di={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},fi=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},pi=(0,F.createContext)({}),mi=()=>(0,F.useContext)(pi),hi=(0,F.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=mi()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,F.createElement)(`svg`,{ref:c,...di,width:t??l??di.width,height:t??l??di.height,stroke:e??f,strokeWidth:m,className:si(`lucide`,p,i),...!a&&!fi(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,F.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),z=(e,t)=>{let n=(0,F.forwardRef)(({className:n,...r},i)=>(0,F.createElement)(hi,{ref:i,iconNode:t,className:si(`lucide-${ci(ui(e))}`,`lucide-${e}`,n),...r}));return n.displayName=ui(e),n},gi=z(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),_i=z(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),vi=z(`at-sign`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M16 8v5a3 3 0 0 0 6 0v-1a10 10 0 1 0-4 8`,key:`7n84p3`}]]),yi=z(`audio-lines`,[[`path`,{d:`M2 10v3`,key:`1fnikh`}],[`path`,{d:`M6 6v11`,key:`11sgs0`}],[`path`,{d:`M10 3v18`,key:`yhl04a`}],[`path`,{d:`M14 8v7`,key:`3a1oy3`}],[`path`,{d:`M18 5v13`,key:`123xd1`}],[`path`,{d:`M22 10v3`,key:`154ddg`}]]),bi=z(`chart-column-big`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`rect`,{x:`15`,y:`5`,width:`4`,height:`12`,rx:`1`,key:`q8uenq`}],[`rect`,{x:`7`,y:`8`,width:`4`,height:`9`,rx:`1`,key:`sr5ea`}]]),xi=z(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),Si=z(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),Ci=z(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),wi=z(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),Ti=z(`circle-question-mark`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Ei=z(`circle-x`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),Di=z(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),Oi=z(`clock-3`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 6v6h4`,key:`135r8i`}]]),ki=z(`cloud-upload`,[[`path`,{d:`M12 13v8`,key:`1l5pq0`}],[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`m8 17 4-4 4 4`,key:`1quai1`}]]),Ai=z(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),ji=z(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),Mi=z(`file-check`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m9 15 2 2 4-4`,key:`1grp1n`}]]),Ni=z(`file-lock`,[[`path`,{d:`M4 9.8V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3`,key:`1432pc`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M9 17v-2a2 2 0 0 0-4 0v2`,key:`168m41`}],[`rect`,{width:`8`,height:`5`,x:`3`,y:`17`,rx:`1`,key:`o8vfew`}]]),Pi=z(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),Fi=z(`file`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]),Ii=z(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]),Li=z(`folder`,[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]),Ri=z(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),zi=z(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),Bi=z(`key-round`,[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]),Vi=z(`link`,[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]),Hi=z(`list-checks`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]),Ui=z(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),Wi=z(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),Gi=z(`message-circle-question-mark`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Ki=z(`messages-square`,[[`path`,{d:`M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z`,key:`1n2ejm`}],[`path`,{d:`M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1`,key:`1qfcsi`}]]),qi=z(`minus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]),Ji=z(`monitor-play`,[[`path`,{d:`M15.033 9.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56V7.648a.645.645 0 0 1 .967-.56z`,key:`vbtd3f`}],[`path`,{d:`M12 17v4`,key:`1riwvh`}],[`path`,{d:`M8 21h8`,key:`1ev6f3`}],[`rect`,{x:`2`,y:`3`,width:`20`,height:`14`,rx:`2`,key:`x3v2xh`}]]),Yi=z(`notepad-text`,[[`path`,{d:`M8 2v4`,key:`1cmpym`}],[`path`,{d:`M12 2v4`,key:`3427ic`}],[`path`,{d:`M16 2v4`,key:`4m81vk`}],[`rect`,{width:`16`,height:`18`,x:`4`,y:`4`,rx:`2`,key:`1u9h20`}],[`path`,{d:`M8 10h6`,key:`3oa6kw`}],[`path`,{d:`M8 14h8`,key:`1fgep2`}],[`path`,{d:`M8 18h5`,key:`17enja`}]]),Xi=z(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),Zi=z(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),Qi=z(`power`,[[`path`,{d:`M12 2v10`,key:`mnfbl`}],[`path`,{d:`M18.4 6.6a9 9 0 1 1-12.77.04`,key:`obofu9`}]]),$i=z(`radio-tower`,[[`path`,{d:`M4.9 16.1C1 12.2 1 5.8 4.9 1.9`,key:`s0qx1y`}],[`path`,{d:`M7.8 4.7a6.14 6.14 0 0 0-.8 7.5`,key:`1idnkw`}],[`circle`,{cx:`12`,cy:`9`,r:`2`,key:`1092wv`}],[`path`,{d:`M16.2 4.8c2 2 2.26 5.11.8 7.47`,key:`ojru2q`}],[`path`,{d:`M19.1 1.9a9.96 9.96 0 0 1 0 14.1`,key:`rhi7fg`}],[`path`,{d:`M9.5 18h5`,key:`mfy3pd`}],[`path`,{d:`m8 22 4-11 4 11`,key:`25yftu`}]]),ea=z(`radio`,[[`path`,{d:`M16.247 7.761a6 6 0 0 1 0 8.478`,key:`1fwjs5`}],[`path`,{d:`M19.075 4.933a10 10 0 0 1 0 14.134`,key:`ehdyv1`}],[`path`,{d:`M4.925 19.067a10 10 0 0 1 0-14.134`,key:`1q22gi`}],[`path`,{d:`M7.753 16.239a6 6 0 0 1 0-8.478`,key:`r2q7qm`}],[`circle`,{cx:`12`,cy:`12`,r:`2`,key:`1c9p78`}]]),ta=z(`refresh-cw`,[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]),na=z(`rocket`,[[`path`,{d:`M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5`,key:`qeys4`}],[`path`,{d:`M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09`,key:`u4xsad`}],[`path`,{d:`M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z`,key:`676m9`}],[`path`,{d:`M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05`,key:`92ym6u`}]]),ra=z(`rotate-cw`,[[`path`,{d:`M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8`,key:`1p45f6`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}]]),ia=z(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]),aa=z(`send-horizontal`,[[`path`,{d:`M3.714 3.048a.498.498 0 0 0-.683.627l2.843 7.627a2 2 0 0 1 0 1.396l-2.842 7.627a.498.498 0 0 0 .682.627l18-8.5a.5.5 0 0 0 0-.904z`,key:`117uat`}],[`path`,{d:`M6 12h16`,key:`s4cdu5`}]]),oa=z(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),sa=z(`settings-2`,[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),ca=z(`shield-alert`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]),la=z(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),ua=z(`square-dashed`,[[`path`,{d:`M5 3a2 2 0 0 0-2 2`,key:`y57alp`}],[`path`,{d:`M19 3a2 2 0 0 1 2 2`,key:`18rm91`}],[`path`,{d:`M21 19a2 2 0 0 1-2 2`,key:`1j7049`}],[`path`,{d:`M5 21a2 2 0 0 1-2-2`,key:`sbafld`}],[`path`,{d:`M9 3h1`,key:`1yesri`}],[`path`,{d:`M9 21h1`,key:`15o7lz`}],[`path`,{d:`M14 3h1`,key:`1ec4yj`}],[`path`,{d:`M14 21h1`,key:`v9vybs`}],[`path`,{d:`M3 9v1`,key:`1r0deq`}],[`path`,{d:`M21 9v1`,key:`mxsmne`}],[`path`,{d:`M3 14v1`,key:`vnatye`}],[`path`,{d:`M21 14v1`,key:`169vum`}]]),da=z(`square`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]),fa=z(`tags`,[[`path`,{d:`M13.172 2a2 2 0 0 1 1.414.586l6.71 6.71a2.4 2.4 0 0 1 0 3.408l-4.592 4.592a2.4 2.4 0 0 1-3.408 0l-6.71-6.71A2 2 0 0 1 6 9.172V3a1 1 0 0 1 1-1z`,key:`16rjxf`}],[`path`,{d:`M2 7v6.172a2 2 0 0 0 .586 1.414l6.71 6.71a2.4 2.4 0 0 0 3.191.193`,key:`178nd4`}],[`circle`,{cx:`10.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`12ikhr`}]]),pa=z(`terminal`,[[`path`,{d:`M12 19h8`,key:`baeox8`}],[`path`,{d:`m4 17 6-6-6-6`,key:`1yngyt`}]]),ma=z(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),ha=z(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),ga=z(`wifi-off`,[[`path`,{d:`M12 20h.01`,key:`zekei9`}],[`path`,{d:`M8.5 16.429a5 5 0 0 1 7 0`,key:`1bycff`}],[`path`,{d:`M5 12.859a10 10 0 0 1 5.17-2.69`,key:`1dl1wf`}],[`path`,{d:`M19 12.859a10 10 0 0 0-2.007-1.523`,key:`4k23kn`}],[`path`,{d:`M2 8.82a15 15 0 0 1 4.177-2.643`,key:`1grhjp`}],[`path`,{d:`M22 8.82a15 15 0 0 0-11.288-3.764`,key:`z3jwby`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),_a=z(`workflow`,[[`rect`,{width:`8`,height:`8`,x:`3`,y:`3`,rx:`2`,key:`by2w9f`}],[`path`,{d:`M7 11v4a2 2 0 0 0 2 2h4`,key:`xkn7yn`}],[`rect`,{width:`8`,height:`8`,x:`13`,y:`13`,rx:`2`,key:`1cgmvn`}]]),va=z(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);function B(...e){return e.filter(e=>typeof e==`string`&&e!==``).join(` `)}function ya({icon:e,watermark:t,tone:n=`neutral`,children:r,className:i,...a}){return(0,I.jsxs)(`div`,{className:B(`empty-state`,t===void 0?void 0:`has-watermark`,`is-${n}`,i),...a,children:[t===void 0?null:(0,I.jsx)(`span`,{className:`empty-state-watermark`,"aria-hidden":`true`,children:t}),e===void 0?null:(0,I.jsx)(`span`,{className:`empty-state-icon`,children:e}),(0,I.jsx)(`p`,{children:r})]})}function ba({count:e=3,className:t,...n}){return(0,I.jsx)(`div`,{className:B(`loading-lines`,t),"aria-label":`Loading`,...n,children:Array.from({length:e}).map((e,t)=>(0,I.jsx)(`span`,{},t))})}function xa({tone:e}){switch(e){case`loading`:return(0,I.jsx)(Ui,{className:`is-spinning`,"aria-hidden":`true`});case`success`:return(0,I.jsx)(wi,{"aria-hidden":`true`});case`error`:return(0,I.jsx)(Ei,{"aria-hidden":`true`});case`warning`:return(0,I.jsx)(ha,{"aria-hidden":`true`});case`info`:return(0,I.jsx)(zi,{"aria-hidden":`true`})}}function Sa(e){return e===`error`||e===`warning`?`alert`:`status`}function Ca(e,t){return e===void 0?t:{...t,"--notice-duration-ms":`${e}ms`}}function wa({tone:e,title:t,message:n,durationMs:r,persistent:i=e===`loading`,dismissible:a=e!==`loading`,dismissLabel:o=`Dismiss notification`,onDismiss:s,className:c,role:l,"aria-live":u,style:d,...f}){let p=a&&s!==void 0;return(0,I.jsxs)(`article`,{className:B(`notice-toast`,`is-${e}`,i?`is-persistent`:void 0,c),role:l??Sa(e),"aria-live":u??(e===`error`||e===`warning`?`assertive`:`polite`),style:Ca(r,d),...f,children:[(0,I.jsx)(`span`,{className:`notice-toast-icon`,children:(0,I.jsx)(xa,{tone:e})}),(0,I.jsxs)(`span`,{className:`notice-toast-main`,children:[(0,I.jsx)(`strong`,{children:t}),n===void 0?null:(0,I.jsx)(`span`,{children:n})]}),p?(0,I.jsx)(`button`,{className:`notice-toast-close`,type:`button`,"aria-label":o,onClick:s,children:(0,I.jsx)(va,{"aria-hidden":`true`})}):null]})}function Ta({notices:e,onDismiss:t,className:n,...r}){return(0,I.jsx)(`div`,{className:B(`notice-stack`,n),"aria-label":`Notifications`,...r,children:e.map(e=>(0,I.jsx)(wa,{tone:e.tone,title:e.title,...e.message===void 0?{}:{message:e.message},...e.durationMs===void 0?{}:{durationMs:e.durationMs},...e.persistent===void 0?{}:{persistent:e.persistent},...e.dismissible===void 0?{}:{dismissible:e.dismissible},...t===void 0?{}:{onDismiss:()=>t(e.id)}},e.id))})}function Ea(e,t,n){return Math.min(Math.max(e,t),n)}function Da({pageCount:e,currentPage:t,maxVisible:n=7,onPageChange:r,pageAriaLabel:i,className:a,style:o,...s}){let c=Number.isFinite(e)?Math.max(0,Math.floor(e)):0;if(c===0)return null;let l=Math.min(c,Number.isFinite(n)?Math.max(1,Math.floor(n)):1),u=Number.isFinite(t)?Ea(Math.floor(t),0,c-1):0,d=Ea(u-Math.floor(l/2),0,c-l),f=u>0&&r!==void 0,p=u<c-1&&r!==void 0,m={...o,"--dot-pager-visible-count":l,"--dot-pager-window-start":d};return(0,I.jsxs)(`nav`,{className:B(`dot-pager`,a),style:m,...s,children:[(0,I.jsx)(`button`,{className:`dot-pager-arrow`,type:`button`,"aria-label":`Previous page`,disabled:!f,onClick:()=>r?.(u-1),children:(0,I.jsx)(`span`,{"aria-hidden":`true`,children:`<`})}),(0,I.jsx)(`div`,{className:`dot-pager-viewport`,children:(0,I.jsx)(`div`,{className:`dot-pager-track`,children:Array.from({length:c},(e,t)=>{let n=t===u,a=t>=d&&t<d+l,o=i?.(t)??`Page ${t+1}`;return(0,I.jsx)(`button`,{className:B(`dot-pager-page`,n&&`is-current`),type:`button`,"aria-label":o,"aria-current":n?`page`:void 0,"aria-hidden":a?void 0:!0,disabled:r===void 0,tabIndex:a?0:-1,onClick:()=>r?.(t),children:(0,I.jsx)(`span`,{"aria-hidden":`true`})},t)})})}),(0,I.jsx)(`button`,{className:`dot-pager-arrow`,type:`button`,"aria-label":`Next page`,disabled:!p,onClick:()=>r?.(u+1),children:(0,I.jsx)(`span`,{"aria-hidden":`true`,children:`>`})})]})}function Oa({kicker:e,title:t,icon:n,action:r,children:i,className:a,...o}){return(0,I.jsxs)(`article`,{className:B(`panel`,a),...o,children:[(0,I.jsxs)(`header`,{className:`panel-header`,children:[(0,I.jsxs)(`div`,{className:`panel-title`,children:[n===void 0?null:(0,I.jsx)(ka,{icon:n}),(0,I.jsxs)(`div`,{children:[e===void 0?null:(0,I.jsx)(`p`,{className:`field-label`,children:e}),(0,I.jsx)(`h3`,{children:t})]})]}),r===void 0?null:(0,I.jsx)(`div`,{className:`panel-actions`,children:r})]}),i]})}function ka({icon:e,className:t,...n}){return(0,I.jsx)(`span`,{className:B(`icon-tile`,t),...n,children:e})}var Aa=`modulepreload`,ja=function(e){return`/`+e},Ma={},Na=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=ja(t,n),t in Ma)return;Ma[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:Aa,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Pa,Fa;function V(){if(Pa===void 0)throw Error(`VexFlow has not been loaded`);return Pa}function Ia(){return Pa===void 0?(Fa??=Na(()=>import(`./vexflow-bravura-DEW_BI-z.js`).then(async e=>(typeof document<`u`&&document.fonts!==void 0&&await Promise.allSettled([document.fonts.load(`30pt Bravura`),document.fonts.load(`30pt Academico`),document.fonts.load(`bold 30pt Academico`)]),e.VexFlow.setFonts(`Bravura`,`Academico`),Pa=e,e)),[]).catch(e=>{throw Fa=void 0,e}),Fa):Promise.resolve(Pa)}var La=12,Ra=42,za=10,Ba=8,Va=30,Ha=18,Ua=[`c`,`d`,`e`,`f`,`g`,`a`,`b`],Wa=30,Ga={whole:`w`,half:`h`,quarter:`q`,eighth:`8`,sixteenth:`16`,"thirty-second":`32`},Ka={"double-flat":`bb`,flat:`b`,natural:`n`,sharp:`#`,"double-sharp":`##`},qa={[-2]:`bb`,[-1]:`b`,0:``,1:`#`,2:`##`},Ja={staccato:`a.`,tenuto:`a-`,accent:`a>`,marcato:`a^`,fermata:`a@a`},Ya=[`Cb`,`Gb`,`Db`,`Ab`,`Eb`,`Bb`,`F`,`C`,`G`,`D`,`A`,`E`,`B`,`F#`,`C#`];function Xa(e){return Math.max(-7,Math.min(7,Math.trunc(e??0)))}function Za(e){return Ya[Xa(e)+7]??`C`}function Qa(e){return(e.openingBarline===void 0?0:La)+(e.openingClef===void 0?0:Ra)+(e.keySignatureFifths===void 0?0:za+Math.abs(Xa(e.keySignatureFifths))*Ba)+(e.timeSignature===void 0?0:Va)}function $a({units:e,edgePadding:t=20,horizontalSpacingScale:n=1,unitSpacing:r=52,openingClef:i,openingBarline:a,keySignatureFifths:o,timeSignature:s}){let c=Number.isFinite(n)&&n>0?n:1,l=e.reduce((e,t)=>e+(t.width??r)*c,0),u=Qa({openingClef:i,openingBarline:a,keySignatureFifths:o,timeSignature:s});return Math.max(t*2+u+r*c,t*2+u+l)}function eo(e,t){return(e%t+t)%t}function to(e){let t=Wa+Math.trunc(e.staffStep),n=Ua[eo(t,Ua.length)]??`c`,r=Math.floor(t/Ua.length);return`${n}${qa[e.alteration??0]}/${r}`}function no(e){if(e===`up`)return V().Stem.UP;if(e===`down`)return V().Stem.DOWN}function ro(e,t){for(let n=0;n<(t??0);n+=1)V().Dot.buildAndAttach([e],{all:!0})}function io(e,t){e.addClass(`score-unit-mark`),e.setGroupStyle({fillStyle:`currentColor`,strokeStyle:`currentColor`}),e.setAttribute(`id`,`score-${t.replace(/[^a-zA-Z0-9_-]/gu,`-`)}-${e.getAttribute(`id`)}`)}function ao(e,t){let n=no(e.stemDirection),r=new(V()).StaveNote({keys:e.pitches.map(to),duration:Ga[e.duration],dots:e.dots??0,autoStem:e.stemDirection===void 0||e.stemDirection===`auto`,clef:t,...n===void 0?{}:{stemDirection:n}});return ro(r,e.dots),e.pitches.forEach((e,t)=>{e.displayAccidental!==void 0&&r.addModifier(new(V()).Accidental(Ka[e.displayAccidental]),t)}),e.articulations?.forEach(e=>{r.addModifier(new(V()).Articulation(Ja[e]).setPosition(V().Modifier.Position.ABOVE),0)}),r}function oo(e,t){let n=new(V()).GraceNote({keys:e.pitches.map(to),duration:Ga[e.duration],dots:e.dots??0,clef:t,slash:!0});return ro(n,e.dots),e.pitches.forEach((e,t)=>{e.displayAccidental!==void 0&&n.addModifier(new(V()).Accidental(Ka[e.displayAccidental]),t)}),n}function so(e){return e===`double`?V().Barline.type.DOUBLE:e===`final`?V().Barline.type.END:e===`repeat-start`?V().Barline.type.REPEAT_BEGIN:e===`repeat-end`?V().Barline.type.REPEAT_END:V().Barline.type.SINGLE}function co(e,t){if(e.kind===`rest`){let n=new(V()).StaveNote({keys:[t===`bass`?`d/3`:`b/4`],duration:Ga[e.duration],dots:e.dots??0,type:`r`,clef:t});return ro(n,e.dots),n}return e.kind===`clef`?new(V()).ClefNote(e.clef,`small`):e.kind===`key-signature`?new(V()).KeySigNote(Za(e.fifths)):e.kind===`time-signature`?new(V()).TimeSigNote(e.symbol===`common`?`C`:e.symbol===`cut`?`C|`:`${e.beats??4}/${e.beatType??4}`):e.kind===`dynamic`?new(V()).TextDynamics({duration:`q`,text:e.value,line:9}).setLine(9):e.kind===`text`?new(V()).TextNote({duration:`q`,text:e.text}).setLine(e.placement===`below`?9:-1):new(V()).GhostNote(`q`)}function lo(e,t){let n=t;return e.map((e,t)=>{let r=[],i=[],a=[],o=[];if(e.symbols.forEach(e=>{if(e.kind===`note`&&e.grace===!0){let t=oo(e,n);o.push(t),a.push(t);return}let t=e.kind===`note`?ao(e,n):co(e,n);o.length>0&&t instanceof V().StaveNote&&(t.addModifier(new(V()).GraceNoteGroup(o,!1),0),o.length=0),r.push(t),a.push(t),t instanceof V().StaveNote&&!t.isRest()&&i.push(t),e.kind===`clef`&&(n=e.clef)}),r.length===0){let e=new(V()).GhostNote(`q`);r.push(e),a.push(e)}let s=[...r];if(e.barAfter!==void 0){let t=new(V()).BarNote(so(e.barAfter));r.push(t),a.push(t)}return a.forEach(t=>io(t,e.id)),{unit:e,index:t,tickables:r,contentTickables:s,notes:i,elements:a}})}function uo(e){return e===`double`?V().Barline.type.DOUBLE:e===`single`?V().Barline.type.SINGLE:V().Barline.type.NONE}function H(e){return e===`final`?V().Barline.type.END:e===`bar`?V().Barline.type.SINGLE:V().Barline.type.NONE}function fo(e){return e.notes[0]}function po(e){let t=[],n=e.flatMap(e=>e.notes);return e.forEach(r=>{if(r.unit.beam===!0&&r.notes.length>1){let e=new(V()).Beam(r.notes,!0);io(e,r.unit.id),r.elements.push(e),t.push(e)}if(r.unit.tuplet!==void 0&&r.notes.length>1){let e=new(V()).Tuplet(r.notes,{numNotes:r.unit.tuplet,notesOccupied:2});io(e,r.unit.id),r.elements.push(e),t.push(e)}if(r.unit.slur===!0&&r.notes.length>1){let e=new(V()).Curve(r.notes[0],r.notes.at(-1),{position:V().Curve.Position.NEAR_TOP,positionEnd:V().Curve.Position.NEAR_TOP,openingDirection:`up`});io(e,r.unit.id),r.elements.push(e),t.push(e)}r.unit.symbols.forEach((e,i)=>{if(e.kind!==`note`||e.tieToNext!==!0)return;let a=r.unit.symbols.slice(0,i).filter(e=>e.kind===`note`&&e.grace!==!0).length,o=r.notes[a],s=o===void 0?-1:n.indexOf(o),c=s<0?void 0:n[s+1];if(o===void 0)return;let l=e.pitches.map((e,t)=>t),u=new(V()).StaveTie({firstNote:o,lastNote:c??null,firstIndexes:l,lastIndexes:l});io(u,r.unit.id),r.elements.push(u),t.push(u)}),r.unit.symbols.forEach(n=>{if(n.kind!==`hairpin`)return;let i=e.indexOf(r),a=fo(e[Math.max(0,i-1)]??r),o=fo(e[Math.min(e.length-1,i+1)]??r);if(a===void 0||o===void 0)return;let s=new(V()).StaveHairpin({firstNote:a,lastNote:o},n.direction===`crescendo`?V().StaveHairpin.type.CRESC:V().StaveHairpin.type.DECRESC).setPosition(V().Modifier.Position.BELOW).setRenderOptions({leftShiftPx:2,rightShiftPx:2,height:8,yShift:2});io(s,r.unit.id),r.elements.push(s),t.push(s)})}),t}function mo(e){return e.getSVGElement()}function ho(e){e.forEach(e=>{e.elements.forEach(t=>{let n=mo(t);n!==void 0&&(n.classList.add(`score-unit-mark`),n.dataset.scoreUnitId=e.unit.id,n.dataset.scoreUnitIndex=String(e.index),n.style.setProperty(`--score-unit-index`,String(e.index)))})})}function go(e,t,n,r){let i=Math.max(r,t.getNoteStartX()-8),a=n-r,o=e.map(e=>{let t=e.tickables[0];return t===void 0?i:t.getAbsoluteX()});return e.map((e,t)=>{let n=o[t-1],r=o[t]??i,s=o[t+1],c=t===0?i:((n??r)+r)/2,l=s===void 0?a:(r+s)/2;return{unit:e,start:c,end:Math.max(c+12,l)}})}function _o(e,t,n,r,i,a,o){let s=document.createElementNS(`http://www.w3.org/2000/svg`,`g`);s.classList.add(`score-unit-hitboxes`),go(t,n,r,i).forEach(({unit:e,start:t,end:n})=>{let r=document.createElementNS(`http://www.w3.org/2000/svg`,`rect`);r.classList.add(`score-unit-hitbox`),r.dataset.scoreUnitHitbox=``,r.dataset.scoreUnitId=e.unit.id,r.setAttribute(`x`,String(t)),r.setAttribute(`y`,`4`),r.setAttribute(`width`,String(n-t)),r.setAttribute(`height`,`104`),r.setAttribute(`rx`,`4`),a?(r.setAttribute(`role`,`button`),r.setAttribute(`tabindex`,`0`),r.setAttribute(`aria-label`,o?.(e.unit,e.index)??e.unit.label??`Score item ${e.index+1}`)):r.setAttribute(`aria-hidden`,`true`),s.append(r)}),e.append(s)}function vo(e,t){e.querySelectorAll(`[data-score-unit-id]`).forEach(e=>{let n=t!==void 0&&e.dataset.scoreUnitId===t;e.classList.toggle(`is-current`,n),e.classList.toggle(`is-muted`,t!==void 0&&!n),e.matches(`[data-score-unit-hitbox]`)&&(n?e.setAttribute(`aria-current`,`true`):e.removeAttribute(`aria-current`))})}async function yo(e,t){if(await Ia(),t.signal?.aborted===!0)return t.width;e.replaceChildren();let n=new(V()).Renderer(e,V().Renderer.Backends.SVG);n.resize(t.width,112);let r=n.getContext(),i=e.querySelector(`svg`);if(i===null)return t.width;i.classList.add(`score-staff-svg`);let a=new(V()).Stave(t.edgePadding,0,t.width-t.edgePadding*2).setBegBarType(uo(t.openingBarline)).setEndBarType(H(t.ending));t.openingClef!==void 0&&a.addClef(t.openingClef),t.keySignatureFifths!==void 0&&a.addKeySignature(Za(t.keySignatureFifths)),t.timeSignature!==void 0&&a.addTimeSignature(`${t.timeSignature[0]}/${t.timeSignature[1]}`),a.setStyle({strokeStyle:`var(--color-score-line)`,fillStyle:`currentColor`}),a.setDefaultLedgerLineStyle({strokeStyle:`currentColor`,lineWidth:2});let o=lo(t.units,t.openingClef??`treble`),s=o.flatMap(e=>e.tickables),c=new(V()).Voice({numBeats:4,beatValue:4}).setMode(V().Voice.Mode.SOFT).addTickables(s).setStave(a);c.preFormat();let l=po(o),u=o.flatMap(e=>e.contentTickables),d=u[0],f=u.at(-1),p=new(V()).Formatter().joinVoices([c]),m=Math.max(24,t.intrinsicWidth-a.getNoteStartX()-t.edgePadding),h=Math.max(m,p.preCalculateMinTotalWidth([c])),g=Math.max(t.width,Math.ceil(a.getNoteStartX()+h+t.edgePadding));g!==t.width&&(n.resize(g,112),a.setWidth(g-t.edgePadding*2)),p.format([c],h,{context:r,stave:a});let _=f?.getBoundingBox(),v=_===void 0?a.getNoteStartX():_.getX()+_.getW(),y=t.intrinsicWidth-t.edgePadding,b=d?.getBoundingBox();if(t.trimTrailingSpace&&b!==void 0&&v>b.getX()&&v+1<y){let e=b.getX(),t=(y-e)/(v-e);s.forEach(n=>{let r=n.getAbsoluteX();n.setXShift(n.getXShift()+(r-e)*(t-1))}),v=y}a.setContext(r).drawWithStyle(),c.draw(r,a),l.forEach(e=>e.setContext(r).draw());let x=Math.ceil(Math.max(a.getNoteStartX()+24,v)+Ha+t.edgePadding),S=t.trimTrailingSpace&&t.ending===`none`?Math.min(g,x):g;return n.resize(S,112),i.style.width=`100%`,i.style.height=`100%`,i.setAttribute(`viewBox`,`0 0 ${S} 112`),i.setAttribute(`preserveAspectRatio`,`xMinYMid meet`),ho(o),_o(i,o,a,S,t.edgePadding,t.interactive,t.unitAriaLabel),S}function bo(e,t=20,n=52,r,i,a,o,s=1){return $a({units:e,edgePadding:t,horizontalSpacingScale:s,unitSpacing:n,openingClef:r,openingBarline:i,keySignatureFifths:a,timeSignature:o})}function xo(e){if(e instanceof Element)return e.closest(`[data-score-unit-hitbox]`)?.dataset.scoreUnitId}function So({units:e,activeUnitId:t,ending:n=`none`,edgePadding:r=20,horizontalSpacingScale:i=1,keySignatureFifths:a,minimumWidth:o=0,openingBarline:s,openingClef:c,reveal:l=!1,scale:u=1,trimTrailingSpace:d=!1,timeSignature:f,unitSpacing:p=52,onLayoutWidthChange:m,onUnitSelect:h,unitAriaLabel:g,className:_,style:v,onClick:y,onKeyDown:b,...x}){let S=(0,F.useRef)(null),C=(0,F.useRef)(t),w=(0,F.useRef)(m);C.current=t,w.current=m;let T=Number.isFinite(u)&&u>0?u:1,E=Number.isFinite(i)&&i>0?i:1,ee=bo(e,r,p,c,s,a,f,E),D=Math.max(ee,o/T),[O,k]=(0,F.useState)(D),A=O*T,j=112*T,M=h!==void 0;return(0,F.useEffect)(()=>{let t=S.current;if(t===null)return;let i=new AbortController;return k(D),yo(t,{units:e,ending:n,edgePadding:r,intrinsicWidth:ee,width:D,trimTrailingSpace:d,openingBarline:s,openingClef:c,keySignatureFifths:a,timeSignature:f,interactive:M,unitAriaLabel:g,signal:i.signal}).then(e=>{i.signal.aborted||(k(e),w.current?.(e),vo(t,C.current))}),()=>{i.abort(),t.replaceChildren()}},[r,n,M,ee,a,s,c,f,d,g,e,D]),(0,F.useEffect)(()=>{let e=S.current;e!==null&&vo(e,t)},[t,e]),(0,I.jsx)(`div`,{className:B(`score-staff`,l&&`is-revealing`,_),"data-score-width":O,"data-score-scale":T,"data-score-horizontal-spacing-scale":E,onClick:e=>{if(y?.(e),e.defaultPrevented||h===void 0)return;let t=xo(e.target);t!==void 0&&h(t)},onKeyDown:e=>{if(b?.(e),e.defaultPrevented||h===void 0||e.key!==`Enter`&&e.key!==` `)return;let t=xo(e.target);t!==void 0&&(e.preventDefault(),h(t))},style:{width:A,height:j,...v},...x,children:(0,I.jsx)(`div`,{className:`score-staff-engraving`,ref:S})})}var Co={andante:34,moderato:40,allegro:46},wo=82/112,To=68/112,Eo=1/wo,Do=1/To,Oo=320,ko=420,Ao=240,jo=640;function Mo(e,t,n){return Math.min(n,Math.max(t,e))}function No(e,t){return e===void 0||!Number.isFinite(e)||e<=0?Co[t]:Mo(18+e*.3,30,60)}function Po(e,t,n,r,i,a){if(e.length===0)return 1;let o=e=>bo(e,0,void 0,n,r,i,a,Eo),s=o(e),c=o([...e,...e])-s;if(c<=0)return 1;let l=240*t/wo;return Math.max(1,1+Math.ceil((l-s)/c))}function Fo(e,t){return Array.from({length:t},(t,n)=>e.map((t,r)=>{let{barAfter:i,...a}=t,o=r===e.length-1&&(i===`final`||i===`repeat-end`)?`single`:i;return{...a,id:`${t.id}:running-${n+1}`,...o===void 0?{}:{barAfter:o}}})).flat()}function Io({units:e,state:t=`running`,tempo:n=`moderato`,playbackBpm:r,openingBarline:i=`double`,openingClef:a=`treble`,keySignatureFifths:o,timeSignature:s,label:c,className:l,style:u,...d}){let f=No(r,n),p=(0,F.useMemo)(()=>Po(e,f,a,i,o,s),[o,i,a,f,s,e]),m=(0,F.useMemo)(()=>Fo(e,p),[p,e]),h=bo(m,0,void 0,a,i,o,s,Eo)*wo,[g,_]=(0,F.useState)(h),v=Math.max(240,g/f),y=(0,F.useCallback)(e=>_(e*wo),[]);(0,F.useEffect)(()=>_(h),[h]);let b=e.slice(-Math.min(8,e.length)),x=e.length===0?Oo:ko+Ao+jo,S={...u,"--score-loop-duration":`${v}s`,"--score-scroll-delay":`${x}ms`,"--score-note-reveal-delay":`${ko}ms`};return(0,I.jsx)(`div`,{className:B(`running-score`,`is-${t}`,`is-${n}`,l),role:`img`,"aria-label":c,"data-score-loop-repetitions":p,"data-score-loop-units":m.length,style:S,...d,children:t===`complete`?(0,I.jsx)(`div`,{className:`running-score-coda`,children:(0,I.jsx)(So,{units:b,edgePadding:0,ending:`final`,openingBarline:i,openingClef:a,horizontalSpacingScale:Eo,...o===void 0?{}:{keySignatureFifths:o},...s===void 0?{}:{timeSignature:s},scale:wo,trimTrailingSpace:!0,"aria-hidden":`true`})}):(0,I.jsxs)(`div`,{className:`running-score-track`,"aria-hidden":`true`,children:[(0,I.jsx)(So,{units:m,edgePadding:0,ending:`final`,openingBarline:i,openingClef:a,horizontalSpacingScale:Eo,...o===void 0?{}:{keySignatureFifths:o},...s===void 0?{}:{timeSignature:s},scale:wo,trimTrailingSpace:!0,onLayoutWidthChange:y,reveal:!0}),(0,I.jsx)(So,{units:m,edgePadding:0,ending:`final`,openingBarline:i,openingClef:a,horizontalSpacingScale:Eo,...o===void 0?{}:{keySignatureFifths:o},...s===void 0?{}:{timeSignature:s},scale:wo,trimTrailingSpace:!0,onLayoutWidthChange:y,reveal:!0})]})})}function Lo({title:e=`Tutti is working on`,stageLabel:t,stageDetail:n,stageDetailPrefix:r,stageActivity:i,detailMode:a=`static`,elapsedLabel:o,metrics:s,scoreLabel:c,units:l,state:u=`running`,tempo:d=`moderato`,playbackBpm:f,openingBarline:p=`double`,openingClef:m=`treble`,keySignatureFifths:h,timeSignature:g,showLoader:_=u===`running`||u===`handoff`,className:v,...y}){let b=u===`paused`,x=_||b;return(0,I.jsx)(Oa,{title:e,icon:(0,I.jsx)(_a,{"aria-hidden":`true`}),className:B(`execution-progress-panel`,`execution-score-card`,`is-score-${u}`,v),...y,children:(0,I.jsxs)(`div`,{className:`execution-progress-body`,children:[(0,I.jsxs)(`div`,{className:B(`execution-progress-step`,`execution-score-stage`,`is-${u}`,_&&`has-loader`,x&&`has-marker`),children:[x?(0,I.jsx)(`span`,{className:B(`execution-progress-marker`,b?`is-pending`:`is-running`),"aria-hidden":`true`,children:b?(0,I.jsx)(ha,{}):(0,I.jsx)(Ui,{})}):null,(0,I.jsxs)(`span`,{className:`execution-progress-step-content`,children:[(0,I.jsxs)(`span`,{className:`execution-progress-step-title`,children:[(0,I.jsx)(`span`,{className:`execution-progress-step-label`,children:t}),o===void 0?null:(0,I.jsxs)(`span`,{className:`execution-progress-step-elapsed`,children:[` (`,o,`)`]})]}),n===void 0&&r===void 0?null:(0,I.jsxs)(`span`,{className:`execution-progress-step-detail`,children:[r===void 0?null:(0,I.jsx)(`span`,{className:`execution-progress-step-detail-prefix`,children:r}),r===void 0||n===void 0?null:(0,I.jsx)(`span`,{className:`execution-progress-step-detail-separator`,"aria-hidden":`true`,children:` · `}),n===void 0?null:(0,I.jsx)(`span`,{className:B(a===`live`&&`execution-score-live-detail`),...a===`live`?{"aria-atomic":!0,"aria-live":`polite`}:{},children:n},a===`live`?n:void 0)]}),i===void 0?null:(0,I.jsx)(`span`,{className:`execution-progress-step-activity`,children:i}),s===void 0||s.length===0?null:(0,I.jsx)(`span`,{className:`execution-progress-step-metrics`,children:s.map(e=>(0,I.jsx)(`span`,{className:`execution-progress-step-metric`,children:e},e))})]})]}),(0,I.jsx)(Io,{units:l,state:u,tempo:d,...f===void 0?{}:{playbackBpm:f},openingBarline:p,openingClef:m,...h===void 0?{}:{keySignatureFifths:h},...g===void 0?{}:{timeSignature:g},label:c,className:`execution-score-staff`})]})})}var Ro={schemaVersion:3,id:`auld-lang-syne`,shortName:`Auld Lang Syne`,composer:`Traditional`,work:`Auld Lang Syne`,movement:`Traditional melody`,tempo:88,meter:[2,4],clef:`treble`,keySignatureFifths:3,source:{provider:`Mutopia Project`,license:`Public Domain`,landingPageUrl:`https://www.mutopiaproject.org/cgibin/piece-info.cgi?id=1121`,url:`https://www.mutopiaproject.org/ftp/HoretzkyF/horetzky31/horetzky31.mid`,format:`MIDI`,downloadSha256:`7451d7be42ee52f15ba8b8c9651bcb8fdd2a759531c6297b875e9a65581afb19`,retrievedOn:`2026-07-31`,sourceFile:`horetzky31.mid`,part:`upper guitar melody (track 1)`,selection:`beats 0–128`,transposeSemitones:-5},units:[{measure:1,symbols:[{kind:`note`,pitches:[{name:`E4`}],duration:`eighth`}]},{measure:1,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}]},{measure:1,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`sixteenth`}]},{measure:1,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}],barAfter:`single`},{measure:2,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`eighth`}]},{measure:2,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`}]},{measure:2,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`}]},{measure:2,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`}],barAfter:`single`},{measure:3,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`eighth`}]},{measure:3,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}]},{measure:3,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`,dots:1}]},{measure:3,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`quarter`}],barAfter:`single`},{measure:4,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`eighth`}]},{measure:4,symbols:[{kind:`note`,pitches:[{name:`F#5`}],duration:`quarter`,dots:1}]},{measure:4,symbols:[{kind:`note`,pitches:[{name:`D4`}],duration:`quarter`}],barAfter:`single`},{measure:5,symbols:[{kind:`note`,pitches:[{name:`A5`}],duration:`eighth`}]},{measure:5,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`quarter`}]},{measure:5,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`sixteenth`}]},{measure:5,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`quarter`}],barAfter:`single`},{measure:6,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`}]},{measure:6,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`,dots:1}]},{measure:6,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`B4`}],duration:`eighth`}],beam:!0,barAfter:`single`},{measure:7,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`eighth`}]},{measure:7,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}]},{measure:7,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`eighth`,dots:1}]},{measure:7,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`quarter`}],barAfter:`single`},{measure:8,symbols:[{kind:`note`,pitches:[{name:`E4`}],duration:`sixteenth`}]},{measure:8,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}]},{measure:8,symbols:[{kind:`rest`,duration:`eighth`}],barAfter:`single`},{measure:9,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`eighth`}]},{measure:9,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`quarter`}]},{measure:9,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`sixteenth`}]},{measure:9,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`quarter`}],barAfter:`single`},{measure:10,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`sixteenth`}]},{measure:10,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`}]},{measure:10,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`sixteenth`}]},{measure:10,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`}],barAfter:`single`},{measure:11,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`sixteenth`}]},{measure:11,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`quarter`}]},{measure:11,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`eighth`,dots:1}]},{measure:11,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`quarter`}],barAfter:`single`},{measure:12,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`sixteenth`}]},{measure:12,symbols:[{kind:`note`,pitches:[{name:`F#5`}],duration:`quarter`,dots:1}]},{measure:12,symbols:[{kind:`note`,pitches:[{name:`D4`}],duration:`quarter`}],barAfter:`single`},{measure:13,symbols:[{kind:`note`,pitches:[{name:`A5`}],duration:`eighth`}]},{measure:13,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`quarter`}]},{measure:13,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`sixteenth`}]},{measure:13,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`quarter`}],barAfter:`single`},{measure:14,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`}]},{measure:14,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`,dots:1}]},{measure:14,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`B4`}],duration:`eighth`}],beam:!0,barAfter:`single`},{measure:15,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`eighth`}]},{measure:15,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}]},{measure:15,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`eighth`,dots:1}]},{measure:15,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`quarter`}],barAfter:`single`},{measure:16,symbols:[{kind:`note`,pitches:[{name:`E4`}],duration:`sixteenth`}]},{measure:16,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}]}]},zo={schemaVersion:3,id:`bach-air`,shortName:`Bach Air`,composer:`Johann Sebastian Bach`,work:`Orchestral Suite No. 3 in D major, BWV 1068`,movement:`II. Air`,tempo:56,meter:[4,4],clef:`treble`,keySignatureFifths:3,source:{provider:`Mutopia Project`,license:`Public Domain`,landingPageUrl:`https://www.mutopiaproject.org/cgibin/piece-info.cgi?id=1534`,url:`https://www.mutopiaproject.org/ftp/BachJS/BWV1068/bach_air_bmv_1068/bach_air_bmv_1068.mid`,format:`MIDI`,downloadSha256:`5f7763dd4d29f309cac6d670c22aa029aca23c8c97743a0511d4b9c6d3435f1c`,retrievedOn:`2026-07-31`,sourceFile:`bach_air_bmv_1068.mid`,part:`flute melody (flute)`,selection:`beats 0–128`,transposeSemitones:-5},units:[{measure:1,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`whole`}],barAfter:`single`},{measure:2,symbols:[{kind:`note`,pitches:[{name:`F#5`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`D5`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`C#5`}],duration:`sixteenth`}],beam:!0},{measure:2,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`A4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`G#4`}],duration:`sixteenth`}],beam:!0},{measure:2,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`sixteenth`}]},{measure:2,symbols:[{kind:`note`,pitches:[{name:`G#4`}],duration:`quarter`}]},{measure:2,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`sixteenth`}]},{measure:2,symbols:[{kind:`note`,pitches:[{name:`E4`}],duration:`quarter`}],barAfter:`single`},{measure:3,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`half`}]},{measure:3,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`G4`,displayAccidental:`natural`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`F#4`}],duration:`sixteenth`}],beam:!0},{measure:3,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`A#4`,displayAccidental:`sharp`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`E5`}],duration:`sixteenth`}],beam:!0},{measure:3,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`sixteenth`}],barAfter:`single`},{measure:4,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`half`}]},{measure:4,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`F#4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`E4`}],duration:`sixteenth`}],beam:!0},{measure:4,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`G#4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`D5`}],duration:`sixteenth`}],beam:!0},{measure:4,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`sixteenth`}],barAfter:`single`},{measure:5,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`quarter`,dots:1}]},{measure:5,symbols:[{kind:`note`,pitches:[{name:`D#5`,displayAccidental:`sharp`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`E5`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`}],beam:!0},{measure:5,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`B4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`C#5`}],duration:`eighth`}],beam:!0},{measure:5,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`B4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`A4`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:6,symbols:[{kind:`note`,pitches:[{name:`G#4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`F#4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`F#4`}],duration:`sixteenth`}],beam:!0},{measure:6,symbols:[{kind:`note`,pitches:[{name:`G#4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`,dots:1},{kind:`note`,pitches:[{name:`G#4`}],duration:`sixteenth`}],beam:!0},{measure:6,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`sixteenth`}]},{measure:6,symbols:[{kind:`note`,pitches:[{name:`E4`}],duration:`half`}],barAfter:`single`},{measure:7,symbols:[{kind:`note`,pitches:[{name:`G#4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`F#4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`F#4`}],duration:`sixteenth`}],beam:!0},{measure:7,symbols:[{kind:`note`,pitches:[{name:`G#4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`,dots:1},{kind:`note`,pitches:[{name:`G#4`}],duration:`sixteenth`}],beam:!0},{measure:7,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`sixteenth`}]},{measure:7,symbols:[{kind:`note`,pitches:[{name:`E4`}],duration:`half`}],barAfter:`single`},{measure:8,symbols:[{kind:`note`,pitches:[{name:`G#4`}],duration:`quarter`,dots:1}]},{measure:8,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`G#4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`F#4`}],duration:`sixteenth`}],beam:!0},{measure:8,symbols:[{kind:`note`,pitches:[{name:`G#4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`E4`}],duration:`sixteenth`}],beam:!0},{measure:8,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`quarter`,dots:1}]},{measure:8,symbols:[{kind:`note`,pitches:[{name:`G4`,displayAccidental:`natural`}],duration:`eighth`}],barAfter:`single`},{measure:9,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`F#5`}],duration:`eighth`,dots:1},{kind:`note`,pitches:[{name:`E5`}],duration:`sixteenth`}],beam:!0},{measure:9,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`C#5`}],duration:`sixteenth`}],beam:!0},{measure:9,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`quarter`}]},{measure:9,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`B4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`A4`}],duration:`sixteenth`}],beam:!0},{measure:9,symbols:[{kind:`note`,pitches:[{name:`G#4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`F#4`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:10,symbols:[{kind:`note`,pitches:[{name:`F4`,displayAccidental:`natural`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`F#4`,displayAccidental:`sharp`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`G#4`}],duration:`eighth`,dots:1}],beam:!0},{measure:10,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`B4`}],duration:`eighth`,dots:1},{kind:`note`,pitches:[{name:`C#5`}],duration:`sixteenth`}],beam:!0},{measure:10,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`quarter`}]},{measure:10,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`eighth`}],barAfter:`single`},{measure:11,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`A4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`G#4`}],duration:`sixteenth`}],beam:!0},{measure:11,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`G#4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`A4`}],duration:`sixteenth`}],beam:!0},{measure:11,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`}],beam:!0},{measure:11,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`half`}],barAfter:`single`},{measure:12,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`,dots:1}]},{measure:12,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`B4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`A4`}],duration:`sixteenth`}],beam:!0},{measure:12,symbols:[{kind:`note`,pitches:[{name:`F#5`}],duration:`quarter`,dots:1}]},{measure:12,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`D#5`,displayAccidental:`sharp`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:13,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`B4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`E5`}],duration:`sixteenth`}],beam:!0},{measure:13,symbols:[{kind:`note`,pitches:[{name:`E4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`F#4`}],duration:`eighth`,dots:1},{kind:`note`,pitches:[{name:`G#4`}],duration:`sixteenth`}],beam:!0},{measure:13,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`G#4`}],duration:`eighth`,dots:1},{kind:`note`,pitches:[{name:`F#4`}],duration:`sixteenth`}],beam:!0},{measure:13,symbols:[{kind:`note`,pitches:[{name:`E4`}],duration:`quarter`}],barAfter:`single`},{measure:14,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`,dots:1}]},{measure:14,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`B4`}],duration:`sixteenth`}],beam:!0},{measure:14,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`,dots:1}]},{measure:14,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`C#5`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:15,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`quarter`,dots:1}]},{measure:15,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`D5`}],duration:`sixteenth`}],beam:!0},{measure:15,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`half`}],barAfter:`single`},{measure:16,symbols:[{kind:`note`,pitches:[{name:`E4`}],duration:`quarter`,dots:1}]},{measure:16,symbols:[{kind:`note`,pitches:[{name:`G#4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`B4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`D5`}],duration:`sixteenth`}],beam:!0},{measure:16,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`B4`}],duration:`sixteenth`}],beam:!0},{measure:16,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`quarter`,dots:1}]},{measure:16,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`E5`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:17,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`,dots:1}]},{measure:17,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`E5`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`G5`,displayAccidental:`natural`}],duration:`sixteenth`}],beam:!0},{measure:17,symbols:[{kind:`note`,pitches:[{name:`F#5`}],duration:`quarter`,dots:1}]},{measure:17,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`}],barAfter:`single`},{measure:18,symbols:[{kind:`note`,pitches:[{name:`G#4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`B4`}],duration:`sixteenth`}],beam:!0},{measure:18,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`quarter`}]},{measure:18,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`E4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`B4`}],duration:`sixteenth`}],beam:!0},{measure:18,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`D5`}],duration:`sixteenth`,dots:1},{kind:`note`,pitches:[{name:`C#5`}],duration:`eighth`}],beam:!0},{measure:18,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`sixteenth`}],barAfter:`single`},{measure:19,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`G#4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`F#4`}],duration:`eighth`}],beam:!0},{measure:19,symbols:[{kind:`note`,pitches:[{name:`G#4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`G#4`}],duration:`sixteenth`}],beam:!0},{measure:19,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`sixteenth`}]},{measure:19,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`half`}]}]},Bo={schemaVersion:3,id:`beethoven-7-allegretto`,shortName:`Beethoven No. 7`,composer:`Ludwig van Beethoven`,work:`Symphony No. 7 in A major, Op. 92`,movement:`II. Allegretto`,tempo:76,meter:[2,4],clef:`treble`,keySignatureFifths:-1,source:{provider:`Mutopia Project`,license:`Public Domain`,landingPageUrl:`https://www.mutopiaproject.org/cgibin/piece-info.cgi?id=595`,url:`https://www.mutopiaproject.org/ftp/BeethovenLv/O92/Symphony7_2/Symphony7_2.mid`,format:`MIDI`,downloadSha256:`7cf810b4625b9a272d3a0a9153d8beb5750fa3ee64122dc9f27b7661e997b903`,retrievedOn:`2026-07-31`,sourceFile:`Symphony7_2.mid`,part:`upper wind / track six (six)`,selection:`beats 128–384`,transposeSemitones:-7},units:[{measure:65,symbols:[{kind:`rest`,duration:`whole`}],barAfter:`single`},{measure:75,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}]},{measure:75,symbols:[{kind:`rest`,duration:`quarter`}],barAfter:`single`},{measure:76,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`quarter`}]},{measure:76,symbols:[{kind:`rest`,duration:`quarter`}],barAfter:`single`},{measure:77,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`quarter`}]},{measure:77,symbols:[{kind:`rest`,duration:`quarter`}],barAfter:`single`},{measure:78,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}]},{measure:78,symbols:[{kind:`rest`,duration:`quarter`}],barAfter:`single`},{measure:79,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}]},{measure:79,symbols:[{kind:`rest`,duration:`half`}],barAfter:`single`},{measure:80,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`quarter`}],barAfter:`single`},{measure:81,symbols:[{kind:`rest`,duration:`half`}],barAfter:`single`},{measure:82,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`quarter`}]},{measure:82,symbols:[{kind:`rest`,duration:`quarter`}],barAfter:`single`},{measure:83,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`quarter`}]},{measure:83,symbols:[{kind:`rest`,duration:`half`,dots:1}],barAfter:`single`},{measure:85,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`quarter`}]},{measure:85,symbols:[{kind:`rest`,duration:`quarter`}],barAfter:`single`},{measure:86,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}]},{measure:86,symbols:[{kind:`rest`,duration:`quarter`}],barAfter:`single`},{measure:87,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}]},{measure:87,symbols:[{kind:`rest`,duration:`quarter`}],barAfter:`single`},{measure:88,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`quarter`}]},{measure:88,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}],barAfter:`single`},{measure:89,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`quarter`}]},{measure:89,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`eighth`},{kind:`note`,pitches:[{name:`E5`}],duration:`eighth`}],beam:!0,barAfter:`single`},{measure:90,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}]},{measure:90,symbols:[{kind:`rest`,duration:`quarter`}],barAfter:`single`},{measure:91,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`quarter`}]},{measure:91,symbols:[{kind:`rest`,duration:`half`,dots:1}],barAfter:`single`},{measure:93,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`quarter`}]},{measure:93,symbols:[{kind:`rest`,duration:`quarter`}],barAfter:`single`},{measure:94,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}]},{measure:94,symbols:[{kind:`rest`,duration:`quarter`}],barAfter:`single`},{measure:95,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}]},{measure:95,symbols:[{kind:`rest`,duration:`quarter`}],barAfter:`single`},{measure:96,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`quarter`}]},{measure:96,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}],barAfter:`single`},{measure:97,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`quarter`}]},{measure:97,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`eighth`},{kind:`note`,pitches:[{name:`E5`}],duration:`eighth`}],beam:!0,barAfter:`single`},{measure:98,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}]},{measure:98,symbols:[{kind:`rest`,duration:`whole`}],barAfter:`single`},{measure:110,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`whole`}],barAfter:`single`},{measure:115,symbols:[{kind:`rest`,duration:`whole`}],barAfter:`single`},{measure:140,symbols:[{kind:`note`,pitches:[{name:`G5`}],duration:`quarter`}]},{measure:140,symbols:[{kind:`rest`,duration:`half`,dots:1}],barAfter:`single`},{measure:142,symbols:[{kind:`note`,pitches:[{name:`G5`}],duration:`quarter`}]},{measure:142,symbols:[{kind:`rest`,duration:`whole`}],barAfter:`single`},{measure:149,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`eighth`},{kind:`note`,pitches:[{name:`E5`}],duration:`eighth`}],beam:!0},{measure:149,symbols:[{kind:`rest`,duration:`whole`}],barAfter:`single`},{measure:174,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}]},{measure:174,symbols:[{kind:`rest`,duration:`half`}],barAfter:`single`},{measure:175,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`}],beam:!0,barAfter:`single`},{measure:176,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}]},{measure:176,symbols:[{kind:`rest`,duration:`half`}],barAfter:`single`},{measure:177,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`}],beam:!0,barAfter:`single`},{measure:178,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`}]},{measure:178,symbols:[{kind:`rest`,duration:`eighth`}]},{measure:178,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`}],beam:!0,barAfter:`single`},{measure:179,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`}]},{measure:179,symbols:[{kind:`rest`,duration:`eighth`}]},{measure:179,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`}],beam:!0,barAfter:`single`},{measure:180,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`}]},{measure:180,symbols:[{kind:`rest`,duration:`eighth`}]},{measure:180,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`}],beam:!0,barAfter:`single`},{measure:181,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`}],beam:!0},{measure:181,symbols:[{kind:`rest`,duration:`quarter`}],barAfter:`single`},{measure:182,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`}],beam:!0},{measure:182,symbols:[{kind:`rest`,duration:`quarter`}],barAfter:`single`},{measure:183,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`}],beam:!0}]},Vo={schemaVersion:3,id:`beethoven-ode-to-joy`,shortName:`Ode to Joy`,composer:`Ludwig van Beethoven`,work:`Symphony No. 9 in D minor, Op. 125`,movement:`IV. Ode to Joy`,tempo:96,meter:[4,4],clef:`treble`,keySignatureFifths:1,source:{provider:`Mutopia Project`,license:`Public Domain`,landingPageUrl:`https://www.mutopiaproject.org/cgibin/piece-info.cgi?id=528`,url:`https://www.mutopiaproject.org/ftp/BeethovenLv/ode/ode.mid`,format:`MIDI`,downloadSha256:`fb1604c08c865b275b464d74e5a7c526ff1a8acccdf9853cb92f0778daaed14b`,retrievedOn:`2026-07-31`,sourceFile:`ode.mid`,part:`soprano melody (upper)`,selection:`beats 0–128`,transposeSemitones:0},units:[{measure:1,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`}]},{measure:1,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`}]},{measure:1,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`quarter`}]},{measure:1,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`quarter`}],barAfter:`single`},{measure:2,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`quarter`,dots:1}]},{measure:2,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`quarter`}]},{measure:2,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`}]},{measure:2,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`}]},{measure:2,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}],barAfter:`single`},{measure:3,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`quarter`}]},{measure:3,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`quarter`}]},{measure:3,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}]},{measure:3,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`}],barAfter:`single`},{measure:4,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`,dots:1}]},{measure:4,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`}]},{measure:4,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`half`}],barAfter:`single`},{measure:5,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`}]},{measure:5,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`}]},{measure:5,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`quarter`}]},{measure:5,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`quarter`}],barAfter:`single`},{measure:6,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`quarter`,dots:1}]},{measure:6,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`quarter`}]},{measure:6,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`}]},{measure:6,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`}]},{measure:6,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}],barAfter:`single`},{measure:7,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`quarter`}]},{measure:7,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`quarter`}]},{measure:7,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}]},{measure:7,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`}],barAfter:`single`},{measure:8,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`,dots:1}]},{measure:8,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`quarter`}]},{measure:8,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`}]},{measure:8,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`half`}],barAfter:`single`},{measure:9,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}]},{measure:9,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}]},{measure:9,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`}]},{measure:9,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`quarter`}],barAfter:`single`},{measure:10,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}]},{measure:10,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`}]},{measure:10,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`eighth`}]},{measure:10,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`}]},{measure:10,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`quarter`}],barAfter:`single`},{measure:11,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}]},{measure:11,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`}]},{measure:11,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`eighth`}]},{measure:11,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`}]},{measure:11,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}],barAfter:`single`},{measure:12,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`quarter`}]},{measure:12,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}]},{measure:12,symbols:[{kind:`note`,pitches:[{name:`D4`}],duration:`half`}],barAfter:`single`},{measure:13,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`}]},{measure:13,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`}]},{measure:13,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`quarter`}]},{measure:13,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`quarter`}],barAfter:`single`},{measure:14,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`quarter`}]},{measure:14,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`quarter`}]},{measure:14,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`}]},{measure:14,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`}]},{measure:14,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}],barAfter:`single`},{measure:15,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`quarter`}]},{measure:15,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`quarter`}]},{measure:15,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}]},{measure:15,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`}],barAfter:`single`},{measure:16,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`,dots:1}]},{measure:16,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`quarter`}]},{measure:16,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`}]},{measure:16,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`half`}]}]},Ho={schemaVersion:3,id:`brahms-wiegenlied`,shortName:`Brahms Wiegenlied`,composer:`Johannes Brahms`,work:`5 Lieder, Op. 49`,movement:`No. 4. Wiegenlied`,tempo:76,meter:[3,4],clef:`treble`,keySignatureFifths:-3,source:{provider:`OpenScore Lieder Corpus`,license:`CC0 1.0`,landingPageUrl:`https://musescore.com/openscore-lieder-corpus/scores/5701612`,url:`https://raw.githubusercontent.com/OpenScore/Lieder/main/scores/Brahms,_Johannes/5_Lieder,_Op.49/4_Wiegenlied/lc5701612.mxl`,format:`MusicXML`,downloadSha256:`5867b883ba1d159f234a3764a0f3f467afdd78cf6ee4698bca17d52d3a4f65db`,retrievedOn:`2026-07-31`,sourceFile:`lc5701612.mxl`,part:`voice / P1 (Singstimme)`,selection:`measures 1–24`,transposeSemitones:0},units:[{measure:2,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`}],beam:!0,barAfter:`single`},{measure:3,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`quarter`}]},{measure:3,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`}]},{measure:3,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`quarter`}],barAfter:`single`},{measure:4,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`quarter`}]},{measure:4,symbols:[{kind:`rest`,duration:`quarter`}]},{measure:4,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`Bb4`}],duration:`eighth`}],beam:!0,barAfter:`single`},{measure:5,symbols:[{kind:`note`,pitches:[{name:`Eb5`}],duration:`quarter`}]},{measure:5,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`quarter`}]},{measure:5,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`eighth`}],barAfter:`single`},{measure:6,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`quarter`}]},{measure:6,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`quarter`}]},{measure:6,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`}],beam:!0,barAfter:`single`},{measure:7,symbols:[{kind:`note`,pitches:[{name:`Ab4`}],duration:`quarter`}]},{measure:7,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`quarter`}]},{measure:7,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`}],beam:!0,barAfter:`single`},{measure:8,symbols:[{kind:`note`,pitches:[{name:`Ab4`}],duration:`quarter`}]},{measure:8,symbols:[{kind:`rest`,duration:`quarter`}]},{measure:8,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`Ab4`}],duration:`eighth`}],beam:!0,barAfter:`single`},{measure:9,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`eighth`},{kind:`note`,pitches:[{name:`C5`}],duration:`eighth`}],beam:!0},{measure:9,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`quarter`}]},{measure:9,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`quarter`}],barAfter:`single`},{measure:10,symbols:[{kind:`note`,pitches:[{name:`Eb5`}],duration:`quarter`}]},{measure:10,symbols:[{kind:`rest`,duration:`quarter`}]},{measure:10,symbols:[{kind:`note`,pitches:[{name:`Eb4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`Eb4`}],duration:`eighth`}],beam:!0,barAfter:`single`},{measure:11,symbols:[{kind:`note`,pitches:[{name:`Eb5`}],duration:`half`}]},{measure:11,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`eighth`},{kind:`note`,pitches:[{name:`Ab4`}],duration:`eighth`}],beam:!0,barAfter:`single`},{measure:12,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`half`}]},{measure:12,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`Eb4`}],duration:`eighth`}],beam:!0,barAfter:`single`},{measure:13,symbols:[{kind:`note`,pitches:[{name:`Ab4`}],duration:`quarter`}]},{measure:13,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`quarter`}]},{measure:13,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`quarter`}],barAfter:`single`},{measure:14,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`sixteenth`,grace:!0}]},{measure:14,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`half`}]},{measure:14,symbols:[{kind:`note`,pitches:[{name:`Eb4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`Eb4`}],duration:`eighth`}],beam:!0,barAfter:`single`},{measure:15,symbols:[{kind:`note`,pitches:[{name:`Eb5`}],duration:`half`}]},{measure:15,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`eighth`},{kind:`note`,pitches:[{name:`Ab4`}],duration:`eighth`}],beam:!0,barAfter:`single`},{measure:16,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`half`}]},{measure:16,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`Eb4`}],duration:`eighth`}],beam:!0,barAfter:`single`},{measure:17,symbols:[{kind:`note`,pitches:[{name:`Ab4`}],duration:`quarter`}]},{measure:17,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`sixteenth`,grace:!0},{kind:`note`,pitches:[{name:`Ab4`}],duration:`sixteenth`,grace:!0}],beam:!0},{measure:17,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`quarter`}]},{measure:17,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`quarter`}],barAfter:`single`},{measure:18,symbols:[{kind:`note`,pitches:[{name:`Eb4`}],duration:`half`}]}]},Uo={schemaVersion:3,id:`greensleeves`,shortName:`Greensleeves`,composer:`Traditional`,work:`Greensleeves`,movement:`Traditional melody`,tempo:84,meter:[6,8],clef:`treble`,keySignatureFifths:-4,source:{provider:`Mutopia Project`,license:`Public Domain`,landingPageUrl:`https://www.mutopiaproject.org/cgibin/piece-info.cgi?id=1247`,url:`https://www.mutopiaproject.org/ftp/Traditional/greensleeves/greensleeves.mid`,format:`MIDI`,downloadSha256:`04a6e03dd6128aa291aa75e4df757bbba40567ef885eca18d14d51d9365cb8e8`,retrievedOn:`2026-07-31`,sourceFile:`greensleeves.mid`,part:`soprano melody (upper:one)`,selection:`beats 0–128`,transposeSemitones:1},units:[{measure:1,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`eighth`}]},{measure:1,symbols:[{kind:`note`,pitches:[{name:`Ab4`}],duration:`quarter`}]},{measure:1,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`C5`}],duration:`eighth`,dots:1},{kind:`note`,pitches:[{name:`Db5`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:2,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`eighth`}]},{measure:2,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`quarter`}]},{measure:2,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`Eb4`}],duration:`eighth`,dots:1},{kind:`note`,pitches:[{name:`F4`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:3,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`}]},{measure:3,symbols:[{kind:`note`,pitches:[{name:`Ab4`}],duration:`quarter`}]},{measure:3,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`F4`}],duration:`eighth`,dots:1},{kind:`note`,pitches:[{name:`E4`,displayAccidental:`natural`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:4,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`eighth`}]},{measure:4,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`quarter`,dots:1}]},{measure:4,symbols:[{kind:`note`,pitches:[{name:`C4`}],duration:`quarter`}],barAfter:`single`},{measure:5,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`eighth`}]},{measure:5,symbols:[{kind:`note`,pitches:[{name:`Ab4`}],duration:`quarter`}]},{measure:5,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`C5`}],duration:`eighth`,dots:1},{kind:`note`,pitches:[{name:`Db5`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:6,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`eighth`}]},{measure:6,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`quarter`}]},{measure:6,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`Eb4`}],duration:`eighth`,dots:1},{kind:`note`,pitches:[{name:`F4`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:7,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`Ab4`}],duration:`eighth`,dots:1},{kind:`note`,pitches:[{name:`G4`}],duration:`sixteenth`}],beam:!0},{measure:7,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`E4`,displayAccidental:`natural`}],duration:`eighth`,dots:1},{kind:`note`,pitches:[{name:`D4`,displayAccidental:`natural`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:8,symbols:[{kind:`note`,pitches:[{name:`E4`,displayAccidental:`natural`}],duration:`eighth`}]},{measure:8,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`quarter`,dots:1}]},{measure:8,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`quarter`}],barAfter:`single`},{measure:9,symbols:[{kind:`rest`,duration:`eighth`}]},{measure:9,symbols:[{kind:`note`,pitches:[{name:`Eb5`}],duration:`quarter`,dots:1}]},{measure:9,symbols:[{kind:`note`,pitches:[{name:`Eb5`}],duration:`eighth`,dots:1},{kind:`note`,pitches:[{name:`D5`,displayAccidental:`natural`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:10,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`eighth`}]},{measure:10,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`quarter`}]},{measure:10,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`Eb4`}],duration:`eighth`,dots:1},{kind:`note`,pitches:[{name:`F4`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:11,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`}]},{measure:11,symbols:[{kind:`note`,pitches:[{name:`Ab4`}],duration:`quarter`}]},{measure:11,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`F4`}],duration:`eighth`,dots:1},{kind:`note`,pitches:[{name:`E4`,displayAccidental:`natural`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:12,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`eighth`}]},{measure:12,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`quarter`}]},{measure:12,symbols:[{kind:`note`,pitches:[{name:`E4`,displayAccidental:`natural`}],duration:`eighth`}]},{measure:12,symbols:[{kind:`note`,pitches:[{name:`C4`}],duration:`quarter`}],barAfter:`single`},{measure:13,symbols:[{kind:`rest`,duration:`eighth`}]},{measure:13,symbols:[{kind:`note`,pitches:[{name:`Eb5`}],duration:`quarter`,dots:1}]},{measure:13,symbols:[{kind:`note`,pitches:[{name:`Eb5`}],duration:`eighth`,dots:1},{kind:`note`,pitches:[{name:`Db5`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:14,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`eighth`}]},{measure:14,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`quarter`}]},{measure:14,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`}]},{measure:14,symbols:[{kind:`note`,pitches:[{name:`Eb4`}],duration:`quarter`}]},{measure:14,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`sixteenth`}],barAfter:`single`},{measure:15,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`Ab4`}],duration:`eighth`,dots:1},{kind:`note`,pitches:[{name:`G4`}],duration:`sixteenth`}],beam:!0},{measure:15,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`E4`,displayAccidental:`natural`}],duration:`eighth`,dots:1},{kind:`note`,pitches:[{name:`D4`,displayAccidental:`natural`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:16,symbols:[{kind:`note`,pitches:[{name:`E4`,displayAccidental:`natural`}],duration:`eighth`}]},{measure:16,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`quarter`,dots:1}]},{measure:16,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`quarter`}]}]},Wo={schemaVersion:3,id:`petzold-minuet-in-g`,shortName:`Minuet in G`,composer:`Christian Petzold`,work:`Minuet in G major, BWV Anh. 114`,movement:`Menuet`,tempo:100,meter:[3,4],clef:`treble`,keySignatureFifths:-1,source:{provider:`Mutopia Project`,license:`Public Domain`,landingPageUrl:`https://www.mutopiaproject.org/cgibin/piece-info.cgi?id=258`,url:`https://www.mutopiaproject.org/ftp/BachJS/BWVAnh114/Minuet-xpose/Minuet-xpose.mid`,format:`MIDI`,downloadSha256:`4199c2f47ca19389f89902385acfea4237f4e58d850b2ee698af2dc8e86e8557`,retrievedOn:`2026-07-31`,sourceFile:`Minuet-xpose.mid`,part:`upper trumpet melody (staffA:)`,selection:`beats 0–128`,transposeSemitones:-2},units:[{measure:1,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`quarter`}]},{measure:1,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`}],beam:!0},{measure:1,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`eighth`}],barAfter:`single`},{measure:2,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`quarter`}]},{measure:2,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`quarter`}]},{measure:2,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`quarter`}],barAfter:`single`},{measure:3,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`quarter`}]},{measure:3,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`C5`}],duration:`eighth`},{kind:`note`,pitches:[{name:`D5`}],duration:`eighth`}],beam:!0},{measure:3,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`eighth`}],barAfter:`single`},{measure:4,symbols:[{kind:`note`,pitches:[{name:`F5`}],duration:`quarter`}]},{measure:4,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`quarter`}]},{measure:4,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`quarter`}],barAfter:`single`},{measure:5,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`quarter`}]},{measure:5,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`eighth`},{kind:`note`,pitches:[{name:`Bb4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`}],beam:!0},{measure:5,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`}],barAfter:`single`},{measure:6,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}]},{measure:6,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`}],beam:!0},{measure:6,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`eighth`}],barAfter:`single`},{measure:7,symbols:[{kind:`note`,pitches:[{name:`E4`}],duration:`quarter`}]},{measure:7,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`}],beam:!0},{measure:7,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`eighth`}],barAfter:`single`},{measure:8,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}]},{measure:8,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`half`}],barAfter:`single`},{measure:9,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`quarter`}]},{measure:9,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`}],beam:!0},{measure:9,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`eighth`}],barAfter:`single`},{measure:10,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`quarter`}]},{measure:10,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`quarter`}]},{measure:10,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`quarter`}],barAfter:`single`},{measure:11,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`quarter`}]},{measure:11,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`C5`}],duration:`eighth`},{kind:`note`,pitches:[{name:`D5`}],duration:`eighth`}],beam:!0},{measure:11,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`eighth`}],barAfter:`single`},{measure:12,symbols:[{kind:`note`,pitches:[{name:`F5`}],duration:`quarter`}]},{measure:12,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`quarter`}]},{measure:12,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`quarter`}],barAfter:`single`},{measure:13,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`quarter`}]},{measure:13,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`eighth`},{kind:`note`,pitches:[{name:`Bb4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`}],beam:!0},{measure:13,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`}],barAfter:`single`},{measure:14,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}]},{measure:14,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`}],beam:!0},{measure:14,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`eighth`}],barAfter:`single`},{measure:15,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`quarter`}]},{measure:15,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`F4`}],duration:`eighth`}],beam:!0},{measure:15,symbols:[{kind:`note`,pitches:[{name:`E4`}],duration:`eighth`}],barAfter:`single`},{measure:16,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`half`,dots:1}],barAfter:`single`},{measure:17,symbols:[{kind:`note`,pitches:[{name:`A5`}],duration:`quarter`}]},{measure:17,symbols:[{kind:`note`,pitches:[{name:`F5`}],duration:`eighth`},{kind:`note`,pitches:[{name:`G5`}],duration:`eighth`},{kind:`note`,pitches:[{name:`A5`}],duration:`eighth`}],beam:!0},{measure:17,symbols:[{kind:`note`,pitches:[{name:`F5`}],duration:`eighth`}],barAfter:`single`},{measure:18,symbols:[{kind:`note`,pitches:[{name:`G5`}],duration:`quarter`}]},{measure:18,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`eighth`},{kind:`note`,pitches:[{name:`D5`}],duration:`eighth`},{kind:`note`,pitches:[{name:`E5`}],duration:`eighth`}],beam:!0},{measure:18,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`eighth`}],barAfter:`single`},{measure:19,symbols:[{kind:`note`,pitches:[{name:`F5`}],duration:`quarter`}]},{measure:19,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`eighth`},{kind:`note`,pitches:[{name:`E5`}],duration:`eighth`},{kind:`note`,pitches:[{name:`F5`}],duration:`eighth`}],beam:!0},{measure:19,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`eighth`}],barAfter:`single`},{measure:20,symbols:[{kind:`note`,pitches:[{name:`B4`,displayAccidental:`natural`}],duration:`quarter`}]},{measure:20,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`B4`}],duration:`eighth`}],beam:!0},{measure:20,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`quarter`}],barAfter:`single`},{measure:21,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`B4`,displayAccidental:`natural`}],duration:`eighth`}],beam:!0},{measure:21,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`eighth`},{kind:`note`,pitches:[{name:`D5`}],duration:`eighth`},{kind:`note`,pitches:[{name:`E5`}],duration:`eighth`}],beam:!0,barAfter:`single`},{measure:22,symbols:[{kind:`note`,pitches:[{name:`F5`}],duration:`quarter`}]},{measure:22,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`quarter`}]},{measure:22,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`quarter`}],barAfter:`single`},{measure:23,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`quarter`}]},{measure:23,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`quarter`}]},{measure:23,symbols:[{kind:`note`,pitches:[{name:`B4`,displayAccidental:`natural`}],duration:`quarter`}],barAfter:`single`},{measure:24,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`half`,dots:1}],barAfter:`single`},{measure:25,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`quarter`}]},{measure:25,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`E4`}],duration:`eighth`}],beam:!0},{measure:25,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`quarter`}],barAfter:`single`},{measure:26,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`quarter`}]},{measure:26,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`E4`}],duration:`eighth`}],beam:!0},{measure:26,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`quarter`}],barAfter:`single`},{measure:27,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`quarter`}]},{measure:27,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`quarter`}]},{measure:27,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}],barAfter:`single`},{measure:28,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`F4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`E4`}],duration:`eighth`}],beam:!0},{measure:28,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`eighth`}]},{measure:28,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`quarter`}],barAfter:`single`},{measure:29,symbols:[{kind:`note`,pitches:[{name:`C4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`D4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`E4`}],duration:`eighth`}],beam:!0},{measure:29,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`}],beam:!0,barAfter:`single`},{measure:30,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`quarter`}]},{measure:30,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}]},{measure:30,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`quarter`}],barAfter:`single`},{measure:31,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`C5`}],duration:`eighth`}],beam:!0},{measure:31,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`quarter`}]},{measure:31,symbols:[{kind:`note`,pitches:[{name:`E4`}],duration:`quarter`}],barAfter:`single`},{measure:32,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`half`,dots:1}]}]},Go={schemaVersion:3,id:`schubert-an-die-musik`,shortName:`An die Musik`,composer:`Franz Schubert`,work:`An die Musik, D. 547`,movement:`An die Musik`,tempo:76,meter:[2,2],clef:`treble`,keySignatureFifths:2,source:{provider:`OpenScore Lieder Corpus`,license:`CC0 1.0`,landingPageUrl:`https://musescore.com/openscore-lieder-corpus/scores/6180725`,url:`https://raw.githubusercontent.com/OpenScore/Lieder/main/scores/Schubert,_Franz/_/An_die_Musik,_D.547/lc6180725.mxl`,format:`MusicXML`,downloadSha256:`4c7b0331cb2785ccbd0779be5396bb2faafef2e8a47f8e0aec96e0cb8ccd4984`,retrievedOn:`2026-07-31`,sourceFile:`lc6180725.mxl`,part:`voice / P1 (Voice)`,selection:`measures 1–19`,transposeSemitones:0},units:[{measure:3,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}]},{measure:3,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`quarter`}]},{measure:3,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`quarter`}],barAfter:`single`},{measure:4,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`half`,dots:1}]},{measure:4,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`}],barAfter:`single`},{measure:5,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`sixteenth`,grace:!0}]},{measure:5,symbols:[{kind:`note`,pitches:[{name:`D4`}],duration:`quarter`,dots:1}]},{measure:5,symbols:[{kind:`note`,pitches:[{name:`D4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`F#4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`E4`}],duration:`eighth`}],beam:!0},{measure:5,symbols:[{kind:`note`,pitches:[{name:`D4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`E4`}],duration:`eighth`}],beam:!0,barAfter:`single`},{measure:6,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`quarter`}]},{measure:6,symbols:[{kind:`note`,pitches:[{name:`D4`}],duration:`quarter`}]},{measure:6,symbols:[{kind:`rest`,duration:`half`}],barAfter:`single`},{measure:7,symbols:[{kind:`rest`,duration:`quarter`}]},{measure:7,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}]},{measure:7,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`}]},{measure:7,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`}],barAfter:`single`},{measure:8,symbols:[{kind:`note`,pitches:[{name:`C#4`}],duration:`quarter`,dots:1}]},{measure:8,symbols:[{kind:`note`,pitches:[{name:`C#4`}],duration:`eighth`}]},{measure:8,symbols:[{kind:`note`,pitches:[{name:`D4`}],duration:`quarter`,dots:1}]},{measure:8,symbols:[{kind:`note`,pitches:[{name:`D4`}],duration:`eighth`}],barAfter:`single`},{measure:9,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`E4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`D4`}],duration:`eighth`}],beam:!0},{measure:9,symbols:[{kind:`note`,pitches:[{name:`E4`}],duration:`eighth`}]},{measure:9,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`half`}],barAfter:`single`},{measure:10,symbols:[{kind:`rest`,duration:`whole`}],barAfter:`single`},{measure:11,symbols:[{kind:`rest`,duration:`quarter`}]},{measure:11,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`quarter`}]},{measure:11,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`quarter`,dots:1}]},{measure:11,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`}],barAfter:`single`},{measure:12,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`quarter`}]},{measure:12,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`half`}]},{measure:12,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`quarter`}],barAfter:`single`},{measure:13,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`quarter`,dots:1}]},{measure:13,symbols:[{kind:`note`,pitches:[{name:`F#5`}],duration:`eighth`},{kind:`note`,pitches:[{name:`E5`}],duration:`eighth`},{kind:`note`,pitches:[{name:`C#5`}],duration:`eighth`}],beam:!0},{measure:13,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`}],beam:!0,barAfter:`single`},{measure:14,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`sixteenth`,grace:!0}]},{measure:14,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`quarter`}]},{measure:14,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`quarter`}]},{measure:14,symbols:[{kind:`rest`,duration:`quarter`}]},{measure:14,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}],barAfter:`single`},{measure:15,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`,dots:1}]},{measure:15,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`eighth`}]},{measure:15,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`}]},{measure:15,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`eighth`},{kind:`note`,pitches:[{name:`D5`}],duration:`eighth`}],beam:!0,barAfter:`single`},{measure:16,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`quarter`,dots:1}]},{measure:16,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`eighth`}]},{measure:16,symbols:[{kind:`note`,pitches:[{name:`F#5`}],duration:`quarter`,dots:1}]},{measure:16,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`eighth`}],barAfter:`single`},{measure:17,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`sixteenth`,grace:!0}]},{measure:17,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`half`}]},{measure:17,symbols:[{kind:`rest`,duration:`eighth`}]},{measure:17,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`C#5`}],duration:`eighth`},{kind:`note`,pitches:[{name:`D5`}],duration:`eighth`}],beam:!0,barAfter:`single`},{measure:18,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`quarter`}]},{measure:18,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`F#4`}],duration:`eighth`}],beam:!0},{measure:18,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`}]},{measure:18,symbols:[{kind:`note`,pitches:[{name:`C#4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`C#4`}],duration:`eighth`}],beam:!0,barAfter:`single`},{measure:19,symbols:[{kind:`note`,pitches:[{name:`D4`}],duration:`half`}]}]},Ko={schemaVersion:3,id:`schubert-der-lindenbaum`,shortName:`Der Lindenbaum`,composer:`Franz Schubert`,work:`Winterreise, D. 911`,movement:`No. 5. Der Lindenbaum`,tempo:80,meter:[3,4],clef:`treble`,keySignatureFifths:4,source:{provider:`OpenScore Lieder Corpus`,license:`CC0 1.0`,landingPageUrl:`https://musescore.com/openscore-lieder-corpus/scores/5016466`,url:`https://raw.githubusercontent.com/OpenScore/Lieder/main/scores/Schubert,_Franz/Winterreise,_D.911/5_Der_Lindenbaum/lc5016466.mxl`,format:`MusicXML`,downloadSha256:`f4312876fee5664a805aeace05621015c4be0143055bd3b58f348d039420452e`,retrievedOn:`2026-07-31`,sourceFile:`lc5016466.mxl`,part:`voice / P1 (Singstimme)`,selection:`measures 1–38`,transposeSemitones:0},units:[{measure:8,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`eighth`}],barAfter:`single`},{measure:9,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`}]},{measure:9,symbols:[{kind:`note`,pitches:[{name:`G#4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`G#4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`G#4`}],duration:`eighth`}],beam:!0,barAfter:`single`},{measure:10,symbols:[{kind:`note`,pitches:[{name:`G#4`}],duration:`quarter`}]},{measure:10,symbols:[{kind:`note`,pitches:[{name:`E4`}],duration:`quarter`}]},{measure:10,symbols:[{kind:`rest`,duration:`eighth`}]},{measure:10,symbols:[{kind:`note`,pitches:[{name:`E4`}],duration:`eighth`}],barAfter:`single`},{measure:11,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`quarter`}]},{measure:11,symbols:[{kind:`note`,pitches:[{name:`G#4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`G#4`}],duration:`eighth`}],beam:!0},{measure:11,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`eighth`}],barAfter:`single`},{measure:12,symbols:[{kind:`note`,pitches:[{name:`E4`}],duration:`half`}]},{measure:12,symbols:[{kind:`rest`,duration:`eighth`}]},{measure:12,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`eighth`}],barAfter:`single`},{measure:13,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`}]},{measure:13,symbols:[{kind:`note`,pitches:[{name:`G#4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`G#4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`G#4`}],duration:`eighth`}],beam:!0,barAfter:`single`},{measure:14,symbols:[{kind:`note`,pitches:[{name:`G#4`}],duration:`quarter`}]},{measure:14,symbols:[{kind:`note`,pitches:[{name:`E4`}],duration:`quarter`}]},{measure:14,symbols:[{kind:`rest`,duration:`eighth`}]},{measure:14,symbols:[{kind:`note`,pitches:[{name:`E4`}],duration:`eighth`}],barAfter:`single`},{measure:15,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`quarter`}]},{measure:15,symbols:[{kind:`note`,pitches:[{name:`G#4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`G#4`}],duration:`eighth`}],beam:!0},{measure:15,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`eighth`}],barAfter:`single`},{measure:16,symbols:[{kind:`note`,pitches:[{name:`E4`}],duration:`half`}]},{measure:16,symbols:[{kind:`rest`,duration:`eighth`}]},{measure:16,symbols:[{kind:`note`,pitches:[{name:`E4`}],duration:`eighth`}],barAfter:`single`},{measure:17,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`quarter`}]},{measure:17,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`F#4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`F#4`}],duration:`eighth`}],beam:!0,barAfter:`single`},{measure:18,symbols:[{kind:`note`,pitches:[{name:`G#4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`A4`}],duration:`sixteenth`}],beam:!0},{measure:18,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`}]},{measure:18,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`eighth`}],barAfter:`single`},{measure:19,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`quarter`}]},{measure:19,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`G#4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`E4`}],duration:`eighth`}],beam:!0,barAfter:`single`},{measure:20,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`half`}]},{measure:20,symbols:[{kind:`rest`,duration:`eighth`}]},{measure:20,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`eighth`}],barAfter:`single`},{measure:21,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`quarter`}]},{measure:21,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`F#4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`F#4`}],duration:`eighth`}],beam:!0,barAfter:`single`},{measure:22,symbols:[{kind:`note`,pitches:[{name:`G#4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`A4`}],duration:`sixteenth`}],beam:!0},{measure:22,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`}]},{measure:22,symbols:[{kind:`rest`,duration:`eighth`}]},{measure:22,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`eighth`}],barAfter:`single`},{measure:23,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`quarter`}]},{measure:23,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`G#4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`}],beam:!0},{measure:23,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`sixteenth`}],barAfter:`single`},{measure:24,symbols:[{kind:`note`,pitches:[{name:`E4`}],duration:`half`}]},{measure:24,symbols:[{kind:`rest`,duration:`quarter`}],barAfter:`single`},{measure:25,symbols:[{kind:`rest`,duration:`half`,dots:1}],barAfter:`single`},{measure:26,symbols:[{kind:`rest`,duration:`half`,dots:1}],barAfter:`single`},{measure:27,symbols:[{kind:`rest`,duration:`half`,dots:1}],barAfter:`single`},{measure:28,symbols:[{kind:`rest`,duration:`quarter`}]},{measure:28,symbols:[{kind:`rest`,duration:`quarter`}]},{measure:28,symbols:[{kind:`rest`,duration:`eighth`}]},{measure:28,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`eighth`}],barAfter:`single`},{measure:29,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`}]},{measure:29,symbols:[{kind:`note`,pitches:[{name:`G4`,displayAccidental:`natural`}],duration:`eighth`},{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`G4`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:30,symbols:[{kind:`note`,pitches:[{name:`G4`,displayAccidental:`natural`}],duration:`quarter`}]},{measure:30,symbols:[{kind:`note`,pitches:[{name:`E4`}],duration:`quarter`}]},{measure:30,symbols:[{kind:`rest`,duration:`eighth`}]},{measure:30,symbols:[{kind:`note`,pitches:[{name:`E4`}],duration:`eighth`}],barAfter:`single`},{measure:31,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`quarter`}]},{measure:31,symbols:[{kind:`note`,pitches:[{name:`G4`,displayAccidental:`natural`}],duration:`eighth`},{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`}],beam:!0},{measure:31,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`eighth`}],barAfter:`single`},{measure:32,symbols:[{kind:`note`,pitches:[{name:`E4`}],duration:`half`}]},{measure:32,symbols:[{kind:`rest`,duration:`eighth`}]},{measure:32,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`eighth`}],barAfter:`single`},{measure:33,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`}]},{measure:33,symbols:[{kind:`note`,pitches:[{name:`G4`,displayAccidental:`natural`}],duration:`eighth`},{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`}],beam:!0,barAfter:`single`},{measure:34,symbols:[{kind:`note`,pitches:[{name:`G4`,displayAccidental:`natural`}],duration:`quarter`}]},{measure:34,symbols:[{kind:`note`,pitches:[{name:`E4`}],duration:`quarter`}]},{measure:34,symbols:[{kind:`rest`,duration:`eighth`}]},{measure:34,symbols:[{kind:`note`,pitches:[{name:`E4`}],duration:`eighth`}],barAfter:`single`},{measure:35,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`quarter`}]},{measure:35,symbols:[{kind:`note`,pitches:[{name:`G4`,displayAccidental:`natural`}],duration:`eighth`},{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`}],beam:!0},{measure:35,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`eighth`}],barAfter:`single`},{measure:36,symbols:[{kind:`note`,pitches:[{name:`E4`}],duration:`half`}]},{measure:36,symbols:[{kind:`rest`,duration:`eighth`}]},{measure:36,symbols:[{kind:`note`,pitches:[{name:`E4`}],duration:`eighth`}],barAfter:`single`},{measure:37,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`quarter`}]},{measure:37,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`F#4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`F#4`}],duration:`eighth`}],beam:!0,barAfter:`single`},{measure:38,symbols:[{kind:`note`,pitches:[{name:`G#4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`A4`}],duration:`sixteenth`}],beam:!0},{measure:38,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`}]},{measure:38,symbols:[{kind:`rest`,duration:`eighth`}]},{measure:38,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`eighth`}]}]},qo={schemaVersion:3,id:`schubert-du-bist-die-ruh`,shortName:`Du bist die Ruh`,composer:`Franz Schubert`,work:`Du bist die Ruh, D. 776`,movement:`Du bist die Ruh`,tempo:60,meter:[3,8],clef:`treble`,keySignatureFifths:-3,source:{provider:`OpenScore Lieder Corpus`,license:`CC0 1.0`,landingPageUrl:`https://musescore.com/openscore-lieder-corpus/scores/4919879`,url:`https://raw.githubusercontent.com/OpenScore/Lieder/main/scores/Schubert,_Franz/Op.59/3_Du_bist_die_Ruh/lc4919879.mxl`,format:`MusicXML`,downloadSha256:`65ee78acb0a26b246e4f81d6d192b83dabc9440dbe6f08512fab521d84855150`,retrievedOn:`2026-07-31`,sourceFile:`lc4919879.mxl`,part:`voice / P1 (Voice)`,selection:`measures 1–50`,transposeSemitones:0},units:[{measure:8,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`Bb4`}],duration:`eighth`,dots:1},{kind:`note`,pitches:[{name:`Bb4`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:9,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`quarter`}]},{measure:9,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`eighth`}],barAfter:`single`},{measure:10,symbols:[{kind:`note`,pitches:[{name:`Eb5`}],duration:`quarter`}]},{measure:10,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`eighth`}],barAfter:`single`},{measure:11,symbols:[{kind:`note`,pitches:[{name:`Eb5`}],duration:`quarter`,dots:1}],barAfter:`single`},{measure:12,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`Bb4`}],duration:`eighth`,dots:1},{kind:`note`,pitches:[{name:`Bb4`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:13,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`quarter`}]},{measure:13,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`eighth`}],barAfter:`single`},{measure:14,symbols:[{kind:`note`,pitches:[{name:`Eb5`}],duration:`quarter`}]},{measure:14,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`eighth`}],barAfter:`single`},{measure:15,symbols:[{kind:`note`,pitches:[{name:`Eb5`}],duration:`quarter`,dots:1}],barAfter:`single`},{measure:16,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`eighth`},{kind:`note`,pitches:[{name:`C5`}],duration:`eighth`,dots:1},{kind:`note`,pitches:[{name:`C5`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:17,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`quarter`}]},{measure:17,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`eighth`}],barAfter:`single`},{measure:18,symbols:[{kind:`note`,pitches:[{name:`A4`,displayAccidental:`natural`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`Bb4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`C5`}],duration:`sixteenth`}],beam:!0},{measure:18,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`Eb5`}],duration:`sixteenth`,dots:1},{kind:`note`,pitches:[{name:`D5`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:19,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`quarter`}]},{measure:19,symbols:[{kind:`rest`,duration:`eighth`}],barAfter:`single`},{measure:20,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`eighth`},{kind:`note`,pitches:[{name:`C5`}],duration:`eighth`,dots:1},{kind:`note`,pitches:[{name:`C5`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:21,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`quarter`}]},{measure:21,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`eighth`}],barAfter:`single`},{measure:22,symbols:[{kind:`note`,pitches:[{name:`Ab4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`Bb4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`C5`}],duration:`sixteenth`}],beam:!0},{measure:22,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`Eb5`}],duration:`sixteenth`,dots:1},{kind:`note`,pitches:[{name:`D5`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:23,symbols:[{kind:`note`,pitches:[{name:`Eb5`}],duration:`quarter`}]},{measure:23,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`}],barAfter:`single`},{measure:24,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`G4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`Ab4`}],duration:`sixteenth`}],beam:!0},{measure:24,symbols:[{kind:`note`,pitches:[{name:`A4`,displayAccidental:`natural`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`Bb4`}],duration:`sixteenth`,dots:1},{kind:`note`,pitches:[{name:`A4`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:25,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`quarter`}]},{measure:25,symbols:[{kind:`note`,pitches:[{name:`Eb4`}],duration:`eighth`}],barAfter:`single`},{measure:26,symbols:[{kind:`rest`,duration:`quarter`,dots:1}],barAfter:`single`},{measure:27,symbols:[{kind:`rest`,duration:`quarter`,dots:1}],barAfter:`single`},{measure:28,symbols:[{kind:`rest`,duration:`quarter`,dots:1}],barAfter:`single`},{measure:29,symbols:[{kind:`rest`,duration:`quarter`,dots:1}],barAfter:`single`},{measure:30,symbols:[{kind:`rest`,duration:`quarter`,dots:1}],barAfter:`single`},{measure:31,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`Bb4`}],duration:`eighth`,dots:1},{kind:`note`,pitches:[{name:`Bb4`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:32,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`quarter`}]},{measure:32,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`eighth`}],barAfter:`single`},{measure:33,symbols:[{kind:`note`,pitches:[{name:`Eb5`}],duration:`quarter`}]},{measure:33,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`eighth`}],barAfter:`single`},{measure:34,symbols:[{kind:`note`,pitches:[{name:`Eb5`}],duration:`quarter`,dots:1}],barAfter:`single`},{measure:35,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`Bb4`}],duration:`eighth`,dots:1},{kind:`note`,pitches:[{name:`Bb4`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:36,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`quarter`}]},{measure:36,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`eighth`}],barAfter:`single`},{measure:37,symbols:[{kind:`note`,pitches:[{name:`Eb5`}],duration:`quarter`}]},{measure:37,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`eighth`}],barAfter:`single`},{measure:38,symbols:[{kind:`note`,pitches:[{name:`Eb5`}],duration:`quarter`,dots:1}],barAfter:`single`},{measure:39,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`eighth`},{kind:`note`,pitches:[{name:`C5`}],duration:`eighth`,dots:1},{kind:`note`,pitches:[{name:`C5`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:40,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`quarter`}]},{measure:40,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`eighth`}],barAfter:`single`},{measure:41,symbols:[{kind:`note`,pitches:[{name:`A4`,displayAccidental:`natural`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`Bb4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`C5`}],duration:`sixteenth`}],beam:!0},{measure:41,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`Eb5`}],duration:`sixteenth`,dots:1},{kind:`note`,pitches:[{name:`D5`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:42,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`quarter`,dots:1}],barAfter:`single`},{measure:43,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`eighth`},{kind:`note`,pitches:[{name:`C5`}],duration:`eighth`,dots:1},{kind:`note`,pitches:[{name:`D5`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:44,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`quarter`}]},{measure:44,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`eighth`}],barAfter:`single`},{measure:45,symbols:[{kind:`note`,pitches:[{name:`Ab4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`Bb4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`C5`}],duration:`sixteenth`}],beam:!0},{measure:45,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`Eb5`}],duration:`sixteenth`,dots:1},{kind:`note`,pitches:[{name:`D5`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:46,symbols:[{kind:`note`,pitches:[{name:`Eb5`}],duration:`quarter`}]},{measure:46,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`}],barAfter:`single`},{measure:47,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`G4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`Ab4`}],duration:`sixteenth`}],beam:!0},{measure:47,symbols:[{kind:`note`,pitches:[{name:`A4`,displayAccidental:`natural`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`Bb4`}],duration:`sixteenth`,dots:1},{kind:`note`,pitches:[{name:`A4`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:48,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`quarter`}]},{measure:48,symbols:[{kind:`note`,pitches:[{name:`Eb4`}],duration:`eighth`}]}]},Jo={schemaVersion:3,id:`schubert-standchen`,shortName:`Schubert Ständchen`,composer:`Franz Schubert`,work:`Schwanengesang, D. 957`,movement:`No. 4. Ständchen`,tempo:72,meter:[3,4],clef:`treble`,keySignatureFifths:-1,source:{provider:`OpenScore Lieder Corpus`,license:`CC0 1.0`,landingPageUrl:`https://musescore.com/openscore-lieder-corpus/scores/5004835`,url:`https://raw.githubusercontent.com/OpenScore/Lieder/main/scores/Schubert,_Franz/Schwanengesang,_D.957/4_St%C3%A4ndchen/lc5004835.mxl`,format:`MusicXML`,downloadSha256:`11f8bd4edfd11dc303d4b46d480cf110cb7015af303abf0d3848c40984c202a1`,retrievedOn:`2026-07-31`,sourceFile:`lc5004835.mxl`,part:`voice / P1 (Voice)`,selection:`measures 1–38`,transposeSemitones:0},units:[{measure:5,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`Bb4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`}],beam:!0},{measure:5,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`quarter`,dots:1}]},{measure:5,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`}],barAfter:`single`},{measure:6,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`}],beam:!0},{measure:6,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`quarter`}]},{measure:6,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`}]},{measure:6,symbols:[{kind:`rest`,duration:`eighth`}],barAfter:`single`},{measure:7,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`quarter`,dots:1}]},{measure:7,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`F4`}],duration:`eighth`}],beam:!0},{measure:7,symbols:[{kind:`note`,pitches:[{name:`E4`}],duration:`eighth`}],barAfter:`single`},{measure:8,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`half`}]},{measure:8,symbols:[{kind:`rest`,duration:`quarter`}],barAfter:`single`},{measure:9,symbols:[{kind:`rest`,duration:`half`,dots:1}],barAfter:`single`},{measure:10,symbols:[{kind:`rest`,duration:`half`,dots:1}],barAfter:`single`},{measure:11,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`Bb4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`}],beam:!0},{measure:11,symbols:[{kind:`note`,pitches:[{name:`F5`}],duration:`quarter`,dots:1}]},{measure:11,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`}],barAfter:`single`},{measure:12,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`}],beam:!0},{measure:12,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`quarter`,dots:1}]},{measure:12,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`eighth`}],barAfter:`single`},{measure:13,symbols:[{kind:`note`,pitches:[{name:`C5`}],duration:`quarter`,dots:1}]},{measure:13,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`Bb4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`}],beam:!0},{measure:13,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`}],barAfter:`single`},{measure:14,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`half`}]},{measure:14,symbols:[{kind:`rest`,duration:`quarter`}],barAfter:`single`},{measure:15,symbols:[{kind:`rest`,duration:`half`,dots:1}],barAfter:`single`},{measure:16,symbols:[{kind:`rest`,duration:`half`,dots:1}],barAfter:`single`},{measure:17,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`,dots:1},{kind:`note`,pitches:[{name:`C#5`,displayAccidental:`sharp`}],duration:`sixteenth`}],beam:!0},{measure:17,symbols:[{kind:`note`,pitches:[{name:`F5`}],duration:`quarter`,dots:1}]},{measure:17,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`eighth`}],barAfter:`single`},{measure:18,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`eighth`,dots:1},{kind:`note`,pitches:[{name:`A4`}],duration:`sixteenth`}],beam:!0},{measure:18,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`quarter`,dots:1}]},{measure:18,symbols:[{kind:`note`,pitches:[{name:`D4`}],duration:`eighth`}],barAfter:`single`},{measure:19,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`sixteenth`,grace:!0},{kind:`note`,pitches:[{name:`C5`}],duration:`sixteenth`,grace:!0},{kind:`note`,pitches:[{name:`Bb4`}],duration:`eighth`}],beam:!0},{measure:19,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`},{kind:`note`,pitches:[{name:`Bb4`}],duration:`eighth`}],beam:!0},{measure:19,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`quarter`,dots:1}]},{measure:19,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`eighth`}],barAfter:`single`},{measure:20,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`half`,dots:1}],barAfter:`single`},{measure:21,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`sixteenth`,grace:!0},{kind:`note`,pitches:[{name:`A4`}],duration:`sixteenth`,grace:!0},{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`}],beam:!0},{measure:21,symbols:[{kind:`note`,pitches:[{name:`F#4`,displayAccidental:`sharp`}],duration:`eighth`},{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`}],beam:!0},{measure:21,symbols:[{kind:`note`,pitches:[{name:`Bb4`}],duration:`quarter`,dots:1}]},{measure:21,symbols:[{kind:`note`,pitches:[{name:`G4`}],duration:`eighth`}],barAfter:`single`},{measure:22,symbols:[{kind:`note`,pitches:[{name:`F4`}],duration:`half`,dots:1}],barAfter:`single`},{measure:23,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`,dots:1},{kind:`note`,pitches:[{name:`C#5`,displayAccidental:`sharp`}],duration:`sixteenth`}],beam:!0},{measure:23,symbols:[{kind:`note`,pitches:[{name:`F5`}],duration:`quarter`,dots:1}]},{measure:23,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`eighth`}],barAfter:`single`},{measure:24,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`eighth`,dots:1},{kind:`note`,pitches:[{name:`A4`}],duration:`sixteenth`}],beam:!0},{measure:24,symbols:[{kind:`note`,pitches:[{name:`F#4`,displayAccidental:`sharp`}],duration:`quarter`,dots:1}]},{measure:24,symbols:[{kind:`note`,pitches:[{name:`D4`}],duration:`eighth`}],barAfter:`single`},{measure:25,symbols:[{kind:`note`,pitches:[{name:`B4`,displayAccidental:`natural`}],duration:`sixteenth`,grace:!0},{kind:`note`,pitches:[{name:`C#5`,displayAccidental:`sharp`}],duration:`sixteenth`,grace:!0},{kind:`note`,pitches:[{name:`B4`}],duration:`eighth`}],beam:!0},{measure:25,symbols:[{kind:`note`,pitches:[{name:`A#4`,displayAccidental:`sharp`}],duration:`eighth`},{kind:`note`,pitches:[{name:`B4`}],duration:`eighth`}],beam:!0},{measure:25,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`quarter`,dots:1}]},{measure:25,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`eighth`}],barAfter:`single`},{measure:26,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`half`,dots:1}],barAfter:`single`},{measure:27,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`eighth`},{kind:`note`,pitches:[{name:`D#5`,displayAccidental:`sharp`}],duration:`eighth`},{kind:`note`,pitches:[{name:`E5`}],duration:`eighth`}],beam:!0},{measure:27,symbols:[{kind:`note`,pitches:[{name:`G5`}],duration:`quarter`,dots:1}]},{measure:27,symbols:[{kind:`note`,pitches:[{name:`C#5`,displayAccidental:`sharp`}],duration:`eighth`}],barAfter:`single`},{measure:28,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`half`,dots:1}],barAfter:`single`},{measure:29,symbols:[{kind:`rest`,duration:`half`,dots:1}],barAfter:`single`},{measure:30,symbols:[{kind:`rest`,duration:`half`,dots:1}],barAfter:`single`},{measure:31,symbols:[{kind:`rest`,duration:`half`,dots:1}],barAfter:`single`},{measure:32,symbols:[{kind:`rest`,duration:`half`,dots:1}],barAfter:`single`},{measure:33,symbols:[{kind:`rest`,duration:`half`,dots:1}],barAfter:`single`},{measure:34,symbols:[{kind:`rest`,duration:`half`,dots:1}],barAfter:`single`},{measure:35,symbols:[{kind:`rest`,duration:`half`,dots:1}],barAfter:`single`},{measure:36,symbols:[{kind:`rest`,duration:`half`,dots:1}],barAfter:`single`},{measure:37,symbols:[{kind:`note`,pitches:[{name:`D5`}],duration:`half`,dots:1}],barAfter:`single`},{measure:38,symbols:[{kind:`note`,pitches:[{name:`A4`}],duration:`eighth`,dots:1},{kind:`note`,pitches:[{name:`A4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`C#5`,displayAccidental:`sharp`}],duration:`eighth`,dots:1}],beam:!0},{measure:38,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`E5`}],duration:`eighth`,dots:1},{kind:`note`,pitches:[{name:`E5`}],duration:`sixteenth`}],beam:!0}]},Yo={schemaVersion:3,id:`schumann-mondnacht`,shortName:`Schumann Mondnacht`,composer:`Robert Schumann`,work:`Liederkreis, Op. 39`,movement:`No. 5. Mondnacht`,tempo:60,meter:[3,8],clef:`treble`,keySignatureFifths:4,source:{provider:`OpenScore Lieder Corpus`,license:`CC0 1.0`,landingPageUrl:`https://musescore.com/openscore-lieder-corpus/scores/4987640`,url:`https://raw.githubusercontent.com/OpenScore/Lieder/main/scores/Schumann,_Robert/Liederkreis,_Op.39/5_Mondnacht/lc4987640.mxl`,format:`MusicXML`,downloadSha256:`05454fafdddaa39171e96fac68b27dcaab49e8221a2ab25f0163245b60fc83ba`,retrievedOn:`2026-07-31`,sourceFile:`lc4987640.mxl`,part:`voice / P1 (Voice)`,selection:`measures 1–45`,transposeSemitones:0},units:[{measure:6,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`eighth`}],barAfter:`single`},{measure:7,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`quarter`}]},{measure:7,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`eighth`}],barAfter:`single`},{measure:8,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`eighth`},{kind:`note`,pitches:[{name:`C#5`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`D#5`}],duration:`sixteenth`}],beam:!0},{measure:8,symbols:[{kind:`note`,pitches:[{name:`E#5`,displayAccidental:`sharp`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`F#5`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:9,symbols:[{kind:`note`,pitches:[{name:`F#5`}],duration:`quarter`}]},{measure:9,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`eighth`}],barAfter:`single`},{measure:10,symbols:[{kind:`rest`,duration:`eighth`}]},{measure:10,symbols:[{kind:`rest`,duration:`eighth`}]},{measure:10,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`eighth`}],barAfter:`single`},{measure:11,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`quarter`}]},{measure:11,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`eighth`}],barAfter:`single`},{measure:12,symbols:[{kind:`note`,pitches:[{name:`G#4`}],duration:`quarter`}]},{measure:12,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`E4`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:13,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`,dots:1}],barAfter:`single`},{measure:14,symbols:[{kind:`rest`,duration:`quarter`,dots:1}],barAfter:`single`},{measure:15,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`eighth`},{kind:`note`,pitches:[{name:`C#5`}],duration:`eighth`}],beam:!0},{measure:15,symbols:[{kind:`rest`,duration:`sixteenth`}]},{measure:15,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`sixteenth`}],barAfter:`single`},{measure:16,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`eighth`},{kind:`note`,pitches:[{name:`C#5`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`D#5`}],duration:`sixteenth`}],beam:!0},{measure:16,symbols:[{kind:`note`,pitches:[{name:`E#5`,displayAccidental:`sharp`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`F#5`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:17,symbols:[{kind:`note`,pitches:[{name:`F#5`}],duration:`quarter`}]},{measure:17,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`eighth`}],barAfter:`single`},{measure:18,symbols:[{kind:`rest`,duration:`eighth`}]},{measure:18,symbols:[{kind:`rest`,duration:`eighth`}]},{measure:18,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`eighth`}],barAfter:`single`},{measure:19,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`quarter`}]},{measure:19,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`eighth`}],barAfter:`single`},{measure:20,symbols:[{kind:`note`,pitches:[{name:`G#4`}],duration:`quarter`}]},{measure:20,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`E4`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:21,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`,dots:1}],barAfter:`single`},{measure:22,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`}]},{measure:22,symbols:[{kind:`rest`,duration:`eighth`}],barAfter:`single`},{measure:23,symbols:[{kind:`rest`,duration:`quarter`,dots:1}],barAfter:`single`},{measure:24,symbols:[{kind:`rest`,duration:`quarter`,dots:1}],barAfter:`single`},{measure:25,symbols:[{kind:`rest`,duration:`quarter`,dots:1}],barAfter:`single`},{measure:26,symbols:[{kind:`rest`,duration:`quarter`,dots:1}],barAfter:`single`},{measure:27,symbols:[{kind:`rest`,duration:`quarter`,dots:1}],barAfter:`single`},{measure:28,symbols:[{kind:`rest`,duration:`eighth`}]},{measure:28,symbols:[{kind:`rest`,duration:`eighth`}]},{measure:28,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`eighth`}],barAfter:`single`},{measure:29,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`quarter`}]},{measure:29,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`eighth`}],barAfter:`single`},{measure:30,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`eighth`},{kind:`note`,pitches:[{name:`C#5`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`D#5`}],duration:`sixteenth`}],beam:!0},{measure:30,symbols:[{kind:`note`,pitches:[{name:`E#5`,displayAccidental:`sharp`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`F#5`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:31,symbols:[{kind:`note`,pitches:[{name:`F#5`}],duration:`quarter`}]},{measure:31,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`eighth`}],barAfter:`single`},{measure:32,symbols:[{kind:`rest`,duration:`eighth`}]},{measure:32,symbols:[{kind:`rest`,duration:`eighth`}]},{measure:32,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`eighth`}],barAfter:`single`},{measure:33,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`quarter`}]},{measure:33,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`eighth`}],barAfter:`single`},{measure:34,symbols:[{kind:`note`,pitches:[{name:`G#4`}],duration:`quarter`}]},{measure:34,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`E4`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:35,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`,dots:1}],barAfter:`single`},{measure:36,symbols:[{kind:`rest`,duration:`eighth`}]},{measure:36,symbols:[{kind:`rest`,duration:`eighth`}]},{measure:36,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`eighth`}],barAfter:`single`},{measure:37,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`quarter`}]},{measure:37,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`eighth`}],barAfter:`single`},{measure:38,symbols:[{kind:`note`,pitches:[{name:`C#5`}],duration:`eighth`},{kind:`note`,pitches:[{name:`C#5`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`D#5`}],duration:`sixteenth`}],beam:!0},{measure:38,symbols:[{kind:`note`,pitches:[{name:`E#5`,displayAccidental:`sharp`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`F#5`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:39,symbols:[{kind:`note`,pitches:[{name:`F#5`}],duration:`quarter`}]},{measure:39,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`eighth`}],barAfter:`single`},{measure:40,symbols:[{kind:`rest`,duration:`eighth`}]},{measure:40,symbols:[{kind:`rest`,duration:`eighth`}]},{measure:40,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`eighth`}],barAfter:`single`},{measure:41,symbols:[{kind:`note`,pitches:[{name:`E5`}],duration:`quarter`}]},{measure:41,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`eighth`}],barAfter:`single`},{measure:42,symbols:[{kind:`note`,pitches:[{name:`G#4`}],duration:`quarter`}]},{measure:42,symbols:[{kind:`note`,pitches:[{name:`F#4`}],duration:`sixteenth`},{kind:`note`,pitches:[{name:`E4`}],duration:`sixteenth`}],beam:!0,barAfter:`single`},{measure:43,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`,dots:1}],barAfter:`single`},{measure:44,symbols:[{kind:`rest`,duration:`eighth`}]},{measure:44,symbols:[{kind:`rest`,duration:`eighth`}]},{measure:44,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`eighth`}],barAfter:`single`},{measure:45,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`quarter`}]},{measure:45,symbols:[{kind:`note`,pitches:[{name:`B4`}],duration:`eighth`}]}]},Xo={C:0,D:1,E:2,F:3,G:4,A:5,B:6},Zo=30;function Qo(e){let t=/^([A-G])(bb|##|#|b|n)?(\d)$/u.exec(e.name);if(t===null)throw Error(`Unsupported score pitch: ${e.name}`);let n=t[1]??`C`,r=t[2]??``,i=Number(t[3]??`4`),a=r===`bb`?`double-flat`:r===`b`?`flat`:r===`n`?`natural`:r===`#`?`sharp`:r===`##`?`double-sharp`:void 0;return{staffStep:i*7+(Xo[n]??0)-Zo,alteration:a===`double-flat`?-2:a===`flat`?-1:a===`sharp`?1:a===`double-sharp`?2:0,...e.displayAccidental===void 0?{}:{displayAccidental:e.displayAccidental}}}function $o(e){return e.kind===`rest`?{kind:`rest`,duration:e.duration,...e.dots===void 0?{}:{dots:e.dots}}:{kind:`note`,pitches:e.pitches.map(Qo),duration:e.duration,...e.dots===void 0?{}:{dots:e.dots},...e.grace===void 0?{}:{grace:e.grace}}}function es(e){if(e.schemaVersion!==3)throw Error(`Unsupported score source schema: ${String(e.schemaVersion)}`);return{id:e.id,shortName:e.shortName,composer:e.composer,work:e.work,movement:e.movement,tempo:e.tempo,meter:e.meter,clef:e.clef,keySignatureFifths:e.keySignatureFifths,source:e.source,units:e.units.map((t,n)=>({id:`${e.id}:${n+1}`,symbols:t.symbols.map($o),width:Math.max(40,18+t.symbols.length*14),label:`Measure ${t.measure}, phrase ${n+1}`,...t.beam===void 0?{}:{beam:t.beam},...t.barAfter===void 0?{}:{barAfter:t.barAfter}}))}}var ts=[Vo,Ho,Wo,Jo,Go,Ko,qo,Yo,Bo,Uo,Ro,zo].map(es);function ns(e){let t=ts.find(t=>t.id===e);if(t===void 0)throw Error(`Unknown score theme: ${e}`);return t}[...[`whole`,`half`,`quarter`,`eighth`,`sixteenth`,`thirty-second`].map((e,t)=>({id:`rhythm:rest:${e}`,symbols:[{kind:`rest`,duration:e,...t===3?{dots:1}:{}}],...e===`thirty-second`?{barAfter:`final`}:{}}))],[`staccato`,`tenuto`,`accent`,`marcato`,`fermata`].map((e,t)=>({kind:`note`,pitches:[{staffStep:2+t%3*2}],duration:`quarter`,articulations:[e]}));function rs({backgroundImageSrc:e,backgroundPattern:t,children:n,className:r,...i}){return(0,I.jsxs)(`main`,{className:B(`product-page`,t===`dots`&&`has-dot-background`,r),...i,children:[e===void 0?null:(0,I.jsx)(`img`,{alt:``,"aria-hidden":`true`,className:`product-page-decor`,decoding:`async`,draggable:!1,src:e}),n]})}function is({brand:e,actions:t,className:n,...r}){return(0,I.jsxs)(`div`,{className:B(`product-appbar`,n),...r,children:[e,t===void 0?null:(0,I.jsx)(`div`,{className:`product-appbar-actions`,children:t})]})}function as({children:e,className:t,...n}){return(0,I.jsx)(`section`,{className:B(`product-shell`,t),...n,children:e})}function os({children:e,className:t,...n}){return(0,I.jsx)(`section`,{className:B(`auth-shell`,t),...n,children:e})}function ss({children:e,className:t,...n}){return(0,I.jsx)(`main`,{className:B(`workspace-page`,t),...n,children:e})}function cs({sidebar:e,children:t,className:n,...r}){return(0,I.jsxs)(`div`,{className:B(`workspace-shell`,n),...r,children:[e,(0,I.jsx)(`section`,{className:`workspace-main`,children:t})]})}function ls({label:e,imageUrl:t,initials:n,icon:r,tone:i=`neutral`,online:a=!1,plain:o=!1,count:s,className:c,...l}){let[u,d]=(0,F.useState)(!1),f=s===void 0?void 0:`+${s}`,p=t!==void 0&&!u;return(0,F.useEffect)(()=>{d(!1)},[t]),(0,I.jsx)(`span`,{"aria-label":e,title:l.title??e,className:B(`avatar`,o?`avatar-tone-plain`:`avatar-tone-${i}`,a?`is-online`:void 0,s===void 0?void 0:`is-count`,c),...l,children:f??(p?(0,I.jsx)(`img`,{className:`avatar-image`,src:t,alt:``,referrerPolicy:`no-referrer`,onError:()=>{d(!0)}}):r??(0,I.jsx)(`span`,{className:`avatar-initials`,children:n??`?`}))})}function us({children:e,className:t,...n}){return(0,I.jsx)(`div`,{className:B(`avatar-stack`,t),...n,children:e})}var ds=Object.defineProperty,fs=(e,t)=>ds(e,`name`,{value:t,configurable:!0});function ps(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}fs(ps,`setRef`);function ms(...e){return t=>{let n=!1,r=e.map(e=>{let r=ps(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():ps(e[t],null)}}}}fs(ms,`composeRefs`);function hs(...e){return F.useCallback(ms(...e),e)}fs(hs,`useComposedRefs`);var gs=Object.defineProperty,_s=(e,t)=>gs(e,`name`,{value:t,configurable:!0});function vs(e){let t=F.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];Ds(r)&&typeof js==`function`&&(r=js(r._payload)),F.Children.forEach(r,e=>{if(Ts(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;Ds(n)&&typeof js==`function`&&(n=js(n._payload)),a=Ss(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=F.cloneElement(a,void 0,s):!o&&F.Children.count(r)===1&&F.isValidElement(r)&&(a=r);let c=a?ws(a):void 0,l=hs(n,c);if(!a){if(r||r===0)throw Error(o?As(e):ks(e));return r}let u=Cs(i,a.props??{});return a.type!==F.Fragment&&(u.ref=n?l:c),F.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}_s(vs,`createSlot`);var ys=vs(`Slot`),bs=Symbol.for(`radix.slottable`);function xs(e){let t=_s(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=bs,t}_s(xs,`createSlottable`);var Ss=_s((e,t)=>{if(`child`in e.props){let t=e.props.child;return F.isValidElement(t)?F.cloneElement(t,void 0,e.props.children(t.props.children)):null}return F.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function Cs(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}_s(Cs,`mergeProps`);function ws(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}_s(ws,`getElementRef`);function Ts(e){return F.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===bs}_s(Ts,`isSlottable`);var Es=Symbol.for(`react.lazy`);function Ds(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Es&&`_payload`in e&&Os(e._payload)}_s(Ds,`isLazyComponent`);function Os(e){return typeof e==`object`&&!!e&&`then`in e}_s(Os,`isPromiseLike`);var ks=_s(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),As=_s(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),js=F.use,Ms={action:`action-button`,quiet:`quiet-button`,pill:`pill-action`,icon:`quiet-button icon-button`};function Ns({variant:e=`quiet`,asChild:t=!1,className:n,children:r,...i}){return(0,I.jsx)(t?ys:`button`,{className:B(Ms[e],n),...i,children:r})}function Ps({label:e,icon:t,className:n,...r}){return(0,I.jsx)(Ns,{...r,"aria-label":e,title:r.title??e,variant:`icon`,className:n,children:t})}function Fs(e){return(0,I.jsx)(Ns,{...e,variant:`action`})}function Is(e){return(0,I.jsx)(Ns,{...e,variant:`quiet`})}function Ls({tone:e=`neutral`,className:t,children:n,...r}){return(0,I.jsx)(`span`,{className:B(`scope-chip`,`is-${e}`,t),...r,children:n})}var Rs={todo:`neutral`,running:`sync`,pending:`warning`,done:`success`,failed:`error`};function zs({status:e,children:t,className:n,...r}){return(0,I.jsx)(Ls,{tone:Rs[e],className:B(`task-tag`,`is-${e}`,n),...r,children:t})}function Bs({children:e,content:t,contentId:n,disabledTrigger:r=!1,side:i=`top`,className:a,tabIndex:o,...s}){let c=(0,F.useId)(),l=n??c,u=e.props[`aria-describedby`],d=u===void 0?l:`${u} ${l}`;return(0,I.jsxs)(`span`,{className:B(`tooltip-trigger`,`is-${i}`,a),tabIndex:r?o??0:o,...r?{"aria-describedby":l}:{},...s,children:[(0,F.cloneElement)(e,{"aria-describedby":d}),(0,I.jsx)(`span`,{className:`tooltip-content`,id:l,role:`tooltip`,children:t})]})}function Vs({src:e,label:t=`Tutti`,className:n,...r}){return(0,I.jsx)(`span`,{"aria-label":t,className:B(`brand-logo`,n),role:r.role??`img`,...r,children:(0,I.jsx)(`img`,{src:e,alt:``,"aria-hidden":`true`})})}function Hs({logo:e,label:t=`Tutti Project Center`,className:n,...r}){return(0,I.jsx)(`button`,{...r,"aria-label":t,className:B(`tutti-brand`,n),type:r.type??`button`,children:e})}function Us({className:e,...t}){return(0,I.jsx)(`input`,{className:B(`input-shell`,e),...t})}function Ws({className:e,...t}){return(0,I.jsx)(`textarea`,{className:B(`input-shell`,`textarea-shell`,e),...t})}function Gs({value:e,options:t,onValueChange:n,maxVisibleOptions:r=8,defaultOpen:i=!1,className:a,onBlur:o,onClick:s,onFocus:c,onKeyDown:l,...u}){let d=(0,F.useId)(),f=(0,F.useRef)(null),[p,m]=(0,F.useState)(i),[h,g]=(0,F.useState)(-1),_=e.trim().toLocaleLowerCase(),v=(0,F.useMemo)(()=>_===``||t.some(e=>e.toLocaleLowerCase()===_)?[...t]:t.filter(e=>e.toLocaleLowerCase().includes(_)),[_,t]),y=p&&v.length>0,b=Math.min(10,Math.max(1,Math.floor(r))),x=h<0?void 0:v[h];(0,F.useEffect)(()=>{if(v.length===0){g(-1);return}g(e=>Math.min(Math.max(e,0),v.length-1))},[v.length]),(0,F.useEffect)(()=>{!y||h<0||document.getElementById(`${d}-${h}`)?.scrollIntoView({block:`nearest`})},[h,d,y]);function S(e){n(e),m(!1),g(-1)}function C(e){if(l?.(e),!e.defaultPrevented)switch(e.key){case`ArrowDown`:e.preventDefault(),m(!0),g(e=>v.length===0?-1:Math.min(e+1,v.length-1));break;case`ArrowUp`:e.preventDefault(),m(!0),g(e=>v.length===0?-1:e<=0?v.length-1:e-1);break;case`Enter`:y&&x!==void 0&&(e.preventDefault(),S(x));break;case`Escape`:y&&(e.preventDefault(),e.stopPropagation(),m(!1),g(-1));break;case`Tab`:m(!1),g(-1);break}}return(0,I.jsxs)(`span`,{className:`combobox-shell`,ref:f,style:{"--combobox-visible-options":b},children:[(0,I.jsx)(Us,{...u,"aria-activedescendant":y&&h>=0?`${d}-${h}`:void 0,"aria-autocomplete":`list`,"aria-controls":d,"aria-expanded":y,className:B(`combobox-input`,a),role:`combobox`,value:e,onBlur:e=>{o?.(e),f.current?.contains(e.relatedTarget)||(m(!1),g(-1))},onChange:e=>{n(e.target.value),m(!0),g(0)},onClick:e=>{s?.(e),m(!0),g(0)},onFocus:e=>{c?.(e),m(!0),g(0)},onKeyDown:C}),y?(0,I.jsx)(`span`,{className:`combobox-listbox`,id:d,role:`listbox`,children:v.map((t,n)=>(0,I.jsx)(`span`,{"aria-selected":t===e,className:B(`combobox-option`,n===h?`is-active`:void 0),id:`${d}-${n}`,role:`option`,onClick:e=>{e.preventDefault(),S(t)},onMouseDown:e=>e.preventDefault(),onMouseEnter:()=>g(n),children:t},t))}):null]})}function Ks({children:e,className:t,...n}){return(0,I.jsx)(`span`,{className:B(`field-label`,t),...n,children:e})}function qs({label:e,children:t,className:n,...r}){return(0,I.jsxs)(`label`,{className:B(`form-field`,n),...r,children:[(0,I.jsx)(Ks,{children:e}),t]})}function Js({tone:e=`error`,className:t,role:n,...r}){return(0,I.jsx)(`p`,{className:B(e===`error`?`form-error`:`form-note`,t),role:n??(e===`error`?`alert`:void 0),...r})}function Ys({icon:e,className:t,children:n,rel:r=`noopener noreferrer`,target:i=`_blank`,...a}){return(0,I.jsxs)(`a`,{className:B(`inline-help-link`,t),rel:r,target:i,...a,children:[(0,I.jsx)(`span`,{children:n}),e]})}function Xs({brand:e,children:t,status:n,footer:r,mobileTitle:i,mobileMeta:a,mobileAction:o,className:s,...c}){return(0,I.jsxs)(`aside`,{className:B(`sidebar`,s),"aria-label":`Workspace navigation`,...c,children:[(0,I.jsx)(`div`,{className:`workspace-logo`,children:e}),i===void 0&&a===void 0?null:(0,I.jsxs)(`div`,{className:`workspace-mobile-context`,children:[i===void 0?null:(0,I.jsx)(`strong`,{children:i}),a===void 0?null:(0,I.jsx)(`span`,{children:a})]}),n===void 0?null:(0,I.jsx)(`nav`,{className:`sidebar-status-group`,"aria-label":`Status shortcuts`,children:n}),o===void 0?null:(0,I.jsx)(`div`,{className:`workspace-mobile-action`,children:o}),(0,I.jsx)(`nav`,{className:`sidebar-nav sidebar-primary-group`,"aria-label":`Pages`,children:t}),r===void 0?null:(0,I.jsx)(`nav`,{className:`sidebar-footer`,"aria-label":`Workspace utilities`,children:r})]})}function Zs({icon:e,label:t,className:n,...r}){return(0,I.jsx)(Bs,{content:t,"data-label":t,side:`right`,children:(0,I.jsx)(`a`,{...r,"aria-label":t,"data-label":t,className:B(`sidebar-button`,n),children:e})})}function Qs({icon:e,label:t,active:n=!1,badge:r=!1,className:i,...a}){let o=typeof r==`object`?r:void 0,s=o?.label??`Unread updates`,c=o?.variant??`dot`,l=r===!1?t:`${t}, ${s}`;return(0,I.jsx)(Bs,{content:t,"data-label":t,disabledTrigger:a.disabled===!0,side:`right`,children:(0,I.jsxs)(`button`,{...a,"aria-label":l,"data-label":t,className:B(`sidebar-button`,n?`is-active`:void 0,i),type:a.type??`button`,children:[e,r===!1?null:(0,I.jsx)(`span`,{className:B(`sidebar-button-badge`,c===`pill`?`is-pill`:void 0),"aria-hidden":`true`,children:c===`pill`?o?.text:null})]})})}function $s({icon:e,label:t,tone:n,className:r,...i}){return(0,I.jsx)(Bs,{content:t,"data-label":t,disabledTrigger:i.disabled===!0,side:`right`,children:(0,I.jsx)(`button`,{...i,"aria-label":t,"data-label":t,className:B(`sidebar-status-entry`,`is-${n}`,r),type:i.type??`button`,children:e})})}var ec=Object.defineProperty,tc=(e,t)=>ec(e,`name`,{value:t,configurable:!0}),nc=!!(typeof window<`u`&&window.document&&window.document.createElement);function rc(e,t,{checkForDefaultPrevented:n=!0}={}){return tc(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}tc(rc,`composeEventHandlers`);function ic(e){if(!nc)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}tc(ic,`getOwnerWindow`);function ac(e){if(!nc)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}tc(ac,`getOwnerDocument`);function oc(e,t=!1){let{activeElement:n}=ac(e);if(!n?.nodeName)return null;if(sc(n)&&n.contentDocument)return oc(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=ac(n).getElementById(e);if(t)return t}}return n}tc(oc,`getActiveElement`);function sc(e){return e.tagName===`IFRAME`}tc(sc,`isFrame`);var cc=Object.defineProperty,lc=(e,t)=>cc(e,`name`,{value:t,configurable:!0});function uc(e,t){let n=F.createContext(t);n.displayName=e+`Context`;let r=lc(e=>{let{children:t,...r}=e,i=F.useMemo(()=>r,Object.values(r));return(0,I.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=F.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return lc(i,`useContext`),[r,i]}lc(uc,`createContext`);function dc(e,t=[]){let n=[];function r(t,r){let i=F.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=lc(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=F.useMemo(()=>o,Object.values(o));return(0,I.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=F.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return lc(s,`useContext`),[o,s]}lc(r,`createContext`);let i=lc(()=>{let t=n.map(e=>F.createContext(e));return lc(function(n){let r=n?.[e]||t;return F.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,fc(i,...t)]}lc(dc,`createContextScope`);function fc(...e){let t=e[0];if(e.length===1)return t;let n=lc(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return lc(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return F.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}lc(fc,`composeContextScopes`);var pc=globalThis?.document?F.useLayoutEffect:()=>{},mc=Object.defineProperty,hc=(e,t)=>mc(e,`name`,{value:t,configurable:!0}),gc=F.useId||(()=>void 0),_c=0;function vc(e){let[t,n]=F.useState(gc());return pc(()=>{e||n(e=>e??String(_c++))},[e]),e||(t?`radix-${t}`:``)}hc(vc,`useId`);var yc=Object.defineProperty,bc=(e,t)=>yc(e,`name`,{value:t,configurable:!0}),xc=F.useEffectEvent,Sc=F.useInsertionEffect;function Cc(e){if(typeof xc==`function`)return xc(e);let t=F.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof Sc==`function`?Sc(()=>{t.current=e}):pc(()=>{t.current=e}),F.useMemo(()=>((...e)=>t.current?.(...e)),[])}bc(Cc,`useEffectEvent`);var wc=Object.defineProperty,Tc=(e,t)=>wc(e,`name`,{value:t,configurable:!0}),Ec=F.useInsertionEffect||pc;function Dc({prop:e,defaultProp:t,onChange:n=Tc(()=>{},`onChange`),caller:r}){let[i,a,o]=Oc({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,F.useCallback(t=>{if(s){let n=kc(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}Tc(Dc,`useControllableState`);function Oc({defaultProp:e,onChange:t}){let[n,r]=F.useState(e),i=F.useRef(n),a=F.useRef(t);return Ec(()=>{a.current=t},[t]),F.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}Tc(Oc,`useUncontrolledState`);function kc(e){return typeof e==`function`}Tc(kc,`isFunction`);var Ac=Symbol(`RADIX:SYNC_STATE`);function jc(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=Cc(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=F.useReducer((t,n)=>{if(n.type===Ac)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),p=d.state,m=F.useRef(p);F.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=F.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return F.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:Ac,state:i})},[i,d.state,c]),[h,f]}Tc(jc,`useControllableStateReducer`);var Mc=l(h(),1),Nc=Object.defineProperty,Pc=(e,t)=>Nc(e,`name`,{value:t,configurable:!0}),Fc=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=vs(`Primitive.${t}`),r=F.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,I.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ic(e,t){e&&Mc.flushSync(()=>e.dispatchEvent(t))}Pc(Ic,`dispatchDiscreteCustomEvent`);var Lc=Object.defineProperty,Rc=(e,t)=>Lc(e,`name`,{value:t,configurable:!0});function zc(e){let t=F.useRef(e);return F.useEffect(()=>{t.current=e}),F.useMemo(()=>((...e)=>t.current?.(...e)),[])}Rc(zc,`useCallbackRef`);var Bc=Object.defineProperty,Vc=(e,t)=>Bc(e,`name`,{value:t,configurable:!0}),Hc=`dismissableLayer.update`,Uc=`dismissableLayer.pointerDownOutside`,Wc=`dismissableLayer.focusOutside`,Gc,Kc=F.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),qc=F.forwardRef(Vc(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=F.useContext(Kc),[d,f]=F.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=F.useState({}),h=hs(t,f),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=_?g.indexOf(_):-1,y=d?g.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,S=F.useRef(!1),C=Xc(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:S,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:F.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return x&&!t},[u.branches,x])}),w=Zc(e=>{if(r&&S.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),T=d?y===g.length-1:!1,E=zc(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return F.useEffect(()=>{if(T)return p.addEventListener(`keydown`,E,{capture:!0}),()=>p.removeEventListener(`keydown`,E,{capture:!0})},[p,T,E]),F.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Gc=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),Qc(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=Gc))}},[d,p,n,u]),F.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),Qc())},[d,u]),F.useEffect(()=>{let e=Vc(()=>m({}),`handleUpdate`);return document.addEventListener(Hc,e),()=>document.removeEventListener(Hc,e)},[]),(0,I.jsx)(Fc.div,{...l,ref:h,style:{pointerEvents:b?x?`auto`:`none`:void 0,...e.style},onFocusCapture:rc(e.onFocusCapture,w.onFocusCapture),onBlurCapture:rc(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:rc(e.onPointerDownCapture,C.onPointerDownCapture)})},`DismissableLayer`));function Jc(){let e=F.useContext(Kc),[t,n]=F.useState(null);return F.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}Vc(Jc,`useDismissableLayerSurface`);var Yc=Vc(()=>!0,`IS_TRUE`);function Xc(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=Yc}=t,s=zc(e),c=F.useRef(!1),l=F.useRef(!1),u=F.useRef(new Map),d=F.useRef(()=>{});return F.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}Vc(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}Vc(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}Vc(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}Vc(p,`handleInteractionBubble`);let m=Vc(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||$c(Uc,s,p,{discrete:!0})};if(Vc(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:Vc(()=>c.current=!0,`onPointerDownCapture`)}}Vc(Xc,`usePointerDownOutside`);function Zc(e,t=globalThis?.document){let n=zc(e),r=F.useRef(!1);return F.useEffect(()=>{let e=Vc(e=>{e.target&&!r.current&&$c(Wc,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:Vc(()=>r.current=!0,`onFocusCapture`),onBlurCapture:Vc(()=>r.current=!1,`onBlurCapture`)}}Vc(Zc,`useFocusOutside`);function Qc(){let e=new CustomEvent(Hc);document.dispatchEvent(e)}Vc(Qc,`dispatchUpdate`);function $c(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?Ic(i,a):i.dispatchEvent(a)}Vc($c,`handleAndDispatchCustomEvent`);var el=Object.defineProperty,tl=(e,t)=>el(e,`name`,{value:t,configurable:!0}),nl=`focusScope.autoFocusOnMount`,rl=`focusScope.autoFocusOnUnmount`,il={bubbles:!1,cancelable:!0},al=F.forwardRef(tl(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=F.useState(null),l=zc(i),u=zc(a),d=F.useRef(null),f=hs(t,c),p=F.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;F.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:fl(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||fl(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&fl(s)};tl(e,`handleFocusIn`),tl(t,`handleFocusOut`),tl(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),F.useEffect(()=>{if(s){pl.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(nl,il);s.addEventListener(nl,l),s.dispatchEvent(t),t.defaultPrevented||(ol(gl(cl(s)),{select:!0}),document.activeElement===e&&fl(s))}return()=>{s.removeEventListener(nl,l),setTimeout(()=>{let t=new CustomEvent(rl,il);s.addEventListener(rl,u),s.dispatchEvent(t),t.defaultPrevented||fl(e??document.body,{select:!0}),s.removeEventListener(rl,u),pl.remove(p)},0)}}},[s,l,u,p]);let m=F.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=sl(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&fl(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&fl(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,I.jsx)(Fc.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})},`FocusScope`));function ol(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(fl(r,{select:t}),document.activeElement!==n)return}tl(ol,`focusFirst`);function sl(e){let t=cl(e);return[ll(t,e),ll(t.reverse(),e)]}tl(sl,`getTabbableEdges`);function cl(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:tl(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}tl(cl,`getTabbableCandidates`);function ll(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):ul(r,{upTo:t})))return r}tl(ll,`findVisible`);function ul(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}tl(ul,`isHidden`);function dl(e){return e instanceof HTMLInputElement&&`select`in e}tl(dl,`isSelectableInput`);function fl(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&dl(e)&&t&&e.select()}}tl(fl,`focus`);var pl=ml();function ml(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=hl(e,t),e.unshift(t)},remove(t){e=hl(e,t),e[0]?.resume()}}}tl(ml,`createFocusScopesStack`);function hl(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}tl(hl,`arrayRemove`);function gl(e){return e.filter(e=>e.tagName!==`A`)}tl(gl,`removeLinks`);var _l=Object.defineProperty,vl=F.forwardRef(((e,t)=>_l(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=F.useState(!1);pc(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?Mc.createPortal((0,I.jsx)(Fc.div,{...r,ref:t}),o):null},`Portal`)),yl=Object.defineProperty,bl=(e,t)=>yl(e,`name`,{value:t,configurable:!0});function xl(e,t){return F.useReducer((e,n)=>t[e][n]??e,e)}bl(xl,`useStateMachine`);var Sl=bl(e=>{let{present:t,children:n}=e,r=Cl(t),i=typeof n==`function`?n({present:r.isPresent}):F.Children.only(n),a=Tl(r.ref,Dl(i));return typeof n==`function`||r.isPresent?F.cloneElement(i,{ref:a}):null},`Presence`);function Cl(e){let[t,n]=F.useState(),r=F.useRef(null),i=F.useRef(e),a=F.useRef(`none`),o=F.useRef(void 0),[s,c]=xl(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return F.useEffect(()=>{s===`mounted`?(a.current=o.current??El(r.current),o.current=void 0):a.current=`none`},[s]),pc(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=El(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),pc(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=bl(a=>{let o=El(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=bl(e=>{e.target===t&&(a.current=El(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}else c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:F.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=El(t)}else r.current=null;n(e)},[])}}bl(Cl,`usePresence`);function wl(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}bl(wl,`setRef`);function Tl(...e){let t=F.useRef(e);return t.current=e,F.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=wl(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():wl(n[e],null)}}},[])}bl(Tl,`useStableComposedRefs`);function El(e){return e?.animationName||`none`}bl(El,`getAnimationName`);function Dl(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}bl(Dl,`getElementRef`);var Ol=Object.defineProperty,kl=(e,t)=>Ol(e,`name`,{value:t,configurable:!0}),Al=0,jl=null;function Ml(e){return Nl(),e.children}kl(Ml,`FocusGuards`);function Nl(){F.useEffect(()=>{jl||={start:Pl(),end:Pl()};let{start:e,end:t}=jl;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),Al++,()=>{Al===1&&(jl?.start.remove(),jl?.end.remove(),jl=null),Al=Math.max(0,Al-1)}},[])}kl(Nl,`useFocusGuards`);function Pl(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}kl(Pl,`createFocusGuard`);var Fl=function(){return Fl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Fl.apply(this,arguments)};function Il(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Ll(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Rl=`right-scroll-bar-position`,zl=`width-before-scroll-bar`,Bl=`with-scroll-bars-hidden`,Vl=`--removed-body-scroll-bar-size`;function Hl(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Ul(e,t){var n=(0,F.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Wl=typeof window<`u`?F.useLayoutEffect:F.useEffect,Gl=new WeakMap;function Kl(e,t){var n=Ul(t||null,function(t){return e.forEach(function(e){return Hl(e,t)})});return Wl(function(){var t=Gl.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Hl(e,null)}),i.forEach(function(e){r.has(e)||Hl(e,a)})}Gl.set(n,e)},[e]),n}function ql(e){return e}function Jl(e,t){t===void 0&&(t=ql);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function Yl(e){e===void 0&&(e={});var t=Jl(null);return t.options=Fl({async:!0,ssr:!1},e),t}var Xl=function(e){var t=e.sideCar,n=Il(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return F.createElement(r,Fl({},n))};Xl.isSideCarExport=!0;function Zl(e,t){return e.useMedium(t),Xl}var Ql=Yl(),$l=function(){},eu=F.forwardRef(function(e,t){var n=F.useRef(null),r=F.useState({onScrollCapture:$l,onWheelCapture:$l,onTouchMoveCapture:$l}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=Il(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=Kl([n,t]),C=Fl(Fl({},b),i);return F.createElement(F.Fragment,null,u&&F.createElement(x,{sideCar:Ql,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?F.cloneElement(F.Children.only(s),Fl(Fl({},C),{ref:S})):F.createElement(v,Fl({},C,{className:c,ref:S}),s))});eu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},eu.classNames={fullWidth:zl,zeroRight:Rl};var tu,nu=function(){if(tu)return tu;if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function ru(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=nu();return t&&e.setAttribute(`nonce`,t),e}function iu(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function au(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var ou=function(){var e=0,t=null;return{add:function(n){e==0&&(t=ru())&&(iu(t,n),au(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},su=function(){var e=ou();return function(t,n){F.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},cu=function(){var e=su();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},lu={left:0,top:0,right:0,gap:0},uu=function(e){return parseInt(e||``,10)||0},du=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[uu(n),uu(r),uu(i)]},fu=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return lu;var t=du(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},pu=cu(),mu=`data-scroll-locked`,hu=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
11
11
|
.${Bl} {
|
|
12
12
|
overflow: hidden ${r};
|
|
@@ -47,7 +47,7 @@ Error generating stack: `+e.message+`
|
|
|
47
47
|
`},gu=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},_u=function(){F.useEffect(function(){return document.body.setAttribute(mu,(gu()+1).toString()),function(){var e=gu()-1;e<=0?document.body.removeAttribute(mu):document.body.setAttribute(mu,e.toString())}},[])},vu=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;_u();var a=F.useMemo(function(){return fu(i)},[i]);return F.createElement(pu,{styles:hu(a,!t,i,n?``:`!important`)})},yu=!1;if(typeof window<`u`)try{var bu=Object.defineProperty({},`passive`,{get:function(){return yu=!0,!0}});window.addEventListener(`test`,bu,bu),window.removeEventListener(`test`,bu,bu)}catch{yu=!1}var xu=yu?{passive:!1}:!1,Su=function(e){return e.tagName===`TEXTAREA`},Cu=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!Su(e)&&n[t]===`visible`)},wu=function(e){return Cu(e,`overflowY`)},Tu=function(e){return Cu(e,`overflowX`)},Eu=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),ku(e,r)){var i=Au(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Du=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Ou=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},ku=function(e,t){return e===`v`?wu(t):Tu(t)},Au=function(e,t){return e===`v`?Du(t):Ou(t)},ju=function(e,t){return e===`h`&&t===`rtl`?-1:1},Mu=function(e,t,n,r,i){var a=ju(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=Au(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&ku(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},Nu=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Pu=function(e){return[e.deltaX,e.deltaY]},Fu=function(e){return e&&`current`in e?e.current:e},Iu=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Lu=function(e){return`
|
|
48
48
|
.block-interactivity-${e} {pointer-events: none;}
|
|
49
49
|
.allow-interactivity-${e} {pointer-events: all;}
|
|
50
|
-
`},Ru=0,zu=[];function Bu(e){var t=F.useRef([]),n=F.useRef([0,0]),r=F.useRef(),i=F.useState(Ru++)[0],a=F.useState(cu)[0],o=F.useRef(e);F.useEffect(function(){o.current=e},[e]),F.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Ll([e.lockRef.current],(e.shards||[]).map(Fu),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=F.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=Nu(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Eu(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Eu(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return Mu(h,t,e,h===`h`?s:c,!0)},[]),c=F.useCallback(function(e){var n=e;if(!(!zu.length||zu[zu.length-1]!==a)){var r=`deltaY`in n?Pu(n):Nu(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Iu(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(Fu).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=F.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Vu(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=F.useCallback(function(e){n.current=Nu(e),r.current=void 0},[]),d=F.useCallback(function(t){l(t.type,Pu(t),t.target,s(t,e.lockRef.current))},[]),f=F.useCallback(function(t){l(t.type,Nu(t),t.target,s(t,e.lockRef.current))},[]);F.useEffect(function(){return zu.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,xu),document.addEventListener(`touchmove`,c,xu),document.addEventListener(`touchstart`,u,xu),function(){zu=zu.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,xu),document.removeEventListener(`touchmove`,c,xu),document.removeEventListener(`touchstart`,u,xu)}},[]);var p=e.removeScrollBar,m=e.inert;return F.createElement(F.Fragment,null,m?F.createElement(a,{styles:Lu(i)}):null,p?F.createElement(vu,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Vu(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Hu=Zl(Ql,Bu),Uu=F.forwardRef(function(e,t){return F.createElement(eu,Fl({},e,{ref:t,sideCar:Hu}))});Uu.classNames=eu.classNames;var Wu=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Gu=new WeakMap,Ku=new WeakMap,qu={},Ju=0,Yu=function(e){return e&&(e.host||Yu(e.parentNode))},Xu=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Yu(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Zu=function(e,t,n,r){var i=Xu(t,Array.isArray(e)?e:[e]);qu[n]||(qu[n]=new WeakMap);var a=qu[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Gu.get(e)||0)+1,l=(a.get(e)||0)+1;Gu.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Ku.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Ju++,function(){o.forEach(function(e){var t=Gu.get(e)-1,i=a.get(e)-1;Gu.set(e,t),a.set(e,i),t||(Ku.has(e)||e.removeAttribute(r),Ku.delete(e)),i||e.removeAttribute(n)}),Ju--,Ju||(Gu=new WeakMap,Gu=new WeakMap,Ku=new WeakMap,qu={})}},Qu=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Wu(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Zu(r,i,n,`aria-hidden`)):function(){return null}},$u=Object.defineProperty,ed=(e,t)=>$u(e,`name`,{value:t,configurable:!0}),td=`Dialog`,[nd,rd]=dc(td),[id,ad]=nd(td),od=ed(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=F.useRef(null),c=F.useRef(null),[l,u]=Dc({prop:r,defaultProp:i??!1,onChange:a,caller:td}),[d,f]=F.useState(0),[p,m]=F.useState(0);return(0,I.jsx)(id,{scope:t,triggerRef:s,contentRef:c,contentId:vc(),titleId:vc(),descriptionId:vc(),titlePresent:d>0,descriptionPresent:p>0,setTitleCount:f,setDescriptionCount:m,open:l,onOpenChange:u,onOpenToggle:F.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})},`Dialog`),sd=`DialogPortal`,[cd,ld]=nd(sd,{forceMount:void 0}),ud=ed(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=ad(sd,t);return(0,I.jsx)(cd,{scope:t,forceMount:n,children:F.Children.map(r,e=>(0,I.jsx)(Sl,{present:n||a.open,children:(0,I.jsx)(vl,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),dd=`DialogOverlay`,fd=F.forwardRef(ed(function(e,t){let n=ld(dd,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=ad(dd,e.__scopeDialog);return a.modal?(0,I.jsx)(Sl,{present:r||a.open,children:(0,I.jsx)(md,{...i,ref:t})}):null},`DialogOverlay`)),pd=vs(`DialogOverlay.RemoveScroll`),md=F.forwardRef(ed(function(e,t){let{__scopeDialog:n,...r}=e,i=ad(dd,n),a=hs(t,Jc());return(0,I.jsx)(Uu,{as:pd,allowPinchZoom:!0,shards:[i.contentRef],children:(0,I.jsx)(Fc.div,{"data-state":Ed(i.open),...r,ref:a,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),hd=`DialogContent`,gd=F.forwardRef(ed(function(e,t){let n=ld(hd,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=ad(hd,e.__scopeDialog);return(0,I.jsx)(Sl,{present:r||a.open,children:a.modal?(0,I.jsx)(_d,{...i,ref:t}):(0,I.jsx)(vd,{...i,ref:t})})},`DialogContent`)),_d=F.forwardRef(ed(function(e,t){let n=ad(hd,e.__scopeDialog),r=F.useRef(null),i=hs(t,n.contentRef,r);return F.useEffect(()=>{let e=r.current;if(e)return Qu(e)},[]),(0,I.jsx)(yd,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:rc(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:rc(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:rc(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),vd=F.forwardRef(ed(function(e,t){let n=ad(hd,e.__scopeDialog),r=F.useRef(!1),i=F.useRef(!1);return(0,I.jsx)(yd,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),yd=F.forwardRef(ed(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=ad(hd,n);return Nl(),(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(al,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,I.jsx)(qc,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionPresent?s.descriptionId:void 0,"aria-labelledby":s.titlePresent?s.titleId:void 0,"data-state":Ed(s.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})},`DialogContentImpl`)),bd=`DialogTitle`,xd=F.forwardRef(ed(function(e,t){let{__scopeDialog:n,...r}=e,i=ad(bd,n),{setTitleCount:a}=i;return pc(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,I.jsx)(Fc.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),Sd=`DialogDescription`,Cd=F.forwardRef(ed(function(e,t){let{__scopeDialog:n,...r}=e,i=ad(Sd,n),{setDescriptionCount:a}=i;return pc(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,I.jsx)(Fc.p,{id:i.descriptionId,...r,ref:t})},`DialogDescription`)),wd=`DialogClose`,Td=F.forwardRef(ed(function(e,t){let{__scopeDialog:n,...r}=e,i=ad(wd,n);return(0,I.jsx)(Fc.button,{type:`button`,...r,ref:t,onClick:rc(e.onClick,()=>i.onOpenChange(!1))})},`DialogClose`));function Ed(e){return e?`open`:`closed`}ed(Ed,`getState`);function Dd({brand:e,visual:t,auth:n,mobileAuth:r,footer:i,className:a,...o}){return(0,I.jsxs)(`section`,{className:B(`homepage-entry`,a),...o,children:[(0,I.jsxs)(`div`,{className:`homepage-entry-desktop`,children:[(0,I.jsxs)(`section`,{className:`homepage-entry-visual-column`,"aria-label":`Tutti product preview`,children:[(0,I.jsx)(`div`,{className:`homepage-entry-brand`,children:e}),(0,I.jsx)(`div`,{className:`homepage-entry-visual`,children:t})]}),(0,I.jsxs)(`aside`,{className:`homepage-entry-auth-rail`,"aria-label":`Sign in to Tutti`,children:[(0,I.jsx)(`div`,{className:`homepage-entry-auth-content`,children:n}),i===void 0?null:(0,I.jsx)(`div`,{className:`homepage-entry-auth-footnote`,children:i})]})]}),(0,I.jsxs)(`section`,{className:`homepage-entry-mobile`,"aria-label":`Sign in to Tutti`,children:[(0,I.jsx)(`div`,{className:`product-appbar`,children:e}),(0,I.jsx)(`div`,{className:`auth-shell`,children:r}),i===void 0?null:(0,I.jsx)(`div`,{className:`homepage-entry-mobile-footnote`,children:i})]})]})}function Od({className:e,...t}){return(0,I.jsx)(`p`,{className:B(`product-entry-footnote`,e),...t})}function kd({title:e,description:t,children:n,action:r,feedback:i,secondaryAction:a,className:o,...s}){return(0,I.jsxs)(`form`,{className:B(`product-entry-auth-form`,o),...s,children:[(0,I.jsxs)(`header`,{className:`product-entry-auth-header`,children:[(0,I.jsx)(`h1`,{children:e}),(0,I.jsx)(`p`,{children:t})]}),(0,I.jsx)(`div`,{className:`product-entry-auth-body`,children:n}),a===void 0?null:(0,I.jsx)(`div`,{className:`product-entry-auth-secondary`,children:a}),i===void 0?null:(0,I.jsx)(`div`,{className:`product-entry-auth-feedback`,children:i}),(0,I.jsx)(`footer`,{className:`product-entry-auth-footer`,children:r})]})}var Ad=40.1,jd=Ad+.6,Md={openingFadeEnd:1.05,chatEnd:7.45,scratchpadPanEnd:8.8,scratchpadEnd:17.8,runCursorStart:17.95,runCursorArrive:18.65,runClickStart:18.67,runEnd:18.9,executionPrepareEnd:20.35,executionImplementEnd:24.55,executionValidateEnd:26.35,executionComplete:28.15,executionEnd:28.95,fullWorkspace:30.95,artifactLive:30.55,artifactClick:32.65,artifactScroll:36.1,artifactScrollEnd:39.55,finalHoldEnd:Ad,fadeEnd:jd},Nd={centerX:.325,centerY:.25,scale:1.62},Pd={centerX:.325,centerY:.47,scale:1.64},Fd={centerX:.855,centerY:.23,scale:1.72},Id={centerX:.855,centerY:.35,scale:1.72},Ld={centerX:.855,centerY:.79,scale:1.72},Rd={centerX:.5,centerY:.5,scale:1},zd=[{start:1.35,end:5.95,from:Nd,to:Pd,linearPosition:!0},{start:7.45,end:8.8,from:Pd,to:Fd},{start:8.8,end:14.3,from:Fd,to:Id,linearPosition:!0},{start:14.6,end:17.8,from:Id,to:Ld},{start:Md.executionEnd,end:Md.fullWorkspace,from:Ld,to:Rd}];function Bd(e,t=0,n=1){return Math.min(n,Math.max(t,e))}function Vd(e){return 1-(1-Bd(e))**3}function Hd(e){let t=Bd(e);return t<.5?4*t*t*t:1-(-2*t+2)**3/2}function Ud(e){let t=Bd(e);return t<.5?16*t**5:1-(-2*t+2)**5/2}function Wd(e,t,n,r=Vd){let i=Math.max(.001,n-t);return r(Bd((e-t)/i))}function Gd(e,t,n){return e+(t-e)*n}function Kd(e,t){let n=Bd((t-e.start)/Math.max(.001,e.end-e.start)),r=e.linearPosition?n:Ud(n);return{centerX:Gd(e.from.centerX,e.to.centerX,r),centerY:Gd(e.from.centerY,e.to.centerY,r),scale:Gd(e.from.scale,e.to.scale,e.linearPosition?n:Hd(n))}}function qd(e){if(e<zd[0].start)return Nd;for(let t of zd)if(e<=t.end)return e<t.start?t.from:Kd(t,e);return Rd}function Jd(e){return e>=Md.executionComplete?{id:`complete`,label:`Task completed`}:e>=Md.executionValidateEnd?{id:`update`,label:`Synchronizing project`}:e>=Md.executionImplementEnd?{id:`validate`,label:`Validating result`}:e>=Md.executionPrepareEnd?{id:`implement`,label:`Implementing with Codex`}:{id:`prepare`,label:`Preparing workspace`}}function Yd(e){return Wd(e,Md.artifactScroll,Md.artifactScrollEnd,Hd)}function Xd(e){return 1-Wd(e,Ad,jd,Hd)}var Zd=1500,Qd=1e3,$d=2.5,ef=`(min-width: 980px) and (prefers-reduced-motion: no-preference)`,tf=(0,F.lazy)(async()=>({default:(await Na(()=>import(`./homepage-motion-scene-BFo4r4nz.js`),[])).HomepageMotionScene}));function nf(e){let[t,n]=(0,F.useState)(()=>typeof window>`u`||typeof window.matchMedia!=`function`?!0:window.matchMedia(e).matches);return(0,F.useEffect)(()=>{if(typeof window.matchMedia!=`function`)return;let t=window.matchMedia(e),r=()=>n(t.matches);return r(),t.addEventListener(`change`,r),()=>t.removeEventListener(`change`,r)},[e]),t}function rf(){return nf(ef)}function af(e,t){let[n,r]=(0,F.useState)({elapsed:0,cycle:0}),i=(0,F.useRef)(null),a=jd+t;return(0,F.useEffect)(()=>{if(!e){i.current=null;return}let t=0,n=e=>{let o=i.current??e;i.current=e;let s=Math.min(.1,(e-o)/1e3);r(e=>{let t=e.elapsed+s;return t<a?{...e,elapsed:t}:{elapsed:t%a,cycle:e.cycle+1}}),t=window.requestAnimationFrame(n)};return t=window.requestAnimationFrame(n),()=>window.cancelAnimationFrame(t)},[a,e]),{cycle:n.cycle,time:Math.min(n.elapsed,jd)}}function of(e,t){let[n,r]=(0,F.useState)(0),i=(0,F.useRef)(t),a=(0,F.useRef)(!1);return i.current=t,(0,F.useEffect)(()=>{if(r(0),a.current=!1,!e)return;let t=0,n=null,o=e=>{n??=e;let s=Math.min((e-n)/1e3,jd);if(r(s),s>=jd){a.current||(a.current=!0,i.current());return}t=window.requestAnimationFrame(o)};return t=window.requestAnimationFrame(o),()=>window.cancelAnimationFrame(t)},[e]),n}function sf(e){let t=(0,F.useRef)(null),[n,r]=(0,F.useState)(0);return(0,F.useLayoutEffect)(()=>{if(!e)return;let n=t.current;if(n===null)return;let i=()=>{let e=n.getBoundingClientRect(),t=Math.min(e.width/Zd,e.height/Qd);r(Number.isFinite(t)?t:0)};if(i(),typeof ResizeObserver>`u`)return;let a=new ResizeObserver(i);return a.observe(n),()=>a.disconnect()},[e]),{frameRef:t,masterScale:n}}function cf({assets:e,enabled:t,sceneKey:n,time:r,className:i,...a}){let{frameRef:o,masterScale:s}=sf(t);return t?(0,I.jsx)(`div`,{ref:o,className:B(`homepage-motion-frame`,i),...a,children:(0,I.jsx)(`div`,{className:`homepage-motion-master`,style:{"--homepage-motion-scale":s},children:(0,I.jsx)(F.Suspense,{fallback:null,children:(0,I.jsx)(tf,{time:r,assets:e},n)})})}):null}function lf({assets:e,idleSeconds:t=$d,className:n,...r}){let i=rf(),a=af(i,Math.max(0,t));return(0,I.jsx)(cf,{...r,assets:e,enabled:i,sceneKey:a.cycle,time:a.time,className:n})}function uf({assets:e,onComplete:t,className:n,...r}){let i=rf(),a=of(i,(0,F.useCallback)(()=>t(),[t]));return(0,I.jsx)(cf,{...r,assets:e,enabled:i,time:a,className:n})}function df({onOpen:e,onDismiss:t,className:n,...r}){return(0,I.jsxs)(`aside`,{className:B(`product-tour-pill`,n),"aria-label":`Product tour`,...r,children:[(0,I.jsxs)(Is,{type:`button`,className:`product-tour-pill-open`,onClick:e,children:[(0,I.jsx)(`span`,{className:`product-tour-pill-icon`,"aria-hidden":`true`,children:(0,I.jsx)(Ti,{})}),(0,I.jsxs)(`span`,{className:`product-tour-pill-copy`,children:[(0,I.jsx)(`strong`,{children:`New to Tutti?`}),(0,I.jsx)(`span`,{children:`Take a tour`})]})]}),(0,I.jsx)(Ps,{type:`button`,className:`product-tour-pill-dismiss`,label:`Dismiss product tour`,icon:(0,I.jsx)(va,{"aria-hidden":`true`}),onClick:t})]})}function ff({assets:e,open:t,onOpenChange:n}){let r=rf();return(0,F.useEffect)(()=>{t&&!r&&n(!1)},[r,n,t]),r?(0,I.jsx)(od,{open:t,onOpenChange:n,children:(0,I.jsxs)(ud,{children:[(0,I.jsx)(fd,{className:`product-tour-dialog-overlay`}),(0,I.jsxs)(gd,{className:`product-tour-dialog-content`,onInteractOutside:e=>e.preventDefault(),onPointerDownOutside:e=>e.preventDefault(),children:[(0,I.jsx)(xd,{className:`product-tour-dialog-title`,children:`Welcome to Tutti`}),(0,I.jsx)(Td,{asChild:!0,children:(0,I.jsx)(Ps,{type:`button`,className:`product-tour-dialog-close`,label:`Close product tour`,icon:(0,I.jsx)(va,{"aria-hidden":`true`})})}),t?(0,I.jsx)(uf,{className:`product-tour-dialog-motion`,assets:e,onComplete:()=>n(!1)}):null]})]})}):null}function pf({asChild:e=!1,className:t,...n}){return(0,I.jsx)(e?ys:`section`,{className:B(`product-card`,t),...n})}function mf({children:e,className:t,...n}){return(0,I.jsx)(`div`,{className:B(`product-card-header`,t),...n,children:e})}function hf({children:e,className:t,...n}){return(0,I.jsx)(`div`,{className:B(`product-card-body`,t),...n,children:e})}function gf({children:e,className:t,...n}){return(0,I.jsx)(`div`,{className:B(`product-card-feedback`,t),...n,children:e})}function _f({children:e,className:t,...n}){return(0,I.jsx)(`div`,{className:B(`product-card-footer`,t),...n,children:e})}function vf({title:e,description:t,children:n,action:r,feedback:i,secondaryAction:a,size:o=`standard`,className:s,...c}){return(0,I.jsx)(pf,{className:B(`entry-card auth-card`,o===`wide`?`is-wide`:void 0,s),asChild:!0,children:(0,I.jsxs)(`form`,{...c,children:[(0,I.jsx)(`section`,{className:`auth-card-intro`,children:(0,I.jsxs)(mf,{className:`auth-card-header`,children:[(0,I.jsx)(`h1`,{children:e}),(0,I.jsx)(`p`,{children:t})]})}),(0,I.jsx)(`section`,{className:`auth-card-action`,children:(0,I.jsxs)(`div`,{className:`auth-card-action-content`,children:[(0,I.jsx)(hf,{children:n}),a===void 0?null:(0,I.jsx)(`div`,{className:`auth-card-secondary`,children:a}),i===void 0?null:(0,I.jsx)(gf,{children:i}),(0,I.jsx)(_f,{children:r})]})})]})})}function yf({projectName:e,hostLabel:t,hostOnline:n=!1,members:r,invitedBy:i,className:a,...o}){return(0,I.jsxs)(`section`,{className:B(`invite-summary`,a),"aria-label":`Project invitation`,...o,children:[(0,I.jsxs)(`div`,{className:`invite-project`,children:[(0,I.jsx)(`h2`,{children:e}),(0,I.jsxs)(`p`,{className:B(`project-line`,n?`is-online`:`is-offline`),children:[(0,I.jsx)(`span`,{className:`status-dot`,"aria-hidden":`true`}),t]})]}),r===void 0?null:(0,I.jsx)(`div`,{className:`invite-members`,children:r}),i===void 0?null:(0,I.jsxs)(`div`,{className:`invite-meta`,children:[(0,I.jsx)(`span`,{children:`Invited by`}),(0,I.jsx)(`strong`,{children:i})]})]})}function bf({label:e,value:t,action:n,className:r,...i}){return(0,I.jsxs)(`div`,{className:B(`account-row`,r),...i,children:[(0,I.jsxs)(`div`,{children:[(0,I.jsx)(`span`,{children:e}),(0,I.jsx)(`strong`,{children:t})]}),n]})}function xf({title:e,accountName:t,accountAction:n,children:r,className:i,...a}){return(0,I.jsxs)(pf,{className:B(`project-center-card`,i),...a,children:[(0,I.jsxs)(`header`,{className:`project-center-card-header`,children:[(0,I.jsx)(`h1`,{children:e}),t===void 0&&n===void 0?null:(0,I.jsxs)(`div`,{className:`project-center-account`,"aria-label":t===void 0?`Page actions`:`Signed in user`,children:[t===void 0?null:(0,I.jsx)(`span`,{className:`project-center-account-name`,children:t}),n]})]}),r]})}function Sf({action:e,description:t,descriptionId:n,disabledTrigger:r=!1,className:i,...a}){return(0,I.jsx)(`div`,{className:B(`project-center-header-action`,i),...a,children:t===void 0?e:(0,I.jsx)(Bs,{content:t,disabledTrigger:r,side:`bottom`,...n===void 0?{}:{contentId:n},children:e})})}function Cf({items:e,className:t,...n}){return(0,I.jsx)(`nav`,{className:B(`project-scope-navigation`,t),"aria-label":`Project scope`,...n,children:(0,I.jsx)(`ul`,{children:e.map(e=>(0,I.jsx)(`li`,{children:(0,I.jsx)(`a`,{href:e.href,"aria-current":e.current===!0?`page`:void 0,...e.current!==!0&&e.onClick===void 0?{}:{onClick:t=>{e.current===!0&&t.preventDefault(),e.onClick?.(t)}},children:e.label})},e.id))})})}function wf({items:e,action:t,className:n,...r}){return(0,I.jsxs)(`section`,{className:B(`project-scope-toolbar`,n),...r,children:[(0,I.jsx)(Cf,{items:e}),(0,I.jsx)(`div`,{className:`project-scope-toolbar-action`,children:t})]})}function Tf({command:e,terminalLabel:t=`Install and start in your terminal`,copyLabel:n=`Copy`,onCopyCommand:r,className:i,...a}){return(0,I.jsxs)(`section`,{className:B(`project-launch-terminal`,i),...a,children:[(0,I.jsxs)(`div`,{className:`project-launch-terminal-bar`,children:[(0,I.jsx)(`span`,{children:t}),r===void 0?null:(0,I.jsxs)(Is,{className:`project-launch-copy-button`,type:`button`,"aria-label":`Copy launch command`,onClick:()=>r(e),children:[(0,I.jsx)(Ai,{"aria-hidden":`true`}),n]})]}),(0,I.jsx)(`pre`,{className:`project-launch-command-block`,"aria-label":`Launch command`,children:(0,I.jsx)(`code`,{children:(0,I.jsxs)(`span`,{className:`project-launch-command-line`,children:[(0,I.jsx)(`span`,{className:`project-launch-command-prompt`,"aria-hidden":`true`,children:`>`}),(0,I.jsx)(`span`,{children:e})]})})})]})}function Ef({open:e,onOpenChange:t,status:n=`opening`,description:r,command:i,onCopyCommand:a,retryHref:o,onRetry:s}){return(0,I.jsx)(Mf,{open:e,onOpenChange:t,title:`Projects on this computer`,description:n===`opening`?`Opening Tutti…`:`Tutti did not open in this tab.`,className:`project-local-handoff-dialog-card`,children:(0,I.jsxs)(`div`,{className:`project-local-handoff-dialog-body`,children:[(0,I.jsxs)(`div`,{className:`project-local-handoff-intro`,children:[(0,I.jsx)(`span`,{className:`project-local-handoff-icon`,"aria-hidden":`true`,children:(0,I.jsx)(pa,{})}),(0,I.jsx)(`p`,{children:r})]}),(0,I.jsx)(Tf,{command:i,...a===void 0?{}:{onCopyCommand:a}}),n!==`failed`||o===void 0?null:(0,I.jsx)(`div`,{className:`project-local-handoff-actions`,children:(0,I.jsx)(Fs,{asChild:!0,children:(0,I.jsxs)(`a`,{href:o,...s===void 0?{}:{onClick:s},children:[(0,I.jsx)(ta,{"aria-hidden":`true`}),`Retry`]})})})]})})}function Df({children:e,className:t,...n}){return(0,I.jsx)(`ul`,{className:B(`project-list`,t),"aria-label":`Recent projects`,...n,children:e})}function Of({children:e,className:t,...n}){return(0,I.jsx)(`section`,{className:B(`project-list-surface`,t),...n,children:(0,I.jsx)(Df,{children:e})})}function kf({status:e,className:t,...n}){let r=e===`online`?`Online`:e===`connecting`?`Connecting`:e===`stopped`?`Stopped`:e===`offline`?`Offline`:`Status unknown`,i=e===`online`?(0,I.jsx)(ea,{"aria-hidden":`true`}):e===`connecting`?(0,I.jsx)(ta,{"aria-hidden":`true`}):e===`stopped`?(0,I.jsx)(Qi,{"aria-hidden":`true`}):e===`offline`?(0,I.jsx)(ga,{"aria-hidden":`true`}):(0,I.jsx)(Ti,{"aria-hidden":`true`});return(0,I.jsx)(`span`,{className:B(`project-list-status-icon`,`is-${e}`,t),"aria-label":r,role:`img`,...n,children:i})}function Af({title:e,status:t,details:n,className:r,disabled:i,...a}){return(0,I.jsx)(`li`,{className:`project-list-item`,children:(0,I.jsxs)(`button`,{className:B(`project-list-row`,t===`online`||t===`connecting`?`is-active`:`is-inactive`,r),type:`button`,disabled:i,...a,children:[(0,I.jsx)(kf,{status:t}),(0,I.jsx)(`span`,{className:`project-list-identity`,children:(0,I.jsx)(`strong`,{children:e})}),n.map(e=>(0,I.jsxs)(`span`,{className:`project-list-detail`,children:[(0,I.jsx)(`small`,{children:e.label}),(0,I.jsx)(`strong`,{children:e.value})]},e.label)),(0,I.jsx)(_i,{"aria-hidden":`true`})]})})}function jf({children:e,className:t,...n}){return(0,I.jsx)(`li`,{className:B(`project-list-item project-list-state-row`,t),...n,children:e})}function Mf({open:e,onOpenChange:t,title:n,description:r,children:i,closeDisabled:a=!1,explicitCloseOnly:o=!1,className:s}){return(0,I.jsxs)(od,{open:e,onOpenChange:e=>{(e||!a)&&t(e)},children:[(0,I.jsx)(fd,{className:`product-entry-dialog-overlay`}),(0,I.jsx)(gd,{asChild:!0,onEscapeKeyDown:e=>{(a||o)&&e.preventDefault()},onInteractOutside:e=>{(a||o)&&e.preventDefault()},onPointerDownOutside:e=>{(a||o)&&e.preventDefault()},children:(0,I.jsxs)(pf,{className:B(`product-entry-dialog-card`,s),children:[(0,I.jsxs)(`header`,{className:`product-entry-dialog-header`,children:[(0,I.jsxs)(`div`,{children:[(0,I.jsx)(xd,{children:n}),r===void 0?null:(0,I.jsx)(Cd,{children:r})]}),(0,I.jsx)(Td,{asChild:!0,children:(0,I.jsx)(Ps,{type:`button`,label:`Close`,icon:(0,I.jsx)(va,{"aria-hidden":`true`}),disabled:a})})]}),i]})})]})}function Nf({open:e,onOpenChange:t,inputLabel:n,placeholder:r,value:i,error:a,actionLabel:o=`Continue`,onValueChange:s,className:c,...l}){return(0,I.jsx)(Mf,{open:e,onOpenChange:t,title:`Join a project`,description:`Paste an invitation link or the full invitation message.`,className:`project-join-dialog-card`,children:(0,I.jsxs)(`form`,{className:B(`project-join-dialog-form`,c),...l,children:[(0,I.jsxs)(`div`,{className:`project-join-dialog-body`,children:[(0,I.jsx)(Us,{type:`text`,"aria-label":n,value:i,onChange:e=>s(e.target.value),autoFocus:!0,...r===void 0?{}:{placeholder:r}}),a==null?null:(0,I.jsx)(Js,{children:a})]}),(0,I.jsx)(`footer`,{className:`project-join-dialog-actions`,children:(0,I.jsxs)(Fs,{type:`submit`,disabled:i.trim()===``,children:[o,(0,I.jsx)(_i,{"aria-hidden":`true`})]})})]})})}function Pf({open:e,onOpenChange:t,steps:n,currentStep:r,children:i,action:a,backAction:o,feedback:s,closeDisabled:c=!1,explicitCloseOnly:l=!1,className:u,...d}){return(0,I.jsxs)(Mf,{open:e,onOpenChange:t,title:`New project`,description:`Step ${r+1} of ${n.length}`,closeDisabled:c,explicitCloseOnly:l,className:`local-console-create-card`,children:[(0,I.jsx)(`ol`,{className:`local-console-create-steps`,"aria-label":`New project steps`,children:n.map((e,t)=>(0,I.jsxs)(`li`,{className:B(t===r?`is-current`:void 0,t<r?`is-complete`:void 0),"aria-current":t===r?`step`:void 0,children:[(0,I.jsx)(`span`,{"aria-hidden":`true`,children:t+1}),(0,I.jsx)(`small`,{children:e})]},e))}),(0,I.jsxs)(`form`,{className:B(`local-console-create-form`,u),...d,children:[(0,I.jsx)(`div`,{className:`local-console-create-body`,children:i}),s===void 0?null:(0,I.jsx)(`div`,{className:`local-console-create-feedback`,children:s}),(0,I.jsxs)(`footer`,{className:`local-console-create-actions`,children:[(0,I.jsx)(`div`,{children:o}),(0,I.jsx)(`div`,{children:a})]})]})]})}function Ff({children:e,className:t,...n}){return(0,I.jsx)(`div`,{className:B(`local-console-form-grid`,t),...n,children:e})}function If({children:e,className:t,...n}){return(0,I.jsx)(`div`,{className:B(`local-console-inline-actions`,t),...n,children:e})}function Lf({title:e,description:t,children:n,className:r,...i}){return(0,I.jsxs)(`section`,{className:B(`local-console-field-group`,r),...i,children:[(0,I.jsxs)(`header`,{children:[(0,I.jsx)(`strong`,{children:e}),t===void 0?null:(0,I.jsx)(`small`,{children:t})]}),(0,I.jsx)(`div`,{className:`local-console-field-group-body`,children:n})]})}function Rf({path:e,className:t,...n}){let r=Math.max(e.lastIndexOf(`/`),e.lastIndexOf(`\\`)),i=r>0&&r<e.length-1;return(0,I.jsx)(`span`,{className:B(`local-console-project-path`,t),title:e,...n,children:i?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`span`,{className:`local-console-project-path-prefix`,children:e.slice(0,r)}),(0,I.jsx)(`span`,{className:`local-console-project-path-separator`,children:e[r]}),(0,I.jsx)(`span`,{className:`local-console-project-path-name`,children:e.slice(r+1)})]}):(0,I.jsx)(`span`,{className:`local-console-project-path-name`,children:e})})}function zf({title:e,status:t,path:n,createdLabel:r,modelLabel:i,actions:a,className:o,...s}){return(0,I.jsx)(`li`,{className:B(`project-list-item`,`local-console-project-item`,o),...s,children:(0,I.jsxs)(`div`,{className:B(`local-console-project-row`,t===`stopped`?`is-inactive`:`is-active`),children:[(0,I.jsx)(kf,{status:t}),(0,I.jsxs)(`span`,{className:`project-list-identity`,children:[(0,I.jsx)(`span`,{className:`local-console-project-title`,children:(0,I.jsx)(`strong`,{children:e})}),i===void 0?null:(0,I.jsx)(`span`,{className:`local-console-project-signals`,children:(0,I.jsx)(`small`,{className:`local-console-provider-model`,children:i})})]}),(0,I.jsxs)(`span`,{className:`local-console-project-metadata`,children:[(0,I.jsx)(`strong`,{className:`local-console-project-date`,children:r}),(0,I.jsx)(Rf,{path:n})]}),(0,I.jsx)(`span`,{className:`local-console-project-actions`,children:a})]})})}function Bf(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var Vf=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Hf=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Uf={};function Wf(e,t){return((t||Uf).jsx?Hf:Vf).test(e)}var Gf=/[ \t\n\f\r]/g;function Kf(e){return typeof e==`object`?e.type===`text`?qf(e.value):!1:qf(e)}function qf(e){return e.replace(Gf,``)===``}var Jf=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Jf.prototype.normal={},Jf.prototype.property={},Jf.prototype.space=void 0;function Yf(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Jf(n,r,t)}function Xf(e){return e.toLowerCase()}var Zf=class{constructor(e,t){this.attribute=t,this.property=e}};Zf.prototype.attribute=``,Zf.prototype.booleanish=!1,Zf.prototype.boolean=!1,Zf.prototype.commaOrSpaceSeparated=!1,Zf.prototype.commaSeparated=!1,Zf.prototype.defined=!1,Zf.prototype.mustUseProperty=!1,Zf.prototype.number=!1,Zf.prototype.overloadedBoolean=!1,Zf.prototype.property=``,Zf.prototype.spaceSeparated=!1,Zf.prototype.space=void 0;var Qf=s({boolean:()=>U,booleanish:()=>ep,commaOrSpaceSeparated:()=>ip,commaSeparated:()=>rp,number:()=>W,overloadedBoolean:()=>tp,spaceSeparated:()=>np}),$f=0,U=ap(),ep=ap(),tp=ap(),W=ap(),np=ap(),rp=ap(),ip=ap();function ap(){return 2**++$f}var op=Object.keys(Qf),sp=class extends Zf{constructor(e,t,n,r){let i=-1;if(super(e,t),cp(this,`space`,r),typeof n==`number`)for(;++i<op.length;){let e=op[i];cp(this,op[i],(n&Qf[e])===Qf[e])}}};sp.prototype.defined=!0;function cp(e,t,n){n&&(e[t]=n)}function lp(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new sp(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Xf(r)]=r,n[Xf(a.attribute)]=r}return new Jf(t,n,e.space)}var up=lp({properties:{ariaActiveDescendant:null,ariaAtomic:ep,ariaAutoComplete:null,ariaBusy:ep,ariaChecked:ep,ariaColCount:W,ariaColIndex:W,ariaColSpan:W,ariaControls:np,ariaCurrent:null,ariaDescribedBy:np,ariaDetails:null,ariaDisabled:ep,ariaDropEffect:np,ariaErrorMessage:null,ariaExpanded:ep,ariaFlowTo:np,ariaGrabbed:ep,ariaHasPopup:null,ariaHidden:ep,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:np,ariaLevel:W,ariaLive:null,ariaModal:ep,ariaMultiLine:ep,ariaMultiSelectable:ep,ariaOrientation:null,ariaOwns:np,ariaPlaceholder:null,ariaPosInSet:W,ariaPressed:ep,ariaReadOnly:ep,ariaRelevant:null,ariaRequired:ep,ariaRoleDescription:np,ariaRowCount:W,ariaRowIndex:W,ariaRowSpan:W,ariaSelected:ep,ariaSetSize:W,ariaSort:null,ariaValueMax:W,ariaValueMin:W,ariaValueNow:W,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function dp(e,t){return t in e?e[t]:t}function fp(e,t){return dp(e,t.toLowerCase())}var pp=lp({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:rp,acceptCharset:np,accessKey:np,action:null,allow:null,allowFullScreen:U,allowPaymentRequest:U,allowUserMedia:U,alt:null,as:null,async:U,autoCapitalize:null,autoComplete:np,autoFocus:U,autoPlay:U,blocking:np,capture:null,charSet:null,checked:U,cite:null,className:np,cols:W,colSpan:null,content:null,contentEditable:ep,controls:U,controlsList:np,coords:W|rp,crossOrigin:null,data:null,dateTime:null,decoding:null,default:U,defer:U,dir:null,dirName:null,disabled:U,download:tp,draggable:ep,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:U,formTarget:null,headers:np,height:W,hidden:tp,high:W,href:null,hrefLang:null,htmlFor:np,httpEquiv:np,id:null,imageSizes:null,imageSrcSet:null,inert:U,inputMode:null,integrity:null,is:null,isMap:U,itemId:null,itemProp:np,itemRef:np,itemScope:U,itemType:np,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:U,low:W,manifest:null,max:null,maxLength:W,media:null,method:null,min:null,minLength:W,multiple:U,muted:U,name:null,nonce:null,noModule:U,noValidate:U,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:U,optimum:W,pattern:null,ping:np,placeholder:null,playsInline:U,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:U,referrerPolicy:null,rel:np,required:U,reversed:U,rows:W,rowSpan:W,sandbox:np,scope:null,scoped:U,seamless:U,selected:U,shadowRootClonable:U,shadowRootDelegatesFocus:U,shadowRootMode:null,shape:null,size:W,sizes:null,slot:null,span:W,spellCheck:ep,src:null,srcDoc:null,srcLang:null,srcSet:null,start:W,step:null,style:null,tabIndex:W,target:null,title:null,translate:null,type:null,typeMustMatch:U,useMap:null,value:ep,width:W,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:np,axis:null,background:null,bgColor:null,border:W,borderColor:null,bottomMargin:W,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:U,declare:U,event:null,face:null,frame:null,frameBorder:null,hSpace:W,leftMargin:W,link:null,longDesc:null,lowSrc:null,marginHeight:W,marginWidth:W,noResize:U,noHref:U,noShade:U,noWrap:U,object:null,profile:null,prompt:null,rev:null,rightMargin:W,rules:null,scheme:null,scrolling:ep,standby:null,summary:null,text:null,topMargin:W,valueType:null,version:null,vAlign:null,vLink:null,vSpace:W,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:U,disableRemotePlayback:U,prefix:null,property:null,results:W,security:null,unselectable:null},space:`html`,transform:fp}),mp=lp({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,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`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,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`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,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`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:ip,accentHeight:W,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:W,amplitude:W,arabicForm:null,ascent:W,attributeName:null,attributeType:null,azimuth:W,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:W,by:null,calcMode:null,capHeight:W,className:np,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:W,diffuseConstant:W,direction:null,display:null,dur:null,divisor:W,dominantBaseline:null,download:U,dx:null,dy:null,edgeMode:null,editable:null,elevation:W,enableBackground:null,end:null,event:null,exponent:W,externalResourcesRequired:null,fill:null,fillOpacity:W,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:rp,g2:rp,glyphName:rp,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:W,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:W,horizOriginX:W,horizOriginY:W,id:null,ideographic:W,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:W,k:W,k1:W,k2:W,k3:W,k4:W,kernelMatrix:ip,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:W,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:W,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:W,overlineThickness:W,paintOrder:null,panose1:null,path:null,pathLength:W,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:np,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:W,pointsAtY:W,pointsAtZ:W,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ip,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ip,rev:ip,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ip,requiredFeatures:ip,requiredFonts:ip,requiredFormats:ip,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:W,specularExponent:W,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:W,strikethroughThickness:W,string:null,stroke:null,strokeDashArray:ip,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:W,strokeOpacity:W,strokeWidth:null,style:null,surfaceScale:W,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ip,tabIndex:W,tableValues:null,target:null,targetX:W,targetY:W,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ip,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:W,underlineThickness:W,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:W,values:null,vAlphabetic:W,vMathematical:W,vectorEffect:null,vHanging:W,vIdeographic:W,version:null,vertAdvY:W,vertOriginX:W,vertOriginY:W,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:W,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:dp}),hp=lp({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),gp=lp({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:fp}),_p=lp({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),vp={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},yp=/[A-Z]/g,bp=/-[a-z]/g,xp=/^data[-\w.:]+$/i;function Sp(e,t){let n=Xf(t),r=t,i=Zf;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&xp.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(bp,wp);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!bp.test(e)){let n=e.replace(yp,Cp);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=sp}return new i(r,t)}function Cp(e){return`-`+e.toLowerCase()}function wp(e){return e.charAt(1).toUpperCase()}var Tp=Yf([up,pp,hp,gp,_p],`html`),Ep=Yf([up,mp,hp,gp,_p],`svg`);function Dp(e){return e.join(` `).trim()}var Op=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
|
|
50
|
+
`},Ru=0,zu=[];function Bu(e){var t=F.useRef([]),n=F.useRef([0,0]),r=F.useRef(),i=F.useState(Ru++)[0],a=F.useState(cu)[0],o=F.useRef(e);F.useEffect(function(){o.current=e},[e]),F.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Ll([e.lockRef.current],(e.shards||[]).map(Fu),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=F.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=Nu(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Eu(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Eu(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return Mu(h,t,e,h===`h`?s:c,!0)},[]),c=F.useCallback(function(e){var n=e;if(!(!zu.length||zu[zu.length-1]!==a)){var r=`deltaY`in n?Pu(n):Nu(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Iu(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(Fu).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=F.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Vu(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=F.useCallback(function(e){n.current=Nu(e),r.current=void 0},[]),d=F.useCallback(function(t){l(t.type,Pu(t),t.target,s(t,e.lockRef.current))},[]),f=F.useCallback(function(t){l(t.type,Nu(t),t.target,s(t,e.lockRef.current))},[]);F.useEffect(function(){return zu.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,xu),document.addEventListener(`touchmove`,c,xu),document.addEventListener(`touchstart`,u,xu),function(){zu=zu.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,xu),document.removeEventListener(`touchmove`,c,xu),document.removeEventListener(`touchstart`,u,xu)}},[]);var p=e.removeScrollBar,m=e.inert;return F.createElement(F.Fragment,null,m?F.createElement(a,{styles:Lu(i)}):null,p?F.createElement(vu,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Vu(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Hu=Zl(Ql,Bu),Uu=F.forwardRef(function(e,t){return F.createElement(eu,Fl({},e,{ref:t,sideCar:Hu}))});Uu.classNames=eu.classNames;var Wu=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},Gu=new WeakMap,Ku=new WeakMap,qu={},Ju=0,Yu=function(e){return e&&(e.host||Yu(e.parentNode))},Xu=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=Yu(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},Zu=function(e,t,n,r){var i=Xu(t,Array.isArray(e)?e:[e]);qu[n]||(qu[n]=new WeakMap);var a=qu[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(Gu.get(e)||0)+1,l=(a.get(e)||0)+1;Gu.set(e,c),a.set(e,l),o.push(e),c===1&&i&&Ku.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),Ju++,function(){o.forEach(function(e){var t=Gu.get(e)-1,i=a.get(e)-1;Gu.set(e,t),a.set(e,i),t||(Ku.has(e)||e.removeAttribute(r),Ku.delete(e)),i||e.removeAttribute(n)}),Ju--,Ju||(Gu=new WeakMap,Gu=new WeakMap,Ku=new WeakMap,qu={})}},Qu=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Wu(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),Zu(r,i,n,`aria-hidden`)):function(){return null}},$u=Object.defineProperty,ed=(e,t)=>$u(e,`name`,{value:t,configurable:!0}),td=`Dialog`,[nd,rd]=dc(td),[id,ad]=nd(td),od=ed(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=F.useRef(null),c=F.useRef(null),[l,u]=Dc({prop:r,defaultProp:i??!1,onChange:a,caller:td}),[d,f]=F.useState(0),[p,m]=F.useState(0);return(0,I.jsx)(id,{scope:t,triggerRef:s,contentRef:c,contentId:vc(),titleId:vc(),descriptionId:vc(),titlePresent:d>0,descriptionPresent:p>0,setTitleCount:f,setDescriptionCount:m,open:l,onOpenChange:u,onOpenToggle:F.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})},`Dialog`),sd=`DialogPortal`,[cd,ld]=nd(sd,{forceMount:void 0}),ud=ed(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=ad(sd,t);return(0,I.jsx)(cd,{scope:t,forceMount:n,children:F.Children.map(r,e=>(0,I.jsx)(Sl,{present:n||a.open,children:(0,I.jsx)(vl,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),dd=`DialogOverlay`,fd=F.forwardRef(ed(function(e,t){let n=ld(dd,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=ad(dd,e.__scopeDialog);return a.modal?(0,I.jsx)(Sl,{present:r||a.open,children:(0,I.jsx)(md,{...i,ref:t})}):null},`DialogOverlay`)),pd=vs(`DialogOverlay.RemoveScroll`),md=F.forwardRef(ed(function(e,t){let{__scopeDialog:n,...r}=e,i=ad(dd,n),a=hs(t,Jc());return(0,I.jsx)(Uu,{as:pd,allowPinchZoom:!0,shards:[i.contentRef],children:(0,I.jsx)(Fc.div,{"data-state":Ed(i.open),...r,ref:a,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),hd=`DialogContent`,gd=F.forwardRef(ed(function(e,t){let n=ld(hd,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=ad(hd,e.__scopeDialog);return(0,I.jsx)(Sl,{present:r||a.open,children:a.modal?(0,I.jsx)(_d,{...i,ref:t}):(0,I.jsx)(vd,{...i,ref:t})})},`DialogContent`)),_d=F.forwardRef(ed(function(e,t){let n=ad(hd,e.__scopeDialog),r=F.useRef(null),i=hs(t,n.contentRef,r);return F.useEffect(()=>{let e=r.current;if(e)return Qu(e)},[]),(0,I.jsx)(yd,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:rc(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:rc(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:rc(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),vd=F.forwardRef(ed(function(e,t){let n=ad(hd,e.__scopeDialog),r=F.useRef(!1),i=F.useRef(!1);return(0,I.jsx)(yd,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),yd=F.forwardRef(ed(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=ad(hd,n);return Nl(),(0,I.jsx)(I.Fragment,{children:(0,I.jsx)(al,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,I.jsx)(qc,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionPresent?s.descriptionId:void 0,"aria-labelledby":s.titlePresent?s.titleId:void 0,"data-state":Ed(s.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})},`DialogContentImpl`)),bd=`DialogTitle`,xd=F.forwardRef(ed(function(e,t){let{__scopeDialog:n,...r}=e,i=ad(bd,n),{setTitleCount:a}=i;return pc(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,I.jsx)(Fc.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),Sd=`DialogDescription`,Cd=F.forwardRef(ed(function(e,t){let{__scopeDialog:n,...r}=e,i=ad(Sd,n),{setDescriptionCount:a}=i;return pc(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,I.jsx)(Fc.p,{id:i.descriptionId,...r,ref:t})},`DialogDescription`)),wd=`DialogClose`,Td=F.forwardRef(ed(function(e,t){let{__scopeDialog:n,...r}=e,i=ad(wd,n);return(0,I.jsx)(Fc.button,{type:`button`,...r,ref:t,onClick:rc(e.onClick,()=>i.onOpenChange(!1))})},`DialogClose`));function Ed(e){return e?`open`:`closed`}ed(Ed,`getState`);function Dd({brand:e,visual:t,auth:n,mobileAuth:r,footer:i,className:a,...o}){return(0,I.jsxs)(`section`,{className:B(`homepage-entry`,a),...o,children:[(0,I.jsxs)(`div`,{className:`homepage-entry-desktop`,children:[(0,I.jsxs)(`section`,{className:`homepage-entry-visual-column`,"aria-label":`Tutti product preview`,children:[(0,I.jsx)(`div`,{className:`homepage-entry-brand`,children:e}),(0,I.jsx)(`div`,{className:`homepage-entry-visual`,children:t})]}),(0,I.jsxs)(`aside`,{className:`homepage-entry-auth-rail`,"aria-label":`Sign in to Tutti`,children:[(0,I.jsx)(`div`,{className:`homepage-entry-auth-content`,children:n}),i===void 0?null:(0,I.jsx)(`div`,{className:`homepage-entry-auth-footnote`,children:i})]})]}),(0,I.jsxs)(`section`,{className:`homepage-entry-mobile`,"aria-label":`Sign in to Tutti`,children:[(0,I.jsx)(`div`,{className:`product-appbar`,children:e}),(0,I.jsx)(`div`,{className:`auth-shell`,children:r}),i===void 0?null:(0,I.jsx)(`div`,{className:`homepage-entry-mobile-footnote`,children:i})]})]})}function Od({className:e,...t}){return(0,I.jsx)(`p`,{className:B(`product-entry-footnote`,e),...t})}function kd({title:e,description:t,children:n,action:r,feedback:i,secondaryAction:a,className:o,...s}){return(0,I.jsxs)(`form`,{className:B(`product-entry-auth-form`,o),...s,children:[(0,I.jsxs)(`header`,{className:`product-entry-auth-header`,children:[(0,I.jsx)(`h1`,{children:e}),(0,I.jsx)(`p`,{children:t})]}),(0,I.jsx)(`div`,{className:`product-entry-auth-body`,children:n}),a===void 0?null:(0,I.jsx)(`div`,{className:`product-entry-auth-secondary`,children:a}),i===void 0?null:(0,I.jsx)(`div`,{className:`product-entry-auth-feedback`,children:i}),(0,I.jsx)(`footer`,{className:`product-entry-auth-footer`,children:r})]})}var Ad=40.1,jd=Ad+.6,Md={openingFadeEnd:1.05,chatEnd:7.45,scratchpadPanEnd:8.8,scratchpadEnd:17.8,runCursorStart:17.95,runCursorArrive:18.65,runClickStart:18.67,runEnd:18.9,executionPrepareEnd:20.35,executionImplementEnd:24.55,executionValidateEnd:26.35,executionComplete:28.15,executionEnd:28.95,fullWorkspace:30.95,artifactLive:30.55,artifactClick:32.65,artifactScroll:36.1,artifactScrollEnd:39.55,finalHoldEnd:Ad,fadeEnd:jd},Nd={centerX:.325,centerY:.25,scale:1.62},Pd={centerX:.325,centerY:.47,scale:1.64},Fd={centerX:.855,centerY:.23,scale:1.72},Id={centerX:.855,centerY:.35,scale:1.72},Ld={centerX:.855,centerY:.79,scale:1.72},Rd={centerX:.5,centerY:.5,scale:1},zd=[{start:1.35,end:5.95,from:Nd,to:Pd,linearPosition:!0},{start:7.45,end:8.8,from:Pd,to:Fd},{start:8.8,end:14.3,from:Fd,to:Id,linearPosition:!0},{start:14.6,end:17.8,from:Id,to:Ld},{start:Md.executionEnd,end:Md.fullWorkspace,from:Ld,to:Rd}];function Bd(e,t=0,n=1){return Math.min(n,Math.max(t,e))}function Vd(e){return 1-(1-Bd(e))**3}function Hd(e){let t=Bd(e);return t<.5?4*t*t*t:1-(-2*t+2)**3/2}function Ud(e){let t=Bd(e);return t<.5?16*t**5:1-(-2*t+2)**5/2}function Wd(e,t,n,r=Vd){let i=Math.max(.001,n-t);return r(Bd((e-t)/i))}function Gd(e,t,n){return e+(t-e)*n}function Kd(e,t){let n=Bd((t-e.start)/Math.max(.001,e.end-e.start)),r=e.linearPosition?n:Ud(n);return{centerX:Gd(e.from.centerX,e.to.centerX,r),centerY:Gd(e.from.centerY,e.to.centerY,r),scale:Gd(e.from.scale,e.to.scale,e.linearPosition?n:Hd(n))}}function qd(e){if(e<zd[0].start)return Nd;for(let t of zd)if(e<=t.end)return e<t.start?t.from:Kd(t,e);return Rd}function Jd(e){return e>=Md.executionComplete?{id:`complete`,label:`Task completed`}:e>=Md.executionValidateEnd?{id:`update`,label:`Synchronizing project`}:e>=Md.executionImplementEnd?{id:`validate`,label:`Validating result`}:e>=Md.executionPrepareEnd?{id:`implement`,label:`Implementing with Codex`}:{id:`prepare`,label:`Preparing workspace`}}function Yd(e){return Wd(e,Md.artifactScroll,Md.artifactScrollEnd,Hd)}function Xd(e){return 1-Wd(e,Ad,jd,Hd)}var Zd=1500,Qd=1e3,$d=2.5,ef=`(min-width: 980px) and (prefers-reduced-motion: no-preference)`,tf=(0,F.lazy)(async()=>({default:(await Na(()=>import(`./homepage-motion-scene-lpr-1FjJ.js`),[])).HomepageMotionScene}));function nf(e){let[t,n]=(0,F.useState)(()=>typeof window>`u`||typeof window.matchMedia!=`function`?!0:window.matchMedia(e).matches);return(0,F.useEffect)(()=>{if(typeof window.matchMedia!=`function`)return;let t=window.matchMedia(e),r=()=>n(t.matches);return r(),t.addEventListener(`change`,r),()=>t.removeEventListener(`change`,r)},[e]),t}function rf(){return nf(ef)}function af(e,t){let[n,r]=(0,F.useState)({elapsed:0,cycle:0}),i=(0,F.useRef)(null),a=jd+t;return(0,F.useEffect)(()=>{if(!e){i.current=null;return}let t=0,n=e=>{let o=i.current??e;i.current=e;let s=Math.min(.1,(e-o)/1e3);r(e=>{let t=e.elapsed+s;return t<a?{...e,elapsed:t}:{elapsed:t%a,cycle:e.cycle+1}}),t=window.requestAnimationFrame(n)};return t=window.requestAnimationFrame(n),()=>window.cancelAnimationFrame(t)},[a,e]),{cycle:n.cycle,time:Math.min(n.elapsed,jd)}}function of(e,t){let[n,r]=(0,F.useState)(0),i=(0,F.useRef)(t),a=(0,F.useRef)(!1);return i.current=t,(0,F.useEffect)(()=>{if(r(0),a.current=!1,!e)return;let t=0,n=null,o=e=>{n??=e;let s=Math.min((e-n)/1e3,jd);if(r(s),s>=jd){a.current||(a.current=!0,i.current());return}t=window.requestAnimationFrame(o)};return t=window.requestAnimationFrame(o),()=>window.cancelAnimationFrame(t)},[e]),n}function sf(e){let t=(0,F.useRef)(null),[n,r]=(0,F.useState)(0);return(0,F.useLayoutEffect)(()=>{if(!e)return;let n=t.current;if(n===null)return;let i=()=>{let e=n.getBoundingClientRect(),t=Math.min(e.width/Zd,e.height/Qd);r(Number.isFinite(t)?t:0)};if(i(),typeof ResizeObserver>`u`)return;let a=new ResizeObserver(i);return a.observe(n),()=>a.disconnect()},[e]),{frameRef:t,masterScale:n}}function cf({assets:e,enabled:t,sceneKey:n,time:r,className:i,...a}){let{frameRef:o,masterScale:s}=sf(t);return t?(0,I.jsx)(`div`,{ref:o,className:B(`homepage-motion-frame`,i),...a,children:(0,I.jsx)(`div`,{className:`homepage-motion-master`,style:{"--homepage-motion-scale":s},children:(0,I.jsx)(F.Suspense,{fallback:null,children:(0,I.jsx)(tf,{time:r,assets:e},n)})})}):null}function lf({assets:e,idleSeconds:t=$d,className:n,...r}){let i=rf(),a=af(i,Math.max(0,t));return(0,I.jsx)(cf,{...r,assets:e,enabled:i,sceneKey:a.cycle,time:a.time,className:n})}function uf({assets:e,onComplete:t,className:n,...r}){let i=rf(),a=of(i,(0,F.useCallback)(()=>t(),[t]));return(0,I.jsx)(cf,{...r,assets:e,enabled:i,time:a,className:n})}function df({onOpen:e,onDismiss:t,className:n,...r}){return(0,I.jsxs)(`aside`,{className:B(`product-tour-pill`,n),"aria-label":`Product tour`,...r,children:[(0,I.jsxs)(Is,{type:`button`,className:`product-tour-pill-open`,onClick:e,children:[(0,I.jsx)(`span`,{className:`product-tour-pill-icon`,"aria-hidden":`true`,children:(0,I.jsx)(Ti,{})}),(0,I.jsxs)(`span`,{className:`product-tour-pill-copy`,children:[(0,I.jsx)(`strong`,{children:`New to Tutti?`}),(0,I.jsx)(`span`,{children:`Take a tour`})]})]}),(0,I.jsx)(Ps,{type:`button`,className:`product-tour-pill-dismiss`,label:`Dismiss product tour`,icon:(0,I.jsx)(va,{"aria-hidden":`true`}),onClick:t})]})}function ff({assets:e,open:t,onOpenChange:n}){let r=rf();return(0,F.useEffect)(()=>{t&&!r&&n(!1)},[r,n,t]),r?(0,I.jsx)(od,{open:t,onOpenChange:n,children:(0,I.jsxs)(ud,{children:[(0,I.jsx)(fd,{className:`product-tour-dialog-overlay`}),(0,I.jsxs)(gd,{className:`product-tour-dialog-content`,onInteractOutside:e=>e.preventDefault(),onPointerDownOutside:e=>e.preventDefault(),children:[(0,I.jsx)(xd,{className:`product-tour-dialog-title`,children:`Welcome to Tutti`}),(0,I.jsx)(Td,{asChild:!0,children:(0,I.jsx)(Ps,{type:`button`,className:`product-tour-dialog-close`,label:`Close product tour`,icon:(0,I.jsx)(va,{"aria-hidden":`true`})})}),t?(0,I.jsx)(uf,{className:`product-tour-dialog-motion`,assets:e,onComplete:()=>n(!1)}):null]})]})}):null}function pf({asChild:e=!1,className:t,...n}){return(0,I.jsx)(e?ys:`section`,{className:B(`product-card`,t),...n})}function mf({children:e,className:t,...n}){return(0,I.jsx)(`div`,{className:B(`product-card-header`,t),...n,children:e})}function hf({children:e,className:t,...n}){return(0,I.jsx)(`div`,{className:B(`product-card-body`,t),...n,children:e})}function gf({children:e,className:t,...n}){return(0,I.jsx)(`div`,{className:B(`product-card-feedback`,t),...n,children:e})}function _f({children:e,className:t,...n}){return(0,I.jsx)(`div`,{className:B(`product-card-footer`,t),...n,children:e})}function vf({title:e,description:t,children:n,action:r,feedback:i,secondaryAction:a,size:o=`standard`,className:s,...c}){return(0,I.jsx)(pf,{className:B(`entry-card auth-card`,o===`wide`?`is-wide`:void 0,s),asChild:!0,children:(0,I.jsxs)(`form`,{...c,children:[(0,I.jsx)(`section`,{className:`auth-card-intro`,children:(0,I.jsxs)(mf,{className:`auth-card-header`,children:[(0,I.jsx)(`h1`,{children:e}),(0,I.jsx)(`p`,{children:t})]})}),(0,I.jsx)(`section`,{className:`auth-card-action`,children:(0,I.jsxs)(`div`,{className:`auth-card-action-content`,children:[(0,I.jsx)(hf,{children:n}),a===void 0?null:(0,I.jsx)(`div`,{className:`auth-card-secondary`,children:a}),i===void 0?null:(0,I.jsx)(gf,{children:i}),(0,I.jsx)(_f,{children:r})]})})]})})}function yf({projectName:e,hostLabel:t,hostOnline:n=!1,members:r,invitedBy:i,className:a,...o}){return(0,I.jsxs)(`section`,{className:B(`invite-summary`,a),"aria-label":`Project invitation`,...o,children:[(0,I.jsxs)(`div`,{className:`invite-project`,children:[(0,I.jsx)(`h2`,{children:e}),(0,I.jsxs)(`p`,{className:B(`project-line`,n?`is-online`:`is-offline`),children:[(0,I.jsx)(`span`,{className:`status-dot`,"aria-hidden":`true`}),t]})]}),r===void 0?null:(0,I.jsx)(`div`,{className:`invite-members`,children:r}),i===void 0?null:(0,I.jsxs)(`div`,{className:`invite-meta`,children:[(0,I.jsx)(`span`,{children:`Invited by`}),(0,I.jsx)(`strong`,{children:i})]})]})}function bf({label:e,value:t,action:n,className:r,...i}){return(0,I.jsxs)(`div`,{className:B(`account-row`,r),...i,children:[(0,I.jsxs)(`div`,{children:[(0,I.jsx)(`span`,{children:e}),(0,I.jsx)(`strong`,{children:t})]}),n]})}function xf({title:e,accountName:t,accountAction:n,children:r,className:i,...a}){return(0,I.jsxs)(pf,{className:B(`project-center-card`,i),...a,children:[(0,I.jsxs)(`header`,{className:`project-center-card-header`,children:[(0,I.jsx)(`h1`,{children:e}),t===void 0&&n===void 0?null:(0,I.jsxs)(`div`,{className:`project-center-account`,"aria-label":t===void 0?`Page actions`:`Signed in user`,children:[t===void 0?null:(0,I.jsx)(`span`,{className:`project-center-account-name`,children:t}),n]})]}),r]})}function Sf({action:e,description:t,descriptionId:n,disabledTrigger:r=!1,className:i,...a}){return(0,I.jsx)(`div`,{className:B(`project-center-header-action`,i),...a,children:t===void 0?e:(0,I.jsx)(Bs,{content:t,disabledTrigger:r,side:`bottom`,...n===void 0?{}:{contentId:n},children:e})})}function Cf({items:e,className:t,...n}){return(0,I.jsx)(`nav`,{className:B(`project-scope-navigation`,t),"aria-label":`Project scope`,...n,children:(0,I.jsx)(`ul`,{children:e.map(e=>(0,I.jsx)(`li`,{children:(0,I.jsx)(`a`,{href:e.href,"aria-current":e.current===!0?`page`:void 0,...e.current!==!0&&e.onClick===void 0?{}:{onClick:t=>{e.current===!0&&t.preventDefault(),e.onClick?.(t)}},children:e.label})},e.id))})})}function wf({items:e,action:t,className:n,...r}){return(0,I.jsxs)(`section`,{className:B(`project-scope-toolbar`,n),...r,children:[(0,I.jsx)(Cf,{items:e}),(0,I.jsx)(`div`,{className:`project-scope-toolbar-action`,children:t})]})}function Tf({command:e,terminalLabel:t=`Install and start in your terminal`,copyLabel:n=`Copy`,onCopyCommand:r,className:i,...a}){return(0,I.jsxs)(`section`,{className:B(`project-launch-terminal`,i),...a,children:[(0,I.jsxs)(`div`,{className:`project-launch-terminal-bar`,children:[(0,I.jsx)(`span`,{children:t}),r===void 0?null:(0,I.jsxs)(Is,{className:`project-launch-copy-button`,type:`button`,"aria-label":`Copy launch command`,onClick:()=>r(e),children:[(0,I.jsx)(Ai,{"aria-hidden":`true`}),n]})]}),(0,I.jsx)(`pre`,{className:`project-launch-command-block`,"aria-label":`Launch command`,children:(0,I.jsx)(`code`,{children:(0,I.jsxs)(`span`,{className:`project-launch-command-line`,children:[(0,I.jsx)(`span`,{className:`project-launch-command-prompt`,"aria-hidden":`true`,children:`>`}),(0,I.jsx)(`span`,{children:e})]})})})]})}function Ef({open:e,onOpenChange:t,status:n=`opening`,description:r,command:i,onCopyCommand:a,retryHref:o,onRetry:s}){return(0,I.jsx)(Mf,{open:e,onOpenChange:t,title:`Projects on this computer`,description:n===`opening`?`Opening Tutti…`:`Tutti did not open in this tab.`,className:`project-local-handoff-dialog-card`,children:(0,I.jsxs)(`div`,{className:`project-local-handoff-dialog-body`,children:[(0,I.jsxs)(`div`,{className:`project-local-handoff-intro`,children:[(0,I.jsx)(`span`,{className:`project-local-handoff-icon`,"aria-hidden":`true`,children:(0,I.jsx)(pa,{})}),(0,I.jsx)(`p`,{children:r})]}),(0,I.jsx)(Tf,{command:i,...a===void 0?{}:{onCopyCommand:a}}),n!==`failed`||o===void 0?null:(0,I.jsx)(`div`,{className:`project-local-handoff-actions`,children:(0,I.jsx)(Fs,{asChild:!0,children:(0,I.jsxs)(`a`,{href:o,...s===void 0?{}:{onClick:s},children:[(0,I.jsx)(ta,{"aria-hidden":`true`}),`Retry`]})})})]})})}function Df({children:e,className:t,...n}){return(0,I.jsx)(`ul`,{className:B(`project-list`,t),"aria-label":`Recent projects`,...n,children:e})}function Of({children:e,className:t,...n}){return(0,I.jsx)(`section`,{className:B(`project-list-surface`,t),...n,children:(0,I.jsx)(Df,{children:e})})}function kf({status:e,className:t,...n}){let r=e===`online`?`Online`:e===`connecting`?`Connecting`:e===`stopped`?`Stopped`:e===`offline`?`Offline`:`Status unknown`,i=e===`online`?(0,I.jsx)(ea,{"aria-hidden":`true`}):e===`connecting`?(0,I.jsx)(ta,{"aria-hidden":`true`}):e===`stopped`?(0,I.jsx)(Qi,{"aria-hidden":`true`}):e===`offline`?(0,I.jsx)(ga,{"aria-hidden":`true`}):(0,I.jsx)(Ti,{"aria-hidden":`true`});return(0,I.jsx)(`span`,{className:B(`project-list-status-icon`,`is-${e}`,t),"aria-label":r,role:`img`,...n,children:i})}function Af({title:e,status:t,details:n,className:r,disabled:i,...a}){return(0,I.jsx)(`li`,{className:`project-list-item`,children:(0,I.jsxs)(`button`,{className:B(`project-list-row`,t===`online`||t===`connecting`?`is-active`:`is-inactive`,r),type:`button`,disabled:i,...a,children:[(0,I.jsx)(kf,{status:t}),(0,I.jsx)(`span`,{className:`project-list-identity`,children:(0,I.jsx)(`strong`,{children:e})}),n.map(e=>(0,I.jsxs)(`span`,{className:`project-list-detail`,children:[(0,I.jsx)(`small`,{children:e.label}),(0,I.jsx)(`strong`,{children:e.value})]},e.label)),(0,I.jsx)(_i,{"aria-hidden":`true`})]})})}function jf({children:e,className:t,...n}){return(0,I.jsx)(`li`,{className:B(`project-list-item project-list-state-row`,t),...n,children:e})}function Mf({open:e,onOpenChange:t,title:n,description:r,children:i,closeDisabled:a=!1,explicitCloseOnly:o=!1,className:s}){return(0,I.jsxs)(od,{open:e,onOpenChange:e=>{(e||!a)&&t(e)},children:[(0,I.jsx)(fd,{className:`product-entry-dialog-overlay`}),(0,I.jsx)(gd,{asChild:!0,onEscapeKeyDown:e=>{(a||o)&&e.preventDefault()},onInteractOutside:e=>{(a||o)&&e.preventDefault()},onPointerDownOutside:e=>{(a||o)&&e.preventDefault()},children:(0,I.jsxs)(pf,{className:B(`product-entry-dialog-card`,s),children:[(0,I.jsxs)(`header`,{className:`product-entry-dialog-header`,children:[(0,I.jsxs)(`div`,{children:[(0,I.jsx)(xd,{children:n}),r===void 0?null:(0,I.jsx)(Cd,{children:r})]}),(0,I.jsx)(Td,{asChild:!0,children:(0,I.jsx)(Ps,{type:`button`,label:`Close`,icon:(0,I.jsx)(va,{"aria-hidden":`true`}),disabled:a})})]}),i]})})]})}function Nf({open:e,onOpenChange:t,inputLabel:n,placeholder:r,value:i,error:a,actionLabel:o=`Continue`,onValueChange:s,className:c,...l}){return(0,I.jsx)(Mf,{open:e,onOpenChange:t,title:`Join a project`,description:`Paste an invitation link or the full invitation message.`,className:`project-join-dialog-card`,children:(0,I.jsxs)(`form`,{className:B(`project-join-dialog-form`,c),...l,children:[(0,I.jsxs)(`div`,{className:`project-join-dialog-body`,children:[(0,I.jsx)(Us,{type:`text`,"aria-label":n,value:i,onChange:e=>s(e.target.value),autoFocus:!0,...r===void 0?{}:{placeholder:r}}),a==null?null:(0,I.jsx)(Js,{children:a})]}),(0,I.jsx)(`footer`,{className:`project-join-dialog-actions`,children:(0,I.jsxs)(Fs,{type:`submit`,disabled:i.trim()===``,children:[o,(0,I.jsx)(_i,{"aria-hidden":`true`})]})})]})})}function Pf({open:e,onOpenChange:t,steps:n,currentStep:r,children:i,action:a,backAction:o,feedback:s,closeDisabled:c=!1,explicitCloseOnly:l=!1,className:u,...d}){return(0,I.jsxs)(Mf,{open:e,onOpenChange:t,title:`New project`,description:`Step ${r+1} of ${n.length}`,closeDisabled:c,explicitCloseOnly:l,className:`local-console-create-card`,children:[(0,I.jsx)(`ol`,{className:`local-console-create-steps`,"aria-label":`New project steps`,children:n.map((e,t)=>(0,I.jsxs)(`li`,{className:B(t===r?`is-current`:void 0,t<r?`is-complete`:void 0),"aria-current":t===r?`step`:void 0,children:[(0,I.jsx)(`span`,{"aria-hidden":`true`,children:t+1}),(0,I.jsx)(`small`,{children:e})]},e))}),(0,I.jsxs)(`form`,{className:B(`local-console-create-form`,u),...d,children:[(0,I.jsx)(`div`,{className:`local-console-create-body`,children:i}),s===void 0?null:(0,I.jsx)(`div`,{className:`local-console-create-feedback`,children:s}),(0,I.jsxs)(`footer`,{className:`local-console-create-actions`,children:[(0,I.jsx)(`div`,{children:o}),(0,I.jsx)(`div`,{children:a})]})]})]})}function Ff({children:e,className:t,...n}){return(0,I.jsx)(`div`,{className:B(`local-console-form-grid`,t),...n,children:e})}function If({children:e,className:t,...n}){return(0,I.jsx)(`div`,{className:B(`local-console-inline-actions`,t),...n,children:e})}function Lf({title:e,description:t,children:n,className:r,...i}){return(0,I.jsxs)(`section`,{className:B(`local-console-field-group`,r),...i,children:[(0,I.jsxs)(`header`,{children:[(0,I.jsx)(`strong`,{children:e}),t===void 0?null:(0,I.jsx)(`small`,{children:t})]}),(0,I.jsx)(`div`,{className:`local-console-field-group-body`,children:n})]})}function Rf({path:e,className:t,...n}){let r=Math.max(e.lastIndexOf(`/`),e.lastIndexOf(`\\`)),i=r>0&&r<e.length-1;return(0,I.jsx)(`span`,{className:B(`local-console-project-path`,t),title:e,...n,children:i?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(`span`,{className:`local-console-project-path-prefix`,children:e.slice(0,r)}),(0,I.jsx)(`span`,{className:`local-console-project-path-separator`,children:e[r]}),(0,I.jsx)(`span`,{className:`local-console-project-path-name`,children:e.slice(r+1)})]}):(0,I.jsx)(`span`,{className:`local-console-project-path-name`,children:e})})}function zf({title:e,status:t,path:n,createdLabel:r,modelLabel:i,actions:a,className:o,...s}){return(0,I.jsx)(`li`,{className:B(`project-list-item`,`local-console-project-item`,o),...s,children:(0,I.jsxs)(`div`,{className:B(`local-console-project-row`,t===`stopped`?`is-inactive`:`is-active`),children:[(0,I.jsx)(kf,{status:t}),(0,I.jsxs)(`span`,{className:`project-list-identity`,children:[(0,I.jsx)(`span`,{className:`local-console-project-title`,children:(0,I.jsx)(`strong`,{children:e})}),i===void 0?null:(0,I.jsx)(`span`,{className:`local-console-project-signals`,children:(0,I.jsx)(`small`,{className:`local-console-provider-model`,children:i})})]}),(0,I.jsxs)(`span`,{className:`local-console-project-metadata`,children:[(0,I.jsx)(`strong`,{className:`local-console-project-date`,children:r}),(0,I.jsx)(Rf,{path:n})]}),(0,I.jsx)(`span`,{className:`local-console-project-actions`,children:a})]})})}function Bf(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var Vf=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Hf=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Uf={};function Wf(e,t){return((t||Uf).jsx?Hf:Vf).test(e)}var Gf=/[ \t\n\f\r]/g;function Kf(e){return typeof e==`object`?e.type===`text`?qf(e.value):!1:qf(e)}function qf(e){return e.replace(Gf,``)===``}var Jf=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Jf.prototype.normal={},Jf.prototype.property={},Jf.prototype.space=void 0;function Yf(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Jf(n,r,t)}function Xf(e){return e.toLowerCase()}var Zf=class{constructor(e,t){this.attribute=t,this.property=e}};Zf.prototype.attribute=``,Zf.prototype.booleanish=!1,Zf.prototype.boolean=!1,Zf.prototype.commaOrSpaceSeparated=!1,Zf.prototype.commaSeparated=!1,Zf.prototype.defined=!1,Zf.prototype.mustUseProperty=!1,Zf.prototype.number=!1,Zf.prototype.overloadedBoolean=!1,Zf.prototype.property=``,Zf.prototype.spaceSeparated=!1,Zf.prototype.space=void 0;var Qf=s({boolean:()=>U,booleanish:()=>ep,commaOrSpaceSeparated:()=>ip,commaSeparated:()=>rp,number:()=>W,overloadedBoolean:()=>tp,spaceSeparated:()=>np}),$f=0,U=ap(),ep=ap(),tp=ap(),W=ap(),np=ap(),rp=ap(),ip=ap();function ap(){return 2**++$f}var op=Object.keys(Qf),sp=class extends Zf{constructor(e,t,n,r){let i=-1;if(super(e,t),cp(this,`space`,r),typeof n==`number`)for(;++i<op.length;){let e=op[i];cp(this,op[i],(n&Qf[e])===Qf[e])}}};sp.prototype.defined=!0;function cp(e,t,n){n&&(e[t]=n)}function lp(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new sp(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Xf(r)]=r,n[Xf(a.attribute)]=r}return new Jf(t,n,e.space)}var up=lp({properties:{ariaActiveDescendant:null,ariaAtomic:ep,ariaAutoComplete:null,ariaBusy:ep,ariaChecked:ep,ariaColCount:W,ariaColIndex:W,ariaColSpan:W,ariaControls:np,ariaCurrent:null,ariaDescribedBy:np,ariaDetails:null,ariaDisabled:ep,ariaDropEffect:np,ariaErrorMessage:null,ariaExpanded:ep,ariaFlowTo:np,ariaGrabbed:ep,ariaHasPopup:null,ariaHidden:ep,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:np,ariaLevel:W,ariaLive:null,ariaModal:ep,ariaMultiLine:ep,ariaMultiSelectable:ep,ariaOrientation:null,ariaOwns:np,ariaPlaceholder:null,ariaPosInSet:W,ariaPressed:ep,ariaReadOnly:ep,ariaRelevant:null,ariaRequired:ep,ariaRoleDescription:np,ariaRowCount:W,ariaRowIndex:W,ariaRowSpan:W,ariaSelected:ep,ariaSetSize:W,ariaSort:null,ariaValueMax:W,ariaValueMin:W,ariaValueNow:W,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function dp(e,t){return t in e?e[t]:t}function fp(e,t){return dp(e,t.toLowerCase())}var pp=lp({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:rp,acceptCharset:np,accessKey:np,action:null,allow:null,allowFullScreen:U,allowPaymentRequest:U,allowUserMedia:U,alt:null,as:null,async:U,autoCapitalize:null,autoComplete:np,autoFocus:U,autoPlay:U,blocking:np,capture:null,charSet:null,checked:U,cite:null,className:np,cols:W,colSpan:null,content:null,contentEditable:ep,controls:U,controlsList:np,coords:W|rp,crossOrigin:null,data:null,dateTime:null,decoding:null,default:U,defer:U,dir:null,dirName:null,disabled:U,download:tp,draggable:ep,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:U,formTarget:null,headers:np,height:W,hidden:tp,high:W,href:null,hrefLang:null,htmlFor:np,httpEquiv:np,id:null,imageSizes:null,imageSrcSet:null,inert:U,inputMode:null,integrity:null,is:null,isMap:U,itemId:null,itemProp:np,itemRef:np,itemScope:U,itemType:np,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:U,low:W,manifest:null,max:null,maxLength:W,media:null,method:null,min:null,minLength:W,multiple:U,muted:U,name:null,nonce:null,noModule:U,noValidate:U,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:U,optimum:W,pattern:null,ping:np,placeholder:null,playsInline:U,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:U,referrerPolicy:null,rel:np,required:U,reversed:U,rows:W,rowSpan:W,sandbox:np,scope:null,scoped:U,seamless:U,selected:U,shadowRootClonable:U,shadowRootDelegatesFocus:U,shadowRootMode:null,shape:null,size:W,sizes:null,slot:null,span:W,spellCheck:ep,src:null,srcDoc:null,srcLang:null,srcSet:null,start:W,step:null,style:null,tabIndex:W,target:null,title:null,translate:null,type:null,typeMustMatch:U,useMap:null,value:ep,width:W,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:np,axis:null,background:null,bgColor:null,border:W,borderColor:null,bottomMargin:W,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:U,declare:U,event:null,face:null,frame:null,frameBorder:null,hSpace:W,leftMargin:W,link:null,longDesc:null,lowSrc:null,marginHeight:W,marginWidth:W,noResize:U,noHref:U,noShade:U,noWrap:U,object:null,profile:null,prompt:null,rev:null,rightMargin:W,rules:null,scheme:null,scrolling:ep,standby:null,summary:null,text:null,topMargin:W,valueType:null,version:null,vAlign:null,vLink:null,vSpace:W,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:U,disableRemotePlayback:U,prefix:null,property:null,results:W,security:null,unselectable:null},space:`html`,transform:fp}),mp=lp({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,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`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,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`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,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`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:ip,accentHeight:W,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:W,amplitude:W,arabicForm:null,ascent:W,attributeName:null,attributeType:null,azimuth:W,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:W,by:null,calcMode:null,capHeight:W,className:np,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:W,diffuseConstant:W,direction:null,display:null,dur:null,divisor:W,dominantBaseline:null,download:U,dx:null,dy:null,edgeMode:null,editable:null,elevation:W,enableBackground:null,end:null,event:null,exponent:W,externalResourcesRequired:null,fill:null,fillOpacity:W,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:rp,g2:rp,glyphName:rp,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:W,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:W,horizOriginX:W,horizOriginY:W,id:null,ideographic:W,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:W,k:W,k1:W,k2:W,k3:W,k4:W,kernelMatrix:ip,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:W,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:W,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:W,overlineThickness:W,paintOrder:null,panose1:null,path:null,pathLength:W,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:np,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:W,pointsAtY:W,pointsAtZ:W,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ip,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ip,rev:ip,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ip,requiredFeatures:ip,requiredFonts:ip,requiredFormats:ip,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:W,specularExponent:W,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:W,strikethroughThickness:W,string:null,stroke:null,strokeDashArray:ip,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:W,strokeOpacity:W,strokeWidth:null,style:null,surfaceScale:W,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ip,tabIndex:W,tableValues:null,target:null,targetX:W,targetY:W,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ip,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:W,underlineThickness:W,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:W,values:null,vAlphabetic:W,vMathematical:W,vectorEffect:null,vHanging:W,vIdeographic:W,version:null,vertAdvY:W,vertOriginX:W,vertOriginY:W,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:W,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:dp}),hp=lp({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),gp=lp({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:fp}),_p=lp({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),vp={classId:`classID`,dataType:`datatype`,itemId:`itemID`,strokeDashArray:`strokeDasharray`,strokeDashOffset:`strokeDashoffset`,strokeLineCap:`strokeLinecap`,strokeLineJoin:`strokeLinejoin`,strokeMiterLimit:`strokeMiterlimit`,typeOf:`typeof`,xLinkActuate:`xlinkActuate`,xLinkArcRole:`xlinkArcrole`,xLinkHref:`xlinkHref`,xLinkRole:`xlinkRole`,xLinkShow:`xlinkShow`,xLinkTitle:`xlinkTitle`,xLinkType:`xlinkType`,xmlnsXLink:`xmlnsXlink`},yp=/[A-Z]/g,bp=/-[a-z]/g,xp=/^data[-\w.:]+$/i;function Sp(e,t){let n=Xf(t),r=t,i=Zf;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&xp.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(bp,wp);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!bp.test(e)){let n=e.replace(yp,Cp);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=sp}return new i(r,t)}function Cp(e){return`-`+e.toLowerCase()}function wp(e){return e.charAt(1).toUpperCase()}var Tp=Yf([up,pp,hp,gp,_p],`html`),Ep=Yf([up,mp,hp,gp,_p],`svg`);function Dp(e){return e.join(` `).trim()}var Op=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g,u=`
|
|
51
51
|
`,d=`/`,f=`*`,p=``,m=`comment`,h=`declaration`;function g(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,g=1;function v(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(u);g=~n?e.length-n:g+e.length}function y(){var e={line:l,column:g};return function(t){return t.position=new b(e),C(),t}}function b(e){this.start=e,this.end={line:l,column:g},this.source=t.source}b.prototype.content=e;function x(n){var r=Error(t.source+`:`+l+`:`+g+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=g,r.source=e,!t.silent)throw r}function S(t){var n=t.exec(e);if(n){var r=n[0];return v(r),e=e.slice(r.length),n}}function C(){S(i)}function w(e){var t;for(e||=[];t=T();)t!==!1&&e.push(t);return e}function T(){var t=y();if(!(d!=e.charAt(0)||f!=e.charAt(1))){for(var n=2;p!=e.charAt(n)&&(f!=e.charAt(n)||d!=e.charAt(n+1));)++n;if(n+=2,p===e.charAt(n-1))return x(`End of comment missing`);var r=e.slice(2,n-2);return g+=2,v(r),e=e.slice(n),g+=2,t({type:m,comment:r})}}function E(){var e=y(),t=S(a);if(t){if(T(),!S(o))return x(`property missing ':'`);var r=S(s),i=e({type:h,property:_(t[0].replace(n,p)),value:r?_(r[0].replace(n,p)):p});return S(c),i}}function ee(){var e=[];w(e);for(var t;t=E();)t!==!1&&(e.push(t),w(e));return e}return C(),ee()}function _(e){return e?e.replace(l,p):p}t.exports=g})),kp=o((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.default=r;var n=t(Op());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),Ap=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),jp=o(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(kp()),r=Ap();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),Mp=Pp(`end`),Np=Pp(`start`);function Pp(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function Fp(e){let t=Np(e),n=Mp(e);if(t&&n)return{start:t,end:n}}function Ip(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Rp(e.position):`start`in e||`end`in e?Rp(e):`line`in e||`column`in e?Lp(e):``}function Lp(e){return zp(e&&e.line)+`:`+zp(e&&e.column)}function Rp(e){return Lp(e&&e.start)+`-`+Lp(e&&e.end)}function zp(e){return e&&typeof e==`number`?e:1}var Bp=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&`start`in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file=``,this.message=r,this.line=o?o.line:void 0,this.name=Ip(i.place)||`1:1`,this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};Bp.prototype.file=``,Bp.prototype.name=``,Bp.prototype.reason=``,Bp.prototype.message=``,Bp.prototype.stack=``,Bp.prototype.column=void 0,Bp.prototype.line=void 0,Bp.prototype.ancestors=void 0,Bp.prototype.cause=void 0,Bp.prototype.fatal=void 0,Bp.prototype.place=void 0,Bp.prototype.ruleId=void 0,Bp.prototype.source=void 0;var Vp=l(jp(),1),Hp={}.hasOwnProperty,Up=new Map,Wp=/[A-Z]/g,Gp=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),Kp=new Set([`td`,`th`]),qp=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function Jp(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=am(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=im(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?Ep:Tp,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Yp(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Yp(e,t,n){if(t.type===`element`)return Xp(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return Zp(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return $p(e,t,n);if(t.type===`mdxjsEsm`)return Qp(e,t);if(t.type===`root`)return em(e,t,n);if(t.type===`text`)return tm(e,t)}function Xp(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=Ep,e.schema=i),e.ancestors.push(t);let a=dm(e,t.tagName,!1),o=om(e,t),s=cm(e,t);return Gp.has(t.tagName)&&(s=s.filter(function(e){return typeof e==`string`?!Kf(e):!0})),nm(e,o,a,t),rm(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Zp(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}fm(e,t.position)}function Qp(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);fm(e,t.position)}function $p(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=Ep,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:dm(e,t.name,!0),o=sm(e,t),s=cm(e,t);return nm(e,o,a,t),rm(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function em(e,t,n){let r={};return rm(r,cm(e,t)),e.create(t,e.Fragment,r,n)}function tm(e,t){return t.value}function nm(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function rm(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function im(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function am(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=Np(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function om(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&Hp.call(t.properties,i)){let a=lm(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&Kp.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function sm(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else fm(e,t.position);else{let i=r.name,a;if(r.value&&typeof r.value==`object`)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else fm(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function cm(e,t){let n=[],r=-1,i=e.passKeys?new Map:Up;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=Yp(e,a,o);s!==void 0&&n.push(s)}return n}function lm(e,t,n){let r=Sp(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Bf(n):Dp(n)),r.property===`style`){let t=typeof n==`object`?n:um(e,String(n));return e.stylePropertyNameCase===`css`&&(t=pm(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?vp[r.property]||r.property:r.attribute,n]}}function um(e,t){try{return(0,Vp.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new Bp("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=qp+`#cannot-parse-style-attribute`,r}}function dm(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=Wf(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=Wf(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return Hp.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);fm(e)}function fm(e,t){let n=new Bp("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:`mdx-estree`,source:`hast-util-to-jsx-runtime`});throw n.file=e.filePath||void 0,n.url=qp+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function pm(e){let t={},n;for(n in e)Hp.call(e,n)&&(t[mm(n)]=e[n]);return t}function mm(e){let t=e.replace(Wp,hm);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function hm(e){return`-`+e.toLowerCase()}var gm={action:[`form`],cite:[`blockquote`,`del`,`ins`,`q`],data:[`object`],formAction:[`button`,`input`],href:[`a`,`area`,`base`,`link`],icon:[`menuitem`],itemId:null,manifest:[`html`],ping:[`a`,`area`],poster:[`video`],src:[`audio`,`embed`,`iframe`,`img`,`input`,`script`,`source`,`track`,`video`]},_m={};function vm(e,t){let n=t||_m;return ym(e,typeof n.includeImageAlt==`boolean`?n.includeImageAlt:!0,typeof n.includeHtml==`boolean`?n.includeHtml:!0)}function ym(e,t,n){if(xm(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return bm(e.children,t,n)}return Array.isArray(e)?bm(e,t,n):``}function bm(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=ym(e[i],t,n);return r.join(``)}function xm(e){return!!(e&&typeof e==`object`)}var Sm=document.createElement(`i`);function Cm(e){let t=`&`+e+`;`;Sm.innerHTML=t;let n=Sm.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`||n===t?!1:n}function wm(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function Tm(e,t){return e.length>0?(wm(e,e.length,0,t),e):t}var Em={}.hasOwnProperty;function Dm(e){let t={},n=-1;for(;++n<e.length;)Om(t,e[n]);return t}function Om(e,t){let n;for(n in t){let r=(Em.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){Em.call(r,a)||(r[a]=[]);let e=i[a];km(r[a],Array.isArray(e)?e:e?[e]:[])}}}function km(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);wm(e,0,0,r)}function Am(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function jm(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var Mm=Um(/[A-Za-z]/),Nm=Um(/[\dA-Za-z]/),Pm=Um(/[#-'*+\--9=?A-Z^-~]/);function Fm(e){return e!==null&&(e<32||e===127)}var Im=Um(/\d/),Lm=Um(/[\dA-Fa-f]/),Rm=Um(/[!-/:-@[-`{-~]/);function G(e){return e!==null&&e<-2}function zm(e){return e!==null&&(e<0||e===32)}function Bm(e){return e===-2||e===-1||e===32}var Vm=Um(/\p{P}|\p{S}/u),Hm=Um(/\s/);function Um(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Wm(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&Nm(e.charCodeAt(n+1))&&Nm(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function Gm(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return Bm(r)?(e.enter(n),s(r)):t(r)}function s(r){return Bm(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}var Km={tokenize:qm};function qm(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null){e.consume(n);return}return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Gm(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null){e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);return}return G(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var Jm={tokenize:Xm},Ym={tokenize:Zm};function Xm(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;return wm(t.events,a+1,0,t.events.slice(n)),t.events.length=s,l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Ym,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(Ym,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null){i&&v(),_(0),e.consume(n);return}return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null){g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);return}return G(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;wm(t.events,a+1,0,t.events.slice(n)),t.events.length=e}}function _(r){let i=n.length;for(;i-- >r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Zm(e,t,n){return Gm(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function Qm(e){if(e===null||zm(e)||Hm(e))return 1;if(Vm(e))return 2}function $m(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var eh={name:`attention`,resolveAll:th,tokenize:nh};function th(e,t){let n=-1,r,i,a,o,s,c,l,u;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){for(r=n;r--;)if(e[r][0]===`exit`&&e[r][1].type===`attentionSequence`&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;c=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let d={...e[r][1].end},f={...e[n][1].start};rh(d,-c),rh(f,c),o={type:c>1?`strongSequence`:`emphasisSequence`,start:d,end:{...e[r][1].end}},s={type:c>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:f},a={type:c>1?`strongText`:`emphasisText`,start:{...e[r][1].end},end:{...e[n][1].start}},i={type:c>1?`strong`:`emphasis`,start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},l=[],e[r][1].end.offset-e[r][1].start.offset&&(l=Tm(l,[[`enter`,e[r][1],t],[`exit`,e[r][1],t]])),l=Tm(l,[[`enter`,i,t],[`enter`,o,t],[`exit`,o,t],[`enter`,a,t]]),l=Tm(l,$m(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),l=Tm(l,[[`exit`,a,t],[`enter`,s,t],[`exit`,s,t],[`exit`,i,t]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,l=Tm(l,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])):u=0,wm(e,r-1,n-r+3,l),n=r+l.length-u-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function nh(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Qm(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=Qm(o),u=!l||l===2&&i||n.includes(o),d=!i||i===2&&l||n.includes(r);return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function rh(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var ih={name:`autolink`,tokenize:ah};function ah(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return Mm(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||Nm(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||Nm(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||Fm(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):Pm(t)?(e.consume(t),l):n(t)}function u(e){return Nm(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||Nm(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var oh={partial:!0,tokenize:sh};function sh(e,t,n){return r;function r(t){return Bm(t)?Gm(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||G(e)?t(e):n(e)}}var ch={continuation:{tokenize:uh},exit:dh,name:`blockQuote`,tokenize:lh};function lh(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return Bm(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function uh(e,t,n){let r=this;return i;function i(t){return Bm(t)?Gm(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(ch,t,n)(r)}}function dh(e){e.exit(`blockQuote`)}var fh={name:`characterEscape`,tokenize:ph};function ph(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return Rm(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var mh={name:`characterReference`,tokenize:hh};function hh(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=Nm,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=Lm,u):(e.enter(`characterReferenceValue`),a=7,o=Im,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===Nm&&!Cm(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var gh={partial:!0,tokenize:yh},_h={concrete:!0,name:`codeFenced`,tokenize:vh};function vh(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),Bm(t)?Gm(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||G(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(gh,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||G(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):Bm(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),Gm(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||G(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||G(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&Bm(t)?Gm(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||G(t)?e.check(gh,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||G(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),Bm(t)?Gm(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),Bm(t)?Gm(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||G(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}function yh(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var bh={name:`codeIndented`,tokenize:Sh},xh={partial:!0,tokenize:Ch};function Sh(e,t,n){let r=this;return i;function i(t){return e.enter(`codeIndented`),Gm(e,a,`linePrefix`,5)(t)}function a(e){let t=r.events[r.events.length-1];return t&&t[1].type===`linePrefix`&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return t===null?c(t):G(t)?e.attempt(xh,o,c)(t):(e.enter(`codeFlowValue`),s(t))}function s(t){return t===null||G(t)?(e.exit(`codeFlowValue`),o(t)):(e.consume(t),s)}function c(n){return e.exit(`codeIndented`),t(n)}}function Ch(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):G(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),i):Gm(e,a,`linePrefix`,5)(t)}function a(e){let a=r.events[r.events.length-1];return a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):G(e)?i(e):n(e)}}var wh={name:`codeText`,previous:Eh,resolve:Th,tokenize:Dh};function Th(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Eh(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function Dh(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):G(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||G(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var Oh=class{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??1/0;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&kh(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),kh(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),kh(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e<this.left.length){let t=this.left.splice(e,1/0);kh(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);kh(this.left,t.reverse())}}};function kh(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Ah(e){let t={},n=-1,r,i,a,o,s,c,l,u=new Oh(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,jh(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(!(o[1].type===`linePrefix`||o[1].type===`listItemIndent`))break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return wm(e,0,1/0,u.slice(0)),!l}function jh(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var Mh={resolve:Ph,tokenize:Fh},Nh={partial:!0,tokenize:Ih};function Ph(e){return Ah(e),e}function Fh(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):G(t)?e.check(Nh,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function Ih(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Gm(e,a,`linePrefix`)}function a(i){if(i===null||G(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function Lh(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||Fm(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||G(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||zm(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||Fm(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function Rh(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):G(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||G(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!Bm(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function zh(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):G(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),Gm(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||G(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function Bh(e,t){let n;return r;function r(i){return G(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):Bm(i)?Gm(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var Vh={name:`definition`,tokenize:Uh},Hh={partial:!0,tokenize:Wh};function Uh(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return Rh.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=jm(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return zm(t)?Bh(e,l)(t):l(t)}function l(t){return Lh(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(Hh,d,d)(t)}function d(t){return Bm(t)?Gm(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||G(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function Wh(e,t,n){return r;function r(t){return zm(t)?Bh(e,i)(t):n(t)}function i(t){return zh(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return Bm(t)?Gm(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||G(e)?t(e):n(e)}}var Gh={name:`hardBreakEscape`,tokenize:Kh};function Kh(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return G(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var qh={name:`headingAtx`,resolve:Jh,tokenize:Yh};function Jh(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r&&(i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`},wm(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])),e}function Yh(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||zm(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||G(n)?(e.exit(`atxHeading`),t(n)):Bm(n)?Gm(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||zm(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var Xh=`address.article.aside.base.basefont.blockquote.body.caption.center.col.colgroup.dd.details.dialog.dir.div.dl.dt.fieldset.figcaption.figure.footer.form.frame.frameset.h1.h2.h3.h4.h5.h6.head.header.hr.html.iframe.legend.li.link.main.menu.menuitem.nav.noframes.ol.optgroup.option.p.param.search.section.summary.table.tbody.td.tfoot.th.thead.title.tr.track.ul`.split(`.`),Zh=[`pre`,`script`,`style`,`textarea`],Qh={concrete:!0,name:`htmlFlow`,resolveTo:tg,tokenize:ng},$h={partial:!0,tokenize:ig},eg={partial:!0,tokenize:rg};function tg(e){let t=e.length;for(;t--&&!(e[t][0]===`enter`&&e[t][1].type===`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function ng(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:N):Mm(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):Mm(a)?(e.consume(a),i=4,r.interrupt?t:N):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:N):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:D:m):n(i)}function h(t){return Mm(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||zm(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&Zh.includes(l)?(i=1,r.interrupt?t(s):D(s)):Xh.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):D(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||Nm(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:D):n(i)}function v(t){return Bm(t)?(e.consume(t),v):E(t)}function y(t){return t===47?(e.consume(t),E):t===58||t===95||Mm(t)?(e.consume(t),b):Bm(t)?(e.consume(t),y):E(t)}function b(t){return t===45||t===46||t===58||t===95||Nm(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):Bm(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,C):Bm(t)?(e.consume(t),S):w(t)}function C(t){return t===c?(e.consume(t),c=null,T):t===null||G(t)?n(t):(e.consume(t),C)}function w(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||zm(t)?x(t):(e.consume(t),w)}function T(e){return e===47||e===62||Bm(e)?y(e):n(e)}function E(t){return t===62?(e.consume(t),ee):n(t)}function ee(t){return t===null||G(t)?D(t):Bm(t)?(e.consume(t),ee):n(t)}function D(t){return t===45&&i===2?(e.consume(t),j):t===60&&i===1?(e.consume(t),M):t===62&&i===4?(e.consume(t),P):t===63&&i===3?(e.consume(t),N):t===93&&i===5?(e.consume(t),ne):G(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check($h,re,O)(t)):t===null||G(t)?(e.exit(`htmlFlowData`),O(t)):(e.consume(t),D)}function O(t){return e.check(eg,k,re)(t)}function k(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),A}function A(t){return t===null||G(t)?O(t):(e.enter(`htmlFlowData`),D(t))}function j(t){return t===45?(e.consume(t),N):D(t)}function M(t){return t===47?(e.consume(t),o=``,te):D(t)}function te(t){if(t===62){let n=o.toLowerCase();return Zh.includes(n)?(e.consume(t),P):D(t)}return Mm(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),te):D(t)}function ne(t){return t===93?(e.consume(t),N):D(t)}function N(t){return t===62?(e.consume(t),P):t===45&&i===2?(e.consume(t),N):D(t)}function P(t){return t===null||G(t)?(e.exit(`htmlFlowData`),re(t)):(e.consume(t),P)}function re(n){return e.exit(`htmlFlow`),t(n)}}function rg(e,t,n){let r=this;return i;function i(t){return G(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a):n(t)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}function ig(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(oh,t,n)}}var ag={name:`htmlText`,tokenize:og};function og(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):Mm(t)?(e.consume(t),w):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):Mm(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):G(t)?(o=d,M(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?j(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):G(t)?(o=h,M(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?j(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?j(t):G(t)?(o=v,M(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):G(t)?(o=y,M(t)):(e.consume(t),y)}function b(e){return e===62?j(e):y(e)}function x(t){return Mm(t)?(e.consume(t),S):n(t)}function S(t){return t===45||Nm(t)?(e.consume(t),S):C(t)}function C(t){return G(t)?(o=C,M(t)):Bm(t)?(e.consume(t),C):j(t)}function w(t){return t===45||Nm(t)?(e.consume(t),w):t===47||t===62||zm(t)?T(t):n(t)}function T(t){return t===47?(e.consume(t),j):t===58||t===95||Mm(t)?(e.consume(t),E):G(t)?(o=T,M(t)):Bm(t)?(e.consume(t),T):j(t)}function E(t){return t===45||t===46||t===58||t===95||Nm(t)?(e.consume(t),E):ee(t)}function ee(t){return t===61?(e.consume(t),D):G(t)?(o=ee,M(t)):Bm(t)?(e.consume(t),ee):T(t)}function D(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,O):G(t)?(o=D,M(t)):Bm(t)?(e.consume(t),D):(e.consume(t),k)}function O(t){return t===i?(e.consume(t),i=void 0,A):t===null?n(t):G(t)?(o=O,M(t)):(e.consume(t),O)}function k(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||zm(t)?T(t):(e.consume(t),k)}function A(e){return e===47||e===62||zm(e)?T(e):n(e)}function j(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function M(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),te}function te(t){return Bm(t)?Gm(e,ne,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):ne(t)}function ne(t){return e.enter(`htmlTextData`),o(t)}}var sg={name:`labelEnd`,resolveAll:dg,resolveTo:fg,tokenize:pg},cg={tokenize:mg},lg={tokenize:hg},ug={tokenize:gg};function dg(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&wm(e,0,e.length,n),e}function fg(e,t){let n=e.length,r=0,i,a,o,s;for(;n--;)if(i=e[n][1],a){if(i.type===`link`||i.type===`labelLink`&&i._inactive)break;e[n][0]===`enter`&&i.type===`labelLink`&&(i._inactive=!0)}else if(o){if(e[n][0]===`enter`&&(i.type===`labelImage`||i.type===`labelLink`)&&!i._balanced&&(a=n,i.type!==`labelLink`)){r=2;break}}else i.type===`labelEnd`&&(o=n);let c={type:e[a][1].type===`labelLink`?`link`:`image`,start:{...e[a][1].start},end:{...e[e.length-1][1].end}},l={type:`label`,start:{...e[a][1].start},end:{...e[o][1].end}},u={type:`labelText`,start:{...e[a+r+2][1].end},end:{...e[o-2][1].start}};return s=[[`enter`,c,t],[`enter`,l,t]],s=Tm(s,e.slice(a+1,a+r+3)),s=Tm(s,[[`enter`,u,t]]),s=Tm(s,$m(t.parser.constructs.insideSpan.null,e.slice(a+r+4,o-3),t)),s=Tm(s,[[`exit`,u,t],e[o-2],e[o-1],[`exit`,l,t]]),s=Tm(s,e.slice(o+1)),s=Tm(s,[[`exit`,c,t]]),wm(e,a,e.length,s),e}function pg(e,t,n){let r=this,i=r.events.length,a,o;for(;i--;)if((r.events[i][1].type===`labelImage`||r.events[i][1].type===`labelLink`)&&!r.events[i][1]._balanced){a=r.events[i][1];break}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(jm(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(cg,u,o?u:d)(t):t===91?e.attempt(lg,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(ug,u,d)(t)}function u(e){return t(e)}function d(e){return a._balanced=!0,n(e)}}function mg(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return zm(t)?Bh(e,a)(t):a(t)}function a(t){return t===41?u(t):Lh(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return zm(t)?Bh(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?zh(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return zm(t)?Bh(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function hg(e,t,n){let r=this;return i;function i(t){return Rh.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(jm(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function gg(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var _g={name:`labelStartImage`,resolveAll:sg.resolveAll,tokenize:vg};function vg(e,t,n){let r=this;return i;function i(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),a}function a(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelImage`),o):n(t)}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var yg={name:`labelStartLink`,resolveAll:sg.resolveAll,tokenize:bg};function bg(e,t,n){let r=this;return i;function i(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelLink`),a}function a(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):t(e)}}var xg={name:`lineEnding`,tokenize:Sg};function Sg(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),Gm(e,t,`linePrefix`)}}var Cg={name:`thematicBreak`,tokenize:wg};function wg(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||G(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),Bm(t)?Gm(e,s,`whitespace`)(t):s(t))}}var Tg={continuation:{tokenize:kg},exit:jg,name:`list`,tokenize:Og},Eg={partial:!0,tokenize:Mg},Dg={partial:!0,tokenize:Ag};function Og(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:Im(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(Cg,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return Im(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(oh,r.interrupt?n:u,e.attempt(Eg,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return Bm(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function kg(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(oh,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Gm(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!Bm(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Dg,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,Gm(e,e.attempt(Tg,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function Ag(e,t,n){let r=this;return Gm(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function jg(e){e.exit(this.containerState.type)}function Mg(e,t,n){let r=this;return Gm(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!Bm(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var Ng={name:`setextUnderline`,resolveTo:Pg,tokenize:Fg};function Pg(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]===`enter`){if(e[n][1].type===`content`){r=n;break}e[n][1].type===`paragraph`&&(i=n)}else e[n][1].type===`content`&&e.splice(n,1),!a&&e[n][1].type===`definition`&&(a=n);let o={type:`setextHeading`,start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type=`setextHeadingText`,a?(e.splice(i,0,[`enter`,o,t]),e.splice(a+1,0,[`exit`,e[r][1],t]),e[r][1].end={...e[a][1].end}):e[r][1]=o,e.push([`exit`,o,t]),e}function Fg(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),Bm(t)?Gm(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||G(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var Ig={tokenize:Lg};function Lg(e){let t=this,n=e.attempt(oh,r,e.attempt(this.parser.constructs.flowInitial,i,Gm(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Mh,i)),`linePrefix`)));return n;function r(r){if(r===null){e.consume(r);return}return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null){e.consume(r);return}return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var Rg={resolveAll:Hg()},zg=Vg(`string`),Bg=Vg(`text`);function Vg(e){return{resolveAll:Hg(e===`text`?Ug:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null){t.consume(e);return}return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}function Hg(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function Ug(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type===`lineEnding`)&&e[n-1][1].type===`data`){let r=e[n-1][1],i=t.sliceStream(r),a=i.length,o=-1,s=0,c;for(;a--;){let e=i[a];if(typeof e==`string`){for(o=e.length;e.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(e===-2)c=!0,s++;else if(e!==-1){a++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let i={type:n===e.length||c||s<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:a?o:r.start._bufferIndex+o,_index:r.start._index+a,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...i.start},r.start.offset===r.end.offset?Object.assign(r,i):(e.splice(n,0,[`enter`,i,t],[`exit`,i,t]),n+=2)}n++}return e}var Wg=s({attentionMarkers:()=>Qg,contentInitial:()=>Kg,disable:()=>$g,document:()=>Gg,flow:()=>Jg,flowInitial:()=>qg,insideSpan:()=>Zg,string:()=>Yg,text:()=>Xg}),Gg={42:Tg,43:Tg,45:Tg,48:Tg,49:Tg,50:Tg,51:Tg,52:Tg,53:Tg,54:Tg,55:Tg,56:Tg,57:Tg,62:ch},Kg={91:Vh},qg={[-2]:bh,[-1]:bh,32:bh},Jg={35:qh,42:Cg,45:[Ng,Cg],60:Qh,61:Ng,95:Cg,96:_h,126:_h},Yg={38:mh,92:fh},Xg={[-5]:xg,[-4]:xg,[-3]:xg,33:_g,38:mh,42:eh,60:[ih,ag],91:yg,92:[Gh,fh],93:sg,95:eh,96:wh},Zg={null:[eh,Rg]},Qg={null:[42,95]},$g={null:[]};function e_(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},a=[],o=[],s=[],c={attempt:C(x),check:C(S),consume:v,enter:y,exit:b,interrupt:C(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=Tm(o,e),g(),o[o.length-1]===null?(w(t,0),l.events=$m(a,l.events,l),l.events):[]}function f(e,t){return n_(p(e),t)}function p(e){return t_(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,E()}function g(){let e;for(;r._index<o.length;){let t=o[r._index];if(typeof t==`string`)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<t.length;)_(t.charCodeAt(r._bufferIndex));else _(t)}}function _(e){u=u(e)}function v(e){G(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,E()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){w(e,t.from)}function S(e,t){t.restore()}function C(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=T(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function w(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&wm(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function T(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,E()}}function E(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function t_(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function n_(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
|
|
52
52
|
`;break;case-3:o=`\r
|
|
53
53
|
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function r_(e){let t={constructs:Dm([Wg,...(e||{}).extensions||[]]),content:n(Km),defined:[],document:n(Jm),flow:n(Ig),lazy:{},string:n(zg),text:n(Bg)};return t;function n(e){return n;function n(n){return e_(t,e,n)}}}function i_(e){for(;!Ah(e););return e}var a_=/[\0\t\n\r]/g;function o_(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){let s=[],c,l,u,d,f;for(i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i)),u=0,t=``,n&&=(i.charCodeAt(0)===65279&&u++,void 0);u<i.length;){if(a_.lastIndex=u,c=a_.exec(i),d=c&&c.index!==void 0?c.index:i.length,f=i.charCodeAt(d),!c){t=i.slice(u);break}if(f===10&&u===d&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),u<d&&(s.push(i.slice(u,d)),e+=d-u),f){case 0:s.push(65533),e++;break;case 9:for(l=Math.ceil(e/4)*4,s.push(-2);e++<l;)s.push(-1);break;case 10:s.push(-4),e=1;break;default:r=!0,e=1}u=d+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var s_=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function c_(e){return e.replace(s_,l_)}function l_(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return Am(n.slice(t?2:1),t?16:10)}return Cm(n)||e}var u_={}.hasOwnProperty;function d_(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),f_(n)(i_(r_(n).document().write(o_()(e,t,!0))))}function f_(e){let t={transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:a(be),autolinkProtocol:T,autolinkEmail:T,atxHeading:a(ge),blockQuote:a(de),characterEscape:T,characterReference:T,codeFenced:a(fe),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(fe,o),codeText:a(pe,o),codeTextData:T,data:T,codeFlowValue:T,definition:a(me),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(he),hardBreakEscape:a(_e),hardBreakTrailing:a(_e),htmlFlow:a(ve,o),htmlFlowData:T,htmlText:a(ve,o),htmlTextData:T,image:a(ye),label:o,link:a(be),listItem:a(Se),listItemValue:f,listOrdered:a(xe,d),listUnordered:a(xe),paragraph:a(Ce),reference:ie,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(ge),strong:a(we),thematicBreak:a(Ee)},exit:{atxHeading:c(),atxHeadingSequence:x,autolink:c(),autolinkEmail:ue,autolinkProtocol:le,blockQuote:c(),characterEscapeValue:E,characterReferenceMarkerHexadecimal:oe,characterReferenceMarkerNumeric:oe,characterReferenceValue:se,characterReference:ce,codeFenced:c(g),codeFencedFence:h,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:E,codeIndented:c(_),codeText:c(A),codeTextData:E,data:E,definition:c(),definitionDestinationString:b,definitionLabelString:v,definitionTitleString:y,emphasis:c(),hardBreakEscape:c(D),hardBreakTrailing:c(D),htmlFlow:c(O),htmlFlowData:E,htmlText:c(k),htmlTextData:E,image:c(M),label:ne,labelText:te,lineEnding:ee,link:c(j),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:ae,resourceDestinationString:N,resourceTitleString:P,resource:re,setextHeading:c(w),setextHeadingLineSequence:C,setextHeadingText:S,strong:c(),thematicBreak:c()}};m_(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[]},a={stack:[r],tokenStack:[],config:t,enter:s,exit:l,buffer:o,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)(e[d][1].type===`listOrdered`||e[d][1].type===`listUnordered`)&&(e[d][0]===`enter`?c.push(d):d=i(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];u_.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},a),e[d][1])}if(a.tokenStack.length>0){let e=a.tokenStack[a.tokenStack.length-1];(e[1]||g_).call(a,void 0,e[0])}for(r.position={start:p_(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:p_(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)r=t.transforms[d](r)||r;return r}function i(e,t,n){let r=t-1,i=-1,a=!1,o,s,c,l;for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let i=r;for(s=void 0;i--;){let t=e[i];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=i}else if(!(t[1].type===`linePrefix`||t[1].type===`blockQuotePrefix`||t[1].type===`blockQuotePrefixWhitespace`||t[1].type===`blockQuoteMarker`||t[1].type===`listItemIndent`))break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),e.splice(s||r,0,[`exit`,o,t[2]]),r++,n++}if(t[1].type===`listItemPrefix`){let i={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=i,e.splice(r,0,[`enter`,i,t[2]]),r++,n++,c=void 0,l=!0}}}return e[t][1]._spread=a,n}function a(e,t){return n;function n(n){s.call(this,e(n),n),t&&t.call(this,n)}}function o(){this.stack.push({type:`fragment`,children:[]})}function s(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:p_(t.start),end:void 0}}function c(e){return t;function t(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||g_).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+Ip({start:e.start,end:e.end})+`): it’s not open`);n.position.end=p_(e.end)}function u(){return vm(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function f(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function p(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function h(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function v(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=jm(this.sliceSerialize(e)).toLowerCase()}function y(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function x(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function S(){this.data.setextHeadingSlurpLineEnding=!0}function C(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function w(){this.data.setextHeadingSlurpLineEnding=void 0}function T(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=Te(),n.position={start:p_(e.start),end:void 0},t.push(n)),this.stack.push(n)}function E(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=p_(e.end)}function ee(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=p_(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(T.call(this,e),E.call(this,e))}function D(){this.data.atHardBreak=!0}function O(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function k(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function A(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function j(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function M(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||`shortcut`;e.type+=`Reference`,e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}function te(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=c_(t),n.identifier=jm(t).toLowerCase()}function ne(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function N(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function P(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function re(){this.data.inReference=void 0}function ie(){this.data.referenceType=`collapsed`}function ae(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=jm(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function oe(e){this.data.characterReferenceType=e.type}function se(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=Am(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=Cm(t);let i=this.stack[this.stack.length-1];i.value+=r}function ce(e){let t=this.stack.pop();t.position.end=p_(e.end)}function le(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function ue(e){E.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function de(){return{type:`blockquote`,children:[]}}function fe(){return{type:`code`,lang:null,meta:null,value:``}}function pe(){return{type:`inlineCode`,value:``}}function me(){return{type:`definition`,identifier:``,label:null,title:null,url:``}}function he(){return{type:`emphasis`,children:[]}}function ge(){return{type:`heading`,depth:0,children:[]}}function _e(){return{type:`break`}}function ve(){return{type:`html`,value:``}}function ye(){return{type:`image`,title:null,url:``,alt:null}}function be(){return{type:`link`,title:null,url:``,children:[]}}function xe(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[]}}function Se(e){return{type:`listItem`,spread:e._spread,checked:null,children:[]}}function Ce(){return{type:`paragraph`,children:[]}}function we(){return{type:`strong`,children:[]}}function Te(){return{type:`text`,value:``}}function Ee(){return{type:`thematicBreak`}}}function p_(e){return{line:e.line,column:e.column,offset:e.offset}}function m_(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?m_(e,r):h_(e,r)}}function h_(e,t){let n;for(n in t)if(u_.call(t,n))switch(n){case`canContainEols`:{let r=t[n];r&&e[n].push(...r);break}case`transforms`:{let r=t[n];r&&e[n].push(...r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function g_(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+Ip({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ip({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+Ip({start:t.start,end:t.end})+`) is still open`)}function __(e){let t=this;t.parser=n;function n(n){return d_(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function v_(e,t){let n={type:`element`,tagName:`blockquote`,properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function y_(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|