@tanstack/cta-ui 0.25.1 → 0.25.2
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.
|
@@ -46,7 +46,7 @@ function SR(n,e){for(var t=0;t<e.length;t++){const i=e[t];if(typeof i!="string"&
|
|
|
46
46
|
`+M[h].replace(" at new "," at ");return s.displayName&&J.includes("<anonymous>")&&(J=J.replace("<anonymous>",s.displayName)),J}while(1<=h&&0<=O);break}}}finally{Pd=!1,Error.prepareStackTrace=u}return(u=s?s.displayName||s.name:"")?Sl(u):""}function m$(s){switch(s.tag){case 26:case 27:case 5:return Sl(s.type);case 16:return Sl("Lazy");case 13:return Sl("Suspense");case 19:return Sl("SuspenseList");case 0:case 15:return Ad(s.type,!1);case 11:return Ad(s.type.render,!1);case 1:return Ad(s.type,!0);case 31:return Sl("Activity");default:return""}}function Py(s){try{var o="";do o+=m$(s),s=s.return;while(s);return o}catch(u){return`
|
|
47
47
|
Error generating stack: `+u.message+`
|
|
48
48
|
`+u.stack}}function ei(s){switch(typeof s){case"bigint":case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function Ay(s){var o=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function O$(s){var o=Ay(s)?"checked":"value",u=Object.getOwnPropertyDescriptor(s.constructor.prototype,o),h=""+s[o];if(!s.hasOwnProperty(o)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var O=u.get,y=u.set;return Object.defineProperty(s,o,{configurable:!0,get:function(){return O.call(this)},set:function(k){h=""+k,y.call(this,k)}}),Object.defineProperty(s,o,{enumerable:u.enumerable}),{getValue:function(){return h},setValue:function(k){h=""+k},stopTracking:function(){s._valueTracker=null,delete s[o]}}}}function Ou(s){s._valueTracker||(s._valueTracker=O$(s))}function $y(s){if(!s)return!1;var o=s._valueTracker;if(!o)return!0;var u=o.getValue(),h="";return s&&(h=Ay(s)?s.checked?"true":"false":s.value),s=h,s!==u?(o.setValue(s),!0):!1}function gu(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var g$=/[\n"\\]/g;function ti(s){return s.replace(g$,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function $d(s,o,u,h,O,y,k,C){s.name="",k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?s.type=k:s.removeAttribute("type"),o!=null?k==="number"?(o===0&&s.value===""||s.value!=o)&&(s.value=""+ei(o)):s.value!==""+ei(o)&&(s.value=""+ei(o)):k!=="submit"&&k!=="reset"||s.removeAttribute("value"),o!=null?Rd(s,k,ei(o)):u!=null?Rd(s,k,ei(u)):h!=null&&s.removeAttribute("value"),O==null&&y!=null&&(s.defaultChecked=!!y),O!=null&&(s.checked=O&&typeof O!="function"&&typeof O!="symbol"),C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?s.name=""+ei(C):s.removeAttribute("name")}function Ry(s,o,u,h,O,y,k,C){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(s.type=y),o!=null||u!=null){if(!(y!=="submit"&&y!=="reset"||o!=null))return;u=u!=null?""+ei(u):"",o=o!=null?""+ei(o):u,C||o===s.value||(s.value=o),s.defaultValue=o}h=h??O,h=typeof h!="function"&&typeof h!="symbol"&&!!h,s.checked=C?s.checked:!!h,s.defaultChecked=!!h,k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"&&(s.name=k)}function Rd(s,o,u){o==="number"&&gu(s.ownerDocument)===s||s.defaultValue===""+u||(s.defaultValue=""+u)}function xl(s,o,u,h){if(s=s.options,o){o={};for(var O=0;O<u.length;O++)o["$"+u[O]]=!0;for(u=0;u<s.length;u++)O=o.hasOwnProperty("$"+s[u].value),s[u].selected!==O&&(s[u].selected=O),O&&h&&(s[u].defaultSelected=!0)}else{for(u=""+ei(u),o=null,O=0;O<s.length;O++){if(s[O].value===u){s[O].selected=!0,h&&(s[O].defaultSelected=!0);return}o!==null||s[O].disabled||(o=s[O])}o!==null&&(o.selected=!0)}}function My(s,o,u){if(o!=null&&(o=""+ei(o),o!==s.value&&(s.value=o),u==null)){s.defaultValue!==o&&(s.defaultValue=o);return}s.defaultValue=u!=null?""+ei(u):""}function Ey(s,o,u,h){if(o==null){if(h!=null){if(u!=null)throw Error(i(92));if(oe(h)){if(1<h.length)throw Error(i(93));h=h[0]}u=h}u==null&&(u=""),o=u}u=ei(o),s.defaultValue=u,h=s.textContent,h===u&&h!==""&&h!==null&&(s.value=h)}function wl(s,o){if(o){var u=s.firstChild;if(u&&u===s.lastChild&&u.nodeType===3){u.nodeValue=o;return}}s.textContent=o}var y$=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 Dy(s,o,u){var h=o.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?h?s.setProperty(o,""):o==="float"?s.cssFloat="":s[o]="":h?s.setProperty(o,u):typeof u!="number"||u===0||y$.has(o)?o==="float"?s.cssFloat=u:s[o]=(""+u).trim():s[o]=u+"px"}function Zy(s,o,u){if(o!=null&&typeof o!="object")throw Error(i(62));if(s=s.style,u!=null){for(var h in u)!u.hasOwnProperty(h)||o!=null&&o.hasOwnProperty(h)||(h.indexOf("--")===0?s.setProperty(h,""):h==="float"?s.cssFloat="":s[h]="");for(var O in o)h=o[O],o.hasOwnProperty(O)&&u[O]!==h&&Dy(s,O,h)}else for(var y in o)o.hasOwnProperty(y)&&Dy(s,y,o[y])}function Md(s){if(s.indexOf("-")===-1)return!1;switch(s){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 b$=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"]]),v$=/^[\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 yu(s){return v$.test(""+s)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":s}var Ed=null;function Dd(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var kl=null,Ql=null;function _y(s){var o=yl(s);if(o&&(s=o.stateNode)){var u=s[st]||null;e:switch(s=o.stateNode,o.type){case"input":if($d(s,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),o=u.name,u.type==="radio"&&o!=null){for(u=s;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+ti(""+o)+'"][type="radio"]'),o=0;o<u.length;o++){var h=u[o];if(h!==s&&h.form===s.form){var O=h[st]||null;if(!O)throw Error(i(90));$d(h,O.value,O.defaultValue,O.defaultValue,O.checked,O.defaultChecked,O.type,O.name)}}for(o=0;o<u.length;o++)h=u[o],h.form===s.form&&$y(h)}break e;case"textarea":My(s,u.value,u.defaultValue);break e;case"select":o=u.value,o!=null&&xl(s,!!u.multiple,o,!1)}}}var Zd=!1;function Xy(s,o,u){if(Zd)return s(o,u);Zd=!0;try{var h=s(o);return h}finally{if(Zd=!1,(kl!==null||Ql!==null)&&(rf(),kl&&(o=kl,s=Ql,Ql=kl=null,_y(o),s)))for(o=0;o<s.length;o++)_y(s[o])}}function Jo(s,o){var u=s.stateNode;if(u===null)return null;var h=u[st]||null;if(h===null)return null;u=h[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(s=s.type,h=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!h;break e;default:s=!1}if(s)return null;if(u&&typeof u!="function")throw Error(i(231,o,typeof u));return u}var dr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_d=!1;if(dr)try{var ea={};Object.defineProperty(ea,"passive",{get:function(){_d=!0}}),window.addEventListener("test",ea,ea),window.removeEventListener("test",ea,ea)}catch{_d=!1}var qr=null,Xd=null,bu=null;function jy(){if(bu)return bu;var s,o=Xd,u=o.length,h,O="value"in qr?qr.value:qr.textContent,y=O.length;for(s=0;s<u&&o[s]===O[s];s++);var k=u-s;for(h=1;h<=k&&o[u-h]===O[y-h];h++);return bu=O.slice(s,1<h?1-h:void 0)}function vu(s){var o=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&o===13&&(s=13)):s=o,s===10&&(s=13),32<=s||s===13?s:0}function Su(){return!0}function Ny(){return!1}function bn(s){function o(u,h,O,y,k){this._reactName=u,this._targetInst=O,this.type=h,this.nativeEvent=y,this.target=k,this.currentTarget=null;for(var C in s)s.hasOwnProperty(C)&&(u=s[C],this[C]=u?u(y):y[C]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?Su:Ny,this.isPropagationStopped=Ny,this}return p(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=Su)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Su)},persist:function(){},isPersistent:Su}),o}var As={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xu=bn(As),ta=p({},As,{view:0,detail:0}),S$=bn(ta),jd,Nd,na,wu=p({},ta,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qd,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==na&&(na&&s.type==="mousemove"?(jd=s.screenX-na.screenX,Nd=s.screenY-na.screenY):Nd=jd=0,na=s),jd)},movementY:function(s){return"movementY"in s?s.movementY:Nd}}),zy=bn(wu),x$=p({},wu,{dataTransfer:0}),w$=bn(x$),k$=p({},ta,{relatedTarget:0}),zd=bn(k$),Q$=p({},As,{animationName:0,elapsedTime:0,pseudoElement:0}),C$=bn(Q$),T$=p({},As,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),P$=bn(T$),A$=p({},As,{data:0}),qy=bn(A$),$$={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},R$={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"},M$={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function E$(s){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(s):(s=M$[s])?!!o[s]:!1}function qd(){return E$}var D$=p({},ta,{key:function(s){if(s.key){var o=$$[s.key]||s.key;if(o!=="Unidentified")return o}return s.type==="keypress"?(s=vu(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?R$[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qd,charCode:function(s){return s.type==="keypress"?vu(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?vu(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),Z$=bn(D$),_$=p({},wu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ly=bn(_$),X$=p({},ta,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qd}),j$=bn(X$),N$=p({},As,{propertyName:0,elapsedTime:0,pseudoElement:0}),z$=bn(N$),q$=p({},wu,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),L$=bn(q$),B$=p({},As,{newState:0,oldState:0}),V$=bn(B$),Y$=[9,13,27,32],Ld=dr&&"CompositionEvent"in window,ia=null;dr&&"documentMode"in document&&(ia=document.documentMode);var U$=dr&&"TextEvent"in window&&!ia,By=dr&&(!Ld||ia&&8<ia&&11>=ia),Vy=" ",Yy=!1;function Uy(s,o){switch(s){case"keyup":return Y$.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gy(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var Cl=!1;function G$(s,o){switch(s){case"compositionend":return Gy(o);case"keypress":return o.which!==32?null:(Yy=!0,Vy);case"textInput":return s=o.data,s===Vy&&Yy?null:s;default:return null}}function W$(s,o){if(Cl)return s==="compositionend"||!Ld&&Uy(s,o)?(s=jy(),bu=Xd=qr=null,Cl=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return By&&o.locale!=="ko"?null:o.data;default:return null}}var H$={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 Wy(s){var o=s&&s.nodeName&&s.nodeName.toLowerCase();return o==="input"?!!H$[s.type]:o==="textarea"}function Hy(s,o,u,h){kl?Ql?Ql.push(h):Ql=[h]:kl=h,o=uf(o,"onChange"),0<o.length&&(u=new xu("onChange","change",null,u,h),s.push({event:u,listeners:o}))}var ra=null,sa=null;function I$(s){A1(s,0)}function ku(s){var o=Ko(s);if($y(o))return s}function Iy(s,o){if(s==="change")return o}var Fy=!1;if(dr){var Bd;if(dr){var Vd="oninput"in document;if(!Vd){var Ky=document.createElement("div");Ky.setAttribute("oninput","return;"),Vd=typeof Ky.oninput=="function"}Bd=Vd}else Bd=!1;Fy=Bd&&(!document.documentMode||9<document.documentMode)}function Jy(){ra&&(ra.detachEvent("onpropertychange",eb),sa=ra=null)}function eb(s){if(s.propertyName==="value"&&ku(sa)){var o=[];Hy(o,sa,s,Dd(s)),Xy(I$,o)}}function F$(s,o,u){s==="focusin"?(Jy(),ra=o,sa=u,ra.attachEvent("onpropertychange",eb)):s==="focusout"&&Jy()}function K$(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return ku(sa)}function J$(s,o){if(s==="click")return ku(o)}function e5(s,o){if(s==="input"||s==="change")return ku(o)}function t5(s,o){return s===o&&(s!==0||1/s===1/o)||s!==s&&o!==o}var Zn=typeof Object.is=="function"?Object.is:t5;function la(s,o){if(Zn(s,o))return!0;if(typeof s!="object"||s===null||typeof o!="object"||o===null)return!1;var u=Object.keys(s),h=Object.keys(o);if(u.length!==h.length)return!1;for(h=0;h<u.length;h++){var O=u[h];if(!pe.call(o,O)||!Zn(s[O],o[O]))return!1}return!0}function tb(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function nb(s,o){var u=tb(s);s=0;for(var h;u;){if(u.nodeType===3){if(h=s+u.textContent.length,s<=o&&h>=o)return{node:u,offset:o-s};s=h}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=tb(u)}}function ib(s,o){return s&&o?s===o?!0:s&&s.nodeType===3?!1:o&&o.nodeType===3?ib(s,o.parentNode):"contains"in s?s.contains(o):s.compareDocumentPosition?!!(s.compareDocumentPosition(o)&16):!1:!1}function rb(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var o=gu(s.document);o instanceof s.HTMLIFrameElement;){try{var u=typeof o.contentWindow.location.href=="string"}catch{u=!1}if(u)s=o.contentWindow;else break;o=gu(s.document)}return o}function Yd(s){var o=s&&s.nodeName&&s.nodeName.toLowerCase();return o&&(o==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||o==="textarea"||s.contentEditable==="true")}var n5=dr&&"documentMode"in document&&11>=document.documentMode,Tl=null,Ud=null,oa=null,Gd=!1;function sb(s,o,u){var h=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Gd||Tl==null||Tl!==gu(h)||(h=Tl,"selectionStart"in h&&Yd(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),oa&&la(oa,h)||(oa=h,h=uf(Ud,"onSelect"),0<h.length&&(o=new xu("onSelect","select",null,o,u),s.push({event:o,listeners:h}),o.target=Tl)))}function $s(s,o){var u={};return u[s.toLowerCase()]=o.toLowerCase(),u["Webkit"+s]="webkit"+o,u["Moz"+s]="moz"+o,u}var Pl={animationend:$s("Animation","AnimationEnd"),animationiteration:$s("Animation","AnimationIteration"),animationstart:$s("Animation","AnimationStart"),transitionrun:$s("Transition","TransitionRun"),transitionstart:$s("Transition","TransitionStart"),transitioncancel:$s("Transition","TransitionCancel"),transitionend:$s("Transition","TransitionEnd")},Wd={},lb={};dr&&(lb=document.createElement("div").style,"AnimationEvent"in window||(delete Pl.animationend.animation,delete Pl.animationiteration.animation,delete Pl.animationstart.animation),"TransitionEvent"in window||delete Pl.transitionend.transition);function Rs(s){if(Wd[s])return Wd[s];if(!Pl[s])return s;var o=Pl[s],u;for(u in o)if(o.hasOwnProperty(u)&&u in lb)return Wd[s]=o[u];return s}var ob=Rs("animationend"),ab=Rs("animationiteration"),cb=Rs("animationstart"),i5=Rs("transitionrun"),r5=Rs("transitionstart"),s5=Rs("transitioncancel"),ub=Rs("transitionend"),fb=new Map,Hd="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(" ");Hd.push("scrollEnd");function xi(s,o){fb.set(s,o),Ps(o,[s])}var hb=new WeakMap;function ni(s,o){if(typeof s=="object"&&s!==null){var u=hb.get(s);return u!==void 0?u:(o={value:s,source:o,stack:Py(o)},hb.set(s,o),o)}return{value:s,source:o,stack:Py(o)}}var ii=[],Al=0,Id=0;function Qu(){for(var s=Al,o=Id=Al=0;o<s;){var u=ii[o];ii[o++]=null;var h=ii[o];ii[o++]=null;var O=ii[o];ii[o++]=null;var y=ii[o];if(ii[o++]=null,h!==null&&O!==null){var k=h.pending;k===null?O.next=O:(O.next=k.next,k.next=O),h.pending=O}y!==0&&db(u,O,y)}}function Cu(s,o,u,h){ii[Al++]=s,ii[Al++]=o,ii[Al++]=u,ii[Al++]=h,Id|=h,s.lanes|=h,s=s.alternate,s!==null&&(s.lanes|=h)}function Fd(s,o,u,h){return Cu(s,o,u,h),Tu(s)}function $l(s,o){return Cu(s,null,null,o),Tu(s)}function db(s,o,u){s.lanes|=u;var h=s.alternate;h!==null&&(h.lanes|=u);for(var O=!1,y=s.return;y!==null;)y.childLanes|=u,h=y.alternate,h!==null&&(h.childLanes|=u),y.tag===22&&(s=y.stateNode,s===null||s._visibility&1||(O=!0)),s=y,y=y.return;return s.tag===3?(y=s.stateNode,O&&o!==null&&(O=31-kt(u),s=y.hiddenUpdates,h=s[O],h===null?s[O]=[o]:h.push(o),o.lane=u|536870912),y):null}function Tu(s){if(50<Ma)throw Ma=0,im=null,Error(i(185));for(var o=s.return;o!==null;)s=o,o=s.return;return s.tag===3?s.stateNode:null}var Rl={};function l5(s,o,u,h){this.tag=s,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _n(s,o,u,h){return new l5(s,o,u,h)}function Kd(s){return s=s.prototype,!(!s||!s.isReactComponent)}function pr(s,o){var u=s.alternate;return u===null?(u=_n(s.tag,o,s.key,s.mode),u.elementType=s.elementType,u.type=s.type,u.stateNode=s.stateNode,u.alternate=s,s.alternate=u):(u.pendingProps=o,u.type=s.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=s.flags&65011712,u.childLanes=s.childLanes,u.lanes=s.lanes,u.child=s.child,u.memoizedProps=s.memoizedProps,u.memoizedState=s.memoizedState,u.updateQueue=s.updateQueue,o=s.dependencies,u.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},u.sibling=s.sibling,u.index=s.index,u.ref=s.ref,u.refCleanup=s.refCleanup,u}function pb(s,o){s.flags&=65011714;var u=s.alternate;return u===null?(s.childLanes=0,s.lanes=o,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=u.childLanes,s.lanes=u.lanes,s.child=u.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=u.memoizedProps,s.memoizedState=u.memoizedState,s.updateQueue=u.updateQueue,s.type=u.type,o=u.dependencies,s.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),s}function Pu(s,o,u,h,O,y){var k=0;if(h=s,typeof s=="function")Kd(s)&&(k=1);else if(typeof s=="string")k=aR(s,u,se.current)?26:s==="html"||s==="head"||s==="body"?27:5;else e:switch(s){case U:return s=_n(31,u,o,O),s.elementType=U,s.lanes=y,s;case v:return Ms(u.children,O,y,o);case S:k=8,O|=24;break;case x:return s=_n(12,u,o,O|2),s.elementType=x,s.lanes=y,s;case R:return s=_n(13,u,o,O),s.elementType=R,s.lanes=y,s;case Z:return s=_n(19,u,o,O),s.elementType=Z,s.lanes=y,s;default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case Q:case A:k=10;break e;case P:k=9;break e;case D:k=11;break e;case _:k=14;break e;case X:k=16,h=null;break e}k=29,u=Error(i(130,s===null?"null":typeof s,"")),h=null}return o=_n(k,u,o,O),o.elementType=s,o.type=h,o.lanes=y,o}function Ms(s,o,u,h){return s=_n(7,s,h,o),s.lanes=u,s}function Jd(s,o,u){return s=_n(6,s,null,o),s.lanes=u,s}function ep(s,o,u){return o=_n(4,s.children!==null?s.children:[],s.key,o),o.lanes=u,o.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},o}var Ml=[],El=0,Au=null,$u=0,ri=[],si=0,Es=null,mr=1,Or="";function Ds(s,o){Ml[El++]=$u,Ml[El++]=Au,Au=s,$u=o}function mb(s,o,u){ri[si++]=mr,ri[si++]=Or,ri[si++]=Es,Es=s;var h=mr;s=Or;var O=32-kt(h)-1;h&=~(1<<O),u+=1;var y=32-kt(o)+O;if(30<y){var k=O-O%5;y=(h&(1<<k)-1).toString(32),h>>=k,O-=k,mr=1<<32-kt(o)+O|u<<O|h,Or=y+s}else mr=1<<y|u<<O|h,Or=s}function tp(s){s.return!==null&&(Ds(s,1),mb(s,1,0))}function np(s){for(;s===Au;)Au=Ml[--El],Ml[El]=null,$u=Ml[--El],Ml[El]=null;for(;s===Es;)Es=ri[--si],ri[si]=null,Or=ri[--si],ri[si]=null,mr=ri[--si],ri[si]=null}var pn=null,yt=null,Ve=!1,Zs=null,Ei=!1,ip=Error(i(519));function _s(s){var o=Error(i(418,""));throw ua(ni(o,s)),ip}function Ob(s){var o=s.stateNode,u=s.type,h=s.memoizedProps;switch(o[Ct]=s,o[st]=h,u){case"dialog":_e("cancel",o),_e("close",o);break;case"iframe":case"object":case"embed":_e("load",o);break;case"video":case"audio":for(u=0;u<Da.length;u++)_e(Da[u],o);break;case"source":_e("error",o);break;case"img":case"image":case"link":_e("error",o),_e("load",o);break;case"details":_e("toggle",o);break;case"input":_e("invalid",o),Ry(o,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0),Ou(o);break;case"select":_e("invalid",o);break;case"textarea":_e("invalid",o),Ey(o,h.value,h.defaultValue,h.children),Ou(o)}u=h.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||o.textContent===""+u||h.suppressHydrationWarning===!0||E1(o.textContent,u)?(h.popover!=null&&(_e("beforetoggle",o),_e("toggle",o)),h.onScroll!=null&&_e("scroll",o),h.onScrollEnd!=null&&_e("scrollend",o),h.onClick!=null&&(o.onclick=ff),o=!0):o=!1,o||_s(s)}function gb(s){for(pn=s.return;pn;)switch(pn.tag){case 5:case 13:Ei=!1;return;case 27:case 3:Ei=!0;return;default:pn=pn.return}}function aa(s){if(s!==pn)return!1;if(!Ve)return gb(s),Ve=!0,!1;var o=s.tag,u;if((u=o!==3&&o!==27)&&((u=o===5)&&(u=s.type,u=!(u!=="form"&&u!=="button")||bm(s.type,s.memoizedProps)),u=!u),u&&yt&&_s(s),gb(s),o===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(i(317));e:{for(s=s.nextSibling,o=0;s;){if(s.nodeType===8)if(u=s.data,u==="/$"){if(o===0){yt=ki(s.nextSibling);break e}o--}else u!=="$"&&u!=="$!"&&u!=="$?"||o++;s=s.nextSibling}yt=null}}else o===27?(o=yt,is(s.type)?(s=wm,wm=null,yt=s):yt=o):yt=pn?ki(s.stateNode.nextSibling):null;return!0}function ca(){yt=pn=null,Ve=!1}function yb(){var s=Zs;return s!==null&&(xn===null?xn=s:xn.push.apply(xn,s),Zs=null),s}function ua(s){Zs===null?Zs=[s]:Zs.push(s)}var rp=B(null),Xs=null,gr=null;function Lr(s,o,u){H(rp,o._currentValue),o._currentValue=u}function yr(s){s._currentValue=rp.current,ne(rp)}function sp(s,o,u){for(;s!==null;){var h=s.alternate;if((s.childLanes&o)!==o?(s.childLanes|=o,h!==null&&(h.childLanes|=o)):h!==null&&(h.childLanes&o)!==o&&(h.childLanes|=o),s===u)break;s=s.return}}function lp(s,o,u,h){var O=s.child;for(O!==null&&(O.return=s);O!==null;){var y=O.dependencies;if(y!==null){var k=O.child;y=y.firstContext;e:for(;y!==null;){var C=y;y=O;for(var M=0;M<o.length;M++)if(C.context===o[M]){y.lanes|=u,C=y.alternate,C!==null&&(C.lanes|=u),sp(y.return,u,s),h||(k=null);break e}y=C.next}}else if(O.tag===18){if(k=O.return,k===null)throw Error(i(341));k.lanes|=u,y=k.alternate,y!==null&&(y.lanes|=u),sp(k,u,s),k=null}else k=O.child;if(k!==null)k.return=O;else for(k=O;k!==null;){if(k===s){k=null;break}if(O=k.sibling,O!==null){O.return=k.return,k=O;break}k=k.return}O=k}}function fa(s,o,u,h){s=null;for(var O=o,y=!1;O!==null;){if(!y){if((O.flags&524288)!==0)y=!0;else if((O.flags&262144)!==0)break}if(O.tag===10){var k=O.alternate;if(k===null)throw Error(i(387));if(k=k.memoizedProps,k!==null){var C=O.type;Zn(O.pendingProps.value,k.value)||(s!==null?s.push(C):s=[C])}}else if(O===we.current){if(k=O.alternate,k===null)throw Error(i(387));k.memoizedState.memoizedState!==O.memoizedState.memoizedState&&(s!==null?s.push(za):s=[za])}O=O.return}s!==null&&lp(o,s,u,h),o.flags|=262144}function Ru(s){for(s=s.firstContext;s!==null;){if(!Zn(s.context._currentValue,s.memoizedValue))return!0;s=s.next}return!1}function js(s){Xs=s,gr=null,s=s.dependencies,s!==null&&(s.firstContext=null)}function on(s){return bb(Xs,s)}function Mu(s,o){return Xs===null&&js(s),bb(s,o)}function bb(s,o){var u=o._currentValue;if(o={context:o,memoizedValue:u,next:null},gr===null){if(s===null)throw Error(i(308));gr=o,s.dependencies={lanes:0,firstContext:o},s.flags|=524288}else gr=gr.next=o;return u}var o5=typeof AbortController<"u"?AbortController:function(){var s=[],o=this.signal={aborted:!1,addEventListener:function(u,h){s.push(h)}};this.abort=function(){o.aborted=!0,s.forEach(function(u){return u()})}},a5=n.unstable_scheduleCallback,c5=n.unstable_NormalPriority,qt={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function op(){return{controller:new o5,data:new Map,refCount:0}}function ha(s){s.refCount--,s.refCount===0&&a5(c5,function(){s.controller.abort()})}var da=null,ap=0,Dl=0,Zl=null;function u5(s,o){if(da===null){var u=da=[];ap=0,Dl=um(),Zl={status:"pending",value:void 0,then:function(h){u.push(h)}}}return ap++,o.then(vb,vb),o}function vb(){if(--ap===0&&da!==null){Zl!==null&&(Zl.status="fulfilled");var s=da;da=null,Dl=0,Zl=null;for(var o=0;o<s.length;o++)(0,s[o])()}}function f5(s,o){var u=[],h={status:"pending",value:null,reason:null,then:function(O){u.push(O)}};return s.then(function(){h.status="fulfilled",h.value=o;for(var O=0;O<u.length;O++)(0,u[O])(o)},function(O){for(h.status="rejected",h.reason=O,O=0;O<u.length;O++)(0,u[O])(void 0)}),h}var Sb=j.S;j.S=function(s,o){typeof o=="object"&&o!==null&&typeof o.then=="function"&&u5(s,o),Sb!==null&&Sb(s,o)};var Ns=B(null);function cp(){var s=Ns.current;return s!==null?s:lt.pooledCache}function Eu(s,o){o===null?H(Ns,Ns.current):H(Ns,o.pool)}function xb(){var s=cp();return s===null?null:{parent:qt._currentValue,pool:s}}var pa=Error(i(460)),wb=Error(i(474)),Du=Error(i(542)),up={then:function(){}};function kb(s){return s=s.status,s==="fulfilled"||s==="rejected"}function Zu(){}function Qb(s,o,u){switch(u=s[u],u===void 0?s.push(o):u!==o&&(o.then(Zu,Zu),o=u),o.status){case"fulfilled":return o.value;case"rejected":throw s=o.reason,Tb(s),s;default:if(typeof o.status=="string")o.then(Zu,Zu);else{if(s=lt,s!==null&&100<s.shellSuspendCounter)throw Error(i(482));s=o,s.status="pending",s.then(function(h){if(o.status==="pending"){var O=o;O.status="fulfilled",O.value=h}},function(h){if(o.status==="pending"){var O=o;O.status="rejected",O.reason=h}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw s=o.reason,Tb(s),s}throw ma=o,pa}}var ma=null;function Cb(){if(ma===null)throw Error(i(459));var s=ma;return ma=null,s}function Tb(s){if(s===pa||s===Du)throw Error(i(483))}var Br=!1;function fp(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function hp(s,o){s=s.updateQueue,o.updateQueue===s&&(o.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,callbacks:null})}function Vr(s){return{lane:s,tag:0,payload:null,callback:null,next:null}}function Yr(s,o,u){var h=s.updateQueue;if(h===null)return null;if(h=h.shared,(Ue&2)!==0){var O=h.pending;return O===null?o.next=o:(o.next=O.next,O.next=o),h.pending=o,o=Tu(s),db(s,null,u),o}return Cu(s,h,o,u),Tu(s)}function Oa(s,o,u){if(o=o.updateQueue,o!==null&&(o=o.shared,(u&4194048)!==0)){var h=o.lanes;h&=s.pendingLanes,u|=h,o.lanes=u,ut(s,u)}}function dp(s,o){var u=s.updateQueue,h=s.alternate;if(h!==null&&(h=h.updateQueue,u===h)){var O=null,y=null;if(u=u.firstBaseUpdate,u!==null){do{var k={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};y===null?O=y=k:y=y.next=k,u=u.next}while(u!==null);y===null?O=y=o:y=y.next=o}else O=y=o;u={baseState:h.baseState,firstBaseUpdate:O,lastBaseUpdate:y,shared:h.shared,callbacks:h.callbacks},s.updateQueue=u;return}s=u.lastBaseUpdate,s===null?u.firstBaseUpdate=o:s.next=o,u.lastBaseUpdate=o}var pp=!1;function ga(){if(pp){var s=Zl;if(s!==null)throw s}}function ya(s,o,u,h){pp=!1;var O=s.updateQueue;Br=!1;var y=O.firstBaseUpdate,k=O.lastBaseUpdate,C=O.shared.pending;if(C!==null){O.shared.pending=null;var M=C,L=M.next;M.next=null,k===null?y=L:k.next=L,k=M;var J=s.alternate;J!==null&&(J=J.updateQueue,C=J.lastBaseUpdate,C!==k&&(C===null?J.firstBaseUpdate=L:C.next=L,J.lastBaseUpdate=M))}if(y!==null){var ie=O.baseState;k=0,J=L=M=null,C=y;do{var V=C.lane&-536870913,Y=V!==C.lane;if(Y?(Ne&V)===V:(h&V)===V){V!==0&&V===Dl&&(pp=!0),J!==null&&(J=J.next={lane:0,tag:C.tag,payload:C.payload,callback:null,next:null});e:{var Pe=s,ke=C;V=o;var Fe=u;switch(ke.tag){case 1:if(Pe=ke.payload,typeof Pe=="function"){ie=Pe.call(Fe,ie,V);break e}ie=Pe;break e;case 3:Pe.flags=Pe.flags&-65537|128;case 0:if(Pe=ke.payload,V=typeof Pe=="function"?Pe.call(Fe,ie,V):Pe,V==null)break e;ie=p({},ie,V);break e;case 2:Br=!0}}V=C.callback,V!==null&&(s.flags|=64,Y&&(s.flags|=8192),Y=O.callbacks,Y===null?O.callbacks=[V]:Y.push(V))}else Y={lane:V,tag:C.tag,payload:C.payload,callback:C.callback,next:null},J===null?(L=J=Y,M=ie):J=J.next=Y,k|=V;if(C=C.next,C===null){if(C=O.shared.pending,C===null)break;Y=C,C=Y.next,Y.next=null,O.lastBaseUpdate=Y,O.shared.pending=null}}while(!0);J===null&&(M=ie),O.baseState=M,O.firstBaseUpdate=L,O.lastBaseUpdate=J,y===null&&(O.shared.lanes=0),Jr|=k,s.lanes=k,s.memoizedState=ie}}function Pb(s,o){if(typeof s!="function")throw Error(i(191,s));s.call(o)}function Ab(s,o){var u=s.callbacks;if(u!==null)for(s.callbacks=null,s=0;s<u.length;s++)Pb(u[s],o)}var _l=B(null),_u=B(0);function $b(s,o){s=Qr,H(_u,s),H(_l,o),Qr=s|o.baseLanes}function mp(){H(_u,Qr),H(_l,_l.current)}function Op(){Qr=_u.current,ne(_l),ne(_u)}var Ur=0,Me=null,He=null,Rt=null,Xu=!1,Xl=!1,zs=!1,ju=0,ba=0,jl=null,h5=0;function Tt(){throw Error(i(321))}function gp(s,o){if(o===null)return!1;for(var u=0;u<o.length&&u<s.length;u++)if(!Zn(s[u],o[u]))return!1;return!0}function yp(s,o,u,h,O,y){return Ur=y,Me=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,j.H=s===null||s.memoizedState===null?dv:pv,zs=!1,y=u(h,O),zs=!1,Xl&&(y=Mb(o,u,h,O)),Rb(s),y}function Rb(s){j.H=Vu;var o=He!==null&&He.next!==null;if(Ur=0,Rt=He=Me=null,Xu=!1,ba=0,jl=null,o)throw Error(i(300));s===null||Gt||(s=s.dependencies,s!==null&&Ru(s)&&(Gt=!0))}function Mb(s,o,u,h){Me=s;var O=0;do{if(Xl&&(jl=null),ba=0,Xl=!1,25<=O)throw Error(i(301));if(O+=1,Rt=He=null,s.updateQueue!=null){var y=s.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}j.H=b5,y=o(u,h)}while(Xl);return y}function d5(){var s=j.H,o=s.useState()[0];return o=typeof o.then=="function"?va(o):o,s=s.useState()[0],(He!==null?He.memoizedState:null)!==s&&(Me.flags|=1024),o}function bp(){var s=ju!==0;return ju=0,s}function vp(s,o,u){o.updateQueue=s.updateQueue,o.flags&=-2053,s.lanes&=~u}function Sp(s){if(Xu){for(s=s.memoizedState;s!==null;){var o=s.queue;o!==null&&(o.pending=null),s=s.next}Xu=!1}Ur=0,Rt=He=Me=null,Xl=!1,ba=ju=0,jl=null}function vn(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Rt===null?Me.memoizedState=Rt=s:Rt=Rt.next=s,Rt}function Mt(){if(He===null){var s=Me.alternate;s=s!==null?s.memoizedState:null}else s=He.next;var o=Rt===null?Me.memoizedState:Rt.next;if(o!==null)Rt=o,He=s;else{if(s===null)throw Me.alternate===null?Error(i(467)):Error(i(310));He=s,s={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},Rt===null?Me.memoizedState=Rt=s:Rt=Rt.next=s}return Rt}function xp(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function va(s){var o=ba;return ba+=1,jl===null&&(jl=[]),s=Qb(jl,s,o),o=Me,(Rt===null?o.memoizedState:Rt.next)===null&&(o=o.alternate,j.H=o===null||o.memoizedState===null?dv:pv),s}function Nu(s){if(s!==null&&typeof s=="object"){if(typeof s.then=="function")return va(s);if(s.$$typeof===A)return on(s)}throw Error(i(438,String(s)))}function wp(s){var o=null,u=Me.updateQueue;if(u!==null&&(o=u.memoCache),o==null){var h=Me.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(o={data:h.data.map(function(O){return O.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),u===null&&(u=xp(),Me.updateQueue=u),u.memoCache=o,u=o.data[o.index],u===void 0)for(u=o.data[o.index]=Array(s),h=0;h<s;h++)u[h]=re;return o.index++,u}function br(s,o){return typeof o=="function"?o(s):o}function zu(s){var o=Mt();return kp(o,He,s)}function kp(s,o,u){var h=s.queue;if(h===null)throw Error(i(311));h.lastRenderedReducer=u;var O=s.baseQueue,y=h.pending;if(y!==null){if(O!==null){var k=O.next;O.next=y.next,y.next=k}o.baseQueue=O=y,h.pending=null}if(y=s.baseState,O===null)s.memoizedState=y;else{o=O.next;var C=k=null,M=null,L=o,J=!1;do{var ie=L.lane&-536870913;if(ie!==L.lane?(Ne&ie)===ie:(Ur&ie)===ie){var V=L.revertLane;if(V===0)M!==null&&(M=M.next={lane:0,revertLane:0,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),ie===Dl&&(J=!0);else if((Ur&V)===V){L=L.next,V===Dl&&(J=!0);continue}else ie={lane:0,revertLane:L.revertLane,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},M===null?(C=M=ie,k=y):M=M.next=ie,Me.lanes|=V,Jr|=V;ie=L.action,zs&&u(y,ie),y=L.hasEagerState?L.eagerState:u(y,ie)}else V={lane:ie,revertLane:L.revertLane,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null},M===null?(C=M=V,k=y):M=M.next=V,Me.lanes|=ie,Jr|=ie;L=L.next}while(L!==null&&L!==o);if(M===null?k=y:M.next=C,!Zn(y,s.memoizedState)&&(Gt=!0,J&&(u=Zl,u!==null)))throw u;s.memoizedState=y,s.baseState=k,s.baseQueue=M,h.lastRenderedState=y}return O===null&&(h.lanes=0),[s.memoizedState,h.dispatch]}function Qp(s){var o=Mt(),u=o.queue;if(u===null)throw Error(i(311));u.lastRenderedReducer=s;var h=u.dispatch,O=u.pending,y=o.memoizedState;if(O!==null){u.pending=null;var k=O=O.next;do y=s(y,k.action),k=k.next;while(k!==O);Zn(y,o.memoizedState)||(Gt=!0),o.memoizedState=y,o.baseQueue===null&&(o.baseState=y),u.lastRenderedState=y}return[y,h]}function Eb(s,o,u){var h=Me,O=Mt(),y=Ve;if(y){if(u===void 0)throw Error(i(407));u=u()}else u=o();var k=!Zn((He||O).memoizedState,u);k&&(O.memoizedState=u,Gt=!0),O=O.queue;var C=_b.bind(null,h,O,s);if(Sa(2048,8,C,[s]),O.getSnapshot!==o||k||Rt!==null&&Rt.memoizedState.tag&1){if(h.flags|=2048,Nl(9,qu(),Zb.bind(null,h,O,u,o),null),lt===null)throw Error(i(349));y||(Ur&124)!==0||Db(h,o,u)}return u}function Db(s,o,u){s.flags|=16384,s={getSnapshot:o,value:u},o=Me.updateQueue,o===null?(o=xp(),Me.updateQueue=o,o.stores=[s]):(u=o.stores,u===null?o.stores=[s]:u.push(s))}function Zb(s,o,u,h){o.value=u,o.getSnapshot=h,Xb(o)&&jb(s)}function _b(s,o,u){return u(function(){Xb(o)&&jb(s)})}function Xb(s){var o=s.getSnapshot;s=s.value;try{var u=o();return!Zn(s,u)}catch{return!0}}function jb(s){var o=$l(s,2);o!==null&&qn(o,s,2)}function Cp(s){var o=vn();if(typeof s=="function"){var u=s;if(s=u(),zs){Dn(!0);try{u()}finally{Dn(!1)}}}return o.memoizedState=o.baseState=s,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:br,lastRenderedState:s},o}function Nb(s,o,u,h){return s.baseState=u,kp(s,He,typeof h=="function"?h:br)}function p5(s,o,u,h,O){if(Bu(s))throw Error(i(485));if(s=o.action,s!==null){var y={payload:O,action:s,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(k){y.listeners.push(k)}};j.T!==null?u(!0):y.isTransition=!1,h(y),u=o.pending,u===null?(y.next=o.pending=y,zb(o,y)):(y.next=u.next,o.pending=u.next=y)}}function zb(s,o){var u=o.action,h=o.payload,O=s.state;if(o.isTransition){var y=j.T,k={};j.T=k;try{var C=u(O,h),M=j.S;M!==null&&M(k,C),qb(s,o,C)}catch(L){Tp(s,o,L)}finally{j.T=y}}else try{y=u(O,h),qb(s,o,y)}catch(L){Tp(s,o,L)}}function qb(s,o,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(h){Lb(s,o,h)},function(h){return Tp(s,o,h)}):Lb(s,o,u)}function Lb(s,o,u){o.status="fulfilled",o.value=u,Bb(o),s.state=u,o=s.pending,o!==null&&(u=o.next,u===o?s.pending=null:(u=u.next,o.next=u,zb(s,u)))}function Tp(s,o,u){var h=s.pending;if(s.pending=null,h!==null){h=h.next;do o.status="rejected",o.reason=u,Bb(o),o=o.next;while(o!==h)}s.action=null}function Bb(s){s=s.listeners;for(var o=0;o<s.length;o++)(0,s[o])()}function Vb(s,o){return o}function Yb(s,o){if(Ve){var u=lt.formState;if(u!==null){e:{var h=Me;if(Ve){if(yt){t:{for(var O=yt,y=Ei;O.nodeType!==8;){if(!y){O=null;break t}if(O=ki(O.nextSibling),O===null){O=null;break t}}y=O.data,O=y==="F!"||y==="F"?O:null}if(O){yt=ki(O.nextSibling),h=O.data==="F!";break e}}_s(h)}h=!1}h&&(o=u[0])}}return u=vn(),u.memoizedState=u.baseState=o,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vb,lastRenderedState:o},u.queue=h,u=uv.bind(null,Me,h),h.dispatch=u,h=Cp(!1),y=Mp.bind(null,Me,!1,h.queue),h=vn(),O={state:o,dispatch:null,action:s,pending:null},h.queue=O,u=p5.bind(null,Me,O,y,u),O.dispatch=u,h.memoizedState=s,[o,u,!1]}function Ub(s){var o=Mt();return Gb(o,He,s)}function Gb(s,o,u){if(o=kp(s,o,Vb)[0],s=zu(br)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var h=va(o)}catch(k){throw k===pa?Du:k}else h=o;o=Mt();var O=o.queue,y=O.dispatch;return u!==o.memoizedState&&(Me.flags|=2048,Nl(9,qu(),m5.bind(null,O,u),null)),[h,y,s]}function m5(s,o){s.action=o}function Wb(s){var o=Mt(),u=He;if(u!==null)return Gb(o,u,s);Mt(),o=o.memoizedState,u=Mt();var h=u.queue.dispatch;return u.memoizedState=s,[o,h,!1]}function Nl(s,o,u,h){return s={tag:s,create:u,deps:h,inst:o,next:null},o=Me.updateQueue,o===null&&(o=xp(),Me.updateQueue=o),u=o.lastEffect,u===null?o.lastEffect=s.next=s:(h=u.next,u.next=s,s.next=h,o.lastEffect=s),s}function qu(){return{destroy:void 0,resource:void 0}}function Hb(){return Mt().memoizedState}function Lu(s,o,u,h){var O=vn();h=h===void 0?null:h,Me.flags|=s,O.memoizedState=Nl(1|o,qu(),u,h)}function Sa(s,o,u,h){var O=Mt();h=h===void 0?null:h;var y=O.memoizedState.inst;He!==null&&h!==null&&gp(h,He.memoizedState.deps)?O.memoizedState=Nl(o,y,u,h):(Me.flags|=s,O.memoizedState=Nl(1|o,y,u,h))}function Ib(s,o){Lu(8390656,8,s,o)}function Fb(s,o){Sa(2048,8,s,o)}function Kb(s,o){return Sa(4,2,s,o)}function Jb(s,o){return Sa(4,4,s,o)}function ev(s,o){if(typeof o=="function"){s=s();var u=o(s);return function(){typeof u=="function"?u():o(null)}}if(o!=null)return s=s(),o.current=s,function(){o.current=null}}function tv(s,o,u){u=u!=null?u.concat([s]):null,Sa(4,4,ev.bind(null,o,s),u)}function Pp(){}function nv(s,o){var u=Mt();o=o===void 0?null:o;var h=u.memoizedState;return o!==null&&gp(o,h[1])?h[0]:(u.memoizedState=[s,o],s)}function iv(s,o){var u=Mt();o=o===void 0?null:o;var h=u.memoizedState;if(o!==null&&gp(o,h[1]))return h[0];if(h=s(),zs){Dn(!0);try{s()}finally{Dn(!1)}}return u.memoizedState=[h,o],h}function Ap(s,o,u){return u===void 0||(Ur&1073741824)!==0?s.memoizedState=o:(s.memoizedState=u,s=l1(),Me.lanes|=s,Jr|=s,u)}function rv(s,o,u,h){return Zn(u,o)?u:_l.current!==null?(s=Ap(s,u,h),Zn(s,o)||(Gt=!0),s):(Ur&42)===0?(Gt=!0,s.memoizedState=u):(s=l1(),Me.lanes|=s,Jr|=s,o)}function sv(s,o,u,h,O){var y=W.p;W.p=y!==0&&8>y?y:8;var k=j.T,C={};j.T=C,Mp(s,!1,o,u);try{var M=O(),L=j.S;if(L!==null&&L(C,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var J=f5(M,h);xa(s,o,J,zn(s))}else xa(s,o,h,zn(s))}catch(ie){xa(s,o,{then:function(){},status:"rejected",reason:ie},zn())}finally{W.p=y,j.T=k}}function O5(){}function $p(s,o,u,h){if(s.tag!==5)throw Error(i(476));var O=lv(s).queue;sv(s,O,o,G,u===null?O5:function(){return ov(s),u(h)})}function lv(s){var o=s.memoizedState;if(o!==null)return o;o={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:br,lastRenderedState:G},next:null};var u={};return o.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:br,lastRenderedState:u},next:null},s.memoizedState=o,s=s.alternate,s!==null&&(s.memoizedState=o),o}function ov(s){var o=lv(s).next.queue;xa(s,o,{},zn())}function Rp(){return on(za)}function av(){return Mt().memoizedState}function cv(){return Mt().memoizedState}function g5(s){for(var o=s.return;o!==null;){switch(o.tag){case 24:case 3:var u=zn();s=Vr(u);var h=Yr(o,s,u);h!==null&&(qn(h,o,u),Oa(h,o,u)),o={cache:op()},s.payload=o;return}o=o.return}}function y5(s,o,u){var h=zn();u={lane:h,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null},Bu(s)?fv(o,u):(u=Fd(s,o,u,h),u!==null&&(qn(u,s,h),hv(u,o,h)))}function uv(s,o,u){var h=zn();xa(s,o,u,h)}function xa(s,o,u,h){var O={lane:h,revertLane:0,action:u,hasEagerState:!1,eagerState:null,next:null};if(Bu(s))fv(o,O);else{var y=s.alternate;if(s.lanes===0&&(y===null||y.lanes===0)&&(y=o.lastRenderedReducer,y!==null))try{var k=o.lastRenderedState,C=y(k,u);if(O.hasEagerState=!0,O.eagerState=C,Zn(C,k))return Cu(s,o,O,0),lt===null&&Qu(),!1}catch{}finally{}if(u=Fd(s,o,O,h),u!==null)return qn(u,s,h),hv(u,o,h),!0}return!1}function Mp(s,o,u,h){if(h={lane:2,revertLane:um(),action:h,hasEagerState:!1,eagerState:null,next:null},Bu(s)){if(o)throw Error(i(479))}else o=Fd(s,u,h,2),o!==null&&qn(o,s,2)}function Bu(s){var o=s.alternate;return s===Me||o!==null&&o===Me}function fv(s,o){Xl=Xu=!0;var u=s.pending;u===null?o.next=o:(o.next=u.next,u.next=o),s.pending=o}function hv(s,o,u){if((u&4194048)!==0){var h=o.lanes;h&=s.pendingLanes,u|=h,o.lanes=u,ut(s,u)}}var Vu={readContext:on,use:Nu,useCallback:Tt,useContext:Tt,useEffect:Tt,useImperativeHandle:Tt,useLayoutEffect:Tt,useInsertionEffect:Tt,useMemo:Tt,useReducer:Tt,useRef:Tt,useState:Tt,useDebugValue:Tt,useDeferredValue:Tt,useTransition:Tt,useSyncExternalStore:Tt,useId:Tt,useHostTransitionStatus:Tt,useFormState:Tt,useActionState:Tt,useOptimistic:Tt,useMemoCache:Tt,useCacheRefresh:Tt},dv={readContext:on,use:Nu,useCallback:function(s,o){return vn().memoizedState=[s,o===void 0?null:o],s},useContext:on,useEffect:Ib,useImperativeHandle:function(s,o,u){u=u!=null?u.concat([s]):null,Lu(4194308,4,ev.bind(null,o,s),u)},useLayoutEffect:function(s,o){return Lu(4194308,4,s,o)},useInsertionEffect:function(s,o){Lu(4,2,s,o)},useMemo:function(s,o){var u=vn();o=o===void 0?null:o;var h=s();if(zs){Dn(!0);try{s()}finally{Dn(!1)}}return u.memoizedState=[h,o],h},useReducer:function(s,o,u){var h=vn();if(u!==void 0){var O=u(o);if(zs){Dn(!0);try{u(o)}finally{Dn(!1)}}}else O=o;return h.memoizedState=h.baseState=O,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:O},h.queue=s,s=s.dispatch=y5.bind(null,Me,s),[h.memoizedState,s]},useRef:function(s){var o=vn();return s={current:s},o.memoizedState=s},useState:function(s){s=Cp(s);var o=s.queue,u=uv.bind(null,Me,o);return o.dispatch=u,[s.memoizedState,u]},useDebugValue:Pp,useDeferredValue:function(s,o){var u=vn();return Ap(u,s,o)},useTransition:function(){var s=Cp(!1);return s=sv.bind(null,Me,s.queue,!0,!1),vn().memoizedState=s,[!1,s]},useSyncExternalStore:function(s,o,u){var h=Me,O=vn();if(Ve){if(u===void 0)throw Error(i(407));u=u()}else{if(u=o(),lt===null)throw Error(i(349));(Ne&124)!==0||Db(h,o,u)}O.memoizedState=u;var y={value:u,getSnapshot:o};return O.queue=y,Ib(_b.bind(null,h,y,s),[s]),h.flags|=2048,Nl(9,qu(),Zb.bind(null,h,y,u,o),null),u},useId:function(){var s=vn(),o=lt.identifierPrefix;if(Ve){var u=Or,h=mr;u=(h&~(1<<32-kt(h)-1)).toString(32)+u,o="«"+o+"R"+u,u=ju++,0<u&&(o+="H"+u.toString(32)),o+="»"}else u=h5++,o="«"+o+"r"+u.toString(32)+"»";return s.memoizedState=o},useHostTransitionStatus:Rp,useFormState:Yb,useActionState:Yb,useOptimistic:function(s){var o=vn();o.memoizedState=o.baseState=s;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=u,o=Mp.bind(null,Me,!0,u),u.dispatch=o,[s,o]},useMemoCache:wp,useCacheRefresh:function(){return vn().memoizedState=g5.bind(null,Me)}},pv={readContext:on,use:Nu,useCallback:nv,useContext:on,useEffect:Fb,useImperativeHandle:tv,useInsertionEffect:Kb,useLayoutEffect:Jb,useMemo:iv,useReducer:zu,useRef:Hb,useState:function(){return zu(br)},useDebugValue:Pp,useDeferredValue:function(s,o){var u=Mt();return rv(u,He.memoizedState,s,o)},useTransition:function(){var s=zu(br)[0],o=Mt().memoizedState;return[typeof s=="boolean"?s:va(s),o]},useSyncExternalStore:Eb,useId:av,useHostTransitionStatus:Rp,useFormState:Ub,useActionState:Ub,useOptimistic:function(s,o){var u=Mt();return Nb(u,He,s,o)},useMemoCache:wp,useCacheRefresh:cv},b5={readContext:on,use:Nu,useCallback:nv,useContext:on,useEffect:Fb,useImperativeHandle:tv,useInsertionEffect:Kb,useLayoutEffect:Jb,useMemo:iv,useReducer:Qp,useRef:Hb,useState:function(){return Qp(br)},useDebugValue:Pp,useDeferredValue:function(s,o){var u=Mt();return He===null?Ap(u,s,o):rv(u,He.memoizedState,s,o)},useTransition:function(){var s=Qp(br)[0],o=Mt().memoizedState;return[typeof s=="boolean"?s:va(s),o]},useSyncExternalStore:Eb,useId:av,useHostTransitionStatus:Rp,useFormState:Wb,useActionState:Wb,useOptimistic:function(s,o){var u=Mt();return He!==null?Nb(u,He,s,o):(u.baseState=s,[s,u.queue.dispatch])},useMemoCache:wp,useCacheRefresh:cv},zl=null,wa=0;function Yu(s){var o=wa;return wa+=1,zl===null&&(zl=[]),Qb(zl,s,o)}function ka(s,o){o=o.props.ref,s.ref=o!==void 0?o:null}function Uu(s,o){throw o.$$typeof===m?Error(i(525)):(s=Object.prototype.toString.call(o),Error(i(31,s==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":s)))}function mv(s){var o=s._init;return o(s._payload)}function Ov(s){function o(z,N){if(s){var q=z.deletions;q===null?(z.deletions=[N],z.flags|=16):q.push(N)}}function u(z,N){if(!s)return null;for(;N!==null;)o(z,N),N=N.sibling;return null}function h(z){for(var N=new Map;z!==null;)z.key!==null?N.set(z.key,z):N.set(z.index,z),z=z.sibling;return N}function O(z,N){return z=pr(z,N),z.index=0,z.sibling=null,z}function y(z,N,q){return z.index=q,s?(q=z.alternate,q!==null?(q=q.index,q<N?(z.flags|=67108866,N):q):(z.flags|=67108866,N)):(z.flags|=1048576,N)}function k(z){return s&&z.alternate===null&&(z.flags|=67108866),z}function C(z,N,q,ee){return N===null||N.tag!==6?(N=Jd(q,z.mode,ee),N.return=z,N):(N=O(N,q),N.return=z,N)}function M(z,N,q,ee){var ge=q.type;return ge===v?J(z,N,q.props.children,ee,q.key):N!==null&&(N.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===X&&mv(ge)===N.type)?(N=O(N,q.props),ka(N,q),N.return=z,N):(N=Pu(q.type,q.key,q.props,null,z.mode,ee),ka(N,q),N.return=z,N)}function L(z,N,q,ee){return N===null||N.tag!==4||N.stateNode.containerInfo!==q.containerInfo||N.stateNode.implementation!==q.implementation?(N=ep(q,z.mode,ee),N.return=z,N):(N=O(N,q.children||[]),N.return=z,N)}function J(z,N,q,ee,ge){return N===null||N.tag!==7?(N=Ms(q,z.mode,ee,ge),N.return=z,N):(N=O(N,q),N.return=z,N)}function ie(z,N,q){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=Jd(""+N,z.mode,q),N.return=z,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case g:return q=Pu(N.type,N.key,N.props,null,z.mode,q),ka(q,N),q.return=z,q;case b:return N=ep(N,z.mode,q),N.return=z,N;case X:var ee=N._init;return N=ee(N._payload),ie(z,N,q)}if(oe(N)||F(N))return N=Ms(N,z.mode,q,null),N.return=z,N;if(typeof N.then=="function")return ie(z,Yu(N),q);if(N.$$typeof===A)return ie(z,Mu(z,N),q);Uu(z,N)}return null}function V(z,N,q,ee){var ge=N!==null?N.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return ge!==null?null:C(z,N,""+q,ee);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case g:return q.key===ge?M(z,N,q,ee):null;case b:return q.key===ge?L(z,N,q,ee):null;case X:return ge=q._init,q=ge(q._payload),V(z,N,q,ee)}if(oe(q)||F(q))return ge!==null?null:J(z,N,q,ee,null);if(typeof q.then=="function")return V(z,N,Yu(q),ee);if(q.$$typeof===A)return V(z,N,Mu(z,q),ee);Uu(z,q)}return null}function Y(z,N,q,ee,ge){if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return z=z.get(q)||null,C(N,z,""+ee,ge);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case g:return z=z.get(ee.key===null?q:ee.key)||null,M(N,z,ee,ge);case b:return z=z.get(ee.key===null?q:ee.key)||null,L(N,z,ee,ge);case X:var De=ee._init;return ee=De(ee._payload),Y(z,N,q,ee,ge)}if(oe(ee)||F(ee))return z=z.get(q)||null,J(N,z,ee,ge,null);if(typeof ee.then=="function")return Y(z,N,q,Yu(ee),ge);if(ee.$$typeof===A)return Y(z,N,q,Mu(N,ee),ge);Uu(N,ee)}return null}function Pe(z,N,q,ee){for(var ge=null,De=null,xe=N,Ce=N=0,Ht=null;xe!==null&&Ce<q.length;Ce++){xe.index>Ce?(Ht=xe,xe=null):Ht=xe.sibling;var Be=V(z,xe,q[Ce],ee);if(Be===null){xe===null&&(xe=Ht);break}s&&xe&&Be.alternate===null&&o(z,xe),N=y(Be,N,Ce),De===null?ge=Be:De.sibling=Be,De=Be,xe=Ht}if(Ce===q.length)return u(z,xe),Ve&&Ds(z,Ce),ge;if(xe===null){for(;Ce<q.length;Ce++)xe=ie(z,q[Ce],ee),xe!==null&&(N=y(xe,N,Ce),De===null?ge=xe:De.sibling=xe,De=xe);return Ve&&Ds(z,Ce),ge}for(xe=h(xe);Ce<q.length;Ce++)Ht=Y(xe,z,Ce,q[Ce],ee),Ht!==null&&(s&&Ht.alternate!==null&&xe.delete(Ht.key===null?Ce:Ht.key),N=y(Ht,N,Ce),De===null?ge=Ht:De.sibling=Ht,De=Ht);return s&&xe.forEach(function(as){return o(z,as)}),Ve&&Ds(z,Ce),ge}function ke(z,N,q,ee){if(q==null)throw Error(i(151));for(var ge=null,De=null,xe=N,Ce=N=0,Ht=null,Be=q.next();xe!==null&&!Be.done;Ce++,Be=q.next()){xe.index>Ce?(Ht=xe,xe=null):Ht=xe.sibling;var as=V(z,xe,Be.value,ee);if(as===null){xe===null&&(xe=Ht);break}s&&xe&&as.alternate===null&&o(z,xe),N=y(as,N,Ce),De===null?ge=as:De.sibling=as,De=as,xe=Ht}if(Be.done)return u(z,xe),Ve&&Ds(z,Ce),ge;if(xe===null){for(;!Be.done;Ce++,Be=q.next())Be=ie(z,Be.value,ee),Be!==null&&(N=y(Be,N,Ce),De===null?ge=Be:De.sibling=Be,De=Be);return Ve&&Ds(z,Ce),ge}for(xe=h(xe);!Be.done;Ce++,Be=q.next())Be=Y(xe,z,Ce,Be.value,ee),Be!==null&&(s&&Be.alternate!==null&&xe.delete(Be.key===null?Ce:Be.key),N=y(Be,N,Ce),De===null?ge=Be:De.sibling=Be,De=Be);return s&&xe.forEach(function(vR){return o(z,vR)}),Ve&&Ds(z,Ce),ge}function Fe(z,N,q,ee){if(typeof q=="object"&&q!==null&&q.type===v&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case g:e:{for(var ge=q.key;N!==null;){if(N.key===ge){if(ge=q.type,ge===v){if(N.tag===7){u(z,N.sibling),ee=O(N,q.props.children),ee.return=z,z=ee;break e}}else if(N.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===X&&mv(ge)===N.type){u(z,N.sibling),ee=O(N,q.props),ka(ee,q),ee.return=z,z=ee;break e}u(z,N);break}else o(z,N);N=N.sibling}q.type===v?(ee=Ms(q.props.children,z.mode,ee,q.key),ee.return=z,z=ee):(ee=Pu(q.type,q.key,q.props,null,z.mode,ee),ka(ee,q),ee.return=z,z=ee)}return k(z);case b:e:{for(ge=q.key;N!==null;){if(N.key===ge)if(N.tag===4&&N.stateNode.containerInfo===q.containerInfo&&N.stateNode.implementation===q.implementation){u(z,N.sibling),ee=O(N,q.children||[]),ee.return=z,z=ee;break e}else{u(z,N);break}else o(z,N);N=N.sibling}ee=ep(q,z.mode,ee),ee.return=z,z=ee}return k(z);case X:return ge=q._init,q=ge(q._payload),Fe(z,N,q,ee)}if(oe(q))return Pe(z,N,q,ee);if(F(q)){if(ge=F(q),typeof ge!="function")throw Error(i(150));return q=ge.call(q),ke(z,N,q,ee)}if(typeof q.then=="function")return Fe(z,N,Yu(q),ee);if(q.$$typeof===A)return Fe(z,N,Mu(z,q),ee);Uu(z,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,N!==null&&N.tag===6?(u(z,N.sibling),ee=O(N,q),ee.return=z,z=ee):(u(z,N),ee=Jd(q,z.mode,ee),ee.return=z,z=ee),k(z)):u(z,N)}return function(z,N,q,ee){try{wa=0;var ge=Fe(z,N,q,ee);return zl=null,ge}catch(xe){if(xe===pa||xe===Du)throw xe;var De=_n(29,xe,null,z.mode);return De.lanes=ee,De.return=z,De}finally{}}}var ql=Ov(!0),gv=Ov(!1),li=B(null),Di=null;function Gr(s){var o=s.alternate;H(Lt,Lt.current&1),H(li,s),Di===null&&(o===null||_l.current!==null||o.memoizedState!==null)&&(Di=s)}function yv(s){if(s.tag===22){if(H(Lt,Lt.current),H(li,s),Di===null){var o=s.alternate;o!==null&&o.memoizedState!==null&&(Di=s)}}else Wr()}function Wr(){H(Lt,Lt.current),H(li,li.current)}function vr(s){ne(li),Di===s&&(Di=null),ne(Lt)}var Lt=B(0);function Gu(s){for(var o=s;o!==null;){if(o.tag===13){var u=o.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||u.data==="$?"||xm(u)))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break;for(;o.sibling===null;){if(o.return===null||o.return===s)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}function Ep(s,o,u,h){o=s.memoizedState,u=u(h,o),u=u==null?o:p({},o,u),s.memoizedState=u,s.lanes===0&&(s.updateQueue.baseState=u)}var Dp={enqueueSetState:function(s,o,u){s=s._reactInternals;var h=zn(),O=Vr(h);O.payload=o,u!=null&&(O.callback=u),o=Yr(s,O,h),o!==null&&(qn(o,s,h),Oa(o,s,h))},enqueueReplaceState:function(s,o,u){s=s._reactInternals;var h=zn(),O=Vr(h);O.tag=1,O.payload=o,u!=null&&(O.callback=u),o=Yr(s,O,h),o!==null&&(qn(o,s,h),Oa(o,s,h))},enqueueForceUpdate:function(s,o){s=s._reactInternals;var u=zn(),h=Vr(u);h.tag=2,o!=null&&(h.callback=o),o=Yr(s,h,u),o!==null&&(qn(o,s,u),Oa(o,s,u))}};function bv(s,o,u,h,O,y,k){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(h,y,k):o.prototype&&o.prototype.isPureReactComponent?!la(u,h)||!la(O,y):!0}function vv(s,o,u,h){s=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(u,h),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(u,h),o.state!==s&&Dp.enqueueReplaceState(o,o.state,null)}function qs(s,o){var u=o;if("ref"in o){u={};for(var h in o)h!=="ref"&&(u[h]=o[h])}if(s=s.defaultProps){u===o&&(u=p({},u));for(var O in s)u[O]===void 0&&(u[O]=s[O])}return u}var Wu=typeof reportError=="function"?reportError:function(s){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof s=="object"&&s!==null&&typeof s.message=="string"?String(s.message):String(s),error:s});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",s);return}console.error(s)};function Sv(s){Wu(s)}function xv(s){console.error(s)}function wv(s){Wu(s)}function Hu(s,o){try{var u=s.onUncaughtError;u(o.value,{componentStack:o.stack})}catch(h){setTimeout(function(){throw h})}}function kv(s,o,u){try{var h=s.onCaughtError;h(u.value,{componentStack:u.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(O){setTimeout(function(){throw O})}}function Zp(s,o,u){return u=Vr(u),u.tag=3,u.payload={element:null},u.callback=function(){Hu(s,o)},u}function Qv(s){return s=Vr(s),s.tag=3,s}function Cv(s,o,u,h){var O=u.type.getDerivedStateFromError;if(typeof O=="function"){var y=h.value;s.payload=function(){return O(y)},s.callback=function(){kv(o,u,h)}}var k=u.stateNode;k!==null&&typeof k.componentDidCatch=="function"&&(s.callback=function(){kv(o,u,h),typeof O!="function"&&(es===null?es=new Set([this]):es.add(this));var C=h.stack;this.componentDidCatch(h.value,{componentStack:C!==null?C:""})})}function v5(s,o,u,h,O){if(u.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(o=u.alternate,o!==null&&fa(o,u,O,!0),u=li.current,u!==null){switch(u.tag){case 13:return Di===null?sm():u.alternate===null&&bt===0&&(bt=3),u.flags&=-257,u.flags|=65536,u.lanes=O,h===up?u.flags|=16384:(o=u.updateQueue,o===null?u.updateQueue=new Set([h]):o.add(h),om(s,h,O)),!1;case 22:return u.flags|=65536,h===up?u.flags|=16384:(o=u.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([h])},u.updateQueue=o):(u=o.retryQueue,u===null?o.retryQueue=new Set([h]):u.add(h)),om(s,h,O)),!1}throw Error(i(435,u.tag))}return om(s,h,O),sm(),!1}if(Ve)return o=li.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=O,h!==ip&&(s=Error(i(422),{cause:h}),ua(ni(s,u)))):(h!==ip&&(o=Error(i(423),{cause:h}),ua(ni(o,u))),s=s.current.alternate,s.flags|=65536,O&=-O,s.lanes|=O,h=ni(h,u),O=Zp(s.stateNode,h,O),dp(s,O),bt!==4&&(bt=2)),!1;var y=Error(i(520),{cause:h});if(y=ni(y,u),Ra===null?Ra=[y]:Ra.push(y),bt!==4&&(bt=2),o===null)return!0;h=ni(h,u),u=o;do{switch(u.tag){case 3:return u.flags|=65536,s=O&-O,u.lanes|=s,s=Zp(u.stateNode,h,s),dp(u,s),!1;case 1:if(o=u.type,y=u.stateNode,(u.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(es===null||!es.has(y))))return u.flags|=65536,O&=-O,u.lanes|=O,O=Qv(O),Cv(O,s,u,h),dp(u,O),!1}u=u.return}while(u!==null);return!1}var Tv=Error(i(461)),Gt=!1;function Kt(s,o,u,h){o.child=s===null?gv(o,null,u,h):ql(o,s.child,u,h)}function Pv(s,o,u,h,O){u=u.render;var y=o.ref;if("ref"in h){var k={};for(var C in h)C!=="ref"&&(k[C]=h[C])}else k=h;return js(o),h=yp(s,o,u,k,y,O),C=bp(),s!==null&&!Gt?(vp(s,o,O),Sr(s,o,O)):(Ve&&C&&tp(o),o.flags|=1,Kt(s,o,h,O),o.child)}function Av(s,o,u,h,O){if(s===null){var y=u.type;return typeof y=="function"&&!Kd(y)&&y.defaultProps===void 0&&u.compare===null?(o.tag=15,o.type=y,$v(s,o,y,h,O)):(s=Pu(u.type,null,h,o,o.mode,O),s.ref=o.ref,s.return=o,o.child=s)}if(y=s.child,!Bp(s,O)){var k=y.memoizedProps;if(u=u.compare,u=u!==null?u:la,u(k,h)&&s.ref===o.ref)return Sr(s,o,O)}return o.flags|=1,s=pr(y,h),s.ref=o.ref,s.return=o,o.child=s}function $v(s,o,u,h,O){if(s!==null){var y=s.memoizedProps;if(la(y,h)&&s.ref===o.ref)if(Gt=!1,o.pendingProps=h=y,Bp(s,O))(s.flags&131072)!==0&&(Gt=!0);else return o.lanes=s.lanes,Sr(s,o,O)}return _p(s,o,u,h,O)}function Rv(s,o,u){var h=o.pendingProps,O=h.children,y=s!==null?s.memoizedState:null;if(h.mode==="hidden"){if((o.flags&128)!==0){if(h=y!==null?y.baseLanes|u:u,s!==null){for(O=o.child=s.child,y=0;O!==null;)y=y|O.lanes|O.childLanes,O=O.sibling;o.childLanes=y&~h}else o.childLanes=0,o.child=null;return Mv(s,o,h,u)}if((u&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},s!==null&&Eu(o,y!==null?y.cachePool:null),y!==null?$b(o,y):mp(),yv(o);else return o.lanes=o.childLanes=536870912,Mv(s,o,y!==null?y.baseLanes|u:u,u)}else y!==null?(Eu(o,y.cachePool),$b(o,y),Wr(),o.memoizedState=null):(s!==null&&Eu(o,null),mp(),Wr());return Kt(s,o,O,u),o.child}function Mv(s,o,u,h){var O=cp();return O=O===null?null:{parent:qt._currentValue,pool:O},o.memoizedState={baseLanes:u,cachePool:O},s!==null&&Eu(o,null),mp(),yv(o),s!==null&&fa(s,o,h,!0),null}function Iu(s,o){var u=o.ref;if(u===null)s!==null&&s.ref!==null&&(o.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(i(284));(s===null||s.ref!==u)&&(o.flags|=4194816)}}function _p(s,o,u,h,O){return js(o),u=yp(s,o,u,h,void 0,O),h=bp(),s!==null&&!Gt?(vp(s,o,O),Sr(s,o,O)):(Ve&&h&&tp(o),o.flags|=1,Kt(s,o,u,O),o.child)}function Ev(s,o,u,h,O,y){return js(o),o.updateQueue=null,u=Mb(o,h,u,O),Rb(s),h=bp(),s!==null&&!Gt?(vp(s,o,y),Sr(s,o,y)):(Ve&&h&&tp(o),o.flags|=1,Kt(s,o,u,y),o.child)}function Dv(s,o,u,h,O){if(js(o),o.stateNode===null){var y=Rl,k=u.contextType;typeof k=="object"&&k!==null&&(y=on(k)),y=new u(h,y),o.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=Dp,o.stateNode=y,y._reactInternals=o,y=o.stateNode,y.props=h,y.state=o.memoizedState,y.refs={},fp(o),k=u.contextType,y.context=typeof k=="object"&&k!==null?on(k):Rl,y.state=o.memoizedState,k=u.getDerivedStateFromProps,typeof k=="function"&&(Ep(o,u,k,h),y.state=o.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(k=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),k!==y.state&&Dp.enqueueReplaceState(y,y.state,null),ya(o,h,y,O),ga(),y.state=o.memoizedState),typeof y.componentDidMount=="function"&&(o.flags|=4194308),h=!0}else if(s===null){y=o.stateNode;var C=o.memoizedProps,M=qs(u,C);y.props=M;var L=y.context,J=u.contextType;k=Rl,typeof J=="object"&&J!==null&&(k=on(J));var ie=u.getDerivedStateFromProps;J=typeof ie=="function"||typeof y.getSnapshotBeforeUpdate=="function",C=o.pendingProps!==C,J||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(C||L!==k)&&vv(o,y,h,k),Br=!1;var V=o.memoizedState;y.state=V,ya(o,h,y,O),ga(),L=o.memoizedState,C||V!==L||Br?(typeof ie=="function"&&(Ep(o,u,ie,h),L=o.memoizedState),(M=Br||bv(o,u,M,h,V,L,k))?(J||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(o.flags|=4194308)):(typeof y.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=h,o.memoizedState=L),y.props=h,y.state=L,y.context=k,h=M):(typeof y.componentDidMount=="function"&&(o.flags|=4194308),h=!1)}else{y=o.stateNode,hp(s,o),k=o.memoizedProps,J=qs(u,k),y.props=J,ie=o.pendingProps,V=y.context,L=u.contextType,M=Rl,typeof L=="object"&&L!==null&&(M=on(L)),C=u.getDerivedStateFromProps,(L=typeof C=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(k!==ie||V!==M)&&vv(o,y,h,M),Br=!1,V=o.memoizedState,y.state=V,ya(o,h,y,O),ga();var Y=o.memoizedState;k!==ie||V!==Y||Br||s!==null&&s.dependencies!==null&&Ru(s.dependencies)?(typeof C=="function"&&(Ep(o,u,C,h),Y=o.memoizedState),(J=Br||bv(o,u,J,h,V,Y,M)||s!==null&&s.dependencies!==null&&Ru(s.dependencies))?(L||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(h,Y,M),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(h,Y,M)),typeof y.componentDidUpdate=="function"&&(o.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof y.componentDidUpdate!="function"||k===s.memoizedProps&&V===s.memoizedState||(o.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||k===s.memoizedProps&&V===s.memoizedState||(o.flags|=1024),o.memoizedProps=h,o.memoizedState=Y),y.props=h,y.state=Y,y.context=M,h=J):(typeof y.componentDidUpdate!="function"||k===s.memoizedProps&&V===s.memoizedState||(o.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||k===s.memoizedProps&&V===s.memoizedState||(o.flags|=1024),h=!1)}return y=h,Iu(s,o),h=(o.flags&128)!==0,y||h?(y=o.stateNode,u=h&&typeof u.getDerivedStateFromError!="function"?null:y.render(),o.flags|=1,s!==null&&h?(o.child=ql(o,s.child,null,O),o.child=ql(o,null,u,O)):Kt(s,o,u,O),o.memoizedState=y.state,s=o.child):s=Sr(s,o,O),s}function Zv(s,o,u,h){return ca(),o.flags|=256,Kt(s,o,u,h),o.child}var Xp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function jp(s){return{baseLanes:s,cachePool:xb()}}function Np(s,o,u){return s=s!==null?s.childLanes&~u:0,o&&(s|=oi),s}function _v(s,o,u){var h=o.pendingProps,O=!1,y=(o.flags&128)!==0,k;if((k=y)||(k=s!==null&&s.memoizedState===null?!1:(Lt.current&2)!==0),k&&(O=!0,o.flags&=-129),k=(o.flags&32)!==0,o.flags&=-33,s===null){if(Ve){if(O?Gr(o):Wr(),Ve){var C=yt,M;if(M=C){e:{for(M=C,C=Ei;M.nodeType!==8;){if(!C){C=null;break e}if(M=ki(M.nextSibling),M===null){C=null;break e}}C=M}C!==null?(o.memoizedState={dehydrated:C,treeContext:Es!==null?{id:mr,overflow:Or}:null,retryLane:536870912,hydrationErrors:null},M=_n(18,null,null,0),M.stateNode=C,M.return=o,o.child=M,pn=o,yt=null,M=!0):M=!1}M||_s(o)}if(C=o.memoizedState,C!==null&&(C=C.dehydrated,C!==null))return xm(C)?o.lanes=32:o.lanes=536870912,null;vr(o)}return C=h.children,h=h.fallback,O?(Wr(),O=o.mode,C=Fu({mode:"hidden",children:C},O),h=Ms(h,O,u,null),C.return=o,h.return=o,C.sibling=h,o.child=C,O=o.child,O.memoizedState=jp(u),O.childLanes=Np(s,k,u),o.memoizedState=Xp,h):(Gr(o),zp(o,C))}if(M=s.memoizedState,M!==null&&(C=M.dehydrated,C!==null)){if(y)o.flags&256?(Gr(o),o.flags&=-257,o=qp(s,o,u)):o.memoizedState!==null?(Wr(),o.child=s.child,o.flags|=128,o=null):(Wr(),O=h.fallback,C=o.mode,h=Fu({mode:"visible",children:h.children},C),O=Ms(O,C,u,null),O.flags|=2,h.return=o,O.return=o,h.sibling=O,o.child=h,ql(o,s.child,null,u),h=o.child,h.memoizedState=jp(u),h.childLanes=Np(s,k,u),o.memoizedState=Xp,o=O);else if(Gr(o),xm(C)){if(k=C.nextSibling&&C.nextSibling.dataset,k)var L=k.dgst;k=L,h=Error(i(419)),h.stack="",h.digest=k,ua({value:h,source:null,stack:null}),o=qp(s,o,u)}else if(Gt||fa(s,o,u,!1),k=(u&s.childLanes)!==0,Gt||k){if(k=lt,k!==null&&(h=u&-u,h=(h&42)!==0?1:pt(h),h=(h&(k.suspendedLanes|u))!==0?0:h,h!==0&&h!==M.retryLane))throw M.retryLane=h,$l(s,h),qn(k,s,h),Tv;C.data==="$?"||sm(),o=qp(s,o,u)}else C.data==="$?"?(o.flags|=192,o.child=s.child,o=null):(s=M.treeContext,yt=ki(C.nextSibling),pn=o,Ve=!0,Zs=null,Ei=!1,s!==null&&(ri[si++]=mr,ri[si++]=Or,ri[si++]=Es,mr=s.id,Or=s.overflow,Es=o),o=zp(o,h.children),o.flags|=4096);return o}return O?(Wr(),O=h.fallback,C=o.mode,M=s.child,L=M.sibling,h=pr(M,{mode:"hidden",children:h.children}),h.subtreeFlags=M.subtreeFlags&65011712,L!==null?O=pr(L,O):(O=Ms(O,C,u,null),O.flags|=2),O.return=o,h.return=o,h.sibling=O,o.child=h,h=O,O=o.child,C=s.child.memoizedState,C===null?C=jp(u):(M=C.cachePool,M!==null?(L=qt._currentValue,M=M.parent!==L?{parent:L,pool:L}:M):M=xb(),C={baseLanes:C.baseLanes|u,cachePool:M}),O.memoizedState=C,O.childLanes=Np(s,k,u),o.memoizedState=Xp,h):(Gr(o),u=s.child,s=u.sibling,u=pr(u,{mode:"visible",children:h.children}),u.return=o,u.sibling=null,s!==null&&(k=o.deletions,k===null?(o.deletions=[s],o.flags|=16):k.push(s)),o.child=u,o.memoizedState=null,u)}function zp(s,o){return o=Fu({mode:"visible",children:o},s.mode),o.return=s,s.child=o}function Fu(s,o){return s=_n(22,s,null,o),s.lanes=0,s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},s}function qp(s,o,u){return ql(o,s.child,null,u),s=zp(o,o.pendingProps.children),s.flags|=2,o.memoizedState=null,s}function Xv(s,o,u){s.lanes|=o;var h=s.alternate;h!==null&&(h.lanes|=o),sp(s.return,o,u)}function Lp(s,o,u,h,O){var y=s.memoizedState;y===null?s.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:h,tail:u,tailMode:O}:(y.isBackwards=o,y.rendering=null,y.renderingStartTime=0,y.last=h,y.tail=u,y.tailMode=O)}function jv(s,o,u){var h=o.pendingProps,O=h.revealOrder,y=h.tail;if(Kt(s,o,h.children,u),h=Lt.current,(h&2)!==0)h=h&1|2,o.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=o.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&Xv(s,u,o);else if(s.tag===19)Xv(s,u,o);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break e;for(;s.sibling===null;){if(s.return===null||s.return===o)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}h&=1}switch(H(Lt,h),O){case"forwards":for(u=o.child,O=null;u!==null;)s=u.alternate,s!==null&&Gu(s)===null&&(O=u),u=u.sibling;u=O,u===null?(O=o.child,o.child=null):(O=u.sibling,u.sibling=null),Lp(o,!1,O,u,y);break;case"backwards":for(u=null,O=o.child,o.child=null;O!==null;){if(s=O.alternate,s!==null&&Gu(s)===null){o.child=O;break}s=O.sibling,O.sibling=u,u=O,O=s}Lp(o,!0,u,null,y);break;case"together":Lp(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function Sr(s,o,u){if(s!==null&&(o.dependencies=s.dependencies),Jr|=o.lanes,(u&o.childLanes)===0)if(s!==null){if(fa(s,o,u,!1),(u&o.childLanes)===0)return null}else return null;if(s!==null&&o.child!==s.child)throw Error(i(153));if(o.child!==null){for(s=o.child,u=pr(s,s.pendingProps),o.child=u,u.return=o;s.sibling!==null;)s=s.sibling,u=u.sibling=pr(s,s.pendingProps),u.return=o;u.sibling=null}return o.child}function Bp(s,o){return(s.lanes&o)!==0?!0:(s=s.dependencies,!!(s!==null&&Ru(s)))}function S5(s,o,u){switch(o.tag){case 3:Qe(o,o.stateNode.containerInfo),Lr(o,qt,s.memoizedState.cache),ca();break;case 27:case 5:Ke(o);break;case 4:Qe(o,o.stateNode.containerInfo);break;case 10:Lr(o,o.type,o.memoizedProps.value);break;case 13:var h=o.memoizedState;if(h!==null)return h.dehydrated!==null?(Gr(o),o.flags|=128,null):(u&o.child.childLanes)!==0?_v(s,o,u):(Gr(o),s=Sr(s,o,u),s!==null?s.sibling:null);Gr(o);break;case 19:var O=(s.flags&128)!==0;if(h=(u&o.childLanes)!==0,h||(fa(s,o,u,!1),h=(u&o.childLanes)!==0),O){if(h)return jv(s,o,u);o.flags|=128}if(O=o.memoizedState,O!==null&&(O.rendering=null,O.tail=null,O.lastEffect=null),H(Lt,Lt.current),h)break;return null;case 22:case 23:return o.lanes=0,Rv(s,o,u);case 24:Lr(o,qt,s.memoizedState.cache)}return Sr(s,o,u)}function Nv(s,o,u){if(s!==null)if(s.memoizedProps!==o.pendingProps)Gt=!0;else{if(!Bp(s,u)&&(o.flags&128)===0)return Gt=!1,S5(s,o,u);Gt=(s.flags&131072)!==0}else Gt=!1,Ve&&(o.flags&1048576)!==0&&mb(o,$u,o.index);switch(o.lanes=0,o.tag){case 16:e:{s=o.pendingProps;var h=o.elementType,O=h._init;if(h=O(h._payload),o.type=h,typeof h=="function")Kd(h)?(s=qs(h,s),o.tag=1,o=Dv(null,o,h,s,u)):(o.tag=0,o=_p(null,o,h,s,u));else{if(h!=null){if(O=h.$$typeof,O===D){o.tag=11,o=Pv(null,o,h,s,u);break e}else if(O===_){o.tag=14,o=Av(null,o,h,s,u);break e}}throw o=he(h)||h,Error(i(306,o,""))}}return o;case 0:return _p(s,o,o.type,o.pendingProps,u);case 1:return h=o.type,O=qs(h,o.pendingProps),Dv(s,o,h,O,u);case 3:e:{if(Qe(o,o.stateNode.containerInfo),s===null)throw Error(i(387));h=o.pendingProps;var y=o.memoizedState;O=y.element,hp(s,o),ya(o,h,null,u);var k=o.memoizedState;if(h=k.cache,Lr(o,qt,h),h!==y.cache&&lp(o,[qt],u,!0),ga(),h=k.element,y.isDehydrated)if(y={element:h,isDehydrated:!1,cache:k.cache},o.updateQueue.baseState=y,o.memoizedState=y,o.flags&256){o=Zv(s,o,h,u);break e}else if(h!==O){O=ni(Error(i(424)),o),ua(O),o=Zv(s,o,h,u);break e}else{switch(s=o.stateNode.containerInfo,s.nodeType){case 9:s=s.body;break;default:s=s.nodeName==="HTML"?s.ownerDocument.body:s}for(yt=ki(s.firstChild),pn=o,Ve=!0,Zs=null,Ei=!0,u=gv(o,null,h,u),o.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(ca(),h===O){o=Sr(s,o,u);break e}Kt(s,o,h,u)}o=o.child}return o;case 26:return Iu(s,o),s===null?(u=B1(o.type,null,o.pendingProps,null))?o.memoizedState=u:Ve||(u=o.type,s=o.pendingProps,h=hf(ae.current).createElement(u),h[Ct]=o,h[st]=s,en(h,u,s),Ut(h),o.stateNode=h):o.memoizedState=B1(o.type,s.memoizedProps,o.pendingProps,s.memoizedState),null;case 27:return Ke(o),s===null&&Ve&&(h=o.stateNode=z1(o.type,o.pendingProps,ae.current),pn=o,Ei=!0,O=yt,is(o.type)?(wm=O,yt=ki(h.firstChild)):yt=O),Kt(s,o,o.pendingProps.children,u),Iu(s,o),s===null&&(o.flags|=4194304),o.child;case 5:return s===null&&Ve&&((O=h=yt)&&(h=H5(h,o.type,o.pendingProps,Ei),h!==null?(o.stateNode=h,pn=o,yt=ki(h.firstChild),Ei=!1,O=!0):O=!1),O||_s(o)),Ke(o),O=o.type,y=o.pendingProps,k=s!==null?s.memoizedProps:null,h=y.children,bm(O,y)?h=null:k!==null&&bm(O,k)&&(o.flags|=32),o.memoizedState!==null&&(O=yp(s,o,d5,null,null,u),za._currentValue=O),Iu(s,o),Kt(s,o,h,u),o.child;case 6:return s===null&&Ve&&((s=u=yt)&&(u=I5(u,o.pendingProps,Ei),u!==null?(o.stateNode=u,pn=o,yt=null,s=!0):s=!1),s||_s(o)),null;case 13:return _v(s,o,u);case 4:return Qe(o,o.stateNode.containerInfo),h=o.pendingProps,s===null?o.child=ql(o,null,h,u):Kt(s,o,h,u),o.child;case 11:return Pv(s,o,o.type,o.pendingProps,u);case 7:return Kt(s,o,o.pendingProps,u),o.child;case 8:return Kt(s,o,o.pendingProps.children,u),o.child;case 12:return Kt(s,o,o.pendingProps.children,u),o.child;case 10:return h=o.pendingProps,Lr(o,o.type,h.value),Kt(s,o,h.children,u),o.child;case 9:return O=o.type._context,h=o.pendingProps.children,js(o),O=on(O),h=h(O),o.flags|=1,Kt(s,o,h,u),o.child;case 14:return Av(s,o,o.type,o.pendingProps,u);case 15:return $v(s,o,o.type,o.pendingProps,u);case 19:return jv(s,o,u);case 31:return h=o.pendingProps,u=o.mode,h={mode:h.mode,children:h.children},s===null?(u=Fu(h,u),u.ref=o.ref,o.child=u,u.return=o,o=u):(u=pr(s.child,h),u.ref=o.ref,o.child=u,u.return=o,o=u),o;case 22:return Rv(s,o,u);case 24:return js(o),h=on(qt),s===null?(O=cp(),O===null&&(O=lt,y=op(),O.pooledCache=y,y.refCount++,y!==null&&(O.pooledCacheLanes|=u),O=y),o.memoizedState={parent:h,cache:O},fp(o),Lr(o,qt,O)):((s.lanes&u)!==0&&(hp(s,o),ya(o,null,null,u),ga()),O=s.memoizedState,y=o.memoizedState,O.parent!==h?(O={parent:h,cache:h},o.memoizedState=O,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=O),Lr(o,qt,h)):(h=y.cache,Lr(o,qt,h),h!==O.cache&&lp(o,[qt],u,!0))),Kt(s,o,o.pendingProps.children,u),o.child;case 29:throw o.pendingProps}throw Error(i(156,o.tag))}function xr(s){s.flags|=4}function zv(s,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)s.flags&=-16777217;else if(s.flags|=16777216,!W1(o)){if(o=li.current,o!==null&&((Ne&4194048)===Ne?Di!==null:(Ne&62914560)!==Ne&&(Ne&536870912)===0||o!==Di))throw ma=up,wb;s.flags|=8192}}function Ku(s,o){o!==null&&(s.flags|=4),s.flags&16384&&(o=s.tag!==22?ml():536870912,s.lanes|=o,Yl|=o)}function Qa(s,o){if(!Ve)switch(s.tailMode){case"hidden":o=s.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?s.tail=null:u.sibling=null;break;case"collapsed":u=s.tail;for(var h=null;u!==null;)u.alternate!==null&&(h=u),u=u.sibling;h===null?o||s.tail===null?s.tail=null:s.tail.sibling=null:h.sibling=null}}function mt(s){var o=s.alternate!==null&&s.alternate.child===s.child,u=0,h=0;if(o)for(var O=s.child;O!==null;)u|=O.lanes|O.childLanes,h|=O.subtreeFlags&65011712,h|=O.flags&65011712,O.return=s,O=O.sibling;else for(O=s.child;O!==null;)u|=O.lanes|O.childLanes,h|=O.subtreeFlags,h|=O.flags,O.return=s,O=O.sibling;return s.subtreeFlags|=h,s.childLanes=u,o}function x5(s,o,u){var h=o.pendingProps;switch(np(o),o.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mt(o),null;case 1:return mt(o),null;case 3:return u=o.stateNode,h=null,s!==null&&(h=s.memoizedState.cache),o.memoizedState.cache!==h&&(o.flags|=2048),yr(qt),Ye(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(s===null||s.child===null)&&(aa(o)?xr(o):s===null||s.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,yb())),mt(o),null;case 26:return u=o.memoizedState,s===null?(xr(o),u!==null?(mt(o),zv(o,u)):(mt(o),o.flags&=-16777217)):u?u!==s.memoizedState?(xr(o),mt(o),zv(o,u)):(mt(o),o.flags&=-16777217):(s.memoizedProps!==h&&xr(o),mt(o),o.flags&=-16777217),null;case 27:je(o),u=ae.current;var O=o.type;if(s!==null&&o.stateNode!=null)s.memoizedProps!==h&&xr(o);else{if(!h){if(o.stateNode===null)throw Error(i(166));return mt(o),null}s=se.current,aa(o)?Ob(o):(s=z1(O,h,u),o.stateNode=s,xr(o))}return mt(o),null;case 5:if(je(o),u=o.type,s!==null&&o.stateNode!=null)s.memoizedProps!==h&&xr(o);else{if(!h){if(o.stateNode===null)throw Error(i(166));return mt(o),null}if(s=se.current,aa(o))Ob(o);else{switch(O=hf(ae.current),s){case 1:s=O.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:s=O.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":s=O.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":s=O.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":s=O.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof h.is=="string"?O.createElement("select",{is:h.is}):O.createElement("select"),h.multiple?s.multiple=!0:h.size&&(s.size=h.size);break;default:s=typeof h.is=="string"?O.createElement(u,{is:h.is}):O.createElement(u)}}s[Ct]=o,s[st]=h;e:for(O=o.child;O!==null;){if(O.tag===5||O.tag===6)s.appendChild(O.stateNode);else if(O.tag!==4&&O.tag!==27&&O.child!==null){O.child.return=O,O=O.child;continue}if(O===o)break e;for(;O.sibling===null;){if(O.return===null||O.return===o)break e;O=O.return}O.sibling.return=O.return,O=O.sibling}o.stateNode=s;e:switch(en(s,u,h),u){case"button":case"input":case"select":case"textarea":s=!!h.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&xr(o)}}return mt(o),o.flags&=-16777217,null;case 6:if(s&&o.stateNode!=null)s.memoizedProps!==h&&xr(o);else{if(typeof h!="string"&&o.stateNode===null)throw Error(i(166));if(s=ae.current,aa(o)){if(s=o.stateNode,u=o.memoizedProps,h=null,O=pn,O!==null)switch(O.tag){case 27:case 5:h=O.memoizedProps}s[Ct]=o,s=!!(s.nodeValue===u||h!==null&&h.suppressHydrationWarning===!0||E1(s.nodeValue,u)),s||_s(o)}else s=hf(s).createTextNode(h),s[Ct]=o,o.stateNode=s}return mt(o),null;case 13:if(h=o.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(O=aa(o),h!==null&&h.dehydrated!==null){if(s===null){if(!O)throw Error(i(318));if(O=o.memoizedState,O=O!==null?O.dehydrated:null,!O)throw Error(i(317));O[Ct]=o}else ca(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;mt(o),O=!1}else O=yb(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=O),O=!0;if(!O)return o.flags&256?(vr(o),o):(vr(o),null)}if(vr(o),(o.flags&128)!==0)return o.lanes=u,o;if(u=h!==null,s=s!==null&&s.memoizedState!==null,u){h=o.child,O=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(O=h.alternate.memoizedState.cachePool.pool);var y=null;h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(y=h.memoizedState.cachePool.pool),y!==O&&(h.flags|=2048)}return u!==s&&u&&(o.child.flags|=8192),Ku(o,o.updateQueue),mt(o),null;case 4:return Ye(),s===null&&pm(o.stateNode.containerInfo),mt(o),null;case 10:return yr(o.type),mt(o),null;case 19:if(ne(Lt),O=o.memoizedState,O===null)return mt(o),null;if(h=(o.flags&128)!==0,y=O.rendering,y===null)if(h)Qa(O,!1);else{if(bt!==0||s!==null&&(s.flags&128)!==0)for(s=o.child;s!==null;){if(y=Gu(s),y!==null){for(o.flags|=128,Qa(O,!1),s=y.updateQueue,o.updateQueue=s,Ku(o,s),o.subtreeFlags=0,s=u,u=o.child;u!==null;)pb(u,s),u=u.sibling;return H(Lt,Lt.current&1|2),o.child}s=s.sibling}O.tail!==null&&rt()>tf&&(o.flags|=128,h=!0,Qa(O,!1),o.lanes=4194304)}else{if(!h)if(s=Gu(y),s!==null){if(o.flags|=128,h=!0,s=s.updateQueue,o.updateQueue=s,Ku(o,s),Qa(O,!0),O.tail===null&&O.tailMode==="hidden"&&!y.alternate&&!Ve)return mt(o),null}else 2*rt()-O.renderingStartTime>tf&&u!==536870912&&(o.flags|=128,h=!0,Qa(O,!1),o.lanes=4194304);O.isBackwards?(y.sibling=o.child,o.child=y):(s=O.last,s!==null?s.sibling=y:o.child=y,O.last=y)}return O.tail!==null?(o=O.tail,O.rendering=o,O.tail=o.sibling,O.renderingStartTime=rt(),o.sibling=null,s=Lt.current,H(Lt,h?s&1|2:s&1),o):(mt(o),null);case 22:case 23:return vr(o),Op(),h=o.memoizedState!==null,s!==null?s.memoizedState!==null!==h&&(o.flags|=8192):h&&(o.flags|=8192),h?(u&536870912)!==0&&(o.flags&128)===0&&(mt(o),o.subtreeFlags&6&&(o.flags|=8192)):mt(o),u=o.updateQueue,u!==null&&Ku(o,u.retryQueue),u=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(u=s.memoizedState.cachePool.pool),h=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),h!==u&&(o.flags|=2048),s!==null&&ne(Ns),null;case 24:return u=null,s!==null&&(u=s.memoizedState.cache),o.memoizedState.cache!==u&&(o.flags|=2048),yr(qt),mt(o),null;case 25:return null;case 30:return null}throw Error(i(156,o.tag))}function w5(s,o){switch(np(o),o.tag){case 1:return s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 3:return yr(qt),Ye(),s=o.flags,(s&65536)!==0&&(s&128)===0?(o.flags=s&-65537|128,o):null;case 26:case 27:case 5:return je(o),null;case 13:if(vr(o),s=o.memoizedState,s!==null&&s.dehydrated!==null){if(o.alternate===null)throw Error(i(340));ca()}return s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 19:return ne(Lt),null;case 4:return Ye(),null;case 10:return yr(o.type),null;case 22:case 23:return vr(o),Op(),s!==null&&ne(Ns),s=o.flags,s&65536?(o.flags=s&-65537|128,o):null;case 24:return yr(qt),null;case 25:return null;default:return null}}function qv(s,o){switch(np(o),o.tag){case 3:yr(qt),Ye();break;case 26:case 27:case 5:je(o);break;case 4:Ye();break;case 13:vr(o);break;case 19:ne(Lt);break;case 10:yr(o.type);break;case 22:case 23:vr(o),Op(),s!==null&&ne(Ns);break;case 24:yr(qt)}}function Ca(s,o){try{var u=o.updateQueue,h=u!==null?u.lastEffect:null;if(h!==null){var O=h.next;u=O;do{if((u.tag&s)===s){h=void 0;var y=u.create,k=u.inst;h=y(),k.destroy=h}u=u.next}while(u!==O)}}catch(C){Je(o,o.return,C)}}function Hr(s,o,u){try{var h=o.updateQueue,O=h!==null?h.lastEffect:null;if(O!==null){var y=O.next;h=y;do{if((h.tag&s)===s){var k=h.inst,C=k.destroy;if(C!==void 0){k.destroy=void 0,O=o;var M=u,L=C;try{L()}catch(J){Je(O,M,J)}}}h=h.next}while(h!==y)}}catch(J){Je(o,o.return,J)}}function Lv(s){var o=s.updateQueue;if(o!==null){var u=s.stateNode;try{Ab(o,u)}catch(h){Je(s,s.return,h)}}}function Bv(s,o,u){u.props=qs(s.type,s.memoizedProps),u.state=s.memoizedState;try{u.componentWillUnmount()}catch(h){Je(s,o,h)}}function Ta(s,o){try{var u=s.ref;if(u!==null){switch(s.tag){case 26:case 27:case 5:var h=s.stateNode;break;case 30:h=s.stateNode;break;default:h=s.stateNode}typeof u=="function"?s.refCleanup=u(h):u.current=h}}catch(O){Je(s,o,O)}}function Zi(s,o){var u=s.ref,h=s.refCleanup;if(u!==null)if(typeof h=="function")try{h()}catch(O){Je(s,o,O)}finally{s.refCleanup=null,s=s.alternate,s!=null&&(s.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(O){Je(s,o,O)}else u.current=null}function Vv(s){var o=s.type,u=s.memoizedProps,h=s.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":u.autoFocus&&h.focus();break e;case"img":u.src?h.src=u.src:u.srcSet&&(h.srcset=u.srcSet)}}catch(O){Je(s,s.return,O)}}function Vp(s,o,u){try{var h=s.stateNode;V5(h,s.type,u,o),h[st]=o}catch(O){Je(s,s.return,O)}}function Yv(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&is(s.type)||s.tag===4}function Yp(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||Yv(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.tag===27&&is(s.type)||s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function Up(s,o,u){var h=s.tag;if(h===5||h===6)s=s.stateNode,o?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(s,o):(o=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,o.appendChild(s),u=u._reactRootContainer,u!=null||o.onclick!==null||(o.onclick=ff));else if(h!==4&&(h===27&&is(s.type)&&(u=s.stateNode,o=null),s=s.child,s!==null))for(Up(s,o,u),s=s.sibling;s!==null;)Up(s,o,u),s=s.sibling}function Ju(s,o,u){var h=s.tag;if(h===5||h===6)s=s.stateNode,o?u.insertBefore(s,o):u.appendChild(s);else if(h!==4&&(h===27&&is(s.type)&&(u=s.stateNode),s=s.child,s!==null))for(Ju(s,o,u),s=s.sibling;s!==null;)Ju(s,o,u),s=s.sibling}function Uv(s){var o=s.stateNode,u=s.memoizedProps;try{for(var h=s.type,O=o.attributes;O.length;)o.removeAttributeNode(O[0]);en(o,h,u),o[Ct]=s,o[st]=u}catch(y){Je(s,s.return,y)}}var wr=!1,Pt=!1,Gp=!1,Gv=typeof WeakSet=="function"?WeakSet:Set,Wt=null;function k5(s,o){if(s=s.containerInfo,gm=yf,s=rb(s),Yd(s)){if("selectionStart"in s)var u={start:s.selectionStart,end:s.selectionEnd};else e:{u=(u=s.ownerDocument)&&u.defaultView||window;var h=u.getSelection&&u.getSelection();if(h&&h.rangeCount!==0){u=h.anchorNode;var O=h.anchorOffset,y=h.focusNode;h=h.focusOffset;try{u.nodeType,y.nodeType}catch{u=null;break e}var k=0,C=-1,M=-1,L=0,J=0,ie=s,V=null;t:for(;;){for(var Y;ie!==u||O!==0&&ie.nodeType!==3||(C=k+O),ie!==y||h!==0&&ie.nodeType!==3||(M=k+h),ie.nodeType===3&&(k+=ie.nodeValue.length),(Y=ie.firstChild)!==null;)V=ie,ie=Y;for(;;){if(ie===s)break t;if(V===u&&++L===O&&(C=k),V===y&&++J===h&&(M=k),(Y=ie.nextSibling)!==null)break;ie=V,V=ie.parentNode}ie=Y}u=C===-1||M===-1?null:{start:C,end:M}}else u=null}u=u||{start:0,end:0}}else u=null;for(ym={focusedElem:s,selectionRange:u},yf=!1,Wt=o;Wt!==null;)if(o=Wt,s=o.child,(o.subtreeFlags&1024)!==0&&s!==null)s.return=o,Wt=s;else for(;Wt!==null;){switch(o=Wt,y=o.alternate,s=o.flags,o.tag){case 0:break;case 11:case 15:break;case 1:if((s&1024)!==0&&y!==null){s=void 0,u=o,O=y.memoizedProps,y=y.memoizedState,h=u.stateNode;try{var Pe=qs(u.type,O,u.elementType===u.type);s=h.getSnapshotBeforeUpdate(Pe,y),h.__reactInternalSnapshotBeforeUpdate=s}catch(ke){Je(u,u.return,ke)}}break;case 3:if((s&1024)!==0){if(s=o.stateNode.containerInfo,u=s.nodeType,u===9)Sm(s);else if(u===1)switch(s.nodeName){case"HEAD":case"HTML":case"BODY":Sm(s);break;default:s.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((s&1024)!==0)throw Error(i(163))}if(s=o.sibling,s!==null){s.return=o.return,Wt=s;break}Wt=o.return}}function Wv(s,o,u){var h=u.flags;switch(u.tag){case 0:case 11:case 15:Ir(s,u),h&4&&Ca(5,u);break;case 1:if(Ir(s,u),h&4)if(s=u.stateNode,o===null)try{s.componentDidMount()}catch(k){Je(u,u.return,k)}else{var O=qs(u.type,o.memoizedProps);o=o.memoizedState;try{s.componentDidUpdate(O,o,s.__reactInternalSnapshotBeforeUpdate)}catch(k){Je(u,u.return,k)}}h&64&&Lv(u),h&512&&Ta(u,u.return);break;case 3:if(Ir(s,u),h&64&&(s=u.updateQueue,s!==null)){if(o=null,u.child!==null)switch(u.child.tag){case 27:case 5:o=u.child.stateNode;break;case 1:o=u.child.stateNode}try{Ab(s,o)}catch(k){Je(u,u.return,k)}}break;case 27:o===null&&h&4&&Uv(u);case 26:case 5:Ir(s,u),o===null&&h&4&&Vv(u),h&512&&Ta(u,u.return);break;case 12:Ir(s,u);break;case 13:Ir(s,u),h&4&&Fv(s,u),h&64&&(s=u.memoizedState,s!==null&&(s=s.dehydrated,s!==null&&(u=E5.bind(null,u),F5(s,u))));break;case 22:if(h=u.memoizedState!==null||wr,!h){o=o!==null&&o.memoizedState!==null||Pt,O=wr;var y=Pt;wr=h,(Pt=o)&&!y?Fr(s,u,(u.subtreeFlags&8772)!==0):Ir(s,u),wr=O,Pt=y}break;case 30:break;default:Ir(s,u)}}function Hv(s){var o=s.alternate;o!==null&&(s.alternate=null,Hv(o)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(o=s.stateNode,o!==null&&Cd(o)),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}var ft=null,Sn=!1;function kr(s,o,u){for(u=u.child;u!==null;)Iv(s,o,u),u=u.sibling}function Iv(s,o,u){if(Vt&&typeof Vt.onCommitFiberUnmount=="function")try{Vt.onCommitFiberUnmount(Fn,u)}catch{}switch(u.tag){case 26:Pt||Zi(u,o),kr(s,o,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Pt||Zi(u,o);var h=ft,O=Sn;is(u.type)&&(ft=u.stateNode,Sn=!1),kr(s,o,u),_a(u.stateNode),ft=h,Sn=O;break;case 5:Pt||Zi(u,o);case 6:if(h=ft,O=Sn,ft=null,kr(s,o,u),ft=h,Sn=O,ft!==null)if(Sn)try{(ft.nodeType===9?ft.body:ft.nodeName==="HTML"?ft.ownerDocument.body:ft).removeChild(u.stateNode)}catch(y){Je(u,o,y)}else try{ft.removeChild(u.stateNode)}catch(y){Je(u,o,y)}break;case 18:ft!==null&&(Sn?(s=ft,j1(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,u.stateNode),Va(s)):j1(ft,u.stateNode));break;case 4:h=ft,O=Sn,ft=u.stateNode.containerInfo,Sn=!0,kr(s,o,u),ft=h,Sn=O;break;case 0:case 11:case 14:case 15:Pt||Hr(2,u,o),Pt||Hr(4,u,o),kr(s,o,u);break;case 1:Pt||(Zi(u,o),h=u.stateNode,typeof h.componentWillUnmount=="function"&&Bv(u,o,h)),kr(s,o,u);break;case 21:kr(s,o,u);break;case 22:Pt=(h=Pt)||u.memoizedState!==null,kr(s,o,u),Pt=h;break;default:kr(s,o,u)}}function Fv(s,o){if(o.memoizedState===null&&(s=o.alternate,s!==null&&(s=s.memoizedState,s!==null&&(s=s.dehydrated,s!==null))))try{Va(s)}catch(u){Je(o,o.return,u)}}function Q5(s){switch(s.tag){case 13:case 19:var o=s.stateNode;return o===null&&(o=s.stateNode=new Gv),o;case 22:return s=s.stateNode,o=s._retryCache,o===null&&(o=s._retryCache=new Gv),o;default:throw Error(i(435,s.tag))}}function Wp(s,o){var u=Q5(s);o.forEach(function(h){var O=D5.bind(null,s,h);u.has(h)||(u.add(h),h.then(O,O))})}function Xn(s,o){var u=o.deletions;if(u!==null)for(var h=0;h<u.length;h++){var O=u[h],y=s,k=o,C=k;e:for(;C!==null;){switch(C.tag){case 27:if(is(C.type)){ft=C.stateNode,Sn=!1;break e}break;case 5:ft=C.stateNode,Sn=!1;break e;case 3:case 4:ft=C.stateNode.containerInfo,Sn=!0;break e}C=C.return}if(ft===null)throw Error(i(160));Iv(y,k,O),ft=null,Sn=!1,y=O.alternate,y!==null&&(y.return=null),O.return=null}if(o.subtreeFlags&13878)for(o=o.child;o!==null;)Kv(o,s),o=o.sibling}var wi=null;function Kv(s,o){var u=s.alternate,h=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:Xn(o,s),jn(s),h&4&&(Hr(3,s,s.return),Ca(3,s),Hr(5,s,s.return));break;case 1:Xn(o,s),jn(s),h&512&&(Pt||u===null||Zi(u,u.return)),h&64&&wr&&(s=s.updateQueue,s!==null&&(h=s.callbacks,h!==null&&(u=s.shared.hiddenCallbacks,s.shared.hiddenCallbacks=u===null?h:u.concat(h))));break;case 26:var O=wi;if(Xn(o,s),jn(s),h&512&&(Pt||u===null||Zi(u,u.return)),h&4){var y=u!==null?u.memoizedState:null;if(h=s.memoizedState,u===null)if(h===null)if(s.stateNode===null){e:{h=s.type,u=s.memoizedProps,O=O.ownerDocument||O;t:switch(h){case"title":y=O.getElementsByTagName("title")[0],(!y||y[Fo]||y[Ct]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=O.createElement(h),O.head.insertBefore(y,O.querySelector("head > title"))),en(y,h,u),y[Ct]=s,Ut(y),h=y;break e;case"link":var k=U1("link","href",O).get(h+(u.href||""));if(k){for(var C=0;C<k.length;C++)if(y=k[C],y.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&y.getAttribute("rel")===(u.rel==null?null:u.rel)&&y.getAttribute("title")===(u.title==null?null:u.title)&&y.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){k.splice(C,1);break t}}y=O.createElement(h),en(y,h,u),O.head.appendChild(y);break;case"meta":if(k=U1("meta","content",O).get(h+(u.content||""))){for(C=0;C<k.length;C++)if(y=k[C],y.getAttribute("content")===(u.content==null?null:""+u.content)&&y.getAttribute("name")===(u.name==null?null:u.name)&&y.getAttribute("property")===(u.property==null?null:u.property)&&y.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&y.getAttribute("charset")===(u.charSet==null?null:u.charSet)){k.splice(C,1);break t}}y=O.createElement(h),en(y,h,u),O.head.appendChild(y);break;default:throw Error(i(468,h))}y[Ct]=s,Ut(y),h=y}s.stateNode=h}else G1(O,s.type,s.stateNode);else s.stateNode=Y1(O,h,s.memoizedProps);else y!==h?(y===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):y.count--,h===null?G1(O,s.type,s.stateNode):Y1(O,h,s.memoizedProps)):h===null&&s.stateNode!==null&&Vp(s,s.memoizedProps,u.memoizedProps)}break;case 27:Xn(o,s),jn(s),h&512&&(Pt||u===null||Zi(u,u.return)),u!==null&&h&4&&Vp(s,s.memoizedProps,u.memoizedProps);break;case 5:if(Xn(o,s),jn(s),h&512&&(Pt||u===null||Zi(u,u.return)),s.flags&32){O=s.stateNode;try{wl(O,"")}catch(Y){Je(s,s.return,Y)}}h&4&&s.stateNode!=null&&(O=s.memoizedProps,Vp(s,O,u!==null?u.memoizedProps:O)),h&1024&&(Gp=!0);break;case 6:if(Xn(o,s),jn(s),h&4){if(s.stateNode===null)throw Error(i(162));h=s.memoizedProps,u=s.stateNode;try{u.nodeValue=h}catch(Y){Je(s,s.return,Y)}}break;case 3:if(mf=null,O=wi,wi=df(o.containerInfo),Xn(o,s),wi=O,jn(s),h&4&&u!==null&&u.memoizedState.isDehydrated)try{Va(o.containerInfo)}catch(Y){Je(s,s.return,Y)}Gp&&(Gp=!1,Jv(s));break;case 4:h=wi,wi=df(s.stateNode.containerInfo),Xn(o,s),jn(s),wi=h;break;case 12:Xn(o,s),jn(s);break;case 13:Xn(o,s),jn(s),s.child.flags&8192&&s.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(em=rt()),h&4&&(h=s.updateQueue,h!==null&&(s.updateQueue=null,Wp(s,h)));break;case 22:O=s.memoizedState!==null;var M=u!==null&&u.memoizedState!==null,L=wr,J=Pt;if(wr=L||O,Pt=J||M,Xn(o,s),Pt=J,wr=L,jn(s),h&8192)e:for(o=s.stateNode,o._visibility=O?o._visibility&-2:o._visibility|1,O&&(u===null||M||wr||Pt||Ls(s)),u=null,o=s;;){if(o.tag===5||o.tag===26){if(u===null){M=u=o;try{if(y=M.stateNode,O)k=y.style,typeof k.setProperty=="function"?k.setProperty("display","none","important"):k.display="none";else{C=M.stateNode;var ie=M.memoizedProps.style,V=ie!=null&&ie.hasOwnProperty("display")?ie.display:null;C.style.display=V==null||typeof V=="boolean"?"":(""+V).trim()}}catch(Y){Je(M,M.return,Y)}}}else if(o.tag===6){if(u===null){M=o;try{M.stateNode.nodeValue=O?"":M.memoizedProps}catch(Y){Je(M,M.return,Y)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===s)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===s)break e;for(;o.sibling===null;){if(o.return===null||o.return===s)break e;u===o&&(u=null),o=o.return}u===o&&(u=null),o.sibling.return=o.return,o=o.sibling}h&4&&(h=s.updateQueue,h!==null&&(u=h.retryQueue,u!==null&&(h.retryQueue=null,Wp(s,u))));break;case 19:Xn(o,s),jn(s),h&4&&(h=s.updateQueue,h!==null&&(s.updateQueue=null,Wp(s,h)));break;case 30:break;case 21:break;default:Xn(o,s),jn(s)}}function jn(s){var o=s.flags;if(o&2){try{for(var u,h=s.return;h!==null;){if(Yv(h)){u=h;break}h=h.return}if(u==null)throw Error(i(160));switch(u.tag){case 27:var O=u.stateNode,y=Yp(s);Ju(s,y,O);break;case 5:var k=u.stateNode;u.flags&32&&(wl(k,""),u.flags&=-33);var C=Yp(s);Ju(s,C,k);break;case 3:case 4:var M=u.stateNode.containerInfo,L=Yp(s);Up(s,L,M);break;default:throw Error(i(161))}}catch(J){Je(s,s.return,J)}s.flags&=-3}o&4096&&(s.flags&=-4097)}function Jv(s){if(s.subtreeFlags&1024)for(s=s.child;s!==null;){var o=s;Jv(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),s=s.sibling}}function Ir(s,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)Wv(s,o.alternate,o),o=o.sibling}function Ls(s){for(s=s.child;s!==null;){var o=s;switch(o.tag){case 0:case 11:case 14:case 15:Hr(4,o,o.return),Ls(o);break;case 1:Zi(o,o.return);var u=o.stateNode;typeof u.componentWillUnmount=="function"&&Bv(o,o.return,u),Ls(o);break;case 27:_a(o.stateNode);case 26:case 5:Zi(o,o.return),Ls(o);break;case 22:o.memoizedState===null&&Ls(o);break;case 30:Ls(o);break;default:Ls(o)}s=s.sibling}}function Fr(s,o,u){for(u=u&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var h=o.alternate,O=s,y=o,k=y.flags;switch(y.tag){case 0:case 11:case 15:Fr(O,y,u),Ca(4,y);break;case 1:if(Fr(O,y,u),h=y,O=h.stateNode,typeof O.componentDidMount=="function")try{O.componentDidMount()}catch(L){Je(h,h.return,L)}if(h=y,O=h.updateQueue,O!==null){var C=h.stateNode;try{var M=O.shared.hiddenCallbacks;if(M!==null)for(O.shared.hiddenCallbacks=null,O=0;O<M.length;O++)Pb(M[O],C)}catch(L){Je(h,h.return,L)}}u&&k&64&&Lv(y),Ta(y,y.return);break;case 27:Uv(y);case 26:case 5:Fr(O,y,u),u&&h===null&&k&4&&Vv(y),Ta(y,y.return);break;case 12:Fr(O,y,u);break;case 13:Fr(O,y,u),u&&k&4&&Fv(O,y);break;case 22:y.memoizedState===null&&Fr(O,y,u),Ta(y,y.return);break;case 30:break;default:Fr(O,y,u)}o=o.sibling}}function Hp(s,o){var u=null;s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(u=s.memoizedState.cachePool.pool),s=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(s=o.memoizedState.cachePool.pool),s!==u&&(s!=null&&s.refCount++,u!=null&&ha(u))}function Ip(s,o){s=null,o.alternate!==null&&(s=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==s&&(o.refCount++,s!=null&&ha(s))}function _i(s,o,u,h){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)e1(s,o,u,h),o=o.sibling}function e1(s,o,u,h){var O=o.flags;switch(o.tag){case 0:case 11:case 15:_i(s,o,u,h),O&2048&&Ca(9,o);break;case 1:_i(s,o,u,h);break;case 3:_i(s,o,u,h),O&2048&&(s=null,o.alternate!==null&&(s=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==s&&(o.refCount++,s!=null&&ha(s)));break;case 12:if(O&2048){_i(s,o,u,h),s=o.stateNode;try{var y=o.memoizedProps,k=y.id,C=y.onPostCommit;typeof C=="function"&&C(k,o.alternate===null?"mount":"update",s.passiveEffectDuration,-0)}catch(M){Je(o,o.return,M)}}else _i(s,o,u,h);break;case 13:_i(s,o,u,h);break;case 23:break;case 22:y=o.stateNode,k=o.alternate,o.memoizedState!==null?y._visibility&2?_i(s,o,u,h):Pa(s,o):y._visibility&2?_i(s,o,u,h):(y._visibility|=2,Ll(s,o,u,h,(o.subtreeFlags&10256)!==0)),O&2048&&Hp(k,o);break;case 24:_i(s,o,u,h),O&2048&&Ip(o.alternate,o);break;default:_i(s,o,u,h)}}function Ll(s,o,u,h,O){for(O=O&&(o.subtreeFlags&10256)!==0,o=o.child;o!==null;){var y=s,k=o,C=u,M=h,L=k.flags;switch(k.tag){case 0:case 11:case 15:Ll(y,k,C,M,O),Ca(8,k);break;case 23:break;case 22:var J=k.stateNode;k.memoizedState!==null?J._visibility&2?Ll(y,k,C,M,O):Pa(y,k):(J._visibility|=2,Ll(y,k,C,M,O)),O&&L&2048&&Hp(k.alternate,k);break;case 24:Ll(y,k,C,M,O),O&&L&2048&&Ip(k.alternate,k);break;default:Ll(y,k,C,M,O)}o=o.sibling}}function Pa(s,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var u=s,h=o,O=h.flags;switch(h.tag){case 22:Pa(u,h),O&2048&&Hp(h.alternate,h);break;case 24:Pa(u,h),O&2048&&Ip(h.alternate,h);break;default:Pa(u,h)}o=o.sibling}}var Aa=8192;function Bl(s){if(s.subtreeFlags&Aa)for(s=s.child;s!==null;)t1(s),s=s.sibling}function t1(s){switch(s.tag){case 26:Bl(s),s.flags&Aa&&s.memoizedState!==null&&uR(wi,s.memoizedState,s.memoizedProps);break;case 5:Bl(s);break;case 3:case 4:var o=wi;wi=df(s.stateNode.containerInfo),Bl(s),wi=o;break;case 22:s.memoizedState===null&&(o=s.alternate,o!==null&&o.memoizedState!==null?(o=Aa,Aa=16777216,Bl(s),Aa=o):Bl(s));break;default:Bl(s)}}function n1(s){var o=s.alternate;if(o!==null&&(s=o.child,s!==null)){o.child=null;do o=s.sibling,s.sibling=null,s=o;while(s!==null)}}function $a(s){var o=s.deletions;if((s.flags&16)!==0){if(o!==null)for(var u=0;u<o.length;u++){var h=o[u];Wt=h,r1(h,s)}n1(s)}if(s.subtreeFlags&10256)for(s=s.child;s!==null;)i1(s),s=s.sibling}function i1(s){switch(s.tag){case 0:case 11:case 15:$a(s),s.flags&2048&&Hr(9,s,s.return);break;case 3:$a(s);break;case 12:$a(s);break;case 22:var o=s.stateNode;s.memoizedState!==null&&o._visibility&2&&(s.return===null||s.return.tag!==13)?(o._visibility&=-3,ef(s)):$a(s);break;default:$a(s)}}function ef(s){var o=s.deletions;if((s.flags&16)!==0){if(o!==null)for(var u=0;u<o.length;u++){var h=o[u];Wt=h,r1(h,s)}n1(s)}for(s=s.child;s!==null;){switch(o=s,o.tag){case 0:case 11:case 15:Hr(8,o,o.return),ef(o);break;case 22:u=o.stateNode,u._visibility&2&&(u._visibility&=-3,ef(o));break;default:ef(o)}s=s.sibling}}function r1(s,o){for(;Wt!==null;){var u=Wt;switch(u.tag){case 0:case 11:case 15:Hr(8,u,o);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var h=u.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:ha(u.memoizedState.cache)}if(h=u.child,h!==null)h.return=u,Wt=h;else e:for(u=s;Wt!==null;){h=Wt;var O=h.sibling,y=h.return;if(Hv(h),h===u){Wt=null;break e}if(O!==null){O.return=y,Wt=O;break e}Wt=y}}}var C5={getCacheForType:function(s){var o=on(qt),u=o.data.get(s);return u===void 0&&(u=s(),o.data.set(s,u)),u}},T5=typeof WeakMap=="function"?WeakMap:Map,Ue=0,lt=null,Ze=null,Ne=0,Ge=0,Nn=null,Kr=!1,Vl=!1,Fp=!1,Qr=0,bt=0,Jr=0,Bs=0,Kp=0,oi=0,Yl=0,Ra=null,xn=null,Jp=!1,em=0,tf=1/0,nf=null,es=null,Jt=0,ts=null,Ul=null,Gl=0,tm=0,nm=null,s1=null,Ma=0,im=null;function zn(){if((Ue&2)!==0&&Ne!==0)return Ne&-Ne;if(j.T!==null){var s=Dl;return s!==0?s:um()}return Ts()}function l1(){oi===0&&(oi=(Ne&536870912)===0||Ve?yn():536870912);var s=li.current;return s!==null&&(s.flags|=32),oi}function qn(s,o,u){(s===lt&&(Ge===2||Ge===9)||s.cancelPendingCommit!==null)&&(Wl(s,0),ns(s,Ne,oi,!1)),Si(s,u),((Ue&2)===0||s!==lt)&&(s===lt&&((Ue&2)===0&&(Bs|=u),bt===4&&ns(s,Ne,oi,!1)),Xi(s))}function o1(s,o,u){if((Ue&6)!==0)throw Error(i(327));var h=!u&&(o&124)===0&&(o&s.expiredLanes)===0||ur(s,o),O=h?$5(s,o):lm(s,o,!0),y=h;do{if(O===0){Vl&&!h&&ns(s,o,0,!1);break}else{if(u=s.current.alternate,y&&!P5(u)){O=lm(s,o,!1),y=!1;continue}if(O===2){if(y=o,s.errorRecoveryDisabledLanes&y)var k=0;else k=s.pendingLanes&-536870913,k=k!==0?k:k&536870912?536870912:0;if(k!==0){o=k;e:{var C=s;O=Ra;var M=C.current.memoizedState.isDehydrated;if(M&&(Wl(C,k).flags|=256),k=lm(C,k,!1),k!==2){if(Fp&&!M){C.errorRecoveryDisabledLanes|=y,Bs|=y,O=4;break e}y=xn,xn=O,y!==null&&(xn===null?xn=y:xn.push.apply(xn,y))}O=k}if(y=!1,O!==2)continue}}if(O===1){Wl(s,0),ns(s,o,0,!0);break}e:{switch(h=s,y=O,y){case 0:case 1:throw Error(i(345));case 4:if((o&4194048)!==o)break;case 6:ns(h,o,oi,!Kr);break e;case 2:xn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((o&62914560)===o&&(O=em+300-rt(),10<O)){if(ns(h,o,oi,!Kr),cr(h,0,!0)!==0)break e;h.timeoutHandle=_1(a1.bind(null,h,u,xn,nf,Jp,o,oi,Bs,Yl,Kr,y,2,-0,0),O);break e}a1(h,u,xn,nf,Jp,o,oi,Bs,Yl,Kr,y,0,-0,0)}}break}while(!0);Xi(s)}function a1(s,o,u,h,O,y,k,C,M,L,J,ie,V,Y){if(s.timeoutHandle=-1,ie=o.subtreeFlags,(ie&8192||(ie&16785408)===16785408)&&(Na={stylesheets:null,count:0,unsuspend:cR},t1(o),ie=fR(),ie!==null)){s.cancelPendingCommit=ie(m1.bind(null,s,o,y,u,h,O,k,C,M,J,1,V,Y)),ns(s,y,k,!L);return}m1(s,o,y,u,h,O,k,C,M)}function P5(s){for(var o=s;;){var u=o.tag;if((u===0||u===11||u===15)&&o.flags&16384&&(u=o.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var h=0;h<u.length;h++){var O=u[h],y=O.getSnapshot;O=O.value;try{if(!Zn(y(),O))return!1}catch{return!1}}if(u=o.child,o.subtreeFlags&16384&&u!==null)u.return=o,o=u;else{if(o===s)break;for(;o.sibling===null;){if(o.return===null||o.return===s)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function ns(s,o,u,h){o&=~Kp,o&=~Bs,s.suspendedLanes|=o,s.pingedLanes&=~o,h&&(s.warmLanes|=o),h=s.expirationTimes;for(var O=o;0<O;){var y=31-kt(O),k=1<<y;h[y]=-1,O&=~k}u!==0&&Ae(s,u,o)}function rf(){return(Ue&6)===0?(Ea(0),!1):!0}function rm(){if(Ze!==null){if(Ge===0)var s=Ze.return;else s=Ze,gr=Xs=null,Sp(s),zl=null,wa=0,s=Ze;for(;s!==null;)qv(s.alternate,s),s=s.return;Ze=null}}function Wl(s,o){var u=s.timeoutHandle;u!==-1&&(s.timeoutHandle=-1,U5(u)),u=s.cancelPendingCommit,u!==null&&(s.cancelPendingCommit=null,u()),rm(),lt=s,Ze=u=pr(s.current,null),Ne=o,Ge=0,Nn=null,Kr=!1,Vl=ur(s,o),Fp=!1,Yl=oi=Kp=Bs=Jr=bt=0,xn=Ra=null,Jp=!1,(o&8)!==0&&(o|=o&32);var h=s.entangledLanes;if(h!==0)for(s=s.entanglements,h&=o;0<h;){var O=31-kt(h),y=1<<O;o|=s[O],h&=~y}return Qr=o,Qu(),u}function c1(s,o){Me=null,j.H=Vu,o===pa||o===Du?(o=Cb(),Ge=3):o===wb?(o=Cb(),Ge=4):Ge=o===Tv?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,Nn=o,Ze===null&&(bt=1,Hu(s,ni(o,s.current)))}function u1(){var s=j.H;return j.H=Vu,s===null?Vu:s}function f1(){var s=j.A;return j.A=C5,s}function sm(){bt=4,Kr||(Ne&4194048)!==Ne&&li.current!==null||(Vl=!0),(Jr&134217727)===0&&(Bs&134217727)===0||lt===null||ns(lt,Ne,oi,!1)}function lm(s,o,u){var h=Ue;Ue|=2;var O=u1(),y=f1();(lt!==s||Ne!==o)&&(nf=null,Wl(s,o)),o=!1;var k=bt;e:do try{if(Ge!==0&&Ze!==null){var C=Ze,M=Nn;switch(Ge){case 8:rm(),k=6;break e;case 3:case 2:case 9:case 6:li.current===null&&(o=!0);var L=Ge;if(Ge=0,Nn=null,Hl(s,C,M,L),u&&Vl){k=0;break e}break;default:L=Ge,Ge=0,Nn=null,Hl(s,C,M,L)}}A5(),k=bt;break}catch(J){c1(s,J)}while(!0);return o&&s.shellSuspendCounter++,gr=Xs=null,Ue=h,j.H=O,j.A=y,Ze===null&&(lt=null,Ne=0,Qu()),k}function A5(){for(;Ze!==null;)h1(Ze)}function $5(s,o){var u=Ue;Ue|=2;var h=u1(),O=f1();lt!==s||Ne!==o?(nf=null,tf=rt()+500,Wl(s,o)):Vl=ur(s,o);e:do try{if(Ge!==0&&Ze!==null){o=Ze;var y=Nn;t:switch(Ge){case 1:Ge=0,Nn=null,Hl(s,o,y,1);break;case 2:case 9:if(kb(y)){Ge=0,Nn=null,d1(o);break}o=function(){Ge!==2&&Ge!==9||lt!==s||(Ge=7),Xi(s)},y.then(o,o);break e;case 3:Ge=7;break e;case 4:Ge=5;break e;case 7:kb(y)?(Ge=0,Nn=null,d1(o)):(Ge=0,Nn=null,Hl(s,o,y,7));break;case 5:var k=null;switch(Ze.tag){case 26:k=Ze.memoizedState;case 5:case 27:var C=Ze;if(!k||W1(k)){Ge=0,Nn=null;var M=C.sibling;if(M!==null)Ze=M;else{var L=C.return;L!==null?(Ze=L,sf(L)):Ze=null}break t}}Ge=0,Nn=null,Hl(s,o,y,5);break;case 6:Ge=0,Nn=null,Hl(s,o,y,6);break;case 8:rm(),bt=6;break e;default:throw Error(i(462))}}R5();break}catch(J){c1(s,J)}while(!0);return gr=Xs=null,j.H=h,j.A=O,Ue=u,Ze!==null?0:(lt=null,Ne=0,Qu(),bt)}function R5(){for(;Ze!==null&&!Xt();)h1(Ze)}function h1(s){var o=Nv(s.alternate,s,Qr);s.memoizedProps=s.pendingProps,o===null?sf(s):Ze=o}function d1(s){var o=s,u=o.alternate;switch(o.tag){case 15:case 0:o=Ev(u,o,o.pendingProps,o.type,void 0,Ne);break;case 11:o=Ev(u,o,o.pendingProps,o.type.render,o.ref,Ne);break;case 5:Sp(o);default:qv(u,o),o=Ze=pb(o,Qr),o=Nv(u,o,Qr)}s.memoizedProps=s.pendingProps,o===null?sf(s):Ze=o}function Hl(s,o,u,h){gr=Xs=null,Sp(o),zl=null,wa=0;var O=o.return;try{if(v5(s,O,o,u,Ne)){bt=1,Hu(s,ni(u,s.current)),Ze=null;return}}catch(y){if(O!==null)throw Ze=O,y;bt=1,Hu(s,ni(u,s.current)),Ze=null;return}o.flags&32768?(Ve||h===1?s=!0:Vl||(Ne&536870912)!==0?s=!1:(Kr=s=!0,(h===2||h===9||h===3||h===6)&&(h=li.current,h!==null&&h.tag===13&&(h.flags|=16384))),p1(o,s)):sf(o)}function sf(s){var o=s;do{if((o.flags&32768)!==0){p1(o,Kr);return}s=o.return;var u=x5(o.alternate,o,Qr);if(u!==null){Ze=u;return}if(o=o.sibling,o!==null){Ze=o;return}Ze=o=s}while(o!==null);bt===0&&(bt=5)}function p1(s,o){do{var u=w5(s.alternate,s);if(u!==null){u.flags&=32767,Ze=u;return}if(u=s.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!o&&(s=s.sibling,s!==null)){Ze=s;return}Ze=s=u}while(s!==null);bt=6,Ze=null}function m1(s,o,u,h,O,y,k,C,M){s.cancelPendingCommit=null;do lf();while(Jt!==0);if((Ue&6)!==0)throw Error(i(327));if(o!==null){if(o===s.current)throw Error(i(177));if(y=o.lanes|o.childLanes,y|=Id,Cs(s,u,y,k,C,M),s===lt&&(Ze=lt=null,Ne=0),Ul=o,ts=s,Gl=u,tm=y,nm=O,s1=h,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(s.callbackNode=null,s.callbackPriority=0,Z5(In,function(){return v1(),null})):(s.callbackNode=null,s.callbackPriority=0),h=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||h){h=j.T,j.T=null,O=W.p,W.p=2,k=Ue,Ue|=4;try{k5(s,o,u)}finally{Ue=k,W.p=O,j.T=h}}Jt=1,O1(),g1(),y1()}}function O1(){if(Jt===1){Jt=0;var s=ts,o=Ul,u=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||u){u=j.T,j.T=null;var h=W.p;W.p=2;var O=Ue;Ue|=4;try{Kv(o,s);var y=ym,k=rb(s.containerInfo),C=y.focusedElem,M=y.selectionRange;if(k!==C&&C&&C.ownerDocument&&ib(C.ownerDocument.documentElement,C)){if(M!==null&&Yd(C)){var L=M.start,J=M.end;if(J===void 0&&(J=L),"selectionStart"in C)C.selectionStart=L,C.selectionEnd=Math.min(J,C.value.length);else{var ie=C.ownerDocument||document,V=ie&&ie.defaultView||window;if(V.getSelection){var Y=V.getSelection(),Pe=C.textContent.length,ke=Math.min(M.start,Pe),Fe=M.end===void 0?ke:Math.min(M.end,Pe);!Y.extend&&ke>Fe&&(k=Fe,Fe=ke,ke=k);var z=nb(C,ke),N=nb(C,Fe);if(z&&N&&(Y.rangeCount!==1||Y.anchorNode!==z.node||Y.anchorOffset!==z.offset||Y.focusNode!==N.node||Y.focusOffset!==N.offset)){var q=ie.createRange();q.setStart(z.node,z.offset),Y.removeAllRanges(),ke>Fe?(Y.addRange(q),Y.extend(N.node,N.offset)):(q.setEnd(N.node,N.offset),Y.addRange(q))}}}}for(ie=[],Y=C;Y=Y.parentNode;)Y.nodeType===1&&ie.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof C.focus=="function"&&C.focus(),C=0;C<ie.length;C++){var ee=ie[C];ee.element.scrollLeft=ee.left,ee.element.scrollTop=ee.top}}yf=!!gm,ym=gm=null}finally{Ue=O,W.p=h,j.T=u}}s.current=o,Jt=2}}function g1(){if(Jt===2){Jt=0;var s=ts,o=Ul,u=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||u){u=j.T,j.T=null;var h=W.p;W.p=2;var O=Ue;Ue|=4;try{Wv(s,o.alternate,o)}finally{Ue=O,W.p=h,j.T=u}}Jt=3}}function y1(){if(Jt===4||Jt===3){Jt=0,hn();var s=ts,o=Ul,u=Gl,h=s1;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?Jt=5:(Jt=0,Ul=ts=null,b1(s,s.pendingLanes));var O=s.pendingLanes;if(O===0&&(es=null),Nt(u),o=o.stateNode,Vt&&typeof Vt.onCommitFiberRoot=="function")try{Vt.onCommitFiberRoot(Fn,o,void 0,(o.current.flags&128)===128)}catch{}if(h!==null){o=j.T,O=W.p,W.p=2,j.T=null;try{for(var y=s.onRecoverableError,k=0;k<h.length;k++){var C=h[k];y(C.value,{componentStack:C.stack})}}finally{j.T=o,W.p=O}}(Gl&3)!==0&&lf(),Xi(s),O=s.pendingLanes,(u&4194090)!==0&&(O&42)!==0?s===im?Ma++:(Ma=0,im=s):Ma=0,Ea(0)}}function b1(s,o){(s.pooledCacheLanes&=o)===0&&(o=s.pooledCache,o!=null&&(s.pooledCache=null,ha(o)))}function lf(s){return O1(),g1(),y1(),v1()}function v1(){if(Jt!==5)return!1;var s=ts,o=tm;tm=0;var u=Nt(Gl),h=j.T,O=W.p;try{W.p=32>u?32:u,j.T=null,u=nm,nm=null;var y=ts,k=Gl;if(Jt=0,Ul=ts=null,Gl=0,(Ue&6)!==0)throw Error(i(331));var C=Ue;if(Ue|=4,i1(y.current),e1(y,y.current,k,u),Ue=C,Ea(0,!1),Vt&&typeof Vt.onPostCommitFiberRoot=="function")try{Vt.onPostCommitFiberRoot(Fn,y)}catch{}return!0}finally{W.p=O,j.T=h,b1(s,o)}}function S1(s,o,u){o=ni(u,o),o=Zp(s.stateNode,o,2),s=Yr(s,o,2),s!==null&&(Si(s,2),Xi(s))}function Je(s,o,u){if(s.tag===3)S1(s,s,u);else for(;o!==null;){if(o.tag===3){S1(o,s,u);break}else if(o.tag===1){var h=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(es===null||!es.has(h))){s=ni(u,s),u=Qv(2),h=Yr(o,u,2),h!==null&&(Cv(u,h,o,s),Si(h,2),Xi(h));break}}o=o.return}}function om(s,o,u){var h=s.pingCache;if(h===null){h=s.pingCache=new T5;var O=new Set;h.set(o,O)}else O=h.get(o),O===void 0&&(O=new Set,h.set(o,O));O.has(u)||(Fp=!0,O.add(u),s=M5.bind(null,s,o,u),o.then(s,s))}function M5(s,o,u){var h=s.pingCache;h!==null&&h.delete(o),s.pingedLanes|=s.suspendedLanes&u,s.warmLanes&=~u,lt===s&&(Ne&u)===u&&(bt===4||bt===3&&(Ne&62914560)===Ne&&300>rt()-em?(Ue&2)===0&&Wl(s,0):Kp|=u,Yl===Ne&&(Yl=0)),Xi(s)}function x1(s,o){o===0&&(o=ml()),s=$l(s,o),s!==null&&(Si(s,o),Xi(s))}function E5(s){var o=s.memoizedState,u=0;o!==null&&(u=o.retryLane),x1(s,u)}function D5(s,o){var u=0;switch(s.tag){case 13:var h=s.stateNode,O=s.memoizedState;O!==null&&(u=O.retryLane);break;case 19:h=s.stateNode;break;case 22:h=s.stateNode._retryCache;break;default:throw Error(i(314))}h!==null&&h.delete(o),x1(s,u)}function Z5(s,o){return Le(s,o)}var of=null,Il=null,am=!1,af=!1,cm=!1,Vs=0;function Xi(s){s!==Il&&s.next===null&&(Il===null?of=Il=s:Il=Il.next=s),af=!0,am||(am=!0,X5())}function Ea(s,o){if(!cm&&af){cm=!0;do for(var u=!1,h=of;h!==null;){if(s!==0){var O=h.pendingLanes;if(O===0)var y=0;else{var k=h.suspendedLanes,C=h.pingedLanes;y=(1<<31-kt(42|s)+1)-1,y&=O&~(k&~C),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(u=!0,C1(h,y))}else y=Ne,y=cr(h,h===lt?y:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(y&3)===0||ur(h,y)||(u=!0,C1(h,y));h=h.next}while(u);cm=!1}}function _5(){w1()}function w1(){af=am=!1;var s=0;Vs!==0&&(Y5()&&(s=Vs),Vs=0);for(var o=rt(),u=null,h=of;h!==null;){var O=h.next,y=k1(h,o);y===0?(h.next=null,u===null?of=O:u.next=O,O===null&&(Il=u)):(u=h,(s!==0||(y&3)!==0)&&(af=!0)),h=O}Ea(s)}function k1(s,o){for(var u=s.suspendedLanes,h=s.pingedLanes,O=s.expirationTimes,y=s.pendingLanes&-62914561;0<y;){var k=31-kt(y),C=1<<k,M=O[k];M===-1?((C&u)===0||(C&h)!==0)&&(O[k]=Qs(C,o)):M<=o&&(s.expiredLanes|=C),y&=~C}if(o=lt,u=Ne,u=cr(s,s===o?u:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),h=s.callbackNode,u===0||s===o&&(Ge===2||Ge===9)||s.cancelPendingCommit!==null)return h!==null&&h!==null&&We(h),s.callbackNode=null,s.callbackPriority=0;if((u&3)===0||ur(s,u)){if(o=u&-u,o===s.callbackPriority)return o;switch(h!==null&&We(h),Nt(u)){case 2:case 8:u=Hn;break;case 32:u=In;break;case 268435456:u=En;break;default:u=In}return h=Q1.bind(null,s),u=Le(u,h),s.callbackPriority=o,s.callbackNode=u,o}return h!==null&&h!==null&&We(h),s.callbackPriority=2,s.callbackNode=null,2}function Q1(s,o){if(Jt!==0&&Jt!==5)return s.callbackNode=null,s.callbackPriority=0,null;var u=s.callbackNode;if(lf()&&s.callbackNode!==u)return null;var h=Ne;return h=cr(s,s===lt?h:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),h===0?null:(o1(s,h,o),k1(s,rt()),s.callbackNode!=null&&s.callbackNode===u?Q1.bind(null,s):null)}function C1(s,o){if(lf())return null;o1(s,o,!0)}function X5(){G5(function(){(Ue&6)!==0?Le(wt,_5):w1()})}function um(){return Vs===0&&(Vs=yn()),Vs}function T1(s){return s==null||typeof s=="symbol"||typeof s=="boolean"?null:typeof s=="function"?s:yu(""+s)}function P1(s,o){var u=o.ownerDocument.createElement("input");return u.name=o.name,u.value=o.value,s.id&&u.setAttribute("form",s.id),o.parentNode.insertBefore(u,o),s=new FormData(s),u.parentNode.removeChild(u),s}function j5(s,o,u,h,O){if(o==="submit"&&u&&u.stateNode===O){var y=T1((O[st]||null).action),k=h.submitter;k&&(o=(o=k[st]||null)?T1(o.formAction):k.getAttribute("formAction"),o!==null&&(y=o,k=null));var C=new xu("action","action",null,h,O);s.push({event:C,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(Vs!==0){var M=k?P1(O,k):new FormData(O);$p(u,{pending:!0,data:M,method:O.method,action:y},null,M)}}else typeof y=="function"&&(C.preventDefault(),M=k?P1(O,k):new FormData(O),$p(u,{pending:!0,data:M,method:O.method,action:y},y,M))},currentTarget:O}]})}}for(var fm=0;fm<Hd.length;fm++){var hm=Hd[fm],N5=hm.toLowerCase(),z5=hm[0].toUpperCase()+hm.slice(1);xi(N5,"on"+z5)}xi(ob,"onAnimationEnd"),xi(ab,"onAnimationIteration"),xi(cb,"onAnimationStart"),xi("dblclick","onDoubleClick"),xi("focusin","onFocus"),xi("focusout","onBlur"),xi(i5,"onTransitionRun"),xi(r5,"onTransitionStart"),xi(s5,"onTransitionCancel"),xi(ub,"onTransitionEnd"),vl("onMouseEnter",["mouseout","mouseover"]),vl("onMouseLeave",["mouseout","mouseover"]),vl("onPointerEnter",["pointerout","pointerover"]),vl("onPointerLeave",["pointerout","pointerover"]),Ps("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ps("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ps("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ps("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ps("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ps("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Da="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(" "),q5=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Da));function A1(s,o){o=(o&4)!==0;for(var u=0;u<s.length;u++){var h=s[u],O=h.event;h=h.listeners;e:{var y=void 0;if(o)for(var k=h.length-1;0<=k;k--){var C=h[k],M=C.instance,L=C.currentTarget;if(C=C.listener,M!==y&&O.isPropagationStopped())break e;y=C,O.currentTarget=L;try{y(O)}catch(J){Wu(J)}O.currentTarget=null,y=M}else for(k=0;k<h.length;k++){if(C=h[k],M=C.instance,L=C.currentTarget,C=C.listener,M!==y&&O.isPropagationStopped())break e;y=C,O.currentTarget=L;try{y(O)}catch(J){Wu(J)}O.currentTarget=null,y=M}}}}function _e(s,o){var u=o[Ol];u===void 0&&(u=o[Ol]=new Set);var h=s+"__bubble";u.has(h)||($1(o,s,2,!1),u.add(h))}function dm(s,o,u){var h=0;o&&(h|=4),$1(u,s,h,o)}var cf="_reactListening"+Math.random().toString(36).slice(2);function pm(s){if(!s[cf]){s[cf]=!0,wy.forEach(function(u){u!=="selectionchange"&&(q5.has(u)||dm(u,!1,s),dm(u,!0,s))});var o=s.nodeType===9?s:s.ownerDocument;o===null||o[cf]||(o[cf]=!0,dm("selectionchange",!1,o))}}function $1(s,o,u,h){switch(eS(o)){case 2:var O=pR;break;case 8:O=mR;break;default:O=Pm}u=O.bind(null,o,u,s),O=void 0,!_d||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(O=!0),h?O!==void 0?s.addEventListener(o,u,{capture:!0,passive:O}):s.addEventListener(o,u,!0):O!==void 0?s.addEventListener(o,u,{passive:O}):s.addEventListener(o,u,!1)}function mm(s,o,u,h,O){var y=h;if((o&1)===0&&(o&2)===0&&h!==null)e:for(;;){if(h===null)return;var k=h.tag;if(k===3||k===4){var C=h.stateNode.containerInfo;if(C===O)break;if(k===4)for(k=h.return;k!==null;){var M=k.tag;if((M===3||M===4)&&k.stateNode.containerInfo===O)return;k=k.return}for(;C!==null;){if(k=gl(C),k===null)return;if(M=k.tag,M===5||M===6||M===26||M===27){h=y=k;continue e}C=C.parentNode}}h=h.return}Xy(function(){var L=y,J=Dd(u),ie=[];e:{var V=fb.get(s);if(V!==void 0){var Y=xu,Pe=s;switch(s){case"keypress":if(vu(u)===0)break e;case"keydown":case"keyup":Y=Z$;break;case"focusin":Pe="focus",Y=zd;break;case"focusout":Pe="blur",Y=zd;break;case"beforeblur":case"afterblur":Y=zd;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=zy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=w$;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=j$;break;case ob:case ab:case cb:Y=C$;break;case ub:Y=z$;break;case"scroll":case"scrollend":Y=S$;break;case"wheel":Y=L$;break;case"copy":case"cut":case"paste":Y=P$;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=Ly;break;case"toggle":case"beforetoggle":Y=V$}var ke=(o&4)!==0,Fe=!ke&&(s==="scroll"||s==="scrollend"),z=ke?V!==null?V+"Capture":null:V;ke=[];for(var N=L,q;N!==null;){var ee=N;if(q=ee.stateNode,ee=ee.tag,ee!==5&&ee!==26&&ee!==27||q===null||z===null||(ee=Jo(N,z),ee!=null&&ke.push(Za(N,ee,q))),Fe)break;N=N.return}0<ke.length&&(V=new Y(V,Pe,null,u,J),ie.push({event:V,listeners:ke}))}}if((o&7)===0){e:{if(V=s==="mouseover"||s==="pointerover",Y=s==="mouseout"||s==="pointerout",V&&u!==Ed&&(Pe=u.relatedTarget||u.fromElement)&&(gl(Pe)||Pe[Yt]))break e;if((Y||V)&&(V=J.window===J?J:(V=J.ownerDocument)?V.defaultView||V.parentWindow:window,Y?(Pe=u.relatedTarget||u.toElement,Y=L,Pe=Pe?gl(Pe):null,Pe!==null&&(Fe=l(Pe),ke=Pe.tag,Pe!==Fe||ke!==5&&ke!==27&&ke!==6)&&(Pe=null)):(Y=null,Pe=L),Y!==Pe)){if(ke=zy,ee="onMouseLeave",z="onMouseEnter",N="mouse",(s==="pointerout"||s==="pointerover")&&(ke=Ly,ee="onPointerLeave",z="onPointerEnter",N="pointer"),Fe=Y==null?V:Ko(Y),q=Pe==null?V:Ko(Pe),V=new ke(ee,N+"leave",Y,u,J),V.target=Fe,V.relatedTarget=q,ee=null,gl(J)===L&&(ke=new ke(z,N+"enter",Pe,u,J),ke.target=q,ke.relatedTarget=Fe,ee=ke),Fe=ee,Y&&Pe)t:{for(ke=Y,z=Pe,N=0,q=ke;q;q=Fl(q))N++;for(q=0,ee=z;ee;ee=Fl(ee))q++;for(;0<N-q;)ke=Fl(ke),N--;for(;0<q-N;)z=Fl(z),q--;for(;N--;){if(ke===z||z!==null&&ke===z.alternate)break t;ke=Fl(ke),z=Fl(z)}ke=null}else ke=null;Y!==null&&R1(ie,V,Y,ke,!1),Pe!==null&&Fe!==null&&R1(ie,Fe,Pe,ke,!0)}}e:{if(V=L?Ko(L):window,Y=V.nodeName&&V.nodeName.toLowerCase(),Y==="select"||Y==="input"&&V.type==="file")var ge=Iy;else if(Wy(V))if(Fy)ge=e5;else{ge=K$;var De=F$}else Y=V.nodeName,!Y||Y.toLowerCase()!=="input"||V.type!=="checkbox"&&V.type!=="radio"?L&&Md(L.elementType)&&(ge=Iy):ge=J$;if(ge&&(ge=ge(s,L))){Hy(ie,ge,u,J);break e}De&&De(s,V,L),s==="focusout"&&L&&V.type==="number"&&L.memoizedProps.value!=null&&Rd(V,"number",V.value)}switch(De=L?Ko(L):window,s){case"focusin":(Wy(De)||De.contentEditable==="true")&&(Tl=De,Ud=L,oa=null);break;case"focusout":oa=Ud=Tl=null;break;case"mousedown":Gd=!0;break;case"contextmenu":case"mouseup":case"dragend":Gd=!1,sb(ie,u,J);break;case"selectionchange":if(n5)break;case"keydown":case"keyup":sb(ie,u,J)}var xe;if(Ld)e:{switch(s){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else Cl?Uy(s,u)&&(Ce="onCompositionEnd"):s==="keydown"&&u.keyCode===229&&(Ce="onCompositionStart");Ce&&(By&&u.locale!=="ko"&&(Cl||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&Cl&&(xe=jy()):(qr=J,Xd="value"in qr?qr.value:qr.textContent,Cl=!0)),De=uf(L,Ce),0<De.length&&(Ce=new qy(Ce,s,null,u,J),ie.push({event:Ce,listeners:De}),xe?Ce.data=xe:(xe=Gy(u),xe!==null&&(Ce.data=xe)))),(xe=U$?G$(s,u):W$(s,u))&&(Ce=uf(L,"onBeforeInput"),0<Ce.length&&(De=new qy("onBeforeInput","beforeinput",null,u,J),ie.push({event:De,listeners:Ce}),De.data=xe)),j5(ie,s,L,u,J)}A1(ie,o)})}function Za(s,o,u){return{instance:s,listener:o,currentTarget:u}}function uf(s,o){for(var u=o+"Capture",h=[];s!==null;){var O=s,y=O.stateNode;if(O=O.tag,O!==5&&O!==26&&O!==27||y===null||(O=Jo(s,u),O!=null&&h.unshift(Za(s,O,y)),O=Jo(s,o),O!=null&&h.push(Za(s,O,y))),s.tag===3)return h;s=s.return}return[]}function Fl(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5&&s.tag!==27);return s||null}function R1(s,o,u,h,O){for(var y=o._reactName,k=[];u!==null&&u!==h;){var C=u,M=C.alternate,L=C.stateNode;if(C=C.tag,M!==null&&M===h)break;C!==5&&C!==26&&C!==27||L===null||(M=L,O?(L=Jo(u,y),L!=null&&k.unshift(Za(u,L,M))):O||(L=Jo(u,y),L!=null&&k.push(Za(u,L,M)))),u=u.return}k.length!==0&&s.push({event:o,listeners:k})}var L5=/\r\n?/g,B5=/\u0000|\uFFFD/g;function M1(s){return(typeof s=="string"?s:""+s).replace(L5,`
|
|
49
|
-
`).replace(B5,"")}function E1(s,o){return o=M1(o),M1(s)===o}function ff(){}function Ie(s,o,u,h,O,y){switch(u){case"children":typeof h=="string"?o==="body"||o==="textarea"&&h===""||wl(s,h):(typeof h=="number"||typeof h=="bigint")&&o!=="body"&&wl(s,""+h);break;case"className":mu(s,"class",h);break;case"tabIndex":mu(s,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":mu(s,u,h);break;case"style":Zy(s,h,y);break;case"data":if(o!=="object"){mu(s,"data",h);break}case"src":case"href":if(h===""&&(o!=="a"||u!=="href")){s.removeAttribute(u);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){s.removeAttribute(u);break}h=yu(""+h),s.setAttribute(u,h);break;case"action":case"formAction":if(typeof h=="function"){s.setAttribute(u,"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 y=="function"&&(u==="formAction"?(o!=="input"&&Ie(s,o,"name",O.name,O,null),Ie(s,o,"formEncType",O.formEncType,O,null),Ie(s,o,"formMethod",O.formMethod,O,null),Ie(s,o,"formTarget",O.formTarget,O,null)):(Ie(s,o,"encType",O.encType,O,null),Ie(s,o,"method",O.method,O,null),Ie(s,o,"target",O.target,O,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){s.removeAttribute(u);break}h=yu(""+h),s.setAttribute(u,h);break;case"onClick":h!=null&&(s.onclick=ff);break;case"onScroll":h!=null&&_e("scroll",s);break;case"onScrollEnd":h!=null&&_e("scrollend",s);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(i(61));if(u=h.__html,u!=null){if(O.children!=null)throw Error(i(60));s.innerHTML=u}}break;case"multiple":s.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":s.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){s.removeAttribute("xlink:href");break}u=yu(""+h),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?s.setAttribute(u,""+h):s.removeAttribute(u);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":h&&typeof h!="function"&&typeof h!="symbol"?s.setAttribute(u,""):s.removeAttribute(u);break;case"capture":case"download":h===!0?s.setAttribute(u,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?s.setAttribute(u,h):s.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?s.setAttribute(u,h):s.removeAttribute(u);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?s.removeAttribute(u):s.setAttribute(u,h);break;case"popover":_e("beforetoggle",s),_e("toggle",s),pu(s,"popover",h);break;case"xlinkActuate":hr(s,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":hr(s,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":hr(s,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":hr(s,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":hr(s,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":hr(s,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":hr(s,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":hr(s,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":hr(s,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":pu(s,"is",h);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=b$.get(u)||u,pu(s,u,h))}}function Om(s,o,u,h,O,y){switch(u){case"style":Zy(s,h,y);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(i(61));if(u=h.__html,u!=null){if(O.children!=null)throw Error(i(60));s.innerHTML=u}}break;case"children":typeof h=="string"?wl(s,h):(typeof h=="number"||typeof h=="bigint")&&wl(s,""+h);break;case"onScroll":h!=null&&_e("scroll",s);break;case"onScrollEnd":h!=null&&_e("scrollend",s);break;case"onClick":h!=null&&(s.onclick=ff);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ky.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(O=u.endsWith("Capture"),o=u.slice(2,O?u.length-7:void 0),y=s[st]||null,y=y!=null?y[u]:null,typeof y=="function"&&s.removeEventListener(o,y,O),typeof h=="function")){typeof y!="function"&&y!==null&&(u in s?s[u]=null:s.hasAttribute(u)&&s.removeAttribute(u)),s.addEventListener(o,h,O);break e}u in s?s[u]=h:h===!0?s.setAttribute(u,""):pu(s,u,h)}}}function en(s,o,u){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_e("error",s),_e("load",s);var h=!1,O=!1,y;for(y in u)if(u.hasOwnProperty(y)){var k=u[y];if(k!=null)switch(y){case"src":h=!0;break;case"srcSet":O=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,o));default:Ie(s,o,y,k,u,null)}}O&&Ie(s,o,"srcSet",u.srcSet,u,null),h&&Ie(s,o,"src",u.src,u,null);return;case"input":_e("invalid",s);var C=y=k=O=null,M=null,L=null;for(h in u)if(u.hasOwnProperty(h)){var J=u[h];if(J!=null)switch(h){case"name":O=J;break;case"type":k=J;break;case"checked":M=J;break;case"defaultChecked":L=J;break;case"value":y=J;break;case"defaultValue":C=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(i(137,o));break;default:Ie(s,o,h,J,u,null)}}Ry(s,y,C,M,L,k,O,!1),Ou(s);return;case"select":_e("invalid",s),h=k=y=null;for(O in u)if(u.hasOwnProperty(O)&&(C=u[O],C!=null))switch(O){case"value":y=C;break;case"defaultValue":k=C;break;case"multiple":h=C;default:Ie(s,o,O,C,u,null)}o=y,u=k,s.multiple=!!h,o!=null?xl(s,!!h,o,!1):u!=null&&xl(s,!!h,u,!0);return;case"textarea":_e("invalid",s),y=O=h=null;for(k in u)if(u.hasOwnProperty(k)&&(C=u[k],C!=null))switch(k){case"value":h=C;break;case"defaultValue":O=C;break;case"children":y=C;break;case"dangerouslySetInnerHTML":if(C!=null)throw Error(i(91));break;default:Ie(s,o,k,C,u,null)}Ey(s,h,O,y),Ou(s);return;case"option":for(M in u)if(u.hasOwnProperty(M)&&(h=u[M],h!=null))switch(M){case"selected":s.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:Ie(s,o,M,h,u,null)}return;case"dialog":_e("beforetoggle",s),_e("toggle",s),_e("cancel",s),_e("close",s);break;case"iframe":case"object":_e("load",s);break;case"video":case"audio":for(h=0;h<Da.length;h++)_e(Da[h],s);break;case"image":_e("error",s),_e("load",s);break;case"details":_e("toggle",s);break;case"embed":case"source":case"link":_e("error",s),_e("load",s);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(L in u)if(u.hasOwnProperty(L)&&(h=u[L],h!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,o));default:Ie(s,o,L,h,u,null)}return;default:if(Md(o)){for(J in u)u.hasOwnProperty(J)&&(h=u[J],h!==void 0&&Om(s,o,J,h,u,void 0));return}}for(C in u)u.hasOwnProperty(C)&&(h=u[C],h!=null&&Ie(s,o,C,h,u,null))}function V5(s,o,u,h){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var O=null,y=null,k=null,C=null,M=null,L=null,J=null;for(Y in u){var ie=u[Y];if(u.hasOwnProperty(Y)&&ie!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":M=ie;default:h.hasOwnProperty(Y)||Ie(s,o,Y,null,h,ie)}}for(var V in h){var Y=h[V];if(ie=u[V],h.hasOwnProperty(V)&&(Y!=null||ie!=null))switch(V){case"type":y=Y;break;case"name":O=Y;break;case"checked":L=Y;break;case"defaultChecked":J=Y;break;case"value":k=Y;break;case"defaultValue":C=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,o));break;default:Y!==ie&&Ie(s,o,V,Y,h,ie)}}$d(s,k,C,M,L,J,y,O);return;case"select":Y=k=C=V=null;for(y in u)if(M=u[y],u.hasOwnProperty(y)&&M!=null)switch(y){case"value":break;case"multiple":Y=M;default:h.hasOwnProperty(y)||Ie(s,o,y,null,h,M)}for(O in h)if(y=h[O],M=u[O],h.hasOwnProperty(O)&&(y!=null||M!=null))switch(O){case"value":V=y;break;case"defaultValue":C=y;break;case"multiple":k=y;default:y!==M&&Ie(s,o,O,y,h,M)}o=C,u=k,h=Y,V!=null?xl(s,!!u,V,!1):!!h!=!!u&&(o!=null?xl(s,!!u,o,!0):xl(s,!!u,u?[]:"",!1));return;case"textarea":Y=V=null;for(C in u)if(O=u[C],u.hasOwnProperty(C)&&O!=null&&!h.hasOwnProperty(C))switch(C){case"value":break;case"children":break;default:Ie(s,o,C,null,h,O)}for(k in h)if(O=h[k],y=u[k],h.hasOwnProperty(k)&&(O!=null||y!=null))switch(k){case"value":V=O;break;case"defaultValue":Y=O;break;case"children":break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(i(91));break;default:O!==y&&Ie(s,o,k,O,h,y)}My(s,V,Y);return;case"option":for(var Pe in u)if(V=u[Pe],u.hasOwnProperty(Pe)&&V!=null&&!h.hasOwnProperty(Pe))switch(Pe){case"selected":s.selected=!1;break;default:Ie(s,o,Pe,null,h,V)}for(M in h)if(V=h[M],Y=u[M],h.hasOwnProperty(M)&&V!==Y&&(V!=null||Y!=null))switch(M){case"selected":s.selected=V&&typeof V!="function"&&typeof V!="symbol";break;default:Ie(s,o,M,V,h,Y)}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 ke in u)V=u[ke],u.hasOwnProperty(ke)&&V!=null&&!h.hasOwnProperty(ke)&&Ie(s,o,ke,null,h,V);for(L in h)if(V=h[L],Y=u[L],h.hasOwnProperty(L)&&V!==Y&&(V!=null||Y!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(i(137,o));break;default:Ie(s,o,L,V,h,Y)}return;default:if(Md(o)){for(var Fe in u)V=u[Fe],u.hasOwnProperty(Fe)&&V!==void 0&&!h.hasOwnProperty(Fe)&&Om(s,o,Fe,void 0,h,V);for(J in h)V=h[J],Y=u[J],!h.hasOwnProperty(J)||V===Y||V===void 0&&Y===void 0||Om(s,o,J,V,h,Y);return}}for(var z in u)V=u[z],u.hasOwnProperty(z)&&V!=null&&!h.hasOwnProperty(z)&&Ie(s,o,z,null,h,V);for(ie in h)V=h[ie],Y=u[ie],!h.hasOwnProperty(ie)||V===Y||V==null&&Y==null||Ie(s,o,ie,V,h,Y)}var gm=null,ym=null;function hf(s){return s.nodeType===9?s:s.ownerDocument}function D1(s){switch(s){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Z1(s,o){if(s===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return s===1&&o==="foreignObject"?0:s}function bm(s,o){return s==="textarea"||s==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var vm=null;function Y5(){var s=window.event;return s&&s.type==="popstate"?s===vm?!1:(vm=s,!0):(vm=null,!1)}var _1=typeof setTimeout=="function"?setTimeout:void 0,U5=typeof clearTimeout=="function"?clearTimeout:void 0,X1=typeof Promise=="function"?Promise:void 0,G5=typeof queueMicrotask=="function"?queueMicrotask:typeof X1<"u"?function(s){return X1.resolve(null).then(s).catch(W5)}:_1;function W5(s){setTimeout(function(){throw s})}function is(s){return s==="head"}function j1(s,o){var u=o,h=0,O=0;do{var y=u.nextSibling;if(s.removeChild(u),y&&y.nodeType===8)if(u=y.data,u==="/$"){if(0<h&&8>h){u=h;var k=s.ownerDocument;if(u&1&&_a(k.documentElement),u&2&&_a(k.body),u&4)for(u=k.head,_a(u),k=u.firstChild;k;){var C=k.nextSibling,M=k.nodeName;k[Fo]||M==="SCRIPT"||M==="STYLE"||M==="LINK"&&k.rel.toLowerCase()==="stylesheet"||u.removeChild(k),k=C}}if(O===0){s.removeChild(y),Va(o);return}O--}else u==="$"||u==="$?"||u==="$!"?O++:h=u.charCodeAt(0)-48;else h=0;u=y}while(u);Va(o)}function Sm(s){var o=s.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var u=o;switch(o=o.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":Sm(u),Cd(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}s.removeChild(u)}}function H5(s,o,u,h){for(;s.nodeType===1;){var O=u;if(s.nodeName.toLowerCase()!==o.toLowerCase()){if(!h&&(s.nodeName!=="INPUT"||s.type!=="hidden"))break}else if(h){if(!s[Fo])switch(o){case"meta":if(!s.hasAttribute("itemprop"))break;return s;case"link":if(y=s.getAttribute("rel"),y==="stylesheet"&&s.hasAttribute("data-precedence"))break;if(y!==O.rel||s.getAttribute("href")!==(O.href==null||O.href===""?null:O.href)||s.getAttribute("crossorigin")!==(O.crossOrigin==null?null:O.crossOrigin)||s.getAttribute("title")!==(O.title==null?null:O.title))break;return s;case"style":if(s.hasAttribute("data-precedence"))break;return s;case"script":if(y=s.getAttribute("src"),(y!==(O.src==null?null:O.src)||s.getAttribute("type")!==(O.type==null?null:O.type)||s.getAttribute("crossorigin")!==(O.crossOrigin==null?null:O.crossOrigin))&&y&&s.hasAttribute("async")&&!s.hasAttribute("itemprop"))break;return s;default:return s}}else if(o==="input"&&s.type==="hidden"){var y=O.name==null?null:""+O.name;if(O.type==="hidden"&&s.getAttribute("name")===y)return s}else return s;if(s=ki(s.nextSibling),s===null)break}return null}function I5(s,o,u){if(o==="")return null;for(;s.nodeType!==3;)if((s.nodeType!==1||s.nodeName!=="INPUT"||s.type!=="hidden")&&!u||(s=ki(s.nextSibling),s===null))return null;return s}function xm(s){return s.data==="$!"||s.data==="$?"&&s.ownerDocument.readyState==="complete"}function F5(s,o){var u=s.ownerDocument;if(s.data!=="$?"||u.readyState==="complete")o();else{var h=function(){o(),u.removeEventListener("DOMContentLoaded",h)};u.addEventListener("DOMContentLoaded",h),s._reactRetry=h}}function ki(s){for(;s!=null;s=s.nextSibling){var o=s.nodeType;if(o===1||o===3)break;if(o===8){if(o=s.data,o==="$"||o==="$!"||o==="$?"||o==="F!"||o==="F")break;if(o==="/$")return null}}return s}var wm=null;function N1(s){s=s.previousSibling;for(var o=0;s;){if(s.nodeType===8){var u=s.data;if(u==="$"||u==="$!"||u==="$?"){if(o===0)return s;o--}else u==="/$"&&o++}s=s.previousSibling}return null}function z1(s,o,u){switch(o=hf(u),s){case"html":if(s=o.documentElement,!s)throw Error(i(452));return s;case"head":if(s=o.head,!s)throw Error(i(453));return s;case"body":if(s=o.body,!s)throw Error(i(454));return s;default:throw Error(i(451))}}function _a(s){for(var o=s.attributes;o.length;)s.removeAttributeNode(o[0]);Cd(s)}var ai=new Map,q1=new Set;function df(s){return typeof s.getRootNode=="function"?s.getRootNode():s.nodeType===9?s:s.ownerDocument}var Cr=W.d;W.d={f:K5,r:J5,D:eR,C:tR,L:nR,m:iR,X:sR,S:rR,M:lR};function K5(){var s=Cr.f(),o=rf();return s||o}function J5(s){var o=yl(s);o!==null&&o.tag===5&&o.type==="form"?ov(o):Cr.r(s)}var Kl=typeof document>"u"?null:document;function L1(s,o,u){var h=Kl;if(h&&typeof o=="string"&&o){var O=ti(o);O='link[rel="'+s+'"][href="'+O+'"]',typeof u=="string"&&(O+='[crossorigin="'+u+'"]'),q1.has(O)||(q1.add(O),s={rel:s,crossOrigin:u,href:o},h.querySelector(O)===null&&(o=h.createElement("link"),en(o,"link",s),Ut(o),h.head.appendChild(o)))}}function eR(s){Cr.D(s),L1("dns-prefetch",s,null)}function tR(s,o){Cr.C(s,o),L1("preconnect",s,o)}function nR(s,o,u){Cr.L(s,o,u);var h=Kl;if(h&&s&&o){var O='link[rel="preload"][as="'+ti(o)+'"]';o==="image"&&u&&u.imageSrcSet?(O+='[imagesrcset="'+ti(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(O+='[imagesizes="'+ti(u.imageSizes)+'"]')):O+='[href="'+ti(s)+'"]';var y=O;switch(o){case"style":y=Jl(s);break;case"script":y=eo(s)}ai.has(y)||(s=p({rel:"preload",href:o==="image"&&u&&u.imageSrcSet?void 0:s,as:o},u),ai.set(y,s),h.querySelector(O)!==null||o==="style"&&h.querySelector(Xa(y))||o==="script"&&h.querySelector(ja(y))||(o=h.createElement("link"),en(o,"link",s),Ut(o),h.head.appendChild(o)))}}function iR(s,o){Cr.m(s,o);var u=Kl;if(u&&s){var h=o&&typeof o.as=="string"?o.as:"script",O='link[rel="modulepreload"][as="'+ti(h)+'"][href="'+ti(s)+'"]',y=O;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=eo(s)}if(!ai.has(y)&&(s=p({rel:"modulepreload",href:s},o),ai.set(y,s),u.querySelector(O)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(ja(y)))return}h=u.createElement("link"),en(h,"link",s),Ut(h),u.head.appendChild(h)}}}function rR(s,o,u){Cr.S(s,o,u);var h=Kl;if(h&&s){var O=bl(h).hoistableStyles,y=Jl(s);o=o||"default";var k=O.get(y);if(!k){var C={loading:0,preload:null};if(k=h.querySelector(Xa(y)))C.loading=5;else{s=p({rel:"stylesheet",href:s,"data-precedence":o},u),(u=ai.get(y))&&km(s,u);var M=k=h.createElement("link");Ut(M),en(M,"link",s),M._p=new Promise(function(L,J){M.onload=L,M.onerror=J}),M.addEventListener("load",function(){C.loading|=1}),M.addEventListener("error",function(){C.loading|=2}),C.loading|=4,pf(k,o,h)}k={type:"stylesheet",instance:k,count:1,state:C},O.set(y,k)}}}function sR(s,o){Cr.X(s,o);var u=Kl;if(u&&s){var h=bl(u).hoistableScripts,O=eo(s),y=h.get(O);y||(y=u.querySelector(ja(O)),y||(s=p({src:s,async:!0},o),(o=ai.get(O))&&Qm(s,o),y=u.createElement("script"),Ut(y),en(y,"link",s),u.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},h.set(O,y))}}function lR(s,o){Cr.M(s,o);var u=Kl;if(u&&s){var h=bl(u).hoistableScripts,O=eo(s),y=h.get(O);y||(y=u.querySelector(ja(O)),y||(s=p({src:s,async:!0,type:"module"},o),(o=ai.get(O))&&Qm(s,o),y=u.createElement("script"),Ut(y),en(y,"link",s),u.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},h.set(O,y))}}function B1(s,o,u,h){var O=(O=ae.current)?df(O):null;if(!O)throw Error(i(446));switch(s){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(o=Jl(u.href),u=bl(O).hoistableStyles,h=u.get(o),h||(h={type:"style",instance:null,count:0,state:null},u.set(o,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){s=Jl(u.href);var y=bl(O).hoistableStyles,k=y.get(s);if(k||(O=O.ownerDocument||O,k={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(s,k),(y=O.querySelector(Xa(s)))&&!y._p&&(k.instance=y,k.state.loading=5),ai.has(s)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},ai.set(s,u),y||oR(O,s,u,k.state))),o&&h===null)throw Error(i(528,""));return k}if(o&&h!==null)throw Error(i(529,""));return null;case"script":return o=u.async,u=u.src,typeof u=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=eo(u),u=bl(O).hoistableScripts,h=u.get(o),h||(h={type:"script",instance:null,count:0,state:null},u.set(o,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,s))}}function Jl(s){return'href="'+ti(s)+'"'}function Xa(s){return'link[rel="stylesheet"]['+s+"]"}function V1(s){return p({},s,{"data-precedence":s.precedence,precedence:null})}function oR(s,o,u,h){s.querySelector('link[rel="preload"][as="style"]['+o+"]")?h.loading=1:(o=s.createElement("link"),h.preload=o,o.addEventListener("load",function(){return h.loading|=1}),o.addEventListener("error",function(){return h.loading|=2}),en(o,"link",u),Ut(o),s.head.appendChild(o))}function eo(s){return'[src="'+ti(s)+'"]'}function ja(s){return"script[async]"+s}function Y1(s,o,u){if(o.count++,o.instance===null)switch(o.type){case"style":var h=s.querySelector('style[data-href~="'+ti(u.href)+'"]');if(h)return o.instance=h,Ut(h),h;var O=p({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return h=(s.ownerDocument||s).createElement("style"),Ut(h),en(h,"style",O),pf(h,u.precedence,s),o.instance=h;case"stylesheet":O=Jl(u.href);var y=s.querySelector(Xa(O));if(y)return o.state.loading|=4,o.instance=y,Ut(y),y;h=V1(u),(O=ai.get(O))&&km(h,O),y=(s.ownerDocument||s).createElement("link"),Ut(y);var k=y;return k._p=new Promise(function(C,M){k.onload=C,k.onerror=M}),en(y,"link",h),o.state.loading|=4,pf(y,u.precedence,s),o.instance=y;case"script":return y=eo(u.src),(O=s.querySelector(ja(y)))?(o.instance=O,Ut(O),O):(h=u,(O=ai.get(y))&&(h=p({},u),Qm(h,O)),s=s.ownerDocument||s,O=s.createElement("script"),Ut(O),en(O,"link",h),s.head.appendChild(O),o.instance=O);case"void":return null;default:throw Error(i(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(h=o.instance,o.state.loading|=4,pf(h,u.precedence,s));return o.instance}function pf(s,o,u){for(var h=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),O=h.length?h[h.length-1]:null,y=O,k=0;k<h.length;k++){var C=h[k];if(C.dataset.precedence===o)y=C;else if(y!==O)break}y?y.parentNode.insertBefore(s,y.nextSibling):(o=u.nodeType===9?u.head:u,o.insertBefore(s,o.firstChild))}function km(s,o){s.crossOrigin==null&&(s.crossOrigin=o.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=o.referrerPolicy),s.title==null&&(s.title=o.title)}function Qm(s,o){s.crossOrigin==null&&(s.crossOrigin=o.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=o.referrerPolicy),s.integrity==null&&(s.integrity=o.integrity)}var mf=null;function U1(s,o,u){if(mf===null){var h=new Map,O=mf=new Map;O.set(u,h)}else O=mf,h=O.get(u),h||(h=new Map,O.set(u,h));if(h.has(s))return h;for(h.set(s,null),u=u.getElementsByTagName(s),O=0;O<u.length;O++){var y=u[O];if(!(y[Fo]||y[Ct]||s==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var k=y.getAttribute(o)||"";k=s+k;var C=h.get(k);C?C.push(y):h.set(k,[y])}}return h}function G1(s,o,u){s=s.ownerDocument||s,s.head.insertBefore(u,o==="title"?s.querySelector("head > title"):null)}function aR(s,o,u){if(u===1||o.itemProp!=null)return!1;switch(s){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;switch(o.rel){case"stylesheet":return s=o.disabled,typeof o.precedence=="string"&&s==null;default:return!0}case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function W1(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}var Na=null;function cR(){}function uR(s,o,u){if(Na===null)throw Error(i(475));var h=Na;if(o.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var O=Jl(u.href),y=s.querySelector(Xa(O));if(y){s=y._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(h.count++,h=Of.bind(h),s.then(h,h)),o.state.loading|=4,o.instance=y,Ut(y);return}y=s.ownerDocument||s,u=V1(u),(O=ai.get(O))&&km(u,O),y=y.createElement("link"),Ut(y);var k=y;k._p=new Promise(function(C,M){k.onload=C,k.onerror=M}),en(y,"link",u),o.instance=y}h.stylesheets===null&&(h.stylesheets=new Map),h.stylesheets.set(o,s),(s=o.state.preload)&&(o.state.loading&3)===0&&(h.count++,o=Of.bind(h),s.addEventListener("load",o),s.addEventListener("error",o))}}function fR(){if(Na===null)throw Error(i(475));var s=Na;return s.stylesheets&&s.count===0&&Cm(s,s.stylesheets),0<s.count?function(o){var u=setTimeout(function(){if(s.stylesheets&&Cm(s,s.stylesheets),s.unsuspend){var h=s.unsuspend;s.unsuspend=null,h()}},6e4);return s.unsuspend=o,function(){s.unsuspend=null,clearTimeout(u)}}:null}function Of(){if(this.count--,this.count===0){if(this.stylesheets)Cm(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;this.unsuspend=null,s()}}}var gf=null;function Cm(s,o){s.stylesheets=null,s.unsuspend!==null&&(s.count++,gf=new Map,o.forEach(hR,s),gf=null,Of.call(s))}function hR(s,o){if(!(o.state.loading&4)){var u=gf.get(s);if(u)var h=u.get(null);else{u=new Map,gf.set(s,u);for(var O=s.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<O.length;y++){var k=O[y];(k.nodeName==="LINK"||k.getAttribute("media")!=="not all")&&(u.set(k.dataset.precedence,k),h=k)}h&&u.set(null,h)}O=o.instance,k=O.getAttribute("data-precedence"),y=u.get(k)||h,y===h&&u.set(null,O),u.set(k,O),this.count++,h=Of.bind(this),O.addEventListener("load",h),O.addEventListener("error",h),y?y.parentNode.insertBefore(O,y.nextSibling):(s=s.nodeType===9?s.head:s,s.insertBefore(O,s.firstChild)),o.state.loading|=4}}var za={$$typeof:A,Provider:null,Consumer:null,_currentValue:G,_currentValue2:G,_threadCount:0};function dR(s,o,u,h,O,y,k,C){this.tag=1,this.containerInfo=s,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=zr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zr(0),this.hiddenUpdates=zr(null),this.identifierPrefix=h,this.onUncaughtError=O,this.onCaughtError=y,this.onRecoverableError=k,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function H1(s,o,u,h,O,y,k,C,M,L,J,ie){return s=new dR(s,o,u,k,C,M,L,ie),o=1,y===!0&&(o|=24),y=_n(3,null,null,o),s.current=y,y.stateNode=s,o=op(),o.refCount++,s.pooledCache=o,o.refCount++,y.memoizedState={element:h,isDehydrated:u,cache:o},fp(y),s}function I1(s){return s?(s=Rl,s):Rl}function F1(s,o,u,h,O,y){O=I1(O),h.context===null?h.context=O:h.pendingContext=O,h=Vr(o),h.payload={element:u},y=y===void 0?null:y,y!==null&&(h.callback=y),u=Yr(s,h,o),u!==null&&(qn(u,s,o),Oa(u,s,o))}function K1(s,o){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var u=s.retryLane;s.retryLane=u!==0&&u<o?u:o}}function Tm(s,o){K1(s,o),(s=s.alternate)&&K1(s,o)}function J1(s){if(s.tag===13){var o=$l(s,67108864);o!==null&&qn(o,s,67108864),Tm(s,67108864)}}var yf=!0;function pR(s,o,u,h){var O=j.T;j.T=null;var y=W.p;try{W.p=2,Pm(s,o,u,h)}finally{W.p=y,j.T=O}}function mR(s,o,u,h){var O=j.T;j.T=null;var y=W.p;try{W.p=8,Pm(s,o,u,h)}finally{W.p=y,j.T=O}}function Pm(s,o,u,h){if(yf){var O=Am(h);if(O===null)mm(s,o,h,bf,u),tS(s,h);else if(gR(O,s,o,u,h))h.stopPropagation();else if(tS(s,h),o&4&&-1<OR.indexOf(s)){for(;O!==null;){var y=yl(O);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var k=Jn(y.pendingLanes);if(k!==0){var C=y;for(C.pendingLanes|=2,C.entangledLanes|=2;k;){var M=1<<31-kt(k);C.entanglements[1]|=M,k&=~M}Xi(y),(Ue&6)===0&&(tf=rt()+500,Ea(0))}}break;case 13:C=$l(y,2),C!==null&&qn(C,y,2),rf(),Tm(y,2)}if(y=Am(h),y===null&&mm(s,o,h,bf,u),y===O)break;O=y}O!==null&&h.stopPropagation()}else mm(s,o,h,null,u)}}function Am(s){return s=Dd(s),$m(s)}var bf=null;function $m(s){if(bf=null,s=gl(s),s!==null){var o=l(s);if(o===null)s=null;else{var u=o.tag;if(u===13){if(s=a(o),s!==null)return s;s=null}else if(u===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;s=null}else o!==s&&(s=null)}}return bf=s,null}function eS(s){switch(s){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(Wn()){case wt:return 2;case Hn:return 8;case In:case jt:return 32;case En:return 268435456;default:return 32}default:return 32}}var Rm=!1,rs=null,ss=null,ls=null,qa=new Map,La=new Map,os=[],OR="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 tS(s,o){switch(s){case"focusin":case"focusout":rs=null;break;case"dragenter":case"dragleave":ss=null;break;case"mouseover":case"mouseout":ls=null;break;case"pointerover":case"pointerout":qa.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":La.delete(o.pointerId)}}function Ba(s,o,u,h,O,y){return s===null||s.nativeEvent!==y?(s={blockedOn:o,domEventName:u,eventSystemFlags:h,nativeEvent:y,targetContainers:[O]},o!==null&&(o=yl(o),o!==null&&J1(o)),s):(s.eventSystemFlags|=h,o=s.targetContainers,O!==null&&o.indexOf(O)===-1&&o.push(O),s)}function gR(s,o,u,h,O){switch(o){case"focusin":return rs=Ba(rs,s,o,u,h,O),!0;case"dragenter":return ss=Ba(ss,s,o,u,h,O),!0;case"mouseover":return ls=Ba(ls,s,o,u,h,O),!0;case"pointerover":var y=O.pointerId;return qa.set(y,Ba(qa.get(y)||null,s,o,u,h,O)),!0;case"gotpointercapture":return y=O.pointerId,La.set(y,Ba(La.get(y)||null,s,o,u,h,O)),!0}return!1}function nS(s){var o=gl(s.target);if(o!==null){var u=l(o);if(u!==null){if(o=u.tag,o===13){if(o=a(u),o!==null){s.blockedOn=o,zt(s.priority,function(){if(u.tag===13){var h=zn();h=pt(h);var O=$l(u,h);O!==null&&qn(O,u,h),Tm(u,h)}});return}}else if(o===3&&u.stateNode.current.memoizedState.isDehydrated){s.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}s.blockedOn=null}function vf(s){if(s.blockedOn!==null)return!1;for(var o=s.targetContainers;0<o.length;){var u=Am(s.nativeEvent);if(u===null){u=s.nativeEvent;var h=new u.constructor(u.type,u);Ed=h,u.target.dispatchEvent(h),Ed=null}else return o=yl(u),o!==null&&J1(o),s.blockedOn=u,!1;o.shift()}return!0}function iS(s,o,u){vf(s)&&u.delete(o)}function yR(){Rm=!1,rs!==null&&vf(rs)&&(rs=null),ss!==null&&vf(ss)&&(ss=null),ls!==null&&vf(ls)&&(ls=null),qa.forEach(iS),La.forEach(iS)}function Sf(s,o){s.blockedOn===o&&(s.blockedOn=null,Rm||(Rm=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,yR)))}var xf=null;function rS(s){xf!==s&&(xf=s,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){xf===s&&(xf=null);for(var o=0;o<s.length;o+=3){var u=s[o],h=s[o+1],O=s[o+2];if(typeof h!="function"){if($m(h||u)===null)continue;break}var y=yl(u);y!==null&&(s.splice(o,3),o-=3,$p(y,{pending:!0,data:O,method:u.method,action:h},h,O))}}))}function Va(s){function o(M){return Sf(M,s)}rs!==null&&Sf(rs,s),ss!==null&&Sf(ss,s),ls!==null&&Sf(ls,s),qa.forEach(o),La.forEach(o);for(var u=0;u<os.length;u++){var h=os[u];h.blockedOn===s&&(h.blockedOn=null)}for(;0<os.length&&(u=os[0],u.blockedOn===null);)nS(u),u.blockedOn===null&&os.shift();if(u=(s.ownerDocument||s).$$reactFormReplay,u!=null)for(h=0;h<u.length;h+=3){var O=u[h],y=u[h+1],k=O[st]||null;if(typeof y=="function")k||rS(u);else if(k){var C=null;if(y&&y.hasAttribute("formAction")){if(O=y,k=y[st]||null)C=k.formAction;else if($m(O)!==null)continue}else C=k.action;typeof C=="function"?u[h+1]=C:(u.splice(h,3),h-=3),rS(u)}}}function Mm(s){this._internalRoot=s}wf.prototype.render=Mm.prototype.render=function(s){var o=this._internalRoot;if(o===null)throw Error(i(409));var u=o.current,h=zn();F1(u,h,s,o,null,null)},wf.prototype.unmount=Mm.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var o=s.containerInfo;F1(s.current,2,null,s,null,null),rf(),o[Yt]=null}};function wf(s){this._internalRoot=s}wf.prototype.unstable_scheduleHydration=function(s){if(s){var o=Ts();s={blockedOn:null,target:s,priority:o};for(var u=0;u<os.length&&o!==0&&o<os[u].priority;u++);os.splice(u,0,s),u===0&&nS(s)}};var sS=e.version;if(sS!=="19.1.0")throw Error(i(527,sS,"19.1.0"));W.findDOMNode=function(s){var o=s._reactInternals;if(o===void 0)throw typeof s.render=="function"?Error(i(188)):(s=Object.keys(s).join(","),Error(i(268,s)));return s=f(o),s=s!==null?d(s):null,s=s===null?null:s.stateNode,s};var bR={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var kf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!kf.isDisabled&&kf.supportsFiber)try{Fn=kf.inject(bR),Vt=kf}catch{}}return Ua.createRoot=function(s,o){if(!r(s))throw Error(i(299));var u=!1,h="",O=Sv,y=xv,k=wv,C=null;return o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onUncaughtError!==void 0&&(O=o.onUncaughtError),o.onCaughtError!==void 0&&(y=o.onCaughtError),o.onRecoverableError!==void 0&&(k=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(C=o.unstable_transitionCallbacks)),o=H1(s,1,!1,null,null,u,h,O,y,k,C,null),s[Yt]=o.current,pm(s),new Mm(o)},Ua.hydrateRoot=function(s,o,u){if(!r(s))throw Error(i(299));var h=!1,O="",y=Sv,k=xv,C=wv,M=null,L=null;return u!=null&&(u.unstable_strictMode===!0&&(h=!0),u.identifierPrefix!==void 0&&(O=u.identifierPrefix),u.onUncaughtError!==void 0&&(y=u.onUncaughtError),u.onCaughtError!==void 0&&(k=u.onCaughtError),u.onRecoverableError!==void 0&&(C=u.onRecoverableError),u.unstable_transitionCallbacks!==void 0&&(M=u.unstable_transitionCallbacks),u.formState!==void 0&&(L=u.formState)),o=H1(s,1,!0,o,u??null,h,O,y,k,C,M,L),o.context=I1(null),u=o.current,h=zn(),h=pt(h),O=Vr(h),O.callback=null,Yr(u,O,h),u=h,o.current.lanes=u,Si(o,u),Xi(o),s[Yt]=o.current,pm(s),new wf(o)},Ua.version="19.1.0",Ua}var mS;function AR(){if(mS)return Dm.exports;mS=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(e){console.error(e)}}return n(),Dm.exports=PR(),Dm.exports}var $R=AR();const RR=e0($R);var $=t0();const K=e0($),Wk=SR({__proto__:null,default:K},[$]),OS=n=>{let e;const t=new Set,i=(d,p)=>{const m=typeof d=="function"?d(e):d;if(!Object.is(m,e)){const g=e;e=p??(typeof m!="object"||m===null)?m:Object.assign({},e,m),t.forEach(b=>b(e,g))}},r=()=>e,c={setState:i,getState:r,getInitialState:()=>f,subscribe:d=>(t.add(d),()=>t.delete(d))},f=e=n(i,r,c);return c},MR=n=>n?OS(n):OS,ER=n=>n;function DR(n,e=ER){const t=K.useSyncExternalStore(n.subscribe,()=>e(n.getState()),()=>e(n.getInitialState()));return K.useDebugValue(t),t}const gS=n=>{const e=MR(n),t=i=>DR(e,i);return Object.assign(t,e),t},Vc=n=>n?gS(n):gS;function ZR(n,e){let t;try{t=n()}catch{return}return{getItem:r=>{var l;const a=f=>f===null?null:JSON.parse(f,void 0),c=(l=t.getItem(r))!=null?l:null;return c instanceof Promise?c.then(a):a(c)},setItem:(r,l)=>t.setItem(r,JSON.stringify(l,void 0)),removeItem:r=>t.removeItem(r)}}const DO=n=>e=>{try{const t=n(e);return t instanceof Promise?t:{then(i){return DO(i)(t)},catch(i){return this}}}catch(t){return{then(i){return this},catch(i){return DO(i)(t)}}}},_R=(n,e)=>(t,i,r)=>{let l={storage:ZR(()=>localStorage),partialize:S=>S,version:0,merge:(S,x)=>({...x,...S}),...e},a=!1;const c=new Set,f=new Set;let d=l.storage;if(!d)return n((...S)=>{console.warn(`[zustand persist middleware] Unable to update item '${l.name}', the given storage is currently unavailable.`),t(...S)},i,r);const p=()=>{const S=l.partialize({...i()});return d.setItem(l.name,{state:S,version:l.version})},m=r.setState;r.setState=(S,x)=>{m(S,x),p()};const g=n((...S)=>{t(...S),p()},i,r);r.getInitialState=()=>g;let b;const v=()=>{var S,x;if(!d)return;a=!1,c.forEach(P=>{var A;return P((A=i())!=null?A:g)});const Q=((x=l.onRehydrateStorage)==null?void 0:x.call(l,(S=i())!=null?S:g))||void 0;return DO(d.getItem.bind(d))(l.name).then(P=>{if(P)if(typeof P.version=="number"&&P.version!==l.version){if(l.migrate){const A=l.migrate(P.state,P.version);return A instanceof Promise?A.then(D=>[!0,D]):[!0,A]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,P.state];return[!1,void 0]}).then(P=>{var A;const[D,R]=P;if(b=l.merge(R,(A=i())!=null?A:g),t(b,!0),D)return p()}).then(()=>{Q?.(b,void 0),b=i(),a=!0,f.forEach(P=>P(b))}).catch(P=>{Q?.(void 0,P)})};return r.persist={setOptions:S=>{l={...l,...S},S.storage&&(d=S.storage)},clearStorage:()=>{d?.removeItem(l.name)},getOptions:()=>l,rehydrate:()=>v(),hasHydrated:()=>a,onHydrate:S=>(c.add(S),()=>{c.delete(S)}),onFinishHydration:S=>(f.add(S),()=>{f.delete(S)})},l.skipHydration||v(),b||g},XR=_R;var Yc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},el=typeof window>"u"||"Deno"in globalThis;function ci(){}function jR(n,e){return typeof n=="function"?n(e):n}function ZO(n){return typeof n=="number"&&n>=0&&n!==1/0}function Hk(n,e){return Math.max(n+(e||0)-Date.now(),0)}function po(n,e){return typeof n=="function"?n(e):n}function Qi(n,e){return typeof n=="function"?n(e):n}function yS(n,e){const{type:t="all",exact:i,fetchStatus:r,predicate:l,queryKey:a,stale:c}=n;if(a){if(i){if(e.queryHash!==n0(a,e.options))return!1}else if(!Sc(e.queryKey,a))return!1}if(t!=="all"){const f=e.isActive();if(t==="active"&&!f||t==="inactive"&&f)return!1}return!(typeof c=="boolean"&&e.isStale()!==c||r&&r!==e.state.fetchStatus||l&&!l(e))}function bS(n,e){const{exact:t,status:i,predicate:r,mutationKey:l}=n;if(l){if(!e.options.mutationKey)return!1;if(t){if(vc(e.options.mutationKey)!==vc(l))return!1}else if(!Sc(e.options.mutationKey,l))return!1}return!(i&&e.state.status!==i||r&&!r(e))}function n0(n,e){return(e?.queryKeyHashFn||vc)(n)}function vc(n){return JSON.stringify(n,(e,t)=>XO(t)?Object.keys(t).sort().reduce((i,r)=>(i[r]=t[r],i),{}):t)}function Sc(n,e){return n===e?!0:typeof n!=typeof e?!1:n&&e&&typeof n=="object"&&typeof e=="object"?Object.keys(e).every(t=>Sc(n[t],e[t])):!1}function Ik(n,e){if(n===e)return n;const t=vS(n)&&vS(e);if(t||XO(n)&&XO(e)){const i=t?n:Object.keys(n),r=i.length,l=t?e:Object.keys(e),a=l.length,c=t?[]:{};let f=0;for(let d=0;d<a;d++){const p=t?d:l[d];(!t&&i.includes(p)||t)&&n[p]===void 0&&e[p]===void 0?(c[p]=void 0,f++):(c[p]=Ik(n[p],e[p]),c[p]===n[p]&&n[p]!==void 0&&f++)}return r===a&&f===r?n:c}return e}function _O(n,e){if(!e||Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(n[t]!==e[t])return!1;return!0}function vS(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function XO(n){if(!SS(n))return!1;const e=n.constructor;if(e===void 0)return!0;const t=e.prototype;return!(!SS(t)||!t.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function SS(n){return Object.prototype.toString.call(n)==="[object Object]"}function NR(n){return new Promise(e=>{setTimeout(e,n)})}function jO(n,e,t){return typeof t.structuralSharing=="function"?t.structuralSharing(n,e):t.structuralSharing!==!1?Ik(n,e):e}function zR(n,e,t=0){const i=[...n,e];return t&&i.length>t?i.slice(1):i}function qR(n,e,t=0){const i=[e,...n];return t&&i.length>t?i.slice(0,-1):i}var i0=Symbol();function Fk(n,e){return!n.queryFn&&e?.initialPromise?()=>e.initialPromise:!n.queryFn||n.queryFn===i0?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}var LR=class extends Yc{#t;#e;#n;constructor(){super(),this.#n=n=>{if(!el&&window.addEventListener){const e=()=>n();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#n=n,this.#e?.(),this.#e=n(e=>{typeof e=="boolean"?this.setFocused(e):this.onFocus()})}setFocused(n){this.#t!==n&&(this.#t=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(e=>{e(n)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},r0=new LR,BR=class extends Yc{#t=!0;#e;#n;constructor(){super(),this.#n=n=>{if(!el&&window.addEventListener){const e=()=>n(!0),t=()=>n(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",t,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#n=n,this.#e?.(),this.#e=n(this.setOnline.bind(this))}setOnline(n){this.#t!==n&&(this.#t=n,this.listeners.forEach(t=>{t(n)}))}isOnline(){return this.#t}},Ch=new BR;function NO(){let n,e;const t=new Promise((r,l)=>{n=r,e=l});t.status="pending",t.catch(()=>{});function i(r){Object.assign(t,r),delete t.resolve,delete t.reject}return t.resolve=r=>{i({status:"fulfilled",value:r}),n(r)},t.reject=r=>{i({status:"rejected",reason:r}),e(r)},t}function VR(n){return Math.min(1e3*2**n,3e4)}function Kk(n){return(n??"online")==="online"?Ch.isOnline():!0}var Jk=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function Nm(n){return n instanceof Jk}function eQ(n){let e=!1,t=0,i=!1,r;const l=NO(),a=S=>{i||(g(new Jk(S)),n.abort?.())},c=()=>{e=!0},f=()=>{e=!1},d=()=>r0.isFocused()&&(n.networkMode==="always"||Ch.isOnline())&&n.canRun(),p=()=>Kk(n.networkMode)&&n.canRun(),m=S=>{i||(i=!0,n.onSuccess?.(S),r?.(),l.resolve(S))},g=S=>{i||(i=!0,n.onError?.(S),r?.(),l.reject(S))},b=()=>new Promise(S=>{r=x=>{(i||d())&&S(x)},n.onPause?.()}).then(()=>{r=void 0,i||n.onContinue?.()}),v=()=>{if(i)return;let S;const x=t===0?n.initialPromise:void 0;try{S=x??n.fn()}catch(Q){S=Promise.reject(Q)}Promise.resolve(S).then(m).catch(Q=>{if(i)return;const P=n.retry??(el?0:3),A=n.retryDelay??VR,D=typeof A=="function"?A(t,Q):A,R=P===!0||typeof P=="number"&&t<P||typeof P=="function"&&P(t,Q);if(e||!R){g(Q);return}t++,n.onFail?.(t,Q),NR(D).then(()=>d()?void 0:b()).then(()=>{e?g(Q):v()})})};return{promise:l,cancel:a,continue:()=>(r?.(),l),cancelRetry:c,continueRetry:f,canStart:p,start:()=>(p()?v():b().then(v),l)}}var YR=n=>setTimeout(n,0);function UR(){let n=[],e=0,t=c=>{c()},i=c=>{c()},r=YR;const l=c=>{e?n.push(c):r(()=>{t(c)})},a=()=>{const c=n;n=[],c.length&&r(()=>{i(()=>{c.forEach(f=>{t(f)})})})};return{batch:c=>{let f;e++;try{f=c()}finally{e--,e||a()}return f},batchCalls:c=>(...f)=>{l(()=>{c(...f)})},schedule:l,setNotifyFunction:c=>{t=c},setBatchNotifyFunction:c=>{i=c},setScheduler:c=>{r=c}}}var nn=UR(),tQ=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ZO(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(el?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},GR=class extends tQ{#t;#e;#n;#i;#r;#o;#l;constructor(n){super(),this.#l=!1,this.#o=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#i=n.client,this.#n=this.#i.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#t=WR(this.options),this.state=n.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(n){this.options={...this.#o,...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(n,e){const t=jO(this.state.data,n,this.options);return this.#s({data:t,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),t}setState(n,e){this.#s({type:"setState",state:n,setStateOptions:e})}cancel(n){const e=this.#r?.promise;return this.#r?.cancel(n),e?e.then(ci).catch(ci):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(n=>Qi(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===i0||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(n=0){return this.state.isInvalidated||this.state.data===void 0||!Hk(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(e=>e!==n),this.observers.length||(this.#r&&(this.#l?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}fetch(n,e){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(n&&this.setOptions(n),!this.options.queryFn){const c=this.observers.find(f=>f.options.queryFn);c&&this.setOptions(c.options)}const t=new AbortController,i=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(this.#l=!0,t.signal)})},r=()=>{const c=Fk(this.options,e),f={client:this.#i,queryKey:this.queryKey,meta:this.meta};return i(f),this.#l=!1,this.options.persister?this.options.persister(c,f,this):c(f)},l={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:r};i(l),this.options.behavior?.onFetch(l,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#s({type:"fetch",meta:l.fetchOptions?.meta});const a=c=>{Nm(c)&&c.silent||this.#s({type:"error",error:c}),Nm(c)||(this.#n.config.onError?.(c,this),this.#n.config.onSettled?.(this.state.data,c,this)),this.scheduleGc()};return this.#r=eQ({initialPromise:e?.initialPromise,fn:l.fetchFn,abort:t.abort.bind(t),onSuccess:c=>{if(c===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(c)}catch(f){a(f);return}this.#n.config.onSuccess?.(c,this),this.#n.config.onSettled?.(c,this.state.error,this),this.scheduleGc()},onError:a,onFail:(c,f)=>{this.#s({type:"failed",failureCount:c,error:f})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}),this.#r.start()}#s(n){const e=t=>{switch(n.type){case"failed":return{...t,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...nQ(t.data,this.options),fetchMeta:n.meta??null};case"success":return{...t,data:n.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=n.error;return Nm(i)&&i.revert&&this.#e?{...this.#e,fetchStatus:"idle"}:{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...n.state}}};this.state=e(this.state),nn.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:n})})}};function nQ(n,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Kk(e.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function WR(n){const e=typeof n.initialData=="function"?n.initialData():n.initialData,t=e!==void 0,i=t?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:t?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:t?"success":"pending",fetchStatus:"idle"}}var HR=class extends Yc{constructor(n={}){super(),this.config=n,this.#t=new Map}#t;build(n,e,t){const i=e.queryKey,r=e.queryHash??n0(i,e);let l=this.get(r);return l||(l=new GR({client:n,queryKey:i,queryHash:r,options:n.defaultQueryOptions(e),state:t,defaultOptions:n.getQueryDefaults(i)}),this.add(l)),l}add(n){this.#t.has(n.queryHash)||(this.#t.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const e=this.#t.get(n.queryHash);e&&(n.destroy(),e===n&&this.#t.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){nn.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#t.get(n)}getAll(){return[...this.#t.values()]}find(n){const e={exact:!0,...n};return this.getAll().find(t=>yS(e,t))}findAll(n={}){const e=this.getAll();return Object.keys(n).length>0?e.filter(t=>yS(n,t)):e}notify(n){nn.batch(()=>{this.listeners.forEach(e=>{e(n)})})}onFocus(){nn.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){nn.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},IR=class extends tQ{#t;#e;#n;constructor(n){super(),this.mutationId=n.mutationId,this.#e=n.mutationCache,this.#t=[],this.state=n.state||FR(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(e=>e!==n),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(n){const e=()=>{this.#i({type:"continue"})};this.#n=eQ({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(r,l)=>{this.#i({type:"failed",failureCount:r,error:l})},onPause:()=>{this.#i({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const t=this.state.status==="pending",i=!this.#n.canStart();try{if(t)e();else{this.#i({type:"pending",variables:n,isPaused:i}),await this.#e.config.onMutate?.(n,this);const l=await this.options.onMutate?.(n);l!==this.state.context&&this.#i({type:"pending",context:l,variables:n,isPaused:i})}const r=await this.#n.start();return await this.#e.config.onSuccess?.(r,n,this.state.context,this),await this.options.onSuccess?.(r,n,this.state.context),await this.#e.config.onSettled?.(r,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(r,null,n,this.state.context),this.#i({type:"success",data:r}),r}catch(r){try{throw await this.#e.config.onError?.(r,n,this.state.context,this),await this.options.onError?.(r,n,this.state.context),await this.#e.config.onSettled?.(void 0,r,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,r,n,this.state.context),r}finally{this.#i({type:"error",error:r})}}finally{this.#e.runNext(this)}}#i(n){const e=t=>{switch(n.type){case"failed":return{...t,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...t,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:n.error,failureCount:t.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=e(this.state),nn.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(n)}),this.#e.notify({mutation:this,type:"updated",action:n})})}};function FR(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var KR=class extends Yc{constructor(n={}){super(),this.config=n,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(n,e,t){const i=new IR({mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(e),state:t});return this.add(i),i}add(n){this.#t.add(n);const e=Qf(n);if(typeof e=="string"){const t=this.#e.get(e);t?t.push(n):this.#e.set(e,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#t.delete(n)){const e=Qf(n);if(typeof e=="string"){const t=this.#e.get(e);if(t)if(t.length>1){const i=t.indexOf(n);i!==-1&&t.splice(i,1)}else t[0]===n&&this.#e.delete(e)}}this.notify({type:"removed",mutation:n})}canRun(n){const e=Qf(n);if(typeof e=="string"){const i=this.#e.get(e)?.find(r=>r.state.status==="pending");return!i||i===n}else return!0}runNext(n){const e=Qf(n);return typeof e=="string"?this.#e.get(e)?.find(i=>i!==n&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){nn.batch(()=>{this.#t.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(n){const e={exact:!0,...n};return this.getAll().find(t=>bS(e,t))}findAll(n={}){return this.getAll().filter(e=>bS(n,e))}notify(n){nn.batch(()=>{this.listeners.forEach(e=>{e(n)})})}resumePausedMutations(){const n=this.getAll().filter(e=>e.state.isPaused);return nn.batch(()=>Promise.all(n.map(e=>e.continue().catch(ci))))}};function Qf(n){return n.options.scope?.id}function xS(n){return{onFetch:(e,t)=>{const i=e.options,r=e.fetchOptions?.meta?.fetchMore?.direction,l=e.state.data?.pages||[],a=e.state.data?.pageParams||[];let c={pages:[],pageParams:[]},f=0;const d=async()=>{let p=!1;const m=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(e.signal.aborted?p=!0:e.signal.addEventListener("abort",()=>{p=!0}),e.signal)})},g=Fk(e.options,e.fetchOptions),b=async(v,S,x)=>{if(p)return Promise.reject();if(S==null&&v.pages.length)return Promise.resolve(v);const Q={client:e.client,queryKey:e.queryKey,pageParam:S,direction:x?"backward":"forward",meta:e.options.meta};m(Q);const P=await g(Q),{maxPages:A}=e.options,D=x?qR:zR;return{pages:D(v.pages,P,A),pageParams:D(v.pageParams,S,A)}};if(r&&l.length){const v=r==="backward",S=v?JR:wS,x={pages:l,pageParams:a},Q=S(i,x);c=await b(x,Q,v)}else{const v=n??l.length;do{const S=f===0?a[0]??i.initialPageParam:wS(i,c);if(f>0&&S==null)break;c=await b(c,S),f++}while(f<v)}return c};e.options.persister?e.fetchFn=()=>e.options.persister?.(d,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},t):e.fetchFn=d}}}function wS(n,{pages:e,pageParams:t}){const i=e.length-1;return e.length>0?n.getNextPageParam(e[i],e,t[i],t):void 0}function JR(n,{pages:e,pageParams:t}){return e.length>0?n.getPreviousPageParam?.(e[0],e,t[0],t):void 0}var eM=class{#t;#e;#n;#i;#r;#o;#l;#s;constructor(n={}){this.#t=n.queryCache||new HR,this.#e=n.mutationCache||new KR,this.#n=n.defaultOptions||{},this.#i=new Map,this.#r=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#l=r0.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#s=Ch.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#l?.(),this.#l=void 0,this.#s?.(),this.#s=void 0)}isFetching(n){return this.#t.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#e.findAll({...n,status:"pending"}).length}getQueryData(n){const e=this.defaultQueryOptions({queryKey:n});return this.#t.get(e.queryHash)?.state.data}ensureQueryData(n){const e=this.defaultQueryOptions(n),t=this.#t.build(this,e),i=t.state.data;return i===void 0?this.fetchQuery(n):(n.revalidateIfStale&&t.isStaleByTime(po(e.staleTime,t))&&this.prefetchQuery(e),Promise.resolve(i))}getQueriesData(n){return this.#t.findAll(n).map(({queryKey:e,state:t})=>{const i=t.data;return[e,i]})}setQueryData(n,e,t){const i=this.defaultQueryOptions({queryKey:n}),l=this.#t.get(i.queryHash)?.state.data,a=jR(e,l);if(a!==void 0)return this.#t.build(this,i).setData(a,{...t,manual:!0})}setQueriesData(n,e,t){return nn.batch(()=>this.#t.findAll(n).map(({queryKey:i})=>[i,this.setQueryData(i,e,t)]))}getQueryState(n){const e=this.defaultQueryOptions({queryKey:n});return this.#t.get(e.queryHash)?.state}removeQueries(n){const e=this.#t;nn.batch(()=>{e.findAll(n).forEach(t=>{e.remove(t)})})}resetQueries(n,e){const t=this.#t;return nn.batch(()=>(t.findAll(n).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...n},e)))}cancelQueries(n,e={}){const t={revert:!0,...e},i=nn.batch(()=>this.#t.findAll(n).map(r=>r.cancel(t)));return Promise.all(i).then(ci).catch(ci)}invalidateQueries(n,e={}){return nn.batch(()=>(this.#t.findAll(n).forEach(t=>{t.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},e)))}refetchQueries(n,e={}){const t={...e,cancelRefetch:e.cancelRefetch??!0},i=nn.batch(()=>this.#t.findAll(n).filter(r=>!r.isDisabled()).map(r=>{let l=r.fetch(void 0,t);return t.throwOnError||(l=l.catch(ci)),r.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(i).then(ci)}fetchQuery(n){const e=this.defaultQueryOptions(n);e.retry===void 0&&(e.retry=!1);const t=this.#t.build(this,e);return t.isStaleByTime(po(e.staleTime,t))?t.fetch(e):Promise.resolve(t.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(ci).catch(ci)}fetchInfiniteQuery(n){return n.behavior=xS(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(ci).catch(ci)}ensureInfiniteQueryData(n){return n.behavior=xS(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Ch.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,e){this.#i.set(vc(n),{queryKey:n,defaultOptions:e})}getQueryDefaults(n){const e=[...this.#i.values()],t={};return e.forEach(i=>{Sc(n,i.queryKey)&&Object.assign(t,i.defaultOptions)}),t}setMutationDefaults(n,e){this.#r.set(vc(n),{mutationKey:n,defaultOptions:e})}getMutationDefaults(n){const e=[...this.#r.values()],t={};return e.forEach(i=>{Sc(n,i.mutationKey)&&Object.assign(t,i.defaultOptions)}),t}defaultQueryOptions(n){if(n._defaulted)return n;const e={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return e.queryHash||(e.queryHash=n0(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===i0&&(e.enabled=!1),e}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},tM=class extends Yc{constructor(n,e){super(),this.options=e,this.#t=n,this.#s=null,this.#l=NO(),this.options.experimental_prefetchInRender||this.#l.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(e)}#t;#e=void 0;#n=void 0;#i=void 0;#r;#o;#l;#s;#m;#h;#d;#c;#u;#a;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),kS(this.#e,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return zO(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return zO(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#v(),this.#S(),this.#e.removeObserver(this)}setOptions(n){const e=this.options,t=this.#e;if(this.options=this.#t.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Qi(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#x(),this.#e.setOptions(this.options),e._defaulted&&!_O(this.options,e)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const i=this.hasListeners();i&&QS(this.#e,t,this.options,e)&&this.#f(),this.updateResult(),i&&(this.#e!==t||Qi(this.options.enabled,this.#e)!==Qi(e.enabled,this.#e)||po(this.options.staleTime,this.#e)!==po(e.staleTime,this.#e))&&this.#O();const r=this.#g();i&&(this.#e!==t||Qi(this.options.enabled,this.#e)!==Qi(e.enabled,this.#e)||r!==this.#a)&&this.#y(r)}getOptimisticResult(n){const e=this.#t.getQueryCache().build(this.#t,n),t=this.createResult(e,n);return iM(this,t)&&(this.#i=t,this.#o=this.options,this.#r=this.#e.state),t}getCurrentResult(){return this.#i}trackResult(n,e){return new Proxy(n,{get:(t,i)=>(this.trackProp(i),e?.(i),Reflect.get(t,i))})}trackProp(n){this.#p.add(n)}getCurrentQuery(){return this.#e}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const e=this.#t.defaultQueryOptions(n),t=this.#t.getQueryCache().build(this.#t,e);return t.fetch().then(()=>this.createResult(t,e))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#f(n){this.#x();let e=this.#e.fetch(this.options,n);return n?.throwOnError||(e=e.catch(ci)),e}#O(){this.#v();const n=po(this.options.staleTime,this.#e);if(el||this.#i.isStale||!ZO(n))return;const t=Hk(this.#i.dataUpdatedAt,n)+1;this.#c=setTimeout(()=>{this.#i.isStale||this.updateResult()},t)}#g(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(n){this.#S(),this.#a=n,!(el||Qi(this.options.enabled,this.#e)===!1||!ZO(this.#a)||this.#a===0)&&(this.#u=setInterval(()=>{(this.options.refetchIntervalInBackground||r0.isFocused())&&this.#f()},this.#a))}#b(){this.#O(),this.#y(this.#g())}#v(){this.#c&&(clearTimeout(this.#c),this.#c=void 0)}#S(){this.#u&&(clearInterval(this.#u),this.#u=void 0)}createResult(n,e){const t=this.#e,i=this.options,r=this.#i,l=this.#r,a=this.#o,f=n!==t?n.state:this.#n,{state:d}=n;let p={...d},m=!1,g;if(e._optimisticResults){const X=this.hasListeners(),U=!X&&kS(n,e),re=X&&QS(n,t,e,i);(U||re)&&(p={...p,...nQ(d.data,n.options)}),e._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:b,errorUpdatedAt:v,status:S}=p;g=p.data;let x=!1;if(e.placeholderData!==void 0&&g===void 0&&S==="pending"){let X;r?.isPlaceholderData&&e.placeholderData===a?.placeholderData?(X=r.data,x=!0):X=typeof e.placeholderData=="function"?e.placeholderData(this.#d?.state.data,this.#d):e.placeholderData,X!==void 0&&(S="success",g=jO(r?.data,X,e),m=!0)}if(e.select&&g!==void 0&&!x)if(r&&g===l?.data&&e.select===this.#m)g=this.#h;else try{this.#m=e.select,g=e.select(g),g=jO(r?.data,g,e),this.#h=g,this.#s=null}catch(X){this.#s=X}this.#s&&(b=this.#s,g=this.#h,v=Date.now(),S="error");const Q=p.fetchStatus==="fetching",P=S==="pending",A=S==="error",D=P&&Q,R=g!==void 0,_={status:S,fetchStatus:p.fetchStatus,isPending:P,isSuccess:S==="success",isError:A,isInitialLoading:D,isLoading:D,data:g,dataUpdatedAt:p.dataUpdatedAt,error:b,errorUpdatedAt:v,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>f.dataUpdateCount||p.errorUpdateCount>f.errorUpdateCount,isFetching:Q,isRefetching:Q&&!P,isLoadingError:A&&!R,isPaused:p.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:A&&R,isStale:s0(n,e),refetch:this.refetch,promise:this.#l};if(this.options.experimental_prefetchInRender){const X=I=>{_.status==="error"?I.reject(_.error):_.data!==void 0&&I.resolve(_.data)},U=()=>{const I=this.#l=_.promise=NO();X(I)},re=this.#l;switch(re.status){case"pending":n.queryHash===t.queryHash&&X(re);break;case"fulfilled":(_.status==="error"||_.data!==re.value)&&U();break;case"rejected":(_.status!=="error"||_.error!==re.reason)&&U();break}}return _}updateResult(){const n=this.#i,e=this.createResult(this.#e,this.options);if(this.#r=this.#e.state,this.#o=this.options,this.#r.data!==void 0&&(this.#d=this.#e),_O(e,n))return;this.#i=e;const t=()=>{if(!n)return!0;const{notifyOnChangeProps:i}=this.options,r=typeof i=="function"?i():i;if(r==="all"||!r&&!this.#p.size)return!0;const l=new Set(r??this.#p);return this.options.throwOnError&&l.add("error"),Object.keys(this.#i).some(a=>{const c=a;return this.#i[c]!==n[c]&&l.has(c)})};this.#w({listeners:t()})}#x(){const n=this.#t.getQueryCache().build(this.#t,this.options);if(n===this.#e)return;const e=this.#e;this.#e=n,this.#n=n.state,this.hasListeners()&&(e?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#w(n){nn.batch(()=>{n.listeners&&this.listeners.forEach(e=>{e(this.#i)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function nM(n,e){return Qi(e.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&e.retryOnMount===!1)}function kS(n,e){return nM(n,e)||n.state.data!==void 0&&zO(n,e,e.refetchOnMount)}function zO(n,e,t){if(Qi(e.enabled,n)!==!1){const i=typeof t=="function"?t(n):t;return i==="always"||i!==!1&&s0(n,e)}return!1}function QS(n,e,t,i){return(n!==e||Qi(i.enabled,n)===!1)&&(!t.suspense||n.state.status!=="error")&&s0(n,t)}function s0(n,e){return Qi(e.enabled,n)!==!1&&n.isStaleByTime(po(e.staleTime,n))}function iM(n,e){return!_O(n.getCurrentResult(),e)}var iQ=$.createContext(void 0),rM=n=>{const e=$.useContext(iQ);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},sM=({client:n,children:e})=>($.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),w.jsx(iQ.Provider,{value:n,children:e})),rQ=$.createContext(!1),lM=()=>$.useContext(rQ);rQ.Provider;function oM(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var aM=$.createContext(oM()),cM=()=>$.useContext(aM);function uM(n,e){return typeof n=="function"?n(...e):!!n}function CS(){}var fM=(n,e)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(e.isReset()||(n.retryOnMount=!1))},hM=n=>{$.useEffect(()=>{n.clearReset()},[n])},dM=({result:n,errorResetBoundary:e,throwOnError:t,query:i,suspense:r})=>n.isError&&!e.isReset()&&!n.isFetching&&i&&(r&&n.data===void 0||uM(t,[n.error,i])),pM=n=>{const e=n.staleTime;n.suspense&&(n.staleTime=typeof e=="function"?(...t)=>Math.max(e(...t),1e3):Math.max(e??1e3,1e3),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3)))},mM=(n,e)=>n.isLoading&&n.isFetching&&!e,OM=(n,e)=>n?.suspense&&e.isPending,TS=(n,e,t)=>e.fetchOptimistic(n).catch(()=>{t.clearReset()});function gM(n,e,t){const i=rM(),r=lM(),l=cM(),a=i.defaultQueryOptions(n);i.getDefaultOptions().queries?._experimental_beforeQuery?.(a),a._optimisticResults=r?"isRestoring":"optimistic",pM(a),fM(a,l),hM(l);const c=!i.getQueryCache().get(a.queryHash),[f]=$.useState(()=>new e(i,a)),d=f.getOptimisticResult(a),p=!r&&n.subscribed!==!1;if($.useSyncExternalStore($.useCallback(m=>{const g=p?f.subscribe(nn.batchCalls(m)):CS;return f.updateResult(),g},[f,p]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),$.useEffect(()=>{f.setOptions(a)},[a,f]),OM(a,d))throw TS(a,f,l);if(dM({result:d,errorResetBoundary:l,throwOnError:a.throwOnError,query:i.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw d.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(a,d),a.experimental_prefetchInRender&&!el&&mM(d,r)&&(c?TS(a,f,l):i.getQueryCache().get(a.queryHash)?.promise)?.catch(CS).finally(()=>{f.updateResult()}),a.notifyOnChangeProps?d:f.trackResult(d)}function sQ(n,e){return gM(n,tM)}const xs="";async function yM(n,e,t){return await fetch(`${xs}/api/create-app`,{method:"POST",body:JSON.stringify({options:{...n,chosenAddOns:e,starter:t?.url||void 0}}),headers:{"Content-Type":"application/json"}})}async function bM(n){return await fetch(`${xs}/api/add-to-app`,{method:"POST",body:JSON.stringify({addOns:n}),headers:{"Content-Type":"application/json"}})}function lQ(){return fetch(`${xs}/api/shutdown`,{method:"POST"})}async function vM(n){return await(await fetch(`${xs}/api/load-remote-add-on?url=${n}`)).json()}async function oQ(n){return await(await fetch(`${xs}/api/load-starter?url=${n}`)).json()}const SM=fetch(`${xs}/api/initial-payload`);async function xM(){return await(await SM).json()}async function wM(n,e,t){return(await fetch(`${xs}/api/dry-run-create-app`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({options:{...n,chosenAddOns:e,starter:t?.url}})})).json()}async function kM(n){return(await fetch(`${xs}/api/dry-run-add-to-app`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({addOns:n})})).json()}function QM(n,e,t){const i=new Map;for(const l of n)i.set(l.id,{selected:!1,enabled:!0,dependedUpon:!1,isSingleSelect:l.type==="host"?l.type:void 0});function r(l){const a=new Set;function c(f){if(a.has(f))return;a.add(f);const d=n.find(p=>p.id===f);if(d){for(const m of d.dependsOn||[]){const g=i.get(m);g&&(g.selected=!0,g.enabled=!1,g.dependedUpon=!0,c(m))}const p=i.get(f);p&&(p.selected=!0,p.dependedUpon||(p.enabled=!0))}}c(l)}for(const l of t){const a=i.get(l);a&&(a.selected=!0,a.enabled=!1,a.dependedUpon=!0),r(l)}for(const l of e)r(l);return Object.fromEntries(Array.from(i.entries()).map(([l,a])=>[l,{enabled:a.enabled,selected:a.selected,isSingleSelect:a.isSingleSelect}]))}const Gn=Vc(()=>({initialized:!1,framework:"",mode:"",projectName:"",targetDir:"",typescript:!0,tailwind:!0,git:!0,chosenAddOns:[],packageManager:"pnpm"})),nr=()=>sQ({queryKey:["initial-data"],queryFn:xM}),ir=()=>{const{data:n}=nr();return n!==void 0},aQ=()=>nr().data?.forcedRouterMode,CM=()=>nr().data?.forcedAddOns,l0=()=>nr().data?.registry,TM=()=>nr().data?.localFiles,PM=()=>nr().data?.output,cQ=()=>nr().data?.options,AM=()=>cQ()?.chosenAddOns,rr=()=>nr().data?.applicationMode,$M=()=>nr().data?.addOns,RM=()=>nr().data?.supportedModes,PS=Vc(()=>({includeFiles:["unchanged","added","modified","deleted","overwritten"]})),co=Vc(()=>({userSelectedAddOns:[],customAddOns:[]})),zo=Vc(()=>({projectStarter:void 0}));function MM(n){co.setState(e=>({customAddOns:[...e.customAddOns,n]})),n.modes.includes(Gn.getState().mode)&&co.setState(e=>({userSelectedAddOns:[...e.userSelectedAddOns,n.id]}))}function Uc(){const n=ir(),e=Gc(),t=AM(),i=$M(),r=CM(),{userSelectedAddOns:l,customAddOns:a}=co(),c=zo().projectStarter,f=$.useMemo(()=>n?[...i?.[e]||[],...a.filter(b=>b.modes.includes(e))]:[],[n,e,i,a]),d=$.useMemo(()=>{if(!n)return{};const g=new Set;for(const b of c?.dependsOn||[])g.add(b);for(const b of t)g.add(b);for(const b of r||[])g.add(b);return QM(f,l,Array.from(g))},[n,f,l,t,c?.dependsOn,r]),p=$.useMemo(()=>{if(!n)return[];const g=new Set(Object.keys(d).filter(b=>d[b].selected));for(const b of r||[])g.add(b);return Array.from(g)},[n,d,r]);return{toggleAddOn:$.useCallback(g=>{if(n)if(d[g].isSingleSelect){if(!d[g].selected){const b=d[g].isSingleSelect,v=Object.keys(d).find(S=>S!==g&&d[S].isSingleSelect===b&&d[S].selected);co.setState(S=>{let x=S.userSelectedAddOns.filter(Q=>Q!==v);return x.includes(g)||(x=[...x,g]),{userSelectedAddOns:x}})}}else d[g].enabled&&(d[g].selected?co.setState(b=>({userSelectedAddOns:b.userSelectedAddOns.filter(v=>v!==g)})):co.setState(b=>({userSelectedAddOns:[...b.userSelectedAddOns,g]})))},[n,d]),chosenAddOns:p,availableAddOns:f,userSelectedAddOns:l,originalSelectedAddOns:t,addOnState:d}}const o0=()=>zo(n=>n.projectStarter===void 0),EM=()=>{const n=ir(),e=aQ(),t=o0();return n?!e&&t:!1},DM=()=>{const n=ir(),e=o0(),t=Gc();return n?e&&t==="code-router":!1},ZM=()=>{const n=ir(),e=o0(),t=Gc();return n?e&&t==="code-router":!1},_M=()=>Gn(n=>n.projectName),Gc=()=>{const n=ir(),e=aQ(),t=Gn(i=>i.mode);return n?e||t:"file-router"};function uQ(){const n=ir(),e=PS(i=>i.includeFiles),t=$.useCallback(i=>{n&&PS.setState(r=>({includeFiles:r.includeFiles.includes(i)?r.includeFiles.filter(l=>l!==i):[...r.includeFiles,i]}))},[n]);return{includedFiles:e,toggleFilter:t}}function XM(){const n=ir(),e=rr(),{initialized:t,...i}=Gn(),{userSelectedAddOns:r,chosenAddOns:l}=Uc(),a=zo().projectStarter,{data:c}=sQ({queryKey:["dry-run",e,JSON.stringify(i),JSON.stringify(r),a?.url],queryFn:async()=>e==="none"||!n||!t?{files:{},commands:[],deletedFiles:[]}:e==="setup"?wM(i,l,a):kM(r),enabled:n,initialData:{files:{},commands:[],deletedFiles:[]}});return c}const jM=Vc()(XR(n=>({open:!1,dontShowAgain:!1,setOpen:e=>n({open:e}),setDontShowAgain:e=>n({dontShowAgain:e})}),{name:"startup-dialog",partialize:n=>({dontShowAgain:n.dontShowAgain}),merge:(n,e)=>(n&&n.dontShowAgain?e.open=!1:e.open=!0,e)})),NM=n=>Gn.setState({projectName:n}),zM=n=>Gn.setState({mode:n});function qM(n){Gn.setState({typescript:n})}function LM(n){Gn.setState({tailwind:n})}function qO(n){zo.setState(()=>({projectStarter:n})),n&&Gn.setState({mode:n.mode})}function BM(){const n=ir(),e=cQ();$.useEffect(()=>{n&&Gn.setState({...e,initialized:!0})},[n])}/**
|
|
49
|
+
`).replace(B5,"")}function E1(s,o){return o=M1(o),M1(s)===o}function ff(){}function Ie(s,o,u,h,O,y){switch(u){case"children":typeof h=="string"?o==="body"||o==="textarea"&&h===""||wl(s,h):(typeof h=="number"||typeof h=="bigint")&&o!=="body"&&wl(s,""+h);break;case"className":mu(s,"class",h);break;case"tabIndex":mu(s,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":mu(s,u,h);break;case"style":Zy(s,h,y);break;case"data":if(o!=="object"){mu(s,"data",h);break}case"src":case"href":if(h===""&&(o!=="a"||u!=="href")){s.removeAttribute(u);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){s.removeAttribute(u);break}h=yu(""+h),s.setAttribute(u,h);break;case"action":case"formAction":if(typeof h=="function"){s.setAttribute(u,"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 y=="function"&&(u==="formAction"?(o!=="input"&&Ie(s,o,"name",O.name,O,null),Ie(s,o,"formEncType",O.formEncType,O,null),Ie(s,o,"formMethod",O.formMethod,O,null),Ie(s,o,"formTarget",O.formTarget,O,null)):(Ie(s,o,"encType",O.encType,O,null),Ie(s,o,"method",O.method,O,null),Ie(s,o,"target",O.target,O,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){s.removeAttribute(u);break}h=yu(""+h),s.setAttribute(u,h);break;case"onClick":h!=null&&(s.onclick=ff);break;case"onScroll":h!=null&&_e("scroll",s);break;case"onScrollEnd":h!=null&&_e("scrollend",s);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(i(61));if(u=h.__html,u!=null){if(O.children!=null)throw Error(i(60));s.innerHTML=u}}break;case"multiple":s.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":s.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){s.removeAttribute("xlink:href");break}u=yu(""+h),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?s.setAttribute(u,""+h):s.removeAttribute(u);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":h&&typeof h!="function"&&typeof h!="symbol"?s.setAttribute(u,""):s.removeAttribute(u);break;case"capture":case"download":h===!0?s.setAttribute(u,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?s.setAttribute(u,h):s.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?s.setAttribute(u,h):s.removeAttribute(u);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?s.removeAttribute(u):s.setAttribute(u,h);break;case"popover":_e("beforetoggle",s),_e("toggle",s),pu(s,"popover",h);break;case"xlinkActuate":hr(s,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":hr(s,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":hr(s,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":hr(s,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":hr(s,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":hr(s,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":hr(s,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":hr(s,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":hr(s,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":pu(s,"is",h);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=b$.get(u)||u,pu(s,u,h))}}function Om(s,o,u,h,O,y){switch(u){case"style":Zy(s,h,y);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(i(61));if(u=h.__html,u!=null){if(O.children!=null)throw Error(i(60));s.innerHTML=u}}break;case"children":typeof h=="string"?wl(s,h):(typeof h=="number"||typeof h=="bigint")&&wl(s,""+h);break;case"onScroll":h!=null&&_e("scroll",s);break;case"onScrollEnd":h!=null&&_e("scrollend",s);break;case"onClick":h!=null&&(s.onclick=ff);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ky.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(O=u.endsWith("Capture"),o=u.slice(2,O?u.length-7:void 0),y=s[st]||null,y=y!=null?y[u]:null,typeof y=="function"&&s.removeEventListener(o,y,O),typeof h=="function")){typeof y!="function"&&y!==null&&(u in s?s[u]=null:s.hasAttribute(u)&&s.removeAttribute(u)),s.addEventListener(o,h,O);break e}u in s?s[u]=h:h===!0?s.setAttribute(u,""):pu(s,u,h)}}}function en(s,o,u){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_e("error",s),_e("load",s);var h=!1,O=!1,y;for(y in u)if(u.hasOwnProperty(y)){var k=u[y];if(k!=null)switch(y){case"src":h=!0;break;case"srcSet":O=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,o));default:Ie(s,o,y,k,u,null)}}O&&Ie(s,o,"srcSet",u.srcSet,u,null),h&&Ie(s,o,"src",u.src,u,null);return;case"input":_e("invalid",s);var C=y=k=O=null,M=null,L=null;for(h in u)if(u.hasOwnProperty(h)){var J=u[h];if(J!=null)switch(h){case"name":O=J;break;case"type":k=J;break;case"checked":M=J;break;case"defaultChecked":L=J;break;case"value":y=J;break;case"defaultValue":C=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(i(137,o));break;default:Ie(s,o,h,J,u,null)}}Ry(s,y,C,M,L,k,O,!1),Ou(s);return;case"select":_e("invalid",s),h=k=y=null;for(O in u)if(u.hasOwnProperty(O)&&(C=u[O],C!=null))switch(O){case"value":y=C;break;case"defaultValue":k=C;break;case"multiple":h=C;default:Ie(s,o,O,C,u,null)}o=y,u=k,s.multiple=!!h,o!=null?xl(s,!!h,o,!1):u!=null&&xl(s,!!h,u,!0);return;case"textarea":_e("invalid",s),y=O=h=null;for(k in u)if(u.hasOwnProperty(k)&&(C=u[k],C!=null))switch(k){case"value":h=C;break;case"defaultValue":O=C;break;case"children":y=C;break;case"dangerouslySetInnerHTML":if(C!=null)throw Error(i(91));break;default:Ie(s,o,k,C,u,null)}Ey(s,h,O,y),Ou(s);return;case"option":for(M in u)if(u.hasOwnProperty(M)&&(h=u[M],h!=null))switch(M){case"selected":s.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:Ie(s,o,M,h,u,null)}return;case"dialog":_e("beforetoggle",s),_e("toggle",s),_e("cancel",s),_e("close",s);break;case"iframe":case"object":_e("load",s);break;case"video":case"audio":for(h=0;h<Da.length;h++)_e(Da[h],s);break;case"image":_e("error",s),_e("load",s);break;case"details":_e("toggle",s);break;case"embed":case"source":case"link":_e("error",s),_e("load",s);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(L in u)if(u.hasOwnProperty(L)&&(h=u[L],h!=null))switch(L){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,o));default:Ie(s,o,L,h,u,null)}return;default:if(Md(o)){for(J in u)u.hasOwnProperty(J)&&(h=u[J],h!==void 0&&Om(s,o,J,h,u,void 0));return}}for(C in u)u.hasOwnProperty(C)&&(h=u[C],h!=null&&Ie(s,o,C,h,u,null))}function V5(s,o,u,h){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var O=null,y=null,k=null,C=null,M=null,L=null,J=null;for(Y in u){var ie=u[Y];if(u.hasOwnProperty(Y)&&ie!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":M=ie;default:h.hasOwnProperty(Y)||Ie(s,o,Y,null,h,ie)}}for(var V in h){var Y=h[V];if(ie=u[V],h.hasOwnProperty(V)&&(Y!=null||ie!=null))switch(V){case"type":y=Y;break;case"name":O=Y;break;case"checked":L=Y;break;case"defaultChecked":J=Y;break;case"value":k=Y;break;case"defaultValue":C=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,o));break;default:Y!==ie&&Ie(s,o,V,Y,h,ie)}}$d(s,k,C,M,L,J,y,O);return;case"select":Y=k=C=V=null;for(y in u)if(M=u[y],u.hasOwnProperty(y)&&M!=null)switch(y){case"value":break;case"multiple":Y=M;default:h.hasOwnProperty(y)||Ie(s,o,y,null,h,M)}for(O in h)if(y=h[O],M=u[O],h.hasOwnProperty(O)&&(y!=null||M!=null))switch(O){case"value":V=y;break;case"defaultValue":C=y;break;case"multiple":k=y;default:y!==M&&Ie(s,o,O,y,h,M)}o=C,u=k,h=Y,V!=null?xl(s,!!u,V,!1):!!h!=!!u&&(o!=null?xl(s,!!u,o,!0):xl(s,!!u,u?[]:"",!1));return;case"textarea":Y=V=null;for(C in u)if(O=u[C],u.hasOwnProperty(C)&&O!=null&&!h.hasOwnProperty(C))switch(C){case"value":break;case"children":break;default:Ie(s,o,C,null,h,O)}for(k in h)if(O=h[k],y=u[k],h.hasOwnProperty(k)&&(O!=null||y!=null))switch(k){case"value":V=O;break;case"defaultValue":Y=O;break;case"children":break;case"dangerouslySetInnerHTML":if(O!=null)throw Error(i(91));break;default:O!==y&&Ie(s,o,k,O,h,y)}My(s,V,Y);return;case"option":for(var Pe in u)if(V=u[Pe],u.hasOwnProperty(Pe)&&V!=null&&!h.hasOwnProperty(Pe))switch(Pe){case"selected":s.selected=!1;break;default:Ie(s,o,Pe,null,h,V)}for(M in h)if(V=h[M],Y=u[M],h.hasOwnProperty(M)&&V!==Y&&(V!=null||Y!=null))switch(M){case"selected":s.selected=V&&typeof V!="function"&&typeof V!="symbol";break;default:Ie(s,o,M,V,h,Y)}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 ke in u)V=u[ke],u.hasOwnProperty(ke)&&V!=null&&!h.hasOwnProperty(ke)&&Ie(s,o,ke,null,h,V);for(L in h)if(V=h[L],Y=u[L],h.hasOwnProperty(L)&&V!==Y&&(V!=null||Y!=null))switch(L){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(i(137,o));break;default:Ie(s,o,L,V,h,Y)}return;default:if(Md(o)){for(var Fe in u)V=u[Fe],u.hasOwnProperty(Fe)&&V!==void 0&&!h.hasOwnProperty(Fe)&&Om(s,o,Fe,void 0,h,V);for(J in h)V=h[J],Y=u[J],!h.hasOwnProperty(J)||V===Y||V===void 0&&Y===void 0||Om(s,o,J,V,h,Y);return}}for(var z in u)V=u[z],u.hasOwnProperty(z)&&V!=null&&!h.hasOwnProperty(z)&&Ie(s,o,z,null,h,V);for(ie in h)V=h[ie],Y=u[ie],!h.hasOwnProperty(ie)||V===Y||V==null&&Y==null||Ie(s,o,ie,V,h,Y)}var gm=null,ym=null;function hf(s){return s.nodeType===9?s:s.ownerDocument}function D1(s){switch(s){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Z1(s,o){if(s===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return s===1&&o==="foreignObject"?0:s}function bm(s,o){return s==="textarea"||s==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var vm=null;function Y5(){var s=window.event;return s&&s.type==="popstate"?s===vm?!1:(vm=s,!0):(vm=null,!1)}var _1=typeof setTimeout=="function"?setTimeout:void 0,U5=typeof clearTimeout=="function"?clearTimeout:void 0,X1=typeof Promise=="function"?Promise:void 0,G5=typeof queueMicrotask=="function"?queueMicrotask:typeof X1<"u"?function(s){return X1.resolve(null).then(s).catch(W5)}:_1;function W5(s){setTimeout(function(){throw s})}function is(s){return s==="head"}function j1(s,o){var u=o,h=0,O=0;do{var y=u.nextSibling;if(s.removeChild(u),y&&y.nodeType===8)if(u=y.data,u==="/$"){if(0<h&&8>h){u=h;var k=s.ownerDocument;if(u&1&&_a(k.documentElement),u&2&&_a(k.body),u&4)for(u=k.head,_a(u),k=u.firstChild;k;){var C=k.nextSibling,M=k.nodeName;k[Fo]||M==="SCRIPT"||M==="STYLE"||M==="LINK"&&k.rel.toLowerCase()==="stylesheet"||u.removeChild(k),k=C}}if(O===0){s.removeChild(y),Va(o);return}O--}else u==="$"||u==="$?"||u==="$!"?O++:h=u.charCodeAt(0)-48;else h=0;u=y}while(u);Va(o)}function Sm(s){var o=s.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var u=o;switch(o=o.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":Sm(u),Cd(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}s.removeChild(u)}}function H5(s,o,u,h){for(;s.nodeType===1;){var O=u;if(s.nodeName.toLowerCase()!==o.toLowerCase()){if(!h&&(s.nodeName!=="INPUT"||s.type!=="hidden"))break}else if(h){if(!s[Fo])switch(o){case"meta":if(!s.hasAttribute("itemprop"))break;return s;case"link":if(y=s.getAttribute("rel"),y==="stylesheet"&&s.hasAttribute("data-precedence"))break;if(y!==O.rel||s.getAttribute("href")!==(O.href==null||O.href===""?null:O.href)||s.getAttribute("crossorigin")!==(O.crossOrigin==null?null:O.crossOrigin)||s.getAttribute("title")!==(O.title==null?null:O.title))break;return s;case"style":if(s.hasAttribute("data-precedence"))break;return s;case"script":if(y=s.getAttribute("src"),(y!==(O.src==null?null:O.src)||s.getAttribute("type")!==(O.type==null?null:O.type)||s.getAttribute("crossorigin")!==(O.crossOrigin==null?null:O.crossOrigin))&&y&&s.hasAttribute("async")&&!s.hasAttribute("itemprop"))break;return s;default:return s}}else if(o==="input"&&s.type==="hidden"){var y=O.name==null?null:""+O.name;if(O.type==="hidden"&&s.getAttribute("name")===y)return s}else return s;if(s=ki(s.nextSibling),s===null)break}return null}function I5(s,o,u){if(o==="")return null;for(;s.nodeType!==3;)if((s.nodeType!==1||s.nodeName!=="INPUT"||s.type!=="hidden")&&!u||(s=ki(s.nextSibling),s===null))return null;return s}function xm(s){return s.data==="$!"||s.data==="$?"&&s.ownerDocument.readyState==="complete"}function F5(s,o){var u=s.ownerDocument;if(s.data!=="$?"||u.readyState==="complete")o();else{var h=function(){o(),u.removeEventListener("DOMContentLoaded",h)};u.addEventListener("DOMContentLoaded",h),s._reactRetry=h}}function ki(s){for(;s!=null;s=s.nextSibling){var o=s.nodeType;if(o===1||o===3)break;if(o===8){if(o=s.data,o==="$"||o==="$!"||o==="$?"||o==="F!"||o==="F")break;if(o==="/$")return null}}return s}var wm=null;function N1(s){s=s.previousSibling;for(var o=0;s;){if(s.nodeType===8){var u=s.data;if(u==="$"||u==="$!"||u==="$?"){if(o===0)return s;o--}else u==="/$"&&o++}s=s.previousSibling}return null}function z1(s,o,u){switch(o=hf(u),s){case"html":if(s=o.documentElement,!s)throw Error(i(452));return s;case"head":if(s=o.head,!s)throw Error(i(453));return s;case"body":if(s=o.body,!s)throw Error(i(454));return s;default:throw Error(i(451))}}function _a(s){for(var o=s.attributes;o.length;)s.removeAttributeNode(o[0]);Cd(s)}var ai=new Map,q1=new Set;function df(s){return typeof s.getRootNode=="function"?s.getRootNode():s.nodeType===9?s:s.ownerDocument}var Cr=W.d;W.d={f:K5,r:J5,D:eR,C:tR,L:nR,m:iR,X:sR,S:rR,M:lR};function K5(){var s=Cr.f(),o=rf();return s||o}function J5(s){var o=yl(s);o!==null&&o.tag===5&&o.type==="form"?ov(o):Cr.r(s)}var Kl=typeof document>"u"?null:document;function L1(s,o,u){var h=Kl;if(h&&typeof o=="string"&&o){var O=ti(o);O='link[rel="'+s+'"][href="'+O+'"]',typeof u=="string"&&(O+='[crossorigin="'+u+'"]'),q1.has(O)||(q1.add(O),s={rel:s,crossOrigin:u,href:o},h.querySelector(O)===null&&(o=h.createElement("link"),en(o,"link",s),Ut(o),h.head.appendChild(o)))}}function eR(s){Cr.D(s),L1("dns-prefetch",s,null)}function tR(s,o){Cr.C(s,o),L1("preconnect",s,o)}function nR(s,o,u){Cr.L(s,o,u);var h=Kl;if(h&&s&&o){var O='link[rel="preload"][as="'+ti(o)+'"]';o==="image"&&u&&u.imageSrcSet?(O+='[imagesrcset="'+ti(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(O+='[imagesizes="'+ti(u.imageSizes)+'"]')):O+='[href="'+ti(s)+'"]';var y=O;switch(o){case"style":y=Jl(s);break;case"script":y=eo(s)}ai.has(y)||(s=p({rel:"preload",href:o==="image"&&u&&u.imageSrcSet?void 0:s,as:o},u),ai.set(y,s),h.querySelector(O)!==null||o==="style"&&h.querySelector(Xa(y))||o==="script"&&h.querySelector(ja(y))||(o=h.createElement("link"),en(o,"link",s),Ut(o),h.head.appendChild(o)))}}function iR(s,o){Cr.m(s,o);var u=Kl;if(u&&s){var h=o&&typeof o.as=="string"?o.as:"script",O='link[rel="modulepreload"][as="'+ti(h)+'"][href="'+ti(s)+'"]',y=O;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=eo(s)}if(!ai.has(y)&&(s=p({rel:"modulepreload",href:s},o),ai.set(y,s),u.querySelector(O)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(ja(y)))return}h=u.createElement("link"),en(h,"link",s),Ut(h),u.head.appendChild(h)}}}function rR(s,o,u){Cr.S(s,o,u);var h=Kl;if(h&&s){var O=bl(h).hoistableStyles,y=Jl(s);o=o||"default";var k=O.get(y);if(!k){var C={loading:0,preload:null};if(k=h.querySelector(Xa(y)))C.loading=5;else{s=p({rel:"stylesheet",href:s,"data-precedence":o},u),(u=ai.get(y))&&km(s,u);var M=k=h.createElement("link");Ut(M),en(M,"link",s),M._p=new Promise(function(L,J){M.onload=L,M.onerror=J}),M.addEventListener("load",function(){C.loading|=1}),M.addEventListener("error",function(){C.loading|=2}),C.loading|=4,pf(k,o,h)}k={type:"stylesheet",instance:k,count:1,state:C},O.set(y,k)}}}function sR(s,o){Cr.X(s,o);var u=Kl;if(u&&s){var h=bl(u).hoistableScripts,O=eo(s),y=h.get(O);y||(y=u.querySelector(ja(O)),y||(s=p({src:s,async:!0},o),(o=ai.get(O))&&Qm(s,o),y=u.createElement("script"),Ut(y),en(y,"link",s),u.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},h.set(O,y))}}function lR(s,o){Cr.M(s,o);var u=Kl;if(u&&s){var h=bl(u).hoistableScripts,O=eo(s),y=h.get(O);y||(y=u.querySelector(ja(O)),y||(s=p({src:s,async:!0,type:"module"},o),(o=ai.get(O))&&Qm(s,o),y=u.createElement("script"),Ut(y),en(y,"link",s),u.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},h.set(O,y))}}function B1(s,o,u,h){var O=(O=ae.current)?df(O):null;if(!O)throw Error(i(446));switch(s){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(o=Jl(u.href),u=bl(O).hoistableStyles,h=u.get(o),h||(h={type:"style",instance:null,count:0,state:null},u.set(o,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){s=Jl(u.href);var y=bl(O).hoistableStyles,k=y.get(s);if(k||(O=O.ownerDocument||O,k={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(s,k),(y=O.querySelector(Xa(s)))&&!y._p&&(k.instance=y,k.state.loading=5),ai.has(s)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},ai.set(s,u),y||oR(O,s,u,k.state))),o&&h===null)throw Error(i(528,""));return k}if(o&&h!==null)throw Error(i(529,""));return null;case"script":return o=u.async,u=u.src,typeof u=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=eo(u),u=bl(O).hoistableScripts,h=u.get(o),h||(h={type:"script",instance:null,count:0,state:null},u.set(o,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,s))}}function Jl(s){return'href="'+ti(s)+'"'}function Xa(s){return'link[rel="stylesheet"]['+s+"]"}function V1(s){return p({},s,{"data-precedence":s.precedence,precedence:null})}function oR(s,o,u,h){s.querySelector('link[rel="preload"][as="style"]['+o+"]")?h.loading=1:(o=s.createElement("link"),h.preload=o,o.addEventListener("load",function(){return h.loading|=1}),o.addEventListener("error",function(){return h.loading|=2}),en(o,"link",u),Ut(o),s.head.appendChild(o))}function eo(s){return'[src="'+ti(s)+'"]'}function ja(s){return"script[async]"+s}function Y1(s,o,u){if(o.count++,o.instance===null)switch(o.type){case"style":var h=s.querySelector('style[data-href~="'+ti(u.href)+'"]');if(h)return o.instance=h,Ut(h),h;var O=p({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return h=(s.ownerDocument||s).createElement("style"),Ut(h),en(h,"style",O),pf(h,u.precedence,s),o.instance=h;case"stylesheet":O=Jl(u.href);var y=s.querySelector(Xa(O));if(y)return o.state.loading|=4,o.instance=y,Ut(y),y;h=V1(u),(O=ai.get(O))&&km(h,O),y=(s.ownerDocument||s).createElement("link"),Ut(y);var k=y;return k._p=new Promise(function(C,M){k.onload=C,k.onerror=M}),en(y,"link",h),o.state.loading|=4,pf(y,u.precedence,s),o.instance=y;case"script":return y=eo(u.src),(O=s.querySelector(ja(y)))?(o.instance=O,Ut(O),O):(h=u,(O=ai.get(y))&&(h=p({},u),Qm(h,O)),s=s.ownerDocument||s,O=s.createElement("script"),Ut(O),en(O,"link",h),s.head.appendChild(O),o.instance=O);case"void":return null;default:throw Error(i(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(h=o.instance,o.state.loading|=4,pf(h,u.precedence,s));return o.instance}function pf(s,o,u){for(var h=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),O=h.length?h[h.length-1]:null,y=O,k=0;k<h.length;k++){var C=h[k];if(C.dataset.precedence===o)y=C;else if(y!==O)break}y?y.parentNode.insertBefore(s,y.nextSibling):(o=u.nodeType===9?u.head:u,o.insertBefore(s,o.firstChild))}function km(s,o){s.crossOrigin==null&&(s.crossOrigin=o.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=o.referrerPolicy),s.title==null&&(s.title=o.title)}function Qm(s,o){s.crossOrigin==null&&(s.crossOrigin=o.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=o.referrerPolicy),s.integrity==null&&(s.integrity=o.integrity)}var mf=null;function U1(s,o,u){if(mf===null){var h=new Map,O=mf=new Map;O.set(u,h)}else O=mf,h=O.get(u),h||(h=new Map,O.set(u,h));if(h.has(s))return h;for(h.set(s,null),u=u.getElementsByTagName(s),O=0;O<u.length;O++){var y=u[O];if(!(y[Fo]||y[Ct]||s==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var k=y.getAttribute(o)||"";k=s+k;var C=h.get(k);C?C.push(y):h.set(k,[y])}}return h}function G1(s,o,u){s=s.ownerDocument||s,s.head.insertBefore(u,o==="title"?s.querySelector("head > title"):null)}function aR(s,o,u){if(u===1||o.itemProp!=null)return!1;switch(s){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;switch(o.rel){case"stylesheet":return s=o.disabled,typeof o.precedence=="string"&&s==null;default:return!0}case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function W1(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}var Na=null;function cR(){}function uR(s,o,u){if(Na===null)throw Error(i(475));var h=Na;if(o.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var O=Jl(u.href),y=s.querySelector(Xa(O));if(y){s=y._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(h.count++,h=Of.bind(h),s.then(h,h)),o.state.loading|=4,o.instance=y,Ut(y);return}y=s.ownerDocument||s,u=V1(u),(O=ai.get(O))&&km(u,O),y=y.createElement("link"),Ut(y);var k=y;k._p=new Promise(function(C,M){k.onload=C,k.onerror=M}),en(y,"link",u),o.instance=y}h.stylesheets===null&&(h.stylesheets=new Map),h.stylesheets.set(o,s),(s=o.state.preload)&&(o.state.loading&3)===0&&(h.count++,o=Of.bind(h),s.addEventListener("load",o),s.addEventListener("error",o))}}function fR(){if(Na===null)throw Error(i(475));var s=Na;return s.stylesheets&&s.count===0&&Cm(s,s.stylesheets),0<s.count?function(o){var u=setTimeout(function(){if(s.stylesheets&&Cm(s,s.stylesheets),s.unsuspend){var h=s.unsuspend;s.unsuspend=null,h()}},6e4);return s.unsuspend=o,function(){s.unsuspend=null,clearTimeout(u)}}:null}function Of(){if(this.count--,this.count===0){if(this.stylesheets)Cm(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;this.unsuspend=null,s()}}}var gf=null;function Cm(s,o){s.stylesheets=null,s.unsuspend!==null&&(s.count++,gf=new Map,o.forEach(hR,s),gf=null,Of.call(s))}function hR(s,o){if(!(o.state.loading&4)){var u=gf.get(s);if(u)var h=u.get(null);else{u=new Map,gf.set(s,u);for(var O=s.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<O.length;y++){var k=O[y];(k.nodeName==="LINK"||k.getAttribute("media")!=="not all")&&(u.set(k.dataset.precedence,k),h=k)}h&&u.set(null,h)}O=o.instance,k=O.getAttribute("data-precedence"),y=u.get(k)||h,y===h&&u.set(null,O),u.set(k,O),this.count++,h=Of.bind(this),O.addEventListener("load",h),O.addEventListener("error",h),y?y.parentNode.insertBefore(O,y.nextSibling):(s=s.nodeType===9?s.head:s,s.insertBefore(O,s.firstChild)),o.state.loading|=4}}var za={$$typeof:A,Provider:null,Consumer:null,_currentValue:G,_currentValue2:G,_threadCount:0};function dR(s,o,u,h,O,y,k,C){this.tag=1,this.containerInfo=s,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=zr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zr(0),this.hiddenUpdates=zr(null),this.identifierPrefix=h,this.onUncaughtError=O,this.onCaughtError=y,this.onRecoverableError=k,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.incompleteTransitions=new Map}function H1(s,o,u,h,O,y,k,C,M,L,J,ie){return s=new dR(s,o,u,k,C,M,L,ie),o=1,y===!0&&(o|=24),y=_n(3,null,null,o),s.current=y,y.stateNode=s,o=op(),o.refCount++,s.pooledCache=o,o.refCount++,y.memoizedState={element:h,isDehydrated:u,cache:o},fp(y),s}function I1(s){return s?(s=Rl,s):Rl}function F1(s,o,u,h,O,y){O=I1(O),h.context===null?h.context=O:h.pendingContext=O,h=Vr(o),h.payload={element:u},y=y===void 0?null:y,y!==null&&(h.callback=y),u=Yr(s,h,o),u!==null&&(qn(u,s,o),Oa(u,s,o))}function K1(s,o){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var u=s.retryLane;s.retryLane=u!==0&&u<o?u:o}}function Tm(s,o){K1(s,o),(s=s.alternate)&&K1(s,o)}function J1(s){if(s.tag===13){var o=$l(s,67108864);o!==null&&qn(o,s,67108864),Tm(s,67108864)}}var yf=!0;function pR(s,o,u,h){var O=j.T;j.T=null;var y=W.p;try{W.p=2,Pm(s,o,u,h)}finally{W.p=y,j.T=O}}function mR(s,o,u,h){var O=j.T;j.T=null;var y=W.p;try{W.p=8,Pm(s,o,u,h)}finally{W.p=y,j.T=O}}function Pm(s,o,u,h){if(yf){var O=Am(h);if(O===null)mm(s,o,h,bf,u),tS(s,h);else if(gR(O,s,o,u,h))h.stopPropagation();else if(tS(s,h),o&4&&-1<OR.indexOf(s)){for(;O!==null;){var y=yl(O);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var k=Jn(y.pendingLanes);if(k!==0){var C=y;for(C.pendingLanes|=2,C.entangledLanes|=2;k;){var M=1<<31-kt(k);C.entanglements[1]|=M,k&=~M}Xi(y),(Ue&6)===0&&(tf=rt()+500,Ea(0))}}break;case 13:C=$l(y,2),C!==null&&qn(C,y,2),rf(),Tm(y,2)}if(y=Am(h),y===null&&mm(s,o,h,bf,u),y===O)break;O=y}O!==null&&h.stopPropagation()}else mm(s,o,h,null,u)}}function Am(s){return s=Dd(s),$m(s)}var bf=null;function $m(s){if(bf=null,s=gl(s),s!==null){var o=l(s);if(o===null)s=null;else{var u=o.tag;if(u===13){if(s=a(o),s!==null)return s;s=null}else if(u===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;s=null}else o!==s&&(s=null)}}return bf=s,null}function eS(s){switch(s){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(Wn()){case wt:return 2;case Hn:return 8;case In:case jt:return 32;case En:return 268435456;default:return 32}default:return 32}}var Rm=!1,rs=null,ss=null,ls=null,qa=new Map,La=new Map,os=[],OR="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 tS(s,o){switch(s){case"focusin":case"focusout":rs=null;break;case"dragenter":case"dragleave":ss=null;break;case"mouseover":case"mouseout":ls=null;break;case"pointerover":case"pointerout":qa.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":La.delete(o.pointerId)}}function Ba(s,o,u,h,O,y){return s===null||s.nativeEvent!==y?(s={blockedOn:o,domEventName:u,eventSystemFlags:h,nativeEvent:y,targetContainers:[O]},o!==null&&(o=yl(o),o!==null&&J1(o)),s):(s.eventSystemFlags|=h,o=s.targetContainers,O!==null&&o.indexOf(O)===-1&&o.push(O),s)}function gR(s,o,u,h,O){switch(o){case"focusin":return rs=Ba(rs,s,o,u,h,O),!0;case"dragenter":return ss=Ba(ss,s,o,u,h,O),!0;case"mouseover":return ls=Ba(ls,s,o,u,h,O),!0;case"pointerover":var y=O.pointerId;return qa.set(y,Ba(qa.get(y)||null,s,o,u,h,O)),!0;case"gotpointercapture":return y=O.pointerId,La.set(y,Ba(La.get(y)||null,s,o,u,h,O)),!0}return!1}function nS(s){var o=gl(s.target);if(o!==null){var u=l(o);if(u!==null){if(o=u.tag,o===13){if(o=a(u),o!==null){s.blockedOn=o,zt(s.priority,function(){if(u.tag===13){var h=zn();h=pt(h);var O=$l(u,h);O!==null&&qn(O,u,h),Tm(u,h)}});return}}else if(o===3&&u.stateNode.current.memoizedState.isDehydrated){s.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}s.blockedOn=null}function vf(s){if(s.blockedOn!==null)return!1;for(var o=s.targetContainers;0<o.length;){var u=Am(s.nativeEvent);if(u===null){u=s.nativeEvent;var h=new u.constructor(u.type,u);Ed=h,u.target.dispatchEvent(h),Ed=null}else return o=yl(u),o!==null&&J1(o),s.blockedOn=u,!1;o.shift()}return!0}function iS(s,o,u){vf(s)&&u.delete(o)}function yR(){Rm=!1,rs!==null&&vf(rs)&&(rs=null),ss!==null&&vf(ss)&&(ss=null),ls!==null&&vf(ls)&&(ls=null),qa.forEach(iS),La.forEach(iS)}function Sf(s,o){s.blockedOn===o&&(s.blockedOn=null,Rm||(Rm=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,yR)))}var xf=null;function rS(s){xf!==s&&(xf=s,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){xf===s&&(xf=null);for(var o=0;o<s.length;o+=3){var u=s[o],h=s[o+1],O=s[o+2];if(typeof h!="function"){if($m(h||u)===null)continue;break}var y=yl(u);y!==null&&(s.splice(o,3),o-=3,$p(y,{pending:!0,data:O,method:u.method,action:h},h,O))}}))}function Va(s){function o(M){return Sf(M,s)}rs!==null&&Sf(rs,s),ss!==null&&Sf(ss,s),ls!==null&&Sf(ls,s),qa.forEach(o),La.forEach(o);for(var u=0;u<os.length;u++){var h=os[u];h.blockedOn===s&&(h.blockedOn=null)}for(;0<os.length&&(u=os[0],u.blockedOn===null);)nS(u),u.blockedOn===null&&os.shift();if(u=(s.ownerDocument||s).$$reactFormReplay,u!=null)for(h=0;h<u.length;h+=3){var O=u[h],y=u[h+1],k=O[st]||null;if(typeof y=="function")k||rS(u);else if(k){var C=null;if(y&&y.hasAttribute("formAction")){if(O=y,k=y[st]||null)C=k.formAction;else if($m(O)!==null)continue}else C=k.action;typeof C=="function"?u[h+1]=C:(u.splice(h,3),h-=3),rS(u)}}}function Mm(s){this._internalRoot=s}wf.prototype.render=Mm.prototype.render=function(s){var o=this._internalRoot;if(o===null)throw Error(i(409));var u=o.current,h=zn();F1(u,h,s,o,null,null)},wf.prototype.unmount=Mm.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var o=s.containerInfo;F1(s.current,2,null,s,null,null),rf(),o[Yt]=null}};function wf(s){this._internalRoot=s}wf.prototype.unstable_scheduleHydration=function(s){if(s){var o=Ts();s={blockedOn:null,target:s,priority:o};for(var u=0;u<os.length&&o!==0&&o<os[u].priority;u++);os.splice(u,0,s),u===0&&nS(s)}};var sS=e.version;if(sS!=="19.1.0")throw Error(i(527,sS,"19.1.0"));W.findDOMNode=function(s){var o=s._reactInternals;if(o===void 0)throw typeof s.render=="function"?Error(i(188)):(s=Object.keys(s).join(","),Error(i(268,s)));return s=f(o),s=s!==null?d(s):null,s=s===null?null:s.stateNode,s};var bR={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var kf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!kf.isDisabled&&kf.supportsFiber)try{Fn=kf.inject(bR),Vt=kf}catch{}}return Ua.createRoot=function(s,o){if(!r(s))throw Error(i(299));var u=!1,h="",O=Sv,y=xv,k=wv,C=null;return o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onUncaughtError!==void 0&&(O=o.onUncaughtError),o.onCaughtError!==void 0&&(y=o.onCaughtError),o.onRecoverableError!==void 0&&(k=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(C=o.unstable_transitionCallbacks)),o=H1(s,1,!1,null,null,u,h,O,y,k,C,null),s[Yt]=o.current,pm(s),new Mm(o)},Ua.hydrateRoot=function(s,o,u){if(!r(s))throw Error(i(299));var h=!1,O="",y=Sv,k=xv,C=wv,M=null,L=null;return u!=null&&(u.unstable_strictMode===!0&&(h=!0),u.identifierPrefix!==void 0&&(O=u.identifierPrefix),u.onUncaughtError!==void 0&&(y=u.onUncaughtError),u.onCaughtError!==void 0&&(k=u.onCaughtError),u.onRecoverableError!==void 0&&(C=u.onRecoverableError),u.unstable_transitionCallbacks!==void 0&&(M=u.unstable_transitionCallbacks),u.formState!==void 0&&(L=u.formState)),o=H1(s,1,!0,o,u??null,h,O,y,k,C,M,L),o.context=I1(null),u=o.current,h=zn(),h=pt(h),O=Vr(h),O.callback=null,Yr(u,O,h),u=h,o.current.lanes=u,Si(o,u),Xi(o),s[Yt]=o.current,pm(s),new wf(o)},Ua.version="19.1.0",Ua}var mS;function AR(){if(mS)return Dm.exports;mS=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(e){console.error(e)}}return n(),Dm.exports=PR(),Dm.exports}var $R=AR();const RR=e0($R);var $=t0();const K=e0($),Wk=SR({__proto__:null,default:K},[$]),OS=n=>{let e;const t=new Set,i=(d,p)=>{const m=typeof d=="function"?d(e):d;if(!Object.is(m,e)){const g=e;e=p??(typeof m!="object"||m===null)?m:Object.assign({},e,m),t.forEach(b=>b(e,g))}},r=()=>e,c={setState:i,getState:r,getInitialState:()=>f,subscribe:d=>(t.add(d),()=>t.delete(d))},f=e=n(i,r,c);return c},MR=n=>n?OS(n):OS,ER=n=>n;function DR(n,e=ER){const t=K.useSyncExternalStore(n.subscribe,()=>e(n.getState()),()=>e(n.getInitialState()));return K.useDebugValue(t),t}const gS=n=>{const e=MR(n),t=i=>DR(e,i);return Object.assign(t,e),t},Vc=n=>n?gS(n):gS;function ZR(n,e){let t;try{t=n()}catch{return}return{getItem:r=>{var l;const a=f=>f===null?null:JSON.parse(f,void 0),c=(l=t.getItem(r))!=null?l:null;return c instanceof Promise?c.then(a):a(c)},setItem:(r,l)=>t.setItem(r,JSON.stringify(l,void 0)),removeItem:r=>t.removeItem(r)}}const DO=n=>e=>{try{const t=n(e);return t instanceof Promise?t:{then(i){return DO(i)(t)},catch(i){return this}}}catch(t){return{then(i){return this},catch(i){return DO(i)(t)}}}},_R=(n,e)=>(t,i,r)=>{let l={storage:ZR(()=>localStorage),partialize:S=>S,version:0,merge:(S,x)=>({...x,...S}),...e},a=!1;const c=new Set,f=new Set;let d=l.storage;if(!d)return n((...S)=>{console.warn(`[zustand persist middleware] Unable to update item '${l.name}', the given storage is currently unavailable.`),t(...S)},i,r);const p=()=>{const S=l.partialize({...i()});return d.setItem(l.name,{state:S,version:l.version})},m=r.setState;r.setState=(S,x)=>{m(S,x),p()};const g=n((...S)=>{t(...S),p()},i,r);r.getInitialState=()=>g;let b;const v=()=>{var S,x;if(!d)return;a=!1,c.forEach(P=>{var A;return P((A=i())!=null?A:g)});const Q=((x=l.onRehydrateStorage)==null?void 0:x.call(l,(S=i())!=null?S:g))||void 0;return DO(d.getItem.bind(d))(l.name).then(P=>{if(P)if(typeof P.version=="number"&&P.version!==l.version){if(l.migrate){const A=l.migrate(P.state,P.version);return A instanceof Promise?A.then(D=>[!0,D]):[!0,A]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,P.state];return[!1,void 0]}).then(P=>{var A;const[D,R]=P;if(b=l.merge(R,(A=i())!=null?A:g),t(b,!0),D)return p()}).then(()=>{Q?.(b,void 0),b=i(),a=!0,f.forEach(P=>P(b))}).catch(P=>{Q?.(void 0,P)})};return r.persist={setOptions:S=>{l={...l,...S},S.storage&&(d=S.storage)},clearStorage:()=>{d?.removeItem(l.name)},getOptions:()=>l,rehydrate:()=>v(),hasHydrated:()=>a,onHydrate:S=>(c.add(S),()=>{c.delete(S)}),onFinishHydration:S=>(f.add(S),()=>{f.delete(S)})},l.skipHydration||v(),b||g},XR=_R;var Yc=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},el=typeof window>"u"||"Deno"in globalThis;function ci(){}function jR(n,e){return typeof n=="function"?n(e):n}function ZO(n){return typeof n=="number"&&n>=0&&n!==1/0}function Hk(n,e){return Math.max(n+(e||0)-Date.now(),0)}function po(n,e){return typeof n=="function"?n(e):n}function Qi(n,e){return typeof n=="function"?n(e):n}function yS(n,e){const{type:t="all",exact:i,fetchStatus:r,predicate:l,queryKey:a,stale:c}=n;if(a){if(i){if(e.queryHash!==n0(a,e.options))return!1}else if(!Sc(e.queryKey,a))return!1}if(t!=="all"){const f=e.isActive();if(t==="active"&&!f||t==="inactive"&&f)return!1}return!(typeof c=="boolean"&&e.isStale()!==c||r&&r!==e.state.fetchStatus||l&&!l(e))}function bS(n,e){const{exact:t,status:i,predicate:r,mutationKey:l}=n;if(l){if(!e.options.mutationKey)return!1;if(t){if(vc(e.options.mutationKey)!==vc(l))return!1}else if(!Sc(e.options.mutationKey,l))return!1}return!(i&&e.state.status!==i||r&&!r(e))}function n0(n,e){return(e?.queryKeyHashFn||vc)(n)}function vc(n){return JSON.stringify(n,(e,t)=>XO(t)?Object.keys(t).sort().reduce((i,r)=>(i[r]=t[r],i),{}):t)}function Sc(n,e){return n===e?!0:typeof n!=typeof e?!1:n&&e&&typeof n=="object"&&typeof e=="object"?Object.keys(e).every(t=>Sc(n[t],e[t])):!1}function Ik(n,e){if(n===e)return n;const t=vS(n)&&vS(e);if(t||XO(n)&&XO(e)){const i=t?n:Object.keys(n),r=i.length,l=t?e:Object.keys(e),a=l.length,c=t?[]:{};let f=0;for(let d=0;d<a;d++){const p=t?d:l[d];(!t&&i.includes(p)||t)&&n[p]===void 0&&e[p]===void 0?(c[p]=void 0,f++):(c[p]=Ik(n[p],e[p]),c[p]===n[p]&&n[p]!==void 0&&f++)}return r===a&&f===r?n:c}return e}function _O(n,e){if(!e||Object.keys(n).length!==Object.keys(e).length)return!1;for(const t in n)if(n[t]!==e[t])return!1;return!0}function vS(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function XO(n){if(!SS(n))return!1;const e=n.constructor;if(e===void 0)return!0;const t=e.prototype;return!(!SS(t)||!t.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function SS(n){return Object.prototype.toString.call(n)==="[object Object]"}function NR(n){return new Promise(e=>{setTimeout(e,n)})}function jO(n,e,t){return typeof t.structuralSharing=="function"?t.structuralSharing(n,e):t.structuralSharing!==!1?Ik(n,e):e}function zR(n,e,t=0){const i=[...n,e];return t&&i.length>t?i.slice(1):i}function qR(n,e,t=0){const i=[e,...n];return t&&i.length>t?i.slice(0,-1):i}var i0=Symbol();function Fk(n,e){return!n.queryFn&&e?.initialPromise?()=>e.initialPromise:!n.queryFn||n.queryFn===i0?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}var LR=class extends Yc{#t;#e;#n;constructor(){super(),this.#n=n=>{if(!el&&window.addEventListener){const e=()=>n();return window.addEventListener("visibilitychange",e,!1),()=>{window.removeEventListener("visibilitychange",e)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#n=n,this.#e?.(),this.#e=n(e=>{typeof e=="boolean"?this.setFocused(e):this.onFocus()})}setFocused(n){this.#t!==n&&(this.#t=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(e=>{e(n)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},r0=new LR,BR=class extends Yc{#t=!0;#e;#n;constructor(){super(),this.#n=n=>{if(!el&&window.addEventListener){const e=()=>n(!0),t=()=>n(!1);return window.addEventListener("online",e,!1),window.addEventListener("offline",t,!1),()=>{window.removeEventListener("online",e),window.removeEventListener("offline",t)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#n=n,this.#e?.(),this.#e=n(this.setOnline.bind(this))}setOnline(n){this.#t!==n&&(this.#t=n,this.listeners.forEach(t=>{t(n)}))}isOnline(){return this.#t}},Ch=new BR;function NO(){let n,e;const t=new Promise((r,l)=>{n=r,e=l});t.status="pending",t.catch(()=>{});function i(r){Object.assign(t,r),delete t.resolve,delete t.reject}return t.resolve=r=>{i({status:"fulfilled",value:r}),n(r)},t.reject=r=>{i({status:"rejected",reason:r}),e(r)},t}function VR(n){return Math.min(1e3*2**n,3e4)}function Kk(n){return(n??"online")==="online"?Ch.isOnline():!0}var Jk=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function Nm(n){return n instanceof Jk}function eQ(n){let e=!1,t=0,i=!1,r;const l=NO(),a=S=>{i||(g(new Jk(S)),n.abort?.())},c=()=>{e=!0},f=()=>{e=!1},d=()=>r0.isFocused()&&(n.networkMode==="always"||Ch.isOnline())&&n.canRun(),p=()=>Kk(n.networkMode)&&n.canRun(),m=S=>{i||(i=!0,n.onSuccess?.(S),r?.(),l.resolve(S))},g=S=>{i||(i=!0,n.onError?.(S),r?.(),l.reject(S))},b=()=>new Promise(S=>{r=x=>{(i||d())&&S(x)},n.onPause?.()}).then(()=>{r=void 0,i||n.onContinue?.()}),v=()=>{if(i)return;let S;const x=t===0?n.initialPromise:void 0;try{S=x??n.fn()}catch(Q){S=Promise.reject(Q)}Promise.resolve(S).then(m).catch(Q=>{if(i)return;const P=n.retry??(el?0:3),A=n.retryDelay??VR,D=typeof A=="function"?A(t,Q):A,R=P===!0||typeof P=="number"&&t<P||typeof P=="function"&&P(t,Q);if(e||!R){g(Q);return}t++,n.onFail?.(t,Q),NR(D).then(()=>d()?void 0:b()).then(()=>{e?g(Q):v()})})};return{promise:l,cancel:a,continue:()=>(r?.(),l),cancelRetry:c,continueRetry:f,canStart:p,start:()=>(p()?v():b().then(v),l)}}var YR=n=>setTimeout(n,0);function UR(){let n=[],e=0,t=c=>{c()},i=c=>{c()},r=YR;const l=c=>{e?n.push(c):r(()=>{t(c)})},a=()=>{const c=n;n=[],c.length&&r(()=>{i(()=>{c.forEach(f=>{t(f)})})})};return{batch:c=>{let f;e++;try{f=c()}finally{e--,e||a()}return f},batchCalls:c=>(...f)=>{l(()=>{c(...f)})},schedule:l,setNotifyFunction:c=>{t=c},setBatchNotifyFunction:c=>{i=c},setScheduler:c=>{r=c}}}var nn=UR(),tQ=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ZO(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(el?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},GR=class extends tQ{#t;#e;#n;#i;#r;#o;#l;constructor(n){super(),this.#l=!1,this.#o=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#i=n.client,this.#n=this.#i.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#t=WR(this.options),this.state=n.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(n){this.options={...this.#o,...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(n,e){const t=jO(this.state.data,n,this.options);return this.#s({data:t,type:"success",dataUpdatedAt:e?.updatedAt,manual:e?.manual}),t}setState(n,e){this.#s({type:"setState",state:n,setStateOptions:e})}cancel(n){const e=this.#r?.promise;return this.#r?.cancel(n),e?e.then(ci).catch(ci):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(n=>Qi(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===i0||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(n=0){return this.state.isInvalidated||this.state.data===void 0||!Hk(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(e=>e!==n),this.observers.length||(this.#r&&(this.#l?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}fetch(n,e){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&e?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(n&&this.setOptions(n),!this.options.queryFn){const c=this.observers.find(f=>f.options.queryFn);c&&this.setOptions(c.options)}const t=new AbortController,i=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(this.#l=!0,t.signal)})},r=()=>{const c=Fk(this.options,e),f={client:this.#i,queryKey:this.queryKey,meta:this.meta};return i(f),this.#l=!1,this.options.persister?this.options.persister(c,f,this):c(f)},l={fetchOptions:e,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:r};i(l),this.options.behavior?.onFetch(l,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#s({type:"fetch",meta:l.fetchOptions?.meta});const a=c=>{Nm(c)&&c.silent||this.#s({type:"error",error:c}),Nm(c)||(this.#n.config.onError?.(c,this),this.#n.config.onSettled?.(this.state.data,c,this)),this.scheduleGc()};return this.#r=eQ({initialPromise:e?.initialPromise,fn:l.fetchFn,abort:t.abort.bind(t),onSuccess:c=>{if(c===void 0){a(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(c)}catch(f){a(f);return}this.#n.config.onSuccess?.(c,this),this.#n.config.onSettled?.(c,this.state.error,this),this.scheduleGc()},onError:a,onFail:(c,f)=>{this.#s({type:"failed",failureCount:c,error:f})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}),this.#r.start()}#s(n){const e=t=>{switch(n.type){case"failed":return{...t,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...nQ(t.data,this.options),fetchMeta:n.meta??null};case"success":return{...t,data:n.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=n.error;return Nm(i)&&i.revert&&this.#e?{...this.#e,fetchStatus:"idle"}:{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...n.state}}};this.state=e(this.state),nn.batch(()=>{this.observers.forEach(t=>{t.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:n})})}};function nQ(n,e){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Kk(e.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function WR(n){const e=typeof n.initialData=="function"?n.initialData():n.initialData,t=e!==void 0,i=t?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:t?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:t?"success":"pending",fetchStatus:"idle"}}var HR=class extends Yc{constructor(n={}){super(),this.config=n,this.#t=new Map}#t;build(n,e,t){const i=e.queryKey,r=e.queryHash??n0(i,e);let l=this.get(r);return l||(l=new GR({client:n,queryKey:i,queryHash:r,options:n.defaultQueryOptions(e),state:t,defaultOptions:n.getQueryDefaults(i)}),this.add(l)),l}add(n){this.#t.has(n.queryHash)||(this.#t.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const e=this.#t.get(n.queryHash);e&&(n.destroy(),e===n&&this.#t.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){nn.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#t.get(n)}getAll(){return[...this.#t.values()]}find(n){const e={exact:!0,...n};return this.getAll().find(t=>yS(e,t))}findAll(n={}){const e=this.getAll();return Object.keys(n).length>0?e.filter(t=>yS(n,t)):e}notify(n){nn.batch(()=>{this.listeners.forEach(e=>{e(n)})})}onFocus(){nn.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){nn.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},IR=class extends tQ{#t;#e;#n;constructor(n){super(),this.mutationId=n.mutationId,this.#e=n.mutationCache,this.#t=[],this.state=n.state||FR(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(e=>e!==n),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(n){const e=()=>{this.#i({type:"continue"})};this.#n=eQ({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(r,l)=>{this.#i({type:"failed",failureCount:r,error:l})},onPause:()=>{this.#i({type:"pause"})},onContinue:e,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const t=this.state.status==="pending",i=!this.#n.canStart();try{if(t)e();else{this.#i({type:"pending",variables:n,isPaused:i}),await this.#e.config.onMutate?.(n,this);const l=await this.options.onMutate?.(n);l!==this.state.context&&this.#i({type:"pending",context:l,variables:n,isPaused:i})}const r=await this.#n.start();return await this.#e.config.onSuccess?.(r,n,this.state.context,this),await this.options.onSuccess?.(r,n,this.state.context),await this.#e.config.onSettled?.(r,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(r,null,n,this.state.context),this.#i({type:"success",data:r}),r}catch(r){try{throw await this.#e.config.onError?.(r,n,this.state.context,this),await this.options.onError?.(r,n,this.state.context),await this.#e.config.onSettled?.(void 0,r,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,r,n,this.state.context),r}finally{this.#i({type:"error",error:r})}}finally{this.#e.runNext(this)}}#i(n){const e=t=>{switch(n.type){case"failed":return{...t,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...t,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:n.error,failureCount:t.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=e(this.state),nn.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(n)}),this.#e.notify({mutation:this,type:"updated",action:n})})}};function FR(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var KR=class extends Yc{constructor(n={}){super(),this.config=n,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(n,e,t){const i=new IR({mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(e),state:t});return this.add(i),i}add(n){this.#t.add(n);const e=Qf(n);if(typeof e=="string"){const t=this.#e.get(e);t?t.push(n):this.#e.set(e,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#t.delete(n)){const e=Qf(n);if(typeof e=="string"){const t=this.#e.get(e);if(t)if(t.length>1){const i=t.indexOf(n);i!==-1&&t.splice(i,1)}else t[0]===n&&this.#e.delete(e)}}this.notify({type:"removed",mutation:n})}canRun(n){const e=Qf(n);if(typeof e=="string"){const i=this.#e.get(e)?.find(r=>r.state.status==="pending");return!i||i===n}else return!0}runNext(n){const e=Qf(n);return typeof e=="string"?this.#e.get(e)?.find(i=>i!==n&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){nn.batch(()=>{this.#t.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(n){const e={exact:!0,...n};return this.getAll().find(t=>bS(e,t))}findAll(n={}){return this.getAll().filter(e=>bS(n,e))}notify(n){nn.batch(()=>{this.listeners.forEach(e=>{e(n)})})}resumePausedMutations(){const n=this.getAll().filter(e=>e.state.isPaused);return nn.batch(()=>Promise.all(n.map(e=>e.continue().catch(ci))))}};function Qf(n){return n.options.scope?.id}function xS(n){return{onFetch:(e,t)=>{const i=e.options,r=e.fetchOptions?.meta?.fetchMore?.direction,l=e.state.data?.pages||[],a=e.state.data?.pageParams||[];let c={pages:[],pageParams:[]},f=0;const d=async()=>{let p=!1;const m=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(e.signal.aborted?p=!0:e.signal.addEventListener("abort",()=>{p=!0}),e.signal)})},g=Fk(e.options,e.fetchOptions),b=async(v,S,x)=>{if(p)return Promise.reject();if(S==null&&v.pages.length)return Promise.resolve(v);const Q={client:e.client,queryKey:e.queryKey,pageParam:S,direction:x?"backward":"forward",meta:e.options.meta};m(Q);const P=await g(Q),{maxPages:A}=e.options,D=x?qR:zR;return{pages:D(v.pages,P,A),pageParams:D(v.pageParams,S,A)}};if(r&&l.length){const v=r==="backward",S=v?JR:wS,x={pages:l,pageParams:a},Q=S(i,x);c=await b(x,Q,v)}else{const v=n??l.length;do{const S=f===0?a[0]??i.initialPageParam:wS(i,c);if(f>0&&S==null)break;c=await b(c,S),f++}while(f<v)}return c};e.options.persister?e.fetchFn=()=>e.options.persister?.(d,{client:e.client,queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},t):e.fetchFn=d}}}function wS(n,{pages:e,pageParams:t}){const i=e.length-1;return e.length>0?n.getNextPageParam(e[i],e,t[i],t):void 0}function JR(n,{pages:e,pageParams:t}){return e.length>0?n.getPreviousPageParam?.(e[0],e,t[0],t):void 0}var eM=class{#t;#e;#n;#i;#r;#o;#l;#s;constructor(n={}){this.#t=n.queryCache||new HR,this.#e=n.mutationCache||new KR,this.#n=n.defaultOptions||{},this.#i=new Map,this.#r=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#l=r0.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#s=Ch.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#l?.(),this.#l=void 0,this.#s?.(),this.#s=void 0)}isFetching(n){return this.#t.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#e.findAll({...n,status:"pending"}).length}getQueryData(n){const e=this.defaultQueryOptions({queryKey:n});return this.#t.get(e.queryHash)?.state.data}ensureQueryData(n){const e=this.defaultQueryOptions(n),t=this.#t.build(this,e),i=t.state.data;return i===void 0?this.fetchQuery(n):(n.revalidateIfStale&&t.isStaleByTime(po(e.staleTime,t))&&this.prefetchQuery(e),Promise.resolve(i))}getQueriesData(n){return this.#t.findAll(n).map(({queryKey:e,state:t})=>{const i=t.data;return[e,i]})}setQueryData(n,e,t){const i=this.defaultQueryOptions({queryKey:n}),l=this.#t.get(i.queryHash)?.state.data,a=jR(e,l);if(a!==void 0)return this.#t.build(this,i).setData(a,{...t,manual:!0})}setQueriesData(n,e,t){return nn.batch(()=>this.#t.findAll(n).map(({queryKey:i})=>[i,this.setQueryData(i,e,t)]))}getQueryState(n){const e=this.defaultQueryOptions({queryKey:n});return this.#t.get(e.queryHash)?.state}removeQueries(n){const e=this.#t;nn.batch(()=>{e.findAll(n).forEach(t=>{e.remove(t)})})}resetQueries(n,e){const t=this.#t;return nn.batch(()=>(t.findAll(n).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...n},e)))}cancelQueries(n,e={}){const t={revert:!0,...e},i=nn.batch(()=>this.#t.findAll(n).map(r=>r.cancel(t)));return Promise.all(i).then(ci).catch(ci)}invalidateQueries(n,e={}){return nn.batch(()=>(this.#t.findAll(n).forEach(t=>{t.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},e)))}refetchQueries(n,e={}){const t={...e,cancelRefetch:e.cancelRefetch??!0},i=nn.batch(()=>this.#t.findAll(n).filter(r=>!r.isDisabled()).map(r=>{let l=r.fetch(void 0,t);return t.throwOnError||(l=l.catch(ci)),r.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(i).then(ci)}fetchQuery(n){const e=this.defaultQueryOptions(n);e.retry===void 0&&(e.retry=!1);const t=this.#t.build(this,e);return t.isStaleByTime(po(e.staleTime,t))?t.fetch(e):Promise.resolve(t.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(ci).catch(ci)}fetchInfiniteQuery(n){return n.behavior=xS(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(ci).catch(ci)}ensureInfiniteQueryData(n){return n.behavior=xS(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Ch.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,e){this.#i.set(vc(n),{queryKey:n,defaultOptions:e})}getQueryDefaults(n){const e=[...this.#i.values()],t={};return e.forEach(i=>{Sc(n,i.queryKey)&&Object.assign(t,i.defaultOptions)}),t}setMutationDefaults(n,e){this.#r.set(vc(n),{mutationKey:n,defaultOptions:e})}getMutationDefaults(n){const e=[...this.#r.values()],t={};return e.forEach(i=>{Sc(n,i.mutationKey)&&Object.assign(t,i.defaultOptions)}),t}defaultQueryOptions(n){if(n._defaulted)return n;const e={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return e.queryHash||(e.queryHash=n0(e.queryKey,e)),e.refetchOnReconnect===void 0&&(e.refetchOnReconnect=e.networkMode!=="always"),e.throwOnError===void 0&&(e.throwOnError=!!e.suspense),!e.networkMode&&e.persister&&(e.networkMode="offlineFirst"),e.queryFn===i0&&(e.enabled=!1),e}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},tM=class extends Yc{constructor(n,e){super(),this.options=e,this.#t=n,this.#s=null,this.#l=NO(),this.options.experimental_prefetchInRender||this.#l.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(e)}#t;#e=void 0;#n=void 0;#i=void 0;#r;#o;#l;#s;#m;#h;#d;#c;#u;#a;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),kS(this.#e,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return zO(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return zO(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#v(),this.#S(),this.#e.removeObserver(this)}setOptions(n){const e=this.options,t=this.#e;if(this.options=this.#t.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Qi(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#x(),this.#e.setOptions(this.options),e._defaulted&&!_O(this.options,e)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const i=this.hasListeners();i&&QS(this.#e,t,this.options,e)&&this.#f(),this.updateResult(),i&&(this.#e!==t||Qi(this.options.enabled,this.#e)!==Qi(e.enabled,this.#e)||po(this.options.staleTime,this.#e)!==po(e.staleTime,this.#e))&&this.#O();const r=this.#g();i&&(this.#e!==t||Qi(this.options.enabled,this.#e)!==Qi(e.enabled,this.#e)||r!==this.#a)&&this.#y(r)}getOptimisticResult(n){const e=this.#t.getQueryCache().build(this.#t,n),t=this.createResult(e,n);return iM(this,t)&&(this.#i=t,this.#o=this.options,this.#r=this.#e.state),t}getCurrentResult(){return this.#i}trackResult(n,e){return new Proxy(n,{get:(t,i)=>(this.trackProp(i),e?.(i),Reflect.get(t,i))})}trackProp(n){this.#p.add(n)}getCurrentQuery(){return this.#e}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const e=this.#t.defaultQueryOptions(n),t=this.#t.getQueryCache().build(this.#t,e);return t.fetch().then(()=>this.createResult(t,e))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#i))}#f(n){this.#x();let e=this.#e.fetch(this.options,n);return n?.throwOnError||(e=e.catch(ci)),e}#O(){this.#v();const n=po(this.options.staleTime,this.#e);if(el||this.#i.isStale||!ZO(n))return;const t=Hk(this.#i.dataUpdatedAt,n)+1;this.#c=setTimeout(()=>{this.#i.isStale||this.updateResult()},t)}#g(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(n){this.#S(),this.#a=n,!(el||Qi(this.options.enabled,this.#e)===!1||!ZO(this.#a)||this.#a===0)&&(this.#u=setInterval(()=>{(this.options.refetchIntervalInBackground||r0.isFocused())&&this.#f()},this.#a))}#b(){this.#O(),this.#y(this.#g())}#v(){this.#c&&(clearTimeout(this.#c),this.#c=void 0)}#S(){this.#u&&(clearInterval(this.#u),this.#u=void 0)}createResult(n,e){const t=this.#e,i=this.options,r=this.#i,l=this.#r,a=this.#o,f=n!==t?n.state:this.#n,{state:d}=n;let p={...d},m=!1,g;if(e._optimisticResults){const X=this.hasListeners(),U=!X&&kS(n,e),re=X&&QS(n,t,e,i);(U||re)&&(p={...p,...nQ(d.data,n.options)}),e._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:b,errorUpdatedAt:v,status:S}=p;g=p.data;let x=!1;if(e.placeholderData!==void 0&&g===void 0&&S==="pending"){let X;r?.isPlaceholderData&&e.placeholderData===a?.placeholderData?(X=r.data,x=!0):X=typeof e.placeholderData=="function"?e.placeholderData(this.#d?.state.data,this.#d):e.placeholderData,X!==void 0&&(S="success",g=jO(r?.data,X,e),m=!0)}if(e.select&&g!==void 0&&!x)if(r&&g===l?.data&&e.select===this.#m)g=this.#h;else try{this.#m=e.select,g=e.select(g),g=jO(r?.data,g,e),this.#h=g,this.#s=null}catch(X){this.#s=X}this.#s&&(b=this.#s,g=this.#h,v=Date.now(),S="error");const Q=p.fetchStatus==="fetching",P=S==="pending",A=S==="error",D=P&&Q,R=g!==void 0,_={status:S,fetchStatus:p.fetchStatus,isPending:P,isSuccess:S==="success",isError:A,isInitialLoading:D,isLoading:D,data:g,dataUpdatedAt:p.dataUpdatedAt,error:b,errorUpdatedAt:v,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>f.dataUpdateCount||p.errorUpdateCount>f.errorUpdateCount,isFetching:Q,isRefetching:Q&&!P,isLoadingError:A&&!R,isPaused:p.fetchStatus==="paused",isPlaceholderData:m,isRefetchError:A&&R,isStale:s0(n,e),refetch:this.refetch,promise:this.#l};if(this.options.experimental_prefetchInRender){const X=I=>{_.status==="error"?I.reject(_.error):_.data!==void 0&&I.resolve(_.data)},U=()=>{const I=this.#l=_.promise=NO();X(I)},re=this.#l;switch(re.status){case"pending":n.queryHash===t.queryHash&&X(re);break;case"fulfilled":(_.status==="error"||_.data!==re.value)&&U();break;case"rejected":(_.status!=="error"||_.error!==re.reason)&&U();break}}return _}updateResult(){const n=this.#i,e=this.createResult(this.#e,this.options);if(this.#r=this.#e.state,this.#o=this.options,this.#r.data!==void 0&&(this.#d=this.#e),_O(e,n))return;this.#i=e;const t=()=>{if(!n)return!0;const{notifyOnChangeProps:i}=this.options,r=typeof i=="function"?i():i;if(r==="all"||!r&&!this.#p.size)return!0;const l=new Set(r??this.#p);return this.options.throwOnError&&l.add("error"),Object.keys(this.#i).some(a=>{const c=a;return this.#i[c]!==n[c]&&l.has(c)})};this.#w({listeners:t()})}#x(){const n=this.#t.getQueryCache().build(this.#t,this.options);if(n===this.#e)return;const e=this.#e;this.#e=n,this.#n=n.state,this.hasListeners()&&(e?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#w(n){nn.batch(()=>{n.listeners&&this.listeners.forEach(e=>{e(this.#i)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function nM(n,e){return Qi(e.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&e.retryOnMount===!1)}function kS(n,e){return nM(n,e)||n.state.data!==void 0&&zO(n,e,e.refetchOnMount)}function zO(n,e,t){if(Qi(e.enabled,n)!==!1){const i=typeof t=="function"?t(n):t;return i==="always"||i!==!1&&s0(n,e)}return!1}function QS(n,e,t,i){return(n!==e||Qi(i.enabled,n)===!1)&&(!t.suspense||n.state.status!=="error")&&s0(n,t)}function s0(n,e){return Qi(e.enabled,n)!==!1&&n.isStaleByTime(po(e.staleTime,n))}function iM(n,e){return!_O(n.getCurrentResult(),e)}var iQ=$.createContext(void 0),rM=n=>{const e=$.useContext(iQ);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},sM=({client:n,children:e})=>($.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),w.jsx(iQ.Provider,{value:n,children:e})),rQ=$.createContext(!1),lM=()=>$.useContext(rQ);rQ.Provider;function oM(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var aM=$.createContext(oM()),cM=()=>$.useContext(aM);function uM(n,e){return typeof n=="function"?n(...e):!!n}function CS(){}var fM=(n,e)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(e.isReset()||(n.retryOnMount=!1))},hM=n=>{$.useEffect(()=>{n.clearReset()},[n])},dM=({result:n,errorResetBoundary:e,throwOnError:t,query:i,suspense:r})=>n.isError&&!e.isReset()&&!n.isFetching&&i&&(r&&n.data===void 0||uM(t,[n.error,i])),pM=n=>{const e=n.staleTime;n.suspense&&(n.staleTime=typeof e=="function"?(...t)=>Math.max(e(...t),1e3):Math.max(e??1e3,1e3),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3)))},mM=(n,e)=>n.isLoading&&n.isFetching&&!e,OM=(n,e)=>n?.suspense&&e.isPending,TS=(n,e,t)=>e.fetchOptimistic(n).catch(()=>{t.clearReset()});function gM(n,e,t){const i=rM(),r=lM(),l=cM(),a=i.defaultQueryOptions(n);i.getDefaultOptions().queries?._experimental_beforeQuery?.(a),a._optimisticResults=r?"isRestoring":"optimistic",pM(a),fM(a,l),hM(l);const c=!i.getQueryCache().get(a.queryHash),[f]=$.useState(()=>new e(i,a)),d=f.getOptimisticResult(a),p=!r&&n.subscribed!==!1;if($.useSyncExternalStore($.useCallback(m=>{const g=p?f.subscribe(nn.batchCalls(m)):CS;return f.updateResult(),g},[f,p]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),$.useEffect(()=>{f.setOptions(a)},[a,f]),OM(a,d))throw TS(a,f,l);if(dM({result:d,errorResetBoundary:l,throwOnError:a.throwOnError,query:i.getQueryCache().get(a.queryHash),suspense:a.suspense}))throw d.error;return i.getDefaultOptions().queries?._experimental_afterQuery?.(a,d),a.experimental_prefetchInRender&&!el&&mM(d,r)&&(c?TS(a,f,l):i.getQueryCache().get(a.queryHash)?.promise)?.catch(CS).finally(()=>{f.updateResult()}),a.notifyOnChangeProps?d:f.trackResult(d)}function sQ(n,e){return gM(n,tM)}const xs="";async function yM(n,e,t){return await fetch(`${xs}/api/create-app`,{method:"POST",body:JSON.stringify({options:{...n,chosenAddOns:e,starter:t?.url||void 0}}),headers:{"Content-Type":"application/json"}})}async function bM(n){return await fetch(`${xs}/api/add-to-app`,{method:"POST",body:JSON.stringify({addOns:n}),headers:{"Content-Type":"application/json"}})}function lQ(){return fetch(`${xs}/api/shutdown`,{method:"POST"})}async function vM(n){return await(await fetch(`${xs}/api/load-remote-add-on?url=${n}`)).json()}async function oQ(n){return await(await fetch(`${xs}/api/load-starter?url=${n}`)).json()}const SM=fetch(`${xs}/api/initial-payload`);async function xM(){return await(await SM).json()}async function wM(n,e,t){return(await fetch(`${xs}/api/dry-run-create-app`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({options:{...n,chosenAddOns:e,starter:t?.url}})})).json()}async function kM(n){return(await fetch(`${xs}/api/dry-run-add-to-app`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({addOns:n})})).json()}function QM(n,e,t){const i=new Map,r=f=>n.find(d=>d.id===f).type,l=f=>r(f)==="host",a=f=>e.some(d=>r(d)===r(f));for(const f of n)i.set(f.id,{selected:!1,enabled:!0,dependedUpon:!1,isSingleSelect:f.type==="host"?f.type:void 0});function c(f){const d=new Set;function p(m){if(d.has(m))return;d.add(m);const g=n.find(b=>b.id===m);if(g){for(const v of g.dependsOn||[]){const S=i.get(v);S&&(S.selected=!0,S.enabled=!!l(v),S.dependedUpon=!0,p(v))}const b=i.get(m);b&&(b.selected=!0,b.dependedUpon||(b.enabled=!0))}}p(f)}for(const f of t){const d=i.get(f);d&&(l(f)?a(f)?(d.selected=!1,d.enabled=!0,d.dependedUpon=!1):(d.selected=!0,d.enabled=!0,d.dependedUpon=!0):(d.selected=!0,d.enabled=!1,d.dependedUpon=!0,c(f)))}for(const f of e)c(f);return Object.fromEntries(Array.from(i.entries()).map(([f,d])=>[f,{enabled:d.enabled,selected:d.selected,isSingleSelect:d.isSingleSelect}]))}const Gn=Vc(()=>({initialized:!1,framework:"",mode:"",projectName:"",targetDir:"",typescript:!0,tailwind:!0,git:!0,chosenAddOns:[],packageManager:"pnpm"})),nr=()=>sQ({queryKey:["initial-data"],queryFn:xM}),ir=()=>{const{data:n}=nr();return n!==void 0},aQ=()=>nr().data?.forcedRouterMode,CM=()=>nr().data?.forcedAddOns,l0=()=>nr().data?.registry,TM=()=>nr().data?.localFiles,PM=()=>nr().data?.output,cQ=()=>nr().data?.options,AM=()=>cQ()?.chosenAddOns,rr=()=>nr().data?.applicationMode,$M=()=>nr().data?.addOns,RM=()=>nr().data?.supportedModes,PS=Vc(()=>({includeFiles:["unchanged","added","modified","deleted","overwritten"]})),co=Vc(()=>({userSelectedAddOns:[],customAddOns:[]})),zo=Vc(()=>({projectStarter:void 0}));function MM(n){co.setState(e=>({customAddOns:[...e.customAddOns,n]})),n.modes.includes(Gn.getState().mode)&&co.setState(e=>({userSelectedAddOns:[...e.userSelectedAddOns,n.id]}))}function Uc(){const n=ir(),e=Gc(),t=AM(),i=$M(),r=CM(),{userSelectedAddOns:l,customAddOns:a}=co(),c=zo().projectStarter,f=$.useMemo(()=>n?[...i?.[e]||[],...a.filter(b=>b.modes.includes(e))]:[],[n,e,i,a]),d=$.useMemo(()=>{if(!n)return{};const g=new Set;for(const b of c?.dependsOn||[])g.add(b);for(const b of t)g.add(b);for(const b of r||[])g.add(b);return QM(f,l,Array.from(g))},[n,f,l,t,c?.dependsOn,r]),p=$.useMemo(()=>{if(!n)return[];const g=new Set(Object.keys(d).filter(b=>d[b].selected));for(const b of r||[])g.add(b);return Array.from(g)},[n,d,r]);return{toggleAddOn:$.useCallback(g=>{if(n)if(d[g].isSingleSelect){if(!d[g].selected){const b=d[g].isSingleSelect,v=Object.keys(d).find(S=>S!==g&&d[S].isSingleSelect===b&&d[S].selected);co.setState(S=>{let x=S.userSelectedAddOns.filter(Q=>Q!==v);return x.includes(g)||(x=[...x,g]),{userSelectedAddOns:x}})}}else d[g].enabled&&(d[g].selected?co.setState(b=>({userSelectedAddOns:b.userSelectedAddOns.filter(v=>v!==g)})):co.setState(b=>({userSelectedAddOns:[...b.userSelectedAddOns,g]})))},[n,d]),chosenAddOns:p,availableAddOns:f,userSelectedAddOns:l,originalSelectedAddOns:t,addOnState:d}}const o0=()=>zo(n=>n.projectStarter===void 0),EM=()=>{const n=ir(),e=aQ(),t=o0();return n?!e&&t:!1},DM=()=>{const n=ir(),e=o0(),t=Gc();return n?e&&t==="code-router":!1},ZM=()=>{const n=ir(),e=o0(),t=Gc();return n?e&&t==="code-router":!1},_M=()=>Gn(n=>n.projectName),Gc=()=>{const n=ir(),e=aQ(),t=Gn(i=>i.mode);return n?e||t:"file-router"};function uQ(){const n=ir(),e=PS(i=>i.includeFiles),t=$.useCallback(i=>{n&&PS.setState(r=>({includeFiles:r.includeFiles.includes(i)?r.includeFiles.filter(l=>l!==i):[...r.includeFiles,i]}))},[n]);return{includedFiles:e,toggleFilter:t}}function XM(){const n=ir(),e=rr(),{initialized:t,...i}=Gn(),{userSelectedAddOns:r,chosenAddOns:l}=Uc(),a=zo().projectStarter,{data:c}=sQ({queryKey:["dry-run",e,JSON.stringify(i),JSON.stringify(r),a?.url],queryFn:async()=>e==="none"||!n||!t?{files:{},commands:[],deletedFiles:[]}:e==="setup"?wM(i,l,a):kM(r),enabled:n,initialData:{files:{},commands:[],deletedFiles:[]}});return c}const jM=Vc()(XR(n=>({open:!1,dontShowAgain:!1,setOpen:e=>n({open:e}),setDontShowAgain:e=>n({dontShowAgain:e})}),{name:"startup-dialog",partialize:n=>({dontShowAgain:n.dontShowAgain}),merge:(n,e)=>(n&&n.dontShowAgain?e.open=!1:e.open=!0,e)})),NM=n=>Gn.setState({projectName:n}),zM=n=>Gn.setState({mode:n});function qM(n){Gn.setState({typescript:n})}function LM(n){Gn.setState({tailwind:n})}function qO(n){zo.setState(()=>({projectStarter:n})),n&&Gn.setState({mode:n.mode})}function BM(){const n=ir(),e=cQ();$.useEffect(()=>{n&&Gn.setState({...e,initialized:!0})},[n])}/**
|
|
50
50
|
* @license lucide-react v0.476.0 - ISC
|
|
51
51
|
*
|
|
52
52
|
* This source code is licensed under the ISC license.
|
|
@@ -205,4 +205,4 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
|
|
|
205
205
|
\${}
|
|
206
206
|
}
|
|
207
207
|
}`,{label:"class",detail:"definition",type:"keyword"}),wn('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),wn('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],Pz=sA.concat([wn("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),wn("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),wn("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),Ck=new dT,lA=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function tc(n){return(e,t)=>{let i=e.node.getChild("VariableDefinition");return i&&t(i,n),!0}}const Az=["FunctionDeclaration"],$z={FunctionDeclaration:tc("function"),ClassDeclaration:tc("class"),ClassExpression:()=>!0,EnumDeclaration:tc("constant"),TypeAliasDeclaration:tc("type"),NamespaceDeclaration:tc("namespace"),VariableDefinition(n,e){n.matchContext(Az)||e(n,"variable")},TypeDefinition(n,e){e(n,"type")},__proto__:null};function oA(n,e){let t=Ck.get(e);if(t)return t;let i=[],r=!0;function l(a,c){let f=n.sliceString(a.from,a.to);i.push({label:f,type:c})}return e.cursor(ot.IncludeAnonymous).iterate(a=>{if(r)r=!1;else if(a.name){let c=$z[a.name];if(c&&c(a,l)||lA.has(a.name))return!1}else if(a.to-a.from>8192){for(let c of oA(n,a.node))i.push(c);return!1}}),Ck.set(e,i),i}const Tk=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,aA=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName","JSXText","JSXAttributeValue","JSXOpenTag","JSXCloseTag","JSXSelfClosingTag",".","?."];function Rz(n){let e=xt(n.state).resolveInner(n.pos,-1);if(aA.indexOf(e.name)>-1)return null;let t=e.name=="VariableName"||e.to-e.from<20&&Tk.test(n.state.sliceDoc(e.from,e.to));if(!t&&!n.explicit)return null;let i=[];for(let r=e;r;r=r.parent)lA.has(r.name)&&(i=i.concat(oA(n.state.doc,r)));return{options:i,from:t?e.from:n.pos,validFor:Tk}}const Ji=al.define({name:"javascript",parser:Tz.configure({props:[au.add({IfStatement:vo({except:/^\s*({|else\b)/}),TryStatement:vo({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:T6,SwitchBody:n=>{let e=n.textAfter,t=/^\s*\}/.test(e),i=/^\s*(case|default)\b/.test(e);return n.baseIndent+(t?0:i?1:2)*n.unit},Block:C6({closing:"}"}),ArrowFunction:n=>n.baseIndent+n.unit,"TemplateString BlockComment":()=>null,"Statement Property":vo({except:/^{/}),JSXElement(n){let e=/^\s*<\//.test(n.textAfter);return n.lineIndent(n.node.from)+(e?0:n.unit)},JSXEscape(n){let e=/\s*\}/.test(n.textAfter);return n.lineIndent(n.node.from)+(e?0:n.unit)},"JSXOpenTag JSXSelfClosingTag"(n){return n.column(n.node.from)+n.unit}}),cu.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":V0,BlockComment(n){return{from:n.from+2,to:n.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),cA={test:n=>/^JSX/.test(n.name),facet:gT({commentTokens:{block:{open:"{/*",close:"*/}"}}})},uA=Ji.configure({dialect:"ts"},"typescript"),fA=Ji.configure({dialect:"jsx",props:[q0.add(n=>n.isTop?[cA]:void 0)]}),hA=Ji.configure({dialect:"jsx ts",props:[q0.add(n=>n.isTop?[cA]:void 0)]},"typescript");let dA=n=>({label:n,type:"keyword"});const pA="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(dA),Mz=pA.concat(["declare","implements","private","protected","public"].map(dA));function wh(n={}){let e=n.jsx?n.typescript?hA:fA:n.typescript?uA:Ji,t=n.typescript?Pz.concat(Mz):sA.concat(pA);return new md(e,[Ji.data.of({autocomplete:Y8(aA,xP(t))}),Ji.data.of({autocomplete:Rz}),n.jsx?Zz:[]])}function Ez(n){for(;;){if(n.name=="JSXOpenTag"||n.name=="JSXSelfClosingTag"||n.name=="JSXFragmentTag")return n;if(n.name=="JSXEscape"||!n.parent)return null;n=n.parent}}function Pk(n,e,t=n.length){for(let i=e?.firstChild;i;i=i.nextSibling)if(i.name=="JSXIdentifier"||i.name=="JSXBuiltin"||i.name=="JSXNamespacedName"||i.name=="JSXMemberExpression")return n.sliceString(i.from,Math.min(i.to,t));return""}const Dz=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),Zz=le.inputHandler.of((n,e,t,i,r)=>{if((Dz?n.composing:n.compositionStarted)||n.state.readOnly||e!=t||i!=">"&&i!="/"||!Ji.isActiveAt(n.state,e,-1))return!1;let l=r(),{state:a}=l,c=a.changeByRange(f=>{var d;let{head:p}=f,m=xt(a).resolveInner(p-1,-1),g;if(m.name=="JSXStartTag"&&(m=m.parent),!(a.doc.sliceString(p-1,p)!=i||m.name=="JSXAttributeValue"&&m.to>p)){if(i==">"&&m.name=="JSXFragmentTag")return{range:f,changes:{from:p,insert:"</>"}};if(i=="/"&&m.name=="JSXStartCloseTag"){let b=m.parent,v=b.parent;if(v&&b.from==p-2&&((g=Pk(a.doc,v.firstChild,p))||((d=v.firstChild)===null||d===void 0?void 0:d.name)=="JSXFragmentTag")){let S=`${g}>`;return{range:te.cursor(p+S.length,-1),changes:{from:p,insert:S}}}}else if(i==">"){let b=Ez(m);if(b&&b.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(a.doc.sliceString(p,p+2))&&(g=Pk(a.doc,b,p)))return{range:f,changes:{from:p,insert:`</${g}>`}}}}return{range:f}});return c.changes.empty?!1:(n.dispatch([l,a.update(c,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),_z=lu({String:T.string,Number:T.number,"True False":T.bool,PropertyName:T.propertyName,Null:T.null,", :":T.separator,"[ ]":T.squareBracket,"{ }":T.brace}),Xz=fl.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[_z],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),jz=al.define({name:"json",parser:Xz.configure({props:[au.add({Object:vo({except:/^\s*\}/}),Array:vo({except:/^\s*\]/})}),cu.add({"Object Array":V0})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function Nz(){return new md(jz)}const zz=101,Ak=1,qz=102,Lz=103,$k=2,mA=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Bz=58,Vz=40,OA=95,Yz=91,kh=45,Uz=46,Gz=35,Wz=37,Hz=38,Iz=92,Fz=10;function Bc(n){return n>=65&&n<=90||n>=97&&n<=122||n>=161}function gA(n){return n>=48&&n<=57}const Kz=new bi((n,e)=>{for(let t=!1,i=0,r=0;;r++){let{next:l}=n;if(Bc(l)||l==kh||l==OA||t&&gA(l))!t&&(l!=kh||r>0)&&(t=!0),i===r&&l==kh&&i++,n.advance();else if(l==Iz&&n.peek(1)!=Fz)n.advance(),n.next>-1&&n.advance(),t=!0;else{t&&n.acceptToken(l==Vz?qz:i==2&&e.canShift($k)?$k:Lz);break}}}),Jz=new bi(n=>{if(mA.includes(n.peek(-1))){let{next:e}=n;(Bc(e)||e==OA||e==Gz||e==Uz||e==Yz||e==Bz&&Bc(n.peek(1))||e==kh||e==Hz)&&n.acceptToken(zz)}}),eq=new bi(n=>{if(!mA.includes(n.peek(-1))){let{next:e}=n;if(e==Wz&&(n.advance(),n.acceptToken(Ak)),Bc(e)){do n.advance();while(Bc(n.next)||gA(n.next));n.acceptToken(Ak)}}}),tq=lu({"AtKeyword import charset namespace keyframes media supports":T.definitionKeyword,"from to selector":T.keyword,NamespaceName:T.namespace,KeyframeName:T.labelName,KeyframeRangeName:T.operatorKeyword,TagName:T.tagName,ClassName:T.className,PseudoClassName:T.constant(T.className),IdName:T.labelName,"FeatureName PropertyName":T.propertyName,AttributeName:T.attributeName,NumberLiteral:T.number,KeywordQuery:T.keyword,UnaryQueryOp:T.operatorKeyword,"CallTag ValueName":T.atom,VariableName:T.variableName,Callee:T.operatorKeyword,Unit:T.unit,"UniversalSelector NestingSelector":T.definitionOperator,MatchOp:T.compareOperator,"ChildOp SiblingOp, LogicOp":T.logicOperator,BinOp:T.arithmeticOperator,Important:T.modifier,Comment:T.blockComment,ColorLiteral:T.color,"ParenthesizedContent StringLiteral":T.string,":":T.punctuation,"PseudoOp #":T.derefOperator,"; ,":T.separator,"( )":T.paren,"[ ]":T.squareBracket,"{ }":T.brace}),nq={__proto__:null,lang:34,"nth-child":34,"nth-last-child":34,"nth-of-type":34,"nth-last-of-type":34,dir:34,"host-context":34,url:62,"url-prefix":62,domain:62,regexp:62,selector:140},iq={__proto__:null,"@import":120,"@media":144,"@charset":148,"@namespace":152,"@keyframes":158,"@supports":170},rq={__proto__:null,not:134,only:134},sq=fl.deserialize({version:14,states:":|QYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$[QXO'#CaO$fQ[O'#CiO$qQ[O'#DUO$vQ[O'#DXOOQP'#Eo'#EoO${QdO'#DhO%jQ[O'#DuO${QdO'#DwO%{Q[O'#DyO&WQ[O'#D|O&`Q[O'#ESO&nQ[O'#EUOOQS'#En'#EnOOQS'#EX'#EXQYQ[OOO&uQXO'#CdO'jQWO'#DdO'oQWO'#EtO'zQ[O'#EtQOQWOOP(UO#tO'#C_POOO)C@^)C@^OOQP'#Ch'#ChOOQP,59Q,59QO#kQ[O,59QO(aQ[O,59TO$qQ[O,59pO$vQ[O,59sO(lQ[O,59vO(lQ[O,59xO(lQ[O,59yO(lQ[O'#E^O)WQWO,58{O)`Q[O'#DcOOQS,58{,58{OOQP'#Cl'#ClOOQO'#DS'#DSOOQP,59T,59TO)gQWO,59TO)lQWO,59TOOQP'#DW'#DWOOQP,59p,59pOOQO'#DY'#DYO)qQ`O,59sOOQS'#Cq'#CqO${QdO'#CrO)yQvO'#CtO+ZQtO,5:SOOQO'#Cy'#CyO)lQWO'#CxO+oQWO'#CzO+tQ[O'#DPOOQS'#Eq'#EqOOQO'#Dk'#DkO+|Q[O'#DrO,[QWO'#EuO&`Q[O'#DpO,jQWO'#DsOOQO'#Ev'#EvO)ZQWO,5:aO,oQpO,5:cOOQS'#D{'#D{O,wQWO,5:eO,|Q[O,5:eOOQO'#EO'#EOO-UQWO,5:hO-ZQWO,5:nO-cQWO,5:pOOQS-E8V-E8VO-kQdO,5:OO-{Q[O'#E`O.YQWO,5;`O.YQWO,5;`POOO'#EW'#EWP.eO#tO,58yPOOO,58y,58yOOQP1G.l1G.lOOQP1G.o1G.oO)gQWO1G.oO)lQWO1G.oOOQP1G/[1G/[O.pQ`O1G/_O/ZQXO1G/bO/qQXO1G/dO0XQXO1G/eO0oQXO,5:xOOQO-E8[-E8[OOQS1G.g1G.gO0yQWO,59}O1OQ[O'#DTO1VQdO'#CpOOQP1G/_1G/_O${QdO1G/_O1^QpO,59^OOQS,59`,59`O${QdO,59bO1fQWO1G/nOOQS,59d,59dO1kQ!bO,59fOOQS'#DQ'#DQOOQS'#EZ'#EZO1vQ[O,59kOOQS,59k,59kO2OQWO'#DkO2ZQWO,5:WO2`QWO,5:^O&`Q[O,5:YO2hQ[O'#EaO3PQWO,5;aO3[QWO,5:[O(lQ[O,5:_OOQS1G/{1G/{OOQS1G/}1G/}OOQS1G0P1G0PO3mQWO1G0PO3rQdO'#EPOOQS1G0S1G0SOOQS1G0Y1G0YOOQS1G0[1G0[O3}QtO1G/jOOQO1G/j1G/jOOQO,5:z,5:zO4eQ[O,5:zOOQO-E8^-E8^O4rQWO1G0zPOOO-E8U-E8UPOOO1G.e1G.eOOQP7+$Z7+$ZOOQP7+$y7+$yO${QdO7+$yOOQS1G/i1G/iO4}QXO'#EsO5XQWO,59oO5^QtO'#EYO6UQdO'#EpO6`QWO,59[O6eQpO7+$yOOQS1G.x1G.xOOQS1G.|1G.|OOQS7+%Y7+%YOOQS1G/Q1G/QO6mQWO1G/QOOQS-E8X-E8XOOQS1G/V1G/VO${QdO1G/rOOQO1G/x1G/xOOQO1G/t1G/tO6rQWO,5:{OOQO-E8_-E8_O7QQXO1G/yOOQS7+%k7+%kO7XQYO'#CtOOQO'#ER'#ERO7dQ`O'#EQOOQO'#EQ'#EQO7oQWO'#EbO7wQdO,5:kOOQS,5:k,5:kO8SQtO'#E_O${QdO'#E_O9TQdO7+%UOOQO7+%U7+%UOOQO1G0f1G0fO9hQpO<<HeO9pQ[O'#E]O9zQWO,5;_OOQP1G/Z1G/ZOOQS-E8W-E8WO:SQdO'#E[O:^QWO,5;[OOQT1G.v1G.vOOQP<<He<<HeOOQS7+$l7+$lO:fQdO7+%^OOQO7+%e7+%eOOQO,5:l,5:lO3uQdO'#EcO7oQWO,5:|OOQS,5:|,5:|OOQS-E8`-E8`OOQS1G0V1G0VO:mQtO,5:yOOQS-E8]-E8]OOQO<<Hp<<HpOOQPAN>PAN>PO;nQXO,5:wOOQO-E8Z-E8ZO;xQdO,5:vOOQO-E8Y-E8YOOQO<<Hx<<HxOOQO,5:},5:}OOQO-E8a-E8aOOQS1G0h1G0h",stateData:"<[~O#]OS#^QQ~OUYOXYOZTO^VO_VOrXOyWO!]aO!^ZO!j[O!l]O!n^O!q_O!w`O#ZRO~OQfOUYOXYOZTO^VO_VOrXOyWO!]aO!^ZO!j[O!l]O!n^O!q_O!w`O#ZeO~O#W#hP~P!ZO#^jO~O#ZlO~OZnO^oO_oOrqOypO!PrO!StO#XsO~OuuO!UwO~P#pOa}O#YzO#ZyO~O#Z!OO~O#Z!QO~OQ![Oc!TOg![Oi![Oo!YOr!ZO#Y!WO#Z!SO#f!UO~Oc!^O!e!`O!h!aO#Z!]O!U#iP~Oi!fOo!YO#Z!eO~Oi!hO#Z!hO~Oc!^O!e!`O!h!aO#Z!]O~O!Z#iP~P%jOZWX^WX^!XX_WXrWXuWXyWX!PWX!SWX!UWX#XWX~O^!mO~O!Z!nO#W#hX!T#hX~O#W#hX!T#hX~P!ZO#_!qO#`!qO#a!sO~Oa!wO#YzO#ZyO~OUYOXYOZTO^VO_VOrXOyWO#ZRO~OuuO!UwO~O!T#hP~P!ZOc#RO~Oc#SO~Oq#TO}#UO~OP#WOchXkhX!ZhX!ehX!hhX#ZhXbhXQhXghXihXohXrhXuhX!YhX#WhX#YhX#fhXqhX!ThX~Oc!^Ok#XO!e!`O!h!aO#Z!]O!Z#iP~Oc#[O~Oq#`O#Z#]O~Oc!^O!e!`O!h!aO#Z#aO~Ou#eO!c#dO!U#iX!Z#iX~Oc#hO~Ok#XO!Z#jO~O!Z#kO~Oi#lOo!YO~O!U#mO~O!UwO!c#dO~O!UwO!Z#pO~O!Y#rO!Z!Wa#W!Wa!T!Wa~P${O!Z#SX#W#SX!T#SX~P!ZO!Z!nO#W#ha!T#ha~O#_!qO#`!qO#a#xO~Oq#zO}#{O~OZnO^oO_oOrqOypO~Ou!Oi!P!Oi!S!Oi!U!Oi#X!Oib!Oi~P.xOu!Qi!P!Qi!S!Qi!U!Qi#X!Qib!Qi~P.xOu!Ri!P!Ri!S!Ri!U!Ri#X!Rib!Ri~P.xOu#Qa!U#Qa~P#pO!T#|O~Ob#gP~P(lOb#dP~P${Ob$TOk#XO~O!Z$VO~Ob$WOi$XOp$XO~Oq$ZO#Z#]O~O^!aXb!_X!c!_X~O^$[O~Ob$]O!c#dO~Oc!^O!e!`O!h!aO#Z!]Ou#TX!U#TX!Z#TX~Ou#eO!U#ia!Z#ia~O!c#dOu!da!U!da!Z!dab!da~O!Z$bO~O!T$iO#Z$dO#f$cO~Ok#XOu$kO!Y$mO!Z!Wi#W!Wi!T!Wi~P${O!Z#Sa#W#Sa!T#Sa~P!ZO!Z!nO#W#hi!T#hi~Ou$pOb#gX~P#pOb$rO~Ok#XOQ!|Xb!|Xc!|Xg!|Xi!|Xo!|Xr!|Xu!|X#Y!|X#Z!|X#f!|X~Ou$tOb#dX~P${Ob$vO~Ok#XOq$wO~Ob$xO~O!c#dOu#Ta!U#Ta!Z#Ta~Ob$zO~P#pOP#WOuhX!UhX~O#f$cOu!tX!U!tX~Ou$|O!UwO~O!T%QO#Z$dO#f$cO~Ok#XOQ#RXc#RXg#RXi#RXo#RXr#RXu#RX!Y#RX!Z#RX#W#RX#Y#RX#Z#RX#f#RX!T#RX~Ou$kO!Y%TO!Z!Wq#W!Wq!T!Wq~P${Ok#XOq%UO~Ob#PXu#PX~P(lOu$pOb#ga~Ob#OXu#OX~P${Ou$tOb#da~Ob%ZO~P${Ok#XOQ#Rac#Rag#Rai#Rao#Rar#Rau#Ra!Y#Ra!Z#Ra#W#Ra#Y#Ra#Z#Ra#f#Ra!T#Ra~Ob#Pau#Pa~P#pOb#Oau#Oa~P${O#]p#^#fk!S#f~",goto:"-o#kPPP#lP#oP#x$YP#xP$j#xPP$pPPP$v%P%PP%cP%PP%P%}&aPPPP%P&yP&}'T#xP'Z#x'aP#xP#x#xPPP'g'|(ZPP#oPP(b(b(l(bP(bP(b(bP#oP#oP#oP(o#oP(r(u(x)P#oP#oP)U)[)k)y*P*V*]*c*i*s*y+PPPPPPPPPPP+V+`,O,RP,w,z-Q-ZRkQ_bOPdhw!n#tmYOPdhrstuw!n#R#h#t$pmSOPdhrstuw!n#R#h#t$pQmTR!tnQ{VR!uoQ!u}Q#Z!XR#y!wq![Z]!T!m#S#U#X#q#{$Q$[$k$l$t$y%Xp![Z]!T!m#S#U#X#q#{$Q$[$k$l$t$y%XU$f#m$h$|R${$eq!XZ]!T!m#S#U#X#q#{$Q$[$k$l$t$y%Xp![Z]!T!m#S#U#X#q#{$Q$[$k$l$t$y%XQ!f^R#l!gT#^!Z#_Q|VR!voQ!u|R#y!vQ!PWR!xpQ!RXR!yqQxUQ#PvQ#i!cQ#o!jQ#p!kQ%O$gR%^$}SgPwQ!phQ#s!nR$n#tZfPhw!n#ta!b[`a!V!^!`#d#eR#b!^R!g^R!i_R#n!iS$g#m$hR%[$|V$e#m$h$|Q!rjR#w!rQdOShPwU!ldh#tR#t!nQ$Q#SU$s$Q$y%XQ$y$[R%X$tQ#_!ZR$Y#_Q$u$QR%Y$uQ$q#}R%W$qQvUR#OvQ$l#qR%S$lQ!ogS#u!o#vR#v!pQ#f!_R$`#fQ$h#mR%P$hQ$}$gR%]$}_cOPdhw!n#t^UOPdhw!n#tQ!zrQ!{sQ!|tQ!}uQ#}#RQ$a#hR%V$pR$R#SQ!VZQ!d]Q#V!TQ#q!m[$P#S$Q$[$t$y%XQ$S#UQ$U#XS$j#q$lQ$o#{R%R$kR$O#RQiPR#QwQ!c[Q!kaR#Y!VU!_[a!VQ!j`Q#c!^Q#g!`Q$^#dR$_#e",nodeNames:"⚠ Unit VariableName Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NestingSelector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee CallLiteral CallTag ParenthesizedContent ] [ LineNames LineName , PseudoClassName ArgList IdSelector # IdName AttributeSelector AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp } { Block Declaration PropertyName Important ; ImportStatement AtKeyword import KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports AtRule Styles",maxTerm:118,nodeProps:[["isolate",-2,3,25,""],["openedBy",18,"(",33,"[",51,"{"],["closedBy",19,")",34,"]",52,"}"]],propSources:[tq],skippedNodes:[0,3,88],repeatNodeCount:12,tokenData:"J^~R!^OX$}X^%u^p$}pq%uqr)Xrs.Rst/utu6duv$}vw7^wx7oxy9^yz9oz{9t{|:_|}?Q}!O?c!O!P@Q!P!Q@i!Q![Ab![!]B]!]!^CX!^!_$}!_!`Cj!`!aC{!a!b$}!b!cDw!c!}$}!}#OFa#O#P$}#P#QFr#Q#R6d#R#T$}#T#UGT#U#c$}#c#dHf#d#o$}#o#pH{#p#q6d#q#rI^#r#sIo#s#y$}#y#z%u#z$f$}$f$g%u$g#BY$}#BY#BZ%u#BZ$IS$}$IS$I_%u$I_$I|$}$I|$JO%u$JO$JT$}$JT$JU%u$JU$KV$}$KV$KW%u$KW&FU$}&FU&FV%u&FV;'S$};'S;=`JW<%lO$}`%QSOy%^z;'S%^;'S;=`%o<%lO%^`%cSp`Oy%^z;'S%^;'S;=`%o<%lO%^`%rP;=`<%l%^~%zh#]~OX%^X^'f^p%^pq'fqy%^z#y%^#y#z'f#z$f%^$f$g'f$g#BY%^#BY#BZ'f#BZ$IS%^$IS$I_'f$I_$I|%^$I|$JO'f$JO$JT%^$JT$JU'f$JU$KV%^$KV$KW'f$KW&FU%^&FU&FV'f&FV;'S%^;'S;=`%o<%lO%^~'mh#]~p`OX%^X^'f^p%^pq'fqy%^z#y%^#y#z'f#z$f%^$f$g'f$g#BY%^#BY#BZ'f#BZ$IS%^$IS$I_'f$I_$I|%^$I|$JO'f$JO$JT%^$JT$JU'f$JU$KV%^$KV$KW'f$KW&FU%^&FU&FV'f&FV;'S%^;'S;=`%o<%lO%^l)[UOy%^z#]%^#]#^)n#^;'S%^;'S;=`%o<%lO%^l)sUp`Oy%^z#a%^#a#b*V#b;'S%^;'S;=`%o<%lO%^l*[Up`Oy%^z#d%^#d#e*n#e;'S%^;'S;=`%o<%lO%^l*sUp`Oy%^z#c%^#c#d+V#d;'S%^;'S;=`%o<%lO%^l+[Up`Oy%^z#f%^#f#g+n#g;'S%^;'S;=`%o<%lO%^l+sUp`Oy%^z#h%^#h#i,V#i;'S%^;'S;=`%o<%lO%^l,[Up`Oy%^z#T%^#T#U,n#U;'S%^;'S;=`%o<%lO%^l,sUp`Oy%^z#b%^#b#c-V#c;'S%^;'S;=`%o<%lO%^l-[Up`Oy%^z#h%^#h#i-n#i;'S%^;'S;=`%o<%lO%^l-uS!Y[p`Oy%^z;'S%^;'S;=`%o<%lO%^~.UWOY.RZr.Rrs.ns#O.R#O#P.s#P;'S.R;'S;=`/o<%lO.R~.sOi~~.vRO;'S.R;'S;=`/P;=`O.R~/SXOY.RZr.Rrs.ns#O.R#O#P.s#P;'S.R;'S;=`/o;=`<%l.R<%lO.R~/rP;=`<%l.Rn/zYyQOy%^z!Q%^!Q![0j![!c%^!c!i0j!i#T%^#T#Z0j#Z;'S%^;'S;=`%o<%lO%^l0oYp`Oy%^z!Q%^!Q![1_![!c%^!c!i1_!i#T%^#T#Z1_#Z;'S%^;'S;=`%o<%lO%^l1dYp`Oy%^z!Q%^!Q![2S![!c%^!c!i2S!i#T%^#T#Z2S#Z;'S%^;'S;=`%o<%lO%^l2ZYg[p`Oy%^z!Q%^!Q![2y![!c%^!c!i2y!i#T%^#T#Z2y#Z;'S%^;'S;=`%o<%lO%^l3QYg[p`Oy%^z!Q%^!Q![3p![!c%^!c!i3p!i#T%^#T#Z3p#Z;'S%^;'S;=`%o<%lO%^l3uYp`Oy%^z!Q%^!Q![4e![!c%^!c!i4e!i#T%^#T#Z4e#Z;'S%^;'S;=`%o<%lO%^l4lYg[p`Oy%^z!Q%^!Q![5[![!c%^!c!i5[!i#T%^#T#Z5[#Z;'S%^;'S;=`%o<%lO%^l5aYp`Oy%^z!Q%^!Q![6P![!c%^!c!i6P!i#T%^#T#Z6P#Z;'S%^;'S;=`%o<%lO%^l6WSg[p`Oy%^z;'S%^;'S;=`%o<%lO%^d6gUOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^d7QS}Sp`Oy%^z;'S%^;'S;=`%o<%lO%^b7cSXQOy%^z;'S%^;'S;=`%o<%lO%^~7rWOY7oZw7owx.nx#O7o#O#P8[#P;'S7o;'S;=`9W<%lO7o~8_RO;'S7o;'S;=`8h;=`O7o~8kXOY7oZw7owx.nx#O7o#O#P8[#P;'S7o;'S;=`9W;=`<%l7o<%lO7o~9ZP;=`<%l7on9cSc^Oy%^z;'S%^;'S;=`%o<%lO%^~9tOb~n9{UUQkWOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^n:fWkW!SQOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^l;TUp`Oy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^l;nYp`#f[Oy%^z!Q%^!Q![;g![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^l<cYp`Oy%^z{%^{|=R|}%^}!O=R!O!Q%^!Q![=j![;'S%^;'S;=`%o<%lO%^l=WUp`Oy%^z!Q%^!Q![=j![;'S%^;'S;=`%o<%lO%^l=qUp`#f[Oy%^z!Q%^!Q![=j![;'S%^;'S;=`%o<%lO%^l>[[p`#f[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^n?VSu^Oy%^z;'S%^;'S;=`%o<%lO%^l?hWkWOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^n@VUZQOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^~@nTkWOy%^z{@}{;'S%^;'S;=`%o<%lO%^~AUSp`#^~Oy%^z;'S%^;'S;=`%o<%lO%^lAg[#f[Oy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^bBbU^QOy%^z![%^![!]Bt!];'S%^;'S;=`%o<%lO%^bB{S_Qp`Oy%^z;'S%^;'S;=`%o<%lO%^nC^S!Z^Oy%^z;'S%^;'S;=`%o<%lO%^dCoS}SOy%^z;'S%^;'S;=`%o<%lO%^bDQU!PQOy%^z!`%^!`!aDd!a;'S%^;'S;=`%o<%lO%^bDkS!PQp`Oy%^z;'S%^;'S;=`%o<%lO%^bDzWOy%^z!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^bEk[!]Qp`Oy%^z}%^}!OEd!O!Q%^!Q![Ed![!c%^!c!}Ed!}#T%^#T#oEd#o;'S%^;'S;=`%o<%lO%^nFfSr^Oy%^z;'S%^;'S;=`%o<%lO%^nFwSq^Oy%^z;'S%^;'S;=`%o<%lO%^bGWUOy%^z#b%^#b#cGj#c;'S%^;'S;=`%o<%lO%^bGoUp`Oy%^z#W%^#W#XHR#X;'S%^;'S;=`%o<%lO%^bHYS!cQp`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!UUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!T^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!SQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",tokenizers:[Jz,eq,Kz,1,2,3,4,new nd("m~RRYZ[z{a~~g~aO#`~~dP!P!Qg~lO#a~~",28,107)],topRules:{StyleSheet:[0,4],Styles:[1,87]},specialized:[{term:102,get:n=>nq[n]||-1},{term:59,get:n=>iq[n]||-1},{term:103,get:n=>rq[n]||-1}],tokenPrec:1246});let TO=null;function PO(){if(!TO&&typeof document=="object"&&document.body){let{style:n}=document.body,e=[],t=new Set;for(let i in n)i!="cssText"&&i!="cssFloat"&&typeof n[i]=="string"&&(/[A-Z]/.test(i)&&(i=i.replace(/[A-Z]/g,r=>"-"+r.toLowerCase())),t.has(i)||(e.push(i),t.add(i)));TO=e.sort().map(i=>({type:"property",label:i,apply:i+": "}))}return TO||[]}const Rk=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(n=>({type:"class",label:n})),Mk=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(n=>({type:"keyword",label:n})).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(n=>({type:"constant",label:n}))),lq=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(n=>({type:"type",label:n})),oq=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map(n=>({type:"keyword",label:n})),Pr=/^(\w[\w-]*|-\w[\w-]*|)$/,aq=/^-(-[\w-]*)?$/;function cq(n,e){var t;if((n.name=="("||n.type.isError)&&(n=n.parent||n),n.name!="ArgList")return!1;let i=(t=n.parent)===null||t===void 0?void 0:t.firstChild;return i?.name!="Callee"?!1:e.sliceString(i.from,i.to)=="var"}const Ek=new dT,uq=["Declaration"];function fq(n){for(let e=n;;){if(e.type.isTop)return e;if(!(e=e.parent))return n}}function yA(n,e,t){if(e.to-e.from>4096){let i=Ek.get(e);if(i)return i;let r=[],l=new Set,a=e.cursor(ot.IncludeAnonymous);if(a.firstChild())do for(let c of yA(n,a.node,t))l.has(c.label)||(l.add(c.label),r.push(c));while(a.nextSibling());return Ek.set(e,r),r}else{let i=[],r=new Set;return e.cursor().iterate(l=>{var a;if(t(l)&&l.matchContext(uq)&&((a=l.node.nextSibling)===null||a===void 0?void 0:a.name)==":"){let c=n.sliceString(l.from,l.to);r.has(c)||(r.add(c),i.push({label:c,type:"variable"}))}}),i}}const hq=n=>e=>{let{state:t,pos:i}=e,r=xt(t).resolveInner(i,-1),l=r.type.isError&&r.from==r.to-1&&t.doc.sliceString(r.from,r.to)=="-";if(r.name=="PropertyName"||(l||r.name=="TagName")&&/^(Block|Styles)$/.test(r.resolve(r.to).name))return{from:r.from,options:PO(),validFor:Pr};if(r.name=="ValueName")return{from:r.from,options:Mk,validFor:Pr};if(r.name=="PseudoClassName")return{from:r.from,options:Rk,validFor:Pr};if(n(r)||(e.explicit||l)&&cq(r,t.doc))return{from:n(r)||l?r.from:i,options:yA(t.doc,fq(r),n),validFor:aq};if(r.name=="TagName"){for(let{parent:f}=r;f;f=f.parent)if(f.name=="Block")return{from:r.from,options:PO(),validFor:Pr};return{from:r.from,options:lq,validFor:Pr}}if(r.name=="AtKeyword")return{from:r.from,options:oq,validFor:Pr};if(!e.explicit)return null;let a=r.resolve(i),c=a.childBefore(i);return c&&c.name==":"&&a.name=="PseudoClassSelector"?{from:i,options:Rk,validFor:Pr}:c&&c.name==":"&&a.name=="Declaration"||a.name=="ArgList"?{from:i,options:Mk,validFor:Pr}:a.name=="Block"||a.name=="Styles"?{from:i,options:PO(),validFor:Pr}:null},dq=hq(n=>n.name=="VariableName"),id=al.define({name:"css",parser:sq.configure({props:[au.add({Declaration:vo()}),cu.add({"Block KeyframeList":V0})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function bA(){return new md(id,id.data.of({autocomplete:dq}))}const pq=54,mq=1,Oq=55,gq=2,yq=56,bq=3,Dk=4,vq=5,rd=6,vA=7,SA=8,xA=9,wA=10,Sq=11,xq=12,wq=13,AO=57,kq=14,Zk=58,kA=20,Qq=22,QA=23,Cq=24,Fg=26,CA=27,Tq=28,Pq=31,Aq=34,$q=36,Rq=37,Mq=0,Eq=1,Dq={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},Zq={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},_k={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function _q(n){return n==45||n==46||n==58||n>=65&&n<=90||n==95||n>=97&&n<=122||n>=161}function TA(n){return n==9||n==10||n==13||n==32}let Xk=null,jk=null,Nk=0;function Kg(n,e){let t=n.pos+e;if(Nk==t&&jk==n)return Xk;let i=n.peek(e);for(;TA(i);)i=n.peek(++e);let r="";for(;_q(i);)r+=String.fromCharCode(i),i=n.peek(++e);return jk=n,Nk=t,Xk=r?r.toLowerCase():i==Xq||i==jq?void 0:null}const PA=60,sd=62,fy=47,Xq=63,jq=33,Nq=45;function zk(n,e){this.name=n,this.parent=e}const zq=[rd,wA,vA,SA,xA],qq=new iA({start:null,shift(n,e,t,i){return zq.indexOf(e)>-1?new zk(Kg(i,1)||"",n):n},reduce(n,e){return e==kA&&n?n.parent:n},reuse(n,e,t,i){let r=e.type.id;return r==rd||r==$q?new zk(Kg(i,1)||"",n):n},strict:!1}),Lq=new bi((n,e)=>{if(n.next!=PA){n.next<0&&e.context&&n.acceptToken(AO);return}n.advance();let t=n.next==fy;t&&n.advance();let i=Kg(n,0);if(i===void 0)return;if(!i)return n.acceptToken(t?kq:rd);let r=e.context?e.context.name:null;if(t){if(i==r)return n.acceptToken(Sq);if(r&&Zq[r])return n.acceptToken(AO,-2);if(e.dialectEnabled(Mq))return n.acceptToken(xq);for(let l=e.context;l;l=l.parent)if(l.name==i)return;n.acceptToken(wq)}else{if(i=="script")return n.acceptToken(vA);if(i=="style")return n.acceptToken(SA);if(i=="textarea")return n.acceptToken(xA);if(Dq.hasOwnProperty(i))return n.acceptToken(wA);r&&_k[r]&&_k[r][i]?n.acceptToken(AO,-1):n.acceptToken(rd)}},{contextual:!0}),Bq=new bi(n=>{for(let e=0,t=0;;t++){if(n.next<0){t&&n.acceptToken(Zk);break}if(n.next==Nq)e++;else if(n.next==sd&&e>=2){t>=3&&n.acceptToken(Zk,-2);break}else e=0;n.advance()}});function Vq(n){for(;n;n=n.parent)if(n.name=="svg"||n.name=="math")return!0;return!1}const Yq=new bi((n,e)=>{if(n.next==fy&&n.peek(1)==sd){let t=e.dialectEnabled(Eq)||Vq(e.context);n.acceptToken(t?vq:Dk,2)}else n.next==sd&&n.acceptToken(Dk,1)});function hy(n,e,t){let i=2+n.length;return new bi(r=>{for(let l=0,a=0,c=0;;c++){if(r.next<0){c&&r.acceptToken(e);break}if(l==0&&r.next==PA||l==1&&r.next==fy||l>=2&&l<i&&r.next==n.charCodeAt(l-2))l++,a++;else if((l==2||l==i)&&TA(r.next))a++;else if(l==i&&r.next==sd){c>a?r.acceptToken(e,-a):r.acceptToken(t,-(a-2));break}else if((r.next==10||r.next==13)&&c){r.acceptToken(e,1);break}else l=a=0;r.advance()}})}const Uq=hy("script",pq,mq),Gq=hy("style",Oq,gq),Wq=hy("textarea",yq,bq),Hq=lu({"Text RawText":T.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":T.angleBracket,TagName:T.tagName,"MismatchedCloseTag/TagName":[T.tagName,T.invalid],AttributeName:T.attributeName,"AttributeValue UnquotedAttributeValue":T.attributeValue,Is:T.definitionOperator,"EntityReference CharacterReference":T.character,Comment:T.blockComment,ProcessingInst:T.processingInstruction,DoctypeDecl:T.documentMeta}),Iq=fl.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%ZQ&rO,59fO%fQ&rO,59iO%qQ&rO,59lO%|Q&rO,59nOOOa'#D^'#D^O&XOaO'#CxO&dOaO,59[OOOb'#D_'#D_O&lObO'#C{O&wObO,59[OOOd'#D`'#D`O'POdO'#DOO'[OdO,59[OOO`'#Da'#DaO'dO!rO,59[O'kQ#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'pO$fO,59oOOO`,59o,59oO'xQ#|O,59qO'}Q#|O,59rOOO`-E7W-E7WO(SQ&rO'#CsOOQW'#DZ'#DZO(bQ&rO1G.wOOOa1G.w1G.wOOO`1G/Y1G/YO(mQ&rO1G/QOOOb1G/Q1G/QO(xQ&rO1G/TOOOd1G/T1G/TO)TQ&rO1G/WOOO`1G/W1G/WO)`Q&rO1G/YOOOa-E7[-E7[O)kQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)pQ#tO'#C|OOOd-E7^-E7^O)uQ#tO'#DPOOO`-E7_-E7_O)zQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O*PQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOO`7+$t7+$tOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rO*[Q#|O,59eO*aQ#|O,59hO*fQ#|O,59kOOO`1G/X1G/XO*kO7[O'#CvO*|OMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O+_O7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+pOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:",]~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OT}OhyO~OS!POT}OhyO~OS!ROT}OhyO~OS!TOT}OhyO~OS}OT}OhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXTgXhgX~OS!fOT!gOhyO~OS!hOT!gOhyO~OS!iOT!gOhyO~OS!jOT!gOhyO~OS!gOT!gOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:qq,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"],["isolate",-11,21,29,30,32,33,35,36,37,38,41,42,"ltr",-3,26,27,39,""]],propSources:[Hq],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!Z$|c`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;'S$q;'S;=`+z<%lO$q!R&bX`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&Xq'UV`P!cpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}P'pT`POv'kw!^'k!_;'S'k;'S;=`(P<%lO'kP(SP;=`<%l'kp([S!cpOv(Vx;'S(V;'S;=`(h<%lO(Vp(kP;=`<%l(Vq(qP;=`<%l&}a({W`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t`)jT!a`Or)esv)ew;'S)e;'S;=`)y<%lO)e`)|P;=`<%l)ea*SP;=`<%l(t!Q*^V!a`!cpOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!Q*vP;=`<%l*V!R*|P;=`<%l&XW+UYkWOX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+PW+wP;=`<%l+P!Z+}P;=`<%l$q!a,]``P!a`!cp!^^OX&XXY,QYZ,QZ]&X]^,Q^p&Xpq,Qqr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!_-ljhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q[/ebhSkWOX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+PS0rXhSqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0mS1bP;=`<%l0m[1hP;=`<%l/^!V1vchS`P!a`!cpOq&Xqr1krs&}sv1kvw0mwx(tx!P1k!P!Q&X!Q!^1k!^!_*V!_!a&X!a#s1k#s$f&X$f;'S1k;'S;=`3R<%l?Ah1k?Ah?BY&X?BY?Mn1k?MnO&X!V3UP;=`<%l1k!_3[P;=`<%l-_!Z3hV!`h`P!cpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}!_4WihSkWc!ROX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst>]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!V<QchSOp7Sqr;{rs7Sst0mtw;{wx7Sx!P;{!P!Q7S!Q!];{!]!^=]!^!a7S!a#s;{#s$f7S$f;'S;{;'S;=`>P<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXiS`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[Uq,Gq,Wq,Yq,Lq,Bq,0,1,2,3,4,5],topRules:{Document:[0,15]},dialects:{noMatch:0,selfClosing:509},tokenPrec:511});function AA(n,e){let t=Object.create(null);for(let i of n.getChildren(QA)){let r=i.getChild(Cq),l=i.getChild(Fg)||i.getChild(CA);r&&(t[e.read(r.from,r.to)]=l?l.type.id==Fg?e.read(l.from+1,l.to-1):e.read(l.from,l.to):"")}return t}function qk(n,e){let t=n.getChild(Qq);return t?e.read(t.from,t.to):" "}function $O(n,e,t){let i;for(let r of t)if(!r.attrs||r.attrs(i||(i=AA(n.node.parent.firstChild,e))))return{parser:r.parser};return null}function $A(n=[],e=[]){let t=[],i=[],r=[],l=[];for(let c of n)(c.tag=="script"?t:c.tag=="style"?i:c.tag=="textarea"?r:l).push(c);let a=e.length?Object.create(null):null;for(let c of e)(a[c.name]||(a[c.name]=[])).push(c);return n6((c,f)=>{let d=c.type.id;if(d==Tq)return $O(c,f,t);if(d==Pq)return $O(c,f,i);if(d==Aq)return $O(c,f,r);if(d==kA&&l.length){let p=c.node,m=p.firstChild,g=m&&qk(m,f),b;if(g){for(let v of l)if(v.tag==g&&(!v.attrs||v.attrs(b||(b=AA(m,f))))){let S=p.lastChild,x=S.type.id==Rq?S.from:p.to;if(x>m.to)return{parser:v.parser,overlay:[{from:m.to,to:x}]}}}}if(a&&d==QA){let p=c.node,m;if(m=p.firstChild){let g=a[f.read(m.from,m.to)];if(g)for(let b of g){if(b.tagName&&b.tagName!=qk(p.parent,f))continue;let v=p.lastChild;if(v.type.id==Fg){let S=v.from+1,x=v.lastChild,Q=v.to-(x&&x.isError?0:1);if(Q>S)return{parser:b.parser,overlay:[{from:S,to:Q}]}}else if(v.type.id==CA)return{parser:b.parser,overlay:[{from:v.from,to:v.to}]}}}}return null})}const nc=["_blank","_self","_top","_parent"],RO=["ascii","utf-8","utf-16","latin1","latin1"],MO=["get","post","put","delete"],EO=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],Vn=["true","false"],ve={},Fq={a:{attrs:{href:null,ping:null,type:null,media:null,target:nc,hreflang:null}},abbr:ve,address:ve,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:ve,aside:ve,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:ve,base:{attrs:{href:null,target:nc}},bdi:ve,bdo:ve,blockquote:{attrs:{cite:null}},body:ve,br:ve,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:EO,formmethod:MO,formnovalidate:["novalidate"],formtarget:nc,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:ve,center:ve,cite:ve,code:ve,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:ve,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:ve,div:ve,dl:ve,dt:ve,em:ve,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:ve,figure:ve,footer:ve,form:{attrs:{action:null,name:null,"accept-charset":RO,autocomplete:["on","off"],enctype:EO,method:MO,novalidate:["novalidate"],target:nc}},h1:ve,h2:ve,h3:ve,h4:ve,h5:ve,h6:ve,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:ve,hgroup:ve,hr:ve,html:{attrs:{manifest:null}},i:ve,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:EO,formmethod:MO,formnovalidate:["novalidate"],formtarget:nc,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:ve,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:ve,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:ve,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:RO,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:ve,noscript:ve,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:ve,param:{attrs:{name:null,value:null}},pre:ve,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:ve,rt:ve,ruby:ve,samp:ve,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:RO}},section:ve,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:ve,source:{attrs:{src:null,type:null,media:null}},span:ve,strong:ve,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:ve,summary:ve,sup:ve,table:ve,tbody:ve,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:ve,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:ve,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:ve,time:{attrs:{datetime:null}},title:ve,tr:ve,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:ve,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:ve},RA={accesskey:null,class:null,contenteditable:Vn,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:Vn,autocorrect:Vn,autocapitalize:Vn,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":Vn,"aria-autocomplete":["inline","list","both","none"],"aria-busy":Vn,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":Vn,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":Vn,"aria-hidden":Vn,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":Vn,"aria-multiselectable":Vn,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":Vn,"aria-relevant":null,"aria-required":Vn,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},MA="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(n=>"on"+n);for(let n of MA)RA[n]=null;class ld{constructor(e,t){this.tags=Object.assign(Object.assign({},Fq),e),this.globalAttrs=Object.assign(Object.assign({},RA),t),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}ld.default=new ld;function jo(n,e,t=n.length){if(!e)return"";let i=e.firstChild,r=i&&i.getChild("TagName");return r?n.sliceString(r.from,Math.min(r.to,t)):""}function No(n,e=!1){for(;n;n=n.parent)if(n.name=="Element")if(e)e=!1;else return n;return null}function EA(n,e,t){let i=t.tags[jo(n,No(e))];return i?.children||t.allTags}function dy(n,e){let t=[];for(let i=No(e);i&&!i.type.isTop;i=No(i.parent)){let r=jo(n,i);if(r&&i.lastChild.name=="CloseTag")break;r&&t.indexOf(r)<0&&(e.name=="EndTag"||e.from>=i.firstChild.to)&&t.push(r)}return t}const DA=/^[:\-\.\w\u00b7-\uffff]*$/;function Lk(n,e,t,i,r){let l=/\s*>/.test(n.sliceDoc(r,r+5))?"":">",a=No(t,!0);return{from:i,to:r,options:EA(n.doc,a,e).map(c=>({label:c,type:"type"})).concat(dy(n.doc,t).map((c,f)=>({label:"/"+c,apply:"/"+c+l,type:"type",boost:99-f}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function Bk(n,e,t,i){let r=/\s*>/.test(n.sliceDoc(i,i+5))?"":">";return{from:t,to:i,options:dy(n.doc,e).map((l,a)=>({label:l,apply:l+r,type:"type",boost:99-a})),validFor:DA}}function Kq(n,e,t,i){let r=[],l=0;for(let a of EA(n.doc,t,e))r.push({label:"<"+a,type:"type"});for(let a of dy(n.doc,t))r.push({label:"</"+a+">",type:"type",boost:99-l++});return{from:i,to:i,options:r,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function Jq(n,e,t,i,r){let l=No(t),a=l?e.tags[jo(n.doc,l)]:null,c=a&&a.attrs?Object.keys(a.attrs):[],f=a&&a.globalAttrs===!1?c:c.length?c.concat(e.globalAttrNames):e.globalAttrNames;return{from:i,to:r,options:f.map(d=>({label:d,type:"property"})),validFor:DA}}function eL(n,e,t,i,r){var l;let a=(l=t.parent)===null||l===void 0?void 0:l.getChild("AttributeName"),c=[],f;if(a){let d=n.sliceDoc(a.from,a.to),p=e.globalAttrs[d];if(!p){let m=No(t),g=m?e.tags[jo(n.doc,m)]:null;p=g?.attrs&&g.attrs[d]}if(p){let m=n.sliceDoc(i,r).toLowerCase(),g='"',b='"';/^['"]/.test(m)?(f=m[0]=='"'?/^[^"]*$/:/^[^']*$/,g="",b=n.sliceDoc(r,r+1)==m[0]?"":m[0],m=m.slice(1),i++):f=/^[^\s<>='"]*$/;for(let v of p)c.push({label:v,apply:g+v+b,type:"constant"})}}return{from:i,to:r,options:c,validFor:f}}function tL(n,e){let{state:t,pos:i}=e,r=xt(t).resolveInner(i,-1),l=r.resolve(i);for(let a=i,c;l==r&&(c=r.childBefore(a));){let f=c.lastChild;if(!f||!f.type.isError||f.from<f.to)break;l=r=c,a=f.from}return r.name=="TagName"?r.parent&&/CloseTag$/.test(r.parent.name)?Bk(t,r,r.from,i):Lk(t,n,r,r.from,i):r.name=="StartTag"?Lk(t,n,r,i,i):r.name=="StartCloseTag"||r.name=="IncompleteCloseTag"?Bk(t,r,i,i):r.name=="OpenTag"||r.name=="SelfClosingTag"||r.name=="AttributeName"?Jq(t,n,r,r.name=="AttributeName"?r.from:i,i):r.name=="Is"||r.name=="AttributeValue"||r.name=="UnquotedAttributeValue"?eL(t,n,r,r.name=="Is"?i:r.from,i):e.explicit&&(l.name=="Element"||l.name=="Text"||l.name=="Document")?Kq(t,n,r,i):null}function nL(n){let{extraTags:e,extraGlobalAttributes:t}=n,i=t||e?new ld(e,t):ld.default;return r=>tL(i,r)}const iL=Ji.parser.configure({top:"SingleExpression"}),ZA=[{tag:"script",attrs:n=>n.type=="text/typescript"||n.lang=="ts",parser:uA.parser},{tag:"script",attrs:n=>n.type=="text/babel"||n.type=="text/jsx",parser:fA.parser},{tag:"script",attrs:n=>n.type=="text/typescript-jsx",parser:hA.parser},{tag:"script",attrs(n){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(n.type)},parser:iL},{tag:"script",attrs(n){return!n.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(n.type)},parser:Ji.parser},{tag:"style",attrs(n){return(!n.lang||n.lang=="css")&&(!n.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(n.type))},parser:id.parser}],_A=[{name:"style",parser:id.parser.configure({top:"Styles"})}].concat(MA.map(n=>({name:n,parser:Ji.parser}))),XA=al.define({name:"html",parser:Iq.configure({props:[au.add({Element(n){let e=/^(\s*)(<\/)?/.exec(n.textAfter);return n.node.to<=n.pos+e[0].length?n.continue():n.lineIndent(n.node.from)+(e[2]?0:n.unit)},"OpenTag CloseTag SelfClosingTag"(n){return n.column(n.node.from)+n.unit},Document(n){if(n.pos+/\s*/.exec(n.textAfter)[0].length<n.node.to)return n.continue();let e=null,t;for(let i=n.node;;){let r=i.lastChild;if(!r||r.name!="Element"||r.to!=i.to)break;e=i=r}return e&&!((t=e.lastChild)&&(t.name=="CloseTag"||t.name=="SelfClosingTag"))?n.lineIndent(e.from)+n.unit:null}}),cu.add({Element(n){let e=n.firstChild,t=n.lastChild;return!e||e.name!="OpenTag"?null:{from:e.to,to:t.name=="CloseTag"?t.from:n.to}}}),MT.add({"OpenTag CloseTag":n=>n.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),Qh=XA.configure({wrap:$A(ZA,_A)});function rL(n={}){let e="",t;n.matchClosingTags===!1&&(e="noMatch"),n.selfClosingTags===!0&&(e=(e?e+" ":"")+"selfClosing"),(n.nestedLanguages&&n.nestedLanguages.length||n.nestedAttributes&&n.nestedAttributes.length)&&(t=$A((n.nestedLanguages||[]).concat(ZA),(n.nestedAttributes||[]).concat(_A)));let i=t?XA.configure({wrap:t,dialect:e}):e?Qh.configure({dialect:e}):Qh;return new md(i,[Qh.data.of({autocomplete:nL(n)}),n.autoCloseTags!==!1?sL:[],wh().support,bA().support])}const Vk=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),sL=le.inputHandler.of((n,e,t,i,r)=>{if(n.composing||n.state.readOnly||e!=t||i!=">"&&i!="/"||!Qh.isActiveAt(n.state,e,-1))return!1;let l=r(),{state:a}=l,c=a.changeByRange(f=>{var d,p,m;let g=a.doc.sliceString(f.from-1,f.to)==i,{head:b}=f,v=xt(a).resolveInner(b,-1),S;if(g&&i==">"&&v.name=="EndTag"){let x=v.parent;if(((p=(d=x.parent)===null||d===void 0?void 0:d.lastChild)===null||p===void 0?void 0:p.name)!="CloseTag"&&(S=jo(a.doc,x.parent,b))&&!Vk.has(S)){let Q=b+(a.doc.sliceString(b,b+1)===">"?1:0),P=`</${S}>`;return{range:f,changes:{from:b,to:Q,insert:P}}}}else if(g&&i=="/"&&v.name=="IncompleteCloseTag"){let x=v.parent;if(v.from==b-2&&((m=x.lastChild)===null||m===void 0?void 0:m.name)!="CloseTag"&&(S=jo(a.doc,x,b))&&!Vk.has(S)){let Q=b+(a.doc.sliceString(b,b+1)===">"?1:0),P=`${S}>`;return{range:te.cursor(b+P.length,-1),changes:{from:b,to:Q,insert:P}}}}return{range:f}});return c.changes.empty?!1:(n.dispatch([l,a.update(c,{userEvent:"input.complete",scrollIntoView:!0})]),!0)});var jA=n=>{var{theme:e,settings:t={},styles:i=[]}=n,r={".cm-gutters":{}},l={};t.background&&(l.backgroundColor=t.background),t.backgroundImage&&(l.backgroundImage=t.backgroundImage),t.foreground&&(l.color=t.foreground),t.fontSize&&(l.fontSize=t.fontSize),(t.background||t.foreground)&&(r["&"]=l),t.fontFamily&&(r["&.cm-editor .cm-scroller"]={fontFamily:t.fontFamily}),t.gutterBackground&&(r[".cm-gutters"].backgroundColor=t.gutterBackground),t.gutterForeground&&(r[".cm-gutters"].color=t.gutterForeground),t.gutterBorder&&(r[".cm-gutters"].borderRightColor=t.gutterBorder),t.caret&&(r[".cm-content"]={caretColor:t.caret},r[".cm-cursor, .cm-dropCursor"]={borderLeftColor:t.caret});var a={};t.gutterActiveForeground&&(a.color=t.gutterActiveForeground),t.lineHighlight&&(r[".cm-activeLine"]={backgroundColor:t.lineHighlight},a.backgroundColor=t.lineHighlight),r[".cm-activeLineGutter"]=a,t.selection&&(r["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:t.selection+" !important"}),t.selectionMatch&&(r["& .cm-selectionMatch"]={backgroundColor:t.selectionMatch});var c=le.theme(r,{dark:e==="dark"}),f=Go.define(i),d=[c,Y0(f)];return d},lL={background:"#fff",foreground:"#24292e",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#6e7781"},oL=[{tag:[T.standard(T.tagName),T.tagName],color:"#116329"},{tag:[T.comment,T.bracket],color:"#6a737d"},{tag:[T.className,T.propertyName],color:"#6f42c1"},{tag:[T.variableName,T.attributeName,T.number,T.operator],color:"#005cc5"},{tag:[T.keyword,T.typeName,T.typeOperator,T.typeName],color:"#d73a49"},{tag:[T.string,T.meta,T.regexp],color:"#032f62"},{tag:[T.name,T.quote],color:"#22863a"},{tag:[T.heading,T.strong],color:"#24292e",fontWeight:"bold"},{tag:[T.emphasis],color:"#24292e",fontStyle:"italic"},{tag:[T.deleted],color:"#b31d28",backgroundColor:"ffeef0"},{tag:[T.atom,T.bool,T.special(T.variableName)],color:"#e36209"},{tag:[T.url,T.escape,T.regexp,T.link],color:"#032f62"},{tag:T.link,textDecoration:"underline"},{tag:T.strikethrough,textDecoration:"line-through"},{tag:T.invalid,color:"#cb2431"}],aL=n=>{var{theme:e="light",settings:t={},styles:i=[]}={};return jA({theme:e,settings:et({},lL,t),styles:[...oL,...i]})};aL();var cL={background:"#0d1117",foreground:"#c9d1d9",caret:"#c9d1d9",selection:"#003d73",selectionMatch:"#003d73",lineHighlight:"#36334280"},uL=[{tag:[T.standard(T.tagName),T.tagName],color:"#7ee787"},{tag:[T.comment,T.bracket],color:"#8b949e"},{tag:[T.className,T.propertyName],color:"#d2a8ff"},{tag:[T.variableName,T.attributeName,T.number,T.operator],color:"#79c0ff"},{tag:[T.keyword,T.typeName,T.typeOperator,T.typeName],color:"#ff7b72"},{tag:[T.string,T.meta,T.regexp],color:"#a5d6ff"},{tag:[T.name,T.quote],color:"#7ee787"},{tag:[T.heading,T.strong],color:"#d2a8ff",fontWeight:"bold"},{tag:[T.emphasis],color:"#d2a8ff",fontStyle:"italic"},{tag:[T.deleted],color:"#ffdcd7",backgroundColor:"ffeef0"},{tag:[T.atom,T.bool,T.special(T.variableName)],color:"#ffab70"},{tag:T.link,textDecoration:"underline"},{tag:T.strikethrough,textDecoration:"line-through"},{tag:T.invalid,color:"#f97583"}],NA=n=>{var{theme:e="dark",settings:t={},styles:i=[]}=n||{};return jA({theme:e,settings:et({},cL,t),styles:[...uL,...i]})};NA();const Yk=NA({settings:{background:"oklch(0.07 0.005 285.823)",foreground:"#c9d1d9",gutterBackground:"oklch(0.22 0.005 285.823)"}});function fL({originalFile:n,modifiedFile:e,filePath:t}){function i(l){return l.endsWith(".js")||l.endsWith(".jsx")?wh({jsx:!0}):l.endsWith(".ts")||l.endsWith(".tsx")?wh({typescript:!0,jsx:!0}):l.endsWith(".json")?Nz():l.endsWith(".css")?bA():l.endsWith(".html")?rL():wh()}const r=i(t);return!n||n===e?w.jsx(XP,{value:e,theme:Yk,height:"100vh",width:"100%",readOnly:!0,extensions:[r],className:"text-lg"}):w.jsxs(ko,{orientation:"a-b",theme:Yk,className:"text-lg",children:[w.jsx(ko.Original,{value:n,extensions:[r]}),w.jsx(ko.Modified,{value:e,extensions:[r]})]})}var wd="Collapsible",[hL,zA]=hl(wd),[dL,py]=hL(wd),qA=$.forwardRef((n,e)=>{const{__scopeCollapsible:t,open:i,defaultOpen:r,disabled:l,onOpenChange:a,...c}=n,[f,d]=Xr({prop:i,defaultProp:r??!1,onChange:a,caller:wd});return w.jsx(dL,{scope:t,disabled:l,contentId:mo(),open:f,onOpenToggle:$.useCallback(()=>d(p=>!p),[d]),children:w.jsx(vt.div,{"data-state":Oy(f),"data-disabled":l?"":void 0,...c,ref:e})})});qA.displayName=wd;var LA="CollapsibleTrigger",BA=$.forwardRef((n,e)=>{const{__scopeCollapsible:t,...i}=n,r=py(LA,t);return w.jsx(vt.button,{type:"button","aria-controls":r.contentId,"aria-expanded":r.open||!1,"data-state":Oy(r.open),"data-disabled":r.disabled?"":void 0,disabled:r.disabled,...i,ref:e,onClick:Ft(n.onClick,r.onOpenToggle)})});BA.displayName=LA;var my="CollapsibleContent",VA=$.forwardRef((n,e)=>{const{forceMount:t,...i}=n,r=py(my,n.__scopeCollapsible);return w.jsx(Hc,{present:t||r.open,children:({present:l})=>w.jsx(pL,{...i,ref:e,present:l})})});VA.displayName=my;var pL=$.forwardRef((n,e)=>{const{__scopeCollapsible:t,present:i,children:r,...l}=n,a=py(my,t),[c,f]=$.useState(i),d=$.useRef(null),p=$n(e,d),m=$.useRef(0),g=m.current,b=$.useRef(0),v=b.current,S=a.open||c,x=$.useRef(S),Q=$.useRef(void 0);return $.useEffect(()=>{const P=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(P)},[]),tl(()=>{const P=d.current;if(P){Q.current=Q.current||{transitionDuration:P.style.transitionDuration,animationName:P.style.animationName},P.style.transitionDuration="0s",P.style.animationName="none";const A=P.getBoundingClientRect();m.current=A.height,b.current=A.width,x.current||(P.style.transitionDuration=Q.current.transitionDuration,P.style.animationName=Q.current.animationName),f(i)}},[a.open,i]),w.jsx(vt.div,{"data-state":Oy(a.open),"data-disabled":a.disabled?"":void 0,id:a.contentId,hidden:!S,...l,ref:p,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":v?`${v}px`:void 0,...n.style},children:S&&r})});function Oy(n){return n?"open":"closed"}var mL=qA,OL=BA,gL=VA,Mi="Accordion",yL=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[gy,bL,vL]=p2(Mi),[kd,KL]=hl(Mi,[vL,zA]),yy=zA(),YA=K.forwardRef((n,e)=>{const{type:t,...i}=n,r=i,l=i;return w.jsx(gy.Provider,{scope:n.__scopeAccordion,children:t==="multiple"?w.jsx(kL,{...l,ref:e}):w.jsx(wL,{...r,ref:e})})});YA.displayName=Mi;var[UA,SL]=kd(Mi),[GA,xL]=kd(Mi,{collapsible:!1}),wL=K.forwardRef((n,e)=>{const{value:t,defaultValue:i,onValueChange:r=()=>{},collapsible:l=!1,...a}=n,[c,f]=Xr({prop:t,defaultProp:i??"",onChange:r,caller:Mi});return w.jsx(UA,{scope:n.__scopeAccordion,value:K.useMemo(()=>c?[c]:[],[c]),onItemOpen:f,onItemClose:K.useCallback(()=>l&&f(""),[l,f]),children:w.jsx(GA,{scope:n.__scopeAccordion,collapsible:l,children:w.jsx(WA,{...a,ref:e})})})}),kL=K.forwardRef((n,e)=>{const{value:t,defaultValue:i,onValueChange:r=()=>{},...l}=n,[a,c]=Xr({prop:t,defaultProp:i??[],onChange:r,caller:Mi}),f=K.useCallback(p=>c((m=[])=>[...m,p]),[c]),d=K.useCallback(p=>c((m=[])=>m.filter(g=>g!==p)),[c]);return w.jsx(UA,{scope:n.__scopeAccordion,value:a,onItemOpen:f,onItemClose:d,children:w.jsx(GA,{scope:n.__scopeAccordion,collapsible:!0,children:w.jsx(WA,{...l,ref:e})})})}),[QL,Qd]=kd(Mi),WA=K.forwardRef((n,e)=>{const{__scopeAccordion:t,disabled:i,dir:r,orientation:l="vertical",...a}=n,c=K.useRef(null),f=$n(c,e),d=bL(t),m=m0(r)==="ltr",g=Ft(n.onKeyDown,b=>{if(!yL.includes(b.key))return;const v=b.target,S=d().filter(X=>!X.ref.current?.disabled),x=S.findIndex(X=>X.ref.current===v),Q=S.length;if(x===-1)return;b.preventDefault();let P=x;const A=0,D=Q-1,R=()=>{P=x+1,P>D&&(P=A)},Z=()=>{P=x-1,P<A&&(P=D)};switch(b.key){case"Home":P=A;break;case"End":P=D;break;case"ArrowRight":l==="horizontal"&&(m?R():Z());break;case"ArrowDown":l==="vertical"&&R();break;case"ArrowLeft":l==="horizontal"&&(m?Z():R());break;case"ArrowUp":l==="vertical"&&Z();break}const _=P%Q;S[_].ref.current?.focus()});return w.jsx(QL,{scope:t,disabled:i,direction:r,orientation:l,children:w.jsx(gy.Slot,{scope:t,children:w.jsx(vt.div,{...a,"data-orientation":l,ref:f,onKeyDown:i?void 0:g})})})}),od="AccordionItem",[CL,by]=kd(od),HA=K.forwardRef((n,e)=>{const{__scopeAccordion:t,value:i,...r}=n,l=Qd(od,t),a=SL(od,t),c=yy(t),f=mo(),d=i&&a.value.includes(i)||!1,p=l.disabled||n.disabled;return w.jsx(CL,{scope:t,open:d,disabled:p,triggerId:f,children:w.jsx(mL,{"data-orientation":l.orientation,"data-state":t$(d),...c,...r,ref:e,disabled:p,open:d,onOpenChange:m=>{m?a.onItemOpen(i):a.onItemClose(i)}})})});HA.displayName=od;var IA="AccordionHeader",FA=K.forwardRef((n,e)=>{const{__scopeAccordion:t,...i}=n,r=Qd(Mi,t),l=by(IA,t);return w.jsx(vt.h3,{"data-orientation":r.orientation,"data-state":t$(l.open),"data-disabled":l.disabled?"":void 0,...i,ref:e})});FA.displayName=IA;var Jg="AccordionTrigger",KA=K.forwardRef((n,e)=>{const{__scopeAccordion:t,...i}=n,r=Qd(Mi,t),l=by(Jg,t),a=xL(Jg,t),c=yy(t);return w.jsx(gy.ItemSlot,{scope:t,children:w.jsx(OL,{"aria-disabled":l.open&&!a.collapsible||void 0,"data-orientation":r.orientation,id:l.triggerId,...c,...i,ref:e})})});KA.displayName=Jg;var JA="AccordionContent",e$=K.forwardRef((n,e)=>{const{__scopeAccordion:t,...i}=n,r=Qd(Mi,t),l=by(JA,t),a=yy(t);return w.jsx(gL,{role:"region","aria-labelledby":l.triggerId,"data-orientation":r.orientation,...a,...i,ref:e,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...n.style}})});e$.displayName=JA;function t$(n){return n?"open":"closed"}var TL=YA,PL=HA,AL=FA,n$=KA,i$=e$;const r$=Wc("group hover:before:opacity-100 before:absolute before:rounded-lg before:left-0 px-2 before:w-full before:opacity-0 before:bg-accent/70 before:h-[2rem] before:-z-10"),s$=Wc("before:opacity-100 before:bg-accent/70 text-accent-foreground"),l$=Wc("before:opacity-100 before:bg-primary/20 text-primary-foreground"),o$=K.forwardRef(({data:n,initialSelectedItemId:e,onSelectChange:t,expandAll:i,initialExpandedItemIds:r,defaultLeafIcon:l,defaultNodeIcon:a,className:c,onDocumentDrag:f,...d},p)=>{const[m,g]=K.useState(e),[b,v]=K.useState(null),S=K.useCallback(A=>{g(A?.id),t&&t(A)},[t]),x=K.useCallback(A=>{v(A)},[]),Q=K.useCallback(A=>{b&&f&&b.id!==A.id&&f(b,A),v(null)},[b,f]),P=K.useMemo(()=>{if(r)return r;if(!e&&!i)return[];const A=[];function D(R,Z){if(R instanceof Array)for(let _=0;_<R.length;_++){if(A.push(R[_].id),D(R[_],Z)&&!i)return!0;i||A.pop()}else{if(!i&&R.id===Z)return!0;if(R.children)return D(R.children,Z)}}return D(n,e??""),A},[n,i,e,r]);return w.jsxs("div",{className:dt("overflow-hidden relative p-2",c),children:[w.jsx(vy,{data:n,ref:p,selectedItemId:m,handleSelectChange:S,expandedItemIds:P,defaultLeafIcon:l,defaultNodeIcon:a,handleDragStart:x,handleDrop:Q,draggedItem:b,...d}),w.jsx("div",{className:"w-full h-[48px]",onDrop:()=>{Q({id:"",name:"parent_div"})}})]})});o$.displayName="TreeView";const vy=K.forwardRef(({className:n,data:e,selectedItemId:t,handleSelectChange:i,expandedItemIds:r,defaultNodeIcon:l,defaultLeafIcon:a,handleDragStart:c,handleDrop:f,draggedItem:d,...p},m)=>(e instanceof Array||(e=[e]),w.jsx("div",{ref:m,role:"tree",className:n,...p,children:w.jsx("ul",{children:e.map(g=>w.jsx("li",{children:g.children?w.jsx($L,{item:g,selectedItemId:t,expandedItemIds:r,handleSelectChange:i,defaultNodeIcon:l,defaultLeafIcon:a,handleDragStart:c,handleDrop:f,draggedItem:d}):w.jsx(a$,{item:g,selectedItemId:t,handleSelectChange:i,defaultLeafIcon:a,handleDragStart:c,handleDrop:f,draggedItem:d,className:g.className})},g.id))})})));vy.displayName="TreeItem";const $L=({item:n,handleSelectChange:e,expandedItemIds:t,selectedItemId:i,defaultNodeIcon:r,defaultLeafIcon:l,handleDragStart:a,handleDrop:c,draggedItem:f})=>{const[d,p]=K.useState(t.includes(n.id)?[n.id]:[]),[m,g]=K.useState(!1),b=Q=>{if(!n.draggable){Q.preventDefault();return}Q.dataTransfer.setData("text/plain",n.id),a?.(n)},v=Q=>{n.droppable!==!1&&f&&f.id!==n.id&&(Q.preventDefault(),g(!0))},S=()=>{g(!1)},x=Q=>{Q.preventDefault(),g(!1),c?.(n)};return w.jsx(TL,{type:"multiple",value:d,onValueChange:Q=>p(Q),children:w.jsxs(PL,{value:n.id,children:[w.jsxs(c$,{className:dt(r$(),i===n.id&&s$(),m&&l$()),onClick:()=>{e(n),n.onClick?.()},draggable:!!n.draggable,onDragStart:b,onDragOver:v,onDragLeave:S,onDrop:x,children:[w.jsx(f$,{item:n,isSelected:i===n.id,isOpen:d.includes(n.id),default:r}),w.jsx("span",{className:"text-md truncate",children:n.name}),w.jsx(h$,{isSelected:i===n.id,children:n.actions})]}),w.jsx(u$,{className:"ml-4 pl-1 border-l",children:w.jsx(vy,{data:n.children?n.children:n,selectedItemId:i,handleSelectChange:e,expandedItemIds:t,defaultLeafIcon:l,defaultNodeIcon:r,handleDragStart:a,handleDrop:c,draggedItem:f})})]})})},a$=K.forwardRef(({className:n,item:e,selectedItemId:t,handleSelectChange:i,defaultLeafIcon:r,handleDragStart:l,handleDrop:a,draggedItem:c,...f},d)=>{const[p,m]=K.useState(!1),g=x=>{if(!e.draggable){x.preventDefault();return}x.dataTransfer.setData("text/plain",e.id),l?.(e)},b=x=>{e.droppable!==!1&&c&&c.id!==e.id&&(x.preventDefault(),m(!0))},v=()=>{m(!1)},S=x=>{x.preventDefault(),m(!1),a?.(e)};return w.jsxs("div",{ref:d,className:dt("ml-5 flex text-left items-center py-2 cursor-pointer before:right-1",r$(),n,t===e.id&&s$(),p&&l$()),onClick:()=>{i(e),e.onClick?.()},draggable:!!e.draggable,onDragStart:g,onDragOver:b,onDragLeave:v,onDrop:S,...f,children:[w.jsx(f$,{item:e,isSelected:t===e.id,default:r}),w.jsx("span",{className:"flex-grow text-md truncate",children:e.name}),w.jsx(h$,{isSelected:t===e.id,children:e.actions})]})});a$.displayName="TreeLeaf";const c$=K.forwardRef(({className:n,children:e,...t},i)=>w.jsx(AL,{children:w.jsxs(n$,{ref:i,className:dt("flex flex-1 w-full items-center py-2 transition-all first:[&[data-state=open]>svg]:rotate-90",n),...t,children:[w.jsx(WM,{className:"h-4 w-4 shrink-0 transition-transform duration-200 text-accent-foreground/50 mr-1"}),e]})}));c$.displayName=n$.displayName;const u$=K.forwardRef(({className:n,children:e,...t},i)=>w.jsx(i$,{ref:i,className:dt("overflow-hidden text-md transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",n),...t,children:w.jsx("div",{className:"pb-1 pt-0",children:e})}));u$.displayName=i$.displayName;const f$=({item:n,isOpen:e,isSelected:t,default:i})=>{let r=i;return t&&n.selectedIcon?r=n.selectedIcon:e&&n.openIcon?r=n.openIcon:n.icon&&(r=n.icon),r?w.jsx(r,{className:"h-4 w-4 shrink-0 mr-2"}):w.jsx(w.Fragment,{})},h$=({children:n,isSelected:e})=>w.jsx("div",{className:dt(e?"block":"hidden","absolute right-3 group-hover:block"),children:n});function RL({selectedFile:n,tree:e}){const t=$.useMemo(()=>["src","src/routes","src/components","src/components/ui","src/lib"],[]);return w.jsx(o$,{initialSelectedItemId:n?.replace("./","")??void 0,initialExpandedItemIds:t,data:e,defaultNodeIcon:()=>w.jsx(dQ,{className:"w-4 h-4 mr-2"}),defaultLeafIcon:()=>w.jsx(hQ,{className:"w-4 h-4 mr-2"})})}function ML(){const{includedFiles:n,toggleFilter:e}=uQ();return w.jsxs("div",{className:"bg-white dark:bg-black/40 shadow-xl p-4 rounded-lg flex flex-row items-center gap-4 mb-2",children:[w.jsx("h3",{className:"font-medium whitespace-nowrap",children:"File Filters"}),w.jsxs("div",{className:"flex flex-row items-center",children:[w.jsx($r,{id:"unchanged",checked:n.includes("unchanged"),onCheckedChange:()=>e("unchanged"),className:"mr-2"}),w.jsx(Rr,{htmlFor:"unchanged",className:lo.unchanged,children:"Unchanged"})]}),w.jsxs("div",{className:"flex flex-row items-center",children:[w.jsx($r,{id:"added",checked:n.includes("added"),onCheckedChange:()=>e("added"),className:"mr-2"}),w.jsx(Rr,{htmlFor:"added",className:lo.added,children:"Added"})]}),w.jsxs("div",{className:"flex flex-row items-center",children:[w.jsx($r,{id:"modified",checked:n.includes("modified"),onCheckedChange:()=>e("modified"),className:"mr-2"}),w.jsx(Rr,{htmlFor:"modified",className:lo.modified,children:"Modified"})]}),w.jsxs("div",{className:"flex flex-row items-center",children:[w.jsx($r,{id:"deleted",checked:n.includes("deleted"),onCheckedChange:()=>e("deleted"),className:"mr-2"}),w.jsx(Rr,{htmlFor:"deleted",className:lo.deleted,children:"Deleted"})]}),w.jsxs("div",{className:"flex flex-row items-center",children:[w.jsx($r,{id:"overwritten",checked:n.includes("overwritten"),onCheckedChange:()=>e("overwritten"),className:"mr-2"}),w.jsx(Rr,{htmlFor:"overwritten",className:lo.overwritten,children:"Overwritten"})]})]})}function EL(){const[n,e]=$.useState("./package.json"),t=PM(),i=TM(),r=XM(),l=rr(),a=r.files,c=l==="setup"?r.files:t?.files,f=r.deletedFiles,[d,p]=$.useState(),[m,g]=$.useState(),{includedFiles:b}=uQ(),v=$.useMemo(()=>{const x=[];return!c||!i||Array.from(new Set([...Object.keys(a),...Object.keys(i),...Object.keys(c)])).sort().forEach(P=>{const A=P.replace("./",""),D=A.split("/");let R=x;D.forEach((Z,_)=>{const X=R.find(U=>U.name===Z);if(X)R=X.children||[];else{const U=GZ(P,a,c,i,f);if(_===D.length-1&&!b.includes(U.fileClass))return;_===D.length-1&&P===n&&(g(U.modifiedFile),p(U.originalFile));const re={id:D.slice(0,_+1).join("/"),name:Z,fullPath:A,children:_<D.length-1?[]:void 0,icon:_<D.length-1?()=>w.jsx(dQ,{className:"w-4 h-4 mr-2"}):()=>w.jsx(hQ,{className:"w-4 h-4 mr-2"}),onClick:_===D.length-1?()=>{e(P),g(U.modifiedFile),p(U.originalFile)}:void 0,className:lo[U.fileClass],...U,contents:a[P]||i[P]||c[P]};R.push(re),R=re.children}})}),x},[a,c,i,b]);return ir()?w.jsxs("div",{className:"bg-white dark:bg-black/50 rounded-lg p-2 sm:p-4",children:[l==="add"&&w.jsx(ML,{}),w.jsxs("div",{className:"flex flex-row @container",children:[w.jsx("div",{className:"w-1/3 @6xl:w-1/4 bg-gray-500/10 rounded-l-lg",children:w.jsx(RL,{selectedFile:n,tree:v})}),w.jsx("div",{className:"w-2/3 @6xl:w-3/4",children:n&&m?w.jsx(fL,{filePath:n,originalFile:d,modifiedFile:m}):null})]})]}):null}function DL(){const n=rr(),e=l0(),{open:t,setOpen:i,dontShowAgain:r,setDontShowAgain:l}=jM();if(n!=="setup"||!e||e?.starters?.length===0)return null;async function a(c){const f=await oQ(c);"error"in f?c0.error("Failed to load starter",{description:f.error}):(qO(f),i(!1))}return w.jsx(Bo,{modal:!0,open:t,onOpenChange:i,children:w.jsxs(Vo,{className:"sm:min-w-[425px] sm:max-w-fit",children:[w.jsx(Ic,{children:w.jsx(Kc,{className:"text-center text-2xl font-bold",children:"Would you like to use a starter project?"})}),w.jsx("div",{children:w.jsx(Z2,{onImport:a})}),w.jsxs(Fc,{className:"flex sm:justify-between w-full",children:[w.jsxs("div",{className:"flex items-center gap-2",children:[w.jsx($r,{id:"show-startup-dialog",checked:r,onCheckedChange:l}),w.jsx(Rr,{htmlFor:"show-startup-dialog",children:"Don't show this again"})]}),w.jsx(Fi,{onClick:()=>i(!1),children:"No, I want to start from scratch"})]})]})})}var ZL=(n,e,t,i,r,l,a,c)=>{let f=document.documentElement,d=["light","dark"];function p(b){(Array.isArray(n)?n:[n]).forEach(v=>{let S=v==="class",x=S&&l?r.map(Q=>l[Q]||Q):r;S?(f.classList.remove(...x),f.classList.add(l&&l[b]?l[b]:b)):f.setAttribute(v,b)}),m(b)}function m(b){c&&d.includes(b)&&(f.style.colorScheme=b)}function g(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(i)p(i);else try{let b=localStorage.getItem(e)||t,v=a&&b==="system"?g():b;p(v)}catch{}},_L=$.createContext(void 0),XL={setTheme:n=>{},themes:[]},jL=()=>{var n;return(n=$.useContext(_L))!=null?n:XL};$.memo(({forcedTheme:n,storageKey:e,attribute:t,enableSystem:i,enableColorScheme:r,defaultTheme:l,value:a,themes:c,nonce:f,scriptProps:d})=>{let p=JSON.stringify([t,e,l,n,c,a,i,r]).slice(1,-1);return $.createElement("script",{...d,suppressHydrationWarning:!0,nonce:typeof window>"u"?f:"",dangerouslySetInnerHTML:{__html:`(${ZL.toString()})(${p})`}})});const NL=({...n})=>{const{theme:e="system"}=jL();return w.jsx(U3,{theme:e,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...n})};function zL({children:n}){const[e]=$.useState(()=>new eM);return w.jsx(sM,{client:e,children:n})}function qL({children:n}){return BM(),w.jsxs(w.Fragment,{children:[n,w.jsx(NL,{})]})}function LL({children:n}){return w.jsx(zL,{children:w.jsx(qL,{children:n})})}const BL={header:w.jsx(LZ,{}),sidebar:w.jsx(zZ,{}),fileNavigator:w.jsx(EL,{}),startupDialog:w.jsx(DL,{})};function VL(n){const e=Object.assign({},BL,n.slots);return w.jsx(LL,{children:w.jsxs("main",{className:"min-w-[1280px]",children:[w.jsx(YZ,{}),w.jsxs("div",{className:"min-h-dvh p-2 sm:p-4 space-y-2 sm:space-y-4 @container",children:[e.header,w.jsxs("div",{className:"flex flex-row",children:[w.jsx("div",{className:"w-1/3 @8xl:w-1/4 pr-2",children:e.sidebar}),w.jsx("div",{className:"w-2/3 @8xl:w-3/4 pl-2",children:e.fileNavigator})]})]}),e.startupDialog]})})}const Uk=document.getElementById("root");Uk&&RR.createRoot(Uk).render(w.jsx(VL,{}));
|
|
208
|
-
//# sourceMappingURL=index-
|
|
208
|
+
//# sourceMappingURL=index-16uOszEx.js.map
|