md-review 0.0.7 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var tm;function PE(){if(tm)return mr;tm=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function l(o,s,f){var c=null;if(f!==void 0&&(c=""+f),s.key!==void 0&&(c=""+s.key),"key"in s){f={};for(var p in s)p!=="key"&&(f[p]=s[p])}else f=s;return s=f.ref,{$$typeof:n,type:o,key:c,ref:s!==void 0?s:null,props:f}}return mr.Fragment=a,mr.jsx=l,mr.jsxs=l,mr}var nm;function ZE(){return nm||(nm=1,gc.exports=PE()),gc.exports}var L=ZE(),bc={exports:{}},Oe={};/**
9
+ */var tm;function PE(){if(tm)return mr;tm=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function l(o,s,f){var c=null;if(f!==void 0&&(c=""+f),s.key!==void 0&&(c=""+s.key),"key"in s){f={};for(var p in s)p!=="key"&&(f[p]=s[p])}else f=s;return s=f.ref,{$$typeof:n,type:o,key:c,ref:s!==void 0?s:null,props:f}}return mr.Fragment=a,mr.jsx=l,mr.jsxs=l,mr}var nm;function ZE(){return nm||(nm=1,gc.exports=PE()),gc.exports}var D=ZE(),bc={exports:{}},Oe={};/**
10
10
  * @license React
11
11
  * react.production.js
12
12
  *
@@ -45,8 +45,8 @@
45
45
  `);for(u=r=0;r<w.length&&!w[r].includes("DetermineComponentFrameRoot");)r++;for(;u<q.length&&!q[u].includes("DetermineComponentFrameRoot");)u++;if(r===w.length||u===q.length)for(r=w.length-1,u=q.length-1;1<=r&&0<=u&&w[r]!==q[u];)u--;for(;1<=r&&0<=u;r--,u--)if(w[r]!==q[u]){if(r!==1||u!==1)do if(r--,u--,0>u||w[r]!==q[u]){var V=`
46
46
  `+w[r].replace(" at new "," at ");return e.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",e.displayName)),V}while(1<=r&&0<=u);break}}}finally{Yn=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?mn(i):""}function Un(e,t){switch(e.tag){case 26:case 27:case 5:return mn(e.type);case 16:return mn("Lazy");case 13:return e.child!==t&&t!==null?mn("Suspense Fallback"):mn("Suspense");case 19:return mn("SuspenseList");case 0:case 15:return Ye(e.type,!1);case 11:return Ye(e.type.render,!1);case 1:return Ye(e.type,!0);case 31:return mn("Activity");default:return""}}function wn(e){try{var t="",i=null;do t+=Un(e,i),i=e,e=e.return;while(e);return t}catch(r){return`
47
47
  Error generating stack: `+r.message+`
48
- `+r.stack}}var Kn=Object.prototype.hasOwnProperty,ni=n.unstable_scheduleCallback,ta=n.unstable_cancelCallback,vl=n.unstable_shouldYield,wa=n.unstable_requestPaint,yt=n.unstable_now,ka=n.unstable_getCurrentPriorityLevel,K=n.unstable_ImmediatePriority,le=n.unstable_UserBlockingPriority,Te=n.unstable_NormalPriority,Be=n.unstable_LowPriority,Xe=n.unstable_IdlePriority,Qt=n.log,Hn=n.unstable_setDisableYieldValue,Ut=null,_t=null;function Yt(e){if(typeof Qt=="function"&&Hn(e),_t&&typeof _t.setStrictMode=="function")try{_t.setStrictMode(Ut,e)}catch{}}var We=Math.clz32?Math.clz32:Mr,Vn=Math.log,$t=Math.LN2;function Mr(e){return e>>>=0,e===0?32:31-(Vn(e)/$t|0)|0}var na=256,Ca=262144,ia=4194304;function nn(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 C(e,t,i){var r=e.pendingLanes;if(r===0)return 0;var u=0,d=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var v=r&134217727;return v!==0?(r=v&~d,r!==0?u=nn(r):(y&=v,y!==0?u=nn(y):i||(i=v&~e,i!==0&&(u=nn(i))))):(v=r&~d,v!==0?u=nn(v):y!==0?u=nn(y):i||(i=r&~e,i!==0&&(u=nn(i)))),u===0?0:t!==0&&t!==u&&(t&d)===0&&(d=u&-u,i=t&-t,d>=i||d===32&&(i&4194048)!==0)?t:u}function P(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function fe(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 Ce(){var e=ia;return ia<<=1,(ia&62914560)===0&&(ia=4194304),e}function pt(e){for(var t=[],i=0;31>i;i++)t.push(e);return t}function st(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function he(e,t,i,r,u,d){var y=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var v=e.entanglements,w=e.expirationTimes,q=e.hiddenUpdates;for(i=y&~i;0<i;){var V=31-We(i),Q=1<<V;v[V]=0,w[V]=-1;var F=q[V];if(F!==null)for(q[V]=null,V=0;V<F.length;V++){var G=F[V];G!==null&&(G.lane&=-536870913)}i&=~Q}r!==0&&de(e,r,0),d!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=d&~(y&~t))}function de(e,t,i){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-We(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|i&261930}function ke(e,t){var i=e.entangledLanes|=t;for(e=e.entanglements;i;){var r=31-We(i),u=1<<r;u&t|e[r]&t&&(e[r]|=t),i&=~u}}function xt(e,t){var i=t&-t;return i=(i&42)!==0?1:gt(i),(i&(e.suspendedLanes|t))!==0?0:i}function gt(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 ii(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Oa(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:Ph(e.type))}function Ma(e,t){var i=J.p;try{return J.p=e,t()}finally{J.p=i}}var Xn=Math.random().toString(36).slice(2),Tt="__reactFiber$"+Xn,Kt="__reactProps$"+Xn,Ni="__reactContainer$"+Xn,Sl="__reactEvents$"+Xn,Rr="__reactListeners$"+Xn,Ra="__reactHandles$"+Xn,Dr="__reactResources$"+Xn,aa="__reactMarker$"+Xn;function xl(e){delete e[Tt],delete e[Kt],delete e[Sl],delete e[Rr],delete e[Ra]}function Jt(e){var t=e[Tt];if(t)return t;for(var i=e.parentNode;i;){if(t=i[Ni]||i[Tt]){if(i=t.alternate,t.child!==null||i!==null&&i.child!==null)for(e=Rh(e);e!==null;){if(i=e[Tt])return i;e=Rh(e)}return t}e=i,i=e.parentNode}return null}function ai(e){if(e=e[Tt]||e[Ni]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ai(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function wi(e){var t=e[Dr];return t||(t=e[Dr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function kt(e){e[aa]=!0}var Lr=new Set,la={};function li(e,t){te(e,t),te(e+"Capture",t)}function te(e,t){for(la[e]=t,e=0;e<t.length;e++)Lr.add(t[e])}var Ee=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]*$"),Ie={},et={};function Nt(e){return Kn.call(et,e)?!0:Kn.call(Ie,e)?!1:Ee.test(e)?et[e]=!0:(Ie[e]=!0,!1)}function Vt(e,t,i){if(Nt(t))if(i===null)e.removeAttribute(t);else{switch(typeof i){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,""+i)}}function gn(e,t,i){if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+i)}}function an(e,t,i,r){if(r===null)e.removeAttribute(i);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(t,i,""+r)}}function ft(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bn(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function zr(e,t,i){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var u=r.get,d=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(y){i=""+y,d.call(this,y)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return i},setValue:function(y){i=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Da(e){if(!e._valueTracker){var t=bn(e)?"checked":"value";e._valueTracker=zr(e,t,""+e[t])}}function Tl(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),r="";return e&&(r=bn(e)?e.checked?"true":"false":e.value),e=r,e!==i?(t.setValue(e),!0):!1}function La(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var ms=/[\n"\\]/g;function ln(e){return e.replace(ms,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Nl(e,t,i,r,u,d,y,v){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),t!=null?y==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ft(t)):e.value!==""+ft(t)&&(e.value=""+ft(t)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),t!=null?za(e,y,ft(t)):i!=null?za(e,y,ft(i)):r!=null&&e.removeAttribute("value"),u==null&&d!=null&&(e.defaultChecked=!!d),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+ft(v):e.removeAttribute("name")}function ra(e,t,i,r,u,d,y,v){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||i!=null){if(!(d!=="submit"&&d!=="reset"||t!=null)){Da(e);return}i=i!=null?""+ft(i):"",t=t!=null?""+ft(t):i,v||t===e.value||(e.value=t),e.defaultValue=t}r=r??u,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=v?e.checked:!!r,e.defaultChecked=!!r,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),Da(e)}function za(e,t,i){t==="number"&&La(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function Ht(e,t,i,r){if(e=e.options,t){t={};for(var u=0;u<i.length;u++)t["$"+i[u]]=!0;for(i=0;i<e.length;i++)u=t.hasOwnProperty("$"+e[i].value),e[i].selected!==u&&(e[i].selected=u),u&&r&&(e[i].defaultSelected=!0)}else{for(i=""+ft(i),t=null,u=0;u<e.length;u++){if(e[u].value===i){e[u].selected=!0,r&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Br(e,t,i){if(t!=null&&(t=""+ft(t),t!==e.value&&(e.value=t),i==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=i!=null?""+ft(i):""}function Ba(e,t,i,r){if(t==null){if(r!=null){if(i!=null)throw Error(o(92));if(W(r)){if(1<r.length)throw Error(o(93));r=r[0]}i=r}i==null&&(i=""),t=i}i=ft(t),e.defaultValue=i,r=e.textContent,r===i&&r!==""&&r!==null&&(e.value=r),Da(e)}function Ae(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}var Ir=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 Ct(e,t,i){var r=t.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,i):typeof i!="number"||i===0||Ir.has(t)?t==="float"?e.cssFloat=i:e[t]=(""+i).trim():e[t]=i+"px"}function tt(e,t,i){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,i!=null){for(var r in i)!i.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var u in t)r=t[u],t.hasOwnProperty(u)&&i[u]!==r&&Ct(e,u,r)}else for(var d in t)t.hasOwnProperty(d)&&Ct(e,d,t[d])}function ki(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 ri=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"]]),Al=/^[\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 Ci(e){return Al.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function se(){}var ge=null;function Me(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fe=null,Et=null;function kn(e){var t=ai(e);if(t&&(e=t.stateNode)){var i=e[Kt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Nl(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),t=i.name,i.type==="radio"&&t!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+ln(""+t)+'"][type="radio"]'),t=0;t<i.length;t++){var r=i[t];if(r!==e&&r.form===e.form){var u=r[Kt]||null;if(!u)throw Error(o(90));Nl(r,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<i.length;t++)r=i[t],r.form===e.form&&Tl(r)}break e;case"textarea":Br(e,i.value,i.defaultValue);break e;case"select":t=i.value,t!=null&&Ht(e,!!i.multiple,t,!1)}}}var wl=!1;function Ur(e,t,i){if(wl)return e(t,i);wl=!0;try{var r=e(t);return r}finally{if(wl=!1,(Fe!==null||Et!==null)&&(Ao(),Fe&&(t=Fe,e=Et,Et=Fe=null,kn(t),e)))for(t=0;t<e.length;t++)kn(e[t])}}function kl(e,t){var i=e.stateNode;if(i===null)return null;var r=i[Kt]||null;if(r===null)return null;i=r[t];e: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 e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(o(231,t,typeof i));return i}var oi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gs=!1;if(oi)try{var Cl={};Object.defineProperty(Cl,"passive",{get:function(){gs=!0}}),window.addEventListener("test",Cl,Cl),window.removeEventListener("test",Cl,Cl)}catch{gs=!1}var Oi=null,bs=null,Hr=null;function Nf(){if(Hr)return Hr;var e,t=bs,i=t.length,r,u="value"in Oi?Oi.value:Oi.textContent,d=u.length;for(e=0;e<i&&t[e]===u[e];e++);var y=i-e;for(r=1;r<=y&&t[i-r]===u[d-r];r++);return Hr=u.slice(e,1<r?1-r:void 0)}function qr(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 Fr(){return!0}function Af(){return!1}function rn(e){function t(i,r,u,d,y){this._reactName=i,this._targetInst=u,this.type=r,this.nativeEvent=d,this.target=y,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(i=e[v],this[v]=i?i(d):d[v]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?Fr:Af,this.isPropagationStopped=Af,this}return g(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Fr)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Fr)},persist:function(){},isPersistent:Fr}),t}var oa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gr=rn(oa),Ol=g({},oa,{view:0,detail:0}),Vb=rn(Ol),ys,Es,Ml,jr=g({},Ol,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vs,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!==Ml&&(Ml&&e.type==="mousemove"?(ys=e.screenX-Ml.screenX,Es=e.screenY-Ml.screenY):Es=ys=0,Ml=e),ys)},movementY:function(e){return"movementY"in e?e.movementY:Es}}),wf=rn(jr),Xb=g({},jr,{dataTransfer:0}),Pb=rn(Xb),Zb=g({},Ol,{relatedTarget:0}),_s=rn(Zb),Qb=g({},oa,{animationName:0,elapsedTime:0,pseudoElement:0}),$b=rn(Qb),Jb=g({},oa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Wb=rn(Jb),ey=g({},oa,{data:0}),kf=rn(ey),ty={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ny={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"},iy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ay(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=iy[e])?!!t[e]:!1}function vs(){return ay}var ly=g({},Ol,{key:function(e){if(e.key){var t=ty[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=qr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ny[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vs,charCode:function(e){return e.type==="keypress"?qr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?qr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ry=rn(ly),oy=g({},jr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cf=rn(oy),sy=g({},Ol,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vs}),uy=rn(sy),cy=g({},oa,{propertyName:0,elapsedTime:0,pseudoElement:0}),fy=rn(cy),dy=g({},jr,{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}),py=rn(dy),hy=g({},oa,{newState:0,oldState:0}),my=rn(hy),gy=[9,13,27,32],Ss=oi&&"CompositionEvent"in window,Rl=null;oi&&"documentMode"in document&&(Rl=document.documentMode);var by=oi&&"TextEvent"in window&&!Rl,Of=oi&&(!Ss||Rl&&8<Rl&&11>=Rl),Mf=" ",Rf=!1;function Df(e,t){switch(e){case"keyup":return gy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ia=!1;function yy(e,t){switch(e){case"compositionend":return Lf(t);case"keypress":return t.which!==32?null:(Rf=!0,Mf);case"textInput":return e=t.data,e===Mf&&Rf?null:e;default:return null}}function Ey(e,t){if(Ia)return e==="compositionend"||!Ss&&Df(e,t)?(e=Nf(),Hr=bs=Oi=null,Ia=!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 Of&&t.locale!=="ko"?null:t.data;default:return null}}var _y={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 zf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!_y[e.type]:t==="textarea"}function Bf(e,t,i,r){Fe?Et?Et.push(r):Et=[r]:Fe=r,t=Do(t,"onChange"),0<t.length&&(i=new Gr("onChange","change",null,i,r),e.push({event:i,listeners:t}))}var Dl=null,Ll=null;function vy(e){yh(e,0)}function Yr(e){var t=Ai(e);if(Tl(t))return e}function If(e,t){if(e==="change")return t}var Uf=!1;if(oi){var xs;if(oi){var Ts="oninput"in document;if(!Ts){var Hf=document.createElement("div");Hf.setAttribute("oninput","return;"),Ts=typeof Hf.oninput=="function"}xs=Ts}else xs=!1;Uf=xs&&(!document.documentMode||9<document.documentMode)}function qf(){Dl&&(Dl.detachEvent("onpropertychange",Ff),Ll=Dl=null)}function Ff(e){if(e.propertyName==="value"&&Yr(Ll)){var t=[];Bf(t,Ll,e,Me(e)),Ur(vy,t)}}function Sy(e,t,i){e==="focusin"?(qf(),Dl=t,Ll=i,Dl.attachEvent("onpropertychange",Ff)):e==="focusout"&&qf()}function xy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Yr(Ll)}function Ty(e,t){if(e==="click")return Yr(t)}function Ny(e,t){if(e==="input"||e==="change")return Yr(t)}function Ay(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var yn=typeof Object.is=="function"?Object.is:Ay;function zl(e,t){if(yn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var i=Object.keys(e),r=Object.keys(t);if(i.length!==r.length)return!1;for(r=0;r<i.length;r++){var u=i[r];if(!Kn.call(t,u)||!yn(e[u],t[u]))return!1}return!0}function Gf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jf(e,t){var i=Gf(e);e=0;for(var r;i;){if(i.nodeType===3){if(r=e+i.textContent.length,e<=t&&r>=t)return{node:i,offset:t-e};e=r}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Gf(i)}}function Yf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Yf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Kf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=La(e.document);t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch{i=!1}if(i)e=t.contentWindow;else break;t=La(e.document)}return t}function Ns(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 wy=oi&&"documentMode"in document&&11>=document.documentMode,Ua=null,As=null,Bl=null,ws=!1;function Vf(e,t,i){var r=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;ws||Ua==null||Ua!==La(r)||(r=Ua,"selectionStart"in r&&Ns(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}),Bl&&zl(Bl,r)||(Bl=r,r=Do(As,"onSelect"),0<r.length&&(t=new Gr("onSelect","select",null,t,i),e.push({event:t,listeners:r}),t.target=Ua)))}function sa(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}var Ha={animationend:sa("Animation","AnimationEnd"),animationiteration:sa("Animation","AnimationIteration"),animationstart:sa("Animation","AnimationStart"),transitionrun:sa("Transition","TransitionRun"),transitionstart:sa("Transition","TransitionStart"),transitioncancel:sa("Transition","TransitionCancel"),transitionend:sa("Transition","TransitionEnd")},ks={},Xf={};oi&&(Xf=document.createElement("div").style,"AnimationEvent"in window||(delete Ha.animationend.animation,delete Ha.animationiteration.animation,delete Ha.animationstart.animation),"TransitionEvent"in window||delete Ha.transitionend.transition);function ua(e){if(ks[e])return ks[e];if(!Ha[e])return e;var t=Ha[e],i;for(i in t)if(t.hasOwnProperty(i)&&i in Xf)return ks[e]=t[i];return e}var Pf=ua("animationend"),Zf=ua("animationiteration"),Qf=ua("animationstart"),ky=ua("transitionrun"),Cy=ua("transitionstart"),Oy=ua("transitioncancel"),$f=ua("transitionend"),Jf=new Map,Cs="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(" ");Cs.push("scrollEnd");function qn(e,t){Jf.set(e,t),li(t,[e])}var Kr=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!==null&&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)},Cn=[],qa=0,Os=0;function Vr(){for(var e=qa,t=Os=qa=0;t<e;){var i=Cn[t];Cn[t++]=null;var r=Cn[t];Cn[t++]=null;var u=Cn[t];Cn[t++]=null;var d=Cn[t];if(Cn[t++]=null,r!==null&&u!==null){var y=r.pending;y===null?u.next=u:(u.next=y.next,y.next=u),r.pending=u}d!==0&&Wf(i,u,d)}}function Xr(e,t,i,r){Cn[qa++]=e,Cn[qa++]=t,Cn[qa++]=i,Cn[qa++]=r,Os|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Ms(e,t,i,r){return Xr(e,t,i,r),Pr(e)}function ca(e,t){return Xr(e,null,null,t),Pr(e)}function Wf(e,t,i){e.lanes|=i;var r=e.alternate;r!==null&&(r.lanes|=i);for(var u=!1,d=e.return;d!==null;)d.childLanes|=i,r=d.alternate,r!==null&&(r.childLanes|=i),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(u=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,u&&t!==null&&(u=31-We(i),e=d.hiddenUpdates,r=e[u],r===null?e[u]=[t]:r.push(t),t.lane=i|536870912),d):null}function Pr(e){if(50<ar)throw ar=0,qu=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Fa={};function My(e,t,i,r){this.tag=e,this.key=i,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 En(e,t,i,r){return new My(e,t,i,r)}function Rs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function si(e,t){var i=e.alternate;return i===null?(i=En(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,t=e.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function ed(e,t){e.flags&=65011714;var i=e.alternate;return i===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=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,t=i.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Zr(e,t,i,r,u,d){var y=0;if(r=e,typeof e=="function")Rs(e)&&(y=1);else if(typeof e=="string")y=BE(e,i,ce.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ue:return e=En(31,i,t,u),e.elementType=ue,e.lanes=d,e;case O:return fa(i.children,u,d,t);case R:y=8,u|=24;break;case A:return e=En(12,i,t,u|2),e.elementType=A,e.lanes=d,e;case X:return e=En(13,i,t,u),e.elementType=X,e.lanes=d,e;case N:return e=En(19,i,t,u),e.elementType=N,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case I:y=10;break e;case B:y=9;break e;case $:y=11;break e;case Y:y=14;break e;case ee:y=16,r=null;break e}y=29,i=Error(o(130,e===null?"null":typeof e,"")),r=null}return t=En(y,i,t,u),t.elementType=e,t.type=r,t.lanes=d,t}function fa(e,t,i,r){return e=En(7,e,r,t),e.lanes=i,e}function Ds(e,t,i){return e=En(6,e,null,t),e.lanes=i,e}function td(e){var t=En(18,null,null,0);return t.stateNode=e,t}function Ls(e,t,i){return t=En(4,e.children!==null?e.children:[],e.key,t),t.lanes=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var nd=new WeakMap;function On(e,t){if(typeof e=="object"&&e!==null){var i=nd.get(e);return i!==void 0?i:(t={value:e,source:t,stack:wn(t)},nd.set(e,t),t)}return{value:e,source:t,stack:wn(t)}}var Ga=[],ja=0,Qr=null,Il=0,Mn=[],Rn=0,Mi=null,Pn=1,Zn="";function ui(e,t){Ga[ja++]=Il,Ga[ja++]=Qr,Qr=e,Il=t}function id(e,t,i){Mn[Rn++]=Pn,Mn[Rn++]=Zn,Mn[Rn++]=Mi,Mi=e;var r=Pn;e=Zn;var u=32-We(r)-1;r&=~(1<<u),i+=1;var d=32-We(t)+u;if(30<d){var y=u-u%5;d=(r&(1<<y)-1).toString(32),r>>=y,u-=y,Pn=1<<32-We(t)+u|i<<u|r,Zn=d+e}else Pn=1<<d|i<<u|r,Zn=e}function zs(e){e.return!==null&&(ui(e,1),id(e,1,0))}function Bs(e){for(;e===Qr;)Qr=Ga[--ja],Ga[ja]=null,Il=Ga[--ja],Ga[ja]=null;for(;e===Mi;)Mi=Mn[--Rn],Mn[Rn]=null,Zn=Mn[--Rn],Mn[Rn]=null,Pn=Mn[--Rn],Mn[Rn]=null}function ad(e,t){Mn[Rn++]=Pn,Mn[Rn++]=Zn,Mn[Rn++]=Mi,Pn=t.id,Zn=t.overflow,Mi=e}var qt=null,ht=null,Ke=!1,Ri=null,Dn=!1,Is=Error(o(519));function Di(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ul(On(t,e)),Is}function ld(e){var t=e.stateNode,i=e.type,r=e.memoizedProps;switch(t[Tt]=e,t[Kt]=r,i){case"dialog":He("cancel",t),He("close",t);break;case"iframe":case"object":case"embed":He("load",t);break;case"video":case"audio":for(i=0;i<rr.length;i++)He(rr[i],t);break;case"source":He("error",t);break;case"img":case"image":case"link":He("error",t),He("load",t);break;case"details":He("toggle",t);break;case"input":He("invalid",t),ra(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":He("invalid",t);break;case"textarea":He("invalid",t),Ba(t,r.value,r.defaultValue,r.children)}i=r.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||t.textContent===""+i||r.suppressHydrationWarning===!0||Sh(t.textContent,i)?(r.popover!=null&&(He("beforetoggle",t),He("toggle",t)),r.onScroll!=null&&He("scroll",t),r.onScrollEnd!=null&&He("scrollend",t),r.onClick!=null&&(t.onclick=se),t=!0):t=!1,t||Di(e,!0)}function rd(e){for(qt=e.return;qt;)switch(qt.tag){case 5:case 31:case 13:Dn=!1;return;case 27:case 3:Dn=!0;return;default:qt=qt.return}}function Ya(e){if(e!==qt)return!1;if(!Ke)return rd(e),Ke=!0,!1;var t=e.tag,i;if((i=t!==3&&t!==27)&&((i=t===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||tc(e.type,e.memoizedProps)),i=!i),i&&ht&&Di(e),rd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));ht=Mh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));ht=Mh(e)}else t===27?(t=ht,Xi(e.type)?(e=rc,rc=null,ht=e):ht=t):ht=qt?zn(e.stateNode.nextSibling):null;return!0}function da(){ht=qt=null,Ke=!1}function Us(){var e=Ri;return e!==null&&(cn===null?cn=e:cn.push.apply(cn,e),Ri=null),e}function Ul(e){Ri===null?Ri=[e]:Ri.push(e)}var Hs=k(null),pa=null,ci=null;function Li(e,t,i){S(Hs,t._currentValue),t._currentValue=i}function fi(e){e._currentValue=Hs.current,j(Hs)}function qs(e,t,i){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===i)break;e=e.return}}function Fs(e,t,i,r){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var d=u.dependencies;if(d!==null){var y=u.child;d=d.firstContext;e:for(;d!==null;){var v=d;d=u;for(var w=0;w<t.length;w++)if(v.context===t[w]){d.lanes|=i,v=d.alternate,v!==null&&(v.lanes|=i),qs(d.return,i,e),r||(y=null);break e}d=v.next}}else if(u.tag===18){if(y=u.return,y===null)throw Error(o(341));y.lanes|=i,d=y.alternate,d!==null&&(d.lanes|=i),qs(y,i,e),y=null}else y=u.child;if(y!==null)y.return=u;else for(y=u;y!==null;){if(y===e){y=null;break}if(u=y.sibling,u!==null){u.return=y.return,y=u;break}y=y.return}u=y}}function Ka(e,t,i,r){e=null;for(var u=t,d=!1;u!==null;){if(!d){if((u.flags&524288)!==0)d=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var y=u.alternate;if(y===null)throw Error(o(387));if(y=y.memoizedProps,y!==null){var v=u.type;yn(u.pendingProps.value,y.value)||(e!==null?e.push(v):e=[v])}}else if(u===ze.current){if(y=u.alternate,y===null)throw Error(o(387));y.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(fr):e=[fr])}u=u.return}e!==null&&Fs(t,e,i,r),t.flags|=262144}function $r(e){for(e=e.firstContext;e!==null;){if(!yn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ha(e){pa=e,ci=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ft(e){return od(pa,e)}function Jr(e,t){return pa===null&&ha(e),od(e,t)}function od(e,t){var i=t._currentValue;if(t={context:t,memoizedValue:i,next:null},ci===null){if(e===null)throw Error(o(308));ci=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ci=ci.next=t;return i}var Ry=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(i,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(i){return i()})}},Dy=n.unstable_scheduleCallback,Ly=n.unstable_NormalPriority,Ot={$$typeof:I,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Gs(){return{controller:new Ry,data:new Map,refCount:0}}function Hl(e){e.refCount--,e.refCount===0&&Dy(Ly,function(){e.controller.abort()})}var ql=null,js=0,Va=0,Xa=null;function zy(e,t){if(ql===null){var i=ql=[];js=0,Va=Vu(),Xa={status:"pending",value:void 0,then:function(r){i.push(r)}}}return js++,t.then(sd,sd),t}function sd(){if(--js===0&&ql!==null){Xa!==null&&(Xa.status="fulfilled");var e=ql;ql=null,Va=0,Xa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function By(e,t){var i=[],r={status:"pending",value:null,reason:null,then:function(u){i.push(u)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var u=0;u<i.length;u++)(0,i[u])(t)},function(u){for(r.status="rejected",r.reason=u,u=0;u<i.length;u++)(0,i[u])(void 0)}),r}var ud=z.S;z.S=function(e,t){Vp=yt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&zy(e,t),ud!==null&&ud(e,t)};var ma=k(null);function Ys(){var e=ma.current;return e!==null?e:ut.pooledCache}function Wr(e,t){t===null?S(ma,ma.current):S(ma,t.pool)}function cd(){var e=Ys();return e===null?null:{parent:Ot._currentValue,pool:e}}var Pa=Error(o(460)),Ks=Error(o(474)),eo=Error(o(542)),to={then:function(){}};function fd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function dd(e,t,i){switch(i=e[i],i===void 0?e.push(t):i!==t&&(t.then(se,se),t=i),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,hd(e),e;default:if(typeof t.status=="string")t.then(se,se);else{if(e=ut,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=r}},function(r){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,hd(e),e}throw ba=t,Pa}}function ga(e){try{var t=e._init;return t(e._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(ba=i,Pa):i}}var ba=null;function pd(){if(ba===null)throw Error(o(459));var e=ba;return ba=null,e}function hd(e){if(e===Pa||e===eo)throw Error(o(483))}var Za=null,Fl=0;function no(e){var t=Fl;return Fl+=1,Za===null&&(Za=[]),dd(Za,e,t)}function Gl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function io(e,t){throw t.$$typeof===_?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function md(e){function t(D,M){if(e){var H=D.deletions;H===null?(D.deletions=[M],D.flags|=16):H.push(M)}}function i(D,M){if(!e)return null;for(;M!==null;)t(D,M),M=M.sibling;return null}function r(D){for(var M=new Map;D!==null;)D.key!==null?M.set(D.key,D):M.set(D.index,D),D=D.sibling;return M}function u(D,M){return D=si(D,M),D.index=0,D.sibling=null,D}function d(D,M,H){return D.index=H,e?(H=D.alternate,H!==null?(H=H.index,H<M?(D.flags|=67108866,M):H):(D.flags|=67108866,M)):(D.flags|=1048576,M)}function y(D){return e&&D.alternate===null&&(D.flags|=67108866),D}function v(D,M,H,Z){return M===null||M.tag!==6?(M=Ds(H,D.mode,Z),M.return=D,M):(M=u(M,H),M.return=D,M)}function w(D,M,H,Z){var ve=H.type;return ve===O?V(D,M,H.props.children,Z,H.key):M!==null&&(M.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===ee&&ga(ve)===M.type)?(M=u(M,H.props),Gl(M,H),M.return=D,M):(M=Zr(H.type,H.key,H.props,null,D.mode,Z),Gl(M,H),M.return=D,M)}function q(D,M,H,Z){return M===null||M.tag!==4||M.stateNode.containerInfo!==H.containerInfo||M.stateNode.implementation!==H.implementation?(M=Ls(H,D.mode,Z),M.return=D,M):(M=u(M,H.children||[]),M.return=D,M)}function V(D,M,H,Z,ve){return M===null||M.tag!==7?(M=fa(H,D.mode,Z,ve),M.return=D,M):(M=u(M,H),M.return=D,M)}function Q(D,M,H){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=Ds(""+M,D.mode,H),M.return=D,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case E:return H=Zr(M.type,M.key,M.props,null,D.mode,H),Gl(H,M),H.return=D,H;case x:return M=Ls(M,D.mode,H),M.return=D,M;case ee:return M=ga(M),Q(D,M,H)}if(W(M)||re(M))return M=fa(M,D.mode,H,null),M.return=D,M;if(typeof M.then=="function")return Q(D,no(M),H);if(M.$$typeof===I)return Q(D,Jr(D,M),H);io(D,M)}return null}function F(D,M,H,Z){var ve=M!==null?M.key:null;if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return ve!==null?null:v(D,M,""+H,Z);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case E:return H.key===ve?w(D,M,H,Z):null;case x:return H.key===ve?q(D,M,H,Z):null;case ee:return H=ga(H),F(D,M,H,Z)}if(W(H)||re(H))return ve!==null?null:V(D,M,H,Z,null);if(typeof H.then=="function")return F(D,M,no(H),Z);if(H.$$typeof===I)return F(D,M,Jr(D,H),Z);io(D,H)}return null}function G(D,M,H,Z,ve){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return D=D.get(H)||null,v(M,D,""+Z,ve);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case E:return D=D.get(Z.key===null?H:Z.key)||null,w(M,D,Z,ve);case x:return D=D.get(Z.key===null?H:Z.key)||null,q(M,D,Z,ve);case ee:return Z=ga(Z),G(D,M,H,Z,ve)}if(W(Z)||re(Z))return D=D.get(H)||null,V(M,D,Z,ve,null);if(typeof Z.then=="function")return G(D,M,H,no(Z),ve);if(Z.$$typeof===I)return G(D,M,H,Jr(M,Z),ve);io(M,Z)}return null}function pe(D,M,H,Z){for(var ve=null,Pe=null,be=M,De=M=0,je=null;be!==null&&De<H.length;De++){be.index>De?(je=be,be=null):je=be.sibling;var Ze=F(D,be,H[De],Z);if(Ze===null){be===null&&(be=je);break}e&&be&&Ze.alternate===null&&t(D,be),M=d(Ze,M,De),Pe===null?ve=Ze:Pe.sibling=Ze,Pe=Ze,be=je}if(De===H.length)return i(D,be),Ke&&ui(D,De),ve;if(be===null){for(;De<H.length;De++)be=Q(D,H[De],Z),be!==null&&(M=d(be,M,De),Pe===null?ve=be:Pe.sibling=be,Pe=be);return Ke&&ui(D,De),ve}for(be=r(be);De<H.length;De++)je=G(be,D,De,H[De],Z),je!==null&&(e&&je.alternate!==null&&be.delete(je.key===null?De:je.key),M=d(je,M,De),Pe===null?ve=je:Pe.sibling=je,Pe=je);return e&&be.forEach(function(Ji){return t(D,Ji)}),Ke&&ui(D,De),ve}function Ne(D,M,H,Z){if(H==null)throw Error(o(151));for(var ve=null,Pe=null,be=M,De=M=0,je=null,Ze=H.next();be!==null&&!Ze.done;De++,Ze=H.next()){be.index>De?(je=be,be=null):je=be.sibling;var Ji=F(D,be,Ze.value,Z);if(Ji===null){be===null&&(be=je);break}e&&be&&Ji.alternate===null&&t(D,be),M=d(Ji,M,De),Pe===null?ve=Ji:Pe.sibling=Ji,Pe=Ji,be=je}if(Ze.done)return i(D,be),Ke&&ui(D,De),ve;if(be===null){for(;!Ze.done;De++,Ze=H.next())Ze=Q(D,Ze.value,Z),Ze!==null&&(M=d(Ze,M,De),Pe===null?ve=Ze:Pe.sibling=Ze,Pe=Ze);return Ke&&ui(D,De),ve}for(be=r(be);!Ze.done;De++,Ze=H.next())Ze=G(be,D,De,Ze.value,Z),Ze!==null&&(e&&Ze.alternate!==null&&be.delete(Ze.key===null?De:Ze.key),M=d(Ze,M,De),Pe===null?ve=Ze:Pe.sibling=Ze,Pe=Ze);return e&&be.forEach(function(XE){return t(D,XE)}),Ke&&ui(D,De),ve}function rt(D,M,H,Z){if(typeof H=="object"&&H!==null&&H.type===O&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case E:e:{for(var ve=H.key;M!==null;){if(M.key===ve){if(ve=H.type,ve===O){if(M.tag===7){i(D,M.sibling),Z=u(M,H.props.children),Z.return=D,D=Z;break e}}else if(M.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===ee&&ga(ve)===M.type){i(D,M.sibling),Z=u(M,H.props),Gl(Z,H),Z.return=D,D=Z;break e}i(D,M);break}else t(D,M);M=M.sibling}H.type===O?(Z=fa(H.props.children,D.mode,Z,H.key),Z.return=D,D=Z):(Z=Zr(H.type,H.key,H.props,null,D.mode,Z),Gl(Z,H),Z.return=D,D=Z)}return y(D);case x:e:{for(ve=H.key;M!==null;){if(M.key===ve)if(M.tag===4&&M.stateNode.containerInfo===H.containerInfo&&M.stateNode.implementation===H.implementation){i(D,M.sibling),Z=u(M,H.children||[]),Z.return=D,D=Z;break e}else{i(D,M);break}else t(D,M);M=M.sibling}Z=Ls(H,D.mode,Z),Z.return=D,D=Z}return y(D);case ee:return H=ga(H),rt(D,M,H,Z)}if(W(H))return pe(D,M,H,Z);if(re(H)){if(ve=re(H),typeof ve!="function")throw Error(o(150));return H=ve.call(H),Ne(D,M,H,Z)}if(typeof H.then=="function")return rt(D,M,no(H),Z);if(H.$$typeof===I)return rt(D,M,Jr(D,H),Z);io(D,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,M!==null&&M.tag===6?(i(D,M.sibling),Z=u(M,H),Z.return=D,D=Z):(i(D,M),Z=Ds(H,D.mode,Z),Z.return=D,D=Z),y(D)):i(D,M)}return function(D,M,H,Z){try{Fl=0;var ve=rt(D,M,H,Z);return Za=null,ve}catch(be){if(be===Pa||be===eo)throw be;var Pe=En(29,be,null,D.mode);return Pe.lanes=Z,Pe.return=D,Pe}finally{}}}var ya=md(!0),gd=md(!1),zi=!1;function Vs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xs(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 Bi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ii(e,t,i){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,($e&2)!==0){var u=r.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),r.pending=t,t=Pr(e),Wf(e,null,i),t}return Xr(e,r,t,i),Pr(e)}function jl(e,t,i){if(t=t.updateQueue,t!==null&&(t=t.shared,(i&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,i|=r,t.lanes=i,ke(e,i)}}function Ps(e,t){var i=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,i===r)){var u=null,d=null;if(i=i.firstBaseUpdate,i!==null){do{var y={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};d===null?u=d=y:d=d.next=y,i=i.next}while(i!==null);d===null?u=d=t:d=d.next=t}else u=d=t;i={baseState:r.baseState,firstBaseUpdate:u,lastBaseUpdate:d,shared:r.shared,callbacks:r.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=t:e.next=t,i.lastBaseUpdate=t}var Zs=!1;function Yl(){if(Zs){var e=Xa;if(e!==null)throw e}}function Kl(e,t,i,r){Zs=!1;var u=e.updateQueue;zi=!1;var d=u.firstBaseUpdate,y=u.lastBaseUpdate,v=u.shared.pending;if(v!==null){u.shared.pending=null;var w=v,q=w.next;w.next=null,y===null?d=q:y.next=q,y=w;var V=e.alternate;V!==null&&(V=V.updateQueue,v=V.lastBaseUpdate,v!==y&&(v===null?V.firstBaseUpdate=q:v.next=q,V.lastBaseUpdate=w))}if(d!==null){var Q=u.baseState;y=0,V=q=w=null,v=d;do{var F=v.lane&-536870913,G=F!==v.lane;if(G?(Ge&F)===F:(r&F)===F){F!==0&&F===Va&&(Zs=!0),V!==null&&(V=V.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var pe=e,Ne=v;F=t;var rt=i;switch(Ne.tag){case 1:if(pe=Ne.payload,typeof pe=="function"){Q=pe.call(rt,Q,F);break e}Q=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=Ne.payload,F=typeof pe=="function"?pe.call(rt,Q,F):pe,F==null)break e;Q=g({},Q,F);break e;case 2:zi=!0}}F=v.callback,F!==null&&(e.flags|=64,G&&(e.flags|=8192),G=u.callbacks,G===null?u.callbacks=[F]:G.push(F))}else G={lane:F,tag:v.tag,payload:v.payload,callback:v.callback,next:null},V===null?(q=V=G,w=Q):V=V.next=G,y|=F;if(v=v.next,v===null){if(v=u.shared.pending,v===null)break;G=v,v=G.next,G.next=null,u.lastBaseUpdate=G,u.shared.pending=null}}while(!0);V===null&&(w=Q),u.baseState=w,u.firstBaseUpdate=q,u.lastBaseUpdate=V,d===null&&(u.shared.lanes=0),Gi|=y,e.lanes=y,e.memoizedState=Q}}function bd(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function yd(e,t){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)bd(i[e],t)}var Qa=k(null),ao=k(0);function Ed(e,t){e=_i,S(ao,e),S(Qa,t),_i=e|t.baseLanes}function Qs(){S(ao,_i),S(Qa,Qa.current)}function $s(){_i=ao.current,j(Qa),j(ao)}var _n=k(null),Ln=null;function Ui(e){var t=e.alternate;S(At,At.current&1),S(_n,e),Ln===null&&(t===null||Qa.current!==null||t.memoizedState!==null)&&(Ln=e)}function Js(e){S(At,At.current),S(_n,e),Ln===null&&(Ln=e)}function _d(e){e.tag===22?(S(At,At.current),S(_n,e),Ln===null&&(Ln=e)):Hi()}function Hi(){S(At,At.current),S(_n,_n.current)}function vn(e){j(_n),Ln===e&&(Ln=null),j(At)}var At=k(0);function lo(e){for(var t=e;t!==null;){if(t.tag===13){var i=t.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||ac(i)||lc(i)))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)!==0)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 di=0,Re=null,at=null,Mt=null,ro=!1,$a=!1,Ea=!1,oo=0,Vl=0,Ja=null,Iy=0;function vt(){throw Error(o(321))}function Ws(e,t){if(t===null)return!1;for(var i=0;i<t.length&&i<e.length;i++)if(!yn(e[i],t[i]))return!1;return!0}function eu(e,t,i,r,u,d){return di=d,Re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,z.H=e===null||e.memoizedState===null?ip:mu,Ea=!1,d=i(r,u),Ea=!1,$a&&(d=Sd(t,i,r,u)),vd(e),d}function vd(e){z.H=Zl;var t=at!==null&&at.next!==null;if(di=0,Mt=at=Re=null,ro=!1,Vl=0,Ja=null,t)throw Error(o(300));e===null||Rt||(e=e.dependencies,e!==null&&$r(e)&&(Rt=!0))}function Sd(e,t,i,r){Re=e;var u=0;do{if($a&&(Ja=null),Vl=0,$a=!1,25<=u)throw Error(o(301));if(u+=1,Mt=at=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}z.H=ap,d=t(i,r)}while($a);return d}function Uy(){var e=z.H,t=e.useState()[0];return t=typeof t.then=="function"?Xl(t):t,e=e.useState()[0],(at!==null?at.memoizedState:null)!==e&&(Re.flags|=1024),t}function tu(){var e=oo!==0;return oo=0,e}function nu(e,t,i){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i}function iu(e){if(ro){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ro=!1}di=0,Mt=at=Re=null,$a=!1,Vl=oo=0,Ja=null}function Wt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Mt===null?Re.memoizedState=Mt=e:Mt=Mt.next=e,Mt}function wt(){if(at===null){var e=Re.alternate;e=e!==null?e.memoizedState:null}else e=at.next;var t=Mt===null?Re.memoizedState:Mt.next;if(t!==null)Mt=t,at=e;else{if(e===null)throw Re.alternate===null?Error(o(467)):Error(o(310));at=e,e={memoizedState:at.memoizedState,baseState:at.baseState,baseQueue:at.baseQueue,queue:at.queue,next:null},Mt===null?Re.memoizedState=Mt=e:Mt=Mt.next=e}return Mt}function so(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Xl(e){var t=Vl;return Vl+=1,Ja===null&&(Ja=[]),e=dd(Ja,e,t),t=Re,(Mt===null?t.memoizedState:Mt.next)===null&&(t=t.alternate,z.H=t===null||t.memoizedState===null?ip:mu),e}function uo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Xl(e);if(e.$$typeof===I)return Ft(e)}throw Error(o(438,String(e)))}function au(e){var t=null,i=Re.updateQueue;if(i!==null&&(t=i.memoCache),t==null){var r=Re.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),i===null&&(i=so(),Re.updateQueue=i),i.memoCache=t,i=t.data[t.index],i===void 0)for(i=t.data[t.index]=Array(e),r=0;r<e;r++)i[r]=U;return t.index++,i}function pi(e,t){return typeof t=="function"?t(e):t}function co(e){var t=wt();return lu(t,at,e)}function lu(e,t,i){var r=e.queue;if(r===null)throw Error(o(311));r.lastRenderedReducer=i;var u=e.baseQueue,d=r.pending;if(d!==null){if(u!==null){var y=u.next;u.next=d.next,d.next=y}t.baseQueue=u=d,r.pending=null}if(d=e.baseState,u===null)e.memoizedState=d;else{t=u.next;var v=y=null,w=null,q=t,V=!1;do{var Q=q.lane&-536870913;if(Q!==q.lane?(Ge&Q)===Q:(di&Q)===Q){var F=q.revertLane;if(F===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),Q===Va&&(V=!0);else if((di&F)===F){q=q.next,F===Va&&(V=!0);continue}else Q={lane:0,revertLane:q.revertLane,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},w===null?(v=w=Q,y=d):w=w.next=Q,Re.lanes|=F,Gi|=F;Q=q.action,Ea&&i(d,Q),d=q.hasEagerState?q.eagerState:i(d,Q)}else F={lane:Q,revertLane:q.revertLane,gesture:q.gesture,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},w===null?(v=w=F,y=d):w=w.next=F,Re.lanes|=Q,Gi|=Q;q=q.next}while(q!==null&&q!==t);if(w===null?y=d:w.next=v,!yn(d,e.memoizedState)&&(Rt=!0,V&&(i=Xa,i!==null)))throw i;e.memoizedState=d,e.baseState=y,e.baseQueue=w,r.lastRenderedState=d}return u===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ru(e){var t=wt(),i=t.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=e;var r=i.dispatch,u=i.pending,d=t.memoizedState;if(u!==null){i.pending=null;var y=u=u.next;do d=e(d,y.action),y=y.next;while(y!==u);yn(d,t.memoizedState)||(Rt=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),i.lastRenderedState=d}return[d,r]}function xd(e,t,i){var r=Re,u=wt(),d=Ke;if(d){if(i===void 0)throw Error(o(407));i=i()}else i=t();var y=!yn((at||u).memoizedState,i);if(y&&(u.memoizedState=i,Rt=!0),u=u.queue,uu(Ad.bind(null,r,u,e),[e]),u.getSnapshot!==t||y||Mt!==null&&Mt.memoizedState.tag&1){if(r.flags|=2048,Wa(9,{destroy:void 0},Nd.bind(null,r,u,i,t),null),ut===null)throw Error(o(349));d||(di&127)!==0||Td(r,t,i)}return i}function Td(e,t,i){e.flags|=16384,e={getSnapshot:t,value:i},t=Re.updateQueue,t===null?(t=so(),Re.updateQueue=t,t.stores=[e]):(i=t.stores,i===null?t.stores=[e]:i.push(e))}function Nd(e,t,i,r){t.value=i,t.getSnapshot=r,wd(t)&&kd(e)}function Ad(e,t,i){return i(function(){wd(t)&&kd(e)})}function wd(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!yn(e,i)}catch{return!0}}function kd(e){var t=ca(e,2);t!==null&&fn(t,e,2)}function ou(e){var t=Wt();if(typeof e=="function"){var i=e;if(e=i(),Ea){Yt(!0);try{i()}finally{Yt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pi,lastRenderedState:e},t}function Cd(e,t,i,r){return e.baseState=i,lu(e,at,typeof r=="function"?r:pi)}function Hy(e,t,i,r,u){if(ho(e))throw Error(o(485));if(e=t.action,e!==null){var d={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){d.listeners.push(y)}};z.T!==null?i(!0):d.isTransition=!1,r(d),i=t.pending,i===null?(d.next=t.pending=d,Od(t,d)):(d.next=i.next,t.pending=i.next=d)}}function Od(e,t){var i=t.action,r=t.payload,u=e.state;if(t.isTransition){var d=z.T,y={};z.T=y;try{var v=i(u,r),w=z.S;w!==null&&w(y,v),Md(e,t,v)}catch(q){su(e,t,q)}finally{d!==null&&y.types!==null&&(d.types=y.types),z.T=d}}else try{d=i(u,r),Md(e,t,d)}catch(q){su(e,t,q)}}function Md(e,t,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(r){Rd(e,t,r)},function(r){return su(e,t,r)}):Rd(e,t,i)}function Rd(e,t,i){t.status="fulfilled",t.value=i,Dd(t),e.state=i,t=e.pending,t!==null&&(i=t.next,i===t?e.pending=null:(i=i.next,t.next=i,Od(e,i)))}function su(e,t,i){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=i,Dd(t),t=t.next;while(t!==r)}e.action=null}function Dd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ld(e,t){return t}function zd(e,t){if(Ke){var i=ut.formState;if(i!==null){e:{var r=Re;if(Ke){if(ht){t:{for(var u=ht,d=Dn;u.nodeType!==8;){if(!d){u=null;break t}if(u=zn(u.nextSibling),u===null){u=null;break t}}d=u.data,u=d==="F!"||d==="F"?u:null}if(u){ht=zn(u.nextSibling),r=u.data==="F!";break e}}Di(r)}r=!1}r&&(t=i[0])}}return i=Wt(),i.memoizedState=i.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ld,lastRenderedState:t},i.queue=r,i=ep.bind(null,Re,r),r.dispatch=i,r=ou(!1),d=hu.bind(null,Re,!1,r.queue),r=Wt(),u={state:t,dispatch:null,action:e,pending:null},r.queue=u,i=Hy.bind(null,Re,u,d,i),u.dispatch=i,r.memoizedState=e,[t,i,!1]}function Bd(e){var t=wt();return Id(t,at,e)}function Id(e,t,i){if(t=lu(e,t,Ld)[0],e=co(pi)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=Xl(t)}catch(y){throw y===Pa?eo:y}else r=t;t=wt();var u=t.queue,d=u.dispatch;return i!==t.memoizedState&&(Re.flags|=2048,Wa(9,{destroy:void 0},qy.bind(null,u,i),null)),[r,d,e]}function qy(e,t){e.action=t}function Ud(e){var t=wt(),i=at;if(i!==null)return Id(t,i,e);wt(),t=t.memoizedState,i=wt();var r=i.queue.dispatch;return i.memoizedState=e,[t,r,!1]}function Wa(e,t,i,r){return e={tag:e,create:i,deps:r,inst:t,next:null},t=Re.updateQueue,t===null&&(t=so(),Re.updateQueue=t),i=t.lastEffect,i===null?t.lastEffect=e.next=e:(r=i.next,i.next=e,e.next=r,t.lastEffect=e),e}function Hd(){return wt().memoizedState}function fo(e,t,i,r){var u=Wt();Re.flags|=e,u.memoizedState=Wa(1|t,{destroy:void 0},i,r===void 0?null:r)}function po(e,t,i,r){var u=wt();r=r===void 0?null:r;var d=u.memoizedState.inst;at!==null&&r!==null&&Ws(r,at.memoizedState.deps)?u.memoizedState=Wa(t,d,i,r):(Re.flags|=e,u.memoizedState=Wa(1|t,d,i,r))}function qd(e,t){fo(8390656,8,e,t)}function uu(e,t){po(2048,8,e,t)}function Fy(e){Re.flags|=4;var t=Re.updateQueue;if(t===null)t=so(),Re.updateQueue=t,t.events=[e];else{var i=t.events;i===null?t.events=[e]:i.push(e)}}function Fd(e){var t=wt().memoizedState;return Fy({ref:t,nextImpl:e}),function(){if(($e&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Gd(e,t){return po(4,2,e,t)}function jd(e,t){return po(4,4,e,t)}function Yd(e,t){if(typeof t=="function"){e=e();var i=t(e);return function(){typeof i=="function"?i():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Kd(e,t,i){i=i!=null?i.concat([e]):null,po(4,4,Yd.bind(null,t,e),i)}function cu(){}function Vd(e,t){var i=wt();t=t===void 0?null:t;var r=i.memoizedState;return t!==null&&Ws(t,r[1])?r[0]:(i.memoizedState=[e,t],e)}function Xd(e,t){var i=wt();t=t===void 0?null:t;var r=i.memoizedState;if(t!==null&&Ws(t,r[1]))return r[0];if(r=e(),Ea){Yt(!0);try{e()}finally{Yt(!1)}}return i.memoizedState=[r,t],r}function fu(e,t,i){return i===void 0||(di&1073741824)!==0&&(Ge&261930)===0?e.memoizedState=t:(e.memoizedState=i,e=Pp(),Re.lanes|=e,Gi|=e,i)}function Pd(e,t,i,r){return yn(i,t)?i:Qa.current!==null?(e=fu(e,i,r),yn(e,t)||(Rt=!0),e):(di&42)===0||(di&1073741824)!==0&&(Ge&261930)===0?(Rt=!0,e.memoizedState=i):(e=Pp(),Re.lanes|=e,Gi|=e,t)}function Zd(e,t,i,r,u){var d=J.p;J.p=d!==0&&8>d?d:8;var y=z.T,v={};z.T=v,hu(e,!1,t,i);try{var w=u(),q=z.S;if(q!==null&&q(v,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var V=By(w,r);Pl(e,t,V,Tn(e))}else Pl(e,t,r,Tn(e))}catch(Q){Pl(e,t,{then:function(){},status:"rejected",reason:Q},Tn())}finally{J.p=d,y!==null&&v.types!==null&&(y.types=v.types),z.T=y}}function Gy(){}function du(e,t,i,r){if(e.tag!==5)throw Error(o(476));var u=Qd(e).queue;Zd(e,u,t,ne,i===null?Gy:function(){return $d(e),i(r)})}function Qd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pi,lastRenderedState:ne},next:null};var i={};return t.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pi,lastRenderedState:i},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function $d(e){var t=Qd(e);t.next===null&&(t=e.alternate.memoizedState),Pl(e,t.next.queue,{},Tn())}function pu(){return Ft(fr)}function Jd(){return wt().memoizedState}function Wd(){return wt().memoizedState}function jy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var i=Tn();e=Bi(i);var r=Ii(t,e,i);r!==null&&(fn(r,t,i),jl(r,t,i)),t={cache:Gs()},e.payload=t;return}t=t.return}}function Yy(e,t,i){var r=Tn();i={lane:r,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},ho(e)?tp(t,i):(i=Ms(e,t,i,r),i!==null&&(fn(i,e,r),np(i,t,r)))}function ep(e,t,i){var r=Tn();Pl(e,t,i,r)}function Pl(e,t,i,r){var u={lane:r,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(ho(e))tp(t,u);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var y=t.lastRenderedState,v=d(y,i);if(u.hasEagerState=!0,u.eagerState=v,yn(v,y))return Xr(e,t,u,0),ut===null&&Vr(),!1}catch{}finally{}if(i=Ms(e,t,u,r),i!==null)return fn(i,e,r),np(i,t,r),!0}return!1}function hu(e,t,i,r){if(r={lane:2,revertLane:Vu(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},ho(e)){if(t)throw Error(o(479))}else t=Ms(e,i,r,2),t!==null&&fn(t,e,2)}function ho(e){var t=e.alternate;return e===Re||t!==null&&t===Re}function tp(e,t){$a=ro=!0;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}function np(e,t,i){if((i&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,i|=r,t.lanes=i,ke(e,i)}}var Zl={readContext:Ft,use:uo,useCallback:vt,useContext:vt,useEffect:vt,useImperativeHandle:vt,useLayoutEffect:vt,useInsertionEffect:vt,useMemo:vt,useReducer:vt,useRef:vt,useState:vt,useDebugValue:vt,useDeferredValue:vt,useTransition:vt,useSyncExternalStore:vt,useId:vt,useHostTransitionStatus:vt,useFormState:vt,useActionState:vt,useOptimistic:vt,useMemoCache:vt,useCacheRefresh:vt};Zl.useEffectEvent=vt;var ip={readContext:Ft,use:uo,useCallback:function(e,t){return Wt().memoizedState=[e,t===void 0?null:t],e},useContext:Ft,useEffect:qd,useImperativeHandle:function(e,t,i){i=i!=null?i.concat([e]):null,fo(4194308,4,Yd.bind(null,t,e),i)},useLayoutEffect:function(e,t){return fo(4194308,4,e,t)},useInsertionEffect:function(e,t){fo(4,2,e,t)},useMemo:function(e,t){var i=Wt();t=t===void 0?null:t;var r=e();if(Ea){Yt(!0);try{e()}finally{Yt(!1)}}return i.memoizedState=[r,t],r},useReducer:function(e,t,i){var r=Wt();if(i!==void 0){var u=i(t);if(Ea){Yt(!0);try{i(t)}finally{Yt(!1)}}}else u=t;return r.memoizedState=r.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},r.queue=e,e=e.dispatch=Yy.bind(null,Re,e),[r.memoizedState,e]},useRef:function(e){var t=Wt();return e={current:e},t.memoizedState=e},useState:function(e){e=ou(e);var t=e.queue,i=ep.bind(null,Re,t);return t.dispatch=i,[e.memoizedState,i]},useDebugValue:cu,useDeferredValue:function(e,t){var i=Wt();return fu(i,e,t)},useTransition:function(){var e=ou(!1);return e=Zd.bind(null,Re,e.queue,!0,!1),Wt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,i){var r=Re,u=Wt();if(Ke){if(i===void 0)throw Error(o(407));i=i()}else{if(i=t(),ut===null)throw Error(o(349));(Ge&127)!==0||Td(r,t,i)}u.memoizedState=i;var d={value:i,getSnapshot:t};return u.queue=d,qd(Ad.bind(null,r,d,e),[e]),r.flags|=2048,Wa(9,{destroy:void 0},Nd.bind(null,r,d,i,t),null),i},useId:function(){var e=Wt(),t=ut.identifierPrefix;if(Ke){var i=Zn,r=Pn;i=(r&~(1<<32-We(r)-1)).toString(32)+i,t="_"+t+"R_"+i,i=oo++,0<i&&(t+="H"+i.toString(32)),t+="_"}else i=Iy++,t="_"+t+"r_"+i.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:pu,useFormState:zd,useActionState:zd,useOptimistic:function(e){var t=Wt();t.memoizedState=t.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=i,t=hu.bind(null,Re,!0,i),i.dispatch=t,[e,t]},useMemoCache:au,useCacheRefresh:function(){return Wt().memoizedState=jy.bind(null,Re)},useEffectEvent:function(e){var t=Wt(),i={impl:e};return t.memoizedState=i,function(){if(($e&2)!==0)throw Error(o(440));return i.impl.apply(void 0,arguments)}}},mu={readContext:Ft,use:uo,useCallback:Vd,useContext:Ft,useEffect:uu,useImperativeHandle:Kd,useInsertionEffect:Gd,useLayoutEffect:jd,useMemo:Xd,useReducer:co,useRef:Hd,useState:function(){return co(pi)},useDebugValue:cu,useDeferredValue:function(e,t){var i=wt();return Pd(i,at.memoizedState,e,t)},useTransition:function(){var e=co(pi)[0],t=wt().memoizedState;return[typeof e=="boolean"?e:Xl(e),t]},useSyncExternalStore:xd,useId:Jd,useHostTransitionStatus:pu,useFormState:Bd,useActionState:Bd,useOptimistic:function(e,t){var i=wt();return Cd(i,at,e,t)},useMemoCache:au,useCacheRefresh:Wd};mu.useEffectEvent=Fd;var ap={readContext:Ft,use:uo,useCallback:Vd,useContext:Ft,useEffect:uu,useImperativeHandle:Kd,useInsertionEffect:Gd,useLayoutEffect:jd,useMemo:Xd,useReducer:ru,useRef:Hd,useState:function(){return ru(pi)},useDebugValue:cu,useDeferredValue:function(e,t){var i=wt();return at===null?fu(i,e,t):Pd(i,at.memoizedState,e,t)},useTransition:function(){var e=ru(pi)[0],t=wt().memoizedState;return[typeof e=="boolean"?e:Xl(e),t]},useSyncExternalStore:xd,useId:Jd,useHostTransitionStatus:pu,useFormState:Ud,useActionState:Ud,useOptimistic:function(e,t){var i=wt();return at!==null?Cd(i,at,e,t):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:au,useCacheRefresh:Wd};ap.useEffectEvent=Fd;function gu(e,t,i,r){t=e.memoizedState,i=i(r,t),i=i==null?t:g({},t,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var bu={enqueueSetState:function(e,t,i){e=e._reactInternals;var r=Tn(),u=Bi(r);u.payload=t,i!=null&&(u.callback=i),t=Ii(e,u,r),t!==null&&(fn(t,e,r),jl(t,e,r))},enqueueReplaceState:function(e,t,i){e=e._reactInternals;var r=Tn(),u=Bi(r);u.tag=1,u.payload=t,i!=null&&(u.callback=i),t=Ii(e,u,r),t!==null&&(fn(t,e,r),jl(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var i=Tn(),r=Bi(i);r.tag=2,t!=null&&(r.callback=t),t=Ii(e,r,i),t!==null&&(fn(t,e,i),jl(t,e,i))}};function lp(e,t,i,r,u,d,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,d,y):t.prototype&&t.prototype.isPureReactComponent?!zl(i,r)||!zl(u,d):!0}function rp(e,t,i,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(i,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(i,r),t.state!==e&&bu.enqueueReplaceState(t,t.state,null)}function _a(e,t){var i=t;if("ref"in t){i={};for(var r in t)r!=="ref"&&(i[r]=t[r])}if(e=e.defaultProps){i===t&&(i=g({},i));for(var u in e)i[u]===void 0&&(i[u]=e[u])}return i}function op(e){Kr(e)}function sp(e){console.error(e)}function up(e){Kr(e)}function mo(e,t){try{var i=e.onUncaughtError;i(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function cp(e,t,i){try{var r=e.onCaughtError;r(i.value,{componentStack:i.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function yu(e,t,i){return i=Bi(i),i.tag=3,i.payload={element:null},i.callback=function(){mo(e,t)},i}function fp(e){return e=Bi(e),e.tag=3,e}function dp(e,t,i,r){var u=i.type.getDerivedStateFromError;if(typeof u=="function"){var d=r.value;e.payload=function(){return u(d)},e.callback=function(){cp(t,i,r)}}var y=i.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){cp(t,i,r),typeof u!="function"&&(ji===null?ji=new Set([this]):ji.add(this));var v=r.stack;this.componentDidCatch(r.value,{componentStack:v!==null?v:""})})}function Ky(e,t,i,r,u){if(i.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=i.alternate,t!==null&&Ka(t,i,u,!0),i=_n.current,i!==null){switch(i.tag){case 31:case 13:return Ln===null?wo():i.alternate===null&&St===0&&(St=3),i.flags&=-257,i.flags|=65536,i.lanes=u,r===to?i.flags|=16384:(t=i.updateQueue,t===null?i.updateQueue=new Set([r]):t.add(r),ju(e,r,u)),!1;case 22:return i.flags|=65536,r===to?i.flags|=16384:(t=i.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},i.updateQueue=t):(i=t.retryQueue,i===null?t.retryQueue=new Set([r]):i.add(r)),ju(e,r,u)),!1}throw Error(o(435,i.tag))}return ju(e,r,u),wo(),!1}if(Ke)return t=_n.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,r!==Is&&(e=Error(o(422),{cause:r}),Ul(On(e,i)))):(r!==Is&&(t=Error(o(423),{cause:r}),Ul(On(t,i))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,r=On(r,i),u=yu(e.stateNode,r,u),Ps(e,u),St!==4&&(St=2)),!1;var d=Error(o(520),{cause:r});if(d=On(d,i),ir===null?ir=[d]:ir.push(d),St!==4&&(St=2),t===null)return!0;r=On(r,i),i=t;do{switch(i.tag){case 3:return i.flags|=65536,e=u&-u,i.lanes|=e,e=yu(i.stateNode,r,e),Ps(i,e),!1;case 1:if(t=i.type,d=i.stateNode,(i.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(ji===null||!ji.has(d))))return i.flags|=65536,u&=-u,i.lanes|=u,u=fp(u),dp(u,e,i,r),Ps(i,u),!1}i=i.return}while(i!==null);return!1}var Eu=Error(o(461)),Rt=!1;function Gt(e,t,i,r){t.child=e===null?gd(t,null,i,r):ya(t,e.child,i,r)}function pp(e,t,i,r,u){i=i.render;var d=t.ref;if("ref"in r){var y={};for(var v in r)v!=="ref"&&(y[v]=r[v])}else y=r;return ha(t),r=eu(e,t,i,y,d,u),v=tu(),e!==null&&!Rt?(nu(e,t,u),hi(e,t,u)):(Ke&&v&&zs(t),t.flags|=1,Gt(e,t,r,u),t.child)}function hp(e,t,i,r,u){if(e===null){var d=i.type;return typeof d=="function"&&!Rs(d)&&d.defaultProps===void 0&&i.compare===null?(t.tag=15,t.type=d,mp(e,t,d,r,u)):(e=Zr(i.type,null,r,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!wu(e,u)){var y=d.memoizedProps;if(i=i.compare,i=i!==null?i:zl,i(y,r)&&e.ref===t.ref)return hi(e,t,u)}return t.flags|=1,e=si(d,r),e.ref=t.ref,e.return=t,t.child=e}function mp(e,t,i,r,u){if(e!==null){var d=e.memoizedProps;if(zl(d,r)&&e.ref===t.ref)if(Rt=!1,t.pendingProps=r=d,wu(e,u))(e.flags&131072)!==0&&(Rt=!0);else return t.lanes=e.lanes,hi(e,t,u)}return _u(e,t,i,r,u)}function gp(e,t,i,r){var u=r.children,d=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(d=d!==null?d.baseLanes|i:i,e!==null){for(r=t.child=e.child,u=0;r!==null;)u=u|r.lanes|r.childLanes,r=r.sibling;r=u&~d}else r=0,t.child=null;return bp(e,t,d,i,r)}if((i&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Wr(t,d!==null?d.cachePool:null),d!==null?Ed(t,d):Qs(),_d(t);else return r=t.lanes=536870912,bp(e,t,d!==null?d.baseLanes|i:i,i,r)}else d!==null?(Wr(t,d.cachePool),Ed(t,d),Hi(),t.memoizedState=null):(e!==null&&Wr(t,null),Qs(),Hi());return Gt(e,t,u,i),t.child}function Ql(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function bp(e,t,i,r,u){var d=Ys();return d=d===null?null:{parent:Ot._currentValue,pool:d},t.memoizedState={baseLanes:i,cachePool:d},e!==null&&Wr(t,null),Qs(),_d(t),e!==null&&Ka(e,t,r,!0),t.childLanes=u,null}function go(e,t){return t=yo({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function yp(e,t,i){return ya(t,e.child,null,i),e=go(t,t.pendingProps),e.flags|=2,vn(t),t.memoizedState=null,e}function Vy(e,t,i){var r=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ke){if(r.mode==="hidden")return e=go(t,r),t.lanes=536870912,Ql(null,e);if(Js(t),(e=ht)?(e=Oh(e,Dn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Mi!==null?{id:Pn,overflow:Zn}:null,retryLane:536870912,hydrationErrors:null},i=td(e),i.return=t,t.child=i,qt=t,ht=null)):e=null,e===null)throw Di(t);return t.lanes=536870912,null}return go(t,r)}var d=e.memoizedState;if(d!==null){var y=d.dehydrated;if(Js(t),u)if(t.flags&256)t.flags&=-257,t=yp(e,t,i);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Rt||Ka(e,t,i,!1),u=(i&e.childLanes)!==0,Rt||u){if(r=ut,r!==null&&(y=xt(r,i),y!==0&&y!==d.retryLane))throw d.retryLane=y,ca(e,y),fn(r,e,y),Eu;wo(),t=yp(e,t,i)}else e=d.treeContext,ht=zn(y.nextSibling),qt=t,Ke=!0,Ri=null,Dn=!1,e!==null&&ad(t,e),t=go(t,r),t.flags|=4096;return t}return e=si(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function bo(e,t){var i=t.ref;if(i===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(o(284));(e===null||e.ref!==i)&&(t.flags|=4194816)}}function _u(e,t,i,r,u){return ha(t),i=eu(e,t,i,r,void 0,u),r=tu(),e!==null&&!Rt?(nu(e,t,u),hi(e,t,u)):(Ke&&r&&zs(t),t.flags|=1,Gt(e,t,i,u),t.child)}function Ep(e,t,i,r,u,d){return ha(t),t.updateQueue=null,i=Sd(t,r,i,u),vd(e),r=tu(),e!==null&&!Rt?(nu(e,t,d),hi(e,t,d)):(Ke&&r&&zs(t),t.flags|=1,Gt(e,t,i,d),t.child)}function _p(e,t,i,r,u){if(ha(t),t.stateNode===null){var d=Fa,y=i.contextType;typeof y=="object"&&y!==null&&(d=Ft(y)),d=new i(r,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=bu,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=r,d.state=t.memoizedState,d.refs={},Vs(t),y=i.contextType,d.context=typeof y=="object"&&y!==null?Ft(y):Fa,d.state=t.memoizedState,y=i.getDerivedStateFromProps,typeof y=="function"&&(gu(t,i,y,r),d.state=t.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(y=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),y!==d.state&&bu.enqueueReplaceState(d,d.state,null),Kl(t,r,d,u),Yl(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){d=t.stateNode;var v=t.memoizedProps,w=_a(i,v);d.props=w;var q=d.context,V=i.contextType;y=Fa,typeof V=="object"&&V!==null&&(y=Ft(V));var Q=i.getDerivedStateFromProps;V=typeof Q=="function"||typeof d.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,V||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(v||q!==y)&&rp(t,d,r,y),zi=!1;var F=t.memoizedState;d.state=F,Kl(t,r,d,u),Yl(),q=t.memoizedState,v||F!==q||zi?(typeof Q=="function"&&(gu(t,i,Q,r),q=t.memoizedState),(w=zi||lp(t,i,w,r,F,q,y))?(V||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=q),d.props=r,d.state=q,d.context=y,r=w):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{d=t.stateNode,Xs(e,t),y=t.memoizedProps,V=_a(i,y),d.props=V,Q=t.pendingProps,F=d.context,q=i.contextType,w=Fa,typeof q=="object"&&q!==null&&(w=Ft(q)),v=i.getDerivedStateFromProps,(q=typeof v=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(y!==Q||F!==w)&&rp(t,d,r,w),zi=!1,F=t.memoizedState,d.state=F,Kl(t,r,d,u),Yl();var G=t.memoizedState;y!==Q||F!==G||zi||e!==null&&e.dependencies!==null&&$r(e.dependencies)?(typeof v=="function"&&(gu(t,i,v,r),G=t.memoizedState),(V=zi||lp(t,i,V,r,F,G,w)||e!==null&&e.dependencies!==null&&$r(e.dependencies))?(q||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(r,G,w),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(r,G,w)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&F===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&F===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=G),d.props=r,d.state=G,d.context=w,r=V):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&F===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&F===e.memoizedState||(t.flags|=1024),r=!1)}return d=r,bo(e,t),r=(t.flags&128)!==0,d||r?(d=t.stateNode,i=r&&typeof i.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&r?(t.child=ya(t,e.child,null,u),t.child=ya(t,null,i,u)):Gt(e,t,i,u),t.memoizedState=d.state,e=t.child):e=hi(e,t,u),e}function vp(e,t,i,r){return da(),t.flags|=256,Gt(e,t,i,r),t.child}var vu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Su(e){return{baseLanes:e,cachePool:cd()}}function xu(e,t,i){return e=e!==null?e.childLanes&~i:0,t&&(e|=xn),e}function Sp(e,t,i){var r=t.pendingProps,u=!1,d=(t.flags&128)!==0,y;if((y=d)||(y=e!==null&&e.memoizedState===null?!1:(At.current&2)!==0),y&&(u=!0,t.flags&=-129),y=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ke){if(u?Ui(t):Hi(),(e=ht)?(e=Oh(e,Dn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Mi!==null?{id:Pn,overflow:Zn}:null,retryLane:536870912,hydrationErrors:null},i=td(e),i.return=t,t.child=i,qt=t,ht=null)):e=null,e===null)throw Di(t);return lc(e)?t.lanes=32:t.lanes=536870912,null}var v=r.children;return r=r.fallback,u?(Hi(),u=t.mode,v=yo({mode:"hidden",children:v},u),r=fa(r,u,i,null),v.return=t,r.return=t,v.sibling=r,t.child=v,r=t.child,r.memoizedState=Su(i),r.childLanes=xu(e,y,i),t.memoizedState=vu,Ql(null,r)):(Ui(t),Tu(t,v))}var w=e.memoizedState;if(w!==null&&(v=w.dehydrated,v!==null)){if(d)t.flags&256?(Ui(t),t.flags&=-257,t=Nu(e,t,i)):t.memoizedState!==null?(Hi(),t.child=e.child,t.flags|=128,t=null):(Hi(),v=r.fallback,u=t.mode,r=yo({mode:"visible",children:r.children},u),v=fa(v,u,i,null),v.flags|=2,r.return=t,v.return=t,r.sibling=v,t.child=r,ya(t,e.child,null,i),r=t.child,r.memoizedState=Su(i),r.childLanes=xu(e,y,i),t.memoizedState=vu,t=Ql(null,r));else if(Ui(t),lc(v)){if(y=v.nextSibling&&v.nextSibling.dataset,y)var q=y.dgst;y=q,r=Error(o(419)),r.stack="",r.digest=y,Ul({value:r,source:null,stack:null}),t=Nu(e,t,i)}else if(Rt||Ka(e,t,i,!1),y=(i&e.childLanes)!==0,Rt||y){if(y=ut,y!==null&&(r=xt(y,i),r!==0&&r!==w.retryLane))throw w.retryLane=r,ca(e,r),fn(y,e,r),Eu;ac(v)||wo(),t=Nu(e,t,i)}else ac(v)?(t.flags|=192,t.child=e.child,t=null):(e=w.treeContext,ht=zn(v.nextSibling),qt=t,Ke=!0,Ri=null,Dn=!1,e!==null&&ad(t,e),t=Tu(t,r.children),t.flags|=4096);return t}return u?(Hi(),v=r.fallback,u=t.mode,w=e.child,q=w.sibling,r=si(w,{mode:"hidden",children:r.children}),r.subtreeFlags=w.subtreeFlags&65011712,q!==null?v=si(q,v):(v=fa(v,u,i,null),v.flags|=2),v.return=t,r.return=t,r.sibling=v,t.child=r,Ql(null,r),r=t.child,v=e.child.memoizedState,v===null?v=Su(i):(u=v.cachePool,u!==null?(w=Ot._currentValue,u=u.parent!==w?{parent:w,pool:w}:u):u=cd(),v={baseLanes:v.baseLanes|i,cachePool:u}),r.memoizedState=v,r.childLanes=xu(e,y,i),t.memoizedState=vu,Ql(e.child,r)):(Ui(t),i=e.child,e=i.sibling,i=si(i,{mode:"visible",children:r.children}),i.return=t,i.sibling=null,e!==null&&(y=t.deletions,y===null?(t.deletions=[e],t.flags|=16):y.push(e)),t.child=i,t.memoizedState=null,i)}function Tu(e,t){return t=yo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function yo(e,t){return e=En(22,e,null,t),e.lanes=0,e}function Nu(e,t,i){return ya(t,e.child,null,i),e=Tu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function xp(e,t,i){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),qs(e.return,t,i)}function Au(e,t,i,r,u,d){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:i,tailMode:u,treeForkCount:d}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=r,y.tail=i,y.tailMode=u,y.treeForkCount=d)}function Tp(e,t,i){var r=t.pendingProps,u=r.revealOrder,d=r.tail;r=r.children;var y=At.current,v=(y&2)!==0;if(v?(y=y&1|2,t.flags|=128):y&=1,S(At,y),Gt(e,t,r,i),r=Ke?Il:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&xp(e,i,t);else if(e.tag===19)xp(e,i,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(u){case"forwards":for(i=t.child,u=null;i!==null;)e=i.alternate,e!==null&&lo(e)===null&&(u=i),i=i.sibling;i=u,i===null?(u=t.child,t.child=null):(u=i.sibling,i.sibling=null),Au(t,!1,u,i,d,r);break;case"backwards":case"unstable_legacy-backwards":for(i=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&lo(e)===null){t.child=u;break}e=u.sibling,u.sibling=i,i=u,u=e}Au(t,!0,i,null,d,r);break;case"together":Au(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function hi(e,t,i){if(e!==null&&(t.dependencies=e.dependencies),Gi|=t.lanes,(i&t.childLanes)===0)if(e!==null){if(Ka(e,t,i,!1),(i&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,i=si(e,e.pendingProps),t.child=i,i.return=t;e.sibling!==null;)e=e.sibling,i=i.sibling=si(e,e.pendingProps),i.return=t;i.sibling=null}return t.child}function wu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&$r(e)))}function Xy(e,t,i){switch(t.tag){case 3:Je(t,t.stateNode.containerInfo),Li(t,Ot,e.memoizedState.cache),da();break;case 27:case 5:zt(t);break;case 4:Je(t,t.stateNode.containerInfo);break;case 10:Li(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Js(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Ui(t),t.flags|=128,null):(i&t.child.childLanes)!==0?Sp(e,t,i):(Ui(t),e=hi(e,t,i),e!==null?e.sibling:null);Ui(t);break;case 19:var u=(e.flags&128)!==0;if(r=(i&t.childLanes)!==0,r||(Ka(e,t,i,!1),r=(i&t.childLanes)!==0),u){if(r)return Tp(e,t,i);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),S(At,At.current),r)break;return null;case 22:return t.lanes=0,gp(e,t,i,t.pendingProps);case 24:Li(t,Ot,e.memoizedState.cache)}return hi(e,t,i)}function Np(e,t,i){if(e!==null)if(e.memoizedProps!==t.pendingProps)Rt=!0;else{if(!wu(e,i)&&(t.flags&128)===0)return Rt=!1,Xy(e,t,i);Rt=(e.flags&131072)!==0}else Rt=!1,Ke&&(t.flags&1048576)!==0&&id(t,Il,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=ga(t.elementType),t.type=e,typeof e=="function")Rs(e)?(r=_a(e,r),t.tag=1,t=_p(null,t,e,r,i)):(t.tag=0,t=_u(null,t,e,r,i));else{if(e!=null){var u=e.$$typeof;if(u===$){t.tag=11,t=pp(null,t,e,r,i);break e}else if(u===Y){t.tag=14,t=hp(null,t,e,r,i);break e}}throw t=oe(e)||e,Error(o(306,t,""))}}return t;case 0:return _u(e,t,t.type,t.pendingProps,i);case 1:return r=t.type,u=_a(r,t.pendingProps),_p(e,t,r,u,i);case 3:e:{if(Je(t,t.stateNode.containerInfo),e===null)throw Error(o(387));r=t.pendingProps;var d=t.memoizedState;u=d.element,Xs(e,t),Kl(t,r,null,i);var y=t.memoizedState;if(r=y.cache,Li(t,Ot,r),r!==d.cache&&Fs(t,[Ot],i,!0),Yl(),r=y.element,d.isDehydrated)if(d={element:r,isDehydrated:!1,cache:y.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=vp(e,t,r,i);break e}else if(r!==u){u=On(Error(o(424)),t),Ul(u),t=vp(e,t,r,i);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ht=zn(e.firstChild),qt=t,Ke=!0,Ri=null,Dn=!0,i=gd(t,null,r,i),t.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(da(),r===u){t=hi(e,t,i);break e}Gt(e,t,r,i)}t=t.child}return t;case 26:return bo(e,t),e===null?(i=Bh(t.type,null,t.pendingProps,null))?t.memoizedState=i:Ke||(i=t.type,e=t.pendingProps,r=Lo(me.current).createElement(i),r[Tt]=t,r[Kt]=e,jt(r,i,e),kt(r),t.stateNode=r):t.memoizedState=Bh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return zt(t),e===null&&Ke&&(r=t.stateNode=Dh(t.type,t.pendingProps,me.current),qt=t,Dn=!0,u=ht,Xi(t.type)?(rc=u,ht=zn(r.firstChild)):ht=u),Gt(e,t,t.pendingProps.children,i),bo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ke&&((u=r=ht)&&(r=xE(r,t.type,t.pendingProps,Dn),r!==null?(t.stateNode=r,qt=t,ht=zn(r.firstChild),Dn=!1,u=!0):u=!1),u||Di(t)),zt(t),u=t.type,d=t.pendingProps,y=e!==null?e.memoizedProps:null,r=d.children,tc(u,d)?r=null:y!==null&&tc(u,y)&&(t.flags|=32),t.memoizedState!==null&&(u=eu(e,t,Uy,null,null,i),fr._currentValue=u),bo(e,t),Gt(e,t,r,i),t.child;case 6:return e===null&&Ke&&((e=i=ht)&&(i=TE(i,t.pendingProps,Dn),i!==null?(t.stateNode=i,qt=t,ht=null,e=!0):e=!1),e||Di(t)),null;case 13:return Sp(e,t,i);case 4:return Je(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ya(t,null,r,i):Gt(e,t,r,i),t.child;case 11:return pp(e,t,t.type,t.pendingProps,i);case 7:return Gt(e,t,t.pendingProps,i),t.child;case 8:return Gt(e,t,t.pendingProps.children,i),t.child;case 12:return Gt(e,t,t.pendingProps.children,i),t.child;case 10:return r=t.pendingProps,Li(t,t.type,r.value),Gt(e,t,r.children,i),t.child;case 9:return u=t.type._context,r=t.pendingProps.children,ha(t),u=Ft(u),r=r(u),t.flags|=1,Gt(e,t,r,i),t.child;case 14:return hp(e,t,t.type,t.pendingProps,i);case 15:return mp(e,t,t.type,t.pendingProps,i);case 19:return Tp(e,t,i);case 31:return Vy(e,t,i);case 22:return gp(e,t,i,t.pendingProps);case 24:return ha(t),r=Ft(Ot),e===null?(u=Ys(),u===null&&(u=ut,d=Gs(),u.pooledCache=d,d.refCount++,d!==null&&(u.pooledCacheLanes|=i),u=d),t.memoizedState={parent:r,cache:u},Vs(t),Li(t,Ot,u)):((e.lanes&i)!==0&&(Xs(e,t),Kl(t,null,null,i),Yl()),u=e.memoizedState,d=t.memoizedState,u.parent!==r?(u={parent:r,cache:r},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Li(t,Ot,r)):(r=d.cache,Li(t,Ot,r),r!==u.cache&&Fs(t,[Ot],i,!0))),Gt(e,t,t.pendingProps.children,i),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function mi(e){e.flags|=4}function ku(e,t,i,r,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(Jp())e.flags|=8192;else throw ba=to,Ks}else e.flags&=-16777217}function Ap(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Fh(t))if(Jp())e.flags|=8192;else throw ba=to,Ks}function Eo(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ce():536870912,e.lanes|=t,il|=t)}function $l(e,t){if(!Ke)switch(e.tailMode){case"hidden":t=e.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var r=null;i!==null;)i.alternate!==null&&(r=i),i=i.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function mt(e){var t=e.alternate!==null&&e.alternate.child===e.child,i=0,r=0;if(t)for(var u=e.child;u!==null;)i|=u.lanes|u.childLanes,r|=u.subtreeFlags&65011712,r|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)i|=u.lanes|u.childLanes,r|=u.subtreeFlags,r|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=r,e.childLanes=i,t}function Py(e,t,i){var r=t.pendingProps;switch(Bs(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mt(t),null;case 1:return mt(t),null;case 3:return i=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),fi(Ot),Qe(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Ya(t)?mi(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Us())),mt(t),null;case 26:var u=t.type,d=t.memoizedState;return e===null?(mi(t),d!==null?(mt(t),Ap(t,d)):(mt(t),ku(t,u,null,r,i))):d?d!==e.memoizedState?(mi(t),mt(t),Ap(t,d)):(mt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&mi(t),mt(t),ku(t,u,e,r,i)),null;case 27:if(hn(t),i=me.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&mi(t);else{if(!r){if(t.stateNode===null)throw Error(o(166));return mt(t),null}e=ce.current,Ya(t)?ld(t):(e=Dh(u,r,i),t.stateNode=e,mi(t))}return mt(t),null;case 5:if(hn(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&mi(t);else{if(!r){if(t.stateNode===null)throw Error(o(166));return mt(t),null}if(d=ce.current,Ya(t))ld(t);else{var y=Lo(me.current);switch(d){case 1:d=y.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:d=y.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":d=y.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":d=y.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":d=y.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof r.is=="string"?y.createElement("select",{is:r.is}):y.createElement("select"),r.multiple?d.multiple=!0:r.size&&(d.size=r.size);break;default:d=typeof r.is=="string"?y.createElement(u,{is:r.is}):y.createElement(u)}}d[Tt]=t,d[Kt]=r;e:for(y=t.child;y!==null;){if(y.tag===5||y.tag===6)d.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===t)break e;for(;y.sibling===null;){if(y.return===null||y.return===t)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}t.stateNode=d;e:switch(jt(d,u,r),u){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&mi(t)}}return mt(t),ku(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,i),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&mi(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(o(166));if(e=me.current,Ya(t)){if(e=t.stateNode,i=t.memoizedProps,r=null,u=qt,u!==null)switch(u.tag){case 27:case 5:r=u.memoizedProps}e[Tt]=t,e=!!(e.nodeValue===i||r!==null&&r.suppressHydrationWarning===!0||Sh(e.nodeValue,i)),e||Di(t,!0)}else e=Lo(e).createTextNode(r),e[Tt]=t,t.stateNode=e}return mt(t),null;case 31:if(i=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ya(t),i!==null){if(e===null){if(!r)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[Tt]=t}else da(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;mt(t),e=!1}else i=Us(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return t.flags&256?(vn(t),t):(vn(t),null);if((t.flags&128)!==0)throw Error(o(558))}return mt(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Ya(t),r!==null&&r.dehydrated!==null){if(e===null){if(!u)throw Error(o(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(o(317));u[Tt]=t}else da(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;mt(t),u=!1}else u=Us(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(vn(t),t):(vn(t),null)}return vn(t),(t.flags&128)!==0?(t.lanes=i,t):(i=r!==null,e=e!==null&&e.memoizedState!==null,i&&(r=t.child,u=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(u=r.alternate.memoizedState.cachePool.pool),d=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(d=r.memoizedState.cachePool.pool),d!==u&&(r.flags|=2048)),i!==e&&i&&(t.child.flags|=8192),Eo(t,t.updateQueue),mt(t),null);case 4:return Qe(),e===null&&Qu(t.stateNode.containerInfo),mt(t),null;case 10:return fi(t.type),mt(t),null;case 19:if(j(At),r=t.memoizedState,r===null)return mt(t),null;if(u=(t.flags&128)!==0,d=r.rendering,d===null)if(u)$l(r,!1);else{if(St!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=lo(e),d!==null){for(t.flags|=128,$l(r,!1),e=d.updateQueue,t.updateQueue=e,Eo(t,e),t.subtreeFlags=0,e=i,i=t.child;i!==null;)ed(i,e),i=i.sibling;return S(At,At.current&1|2),Ke&&ui(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&yt()>To&&(t.flags|=128,u=!0,$l(r,!1),t.lanes=4194304)}else{if(!u)if(e=lo(d),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,Eo(t,e),$l(r,!0),r.tail===null&&r.tailMode==="hidden"&&!d.alternate&&!Ke)return mt(t),null}else 2*yt()-r.renderingStartTime>To&&i!==536870912&&(t.flags|=128,u=!0,$l(r,!1),t.lanes=4194304);r.isBackwards?(d.sibling=t.child,t.child=d):(e=r.last,e!==null?e.sibling=d:t.child=d,r.last=d)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=yt(),e.sibling=null,i=At.current,S(At,u?i&1|2:i&1),Ke&&ui(t,r.treeForkCount),e):(mt(t),null);case 22:case 23:return vn(t),$s(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(i&536870912)!==0&&(t.flags&128)===0&&(mt(t),t.subtreeFlags&6&&(t.flags|=8192)):mt(t),i=t.updateQueue,i!==null&&Eo(t,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==i&&(t.flags|=2048),e!==null&&j(ma),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),fi(Ot),mt(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Zy(e,t){switch(Bs(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fi(Ot),Qe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return hn(t),null;case 31:if(t.memoizedState!==null){if(vn(t),t.alternate===null)throw Error(o(340));da()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(vn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));da()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return j(At),null;case 4:return Qe(),null;case 10:return fi(t.type),null;case 22:case 23:return vn(t),$s(),e!==null&&j(ma),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fi(Ot),null;case 25:return null;default:return null}}function wp(e,t){switch(Bs(t),t.tag){case 3:fi(Ot),Qe();break;case 26:case 27:case 5:hn(t);break;case 4:Qe();break;case 31:t.memoizedState!==null&&vn(t);break;case 13:vn(t);break;case 19:j(At);break;case 10:fi(t.type);break;case 22:case 23:vn(t),$s(),e!==null&&j(ma);break;case 24:fi(Ot)}}function Jl(e,t){try{var i=t.updateQueue,r=i!==null?i.lastEffect:null;if(r!==null){var u=r.next;i=u;do{if((i.tag&e)===e){r=void 0;var d=i.create,y=i.inst;r=d(),y.destroy=r}i=i.next}while(i!==u)}}catch(v){it(t,t.return,v)}}function qi(e,t,i){try{var r=t.updateQueue,u=r!==null?r.lastEffect:null;if(u!==null){var d=u.next;r=d;do{if((r.tag&e)===e){var y=r.inst,v=y.destroy;if(v!==void 0){y.destroy=void 0,u=t;var w=i,q=v;try{q()}catch(V){it(u,w,V)}}}r=r.next}while(r!==d)}}catch(V){it(t,t.return,V)}}function kp(e){var t=e.updateQueue;if(t!==null){var i=e.stateNode;try{yd(t,i)}catch(r){it(e,e.return,r)}}}function Cp(e,t,i){i.props=_a(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(r){it(e,t,r)}}function Wl(e,t){try{var i=e.ref;if(i!==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 i=="function"?e.refCleanup=i(r):i.current=r}}catch(u){it(e,t,u)}}function Qn(e,t){var i=e.ref,r=e.refCleanup;if(i!==null)if(typeof r=="function")try{r()}catch(u){it(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(u){it(e,t,u)}else i.current=null}function Op(e){var t=e.type,i=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":i.autoFocus&&r.focus();break e;case"img":i.src?r.src=i.src:i.srcSet&&(r.srcset=i.srcSet)}}catch(u){it(e,e.return,u)}}function Cu(e,t,i){try{var r=e.stateNode;bE(r,e.type,i,t),r[Kt]=t}catch(u){it(e,e.return,u)}}function Mp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Xi(e.type)||e.tag===4}function Ou(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Mp(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&&Xi(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Mu(e,t,i){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,t):(t=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,t.appendChild(e),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=se));else if(r!==4&&(r===27&&Xi(e.type)&&(i=e.stateNode,t=null),e=e.child,e!==null))for(Mu(e,t,i),e=e.sibling;e!==null;)Mu(e,t,i),e=e.sibling}function _o(e,t,i){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?i.insertBefore(e,t):i.appendChild(e);else if(r!==4&&(r===27&&Xi(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(_o(e,t,i),e=e.sibling;e!==null;)_o(e,t,i),e=e.sibling}function Rp(e){var t=e.stateNode,i=e.memoizedProps;try{for(var r=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);jt(t,r,i),t[Tt]=e,t[Kt]=i}catch(d){it(e,e.return,d)}}var gi=!1,Dt=!1,Ru=!1,Dp=typeof WeakSet=="function"?WeakSet:Set,It=null;function Qy(e,t){if(e=e.containerInfo,Wu=Fo,e=Kf(e),Ns(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var r=i.getSelection&&i.getSelection();if(r&&r.rangeCount!==0){i=r.anchorNode;var u=r.anchorOffset,d=r.focusNode;r=r.focusOffset;try{i.nodeType,d.nodeType}catch{i=null;break e}var y=0,v=-1,w=-1,q=0,V=0,Q=e,F=null;t:for(;;){for(var G;Q!==i||u!==0&&Q.nodeType!==3||(v=y+u),Q!==d||r!==0&&Q.nodeType!==3||(w=y+r),Q.nodeType===3&&(y+=Q.nodeValue.length),(G=Q.firstChild)!==null;)F=Q,Q=G;for(;;){if(Q===e)break t;if(F===i&&++q===u&&(v=y),F===d&&++V===r&&(w=y),(G=Q.nextSibling)!==null)break;Q=F,F=Q.parentNode}Q=G}i=v===-1||w===-1?null:{start:v,end:w}}else i=null}i=i||{start:0,end:0}}else i=null;for(ec={focusedElem:e,selectionRange:i},Fo=!1,It=t;It!==null;)if(t=It,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,It=e;else for(;It!==null;){switch(t=It,d=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(i=0;i<e.length;i++)u=e[i],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,i=t,u=d.memoizedProps,d=d.memoizedState,r=i.stateNode;try{var pe=_a(i.type,u);e=r.getSnapshotBeforeUpdate(pe,d),r.__reactInternalSnapshotBeforeUpdate=e}catch(Ne){it(i,i.return,Ne)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,i=e.nodeType,i===9)ic(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ic(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,It=e;break}It=t.return}}function Lp(e,t,i){var r=i.flags;switch(i.tag){case 0:case 11:case 15:yi(e,i),r&4&&Jl(5,i);break;case 1:if(yi(e,i),r&4)if(e=i.stateNode,t===null)try{e.componentDidMount()}catch(y){it(i,i.return,y)}else{var u=_a(i.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(y){it(i,i.return,y)}}r&64&&kp(i),r&512&&Wl(i,i.return);break;case 3:if(yi(e,i),r&64&&(e=i.updateQueue,e!==null)){if(t=null,i.child!==null)switch(i.child.tag){case 27:case 5:t=i.child.stateNode;break;case 1:t=i.child.stateNode}try{yd(e,t)}catch(y){it(i,i.return,y)}}break;case 27:t===null&&r&4&&Rp(i);case 26:case 5:yi(e,i),t===null&&r&4&&Op(i),r&512&&Wl(i,i.return);break;case 12:yi(e,i);break;case 31:yi(e,i),r&4&&Ip(e,i);break;case 13:yi(e,i),r&4&&Up(e,i),r&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=lE.bind(null,i),NE(e,i))));break;case 22:if(r=i.memoizedState!==null||gi,!r){t=t!==null&&t.memoizedState!==null||Dt,u=gi;var d=Dt;gi=r,(Dt=t)&&!d?Ei(e,i,(i.subtreeFlags&8772)!==0):yi(e,i),gi=u,Dt=d}break;case 30:break;default:yi(e,i)}}function zp(e){var t=e.alternate;t!==null&&(e.alternate=null,zp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&xl(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 bt=null,on=!1;function bi(e,t,i){for(i=i.child;i!==null;)Bp(e,t,i),i=i.sibling}function Bp(e,t,i){if(_t&&typeof _t.onCommitFiberUnmount=="function")try{_t.onCommitFiberUnmount(Ut,i)}catch{}switch(i.tag){case 26:Dt||Qn(i,t),bi(e,t,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:Dt||Qn(i,t);var r=bt,u=on;Xi(i.type)&&(bt=i.stateNode,on=!1),bi(e,t,i),sr(i.stateNode),bt=r,on=u;break;case 5:Dt||Qn(i,t);case 6:if(r=bt,u=on,bt=null,bi(e,t,i),bt=r,on=u,bt!==null)if(on)try{(bt.nodeType===9?bt.body:bt.nodeName==="HTML"?bt.ownerDocument.body:bt).removeChild(i.stateNode)}catch(d){it(i,t,d)}else try{bt.removeChild(i.stateNode)}catch(d){it(i,t,d)}break;case 18:bt!==null&&(on?(e=bt,kh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),fl(e)):kh(bt,i.stateNode));break;case 4:r=bt,u=on,bt=i.stateNode.containerInfo,on=!0,bi(e,t,i),bt=r,on=u;break;case 0:case 11:case 14:case 15:qi(2,i,t),Dt||qi(4,i,t),bi(e,t,i);break;case 1:Dt||(Qn(i,t),r=i.stateNode,typeof r.componentWillUnmount=="function"&&Cp(i,t,r)),bi(e,t,i);break;case 21:bi(e,t,i);break;case 22:Dt=(r=Dt)||i.memoizedState!==null,bi(e,t,i),Dt=r;break;default:bi(e,t,i)}}function Ip(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{fl(e)}catch(i){it(t,t.return,i)}}}function Up(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{fl(e)}catch(i){it(t,t.return,i)}}function $y(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Dp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Dp),t;default:throw Error(o(435,e.tag))}}function vo(e,t){var i=$y(e);t.forEach(function(r){if(!i.has(r)){i.add(r);var u=rE.bind(null,e,r);r.then(u,u)}})}function sn(e,t){var i=t.deletions;if(i!==null)for(var r=0;r<i.length;r++){var u=i[r],d=e,y=t,v=y;e:for(;v!==null;){switch(v.tag){case 27:if(Xi(v.type)){bt=v.stateNode,on=!1;break e}break;case 5:bt=v.stateNode,on=!1;break e;case 3:case 4:bt=v.stateNode.containerInfo,on=!0;break e}v=v.return}if(bt===null)throw Error(o(160));Bp(d,y,u),bt=null,on=!1,d=u.alternate,d!==null&&(d.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Hp(t,e),t=t.sibling}var Fn=null;function Hp(e,t){var i=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:sn(t,e),un(e),r&4&&(qi(3,e,e.return),Jl(3,e),qi(5,e,e.return));break;case 1:sn(t,e),un(e),r&512&&(Dt||i===null||Qn(i,i.return)),r&64&&gi&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?r:i.concat(r))));break;case 26:var u=Fn;if(sn(t,e),un(e),r&512&&(Dt||i===null||Qn(i,i.return)),r&4){var d=i!==null?i.memoizedState:null;if(r=e.memoizedState,i===null)if(r===null)if(e.stateNode===null){e:{r=e.type,i=e.memoizedProps,u=u.ownerDocument||u;t:switch(r){case"title":d=u.getElementsByTagName("title")[0],(!d||d[aa]||d[Tt]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=u.createElement(r),u.head.insertBefore(d,u.querySelector("head > title"))),jt(d,r,i),d[Tt]=e,kt(d),r=d;break e;case"link":var y=Hh("link","href",u).get(r+(i.href||""));if(y){for(var v=0;v<y.length;v++)if(d=y[v],d.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&d.getAttribute("rel")===(i.rel==null?null:i.rel)&&d.getAttribute("title")===(i.title==null?null:i.title)&&d.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){y.splice(v,1);break t}}d=u.createElement(r),jt(d,r,i),u.head.appendChild(d);break;case"meta":if(y=Hh("meta","content",u).get(r+(i.content||""))){for(v=0;v<y.length;v++)if(d=y[v],d.getAttribute("content")===(i.content==null?null:""+i.content)&&d.getAttribute("name")===(i.name==null?null:i.name)&&d.getAttribute("property")===(i.property==null?null:i.property)&&d.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&d.getAttribute("charset")===(i.charSet==null?null:i.charSet)){y.splice(v,1);break t}}d=u.createElement(r),jt(d,r,i),u.head.appendChild(d);break;default:throw Error(o(468,r))}d[Tt]=e,kt(d),r=d}e.stateNode=r}else qh(u,e.type,e.stateNode);else e.stateNode=Uh(u,r,e.memoizedProps);else d!==r?(d===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):d.count--,r===null?qh(u,e.type,e.stateNode):Uh(u,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Cu(e,e.memoizedProps,i.memoizedProps)}break;case 27:sn(t,e),un(e),r&512&&(Dt||i===null||Qn(i,i.return)),i!==null&&r&4&&Cu(e,e.memoizedProps,i.memoizedProps);break;case 5:if(sn(t,e),un(e),r&512&&(Dt||i===null||Qn(i,i.return)),e.flags&32){u=e.stateNode;try{Ae(u,"")}catch(pe){it(e,e.return,pe)}}r&4&&e.stateNode!=null&&(u=e.memoizedProps,Cu(e,u,i!==null?i.memoizedProps:u)),r&1024&&(Ru=!0);break;case 6:if(sn(t,e),un(e),r&4){if(e.stateNode===null)throw Error(o(162));r=e.memoizedProps,i=e.stateNode;try{i.nodeValue=r}catch(pe){it(e,e.return,pe)}}break;case 3:if(Io=null,u=Fn,Fn=zo(t.containerInfo),sn(t,e),Fn=u,un(e),r&4&&i!==null&&i.memoizedState.isDehydrated)try{fl(t.containerInfo)}catch(pe){it(e,e.return,pe)}Ru&&(Ru=!1,qp(e));break;case 4:r=Fn,Fn=zo(e.stateNode.containerInfo),sn(t,e),un(e),Fn=r;break;case 12:sn(t,e),un(e);break;case 31:sn(t,e),un(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,vo(e,r)));break;case 13:sn(t,e),un(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(xo=yt()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,vo(e,r)));break;case 22:u=e.memoizedState!==null;var w=i!==null&&i.memoizedState!==null,q=gi,V=Dt;if(gi=q||u,Dt=V||w,sn(t,e),Dt=V,gi=q,un(e),r&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(i===null||w||gi||Dt||va(e)),i=null,t=e;;){if(t.tag===5||t.tag===26){if(i===null){w=i=t;try{if(d=w.stateNode,u)y=d.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{v=w.stateNode;var Q=w.memoizedProps.style,F=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;v.style.display=F==null||typeof F=="boolean"?"":(""+F).trim()}}catch(pe){it(w,w.return,pe)}}}else if(t.tag===6){if(i===null){w=t;try{w.stateNode.nodeValue=u?"":w.memoizedProps}catch(pe){it(w,w.return,pe)}}}else if(t.tag===18){if(i===null){w=t;try{var G=w.stateNode;u?Ch(G,!0):Ch(w.stateNode,!1)}catch(pe){it(w,w.return,pe)}}}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 e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;i===t&&(i=null),t=t.return}i===t&&(i=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(i=r.retryQueue,i!==null&&(r.retryQueue=null,vo(e,i))));break;case 19:sn(t,e),un(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,vo(e,r)));break;case 30:break;case 21:break;default:sn(t,e),un(e)}}function un(e){var t=e.flags;if(t&2){try{for(var i,r=e.return;r!==null;){if(Mp(r)){i=r;break}r=r.return}if(i==null)throw Error(o(160));switch(i.tag){case 27:var u=i.stateNode,d=Ou(e);_o(e,d,u);break;case 5:var y=i.stateNode;i.flags&32&&(Ae(y,""),i.flags&=-33);var v=Ou(e);_o(e,v,y);break;case 3:case 4:var w=i.stateNode.containerInfo,q=Ou(e);Mu(e,q,w);break;default:throw Error(o(161))}}catch(V){it(e,e.return,V)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function qp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;qp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function yi(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Lp(e,t.alternate,t),t=t.sibling}function va(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:qi(4,t,t.return),va(t);break;case 1:Qn(t,t.return);var i=t.stateNode;typeof i.componentWillUnmount=="function"&&Cp(t,t.return,i),va(t);break;case 27:sr(t.stateNode);case 26:case 5:Qn(t,t.return),va(t);break;case 22:t.memoizedState===null&&va(t);break;case 30:va(t);break;default:va(t)}e=e.sibling}}function Ei(e,t,i){for(i=i&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,u=e,d=t,y=d.flags;switch(d.tag){case 0:case 11:case 15:Ei(u,d,i),Jl(4,d);break;case 1:if(Ei(u,d,i),r=d,u=r.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(q){it(r,r.return,q)}if(r=d,u=r.updateQueue,u!==null){var v=r.stateNode;try{var w=u.shared.hiddenCallbacks;if(w!==null)for(u.shared.hiddenCallbacks=null,u=0;u<w.length;u++)bd(w[u],v)}catch(q){it(r,r.return,q)}}i&&y&64&&kp(d),Wl(d,d.return);break;case 27:Rp(d);case 26:case 5:Ei(u,d,i),i&&r===null&&y&4&&Op(d),Wl(d,d.return);break;case 12:Ei(u,d,i);break;case 31:Ei(u,d,i),i&&y&4&&Ip(u,d);break;case 13:Ei(u,d,i),i&&y&4&&Up(u,d);break;case 22:d.memoizedState===null&&Ei(u,d,i),Wl(d,d.return);break;case 30:break;default:Ei(u,d,i)}t=t.sibling}}function Du(e,t){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&Hl(i))}function Lu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Hl(e))}function Gn(e,t,i,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Fp(e,t,i,r),t=t.sibling}function Fp(e,t,i,r){var u=t.flags;switch(t.tag){case 0:case 11:case 15:Gn(e,t,i,r),u&2048&&Jl(9,t);break;case 1:Gn(e,t,i,r);break;case 3:Gn(e,t,i,r),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Hl(e)));break;case 12:if(u&2048){Gn(e,t,i,r),e=t.stateNode;try{var d=t.memoizedProps,y=d.id,v=d.onPostCommit;typeof v=="function"&&v(y,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(w){it(t,t.return,w)}}else Gn(e,t,i,r);break;case 31:Gn(e,t,i,r);break;case 13:Gn(e,t,i,r);break;case 23:break;case 22:d=t.stateNode,y=t.alternate,t.memoizedState!==null?d._visibility&2?Gn(e,t,i,r):er(e,t):d._visibility&2?Gn(e,t,i,r):(d._visibility|=2,el(e,t,i,r,(t.subtreeFlags&10256)!==0||!1)),u&2048&&Du(y,t);break;case 24:Gn(e,t,i,r),u&2048&&Lu(t.alternate,t);break;default:Gn(e,t,i,r)}}function el(e,t,i,r,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var d=e,y=t,v=i,w=r,q=y.flags;switch(y.tag){case 0:case 11:case 15:el(d,y,v,w,u),Jl(8,y);break;case 23:break;case 22:var V=y.stateNode;y.memoizedState!==null?V._visibility&2?el(d,y,v,w,u):er(d,y):(V._visibility|=2,el(d,y,v,w,u)),u&&q&2048&&Du(y.alternate,y);break;case 24:el(d,y,v,w,u),u&&q&2048&&Lu(y.alternate,y);break;default:el(d,y,v,w,u)}t=t.sibling}}function er(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var i=e,r=t,u=r.flags;switch(r.tag){case 22:er(i,r),u&2048&&Du(r.alternate,r);break;case 24:er(i,r),u&2048&&Lu(r.alternate,r);break;default:er(i,r)}t=t.sibling}}var tr=8192;function tl(e,t,i){if(e.subtreeFlags&tr)for(e=e.child;e!==null;)Gp(e,t,i),e=e.sibling}function Gp(e,t,i){switch(e.tag){case 26:tl(e,t,i),e.flags&tr&&e.memoizedState!==null&&IE(i,Fn,e.memoizedState,e.memoizedProps);break;case 5:tl(e,t,i);break;case 3:case 4:var r=Fn;Fn=zo(e.stateNode.containerInfo),tl(e,t,i),Fn=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=tr,tr=16777216,tl(e,t,i),tr=r):tl(e,t,i));break;default:tl(e,t,i)}}function jp(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 nr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var r=t[i];It=r,Kp(r,e)}jp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Yp(e),e=e.sibling}function Yp(e){switch(e.tag){case 0:case 11:case 15:nr(e),e.flags&2048&&qi(9,e,e.return);break;case 3:nr(e);break;case 12:nr(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,So(e)):nr(e);break;default:nr(e)}}function So(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var r=t[i];It=r,Kp(r,e)}jp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:qi(8,t,t.return),So(t);break;case 22:i=t.stateNode,i._visibility&2&&(i._visibility&=-3,So(t));break;default:So(t)}e=e.sibling}}function Kp(e,t){for(;It!==null;){var i=It;switch(i.tag){case 0:case 11:case 15:qi(8,i,t);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var r=i.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Hl(i.memoizedState.cache)}if(r=i.child,r!==null)r.return=i,It=r;else e:for(i=e;It!==null;){r=It;var u=r.sibling,d=r.return;if(zp(r),r===i){It=null;break e}if(u!==null){u.return=d,It=u;break e}It=d}}}var Jy={getCacheForType:function(e){var t=Ft(Ot),i=t.data.get(e);return i===void 0&&(i=e(),t.data.set(e,i)),i},cacheSignal:function(){return Ft(Ot).controller.signal}},Wy=typeof WeakMap=="function"?WeakMap:Map,$e=0,ut=null,Ue=null,Ge=0,nt=0,Sn=null,Fi=!1,nl=!1,zu=!1,_i=0,St=0,Gi=0,Sa=0,Bu=0,xn=0,il=0,ir=null,cn=null,Iu=!1,xo=0,Vp=0,To=1/0,No=null,ji=null,Bt=0,Yi=null,al=null,vi=0,Uu=0,Hu=null,Xp=null,ar=0,qu=null;function Tn(){return($e&2)!==0&&Ge!==0?Ge&-Ge:z.T!==null?Vu():Oa()}function Pp(){if(xn===0)if((Ge&536870912)===0||Ke){var e=Ca;Ca<<=1,(Ca&3932160)===0&&(Ca=262144),xn=e}else xn=536870912;return e=_n.current,e!==null&&(e.flags|=32),xn}function fn(e,t,i){(e===ut&&(nt===2||nt===9)||e.cancelPendingCommit!==null)&&(ll(e,0),Ki(e,Ge,xn,!1)),st(e,i),(($e&2)===0||e!==ut)&&(e===ut&&(($e&2)===0&&(Sa|=i),St===4&&Ki(e,Ge,xn,!1)),$n(e))}function Zp(e,t,i){if(($e&6)!==0)throw Error(o(327));var r=!i&&(t&127)===0&&(t&e.expiredLanes)===0||P(e,t),u=r?nE(e,t):Gu(e,t,!0),d=r;do{if(u===0){nl&&!r&&Ki(e,t,0,!1);break}else{if(i=e.current.alternate,d&&!eE(i)){u=Gu(e,t,!1),d=!1;continue}if(u===2){if(d=t,e.errorRecoveryDisabledLanes&d)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){t=y;e:{var v=e;u=ir;var w=v.current.memoizedState.isDehydrated;if(w&&(ll(v,y).flags|=256),y=Gu(v,y,!1),y!==2){if(zu&&!w){v.errorRecoveryDisabledLanes|=d,Sa|=d,u=4;break e}d=cn,cn=u,d!==null&&(cn===null?cn=d:cn.push.apply(cn,d))}u=y}if(d=!1,u!==2)continue}}if(u===1){ll(e,0),Ki(e,t,0,!0);break}e:{switch(r=e,d=u,d){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Ki(r,t,xn,!Fi);break e;case 2:cn=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(u=xo+300-yt(),10<u)){if(Ki(r,t,xn,!Fi),C(r,0,!0)!==0)break e;vi=t,r.timeoutHandle=Ah(Qp.bind(null,r,i,cn,No,Iu,t,xn,Sa,il,Fi,d,"Throttled",-0,0),u);break e}Qp(r,i,cn,No,Iu,t,xn,Sa,il,Fi,d,null,-0,0)}}break}while(!0);$n(e)}function Qp(e,t,i,r,u,d,y,v,w,q,V,Q,F,G){if(e.timeoutHandle=-1,Q=t.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:se},Gp(t,d,Q);var pe=(d&62914560)===d?xo-yt():(d&4194048)===d?Vp-yt():0;if(pe=UE(Q,pe),pe!==null){vi=d,e.cancelPendingCommit=pe(ah.bind(null,e,t,d,i,r,u,y,v,w,V,Q,null,F,G)),Ki(e,d,y,!q);return}}ah(e,t,d,i,r,u,y,v,w)}function eE(e){for(var t=e;;){var i=t.tag;if((i===0||i===11||i===15)&&t.flags&16384&&(i=t.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var r=0;r<i.length;r++){var u=i[r],d=u.getSnapshot;u=u.value;try{if(!yn(d(),u))return!1}catch{return!1}}if(i=t.child,t.subtreeFlags&16384&&i!==null)i.return=t,t=i;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 Ki(e,t,i,r){t&=~Bu,t&=~Sa,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var u=t;0<u;){var d=31-We(u),y=1<<d;r[d]=-1,u&=~y}i!==0&&de(e,i,t)}function Ao(){return($e&6)===0?(lr(0),!1):!0}function Fu(){if(Ue!==null){if(nt===0)var e=Ue.return;else e=Ue,ci=pa=null,iu(e),Za=null,Fl=0,e=Ue;for(;e!==null;)wp(e.alternate,e),e=e.return;Ue=null}}function ll(e,t){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,_E(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),vi=0,Fu(),ut=e,Ue=i=si(e.current,null),Ge=t,nt=0,Sn=null,Fi=!1,nl=P(e,t),zu=!1,il=xn=Bu=Sa=Gi=St=0,cn=ir=null,Iu=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var u=31-We(r),d=1<<u;t|=e[u],r&=~d}return _i=t,Vr(),i}function $p(e,t){Re=null,z.H=Zl,t===Pa||t===eo?(t=pd(),nt=3):t===Ks?(t=pd(),nt=4):nt=t===Eu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Sn=t,Ue===null&&(St=1,mo(e,On(t,e.current)))}function Jp(){var e=_n.current;return e===null?!0:(Ge&4194048)===Ge?Ln===null:(Ge&62914560)===Ge||(Ge&536870912)!==0?e===Ln:!1}function Wp(){var e=z.H;return z.H=Zl,e===null?Zl:e}function eh(){var e=z.A;return z.A=Jy,e}function wo(){St=4,Fi||(Ge&4194048)!==Ge&&_n.current!==null||(nl=!0),(Gi&134217727)===0&&(Sa&134217727)===0||ut===null||Ki(ut,Ge,xn,!1)}function Gu(e,t,i){var r=$e;$e|=2;var u=Wp(),d=eh();(ut!==e||Ge!==t)&&(No=null,ll(e,t)),t=!1;var y=St;e:do try{if(nt!==0&&Ue!==null){var v=Ue,w=Sn;switch(nt){case 8:Fu(),y=6;break e;case 3:case 2:case 9:case 6:_n.current===null&&(t=!0);var q=nt;if(nt=0,Sn=null,rl(e,v,w,q),i&&nl){y=0;break e}break;default:q=nt,nt=0,Sn=null,rl(e,v,w,q)}}tE(),y=St;break}catch(V){$p(e,V)}while(!0);return t&&e.shellSuspendCounter++,ci=pa=null,$e=r,z.H=u,z.A=d,Ue===null&&(ut=null,Ge=0,Vr()),y}function tE(){for(;Ue!==null;)th(Ue)}function nE(e,t){var i=$e;$e|=2;var r=Wp(),u=eh();ut!==e||Ge!==t?(No=null,To=yt()+500,ll(e,t)):nl=P(e,t);e:do try{if(nt!==0&&Ue!==null){t=Ue;var d=Sn;t:switch(nt){case 1:nt=0,Sn=null,rl(e,t,d,1);break;case 2:case 9:if(fd(d)){nt=0,Sn=null,nh(t);break}t=function(){nt!==2&&nt!==9||ut!==e||(nt=7),$n(e)},d.then(t,t);break e;case 3:nt=7;break e;case 4:nt=5;break e;case 7:fd(d)?(nt=0,Sn=null,nh(t)):(nt=0,Sn=null,rl(e,t,d,7));break;case 5:var y=null;switch(Ue.tag){case 26:y=Ue.memoizedState;case 5:case 27:var v=Ue;if(y?Fh(y):v.stateNode.complete){nt=0,Sn=null;var w=v.sibling;if(w!==null)Ue=w;else{var q=v.return;q!==null?(Ue=q,ko(q)):Ue=null}break t}}nt=0,Sn=null,rl(e,t,d,5);break;case 6:nt=0,Sn=null,rl(e,t,d,6);break;case 8:Fu(),St=6;break e;default:throw Error(o(462))}}iE();break}catch(V){$p(e,V)}while(!0);return ci=pa=null,z.H=r,z.A=u,$e=i,Ue!==null?0:(ut=null,Ge=0,Vr(),St)}function iE(){for(;Ue!==null&&!vl();)th(Ue)}function th(e){var t=Np(e.alternate,e,_i);e.memoizedProps=e.pendingProps,t===null?ko(e):Ue=t}function nh(e){var t=e,i=t.alternate;switch(t.tag){case 15:case 0:t=Ep(i,t,t.pendingProps,t.type,void 0,Ge);break;case 11:t=Ep(i,t,t.pendingProps,t.type.render,t.ref,Ge);break;case 5:iu(t);default:wp(i,t),t=Ue=ed(t,_i),t=Np(i,t,_i)}e.memoizedProps=e.pendingProps,t===null?ko(e):Ue=t}function rl(e,t,i,r){ci=pa=null,iu(t),Za=null,Fl=0;var u=t.return;try{if(Ky(e,u,t,i,Ge)){St=1,mo(e,On(i,e.current)),Ue=null;return}}catch(d){if(u!==null)throw Ue=u,d;St=1,mo(e,On(i,e.current)),Ue=null;return}t.flags&32768?(Ke||r===1?e=!0:nl||(Ge&536870912)!==0?e=!1:(Fi=e=!0,(r===2||r===9||r===3||r===6)&&(r=_n.current,r!==null&&r.tag===13&&(r.flags|=16384))),ih(t,e)):ko(t)}function ko(e){var t=e;do{if((t.flags&32768)!==0){ih(t,Fi);return}e=t.return;var i=Py(t.alternate,t,_i);if(i!==null){Ue=i;return}if(t=t.sibling,t!==null){Ue=t;return}Ue=t=e}while(t!==null);St===0&&(St=5)}function ih(e,t){do{var i=Zy(e.alternate,e);if(i!==null){i.flags&=32767,Ue=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!t&&(e=e.sibling,e!==null)){Ue=e;return}Ue=e=i}while(e!==null);St=6,Ue=null}function ah(e,t,i,r,u,d,y,v,w){e.cancelPendingCommit=null;do Co();while(Bt!==0);if(($e&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(d=t.lanes|t.childLanes,d|=Os,he(e,i,d,y,v,w),e===ut&&(Ue=ut=null,Ge=0),al=t,Yi=e,vi=i,Uu=d,Hu=u,Xp=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,oE(Te,function(){return uh(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=z.T,z.T=null,u=J.p,J.p=2,y=$e,$e|=4;try{Qy(e,t,i)}finally{$e=y,J.p=u,z.T=r}}Bt=1,lh(),rh(),oh()}}function lh(){if(Bt===1){Bt=0;var e=Yi,t=al,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=z.T,z.T=null;var r=J.p;J.p=2;var u=$e;$e|=4;try{Hp(t,e);var d=ec,y=Kf(e.containerInfo),v=d.focusedElem,w=d.selectionRange;if(y!==v&&v&&v.ownerDocument&&Yf(v.ownerDocument.documentElement,v)){if(w!==null&&Ns(v)){var q=w.start,V=w.end;if(V===void 0&&(V=q),"selectionStart"in v)v.selectionStart=q,v.selectionEnd=Math.min(V,v.value.length);else{var Q=v.ownerDocument||document,F=Q&&Q.defaultView||window;if(F.getSelection){var G=F.getSelection(),pe=v.textContent.length,Ne=Math.min(w.start,pe),rt=w.end===void 0?Ne:Math.min(w.end,pe);!G.extend&&Ne>rt&&(y=rt,rt=Ne,Ne=y);var D=jf(v,Ne),M=jf(v,rt);if(D&&M&&(G.rangeCount!==1||G.anchorNode!==D.node||G.anchorOffset!==D.offset||G.focusNode!==M.node||G.focusOffset!==M.offset)){var H=Q.createRange();H.setStart(D.node,D.offset),G.removeAllRanges(),Ne>rt?(G.addRange(H),G.extend(M.node,M.offset)):(H.setEnd(M.node,M.offset),G.addRange(H))}}}}for(Q=[],G=v;G=G.parentNode;)G.nodeType===1&&Q.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<Q.length;v++){var Z=Q[v];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}Fo=!!Wu,ec=Wu=null}finally{$e=u,J.p=r,z.T=i}}e.current=t,Bt=2}}function rh(){if(Bt===2){Bt=0;var e=Yi,t=al,i=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||i){i=z.T,z.T=null;var r=J.p;J.p=2;var u=$e;$e|=4;try{Lp(e,t.alternate,t)}finally{$e=u,J.p=r,z.T=i}}Bt=3}}function oh(){if(Bt===4||Bt===3){Bt=0,wa();var e=Yi,t=al,i=vi,r=Xp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Bt=5:(Bt=0,al=Yi=null,sh(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(ji=null),ii(i),t=t.stateNode,_t&&typeof _t.onCommitFiberRoot=="function")try{_t.onCommitFiberRoot(Ut,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=z.T,u=J.p,J.p=2,z.T=null;try{for(var d=e.onRecoverableError,y=0;y<r.length;y++){var v=r[y];d(v.value,{componentStack:v.stack})}}finally{z.T=t,J.p=u}}(vi&3)!==0&&Co(),$n(e),u=e.pendingLanes,(i&261930)!==0&&(u&42)!==0?e===qu?ar++:(ar=0,qu=e):ar=0,lr(0)}}function sh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Hl(t)))}function Co(){return lh(),rh(),oh(),uh()}function uh(){if(Bt!==5)return!1;var e=Yi,t=Uu;Uu=0;var i=ii(vi),r=z.T,u=J.p;try{J.p=32>i?32:i,z.T=null,i=Hu,Hu=null;var d=Yi,y=vi;if(Bt=0,al=Yi=null,vi=0,($e&6)!==0)throw Error(o(331));var v=$e;if($e|=4,Yp(d.current),Fp(d,d.current,y,i),$e=v,lr(0,!1),_t&&typeof _t.onPostCommitFiberRoot=="function")try{_t.onPostCommitFiberRoot(Ut,d)}catch{}return!0}finally{J.p=u,z.T=r,sh(e,t)}}function ch(e,t,i){t=On(i,t),t=yu(e.stateNode,t,2),e=Ii(e,t,2),e!==null&&(st(e,2),$n(e))}function it(e,t,i){if(e.tag===3)ch(e,e,i);else for(;t!==null;){if(t.tag===3){ch(t,e,i);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ji===null||!ji.has(r))){e=On(i,e),i=fp(2),r=Ii(t,i,2),r!==null&&(dp(i,r,t,e),st(r,2),$n(r));break}}t=t.return}}function ju(e,t,i){var r=e.pingCache;if(r===null){r=e.pingCache=new Wy;var u=new Set;r.set(t,u)}else u=r.get(t),u===void 0&&(u=new Set,r.set(t,u));u.has(i)||(zu=!0,u.add(i),e=aE.bind(null,e,t,i),t.then(e,e))}function aE(e,t,i){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,ut===e&&(Ge&i)===i&&(St===4||St===3&&(Ge&62914560)===Ge&&300>yt()-xo?($e&2)===0&&ll(e,0):Bu|=i,il===Ge&&(il=0)),$n(e)}function fh(e,t){t===0&&(t=Ce()),e=ca(e,t),e!==null&&(st(e,t),$n(e))}function lE(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),fh(e,i)}function rE(e,t){var i=0;switch(e.tag){case 31:case 13:var r=e.stateNode,u=e.memoizedState;u!==null&&(i=u.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(o(314))}r!==null&&r.delete(t),fh(e,i)}function oE(e,t){return ni(e,t)}var Oo=null,ol=null,Yu=!1,Mo=!1,Ku=!1,Vi=0;function $n(e){e!==ol&&e.next===null&&(ol===null?Oo=ol=e:ol=ol.next=e),Mo=!0,Yu||(Yu=!0,uE())}function lr(e,t){if(!Ku&&Mo){Ku=!0;do for(var i=!1,r=Oo;r!==null;){if(e!==0){var u=r.pendingLanes;if(u===0)var d=0;else{var y=r.suspendedLanes,v=r.pingedLanes;d=(1<<31-We(42|e)+1)-1,d&=u&~(y&~v),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(i=!0,mh(r,d))}else d=Ge,d=C(r,r===ut?d:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(d&3)===0||P(r,d)||(i=!0,mh(r,d));r=r.next}while(i);Ku=!1}}function sE(){dh()}function dh(){Mo=Yu=!1;var e=0;Vi!==0&&EE()&&(e=Vi);for(var t=yt(),i=null,r=Oo;r!==null;){var u=r.next,d=ph(r,t);d===0?(r.next=null,i===null?Oo=u:i.next=u,u===null&&(ol=i)):(i=r,(e!==0||(d&3)!==0)&&(Mo=!0)),r=u}Bt!==0&&Bt!==5||lr(e),Vi!==0&&(Vi=0)}function ph(e,t){for(var i=e.suspendedLanes,r=e.pingedLanes,u=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var y=31-We(d),v=1<<y,w=u[y];w===-1?((v&i)===0||(v&r)!==0)&&(u[y]=fe(v,t)):w<=t&&(e.expiredLanes|=v),d&=~v}if(t=ut,i=Ge,i=C(e,e===t?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,i===0||e===t&&(nt===2||nt===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&ta(r),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||P(e,i)){if(t=i&-i,t===e.callbackPriority)return t;switch(r!==null&&ta(r),ii(i)){case 2:case 8:i=le;break;case 32:i=Te;break;case 268435456:i=Xe;break;default:i=Te}return r=hh.bind(null,e),i=ni(i,r),e.callbackPriority=t,e.callbackNode=i,t}return r!==null&&r!==null&&ta(r),e.callbackPriority=2,e.callbackNode=null,2}function hh(e,t){if(Bt!==0&&Bt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(Co()&&e.callbackNode!==i)return null;var r=Ge;return r=C(e,e===ut?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Zp(e,r,t),ph(e,yt()),e.callbackNode!=null&&e.callbackNode===i?hh.bind(null,e):null)}function mh(e,t){if(Co())return null;Zp(e,t,!0)}function uE(){vE(function(){($e&6)!==0?ni(K,sE):dh()})}function Vu(){if(Vi===0){var e=Va;e===0&&(e=na,na<<=1,(na&261888)===0&&(na=256)),Vi=e}return Vi}function gh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ci(""+e)}function bh(e,t){var i=t.ownerDocument.createElement("input");return i.name=t.name,i.value=t.value,e.id&&i.setAttribute("form",e.id),t.parentNode.insertBefore(i,t),e=new FormData(e),i.parentNode.removeChild(i),e}function cE(e,t,i,r,u){if(t==="submit"&&i&&i.stateNode===u){var d=gh((u[Kt]||null).action),y=r.submitter;y&&(t=(t=y[Kt]||null)?gh(t.formAction):y.getAttribute("formAction"),t!==null&&(d=t,y=null));var v=new Gr("action","action",null,r,u);e.push({event:v,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Vi!==0){var w=y?bh(u,y):new FormData(u);du(i,{pending:!0,data:w,method:u.method,action:d},null,w)}}else typeof d=="function"&&(v.preventDefault(),w=y?bh(u,y):new FormData(u),du(i,{pending:!0,data:w,method:u.method,action:d},d,w))},currentTarget:u}]})}}for(var Xu=0;Xu<Cs.length;Xu++){var Pu=Cs[Xu],fE=Pu.toLowerCase(),dE=Pu[0].toUpperCase()+Pu.slice(1);qn(fE,"on"+dE)}qn(Pf,"onAnimationEnd"),qn(Zf,"onAnimationIteration"),qn(Qf,"onAnimationStart"),qn("dblclick","onDoubleClick"),qn("focusin","onFocus"),qn("focusout","onBlur"),qn(ky,"onTransitionRun"),qn(Cy,"onTransitionStart"),qn(Oy,"onTransitionCancel"),qn($f,"onTransitionEnd"),te("onMouseEnter",["mouseout","mouseover"]),te("onMouseLeave",["mouseout","mouseover"]),te("onPointerEnter",["pointerout","pointerover"]),te("onPointerLeave",["pointerout","pointerover"]),li("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),li("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),li("onBeforeInput",["compositionend","keypress","textInput","paste"]),li("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),li("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),li("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var rr="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(" "),pE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(rr));function yh(e,t){t=(t&4)!==0;for(var i=0;i<e.length;i++){var r=e[i],u=r.event;r=r.listeners;e:{var d=void 0;if(t)for(var y=r.length-1;0<=y;y--){var v=r[y],w=v.instance,q=v.currentTarget;if(v=v.listener,w!==d&&u.isPropagationStopped())break e;d=v,u.currentTarget=q;try{d(u)}catch(V){Kr(V)}u.currentTarget=null,d=w}else for(y=0;y<r.length;y++){if(v=r[y],w=v.instance,q=v.currentTarget,v=v.listener,w!==d&&u.isPropagationStopped())break e;d=v,u.currentTarget=q;try{d(u)}catch(V){Kr(V)}u.currentTarget=null,d=w}}}}function He(e,t){var i=t[Sl];i===void 0&&(i=t[Sl]=new Set);var r=e+"__bubble";i.has(r)||(Eh(t,e,2,!1),i.add(r))}function Zu(e,t,i){var r=0;t&&(r|=4),Eh(i,e,r,t)}var Ro="_reactListening"+Math.random().toString(36).slice(2);function Qu(e){if(!e[Ro]){e[Ro]=!0,Lr.forEach(function(i){i!=="selectionchange"&&(pE.has(i)||Zu(i,!1,e),Zu(i,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ro]||(t[Ro]=!0,Zu("selectionchange",!1,t))}}function Eh(e,t,i,r){switch(Ph(t)){case 2:var u=FE;break;case 8:u=GE;break;default:u=fc}i=u.bind(null,t,i,e),u=void 0,!gs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),r?u!==void 0?e.addEventListener(t,i,{capture:!0,passive:u}):e.addEventListener(t,i,!0):u!==void 0?e.addEventListener(t,i,{passive:u}):e.addEventListener(t,i,!1)}function $u(e,t,i,r,u){var d=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var y=r.tag;if(y===3||y===4){var v=r.stateNode.containerInfo;if(v===u)break;if(y===4)for(y=r.return;y!==null;){var w=y.tag;if((w===3||w===4)&&y.stateNode.containerInfo===u)return;y=y.return}for(;v!==null;){if(y=Jt(v),y===null)return;if(w=y.tag,w===5||w===6||w===26||w===27){r=d=y;continue e}v=v.parentNode}}r=r.return}Ur(function(){var q=d,V=Me(i),Q=[];e:{var F=Jf.get(e);if(F!==void 0){var G=Gr,pe=e;switch(e){case"keypress":if(qr(i)===0)break e;case"keydown":case"keyup":G=ry;break;case"focusin":pe="focus",G=_s;break;case"focusout":pe="blur",G=_s;break;case"beforeblur":case"afterblur":G=_s;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=wf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=Pb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=uy;break;case Pf:case Zf:case Qf:G=$b;break;case $f:G=fy;break;case"scroll":case"scrollend":G=Vb;break;case"wheel":G=py;break;case"copy":case"cut":case"paste":G=Wb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=Cf;break;case"toggle":case"beforetoggle":G=my}var Ne=(t&4)!==0,rt=!Ne&&(e==="scroll"||e==="scrollend"),D=Ne?F!==null?F+"Capture":null:F;Ne=[];for(var M=q,H;M!==null;){var Z=M;if(H=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||H===null||D===null||(Z=kl(M,D),Z!=null&&Ne.push(or(M,Z,H))),rt)break;M=M.return}0<Ne.length&&(F=new G(F,pe,null,i,V),Q.push({event:F,listeners:Ne}))}}if((t&7)===0){e:{if(F=e==="mouseover"||e==="pointerover",G=e==="mouseout"||e==="pointerout",F&&i!==ge&&(pe=i.relatedTarget||i.fromElement)&&(Jt(pe)||pe[Ni]))break e;if((G||F)&&(F=V.window===V?V:(F=V.ownerDocument)?F.defaultView||F.parentWindow:window,G?(pe=i.relatedTarget||i.toElement,G=q,pe=pe?Jt(pe):null,pe!==null&&(rt=f(pe),Ne=pe.tag,pe!==rt||Ne!==5&&Ne!==27&&Ne!==6)&&(pe=null)):(G=null,pe=q),G!==pe)){if(Ne=wf,Z="onMouseLeave",D="onMouseEnter",M="mouse",(e==="pointerout"||e==="pointerover")&&(Ne=Cf,Z="onPointerLeave",D="onPointerEnter",M="pointer"),rt=G==null?F:Ai(G),H=pe==null?F:Ai(pe),F=new Ne(Z,M+"leave",G,i,V),F.target=rt,F.relatedTarget=H,Z=null,Jt(V)===q&&(Ne=new Ne(D,M+"enter",pe,i,V),Ne.target=H,Ne.relatedTarget=rt,Z=Ne),rt=Z,G&&pe)t:{for(Ne=hE,D=G,M=pe,H=0,Z=D;Z;Z=Ne(Z))H++;Z=0;for(var ve=M;ve;ve=Ne(ve))Z++;for(;0<H-Z;)D=Ne(D),H--;for(;0<Z-H;)M=Ne(M),Z--;for(;H--;){if(D===M||M!==null&&D===M.alternate){Ne=D;break t}D=Ne(D),M=Ne(M)}Ne=null}else Ne=null;G!==null&&_h(Q,F,G,Ne,!1),pe!==null&&rt!==null&&_h(Q,rt,pe,Ne,!0)}}e:{if(F=q?Ai(q):window,G=F.nodeName&&F.nodeName.toLowerCase(),G==="select"||G==="input"&&F.type==="file")var Pe=If;else if(zf(F))if(Uf)Pe=Ny;else{Pe=xy;var be=Sy}else G=F.nodeName,!G||G.toLowerCase()!=="input"||F.type!=="checkbox"&&F.type!=="radio"?q&&ki(q.elementType)&&(Pe=If):Pe=Ty;if(Pe&&(Pe=Pe(e,q))){Bf(Q,Pe,i,V);break e}be&&be(e,F,q),e==="focusout"&&q&&F.type==="number"&&q.memoizedProps.value!=null&&za(F,"number",F.value)}switch(be=q?Ai(q):window,e){case"focusin":(zf(be)||be.contentEditable==="true")&&(Ua=be,As=q,Bl=null);break;case"focusout":Bl=As=Ua=null;break;case"mousedown":ws=!0;break;case"contextmenu":case"mouseup":case"dragend":ws=!1,Vf(Q,i,V);break;case"selectionchange":if(wy)break;case"keydown":case"keyup":Vf(Q,i,V)}var De;if(Ss)e:{switch(e){case"compositionstart":var je="onCompositionStart";break e;case"compositionend":je="onCompositionEnd";break e;case"compositionupdate":je="onCompositionUpdate";break e}je=void 0}else Ia?Df(e,i)&&(je="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(je="onCompositionStart");je&&(Of&&i.locale!=="ko"&&(Ia||je!=="onCompositionStart"?je==="onCompositionEnd"&&Ia&&(De=Nf()):(Oi=V,bs="value"in Oi?Oi.value:Oi.textContent,Ia=!0)),be=Do(q,je),0<be.length&&(je=new kf(je,e,null,i,V),Q.push({event:je,listeners:be}),De?je.data=De:(De=Lf(i),De!==null&&(je.data=De)))),(De=by?yy(e,i):Ey(e,i))&&(je=Do(q,"onBeforeInput"),0<je.length&&(be=new kf("onBeforeInput","beforeinput",null,i,V),Q.push({event:be,listeners:je}),be.data=De)),cE(Q,e,q,i,V)}yh(Q,t)})}function or(e,t,i){return{instance:e,listener:t,currentTarget:i}}function Do(e,t){for(var i=t+"Capture",r=[];e!==null;){var u=e,d=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||d===null||(u=kl(e,i),u!=null&&r.unshift(or(e,u,d)),u=kl(e,t),u!=null&&r.push(or(e,u,d))),e.tag===3)return r;e=e.return}return[]}function hE(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function _h(e,t,i,r,u){for(var d=t._reactName,y=[];i!==null&&i!==r;){var v=i,w=v.alternate,q=v.stateNode;if(v=v.tag,w!==null&&w===r)break;v!==5&&v!==26&&v!==27||q===null||(w=q,u?(q=kl(i,d),q!=null&&y.unshift(or(i,q,w))):u||(q=kl(i,d),q!=null&&y.push(or(i,q,w)))),i=i.return}y.length!==0&&e.push({event:t,listeners:y})}var mE=/\r\n?/g,gE=/\u0000|\uFFFD/g;function vh(e){return(typeof e=="string"?e:""+e).replace(mE,`
49
- `).replace(gE,"")}function Sh(e,t){return t=vh(t),vh(e)===t}function lt(e,t,i,r,u,d){switch(i){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Ae(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Ae(e,""+r);break;case"className":gn(e,"class",r);break;case"tabIndex":gn(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":gn(e,i,r);break;case"style":tt(e,r,d);break;case"data":if(t!=="object"){gn(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||i!=="href")){e.removeAttribute(i);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(i);break}r=Ci(""+r),e.setAttribute(i,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(i,"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 d=="function"&&(i==="formAction"?(t!=="input"&&lt(e,t,"name",u.name,u,null),lt(e,t,"formEncType",u.formEncType,u,null),lt(e,t,"formMethod",u.formMethod,u,null),lt(e,t,"formTarget",u.formTarget,u,null)):(lt(e,t,"encType",u.encType,u,null),lt(e,t,"method",u.method,u,null),lt(e,t,"target",u.target,u,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(i);break}r=Ci(""+r),e.setAttribute(i,r);break;case"onClick":r!=null&&(e.onclick=se);break;case"onScroll":r!=null&&He("scroll",e);break;case"onScrollEnd":r!=null&&He("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(o(61));if(i=r.__html,i!=null){if(u.children!=null)throw Error(o(60));e.innerHTML=i}}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}i=Ci(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);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(i,""+r):e.removeAttribute(i);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(i,""):e.removeAttribute(i);break;case"capture":case"download":r===!0?e.setAttribute(i,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(i,r):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(i,r):e.removeAttribute(i);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(i):e.setAttribute(i,r);break;case"popover":He("beforetoggle",e),He("toggle",e),Vt(e,"popover",r);break;case"xlinkActuate":an(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":an(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":an(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":an(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":an(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":an(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":an(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":an(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":an(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Vt(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=ri.get(i)||i,Vt(e,i,r))}}function Ju(e,t,i,r,u,d){switch(i){case"style":tt(e,r,d);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(o(61));if(i=r.__html,i!=null){if(u.children!=null)throw Error(o(60));e.innerHTML=i}}break;case"children":typeof r=="string"?Ae(e,r):(typeof r=="number"||typeof r=="bigint")&&Ae(e,""+r);break;case"onScroll":r!=null&&He("scroll",e);break;case"onScrollEnd":r!=null&&He("scrollend",e);break;case"onClick":r!=null&&(e.onclick=se);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!la.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(u=i.endsWith("Capture"),t=i.slice(2,u?i.length-7:void 0),d=e[Kt]||null,d=d!=null?d[i]:null,typeof d=="function"&&e.removeEventListener(t,d,u),typeof r=="function")){typeof d!="function"&&d!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(t,r,u);break e}i in e?e[i]=r:r===!0?e.setAttribute(i,""):Vt(e,i,r)}}}function jt(e,t,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":He("error",e),He("load",e);var r=!1,u=!1,d;for(d in i)if(i.hasOwnProperty(d)){var y=i[d];if(y!=null)switch(d){case"src":r=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:lt(e,t,d,y,i,null)}}u&&lt(e,t,"srcSet",i.srcSet,i,null),r&&lt(e,t,"src",i.src,i,null);return;case"input":He("invalid",e);var v=d=y=u=null,w=null,q=null;for(r in i)if(i.hasOwnProperty(r)){var V=i[r];if(V!=null)switch(r){case"name":u=V;break;case"type":y=V;break;case"checked":w=V;break;case"defaultChecked":q=V;break;case"value":d=V;break;case"defaultValue":v=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(o(137,t));break;default:lt(e,t,r,V,i,null)}}ra(e,d,v,w,q,y,u,!1);return;case"select":He("invalid",e),r=y=d=null;for(u in i)if(i.hasOwnProperty(u)&&(v=i[u],v!=null))switch(u){case"value":d=v;break;case"defaultValue":y=v;break;case"multiple":r=v;default:lt(e,t,u,v,i,null)}t=d,i=y,e.multiple=!!r,t!=null?Ht(e,!!r,t,!1):i!=null&&Ht(e,!!r,i,!0);return;case"textarea":He("invalid",e),d=u=r=null;for(y in i)if(i.hasOwnProperty(y)&&(v=i[y],v!=null))switch(y){case"value":r=v;break;case"defaultValue":u=v;break;case"children":d=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(o(91));break;default:lt(e,t,y,v,i,null)}Ba(e,r,u,d);return;case"option":for(w in i)if(i.hasOwnProperty(w)&&(r=i[w],r!=null))switch(w){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:lt(e,t,w,r,i,null)}return;case"dialog":He("beforetoggle",e),He("toggle",e),He("cancel",e),He("close",e);break;case"iframe":case"object":He("load",e);break;case"video":case"audio":for(r=0;r<rr.length;r++)He(rr[r],e);break;case"image":He("error",e),He("load",e);break;case"details":He("toggle",e);break;case"embed":case"source":case"link":He("error",e),He("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(q in i)if(i.hasOwnProperty(q)&&(r=i[q],r!=null))switch(q){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:lt(e,t,q,r,i,null)}return;default:if(ki(t)){for(V in i)i.hasOwnProperty(V)&&(r=i[V],r!==void 0&&Ju(e,t,V,r,i,void 0));return}}for(v in i)i.hasOwnProperty(v)&&(r=i[v],r!=null&&lt(e,t,v,r,i,null))}function bE(e,t,i,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,d=null,y=null,v=null,w=null,q=null,V=null;for(G in i){var Q=i[G];if(i.hasOwnProperty(G)&&Q!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":w=Q;default:r.hasOwnProperty(G)||lt(e,t,G,null,r,Q)}}for(var F in r){var G=r[F];if(Q=i[F],r.hasOwnProperty(F)&&(G!=null||Q!=null))switch(F){case"type":d=G;break;case"name":u=G;break;case"checked":q=G;break;case"defaultChecked":V=G;break;case"value":y=G;break;case"defaultValue":v=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(o(137,t));break;default:G!==Q&&lt(e,t,F,G,r,Q)}}Nl(e,y,v,w,q,V,d,u);return;case"select":G=y=v=F=null;for(d in i)if(w=i[d],i.hasOwnProperty(d)&&w!=null)switch(d){case"value":break;case"multiple":G=w;default:r.hasOwnProperty(d)||lt(e,t,d,null,r,w)}for(u in r)if(d=r[u],w=i[u],r.hasOwnProperty(u)&&(d!=null||w!=null))switch(u){case"value":F=d;break;case"defaultValue":v=d;break;case"multiple":y=d;default:d!==w&&lt(e,t,u,d,r,w)}t=v,i=y,r=G,F!=null?Ht(e,!!i,F,!1):!!r!=!!i&&(t!=null?Ht(e,!!i,t,!0):Ht(e,!!i,i?[]:"",!1));return;case"textarea":G=F=null;for(v in i)if(u=i[v],i.hasOwnProperty(v)&&u!=null&&!r.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:lt(e,t,v,null,r,u)}for(y in r)if(u=r[y],d=i[y],r.hasOwnProperty(y)&&(u!=null||d!=null))switch(y){case"value":F=u;break;case"defaultValue":G=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(o(91));break;default:u!==d&&lt(e,t,y,u,r,d)}Br(e,F,G);return;case"option":for(var pe in i)if(F=i[pe],i.hasOwnProperty(pe)&&F!=null&&!r.hasOwnProperty(pe))switch(pe){case"selected":e.selected=!1;break;default:lt(e,t,pe,null,r,F)}for(w in r)if(F=r[w],G=i[w],r.hasOwnProperty(w)&&F!==G&&(F!=null||G!=null))switch(w){case"selected":e.selected=F&&typeof F!="function"&&typeof F!="symbol";break;default:lt(e,t,w,F,r,G)}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 Ne in i)F=i[Ne],i.hasOwnProperty(Ne)&&F!=null&&!r.hasOwnProperty(Ne)&&lt(e,t,Ne,null,r,F);for(q in r)if(F=r[q],G=i[q],r.hasOwnProperty(q)&&F!==G&&(F!=null||G!=null))switch(q){case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(o(137,t));break;default:lt(e,t,q,F,r,G)}return;default:if(ki(t)){for(var rt in i)F=i[rt],i.hasOwnProperty(rt)&&F!==void 0&&!r.hasOwnProperty(rt)&&Ju(e,t,rt,void 0,r,F);for(V in r)F=r[V],G=i[V],!r.hasOwnProperty(V)||F===G||F===void 0&&G===void 0||Ju(e,t,V,F,r,G);return}}for(var D in i)F=i[D],i.hasOwnProperty(D)&&F!=null&&!r.hasOwnProperty(D)&&lt(e,t,D,null,r,F);for(Q in r)F=r[Q],G=i[Q],!r.hasOwnProperty(Q)||F===G||F==null&&G==null||lt(e,t,Q,F,r,G)}function xh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function yE(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,i=performance.getEntriesByType("resource"),r=0;r<i.length;r++){var u=i[r],d=u.transferSize,y=u.initiatorType,v=u.duration;if(d&&v&&xh(y)){for(y=0,v=u.responseEnd,r+=1;r<i.length;r++){var w=i[r],q=w.startTime;if(q>v)break;var V=w.transferSize,Q=w.initiatorType;V&&xh(Q)&&(w=w.responseEnd,y+=V*(w<v?1:(v-q)/(w-q)))}if(--r,t+=8*(d+y)/(u.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 Wu=null,ec=null;function Lo(e){return e.nodeType===9?e:e.ownerDocument}function Th(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 Nh(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 tc(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 nc=null;function EE(){var e=window.event;return e&&e.type==="popstate"?e===nc?!1:(nc=e,!0):(nc=null,!1)}var Ah=typeof setTimeout=="function"?setTimeout:void 0,_E=typeof clearTimeout=="function"?clearTimeout:void 0,wh=typeof Promise=="function"?Promise:void 0,vE=typeof queueMicrotask=="function"?queueMicrotask:typeof wh<"u"?function(e){return wh.resolve(null).then(e).catch(SE)}:Ah;function SE(e){setTimeout(function(){throw e})}function Xi(e){return e==="head"}function kh(e,t){var i=t,r=0;do{var u=i.nextSibling;if(e.removeChild(i),u&&u.nodeType===8)if(i=u.data,i==="/$"||i==="/&"){if(r===0){e.removeChild(u),fl(t);return}r--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")r++;else if(i==="html")sr(e.ownerDocument.documentElement);else if(i==="head"){i=e.ownerDocument.head,sr(i);for(var d=i.firstChild;d;){var y=d.nextSibling,v=d.nodeName;d[aa]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&d.rel.toLowerCase()==="stylesheet"||i.removeChild(d),d=y}}else i==="body"&&sr(e.ownerDocument.body);i=u}while(i);fl(t)}function Ch(e,t){var i=e;e=0;do{var r=i.nextSibling;if(i.nodeType===1?t?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(t?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),r&&r.nodeType===8)if(i=r.data,i==="/$"){if(e===0)break;e--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||e++;i=r}while(i)}function ic(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var i=t;switch(t=t.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":ic(i),xl(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function xE(e,t,i,r){for(;e.nodeType===1;){var u=i;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[aa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var d=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=zn(e.nextSibling),e===null)break}return null}function TE(e,t,i){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=zn(e.nextSibling),e===null))return null;return e}function Oh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=zn(e.nextSibling),e===null))return null;return e}function ac(e){return e.data==="$?"||e.data==="$~"}function lc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function NE(e,t){var i=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||i.readyState!=="loading")t();else{var r=function(){t(),i.removeEventListener("DOMContentLoaded",r)};i.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function zn(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 rc=null;function Mh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"||i==="/&"){if(t===0)return zn(e.nextSibling);t--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||t++}e=e.nextSibling}return null}function Rh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(t===0)return e;t--}else i!=="/$"&&i!=="/&"||t++}e=e.previousSibling}return null}function Dh(e,t,i){switch(t=Lo(i),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function sr(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);xl(e)}var Bn=new Map,Lh=new Set;function zo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Si=J.d;J.d={f:AE,r:wE,D:kE,C:CE,L:OE,m:ME,X:DE,S:RE,M:LE};function AE(){var e=Si.f(),t=Ao();return e||t}function wE(e){var t=ai(e);t!==null&&t.tag===5&&t.type==="form"?$d(t):Si.r(e)}var sl=typeof document>"u"?null:document;function zh(e,t,i){var r=sl;if(r&&typeof t=="string"&&t){var u=ln(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof i=="string"&&(u+='[crossorigin="'+i+'"]'),Lh.has(u)||(Lh.add(u),e={rel:e,crossOrigin:i,href:t},r.querySelector(u)===null&&(t=r.createElement("link"),jt(t,"link",e),kt(t),r.head.appendChild(t)))}}function kE(e){Si.D(e),zh("dns-prefetch",e,null)}function CE(e,t){Si.C(e,t),zh("preconnect",e,t)}function OE(e,t,i){Si.L(e,t,i);var r=sl;if(r&&e&&t){var u='link[rel="preload"][as="'+ln(t)+'"]';t==="image"&&i&&i.imageSrcSet?(u+='[imagesrcset="'+ln(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(u+='[imagesizes="'+ln(i.imageSizes)+'"]')):u+='[href="'+ln(e)+'"]';var d=u;switch(t){case"style":d=ul(e);break;case"script":d=cl(e)}Bn.has(d)||(e=g({rel:"preload",href:t==="image"&&i&&i.imageSrcSet?void 0:e,as:t},i),Bn.set(d,e),r.querySelector(u)!==null||t==="style"&&r.querySelector(ur(d))||t==="script"&&r.querySelector(cr(d))||(t=r.createElement("link"),jt(t,"link",e),kt(t),r.head.appendChild(t)))}}function ME(e,t){Si.m(e,t);var i=sl;if(i&&e){var r=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+ln(r)+'"][href="'+ln(e)+'"]',d=u;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=cl(e)}if(!Bn.has(d)&&(e=g({rel:"modulepreload",href:e},t),Bn.set(d,e),i.querySelector(u)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(cr(d)))return}r=i.createElement("link"),jt(r,"link",e),kt(r),i.head.appendChild(r)}}}function RE(e,t,i){Si.S(e,t,i);var r=sl;if(r&&e){var u=wi(r).hoistableStyles,d=ul(e);t=t||"default";var y=u.get(d);if(!y){var v={loading:0,preload:null};if(y=r.querySelector(ur(d)))v.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},i),(i=Bn.get(d))&&oc(e,i);var w=y=r.createElement("link");kt(w),jt(w,"link",e),w._p=new Promise(function(q,V){w.onload=q,w.onerror=V}),w.addEventListener("load",function(){v.loading|=1}),w.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Bo(y,t,r)}y={type:"stylesheet",instance:y,count:1,state:v},u.set(d,y)}}}function DE(e,t){Si.X(e,t);var i=sl;if(i&&e){var r=wi(i).hoistableScripts,u=cl(e),d=r.get(u);d||(d=i.querySelector(cr(u)),d||(e=g({src:e,async:!0},t),(t=Bn.get(u))&&sc(e,t),d=i.createElement("script"),kt(d),jt(d,"link",e),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},r.set(u,d))}}function LE(e,t){Si.M(e,t);var i=sl;if(i&&e){var r=wi(i).hoistableScripts,u=cl(e),d=r.get(u);d||(d=i.querySelector(cr(u)),d||(e=g({src:e,async:!0,type:"module"},t),(t=Bn.get(u))&&sc(e,t),d=i.createElement("script"),kt(d),jt(d,"link",e),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},r.set(u,d))}}function Bh(e,t,i,r){var u=(u=me.current)?zo(u):null;if(!u)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(t=ul(i.href),i=wi(u).hoistableStyles,r=i.get(t),r||(r={type:"style",instance:null,count:0,state:null},i.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=ul(i.href);var d=wi(u).hoistableStyles,y=d.get(e);if(y||(u=u.ownerDocument||u,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,y),(d=u.querySelector(ur(e)))&&!d._p&&(y.instance=d,y.state.loading=5),Bn.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Bn.set(e,i),d||zE(u,e,i,y.state))),t&&r===null)throw Error(o(528,""));return y}if(t&&r!==null)throw Error(o(529,""));return null;case"script":return t=i.async,i=i.src,typeof i=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=cl(i),i=wi(u).hoistableScripts,r=i.get(t),r||(r={type:"script",instance:null,count:0,state:null},i.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function ul(e){return'href="'+ln(e)+'"'}function ur(e){return'link[rel="stylesheet"]['+e+"]"}function Ih(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function zE(e,t,i,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}),jt(t,"link",i),kt(t),e.head.appendChild(t))}function cl(e){return'[src="'+ln(e)+'"]'}function cr(e){return"script[async]"+e}function Uh(e,t,i){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+ln(i.href)+'"]');if(r)return t.instance=r,kt(r),r;var u=g({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),kt(r),jt(r,"style",u),Bo(r,i.precedence,e),t.instance=r;case"stylesheet":u=ul(i.href);var d=e.querySelector(ur(u));if(d)return t.state.loading|=4,t.instance=d,kt(d),d;r=Ih(i),(u=Bn.get(u))&&oc(r,u),d=(e.ownerDocument||e).createElement("link"),kt(d);var y=d;return y._p=new Promise(function(v,w){y.onload=v,y.onerror=w}),jt(d,"link",r),t.state.loading|=4,Bo(d,i.precedence,e),t.instance=d;case"script":return d=cl(i.src),(u=e.querySelector(cr(d)))?(t.instance=u,kt(u),u):(r=i,(u=Bn.get(d))&&(r=g({},i),sc(r,u)),e=e.ownerDocument||e,u=e.createElement("script"),kt(u),jt(u,"link",r),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,Bo(r,i.precedence,e));return t.instance}function Bo(e,t,i){for(var r=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=r.length?r[r.length-1]:null,d=u,y=0;y<r.length;y++){var v=r[y];if(v.dataset.precedence===t)d=v;else if(d!==u)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=i.nodeType===9?i.head:i,t.insertBefore(e,t.firstChild))}function oc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function sc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Io=null;function Hh(e,t,i){if(Io===null){var r=new Map,u=Io=new Map;u.set(i,r)}else u=Io,r=u.get(i),r||(r=new Map,u.set(i,r));if(r.has(e))return r;for(r.set(e,null),i=i.getElementsByTagName(e),u=0;u<i.length;u++){var d=i[u];if(!(d[aa]||d[Tt]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var y=d.getAttribute(t)||"";y=e+y;var v=r.get(y);v?v.push(d):r.set(y,[d])}}return r}function qh(e,t,i){e=e.ownerDocument||e,e.head.insertBefore(i,t==="title"?e.querySelector("head > title"):null)}function BE(e,t,i){if(i===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 Fh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function IE(e,t,i,r){if(i.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var u=ul(r.href),d=t.querySelector(ur(u));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Uo.bind(e),t.then(e,e)),i.state.loading|=4,i.instance=d,kt(d);return}d=t.ownerDocument||t,r=Ih(r),(u=Bn.get(u))&&oc(r,u),d=d.createElement("link"),kt(d);var y=d;y._p=new Promise(function(v,w){y.onload=v,y.onerror=w}),jt(d,"link",r),i.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,t),(t=i.state.preload)&&(i.state.loading&3)===0&&(e.count++,i=Uo.bind(e),t.addEventListener("load",i),t.addEventListener("error",i))}}var uc=0;function UE(e,t){return e.stylesheets&&e.count===0&&qo(e,e.stylesheets),0<e.count||0<e.imgCount?function(i){var r=setTimeout(function(){if(e.stylesheets&&qo(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4+t);0<e.imgBytes&&uc===0&&(uc=62500*yE());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&qo(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>uc?50:800)+t);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(u)}}:null}function Uo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)qo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ho=null;function qo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ho=new Map,t.forEach(HE,e),Ho=null,Uo.call(e))}function HE(e,t){if(!(t.state.loading&4)){var i=Ho.get(e);if(i)var r=i.get(null);else{i=new Map,Ho.set(e,i);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<u.length;d++){var y=u[d];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(i.set(y.dataset.precedence,y),r=y)}r&&i.set(null,r)}u=t.instance,y=u.getAttribute("data-precedence"),d=i.get(y)||r,d===r&&i.set(null,u),i.set(y,u),this.count++,r=Uo.bind(this),u.addEventListener("load",r),u.addEventListener("error",r),d?d.parentNode.insertBefore(u,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var fr={$$typeof:I,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function qE(e,t,i,r,u,d,y,v,w){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=pt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pt(0),this.hiddenUpdates=pt(null),this.identifierPrefix=r,this.onUncaughtError=u,this.onCaughtError=d,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function Gh(e,t,i,r,u,d,y,v,w,q,V,Q){return e=new qE(e,t,i,y,w,q,V,Q,v),t=1,d===!0&&(t|=24),d=En(3,null,null,t),e.current=d,d.stateNode=e,t=Gs(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:r,isDehydrated:i,cache:t},Vs(d),e}function jh(e){return e?(e=Fa,e):Fa}function Yh(e,t,i,r,u,d){u=jh(u),r.context===null?r.context=u:r.pendingContext=u,r=Bi(t),r.payload={element:i},d=d===void 0?null:d,d!==null&&(r.callback=d),i=Ii(e,r,t),i!==null&&(fn(i,e,t),jl(i,e,t))}function Kh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<t?i:t}}function cc(e,t){Kh(e,t),(e=e.alternate)&&Kh(e,t)}function Vh(e){if(e.tag===13||e.tag===31){var t=ca(e,67108864);t!==null&&fn(t,e,67108864),cc(e,67108864)}}function Xh(e){if(e.tag===13||e.tag===31){var t=Tn();t=gt(t);var i=ca(e,t);i!==null&&fn(i,e,t),cc(e,t)}}var Fo=!0;function FE(e,t,i,r){var u=z.T;z.T=null;var d=J.p;try{J.p=2,fc(e,t,i,r)}finally{J.p=d,z.T=u}}function GE(e,t,i,r){var u=z.T;z.T=null;var d=J.p;try{J.p=8,fc(e,t,i,r)}finally{J.p=d,z.T=u}}function fc(e,t,i,r){if(Fo){var u=dc(r);if(u===null)$u(e,t,r,Go,i),Zh(e,r);else if(YE(u,e,t,i,r))r.stopPropagation();else if(Zh(e,r),t&4&&-1<jE.indexOf(e)){for(;u!==null;){var d=ai(u);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var y=nn(d.pendingLanes);if(y!==0){var v=d;for(v.pendingLanes|=2,v.entangledLanes|=2;y;){var w=1<<31-We(y);v.entanglements[1]|=w,y&=~w}$n(d),($e&6)===0&&(To=yt()+500,lr(0))}}break;case 31:case 13:v=ca(d,2),v!==null&&fn(v,d,2),Ao(),cc(d,2)}if(d=dc(r),d===null&&$u(e,t,r,Go,i),d===u)break;u=d}u!==null&&r.stopPropagation()}else $u(e,t,r,null,i)}}function dc(e){return e=Me(e),pc(e)}var Go=null;function pc(e){if(Go=null,e=Jt(e),e!==null){var t=f(e);if(t===null)e=null;else{var i=t.tag;if(i===13){if(e=c(t),e!==null)return e;e=null}else if(i===31){if(e=p(t),e!==null)return e;e=null}else if(i===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Go=e,null}function Ph(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(ka()){case K:return 2;case le:return 8;case Te:case Be:return 32;case Xe:return 268435456;default:return 32}default:return 32}}var hc=!1,Pi=null,Zi=null,Qi=null,dr=new Map,pr=new Map,$i=[],jE="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 Zh(e,t){switch(e){case"focusin":case"focusout":Pi=null;break;case"dragenter":case"dragleave":Zi=null;break;case"mouseover":case"mouseout":Qi=null;break;case"pointerover":case"pointerout":dr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":pr.delete(t.pointerId)}}function hr(e,t,i,r,u,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:i,eventSystemFlags:r,nativeEvent:d,targetContainers:[u]},t!==null&&(t=ai(t),t!==null&&Vh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function YE(e,t,i,r,u){switch(t){case"focusin":return Pi=hr(Pi,e,t,i,r,u),!0;case"dragenter":return Zi=hr(Zi,e,t,i,r,u),!0;case"mouseover":return Qi=hr(Qi,e,t,i,r,u),!0;case"pointerover":var d=u.pointerId;return dr.set(d,hr(dr.get(d)||null,e,t,i,r,u)),!0;case"gotpointercapture":return d=u.pointerId,pr.set(d,hr(pr.get(d)||null,e,t,i,r,u)),!0}return!1}function Qh(e){var t=Jt(e.target);if(t!==null){var i=f(t);if(i!==null){if(t=i.tag,t===13){if(t=c(i),t!==null){e.blockedOn=t,Ma(e.priority,function(){Xh(i)});return}}else if(t===31){if(t=p(i),t!==null){e.blockedOn=t,Ma(e.priority,function(){Xh(i)});return}}else if(t===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function jo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var i=dc(e.nativeEvent);if(i===null){i=e.nativeEvent;var r=new i.constructor(i.type,i);ge=r,i.target.dispatchEvent(r),ge=null}else return t=ai(i),t!==null&&Vh(t),e.blockedOn=i,!1;t.shift()}return!0}function $h(e,t,i){jo(e)&&i.delete(t)}function KE(){hc=!1,Pi!==null&&jo(Pi)&&(Pi=null),Zi!==null&&jo(Zi)&&(Zi=null),Qi!==null&&jo(Qi)&&(Qi=null),dr.forEach($h),pr.forEach($h)}function Yo(e,t){e.blockedOn===t&&(e.blockedOn=null,hc||(hc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,KE)))}var Ko=null;function Jh(e){Ko!==e&&(Ko=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Ko===e&&(Ko=null);for(var t=0;t<e.length;t+=3){var i=e[t],r=e[t+1],u=e[t+2];if(typeof r!="function"){if(pc(r||i)===null)continue;break}var d=ai(i);d!==null&&(e.splice(t,3),t-=3,du(d,{pending:!0,data:u,method:i.method,action:r},r,u))}}))}function fl(e){function t(w){return Yo(w,e)}Pi!==null&&Yo(Pi,e),Zi!==null&&Yo(Zi,e),Qi!==null&&Yo(Qi,e),dr.forEach(t),pr.forEach(t);for(var i=0;i<$i.length;i++){var r=$i[i];r.blockedOn===e&&(r.blockedOn=null)}for(;0<$i.length&&(i=$i[0],i.blockedOn===null);)Qh(i),i.blockedOn===null&&$i.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(r=0;r<i.length;r+=3){var u=i[r],d=i[r+1],y=u[Kt]||null;if(typeof d=="function")y||Jh(i);else if(y){var v=null;if(d&&d.hasAttribute("formAction")){if(u=d,y=d[Kt]||null)v=y.formAction;else if(pc(u)!==null)continue}else v=y.action;typeof v=="function"?i[r+1]=v:(i.splice(r,3),r-=3),Jh(i)}}}function Wh(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(y){return u=y})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),r||setTimeout(i,20)}function i(){if(!r&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(i,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function mc(e){this._internalRoot=e}Vo.prototype.render=mc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var i=t.current,r=Tn();Yh(i,r,e,t,null,null)},Vo.prototype.unmount=mc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Yh(e.current,2,null,e,null,null),Ao(),t[Ni]=null}};function Vo(e){this._internalRoot=e}Vo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Oa();e={blockedOn:null,target:e,priority:t};for(var i=0;i<$i.length&&t!==0&&t<$i[i].priority;i++);$i.splice(i,0,e),i===0&&Qh(e)}};var em=a.version;if(em!=="19.2.0")throw Error(o(527,em,"19.2.0"));J.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=h(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var VE={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Xo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xo.isDisabled&&Xo.supportsFiber)try{Ut=Xo.inject(VE),_t=Xo}catch{}}return gr.createRoot=function(e,t){if(!s(e))throw Error(o(299));var i=!1,r="",u=op,d=sp,y=up;return t!=null&&(t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(y=t.onRecoverableError)),t=Gh(e,1,!1,null,null,i,r,null,u,d,y,Wh),e[Ni]=t.current,Qu(e),new mc(t)},gr.hydrateRoot=function(e,t,i){if(!s(e))throw Error(o(299));var r=!1,u="",d=op,y=sp,v=up,w=null;return i!=null&&(i.unstable_strictMode===!0&&(r=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onUncaughtError!==void 0&&(d=i.onUncaughtError),i.onCaughtError!==void 0&&(y=i.onCaughtError),i.onRecoverableError!==void 0&&(v=i.onRecoverableError),i.formState!==void 0&&(w=i.formState)),t=Gh(e,1,!0,t,i??null,r,u,w,d,y,v,Wh),t.context=jh(null),i=t.current,r=Tn(),r=gt(r),u=Bi(r),u.callback=null,Ii(i,u,r),i=r,t.current.lanes=i,st(t,i),$n(t),e[Ni]=t.current,Qu(e),new Vo(t)},gr.version="19.2.0",gr}var cm;function n_(){if(cm)return yc.exports;cm=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),yc.exports=t_(),yc.exports}var i_=n_();const a_="/api/files",l_=()=>{const[n,a]=Se.useState([]),[l,o]=Se.useState(!0),[s,f]=Se.useState(null);return Se.useEffect(()=>{(async()=>{try{const p=await fetch(a_);if(!p.ok)throw new Error(`API request failed: ${p.status}`);const m=await p.json();a(m.files||[])}catch(p){f(p instanceof Error?p:new Error("Unknown error"))}finally{o(!1)}})()},[]),{files:n,loading:l,error:s}},fm="/api/markdown",hg=n=>{const[a,l]=Se.useState(null),[o,s]=Se.useState(null),[f,c]=Se.useState(!0),[p,m]=Se.useState(null),[h,b]=Se.useState(0),g=Se.useCallback(()=>{b(_=>_+1)},[]);return Se.useEffect(()=>{(async()=>{if(n===null){c(!1);return}c(!0),m(null);try{const E=n===void 0?fm:`${fm}/${n}`,x=await fetch(E);if(!x.ok)throw new Error(`API request failed: ${x.status}`);const O=await x.json();l(O.content),s(O.filename)}catch(E){m(E instanceof Error?E:new Error("Unknown error")),l(null),s(null)}finally{c(!1)}})()},[n,h]),{content:a,filename:o,loading:f,error:p,reload:g}};function r_(n,a){const[l,o]=Se.useState(()=>{try{const s=window.localStorage.getItem(n);if(!s)return a;const f=JSON.parse(s);return typeof f!="object"||f===null?(console.warn(`Invalid localStorage data for key: ${n}, resetting`),a):f}catch(s){return console.error("Error reading localStorage:",s),a}});return Se.useEffect(()=>{try{window.localStorage.setItem(n,JSON.stringify(l))}catch(s){console.error("Error writing to localStorage:",s)}},[n,l]),[l,o]}const mg=({initialWidth:n,minWidth:a,maxWidth:l,storageKey:o,direction:s="left",collapsible:f=!1,collapseThreshold:c=100})=>{const[p,m]=Se.useState(()=>{if(o){const A=localStorage.getItem(o);if(A){const B=parseInt(A,10);if(!isNaN(B)&&B>=a&&B<=l)return B}}return n}),[h,b]=Se.useState(!1),[g,_]=Se.useState(!1),E=Se.useRef(0),x=Se.useRef(0),O=Se.useCallback(A=>{A.preventDefault(),_(!0),E.current=A.clientX,x.current=p},[p]);Se.useEffect(()=>{if(!g)return;const A=I=>{const $=I.clientX-E.current,X=s==="right"?-$:$,N=x.current+X;if(f&&N<c)b(!0),m(a);else{b(!1);const Y=Math.min(l,Math.max(a,N));m(Y)}},B=()=>{_(!1),o&&!h&&localStorage.setItem(o,p.toString())};return document.addEventListener("mousemove",A),document.addEventListener("mouseup",B),()=>{document.removeEventListener("mousemove",A),document.removeEventListener("mouseup",B)}},[g,l,a,o,p,s,f,c,h]);const R=Se.useCallback(()=>{b(A=>!A)},[]);return{width:p,isResizing:g,isCollapsed:h,handleMouseDown:O,toggleCollapse:R}},gg=(n,a)=>{Se.useEffect(()=>{const l=new EventSource("/api/watch");return l.onmessage=o=>{try{const s=JSON.parse(o.data);s.type==="file-changed"&&s.path?n(s.path):s.type==="file-added"&&s.path}catch(s){console.error("[FileWatch] Error parsing message:",s)}},l.onerror=o=>{console.error("[FileWatch] Connection error:",o)},()=>{l.close()}},[n,a])},bg=()=>window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",Sc=n=>n==="system"?bg():n,yg=()=>{const[n,a]=Se.useState(()=>localStorage.getItem("md-review-theme")||"system");Se.useEffect(()=>{const f=document.documentElement;Sc(n)==="dark"?f.classList.add("dark-mode"):f.classList.remove("dark-mode")},[n]),Se.useEffect(()=>{if(n!=="system")return;const f=window.matchMedia("(prefers-color-scheme: dark)"),c=()=>{const p=document.documentElement;bg()==="dark"?p.classList.add("dark-mode"):p.classList.remove("dark-mode")};return f.addEventListener("change",c),()=>f.removeEventListener("change",c)},[n]);const l=()=>{a(f=>{const p=Sc(f)==="light"?"dark":"light";return localStorage.setItem("md-review-theme",p),p})},o=()=>{localStorage.removeItem("md-review-theme"),a("system")},s=Sc(n);return{theme:n,effectiveTheme:s,toggleTheme:l,resetToSystem:o,isDark:s==="dark",isSystem:n==="system"}},Eg=()=>{const{isDark:n,toggleTheme:a}=yg();return L.jsx("button",{className:"theme-toggle",onClick:a,title:n?"Switch to light mode":"Switch to dark mode","aria-label":n?"Switch to light mode":"Switch to dark mode",children:n?L.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[L.jsx("circle",{cx:"10",cy:"10",r:"4",stroke:"currentColor",strokeWidth:"1.5"}),L.jsx("path",{d:"M10 2v2M10 16v2M18 10h-2M4 10H2M15.657 4.343l-1.414 1.414M5.757 14.243l-1.414 1.414M15.657 15.657l-1.414-1.414M5.757 5.757L4.343 4.343",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}):L.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:L.jsx("path",{d:"M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})};function o_(n){const a={name:"root",children:new Map,isFile:!1};for(const l of n){const o=l.path.split("/");let s=a;for(let f=0;f<o.length;f++){const c=o[f],p=f===o.length-1;s.children.has(c)||s.children.set(c,{name:c,path:p?l.path:void 0,children:new Map,isFile:p}),s=s.children.get(c)}}return a}function jc({node:n,selectedFile:a,onFileSelect:l,level:o=0}){const[s,f]=Se.useState(o===0||o===1);if(n.isFile)return L.jsxs("div",{className:`tree-item file ${a===n.path?"selected":""}`,style:{paddingLeft:`${o*12+8}px`},onClick:()=>n.path&&l(n.path),children:[L.jsx("span",{className:"file-icon",children:"📄"}),L.jsx("span",{className:"file-name",children:n.name})]});const c=Array.from(n.children.entries()).sort((p,m)=>!p[1].isFile&&m[1].isFile?-1:p[1].isFile&&!m[1].isFile?1:p[0].localeCompare(m[0]));return n.name==="root"?L.jsx(L.Fragment,{children:c.map(([,p])=>L.jsx(jc,{node:p,selectedFile:a,onFileSelect:l,level:0},p.path||p.name))}):L.jsxs("div",{children:[L.jsxs("div",{className:"tree-item directory",style:{paddingLeft:`${o*12+8}px`},onClick:()=>f(!s),children:[L.jsx("svg",{className:"chevron-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",style:{transform:s?"rotate(90deg)":"rotate(0deg)"},children:L.jsx("path",{d:"M6 4L10 8L6 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),L.jsx("span",{className:"folder-icon",children:"📁"}),L.jsx("span",{className:"folder-name",children:n.name})]}),s&&L.jsx("div",{className:"tree-children",children:c.map(([,p])=>L.jsx(jc,{node:p,selectedFile:a,onFileSelect:l,level:o+1},p.path||p.name))})]})}const s_=({files:n,selectedFile:a,onFileSelect:l,onToggleSidebar:o,autoFocusSearch:s})=>{const[f,c]=Se.useState(""),p=Se.useRef(null),m=f?n.filter(b=>b.name.toLowerCase().includes(f.toLowerCase())||b.path.toLowerCase().includes(f.toLowerCase())):n,h=o_(m);return Se.useEffect(()=>{var b;s&&((b=p.current)==null||b.focus())},[s]),Se.useEffect(()=>{const b=g=>{var _;g.metaKey&&g.key==="k"&&(g.preventDefault(),(_=p.current)==null||_.focus())};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[]),L.jsxs("div",{className:"file-tree",children:[L.jsxs("div",{className:"file-tree-header",children:[L.jsxs("div",{className:"file-tree-header-content",children:[L.jsx("h3",{children:"Files"}),L.jsxs("span",{className:"file-count",children:[m.length," of ",n.length," files"]})]}),L.jsxs("div",{className:"file-tree-header-actions",children:[L.jsx(Eg,{}),o&&L.jsx("button",{className:"sidebar-collapse-button",onClick:o,"aria-label":"Collapse sidebar",title:"Collapse sidebar",children:L.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:L.jsx("path",{d:"M12 4L6 10L12 16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]}),L.jsx("div",{className:"search-container",children:L.jsxs("div",{className:"search-input-wrapper",children:[L.jsx("span",{className:"search-icon",children:"🔍"}),L.jsx("input",{ref:p,type:"text",className:"search-input",placeholder:"Jump to...",value:f,onChange:b=>c(b.target.value)}),f&&L.jsx("button",{className:"search-clear",onClick:()=>c(""),"aria-label":"Clear search",children:"✕"}),L.jsx("kbd",{className:"search-shortcut",children:"⌘K"})]})}),L.jsx("div",{className:"file-tree-content",children:L.jsx(jc,{node:h,selectedFile:a,onFileSelect:l})}),L.jsx("div",{className:"file-tree-footer",children:L.jsx("a",{href:"https://github.com/ryo-manba/md-review",target:"_blank",rel:"noopener noreferrer",className:"github-link","aria-label":"View on GitHub",title:"View on GitHub",children:L.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:L.jsx("path",{d:"M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z"})})})})]})};function u_(n,a){const l={};return(n[n.length-1]===""?[...n,""]:n).join((l.padRight?" ":"")+","+(l.padLeft===!1?"":" ")).trim()}const c_=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,f_=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,d_={};function dm(n,a){return(d_.jsx?f_:c_).test(n)}const p_=/[ \t\n\f\r]/g;function h_(n){return typeof n=="object"?n.type==="text"?pm(n.value):!1:pm(n)}function pm(n){return n.replace(p_,"")===""}class wr{constructor(a,l,o){this.normal=l,this.property=a,o&&(this.space=o)}}wr.prototype.normal={};wr.prototype.property={};wr.prototype.space=void 0;function _g(n,a){const l={},o={};for(const s of n)Object.assign(l,s.property),Object.assign(o,s.normal);return new wr(l,o,a)}function Yc(n){return n.toLowerCase()}class pn{constructor(a,l){this.attribute=l,this.property=a}}pn.prototype.attribute="";pn.prototype.booleanish=!1;pn.prototype.boolean=!1;pn.prototype.commaOrSpaceSeparated=!1;pn.prototype.commaSeparated=!1;pn.prototype.defined=!1;pn.prototype.mustUseProperty=!1;pn.prototype.number=!1;pn.prototype.overloadedBoolean=!1;pn.prototype.property="";pn.prototype.spaceSeparated=!1;pn.prototype.space=void 0;let m_=0;const Le=Na(),Lt=Na(),Kc=Na(),ie=Na(),dt=Na(),bl=Na(),Nn=Na();function Na(){return 2**++m_}const Vc=Object.freeze(Object.defineProperty({__proto__:null,boolean:Le,booleanish:Lt,commaOrSpaceSeparated:Nn,commaSeparated:bl,number:ie,overloadedBoolean:Kc,spaceSeparated:dt},Symbol.toStringTag,{value:"Module"})),xc=Object.keys(Vc);class rf extends pn{constructor(a,l,o,s){let f=-1;if(super(a,l),hm(this,"space",s),typeof o=="number")for(;++f<xc.length;){const c=xc[f];hm(this,xc[f],(o&Vc[c])===Vc[c])}}}rf.prototype.defined=!0;function hm(n,a,l){l&&(n[a]=l)}function El(n){const a={},l={};for(const[o,s]of Object.entries(n.properties)){const f=new rf(o,n.transform(n.attributes||{},o),s,n.space);n.mustUseProperty&&n.mustUseProperty.includes(o)&&(f.mustUseProperty=!0),a[o]=f,l[Yc(o)]=o,l[Yc(f.attribute)]=o}return new wr(a,l,n.space)}const vg=El({properties:{ariaActiveDescendant:null,ariaAtomic:Lt,ariaAutoComplete:null,ariaBusy:Lt,ariaChecked:Lt,ariaColCount:ie,ariaColIndex:ie,ariaColSpan:ie,ariaControls:dt,ariaCurrent:null,ariaDescribedBy:dt,ariaDetails:null,ariaDisabled:Lt,ariaDropEffect:dt,ariaErrorMessage:null,ariaExpanded:Lt,ariaFlowTo:dt,ariaGrabbed:Lt,ariaHasPopup:null,ariaHidden:Lt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:dt,ariaLevel:ie,ariaLive:null,ariaModal:Lt,ariaMultiLine:Lt,ariaMultiSelectable:Lt,ariaOrientation:null,ariaOwns:dt,ariaPlaceholder:null,ariaPosInSet:ie,ariaPressed:Lt,ariaReadOnly:Lt,ariaRelevant:null,ariaRequired:Lt,ariaRoleDescription:dt,ariaRowCount:ie,ariaRowIndex:ie,ariaRowSpan:ie,ariaSelected:Lt,ariaSetSize:ie,ariaSort:null,ariaValueMax:ie,ariaValueMin:ie,ariaValueNow:ie,ariaValueText:null,role:null},transform(n,a){return a==="role"?a:"aria-"+a.slice(4).toLowerCase()}});function Sg(n,a){return a in n?n[a]:a}function xg(n,a){return Sg(n,a.toLowerCase())}const g_=El({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:bl,acceptCharset:dt,accessKey:dt,action:null,allow:null,allowFullScreen:Le,allowPaymentRequest:Le,allowUserMedia:Le,alt:null,as:null,async:Le,autoCapitalize:null,autoComplete:dt,autoFocus:Le,autoPlay:Le,blocking:dt,capture:null,charSet:null,checked:Le,cite:null,className:dt,cols:ie,colSpan:null,content:null,contentEditable:Lt,controls:Le,controlsList:dt,coords:ie|bl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Le,defer:Le,dir:null,dirName:null,disabled:Le,download:Kc,draggable:Lt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Le,formTarget:null,headers:dt,height:ie,hidden:Kc,high:ie,href:null,hrefLang:null,htmlFor:dt,httpEquiv:dt,id:null,imageSizes:null,imageSrcSet:null,inert:Le,inputMode:null,integrity:null,is:null,isMap:Le,itemId:null,itemProp:dt,itemRef:dt,itemScope:Le,itemType:dt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Le,low:ie,manifest:null,max:null,maxLength:ie,media:null,method:null,min:null,minLength:ie,multiple:Le,muted:Le,name:null,nonce:null,noModule:Le,noValidate:Le,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:Le,optimum:ie,pattern:null,ping:dt,placeholder:null,playsInline:Le,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Le,referrerPolicy:null,rel:dt,required:Le,reversed:Le,rows:ie,rowSpan:ie,sandbox:dt,scope:null,scoped:Le,seamless:Le,selected:Le,shadowRootClonable:Le,shadowRootDelegatesFocus:Le,shadowRootMode:null,shape:null,size:ie,sizes:null,slot:null,span:ie,spellCheck:Lt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ie,step:null,style:null,tabIndex:ie,target:null,title:null,translate:null,type:null,typeMustMatch:Le,useMap:null,value:Lt,width:ie,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:dt,axis:null,background:null,bgColor:null,border:ie,borderColor:null,bottomMargin:ie,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Le,declare:Le,event:null,face:null,frame:null,frameBorder:null,hSpace:ie,leftMargin:ie,link:null,longDesc:null,lowSrc:null,marginHeight:ie,marginWidth:ie,noResize:Le,noHref:Le,noShade:Le,noWrap:Le,object:null,profile:null,prompt:null,rev:null,rightMargin:ie,rules:null,scheme:null,scrolling:Lt,standby:null,summary:null,text:null,topMargin:ie,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ie,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Le,disableRemotePlayback:Le,prefix:null,property:null,results:ie,security:null,unselectable:null},space:"html",transform:xg}),b_=El({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:Nn,accentHeight:ie,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ie,amplitude:ie,arabicForm:null,ascent:ie,attributeName:null,attributeType:null,azimuth:ie,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ie,by:null,calcMode:null,capHeight:ie,className:dt,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:ie,diffuseConstant:ie,direction:null,display:null,dur:null,divisor:ie,dominantBaseline:null,download:Le,dx:null,dy:null,edgeMode:null,editable:null,elevation:ie,enableBackground:null,end:null,event:null,exponent:ie,externalResourcesRequired:null,fill:null,fillOpacity:ie,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:bl,g2:bl,glyphName:bl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ie,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ie,horizOriginX:ie,horizOriginY:ie,id:null,ideographic:ie,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ie,k:ie,k1:ie,k2:ie,k3:ie,k4:ie,kernelMatrix:Nn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ie,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:ie,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:ie,overlineThickness:ie,paintOrder:null,panose1:null,path:null,pathLength:ie,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:dt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ie,pointsAtY:ie,pointsAtZ:ie,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Nn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Nn,rev:Nn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Nn,requiredFeatures:Nn,requiredFonts:Nn,requiredFormats:Nn,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:ie,specularExponent:ie,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ie,strikethroughThickness:ie,string:null,stroke:null,strokeDashArray:Nn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ie,strokeOpacity:ie,strokeWidth:null,style:null,surfaceScale:ie,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Nn,tabIndex:ie,tableValues:null,target:null,targetX:ie,targetY:ie,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Nn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ie,underlineThickness:ie,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ie,values:null,vAlphabetic:ie,vMathematical:ie,vectorEffect:null,vHanging:ie,vIdeographic:ie,version:null,vertAdvY:ie,vertOriginX:ie,vertOriginY:ie,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ie,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Sg}),Tg=El({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,a){return"xlink:"+a.slice(5).toLowerCase()}}),Ng=El({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:xg}),Ag=El({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,a){return"xml:"+a.slice(3).toLowerCase()}}),y_={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"},E_=/[A-Z]/g,mm=/-[a-z]/g,__=/^data[-\w.:]+$/i;function v_(n,a){const l=Yc(a);let o=a,s=pn;if(l in n.normal)return n.property[n.normal[l]];if(l.length>4&&l.slice(0,4)==="data"&&__.test(a)){if(a.charAt(4)==="-"){const f=a.slice(5).replace(mm,x_);o="data"+f.charAt(0).toUpperCase()+f.slice(1)}else{const f=a.slice(4);if(!mm.test(f)){let c=f.replace(E_,S_);c.charAt(0)!=="-"&&(c="-"+c),a="data"+c}}s=rf}return new s(o,a)}function S_(n){return"-"+n.toLowerCase()}function x_(n){return n.charAt(1).toUpperCase()}const T_=_g([vg,g_,Tg,Ng,Ag],"html"),of=_g([vg,b_,Tg,Ng,Ag],"svg");function N_(n){return n.join(" ").trim()}var dl={},Tc,gm;function A_(){if(gm)return Tc;gm=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a=/\n/g,l=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,f=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,p=/^\s+|\s+$/g,m=`
48
+ `+r.stack}}var Kn=Object.prototype.hasOwnProperty,ni=n.unstable_scheduleCallback,ta=n.unstable_cancelCallback,vl=n.unstable_shouldYield,wa=n.unstable_requestPaint,yt=n.unstable_now,ka=n.unstable_getCurrentPriorityLevel,K=n.unstable_ImmediatePriority,le=n.unstable_UserBlockingPriority,Te=n.unstable_NormalPriority,Be=n.unstable_LowPriority,Xe=n.unstable_IdlePriority,Qt=n.log,Hn=n.unstable_setDisableYieldValue,Ut=null,_t=null;function Yt(e){if(typeof Qt=="function"&&Hn(e),_t&&typeof _t.setStrictMode=="function")try{_t.setStrictMode(Ut,e)}catch{}}var We=Math.clz32?Math.clz32:Mr,Vn=Math.log,$t=Math.LN2;function Mr(e){return e>>>=0,e===0?32:31-(Vn(e)/$t|0)|0}var na=256,Ca=262144,ia=4194304;function nn(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 C(e,t,i){var r=e.pendingLanes;if(r===0)return 0;var u=0,d=e.suspendedLanes,y=e.pingedLanes;e=e.warmLanes;var v=r&134217727;return v!==0?(r=v&~d,r!==0?u=nn(r):(y&=v,y!==0?u=nn(y):i||(i=v&~e,i!==0&&(u=nn(i))))):(v=r&~d,v!==0?u=nn(v):y!==0?u=nn(y):i||(i=r&~e,i!==0&&(u=nn(i)))),u===0?0:t!==0&&t!==u&&(t&d)===0&&(d=u&-u,i=t&-t,d>=i||d===32&&(i&4194048)!==0)?t:u}function P(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function fe(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 Ce(){var e=ia;return ia<<=1,(ia&62914560)===0&&(ia=4194304),e}function pt(e){for(var t=[],i=0;31>i;i++)t.push(e);return t}function st(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function he(e,t,i,r,u,d){var y=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var v=e.entanglements,w=e.expirationTimes,q=e.hiddenUpdates;for(i=y&~i;0<i;){var V=31-We(i),Q=1<<V;v[V]=0,w[V]=-1;var F=q[V];if(F!==null)for(q[V]=null,V=0;V<F.length;V++){var G=F[V];G!==null&&(G.lane&=-536870913)}i&=~Q}r!==0&&de(e,r,0),d!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=d&~(y&~t))}function de(e,t,i){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-We(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|i&261930}function ke(e,t){var i=e.entangledLanes|=t;for(e=e.entanglements;i;){var r=31-We(i),u=1<<r;u&t|e[r]&t&&(e[r]|=t),i&=~u}}function xt(e,t){var i=t&-t;return i=(i&42)!==0?1:gt(i),(i&(e.suspendedLanes|t))!==0?0:i}function gt(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 ii(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Oa(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:Ph(e.type))}function Ma(e,t){var i=J.p;try{return J.p=e,t()}finally{J.p=i}}var Xn=Math.random().toString(36).slice(2),Tt="__reactFiber$"+Xn,Kt="__reactProps$"+Xn,Ni="__reactContainer$"+Xn,Sl="__reactEvents$"+Xn,Rr="__reactListeners$"+Xn,Ra="__reactHandles$"+Xn,Dr="__reactResources$"+Xn,aa="__reactMarker$"+Xn;function xl(e){delete e[Tt],delete e[Kt],delete e[Sl],delete e[Rr],delete e[Ra]}function Jt(e){var t=e[Tt];if(t)return t;for(var i=e.parentNode;i;){if(t=i[Ni]||i[Tt]){if(i=t.alternate,t.child!==null||i!==null&&i.child!==null)for(e=Rh(e);e!==null;){if(i=e[Tt])return i;e=Rh(e)}return t}e=i,i=e.parentNode}return null}function ai(e){if(e=e[Tt]||e[Ni]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ai(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function wi(e){var t=e[Dr];return t||(t=e[Dr]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function kt(e){e[aa]=!0}var Lr=new Set,la={};function li(e,t){te(e,t),te(e+"Capture",t)}function te(e,t){for(la[e]=t,e=0;e<t.length;e++)Lr.add(t[e])}var Ee=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]*$"),Ie={},et={};function Nt(e){return Kn.call(et,e)?!0:Kn.call(Ie,e)?!1:Ee.test(e)?et[e]=!0:(Ie[e]=!0,!1)}function Vt(e,t,i){if(Nt(t))if(i===null)e.removeAttribute(t);else{switch(typeof i){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,""+i)}}function gn(e,t,i){if(i===null)e.removeAttribute(t);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+i)}}function an(e,t,i,r){if(r===null)e.removeAttribute(i);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(t,i,""+r)}}function ft(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bn(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function zr(e,t,i){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var u=r.get,d=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(y){i=""+y,d.call(this,y)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return i},setValue:function(y){i=""+y},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Da(e){if(!e._valueTracker){var t=bn(e)?"checked":"value";e._valueTracker=zr(e,t,""+e[t])}}function Tl(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var i=t.getValue(),r="";return e&&(r=bn(e)?e.checked?"true":"false":e.value),e=r,e!==i?(t.setValue(e),!0):!1}function La(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var ms=/[\n"\\]/g;function ln(e){return e.replace(ms,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Nl(e,t,i,r,u,d,y,v){e.name="",y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.type=y:e.removeAttribute("type"),t!=null?y==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ft(t)):e.value!==""+ft(t)&&(e.value=""+ft(t)):y!=="submit"&&y!=="reset"||e.removeAttribute("value"),t!=null?za(e,y,ft(t)):i!=null?za(e,y,ft(i)):r!=null&&e.removeAttribute("value"),u==null&&d!=null&&(e.defaultChecked=!!d),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+ft(v):e.removeAttribute("name")}function ra(e,t,i,r,u,d,y,v){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),t!=null||i!=null){if(!(d!=="submit"&&d!=="reset"||t!=null)){Da(e);return}i=i!=null?""+ft(i):"",t=t!=null?""+ft(t):i,v||t===e.value||(e.value=t),e.defaultValue=t}r=r??u,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=v?e.checked:!!r,e.defaultChecked=!!r,y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(e.name=y),Da(e)}function za(e,t,i){t==="number"&&La(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function Ht(e,t,i,r){if(e=e.options,t){t={};for(var u=0;u<i.length;u++)t["$"+i[u]]=!0;for(i=0;i<e.length;i++)u=t.hasOwnProperty("$"+e[i].value),e[i].selected!==u&&(e[i].selected=u),u&&r&&(e[i].defaultSelected=!0)}else{for(i=""+ft(i),t=null,u=0;u<e.length;u++){if(e[u].value===i){e[u].selected=!0,r&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Br(e,t,i){if(t!=null&&(t=""+ft(t),t!==e.value&&(e.value=t),i==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=i!=null?""+ft(i):""}function Ba(e,t,i,r){if(t==null){if(r!=null){if(i!=null)throw Error(o(92));if(W(r)){if(1<r.length)throw Error(o(93));r=r[0]}i=r}i==null&&(i=""),t=i}i=ft(t),e.defaultValue=i,r=e.textContent,r===i&&r!==""&&r!==null&&(e.value=r),Da(e)}function Ae(e,t){if(t){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=t;return}}e.textContent=t}var Ir=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 Ct(e,t,i){var r=t.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,i):typeof i!="number"||i===0||Ir.has(t)?t==="float"?e.cssFloat=i:e[t]=(""+i).trim():e[t]=i+"px"}function tt(e,t,i){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,i!=null){for(var r in i)!i.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var u in t)r=t[u],t.hasOwnProperty(u)&&i[u]!==r&&Ct(e,u,r)}else for(var d in t)t.hasOwnProperty(d)&&Ct(e,d,t[d])}function ki(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 ri=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"]]),Al=/^[\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 Ci(e){return Al.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function se(){}var ge=null;function Me(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Fe=null,Et=null;function kn(e){var t=ai(e);if(t&&(e=t.stateNode)){var i=e[Kt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Nl(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),t=i.name,i.type==="radio"&&t!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+ln(""+t)+'"][type="radio"]'),t=0;t<i.length;t++){var r=i[t];if(r!==e&&r.form===e.form){var u=r[Kt]||null;if(!u)throw Error(o(90));Nl(r,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<i.length;t++)r=i[t],r.form===e.form&&Tl(r)}break e;case"textarea":Br(e,i.value,i.defaultValue);break e;case"select":t=i.value,t!=null&&Ht(e,!!i.multiple,t,!1)}}}var wl=!1;function Ur(e,t,i){if(wl)return e(t,i);wl=!0;try{var r=e(t);return r}finally{if(wl=!1,(Fe!==null||Et!==null)&&(Ao(),Fe&&(t=Fe,e=Et,Et=Fe=null,kn(t),e)))for(t=0;t<e.length;t++)kn(e[t])}}function kl(e,t){var i=e.stateNode;if(i===null)return null;var r=i[Kt]||null;if(r===null)return null;i=r[t];e: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 e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(o(231,t,typeof i));return i}var oi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gs=!1;if(oi)try{var Cl={};Object.defineProperty(Cl,"passive",{get:function(){gs=!0}}),window.addEventListener("test",Cl,Cl),window.removeEventListener("test",Cl,Cl)}catch{gs=!1}var Oi=null,bs=null,Hr=null;function Nf(){if(Hr)return Hr;var e,t=bs,i=t.length,r,u="value"in Oi?Oi.value:Oi.textContent,d=u.length;for(e=0;e<i&&t[e]===u[e];e++);var y=i-e;for(r=1;r<=y&&t[i-r]===u[d-r];r++);return Hr=u.slice(e,1<r?1-r:void 0)}function qr(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 Fr(){return!0}function Af(){return!1}function rn(e){function t(i,r,u,d,y){this._reactName=i,this._targetInst=u,this.type=r,this.nativeEvent=d,this.target=y,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(i=e[v],this[v]=i?i(d):d[v]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?Fr:Af,this.isPropagationStopped=Af,this}return g(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Fr)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Fr)},persist:function(){},isPersistent:Fr}),t}var oa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gr=rn(oa),Ol=g({},oa,{view:0,detail:0}),Vb=rn(Ol),ys,Es,Ml,jr=g({},Ol,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vs,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!==Ml&&(Ml&&e.type==="mousemove"?(ys=e.screenX-Ml.screenX,Es=e.screenY-Ml.screenY):Es=ys=0,Ml=e),ys)},movementY:function(e){return"movementY"in e?e.movementY:Es}}),wf=rn(jr),Xb=g({},jr,{dataTransfer:0}),Pb=rn(Xb),Zb=g({},Ol,{relatedTarget:0}),_s=rn(Zb),Qb=g({},oa,{animationName:0,elapsedTime:0,pseudoElement:0}),$b=rn(Qb),Jb=g({},oa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Wb=rn(Jb),ey=g({},oa,{data:0}),kf=rn(ey),ty={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ny={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"},iy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ay(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=iy[e])?!!t[e]:!1}function vs(){return ay}var ly=g({},Ol,{key:function(e){if(e.key){var t=ty[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=qr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?ny[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vs,charCode:function(e){return e.type==="keypress"?qr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?qr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ry=rn(ly),oy=g({},jr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Cf=rn(oy),sy=g({},Ol,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vs}),uy=rn(sy),cy=g({},oa,{propertyName:0,elapsedTime:0,pseudoElement:0}),fy=rn(cy),dy=g({},jr,{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}),py=rn(dy),hy=g({},oa,{newState:0,oldState:0}),my=rn(hy),gy=[9,13,27,32],Ss=oi&&"CompositionEvent"in window,Rl=null;oi&&"documentMode"in document&&(Rl=document.documentMode);var by=oi&&"TextEvent"in window&&!Rl,Of=oi&&(!Ss||Rl&&8<Rl&&11>=Rl),Mf=" ",Rf=!1;function Df(e,t){switch(e){case"keyup":return gy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ia=!1;function yy(e,t){switch(e){case"compositionend":return Lf(t);case"keypress":return t.which!==32?null:(Rf=!0,Mf);case"textInput":return e=t.data,e===Mf&&Rf?null:e;default:return null}}function Ey(e,t){if(Ia)return e==="compositionend"||!Ss&&Df(e,t)?(e=Nf(),Hr=bs=Oi=null,Ia=!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 Of&&t.locale!=="ko"?null:t.data;default:return null}}var _y={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 zf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!_y[e.type]:t==="textarea"}function Bf(e,t,i,r){Fe?Et?Et.push(r):Et=[r]:Fe=r,t=Do(t,"onChange"),0<t.length&&(i=new Gr("onChange","change",null,i,r),e.push({event:i,listeners:t}))}var Dl=null,Ll=null;function vy(e){yh(e,0)}function Yr(e){var t=Ai(e);if(Tl(t))return e}function If(e,t){if(e==="change")return t}var Uf=!1;if(oi){var xs;if(oi){var Ts="oninput"in document;if(!Ts){var Hf=document.createElement("div");Hf.setAttribute("oninput","return;"),Ts=typeof Hf.oninput=="function"}xs=Ts}else xs=!1;Uf=xs&&(!document.documentMode||9<document.documentMode)}function qf(){Dl&&(Dl.detachEvent("onpropertychange",Ff),Ll=Dl=null)}function Ff(e){if(e.propertyName==="value"&&Yr(Ll)){var t=[];Bf(t,Ll,e,Me(e)),Ur(vy,t)}}function Sy(e,t,i){e==="focusin"?(qf(),Dl=t,Ll=i,Dl.attachEvent("onpropertychange",Ff)):e==="focusout"&&qf()}function xy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Yr(Ll)}function Ty(e,t){if(e==="click")return Yr(t)}function Ny(e,t){if(e==="input"||e==="change")return Yr(t)}function Ay(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var yn=typeof Object.is=="function"?Object.is:Ay;function zl(e,t){if(yn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var i=Object.keys(e),r=Object.keys(t);if(i.length!==r.length)return!1;for(r=0;r<i.length;r++){var u=i[r];if(!Kn.call(t,u)||!yn(e[u],t[u]))return!1}return!0}function Gf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jf(e,t){var i=Gf(e);e=0;for(var r;i;){if(i.nodeType===3){if(r=e+i.textContent.length,e<=t&&r>=t)return{node:i,offset:t-e};e=r}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Gf(i)}}function Yf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Yf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Kf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=La(e.document);t instanceof e.HTMLIFrameElement;){try{var i=typeof t.contentWindow.location.href=="string"}catch{i=!1}if(i)e=t.contentWindow;else break;t=La(e.document)}return t}function Ns(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 wy=oi&&"documentMode"in document&&11>=document.documentMode,Ua=null,As=null,Bl=null,ws=!1;function Vf(e,t,i){var r=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;ws||Ua==null||Ua!==La(r)||(r=Ua,"selectionStart"in r&&Ns(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}),Bl&&zl(Bl,r)||(Bl=r,r=Do(As,"onSelect"),0<r.length&&(t=new Gr("onSelect","select",null,t,i),e.push({event:t,listeners:r}),t.target=Ua)))}function sa(e,t){var i={};return i[e.toLowerCase()]=t.toLowerCase(),i["Webkit"+e]="webkit"+t,i["Moz"+e]="moz"+t,i}var Ha={animationend:sa("Animation","AnimationEnd"),animationiteration:sa("Animation","AnimationIteration"),animationstart:sa("Animation","AnimationStart"),transitionrun:sa("Transition","TransitionRun"),transitionstart:sa("Transition","TransitionStart"),transitioncancel:sa("Transition","TransitionCancel"),transitionend:sa("Transition","TransitionEnd")},ks={},Xf={};oi&&(Xf=document.createElement("div").style,"AnimationEvent"in window||(delete Ha.animationend.animation,delete Ha.animationiteration.animation,delete Ha.animationstart.animation),"TransitionEvent"in window||delete Ha.transitionend.transition);function ua(e){if(ks[e])return ks[e];if(!Ha[e])return e;var t=Ha[e],i;for(i in t)if(t.hasOwnProperty(i)&&i in Xf)return ks[e]=t[i];return e}var Pf=ua("animationend"),Zf=ua("animationiteration"),Qf=ua("animationstart"),ky=ua("transitionrun"),Cy=ua("transitionstart"),Oy=ua("transitioncancel"),$f=ua("transitionend"),Jf=new Map,Cs="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(" ");Cs.push("scrollEnd");function qn(e,t){Jf.set(e,t),li(t,[e])}var Kr=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!==null&&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)},Cn=[],qa=0,Os=0;function Vr(){for(var e=qa,t=Os=qa=0;t<e;){var i=Cn[t];Cn[t++]=null;var r=Cn[t];Cn[t++]=null;var u=Cn[t];Cn[t++]=null;var d=Cn[t];if(Cn[t++]=null,r!==null&&u!==null){var y=r.pending;y===null?u.next=u:(u.next=y.next,y.next=u),r.pending=u}d!==0&&Wf(i,u,d)}}function Xr(e,t,i,r){Cn[qa++]=e,Cn[qa++]=t,Cn[qa++]=i,Cn[qa++]=r,Os|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Ms(e,t,i,r){return Xr(e,t,i,r),Pr(e)}function ca(e,t){return Xr(e,null,null,t),Pr(e)}function Wf(e,t,i){e.lanes|=i;var r=e.alternate;r!==null&&(r.lanes|=i);for(var u=!1,d=e.return;d!==null;)d.childLanes|=i,r=d.alternate,r!==null&&(r.childLanes|=i),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(u=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,u&&t!==null&&(u=31-We(i),e=d.hiddenUpdates,r=e[u],r===null?e[u]=[t]:r.push(t),t.lane=i|536870912),d):null}function Pr(e){if(50<ar)throw ar=0,qu=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Fa={};function My(e,t,i,r){this.tag=e,this.key=i,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 En(e,t,i,r){return new My(e,t,i,r)}function Rs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function si(e,t){var i=e.alternate;return i===null?(i=En(e.tag,t,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=t,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,t=e.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function ed(e,t){e.flags&=65011714;var i=e.alternate;return i===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=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,t=i.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Zr(e,t,i,r,u,d){var y=0;if(r=e,typeof e=="function")Rs(e)&&(y=1);else if(typeof e=="string")y=BE(e,i,ce.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ue:return e=En(31,i,t,u),e.elementType=ue,e.lanes=d,e;case O:return fa(i.children,u,d,t);case R:y=8,u|=24;break;case A:return e=En(12,i,t,u|2),e.elementType=A,e.lanes=d,e;case X:return e=En(13,i,t,u),e.elementType=X,e.lanes=d,e;case N:return e=En(19,i,t,u),e.elementType=N,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case I:y=10;break e;case B:y=9;break e;case $:y=11;break e;case Y:y=14;break e;case ee:y=16,r=null;break e}y=29,i=Error(o(130,e===null?"null":typeof e,"")),r=null}return t=En(y,i,t,u),t.elementType=e,t.type=r,t.lanes=d,t}function fa(e,t,i,r){return e=En(7,e,r,t),e.lanes=i,e}function Ds(e,t,i){return e=En(6,e,null,t),e.lanes=i,e}function td(e){var t=En(18,null,null,0);return t.stateNode=e,t}function Ls(e,t,i){return t=En(4,e.children!==null?e.children:[],e.key,t),t.lanes=i,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var nd=new WeakMap;function On(e,t){if(typeof e=="object"&&e!==null){var i=nd.get(e);return i!==void 0?i:(t={value:e,source:t,stack:wn(t)},nd.set(e,t),t)}return{value:e,source:t,stack:wn(t)}}var Ga=[],ja=0,Qr=null,Il=0,Mn=[],Rn=0,Mi=null,Pn=1,Zn="";function ui(e,t){Ga[ja++]=Il,Ga[ja++]=Qr,Qr=e,Il=t}function id(e,t,i){Mn[Rn++]=Pn,Mn[Rn++]=Zn,Mn[Rn++]=Mi,Mi=e;var r=Pn;e=Zn;var u=32-We(r)-1;r&=~(1<<u),i+=1;var d=32-We(t)+u;if(30<d){var y=u-u%5;d=(r&(1<<y)-1).toString(32),r>>=y,u-=y,Pn=1<<32-We(t)+u|i<<u|r,Zn=d+e}else Pn=1<<d|i<<u|r,Zn=e}function zs(e){e.return!==null&&(ui(e,1),id(e,1,0))}function Bs(e){for(;e===Qr;)Qr=Ga[--ja],Ga[ja]=null,Il=Ga[--ja],Ga[ja]=null;for(;e===Mi;)Mi=Mn[--Rn],Mn[Rn]=null,Zn=Mn[--Rn],Mn[Rn]=null,Pn=Mn[--Rn],Mn[Rn]=null}function ad(e,t){Mn[Rn++]=Pn,Mn[Rn++]=Zn,Mn[Rn++]=Mi,Pn=t.id,Zn=t.overflow,Mi=e}var qt=null,ht=null,Ke=!1,Ri=null,Dn=!1,Is=Error(o(519));function Di(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ul(On(t,e)),Is}function ld(e){var t=e.stateNode,i=e.type,r=e.memoizedProps;switch(t[Tt]=e,t[Kt]=r,i){case"dialog":He("cancel",t),He("close",t);break;case"iframe":case"object":case"embed":He("load",t);break;case"video":case"audio":for(i=0;i<rr.length;i++)He(rr[i],t);break;case"source":He("error",t);break;case"img":case"image":case"link":He("error",t),He("load",t);break;case"details":He("toggle",t);break;case"input":He("invalid",t),ra(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":He("invalid",t);break;case"textarea":He("invalid",t),Ba(t,r.value,r.defaultValue,r.children)}i=r.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||t.textContent===""+i||r.suppressHydrationWarning===!0||Sh(t.textContent,i)?(r.popover!=null&&(He("beforetoggle",t),He("toggle",t)),r.onScroll!=null&&He("scroll",t),r.onScrollEnd!=null&&He("scrollend",t),r.onClick!=null&&(t.onclick=se),t=!0):t=!1,t||Di(e,!0)}function rd(e){for(qt=e.return;qt;)switch(qt.tag){case 5:case 31:case 13:Dn=!1;return;case 27:case 3:Dn=!0;return;default:qt=qt.return}}function Ya(e){if(e!==qt)return!1;if(!Ke)return rd(e),Ke=!0,!1;var t=e.tag,i;if((i=t!==3&&t!==27)&&((i=t===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||tc(e.type,e.memoizedProps)),i=!i),i&&ht&&Di(e),rd(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));ht=Mh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));ht=Mh(e)}else t===27?(t=ht,Xi(e.type)?(e=rc,rc=null,ht=e):ht=t):ht=qt?zn(e.stateNode.nextSibling):null;return!0}function da(){ht=qt=null,Ke=!1}function Us(){var e=Ri;return e!==null&&(cn===null?cn=e:cn.push.apply(cn,e),Ri=null),e}function Ul(e){Ri===null?Ri=[e]:Ri.push(e)}var Hs=k(null),pa=null,ci=null;function Li(e,t,i){S(Hs,t._currentValue),t._currentValue=i}function fi(e){e._currentValue=Hs.current,j(Hs)}function qs(e,t,i){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===i)break;e=e.return}}function Fs(e,t,i,r){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var d=u.dependencies;if(d!==null){var y=u.child;d=d.firstContext;e:for(;d!==null;){var v=d;d=u;for(var w=0;w<t.length;w++)if(v.context===t[w]){d.lanes|=i,v=d.alternate,v!==null&&(v.lanes|=i),qs(d.return,i,e),r||(y=null);break e}d=v.next}}else if(u.tag===18){if(y=u.return,y===null)throw Error(o(341));y.lanes|=i,d=y.alternate,d!==null&&(d.lanes|=i),qs(y,i,e),y=null}else y=u.child;if(y!==null)y.return=u;else for(y=u;y!==null;){if(y===e){y=null;break}if(u=y.sibling,u!==null){u.return=y.return,y=u;break}y=y.return}u=y}}function Ka(e,t,i,r){e=null;for(var u=t,d=!1;u!==null;){if(!d){if((u.flags&524288)!==0)d=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var y=u.alternate;if(y===null)throw Error(o(387));if(y=y.memoizedProps,y!==null){var v=u.type;yn(u.pendingProps.value,y.value)||(e!==null?e.push(v):e=[v])}}else if(u===ze.current){if(y=u.alternate,y===null)throw Error(o(387));y.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(fr):e=[fr])}u=u.return}e!==null&&Fs(t,e,i,r),t.flags|=262144}function $r(e){for(e=e.firstContext;e!==null;){if(!yn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ha(e){pa=e,ci=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ft(e){return od(pa,e)}function Jr(e,t){return pa===null&&ha(e),od(e,t)}function od(e,t){var i=t._currentValue;if(t={context:t,memoizedValue:i,next:null},ci===null){if(e===null)throw Error(o(308));ci=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ci=ci.next=t;return i}var Ry=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(i,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(i){return i()})}},Dy=n.unstable_scheduleCallback,Ly=n.unstable_NormalPriority,Ot={$$typeof:I,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Gs(){return{controller:new Ry,data:new Map,refCount:0}}function Hl(e){e.refCount--,e.refCount===0&&Dy(Ly,function(){e.controller.abort()})}var ql=null,js=0,Va=0,Xa=null;function zy(e,t){if(ql===null){var i=ql=[];js=0,Va=Vu(),Xa={status:"pending",value:void 0,then:function(r){i.push(r)}}}return js++,t.then(sd,sd),t}function sd(){if(--js===0&&ql!==null){Xa!==null&&(Xa.status="fulfilled");var e=ql;ql=null,Va=0,Xa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function By(e,t){var i=[],r={status:"pending",value:null,reason:null,then:function(u){i.push(u)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var u=0;u<i.length;u++)(0,i[u])(t)},function(u){for(r.status="rejected",r.reason=u,u=0;u<i.length;u++)(0,i[u])(void 0)}),r}var ud=z.S;z.S=function(e,t){Vp=yt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&zy(e,t),ud!==null&&ud(e,t)};var ma=k(null);function Ys(){var e=ma.current;return e!==null?e:ut.pooledCache}function Wr(e,t){t===null?S(ma,ma.current):S(ma,t.pool)}function cd(){var e=Ys();return e===null?null:{parent:Ot._currentValue,pool:e}}var Pa=Error(o(460)),Ks=Error(o(474)),eo=Error(o(542)),to={then:function(){}};function fd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function dd(e,t,i){switch(i=e[i],i===void 0?e.push(t):i!==t&&(t.then(se,se),t=i),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,hd(e),e;default:if(typeof t.status=="string")t.then(se,se);else{if(e=ut,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=r}},function(r){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,hd(e),e}throw ba=t,Pa}}function ga(e){try{var t=e._init;return t(e._payload)}catch(i){throw i!==null&&typeof i=="object"&&typeof i.then=="function"?(ba=i,Pa):i}}var ba=null;function pd(){if(ba===null)throw Error(o(459));var e=ba;return ba=null,e}function hd(e){if(e===Pa||e===eo)throw Error(o(483))}var Za=null,Fl=0;function no(e){var t=Fl;return Fl+=1,Za===null&&(Za=[]),dd(Za,e,t)}function Gl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function io(e,t){throw t.$$typeof===_?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function md(e){function t(L,M){if(e){var H=L.deletions;H===null?(L.deletions=[M],L.flags|=16):H.push(M)}}function i(L,M){if(!e)return null;for(;M!==null;)t(L,M),M=M.sibling;return null}function r(L){for(var M=new Map;L!==null;)L.key!==null?M.set(L.key,L):M.set(L.index,L),L=L.sibling;return M}function u(L,M){return L=si(L,M),L.index=0,L.sibling=null,L}function d(L,M,H){return L.index=H,e?(H=L.alternate,H!==null?(H=H.index,H<M?(L.flags|=67108866,M):H):(L.flags|=67108866,M)):(L.flags|=1048576,M)}function y(L){return e&&L.alternate===null&&(L.flags|=67108866),L}function v(L,M,H,Z){return M===null||M.tag!==6?(M=Ds(H,L.mode,Z),M.return=L,M):(M=u(M,H),M.return=L,M)}function w(L,M,H,Z){var ve=H.type;return ve===O?V(L,M,H.props.children,Z,H.key):M!==null&&(M.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===ee&&ga(ve)===M.type)?(M=u(M,H.props),Gl(M,H),M.return=L,M):(M=Zr(H.type,H.key,H.props,null,L.mode,Z),Gl(M,H),M.return=L,M)}function q(L,M,H,Z){return M===null||M.tag!==4||M.stateNode.containerInfo!==H.containerInfo||M.stateNode.implementation!==H.implementation?(M=Ls(H,L.mode,Z),M.return=L,M):(M=u(M,H.children||[]),M.return=L,M)}function V(L,M,H,Z,ve){return M===null||M.tag!==7?(M=fa(H,L.mode,Z,ve),M.return=L,M):(M=u(M,H),M.return=L,M)}function Q(L,M,H){if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return M=Ds(""+M,L.mode,H),M.return=L,M;if(typeof M=="object"&&M!==null){switch(M.$$typeof){case E:return H=Zr(M.type,M.key,M.props,null,L.mode,H),Gl(H,M),H.return=L,H;case x:return M=Ls(M,L.mode,H),M.return=L,M;case ee:return M=ga(M),Q(L,M,H)}if(W(M)||re(M))return M=fa(M,L.mode,H,null),M.return=L,M;if(typeof M.then=="function")return Q(L,no(M),H);if(M.$$typeof===I)return Q(L,Jr(L,M),H);io(L,M)}return null}function F(L,M,H,Z){var ve=M!==null?M.key:null;if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return ve!==null?null:v(L,M,""+H,Z);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case E:return H.key===ve?w(L,M,H,Z):null;case x:return H.key===ve?q(L,M,H,Z):null;case ee:return H=ga(H),F(L,M,H,Z)}if(W(H)||re(H))return ve!==null?null:V(L,M,H,Z,null);if(typeof H.then=="function")return F(L,M,no(H),Z);if(H.$$typeof===I)return F(L,M,Jr(L,H),Z);io(L,H)}return null}function G(L,M,H,Z,ve){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return L=L.get(H)||null,v(M,L,""+Z,ve);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case E:return L=L.get(Z.key===null?H:Z.key)||null,w(M,L,Z,ve);case x:return L=L.get(Z.key===null?H:Z.key)||null,q(M,L,Z,ve);case ee:return Z=ga(Z),G(L,M,H,Z,ve)}if(W(Z)||re(Z))return L=L.get(H)||null,V(M,L,Z,ve,null);if(typeof Z.then=="function")return G(L,M,H,no(Z),ve);if(Z.$$typeof===I)return G(L,M,H,Jr(M,Z),ve);io(M,Z)}return null}function pe(L,M,H,Z){for(var ve=null,Pe=null,be=M,De=M=0,je=null;be!==null&&De<H.length;De++){be.index>De?(je=be,be=null):je=be.sibling;var Ze=F(L,be,H[De],Z);if(Ze===null){be===null&&(be=je);break}e&&be&&Ze.alternate===null&&t(L,be),M=d(Ze,M,De),Pe===null?ve=Ze:Pe.sibling=Ze,Pe=Ze,be=je}if(De===H.length)return i(L,be),Ke&&ui(L,De),ve;if(be===null){for(;De<H.length;De++)be=Q(L,H[De],Z),be!==null&&(M=d(be,M,De),Pe===null?ve=be:Pe.sibling=be,Pe=be);return Ke&&ui(L,De),ve}for(be=r(be);De<H.length;De++)je=G(be,L,De,H[De],Z),je!==null&&(e&&je.alternate!==null&&be.delete(je.key===null?De:je.key),M=d(je,M,De),Pe===null?ve=je:Pe.sibling=je,Pe=je);return e&&be.forEach(function(Ji){return t(L,Ji)}),Ke&&ui(L,De),ve}function Ne(L,M,H,Z){if(H==null)throw Error(o(151));for(var ve=null,Pe=null,be=M,De=M=0,je=null,Ze=H.next();be!==null&&!Ze.done;De++,Ze=H.next()){be.index>De?(je=be,be=null):je=be.sibling;var Ji=F(L,be,Ze.value,Z);if(Ji===null){be===null&&(be=je);break}e&&be&&Ji.alternate===null&&t(L,be),M=d(Ji,M,De),Pe===null?ve=Ji:Pe.sibling=Ji,Pe=Ji,be=je}if(Ze.done)return i(L,be),Ke&&ui(L,De),ve;if(be===null){for(;!Ze.done;De++,Ze=H.next())Ze=Q(L,Ze.value,Z),Ze!==null&&(M=d(Ze,M,De),Pe===null?ve=Ze:Pe.sibling=Ze,Pe=Ze);return Ke&&ui(L,De),ve}for(be=r(be);!Ze.done;De++,Ze=H.next())Ze=G(be,L,De,Ze.value,Z),Ze!==null&&(e&&Ze.alternate!==null&&be.delete(Ze.key===null?De:Ze.key),M=d(Ze,M,De),Pe===null?ve=Ze:Pe.sibling=Ze,Pe=Ze);return e&&be.forEach(function(XE){return t(L,XE)}),Ke&&ui(L,De),ve}function rt(L,M,H,Z){if(typeof H=="object"&&H!==null&&H.type===O&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case E:e:{for(var ve=H.key;M!==null;){if(M.key===ve){if(ve=H.type,ve===O){if(M.tag===7){i(L,M.sibling),Z=u(M,H.props.children),Z.return=L,L=Z;break e}}else if(M.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===ee&&ga(ve)===M.type){i(L,M.sibling),Z=u(M,H.props),Gl(Z,H),Z.return=L,L=Z;break e}i(L,M);break}else t(L,M);M=M.sibling}H.type===O?(Z=fa(H.props.children,L.mode,Z,H.key),Z.return=L,L=Z):(Z=Zr(H.type,H.key,H.props,null,L.mode,Z),Gl(Z,H),Z.return=L,L=Z)}return y(L);case x:e:{for(ve=H.key;M!==null;){if(M.key===ve)if(M.tag===4&&M.stateNode.containerInfo===H.containerInfo&&M.stateNode.implementation===H.implementation){i(L,M.sibling),Z=u(M,H.children||[]),Z.return=L,L=Z;break e}else{i(L,M);break}else t(L,M);M=M.sibling}Z=Ls(H,L.mode,Z),Z.return=L,L=Z}return y(L);case ee:return H=ga(H),rt(L,M,H,Z)}if(W(H))return pe(L,M,H,Z);if(re(H)){if(ve=re(H),typeof ve!="function")throw Error(o(150));return H=ve.call(H),Ne(L,M,H,Z)}if(typeof H.then=="function")return rt(L,M,no(H),Z);if(H.$$typeof===I)return rt(L,M,Jr(L,H),Z);io(L,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,M!==null&&M.tag===6?(i(L,M.sibling),Z=u(M,H),Z.return=L,L=Z):(i(L,M),Z=Ds(H,L.mode,Z),Z.return=L,L=Z),y(L)):i(L,M)}return function(L,M,H,Z){try{Fl=0;var ve=rt(L,M,H,Z);return Za=null,ve}catch(be){if(be===Pa||be===eo)throw be;var Pe=En(29,be,null,L.mode);return Pe.lanes=Z,Pe.return=L,Pe}finally{}}}var ya=md(!0),gd=md(!1),zi=!1;function Vs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Xs(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 Bi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ii(e,t,i){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,($e&2)!==0){var u=r.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),r.pending=t,t=Pr(e),Wf(e,null,i),t}return Xr(e,r,t,i),Pr(e)}function jl(e,t,i){if(t=t.updateQueue,t!==null&&(t=t.shared,(i&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,i|=r,t.lanes=i,ke(e,i)}}function Ps(e,t){var i=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,i===r)){var u=null,d=null;if(i=i.firstBaseUpdate,i!==null){do{var y={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};d===null?u=d=y:d=d.next=y,i=i.next}while(i!==null);d===null?u=d=t:d=d.next=t}else u=d=t;i={baseState:r.baseState,firstBaseUpdate:u,lastBaseUpdate:d,shared:r.shared,callbacks:r.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=t:e.next=t,i.lastBaseUpdate=t}var Zs=!1;function Yl(){if(Zs){var e=Xa;if(e!==null)throw e}}function Kl(e,t,i,r){Zs=!1;var u=e.updateQueue;zi=!1;var d=u.firstBaseUpdate,y=u.lastBaseUpdate,v=u.shared.pending;if(v!==null){u.shared.pending=null;var w=v,q=w.next;w.next=null,y===null?d=q:y.next=q,y=w;var V=e.alternate;V!==null&&(V=V.updateQueue,v=V.lastBaseUpdate,v!==y&&(v===null?V.firstBaseUpdate=q:v.next=q,V.lastBaseUpdate=w))}if(d!==null){var Q=u.baseState;y=0,V=q=w=null,v=d;do{var F=v.lane&-536870913,G=F!==v.lane;if(G?(Ge&F)===F:(r&F)===F){F!==0&&F===Va&&(Zs=!0),V!==null&&(V=V.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var pe=e,Ne=v;F=t;var rt=i;switch(Ne.tag){case 1:if(pe=Ne.payload,typeof pe=="function"){Q=pe.call(rt,Q,F);break e}Q=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=Ne.payload,F=typeof pe=="function"?pe.call(rt,Q,F):pe,F==null)break e;Q=g({},Q,F);break e;case 2:zi=!0}}F=v.callback,F!==null&&(e.flags|=64,G&&(e.flags|=8192),G=u.callbacks,G===null?u.callbacks=[F]:G.push(F))}else G={lane:F,tag:v.tag,payload:v.payload,callback:v.callback,next:null},V===null?(q=V=G,w=Q):V=V.next=G,y|=F;if(v=v.next,v===null){if(v=u.shared.pending,v===null)break;G=v,v=G.next,G.next=null,u.lastBaseUpdate=G,u.shared.pending=null}}while(!0);V===null&&(w=Q),u.baseState=w,u.firstBaseUpdate=q,u.lastBaseUpdate=V,d===null&&(u.shared.lanes=0),Gi|=y,e.lanes=y,e.memoizedState=Q}}function bd(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function yd(e,t){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)bd(i[e],t)}var Qa=k(null),ao=k(0);function Ed(e,t){e=_i,S(ao,e),S(Qa,t),_i=e|t.baseLanes}function Qs(){S(ao,_i),S(Qa,Qa.current)}function $s(){_i=ao.current,j(Qa),j(ao)}var _n=k(null),Ln=null;function Ui(e){var t=e.alternate;S(At,At.current&1),S(_n,e),Ln===null&&(t===null||Qa.current!==null||t.memoizedState!==null)&&(Ln=e)}function Js(e){S(At,At.current),S(_n,e),Ln===null&&(Ln=e)}function _d(e){e.tag===22?(S(At,At.current),S(_n,e),Ln===null&&(Ln=e)):Hi()}function Hi(){S(At,At.current),S(_n,_n.current)}function vn(e){j(_n),Ln===e&&(Ln=null),j(At)}var At=k(0);function lo(e){for(var t=e;t!==null;){if(t.tag===13){var i=t.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||ac(i)||lc(i)))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)!==0)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 di=0,Re=null,at=null,Mt=null,ro=!1,$a=!1,Ea=!1,oo=0,Vl=0,Ja=null,Iy=0;function vt(){throw Error(o(321))}function Ws(e,t){if(t===null)return!1;for(var i=0;i<t.length&&i<e.length;i++)if(!yn(e[i],t[i]))return!1;return!0}function eu(e,t,i,r,u,d){return di=d,Re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,z.H=e===null||e.memoizedState===null?ip:mu,Ea=!1,d=i(r,u),Ea=!1,$a&&(d=Sd(t,i,r,u)),vd(e),d}function vd(e){z.H=Zl;var t=at!==null&&at.next!==null;if(di=0,Mt=at=Re=null,ro=!1,Vl=0,Ja=null,t)throw Error(o(300));e===null||Rt||(e=e.dependencies,e!==null&&$r(e)&&(Rt=!0))}function Sd(e,t,i,r){Re=e;var u=0;do{if($a&&(Ja=null),Vl=0,$a=!1,25<=u)throw Error(o(301));if(u+=1,Mt=at=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}z.H=ap,d=t(i,r)}while($a);return d}function Uy(){var e=z.H,t=e.useState()[0];return t=typeof t.then=="function"?Xl(t):t,e=e.useState()[0],(at!==null?at.memoizedState:null)!==e&&(Re.flags|=1024),t}function tu(){var e=oo!==0;return oo=0,e}function nu(e,t,i){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i}function iu(e){if(ro){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ro=!1}di=0,Mt=at=Re=null,$a=!1,Vl=oo=0,Ja=null}function Wt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Mt===null?Re.memoizedState=Mt=e:Mt=Mt.next=e,Mt}function wt(){if(at===null){var e=Re.alternate;e=e!==null?e.memoizedState:null}else e=at.next;var t=Mt===null?Re.memoizedState:Mt.next;if(t!==null)Mt=t,at=e;else{if(e===null)throw Re.alternate===null?Error(o(467)):Error(o(310));at=e,e={memoizedState:at.memoizedState,baseState:at.baseState,baseQueue:at.baseQueue,queue:at.queue,next:null},Mt===null?Re.memoizedState=Mt=e:Mt=Mt.next=e}return Mt}function so(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Xl(e){var t=Vl;return Vl+=1,Ja===null&&(Ja=[]),e=dd(Ja,e,t),t=Re,(Mt===null?t.memoizedState:Mt.next)===null&&(t=t.alternate,z.H=t===null||t.memoizedState===null?ip:mu),e}function uo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Xl(e);if(e.$$typeof===I)return Ft(e)}throw Error(o(438,String(e)))}function au(e){var t=null,i=Re.updateQueue;if(i!==null&&(t=i.memoCache),t==null){var r=Re.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),i===null&&(i=so(),Re.updateQueue=i),i.memoCache=t,i=t.data[t.index],i===void 0)for(i=t.data[t.index]=Array(e),r=0;r<e;r++)i[r]=U;return t.index++,i}function pi(e,t){return typeof t=="function"?t(e):t}function co(e){var t=wt();return lu(t,at,e)}function lu(e,t,i){var r=e.queue;if(r===null)throw Error(o(311));r.lastRenderedReducer=i;var u=e.baseQueue,d=r.pending;if(d!==null){if(u!==null){var y=u.next;u.next=d.next,d.next=y}t.baseQueue=u=d,r.pending=null}if(d=e.baseState,u===null)e.memoizedState=d;else{t=u.next;var v=y=null,w=null,q=t,V=!1;do{var Q=q.lane&-536870913;if(Q!==q.lane?(Ge&Q)===Q:(di&Q)===Q){var F=q.revertLane;if(F===0)w!==null&&(w=w.next={lane:0,revertLane:0,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),Q===Va&&(V=!0);else if((di&F)===F){q=q.next,F===Va&&(V=!0);continue}else Q={lane:0,revertLane:q.revertLane,gesture:null,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},w===null?(v=w=Q,y=d):w=w.next=Q,Re.lanes|=F,Gi|=F;Q=q.action,Ea&&i(d,Q),d=q.hasEagerState?q.eagerState:i(d,Q)}else F={lane:Q,revertLane:q.revertLane,gesture:q.gesture,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null},w===null?(v=w=F,y=d):w=w.next=F,Re.lanes|=Q,Gi|=Q;q=q.next}while(q!==null&&q!==t);if(w===null?y=d:w.next=v,!yn(d,e.memoizedState)&&(Rt=!0,V&&(i=Xa,i!==null)))throw i;e.memoizedState=d,e.baseState=y,e.baseQueue=w,r.lastRenderedState=d}return u===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ru(e){var t=wt(),i=t.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=e;var r=i.dispatch,u=i.pending,d=t.memoizedState;if(u!==null){i.pending=null;var y=u=u.next;do d=e(d,y.action),y=y.next;while(y!==u);yn(d,t.memoizedState)||(Rt=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),i.lastRenderedState=d}return[d,r]}function xd(e,t,i){var r=Re,u=wt(),d=Ke;if(d){if(i===void 0)throw Error(o(407));i=i()}else i=t();var y=!yn((at||u).memoizedState,i);if(y&&(u.memoizedState=i,Rt=!0),u=u.queue,uu(Ad.bind(null,r,u,e),[e]),u.getSnapshot!==t||y||Mt!==null&&Mt.memoizedState.tag&1){if(r.flags|=2048,Wa(9,{destroy:void 0},Nd.bind(null,r,u,i,t),null),ut===null)throw Error(o(349));d||(di&127)!==0||Td(r,t,i)}return i}function Td(e,t,i){e.flags|=16384,e={getSnapshot:t,value:i},t=Re.updateQueue,t===null?(t=so(),Re.updateQueue=t,t.stores=[e]):(i=t.stores,i===null?t.stores=[e]:i.push(e))}function Nd(e,t,i,r){t.value=i,t.getSnapshot=r,wd(t)&&kd(e)}function Ad(e,t,i){return i(function(){wd(t)&&kd(e)})}function wd(e){var t=e.getSnapshot;e=e.value;try{var i=t();return!yn(e,i)}catch{return!0}}function kd(e){var t=ca(e,2);t!==null&&fn(t,e,2)}function ou(e){var t=Wt();if(typeof e=="function"){var i=e;if(e=i(),Ea){Yt(!0);try{i()}finally{Yt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pi,lastRenderedState:e},t}function Cd(e,t,i,r){return e.baseState=i,lu(e,at,typeof r=="function"?r:pi)}function Hy(e,t,i,r,u){if(ho(e))throw Error(o(485));if(e=t.action,e!==null){var d={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(y){d.listeners.push(y)}};z.T!==null?i(!0):d.isTransition=!1,r(d),i=t.pending,i===null?(d.next=t.pending=d,Od(t,d)):(d.next=i.next,t.pending=i.next=d)}}function Od(e,t){var i=t.action,r=t.payload,u=e.state;if(t.isTransition){var d=z.T,y={};z.T=y;try{var v=i(u,r),w=z.S;w!==null&&w(y,v),Md(e,t,v)}catch(q){su(e,t,q)}finally{d!==null&&y.types!==null&&(d.types=y.types),z.T=d}}else try{d=i(u,r),Md(e,t,d)}catch(q){su(e,t,q)}}function Md(e,t,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(r){Rd(e,t,r)},function(r){return su(e,t,r)}):Rd(e,t,i)}function Rd(e,t,i){t.status="fulfilled",t.value=i,Dd(t),e.state=i,t=e.pending,t!==null&&(i=t.next,i===t?e.pending=null:(i=i.next,t.next=i,Od(e,i)))}function su(e,t,i){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=i,Dd(t),t=t.next;while(t!==r)}e.action=null}function Dd(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ld(e,t){return t}function zd(e,t){if(Ke){var i=ut.formState;if(i!==null){e:{var r=Re;if(Ke){if(ht){t:{for(var u=ht,d=Dn;u.nodeType!==8;){if(!d){u=null;break t}if(u=zn(u.nextSibling),u===null){u=null;break t}}d=u.data,u=d==="F!"||d==="F"?u:null}if(u){ht=zn(u.nextSibling),r=u.data==="F!";break e}}Di(r)}r=!1}r&&(t=i[0])}}return i=Wt(),i.memoizedState=i.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ld,lastRenderedState:t},i.queue=r,i=ep.bind(null,Re,r),r.dispatch=i,r=ou(!1),d=hu.bind(null,Re,!1,r.queue),r=Wt(),u={state:t,dispatch:null,action:e,pending:null},r.queue=u,i=Hy.bind(null,Re,u,d,i),u.dispatch=i,r.memoizedState=e,[t,i,!1]}function Bd(e){var t=wt();return Id(t,at,e)}function Id(e,t,i){if(t=lu(e,t,Ld)[0],e=co(pi)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=Xl(t)}catch(y){throw y===Pa?eo:y}else r=t;t=wt();var u=t.queue,d=u.dispatch;return i!==t.memoizedState&&(Re.flags|=2048,Wa(9,{destroy:void 0},qy.bind(null,u,i),null)),[r,d,e]}function qy(e,t){e.action=t}function Ud(e){var t=wt(),i=at;if(i!==null)return Id(t,i,e);wt(),t=t.memoizedState,i=wt();var r=i.queue.dispatch;return i.memoizedState=e,[t,r,!1]}function Wa(e,t,i,r){return e={tag:e,create:i,deps:r,inst:t,next:null},t=Re.updateQueue,t===null&&(t=so(),Re.updateQueue=t),i=t.lastEffect,i===null?t.lastEffect=e.next=e:(r=i.next,i.next=e,e.next=r,t.lastEffect=e),e}function Hd(){return wt().memoizedState}function fo(e,t,i,r){var u=Wt();Re.flags|=e,u.memoizedState=Wa(1|t,{destroy:void 0},i,r===void 0?null:r)}function po(e,t,i,r){var u=wt();r=r===void 0?null:r;var d=u.memoizedState.inst;at!==null&&r!==null&&Ws(r,at.memoizedState.deps)?u.memoizedState=Wa(t,d,i,r):(Re.flags|=e,u.memoizedState=Wa(1|t,d,i,r))}function qd(e,t){fo(8390656,8,e,t)}function uu(e,t){po(2048,8,e,t)}function Fy(e){Re.flags|=4;var t=Re.updateQueue;if(t===null)t=so(),Re.updateQueue=t,t.events=[e];else{var i=t.events;i===null?t.events=[e]:i.push(e)}}function Fd(e){var t=wt().memoizedState;return Fy({ref:t,nextImpl:e}),function(){if(($e&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Gd(e,t){return po(4,2,e,t)}function jd(e,t){return po(4,4,e,t)}function Yd(e,t){if(typeof t=="function"){e=e();var i=t(e);return function(){typeof i=="function"?i():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Kd(e,t,i){i=i!=null?i.concat([e]):null,po(4,4,Yd.bind(null,t,e),i)}function cu(){}function Vd(e,t){var i=wt();t=t===void 0?null:t;var r=i.memoizedState;return t!==null&&Ws(t,r[1])?r[0]:(i.memoizedState=[e,t],e)}function Xd(e,t){var i=wt();t=t===void 0?null:t;var r=i.memoizedState;if(t!==null&&Ws(t,r[1]))return r[0];if(r=e(),Ea){Yt(!0);try{e()}finally{Yt(!1)}}return i.memoizedState=[r,t],r}function fu(e,t,i){return i===void 0||(di&1073741824)!==0&&(Ge&261930)===0?e.memoizedState=t:(e.memoizedState=i,e=Pp(),Re.lanes|=e,Gi|=e,i)}function Pd(e,t,i,r){return yn(i,t)?i:Qa.current!==null?(e=fu(e,i,r),yn(e,t)||(Rt=!0),e):(di&42)===0||(di&1073741824)!==0&&(Ge&261930)===0?(Rt=!0,e.memoizedState=i):(e=Pp(),Re.lanes|=e,Gi|=e,t)}function Zd(e,t,i,r,u){var d=J.p;J.p=d!==0&&8>d?d:8;var y=z.T,v={};z.T=v,hu(e,!1,t,i);try{var w=u(),q=z.S;if(q!==null&&q(v,w),w!==null&&typeof w=="object"&&typeof w.then=="function"){var V=By(w,r);Pl(e,t,V,Tn(e))}else Pl(e,t,r,Tn(e))}catch(Q){Pl(e,t,{then:function(){},status:"rejected",reason:Q},Tn())}finally{J.p=d,y!==null&&v.types!==null&&(y.types=v.types),z.T=y}}function Gy(){}function du(e,t,i,r){if(e.tag!==5)throw Error(o(476));var u=Qd(e).queue;Zd(e,u,t,ne,i===null?Gy:function(){return $d(e),i(r)})}function Qd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pi,lastRenderedState:ne},next:null};var i={};return t.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pi,lastRenderedState:i},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function $d(e){var t=Qd(e);t.next===null&&(t=e.alternate.memoizedState),Pl(e,t.next.queue,{},Tn())}function pu(){return Ft(fr)}function Jd(){return wt().memoizedState}function Wd(){return wt().memoizedState}function jy(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var i=Tn();e=Bi(i);var r=Ii(t,e,i);r!==null&&(fn(r,t,i),jl(r,t,i)),t={cache:Gs()},e.payload=t;return}t=t.return}}function Yy(e,t,i){var r=Tn();i={lane:r,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},ho(e)?tp(t,i):(i=Ms(e,t,i,r),i!==null&&(fn(i,e,r),np(i,t,r)))}function ep(e,t,i){var r=Tn();Pl(e,t,i,r)}function Pl(e,t,i,r){var u={lane:r,revertLane:0,gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null};if(ho(e))tp(t,u);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var y=t.lastRenderedState,v=d(y,i);if(u.hasEagerState=!0,u.eagerState=v,yn(v,y))return Xr(e,t,u,0),ut===null&&Vr(),!1}catch{}finally{}if(i=Ms(e,t,u,r),i!==null)return fn(i,e,r),np(i,t,r),!0}return!1}function hu(e,t,i,r){if(r={lane:2,revertLane:Vu(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},ho(e)){if(t)throw Error(o(479))}else t=Ms(e,i,r,2),t!==null&&fn(t,e,2)}function ho(e){var t=e.alternate;return e===Re||t!==null&&t===Re}function tp(e,t){$a=ro=!0;var i=e.pending;i===null?t.next=t:(t.next=i.next,i.next=t),e.pending=t}function np(e,t,i){if((i&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,i|=r,t.lanes=i,ke(e,i)}}var Zl={readContext:Ft,use:uo,useCallback:vt,useContext:vt,useEffect:vt,useImperativeHandle:vt,useLayoutEffect:vt,useInsertionEffect:vt,useMemo:vt,useReducer:vt,useRef:vt,useState:vt,useDebugValue:vt,useDeferredValue:vt,useTransition:vt,useSyncExternalStore:vt,useId:vt,useHostTransitionStatus:vt,useFormState:vt,useActionState:vt,useOptimistic:vt,useMemoCache:vt,useCacheRefresh:vt};Zl.useEffectEvent=vt;var ip={readContext:Ft,use:uo,useCallback:function(e,t){return Wt().memoizedState=[e,t===void 0?null:t],e},useContext:Ft,useEffect:qd,useImperativeHandle:function(e,t,i){i=i!=null?i.concat([e]):null,fo(4194308,4,Yd.bind(null,t,e),i)},useLayoutEffect:function(e,t){return fo(4194308,4,e,t)},useInsertionEffect:function(e,t){fo(4,2,e,t)},useMemo:function(e,t){var i=Wt();t=t===void 0?null:t;var r=e();if(Ea){Yt(!0);try{e()}finally{Yt(!1)}}return i.memoizedState=[r,t],r},useReducer:function(e,t,i){var r=Wt();if(i!==void 0){var u=i(t);if(Ea){Yt(!0);try{i(t)}finally{Yt(!1)}}}else u=t;return r.memoizedState=r.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},r.queue=e,e=e.dispatch=Yy.bind(null,Re,e),[r.memoizedState,e]},useRef:function(e){var t=Wt();return e={current:e},t.memoizedState=e},useState:function(e){e=ou(e);var t=e.queue,i=ep.bind(null,Re,t);return t.dispatch=i,[e.memoizedState,i]},useDebugValue:cu,useDeferredValue:function(e,t){var i=Wt();return fu(i,e,t)},useTransition:function(){var e=ou(!1);return e=Zd.bind(null,Re,e.queue,!0,!1),Wt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,i){var r=Re,u=Wt();if(Ke){if(i===void 0)throw Error(o(407));i=i()}else{if(i=t(),ut===null)throw Error(o(349));(Ge&127)!==0||Td(r,t,i)}u.memoizedState=i;var d={value:i,getSnapshot:t};return u.queue=d,qd(Ad.bind(null,r,d,e),[e]),r.flags|=2048,Wa(9,{destroy:void 0},Nd.bind(null,r,d,i,t),null),i},useId:function(){var e=Wt(),t=ut.identifierPrefix;if(Ke){var i=Zn,r=Pn;i=(r&~(1<<32-We(r)-1)).toString(32)+i,t="_"+t+"R_"+i,i=oo++,0<i&&(t+="H"+i.toString(32)),t+="_"}else i=Iy++,t="_"+t+"r_"+i.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:pu,useFormState:zd,useActionState:zd,useOptimistic:function(e){var t=Wt();t.memoizedState=t.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=i,t=hu.bind(null,Re,!0,i),i.dispatch=t,[e,t]},useMemoCache:au,useCacheRefresh:function(){return Wt().memoizedState=jy.bind(null,Re)},useEffectEvent:function(e){var t=Wt(),i={impl:e};return t.memoizedState=i,function(){if(($e&2)!==0)throw Error(o(440));return i.impl.apply(void 0,arguments)}}},mu={readContext:Ft,use:uo,useCallback:Vd,useContext:Ft,useEffect:uu,useImperativeHandle:Kd,useInsertionEffect:Gd,useLayoutEffect:jd,useMemo:Xd,useReducer:co,useRef:Hd,useState:function(){return co(pi)},useDebugValue:cu,useDeferredValue:function(e,t){var i=wt();return Pd(i,at.memoizedState,e,t)},useTransition:function(){var e=co(pi)[0],t=wt().memoizedState;return[typeof e=="boolean"?e:Xl(e),t]},useSyncExternalStore:xd,useId:Jd,useHostTransitionStatus:pu,useFormState:Bd,useActionState:Bd,useOptimistic:function(e,t){var i=wt();return Cd(i,at,e,t)},useMemoCache:au,useCacheRefresh:Wd};mu.useEffectEvent=Fd;var ap={readContext:Ft,use:uo,useCallback:Vd,useContext:Ft,useEffect:uu,useImperativeHandle:Kd,useInsertionEffect:Gd,useLayoutEffect:jd,useMemo:Xd,useReducer:ru,useRef:Hd,useState:function(){return ru(pi)},useDebugValue:cu,useDeferredValue:function(e,t){var i=wt();return at===null?fu(i,e,t):Pd(i,at.memoizedState,e,t)},useTransition:function(){var e=ru(pi)[0],t=wt().memoizedState;return[typeof e=="boolean"?e:Xl(e),t]},useSyncExternalStore:xd,useId:Jd,useHostTransitionStatus:pu,useFormState:Ud,useActionState:Ud,useOptimistic:function(e,t){var i=wt();return at!==null?Cd(i,at,e,t):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:au,useCacheRefresh:Wd};ap.useEffectEvent=Fd;function gu(e,t,i,r){t=e.memoizedState,i=i(r,t),i=i==null?t:g({},t,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var bu={enqueueSetState:function(e,t,i){e=e._reactInternals;var r=Tn(),u=Bi(r);u.payload=t,i!=null&&(u.callback=i),t=Ii(e,u,r),t!==null&&(fn(t,e,r),jl(t,e,r))},enqueueReplaceState:function(e,t,i){e=e._reactInternals;var r=Tn(),u=Bi(r);u.tag=1,u.payload=t,i!=null&&(u.callback=i),t=Ii(e,u,r),t!==null&&(fn(t,e,r),jl(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var i=Tn(),r=Bi(i);r.tag=2,t!=null&&(r.callback=t),t=Ii(e,r,i),t!==null&&(fn(t,e,i),jl(t,e,i))}};function lp(e,t,i,r,u,d,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,d,y):t.prototype&&t.prototype.isPureReactComponent?!zl(i,r)||!zl(u,d):!0}function rp(e,t,i,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(i,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(i,r),t.state!==e&&bu.enqueueReplaceState(t,t.state,null)}function _a(e,t){var i=t;if("ref"in t){i={};for(var r in t)r!=="ref"&&(i[r]=t[r])}if(e=e.defaultProps){i===t&&(i=g({},i));for(var u in e)i[u]===void 0&&(i[u]=e[u])}return i}function op(e){Kr(e)}function sp(e){console.error(e)}function up(e){Kr(e)}function mo(e,t){try{var i=e.onUncaughtError;i(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function cp(e,t,i){try{var r=e.onCaughtError;r(i.value,{componentStack:i.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function yu(e,t,i){return i=Bi(i),i.tag=3,i.payload={element:null},i.callback=function(){mo(e,t)},i}function fp(e){return e=Bi(e),e.tag=3,e}function dp(e,t,i,r){var u=i.type.getDerivedStateFromError;if(typeof u=="function"){var d=r.value;e.payload=function(){return u(d)},e.callback=function(){cp(t,i,r)}}var y=i.stateNode;y!==null&&typeof y.componentDidCatch=="function"&&(e.callback=function(){cp(t,i,r),typeof u!="function"&&(ji===null?ji=new Set([this]):ji.add(this));var v=r.stack;this.componentDidCatch(r.value,{componentStack:v!==null?v:""})})}function Ky(e,t,i,r,u){if(i.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=i.alternate,t!==null&&Ka(t,i,u,!0),i=_n.current,i!==null){switch(i.tag){case 31:case 13:return Ln===null?wo():i.alternate===null&&St===0&&(St=3),i.flags&=-257,i.flags|=65536,i.lanes=u,r===to?i.flags|=16384:(t=i.updateQueue,t===null?i.updateQueue=new Set([r]):t.add(r),ju(e,r,u)),!1;case 22:return i.flags|=65536,r===to?i.flags|=16384:(t=i.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},i.updateQueue=t):(i=t.retryQueue,i===null?t.retryQueue=new Set([r]):i.add(r)),ju(e,r,u)),!1}throw Error(o(435,i.tag))}return ju(e,r,u),wo(),!1}if(Ke)return t=_n.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,r!==Is&&(e=Error(o(422),{cause:r}),Ul(On(e,i)))):(r!==Is&&(t=Error(o(423),{cause:r}),Ul(On(t,i))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,r=On(r,i),u=yu(e.stateNode,r,u),Ps(e,u),St!==4&&(St=2)),!1;var d=Error(o(520),{cause:r});if(d=On(d,i),ir===null?ir=[d]:ir.push(d),St!==4&&(St=2),t===null)return!0;r=On(r,i),i=t;do{switch(i.tag){case 3:return i.flags|=65536,e=u&-u,i.lanes|=e,e=yu(i.stateNode,r,e),Ps(i,e),!1;case 1:if(t=i.type,d=i.stateNode,(i.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(ji===null||!ji.has(d))))return i.flags|=65536,u&=-u,i.lanes|=u,u=fp(u),dp(u,e,i,r),Ps(i,u),!1}i=i.return}while(i!==null);return!1}var Eu=Error(o(461)),Rt=!1;function Gt(e,t,i,r){t.child=e===null?gd(t,null,i,r):ya(t,e.child,i,r)}function pp(e,t,i,r,u){i=i.render;var d=t.ref;if("ref"in r){var y={};for(var v in r)v!=="ref"&&(y[v]=r[v])}else y=r;return ha(t),r=eu(e,t,i,y,d,u),v=tu(),e!==null&&!Rt?(nu(e,t,u),hi(e,t,u)):(Ke&&v&&zs(t),t.flags|=1,Gt(e,t,r,u),t.child)}function hp(e,t,i,r,u){if(e===null){var d=i.type;return typeof d=="function"&&!Rs(d)&&d.defaultProps===void 0&&i.compare===null?(t.tag=15,t.type=d,mp(e,t,d,r,u)):(e=Zr(i.type,null,r,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!wu(e,u)){var y=d.memoizedProps;if(i=i.compare,i=i!==null?i:zl,i(y,r)&&e.ref===t.ref)return hi(e,t,u)}return t.flags|=1,e=si(d,r),e.ref=t.ref,e.return=t,t.child=e}function mp(e,t,i,r,u){if(e!==null){var d=e.memoizedProps;if(zl(d,r)&&e.ref===t.ref)if(Rt=!1,t.pendingProps=r=d,wu(e,u))(e.flags&131072)!==0&&(Rt=!0);else return t.lanes=e.lanes,hi(e,t,u)}return _u(e,t,i,r,u)}function gp(e,t,i,r){var u=r.children,d=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(d=d!==null?d.baseLanes|i:i,e!==null){for(r=t.child=e.child,u=0;r!==null;)u=u|r.lanes|r.childLanes,r=r.sibling;r=u&~d}else r=0,t.child=null;return bp(e,t,d,i,r)}if((i&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Wr(t,d!==null?d.cachePool:null),d!==null?Ed(t,d):Qs(),_d(t);else return r=t.lanes=536870912,bp(e,t,d!==null?d.baseLanes|i:i,i,r)}else d!==null?(Wr(t,d.cachePool),Ed(t,d),Hi(),t.memoizedState=null):(e!==null&&Wr(t,null),Qs(),Hi());return Gt(e,t,u,i),t.child}function Ql(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function bp(e,t,i,r,u){var d=Ys();return d=d===null?null:{parent:Ot._currentValue,pool:d},t.memoizedState={baseLanes:i,cachePool:d},e!==null&&Wr(t,null),Qs(),_d(t),e!==null&&Ka(e,t,r,!0),t.childLanes=u,null}function go(e,t){return t=yo({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function yp(e,t,i){return ya(t,e.child,null,i),e=go(t,t.pendingProps),e.flags|=2,vn(t),t.memoizedState=null,e}function Vy(e,t,i){var r=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ke){if(r.mode==="hidden")return e=go(t,r),t.lanes=536870912,Ql(null,e);if(Js(t),(e=ht)?(e=Oh(e,Dn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Mi!==null?{id:Pn,overflow:Zn}:null,retryLane:536870912,hydrationErrors:null},i=td(e),i.return=t,t.child=i,qt=t,ht=null)):e=null,e===null)throw Di(t);return t.lanes=536870912,null}return go(t,r)}var d=e.memoizedState;if(d!==null){var y=d.dehydrated;if(Js(t),u)if(t.flags&256)t.flags&=-257,t=yp(e,t,i);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Rt||Ka(e,t,i,!1),u=(i&e.childLanes)!==0,Rt||u){if(r=ut,r!==null&&(y=xt(r,i),y!==0&&y!==d.retryLane))throw d.retryLane=y,ca(e,y),fn(r,e,y),Eu;wo(),t=yp(e,t,i)}else e=d.treeContext,ht=zn(y.nextSibling),qt=t,Ke=!0,Ri=null,Dn=!1,e!==null&&ad(t,e),t=go(t,r),t.flags|=4096;return t}return e=si(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function bo(e,t){var i=t.ref;if(i===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(o(284));(e===null||e.ref!==i)&&(t.flags|=4194816)}}function _u(e,t,i,r,u){return ha(t),i=eu(e,t,i,r,void 0,u),r=tu(),e!==null&&!Rt?(nu(e,t,u),hi(e,t,u)):(Ke&&r&&zs(t),t.flags|=1,Gt(e,t,i,u),t.child)}function Ep(e,t,i,r,u,d){return ha(t),t.updateQueue=null,i=Sd(t,r,i,u),vd(e),r=tu(),e!==null&&!Rt?(nu(e,t,d),hi(e,t,d)):(Ke&&r&&zs(t),t.flags|=1,Gt(e,t,i,d),t.child)}function _p(e,t,i,r,u){if(ha(t),t.stateNode===null){var d=Fa,y=i.contextType;typeof y=="object"&&y!==null&&(d=Ft(y)),d=new i(r,d),t.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=bu,t.stateNode=d,d._reactInternals=t,d=t.stateNode,d.props=r,d.state=t.memoizedState,d.refs={},Vs(t),y=i.contextType,d.context=typeof y=="object"&&y!==null?Ft(y):Fa,d.state=t.memoizedState,y=i.getDerivedStateFromProps,typeof y=="function"&&(gu(t,i,y,r),d.state=t.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(y=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),y!==d.state&&bu.enqueueReplaceState(d,d.state,null),Kl(t,r,d,u),Yl(),d.state=t.memoizedState),typeof d.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){d=t.stateNode;var v=t.memoizedProps,w=_a(i,v);d.props=w;var q=d.context,V=i.contextType;y=Fa,typeof V=="object"&&V!==null&&(y=Ft(V));var Q=i.getDerivedStateFromProps;V=typeof Q=="function"||typeof d.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,V||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(v||q!==y)&&rp(t,d,r,y),zi=!1;var F=t.memoizedState;d.state=F,Kl(t,r,d,u),Yl(),q=t.memoizedState,v||F!==q||zi?(typeof Q=="function"&&(gu(t,i,Q,r),q=t.memoizedState),(w=zi||lp(t,i,w,r,F,q,y))?(V||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(t.flags|=4194308)):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=q),d.props=r,d.state=q,d.context=y,r=w):(typeof d.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{d=t.stateNode,Xs(e,t),y=t.memoizedProps,V=_a(i,y),d.props=V,Q=t.pendingProps,F=d.context,q=i.contextType,w=Fa,typeof q=="object"&&q!==null&&(w=Ft(q)),v=i.getDerivedStateFromProps,(q=typeof v=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(y!==Q||F!==w)&&rp(t,d,r,w),zi=!1,F=t.memoizedState,d.state=F,Kl(t,r,d,u),Yl();var G=t.memoizedState;y!==Q||F!==G||zi||e!==null&&e.dependencies!==null&&$r(e.dependencies)?(typeof v=="function"&&(gu(t,i,v,r),G=t.memoizedState),(V=zi||lp(t,i,V,r,F,G,w)||e!==null&&e.dependencies!==null&&$r(e.dependencies))?(q||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(r,G,w),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(r,G,w)),typeof d.componentDidUpdate=="function"&&(t.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&F===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&F===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=G),d.props=r,d.state=G,d.context=w,r=V):(typeof d.componentDidUpdate!="function"||y===e.memoizedProps&&F===e.memoizedState||(t.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||y===e.memoizedProps&&F===e.memoizedState||(t.flags|=1024),r=!1)}return d=r,bo(e,t),r=(t.flags&128)!==0,d||r?(d=t.stateNode,i=r&&typeof i.getDerivedStateFromError!="function"?null:d.render(),t.flags|=1,e!==null&&r?(t.child=ya(t,e.child,null,u),t.child=ya(t,null,i,u)):Gt(e,t,i,u),t.memoizedState=d.state,e=t.child):e=hi(e,t,u),e}function vp(e,t,i,r){return da(),t.flags|=256,Gt(e,t,i,r),t.child}var vu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Su(e){return{baseLanes:e,cachePool:cd()}}function xu(e,t,i){return e=e!==null?e.childLanes&~i:0,t&&(e|=xn),e}function Sp(e,t,i){var r=t.pendingProps,u=!1,d=(t.flags&128)!==0,y;if((y=d)||(y=e!==null&&e.memoizedState===null?!1:(At.current&2)!==0),y&&(u=!0,t.flags&=-129),y=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ke){if(u?Ui(t):Hi(),(e=ht)?(e=Oh(e,Dn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Mi!==null?{id:Pn,overflow:Zn}:null,retryLane:536870912,hydrationErrors:null},i=td(e),i.return=t,t.child=i,qt=t,ht=null)):e=null,e===null)throw Di(t);return lc(e)?t.lanes=32:t.lanes=536870912,null}var v=r.children;return r=r.fallback,u?(Hi(),u=t.mode,v=yo({mode:"hidden",children:v},u),r=fa(r,u,i,null),v.return=t,r.return=t,v.sibling=r,t.child=v,r=t.child,r.memoizedState=Su(i),r.childLanes=xu(e,y,i),t.memoizedState=vu,Ql(null,r)):(Ui(t),Tu(t,v))}var w=e.memoizedState;if(w!==null&&(v=w.dehydrated,v!==null)){if(d)t.flags&256?(Ui(t),t.flags&=-257,t=Nu(e,t,i)):t.memoizedState!==null?(Hi(),t.child=e.child,t.flags|=128,t=null):(Hi(),v=r.fallback,u=t.mode,r=yo({mode:"visible",children:r.children},u),v=fa(v,u,i,null),v.flags|=2,r.return=t,v.return=t,r.sibling=v,t.child=r,ya(t,e.child,null,i),r=t.child,r.memoizedState=Su(i),r.childLanes=xu(e,y,i),t.memoizedState=vu,t=Ql(null,r));else if(Ui(t),lc(v)){if(y=v.nextSibling&&v.nextSibling.dataset,y)var q=y.dgst;y=q,r=Error(o(419)),r.stack="",r.digest=y,Ul({value:r,source:null,stack:null}),t=Nu(e,t,i)}else if(Rt||Ka(e,t,i,!1),y=(i&e.childLanes)!==0,Rt||y){if(y=ut,y!==null&&(r=xt(y,i),r!==0&&r!==w.retryLane))throw w.retryLane=r,ca(e,r),fn(y,e,r),Eu;ac(v)||wo(),t=Nu(e,t,i)}else ac(v)?(t.flags|=192,t.child=e.child,t=null):(e=w.treeContext,ht=zn(v.nextSibling),qt=t,Ke=!0,Ri=null,Dn=!1,e!==null&&ad(t,e),t=Tu(t,r.children),t.flags|=4096);return t}return u?(Hi(),v=r.fallback,u=t.mode,w=e.child,q=w.sibling,r=si(w,{mode:"hidden",children:r.children}),r.subtreeFlags=w.subtreeFlags&65011712,q!==null?v=si(q,v):(v=fa(v,u,i,null),v.flags|=2),v.return=t,r.return=t,r.sibling=v,t.child=r,Ql(null,r),r=t.child,v=e.child.memoizedState,v===null?v=Su(i):(u=v.cachePool,u!==null?(w=Ot._currentValue,u=u.parent!==w?{parent:w,pool:w}:u):u=cd(),v={baseLanes:v.baseLanes|i,cachePool:u}),r.memoizedState=v,r.childLanes=xu(e,y,i),t.memoizedState=vu,Ql(e.child,r)):(Ui(t),i=e.child,e=i.sibling,i=si(i,{mode:"visible",children:r.children}),i.return=t,i.sibling=null,e!==null&&(y=t.deletions,y===null?(t.deletions=[e],t.flags|=16):y.push(e)),t.child=i,t.memoizedState=null,i)}function Tu(e,t){return t=yo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function yo(e,t){return e=En(22,e,null,t),e.lanes=0,e}function Nu(e,t,i){return ya(t,e.child,null,i),e=Tu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function xp(e,t,i){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),qs(e.return,t,i)}function Au(e,t,i,r,u,d){var y=e.memoizedState;y===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:i,tailMode:u,treeForkCount:d}:(y.isBackwards=t,y.rendering=null,y.renderingStartTime=0,y.last=r,y.tail=i,y.tailMode=u,y.treeForkCount=d)}function Tp(e,t,i){var r=t.pendingProps,u=r.revealOrder,d=r.tail;r=r.children;var y=At.current,v=(y&2)!==0;if(v?(y=y&1|2,t.flags|=128):y&=1,S(At,y),Gt(e,t,r,i),r=Ke?Il:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&xp(e,i,t);else if(e.tag===19)xp(e,i,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(u){case"forwards":for(i=t.child,u=null;i!==null;)e=i.alternate,e!==null&&lo(e)===null&&(u=i),i=i.sibling;i=u,i===null?(u=t.child,t.child=null):(u=i.sibling,i.sibling=null),Au(t,!1,u,i,d,r);break;case"backwards":case"unstable_legacy-backwards":for(i=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&lo(e)===null){t.child=u;break}e=u.sibling,u.sibling=i,i=u,u=e}Au(t,!0,i,null,d,r);break;case"together":Au(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function hi(e,t,i){if(e!==null&&(t.dependencies=e.dependencies),Gi|=t.lanes,(i&t.childLanes)===0)if(e!==null){if(Ka(e,t,i,!1),(i&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,i=si(e,e.pendingProps),t.child=i,i.return=t;e.sibling!==null;)e=e.sibling,i=i.sibling=si(e,e.pendingProps),i.return=t;i.sibling=null}return t.child}function wu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&$r(e)))}function Xy(e,t,i){switch(t.tag){case 3:Je(t,t.stateNode.containerInfo),Li(t,Ot,e.memoizedState.cache),da();break;case 27:case 5:zt(t);break;case 4:Je(t,t.stateNode.containerInfo);break;case 10:Li(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Js(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Ui(t),t.flags|=128,null):(i&t.child.childLanes)!==0?Sp(e,t,i):(Ui(t),e=hi(e,t,i),e!==null?e.sibling:null);Ui(t);break;case 19:var u=(e.flags&128)!==0;if(r=(i&t.childLanes)!==0,r||(Ka(e,t,i,!1),r=(i&t.childLanes)!==0),u){if(r)return Tp(e,t,i);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),S(At,At.current),r)break;return null;case 22:return t.lanes=0,gp(e,t,i,t.pendingProps);case 24:Li(t,Ot,e.memoizedState.cache)}return hi(e,t,i)}function Np(e,t,i){if(e!==null)if(e.memoizedProps!==t.pendingProps)Rt=!0;else{if(!wu(e,i)&&(t.flags&128)===0)return Rt=!1,Xy(e,t,i);Rt=(e.flags&131072)!==0}else Rt=!1,Ke&&(t.flags&1048576)!==0&&id(t,Il,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=ga(t.elementType),t.type=e,typeof e=="function")Rs(e)?(r=_a(e,r),t.tag=1,t=_p(null,t,e,r,i)):(t.tag=0,t=_u(null,t,e,r,i));else{if(e!=null){var u=e.$$typeof;if(u===$){t.tag=11,t=pp(null,t,e,r,i);break e}else if(u===Y){t.tag=14,t=hp(null,t,e,r,i);break e}}throw t=oe(e)||e,Error(o(306,t,""))}}return t;case 0:return _u(e,t,t.type,t.pendingProps,i);case 1:return r=t.type,u=_a(r,t.pendingProps),_p(e,t,r,u,i);case 3:e:{if(Je(t,t.stateNode.containerInfo),e===null)throw Error(o(387));r=t.pendingProps;var d=t.memoizedState;u=d.element,Xs(e,t),Kl(t,r,null,i);var y=t.memoizedState;if(r=y.cache,Li(t,Ot,r),r!==d.cache&&Fs(t,[Ot],i,!0),Yl(),r=y.element,d.isDehydrated)if(d={element:r,isDehydrated:!1,cache:y.cache},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){t=vp(e,t,r,i);break e}else if(r!==u){u=On(Error(o(424)),t),Ul(u),t=vp(e,t,r,i);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ht=zn(e.firstChild),qt=t,Ke=!0,Ri=null,Dn=!0,i=gd(t,null,r,i),t.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(da(),r===u){t=hi(e,t,i);break e}Gt(e,t,r,i)}t=t.child}return t;case 26:return bo(e,t),e===null?(i=Bh(t.type,null,t.pendingProps,null))?t.memoizedState=i:Ke||(i=t.type,e=t.pendingProps,r=Lo(me.current).createElement(i),r[Tt]=t,r[Kt]=e,jt(r,i,e),kt(r),t.stateNode=r):t.memoizedState=Bh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return zt(t),e===null&&Ke&&(r=t.stateNode=Dh(t.type,t.pendingProps,me.current),qt=t,Dn=!0,u=ht,Xi(t.type)?(rc=u,ht=zn(r.firstChild)):ht=u),Gt(e,t,t.pendingProps.children,i),bo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ke&&((u=r=ht)&&(r=xE(r,t.type,t.pendingProps,Dn),r!==null?(t.stateNode=r,qt=t,ht=zn(r.firstChild),Dn=!1,u=!0):u=!1),u||Di(t)),zt(t),u=t.type,d=t.pendingProps,y=e!==null?e.memoizedProps:null,r=d.children,tc(u,d)?r=null:y!==null&&tc(u,y)&&(t.flags|=32),t.memoizedState!==null&&(u=eu(e,t,Uy,null,null,i),fr._currentValue=u),bo(e,t),Gt(e,t,r,i),t.child;case 6:return e===null&&Ke&&((e=i=ht)&&(i=TE(i,t.pendingProps,Dn),i!==null?(t.stateNode=i,qt=t,ht=null,e=!0):e=!1),e||Di(t)),null;case 13:return Sp(e,t,i);case 4:return Je(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ya(t,null,r,i):Gt(e,t,r,i),t.child;case 11:return pp(e,t,t.type,t.pendingProps,i);case 7:return Gt(e,t,t.pendingProps,i),t.child;case 8:return Gt(e,t,t.pendingProps.children,i),t.child;case 12:return Gt(e,t,t.pendingProps.children,i),t.child;case 10:return r=t.pendingProps,Li(t,t.type,r.value),Gt(e,t,r.children,i),t.child;case 9:return u=t.type._context,r=t.pendingProps.children,ha(t),u=Ft(u),r=r(u),t.flags|=1,Gt(e,t,r,i),t.child;case 14:return hp(e,t,t.type,t.pendingProps,i);case 15:return mp(e,t,t.type,t.pendingProps,i);case 19:return Tp(e,t,i);case 31:return Vy(e,t,i);case 22:return gp(e,t,i,t.pendingProps);case 24:return ha(t),r=Ft(Ot),e===null?(u=Ys(),u===null&&(u=ut,d=Gs(),u.pooledCache=d,d.refCount++,d!==null&&(u.pooledCacheLanes|=i),u=d),t.memoizedState={parent:r,cache:u},Vs(t),Li(t,Ot,u)):((e.lanes&i)!==0&&(Xs(e,t),Kl(t,null,null,i),Yl()),u=e.memoizedState,d=t.memoizedState,u.parent!==r?(u={parent:r,cache:r},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Li(t,Ot,r)):(r=d.cache,Li(t,Ot,r),r!==u.cache&&Fs(t,[Ot],i,!0))),Gt(e,t,t.pendingProps.children,i),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function mi(e){e.flags|=4}function ku(e,t,i,r,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(Jp())e.flags|=8192;else throw ba=to,Ks}else e.flags&=-16777217}function Ap(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Fh(t))if(Jp())e.flags|=8192;else throw ba=to,Ks}function Eo(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ce():536870912,e.lanes|=t,il|=t)}function $l(e,t){if(!Ke)switch(e.tailMode){case"hidden":t=e.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var r=null;i!==null;)i.alternate!==null&&(r=i),i=i.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function mt(e){var t=e.alternate!==null&&e.alternate.child===e.child,i=0,r=0;if(t)for(var u=e.child;u!==null;)i|=u.lanes|u.childLanes,r|=u.subtreeFlags&65011712,r|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)i|=u.lanes|u.childLanes,r|=u.subtreeFlags,r|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=r,e.childLanes=i,t}function Py(e,t,i){var r=t.pendingProps;switch(Bs(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mt(t),null;case 1:return mt(t),null;case 3:return i=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),fi(Ot),Qe(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Ya(t)?mi(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Us())),mt(t),null;case 26:var u=t.type,d=t.memoizedState;return e===null?(mi(t),d!==null?(mt(t),Ap(t,d)):(mt(t),ku(t,u,null,r,i))):d?d!==e.memoizedState?(mi(t),mt(t),Ap(t,d)):(mt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&mi(t),mt(t),ku(t,u,e,r,i)),null;case 27:if(hn(t),i=me.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&mi(t);else{if(!r){if(t.stateNode===null)throw Error(o(166));return mt(t),null}e=ce.current,Ya(t)?ld(t):(e=Dh(u,r,i),t.stateNode=e,mi(t))}return mt(t),null;case 5:if(hn(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&mi(t);else{if(!r){if(t.stateNode===null)throw Error(o(166));return mt(t),null}if(d=ce.current,Ya(t))ld(t);else{var y=Lo(me.current);switch(d){case 1:d=y.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:d=y.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":d=y.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":d=y.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":d=y.createElement("div"),d.innerHTML="<script><\/script>",d=d.removeChild(d.firstChild);break;case"select":d=typeof r.is=="string"?y.createElement("select",{is:r.is}):y.createElement("select"),r.multiple?d.multiple=!0:r.size&&(d.size=r.size);break;default:d=typeof r.is=="string"?y.createElement(u,{is:r.is}):y.createElement(u)}}d[Tt]=t,d[Kt]=r;e:for(y=t.child;y!==null;){if(y.tag===5||y.tag===6)d.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===t)break e;for(;y.sibling===null;){if(y.return===null||y.return===t)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}t.stateNode=d;e:switch(jt(d,u,r),u){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&mi(t)}}return mt(t),ku(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,i),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&mi(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(o(166));if(e=me.current,Ya(t)){if(e=t.stateNode,i=t.memoizedProps,r=null,u=qt,u!==null)switch(u.tag){case 27:case 5:r=u.memoizedProps}e[Tt]=t,e=!!(e.nodeValue===i||r!==null&&r.suppressHydrationWarning===!0||Sh(e.nodeValue,i)),e||Di(t,!0)}else e=Lo(e).createTextNode(r),e[Tt]=t,t.stateNode=e}return mt(t),null;case 31:if(i=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ya(t),i!==null){if(e===null){if(!r)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[Tt]=t}else da(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;mt(t),e=!1}else i=Us(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),e=!0;if(!e)return t.flags&256?(vn(t),t):(vn(t),null);if((t.flags&128)!==0)throw Error(o(558))}return mt(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Ya(t),r!==null&&r.dehydrated!==null){if(e===null){if(!u)throw Error(o(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(o(317));u[Tt]=t}else da(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;mt(t),u=!1}else u=Us(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(vn(t),t):(vn(t),null)}return vn(t),(t.flags&128)!==0?(t.lanes=i,t):(i=r!==null,e=e!==null&&e.memoizedState!==null,i&&(r=t.child,u=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(u=r.alternate.memoizedState.cachePool.pool),d=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(d=r.memoizedState.cachePool.pool),d!==u&&(r.flags|=2048)),i!==e&&i&&(t.child.flags|=8192),Eo(t,t.updateQueue),mt(t),null);case 4:return Qe(),e===null&&Qu(t.stateNode.containerInfo),mt(t),null;case 10:return fi(t.type),mt(t),null;case 19:if(j(At),r=t.memoizedState,r===null)return mt(t),null;if(u=(t.flags&128)!==0,d=r.rendering,d===null)if(u)$l(r,!1);else{if(St!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(d=lo(e),d!==null){for(t.flags|=128,$l(r,!1),e=d.updateQueue,t.updateQueue=e,Eo(t,e),t.subtreeFlags=0,e=i,i=t.child;i!==null;)ed(i,e),i=i.sibling;return S(At,At.current&1|2),Ke&&ui(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&yt()>To&&(t.flags|=128,u=!0,$l(r,!1),t.lanes=4194304)}else{if(!u)if(e=lo(d),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,Eo(t,e),$l(r,!0),r.tail===null&&r.tailMode==="hidden"&&!d.alternate&&!Ke)return mt(t),null}else 2*yt()-r.renderingStartTime>To&&i!==536870912&&(t.flags|=128,u=!0,$l(r,!1),t.lanes=4194304);r.isBackwards?(d.sibling=t.child,t.child=d):(e=r.last,e!==null?e.sibling=d:t.child=d,r.last=d)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=yt(),e.sibling=null,i=At.current,S(At,u?i&1|2:i&1),Ke&&ui(t,r.treeForkCount),e):(mt(t),null);case 22:case 23:return vn(t),$s(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(i&536870912)!==0&&(t.flags&128)===0&&(mt(t),t.subtreeFlags&6&&(t.flags|=8192)):mt(t),i=t.updateQueue,i!==null&&Eo(t,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==i&&(t.flags|=2048),e!==null&&j(ma),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),fi(Ot),mt(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function Zy(e,t){switch(Bs(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fi(Ot),Qe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return hn(t),null;case 31:if(t.memoizedState!==null){if(vn(t),t.alternate===null)throw Error(o(340));da()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(vn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));da()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return j(At),null;case 4:return Qe(),null;case 10:return fi(t.type),null;case 22:case 23:return vn(t),$s(),e!==null&&j(ma),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fi(Ot),null;case 25:return null;default:return null}}function wp(e,t){switch(Bs(t),t.tag){case 3:fi(Ot),Qe();break;case 26:case 27:case 5:hn(t);break;case 4:Qe();break;case 31:t.memoizedState!==null&&vn(t);break;case 13:vn(t);break;case 19:j(At);break;case 10:fi(t.type);break;case 22:case 23:vn(t),$s(),e!==null&&j(ma);break;case 24:fi(Ot)}}function Jl(e,t){try{var i=t.updateQueue,r=i!==null?i.lastEffect:null;if(r!==null){var u=r.next;i=u;do{if((i.tag&e)===e){r=void 0;var d=i.create,y=i.inst;r=d(),y.destroy=r}i=i.next}while(i!==u)}}catch(v){it(t,t.return,v)}}function qi(e,t,i){try{var r=t.updateQueue,u=r!==null?r.lastEffect:null;if(u!==null){var d=u.next;r=d;do{if((r.tag&e)===e){var y=r.inst,v=y.destroy;if(v!==void 0){y.destroy=void 0,u=t;var w=i,q=v;try{q()}catch(V){it(u,w,V)}}}r=r.next}while(r!==d)}}catch(V){it(t,t.return,V)}}function kp(e){var t=e.updateQueue;if(t!==null){var i=e.stateNode;try{yd(t,i)}catch(r){it(e,e.return,r)}}}function Cp(e,t,i){i.props=_a(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(r){it(e,t,r)}}function Wl(e,t){try{var i=e.ref;if(i!==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 i=="function"?e.refCleanup=i(r):i.current=r}}catch(u){it(e,t,u)}}function Qn(e,t){var i=e.ref,r=e.refCleanup;if(i!==null)if(typeof r=="function")try{r()}catch(u){it(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(u){it(e,t,u)}else i.current=null}function Op(e){var t=e.type,i=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":i.autoFocus&&r.focus();break e;case"img":i.src?r.src=i.src:i.srcSet&&(r.srcset=i.srcSet)}}catch(u){it(e,e.return,u)}}function Cu(e,t,i){try{var r=e.stateNode;bE(r,e.type,i,t),r[Kt]=t}catch(u){it(e,e.return,u)}}function Mp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Xi(e.type)||e.tag===4}function Ou(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Mp(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&&Xi(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Mu(e,t,i){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,t):(t=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,t.appendChild(e),i=i._reactRootContainer,i!=null||t.onclick!==null||(t.onclick=se));else if(r!==4&&(r===27&&Xi(e.type)&&(i=e.stateNode,t=null),e=e.child,e!==null))for(Mu(e,t,i),e=e.sibling;e!==null;)Mu(e,t,i),e=e.sibling}function _o(e,t,i){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?i.insertBefore(e,t):i.appendChild(e);else if(r!==4&&(r===27&&Xi(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(_o(e,t,i),e=e.sibling;e!==null;)_o(e,t,i),e=e.sibling}function Rp(e){var t=e.stateNode,i=e.memoizedProps;try{for(var r=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);jt(t,r,i),t[Tt]=e,t[Kt]=i}catch(d){it(e,e.return,d)}}var gi=!1,Dt=!1,Ru=!1,Dp=typeof WeakSet=="function"?WeakSet:Set,It=null;function Qy(e,t){if(e=e.containerInfo,Wu=Fo,e=Kf(e),Ns(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var r=i.getSelection&&i.getSelection();if(r&&r.rangeCount!==0){i=r.anchorNode;var u=r.anchorOffset,d=r.focusNode;r=r.focusOffset;try{i.nodeType,d.nodeType}catch{i=null;break e}var y=0,v=-1,w=-1,q=0,V=0,Q=e,F=null;t:for(;;){for(var G;Q!==i||u!==0&&Q.nodeType!==3||(v=y+u),Q!==d||r!==0&&Q.nodeType!==3||(w=y+r),Q.nodeType===3&&(y+=Q.nodeValue.length),(G=Q.firstChild)!==null;)F=Q,Q=G;for(;;){if(Q===e)break t;if(F===i&&++q===u&&(v=y),F===d&&++V===r&&(w=y),(G=Q.nextSibling)!==null)break;Q=F,F=Q.parentNode}Q=G}i=v===-1||w===-1?null:{start:v,end:w}}else i=null}i=i||{start:0,end:0}}else i=null;for(ec={focusedElem:e,selectionRange:i},Fo=!1,It=t;It!==null;)if(t=It,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,It=e;else for(;It!==null;){switch(t=It,d=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(i=0;i<e.length;i++)u=e[i],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,i=t,u=d.memoizedProps,d=d.memoizedState,r=i.stateNode;try{var pe=_a(i.type,u);e=r.getSnapshotBeforeUpdate(pe,d),r.__reactInternalSnapshotBeforeUpdate=e}catch(Ne){it(i,i.return,Ne)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,i=e.nodeType,i===9)ic(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":ic(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,It=e;break}It=t.return}}function Lp(e,t,i){var r=i.flags;switch(i.tag){case 0:case 11:case 15:yi(e,i),r&4&&Jl(5,i);break;case 1:if(yi(e,i),r&4)if(e=i.stateNode,t===null)try{e.componentDidMount()}catch(y){it(i,i.return,y)}else{var u=_a(i.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(y){it(i,i.return,y)}}r&64&&kp(i),r&512&&Wl(i,i.return);break;case 3:if(yi(e,i),r&64&&(e=i.updateQueue,e!==null)){if(t=null,i.child!==null)switch(i.child.tag){case 27:case 5:t=i.child.stateNode;break;case 1:t=i.child.stateNode}try{yd(e,t)}catch(y){it(i,i.return,y)}}break;case 27:t===null&&r&4&&Rp(i);case 26:case 5:yi(e,i),t===null&&r&4&&Op(i),r&512&&Wl(i,i.return);break;case 12:yi(e,i);break;case 31:yi(e,i),r&4&&Ip(e,i);break;case 13:yi(e,i),r&4&&Up(e,i),r&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=lE.bind(null,i),NE(e,i))));break;case 22:if(r=i.memoizedState!==null||gi,!r){t=t!==null&&t.memoizedState!==null||Dt,u=gi;var d=Dt;gi=r,(Dt=t)&&!d?Ei(e,i,(i.subtreeFlags&8772)!==0):yi(e,i),gi=u,Dt=d}break;case 30:break;default:yi(e,i)}}function zp(e){var t=e.alternate;t!==null&&(e.alternate=null,zp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&xl(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 bt=null,on=!1;function bi(e,t,i){for(i=i.child;i!==null;)Bp(e,t,i),i=i.sibling}function Bp(e,t,i){if(_t&&typeof _t.onCommitFiberUnmount=="function")try{_t.onCommitFiberUnmount(Ut,i)}catch{}switch(i.tag){case 26:Dt||Qn(i,t),bi(e,t,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:Dt||Qn(i,t);var r=bt,u=on;Xi(i.type)&&(bt=i.stateNode,on=!1),bi(e,t,i),sr(i.stateNode),bt=r,on=u;break;case 5:Dt||Qn(i,t);case 6:if(r=bt,u=on,bt=null,bi(e,t,i),bt=r,on=u,bt!==null)if(on)try{(bt.nodeType===9?bt.body:bt.nodeName==="HTML"?bt.ownerDocument.body:bt).removeChild(i.stateNode)}catch(d){it(i,t,d)}else try{bt.removeChild(i.stateNode)}catch(d){it(i,t,d)}break;case 18:bt!==null&&(on?(e=bt,kh(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),fl(e)):kh(bt,i.stateNode));break;case 4:r=bt,u=on,bt=i.stateNode.containerInfo,on=!0,bi(e,t,i),bt=r,on=u;break;case 0:case 11:case 14:case 15:qi(2,i,t),Dt||qi(4,i,t),bi(e,t,i);break;case 1:Dt||(Qn(i,t),r=i.stateNode,typeof r.componentWillUnmount=="function"&&Cp(i,t,r)),bi(e,t,i);break;case 21:bi(e,t,i);break;case 22:Dt=(r=Dt)||i.memoizedState!==null,bi(e,t,i),Dt=r;break;default:bi(e,t,i)}}function Ip(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{fl(e)}catch(i){it(t,t.return,i)}}}function Up(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{fl(e)}catch(i){it(t,t.return,i)}}function $y(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Dp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Dp),t;default:throw Error(o(435,e.tag))}}function vo(e,t){var i=$y(e);t.forEach(function(r){if(!i.has(r)){i.add(r);var u=rE.bind(null,e,r);r.then(u,u)}})}function sn(e,t){var i=t.deletions;if(i!==null)for(var r=0;r<i.length;r++){var u=i[r],d=e,y=t,v=y;e:for(;v!==null;){switch(v.tag){case 27:if(Xi(v.type)){bt=v.stateNode,on=!1;break e}break;case 5:bt=v.stateNode,on=!1;break e;case 3:case 4:bt=v.stateNode.containerInfo,on=!0;break e}v=v.return}if(bt===null)throw Error(o(160));Bp(d,y,u),bt=null,on=!1,d=u.alternate,d!==null&&(d.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Hp(t,e),t=t.sibling}var Fn=null;function Hp(e,t){var i=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:sn(t,e),un(e),r&4&&(qi(3,e,e.return),Jl(3,e),qi(5,e,e.return));break;case 1:sn(t,e),un(e),r&512&&(Dt||i===null||Qn(i,i.return)),r&64&&gi&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?r:i.concat(r))));break;case 26:var u=Fn;if(sn(t,e),un(e),r&512&&(Dt||i===null||Qn(i,i.return)),r&4){var d=i!==null?i.memoizedState:null;if(r=e.memoizedState,i===null)if(r===null)if(e.stateNode===null){e:{r=e.type,i=e.memoizedProps,u=u.ownerDocument||u;t:switch(r){case"title":d=u.getElementsByTagName("title")[0],(!d||d[aa]||d[Tt]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=u.createElement(r),u.head.insertBefore(d,u.querySelector("head > title"))),jt(d,r,i),d[Tt]=e,kt(d),r=d;break e;case"link":var y=Hh("link","href",u).get(r+(i.href||""));if(y){for(var v=0;v<y.length;v++)if(d=y[v],d.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&d.getAttribute("rel")===(i.rel==null?null:i.rel)&&d.getAttribute("title")===(i.title==null?null:i.title)&&d.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){y.splice(v,1);break t}}d=u.createElement(r),jt(d,r,i),u.head.appendChild(d);break;case"meta":if(y=Hh("meta","content",u).get(r+(i.content||""))){for(v=0;v<y.length;v++)if(d=y[v],d.getAttribute("content")===(i.content==null?null:""+i.content)&&d.getAttribute("name")===(i.name==null?null:i.name)&&d.getAttribute("property")===(i.property==null?null:i.property)&&d.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&d.getAttribute("charset")===(i.charSet==null?null:i.charSet)){y.splice(v,1);break t}}d=u.createElement(r),jt(d,r,i),u.head.appendChild(d);break;default:throw Error(o(468,r))}d[Tt]=e,kt(d),r=d}e.stateNode=r}else qh(u,e.type,e.stateNode);else e.stateNode=Uh(u,r,e.memoizedProps);else d!==r?(d===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):d.count--,r===null?qh(u,e.type,e.stateNode):Uh(u,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Cu(e,e.memoizedProps,i.memoizedProps)}break;case 27:sn(t,e),un(e),r&512&&(Dt||i===null||Qn(i,i.return)),i!==null&&r&4&&Cu(e,e.memoizedProps,i.memoizedProps);break;case 5:if(sn(t,e),un(e),r&512&&(Dt||i===null||Qn(i,i.return)),e.flags&32){u=e.stateNode;try{Ae(u,"")}catch(pe){it(e,e.return,pe)}}r&4&&e.stateNode!=null&&(u=e.memoizedProps,Cu(e,u,i!==null?i.memoizedProps:u)),r&1024&&(Ru=!0);break;case 6:if(sn(t,e),un(e),r&4){if(e.stateNode===null)throw Error(o(162));r=e.memoizedProps,i=e.stateNode;try{i.nodeValue=r}catch(pe){it(e,e.return,pe)}}break;case 3:if(Io=null,u=Fn,Fn=zo(t.containerInfo),sn(t,e),Fn=u,un(e),r&4&&i!==null&&i.memoizedState.isDehydrated)try{fl(t.containerInfo)}catch(pe){it(e,e.return,pe)}Ru&&(Ru=!1,qp(e));break;case 4:r=Fn,Fn=zo(e.stateNode.containerInfo),sn(t,e),un(e),Fn=r;break;case 12:sn(t,e),un(e);break;case 31:sn(t,e),un(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,vo(e,r)));break;case 13:sn(t,e),un(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(xo=yt()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,vo(e,r)));break;case 22:u=e.memoizedState!==null;var w=i!==null&&i.memoizedState!==null,q=gi,V=Dt;if(gi=q||u,Dt=V||w,sn(t,e),Dt=V,gi=q,un(e),r&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(i===null||w||gi||Dt||va(e)),i=null,t=e;;){if(t.tag===5||t.tag===26){if(i===null){w=i=t;try{if(d=w.stateNode,u)y=d.style,typeof y.setProperty=="function"?y.setProperty("display","none","important"):y.display="none";else{v=w.stateNode;var Q=w.memoizedProps.style,F=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;v.style.display=F==null||typeof F=="boolean"?"":(""+F).trim()}}catch(pe){it(w,w.return,pe)}}}else if(t.tag===6){if(i===null){w=t;try{w.stateNode.nodeValue=u?"":w.memoizedProps}catch(pe){it(w,w.return,pe)}}}else if(t.tag===18){if(i===null){w=t;try{var G=w.stateNode;u?Ch(G,!0):Ch(w.stateNode,!1)}catch(pe){it(w,w.return,pe)}}}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 e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;i===t&&(i=null),t=t.return}i===t&&(i=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(i=r.retryQueue,i!==null&&(r.retryQueue=null,vo(e,i))));break;case 19:sn(t,e),un(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,vo(e,r)));break;case 30:break;case 21:break;default:sn(t,e),un(e)}}function un(e){var t=e.flags;if(t&2){try{for(var i,r=e.return;r!==null;){if(Mp(r)){i=r;break}r=r.return}if(i==null)throw Error(o(160));switch(i.tag){case 27:var u=i.stateNode,d=Ou(e);_o(e,d,u);break;case 5:var y=i.stateNode;i.flags&32&&(Ae(y,""),i.flags&=-33);var v=Ou(e);_o(e,v,y);break;case 3:case 4:var w=i.stateNode.containerInfo,q=Ou(e);Mu(e,q,w);break;default:throw Error(o(161))}}catch(V){it(e,e.return,V)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function qp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;qp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function yi(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Lp(e,t.alternate,t),t=t.sibling}function va(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:qi(4,t,t.return),va(t);break;case 1:Qn(t,t.return);var i=t.stateNode;typeof i.componentWillUnmount=="function"&&Cp(t,t.return,i),va(t);break;case 27:sr(t.stateNode);case 26:case 5:Qn(t,t.return),va(t);break;case 22:t.memoizedState===null&&va(t);break;case 30:va(t);break;default:va(t)}e=e.sibling}}function Ei(e,t,i){for(i=i&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,u=e,d=t,y=d.flags;switch(d.tag){case 0:case 11:case 15:Ei(u,d,i),Jl(4,d);break;case 1:if(Ei(u,d,i),r=d,u=r.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(q){it(r,r.return,q)}if(r=d,u=r.updateQueue,u!==null){var v=r.stateNode;try{var w=u.shared.hiddenCallbacks;if(w!==null)for(u.shared.hiddenCallbacks=null,u=0;u<w.length;u++)bd(w[u],v)}catch(q){it(r,r.return,q)}}i&&y&64&&kp(d),Wl(d,d.return);break;case 27:Rp(d);case 26:case 5:Ei(u,d,i),i&&r===null&&y&4&&Op(d),Wl(d,d.return);break;case 12:Ei(u,d,i);break;case 31:Ei(u,d,i),i&&y&4&&Ip(u,d);break;case 13:Ei(u,d,i),i&&y&4&&Up(u,d);break;case 22:d.memoizedState===null&&Ei(u,d,i),Wl(d,d.return);break;case 30:break;default:Ei(u,d,i)}t=t.sibling}}function Du(e,t){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&Hl(i))}function Lu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Hl(e))}function Gn(e,t,i,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Fp(e,t,i,r),t=t.sibling}function Fp(e,t,i,r){var u=t.flags;switch(t.tag){case 0:case 11:case 15:Gn(e,t,i,r),u&2048&&Jl(9,t);break;case 1:Gn(e,t,i,r);break;case 3:Gn(e,t,i,r),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Hl(e)));break;case 12:if(u&2048){Gn(e,t,i,r),e=t.stateNode;try{var d=t.memoizedProps,y=d.id,v=d.onPostCommit;typeof v=="function"&&v(y,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(w){it(t,t.return,w)}}else Gn(e,t,i,r);break;case 31:Gn(e,t,i,r);break;case 13:Gn(e,t,i,r);break;case 23:break;case 22:d=t.stateNode,y=t.alternate,t.memoizedState!==null?d._visibility&2?Gn(e,t,i,r):er(e,t):d._visibility&2?Gn(e,t,i,r):(d._visibility|=2,el(e,t,i,r,(t.subtreeFlags&10256)!==0||!1)),u&2048&&Du(y,t);break;case 24:Gn(e,t,i,r),u&2048&&Lu(t.alternate,t);break;default:Gn(e,t,i,r)}}function el(e,t,i,r,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var d=e,y=t,v=i,w=r,q=y.flags;switch(y.tag){case 0:case 11:case 15:el(d,y,v,w,u),Jl(8,y);break;case 23:break;case 22:var V=y.stateNode;y.memoizedState!==null?V._visibility&2?el(d,y,v,w,u):er(d,y):(V._visibility|=2,el(d,y,v,w,u)),u&&q&2048&&Du(y.alternate,y);break;case 24:el(d,y,v,w,u),u&&q&2048&&Lu(y.alternate,y);break;default:el(d,y,v,w,u)}t=t.sibling}}function er(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var i=e,r=t,u=r.flags;switch(r.tag){case 22:er(i,r),u&2048&&Du(r.alternate,r);break;case 24:er(i,r),u&2048&&Lu(r.alternate,r);break;default:er(i,r)}t=t.sibling}}var tr=8192;function tl(e,t,i){if(e.subtreeFlags&tr)for(e=e.child;e!==null;)Gp(e,t,i),e=e.sibling}function Gp(e,t,i){switch(e.tag){case 26:tl(e,t,i),e.flags&tr&&e.memoizedState!==null&&IE(i,Fn,e.memoizedState,e.memoizedProps);break;case 5:tl(e,t,i);break;case 3:case 4:var r=Fn;Fn=zo(e.stateNode.containerInfo),tl(e,t,i),Fn=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=tr,tr=16777216,tl(e,t,i),tr=r):tl(e,t,i));break;default:tl(e,t,i)}}function jp(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 nr(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var r=t[i];It=r,Kp(r,e)}jp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Yp(e),e=e.sibling}function Yp(e){switch(e.tag){case 0:case 11:case 15:nr(e),e.flags&2048&&qi(9,e,e.return);break;case 3:nr(e);break;case 12:nr(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,So(e)):nr(e);break;default:nr(e)}}function So(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var i=0;i<t.length;i++){var r=t[i];It=r,Kp(r,e)}jp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:qi(8,t,t.return),So(t);break;case 22:i=t.stateNode,i._visibility&2&&(i._visibility&=-3,So(t));break;default:So(t)}e=e.sibling}}function Kp(e,t){for(;It!==null;){var i=It;switch(i.tag){case 0:case 11:case 15:qi(8,i,t);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var r=i.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Hl(i.memoizedState.cache)}if(r=i.child,r!==null)r.return=i,It=r;else e:for(i=e;It!==null;){r=It;var u=r.sibling,d=r.return;if(zp(r),r===i){It=null;break e}if(u!==null){u.return=d,It=u;break e}It=d}}}var Jy={getCacheForType:function(e){var t=Ft(Ot),i=t.data.get(e);return i===void 0&&(i=e(),t.data.set(e,i)),i},cacheSignal:function(){return Ft(Ot).controller.signal}},Wy=typeof WeakMap=="function"?WeakMap:Map,$e=0,ut=null,Ue=null,Ge=0,nt=0,Sn=null,Fi=!1,nl=!1,zu=!1,_i=0,St=0,Gi=0,Sa=0,Bu=0,xn=0,il=0,ir=null,cn=null,Iu=!1,xo=0,Vp=0,To=1/0,No=null,ji=null,Bt=0,Yi=null,al=null,vi=0,Uu=0,Hu=null,Xp=null,ar=0,qu=null;function Tn(){return($e&2)!==0&&Ge!==0?Ge&-Ge:z.T!==null?Vu():Oa()}function Pp(){if(xn===0)if((Ge&536870912)===0||Ke){var e=Ca;Ca<<=1,(Ca&3932160)===0&&(Ca=262144),xn=e}else xn=536870912;return e=_n.current,e!==null&&(e.flags|=32),xn}function fn(e,t,i){(e===ut&&(nt===2||nt===9)||e.cancelPendingCommit!==null)&&(ll(e,0),Ki(e,Ge,xn,!1)),st(e,i),(($e&2)===0||e!==ut)&&(e===ut&&(($e&2)===0&&(Sa|=i),St===4&&Ki(e,Ge,xn,!1)),$n(e))}function Zp(e,t,i){if(($e&6)!==0)throw Error(o(327));var r=!i&&(t&127)===0&&(t&e.expiredLanes)===0||P(e,t),u=r?nE(e,t):Gu(e,t,!0),d=r;do{if(u===0){nl&&!r&&Ki(e,t,0,!1);break}else{if(i=e.current.alternate,d&&!eE(i)){u=Gu(e,t,!1),d=!1;continue}if(u===2){if(d=t,e.errorRecoveryDisabledLanes&d)var y=0;else y=e.pendingLanes&-536870913,y=y!==0?y:y&536870912?536870912:0;if(y!==0){t=y;e:{var v=e;u=ir;var w=v.current.memoizedState.isDehydrated;if(w&&(ll(v,y).flags|=256),y=Gu(v,y,!1),y!==2){if(zu&&!w){v.errorRecoveryDisabledLanes|=d,Sa|=d,u=4;break e}d=cn,cn=u,d!==null&&(cn===null?cn=d:cn.push.apply(cn,d))}u=y}if(d=!1,u!==2)continue}}if(u===1){ll(e,0),Ki(e,t,0,!0);break}e:{switch(r=e,d=u,d){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Ki(r,t,xn,!Fi);break e;case 2:cn=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(u=xo+300-yt(),10<u)){if(Ki(r,t,xn,!Fi),C(r,0,!0)!==0)break e;vi=t,r.timeoutHandle=Ah(Qp.bind(null,r,i,cn,No,Iu,t,xn,Sa,il,Fi,d,"Throttled",-0,0),u);break e}Qp(r,i,cn,No,Iu,t,xn,Sa,il,Fi,d,null,-0,0)}}break}while(!0);$n(e)}function Qp(e,t,i,r,u,d,y,v,w,q,V,Q,F,G){if(e.timeoutHandle=-1,Q=t.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:se},Gp(t,d,Q);var pe=(d&62914560)===d?xo-yt():(d&4194048)===d?Vp-yt():0;if(pe=UE(Q,pe),pe!==null){vi=d,e.cancelPendingCommit=pe(ah.bind(null,e,t,d,i,r,u,y,v,w,V,Q,null,F,G)),Ki(e,d,y,!q);return}}ah(e,t,d,i,r,u,y,v,w)}function eE(e){for(var t=e;;){var i=t.tag;if((i===0||i===11||i===15)&&t.flags&16384&&(i=t.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var r=0;r<i.length;r++){var u=i[r],d=u.getSnapshot;u=u.value;try{if(!yn(d(),u))return!1}catch{return!1}}if(i=t.child,t.subtreeFlags&16384&&i!==null)i.return=t,t=i;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 Ki(e,t,i,r){t&=~Bu,t&=~Sa,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var u=t;0<u;){var d=31-We(u),y=1<<d;r[d]=-1,u&=~y}i!==0&&de(e,i,t)}function Ao(){return($e&6)===0?(lr(0),!1):!0}function Fu(){if(Ue!==null){if(nt===0)var e=Ue.return;else e=Ue,ci=pa=null,iu(e),Za=null,Fl=0,e=Ue;for(;e!==null;)wp(e.alternate,e),e=e.return;Ue=null}}function ll(e,t){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,_E(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),vi=0,Fu(),ut=e,Ue=i=si(e.current,null),Ge=t,nt=0,Sn=null,Fi=!1,nl=P(e,t),zu=!1,il=xn=Bu=Sa=Gi=St=0,cn=ir=null,Iu=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var u=31-We(r),d=1<<u;t|=e[u],r&=~d}return _i=t,Vr(),i}function $p(e,t){Re=null,z.H=Zl,t===Pa||t===eo?(t=pd(),nt=3):t===Ks?(t=pd(),nt=4):nt=t===Eu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Sn=t,Ue===null&&(St=1,mo(e,On(t,e.current)))}function Jp(){var e=_n.current;return e===null?!0:(Ge&4194048)===Ge?Ln===null:(Ge&62914560)===Ge||(Ge&536870912)!==0?e===Ln:!1}function Wp(){var e=z.H;return z.H=Zl,e===null?Zl:e}function eh(){var e=z.A;return z.A=Jy,e}function wo(){St=4,Fi||(Ge&4194048)!==Ge&&_n.current!==null||(nl=!0),(Gi&134217727)===0&&(Sa&134217727)===0||ut===null||Ki(ut,Ge,xn,!1)}function Gu(e,t,i){var r=$e;$e|=2;var u=Wp(),d=eh();(ut!==e||Ge!==t)&&(No=null,ll(e,t)),t=!1;var y=St;e:do try{if(nt!==0&&Ue!==null){var v=Ue,w=Sn;switch(nt){case 8:Fu(),y=6;break e;case 3:case 2:case 9:case 6:_n.current===null&&(t=!0);var q=nt;if(nt=0,Sn=null,rl(e,v,w,q),i&&nl){y=0;break e}break;default:q=nt,nt=0,Sn=null,rl(e,v,w,q)}}tE(),y=St;break}catch(V){$p(e,V)}while(!0);return t&&e.shellSuspendCounter++,ci=pa=null,$e=r,z.H=u,z.A=d,Ue===null&&(ut=null,Ge=0,Vr()),y}function tE(){for(;Ue!==null;)th(Ue)}function nE(e,t){var i=$e;$e|=2;var r=Wp(),u=eh();ut!==e||Ge!==t?(No=null,To=yt()+500,ll(e,t)):nl=P(e,t);e:do try{if(nt!==0&&Ue!==null){t=Ue;var d=Sn;t:switch(nt){case 1:nt=0,Sn=null,rl(e,t,d,1);break;case 2:case 9:if(fd(d)){nt=0,Sn=null,nh(t);break}t=function(){nt!==2&&nt!==9||ut!==e||(nt=7),$n(e)},d.then(t,t);break e;case 3:nt=7;break e;case 4:nt=5;break e;case 7:fd(d)?(nt=0,Sn=null,nh(t)):(nt=0,Sn=null,rl(e,t,d,7));break;case 5:var y=null;switch(Ue.tag){case 26:y=Ue.memoizedState;case 5:case 27:var v=Ue;if(y?Fh(y):v.stateNode.complete){nt=0,Sn=null;var w=v.sibling;if(w!==null)Ue=w;else{var q=v.return;q!==null?(Ue=q,ko(q)):Ue=null}break t}}nt=0,Sn=null,rl(e,t,d,5);break;case 6:nt=0,Sn=null,rl(e,t,d,6);break;case 8:Fu(),St=6;break e;default:throw Error(o(462))}}iE();break}catch(V){$p(e,V)}while(!0);return ci=pa=null,z.H=r,z.A=u,$e=i,Ue!==null?0:(ut=null,Ge=0,Vr(),St)}function iE(){for(;Ue!==null&&!vl();)th(Ue)}function th(e){var t=Np(e.alternate,e,_i);e.memoizedProps=e.pendingProps,t===null?ko(e):Ue=t}function nh(e){var t=e,i=t.alternate;switch(t.tag){case 15:case 0:t=Ep(i,t,t.pendingProps,t.type,void 0,Ge);break;case 11:t=Ep(i,t,t.pendingProps,t.type.render,t.ref,Ge);break;case 5:iu(t);default:wp(i,t),t=Ue=ed(t,_i),t=Np(i,t,_i)}e.memoizedProps=e.pendingProps,t===null?ko(e):Ue=t}function rl(e,t,i,r){ci=pa=null,iu(t),Za=null,Fl=0;var u=t.return;try{if(Ky(e,u,t,i,Ge)){St=1,mo(e,On(i,e.current)),Ue=null;return}}catch(d){if(u!==null)throw Ue=u,d;St=1,mo(e,On(i,e.current)),Ue=null;return}t.flags&32768?(Ke||r===1?e=!0:nl||(Ge&536870912)!==0?e=!1:(Fi=e=!0,(r===2||r===9||r===3||r===6)&&(r=_n.current,r!==null&&r.tag===13&&(r.flags|=16384))),ih(t,e)):ko(t)}function ko(e){var t=e;do{if((t.flags&32768)!==0){ih(t,Fi);return}e=t.return;var i=Py(t.alternate,t,_i);if(i!==null){Ue=i;return}if(t=t.sibling,t!==null){Ue=t;return}Ue=t=e}while(t!==null);St===0&&(St=5)}function ih(e,t){do{var i=Zy(e.alternate,e);if(i!==null){i.flags&=32767,Ue=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!t&&(e=e.sibling,e!==null)){Ue=e;return}Ue=e=i}while(e!==null);St=6,Ue=null}function ah(e,t,i,r,u,d,y,v,w){e.cancelPendingCommit=null;do Co();while(Bt!==0);if(($e&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(d=t.lanes|t.childLanes,d|=Os,he(e,i,d,y,v,w),e===ut&&(Ue=ut=null,Ge=0),al=t,Yi=e,vi=i,Uu=d,Hu=u,Xp=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,oE(Te,function(){return uh(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=z.T,z.T=null,u=J.p,J.p=2,y=$e,$e|=4;try{Qy(e,t,i)}finally{$e=y,J.p=u,z.T=r}}Bt=1,lh(),rh(),oh()}}function lh(){if(Bt===1){Bt=0;var e=Yi,t=al,i=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||i){i=z.T,z.T=null;var r=J.p;J.p=2;var u=$e;$e|=4;try{Hp(t,e);var d=ec,y=Kf(e.containerInfo),v=d.focusedElem,w=d.selectionRange;if(y!==v&&v&&v.ownerDocument&&Yf(v.ownerDocument.documentElement,v)){if(w!==null&&Ns(v)){var q=w.start,V=w.end;if(V===void 0&&(V=q),"selectionStart"in v)v.selectionStart=q,v.selectionEnd=Math.min(V,v.value.length);else{var Q=v.ownerDocument||document,F=Q&&Q.defaultView||window;if(F.getSelection){var G=F.getSelection(),pe=v.textContent.length,Ne=Math.min(w.start,pe),rt=w.end===void 0?Ne:Math.min(w.end,pe);!G.extend&&Ne>rt&&(y=rt,rt=Ne,Ne=y);var L=jf(v,Ne),M=jf(v,rt);if(L&&M&&(G.rangeCount!==1||G.anchorNode!==L.node||G.anchorOffset!==L.offset||G.focusNode!==M.node||G.focusOffset!==M.offset)){var H=Q.createRange();H.setStart(L.node,L.offset),G.removeAllRanges(),Ne>rt?(G.addRange(H),G.extend(M.node,M.offset)):(H.setEnd(M.node,M.offset),G.addRange(H))}}}}for(Q=[],G=v;G=G.parentNode;)G.nodeType===1&&Q.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<Q.length;v++){var Z=Q[v];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}Fo=!!Wu,ec=Wu=null}finally{$e=u,J.p=r,z.T=i}}e.current=t,Bt=2}}function rh(){if(Bt===2){Bt=0;var e=Yi,t=al,i=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||i){i=z.T,z.T=null;var r=J.p;J.p=2;var u=$e;$e|=4;try{Lp(e,t.alternate,t)}finally{$e=u,J.p=r,z.T=i}}Bt=3}}function oh(){if(Bt===4||Bt===3){Bt=0,wa();var e=Yi,t=al,i=vi,r=Xp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Bt=5:(Bt=0,al=Yi=null,sh(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(ji=null),ii(i),t=t.stateNode,_t&&typeof _t.onCommitFiberRoot=="function")try{_t.onCommitFiberRoot(Ut,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=z.T,u=J.p,J.p=2,z.T=null;try{for(var d=e.onRecoverableError,y=0;y<r.length;y++){var v=r[y];d(v.value,{componentStack:v.stack})}}finally{z.T=t,J.p=u}}(vi&3)!==0&&Co(),$n(e),u=e.pendingLanes,(i&261930)!==0&&(u&42)!==0?e===qu?ar++:(ar=0,qu=e):ar=0,lr(0)}}function sh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Hl(t)))}function Co(){return lh(),rh(),oh(),uh()}function uh(){if(Bt!==5)return!1;var e=Yi,t=Uu;Uu=0;var i=ii(vi),r=z.T,u=J.p;try{J.p=32>i?32:i,z.T=null,i=Hu,Hu=null;var d=Yi,y=vi;if(Bt=0,al=Yi=null,vi=0,($e&6)!==0)throw Error(o(331));var v=$e;if($e|=4,Yp(d.current),Fp(d,d.current,y,i),$e=v,lr(0,!1),_t&&typeof _t.onPostCommitFiberRoot=="function")try{_t.onPostCommitFiberRoot(Ut,d)}catch{}return!0}finally{J.p=u,z.T=r,sh(e,t)}}function ch(e,t,i){t=On(i,t),t=yu(e.stateNode,t,2),e=Ii(e,t,2),e!==null&&(st(e,2),$n(e))}function it(e,t,i){if(e.tag===3)ch(e,e,i);else for(;t!==null;){if(t.tag===3){ch(t,e,i);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(ji===null||!ji.has(r))){e=On(i,e),i=fp(2),r=Ii(t,i,2),r!==null&&(dp(i,r,t,e),st(r,2),$n(r));break}}t=t.return}}function ju(e,t,i){var r=e.pingCache;if(r===null){r=e.pingCache=new Wy;var u=new Set;r.set(t,u)}else u=r.get(t),u===void 0&&(u=new Set,r.set(t,u));u.has(i)||(zu=!0,u.add(i),e=aE.bind(null,e,t,i),t.then(e,e))}function aE(e,t,i){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,ut===e&&(Ge&i)===i&&(St===4||St===3&&(Ge&62914560)===Ge&&300>yt()-xo?($e&2)===0&&ll(e,0):Bu|=i,il===Ge&&(il=0)),$n(e)}function fh(e,t){t===0&&(t=Ce()),e=ca(e,t),e!==null&&(st(e,t),$n(e))}function lE(e){var t=e.memoizedState,i=0;t!==null&&(i=t.retryLane),fh(e,i)}function rE(e,t){var i=0;switch(e.tag){case 31:case 13:var r=e.stateNode,u=e.memoizedState;u!==null&&(i=u.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(o(314))}r!==null&&r.delete(t),fh(e,i)}function oE(e,t){return ni(e,t)}var Oo=null,ol=null,Yu=!1,Mo=!1,Ku=!1,Vi=0;function $n(e){e!==ol&&e.next===null&&(ol===null?Oo=ol=e:ol=ol.next=e),Mo=!0,Yu||(Yu=!0,uE())}function lr(e,t){if(!Ku&&Mo){Ku=!0;do for(var i=!1,r=Oo;r!==null;){if(e!==0){var u=r.pendingLanes;if(u===0)var d=0;else{var y=r.suspendedLanes,v=r.pingedLanes;d=(1<<31-We(42|e)+1)-1,d&=u&~(y&~v),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(i=!0,mh(r,d))}else d=Ge,d=C(r,r===ut?d:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(d&3)===0||P(r,d)||(i=!0,mh(r,d));r=r.next}while(i);Ku=!1}}function sE(){dh()}function dh(){Mo=Yu=!1;var e=0;Vi!==0&&EE()&&(e=Vi);for(var t=yt(),i=null,r=Oo;r!==null;){var u=r.next,d=ph(r,t);d===0?(r.next=null,i===null?Oo=u:i.next=u,u===null&&(ol=i)):(i=r,(e!==0||(d&3)!==0)&&(Mo=!0)),r=u}Bt!==0&&Bt!==5||lr(e),Vi!==0&&(Vi=0)}function ph(e,t){for(var i=e.suspendedLanes,r=e.pingedLanes,u=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var y=31-We(d),v=1<<y,w=u[y];w===-1?((v&i)===0||(v&r)!==0)&&(u[y]=fe(v,t)):w<=t&&(e.expiredLanes|=v),d&=~v}if(t=ut,i=Ge,i=C(e,e===t?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,i===0||e===t&&(nt===2||nt===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&ta(r),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||P(e,i)){if(t=i&-i,t===e.callbackPriority)return t;switch(r!==null&&ta(r),ii(i)){case 2:case 8:i=le;break;case 32:i=Te;break;case 268435456:i=Xe;break;default:i=Te}return r=hh.bind(null,e),i=ni(i,r),e.callbackPriority=t,e.callbackNode=i,t}return r!==null&&r!==null&&ta(r),e.callbackPriority=2,e.callbackNode=null,2}function hh(e,t){if(Bt!==0&&Bt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(Co()&&e.callbackNode!==i)return null;var r=Ge;return r=C(e,e===ut?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Zp(e,r,t),ph(e,yt()),e.callbackNode!=null&&e.callbackNode===i?hh.bind(null,e):null)}function mh(e,t){if(Co())return null;Zp(e,t,!0)}function uE(){vE(function(){($e&6)!==0?ni(K,sE):dh()})}function Vu(){if(Vi===0){var e=Va;e===0&&(e=na,na<<=1,(na&261888)===0&&(na=256)),Vi=e}return Vi}function gh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ci(""+e)}function bh(e,t){var i=t.ownerDocument.createElement("input");return i.name=t.name,i.value=t.value,e.id&&i.setAttribute("form",e.id),t.parentNode.insertBefore(i,t),e=new FormData(e),i.parentNode.removeChild(i),e}function cE(e,t,i,r,u){if(t==="submit"&&i&&i.stateNode===u){var d=gh((u[Kt]||null).action),y=r.submitter;y&&(t=(t=y[Kt]||null)?gh(t.formAction):y.getAttribute("formAction"),t!==null&&(d=t,y=null));var v=new Gr("action","action",null,r,u);e.push({event:v,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Vi!==0){var w=y?bh(u,y):new FormData(u);du(i,{pending:!0,data:w,method:u.method,action:d},null,w)}}else typeof d=="function"&&(v.preventDefault(),w=y?bh(u,y):new FormData(u),du(i,{pending:!0,data:w,method:u.method,action:d},d,w))},currentTarget:u}]})}}for(var Xu=0;Xu<Cs.length;Xu++){var Pu=Cs[Xu],fE=Pu.toLowerCase(),dE=Pu[0].toUpperCase()+Pu.slice(1);qn(fE,"on"+dE)}qn(Pf,"onAnimationEnd"),qn(Zf,"onAnimationIteration"),qn(Qf,"onAnimationStart"),qn("dblclick","onDoubleClick"),qn("focusin","onFocus"),qn("focusout","onBlur"),qn(ky,"onTransitionRun"),qn(Cy,"onTransitionStart"),qn(Oy,"onTransitionCancel"),qn($f,"onTransitionEnd"),te("onMouseEnter",["mouseout","mouseover"]),te("onMouseLeave",["mouseout","mouseover"]),te("onPointerEnter",["pointerout","pointerover"]),te("onPointerLeave",["pointerout","pointerover"]),li("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),li("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),li("onBeforeInput",["compositionend","keypress","textInput","paste"]),li("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),li("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),li("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var rr="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(" "),pE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(rr));function yh(e,t){t=(t&4)!==0;for(var i=0;i<e.length;i++){var r=e[i],u=r.event;r=r.listeners;e:{var d=void 0;if(t)for(var y=r.length-1;0<=y;y--){var v=r[y],w=v.instance,q=v.currentTarget;if(v=v.listener,w!==d&&u.isPropagationStopped())break e;d=v,u.currentTarget=q;try{d(u)}catch(V){Kr(V)}u.currentTarget=null,d=w}else for(y=0;y<r.length;y++){if(v=r[y],w=v.instance,q=v.currentTarget,v=v.listener,w!==d&&u.isPropagationStopped())break e;d=v,u.currentTarget=q;try{d(u)}catch(V){Kr(V)}u.currentTarget=null,d=w}}}}function He(e,t){var i=t[Sl];i===void 0&&(i=t[Sl]=new Set);var r=e+"__bubble";i.has(r)||(Eh(t,e,2,!1),i.add(r))}function Zu(e,t,i){var r=0;t&&(r|=4),Eh(i,e,r,t)}var Ro="_reactListening"+Math.random().toString(36).slice(2);function Qu(e){if(!e[Ro]){e[Ro]=!0,Lr.forEach(function(i){i!=="selectionchange"&&(pE.has(i)||Zu(i,!1,e),Zu(i,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ro]||(t[Ro]=!0,Zu("selectionchange",!1,t))}}function Eh(e,t,i,r){switch(Ph(t)){case 2:var u=FE;break;case 8:u=GE;break;default:u=fc}i=u.bind(null,t,i,e),u=void 0,!gs||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),r?u!==void 0?e.addEventListener(t,i,{capture:!0,passive:u}):e.addEventListener(t,i,!0):u!==void 0?e.addEventListener(t,i,{passive:u}):e.addEventListener(t,i,!1)}function $u(e,t,i,r,u){var d=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var y=r.tag;if(y===3||y===4){var v=r.stateNode.containerInfo;if(v===u)break;if(y===4)for(y=r.return;y!==null;){var w=y.tag;if((w===3||w===4)&&y.stateNode.containerInfo===u)return;y=y.return}for(;v!==null;){if(y=Jt(v),y===null)return;if(w=y.tag,w===5||w===6||w===26||w===27){r=d=y;continue e}v=v.parentNode}}r=r.return}Ur(function(){var q=d,V=Me(i),Q=[];e:{var F=Jf.get(e);if(F!==void 0){var G=Gr,pe=e;switch(e){case"keypress":if(qr(i)===0)break e;case"keydown":case"keyup":G=ry;break;case"focusin":pe="focus",G=_s;break;case"focusout":pe="blur",G=_s;break;case"beforeblur":case"afterblur":G=_s;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=wf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=Pb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=uy;break;case Pf:case Zf:case Qf:G=$b;break;case $f:G=fy;break;case"scroll":case"scrollend":G=Vb;break;case"wheel":G=py;break;case"copy":case"cut":case"paste":G=Wb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=Cf;break;case"toggle":case"beforetoggle":G=my}var Ne=(t&4)!==0,rt=!Ne&&(e==="scroll"||e==="scrollend"),L=Ne?F!==null?F+"Capture":null:F;Ne=[];for(var M=q,H;M!==null;){var Z=M;if(H=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||H===null||L===null||(Z=kl(M,L),Z!=null&&Ne.push(or(M,Z,H))),rt)break;M=M.return}0<Ne.length&&(F=new G(F,pe,null,i,V),Q.push({event:F,listeners:Ne}))}}if((t&7)===0){e:{if(F=e==="mouseover"||e==="pointerover",G=e==="mouseout"||e==="pointerout",F&&i!==ge&&(pe=i.relatedTarget||i.fromElement)&&(Jt(pe)||pe[Ni]))break e;if((G||F)&&(F=V.window===V?V:(F=V.ownerDocument)?F.defaultView||F.parentWindow:window,G?(pe=i.relatedTarget||i.toElement,G=q,pe=pe?Jt(pe):null,pe!==null&&(rt=f(pe),Ne=pe.tag,pe!==rt||Ne!==5&&Ne!==27&&Ne!==6)&&(pe=null)):(G=null,pe=q),G!==pe)){if(Ne=wf,Z="onMouseLeave",L="onMouseEnter",M="mouse",(e==="pointerout"||e==="pointerover")&&(Ne=Cf,Z="onPointerLeave",L="onPointerEnter",M="pointer"),rt=G==null?F:Ai(G),H=pe==null?F:Ai(pe),F=new Ne(Z,M+"leave",G,i,V),F.target=rt,F.relatedTarget=H,Z=null,Jt(V)===q&&(Ne=new Ne(L,M+"enter",pe,i,V),Ne.target=H,Ne.relatedTarget=rt,Z=Ne),rt=Z,G&&pe)t:{for(Ne=hE,L=G,M=pe,H=0,Z=L;Z;Z=Ne(Z))H++;Z=0;for(var ve=M;ve;ve=Ne(ve))Z++;for(;0<H-Z;)L=Ne(L),H--;for(;0<Z-H;)M=Ne(M),Z--;for(;H--;){if(L===M||M!==null&&L===M.alternate){Ne=L;break t}L=Ne(L),M=Ne(M)}Ne=null}else Ne=null;G!==null&&_h(Q,F,G,Ne,!1),pe!==null&&rt!==null&&_h(Q,rt,pe,Ne,!0)}}e:{if(F=q?Ai(q):window,G=F.nodeName&&F.nodeName.toLowerCase(),G==="select"||G==="input"&&F.type==="file")var Pe=If;else if(zf(F))if(Uf)Pe=Ny;else{Pe=xy;var be=Sy}else G=F.nodeName,!G||G.toLowerCase()!=="input"||F.type!=="checkbox"&&F.type!=="radio"?q&&ki(q.elementType)&&(Pe=If):Pe=Ty;if(Pe&&(Pe=Pe(e,q))){Bf(Q,Pe,i,V);break e}be&&be(e,F,q),e==="focusout"&&q&&F.type==="number"&&q.memoizedProps.value!=null&&za(F,"number",F.value)}switch(be=q?Ai(q):window,e){case"focusin":(zf(be)||be.contentEditable==="true")&&(Ua=be,As=q,Bl=null);break;case"focusout":Bl=As=Ua=null;break;case"mousedown":ws=!0;break;case"contextmenu":case"mouseup":case"dragend":ws=!1,Vf(Q,i,V);break;case"selectionchange":if(wy)break;case"keydown":case"keyup":Vf(Q,i,V)}var De;if(Ss)e:{switch(e){case"compositionstart":var je="onCompositionStart";break e;case"compositionend":je="onCompositionEnd";break e;case"compositionupdate":je="onCompositionUpdate";break e}je=void 0}else Ia?Df(e,i)&&(je="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(je="onCompositionStart");je&&(Of&&i.locale!=="ko"&&(Ia||je!=="onCompositionStart"?je==="onCompositionEnd"&&Ia&&(De=Nf()):(Oi=V,bs="value"in Oi?Oi.value:Oi.textContent,Ia=!0)),be=Do(q,je),0<be.length&&(je=new kf(je,e,null,i,V),Q.push({event:je,listeners:be}),De?je.data=De:(De=Lf(i),De!==null&&(je.data=De)))),(De=by?yy(e,i):Ey(e,i))&&(je=Do(q,"onBeforeInput"),0<je.length&&(be=new kf("onBeforeInput","beforeinput",null,i,V),Q.push({event:be,listeners:je}),be.data=De)),cE(Q,e,q,i,V)}yh(Q,t)})}function or(e,t,i){return{instance:e,listener:t,currentTarget:i}}function Do(e,t){for(var i=t+"Capture",r=[];e!==null;){var u=e,d=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||d===null||(u=kl(e,i),u!=null&&r.unshift(or(e,u,d)),u=kl(e,t),u!=null&&r.push(or(e,u,d))),e.tag===3)return r;e=e.return}return[]}function hE(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function _h(e,t,i,r,u){for(var d=t._reactName,y=[];i!==null&&i!==r;){var v=i,w=v.alternate,q=v.stateNode;if(v=v.tag,w!==null&&w===r)break;v!==5&&v!==26&&v!==27||q===null||(w=q,u?(q=kl(i,d),q!=null&&y.unshift(or(i,q,w))):u||(q=kl(i,d),q!=null&&y.push(or(i,q,w)))),i=i.return}y.length!==0&&e.push({event:t,listeners:y})}var mE=/\r\n?/g,gE=/\u0000|\uFFFD/g;function vh(e){return(typeof e=="string"?e:""+e).replace(mE,`
49
+ `).replace(gE,"")}function Sh(e,t){return t=vh(t),vh(e)===t}function lt(e,t,i,r,u,d){switch(i){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Ae(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Ae(e,""+r);break;case"className":gn(e,"class",r);break;case"tabIndex":gn(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":gn(e,i,r);break;case"style":tt(e,r,d);break;case"data":if(t!=="object"){gn(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||i!=="href")){e.removeAttribute(i);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(i);break}r=Ci(""+r),e.setAttribute(i,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(i,"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 d=="function"&&(i==="formAction"?(t!=="input"&&lt(e,t,"name",u.name,u,null),lt(e,t,"formEncType",u.formEncType,u,null),lt(e,t,"formMethod",u.formMethod,u,null),lt(e,t,"formTarget",u.formTarget,u,null)):(lt(e,t,"encType",u.encType,u,null),lt(e,t,"method",u.method,u,null),lt(e,t,"target",u.target,u,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(i);break}r=Ci(""+r),e.setAttribute(i,r);break;case"onClick":r!=null&&(e.onclick=se);break;case"onScroll":r!=null&&He("scroll",e);break;case"onScrollEnd":r!=null&&He("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(o(61));if(i=r.__html,i!=null){if(u.children!=null)throw Error(o(60));e.innerHTML=i}}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}i=Ci(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);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(i,""+r):e.removeAttribute(i);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(i,""):e.removeAttribute(i);break;case"capture":case"download":r===!0?e.setAttribute(i,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(i,r):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(i,r):e.removeAttribute(i);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(i):e.setAttribute(i,r);break;case"popover":He("beforetoggle",e),He("toggle",e),Vt(e,"popover",r);break;case"xlinkActuate":an(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":an(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":an(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":an(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":an(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":an(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":an(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":an(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":an(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Vt(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=ri.get(i)||i,Vt(e,i,r))}}function Ju(e,t,i,r,u,d){switch(i){case"style":tt(e,r,d);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(o(61));if(i=r.__html,i!=null){if(u.children!=null)throw Error(o(60));e.innerHTML=i}}break;case"children":typeof r=="string"?Ae(e,r):(typeof r=="number"||typeof r=="bigint")&&Ae(e,""+r);break;case"onScroll":r!=null&&He("scroll",e);break;case"onScrollEnd":r!=null&&He("scrollend",e);break;case"onClick":r!=null&&(e.onclick=se);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!la.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(u=i.endsWith("Capture"),t=i.slice(2,u?i.length-7:void 0),d=e[Kt]||null,d=d!=null?d[i]:null,typeof d=="function"&&e.removeEventListener(t,d,u),typeof r=="function")){typeof d!="function"&&d!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(t,r,u);break e}i in e?e[i]=r:r===!0?e.setAttribute(i,""):Vt(e,i,r)}}}function jt(e,t,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":He("error",e),He("load",e);var r=!1,u=!1,d;for(d in i)if(i.hasOwnProperty(d)){var y=i[d];if(y!=null)switch(d){case"src":r=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:lt(e,t,d,y,i,null)}}u&&lt(e,t,"srcSet",i.srcSet,i,null),r&&lt(e,t,"src",i.src,i,null);return;case"input":He("invalid",e);var v=d=y=u=null,w=null,q=null;for(r in i)if(i.hasOwnProperty(r)){var V=i[r];if(V!=null)switch(r){case"name":u=V;break;case"type":y=V;break;case"checked":w=V;break;case"defaultChecked":q=V;break;case"value":d=V;break;case"defaultValue":v=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(o(137,t));break;default:lt(e,t,r,V,i,null)}}ra(e,d,v,w,q,y,u,!1);return;case"select":He("invalid",e),r=y=d=null;for(u in i)if(i.hasOwnProperty(u)&&(v=i[u],v!=null))switch(u){case"value":d=v;break;case"defaultValue":y=v;break;case"multiple":r=v;default:lt(e,t,u,v,i,null)}t=d,i=y,e.multiple=!!r,t!=null?Ht(e,!!r,t,!1):i!=null&&Ht(e,!!r,i,!0);return;case"textarea":He("invalid",e),d=u=r=null;for(y in i)if(i.hasOwnProperty(y)&&(v=i[y],v!=null))switch(y){case"value":r=v;break;case"defaultValue":u=v;break;case"children":d=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(o(91));break;default:lt(e,t,y,v,i,null)}Ba(e,r,u,d);return;case"option":for(w in i)if(i.hasOwnProperty(w)&&(r=i[w],r!=null))switch(w){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:lt(e,t,w,r,i,null)}return;case"dialog":He("beforetoggle",e),He("toggle",e),He("cancel",e),He("close",e);break;case"iframe":case"object":He("load",e);break;case"video":case"audio":for(r=0;r<rr.length;r++)He(rr[r],e);break;case"image":He("error",e),He("load",e);break;case"details":He("toggle",e);break;case"embed":case"source":case"link":He("error",e),He("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(q in i)if(i.hasOwnProperty(q)&&(r=i[q],r!=null))switch(q){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:lt(e,t,q,r,i,null)}return;default:if(ki(t)){for(V in i)i.hasOwnProperty(V)&&(r=i[V],r!==void 0&&Ju(e,t,V,r,i,void 0));return}}for(v in i)i.hasOwnProperty(v)&&(r=i[v],r!=null&&lt(e,t,v,r,i,null))}function bE(e,t,i,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,d=null,y=null,v=null,w=null,q=null,V=null;for(G in i){var Q=i[G];if(i.hasOwnProperty(G)&&Q!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":w=Q;default:r.hasOwnProperty(G)||lt(e,t,G,null,r,Q)}}for(var F in r){var G=r[F];if(Q=i[F],r.hasOwnProperty(F)&&(G!=null||Q!=null))switch(F){case"type":d=G;break;case"name":u=G;break;case"checked":q=G;break;case"defaultChecked":V=G;break;case"value":y=G;break;case"defaultValue":v=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(o(137,t));break;default:G!==Q&&lt(e,t,F,G,r,Q)}}Nl(e,y,v,w,q,V,d,u);return;case"select":G=y=v=F=null;for(d in i)if(w=i[d],i.hasOwnProperty(d)&&w!=null)switch(d){case"value":break;case"multiple":G=w;default:r.hasOwnProperty(d)||lt(e,t,d,null,r,w)}for(u in r)if(d=r[u],w=i[u],r.hasOwnProperty(u)&&(d!=null||w!=null))switch(u){case"value":F=d;break;case"defaultValue":v=d;break;case"multiple":y=d;default:d!==w&&lt(e,t,u,d,r,w)}t=v,i=y,r=G,F!=null?Ht(e,!!i,F,!1):!!r!=!!i&&(t!=null?Ht(e,!!i,t,!0):Ht(e,!!i,i?[]:"",!1));return;case"textarea":G=F=null;for(v in i)if(u=i[v],i.hasOwnProperty(v)&&u!=null&&!r.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:lt(e,t,v,null,r,u)}for(y in r)if(u=r[y],d=i[y],r.hasOwnProperty(y)&&(u!=null||d!=null))switch(y){case"value":F=u;break;case"defaultValue":G=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(o(91));break;default:u!==d&&lt(e,t,y,u,r,d)}Br(e,F,G);return;case"option":for(var pe in i)if(F=i[pe],i.hasOwnProperty(pe)&&F!=null&&!r.hasOwnProperty(pe))switch(pe){case"selected":e.selected=!1;break;default:lt(e,t,pe,null,r,F)}for(w in r)if(F=r[w],G=i[w],r.hasOwnProperty(w)&&F!==G&&(F!=null||G!=null))switch(w){case"selected":e.selected=F&&typeof F!="function"&&typeof F!="symbol";break;default:lt(e,t,w,F,r,G)}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 Ne in i)F=i[Ne],i.hasOwnProperty(Ne)&&F!=null&&!r.hasOwnProperty(Ne)&&lt(e,t,Ne,null,r,F);for(q in r)if(F=r[q],G=i[q],r.hasOwnProperty(q)&&F!==G&&(F!=null||G!=null))switch(q){case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(o(137,t));break;default:lt(e,t,q,F,r,G)}return;default:if(ki(t)){for(var rt in i)F=i[rt],i.hasOwnProperty(rt)&&F!==void 0&&!r.hasOwnProperty(rt)&&Ju(e,t,rt,void 0,r,F);for(V in r)F=r[V],G=i[V],!r.hasOwnProperty(V)||F===G||F===void 0&&G===void 0||Ju(e,t,V,F,r,G);return}}for(var L in i)F=i[L],i.hasOwnProperty(L)&&F!=null&&!r.hasOwnProperty(L)&&lt(e,t,L,null,r,F);for(Q in r)F=r[Q],G=i[Q],!r.hasOwnProperty(Q)||F===G||F==null&&G==null||lt(e,t,Q,F,r,G)}function xh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function yE(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,i=performance.getEntriesByType("resource"),r=0;r<i.length;r++){var u=i[r],d=u.transferSize,y=u.initiatorType,v=u.duration;if(d&&v&&xh(y)){for(y=0,v=u.responseEnd,r+=1;r<i.length;r++){var w=i[r],q=w.startTime;if(q>v)break;var V=w.transferSize,Q=w.initiatorType;V&&xh(Q)&&(w=w.responseEnd,y+=V*(w<v?1:(v-q)/(w-q)))}if(--r,t+=8*(d+y)/(u.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 Wu=null,ec=null;function Lo(e){return e.nodeType===9?e:e.ownerDocument}function Th(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 Nh(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 tc(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 nc=null;function EE(){var e=window.event;return e&&e.type==="popstate"?e===nc?!1:(nc=e,!0):(nc=null,!1)}var Ah=typeof setTimeout=="function"?setTimeout:void 0,_E=typeof clearTimeout=="function"?clearTimeout:void 0,wh=typeof Promise=="function"?Promise:void 0,vE=typeof queueMicrotask=="function"?queueMicrotask:typeof wh<"u"?function(e){return wh.resolve(null).then(e).catch(SE)}:Ah;function SE(e){setTimeout(function(){throw e})}function Xi(e){return e==="head"}function kh(e,t){var i=t,r=0;do{var u=i.nextSibling;if(e.removeChild(i),u&&u.nodeType===8)if(i=u.data,i==="/$"||i==="/&"){if(r===0){e.removeChild(u),fl(t);return}r--}else if(i==="$"||i==="$?"||i==="$~"||i==="$!"||i==="&")r++;else if(i==="html")sr(e.ownerDocument.documentElement);else if(i==="head"){i=e.ownerDocument.head,sr(i);for(var d=i.firstChild;d;){var y=d.nextSibling,v=d.nodeName;d[aa]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&d.rel.toLowerCase()==="stylesheet"||i.removeChild(d),d=y}}else i==="body"&&sr(e.ownerDocument.body);i=u}while(i);fl(t)}function Ch(e,t){var i=e;e=0;do{var r=i.nextSibling;if(i.nodeType===1?t?(i._stashedDisplay=i.style.display,i.style.display="none"):(i.style.display=i._stashedDisplay||"",i.getAttribute("style")===""&&i.removeAttribute("style")):i.nodeType===3&&(t?(i._stashedText=i.nodeValue,i.nodeValue=""):i.nodeValue=i._stashedText||""),r&&r.nodeType===8)if(i=r.data,i==="/$"){if(e===0)break;e--}else i!=="$"&&i!=="$?"&&i!=="$~"&&i!=="$!"||e++;i=r}while(i)}function ic(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var i=t;switch(t=t.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":ic(i),xl(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function xE(e,t,i,r){for(;e.nodeType===1;){var u=i;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[aa])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var d=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=zn(e.nextSibling),e===null)break}return null}function TE(e,t,i){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=zn(e.nextSibling),e===null))return null;return e}function Oh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=zn(e.nextSibling),e===null))return null;return e}function ac(e){return e.data==="$?"||e.data==="$~"}function lc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function NE(e,t){var i=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||i.readyState!=="loading")t();else{var r=function(){t(),i.removeEventListener("DOMContentLoaded",r)};i.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function zn(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 rc=null;function Mh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"||i==="/&"){if(t===0)return zn(e.nextSibling);t--}else i!=="$"&&i!=="$!"&&i!=="$?"&&i!=="$~"&&i!=="&"||t++}e=e.nextSibling}return null}function Rh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"){if(t===0)return e;t--}else i!=="/$"&&i!=="/&"||t++}e=e.previousSibling}return null}function Dh(e,t,i){switch(t=Lo(i),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function sr(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);xl(e)}var Bn=new Map,Lh=new Set;function zo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Si=J.d;J.d={f:AE,r:wE,D:kE,C:CE,L:OE,m:ME,X:DE,S:RE,M:LE};function AE(){var e=Si.f(),t=Ao();return e||t}function wE(e){var t=ai(e);t!==null&&t.tag===5&&t.type==="form"?$d(t):Si.r(e)}var sl=typeof document>"u"?null:document;function zh(e,t,i){var r=sl;if(r&&typeof t=="string"&&t){var u=ln(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof i=="string"&&(u+='[crossorigin="'+i+'"]'),Lh.has(u)||(Lh.add(u),e={rel:e,crossOrigin:i,href:t},r.querySelector(u)===null&&(t=r.createElement("link"),jt(t,"link",e),kt(t),r.head.appendChild(t)))}}function kE(e){Si.D(e),zh("dns-prefetch",e,null)}function CE(e,t){Si.C(e,t),zh("preconnect",e,t)}function OE(e,t,i){Si.L(e,t,i);var r=sl;if(r&&e&&t){var u='link[rel="preload"][as="'+ln(t)+'"]';t==="image"&&i&&i.imageSrcSet?(u+='[imagesrcset="'+ln(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(u+='[imagesizes="'+ln(i.imageSizes)+'"]')):u+='[href="'+ln(e)+'"]';var d=u;switch(t){case"style":d=ul(e);break;case"script":d=cl(e)}Bn.has(d)||(e=g({rel:"preload",href:t==="image"&&i&&i.imageSrcSet?void 0:e,as:t},i),Bn.set(d,e),r.querySelector(u)!==null||t==="style"&&r.querySelector(ur(d))||t==="script"&&r.querySelector(cr(d))||(t=r.createElement("link"),jt(t,"link",e),kt(t),r.head.appendChild(t)))}}function ME(e,t){Si.m(e,t);var i=sl;if(i&&e){var r=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+ln(r)+'"][href="'+ln(e)+'"]',d=u;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=cl(e)}if(!Bn.has(d)&&(e=g({rel:"modulepreload",href:e},t),Bn.set(d,e),i.querySelector(u)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(cr(d)))return}r=i.createElement("link"),jt(r,"link",e),kt(r),i.head.appendChild(r)}}}function RE(e,t,i){Si.S(e,t,i);var r=sl;if(r&&e){var u=wi(r).hoistableStyles,d=ul(e);t=t||"default";var y=u.get(d);if(!y){var v={loading:0,preload:null};if(y=r.querySelector(ur(d)))v.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},i),(i=Bn.get(d))&&oc(e,i);var w=y=r.createElement("link");kt(w),jt(w,"link",e),w._p=new Promise(function(q,V){w.onload=q,w.onerror=V}),w.addEventListener("load",function(){v.loading|=1}),w.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Bo(y,t,r)}y={type:"stylesheet",instance:y,count:1,state:v},u.set(d,y)}}}function DE(e,t){Si.X(e,t);var i=sl;if(i&&e){var r=wi(i).hoistableScripts,u=cl(e),d=r.get(u);d||(d=i.querySelector(cr(u)),d||(e=g({src:e,async:!0},t),(t=Bn.get(u))&&sc(e,t),d=i.createElement("script"),kt(d),jt(d,"link",e),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},r.set(u,d))}}function LE(e,t){Si.M(e,t);var i=sl;if(i&&e){var r=wi(i).hoistableScripts,u=cl(e),d=r.get(u);d||(d=i.querySelector(cr(u)),d||(e=g({src:e,async:!0,type:"module"},t),(t=Bn.get(u))&&sc(e,t),d=i.createElement("script"),kt(d),jt(d,"link",e),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},r.set(u,d))}}function Bh(e,t,i,r){var u=(u=me.current)?zo(u):null;if(!u)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(t=ul(i.href),i=wi(u).hoistableStyles,r=i.get(t),r||(r={type:"style",instance:null,count:0,state:null},i.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=ul(i.href);var d=wi(u).hoistableStyles,y=d.get(e);if(y||(u=u.ownerDocument||u,y={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,y),(d=u.querySelector(ur(e)))&&!d._p&&(y.instance=d,y.state.loading=5),Bn.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Bn.set(e,i),d||zE(u,e,i,y.state))),t&&r===null)throw Error(o(528,""));return y}if(t&&r!==null)throw Error(o(529,""));return null;case"script":return t=i.async,i=i.src,typeof i=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=cl(i),i=wi(u).hoistableScripts,r=i.get(t),r||(r={type:"script",instance:null,count:0,state:null},i.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function ul(e){return'href="'+ln(e)+'"'}function ur(e){return'link[rel="stylesheet"]['+e+"]"}function Ih(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function zE(e,t,i,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}),jt(t,"link",i),kt(t),e.head.appendChild(t))}function cl(e){return'[src="'+ln(e)+'"]'}function cr(e){return"script[async]"+e}function Uh(e,t,i){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+ln(i.href)+'"]');if(r)return t.instance=r,kt(r),r;var u=g({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),kt(r),jt(r,"style",u),Bo(r,i.precedence,e),t.instance=r;case"stylesheet":u=ul(i.href);var d=e.querySelector(ur(u));if(d)return t.state.loading|=4,t.instance=d,kt(d),d;r=Ih(i),(u=Bn.get(u))&&oc(r,u),d=(e.ownerDocument||e).createElement("link"),kt(d);var y=d;return y._p=new Promise(function(v,w){y.onload=v,y.onerror=w}),jt(d,"link",r),t.state.loading|=4,Bo(d,i.precedence,e),t.instance=d;case"script":return d=cl(i.src),(u=e.querySelector(cr(d)))?(t.instance=u,kt(u),u):(r=i,(u=Bn.get(d))&&(r=g({},i),sc(r,u)),e=e.ownerDocument||e,u=e.createElement("script"),kt(u),jt(u,"link",r),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,Bo(r,i.precedence,e));return t.instance}function Bo(e,t,i){for(var r=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=r.length?r[r.length-1]:null,d=u,y=0;y<r.length;y++){var v=r[y];if(v.dataset.precedence===t)d=v;else if(d!==u)break}d?d.parentNode.insertBefore(e,d.nextSibling):(t=i.nodeType===9?i.head:i,t.insertBefore(e,t.firstChild))}function oc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function sc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Io=null;function Hh(e,t,i){if(Io===null){var r=new Map,u=Io=new Map;u.set(i,r)}else u=Io,r=u.get(i),r||(r=new Map,u.set(i,r));if(r.has(e))return r;for(r.set(e,null),i=i.getElementsByTagName(e),u=0;u<i.length;u++){var d=i[u];if(!(d[aa]||d[Tt]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var y=d.getAttribute(t)||"";y=e+y;var v=r.get(y);v?v.push(d):r.set(y,[d])}}return r}function qh(e,t,i){e=e.ownerDocument||e,e.head.insertBefore(i,t==="title"?e.querySelector("head > title"):null)}function BE(e,t,i){if(i===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 Fh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function IE(e,t,i,r){if(i.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var u=ul(r.href),d=t.querySelector(ur(u));if(d){t=d._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Uo.bind(e),t.then(e,e)),i.state.loading|=4,i.instance=d,kt(d);return}d=t.ownerDocument||t,r=Ih(r),(u=Bn.get(u))&&oc(r,u),d=d.createElement("link"),kt(d);var y=d;y._p=new Promise(function(v,w){y.onload=v,y.onerror=w}),jt(d,"link",r),i.instance=d}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(i,t),(t=i.state.preload)&&(i.state.loading&3)===0&&(e.count++,i=Uo.bind(e),t.addEventListener("load",i),t.addEventListener("error",i))}}var uc=0;function UE(e,t){return e.stylesheets&&e.count===0&&qo(e,e.stylesheets),0<e.count||0<e.imgCount?function(i){var r=setTimeout(function(){if(e.stylesheets&&qo(e,e.stylesheets),e.unsuspend){var d=e.unsuspend;e.unsuspend=null,d()}},6e4+t);0<e.imgBytes&&uc===0&&(uc=62500*yE());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&qo(e,e.stylesheets),e.unsuspend)){var d=e.unsuspend;e.unsuspend=null,d()}},(e.imgBytes>uc?50:800)+t);return e.unsuspend=i,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(u)}}:null}function Uo(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)qo(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ho=null;function qo(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ho=new Map,t.forEach(HE,e),Ho=null,Uo.call(e))}function HE(e,t){if(!(t.state.loading&4)){var i=Ho.get(e);if(i)var r=i.get(null);else{i=new Map,Ho.set(e,i);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<u.length;d++){var y=u[d];(y.nodeName==="LINK"||y.getAttribute("media")!=="not all")&&(i.set(y.dataset.precedence,y),r=y)}r&&i.set(null,r)}u=t.instance,y=u.getAttribute("data-precedence"),d=i.get(y)||r,d===r&&i.set(null,u),i.set(y,u),this.count++,r=Uo.bind(this),u.addEventListener("load",r),u.addEventListener("error",r),d?d.parentNode.insertBefore(u,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var fr={$$typeof:I,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function qE(e,t,i,r,u,d,y,v,w){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=pt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=pt(0),this.hiddenUpdates=pt(null),this.identifierPrefix=r,this.onUncaughtError=u,this.onCaughtError=d,this.onRecoverableError=y,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=w,this.incompleteTransitions=new Map}function Gh(e,t,i,r,u,d,y,v,w,q,V,Q){return e=new qE(e,t,i,y,w,q,V,Q,v),t=1,d===!0&&(t|=24),d=En(3,null,null,t),e.current=d,d.stateNode=e,t=Gs(),t.refCount++,e.pooledCache=t,t.refCount++,d.memoizedState={element:r,isDehydrated:i,cache:t},Vs(d),e}function jh(e){return e?(e=Fa,e):Fa}function Yh(e,t,i,r,u,d){u=jh(u),r.context===null?r.context=u:r.pendingContext=u,r=Bi(t),r.payload={element:i},d=d===void 0?null:d,d!==null&&(r.callback=d),i=Ii(e,r,t),i!==null&&(fn(i,e,t),jl(i,e,t))}function Kh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<t?i:t}}function cc(e,t){Kh(e,t),(e=e.alternate)&&Kh(e,t)}function Vh(e){if(e.tag===13||e.tag===31){var t=ca(e,67108864);t!==null&&fn(t,e,67108864),cc(e,67108864)}}function Xh(e){if(e.tag===13||e.tag===31){var t=Tn();t=gt(t);var i=ca(e,t);i!==null&&fn(i,e,t),cc(e,t)}}var Fo=!0;function FE(e,t,i,r){var u=z.T;z.T=null;var d=J.p;try{J.p=2,fc(e,t,i,r)}finally{J.p=d,z.T=u}}function GE(e,t,i,r){var u=z.T;z.T=null;var d=J.p;try{J.p=8,fc(e,t,i,r)}finally{J.p=d,z.T=u}}function fc(e,t,i,r){if(Fo){var u=dc(r);if(u===null)$u(e,t,r,Go,i),Zh(e,r);else if(YE(u,e,t,i,r))r.stopPropagation();else if(Zh(e,r),t&4&&-1<jE.indexOf(e)){for(;u!==null;){var d=ai(u);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var y=nn(d.pendingLanes);if(y!==0){var v=d;for(v.pendingLanes|=2,v.entangledLanes|=2;y;){var w=1<<31-We(y);v.entanglements[1]|=w,y&=~w}$n(d),($e&6)===0&&(To=yt()+500,lr(0))}}break;case 31:case 13:v=ca(d,2),v!==null&&fn(v,d,2),Ao(),cc(d,2)}if(d=dc(r),d===null&&$u(e,t,r,Go,i),d===u)break;u=d}u!==null&&r.stopPropagation()}else $u(e,t,r,null,i)}}function dc(e){return e=Me(e),pc(e)}var Go=null;function pc(e){if(Go=null,e=Jt(e),e!==null){var t=f(e);if(t===null)e=null;else{var i=t.tag;if(i===13){if(e=c(t),e!==null)return e;e=null}else if(i===31){if(e=p(t),e!==null)return e;e=null}else if(i===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Go=e,null}function Ph(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(ka()){case K:return 2;case le:return 8;case Te:case Be:return 32;case Xe:return 268435456;default:return 32}default:return 32}}var hc=!1,Pi=null,Zi=null,Qi=null,dr=new Map,pr=new Map,$i=[],jE="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 Zh(e,t){switch(e){case"focusin":case"focusout":Pi=null;break;case"dragenter":case"dragleave":Zi=null;break;case"mouseover":case"mouseout":Qi=null;break;case"pointerover":case"pointerout":dr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":pr.delete(t.pointerId)}}function hr(e,t,i,r,u,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:i,eventSystemFlags:r,nativeEvent:d,targetContainers:[u]},t!==null&&(t=ai(t),t!==null&&Vh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function YE(e,t,i,r,u){switch(t){case"focusin":return Pi=hr(Pi,e,t,i,r,u),!0;case"dragenter":return Zi=hr(Zi,e,t,i,r,u),!0;case"mouseover":return Qi=hr(Qi,e,t,i,r,u),!0;case"pointerover":var d=u.pointerId;return dr.set(d,hr(dr.get(d)||null,e,t,i,r,u)),!0;case"gotpointercapture":return d=u.pointerId,pr.set(d,hr(pr.get(d)||null,e,t,i,r,u)),!0}return!1}function Qh(e){var t=Jt(e.target);if(t!==null){var i=f(t);if(i!==null){if(t=i.tag,t===13){if(t=c(i),t!==null){e.blockedOn=t,Ma(e.priority,function(){Xh(i)});return}}else if(t===31){if(t=p(i),t!==null){e.blockedOn=t,Ma(e.priority,function(){Xh(i)});return}}else if(t===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function jo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var i=dc(e.nativeEvent);if(i===null){i=e.nativeEvent;var r=new i.constructor(i.type,i);ge=r,i.target.dispatchEvent(r),ge=null}else return t=ai(i),t!==null&&Vh(t),e.blockedOn=i,!1;t.shift()}return!0}function $h(e,t,i){jo(e)&&i.delete(t)}function KE(){hc=!1,Pi!==null&&jo(Pi)&&(Pi=null),Zi!==null&&jo(Zi)&&(Zi=null),Qi!==null&&jo(Qi)&&(Qi=null),dr.forEach($h),pr.forEach($h)}function Yo(e,t){e.blockedOn===t&&(e.blockedOn=null,hc||(hc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,KE)))}var Ko=null;function Jh(e){Ko!==e&&(Ko=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Ko===e&&(Ko=null);for(var t=0;t<e.length;t+=3){var i=e[t],r=e[t+1],u=e[t+2];if(typeof r!="function"){if(pc(r||i)===null)continue;break}var d=ai(i);d!==null&&(e.splice(t,3),t-=3,du(d,{pending:!0,data:u,method:i.method,action:r},r,u))}}))}function fl(e){function t(w){return Yo(w,e)}Pi!==null&&Yo(Pi,e),Zi!==null&&Yo(Zi,e),Qi!==null&&Yo(Qi,e),dr.forEach(t),pr.forEach(t);for(var i=0;i<$i.length;i++){var r=$i[i];r.blockedOn===e&&(r.blockedOn=null)}for(;0<$i.length&&(i=$i[0],i.blockedOn===null);)Qh(i),i.blockedOn===null&&$i.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(r=0;r<i.length;r+=3){var u=i[r],d=i[r+1],y=u[Kt]||null;if(typeof d=="function")y||Jh(i);else if(y){var v=null;if(d&&d.hasAttribute("formAction")){if(u=d,y=d[Kt]||null)v=y.formAction;else if(pc(u)!==null)continue}else v=y.action;typeof v=="function"?i[r+1]=v:(i.splice(r,3),r-=3),Jh(i)}}}function Wh(){function e(d){d.canIntercept&&d.info==="react-transition"&&d.intercept({handler:function(){return new Promise(function(y){return u=y})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),r||setTimeout(i,20)}function i(){if(!r&&!navigation.transition){var d=navigation.currentEntry;d&&d.url!=null&&navigation.navigate(d.url,{state:d.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(i,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function mc(e){this._internalRoot=e}Vo.prototype.render=mc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var i=t.current,r=Tn();Yh(i,r,e,t,null,null)},Vo.prototype.unmount=mc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Yh(e.current,2,null,e,null,null),Ao(),t[Ni]=null}};function Vo(e){this._internalRoot=e}Vo.prototype.unstable_scheduleHydration=function(e){if(e){var t=Oa();e={blockedOn:null,target:e,priority:t};for(var i=0;i<$i.length&&t!==0&&t<$i[i].priority;i++);$i.splice(i,0,e),i===0&&Qh(e)}};var em=a.version;if(em!=="19.2.0")throw Error(o(527,em,"19.2.0"));J.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=h(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var VE={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Xo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xo.isDisabled&&Xo.supportsFiber)try{Ut=Xo.inject(VE),_t=Xo}catch{}}return gr.createRoot=function(e,t){if(!s(e))throw Error(o(299));var i=!1,r="",u=op,d=sp,y=up;return t!=null&&(t.unstable_strictMode===!0&&(i=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(d=t.onCaughtError),t.onRecoverableError!==void 0&&(y=t.onRecoverableError)),t=Gh(e,1,!1,null,null,i,r,null,u,d,y,Wh),e[Ni]=t.current,Qu(e),new mc(t)},gr.hydrateRoot=function(e,t,i){if(!s(e))throw Error(o(299));var r=!1,u="",d=op,y=sp,v=up,w=null;return i!=null&&(i.unstable_strictMode===!0&&(r=!0),i.identifierPrefix!==void 0&&(u=i.identifierPrefix),i.onUncaughtError!==void 0&&(d=i.onUncaughtError),i.onCaughtError!==void 0&&(y=i.onCaughtError),i.onRecoverableError!==void 0&&(v=i.onRecoverableError),i.formState!==void 0&&(w=i.formState)),t=Gh(e,1,!0,t,i??null,r,u,w,d,y,v,Wh),t.context=jh(null),i=t.current,r=Tn(),r=gt(r),u=Bi(r),u.callback=null,Ii(i,u,r),i=r,t.current.lanes=i,st(t,i),$n(t),e[Ni]=t.current,Qu(e),new Vo(t)},gr.version="19.2.0",gr}var cm;function n_(){if(cm)return yc.exports;cm=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),yc.exports=t_(),yc.exports}var i_=n_();const a_="/api/files",l_=()=>{const[n,a]=Se.useState([]),[l,o]=Se.useState(!0),[s,f]=Se.useState(null);return Se.useEffect(()=>{(async()=>{try{const p=await fetch(a_);if(!p.ok)throw new Error(`API request failed: ${p.status}`);const m=await p.json();a(m.files||[])}catch(p){f(p instanceof Error?p:new Error("Unknown error"))}finally{o(!1)}})()},[]),{files:n,loading:l,error:s}},fm="/api/markdown",hg=n=>{const[a,l]=Se.useState(null),[o,s]=Se.useState(null),[f,c]=Se.useState(!0),[p,m]=Se.useState(null),[h,b]=Se.useState(0),g=Se.useCallback(()=>{b(_=>_+1)},[]);return Se.useEffect(()=>{(async()=>{if(n===null){c(!1);return}c(!0),m(null);try{const E=n===void 0?fm:`${fm}/${n}`,x=await fetch(E);if(!x.ok)throw new Error(`API request failed: ${x.status}`);const O=await x.json();l(O.content),s(O.filename)}catch(E){m(E instanceof Error?E:new Error("Unknown error")),l(null),s(null)}finally{c(!1)}})()},[n,h]),{content:a,filename:o,loading:f,error:p,reload:g}};function r_(n,a){const[l,o]=Se.useState(()=>{try{const s=window.localStorage.getItem(n);if(!s)return a;const f=JSON.parse(s);return typeof f!="object"||f===null?(console.warn(`Invalid localStorage data for key: ${n}, resetting`),a):f}catch(s){return console.error("Error reading localStorage:",s),a}});return Se.useEffect(()=>{try{window.localStorage.setItem(n,JSON.stringify(l))}catch(s){console.error("Error writing to localStorage:",s)}},[n,l]),[l,o]}const mg=({initialWidth:n,minWidth:a,maxWidth:l,storageKey:o,direction:s="left",collapsible:f=!1,collapseThreshold:c=100})=>{const[p,m]=Se.useState(()=>{if(o){const A=localStorage.getItem(o);if(A){const B=parseInt(A,10);if(!isNaN(B)&&B>=a&&B<=l)return B}}return n}),[h,b]=Se.useState(!1),[g,_]=Se.useState(!1),E=Se.useRef(0),x=Se.useRef(0),O=Se.useCallback(A=>{A.preventDefault(),_(!0),E.current=A.clientX,x.current=p},[p]);Se.useEffect(()=>{if(!g)return;const A=I=>{const $=I.clientX-E.current,X=s==="right"?-$:$,N=x.current+X;if(f&&N<c)b(!0),m(a);else{b(!1);const Y=Math.min(l,Math.max(a,N));m(Y)}},B=()=>{_(!1),o&&!h&&localStorage.setItem(o,p.toString())};return document.addEventListener("mousemove",A),document.addEventListener("mouseup",B),()=>{document.removeEventListener("mousemove",A),document.removeEventListener("mouseup",B)}},[g,l,a,o,p,s,f,c,h]);const R=Se.useCallback(()=>{b(A=>!A)},[]);return{width:p,isResizing:g,isCollapsed:h,handleMouseDown:O,toggleCollapse:R}},gg=(n,a)=>{Se.useEffect(()=>{const l=new EventSource("/api/watch");return l.onmessage=o=>{try{const s=JSON.parse(o.data);s.type==="file-changed"&&s.path?n(s.path):s.type==="file-added"&&s.path}catch(s){console.error("[FileWatch] Error parsing message:",s)}},l.onerror=o=>{console.error("[FileWatch] Connection error:",o)},()=>{l.close()}},[n,a])},bg=()=>window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",Sc=n=>n==="system"?bg():n,yg=()=>{const[n,a]=Se.useState(()=>localStorage.getItem("md-review-theme")||"system");Se.useEffect(()=>{const f=document.documentElement;Sc(n)==="dark"?f.classList.add("dark-mode"):f.classList.remove("dark-mode")},[n]),Se.useEffect(()=>{if(n!=="system")return;const f=window.matchMedia("(prefers-color-scheme: dark)"),c=()=>{const p=document.documentElement;bg()==="dark"?p.classList.add("dark-mode"):p.classList.remove("dark-mode")};return f.addEventListener("change",c),()=>f.removeEventListener("change",c)},[n]);const l=()=>{a(f=>{const p=Sc(f)==="light"?"dark":"light";return localStorage.setItem("md-review-theme",p),p})},o=()=>{localStorage.removeItem("md-review-theme"),a("system")},s=Sc(n);return{theme:n,effectiveTheme:s,toggleTheme:l,resetToSystem:o,isDark:s==="dark",isSystem:n==="system"}},Eg=()=>{const{isDark:n,toggleTheme:a}=yg();return D.jsx("button",{className:"theme-toggle",onClick:a,title:n?"Switch to light mode":"Switch to dark mode","aria-label":n?"Switch to light mode":"Switch to dark mode",children:n?D.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[D.jsx("circle",{cx:"10",cy:"10",r:"4",stroke:"currentColor",strokeWidth:"1.5"}),D.jsx("path",{d:"M10 2v2M10 16v2M18 10h-2M4 10H2M15.657 4.343l-1.414 1.414M5.757 14.243l-1.414 1.414M15.657 15.657l-1.414-1.414M5.757 5.757L4.343 4.343",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]}):D.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:D.jsx("path",{d:"M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})})};function o_(n){const a={name:"root",children:new Map,isFile:!1};for(const l of n){const o=l.path.split("/");let s=a;for(let f=0;f<o.length;f++){const c=o[f],p=f===o.length-1;s.children.has(c)||s.children.set(c,{name:c,path:p?l.path:void 0,children:new Map,isFile:p}),s=s.children.get(c)}}return a}function jc({node:n,selectedFile:a,onFileSelect:l,level:o=0}){const[s,f]=Se.useState(o===0||o===1);if(n.isFile)return D.jsxs("div",{className:`tree-item file ${a===n.path?"selected":""}`,style:{paddingLeft:`${o*12+8}px`},onClick:()=>n.path&&l(n.path),children:[D.jsx("span",{className:"file-icon",children:"📄"}),D.jsx("span",{className:"file-name",children:n.name})]});const c=Array.from(n.children.entries()).sort((p,m)=>!p[1].isFile&&m[1].isFile?-1:p[1].isFile&&!m[1].isFile?1:p[0].localeCompare(m[0]));return n.name==="root"?D.jsx(D.Fragment,{children:c.map(([,p])=>D.jsx(jc,{node:p,selectedFile:a,onFileSelect:l,level:0},p.path||p.name))}):D.jsxs("div",{children:[D.jsxs("div",{className:"tree-item directory",style:{paddingLeft:`${o*12+8}px`},onClick:()=>f(!s),children:[D.jsx("svg",{className:"chevron-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",style:{transform:s?"rotate(90deg)":"rotate(0deg)"},children:D.jsx("path",{d:"M6 4L10 8L6 12",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),D.jsx("span",{className:"folder-icon",children:"📁"}),D.jsx("span",{className:"folder-name",children:n.name})]}),s&&D.jsx("div",{className:"tree-children",children:c.map(([,p])=>D.jsx(jc,{node:p,selectedFile:a,onFileSelect:l,level:o+1},p.path||p.name))})]})}const s_=({files:n,selectedFile:a,onFileSelect:l,onToggleSidebar:o,autoFocusSearch:s})=>{const[f,c]=Se.useState(""),p=Se.useRef(null),m=f?n.filter(b=>b.name.toLowerCase().includes(f.toLowerCase())||b.path.toLowerCase().includes(f.toLowerCase())):n,h=o_(m);return Se.useEffect(()=>{var b;s&&((b=p.current)==null||b.focus())},[s]),Se.useEffect(()=>{const b=g=>{var _;g.metaKey&&g.key==="k"&&(g.preventDefault(),(_=p.current)==null||_.focus())};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[]),D.jsxs("div",{className:"file-tree",children:[D.jsxs("div",{className:"file-tree-header",children:[D.jsxs("div",{className:"file-tree-header-content",children:[D.jsx("h3",{children:"Files"}),D.jsxs("span",{className:"file-count",children:[m.length," of ",n.length," files"]})]}),D.jsxs("div",{className:"file-tree-header-actions",children:[D.jsx(Eg,{}),o&&D.jsx("button",{className:"sidebar-collapse-button",onClick:o,"aria-label":"Collapse sidebar",title:"Collapse sidebar",children:D.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:D.jsx("path",{d:"M12 4L6 10L12 16",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]}),D.jsx("div",{className:"search-container",children:D.jsxs("div",{className:"search-input-wrapper",children:[D.jsx("span",{className:"search-icon",children:"🔍"}),D.jsx("input",{ref:p,type:"text",className:"search-input",placeholder:"Jump to...",value:f,onChange:b=>c(b.target.value)}),f&&D.jsx("button",{className:"search-clear",onClick:()=>c(""),"aria-label":"Clear search",children:"✕"}),D.jsx("kbd",{className:"search-shortcut",children:"⌘K"})]})}),D.jsx("div",{className:"file-tree-content",children:D.jsx(jc,{node:h,selectedFile:a,onFileSelect:l})}),D.jsx("div",{className:"file-tree-footer",children:D.jsx("a",{href:"https://github.com/ryo-manba/md-review",target:"_blank",rel:"noopener noreferrer",className:"github-link","aria-label":"View on GitHub",title:"View on GitHub",children:D.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor",children:D.jsx("path",{d:"M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z"})})})})]})};function u_(n,a){const l={};return(n[n.length-1]===""?[...n,""]:n).join((l.padRight?" ":"")+","+(l.padLeft===!1?"":" ")).trim()}const c_=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,f_=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,d_={};function dm(n,a){return(d_.jsx?f_:c_).test(n)}const p_=/[ \t\n\f\r]/g;function h_(n){return typeof n=="object"?n.type==="text"?pm(n.value):!1:pm(n)}function pm(n){return n.replace(p_,"")===""}class wr{constructor(a,l,o){this.normal=l,this.property=a,o&&(this.space=o)}}wr.prototype.normal={};wr.prototype.property={};wr.prototype.space=void 0;function _g(n,a){const l={},o={};for(const s of n)Object.assign(l,s.property),Object.assign(o,s.normal);return new wr(l,o,a)}function Yc(n){return n.toLowerCase()}class pn{constructor(a,l){this.attribute=l,this.property=a}}pn.prototype.attribute="";pn.prototype.booleanish=!1;pn.prototype.boolean=!1;pn.prototype.commaOrSpaceSeparated=!1;pn.prototype.commaSeparated=!1;pn.prototype.defined=!1;pn.prototype.mustUseProperty=!1;pn.prototype.number=!1;pn.prototype.overloadedBoolean=!1;pn.prototype.property="";pn.prototype.spaceSeparated=!1;pn.prototype.space=void 0;let m_=0;const Le=Na(),Lt=Na(),Kc=Na(),ie=Na(),dt=Na(),bl=Na(),Nn=Na();function Na(){return 2**++m_}const Vc=Object.freeze(Object.defineProperty({__proto__:null,boolean:Le,booleanish:Lt,commaOrSpaceSeparated:Nn,commaSeparated:bl,number:ie,overloadedBoolean:Kc,spaceSeparated:dt},Symbol.toStringTag,{value:"Module"})),xc=Object.keys(Vc);class rf extends pn{constructor(a,l,o,s){let f=-1;if(super(a,l),hm(this,"space",s),typeof o=="number")for(;++f<xc.length;){const c=xc[f];hm(this,xc[f],(o&Vc[c])===Vc[c])}}}rf.prototype.defined=!0;function hm(n,a,l){l&&(n[a]=l)}function El(n){const a={},l={};for(const[o,s]of Object.entries(n.properties)){const f=new rf(o,n.transform(n.attributes||{},o),s,n.space);n.mustUseProperty&&n.mustUseProperty.includes(o)&&(f.mustUseProperty=!0),a[o]=f,l[Yc(o)]=o,l[Yc(f.attribute)]=o}return new wr(a,l,n.space)}const vg=El({properties:{ariaActiveDescendant:null,ariaAtomic:Lt,ariaAutoComplete:null,ariaBusy:Lt,ariaChecked:Lt,ariaColCount:ie,ariaColIndex:ie,ariaColSpan:ie,ariaControls:dt,ariaCurrent:null,ariaDescribedBy:dt,ariaDetails:null,ariaDisabled:Lt,ariaDropEffect:dt,ariaErrorMessage:null,ariaExpanded:Lt,ariaFlowTo:dt,ariaGrabbed:Lt,ariaHasPopup:null,ariaHidden:Lt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:dt,ariaLevel:ie,ariaLive:null,ariaModal:Lt,ariaMultiLine:Lt,ariaMultiSelectable:Lt,ariaOrientation:null,ariaOwns:dt,ariaPlaceholder:null,ariaPosInSet:ie,ariaPressed:Lt,ariaReadOnly:Lt,ariaRelevant:null,ariaRequired:Lt,ariaRoleDescription:dt,ariaRowCount:ie,ariaRowIndex:ie,ariaRowSpan:ie,ariaSelected:Lt,ariaSetSize:ie,ariaSort:null,ariaValueMax:ie,ariaValueMin:ie,ariaValueNow:ie,ariaValueText:null,role:null},transform(n,a){return a==="role"?a:"aria-"+a.slice(4).toLowerCase()}});function Sg(n,a){return a in n?n[a]:a}function xg(n,a){return Sg(n,a.toLowerCase())}const g_=El({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:bl,acceptCharset:dt,accessKey:dt,action:null,allow:null,allowFullScreen:Le,allowPaymentRequest:Le,allowUserMedia:Le,alt:null,as:null,async:Le,autoCapitalize:null,autoComplete:dt,autoFocus:Le,autoPlay:Le,blocking:dt,capture:null,charSet:null,checked:Le,cite:null,className:dt,cols:ie,colSpan:null,content:null,contentEditable:Lt,controls:Le,controlsList:dt,coords:ie|bl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Le,defer:Le,dir:null,dirName:null,disabled:Le,download:Kc,draggable:Lt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Le,formTarget:null,headers:dt,height:ie,hidden:Kc,high:ie,href:null,hrefLang:null,htmlFor:dt,httpEquiv:dt,id:null,imageSizes:null,imageSrcSet:null,inert:Le,inputMode:null,integrity:null,is:null,isMap:Le,itemId:null,itemProp:dt,itemRef:dt,itemScope:Le,itemType:dt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Le,low:ie,manifest:null,max:null,maxLength:ie,media:null,method:null,min:null,minLength:ie,multiple:Le,muted:Le,name:null,nonce:null,noModule:Le,noValidate:Le,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:Le,optimum:ie,pattern:null,ping:dt,placeholder:null,playsInline:Le,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Le,referrerPolicy:null,rel:dt,required:Le,reversed:Le,rows:ie,rowSpan:ie,sandbox:dt,scope:null,scoped:Le,seamless:Le,selected:Le,shadowRootClonable:Le,shadowRootDelegatesFocus:Le,shadowRootMode:null,shape:null,size:ie,sizes:null,slot:null,span:ie,spellCheck:Lt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ie,step:null,style:null,tabIndex:ie,target:null,title:null,translate:null,type:null,typeMustMatch:Le,useMap:null,value:Lt,width:ie,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:dt,axis:null,background:null,bgColor:null,border:ie,borderColor:null,bottomMargin:ie,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Le,declare:Le,event:null,face:null,frame:null,frameBorder:null,hSpace:ie,leftMargin:ie,link:null,longDesc:null,lowSrc:null,marginHeight:ie,marginWidth:ie,noResize:Le,noHref:Le,noShade:Le,noWrap:Le,object:null,profile:null,prompt:null,rev:null,rightMargin:ie,rules:null,scheme:null,scrolling:Lt,standby:null,summary:null,text:null,topMargin:ie,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ie,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Le,disableRemotePlayback:Le,prefix:null,property:null,results:ie,security:null,unselectable:null},space:"html",transform:xg}),b_=El({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:Nn,accentHeight:ie,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ie,amplitude:ie,arabicForm:null,ascent:ie,attributeName:null,attributeType:null,azimuth:ie,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ie,by:null,calcMode:null,capHeight:ie,className:dt,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:ie,diffuseConstant:ie,direction:null,display:null,dur:null,divisor:ie,dominantBaseline:null,download:Le,dx:null,dy:null,edgeMode:null,editable:null,elevation:ie,enableBackground:null,end:null,event:null,exponent:ie,externalResourcesRequired:null,fill:null,fillOpacity:ie,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:bl,g2:bl,glyphName:bl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ie,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ie,horizOriginX:ie,horizOriginY:ie,id:null,ideographic:ie,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ie,k:ie,k1:ie,k2:ie,k3:ie,k4:ie,kernelMatrix:Nn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ie,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:ie,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:ie,overlineThickness:ie,paintOrder:null,panose1:null,path:null,pathLength:ie,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:dt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ie,pointsAtY:ie,pointsAtZ:ie,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Nn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Nn,rev:Nn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Nn,requiredFeatures:Nn,requiredFonts:Nn,requiredFormats:Nn,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:ie,specularExponent:ie,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ie,strikethroughThickness:ie,string:null,stroke:null,strokeDashArray:Nn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ie,strokeOpacity:ie,strokeWidth:null,style:null,surfaceScale:ie,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Nn,tabIndex:ie,tableValues:null,target:null,targetX:ie,targetY:ie,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Nn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ie,underlineThickness:ie,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ie,values:null,vAlphabetic:ie,vMathematical:ie,vectorEffect:null,vHanging:ie,vIdeographic:ie,version:null,vertAdvY:ie,vertOriginX:ie,vertOriginY:ie,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ie,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Sg}),Tg=El({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(n,a){return"xlink:"+a.slice(5).toLowerCase()}}),Ng=El({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:xg}),Ag=El({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(n,a){return"xml:"+a.slice(3).toLowerCase()}}),y_={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"},E_=/[A-Z]/g,mm=/-[a-z]/g,__=/^data[-\w.:]+$/i;function v_(n,a){const l=Yc(a);let o=a,s=pn;if(l in n.normal)return n.property[n.normal[l]];if(l.length>4&&l.slice(0,4)==="data"&&__.test(a)){if(a.charAt(4)==="-"){const f=a.slice(5).replace(mm,x_);o="data"+f.charAt(0).toUpperCase()+f.slice(1)}else{const f=a.slice(4);if(!mm.test(f)){let c=f.replace(E_,S_);c.charAt(0)!=="-"&&(c="-"+c),a="data"+c}}s=rf}return new s(o,a)}function S_(n){return"-"+n.toLowerCase()}function x_(n){return n.charAt(1).toUpperCase()}const T_=_g([vg,g_,Tg,Ng,Ag],"html"),of=_g([vg,b_,Tg,Ng,Ag],"svg");function N_(n){return n.join(" ").trim()}var dl={},Tc,gm;function A_(){if(gm)return Tc;gm=1;var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,a=/\n/g,l=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,s=/^:\s*/,f=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,p=/^\s+|\s+$/g,m=`
50
50
  `,h="/",b="*",g="",_="comment",E="declaration";function x(R,A){if(typeof R!="string")throw new TypeError("First argument must be a string");if(!R)return[];A=A||{};var B=1,I=1;function $(oe){var W=oe.match(a);W&&(B+=W.length);var z=oe.lastIndexOf(m);I=~z?oe.length-z:I+oe.length}function X(){var oe={line:B,column:I};return function(W){return W.position=new N(oe),ue(),W}}function N(oe){this.start=oe,this.end={line:B,column:I},this.source=A.source}N.prototype.content=R;function Y(oe){var W=new Error(A.source+":"+B+":"+I+": "+oe);if(W.reason=oe,W.filename=A.source,W.line=B,W.column=I,W.source=R,!A.silent)throw W}function ee(oe){var W=oe.exec(R);if(W){var z=W[0];return $(z),R=R.slice(z.length),W}}function ue(){ee(l)}function U(oe){var W;for(oe=oe||[];W=ae();)W!==!1&&oe.push(W);return oe}function ae(){var oe=X();if(!(h!=R.charAt(0)||b!=R.charAt(1))){for(var W=2;g!=R.charAt(W)&&(b!=R.charAt(W)||h!=R.charAt(W+1));)++W;if(W+=2,g===R.charAt(W-1))return Y("End of comment missing");var z=R.slice(2,W-2);return I+=2,$(z),R=R.slice(W),I+=2,oe({type:_,comment:z})}}function re(){var oe=X(),W=ee(o);if(W){if(ae(),!ee(s))return Y("property missing ':'");var z=ee(f),J=oe({type:E,property:O(W[0].replace(n,g)),value:z?O(z[0].replace(n,g)):g});return ee(c),J}}function we(){var oe=[];U(oe);for(var W;W=re();)W!==!1&&(oe.push(W),U(oe));return oe}return ue(),we()}function O(R){return R?R.replace(p,g):g}return Tc=x,Tc}var bm;function w_(){if(bm)return dl;bm=1;var n=dl&&dl.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(dl,"__esModule",{value:!0}),dl.default=l;const a=n(A_());function l(o,s){let f=null;if(!o||typeof o!="string")return f;const c=(0,a.default)(o),p=typeof s=="function";return c.forEach(m=>{if(m.type!=="declaration")return;const{property:h,value:b}=m;p?s(h,b,m):b&&(f=f||{},f[h]=b)}),f}return dl}var br={},ym;function k_(){if(ym)return br;ym=1,Object.defineProperty(br,"__esModule",{value:!0}),br.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,a=/-([a-z])/g,l=/^[^-]+$/,o=/^-(webkit|moz|ms|o|khtml)-/,s=/^-(ms)-/,f=function(h){return!h||l.test(h)||n.test(h)},c=function(h,b){return b.toUpperCase()},p=function(h,b){return"".concat(b,"-")},m=function(h,b){return b===void 0&&(b={}),f(h)?h:(h=h.toLowerCase(),b.reactCompat?h=h.replace(s,p):h=h.replace(o,p),h.replace(a,c))};return br.camelCase=m,br}var yr,Em;function C_(){if(Em)return yr;Em=1;var n=yr&&yr.__importDefault||function(s){return s&&s.__esModule?s:{default:s}},a=n(w_()),l=k_();function o(s,f){var c={};return!s||typeof s!="string"||(0,a.default)(s,function(p,m){p&&m&&(c[(0,l.camelCase)(p,f)]=m)}),c}return o.default=o,yr=o,yr}var O_=C_();const M_=af(O_),wg=kg("end"),sf=kg("start");function kg(n){return a;function a(l){const o=l&&l.position&&l.position[n]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}function R_(n){const a=sf(n),l=wg(n);if(a&&l)return{start:a,end:l}}function Sr(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?_m(n.position):"start"in n||"end"in n?_m(n):"line"in n||"column"in n?Xc(n):""}function Xc(n){return vm(n&&n.line)+":"+vm(n&&n.column)}function _m(n){return Xc(n&&n.start)+"-"+Xc(n&&n.end)}function vm(n){return n&&typeof n=="number"?n:1}class Zt extends Error{constructor(a,l,o){super(),typeof l=="string"&&(o=l,l=void 0);let s="",f={},c=!1;if(l&&("line"in l&&"column"in l?f={place:l}:"start"in l&&"end"in l?f={place:l}:"type"in l?f={ancestors:[l],place:l.position}:f={...l}),typeof a=="string"?s=a:!f.cause&&a&&(c=!0,s=a.message,f.cause=a),!f.ruleId&&!f.source&&typeof o=="string"){const m=o.indexOf(":");m===-1?f.ruleId=o:(f.source=o.slice(0,m),f.ruleId=o.slice(m+1))}if(!f.place&&f.ancestors&&f.ancestors){const m=f.ancestors[f.ancestors.length-1];m&&(f.place=m.position)}const p=f.place&&"start"in f.place?f.place.start:f.place;this.ancestors=f.ancestors||void 0,this.cause=f.cause||void 0,this.column=p?p.column:void 0,this.fatal=void 0,this.file="",this.message=s,this.line=p?p.line:void 0,this.name=Sr(f.place)||"1:1",this.place=f.place||void 0,this.reason=this.message,this.ruleId=f.ruleId||void 0,this.source=f.source||void 0,this.stack=c&&f.cause&&typeof f.cause.stack=="string"?f.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Zt.prototype.file="";Zt.prototype.name="";Zt.prototype.reason="";Zt.prototype.message="";Zt.prototype.stack="";Zt.prototype.column=void 0;Zt.prototype.line=void 0;Zt.prototype.ancestors=void 0;Zt.prototype.cause=void 0;Zt.prototype.fatal=void 0;Zt.prototype.place=void 0;Zt.prototype.ruleId=void 0;Zt.prototype.source=void 0;const uf={}.hasOwnProperty,D_=new Map,L_=/[A-Z]/g,z_=new Set(["table","tbody","thead","tfoot","tr"]),B_=new Set(["td","th"]),Cg="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function I_(n,a){if(!a||a.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const l=a.filePath||void 0;let o;if(a.development){if(typeof a.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");o=K_(l,a.jsxDEV)}else{if(typeof a.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof a.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");o=Y_(l,a.jsx,a.jsxs)}const s={Fragment:a.Fragment,ancestors:[],components:a.components||{},create:o,elementAttributeNameCase:a.elementAttributeNameCase||"react",evaluater:a.createEvaluater?a.createEvaluater():void 0,filePath:l,ignoreInvalidStyle:a.ignoreInvalidStyle||!1,passKeys:a.passKeys!==!1,passNode:a.passNode||!1,schema:a.space==="svg"?of:T_,stylePropertyNameCase:a.stylePropertyNameCase||"dom",tableCellAlignToStyle:a.tableCellAlignToStyle!==!1},f=Og(s,n,void 0);return f&&typeof f!="string"?f:s.create(n,s.Fragment,{children:f||void 0},void 0)}function Og(n,a,l){if(a.type==="element")return U_(n,a,l);if(a.type==="mdxFlowExpression"||a.type==="mdxTextExpression")return H_(n,a);if(a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement")return F_(n,a,l);if(a.type==="mdxjsEsm")return q_(n,a);if(a.type==="root")return G_(n,a,l);if(a.type==="text")return j_(n,a)}function U_(n,a,l){const o=n.schema;let s=o;a.tagName.toLowerCase()==="svg"&&o.space==="html"&&(s=of,n.schema=s),n.ancestors.push(a);const f=Rg(n,a.tagName,!1),c=V_(n,a);let p=ff(n,a);return z_.has(a.tagName)&&(p=p.filter(function(m){return typeof m=="string"?!h_(m):!0})),Mg(n,c,f,a),cf(c,p),n.ancestors.pop(),n.schema=o,n.create(a,f,c,l)}function H_(n,a){if(a.data&&a.data.estree&&n.evaluater){const o=a.data.estree.body[0];return o.type,n.evaluater.evaluateExpression(o.expression)}Nr(n,a.position)}function q_(n,a){if(a.data&&a.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(a.data.estree);Nr(n,a.position)}function F_(n,a,l){const o=n.schema;let s=o;a.name==="svg"&&o.space==="html"&&(s=of,n.schema=s),n.ancestors.push(a);const f=a.name===null?n.Fragment:Rg(n,a.name,!0),c=X_(n,a),p=ff(n,a);return Mg(n,c,f,a),cf(c,p),n.ancestors.pop(),n.schema=o,n.create(a,f,c,l)}function G_(n,a,l){const o={};return cf(o,ff(n,a)),n.create(a,n.Fragment,o,l)}function j_(n,a){return a.value}function Mg(n,a,l,o){typeof l!="string"&&l!==n.Fragment&&n.passNode&&(a.node=o)}function cf(n,a){if(a.length>0){const l=a.length>1?a:a[0];l&&(n.children=l)}}function Y_(n,a,l){return o;function o(s,f,c,p){const h=Array.isArray(c.children)?l:a;return p?h(f,c,p):h(f,c)}}function K_(n,a){return l;function l(o,s,f,c){const p=Array.isArray(f.children),m=sf(o);return a(s,f,c,p,{columnNumber:m?m.column-1:void 0,fileName:n,lineNumber:m?m.line:void 0},void 0)}}function V_(n,a){const l={};let o,s;for(s in a.properties)if(s!=="children"&&uf.call(a.properties,s)){const f=P_(n,s,a.properties[s]);if(f){const[c,p]=f;n.tableCellAlignToStyle&&c==="align"&&typeof p=="string"&&B_.has(a.tagName)?o=p:l[c]=p}}if(o){const f=l.style||(l.style={});f[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}return l}function X_(n,a){const l={};for(const o of a.attributes)if(o.type==="mdxJsxExpressionAttribute")if(o.data&&o.data.estree&&n.evaluater){const f=o.data.estree.body[0];f.type;const c=f.expression;c.type;const p=c.properties[0];p.type,Object.assign(l,n.evaluater.evaluateExpression(p.argument))}else Nr(n,a.position);else{const s=o.name;let f;if(o.value&&typeof o.value=="object")if(o.value.data&&o.value.data.estree&&n.evaluater){const p=o.value.data.estree.body[0];p.type,f=n.evaluater.evaluateExpression(p.expression)}else Nr(n,a.position);else f=o.value===null?!0:o.value;l[s]=f}return l}function ff(n,a){const l=[];let o=-1;const s=n.passKeys?new Map:D_;for(;++o<a.children.length;){const f=a.children[o];let c;if(n.passKeys){const m=f.type==="element"?f.tagName:f.type==="mdxJsxFlowElement"||f.type==="mdxJsxTextElement"?f.name:void 0;if(m){const h=s.get(m)||0;c=m+"-"+h,s.set(m,h+1)}}const p=Og(n,f,c);p!==void 0&&l.push(p)}return l}function P_(n,a,l){const o=v_(n.schema,a);if(!(l==null||typeof l=="number"&&Number.isNaN(l))){if(Array.isArray(l)&&(l=o.commaSeparated?u_(l):N_(l)),o.property==="style"){let s=typeof l=="object"?l:Z_(n,String(l));return n.stylePropertyNameCase==="css"&&(s=Q_(s)),["style",s]}return[n.elementAttributeNameCase==="react"&&o.space?y_[o.property]||o.property:o.attribute,l]}}function Z_(n,a){try{return M_(a,{reactCompat:!0})}catch(l){if(n.ignoreInvalidStyle)return{};const o=l,s=new Zt("Cannot parse `style` attribute",{ancestors:n.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw s.file=n.filePath||void 0,s.url=Cg+"#cannot-parse-style-attribute",s}}function Rg(n,a,l){let o;if(!l)o={type:"Literal",value:a};else if(a.includes(".")){const s=a.split(".");let f=-1,c;for(;++f<s.length;){const p=dm(s[f])?{type:"Identifier",name:s[f]}:{type:"Literal",value:s[f]};c=c?{type:"MemberExpression",object:c,property:p,computed:!!(f&&p.type==="Literal"),optional:!1}:p}o=c}else o=dm(a)&&!/^[a-z]/.test(a)?{type:"Identifier",name:a}:{type:"Literal",value:a};if(o.type==="Literal"){const s=o.value;return uf.call(n.components,s)?n.components[s]:s}if(n.evaluater)return n.evaluater.evaluateExpression(o);Nr(n)}function Nr(n,a){const l=new Zt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:n.ancestors,place:a,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw l.file=n.filePath||void 0,l.url=Cg+"#cannot-handle-mdx-estrees-without-createevaluater",l}function Q_(n){const a={};let l;for(l in n)uf.call(n,l)&&(a[$_(l)]=n[l]);return a}function $_(n){let a=n.replace(L_,J_);return a.slice(0,3)==="ms-"&&(a="-"+a),a}function J_(n){return"-"+n.toLowerCase()}const Nc={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"]},W_={};function df(n,a){const l=W_,o=typeof l.includeImageAlt=="boolean"?l.includeImageAlt:!0,s=typeof l.includeHtml=="boolean"?l.includeHtml:!0;return Dg(n,o,s)}function Dg(n,a,l){if(e0(n)){if("value"in n)return n.type==="html"&&!l?"":n.value;if(a&&"alt"in n&&n.alt)return n.alt;if("children"in n)return Sm(n.children,a,l)}return Array.isArray(n)?Sm(n,a,l):""}function Sm(n,a,l){const o=[];let s=-1;for(;++s<n.length;)o[s]=Dg(n[s],a,l);return o.join("")}function e0(n){return!!(n&&typeof n=="object")}const xm=document.createElement("i");function pf(n){const a="&"+n+";";xm.innerHTML=a;const l=xm.textContent;return l.charCodeAt(l.length-1)===59&&n!=="semi"||l===a?!1:l}function An(n,a,l,o){const s=n.length;let f=0,c;if(a<0?a=-a>s?0:s+a:a=a>s?s:a,l=l>0?l:0,o.length<1e4)c=Array.from(o),c.unshift(a,l),n.splice(...c);else for(l&&n.splice(a,l);f<o.length;)c=o.slice(f,f+1e4),c.unshift(a,0),n.splice(...c),f+=1e4,a+=1e4}function In(n,a){return n.length>0?(An(n,n.length,0,a),n):a}const Tm={}.hasOwnProperty;function Lg(n){const a={};let l=-1;for(;++l<n.length;)t0(a,n[l]);return a}function t0(n,a){let l;for(l in a){const s=(Tm.call(n,l)?n[l]:void 0)||(n[l]={}),f=a[l];let c;if(f)for(c in f){Tm.call(s,c)||(s[c]=[]);const p=f[c];n0(s[c],Array.isArray(p)?p:p?[p]:[])}}}function n0(n,a){let l=-1;const o=[];for(;++l<a.length;)(a[l].add==="after"?n:o).push(a[l]);An(n,0,0,o)}function zg(n,a){const l=Number.parseInt(n,a);return l<9||l===11||l>13&&l<32||l>126&&l<160||l>55295&&l<57344||l>64975&&l<65008||(l&65535)===65535||(l&65535)===65534||l>1114111?"�":String.fromCodePoint(l)}function jn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const tn=ea(/[A-Za-z]/),Pt=ea(/[\dA-Za-z]/),i0=ea(/[#-'*+\--9=?A-Z^-~]/);function as(n){return n!==null&&(n<32||n===127)}const Pc=ea(/\d/),a0=ea(/[\dA-Fa-f]/),l0=ea(/[!-/:-@[-`{-~]/);function xe(n){return n!==null&&n<-2}function ct(n){return n!==null&&(n<0||n===32)}function qe(n){return n===-2||n===-1||n===32}const cs=ea(new RegExp("\\p{P}|\\p{S}","u")),Ta=ea(/\s/);function ea(n){return a;function a(l){return l!==null&&l>-1&&n.test(String.fromCharCode(l))}}function _l(n){const a=[];let l=-1,o=0,s=0;for(;++l<n.length;){const f=n.charCodeAt(l);let c="";if(f===37&&Pt(n.charCodeAt(l+1))&&Pt(n.charCodeAt(l+2)))s=2;else if(f<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(f))||(c=String.fromCharCode(f));else if(f>55295&&f<57344){const p=n.charCodeAt(l+1);f<56320&&p>56319&&p<57344?(c=String.fromCharCode(f,p),s=1):c="�"}else c=String.fromCharCode(f);c&&(a.push(n.slice(o,l),encodeURIComponent(c)),o=l+s+1,c=""),s&&(l+=s,s=0)}return a.join("")+n.slice(o)}function Ve(n,a,l,o){const s=o?o-1:Number.POSITIVE_INFINITY;let f=0;return c;function c(m){return qe(m)?(n.enter(l),p(m)):a(m)}function p(m){return qe(m)&&f++<s?(n.consume(m),p):(n.exit(l),a(m))}}const r0={tokenize:o0};function o0(n){const a=n.attempt(this.parser.constructs.contentInitial,o,s);let l;return a;function o(p){if(p===null){n.consume(p);return}return n.enter("lineEnding"),n.consume(p),n.exit("lineEnding"),Ve(n,a,"linePrefix")}function s(p){return n.enter("paragraph"),f(p)}function f(p){const m=n.enter("chunkText",{contentType:"text",previous:l});return l&&(l.next=m),l=m,c(p)}function c(p){if(p===null){n.exit("chunkText"),n.exit("paragraph"),n.consume(p);return}return xe(p)?(n.consume(p),n.exit("chunkText"),f):(n.consume(p),c)}}const s0={tokenize:u0},Nm={tokenize:c0};function u0(n){const a=this,l=[];let o=0,s,f,c;return p;function p(I){if(o<l.length){const $=l[o];return a.containerState=$[1],n.attempt($[0].continuation,m,h)(I)}return h(I)}function m(I){if(o++,a.containerState._closeFlow){a.containerState._closeFlow=void 0,s&&B();const $=a.events.length;let X=$,N;for(;X--;)if(a.events[X][0]==="exit"&&a.events[X][1].type==="chunkFlow"){N=a.events[X][1].end;break}A(o);let Y=$;for(;Y<a.events.length;)a.events[Y][1].end={...N},Y++;return An(a.events,X+1,0,a.events.slice($)),a.events.length=Y,h(I)}return p(I)}function h(I){if(o===l.length){if(!s)return _(I);if(s.currentConstruct&&s.currentConstruct.concrete)return x(I);a.interrupt=!!(s.currentConstruct&&!s._gfmTableDynamicInterruptHack)}return a.containerState={},n.check(Nm,b,g)(I)}function b(I){return s&&B(),A(o),_(I)}function g(I){return a.parser.lazy[a.now().line]=o!==l.length,c=a.now().offset,x(I)}function _(I){return a.containerState={},n.attempt(Nm,E,x)(I)}function E(I){return o++,l.push([a.currentConstruct,a.containerState]),_(I)}function x(I){if(I===null){s&&B(),A(0),n.consume(I);return}return s=s||a.parser.flow(a.now()),n.enter("chunkFlow",{_tokenizer:s,contentType:"flow",previous:f}),O(I)}function O(I){if(I===null){R(n.exit("chunkFlow"),!0),A(0),n.consume(I);return}return xe(I)?(n.consume(I),R(n.exit("chunkFlow")),o=0,a.interrupt=void 0,p):(n.consume(I),O)}function R(I,$){const X=a.sliceStream(I);if($&&X.push(null),I.previous=f,f&&(f.next=I),f=I,s.defineSkip(I.start),s.write(X),a.parser.lazy[I.start.line]){let N=s.events.length;for(;N--;)if(s.events[N][1].start.offset<c&&(!s.events[N][1].end||s.events[N][1].end.offset>c))return;const Y=a.events.length;let ee=Y,ue,U;for(;ee--;)if(a.events[ee][0]==="exit"&&a.events[ee][1].type==="chunkFlow"){if(ue){U=a.events[ee][1].end;break}ue=!0}for(A(o),N=Y;N<a.events.length;)a.events[N][1].end={...U},N++;An(a.events,ee+1,0,a.events.slice(Y)),a.events.length=N}}function A(I){let $=l.length;for(;$-- >I;){const X=l[$];a.containerState=X[1],X[0].exit.call(a,n)}l.length=I}function B(){s.write([null]),f=void 0,s=void 0,a.containerState._closeFlow=void 0}}function c0(n,a,l){return Ve(n,n.attempt(this.parser.constructs.document,a,l),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function yl(n){if(n===null||ct(n)||Ta(n))return 1;if(cs(n))return 2}function fs(n,a,l){const o=[];let s=-1;for(;++s<n.length;){const f=n[s].resolveAll;f&&!o.includes(f)&&(a=f(a,l),o.push(f))}return a}const Zc={name:"attention",resolveAll:f0,tokenize:d0};function f0(n,a){let l=-1,o,s,f,c,p,m,h,b;for(;++l<n.length;)if(n[l][0]==="enter"&&n[l][1].type==="attentionSequence"&&n[l][1]._close){for(o=l;o--;)if(n[o][0]==="exit"&&n[o][1].type==="attentionSequence"&&n[o][1]._open&&a.sliceSerialize(n[o][1]).charCodeAt(0)===a.sliceSerialize(n[l][1]).charCodeAt(0)){if((n[o][1]._close||n[l][1]._open)&&(n[l][1].end.offset-n[l][1].start.offset)%3&&!((n[o][1].end.offset-n[o][1].start.offset+n[l][1].end.offset-n[l][1].start.offset)%3))continue;m=n[o][1].end.offset-n[o][1].start.offset>1&&n[l][1].end.offset-n[l][1].start.offset>1?2:1;const g={...n[o][1].end},_={...n[l][1].start};Am(g,-m),Am(_,m),c={type:m>1?"strongSequence":"emphasisSequence",start:g,end:{...n[o][1].end}},p={type:m>1?"strongSequence":"emphasisSequence",start:{...n[l][1].start},end:_},f={type:m>1?"strongText":"emphasisText",start:{...n[o][1].end},end:{...n[l][1].start}},s={type:m>1?"strong":"emphasis",start:{...c.start},end:{...p.end}},n[o][1].end={...c.start},n[l][1].start={...p.end},h=[],n[o][1].end.offset-n[o][1].start.offset&&(h=In(h,[["enter",n[o][1],a],["exit",n[o][1],a]])),h=In(h,[["enter",s,a],["enter",c,a],["exit",c,a],["enter",f,a]]),h=In(h,fs(a.parser.constructs.insideSpan.null,n.slice(o+1,l),a)),h=In(h,[["exit",f,a],["enter",p,a],["exit",p,a],["exit",s,a]]),n[l][1].end.offset-n[l][1].start.offset?(b=2,h=In(h,[["enter",n[l][1],a],["exit",n[l][1],a]])):b=0,An(n,o-1,l-o+3,h),l=o+h.length-b-2;break}}for(l=-1;++l<n.length;)n[l][1].type==="attentionSequence"&&(n[l][1].type="data");return n}function d0(n,a){const l=this.parser.constructs.attentionMarkers.null,o=this.previous,s=yl(o);let f;return c;function c(m){return f=m,n.enter("attentionSequence"),p(m)}function p(m){if(m===f)return n.consume(m),p;const h=n.exit("attentionSequence"),b=yl(m),g=!b||b===2&&s||l.includes(m),_=!s||s===2&&b||l.includes(o);return h._open=!!(f===42?g:g&&(s||!_)),h._close=!!(f===42?_:_&&(b||!g)),a(m)}}function Am(n,a){n.column+=a,n.offset+=a,n._bufferIndex+=a}const p0={name:"autolink",tokenize:h0};function h0(n,a,l){let o=0;return s;function s(E){return n.enter("autolink"),n.enter("autolinkMarker"),n.consume(E),n.exit("autolinkMarker"),n.enter("autolinkProtocol"),f}function f(E){return tn(E)?(n.consume(E),c):E===64?l(E):h(E)}function c(E){return E===43||E===45||E===46||Pt(E)?(o=1,p(E)):h(E)}function p(E){return E===58?(n.consume(E),o=0,m):(E===43||E===45||E===46||Pt(E))&&o++<32?(n.consume(E),p):(o=0,h(E))}function m(E){return E===62?(n.exit("autolinkProtocol"),n.enter("autolinkMarker"),n.consume(E),n.exit("autolinkMarker"),n.exit("autolink"),a):E===null||E===32||E===60||as(E)?l(E):(n.consume(E),m)}function h(E){return E===64?(n.consume(E),b):i0(E)?(n.consume(E),h):l(E)}function b(E){return Pt(E)?g(E):l(E)}function g(E){return E===46?(n.consume(E),o=0,b):E===62?(n.exit("autolinkProtocol").type="autolinkEmail",n.enter("autolinkMarker"),n.consume(E),n.exit("autolinkMarker"),n.exit("autolink"),a):_(E)}function _(E){if((E===45||Pt(E))&&o++<63){const x=E===45?_:g;return n.consume(E),x}return l(E)}}const kr={partial:!0,tokenize:m0};function m0(n,a,l){return o;function o(f){return qe(f)?Ve(n,s,"linePrefix")(f):s(f)}function s(f){return f===null||xe(f)?a(f):l(f)}}const Bg={continuation:{tokenize:b0},exit:y0,name:"blockQuote",tokenize:g0};function g0(n,a,l){const o=this;return s;function s(c){if(c===62){const p=o.containerState;return p.open||(n.enter("blockQuote",{_container:!0}),p.open=!0),n.enter("blockQuotePrefix"),n.enter("blockQuoteMarker"),n.consume(c),n.exit("blockQuoteMarker"),f}return l(c)}function f(c){return qe(c)?(n.enter("blockQuotePrefixWhitespace"),n.consume(c),n.exit("blockQuotePrefixWhitespace"),n.exit("blockQuotePrefix"),a):(n.exit("blockQuotePrefix"),a(c))}}function b0(n,a,l){const o=this;return s;function s(c){return qe(c)?Ve(n,f,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(c):f(c)}function f(c){return n.attempt(Bg,a,l)(c)}}function y0(n){n.exit("blockQuote")}const Ig={name:"characterEscape",tokenize:E0};function E0(n,a,l){return o;function o(f){return n.enter("characterEscape"),n.enter("escapeMarker"),n.consume(f),n.exit("escapeMarker"),s}function s(f){return l0(f)?(n.enter("characterEscapeValue"),n.consume(f),n.exit("characterEscapeValue"),n.exit("characterEscape"),a):l(f)}}const Ug={name:"characterReference",tokenize:_0};function _0(n,a,l){const o=this;let s=0,f,c;return p;function p(g){return n.enter("characterReference"),n.enter("characterReferenceMarker"),n.consume(g),n.exit("characterReferenceMarker"),m}function m(g){return g===35?(n.enter("characterReferenceMarkerNumeric"),n.consume(g),n.exit("characterReferenceMarkerNumeric"),h):(n.enter("characterReferenceValue"),f=31,c=Pt,b(g))}function h(g){return g===88||g===120?(n.enter("characterReferenceMarkerHexadecimal"),n.consume(g),n.exit("characterReferenceMarkerHexadecimal"),n.enter("characterReferenceValue"),f=6,c=a0,b):(n.enter("characterReferenceValue"),f=7,c=Pc,b(g))}function b(g){if(g===59&&s){const _=n.exit("characterReferenceValue");return c===Pt&&!pf(o.sliceSerialize(_))?l(g):(n.enter("characterReferenceMarker"),n.consume(g),n.exit("characterReferenceMarker"),n.exit("characterReference"),a)}return c(g)&&s++<f?(n.consume(g),b):l(g)}}const wm={partial:!0,tokenize:S0},km={concrete:!0,name:"codeFenced",tokenize:v0};function v0(n,a,l){const o=this,s={partial:!0,tokenize:X};let f=0,c=0,p;return m;function m(N){return h(N)}function h(N){const Y=o.events[o.events.length-1];return f=Y&&Y[1].type==="linePrefix"?Y[2].sliceSerialize(Y[1],!0).length:0,p=N,n.enter("codeFenced"),n.enter("codeFencedFence"),n.enter("codeFencedFenceSequence"),b(N)}function b(N){return N===p?(c++,n.consume(N),b):c<3?l(N):(n.exit("codeFencedFenceSequence"),qe(N)?Ve(n,g,"whitespace")(N):g(N))}function g(N){return N===null||xe(N)?(n.exit("codeFencedFence"),o.interrupt?a(N):n.check(wm,O,$)(N)):(n.enter("codeFencedFenceInfo"),n.enter("chunkString",{contentType:"string"}),_(N))}function _(N){return N===null||xe(N)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),g(N)):qe(N)?(n.exit("chunkString"),n.exit("codeFencedFenceInfo"),Ve(n,E,"whitespace")(N)):N===96&&N===p?l(N):(n.consume(N),_)}function E(N){return N===null||xe(N)?g(N):(n.enter("codeFencedFenceMeta"),n.enter("chunkString",{contentType:"string"}),x(N))}function x(N){return N===null||xe(N)?(n.exit("chunkString"),n.exit("codeFencedFenceMeta"),g(N)):N===96&&N===p?l(N):(n.consume(N),x)}function O(N){return n.attempt(s,$,R)(N)}function R(N){return n.enter("lineEnding"),n.consume(N),n.exit("lineEnding"),A}function A(N){return f>0&&qe(N)?Ve(n,B,"linePrefix",f+1)(N):B(N)}function B(N){return N===null||xe(N)?n.check(wm,O,$)(N):(n.enter("codeFlowValue"),I(N))}function I(N){return N===null||xe(N)?(n.exit("codeFlowValue"),B(N)):(n.consume(N),I)}function $(N){return n.exit("codeFenced"),a(N)}function X(N,Y,ee){let ue=0;return U;function U(W){return N.enter("lineEnding"),N.consume(W),N.exit("lineEnding"),ae}function ae(W){return N.enter("codeFencedFence"),qe(W)?Ve(N,re,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):re(W)}function re(W){return W===p?(N.enter("codeFencedFenceSequence"),we(W)):ee(W)}function we(W){return W===p?(ue++,N.consume(W),we):ue>=c?(N.exit("codeFencedFenceSequence"),qe(W)?Ve(N,oe,"whitespace")(W):oe(W)):ee(W)}function oe(W){return W===null||xe(W)?(N.exit("codeFencedFence"),Y(W)):ee(W)}}}function S0(n,a,l){const o=this;return s;function s(c){return c===null?l(c):(n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),f)}function f(c){return o.parser.lazy[o.now().line]?l(c):a(c)}}const Ac={name:"codeIndented",tokenize:T0},x0={partial:!0,tokenize:N0};function T0(n,a,l){const o=this;return s;function s(h){return n.enter("codeIndented"),Ve(n,f,"linePrefix",5)(h)}function f(h){const b=o.events[o.events.length-1];return b&&b[1].type==="linePrefix"&&b[2].sliceSerialize(b[1],!0).length>=4?c(h):l(h)}function c(h){return h===null?m(h):xe(h)?n.attempt(x0,c,m)(h):(n.enter("codeFlowValue"),p(h))}function p(h){return h===null||xe(h)?(n.exit("codeFlowValue"),c(h)):(n.consume(h),p)}function m(h){return n.exit("codeIndented"),a(h)}}function N0(n,a,l){const o=this;return s;function s(c){return o.parser.lazy[o.now().line]?l(c):xe(c)?(n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),s):Ve(n,f,"linePrefix",5)(c)}function f(c){const p=o.events[o.events.length-1];return p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?a(c):xe(c)?s(c):l(c)}}const A0={name:"codeText",previous:k0,resolve:w0,tokenize:C0};function w0(n){let a=n.length-4,l=3,o,s;if((n[l][1].type==="lineEnding"||n[l][1].type==="space")&&(n[a][1].type==="lineEnding"||n[a][1].type==="space")){for(o=l;++o<a;)if(n[o][1].type==="codeTextData"){n[l][1].type="codeTextPadding",n[a][1].type="codeTextPadding",l+=2,a-=2;break}}for(o=l-1,a++;++o<=a;)s===void 0?o!==a&&n[o][1].type!=="lineEnding"&&(s=o):(o===a||n[o][1].type==="lineEnding")&&(n[s][1].type="codeTextData",o!==s+2&&(n[s][1].end=n[o-1][1].end,n.splice(s+2,o-s-2),a-=o-s-2,o=s+2),s=void 0);return n}function k0(n){return n!==96||this.events[this.events.length-1][1].type==="characterEscape"}function C0(n,a,l){let o=0,s,f;return c;function c(g){return n.enter("codeText"),n.enter("codeTextSequence"),p(g)}function p(g){return g===96?(n.consume(g),o++,p):(n.exit("codeTextSequence"),m(g))}function m(g){return g===null?l(g):g===32?(n.enter("space"),n.consume(g),n.exit("space"),m):g===96?(f=n.enter("codeTextSequence"),s=0,b(g)):xe(g)?(n.enter("lineEnding"),n.consume(g),n.exit("lineEnding"),m):(n.enter("codeTextData"),h(g))}function h(g){return g===null||g===32||g===96||xe(g)?(n.exit("codeTextData"),m(g)):(n.consume(g),h)}function b(g){return g===96?(n.consume(g),s++,b):s===o?(n.exit("codeTextSequence"),n.exit("codeText"),a(g)):(f.type="codeTextData",h(g))}}class O0{constructor(a){this.left=a?[...a]:[],this.right=[]}get(a){if(a<0||a>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+a+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return a<this.left.length?this.left[a]:this.right[this.right.length-a+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(a,l){const o=l??Number.POSITIVE_INFINITY;return o<this.left.length?this.left.slice(a,o):a>this.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-a+this.left.length).reverse():this.left.slice(a).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(a,l,o){const s=l||0;this.setCursor(Math.trunc(a));const f=this.right.splice(this.right.length-s,Number.POSITIVE_INFINITY);return o&&Er(this.left,o),f.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(a){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(a)}pushMany(a){this.setCursor(Number.POSITIVE_INFINITY),Er(this.left,a)}unshift(a){this.setCursor(0),this.right.push(a)}unshiftMany(a){this.setCursor(0),Er(this.right,a.reverse())}setCursor(a){if(!(a===this.left.length||a>this.left.length&&this.right.length===0||a<0&&this.left.length===0))if(a<this.left.length){const l=this.left.splice(a,Number.POSITIVE_INFINITY);Er(this.right,l.reverse())}else{const l=this.right.splice(this.left.length+this.right.length-a,Number.POSITIVE_INFINITY);Er(this.left,l.reverse())}}}function Er(n,a){let l=0;if(a.length<1e4)n.push(...a);else for(;l<a.length;)n.push(...a.slice(l,l+1e4)),l+=1e4}function Hg(n){const a={};let l=-1,o,s,f,c,p,m,h;const b=new O0(n);for(;++l<b.length;){for(;l in a;)l=a[l];if(o=b.get(l),l&&o[1].type==="chunkFlow"&&b.get(l-1)[1].type==="listItemPrefix"&&(m=o[1]._tokenizer.events,f=0,f<m.length&&m[f][1].type==="lineEndingBlank"&&(f+=2),f<m.length&&m[f][1].type==="content"))for(;++f<m.length&&m[f][1].type!=="content";)m[f][1].type==="chunkText"&&(m[f][1]._isInFirstContentOfListItem=!0,f++);if(o[0]==="enter")o[1].contentType&&(Object.assign(a,M0(b,l)),l=a[l],h=!0);else if(o[1]._container){for(f=l,s=void 0;f--;)if(c=b.get(f),c[1].type==="lineEnding"||c[1].type==="lineEndingBlank")c[0]==="enter"&&(s&&(b.get(s)[1].type="lineEndingBlank"),c[1].type="lineEnding",s=f);else if(!(c[1].type==="linePrefix"||c[1].type==="listItemIndent"))break;s&&(o[1].end={...b.get(s)[1].start},p=b.slice(s,l),p.unshift(o),b.splice(s,l-s+1,p))}}return An(n,0,Number.POSITIVE_INFINITY,b.slice(0)),!h}function M0(n,a){const l=n.get(a)[1],o=n.get(a)[2];let s=a-1;const f=[];let c=l._tokenizer;c||(c=o.parser[l.contentType](l.start),l._contentTypeTextTrailing&&(c._contentTypeTextTrailing=!0));const p=c.events,m=[],h={};let b,g,_=-1,E=l,x=0,O=0;const R=[O];for(;E;){for(;n.get(++s)[1]!==E;);f.push(s),E._tokenizer||(b=o.sliceStream(E),E.next||b.push(null),g&&c.defineSkip(E.start),E._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=!0),c.write(b),E._isInFirstContentOfListItem&&(c._gfmTasklistFirstContentOfListItem=void 0)),g=E,E=E.next}for(E=l;++_<p.length;)p[_][0]==="exit"&&p[_-1][0]==="enter"&&p[_][1].type===p[_-1][1].type&&p[_][1].start.line!==p[_][1].end.line&&(O=_+1,R.push(O),E._tokenizer=void 0,E.previous=void 0,E=E.next);for(c.events=[],E?(E._tokenizer=void 0,E.previous=void 0):R.pop(),_=R.length;_--;){const A=p.slice(R[_],R[_+1]),B=f.pop();m.push([B,B+A.length-1]),n.splice(B,2,A)}for(m.reverse(),_=-1;++_<m.length;)h[x+m[_][0]]=x+m[_][1],x+=m[_][1]-m[_][0]-1;return h}const R0={resolve:L0,tokenize:z0},D0={partial:!0,tokenize:B0};function L0(n){return Hg(n),n}function z0(n,a){let l;return o;function o(p){return n.enter("content"),l=n.enter("chunkContent",{contentType:"content"}),s(p)}function s(p){return p===null?f(p):xe(p)?n.check(D0,c,f)(p):(n.consume(p),s)}function f(p){return n.exit("chunkContent"),n.exit("content"),a(p)}function c(p){return n.consume(p),n.exit("chunkContent"),l.next=n.enter("chunkContent",{contentType:"content",previous:l}),l=l.next,s}}function B0(n,a,l){const o=this;return s;function s(c){return n.exit("chunkContent"),n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),Ve(n,f,"linePrefix")}function f(c){if(c===null||xe(c))return l(c);const p=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&p&&p[1].type==="linePrefix"&&p[2].sliceSerialize(p[1],!0).length>=4?a(c):n.interrupt(o.parser.constructs.flow,l,a)(c)}}function qg(n,a,l,o,s,f,c,p,m){const h=m||Number.POSITIVE_INFINITY;let b=0;return g;function g(A){return A===60?(n.enter(o),n.enter(s),n.enter(f),n.consume(A),n.exit(f),_):A===null||A===32||A===41||as(A)?l(A):(n.enter(o),n.enter(c),n.enter(p),n.enter("chunkString",{contentType:"string"}),O(A))}function _(A){return A===62?(n.enter(f),n.consume(A),n.exit(f),n.exit(s),n.exit(o),a):(n.enter(p),n.enter("chunkString",{contentType:"string"}),E(A))}function E(A){return A===62?(n.exit("chunkString"),n.exit(p),_(A)):A===null||A===60||xe(A)?l(A):(n.consume(A),A===92?x:E)}function x(A){return A===60||A===62||A===92?(n.consume(A),E):E(A)}function O(A){return!b&&(A===null||A===41||ct(A))?(n.exit("chunkString"),n.exit(p),n.exit(c),n.exit(o),a(A)):b<h&&A===40?(n.consume(A),b++,O):A===41?(n.consume(A),b--,O):A===null||A===32||A===40||as(A)?l(A):(n.consume(A),A===92?R:O)}function R(A){return A===40||A===41||A===92?(n.consume(A),O):O(A)}}function Fg(n,a,l,o,s,f){const c=this;let p=0,m;return h;function h(E){return n.enter(o),n.enter(s),n.consume(E),n.exit(s),n.enter(f),b}function b(E){return p>999||E===null||E===91||E===93&&!m||E===94&&!p&&"_hiddenFootnoteSupport"in c.parser.constructs?l(E):E===93?(n.exit(f),n.enter(s),n.consume(E),n.exit(s),n.exit(o),a):xe(E)?(n.enter("lineEnding"),n.consume(E),n.exit("lineEnding"),b):(n.enter("chunkString",{contentType:"string"}),g(E))}function g(E){return E===null||E===91||E===93||xe(E)||p++>999?(n.exit("chunkString"),b(E)):(n.consume(E),m||(m=!qe(E)),E===92?_:g)}function _(E){return E===91||E===92||E===93?(n.consume(E),p++,g):g(E)}}function Gg(n,a,l,o,s,f){let c;return p;function p(_){return _===34||_===39||_===40?(n.enter(o),n.enter(s),n.consume(_),n.exit(s),c=_===40?41:_,m):l(_)}function m(_){return _===c?(n.enter(s),n.consume(_),n.exit(s),n.exit(o),a):(n.enter(f),h(_))}function h(_){return _===c?(n.exit(f),m(c)):_===null?l(_):xe(_)?(n.enter("lineEnding"),n.consume(_),n.exit("lineEnding"),Ve(n,h,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),b(_))}function b(_){return _===c||_===null||xe(_)?(n.exit("chunkString"),h(_)):(n.consume(_),_===92?g:b)}function g(_){return _===c||_===92?(n.consume(_),b):b(_)}}function xr(n,a){let l;return o;function o(s){return xe(s)?(n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),l=!0,o):qe(s)?Ve(n,o,l?"linePrefix":"lineSuffix")(s):a(s)}}const I0={name:"definition",tokenize:H0},U0={partial:!0,tokenize:q0};function H0(n,a,l){const o=this;let s;return f;function f(E){return n.enter("definition"),c(E)}function c(E){return Fg.call(o,n,p,l,"definitionLabel","definitionLabelMarker","definitionLabelString")(E)}function p(E){return s=jn(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),E===58?(n.enter("definitionMarker"),n.consume(E),n.exit("definitionMarker"),m):l(E)}function m(E){return ct(E)?xr(n,h)(E):h(E)}function h(E){return qg(n,b,l,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(E)}function b(E){return n.attempt(U0,g,g)(E)}function g(E){return qe(E)?Ve(n,_,"whitespace")(E):_(E)}function _(E){return E===null||xe(E)?(n.exit("definition"),o.parser.defined.push(s),a(E)):l(E)}}function q0(n,a,l){return o;function o(p){return ct(p)?xr(n,s)(p):l(p)}function s(p){return Gg(n,f,l,"definitionTitle","definitionTitleMarker","definitionTitleString")(p)}function f(p){return qe(p)?Ve(n,c,"whitespace")(p):c(p)}function c(p){return p===null||xe(p)?a(p):l(p)}}const F0={name:"hardBreakEscape",tokenize:G0};function G0(n,a,l){return o;function o(f){return n.enter("hardBreakEscape"),n.consume(f),s}function s(f){return xe(f)?(n.exit("hardBreakEscape"),a(f)):l(f)}}const j0={name:"headingAtx",resolve:Y0,tokenize:K0};function Y0(n,a){let l=n.length-2,o=3,s,f;return n[o][1].type==="whitespace"&&(o+=2),l-2>o&&n[l][1].type==="whitespace"&&(l-=2),n[l][1].type==="atxHeadingSequence"&&(o===l-1||l-4>o&&n[l-2][1].type==="whitespace")&&(l-=o+1===l?2:4),l>o&&(s={type:"atxHeadingText",start:n[o][1].start,end:n[l][1].end},f={type:"chunkText",start:n[o][1].start,end:n[l][1].end,contentType:"text"},An(n,o,l-o+1,[["enter",s,a],["enter",f,a],["exit",f,a],["exit",s,a]])),n}function K0(n,a,l){let o=0;return s;function s(b){return n.enter("atxHeading"),f(b)}function f(b){return n.enter("atxHeadingSequence"),c(b)}function c(b){return b===35&&o++<6?(n.consume(b),c):b===null||ct(b)?(n.exit("atxHeadingSequence"),p(b)):l(b)}function p(b){return b===35?(n.enter("atxHeadingSequence"),m(b)):b===null||xe(b)?(n.exit("atxHeading"),a(b)):qe(b)?Ve(n,p,"whitespace")(b):(n.enter("atxHeadingText"),h(b))}function m(b){return b===35?(n.consume(b),m):(n.exit("atxHeadingSequence"),p(b))}function h(b){return b===null||b===35||ct(b)?(n.exit("atxHeadingText"),p(b)):(n.consume(b),h)}}const V0=["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"],Cm=["pre","script","style","textarea"],X0={concrete:!0,name:"htmlFlow",resolveTo:Q0,tokenize:$0},P0={partial:!0,tokenize:W0},Z0={partial:!0,tokenize:J0};function Q0(n){let a=n.length;for(;a--&&!(n[a][0]==="enter"&&n[a][1].type==="htmlFlow"););return a>1&&n[a-2][1].type==="linePrefix"&&(n[a][1].start=n[a-2][1].start,n[a+1][1].start=n[a-2][1].start,n.splice(a-2,2)),n}function $0(n,a,l){const o=this;let s,f,c,p,m;return h;function h(S){return b(S)}function b(S){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(S),g}function g(S){return S===33?(n.consume(S),_):S===47?(n.consume(S),f=!0,O):S===63?(n.consume(S),s=3,o.interrupt?a:T):tn(S)?(n.consume(S),c=String.fromCharCode(S),R):l(S)}function _(S){return S===45?(n.consume(S),s=2,E):S===91?(n.consume(S),s=5,p=0,x):tn(S)?(n.consume(S),s=4,o.interrupt?a:T):l(S)}function E(S){return S===45?(n.consume(S),o.interrupt?a:T):l(S)}function x(S){const ce="CDATA[";return S===ce.charCodeAt(p++)?(n.consume(S),p===ce.length?o.interrupt?a:re:x):l(S)}function O(S){return tn(S)?(n.consume(S),c=String.fromCharCode(S),R):l(S)}function R(S){if(S===null||S===47||S===62||ct(S)){const ce=S===47,_e=c.toLowerCase();return!ce&&!f&&Cm.includes(_e)?(s=1,o.interrupt?a(S):re(S)):V0.includes(c.toLowerCase())?(s=6,ce?(n.consume(S),A):o.interrupt?a(S):re(S)):(s=7,o.interrupt&&!o.parser.lazy[o.now().line]?l(S):f?B(S):I(S))}return S===45||Pt(S)?(n.consume(S),c+=String.fromCharCode(S),R):l(S)}function A(S){return S===62?(n.consume(S),o.interrupt?a:re):l(S)}function B(S){return qe(S)?(n.consume(S),B):U(S)}function I(S){return S===47?(n.consume(S),U):S===58||S===95||tn(S)?(n.consume(S),$):qe(S)?(n.consume(S),I):U(S)}function $(S){return S===45||S===46||S===58||S===95||Pt(S)?(n.consume(S),$):X(S)}function X(S){return S===61?(n.consume(S),N):qe(S)?(n.consume(S),X):I(S)}function N(S){return S===null||S===60||S===61||S===62||S===96?l(S):S===34||S===39?(n.consume(S),m=S,Y):qe(S)?(n.consume(S),N):ee(S)}function Y(S){return S===m?(n.consume(S),m=null,ue):S===null||xe(S)?l(S):(n.consume(S),Y)}function ee(S){return S===null||S===34||S===39||S===47||S===60||S===61||S===62||S===96||ct(S)?X(S):(n.consume(S),ee)}function ue(S){return S===47||S===62||qe(S)?I(S):l(S)}function U(S){return S===62?(n.consume(S),ae):l(S)}function ae(S){return S===null||xe(S)?re(S):qe(S)?(n.consume(S),ae):l(S)}function re(S){return S===45&&s===2?(n.consume(S),z):S===60&&s===1?(n.consume(S),J):S===62&&s===4?(n.consume(S),k):S===63&&s===3?(n.consume(S),T):S===93&&s===5?(n.consume(S),ye):xe(S)&&(s===6||s===7)?(n.exit("htmlFlowData"),n.check(P0,j,we)(S)):S===null||xe(S)?(n.exit("htmlFlowData"),we(S)):(n.consume(S),re)}function we(S){return n.check(Z0,oe,j)(S)}function oe(S){return n.enter("lineEnding"),n.consume(S),n.exit("lineEnding"),W}function W(S){return S===null||xe(S)?we(S):(n.enter("htmlFlowData"),re(S))}function z(S){return S===45?(n.consume(S),T):re(S)}function J(S){return S===47?(n.consume(S),c="",ne):re(S)}function ne(S){if(S===62){const ce=c.toLowerCase();return Cm.includes(ce)?(n.consume(S),k):re(S)}return tn(S)&&c.length<8?(n.consume(S),c+=String.fromCharCode(S),ne):re(S)}function ye(S){return S===93?(n.consume(S),T):re(S)}function T(S){return S===62?(n.consume(S),k):S===45&&s===2?(n.consume(S),T):re(S)}function k(S){return S===null||xe(S)?(n.exit("htmlFlowData"),j(S)):(n.consume(S),k)}function j(S){return n.exit("htmlFlow"),a(S)}}function J0(n,a,l){const o=this;return s;function s(c){return xe(c)?(n.enter("lineEnding"),n.consume(c),n.exit("lineEnding"),f):l(c)}function f(c){return o.parser.lazy[o.now().line]?l(c):a(c)}}function W0(n,a,l){return o;function o(s){return n.enter("lineEnding"),n.consume(s),n.exit("lineEnding"),n.attempt(kr,a,l)}}const ev={name:"htmlText",tokenize:tv};function tv(n,a,l){const o=this;let s,f,c;return p;function p(T){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(T),m}function m(T){return T===33?(n.consume(T),h):T===47?(n.consume(T),X):T===63?(n.consume(T),I):tn(T)?(n.consume(T),ee):l(T)}function h(T){return T===45?(n.consume(T),b):T===91?(n.consume(T),f=0,x):tn(T)?(n.consume(T),B):l(T)}function b(T){return T===45?(n.consume(T),E):l(T)}function g(T){return T===null?l(T):T===45?(n.consume(T),_):xe(T)?(c=g,J(T)):(n.consume(T),g)}function _(T){return T===45?(n.consume(T),E):g(T)}function E(T){return T===62?z(T):T===45?_(T):g(T)}function x(T){const k="CDATA[";return T===k.charCodeAt(f++)?(n.consume(T),f===k.length?O:x):l(T)}function O(T){return T===null?l(T):T===93?(n.consume(T),R):xe(T)?(c=O,J(T)):(n.consume(T),O)}function R(T){return T===93?(n.consume(T),A):O(T)}function A(T){return T===62?z(T):T===93?(n.consume(T),A):O(T)}function B(T){return T===null||T===62?z(T):xe(T)?(c=B,J(T)):(n.consume(T),B)}function I(T){return T===null?l(T):T===63?(n.consume(T),$):xe(T)?(c=I,J(T)):(n.consume(T),I)}function $(T){return T===62?z(T):I(T)}function X(T){return tn(T)?(n.consume(T),N):l(T)}function N(T){return T===45||Pt(T)?(n.consume(T),N):Y(T)}function Y(T){return xe(T)?(c=Y,J(T)):qe(T)?(n.consume(T),Y):z(T)}function ee(T){return T===45||Pt(T)?(n.consume(T),ee):T===47||T===62||ct(T)?ue(T):l(T)}function ue(T){return T===47?(n.consume(T),z):T===58||T===95||tn(T)?(n.consume(T),U):xe(T)?(c=ue,J(T)):qe(T)?(n.consume(T),ue):z(T)}function U(T){return T===45||T===46||T===58||T===95||Pt(T)?(n.consume(T),U):ae(T)}function ae(T){return T===61?(n.consume(T),re):xe(T)?(c=ae,J(T)):qe(T)?(n.consume(T),ae):ue(T)}function re(T){return T===null||T===60||T===61||T===62||T===96?l(T):T===34||T===39?(n.consume(T),s=T,we):xe(T)?(c=re,J(T)):qe(T)?(n.consume(T),re):(n.consume(T),oe)}function we(T){return T===s?(n.consume(T),s=void 0,W):T===null?l(T):xe(T)?(c=we,J(T)):(n.consume(T),we)}function oe(T){return T===null||T===34||T===39||T===60||T===61||T===96?l(T):T===47||T===62||ct(T)?ue(T):(n.consume(T),oe)}function W(T){return T===47||T===62||ct(T)?ue(T):l(T)}function z(T){return T===62?(n.consume(T),n.exit("htmlTextData"),n.exit("htmlText"),a):l(T)}function J(T){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(T),n.exit("lineEnding"),ne}function ne(T){return qe(T)?Ve(n,ye,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):ye(T)}function ye(T){return n.enter("htmlTextData"),c(T)}}const hf={name:"labelEnd",resolveAll:lv,resolveTo:rv,tokenize:ov},nv={tokenize:sv},iv={tokenize:uv},av={tokenize:cv};function lv(n){let a=-1;const l=[];for(;++a<n.length;){const o=n[a][1];if(l.push(n[a]),o.type==="labelImage"||o.type==="labelLink"||o.type==="labelEnd"){const s=o.type==="labelImage"?4:2;o.type="data",a+=s}}return n.length!==l.length&&An(n,0,n.length,l),n}function rv(n,a){let l=n.length,o=0,s,f,c,p;for(;l--;)if(s=n[l][1],f){if(s.type==="link"||s.type==="labelLink"&&s._inactive)break;n[l][0]==="enter"&&s.type==="labelLink"&&(s._inactive=!0)}else if(c){if(n[l][0]==="enter"&&(s.type==="labelImage"||s.type==="labelLink")&&!s._balanced&&(f=l,s.type!=="labelLink")){o=2;break}}else s.type==="labelEnd"&&(c=l);const m={type:n[f][1].type==="labelLink"?"link":"image",start:{...n[f][1].start},end:{...n[n.length-1][1].end}},h={type:"label",start:{...n[f][1].start},end:{...n[c][1].end}},b={type:"labelText",start:{...n[f+o+2][1].end},end:{...n[c-2][1].start}};return p=[["enter",m,a],["enter",h,a]],p=In(p,n.slice(f+1,f+o+3)),p=In(p,[["enter",b,a]]),p=In(p,fs(a.parser.constructs.insideSpan.null,n.slice(f+o+4,c-3),a)),p=In(p,[["exit",b,a],n[c-2],n[c-1],["exit",h,a]]),p=In(p,n.slice(c+1)),p=In(p,[["exit",m,a]]),An(n,f,n.length,p),n}function ov(n,a,l){const o=this;let s=o.events.length,f,c;for(;s--;)if((o.events[s][1].type==="labelImage"||o.events[s][1].type==="labelLink")&&!o.events[s][1]._balanced){f=o.events[s][1];break}return p;function p(_){return f?f._inactive?g(_):(c=o.parser.defined.includes(jn(o.sliceSerialize({start:f.end,end:o.now()}))),n.enter("labelEnd"),n.enter("labelMarker"),n.consume(_),n.exit("labelMarker"),n.exit("labelEnd"),m):l(_)}function m(_){return _===40?n.attempt(nv,b,c?b:g)(_):_===91?n.attempt(iv,b,c?h:g)(_):c?b(_):g(_)}function h(_){return n.attempt(av,b,g)(_)}function b(_){return a(_)}function g(_){return f._balanced=!0,l(_)}}function sv(n,a,l){return o;function o(g){return n.enter("resource"),n.enter("resourceMarker"),n.consume(g),n.exit("resourceMarker"),s}function s(g){return ct(g)?xr(n,f)(g):f(g)}function f(g){return g===41?b(g):qg(n,c,p,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function c(g){return ct(g)?xr(n,m)(g):b(g)}function p(g){return l(g)}function m(g){return g===34||g===39||g===40?Gg(n,h,l,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):b(g)}function h(g){return ct(g)?xr(n,b)(g):b(g)}function b(g){return g===41?(n.enter("resourceMarker"),n.consume(g),n.exit("resourceMarker"),n.exit("resource"),a):l(g)}}function uv(n,a,l){const o=this;return s;function s(p){return Fg.call(o,n,f,c,"reference","referenceMarker","referenceString")(p)}function f(p){return o.parser.defined.includes(jn(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)))?a(p):l(p)}function c(p){return l(p)}}function cv(n,a,l){return o;function o(f){return n.enter("reference"),n.enter("referenceMarker"),n.consume(f),n.exit("referenceMarker"),s}function s(f){return f===93?(n.enter("referenceMarker"),n.consume(f),n.exit("referenceMarker"),n.exit("reference"),a):l(f)}}const fv={name:"labelStartImage",resolveAll:hf.resolveAll,tokenize:dv};function dv(n,a,l){const o=this;return s;function s(p){return n.enter("labelImage"),n.enter("labelImageMarker"),n.consume(p),n.exit("labelImageMarker"),f}function f(p){return p===91?(n.enter("labelMarker"),n.consume(p),n.exit("labelMarker"),n.exit("labelImage"),c):l(p)}function c(p){return p===94&&"_hiddenFootnoteSupport"in o.parser.constructs?l(p):a(p)}}const pv={name:"labelStartLink",resolveAll:hf.resolveAll,tokenize:hv};function hv(n,a,l){const o=this;return s;function s(c){return n.enter("labelLink"),n.enter("labelMarker"),n.consume(c),n.exit("labelMarker"),n.exit("labelLink"),f}function f(c){return c===94&&"_hiddenFootnoteSupport"in o.parser.constructs?l(c):a(c)}}const wc={name:"lineEnding",tokenize:mv};function mv(n,a){return l;function l(o){return n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),Ve(n,a,"linePrefix")}}const is={name:"thematicBreak",tokenize:gv};function gv(n,a,l){let o=0,s;return f;function f(h){return n.enter("thematicBreak"),c(h)}function c(h){return s=h,p(h)}function p(h){return h===s?(n.enter("thematicBreakSequence"),m(h)):o>=3&&(h===null||xe(h))?(n.exit("thematicBreak"),a(h)):l(h)}function m(h){return h===s?(n.consume(h),o++,m):(n.exit("thematicBreakSequence"),qe(h)?Ve(n,p,"whitespace")(h):p(h))}}const dn={continuation:{tokenize:_v},exit:Sv,name:"list",tokenize:Ev},bv={partial:!0,tokenize:xv},yv={partial:!0,tokenize:vv};function Ev(n,a,l){const o=this,s=o.events[o.events.length-1];let f=s&&s[1].type==="linePrefix"?s[2].sliceSerialize(s[1],!0).length:0,c=0;return p;function p(E){const x=o.containerState.type||(E===42||E===43||E===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!o.containerState.marker||E===o.containerState.marker:Pc(E)){if(o.containerState.type||(o.containerState.type=x,n.enter(x,{_container:!0})),x==="listUnordered")return n.enter("listItemPrefix"),E===42||E===45?n.check(is,l,h)(E):h(E);if(!o.interrupt||E===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),m(E)}return l(E)}function m(E){return Pc(E)&&++c<10?(n.consume(E),m):(!o.interrupt||c<2)&&(o.containerState.marker?E===o.containerState.marker:E===41||E===46)?(n.exit("listItemValue"),h(E)):l(E)}function h(E){return n.enter("listItemMarker"),n.consume(E),n.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||E,n.check(kr,o.interrupt?l:b,n.attempt(bv,_,g))}function b(E){return o.containerState.initialBlankLine=!0,f++,_(E)}function g(E){return qe(E)?(n.enter("listItemPrefixWhitespace"),n.consume(E),n.exit("listItemPrefixWhitespace"),_):l(E)}function _(E){return o.containerState.size=f+o.sliceSerialize(n.exit("listItemPrefix"),!0).length,a(E)}}function _v(n,a,l){const o=this;return o.containerState._closeFlow=void 0,n.check(kr,s,f);function s(p){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,Ve(n,a,"listItemIndent",o.containerState.size+1)(p)}function f(p){return o.containerState.furtherBlankLines||!qe(p)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,c(p)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,n.attempt(yv,a,c)(p))}function c(p){return o.containerState._closeFlow=!0,o.interrupt=void 0,Ve(n,n.attempt(dn,a,l),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(p)}}function vv(n,a,l){const o=this;return Ve(n,s,"listItemIndent",o.containerState.size+1);function s(f){const c=o.events[o.events.length-1];return c&&c[1].type==="listItemIndent"&&c[2].sliceSerialize(c[1],!0).length===o.containerState.size?a(f):l(f)}}function Sv(n){n.exit(this.containerState.type)}function xv(n,a,l){const o=this;return Ve(n,s,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function s(f){const c=o.events[o.events.length-1];return!qe(f)&&c&&c[1].type==="listItemPrefixWhitespace"?a(f):l(f)}}const Om={name:"setextUnderline",resolveTo:Tv,tokenize:Nv};function Tv(n,a){let l=n.length,o,s,f;for(;l--;)if(n[l][0]==="enter"){if(n[l][1].type==="content"){o=l;break}n[l][1].type==="paragraph"&&(s=l)}else n[l][1].type==="content"&&n.splice(l,1),!f&&n[l][1].type==="definition"&&(f=l);const c={type:"setextHeading",start:{...n[o][1].start},end:{...n[n.length-1][1].end}};return n[s][1].type="setextHeadingText",f?(n.splice(s,0,["enter",c,a]),n.splice(f+1,0,["exit",n[o][1],a]),n[o][1].end={...n[f][1].end}):n[o][1]=c,n.push(["exit",c,a]),n}function Nv(n,a,l){const o=this;let s;return f;function f(h){let b=o.events.length,g;for(;b--;)if(o.events[b][1].type!=="lineEnding"&&o.events[b][1].type!=="linePrefix"&&o.events[b][1].type!=="content"){g=o.events[b][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||g)?(n.enter("setextHeadingLine"),s=h,c(h)):l(h)}function c(h){return n.enter("setextHeadingLineSequence"),p(h)}function p(h){return h===s?(n.consume(h),p):(n.exit("setextHeadingLineSequence"),qe(h)?Ve(n,m,"lineSuffix")(h):m(h))}function m(h){return h===null||xe(h)?(n.exit("setextHeadingLine"),a(h)):l(h)}}const Av={tokenize:wv};function wv(n){const a=this,l=n.attempt(kr,o,n.attempt(this.parser.constructs.flowInitial,s,Ve(n,n.attempt(this.parser.constructs.flow,s,n.attempt(R0,s)),"linePrefix")));return l;function o(f){if(f===null){n.consume(f);return}return n.enter("lineEndingBlank"),n.consume(f),n.exit("lineEndingBlank"),a.currentConstruct=void 0,l}function s(f){if(f===null){n.consume(f);return}return n.enter("lineEnding"),n.consume(f),n.exit("lineEnding"),a.currentConstruct=void 0,l}}const kv={resolveAll:Yg()},Cv=jg("string"),Ov=jg("text");function jg(n){return{resolveAll:Yg(n==="text"?Mv:void 0),tokenize:a};function a(l){const o=this,s=this.parser.constructs[n],f=l.attempt(s,c,p);return c;function c(b){return h(b)?f(b):p(b)}function p(b){if(b===null){l.consume(b);return}return l.enter("data"),l.consume(b),m}function m(b){return h(b)?(l.exit("data"),f(b)):(l.consume(b),m)}function h(b){if(b===null)return!0;const g=s[b];let _=-1;if(g)for(;++_<g.length;){const E=g[_];if(!E.previous||E.previous.call(o,o.previous))return!0}return!1}}}function Yg(n){return a;function a(l,o){let s=-1,f;for(;++s<=l.length;)f===void 0?l[s]&&l[s][1].type==="data"&&(f=s,s++):(!l[s]||l[s][1].type!=="data")&&(s!==f+2&&(l[f][1].end=l[s-1][1].end,l.splice(f+2,s-f-2),s=f+2),f=void 0);return n?n(l,o):l}}function Mv(n,a){let l=0;for(;++l<=n.length;)if((l===n.length||n[l][1].type==="lineEnding")&&n[l-1][1].type==="data"){const o=n[l-1][1],s=a.sliceStream(o);let f=s.length,c=-1,p=0,m;for(;f--;){const h=s[f];if(typeof h=="string"){for(c=h.length;h.charCodeAt(c-1)===32;)p++,c--;if(c)break;c=-1}else if(h===-2)m=!0,p++;else if(h!==-1){f++;break}}if(a._contentTypeTextTrailing&&l===n.length&&(p=0),p){const h={type:l===n.length||m||p<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:f?c:o.start._bufferIndex+c,_index:o.start._index+f,line:o.end.line,column:o.end.column-p,offset:o.end.offset-p},end:{...o.end}};o.end={...h.start},o.start.offset===o.end.offset?Object.assign(o,h):(n.splice(l,0,["enter",h,a],["exit",h,a]),l+=2)}l++}return n}const Rv={42:dn,43:dn,45:dn,48:dn,49:dn,50:dn,51:dn,52:dn,53:dn,54:dn,55:dn,56:dn,57:dn,62:Bg},Dv={91:I0},Lv={[-2]:Ac,[-1]:Ac,32:Ac},zv={35:j0,42:is,45:[Om,is],60:X0,61:Om,95:is,96:km,126:km},Bv={38:Ug,92:Ig},Iv={[-5]:wc,[-4]:wc,[-3]:wc,33:fv,38:Ug,42:Zc,60:[p0,ev],91:pv,92:[F0,Ig],93:hf,95:Zc,96:A0},Uv={null:[Zc,kv]},Hv={null:[42,95]},qv={null:[]},Fv=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Hv,contentInitial:Dv,disable:qv,document:Rv,flow:zv,flowInitial:Lv,insideSpan:Uv,string:Bv,text:Iv},Symbol.toStringTag,{value:"Module"}));function Gv(n,a,l){let o={_bufferIndex:-1,_index:0,line:l&&l.line||1,column:l&&l.column||1,offset:l&&l.offset||0};const s={},f=[];let c=[],p=[];const m={attempt:Y(X),check:Y(N),consume:B,enter:I,exit:$,interrupt:Y(N,{interrupt:!0})},h={code:null,containerState:{},defineSkip:O,events:[],now:x,parser:n,previous:null,sliceSerialize:_,sliceStream:E,write:g};let b=a.tokenize.call(h,m);return a.resolveAll&&f.push(a),h;function g(ae){return c=In(c,ae),R(),c[c.length-1]!==null?[]:(ee(a,0),h.events=fs(f,h.events,h),h.events)}function _(ae,re){return Yv(E(ae),re)}function E(ae){return jv(c,ae)}function x(){const{_bufferIndex:ae,_index:re,line:we,column:oe,offset:W}=o;return{_bufferIndex:ae,_index:re,line:we,column:oe,offset:W}}function O(ae){s[ae.line]=ae.column,U()}function R(){let ae;for(;o._index<c.length;){const re=c[o._index];if(typeof re=="string")for(ae=o._index,o._bufferIndex<0&&(o._bufferIndex=0);o._index===ae&&o._bufferIndex<re.length;)A(re.charCodeAt(o._bufferIndex));else A(re)}}function A(ae){b=b(ae)}function B(ae){xe(ae)?(o.line++,o.column=1,o.offset+=ae===-3?2:1,U()):ae!==-1&&(o.column++,o.offset++),o._bufferIndex<0?o._index++:(o._bufferIndex++,o._bufferIndex===c[o._index].length&&(o._bufferIndex=-1,o._index++)),h.previous=ae}function I(ae,re){const we=re||{};return we.type=ae,we.start=x(),h.events.push(["enter",we,h]),p.push(we),we}function $(ae){const re=p.pop();return re.end=x(),h.events.push(["exit",re,h]),re}function X(ae,re){ee(ae,re.from)}function N(ae,re){re.restore()}function Y(ae,re){return we;function we(oe,W,z){let J,ne,ye,T;return Array.isArray(oe)?j(oe):"tokenize"in oe?j([oe]):k(oe);function k(me){return ze;function ze(Je){const Qe=Je!==null&&me[Je],zt=Je!==null&&me.null,hn=[...Array.isArray(Qe)?Qe:Qe?[Qe]:[],...Array.isArray(zt)?zt:zt?[zt]:[]];return j(hn)(Je)}}function j(me){return J=me,ne=0,me.length===0?z:S(me[ne])}function S(me){return ze;function ze(Je){return T=ue(),ye=me,me.partial||(h.currentConstruct=me),me.name&&h.parser.constructs.disable.null.includes(me.name)?_e():me.tokenize.call(re?Object.assign(Object.create(h),re):h,m,ce,_e)(Je)}}function ce(me){return ae(ye,T),W}function _e(me){return T.restore(),++ne<J.length?S(J[ne]):z}}}function ee(ae,re){ae.resolveAll&&!f.includes(ae)&&f.push(ae),ae.resolve&&An(h.events,re,h.events.length-re,ae.resolve(h.events.slice(re),h)),ae.resolveTo&&(h.events=ae.resolveTo(h.events,h))}function ue(){const ae=x(),re=h.previous,we=h.currentConstruct,oe=h.events.length,W=Array.from(p);return{from:oe,restore:z};function z(){o=ae,h.previous=re,h.currentConstruct=we,h.events.length=oe,p=W,U()}}function U(){o.line in s&&o.column<2&&(o.column=s[o.line],o.offset+=s[o.line]-1)}}function jv(n,a){const l=a.start._index,o=a.start._bufferIndex,s=a.end._index,f=a.end._bufferIndex;let c;if(l===s)c=[n[l].slice(o,f)];else{if(c=n.slice(l,s),o>-1){const p=c[0];typeof p=="string"?c[0]=p.slice(o):c.shift()}f>0&&c.push(n[s].slice(0,f))}return c}function Yv(n,a){let l=-1;const o=[];let s;for(;++l<n.length;){const f=n[l];let c;if(typeof f=="string")c=f;else switch(f){case-5:{c="\r";break}case-4:{c=`
51
51
  `;break}case-3:{c=`\r
52
52
  `;break}case-2:{c=a?" ":" ";break}case-1:{if(!a&&s)continue;c=" ";break}default:c=String.fromCharCode(f)}s=f===-2,o.push(c)}return o.join("")}function Kv(n){const o={constructs:Lg([Fv,...(n||{}).extensions||[]]),content:s(r0),defined:[],document:s(s0),flow:s(Av),lazy:{},string:s(Cv),text:s(Ov)};return o;function s(f){return c;function c(p){return Gv(o,f,p)}}}function Vv(n){for(;!Hg(n););return n}const Mm=/[\0\t\n\r]/g;function Xv(){let n=1,a="",l=!0,o;return s;function s(f,c,p){const m=[];let h,b,g,_,E;for(f=a+(typeof f=="string"?f.toString():new TextDecoder(c||void 0).decode(f)),g=0,a="",l&&(f.charCodeAt(0)===65279&&g++,l=void 0);g<f.length;){if(Mm.lastIndex=g,h=Mm.exec(f),_=h&&h.index!==void 0?h.index:f.length,E=f.charCodeAt(_),!h){a=f.slice(g);break}if(E===10&&g===_&&o)m.push(-3),o=void 0;else switch(o&&(m.push(-5),o=void 0),g<_&&(m.push(f.slice(g,_)),n+=_-g),E){case 0:{m.push(65533),n++;break}case 9:{for(b=Math.ceil(n/4)*4,m.push(-2);n++<b;)m.push(-1);break}case 10:{m.push(-4),n=1;break}default:o=!0,n=1}g=_+1}return p&&(o&&m.push(-5),a&&m.push(a),m.push(null)),m}}const Pv=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Zv(n){return n.replace(Pv,Qv)}function Qv(n,a,l){if(a)return a;if(l.charCodeAt(0)===35){const s=l.charCodeAt(1),f=s===120||s===88;return zg(l.slice(f?2:1),f?16:10)}return pf(l)||n}const Kg={}.hasOwnProperty;function $v(n,a,l){return typeof a!="string"&&(l=a,a=void 0),Jv(l)(Vv(Kv(l).document().write(Xv()(n,a,!0))))}function Jv(n){const a={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:f(Kn),autolinkProtocol:ue,autolinkEmail:ue,atxHeading:f(Yn),blockQuote:f(zt),characterEscape:ue,characterReference:ue,codeFenced:f(hn),codeFencedFenceInfo:c,codeFencedFenceMeta:c,codeIndented:f(hn,c),codeText:f(ti,c),codeTextData:ue,data:ue,codeFlowValue:ue,definition:f(Ti),definitionDestinationString:c,definitionLabelString:c,definitionTitleString:c,emphasis:f(mn),hardBreakEscape:f(Ye),hardBreakTrailing:f(Ye),htmlFlow:f(Un,c),htmlFlowData:ue,htmlText:f(Un,c),htmlTextData:ue,image:f(wn),label:c,link:f(Kn),listItem:f(ta),listItemValue:_,listOrdered:f(ni,g),listUnordered:f(ni),paragraph:f(vl),reference:S,referenceString:c,resourceDestinationString:c,resourceTitleString:c,setextHeading:f(Yn),strong:f(wa),thematicBreak:f(ka)},exit:{atxHeading:m(),atxHeadingSequence:X,autolink:m(),autolinkEmail:Qe,autolinkProtocol:Je,blockQuote:m(),characterEscapeValue:U,characterReferenceMarkerHexadecimal:_e,characterReferenceMarkerNumeric:_e,characterReferenceValue:me,characterReference:ze,codeFenced:m(R),codeFencedFence:O,codeFencedFenceInfo:E,codeFencedFenceMeta:x,codeFlowValue:U,codeIndented:m(A),codeText:m(W),codeTextData:U,data:U,definition:m(),definitionDestinationString:$,definitionLabelString:B,definitionTitleString:I,emphasis:m(),hardBreakEscape:m(re),hardBreakTrailing:m(re),htmlFlow:m(we),htmlFlowData:U,htmlText:m(oe),htmlTextData:U,image:m(J),label:ye,labelText:ne,lineEnding:ae,link:m(z),listItem:m(),listOrdered:m(),listUnordered:m(),paragraph:m(),referenceString:ce,resourceDestinationString:T,resourceTitleString:k,resource:j,setextHeading:m(ee),setextHeadingLineSequence:Y,setextHeadingText:N,strong:m(),thematicBreak:m()}};Vg(a,(n||{}).mdastExtensions||[]);const l={};return o;function o(K){let le={type:"root",children:[]};const Te={stack:[le],tokenStack:[],config:a,enter:p,exit:h,buffer:c,resume:b,data:l},Be=[];let Xe=-1;for(;++Xe<K.length;)if(K[Xe][1].type==="listOrdered"||K[Xe][1].type==="listUnordered")if(K[Xe][0]==="enter")Be.push(Xe);else{const Qt=Be.pop();Xe=s(K,Qt,Xe)}for(Xe=-1;++Xe<K.length;){const Qt=a[K[Xe][0]];Kg.call(Qt,K[Xe][1].type)&&Qt[K[Xe][1].type].call(Object.assign({sliceSerialize:K[Xe][2].sliceSerialize},Te),K[Xe][1])}if(Te.tokenStack.length>0){const Qt=Te.tokenStack[Te.tokenStack.length-1];(Qt[1]||Rm).call(Te,void 0,Qt[0])}for(le.position={start:Wi(K.length>0?K[0][1].start:{line:1,column:1,offset:0}),end:Wi(K.length>0?K[K.length-2][1].end:{line:1,column:1,offset:0})},Xe=-1;++Xe<a.transforms.length;)le=a.transforms[Xe](le)||le;return le}function s(K,le,Te){let Be=le-1,Xe=-1,Qt=!1,Hn,Ut,_t,Yt;for(;++Be<=Te;){const We=K[Be];switch(We[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{We[0]==="enter"?Xe++:Xe--,Yt=void 0;break}case"lineEndingBlank":{We[0]==="enter"&&(Hn&&!Yt&&!Xe&&!_t&&(_t=Be),Yt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Yt=void 0}if(!Xe&&We[0]==="enter"&&We[1].type==="listItemPrefix"||Xe===-1&&We[0]==="exit"&&(We[1].type==="listUnordered"||We[1].type==="listOrdered")){if(Hn){let Vn=Be;for(Ut=void 0;Vn--;){const $t=K[Vn];if($t[1].type==="lineEnding"||$t[1].type==="lineEndingBlank"){if($t[0]==="exit")continue;Ut&&(K[Ut][1].type="lineEndingBlank",Qt=!0),$t[1].type="lineEnding",Ut=Vn}else if(!($t[1].type==="linePrefix"||$t[1].type==="blockQuotePrefix"||$t[1].type==="blockQuotePrefixWhitespace"||$t[1].type==="blockQuoteMarker"||$t[1].type==="listItemIndent"))break}_t&&(!Ut||_t<Ut)&&(Hn._spread=!0),Hn.end=Object.assign({},Ut?K[Ut][1].start:We[1].end),K.splice(Ut||Be,0,["exit",Hn,We[2]]),Be++,Te++}if(We[1].type==="listItemPrefix"){const Vn={type:"listItem",_spread:!1,start:Object.assign({},We[1].start),end:void 0};Hn=Vn,K.splice(Be,0,["enter",Vn,We[2]]),Be++,Te++,_t=void 0,Yt=!0}}}return K[le][1]._spread=Qt,Te}function f(K,le){return Te;function Te(Be){p.call(this,K(Be),Be),le&&le.call(this,Be)}}function c(){this.stack.push({type:"fragment",children:[]})}function p(K,le,Te){this.stack[this.stack.length-1].children.push(K),this.stack.push(K),this.tokenStack.push([le,Te||void 0]),K.position={start:Wi(le.start),end:void 0}}function m(K){return le;function le(Te){K&&K.call(this,Te),h.call(this,Te)}}function h(K,le){const Te=this.stack.pop(),Be=this.tokenStack.pop();if(Be)Be[0].type!==K.type&&(le?le.call(this,K,Be[0]):(Be[1]||Rm).call(this,K,Be[0]));else throw new Error("Cannot close `"+K.type+"` ("+Sr({start:K.start,end:K.end})+"): it’s not open");Te.position.end=Wi(K.end)}function b(){return df(this.stack.pop())}function g(){this.data.expectingFirstListItemValue=!0}function _(K){if(this.data.expectingFirstListItemValue){const le=this.stack[this.stack.length-2];le.start=Number.parseInt(this.sliceSerialize(K),10),this.data.expectingFirstListItemValue=void 0}}function E(){const K=this.resume(),le=this.stack[this.stack.length-1];le.lang=K}function x(){const K=this.resume(),le=this.stack[this.stack.length-1];le.meta=K}function O(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function R(){const K=this.resume(),le=this.stack[this.stack.length-1];le.value=K.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){const K=this.resume(),le=this.stack[this.stack.length-1];le.value=K.replace(/(\r?\n|\r)$/g,"")}function B(K){const le=this.resume(),Te=this.stack[this.stack.length-1];Te.label=le,Te.identifier=jn(this.sliceSerialize(K)).toLowerCase()}function I(){const K=this.resume(),le=this.stack[this.stack.length-1];le.title=K}function $(){const K=this.resume(),le=this.stack[this.stack.length-1];le.url=K}function X(K){const le=this.stack[this.stack.length-1];if(!le.depth){const Te=this.sliceSerialize(K).length;le.depth=Te}}function N(){this.data.setextHeadingSlurpLineEnding=!0}function Y(K){const le=this.stack[this.stack.length-1];le.depth=this.sliceSerialize(K).codePointAt(0)===61?1:2}function ee(){this.data.setextHeadingSlurpLineEnding=void 0}function ue(K){const Te=this.stack[this.stack.length-1].children;let Be=Te[Te.length-1];(!Be||Be.type!=="text")&&(Be=yt(),Be.position={start:Wi(K.start),end:void 0},Te.push(Be)),this.stack.push(Be)}function U(K){const le=this.stack.pop();le.value+=this.sliceSerialize(K),le.position.end=Wi(K.end)}function ae(K){const le=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Te=le.children[le.children.length-1];Te.position.end=Wi(K.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&a.canContainEols.includes(le.type)&&(ue.call(this,K),U.call(this,K))}function re(){this.data.atHardBreak=!0}function we(){const K=this.resume(),le=this.stack[this.stack.length-1];le.value=K}function oe(){const K=this.resume(),le=this.stack[this.stack.length-1];le.value=K}function W(){const K=this.resume(),le=this.stack[this.stack.length-1];le.value=K}function z(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const le=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=le,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function J(){const K=this.stack[this.stack.length-1];if(this.data.inReference){const le=this.data.referenceType||"shortcut";K.type+="Reference",K.referenceType=le,delete K.url,delete K.title}else delete K.identifier,delete K.label;this.data.referenceType=void 0}function ne(K){const le=this.sliceSerialize(K),Te=this.stack[this.stack.length-2];Te.label=Zv(le),Te.identifier=jn(le).toLowerCase()}function ye(){const K=this.stack[this.stack.length-1],le=this.resume(),Te=this.stack[this.stack.length-1];if(this.data.inReference=!0,Te.type==="link"){const Be=K.children;Te.children=Be}else Te.alt=le}function T(){const K=this.resume(),le=this.stack[this.stack.length-1];le.url=K}function k(){const K=this.resume(),le=this.stack[this.stack.length-1];le.title=K}function j(){this.data.inReference=void 0}function S(){this.data.referenceType="collapsed"}function ce(K){const le=this.resume(),Te=this.stack[this.stack.length-1];Te.label=le,Te.identifier=jn(this.sliceSerialize(K)).toLowerCase(),this.data.referenceType="full"}function _e(K){this.data.characterReferenceType=K.type}function me(K){const le=this.sliceSerialize(K),Te=this.data.characterReferenceType;let Be;Te?(Be=zg(le,Te==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Be=pf(le);const Xe=this.stack[this.stack.length-1];Xe.value+=Be}function ze(K){const le=this.stack.pop();le.position.end=Wi(K.end)}function Je(K){U.call(this,K);const le=this.stack[this.stack.length-1];le.url=this.sliceSerialize(K)}function Qe(K){U.call(this,K);const le=this.stack[this.stack.length-1];le.url="mailto:"+this.sliceSerialize(K)}function zt(){return{type:"blockquote",children:[]}}function hn(){return{type:"code",lang:null,meta:null,value:""}}function ti(){return{type:"inlineCode",value:""}}function Ti(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function mn(){return{type:"emphasis",children:[]}}function Yn(){return{type:"heading",depth:0,children:[]}}function Ye(){return{type:"break"}}function Un(){return{type:"html",value:""}}function wn(){return{type:"image",title:null,url:"",alt:null}}function Kn(){return{type:"link",title:null,url:"",children:[]}}function ni(K){return{type:"list",ordered:K.type==="listOrdered",start:null,spread:K._spread,children:[]}}function ta(K){return{type:"listItem",spread:K._spread,checked:null,children:[]}}function vl(){return{type:"paragraph",children:[]}}function wa(){return{type:"strong",children:[]}}function yt(){return{type:"text",value:""}}function ka(){return{type:"thematicBreak"}}}function Wi(n){return{line:n.line,column:n.column,offset:n.offset}}function Vg(n,a){let l=-1;for(;++l<a.length;){const o=a[l];Array.isArray(o)?Vg(n,o):Wv(n,o)}}function Wv(n,a){let l;for(l in a)if(Kg.call(a,l))switch(l){case"canContainEols":{const o=a[l];o&&n[l].push(...o);break}case"transforms":{const o=a[l];o&&n[l].push(...o);break}case"enter":case"exit":{const o=a[l];o&&Object.assign(n[l],o);break}}}function Rm(n,a){throw n?new Error("Cannot close `"+n.type+"` ("+Sr({start:n.start,end:n.end})+"): a different token (`"+a.type+"`, "+Sr({start:a.start,end:a.end})+") is open"):new Error("Cannot close document, a token (`"+a.type+"`, "+Sr({start:a.start,end:a.end})+") is still open")}function eS(n){const a=this;a.parser=l;function l(o){return $v(o,{...a.data("settings"),...n,extensions:a.data("micromarkExtensions")||[],mdastExtensions:a.data("fromMarkdownExtensions")||[]})}}function tS(n,a){const l={type:"element",tagName:"blockquote",properties:{},children:n.wrap(n.all(a),!0)};return n.patch(a,l),n.applyData(a,l)}function nS(n,a){const l={type:"element",tagName:"br",properties:{},children:[]};return n.patch(a,l),[n.applyData(a,l),{type:"text",value:`
@@ -59,7 +59,7 @@ Error generating stack: `+r.message+`
59
59
  `});++o<n.length;)o&&l.push({type:"text",value:`
60
60
  `}),l.push(n[o]);return a&&n.length>0&&l.push({type:"text",value:`
61
61
  `}),l}function Hm(n){let a=0,l=n.charCodeAt(a);for(;l===9||l===32;)a++,l=n.charCodeAt(a);return n.slice(a)}function qm(n,a){const l=jS(n,a),o=l.one(n,void 0),s=DS(l),f=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return s&&f.children.push({type:"text",value:`
62
- `},s),f}function PS(n,a){return n&&"run"in n?async function(l,o){const s=qm(l,{file:o,...a});await n.run(s,o)}:function(l,o){return qm(l,{file:o,...n||a})}}function Fm(n){if(n)throw n}var kc,Gm;function ZS(){if(Gm)return kc;Gm=1;var n=Object.prototype.hasOwnProperty,a=Object.prototype.toString,l=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=function(h){return typeof Array.isArray=="function"?Array.isArray(h):a.call(h)==="[object Array]"},f=function(h){if(!h||a.call(h)!=="[object Object]")return!1;var b=n.call(h,"constructor"),g=h.constructor&&h.constructor.prototype&&n.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!b&&!g)return!1;var _;for(_ in h);return typeof _>"u"||n.call(h,_)},c=function(h,b){l&&b.name==="__proto__"?l(h,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):h[b.name]=b.newValue},p=function(h,b){if(b==="__proto__")if(n.call(h,b)){if(o)return o(h,b).value}else return;return h[b]};return kc=function m(){var h,b,g,_,E,x,O=arguments[0],R=1,A=arguments.length,B=!1;for(typeof O=="boolean"&&(B=O,O=arguments[1]||{},R=2),(O==null||typeof O!="object"&&typeof O!="function")&&(O={});R<A;++R)if(h=arguments[R],h!=null)for(b in h)g=p(O,b),_=p(h,b),O!==_&&(B&&_&&(f(_)||(E=s(_)))?(E?(E=!1,x=g&&s(g)?g:[]):x=g&&f(g)?g:{},c(O,{name:b,newValue:m(B,x,_)})):typeof _<"u"&&c(O,{name:b,newValue:_}));return O},kc}var QS=ZS();const Cc=af(QS);function Jc(n){if(typeof n!="object"||n===null)return!1;const a=Object.getPrototypeOf(n);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function $S(){const n=[],a={run:l,use:o};return a;function l(...s){let f=-1;const c=s.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);p(null,...s);function p(m,...h){const b=n[++f];let g=-1;if(m){c(m);return}for(;++g<s.length;)(h[g]===null||h[g]===void 0)&&(h[g]=s[g]);s=h,b?JS(b,p)(...h):c(null,...h)}}function o(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return n.push(s),a}}function JS(n,a){let l;return o;function o(...c){const p=n.length>c.length;let m;p&&c.push(s);try{m=n.apply(this,c)}catch(h){const b=h;if(p&&l)throw b;return s(b)}p||(m&&m.then&&typeof m.then=="function"?m.then(f,s):m instanceof Error?s(m):f(m))}function s(c,...p){l||(l=!0,a(c,...p))}function f(c){s(null,c)}}const Wn={basename:WS,dirname:e1,extname:t1,join:n1,sep:"/"};function WS(n,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');Or(n);let l=0,o=-1,s=n.length,f;if(a===void 0||a.length===0||a.length>n.length){for(;s--;)if(n.codePointAt(s)===47){if(f){l=s+1;break}}else o<0&&(f=!0,o=s+1);return o<0?"":n.slice(l,o)}if(a===n)return"";let c=-1,p=a.length-1;for(;s--;)if(n.codePointAt(s)===47){if(f){l=s+1;break}}else c<0&&(f=!0,c=s+1),p>-1&&(n.codePointAt(s)===a.codePointAt(p--)?p<0&&(o=s):(p=-1,o=c));return l===o?o=c:o<0&&(o=n.length),n.slice(l,o)}function e1(n){if(Or(n),n.length===0)return".";let a=-1,l=n.length,o;for(;--l;)if(n.codePointAt(l)===47){if(o){a=l;break}}else o||(o=!0);return a<0?n.codePointAt(0)===47?"/":".":a===1&&n.codePointAt(0)===47?"//":n.slice(0,a)}function t1(n){Or(n);let a=n.length,l=-1,o=0,s=-1,f=0,c;for(;a--;){const p=n.codePointAt(a);if(p===47){if(c){o=a+1;break}continue}l<0&&(c=!0,l=a+1),p===46?s<0?s=a:f!==1&&(f=1):s>-1&&(f=-1)}return s<0||l<0||f===0||f===1&&s===l-1&&s===o+1?"":n.slice(s,l)}function n1(...n){let a=-1,l;for(;++a<n.length;)Or(n[a]),n[a]&&(l=l===void 0?n[a]:l+"/"+n[a]);return l===void 0?".":i1(l)}function i1(n){Or(n);const a=n.codePointAt(0)===47;let l=a1(n,!a);return l.length===0&&!a&&(l="."),l.length>0&&n.codePointAt(n.length-1)===47&&(l+="/"),a?"/"+l:l}function a1(n,a){let l="",o=0,s=-1,f=0,c=-1,p,m;for(;++c<=n.length;){if(c<n.length)p=n.codePointAt(c);else{if(p===47)break;p=47}if(p===47){if(!(s===c-1||f===1))if(s!==c-1&&f===2){if(l.length<2||o!==2||l.codePointAt(l.length-1)!==46||l.codePointAt(l.length-2)!==46){if(l.length>2){if(m=l.lastIndexOf("/"),m!==l.length-1){m<0?(l="",o=0):(l=l.slice(0,m),o=l.length-1-l.lastIndexOf("/")),s=c,f=0;continue}}else if(l.length>0){l="",o=0,s=c,f=0;continue}}a&&(l=l.length>0?l+"/..":"..",o=2)}else l.length>0?l+="/"+n.slice(s+1,c):l=n.slice(s+1,c),o=c-s-1;s=c,f=0}else p===46&&f>-1?f++:f=-1}return l}function Or(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const l1={cwd:r1};function r1(){return"/"}function Wc(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function o1(n){if(typeof n=="string")n=new URL(n);else if(!Wc(n)){const a=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw a.code="ERR_INVALID_ARG_TYPE",a}if(n.protocol!=="file:"){const a=new TypeError("The URL must be of scheme file");throw a.code="ERR_INVALID_URL_SCHEME",a}return s1(n)}function s1(n){if(n.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const a=n.pathname;let l=-1;for(;++l<a.length;)if(a.codePointAt(l)===37&&a.codePointAt(l+1)===50){const o=a.codePointAt(l+2);if(o===70||o===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(a)}const Oc=["history","path","basename","stem","extname","dirname"];class eb{constructor(a){let l;a?Wc(a)?l={path:a}:typeof a=="string"||u1(a)?l={value:a}:l=a:l={},this.cwd="cwd"in l?"":l1.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<Oc.length;){const f=Oc[o];f in l&&l[f]!==void 0&&l[f]!==null&&(this[f]=f==="history"?[...l[f]]:l[f])}let s;for(s in l)Oc.includes(s)||(this[s]=l[s])}get basename(){return typeof this.path=="string"?Wn.basename(this.path):void 0}set basename(a){Rc(a,"basename"),Mc(a,"basename"),this.path=Wn.join(this.dirname||"",a)}get dirname(){return typeof this.path=="string"?Wn.dirname(this.path):void 0}set dirname(a){jm(this.basename,"dirname"),this.path=Wn.join(a||"",this.basename)}get extname(){return typeof this.path=="string"?Wn.extname(this.path):void 0}set extname(a){if(Mc(a,"extname"),jm(this.dirname,"extname"),a){if(a.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(a.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Wn.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){Wc(a)&&(a=o1(a)),Rc(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return typeof this.path=="string"?Wn.basename(this.path,this.extname):void 0}set stem(a){Rc(a,"stem"),Mc(a,"stem"),this.path=Wn.join(this.dirname||"",a+(this.extname||""))}fail(a,l,o){const s=this.message(a,l,o);throw s.fatal=!0,s}info(a,l,o){const s=this.message(a,l,o);return s.fatal=void 0,s}message(a,l,o){const s=new Zt(a,l,o);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(a){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(a||void 0).decode(this.value)}}function Mc(n,a){if(n&&n.includes(Wn.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+Wn.sep+"`")}function Rc(n,a){if(!n)throw new Error("`"+a+"` cannot be empty")}function jm(n,a){if(!n)throw new Error("Setting `"+a+"` requires `path` to be set too")}function u1(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const c1=(function(n){const o=this.constructor.prototype,s=o[n],f=function(){return s.apply(f,arguments)};return Object.setPrototypeOf(f,o),f}),f1={}.hasOwnProperty;class Ef extends c1{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=$S()}copy(){const a=new Ef;let l=-1;for(;++l<this.attachers.length;){const o=this.attachers[l];a.use(...o)}return a.data(Cc(!0,{},this.namespace)),a}data(a,l){return typeof a=="string"?arguments.length===2?(zc("data",this.frozen),this.namespace[a]=l,this):f1.call(this.namespace,a)&&this.namespace[a]||void 0:a?(zc("data",this.frozen),this.namespace=a,this):this.namespace}freeze(){if(this.frozen)return this;const a=this;for(;++this.freezeIndex<this.attachers.length;){const[l,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const s=l.call(a,...o);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(a){this.freeze();const l=Qo(a),o=this.parser||this.Parser;return Dc("parse",o),o(String(l),l)}process(a,l){const o=this;return this.freeze(),Dc("process",this.parser||this.Parser),Lc("process",this.compiler||this.Compiler),l?s(void 0,l):new Promise(s);function s(f,c){const p=Qo(a),m=o.parse(p);o.run(m,p,function(b,g,_){if(b||!g||!_)return h(b);const E=g,x=o.stringify(E,_);h1(x)?_.value=x:_.result=x,h(b,_)});function h(b,g){b||!g?c(b):f?f(g):l(void 0,g)}}}processSync(a){let l=!1,o;return this.freeze(),Dc("processSync",this.parser||this.Parser),Lc("processSync",this.compiler||this.Compiler),this.process(a,s),Km("processSync","process",l),o;function s(f,c){l=!0,Fm(f),o=c}}run(a,l,o){Ym(a),this.freeze();const s=this.transformers;return!o&&typeof l=="function"&&(o=l,l=void 0),o?f(void 0,o):new Promise(f);function f(c,p){const m=Qo(l);s.run(a,m,h);function h(b,g,_){const E=g||a;b?p(b):c?c(E):o(void 0,E,_)}}}runSync(a,l){let o=!1,s;return this.run(a,l,f),Km("runSync","run",o),s;function f(c,p){Fm(c),s=p,o=!0}}stringify(a,l){this.freeze();const o=Qo(l),s=this.compiler||this.Compiler;return Lc("stringify",s),Ym(a),s(a,o)}use(a,...l){const o=this.attachers,s=this.namespace;if(zc("use",this.frozen),a!=null)if(typeof a=="function")m(a,l);else if(typeof a=="object")Array.isArray(a)?p(a):c(a);else throw new TypeError("Expected usable value, not `"+a+"`");return this;function f(h){if(typeof h=="function")m(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[b,...g]=h;m(b,g)}else c(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function c(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");p(h.plugins),h.settings&&(s.settings=Cc(!0,s.settings,h.settings))}function p(h){let b=-1;if(h!=null)if(Array.isArray(h))for(;++b<h.length;){const g=h[b];f(g)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function m(h,b){let g=-1,_=-1;for(;++g<o.length;)if(o[g][0]===h){_=g;break}if(_===-1)o.push([h,...b]);else if(b.length>0){let[E,...x]=b;const O=o[_][1];Jc(O)&&Jc(E)&&(E=Cc(!0,O,E)),o[_]=[h,E,...x]}}}}const d1=new Ef().freeze();function Dc(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function Lc(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function zc(n,a){if(a)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ym(n){if(!Jc(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function Km(n,a,l){if(!l)throw new Error("`"+n+"` finished async. Use `"+a+"` instead")}function Qo(n){return p1(n)?n:new eb(n)}function p1(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function h1(n){return typeof n=="string"||m1(n)}function m1(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const g1="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Vm=[],Xm={allowDangerousHtml:!0},b1=/^(https?|ircs?|mailto|xmpp)$/i,y1=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function E1(n){const a=_1(n),l=v1(n);return S1(a.runSync(a.parse(l),l),n)}function _1(n){const a=n.rehypePlugins||Vm,l=n.remarkPlugins||Vm,o=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...Xm}:Xm;return d1().use(eS).use(l).use(PS,o).use(a)}function v1(n){const a=n.children||"",l=new eb;return typeof a=="string"&&(l.value=a),l}function S1(n,a){const l=a.allowedElements,o=a.allowElement,s=a.components,f=a.disallowedElements,c=a.skipHtml,p=a.unwrapDisallowed,m=a.urlTransform||x1;for(const b of y1)Object.hasOwn(a,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+g1+b.id,void 0);return hs(n,h),I_(n,{Fragment:L.Fragment,components:s,ignoreInvalidStyle:!0,jsx:L.jsx,jsxs:L.jsxs,passKeys:!0,passNode:!0});function h(b,g,_){if(b.type==="raw"&&_&&typeof g=="number")return c?_.children.splice(g,1):_.children[g]={type:"text",value:b.value},g;if(b.type==="element"){let E;for(E in Nc)if(Object.hasOwn(Nc,E)&&Object.hasOwn(b.properties,E)){const x=b.properties[E],O=Nc[E];(O===null||O.includes(b.tagName))&&(b.properties[E]=m(String(x||""),E,b))}}if(b.type==="element"){let E=l?!l.includes(b.tagName):f?f.includes(b.tagName):!1;if(!E&&o&&typeof g=="number"&&(E=!o(b,g,_)),E&&_&&typeof g=="number")return p&&b.children?_.children.splice(g,1,...b.children):_.children.splice(g,1),g}}}function x1(n){const a=n.indexOf(":"),l=n.indexOf("?"),o=n.indexOf("#"),s=n.indexOf("/");return a===-1||s!==-1&&a>s||l!==-1&&a>l||o!==-1&&a>o||b1.test(n.slice(0,a))?n:""}function Pm(n,a){const l=String(n);if(typeof a!="string")throw new TypeError("Expected character");let o=0,s=l.indexOf(a);for(;s!==-1;)o++,s=l.indexOf(a,s+a.length);return o}function T1(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function N1(n,a,l){const s=Cr((l||{}).ignore||[]),f=A1(a);let c=-1;for(;++c<f.length;)Wg(n,"text",p);function p(h,b){let g=-1,_;for(;++g<b.length;){const E=b[g],x=_?_.children:void 0;if(s(E,x?x.indexOf(E):void 0,_))return;_=E}if(_)return m(h,b)}function m(h,b){const g=b[b.length-1],_=f[c][0],E=f[c][1];let x=0;const R=g.children.indexOf(h);let A=!1,B=[];_.lastIndex=0;let I=_.exec(h.value);for(;I;){const $=I.index,X={index:I.index,input:I.input,stack:[...b,h]};let N=E(...I,X);if(typeof N=="string"&&(N=N.length>0?{type:"text",value:N}:void 0),N===!1?_.lastIndex=$+1:(x!==$&&B.push({type:"text",value:h.value.slice(x,$)}),Array.isArray(N)?B.push(...N):N&&B.push(N),x=$+I[0].length,A=!0),!_.global)break;I=_.exec(h.value)}return A?(x<h.value.length&&B.push({type:"text",value:h.value.slice(x)}),g.children.splice(R,1,...B)):B=[h],R+B.length}}function A1(n){const a=[];if(!Array.isArray(n))throw new TypeError("Expected find and replace tuple or list of tuples");const l=!n[0]||Array.isArray(n[0])?n:[n];let o=-1;for(;++o<l.length;){const s=l[o];a.push([w1(s[0]),k1(s[1])])}return a}function w1(n){return typeof n=="string"?new RegExp(T1(n),"g"):n}function k1(n){return typeof n=="function"?n:function(){return n}}const Bc="phrasing",Ic=["autolink","link","image","label"];function C1(){return{transforms:[B1],enter:{literalAutolink:M1,literalAutolinkEmail:Uc,literalAutolinkHttp:Uc,literalAutolinkWww:Uc},exit:{literalAutolink:z1,literalAutolinkEmail:L1,literalAutolinkHttp:R1,literalAutolinkWww:D1}}}function O1(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Bc,notInConstruct:Ic},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Bc,notInConstruct:Ic},{character:":",before:"[ps]",after:"\\/",inConstruct:Bc,notInConstruct:Ic}]}}function M1(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function Uc(n){this.config.enter.autolinkProtocol.call(this,n)}function R1(n){this.config.exit.autolinkProtocol.call(this,n)}function D1(n){this.config.exit.data.call(this,n);const a=this.stack[this.stack.length-1];a.type,a.url="http://"+this.sliceSerialize(n)}function L1(n){this.config.exit.autolinkEmail.call(this,n)}function z1(n){this.exit(n)}function B1(n){N1(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,I1],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),U1]],{ignore:["link","linkReference"]})}function I1(n,a,l,o,s){let f="";if(!tb(s)||(/^w/i.test(a)&&(l=a+l,a="",f="http://"),!H1(l)))return!1;const c=q1(l+o);if(!c[0])return!1;const p={type:"link",title:null,url:f+a+c[0],children:[{type:"text",value:a+c[0]}]};return c[1]?[p,{type:"text",value:c[1]}]:p}function U1(n,a,l,o){return!tb(o,!0)||/[-\d_]$/.test(l)?!1:{type:"link",title:null,url:"mailto:"+a+"@"+l,children:[{type:"text",value:a+"@"+l}]}}function H1(n){const a=n.split(".");return!(a.length<2||a[a.length-1]&&(/_/.test(a[a.length-1])||!/[a-zA-Z\d]/.test(a[a.length-1]))||a[a.length-2]&&(/_/.test(a[a.length-2])||!/[a-zA-Z\d]/.test(a[a.length-2])))}function q1(n){const a=/[!"&'),.:;<>?\]}]+$/.exec(n);if(!a)return[n,void 0];n=n.slice(0,a.index);let l=a[0],o=l.indexOf(")");const s=Pm(n,"(");let f=Pm(n,")");for(;o!==-1&&s>f;)n+=l.slice(0,o+1),l=l.slice(o+1),o=l.indexOf(")"),f++;return[n,l]}function tb(n,a){const l=n.input.charCodeAt(n.index-1);return(n.index===0||Ta(l)||cs(l))&&(!a||l!==47)}nb.peek=Z1;function F1(){this.buffer()}function G1(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function j1(){this.buffer()}function Y1(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function K1(n){const a=this.resume(),l=this.stack[this.stack.length-1];l.type,l.identifier=jn(this.sliceSerialize(n)).toLowerCase(),l.label=a}function V1(n){this.exit(n)}function X1(n){const a=this.resume(),l=this.stack[this.stack.length-1];l.type,l.identifier=jn(this.sliceSerialize(n)).toLowerCase(),l.label=a}function P1(n){this.exit(n)}function Z1(){return"["}function nb(n,a,l,o){const s=l.createTracker(o);let f=s.move("[^");const c=l.enter("footnoteReference"),p=l.enter("reference");return f+=s.move(l.safe(l.associationId(n),{after:"]",before:f})),p(),c(),f+=s.move("]"),f}function Q1(){return{enter:{gfmFootnoteCallString:F1,gfmFootnoteCall:G1,gfmFootnoteDefinitionLabelString:j1,gfmFootnoteDefinition:Y1},exit:{gfmFootnoteCallString:K1,gfmFootnoteCall:V1,gfmFootnoteDefinitionLabelString:X1,gfmFootnoteDefinition:P1}}}function $1(n){let a=!1;return n&&n.firstLineBlank&&(a=!0),{handlers:{footnoteDefinition:l,footnoteReference:nb},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function l(o,s,f,c){const p=f.createTracker(c);let m=p.move("[^");const h=f.enter("footnoteDefinition"),b=f.enter("label");return m+=p.move(f.safe(f.associationId(o),{before:m,after:"]"})),b(),m+=p.move("]:"),o.children&&o.children.length>0&&(p.shift(4),m+=p.move((a?`
62
+ `},s),f}function PS(n,a){return n&&"run"in n?async function(l,o){const s=qm(l,{file:o,...a});await n.run(s,o)}:function(l,o){return qm(l,{file:o,...n||a})}}function Fm(n){if(n)throw n}var kc,Gm;function ZS(){if(Gm)return kc;Gm=1;var n=Object.prototype.hasOwnProperty,a=Object.prototype.toString,l=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=function(h){return typeof Array.isArray=="function"?Array.isArray(h):a.call(h)==="[object Array]"},f=function(h){if(!h||a.call(h)!=="[object Object]")return!1;var b=n.call(h,"constructor"),g=h.constructor&&h.constructor.prototype&&n.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!b&&!g)return!1;var _;for(_ in h);return typeof _>"u"||n.call(h,_)},c=function(h,b){l&&b.name==="__proto__"?l(h,b.name,{enumerable:!0,configurable:!0,value:b.newValue,writable:!0}):h[b.name]=b.newValue},p=function(h,b){if(b==="__proto__")if(n.call(h,b)){if(o)return o(h,b).value}else return;return h[b]};return kc=function m(){var h,b,g,_,E,x,O=arguments[0],R=1,A=arguments.length,B=!1;for(typeof O=="boolean"&&(B=O,O=arguments[1]||{},R=2),(O==null||typeof O!="object"&&typeof O!="function")&&(O={});R<A;++R)if(h=arguments[R],h!=null)for(b in h)g=p(O,b),_=p(h,b),O!==_&&(B&&_&&(f(_)||(E=s(_)))?(E?(E=!1,x=g&&s(g)?g:[]):x=g&&f(g)?g:{},c(O,{name:b,newValue:m(B,x,_)})):typeof _<"u"&&c(O,{name:b,newValue:_}));return O},kc}var QS=ZS();const Cc=af(QS);function Jc(n){if(typeof n!="object"||n===null)return!1;const a=Object.getPrototypeOf(n);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function $S(){const n=[],a={run:l,use:o};return a;function l(...s){let f=-1;const c=s.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);p(null,...s);function p(m,...h){const b=n[++f];let g=-1;if(m){c(m);return}for(;++g<s.length;)(h[g]===null||h[g]===void 0)&&(h[g]=s[g]);s=h,b?JS(b,p)(...h):c(null,...h)}}function o(s){if(typeof s!="function")throw new TypeError("Expected `middelware` to be a function, not "+s);return n.push(s),a}}function JS(n,a){let l;return o;function o(...c){const p=n.length>c.length;let m;p&&c.push(s);try{m=n.apply(this,c)}catch(h){const b=h;if(p&&l)throw b;return s(b)}p||(m&&m.then&&typeof m.then=="function"?m.then(f,s):m instanceof Error?s(m):f(m))}function s(c,...p){l||(l=!0,a(c,...p))}function f(c){s(null,c)}}const Wn={basename:WS,dirname:e1,extname:t1,join:n1,sep:"/"};function WS(n,a){if(a!==void 0&&typeof a!="string")throw new TypeError('"ext" argument must be a string');Or(n);let l=0,o=-1,s=n.length,f;if(a===void 0||a.length===0||a.length>n.length){for(;s--;)if(n.codePointAt(s)===47){if(f){l=s+1;break}}else o<0&&(f=!0,o=s+1);return o<0?"":n.slice(l,o)}if(a===n)return"";let c=-1,p=a.length-1;for(;s--;)if(n.codePointAt(s)===47){if(f){l=s+1;break}}else c<0&&(f=!0,c=s+1),p>-1&&(n.codePointAt(s)===a.codePointAt(p--)?p<0&&(o=s):(p=-1,o=c));return l===o?o=c:o<0&&(o=n.length),n.slice(l,o)}function e1(n){if(Or(n),n.length===0)return".";let a=-1,l=n.length,o;for(;--l;)if(n.codePointAt(l)===47){if(o){a=l;break}}else o||(o=!0);return a<0?n.codePointAt(0)===47?"/":".":a===1&&n.codePointAt(0)===47?"//":n.slice(0,a)}function t1(n){Or(n);let a=n.length,l=-1,o=0,s=-1,f=0,c;for(;a--;){const p=n.codePointAt(a);if(p===47){if(c){o=a+1;break}continue}l<0&&(c=!0,l=a+1),p===46?s<0?s=a:f!==1&&(f=1):s>-1&&(f=-1)}return s<0||l<0||f===0||f===1&&s===l-1&&s===o+1?"":n.slice(s,l)}function n1(...n){let a=-1,l;for(;++a<n.length;)Or(n[a]),n[a]&&(l=l===void 0?n[a]:l+"/"+n[a]);return l===void 0?".":i1(l)}function i1(n){Or(n);const a=n.codePointAt(0)===47;let l=a1(n,!a);return l.length===0&&!a&&(l="."),l.length>0&&n.codePointAt(n.length-1)===47&&(l+="/"),a?"/"+l:l}function a1(n,a){let l="",o=0,s=-1,f=0,c=-1,p,m;for(;++c<=n.length;){if(c<n.length)p=n.codePointAt(c);else{if(p===47)break;p=47}if(p===47){if(!(s===c-1||f===1))if(s!==c-1&&f===2){if(l.length<2||o!==2||l.codePointAt(l.length-1)!==46||l.codePointAt(l.length-2)!==46){if(l.length>2){if(m=l.lastIndexOf("/"),m!==l.length-1){m<0?(l="",o=0):(l=l.slice(0,m),o=l.length-1-l.lastIndexOf("/")),s=c,f=0;continue}}else if(l.length>0){l="",o=0,s=c,f=0;continue}}a&&(l=l.length>0?l+"/..":"..",o=2)}else l.length>0?l+="/"+n.slice(s+1,c):l=n.slice(s+1,c),o=c-s-1;s=c,f=0}else p===46&&f>-1?f++:f=-1}return l}function Or(n){if(typeof n!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(n))}const l1={cwd:r1};function r1(){return"/"}function Wc(n){return!!(n!==null&&typeof n=="object"&&"href"in n&&n.href&&"protocol"in n&&n.protocol&&n.auth===void 0)}function o1(n){if(typeof n=="string")n=new URL(n);else if(!Wc(n)){const a=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+n+"`");throw a.code="ERR_INVALID_ARG_TYPE",a}if(n.protocol!=="file:"){const a=new TypeError("The URL must be of scheme file");throw a.code="ERR_INVALID_URL_SCHEME",a}return s1(n)}function s1(n){if(n.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const a=n.pathname;let l=-1;for(;++l<a.length;)if(a.codePointAt(l)===37&&a.codePointAt(l+1)===50){const o=a.codePointAt(l+2);if(o===70||o===102){const s=new TypeError("File URL path must not include encoded / characters");throw s.code="ERR_INVALID_FILE_URL_PATH",s}}return decodeURIComponent(a)}const Oc=["history","path","basename","stem","extname","dirname"];class eb{constructor(a){let l;a?Wc(a)?l={path:a}:typeof a=="string"||u1(a)?l={value:a}:l=a:l={},this.cwd="cwd"in l?"":l1.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<Oc.length;){const f=Oc[o];f in l&&l[f]!==void 0&&l[f]!==null&&(this[f]=f==="history"?[...l[f]]:l[f])}let s;for(s in l)Oc.includes(s)||(this[s]=l[s])}get basename(){return typeof this.path=="string"?Wn.basename(this.path):void 0}set basename(a){Rc(a,"basename"),Mc(a,"basename"),this.path=Wn.join(this.dirname||"",a)}get dirname(){return typeof this.path=="string"?Wn.dirname(this.path):void 0}set dirname(a){jm(this.basename,"dirname"),this.path=Wn.join(a||"",this.basename)}get extname(){return typeof this.path=="string"?Wn.extname(this.path):void 0}set extname(a){if(Mc(a,"extname"),jm(this.dirname,"extname"),a){if(a.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(a.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Wn.join(this.dirname,this.stem+(a||""))}get path(){return this.history[this.history.length-1]}set path(a){Wc(a)&&(a=o1(a)),Rc(a,"path"),this.path!==a&&this.history.push(a)}get stem(){return typeof this.path=="string"?Wn.basename(this.path,this.extname):void 0}set stem(a){Rc(a,"stem"),Mc(a,"stem"),this.path=Wn.join(this.dirname||"",a+(this.extname||""))}fail(a,l,o){const s=this.message(a,l,o);throw s.fatal=!0,s}info(a,l,o){const s=this.message(a,l,o);return s.fatal=void 0,s}message(a,l,o){const s=new Zt(a,l,o);return this.path&&(s.name=this.path+":"+s.name,s.file=this.path),s.fatal=!1,this.messages.push(s),s}toString(a){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(a||void 0).decode(this.value)}}function Mc(n,a){if(n&&n.includes(Wn.sep))throw new Error("`"+a+"` cannot be a path: did not expect `"+Wn.sep+"`")}function Rc(n,a){if(!n)throw new Error("`"+a+"` cannot be empty")}function jm(n,a){if(!n)throw new Error("Setting `"+a+"` requires `path` to be set too")}function u1(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const c1=(function(n){const o=this.constructor.prototype,s=o[n],f=function(){return s.apply(f,arguments)};return Object.setPrototypeOf(f,o),f}),f1={}.hasOwnProperty;class Ef extends c1{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=$S()}copy(){const a=new Ef;let l=-1;for(;++l<this.attachers.length;){const o=this.attachers[l];a.use(...o)}return a.data(Cc(!0,{},this.namespace)),a}data(a,l){return typeof a=="string"?arguments.length===2?(zc("data",this.frozen),this.namespace[a]=l,this):f1.call(this.namespace,a)&&this.namespace[a]||void 0:a?(zc("data",this.frozen),this.namespace=a,this):this.namespace}freeze(){if(this.frozen)return this;const a=this;for(;++this.freezeIndex<this.attachers.length;){const[l,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const s=l.call(a,...o);typeof s=="function"&&this.transformers.use(s)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(a){this.freeze();const l=Qo(a),o=this.parser||this.Parser;return Dc("parse",o),o(String(l),l)}process(a,l){const o=this;return this.freeze(),Dc("process",this.parser||this.Parser),Lc("process",this.compiler||this.Compiler),l?s(void 0,l):new Promise(s);function s(f,c){const p=Qo(a),m=o.parse(p);o.run(m,p,function(b,g,_){if(b||!g||!_)return h(b);const E=g,x=o.stringify(E,_);h1(x)?_.value=x:_.result=x,h(b,_)});function h(b,g){b||!g?c(b):f?f(g):l(void 0,g)}}}processSync(a){let l=!1,o;return this.freeze(),Dc("processSync",this.parser||this.Parser),Lc("processSync",this.compiler||this.Compiler),this.process(a,s),Km("processSync","process",l),o;function s(f,c){l=!0,Fm(f),o=c}}run(a,l,o){Ym(a),this.freeze();const s=this.transformers;return!o&&typeof l=="function"&&(o=l,l=void 0),o?f(void 0,o):new Promise(f);function f(c,p){const m=Qo(l);s.run(a,m,h);function h(b,g,_){const E=g||a;b?p(b):c?c(E):o(void 0,E,_)}}}runSync(a,l){let o=!1,s;return this.run(a,l,f),Km("runSync","run",o),s;function f(c,p){Fm(c),s=p,o=!0}}stringify(a,l){this.freeze();const o=Qo(l),s=this.compiler||this.Compiler;return Lc("stringify",s),Ym(a),s(a,o)}use(a,...l){const o=this.attachers,s=this.namespace;if(zc("use",this.frozen),a!=null)if(typeof a=="function")m(a,l);else if(typeof a=="object")Array.isArray(a)?p(a):c(a);else throw new TypeError("Expected usable value, not `"+a+"`");return this;function f(h){if(typeof h=="function")m(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[b,...g]=h;m(b,g)}else c(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function c(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");p(h.plugins),h.settings&&(s.settings=Cc(!0,s.settings,h.settings))}function p(h){let b=-1;if(h!=null)if(Array.isArray(h))for(;++b<h.length;){const g=h[b];f(g)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function m(h,b){let g=-1,_=-1;for(;++g<o.length;)if(o[g][0]===h){_=g;break}if(_===-1)o.push([h,...b]);else if(b.length>0){let[E,...x]=b;const O=o[_][1];Jc(O)&&Jc(E)&&(E=Cc(!0,O,E)),o[_]=[h,E,...x]}}}}const d1=new Ef().freeze();function Dc(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `parser`")}function Lc(n,a){if(typeof a!="function")throw new TypeError("Cannot `"+n+"` without `compiler`")}function zc(n,a){if(a)throw new Error("Cannot call `"+n+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Ym(n){if(!Jc(n)||typeof n.type!="string")throw new TypeError("Expected node, got `"+n+"`")}function Km(n,a,l){if(!l)throw new Error("`"+n+"` finished async. Use `"+a+"` instead")}function Qo(n){return p1(n)?n:new eb(n)}function p1(n){return!!(n&&typeof n=="object"&&"message"in n&&"messages"in n)}function h1(n){return typeof n=="string"||m1(n)}function m1(n){return!!(n&&typeof n=="object"&&"byteLength"in n&&"byteOffset"in n)}const g1="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Vm=[],Xm={allowDangerousHtml:!0},b1=/^(https?|ircs?|mailto|xmpp)$/i,y1=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function E1(n){const a=_1(n),l=v1(n);return S1(a.runSync(a.parse(l),l),n)}function _1(n){const a=n.rehypePlugins||Vm,l=n.remarkPlugins||Vm,o=n.remarkRehypeOptions?{...n.remarkRehypeOptions,...Xm}:Xm;return d1().use(eS).use(l).use(PS,o).use(a)}function v1(n){const a=n.children||"",l=new eb;return typeof a=="string"&&(l.value=a),l}function S1(n,a){const l=a.allowedElements,o=a.allowElement,s=a.components,f=a.disallowedElements,c=a.skipHtml,p=a.unwrapDisallowed,m=a.urlTransform||x1;for(const b of y1)Object.hasOwn(a,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+g1+b.id,void 0);return hs(n,h),I_(n,{Fragment:D.Fragment,components:s,ignoreInvalidStyle:!0,jsx:D.jsx,jsxs:D.jsxs,passKeys:!0,passNode:!0});function h(b,g,_){if(b.type==="raw"&&_&&typeof g=="number")return c?_.children.splice(g,1):_.children[g]={type:"text",value:b.value},g;if(b.type==="element"){let E;for(E in Nc)if(Object.hasOwn(Nc,E)&&Object.hasOwn(b.properties,E)){const x=b.properties[E],O=Nc[E];(O===null||O.includes(b.tagName))&&(b.properties[E]=m(String(x||""),E,b))}}if(b.type==="element"){let E=l?!l.includes(b.tagName):f?f.includes(b.tagName):!1;if(!E&&o&&typeof g=="number"&&(E=!o(b,g,_)),E&&_&&typeof g=="number")return p&&b.children?_.children.splice(g,1,...b.children):_.children.splice(g,1),g}}}function x1(n){const a=n.indexOf(":"),l=n.indexOf("?"),o=n.indexOf("#"),s=n.indexOf("/");return a===-1||s!==-1&&a>s||l!==-1&&a>l||o!==-1&&a>o||b1.test(n.slice(0,a))?n:""}function Pm(n,a){const l=String(n);if(typeof a!="string")throw new TypeError("Expected character");let o=0,s=l.indexOf(a);for(;s!==-1;)o++,s=l.indexOf(a,s+a.length);return o}function T1(n){if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function N1(n,a,l){const s=Cr((l||{}).ignore||[]),f=A1(a);let c=-1;for(;++c<f.length;)Wg(n,"text",p);function p(h,b){let g=-1,_;for(;++g<b.length;){const E=b[g],x=_?_.children:void 0;if(s(E,x?x.indexOf(E):void 0,_))return;_=E}if(_)return m(h,b)}function m(h,b){const g=b[b.length-1],_=f[c][0],E=f[c][1];let x=0;const R=g.children.indexOf(h);let A=!1,B=[];_.lastIndex=0;let I=_.exec(h.value);for(;I;){const $=I.index,X={index:I.index,input:I.input,stack:[...b,h]};let N=E(...I,X);if(typeof N=="string"&&(N=N.length>0?{type:"text",value:N}:void 0),N===!1?_.lastIndex=$+1:(x!==$&&B.push({type:"text",value:h.value.slice(x,$)}),Array.isArray(N)?B.push(...N):N&&B.push(N),x=$+I[0].length,A=!0),!_.global)break;I=_.exec(h.value)}return A?(x<h.value.length&&B.push({type:"text",value:h.value.slice(x)}),g.children.splice(R,1,...B)):B=[h],R+B.length}}function A1(n){const a=[];if(!Array.isArray(n))throw new TypeError("Expected find and replace tuple or list of tuples");const l=!n[0]||Array.isArray(n[0])?n:[n];let o=-1;for(;++o<l.length;){const s=l[o];a.push([w1(s[0]),k1(s[1])])}return a}function w1(n){return typeof n=="string"?new RegExp(T1(n),"g"):n}function k1(n){return typeof n=="function"?n:function(){return n}}const Bc="phrasing",Ic=["autolink","link","image","label"];function C1(){return{transforms:[B1],enter:{literalAutolink:M1,literalAutolinkEmail:Uc,literalAutolinkHttp:Uc,literalAutolinkWww:Uc},exit:{literalAutolink:z1,literalAutolinkEmail:L1,literalAutolinkHttp:R1,literalAutolinkWww:D1}}}function O1(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Bc,notInConstruct:Ic},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Bc,notInConstruct:Ic},{character:":",before:"[ps]",after:"\\/",inConstruct:Bc,notInConstruct:Ic}]}}function M1(n){this.enter({type:"link",title:null,url:"",children:[]},n)}function Uc(n){this.config.enter.autolinkProtocol.call(this,n)}function R1(n){this.config.exit.autolinkProtocol.call(this,n)}function D1(n){this.config.exit.data.call(this,n);const a=this.stack[this.stack.length-1];a.type,a.url="http://"+this.sliceSerialize(n)}function L1(n){this.config.exit.autolinkEmail.call(this,n)}function z1(n){this.exit(n)}function B1(n){N1(n,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,I1],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),U1]],{ignore:["link","linkReference"]})}function I1(n,a,l,o,s){let f="";if(!tb(s)||(/^w/i.test(a)&&(l=a+l,a="",f="http://"),!H1(l)))return!1;const c=q1(l+o);if(!c[0])return!1;const p={type:"link",title:null,url:f+a+c[0],children:[{type:"text",value:a+c[0]}]};return c[1]?[p,{type:"text",value:c[1]}]:p}function U1(n,a,l,o){return!tb(o,!0)||/[-\d_]$/.test(l)?!1:{type:"link",title:null,url:"mailto:"+a+"@"+l,children:[{type:"text",value:a+"@"+l}]}}function H1(n){const a=n.split(".");return!(a.length<2||a[a.length-1]&&(/_/.test(a[a.length-1])||!/[a-zA-Z\d]/.test(a[a.length-1]))||a[a.length-2]&&(/_/.test(a[a.length-2])||!/[a-zA-Z\d]/.test(a[a.length-2])))}function q1(n){const a=/[!"&'),.:;<>?\]}]+$/.exec(n);if(!a)return[n,void 0];n=n.slice(0,a.index);let l=a[0],o=l.indexOf(")");const s=Pm(n,"(");let f=Pm(n,")");for(;o!==-1&&s>f;)n+=l.slice(0,o+1),l=l.slice(o+1),o=l.indexOf(")"),f++;return[n,l]}function tb(n,a){const l=n.input.charCodeAt(n.index-1);return(n.index===0||Ta(l)||cs(l))&&(!a||l!==47)}nb.peek=Z1;function F1(){this.buffer()}function G1(n){this.enter({type:"footnoteReference",identifier:"",label:""},n)}function j1(){this.buffer()}function Y1(n){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},n)}function K1(n){const a=this.resume(),l=this.stack[this.stack.length-1];l.type,l.identifier=jn(this.sliceSerialize(n)).toLowerCase(),l.label=a}function V1(n){this.exit(n)}function X1(n){const a=this.resume(),l=this.stack[this.stack.length-1];l.type,l.identifier=jn(this.sliceSerialize(n)).toLowerCase(),l.label=a}function P1(n){this.exit(n)}function Z1(){return"["}function nb(n,a,l,o){const s=l.createTracker(o);let f=s.move("[^");const c=l.enter("footnoteReference"),p=l.enter("reference");return f+=s.move(l.safe(l.associationId(n),{after:"]",before:f})),p(),c(),f+=s.move("]"),f}function Q1(){return{enter:{gfmFootnoteCallString:F1,gfmFootnoteCall:G1,gfmFootnoteDefinitionLabelString:j1,gfmFootnoteDefinition:Y1},exit:{gfmFootnoteCallString:K1,gfmFootnoteCall:V1,gfmFootnoteDefinitionLabelString:X1,gfmFootnoteDefinition:P1}}}function $1(n){let a=!1;return n&&n.firstLineBlank&&(a=!0),{handlers:{footnoteDefinition:l,footnoteReference:nb},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function l(o,s,f,c){const p=f.createTracker(c);let m=p.move("[^");const h=f.enter("footnoteDefinition"),b=f.enter("label");return m+=p.move(f.safe(f.associationId(o),{before:m,after:"]"})),b(),m+=p.move("]:"),o.children&&o.children.length>0&&(p.shift(4),m+=p.move((a?`
63
63
  `:" ")+f.indentLines(f.containerFlow(o,p.current()),a?ib:J1))),h(),m}}function J1(n,a,l){return a===0?n:ib(n,a,l)}function ib(n,a,l){return(l?"":" ")+n}const W1=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];ab.peek=ax;function ex(){return{canContainEols:["delete"],enter:{strikethrough:nx},exit:{strikethrough:ix}}}function tx(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:W1}],handlers:{delete:ab}}}function nx(n){this.enter({type:"delete",children:[]},n)}function ix(n){this.exit(n)}function ab(n,a,l,o){const s=l.createTracker(o),f=l.enter("strikethrough");let c=s.move("~~");return c+=l.containerPhrasing(n,{...s.current(),before:c,after:"~"}),c+=s.move("~~"),f(),c}function ax(){return"~"}function lx(n){return n.length}function rx(n,a){const l=a||{},o=(l.align||[]).concat(),s=l.stringLength||lx,f=[],c=[],p=[],m=[];let h=0,b=-1;for(;++b<n.length;){const O=[],R=[];let A=-1;for(n[b].length>h&&(h=n[b].length);++A<n[b].length;){const B=ox(n[b][A]);if(l.alignDelimiters!==!1){const I=s(B);R[A]=I,(m[A]===void 0||I>m[A])&&(m[A]=I)}O.push(B)}c[b]=O,p[b]=R}let g=-1;if(typeof o=="object"&&"length"in o)for(;++g<h;)f[g]=Zm(o[g]);else{const O=Zm(o);for(;++g<h;)f[g]=O}g=-1;const _=[],E=[];for(;++g<h;){const O=f[g];let R="",A="";O===99?(R=":",A=":"):O===108?R=":":O===114&&(A=":");let B=l.alignDelimiters===!1?1:Math.max(1,m[g]-R.length-A.length);const I=R+"-".repeat(B)+A;l.alignDelimiters!==!1&&(B=R.length+B+A.length,B>m[g]&&(m[g]=B),E[g]=B),_[g]=I}c.splice(1,0,_),p.splice(1,0,E),b=-1;const x=[];for(;++b<c.length;){const O=c[b],R=p[b];g=-1;const A=[];for(;++g<h;){const B=O[g]||"";let I="",$="";if(l.alignDelimiters!==!1){const X=m[g]-(R[g]||0),N=f[g];N===114?I=" ".repeat(X):N===99?X%2?(I=" ".repeat(X/2+.5),$=" ".repeat(X/2-.5)):(I=" ".repeat(X/2),$=I):$=" ".repeat(X)}l.delimiterStart!==!1&&!g&&A.push("|"),l.padding!==!1&&!(l.alignDelimiters===!1&&B==="")&&(l.delimiterStart!==!1||g)&&A.push(" "),l.alignDelimiters!==!1&&A.push(I),A.push(B),l.alignDelimiters!==!1&&A.push($),l.padding!==!1&&A.push(" "),(l.delimiterEnd!==!1||g!==h-1)&&A.push("|")}x.push(l.delimiterEnd===!1?A.join("").replace(/ +$/,""):A.join(""))}return x.join(`
64
64
  `)}function ox(n){return n==null?"":String(n)}function Zm(n){const a=typeof n=="string"?n.codePointAt(0):0;return a===67||a===99?99:a===76||a===108?108:a===82||a===114?114:0}function sx(n,a,l,o){const s=l.enter("blockquote"),f=l.createTracker(o);f.move("> "),f.shift(2);const c=l.indentLines(l.containerFlow(n,f.current()),ux);return s(),c}function ux(n,a,l){return">"+(l?"":" ")+n}function cx(n,a){return Qm(n,a.inConstruct,!0)&&!Qm(n,a.notInConstruct,!1)}function Qm(n,a,l){if(typeof a=="string"&&(a=[a]),!a||a.length===0)return l;let o=-1;for(;++o<a.length;)if(n.includes(a[o]))return!0;return!1}function $m(n,a,l,o){let s=-1;for(;++s<l.unsafe.length;)if(l.unsafe[s].character===`
65
65
  `&&cx(l.stack,l.unsafe[s]))return/[ \t]/.test(o.before)?"":" ";return`\\
@@ -80,8 +80,8 @@ Error generating stack: `+r.message+`
80
80
  `},h]}}const _N=n=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:n.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:n.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),vN=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],SN=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],xN=[...vN,...SN],TN=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),Rb=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),Db=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),NN=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse(),AN=Rb.concat(Db).sort().reverse();function wN(n){const a=_N(n),l=AN,o="and or not only",s="[\\w-]+",f="("+s+"|@\\{"+s+"\\})",c=[],p=[],m=function(I){return{className:"string",begin:"~?"+I+".*?"+I}},h=function(I,$,X){return{className:I,begin:$,relevance:X}},b={$pattern:/[a-z-]+/,keyword:o,attribute:TN.join(" ")},g={begin:"\\(",end:"\\)",contains:p,keywords:b,relevance:0};p.push(n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,m("'"),m('"'),a.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},a.HEXCOLOR,g,h("variable","@@?"+s,10),h("variable","@\\{"+s+"\\}"),h("built_in","~?`[^`]*?`"),{className:"attribute",begin:s+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},a.IMPORTANT,{beginKeywords:"and not"},a.FUNCTION_DISPATCH);const _=p.concat({begin:/\{/,end:/\}/,contains:c}),E={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(p)},x={begin:f+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},a.CSS_VARIABLE,{className:"attribute",begin:"\\b("+NN.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:p}}]},O={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:b,returnEnd:!0,contains:p,relevance:0}},R={className:"variable",variants:[{begin:"@"+s+"\\s*:",relevance:15},{begin:"@"+s}],starts:{end:"[;}]",returnEnd:!0,contains:_}},A={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:f,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,E,h("keyword","all\\b"),h("variable","@\\{"+s+"\\}"),{begin:"\\b("+xN.join("|")+")\\b",className:"selector-tag"},a.CSS_NUMBER_MODE,h("selector-tag",f,0),h("selector-id","#"+f),h("selector-class","\\."+f,0),h("selector-tag","&",0),a.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+Rb.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+Db.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:_},{begin:"!important"},a.FUNCTION_DISPATCH]},B={begin:s+`:(:)?(${l.join("|")})`,returnBegin:!0,contains:[A]};return c.push(n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,O,R,B,x,A,E,a.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:c}}function kN(n){const a="\\[=*\\[",l="\\]=*\\]",o={begin:a,end:l,contains:["self"]},s=[n.COMMENT("--(?!"+a+")","$"),n.COMMENT("--"+a,l,{contains:[o],relevance:10})];return{name:"Lua",aliases:["pluto"],keywords:{$pattern:n.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:s.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[n.inherit(n.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:s}].concat(s)},n.C_NUMBER_MODE,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,{className:"string",begin:a,end:l,contains:[o],relevance:5}])}}function CN(n){const a={className:"variable",variants:[{begin:"\\$\\("+n.UNDERSCORE_IDENT_RE+"\\)",contains:[n.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},l={className:"string",begin:/"/,end:/"/,contains:[n.BACKSLASH_ESCAPE,a]},o={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[a,l]},s={begin:"^"+n.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},f={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},c={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[a]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[n.HASH_COMMENT_MODE,a,l,o,s,f,c]}}function ON(n){const a=n.regex,l={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},o={begin:"^[-\\*]{3,}",end:"$"},s={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},f={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},c={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},p=/[A-Za-z][A-Za-z0-9+.-]*/,m={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:a.concat(/\[.+?\]\(/,p,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},h={className:"strong",contains:[],variants:[{begin:/_{2}(?!\s)/,end:/_{2}/},{begin:/\*{2}(?!\s)/,end:/\*{2}/}]},b={className:"emphasis",contains:[],variants:[{begin:/\*(?![*\s])/,end:/\*/},{begin:/_(?![_\s])/,end:/_/,relevance:0}]},g=n.inherit(h,{contains:[]}),_=n.inherit(b,{contains:[]});h.contains.push(_),b.contains.push(g);let E=[l,m];return[h,b,g,_].forEach(A=>{A.contains=A.contains.concat(E)}),E=E.concat(h,b),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:E},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:E}]}]},l,f,h,b,{className:"quote",begin:"^>\\s+",contains:E,end:"$"},s,o,m,c,{scope:"literal",match:/&([a-zA-Z0-9]+|#[0-9]{1,7}|#[Xx][0-9a-fA-F]{1,6});/}]}}function MN(n){const a={className:"built_in",begin:"\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+"},l=/[a-zA-Z@][a-zA-Z0-9_]*/,p={"variable.language":["this","super"],$pattern:l,keyword:["while","export","sizeof","typedef","const","struct","for","union","volatile","static","mutable","if","do","return","goto","enum","else","break","extern","asm","case","default","register","explicit","typename","switch","continue","inline","readonly","assign","readwrite","self","@synchronized","id","typeof","nonatomic","IBOutlet","IBAction","strong","weak","copy","in","out","inout","bycopy","byref","oneway","__strong","__weak","__block","__autoreleasing","@private","@protected","@public","@try","@property","@end","@throw","@catch","@finally","@autoreleasepool","@synthesize","@dynamic","@selector","@optional","@required","@encode","@package","@import","@defs","@compatibility_alias","__bridge","__bridge_transfer","__bridge_retained","__bridge_retain","__covariant","__contravariant","__kindof","_Nonnull","_Nullable","_Null_unspecified","__FUNCTION__","__PRETTY_FUNCTION__","__attribute__","getter","setter","retain","unsafe_unretained","nonnull","nullable","null_unspecified","null_resettable","class","instancetype","NS_DESIGNATED_INITIALIZER","NS_UNAVAILABLE","NS_REQUIRES_SUPER","NS_RETURNS_INNER_POINTER","NS_INLINE","NS_AVAILABLE","NS_DEPRECATED","NS_ENUM","NS_OPTIONS","NS_SWIFT_UNAVAILABLE","NS_ASSUME_NONNULL_BEGIN","NS_ASSUME_NONNULL_END","NS_REFINED_FOR_SWIFT","NS_SWIFT_NAME","NS_SWIFT_NOTHROW","NS_DURING","NS_HANDLER","NS_ENDHANDLER","NS_VALUERETURN","NS_VOIDRETURN"],literal:["false","true","FALSE","TRUE","nil","YES","NO","NULL"],built_in:["dispatch_once_t","dispatch_queue_t","dispatch_sync","dispatch_async","dispatch_once"],type:["int","float","char","unsigned","signed","short","long","double","wchar_t","unichar","void","bool","BOOL","id|0","_Bool"]},m={$pattern:l,keyword:["@interface","@class","@protocol","@implementation"]};return{name:"Objective-C",aliases:["mm","objc","obj-c","obj-c++","objective-c++"],keywords:p,illegal:"</",contains:[a,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.C_NUMBER_MODE,n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,{className:"string",variants:[{begin:'@"',end:'"',illegal:"\\n",contains:[n.BACKSLASH_ESCAPE]}]},{className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},n.inherit(n.QUOTE_STRING_MODE,{className:"string"}),{className:"string",begin:/<.*?>/,end:/$/,illegal:"\\n"},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+m.keyword.join("|")+")\\b",end:/(\{|$)/,excludeEnd:!0,keywords:m,contains:[n.UNDERSCORE_TITLE_MODE]},{begin:"\\."+n.UNDERSCORE_IDENT_RE,relevance:0}]}}function RN(n){const a=n.regex,l=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","class","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","field","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","method","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],o=/[dualxmsipngr]{0,12}/,s={$pattern:/[\w.]+/,keyword:l.join(" ")},f={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:s},c={begin:/->\{/,end:/\}/},p={scope:"attr",match:/\s+:\s*\w+(\s*\(.*?\))?/},m={scope:"variable",variants:[{begin:/\$\d/},{begin:a.concat(/[$%@](?!")(\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@](?!")[^\s\w{=]|\$=/,relevance:0}],contains:[p]},h={className:"number",variants:[{match:/0?\.[0-9][0-9_]+\b/},{match:/\bv?(0|[1-9][0-9_]*(\.[0-9_]+)?|[1-9][0-9_]*)\b/},{match:/\b0[0-7][0-7_]*\b/},{match:/\b0x[0-9a-fA-F][0-9a-fA-F_]*\b/},{match:/\b0b[0-1][0-1_]*\b/}],relevance:0},b=[n.BACKSLASH_ESCAPE,f,m],g=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],_=(O,R,A="\\1")=>{const B=A==="\\1"?A:a.concat(A,R);return a.concat(a.concat("(?:",O,")"),R,/(?:\\.|[^\\\/])*?/,B,/(?:\\.|[^\\\/])*?/,A,o)},E=(O,R,A)=>a.concat(a.concat("(?:",O,")"),R,/(?:\\.|[^\\\/])*?/,A,o),x=[m,n.HASH_COMMENT_MODE,n.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),c,{className:"string",contains:b,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[n.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},h,{begin:"(\\/\\/|"+n.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[n.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:_("s|tr|y",a.either(...g,{capture:!0}))},{begin:_("s|tr|y","\\(","\\)")},{begin:_("s|tr|y","\\[","\\]")},{begin:_("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:E("(?:m|qr)?",/\//,/\//)},{begin:E("m|qr",a.either(...g,{capture:!0}),/\1/)},{begin:E("m|qr",/\(/,/\)/)},{begin:E("m|qr",/\[/,/\]/)},{begin:E("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub method",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[n.TITLE_MODE,p]},{className:"class",beginKeywords:"class",end:"[;{]",excludeEnd:!0,relevance:5,contains:[n.TITLE_MODE,p,h]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return f.contains=x,c.contains=x,{name:"Perl",aliases:["pl","pm"],keywords:s,contains:x}}function DN(n){const a=n.regex,l=/(?![A-Za-z0-9])(?![$])/,o=a.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,l),s=a.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,l),f=a.concat(/[A-Z]+/,l),c={scope:"variable",match:"\\$+"+o},p={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},m={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},h=n.inherit(n.APOS_STRING_MODE,{illegal:null}),b=n.inherit(n.QUOTE_STRING_MODE,{illegal:null,contains:n.QUOTE_STRING_MODE.contains.concat(m)}),g={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:n.QUOTE_STRING_MODE.contains.concat(m),"on:begin":(oe,W)=>{W.data._beginMatch=oe[1]||oe[2]},"on:end":(oe,W)=>{W.data._beginMatch!==oe[1]&&W.ignoreMatch()}},_=n.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),E=`[
81
81
  ]`,x={scope:"string",variants:[b,h,g,_]},O={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},R=["false","null","true"],A=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],B=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],$={keyword:A,literal:(oe=>{const W=[];return oe.forEach(z=>{W.push(z),z.toLowerCase()===z?W.push(z.toUpperCase()):W.push(z.toLowerCase())}),W})(R),built_in:B},X=oe=>oe.map(W=>W.replace(/\|\d+$/,"")),N={variants:[{match:[/new/,a.concat(E,"+"),a.concat("(?!",X(B).join("\\b|"),"\\b)"),s],scope:{1:"keyword",4:"title.class"}}]},Y=a.concat(o,"\\b(?!\\()"),ee={variants:[{match:[a.concat(/::/,a.lookahead(/(?!class\b)/)),Y],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[s,a.concat(/::/,a.lookahead(/(?!class\b)/)),Y],scope:{1:"title.class",3:"variable.constant"}},{match:[s,a.concat("::",a.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[s,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},ue={scope:"attr",match:a.concat(o,a.lookahead(":"),a.lookahead(/(?!::)/))},U={relevance:0,begin:/\(/,end:/\)/,keywords:$,contains:[ue,c,ee,n.C_BLOCK_COMMENT_MODE,x,O,N]},ae={relevance:0,match:[/\b/,a.concat("(?!fn\\b|function\\b|",X(A).join("\\b|"),"|",X(B).join("\\b|"),"\\b)"),o,a.concat(E,"*"),a.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[U]};U.contains.push(ae);const re=[ue,ee,n.C_BLOCK_COMMENT_MODE,x,O,N],we={begin:a.concat(/#\[\s*\\?/,a.either(s,f)),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:R,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:R,keyword:["new","array"]},contains:["self",...re]},...re,{scope:"meta",variants:[{match:s},{match:f}]}]};return{case_insensitive:!1,keywords:$,contains:[we,n.HASH_COMMENT_MODE,n.COMMENT("//","$"),n.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:n.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},p,{scope:"variable.language",match:/\$this\b/},c,ae,ee,{match:[/const/,/\s/,o],scope:{1:"keyword",3:"variable.constant"}},N,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},n.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:$,contains:["self",we,c,ee,n.C_BLOCK_COMMENT_MODE,x,O]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},n.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[n.inherit(n.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},n.UNDERSCORE_TITLE_MODE]},x,O]}}function LN(n){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},n.inherit(n.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),n.inherit(n.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}function zN(n){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function BN(n){const a=n.regex,l=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),o=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],p={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:o,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},m={className:"meta",begin:/^(>>>|\.\.\.) /},h={className:"subst",begin:/\{/,end:/\}/,keywords:p,illegal:/#/},b={begin:/\{\{/,relevance:0},g={className:"string",contains:[n.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[n.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[n.BACKSLASH_ESCAPE,m],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[n.BACKSLASH_ESCAPE,m,b,h]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[n.BACKSLASH_ESCAPE,m,b,h]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[n.BACKSLASH_ESCAPE,b,h]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[n.BACKSLASH_ESCAPE,b,h]},n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},_="[0-9](_?[0-9])*",E=`(\\b(${_}))?\\.(${_})|\\b(${_})\\.`,x=`\\b|${o.join("|")}`,O={className:"number",relevance:0,variants:[{begin:`(\\b(${_})|(${E}))[eE][+-]?(${_})[jJ]?(?=${x})`},{begin:`(${E})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${x})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${x})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${x})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${x})`},{begin:`\\b(${_})[jJ](?=${x})`}]},R={className:"comment",begin:a.lookahead(/# type:/),end:/$/,keywords:p,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},A={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:["self",m,O,g,n.HASH_COMMENT_MODE]}]};return h.contains=[g,O,m],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:p,illegal:/(<\/|\?)|=>/,contains:[m,O,{scope:"variable.language",match:/\bself\b/},{beginKeywords:"if",relevance:0},{match:/\bor\b/,scope:"keyword"},g,R,n.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,l],scope:{1:"keyword",3:"title.function"},contains:[A]},{variants:[{match:[/\bclass/,/\s+/,l,/\s*/,/\(\s*/,l,/\s*\)/]},{match:[/\bclass/,/\s+/,l]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[O,A,g]}]}}function IN(n){return{aliases:["pycon"],contains:[{className:"meta.prompt",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}function UN(n){const a=n.regex,l=/(?:(?:[a-zA-Z]|\.[._a-zA-Z])[._a-zA-Z0-9]*)|\.(?!\d)/,o=a.either(/0[xX][0-9a-fA-F]+\.[0-9a-fA-F]*[pP][+-]?\d+i?/,/0[xX][0-9a-fA-F]+(?:[pP][+-]?\d+)?[Li]?/,/(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?[Li]?/),s=/[=!<>:]=|\|\||&&|:::?|<-|<<-|->>|->|\|>|[-+*\/?!$&|:<=>@^~]|\*\*/,f=a.either(/[()]/,/[{}]/,/\[\[/,/[[\]]/,/\\/,/,/);return{name:"R",keywords:{$pattern:l,keyword:"function if in break next repeat else for while",literal:"NULL NA TRUE FALSE Inf NaN NA_integer_|10 NA_real_|10 NA_character_|10 NA_complex_|10",built_in:"LETTERS letters month.abb month.name pi T F abs acos acosh all any anyNA Arg as.call as.character as.complex as.double as.environment as.integer as.logical as.null.default as.numeric as.raw asin asinh atan atanh attr attributes baseenv browser c call ceiling class Conj cos cosh cospi cummax cummin cumprod cumsum digamma dim dimnames emptyenv exp expression floor forceAndCall gamma gc.time globalenv Im interactive invisible is.array is.atomic is.call is.character is.complex is.double is.environment is.expression is.finite is.function is.infinite is.integer is.language is.list is.logical is.matrix is.na is.name is.nan is.null is.numeric is.object is.pairlist is.raw is.recursive is.single is.symbol lazyLoadDBfetch length lgamma list log max min missing Mod names nargs nzchar oldClass on.exit pos.to.env proc.time prod quote range Re rep retracemem return round seq_along seq_len seq.int sign signif sin sinh sinpi sqrt standardGeneric substitute sum switch tan tanh tanpi tracemem trigamma trunc unclass untracemem UseMethod xtfrm"},contains:[n.COMMENT(/#'/,/$/,{contains:[{scope:"doctag",match:/@examples/,starts:{end:a.lookahead(a.either(/\n^#'\s*(?=@[a-zA-Z]+)/,/\n^(?!#')/)),endsParent:!0}},{scope:"doctag",begin:"@param",end:/$/,contains:[{scope:"variable",variants:[{match:l},{match:/`(?:\\.|[^`\\])+`/}],endsParent:!0}]},{scope:"doctag",match:/@[a-zA-Z]+/},{scope:"keyword",match:/\\[a-zA-Z]+/}]}),n.HASH_COMMENT_MODE,{scope:"string",contains:[n.BACKSLASH_ESCAPE],variants:[n.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\(/,end:/\)(-*)"/}),n.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\{/,end:/\}(-*)"/}),n.END_SAME_AS_BEGIN({begin:/[rR]"(-*)\[/,end:/\](-*)"/}),n.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\(/,end:/\)(-*)'/}),n.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\{/,end:/\}(-*)'/}),n.END_SAME_AS_BEGIN({begin:/[rR]'(-*)\[/,end:/\](-*)'/}),{begin:'"',end:'"',relevance:0},{begin:"'",end:"'",relevance:0}]},{relevance:0,variants:[{scope:{1:"operator",2:"number"},match:[s,o]},{scope:{1:"operator",2:"number"},match:[/%[^%]*%/,o]},{scope:{1:"punctuation",2:"number"},match:[f,o]},{scope:{2:"number"},match:[/[^a-zA-Z0-9._]|^/,o]}]},{scope:{3:"operator"},match:[l,/\s+/,/<-/,/\s+/]},{scope:"operator",relevance:0,variants:[{match:s},{match:/%[^%]*%/}]},{scope:"punctuation",relevance:0,match:f},{begin:"`",end:"`",contains:[{begin:/\\./}]}]}}function HN(n){const a=n.regex,l="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",o=a.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),s=a.concat(o,/(::\w+)*/),c={"variable.constant":["__FILE__","__LINE__","__ENCODING__"],"variable.language":["self","super"],keyword:["alias","and","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield",...["include","extend","prepend","public","private","protected","raise","throw"]],built_in:["proc","lambda","attr_accessor","attr_reader","attr_writer","define_method","private_constant","module_function"],literal:["true","false","nil"]},p={className:"doctag",begin:"@[A-Za-z]+"},m={begin:"#<",end:">"},h=[n.COMMENT("#","$",{contains:[p]}),n.COMMENT("^=begin","^=end",{contains:[p],relevance:10}),n.COMMENT("^__END__",n.MATCH_NOTHING_RE)],b={className:"subst",begin:/#\{/,end:/\}/,keywords:c},g={className:"string",contains:[n.BACKSLASH_ESCAPE,b],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:a.concat(/<<[-~]?'?/,a.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[n.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[n.BACKSLASH_ESCAPE,b]})]}]},_="[1-9](_?[0-9])*|0",E="[0-9](_?[0-9])*",x={className:"number",relevance:0,variants:[{begin:`\\b(${_})(\\.(${E}))?([eE][+-]?(${E})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},O={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:c}]},N=[g,{variants:[{match:[/class\s+/,s,/\s+<\s+/,s]},{match:[/\b(class|module)\s+/,s]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:c},{match:[/(include|extend)\s+/,s],scope:{2:"title.class"},keywords:c},{relevance:0,match:[s,/\.new[. (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{relevance:0,match:o,scope:"title.class"},{match:[/def/,/\s+/,l],scope:{1:"keyword",3:"title.function"},contains:[O]},{begin:n.IDENT_RE+"::"},{className:"symbol",begin:n.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[g,{begin:l}],relevance:0},x,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|(?!=)/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:c},{begin:"("+n.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[n.BACKSLASH_ESCAPE,b],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(m,h),relevance:0}].concat(m,h);b.contains=N,O.contains=N;const U=[{begin:/^\s*=>/,starts:{end:"$",contains:N}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:c,contains:N}}];return h.unshift(m),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:c,illegal:/\/\*/,contains:[n.SHEBANG({binary:"ruby"})].concat(U).concat(h).concat(N)}}function qN(n){const a=n.regex,l=/(r#)?/,o=a.concat(l,n.UNDERSCORE_IDENT_RE),s=a.concat(l,n.IDENT_RE),f={className:"title.function.invoke",relevance:0,begin:a.concat(/\b/,/(?!let|for|while|if|else|match\b)/,s,a.lookahead(/\s*\(/))},c="([ui](8|16|32|64|128|size)|f(32|64))?",p=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","union","unsafe","unsized","use","virtual","where","while","yield"],m=["true","false","Some","None","Ok","Err"],h=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","eprintln!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],b=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:n.IDENT_RE+"!?",type:b,keyword:p,literal:m,built_in:h},illegal:"</",contains:[n.C_LINE_COMMENT_MODE,n.COMMENT("/\\*","\\*/",{contains:["self"]}),n.inherit(n.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*(?!')/},{scope:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'/,end:/'/,contains:[{scope:"char.escape",match:/\\('|\w|x\w{2}|u\w{4}|U\w{8})/}]}]},{className:"number",variants:[{begin:"\\b0b([01_]+)"+c},{begin:"\\b0o([0-7_]+)"+c},{begin:"\\b0x([A-Fa-f0-9_]+)"+c},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+c}],relevance:0},{begin:[/fn/,/\s+/,o],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/,contains:[n.BACKSLASH_ESCAPE]}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,o],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,o,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,o],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,o],className:{1:"keyword",3:"title.class"}},{begin:n.IDENT_RE+"::",keywords:{keyword:"Self",built_in:h,type:b}},{className:"punctuation",begin:"->"},f]}}const FN=n=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:n.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:n.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z_][A-Za-z0-9_-]*/}}),GN=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","optgroup","option","p","picture","q","quote","samp","section","select","source","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],jN=["defs","g","marker","mask","pattern","svg","switch","symbol","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feFlood","feGaussianBlur","feImage","feMerge","feMorphology","feOffset","feSpecularLighting","feTile","feTurbulence","linearGradient","radialGradient","stop","circle","ellipse","image","line","path","polygon","polyline","rect","text","use","textPath","tspan","foreignObject","clipPath"],YN=[...GN,...jN],KN=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"].sort().reverse(),VN=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"].sort().reverse(),XN=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"].sort().reverse(),PN=["accent-color","align-content","align-items","align-self","alignment-baseline","all","anchor-name","animation","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range","animation-range-end","animation-range-start","animation-timeline","animation-timing-function","appearance","aspect-ratio","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-end-end-radius","border-end-start-radius","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-start-end-radius","border-start-start-radius","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-align","box-decoration-break","box-direction","box-flex","box-flex-group","box-lines","box-ordinal-group","box-orient","box-pack","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","color-scheme","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","contain-intrinsic-block-size","contain-intrinsic-height","contain-intrinsic-inline-size","contain-intrinsic-size","contain-intrinsic-width","container","container-name","container-type","content","content-visibility","counter-increment","counter-reset","counter-set","cue","cue-after","cue-before","cursor","cx","cy","direction","display","dominant-baseline","empty-cells","enable-background","field-sizing","fill","fill-opacity","fill-rule","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flood-color","flood-opacity","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-palette","font-size","font-size-adjust","font-smooth","font-smoothing","font-stretch","font-style","font-synthesis","font-synthesis-position","font-synthesis-small-caps","font-synthesis-style","font-synthesis-weight","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-emoji","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","forced-color-adjust","gap","glyph-orientation-horizontal","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphenate-character","hyphenate-limit-chars","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","initial-letter","initial-letter-align","inline-size","inset","inset-area","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","kerning","left","letter-spacing","lighting-color","line-break","line-height","line-height-step","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-trim","marker","marker-end","marker-mid","marker-start","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","masonry-auto-flow","math-depth","math-shift","math-style","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-anchor","overflow-block","overflow-clip-margin","overflow-inline","overflow-wrap","overflow-x","overflow-y","overlay","overscroll-behavior","overscroll-behavior-block","overscroll-behavior-inline","overscroll-behavior-x","overscroll-behavior-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","paint-order","pause","pause-after","pause-before","perspective","perspective-origin","place-content","place-items","place-self","pointer-events","position","position-anchor","position-visibility","print-color-adjust","quotes","r","resize","rest","rest-after","rest-before","right","rotate","row-gap","ruby-align","ruby-position","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scroll-timeline","scroll-timeline-axis","scroll-timeline-name","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","shape-rendering","speak","speak-as","src","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","tab-size","table-layout","text-align","text-align-all","text-align-last","text-anchor","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-decoration-thickness","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-size-adjust","text-transform","text-underline-offset","text-underline-position","text-wrap","text-wrap-mode","text-wrap-style","timeline-scope","top","touch-action","transform","transform-box","transform-origin","transform-style","transition","transition-behavior","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-modify","user-select","vector-effect","vertical-align","view-timeline","view-timeline-axis","view-timeline-inset","view-timeline-name","view-transition-name","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","white-space-collapse","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","x","y","z-index","zoom"].sort().reverse();function ZN(n){const a=FN(n),l=XN,o=VN,s="@[a-z-]+",f="and or not only",p={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,a.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},a.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+YN.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+o.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+l.join("|")+")"},p,{begin:/\(/,end:/\)/,contains:[a.CSS_NUMBER_MODE]},a.CSS_VARIABLE,{className:"attribute",begin:"\\b("+PN.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[a.BLOCK_COMMENT,p,a.HEXCOLOR,a.CSS_NUMBER_MODE,n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,a.IMPORTANT,a.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:s,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:f,attribute:KN.join(" ")},contains:[{begin:s,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},p,n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,a.HEXCOLOR,a.CSS_NUMBER_MODE]},a.FUNCTION_DISPATCH]}}function QN(n){return{name:"Shell Session",aliases:["console","shellsession"],contains:[{className:"meta.prompt",begin:/^\s{0,3}[/~\w\d[\]()@-]*[>%$#][ ]?/,starts:{end:/[^\\](?=\s*$)/,subLanguage:"bash"}}]}}function $N(n){const a=n.regex,l=n.COMMENT("--","$"),o={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},s={begin:/"/,end:/"/,contains:[{match:/""/}]},f=["true","false","unknown"],c=["double precision","large object","with timezone","without timezone"],p=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],m=["add","asc","collation","desc","final","first","last","view"],h=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],b=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],g=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],_=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],E=b,x=[...h,...m].filter(X=>!b.includes(X)),O={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},R={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},A={match:a.concat(/\b/,a.either(...E),/\s*\(/),relevance:0,keywords:{built_in:E}};function B(X){return a.concat(/\b/,a.either(...X.map(N=>N.replace(/\s+/,"\\s+"))),/\b/)}const I={scope:"keyword",match:B(_),relevance:0};function $(X,{exceptions:N,when:Y}={}){const ee=Y;return N=N||[],X.map(ue=>ue.match(/\|\d+$/)||N.includes(ue)?ue:ee(ue)?`${ue}|0`:ue)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:$(x,{when:X=>X.length<3}),literal:f,type:p,built_in:g},contains:[{scope:"type",match:B(c)},I,A,O,o,s,n.C_NUMBER_MODE,n.C_BLOCK_COMMENT_MODE,l,R]}}function Lb(n){return n?typeof n=="string"?n:n.source:null}function vr(n){return ot("(?=",n,")")}function ot(...n){return n.map(l=>Lb(l)).join("")}function JN(n){const a=n[n.length-1];return typeof a=="object"&&a.constructor===Object?(n.splice(n.length-1,1),a):{}}function en(...n){return"("+(JN(n).capture?"":"?:")+n.map(o=>Lb(o)).join("|")+")"}const Tf=n=>ot(/\b/,n,/\w$/.test(n)?/\b/:/\B/),WN=["Protocol","Type"].map(Tf),sg=["init","self"].map(Tf),eA=["Any","Self"],qc=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","borrowing","break","case","catch","class","consume","consuming","continue","convenience","copy","default","defer","deinit","didSet","distributed","do","dynamic","each","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","macro","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","package","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],ug=["false","nil","true"],tA=["assignment","associativity","higherThan","left","lowerThan","none","right"],nA=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warning"],cg=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],zb=en(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),Bb=en(zb,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),Fc=ot(zb,Bb,"*"),Ib=en(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),ss=en(Ib,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),Jn=ot(Ib,ss,"*"),ns=ot(/[A-Z]/,ss,"*"),iA=["attached","autoclosure",ot(/convention\(/,en("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","freestanding","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",ot(/objc\(/,Jn,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","Sendable","testable","UIApplicationMain","unchecked","unknown","usableFromInline","warn_unqualified_access"],aA=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function lA(n){const a={match:/\s+/,relevance:0},l=n.COMMENT("/\\*","\\*/",{contains:["self"]}),o=[n.C_LINE_COMMENT_MODE,l],s={match:[/\./,en(...WN,...sg)],className:{2:"keyword"}},f={match:ot(/\./,en(...qc)),relevance:0},c=qc.filter(Ye=>typeof Ye=="string").concat(["_|0"]),p=qc.filter(Ye=>typeof Ye!="string").concat(eA).map(Tf),m={variants:[{className:"keyword",match:en(...p,...sg)}]},h={$pattern:en(/\b\w+/,/#\w+/),keyword:c.concat(nA),literal:ug},b=[s,f,m],g={match:ot(/\./,en(...cg)),relevance:0},_={className:"built_in",match:ot(/\b/,en(...cg),/(?=\()/)},E=[g,_],x={match:/->/,relevance:0},O={className:"operator",relevance:0,variants:[{match:Fc},{match:`\\.(\\.|${Bb})+`}]},R=[x,O],A="([0-9]_*)+",B="([0-9a-fA-F]_*)+",I={className:"number",relevance:0,variants:[{match:`\\b(${A})(\\.(${A}))?([eE][+-]?(${A}))?\\b`},{match:`\\b0x(${B})(\\.(${B}))?([pP][+-]?(${A}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},$=(Ye="")=>({className:"subst",variants:[{match:ot(/\\/,Ye,/[0\\tnr"']/)},{match:ot(/\\/,Ye,/u\{[0-9a-fA-F]{1,8}\}/)}]}),X=(Ye="")=>({className:"subst",match:ot(/\\/,Ye,/[\t ]*(?:[\r\n]|\r\n)/)}),N=(Ye="")=>({className:"subst",label:"interpol",begin:ot(/\\/,Ye,/\(/),end:/\)/}),Y=(Ye="")=>({begin:ot(Ye,/"""/),end:ot(/"""/,Ye),contains:[$(Ye),X(Ye),N(Ye)]}),ee=(Ye="")=>({begin:ot(Ye,/"/),end:ot(/"/,Ye),contains:[$(Ye),N(Ye)]}),ue={className:"string",variants:[Y(),Y("#"),Y("##"),Y("###"),ee(),ee("#"),ee("##"),ee("###")]},U=[n.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[n.BACKSLASH_ESCAPE]}],ae={begin:/\/[^\s](?=[^/\n]*\/)/,end:/\//,contains:U},re=Ye=>{const Un=ot(Ye,/\//),wn=ot(/\//,Ye);return{begin:Un,end:wn,contains:[...U,{scope:"comment",begin:`#(?!.*${wn})`,end:/$/}]}},we={scope:"regexp",variants:[re("###"),re("##"),re("#"),ae]},oe={match:ot(/`/,Jn,/`/)},W={className:"variable",match:/\$\d+/},z={className:"variable",match:`\\$${ss}+`},J=[oe,W,z],ne={match:/(@|#(un)?)available/,scope:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:aA,contains:[...R,I,ue]}]}},ye={scope:"keyword",match:ot(/@/,en(...iA),vr(en(/\(/,/\s+/)))},T={scope:"meta",match:ot(/@/,Jn)},k=[ne,ye,T],j={match:vr(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:ot(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,ss,"+")},{className:"type",match:ns,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:ot(/\s+&\s+/,vr(ns)),relevance:0}]},S={begin:/</,end:/>/,keywords:h,contains:[...o,...b,...k,x,j]};j.contains.push(S);const ce={match:ot(Jn,/\s*:/),keywords:"_|0",relevance:0},_e={begin:/\(/,end:/\)/,relevance:0,keywords:h,contains:["self",ce,...o,we,...b,...E,...R,I,ue,...J,...k,j]},me={begin:/</,end:/>/,keywords:"repeat each",contains:[...o,j]},ze={begin:en(vr(ot(Jn,/\s*:/)),vr(ot(Jn,/\s+/,Jn,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:Jn}]},Je={begin:/\(/,end:/\)/,keywords:h,contains:[ze,...o,...b,...R,I,ue,...k,j,_e],endsParent:!0,illegal:/["']/},Qe={match:[/(func|macro)/,/\s+/,en(oe.match,Jn,Fc)],className:{1:"keyword",3:"title.function"},contains:[me,Je,a],illegal:[/\[/,/%/]},zt={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[me,Je,a],illegal:/\[|%/},hn={match:[/operator/,/\s+/,Fc],className:{1:"keyword",3:"title"}},ti={begin:[/precedencegroup/,/\s+/,ns],className:{1:"keyword",3:"title"},contains:[j],keywords:[...tA,...ug],end:/}/},Ti={match:[/class\b/,/\s+/,/func\b/,/\s+/,/\b[A-Za-z_][A-Za-z0-9_]*\b/],scope:{1:"keyword",3:"keyword",5:"title.function"}},mn={match:[/class\b/,/\s+/,/var\b/],scope:{1:"keyword",3:"keyword"}},Yn={begin:[/(struct|protocol|class|extension|enum|actor)/,/\s+/,Jn,/\s*/],beginScope:{1:"keyword",3:"title.class"},keywords:h,contains:[me,...b,{begin:/:/,end:/\{/,keywords:h,contains:[{scope:"title.class.inherited",match:ns},...b],relevance:0}]};for(const Ye of ue.variants){const Un=Ye.contains.find(Kn=>Kn.label==="interpol");Un.keywords=h;const wn=[...b,...E,...R,I,ue,...J];Un.contains=[...wn,{begin:/\(/,end:/\)/,contains:["self",...wn]}]}return{name:"Swift",keywords:h,contains:[...o,Qe,zt,Ti,mn,Yn,hn,ti,{beginKeywords:"import",end:/$/,contains:[...o],relevance:0},we,...b,...E,...R,I,ue,...J,...k,j,_e]}}const us="[A-Za-z$_][0-9A-Za-z$_]*",Ub=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends","using"],Hb=["true","false","null","undefined","NaN","Infinity"],qb=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Fb=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Gb=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],jb=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],Yb=[].concat(Gb,qb,Fb);function rA(n){const a=n.regex,l=(ne,{after:ye})=>{const T="</"+ne[0].slice(1);return ne.input.indexOf(T,ye)!==-1},o=us,s={begin:"<>",end:"</>"},f=/<[A-Za-z0-9\\._:-]+\s*\/>/,c={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(ne,ye)=>{const T=ne[0].length+ne.index,k=ne.input[T];if(k==="<"||k===","){ye.ignoreMatch();return}k===">"&&(l(ne,{after:T})||ye.ignoreMatch());let j;const S=ne.input.substring(T);if(j=S.match(/^\s*=/)){ye.ignoreMatch();return}if((j=S.match(/^\s+extends\s+/))&&j.index===0){ye.ignoreMatch();return}}},p={$pattern:us,keyword:Ub,literal:Hb,built_in:Yb,"variable.language":jb},m="[0-9](_?[0-9])*",h=`\\.(${m})`,b="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",g={className:"number",variants:[{begin:`(\\b(${b})((${h})|\\.)?|(${h}))[eE][+-]?(${m})\\b`},{begin:`\\b(${b})\\b((${h})\\b|\\.)?|(${h})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},_={className:"subst",begin:"\\$\\{",end:"\\}",keywords:p,contains:[]},E={begin:".?html`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,_],subLanguage:"xml"}},x={begin:".?css`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,_],subLanguage:"css"}},O={begin:".?gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,_],subLanguage:"graphql"}},R={className:"string",begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE,_]},B={className:"comment",variants:[n.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:o+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),n.C_BLOCK_COMMENT_MODE,n.C_LINE_COMMENT_MODE]},I=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,E,x,O,R,{match:/\$\d+/},g];_.contains=I.concat({begin:/\{/,end:/\}/,keywords:p,contains:["self"].concat(I)});const $=[].concat(B,_.contains),X=$.concat([{begin:/(\s*)\(/,end:/\)/,keywords:p,contains:["self"].concat($)}]),N={className:"params",begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:X},Y={variants:[{match:[/class/,/\s+/,o,/\s+/,/extends/,/\s+/,a.concat(o,"(",a.concat(/\./,o),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,o],scope:{1:"keyword",3:"title.class"}}]},ee={relevance:0,match:a.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...qb,...Fb]}},ue={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},U={variants:[{match:[/function/,/\s+/,o,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[N],illegal:/%/},ae={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function re(ne){return a.concat("(?!",ne.join("|"),")")}const we={match:a.concat(/\b/,re([...Gb,"super","import"].map(ne=>`${ne}\\s*\\(`)),o,a.lookahead(/\s*\(/)),className:"title.function",relevance:0},oe={begin:a.concat(/\./,a.lookahead(a.concat(o,/(?![0-9A-Za-z$_(])/))),end:o,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},W={match:[/get|set/,/\s+/,o,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},N]},z="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+n.UNDERSCORE_IDENT_RE+")\\s*=>",J={match:[/const|var|let/,/\s+/,o,/\s*/,/=\s*/,/(async\s*)?/,a.lookahead(z)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[N]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:p,exports:{PARAMS_CONTAINS:X,CLASS_REFERENCE:ee},illegal:/#(?![$_A-z])/,contains:[n.SHEBANG({label:"shebang",binary:"node",relevance:5}),ue,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,E,x,O,R,B,{match:/\$\d+/},g,ee,{scope:"attr",match:o+a.lookahead(":"),relevance:0},J,{begin:"("+n.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[B,n.REGEXP_MODE,{className:"function",begin:z,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/(\s*)\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:p,contains:X}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:f},{begin:c.begin,"on:begin":c.isTrulyOpeningTag,end:c.end}],subLanguage:"xml",contains:[{begin:c.begin,end:c.end,skip:!0,contains:["self"]}]}]},U,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+n.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[N,n.inherit(n.TITLE_MODE,{begin:o,className:"title.function"})]},{match:/\.\.\./,relevance:0},oe,{match:"\\$"+o,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[N]},we,ae,Y,W,{match:/\$[(.]/}]}}function oA(n){const a=n.regex,l=rA(n),o=us,s=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],f={begin:[/namespace/,/\s+/,n.IDENT_RE],beginScope:{1:"keyword",3:"title.class"}},c={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:s},contains:[l.exports.CLASS_REFERENCE]},p={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},m=["type","interface","public","private","protected","implements","declare","abstract","readonly","enum","override","satisfies"],h={$pattern:us,keyword:Ub.concat(m),literal:Hb,built_in:Yb.concat(s),"variable.language":jb},b={className:"meta",begin:"@"+o},g=(O,R,A)=>{const B=O.contains.findIndex(I=>I.label===R);if(B===-1)throw new Error("can not find mode to replace");O.contains.splice(B,1,A)};Object.assign(l.keywords,h),l.exports.PARAMS_CONTAINS.push(b);const _=l.contains.find(O=>O.scope==="attr"),E=Object.assign({},_,{match:a.concat(o,a.lookahead(/\s*\?:/))});l.exports.PARAMS_CONTAINS.push([l.exports.CLASS_REFERENCE,_,E]),l.contains=l.contains.concat([b,f,c,E]),g(l,"shebang",n.SHEBANG()),g(l,"use_strict",p);const x=l.contains.find(O=>O.label==="func.def");return x.relevance=0,Object.assign(l,{name:"TypeScript",aliases:["ts","tsx","mts","cts"]}),l}function sA(n){const a=n.regex,l={className:"string",begin:/"(""|[^/n])"C\b/},o={className:"string",begin:/"/,end:/"/,illegal:/\n/,contains:[{begin:/""/}]},s=/\d{1,2}\/\d{1,2}\/\d{4}/,f=/\d{4}-\d{1,2}-\d{1,2}/,c=/(\d|1[012])(:\d+){0,2} *(AM|PM)/,p=/\d{1,2}(:\d{1,2}){1,2}/,m={className:"literal",variants:[{begin:a.concat(/# */,a.either(f,s),/ *#/)},{begin:a.concat(/# */,p,/ *#/)},{begin:a.concat(/# */,c,/ *#/)},{begin:a.concat(/# */,a.either(f,s),/ +/,a.either(c,p),/ *#/)}]},h={className:"number",relevance:0,variants:[{begin:/\b\d[\d_]*((\.[\d_]+(E[+-]?[\d_]+)?)|(E[+-]?[\d_]+))[RFD@!#]?/},{begin:/\b\d[\d_]*((U?[SIL])|[%&])?/},{begin:/&H[\dA-F_]+((U?[SIL])|[%&])?/},{begin:/&O[0-7_]+((U?[SIL])|[%&])?/},{begin:/&B[01_]+((U?[SIL])|[%&])?/}]},b={className:"label",begin:/^\w+:/},g=n.COMMENT(/'''/,/$/,{contains:[{className:"doctag",begin:/<\/?/,end:/>/}]}),_=n.COMMENT(null,/$/,{variants:[{begin:/'/},{begin:/([\t ]|^)REM(?=\s)/}]});return{name:"Visual Basic .NET",aliases:["vb"],case_insensitive:!0,classNameAliases:{label:"symbol"},keywords:{keyword:"addhandler alias aggregate ansi as async assembly auto binary by byref byval call case catch class compare const continue custom declare default delegate dim distinct do each equals else elseif end enum erase error event exit explicit finally for friend from function get global goto group handles if implements imports in inherits interface into iterator join key let lib loop me mid module mustinherit mustoverride mybase myclass namespace narrowing new next notinheritable notoverridable of off on operator option optional order overloads overridable overrides paramarray partial preserve private property protected public raiseevent readonly redim removehandler resume return select set shadows shared skip static step stop structure strict sub synclock take text then throw to try unicode until using when where while widening with withevents writeonly yield",built_in:"addressof and andalso await directcast gettype getxmlnamespace is isfalse isnot istrue like mod nameof new not or orelse trycast typeof xor cbool cbyte cchar cdate cdbl cdec cint clng cobj csbyte cshort csng cstr cuint culng cushort",type:"boolean byte char date decimal double integer long object sbyte short single string uinteger ulong ushort",literal:"true false nothing"},illegal:"//|\\{|\\}|endif|gosub|variant|wend|^\\$ ",contains:[l,o,m,h,b,g,_,{className:"meta",begin:/[\t ]*#(const|disable|else|elseif|enable|end|externalsource|if|region)\b/,end:/$/,keywords:{keyword:"const disable else elseif enable end externalsource if region then"},contains:[_]}]}}function uA(n){n.regex;const a=n.COMMENT(/\(;/,/;\)/);a.contains.push("self");const l=n.COMMENT(/;;/,/$/),o=["anyfunc","block","br","br_if","br_table","call","call_indirect","data","drop","elem","else","end","export","func","global.get","global.set","local.get","local.set","local.tee","get_global","get_local","global","if","import","local","loop","memory","memory.grow","memory.size","module","mut","nop","offset","param","result","return","select","set_global","set_local","start","table","tee_local","then","type","unreachable"],s={begin:[/(?:func|call|call_indirect)/,/\s+/,/\$[^\s)]+/],className:{1:"keyword",3:"title.function"}},f={className:"variable",begin:/\$[\w_]+/},c={match:/(\((?!;)|\))+/,className:"punctuation",relevance:0},p={className:"number",relevance:0,match:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/},m={match:/(i32|i64|f32|f64)(?!\.)/,className:"type"},h={className:"keyword",match:/\b(f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|nearest|neg?|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|store(?:8|16|32)?|sqrt|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))\b/};return{name:"WebAssembly",keywords:{$pattern:/[\w.]+/,keyword:o},contains:[l,a,{match:[/(?:offset|align)/,/\s*/,/=/],className:{1:"keyword",3:"operator"}},f,c,s,n.QUOTE_STRING_MODE,m,h,p]}}function cA(n){const a=n.regex,l=a.concat(/[\p{L}_]/u,a.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),o=/[\p{L}0-9._:-]+/u,s={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},f={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},c=n.inherit(f,{begin:/\(/,end:/\)/}),p=n.inherit(n.APOS_STRING_MODE,{className:"string"}),m=n.inherit(n.QUOTE_STRING_MODE,{className:"string"}),h={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:o,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[s]},{begin:/'/,end:/'/,contains:[s]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[f,m,p,c,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[f,c,m,p]}]}]},n.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},s,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[m]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[h],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[h],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:a.concat(/</,a.lookahead(a.concat(l,a.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:l,relevance:0,starts:h}]},{className:"tag",begin:a.concat(/<\//,a.lookahead(a.concat(l,/>/))),contains:[{className:"name",begin:l,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function fA(n){const a="true false yes no null",l="[\\w#;/?:@&=+$,.~*'()[\\]]+",o={className:"attr",variants:[{begin:/[\w*@][\w*@ :()\./-]*:(?=[ \t]|$)/},{begin:/"[\w*@][\w*@ :()\./-]*":(?=[ \t]|$)/},{begin:/'[\w*@][\w*@ :()\./-]*':(?=[ \t]|$)/}]},s={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},f={className:"string",relevance:0,begin:/'/,end:/'/,contains:[{match:/''/,scope:"char.escape",relevance:0}]},c={className:"string",relevance:0,variants:[{begin:/"/,end:/"/},{begin:/\S+/}],contains:[n.BACKSLASH_ESCAPE,s]},p=n.inherit(c,{variants:[{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),_={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},E={end:",",endsWithParent:!0,excludeEnd:!0,keywords:a,relevance:0},x={begin:/\{/,end:/\}/,contains:[E],illegal:"\\n",relevance:0},O={begin:"\\[",end:"\\]",contains:[E],illegal:"\\n",relevance:0},R=[o,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+l},{className:"type",begin:"!<"+l+">"},{className:"type",begin:"!"+l},{className:"type",begin:"!!"+l},{className:"meta",begin:"&"+n.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+n.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},n.HASH_COMMENT_MODE,{beginKeywords:a,keywords:{literal:a}},_,{className:"number",begin:n.C_NUMBER_RE+"\\b",relevance:0},x,O,f,c],A=[...R];return A.pop(),A.push(p),E.contains=A,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:R}}const dA={arduino:XT,bash:PT,c:ZT,cpp:QT,csharp:$T,css:rN,diff:oN,go:sN,graphql:uN,ini:cN,java:fN,javascript:gN,json:bN,kotlin:EN,less:wN,lua:kN,makefile:CN,markdown:ON,objectivec:MN,perl:RN,php:DN,"php-template":LN,plaintext:zN,python:BN,"python-repl":IN,r:UN,ruby:HN,rust:qN,scss:ZN,shell:QN,sql:$N,swift:lA,typescript:oA,vbnet:sA,wasm:uA,xml:cA,yaml:fA};var Gc,fg;function pA(){if(fg)return Gc;fg=1;function n(C){return C instanceof Map?C.clear=C.delete=C.set=function(){throw new Error("map is read-only")}:C instanceof Set&&(C.add=C.clear=C.delete=function(){throw new Error("set is read-only")}),Object.freeze(C),Object.getOwnPropertyNames(C).forEach(P=>{const fe=C[P],Ce=typeof fe;(Ce==="object"||Ce==="function")&&!Object.isFrozen(fe)&&n(fe)}),C}class a{constructor(P){P.data===void 0&&(P.data={}),this.data=P.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function l(C){return C.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function o(C,...P){const fe=Object.create(null);for(const Ce in C)fe[Ce]=C[Ce];return P.forEach(function(Ce){for(const pt in Ce)fe[pt]=Ce[pt]}),fe}const s="</span>",f=C=>!!C.scope,c=(C,{prefix:P})=>{if(C.startsWith("language:"))return C.replace("language:","language-");if(C.includes(".")){const fe=C.split(".");return[`${P}${fe.shift()}`,...fe.map((Ce,pt)=>`${Ce}${"_".repeat(pt+1)}`)].join(" ")}return`${P}${C}`};class p{constructor(P,fe){this.buffer="",this.classPrefix=fe.classPrefix,P.walk(this)}addText(P){this.buffer+=l(P)}openNode(P){if(!f(P))return;const fe=c(P.scope,{prefix:this.classPrefix});this.span(fe)}closeNode(P){f(P)&&(this.buffer+=s)}value(){return this.buffer}span(P){this.buffer+=`<span class="${P}">`}}const m=(C={})=>{const P={children:[]};return Object.assign(P,C),P};class h{constructor(){this.rootNode=m(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(P){this.top.children.push(P)}openNode(P){const fe=m({scope:P});this.add(fe),this.stack.push(fe)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(P){return this.constructor._walk(P,this.rootNode)}static _walk(P,fe){return typeof fe=="string"?P.addText(fe):fe.children&&(P.openNode(fe),fe.children.forEach(Ce=>this._walk(P,Ce)),P.closeNode(fe)),P}static _collapse(P){typeof P!="string"&&P.children&&(P.children.every(fe=>typeof fe=="string")?P.children=[P.children.join("")]:P.children.forEach(fe=>{h._collapse(fe)}))}}class b extends h{constructor(P){super(),this.options=P}addText(P){P!==""&&this.add(P)}startScope(P){this.openNode(P)}endScope(){this.closeNode()}__addSublanguage(P,fe){const Ce=P.root;fe&&(Ce.scope=`language:${fe}`),this.add(Ce)}toHTML(){return new p(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function g(C){return C?typeof C=="string"?C:C.source:null}function _(C){return O("(?=",C,")")}function E(C){return O("(?:",C,")*")}function x(C){return O("(?:",C,")?")}function O(...C){return C.map(fe=>g(fe)).join("")}function R(C){const P=C[C.length-1];return typeof P=="object"&&P.constructor===Object?(C.splice(C.length-1,1),P):{}}function A(...C){return"("+(R(C).capture?"":"?:")+C.map(Ce=>g(Ce)).join("|")+")"}function B(C){return new RegExp(C.toString()+"|").exec("").length-1}function I(C,P){const fe=C&&C.exec(P);return fe&&fe.index===0}const $=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function X(C,{joinWith:P}){let fe=0;return C.map(Ce=>{fe+=1;const pt=fe;let st=g(Ce),he="";for(;st.length>0;){const de=$.exec(st);if(!de){he+=st;break}he+=st.substring(0,de.index),st=st.substring(de.index+de[0].length),de[0][0]==="\\"&&de[1]?he+="\\"+String(Number(de[1])+pt):(he+=de[0],de[0]==="("&&fe++)}return he}).map(Ce=>`(${Ce})`).join(P)}const N=/\b\B/,Y="[a-zA-Z]\\w*",ee="[a-zA-Z_]\\w*",ue="\\b\\d+(\\.\\d+)?",U="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",ae="\\b(0b[01]+)",re="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",we=(C={})=>{const P=/^#![ ]*\//;return C.binary&&(C.begin=O(P,/.*\b/,C.binary,/\b.*/)),o({scope:"meta",begin:P,end:/$/,relevance:0,"on:begin":(fe,Ce)=>{fe.index!==0&&Ce.ignoreMatch()}},C)},oe={begin:"\\\\[\\s\\S]",relevance:0},W={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[oe]},z={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[oe]},J={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},ne=function(C,P,fe={}){const Ce=o({scope:"comment",begin:C,end:P,contains:[]},fe);Ce.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const pt=A("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return Ce.contains.push({begin:O(/[ ]+/,"(",pt,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Ce},ye=ne("//","$"),T=ne("/\\*","\\*/"),k=ne("#","$"),j={scope:"number",begin:ue,relevance:0},S={scope:"number",begin:U,relevance:0},ce={scope:"number",begin:ae,relevance:0},_e={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[oe,{begin:/\[/,end:/\]/,relevance:0,contains:[oe]}]},me={scope:"title",begin:Y,relevance:0},ze={scope:"title",begin:ee,relevance:0},Je={begin:"\\.\\s*"+ee,relevance:0};var zt=Object.freeze({__proto__:null,APOS_STRING_MODE:W,BACKSLASH_ESCAPE:oe,BINARY_NUMBER_MODE:ce,BINARY_NUMBER_RE:ae,COMMENT:ne,C_BLOCK_COMMENT_MODE:T,C_LINE_COMMENT_MODE:ye,C_NUMBER_MODE:S,C_NUMBER_RE:U,END_SAME_AS_BEGIN:function(C){return Object.assign(C,{"on:begin":(P,fe)=>{fe.data._beginMatch=P[1]},"on:end":(P,fe)=>{fe.data._beginMatch!==P[1]&&fe.ignoreMatch()}})},HASH_COMMENT_MODE:k,IDENT_RE:Y,MATCH_NOTHING_RE:N,METHOD_GUARD:Je,NUMBER_MODE:j,NUMBER_RE:ue,PHRASAL_WORDS_MODE:J,QUOTE_STRING_MODE:z,REGEXP_MODE:_e,RE_STARTERS_RE:re,SHEBANG:we,TITLE_MODE:me,UNDERSCORE_IDENT_RE:ee,UNDERSCORE_TITLE_MODE:ze});function hn(C,P){C.input[C.index-1]==="."&&P.ignoreMatch()}function ti(C,P){C.className!==void 0&&(C.scope=C.className,delete C.className)}function Ti(C,P){P&&C.beginKeywords&&(C.begin="\\b("+C.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",C.__beforeBegin=hn,C.keywords=C.keywords||C.beginKeywords,delete C.beginKeywords,C.relevance===void 0&&(C.relevance=0))}function mn(C,P){Array.isArray(C.illegal)&&(C.illegal=A(...C.illegal))}function Yn(C,P){if(C.match){if(C.begin||C.end)throw new Error("begin & end are not supported with match");C.begin=C.match,delete C.match}}function Ye(C,P){C.relevance===void 0&&(C.relevance=1)}const Un=(C,P)=>{if(!C.beforeMatch)return;if(C.starts)throw new Error("beforeMatch cannot be used with starts");const fe=Object.assign({},C);Object.keys(C).forEach(Ce=>{delete C[Ce]}),C.keywords=fe.keywords,C.begin=O(fe.beforeMatch,_(fe.begin)),C.starts={relevance:0,contains:[Object.assign(fe,{endsParent:!0})]},C.relevance=0,delete fe.beforeMatch},wn=["of","and","for","in","not","or","if","then","parent","list","value"],Kn="keyword";function ni(C,P,fe=Kn){const Ce=Object.create(null);return typeof C=="string"?pt(fe,C.split(" ")):Array.isArray(C)?pt(fe,C):Object.keys(C).forEach(function(st){Object.assign(Ce,ni(C[st],P,st))}),Ce;function pt(st,he){P&&(he=he.map(de=>de.toLowerCase())),he.forEach(function(de){const ke=de.split("|");Ce[ke[0]]=[st,ta(ke[0],ke[1])]})}}function ta(C,P){return P?Number(P):vl(C)?0:1}function vl(C){return wn.includes(C.toLowerCase())}const wa={},yt=C=>{console.error(C)},ka=(C,...P)=>{console.log(`WARN: ${C}`,...P)},K=(C,P)=>{wa[`${C}/${P}`]||(console.log(`Deprecated as of ${C}. ${P}`),wa[`${C}/${P}`]=!0)},le=new Error;function Te(C,P,{key:fe}){let Ce=0;const pt=C[fe],st={},he={};for(let de=1;de<=P.length;de++)he[de+Ce]=pt[de],st[de+Ce]=!0,Ce+=B(P[de-1]);C[fe]=he,C[fe]._emit=st,C[fe]._multi=!0}function Be(C){if(Array.isArray(C.begin)){if(C.skip||C.excludeBegin||C.returnBegin)throw yt("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),le;if(typeof C.beginScope!="object"||C.beginScope===null)throw yt("beginScope must be object"),le;Te(C,C.begin,{key:"beginScope"}),C.begin=X(C.begin,{joinWith:""})}}function Xe(C){if(Array.isArray(C.end)){if(C.skip||C.excludeEnd||C.returnEnd)throw yt("skip, excludeEnd, returnEnd not compatible with endScope: {}"),le;if(typeof C.endScope!="object"||C.endScope===null)throw yt("endScope must be object"),le;Te(C,C.end,{key:"endScope"}),C.end=X(C.end,{joinWith:""})}}function Qt(C){C.scope&&typeof C.scope=="object"&&C.scope!==null&&(C.beginScope=C.scope,delete C.scope)}function Hn(C){Qt(C),typeof C.beginScope=="string"&&(C.beginScope={_wrap:C.beginScope}),typeof C.endScope=="string"&&(C.endScope={_wrap:C.endScope}),Be(C),Xe(C)}function Ut(C){function P(he,de){return new RegExp(g(he),"m"+(C.case_insensitive?"i":"")+(C.unicodeRegex?"u":"")+(de?"g":""))}class fe{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(de,ke){ke.position=this.position++,this.matchIndexes[this.matchAt]=ke,this.regexes.push([ke,de]),this.matchAt+=B(de)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const de=this.regexes.map(ke=>ke[1]);this.matcherRe=P(X(de,{joinWith:"|"}),!0),this.lastIndex=0}exec(de){this.matcherRe.lastIndex=this.lastIndex;const ke=this.matcherRe.exec(de);if(!ke)return null;const xt=ke.findIndex((ii,Oa)=>Oa>0&&ii!==void 0),gt=this.matchIndexes[xt];return ke.splice(0,xt),Object.assign(ke,gt)}}class Ce{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(de){if(this.multiRegexes[de])return this.multiRegexes[de];const ke=new fe;return this.rules.slice(de).forEach(([xt,gt])=>ke.addRule(xt,gt)),ke.compile(),this.multiRegexes[de]=ke,ke}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(de,ke){this.rules.push([de,ke]),ke.type==="begin"&&this.count++}exec(de){const ke=this.getMatcher(this.regexIndex);ke.lastIndex=this.lastIndex;let xt=ke.exec(de);if(this.resumingScanAtSamePosition()&&!(xt&&xt.index===this.lastIndex)){const gt=this.getMatcher(0);gt.lastIndex=this.lastIndex+1,xt=gt.exec(de)}return xt&&(this.regexIndex+=xt.position+1,this.regexIndex===this.count&&this.considerAll()),xt}}function pt(he){const de=new Ce;return he.contains.forEach(ke=>de.addRule(ke.begin,{rule:ke,type:"begin"})),he.terminatorEnd&&de.addRule(he.terminatorEnd,{type:"end"}),he.illegal&&de.addRule(he.illegal,{type:"illegal"}),de}function st(he,de){const ke=he;if(he.isCompiled)return ke;[ti,Yn,Hn,Un].forEach(gt=>gt(he,de)),C.compilerExtensions.forEach(gt=>gt(he,de)),he.__beforeBegin=null,[Ti,mn,Ye].forEach(gt=>gt(he,de)),he.isCompiled=!0;let xt=null;return typeof he.keywords=="object"&&he.keywords.$pattern&&(he.keywords=Object.assign({},he.keywords),xt=he.keywords.$pattern,delete he.keywords.$pattern),xt=xt||/\w+/,he.keywords&&(he.keywords=ni(he.keywords,C.case_insensitive)),ke.keywordPatternRe=P(xt,!0),de&&(he.begin||(he.begin=/\B|\b/),ke.beginRe=P(ke.begin),!he.end&&!he.endsWithParent&&(he.end=/\B|\b/),he.end&&(ke.endRe=P(ke.end)),ke.terminatorEnd=g(ke.end)||"",he.endsWithParent&&de.terminatorEnd&&(ke.terminatorEnd+=(he.end?"|":"")+de.terminatorEnd)),he.illegal&&(ke.illegalRe=P(he.illegal)),he.contains||(he.contains=[]),he.contains=[].concat(...he.contains.map(function(gt){return Yt(gt==="self"?he:gt)})),he.contains.forEach(function(gt){st(gt,ke)}),he.starts&&st(he.starts,de),ke.matcher=pt(ke),ke}if(C.compilerExtensions||(C.compilerExtensions=[]),C.contains&&C.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return C.classNameAliases=o(C.classNameAliases||{}),st(C)}function _t(C){return C?C.endsWithParent||_t(C.starts):!1}function Yt(C){return C.variants&&!C.cachedVariants&&(C.cachedVariants=C.variants.map(function(P){return o(C,{variants:null},P)})),C.cachedVariants?C.cachedVariants:_t(C)?o(C,{starts:C.starts?o(C.starts):null}):Object.isFrozen(C)?o(C):C}var We="11.11.1";class Vn extends Error{constructor(P,fe){super(P),this.name="HTMLInjectionError",this.html=fe}}const $t=l,Mr=o,na=Symbol("nomatch"),Ca=7,ia=function(C){const P=Object.create(null),fe=Object.create(null),Ce=[];let pt=!0;const st="Could not find the language '{}', did you forget to load/include a language module?",he={disableAutodetect:!0,name:"Plain text",contains:[]};let de={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:b};function ke(te){return de.noHighlightRe.test(te)}function xt(te){let Ee=te.className+" ";Ee+=te.parentNode?te.parentNode.className:"";const Ie=de.languageDetectRe.exec(Ee);if(Ie){const et=Jt(Ie[1]);return et||(ka(st.replace("{}",Ie[1])),ka("Falling back to no-highlight mode for this block.",te)),et?Ie[1]:"no-highlight"}return Ee.split(/\s+/).find(et=>ke(et)||Jt(et))}function gt(te,Ee,Ie){let et="",Nt="";typeof Ee=="object"?(et=te,Ie=Ee.ignoreIllegals,Nt=Ee.language):(K("10.7.0","highlight(lang, code, ...args) has been deprecated."),K("10.7.0",`Please use highlight(code, options) instead.
82
82
  https://github.com/highlightjs/highlight.js/issues/2277`),Nt=te,et=Ee),Ie===void 0&&(Ie=!0);const Vt={code:et,language:Nt};la("before:highlight",Vt);const gn=Vt.result?Vt.result:ii(Vt.language,Vt.code,Ie);return gn.code=Vt.code,la("after:highlight",gn),gn}function ii(te,Ee,Ie,et){const Nt=Object.create(null);function Vt(se,ge){return se.keywords[ge]}function gn(){if(!Ae.keywords){Ct.addText(tt);return}let se=0;Ae.keywordPatternRe.lastIndex=0;let ge=Ae.keywordPatternRe.exec(tt),Me="";for(;ge;){Me+=tt.substring(se,ge.index);const Fe=Ht.case_insensitive?ge[0].toLowerCase():ge[0],Et=Vt(Ae,Fe);if(Et){const[kn,wl]=Et;if(Ct.addText(Me),Me="",Nt[Fe]=(Nt[Fe]||0)+1,Nt[Fe]<=Ca&&(ki+=wl),kn.startsWith("_"))Me+=ge[0];else{const Ur=Ht.classNameAliases[kn]||kn;bn(ge[0],Ur)}}else Me+=ge[0];se=Ae.keywordPatternRe.lastIndex,ge=Ae.keywordPatternRe.exec(tt)}Me+=tt.substring(se),Ct.addText(Me)}function an(){if(tt==="")return;let se=null;if(typeof Ae.subLanguage=="string"){if(!P[Ae.subLanguage]){Ct.addText(tt);return}se=ii(Ae.subLanguage,tt,!0,Ir[Ae.subLanguage]),Ir[Ae.subLanguage]=se._top}else se=Ma(tt,Ae.subLanguage.length?Ae.subLanguage:null);Ae.relevance>0&&(ki+=se.relevance),Ct.__addSublanguage(se._emitter,se.language)}function ft(){Ae.subLanguage!=null?an():gn(),tt=""}function bn(se,ge){se!==""&&(Ct.startScope(ge),Ct.addText(se),Ct.endScope())}function zr(se,ge){let Me=1;const Fe=ge.length-1;for(;Me<=Fe;){if(!se._emit[Me]){Me++;continue}const Et=Ht.classNameAliases[se[Me]]||se[Me],kn=ge[Me];Et?bn(kn,Et):(tt=kn,gn(),tt=""),Me++}}function Da(se,ge){return se.scope&&typeof se.scope=="string"&&Ct.openNode(Ht.classNameAliases[se.scope]||se.scope),se.beginScope&&(se.beginScope._wrap?(bn(tt,Ht.classNameAliases[se.beginScope._wrap]||se.beginScope._wrap),tt=""):se.beginScope._multi&&(zr(se.beginScope,ge),tt="")),Ae=Object.create(se,{parent:{value:Ae}}),Ae}function Tl(se,ge,Me){let Fe=I(se.endRe,Me);if(Fe){if(se["on:end"]){const Et=new a(se);se["on:end"](ge,Et),Et.isMatchIgnored&&(Fe=!1)}if(Fe){for(;se.endsParent&&se.parent;)se=se.parent;return se}}if(se.endsWithParent)return Tl(se.parent,ge,Me)}function La(se){return Ae.matcher.regexIndex===0?(tt+=se[0],1):(Ci=!0,0)}function ms(se){const ge=se[0],Me=se.rule,Fe=new a(Me),Et=[Me.__beforeBegin,Me["on:begin"]];for(const kn of Et)if(kn&&(kn(se,Fe),Fe.isMatchIgnored))return La(ge);return Me.skip?tt+=ge:(Me.excludeBegin&&(tt+=ge),ft(),!Me.returnBegin&&!Me.excludeBegin&&(tt=ge)),Da(Me,se),Me.returnBegin?0:ge.length}function ln(se){const ge=se[0],Me=Ee.substring(se.index),Fe=Tl(Ae,se,Me);if(!Fe)return na;const Et=Ae;Ae.endScope&&Ae.endScope._wrap?(ft(),bn(ge,Ae.endScope._wrap)):Ae.endScope&&Ae.endScope._multi?(ft(),zr(Ae.endScope,se)):Et.skip?tt+=ge:(Et.returnEnd||Et.excludeEnd||(tt+=ge),ft(),Et.excludeEnd&&(tt=ge));do Ae.scope&&Ct.closeNode(),!Ae.skip&&!Ae.subLanguage&&(ki+=Ae.relevance),Ae=Ae.parent;while(Ae!==Fe.parent);return Fe.starts&&Da(Fe.starts,se),Et.returnEnd?0:ge.length}function Nl(){const se=[];for(let ge=Ae;ge!==Ht;ge=ge.parent)ge.scope&&se.unshift(ge.scope);se.forEach(ge=>Ct.openNode(ge))}let ra={};function za(se,ge){const Me=ge&&ge[0];if(tt+=se,Me==null)return ft(),0;if(ra.type==="begin"&&ge.type==="end"&&ra.index===ge.index&&Me===""){if(tt+=Ee.slice(ge.index,ge.index+1),!pt){const Fe=new Error(`0 width match regex (${te})`);throw Fe.languageName=te,Fe.badRule=ra.rule,Fe}return 1}if(ra=ge,ge.type==="begin")return ms(ge);if(ge.type==="illegal"&&!Ie){const Fe=new Error('Illegal lexeme "'+Me+'" for mode "'+(Ae.scope||"<unnamed>")+'"');throw Fe.mode=Ae,Fe}else if(ge.type==="end"){const Fe=ln(ge);if(Fe!==na)return Fe}if(ge.type==="illegal"&&Me==="")return tt+=`
83
- `,1;if(Al>1e5&&Al>ge.index*3)throw new Error("potential infinite loop, way more iterations than matches");return tt+=Me,Me.length}const Ht=Jt(te);if(!Ht)throw yt(st.replace("{}",te)),new Error('Unknown language: "'+te+'"');const Br=Ut(Ht);let Ba="",Ae=et||Br;const Ir={},Ct=new de.__emitter(de);Nl();let tt="",ki=0,ri=0,Al=0,Ci=!1;try{if(Ht.__emitTokens)Ht.__emitTokens(Ee,Ct);else{for(Ae.matcher.considerAll();;){Al++,Ci?Ci=!1:Ae.matcher.considerAll(),Ae.matcher.lastIndex=ri;const se=Ae.matcher.exec(Ee);if(!se)break;const ge=Ee.substring(ri,se.index),Me=za(ge,se);ri=se.index+Me}za(Ee.substring(ri))}return Ct.finalize(),Ba=Ct.toHTML(),{language:te,value:Ba,relevance:ki,illegal:!1,_emitter:Ct,_top:Ae}}catch(se){if(se.message&&se.message.includes("Illegal"))return{language:te,value:$t(Ee),illegal:!0,relevance:0,_illegalBy:{message:se.message,index:ri,context:Ee.slice(ri-100,ri+100),mode:se.mode,resultSoFar:Ba},_emitter:Ct};if(pt)return{language:te,value:$t(Ee),illegal:!1,relevance:0,errorRaised:se,_emitter:Ct,_top:Ae};throw se}}function Oa(te){const Ee={value:$t(te),illegal:!1,relevance:0,_top:he,_emitter:new de.__emitter(de)};return Ee._emitter.addText(te),Ee}function Ma(te,Ee){Ee=Ee||de.languages||Object.keys(P);const Ie=Oa(te),et=Ee.filter(Jt).filter(Ai).map(ft=>ii(ft,te,!1));et.unshift(Ie);const Nt=et.sort((ft,bn)=>{if(ft.relevance!==bn.relevance)return bn.relevance-ft.relevance;if(ft.language&&bn.language){if(Jt(ft.language).supersetOf===bn.language)return 1;if(Jt(bn.language).supersetOf===ft.language)return-1}return 0}),[Vt,gn]=Nt,an=Vt;return an.secondBest=gn,an}function Xn(te,Ee,Ie){const et=Ee&&fe[Ee]||Ie;te.classList.add("hljs"),te.classList.add(`language-${et}`)}function Tt(te){let Ee=null;const Ie=xt(te);if(ke(Ie))return;if(la("before:highlightElement",{el:te,language:Ie}),te.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",te);return}if(te.children.length>0&&(de.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(te)),de.throwUnescapedHTML))throw new Vn("One of your code blocks includes unescaped HTML.",te.innerHTML);Ee=te;const et=Ee.textContent,Nt=Ie?gt(et,{language:Ie,ignoreIllegals:!0}):Ma(et);te.innerHTML=Nt.value,te.dataset.highlighted="yes",Xn(te,Ie,Nt.language),te.result={language:Nt.language,re:Nt.relevance,relevance:Nt.relevance},Nt.secondBest&&(te.secondBest={language:Nt.secondBest.language,relevance:Nt.secondBest.relevance}),la("after:highlightElement",{el:te,result:Nt,text:et})}function Kt(te){de=Mr(de,te)}const Ni=()=>{Ra(),K("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Sl(){Ra(),K("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Rr=!1;function Ra(){function te(){Ra()}if(document.readyState==="loading"){Rr||window.addEventListener("DOMContentLoaded",te,!1),Rr=!0;return}document.querySelectorAll(de.cssSelector).forEach(Tt)}function Dr(te,Ee){let Ie=null;try{Ie=Ee(C)}catch(et){if(yt("Language definition for '{}' could not be registered.".replace("{}",te)),pt)yt(et);else throw et;Ie=he}Ie.name||(Ie.name=te),P[te]=Ie,Ie.rawDefinition=Ee.bind(null,C),Ie.aliases&&ai(Ie.aliases,{languageName:te})}function aa(te){delete P[te];for(const Ee of Object.keys(fe))fe[Ee]===te&&delete fe[Ee]}function xl(){return Object.keys(P)}function Jt(te){return te=(te||"").toLowerCase(),P[te]||P[fe[te]]}function ai(te,{languageName:Ee}){typeof te=="string"&&(te=[te]),te.forEach(Ie=>{fe[Ie.toLowerCase()]=Ee})}function Ai(te){const Ee=Jt(te);return Ee&&!Ee.disableAutodetect}function wi(te){te["before:highlightBlock"]&&!te["before:highlightElement"]&&(te["before:highlightElement"]=Ee=>{te["before:highlightBlock"](Object.assign({block:Ee.el},Ee))}),te["after:highlightBlock"]&&!te["after:highlightElement"]&&(te["after:highlightElement"]=Ee=>{te["after:highlightBlock"](Object.assign({block:Ee.el},Ee))})}function kt(te){wi(te),Ce.push(te)}function Lr(te){const Ee=Ce.indexOf(te);Ee!==-1&&Ce.splice(Ee,1)}function la(te,Ee){const Ie=te;Ce.forEach(function(et){et[Ie]&&et[Ie](Ee)})}function li(te){return K("10.7.0","highlightBlock will be removed entirely in v12.0"),K("10.7.0","Please use highlightElement now."),Tt(te)}Object.assign(C,{highlight:gt,highlightAuto:Ma,highlightAll:Ra,highlightElement:Tt,highlightBlock:li,configure:Kt,initHighlighting:Ni,initHighlightingOnLoad:Sl,registerLanguage:Dr,unregisterLanguage:aa,listLanguages:xl,getLanguage:Jt,registerAliases:ai,autoDetection:Ai,inherit:Mr,addPlugin:kt,removePlugin:Lr}),C.debugMode=function(){pt=!1},C.safeMode=function(){pt=!0},C.versionString=We,C.regex={concat:O,lookahead:_,either:A,optional:x,anyNumberOfTimes:E};for(const te in zt)typeof zt[te]=="object"&&n(zt[te]);return Object.assign(C,zt),C},nn=ia({});return nn.newInstance=()=>ia({}),Gc=nn,nn.HighlightJS=nn,nn.default=nn,Gc}var hA=pA();const mA=af(hA),dg={},gA="hljs-";function bA(n){const a=mA.newInstance();return n&&f(n),{highlight:l,highlightAuto:o,listLanguages:s,register:f,registerAlias:c,registered:p};function l(m,h,b){const g=b||dg,_=typeof g.prefix=="string"?g.prefix:gA;if(!a.getLanguage(m))throw new Error("Unknown language: `"+m+"` is not registered");a.configure({__emitter:yA,classPrefix:_});const E=a.highlight(h,{ignoreIllegals:!0,language:m});if(E.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:E.errorRaised});const x=E._emitter.root,O=x.data;return O.language=E.language,O.relevance=E.relevance,x}function o(m,h){const g=(h||dg).subset||s();let _=-1,E=0,x;for(;++_<g.length;){const O=g[_];if(!a.getLanguage(O))continue;const R=l(O,m,h);R.data&&R.data.relevance!==void 0&&R.data.relevance>E&&(E=R.data.relevance,x=R)}return x||{type:"root",children:[],data:{language:void 0,relevance:E}}}function s(){return a.listLanguages()}function f(m,h){if(typeof m=="string")a.registerLanguage(m,h);else{let b;for(b in m)Object.hasOwn(m,b)&&a.registerLanguage(b,m[b])}}function c(m,h){if(typeof m=="string")a.registerAliases(typeof h=="string"?h:[...h],{languageName:m});else{let b;for(b in m)if(Object.hasOwn(m,b)){const g=m[b];a.registerAliases(typeof g=="string"?g:[...g],{languageName:b})}}}function p(m){return!!a.getLanguage(m)}}class yA{constructor(a){this.options=a,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(a){if(a==="")return;const l=this.stack[this.stack.length-1],o=l.children[l.children.length-1];o&&o.type==="text"?o.value+=a:l.children.push({type:"text",value:a})}startScope(a){this.openNode(String(a))}endScope(){this.closeNode()}__addSublanguage(a,l){const o=this.stack[this.stack.length-1],s=a.root.children;l?o.children.push({type:"element",tagName:"span",properties:{className:[l]},children:s}):o.children.push(...s)}openNode(a){const l=this,o=a.split(".").map(function(c,p){return p?c+"_".repeat(p):l.options.classPrefix+c}),s=this.stack[this.stack.length-1],f={type:"element",tagName:"span",properties:{className:o},children:[]};s.children.push(f),this.stack.push(f)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const EA={};function _A(n){const a=n||EA,l=a.aliases,o=a.detect||!1,s=a.languages||dA,f=a.plainText,c=a.prefix,p=a.subset;let m="hljs";const h=bA(s);if(l&&h.registerAlias(l),c){const b=c.indexOf("-");m=b===-1?c:c.slice(0,b)}return function(b,g){hs(b,"element",function(_,E,x){if(_.tagName!=="code"||!x||x.type!=="element"||x.tagName!=="pre")return;const O=vA(_);if(O===!1||!O&&!o||O&&f&&f.includes(O))return;Array.isArray(_.properties.className)||(_.properties.className=[]),_.properties.className.includes(m)||_.properties.className.unshift(m);const R=HT(_,{whitespace:"pre"});let A;try{A=O?h.highlight(O,R,{prefix:c}):h.highlightAuto(R,{prefix:c,subset:p})}catch(B){const I=B;if(O&&/Unknown language/.test(I.message)){g.message("Cannot highlight as `"+O+"`, it’s not registered",{ancestors:[x,_],cause:I,place:_.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw I}!O&&A.data&&A.data.language&&_.properties.className.push("language-"+A.data.language),A.children.length>0&&(_.children=A.children)})}}function vA(n){const a=n.properties.className;let l=-1;if(!Array.isArray(a))return;let o;for(;++l<a.length;){const s=String(a[l]);if(s==="no-highlight"||s==="nohighlight")return!1;!o&&s.slice(0,5)==="lang-"&&(o=s.slice(5)),!o&&s.slice(0,9)==="language-"&&(o=s.slice(9))}return o}function pg(n,a){let l=n.nodeType===Node.TEXT_NODE?n.parentElement:n;for(;l&&!l.hasAttribute("data-line-start");)l=l.parentElement;if(!l)return null;const o=Number(l.getAttribute("data-line-start"));if(!Number.isFinite(o))return null;const c=((n.nodeType===Node.TEXT_NODE?n.data:"").slice(0,a).match(/\n/g)||[]).length;return o+c}function SA(n){if(n.isCollapsed)return null;const{anchorNode:a,anchorOffset:l,focusNode:o,focusOffset:s}=n;if(!a||!o)return null;const f=pg(a,l),c=pg(o,s);if(f==null||c==null)return null;let p=Math.min(f,c),m=Math.max(f,c);const h=n.toString();if(h.endsWith(`
84
- `)&&p<m){const g=(h.replace(/\n+$/,"").match(/\n/g)||[]).length;m=p+g}return{startLine:p,endLine:m}}const xA=({containerRef:n,onSubmitComment:a})=>{const[l,o]=Se.useState(null),[s,f]=Se.useState(!1),[c,p]=Se.useState(!1),[m,h]=Se.useState(""),[b,g]=Se.useState(null),_=Se.useRef(null),E=Se.useRef(null),x=Se.useRef(!1),O=Se.useCallback(X=>{if(E.current&&(E.current.remove(),E.current=null),!X||!n.current)return;const N=X.getClientRects();if(N.length===0)return;const Y=n.current.getBoundingClientRect(),ee=document.createElement("div");ee.className="selection-highlight-container",ee.style.position="absolute",ee.style.top="0",ee.style.left="0",ee.style.pointerEvents="none";for(let ue=0;ue<N.length;ue++){const U=N[ue],ae=document.createElement("div");ae.className="selection-highlight",ae.style.position="absolute",ae.style.left=`${U.left-Y.left+n.current.scrollLeft}px`,ae.style.top=`${U.top-Y.top+n.current.scrollTop}px`,ae.style.width=`${U.width}px`,ae.style.height=`${U.height}px`,ee.appendChild(ae)}n.current.style.position="relative",n.current.appendChild(ee),E.current=ee},[n]),R=Se.useCallback(()=>{const X=window.getSelection();if(!X||X.isCollapsed||!n.current){c||(f(!1),g(null),O(null));return}const N=X.anchorNode;if(!N||!n.current.contains(N)){c||(f(!1),g(null),O(null));return}const Y=X.getRangeAt(0),ee=Y.getBoundingClientRect(),ue=SA(X);g({range:Y.cloneRange(),text:X.toString(),startLine:(ue==null?void 0:ue.startLine)??1,endLine:(ue==null?void 0:ue.endLine)??1}),o({x:ee.left+ee.width/2,y:ee.top-8}),f(!0)},[n,c,O]),A=X=>{if(X.preventDefault(),X.stopPropagation(),b){O(b.range);const N=b.range.getClientRects();if(N.length>0){let Y=N[0];for(let ee=1;ee<N.length;ee++)N[ee].top<Y.top&&(Y=N[ee]);o({x:Y.left,y:Y.top-8})}}p(!0),x.current=!0,setTimeout(()=>{var N;(N=_.current)==null||N.focus()},0)},B=()=>{m.trim()&&a&&b&&a(m.trim(),b.text,b.startLine,b.endLine),h(""),p(!1),x.current=!1,f(!1),g(null),O(null)},I=()=>{h(""),p(!1),x.current=!1,f(!1),g(null),O(null)},$=X=>{X.key==="Enter"&&(X.metaKey||X.ctrlKey)?(X.preventDefault(),B()):X.key==="Escape"&&I()};return Se.useEffect(()=>{const X=Y=>{setTimeout(()=>{var ee;(ee=Y.target)!=null&&ee.closest(".selection-popover")||x.current||R()},10)},N=Y=>{var ee;(ee=Y.target)!=null&&ee.closest(".selection-popover")||x.current||(f(!1),g(null),O(null))};return document.addEventListener("mouseup",X),document.addEventListener("mousedown",N),()=>{document.removeEventListener("mouseup",X),document.removeEventListener("mousedown",N)}},[R,O]),Se.useEffect(()=>()=>{E.current&&E.current.remove()},[]),!s||!l?null:L.jsx("div",{className:"selection-popover",style:{position:"fixed",left:l.x,top:l.y,transform:c?"translateY(-100%)":"translate(-50%, -100%)"},children:c?L.jsxs("div",{className:"comment-form",children:[L.jsx("textarea",{ref:_,className:"comment-input",placeholder:"Add a comment...",value:m,onChange:X=>h(X.target.value),onKeyDown:$,rows:3}),L.jsxs("div",{className:"comment-actions",children:[L.jsx("button",{className:"comment-cancel",onClick:I,children:"Cancel"}),L.jsx("button",{className:"comment-submit",onClick:B,disabled:!m.trim(),children:"Submit"})]})]}):L.jsx("button",{className:"popover-button",onMouseDown:X=>X.preventDefault(),onClick:A,children:"Comment"})})},TA=({comments:n,filename:a,onDeleteComment:l,onDeleteAll:o,onClose:s,onLineClick:f,onEditComment:c})=>{const[p,m]=Se.useState(null),[h,b]=Se.useState(!1),[g,_]=Se.useState(null),[E,x]=Se.useState(""),O=N=>{const Y=N.startLine===N.endLine?`L${N.startLine}`:`L${N.startLine}-${N.endLine}`;return`${a}:${Y}
83
+ `,1;if(Al>1e5&&Al>ge.index*3)throw new Error("potential infinite loop, way more iterations than matches");return tt+=Me,Me.length}const Ht=Jt(te);if(!Ht)throw yt(st.replace("{}",te)),new Error('Unknown language: "'+te+'"');const Br=Ut(Ht);let Ba="",Ae=et||Br;const Ir={},Ct=new de.__emitter(de);Nl();let tt="",ki=0,ri=0,Al=0,Ci=!1;try{if(Ht.__emitTokens)Ht.__emitTokens(Ee,Ct);else{for(Ae.matcher.considerAll();;){Al++,Ci?Ci=!1:Ae.matcher.considerAll(),Ae.matcher.lastIndex=ri;const se=Ae.matcher.exec(Ee);if(!se)break;const ge=Ee.substring(ri,se.index),Me=za(ge,se);ri=se.index+Me}za(Ee.substring(ri))}return Ct.finalize(),Ba=Ct.toHTML(),{language:te,value:Ba,relevance:ki,illegal:!1,_emitter:Ct,_top:Ae}}catch(se){if(se.message&&se.message.includes("Illegal"))return{language:te,value:$t(Ee),illegal:!0,relevance:0,_illegalBy:{message:se.message,index:ri,context:Ee.slice(ri-100,ri+100),mode:se.mode,resultSoFar:Ba},_emitter:Ct};if(pt)return{language:te,value:$t(Ee),illegal:!1,relevance:0,errorRaised:se,_emitter:Ct,_top:Ae};throw se}}function Oa(te){const Ee={value:$t(te),illegal:!1,relevance:0,_top:he,_emitter:new de.__emitter(de)};return Ee._emitter.addText(te),Ee}function Ma(te,Ee){Ee=Ee||de.languages||Object.keys(P);const Ie=Oa(te),et=Ee.filter(Jt).filter(Ai).map(ft=>ii(ft,te,!1));et.unshift(Ie);const Nt=et.sort((ft,bn)=>{if(ft.relevance!==bn.relevance)return bn.relevance-ft.relevance;if(ft.language&&bn.language){if(Jt(ft.language).supersetOf===bn.language)return 1;if(Jt(bn.language).supersetOf===ft.language)return-1}return 0}),[Vt,gn]=Nt,an=Vt;return an.secondBest=gn,an}function Xn(te,Ee,Ie){const et=Ee&&fe[Ee]||Ie;te.classList.add("hljs"),te.classList.add(`language-${et}`)}function Tt(te){let Ee=null;const Ie=xt(te);if(ke(Ie))return;if(la("before:highlightElement",{el:te,language:Ie}),te.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",te);return}if(te.children.length>0&&(de.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(te)),de.throwUnescapedHTML))throw new Vn("One of your code blocks includes unescaped HTML.",te.innerHTML);Ee=te;const et=Ee.textContent,Nt=Ie?gt(et,{language:Ie,ignoreIllegals:!0}):Ma(et);te.innerHTML=Nt.value,te.dataset.highlighted="yes",Xn(te,Ie,Nt.language),te.result={language:Nt.language,re:Nt.relevance,relevance:Nt.relevance},Nt.secondBest&&(te.secondBest={language:Nt.secondBest.language,relevance:Nt.secondBest.relevance}),la("after:highlightElement",{el:te,result:Nt,text:et})}function Kt(te){de=Mr(de,te)}const Ni=()=>{Ra(),K("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function Sl(){Ra(),K("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let Rr=!1;function Ra(){function te(){Ra()}if(document.readyState==="loading"){Rr||window.addEventListener("DOMContentLoaded",te,!1),Rr=!0;return}document.querySelectorAll(de.cssSelector).forEach(Tt)}function Dr(te,Ee){let Ie=null;try{Ie=Ee(C)}catch(et){if(yt("Language definition for '{}' could not be registered.".replace("{}",te)),pt)yt(et);else throw et;Ie=he}Ie.name||(Ie.name=te),P[te]=Ie,Ie.rawDefinition=Ee.bind(null,C),Ie.aliases&&ai(Ie.aliases,{languageName:te})}function aa(te){delete P[te];for(const Ee of Object.keys(fe))fe[Ee]===te&&delete fe[Ee]}function xl(){return Object.keys(P)}function Jt(te){return te=(te||"").toLowerCase(),P[te]||P[fe[te]]}function ai(te,{languageName:Ee}){typeof te=="string"&&(te=[te]),te.forEach(Ie=>{fe[Ie.toLowerCase()]=Ee})}function Ai(te){const Ee=Jt(te);return Ee&&!Ee.disableAutodetect}function wi(te){te["before:highlightBlock"]&&!te["before:highlightElement"]&&(te["before:highlightElement"]=Ee=>{te["before:highlightBlock"](Object.assign({block:Ee.el},Ee))}),te["after:highlightBlock"]&&!te["after:highlightElement"]&&(te["after:highlightElement"]=Ee=>{te["after:highlightBlock"](Object.assign({block:Ee.el},Ee))})}function kt(te){wi(te),Ce.push(te)}function Lr(te){const Ee=Ce.indexOf(te);Ee!==-1&&Ce.splice(Ee,1)}function la(te,Ee){const Ie=te;Ce.forEach(function(et){et[Ie]&&et[Ie](Ee)})}function li(te){return K("10.7.0","highlightBlock will be removed entirely in v12.0"),K("10.7.0","Please use highlightElement now."),Tt(te)}Object.assign(C,{highlight:gt,highlightAuto:Ma,highlightAll:Ra,highlightElement:Tt,highlightBlock:li,configure:Kt,initHighlighting:Ni,initHighlightingOnLoad:Sl,registerLanguage:Dr,unregisterLanguage:aa,listLanguages:xl,getLanguage:Jt,registerAliases:ai,autoDetection:Ai,inherit:Mr,addPlugin:kt,removePlugin:Lr}),C.debugMode=function(){pt=!1},C.safeMode=function(){pt=!0},C.versionString=We,C.regex={concat:O,lookahead:_,either:A,optional:x,anyNumberOfTimes:E};for(const te in zt)typeof zt[te]=="object"&&n(zt[te]);return Object.assign(C,zt),C},nn=ia({});return nn.newInstance=()=>ia({}),Gc=nn,nn.HighlightJS=nn,nn.default=nn,Gc}var hA=pA();const mA=af(hA),dg={},gA="hljs-";function bA(n){const a=mA.newInstance();return n&&f(n),{highlight:l,highlightAuto:o,listLanguages:s,register:f,registerAlias:c,registered:p};function l(m,h,b){const g=b||dg,_=typeof g.prefix=="string"?g.prefix:gA;if(!a.getLanguage(m))throw new Error("Unknown language: `"+m+"` is not registered");a.configure({__emitter:yA,classPrefix:_});const E=a.highlight(h,{ignoreIllegals:!0,language:m});if(E.errorRaised)throw new Error("Could not highlight with `Highlight.js`",{cause:E.errorRaised});const x=E._emitter.root,O=x.data;return O.language=E.language,O.relevance=E.relevance,x}function o(m,h){const g=(h||dg).subset||s();let _=-1,E=0,x;for(;++_<g.length;){const O=g[_];if(!a.getLanguage(O))continue;const R=l(O,m,h);R.data&&R.data.relevance!==void 0&&R.data.relevance>E&&(E=R.data.relevance,x=R)}return x||{type:"root",children:[],data:{language:void 0,relevance:E}}}function s(){return a.listLanguages()}function f(m,h){if(typeof m=="string")a.registerLanguage(m,h);else{let b;for(b in m)Object.hasOwn(m,b)&&a.registerLanguage(b,m[b])}}function c(m,h){if(typeof m=="string")a.registerAliases(typeof h=="string"?h:[...h],{languageName:m});else{let b;for(b in m)if(Object.hasOwn(m,b)){const g=m[b];a.registerAliases(typeof g=="string"?g:[...g],{languageName:b})}}}function p(m){return!!a.getLanguage(m)}}class yA{constructor(a){this.options=a,this.root={type:"root",children:[],data:{language:void 0,relevance:0}},this.stack=[this.root]}addText(a){if(a==="")return;const l=this.stack[this.stack.length-1],o=l.children[l.children.length-1];o&&o.type==="text"?o.value+=a:l.children.push({type:"text",value:a})}startScope(a){this.openNode(String(a))}endScope(){this.closeNode()}__addSublanguage(a,l){const o=this.stack[this.stack.length-1],s=a.root.children;l?o.children.push({type:"element",tagName:"span",properties:{className:[l]},children:s}):o.children.push(...s)}openNode(a){const l=this,o=a.split(".").map(function(c,p){return p?c+"_".repeat(p):l.options.classPrefix+c}),s=this.stack[this.stack.length-1],f={type:"element",tagName:"span",properties:{className:o},children:[]};s.children.push(f),this.stack.push(f)}closeNode(){this.stack.pop()}finalize(){}toHTML(){return""}}const EA={};function _A(n){const a=n||EA,l=a.aliases,o=a.detect||!1,s=a.languages||dA,f=a.plainText,c=a.prefix,p=a.subset;let m="hljs";const h=bA(s);if(l&&h.registerAlias(l),c){const b=c.indexOf("-");m=b===-1?c:c.slice(0,b)}return function(b,g){hs(b,"element",function(_,E,x){if(_.tagName!=="code"||!x||x.type!=="element"||x.tagName!=="pre")return;const O=vA(_);if(O===!1||!O&&!o||O&&f&&f.includes(O))return;Array.isArray(_.properties.className)||(_.properties.className=[]),_.properties.className.includes(m)||_.properties.className.unshift(m);const R=HT(_,{whitespace:"pre"});let A;try{A=O?h.highlight(O,R,{prefix:c}):h.highlightAuto(R,{prefix:c,subset:p})}catch(B){const I=B;if(O&&/Unknown language/.test(I.message)){g.message("Cannot highlight as `"+O+"`, it’s not registered",{ancestors:[x,_],cause:I,place:_.position,ruleId:"missing-language",source:"rehype-highlight"});return}throw I}!O&&A.data&&A.data.language&&_.properties.className.push("language-"+A.data.language),A.children.length>0&&(_.children=A.children)})}}function vA(n){const a=n.properties.className;let l=-1;if(!Array.isArray(a))return;let o;for(;++l<a.length;){const s=String(a[l]);if(s==="no-highlight"||s==="nohighlight")return!1;!o&&s.slice(0,5)==="lang-"&&(o=s.slice(5)),!o&&s.slice(0,9)==="language-"&&(o=s.slice(9))}return o}function pg(n,a){let l=n.nodeType===Node.TEXT_NODE?n.parentElement:n;for(;l&&!l.hasAttribute("data-line-start");)l=l.parentElement;if(!l)return null;const o=Number(l.getAttribute("data-line-start"));if(!Number.isFinite(o))return null;const c=((n.nodeType===Node.TEXT_NODE?n.data:"").slice(0,a).match(/\n/g)||[]).length;return o+c}function SA(n){if(n.isCollapsed)return null;const{anchorNode:a,anchorOffset:l,focusNode:o,focusOffset:s}=n;if(!a||!o)return null;const f=pg(a,l),c=pg(o,s);if(f==null||c==null)return null;const p=Math.min(f,c);let m=Math.max(f,c);const h=n.toString();if(h.endsWith(`
84
+ `)&&p<m){const g=(h.replace(/\n+$/,"").match(/\n/g)||[]).length;m=p+g}return{startLine:p,endLine:m}}const xA=({containerRef:n,onSubmitComment:a})=>{const[l,o]=Se.useState(null),[s,f]=Se.useState(!1),[c,p]=Se.useState(!1),[m,h]=Se.useState(""),[b,g]=Se.useState(null),_=Se.useRef(null),E=Se.useRef(null),x=Se.useRef(!1),O=Se.useCallback(X=>{if(E.current&&(E.current.remove(),E.current=null),!X||!n.current)return;const N=X.getClientRects();if(N.length===0)return;const Y=n.current.getBoundingClientRect(),ee=document.createElement("div");ee.className="selection-highlight-container",ee.style.position="absolute",ee.style.top="0",ee.style.left="0",ee.style.pointerEvents="none";for(let ue=0;ue<N.length;ue++){const U=N[ue],ae=document.createElement("div");ae.className="selection-highlight",ae.style.position="absolute",ae.style.left=`${U.left-Y.left+n.current.scrollLeft}px`,ae.style.top=`${U.top-Y.top+n.current.scrollTop}px`,ae.style.width=`${U.width}px`,ae.style.height=`${U.height}px`,ee.appendChild(ae)}n.current.style.position="relative",n.current.appendChild(ee),E.current=ee},[n]),R=Se.useCallback(()=>{const X=window.getSelection();if(!X||X.isCollapsed||!n.current){c||(f(!1),g(null),O(null));return}const N=X.anchorNode;if(!N||!n.current.contains(N)){c||(f(!1),g(null),O(null));return}const Y=X.getRangeAt(0),ee=Y.getBoundingClientRect(),ue=SA(X);g({range:Y.cloneRange(),text:X.toString(),startLine:(ue==null?void 0:ue.startLine)??1,endLine:(ue==null?void 0:ue.endLine)??1}),o({x:ee.left+ee.width/2,y:ee.top-8}),f(!0)},[n,c,O]),A=X=>{if(X.preventDefault(),X.stopPropagation(),b){O(b.range);const N=b.range.getClientRects();if(N.length>0){let Y=N[0];for(let ee=1;ee<N.length;ee++)N[ee].top<Y.top&&(Y=N[ee]);o({x:Y.left,y:Y.top-8})}}p(!0),x.current=!0,setTimeout(()=>{var N;(N=_.current)==null||N.focus()},0)},B=()=>{m.trim()&&a&&b&&a(m.trim(),b.text,b.startLine,b.endLine),h(""),p(!1),x.current=!1,f(!1),g(null),O(null)},I=()=>{h(""),p(!1),x.current=!1,f(!1),g(null),O(null)},$=X=>{X.key==="Enter"&&(X.metaKey||X.ctrlKey)?(X.preventDefault(),B()):X.key==="Escape"&&I()};return Se.useEffect(()=>{const X=Y=>{setTimeout(()=>{var ee;(ee=Y.target)!=null&&ee.closest(".selection-popover")||x.current||R()},10)},N=Y=>{var ee;(ee=Y.target)!=null&&ee.closest(".selection-popover")||x.current||(f(!1),g(null),O(null))};return document.addEventListener("mouseup",X),document.addEventListener("mousedown",N),()=>{document.removeEventListener("mouseup",X),document.removeEventListener("mousedown",N)}},[R,O]),Se.useEffect(()=>()=>{E.current&&E.current.remove()},[]),!s||!l?null:D.jsx("div",{className:"selection-popover",style:{position:"fixed",left:l.x,top:l.y,transform:c?"translateY(-100%)":"translate(-50%, -100%)"},children:c?D.jsxs("div",{className:"comment-form",children:[D.jsx("textarea",{ref:_,className:"comment-input",placeholder:"Add a comment...",value:m,onChange:X=>h(X.target.value),onKeyDown:$,rows:3}),D.jsxs("div",{className:"comment-actions",children:[D.jsx("button",{className:"comment-cancel",onClick:I,children:"Cancel"}),D.jsx("button",{className:"comment-submit",onClick:B,disabled:!m.trim(),children:"Submit"})]})]}):D.jsx("button",{className:"popover-button",onMouseDown:X=>X.preventDefault(),onClick:A,children:"Comment"})})},TA=({comments:n,filename:a,onDeleteComment:l,onDeleteAll:o,onClose:s,onLineClick:f,onEditComment:c})=>{const[p,m]=Se.useState(null),[h,b]=Se.useState(!1),[g,_]=Se.useState(null),[E,x]=Se.useState(""),O=N=>{const Y=N.startLine===N.endLine?`L${N.startLine}`:`L${N.startLine}-${N.endLine}`;return`${a}:${Y}
85
85
  ${N.text}`},R=async N=>{try{await navigator.clipboard.writeText(O(N)),m(N.id),setTimeout(()=>m(null),2e3)}catch(Y){console.error("Failed to copy:",Y)}},A=async()=>{const N=n.map(O).join(`
86
86
  ------------------------------------
87
- `);try{await navigator.clipboard.writeText(N),b(!0),setTimeout(()=>b(!1),2e3)}catch(Y){console.error("Failed to copy:",Y)}},B=N=>{_(N.id),x(N.text)},I=()=>{_(null),x("")},$=N=>{E.trim()&&c&&(c(N,E.trim()),_(null),x(""))},X=(N,Y)=>{N.key==="Enter"&&(N.metaKey||N.ctrlKey)?(N.preventDefault(),$(Y)):N.key==="Escape"&&(N.preventDefault(),I())};return n.length===0?L.jsxs("div",{className:"comment-list-empty",children:[L.jsx("p",{children:"No comments yet"}),L.jsx("p",{className:"comment-list-hint",children:"Select text to add a comment"})]}):L.jsxs("div",{className:"comment-list",children:[L.jsxs("div",{className:"comment-list-header",children:[L.jsxs("div",{className:"comment-list-title-wrapper",children:[s&&L.jsx("button",{className:"comment-list-collapse-btn",onClick:s,title:"Hide comments","aria-label":"Hide comments",children:L.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:L.jsx("polyline",{points:"9 18 15 12 9 6"})})}),L.jsxs("h3",{className:"comment-list-title",children:["Comments (",n.length,")"]})]}),L.jsxs("div",{className:"comment-list-actions",children:[L.jsxs("button",{className:`comment-list-copy-all ${h?"copied":""}`,onClick:A,title:h?"Copied!":"Copy all comments",children:[h?L.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:L.jsx("polyline",{points:"20 6 9 17 4 12"})}):L.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[L.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),L.jsx("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"})]}),L.jsx("span",{children:"Copy All"})]}),o&&L.jsxs("button",{className:"comment-list-delete-all",onClick:o,title:"Delete all comments",children:[L.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[L.jsx("polyline",{points:"3 6 5 6 21 6"}),L.jsx("path",{d:"M19 6v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6m3 0V4a2 2 0 012-2h4a2 2 0 012 2v2"})]}),L.jsx("span",{children:"Clear"})]})]})]}),L.jsx("div",{className:"comment-list-items",children:n.map(N=>L.jsxs("div",{className:"comment-item",children:[L.jsxs("div",{className:"comment-item-header",children:[L.jsxs("button",{className:"comment-item-lines",onClick:()=>f==null?void 0:f(N.startLine),title:"Jump to line",children:["Line ",N.startLine===N.endLine?N.startLine:`${N.startLine}-${N.endLine}`]}),L.jsxs("div",{className:"comment-item-actions",children:[c&&g!==N.id&&L.jsx("button",{className:"comment-item-edit",onClick:()=>B(N),title:"Edit comment",children:L.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[L.jsx("path",{d:"M11 4H4a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-7"}),L.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 013 3L12 15l-4 1 1-4 9.5-9.5z"})]})}),L.jsx("button",{className:`comment-item-copy ${p===N.id?"copied":""}`,onClick:()=>R(N),title:p===N.id?"Copied!":"Copy comment",children:p===N.id?L.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:L.jsx("polyline",{points:"20 6 9 17 4 12"})}):L.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[L.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),L.jsx("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"})]})}),l&&L.jsx("button",{className:"comment-item-delete",onClick:()=>l(N.id),title:"Delete comment",children:"×"})]})]}),L.jsxs("div",{className:"comment-item-selection",children:['"',N.selectedText.length>50?N.selectedText.slice(0,50)+"...":N.selectedText,'"']}),g===N.id?L.jsxs("div",{className:"comment-edit-form",children:[L.jsx("textarea",{className:"comment-edit-input",value:E,onChange:Y=>x(Y.target.value),onKeyDown:Y=>X(Y,N.id),rows:3,autoFocus:!0}),L.jsxs("div",{className:"comment-edit-actions",children:[L.jsx("button",{className:"comment-edit-cancel",onClick:I,children:"Cancel"}),L.jsx("button",{className:"comment-edit-save",onClick:()=>$(N.id),disabled:!E.trim(),children:"Save"})]})]}):L.jsx("div",{className:"comment-item-text",children:N.text})]},N.id))})]})},NA={p:({node:n,children:a,...l})=>{var o,s;return L.jsx("p",{"data-line-start":(s=(o=n==null?void 0:n.position)==null?void 0:o.start)==null?void 0:s.line,...l,children:a})},h1:({node:n,children:a,...l})=>{var o,s;return L.jsx("h1",{"data-line-start":(s=(o=n==null?void 0:n.position)==null?void 0:o.start)==null?void 0:s.line,...l,children:a})},h2:({node:n,children:a,...l})=>{var o,s;return L.jsx("h2",{"data-line-start":(s=(o=n==null?void 0:n.position)==null?void 0:o.start)==null?void 0:s.line,...l,children:a})},h3:({node:n,children:a,...l})=>{var o,s;return L.jsx("h3",{"data-line-start":(s=(o=n==null?void 0:n.position)==null?void 0:o.start)==null?void 0:s.line,...l,children:a})},h4:({node:n,children:a,...l})=>{var o,s;return L.jsx("h4",{"data-line-start":(s=(o=n==null?void 0:n.position)==null?void 0:o.start)==null?void 0:s.line,...l,children:a})},h5:({node:n,children:a,...l})=>{var o,s;return L.jsx("h5",{"data-line-start":(s=(o=n==null?void 0:n.position)==null?void 0:o.start)==null?void 0:s.line,...l,children:a})},h6:({node:n,children:a,...l})=>{var o,s;return L.jsx("h6",{"data-line-start":(s=(o=n==null?void 0:n.position)==null?void 0:o.start)==null?void 0:s.line,...l,children:a})},li:({node:n,children:a,...l})=>{var o,s;return L.jsx("li",{"data-line-start":(s=(o=n==null?void 0:n.position)==null?void 0:o.start)==null?void 0:s.line,...l,children:a})},blockquote:({node:n,children:a,...l})=>{var o,s;return L.jsx("blockquote",{"data-line-start":(s=(o=n==null?void 0:n.position)==null?void 0:o.start)==null?void 0:s.line,...l,children:a})},pre:({node:n,children:a,...l})=>{var o,s;return L.jsx("pre",{"data-line-start":(s=(o=n==null?void 0:n.position)==null?void 0:o.start)==null?void 0:s.line,...l,children:a})},td:({node:n,children:a,...l})=>{var o,s;return L.jsx("td",{"data-line-start":(s=(o=n==null?void 0:n.position)==null?void 0:o.start)==null?void 0:s.line,...l,children:a})},th:({node:n,children:a,...l})=>{var o,s;return L.jsx("th",{"data-line-start":(s=(o=n==null?void 0:n.position)==null?void 0:o.start)==null?void 0:s.line,...l,children:a})}},Kb=({content:n,filename:a,filePath:l,comments:o,onCommentsChange:s})=>{const f=Se.useRef(null),{isDark:c}=yg(),{width:p,isResizing:m,isCollapsed:h,handleMouseDown:b,toggleCollapse:g}=mg({initialWidth:300,minWidth:250,maxWidth:600,storageKey:"md-review-comments-sidebar-width",direction:"right",collapsible:!0,collapseThreshold:70});Se.useEffect(()=>{const A=document.querySelector('link[href*="github.css"]'),B=document.querySelector('link[href*="github-dark.css"]');A&&B&&(c?(A.disabled=!0,B.disabled=!1):(A.disabled=!1,B.disabled=!0))},[c]);const _=(A,B,I,$)=>{const X={id:crypto.randomUUID(),text:A,selectedText:B,startLine:I,endLine:$,createdAt:new Date};s([...o,X])},E=A=>{s(o.filter(B=>B.id!==A))},x=()=>{s([])},O=(A,B)=>{s(o.map(I=>I.id===A?{...I,text:B}:I))},R=A=>{if(!f.current)return;const B=f.current.querySelector(`[data-line-start="${A}"]`);B&&(B.scrollIntoView({behavior:"smooth",block:"center"}),B.classList.add("highlight-line"),setTimeout(()=>{B.classList.remove("highlight-line")},2e3))};return L.jsxs("div",{className:`markdown-with-comments ${m?"resizing":""} ${h?"comments-collapsed":""}`,children:[L.jsxs("div",{className:"markdown-container",style:{paddingRight:h?"0":`${p+20}px`},children:[L.jsx("header",{className:"markdown-header",children:L.jsx("h1",{children:a})}),L.jsx("div",{className:"markdown-content",ref:f,children:L.jsx(E1,{remarkPlugins:[RT],rehypePlugins:[_A],components:NA,children:n})}),L.jsx(xA,{containerRef:f,onSubmitComment:_})]}),h&&L.jsxs("button",{className:"comments-toggle-button",onClick:g,title:"Show comments","aria-label":"Show comments",children:[L.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:L.jsx("path",{d:"M2 5a2 2 0 012-2h12a2 2 0 012 2v8a2 2 0 01-2 2H6l-4 3V5z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),o.length>0&&L.jsx("span",{className:"comments-badge",children:o.length})]}),!h&&L.jsxs("aside",{className:"comments-sidebar",style:{width:`${p}px`},children:[L.jsx("div",{className:"comments-sidebar-resizer",onMouseDown:b}),L.jsx(TA,{comments:[...o].sort((A,B)=>A.startLine-B.startLine),filename:l||a,onDeleteComment:E,onDeleteAll:x,onClose:g,onLineClick:R,onEditComment:O})]})]})},nf=({error:n})=>L.jsxs("div",{style:{padding:"2rem",maxWidth:"800px",margin:"2rem auto",backgroundColor:"#fee",border:"1px solid #fcc",borderRadius:"8px"},children:[L.jsx("h2",{style:{color:"#c00"},children:"Error"}),L.jsx("p",{children:n.message})]}),AA=()=>{const{files:n,loading:a,error:l}=l_(),[o,s]=Se.useState(null),[f,c]=Se.useState(!0),[p,m]=Se.useState(!1),[h,b]=r_("md-review-comments",{}),{content:g,filename:_,loading:E,error:x,reload:O}=hg(o);gg(Y=>{o===Y&&O()});const{width:R,isResizing:A,isCollapsed:B,handleMouseDown:I,toggleCollapse:$}=mg({initialWidth:240,minWidth:180,maxWidth:500,storageKey:"md-review-sidebar-width",collapsible:!0,collapseThreshold:120}),X=()=>{c(!0),m(!0),setTimeout(()=>m(!1),100)};if(a)return L.jsx("div",{className:"dev-loading",children:L.jsx("p",{children:"Loading files..."})});if(l)return L.jsx(nf,{error:l});if(n.length===0)return L.jsxs("div",{className:"dev-empty",children:[L.jsx("h2",{children:"No Markdown Files Found"}),L.jsx("p",{children:"No .md files were found in the current directory."})]});const N=f&&!B;return L.jsxs("div",{className:`dev-container ${N?"":"sidebar-closed"} ${A?"resizing":""}`,children:[L.jsxs("div",{className:`dev-sidebar ${N?"":"closed"}`,style:N?{width:`${R}px`}:void 0,children:[!N&&L.jsxs("div",{className:"sidebar-icon-bar",children:[L.jsx("button",{className:"icon-bar-item",onClick:()=>{c(!0),B&&$()},title:"Open sidebar",children:L.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:L.jsx("path",{d:"M5 3h6l2 2h4a1 1 0 011 1v10a1 1 0 01-1 1H3a1 1 0 01-1-1V4a1 1 0 011-1h2z",stroke:"currentColor",strokeWidth:"1.5"})})}),L.jsx("button",{className:"icon-bar-item",onClick:X,title:"Search",children:L.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[L.jsx("circle",{cx:"9",cy:"9",r:"6",stroke:"currentColor",strokeWidth:"1.5"}),L.jsx("path",{d:"M13.5 13.5l3.5 3.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}),L.jsx(Eg,{}),L.jsx("div",{className:"icon-bar-spacer"}),L.jsx("a",{href:"https://github.com/ryo-manba/md-review",target:"_blank",rel:"noopener noreferrer",className:"icon-bar-item",title:"View on GitHub","aria-label":"View on GitHub",children:L.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor",children:L.jsx("path",{d:"M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z"})})})]}),N&&L.jsxs(L.Fragment,{children:[L.jsx("div",{className:"sidebar-content",children:L.jsx(s_,{files:n,selectedFile:o,onFileSelect:s,onToggleSidebar:()=>c(!1),autoFocusSearch:p})}),L.jsx("div",{className:"sidebar-resizer",onMouseDown:I})]})]}),L.jsx("div",{className:"dev-main",children:o?E?L.jsx("div",{className:"dev-loading",children:L.jsx("p",{children:"Loading markdown..."})}):x?L.jsx(nf,{error:x}):g&&_?L.jsx(Kb,{content:g,filename:_,filePath:o||_,comments:h[o||_]||[],onCommentsChange:Y=>{const ee=o||_;b(ue=>({...ue,[ee]:Y}))}}):L.jsx("div",{className:"dev-placeholder",children:L.jsx("p",{children:"No content available"})}):L.jsxs("div",{className:"dev-placeholder",children:[L.jsx("h2",{children:"Welcome to md-review"}),L.jsx("p",{children:"Select a markdown file from the sidebar to preview"}),L.jsxs("p",{className:"file-count",children:[n.length," markdown files found"]})]})})]})},wA=()=>{const{content:n,filename:a,loading:l,error:o,reload:s}=hg(),[f,c]=Se.useState([]);return gg(()=>{s()}),l?L.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:L.jsx("p",{children:"Loading..."})}):o?L.jsx(nf,{error:o}):!n||!a?L.jsx("div",{style:{padding:"2rem"},children:L.jsx("p",{children:"No content available"})}):L.jsx(Kb,{content:n,filename:a,comments:f,onCommentsChange:c})};function kA(){const[n,a]=Se.useState("loading");return Se.useEffect(()=>{(async()=>{try{(await fetch("/api/files")).ok?a("dev"):a("cli")}catch{a("cli")}})()},[]),n==="loading"?L.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:L.jsx("p",{children:"Initializing..."})}):n==="dev"?L.jsx(AA,{}):L.jsx(wA,{})}i_.createRoot(document.getElementById("root")).render(L.jsx(Se.StrictMode,{children:L.jsx(kA,{})}));
87
+ `);try{await navigator.clipboard.writeText(N),b(!0),setTimeout(()=>b(!1),2e3)}catch(Y){console.error("Failed to copy:",Y)}},B=N=>{_(N.id),x(N.text)},I=()=>{_(null),x("")},$=N=>{E.trim()&&c&&(c(N,E.trim()),_(null),x(""))},X=(N,Y)=>{N.key==="Enter"&&(N.metaKey||N.ctrlKey)?(N.preventDefault(),$(Y)):N.key==="Escape"&&(N.preventDefault(),I())};return D.jsxs("div",{className:"comment-list",children:[D.jsxs("div",{className:"comment-list-header",children:[D.jsxs("div",{className:"comment-list-title-wrapper",children:[s&&D.jsx("button",{className:"comment-list-collapse-btn",onClick:s,title:"Hide comments","aria-label":"Hide comments",children:D.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:D.jsx("polyline",{points:"8 4 14 10 8 16"})})}),D.jsx("h3",{className:"comment-list-title","aria-label":`${n.length} comments`,children:D.jsxs("span",{className:"comment-icon-wrapper",children:[D.jsx("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:D.jsx("path",{d:"M21 15a2 2 0 01-2 2H7l-4 4V5a2 2 0 012-2h14a2 2 0 012 2z"})}),n.length>0&&D.jsx("span",{className:"comment-count-badge","aria-hidden":"true",children:n.length})]})})]}),n.length>0&&D.jsxs("div",{className:"comment-list-actions",children:[D.jsxs("button",{className:`comment-list-copy-all ${h?"copied":""}`,onClick:A,title:h?"Copied!":"Copy all comments",children:[h?D.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:D.jsx("polyline",{points:"20 6 9 17 4 12"})}):D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[D.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),D.jsx("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"})]}),D.jsx("span",{children:"Copy All"})]}),o&&D.jsxs("button",{className:"comment-list-delete-all",onClick:o,title:"Delete all comments",children:[D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[D.jsx("polyline",{points:"3 6 5 6 21 6"}),D.jsx("path",{d:"M19 6v14a2 2 0 01-2 2H7a2 2 0 01-2-2V6m3 0V4a2 2 0 012-2h4a2 2 0 012 2v2"})]}),D.jsx("span",{children:"Clear"})]})]})]}),n.length===0?D.jsxs("div",{className:"comment-list-empty",children:[D.jsx("p",{children:"No comments yet"}),D.jsx("p",{className:"comment-list-hint",children:"Select text to add a comment"})]}):D.jsx("div",{className:"comment-list-items",children:n.map(N=>D.jsxs("div",{className:"comment-item",children:[D.jsxs("div",{className:"comment-item-header",children:[D.jsxs("button",{className:"comment-item-lines",onClick:()=>f==null?void 0:f(N.startLine),title:"Jump to line",children:["Line"," ",N.startLine===N.endLine?N.startLine:`${N.startLine}-${N.endLine}`]}),D.jsxs("div",{className:"comment-item-actions",children:[c&&g!==N.id&&D.jsx("button",{className:"comment-item-edit",onClick:()=>B(N),title:"Edit comment",children:D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[D.jsx("path",{d:"M11 4H4a2 2 0 00-2 2v14a2 2 0 002 2h14a2 2 0 002-2v-7"}),D.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 013 3L12 15l-4 1 1-4 9.5-9.5z"})]})}),D.jsx("button",{className:`comment-item-copy ${p===N.id?"copied":""}`,onClick:()=>R(N),title:p===N.id?"Copied!":"Copy comment",children:p===N.id?D.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:D.jsx("polyline",{points:"20 6 9 17 4 12"})}):D.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[D.jsx("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),D.jsx("path",{d:"M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"})]})}),l&&D.jsx("button",{className:"comment-item-delete",onClick:()=>l(N.id),title:"Delete comment",children:"×"})]})]}),D.jsxs("div",{className:"comment-item-selection",children:['"',N.selectedText.length>50?N.selectedText.slice(0,50)+"...":N.selectedText,'"']}),g===N.id?D.jsxs("div",{className:"comment-edit-form",children:[D.jsx("textarea",{className:"comment-edit-input",value:E,onChange:Y=>x(Y.target.value),onKeyDown:Y=>X(Y,N.id),rows:3,autoFocus:!0}),D.jsxs("div",{className:"comment-edit-actions",children:[D.jsx("button",{className:"comment-edit-cancel",onClick:I,children:"Cancel"}),D.jsx("button",{className:"comment-edit-save",onClick:()=>$(N.id),disabled:!E.trim(),children:"Save"})]})]}):D.jsx("div",{className:"comment-item-text",children:N.text})]},N.id))})]})},NA={p:({node:n,children:a,...l})=>{var o,s;return D.jsx("p",{"data-line-start":(s=(o=n==null?void 0:n.position)==null?void 0:o.start)==null?void 0:s.line,...l,children:a})},h1:({node:n,children:a,...l})=>{var o,s;return D.jsx("h1",{"data-line-start":(s=(o=n==null?void 0:n.position)==null?void 0:o.start)==null?void 0:s.line,...l,children:a})},h2:({node:n,children:a,...l})=>{var o,s;return D.jsx("h2",{"data-line-start":(s=(o=n==null?void 0:n.position)==null?void 0:o.start)==null?void 0:s.line,...l,children:a})},h3:({node:n,children:a,...l})=>{var o,s;return D.jsx("h3",{"data-line-start":(s=(o=n==null?void 0:n.position)==null?void 0:o.start)==null?void 0:s.line,...l,children:a})},h4:({node:n,children:a,...l})=>{var o,s;return D.jsx("h4",{"data-line-start":(s=(o=n==null?void 0:n.position)==null?void 0:o.start)==null?void 0:s.line,...l,children:a})},h5:({node:n,children:a,...l})=>{var o,s;return D.jsx("h5",{"data-line-start":(s=(o=n==null?void 0:n.position)==null?void 0:o.start)==null?void 0:s.line,...l,children:a})},h6:({node:n,children:a,...l})=>{var o,s;return D.jsx("h6",{"data-line-start":(s=(o=n==null?void 0:n.position)==null?void 0:o.start)==null?void 0:s.line,...l,children:a})},li:({node:n,children:a,...l})=>{var o,s;return D.jsx("li",{"data-line-start":(s=(o=n==null?void 0:n.position)==null?void 0:o.start)==null?void 0:s.line,...l,children:a})},blockquote:({node:n,children:a,...l})=>{var o,s;return D.jsx("blockquote",{"data-line-start":(s=(o=n==null?void 0:n.position)==null?void 0:o.start)==null?void 0:s.line,...l,children:a})},pre:({node:n,children:a,...l})=>{var o,s;return D.jsx("pre",{"data-line-start":(s=(o=n==null?void 0:n.position)==null?void 0:o.start)==null?void 0:s.line,...l,children:a})},td:({node:n,children:a,...l})=>{var o,s;return D.jsx("td",{"data-line-start":(s=(o=n==null?void 0:n.position)==null?void 0:o.start)==null?void 0:s.line,...l,children:a})},th:({node:n,children:a,...l})=>{var o,s;return D.jsx("th",{"data-line-start":(s=(o=n==null?void 0:n.position)==null?void 0:o.start)==null?void 0:s.line,...l,children:a})}},Kb=({content:n,filename:a,filePath:l,comments:o,onCommentsChange:s})=>{const f=Se.useRef(null),{isDark:c}=yg(),{width:p,isResizing:m,isCollapsed:h,handleMouseDown:b,toggleCollapse:g}=mg({initialWidth:300,minWidth:250,maxWidth:600,storageKey:"md-review-comments-sidebar-width",direction:"right",collapsible:!0,collapseThreshold:70});Se.useEffect(()=>{const A=document.querySelector('link[href*="github.css"]'),B=document.querySelector('link[href*="github-dark.css"]');A&&B&&(c?(A.disabled=!0,B.disabled=!1):(A.disabled=!1,B.disabled=!0))},[c]);const _=(A,B,I,$)=>{const X={id:crypto.randomUUID(),text:A,selectedText:B,startLine:I,endLine:$,createdAt:new Date};s([...o,X])},E=A=>{s(o.filter(B=>B.id!==A))},x=()=>{s([])},O=(A,B)=>{s(o.map(I=>I.id===A?{...I,text:B}:I))},R=A=>{if(!f.current)return;const B=f.current.querySelector(`[data-line-start="${A}"]`);B&&(B.scrollIntoView({behavior:"smooth",block:"center"}),B.classList.add("highlight-line"),setTimeout(()=>{B.classList.remove("highlight-line")},2e3))};return D.jsxs("div",{className:`markdown-with-comments ${m?"resizing":""} ${h?"comments-collapsed":""}`,children:[D.jsxs("div",{className:"markdown-container",style:{paddingRight:h?"0":`${p+20}px`},children:[D.jsx("header",{className:"markdown-header",children:D.jsx("h1",{children:a})}),D.jsx("div",{className:"markdown-content",ref:f,children:D.jsx(E1,{remarkPlugins:[RT],rehypePlugins:[_A],components:NA,children:n})}),D.jsx(xA,{containerRef:f,onSubmitComment:_})]}),h&&D.jsxs("button",{className:"comments-toggle-button",onClick:g,title:"Show comments","aria-label":"Show comments",children:[D.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:D.jsx("path",{d:"M2 5a2 2 0 012-2h12a2 2 0 012 2v8a2 2 0 01-2 2H6l-4 3V5z",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})}),o.length>0&&D.jsx("span",{className:"comments-badge",children:o.length})]}),!h&&D.jsxs("aside",{className:"comments-sidebar",style:{width:`${p}px`},children:[D.jsx("div",{className:"comments-sidebar-resizer",onMouseDown:b}),D.jsx(TA,{comments:[...o].sort((A,B)=>A.startLine-B.startLine),filename:l||a,onDeleteComment:E,onDeleteAll:x,onClose:g,onLineClick:R,onEditComment:O})]})]})},nf=({error:n})=>D.jsxs("div",{style:{padding:"2rem",maxWidth:"800px",margin:"2rem auto",backgroundColor:"#fee",border:"1px solid #fcc",borderRadius:"8px"},children:[D.jsx("h2",{style:{color:"#c00"},children:"Error"}),D.jsx("p",{children:n.message})]}),AA=()=>{const{files:n,loading:a,error:l}=l_(),[o,s]=Se.useState(null),[f,c]=Se.useState(!0),[p,m]=Se.useState(!1),[h,b]=r_("md-review-comments",{}),{content:g,filename:_,loading:E,error:x,reload:O}=hg(o);gg(Y=>{o===Y&&O()});const{width:R,isResizing:A,isCollapsed:B,handleMouseDown:I,toggleCollapse:$}=mg({initialWidth:240,minWidth:180,maxWidth:500,storageKey:"md-review-sidebar-width",collapsible:!0,collapseThreshold:120}),X=()=>{c(!0),m(!0),setTimeout(()=>m(!1),100)};if(a)return D.jsx("div",{className:"dev-loading",children:D.jsx("p",{children:"Loading files..."})});if(l)return D.jsx(nf,{error:l});if(n.length===0)return D.jsxs("div",{className:"dev-empty",children:[D.jsx("h2",{children:"No Markdown Files Found"}),D.jsx("p",{children:"No .md files were found in the current directory."})]});const N=f&&!B;return D.jsxs("div",{className:`dev-container ${N?"":"sidebar-closed"} ${A?"resizing":""}`,children:[D.jsxs("div",{className:`dev-sidebar ${N?"":"closed"}`,style:N?{width:`${R}px`}:void 0,children:[!N&&D.jsxs("div",{className:"sidebar-icon-bar",children:[D.jsx("button",{className:"icon-bar-item",onClick:()=>{c(!0),B&&$()},title:"Open sidebar",children:D.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:D.jsx("path",{d:"M5 3h6l2 2h4a1 1 0 011 1v10a1 1 0 01-1 1H3a1 1 0 01-1-1V4a1 1 0 011-1h2z",stroke:"currentColor",strokeWidth:"1.5"})})}),D.jsx("button",{className:"icon-bar-item",onClick:X,title:"Search",children:D.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:[D.jsx("circle",{cx:"9",cy:"9",r:"6",stroke:"currentColor",strokeWidth:"1.5"}),D.jsx("path",{d:"M13.5 13.5l3.5 3.5",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round"})]})}),D.jsx(Eg,{}),D.jsx("div",{className:"icon-bar-spacer"}),D.jsx("a",{href:"https://github.com/ryo-manba/md-review",target:"_blank",rel:"noopener noreferrer",className:"icon-bar-item",title:"View on GitHub","aria-label":"View on GitHub",children:D.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor",children:D.jsx("path",{d:"M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0024 12c0-6.63-5.37-12-12-12z"})})})]}),N&&D.jsxs(D.Fragment,{children:[D.jsx("div",{className:"sidebar-content",children:D.jsx(s_,{files:n,selectedFile:o,onFileSelect:s,onToggleSidebar:()=>c(!1),autoFocusSearch:p})}),D.jsx("div",{className:"sidebar-resizer",onMouseDown:I})]})]}),D.jsx("div",{className:"dev-main",children:o?E?D.jsx("div",{className:"dev-loading",children:D.jsx("p",{children:"Loading markdown..."})}):x?D.jsx(nf,{error:x}):g&&_?D.jsx(Kb,{content:g,filename:_,filePath:o||_,comments:h[o||_]||[],onCommentsChange:Y=>{const ee=o||_;b(ue=>({...ue,[ee]:Y}))}}):D.jsx("div",{className:"dev-placeholder",children:D.jsx("p",{children:"No content available"})}):D.jsxs("div",{className:"dev-placeholder",children:[D.jsx("h2",{children:"Welcome to md-review"}),D.jsx("p",{children:"Select a markdown file from the sidebar to preview"}),D.jsxs("p",{className:"file-count",children:[n.length," markdown files found"]})]})})]})},wA=()=>{const{content:n,filename:a,loading:l,error:o,reload:s}=hg(),[f,c]=Se.useState([]);return gg(()=>{s()}),l?D.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:D.jsx("p",{children:"Loading..."})}):o?D.jsx(nf,{error:o}):!n||!a?D.jsx("div",{style:{padding:"2rem"},children:D.jsx("p",{children:"No content available"})}):D.jsx(Kb,{content:n,filename:a,comments:f,onCommentsChange:c})};function kA(){const[n,a]=Se.useState("loading");return Se.useEffect(()=>{(async()=>{try{(await fetch("/api/files")).ok?a("dev"):a("cli")}catch{a("cli")}})()},[]),n==="loading"?D.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:D.jsx("p",{children:"Initializing..."})}):n==="dev"?D.jsx(AA,{}):D.jsx(wA,{})}i_.createRoot(document.getElementById("root")).render(D.jsx(Se.StrictMode,{children:D.jsx(kA,{})}));