@opencx/widget-react 4.0.3 → 4.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +76 -76
- package/dist/index.js.map +1 -1
- package/dist-embed/script.js +5 -5
- package/dist-embed/script.js.map +1 -1
- package/package.json +3 -3
package/dist-embed/script.js
CHANGED
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
`+l[r].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=r&&0<=i);break}}}finally{kp=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Vs(n):""}function aN(e){switch(e.tag){case 26:case 27:case 5:return Vs(e.type);case 16:return Vs("Lazy");case 13:return Vs("Suspense");case 19:return Vs("SuspenseList");case 0:case 15:return Op(e.type,!1);case 11:return Op(e.type.render,!1);case 1:return Op(e.type,!0);case 31:return Vs("Activity");default:return""}}function kv(e){try{var t="";do t+=aN(e),e=e.return;while(e);return t}catch(n){return`
|
|
47
47
|
Error generating stack: `+n.message+`
|
|
48
48
|
`+n.stack}}function lr(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ov(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function sN(e){var t=Ov(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,a.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Qc(e){e._valueTracker||(e._valueTracker=sN(e))}function Rv(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ov(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Zc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var oN=/[\n"\\]/g;function ur(e){return e.replace(oN,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Rp(e,t,n,r,i,a,s,o){e.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.type=s:e.removeAttribute("type"),t!=null?s==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+lr(t)):e.value!==""+lr(t)&&(e.value=""+lr(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?Np(e,s,lr(t)):n!=null?Np(e,s,lr(n)):r!=null&&e.removeAttribute("value"),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!="function"&&typeof i!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+lr(o):e.removeAttribute("name")}function Nv(e,t,n,r,i,a,s,o){if(a!=null&&typeof a!="function"&&typeof a!="symbol"&&typeof a!="boolean"&&(e.type=a),t!=null||n!=null){if(!(a!=="submit"&&a!=="reset"||t!=null))return;n=n!=null?""+lr(n):"",t=t!=null?""+lr(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}r=r??i,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=o?e.checked:!!r,e.defaultChecked=!!r,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.name=s)}function Np(e,t,n){t==="number"&&Zc(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function qs(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+lr(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Dv(e,t,n){if(t!=null&&(t=""+lr(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+lr(n):""}function Mv(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(Y(92));if(Sl(r)){if(1<r.length)throw Error(Y(93));r=r[0]}n=r}n==null&&(n=""),t=n}n=lr(t),e.defaultValue=n,r=e.textContent,r===n&&r!==""&&r!==null&&(e.value=r)}function Ys(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var lN=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 Lv(e,t,n){var r=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,n):typeof n!="number"||n===0||lN.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Iv(e,t,n){if(t!=null&&typeof t!="object")throw Error(Y(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&Lv(e,i,r)}else for(var a in t)t.hasOwnProperty(a)&&Lv(e,a,t[a])}function Dp(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var uN=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"]]),cN=/^[\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 Jc(e){return cN.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Mp=null;function Lp(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Gs=null,$s=null;function Pv(e){var t=js(e);if(t&&(e=t.stateNode)){var n=e[kn]||null;e:switch(e=t.stateNode,t.type){case"input":if(Rp(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+ur(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[kn]||null;if(!i)throw Error(Y(90));Rp(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Rv(r)}break e;case"textarea":Dv(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&qs(e,!!n.multiple,t,!1)}}}var Ip=!1;function Bv(e,t,n){if(Ip)return e(t,n);Ip=!0;try{var r=e(t);return r}finally{if(Ip=!1,(Gs!==null||$s!==null)&&(zf(),Gs&&(t=Gs,e=$s,$s=Gs=null,Pv(t),e)))for(t=0;t<e.length;t++)Pv(e[t])}}function Dl(e,t){var n=e.stateNode;if(n===null)return null;var r=n[kn]||null;if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(Y(231,t,typeof n));return n}var ci=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pp=!1;if(ci)try{var Ml={};Object.defineProperty(Ml,"passive",{get:function(){Pp=!0}}),window.addEventListener("test",Ml,Ml),window.removeEventListener("test",Ml,Ml)}catch{Pp=!1}var Ki=null,Bp=null,ef=null;function Uv(){if(ef)return ef;var e,t=Bp,n=t.length,r,i="value"in Ki?Ki.value:Ki.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===i[a-r];r++);return ef=i.slice(e,1<r?1-r:void 0)}function tf(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function nf(){return!0}function zv(){return!1}function On(e){function t(n,r,i,a,s){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=a,this.target=s,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(a):a[o]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?nf:zv,this.isPropagationStopped=zv,this}return ct(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=nf)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=nf)},persist:function(){},isPersistent:nf}),t}var Ya={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},rf=On(Ya),Ll=ct({},Ya,{view:0,detail:0}),fN=On(Ll),Up,zp,Il,af=ct({},Ll,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fp,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Il&&(Il&&e.type==="mousemove"?(Up=e.screenX-Il.screenX,zp=e.screenY-Il.screenY):zp=Up=0,Il=e),Up)},movementY:function(e){return"movementY"in e?e.movementY:zp}}),jv=On(af),dN=ct({},af,{dataTransfer:0}),hN=On(dN),pN=ct({},Ll,{relatedTarget:0}),jp=On(pN),mN=ct({},Ya,{animationName:0,elapsedTime:0,pseudoElement:0}),gN=On(mN),bN=ct({},Ya,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yN=On(bN),vN=ct({},Ya,{data:0}),Fv=On(vN),xN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},EN={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"},TN={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wN(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=TN[e])?!!t[e]:!1}function Fp(){return wN}var _N=ct({},Ll,{key:function(e){if(e.key){var t=xN[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=tf(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?EN[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fp,charCode:function(e){return e.type==="keypress"?tf(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?tf(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),SN=On(_N),AN=ct({},af,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hv=On(AN),CN=ct({},Ll,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fp}),kN=On(CN),ON=ct({},Ya,{propertyName:0,elapsedTime:0,pseudoElement:0}),RN=On(ON),NN=ct({},af,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),DN=On(NN),MN=ct({},Ya,{newState:0,oldState:0}),LN=On(MN),IN=[9,13,27,32],Hp=ci&&"CompositionEvent"in window,Pl=null;ci&&"documentMode"in document&&(Pl=document.documentMode);var PN=ci&&"TextEvent"in window&&!Pl,Vv=ci&&(!Hp||Pl&&8<Pl&&11>=Pl),qv=" ",Yv=!1;function Gv(e,t){switch(e){case"keyup":return IN.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function $v(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xs=!1;function BN(e,t){switch(e){case"compositionend":return $v(t);case"keypress":return t.which!==32?null:(Yv=!0,qv);case"textInput":return e=t.data,e===qv&&Yv?null:e;default:return null}}function UN(e,t){if(Xs)return e==="compositionend"||!Hp&&Gv(e,t)?(e=Uv(),ef=Bp=Ki=null,Xs=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Vv&&t.locale!=="ko"?null:t.data;default:return null}}var zN={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 Xv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!zN[e.type]:t==="textarea"}function Kv(e,t,n,r){Gs?$s?$s.push(r):$s=[r]:Gs=r,t=Yf(t,"onChange"),0<t.length&&(n=new rf("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Bl=null,Ul=null;function jN(e){OT(e,0)}function sf(e){var t=Nl(e);if(Rv(t))return e}function Wv(e,t){if(e==="change")return t}var Qv=!1;if(ci){var Vp;if(ci){var qp="oninput"in document;if(!qp){var Zv=document.createElement("div");Zv.setAttribute("oninput","return;"),qp=typeof Zv.oninput=="function"}Vp=qp}else Vp=!1;Qv=Vp&&(!document.documentMode||9<document.documentMode)}function Jv(){Bl&&(Bl.detachEvent("onpropertychange",ex),Ul=Bl=null)}function ex(e){if(e.propertyName==="value"&&sf(Ul)){var t=[];Kv(t,Ul,e,Lp(e)),Bv(jN,t)}}function FN(e,t,n){e==="focusin"?(Jv(),Bl=t,Ul=n,Bl.attachEvent("onpropertychange",ex)):e==="focusout"&&Jv()}function HN(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return sf(Ul)}function VN(e,t){if(e==="click")return sf(t)}function qN(e,t){if(e==="input"||e==="change")return sf(t)}function YN(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Hn=typeof Object.is=="function"?Object.is:YN;function zl(e,t){if(Hn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!vp.call(t,i)||!Hn(e[i],t[i]))return!1}return!0}function tx(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function nx(e,t){var n=tx(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=tx(n)}}function rx(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rx(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function ix(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Zc(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Zc(e.document)}return t}function Yp(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var GN=ci&&"documentMode"in document&&11>=document.documentMode,Ks=null,Gp=null,jl=null,$p=!1;function ax(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;$p||Ks==null||Ks!==Zc(r)||(r=Ks,"selectionStart"in r&&Yp(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),jl&&zl(jl,r)||(jl=r,r=Yf(Gp,"onSelect"),0<r.length&&(t=new rf("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Ks)))}function Ga(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ws={animationend:Ga("Animation","AnimationEnd"),animationiteration:Ga("Animation","AnimationIteration"),animationstart:Ga("Animation","AnimationStart"),transitionrun:Ga("Transition","TransitionRun"),transitionstart:Ga("Transition","TransitionStart"),transitioncancel:Ga("Transition","TransitionCancel"),transitionend:Ga("Transition","TransitionEnd")},Xp={},sx={};ci&&(sx=document.createElement("div").style,"AnimationEvent"in window||(delete Ws.animationend.animation,delete Ws.animationiteration.animation,delete Ws.animationstart.animation),"TransitionEvent"in window||delete Ws.transitionend.transition);function $a(e){if(Xp[e])return Xp[e];if(!Ws[e])return e;var t=Ws[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in sx)return Xp[e]=t[n];return e}var ox=$a("animationend"),lx=$a("animationiteration"),ux=$a("animationstart"),$N=$a("transitionrun"),XN=$a("transitionstart"),KN=$a("transitioncancel"),cx=$a("transitionend"),fx=new Map,Kp="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(" ");Kp.push("scrollEnd");function Cr(e,t){fx.set(e,t),qa(t,[e])}var dx=new WeakMap;function cr(e,t){if(typeof e=="object"&&e!==null){var n=dx.get(e);return n!==void 0?n:(t={value:e,source:t,stack:kv(t)},dx.set(e,t),t)}return{value:e,source:t,stack:kv(t)}}var fr=[],Qs=0,Wp=0;function of(){for(var e=Qs,t=Wp=Qs=0;t<e;){var n=fr[t];fr[t++]=null;var r=fr[t];fr[t++]=null;var i=fr[t];fr[t++]=null;var a=fr[t];if(fr[t++]=null,r!==null&&i!==null){var s=r.pending;s===null?i.next=i:(i.next=s.next,s.next=i),r.pending=i}a!==0&&hx(n,i,a)}}function lf(e,t,n,r){fr[Qs++]=e,fr[Qs++]=t,fr[Qs++]=n,fr[Qs++]=r,Wp|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Qp(e,t,n,r){return lf(e,t,n,r),uf(e)}function Zs(e,t){return lf(e,null,null,t),uf(e)}function hx(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Fn(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function uf(e){if(50<fu)throw fu=0,r0=null,Error(Y(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Js={};function WN(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Vn(e,t,n,r){return new WN(e,t,n,r)}function Zp(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fi(e,t){var n=e.alternate;return n===null?(n=Vn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function px(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function cf(e,t,n,r,i,a){var s=0;if(r=e,typeof e=="function")Zp(e)&&(s=1);else if(typeof e=="string")s=ZD(e,n,jr.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case mp:return e=Vn(31,n,t,i),e.elementType=mp,e.lanes=a,e;case Is:return Xa(n.children,i,a,t);case fv:s=8,i|=24;break;case cp:return e=Vn(12,n,t,i|2),e.elementType=cp,e.lanes=a,e;case dp:return e=Vn(13,n,t,i),e.elementType=dp,e.lanes=a,e;case hp:return e=Vn(19,n,t,i),e.elementType=hp,e.lanes=a,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case j4:case li:s=10;break e;case dv:s=9;break e;case fp:s=11;break e;case pp:s=14;break e;case Yi:s=16,r=null;break e}s=29,n=Error(Y(130,e===null?"null":typeof e,"")),r=null}return t=Vn(s,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Xa(e,t,n,r){return e=Vn(7,e,r,t),e.lanes=n,e}function Jp(e,t,n){return e=Vn(6,e,null,t),e.lanes=n,e}function em(e,t,n){return t=Vn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var eo=[],to=0,ff=null,df=0,dr=[],hr=0,Ka=null,di=1,hi="";function Wa(e,t){eo[to++]=df,eo[to++]=ff,ff=e,df=t}function mx(e,t,n){dr[hr++]=di,dr[hr++]=hi,dr[hr++]=Ka,Ka=e;var r=di;e=hi;var i=32-Fn(r)-1;r&=~(1<<i),n+=1;var a=32-Fn(t)+i;if(30<a){var s=i-i%5;a=(r&(1<<s)-1).toString(32),r>>=s,i-=s,di=1<<32-Fn(t)+i|n<<i|r,hi=a+e}else di=1<<a|n<<i|r,hi=e}function tm(e){e.return!==null&&(Wa(e,1),mx(e,1,0))}function nm(e){for(;e===ff;)ff=eo[--to],eo[to]=null,df=eo[--to],eo[to]=null;for(;e===Ka;)Ka=dr[--hr],dr[hr]=null,hi=dr[--hr],dr[hr]=null,di=dr[--hr],dr[hr]=null}var wn=null,wt=null,Ge=!1,Qa=null,Hr=!1,rm=Error(Y(519));function Za(e){var t=Error(Y(418,""));throw Vl(cr(t,e)),rm}function gx(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[dn]=e,t[kn]=r,n){case"dialog":De("cancel",t),De("close",t);break;case"iframe":case"object":case"embed":De("load",t);break;case"video":case"audio":for(n=0;n<hu.length;n++)De(hu[n],t);break;case"source":De("error",t);break;case"img":case"image":case"link":De("error",t),De("load",t);break;case"details":De("toggle",t);break;case"input":De("invalid",t),Nv(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0),Qc(t);break;case"select":De("invalid",t);break;case"textarea":De("invalid",t),Mv(t,r.value,r.defaultValue,r.children),Qc(t)}n=r.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||r.suppressHydrationWarning===!0||MT(t.textContent,n)?(r.popover!=null&&(De("beforetoggle",t),De("toggle",t)),r.onScroll!=null&&De("scroll",t),r.onScrollEnd!=null&&De("scrollend",t),r.onClick!=null&&(t.onclick=Gf),t=!0):t=!1,t||Za(e)}function bx(e){for(wn=e.return;wn;)switch(wn.tag){case 5:case 13:Hr=!1;return;case 27:case 3:Hr=!0;return;default:wn=wn.return}}function Fl(e){if(e!==wn)return!1;if(!Ge)return bx(e),Ge=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||v0(e.type,e.memoizedProps)),n=!n),n&&wt&&Za(e),bx(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(Y(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(n=e.data,n==="/$"){if(t===0){wt=Or(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}wt=null}}else t===27?(t=wt,fa(e.type)?(e=w0,w0=null,wt=e):wt=t):wt=wn?Or(e.stateNode.nextSibling):null;return!0}function Hl(){wt=wn=null,Ge=!1}function yx(){var e=Qa;return e!==null&&(Dn===null?Dn=e:Dn.push.apply(Dn,e),Qa=null),e}function Vl(e){Qa===null?Qa=[e]:Qa.push(e)}var im=zr(null),Ja=null,pi=null;function Wi(e,t,n){mt(im,t._currentValue),t._currentValue=n}function mi(e){e._currentValue=im.current,Xt(im)}function am(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function sm(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){var s=i.child;a=a.firstContext;e:for(;a!==null;){var o=a;a=i;for(var l=0;l<t.length;l++)if(o.context===t[l]){a.lanes|=n,o=a.alternate,o!==null&&(o.lanes|=n),am(a.return,n,e),r||(s=null);break e}a=o.next}}else if(i.tag===18){if(s=i.return,s===null)throw Error(Y(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),am(s,n,e),s=null}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===e){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}}function ql(e,t,n,r){e=null;for(var i=t,a=!1;i!==null;){if(!a){if(i.flags&524288)a=!0;else if(i.flags&262144)break}if(i.tag===10){var s=i.alternate;if(s===null)throw Error(Y(387));if(s=s.memoizedProps,s!==null){var o=i.type;Hn(i.pendingProps.value,s.value)||(e!==null?e.push(o):e=[o])}}else if(i===Hc.current){if(s=i.alternate,s===null)throw Error(Y(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e!==null?e.push(vu):e=[vu])}i=i.return}e!==null&&sm(t,e,n,r),t.flags|=262144}function hf(e){for(e=e.firstContext;e!==null;){if(!Hn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function es(e){Ja=e,pi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function hn(e){return vx(Ja,e)}function pf(e,t){return Ja===null&&es(e),vx(e,t)}function vx(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},pi===null){if(e===null)throw Error(Y(308));pi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else pi=pi.next=t;return n}var QN=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},ZN=jt.unstable_scheduleCallback,JN=jt.unstable_NormalPriority,Ft={$$typeof:li,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function om(){return{controller:new QN,data:new Map,refCount:0}}function Yl(e){e.refCount--,e.refCount===0&&ZN(JN,function(){e.controller.abort()})}var Gl=null,lm=0,no=0,ro=null;function eD(e,t){if(Gl===null){var n=Gl=[];lm=0,no=c0(),ro={status:"pending",value:void 0,then:function(r){n.push(r)}}}return lm++,t.then(xx,xx),t}function xx(){if(--lm===0&&Gl!==null){ro!==null&&(ro.status="fulfilled");var e=Gl;Gl=null,no=0,ro=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function tD(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var i=0;i<n.length;i++)(0,n[i])(t)},function(i){for(r.status="rejected",r.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),r}var Ex=ge.S;ge.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&eD(e,t),Ex!==null&&Ex(e,t)};var ts=zr(null);function um(){var e=ts.current;return e!==null?e:st.pooledCache}function mf(e,t){t===null?mt(ts,ts.current):mt(ts,t.pool)}function Tx(){var e=um();return e===null?null:{parent:Ft._currentValue,pool:e}}var $l=Error(Y(460)),wx=Error(Y(474)),gf=Error(Y(542)),cm={then:function(){}};function _x(e){return e=e.status,e==="fulfilled"||e==="rejected"}function bf(){}function Sx(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(bf,bf),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Cx(e),e;default:if(typeof t.status=="string")t.then(bf,bf);else{if(e=st,e!==null&&100<e.shellSuspendCounter)throw Error(Y(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var i=t;i.status="fulfilled",i.value=r}},function(r){if(t.status==="pending"){var i=t;i.status="rejected",i.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Cx(e),e}throw Xl=t,$l}}var Xl=null;function Ax(){if(Xl===null)throw Error(Y(459));var e=Xl;return Xl=null,e}function Cx(e){if(e===$l||e===gf)throw Error(Y(483))}var Qi=!1;function fm(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function dm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Zi(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ji(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ke&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=uf(e),hx(e,null,n),t}return lf(e,r,t,n),uf(e)}function Kl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,xv(e,n)}}function hm(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var s={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=s:a=a.next=s,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var pm=!1;function Wl(){if(pm){var e=ro;if(e!==null)throw e}}function Ql(e,t,n,r){pm=!1;var i=e.updateQueue;Qi=!1;var a=i.firstBaseUpdate,s=i.lastBaseUpdate,o=i.shared.pending;if(o!==null){i.shared.pending=null;var l=o,u=l.next;l.next=null,s===null?a=u:s.next=u,s=l;var c=e.alternate;c!==null&&(c=c.updateQueue,o=c.lastBaseUpdate,o!==s&&(o===null?c.firstBaseUpdate=u:o.next=u,c.lastBaseUpdate=l))}if(a!==null){var f=i.baseState;s=0,c=u=l=null,o=a;do{var d=o.lane&-536870913,h=d!==o.lane;if(h?(Ue&d)===d:(r&d)===d){d!==0&&d===no&&(pm=!0),c!==null&&(c=c.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var g=e,b=o;d=t;var T=n;switch(b.tag){case 1:if(g=b.payload,typeof g=="function"){f=g.call(T,f,d);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=b.payload,d=typeof g=="function"?g.call(T,f,d):g,d==null)break e;f=ct({},f,d);break e;case 2:Qi=!0}}d=o.callback,d!==null&&(e.flags|=64,h&&(e.flags|=8192),h=i.callbacks,h===null?i.callbacks=[d]:h.push(d))}else h={lane:d,tag:o.tag,payload:o.payload,callback:o.callback,next:null},c===null?(u=c=h,l=f):c=c.next=h,s|=d;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;h=o,o=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);c===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,a===null&&(i.shared.lanes=0),oa|=s,e.lanes=s,e.memoizedState=f}}function kx(e,t){if(typeof e!="function")throw Error(Y(191,e));e.call(t)}function Ox(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)kx(n[e],t)}var io=zr(null),yf=zr(0);function Rx(e,t){e=Ti,mt(yf,e),mt(io,t),Ti=e|t.baseLanes}function mm(){mt(yf,Ti),mt(io,io.current)}function gm(){Ti=yf.current,Xt(io),Xt(yf)}var ea=0,Ce=null,Ze=null,Dt=null,vf=!1,ao=!1,ns=!1,xf=0,Zl=0,so=null,nD=0;function Ct(){throw Error(Y(321))}function bm(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Hn(e[n],t[n]))return!1;return!0}function ym(e,t,n,r,i,a){return ea=a,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ge.H=e===null||e.memoizedState===null?hE:pE,ns=!1,a=n(r,i),ns=!1,ao&&(a=Dx(t,n,r,i)),Nx(e),a}function Nx(e){ge.H=Af;var t=Ze!==null&&Ze.next!==null;if(ea=0,Dt=Ze=Ce=null,vf=!1,Zl=0,so=null,t)throw Error(Y(300));e===null||Wt||(e=e.dependencies,e!==null&&hf(e)&&(Wt=!0))}function Dx(e,t,n,r){Ce=e;var i=0;do{if(ao&&(so=null),Zl=0,ao=!1,25<=i)throw Error(Y(301));if(i+=1,Dt=Ze=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}ge.H=uD,a=t(n,r)}while(ao);return a}function rD(){var e=ge.H,t=e.useState()[0];return t=typeof t.then=="function"?Jl(t):t,e=e.useState()[0],(Ze!==null?Ze.memoizedState:null)!==e&&(Ce.flags|=1024),t}function vm(){var e=xf!==0;return xf=0,e}function xm(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Em(e){if(vf){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}vf=!1}ea=0,Dt=Ze=Ce=null,ao=!1,Zl=xf=0,so=null}function Rn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Dt===null?Ce.memoizedState=Dt=e:Dt=Dt.next=e,Dt}function Mt(){if(Ze===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=Ze.next;var t=Dt===null?Ce.memoizedState:Dt.next;if(t!==null)Dt=t,Ze=e;else{if(e===null)throw Ce.alternate===null?Error(Y(467)):Error(Y(310));Ze=e,e={memoizedState:Ze.memoizedState,baseState:Ze.baseState,baseQueue:Ze.baseQueue,queue:Ze.queue,next:null},Dt===null?Ce.memoizedState=Dt=e:Dt=Dt.next=e}return Dt}function Tm(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Jl(e){var t=Zl;return Zl+=1,so===null&&(so=[]),e=Sx(so,e,t),t=Ce,(Dt===null?t.memoizedState:Dt.next)===null&&(t=t.alternate,ge.H=t===null||t.memoizedState===null?hE:pE),e}function Ef(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Jl(e);if(e.$$typeof===li)return hn(e)}throw Error(Y(438,String(e)))}function wm(e){var t=null,n=Ce.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Ce.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(i){return i.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Tm(),Ce.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=F4;return t.index++,n}function gi(e,t){return typeof t=="function"?t(e):t}function Tf(e){var t=Mt();return _m(t,Ze,e)}function _m(e,t,n){var r=e.queue;if(r===null)throw Error(Y(311));r.lastRenderedReducer=n;var i=e.baseQueue,a=r.pending;if(a!==null){if(i!==null){var s=i.next;i.next=a.next,a.next=s}t.baseQueue=i=a,r.pending=null}if(a=e.baseState,i===null)e.memoizedState=a;else{t=i.next;var o=s=null,l=null,u=t,c=!1;do{var f=u.lane&-536870913;if(f!==u.lane?(Ue&f)===f:(ea&f)===f){var d=u.revertLane;if(d===0)l!==null&&(l=l.next={lane:0,revertLane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===no&&(c=!0);else if((ea&d)===d){u=u.next,d===no&&(c=!0);continue}else f={lane:0,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(o=l=f,s=a):l=l.next=f,Ce.lanes|=d,oa|=d;f=u.action,ns&&n(a,f),a=u.hasEagerState?u.eagerState:n(a,f)}else d={lane:f,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(o=l=d,s=a):l=l.next=d,Ce.lanes|=f,oa|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=a:l.next=o,!Hn(a,e.memoizedState)&&(Wt=!0,c&&(n=ro,n!==null)))throw n;e.memoizedState=a,e.baseState=s,e.baseQueue=l,r.lastRenderedState=a}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Sm(e){var t=Mt(),n=t.queue;if(n===null)throw Error(Y(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var s=i=i.next;do a=e(a,s.action),s=s.next;while(s!==i);Hn(a,t.memoizedState)||(Wt=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Mx(e,t,n){var r=Ce,i=Mt(),a=Ge;if(a){if(n===void 0)throw Error(Y(407));n=n()}else n=t();var s=!Hn((Ze||i).memoizedState,n);s&&(i.memoizedState=n,Wt=!0),i=i.queue;var o=Px.bind(null,r,i,e);if(eu(2048,8,o,[e]),i.getSnapshot!==t||s||Dt!==null&&Dt.memoizedState.tag&1){if(r.flags|=2048,oo(9,wf(),Ix.bind(null,r,i,n,t),null),st===null)throw Error(Y(349));a||ea&124||Lx(r,t,n)}return n}function Lx(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ce.updateQueue,t===null?(t=Tm(),Ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Ix(e,t,n,r){t.value=n,t.getSnapshot=r,Bx(t)&&Ux(e)}function Px(e,t,n){return n(function(){Bx(t)&&Ux(e)})}function Bx(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Hn(e,n)}catch{return!0}}function Ux(e){var t=Zs(e,2);t!==null&&Xn(t,e,2)}function Am(e){var t=Rn();if(typeof e=="function"){var n=e;if(e=n(),ns){$i(!0);try{n()}finally{$i(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gi,lastRenderedState:e},t}function zx(e,t,n,r){return e.baseState=n,_m(e,Ze,typeof r=="function"?r:gi)}function iD(e,t,n,r,i){if(Sf(e))throw Error(Y(485));if(e=t.action,e!==null){var a={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){a.listeners.push(s)}};ge.T!==null?n(!0):a.isTransition=!1,r(a),n=t.pending,n===null?(a.next=t.pending=a,jx(t,a)):(a.next=n.next,t.pending=n.next=a)}}function jx(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=ge.T,s={};ge.T=s;try{var o=n(i,r),l=ge.S;l!==null&&l(s,o),Fx(e,t,o)}catch(u){Cm(e,t,u)}finally{ge.T=a}}else try{a=n(i,r),Fx(e,t,a)}catch(u){Cm(e,t,u)}}function Fx(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){Hx(e,t,r)},function(r){return Cm(e,t,r)}):Hx(e,t,n)}function Hx(e,t,n){t.status="fulfilled",t.value=n,Vx(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,jx(e,n)))}function Cm(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=n,Vx(t),t=t.next;while(t!==r)}e.action=null}function Vx(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function qx(e,t){return t}function Yx(e,t){if(Ge){var n=st.formState;if(n!==null){e:{var r=Ce;if(Ge){if(wt){t:{for(var i=wt,a=Hr;i.nodeType!==8;){if(!a){i=null;break t}if(i=Or(i.nextSibling),i===null){i=null;break t}}a=i.data,i=a==="F!"||a==="F"?i:null}if(i){wt=Or(i.nextSibling),r=i.data==="F!";break e}}Za(r)}r=!1}r&&(t=n[0])}}return n=Rn(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qx,lastRenderedState:t},n.queue=r,n=cE.bind(null,Ce,r),r.dispatch=n,r=Am(!1),a=Dm.bind(null,Ce,!1,r.queue),r=Rn(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=iD.bind(null,Ce,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Gx(e){var t=Mt();return $x(t,Ze,e)}function $x(e,t,n){if(t=_m(e,t,qx)[0],e=Tf(gi)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=Jl(t)}catch(s){throw s===$l?gf:s}else r=t;t=Mt();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(Ce.flags|=2048,oo(9,wf(),aD.bind(null,i,n),null)),[r,a,e]}function aD(e,t){e.action=t}function Xx(e){var t=Mt(),n=Ze;if(n!==null)return $x(t,n,e);Mt(),t=t.memoizedState,n=Mt();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function oo(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=Ce.updateQueue,t===null&&(t=Tm(),Ce.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function wf(){return{destroy:void 0,resource:void 0}}function Kx(){return Mt().memoizedState}function _f(e,t,n,r){var i=Rn();r=r===void 0?null:r,Ce.flags|=e,i.memoizedState=oo(1|t,wf(),n,r)}function eu(e,t,n,r){var i=Mt();r=r===void 0?null:r;var a=i.memoizedState.inst;Ze!==null&&r!==null&&bm(r,Ze.memoizedState.deps)?i.memoizedState=oo(t,a,n,r):(Ce.flags|=e,i.memoizedState=oo(1|t,a,n,r))}function Wx(e,t){_f(8390656,8,e,t)}function Qx(e,t){eu(2048,8,e,t)}function Zx(e,t){return eu(4,2,e,t)}function Jx(e,t){return eu(4,4,e,t)}function eE(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function tE(e,t,n){n=n!=null?n.concat([e]):null,eu(4,4,eE.bind(null,t,e),n)}function km(){}function nE(e,t){var n=Mt();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&bm(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function rE(e,t){var n=Mt();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&bm(t,r[1]))return r[0];if(r=e(),ns){$i(!0);try{e()}finally{$i(!1)}}return n.memoizedState=[r,t],r}function Om(e,t,n){return n===void 0||ea&1073741824?e.memoizedState=t:(e.memoizedState=n,e=sT(),Ce.lanes|=e,oa|=e,n)}function iE(e,t,n,r){return Hn(n,t)?n:io.current!==null?(e=Om(e,n,r),Hn(e,t)||(Wt=!0),e):ea&42?(e=sT(),Ce.lanes|=e,oa|=e,t):(Wt=!0,e.memoizedState=n)}function aE(e,t,n,r,i){var a=Ye.p;Ye.p=a!==0&&8>a?a:8;var s=ge.T,o={};ge.T=o,Dm(e,!1,t,n);try{var l=i(),u=ge.S;if(u!==null&&u(o,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=tD(l,r);tu(e,t,c,$n(e))}else tu(e,t,r,$n(e))}catch(f){tu(e,t,{then:function(){},status:"rejected",reason:f},$n())}finally{Ye.p=a,ge.T=s}}function sD(){}function Rm(e,t,n,r){if(e.tag!==5)throw Error(Y(476));var i=sE(e).queue;aE(e,i,t,Ha,n===null?sD:function(){return oE(e),n(r)})}function sE(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Ha,baseState:Ha,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gi,lastRenderedState:Ha},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gi,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function oE(e){var t=sE(e).next.queue;tu(e,t,{},$n())}function Nm(){return hn(vu)}function lE(){return Mt().memoizedState}function uE(){return Mt().memoizedState}function oD(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=$n();e=Zi(n);var r=Ji(t,e,n);r!==null&&(Xn(r,t,n),Kl(r,t,n)),t={cache:om()},e.payload=t;return}t=t.return}}function lD(e,t,n){var r=$n();n={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Sf(e)?fE(t,n):(n=Qp(e,t,n,r),n!==null&&(Xn(n,e,r),dE(n,t,r)))}function cE(e,t,n){var r=$n();tu(e,t,n,r)}function tu(e,t,n,r){var i={lane:r,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Sf(e))fE(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,o=a(s,n);if(i.hasEagerState=!0,i.eagerState=o,Hn(o,s))return lf(e,t,i,0),st===null&&of(),!1}catch{}finally{}if(n=Qp(e,t,i,r),n!==null)return Xn(n,e,r),dE(n,t,r),!0}return!1}function Dm(e,t,n,r){if(r={lane:2,revertLane:c0(),action:r,hasEagerState:!1,eagerState:null,next:null},Sf(e)){if(t)throw Error(Y(479))}else t=Qp(e,n,r,2),t!==null&&Xn(t,e,2)}function Sf(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function fE(e,t){ao=vf=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function dE(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,xv(e,n)}}var Af={readContext:hn,use:Ef,useCallback:Ct,useContext:Ct,useEffect:Ct,useImperativeHandle:Ct,useLayoutEffect:Ct,useInsertionEffect:Ct,useMemo:Ct,useReducer:Ct,useRef:Ct,useState:Ct,useDebugValue:Ct,useDeferredValue:Ct,useTransition:Ct,useSyncExternalStore:Ct,useId:Ct,useHostTransitionStatus:Ct,useFormState:Ct,useActionState:Ct,useOptimistic:Ct,useMemoCache:Ct,useCacheRefresh:Ct},hE={readContext:hn,use:Ef,useCallback:function(e,t){return Rn().memoizedState=[e,t===void 0?null:t],e},useContext:hn,useEffect:Wx,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,_f(4194308,4,eE.bind(null,t,e),n)},useLayoutEffect:function(e,t){return _f(4194308,4,e,t)},useInsertionEffect:function(e,t){_f(4,2,e,t)},useMemo:function(e,t){var n=Rn();t=t===void 0?null:t;var r=e();if(ns){$i(!0);try{e()}finally{$i(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Rn();if(n!==void 0){var i=n(t);if(ns){$i(!0);try{n(t)}finally{$i(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=lD.bind(null,Ce,e),[r.memoizedState,e]},useRef:function(e){var t=Rn();return e={current:e},t.memoizedState=e},useState:function(e){e=Am(e);var t=e.queue,n=cE.bind(null,Ce,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:km,useDeferredValue:function(e,t){var n=Rn();return Om(n,e,t)},useTransition:function(){var e=Am(!1);return e=aE.bind(null,Ce,e.queue,!0,!1),Rn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Ce,i=Rn();if(Ge){if(n===void 0)throw Error(Y(407));n=n()}else{if(n=t(),st===null)throw Error(Y(349));Ue&124||Lx(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Wx(Px.bind(null,r,a,e),[e]),r.flags|=2048,oo(9,wf(),Ix.bind(null,r,a,n,t),null),n},useId:function(){var e=Rn(),t=st.identifierPrefix;if(Ge){var n=hi,r=di;n=(r&~(1<<32-Fn(r)-1)).toString(32)+n,t="«"+t+"R"+n,n=xf++,0<n&&(t+="H"+n.toString(32)),t+="»"}else n=nD++,t="«"+t+"r"+n.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Nm,useFormState:Yx,useActionState:Yx,useOptimistic:function(e){var t=Rn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Dm.bind(null,Ce,!0,n),n.dispatch=t,[e,t]},useMemoCache:wm,useCacheRefresh:function(){return Rn().memoizedState=oD.bind(null,Ce)}},pE={readContext:hn,use:Ef,useCallback:nE,useContext:hn,useEffect:Qx,useImperativeHandle:tE,useInsertionEffect:Zx,useLayoutEffect:Jx,useMemo:rE,useReducer:Tf,useRef:Kx,useState:function(){return Tf(gi)},useDebugValue:km,useDeferredValue:function(e,t){var n=Mt();return iE(n,Ze.memoizedState,e,t)},useTransition:function(){var e=Tf(gi)[0],t=Mt().memoizedState;return[typeof e=="boolean"?e:Jl(e),t]},useSyncExternalStore:Mx,useId:lE,useHostTransitionStatus:Nm,useFormState:Gx,useActionState:Gx,useOptimistic:function(e,t){var n=Mt();return zx(n,Ze,e,t)},useMemoCache:wm,useCacheRefresh:uE},uD={readContext:hn,use:Ef,useCallback:nE,useContext:hn,useEffect:Qx,useImperativeHandle:tE,useInsertionEffect:Zx,useLayoutEffect:Jx,useMemo:rE,useReducer:Sm,useRef:Kx,useState:function(){return Sm(gi)},useDebugValue:km,useDeferredValue:function(e,t){var n=Mt();return Ze===null?Om(n,e,t):iE(n,Ze.memoizedState,e,t)},useTransition:function(){var e=Sm(gi)[0],t=Mt().memoizedState;return[typeof e=="boolean"?e:Jl(e),t]},useSyncExternalStore:Mx,useId:lE,useHostTransitionStatus:Nm,useFormState:Xx,useActionState:Xx,useOptimistic:function(e,t){var n=Mt();return Ze!==null?zx(n,Ze,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:wm,useCacheRefresh:uE},lo=null,nu=0;function Cf(e){var t=nu;return nu+=1,lo===null&&(lo=[]),Sx(lo,e,t)}function ru(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function kf(e,t){throw t.$$typeof===z4?Error(Y(525)):(e=Object.prototype.toString.call(t),Error(Y(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function mE(e){var t=e._init;return t(e._payload)}function gE(e){function t(m,y){if(e){var v=m.deletions;v===null?(m.deletions=[y],m.flags|=16):v.push(y)}}function n(m,y){if(!e)return null;for(;y!==null;)t(m,y),y=y.sibling;return null}function r(m){for(var y=new Map;m!==null;)m.key!==null?y.set(m.key,m):y.set(m.index,m),m=m.sibling;return y}function i(m,y){return m=fi(m,y),m.index=0,m.sibling=null,m}function a(m,y,v){return m.index=v,e?(v=m.alternate,v!==null?(v=v.index,v<y?(m.flags|=67108866,y):v):(m.flags|=67108866,y)):(m.flags|=1048576,y)}function s(m){return e&&m.alternate===null&&(m.flags|=67108866),m}function o(m,y,v,w){return y===null||y.tag!==6?(y=Jp(v,m.mode,w),y.return=m,y):(y=i(y,v),y.return=m,y)}function l(m,y,v,w){var _=v.type;return _===Is?c(m,y,v.props.children,w,v.key):y!==null&&(y.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Yi&&mE(_)===y.type)?(y=i(y,v.props),ru(y,v),y.return=m,y):(y=cf(v.type,v.key,v.props,null,m.mode,w),ru(y,v),y.return=m,y)}function u(m,y,v,w){return y===null||y.tag!==4||y.stateNode.containerInfo!==v.containerInfo||y.stateNode.implementation!==v.implementation?(y=em(v,m.mode,w),y.return=m,y):(y=i(y,v.children||[]),y.return=m,y)}function c(m,y,v,w,_){return y===null||y.tag!==7?(y=Xa(v,m.mode,w,_),y.return=m,y):(y=i(y,v),y.return=m,y)}function f(m,y,v){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return y=Jp(""+y,m.mode,v),y.return=m,y;if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Fc:return v=cf(y.type,y.key,y.props,null,m.mode,v),ru(v,y),v.return=m,v;case wl:return y=em(y,m.mode,v),y.return=m,y;case Yi:var w=y._init;return y=w(y._payload),f(m,y,v)}if(Sl(y)||_l(y))return y=Xa(y,m.mode,v,null),y.return=m,y;if(typeof y.then=="function")return f(m,Cf(y),v);if(y.$$typeof===li)return f(m,pf(m,y),v);kf(m,y)}return null}function d(m,y,v,w){var _=y!==null?y.key:null;if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return _!==null?null:o(m,y,""+v,w);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Fc:return v.key===_?l(m,y,v,w):null;case wl:return v.key===_?u(m,y,v,w):null;case Yi:return _=v._init,v=_(v._payload),d(m,y,v,w)}if(Sl(v)||_l(v))return _!==null?null:c(m,y,v,w,null);if(typeof v.then=="function")return d(m,y,Cf(v),w);if(v.$$typeof===li)return d(m,y,pf(m,v),w);kf(m,v)}return null}function h(m,y,v,w,_){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return m=m.get(v)||null,o(y,m,""+w,_);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Fc:return m=m.get(w.key===null?v:w.key)||null,l(y,m,w,_);case wl:return m=m.get(w.key===null?v:w.key)||null,u(y,m,w,_);case Yi:var A=w._init;return w=A(w._payload),h(m,y,v,w,_)}if(Sl(w)||_l(w))return m=m.get(v)||null,c(y,m,w,_,null);if(typeof w.then=="function")return h(m,y,v,Cf(w),_);if(w.$$typeof===li)return h(m,y,v,pf(y,w),_);kf(y,w)}return null}function g(m,y,v,w){for(var _=null,A=null,N=y,L=y=0,F=null;N!==null&&L<v.length;L++){N.index>L?(F=N,N=null):F=N.sibling;var R=d(m,N,v[L],w);if(R===null){N===null&&(N=F);break}e&&N&&R.alternate===null&&t(m,N),y=a(R,y,L),A===null?_=R:A.sibling=R,A=R,N=F}if(L===v.length)return n(m,N),Ge&&Wa(m,L),_;if(N===null){for(;L<v.length;L++)N=f(m,v[L],w),N!==null&&(y=a(N,y,L),A===null?_=N:A.sibling=N,A=N);return Ge&&Wa(m,L),_}for(N=r(N);L<v.length;L++)F=h(N,m,L,v[L],w),F!==null&&(e&&F.alternate!==null&&N.delete(F.key===null?L:F.key),y=a(F,y,L),A===null?_=F:A.sibling=F,A=F);return e&&N.forEach(function(q){return t(m,q)}),Ge&&Wa(m,L),_}function b(m,y,v,w){if(v==null)throw Error(Y(151));for(var _=null,A=null,N=y,L=y=0,F=null,R=v.next();N!==null&&!R.done;L++,R=v.next()){N.index>L?(F=N,N=null):F=N.sibling;var q=d(m,N,R.value,w);if(q===null){N===null&&(N=F);break}e&&N&&q.alternate===null&&t(m,N),y=a(q,y,L),A===null?_=q:A.sibling=q,A=q,N=F}if(R.done)return n(m,N),Ge&&Wa(m,L),_;if(N===null){for(;!R.done;L++,R=v.next())R=f(m,R.value,w),R!==null&&(y=a(R,y,L),A===null?_=R:A.sibling=R,A=R);return Ge&&Wa(m,L),_}for(N=r(N);!R.done;L++,R=v.next())R=h(N,m,L,R.value,w),R!==null&&(e&&R.alternate!==null&&N.delete(R.key===null?L:R.key),y=a(R,y,L),A===null?_=R:A.sibling=R,A=R);return e&&N.forEach(function(j){return t(m,j)}),Ge&&Wa(m,L),_}function T(m,y,v,w){if(typeof v=="object"&&v!==null&&v.type===Is&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Fc:e:{for(var _=v.key;y!==null;){if(y.key===_){if(_=v.type,_===Is){if(y.tag===7){n(m,y.sibling),w=i(y,v.props.children),w.return=m,m=w;break e}}else if(y.elementType===_||typeof _=="object"&&_!==null&&_.$$typeof===Yi&&mE(_)===y.type){n(m,y.sibling),w=i(y,v.props),ru(w,v),w.return=m,m=w;break e}n(m,y);break}else t(m,y);y=y.sibling}v.type===Is?(w=Xa(v.props.children,m.mode,w,v.key),w.return=m,m=w):(w=cf(v.type,v.key,v.props,null,m.mode,w),ru(w,v),w.return=m,m=w)}return s(m);case wl:e:{for(_=v.key;y!==null;){if(y.key===_)if(y.tag===4&&y.stateNode.containerInfo===v.containerInfo&&y.stateNode.implementation===v.implementation){n(m,y.sibling),w=i(y,v.children||[]),w.return=m,m=w;break e}else{n(m,y);break}else t(m,y);y=y.sibling}w=em(v,m.mode,w),w.return=m,m=w}return s(m);case Yi:return _=v._init,v=_(v._payload),T(m,y,v,w)}if(Sl(v))return g(m,y,v,w);if(_l(v)){if(_=_l(v),typeof _!="function")throw Error(Y(150));return v=_.call(v),b(m,y,v,w)}if(typeof v.then=="function")return T(m,y,Cf(v),w);if(v.$$typeof===li)return T(m,y,pf(m,v),w);kf(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint"?(v=""+v,y!==null&&y.tag===6?(n(m,y.sibling),w=i(y,v),w.return=m,m=w):(n(m,y),w=Jp(v,m.mode,w),w.return=m,m=w),s(m)):n(m,y)}return function(m,y,v,w){try{nu=0;var _=T(m,y,v,w);return lo=null,_}catch(N){if(N===$l||N===gf)throw N;var A=Vn(29,N,null,m.mode);return A.lanes=w,A.return=m,A}finally{}}}var uo=gE(!0),bE=gE(!1),pr=zr(null),Vr=null;function ta(e){var t=e.alternate;mt(Ht,Ht.current&1),mt(pr,e),Vr===null&&(t===null||io.current!==null||t.memoizedState!==null)&&(Vr=e)}function yE(e){if(e.tag===22){if(mt(Ht,Ht.current),mt(pr,e),Vr===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Vr=e)}}else na()}function na(){mt(Ht,Ht.current),mt(pr,pr.current)}function bi(e){Xt(pr),Vr===e&&(Vr=null),Xt(Ht)}var Ht=zr(0);function Of(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||T0(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Mm(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ct({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Lm={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=$n(),i=Zi(r);i.payload=t,n!=null&&(i.callback=n),t=Ji(e,i,r),t!==null&&(Xn(t,e,r),Kl(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=$n(),i=Zi(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ji(e,i,r),t!==null&&(Xn(t,e,r),Kl(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=$n(),r=Zi(n);r.tag=2,t!=null&&(r.callback=t),t=Ji(e,r,n),t!==null&&(Xn(t,e,n),Kl(t,e,n))}};function vE(e,t,n,r,i,a,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,a,s):t.prototype&&t.prototype.isPureReactComponent?!zl(n,r)||!zl(i,a):!0}function xE(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Lm.enqueueReplaceState(t,t.state,null)}function rs(e,t){var n=t;if("ref"in t){n={};for(var r in t)r!=="ref"&&(n[r]=t[r])}if(e=e.defaultProps){n===t&&(n=ct({},n));for(var i in e)n[i]===void 0&&(n[i]=e[i])}return n}var Rf=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function EE(e){Rf(e)}function TE(e){console.error(e)}function wE(e){Rf(e)}function Nf(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function _E(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function Im(e,t,n){return n=Zi(n),n.tag=3,n.payload={element:null},n.callback=function(){Nf(e,t)},n}function SE(e){return e=Zi(e),e.tag=3,e}function AE(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){_E(t,n,r)}}var s=n.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(e.callback=function(){_E(t,n,r),typeof i!="function"&&(la===null?la=new Set([this]):la.add(this));var o=r.stack;this.componentDidCatch(r.value,{componentStack:o!==null?o:""})})}function cD(e,t,n,r,i){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=n.alternate,t!==null&&ql(t,n,i,!0),n=pr.current,n!==null){switch(n.tag){case 13:return Vr===null?a0():n.alternate===null&&_t===0&&(_t=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===cm?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),o0(e,r,i)),!1;case 22:return n.flags|=65536,r===cm?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),o0(e,r,i)),!1}throw Error(Y(435,n.tag))}return o0(e,r,i),a0(),!1}if(Ge)return t=pr.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==rm&&(e=Error(Y(422),{cause:r}),Vl(cr(e,n)))):(r!==rm&&(t=Error(Y(423),{cause:r}),Vl(cr(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=cr(r,n),i=Im(e.stateNode,r,i),hm(e,i),_t!==4&&(_t=2)),!1;var a=Error(Y(520),{cause:r});if(a=cr(a,n),cu===null?cu=[a]:cu.push(a),_t!==4&&(_t=2),t===null)return!0;r=cr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=Im(n.stateNode,r,e),hm(n,e),!1;case 1:if(t=n.type,a=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||a!==null&&typeof a.componentDidCatch=="function"&&(la===null||!la.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,i=SE(i),AE(i,e,n,r),hm(n,i),!1}n=n.return}while(n!==null);return!1}var CE=Error(Y(461)),Wt=!1;function an(e,t,n,r){t.child=e===null?bE(t,null,n,r):uo(t,e.child,n,r)}function kE(e,t,n,r,i){n=n.render;var a=t.ref;if("ref"in r){var s={};for(var o in r)o!=="ref"&&(s[o]=r[o])}else s=r;return es(t),r=ym(e,t,n,s,a,i),o=vm(),e!==null&&!Wt?(xm(e,t,i),yi(e,t,i)):(Ge&&o&&tm(t),t.flags|=1,an(e,t,r,i),t.child)}function OE(e,t,n,r,i){if(e===null){var a=n.type;return typeof a=="function"&&!Zp(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,RE(e,t,a,r,i)):(e=cf(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Vm(e,i)){var s=a.memoizedProps;if(n=n.compare,n=n!==null?n:zl,n(s,r)&&e.ref===t.ref)return yi(e,t,i)}return t.flags|=1,e=fi(a,r),e.ref=t.ref,e.return=t,t.child=e}function RE(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(zl(a,r)&&e.ref===t.ref)if(Wt=!1,t.pendingProps=r=a,Vm(e,i))e.flags&131072&&(Wt=!0);else return t.lanes=e.lanes,yi(e,t,i)}return Pm(e,t,n,r,i)}function NE(e,t,n){var r=t.pendingProps,i=r.children,a=e!==null?e.memoizedState:null;if(r.mode==="hidden"){if(t.flags&128){if(r=a!==null?a.baseLanes|n:n,e!==null){for(i=t.child=e.child,a=0;i!==null;)a=a|i.lanes|i.childLanes,i=i.sibling;t.childLanes=a&~r}else t.childLanes=0,t.child=null;return DE(e,t,r,n)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&mf(t,a!==null?a.cachePool:null),a!==null?Rx(t,a):mm(),yE(t);else return t.lanes=t.childLanes=536870912,DE(e,t,a!==null?a.baseLanes|n:n,n)}else a!==null?(mf(t,a.cachePool),Rx(t,a),na(),t.memoizedState=null):(e!==null&&mf(t,null),mm(),na());return an(e,t,i,n),t.child}function DE(e,t,n,r){var i=um();return i=i===null?null:{parent:Ft._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},e!==null&&mf(t,null),mm(),yE(t),e!==null&&ql(e,t,r,!0),null}function Df(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(Y(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Pm(e,t,n,r,i){return es(t),n=ym(e,t,n,r,void 0,i),r=vm(),e!==null&&!Wt?(xm(e,t,i),yi(e,t,i)):(Ge&&r&&tm(t),t.flags|=1,an(e,t,n,i),t.child)}function ME(e,t,n,r,i,a){return es(t),t.updateQueue=null,n=Dx(t,r,n,i),Nx(e),r=vm(),e!==null&&!Wt?(xm(e,t,a),yi(e,t,a)):(Ge&&r&&tm(t),t.flags|=1,an(e,t,n,a),t.child)}function LE(e,t,n,r,i){if(es(t),t.stateNode===null){var a=Js,s=n.contextType;typeof s=="object"&&s!==null&&(a=hn(s)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Lm,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},fm(t),s=n.contextType,a.context=typeof s=="object"&&s!==null?hn(s):Js,a.state=t.memoizedState,s=n.getDerivedStateFromProps,typeof s=="function"&&(Mm(t,n,s,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(s=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),s!==a.state&&Lm.enqueueReplaceState(a,a.state,null),Ql(t,r,a,i),Wl(),a.state=t.memoizedState),typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var o=t.memoizedProps,l=rs(n,o);a.props=l;var u=a.context,c=n.contextType;s=Js,typeof c=="object"&&c!==null&&(s=hn(c));var f=n.getDerivedStateFromProps;c=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,c||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(o||u!==s)&&xE(t,a,r,s),Qi=!1;var d=t.memoizedState;a.state=d,Ql(t,r,a,i),Wl(),u=t.memoizedState,o||d!==u||Qi?(typeof f=="function"&&(Mm(t,n,f,r),u=t.memoizedState),(l=Qi||vE(t,n,l,r,d,u,s))?(c||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=s,r=l):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,dm(e,t),s=t.memoizedProps,c=rs(n,s),a.props=c,f=t.pendingProps,d=a.context,u=n.contextType,l=Js,typeof u=="object"&&u!==null&&(l=hn(u)),o=n.getDerivedStateFromProps,(u=typeof o=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==f||d!==l)&&xE(t,a,r,l),Qi=!1,d=t.memoizedState,a.state=d,Ql(t,r,a,i),Wl();var h=t.memoizedState;s!==f||d!==h||Qi||e!==null&&e.dependencies!==null&&hf(e.dependencies)?(typeof o=="function"&&(Mm(t,n,o,r),h=t.memoizedState),(c=Qi||vE(t,n,c,r,d,h,l)||e!==null&&e.dependencies!==null&&hf(e.dependencies))?(u||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,h,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,h,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=l,r=c):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Df(e,t),r=(t.flags&128)!==0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!="function"?null:a.render(),t.flags|=1,e!==null&&r?(t.child=uo(t,e.child,null,i),t.child=uo(t,null,n,i)):an(e,t,n,i),t.memoizedState=a.state,e=t.child):e=yi(e,t,i),e}function IE(e,t,n,r){return Hl(),t.flags|=256,an(e,t,n,r),t.child}var Bm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Um(e){return{baseLanes:e,cachePool:Tx()}}function zm(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=mr),e}function PE(e,t,n){var r=t.pendingProps,i=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(Ht.current&2)!==0),s&&(i=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ge){if(i?ta(t):na(),Ge){var o=wt,l;if(l=o){e:{for(l=o,o=Hr;l.nodeType!==8;){if(!o){o=null;break e}if(l=Or(l.nextSibling),l===null){o=null;break e}}o=l}o!==null?(t.memoizedState={dehydrated:o,treeContext:Ka!==null?{id:di,overflow:hi}:null,retryLane:536870912,hydrationErrors:null},l=Vn(18,null,null,0),l.stateNode=o,l.return=t,t.child=l,wn=t,wt=null,l=!0):l=!1}l||Za(t)}if(o=t.memoizedState,o!==null&&(o=o.dehydrated,o!==null))return T0(o)?t.lanes=32:t.lanes=536870912,null;bi(t)}return o=r.children,r=r.fallback,i?(na(),i=t.mode,o=Mf({mode:"hidden",children:o},i),r=Xa(r,i,n,null),o.return=t,r.return=t,o.sibling=r,t.child=o,i=t.child,i.memoizedState=Um(n),i.childLanes=zm(e,s,n),t.memoizedState=Bm,r):(ta(t),jm(t,o))}if(l=e.memoizedState,l!==null&&(o=l.dehydrated,o!==null)){if(a)t.flags&256?(ta(t),t.flags&=-257,t=Fm(e,t,n)):t.memoizedState!==null?(na(),t.child=e.child,t.flags|=128,t=null):(na(),i=r.fallback,o=t.mode,r=Mf({mode:"visible",children:r.children},o),i=Xa(i,o,n,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,uo(t,e.child,null,n),r=t.child,r.memoizedState=Um(n),r.childLanes=zm(e,s,n),t.memoizedState=Bm,t=i);else if(ta(t),T0(o)){if(s=o.nextSibling&&o.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(Y(419)),r.stack="",r.digest=s,Vl({value:r,source:null,stack:null}),t=Fm(e,t,n)}else if(Wt||ql(e,t,n,!1),s=(n&e.childLanes)!==0,Wt||s){if(s=st,s!==null&&(r=n&-n,r=r&42?1:wp(r),r=r&(s.suspendedLanes|n)?0:r,r!==0&&r!==l.retryLane))throw l.retryLane=r,Zs(e,r),Xn(s,e,r),CE;o.data==="$?"||a0(),t=Fm(e,t,n)}else o.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,wt=Or(o.nextSibling),wn=t,Ge=!0,Qa=null,Hr=!1,e!==null&&(dr[hr++]=di,dr[hr++]=hi,dr[hr++]=Ka,di=e.id,hi=e.overflow,Ka=t),t=jm(t,r.children),t.flags|=4096);return t}return i?(na(),i=r.fallback,o=t.mode,l=e.child,u=l.sibling,r=fi(l,{mode:"hidden",children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u!==null?i=fi(u,i):(i=Xa(i,o,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,o=e.child.memoizedState,o===null?o=Um(n):(l=o.cachePool,l!==null?(u=Ft._currentValue,l=l.parent!==u?{parent:u,pool:u}:l):l=Tx(),o={baseLanes:o.baseLanes|n,cachePool:l}),i.memoizedState=o,i.childLanes=zm(e,s,n),t.memoizedState=Bm,r):(ta(t),n=e.child,e=n.sibling,n=fi(n,{mode:"visible",children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function jm(e,t){return t=Mf({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Mf(e,t){return e=Vn(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Fm(e,t,n){return uo(t,e.child,null,n),e=jm(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function BE(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),am(e.return,t,n)}function Hm(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function UE(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(an(e,t,r.children,n),r=Ht.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&BE(e,n,t);else if(e.tag===19)BE(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}switch(mt(Ht,r),i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Of(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Hm(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Of(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Hm(t,!0,n,null,a);break;case"together":Hm(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function yi(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),oa|=t.lanes,!(n&t.childLanes))if(e!==null){if(ql(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(Y(153));if(t.child!==null){for(e=t.child,n=fi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=fi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Vm(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&hf(e)))}function fD(e,t,n){switch(t.tag){case 3:Vc(t,t.stateNode.containerInfo),Wi(t,Ft,e.memoizedState.cache),Hl();break;case 27:case 5:yp(t);break;case 4:Vc(t,t.stateNode.containerInfo);break;case 10:Wi(t,t.type,t.memoizedProps.value);break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(ta(t),t.flags|=128,null):n&t.child.childLanes?PE(e,t,n):(ta(t),e=yi(e,t,n),e!==null?e.sibling:null);ta(t);break;case 19:var i=(e.flags&128)!==0;if(r=(n&t.childLanes)!==0,r||(ql(e,t,n,!1),r=(n&t.childLanes)!==0),i){if(r)return UE(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),mt(Ht,Ht.current),r)break;return null;case 22:case 23:return t.lanes=0,NE(e,t,n);case 24:Wi(t,Ft,e.memoizedState.cache)}return yi(e,t,n)}function zE(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Wt=!0;else{if(!Vm(e,n)&&!(t.flags&128))return Wt=!1,fD(e,t,n);Wt=!!(e.flags&131072)}else Wt=!1,Ge&&t.flags&1048576&&mx(t,df,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var r=t.elementType,i=r._init;if(r=i(r._payload),t.type=r,typeof r=="function")Zp(r)?(e=rs(r,e),t.tag=1,t=LE(null,t,r,e,n)):(t.tag=0,t=Pm(null,t,r,e,n));else{if(r!=null){if(i=r.$$typeof,i===fp){t.tag=11,t=kE(null,t,r,e,n);break e}else if(i===pp){t.tag=14,t=OE(null,t,r,e,n);break e}}throw t=gp(r)||r,Error(Y(306,t,""))}}return t;case 0:return Pm(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=rs(r,t.pendingProps),LE(e,t,r,i,n);case 3:e:{if(Vc(t,t.stateNode.containerInfo),e===null)throw Error(Y(387));r=t.pendingProps;var a=t.memoizedState;i=a.element,dm(e,t),Ql(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Wi(t,Ft,r),r!==a.cache&&sm(t,[Ft],n,!0),Wl(),r=s.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=IE(e,t,r,n);break e}else if(r!==i){i=cr(Error(Y(424)),t),Vl(i),t=IE(e,t,r,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(wt=Or(e.firstChild),wn=t,Ge=!0,Qa=null,Hr=!0,n=bE(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Hl(),r===i){t=yi(e,t,n);break e}an(e,t,r,n)}t=t.child}return t;case 26:return Df(e,t),e===null?(n=VT(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ge||(n=t.type,e=t.pendingProps,r=$f(Gi.current).createElement(n),r[dn]=t,r[kn]=e,on(r,n,e),Kt(r),t.stateNode=r):t.memoizedState=VT(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return yp(t),e===null&&Ge&&(r=t.stateNode=jT(t.type,t.pendingProps,Gi.current),wn=t,Hr=!0,i=wt,fa(t.type)?(w0=i,wt=Or(r.firstChild)):wt=i),an(e,t,t.pendingProps.children,n),Df(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ge&&((i=r=wt)&&(r=zD(r,t.type,t.pendingProps,Hr),r!==null?(t.stateNode=r,wn=t,wt=Or(r.firstChild),Hr=!1,i=!0):i=!1),i||Za(t)),yp(t),i=t.type,a=t.pendingProps,s=e!==null?e.memoizedProps:null,r=a.children,v0(i,a)?r=null:s!==null&&v0(i,s)&&(t.flags|=32),t.memoizedState!==null&&(i=ym(e,t,rD,null,null,n),vu._currentValue=i),Df(e,t),an(e,t,r,n),t.child;case 6:return e===null&&Ge&&((e=n=wt)&&(n=jD(n,t.pendingProps,Hr),n!==null?(t.stateNode=n,wn=t,wt=null,e=!0):e=!1),e||Za(t)),null;case 13:return PE(e,t,n);case 4:return Vc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=uo(t,null,r,n):an(e,t,r,n),t.child;case 11:return kE(e,t,t.type,t.pendingProps,n);case 7:return an(e,t,t.pendingProps,n),t.child;case 8:return an(e,t,t.pendingProps.children,n),t.child;case 12:return an(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Wi(t,t.type,r.value),an(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,es(t),i=hn(i),r=r(i),t.flags|=1,an(e,t,r,n),t.child;case 14:return OE(e,t,t.type,t.pendingProps,n);case 15:return RE(e,t,t.type,t.pendingProps,n);case 19:return UE(e,t,n);case 31:return r=t.pendingProps,n=t.mode,r={mode:r.mode,children:r.children},e===null?(n=Mf(r,n),n.ref=t.ref,t.child=n,n.return=t,t=n):(n=fi(e.child,r),n.ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return NE(e,t,n);case 24:return es(t),r=hn(Ft),e===null?(i=um(),i===null&&(i=st,a=om(),i.pooledCache=a,a.refCount++,a!==null&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:r,cache:i},fm(t),Wi(t,Ft,i)):(e.lanes&n&&(dm(e,t),Ql(t,null,null,n),Wl()),i=e.memoizedState,a=t.memoizedState,i.parent!==r?(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Wi(t,Ft,r)):(r=a.cache,Wi(t,Ft,r),r!==i.cache&&sm(t,[Ft],n,!0))),an(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(Y(156,t.tag))}function vi(e){e.flags|=4}function jE(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!XT(t)){if(t=pr.current,t!==null&&((Ue&4194048)===Ue?Vr!==null:(Ue&62914560)!==Ue&&!(Ue&536870912)||t!==Vr))throw Xl=cm,wx;e.flags|=8192}}function Lf(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?yv():536870912,e.lanes|=t,po|=t)}function iu(e,t){if(!Ge)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function vt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function dD(e,t,n){var r=t.pendingProps;switch(nm(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vt(t),null;case 1:return vt(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),mi(Ft),Bs(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Fl(t)?vi(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,yx())),vt(t),null;case 26:return n=t.memoizedState,e===null?(vi(t),n!==null?(vt(t),jE(t,n)):(vt(t),t.flags&=-16777217)):n?n!==e.memoizedState?(vi(t),vt(t),jE(t,n)):(vt(t),t.flags&=-16777217):(e.memoizedProps!==r&&vi(t),vt(t),t.flags&=-16777217),null;case 27:qc(t),n=Gi.current;var i=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==r&&vi(t);else{if(!r){if(t.stateNode===null)throw Error(Y(166));return vt(t),null}e=jr.current,Fl(t)?gx(t):(e=jT(i,r,n),t.stateNode=e,vi(t))}return vt(t),null;case 5:if(qc(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&vi(t);else{if(!r){if(t.stateNode===null)throw Error(Y(166));return vt(t),null}if(e=jr.current,Fl(t))gx(t);else{switch(i=$f(Gi.current),e){case 1:e=i.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=i.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=i.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof r.is=="string"?i.createElement("select",{is:r.is}):i.createElement("select"),r.multiple?e.multiple=!0:r.size&&(e.size=r.size);break;default:e=typeof r.is=="string"?i.createElement(n,{is:r.is}):i.createElement(n)}}e[dn]=t,e[kn]=r;e:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)e.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=e;e:switch(on(e,n,r),n){case"button":case"input":case"select":case"textarea":e=!!r.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&vi(t)}}return vt(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&vi(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(Y(166));if(e=Gi.current,Fl(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=wn,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[dn]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||MT(e.nodeValue,n)),e||Za(t)}else e=$f(e).createTextNode(r),e[dn]=t,t.stateNode=e}return vt(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Fl(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(Y(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(Y(317));i[dn]=t}else Hl(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;vt(t),i=!1}else i=yx(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(bi(t),t):(bi(t),null)}if(bi(t),t.flags&128)return t.lanes=n,t;if(n=r!==null,e=e!==null&&e.memoizedState!==null,n){r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool);var a=null;r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),Lf(t,t.updateQueue),vt(t),null;case 4:return Bs(),e===null&&p0(t.stateNode.containerInfo),vt(t),null;case 10:return mi(t.type),vt(t),null;case 19:if(Xt(Ht),i=t.memoizedState,i===null)return vt(t),null;if(r=(t.flags&128)!==0,a=i.rendering,a===null)if(r)iu(i,!1);else{if(_t!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=Of(e),a!==null){for(t.flags|=128,iu(i,!1),e=a.updateQueue,t.updateQueue=e,Lf(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)px(n,e),n=n.sibling;return mt(Ht,Ht.current&1|2),t.child}e=e.sibling}i.tail!==null&&Fr()>Bf&&(t.flags|=128,r=!0,iu(i,!1),t.lanes=4194304)}else{if(!r)if(e=Of(a),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Lf(t,e),iu(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Ge)return vt(t),null}else 2*Fr()-i.renderingStartTime>Bf&&n!==536870912&&(t.flags|=128,r=!0,iu(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(e=i.last,e!==null?e.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Fr(),t.sibling=null,e=Ht.current,mt(Ht,r?e&1|2:e&1),t):(vt(t),null);case 22:case 23:return bi(t),gm(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(vt(t),t.subtreeFlags&6&&(t.flags|=8192)):vt(t),n=t.updateQueue,n!==null&&Lf(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&Xt(ts),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),mi(Ft),vt(t),null;case 25:return null;case 30:return null}throw Error(Y(156,t.tag))}function hD(e,t){switch(nm(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return mi(Ft),Bs(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return qc(t),null;case 13:if(bi(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Y(340));Hl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Xt(Ht),null;case 4:return Bs(),null;case 10:return mi(t.type),null;case 22:case 23:return bi(t),gm(),e!==null&&Xt(ts),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return mi(Ft),null;case 25:return null;default:return null}}function FE(e,t){switch(nm(t),t.tag){case 3:mi(Ft),Bs();break;case 26:case 27:case 5:qc(t);break;case 4:Bs();break;case 13:bi(t);break;case 19:Xt(Ht);break;case 10:mi(t.type);break;case 22:case 23:bi(t),gm(),e!==null&&Xt(ts);break;case 24:mi(Ft)}}function au(e,t){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,s=n.inst;r=a(),s.destroy=r}n=n.next}while(n!==i)}}catch(o){nt(t,t.return,o)}}function ra(e,t,n){try{var r=t.updateQueue,i=r!==null?r.lastEffect:null;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var s=r.inst,o=s.destroy;if(o!==void 0){s.destroy=void 0,i=t;var l=n,u=o;try{u()}catch(c){nt(i,l,c)}}}r=r.next}while(r!==a)}}catch(c){nt(t,t.return,c)}}function HE(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ox(t,n)}catch(r){nt(e,e.return,r)}}}function VE(e,t,n){n.props=rs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){nt(e,t,r)}}function su(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n=="function"?e.refCleanup=n(r):n.current=r}}catch(i){nt(e,t,i)}}function qr(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r=="function")try{r()}catch(i){nt(e,t,i)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){nt(e,t,i)}else n.current=null}function qE(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(i){nt(e,e.return,i)}}function qm(e,t,n){try{var r=e.stateNode;LD(r,e.type,n,t),r[kn]=t}catch(i){nt(e,e.return,i)}}function YE(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&fa(e.type)||e.tag===4}function Ym(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||YE(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&fa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Gm(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Gf));else if(r!==4&&(r===27&&fa(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Gm(e,t,n),e=e.sibling;e!==null;)Gm(e,t,n),e=e.sibling}function If(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&fa(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(If(e,t,n),e=e.sibling;e!==null;)If(e,t,n),e=e.sibling}function GE(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);on(t,r,n),t[dn]=e,t[kn]=n}catch(a){nt(e,e.return,a)}}var xi=!1,kt=!1,$m=!1,$E=typeof WeakSet=="function"?WeakSet:Set,Qt=null;function pD(e,t){if(e=e.containerInfo,b0=Jf,e=ix(e),Yp(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var s=0,o=-1,l=-1,u=0,c=0,f=e,d=null;t:for(;;){for(var h;f!==n||i!==0&&f.nodeType!==3||(o=s+i),f!==a||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(h=f.firstChild)!==null;)d=f,f=h;for(;;){if(f===e)break t;if(d===n&&++u===i&&(o=s),d===a&&++c===r&&(l=s),(h=f.nextSibling)!==null)break;f=d,d=f.parentNode}f=h}n=o===-1||l===-1?null:{start:o,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(y0={focusedElem:e,selectionRange:n},Jf=!1,Qt=t;Qt!==null;)if(t=Qt,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Qt=e;else for(;Qt!==null;){switch(t=Qt,a=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if(e&1024&&a!==null){e=void 0,n=t,i=a.memoizedProps,a=a.memoizedState,r=n.stateNode;try{var g=rs(n.type,i,n.elementType===n.type);e=r.getSnapshotBeforeUpdate(g,a),r.__reactInternalSnapshotBeforeUpdate=e}catch(b){nt(n,n.return,b)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)E0(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":E0(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(Y(163))}if(e=t.sibling,e!==null){e.return=t.return,Qt=e;break}Qt=t.return}}function XE(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:ia(e,n),r&4&&au(5,n);break;case 1:if(ia(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(s){nt(n,n.return,s)}else{var i=rs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){nt(n,n.return,s)}}r&64&&HE(n),r&512&&su(n,n.return);break;case 3:if(ia(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ox(e,t)}catch(s){nt(n,n.return,s)}}break;case 27:t===null&&r&4&&GE(n);case 26:case 5:ia(e,n),t===null&&r&4&&qE(n),r&512&&su(n,n.return);break;case 12:ia(e,n);break;case 13:ia(e,n),r&4&&QE(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=wD.bind(null,n),FD(e,n))));break;case 22:if(r=n.memoizedState!==null||xi,!r){t=t!==null&&t.memoizedState!==null||kt,i=xi;var a=kt;xi=r,(kt=t)&&!a?aa(e,n,(n.subtreeFlags&8772)!==0):ia(e,n),xi=i,kt=a}break;case 30:break;default:ia(e,n)}}function KE(e){var t=e.alternate;t!==null&&(e.alternate=null,KE(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ap(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var gt=null,Nn=!1;function Ei(e,t,n){for(n=n.child;n!==null;)WE(e,t,n),n=n.sibling}function WE(e,t,n){if(jn&&typeof jn.onCommitFiberUnmount=="function")try{jn.onCommitFiberUnmount(Cl,n)}catch{}switch(n.tag){case 26:kt||qr(n,t),Ei(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:kt||qr(n,t);var r=gt,i=Nn;fa(n.type)&&(gt=n.stateNode,Nn=!1),Ei(e,t,n),mu(n.stateNode),gt=r,Nn=i;break;case 5:kt||qr(n,t);case 6:if(r=gt,i=Nn,gt=null,Ei(e,t,n),gt=r,Nn=i,gt!==null)if(Nn)try{(gt.nodeType===9?gt.body:gt.nodeName==="HTML"?gt.ownerDocument.body:gt).removeChild(n.stateNode)}catch(a){nt(n,t,a)}else try{gt.removeChild(n.stateNode)}catch(a){nt(n,t,a)}break;case 18:gt!==null&&(Nn?(e=gt,UT(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),wu(e)):UT(gt,n.stateNode));break;case 4:r=gt,i=Nn,gt=n.stateNode.containerInfo,Nn=!0,Ei(e,t,n),gt=r,Nn=i;break;case 0:case 11:case 14:case 15:kt||ra(2,n,t),kt||ra(4,n,t),Ei(e,t,n);break;case 1:kt||(qr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"&&VE(n,t,r)),Ei(e,t,n);break;case 21:Ei(e,t,n);break;case 22:kt=(r=kt)||n.memoizedState!==null,Ei(e,t,n),kt=r;break;default:Ei(e,t,n)}}function QE(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{wu(e)}catch(n){nt(t,t.return,n)}}function mD(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new $E),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new $E),t;default:throw Error(Y(435,e.tag))}}function Xm(e,t){var n=mD(e);t.forEach(function(r){var i=_D.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}function qn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],a=e,s=t,o=s;e:for(;o!==null;){switch(o.tag){case 27:if(fa(o.type)){gt=o.stateNode,Nn=!1;break e}break;case 5:gt=o.stateNode,Nn=!1;break e;case 3:case 4:gt=o.stateNode.containerInfo,Nn=!0;break e}o=o.return}if(gt===null)throw Error(Y(160));WE(a,s,i),gt=null,Nn=!1,a=i.alternate,a!==null&&(a.return=null),i.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)ZE(t,e),t=t.sibling}var kr=null;function ZE(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:qn(t,e),Yn(e),r&4&&(ra(3,e,e.return),au(3,e),ra(5,e,e.return));break;case 1:qn(t,e),Yn(e),r&512&&(kt||n===null||qr(n,n.return)),r&64&&xi&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var i=kr;if(qn(t,e),Yn(e),r&512&&(kt||n===null||qr(n,n.return)),r&4){var a=n!==null?n.memoizedState:null;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){e:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(r){case"title":a=i.getElementsByTagName("title")[0],(!a||a[Rl]||a[dn]||a.namespaceURI==="http://www.w3.org/2000/svg"||a.hasAttribute("itemprop"))&&(a=i.createElement(r),i.head.insertBefore(a,i.querySelector("head > title"))),on(a,r,n),a[dn]=e,Kt(a),r=a;break e;case"link":var s=GT("link","href",i).get(r+(n.href||""));if(s){for(var o=0;o<s.length;o++)if(a=s[o],a.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&a.getAttribute("rel")===(n.rel==null?null:n.rel)&&a.getAttribute("title")===(n.title==null?null:n.title)&&a.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(o,1);break t}}a=i.createElement(r),on(a,r,n),i.head.appendChild(a);break;case"meta":if(s=GT("meta","content",i).get(r+(n.content||""))){for(o=0;o<s.length;o++)if(a=s[o],a.getAttribute("content")===(n.content==null?null:""+n.content)&&a.getAttribute("name")===(n.name==null?null:n.name)&&a.getAttribute("property")===(n.property==null?null:n.property)&&a.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&a.getAttribute("charset")===(n.charSet==null?null:n.charSet)){s.splice(o,1);break t}}a=i.createElement(r),on(a,r,n),i.head.appendChild(a);break;default:throw Error(Y(468,r))}a[dn]=e,Kt(a),r=a}e.stateNode=r}else $T(i,e.type,e.stateNode);else e.stateNode=YT(i,r,e.memoizedProps);else a!==r?(a===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):a.count--,r===null?$T(i,e.type,e.stateNode):YT(i,r,e.memoizedProps)):r===null&&e.stateNode!==null&&qm(e,e.memoizedProps,n.memoizedProps)}break;case 27:qn(t,e),Yn(e),r&512&&(kt||n===null||qr(n,n.return)),n!==null&&r&4&&qm(e,e.memoizedProps,n.memoizedProps);break;case 5:if(qn(t,e),Yn(e),r&512&&(kt||n===null||qr(n,n.return)),e.flags&32){i=e.stateNode;try{Ys(i,"")}catch(h){nt(e,e.return,h)}}r&4&&e.stateNode!=null&&(i=e.memoizedProps,qm(e,i,n!==null?n.memoizedProps:i)),r&1024&&($m=!0);break;case 6:if(qn(t,e),Yn(e),r&4){if(e.stateNode===null)throw Error(Y(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(h){nt(e,e.return,h)}}break;case 3:if(Wf=null,i=kr,kr=Xf(t.containerInfo),qn(t,e),kr=i,Yn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{wu(t.containerInfo)}catch(h){nt(e,e.return,h)}$m&&($m=!1,JE(e));break;case 4:r=kr,kr=Xf(e.stateNode.containerInfo),qn(t,e),Yn(e),kr=r;break;case 12:qn(t,e),Yn(e);break;case 13:qn(t,e),Yn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(e0=Fr()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Xm(e,r)));break;case 22:i=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=xi,c=kt;if(xi=u||i,kt=c||l,qn(t,e),kt=c,xi=u,Yn(e),r&8192)e:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||l||xi||kt||is(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(a=l.stateNode,i)s=a.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none";else{o=l.stateNode;var f=l.memoizedProps.style,d=f!=null&&f.hasOwnProperty("display")?f.display:null;o.style.display=d==null||typeof d=="boolean"?"":(""+d).trim()}}catch(h){nt(l,l.return,h)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=i?"":l.memoizedProps}catch(h){nt(l,l.return,h)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,Xm(e,n))));break;case 19:qn(t,e),Yn(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Xm(e,r)));break;case 30:break;case 21:break;default:qn(t,e),Yn(e)}}function Yn(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(YE(r)){n=r;break}r=r.return}if(n==null)throw Error(Y(160));switch(n.tag){case 27:var i=n.stateNode,a=Ym(e);If(e,a,i);break;case 5:var s=n.stateNode;n.flags&32&&(Ys(s,""),n.flags&=-33);var o=Ym(e);If(e,o,s);break;case 3:case 4:var l=n.stateNode.containerInfo,u=Ym(e);Gm(e,u,l);break;default:throw Error(Y(161))}}catch(c){nt(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function JE(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;JE(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ia(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)XE(e,t.alternate,t),t=t.sibling}function is(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ra(4,t,t.return),is(t);break;case 1:qr(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&VE(t,t.return,n),is(t);break;case 27:mu(t.stateNode);case 26:case 5:qr(t,t.return),is(t);break;case 22:t.memoizedState===null&&is(t);break;case 30:is(t);break;default:is(t)}e=e.sibling}}function aa(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,s=a.flags;switch(a.tag){case 0:case 11:case 15:aa(i,a,n),au(4,a);break;case 1:if(aa(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(u){nt(r,r.return,u)}if(r=a,i=r.updateQueue,i!==null){var o=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)kx(l[i],o)}catch(u){nt(r,r.return,u)}}n&&s&64&&HE(a),su(a,a.return);break;case 27:GE(a);case 26:case 5:aa(i,a,n),n&&r===null&&s&4&&qE(a),su(a,a.return);break;case 12:aa(i,a,n);break;case 13:aa(i,a,n),n&&s&4&&QE(i,a);break;case 22:a.memoizedState===null&&aa(i,a,n),su(a,a.return);break;case 30:break;default:aa(i,a,n)}t=t.sibling}}function Km(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Yl(n))}function Wm(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Yl(e))}function Yr(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)eT(e,t,n,r),t=t.sibling}function eT(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Yr(e,t,n,r),i&2048&&au(9,t);break;case 1:Yr(e,t,n,r);break;case 3:Yr(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Yl(e)));break;case 12:if(i&2048){Yr(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,s=a.id,o=a.onPostCommit;typeof o=="function"&&o(s,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(l){nt(t,t.return,l)}}else Yr(e,t,n,r);break;case 13:Yr(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,s=t.alternate,t.memoizedState!==null?a._visibility&2?Yr(e,t,n,r):ou(e,t):a._visibility&2?Yr(e,t,n,r):(a._visibility|=2,co(e,t,n,r,(t.subtreeFlags&10256)!==0)),i&2048&&Km(s,t);break;case 24:Yr(e,t,n,r),i&2048&&Wm(t.alternate,t);break;default:Yr(e,t,n,r)}}function co(e,t,n,r,i){for(i=i&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var a=e,s=t,o=n,l=r,u=s.flags;switch(s.tag){case 0:case 11:case 15:co(a,s,o,l,i),au(8,s);break;case 23:break;case 22:var c=s.stateNode;s.memoizedState!==null?c._visibility&2?co(a,s,o,l,i):ou(a,s):(c._visibility|=2,co(a,s,o,l,i)),i&&u&2048&&Km(s.alternate,s);break;case 24:co(a,s,o,l,i),i&&u&2048&&Wm(s.alternate,s);break;default:co(a,s,o,l,i)}t=t.sibling}}function ou(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:ou(n,r),i&2048&&Km(r.alternate,r);break;case 24:ou(n,r),i&2048&&Wm(r.alternate,r);break;default:ou(n,r)}t=t.sibling}}var lu=8192;function fo(e){if(e.subtreeFlags&lu)for(e=e.child;e!==null;)tT(e),e=e.sibling}function tT(e){switch(e.tag){case 26:fo(e),e.flags&lu&&e.memoizedState!==null&&e5(kr,e.memoizedState,e.memoizedProps);break;case 5:fo(e);break;case 3:case 4:var t=kr;kr=Xf(e.stateNode.containerInfo),fo(e),kr=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=lu,lu=16777216,fo(e),lu=t):fo(e));break;default:fo(e)}}function nT(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function uu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Qt=r,iT(r,e)}nT(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)rT(e),e=e.sibling}function rT(e){switch(e.tag){case 0:case 11:case 15:uu(e),e.flags&2048&&ra(9,e,e.return);break;case 3:uu(e);break;case 12:uu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Pf(e)):uu(e);break;default:uu(e)}}function Pf(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Qt=r,iT(r,e)}nT(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ra(8,t,t.return),Pf(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Pf(t));break;default:Pf(t)}e=e.sibling}}function iT(e,t){for(;Qt!==null;){var n=Qt;switch(n.tag){case 0:case 11:case 15:ra(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Yl(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Qt=r;else e:for(n=e;Qt!==null;){r=Qt;var i=r.sibling,a=r.return;if(KE(r),r===n){Qt=null;break e}if(i!==null){i.return=a,Qt=i;break e}Qt=a}}}var gD={getCacheForType:function(e){var t=hn(Ft),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},bD=typeof WeakMap=="function"?WeakMap:Map,Ke=0,st=null,Ne=null,Ue=0,We=0,Gn=null,sa=!1,ho=!1,Qm=!1,Ti=0,_t=0,oa=0,as=0,Zm=0,mr=0,po=0,cu=null,Dn=null,Jm=!1,e0=0,Bf=1/0,Uf=null,la=null,sn=0,ua=null,mo=null,go=0,t0=0,n0=null,aT=null,fu=0,r0=null;function $n(){if(Ke&2&&Ue!==0)return Ue&-Ue;if(ge.T!==null){var e=no;return e!==0?e:c0()}return Ev()}function sT(){mr===0&&(mr=!(Ue&536870912)||Ge?bv():536870912);var e=pr.current;return e!==null&&(e.flags|=32),mr}function Xn(e,t,n){(e===st&&(We===2||We===9)||e.cancelPendingCommit!==null)&&(bo(e,0),ca(e,Ue,mr,!1)),Ol(e,n),(!(Ke&2)||e!==st)&&(e===st&&(!(Ke&2)&&(as|=n),_t===4&&ca(e,Ue,mr,!1)),Gr(e))}function oT(e,t,n){if(Ke&6)throw Error(Y(327));var r=!n&&(t&124)===0&&(t&e.expiredLanes)===0||kl(e,t),i=r?xD(e,t):s0(e,t,!0),a=r;do{if(i===0){ho&&!r&&ca(e,t,0,!1);break}else{if(n=e.current.alternate,a&&!yD(n)){i=s0(e,t,!1),a=!1;continue}if(i===2){if(a=t,e.errorRecoveryDisabledLanes&a)var s=0;else s=e.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){t=s;e:{var o=e;i=cu;var l=o.current.memoizedState.isDehydrated;if(l&&(bo(o,s).flags|=256),s=s0(o,s,!1),s!==2){if(Qm&&!l){o.errorRecoveryDisabledLanes|=a,as|=a,i=4;break e}a=Dn,Dn=i,a!==null&&(Dn===null?Dn=a:Dn.push.apply(Dn,a))}i=s}if(a=!1,i!==2)continue}}if(i===1){bo(e,0),ca(e,t,0,!0);break}e:{switch(r=e,a=i,a){case 0:case 1:throw Error(Y(345));case 4:if((t&4194048)!==t)break;case 6:ca(r,t,mr,!sa);break e;case 2:Dn=null;break;case 3:case 5:break;default:throw Error(Y(329))}if((t&62914560)===t&&(i=e0+300-Fr(),10<i)){if(ca(r,t,mr,!sa),Xc(r,0,!0)!==0)break e;r.timeoutHandle=PT(lT.bind(null,r,n,Dn,Uf,Jm,t,mr,as,po,sa,a,2,-0,0),i);break e}lT(r,n,Dn,Uf,Jm,t,mr,as,po,sa,a,0,-0,0)}}break}while(!0);Gr(e)}function lT(e,t,n,r,i,a,s,o,l,u,c,f,d,h){if(e.timeoutHandle=-1,f=t.subtreeFlags,(f&8192||(f&16785408)===16785408)&&(yu={stylesheets:null,count:0,unsuspend:JD},tT(t),f=t5(),f!==null)){e.cancelPendingCommit=f(mT.bind(null,e,t,a,n,r,i,s,o,l,c,1,d,h)),ca(e,a,s,!u);return}mT(e,t,a,n,r,i,s,o,l)}function yD(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Hn(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ca(e,t,n,r){t&=~Zm,t&=~as,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Fn(i),s=1<<a;r[a]=-1,i&=~s}n!==0&&vv(e,n,t)}function zf(){return Ke&6?!0:(du(0),!1)}function i0(){if(Ne!==null){if(We===0)var e=Ne.return;else e=Ne,pi=Ja=null,Em(e),lo=null,nu=0,e=Ne;for(;e!==null;)FE(e.alternate,e),e=e.return;Ne=null}}function bo(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,PD(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),i0(),st=e,Ne=n=fi(e.current,null),Ue=t,We=0,Gn=null,sa=!1,ho=kl(e,t),Qm=!1,po=mr=Zm=as=oa=_t=0,Dn=cu=null,Jm=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Fn(r),a=1<<i;t|=e[i],r&=~a}return Ti=t,of(),n}function uT(e,t){Ce=null,ge.H=Af,t===$l||t===gf?(t=Ax(),We=3):t===wx?(t=Ax(),We=4):We=t===CE?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Gn=t,Ne===null&&(_t=1,Nf(e,cr(t,e.current)))}function cT(){var e=ge.H;return ge.H=Af,e===null?Af:e}function fT(){var e=ge.A;return ge.A=gD,e}function a0(){_t=4,sa||(Ue&4194048)!==Ue&&pr.current!==null||(ho=!0),!(oa&134217727)&&!(as&134217727)||st===null||ca(st,Ue,mr,!1)}function s0(e,t,n){var r=Ke;Ke|=2;var i=cT(),a=fT();(st!==e||Ue!==t)&&(Uf=null,bo(e,t)),t=!1;var s=_t;e:do try{if(We!==0&&Ne!==null){var o=Ne,l=Gn;switch(We){case 8:i0(),s=6;break e;case 3:case 2:case 9:case 6:pr.current===null&&(t=!0);var u=We;if(We=0,Gn=null,yo(e,o,l,u),n&&ho){s=0;break e}break;default:u=We,We=0,Gn=null,yo(e,o,l,u)}}vD(),s=_t;break}catch(c){uT(e,c)}while(!0);return t&&e.shellSuspendCounter++,pi=Ja=null,Ke=r,ge.H=i,ge.A=a,Ne===null&&(st=null,Ue=0,of()),s}function vD(){for(;Ne!==null;)dT(Ne)}function xD(e,t){var n=Ke;Ke|=2;var r=cT(),i=fT();st!==e||Ue!==t?(Uf=null,Bf=Fr()+500,bo(e,t)):ho=kl(e,t);e:do try{if(We!==0&&Ne!==null){t=Ne;var a=Gn;t:switch(We){case 1:We=0,Gn=null,yo(e,t,a,1);break;case 2:case 9:if(_x(a)){We=0,Gn=null,hT(t);break}t=function(){We!==2&&We!==9||st!==e||(We=7),Gr(e)},a.then(t,t);break e;case 3:We=7;break e;case 4:We=5;break e;case 7:_x(a)?(We=0,Gn=null,hT(t)):(We=0,Gn=null,yo(e,t,a,7));break;case 5:var s=null;switch(Ne.tag){case 26:s=Ne.memoizedState;case 5:case 27:var o=Ne;if(!s||XT(s)){We=0,Gn=null;var l=o.sibling;if(l!==null)Ne=l;else{var u=o.return;u!==null?(Ne=u,jf(u)):Ne=null}break t}}We=0,Gn=null,yo(e,t,a,5);break;case 6:We=0,Gn=null,yo(e,t,a,6);break;case 8:i0(),_t=6;break e;default:throw Error(Y(462))}}ED();break}catch(c){uT(e,c)}while(!0);return pi=Ja=null,ge.H=r,ge.A=i,Ke=n,Ne!==null?0:(st=null,Ue=0,of(),_t)}function ED(){for(;Ne!==null&&!V4();)dT(Ne)}function dT(e){var t=zE(e.alternate,e,Ti);e.memoizedProps=e.pendingProps,t===null?jf(e):Ne=t}function hT(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=ME(n,t,t.pendingProps,t.type,void 0,Ue);break;case 11:t=ME(n,t,t.pendingProps,t.type.render,t.ref,Ue);break;case 5:Em(t);default:FE(n,t),t=Ne=px(t,Ti),t=zE(n,t,Ti)}e.memoizedProps=e.pendingProps,t===null?jf(e):Ne=t}function yo(e,t,n,r){pi=Ja=null,Em(t),lo=null,nu=0;var i=t.return;try{if(cD(e,i,t,n,Ue)){_t=1,Nf(e,cr(n,e.current)),Ne=null;return}}catch(a){if(i!==null)throw Ne=i,a;_t=1,Nf(e,cr(n,e.current)),Ne=null;return}t.flags&32768?(Ge||r===1?e=!0:ho||Ue&536870912?e=!1:(sa=e=!0,(r===2||r===9||r===3||r===6)&&(r=pr.current,r!==null&&r.tag===13&&(r.flags|=16384))),pT(t,e)):jf(t)}function jf(e){var t=e;do{if(t.flags&32768){pT(t,sa);return}e=t.return;var n=dD(t.alternate,t,Ti);if(n!==null){Ne=n;return}if(t=t.sibling,t!==null){Ne=t;return}Ne=t=e}while(t!==null);_t===0&&(_t=5)}function pT(e,t){do{var n=hD(e.alternate,e);if(n!==null){n.flags&=32767,Ne=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Ne=e;return}Ne=e=n}while(e!==null);_t=6,Ne=null}function mT(e,t,n,r,i,a,s,o,l){e.cancelPendingCommit=null;do Ff();while(sn!==0);if(Ke&6)throw Error(Y(327));if(t!==null){if(t===e.current)throw Error(Y(177));if(a=t.lanes|t.childLanes,a|=Wp,J4(e,n,a,s,o,l),e===st&&(Ne=st=null,Ue=0),mo=t,ua=e,go=n,t0=a,n0=i,aT=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,SD(Yc,function(){return xT(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,t.subtreeFlags&13878||r){r=ge.T,ge.T=null,i=Ye.p,Ye.p=2,s=Ke,Ke|=4;try{pD(e,t,n)}finally{Ke=s,Ye.p=i,ge.T=r}}sn=1,gT(),bT(),yT()}}function gT(){if(sn===1){sn=0;var e=ua,t=mo,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=ge.T,ge.T=null;var r=Ye.p;Ye.p=2;var i=Ke;Ke|=4;try{ZE(t,e);var a=y0,s=ix(e.containerInfo),o=a.focusedElem,l=a.selectionRange;if(s!==o&&o&&o.ownerDocument&&rx(o.ownerDocument.documentElement,o)){if(l!==null&&Yp(o)){var u=l.start,c=l.end;if(c===void 0&&(c=u),"selectionStart"in o)o.selectionStart=u,o.selectionEnd=Math.min(c,o.value.length);else{var f=o.ownerDocument||document,d=f&&f.defaultView||window;if(d.getSelection){var h=d.getSelection(),g=o.textContent.length,b=Math.min(l.start,g),T=l.end===void 0?b:Math.min(l.end,g);!h.extend&&b>T&&(s=T,T=b,b=s);var m=nx(o,b),y=nx(o,T);if(m&&y&&(h.rangeCount!==1||h.anchorNode!==m.node||h.anchorOffset!==m.offset||h.focusNode!==y.node||h.focusOffset!==y.offset)){var v=f.createRange();v.setStart(m.node,m.offset),h.removeAllRanges(),b>T?(h.addRange(v),h.extend(y.node,y.offset)):(v.setEnd(y.node,y.offset),h.addRange(v))}}}}for(f=[],h=o;h=h.parentNode;)h.nodeType===1&&f.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<f.length;o++){var w=f[o];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}Jf=!!b0,y0=b0=null}finally{Ke=i,Ye.p=r,ge.T=n}}e.current=t,sn=2}}function bT(){if(sn===2){sn=0;var e=ua,t=mo,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=ge.T,ge.T=null;var r=Ye.p;Ye.p=2;var i=Ke;Ke|=4;try{XE(e,t.alternate,t)}finally{Ke=i,Ye.p=r,ge.T=n}}sn=3}}function yT(){if(sn===4||sn===3){sn=0,q4();var e=ua,t=mo,n=go,r=aT;t.subtreeFlags&10256||t.flags&10256?sn=5:(sn=0,mo=ua=null,vT(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(la=null),_p(n),t=t.stateNode,jn&&typeof jn.onCommitFiberRoot=="function")try{jn.onCommitFiberRoot(Cl,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=ge.T,i=Ye.p,Ye.p=2,ge.T=null;try{for(var a=e.onRecoverableError,s=0;s<r.length;s++){var o=r[s];a(o.value,{componentStack:o.stack})}}finally{ge.T=t,Ye.p=i}}go&3&&Ff(),Gr(e),i=e.pendingLanes,n&4194090&&i&42?e===r0?fu++:(fu=0,r0=e):fu=0,du(0)}}function vT(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Yl(t)))}function Ff(e){return gT(),bT(),yT(),xT()}function xT(){if(sn!==5)return!1;var e=ua,t=t0;t0=0;var n=_p(go),r=ge.T,i=Ye.p;try{Ye.p=32>n?32:n,ge.T=null,n=n0,n0=null;var a=ua,s=go;if(sn=0,mo=ua=null,go=0,Ke&6)throw Error(Y(331));var o=Ke;if(Ke|=4,rT(a.current),eT(a,a.current,s,n),Ke=o,du(0,!1),jn&&typeof jn.onPostCommitFiberRoot=="function")try{jn.onPostCommitFiberRoot(Cl,a)}catch{}return!0}finally{Ye.p=i,ge.T=r,vT(e,t)}}function ET(e,t,n){t=cr(n,t),t=Im(e.stateNode,t,2),e=Ji(e,t,2),e!==null&&(Ol(e,2),Gr(e))}function nt(e,t,n){if(e.tag===3)ET(e,e,n);else for(;t!==null;){if(t.tag===3){ET(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(la===null||!la.has(r))){e=cr(n,e),n=SE(2),r=Ji(t,n,2),r!==null&&(AE(n,r,t,e),Ol(r,2),Gr(r));break}}t=t.return}}function o0(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new bD;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Qm=!0,i.add(n),e=TD.bind(null,e,t,n),t.then(e,e))}function TD(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,st===e&&(Ue&n)===n&&(_t===4||_t===3&&(Ue&62914560)===Ue&&300>Fr()-e0?!(Ke&2)&&bo(e,0):Zm|=n,po===Ue&&(po=0)),Gr(e)}function TT(e,t){t===0&&(t=yv()),e=Zs(e,t),e!==null&&(Ol(e,t),Gr(e))}function wD(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),TT(e,n)}function _D(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(Y(314))}r!==null&&r.delete(t),TT(e,n)}function SD(e,t){return xp(e,t)}var Hf=null,vo=null,l0=!1,Vf=!1,u0=!1,ss=0;function Gr(e){e!==vo&&e.next===null&&(vo===null?Hf=vo=e:vo=vo.next=e),Vf=!0,l0||(l0=!0,CD())}function du(e,t){if(!u0&&Vf){u0=!0;do for(var n=!1,r=Hf;r!==null;){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var s=r.suspendedLanes,o=r.pingedLanes;a=(1<<31-Fn(42|e)+1)-1,a&=i&~(s&~o),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,AT(r,a))}else a=Ue,a=Xc(r,r===st?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||kl(r,a)||(n=!0,AT(r,a));r=r.next}while(n);u0=!1}}function AD(){wT()}function wT(){Vf=l0=!1;var e=0;ss!==0&&(ID()&&(e=ss),ss=0);for(var t=Fr(),n=null,r=Hf;r!==null;){var i=r.next,a=_T(r,t);a===0?(r.next=null,n===null?Hf=i:n.next=i,i===null&&(vo=n)):(n=r,(e!==0||a&3)&&(Vf=!0)),r=i}du(e)}function _T(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var s=31-Fn(a),o=1<<s,l=i[s];l===-1?(!(o&n)||o&r)&&(i[s]=Z4(o,t)):l<=t&&(e.expiredLanes|=o),a&=~o}if(t=st,n=Ue,n=Xc(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(We===2||We===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Ep(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||kl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Ep(r),_p(n)){case 2:case 8:n=mv;break;case 32:n=Yc;break;case 268435456:n=gv;break;default:n=Yc}return r=ST.bind(null,e),n=xp(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Ep(r),e.callbackPriority=2,e.callbackNode=null,2}function ST(e,t){if(sn!==0&&sn!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Ff()&&e.callbackNode!==n)return null;var r=Ue;return r=Xc(e,e===st?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(oT(e,r,t),_T(e,Fr()),e.callbackNode!=null&&e.callbackNode===n?ST.bind(null,e):null)}function AT(e,t){if(Ff())return null;oT(e,t,!0)}function CD(){BD(function(){Ke&6?xp(pv,AD):wT()})}function c0(){return ss===0&&(ss=bv()),ss}function CT(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Jc(""+e)}function kT(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function kD(e,t,n,r,i){if(t==="submit"&&n&&n.stateNode===i){var a=CT((i[kn]||null).action),s=r.submitter;s&&(t=(t=s[kn]||null)?CT(t.formAction):s.getAttribute("formAction"),t!==null&&(a=t,s=null));var o=new rf("action","action",null,r,i);e.push({event:o,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(ss!==0){var l=s?kT(i,s):new FormData(i);Rm(n,{pending:!0,data:l,method:i.method,action:a},null,l)}}else typeof a=="function"&&(o.preventDefault(),l=s?kT(i,s):new FormData(i),Rm(n,{pending:!0,data:l,method:i.method,action:a},a,l))},currentTarget:i}]})}}for(var f0=0;f0<Kp.length;f0++){var d0=Kp[f0],OD=d0.toLowerCase(),RD=d0[0].toUpperCase()+d0.slice(1);Cr(OD,"on"+RD)}Cr(ox,"onAnimationEnd"),Cr(lx,"onAnimationIteration"),Cr(ux,"onAnimationStart"),Cr("dblclick","onDoubleClick"),Cr("focusin","onFocus"),Cr("focusout","onBlur"),Cr($N,"onTransitionRun"),Cr(XN,"onTransitionStart"),Cr(KN,"onTransitionCancel"),Cr(cx,"onTransitionEnd"),Hs("onMouseEnter",["mouseout","mouseover"]),Hs("onMouseLeave",["mouseout","mouseover"]),Hs("onPointerEnter",["pointerout","pointerover"]),Hs("onPointerLeave",["pointerout","pointerover"]),qa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),qa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),qa("onBeforeInput",["compositionend","keypress","textInput","paste"]),qa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),qa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),qa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hu="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(" "),ND=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(hu));function OT(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var s=r.length-1;0<=s;s--){var o=r[s],l=o.instance,u=o.currentTarget;if(o=o.listener,l!==a&&i.isPropagationStopped())break e;a=o,i.currentTarget=u;try{a(i)}catch(c){Rf(c)}i.currentTarget=null,a=l}else for(s=0;s<r.length;s++){if(o=r[s],l=o.instance,u=o.currentTarget,o=o.listener,l!==a&&i.isPropagationStopped())break e;a=o,i.currentTarget=u;try{a(i)}catch(c){Rf(c)}i.currentTarget=null,a=l}}}}function De(e,t){var n=t[Sp];n===void 0&&(n=t[Sp]=new Set);var r=e+"__bubble";n.has(r)||(RT(t,e,2,!1),n.add(r))}function h0(e,t,n){var r=0;t&&(r|=4),RT(n,e,r,t)}var qf="_reactListening"+Math.random().toString(36).slice(2);function p0(e){if(!e[qf]){e[qf]=!0,wv.forEach(function(n){n!=="selectionchange"&&(ND.has(n)||h0(n,!1,e),h0(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[qf]||(t[qf]=!0,h0("selectionchange",!1,t))}}function RT(e,t,n,r){switch(e2(t)){case 2:var i=i5;break;case 8:i=a5;break;default:i=k0}n=i.bind(null,t,n,e),i=void 0,!Pp||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function m0(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var o=r.stateNode.containerInfo;if(o===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;o!==null;){if(s=zs(o),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue e}o=o.parentNode}}r=r.return}Bv(function(){var u=a,c=Lp(n),f=[];e:{var d=fx.get(e);if(d!==void 0){var h=rf,g=e;switch(e){case"keypress":if(tf(n)===0)break e;case"keydown":case"keyup":h=SN;break;case"focusin":g="focus",h=jp;break;case"focusout":g="blur",h=jp;break;case"beforeblur":case"afterblur":h=jp;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=jv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=hN;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=kN;break;case ox:case lx:case ux:h=gN;break;case cx:h=RN;break;case"scroll":case"scrollend":h=fN;break;case"wheel":h=DN;break;case"copy":case"cut":case"paste":h=yN;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=Hv;break;case"toggle":case"beforetoggle":h=LN}var b=(t&4)!==0,T=!b&&(e==="scroll"||e==="scrollend"),m=b?d!==null?d+"Capture":null:d;b=[];for(var y=u,v;y!==null;){var w=y;if(v=w.stateNode,w=w.tag,w!==5&&w!==26&&w!==27||v===null||m===null||(w=Dl(y,m),w!=null&&b.push(pu(y,w,v))),T)break;y=y.return}0<b.length&&(d=new h(d,g,null,n,c),f.push({event:d,listeners:b}))}}if(!(t&7)){e:{if(d=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",d&&n!==Mp&&(g=n.relatedTarget||n.fromElement)&&(zs(g)||g[Us]))break e;if((h||d)&&(d=c.window===c?c:(d=c.ownerDocument)?d.defaultView||d.parentWindow:window,h?(g=n.relatedTarget||n.toElement,h=u,g=g?zs(g):null,g!==null&&(T=Tl(g),b=g.tag,g!==T||b!==5&&b!==27&&b!==6)&&(g=null)):(h=null,g=u),h!==g)){if(b=jv,w="onMouseLeave",m="onMouseEnter",y="mouse",(e==="pointerout"||e==="pointerover")&&(b=Hv,w="onPointerLeave",m="onPointerEnter",y="pointer"),T=h==null?d:Nl(h),v=g==null?d:Nl(g),d=new b(w,y+"leave",h,n,c),d.target=T,d.relatedTarget=v,w=null,zs(c)===u&&(b=new b(m,y+"enter",g,n,c),b.target=v,b.relatedTarget=T,w=b),T=w,h&&g)t:{for(b=h,m=g,y=0,v=b;v;v=xo(v))y++;for(v=0,w=m;w;w=xo(w))v++;for(;0<y-v;)b=xo(b),y--;for(;0<v-y;)m=xo(m),v--;for(;y--;){if(b===m||m!==null&&b===m.alternate)break t;b=xo(b),m=xo(m)}b=null}else b=null;h!==null&&NT(f,d,h,b,!1),g!==null&&T!==null&&NT(f,T,g,b,!0)}}e:{if(d=u?Nl(u):window,h=d.nodeName&&d.nodeName.toLowerCase(),h==="select"||h==="input"&&d.type==="file")var _=Wv;else if(Xv(d))if(Qv)_=qN;else{_=HN;var A=FN}else h=d.nodeName,!h||h.toLowerCase()!=="input"||d.type!=="checkbox"&&d.type!=="radio"?u&&Dp(u.elementType)&&(_=Wv):_=VN;if(_&&(_=_(e,u))){Kv(f,_,n,c);break e}A&&A(e,d,u),e==="focusout"&&u&&d.type==="number"&&u.memoizedProps.value!=null&&Np(d,"number",d.value)}switch(A=u?Nl(u):window,e){case"focusin":(Xv(A)||A.contentEditable==="true")&&(Ks=A,Gp=u,jl=null);break;case"focusout":jl=Gp=Ks=null;break;case"mousedown":$p=!0;break;case"contextmenu":case"mouseup":case"dragend":$p=!1,ax(f,n,c);break;case"selectionchange":if(GN)break;case"keydown":case"keyup":ax(f,n,c)}var N;if(Hp)e:{switch(e){case"compositionstart":var L="onCompositionStart";break e;case"compositionend":L="onCompositionEnd";break e;case"compositionupdate":L="onCompositionUpdate";break e}L=void 0}else Xs?Gv(e,n)&&(L="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(L="onCompositionStart");L&&(Vv&&n.locale!=="ko"&&(Xs||L!=="onCompositionStart"?L==="onCompositionEnd"&&Xs&&(N=Uv()):(Ki=c,Bp="value"in Ki?Ki.value:Ki.textContent,Xs=!0)),A=Yf(u,L),0<A.length&&(L=new Fv(L,e,null,n,c),f.push({event:L,listeners:A}),N?L.data=N:(N=$v(n),N!==null&&(L.data=N)))),(N=PN?BN(e,n):UN(e,n))&&(L=Yf(u,"onBeforeInput"),0<L.length&&(A=new Fv("onBeforeInput","beforeinput",null,n,c),f.push({event:A,listeners:L}),A.data=N)),kD(f,e,u,n,c)}OT(f,t)})}function pu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yf(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=Dl(e,n),i!=null&&r.unshift(pu(e,i,a)),i=Dl(e,t),i!=null&&r.push(pu(e,i,a))),e.tag===3)return r;e=e.return}return[]}function xo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function NT(e,t,n,r,i){for(var a=t._reactName,s=[];n!==null&&n!==r;){var o=n,l=o.alternate,u=o.stateNode;if(o=o.tag,l!==null&&l===r)break;o!==5&&o!==26&&o!==27||u===null||(l=u,i?(u=Dl(n,a),u!=null&&s.unshift(pu(n,u,l))):i||(u=Dl(n,a),u!=null&&s.push(pu(n,u,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var DD=/\r\n?/g,MD=/\u0000|\uFFFD/g;function DT(e){return(typeof e=="string"?e:""+e).replace(DD,`
|
|
49
|
-
`).replace(MD,"")}function MT(e,t){return t=DT(t),DT(e)===t}function Gf(){}function Je(e,t,n,r,i,a){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Ys(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Ys(e,""+r);break;case"className":Wc(e,"class",r);break;case"tabIndex":Wc(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Wc(e,n,r);break;case"style":Iv(e,r,a);break;case"data":if(t!=="object"){Wc(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=Jc(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof a=="function"&&(n==="formAction"?(t!=="input"&&Je(e,t,"name",i.name,i,null),Je(e,t,"formEncType",i.formEncType,i,null),Je(e,t,"formMethod",i.formMethod,i,null),Je(e,t,"formTarget",i.formTarget,i,null)):(Je(e,t,"encType",i.encType,i,null),Je(e,t,"method",i.method,i,null),Je(e,t,"target",i.target,i,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=Jc(""+r),e.setAttribute(n,r);break;case"onClick":r!=null&&(e.onclick=Gf);break;case"onScroll":r!=null&&De("scroll",e);break;case"onScrollEnd":r!=null&&De("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(Y(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(Y(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}n=Jc(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":r===!0?e.setAttribute(n,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":De("beforetoggle",e),De("toggle",e),Kc(e,"popover",r);break;case"xlinkActuate":ui(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":ui(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":ui(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":ui(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":ui(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":ui(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":ui(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":ui(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":ui(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Kc(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=uN.get(n)||n,Kc(e,n,r))}}function g0(e,t,n,r,i,a){switch(n){case"style":Iv(e,r,a);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(Y(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(Y(60));e.innerHTML=n}}break;case"children":typeof r=="string"?Ys(e,r):(typeof r=="number"||typeof r=="bigint")&&Ys(e,""+r);break;case"onScroll":r!=null&&De("scroll",e);break;case"onScrollEnd":r!=null&&De("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Gf);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!_v.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),a=e[kn]||null,a=a!=null?a[n]:null,typeof a=="function"&&e.removeEventListener(t,a,i),typeof r=="function")){typeof a!="function"&&a!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break e}n in e?e[n]=r:r===!0?e.setAttribute(n,""):Kc(e,n,r)}}}function on(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":De("error",e),De("load",e);var r=!1,i=!1,a;for(a in n)if(n.hasOwnProperty(a)){var s=n[a];if(s!=null)switch(a){case"src":r=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(Y(137,t));default:Je(e,t,a,s,n,null)}}i&&Je(e,t,"srcSet",n.srcSet,n,null),r&&Je(e,t,"src",n.src,n,null);return;case"input":De("invalid",e);var o=a=s=i=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var c=n[r];if(c!=null)switch(r){case"name":i=c;break;case"type":s=c;break;case"checked":l=c;break;case"defaultChecked":u=c;break;case"value":a=c;break;case"defaultValue":o=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(Y(137,t));break;default:Je(e,t,r,c,n,null)}}Nv(e,a,o,l,u,s,i,!1),Qc(e);return;case"select":De("invalid",e),r=s=a=null;for(i in n)if(n.hasOwnProperty(i)&&(o=n[i],o!=null))switch(i){case"value":a=o;break;case"defaultValue":s=o;break;case"multiple":r=o;default:Je(e,t,i,o,n,null)}t=a,n=s,e.multiple=!!r,t!=null?qs(e,!!r,t,!1):n!=null&&qs(e,!!r,n,!0);return;case"textarea":De("invalid",e),a=i=r=null;for(s in n)if(n.hasOwnProperty(s)&&(o=n[s],o!=null))switch(s){case"value":r=o;break;case"defaultValue":i=o;break;case"children":a=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(Y(91));break;default:Je(e,t,s,o,n,null)}Mv(e,r,i,a),Qc(e);return;case"option":for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:Je(e,t,l,r,n,null)}return;case"dialog":De("beforetoggle",e),De("toggle",e),De("cancel",e),De("close",e);break;case"iframe":case"object":De("load",e);break;case"video":case"audio":for(r=0;r<hu.length;r++)De(hu[r],e);break;case"image":De("error",e),De("load",e);break;case"details":De("toggle",e);break;case"embed":case"source":case"link":De("error",e),De("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(Y(137,t));default:Je(e,t,u,r,n,null)}return;default:if(Dp(t)){for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!==void 0&&g0(e,t,c,r,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(r=n[o],r!=null&&Je(e,t,o,r,n,null))}function LD(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,a=null,s=null,o=null,l=null,u=null,c=null;for(h in n){var f=n[h];if(n.hasOwnProperty(h)&&f!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":l=f;default:r.hasOwnProperty(h)||Je(e,t,h,null,r,f)}}for(var d in r){var h=r[d];if(f=n[d],r.hasOwnProperty(d)&&(h!=null||f!=null))switch(d){case"type":a=h;break;case"name":i=h;break;case"checked":u=h;break;case"defaultChecked":c=h;break;case"value":s=h;break;case"defaultValue":o=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(Y(137,t));break;default:h!==f&&Je(e,t,d,h,r,f)}}Rp(e,s,o,l,u,c,a,i);return;case"select":h=s=o=d=null;for(a in n)if(l=n[a],n.hasOwnProperty(a)&&l!=null)switch(a){case"value":break;case"multiple":h=l;default:r.hasOwnProperty(a)||Je(e,t,a,null,r,l)}for(i in r)if(a=r[i],l=n[i],r.hasOwnProperty(i)&&(a!=null||l!=null))switch(i){case"value":d=a;break;case"defaultValue":o=a;break;case"multiple":s=a;default:a!==l&&Je(e,t,i,a,r,l)}t=o,n=s,r=h,d!=null?qs(e,!!n,d,!1):!!r!=!!n&&(t!=null?qs(e,!!n,t,!0):qs(e,!!n,n?[]:"",!1));return;case"textarea":h=d=null;for(o in n)if(i=n[o],n.hasOwnProperty(o)&&i!=null&&!r.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:Je(e,t,o,null,r,i)}for(s in r)if(i=r[s],a=n[s],r.hasOwnProperty(s)&&(i!=null||a!=null))switch(s){case"value":d=i;break;case"defaultValue":h=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(Y(91));break;default:i!==a&&Je(e,t,s,i,r,a)}Dv(e,d,h);return;case"option":for(var g in n)if(d=n[g],n.hasOwnProperty(g)&&d!=null&&!r.hasOwnProperty(g))switch(g){case"selected":e.selected=!1;break;default:Je(e,t,g,null,r,d)}for(l in r)if(d=r[l],h=n[l],r.hasOwnProperty(l)&&d!==h&&(d!=null||h!=null))switch(l){case"selected":e.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:Je(e,t,l,d,r,h)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var b in n)d=n[b],n.hasOwnProperty(b)&&d!=null&&!r.hasOwnProperty(b)&&Je(e,t,b,null,r,d);for(u in r)if(d=r[u],h=n[u],r.hasOwnProperty(u)&&d!==h&&(d!=null||h!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(Y(137,t));break;default:Je(e,t,u,d,r,h)}return;default:if(Dp(t)){for(var T in n)d=n[T],n.hasOwnProperty(T)&&d!==void 0&&!r.hasOwnProperty(T)&&g0(e,t,T,void 0,r,d);for(c in r)d=r[c],h=n[c],!r.hasOwnProperty(c)||d===h||d===void 0&&h===void 0||g0(e,t,c,d,r,h);return}}for(var m in n)d=n[m],n.hasOwnProperty(m)&&d!=null&&!r.hasOwnProperty(m)&&Je(e,t,m,null,r,d);for(f in r)d=r[f],h=n[f],!r.hasOwnProperty(f)||d===h||d==null&&h==null||Je(e,t,f,d,r,h)}var b0=null,y0=null;function $f(e){return e.nodeType===9?e:e.ownerDocument}function LT(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function IT(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function v0(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var x0=null;function ID(){var e=window.event;return e&&e.type==="popstate"?e===x0?!1:(x0=e,!0):(x0=null,!1)}var PT=typeof setTimeout=="function"?setTimeout:void 0,PD=typeof clearTimeout=="function"?clearTimeout:void 0,BT=typeof Promise=="function"?Promise:void 0,BD=typeof queueMicrotask=="function"?queueMicrotask:typeof BT<"u"?function(e){return BT.resolve(null).then(e).catch(UD)}:PT;function UD(e){setTimeout(function(){throw e})}function fa(e){return e==="head"}function UT(e,t){var n=t,r=0,i=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(0<r&&8>r){n=r;var s=e.ownerDocument;if(n&1&&mu(s.documentElement),n&2&&mu(s.body),n&4)for(n=s.head,mu(n),s=n.firstChild;s;){var o=s.nextSibling,l=s.nodeName;s[Rl]||l==="SCRIPT"||l==="STYLE"||l==="LINK"&&s.rel.toLowerCase()==="stylesheet"||n.removeChild(s),s=o}}if(i===0){e.removeChild(a),wu(t);return}i--}else n==="$"||n==="$?"||n==="$!"?i++:r=n.charCodeAt(0)-48;else r=0;n=a}while(n);wu(t)}function E0(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":E0(n),Ap(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function zD(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[Rl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(a=e.getAttribute("rel"),a==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(a!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(a=e.getAttribute("src"),(a!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var a=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===a)return e}else return e;if(e=Or(e.nextSibling),e===null)break}return null}function jD(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Or(e.nextSibling),e===null))return null;return e}function T0(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function FD(e,t){var n=e.ownerDocument;if(e.data!=="$?"||n.readyState==="complete")t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function Or(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var w0=null;function zT(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}function jT(e,t,n){switch(t=$f(n),e){case"html":if(e=t.documentElement,!e)throw Error(Y(452));return e;case"head":if(e=t.head,!e)throw Error(Y(453));return e;case"body":if(e=t.body,!e)throw Error(Y(454));return e;default:throw Error(Y(451))}}function mu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ap(e)}var gr=new Map,FT=new Set;function Xf(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var wi=Ye.d;Ye.d={f:HD,r:VD,D:qD,C:YD,L:GD,m:$D,X:KD,S:XD,M:WD};function HD(){var e=wi.f(),t=zf();return e||t}function VD(e){var t=js(e);t!==null&&t.tag===5&&t.type==="form"?oE(t):wi.r(e)}var Eo=typeof document>"u"?null:document;function HT(e,t,n){var r=Eo;if(r&&typeof t=="string"&&t){var i=ur(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),FT.has(i)||(FT.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement("link"),on(t,"link",e),Kt(t),r.head.appendChild(t)))}}function qD(e){wi.D(e),HT("dns-prefetch",e,null)}function YD(e,t){wi.C(e,t),HT("preconnect",e,t)}function GD(e,t,n){wi.L(e,t,n);var r=Eo;if(r&&e&&t){var i='link[rel="preload"][as="'+ur(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+ur(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+ur(n.imageSizes)+'"]')):i+='[href="'+ur(e)+'"]';var a=i;switch(t){case"style":a=To(e);break;case"script":a=wo(e)}gr.has(a)||(e=ct({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),gr.set(a,e),r.querySelector(i)!==null||t==="style"&&r.querySelector(gu(a))||t==="script"&&r.querySelector(bu(a))||(t=r.createElement("link"),on(t,"link",e),Kt(t),r.head.appendChild(t)))}}function $D(e,t){wi.m(e,t);var n=Eo;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+ur(r)+'"][href="'+ur(e)+'"]',a=i;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=wo(e)}if(!gr.has(a)&&(e=ct({rel:"modulepreload",href:e},t),gr.set(a,e),n.querySelector(i)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(bu(a)))return}r=n.createElement("link"),on(r,"link",e),Kt(r),n.head.appendChild(r)}}}function XD(e,t,n){wi.S(e,t,n);var r=Eo;if(r&&e){var i=Fs(r).hoistableStyles,a=To(e);t=t||"default";var s=i.get(a);if(!s){var o={loading:0,preload:null};if(s=r.querySelector(gu(a)))o.loading=5;else{e=ct({rel:"stylesheet",href:e,"data-precedence":t},n),(n=gr.get(a))&&_0(e,n);var l=s=r.createElement("link");Kt(l),on(l,"link",e),l._p=new Promise(function(u,c){l.onload=u,l.onerror=c}),l.addEventListener("load",function(){o.loading|=1}),l.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Kf(s,t,r)}s={type:"stylesheet",instance:s,count:1,state:o},i.set(a,s)}}}function KD(e,t){wi.X(e,t);var n=Eo;if(n&&e){var r=Fs(n).hoistableScripts,i=wo(e),a=r.get(i);a||(a=n.querySelector(bu(i)),a||(e=ct({src:e,async:!0},t),(t=gr.get(i))&&S0(e,t),a=n.createElement("script"),Kt(a),on(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},r.set(i,a))}}function WD(e,t){wi.M(e,t);var n=Eo;if(n&&e){var r=Fs(n).hoistableScripts,i=wo(e),a=r.get(i);a||(a=n.querySelector(bu(i)),a||(e=ct({src:e,async:!0,type:"module"},t),(t=gr.get(i))&&S0(e,t),a=n.createElement("script"),Kt(a),on(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},r.set(i,a))}}function VT(e,t,n,r){var i=(i=Gi.current)?Xf(i):null;if(!i)throw Error(Y(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=To(n.href),n=Fs(i).hoistableStyles,r=n.get(t),r||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=To(n.href);var a=Fs(i).hoistableStyles,s=a.get(e);if(s||(i=i.ownerDocument||i,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},a.set(e,s),(a=i.querySelector(gu(e)))&&!a._p&&(s.instance=a,s.state.loading=5),gr.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},gr.set(e,n),a||QD(i,e,n,s.state))),t&&r===null)throw Error(Y(528,""));return s}if(t&&r!==null)throw Error(Y(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=wo(n),n=Fs(i).hoistableScripts,r=n.get(t),r||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(Y(444,e))}}function To(e){return'href="'+ur(e)+'"'}function gu(e){return'link[rel="stylesheet"]['+e+"]"}function qT(e){return ct({},e,{"data-precedence":e.precedence,precedence:null})}function QD(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),on(t,"link",n),Kt(t),e.head.appendChild(t))}function wo(e){return'[src="'+ur(e)+'"]'}function bu(e){return"script[async]"+e}function YT(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+ur(n.href)+'"]');if(r)return t.instance=r,Kt(r),r;var i=ct({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),Kt(r),on(r,"style",i),Kf(r,n.precedence,e),t.instance=r;case"stylesheet":i=To(n.href);var a=e.querySelector(gu(i));if(a)return t.state.loading|=4,t.instance=a,Kt(a),a;r=qT(n),(i=gr.get(i))&&_0(r,i),a=(e.ownerDocument||e).createElement("link"),Kt(a);var s=a;return s._p=new Promise(function(o,l){s.onload=o,s.onerror=l}),on(a,"link",r),t.state.loading|=4,Kf(a,n.precedence,e),t.instance=a;case"script":return a=wo(n.src),(i=e.querySelector(bu(a)))?(t.instance=i,Kt(i),i):(r=n,(i=gr.get(a))&&(r=ct({},n),S0(r,i)),e=e.ownerDocument||e,i=e.createElement("script"),Kt(i),on(i,"link",r),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(Y(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Kf(r,n.precedence,e));return t.instance}function Kf(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=r.length?r[r.length-1]:null,a=i,s=0;s<r.length;s++){var o=r[s];if(o.dataset.precedence===t)a=o;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function _0(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function S0(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Wf=null;function GT(e,t,n){if(Wf===null){var r=new Map,i=Wf=new Map;i.set(n,r)}else i=Wf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Rl]||a[dn]||e==="link"&&a.getAttribute("rel")==="stylesheet")&&a.namespaceURI!=="http://www.w3.org/2000/svg"){var s=a.getAttribute(t)||"";s=e+s;var o=r.get(s);o?o.push(a):r.set(s,[a])}}return r}function $T(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function ZD(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function XT(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}var yu=null;function JD(){}function e5(e,t,n){if(yu===null)throw Error(Y(475));var r=yu;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(t.state.loading&4)){if(t.instance===null){var i=To(n.href),a=e.querySelector(gu(i));if(a){e=a._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(r.count++,r=Qf.bind(r),e.then(r,r)),t.state.loading|=4,t.instance=a,Kt(a);return}a=e.ownerDocument||e,n=qT(n),(i=gr.get(i))&&_0(n,i),a=a.createElement("link"),Kt(a);var s=a;s._p=new Promise(function(o,l){s.onload=o,s.onerror=l}),on(a,"link",n),t.instance=a}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(t,e),(e=t.state.preload)&&!(t.state.loading&3)&&(r.count++,t=Qf.bind(r),e.addEventListener("load",t),e.addEventListener("error",t))}}function t5(){if(yu===null)throw Error(Y(475));var e=yu;return e.stylesheets&&e.count===0&&A0(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&A0(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function Qf(){if(this.count--,this.count===0){if(this.stylesheets)A0(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zf=null;function A0(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zf=new Map,t.forEach(n5,e),Zf=null,Qf.call(e))}function n5(e,t){if(!(t.state.loading&4)){var n=Zf.get(e);if(n)var r=n.get(null);else{n=new Map,Zf.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a<i.length;a++){var s=i[a];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(n.set(s.dataset.precedence,s),r=s)}r&&n.set(null,r)}i=t.instance,s=i.getAttribute("data-precedence"),a=n.get(s)||r,a===r&&n.set(null,i),n.set(s,i),this.count++,r=Qf.bind(this),i.addEventListener("load",r),i.addEventListener("error",r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var vu={$$typeof:li,Provider:null,Consumer:null,_currentValue:Ha,_currentValue2:Ha,_threadCount:0};function r5(e,t,n,r,i,a,s,o){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Tp(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Tp(0),this.hiddenUpdates=Tp(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}function KT(e,t,n,r,i,a,s,o,l,u,c,f){return e=new r5(e,t,n,s,o,l,u,f),t=1,a===!0&&(t|=24),a=Vn(3,null,null,t),e.current=a,a.stateNode=e,t=om(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},fm(a),e}function WT(e){return e?(e=Js,e):Js}function QT(e,t,n,r,i,a){i=WT(i),r.context===null?r.context=i:r.pendingContext=i,r=Zi(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ji(e,r,t),n!==null&&(Xn(n,e,t),Kl(n,e,t))}function ZT(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function C0(e,t){ZT(e,t),(e=e.alternate)&&ZT(e,t)}function JT(e){if(e.tag===13){var t=Zs(e,67108864);t!==null&&Xn(t,e,67108864),C0(e,67108864)}}var Jf=!0;function i5(e,t,n,r){var i=ge.T;ge.T=null;var a=Ye.p;try{Ye.p=2,k0(e,t,n,r)}finally{Ye.p=a,ge.T=i}}function a5(e,t,n,r){var i=ge.T;ge.T=null;var a=Ye.p;try{Ye.p=8,k0(e,t,n,r)}finally{Ye.p=a,ge.T=i}}function k0(e,t,n,r){if(Jf){var i=O0(r);if(i===null)m0(e,t,r,ed,n),t2(e,r);else if(o5(i,e,t,n,r))r.stopPropagation();else if(t2(e,r),t&4&&-1<s5.indexOf(e)){for(;i!==null;){var a=js(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var s=Va(a.pendingLanes);if(s!==0){var o=a;for(o.pendingLanes|=2,o.entangledLanes|=2;s;){var l=1<<31-Fn(s);o.entanglements[1]|=l,s&=~l}Gr(a),!(Ke&6)&&(Bf=Fr()+500,du(0))}}break;case 13:o=Zs(a,2),o!==null&&Xn(o,a,2),zf(),C0(a,2)}if(a=O0(r),a===null&&m0(e,t,r,ed,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else m0(e,t,r,null,n)}}function O0(e){return e=Lp(e),R0(e)}var ed=null;function R0(e){if(ed=null,e=zs(e),e!==null){var t=Tl(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=lv(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ed=e,null}function e2(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Y4()){case pv:return 2;case mv:return 8;case Yc:case G4:return 32;case gv:return 268435456;default:return 32}default:return 32}}var N0=!1,da=null,ha=null,pa=null,xu=new Map,Eu=new Map,ma=[],s5="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 t2(e,t){switch(e){case"focusin":case"focusout":da=null;break;case"dragenter":case"dragleave":ha=null;break;case"mouseover":case"mouseout":pa=null;break;case"pointerover":case"pointerout":xu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Eu.delete(t.pointerId)}}function Tu(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=js(t),t!==null&&JT(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function o5(e,t,n,r,i){switch(t){case"focusin":return da=Tu(da,e,t,n,r,i),!0;case"dragenter":return ha=Tu(ha,e,t,n,r,i),!0;case"mouseover":return pa=Tu(pa,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return xu.set(a,Tu(xu.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,Eu.set(a,Tu(Eu.get(a)||null,e,t,n,r,i)),!0}return!1}function n2(e){var t=zs(e.target);if(t!==null){var n=Tl(t);if(n!==null){if(t=n.tag,t===13){if(t=lv(n),t!==null){e.blockedOn=t,eN(e.priority,function(){if(n.tag===13){var r=$n();r=wp(r);var i=Zs(n,r);i!==null&&Xn(i,n,r),C0(n,r)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function td(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=O0(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Mp=r,n.target.dispatchEvent(r),Mp=null}else return t=js(n),t!==null&&JT(t),e.blockedOn=n,!1;t.shift()}return!0}function r2(e,t,n){td(e)&&n.delete(t)}function l5(){N0=!1,da!==null&&td(da)&&(da=null),ha!==null&&td(ha)&&(ha=null),pa!==null&&td(pa)&&(pa=null),xu.forEach(r2),Eu.forEach(r2)}function nd(e,t){e.blockedOn===t&&(e.blockedOn=null,N0||(N0=!0,jt.unstable_scheduleCallback(jt.unstable_NormalPriority,l5)))}var rd=null;function i2(e){rd!==e&&(rd=e,jt.unstable_scheduleCallback(jt.unstable_NormalPriority,function(){rd===e&&(rd=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!="function"){if(R0(r||n)===null)continue;break}var a=js(n);a!==null&&(e.splice(t,3),t-=3,Rm(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function wu(e){function t(l){return nd(l,e)}da!==null&&nd(da,e),ha!==null&&nd(ha,e),pa!==null&&nd(pa,e),xu.forEach(t),Eu.forEach(t);for(var n=0;n<ma.length;n++){var r=ma[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<ma.length&&(n=ma[0],n.blockedOn===null);)n2(n),n.blockedOn===null&&ma.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],s=i[kn]||null;if(typeof a=="function")s||i2(n);else if(s){var o=null;if(a&&a.hasAttribute("formAction")){if(i=a,s=a[kn]||null)o=s.formAction;else if(R0(i)!==null)continue}else o=s.action;typeof o=="function"?n[r+1]=o:(n.splice(r,3),r-=3),i2(n)}}}function D0(e){this._internalRoot=e}id.prototype.render=D0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Y(409));var n=t.current,r=$n();QT(n,r,e,t,null,null)},id.prototype.unmount=D0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;QT(e.current,2,null,e,null,null),zf(),t[Us]=null}};function id(e){this._internalRoot=e}id.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ev();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ma.length&&t!==0&&t<ma[n].priority;n++);ma.splice(n,0,e),n===0&&n2(e)}};var a2=sv.version;if(a2!=="19.1.1")throw Error(Y(527,a2,"19.1.1"));Ye.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Y(188)):(e=Object.keys(e).join(","),Error(Y(268,e)));return e=U4(t),e=e!==null?cv(e):null,e=e===null?null:e.stateNode,e};var u5={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:ge,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ad=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ad.isDisabled&&ad.supportsFiber)try{Cl=ad.inject(u5),jn=ad}catch{}}zc.createRoot=function(e,t){if(!ov(e))throw Error(Y(299));var n=!1,r="",i=EE,a=TE,s=wE,o=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(o=t.unstable_transitionCallbacks)),t=KT(e,1,!1,null,null,n,r,i,a,s,o,null),e[Us]=t.current,p0(e),new D0(t)},zc.hydrateRoot=function(e,t,n){if(!ov(e))throw Error(Y(299));var r=!1,i="",a=EE,s=TE,o=wE,l=null,u=null;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(a=n.onUncaughtError),n.onCaughtError!==void 0&&(s=n.onCaughtError),n.onRecoverableError!==void 0&&(o=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(l=n.unstable_transitionCallbacks),n.formState!==void 0&&(u=n.formState)),t=KT(e,1,!0,t,n??null,r,i,a,s,o,l,u),t.context=WT(null),n=t.current,r=$n(),r=wp(r),i=Zi(r),i.callback=null,Ji(n,i,r),n=r,t.current.lanes=n,Ol(t,n),Gr(t),e[Us]=t.current,p0(e),new id(t)},zc.version="19.1.1";function s2(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s2)}catch(e){console.error(e)}}s2(),ev.exports=zc;var c5=ev.exports;const f5="4.0.2";function Vt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function o2(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function l2(...e){return t=>{let n=!1;const r=e.map(i=>{const a=o2(i,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let i=0;i<r.length;i++){const a=r[i];typeof a=="function"?a():o2(e[i],null)}}}}function Kn(...e){return E.useCallback(l2(...e),e)}function d5(e,t){const n=E.createContext(t),r=a=>{const{children:s,...o}=a,l=E.useMemo(()=>o,Object.values(o));return x.jsx(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function i(a){const s=E.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,i]}function _u(e,t=[]){let n=[];function r(a,s){const o=E.createContext(s),l=n.length;n=[...n,s];const u=f=>{var m;const{scope:d,children:h,...g}=f,b=((m=d==null?void 0:d[e])==null?void 0:m[l])||o,T=E.useMemo(()=>g,Object.values(g));return x.jsx(b.Provider,{value:T,children:h})};u.displayName=a+"Provider";function c(f,d){var b;const h=((b=d==null?void 0:d[e])==null?void 0:b[l])||o,g=E.useContext(h);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[u,c]}const i=()=>{const a=n.map(s=>E.createContext(s));return function(o){const l=(o==null?void 0:o[e])||a;return E.useMemo(()=>({[`__scope${e}`]:{...o,[e]:l}}),[o,l])}};return i.scopeName=e,[r,h5(i,...t)]}function h5(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const s=r.reduce((o,{useScope:l,scopeName:u})=>{const f=l(a)[`__scope${u}`];return{...o,...f}},{});return E.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function sd(e){const t=m5(e),n=E.forwardRef((r,i)=>{const{children:a,...s}=r,o=E.Children.toArray(a),l=o.find(b5);if(l){const u=l.props.children,c=o.map(f=>f===l?E.Children.count(u)>1?E.Children.only(null):E.isValidElement(u)?u.props.children:null:f);return x.jsx(t,{...s,ref:i,children:E.isValidElement(u)?E.cloneElement(u,void 0,c):null})}return x.jsx(t,{...s,ref:i,children:a})});return n.displayName=`${e}.Slot`,n}var p5=sd("Slot");function m5(e){const t=E.forwardRef((n,r)=>{const{children:i,...a}=n;if(E.isValidElement(i)){const s=v5(i),o=y5(a,i.props);return i.type!==E.Fragment&&(o.ref=r?l2(r,s):s),E.cloneElement(i,o)}return E.Children.count(i)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var u2=Symbol("radix.slottable");function g5(e){const t=({children:n})=>x.jsx(x.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=u2,t}function b5(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===u2}function y5(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...o)=>{const l=a(...o);return i(...o),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}function v5(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var x5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Zt=x5.reduce((e,t)=>{const n=sd(`Primitive.${t}`),r=E.forwardRef((i,a)=>{const{asChild:s,...o}=i,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(l,{...o,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function E5(e,t){e&&Ls.flushSync(()=>e.dispatchEvent(t))}function os(e){const t=E.useRef(e);return E.useEffect(()=>{t.current=e}),E.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function T5(e,t=globalThis==null?void 0:globalThis.document){const n=os(e);E.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var w5="DismissableLayer",M0="dismissableLayer.update",_5="dismissableLayer.pointerDownOutside",S5="dismissableLayer.focusOutside",c2,f2=E.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),od=E.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:o,...l}=e,u=E.useContext(f2),[c,f]=E.useState(null),d=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=E.useState({}),g=Kn(t,N=>f(N)),b=Array.from(u.layers),[T]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=b.indexOf(T),y=c?b.indexOf(c):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,w=y>=m,_=k5(N=>{const L=N.target,F=[...u.branches].some(R=>R.contains(L));!w||F||(i==null||i(N),s==null||s(N),N.defaultPrevented||o==null||o())},d),A=O5(N=>{const L=N.target;[...u.branches].some(R=>R.contains(L))||(a==null||a(N),s==null||s(N),N.defaultPrevented||o==null||o())},d);return T5(N=>{y===u.layers.size-1&&(r==null||r(N),!N.defaultPrevented&&o&&(N.preventDefault(),o()))},d),E.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(c2=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),d2(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=c2)}},[c,d,n,u]),E.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),d2())},[c,u]),E.useEffect(()=>{const N=()=>h({});return document.addEventListener(M0,N),()=>document.removeEventListener(M0,N)},[]),x.jsx(Zt.div,{...l,ref:g,style:{pointerEvents:v?w?"auto":"none":void 0,...e.style},onFocusCapture:Vt(e.onFocusCapture,A.onFocusCapture),onBlurCapture:Vt(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:Vt(e.onPointerDownCapture,_.onPointerDownCapture)})});od.displayName=w5;var A5="DismissableLayerBranch",C5=E.forwardRef((e,t)=>{const n=E.useContext(f2),r=E.useRef(null),i=Kn(t,r);return E.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),x.jsx(Zt.div,{...e,ref:i})});C5.displayName=A5;function k5(e,t=globalThis==null?void 0:globalThis.document){const n=os(e),r=E.useRef(!1),i=E.useRef(()=>{});return E.useEffect(()=>{const a=o=>{if(o.target&&!r.current){let l=function(){h2(_5,n,u,{discrete:!0})};const u={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function O5(e,t=globalThis==null?void 0:globalThis.document){const n=os(e),r=E.useRef(!1);return E.useEffect(()=>{const i=a=>{a.target&&!r.current&&h2(S5,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function d2(){const e=new CustomEvent(M0);document.dispatchEvent(e)}function h2(e,t,n,{discrete:r}){const i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?E5(i,a):i.dispatchEvent(a)}var L0=0;function p2(){E.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??m2()),document.body.insertAdjacentElement("beforeend",e[1]??m2()),L0++,()=>{L0===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),L0--}},[])}function m2(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var I0="focusScope.autoFocusOnMount",P0="focusScope.autoFocusOnUnmount",g2={bubbles:!1,cancelable:!0},R5="FocusScope",B0=E.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...s}=e,[o,l]=E.useState(null),u=os(i),c=os(a),f=E.useRef(null),d=Kn(t,b=>l(b)),h=E.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;E.useEffect(()=>{if(r){let b=function(v){if(h.paused||!o)return;const w=v.target;o.contains(w)?f.current=w:ga(f.current,{select:!0})},T=function(v){if(h.paused||!o)return;const w=v.relatedTarget;w!==null&&(o.contains(w)||ga(f.current,{select:!0}))},m=function(v){if(document.activeElement===document.body)for(const _ of v)_.removedNodes.length>0&&ga(o)};document.addEventListener("focusin",b),document.addEventListener("focusout",T);const y=new MutationObserver(m);return o&&y.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",T),y.disconnect()}}},[r,o,h.paused]),E.useEffect(()=>{if(o){v2.add(h);const b=document.activeElement;if(!o.contains(b)){const m=new CustomEvent(I0,g2);o.addEventListener(I0,u),o.dispatchEvent(m),m.defaultPrevented||(N5(P5(b2(o)),{select:!0}),document.activeElement===b&&ga(o))}return()=>{o.removeEventListener(I0,u),setTimeout(()=>{const m=new CustomEvent(P0,g2);o.addEventListener(P0,c),o.dispatchEvent(m),m.defaultPrevented||ga(b??document.body,{select:!0}),o.removeEventListener(P0,c),v2.remove(h)},0)}}},[o,u,c,h]);const g=E.useCallback(b=>{if(!n&&!r||h.paused)return;const T=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,m=document.activeElement;if(T&&m){const y=b.currentTarget,[v,w]=D5(y);v&&w?!b.shiftKey&&m===w?(b.preventDefault(),n&&ga(v,{select:!0})):b.shiftKey&&m===v&&(b.preventDefault(),n&&ga(w,{select:!0})):m===y&&b.preventDefault()}},[n,r,h.paused]);return x.jsx(Zt.div,{tabIndex:-1,...s,ref:d,onKeyDown:g})});B0.displayName=R5;function N5(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ga(r,{select:t}),document.activeElement!==n)return}function D5(e){const t=b2(e),n=y2(t,e),r=y2(t.reverse(),e);return[n,r]}function b2(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function y2(e,t){for(const n of e)if(!M5(n,{upTo:t}))return n}function M5(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function L5(e){return e instanceof HTMLInputElement&&"select"in e}function ga(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&L5(e)&&t&&e.select()}}var v2=I5();function I5(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=x2(e,t),e.unshift(t)},remove(t){var n;e=x2(e,t),(n=e[0])==null||n.resume()}}}function x2(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function P5(e){return e.filter(t=>t.tagName!=="A")}var $r=globalThis!=null&&globalThis.document?E.useLayoutEffect:()=>{},B5=Jy[" useId ".trim().toString()]||(()=>{}),U5=0;function Su(e){const[t,n]=E.useState(B5());return $r(()=>{n(r=>r??String(U5++))},[e]),e||(t?`radix-${t}`:"")}const z5=["top","right","bottom","left"],ba=Math.min,Wn=Math.max,ld=Math.round,ud=Math.floor,Xr=e=>({x:e,y:e}),j5={left:"right",right:"left",bottom:"top",top:"bottom"},F5={start:"end",end:"start"};function U0(e,t,n){return Wn(e,ba(t,n))}function _i(e,t){return typeof e=="function"?e(t):e}function Si(e){return e.split("-")[0]}function _o(e){return e.split("-")[1]}function z0(e){return e==="x"?"y":"x"}function j0(e){return e==="y"?"height":"width"}const H5=new Set(["top","bottom"]);function Kr(e){return H5.has(Si(e))?"y":"x"}function F0(e){return z0(Kr(e))}function V5(e,t,n){n===void 0&&(n=!1);const r=_o(e),i=F0(e),a=j0(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=cd(s)),[s,cd(s)]}function q5(e){const t=cd(e);return[H0(e),t,H0(t)]}function H0(e){return e.replace(/start|end/g,t=>F5[t])}const E2=["left","right"],T2=["right","left"],Y5=["top","bottom"],G5=["bottom","top"];function $5(e,t,n){switch(e){case"top":case"bottom":return n?t?T2:E2:t?E2:T2;case"left":case"right":return t?Y5:G5;default:return[]}}function X5(e,t,n,r){const i=_o(e);let a=$5(Si(e),n==="start",r);return i&&(a=a.map(s=>s+"-"+i),t&&(a=a.concat(a.map(H0)))),a}function cd(e){return e.replace(/left|right|bottom|top/g,t=>j5[t])}function K5(e){return{top:0,right:0,bottom:0,left:0,...e}}function w2(e){return typeof e!="number"?K5(e):{top:e,right:e,bottom:e,left:e}}function fd(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function _2(e,t,n){let{reference:r,floating:i}=e;const a=Kr(t),s=F0(t),o=j0(s),l=Si(t),u=a==="y",c=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,d=r[o]/2-i[o]/2;let h;switch(l){case"top":h={x:c,y:r.y-i.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-i.width,y:f};break;default:h={x:r.x,y:r.y}}switch(_o(t)){case"start":h[s]-=d*(n&&u?-1:1);break;case"end":h[s]+=d*(n&&u?-1:1);break}return h}const W5=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:s}=n,o=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=_2(u,r,l),d=r,h={},g=0;for(let b=0;b<o.length;b++){const{name:T,fn:m}=o[b],{x:y,y:v,data:w,reset:_}=await m({x:c,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});c=y??c,f=v??f,h={...h,[T]:{...h[T],...w}},_&&g<=50&&(g++,typeof _=="object"&&(_.placement&&(d=_.placement),_.rects&&(u=_.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):_.rects),{x:c,y:f}=_2(u,d,l)),b=-1)}return{x:c,y:f,placement:d,strategy:i,middlewareData:h}};async function Au(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:s,elements:o,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=_i(t,e),g=w2(h),T=o[d?f==="floating"?"reference":"floating":f],m=fd(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(T)))==null||n?T:T.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(o.floating)),boundary:u,rootBoundary:c,strategy:l})),y=f==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,v=await(a.getOffsetParent==null?void 0:a.getOffsetParent(o.floating)),w=await(a.isElement==null?void 0:a.isElement(v))?await(a.getScale==null?void 0:a.getScale(v))||{x:1,y:1}:{x:1,y:1},_=fd(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:y,offsetParent:v,strategy:l}):y);return{top:(m.top-_.top+g.top)/w.y,bottom:(_.bottom-m.bottom+g.bottom)/w.y,left:(m.left-_.left+g.left)/w.x,right:(_.right-m.right+g.right)/w.x}}const Q5=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:s,elements:o,middlewareData:l}=t,{element:u,padding:c=0}=_i(e,t)||{};if(u==null)return{};const f=w2(c),d={x:n,y:r},h=F0(i),g=j0(h),b=await s.getDimensions(u),T=h==="y",m=T?"top":"left",y=T?"bottom":"right",v=T?"clientHeight":"clientWidth",w=a.reference[g]+a.reference[h]-d[h]-a.floating[g],_=d[h]-a.reference[h],A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let N=A?A[v]:0;(!N||!await(s.isElement==null?void 0:s.isElement(A)))&&(N=o.floating[v]||a.floating[g]);const L=w/2-_/2,F=N/2-b[g]/2-1,R=ba(f[m],F),q=ba(f[y],F),j=R,ne=N-b[g]-q,K=N/2-b[g]/2+L,W=U0(j,K,ne),H=!l.arrow&&_o(i)!=null&&K!==W&&a.reference[g]/2-(K<j?R:q)-b[g]/2<0,V=H?K<j?K-j:K-ne:0;return{[h]:d[h]+V,data:{[h]:W,centerOffset:K-W-V,...H&&{alignmentOffset:V}},reset:H}}}),Z5=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:s,initialPlacement:o,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:b=!0,...T}=_i(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const m=Si(i),y=Kr(o),v=Si(o)===o,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),_=d||(v||!b?[cd(o)]:q5(o)),A=g!=="none";!d&&A&&_.push(...X5(o,b,g,w));const N=[o,..._],L=await Au(t,T),F=[];let R=((r=a.flip)==null?void 0:r.overflows)||[];if(c&&F.push(L[m]),f){const K=V5(i,s,w);F.push(L[K[0]],L[K[1]])}if(R=[...R,{placement:i,overflows:F}],!F.every(K=>K<=0)){var q,j;const K=(((q=a.flip)==null?void 0:q.index)||0)+1,W=N[K];if(W&&(!(f==="alignment"?y!==Kr(W):!1)||R.every(z=>Kr(z.placement)===y?z.overflows[0]>0:!0)))return{data:{index:K,overflows:R},reset:{placement:W}};let H=(j=R.filter(V=>V.overflows[0]<=0).sort((V,z)=>V.overflows[1]-z.overflows[1])[0])==null?void 0:j.placement;if(!H)switch(h){case"bestFit":{var ne;const V=(ne=R.filter(z=>{if(A){const te=Kr(z.placement);return te===y||te==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(te=>te>0).reduce((te,O)=>te+O,0)]).sort((z,te)=>z[1]-te[1])[0])==null?void 0:ne[0];V&&(H=V);break}case"initialPlacement":H=o;break}if(i!==H)return{reset:{placement:H}}}return{}}}};function S2(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function A2(e){return z5.some(t=>e[t]>=0)}const J5=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=_i(e,t);switch(r){case"referenceHidden":{const a=await Au(t,{...i,elementContext:"reference"}),s=S2(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:A2(s)}}}case"escaped":{const a=await Au(t,{...i,altBoundary:!0}),s=S2(a,n.floating);return{data:{escapedOffsets:s,escaped:A2(s)}}}default:return{}}}}},C2=new Set(["left","top"]);async function eM(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Si(n),o=_o(n),l=Kr(n)==="y",u=C2.has(s)?-1:1,c=a&&l?-1:1,f=_i(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return o&&typeof g=="number"&&(h=o==="end"?g*-1:g),l?{x:h*c,y:d*u}:{x:d*u,y:h*c}}const tM=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:s,middlewareData:o}=t,l=await eM(t,e);return s===((n=o.offset)==null?void 0:n.placement)&&(r=o.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:s}}}}},nM=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:o={fn:T=>{let{x:m,y}=T;return{x:m,y}}},...l}=_i(e,t),u={x:n,y:r},c=await Au(t,l),f=Kr(Si(i)),d=z0(f);let h=u[d],g=u[f];if(a){const T=d==="y"?"top":"left",m=d==="y"?"bottom":"right",y=h+c[T],v=h-c[m];h=U0(y,h,v)}if(s){const T=f==="y"?"top":"left",m=f==="y"?"bottom":"right",y=g+c[T],v=g-c[m];g=U0(y,g,v)}const b=o.fn({...t,[d]:h,[f]:g});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[d]:a,[f]:s}}}}}},rM=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:a,middlewareData:s}=t,{offset:o=0,mainAxis:l=!0,crossAxis:u=!0}=_i(e,t),c={x:n,y:r},f=Kr(i),d=z0(f);let h=c[d],g=c[f];const b=_i(o,t),T=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){const v=d==="y"?"height":"width",w=a.reference[d]-a.floating[v]+T.mainAxis,_=a.reference[d]+a.reference[v]-T.mainAxis;h<w?h=w:h>_&&(h=_)}if(u){var m,y;const v=d==="y"?"width":"height",w=C2.has(Si(i)),_=a.reference[f]-a.floating[v]+(w&&((m=s.offset)==null?void 0:m[f])||0)+(w?0:T.crossAxis),A=a.reference[f]+a.reference[v]+(w?0:((y=s.offset)==null?void 0:y[f])||0)-(w?T.crossAxis:0);g<_?g=_:g>A&&(g=A)}return{[d]:h,[f]:g}}}},iM=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:a,platform:s,elements:o}=t,{apply:l=()=>{},...u}=_i(e,t),c=await Au(t,u),f=Si(i),d=_o(i),h=Kr(i)==="y",{width:g,height:b}=a.floating;let T,m;f==="top"||f==="bottom"?(T=f,m=d===(await(s.isRTL==null?void 0:s.isRTL(o.floating))?"start":"end")?"left":"right"):(m=f,T=d==="end"?"top":"bottom");const y=b-c.top-c.bottom,v=g-c.left-c.right,w=ba(b-c[T],y),_=ba(g-c[m],v),A=!t.middlewareData.shift;let N=w,L=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(L=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(N=y),A&&!d){const R=Wn(c.left,0),q=Wn(c.right,0),j=Wn(c.top,0),ne=Wn(c.bottom,0);h?L=g-2*(R!==0||q!==0?R+q:Wn(c.left,c.right)):N=b-2*(j!==0||ne!==0?j+ne:Wn(c.top,c.bottom))}await l({...t,availableWidth:L,availableHeight:N});const F=await s.getDimensions(o.floating);return g!==F.width||b!==F.height?{reset:{rects:!0}}:{}}}};function dd(){return typeof window<"u"}function So(e){return k2(e)?(e.nodeName||"").toLowerCase():"#document"}function Qn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Wr(e){var t;return(t=(k2(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function k2(e){return dd()?e instanceof Node||e instanceof Qn(e).Node:!1}function Rr(e){return dd()?e instanceof Element||e instanceof Qn(e).Element:!1}function Qr(e){return dd()?e instanceof HTMLElement||e instanceof Qn(e).HTMLElement:!1}function O2(e){return!dd()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Qn(e).ShadowRoot}const aM=new Set(["inline","contents"]);function Cu(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Nr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!aM.has(i)}const sM=new Set(["table","td","th"]);function oM(e){return sM.has(So(e))}const lM=[":popover-open",":modal"];function hd(e){return lM.some(t=>{try{return e.matches(t)}catch{return!1}})}const uM=["transform","translate","scale","rotate","perspective"],cM=["transform","translate","scale","rotate","perspective","filter"],fM=["paint","layout","strict","content"];function V0(e){const t=q0(),n=Rr(e)?Nr(e):e;return uM.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||cM.some(r=>(n.willChange||"").includes(r))||fM.some(r=>(n.contain||"").includes(r))}function dM(e){let t=ya(e);for(;Qr(t)&&!Ao(t);){if(V0(t))return t;if(hd(t))return null;t=ya(t)}return null}function q0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const hM=new Set(["html","body","#document"]);function Ao(e){return hM.has(So(e))}function Nr(e){return Qn(e).getComputedStyle(e)}function pd(e){return Rr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ya(e){if(So(e)==="html")return e;const t=e.assignedSlot||e.parentNode||O2(e)&&e.host||Wr(e);return O2(t)?t.host:t}function R2(e){const t=ya(e);return Ao(t)?e.ownerDocument?e.ownerDocument.body:e.body:Qr(t)&&Cu(t)?t:R2(t)}function ku(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=R2(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),s=Qn(i);if(a){const o=Y0(s);return t.concat(s,s.visualViewport||[],Cu(i)?i:[],o&&n?ku(o):[])}return t.concat(i,ku(i,[],n))}function Y0(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function N2(e){const t=Nr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Qr(e),a=i?e.offsetWidth:n,s=i?e.offsetHeight:r,o=ld(n)!==a||ld(r)!==s;return o&&(n=a,r=s),{width:n,height:r,$:o}}function G0(e){return Rr(e)?e:e.contextElement}function Co(e){const t=G0(e);if(!Qr(t))return Xr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=N2(t);let s=(a?ld(n.width):n.width)/r,o=(a?ld(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!o||!Number.isFinite(o))&&(o=1),{x:s,y:o}}const pM=Xr(0);function D2(e){const t=Qn(e);return!q0()||!t.visualViewport?pM:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function mM(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Qn(e)?!1:t}function ls(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=G0(e);let s=Xr(1);t&&(r?Rr(r)&&(s=Co(r)):s=Co(e));const o=mM(a,n,r)?D2(a):Xr(0);let l=(i.left+o.x)/s.x,u=(i.top+o.y)/s.y,c=i.width/s.x,f=i.height/s.y;if(a){const d=Qn(a),h=r&&Rr(r)?Qn(r):r;let g=d,b=Y0(g);for(;b&&r&&h!==g;){const T=Co(b),m=b.getBoundingClientRect(),y=Nr(b),v=m.left+(b.clientLeft+parseFloat(y.paddingLeft))*T.x,w=m.top+(b.clientTop+parseFloat(y.paddingTop))*T.y;l*=T.x,u*=T.y,c*=T.x,f*=T.y,l+=v,u+=w,g=Qn(b),b=Y0(g)}}return fd({width:c,height:f,x:l,y:u})}function $0(e,t){const n=pd(e).scrollLeft;return t?t.left+n:ls(Wr(e)).left+n}function M2(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:$0(e,r)),a=r.top+t.scrollTop;return{x:i,y:a}}function gM(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",s=Wr(r),o=t?hd(t.floating):!1;if(r===s||o&&a)return n;let l={scrollLeft:0,scrollTop:0},u=Xr(1);const c=Xr(0),f=Qr(r);if((f||!f&&!a)&&((So(r)!=="body"||Cu(s))&&(l=pd(r)),Qr(r))){const h=ls(r);u=Co(r),c.x=h.x+r.clientLeft,c.y=h.y+r.clientTop}const d=s&&!f&&!a?M2(s,l,!0):Xr(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+d.x,y:n.y*u.y-l.scrollTop*u.y+c.y+d.y}}function bM(e){return Array.from(e.getClientRects())}function yM(e){const t=Wr(e),n=pd(e),r=e.ownerDocument.body,i=Wn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Wn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+$0(e);const o=-n.scrollTop;return Nr(r).direction==="rtl"&&(s+=Wn(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:s,y:o}}function vM(e,t){const n=Qn(e),r=Wr(e),i=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,o=0,l=0;if(i){a=i.width,s=i.height;const u=q0();(!u||u&&t==="fixed")&&(o=i.offsetLeft,l=i.offsetTop)}return{width:a,height:s,x:o,y:l}}const xM=new Set(["absolute","fixed"]);function EM(e,t){const n=ls(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Qr(e)?Co(e):Xr(1),s=e.clientWidth*a.x,o=e.clientHeight*a.y,l=i*a.x,u=r*a.y;return{width:s,height:o,x:l,y:u}}function L2(e,t,n){let r;if(t==="viewport")r=vM(e,n);else if(t==="document")r=yM(Wr(e));else if(Rr(t))r=EM(t,n);else{const i=D2(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return fd(r)}function I2(e,t){const n=ya(e);return n===t||!Rr(n)||Ao(n)?!1:Nr(n).position==="fixed"||I2(n,t)}function TM(e,t){const n=t.get(e);if(n)return n;let r=ku(e,[],!1).filter(o=>Rr(o)&&So(o)!=="body"),i=null;const a=Nr(e).position==="fixed";let s=a?ya(e):e;for(;Rr(s)&&!Ao(s);){const o=Nr(s),l=V0(s);!l&&o.position==="fixed"&&(i=null),(a?!l&&!i:!l&&o.position==="static"&&!!i&&xM.has(i.position)||Cu(s)&&!l&&I2(e,s))?r=r.filter(c=>c!==s):i=o,s=ya(s)}return t.set(e,r),r}function wM(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?hd(t)?[]:TM(t,this._c):[].concat(n),r],o=s[0],l=s.reduce((u,c)=>{const f=L2(t,c,i);return u.top=Wn(f.top,u.top),u.right=ba(f.right,u.right),u.bottom=ba(f.bottom,u.bottom),u.left=Wn(f.left,u.left),u},L2(t,o,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function _M(e){const{width:t,height:n}=N2(e);return{width:t,height:n}}function SM(e,t,n){const r=Qr(t),i=Wr(t),a=n==="fixed",s=ls(e,!0,a,t);let o={scrollLeft:0,scrollTop:0};const l=Xr(0);function u(){l.x=$0(i)}if(r||!r&&!a)if((So(t)!=="body"||Cu(i))&&(o=pd(t)),r){const h=ls(t,!0,a,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else i&&u();a&&!r&&i&&u();const c=i&&!r&&!a?M2(i,o):Xr(0),f=s.left+o.scrollLeft-l.x-c.x,d=s.top+o.scrollTop-l.y-c.y;return{x:f,y:d,width:s.width,height:s.height}}function X0(e){return Nr(e).position==="static"}function P2(e,t){if(!Qr(e)||Nr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Wr(e)===n&&(n=n.ownerDocument.body),n}function B2(e,t){const n=Qn(e);if(hd(e))return n;if(!Qr(e)){let i=ya(e);for(;i&&!Ao(i);){if(Rr(i)&&!X0(i))return i;i=ya(i)}return n}let r=P2(e,t);for(;r&&oM(r)&&X0(r);)r=P2(r,t);return r&&Ao(r)&&X0(r)&&!V0(r)?n:r||dM(e)||n}const AM=async function(e){const t=this.getOffsetParent||B2,n=this.getDimensions,r=await n(e.floating);return{reference:SM(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function CM(e){return Nr(e).direction==="rtl"}const kM={convertOffsetParentRelativeRectToViewportRelativeRect:gM,getDocumentElement:Wr,getClippingRect:wM,getOffsetParent:B2,getElementRects:AM,getClientRects:bM,getDimensions:_M,getScale:Co,isElement:Rr,isRTL:CM};function U2(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function OM(e,t){let n=null,r;const i=Wr(e);function a(){var o;clearTimeout(r),(o=n)==null||o.disconnect(),n=null}function s(o,l){o===void 0&&(o=!1),l===void 0&&(l=1),a();const u=e.getBoundingClientRect(),{left:c,top:f,width:d,height:h}=u;if(o||t(),!d||!h)return;const g=ud(f),b=ud(i.clientWidth-(c+d)),T=ud(i.clientHeight-(f+h)),m=ud(c),v={rootMargin:-g+"px "+-b+"px "+-T+"px "+-m+"px",threshold:Wn(0,ba(1,l))||1};let w=!0;function _(A){const N=A[0].intersectionRatio;if(N!==l){if(!w)return s();N?s(!1,N):r=setTimeout(()=>{s(!1,1e-7)},1e3)}N===1&&!U2(u,e.getBoundingClientRect())&&s(),w=!1}try{n=new IntersectionObserver(_,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(_,v)}n.observe(e)}return s(!0),a}function RM(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=G0(e),c=i||a?[...u?ku(u):[],...ku(t)]:[];c.forEach(m=>{i&&m.addEventListener("scroll",n,{passive:!0}),a&&m.addEventListener("resize",n)});const f=u&&o?OM(u,n):null;let d=-1,h=null;s&&(h=new ResizeObserver(m=>{let[y]=m;y&&y.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var v;(v=h)==null||v.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let g,b=l?ls(e):null;l&&T();function T(){const m=ls(e);b&&!U2(b,m)&&n(),b=m,g=requestAnimationFrame(T)}return n(),()=>{var m;c.forEach(y=>{i&&y.removeEventListener("scroll",n),a&&y.removeEventListener("resize",n)}),f==null||f(),(m=h)==null||m.disconnect(),h=null,l&&cancelAnimationFrame(g)}}const NM=tM,DM=nM,MM=Z5,LM=iM,IM=J5,z2=Q5,PM=rM,BM=(e,t,n)=>{const r=new Map,i={platform:kM,...n},a={...i.platform,_c:r};return W5(e,t,{...i,platform:a})};var UM=typeof document<"u",zM=function(){},md=UM?E.useLayoutEffect:zM;function gd(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!gd(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!gd(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function j2(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function F2(e,t){const n=j2(e);return Math.round(t*n)/n}function K0(e){const t=E.useRef(e);return md(()=>{t.current=e}),t}function jM(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:s}={},transform:o=!0,whileElementsMounted:l,open:u}=e,[c,f]=E.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,h]=E.useState(r);gd(d,r)||h(r);const[g,b]=E.useState(null),[T,m]=E.useState(null),y=E.useCallback(z=>{z!==A.current&&(A.current=z,b(z))},[]),v=E.useCallback(z=>{z!==N.current&&(N.current=z,m(z))},[]),w=a||g,_=s||T,A=E.useRef(null),N=E.useRef(null),L=E.useRef(c),F=l!=null,R=K0(l),q=K0(i),j=K0(u),ne=E.useCallback(()=>{if(!A.current||!N.current)return;const z={placement:t,strategy:n,middleware:d};q.current&&(z.platform=q.current),BM(A.current,N.current,z).then(te=>{const O={...te,isPositioned:j.current!==!1};K.current&&!gd(L.current,O)&&(L.current=O,Ls.flushSync(()=>{f(O)}))})},[d,t,n,q,j]);md(()=>{u===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,f(z=>({...z,isPositioned:!1})))},[u]);const K=E.useRef(!1);md(()=>(K.current=!0,()=>{K.current=!1}),[]),md(()=>{if(w&&(A.current=w),_&&(N.current=_),w&&_){if(R.current)return R.current(w,_,ne);ne()}},[w,_,ne,R,F]);const W=E.useMemo(()=>({reference:A,floating:N,setReference:y,setFloating:v}),[y,v]),H=E.useMemo(()=>({reference:w,floating:_}),[w,_]),V=E.useMemo(()=>{const z={position:n,left:0,top:0};if(!H.floating)return z;const te=F2(H.floating,c.x),O=F2(H.floating,c.y);return o?{...z,transform:"translate("+te+"px, "+O+"px)",...j2(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:te,top:O}},[n,o,H.floating,c.x,c.y]);return E.useMemo(()=>({...c,update:ne,refs:W,elements:H,floatingStyles:V}),[c,ne,W,H,V])}const FM=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?z2({element:r.current,padding:i}).fn(n):{}:r?z2({element:r,padding:i}).fn(n):{}}}},HM=(e,t)=>({...NM(e),options:[e,t]}),VM=(e,t)=>({...DM(e),options:[e,t]}),qM=(e,t)=>({...PM(e),options:[e,t]}),YM=(e,t)=>({...MM(e),options:[e,t]}),GM=(e,t)=>({...LM(e),options:[e,t]}),$M=(e,t)=>({...IM(e),options:[e,t]}),XM=(e,t)=>({...FM(e),options:[e,t]});var KM="Arrow",H2=E.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...a}=e;return x.jsx(Zt.svg,{...a,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:x.jsx("polygon",{points:"0,0 30,0 15,10"})})});H2.displayName=KM;var WM=H2;function QM(e){const[t,n]=E.useState(void 0);return $r(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let s,o;if("borderBoxSize"in a){const l=a.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,o=u.blockSize}else s=e.offsetWidth,o=e.offsetHeight;n({width:s,height:o})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var W0="Popper",[V2,bd]=_u(W0),[ZM,q2]=V2(W0),Y2=e=>{const{__scopePopper:t,children:n}=e,[r,i]=E.useState(null);return x.jsx(ZM,{scope:t,anchor:r,onAnchorChange:i,children:n})};Y2.displayName=W0;var G2="PopperAnchor",$2=E.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,a=q2(G2,n),s=E.useRef(null),o=Kn(t,s);return E.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:x.jsx(Zt.div,{...i,ref:o})});$2.displayName=G2;var Q0="PopperContent",[JM,eL]=V2(Q0),X2=E.forwardRef((e,t)=>{var Yt,Qe,Ut,ut,Nt,Gt;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:a="center",alignOffset:s=0,arrowPadding:o=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:h="optimized",onPlaced:g,...b}=e,T=q2(Q0,n),[m,y]=E.useState(null),v=Kn(t,ye=>y(ye)),[w,_]=E.useState(null),A=QM(w),N=(A==null?void 0:A.width)??0,L=(A==null?void 0:A.height)??0,F=r+(a!=="center"?"-"+a:""),R=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},q=Array.isArray(u)?u:[u],j=q.length>0,ne={padding:R,boundary:q.filter(nL),altBoundary:j},{refs:K,floatingStyles:W,placement:H,isPositioned:V,middlewareData:z}=jM({strategy:"fixed",placement:F,whileElementsMounted:(...ye)=>RM(...ye,{animationFrame:h==="always"}),elements:{reference:T.anchor},middleware:[HM({mainAxis:i+L,alignmentAxis:s}),l&&VM({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?qM():void 0,...ne}),l&&YM({...ne}),GM({...ne,apply:({elements:ye,rects:Ie,availableWidth:$e,availableHeight:Re})=>{const{width:et,height:$t}=Ie.reference,Be=ye.floating.style;Be.setProperty("--radix-popper-available-width",`${$e}px`),Be.setProperty("--radix-popper-available-height",`${Re}px`),Be.setProperty("--radix-popper-anchor-width",`${et}px`),Be.setProperty("--radix-popper-anchor-height",`${$t}px`)}}),w&&XM({element:w,padding:o}),rL({arrowWidth:N,arrowHeight:L}),d&&$M({strategy:"referenceHidden",...ne})]}),[te,O]=Q2(H),he=os(g);$r(()=>{V&&(he==null||he())},[V,he]);const je=(Yt=z.arrow)==null?void 0:Yt.x,M=(Qe=z.arrow)==null?void 0:Qe.y,Le=((Ut=z.arrow)==null?void 0:Ut.centerOffset)!==0,[pe,Pe]=E.useState();return $r(()=>{m&&Pe(window.getComputedStyle(m).zIndex)},[m]),x.jsx("div",{ref:K.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:V?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:pe,"--radix-popper-transform-origin":[(ut=z.transformOrigin)==null?void 0:ut.x,(Nt=z.transformOrigin)==null?void 0:Nt.y].join(" "),...((Gt=z.hide)==null?void 0:Gt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:x.jsx(JM,{scope:n,placedSide:te,onArrowChange:_,arrowX:je,arrowY:M,shouldHideArrow:Le,children:x.jsx(Zt.div,{"data-side":te,"data-align":O,...b,ref:v,style:{...b.style,animation:V?void 0:"none"}})})})});X2.displayName=Q0;var K2="PopperArrow",tL={top:"bottom",right:"left",bottom:"top",left:"right"},W2=E.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,a=eL(K2,r),s=tL[a.placedSide];return x.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:x.jsx(WM,{...i,ref:n,style:{...i.style,display:"block"}})})});W2.displayName=K2;function nL(e){return e!==null}var rL=e=>({name:"transformOrigin",options:e,fn(t){var T,m,y;const{placement:n,rects:r,middlewareData:i}=t,s=((T=i.arrow)==null?void 0:T.centerOffset)!==0,o=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,c]=Q2(n),f={start:"0%",center:"50%",end:"100%"}[c],d=(((m=i.arrow)==null?void 0:m.x)??0)+o/2,h=(((y=i.arrow)==null?void 0:y.y)??0)+l/2;let g="",b="";return u==="bottom"?(g=s?f:`${d}px`,b=`${-l}px`):u==="top"?(g=s?f:`${d}px`,b=`${r.floating.height+l}px`):u==="right"?(g=`${-l}px`,b=s?f:`${h}px`):u==="left"&&(g=`${r.floating.width+l}px`,b=s?f:`${h}px`),{data:{x:g,y:b}}}});function Q2(e){const[t,n="center"]=e.split("-");return[t,n]}var Z2=Y2,Z0=$2,J2=X2,ew=W2;function iL(e,t){return E.useReducer((n,r)=>t[n][r]??n,e)}var Ou=e=>{const{present:t,children:n}=e,r=aL(t),i=typeof n=="function"?n({present:r.isPresent}):E.Children.only(n),a=Kn(r.ref,sL(i));return typeof n=="function"||r.isPresent?E.cloneElement(i,{ref:a}):null};Ou.displayName="Presence";function aL(e){const[t,n]=E.useState(),r=E.useRef(null),i=E.useRef(e),a=E.useRef("none"),s=e?"mounted":"unmounted",[o,l]=iL(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{const u=yd(r.current);a.current=o==="mounted"?u:"none"},[o]),$r(()=>{const u=r.current,c=i.current;if(c!==e){const d=a.current,h=yd(u);e?l("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&d!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),$r(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,f=h=>{const b=yd(r.current).includes(h.animationName);if(h.target===t&&b&&(l("ANIMATION_END"),!i.current)){const T=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=T)})}},d=h=>{h.target===t&&(a.current=yd(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:E.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function yd(e){return(e==null?void 0:e.animationName)||"none"}function sL(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var oL=Jy[" useInsertionEffect ".trim().toString()]||$r;function J0({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,a,s]=lL({defaultProp:t,onChange:n}),o=e!==void 0,l=o?e:i;{const c=E.useRef(e!==void 0);E.useEffect(()=>{const f=c.current;f!==o&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=o},[o,r])}const u=E.useCallback(c=>{var f;if(o){const d=uL(c)?c(e):c;d!==e&&((f=s.current)==null||f.call(s,d))}else a(c)},[o,e,a,s]);return[l,u]}function lL({defaultProp:e,onChange:t}){const[n,r]=E.useState(e),i=E.useRef(n),a=E.useRef(t);return oL(()=>{a.current=t},[t]),E.useEffect(()=>{var s;i.current!==n&&((s=a.current)==null||s.call(a,n),i.current=n)},[n,i]),[n,r,a]}function uL(e){return typeof e=="function"}var cL=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ko=new WeakMap,vd=new WeakMap,xd={},eg=0,tw=function(e){return e&&(e.host||tw(e.parentNode))},fL=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=tw(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},dL=function(e,t,n,r){var i=fL(t,Array.isArray(e)?e:[e]);xd[n]||(xd[n]=new WeakMap);var a=xd[n],s=[],o=new Set,l=new Set(i),u=function(f){!f||o.has(f)||(o.add(f),u(f.parentNode))};i.forEach(u);var c=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(d){if(o.has(d))c(d);else try{var h=d.getAttribute(r),g=h!==null&&h!=="false",b=(ko.get(d)||0)+1,T=(a.get(d)||0)+1;ko.set(d,b),a.set(d,T),s.push(d),b===1&&g&&vd.set(d,!0),T===1&&d.setAttribute(n,"true"),g||d.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",d,m)}})};return c(t),o.clear(),eg++,function(){s.forEach(function(f){var d=ko.get(f)-1,h=a.get(f)-1;ko.set(f,d),a.set(f,h),d||(vd.has(f)||f.removeAttribute(r),vd.delete(f)),h||f.removeAttribute(n)}),eg--,eg||(ko=new WeakMap,ko=new WeakMap,vd=new WeakMap,xd={})}},nw=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=cL(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),dL(r,i,n,"aria-hidden")):function(){return null}},tg=function(e,t){return tg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},tg(e,t)};function rw(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");tg(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var br=function(){return br=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},br.apply(this,arguments)};function Ed(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function iw(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,n,r);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,n,a):s(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function aw(e,t){return function(n,r){t(n,r,e)}}function sw(e,t,n,r,i,a){function s(m){if(m!==void 0&&typeof m!="function")throw new TypeError("Function expected");return m}for(var o=r.kind,l=o==="getter"?"get":o==="setter"?"set":"value",u=!t&&e?r.static?e:e.prototype:null,c=t||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),f,d=!1,h=n.length-1;h>=0;h--){var g={};for(var b in r)g[b]=b==="access"?{}:r[b];for(var b in r.access)g.access[b]=r.access[b];g.addInitializer=function(m){if(d)throw new TypeError("Cannot add initializers after decoration has completed");a.push(s(m||null))};var T=(0,n[h])(o==="accessor"?{get:c.get,set:c.set}:c[l],g);if(o==="accessor"){if(T===void 0)continue;if(T===null||typeof T!="object")throw new TypeError("Object expected");(f=s(T.get))&&(c.get=f),(f=s(T.set))&&(c.set=f),(f=s(T.init))&&i.unshift(f)}else(f=s(T))&&(o==="field"?i.unshift(f):c[l]=f)}u&&Object.defineProperty(u,r.name,c),d=!0}function ow(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function lw(e){return typeof e=="symbol"?e:"".concat(e)}function uw(e,t,n){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function cw(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Ai(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function o(c){try{u(r.next(c))}catch(f){s(f)}}function l(c){try{u(r.throw(c))}catch(f){s(f)}}function u(c){c.done?a(c.value):i(c.value).then(o,l)}u((r=r.apply(e,t||[])).next())})}function fw(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=o(0),s.throw=o(1),s.return=o(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){n.label=u[1];break}if(u[0]===6&&n.label<a[1]){n.label=a[1],a=u;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(u);break}a[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],i=0}finally{r=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var Td=Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]};function dw(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Td(t,e,n)}function wd(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ng(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(o){s={error:o}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return a}function hw(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ng(arguments[t]));return e}function pw(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],s=0,o=a.length;s<o;s++,i++)r[i]=a[s];return r}function rg(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function Oo(e){return this instanceof Oo?(this.v=e,this):new Oo(e)}function mw(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),o("next"),o("throw"),o("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(h){return function(g){return Promise.resolve(g).then(h,f)}}function o(h,g){r[h]&&(i[h]=function(b){return new Promise(function(T,m){a.push([h,b,T,m])>1||l(h,b)})},g&&(i[h]=g(i[h])))}function l(h,g){try{u(r[h](g))}catch(b){d(a[0][3],b)}}function u(h){h.value instanceof Oo?Promise.resolve(h.value.v).then(c,f):d(a[0][2],h)}function c(h){l("next",h)}function f(h){l("throw",h)}function d(h,g){h(g),a.shift(),a.length&&l(a[0][0],a[0][1])}}function gw(e){var t,n;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,a){t[i]=e[i]?function(s){return(n=!n)?{value:Oo(e[i](s)),done:!1}:a?a(s):s}:a}}function bw(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof wd=="function"?wd(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=e[a]&&function(s){return new Promise(function(o,l){s=e[a](s),i(o,l,s.done,s.value)})}}function i(a,s,o,l){Promise.resolve(l).then(function(u){a({value:u,done:o})},s)}}function yw(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var hL=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},ig=function(e){return ig=Object.getOwnPropertyNames||function(t){var n=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[n.length]=r);return n},ig(e)};function vw(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=ig(e),r=0;r<n.length;r++)n[r]!=="default"&&Td(t,e,n[r]);return hL(t,e),t}function xw(e){return e&&e.__esModule?e:{default:e}}function Ew(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function Tw(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n}function ww(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function _w(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r,i;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(i=r)}if(typeof r!="function")throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(a){return Promise.reject(a)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var pL=typeof SuppressedError=="function"?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function Sw(e){function t(a){e.error=e.hasError?new pL(a,e.error,"An error was suppressed during disposal."):a,e.hasError=!0}var n,r=0;function i(){for(;n=e.stack.pop();)try{if(!n.async&&r===1)return r=0,e.stack.push(n),Promise.resolve().then(i);if(n.dispose){var a=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(a).then(i,function(s){return t(s),i()})}else r|=1}catch(s){t(s)}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i()}function Aw(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(n,r,i,a,s){return r?t?".jsx":".js":i&&(!a||!s)?n:i+a+"."+s.toLowerCase()+"js"}):e}const mL=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:_w,get __assign(){return br},__asyncDelegator:gw,__asyncGenerator:mw,__asyncValues:bw,__await:Oo,__awaiter:Ai,__classPrivateFieldGet:Ew,__classPrivateFieldIn:ww,__classPrivateFieldSet:Tw,__createBinding:Td,__decorate:iw,__disposeResources:Sw,__esDecorate:sw,__exportStar:dw,__extends:rw,__generator:fw,__importDefault:xw,__importStar:vw,__makeTemplateObject:yw,__metadata:cw,__param:aw,__propKey:lw,__read:ng,__rest:Ed,__rewriteRelativeImportExtension:Aw,__runInitializers:ow,__setFunctionName:uw,__spread:hw,__spreadArray:rg,__spreadArrays:pw,__values:wd,default:{__extends:rw,__assign:br,__rest:Ed,__decorate:iw,__param:aw,__esDecorate:sw,__runInitializers:ow,__propKey:lw,__setFunctionName:uw,__metadata:cw,__awaiter:Ai,__generator:fw,__createBinding:Td,__exportStar:dw,__values:wd,__read:ng,__spread:hw,__spreadArrays:pw,__spreadArray:rg,__await:Oo,__asyncGenerator:mw,__asyncDelegator:gw,__asyncValues:bw,__makeTemplateObject:yw,__importStar:vw,__importDefault:xw,__classPrivateFieldGet:Ew,__classPrivateFieldSet:Tw,__classPrivateFieldIn:ww,__addDisposableResource:_w,__disposeResources:Sw,__rewriteRelativeImportExtension:Aw}},Symbol.toStringTag,{value:"Module"}));var _d="right-scroll-bar-position",Sd="width-before-scroll-bar",gL="with-scroll-bars-hidden",bL="--removed-body-scroll-bar-size";function ag(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function yL(e,t){var n=E.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var vL=typeof window<"u"?E.useLayoutEffect:E.useEffect,Cw=new WeakMap;function xL(e,t){var n=yL(null,function(r){return e.forEach(function(i){return ag(i,r)})});return vL(function(){var r=Cw.get(n);if(r){var i=new Set(r),a=new Set(e),s=n.current;i.forEach(function(o){a.has(o)||ag(o,null)}),a.forEach(function(o){i.has(o)||ag(o,s)})}Cw.set(n,e)},[e]),n}function EL(e){return e}function TL(e,t){t===void 0&&(t=EL);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(o){return o!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(o){return a(o)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var o=n;n=[],o.forEach(a),s=n}var l=function(){var c=s;s=[],c.forEach(a)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(c){s.push(c),u()},filter:function(c){return s=s.filter(c),n}}}};return i}function wL(e){e===void 0&&(e={});var t=TL(null);return t.options=br({async:!0,ssr:!1},e),t}var kw=function(e){var t=e.sideCar,n=Ed(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return E.createElement(r,br({},n))};kw.isSideCarExport=!0;function _L(e,t){return e.useMedium(t),kw}var Ow=wL(),sg=function(){},Ad=E.forwardRef(function(e,t){var n=E.useRef(null),r=E.useState({onScrollCapture:sg,onWheelCapture:sg,onTouchMoveCapture:sg}),i=r[0],a=r[1],s=e.forwardProps,o=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,f=e.shards,d=e.sideCar,h=e.noRelative,g=e.noIsolation,b=e.inert,T=e.allowPinchZoom,m=e.as,y=m===void 0?"div":m,v=e.gapMode,w=Ed(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=d,A=xL([n,t]),N=br(br({},w),i);return E.createElement(E.Fragment,null,c&&E.createElement(_,{sideCar:Ow,removeScrollBar:u,shards:f,noRelative:h,noIsolation:g,inert:b,setCallbacks:a,allowPinchZoom:!!T,lockRef:n,gapMode:v}),s?E.cloneElement(E.Children.only(o),br(br({},N),{ref:A})):E.createElement(y,br({},N,{className:l,ref:A}),o))});Ad.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ad.classNames={fullWidth:Sd,zeroRight:_d};var SL=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function AL(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=SL();return t&&e.setAttribute("nonce",t),e}function CL(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function kL(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var OL=function(){var e=0,t=null;return{add:function(n){e==0&&(t=AL())&&(CL(t,n),kL(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},RL=function(){var e=OL();return function(t,n){E.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Rw=function(){var e=RL(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},NL={left:0,top:0,right:0,gap:0},og=function(e){return parseInt(e||"",10)||0},DL=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[og(n),og(r),og(i)]},ML=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return NL;var t=DL(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},LL=Rw(),Ro="data-scroll-locked",IL=function(e,t,n,r){var i=e.left,a=e.top,s=e.right,o=e.gap;return n===void 0&&(n="margin"),`
|
|
49
|
+
`).replace(MD,"")}function MT(e,t){return t=DT(t),DT(e)===t}function Gf(){}function Je(e,t,n,r,i,a){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Ys(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Ys(e,""+r);break;case"className":Wc(e,"class",r);break;case"tabIndex":Wc(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Wc(e,n,r);break;case"style":Iv(e,r,a);break;case"data":if(t!=="object"){Wc(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=Jc(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof a=="function"&&(n==="formAction"?(t!=="input"&&Je(e,t,"name",i.name,i,null),Je(e,t,"formEncType",i.formEncType,i,null),Je(e,t,"formMethod",i.formMethod,i,null),Je(e,t,"formTarget",i.formTarget,i,null)):(Je(e,t,"encType",i.encType,i,null),Je(e,t,"method",i.method,i,null),Je(e,t,"target",i.target,i,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=Jc(""+r),e.setAttribute(n,r);break;case"onClick":r!=null&&(e.onclick=Gf);break;case"onScroll":r!=null&&De("scroll",e);break;case"onScrollEnd":r!=null&&De("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(Y(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(Y(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}n=Jc(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":r===!0?e.setAttribute(n,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":De("beforetoggle",e),De("toggle",e),Kc(e,"popover",r);break;case"xlinkActuate":ui(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":ui(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":ui(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":ui(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":ui(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":ui(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":ui(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":ui(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":ui(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Kc(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=uN.get(n)||n,Kc(e,n,r))}}function g0(e,t,n,r,i,a){switch(n){case"style":Iv(e,r,a);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(Y(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(Y(60));e.innerHTML=n}}break;case"children":typeof r=="string"?Ys(e,r):(typeof r=="number"||typeof r=="bigint")&&Ys(e,""+r);break;case"onScroll":r!=null&&De("scroll",e);break;case"onScrollEnd":r!=null&&De("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Gf);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!_v.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),a=e[kn]||null,a=a!=null?a[n]:null,typeof a=="function"&&e.removeEventListener(t,a,i),typeof r=="function")){typeof a!="function"&&a!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break e}n in e?e[n]=r:r===!0?e.setAttribute(n,""):Kc(e,n,r)}}}function on(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":De("error",e),De("load",e);var r=!1,i=!1,a;for(a in n)if(n.hasOwnProperty(a)){var s=n[a];if(s!=null)switch(a){case"src":r=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(Y(137,t));default:Je(e,t,a,s,n,null)}}i&&Je(e,t,"srcSet",n.srcSet,n,null),r&&Je(e,t,"src",n.src,n,null);return;case"input":De("invalid",e);var o=a=s=i=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var c=n[r];if(c!=null)switch(r){case"name":i=c;break;case"type":s=c;break;case"checked":l=c;break;case"defaultChecked":u=c;break;case"value":a=c;break;case"defaultValue":o=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(Y(137,t));break;default:Je(e,t,r,c,n,null)}}Nv(e,a,o,l,u,s,i,!1),Qc(e);return;case"select":De("invalid",e),r=s=a=null;for(i in n)if(n.hasOwnProperty(i)&&(o=n[i],o!=null))switch(i){case"value":a=o;break;case"defaultValue":s=o;break;case"multiple":r=o;default:Je(e,t,i,o,n,null)}t=a,n=s,e.multiple=!!r,t!=null?qs(e,!!r,t,!1):n!=null&&qs(e,!!r,n,!0);return;case"textarea":De("invalid",e),a=i=r=null;for(s in n)if(n.hasOwnProperty(s)&&(o=n[s],o!=null))switch(s){case"value":r=o;break;case"defaultValue":i=o;break;case"children":a=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(Y(91));break;default:Je(e,t,s,o,n,null)}Mv(e,r,i,a),Qc(e);return;case"option":for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:Je(e,t,l,r,n,null)}return;case"dialog":De("beforetoggle",e),De("toggle",e),De("cancel",e),De("close",e);break;case"iframe":case"object":De("load",e);break;case"video":case"audio":for(r=0;r<hu.length;r++)De(hu[r],e);break;case"image":De("error",e),De("load",e);break;case"details":De("toggle",e);break;case"embed":case"source":case"link":De("error",e),De("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(Y(137,t));default:Je(e,t,u,r,n,null)}return;default:if(Dp(t)){for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!==void 0&&g0(e,t,c,r,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(r=n[o],r!=null&&Je(e,t,o,r,n,null))}function LD(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,a=null,s=null,o=null,l=null,u=null,c=null;for(h in n){var f=n[h];if(n.hasOwnProperty(h)&&f!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":l=f;default:r.hasOwnProperty(h)||Je(e,t,h,null,r,f)}}for(var d in r){var h=r[d];if(f=n[d],r.hasOwnProperty(d)&&(h!=null||f!=null))switch(d){case"type":a=h;break;case"name":i=h;break;case"checked":u=h;break;case"defaultChecked":c=h;break;case"value":s=h;break;case"defaultValue":o=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(Y(137,t));break;default:h!==f&&Je(e,t,d,h,r,f)}}Rp(e,s,o,l,u,c,a,i);return;case"select":h=s=o=d=null;for(a in n)if(l=n[a],n.hasOwnProperty(a)&&l!=null)switch(a){case"value":break;case"multiple":h=l;default:r.hasOwnProperty(a)||Je(e,t,a,null,r,l)}for(i in r)if(a=r[i],l=n[i],r.hasOwnProperty(i)&&(a!=null||l!=null))switch(i){case"value":d=a;break;case"defaultValue":o=a;break;case"multiple":s=a;default:a!==l&&Je(e,t,i,a,r,l)}t=o,n=s,r=h,d!=null?qs(e,!!n,d,!1):!!r!=!!n&&(t!=null?qs(e,!!n,t,!0):qs(e,!!n,n?[]:"",!1));return;case"textarea":h=d=null;for(o in n)if(i=n[o],n.hasOwnProperty(o)&&i!=null&&!r.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:Je(e,t,o,null,r,i)}for(s in r)if(i=r[s],a=n[s],r.hasOwnProperty(s)&&(i!=null||a!=null))switch(s){case"value":d=i;break;case"defaultValue":h=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(Y(91));break;default:i!==a&&Je(e,t,s,i,r,a)}Dv(e,d,h);return;case"option":for(var g in n)if(d=n[g],n.hasOwnProperty(g)&&d!=null&&!r.hasOwnProperty(g))switch(g){case"selected":e.selected=!1;break;default:Je(e,t,g,null,r,d)}for(l in r)if(d=r[l],h=n[l],r.hasOwnProperty(l)&&d!==h&&(d!=null||h!=null))switch(l){case"selected":e.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:Je(e,t,l,d,r,h)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var b in n)d=n[b],n.hasOwnProperty(b)&&d!=null&&!r.hasOwnProperty(b)&&Je(e,t,b,null,r,d);for(u in r)if(d=r[u],h=n[u],r.hasOwnProperty(u)&&d!==h&&(d!=null||h!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(Y(137,t));break;default:Je(e,t,u,d,r,h)}return;default:if(Dp(t)){for(var T in n)d=n[T],n.hasOwnProperty(T)&&d!==void 0&&!r.hasOwnProperty(T)&&g0(e,t,T,void 0,r,d);for(c in r)d=r[c],h=n[c],!r.hasOwnProperty(c)||d===h||d===void 0&&h===void 0||g0(e,t,c,d,r,h);return}}for(var m in n)d=n[m],n.hasOwnProperty(m)&&d!=null&&!r.hasOwnProperty(m)&&Je(e,t,m,null,r,d);for(f in r)d=r[f],h=n[f],!r.hasOwnProperty(f)||d===h||d==null&&h==null||Je(e,t,f,d,r,h)}var b0=null,y0=null;function $f(e){return e.nodeType===9?e:e.ownerDocument}function LT(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function IT(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function v0(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var x0=null;function ID(){var e=window.event;return e&&e.type==="popstate"?e===x0?!1:(x0=e,!0):(x0=null,!1)}var PT=typeof setTimeout=="function"?setTimeout:void 0,PD=typeof clearTimeout=="function"?clearTimeout:void 0,BT=typeof Promise=="function"?Promise:void 0,BD=typeof queueMicrotask=="function"?queueMicrotask:typeof BT<"u"?function(e){return BT.resolve(null).then(e).catch(UD)}:PT;function UD(e){setTimeout(function(){throw e})}function fa(e){return e==="head"}function UT(e,t){var n=t,r=0,i=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(0<r&&8>r){n=r;var s=e.ownerDocument;if(n&1&&mu(s.documentElement),n&2&&mu(s.body),n&4)for(n=s.head,mu(n),s=n.firstChild;s;){var o=s.nextSibling,l=s.nodeName;s[Rl]||l==="SCRIPT"||l==="STYLE"||l==="LINK"&&s.rel.toLowerCase()==="stylesheet"||n.removeChild(s),s=o}}if(i===0){e.removeChild(a),wu(t);return}i--}else n==="$"||n==="$?"||n==="$!"?i++:r=n.charCodeAt(0)-48;else r=0;n=a}while(n);wu(t)}function E0(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":E0(n),Ap(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function zD(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[Rl])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(a=e.getAttribute("rel"),a==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(a!==i.rel||e.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute("title")!==(i.title==null?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(a=e.getAttribute("src"),(a!==(i.src==null?null:i.src)||e.getAttribute("type")!==(i.type==null?null:i.type)||e.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var a=i.name==null?null:""+i.name;if(i.type==="hidden"&&e.getAttribute("name")===a)return e}else return e;if(e=Or(e.nextSibling),e===null)break}return null}function jD(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Or(e.nextSibling),e===null))return null;return e}function T0(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function FD(e,t){var n=e.ownerDocument;if(e.data!=="$?"||n.readyState==="complete")t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function Or(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var w0=null;function zT(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}function jT(e,t,n){switch(t=$f(n),e){case"html":if(e=t.documentElement,!e)throw Error(Y(452));return e;case"head":if(e=t.head,!e)throw Error(Y(453));return e;case"body":if(e=t.body,!e)throw Error(Y(454));return e;default:throw Error(Y(451))}}function mu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ap(e)}var gr=new Map,FT=new Set;function Xf(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var wi=Ye.d;Ye.d={f:HD,r:VD,D:qD,C:YD,L:GD,m:$D,X:KD,S:XD,M:WD};function HD(){var e=wi.f(),t=zf();return e||t}function VD(e){var t=js(e);t!==null&&t.tag===5&&t.type==="form"?oE(t):wi.r(e)}var Eo=typeof document>"u"?null:document;function HT(e,t,n){var r=Eo;if(r&&typeof t=="string"&&t){var i=ur(t);i='link[rel="'+e+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),FT.has(i)||(FT.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement("link"),on(t,"link",e),Kt(t),r.head.appendChild(t)))}}function qD(e){wi.D(e),HT("dns-prefetch",e,null)}function YD(e,t){wi.C(e,t),HT("preconnect",e,t)}function GD(e,t,n){wi.L(e,t,n);var r=Eo;if(r&&e&&t){var i='link[rel="preload"][as="'+ur(t)+'"]';t==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+ur(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+ur(n.imageSizes)+'"]')):i+='[href="'+ur(e)+'"]';var a=i;switch(t){case"style":a=To(e);break;case"script":a=wo(e)}gr.has(a)||(e=ct({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),gr.set(a,e),r.querySelector(i)!==null||t==="style"&&r.querySelector(gu(a))||t==="script"&&r.querySelector(bu(a))||(t=r.createElement("link"),on(t,"link",e),Kt(t),r.head.appendChild(t)))}}function $D(e,t){wi.m(e,t);var n=Eo;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",i='link[rel="modulepreload"][as="'+ur(r)+'"][href="'+ur(e)+'"]',a=i;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=wo(e)}if(!gr.has(a)&&(e=ct({rel:"modulepreload",href:e},t),gr.set(a,e),n.querySelector(i)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(bu(a)))return}r=n.createElement("link"),on(r,"link",e),Kt(r),n.head.appendChild(r)}}}function XD(e,t,n){wi.S(e,t,n);var r=Eo;if(r&&e){var i=Fs(r).hoistableStyles,a=To(e);t=t||"default";var s=i.get(a);if(!s){var o={loading:0,preload:null};if(s=r.querySelector(gu(a)))o.loading=5;else{e=ct({rel:"stylesheet",href:e,"data-precedence":t},n),(n=gr.get(a))&&_0(e,n);var l=s=r.createElement("link");Kt(l),on(l,"link",e),l._p=new Promise(function(u,c){l.onload=u,l.onerror=c}),l.addEventListener("load",function(){o.loading|=1}),l.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Kf(s,t,r)}s={type:"stylesheet",instance:s,count:1,state:o},i.set(a,s)}}}function KD(e,t){wi.X(e,t);var n=Eo;if(n&&e){var r=Fs(n).hoistableScripts,i=wo(e),a=r.get(i);a||(a=n.querySelector(bu(i)),a||(e=ct({src:e,async:!0},t),(t=gr.get(i))&&S0(e,t),a=n.createElement("script"),Kt(a),on(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},r.set(i,a))}}function WD(e,t){wi.M(e,t);var n=Eo;if(n&&e){var r=Fs(n).hoistableScripts,i=wo(e),a=r.get(i);a||(a=n.querySelector(bu(i)),a||(e=ct({src:e,async:!0,type:"module"},t),(t=gr.get(i))&&S0(e,t),a=n.createElement("script"),Kt(a),on(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},r.set(i,a))}}function VT(e,t,n,r){var i=(i=Gi.current)?Xf(i):null;if(!i)throw Error(Y(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=To(n.href),n=Fs(i).hoistableStyles,r=n.get(t),r||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=To(n.href);var a=Fs(i).hoistableStyles,s=a.get(e);if(s||(i=i.ownerDocument||i,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},a.set(e,s),(a=i.querySelector(gu(e)))&&!a._p&&(s.instance=a,s.state.loading=5),gr.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},gr.set(e,n),a||QD(i,e,n,s.state))),t&&r===null)throw Error(Y(528,""));return s}if(t&&r!==null)throw Error(Y(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=wo(n),n=Fs(i).hoistableScripts,r=n.get(t),r||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(Y(444,e))}}function To(e){return'href="'+ur(e)+'"'}function gu(e){return'link[rel="stylesheet"]['+e+"]"}function qT(e){return ct({},e,{"data-precedence":e.precedence,precedence:null})}function QD(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),on(t,"link",n),Kt(t),e.head.appendChild(t))}function wo(e){return'[src="'+ur(e)+'"]'}function bu(e){return"script[async]"+e}function YT(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+ur(n.href)+'"]');if(r)return t.instance=r,Kt(r),r;var i=ct({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),Kt(r),on(r,"style",i),Kf(r,n.precedence,e),t.instance=r;case"stylesheet":i=To(n.href);var a=e.querySelector(gu(i));if(a)return t.state.loading|=4,t.instance=a,Kt(a),a;r=qT(n),(i=gr.get(i))&&_0(r,i),a=(e.ownerDocument||e).createElement("link"),Kt(a);var s=a;return s._p=new Promise(function(o,l){s.onload=o,s.onerror=l}),on(a,"link",r),t.state.loading|=4,Kf(a,n.precedence,e),t.instance=a;case"script":return a=wo(n.src),(i=e.querySelector(bu(a)))?(t.instance=i,Kt(i),i):(r=n,(i=gr.get(a))&&(r=ct({},n),S0(r,i)),e=e.ownerDocument||e,i=e.createElement("script"),Kt(i),on(i,"link",r),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(Y(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Kf(r,n.precedence,e));return t.instance}function Kf(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=r.length?r[r.length-1]:null,a=i,s=0;s<r.length;s++){var o=r[s];if(o.dataset.precedence===t)a=o;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function _0(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function S0(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Wf=null;function GT(e,t,n){if(Wf===null){var r=new Map,i=Wf=new Map;i.set(n,r)}else i=Wf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Rl]||a[dn]||e==="link"&&a.getAttribute("rel")==="stylesheet")&&a.namespaceURI!=="http://www.w3.org/2000/svg"){var s=a.getAttribute(t)||"";s=e+s;var o=r.get(s);o?o.push(a):r.set(s,[a])}}return r}function $T(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function ZD(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function XT(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}var yu=null;function JD(){}function e5(e,t,n){if(yu===null)throw Error(Y(475));var r=yu;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(t.state.loading&4)){if(t.instance===null){var i=To(n.href),a=e.querySelector(gu(i));if(a){e=a._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(r.count++,r=Qf.bind(r),e.then(r,r)),t.state.loading|=4,t.instance=a,Kt(a);return}a=e.ownerDocument||e,n=qT(n),(i=gr.get(i))&&_0(n,i),a=a.createElement("link"),Kt(a);var s=a;s._p=new Promise(function(o,l){s.onload=o,s.onerror=l}),on(a,"link",n),t.instance=a}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(t,e),(e=t.state.preload)&&!(t.state.loading&3)&&(r.count++,t=Qf.bind(r),e.addEventListener("load",t),e.addEventListener("error",t))}}function t5(){if(yu===null)throw Error(Y(475));var e=yu;return e.stylesheets&&e.count===0&&A0(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&A0(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function Qf(){if(this.count--,this.count===0){if(this.stylesheets)A0(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Zf=null;function A0(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Zf=new Map,t.forEach(n5,e),Zf=null,Qf.call(e))}function n5(e,t){if(!(t.state.loading&4)){var n=Zf.get(e);if(n)var r=n.get(null);else{n=new Map,Zf.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a<i.length;a++){var s=i[a];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(n.set(s.dataset.precedence,s),r=s)}r&&n.set(null,r)}i=t.instance,s=i.getAttribute("data-precedence"),a=n.get(s)||r,a===r&&n.set(null,i),n.set(s,i),this.count++,r=Qf.bind(this),i.addEventListener("load",r),i.addEventListener("error",r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var vu={$$typeof:li,Provider:null,Consumer:null,_currentValue:Ha,_currentValue2:Ha,_threadCount:0};function r5(e,t,n,r,i,a,s,o){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Tp(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Tp(0),this.hiddenUpdates=Tp(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=o,this.incompleteTransitions=new Map}function KT(e,t,n,r,i,a,s,o,l,u,c,f){return e=new r5(e,t,n,s,o,l,u,f),t=1,a===!0&&(t|=24),a=Vn(3,null,null,t),e.current=a,a.stateNode=e,t=om(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},fm(a),e}function WT(e){return e?(e=Js,e):Js}function QT(e,t,n,r,i,a){i=WT(i),r.context===null?r.context=i:r.pendingContext=i,r=Zi(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ji(e,r,t),n!==null&&(Xn(n,e,t),Kl(n,e,t))}function ZT(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function C0(e,t){ZT(e,t),(e=e.alternate)&&ZT(e,t)}function JT(e){if(e.tag===13){var t=Zs(e,67108864);t!==null&&Xn(t,e,67108864),C0(e,67108864)}}var Jf=!0;function i5(e,t,n,r){var i=ge.T;ge.T=null;var a=Ye.p;try{Ye.p=2,k0(e,t,n,r)}finally{Ye.p=a,ge.T=i}}function a5(e,t,n,r){var i=ge.T;ge.T=null;var a=Ye.p;try{Ye.p=8,k0(e,t,n,r)}finally{Ye.p=a,ge.T=i}}function k0(e,t,n,r){if(Jf){var i=O0(r);if(i===null)m0(e,t,r,ed,n),t2(e,r);else if(o5(i,e,t,n,r))r.stopPropagation();else if(t2(e,r),t&4&&-1<s5.indexOf(e)){for(;i!==null;){var a=js(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var s=Va(a.pendingLanes);if(s!==0){var o=a;for(o.pendingLanes|=2,o.entangledLanes|=2;s;){var l=1<<31-Fn(s);o.entanglements[1]|=l,s&=~l}Gr(a),!(Ke&6)&&(Bf=Fr()+500,du(0))}}break;case 13:o=Zs(a,2),o!==null&&Xn(o,a,2),zf(),C0(a,2)}if(a=O0(r),a===null&&m0(e,t,r,ed,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else m0(e,t,r,null,n)}}function O0(e){return e=Lp(e),R0(e)}var ed=null;function R0(e){if(ed=null,e=zs(e),e!==null){var t=Tl(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=lv(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return ed=e,null}function e2(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Y4()){case pv:return 2;case mv:return 8;case Yc:case G4:return 32;case gv:return 268435456;default:return 32}default:return 32}}var N0=!1,da=null,ha=null,pa=null,xu=new Map,Eu=new Map,ma=[],s5="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 t2(e,t){switch(e){case"focusin":case"focusout":da=null;break;case"dragenter":case"dragleave":ha=null;break;case"mouseover":case"mouseout":pa=null;break;case"pointerover":case"pointerout":xu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Eu.delete(t.pointerId)}}function Tu(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=js(t),t!==null&&JT(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function o5(e,t,n,r,i){switch(t){case"focusin":return da=Tu(da,e,t,n,r,i),!0;case"dragenter":return ha=Tu(ha,e,t,n,r,i),!0;case"mouseover":return pa=Tu(pa,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return xu.set(a,Tu(xu.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,Eu.set(a,Tu(Eu.get(a)||null,e,t,n,r,i)),!0}return!1}function n2(e){var t=zs(e.target);if(t!==null){var n=Tl(t);if(n!==null){if(t=n.tag,t===13){if(t=lv(n),t!==null){e.blockedOn=t,eN(e.priority,function(){if(n.tag===13){var r=$n();r=wp(r);var i=Zs(n,r);i!==null&&Xn(i,n,r),C0(n,r)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function td(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=O0(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Mp=r,n.target.dispatchEvent(r),Mp=null}else return t=js(n),t!==null&&JT(t),e.blockedOn=n,!1;t.shift()}return!0}function r2(e,t,n){td(e)&&n.delete(t)}function l5(){N0=!1,da!==null&&td(da)&&(da=null),ha!==null&&td(ha)&&(ha=null),pa!==null&&td(pa)&&(pa=null),xu.forEach(r2),Eu.forEach(r2)}function nd(e,t){e.blockedOn===t&&(e.blockedOn=null,N0||(N0=!0,jt.unstable_scheduleCallback(jt.unstable_NormalPriority,l5)))}var rd=null;function i2(e){rd!==e&&(rd=e,jt.unstable_scheduleCallback(jt.unstable_NormalPriority,function(){rd===e&&(rd=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!="function"){if(R0(r||n)===null)continue;break}var a=js(n);a!==null&&(e.splice(t,3),t-=3,Rm(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function wu(e){function t(l){return nd(l,e)}da!==null&&nd(da,e),ha!==null&&nd(ha,e),pa!==null&&nd(pa,e),xu.forEach(t),Eu.forEach(t);for(var n=0;n<ma.length;n++){var r=ma[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<ma.length&&(n=ma[0],n.blockedOn===null);)n2(n),n.blockedOn===null&&ma.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],s=i[kn]||null;if(typeof a=="function")s||i2(n);else if(s){var o=null;if(a&&a.hasAttribute("formAction")){if(i=a,s=a[kn]||null)o=s.formAction;else if(R0(i)!==null)continue}else o=s.action;typeof o=="function"?n[r+1]=o:(n.splice(r,3),r-=3),i2(n)}}}function D0(e){this._internalRoot=e}id.prototype.render=D0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(Y(409));var n=t.current,r=$n();QT(n,r,e,t,null,null)},id.prototype.unmount=D0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;QT(e.current,2,null,e,null,null),zf(),t[Us]=null}};function id(e){this._internalRoot=e}id.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ev();e={blockedOn:null,target:e,priority:t};for(var n=0;n<ma.length&&t!==0&&t<ma[n].priority;n++);ma.splice(n,0,e),n===0&&n2(e)}};var a2=sv.version;if(a2!=="19.1.1")throw Error(Y(527,a2,"19.1.1"));Ye.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(Y(188)):(e=Object.keys(e).join(","),Error(Y(268,e)));return e=U4(t),e=e!==null?cv(e):null,e=e===null?null:e.stateNode,e};var u5={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:ge,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ad=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ad.isDisabled&&ad.supportsFiber)try{Cl=ad.inject(u5),jn=ad}catch{}}zc.createRoot=function(e,t){if(!ov(e))throw Error(Y(299));var n=!1,r="",i=EE,a=TE,s=wE,o=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(o=t.unstable_transitionCallbacks)),t=KT(e,1,!1,null,null,n,r,i,a,s,o,null),e[Us]=t.current,p0(e),new D0(t)},zc.hydrateRoot=function(e,t,n){if(!ov(e))throw Error(Y(299));var r=!1,i="",a=EE,s=TE,o=wE,l=null,u=null;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(a=n.onUncaughtError),n.onCaughtError!==void 0&&(s=n.onCaughtError),n.onRecoverableError!==void 0&&(o=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(l=n.unstable_transitionCallbacks),n.formState!==void 0&&(u=n.formState)),t=KT(e,1,!0,t,n??null,r,i,a,s,o,l,u),t.context=WT(null),n=t.current,r=$n(),r=wp(r),i=Zi(r),i.callback=null,Ji(n,i,r),n=r,t.current.lanes=n,Ol(t,n),Gr(t),e[Us]=t.current,p0(e),new id(t)},zc.version="19.1.1";function s2(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(s2)}catch(e){console.error(e)}}s2(),ev.exports=zc;var c5=ev.exports;const f5="4.0.3";function Vt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function o2(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function l2(...e){return t=>{let n=!1;const r=e.map(i=>{const a=o2(i,t);return!n&&typeof a=="function"&&(n=!0),a});if(n)return()=>{for(let i=0;i<r.length;i++){const a=r[i];typeof a=="function"?a():o2(e[i],null)}}}}function Kn(...e){return E.useCallback(l2(...e),e)}function d5(e,t){const n=E.createContext(t),r=a=>{const{children:s,...o}=a,l=E.useMemo(()=>o,Object.values(o));return x.jsx(n.Provider,{value:l,children:s})};r.displayName=e+"Provider";function i(a){const s=E.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${a}\` must be used within \`${e}\``)}return[r,i]}function _u(e,t=[]){let n=[];function r(a,s){const o=E.createContext(s),l=n.length;n=[...n,s];const u=f=>{var m;const{scope:d,children:h,...g}=f,b=((m=d==null?void 0:d[e])==null?void 0:m[l])||o,T=E.useMemo(()=>g,Object.values(g));return x.jsx(b.Provider,{value:T,children:h})};u.displayName=a+"Provider";function c(f,d){var b;const h=((b=d==null?void 0:d[e])==null?void 0:b[l])||o,g=E.useContext(h);if(g)return g;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${a}\``)}return[u,c]}const i=()=>{const a=n.map(s=>E.createContext(s));return function(o){const l=(o==null?void 0:o[e])||a;return E.useMemo(()=>({[`__scope${e}`]:{...o,[e]:l}}),[o,l])}};return i.scopeName=e,[r,h5(i,...t)]}function h5(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(a){const s=r.reduce((o,{useScope:l,scopeName:u})=>{const f=l(a)[`__scope${u}`];return{...o,...f}},{});return E.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function sd(e){const t=m5(e),n=E.forwardRef((r,i)=>{const{children:a,...s}=r,o=E.Children.toArray(a),l=o.find(b5);if(l){const u=l.props.children,c=o.map(f=>f===l?E.Children.count(u)>1?E.Children.only(null):E.isValidElement(u)?u.props.children:null:f);return x.jsx(t,{...s,ref:i,children:E.isValidElement(u)?E.cloneElement(u,void 0,c):null})}return x.jsx(t,{...s,ref:i,children:a})});return n.displayName=`${e}.Slot`,n}var p5=sd("Slot");function m5(e){const t=E.forwardRef((n,r)=>{const{children:i,...a}=n;if(E.isValidElement(i)){const s=v5(i),o=y5(a,i.props);return i.type!==E.Fragment&&(o.ref=r?l2(r,s):s),E.cloneElement(i,o)}return E.Children.count(i)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var u2=Symbol("radix.slottable");function g5(e){const t=({children:n})=>x.jsx(x.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=u2,t}function b5(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===u2}function y5(e,t){const n={...t};for(const r in t){const i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...o)=>{const l=a(...o);return i(...o),l}:i&&(n[r]=i):r==="style"?n[r]={...i,...a}:r==="className"&&(n[r]=[i,a].filter(Boolean).join(" "))}return{...e,...n}}function v5(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var x5=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Zt=x5.reduce((e,t)=>{const n=sd(`Primitive.${t}`),r=E.forwardRef((i,a)=>{const{asChild:s,...o}=i,l=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(l,{...o,ref:a})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function E5(e,t){e&&Ls.flushSync(()=>e.dispatchEvent(t))}function os(e){const t=E.useRef(e);return E.useEffect(()=>{t.current=e}),E.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function T5(e,t=globalThis==null?void 0:globalThis.document){const n=os(e);E.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var w5="DismissableLayer",M0="dismissableLayer.update",_5="dismissableLayer.pointerDownOutside",S5="dismissableLayer.focusOutside",c2,f2=E.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),od=E.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:o,...l}=e,u=E.useContext(f2),[c,f]=E.useState(null),d=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,h]=E.useState({}),g=Kn(t,N=>f(N)),b=Array.from(u.layers),[T]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),m=b.indexOf(T),y=c?b.indexOf(c):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,w=y>=m,_=k5(N=>{const L=N.target,F=[...u.branches].some(R=>R.contains(L));!w||F||(i==null||i(N),s==null||s(N),N.defaultPrevented||o==null||o())},d),A=O5(N=>{const L=N.target;[...u.branches].some(R=>R.contains(L))||(a==null||a(N),s==null||s(N),N.defaultPrevented||o==null||o())},d);return T5(N=>{y===u.layers.size-1&&(r==null||r(N),!N.defaultPrevented&&o&&(N.preventDefault(),o()))},d),E.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(c2=d.body.style.pointerEvents,d.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),d2(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(d.body.style.pointerEvents=c2)}},[c,d,n,u]),E.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),d2())},[c,u]),E.useEffect(()=>{const N=()=>h({});return document.addEventListener(M0,N),()=>document.removeEventListener(M0,N)},[]),x.jsx(Zt.div,{...l,ref:g,style:{pointerEvents:v?w?"auto":"none":void 0,...e.style},onFocusCapture:Vt(e.onFocusCapture,A.onFocusCapture),onBlurCapture:Vt(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:Vt(e.onPointerDownCapture,_.onPointerDownCapture)})});od.displayName=w5;var A5="DismissableLayerBranch",C5=E.forwardRef((e,t)=>{const n=E.useContext(f2),r=E.useRef(null),i=Kn(t,r);return E.useEffect(()=>{const a=r.current;if(a)return n.branches.add(a),()=>{n.branches.delete(a)}},[n.branches]),x.jsx(Zt.div,{...e,ref:i})});C5.displayName=A5;function k5(e,t=globalThis==null?void 0:globalThis.document){const n=os(e),r=E.useRef(!1),i=E.useRef(()=>{});return E.useEffect(()=>{const a=o=>{if(o.target&&!r.current){let l=function(){h2(_5,n,u,{discrete:!0})};const u={originalEvent:o};o.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=l,t.addEventListener("click",i.current,{once:!0})):l()}else t.removeEventListener("click",i.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",a),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function O5(e,t=globalThis==null?void 0:globalThis.document){const n=os(e),r=E.useRef(!1);return E.useEffect(()=>{const i=a=>{a.target&&!r.current&&h2(S5,n,{originalEvent:a},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function d2(){const e=new CustomEvent(M0);document.dispatchEvent(e)}function h2(e,t,n,{discrete:r}){const i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?E5(i,a):i.dispatchEvent(a)}var L0=0;function p2(){E.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??m2()),document.body.insertAdjacentElement("beforeend",e[1]??m2()),L0++,()=>{L0===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),L0--}},[])}function m2(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var I0="focusScope.autoFocusOnMount",P0="focusScope.autoFocusOnUnmount",g2={bubbles:!1,cancelable:!0},R5="FocusScope",B0=E.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...s}=e,[o,l]=E.useState(null),u=os(i),c=os(a),f=E.useRef(null),d=Kn(t,b=>l(b)),h=E.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;E.useEffect(()=>{if(r){let b=function(v){if(h.paused||!o)return;const w=v.target;o.contains(w)?f.current=w:ga(f.current,{select:!0})},T=function(v){if(h.paused||!o)return;const w=v.relatedTarget;w!==null&&(o.contains(w)||ga(f.current,{select:!0}))},m=function(v){if(document.activeElement===document.body)for(const _ of v)_.removedNodes.length>0&&ga(o)};document.addEventListener("focusin",b),document.addEventListener("focusout",T);const y=new MutationObserver(m);return o&&y.observe(o,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",b),document.removeEventListener("focusout",T),y.disconnect()}}},[r,o,h.paused]),E.useEffect(()=>{if(o){v2.add(h);const b=document.activeElement;if(!o.contains(b)){const m=new CustomEvent(I0,g2);o.addEventListener(I0,u),o.dispatchEvent(m),m.defaultPrevented||(N5(P5(b2(o)),{select:!0}),document.activeElement===b&&ga(o))}return()=>{o.removeEventListener(I0,u),setTimeout(()=>{const m=new CustomEvent(P0,g2);o.addEventListener(P0,c),o.dispatchEvent(m),m.defaultPrevented||ga(b??document.body,{select:!0}),o.removeEventListener(P0,c),v2.remove(h)},0)}}},[o,u,c,h]);const g=E.useCallback(b=>{if(!n&&!r||h.paused)return;const T=b.key==="Tab"&&!b.altKey&&!b.ctrlKey&&!b.metaKey,m=document.activeElement;if(T&&m){const y=b.currentTarget,[v,w]=D5(y);v&&w?!b.shiftKey&&m===w?(b.preventDefault(),n&&ga(v,{select:!0})):b.shiftKey&&m===v&&(b.preventDefault(),n&&ga(w,{select:!0})):m===y&&b.preventDefault()}},[n,r,h.paused]);return x.jsx(Zt.div,{tabIndex:-1,...s,ref:d,onKeyDown:g})});B0.displayName=R5;function N5(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ga(r,{select:t}),document.activeElement!==n)return}function D5(e){const t=b2(e),n=y2(t,e),r=y2(t.reverse(),e);return[n,r]}function b2(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function y2(e,t){for(const n of e)if(!M5(n,{upTo:t}))return n}function M5(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function L5(e){return e instanceof HTMLInputElement&&"select"in e}function ga(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&L5(e)&&t&&e.select()}}var v2=I5();function I5(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=x2(e,t),e.unshift(t)},remove(t){var n;e=x2(e,t),(n=e[0])==null||n.resume()}}}function x2(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function P5(e){return e.filter(t=>t.tagName!=="A")}var $r=globalThis!=null&&globalThis.document?E.useLayoutEffect:()=>{},B5=Jy[" useId ".trim().toString()]||(()=>{}),U5=0;function Su(e){const[t,n]=E.useState(B5());return $r(()=>{n(r=>r??String(U5++))},[e]),e||(t?`radix-${t}`:"")}const z5=["top","right","bottom","left"],ba=Math.min,Wn=Math.max,ld=Math.round,ud=Math.floor,Xr=e=>({x:e,y:e}),j5={left:"right",right:"left",bottom:"top",top:"bottom"},F5={start:"end",end:"start"};function U0(e,t,n){return Wn(e,ba(t,n))}function _i(e,t){return typeof e=="function"?e(t):e}function Si(e){return e.split("-")[0]}function _o(e){return e.split("-")[1]}function z0(e){return e==="x"?"y":"x"}function j0(e){return e==="y"?"height":"width"}const H5=new Set(["top","bottom"]);function Kr(e){return H5.has(Si(e))?"y":"x"}function F0(e){return z0(Kr(e))}function V5(e,t,n){n===void 0&&(n=!1);const r=_o(e),i=F0(e),a=j0(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=cd(s)),[s,cd(s)]}function q5(e){const t=cd(e);return[H0(e),t,H0(t)]}function H0(e){return e.replace(/start|end/g,t=>F5[t])}const E2=["left","right"],T2=["right","left"],Y5=["top","bottom"],G5=["bottom","top"];function $5(e,t,n){switch(e){case"top":case"bottom":return n?t?T2:E2:t?E2:T2;case"left":case"right":return t?Y5:G5;default:return[]}}function X5(e,t,n,r){const i=_o(e);let a=$5(Si(e),n==="start",r);return i&&(a=a.map(s=>s+"-"+i),t&&(a=a.concat(a.map(H0)))),a}function cd(e){return e.replace(/left|right|bottom|top/g,t=>j5[t])}function K5(e){return{top:0,right:0,bottom:0,left:0,...e}}function w2(e){return typeof e!="number"?K5(e):{top:e,right:e,bottom:e,left:e}}function fd(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function _2(e,t,n){let{reference:r,floating:i}=e;const a=Kr(t),s=F0(t),o=j0(s),l=Si(t),u=a==="y",c=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,d=r[o]/2-i[o]/2;let h;switch(l){case"top":h={x:c,y:r.y-i.height};break;case"bottom":h={x:c,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-i.width,y:f};break;default:h={x:r.x,y:r.y}}switch(_o(t)){case"start":h[s]-=d*(n&&u?-1:1);break;case"end":h[s]+=d*(n&&u?-1:1);break}return h}const W5=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:s}=n,o=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=_2(u,r,l),d=r,h={},g=0;for(let b=0;b<o.length;b++){const{name:T,fn:m}=o[b],{x:y,y:v,data:w,reset:_}=await m({x:c,y:f,initialPlacement:r,placement:d,strategy:i,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});c=y??c,f=v??f,h={...h,[T]:{...h[T],...w}},_&&g<=50&&(g++,typeof _=="object"&&(_.placement&&(d=_.placement),_.rects&&(u=_.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):_.rects),{x:c,y:f}=_2(u,d,l)),b=-1)}return{x:c,y:f,placement:d,strategy:i,middlewareData:h}};async function Au(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:s,elements:o,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:d=!1,padding:h=0}=_i(t,e),g=w2(h),T=o[d?f==="floating"?"reference":"floating":f],m=fd(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(T)))==null||n?T:T.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(o.floating)),boundary:u,rootBoundary:c,strategy:l})),y=f==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,v=await(a.getOffsetParent==null?void 0:a.getOffsetParent(o.floating)),w=await(a.isElement==null?void 0:a.isElement(v))?await(a.getScale==null?void 0:a.getScale(v))||{x:1,y:1}:{x:1,y:1},_=fd(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:y,offsetParent:v,strategy:l}):y);return{top:(m.top-_.top+g.top)/w.y,bottom:(_.bottom-m.bottom+g.bottom)/w.y,left:(m.left-_.left+g.left)/w.x,right:(_.right-m.right+g.right)/w.x}}const Q5=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:s,elements:o,middlewareData:l}=t,{element:u,padding:c=0}=_i(e,t)||{};if(u==null)return{};const f=w2(c),d={x:n,y:r},h=F0(i),g=j0(h),b=await s.getDimensions(u),T=h==="y",m=T?"top":"left",y=T?"bottom":"right",v=T?"clientHeight":"clientWidth",w=a.reference[g]+a.reference[h]-d[h]-a.floating[g],_=d[h]-a.reference[h],A=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let N=A?A[v]:0;(!N||!await(s.isElement==null?void 0:s.isElement(A)))&&(N=o.floating[v]||a.floating[g]);const L=w/2-_/2,F=N/2-b[g]/2-1,R=ba(f[m],F),q=ba(f[y],F),j=R,ne=N-b[g]-q,K=N/2-b[g]/2+L,W=U0(j,K,ne),H=!l.arrow&&_o(i)!=null&&K!==W&&a.reference[g]/2-(K<j?R:q)-b[g]/2<0,V=H?K<j?K-j:K-ne:0;return{[h]:d[h]+V,data:{[h]:W,centerOffset:K-W-V,...H&&{alignmentOffset:V}},reset:H}}}),Z5=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:a,rects:s,initialPlacement:o,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:b=!0,...T}=_i(e,t);if((n=a.arrow)!=null&&n.alignmentOffset)return{};const m=Si(i),y=Kr(o),v=Si(o)===o,w=await(l.isRTL==null?void 0:l.isRTL(u.floating)),_=d||(v||!b?[cd(o)]:q5(o)),A=g!=="none";!d&&A&&_.push(...X5(o,b,g,w));const N=[o,..._],L=await Au(t,T),F=[];let R=((r=a.flip)==null?void 0:r.overflows)||[];if(c&&F.push(L[m]),f){const K=V5(i,s,w);F.push(L[K[0]],L[K[1]])}if(R=[...R,{placement:i,overflows:F}],!F.every(K=>K<=0)){var q,j;const K=(((q=a.flip)==null?void 0:q.index)||0)+1,W=N[K];if(W&&(!(f==="alignment"?y!==Kr(W):!1)||R.every(z=>Kr(z.placement)===y?z.overflows[0]>0:!0)))return{data:{index:K,overflows:R},reset:{placement:W}};let H=(j=R.filter(V=>V.overflows[0]<=0).sort((V,z)=>V.overflows[1]-z.overflows[1])[0])==null?void 0:j.placement;if(!H)switch(h){case"bestFit":{var ne;const V=(ne=R.filter(z=>{if(A){const te=Kr(z.placement);return te===y||te==="y"}return!0}).map(z=>[z.placement,z.overflows.filter(te=>te>0).reduce((te,O)=>te+O,0)]).sort((z,te)=>z[1]-te[1])[0])==null?void 0:ne[0];V&&(H=V);break}case"initialPlacement":H=o;break}if(i!==H)return{reset:{placement:H}}}return{}}}};function S2(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function A2(e){return z5.some(t=>e[t]>=0)}const J5=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=_i(e,t);switch(r){case"referenceHidden":{const a=await Au(t,{...i,elementContext:"reference"}),s=S2(a,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:A2(s)}}}case"escaped":{const a=await Au(t,{...i,altBoundary:!0}),s=S2(a,n.floating);return{data:{escapedOffsets:s,escaped:A2(s)}}}default:return{}}}}},C2=new Set(["left","top"]);async function eM(e,t){const{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Si(n),o=_o(n),l=Kr(n)==="y",u=C2.has(s)?-1:1,c=a&&l?-1:1,f=_i(t,e);let{mainAxis:d,crossAxis:h,alignmentAxis:g}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return o&&typeof g=="number"&&(h=o==="end"?g*-1:g),l?{x:h*c,y:d*u}:{x:d*u,y:h*c}}const tM=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:a,placement:s,middlewareData:o}=t,l=await eM(t,e);return s===((n=o.offset)==null?void 0:n.placement)&&(r=o.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:a+l.y,data:{...l,placement:s}}}}},nM=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:o={fn:T=>{let{x:m,y}=T;return{x:m,y}}},...l}=_i(e,t),u={x:n,y:r},c=await Au(t,l),f=Kr(Si(i)),d=z0(f);let h=u[d],g=u[f];if(a){const T=d==="y"?"top":"left",m=d==="y"?"bottom":"right",y=h+c[T],v=h-c[m];h=U0(y,h,v)}if(s){const T=f==="y"?"top":"left",m=f==="y"?"bottom":"right",y=g+c[T],v=g-c[m];g=U0(y,g,v)}const b=o.fn({...t,[d]:h,[f]:g});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[d]:a,[f]:s}}}}}},rM=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:a,middlewareData:s}=t,{offset:o=0,mainAxis:l=!0,crossAxis:u=!0}=_i(e,t),c={x:n,y:r},f=Kr(i),d=z0(f);let h=c[d],g=c[f];const b=_i(o,t),T=typeof b=="number"?{mainAxis:b,crossAxis:0}:{mainAxis:0,crossAxis:0,...b};if(l){const v=d==="y"?"height":"width",w=a.reference[d]-a.floating[v]+T.mainAxis,_=a.reference[d]+a.reference[v]-T.mainAxis;h<w?h=w:h>_&&(h=_)}if(u){var m,y;const v=d==="y"?"width":"height",w=C2.has(Si(i)),_=a.reference[f]-a.floating[v]+(w&&((m=s.offset)==null?void 0:m[f])||0)+(w?0:T.crossAxis),A=a.reference[f]+a.reference[v]+(w?0:((y=s.offset)==null?void 0:y[f])||0)-(w?T.crossAxis:0);g<_?g=_:g>A&&(g=A)}return{[d]:h,[f]:g}}}},iM=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:a,platform:s,elements:o}=t,{apply:l=()=>{},...u}=_i(e,t),c=await Au(t,u),f=Si(i),d=_o(i),h=Kr(i)==="y",{width:g,height:b}=a.floating;let T,m;f==="top"||f==="bottom"?(T=f,m=d===(await(s.isRTL==null?void 0:s.isRTL(o.floating))?"start":"end")?"left":"right"):(m=f,T=d==="end"?"top":"bottom");const y=b-c.top-c.bottom,v=g-c.left-c.right,w=ba(b-c[T],y),_=ba(g-c[m],v),A=!t.middlewareData.shift;let N=w,L=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(L=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(N=y),A&&!d){const R=Wn(c.left,0),q=Wn(c.right,0),j=Wn(c.top,0),ne=Wn(c.bottom,0);h?L=g-2*(R!==0||q!==0?R+q:Wn(c.left,c.right)):N=b-2*(j!==0||ne!==0?j+ne:Wn(c.top,c.bottom))}await l({...t,availableWidth:L,availableHeight:N});const F=await s.getDimensions(o.floating);return g!==F.width||b!==F.height?{reset:{rects:!0}}:{}}}};function dd(){return typeof window<"u"}function So(e){return k2(e)?(e.nodeName||"").toLowerCase():"#document"}function Qn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Wr(e){var t;return(t=(k2(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function k2(e){return dd()?e instanceof Node||e instanceof Qn(e).Node:!1}function Rr(e){return dd()?e instanceof Element||e instanceof Qn(e).Element:!1}function Qr(e){return dd()?e instanceof HTMLElement||e instanceof Qn(e).HTMLElement:!1}function O2(e){return!dd()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Qn(e).ShadowRoot}const aM=new Set(["inline","contents"]);function Cu(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Nr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!aM.has(i)}const sM=new Set(["table","td","th"]);function oM(e){return sM.has(So(e))}const lM=[":popover-open",":modal"];function hd(e){return lM.some(t=>{try{return e.matches(t)}catch{return!1}})}const uM=["transform","translate","scale","rotate","perspective"],cM=["transform","translate","scale","rotate","perspective","filter"],fM=["paint","layout","strict","content"];function V0(e){const t=q0(),n=Rr(e)?Nr(e):e;return uM.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||cM.some(r=>(n.willChange||"").includes(r))||fM.some(r=>(n.contain||"").includes(r))}function dM(e){let t=ya(e);for(;Qr(t)&&!Ao(t);){if(V0(t))return t;if(hd(t))return null;t=ya(t)}return null}function q0(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const hM=new Set(["html","body","#document"]);function Ao(e){return hM.has(So(e))}function Nr(e){return Qn(e).getComputedStyle(e)}function pd(e){return Rr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ya(e){if(So(e)==="html")return e;const t=e.assignedSlot||e.parentNode||O2(e)&&e.host||Wr(e);return O2(t)?t.host:t}function R2(e){const t=ya(e);return Ao(t)?e.ownerDocument?e.ownerDocument.body:e.body:Qr(t)&&Cu(t)?t:R2(t)}function ku(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=R2(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),s=Qn(i);if(a){const o=Y0(s);return t.concat(s,s.visualViewport||[],Cu(i)?i:[],o&&n?ku(o):[])}return t.concat(i,ku(i,[],n))}function Y0(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function N2(e){const t=Nr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Qr(e),a=i?e.offsetWidth:n,s=i?e.offsetHeight:r,o=ld(n)!==a||ld(r)!==s;return o&&(n=a,r=s),{width:n,height:r,$:o}}function G0(e){return Rr(e)?e:e.contextElement}function Co(e){const t=G0(e);if(!Qr(t))return Xr(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=N2(t);let s=(a?ld(n.width):n.width)/r,o=(a?ld(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!o||!Number.isFinite(o))&&(o=1),{x:s,y:o}}const pM=Xr(0);function D2(e){const t=Qn(e);return!q0()||!t.visualViewport?pM:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function mM(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Qn(e)?!1:t}function ls(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=G0(e);let s=Xr(1);t&&(r?Rr(r)&&(s=Co(r)):s=Co(e));const o=mM(a,n,r)?D2(a):Xr(0);let l=(i.left+o.x)/s.x,u=(i.top+o.y)/s.y,c=i.width/s.x,f=i.height/s.y;if(a){const d=Qn(a),h=r&&Rr(r)?Qn(r):r;let g=d,b=Y0(g);for(;b&&r&&h!==g;){const T=Co(b),m=b.getBoundingClientRect(),y=Nr(b),v=m.left+(b.clientLeft+parseFloat(y.paddingLeft))*T.x,w=m.top+(b.clientTop+parseFloat(y.paddingTop))*T.y;l*=T.x,u*=T.y,c*=T.x,f*=T.y,l+=v,u+=w,g=Qn(b),b=Y0(g)}}return fd({width:c,height:f,x:l,y:u})}function $0(e,t){const n=pd(e).scrollLeft;return t?t.left+n:ls(Wr(e)).left+n}function M2(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:$0(e,r)),a=r.top+t.scrollTop;return{x:i,y:a}}function gM(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",s=Wr(r),o=t?hd(t.floating):!1;if(r===s||o&&a)return n;let l={scrollLeft:0,scrollTop:0},u=Xr(1);const c=Xr(0),f=Qr(r);if((f||!f&&!a)&&((So(r)!=="body"||Cu(s))&&(l=pd(r)),Qr(r))){const h=ls(r);u=Co(r),c.x=h.x+r.clientLeft,c.y=h.y+r.clientTop}const d=s&&!f&&!a?M2(s,l,!0):Xr(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+c.x+d.x,y:n.y*u.y-l.scrollTop*u.y+c.y+d.y}}function bM(e){return Array.from(e.getClientRects())}function yM(e){const t=Wr(e),n=pd(e),r=e.ownerDocument.body,i=Wn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Wn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+$0(e);const o=-n.scrollTop;return Nr(r).direction==="rtl"&&(s+=Wn(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:s,y:o}}function vM(e,t){const n=Qn(e),r=Wr(e),i=n.visualViewport;let a=r.clientWidth,s=r.clientHeight,o=0,l=0;if(i){a=i.width,s=i.height;const u=q0();(!u||u&&t==="fixed")&&(o=i.offsetLeft,l=i.offsetTop)}return{width:a,height:s,x:o,y:l}}const xM=new Set(["absolute","fixed"]);function EM(e,t){const n=ls(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Qr(e)?Co(e):Xr(1),s=e.clientWidth*a.x,o=e.clientHeight*a.y,l=i*a.x,u=r*a.y;return{width:s,height:o,x:l,y:u}}function L2(e,t,n){let r;if(t==="viewport")r=vM(e,n);else if(t==="document")r=yM(Wr(e));else if(Rr(t))r=EM(t,n);else{const i=D2(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return fd(r)}function I2(e,t){const n=ya(e);return n===t||!Rr(n)||Ao(n)?!1:Nr(n).position==="fixed"||I2(n,t)}function TM(e,t){const n=t.get(e);if(n)return n;let r=ku(e,[],!1).filter(o=>Rr(o)&&So(o)!=="body"),i=null;const a=Nr(e).position==="fixed";let s=a?ya(e):e;for(;Rr(s)&&!Ao(s);){const o=Nr(s),l=V0(s);!l&&o.position==="fixed"&&(i=null),(a?!l&&!i:!l&&o.position==="static"&&!!i&&xM.has(i.position)||Cu(s)&&!l&&I2(e,s))?r=r.filter(c=>c!==s):i=o,s=ya(s)}return t.set(e,r),r}function wM(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?hd(t)?[]:TM(t,this._c):[].concat(n),r],o=s[0],l=s.reduce((u,c)=>{const f=L2(t,c,i);return u.top=Wn(f.top,u.top),u.right=ba(f.right,u.right),u.bottom=ba(f.bottom,u.bottom),u.left=Wn(f.left,u.left),u},L2(t,o,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function _M(e){const{width:t,height:n}=N2(e);return{width:t,height:n}}function SM(e,t,n){const r=Qr(t),i=Wr(t),a=n==="fixed",s=ls(e,!0,a,t);let o={scrollLeft:0,scrollTop:0};const l=Xr(0);function u(){l.x=$0(i)}if(r||!r&&!a)if((So(t)!=="body"||Cu(i))&&(o=pd(t)),r){const h=ls(t,!0,a,t);l.x=h.x+t.clientLeft,l.y=h.y+t.clientTop}else i&&u();a&&!r&&i&&u();const c=i&&!r&&!a?M2(i,o):Xr(0),f=s.left+o.scrollLeft-l.x-c.x,d=s.top+o.scrollTop-l.y-c.y;return{x:f,y:d,width:s.width,height:s.height}}function X0(e){return Nr(e).position==="static"}function P2(e,t){if(!Qr(e)||Nr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Wr(e)===n&&(n=n.ownerDocument.body),n}function B2(e,t){const n=Qn(e);if(hd(e))return n;if(!Qr(e)){let i=ya(e);for(;i&&!Ao(i);){if(Rr(i)&&!X0(i))return i;i=ya(i)}return n}let r=P2(e,t);for(;r&&oM(r)&&X0(r);)r=P2(r,t);return r&&Ao(r)&&X0(r)&&!V0(r)?n:r||dM(e)||n}const AM=async function(e){const t=this.getOffsetParent||B2,n=this.getDimensions,r=await n(e.floating);return{reference:SM(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function CM(e){return Nr(e).direction==="rtl"}const kM={convertOffsetParentRelativeRectToViewportRelativeRect:gM,getDocumentElement:Wr,getClippingRect:wM,getOffsetParent:B2,getElementRects:AM,getClientRects:bM,getDimensions:_M,getScale:Co,isElement:Rr,isRTL:CM};function U2(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function OM(e,t){let n=null,r;const i=Wr(e);function a(){var o;clearTimeout(r),(o=n)==null||o.disconnect(),n=null}function s(o,l){o===void 0&&(o=!1),l===void 0&&(l=1),a();const u=e.getBoundingClientRect(),{left:c,top:f,width:d,height:h}=u;if(o||t(),!d||!h)return;const g=ud(f),b=ud(i.clientWidth-(c+d)),T=ud(i.clientHeight-(f+h)),m=ud(c),v={rootMargin:-g+"px "+-b+"px "+-T+"px "+-m+"px",threshold:Wn(0,ba(1,l))||1};let w=!0;function _(A){const N=A[0].intersectionRatio;if(N!==l){if(!w)return s();N?s(!1,N):r=setTimeout(()=>{s(!1,1e-7)},1e3)}N===1&&!U2(u,e.getBoundingClientRect())&&s(),w=!1}try{n=new IntersectionObserver(_,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(_,v)}n.observe(e)}return s(!0),a}function RM(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=G0(e),c=i||a?[...u?ku(u):[],...ku(t)]:[];c.forEach(m=>{i&&m.addEventListener("scroll",n,{passive:!0}),a&&m.addEventListener("resize",n)});const f=u&&o?OM(u,n):null;let d=-1,h=null;s&&(h=new ResizeObserver(m=>{let[y]=m;y&&y.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var v;(v=h)==null||v.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let g,b=l?ls(e):null;l&&T();function T(){const m=ls(e);b&&!U2(b,m)&&n(),b=m,g=requestAnimationFrame(T)}return n(),()=>{var m;c.forEach(y=>{i&&y.removeEventListener("scroll",n),a&&y.removeEventListener("resize",n)}),f==null||f(),(m=h)==null||m.disconnect(),h=null,l&&cancelAnimationFrame(g)}}const NM=tM,DM=nM,MM=Z5,LM=iM,IM=J5,z2=Q5,PM=rM,BM=(e,t,n)=>{const r=new Map,i={platform:kM,...n},a={...i.platform,_c:r};return W5(e,t,{...i,platform:a})};var UM=typeof document<"u",zM=function(){},md=UM?E.useLayoutEffect:zM;function gd(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!gd(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!gd(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function j2(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function F2(e,t){const n=j2(e);return Math.round(t*n)/n}function K0(e){const t=E.useRef(e);return md(()=>{t.current=e}),t}function jM(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:s}={},transform:o=!0,whileElementsMounted:l,open:u}=e,[c,f]=E.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[d,h]=E.useState(r);gd(d,r)||h(r);const[g,b]=E.useState(null),[T,m]=E.useState(null),y=E.useCallback(z=>{z!==A.current&&(A.current=z,b(z))},[]),v=E.useCallback(z=>{z!==N.current&&(N.current=z,m(z))},[]),w=a||g,_=s||T,A=E.useRef(null),N=E.useRef(null),L=E.useRef(c),F=l!=null,R=K0(l),q=K0(i),j=K0(u),ne=E.useCallback(()=>{if(!A.current||!N.current)return;const z={placement:t,strategy:n,middleware:d};q.current&&(z.platform=q.current),BM(A.current,N.current,z).then(te=>{const O={...te,isPositioned:j.current!==!1};K.current&&!gd(L.current,O)&&(L.current=O,Ls.flushSync(()=>{f(O)}))})},[d,t,n,q,j]);md(()=>{u===!1&&L.current.isPositioned&&(L.current.isPositioned=!1,f(z=>({...z,isPositioned:!1})))},[u]);const K=E.useRef(!1);md(()=>(K.current=!0,()=>{K.current=!1}),[]),md(()=>{if(w&&(A.current=w),_&&(N.current=_),w&&_){if(R.current)return R.current(w,_,ne);ne()}},[w,_,ne,R,F]);const W=E.useMemo(()=>({reference:A,floating:N,setReference:y,setFloating:v}),[y,v]),H=E.useMemo(()=>({reference:w,floating:_}),[w,_]),V=E.useMemo(()=>{const z={position:n,left:0,top:0};if(!H.floating)return z;const te=F2(H.floating,c.x),O=F2(H.floating,c.y);return o?{...z,transform:"translate("+te+"px, "+O+"px)",...j2(H.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:te,top:O}},[n,o,H.floating,c.x,c.y]);return E.useMemo(()=>({...c,update:ne,refs:W,elements:H,floatingStyles:V}),[c,ne,W,H,V])}const FM=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?z2({element:r.current,padding:i}).fn(n):{}:r?z2({element:r,padding:i}).fn(n):{}}}},HM=(e,t)=>({...NM(e),options:[e,t]}),VM=(e,t)=>({...DM(e),options:[e,t]}),qM=(e,t)=>({...PM(e),options:[e,t]}),YM=(e,t)=>({...MM(e),options:[e,t]}),GM=(e,t)=>({...LM(e),options:[e,t]}),$M=(e,t)=>({...IM(e),options:[e,t]}),XM=(e,t)=>({...FM(e),options:[e,t]});var KM="Arrow",H2=E.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...a}=e;return x.jsx(Zt.svg,{...a,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:x.jsx("polygon",{points:"0,0 30,0 15,10"})})});H2.displayName=KM;var WM=H2;function QM(e){const[t,n]=E.useState(void 0);return $r(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const a=i[0];let s,o;if("borderBoxSize"in a){const l=a.borderBoxSize,u=Array.isArray(l)?l[0]:l;s=u.inlineSize,o=u.blockSize}else s=e.offsetWidth,o=e.offsetHeight;n({width:s,height:o})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var W0="Popper",[V2,bd]=_u(W0),[ZM,q2]=V2(W0),Y2=e=>{const{__scopePopper:t,children:n}=e,[r,i]=E.useState(null);return x.jsx(ZM,{scope:t,anchor:r,onAnchorChange:i,children:n})};Y2.displayName=W0;var G2="PopperAnchor",$2=E.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,a=q2(G2,n),s=E.useRef(null),o=Kn(t,s);return E.useEffect(()=>{a.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:x.jsx(Zt.div,{...i,ref:o})});$2.displayName=G2;var Q0="PopperContent",[JM,eL]=V2(Q0),X2=E.forwardRef((e,t)=>{var Yt,Qe,Ut,ut,Nt,Gt;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:a="center",alignOffset:s=0,arrowPadding:o=0,avoidCollisions:l=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:f="partial",hideWhenDetached:d=!1,updatePositionStrategy:h="optimized",onPlaced:g,...b}=e,T=q2(Q0,n),[m,y]=E.useState(null),v=Kn(t,ye=>y(ye)),[w,_]=E.useState(null),A=QM(w),N=(A==null?void 0:A.width)??0,L=(A==null?void 0:A.height)??0,F=r+(a!=="center"?"-"+a:""),R=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},q=Array.isArray(u)?u:[u],j=q.length>0,ne={padding:R,boundary:q.filter(nL),altBoundary:j},{refs:K,floatingStyles:W,placement:H,isPositioned:V,middlewareData:z}=jM({strategy:"fixed",placement:F,whileElementsMounted:(...ye)=>RM(...ye,{animationFrame:h==="always"}),elements:{reference:T.anchor},middleware:[HM({mainAxis:i+L,alignmentAxis:s}),l&&VM({mainAxis:!0,crossAxis:!1,limiter:f==="partial"?qM():void 0,...ne}),l&&YM({...ne}),GM({...ne,apply:({elements:ye,rects:Ie,availableWidth:$e,availableHeight:Re})=>{const{width:et,height:$t}=Ie.reference,Be=ye.floating.style;Be.setProperty("--radix-popper-available-width",`${$e}px`),Be.setProperty("--radix-popper-available-height",`${Re}px`),Be.setProperty("--radix-popper-anchor-width",`${et}px`),Be.setProperty("--radix-popper-anchor-height",`${$t}px`)}}),w&&XM({element:w,padding:o}),rL({arrowWidth:N,arrowHeight:L}),d&&$M({strategy:"referenceHidden",...ne})]}),[te,O]=Q2(H),he=os(g);$r(()=>{V&&(he==null||he())},[V,he]);const je=(Yt=z.arrow)==null?void 0:Yt.x,M=(Qe=z.arrow)==null?void 0:Qe.y,Le=((Ut=z.arrow)==null?void 0:Ut.centerOffset)!==0,[pe,Pe]=E.useState();return $r(()=>{m&&Pe(window.getComputedStyle(m).zIndex)},[m]),x.jsx("div",{ref:K.setFloating,"data-radix-popper-content-wrapper":"",style:{...W,transform:V?W.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:pe,"--radix-popper-transform-origin":[(ut=z.transformOrigin)==null?void 0:ut.x,(Nt=z.transformOrigin)==null?void 0:Nt.y].join(" "),...((Gt=z.hide)==null?void 0:Gt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:x.jsx(JM,{scope:n,placedSide:te,onArrowChange:_,arrowX:je,arrowY:M,shouldHideArrow:Le,children:x.jsx(Zt.div,{"data-side":te,"data-align":O,...b,ref:v,style:{...b.style,animation:V?void 0:"none"}})})})});X2.displayName=Q0;var K2="PopperArrow",tL={top:"bottom",right:"left",bottom:"top",left:"right"},W2=E.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,a=eL(K2,r),s=tL[a.placedSide];return x.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:x.jsx(WM,{...i,ref:n,style:{...i.style,display:"block"}})})});W2.displayName=K2;function nL(e){return e!==null}var rL=e=>({name:"transformOrigin",options:e,fn(t){var T,m,y;const{placement:n,rects:r,middlewareData:i}=t,s=((T=i.arrow)==null?void 0:T.centerOffset)!==0,o=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[u,c]=Q2(n),f={start:"0%",center:"50%",end:"100%"}[c],d=(((m=i.arrow)==null?void 0:m.x)??0)+o/2,h=(((y=i.arrow)==null?void 0:y.y)??0)+l/2;let g="",b="";return u==="bottom"?(g=s?f:`${d}px`,b=`${-l}px`):u==="top"?(g=s?f:`${d}px`,b=`${r.floating.height+l}px`):u==="right"?(g=`${-l}px`,b=s?f:`${h}px`):u==="left"&&(g=`${r.floating.width+l}px`,b=s?f:`${h}px`),{data:{x:g,y:b}}}});function Q2(e){const[t,n="center"]=e.split("-");return[t,n]}var Z2=Y2,Z0=$2,J2=X2,ew=W2;function iL(e,t){return E.useReducer((n,r)=>t[n][r]??n,e)}var Ou=e=>{const{present:t,children:n}=e,r=aL(t),i=typeof n=="function"?n({present:r.isPresent}):E.Children.only(n),a=Kn(r.ref,sL(i));return typeof n=="function"||r.isPresent?E.cloneElement(i,{ref:a}):null};Ou.displayName="Presence";function aL(e){const[t,n]=E.useState(),r=E.useRef(null),i=E.useRef(e),a=E.useRef("none"),s=e?"mounted":"unmounted",[o,l]=iL(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{const u=yd(r.current);a.current=o==="mounted"?u:"none"},[o]),$r(()=>{const u=r.current,c=i.current;if(c!==e){const d=a.current,h=yd(u);e?l("MOUNT"):h==="none"||(u==null?void 0:u.display)==="none"?l("UNMOUNT"):l(c&&d!==h?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,l]),$r(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,f=h=>{const b=yd(r.current).includes(h.animationName);if(h.target===t&&b&&(l("ANIMATION_END"),!i.current)){const T=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=T)})}},d=h=>{h.target===t&&(a.current=yd(r.current))};return t.addEventListener("animationstart",d),t.addEventListener("animationcancel",f),t.addEventListener("animationend",f),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",d),t.removeEventListener("animationcancel",f),t.removeEventListener("animationend",f)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(o),ref:E.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function yd(e){return(e==null?void 0:e.animationName)||"none"}function sL(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var oL=Jy[" useInsertionEffect ".trim().toString()]||$r;function J0({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,a,s]=lL({defaultProp:t,onChange:n}),o=e!==void 0,l=o?e:i;{const c=E.useRef(e!==void 0);E.useEffect(()=>{const f=c.current;f!==o&&console.warn(`${r} is changing from ${f?"controlled":"uncontrolled"} to ${o?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=o},[o,r])}const u=E.useCallback(c=>{var f;if(o){const d=uL(c)?c(e):c;d!==e&&((f=s.current)==null||f.call(s,d))}else a(c)},[o,e,a,s]);return[l,u]}function lL({defaultProp:e,onChange:t}){const[n,r]=E.useState(e),i=E.useRef(n),a=E.useRef(t);return oL(()=>{a.current=t},[t]),E.useEffect(()=>{var s;i.current!==n&&((s=a.current)==null||s.call(a,n),i.current=n)},[n,i]),[n,r,a]}function uL(e){return typeof e=="function"}var cL=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ko=new WeakMap,vd=new WeakMap,xd={},eg=0,tw=function(e){return e&&(e.host||tw(e.parentNode))},fL=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=tw(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},dL=function(e,t,n,r){var i=fL(t,Array.isArray(e)?e:[e]);xd[n]||(xd[n]=new WeakMap);var a=xd[n],s=[],o=new Set,l=new Set(i),u=function(f){!f||o.has(f)||(o.add(f),u(f.parentNode))};i.forEach(u);var c=function(f){!f||l.has(f)||Array.prototype.forEach.call(f.children,function(d){if(o.has(d))c(d);else try{var h=d.getAttribute(r),g=h!==null&&h!=="false",b=(ko.get(d)||0)+1,T=(a.get(d)||0)+1;ko.set(d,b),a.set(d,T),s.push(d),b===1&&g&&vd.set(d,!0),T===1&&d.setAttribute(n,"true"),g||d.setAttribute(r,"true")}catch(m){console.error("aria-hidden: cannot operate on ",d,m)}})};return c(t),o.clear(),eg++,function(){s.forEach(function(f){var d=ko.get(f)-1,h=a.get(f)-1;ko.set(f,d),a.set(f,h),d||(vd.has(f)||f.removeAttribute(r),vd.delete(f)),h||f.removeAttribute(n)}),eg--,eg||(ko=new WeakMap,ko=new WeakMap,vd=new WeakMap,xd={})}},nw=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=cL(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),dL(r,i,n,"aria-hidden")):function(){return null}},tg=function(e,t){return tg=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},tg(e,t)};function rw(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");tg(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var br=function(){return br=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},br.apply(this,arguments)};function Ed(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function iw(e,t,n,r){var i=arguments.length,a=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,n,r);else for(var o=e.length-1;o>=0;o--)(s=e[o])&&(a=(i<3?s(a):i>3?s(t,n,a):s(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function aw(e,t){return function(n,r){t(n,r,e)}}function sw(e,t,n,r,i,a){function s(m){if(m!==void 0&&typeof m!="function")throw new TypeError("Function expected");return m}for(var o=r.kind,l=o==="getter"?"get":o==="setter"?"set":"value",u=!t&&e?r.static?e:e.prototype:null,c=t||(u?Object.getOwnPropertyDescriptor(u,r.name):{}),f,d=!1,h=n.length-1;h>=0;h--){var g={};for(var b in r)g[b]=b==="access"?{}:r[b];for(var b in r.access)g.access[b]=r.access[b];g.addInitializer=function(m){if(d)throw new TypeError("Cannot add initializers after decoration has completed");a.push(s(m||null))};var T=(0,n[h])(o==="accessor"?{get:c.get,set:c.set}:c[l],g);if(o==="accessor"){if(T===void 0)continue;if(T===null||typeof T!="object")throw new TypeError("Object expected");(f=s(T.get))&&(c.get=f),(f=s(T.set))&&(c.set=f),(f=s(T.init))&&i.unshift(f)}else(f=s(T))&&(o==="field"?i.unshift(f):c[l]=f)}u&&Object.defineProperty(u,r.name,c),d=!0}function ow(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function lw(e){return typeof e=="symbol"?e:"".concat(e)}function uw(e,t,n){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function cw(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Ai(e,t,n,r){function i(a){return a instanceof n?a:new n(function(s){s(a)})}return new(n||(n=Promise))(function(a,s){function o(c){try{u(r.next(c))}catch(f){s(f)}}function l(c){try{u(r.throw(c))}catch(f){s(f)}}function u(c){c.done?a(c.value):i(c.value).then(o,l)}u((r=r.apply(e,t||[])).next())})}function fw(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=o(0),s.throw=o(1),s.return=o(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){n.label=u[1];break}if(u[0]===6&&n.label<a[1]){n.label=a[1],a=u;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(u);break}a[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],i=0}finally{r=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}var Td=Object.create?function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]};function dw(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Td(t,e,n)}function wd(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ng(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,a=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(o){s={error:o}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return a}function hw(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ng(arguments[t]));return e}function pw(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var a=arguments[t],s=0,o=a.length;s<o;s++,i++)r[i]=a[s];return r}function rg(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}function Oo(e){return this instanceof Oo?(this.v=e,this):new Oo(e)}function mw(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,a=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),o("next"),o("throw"),o("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(h){return function(g){return Promise.resolve(g).then(h,f)}}function o(h,g){r[h]&&(i[h]=function(b){return new Promise(function(T,m){a.push([h,b,T,m])>1||l(h,b)})},g&&(i[h]=g(i[h])))}function l(h,g){try{u(r[h](g))}catch(b){d(a[0][3],b)}}function u(h){h.value instanceof Oo?Promise.resolve(h.value.v).then(c,f):d(a[0][2],h)}function c(h){l("next",h)}function f(h){l("throw",h)}function d(h,g){h(g),a.shift(),a.length&&l(a[0][0],a[0][1])}}function gw(e){var t,n;return t={},r("next"),r("throw",function(i){throw i}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(i,a){t[i]=e[i]?function(s){return(n=!n)?{value:Oo(e[i](s)),done:!1}:a?a(s):s}:a}}function bw(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof wd=="function"?wd(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(a){n[a]=e[a]&&function(s){return new Promise(function(o,l){s=e[a](s),i(o,l,s.done,s.value)})}}function i(a,s,o,l){Promise.resolve(l).then(function(u){a({value:u,done:o})},s)}}function yw(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var hL=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},ig=function(e){return ig=Object.getOwnPropertyNames||function(t){var n=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[n.length]=r);return n},ig(e)};function vw(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n=ig(e),r=0;r<n.length;r++)n[r]!=="default"&&Td(t,e,n[r]);return hL(t,e),t}function xw(e){return e&&e.__esModule?e:{default:e}}function Ew(e,t,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(e):r?r.value:t.get(e)}function Tw(e,t,n,r,i){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?i.call(e,n):i?i.value=n:t.set(e,n),n}function ww(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function _w(e,t,n){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var r,i;if(n){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(r===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose],n&&(i=r)}if(typeof r!="function")throw new TypeError("Object not disposable.");i&&(r=function(){try{i.call(this)}catch(a){return Promise.reject(a)}}),e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var pL=typeof SuppressedError=="function"?SuppressedError:function(e,t,n){var r=new Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function Sw(e){function t(a){e.error=e.hasError?new pL(a,e.error,"An error was suppressed during disposal."):a,e.hasError=!0}var n,r=0;function i(){for(;n=e.stack.pop();)try{if(!n.async&&r===1)return r=0,e.stack.push(n),Promise.resolve().then(i);if(n.dispose){var a=n.dispose.call(n.value);if(n.async)return r|=2,Promise.resolve(a).then(i,function(s){return t(s),i()})}else r|=1}catch(s){t(s)}if(r===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i()}function Aw(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(n,r,i,a,s){return r?t?".jsx":".js":i&&(!a||!s)?n:i+a+"."+s.toLowerCase()+"js"}):e}const mL=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:_w,get __assign(){return br},__asyncDelegator:gw,__asyncGenerator:mw,__asyncValues:bw,__await:Oo,__awaiter:Ai,__classPrivateFieldGet:Ew,__classPrivateFieldIn:ww,__classPrivateFieldSet:Tw,__createBinding:Td,__decorate:iw,__disposeResources:Sw,__esDecorate:sw,__exportStar:dw,__extends:rw,__generator:fw,__importDefault:xw,__importStar:vw,__makeTemplateObject:yw,__metadata:cw,__param:aw,__propKey:lw,__read:ng,__rest:Ed,__rewriteRelativeImportExtension:Aw,__runInitializers:ow,__setFunctionName:uw,__spread:hw,__spreadArray:rg,__spreadArrays:pw,__values:wd,default:{__extends:rw,__assign:br,__rest:Ed,__decorate:iw,__param:aw,__esDecorate:sw,__runInitializers:ow,__propKey:lw,__setFunctionName:uw,__metadata:cw,__awaiter:Ai,__generator:fw,__createBinding:Td,__exportStar:dw,__values:wd,__read:ng,__spread:hw,__spreadArrays:pw,__spreadArray:rg,__await:Oo,__asyncGenerator:mw,__asyncDelegator:gw,__asyncValues:bw,__makeTemplateObject:yw,__importStar:vw,__importDefault:xw,__classPrivateFieldGet:Ew,__classPrivateFieldSet:Tw,__classPrivateFieldIn:ww,__addDisposableResource:_w,__disposeResources:Sw,__rewriteRelativeImportExtension:Aw}},Symbol.toStringTag,{value:"Module"}));var _d="right-scroll-bar-position",Sd="width-before-scroll-bar",gL="with-scroll-bars-hidden",bL="--removed-body-scroll-bar-size";function ag(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function yL(e,t){var n=E.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var vL=typeof window<"u"?E.useLayoutEffect:E.useEffect,Cw=new WeakMap;function xL(e,t){var n=yL(null,function(r){return e.forEach(function(i){return ag(i,r)})});return vL(function(){var r=Cw.get(n);if(r){var i=new Set(r),a=new Set(e),s=n.current;i.forEach(function(o){a.has(o)||ag(o,null)}),a.forEach(function(o){i.has(o)||ag(o,s)})}Cw.set(n,e)},[e]),n}function EL(e){return e}function TL(e,t){t===void 0&&(t=EL);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(a){var s=t(a,r);return n.push(s),function(){n=n.filter(function(o){return o!==s})}},assignSyncMedium:function(a){for(r=!0;n.length;){var s=n;n=[],s.forEach(a)}n={push:function(o){return a(o)},filter:function(){return n}}},assignMedium:function(a){r=!0;var s=[];if(n.length){var o=n;n=[],o.forEach(a),s=n}var l=function(){var c=s;s=[],c.forEach(a)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(c){s.push(c),u()},filter:function(c){return s=s.filter(c),n}}}};return i}function wL(e){e===void 0&&(e={});var t=TL(null);return t.options=br({async:!0,ssr:!1},e),t}var kw=function(e){var t=e.sideCar,n=Ed(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return E.createElement(r,br({},n))};kw.isSideCarExport=!0;function _L(e,t){return e.useMedium(t),kw}var Ow=wL(),sg=function(){},Ad=E.forwardRef(function(e,t){var n=E.useRef(null),r=E.useState({onScrollCapture:sg,onWheelCapture:sg,onTouchMoveCapture:sg}),i=r[0],a=r[1],s=e.forwardProps,o=e.children,l=e.className,u=e.removeScrollBar,c=e.enabled,f=e.shards,d=e.sideCar,h=e.noRelative,g=e.noIsolation,b=e.inert,T=e.allowPinchZoom,m=e.as,y=m===void 0?"div":m,v=e.gapMode,w=Ed(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=d,A=xL([n,t]),N=br(br({},w),i);return E.createElement(E.Fragment,null,c&&E.createElement(_,{sideCar:Ow,removeScrollBar:u,shards:f,noRelative:h,noIsolation:g,inert:b,setCallbacks:a,allowPinchZoom:!!T,lockRef:n,gapMode:v}),s?E.cloneElement(E.Children.only(o),br(br({},N),{ref:A})):E.createElement(y,br({},N,{className:l,ref:A}),o))});Ad.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Ad.classNames={fullWidth:Sd,zeroRight:_d};var SL=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function AL(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=SL();return t&&e.setAttribute("nonce",t),e}function CL(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function kL(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var OL=function(){var e=0,t=null;return{add:function(n){e==0&&(t=AL())&&(CL(t,n),kL(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},RL=function(){var e=OL();return function(t,n){E.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Rw=function(){var e=RL(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},NL={left:0,top:0,right:0,gap:0},og=function(e){return parseInt(e||"",10)||0},DL=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[og(n),og(r),og(i)]},ML=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return NL;var t=DL(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},LL=Rw(),Ro="data-scroll-locked",IL=function(e,t,n,r){var i=e.left,a=e.top,s=e.right,o=e.gap;return n===void 0&&(n="margin"),`
|
|
50
50
|
.`.concat(gL,` {
|
|
51
51
|
overflow: hidden `).concat(r,`;
|
|
52
52
|
padding-right: `).concat(o,"px ").concat(r,`;
|
|
@@ -97,7 +97,7 @@ ${a}`:a})();return{id:dg(),type:"FROM_USER",content:o,deliveredAt:new Date().toI
|
|
|
97
97
|
*
|
|
98
98
|
* This source code is licensed under the MIT license found in the
|
|
99
99
|
* LICENSE file in the root directory of this source tree.
|
|
100
|
-
*/var Io=E;function NI(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var DI=typeof Object.is=="function"?Object.is:NI,MI=Io.useState,LI=Io.useEffect,II=Io.useLayoutEffect,PI=Io.useDebugValue;function BI(e,t){var n=t(),r=MI({inst:{value:n,getSnapshot:t}}),i=r[0].inst,a=r[1];return II(function(){i.value=n,i.getSnapshot=t,hg(i)&&a({inst:i})},[e,n,t]),LI(function(){return hg(i)&&a({inst:i}),e(function(){hg(i)&&a({inst:i})})},[e]),PI(n),n}function hg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!DI(e,n)}catch{return!0}}function UI(e,t){return t()}var zI=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?UI:BI;r_.useSyncExternalStore=Io.useSyncExternalStore!==void 0?Io.useSyncExternalStore:zI,n_.exports=r_;var i_=n_.exports;const a_=0,s_=1,o_=2,l_=3;var u_=Object.prototype.hasOwnProperty;function pg(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&pg(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(u_.call(e,n)&&++r&&!u_.call(t,n)||!(n in t)||!pg(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}const Ci=new WeakMap,va=()=>{},pn=va(),mg=Object,Fe=e=>e===pn,Zr=e=>typeof e=="function",xa=(e,t)=>({...e,...t}),c_=e=>Zr(e.then),gg={},Dd={},bg="undefined",Du=typeof window!=bg,yg=typeof document!=bg,jI=Du&&"Deno"in window,FI=()=>Du&&typeof window.requestAnimationFrame!=bg,f_=(e,t)=>{const n=Ci.get(e);return[()=>!Fe(t)&&e.get(t)||gg,r=>{if(!Fe(t)){const i=e.get(t);t in Dd||(Dd[t]=i),n[5](t,xa(i,r),i||gg)}},n[6],()=>!Fe(t)&&t in Dd?Dd[t]:!Fe(t)&&e.get(t)||gg]};let vg=!0;const HI=()=>vg,[xg,Eg]=Du&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[va,va],VI=()=>{const e=yg&&document.visibilityState;return Fe(e)||e!=="hidden"},qI=e=>(yg&&document.addEventListener("visibilitychange",e),xg("focus",e),()=>{yg&&document.removeEventListener("visibilitychange",e),Eg("focus",e)}),YI=e=>{const t=()=>{vg=!0,e()},n=()=>{vg=!1};return xg("online",t),xg("offline",n),()=>{Eg("online",t),Eg("offline",n)}},GI={isOnline:HI,isVisible:VI},$I={initFocus:qI,initReconnect:YI},d_=!zn.useId,Mu=!Du||jI,XI=e=>FI()?window.requestAnimationFrame(e):setTimeout(e,1),Tg=Mu?E.useEffect:E.useLayoutEffect,wg=typeof navigator<"u"&&navigator.connection,h_=!Mu&&wg&&(["slow-2g","2g"].includes(wg.effectiveType)||wg.saveData),Md=new WeakMap,KI=e=>mg.prototype.toString.call(e),_g=(e,t)=>e===`[object ${t}]`;let WI=0;const Sg=e=>{const t=typeof e,n=KI(e),r=_g(n,"Date"),i=_g(n,"RegExp"),a=_g(n,"Object");let s,o;if(mg(e)===e&&!r&&!i){if(s=Md.get(e),s)return s;if(s=++WI+"~",Md.set(e,s),Array.isArray(e)){for(s="@",o=0;o<e.length;o++)s+=Sg(e[o])+",";Md.set(e,s)}if(a){s="#";const l=mg.keys(e).sort();for(;!Fe(o=l.pop());)Fe(e[o])||(s+=o+":"+Sg(e[o])+",");Md.set(e,s)}}else s=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return s},Ag=e=>{if(Zr(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Sg(e):"",[e,t]};let QI=0;const Cg=()=>++QI;async function p_(...e){const[t,n,r,i]=e,a=xa({populateCache:!0,throwOnError:!0},typeof i=="boolean"?{revalidate:i}:i||{});let s=a.populateCache;const o=a.rollbackOnError;let l=a.optimisticData;const u=d=>typeof o=="function"?o(d):o!==!1,c=a.throwOnError;if(Zr(n)){const d=n,h=[],g=t.keys();for(const b of g)!/^\$(inf|sub)\$/.test(b)&&d(t.get(b)._k)&&h.push(b);return Promise.all(h.map(f))}return f(n);async function f(d){const[h]=Ag(d);if(!h)return;const[g,b]=f_(t,h),[T,m,y,v]=Ci.get(t),w=()=>{const K=T[h];return(Zr(a.revalidate)?a.revalidate(g().data,d):a.revalidate!==!1)&&(delete y[h],delete v[h],K&&K[0])?K[0](o_).then(()=>g().data):g().data};if(e.length<3)return w();let _=r,A,N=!1;const L=Cg();m[h]=[L,0];const F=!Fe(l),R=g(),q=R.data,j=R._c,ne=Fe(j)?q:j;if(F&&(l=Zr(l)?l(ne,q):l,b({data:l,_c:ne})),Zr(_))try{_=_(ne)}catch(K){A=K,N=!0}if(_&&c_(_))if(_=await _.catch(K=>{A=K,N=!0}),L!==m[h][0]){if(N)throw A;return _}else N&&F&&u(A)&&(s=!0,b({data:ne,_c:pn}));if(s&&!N)if(Zr(s)){const K=s(_,ne);b({data:K,error:pn,_c:pn})}else b({data:_,error:pn,_c:pn});if(m[h][1]=Cg(),Promise.resolve(w()).then(()=>{b({_c:pn})}),N){if(c)throw A;return}return _}}const m_=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},ZI=(e,t)=>{if(!Ci.has(e)){const n=xa($I,t),r=Object.create(null),i=p_.bind(pn,e);let a=va;const s=Object.create(null),o=(c,f)=>{const d=s[c]||[];return s[c]=d,d.push(f),()=>d.splice(d.indexOf(f),1)},l=(c,f,d)=>{e.set(c,f);const h=s[c];if(h)for(const g of h)g(f,d)},u=()=>{if(!Ci.has(e)&&(Ci.set(e,[r,Object.create(null),Object.create(null),Object.create(null),i,l,o]),!Mu)){const c=n.initFocus(setTimeout.bind(pn,m_.bind(pn,r,a_))),f=n.initReconnect(setTimeout.bind(pn,m_.bind(pn,r,s_)));a=()=>{c&&c(),f&&f(),Ci.delete(e)}}};return u(),[e,i,u,a]}return[e,Ci.get(e)[4]]},JI=(e,t,n,r,i)=>{const a=n.errorRetryCount,s=i.retryCount,o=~~((Math.random()+.5)*(1<<(s<8?s:8)))*n.errorRetryInterval;!Fe(a)&&s>a||setTimeout(r,o,i)},e8=pg,[g_,t8]=ZI(new Map),n8=xa({onLoadingSlow:va,onSuccess:va,onError:va,onErrorRetry:JI,onDiscarded:va,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:h_?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:h_?5e3:3e3,compare:e8,isPaused:()=>!1,cache:g_,mutate:t8,fallback:{}},GI),r8=(e,t)=>{const n=xa(e,t);if(t){const{use:r,fallback:i}=e,{use:a,fallback:s}=t;r&&a&&(n.use=r.concat(a)),i&&s&&(n.fallback=xa(i,s))}return n},i8=E.createContext({}),a8="$inf$",b_=Du&&window.__SWR_DEVTOOLS_USE__,s8=b_?window.__SWR_DEVTOOLS_USE__:[],o8=()=>{b_&&(window.__SWR_DEVTOOLS_REACT__=zn)},l8=e=>Zr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],u8=()=>{const e=E.useContext(i8);return E.useMemo(()=>xa(n8,e),[e])},c8=e=>(t,n,r)=>e(t,n&&((...a)=>{const[s]=Ag(t),[,,,o]=Ci.get(g_);if(s.startsWith(a8))return n(...a);const l=o[s];return Fe(l)?n(...a):(delete o[s],l)}),r),f8=s8.concat(c8),d8=e=>function(...n){const r=u8(),[i,a,s]=l8(n),o=r8(r,s);let l=e;const{use:u}=o,c=(u||[]).concat(f8);for(let f=c.length;f--;)l=c[f](l);return l(i,a||o.fetcher||null,o)},h8=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const i=r.indexOf(n);i>=0&&(r[i]=r[r.length-1],r.pop())}};o8();const kg=zn.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),Og={dedupe:!0},y_=Promise.resolve(pn),p8=d8((e,t,n)=>{const{cache:r,compare:i,suspense:a,fallbackData:s,revalidateOnMount:o,revalidateIfStale:l,refreshInterval:u,refreshWhenHidden:c,refreshWhenOffline:f,keepPreviousData:d}=n,[h,g,b,T]=Ci.get(r),[m,y]=Ag(e),v=E.useRef(!1),w=E.useRef(!1),_=E.useRef(m),A=E.useRef(t),N=E.useRef(n),L=()=>N.current,F=()=>L().isVisible()&&L().isOnline(),[R,q,j,ne]=f_(r,m),K=E.useRef({}).current,W=Fe(s)?Fe(n.fallback)?pn:n.fallback[m]:s,H=(ye,Ie)=>{for(const $e in K){const Re=$e;if(Re==="data"){if(!i(ye[Re],Ie[Re])&&(!Fe(ye[Re])||!i(pe,Ie[Re])))return!1}else if(Ie[Re]!==ye[Re])return!1}return!0},V=E.useMemo(()=>{const ye=!m||!t?!1:Fe(o)?L().isPaused()||a?!1:l!==!1:o,Ie=tt=>{const tn=xa(tt);return delete tn._k,ye?{isValidating:!0,isLoading:!0,...tn}:tn},$e=R(),Re=ne(),et=Ie($e),$t=$e===Re?et:Ie(Re);let Be=et;return[()=>{const tt=Ie(R());return H(tt,Be)?(Be.data=tt.data,Be.isLoading=tt.isLoading,Be.isValidating=tt.isValidating,Be.error=tt.error,Be):(Be=tt,tt)},()=>$t]},[r,m]),z=i_.useSyncExternalStore(E.useCallback(ye=>j(m,(Ie,$e)=>{H($e,Ie)||ye()}),[r,m]),V[0],V[1]),te=!v.current,O=h[m]&&h[m].length>0,he=z.data,je=Fe(he)?W&&c_(W)?kg(W):W:he,M=z.error,Le=E.useRef(je),pe=d?Fe(he)?Fe(Le.current)?je:Le.current:he:je,Pe=O&&!Fe(M)?!1:te&&!Fe(o)?o:L().isPaused()?!1:a?Fe(je)?!1:l:Fe(je)||l,Yt=!!(m&&t&&te&&Pe),Qe=Fe(z.isValidating)?Yt:z.isValidating,Ut=Fe(z.isLoading)?Yt:z.isLoading,ut=E.useCallback(async ye=>{const Ie=A.current;if(!m||!Ie||w.current||L().isPaused())return!1;let $e,Re,et=!0;const $t=ye||{},Be=!b[m]||!$t.dedupe,tt=()=>d_?!w.current&&m===_.current&&v.current:m===_.current,tn={isValidating:!1,isLoading:!1},cn=()=>{q(tn)},_r=()=>{const se=b[m];se&&se[1]===Re&&delete b[m]},re={isValidating:!0};Fe(R().data)&&(re.isLoading=!0);try{if(Be&&(q(re),n.loadingTimeout&&Fe(R().data)&&setTimeout(()=>{et&&tt()&&L().onLoadingSlow(m,n)},n.loadingTimeout),b[m]=[Ie(y),Cg()]),[$e,Re]=b[m],$e=await $e,Be&&setTimeout(_r,n.dedupingInterval),!b[m]||b[m][1]!==Re)return Be&&tt()&&L().onDiscarded(m),!1;tn.error=pn;const se=g[m];if(!Fe(se)&&(Re<=se[0]||Re<=se[1]||se[1]===0))return cn(),Be&&tt()&&L().onDiscarded(m),!1;const B=R().data;tn.data=i(B,$e)?B:$e,Be&&tt()&&L().onSuccess($e,m,n)}catch(se){_r();const B=L(),{shouldRetryOnError:G}=B;B.isPaused()||(tn.error=se,Be&&tt()&&(B.onError(se,m,B),(G===!0||Zr(G)&&G(se))&&(!L().revalidateOnFocus||!L().revalidateOnReconnect||F())&&B.onErrorRetry(se,m,B,oe=>{const be=h[m];be&&be[0]&&be[0](l_,oe)},{retryCount:($t.retryCount||0)+1,dedupe:!0})))}return et=!1,cn(),!0},[m,r]),Nt=E.useCallback((...ye)=>p_(r,_.current,...ye),[]);if(Tg(()=>{A.current=t,N.current=n,Fe(he)||(Le.current=he)}),Tg(()=>{if(!m)return;const ye=ut.bind(pn,Og);let Ie=0;L().revalidateOnFocus&&(Ie=Date.now()+L().focusThrottleInterval);const Re=h8(m,h,(et,$t={})=>{if(et==a_){const Be=Date.now();L().revalidateOnFocus&&Be>Ie&&F()&&(Ie=Be+L().focusThrottleInterval,ye())}else if(et==s_)L().revalidateOnReconnect&&F()&&ye();else{if(et==o_)return ut();if(et==l_)return ut($t)}});return w.current=!1,_.current=m,v.current=!0,q({_k:y}),Pe&&(b[m]||(Fe(je)||Mu?ye():XI(ye))),()=>{w.current=!0,Re()}},[m]),Tg(()=>{let ye;function Ie(){const Re=Zr(u)?u(R().data):u;Re&&ye!==-1&&(ye=setTimeout($e,Re))}function $e(){!R().error&&(c||L().isVisible())&&(f||L().isOnline())?ut(Og).then(Ie):Ie()}return Ie(),()=>{ye&&(clearTimeout(ye),ye=-1)}},[u,c,f,m]),E.useDebugValue(pe),a){if(!d_&&Mu)throw new Error("Fallback data is required when using Suspense in SSR.");const ye=m&&Fe(je);ye&&(A.current=t,N.current=n,w.current=!1);const Ie=T[m],$e=!Fe(Ie)&&ye?Nt(Ie):y_;if(kg($e),!Fe(M)&&ye)throw M;const Re=ye?ut(Og):y_;!Fe(pe)&&ye&&(Re.status="fulfilled",Re.value=!0),kg(Re)}return{mutate:Nt,get data(){return K.data=!0,pe},get error(){return K.error=!0,M},get isValidating(){return K.isValidating=!0,Qe},get isLoading(){return K.isLoading=!0,Ut}}}),m8="4.0.2";class g8{constructor(t){this.components=[];const{components:n}=t;if(n&&n.forEach(r=>this.register(r)),this.components.length===0)throw new Error("No components registered");if(!this.get("fallback"))throw new Error("No fallback component registered")}register(t){const n=this.components.findIndex(r=>r.key===t.key);return n!==-1?this.components[n]=t:this.components.push(t),this}get(t){return this.components.find(r=>r.key.toUpperCase()===t.toUpperCase())||null}getComponent(t){var n;return(n=this.get(t))==null?void 0:n.component}}const v_=E.createContext(null);function b8({options:e,children:t,components:n,storage:r,loadingComponent:i}){const a=E.useRef(null),s=E.useRef(!1),[o,l]=E.useState(null),u=E.useMemo(()=>new g8({components:n}),[n]);return E.useEffect(()=>{s.current||(s.current=!0,RI.initialize({config:e,storage:r}).then(l))},[]),o?zn.createElement(v_.Provider,{value:{widgetCtx:o,config:e,components:n,componentStore:u,version:m8,contentIframeRef:a}},t):i||null}function _n(){const e=E.useContext(v_);if(!e)throw new Error("useWidget must be used within a WidgetProvider");return e}function Lt(){const{config:e}=_n();return e}function Lu(e){return E.useSyncExternalStore(e.subscribe,e.get,e.get)}function y8(){const{widgetCtx:e}=_n();return{contactState:Lu(e.contactCtx.state),createUnverifiedContact:e.contactCtx.createUnverifiedContact}}function Rg(){const[e,t]=E.useState("ltr");return E.useEffect(()=>{const n=()=>{typeof document>"u"||t(window.getComputedStyle((window.top||window).document.body).direction)};n();const r=new MutationObserver(n);return r.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}),r.observe(document.body,{attributes:!0,attributeFilter:["dir"]}),window.addEventListener("languagechange",n),()=>{r.disconnect(),window.removeEventListener("languagechange",n)}},[]),{dir:e}}function Ea(){const{widgetCtx:e}=_n();return{messagesState:Lu(e.messageCtx.state),sendMessage:e.messageCtx.sendMessage}}function ki(){const{widgetCtx:e}=_n(),{oneOpenSessionAllowed:t}=Lt(),n=Lu(e.sessionCtx.sessionState),r=Lu(e.sessionCtx.sessionsState),{openSessions:i,closedSessions:a}=E.useMemo(()=>({openSessions:r.data.filter(o=>o.isOpened===!0),closedSessions:r.data.filter(o=>o.isOpened===!1)}),[r.data]),s=E.useMemo(()=>t?i.length===0:!0,[t,i.length]);return{sessionState:n,sessionsState:r,loadMoreSessions:e.sessionCtx.loadMoreSessions,resolveSession:e.sessionCtx.resolveSession,createStateCheckpoint:e.sessionCtx.createStateCheckpoint,openSessions:i,closedSessions:a,canCreateNewSession:s}}function x_(){var e;const{sessionState:t}=ki(),{messagesState:n}=Ea(),r=((e=t.session)==null?void 0:e.assignee.kind)==="ai",i=n.messages.length>0?n.messages[n.messages.length-1]:null,a=(i==null?void 0:i.type)==="FROM_USER";return{isAwaitingBotReply:(r||t.isCreatingSession)&&(n.isSendingMessage||a)}}function Ld(){const{widgetCtx:e}=_n();return p8([e.config.token],e.api.widgetPrelude,{revalidateOnFocus:!1})}function Oi(){const{widgetCtx:e}=_n();return{routerState:Lu(e.routerCtx.state),toSessionsScreen:e.routerCtx.toSessionsScreen,toChatScreen:e.routerCtx.toChatScreen}}const Ta=new Map;function v8(){const[e,t]=E.useState([]),{widgetCtx:{api:n}}=_n();function r(c){const f=c.map(d=>({file:d,id:fg(),status:"pending",progress:0}));t(d=>[...d,...f]),f.forEach(s)}function i(c,f){t(d=>d.map(h=>h.id===c?{...h,...f}:h))}function a(c){t(f=>f.filter(d=>d.id!==c))}const s=async c=>{const f=new AbortController;Ta.set(c.id,f);try{t(h=>h.map(g=>g.id===c.id?{...g,status:"uploading",progress:0}:g));const d=await n.uploadFile({file:c.file,abortSignal:f.signal,onProgress:h=>{i(c.id,{progress:h})}});i(c.id,{status:"success",fileUrl:d.fileUrl,progress:100})}catch(d){f.signal.aborted||i(c.id,{status:"error",error:d instanceof Error?d.message:"Upload failed",progress:0})}finally{Ta.delete(c.id)}},o=c=>{const f=Ta.get(c);f&&(f.abort(),Ta.delete(c)),a(c)},l=E.useMemo(()=>e.filter(c=>c.status==="success"&&c.fileUrl),[e]);function u(){Ta.forEach(c=>c.abort()),Ta.clear(),t([])}return E.useEffect(()=>()=>{Ta.forEach(c=>c.abort()),Ta.clear()},[]),{allFiles:e,appendFiles:r,handleCancelUpload:o,successFiles:l,emptyTheFiles:u,getFileById:c=>e.find(f=>f.id===c),getUploadProgress:c=>{var f;return((f=e.find(d=>d.id===c))==null?void 0:f.progress)??0},getUploadStatus:c=>{var f;return(f=e.find(d=>d.id===c))==null?void 0:f.status},hasErrors:e.some(c=>c.status==="error"),isUploading:e.some(c=>c.status==="uploading")}}const E_=E.createContext(null);function x8({children:e}){const t=Lt(),[n,r]=E.useState(()=>t.inline?!0:t.isOpen??!1);return E.useEffect(()=>{r(i=>t.isOpen??i)},[t.isOpen]),E.useEffect(()=>{const i=t.openAfterNSeconds;if(typeof i!="number"||isNaN(i))return;const a=setTimeout(()=>r(!0),i*1e3);return()=>clearTimeout(a)},[t.openAfterNSeconds]),zn.createElement(E_.Provider,{value:{isOpen:n,setIsOpen:r}},e)}function Po(){const e=E.useContext(E_);if(!e)throw new Error("useWidgetTrigger must be used within a WidgetTriggerProvider");return e}function T_(){var e,t;const{widgetCtx:n}=_n(),{modesComponents:r}=Lt(),{sessionState:i}=ki(),a=n.modes,s=(e=i.session)==null?void 0:e.modeId,o=a.find(u=>u.id===s),l=(t=r==null?void 0:r.find(u=>{var c,f;return[(o==null?void 0:o.id)||"",((c=o==null?void 0:o.name)==null?void 0:c.toLowerCase())||"",((f=o==null?void 0:o.slug)==null?void 0:f.toLowerCase())||""].includes(u.key.toLowerCase())}))==null?void 0:t.component;return{modes:a,modesComponents:r,activeModeId:s,activeMode:o,Component:l}}const w_=-1,Id=0,Iu=1,Pd=2,Ng=3,Dg=4,Mg=5,Lg=6,__=7,S_=8,A_=typeof self=="object"?self:globalThis,E8=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case Id:case w_:return n(s,i);case Iu:{const o=n([],i);for(const l of s)o.push(r(l));return o}case Pd:{const o=n({},i);for(const[l,u]of s)o[r(l)]=r(u);return o}case Ng:return n(new Date(s),i);case Dg:{const{source:o,flags:l}=s;return n(new RegExp(o,l),i)}case Mg:{const o=n(new Map,i);for(const[l,u]of s)o.set(r(l),r(u));return o}case Lg:{const o=n(new Set,i);for(const l of s)o.add(r(l));return o}case __:{const{name:o,message:l}=s;return n(new A_[o](l),i)}case S_:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return n(new DataView(o),s)}}return n(new A_[a](s),i)};return r},C_=e=>E8(new Map,e)(0),Bo="",{toString:T8}={},{keys:w8}=Object,Pu=e=>{const t=typeof e;if(t!=="object"||!e)return[Id,t];const n=T8.call(e).slice(8,-1);switch(n){case"Array":return[Iu,Bo];case"Object":return[Pd,Bo];case"Date":return[Ng,Bo];case"RegExp":return[Dg,Bo];case"Map":return[Mg,Bo];case"Set":return[Lg,Bo];case"DataView":return[Iu,n]}return n.includes("Array")?[Iu,n]:n.includes("Error")?[__,n]:[Pd,n]},Bd=([e,t])=>e===Id&&(t==="function"||t==="symbol"),_8=(e,t,n,r)=>{const i=(s,o)=>{const l=r.push(s)-1;return n.set(o,l),l},a=s=>{if(n.has(s))return n.get(s);let[o,l]=Pu(s);switch(o){case Id:{let c=s;switch(l){case"bigint":o=S_,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([w_],s)}return i([o,c],s)}case Iu:{if(l){let d=s;return l==="DataView"?d=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(d=new Uint8Array(s)),i([l,[...d]],s)}const c=[],f=i([o,c],s);for(const d of s)c.push(a(d));return f}case Pd:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const c=[],f=i([o,c],s);for(const d of w8(s))(e||!Bd(Pu(s[d])))&&c.push([a(d),a(s[d])]);return f}case Ng:return i([o,s.toISOString()],s);case Dg:{const{source:c,flags:f}=s;return i([o,{source:c,flags:f}],s)}case Mg:{const c=[],f=i([o,c],s);for(const[d,h]of s)(e||!(Bd(Pu(d))||Bd(Pu(h))))&&c.push([a(d),a(h)]);return f}case Lg:{const c=[],f=i([o,c],s);for(const d of s)(e||!Bd(Pu(d)))&&c.push(a(d));return f}}const{message:u}=s;return i([o,{name:l,message:u}],s)};return a},k_=(e,{json:t,lossy:n}={})=>{const r=[];return _8(!(t||n),!!t,new Map,r)(e),r},Uo=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?C_(k_(e,t)):structuredClone(e):(e,t)=>C_(k_(e,t));function jJ(){}function FJ(){}let Bu=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};Bu.prototype.normal={},Bu.prototype.property={},Bu.prototype.space=void 0;function O_(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Bu(n,r,t)}function Uu(e){return e.toLowerCase()}let Mn=class{constructor(t,n){this.attribute=n,this.property=t}};Mn.prototype.attribute="",Mn.prototype.booleanish=!1,Mn.prototype.boolean=!1,Mn.prototype.commaOrSpaceSeparated=!1,Mn.prototype.commaSeparated=!1,Mn.prototype.defined=!1,Mn.prototype.mustUseProperty=!1,Mn.prototype.number=!1,Mn.prototype.overloadedBoolean=!1,Mn.prototype.property="",Mn.prototype.spaceSeparated=!1,Mn.prototype.space=void 0;let S8=0;const we=cs(),It=cs(),Ig=cs(),Z=cs(),ot=cs(),zo=cs(),Zn=cs();function cs(){return 2**++S8}const Pg=Object.freeze(Object.defineProperty({__proto__:null,boolean:we,booleanish:It,commaOrSpaceSeparated:Zn,commaSeparated:zo,number:Z,overloadedBoolean:Ig,spaceSeparated:ot},Symbol.toStringTag,{value:"Module"})),Bg=Object.keys(Pg);let Ug=class extends Mn{constructor(t,n,r,i){let a=-1;if(super(t,n),R_(this,"space",i),typeof r=="number")for(;++a<Bg.length;){const s=Bg[a];R_(this,Bg[a],(r&Pg[s])===Pg[s])}}};Ug.prototype.defined=!0;function R_(e,t,n){n&&(e[t]=n)}function jo(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const a=new Ug(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Uu(r)]=r,n[Uu(a.attribute)]=r}return new Bu(t,n,e.space)}const N_=jo({properties:{ariaActiveDescendant:null,ariaAtomic:It,ariaAutoComplete:null,ariaBusy:It,ariaChecked:It,ariaColCount:Z,ariaColIndex:Z,ariaColSpan:Z,ariaControls:ot,ariaCurrent:null,ariaDescribedBy:ot,ariaDetails:null,ariaDisabled:It,ariaDropEffect:ot,ariaErrorMessage:null,ariaExpanded:It,ariaFlowTo:ot,ariaGrabbed:It,ariaHasPopup:null,ariaHidden:It,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ot,ariaLevel:Z,ariaLive:null,ariaModal:It,ariaMultiLine:It,ariaMultiSelectable:It,ariaOrientation:null,ariaOwns:ot,ariaPlaceholder:null,ariaPosInSet:Z,ariaPressed:It,ariaReadOnly:It,ariaRelevant:null,ariaRequired:It,ariaRoleDescription:ot,ariaRowCount:Z,ariaRowIndex:Z,ariaRowSpan:Z,ariaSelected:It,ariaSetSize:Z,ariaSort:null,ariaValueMax:Z,ariaValueMin:Z,ariaValueNow:Z,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function D_(e,t){return t in e?e[t]:t}function M_(e,t){return D_(e,t.toLowerCase())}const A8=jo({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:zo,acceptCharset:ot,accessKey:ot,action:null,allow:null,allowFullScreen:we,allowPaymentRequest:we,allowUserMedia:we,alt:null,as:null,async:we,autoCapitalize:null,autoComplete:ot,autoFocus:we,autoPlay:we,blocking:ot,capture:null,charSet:null,checked:we,cite:null,className:ot,cols:Z,colSpan:null,content:null,contentEditable:It,controls:we,controlsList:ot,coords:Z|zo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:we,defer:we,dir:null,dirName:null,disabled:we,download:Ig,draggable:It,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:we,formTarget:null,headers:ot,height:Z,hidden:Ig,high:Z,href:null,hrefLang:null,htmlFor:ot,httpEquiv:ot,id:null,imageSizes:null,imageSrcSet:null,inert:we,inputMode:null,integrity:null,is:null,isMap:we,itemId:null,itemProp:ot,itemRef:ot,itemScope:we,itemType:ot,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:we,low:Z,manifest:null,max:null,maxLength:Z,media:null,method:null,min:null,minLength:Z,multiple:we,muted:we,name:null,nonce:null,noModule:we,noValidate:we,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:we,optimum:Z,pattern:null,ping:ot,placeholder:null,playsInline:we,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:we,referrerPolicy:null,rel:ot,required:we,reversed:we,rows:Z,rowSpan:Z,sandbox:ot,scope:null,scoped:we,seamless:we,selected:we,shadowRootClonable:we,shadowRootDelegatesFocus:we,shadowRootMode:null,shape:null,size:Z,sizes:null,slot:null,span:Z,spellCheck:It,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Z,step:null,style:null,tabIndex:Z,target:null,title:null,translate:null,type:null,typeMustMatch:we,useMap:null,value:It,width:Z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ot,axis:null,background:null,bgColor:null,border:Z,borderColor:null,bottomMargin:Z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:we,declare:we,event:null,face:null,frame:null,frameBorder:null,hSpace:Z,leftMargin:Z,link:null,longDesc:null,lowSrc:null,marginHeight:Z,marginWidth:Z,noResize:we,noHref:we,noShade:we,noWrap:we,object:null,profile:null,prompt:null,rev:null,rightMargin:Z,rules:null,scheme:null,scrolling:It,standby:null,summary:null,text:null,topMargin:Z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:we,disableRemotePlayback:we,prefix:null,property:null,results:Z,security:null,unselectable:null},space:"html",transform:M_}),C8=jo({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Zn,accentHeight:Z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Z,amplitude:Z,arabicForm:null,ascent:Z,attributeName:null,attributeType:null,azimuth:Z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Z,by:null,calcMode:null,capHeight:Z,className:ot,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Z,diffuseConstant:Z,direction:null,display:null,dur:null,divisor:Z,dominantBaseline:null,download:we,dx:null,dy:null,edgeMode:null,editable:null,elevation:Z,enableBackground:null,end:null,event:null,exponent:Z,externalResourcesRequired:null,fill:null,fillOpacity:Z,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:zo,g2:zo,glyphName:zo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Z,horizOriginX:Z,horizOriginY:Z,id:null,ideographic:Z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Z,k:Z,k1:Z,k2:Z,k3:Z,k4:Z,kernelMatrix:Zn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Z,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Z,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Z,overlineThickness:Z,paintOrder:null,panose1:null,path:null,pathLength:Z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ot,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Z,pointsAtY:Z,pointsAtZ:Z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Zn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Zn,rev:Zn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Zn,requiredFeatures:Zn,requiredFonts:Zn,requiredFormats:Zn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Z,specularExponent:Z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Z,strikethroughThickness:Z,string:null,stroke:null,strokeDashArray:Zn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Z,strokeOpacity:Z,strokeWidth:null,style:null,surfaceScale:Z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Zn,tabIndex:Z,tableValues:null,target:null,targetX:Z,targetY:Z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Zn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Z,underlineThickness:Z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Z,values:null,vAlphabetic:Z,vMathematical:Z,vectorEffect:null,vHanging:Z,vIdeographic:Z,version:null,vertAdvY:Z,vertOriginX:Z,vertOriginY:Z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:D_}),L_=jo({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),I_=jo({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:M_}),P_=jo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),k8={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},O8=/[A-Z]/g,B_=/-[a-z]/g,R8=/^data[-\w.:]+$/i;function zg(e,t){const n=Uu(t);let r=t,i=Mn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&R8.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(B_,D8);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!B_.test(a)){let s=a.replace(O8,N8);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=Ug}return new i(r,t)}function N8(e){return"-"+e.toLowerCase()}function D8(e){return e.charAt(1).toUpperCase()}const Ud=O_([N_,A8,L_,I_,P_],"html"),Fo=O_([N_,C8,L_,I_,P_],"svg");function U_(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(i,r).trim();(s||!a)&&t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function z_(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const j_=/[#.]/g;function M8(e,t){const n=e||"",r={};let i=0,a,s;for(;i<n.length;){j_.lastIndex=i;const o=j_.exec(n),l=n.slice(i,o?o.index:n.length);l&&(a?a==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:s=l,i+=l.length),o&&(a=o[0],i++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}function F_(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function H_(e){return e.join(" ").trim()}function V_(e,t,n){const r=n?B8(n):void 0;function i(a,s,...o){let l;if(a==null){l={type:"root",children:[]};const u=s;o.unshift(u)}else{l=M8(a,t);const u=l.tagName.toLowerCase(),c=r?r.get(u):void 0;if(l.tagName=c||u,L8(s))o.unshift(s);else for(const[f,d]of Object.entries(s))I8(e,l.properties,f,d)}for(const u of o)jg(l.children,u);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return i}function L8(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const s of a)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function I8(e,t,n,r){const i=zg(e,n);let a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r}else typeof r=="boolean"?a=r:typeof r=="string"?i.spaceSeparated?a=F_(r):i.commaSeparated?a=U_(r):i.commaOrSpaceSeparated?a=F_(U_(r).join(" ")):a=q_(i,i.property,r):Array.isArray(r)?a=[...r]:a=i.property==="style"?P8(r):String(r);if(Array.isArray(a)){const s=[];for(const o of a)s.push(q_(i,i.property,o));a=s}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function jg(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)jg(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?jg(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function q_(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Uu(n)===Uu(t)))return!0}return n}function P8(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function B8(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const U8=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],z8=V_(Ud,"div"),j8=V_(Fo,"g",U8);function F8(e){const t=String(e),n=[];return{toOffset:i,toPoint:r};function r(a){if(typeof a=="number"&&a>-1&&a<=t.length){let s=0;for(;;){let o=n[s];if(o===void 0){const l=Y_(t,n[s-1]);o=l===-1?t.length+1:l+1,n[s]=o}if(o>a)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a};s++}}}function i(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length<a.line;){const o=n[n.length-1],l=Y_(t,o),u=l===-1?t.length+1:l+1;if(o===u)break;n.push(u)}const s=(a.line>1?n[a.line-2]:0)+a.column-1;if(s<n[a.line-1])return s}}}function Y_(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
100
|
+
*/var Io=E;function NI(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var DI=typeof Object.is=="function"?Object.is:NI,MI=Io.useState,LI=Io.useEffect,II=Io.useLayoutEffect,PI=Io.useDebugValue;function BI(e,t){var n=t(),r=MI({inst:{value:n,getSnapshot:t}}),i=r[0].inst,a=r[1];return II(function(){i.value=n,i.getSnapshot=t,hg(i)&&a({inst:i})},[e,n,t]),LI(function(){return hg(i)&&a({inst:i}),e(function(){hg(i)&&a({inst:i})})},[e]),PI(n),n}function hg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!DI(e,n)}catch{return!0}}function UI(e,t){return t()}var zI=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?UI:BI;r_.useSyncExternalStore=Io.useSyncExternalStore!==void 0?Io.useSyncExternalStore:zI,n_.exports=r_;var i_=n_.exports;const a_=0,s_=1,o_=2,l_=3;var u_=Object.prototype.hasOwnProperty;function pg(e,t){var n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&pg(e[r],t[r]););return r===-1}if(!n||typeof e=="object"){r=0;for(n in e)if(u_.call(e,n)&&++r&&!u_.call(t,n)||!(n in t)||!pg(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}const Ci=new WeakMap,va=()=>{},pn=va(),mg=Object,Fe=e=>e===pn,Zr=e=>typeof e=="function",xa=(e,t)=>({...e,...t}),c_=e=>Zr(e.then),gg={},Dd={},bg="undefined",Du=typeof window!=bg,yg=typeof document!=bg,jI=Du&&"Deno"in window,FI=()=>Du&&typeof window.requestAnimationFrame!=bg,f_=(e,t)=>{const n=Ci.get(e);return[()=>!Fe(t)&&e.get(t)||gg,r=>{if(!Fe(t)){const i=e.get(t);t in Dd||(Dd[t]=i),n[5](t,xa(i,r),i||gg)}},n[6],()=>!Fe(t)&&t in Dd?Dd[t]:!Fe(t)&&e.get(t)||gg]};let vg=!0;const HI=()=>vg,[xg,Eg]=Du&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[va,va],VI=()=>{const e=yg&&document.visibilityState;return Fe(e)||e!=="hidden"},qI=e=>(yg&&document.addEventListener("visibilitychange",e),xg("focus",e),()=>{yg&&document.removeEventListener("visibilitychange",e),Eg("focus",e)}),YI=e=>{const t=()=>{vg=!0,e()},n=()=>{vg=!1};return xg("online",t),xg("offline",n),()=>{Eg("online",t),Eg("offline",n)}},GI={isOnline:HI,isVisible:VI},$I={initFocus:qI,initReconnect:YI},d_=!zn.useId,Mu=!Du||jI,XI=e=>FI()?window.requestAnimationFrame(e):setTimeout(e,1),Tg=Mu?E.useEffect:E.useLayoutEffect,wg=typeof navigator<"u"&&navigator.connection,h_=!Mu&&wg&&(["slow-2g","2g"].includes(wg.effectiveType)||wg.saveData),Md=new WeakMap,KI=e=>mg.prototype.toString.call(e),_g=(e,t)=>e===`[object ${t}]`;let WI=0;const Sg=e=>{const t=typeof e,n=KI(e),r=_g(n,"Date"),i=_g(n,"RegExp"),a=_g(n,"Object");let s,o;if(mg(e)===e&&!r&&!i){if(s=Md.get(e),s)return s;if(s=++WI+"~",Md.set(e,s),Array.isArray(e)){for(s="@",o=0;o<e.length;o++)s+=Sg(e[o])+",";Md.set(e,s)}if(a){s="#";const l=mg.keys(e).sort();for(;!Fe(o=l.pop());)Fe(e[o])||(s+=o+":"+Sg(e[o])+",");Md.set(e,s)}}else s=r?e.toJSON():t=="symbol"?e.toString():t=="string"?JSON.stringify(e):""+e;return s},Ag=e=>{if(Zr(e))try{e=e()}catch{e=""}const t=e;return e=typeof e=="string"?e:(Array.isArray(e)?e.length:e)?Sg(e):"",[e,t]};let QI=0;const Cg=()=>++QI;async function p_(...e){const[t,n,r,i]=e,a=xa({populateCache:!0,throwOnError:!0},typeof i=="boolean"?{revalidate:i}:i||{});let s=a.populateCache;const o=a.rollbackOnError;let l=a.optimisticData;const u=d=>typeof o=="function"?o(d):o!==!1,c=a.throwOnError;if(Zr(n)){const d=n,h=[],g=t.keys();for(const b of g)!/^\$(inf|sub)\$/.test(b)&&d(t.get(b)._k)&&h.push(b);return Promise.all(h.map(f))}return f(n);async function f(d){const[h]=Ag(d);if(!h)return;const[g,b]=f_(t,h),[T,m,y,v]=Ci.get(t),w=()=>{const K=T[h];return(Zr(a.revalidate)?a.revalidate(g().data,d):a.revalidate!==!1)&&(delete y[h],delete v[h],K&&K[0])?K[0](o_).then(()=>g().data):g().data};if(e.length<3)return w();let _=r,A,N=!1;const L=Cg();m[h]=[L,0];const F=!Fe(l),R=g(),q=R.data,j=R._c,ne=Fe(j)?q:j;if(F&&(l=Zr(l)?l(ne,q):l,b({data:l,_c:ne})),Zr(_))try{_=_(ne)}catch(K){A=K,N=!0}if(_&&c_(_))if(_=await _.catch(K=>{A=K,N=!0}),L!==m[h][0]){if(N)throw A;return _}else N&&F&&u(A)&&(s=!0,b({data:ne,_c:pn}));if(s&&!N)if(Zr(s)){const K=s(_,ne);b({data:K,error:pn,_c:pn})}else b({data:_,error:pn,_c:pn});if(m[h][1]=Cg(),Promise.resolve(w()).then(()=>{b({_c:pn})}),N){if(c)throw A;return}return _}}const m_=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},ZI=(e,t)=>{if(!Ci.has(e)){const n=xa($I,t),r=Object.create(null),i=p_.bind(pn,e);let a=va;const s=Object.create(null),o=(c,f)=>{const d=s[c]||[];return s[c]=d,d.push(f),()=>d.splice(d.indexOf(f),1)},l=(c,f,d)=>{e.set(c,f);const h=s[c];if(h)for(const g of h)g(f,d)},u=()=>{if(!Ci.has(e)&&(Ci.set(e,[r,Object.create(null),Object.create(null),Object.create(null),i,l,o]),!Mu)){const c=n.initFocus(setTimeout.bind(pn,m_.bind(pn,r,a_))),f=n.initReconnect(setTimeout.bind(pn,m_.bind(pn,r,s_)));a=()=>{c&&c(),f&&f(),Ci.delete(e)}}};return u(),[e,i,u,a]}return[e,Ci.get(e)[4]]},JI=(e,t,n,r,i)=>{const a=n.errorRetryCount,s=i.retryCount,o=~~((Math.random()+.5)*(1<<(s<8?s:8)))*n.errorRetryInterval;!Fe(a)&&s>a||setTimeout(r,o,i)},e8=pg,[g_,t8]=ZI(new Map),n8=xa({onLoadingSlow:va,onSuccess:va,onError:va,onErrorRetry:JI,onDiscarded:va,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:h_?1e4:5e3,focusThrottleInterval:5*1e3,dedupingInterval:2*1e3,loadingTimeout:h_?5e3:3e3,compare:e8,isPaused:()=>!1,cache:g_,mutate:t8,fallback:{}},GI),r8=(e,t)=>{const n=xa(e,t);if(t){const{use:r,fallback:i}=e,{use:a,fallback:s}=t;r&&a&&(n.use=r.concat(a)),i&&s&&(n.fallback=xa(i,s))}return n},i8=E.createContext({}),a8="$inf$",b_=Du&&window.__SWR_DEVTOOLS_USE__,s8=b_?window.__SWR_DEVTOOLS_USE__:[],o8=()=>{b_&&(window.__SWR_DEVTOOLS_REACT__=zn)},l8=e=>Zr(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(e[1]===null?e[2]:e[1])||{}],u8=()=>{const e=E.useContext(i8);return E.useMemo(()=>xa(n8,e),[e])},c8=e=>(t,n,r)=>e(t,n&&((...a)=>{const[s]=Ag(t),[,,,o]=Ci.get(g_);if(s.startsWith(a8))return n(...a);const l=o[s];return Fe(l)?n(...a):(delete o[s],l)}),r),f8=s8.concat(c8),d8=e=>function(...n){const r=u8(),[i,a,s]=l8(n),o=r8(r,s);let l=e;const{use:u}=o,c=(u||[]).concat(f8);for(let f=c.length;f--;)l=c[f](l);return l(i,a||o.fetcher||null,o)},h8=(e,t,n)=>{const r=t[e]||(t[e]=[]);return r.push(n),()=>{const i=r.indexOf(n);i>=0&&(r[i]=r[r.length-1],r.pop())}};o8();const kg=zn.use||(e=>{switch(e.status){case"pending":throw e;case"fulfilled":return e.value;case"rejected":throw e.reason;default:throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}}),Og={dedupe:!0},y_=Promise.resolve(pn),p8=d8((e,t,n)=>{const{cache:r,compare:i,suspense:a,fallbackData:s,revalidateOnMount:o,revalidateIfStale:l,refreshInterval:u,refreshWhenHidden:c,refreshWhenOffline:f,keepPreviousData:d}=n,[h,g,b,T]=Ci.get(r),[m,y]=Ag(e),v=E.useRef(!1),w=E.useRef(!1),_=E.useRef(m),A=E.useRef(t),N=E.useRef(n),L=()=>N.current,F=()=>L().isVisible()&&L().isOnline(),[R,q,j,ne]=f_(r,m),K=E.useRef({}).current,W=Fe(s)?Fe(n.fallback)?pn:n.fallback[m]:s,H=(ye,Ie)=>{for(const $e in K){const Re=$e;if(Re==="data"){if(!i(ye[Re],Ie[Re])&&(!Fe(ye[Re])||!i(pe,Ie[Re])))return!1}else if(Ie[Re]!==ye[Re])return!1}return!0},V=E.useMemo(()=>{const ye=!m||!t?!1:Fe(o)?L().isPaused()||a?!1:l!==!1:o,Ie=tt=>{const tn=xa(tt);return delete tn._k,ye?{isValidating:!0,isLoading:!0,...tn}:tn},$e=R(),Re=ne(),et=Ie($e),$t=$e===Re?et:Ie(Re);let Be=et;return[()=>{const tt=Ie(R());return H(tt,Be)?(Be.data=tt.data,Be.isLoading=tt.isLoading,Be.isValidating=tt.isValidating,Be.error=tt.error,Be):(Be=tt,tt)},()=>$t]},[r,m]),z=i_.useSyncExternalStore(E.useCallback(ye=>j(m,(Ie,$e)=>{H($e,Ie)||ye()}),[r,m]),V[0],V[1]),te=!v.current,O=h[m]&&h[m].length>0,he=z.data,je=Fe(he)?W&&c_(W)?kg(W):W:he,M=z.error,Le=E.useRef(je),pe=d?Fe(he)?Fe(Le.current)?je:Le.current:he:je,Pe=O&&!Fe(M)?!1:te&&!Fe(o)?o:L().isPaused()?!1:a?Fe(je)?!1:l:Fe(je)||l,Yt=!!(m&&t&&te&&Pe),Qe=Fe(z.isValidating)?Yt:z.isValidating,Ut=Fe(z.isLoading)?Yt:z.isLoading,ut=E.useCallback(async ye=>{const Ie=A.current;if(!m||!Ie||w.current||L().isPaused())return!1;let $e,Re,et=!0;const $t=ye||{},Be=!b[m]||!$t.dedupe,tt=()=>d_?!w.current&&m===_.current&&v.current:m===_.current,tn={isValidating:!1,isLoading:!1},cn=()=>{q(tn)},_r=()=>{const se=b[m];se&&se[1]===Re&&delete b[m]},re={isValidating:!0};Fe(R().data)&&(re.isLoading=!0);try{if(Be&&(q(re),n.loadingTimeout&&Fe(R().data)&&setTimeout(()=>{et&&tt()&&L().onLoadingSlow(m,n)},n.loadingTimeout),b[m]=[Ie(y),Cg()]),[$e,Re]=b[m],$e=await $e,Be&&setTimeout(_r,n.dedupingInterval),!b[m]||b[m][1]!==Re)return Be&&tt()&&L().onDiscarded(m),!1;tn.error=pn;const se=g[m];if(!Fe(se)&&(Re<=se[0]||Re<=se[1]||se[1]===0))return cn(),Be&&tt()&&L().onDiscarded(m),!1;const B=R().data;tn.data=i(B,$e)?B:$e,Be&&tt()&&L().onSuccess($e,m,n)}catch(se){_r();const B=L(),{shouldRetryOnError:G}=B;B.isPaused()||(tn.error=se,Be&&tt()&&(B.onError(se,m,B),(G===!0||Zr(G)&&G(se))&&(!L().revalidateOnFocus||!L().revalidateOnReconnect||F())&&B.onErrorRetry(se,m,B,oe=>{const be=h[m];be&&be[0]&&be[0](l_,oe)},{retryCount:($t.retryCount||0)+1,dedupe:!0})))}return et=!1,cn(),!0},[m,r]),Nt=E.useCallback((...ye)=>p_(r,_.current,...ye),[]);if(Tg(()=>{A.current=t,N.current=n,Fe(he)||(Le.current=he)}),Tg(()=>{if(!m)return;const ye=ut.bind(pn,Og);let Ie=0;L().revalidateOnFocus&&(Ie=Date.now()+L().focusThrottleInterval);const Re=h8(m,h,(et,$t={})=>{if(et==a_){const Be=Date.now();L().revalidateOnFocus&&Be>Ie&&F()&&(Ie=Be+L().focusThrottleInterval,ye())}else if(et==s_)L().revalidateOnReconnect&&F()&&ye();else{if(et==o_)return ut();if(et==l_)return ut($t)}});return w.current=!1,_.current=m,v.current=!0,q({_k:y}),Pe&&(b[m]||(Fe(je)||Mu?ye():XI(ye))),()=>{w.current=!0,Re()}},[m]),Tg(()=>{let ye;function Ie(){const Re=Zr(u)?u(R().data):u;Re&&ye!==-1&&(ye=setTimeout($e,Re))}function $e(){!R().error&&(c||L().isVisible())&&(f||L().isOnline())?ut(Og).then(Ie):Ie()}return Ie(),()=>{ye&&(clearTimeout(ye),ye=-1)}},[u,c,f,m]),E.useDebugValue(pe),a){if(!d_&&Mu)throw new Error("Fallback data is required when using Suspense in SSR.");const ye=m&&Fe(je);ye&&(A.current=t,N.current=n,w.current=!1);const Ie=T[m],$e=!Fe(Ie)&&ye?Nt(Ie):y_;if(kg($e),!Fe(M)&&ye)throw M;const Re=ye?ut(Og):y_;!Fe(pe)&&ye&&(Re.status="fulfilled",Re.value=!0),kg(Re)}return{mutate:Nt,get data(){return K.data=!0,pe},get error(){return K.error=!0,M},get isValidating(){return K.isValidating=!0,Qe},get isLoading(){return K.isLoading=!0,Ut}}}),m8="4.0.3";class g8{constructor(t){this.components=[];const{components:n}=t;if(n&&n.forEach(r=>this.register(r)),this.components.length===0)throw new Error("No components registered");if(!this.get("fallback"))throw new Error("No fallback component registered")}register(t){const n=this.components.findIndex(r=>r.key===t.key);return n!==-1?this.components[n]=t:this.components.push(t),this}get(t){return this.components.find(r=>r.key.toUpperCase()===t.toUpperCase())||null}getComponent(t){var n;return(n=this.get(t))==null?void 0:n.component}}const v_=E.createContext(null);function b8({options:e,children:t,components:n,storage:r,loadingComponent:i}){const a=E.useRef(null),s=E.useRef(!1),[o,l]=E.useState(null),u=E.useMemo(()=>new g8({components:n}),[n]);return E.useEffect(()=>{s.current||(s.current=!0,RI.initialize({config:e,storage:r}).then(l))},[]),o?zn.createElement(v_.Provider,{value:{widgetCtx:o,config:e,components:n,componentStore:u,version:m8,contentIframeRef:a}},t):i||null}function _n(){const e=E.useContext(v_);if(!e)throw new Error("useWidget must be used within a WidgetProvider");return e}function Lt(){const{config:e}=_n();return e}function Lu(e){return E.useSyncExternalStore(e.subscribe,e.get,e.get)}function y8(){const{widgetCtx:e}=_n();return{contactState:Lu(e.contactCtx.state),createUnverifiedContact:e.contactCtx.createUnverifiedContact}}function Rg(){const[e,t]=E.useState("ltr");return E.useEffect(()=>{const n=()=>{typeof document>"u"||t(window.getComputedStyle((window.top||window).document.body).direction)};n();const r=new MutationObserver(n);return r.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}),r.observe(document.body,{attributes:!0,attributeFilter:["dir"]}),window.addEventListener("languagechange",n),()=>{r.disconnect(),window.removeEventListener("languagechange",n)}},[]),{dir:e}}function Ea(){const{widgetCtx:e}=_n();return{messagesState:Lu(e.messageCtx.state),sendMessage:e.messageCtx.sendMessage}}function ki(){const{widgetCtx:e}=_n(),{oneOpenSessionAllowed:t}=Lt(),n=Lu(e.sessionCtx.sessionState),r=Lu(e.sessionCtx.sessionsState),{openSessions:i,closedSessions:a}=E.useMemo(()=>({openSessions:r.data.filter(o=>o.isOpened===!0),closedSessions:r.data.filter(o=>o.isOpened===!1)}),[r.data]),s=E.useMemo(()=>t?i.length===0:!0,[t,i.length]);return{sessionState:n,sessionsState:r,loadMoreSessions:e.sessionCtx.loadMoreSessions,resolveSession:e.sessionCtx.resolveSession,createStateCheckpoint:e.sessionCtx.createStateCheckpoint,openSessions:i,closedSessions:a,canCreateNewSession:s}}function x_(){var e;const{sessionState:t}=ki(),{messagesState:n}=Ea(),r=((e=t.session)==null?void 0:e.assignee.kind)==="ai",i=n.messages.length>0?n.messages[n.messages.length-1]:null,a=(i==null?void 0:i.type)==="FROM_USER";return{isAwaitingBotReply:(r||t.isCreatingSession)&&(n.isSendingMessage||a)}}function Ld(){const{widgetCtx:e}=_n();return p8([e.config.token],e.api.widgetPrelude,{revalidateOnFocus:!1})}function Oi(){const{widgetCtx:e}=_n();return{routerState:Lu(e.routerCtx.state),toSessionsScreen:e.routerCtx.toSessionsScreen,toChatScreen:e.routerCtx.toChatScreen}}const Ta=new Map;function v8(){const[e,t]=E.useState([]),{widgetCtx:{api:n}}=_n();function r(c){const f=c.map(d=>({file:d,id:fg(),status:"pending",progress:0}));t(d=>[...d,...f]),f.forEach(s)}function i(c,f){t(d=>d.map(h=>h.id===c?{...h,...f}:h))}function a(c){t(f=>f.filter(d=>d.id!==c))}const s=async c=>{const f=new AbortController;Ta.set(c.id,f);try{t(h=>h.map(g=>g.id===c.id?{...g,status:"uploading",progress:0}:g));const d=await n.uploadFile({file:c.file,abortSignal:f.signal,onProgress:h=>{i(c.id,{progress:h})}});i(c.id,{status:"success",fileUrl:d.fileUrl,progress:100})}catch(d){f.signal.aborted||i(c.id,{status:"error",error:d instanceof Error?d.message:"Upload failed",progress:0})}finally{Ta.delete(c.id)}},o=c=>{const f=Ta.get(c);f&&(f.abort(),Ta.delete(c)),a(c)},l=E.useMemo(()=>e.filter(c=>c.status==="success"&&c.fileUrl),[e]);function u(){Ta.forEach(c=>c.abort()),Ta.clear(),t([])}return E.useEffect(()=>()=>{Ta.forEach(c=>c.abort()),Ta.clear()},[]),{allFiles:e,appendFiles:r,handleCancelUpload:o,successFiles:l,emptyTheFiles:u,getFileById:c=>e.find(f=>f.id===c),getUploadProgress:c=>{var f;return((f=e.find(d=>d.id===c))==null?void 0:f.progress)??0},getUploadStatus:c=>{var f;return(f=e.find(d=>d.id===c))==null?void 0:f.status},hasErrors:e.some(c=>c.status==="error"),isUploading:e.some(c=>c.status==="uploading")}}const E_=E.createContext(null);function x8({children:e}){const t=Lt(),[n,r]=E.useState(()=>t.inline?!0:t.isOpen??!1);return E.useEffect(()=>{r(i=>t.isOpen??i)},[t.isOpen]),E.useEffect(()=>{const i=t.openAfterNSeconds;if(typeof i!="number"||isNaN(i))return;const a=setTimeout(()=>r(!0),i*1e3);return()=>clearTimeout(a)},[t.openAfterNSeconds]),zn.createElement(E_.Provider,{value:{isOpen:n,setIsOpen:r}},e)}function Po(){const e=E.useContext(E_);if(!e)throw new Error("useWidgetTrigger must be used within a WidgetTriggerProvider");return e}function T_(){var e,t;const{widgetCtx:n}=_n(),{modesComponents:r}=Lt(),{sessionState:i}=ki(),a=n.modes,s=(e=i.session)==null?void 0:e.modeId,o=a.find(u=>u.id===s),l=(t=r==null?void 0:r.find(u=>{var c,f;return[(o==null?void 0:o.id)||"",((c=o==null?void 0:o.name)==null?void 0:c.toLowerCase())||"",((f=o==null?void 0:o.slug)==null?void 0:f.toLowerCase())||""].includes(u.key.toLowerCase())}))==null?void 0:t.component;return{modes:a,modesComponents:r,activeModeId:s,activeMode:o,Component:l}}const w_=-1,Id=0,Iu=1,Pd=2,Ng=3,Dg=4,Mg=5,Lg=6,__=7,S_=8,A_=typeof self=="object"?self:globalThis,E8=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case Id:case w_:return n(s,i);case Iu:{const o=n([],i);for(const l of s)o.push(r(l));return o}case Pd:{const o=n({},i);for(const[l,u]of s)o[r(l)]=r(u);return o}case Ng:return n(new Date(s),i);case Dg:{const{source:o,flags:l}=s;return n(new RegExp(o,l),i)}case Mg:{const o=n(new Map,i);for(const[l,u]of s)o.set(r(l),r(u));return o}case Lg:{const o=n(new Set,i);for(const l of s)o.add(r(l));return o}case __:{const{name:o,message:l}=s;return n(new A_[o](l),i)}case S_:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:o}=new Uint8Array(s);return n(new DataView(o),s)}}return n(new A_[a](s),i)};return r},C_=e=>E8(new Map,e)(0),Bo="",{toString:T8}={},{keys:w8}=Object,Pu=e=>{const t=typeof e;if(t!=="object"||!e)return[Id,t];const n=T8.call(e).slice(8,-1);switch(n){case"Array":return[Iu,Bo];case"Object":return[Pd,Bo];case"Date":return[Ng,Bo];case"RegExp":return[Dg,Bo];case"Map":return[Mg,Bo];case"Set":return[Lg,Bo];case"DataView":return[Iu,n]}return n.includes("Array")?[Iu,n]:n.includes("Error")?[__,n]:[Pd,n]},Bd=([e,t])=>e===Id&&(t==="function"||t==="symbol"),_8=(e,t,n,r)=>{const i=(s,o)=>{const l=r.push(s)-1;return n.set(o,l),l},a=s=>{if(n.has(s))return n.get(s);let[o,l]=Pu(s);switch(o){case Id:{let c=s;switch(l){case"bigint":o=S_,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([w_],s)}return i([o,c],s)}case Iu:{if(l){let d=s;return l==="DataView"?d=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(d=new Uint8Array(s)),i([l,[...d]],s)}const c=[],f=i([o,c],s);for(const d of s)c.push(a(d));return f}case Pd:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const c=[],f=i([o,c],s);for(const d of w8(s))(e||!Bd(Pu(s[d])))&&c.push([a(d),a(s[d])]);return f}case Ng:return i([o,s.toISOString()],s);case Dg:{const{source:c,flags:f}=s;return i([o,{source:c,flags:f}],s)}case Mg:{const c=[],f=i([o,c],s);for(const[d,h]of s)(e||!(Bd(Pu(d))||Bd(Pu(h))))&&c.push([a(d),a(h)]);return f}case Lg:{const c=[],f=i([o,c],s);for(const d of s)(e||!Bd(Pu(d)))&&c.push(a(d));return f}}const{message:u}=s;return i([o,{name:l,message:u}],s)};return a},k_=(e,{json:t,lossy:n}={})=>{const r=[];return _8(!(t||n),!!t,new Map,r)(e),r},Uo=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?C_(k_(e,t)):structuredClone(e):(e,t)=>C_(k_(e,t));function jJ(){}function FJ(){}let Bu=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};Bu.prototype.normal={},Bu.prototype.property={},Bu.prototype.space=void 0;function O_(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Bu(n,r,t)}function Uu(e){return e.toLowerCase()}let Mn=class{constructor(t,n){this.attribute=n,this.property=t}};Mn.prototype.attribute="",Mn.prototype.booleanish=!1,Mn.prototype.boolean=!1,Mn.prototype.commaOrSpaceSeparated=!1,Mn.prototype.commaSeparated=!1,Mn.prototype.defined=!1,Mn.prototype.mustUseProperty=!1,Mn.prototype.number=!1,Mn.prototype.overloadedBoolean=!1,Mn.prototype.property="",Mn.prototype.spaceSeparated=!1,Mn.prototype.space=void 0;let S8=0;const we=cs(),It=cs(),Ig=cs(),Z=cs(),ot=cs(),zo=cs(),Zn=cs();function cs(){return 2**++S8}const Pg=Object.freeze(Object.defineProperty({__proto__:null,boolean:we,booleanish:It,commaOrSpaceSeparated:Zn,commaSeparated:zo,number:Z,overloadedBoolean:Ig,spaceSeparated:ot},Symbol.toStringTag,{value:"Module"})),Bg=Object.keys(Pg);let Ug=class extends Mn{constructor(t,n,r,i){let a=-1;if(super(t,n),R_(this,"space",i),typeof r=="number")for(;++a<Bg.length;){const s=Bg[a];R_(this,Bg[a],(r&Pg[s])===Pg[s])}}};Ug.prototype.defined=!0;function R_(e,t,n){n&&(e[t]=n)}function jo(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const a=new Ug(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Uu(r)]=r,n[Uu(a.attribute)]=r}return new Bu(t,n,e.space)}const N_=jo({properties:{ariaActiveDescendant:null,ariaAtomic:It,ariaAutoComplete:null,ariaBusy:It,ariaChecked:It,ariaColCount:Z,ariaColIndex:Z,ariaColSpan:Z,ariaControls:ot,ariaCurrent:null,ariaDescribedBy:ot,ariaDetails:null,ariaDisabled:It,ariaDropEffect:ot,ariaErrorMessage:null,ariaExpanded:It,ariaFlowTo:ot,ariaGrabbed:It,ariaHasPopup:null,ariaHidden:It,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ot,ariaLevel:Z,ariaLive:null,ariaModal:It,ariaMultiLine:It,ariaMultiSelectable:It,ariaOrientation:null,ariaOwns:ot,ariaPlaceholder:null,ariaPosInSet:Z,ariaPressed:It,ariaReadOnly:It,ariaRelevant:null,ariaRequired:It,ariaRoleDescription:ot,ariaRowCount:Z,ariaRowIndex:Z,ariaRowSpan:Z,ariaSelected:It,ariaSetSize:Z,ariaSort:null,ariaValueMax:Z,ariaValueMin:Z,ariaValueNow:Z,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function D_(e,t){return t in e?e[t]:t}function M_(e,t){return D_(e,t.toLowerCase())}const A8=jo({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:zo,acceptCharset:ot,accessKey:ot,action:null,allow:null,allowFullScreen:we,allowPaymentRequest:we,allowUserMedia:we,alt:null,as:null,async:we,autoCapitalize:null,autoComplete:ot,autoFocus:we,autoPlay:we,blocking:ot,capture:null,charSet:null,checked:we,cite:null,className:ot,cols:Z,colSpan:null,content:null,contentEditable:It,controls:we,controlsList:ot,coords:Z|zo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:we,defer:we,dir:null,dirName:null,disabled:we,download:Ig,draggable:It,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:we,formTarget:null,headers:ot,height:Z,hidden:Ig,high:Z,href:null,hrefLang:null,htmlFor:ot,httpEquiv:ot,id:null,imageSizes:null,imageSrcSet:null,inert:we,inputMode:null,integrity:null,is:null,isMap:we,itemId:null,itemProp:ot,itemRef:ot,itemScope:we,itemType:ot,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:we,low:Z,manifest:null,max:null,maxLength:Z,media:null,method:null,min:null,minLength:Z,multiple:we,muted:we,name:null,nonce:null,noModule:we,noValidate:we,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:we,optimum:Z,pattern:null,ping:ot,placeholder:null,playsInline:we,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:we,referrerPolicy:null,rel:ot,required:we,reversed:we,rows:Z,rowSpan:Z,sandbox:ot,scope:null,scoped:we,seamless:we,selected:we,shadowRootClonable:we,shadowRootDelegatesFocus:we,shadowRootMode:null,shape:null,size:Z,sizes:null,slot:null,span:Z,spellCheck:It,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Z,step:null,style:null,tabIndex:Z,target:null,title:null,translate:null,type:null,typeMustMatch:we,useMap:null,value:It,width:Z,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ot,axis:null,background:null,bgColor:null,border:Z,borderColor:null,bottomMargin:Z,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:we,declare:we,event:null,face:null,frame:null,frameBorder:null,hSpace:Z,leftMargin:Z,link:null,longDesc:null,lowSrc:null,marginHeight:Z,marginWidth:Z,noResize:we,noHref:we,noShade:we,noWrap:we,object:null,profile:null,prompt:null,rev:null,rightMargin:Z,rules:null,scheme:null,scrolling:It,standby:null,summary:null,text:null,topMargin:Z,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Z,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:we,disableRemotePlayback:we,prefix:null,property:null,results:Z,security:null,unselectable:null},space:"html",transform:M_}),C8=jo({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:Zn,accentHeight:Z,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Z,amplitude:Z,arabicForm:null,ascent:Z,attributeName:null,attributeType:null,azimuth:Z,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Z,by:null,calcMode:null,capHeight:Z,className:ot,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Z,diffuseConstant:Z,direction:null,display:null,dur:null,divisor:Z,dominantBaseline:null,download:we,dx:null,dy:null,edgeMode:null,editable:null,elevation:Z,enableBackground:null,end:null,event:null,exponent:Z,externalResourcesRequired:null,fill:null,fillOpacity:Z,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:zo,g2:zo,glyphName:zo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Z,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Z,horizOriginX:Z,horizOriginY:Z,id:null,ideographic:Z,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Z,k:Z,k1:Z,k2:Z,k3:Z,k4:Z,kernelMatrix:Zn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Z,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Z,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Z,overlineThickness:Z,paintOrder:null,panose1:null,path:null,pathLength:Z,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ot,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Z,pointsAtY:Z,pointsAtZ:Z,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Zn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Zn,rev:Zn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Zn,requiredFeatures:Zn,requiredFonts:Zn,requiredFormats:Zn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Z,specularExponent:Z,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Z,strikethroughThickness:Z,string:null,stroke:null,strokeDashArray:Zn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Z,strokeOpacity:Z,strokeWidth:null,style:null,surfaceScale:Z,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Zn,tabIndex:Z,tableValues:null,target:null,targetX:Z,targetY:Z,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Zn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Z,underlineThickness:Z,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Z,values:null,vAlphabetic:Z,vMathematical:Z,vectorEffect:null,vHanging:Z,vIdeographic:Z,version:null,vertAdvY:Z,vertOriginX:Z,vertOriginY:Z,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Z,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:D_}),L_=jo({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),I_=jo({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:M_}),P_=jo({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),k8={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},O8=/[A-Z]/g,B_=/-[a-z]/g,R8=/^data[-\w.:]+$/i;function zg(e,t){const n=Uu(t);let r=t,i=Mn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&R8.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(B_,D8);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!B_.test(a)){let s=a.replace(O8,N8);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=Ug}return new i(r,t)}function N8(e){return"-"+e.toLowerCase()}function D8(e){return e.charAt(1).toUpperCase()}const Ud=O_([N_,A8,L_,I_,P_],"html"),Fo=O_([N_,C8,L_,I_,P_],"svg");function U_(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(i,r).trim();(s||!a)&&t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function z_(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const j_=/[#.]/g;function M8(e,t){const n=e||"",r={};let i=0,a,s;for(;i<n.length;){j_.lastIndex=i;const o=j_.exec(n),l=n.slice(i,o?o.index:n.length);l&&(a?a==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:s=l,i+=l.length),o&&(a=o[0],i++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}function F_(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function H_(e){return e.join(" ").trim()}function V_(e,t,n){const r=n?B8(n):void 0;function i(a,s,...o){let l;if(a==null){l={type:"root",children:[]};const u=s;o.unshift(u)}else{l=M8(a,t);const u=l.tagName.toLowerCase(),c=r?r.get(u):void 0;if(l.tagName=c||u,L8(s))o.unshift(s);else for(const[f,d]of Object.entries(s))I8(e,l.properties,f,d)}for(const u of o)jg(l.children,u);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return i}function L8(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const i=t[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const s of a)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function I8(e,t,n,r){const i=zg(e,n);let a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r}else typeof r=="boolean"?a=r:typeof r=="string"?i.spaceSeparated?a=F_(r):i.commaSeparated?a=U_(r):i.commaOrSpaceSeparated?a=F_(U_(r).join(" ")):a=q_(i,i.property,r):Array.isArray(r)?a=[...r]:a=i.property==="style"?P8(r):String(r);if(Array.isArray(a)){const s=[];for(const o of a)s.push(q_(i,i.property,o));a=s}i.property==="className"&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[i.property]=a}}function jg(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)jg(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?jg(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function q_(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Uu(n)===Uu(t)))return!0}return n}function P8(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function B8(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const U8=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],z8=V_(Ud,"div"),j8=V_(Fo,"g",U8);function F8(e){const t=String(e),n=[];return{toOffset:i,toPoint:r};function r(a){if(typeof a=="number"&&a>-1&&a<=t.length){let s=0;for(;;){let o=n[s];if(o===void 0){const l=Y_(t,n[s-1]);o=l===-1?t.length+1:l+1,n[s]=o}if(o>a)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a};s++}}}function i(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length<a.line;){const o=n[n.length-1],l=Y_(t,o),u=l===-1?t.length+1:l+1;if(o===u)break;n.push(u)}const s=(a.line>1?n[a.line-2]:0)+a.column-1;if(s<n[a.line-1])return s}}}function Y_(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
|
|
101
101
|
`,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const fs={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},G_={}.hasOwnProperty,H8=Object.prototype;function V8(e,t){const n=t||{};return Fg({file:n.file||void 0,location:!1,schema:n.space==="svg"?Fo:Ud,verbose:n.verbose||!1},e)}function Fg(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},zd(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:$_(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const a=String(e.file),s=F8(a),o=s.toPoint(0),l=s.toPoint(a.length);n.position={start:o,end:l}}return n}case"#documentType":{const r=t;return n={type:"doctype"},zd(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},zd(e,r,n),n}default:return n=q8(e,t),n}}function $_(e,t){let n=-1;const r=[];for(;++n<t.length;){const i=Fg(e,t[n]);r.push(i)}return r}function q8(e,t){const n=e.schema;e.schema=t.namespaceURI===fs.svg?Fo:Ud;let r=-1;const i={};for(;++r<t.attrs.length;){const o=t.attrs[r],l=(o.prefix?o.prefix+":":"")+o.name;G_.call(H8,l)||(i[l]=o.value)}const s=(e.schema.space==="svg"?j8:z8)(t.tagName,i,$_(e,t.childNodes));if(zd(e,t,s),s.tagName==="template"){const o=t,l=o.sourceCodeLocation,u=l&&l.startTag&&Ho(l.startTag),c=l&&l.endTag&&Ho(l.endTag),f=Fg(e,o.content);u&&c&&e.file&&(f.position={start:u.end,end:c.start}),s.content=f}return e.schema=n,s}function zd(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=Y8(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function Y8(e,t,n){const r=Ho(n);if(t.type==="element"){const i=t.children[t.children.length-1];if(r&&!n.endTag&&i&&i.position&&i.position.end&&(r.end=Object.assign({},i.position.end)),e.verbose){const a={};let s;if(n.attrs)for(s in n.attrs)G_.call(n.attrs,s)&&(a[zg(e.schema,s).property]=Ho(n.attrs[s]));n.startTag;const o=Ho(n.startTag),l=n.endTag?Ho(n.endTag):void 0,u={opening:o};l&&(u.closing=l),u.properties=a,t.data={position:u}}}return r}function Ho(e){const t=X_({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=X_({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function X_(e){return e.line&&e.column?e:void 0}class zu{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}zu.prototype.property={},zu.prototype.normal={},zu.prototype.space=null;function K_(e,t){const n={},r={};let i=-1;for(;++i<e.length;)Object.assign(n,e[i].property),Object.assign(r,e[i].normal);return new zu(n,r,t)}function Hg(e){return e.toLowerCase()}class yr{constructor(t,n){this.property=t,this.attribute=n}}yr.prototype.space=null,yr.prototype.boolean=!1,yr.prototype.booleanish=!1,yr.prototype.overloadedBoolean=!1,yr.prototype.number=!1,yr.prototype.commaSeparated=!1,yr.prototype.spaceSeparated=!1,yr.prototype.commaOrSpaceSeparated=!1,yr.prototype.mustUseProperty=!1,yr.prototype.defined=!1;let G8=0;const Te=ds(),Pt=ds(),W_=ds(),J=ds(),lt=ds(),Vo=ds(),Jn=ds();function ds(){return 2**++G8}const Vg=Object.freeze(Object.defineProperty({__proto__:null,boolean:Te,booleanish:Pt,commaOrSpaceSeparated:Jn,commaSeparated:Vo,number:J,overloadedBoolean:W_,spaceSeparated:lt},Symbol.toStringTag,{value:"Module"})),qg=Object.keys(Vg);class Yg extends yr{constructor(t,n,r,i){let a=-1;if(super(t,n),Q_(this,"space",i),typeof r=="number")for(;++a<qg.length;){const s=qg[a];Q_(this,qg[a],(r&Vg[s])===Vg[s])}}}Yg.prototype.defined=!0;function Q_(e,t,n){n&&(e[t]=n)}const $8={}.hasOwnProperty;function qo(e){const t={},n={};let r;for(r in e.properties)if($8.call(e.properties,r)){const i=e.properties[r],a=new Yg(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Hg(r)]=r,n[Hg(a.attribute)]=r}return new zu(t,n,e.space)}const Z_=qo({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),J_=qo({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function eS(e,t){return t in e?e[t]:t}function tS(e,t){return eS(e,t.toLowerCase())}const nS=qo({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:tS,properties:{xmlns:null,xmlnsXLink:null}}),rS=qo({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Pt,ariaAutoComplete:null,ariaBusy:Pt,ariaChecked:Pt,ariaColCount:J,ariaColIndex:J,ariaColSpan:J,ariaControls:lt,ariaCurrent:null,ariaDescribedBy:lt,ariaDetails:null,ariaDisabled:Pt,ariaDropEffect:lt,ariaErrorMessage:null,ariaExpanded:Pt,ariaFlowTo:lt,ariaGrabbed:Pt,ariaHasPopup:null,ariaHidden:Pt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:lt,ariaLevel:J,ariaLive:null,ariaModal:Pt,ariaMultiLine:Pt,ariaMultiSelectable:Pt,ariaOrientation:null,ariaOwns:lt,ariaPlaceholder:null,ariaPosInSet:J,ariaPressed:Pt,ariaReadOnly:Pt,ariaRelevant:null,ariaRequired:Pt,ariaRoleDescription:lt,ariaRowCount:J,ariaRowIndex:J,ariaRowSpan:J,ariaSelected:Pt,ariaSetSize:J,ariaSort:null,ariaValueMax:J,ariaValueMin:J,ariaValueNow:J,ariaValueText:null,role:null}}),X8=qo({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:tS,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Vo,acceptCharset:lt,accessKey:lt,action:null,allow:null,allowFullScreen:Te,allowPaymentRequest:Te,allowUserMedia:Te,alt:null,as:null,async:Te,autoCapitalize:null,autoComplete:lt,autoFocus:Te,autoPlay:Te,blocking:lt,capture:null,charSet:null,checked:Te,cite:null,className:lt,cols:J,colSpan:null,content:null,contentEditable:Pt,controls:Te,controlsList:lt,coords:J|Vo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Te,defer:Te,dir:null,dirName:null,disabled:Te,download:W_,draggable:Pt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Te,formTarget:null,headers:lt,height:J,hidden:Te,high:J,href:null,hrefLang:null,htmlFor:lt,httpEquiv:lt,id:null,imageSizes:null,imageSrcSet:null,inert:Te,inputMode:null,integrity:null,is:null,isMap:Te,itemId:null,itemProp:lt,itemRef:lt,itemScope:Te,itemType:lt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Te,low:J,manifest:null,max:null,maxLength:J,media:null,method:null,min:null,minLength:J,multiple:Te,muted:Te,name:null,nonce:null,noModule:Te,noValidate:Te,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Te,optimum:J,pattern:null,ping:lt,placeholder:null,playsInline:Te,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Te,referrerPolicy:null,rel:lt,required:Te,reversed:Te,rows:J,rowSpan:J,sandbox:lt,scope:null,scoped:Te,seamless:Te,selected:Te,shadowRootClonable:Te,shadowRootDelegatesFocus:Te,shadowRootMode:null,shape:null,size:J,sizes:null,slot:null,span:J,spellCheck:Pt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:J,step:null,style:null,tabIndex:J,target:null,title:null,translate:null,type:null,typeMustMatch:Te,useMap:null,value:Pt,width:J,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:lt,axis:null,background:null,bgColor:null,border:J,borderColor:null,bottomMargin:J,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Te,declare:Te,event:null,face:null,frame:null,frameBorder:null,hSpace:J,leftMargin:J,link:null,longDesc:null,lowSrc:null,marginHeight:J,marginWidth:J,noResize:Te,noHref:Te,noShade:Te,noWrap:Te,object:null,profile:null,prompt:null,rev:null,rightMargin:J,rules:null,scheme:null,scrolling:Pt,standby:null,summary:null,text:null,topMargin:J,valueType:null,version:null,vAlign:null,vLink:null,vSpace:J,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Te,disableRemotePlayback:Te,prefix:null,property:null,results:J,security:null,unselectable:null}}),K8=qo({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:eS,properties:{about:Jn,accentHeight:J,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:J,amplitude:J,arabicForm:null,ascent:J,attributeName:null,attributeType:null,azimuth:J,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:J,by:null,calcMode:null,capHeight:J,className:lt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:J,diffuseConstant:J,direction:null,display:null,dur:null,divisor:J,dominantBaseline:null,download:Te,dx:null,dy:null,edgeMode:null,editable:null,elevation:J,enableBackground:null,end:null,event:null,exponent:J,externalResourcesRequired:null,fill:null,fillOpacity:J,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Vo,g2:Vo,glyphName:Vo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:J,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:J,horizOriginX:J,horizOriginY:J,id:null,ideographic:J,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:J,k:J,k1:J,k2:J,k3:J,k4:J,kernelMatrix:Jn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:J,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:J,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:J,overlineThickness:J,paintOrder:null,panose1:null,path:null,pathLength:J,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:lt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:J,pointsAtY:J,pointsAtZ:J,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Jn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Jn,rev:Jn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Jn,requiredFeatures:Jn,requiredFonts:Jn,requiredFormats:Jn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:J,specularExponent:J,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:J,strikethroughThickness:J,string:null,stroke:null,strokeDashArray:Jn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:J,strokeOpacity:J,strokeWidth:null,style:null,surfaceScale:J,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Jn,tabIndex:J,tableValues:null,target:null,targetX:J,targetY:J,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Jn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:J,underlineThickness:J,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:J,values:null,vAlphabetic:J,vMathematical:J,vectorEffect:null,vHanging:J,vIdeographic:J,version:null,vertAdvY:J,vertOriginX:J,vertOriginY:J,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:J,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),W8=/^data[-\w.:]+$/i,iS=/-[a-z]/g,Q8=/[A-Z]/g;function Z8(e,t){const n=Hg(t);let r=t,i=yr;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&W8.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(iS,eP);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!iS.test(a)){let s=a.replace(Q8,J8);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=Yg}return new i(r,t)}function J8(e){return"-"+e.toLowerCase()}function eP(e){return e.charAt(1).toUpperCase()}const tP=K_([J_,Z_,nS,rS,X8],"html"),aS=K_([J_,Z_,nS,rS,K8],"svg"),sS={}.hasOwnProperty;function oS(e,t){const n=t||{};function r(i,...a){let s=r.invalid;const o=r.handlers;if(i&&sS.call(i,e)){const l=String(i[e]);s=sS.call(o,l)?o[l]:r.unknown}if(s)return s.call(this,i,...a)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const nP={},rP={}.hasOwnProperty,lS=oS("type",{handlers:{root:aP,element:cP,text:lP,comment:uP,doctype:oP}});function iP(e,t){const r=(t||nP).space;return lS(e,r==="svg"?aS:tP)}function aP(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=Gg(e.children,n,t),Yo(e,n),n}function sP(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=Gg(e.children,n,t),Yo(e,n),n}function oP(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Yo(e,t),t}function lP(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Yo(e,t),t}function uP(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Yo(e,t),t}function cP(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=aS);const i=[];let a;if(e.properties){for(a in e.properties)if(a!=="children"&&rP.call(e.properties,a)){const l=fP(r,a,e.properties[a]);l&&i.push(l)}}const s=r.space,o={nodeName:e.tagName,tagName:e.tagName,attrs:i,namespaceURI:fs[s],childNodes:[],parentNode:null};return o.childNodes=Gg(e.children,o,r),Yo(e,o),e.tagName==="template"&&e.content&&(o.content=sP(e.content,r)),o}function fP(e,t,n){const r=Z8(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?z_(n):H_(n));const i={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const a=i.name.indexOf(":");a<0?i.prefix="":(i.name=i.name.slice(a+1),i.prefix=r.attribute.slice(0,a)),i.namespace=fs[r.space]}return i}function Gg(e,t,n){let r=-1;const i=[];if(e)for(;++r<e.length;){const a=lS(e[r],n);a.parentNode=t,i.push(a)}return i}function Yo(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const dP=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],hP=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),bt="�";var S;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(S||(S={}));const Ln={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function uS(e){return e>=55296&&e<=57343}function pP(e){return e>=56320&&e<=57343}function mP(e,t){return(e-55296)*1024+9216+t}function cS(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function fS(e){return e>=64976&&e<=65007||hP.has(e)}var U;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(U||(U={}));const gP=65536;class bP{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=gP,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:i,offset:a}=this,s=i+n,o=a+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(pP(n))return this.pos++,this._addGap(),mP(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,S.EOF;return this._err(U.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,S.EOF;const r=this.html.charCodeAt(n);return r===S.CARRIAGE_RETURN?S.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,S.EOF;let t=this.html.charCodeAt(this.pos);return t===S.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,S.LINE_FEED):t===S.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,uS(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===S.LINE_FEED||t===S.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){cS(t)?this._err(U.controlCharacterInInputStream):fS(t)&&this._err(U.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var ke;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(ke||(ke={}));function dS(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const yP=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),vP=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function xP(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=vP.get(e))!==null&&t!==void 0?t:e}var Jt;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Jt||(Jt={}));const EP=32;var wa;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(wa||(wa={}));function $g(e){return e>=Jt.ZERO&&e<=Jt.NINE}function TP(e){return e>=Jt.UPPER_A&&e<=Jt.UPPER_F||e>=Jt.LOWER_A&&e<=Jt.LOWER_F}function wP(e){return e>=Jt.UPPER_A&&e<=Jt.UPPER_Z||e>=Jt.LOWER_A&&e<=Jt.LOWER_Z||$g(e)}function _P(e){return e===Jt.EQUALS||wP(e)}var en;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(en||(en={}));var Ri;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Ri||(Ri={}));class SP{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=en.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Ri.Strict}startEntity(t){this.decodeMode=t,this.state=en.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case en.EntityStart:return t.charCodeAt(n)===Jt.NUM?(this.state=en.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=en.NamedEntity,this.stateNamedEntity(t,n));case en.NumericStart:return this.stateNumericStart(t,n);case en.NumericDecimal:return this.stateNumericDecimal(t,n);case en.NumericHex:return this.stateNumericHex(t,n);case en.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|EP)===Jt.LOWER_X?(this.state=en.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=en.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const a=r-n;this.result=this.result*Math.pow(i,a)+Number.parseInt(t.substr(n,a),i),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if($g(i)||TP(i))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(i,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const i=t.charCodeAt(n);if($g(i))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(i,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Jt.SEMI)this.consumed+=1;else if(this.decodeMode===Ri.Strict)return 0;return this.emitCodePoint(xP(this.result),this.consumed),this.errors&&(t!==Jt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let i=r[this.treeIndex],a=(i&wa.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=AP(r,i,this.treeIndex+Math.max(1,a),s),this.treeIndex<0)return this.result===0||this.decodeMode===Ri.Attribute&&(a===0||_P(s))?0:this.emitNotTerminatedNamedEntity();if(i=r[this.treeIndex],a=(i&wa.VALUE_LENGTH)>>14,a!==0){if(s===Jt.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Ri.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&wa.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:i}=this;return this.emitCodePoint(n===1?i[t]&~wa.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case en.NamedEntity:return this.result!==0&&(this.decodeMode!==Ri.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case en.NumericDecimal:return this.emitNumericEntity(0,2);case en.NumericHex:return this.emitNumericEntity(0,3);case en.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case en.EntityStart:return 0}}}function AP(e,t,n,r){const i=(t&wa.BRANCH_LENGTH)>>7,a=t&wa.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){const l=r-a;return l<0||l>=i?-1:e[n+l]-1}let s=n,o=s+i-1;for(;s<=o;){const l=s+o>>>1,u=e[l];if(u<r)s=l+1;else if(u>r)o=l-1;else return e[l+i]}return-1}var X;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(X||(X={}));var hs;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(hs||(hs={}));var vr;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(vr||(vr={}));var P;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(P||(P={}));var p;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(p||(p={}));const CP=new Map([[P.A,p.A],[P.ADDRESS,p.ADDRESS],[P.ANNOTATION_XML,p.ANNOTATION_XML],[P.APPLET,p.APPLET],[P.AREA,p.AREA],[P.ARTICLE,p.ARTICLE],[P.ASIDE,p.ASIDE],[P.B,p.B],[P.BASE,p.BASE],[P.BASEFONT,p.BASEFONT],[P.BGSOUND,p.BGSOUND],[P.BIG,p.BIG],[P.BLOCKQUOTE,p.BLOCKQUOTE],[P.BODY,p.BODY],[P.BR,p.BR],[P.BUTTON,p.BUTTON],[P.CAPTION,p.CAPTION],[P.CENTER,p.CENTER],[P.CODE,p.CODE],[P.COL,p.COL],[P.COLGROUP,p.COLGROUP],[P.DD,p.DD],[P.DESC,p.DESC],[P.DETAILS,p.DETAILS],[P.DIALOG,p.DIALOG],[P.DIR,p.DIR],[P.DIV,p.DIV],[P.DL,p.DL],[P.DT,p.DT],[P.EM,p.EM],[P.EMBED,p.EMBED],[P.FIELDSET,p.FIELDSET],[P.FIGCAPTION,p.FIGCAPTION],[P.FIGURE,p.FIGURE],[P.FONT,p.FONT],[P.FOOTER,p.FOOTER],[P.FOREIGN_OBJECT,p.FOREIGN_OBJECT],[P.FORM,p.FORM],[P.FRAME,p.FRAME],[P.FRAMESET,p.FRAMESET],[P.H1,p.H1],[P.H2,p.H2],[P.H3,p.H3],[P.H4,p.H4],[P.H5,p.H5],[P.H6,p.H6],[P.HEAD,p.HEAD],[P.HEADER,p.HEADER],[P.HGROUP,p.HGROUP],[P.HR,p.HR],[P.HTML,p.HTML],[P.I,p.I],[P.IMG,p.IMG],[P.IMAGE,p.IMAGE],[P.INPUT,p.INPUT],[P.IFRAME,p.IFRAME],[P.KEYGEN,p.KEYGEN],[P.LABEL,p.LABEL],[P.LI,p.LI],[P.LINK,p.LINK],[P.LISTING,p.LISTING],[P.MAIN,p.MAIN],[P.MALIGNMARK,p.MALIGNMARK],[P.MARQUEE,p.MARQUEE],[P.MATH,p.MATH],[P.MENU,p.MENU],[P.META,p.META],[P.MGLYPH,p.MGLYPH],[P.MI,p.MI],[P.MO,p.MO],[P.MN,p.MN],[P.MS,p.MS],[P.MTEXT,p.MTEXT],[P.NAV,p.NAV],[P.NOBR,p.NOBR],[P.NOFRAMES,p.NOFRAMES],[P.NOEMBED,p.NOEMBED],[P.NOSCRIPT,p.NOSCRIPT],[P.OBJECT,p.OBJECT],[P.OL,p.OL],[P.OPTGROUP,p.OPTGROUP],[P.OPTION,p.OPTION],[P.P,p.P],[P.PARAM,p.PARAM],[P.PLAINTEXT,p.PLAINTEXT],[P.PRE,p.PRE],[P.RB,p.RB],[P.RP,p.RP],[P.RT,p.RT],[P.RTC,p.RTC],[P.RUBY,p.RUBY],[P.S,p.S],[P.SCRIPT,p.SCRIPT],[P.SEARCH,p.SEARCH],[P.SECTION,p.SECTION],[P.SELECT,p.SELECT],[P.SOURCE,p.SOURCE],[P.SMALL,p.SMALL],[P.SPAN,p.SPAN],[P.STRIKE,p.STRIKE],[P.STRONG,p.STRONG],[P.STYLE,p.STYLE],[P.SUB,p.SUB],[P.SUMMARY,p.SUMMARY],[P.SUP,p.SUP],[P.TABLE,p.TABLE],[P.TBODY,p.TBODY],[P.TEMPLATE,p.TEMPLATE],[P.TEXTAREA,p.TEXTAREA],[P.TFOOT,p.TFOOT],[P.TD,p.TD],[P.TH,p.TH],[P.THEAD,p.THEAD],[P.TITLE,p.TITLE],[P.TR,p.TR],[P.TRACK,p.TRACK],[P.TT,p.TT],[P.U,p.U],[P.UL,p.UL],[P.SVG,p.SVG],[P.VAR,p.VAR],[P.WBR,p.WBR],[P.XMP,p.XMP]]);function Go(e){var t;return(t=CP.get(e))!==null&&t!==void 0?t:p.UNKNOWN}const Q=p,kP={[X.HTML]:new Set([Q.ADDRESS,Q.APPLET,Q.AREA,Q.ARTICLE,Q.ASIDE,Q.BASE,Q.BASEFONT,Q.BGSOUND,Q.BLOCKQUOTE,Q.BODY,Q.BR,Q.BUTTON,Q.CAPTION,Q.CENTER,Q.COL,Q.COLGROUP,Q.DD,Q.DETAILS,Q.DIR,Q.DIV,Q.DL,Q.DT,Q.EMBED,Q.FIELDSET,Q.FIGCAPTION,Q.FIGURE,Q.FOOTER,Q.FORM,Q.FRAME,Q.FRAMESET,Q.H1,Q.H2,Q.H3,Q.H4,Q.H5,Q.H6,Q.HEAD,Q.HEADER,Q.HGROUP,Q.HR,Q.HTML,Q.IFRAME,Q.IMG,Q.INPUT,Q.LI,Q.LINK,Q.LISTING,Q.MAIN,Q.MARQUEE,Q.MENU,Q.META,Q.NAV,Q.NOEMBED,Q.NOFRAMES,Q.NOSCRIPT,Q.OBJECT,Q.OL,Q.P,Q.PARAM,Q.PLAINTEXT,Q.PRE,Q.SCRIPT,Q.SECTION,Q.SELECT,Q.SOURCE,Q.STYLE,Q.SUMMARY,Q.TABLE,Q.TBODY,Q.TD,Q.TEMPLATE,Q.TEXTAREA,Q.TFOOT,Q.TH,Q.THEAD,Q.TITLE,Q.TR,Q.TRACK,Q.UL,Q.WBR,Q.XMP]),[X.MATHML]:new Set([Q.MI,Q.MO,Q.MN,Q.MS,Q.MTEXT,Q.ANNOTATION_XML]),[X.SVG]:new Set([Q.TITLE,Q.FOREIGN_OBJECT,Q.DESC]),[X.XLINK]:new Set,[X.XML]:new Set,[X.XMLNS]:new Set},Xg=new Set([Q.H1,Q.H2,Q.H3,Q.H4,Q.H5,Q.H6]);P.STYLE,P.SCRIPT,P.XMP,P.IFRAME,P.NOEMBED,P.NOFRAMES,P.PLAINTEXT;var k;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(k||(k={}));const Ot={DATA:k.DATA,RCDATA:k.RCDATA,RAWTEXT:k.RAWTEXT,SCRIPT_DATA:k.SCRIPT_DATA,PLAINTEXT:k.PLAINTEXT,CDATA_SECTION:k.CDATA_SECTION};function OP(e){return e>=S.DIGIT_0&&e<=S.DIGIT_9}function ju(e){return e>=S.LATIN_CAPITAL_A&&e<=S.LATIN_CAPITAL_Z}function RP(e){return e>=S.LATIN_SMALL_A&&e<=S.LATIN_SMALL_Z}function _a(e){return RP(e)||ju(e)}function hS(e){return _a(e)||OP(e)}function jd(e){return e+32}function pS(e){return e===S.SPACE||e===S.LINE_FEED||e===S.TABULATION||e===S.FORM_FEED}function mS(e){return pS(e)||e===S.SOLIDUS||e===S.GREATER_THAN_SIGN}function NP(e){return e===S.NULL?U.nullCharacterReference:e>1114111?U.characterReferenceOutsideUnicodeRange:uS(e)?U.surrogateCharacterReference:fS(e)?U.noncharacterCharacterReference:cS(e)||e===S.CARRIAGE_RETURN?U.controlCharacterReference:null}class DP{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=k.DATA,this.returnState=k.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new bP(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new SP(yP,(r,i)=>{this.preprocessor.pos=this.entityStartPos+i-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(U.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(U.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const i=NP(r);i&&this._err(i,1)}}:void 0)}_err(t,n=0){var r,i;(i=(r=this.handler).onParseError)===null||i===void 0||i.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:ke.START_TAG,tagName:"",tagID:p.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:ke.END_TAG,tagName:"",tagID:p.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:ke.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:ke.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(dS(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const i=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);i[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(U.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Go(t.tagName),t.type===ke.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(U.endTagWithAttributes),t.selfClosing&&this._err(U.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case ke.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case ke.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case ke.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:ke.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=pS(t)?ke.WHITESPACE_CHARACTER:t===S.NULL?ke.NULL_CHARACTER:ke.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(ke.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=k.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Ri.Attribute:Ri.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===k.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===k.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===k.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case k.DATA:{this._stateData(t);break}case k.RCDATA:{this._stateRcdata(t);break}case k.RAWTEXT:{this._stateRawtext(t);break}case k.SCRIPT_DATA:{this._stateScriptData(t);break}case k.PLAINTEXT:{this._statePlaintext(t);break}case k.TAG_OPEN:{this._stateTagOpen(t);break}case k.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case k.TAG_NAME:{this._stateTagName(t);break}case k.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case k.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case k.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case k.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case k.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case k.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case k.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case k.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case k.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case k.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case k.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case k.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case k.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case k.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case k.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case k.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case k.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case k.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case k.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case k.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case k.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case k.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case k.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case k.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case k.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case k.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case k.BOGUS_COMMENT:{this._stateBogusComment(t);break}case k.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case k.COMMENT_START:{this._stateCommentStart(t);break}case k.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case k.COMMENT:{this._stateComment(t);break}case k.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case k.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case k.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case k.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case k.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case k.COMMENT_END:{this._stateCommentEnd(t);break}case k.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case k.DOCTYPE:{this._stateDoctype(t);break}case k.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case k.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case k.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case k.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case k.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case k.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case k.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case k.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case k.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case k.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case k.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case k.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case k.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case k.CDATA_SECTION:{this._stateCdataSection(t);break}case k.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case k.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case k.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case k.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case S.LESS_THAN_SIGN:{this.state=k.TAG_OPEN;break}case S.AMPERSAND:{this._startCharacterReference();break}case S.NULL:{this._err(U.unexpectedNullCharacter),this._emitCodePoint(t);break}case S.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case S.AMPERSAND:{this._startCharacterReference();break}case S.LESS_THAN_SIGN:{this.state=k.RCDATA_LESS_THAN_SIGN;break}case S.NULL:{this._err(U.unexpectedNullCharacter),this._emitChars(bt);break}case S.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case S.LESS_THAN_SIGN:{this.state=k.RAWTEXT_LESS_THAN_SIGN;break}case S.NULL:{this._err(U.unexpectedNullCharacter),this._emitChars(bt);break}case S.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case S.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_LESS_THAN_SIGN;break}case S.NULL:{this._err(U.unexpectedNullCharacter),this._emitChars(bt);break}case S.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case S.NULL:{this._err(U.unexpectedNullCharacter),this._emitChars(bt);break}case S.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(_a(t))this._createStartTagToken(),this.state=k.TAG_NAME,this._stateTagName(t);else switch(t){case S.EXCLAMATION_MARK:{this.state=k.MARKUP_DECLARATION_OPEN;break}case S.SOLIDUS:{this.state=k.END_TAG_OPEN;break}case S.QUESTION_MARK:{this._err(U.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=k.BOGUS_COMMENT,this._stateBogusComment(t);break}case S.EOF:{this._err(U.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(U.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=k.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(_a(t))this._createEndTagToken(),this.state=k.TAG_NAME,this._stateTagName(t);else switch(t){case S.GREATER_THAN_SIGN:{this._err(U.missingEndTagName),this.state=k.DATA;break}case S.EOF:{this._err(U.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(U.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=k.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:{this.state=k.BEFORE_ATTRIBUTE_NAME;break}case S.SOLIDUS:{this.state=k.SELF_CLOSING_START_TAG;break}case S.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentTagToken();break}case S.NULL:{this._err(U.unexpectedNullCharacter),n.tagName+=bt;break}case S.EOF:{this._err(U.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(ju(t)?jd(t):t)}}_stateRcdataLessThanSign(t){t===S.SOLIDUS?this.state=k.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=k.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){_a(t)?(this.state=k.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=k.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=k.BEFORE_ATTRIBUTE_NAME,!1;case S.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=k.SELF_CLOSING_START_TAG,!1;case S.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=k.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===S.SOLIDUS?this.state=k.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=k.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){_a(t)?(this.state=k.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=k.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case S.SOLIDUS:{this.state=k.SCRIPT_DATA_END_TAG_OPEN;break}case S.EXCLAMATION_MARK:{this.state=k.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=k.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){_a(t)?(this.state=k.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===S.HYPHEN_MINUS?(this.state=k.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===S.HYPHEN_MINUS?(this.state=k.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=k.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case S.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case S.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case S.NULL:{this._err(U.unexpectedNullCharacter),this._emitChars(bt);break}case S.EOF:{this._err(U.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case S.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case S.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case S.NULL:{this._err(U.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_ESCAPED,this._emitChars(bt);break}case S.EOF:{this._err(U.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case S.HYPHEN_MINUS:{this._emitChars("-");break}case S.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case S.GREATER_THAN_SIGN:{this.state=k.SCRIPT_DATA,this._emitChars(">");break}case S.NULL:{this._err(U.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_ESCAPED,this._emitChars(bt);break}case S.EOF:{this._err(U.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===S.SOLIDUS?this.state=k.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:_a(t)?(this._emitChars("<"),this.state=k.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){_a(t)?(this.state=k.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Ln.SCRIPT,!1)&&mS(this.preprocessor.peek(Ln.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Ln.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=k.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case S.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case S.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case S.NULL:{this._err(U.unexpectedNullCharacter),this._emitChars(bt);break}case S.EOF:{this._err(U.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case S.HYPHEN_MINUS:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case S.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case S.NULL:{this._err(U.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(bt);break}case S.EOF:{this._err(U.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case S.HYPHEN_MINUS:{this._emitChars("-");break}case S.LESS_THAN_SIGN:{this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case S.GREATER_THAN_SIGN:{this.state=k.SCRIPT_DATA,this._emitChars(">");break}case S.NULL:{this._err(U.unexpectedNullCharacter),this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(bt);break}case S.EOF:{this._err(U.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===S.SOLIDUS?(this.state=k.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Ln.SCRIPT,!1)&&mS(this.preprocessor.peek(Ln.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Ln.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=k.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=k.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.SOLIDUS:case S.GREATER_THAN_SIGN:case S.EOF:{this.state=k.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case S.EQUALS_SIGN:{this._err(U.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=k.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=k.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:case S.SOLIDUS:case S.GREATER_THAN_SIGN:case S.EOF:{this._leaveAttrName(),this.state=k.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case S.EQUALS_SIGN:{this._leaveAttrName(),this.state=k.BEFORE_ATTRIBUTE_VALUE;break}case S.QUOTATION_MARK:case S.APOSTROPHE:case S.LESS_THAN_SIGN:{this._err(U.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case S.NULL:{this._err(U.unexpectedNullCharacter),this.currentAttr.name+=bt;break}default:this.currentAttr.name+=String.fromCodePoint(ju(t)?jd(t):t)}}_stateAfterAttributeName(t){switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.SOLIDUS:{this.state=k.SELF_CLOSING_START_TAG;break}case S.EQUALS_SIGN:{this.state=k.BEFORE_ATTRIBUTE_VALUE;break}case S.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentTagToken();break}case S.EOF:{this._err(U.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=k.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.QUOTATION_MARK:{this.state=k.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case S.APOSTROPHE:{this.state=k.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case S.GREATER_THAN_SIGN:{this._err(U.missingAttributeValue),this.state=k.DATA,this.emitCurrentTagToken();break}default:this.state=k.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case S.QUOTATION_MARK:{this.state=k.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case S.AMPERSAND:{this._startCharacterReference();break}case S.NULL:{this._err(U.unexpectedNullCharacter),this.currentAttr.value+=bt;break}case S.EOF:{this._err(U.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case S.APOSTROPHE:{this.state=k.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case S.AMPERSAND:{this._startCharacterReference();break}case S.NULL:{this._err(U.unexpectedNullCharacter),this.currentAttr.value+=bt;break}case S.EOF:{this._err(U.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:{this._leaveAttrValue(),this.state=k.BEFORE_ATTRIBUTE_NAME;break}case S.AMPERSAND:{this._startCharacterReference();break}case S.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=k.DATA,this.emitCurrentTagToken();break}case S.NULL:{this._err(U.unexpectedNullCharacter),this.currentAttr.value+=bt;break}case S.QUOTATION_MARK:case S.APOSTROPHE:case S.LESS_THAN_SIGN:case S.EQUALS_SIGN:case S.GRAVE_ACCENT:{this._err(U.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case S.EOF:{this._err(U.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:{this._leaveAttrValue(),this.state=k.BEFORE_ATTRIBUTE_NAME;break}case S.SOLIDUS:{this._leaveAttrValue(),this.state=k.SELF_CLOSING_START_TAG;break}case S.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=k.DATA,this.emitCurrentTagToken();break}case S.EOF:{this._err(U.eofInTag),this._emitEOFToken();break}default:this._err(U.missingWhitespaceBetweenAttributes),this.state=k.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case S.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=k.DATA,this.emitCurrentTagToken();break}case S.EOF:{this._err(U.eofInTag),this._emitEOFToken();break}default:this._err(U.unexpectedSolidusInTag),this.state=k.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case S.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentComment(n);break}case S.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case S.NULL:{this._err(U.unexpectedNullCharacter),n.data+=bt;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Ln.DASH_DASH,!0)?(this._createCommentToken(Ln.DASH_DASH.length+1),this.state=k.COMMENT_START):this._consumeSequenceIfMatch(Ln.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Ln.DOCTYPE.length+1),this.state=k.DOCTYPE):this._consumeSequenceIfMatch(Ln.CDATA_START,!0)?this.inForeignNode?this.state=k.CDATA_SECTION:(this._err(U.cdataInHtmlContent),this._createCommentToken(Ln.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=k.BOGUS_COMMENT):this._ensureHibernation()||(this._err(U.incorrectlyOpenedComment),this._createCommentToken(2),this.state=k.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case S.HYPHEN_MINUS:{this.state=k.COMMENT_START_DASH;break}case S.GREATER_THAN_SIGN:{this._err(U.abruptClosingOfEmptyComment),this.state=k.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=k.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case S.HYPHEN_MINUS:{this.state=k.COMMENT_END;break}case S.GREATER_THAN_SIGN:{this._err(U.abruptClosingOfEmptyComment),this.state=k.DATA,this.emitCurrentComment(n);break}case S.EOF:{this._err(U.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=k.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case S.HYPHEN_MINUS:{this.state=k.COMMENT_END_DASH;break}case S.LESS_THAN_SIGN:{n.data+="<",this.state=k.COMMENT_LESS_THAN_SIGN;break}case S.NULL:{this._err(U.unexpectedNullCharacter),n.data+=bt;break}case S.EOF:{this._err(U.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case S.EXCLAMATION_MARK:{n.data+="!",this.state=k.COMMENT_LESS_THAN_SIGN_BANG;break}case S.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=k.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===S.HYPHEN_MINUS?this.state=k.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=k.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===S.HYPHEN_MINUS?this.state=k.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=k.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==S.GREATER_THAN_SIGN&&t!==S.EOF&&this._err(U.nestedComment),this.state=k.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case S.HYPHEN_MINUS:{this.state=k.COMMENT_END;break}case S.EOF:{this._err(U.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=k.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case S.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentComment(n);break}case S.EXCLAMATION_MARK:{this.state=k.COMMENT_END_BANG;break}case S.HYPHEN_MINUS:{n.data+="-";break}case S.EOF:{this._err(U.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=k.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case S.HYPHEN_MINUS:{n.data+="--!",this.state=k.COMMENT_END_DASH;break}case S.GREATER_THAN_SIGN:{this._err(U.incorrectlyClosedComment),this.state=k.DATA,this.emitCurrentComment(n);break}case S.EOF:{this._err(U.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=k.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:{this.state=k.BEFORE_DOCTYPE_NAME;break}case S.GREATER_THAN_SIGN:{this.state=k.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case S.EOF:{this._err(U.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(U.missingWhitespaceBeforeDoctypeName),this.state=k.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(ju(t))this._createDoctypeToken(String.fromCharCode(jd(t))),this.state=k.DOCTYPE_NAME;else switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.NULL:{this._err(U.unexpectedNullCharacter),this._createDoctypeToken(bt),this.state=k.DOCTYPE_NAME;break}case S.GREATER_THAN_SIGN:{this._err(U.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case S.EOF:{this._err(U.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=k.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:{this.state=k.AFTER_DOCTYPE_NAME;break}case S.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentDoctype(n);break}case S.NULL:{this._err(U.unexpectedNullCharacter),n.name+=bt;break}case S.EOF:{this._err(U.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(ju(t)?jd(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentDoctype(n);break}case S.EOF:{this._err(U.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Ln.PUBLIC,!1)?this.state=k.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Ln.SYSTEM,!1)?this.state=k.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(U.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:{this.state=k.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case S.QUOTATION_MARK:{this._err(U.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case S.APOSTROPHE:{this._err(U.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case S.GREATER_THAN_SIGN:{this._err(U.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(n);break}case S.EOF:{this._err(U.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(U.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.QUOTATION_MARK:{n.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case S.APOSTROPHE:{n.publicId="",this.state=k.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case S.GREATER_THAN_SIGN:{this._err(U.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(n);break}case S.EOF:{this._err(U.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(U.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case S.QUOTATION_MARK:{this.state=k.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case S.NULL:{this._err(U.unexpectedNullCharacter),n.publicId+=bt;break}case S.GREATER_THAN_SIGN:{this._err(U.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case S.EOF:{this._err(U.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case S.APOSTROPHE:{this.state=k.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case S.NULL:{this._err(U.unexpectedNullCharacter),n.publicId+=bt;break}case S.GREATER_THAN_SIGN:{this._err(U.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case S.EOF:{this._err(U.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:{this.state=k.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case S.GREATER_THAN_SIGN:{this.state=k.DATA,this.emitCurrentDoctype(n);break}case S.QUOTATION_MARK:{this._err(U.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case S.APOSTROPHE:{this._err(U.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case S.EOF:{this._err(U.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(U.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=k.DATA;break}case S.QUOTATION_MARK:{n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case S.APOSTROPHE:{n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case S.EOF:{this._err(U.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(U.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:{this.state=k.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case S.QUOTATION_MARK:{this._err(U.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case S.APOSTROPHE:{this._err(U.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case S.GREATER_THAN_SIGN:{this._err(U.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(n);break}case S.EOF:{this._err(U.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(U.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.QUOTATION_MARK:{n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case S.APOSTROPHE:{n.systemId="",this.state=k.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case S.GREATER_THAN_SIGN:{this._err(U.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.DATA,this.emitCurrentDoctype(n);break}case S.EOF:{this._err(U.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(U.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case S.QUOTATION_MARK:{this.state=k.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case S.NULL:{this._err(U.unexpectedNullCharacter),n.systemId+=bt;break}case S.GREATER_THAN_SIGN:{this._err(U.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case S.EOF:{this._err(U.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case S.APOSTROPHE:{this.state=k.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case S.NULL:{this._err(U.unexpectedNullCharacter),n.systemId+=bt;break}case S.GREATER_THAN_SIGN:{this._err(U.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=k.DATA;break}case S.EOF:{this._err(U.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case S.SPACE:case S.LINE_FEED:case S.TABULATION:case S.FORM_FEED:break;case S.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=k.DATA;break}case S.EOF:{this._err(U.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(U.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=k.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case S.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=k.DATA;break}case S.NULL:{this._err(U.unexpectedNullCharacter);break}case S.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case S.RIGHT_SQUARE_BRACKET:{this.state=k.CDATA_SECTION_BRACKET;break}case S.EOF:{this._err(U.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===S.RIGHT_SQUARE_BRACKET?this.state=k.CDATA_SECTION_END:(this._emitChars("]"),this.state=k.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case S.GREATER_THAN_SIGN:{this.state=k.DATA;break}case S.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=k.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(S.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&hS(this.preprocessor.peek(1))?k.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){hS(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===S.SEMICOLON&&this._err(U.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const gS=new Set([p.DD,p.DT,p.LI,p.OPTGROUP,p.OPTION,p.P,p.RB,p.RP,p.RT,p.RTC]),bS=new Set([...gS,p.CAPTION,p.COLGROUP,p.TBODY,p.TD,p.TFOOT,p.TH,p.THEAD,p.TR]),Fd=new Set([p.APPLET,p.CAPTION,p.HTML,p.MARQUEE,p.OBJECT,p.TABLE,p.TD,p.TEMPLATE,p.TH]),MP=new Set([...Fd,p.OL,p.UL]),LP=new Set([...Fd,p.BUTTON]),yS=new Set([p.ANNOTATION_XML,p.MI,p.MN,p.MO,p.MS,p.MTEXT]),vS=new Set([p.DESC,p.FOREIGN_OBJECT,p.TITLE]),IP=new Set([p.TR,p.TEMPLATE,p.HTML]),PP=new Set([p.TBODY,p.TFOOT,p.THEAD,p.TEMPLATE,p.HTML]),BP=new Set([p.TABLE,p.TEMPLATE,p.HTML]),UP=new Set([p.TD,p.TH]);class zP{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=p.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===p.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===X.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==X.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(Xg,X.HTML)}popUntilTableCellPopped(){this.popUntilPopped(UP,X.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(BP,X.HTML)}clearBackToTableBodyContext(){this.clearBackTo(PP,X.HTML)}clearBackToTableRowContext(){this.clearBackTo(IP,X.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===p.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===p.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const i=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case X.HTML:{if(i===t)return!0;if(n.has(i))return!1;break}case X.SVG:{if(vS.has(i))return!1;break}case X.MATHML:{if(yS.has(i))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Fd)}hasInListItemScope(t){return this.hasInDynamicScope(t,MP)}hasInButtonScope(t){return this.hasInDynamicScope(t,LP)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case X.HTML:{if(Xg.has(n))return!0;if(Fd.has(n))return!1;break}case X.SVG:{if(vS.has(n))return!1;break}case X.MATHML:{if(yS.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===X.HTML)switch(this.tagIDs[n]){case t:return!0;case p.TABLE:case p.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===X.HTML)switch(this.tagIDs[t]){case p.TBODY:case p.THEAD:case p.TFOOT:return!0;case p.TABLE:case p.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===X.HTML)switch(this.tagIDs[n]){case t:return!0;case p.OPTION:case p.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&gS.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&bS.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&bS.has(this.currentTagId);)this.pop()}}const Kg=3;var Jr;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(Jr||(Jr={}));const xS={type:Jr.Marker};class jP{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const l=this.entries[o];if(l.type===Jr.Marker)break;const{element:u}=l;if(this.treeAdapter.getTagName(u)===a&&this.treeAdapter.getNamespaceURI(u)===s){const c=this.treeAdapter.getAttrList(u);c.length===i&&r.push({idx:o,attrs:c})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<Kg)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<Kg)return;const i=new Map(n.map(s=>[s.name,s.value]));let a=0;for(let s=0;s<r.length;s++){const o=r[s];o.attrs.every(l=>i.get(l.name)===l.value)&&(a+=1,a>=Kg&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(xS)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:Jr.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:Jr.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(xS);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===Jr.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===Jr.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===Jr.Element&&n.element===t)}}const Sa={createDocument(){return{nodeName:"#document",mode:vr.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Sa.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Sa.isTextNode(n)){n.value+=t;return}}Sa.appendChild(e,Sa.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Sa.isTextNode(r)?r.value+=t:Sa.insertBefore(e,Sa.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},ES="html",FP="about:legacy-compat",HP="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",TS=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],VP=[...TS,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],qP=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),wS=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],YP=[...wS,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function _S(e,t){return t.some(n=>e.startsWith(n))}function GP(e){return e.name===ES&&e.publicId===null&&(e.systemId===null||e.systemId===FP)}function $P(e){if(e.name!==ES)return vr.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===HP)return vr.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),qP.has(n))return vr.QUIRKS;let r=t===null?VP:TS;if(_S(n,r))return vr.QUIRKS;if(r=t===null?wS:YP,_S(n,r))return vr.LIMITED_QUIRKS}return vr.NO_QUIRKS}const SS={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},XP="definitionurl",KP="definitionURL",WP=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),QP=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:X.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:X.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:X.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:X.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:X.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:X.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:X.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:X.XML}],["xml:space",{prefix:"xml",name:"space",namespace:X.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:X.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:X.XMLNS}]]),ZP=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),JP=new Set([p.B,p.BIG,p.BLOCKQUOTE,p.BODY,p.BR,p.CENTER,p.CODE,p.DD,p.DIV,p.DL,p.DT,p.EM,p.EMBED,p.H1,p.H2,p.H3,p.H4,p.H5,p.H6,p.HEAD,p.HR,p.I,p.IMG,p.LI,p.LISTING,p.MENU,p.META,p.NOBR,p.OL,p.P,p.PRE,p.RUBY,p.S,p.SMALL,p.SPAN,p.STRONG,p.STRIKE,p.SUB,p.SUP,p.TABLE,p.TT,p.U,p.UL,p.VAR]);function e9(e){const t=e.tagID;return t===p.FONT&&e.attrs.some(({name:r})=>r===hs.COLOR||r===hs.SIZE||r===hs.FACE)||JP.has(t)}function AS(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===XP){e.attrs[t].name=KP;break}}function CS(e){for(let t=0;t<e.attrs.length;t++){const n=WP.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function Wg(e){for(let t=0;t<e.attrs.length;t++){const n=QP.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function t9(e){const t=ZP.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Go(e.tagName))}function n9(e,t){return t===X.MATHML&&(e===p.MI||e===p.MO||e===p.MN||e===p.MS||e===p.MTEXT)}function r9(e,t,n){if(t===X.MATHML&&e===p.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===hs.ENCODING){const i=n[r].value.toLowerCase();return i===SS.TEXT_HTML||i===SS.APPLICATION_XML}}return t===X.SVG&&(e===p.FOREIGN_OBJECT||e===p.DESC||e===p.TITLE)}function i9(e,t,n,r){return(!r||r===X.HTML)&&r9(e,t,n)||(!r||r===X.MATHML)&&n9(e,t)}const a9="hidden",s9=8,o9=3;var D;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(D||(D={}));const l9={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},kS=new Set([p.TABLE,p.TBODY,p.TFOOT,p.THEAD,p.TR]),OS={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Sa,onParseError:null};class RS{constructor(t,n,r=null,i=null){this.fragmentContext=r,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=D.INITIAL,this.originalInsertionMode=D.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...OS,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new DP(this.options,this),this.activeFormattingElements=new jP(this.treeAdapter),this.fragmentContextID=r?Go(this.treeAdapter.getTagName(r)):p.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new zP(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...OS,...n};t??(t=r.treeAdapter.createElement(P.TEMPLATE,X.HTML,[]));const i=r.treeAdapter.createElement("documentmock",X.HTML,[]),a=new this(r,i,t);return a.fragmentContextID===p.TEMPLATE&&a.tmplInsertionModeStack.unshift(D.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var i;if(!this.onParseError)return;const a=(i=t.location)!==null&&i!==void 0?i:l9,s={code:n,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:r?a.startLine:a.endLine,endCol:r?a.startCol:a.endCol,endOffset:r?a.startOffset:a.endOffset};this.onParseError(s)}onItemPush(t,n,r){var i,a;(a=(i=this.treeAdapter).onItemPush)===null||a===void 0||a.call(i,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===X.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,X.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=D.TEXT}switchToPlaintextParsing(){this.insertionMode=D.TEXT,this.originalInsertionMode=D.IN_BODY,this.tokenizer.state=Ot.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===P.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==X.HTML))switch(this.fragmentContextID){case p.TITLE:case p.TEXTAREA:{this.tokenizer.state=Ot.RCDATA;break}case p.STYLE:case p.XMP:case p.IFRAME:case p.NOEMBED:case p.NOFRAMES:case p.NOSCRIPT:{this.tokenizer.state=Ot.RAWTEXT;break}case p.SCRIPT:{this.tokenizer.state=Ot.SCRIPT_DATA;break}case p.PLAINTEXT:{this.tokenizer.state=Ot.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,X.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,X.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(P.HTML,X.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,p.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),a=r?i.lastIndexOf(r):i.length,s=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:l,endCol:u,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:l,endCol:u,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),a=n.type===ke.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===p.SVG&&this.treeAdapter.getTagName(n)===P.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===X.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===p.MGLYPH||t.tagID===p.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,X.HTML)}_processToken(t){switch(t.type){case ke.CHARACTER:{this.onCharacter(t);break}case ke.NULL_CHARACTER:{this.onNullCharacter(t);break}case ke.COMMENT:{this.onComment(t);break}case ke.DOCTYPE:{this.onDoctype(t);break}case ke.START_TAG:{this._processStartTag(t);break}case ke.END_TAG:{this.onEndTag(t);break}case ke.EOF:{this.onEof(t);break}case ke.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return i9(t,i,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===Jr.Marker||this.openElements.contains(i.element)),r=n===-1?t-1:n-1;for(let i=r;i>=0;i--){const a=this.activeFormattingElements.entries[i];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=D.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(p.P),this.openElements.popUntilTagNamePopped(p.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case p.TR:{this.insertionMode=D.IN_ROW;return}case p.TBODY:case p.THEAD:case p.TFOOT:{this.insertionMode=D.IN_TABLE_BODY;return}case p.CAPTION:{this.insertionMode=D.IN_CAPTION;return}case p.COLGROUP:{this.insertionMode=D.IN_COLUMN_GROUP;return}case p.TABLE:{this.insertionMode=D.IN_TABLE;return}case p.BODY:{this.insertionMode=D.IN_BODY;return}case p.FRAMESET:{this.insertionMode=D.IN_FRAMESET;return}case p.SELECT:{this._resetInsertionModeForSelect(t);return}case p.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case p.HTML:{this.insertionMode=this.headElement?D.AFTER_HEAD:D.BEFORE_HEAD;return}case p.TD:case p.TH:{if(t>0){this.insertionMode=D.IN_CELL;return}break}case p.HEAD:{if(t>0){this.insertionMode=D.IN_HEAD;return}break}}this.insertionMode=D.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===p.TEMPLATE)break;if(r===p.TABLE){this.insertionMode=D.IN_SELECT_IN_TABLE;return}}this.insertionMode=D.IN_SELECT}_isElementCausesFosterParenting(t){return kS.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case p.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===X.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case p.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return kP[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){U7(this,t);return}switch(this.insertionMode){case D.INITIAL:{Fu(this,t);break}case D.BEFORE_HTML:{Hu(this,t);break}case D.BEFORE_HEAD:{Vu(this,t);break}case D.IN_HEAD:{qu(this,t);break}case D.IN_HEAD_NO_SCRIPT:{Yu(this,t);break}case D.AFTER_HEAD:{Gu(this,t);break}case D.IN_BODY:case D.IN_CAPTION:case D.IN_CELL:case D.IN_TEMPLATE:{DS(this,t);break}case D.TEXT:case D.IN_SELECT:case D.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case D.IN_TABLE:case D.IN_TABLE_BODY:case D.IN_ROW:{e1(this,t);break}case D.IN_TABLE_TEXT:{jS(this,t);break}case D.IN_COLUMN_GROUP:{qd(this,t);break}case D.AFTER_BODY:{$d(this,t);break}case D.AFTER_AFTER_BODY:{Xd(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){B7(this,t);return}switch(this.insertionMode){case D.INITIAL:{Fu(this,t);break}case D.BEFORE_HTML:{Hu(this,t);break}case D.BEFORE_HEAD:{Vu(this,t);break}case D.IN_HEAD:{qu(this,t);break}case D.IN_HEAD_NO_SCRIPT:{Yu(this,t);break}case D.AFTER_HEAD:{Gu(this,t);break}case D.TEXT:{this._insertCharacters(t);break}case D.IN_TABLE:case D.IN_TABLE_BODY:case D.IN_ROW:{e1(this,t);break}case D.IN_COLUMN_GROUP:{qd(this,t);break}case D.AFTER_BODY:{$d(this,t);break}case D.AFTER_AFTER_BODY:{Xd(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){Zg(this,t);return}switch(this.insertionMode){case D.INITIAL:case D.BEFORE_HTML:case D.BEFORE_HEAD:case D.IN_HEAD:case D.IN_HEAD_NO_SCRIPT:case D.AFTER_HEAD:case D.IN_BODY:case D.IN_TABLE:case D.IN_CAPTION:case D.IN_COLUMN_GROUP:case D.IN_TABLE_BODY:case D.IN_ROW:case D.IN_CELL:case D.IN_SELECT:case D.IN_SELECT_IN_TABLE:case D.IN_TEMPLATE:case D.IN_FRAMESET:case D.AFTER_FRAMESET:{Zg(this,t);break}case D.IN_TABLE_TEXT:{Ku(this,t);break}case D.AFTER_BODY:{m9(this,t);break}case D.AFTER_AFTER_BODY:case D.AFTER_AFTER_FRAMESET:{g9(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case D.INITIAL:{b9(this,t);break}case D.BEFORE_HEAD:case D.IN_HEAD:case D.IN_HEAD_NO_SCRIPT:case D.AFTER_HEAD:{this._err(t,U.misplacedDoctype);break}case D.IN_TABLE_TEXT:{Ku(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,U.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?z7(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case D.INITIAL:{Fu(this,t);break}case D.BEFORE_HTML:{y9(this,t);break}case D.BEFORE_HEAD:{x9(this,t);break}case D.IN_HEAD:{Mr(this,t);break}case D.IN_HEAD_NO_SCRIPT:{w9(this,t);break}case D.AFTER_HEAD:{S9(this,t);break}case D.IN_BODY:{mn(this,t);break}case D.IN_TABLE:{$o(this,t);break}case D.IN_TABLE_TEXT:{Ku(this,t);break}case D.IN_CAPTION:{E7(this,t);break}case D.IN_COLUMN_GROUP:{t1(this,t);break}case D.IN_TABLE_BODY:{Yd(this,t);break}case D.IN_ROW:{Gd(this,t);break}case D.IN_CELL:{_7(this,t);break}case D.IN_SELECT:{VS(this,t);break}case D.IN_SELECT_IN_TABLE:{A7(this,t);break}case D.IN_TEMPLATE:{k7(this,t);break}case D.AFTER_BODY:{R7(this,t);break}case D.IN_FRAMESET:{N7(this,t);break}case D.AFTER_FRAMESET:{M7(this,t);break}case D.AFTER_AFTER_BODY:{I7(this,t);break}case D.AFTER_AFTER_FRAMESET:{P7(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?j7(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case D.INITIAL:{Fu(this,t);break}case D.BEFORE_HTML:{v9(this,t);break}case D.BEFORE_HEAD:{E9(this,t);break}case D.IN_HEAD:{T9(this,t);break}case D.IN_HEAD_NO_SCRIPT:{_9(this,t);break}case D.AFTER_HEAD:{A9(this,t);break}case D.IN_BODY:{Vd(this,t);break}case D.TEXT:{f7(this,t);break}case D.IN_TABLE:{$u(this,t);break}case D.IN_TABLE_TEXT:{Ku(this,t);break}case D.IN_CAPTION:{T7(this,t);break}case D.IN_COLUMN_GROUP:{w7(this,t);break}case D.IN_TABLE_BODY:{n1(this,t);break}case D.IN_ROW:{HS(this,t);break}case D.IN_CELL:{S7(this,t);break}case D.IN_SELECT:{qS(this,t);break}case D.IN_SELECT_IN_TABLE:{C7(this,t);break}case D.IN_TEMPLATE:{O7(this,t);break}case D.AFTER_BODY:{GS(this,t);break}case D.IN_FRAMESET:{D7(this,t);break}case D.AFTER_FRAMESET:{L7(this,t);break}case D.AFTER_AFTER_BODY:{Xd(this,t);break}}}onEof(t){switch(this.insertionMode){case D.INITIAL:{Fu(this,t);break}case D.BEFORE_HTML:{Hu(this,t);break}case D.BEFORE_HEAD:{Vu(this,t);break}case D.IN_HEAD:{qu(this,t);break}case D.IN_HEAD_NO_SCRIPT:{Yu(this,t);break}case D.AFTER_HEAD:{Gu(this,t);break}case D.IN_BODY:case D.IN_TABLE:case D.IN_CAPTION:case D.IN_COLUMN_GROUP:case D.IN_TABLE_BODY:case D.IN_ROW:case D.IN_CELL:case D.IN_SELECT:case D.IN_SELECT_IN_TABLE:{US(this,t);break}case D.TEXT:{d7(this,t);break}case D.IN_TABLE_TEXT:{Ku(this,t);break}case D.IN_TEMPLATE:{YS(this,t);break}case D.AFTER_BODY:case D.IN_FRAMESET:case D.AFTER_FRAMESET:case D.AFTER_AFTER_BODY:case D.AFTER_AFTER_FRAMESET:{Jg(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===S.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case D.IN_HEAD:case D.IN_HEAD_NO_SCRIPT:case D.AFTER_HEAD:case D.TEXT:case D.IN_COLUMN_GROUP:case D.IN_SELECT:case D.IN_SELECT_IN_TABLE:case D.IN_FRAMESET:case D.AFTER_FRAMESET:{this._insertCharacters(t);break}case D.IN_BODY:case D.IN_CAPTION:case D.IN_CELL:case D.IN_TEMPLATE:case D.AFTER_BODY:case D.AFTER_AFTER_BODY:case D.AFTER_AFTER_FRAMESET:{NS(this,t);break}case D.IN_TABLE:case D.IN_TABLE_BODY:case D.IN_ROW:{e1(this,t);break}case D.IN_TABLE_TEXT:{zS(this,t);break}}}}function u9(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):BS(e,t),n}function c9(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function f9(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==n;a++,s=i){i=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),l=o&&a>=o9;!o||l?(l&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=d9(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function d9(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function h9(e,t,n){const r=e.treeAdapter.getTagName(t),i=Go(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);i===p.TEMPLATE&&a===X.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function p9(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function Qg(e,t){for(let n=0;n<s9;n++){const r=u9(e,t);if(!r)break;const i=c9(e,r);if(!i)break;e.activeFormattingElements.bookmark=r;const a=f9(e,i,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(a),s&&h9(e,s,a),p9(e,i,r)}}function Zg(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function m9(e,t){e._appendCommentNode(t,e.openElements.items[0])}function g9(e,t){e._appendCommentNode(t,e.document)}function Jg(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function b9(e,t){e._setDocumentType(t);const n=t.forceQuirks?vr.QUIRKS:$P(t);GP(t)||e._err(t,U.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=D.BEFORE_HTML}function Fu(e,t){e._err(t,U.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,vr.QUIRKS),e.insertionMode=D.BEFORE_HTML,e._processToken(t)}function y9(e,t){t.tagID===p.HTML?(e._insertElement(t,X.HTML),e.insertionMode=D.BEFORE_HEAD):Hu(e,t)}function v9(e,t){const n=t.tagID;(n===p.HTML||n===p.HEAD||n===p.BODY||n===p.BR)&&Hu(e,t)}function Hu(e,t){e._insertFakeRootElement(),e.insertionMode=D.BEFORE_HEAD,e._processToken(t)}function x9(e,t){switch(t.tagID){case p.HTML:{mn(e,t);break}case p.HEAD:{e._insertElement(t,X.HTML),e.headElement=e.openElements.current,e.insertionMode=D.IN_HEAD;break}default:Vu(e,t)}}function E9(e,t){const n=t.tagID;n===p.HEAD||n===p.BODY||n===p.HTML||n===p.BR?Vu(e,t):e._err(t,U.endTagWithoutMatchingOpenElement)}function Vu(e,t){e._insertFakeElement(P.HEAD,p.HEAD),e.headElement=e.openElements.current,e.insertionMode=D.IN_HEAD,e._processToken(t)}function Mr(e,t){switch(t.tagID){case p.HTML:{mn(e,t);break}case p.BASE:case p.BASEFONT:case p.BGSOUND:case p.LINK:case p.META:{e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case p.TITLE:{e._switchToTextParsing(t,Ot.RCDATA);break}case p.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Ot.RAWTEXT):(e._insertElement(t,X.HTML),e.insertionMode=D.IN_HEAD_NO_SCRIPT);break}case p.NOFRAMES:case p.STYLE:{e._switchToTextParsing(t,Ot.RAWTEXT);break}case p.SCRIPT:{e._switchToTextParsing(t,Ot.SCRIPT_DATA);break}case p.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=D.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(D.IN_TEMPLATE);break}case p.HEAD:{e._err(t,U.misplacedStartTagForHeadElement);break}default:qu(e,t)}}function T9(e,t){switch(t.tagID){case p.HEAD:{e.openElements.pop(),e.insertionMode=D.AFTER_HEAD;break}case p.BODY:case p.BR:case p.HTML:{qu(e,t);break}case p.TEMPLATE:{ps(e,t);break}default:e._err(t,U.endTagWithoutMatchingOpenElement)}}function ps(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==p.TEMPLATE&&e._err(t,U.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(p.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,U.endTagWithoutMatchingOpenElement)}function qu(e,t){e.openElements.pop(),e.insertionMode=D.AFTER_HEAD,e._processToken(t)}function w9(e,t){switch(t.tagID){case p.HTML:{mn(e,t);break}case p.BASEFONT:case p.BGSOUND:case p.HEAD:case p.LINK:case p.META:case p.NOFRAMES:case p.STYLE:{Mr(e,t);break}case p.NOSCRIPT:{e._err(t,U.nestedNoscriptInHead);break}default:Yu(e,t)}}function _9(e,t){switch(t.tagID){case p.NOSCRIPT:{e.openElements.pop(),e.insertionMode=D.IN_HEAD;break}case p.BR:{Yu(e,t);break}default:e._err(t,U.endTagWithoutMatchingOpenElement)}}function Yu(e,t){const n=t.type===ke.EOF?U.openElementsLeftAfterEof:U.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=D.IN_HEAD,e._processToken(t)}function S9(e,t){switch(t.tagID){case p.HTML:{mn(e,t);break}case p.BODY:{e._insertElement(t,X.HTML),e.framesetOk=!1,e.insertionMode=D.IN_BODY;break}case p.FRAMESET:{e._insertElement(t,X.HTML),e.insertionMode=D.IN_FRAMESET;break}case p.BASE:case p.BASEFONT:case p.BGSOUND:case p.LINK:case p.META:case p.NOFRAMES:case p.SCRIPT:case p.STYLE:case p.TEMPLATE:case p.TITLE:{e._err(t,U.abandonedHeadElementChild),e.openElements.push(e.headElement,p.HEAD),Mr(e,t),e.openElements.remove(e.headElement);break}case p.HEAD:{e._err(t,U.misplacedStartTagForHeadElement);break}default:Gu(e,t)}}function A9(e,t){switch(t.tagID){case p.BODY:case p.HTML:case p.BR:{Gu(e,t);break}case p.TEMPLATE:{ps(e,t);break}default:e._err(t,U.endTagWithoutMatchingOpenElement)}}function Gu(e,t){e._insertFakeElement(P.BODY,p.BODY),e.insertionMode=D.IN_BODY,Hd(e,t)}function Hd(e,t){switch(t.type){case ke.CHARACTER:{DS(e,t);break}case ke.WHITESPACE_CHARACTER:{NS(e,t);break}case ke.COMMENT:{Zg(e,t);break}case ke.START_TAG:{mn(e,t);break}case ke.END_TAG:{Vd(e,t);break}case ke.EOF:{US(e,t);break}}}function NS(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function DS(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function C9(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function k9(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function O9(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,X.HTML),e.insertionMode=D.IN_FRAMESET)}function R9(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,X.HTML)}function N9(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&Xg.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,X.HTML)}function D9(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,X.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function M9(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,X.HTML),n||(e.formElement=e.openElements.current))}function L9(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===p.LI&&i===p.LI||(n===p.DD||n===p.DT)&&(i===p.DD||i===p.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==p.ADDRESS&&i!==p.DIV&&i!==p.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,X.HTML)}function I9(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,X.HTML),e.tokenizer.state=Ot.PLAINTEXT}function P9(e,t){e.openElements.hasInScope(p.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.framesetOk=!1}function B9(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(P.A);n&&(Qg(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function U9(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function z9(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(p.NOBR)&&(Qg(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,X.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function j9(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function F9(e,t){e.treeAdapter.getDocumentMode(e.document)!==vr.QUIRKS&&e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._insertElement(t,X.HTML),e.framesetOk=!1,e.insertionMode=D.IN_TABLE}function MS(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,X.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function LS(e){const t=dS(e,hs.TYPE);return t!=null&&t.toLowerCase()===a9}function H9(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,X.HTML),LS(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function V9(e,t){e._appendElement(t,X.HTML),t.ackSelfClosing=!0}function q9(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._appendElement(t,X.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Y9(e,t){t.tagName=P.IMG,t.tagID=p.IMG,MS(e,t)}function G9(e,t){e._insertElement(t,X.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Ot.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=D.TEXT}function $9(e,t){e.openElements.hasInButtonScope(p.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Ot.RAWTEXT)}function X9(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Ot.RAWTEXT)}function IS(e,t){e._switchToTextParsing(t,Ot.RAWTEXT)}function K9(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===D.IN_TABLE||e.insertionMode===D.IN_CAPTION||e.insertionMode===D.IN_TABLE_BODY||e.insertionMode===D.IN_ROW||e.insertionMode===D.IN_CELL?D.IN_SELECT_IN_TABLE:D.IN_SELECT}function W9(e,t){e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML)}function Q9(e,t){e.openElements.hasInScope(p.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,X.HTML)}function Z9(e,t){e.openElements.hasInScope(p.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(p.RTC),e._insertElement(t,X.HTML)}function J9(e,t){e._reconstructActiveFormattingElements(),AS(t),Wg(t),t.selfClosing?e._appendElement(t,X.MATHML):e._insertElement(t,X.MATHML),t.ackSelfClosing=!0}function e7(e,t){e._reconstructActiveFormattingElements(),CS(t),Wg(t),t.selfClosing?e._appendElement(t,X.SVG):e._insertElement(t,X.SVG),t.ackSelfClosing=!0}function PS(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,X.HTML)}function mn(e,t){switch(t.tagID){case p.I:case p.S:case p.B:case p.U:case p.EM:case p.TT:case p.BIG:case p.CODE:case p.FONT:case p.SMALL:case p.STRIKE:case p.STRONG:{U9(e,t);break}case p.A:{B9(e,t);break}case p.H1:case p.H2:case p.H3:case p.H4:case p.H5:case p.H6:{N9(e,t);break}case p.P:case p.DL:case p.OL:case p.UL:case p.DIV:case p.DIR:case p.NAV:case p.MAIN:case p.MENU:case p.ASIDE:case p.CENTER:case p.FIGURE:case p.FOOTER:case p.HEADER:case p.HGROUP:case p.DIALOG:case p.DETAILS:case p.ADDRESS:case p.ARTICLE:case p.SEARCH:case p.SECTION:case p.SUMMARY:case p.FIELDSET:case p.BLOCKQUOTE:case p.FIGCAPTION:{R9(e,t);break}case p.LI:case p.DD:case p.DT:{L9(e,t);break}case p.BR:case p.IMG:case p.WBR:case p.AREA:case p.EMBED:case p.KEYGEN:{MS(e,t);break}case p.HR:{q9(e,t);break}case p.RB:case p.RTC:{Q9(e,t);break}case p.RT:case p.RP:{Z9(e,t);break}case p.PRE:case p.LISTING:{D9(e,t);break}case p.XMP:{$9(e,t);break}case p.SVG:{e7(e,t);break}case p.HTML:{C9(e,t);break}case p.BASE:case p.LINK:case p.META:case p.STYLE:case p.TITLE:case p.SCRIPT:case p.BGSOUND:case p.BASEFONT:case p.TEMPLATE:{Mr(e,t);break}case p.BODY:{k9(e,t);break}case p.FORM:{M9(e,t);break}case p.NOBR:{z9(e,t);break}case p.MATH:{J9(e,t);break}case p.TABLE:{F9(e,t);break}case p.INPUT:{H9(e,t);break}case p.PARAM:case p.TRACK:case p.SOURCE:{V9(e,t);break}case p.IMAGE:{Y9(e,t);break}case p.BUTTON:{P9(e,t);break}case p.APPLET:case p.OBJECT:case p.MARQUEE:{j9(e,t);break}case p.IFRAME:{X9(e,t);break}case p.SELECT:{K9(e,t);break}case p.OPTION:case p.OPTGROUP:{W9(e,t);break}case p.NOEMBED:case p.NOFRAMES:{IS(e,t);break}case p.FRAMESET:{O9(e,t);break}case p.TEXTAREA:{G9(e,t);break}case p.NOSCRIPT:{e.options.scriptingEnabled?IS(e,t):PS(e,t);break}case p.PLAINTEXT:{I9(e,t);break}case p.COL:case p.TH:case p.TD:case p.TR:case p.HEAD:case p.FRAME:case p.TBODY:case p.TFOOT:case p.THEAD:case p.CAPTION:case p.COLGROUP:break;default:PS(e,t)}}function t7(e,t){if(e.openElements.hasInScope(p.BODY)&&(e.insertionMode=D.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function n7(e,t){e.openElements.hasInScope(p.BODY)&&(e.insertionMode=D.AFTER_BODY,GS(e,t))}function r7(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function i7(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(p.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(p.FORM):n&&e.openElements.remove(n))}function a7(e){e.openElements.hasInButtonScope(p.P)||e._insertFakeElement(P.P,p.P),e._closePElement()}function s7(e){e.openElements.hasInListItemScope(p.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(p.LI),e.openElements.popUntilTagNamePopped(p.LI))}function o7(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function l7(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function u7(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function c7(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(P.BR,p.BR),e.openElements.pop(),e.framesetOk=!1}function BS(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],s=e.openElements.tagIDs[i];if(r===s&&(r!==p.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,s))break}}function Vd(e,t){switch(t.tagID){case p.A:case p.B:case p.I:case p.S:case p.U:case p.EM:case p.TT:case p.BIG:case p.CODE:case p.FONT:case p.NOBR:case p.SMALL:case p.STRIKE:case p.STRONG:{Qg(e,t);break}case p.P:{a7(e);break}case p.DL:case p.UL:case p.OL:case p.DIR:case p.DIV:case p.NAV:case p.PRE:case p.MAIN:case p.MENU:case p.ASIDE:case p.BUTTON:case p.CENTER:case p.FIGURE:case p.FOOTER:case p.HEADER:case p.HGROUP:case p.DIALOG:case p.ADDRESS:case p.ARTICLE:case p.DETAILS:case p.SEARCH:case p.SECTION:case p.SUMMARY:case p.LISTING:case p.FIELDSET:case p.BLOCKQUOTE:case p.FIGCAPTION:{r7(e,t);break}case p.LI:{s7(e);break}case p.DD:case p.DT:{o7(e,t);break}case p.H1:case p.H2:case p.H3:case p.H4:case p.H5:case p.H6:{l7(e);break}case p.BR:{c7(e);break}case p.BODY:{t7(e,t);break}case p.HTML:{n7(e,t);break}case p.FORM:{i7(e);break}case p.APPLET:case p.OBJECT:case p.MARQUEE:{u7(e,t);break}case p.TEMPLATE:{ps(e,t);break}default:BS(e,t)}}function US(e,t){e.tmplInsertionModeStack.length>0?YS(e,t):Jg(e,t)}function f7(e,t){var n;t.tagID===p.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function d7(e,t){e._err(t,U.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function e1(e,t){if(e.openElements.currentTagId!==void 0&&kS.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=D.IN_TABLE_TEXT,t.type){case ke.CHARACTER:{jS(e,t);break}case ke.WHITESPACE_CHARACTER:{zS(e,t);break}}else Xu(e,t)}function h7(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,X.HTML),e.insertionMode=D.IN_CAPTION}function p7(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,X.HTML),e.insertionMode=D.IN_COLUMN_GROUP}function m7(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(P.COLGROUP,p.COLGROUP),e.insertionMode=D.IN_COLUMN_GROUP,t1(e,t)}function g7(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,X.HTML),e.insertionMode=D.IN_TABLE_BODY}function b7(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(P.TBODY,p.TBODY),e.insertionMode=D.IN_TABLE_BODY,Yd(e,t)}function y7(e,t){e.openElements.hasInTableScope(p.TABLE)&&(e.openElements.popUntilTagNamePopped(p.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function v7(e,t){LS(t)?e._appendElement(t,X.HTML):Xu(e,t),t.ackSelfClosing=!0}function x7(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,X.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function $o(e,t){switch(t.tagID){case p.TD:case p.TH:case p.TR:{b7(e,t);break}case p.STYLE:case p.SCRIPT:case p.TEMPLATE:{Mr(e,t);break}case p.COL:{m7(e,t);break}case p.FORM:{x7(e,t);break}case p.TABLE:{y7(e,t);break}case p.TBODY:case p.TFOOT:case p.THEAD:{g7(e,t);break}case p.INPUT:{v7(e,t);break}case p.CAPTION:{h7(e,t);break}case p.COLGROUP:{p7(e,t);break}default:Xu(e,t)}}function $u(e,t){switch(t.tagID){case p.TABLE:{e.openElements.hasInTableScope(p.TABLE)&&(e.openElements.popUntilTagNamePopped(p.TABLE),e._resetInsertionMode());break}case p.TEMPLATE:{ps(e,t);break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:case p.TBODY:case p.TD:case p.TFOOT:case p.TH:case p.THEAD:case p.TR:break;default:Xu(e,t)}}function Xu(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,Hd(e,t),e.fosterParentingEnabled=n}function zS(e,t){e.pendingCharacterTokens.push(t)}function jS(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function Ku(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Xu(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const FS=new Set([p.CAPTION,p.COL,p.COLGROUP,p.TBODY,p.TD,p.TFOOT,p.TH,p.THEAD,p.TR]);function E7(e,t){const n=t.tagID;FS.has(n)?e.openElements.hasInTableScope(p.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=D.IN_TABLE,$o(e,t)):mn(e,t)}function T7(e,t){const n=t.tagID;switch(n){case p.CAPTION:case p.TABLE:{e.openElements.hasInTableScope(p.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(p.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=D.IN_TABLE,n===p.TABLE&&$u(e,t));break}case p.BODY:case p.COL:case p.COLGROUP:case p.HTML:case p.TBODY:case p.TD:case p.TFOOT:case p.TH:case p.THEAD:case p.TR:break;default:Vd(e,t)}}function t1(e,t){switch(t.tagID){case p.HTML:{mn(e,t);break}case p.COL:{e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case p.TEMPLATE:{Mr(e,t);break}default:qd(e,t)}}function w7(e,t){switch(t.tagID){case p.COLGROUP:{e.openElements.currentTagId===p.COLGROUP&&(e.openElements.pop(),e.insertionMode=D.IN_TABLE);break}case p.TEMPLATE:{ps(e,t);break}case p.COL:break;default:qd(e,t)}}function qd(e,t){e.openElements.currentTagId===p.COLGROUP&&(e.openElements.pop(),e.insertionMode=D.IN_TABLE,e._processToken(t))}function Yd(e,t){switch(t.tagID){case p.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,X.HTML),e.insertionMode=D.IN_ROW;break}case p.TH:case p.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(P.TR,p.TR),e.insertionMode=D.IN_ROW,Gd(e,t);break}case p.CAPTION:case p.COL:case p.COLGROUP:case p.TBODY:case p.TFOOT:case p.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=D.IN_TABLE,$o(e,t));break}default:$o(e,t)}}function n1(e,t){const n=t.tagID;switch(t.tagID){case p.TBODY:case p.TFOOT:case p.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=D.IN_TABLE);break}case p.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=D.IN_TABLE,$u(e,t));break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:case p.TD:case p.TH:case p.TR:break;default:$u(e,t)}}function Gd(e,t){switch(t.tagID){case p.TH:case p.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,X.HTML),e.insertionMode=D.IN_CELL,e.activeFormattingElements.insertMarker();break}case p.CAPTION:case p.COL:case p.COLGROUP:case p.TBODY:case p.TFOOT:case p.THEAD:case p.TR:{e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=D.IN_TABLE_BODY,Yd(e,t));break}default:$o(e,t)}}function HS(e,t){switch(t.tagID){case p.TR:{e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=D.IN_TABLE_BODY);break}case p.TABLE:{e.openElements.hasInTableScope(p.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=D.IN_TABLE_BODY,n1(e,t));break}case p.TBODY:case p.TFOOT:case p.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(p.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=D.IN_TABLE_BODY,n1(e,t));break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:case p.TD:case p.TH:break;default:$u(e,t)}}function _7(e,t){const n=t.tagID;FS.has(n)?(e.openElements.hasInTableScope(p.TD)||e.openElements.hasInTableScope(p.TH))&&(e._closeTableCell(),Gd(e,t)):mn(e,t)}function S7(e,t){const n=t.tagID;switch(n){case p.TD:case p.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=D.IN_ROW);break}case p.TABLE:case p.TBODY:case p.TFOOT:case p.THEAD:case p.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),HS(e,t));break}case p.BODY:case p.CAPTION:case p.COL:case p.COLGROUP:case p.HTML:break;default:Vd(e,t)}}function VS(e,t){switch(t.tagID){case p.HTML:{mn(e,t);break}case p.OPTION:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e._insertElement(t,X.HTML);break}case p.OPTGROUP:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e.openElements.currentTagId===p.OPTGROUP&&e.openElements.pop(),e._insertElement(t,X.HTML);break}case p.HR:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop(),e.openElements.currentTagId===p.OPTGROUP&&e.openElements.pop(),e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case p.INPUT:case p.KEYGEN:case p.TEXTAREA:case p.SELECT:{e.openElements.hasInSelectScope(p.SELECT)&&(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),t.tagID!==p.SELECT&&e._processStartTag(t));break}case p.SCRIPT:case p.TEMPLATE:{Mr(e,t);break}}}function qS(e,t){switch(t.tagID){case p.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===p.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===p.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===p.OPTGROUP&&e.openElements.pop();break}case p.OPTION:{e.openElements.currentTagId===p.OPTION&&e.openElements.pop();break}case p.SELECT:{e.openElements.hasInSelectScope(p.SELECT)&&(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode());break}case p.TEMPLATE:{ps(e,t);break}}}function A7(e,t){const n=t.tagID;n===p.CAPTION||n===p.TABLE||n===p.TBODY||n===p.TFOOT||n===p.THEAD||n===p.TR||n===p.TD||n===p.TH?(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),e._processStartTag(t)):VS(e,t)}function C7(e,t){const n=t.tagID;n===p.CAPTION||n===p.TABLE||n===p.TBODY||n===p.TFOOT||n===p.THEAD||n===p.TR||n===p.TD||n===p.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(p.SELECT),e._resetInsertionMode(),e.onEndTag(t)):qS(e,t)}function k7(e,t){switch(t.tagID){case p.BASE:case p.BASEFONT:case p.BGSOUND:case p.LINK:case p.META:case p.NOFRAMES:case p.SCRIPT:case p.STYLE:case p.TEMPLATE:case p.TITLE:{Mr(e,t);break}case p.CAPTION:case p.COLGROUP:case p.TBODY:case p.TFOOT:case p.THEAD:{e.tmplInsertionModeStack[0]=D.IN_TABLE,e.insertionMode=D.IN_TABLE,$o(e,t);break}case p.COL:{e.tmplInsertionModeStack[0]=D.IN_COLUMN_GROUP,e.insertionMode=D.IN_COLUMN_GROUP,t1(e,t);break}case p.TR:{e.tmplInsertionModeStack[0]=D.IN_TABLE_BODY,e.insertionMode=D.IN_TABLE_BODY,Yd(e,t);break}case p.TD:case p.TH:{e.tmplInsertionModeStack[0]=D.IN_ROW,e.insertionMode=D.IN_ROW,Gd(e,t);break}default:e.tmplInsertionModeStack[0]=D.IN_BODY,e.insertionMode=D.IN_BODY,mn(e,t)}}function O7(e,t){t.tagID===p.TEMPLATE&&ps(e,t)}function YS(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(p.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Jg(e,t)}function R7(e,t){t.tagID===p.HTML?mn(e,t):$d(e,t)}function GS(e,t){var n;if(t.tagID===p.HTML){if(e.fragmentContext||(e.insertionMode=D.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===p.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else $d(e,t)}function $d(e,t){e.insertionMode=D.IN_BODY,Hd(e,t)}function N7(e,t){switch(t.tagID){case p.HTML:{mn(e,t);break}case p.FRAMESET:{e._insertElement(t,X.HTML);break}case p.FRAME:{e._appendElement(t,X.HTML),t.ackSelfClosing=!0;break}case p.NOFRAMES:{Mr(e,t);break}}}function D7(e,t){t.tagID===p.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==p.FRAMESET&&(e.insertionMode=D.AFTER_FRAMESET))}function M7(e,t){switch(t.tagID){case p.HTML:{mn(e,t);break}case p.NOFRAMES:{Mr(e,t);break}}}function L7(e,t){t.tagID===p.HTML&&(e.insertionMode=D.AFTER_AFTER_FRAMESET)}function I7(e,t){t.tagID===p.HTML?mn(e,t):Xd(e,t)}function Xd(e,t){e.insertionMode=D.IN_BODY,Hd(e,t)}function P7(e,t){switch(t.tagID){case p.HTML:{mn(e,t);break}case p.NOFRAMES:{Mr(e,t);break}}}function B7(e,t){t.chars=bt,e._insertCharacters(t)}function U7(e,t){e._insertCharacters(t),e.framesetOk=!1}function $S(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==X.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function z7(e,t){if(e9(t))$S(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===X.MATHML?AS(t):r===X.SVG&&(t9(t),CS(t)),Wg(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function j7(e,t){if(t.tagID===p.P||t.tagID===p.BR){$S(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===X.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}P.AREA,P.BASE,P.BASEFONT,P.BGSOUND,P.BR,P.COL,P.EMBED,P.FRAME,P.HR,P.IMG,P.INPUT,P.KEYGEN,P.LINK,P.META,P.PARAM,P.SOURCE,P.TRACK,P.WBR;const Kd=XS("end"),ei=XS("start");function XS(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function F7(e){const t=ei(e),n=Kd(e);if(t&&n)return{start:t,end:n}}const Wd=function(e){if(e==null)return Y7;if(typeof e=="function")return Qd(e);if(typeof e=="object")return Array.isArray(e)?H7(e):V7(e);if(typeof e=="string")return q7(e);throw new Error("Expected function, string, or object as test")};function H7(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Wd(e[n]);return Qd(r);function r(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function V7(e){const t=e;return Qd(n);function n(r){const i=r;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function q7(e){return Qd(t);function t(n){return n&&n.type===e}}function Qd(e){return t;function t(n,r,i){return!!(G7(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function Y7(){return!0}function G7(e){return e!==null&&typeof e=="object"&&"type"in e}function HJ(e){return e}const KS=[],$7=!0,r1=!1,X7="skip";function WS(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const a=Wd(i),s=r?-1:1;o(e,void 0,[])();function o(l,u,c){const f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){const h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(l.type+(h?"<"+h+">":""))+")"})}return d;function d(){let h=KS,g,b,T;if((!t||a(l,u,c[c.length-1]||void 0))&&(h=K7(n(l,c)),h[0]===r1))return h;if("children"in l&&l.children){const m=l;if(m.children&&h[0]!==X7)for(b=(r?m.children.length:-1)+s,T=c.concat(m);b>-1&&b<m.children.length;){const y=m.children[b];if(g=o(y,b,T)(),g[0]===r1)return g;b=typeof g[1]=="number"?g[1]:b+s}}return h}}}function K7(e){return Array.isArray(e)?e:typeof e=="number"?[$7,e]:e==null?KS:[e]}function Zd(e,t,n,r){let i,a,s;typeof t=="function"&&typeof n!="function"?(a=void 0,s=t,i=n):(a=t,s=n,i=r),WS(e,a,o,i);function o(l,u){const c=u[u.length-1],f=c?c.children.indexOf(l):void 0;return s(l,f,c)}}const W7=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,Q7=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),QS={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function ZS(e,t){const n=oB(e),r=oS("type",{handlers:{root:Z7,element:J7,text:eB,comment:eA,doctype:tB,raw:rB},unknown:iB}),i={parser:n?new RS(QS):RS.getFragmentParser(void 0,QS),handle(o){r(o,i)},stitches:!1,options:t||{}};r(e,i),Xo(i,ei());const a=n?i.parser.document:i.parser.getFragment(),s=V8(a,{file:i.options.file});return i.stitches&&Zd(s,"comment",function(o,l,u){const c=o;if(c.value.stitch&&u&&l!==void 0){const f=u.children;return f[l]=c.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function JS(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function Z7(e,t){JS(e.children,t)}function J7(e,t){aB(e,t),JS(e.children,t),sB(e,t)}function eB(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:ke.CHARACTER,chars:e.value,location:Wu(e)};Xo(t,ei(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function tB(e,t){const n={type:ke.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:Wu(e)};Xo(t,ei(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function nB(e,t){t.stitches=!0;const n=lB(e);if("children"in e&&"children"in n){const r=ZS({type:"root",children:e.children},t.options);n.children=r.children}eA({type:"comment",value:{stitch:n}},t)}function eA(e,t){const n=e.value,r={type:ke.COMMENT,data:n,location:Wu(e)};Xo(t,ei(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function rB(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,tA(t,ei(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(W7,"<$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function iB(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))nB(n,t);else{let r="";throw Q7.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function Xo(e,t){tA(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Ot.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function tA(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function aB(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Ot.PLAINTEXT)return;Xo(t,ei(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:fs.html;i===fs.html&&n==="svg"&&(i=fs.svg);const a=iP({...e,children:[]},{space:i===fs.svg?"svg":"html"}),s={type:ke.START_TAG,tagName:n,tagID:Go(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:Wu(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function sB(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&dP.includes(n)||t.parser.tokenizer.state===Ot.PLAINTEXT)return;Xo(t,Kd(e));const r={type:ke.END_TAG,tagName:n,tagID:Go(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:Wu(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Ot.RCDATA||t.parser.tokenizer.state===Ot.RAWTEXT||t.parser.tokenizer.state===Ot.SCRIPT_DATA)&&(t.parser.tokenizer.state=Ot.DATA)}function oB(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function Wu(e){const t=ei(e)||{line:void 0,column:void 0,offset:void 0},n=Kd(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function lB(e){return"children"in e?Uo({...e,children:[]}):Uo(e)}function nA(e){return function(t,n){return ZS(t,{...e,file:n})}}function rA(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}const Sn=Aa(/[A-Za-z]/),gn=Aa(/[\dA-Za-z]/),uB=Aa(/[#-'*+\--9=?A-Z^-~]/);function Jd(e){return e!==null&&(e<32||e===127)}const i1=Aa(/\d/),cB=Aa(/[\dA-Fa-f]/),fB=Aa(/[!-/:-@[-`{-~]/);function fe(e){return e!==null&&e<-2}function rt(e){return e!==null&&(e<0||e===32)}function Me(e){return e===-2||e===-1||e===32}const eh=Aa(new RegExp("\\p{P}|\\p{S}","u")),ms=Aa(/\s/);function Aa(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function dB(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function hB(e,t,n){const i=Wd((n||{}).ignore||[]),a=pB(t);let s=-1;for(;++s<a.length;)WS(e,"text",o);function o(u,c){let f=-1,d;for(;++f<c.length;){const h=c[f],g=d?d.children:void 0;if(i(h,g?g.indexOf(h):void 0,d))return;d=h}if(d)return l(u,c)}function l(u,c){const f=c[c.length-1],d=a[s][0],h=a[s][1];let g=0;const T=f.children.indexOf(u);let m=!1,y=[];d.lastIndex=0;let v=d.exec(u.value);for(;v;){const w=v.index,_={index:v.index,input:v.input,stack:[...c,u]};let A=h(...v,_);if(typeof A=="string"&&(A=A.length>0?{type:"text",value:A}:void 0),A===!1?d.lastIndex=w+1:(g!==w&&y.push({type:"text",value:u.value.slice(g,w)}),Array.isArray(A)?y.push(...A):A&&y.push(A),g=w+v[0].length,m=!0),!d.global)break;v=d.exec(u.value)}return m?(g<u.value.length&&y.push({type:"text",value:u.value.slice(g)}),f.children.splice(T,1,...y)):y=[u],T+y.length}}function pB(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([mB(i[0]),gB(i[1])])}return t}function mB(e){return typeof e=="string"?new RegExp(dB(e),"g"):e}function gB(e){return typeof e=="function"?e:function(){return e}}const a1="phrasing",s1=["autolink","link","image","label"];function bB(){return{transforms:[_B],enter:{literalAutolink:vB,literalAutolinkEmail:o1,literalAutolinkHttp:o1,literalAutolinkWww:o1},exit:{literalAutolink:wB,literalAutolinkEmail:TB,literalAutolinkHttp:xB,literalAutolinkWww:EB}}}function yB(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:a1,notInConstruct:s1},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:a1,notInConstruct:s1},{character:":",before:"[ps]",after:"\\/",inConstruct:a1,notInConstruct:s1}]}}function vB(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function o1(e){this.config.enter.autolinkProtocol.call(this,e)}function xB(e){this.config.exit.autolinkProtocol.call(this,e)}function EB(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function TB(e){this.config.exit.autolinkEmail.call(this,e)}function wB(e){this.exit(e)}function _B(e){hB(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,SB],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),AB]],{ignore:["link","linkReference"]})}function SB(e,t,n,r,i){let a="";if(!iA(i)||(/^w/i.test(t)&&(n=t+n,t="",a="http://"),!CB(n)))return!1;const s=kB(n+r);if(!s[0])return!1;const o={type:"link",title:null,url:a+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[o,{type:"text",value:s[1]}]:o}function AB(e,t,n,r){return!iA(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function CB(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function kB(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=rA(e,"(");let a=rA(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function iA(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||ms(n)||eh(n))&&(!t||n!==47)}function Lr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}aA.peek=BB;function OB(){this.buffer()}function RB(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function NB(){this.buffer()}function DB(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function MB(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Lr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function LB(e){this.exit(e)}function IB(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Lr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function PB(e){this.exit(e)}function BB(){return"["}function aA(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{after:"]",before:a})),o(),s(),a+=i.move("]"),a}function UB(){return{enter:{gfmFootnoteCallString:OB,gfmFootnoteCall:RB,gfmFootnoteDefinitionLabelString:NB,gfmFootnoteDefinition:DB},exit:{gfmFootnoteCallString:MB,gfmFootnoteCall:LB,gfmFootnoteDefinitionLabelString:IB,gfmFootnoteDefinition:PB}}}function zB(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:aA},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,a,s){const o=a.createTracker(s);let l=o.move("[^");const u=a.enter("footnoteDefinition"),c=a.enter("label");return l+=o.move(a.safe(a.associationId(r),{before:l,after:"]"})),c(),l+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),l+=o.move((t?`
|
|
102
102
|
`:" ")+a.indentLines(a.containerFlow(r,o.current()),t?sA:jB))),u(),l}}function jB(e,t,n){return t===0?e:sA(e,t,n)}function sA(e,t,n){return(n?"":" ")+e}const FB=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];oA.peek=GB;function HB(){return{canContainEols:["delete"],enter:{strikethrough:qB},exit:{strikethrough:YB}}}function VB(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:FB}],handlers:{delete:oA}}}function qB(e){this.enter({type:"delete",children:[]},e)}function YB(e){this.exit(e)}function oA(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function GB(){return"~"}function $B(e){return e.length}function XB(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||$B,a=[],s=[],o=[],l=[];let u=0,c=-1;for(;++c<e.length;){const b=[],T=[];let m=-1;for(e[c].length>u&&(u=e[c].length);++m<e[c].length;){const y=KB(e[c][m]);if(n.alignDelimiters!==!1){const v=i(y);T[m]=v,(l[m]===void 0||v>l[m])&&(l[m]=v)}b.push(y)}s[c]=b,o[c]=T}let f=-1;if(typeof r=="object"&&"length"in r)for(;++f<u;)a[f]=lA(r[f]);else{const b=lA(r);for(;++f<u;)a[f]=b}f=-1;const d=[],h=[];for(;++f<u;){const b=a[f];let T="",m="";b===99?(T=":",m=":"):b===108?T=":":b===114&&(m=":");let y=n.alignDelimiters===!1?1:Math.max(1,l[f]-T.length-m.length);const v=T+"-".repeat(y)+m;n.alignDelimiters!==!1&&(y=T.length+y+m.length,y>l[f]&&(l[f]=y),h[f]=y),d[f]=v}s.splice(1,0,d),o.splice(1,0,h),c=-1;const g=[];for(;++c<s.length;){const b=s[c],T=o[c];f=-1;const m=[];for(;++f<u;){const y=b[f]||"";let v="",w="";if(n.alignDelimiters!==!1){const _=l[f]-(T[f]||0),A=a[f];A===114?v=" ".repeat(_):A===99?_%2?(v=" ".repeat(_/2+.5),w=" ".repeat(_/2-.5)):(v=" ".repeat(_/2),w=v):w=" ".repeat(_)}n.delimiterStart!==!1&&!f&&m.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&y==="")&&(n.delimiterStart!==!1||f)&&m.push(" "),n.alignDelimiters!==!1&&m.push(v),m.push(y),n.alignDelimiters!==!1&&m.push(w),n.padding!==!1&&m.push(" "),(n.delimiterEnd!==!1||f!==u-1)&&m.push("|")}g.push(n.delimiterEnd===!1?m.join("").replace(/ +$/,""):m.join(""))}return g.join(`
|
|
103
103
|
`)}function KB(e){return e==null?"":String(e)}function lA(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function WB(e,t,n,r){const i=n.enter("blockquote"),a=n.createTracker(r);a.move("> "),a.shift(2);const s=n.indentLines(n.containerFlow(e,a.current()),QB);return i(),s}function QB(e,t,n){return">"+(n?"":" ")+e}function ZB(e,t){return uA(e,t.inConstruct,!0)&&!uA(e,t.notInConstruct,!1)}function uA(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function cA(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
@@ -308,7 +308,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
308
308
|
top: ${l}px !important;
|
|
309
309
|
left: ${u}px !important;
|
|
310
310
|
}
|
|
311
|
-
`),()=>{document.head.removeChild(c)}},[t]),x.jsx(Yq,{isPresent:t,childRef:r,sizeRef:i,children:E.cloneElement(e,{ref:r})})}const $q=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:s})=>{const o=$1(Xq),l=E.useId(),u=E.useCallback(f=>{o.set(f,!0);for(const d of o.values())if(!d)return;r&&r()},[o,r]),c=E.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:u,register:f=>(o.set(f,!1),()=>o.delete(f))}),a?[Math.random(),u]:[n,u]);return E.useMemo(()=>{o.forEach((f,d)=>o.set(d,!1))},[n]),E.useEffect(()=>{!n&&!o.size&&r&&r()},[n]),s==="popLayout"&&(e=x.jsx(Gq,{isPresent:n,children:e})),x.jsx(ph.Provider,{value:c,children:e})};function Xq(){return new Map}function N3(e=!0){const t=E.useContext(ph);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=E.useId();E.useEffect(()=>{e&&i(a)},[e]);const s=E.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,s]:[!0]}const mh=e=>e.key||"";function D3(e){const t=[];return E.Children.forEach(e,n=>{E.isValidElement(n)&&t.push(n)}),t}const K1=typeof window<"u",M3=K1?E.useLayoutEffect:E.useEffect,Pn=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a="sync",propagate:s=!1})=>{const[o,l]=N3(s),u=E.useMemo(()=>D3(e),[e]),c=s&&!o?[]:u.map(mh),f=E.useRef(!0),d=E.useRef(u),h=$1(()=>new Map),[g,b]=E.useState(u),[T,m]=E.useState(u);M3(()=>{f.current=!1,d.current=u;for(let w=0;w<T.length;w++){const _=mh(T[w]);c.includes(_)?h.delete(_):h.get(_)!==!0&&h.set(_,!1)}},[T,c.length,c.join("-")]);const y=[];if(u!==g){let w=[...u];for(let _=0;_<T.length;_++){const A=T[_],N=mh(A);c.includes(N)||(w.splice(_,0,A),y.push(A))}a==="wait"&&y.length&&(w=y),m(D3(w)),b(u);return}const{forceRender:v}=E.useContext(G1);return x.jsx(x.Fragment,{children:T.map(w=>{const _=mh(w),A=s&&!o?!1:u===T||c.includes(_),N=()=>{if(h.has(_))h.set(_,!0);else return;let L=!0;h.forEach(F=>{F||(L=!1)}),L&&(v==null||v(),m(d.current),s&&(l==null||l()),r&&r())};return x.jsx($q,{isPresent:A,initial:!f.current||n?void 0:!1,custom:A?void 0:t,presenceAffectsLayout:i,mode:a,onExitComplete:A?void 0:N,children:w},_)})})},tr=e=>e;let L3=tr;function W1(e){let t;return()=>(t===void 0&&(t=e()),t)}const tl=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Li=e=>e*1e3,Ii=e=>e/1e3,Kq={useManualTiming:!1};function Wq(e){let t=new Set,n=new Set,r=!1,i=!1;const a=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function o(u){a.has(u)&&(l.schedule(u),e()),u(s)}const l={schedule:(u,c=!1,f=!1)=>{const h=f&&r?t:n;return c&&a.add(u),h.has(u)||h.add(u),u},cancel:u=>{n.delete(u),a.delete(u)},process:u=>{if(s=u,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(o),t.clear(),r=!1,i&&(i=!1,l.process(u))}};return l}const gh=["read","resolveKeyframes","update","preRender","render","postRender"],Qq=40;function I3(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=gh.reduce((m,y)=>(m[y]=Wq(a),m),{}),{read:o,resolveKeyframes:l,update:u,preRender:c,render:f,postRender:d}=s,h=()=>{const m=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(m-i.timestamp,Qq),1),i.timestamp=m,i.isProcessing=!0,o.process(i),l.process(i),u.process(i),c.process(i),f.process(i),d.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:gh.reduce((m,y)=>{const v=s[y];return m[y]=(w,_=!1,A=!1)=>(n||g(),v.schedule(w,_,A)),m},{}),cancel:m=>{for(let y=0;y<gh.length;y++)s[gh[y]].cancel(m)},state:i,steps:s}}const{schedule:dt,cancel:Ra,state:un,steps:Q1}=I3(typeof requestAnimationFrame<"u"?requestAnimationFrame:tr,!0),P3=E.createContext({strict:!1}),B3={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},nl={};for(const e in B3)nl[e]={isEnabled:t=>B3[e].some(n=>!!t[n])};function Zq(e){for(const t in e)nl[t]={...nl[t],...e[t]}}const Jq=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function bh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Jq.has(e)}let U3=e=>!bh(e);function eY(e){e&&(U3=t=>t.startsWith("on")?!bh(t):e(t))}try{eY(require("@emotion/is-prop-valid").default)}catch{}function tY(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(U3(i)||n===!0&&bh(i)||!t&&!bh(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function nY(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const yh=E.createContext({});function sc(e){return typeof e=="string"||Array.isArray(e)}function vh(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Z1=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],J1=["initial",...Z1];function xh(e){return vh(e.animate)||J1.some(t=>sc(e[t]))}function z3(e){return!!(xh(e)||e.variants)}function rY(e,t){if(xh(e)){const{initial:n,animate:r}=e;return{initial:n===!1||sc(n)?n:void 0,animate:sc(r)?r:void 0}}return e.inherit!==!1?t:{}}function iY(e){const{initial:t,animate:n}=rY(e,E.useContext(yh));return E.useMemo(()=>({initial:t,animate:n}),[j3(t),j3(n)])}function j3(e){return Array.isArray(e)?e.join(" "):e}const aY=Symbol.for("motionComponentSymbol");function rl(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function sY(e,t,n){return E.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):rl(n)&&(n.current=r))},[t])}const eb=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),F3="data-"+eb("framerAppearId"),{schedule:tb}=I3(queueMicrotask,!1),H3=E.createContext({});function oY(e,t,n,r,i){var a,s;const{visualElement:o}=E.useContext(yh),l=E.useContext(P3),u=E.useContext(ph),c=E.useContext(X1).reducedMotion,f=E.useRef(null);r=r||l.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const d=f.current,h=E.useContext(H3);d&&!d.projection&&i&&(d.type==="html"||d.type==="svg")&&lY(f.current,n,i,h);const g=E.useRef(!1);E.useInsertionEffect(()=>{d&&g.current&&d.update(n,u)});const b=n[F3],T=E.useRef(!!b&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,b))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,b)));return M3(()=>{d&&(g.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),tb.render(d.render),T.current&&d.animationState&&d.animationState.animateChanges())}),E.useEffect(()=>{d&&(!T.current&&d.animationState&&d.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,b)}),T.current=!1))}),d}function lY(e,t,n,r){const{layoutId:i,layout:a,drag:s,dragConstraints:o,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:V3(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!s||o&&rl(o),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function V3(e){if(e)return e.options.allowProjection!==!1?e.projection:V3(e.parent)}function uY({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var a,s;e&&Zq(e);function o(u,c){let f;const d={...E.useContext(X1),...u,layoutId:cY(u)},{isStatic:h}=d,g=iY(u),b=r(u,h);if(!h&&K1){fY();const T=dY(d);f=T.MeasureLayout,g.visualElement=oY(i,b,d,t,T.ProjectionNode)}return x.jsxs(yh.Provider,{value:g,children:[f&&g.visualElement?x.jsx(f,{visualElement:g.visualElement,...d}):null,n(i,u,sY(b,g.visualElement,c),b,h,g.visualElement)]})}o.displayName=`motion.${typeof i=="string"?i:`create(${(s=(a=i.displayName)!==null&&a!==void 0?a:i.name)!==null&&s!==void 0?s:""})`}`;const l=E.forwardRef(o);return l[aY]=i,l}function cY({layoutId:e}){const t=E.useContext(G1).id;return t&&e!==void 0?t+"-"+e:e}function fY(e,t){E.useContext(P3).strict}function dY(e){const{drag:t,layout:n}=nl;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const hY=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function nb(e){return typeof e!="string"||e.includes("-")?!1:!!(hY.indexOf(e)>-1||/[A-Z]/u.test(e))}function q3(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function rb(e,t,n,r){if(typeof t=="function"){const[i,a]=q3(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=q3(r);t=t(n!==void 0?n:e.custom,i,a)}return t}const ib=e=>Array.isArray(e),pY=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),mY=e=>ib(e)?e[e.length-1]||0:e,yn=e=>!!(e&&e.getVelocity);function Eh(e){const t=yn(e)?e.get():e;return pY(t)?t.toValue():t}function gY({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,a){const s={latestValues:bY(r,i,a,e),renderState:t()};return n&&(s.onMount=o=>n({props:r,current:o,...s}),s.onUpdate=o=>n(o)),s}const Y3=e=>(t,n)=>{const r=E.useContext(yh),i=E.useContext(ph),a=()=>gY(e,t,r,i);return n?a():$1(a)};function bY(e,t,n,r){const i={},a=r(e,{});for(const d in a)i[d]=Eh(a[d]);let{initial:s,animate:o}=e;const l=xh(e),u=z3(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),o===void 0&&(o=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const f=c?o:s;if(f&&typeof f!="boolean"&&!vh(f)){const d=Array.isArray(f)?f:[f];for(let h=0;h<d.length;h++){const g=rb(e,d[h]);if(g){const{transitionEnd:b,transition:T,...m}=g;for(const y in m){let v=m[y];if(Array.isArray(v)){const w=c?v.length-1:0;v=v[w]}v!==null&&(i[y]=v)}for(const y in b)i[y]=b[y]}}}return i}const il=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],vs=new Set(il),G3=e=>t=>typeof t=="string"&&t.startsWith(e),$3=G3("--"),yY=G3("var(--"),ab=e=>yY(e)?vY.test(e.split("/*")[0].trim()):!1,vY=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,X3=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Pi=(e,t,n)=>n>t?t:n<e?e:n,al={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},oc={...al,transform:e=>Pi(0,1,e)},Th={...al,default:1},lc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Na=lc("deg"),ii=lc("%"),me=lc("px"),xY=lc("vh"),EY=lc("vw"),K3={...ii,parse:e=>ii.parse(e)/100,transform:e=>ii.transform(e*100)},TY={borderWidth:me,borderTopWidth:me,borderRightWidth:me,borderBottomWidth:me,borderLeftWidth:me,borderRadius:me,radius:me,borderTopLeftRadius:me,borderTopRightRadius:me,borderBottomRightRadius:me,borderBottomLeftRadius:me,width:me,maxWidth:me,height:me,maxHeight:me,top:me,right:me,bottom:me,left:me,padding:me,paddingTop:me,paddingRight:me,paddingBottom:me,paddingLeft:me,margin:me,marginTop:me,marginRight:me,marginBottom:me,marginLeft:me,backgroundPositionX:me,backgroundPositionY:me},wY={rotate:Na,rotateX:Na,rotateY:Na,rotateZ:Na,scale:Th,scaleX:Th,scaleY:Th,scaleZ:Th,skew:Na,skewX:Na,skewY:Na,distance:me,translateX:me,translateY:me,translateZ:me,x:me,y:me,z:me,perspective:me,transformPerspective:me,opacity:oc,originX:K3,originY:K3,originZ:me},W3={...al,transform:Math.round},sb={...TY,...wY,zIndex:W3,size:me,fillOpacity:oc,strokeOpacity:oc,numOctaves:W3},_Y={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},SY=il.length;function AY(e,t,n){let r="",i=!0;for(let a=0;a<SY;a++){const s=il[a],o=e[s];if(o===void 0)continue;let l=!0;if(typeof o=="number"?l=o===(s.startsWith("scale")?1:0):l=parseFloat(o)===0,!l||n){const u=X3(o,sb[s]);if(!l){i=!1;const c=_Y[s]||s;r+=`${c}(${u}) `}n&&(t[s]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function ob(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let s=!1,o=!1;for(const l in t){const u=t[l];if(vs.has(l)){s=!0;continue}else if($3(l)){i[l]=u;continue}else{const c=X3(u,sb[l]);l.startsWith("origin")?(o=!0,a[l]=c):r[l]=c}}if(t.transform||(s||n?r.transform=AY(t,e.transform,n):r.transform&&(r.transform="none")),o){const{originX:l="50%",originY:u="50%",originZ:c=0}=a;r.transformOrigin=`${l} ${u} ${c}`}}const CY={offset:"stroke-dashoffset",array:"stroke-dasharray"},kY={offset:"strokeDashoffset",array:"strokeDasharray"};function OY(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?CY:kY;e[a.offset]=me.transform(-r);const s=me.transform(t),o=me.transform(n);e[a.array]=`${s} ${o}`}function Q3(e,t,n){return typeof e=="string"?e:me.transform(t+n*e)}function RY(e,t,n){const r=Q3(t,e.x,e.width),i=Q3(n,e.y,e.height);return`${r} ${i}`}function lb(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:s,pathSpacing:o=1,pathOffset:l=0,...u},c,f){if(ob(e,u,f),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:h,dimensions:g}=e;d.transform&&(g&&(h.transform=d.transform),delete d.transform),g&&(i!==void 0||a!==void 0||h.transform)&&(h.transformOrigin=RY(g,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),s!==void 0&&OY(d,s,o,l,!1)}const ub=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Z3=()=>({...ub(),attrs:{}}),cb=e=>typeof e=="string"&&e.toLowerCase()==="svg";function J3(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const ek=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function tk(e,t,n,r){J3(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(ek.has(i)?i:eb(i),t.attrs[i])}const wh={};function NY(e){Object.assign(wh,e)}function nk(e,{layout:t,layoutId:n}){return vs.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!wh[e]||e==="opacity")}function fb(e,t,n){var r;const{style:i}=e,a={};for(const s in i)(yn(i[s])||t.style&&yn(t.style[s])||nk(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(a[s]=i[s]);return a}function rk(e,t,n){const r=fb(e,t,n);for(const i in e)if(yn(e[i])||yn(t[i])){const a=il.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}function DY(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const ik=["x","y","width","height","cx","cy","r"],MY={useVisualState:Y3({scrapeMotionValuesFromProps:rk,createRenderState:Z3,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let a=!!e.drag;if(!a){for(const o in i)if(vs.has(o)){a=!0;break}}if(!a)return;let s=!t;if(t)for(let o=0;o<ik.length;o++){const l=ik[o];e[l]!==t[l]&&(s=!0)}s&&dt.read(()=>{DY(n,r),dt.render(()=>{lb(r,i,cb(n.tagName),e.transformTemplate),tk(n,r)})})}})},LY={useVisualState:Y3({scrapeMotionValuesFromProps:fb,createRenderState:ub})};function ak(e,t,n){for(const r in t)!yn(t[r])&&!nk(r,n)&&(e[r]=t[r])}function IY({transformTemplate:e},t){return E.useMemo(()=>{const n=ub();return ob(n,t,e),Object.assign({},n.vars,n.style)},[t])}function PY(e,t){const n=e.style||{},r={};return ak(r,n,e),Object.assign(r,IY(e,t)),r}function BY(e,t){const n={},r=PY(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function UY(e,t,n,r){const i=E.useMemo(()=>{const a=Z3();return lb(a,t,cb(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};ak(a,e.style,e),i.style={...a,...i.style}}return i}function zY(e=!1){return(n,r,i,{latestValues:a},s)=>{const l=(nb(n)?UY:BY)(r,a,s,n),u=tY(r,typeof n=="string",e),c=n!==E.Fragment?{...u,...l,ref:i}:{},{children:f}=r,d=E.useMemo(()=>yn(f)?f.get():f,[f]);return E.createElement(n,{...c,children:d})}}function jY(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const s={...nb(r)?MY:LY,preloadedFeatures:e,useRender:zY(i),createVisualElement:t,Component:r};return uY(s)}}function sk(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function _h(e,t,n){const r=e.getProps();return rb(r,t,n!==void 0?n:r.custom,e)}const FY=W1(()=>window.ScrollTimeline!==void 0);class HY{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(FY()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,a)=>{i&&i(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class VY extends HY{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function db(e,t){return e?e[t]||e.default||e:void 0}const hb=2e4;function ok(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<hb;)t+=n,r=e.next(t);return t>=hb?1/0:t}function pb(e){return typeof e=="function"}function lk(e,t){e.timeline=t,e.onfinish=null}const mb=e=>Array.isArray(e)&&typeof e[0]=="number",qY={linearEasing:void 0};function YY(e,t){const n=W1(e);return()=>{var r;return(r=qY[t])!==null&&r!==void 0?r:n()}}const Sh=YY(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),uk=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=e(tl(0,i-1,a))+", ";return`linear(${r.substring(0,r.length-2)})`};function ck(e){return!!(typeof e=="function"&&Sh()||!e||typeof e=="string"&&(e in gb||Sh())||mb(e)||Array.isArray(e)&&e.every(ck))}const uc=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,gb={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:uc([0,.65,.55,1]),circOut:uc([.55,0,1,.45]),backIn:uc([.31,.01,.66,-.59]),backOut:uc([.33,1.53,.69,.99])};function fk(e,t){if(e)return typeof e=="function"&&Sh()?uk(e,t):mb(e)?uc(e):Array.isArray(e)?e.map(n=>fk(n,t)||gb.easeOut):gb[e]}const Ir={x:!1,y:!1};function dk(){return Ir.x||Ir.y}function GY(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const a=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}function hk(e,t){const n=GY(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function pk(e){return t=>{t.pointerType==="touch"||dk()||e(t)}}function $Y(e,t,n={}){const[r,i,a]=hk(e,n),s=pk(o=>{const{target:l}=o,u=t(o);if(typeof u!="function"||!l)return;const c=pk(f=>{u(f),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,i)});return r.forEach(o=>{o.addEventListener("pointerenter",s,i)}),a}const mk=(e,t)=>t?e===t?!0:mk(e,t.parentElement):!1,bb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,XY=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function KY(e){return XY.has(e.tagName)||e.tabIndex!==-1}const cc=new WeakSet;function gk(e){return t=>{t.key==="Enter"&&e(t)}}function yb(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const WY=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=gk(()=>{if(cc.has(n))return;yb(n,"down");const i=gk(()=>{yb(n,"up")}),a=()=>yb(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function bk(e){return bb(e)&&!dk()}function QY(e,t,n={}){const[r,i,a]=hk(e,n),s=o=>{const l=o.currentTarget;if(!bk(o)||cc.has(l))return;cc.add(l);const u=t(o),c=(h,g)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),!(!bk(h)||!cc.has(l))&&(cc.delete(l),typeof u=="function"&&u(h,{success:g}))},f=h=>{c(h,n.useGlobalTarget||mk(l,h.target))},d=h=>{c(h,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",d,i)};return r.forEach(o=>{!KY(o)&&o.getAttribute("tabindex")===null&&(o.tabIndex=0),(n.useGlobalTarget?window:o).addEventListener("pointerdown",s,i),o.addEventListener("focus",u=>WY(u,i),i)}),a}function ZY(e){return e==="x"||e==="y"?Ir[e]?null:(Ir[e]=!0,()=>{Ir[e]=!1}):Ir.x||Ir.y?null:(Ir.x=Ir.y=!0,()=>{Ir.x=Ir.y=!1})}const yk=new Set(["width","height","top","left","right","bottom",...il]);let Ah;function JY(){Ah=void 0}const ai={now:()=>(Ah===void 0&&ai.set(un.isProcessing||Kq.useManualTiming?un.timestamp:performance.now()),Ah),set:e=>{Ah=e,queueMicrotask(JY)}};function vb(e,t){e.indexOf(t)===-1&&e.push(t)}function xb(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Eb{constructor(){this.subscriptions=[]}add(t){return vb(this.subscriptions,t),()=>xb(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const s=this.subscriptions[a];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function vk(e,t){return t?e*(1e3/t):0}const xk=30,eG=e=>!isNaN(parseFloat(e));class tG{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const a=ai.now();this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ai.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=eG(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Eb);const r=this.events[t].add(n);return t==="change"?()=>{r(),dt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ai.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>xk)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,xk);return vk(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function fc(e,t){return new tG(e,t)}function nG(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,fc(n))}function rG(e,t){const n=_h(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const s in a){const o=mY(a[s]);nG(e,s,o)}}function iG(e){return!!(yn(e)&&e.add)}function Tb(e,t){const n=e.getValue("willChange");if(iG(n))return n.add(t)}function Ek(e){return e.props[F3]}const Tk=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,aG=1e-7,sG=12;function oG(e,t,n,r,i){let a,s,o=0;do s=t+(n-t)/2,a=Tk(s,r,i)-e,a>0?n=s:t=s;while(Math.abs(a)>aG&&++o<sG);return s}function dc(e,t,n,r){if(e===t&&n===r)return tr;const i=a=>oG(a,0,1,e,n);return a=>a===0||a===1?a:Tk(i(a),t,r)}const wk=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,_k=e=>t=>1-e(1-t),Sk=dc(.33,1.53,.69,.99),wb=_k(Sk),Ak=wk(wb),Ck=e=>(e*=2)<1?.5*wb(e):.5*(2-Math.pow(2,-10*(e-1))),_b=e=>1-Math.sin(Math.acos(e)),kk=_k(_b),Ok=wk(_b),Rk=e=>/^0[^.\s]+$/u.test(e);function lG(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Rk(e):!0}const hc=e=>Math.round(e*1e5)/1e5,Sb=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function uG(e){return e==null}const cG=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ab=(e,t)=>n=>!!(typeof n=="string"&&cG.test(n)&&n.startsWith(e)||t&&!uG(n)&&Object.prototype.hasOwnProperty.call(n,t)),Nk=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,s,o]=r.match(Sb);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},fG=e=>Pi(0,255,e),Cb={...al,transform:e=>Math.round(fG(e))},xs={test:Ab("rgb","red"),parse:Nk("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Cb.transform(e)+", "+Cb.transform(t)+", "+Cb.transform(n)+", "+hc(oc.transform(r))+")"};function dG(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const kb={test:Ab("#"),parse:dG,transform:xs.transform},sl={test:Ab("hsl","hue"),parse:Nk("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ii.transform(hc(t))+", "+ii.transform(hc(n))+", "+hc(oc.transform(r))+")"},vn={test:e=>xs.test(e)||kb.test(e)||sl.test(e),parse:e=>xs.test(e)?xs.parse(e):sl.test(e)?sl.parse(e):kb.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?xs.transform(e):sl.transform(e)},hG=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function pG(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Sb))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(hG))===null||n===void 0?void 0:n.length)||0)>0}const Dk="number",Mk="color",mG="var",gG="var(",Lk="${}",bG=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function pc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const o=t.replace(bG,l=>(vn.test(l)?(r.color.push(a),i.push(Mk),n.push(vn.parse(l))):l.startsWith(gG)?(r.var.push(a),i.push(mG),n.push(l)):(r.number.push(a),i.push(Dk),n.push(parseFloat(l))),++a,Lk)).split(Lk);return{values:n,split:o,indexes:r,types:i}}function Ik(e){return pc(e).values}function Pk(e){const{split:t,types:n}=pc(e),r=t.length;return i=>{let a="";for(let s=0;s<r;s++)if(a+=t[s],i[s]!==void 0){const o=n[s];o===Dk?a+=hc(i[s]):o===Mk?a+=vn.transform(i[s]):a+=i[s]}return a}}const yG=e=>typeof e=="number"?0:e;function vG(e){const t=Ik(e);return Pk(e)(t.map(yG))}const Da={test:pG,parse:Ik,createTransformer:Pk,getAnimatableNone:vG},xG=new Set(["brightness","contrast","saturate","opacity"]);function EG(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Sb)||[];if(!r)return e;const i=n.replace(r,"");let a=xG.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const TG=/\b([a-z-]*)\(.*?\)/gu,Ob={...Da,getAnimatableNone:e=>{const t=e.match(TG);return t?t.map(EG).join(" "):e}},wG={...sb,color:vn,backgroundColor:vn,outlineColor:vn,fill:vn,stroke:vn,borderColor:vn,borderTopColor:vn,borderRightColor:vn,borderBottomColor:vn,borderLeftColor:vn,filter:Ob,WebkitFilter:Ob},Rb=e=>wG[e];function Bk(e,t){let n=Rb(e);return n!==Ob&&(n=Da),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const _G=new Set(["auto","none","0"]);function SG(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!_G.has(a)&&pc(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=Bk(n,i)}const Uk=e=>e===al||e===me,zk=(e,t)=>parseFloat(e.split(", ")[t]),jk=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return zk(i[1],t);{const a=r.match(/^matrix\((.+)\)$/u);return a?zk(a[1],e):0}},AG=new Set(["x","y","z"]),CG=il.filter(e=>!AG.has(e));function kG(e){const t=[];return CG.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ol={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:jk(4,13),y:jk(5,14)};ol.translateX=ol.x,ol.translateY=ol.y;const Es=new Set;let Nb=!1,Db=!1;function Fk(){if(Db){const e=Array.from(Es).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=kG(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,s])=>{var o;(o=r.getValue(a))===null||o===void 0||o.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Db=!1,Nb=!1,Es.forEach(e=>e.complete()),Es.clear()}function Hk(){Es.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Db=!0)})}function OG(){Hk(),Fk()}class Mb{constructor(t,n,r,i,a,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Es.add(this),Nb||(Nb=!0,dt.read(Hk),dt.resolveKeyframes(Fk))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let a=0;a<t.length;a++)if(t[a]===null)if(a===0){const s=i==null?void 0:i.get(),o=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const l=r.readValue(n,o);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=o),i&&s===void 0&&i.set(t[0])}else t[a]=t[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Es.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Es.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Vk=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),RG=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function NG(e){const t=RG.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function qk(e,t,n=1){const[r,i]=NG(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const s=a.trim();return Vk(s)?parseFloat(s):s}return ab(i)?qk(i,t,n+1):i}const Yk=e=>t=>t.test(e),Gk=[al,me,ii,Na,EY,xY,{test:e=>e==="auto",parse:e=>e}],$k=e=>Gk.find(Yk(e));class Xk extends Mb{constructor(t,n,r,i,a){super(t,n,r,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),ab(u))){const c=qk(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!yk.has(r)||t.length!==2)return;const[i,a]=t,s=$k(i),o=$k(a);if(s!==o)if(Uk(s)&&Uk(o))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)lG(t[i])&&r.push(i);r.length&&SG(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ol[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const a=n.getValue(r);a&&a.jump(this.measuredOrigin,!1);const s=i.length-1,o=i[s];i[s]=ol[r](n.measureViewportBox(),window.getComputedStyle(n.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const Kk=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Da.test(e)||e==="0")&&!e.startsWith("url("));function DG(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function MG(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],s=Kk(i,t),o=Kk(a,t);return!s||!o?!1:DG(e)||(n==="spring"||pb(n))&&r}const LG=e=>e!==null;function Ch(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(LG),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const IG=40;class Wk{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ai.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:s,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>IG?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&OG(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=ai.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:a,delay:s,onComplete:o,onUpdate:l,isGenerator:u}=this.options;if(!u&&!MG(t,r,i,a))if(s)this.options.duration=0;else{l&&l(Ch(t,this.options,n)),o&&o(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const xt=(e,t,n)=>e+(t-e)*n;function Lb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function PG({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,s=0;if(!t)i=a=s=n;else{const o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;i=Lb(l,o,e+1/3),a=Lb(l,o,e),s=Lb(l,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:r}}function kh(e,t){return n=>n>0?t:e}const Ib=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},BG=[kb,xs,sl],UG=e=>BG.find(t=>t.test(e));function Qk(e){const t=UG(e);if(!t)return!1;let n=t.parse(e);return t===sl&&(n=PG(n)),n}const Zk=(e,t)=>{const n=Qk(e),r=Qk(t);if(!n||!r)return kh(e,t);const i={...n};return a=>(i.red=Ib(n.red,r.red,a),i.green=Ib(n.green,r.green,a),i.blue=Ib(n.blue,r.blue,a),i.alpha=xt(n.alpha,r.alpha,a),xs.transform(i))},zG=(e,t)=>n=>t(e(n)),mc=(...e)=>e.reduce(zG),Pb=new Set(["none","hidden"]);function jG(e,t){return Pb.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function FG(e,t){return n=>xt(e,t,n)}function Bb(e){return typeof e=="number"?FG:typeof e=="string"?ab(e)?kh:vn.test(e)?Zk:qG:Array.isArray(e)?Jk:typeof e=="object"?vn.test(e)?Zk:HG:kh}function Jk(e,t){const n=[...e],r=n.length,i=e.map((a,s)=>Bb(a)(a,t[s]));return a=>{for(let s=0;s<r;s++)n[s]=i[s](a);return n}}function HG(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Bb(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function VG(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const s=t.types[a],o=e.indexes[s][i[s]],l=(n=e.values[o])!==null&&n!==void 0?n:0;r[a]=l,i[s]++}return r}const qG=(e,t)=>{const n=Da.createTransformer(t),r=pc(e),i=pc(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Pb.has(e)&&!i.values.length||Pb.has(t)&&!r.values.length?jG(e,t):mc(Jk(VG(r,i),i.values),n):kh(e,t)};function e6(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?xt(e,t,n):Bb(e)(e,t)}const YG=5;function t6(e,t,n){const r=Math.max(t-YG,0);return vk(n-e(r),t-r)}const St={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Ub=.001;function GG({duration:e=St.duration,bounce:t=St.bounce,velocity:n=St.velocity,mass:r=St.mass}){let i,a,s=1-t;s=Pi(St.minDamping,St.maxDamping,s),e=Pi(St.minDuration,St.maxDuration,Ii(e)),s<1?(i=u=>{const c=u*s,f=c*e,d=c-n,h=zb(u,s),g=Math.exp(-f);return Ub-d/h*g},a=u=>{const f=u*s*e,d=f*n+n,h=Math.pow(s,2)*Math.pow(u,2)*e,g=Math.exp(-f),b=zb(Math.pow(u,2),s);return(-i(u)+Ub>0?-1:1)*((d-h)*g)/b}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-Ub+c*f},a=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const o=5/e,l=XG(i,a,o);if(e=Li(e),isNaN(l))return{stiffness:St.stiffness,damping:St.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const $G=12;function XG(e,t,n){let r=n;for(let i=1;i<$G;i++)r=r-e(r)/t(r);return r}function zb(e,t){return e*Math.sqrt(1-t*t)}const KG=["duration","bounce"],WG=["stiffness","damping","mass"];function n6(e,t){return t.some(n=>e[n]!==void 0)}function QG(e){let t={velocity:St.velocity,stiffness:St.stiffness,damping:St.damping,mass:St.mass,isResolvedFromDuration:!1,...e};if(!n6(e,WG)&&n6(e,KG))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Pi(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:St.mass,stiffness:i,damping:a}}else{const n=GG(e);t={...t,...n,mass:St.mass},t.isResolvedFromDuration=!0}return t}function r6(e=St.visualDuration,t=St.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],o={done:!1,value:a},{stiffness:l,damping:u,mass:c,duration:f,velocity:d,isResolvedFromDuration:h}=QG({...n,velocity:-Ii(n.velocity||0)}),g=d||0,b=u/(2*Math.sqrt(l*c)),T=s-a,m=Ii(Math.sqrt(l/c)),y=Math.abs(T)<5;r||(r=y?St.restSpeed.granular:St.restSpeed.default),i||(i=y?St.restDelta.granular:St.restDelta.default);let v;if(b<1){const _=zb(m,b);v=A=>{const N=Math.exp(-b*m*A);return s-N*((g+b*m*T)/_*Math.sin(_*A)+T*Math.cos(_*A))}}else if(b===1)v=_=>s-Math.exp(-m*_)*(T+(g+m*T)*_);else{const _=m*Math.sqrt(b*b-1);v=A=>{const N=Math.exp(-b*m*A),L=Math.min(_*A,300);return s-N*((g+b*m*T)*Math.sinh(L)+_*T*Math.cosh(L))/_}}const w={calculatedDuration:h&&f||null,next:_=>{const A=v(_);if(h)o.done=_>=f;else{let N=0;b<1&&(N=_===0?Li(g):t6(v,_,A));const L=Math.abs(N)<=r,F=Math.abs(s-A)<=i;o.done=L&&F}return o.value=o.done?s:A,o},toString:()=>{const _=Math.min(ok(w),hb),A=uk(N=>w.next(_*N).value,_,30);return _+"ms "+A}};return w}function i6({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:l,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},h=L=>o!==void 0&&L<o||l!==void 0&&L>l,g=L=>o===void 0?l:l===void 0||Math.abs(o-L)<Math.abs(l-L)?o:l;let b=n*t;const T=f+b,m=s===void 0?T:s(T);m!==T&&(b=m-f);const y=L=>-b*Math.exp(-L/r),v=L=>m+y(L),w=L=>{const F=y(L),R=v(L);d.done=Math.abs(F)<=u,d.value=d.done?m:R};let _,A;const N=L=>{h(d.value)&&(_=L,A=r6({keyframes:[d.value,g(d.value)],velocity:t6(v,L,d.value),damping:i,stiffness:a,restDelta:u,restSpeed:c}))};return N(0),{calculatedDuration:null,next:L=>{let F=!1;return!A&&_===void 0&&(F=!0,w(L),N(L)),_!==void 0&&L>=_?A.next(L-_):(!F&&w(L),d)}}}const ZG=dc(.42,0,1,1),JG=dc(0,0,.58,1),a6=dc(.42,0,.58,1),e$=e=>Array.isArray(e)&&typeof e[0]!="number",t$={linear:tr,easeIn:ZG,easeInOut:a6,easeOut:JG,circIn:_b,circInOut:Ok,circOut:kk,backIn:wb,backInOut:Ak,backOut:Sk,anticipate:Ck},s6=e=>{if(mb(e)){L3(e.length===4);const[t,n,r,i]=e;return dc(t,n,r,i)}else if(typeof e=="string")return t$[e];return e};function n$(e,t,n){const r=[],i=n||e6,a=e.length-1;for(let s=0;s<a;s++){let o=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||tr:t;o=mc(l,o)}r.push(o)}return r}function r$(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(L3(a===t.length),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=n$(t,r,i),l=o.length,u=c=>{if(s&&c<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(c<e[f+1]);f++);const d=tl(e[f],e[f+1],c);return o[f](d)};return n?c=>u(Pi(e[0],e[a-1],c)):u}function i$(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=tl(0,t,r);e.push(xt(n,1,i))}}function a$(e){const t=[0];return i$(t,e.length-1),t}function s$(e,t){return e.map(n=>n*t)}function o$(e,t){return e.map(()=>t||a6).splice(0,e.length-1)}function Oh({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=e$(r)?r.map(s6):s6(r),a={done:!1,value:t[0]},s=s$(n&&n.length===t.length?n:a$(t),e),o=r$(s,t,{ease:Array.isArray(i)?i:o$(t,i)});return{calculatedDuration:e,next:l=>(a.value=o(l),a.done=l>=e,a)}}const l$=e=>{const t=({timestamp:n})=>e(n);return{start:()=>dt.update(t,!0),stop:()=>Ra(t),now:()=>un.isProcessing?un.timestamp:ai.now()}},u$={decay:i6,inertia:i6,tween:Oh,keyframes:Oh,spring:r6},c$=e=>e/100;class jb extends Wk{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:a}=this.options,s=(i==null?void 0:i.KeyframeResolver)||Mb,o=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new s(a,o,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:s=0}=this.options,o=pb(n)?n:u$[n]||Oh;let l,u;o!==Oh&&typeof t[0]!="number"&&(l=mc(c$,e6(t[0],t[1])),t=[0,100]);const c=o({...this.options,keyframes:t});a==="mirror"&&(u=o({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=ok(c));const{calculatedDuration:f}=c,d=f+i,h=d*(r+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:d,totalDuration:h}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:L}=this.options;return{done:!0,value:L[L.length-1]}}const{finalKeyframe:i,generator:a,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:f}=r;if(this.startTime===null)return a.next(0);const{delay:d,repeat:h,repeatType:g,repeatDelay:b,onUpdate:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const m=this.currentTime-d*(this.speed>=0?1:-1),y=this.speed>=0?m<0:m>c;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let v=this.currentTime,w=a;if(h){const L=Math.min(this.currentTime,c)/f;let F=Math.floor(L),R=L%1;!R&&L>=1&&(R=1),R===1&&F--,F=Math.min(F,h+1),!!(F%2)&&(g==="reverse"?(R=1-R,b&&(R-=b/f)):g==="mirror"&&(w=s)),v=Pi(0,1,R)*f}const _=y?{done:!1,value:l[0]}:w.next(v);o&&(_.value=o(_.value));let{done:A}=_;!y&&u!==null&&(A=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const N=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return N&&i!==void 0&&(_.value=Ch(l,this.options,i)),T&&T(_.value),N&&this.finish(),_}get duration(){const{resolved:t}=this;return t?Ii(t.calculatedDuration):0}get time(){return Ii(this.currentTime)}set time(t){t=Li(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ii(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=l$,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const f$=new Set(["opacity","clipPath","filter","transform"]);function d$(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:s="loop",ease:o="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=fk(o,i);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"})}const h$=W1(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Rh=10,p$=2e4;function m$(e){return pb(e.type)||e.type==="spring"||!ck(e.ease)}function g$(e,t){const n=new jb({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let a=0;for(;!r.done&&a<p$;)r=n.sample(a),i.push(r.value),a+=Rh;return{times:void 0,keyframes:i,duration:a-Rh,ease:"linear"}}const o6={anticipate:Ck,backInOut:Ak,circInOut:Ok};function b$(e){return e in o6}class l6 extends Wk{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:a}=this.options;this.resolver=new Xk(a,(s,o)=>this.onKeyframesResolved(s,o),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:a,type:s,motionValue:o,name:l,startTime:u}=this.options;if(!o.owner||!o.owner.current)return!1;if(typeof a=="string"&&Sh()&&b$(a)&&(a=o6[a]),m$(this.options)){const{onComplete:f,onUpdate:d,motionValue:h,element:g,...b}=this.options,T=g$(t,b);t=T.keyframes,t.length===1&&(t[1]=t[0]),r=T.duration,i=T.times,a=T.ease,s="keyframes"}const c=d$(o.owner.current,l,t,{...this.options,duration:r,times:i,ease:a});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(lk(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:f}=this.options;o.set(Ch(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:i,type:s,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Ii(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Ii(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Li(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return tr;const{animation:r}=n;lk(r,t)}return tr}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:a,ease:s,times:o}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:f,element:d,...h}=this.options,g=new jb({...h,keyframes:r,duration:i,type:a,ease:s,times:o,isGenerator:!0}),b=Li(this.time);u.setWithVelocity(g.sample(b-Rh).value,g.sample(b).value,Rh)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:a,damping:s,type:o}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return h$()&&r&&f$.has(r)&&!l&&!u&&!i&&a!=="mirror"&&s!==0&&o!=="inertia"}}const y$={type:"spring",stiffness:500,damping:25,restSpeed:10},v$=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),x$={type:"keyframes",duration:.8},E$={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},T$=(e,{keyframes:t})=>t.length>2?x$:vs.has(e)?e.startsWith("scale")?v$(t[1]):y$:E$;function w$({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:s,repeatDelay:o,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Fb=(e,t,n,r={},i,a)=>s=>{const o=db(r,e)||{},l=o.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Li(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-u,onUpdate:d=>{t.set(d),o.onUpdate&&o.onUpdate(d)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:a?void 0:i};w$(o)||(c={...c,...T$(e,c)}),c.duration&&(c.duration=Li(c.duration)),c.repeatDelay&&(c.repeatDelay=Li(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(f=!0)),f&&!a&&t.get()!==void 0){const d=Ch(c.keyframes,o);if(d!==void 0)return dt.update(()=>{c.onUpdate(d),c.onComplete()}),new VY([])}return!a&&l6.supports(c)?new l6(c):new jb(c)};function _$({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function u6(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var a;let{transition:s=e.getDefaultTransition(),transitionEnd:o,...l}=t;r&&(s=r);const u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const f in l){const d=e.getValue(f,(a=e.latestValues[f])!==null&&a!==void 0?a:null),h=l[f];if(h===void 0||c&&_$(c,f))continue;const g={delay:n,...db(s||{},f)};let b=!1;if(window.MotionHandoffAnimation){const m=Ek(e);if(m){const y=window.MotionHandoffAnimation(m,f,dt);y!==null&&(g.startTime=y,b=!0)}}Tb(e,f),d.start(Fb(f,d,h,e.shouldReduceMotion&&yk.has(f)?{type:!1}:g,e,b));const T=d.animation;T&&u.push(T)}return o&&Promise.all(u).then(()=>{dt.update(()=>{o&&rG(e,o)})}),u}function Hb(e,t,n={}){var r;const i=_h(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);const s=i?()=>Promise.all(u6(e,i,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=a;return S$(e,t,c+u,f,d,n)}:()=>Promise.resolve(),{when:l}=a;if(l){const[u,c]=l==="beforeChildren"?[s,o]:[o,s];return u().then(()=>c())}else return Promise.all([s(),o(n.delay)])}function S$(e,t,n=0,r=0,i=1,a){const s=[],o=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>o-u*r;return Array.from(e.variantChildren).sort(A$).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(Hb(u,t,{...a,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function A$(e,t){return e.sortNodePosition(t)}function C$(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>Hb(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=Hb(e,t,n);else{const i=typeof t=="function"?_h(e,t,n.custom):t;r=Promise.all(u6(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const k$=J1.length;function c6(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?c6(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<k$;n++){const r=J1[n],i=e.props[r];(sc(i)||i===!1)&&(t[r]=i)}return t}const O$=[...Z1].reverse(),R$=Z1.length;function N$(e){return t=>Promise.all(t.map(({animation:n,options:r})=>C$(e,n,r)))}function D$(e){let t=N$(e),n=f6(),r=!0;const i=l=>(u,c)=>{var f;const d=_h(e,c,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(d){const{transition:h,transitionEnd:g,...b}=d;u={...u,...b,...g}}return u};function a(l){t=l(e)}function s(l){const{props:u}=e,c=c6(e.parent)||{},f=[],d=new Set;let h={},g=1/0;for(let T=0;T<R$;T++){const m=O$[T],y=n[m],v=u[m]!==void 0?u[m]:c[m],w=sc(v),_=m===l?y.isActive:null;_===!1&&(g=T);let A=v===c[m]&&v!==u[m]&&w;if(A&&r&&e.manuallyAnimateOnMount&&(A=!1),y.protectedKeys={...h},!y.isActive&&_===null||!v&&!y.prevProp||vh(v)||typeof v=="boolean")continue;const N=M$(y.prevProp,v);let L=N||m===l&&y.isActive&&!A&&w||T>g&&w,F=!1;const R=Array.isArray(v)?v:[v];let q=R.reduce(i(m),{});_===!1&&(q={});const{prevResolvedValues:j={}}=y,ne={...j,...q},K=V=>{L=!0,d.has(V)&&(F=!0,d.delete(V)),y.needsAnimating[V]=!0;const z=e.getValue(V);z&&(z.liveStyle=!1)};for(const V in ne){const z=q[V],te=j[V];if(h.hasOwnProperty(V))continue;let O=!1;ib(z)&&ib(te)?O=!sk(z,te):O=z!==te,O?z!=null?K(V):d.add(V):z!==void 0&&d.has(V)?K(V):y.protectedKeys[V]=!0}y.prevProp=v,y.prevResolvedValues=q,y.isActive&&(h={...h,...q}),r&&e.blockInitialAnimation&&(L=!1),L&&(!(A&&N)||F)&&f.push(...R.map(V=>({animation:V,options:{type:m}})))}if(d.size){const T={};d.forEach(m=>{const y=e.getBaseTarget(m),v=e.getValue(m);v&&(v.liveStyle=!0),T[m]=y??null}),f.push({animation:T})}let b=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(f):Promise.resolve()}function o(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(d=>{var h;return(h=d.animationState)===null||h===void 0?void 0:h.setActive(l,u)}),n[l].isActive=u;const f=s(l);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:s,setActive:o,setAnimateFunction:a,getState:()=>n,reset:()=>{n=f6(),r=!0}}}function M$(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!sk(t,e):!1}function Ts(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function f6(){return{animate:Ts(!0),whileInView:Ts(),whileHover:Ts(),whileTap:Ts(),whileDrag:Ts(),whileFocus:Ts(),exit:Ts()}}class Ma{constructor(t){this.isMounted=!1,this.node=t}update(){}}class L$ extends Ma{constructor(t){super(t),t.animationState||(t.animationState=D$(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();vh(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let I$=0;class P$ extends Ma{constructor(){super(...arguments),this.id=I$++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const B$={animation:{Feature:L$},exit:{Feature:P$}};function gc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function bc(e){return{point:{x:e.pageX,y:e.pageY}}}const U$=e=>t=>bb(t)&&e(t,bc(t));function yc(e,t,n,r){return gc(e,t,U$(n),r)}const d6=(e,t)=>Math.abs(e-t);function z$(e,t){const n=d6(e.x,t.x),r=d6(e.y,t.y);return Math.sqrt(n**2+r**2)}class h6{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=qb(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,h=z$(f.offset,{x:0,y:0})>=3;if(!d&&!h)return;const{point:g}=f,{timestamp:b}=un;this.history.push({...g,timestamp:b});const{onStart:T,onMove:m}=this.handlers;d||(T&&T(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Vb(d,this.transformPagePoint),dt.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:h,onSessionEnd:g,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=qb(f.type==="pointercancel"?this.lastMoveEventInfo:Vb(d,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,T),g&&g(f,T)},!bb(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=bc(t),o=Vb(s,this.transformPagePoint),{point:l}=o,{timestamp:u}=un;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,qb(o,this.history)),this.removeListeners=mc(yc(this.contextWindow,"pointermove",this.handlePointerMove),yc(this.contextWindow,"pointerup",this.handlePointerUp),yc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ra(this.updatePoint)}}function Vb(e,t){return t?{point:t(e.point)}:e}function p6(e,t){return{x:e.x-t.x,y:e.y-t.y}}function qb({point:e},t){return{point:e,delta:p6(e,m6(t)),offset:p6(e,j$(t)),velocity:F$(t,.1)}}function j$(e){return e[0]}function m6(e){return e[e.length-1]}function F$(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=m6(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Li(t)));)n--;if(!r)return{x:0,y:0};const a=Ii(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const s={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}const g6=1e-4,H$=1-g6,V$=1+g6,b6=.01,q$=0-b6,Y$=0+b6;function nr(e){return e.max-e.min}function G$(e,t,n){return Math.abs(e-t)<=n}function y6(e,t,n,r=.5){e.origin=r,e.originPoint=xt(t.min,t.max,e.origin),e.scale=nr(n)/nr(t),e.translate=xt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=H$&&e.scale<=V$||isNaN(e.scale))&&(e.scale=1),(e.translate>=q$&&e.translate<=Y$||isNaN(e.translate))&&(e.translate=0)}function vc(e,t,n,r){y6(e.x,t.x,n.x,r?r.originX:void 0),y6(e.y,t.y,n.y,r?r.originY:void 0)}function v6(e,t,n){e.min=n.min+t.min,e.max=e.min+nr(t)}function $$(e,t,n){v6(e.x,t.x,n.x),v6(e.y,t.y,n.y)}function x6(e,t,n){e.min=t.min-n.min,e.max=e.min+nr(t)}function xc(e,t,n){x6(e.x,t.x,n.x),x6(e.y,t.y,n.y)}function X$(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?xt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?xt(n,e,r.max):Math.min(e,n)),e}function E6(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function K$(e,{top:t,left:n,bottom:r,right:i}){return{x:E6(e.x,n,i),y:E6(e.y,t,r)}}function T6(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function W$(e,t){return{x:T6(e.x,t.x),y:T6(e.y,t.y)}}function Q$(e,t){let n=.5;const r=nr(e),i=nr(t);return i>r?n=tl(t.min,t.max-r,e.min):r>i&&(n=tl(e.min,e.max-i,t.min)),Pi(0,1,n)}function Z$(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Yb=.35;function J$(e=Yb){return e===!1?e=0:e===!0&&(e=Yb),{x:w6(e,"left","right"),y:w6(e,"top","bottom")}}function w6(e,t,n){return{min:_6(e,t),max:_6(e,n)}}function _6(e,t){return typeof e=="number"?e:e[t]||0}const S6=()=>({translate:0,scale:1,origin:0,originPoint:0}),ll=()=>({x:S6(),y:S6()}),A6=()=>({min:0,max:0}),Rt=()=>({x:A6(),y:A6()});function Er(e){return[e("x"),e("y")]}function C6({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function eX({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function tX(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Gb(e){return e===void 0||e===1}function $b({scale:e,scaleX:t,scaleY:n}){return!Gb(e)||!Gb(t)||!Gb(n)}function ws(e){return $b(e)||k6(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function k6(e){return O6(e.x)||O6(e.y)}function O6(e){return e&&e!=="0%"}function Nh(e,t,n){const r=e-n,i=t*r;return n+i}function R6(e,t,n,r,i){return i!==void 0&&(e=Nh(e,i,r)),Nh(e,n,r)+t}function Xb(e,t=0,n=1,r,i){e.min=R6(e.min,t,n,r,i),e.max=R6(e.max,t,n,r,i)}function N6(e,{x:t,y:n}){Xb(e.x,t.translate,t.scale,t.originPoint),Xb(e.y,n.translate,n.scale,n.originPoint)}const D6=.999999999999,M6=1.0000000000001;function nX(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,s;for(let o=0;o<i;o++){a=n[o],s=a.projectionDelta;const{visualElement:l}=a.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&cl(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,N6(e,s)),r&&ws(a.latestValues)&&cl(e,a.latestValues))}t.x<M6&&t.x>D6&&(t.x=1),t.y<M6&&t.y>D6&&(t.y=1)}function ul(e,t){e.min=e.min+t,e.max=e.max+t}function L6(e,t,n,r,i=.5){const a=xt(e.min,e.max,i);Xb(e,t,n,a,r)}function cl(e,t){L6(e.x,t.x,t.scaleX,t.scale,t.originX),L6(e.y,t.y,t.scaleY,t.scale,t.originY)}function I6(e,t){return C6(tX(e.getBoundingClientRect(),t))}function rX(e,t,n){const r=I6(e,n),{scroll:i}=t;return i&&(ul(r.x,i.offset.x),ul(r.y,i.offset.y)),r}const P6=({current:e})=>e?e.ownerDocument.defaultView:null,iX=new WeakMap;class aX{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Rt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(bc(c).point)},a=(c,f)=>{const{drag:d,dragPropagation:h,onDragStart:g}=this.getProps();if(d&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ZY(d),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Er(T=>{let m=this.getAxisMotionValue(T).get()||0;if(ii.test(m)){const{projection:y}=this.visualElement;if(y&&y.layout){const v=y.layout.layoutBox[T];v&&(m=nr(v)*(parseFloat(m)/100))}}this.originPoint[T]=m}),g&&dt.postRender(()=>g(c,f)),Tb(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},s=(c,f)=>{const{dragPropagation:d,dragDirectionLock:h,onDirectionLock:g,onDrag:b}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:T}=f;if(h&&this.currentDirection===null){this.currentDirection=sX(T),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,T),this.updateAxis("y",f.point,T),this.visualElement.render(),b&&b(c,f)},o=(c,f)=>this.stop(c,f),l=()=>Er(c=>{var f;return this.getAnimationState(c)==="paused"&&((f=this.getAxisMotionValue(c).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new h6(t,{onSessionStart:i,onStart:a,onMove:s,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:P6(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&dt.postRender(()=>a(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Dh(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=X$(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,a=this.constraints;n&&rl(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=K$(i.layoutBox,n):this.constraints=!1,this.elastic=J$(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Er(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=Z$(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!rl(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=rX(r,i.root,this.visualElement.getTransformPagePoint());let s=W$(i.layout.layoutBox,a);if(n){const o=n(eX(s));this.hasMutatedConstraints=!!o,o&&(s=C6(o))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{},u=Er(c=>{if(!Dh(c,n,this.currentDirection))return;let f=l&&l[c]||{};s&&(f={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,g={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...a,...f};return this.startAxisValueAnimation(c,g)});return Promise.all(u).then(o)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Tb(this.visualElement,t),r.start(Fb(t,r,0,n,this.visualElement,!1))}stopAnimation(){Er(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Er(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Er(n=>{const{drag:r}=this.getProps();if(!Dh(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:o}=i.layout.layoutBox[n];a.set(t[n]-xt(s,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!rl(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Er(s=>{const o=this.getAxisMotionValue(s);if(o&&this.constraints!==!1){const l=o.get();i[s]=Q$({min:l,max:l},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Er(s=>{if(!Dh(s,t,null))return;const o=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];o.set(xt(l,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;iX.set(this.visualElement,this);const t=this.visualElement.current,n=yc(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();rl(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),dt.read(r);const s=gc(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Er(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=l[c].translate,f.set(f.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),a(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:s=Yb,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:s,dragMomentum:o}}}function Dh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function sX(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class oX extends Ma{constructor(t){super(t),this.removeGroupControls=tr,this.removeListeners=tr,this.controls=new aX(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tr}unmount(){this.removeGroupControls(),this.removeListeners()}}const B6=e=>(t,n)=>{e&&dt.postRender(()=>e(t,n))};class lX extends Ma{constructor(){super(...arguments),this.removePointerDownListener=tr}onPointerDown(t){this.session=new h6(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:P6(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:B6(t),onStart:B6(n),onMove:r,onEnd:(a,s)=>{delete this.session,i&&dt.postRender(()=>i(a,s))}}}mount(){this.removePointerDownListener=yc(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Mh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function U6(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ec={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(me.test(e))e=parseFloat(e);else return e;const n=U6(e,t.target.x),r=U6(e,t.target.y);return`${n}% ${r}%`}},uX={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Da.parse(e);if(i.length>5)return r;const a=Da.createTransformer(e),s=typeof i[0]!="number"?1:0,o=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=o,i[1+s]/=l;const u=xt(o,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),a(i)}};class cX extends E.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;NY(fX),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Mh.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,s=r.projection;return s&&(s.isPresent=a,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||dt.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tb.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function z6(e){const[t,n]=N3(),r=E.useContext(G1);return x.jsx(cX,{...e,layoutGroup:r,switchLayoutGroup:E.useContext(H3),isPresent:t,safeToRemove:n})}const fX={borderRadius:{...Ec,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ec,borderTopRightRadius:Ec,borderBottomLeftRadius:Ec,borderBottomRightRadius:Ec,boxShadow:uX};function dX(e,t,n){const r=yn(e)?e:fc(e);return r.start(Fb("",r,t,n)),r.animation}function hX(e){return e instanceof SVGElement&&e.tagName!=="svg"}const pX=(e,t)=>e.depth-t.depth;class mX{constructor(){this.children=[],this.isDirty=!1}add(t){vb(this.children,t),this.isDirty=!0}remove(t){xb(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(pX),this.isDirty=!1,this.children.forEach(t)}}function gX(e,t){const n=ai.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(Ra(r),e(a-t))};return dt.read(r,!0),()=>Ra(r)}const j6=["TopLeft","TopRight","BottomLeft","BottomRight"],bX=j6.length,F6=e=>typeof e=="string"?parseFloat(e):e,H6=e=>typeof e=="number"||me.test(e);function yX(e,t,n,r,i,a){i?(e.opacity=xt(0,n.opacity!==void 0?n.opacity:1,vX(r)),e.opacityExit=xt(t.opacity!==void 0?t.opacity:1,0,xX(r))):a&&(e.opacity=xt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<bX;s++){const o=`border${j6[s]}Radius`;let l=V6(t,o),u=V6(n,o);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||H6(l)===H6(u)?(e[o]=Math.max(xt(F6(l),F6(u),r),0),(ii.test(u)||ii.test(l))&&(e[o]+="%")):e[o]=u}(t.rotate||n.rotate)&&(e.rotate=xt(t.rotate||0,n.rotate||0,r))}function V6(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const vX=q6(0,.5,kk),xX=q6(.5,.95,tr);function q6(e,t,n){return r=>r<e?0:r>t?1:n(tl(e,t,r))}function Y6(e,t){e.min=t.min,e.max=t.max}function Tr(e,t){Y6(e.x,t.x),Y6(e.y,t.y)}function G6(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function $6(e,t,n,r,i){return e-=t,e=Nh(e,1/n,r),i!==void 0&&(e=Nh(e,1/i,r)),e}function EX(e,t=0,n=1,r=.5,i,a=e,s=e){if(ii.test(t)&&(t=parseFloat(t),t=xt(s.min,s.max,t/100)-s.min),typeof t!="number")return;let o=xt(a.min,a.max,r);e===a&&(o-=t),e.min=$6(e.min,t,n,o,i),e.max=$6(e.max,t,n,o,i)}function X6(e,t,[n,r,i],a,s){EX(e,t[n],t[r],t[i],t.scale,a,s)}const TX=["x","scaleX","originX"],wX=["y","scaleY","originY"];function K6(e,t,n,r){X6(e.x,t,TX,n?n.x:void 0,r?r.x:void 0),X6(e.y,t,wX,n?n.y:void 0,r?r.y:void 0)}function W6(e){return e.translate===0&&e.scale===1}function Q6(e){return W6(e.x)&&W6(e.y)}function Z6(e,t){return e.min===t.min&&e.max===t.max}function _X(e,t){return Z6(e.x,t.x)&&Z6(e.y,t.y)}function J6(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function eO(e,t){return J6(e.x,t.x)&&J6(e.y,t.y)}function tO(e){return nr(e.x)/nr(e.y)}function nO(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class SX{constructor(){this.members=[]}add(t){vb(this.members,t),t.scheduleRender()}remove(t){if(xb(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function AX(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((i||a||s)&&(r=`translate3d(${i}px, ${a}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:f,rotateY:d,skewX:h,skewY:g}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),d&&(r+=`rotateY(${d}deg) `),h&&(r+=`skewX(${h}deg) `),g&&(r+=`skewY(${g}deg) `)}const o=e.x.scale*t.x,l=e.y.scale*t.y;return(o!==1||l!==1)&&(r+=`scale(${o}, ${l})`),r||"none"}const _s={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Tc=typeof window<"u"&&window.MotionDebug!==void 0,Kb=["","X","Y","Z"],CX={visibility:"hidden"},rO=1e3;let kX=0;function Wb(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function iO(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Ek(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",dt,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&iO(r)}function aO({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},o=t==null?void 0:t()){this.id=kX++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Tc&&(_s.totalNodes=_s.resolvedTargetDeltas=_s.recalculatedProjection=0),this.nodes.forEach(NX),this.nodes.forEach(PX),this.nodes.forEach(BX),this.nodes.forEach(DX),Tc&&window.MotionDebug.record(_s)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new mX)}addEventListener(s,o){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Eb),this.eventHandlers.get(s).add(o)}notifyListeners(s,...o){const l=this.eventHandlers.get(s);l&&l.notify(...o)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,o=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=hX(s),this.instance=s;const{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),o&&(u||l)&&(this.isLayoutDirty=!0),e){let f;const d=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=gX(d,250),Mh.hasAnimatedSinceResize&&(Mh.hasAnimatedSinceResize=!1,this.nodes.forEach(oO))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:h,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||c.getDefaultTransition()||HX,{onLayoutAnimationStart:T,onLayoutAnimationComplete:m}=c.getProps(),y=!this.targetLayout||!eO(this.targetLayout,g)||h,v=!d&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||d&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,v);const w={...db(b,"layout"),onPlay:T,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else d||oO(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ra(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(UX),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&iO(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:o,layout:l}=this.options;if(o===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(sO);return}this.isUpdating||this.nodes.forEach(LX),this.isUpdating=!1,this.nodes.forEach(IX),this.nodes.forEach(OX),this.nodes.forEach(RX),this.clearAllSnapshots();const o=ai.now();un.delta=Pi(0,1e3/60,o-un.timestamp),un.timestamp=o,un.isProcessing=!0,Q1.update.process(un),Q1.preRender.process(un),Q1.render.process(un),un.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tb.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(MX),this.sharedNodes.forEach(zX)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,dt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){dt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Rt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(o=!1),o){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!Q6(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&(o||ws(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const o=this.measurePageBox();let l=this.removeElementScroll(o);return s&&(l=this.removeTransform(l)),VX(l),{animationId:this.root.animationId,measuredBox:o,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:o}=this.options;if(!o)return Rt();const l=o.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(qX))){const{scroll:c}=this.root;c&&(ul(l.x,c.offset.x),ul(l.y,c.offset.y))}return l}removeElementScroll(s){var o;const l=Rt();if(Tr(l,s),!((o=this.scroll)===null||o===void 0)&&o.wasRoot)return l;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:f,options:d}=c;c!==this.root&&f&&d.layoutScroll&&(f.wasRoot&&Tr(l,s),ul(l.x,f.offset.x),ul(l.y,f.offset.y))}return l}applyTransform(s,o=!1){const l=Rt();Tr(l,s);for(let u=0;u<this.path.length;u++){const c=this.path[u];!o&&c.options.layoutScroll&&c.scroll&&c!==c.root&&cl(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),ws(c.latestValues)&&cl(l,c.latestValues)}return ws(this.latestValues)&&cl(l,this.latestValues),l}removeTransform(s){const o=Rt();Tr(o,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!ws(u.latestValues))continue;$b(u.latestValues)&&u.updateSnapshot();const c=Rt(),f=u.measurePageBox();Tr(c,f),K6(o,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return ws(this.latestValues)&&K6(o,this.latestValues),o}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==un.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var o;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:d}=this.options;if(!(!this.layout||!(f||d))){if(this.resolvedRelativeTargetAt=un.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Rt(),this.relativeTargetOrigin=Rt(),xc(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),Tr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Rt(),this.targetWithTransforms=Rt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),$$(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Tr(this.target,this.layout.layoutBox),N6(this.target,this.targetDelta)):Tr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Rt(),this.relativeTargetOrigin=Rt(),xc(this.relativeTargetOrigin,this.target,h.target),Tr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Tc&&_s.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||$b(this.parent.latestValues)||k6(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const o=this.getLead(),l=!!this.resumingFrom||this!==o;let u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===un.timestamp&&(u=!1),u)return;const{layout:c,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||f))return;Tr(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;nX(this.layoutCorrected,this.treeScale,this.path,l),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=Rt());const{target:g}=o;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(G6(this.prevProjectionDelta.x,this.projectionDelta.x),G6(this.prevProjectionDelta.y,this.projectionDelta.y)),vc(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==h||!nO(this.projectionDelta.x,this.prevProjectionDelta.x)||!nO(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),Tc&&_s.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var o;if((o=this.options.visualElement)===null||o===void 0||o.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ll(),this.projectionDelta=ll(),this.projectionDeltaWithTransform=ll()}setAnimationOrigin(s,o=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},f=ll();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const d=Rt(),h=l?l.source:void 0,g=this.layout?this.layout.source:void 0,b=h!==g,T=this.getStack(),m=!T||T.members.length<=1,y=!!(b&&!m&&this.options.crossfade===!0&&!this.path.some(FX));this.animationProgress=0;let v;this.mixTargetDelta=w=>{const _=w/1e3;lO(f.x,s.x,_),lO(f.y,s.y,_),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(xc(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),jX(this.relativeTarget,this.relativeTargetOrigin,d,_),v&&_X(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=Rt()),Tr(v,this.relativeTarget)),b&&(this.animationValues=c,yX(c,u,this.latestValues,_,y,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ra(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=dt.update(()=>{Mh.hasAnimatedSinceResize=!0,this.currentAnimation=dX(0,rO,{...s,onUpdate:o=>{this.mixTargetDelta(o),s.onUpdate&&s.onUpdate(o)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(rO),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:l,layout:u,latestValues:c}=s;if(!(!o||!l||!u)){if(this!==s&&this.layout&&u&&hO(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Rt();const f=nr(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const d=nr(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}Tr(o,l),cl(o,c),vc(this.projectionDeltaWithTransform,this.layoutCorrected,o,c)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new SX),this.sharedNodes.get(s).add(o);const u=o.options.initialPromotionConfig;o.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(o):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:o}=this.options;return o?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:o}=this.options;return o?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:o,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let o=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(o=!0),!o)return;const u={};l.z&&Wb("z",s,u,this.animationValues);for(let c=0;c<Kb.length;c++)Wb(`rotate${Kb[c]}`,s,u,this.animationValues),Wb(`skew${Kb[c]}`,s,u,this.animationValues);s.render();for(const c in u)s.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);s.scheduleRender()}getProjectionStyles(s){var o,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return CX;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Eh(s==null?void 0:s.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Eh(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!ws(this.latestValues)&&(b.transform=c?c({},""):"none",this.hasProjected=!1),b}const d=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=AX(this.projectionDeltaWithTransform,this.treeScale,d),c&&(u.transform=c(d,u.transform));const{x:h,y:g}=this.projectionDelta;u.transformOrigin=`${h.origin*100}% ${g.origin*100}% 0`,f.animationValues?u.opacity=f===this?(l=(o=d.opacity)!==null&&o!==void 0?o:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:u.opacity=f===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const b in wh){if(d[b]===void 0)continue;const{correct:T,applyTo:m}=wh[b],y=u.transform==="none"?d[b]:T(d[b],f);if(m){const v=m.length;for(let w=0;w<v;w++)u[m[w]]=y}else u[b]=y}return this.options.layoutId&&(u.pointerEvents=f===this?Eh(s==null?void 0:s.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var o;return(o=s.currentAnimation)===null||o===void 0?void 0:o.stop()}),this.root.nodes.forEach(sO),this.root.sharedNodes.clear()}}}function OX(e){e.updateLayout()}function RX(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:a}=e.options,s=n.source!==e.layout.source;a==="size"?Er(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],h=nr(d);d.min=r[f].min,d.max=d.min+h}):hO(a,n.layoutBox,r)&&Er(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],h=nr(r[f]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const o=ll();vc(o,r,n.layoutBox);const l=ll();s?vc(l,e.applyTransform(i,!0),n.measuredBox):vc(l,r,n.layoutBox);const u=!Q6(o);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const g=Rt();xc(g,n.layoutBox,d.layoutBox);const b=Rt();xc(b,r,h.layoutBox),eO(g,b)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=g,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:o,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function NX(e){Tc&&_s.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function DX(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function MX(e){e.clearSnapshot()}function sO(e){e.clearMeasurements()}function LX(e){e.isLayoutDirty=!1}function IX(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function oO(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function PX(e){e.resolveTargetDelta()}function BX(e){e.calcProjection()}function UX(e){e.resetSkewAndRotation()}function zX(e){e.removeLeadSnapshot()}function lO(e,t,n){e.translate=xt(t.translate,0,n),e.scale=xt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function uO(e,t,n,r){e.min=xt(t.min,n.min,r),e.max=xt(t.max,n.max,r)}function jX(e,t,n,r){uO(e.x,t.x,n.x,r),uO(e.y,t.y,n.y,r)}function FX(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const HX={duration:.45,ease:[.4,0,.1,1]},cO=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),fO=cO("applewebkit/")&&!cO("chrome/")?Math.round:tr;function dO(e){e.min=fO(e.min),e.max=fO(e.max)}function VX(e){dO(e.x),dO(e.y)}function hO(e,t,n){return e==="position"||e==="preserve-aspect"&&!G$(tO(t),tO(n),.2)}function qX(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const YX=aO({attachResizeListener:(e,t)=>gc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Qb={current:void 0},pO=aO({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Qb.current){const e=new YX({});e.mount(window),e.setOptions({layoutScroll:!0}),Qb.current=e}return Qb.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),GX={pan:{Feature:lX},drag:{Feature:oX,ProjectionNode:pO,MeasureLayout:z6}};function mO(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&&dt.postRender(()=>a(t,bc(t)))}class $X extends Ma{mount(){const{current:t}=this.node;t&&(this.unmount=$Y(t,n=>(mO(this.node,n,"Start"),r=>mO(this.node,r,"End"))))}unmount(){}}class XX extends Ma{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=mc(gc(this.node.current,"focus",()=>this.onFocus()),gc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function gO(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&dt.postRender(()=>a(t,bc(t)))}class KX extends Ma{mount(){const{current:t}=this.node;t&&(this.unmount=QY(t,n=>(gO(this.node,n,"Start"),(r,{success:i})=>gO(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Zb=new WeakMap,Jb=new WeakMap,WX=e=>{const t=Zb.get(e.target);t&&t(e)},QX=e=>{e.forEach(WX)};function ZX({root:e,...t}){const n=e||document;Jb.has(n)||Jb.set(n,{});const r=Jb.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(QX,{root:e,...t})),r[i]}function JX(e,t,n){const r=ZX(t);return Zb.set(e,n),r.observe(e),()=>{Zb.delete(e),r.unobserve(e)}}const eK={some:0,all:1};class tK extends Ma{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:eK[i]},o=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,a&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=u?c:f;d&&d(l)};return JX(this.node.current,s,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(nK(t,n))&&this.startObserver()}unmount(){}}function nK({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const rK={inView:{Feature:tK},tap:{Feature:KX},focus:{Feature:XX},hover:{Feature:$X}},iK={layout:{ProjectionNode:pO,MeasureLayout:z6}},ey={current:null},bO={current:!1};function aK(){if(bO.current=!0,!!K1)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ey.current=e.matches;e.addListener(t),t()}else ey.current=!1}const sK=[...Gk,vn,Da],oK=e=>sK.find(Yk(e)),yO=new WeakMap;function lK(e,t,n){for(const r in t){const i=t[r],a=n[r];if(yn(i))e.addValue(r,i);else if(yn(a))e.addValue(r,fc(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,fc(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const vO=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class uK{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Mb,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=ai.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,dt.render(this.render,!1,!0))};const{latestValues:l,renderState:u,onUpdate:c}=s;this.onUpdate=c,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.blockInitialAnimation=!!a,this.isControllingVariants=xh(n),this.isVariantNode=z3(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in d){const g=d[h];l[h]!==void 0&&yn(g)&&g.set(l[h],!1)}}mount(t){this.current=t,yO.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),bO.current||aK(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ey.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){yO.delete(this.current),this.projection&&this.projection.unmount(),Ra(this.notifyUpdate),Ra(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=vs.has(t),i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&dt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in nl){const n=nl[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Rt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<vO.length;r++){const i=vO[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,s=t[a];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=lK(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=fc(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Vk(i)||Rk(i))?i=parseFloat(i):!oK(i)&&Da.test(n)&&(i=Bk(t,n)),this.setBaseTarget(t,yn(i)?i.get():i)),yn(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const s=rb(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(i=s[t])}if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!yn(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Eb),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class xO extends uK{constructor(){super(...arguments),this.KeyframeResolver=Xk}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;yn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function cK(e){return window.getComputedStyle(e)}class fK extends xO{constructor(){super(...arguments),this.type="html",this.renderInstance=J3}readValueFromInstance(t,n){if(vs.has(n)){const r=Rb(n);return r&&r.default||0}else{const r=cK(t),i=($3(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return I6(t,n)}build(t,n,r){ob(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return fb(t,n,r)}}class dK extends xO{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Rt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(vs.has(n)){const r=Rb(n);return r&&r.default||0}return n=ek.has(n)?n:eb(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return rk(t,n,r)}build(t,n,r){lb(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){tk(t,n,r,i)}mount(t){this.isSVGTag=cb(t.tagName),super.mount(t)}}const hK=(e,t)=>nb(e)?new dK(t):new fK(t,{allowProjection:e!==E.Fragment}),pK=jY({...B$,...rK,...GX,...iK},hK),wc=nY(pK);function mK(){return i_.useSyncExternalStore(gK,()=>!0,()=>!1)}function gK(){return()=>{}}var ty="Avatar",[bK,iee]=_u(ty),[yK,EO]=bK(ty),TO=E.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[i,a]=E.useState("idle");return x.jsx(yK,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:a,children:x.jsx(Zt.span,{...r,ref:t})})});TO.displayName=ty;var wO="AvatarImage",_O=E.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...a}=e,s=EO(wO,n),o=vK(r,a),l=os(u=>{i(u),s.onImageLoadingStatusChange(u)});return $r(()=>{o!=="idle"&&l(o)},[o,l]),o==="loaded"?x.jsx(Zt.img,{...a,ref:t,src:r}):null});_O.displayName=wO;var SO="AvatarFallback",AO=E.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...i}=e,a=EO(SO,n),[s,o]=E.useState(r===void 0);return E.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>o(!0),r);return()=>window.clearTimeout(l)}},[r]),s&&a.imageLoadingStatus!=="loaded"?x.jsx(Zt.span,{...i,ref:t}):null});AO.displayName=SO;function CO(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function vK(e,{referrerPolicy:t,crossOrigin:n}){const r=mK(),i=E.useRef(null),a=r?(i.current||(i.current=new window.Image),i.current):null,[s,o]=E.useState(()=>CO(a,e));return $r(()=>{o(CO(a,e))},[a,e]),$r(()=>{const l=f=>()=>{o(f)};if(!a)return;const u=l("loaded"),c=l("error");return a.addEventListener("load",u),a.addEventListener("error",c),t&&(a.referrerPolicy=t),typeof n=="string"&&(a.crossOrigin=n),()=>{a.removeEventListener("load",u),a.removeEventListener("error",c)}},[a,n,t]),s}var kO=TO,OO=_O,RO=AO;const ny=E.forwardRef(({className:e,...t},n)=>x.jsx(kO,{ref:n,className:de("relative flex size-6 aspect-square shrink-0 overflow-hidden rounded-full bg-secondary",e),...t}));ny.displayName=kO.displayName;const ry=E.forwardRef(({className:e,...t},n)=>x.jsx(OO,{ref:n,className:de("aspect-square h-full w-full",e),...t}));ry.displayName=OO.displayName;const iy=E.forwardRef(({className:e,...t},n)=>x.jsx(RO,{ref:n,className:de("flex size-full text-xs items-center justify-center rounded-lg",e),...t}));iy.displayName=RO.displayName;function ay({agent:e,...t}){var n,r;return x.jsxs(ny,{...t,children:[x.jsx(ry,{src:(e==null?void 0:e.avatar)??"",alt:"Agent Icon"}),(e==null?void 0:e.name)&&x.jsx(iy,{children:(r=(n=e==null?void 0:e.name)==null?void 0:n.slice(0,1))==null?void 0:r.toUpperCase()})]})}const xK=10,EK={right:(e,t,n)=>({initial:{opacity:0,x:-e,...t.initial},animate:{opacity:1,x:0,...t.animate,transition:{delay:n}},exit:{opacity:0,x:e,...t.exit}}),left:(e,t,n)=>({initial:{opacity:0,x:e,...t.initial},animate:{opacity:1,x:0,...t.animate,transition:{delay:n}},exit:{opacity:0,x:-e,...t.exit}}),up:(e,t,n)=>({initial:{opacity:0,y:e,...t.initial},animate:{opacity:1,y:0,...t.animate,transition:{delay:n}},exit:{opacity:0,y:-e,...t.exit}}),down:(e,t,n)=>({initial:{opacity:0,y:-e,...t.initial},animate:{opacity:1,y:0,...t.animate,transition:{delay:n}},exit:{opacity:0,y:e,...t.exit}})},it=E.forwardRef(({fadeIn:e="down",distance:t=xK,children:n,snapExit:r=!1,overrides:i={},delay:a=0,...s},o)=>{const l=e?EK[e](t,i,a):{};return r&&l.exit&&typeof l.exit=="object"&&!Array.isArray(l.exit)&&(l.exit.transition={duration:0}),x.jsx(wc.div,{ref:o,...s,...l,children:n})});it.displayName="MotionDiv";function TK({agent:e}){return x.jsx(Pn,{children:x.jsxs(it,{...Ve("chat/bot_loading/root"),className:"flex flex-row items-end w-full gap-2 animate-pulse",children:[x.jsx(ay,{agent:e}),x.jsxs("div",{...Ve("chat/bot_loading/bouncing_dots_container"),className:de("flex items-center [&_span]:bg-secondary-foreground [&_span]:size-1 gap-1 p-2 rounded-xl bg-secondary"),children:[x.jsx(wc.span,{className:"rounded-full animate-bounce [animation-delay:-0.3s]"}),x.jsx(wc.span,{className:"rounded-full animate-bounce [animation-delay:-0.15s]"}),x.jsx(wc.span,{className:"rounded-full animate-bounce"})]})]})})}const NO='@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..700;1,14..32,100..700&display=swap";@import"https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{-ms-overflow-style:none;scrollbar-width:none}*::-webkit-scrollbar{display:none}*{border-color:hsl(var(--opencx-border))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.end-4{inset-inline-end:1rem}.end-6{inset-inline-end:1.5rem}.left-2{left:.5rem}.left-\\[50\\%\\]{left:50%}.start-0{inset-inline-start:0px}.top-0{top:0}.top-4{top:1rem}.top-6{top:1.5rem}.top-\\[50\\%\\]{top:50%}.isolate{isolation:isolate}.z-10{z-index:10}.z-50{z-index:50}.m-2{margin:.5rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ms-auto{margin-inline-start:auto}.mt-0\\.5{margin-top:.125rem}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-16{width:4rem;height:4rem}.size-3{width:.75rem;height:.75rem}.size-4{width:1rem;height:1rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.size-auto{width:auto;height:auto}.size-fit{width:fit-content;height:fit-content}.size-full{width:100%;height:100%}.h-10{height:2.5rem}.h-2{height:.5rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-full{height:100%}.h-px{height:1px}.max-h-16{max-height:4rem}.max-h-full{max-height:100%}.min-h-12{min-height:3rem}.w-0{width:0px}.w-1\\/2{width:50%}.w-10{width:2.5rem}.w-2{width:.5rem}.w-2\\/5{width:40%}.w-3\\.5{width:.875rem}.w-3\\/5{width:60%}.w-4{width:1rem}.w-5\\/6{width:83.333333%}.w-60{width:15rem}.w-9{width:2.25rem}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.min-w-\\[8rem\\]{min-width:8rem}.max-w-\\[61\\.8\\%\\]{max-width:61.8%}.max-w-full{max-width:100%}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[var\\(--wobble-x\\)\\]{--tw-translate-x: var(--wobble-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[var\\(--wobble-y\\)\\]{--tw-translate-y: var(--wobble-y);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-\\[1px\\]{gap:1px}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.scroll-smooth{scroll-behavior:smooth}.text-ellipsis{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\\[20px\\]{border-radius:20px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-md{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-tr-md{border-top-right-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-none{border-style:none}.border-transparent{border-color:transparent}.bg-\\[white\\]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-background{background-color:hsl(var(--opencx-background))}.bg-black\\/50{background-color:#00000080}.bg-black\\/60{background-color:#0009}.bg-destructive{background-color:hsl(var(--opencx-destructive))}.bg-muted{background-color:hsl(var(--opencx-muted))}.bg-primary{background-color:hsl(var(--opencx-primary))}.bg-secondary{background-color:hsl(var(--opencx-secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-\\[radial-gradient\\(ellipse_at_top_left\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\,radial-gradient\\(ellipse_at_top_right\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\]{background-image:radial-gradient(ellipse at top left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse at top right,hsl(var(--opencx-primary)),transparent)}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-0{padding-bottom:0}.pe-2{padding-inline-end:.5rem}.pe-4{padding-inline-end:1rem}.ps-2{padding-inline-start:.5rem}.ps-4{padding-inline-start:1rem}.ps-8{padding-inline-start:2rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.text-center{text-align:center}.text-start{text-align:start}.align-middle{vertical-align:middle}.text-\\[1\\.75rem\\]{font-size:1.75rem}.text-\\[10px\\]{font-size:10px}.text-\\[16px\\]{font-size:16px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-none{line-height:1}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--opencx-destructive))}.text-destructive-foreground{color:hsl(var(--opencx-destructive-foreground))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--opencx-foreground))}.text-muted-foreground{color:hsl(var(--opencx-muted-foreground))}.text-muted-foreground\\/70{color:hsl(var(--opencx-muted-foreground) / .7)}.text-muted-foreground\\/75{color:hsl(var(--opencx-muted-foreground) / .75)}.text-primary{color:hsl(var(--opencx-primary))}.text-primary-foreground{color:hsl(var(--opencx-primary-foreground))}.text-secondary-foreground{color:hsl(var(--opencx-secondary-foreground))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-95{opacity:.95}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-8{outline-width:8px}.outline-background{outline-color:hsl(var(--opencx-background))}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--opencx-background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.duration-200{animation-duration:.2s}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.\\[animation-delay\\:-0\\.15s\\]{animation-delay:-.15s}.\\[animation-delay\\:-0\\.3s\\]{animation-delay:-.3s}.\\[field-sizing\\:content\\;\\],.\\[field-sizing\\:content\\]{field-sizing:content}.\\[word-break\\:break-word\\]{word-break:break-word}.required:after{content:" *";color:red}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.file\\:text-primary-foreground::file-selector-button{color:hsl(var(--opencx-primary-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--opencx-muted-foreground))}.placeholder\\:text-muted-foreground\\/75::placeholder{color:hsl(var(--opencx-muted-foreground) / .75)}.focus-within\\:border-primary:focus-within{border-color:hsl(var(--opencx-primary))}.hover\\:scale-\\[var\\(--scale\\)\\]:hover{--tw-scale-x: var(--scale);--tw-scale-y: var(--scale);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:border-primary:hover{border-color:hsl(var(--opencx-primary))}.hover\\:bg-secondary:hover{background-color:hsl(var(--opencx-secondary))}.hover\\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.hover\\:text-primary:hover{color:hsl(var(--opencx-primary))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.focus\\:bg-accent:focus{background-color:hsl(var(--opencx-accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--opencx-accent-foreground))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-ring:focus{--tw-ring-color: hsl(var(--opencx-ring))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--opencx-ring))}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--opencx-background))}.active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\\:hover\\:scale-\\[calc\\(var\\(--scale\\)-0\\.02\\)\\]:hover:active{--tw-scale-x: calc(var(--scale) - .02);--tw-scale-y: calc(var(--scale) - .02);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:active\\:scale-95:active:hover{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}.group:hover .group-hover\\:active\\:scale-90:active,.group:active .group-active\\:scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--opencx-primary))}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--opencx-accent))}.data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--opencx-input))}.data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open]{color:hsl(var(--opencx-muted-foreground))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\\[state\\=closed\\]\\:slide-out-to-left-1\\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\\[state\\=closed\\]\\:slide-out-to-top-\\[48\\%\\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\\[state\\=open\\]\\:slide-in-from-left-1\\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\\[state\\=open\\]\\:slide-in-from-top-\\[48\\%\\][data-state=open]{--tw-enter-translate-y: -48%}.prose-a\\:underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-line:underline}.prose-a\\:decoration-primary :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-color:hsl(var(--opencx-primary))}.rtl\\:-scale-100:where([dir=rtl],[dir=rtl] *){--tw-scale-x: -1;--tw-scale-y: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\\[\\&_span\\]\\:size-1 span{width:.25rem;height:.25rem}.\\[\\&_span\\]\\:bg-secondary-foreground span{background-color:hsl(var(--opencx-secondary-foreground))}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:1rem;height:1rem}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\]\\:text-muted-foreground\\/70 svg{color:hsl(var(--opencx-muted-foreground) / .7)}.\\[\\&_svg\\]\\:hover\\:text-primary:hover svg{color:hsl(var(--opencx-primary))}';var wK=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),_K="VisuallyHidden",DO=E.forwardRef((e,t)=>x.jsx(Zt.span,{...e,ref:t,style:{...wK,...e.style}}));DO.displayName=_K;var SK=DO,[Lh,uee]=_u("Tooltip",[bd]),Ih=bd(),MO="TooltipProvider",AK=700,sy="tooltip.open",[CK,oy]=Lh(MO),LO=e=>{const{__scopeTooltip:t,delayDuration:n=AK,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,s=E.useRef(!0),o=E.useRef(!1),l=E.useRef(0);return E.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),x.jsx(CK,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:E.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:E.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:o,onPointerInTransitChange:E.useCallback(u=>{o.current=u},[]),disableHoverableContent:i,children:a})};LO.displayName=MO;var _c="Tooltip",[kK,Ph]=Lh(_c),IO=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:s,delayDuration:o}=e,l=oy(_c,e.__scopeTooltip),u=Ih(t),[c,f]=E.useState(null),d=Su(),h=E.useRef(0),g=s??l.disableHoverableContent,b=o??l.delayDuration,T=E.useRef(!1),[m,y]=J0({prop:r,defaultProp:i??!1,onChange:N=>{N?(l.onOpen(),document.dispatchEvent(new CustomEvent(sy))):l.onClose(),a==null||a(N)},caller:_c}),v=E.useMemo(()=>m?T.current?"delayed-open":"instant-open":"closed",[m]),w=E.useCallback(()=>{window.clearTimeout(h.current),h.current=0,T.current=!1,y(!0)},[y]),_=E.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y(!1)},[y]),A=E.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{T.current=!0,y(!0),h.current=0},b)},[b,y]);return E.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),x.jsx(Z2,{...u,children:x.jsx(kK,{scope:t,contentId:d,open:m,stateAttribute:v,trigger:c,onTriggerChange:f,onTriggerEnter:E.useCallback(()=>{l.isOpenDelayedRef.current?A():w()},[l.isOpenDelayedRef,A,w]),onTriggerLeave:E.useCallback(()=>{g?_():(window.clearTimeout(h.current),h.current=0)},[_,g]),onOpen:w,onClose:_,disableHoverableContent:g,children:n})})};IO.displayName=_c;var ly="TooltipTrigger",PO=E.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Ph(ly,n),a=oy(ly,n),s=Ih(n),o=E.useRef(null),l=Kn(t,o,i.onTriggerChange),u=E.useRef(!1),c=E.useRef(!1),f=E.useCallback(()=>u.current=!1,[]);return E.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),x.jsx(Z0,{asChild:!0,...s,children:x.jsx(Zt.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:Vt(e.onPointerMove,d=>{d.pointerType!=="touch"&&!c.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:Vt(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:Vt(e.onPointerDown,()=>{i.open&&i.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Vt(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:Vt(e.onBlur,i.onClose),onClick:Vt(e.onClick,i.onClose)})})});PO.displayName=ly;var OK="TooltipPortal",[cee,RK]=Lh(OK,{forceMount:void 0}),fl="TooltipContent",BO=E.forwardRef((e,t)=>{const n=RK(fl,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...a}=e,s=Ph(fl,e.__scopeTooltip);return x.jsx(Ou,{present:r||s.open,children:s.disableHoverableContent?x.jsx(UO,{side:i,...a,ref:t}):x.jsx(NK,{side:i,...a,ref:t})})}),NK=E.forwardRef((e,t)=>{const n=Ph(fl,e.__scopeTooltip),r=oy(fl,e.__scopeTooltip),i=E.useRef(null),a=Kn(t,i),[s,o]=E.useState(null),{trigger:l,onClose:u}=n,c=i.current,{onPointerInTransitChange:f}=r,d=E.useCallback(()=>{o(null),f(!1)},[f]),h=E.useCallback((g,b)=>{const T=g.currentTarget,m={x:g.clientX,y:g.clientY},y=PK(m,T.getBoundingClientRect()),v=BK(m,y),w=UK(b.getBoundingClientRect()),_=jK([...v,...w]);o(_),f(!0)},[f]);return E.useEffect(()=>()=>d(),[d]),E.useEffect(()=>{if(l&&c){const g=T=>h(T,c),b=T=>h(T,l);return l.addEventListener("pointerleave",g),c.addEventListener("pointerleave",b),()=>{l.removeEventListener("pointerleave",g),c.removeEventListener("pointerleave",b)}}},[l,c,h,d]),E.useEffect(()=>{if(s){const g=b=>{const T=b.target,m={x:b.clientX,y:b.clientY},y=(l==null?void 0:l.contains(T))||(c==null?void 0:c.contains(T)),v=!zK(m,s);y?d():v&&(d(),u())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,c,s,u,d]),x.jsx(UO,{...e,ref:a})}),[DK,MK]=Lh(_c,{isInside:!1}),LK=g5("TooltipContent"),UO=E.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:s,...o}=e,l=Ph(fl,n),u=Ih(n),{onClose:c}=l;return E.useEffect(()=>(document.addEventListener(sy,c),()=>document.removeEventListener(sy,c)),[c]),E.useEffect(()=>{if(l.trigger){const f=d=>{const h=d.target;h!=null&&h.contains(l.trigger)&&c()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,c]),x.jsx(od,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:c,children:x.jsxs(J2,{"data-state":l.stateAttribute,...u,...o,ref:t,style:{...o.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[x.jsx(LK,{children:r}),x.jsx(DK,{scope:n,isInside:!0,children:x.jsx(SK,{id:l.contentId,role:"tooltip",children:i||r})})]})})});BO.displayName=fl;var zO="TooltipArrow",IK=E.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Ih(n);return MK(zO,n).isInside?null:x.jsx(ew,{...i,...r,ref:t})});IK.displayName=zO;function PK(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function BK(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function UK(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function zK(e,t){const{x:n,y:r}=e;let i=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const o=t[a],l=t[s],u=o.x,c=o.y,f=l.x,d=l.y;c>r!=d>r&&n<(f-u)*(r-c)/(d-c)+u&&(i=!i)}return i}function jK(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),FK(t)}function FK(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(i.y-s.y)>=(a.y-s.y)*(i.x-s.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(i.y-s.y)>=(a.y-s.y)*(i.x-s.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var HK=LO,VK=IO,qK=PO,jO=BO;const YK=HK,GK=VK,$K=qK,FO=E.forwardRef(({className:e,sideOffset:t=4,...n},r)=>x.jsx(jO,{ref:r,sideOffset:t,className:de("z-50 overflow-hidden max-w-xs rounded-xl bg-primary border text-primary-foreground p-2 text-center align-middle text-xs animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));FO.displayName=jO.displayName;function Sc({children:e,content:t,side:n,align:r}){const{disableTooltips:i}=Lt();return!t||i?e:x.jsxs(GK,{children:[x.jsx($K,{asChild:!0,children:e}),x.jsx(FO,{side:n,align:r,collisionPadding:8,avoidCollisions:!0,children:t})]})}function Bh(e){"@babel/helpers - typeof";return Bh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bh(e)}var XK=/^\s+/,KK=/\s+$/;function ce(e,t){if(e=e||"",t=t||{},e instanceof ce)return e;if(!(this instanceof ce))return new ce(e,t);var n=WK(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}ce.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,i,a,s,o;return n=t.r/255,r=t.g/255,i=t.b/255,n<=.03928?a=n/12.92:a=Math.pow((n+.055)/1.055,2.4),r<=.03928?s=r/12.92:s=Math.pow((r+.055)/1.055,2.4),i<=.03928?o=i/12.92:o=Math.pow((i+.055)/1.055,2.4),.2126*a+.7152*s+.0722*o},setAlpha:function(t){return this._a=$O(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=VO(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=VO(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+i+"%)":"hsva("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=HO(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=HO(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+i+"%)":"hsla("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return qO(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return eW(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(yt(this._r,255)*100)+"%",g:Math.round(yt(this._g,255)*100)+"%",b:Math.round(yt(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(yt(this._r,255)*100)+"%, "+Math.round(yt(this._g,255)*100)+"%, "+Math.round(yt(this._b,255)*100)+"%)":"rgba("+Math.round(yt(this._r,255)*100)+"%, "+Math.round(yt(this._g,255)*100)+"%, "+Math.round(yt(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:dW[qO(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+YO(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(t){var a=ce(t);r="#"+YO(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+n+",endColorstr="+r+")"},toString:function(t){var n=!!t;t=t||this._format;var r=!1,i=this._a<1&&this._a>=0,a=!n&&i&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return a?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return ce(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(iW,arguments)},brighten:function(){return this._applyModification(aW,arguments)},darken:function(){return this._applyModification(sW,arguments)},desaturate:function(){return this._applyModification(tW,arguments)},saturate:function(){return this._applyModification(nW,arguments)},greyscale:function(){return this._applyModification(rW,arguments)},spin:function(){return this._applyModification(oW,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(cW,arguments)},complement:function(){return this._applyCombination(lW,arguments)},monochromatic:function(){return this._applyCombination(fW,arguments)},splitcomplement:function(){return this._applyCombination(uW,arguments)},triad:function(){return this._applyCombination(GO,[3])},tetrad:function(){return this._applyCombination(GO,[4])}},ce.fromRatio=function(e,t){if(Bh(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=Ac(e[r]));e=n}return ce(e,t)};function WK(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,s=!1,o=!1;return typeof e=="string"&&(e=gW(e)),Bh(e)=="object"&&(Bi(e.r)&&Bi(e.g)&&Bi(e.b)?(t=QK(e.r,e.g,e.b),s=!0,o=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Bi(e.h)&&Bi(e.s)&&Bi(e.v)?(r=Ac(e.s),i=Ac(e.v),t=JK(e.h,r,i),s=!0,o="hsv"):Bi(e.h)&&Bi(e.s)&&Bi(e.l)&&(r=Ac(e.s),a=Ac(e.l),t=ZK(e.h,r,a),s=!0,o="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=$O(n),{ok:s,format:e.format||o,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function QK(e,t,n){return{r:yt(e,255)*255,g:yt(t,255)*255,b:yt(n,255)*255}}function HO(e,t,n){e=yt(e,255),t=yt(t,255),n=yt(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a,s,o=(r+i)/2;if(r==i)a=s=0;else{var l=r-i;switch(s=o>.5?l/(2-r-i):l/(r+i),r){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4;break}a/=6}return{h:a,s,l:o}}function ZK(e,t,n){var r,i,a;e=yt(e,360),t=yt(t,100),n=yt(n,100);function s(u,c,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?u+(c-u)*6*f:f<1/2?c:f<2/3?u+(c-u)*(2/3-f)*6:u}if(t===0)r=i=a=n;else{var o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;r=s(l,o,e+1/3),i=s(l,o,e),a=s(l,o,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function VO(e,t,n){e=yt(e,255),t=yt(t,255),n=yt(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a,s,o=r,l=r-i;if(s=r===0?0:l/r,r==i)a=0;else{switch(r){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4;break}a/=6}return{h:a,s,v:o}}function JK(e,t,n){e=yt(e,360)*6,t=yt(t,100),n=yt(n,100);var r=Math.floor(e),i=e-r,a=n*(1-t),s=n*(1-i*t),o=n*(1-(1-i)*t),l=r%6,u=[n,s,a,a,o,n][l],c=[o,n,n,s,a,a][l],f=[a,a,o,n,n,s][l];return{r:u*255,g:c*255,b:f*255}}function qO(e,t,n,r){var i=[Pr(Math.round(e).toString(16)),Pr(Math.round(t).toString(16)),Pr(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function eW(e,t,n,r,i){var a=[Pr(Math.round(e).toString(16)),Pr(Math.round(t).toString(16)),Pr(Math.round(n).toString(16)),Pr(XO(r))];return i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function YO(e,t,n,r){var i=[Pr(XO(r)),Pr(Math.round(e).toString(16)),Pr(Math.round(t).toString(16)),Pr(Math.round(n).toString(16))];return i.join("")}ce.equals=function(e,t){return!e||!t?!1:ce(e).toRgbString()==ce(t).toRgbString()},ce.random=function(){return ce.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function tW(e,t){t=t===0?0:t||10;var n=ce(e).toHsl();return n.s-=t/100,n.s=Uh(n.s),ce(n)}function nW(e,t){t=t===0?0:t||10;var n=ce(e).toHsl();return n.s+=t/100,n.s=Uh(n.s),ce(n)}function rW(e){return ce(e).desaturate(100)}function iW(e,t){t=t===0?0:t||10;var n=ce(e).toHsl();return n.l+=t/100,n.l=Uh(n.l),ce(n)}function aW(e,t){t=t===0?0:t||10;var n=ce(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),ce(n)}function sW(e,t){t=t===0?0:t||10;var n=ce(e).toHsl();return n.l-=t/100,n.l=Uh(n.l),ce(n)}function oW(e,t){var n=ce(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,ce(n)}function lW(e){var t=ce(e).toHsl();return t.h=(t.h+180)%360,ce(t)}function GO(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=ce(e).toHsl(),r=[ce(e)],i=360/t,a=1;a<t;a++)r.push(ce({h:(n.h+a*i)%360,s:n.s,l:n.l}));return r}function uW(e){var t=ce(e).toHsl(),n=t.h;return[ce(e),ce({h:(n+72)%360,s:t.s,l:t.l}),ce({h:(n+216)%360,s:t.s,l:t.l})]}function cW(e,t,n){t=t||6,n=n||30;var r=ce(e).toHsl(),i=360/n,a=[ce(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(ce(r));return a}function fW(e,t){t=t||6;for(var n=ce(e).toHsv(),r=n.h,i=n.s,a=n.v,s=[],o=1/t;t--;)s.push(ce({h:r,s:i,v:a})),a=(a+o)%1;return s}ce.mix=function(e,t,n){n=n===0?0:n||50;var r=ce(e).toRgb(),i=ce(t).toRgb(),a=n/100,s={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return ce(s)},ce.readability=function(e,t){var n=ce(e),r=ce(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},ce.isReadable=function(e,t,n){var r=ce.readability(e,t),i,a;switch(a=!1,i=bW(n),i.level+i.size){case"AAsmall":case"AAAlarge":a=r>=4.5;break;case"AAlarge":a=r>=3;break;case"AAAsmall":a=r>=7;break}return a},ce.mostReadable=function(e,t,n){var r=null,i=0,a,s,o,l;n=n||{},s=n.includeFallbackColors,o=n.level,l=n.size;for(var u=0;u<t.length;u++)a=ce.readability(e,t[u]),a>i&&(i=a,r=ce(t[u]));return ce.isReadable(e,r,{level:o,size:l})||!s?r:(n.includeFallbackColors=!1,ce.mostReadable(e,["#fff","#000"],n))};var uy=ce.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},dW=ce.hexNames=hW(uy);function hW(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function $O(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function yt(e,t){pW(e)&&(e="100%");var n=mW(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function Uh(e){return Math.min(1,Math.max(0,e))}function rr(e){return parseInt(e,16)}function pW(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function mW(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Pr(e){return e.length==1?"0"+e:""+e}function Ac(e){return e<=1&&(e=e*100+"%"),e}function XO(e){return Math.round(parseFloat(e)*255).toString(16)}function KO(e){return rr(e)/255}var Br=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Bi(e){return!!Br.CSS_UNIT.exec(e)}function gW(e){e=e.replace(XK,"").replace(KK,"").toLowerCase();var t=!1;if(uy[e])e=uy[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=Br.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=Br.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Br.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=Br.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Br.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=Br.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Br.hex8.exec(e))?{r:rr(n[1]),g:rr(n[2]),b:rr(n[3]),a:KO(n[4]),format:t?"name":"hex8"}:(n=Br.hex6.exec(e))?{r:rr(n[1]),g:rr(n[2]),b:rr(n[3]),format:t?"name":"hex"}:(n=Br.hex4.exec(e))?{r:rr(n[1]+""+n[1]),g:rr(n[2]+""+n[2]),b:rr(n[3]+""+n[3]),a:KO(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=Br.hex3.exec(e))?{r:rr(n[1]+""+n[1]),g:rr(n[2]+""+n[2]),b:rr(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function bW(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}const WO=450;function Ui(){const[e,t]=zn.useState(()=>(window.top||window).innerWidth<WO);return zn.useEffect(()=>{const n=window.top||window,r=()=>{t(n.innerWidth<WO)};return r(),n.addEventListener("resize",r),()=>{n.removeEventListener("resize",r)}},[]),{isSmallScreen:e}}const zh={transitionTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",transitionDuration:"1000ms"};function Ss(){var f,d,h,g,b,T,m,y,v,w,_,A,N,L,F,R,q,j,ne,K,W,H,V,z,te,O,he,je,M,Le,pe,Pe,Yt,Qe,Ut,ut,Nt,Gt,ye,Ie,$e,Re,et,$t,Be,tt,tn;const{dir:e}=Rg(),{isSmallScreen:t}=Ui(),{theme:n,inline:r}=Lt(),i=cn=>r?"100%":cn,a=(cn,_r)=>t?`100dv${cn}`:_r,s=(cn,_r)=>i(a(cn,_r)),o={zIndex:((f=n==null?void 0:n.widgetTrigger)==null?void 0:f.zIndex)??1e7,offset:{bottom:((h=(d=n==null?void 0:n.widgetTrigger)==null?void 0:d.offset)==null?void 0:h.bottom)??20,right:((b=(g=n==null?void 0:n.widgetTrigger)==null?void 0:g.offset)==null?void 0:b.right)??(e==="ltr"?20:"initial"),left:((m=(T=n==null?void 0:n.widgetTrigger)==null?void 0:T.offset)==null?void 0:m.left)??(e==="rtl"?20:"initial")},size:{button:((v=(y=n==null?void 0:n.widgetTrigger)==null?void 0:y.size)==null?void 0:v.button)??48,icon:((_=(w=n==null?void 0:n.widgetTrigger)==null?void 0:w.size)==null?void 0:_.icon)??24}},l=(()=>{const cn=e==="ltr"?o.offset.right:o.offset.left;return typeof cn!="number"?0:cn})(),u={palette:(n==null?void 0:n.palette)??"neutral",primaryColor:(n==null?void 0:n.primaryColor)??"hsl(0 0% 9%)",widgetTrigger:o,widgetContentContainer:{borderRadius:t?"0px":((A=n==null?void 0:n.widgetContentContainer)==null?void 0:A.borderRadius)??"32px",zIndex:((N=n==null?void 0:n.widgetContentContainer)==null?void 0:N.zIndex)??o.zIndex+1,outline:((L=n==null?void 0:n.widgetContentContainer)==null?void 0:L.outline)??"none",outlineColor:((F=n==null?void 0:n.widgetContentContainer)==null?void 0:F.outlineColor)??"hsl(0 0% 50% / .5)",boxShadow:((R=n==null?void 0:n.widgetContentContainer)==null?void 0:R.boxShadow)??"0 0px 100px 0px rgb(0 0 0 / 0.25)",transitionProperty:((q=n==null?void 0:n.widgetContentContainer)==null?void 0:q.transitionProperty)??"all",transitionTimingFunction:((j=n==null?void 0:n.widgetContentContainer)==null?void 0:j.transitionTimingFunction)??zh.transitionTimingFunction,transitionDuration:((ne=n==null?void 0:n.widgetContentContainer)==null?void 0:ne.transitionDuration)??zh.transitionDuration,offset:{side:t?0:o.offset.bottom+o.size.button+el.y*2+(((W=(K=n==null?void 0:n.widgetContentContainer)==null?void 0:K.offset)==null?void 0:W.side)??10),align:t?0:l+(((V=(H=n==null?void 0:n.widgetContentContainer)==null?void 0:H.offset)==null?void 0:V.align)??0)}},screens:{welcome:{width:s("w",((te=(z=n==null?void 0:n.screens)==null?void 0:z.welcome)==null?void 0:te.width)??"400px"),minHeight:s("h",((he=(O=n==null?void 0:n.screens)==null?void 0:O.welcome)==null?void 0:he.minHeight)??"1px")},sessions:{width:s("w",((M=(je=n==null?void 0:n.screens)==null?void 0:je.sessions)==null?void 0:M.width)??"450px"),height:s("h",((pe=(Le=n==null?void 0:n.screens)==null?void 0:Le.sessions)==null?void 0:pe.height)??"600px")},chat:{width:s("w",((Yt=(Pe=n==null?void 0:n.screens)==null?void 0:Pe.chat)==null?void 0:Yt.width)??"525px"),height:s("h",((Ut=(Qe=n==null?void 0:n.screens)==null?void 0:Qe.chat)==null?void 0:Ut.height)??"700px"),withCanvas:{width:s("w",((Gt=(Nt=(ut=n==null?void 0:n.screens)==null?void 0:ut.chat)==null?void 0:Nt.withCanvas)==null?void 0:Gt.width)??"min(1050px, 100vw)"),height:s("h",(($e=(Ie=(ye=n==null?void 0:n.screens)==null?void 0:ye.chat)==null?void 0:Ie.withCanvas)==null?void 0:$e.height)??"min(800px, 100vh)"),transitionTimingFunction:(($t=(et=(Re=n==null?void 0:n.screens)==null?void 0:Re.chat)==null?void 0:et.withCanvas)==null?void 0:$t.transitionTimingFunction)??zh.transitionTimingFunction,transitionDuration:((tn=(tt=(Be=n==null?void 0:n.screens)==null?void 0:Be.chat)==null?void 0:tt.withCanvas)==null?void 0:tn.transitionDuration)??zh.transitionDuration}}}},c={maxHeight:s("h",`calc(
|
|
311
|
+
`),()=>{document.head.removeChild(c)}},[t]),x.jsx(Yq,{isPresent:t,childRef:r,sizeRef:i,children:E.cloneElement(e,{ref:r})})}const $q=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:s})=>{const o=$1(Xq),l=E.useId(),u=E.useCallback(f=>{o.set(f,!0);for(const d of o.values())if(!d)return;r&&r()},[o,r]),c=E.useMemo(()=>({id:l,initial:t,isPresent:n,custom:i,onExitComplete:u,register:f=>(o.set(f,!1),()=>o.delete(f))}),a?[Math.random(),u]:[n,u]);return E.useMemo(()=>{o.forEach((f,d)=>o.set(d,!1))},[n]),E.useEffect(()=>{!n&&!o.size&&r&&r()},[n]),s==="popLayout"&&(e=x.jsx(Gq,{isPresent:n,children:e})),x.jsx(ph.Provider,{value:c,children:e})};function Xq(){return new Map}function N3(e=!0){const t=E.useContext(ph);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:i}=t,a=E.useId();E.useEffect(()=>{e&&i(a)},[e]);const s=E.useCallback(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,s]:[!0]}const mh=e=>e.key||"";function D3(e){const t=[];return E.Children.forEach(e,n=>{E.isValidElement(n)&&t.push(n)}),t}const K1=typeof window<"u",M3=K1?E.useLayoutEffect:E.useEffect,Pn=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a="sync",propagate:s=!1})=>{const[o,l]=N3(s),u=E.useMemo(()=>D3(e),[e]),c=s&&!o?[]:u.map(mh),f=E.useRef(!0),d=E.useRef(u),h=$1(()=>new Map),[g,b]=E.useState(u),[T,m]=E.useState(u);M3(()=>{f.current=!1,d.current=u;for(let w=0;w<T.length;w++){const _=mh(T[w]);c.includes(_)?h.delete(_):h.get(_)!==!0&&h.set(_,!1)}},[T,c.length,c.join("-")]);const y=[];if(u!==g){let w=[...u];for(let _=0;_<T.length;_++){const A=T[_],N=mh(A);c.includes(N)||(w.splice(_,0,A),y.push(A))}a==="wait"&&y.length&&(w=y),m(D3(w)),b(u);return}const{forceRender:v}=E.useContext(G1);return x.jsx(x.Fragment,{children:T.map(w=>{const _=mh(w),A=s&&!o?!1:u===T||c.includes(_),N=()=>{if(h.has(_))h.set(_,!0);else return;let L=!0;h.forEach(F=>{F||(L=!1)}),L&&(v==null||v(),m(d.current),s&&(l==null||l()),r&&r())};return x.jsx($q,{isPresent:A,initial:!f.current||n?void 0:!1,custom:A?void 0:t,presenceAffectsLayout:i,mode:a,onExitComplete:A?void 0:N,children:w},_)})})},tr=e=>e;let L3=tr;function W1(e){let t;return()=>(t===void 0&&(t=e()),t)}const tl=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Li=e=>e*1e3,Ii=e=>e/1e3,Kq={useManualTiming:!1};function Wq(e){let t=new Set,n=new Set,r=!1,i=!1;const a=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function o(u){a.has(u)&&(l.schedule(u),e()),u(s)}const l={schedule:(u,c=!1,f=!1)=>{const h=f&&r?t:n;return c&&a.add(u),h.has(u)||h.add(u),u},cancel:u=>{n.delete(u),a.delete(u)},process:u=>{if(s=u,r){i=!0;return}r=!0,[t,n]=[n,t],t.forEach(o),t.clear(),r=!1,i&&(i=!1,l.process(u))}};return l}const gh=["read","resolveKeyframes","update","preRender","render","postRender"],Qq=40;function I3(e,t){let n=!1,r=!0;const i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,s=gh.reduce((m,y)=>(m[y]=Wq(a),m),{}),{read:o,resolveKeyframes:l,update:u,preRender:c,render:f,postRender:d}=s,h=()=>{const m=performance.now();n=!1,i.delta=r?1e3/60:Math.max(Math.min(m-i.timestamp,Qq),1),i.timestamp=m,i.isProcessing=!0,o.process(i),l.process(i),u.process(i),c.process(i),f.process(i),d.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:gh.reduce((m,y)=>{const v=s[y];return m[y]=(w,_=!1,A=!1)=>(n||g(),v.schedule(w,_,A)),m},{}),cancel:m=>{for(let y=0;y<gh.length;y++)s[gh[y]].cancel(m)},state:i,steps:s}}const{schedule:dt,cancel:Ra,state:un,steps:Q1}=I3(typeof requestAnimationFrame<"u"?requestAnimationFrame:tr,!0),P3=E.createContext({strict:!1}),B3={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},nl={};for(const e in B3)nl[e]={isEnabled:t=>B3[e].some(n=>!!t[n])};function Zq(e){for(const t in e)nl[t]={...nl[t],...e[t]}}const Jq=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function bh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Jq.has(e)}let U3=e=>!bh(e);function eY(e){e&&(U3=t=>t.startsWith("on")?!bh(t):e(t))}try{eY(require("@emotion/is-prop-valid").default)}catch{}function tY(e,t,n){const r={};for(const i in e)i==="values"&&typeof e.values=="object"||(U3(i)||n===!0&&bh(i)||!t&&!bh(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}function nY(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,i)=>i==="create"?e:(t.has(i)||t.set(i,e(i)),t.get(i))})}const yh=E.createContext({});function sc(e){return typeof e=="string"||Array.isArray(e)}function vh(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Z1=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],J1=["initial",...Z1];function xh(e){return vh(e.animate)||J1.some(t=>sc(e[t]))}function z3(e){return!!(xh(e)||e.variants)}function rY(e,t){if(xh(e)){const{initial:n,animate:r}=e;return{initial:n===!1||sc(n)?n:void 0,animate:sc(r)?r:void 0}}return e.inherit!==!1?t:{}}function iY(e){const{initial:t,animate:n}=rY(e,E.useContext(yh));return E.useMemo(()=>({initial:t,animate:n}),[j3(t),j3(n)])}function j3(e){return Array.isArray(e)?e.join(" "):e}const aY=Symbol.for("motionComponentSymbol");function rl(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function sY(e,t,n){return E.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):rl(n)&&(n.current=r))},[t])}const eb=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),F3="data-"+eb("framerAppearId"),{schedule:tb}=I3(queueMicrotask,!1),H3=E.createContext({});function oY(e,t,n,r,i){var a,s;const{visualElement:o}=E.useContext(yh),l=E.useContext(P3),u=E.useContext(ph),c=E.useContext(X1).reducedMotion,f=E.useRef(null);r=r||l.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:c}));const d=f.current,h=E.useContext(H3);d&&!d.projection&&i&&(d.type==="html"||d.type==="svg")&&lY(f.current,n,i,h);const g=E.useRef(!1);E.useInsertionEffect(()=>{d&&g.current&&d.update(n,u)});const b=n[F3],T=E.useRef(!!b&&!(!((a=window.MotionHandoffIsComplete)===null||a===void 0)&&a.call(window,b))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,b)));return M3(()=>{d&&(g.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),tb.render(d.render),T.current&&d.animationState&&d.animationState.animateChanges())}),E.useEffect(()=>{d&&(!T.current&&d.animationState&&d.animationState.animateChanges(),T.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,b)}),T.current=!1))}),d}function lY(e,t,n,r){const{layoutId:i,layout:a,drag:s,dragConstraints:o,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:V3(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!s||o&&rl(o),visualElement:e,animationType:typeof a=="string"?a:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}function V3(e){if(e)return e.options.allowProjection!==!1?e.projection:V3(e.parent)}function uY({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:i}){var a,s;e&&Zq(e);function o(u,c){let f;const d={...E.useContext(X1),...u,layoutId:cY(u)},{isStatic:h}=d,g=iY(u),b=r(u,h);if(!h&&K1){fY();const T=dY(d);f=T.MeasureLayout,g.visualElement=oY(i,b,d,t,T.ProjectionNode)}return x.jsxs(yh.Provider,{value:g,children:[f&&g.visualElement?x.jsx(f,{visualElement:g.visualElement,...d}):null,n(i,u,sY(b,g.visualElement,c),b,h,g.visualElement)]})}o.displayName=`motion.${typeof i=="string"?i:`create(${(s=(a=i.displayName)!==null&&a!==void 0?a:i.name)!==null&&s!==void 0?s:""})`}`;const l=E.forwardRef(o);return l[aY]=i,l}function cY({layoutId:e}){const t=E.useContext(G1).id;return t&&e!==void 0?t+"-"+e:e}function fY(e,t){E.useContext(P3).strict}function dY(e){const{drag:t,layout:n}=nl;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const hY=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function nb(e){return typeof e!="string"||e.includes("-")?!1:!!(hY.indexOf(e)>-1||/[A-Z]/u.test(e))}function q3(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function rb(e,t,n,r){if(typeof t=="function"){const[i,a]=q3(r);t=t(n!==void 0?n:e.custom,i,a)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[i,a]=q3(r);t=t(n!==void 0?n:e.custom,i,a)}return t}const ib=e=>Array.isArray(e),pY=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),mY=e=>ib(e)?e[e.length-1]||0:e,yn=e=>!!(e&&e.getVelocity);function Eh(e){const t=yn(e)?e.get():e;return pY(t)?t.toValue():t}function gY({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,i,a){const s={latestValues:bY(r,i,a,e),renderState:t()};return n&&(s.onMount=o=>n({props:r,current:o,...s}),s.onUpdate=o=>n(o)),s}const Y3=e=>(t,n)=>{const r=E.useContext(yh),i=E.useContext(ph),a=()=>gY(e,t,r,i);return n?a():$1(a)};function bY(e,t,n,r){const i={},a=r(e,{});for(const d in a)i[d]=Eh(a[d]);let{initial:s,animate:o}=e;const l=xh(e),u=z3(e);t&&u&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),o===void 0&&(o=t.animate));let c=n?n.initial===!1:!1;c=c||s===!1;const f=c?o:s;if(f&&typeof f!="boolean"&&!vh(f)){const d=Array.isArray(f)?f:[f];for(let h=0;h<d.length;h++){const g=rb(e,d[h]);if(g){const{transitionEnd:b,transition:T,...m}=g;for(const y in m){let v=m[y];if(Array.isArray(v)){const w=c?v.length-1:0;v=v[w]}v!==null&&(i[y]=v)}for(const y in b)i[y]=b[y]}}}return i}const il=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],vs=new Set(il),G3=e=>t=>typeof t=="string"&&t.startsWith(e),$3=G3("--"),yY=G3("var(--"),ab=e=>yY(e)?vY.test(e.split("/*")[0].trim()):!1,vY=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,X3=(e,t)=>t&&typeof e=="number"?t.transform(e):e,Pi=(e,t,n)=>n>t?t:n<e?e:n,al={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},oc={...al,transform:e=>Pi(0,1,e)},Th={...al,default:1},lc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Na=lc("deg"),ii=lc("%"),me=lc("px"),xY=lc("vh"),EY=lc("vw"),K3={...ii,parse:e=>ii.parse(e)/100,transform:e=>ii.transform(e*100)},TY={borderWidth:me,borderTopWidth:me,borderRightWidth:me,borderBottomWidth:me,borderLeftWidth:me,borderRadius:me,radius:me,borderTopLeftRadius:me,borderTopRightRadius:me,borderBottomRightRadius:me,borderBottomLeftRadius:me,width:me,maxWidth:me,height:me,maxHeight:me,top:me,right:me,bottom:me,left:me,padding:me,paddingTop:me,paddingRight:me,paddingBottom:me,paddingLeft:me,margin:me,marginTop:me,marginRight:me,marginBottom:me,marginLeft:me,backgroundPositionX:me,backgroundPositionY:me},wY={rotate:Na,rotateX:Na,rotateY:Na,rotateZ:Na,scale:Th,scaleX:Th,scaleY:Th,scaleZ:Th,skew:Na,skewX:Na,skewY:Na,distance:me,translateX:me,translateY:me,translateZ:me,x:me,y:me,z:me,perspective:me,transformPerspective:me,opacity:oc,originX:K3,originY:K3,originZ:me},W3={...al,transform:Math.round},sb={...TY,...wY,zIndex:W3,size:me,fillOpacity:oc,strokeOpacity:oc,numOctaves:W3},_Y={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},SY=il.length;function AY(e,t,n){let r="",i=!0;for(let a=0;a<SY;a++){const s=il[a],o=e[s];if(o===void 0)continue;let l=!0;if(typeof o=="number"?l=o===(s.startsWith("scale")?1:0):l=parseFloat(o)===0,!l||n){const u=X3(o,sb[s]);if(!l){i=!1;const c=_Y[s]||s;r+=`${c}(${u}) `}n&&(t[s]=u)}}return r=r.trim(),n?r=n(t,i?"":r):i&&(r="none"),r}function ob(e,t,n){const{style:r,vars:i,transformOrigin:a}=e;let s=!1,o=!1;for(const l in t){const u=t[l];if(vs.has(l)){s=!0;continue}else if($3(l)){i[l]=u;continue}else{const c=X3(u,sb[l]);l.startsWith("origin")?(o=!0,a[l]=c):r[l]=c}}if(t.transform||(s||n?r.transform=AY(t,e.transform,n):r.transform&&(r.transform="none")),o){const{originX:l="50%",originY:u="50%",originZ:c=0}=a;r.transformOrigin=`${l} ${u} ${c}`}}const CY={offset:"stroke-dashoffset",array:"stroke-dasharray"},kY={offset:"strokeDashoffset",array:"strokeDasharray"};function OY(e,t,n=1,r=0,i=!0){e.pathLength=1;const a=i?CY:kY;e[a.offset]=me.transform(-r);const s=me.transform(t),o=me.transform(n);e[a.array]=`${s} ${o}`}function Q3(e,t,n){return typeof e=="string"?e:me.transform(t+n*e)}function RY(e,t,n){const r=Q3(t,e.x,e.width),i=Q3(n,e.y,e.height);return`${r} ${i}`}function lb(e,{attrX:t,attrY:n,attrScale:r,originX:i,originY:a,pathLength:s,pathSpacing:o=1,pathOffset:l=0,...u},c,f){if(ob(e,u,f),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:d,style:h,dimensions:g}=e;d.transform&&(g&&(h.transform=d.transform),delete d.transform),g&&(i!==void 0||a!==void 0||h.transform)&&(h.transformOrigin=RY(g,i!==void 0?i:.5,a!==void 0?a:.5)),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),s!==void 0&&OY(d,s,o,l,!1)}const ub=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Z3=()=>({...ub(),attrs:{}}),cb=e=>typeof e=="string"&&e.toLowerCase()==="svg";function J3(e,{style:t,vars:n},r,i){Object.assign(e.style,t,i&&i.getProjectionStyles(r));for(const a in n)e.style.setProperty(a,n[a])}const ek=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function tk(e,t,n,r){J3(e,t,void 0,r);for(const i in t.attrs)e.setAttribute(ek.has(i)?i:eb(i),t.attrs[i])}const wh={};function NY(e){Object.assign(wh,e)}function nk(e,{layout:t,layoutId:n}){return vs.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!wh[e]||e==="opacity")}function fb(e,t,n){var r;const{style:i}=e,a={};for(const s in i)(yn(i[s])||t.style&&yn(t.style[s])||nk(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(a[s]=i[s]);return a}function rk(e,t,n){const r=fb(e,t,n);for(const i in e)if(yn(e[i])||yn(t[i])){const a=il.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;r[a]=e[i]}return r}function DY(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const ik=["x","y","width","height","cx","cy","r"],MY={useVisualState:Y3({scrapeMotionValuesFromProps:rk,createRenderState:Z3,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:i})=>{if(!n)return;let a=!!e.drag;if(!a){for(const o in i)if(vs.has(o)){a=!0;break}}if(!a)return;let s=!t;if(t)for(let o=0;o<ik.length;o++){const l=ik[o];e[l]!==t[l]&&(s=!0)}s&&dt.read(()=>{DY(n,r),dt.render(()=>{lb(r,i,cb(n.tagName),e.transformTemplate),tk(n,r)})})}})},LY={useVisualState:Y3({scrapeMotionValuesFromProps:fb,createRenderState:ub})};function ak(e,t,n){for(const r in t)!yn(t[r])&&!nk(r,n)&&(e[r]=t[r])}function IY({transformTemplate:e},t){return E.useMemo(()=>{const n=ub();return ob(n,t,e),Object.assign({},n.vars,n.style)},[t])}function PY(e,t){const n=e.style||{},r={};return ak(r,n,e),Object.assign(r,IY(e,t)),r}function BY(e,t){const n={},r=PY(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function UY(e,t,n,r){const i=E.useMemo(()=>{const a=Z3();return lb(a,t,cb(r),e.transformTemplate),{...a.attrs,style:{...a.style}}},[t]);if(e.style){const a={};ak(a,e.style,e),i.style={...a,...i.style}}return i}function zY(e=!1){return(n,r,i,{latestValues:a},s)=>{const l=(nb(n)?UY:BY)(r,a,s,n),u=tY(r,typeof n=="string",e),c=n!==E.Fragment?{...u,...l,ref:i}:{},{children:f}=r,d=E.useMemo(()=>yn(f)?f.get():f,[f]);return E.createElement(n,{...c,children:d})}}function jY(e,t){return function(r,{forwardMotionProps:i}={forwardMotionProps:!1}){const s={...nb(r)?MY:LY,preloadedFeatures:e,useRender:zY(i),createVisualElement:t,Component:r};return uY(s)}}function sk(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function _h(e,t,n){const r=e.getProps();return rb(r,t,n!==void 0?n:r.custom,e)}const FY=W1(()=>window.ScrollTimeline!==void 0);class HY{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(i=>{if(FY()&&i.attachTimeline)return i.attachTimeline(t);if(typeof n=="function")return n(i)});return()=>{r.forEach((i,a)=>{i&&i(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class VY extends HY{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function db(e,t){return e?e[t]||e.default||e:void 0}const hb=2e4;function ok(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<hb;)t+=n,r=e.next(t);return t>=hb?1/0:t}function pb(e){return typeof e=="function"}function lk(e,t){e.timeline=t,e.onfinish=null}const mb=e=>Array.isArray(e)&&typeof e[0]=="number",qY={linearEasing:void 0};function YY(e,t){const n=W1(e);return()=>{var r;return(r=qY[t])!==null&&r!==void 0?r:n()}}const Sh=YY(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),uk=(e,t,n=10)=>{let r="";const i=Math.max(Math.round(t/n),2);for(let a=0;a<i;a++)r+=e(tl(0,i-1,a))+", ";return`linear(${r.substring(0,r.length-2)})`};function ck(e){return!!(typeof e=="function"&&Sh()||!e||typeof e=="string"&&(e in gb||Sh())||mb(e)||Array.isArray(e)&&e.every(ck))}const uc=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,gb={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:uc([0,.65,.55,1]),circOut:uc([.55,0,1,.45]),backIn:uc([.31,.01,.66,-.59]),backOut:uc([.33,1.53,.69,.99])};function fk(e,t){if(e)return typeof e=="function"&&Sh()?uk(e,t):mb(e)?uc(e):Array.isArray(e)?e.map(n=>fk(n,t)||gb.easeOut):gb[e]}const Ir={x:!1,y:!1};function dk(){return Ir.x||Ir.y}function GY(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let i=document;const a=(r=void 0)!==null&&r!==void 0?r:i.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}function hk(e,t){const n=GY(e),r=new AbortController,i={passive:!0,...t,signal:r.signal};return[n,i,()=>r.abort()]}function pk(e){return t=>{t.pointerType==="touch"||dk()||e(t)}}function $Y(e,t,n={}){const[r,i,a]=hk(e,n),s=pk(o=>{const{target:l}=o,u=t(o);if(typeof u!="function"||!l)return;const c=pk(f=>{u(f),l.removeEventListener("pointerleave",c)});l.addEventListener("pointerleave",c,i)});return r.forEach(o=>{o.addEventListener("pointerenter",s,i)}),a}const mk=(e,t)=>t?e===t?!0:mk(e,t.parentElement):!1,bb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,XY=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function KY(e){return XY.has(e.tagName)||e.tabIndex!==-1}const cc=new WeakSet;function gk(e){return t=>{t.key==="Enter"&&e(t)}}function yb(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const WY=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=gk(()=>{if(cc.has(n))return;yb(n,"down");const i=gk(()=>{yb(n,"up")}),a=()=>yb(n,"cancel");n.addEventListener("keyup",i,t),n.addEventListener("blur",a,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function bk(e){return bb(e)&&!dk()}function QY(e,t,n={}){const[r,i,a]=hk(e,n),s=o=>{const l=o.currentTarget;if(!bk(o)||cc.has(l))return;cc.add(l);const u=t(o),c=(h,g)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",d),!(!bk(h)||!cc.has(l))&&(cc.delete(l),typeof u=="function"&&u(h,{success:g}))},f=h=>{c(h,n.useGlobalTarget||mk(l,h.target))},d=h=>{c(h,!1)};window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",d,i)};return r.forEach(o=>{!KY(o)&&o.getAttribute("tabindex")===null&&(o.tabIndex=0),(n.useGlobalTarget?window:o).addEventListener("pointerdown",s,i),o.addEventListener("focus",u=>WY(u,i),i)}),a}function ZY(e){return e==="x"||e==="y"?Ir[e]?null:(Ir[e]=!0,()=>{Ir[e]=!1}):Ir.x||Ir.y?null:(Ir.x=Ir.y=!0,()=>{Ir.x=Ir.y=!1})}const yk=new Set(["width","height","top","left","right","bottom",...il]);let Ah;function JY(){Ah=void 0}const ai={now:()=>(Ah===void 0&&ai.set(un.isProcessing||Kq.useManualTiming?un.timestamp:performance.now()),Ah),set:e=>{Ah=e,queueMicrotask(JY)}};function vb(e,t){e.indexOf(t)===-1&&e.push(t)}function xb(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Eb{constructor(){this.subscriptions=[]}add(t){return vb(this.subscriptions,t),()=>xb(this.subscriptions,t)}notify(t,n,r){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](t,n,r);else for(let a=0;a<i;a++){const s=this.subscriptions[a];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function vk(e,t){return t?e*(1e3/t):0}const xk=30,eG=e=>!isNaN(parseFloat(e));class tG{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,i=!0)=>{const a=ai.now();this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),i&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ai.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=eG(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Eb);const r=this.events[t].add(n);return t==="change"?()=>{r(),dt.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=ai.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>xk)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,xk);return vk(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function fc(e,t){return new tG(e,t)}function nG(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,fc(n))}function rG(e,t){const n=_h(e,t);let{transitionEnd:r={},transition:i={},...a}=n||{};a={...a,...r};for(const s in a){const o=mY(a[s]);nG(e,s,o)}}function iG(e){return!!(yn(e)&&e.add)}function Tb(e,t){const n=e.getValue("willChange");if(iG(n))return n.add(t)}function Ek(e){return e.props[F3]}const Tk=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,aG=1e-7,sG=12;function oG(e,t,n,r,i){let a,s,o=0;do s=t+(n-t)/2,a=Tk(s,r,i)-e,a>0?n=s:t=s;while(Math.abs(a)>aG&&++o<sG);return s}function dc(e,t,n,r){if(e===t&&n===r)return tr;const i=a=>oG(a,0,1,e,n);return a=>a===0||a===1?a:Tk(i(a),t,r)}const wk=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,_k=e=>t=>1-e(1-t),Sk=dc(.33,1.53,.69,.99),wb=_k(Sk),Ak=wk(wb),Ck=e=>(e*=2)<1?.5*wb(e):.5*(2-Math.pow(2,-10*(e-1))),_b=e=>1-Math.sin(Math.acos(e)),kk=_k(_b),Ok=wk(_b),Rk=e=>/^0[^.\s]+$/u.test(e);function lG(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Rk(e):!0}const hc=e=>Math.round(e*1e5)/1e5,Sb=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function uG(e){return e==null}const cG=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ab=(e,t)=>n=>!!(typeof n=="string"&&cG.test(n)&&n.startsWith(e)||t&&!uG(n)&&Object.prototype.hasOwnProperty.call(n,t)),Nk=(e,t,n)=>r=>{if(typeof r!="string")return r;const[i,a,s,o]=r.match(Sb);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},fG=e=>Pi(0,255,e),Cb={...al,transform:e=>Math.round(fG(e))},xs={test:Ab("rgb","red"),parse:Nk("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Cb.transform(e)+", "+Cb.transform(t)+", "+Cb.transform(n)+", "+hc(oc.transform(r))+")"};function dG(e){let t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}const kb={test:Ab("#"),parse:dG,transform:xs.transform},sl={test:Ab("hsl","hue"),parse:Nk("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ii.transform(hc(t))+", "+ii.transform(hc(n))+", "+hc(oc.transform(r))+")"},vn={test:e=>xs.test(e)||kb.test(e)||sl.test(e),parse:e=>xs.test(e)?xs.parse(e):sl.test(e)?sl.parse(e):kb.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?xs.transform(e):sl.transform(e)},hG=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function pG(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Sb))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(hG))===null||n===void 0?void 0:n.length)||0)>0}const Dk="number",Mk="color",mG="var",gG="var(",Lk="${}",bG=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function pc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[];let a=0;const o=t.replace(bG,l=>(vn.test(l)?(r.color.push(a),i.push(Mk),n.push(vn.parse(l))):l.startsWith(gG)?(r.var.push(a),i.push(mG),n.push(l)):(r.number.push(a),i.push(Dk),n.push(parseFloat(l))),++a,Lk)).split(Lk);return{values:n,split:o,indexes:r,types:i}}function Ik(e){return pc(e).values}function Pk(e){const{split:t,types:n}=pc(e),r=t.length;return i=>{let a="";for(let s=0;s<r;s++)if(a+=t[s],i[s]!==void 0){const o=n[s];o===Dk?a+=hc(i[s]):o===Mk?a+=vn.transform(i[s]):a+=i[s]}return a}}const yG=e=>typeof e=="number"?0:e;function vG(e){const t=Ik(e);return Pk(e)(t.map(yG))}const Da={test:pG,parse:Ik,createTransformer:Pk,getAnimatableNone:vG},xG=new Set(["brightness","contrast","saturate","opacity"]);function EG(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Sb)||[];if(!r)return e;const i=n.replace(r,"");let a=xG.has(t)?1:0;return r!==n&&(a*=100),t+"("+a+i+")"}const TG=/\b([a-z-]*)\(.*?\)/gu,Ob={...Da,getAnimatableNone:e=>{const t=e.match(TG);return t?t.map(EG).join(" "):e}},wG={...sb,color:vn,backgroundColor:vn,outlineColor:vn,fill:vn,stroke:vn,borderColor:vn,borderTopColor:vn,borderRightColor:vn,borderBottomColor:vn,borderLeftColor:vn,filter:Ob,WebkitFilter:Ob},Rb=e=>wG[e];function Bk(e,t){let n=Rb(e);return n!==Ob&&(n=Da),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const _G=new Set(["auto","none","0"]);function SG(e,t,n){let r=0,i;for(;r<e.length&&!i;){const a=e[r];typeof a=="string"&&!_G.has(a)&&pc(a).values.length&&(i=e[r]),r++}if(i&&n)for(const a of t)e[a]=Bk(n,i)}const Uk=e=>e===al||e===me,zk=(e,t)=>parseFloat(e.split(", ")[t]),jk=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const i=r.match(/^matrix3d\((.+)\)$/u);if(i)return zk(i[1],t);{const a=r.match(/^matrix\((.+)\)$/u);return a?zk(a[1],e):0}},AG=new Set(["x","y","z"]),CG=il.filter(e=>!AG.has(e));function kG(e){const t=[];return CG.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ol={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:jk(4,13),y:jk(5,14)};ol.translateX=ol.x,ol.translateY=ol.y;const Es=new Set;let Nb=!1,Db=!1;function Fk(){if(Db){const e=Array.from(Es).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const i=kG(r);i.length&&(n.set(r,i),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const i=n.get(r);i&&i.forEach(([a,s])=>{var o;(o=r.getValue(a))===null||o===void 0||o.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Db=!1,Nb=!1,Es.forEach(e=>e.complete()),Es.clear()}function Hk(){Es.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Db=!0)})}function OG(){Hk(),Fk()}class Mb{constructor(t,n,r,i,a,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=i,this.element=a,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Es.add(this),Nb||(Nb=!0,dt.read(Hk),dt.resolveKeyframes(Fk))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:i}=this;for(let a=0;a<t.length;a++)if(t[a]===null)if(a===0){const s=i==null?void 0:i.get(),o=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const l=r.readValue(n,o);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=o),i&&s===void 0&&i.set(t[0])}else t[a]=t[a-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Es.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Es.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Vk=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),RG=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function NG(e){const t=RG.exec(e);if(!t)return[,];const[,n,r,i]=t;return[`--${n??r}`,i]}function qk(e,t,n=1){const[r,i]=NG(e);if(!r)return;const a=window.getComputedStyle(t).getPropertyValue(r);if(a){const s=a.trim();return Vk(s)?parseFloat(s):s}return ab(i)?qk(i,t,n+1):i}const Yk=e=>t=>t.test(e),Gk=[al,me,ii,Na,EY,xY,{test:e=>e==="auto",parse:e=>e}],$k=e=>Gk.find(Yk(e));class Xk extends Mb{constructor(t,n,r,i,a){super(t,n,r,i,a,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),ab(u))){const c=qk(u,n.current);c!==void 0&&(t[l]=c),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!yk.has(r)||t.length!==2)return;const[i,a]=t,s=$k(i),o=$k(a);if(s!==o)if(Uk(s)&&Uk(o))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let i=0;i<t.length;i++)lG(t[i])&&r.push(i);r.length&&SG(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ol[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const i=n[n.length-1];i!==void 0&&t.getValue(r,i).jump(i,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:i}=this;if(!n||!n.current)return;const a=n.getValue(r);a&&a.jump(this.measuredOrigin,!1);const s=i.length-1,o=i[s];i[s]=ol[r](n.measureViewportBox(),window.getComputedStyle(n.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,u])=>{n.getValue(l).set(u)}),this.resolveNoneKeyframes()}}const Kk=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Da.test(e)||e==="0")&&!e.startsWith("url("));function DG(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function MG(e,t,n,r){const i=e[0];if(i===null)return!1;if(t==="display"||t==="visibility")return!0;const a=e[e.length-1],s=Kk(i,t),o=Kk(a,t);return!s||!o?!1:DG(e)||(n==="spring"||pb(n))&&r}const LG=e=>e!==null;function Ch(e,{repeat:t,repeatType:n="loop"},r){const i=e.filter(LG),a=t&&n!=="loop"&&t%2===1?0:i.length-1;return!a||r===void 0?i[a]:r}const IG=40;class Wk{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:s="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ai.now(),this.options={autoplay:t,delay:n,type:r,repeat:i,repeatDelay:a,repeatType:s,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>IG?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&OG(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=ai.now(),this.hasAttemptedResolve=!0;const{name:r,type:i,velocity:a,delay:s,onComplete:o,onUpdate:l,isGenerator:u}=this.options;if(!u&&!MG(t,r,i,a))if(s)this.options.duration=0;else{l&&l(Ch(t,this.options,n)),o&&o(),this.resolveFinishedPromise();return}const c=this.initPlayback(t,n);c!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...c},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const xt=(e,t,n)=>e+(t-e)*n;function Lb(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function PG({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,s=0;if(!t)i=a=s=n;else{const o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;i=Lb(l,o,e+1/3),a=Lb(l,o,e),s=Lb(l,o,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(s*255),alpha:r}}function kh(e,t){return n=>n>0?t:e}const Ib=(e,t,n)=>{const r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},BG=[kb,xs,sl],UG=e=>BG.find(t=>t.test(e));function Qk(e){const t=UG(e);if(!t)return!1;let n=t.parse(e);return t===sl&&(n=PG(n)),n}const Zk=(e,t)=>{const n=Qk(e),r=Qk(t);if(!n||!r)return kh(e,t);const i={...n};return a=>(i.red=Ib(n.red,r.red,a),i.green=Ib(n.green,r.green,a),i.blue=Ib(n.blue,r.blue,a),i.alpha=xt(n.alpha,r.alpha,a),xs.transform(i))},zG=(e,t)=>n=>t(e(n)),mc=(...e)=>e.reduce(zG),Pb=new Set(["none","hidden"]);function jG(e,t){return Pb.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function FG(e,t){return n=>xt(e,t,n)}function Bb(e){return typeof e=="number"?FG:typeof e=="string"?ab(e)?kh:vn.test(e)?Zk:qG:Array.isArray(e)?Jk:typeof e=="object"?vn.test(e)?Zk:HG:kh}function Jk(e,t){const n=[...e],r=n.length,i=e.map((a,s)=>Bb(a)(a,t[s]));return a=>{for(let s=0;s<r;s++)n[s]=i[s](a);return n}}function HG(e,t){const n={...e,...t},r={};for(const i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=Bb(e[i])(e[i],t[i]));return i=>{for(const a in r)n[a]=r[a](i);return n}}function VG(e,t){var n;const r=[],i={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const s=t.types[a],o=e.indexes[s][i[s]],l=(n=e.values[o])!==null&&n!==void 0?n:0;r[a]=l,i[s]++}return r}const qG=(e,t)=>{const n=Da.createTransformer(t),r=pc(e),i=pc(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?Pb.has(e)&&!i.values.length||Pb.has(t)&&!r.values.length?jG(e,t):mc(Jk(VG(r,i),i.values),n):kh(e,t)};function e6(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?xt(e,t,n):Bb(e)(e,t)}const YG=5;function t6(e,t,n){const r=Math.max(t-YG,0);return vk(n-e(r),t-r)}const St={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Ub=.001;function GG({duration:e=St.duration,bounce:t=St.bounce,velocity:n=St.velocity,mass:r=St.mass}){let i,a,s=1-t;s=Pi(St.minDamping,St.maxDamping,s),e=Pi(St.minDuration,St.maxDuration,Ii(e)),s<1?(i=u=>{const c=u*s,f=c*e,d=c-n,h=zb(u,s),g=Math.exp(-f);return Ub-d/h*g},a=u=>{const f=u*s*e,d=f*n+n,h=Math.pow(s,2)*Math.pow(u,2)*e,g=Math.exp(-f),b=zb(Math.pow(u,2),s);return(-i(u)+Ub>0?-1:1)*((d-h)*g)/b}):(i=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-Ub+c*f},a=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const o=5/e,l=XG(i,a,o);if(e=Li(e),isNaN(l))return{stiffness:St.stiffness,damping:St.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:s*2*Math.sqrt(r*u),duration:e}}}const $G=12;function XG(e,t,n){let r=n;for(let i=1;i<$G;i++)r=r-e(r)/t(r);return r}function zb(e,t){return e*Math.sqrt(1-t*t)}const KG=["duration","bounce"],WG=["stiffness","damping","mass"];function n6(e,t){return t.some(n=>e[n]!==void 0)}function QG(e){let t={velocity:St.velocity,stiffness:St.stiffness,damping:St.damping,mass:St.mass,isResolvedFromDuration:!1,...e};if(!n6(e,WG)&&n6(e,KG))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*Pi(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:St.mass,stiffness:i,damping:a}}else{const n=GG(e);t={...t,...n,mass:St.mass},t.isResolvedFromDuration=!0}return t}function r6(e=St.visualDuration,t=St.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:i}=n;const a=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],o={done:!1,value:a},{stiffness:l,damping:u,mass:c,duration:f,velocity:d,isResolvedFromDuration:h}=QG({...n,velocity:-Ii(n.velocity||0)}),g=d||0,b=u/(2*Math.sqrt(l*c)),T=s-a,m=Ii(Math.sqrt(l/c)),y=Math.abs(T)<5;r||(r=y?St.restSpeed.granular:St.restSpeed.default),i||(i=y?St.restDelta.granular:St.restDelta.default);let v;if(b<1){const _=zb(m,b);v=A=>{const N=Math.exp(-b*m*A);return s-N*((g+b*m*T)/_*Math.sin(_*A)+T*Math.cos(_*A))}}else if(b===1)v=_=>s-Math.exp(-m*_)*(T+(g+m*T)*_);else{const _=m*Math.sqrt(b*b-1);v=A=>{const N=Math.exp(-b*m*A),L=Math.min(_*A,300);return s-N*((g+b*m*T)*Math.sinh(L)+_*T*Math.cosh(L))/_}}const w={calculatedDuration:h&&f||null,next:_=>{const A=v(_);if(h)o.done=_>=f;else{let N=0;b<1&&(N=_===0?Li(g):t6(v,_,A));const L=Math.abs(N)<=r,F=Math.abs(s-A)<=i;o.done=L&&F}return o.value=o.done?s:A,o},toString:()=>{const _=Math.min(ok(w),hb),A=uk(N=>w.next(_*N).value,_,30);return _+"ms "+A}};return w}function i6({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:s,min:o,max:l,restDelta:u=.5,restSpeed:c}){const f=e[0],d={done:!1,value:f},h=L=>o!==void 0&&L<o||l!==void 0&&L>l,g=L=>o===void 0?l:l===void 0||Math.abs(o-L)<Math.abs(l-L)?o:l;let b=n*t;const T=f+b,m=s===void 0?T:s(T);m!==T&&(b=m-f);const y=L=>-b*Math.exp(-L/r),v=L=>m+y(L),w=L=>{const F=y(L),R=v(L);d.done=Math.abs(F)<=u,d.value=d.done?m:R};let _,A;const N=L=>{h(d.value)&&(_=L,A=r6({keyframes:[d.value,g(d.value)],velocity:t6(v,L,d.value),damping:i,stiffness:a,restDelta:u,restSpeed:c}))};return N(0),{calculatedDuration:null,next:L=>{let F=!1;return!A&&_===void 0&&(F=!0,w(L),N(L)),_!==void 0&&L>=_?A.next(L-_):(!F&&w(L),d)}}}const ZG=dc(.42,0,1,1),JG=dc(0,0,.58,1),a6=dc(.42,0,.58,1),e$=e=>Array.isArray(e)&&typeof e[0]!="number",t$={linear:tr,easeIn:ZG,easeInOut:a6,easeOut:JG,circIn:_b,circInOut:Ok,circOut:kk,backIn:wb,backInOut:Ak,backOut:Sk,anticipate:Ck},s6=e=>{if(mb(e)){L3(e.length===4);const[t,n,r,i]=e;return dc(t,n,r,i)}else if(typeof e=="string")return t$[e];return e};function n$(e,t,n){const r=[],i=n||e6,a=e.length-1;for(let s=0;s<a;s++){let o=i(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||tr:t;o=mc(l,o)}r.push(o)}return r}function r$(e,t,{clamp:n=!0,ease:r,mixer:i}={}){const a=e.length;if(L3(a===t.length),a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=n$(t,r,i),l=o.length,u=c=>{if(s&&c<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(c<e[f+1]);f++);const d=tl(e[f],e[f+1],c);return o[f](d)};return n?c=>u(Pi(e[0],e[a-1],c)):u}function i$(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const i=tl(0,t,r);e.push(xt(n,1,i))}}function a$(e){const t=[0];return i$(t,e.length-1),t}function s$(e,t){return e.map(n=>n*t)}function o$(e,t){return e.map(()=>t||a6).splice(0,e.length-1)}function Oh({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const i=e$(r)?r.map(s6):s6(r),a={done:!1,value:t[0]},s=s$(n&&n.length===t.length?n:a$(t),e),o=r$(s,t,{ease:Array.isArray(i)?i:o$(t,i)});return{calculatedDuration:e,next:l=>(a.value=o(l),a.done=l>=e,a)}}const l$=e=>{const t=({timestamp:n})=>e(n);return{start:()=>dt.update(t,!0),stop:()=>Ra(t),now:()=>un.isProcessing?un.timestamp:ai.now()}},u$={decay:i6,inertia:i6,tween:Oh,keyframes:Oh,spring:r6},c$=e=>e/100;class jb extends Wk{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:i,keyframes:a}=this.options,s=(i==null?void 0:i.KeyframeResolver)||Mb,o=(l,u)=>this.onKeyframesResolved(l,u);this.resolver=new s(a,o,n,r,i),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:i=0,repeatType:a,velocity:s=0}=this.options,o=pb(n)?n:u$[n]||Oh;let l,u;o!==Oh&&typeof t[0]!="number"&&(l=mc(c$,e6(t[0],t[1])),t=[0,100]);const c=o({...this.options,keyframes:t});a==="mirror"&&(u=o({...this.options,keyframes:[...t].reverse(),velocity:-s})),c.calculatedDuration===null&&(c.calculatedDuration=ok(c));const{calculatedDuration:f}=c,d=f+i,h=d*(r+1)-i;return{generator:c,mirroredGenerator:u,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:d,totalDuration:h}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:L}=this.options;return{done:!0,value:L[L.length-1]}}const{finalKeyframe:i,generator:a,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:l,calculatedDuration:u,totalDuration:c,resolvedDuration:f}=r;if(this.startTime===null)return a.next(0);const{delay:d,repeat:h,repeatType:g,repeatDelay:b,onUpdate:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-c/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const m=this.currentTime-d*(this.speed>=0?1:-1),y=this.speed>=0?m<0:m>c;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=c);let v=this.currentTime,w=a;if(h){const L=Math.min(this.currentTime,c)/f;let F=Math.floor(L),R=L%1;!R&&L>=1&&(R=1),R===1&&F--,F=Math.min(F,h+1),!!(F%2)&&(g==="reverse"?(R=1-R,b&&(R-=b/f)):g==="mirror"&&(w=s)),v=Pi(0,1,R)*f}const _=y?{done:!1,value:l[0]}:w.next(v);o&&(_.value=o(_.value));let{done:A}=_;!y&&u!==null&&(A=this.speed>=0?this.currentTime>=c:this.currentTime<=0);const N=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&A);return N&&i!==void 0&&(_.value=Ch(l,this.options,i)),T&&T(_.value),N&&this.finish(),_}get duration(){const{resolved:t}=this;return t?Ii(t.calculatedDuration):0}get time(){return Ii(this.currentTime)}set time(t){t=Li(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Ii(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=l$,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),n&&n();const i=this.driver.now();this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=i):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const f$=new Set(["opacity","clipPath","filter","transform"]);function d$(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:s="loop",ease:o="easeInOut",times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=fk(o,i);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:a+1,direction:s==="reverse"?"alternate":"normal"})}const h$=W1(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Rh=10,p$=2e4;function m$(e){return pb(e.type)||e.type==="spring"||!ck(e.ease)}function g$(e,t){const n=new jb({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const i=[];let a=0;for(;!r.done&&a<p$;)r=n.sample(a),i.push(r.value),a+=Rh;return{times:void 0,keyframes:i,duration:a-Rh,ease:"linear"}}const o6={anticipate:Ck,backInOut:Ak,circInOut:Ok};function b$(e){return e in o6}class l6 extends Wk{constructor(t){super(t);const{name:n,motionValue:r,element:i,keyframes:a}=this.options;this.resolver=new Xk(a,(s,o)=>this.onKeyframesResolved(s,o),n,r,i),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:i,ease:a,type:s,motionValue:o,name:l,startTime:u}=this.options;if(!o.owner||!o.owner.current)return!1;if(typeof a=="string"&&Sh()&&b$(a)&&(a=o6[a]),m$(this.options)){const{onComplete:f,onUpdate:d,motionValue:h,element:g,...b}=this.options,T=g$(t,b);t=T.keyframes,t.length===1&&(t[1]=t[0]),r=T.duration,i=T.times,a=T.ease,s="keyframes"}const c=d$(o.owner.current,l,t,{...this.options,duration:r,times:i,ease:a});return c.startTime=u??this.calcStartTime(),this.pendingTimeline?(lk(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:f}=this.options;o.set(Ch(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:r,times:i,type:s,ease:a,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Ii(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Ii(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Li(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return tr;const{animation:r}=n;lk(r,t)}return tr}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:i,type:a,ease:s,times:o}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:u,onUpdate:c,onComplete:f,element:d,...h}=this.options,g=new jb({...h,keyframes:r,duration:i,type:a,ease:s,times:o,isGenerator:!0}),b=Li(this.time);u.setWithVelocity(g.sample(b-Rh).value,g.sample(b).value,Rh)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:i,repeatType:a,damping:s,type:o}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=n.owner.getProps();return h$()&&r&&f$.has(r)&&!l&&!u&&!i&&a!=="mirror"&&s!==0&&o!=="inertia"}}const y$={type:"spring",stiffness:500,damping:25,restSpeed:10},v$=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),x$={type:"keyframes",duration:.8},E$={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},T$=(e,{keyframes:t})=>t.length>2?x$:vs.has(e)?e.startsWith("scale")?v$(t[1]):y$:E$;function w$({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:s,repeatDelay:o,from:l,elapsed:u,...c}){return!!Object.keys(c).length}const Fb=(e,t,n,r={},i,a)=>s=>{const o=db(r,e)||{},l=o.delay||r.delay||0;let{elapsed:u=0}=r;u=u-Li(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-u,onUpdate:d=>{t.set(d),o.onUpdate&&o.onUpdate(d)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:a?void 0:i};w$(o)||(c={...c,...T$(e,c)}),c.duration&&(c.duration=Li(c.duration)),c.repeatDelay&&(c.repeatDelay=Li(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(c.duration=0,c.delay===0&&(f=!0)),f&&!a&&t.get()!==void 0){const d=Ch(c.keyframes,o);if(d!==void 0)return dt.update(()=>{c.onUpdate(d),c.onComplete()}),new VY([])}return!a&&l6.supports(c)?new l6(c):new jb(c)};function _$({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function u6(e,t,{delay:n=0,transitionOverride:r,type:i}={}){var a;let{transition:s=e.getDefaultTransition(),transitionEnd:o,...l}=t;r&&(s=r);const u=[],c=i&&e.animationState&&e.animationState.getState()[i];for(const f in l){const d=e.getValue(f,(a=e.latestValues[f])!==null&&a!==void 0?a:null),h=l[f];if(h===void 0||c&&_$(c,f))continue;const g={delay:n,...db(s||{},f)};let b=!1;if(window.MotionHandoffAnimation){const m=Ek(e);if(m){const y=window.MotionHandoffAnimation(m,f,dt);y!==null&&(g.startTime=y,b=!0)}}Tb(e,f),d.start(Fb(f,d,h,e.shouldReduceMotion&&yk.has(f)?{type:!1}:g,e,b));const T=d.animation;T&&u.push(T)}return o&&Promise.all(u).then(()=>{dt.update(()=>{o&&rG(e,o)})}),u}function Hb(e,t,n={}){var r;const i=_h(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(a=n.transitionOverride);const s=i?()=>Promise.all(u6(e,i,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:d}=a;return S$(e,t,c+u,f,d,n)}:()=>Promise.resolve(),{when:l}=a;if(l){const[u,c]=l==="beforeChildren"?[s,o]:[o,s];return u().then(()=>c())}else return Promise.all([s(),o(n.delay)])}function S$(e,t,n=0,r=0,i=1,a){const s=[],o=(e.variantChildren.size-1)*r,l=i===1?(u=0)=>u*r:(u=0)=>o-u*r;return Array.from(e.variantChildren).sort(A$).forEach((u,c)=>{u.notify("AnimationStart",t),s.push(Hb(u,t,{...a,delay:n+l(c)}).then(()=>u.notify("AnimationComplete",t)))}),Promise.all(s)}function A$(e,t){return e.sortNodePosition(t)}function C$(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const i=t.map(a=>Hb(e,a,n));r=Promise.all(i)}else if(typeof t=="string")r=Hb(e,t,n);else{const i=typeof t=="function"?_h(e,t,n.custom):t;r=Promise.all(u6(e,i,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const k$=J1.length;function c6(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?c6(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<k$;n++){const r=J1[n],i=e.props[r];(sc(i)||i===!1)&&(t[r]=i)}return t}const O$=[...Z1].reverse(),R$=Z1.length;function N$(e){return t=>Promise.all(t.map(({animation:n,options:r})=>C$(e,n,r)))}function D$(e){let t=N$(e),n=f6(),r=!0;const i=l=>(u,c)=>{var f;const d=_h(e,c,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(d){const{transition:h,transitionEnd:g,...b}=d;u={...u,...b,...g}}return u};function a(l){t=l(e)}function s(l){const{props:u}=e,c=c6(e.parent)||{},f=[],d=new Set;let h={},g=1/0;for(let T=0;T<R$;T++){const m=O$[T],y=n[m],v=u[m]!==void 0?u[m]:c[m],w=sc(v),_=m===l?y.isActive:null;_===!1&&(g=T);let A=v===c[m]&&v!==u[m]&&w;if(A&&r&&e.manuallyAnimateOnMount&&(A=!1),y.protectedKeys={...h},!y.isActive&&_===null||!v&&!y.prevProp||vh(v)||typeof v=="boolean")continue;const N=M$(y.prevProp,v);let L=N||m===l&&y.isActive&&!A&&w||T>g&&w,F=!1;const R=Array.isArray(v)?v:[v];let q=R.reduce(i(m),{});_===!1&&(q={});const{prevResolvedValues:j={}}=y,ne={...j,...q},K=V=>{L=!0,d.has(V)&&(F=!0,d.delete(V)),y.needsAnimating[V]=!0;const z=e.getValue(V);z&&(z.liveStyle=!1)};for(const V in ne){const z=q[V],te=j[V];if(h.hasOwnProperty(V))continue;let O=!1;ib(z)&&ib(te)?O=!sk(z,te):O=z!==te,O?z!=null?K(V):d.add(V):z!==void 0&&d.has(V)?K(V):y.protectedKeys[V]=!0}y.prevProp=v,y.prevResolvedValues=q,y.isActive&&(h={...h,...q}),r&&e.blockInitialAnimation&&(L=!1),L&&(!(A&&N)||F)&&f.push(...R.map(V=>({animation:V,options:{type:m}})))}if(d.size){const T={};d.forEach(m=>{const y=e.getBaseTarget(m),v=e.getValue(m);v&&(v.liveStyle=!0),T[m]=y??null}),f.push({animation:T})}let b=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(f):Promise.resolve()}function o(l,u){var c;if(n[l].isActive===u)return Promise.resolve();(c=e.variantChildren)===null||c===void 0||c.forEach(d=>{var h;return(h=d.animationState)===null||h===void 0?void 0:h.setActive(l,u)}),n[l].isActive=u;const f=s(l);for(const d in n)n[d].protectedKeys={};return f}return{animateChanges:s,setActive:o,setAnimateFunction:a,getState:()=>n,reset:()=>{n=f6(),r=!0}}}function M$(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!sk(t,e):!1}function Ts(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function f6(){return{animate:Ts(!0),whileInView:Ts(),whileHover:Ts(),whileTap:Ts(),whileDrag:Ts(),whileFocus:Ts(),exit:Ts()}}class Ma{constructor(t){this.isMounted=!1,this.node=t}update(){}}class L$ extends Ma{constructor(t){super(t),t.animationState||(t.animationState=D$(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();vh(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let I$=0;class P$ extends Ma{constructor(){super(...arguments),this.id=I$++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const i=this.node.animationState.setActive("exit",!t);n&&!t&&i.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const B$={animation:{Feature:L$},exit:{Feature:P$}};function gc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function bc(e){return{point:{x:e.pageX,y:e.pageY}}}const U$=e=>t=>bb(t)&&e(t,bc(t));function yc(e,t,n,r){return gc(e,t,U$(n),r)}const d6=(e,t)=>Math.abs(e-t);function z$(e,t){const n=d6(e.x,t.x),r=d6(e.y,t.y);return Math.sqrt(n**2+r**2)}class h6{constructor(t,n,{transformPagePoint:r,contextWindow:i,dragSnapToOrigin:a=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=qb(this.lastMoveEventInfo,this.history),d=this.startEvent!==null,h=z$(f.offset,{x:0,y:0})>=3;if(!d&&!h)return;const{point:g}=f,{timestamp:b}=un;this.history.push({...g,timestamp:b});const{onStart:T,onMove:m}=this.handlers;d||(T&&T(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,f)},this.handlePointerMove=(f,d)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Vb(d,this.transformPagePoint),dt.update(this.updatePoint,!0)},this.handlePointerUp=(f,d)=>{this.end();const{onEnd:h,onSessionEnd:g,resumeAnimation:b}=this.handlers;if(this.dragSnapToOrigin&&b&&b(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=qb(f.type==="pointercancel"?this.lastMoveEventInfo:Vb(d,this.transformPagePoint),this.history);this.startEvent&&h&&h(f,T),g&&g(f,T)},!bb(t))return;this.dragSnapToOrigin=a,this.handlers=n,this.transformPagePoint=r,this.contextWindow=i||window;const s=bc(t),o=Vb(s,this.transformPagePoint),{point:l}=o,{timestamp:u}=un;this.history=[{...l,timestamp:u}];const{onSessionStart:c}=n;c&&c(t,qb(o,this.history)),this.removeListeners=mc(yc(this.contextWindow,"pointermove",this.handlePointerMove),yc(this.contextWindow,"pointerup",this.handlePointerUp),yc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Ra(this.updatePoint)}}function Vb(e,t){return t?{point:t(e.point)}:e}function p6(e,t){return{x:e.x-t.x,y:e.y-t.y}}function qb({point:e},t){return{point:e,delta:p6(e,m6(t)),offset:p6(e,j$(t)),velocity:F$(t,.1)}}function j$(e){return e[0]}function m6(e){return e[e.length-1]}function F$(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const i=m6(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>Li(t)));)n--;if(!r)return{x:0,y:0};const a=Ii(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};const s={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}const g6=1e-4,H$=1-g6,V$=1+g6,b6=.01,q$=0-b6,Y$=0+b6;function nr(e){return e.max-e.min}function G$(e,t,n){return Math.abs(e-t)<=n}function y6(e,t,n,r=.5){e.origin=r,e.originPoint=xt(t.min,t.max,e.origin),e.scale=nr(n)/nr(t),e.translate=xt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=H$&&e.scale<=V$||isNaN(e.scale))&&(e.scale=1),(e.translate>=q$&&e.translate<=Y$||isNaN(e.translate))&&(e.translate=0)}function vc(e,t,n,r){y6(e.x,t.x,n.x,r?r.originX:void 0),y6(e.y,t.y,n.y,r?r.originY:void 0)}function v6(e,t,n){e.min=n.min+t.min,e.max=e.min+nr(t)}function $$(e,t,n){v6(e.x,t.x,n.x),v6(e.y,t.y,n.y)}function x6(e,t,n){e.min=t.min-n.min,e.max=e.min+nr(t)}function xc(e,t,n){x6(e.x,t.x,n.x),x6(e.y,t.y,n.y)}function X$(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?xt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?xt(n,e,r.max):Math.min(e,n)),e}function E6(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function K$(e,{top:t,left:n,bottom:r,right:i}){return{x:E6(e.x,n,i),y:E6(e.y,t,r)}}function T6(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function W$(e,t){return{x:T6(e.x,t.x),y:T6(e.y,t.y)}}function Q$(e,t){let n=.5;const r=nr(e),i=nr(t);return i>r?n=tl(t.min,t.max-r,e.min):r>i&&(n=tl(e.min,e.max-i,t.min)),Pi(0,1,n)}function Z$(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const Yb=.35;function J$(e=Yb){return e===!1?e=0:e===!0&&(e=Yb),{x:w6(e,"left","right"),y:w6(e,"top","bottom")}}function w6(e,t,n){return{min:_6(e,t),max:_6(e,n)}}function _6(e,t){return typeof e=="number"?e:e[t]||0}const S6=()=>({translate:0,scale:1,origin:0,originPoint:0}),ll=()=>({x:S6(),y:S6()}),A6=()=>({min:0,max:0}),Rt=()=>({x:A6(),y:A6()});function Er(e){return[e("x"),e("y")]}function C6({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function eX({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function tX(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Gb(e){return e===void 0||e===1}function $b({scale:e,scaleX:t,scaleY:n}){return!Gb(e)||!Gb(t)||!Gb(n)}function ws(e){return $b(e)||k6(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function k6(e){return O6(e.x)||O6(e.y)}function O6(e){return e&&e!=="0%"}function Nh(e,t,n){const r=e-n,i=t*r;return n+i}function R6(e,t,n,r,i){return i!==void 0&&(e=Nh(e,i,r)),Nh(e,n,r)+t}function Xb(e,t=0,n=1,r,i){e.min=R6(e.min,t,n,r,i),e.max=R6(e.max,t,n,r,i)}function N6(e,{x:t,y:n}){Xb(e.x,t.translate,t.scale,t.originPoint),Xb(e.y,n.translate,n.scale,n.originPoint)}const D6=.999999999999,M6=1.0000000000001;function nX(e,t,n,r=!1){const i=n.length;if(!i)return;t.x=t.y=1;let a,s;for(let o=0;o<i;o++){a=n[o],s=a.projectionDelta;const{visualElement:l}=a.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&cl(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,N6(e,s)),r&&ws(a.latestValues)&&cl(e,a.latestValues))}t.x<M6&&t.x>D6&&(t.x=1),t.y<M6&&t.y>D6&&(t.y=1)}function ul(e,t){e.min=e.min+t,e.max=e.max+t}function L6(e,t,n,r,i=.5){const a=xt(e.min,e.max,i);Xb(e,t,n,a,r)}function cl(e,t){L6(e.x,t.x,t.scaleX,t.scale,t.originX),L6(e.y,t.y,t.scaleY,t.scale,t.originY)}function I6(e,t){return C6(tX(e.getBoundingClientRect(),t))}function rX(e,t,n){const r=I6(e,n),{scroll:i}=t;return i&&(ul(r.x,i.offset.x),ul(r.y,i.offset.y)),r}const P6=({current:e})=>e?e.ownerDocument.defaultView:null,iX=new WeakMap;class aX{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Rt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const i=c=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(bc(c).point)},a=(c,f)=>{const{drag:d,dragPropagation:h,onDragStart:g}=this.getProps();if(d&&!h&&(this.openDragLock&&this.openDragLock(),this.openDragLock=ZY(d),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Er(T=>{let m=this.getAxisMotionValue(T).get()||0;if(ii.test(m)){const{projection:y}=this.visualElement;if(y&&y.layout){const v=y.layout.layoutBox[T];v&&(m=nr(v)*(parseFloat(m)/100))}}this.originPoint[T]=m}),g&&dt.postRender(()=>g(c,f)),Tb(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},s=(c,f)=>{const{dragPropagation:d,dragDirectionLock:h,onDirectionLock:g,onDrag:b}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:T}=f;if(h&&this.currentDirection===null){this.currentDirection=sX(T),this.currentDirection!==null&&g&&g(this.currentDirection);return}this.updateAxis("x",f.point,T),this.updateAxis("y",f.point,T),this.visualElement.render(),b&&b(c,f)},o=(c,f)=>this.stop(c,f),l=()=>Er(c=>{var f;return this.getAnimationState(c)==="paused"&&((f=this.getAxisMotionValue(c).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:u}=this.getProps();this.panSession=new h6(t,{onSessionStart:i,onStart:a,onMove:s,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,contextWindow:P6(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:i}=n;this.startAnimation(i);const{onDragEnd:a}=this.getProps();a&&dt.postRender(()=>a(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:i}=this.getProps();if(!r||!Dh(t,i,this.currentDirection))return;const a=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=X$(s,this.constraints[t],this.elastic[t])),a.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,a=this.constraints;n&&rl(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&i?this.constraints=K$(i.layoutBox,n):this.constraints=!1,this.elastic=J$(r),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Er(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=Z$(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!rl(t))return!1;const r=t.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const a=rX(r,i.root,this.visualElement.getTransformPagePoint());let s=W$(i.layout.layoutBox,a);if(n){const o=n(eX(s));this.hasMutatedConstraints=!!o,o&&(s=C6(o))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:i,dragTransition:a,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{},u=Er(c=>{if(!Dh(c,n,this.currentDirection))return;let f=l&&l[c]||{};s&&(f={min:0,max:0});const d=i?200:1e6,h=i?40:1e7,g={type:"inertia",velocity:r?t[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...a,...f};return this.startAxisValueAnimation(c,g)});return Promise.all(u).then(o)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Tb(this.visualElement,t),r.start(Fb(t,r,0,n,this.visualElement,!1))}stopAnimation(){Er(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Er(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),i=r[n];return i||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Er(n=>{const{drag:r}=this.getProps();if(!Dh(n,r,this.currentDirection))return;const{projection:i}=this.visualElement,a=this.getAxisMotionValue(n);if(i&&i.layout){const{min:s,max:o}=i.layout.layoutBox[n];a.set(t[n]-xt(s,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!rl(n)||!r||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};Er(s=>{const o=this.getAxisMotionValue(s);if(o&&this.constraints!==!1){const l=o.get();i[s]=Q$({min:l,max:l},this.constraints[s])}});const{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Er(s=>{if(!Dh(s,t,null))return;const o=this.getAxisMotionValue(s),{min:l,max:u}=this.constraints[s];o.set(xt(l,u,i[s]))})}addListeners(){if(!this.visualElement.current)return;iX.set(this.visualElement,this);const t=this.visualElement.current,n=yc(t,"pointerdown",l=>{const{drag:u,dragListener:c=!0}=this.getProps();u&&c&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();rl(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),dt.read(r);const s=gc(window,"resize",()=>this.scalePositionWithinConstraints()),o=i.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Er(c=>{const f=this.getAxisMotionValue(c);f&&(this.originPoint[c]+=l[c].translate,f.set(f.get()+l[c].translate))}),this.visualElement.render())});return()=>{s(),n(),a(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:s=Yb,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:i,dragConstraints:a,dragElastic:s,dragMomentum:o}}}function Dh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function sX(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class oX extends Ma{constructor(t){super(t),this.removeGroupControls=tr,this.removeListeners=tr,this.controls=new aX(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tr}unmount(){this.removeGroupControls(),this.removeListeners()}}const B6=e=>(t,n)=>{e&&dt.postRender(()=>e(t,n))};class lX extends Ma{constructor(){super(...arguments),this.removePointerDownListener=tr}onPointerDown(t){this.session=new h6(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:P6(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:i}=this.node.getProps();return{onSessionStart:B6(t),onStart:B6(n),onMove:r,onEnd:(a,s)=>{delete this.session,i&&dt.postRender(()=>i(a,s))}}}mount(){this.removePointerDownListener=yc(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Mh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function U6(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ec={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(me.test(e))e=parseFloat(e);else return e;const n=U6(e,t.target.x),r=U6(e,t.target.y);return`${n}% ${r}%`}},uX={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,i=Da.parse(e);if(i.length>5)return r;const a=Da.createTransformer(e),s=typeof i[0]!="number"?1:0,o=n.x.scale*t.x,l=n.y.scale*t.y;i[0+s]/=o,i[1+s]/=l;const u=xt(o,l,.5);return typeof i[2+s]=="number"&&(i[2+s]/=u),typeof i[3+s]=="number"&&(i[3+s]/=u),a(i)}};class cX extends E.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:i}=this.props,{projection:a}=t;NY(fX),a&&(n.group&&n.group.add(a),r&&r.register&&i&&r.register(a),a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,onExitComplete:()=>this.safeToRemove()})),Mh.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:i,isPresent:a}=this.props,s=r.projection;return s&&(s.isPresent=a,i||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?s.promote():s.relegate()||dt.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tb.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:i}=t;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function z6(e){const[t,n]=N3(),r=E.useContext(G1);return x.jsx(cX,{...e,layoutGroup:r,switchLayoutGroup:E.useContext(H3),isPresent:t,safeToRemove:n})}const fX={borderRadius:{...Ec,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ec,borderTopRightRadius:Ec,borderBottomLeftRadius:Ec,borderBottomRightRadius:Ec,boxShadow:uX};function dX(e,t,n){const r=yn(e)?e:fc(e);return r.start(Fb("",r,t,n)),r.animation}function hX(e){return e instanceof SVGElement&&e.tagName!=="svg"}const pX=(e,t)=>e.depth-t.depth;class mX{constructor(){this.children=[],this.isDirty=!1}add(t){vb(this.children,t),this.isDirty=!0}remove(t){xb(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(pX),this.isDirty=!1,this.children.forEach(t)}}function gX(e,t){const n=ai.now(),r=({timestamp:i})=>{const a=i-n;a>=t&&(Ra(r),e(a-t))};return dt.read(r,!0),()=>Ra(r)}const j6=["TopLeft","TopRight","BottomLeft","BottomRight"],bX=j6.length,F6=e=>typeof e=="string"?parseFloat(e):e,H6=e=>typeof e=="number"||me.test(e);function yX(e,t,n,r,i,a){i?(e.opacity=xt(0,n.opacity!==void 0?n.opacity:1,vX(r)),e.opacityExit=xt(t.opacity!==void 0?t.opacity:1,0,xX(r))):a&&(e.opacity=xt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<bX;s++){const o=`border${j6[s]}Radius`;let l=V6(t,o),u=V6(n,o);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||H6(l)===H6(u)?(e[o]=Math.max(xt(F6(l),F6(u),r),0),(ii.test(u)||ii.test(l))&&(e[o]+="%")):e[o]=u}(t.rotate||n.rotate)&&(e.rotate=xt(t.rotate||0,n.rotate||0,r))}function V6(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const vX=q6(0,.5,kk),xX=q6(.5,.95,tr);function q6(e,t,n){return r=>r<e?0:r>t?1:n(tl(e,t,r))}function Y6(e,t){e.min=t.min,e.max=t.max}function Tr(e,t){Y6(e.x,t.x),Y6(e.y,t.y)}function G6(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function $6(e,t,n,r,i){return e-=t,e=Nh(e,1/n,r),i!==void 0&&(e=Nh(e,1/i,r)),e}function EX(e,t=0,n=1,r=.5,i,a=e,s=e){if(ii.test(t)&&(t=parseFloat(t),t=xt(s.min,s.max,t/100)-s.min),typeof t!="number")return;let o=xt(a.min,a.max,r);e===a&&(o-=t),e.min=$6(e.min,t,n,o,i),e.max=$6(e.max,t,n,o,i)}function X6(e,t,[n,r,i],a,s){EX(e,t[n],t[r],t[i],t.scale,a,s)}const TX=["x","scaleX","originX"],wX=["y","scaleY","originY"];function K6(e,t,n,r){X6(e.x,t,TX,n?n.x:void 0,r?r.x:void 0),X6(e.y,t,wX,n?n.y:void 0,r?r.y:void 0)}function W6(e){return e.translate===0&&e.scale===1}function Q6(e){return W6(e.x)&&W6(e.y)}function Z6(e,t){return e.min===t.min&&e.max===t.max}function _X(e,t){return Z6(e.x,t.x)&&Z6(e.y,t.y)}function J6(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function eO(e,t){return J6(e.x,t.x)&&J6(e.y,t.y)}function tO(e){return nr(e.x)/nr(e.y)}function nO(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class SX{constructor(){this.members=[]}add(t){vb(this.members,t),t.scheduleRender()}remove(t){if(xb(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(i=>t===i);if(n===0)return!1;let r;for(let i=n;i>=0;i--){const a=this.members[i];if(a.isPresent!==!1){r=a;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:i}=t.options;i===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function AX(e,t,n){let r="";const i=e.x.translate/t.x,a=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((i||a||s)&&(r=`translate3d(${i}px, ${a}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:f,rotateY:d,skewX:h,skewY:g}=n;u&&(r=`perspective(${u}px) ${r}`),c&&(r+=`rotate(${c}deg) `),f&&(r+=`rotateX(${f}deg) `),d&&(r+=`rotateY(${d}deg) `),h&&(r+=`skewX(${h}deg) `),g&&(r+=`skewY(${g}deg) `)}const o=e.x.scale*t.x,l=e.y.scale*t.y;return(o!==1||l!==1)&&(r+=`scale(${o}, ${l})`),r||"none"}const _s={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Tc=typeof window<"u"&&window.MotionDebug!==void 0,Kb=["","X","Y","Z"],CX={visibility:"hidden"},rO=1e3;let kX=0;function Wb(e,t,n,r){const{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function iO(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Ek(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:a}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",dt,!(i||a))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&iO(r)}function aO({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(s={},o=t==null?void 0:t()){this.id=kX++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Tc&&(_s.totalNodes=_s.resolvedTargetDeltas=_s.recalculatedProjection=0),this.nodes.forEach(NX),this.nodes.forEach(PX),this.nodes.forEach(BX),this.nodes.forEach(DX),Tc&&window.MotionDebug.record(_s)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new mX)}addEventListener(s,o){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Eb),this.eventHandlers.get(s).add(o)}notifyListeners(s,...o){const l=this.eventHandlers.get(s);l&&l.notify(...o)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,o=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=hX(s),this.instance=s;const{layoutId:l,layout:u,visualElement:c}=this.options;if(c&&!c.current&&c.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),o&&(u||l)&&(this.isLayoutDirty=!0),e){let f;const d=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=gX(d,250),Mh.hasAnimatedSinceResize&&(Mh.hasAnimatedSinceResize=!1,this.nodes.forEach(oO))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||u)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:d,hasRelativeTargetChanged:h,layout:g})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const b=this.options.transition||c.getDefaultTransition()||HX,{onLayoutAnimationStart:T,onLayoutAnimationComplete:m}=c.getProps(),y=!this.targetLayout||!eO(this.targetLayout,g)||h,v=!d&&h;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||v||d&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,v);const w={...db(b,"layout"),onPlay:T,onComplete:m};(c.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else d||oO(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=g})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Ra(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(UX),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&iO(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:o,layout:l}=this.options;if(o===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(sO);return}this.isUpdating||this.nodes.forEach(LX),this.isUpdating=!1,this.nodes.forEach(IX),this.nodes.forEach(OX),this.nodes.forEach(RX),this.clearAllSnapshots();const o=ai.now();un.delta=Pi(0,1e3/60,o-un.timestamp),un.timestamp=o,un.isProcessing=!0,Q1.update.process(un),Q1.preRender.process(un),Q1.render.process(un),un.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tb.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(MX),this.sharedNodes.forEach(zX)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,dt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){dt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Rt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(o=!1),o){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!i)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!Q6(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;s&&(o||ws(this.latestValues)||c)&&(i(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const o=this.measurePageBox();let l=this.removeElementScroll(o);return s&&(l=this.removeTransform(l)),VX(l),{animationId:this.root.animationId,measuredBox:o,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:o}=this.options;if(!o)return Rt();const l=o.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(qX))){const{scroll:c}=this.root;c&&(ul(l.x,c.offset.x),ul(l.y,c.offset.y))}return l}removeElementScroll(s){var o;const l=Rt();if(Tr(l,s),!((o=this.scroll)===null||o===void 0)&&o.wasRoot)return l;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:f,options:d}=c;c!==this.root&&f&&d.layoutScroll&&(f.wasRoot&&Tr(l,s),ul(l.x,f.offset.x),ul(l.y,f.offset.y))}return l}applyTransform(s,o=!1){const l=Rt();Tr(l,s);for(let u=0;u<this.path.length;u++){const c=this.path[u];!o&&c.options.layoutScroll&&c.scroll&&c!==c.root&&cl(l,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),ws(c.latestValues)&&cl(l,c.latestValues)}return ws(this.latestValues)&&cl(l,this.latestValues),l}removeTransform(s){const o=Rt();Tr(o,s);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!ws(u.latestValues))continue;$b(u.latestValues)&&u.updateSnapshot();const c=Rt(),f=u.measurePageBox();Tr(c,f),K6(o,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,c)}return ws(this.latestValues)&&K6(o,this.latestValues),o}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==un.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var o;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const u=!!this.resumingFrom||this!==l;if(!(s||u&&this.isSharedProjectionDirty||this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:d}=this.options;if(!(!this.layout||!(f||d))){if(this.resolvedRelativeTargetAt=un.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Rt(),this.relativeTargetOrigin=Rt(),xc(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),Tr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=Rt(),this.targetWithTransforms=Rt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),$$(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Tr(this.target,this.layout.layoutBox),N6(this.target,this.targetDelta)):Tr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const h=this.getClosestProjectingParent();h&&!!h.resumingFrom==!!this.resumingFrom&&!h.options.layoutScroll&&h.target&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Rt(),this.relativeTargetOrigin=Rt(),xc(this.relativeTargetOrigin,this.target,h.target),Tr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Tc&&_s.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||$b(this.parent.latestValues)||k6(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const o=this.getLead(),l=!!this.resumingFrom||this!==o;let u=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(u=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(u=!1),this.resolvedRelativeTargetAt===un.timestamp&&(u=!1),u)return;const{layout:c,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(c||f))return;Tr(this.layoutCorrected,this.layout.layoutBox);const d=this.treeScale.x,h=this.treeScale.y;nX(this.layoutCorrected,this.treeScale,this.path,l),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=Rt());const{target:g}=o;if(!g){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(G6(this.prevProjectionDelta.x,this.projectionDelta.x),G6(this.prevProjectionDelta.y,this.projectionDelta.y)),vc(this.projectionDelta,this.layoutCorrected,g,this.latestValues),(this.treeScale.x!==d||this.treeScale.y!==h||!nO(this.projectionDelta.x,this.prevProjectionDelta.x)||!nO(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",g)),Tc&&_s.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var o;if((o=this.options.visualElement)===null||o===void 0||o.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ll(),this.projectionDelta=ll(),this.projectionDeltaWithTransform=ll()}setAnimationOrigin(s,o=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},f=ll();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const d=Rt(),h=l?l.source:void 0,g=this.layout?this.layout.source:void 0,b=h!==g,T=this.getStack(),m=!T||T.members.length<=1,y=!!(b&&!m&&this.options.crossfade===!0&&!this.path.some(FX));this.animationProgress=0;let v;this.mixTargetDelta=w=>{const _=w/1e3;lO(f.x,s.x,_),lO(f.y,s.y,_),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(xc(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),jX(this.relativeTarget,this.relativeTargetOrigin,d,_),v&&_X(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=Rt()),Tr(v,this.relativeTarget)),b&&(this.animationValues=c,yX(c,u,this.latestValues,_,y,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Ra(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=dt.update(()=>{Mh.hasAnimatedSinceResize=!0,this.currentAnimation=dX(0,rO,{...s,onUpdate:o=>{this.mixTargetDelta(o),s.onUpdate&&s.onUpdate(o)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(rO),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:l,layout:u,latestValues:c}=s;if(!(!o||!l||!u)){if(this!==s&&this.layout&&u&&hO(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||Rt();const f=nr(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const d=nr(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+d}Tr(o,l),cl(o,c),vc(this.projectionDeltaWithTransform,this.layoutCorrected,o,c)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new SX),this.sharedNodes.get(s).add(o);const u=o.options.initialPromotionConfig;o.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(o):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:o}=this.options;return o?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:o}=this.options;return o?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:o,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let o=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(o=!0),!o)return;const u={};l.z&&Wb("z",s,u,this.animationValues);for(let c=0;c<Kb.length;c++)Wb(`rotate${Kb[c]}`,s,u,this.animationValues),Wb(`skew${Kb[c]}`,s,u,this.animationValues);s.render();for(const c in u)s.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);s.scheduleRender()}getProjectionStyles(s){var o,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return CX;const u={visibility:""},c=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,u.opacity="",u.pointerEvents=Eh(s==null?void 0:s.pointerEvents)||"",u.transform=c?c(this.latestValues,""):"none",u;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const b={};return this.options.layoutId&&(b.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,b.pointerEvents=Eh(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!ws(this.latestValues)&&(b.transform=c?c({},""):"none",this.hasProjected=!1),b}const d=f.animationValues||f.latestValues;this.applyTransformsToTarget(),u.transform=AX(this.projectionDeltaWithTransform,this.treeScale,d),c&&(u.transform=c(d,u.transform));const{x:h,y:g}=this.projectionDelta;u.transformOrigin=`${h.origin*100}% ${g.origin*100}% 0`,f.animationValues?u.opacity=f===this?(l=(o=d.opacity)!==null&&o!==void 0?o:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:u.opacity=f===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const b in wh){if(d[b]===void 0)continue;const{correct:T,applyTo:m}=wh[b],y=u.transform==="none"?d[b]:T(d[b],f);if(m){const v=m.length;for(let w=0;w<v;w++)u[m[w]]=y}else u[b]=y}return this.options.layoutId&&(u.pointerEvents=f===this?Eh(s==null?void 0:s.pointerEvents)||"":"none"),u}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var o;return(o=s.currentAnimation)===null||o===void 0?void 0:o.stop()}),this.root.nodes.forEach(sO),this.root.sharedNodes.clear()}}}function OX(e){e.updateLayout()}function RX(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:i}=e.layout,{animationType:a}=e.options,s=n.source!==e.layout.source;a==="size"?Er(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],h=nr(d);d.min=r[f].min,d.max=d.min+h}):hO(a,n.layoutBox,r)&&Er(f=>{const d=s?n.measuredBox[f]:n.layoutBox[f],h=nr(r[f]);d.max=d.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const o=ll();vc(o,r,n.layoutBox);const l=ll();s?vc(l,e.applyTransform(i,!0),n.measuredBox):vc(l,r,n.layoutBox);const u=!Q6(o);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:d,layout:h}=f;if(d&&h){const g=Rt();xc(g,n.layoutBox,d.layoutBox);const b=Rt();xc(b,r,h.layoutBox),eO(g,b)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=g,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:o,hasLayoutChanged:u,hasRelativeTargetChanged:c})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function NX(e){Tc&&_s.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function DX(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function MX(e){e.clearSnapshot()}function sO(e){e.clearMeasurements()}function LX(e){e.isLayoutDirty=!1}function IX(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function oO(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function PX(e){e.resolveTargetDelta()}function BX(e){e.calcProjection()}function UX(e){e.resetSkewAndRotation()}function zX(e){e.removeLeadSnapshot()}function lO(e,t,n){e.translate=xt(t.translate,0,n),e.scale=xt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function uO(e,t,n,r){e.min=xt(t.min,n.min,r),e.max=xt(t.max,n.max,r)}function jX(e,t,n,r){uO(e.x,t.x,n.x,r),uO(e.y,t.y,n.y,r)}function FX(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const HX={duration:.45,ease:[.4,0,.1,1]},cO=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),fO=cO("applewebkit/")&&!cO("chrome/")?Math.round:tr;function dO(e){e.min=fO(e.min),e.max=fO(e.max)}function VX(e){dO(e.x),dO(e.y)}function hO(e,t,n){return e==="position"||e==="preserve-aspect"&&!G$(tO(t),tO(n),.2)}function qX(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const YX=aO({attachResizeListener:(e,t)=>gc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Qb={current:void 0},pO=aO({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Qb.current){const e=new YX({});e.mount(window),e.setOptions({layoutScroll:!0}),Qb.current=e}return Qb.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),GX={pan:{Feature:lX},drag:{Feature:oX,ProjectionNode:pO,MeasureLayout:z6}};function mO(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,a=r[i];a&&dt.postRender(()=>a(t,bc(t)))}class $X extends Ma{mount(){const{current:t}=this.node;t&&(this.unmount=$Y(t,n=>(mO(this.node,n,"Start"),r=>mO(this.node,r,"End"))))}unmount(){}}class XX extends Ma{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=mc(gc(this.node.current,"focus",()=>this.onFocus()),gc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function gO(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),a=r[i];a&&dt.postRender(()=>a(t,bc(t)))}class KX extends Ma{mount(){const{current:t}=this.node;t&&(this.unmount=QY(t,n=>(gO(this.node,n,"Start"),(r,{success:i})=>gO(this.node,r,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Zb=new WeakMap,Jb=new WeakMap,WX=e=>{const t=Zb.get(e.target);t&&t(e)},QX=e=>{e.forEach(WX)};function ZX({root:e,...t}){const n=e||document;Jb.has(n)||Jb.set(n,{});const r=Jb.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(QX,{root:e,...t})),r[i]}function JX(e,t,n){const r=ZX(t);return Zb.set(e,n),r.observe(e),()=>{Zb.delete(e),r.unobserve(e)}}const eK={some:0,all:1};class tK extends Ma{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:i="some",once:a}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof i=="number"?i:eK[i]},o=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,a&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:c,onViewportLeave:f}=this.node.getProps(),d=u?c:f;d&&d(l)};return JX(this.node.current,s,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(nK(t,n))&&this.startObserver()}unmount(){}}function nK({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const rK={inView:{Feature:tK},tap:{Feature:KX},focus:{Feature:XX},hover:{Feature:$X}},iK={layout:{ProjectionNode:pO,MeasureLayout:z6}},ey={current:null},bO={current:!1};function aK(){if(bO.current=!0,!!K1)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>ey.current=e.matches;e.addListener(t),t()}else ey.current=!1}const sK=[...Gk,vn,Da],oK=e=>sK.find(Yk(e)),yO=new WeakMap;function lK(e,t,n){for(const r in t){const i=t[r],a=n[r];if(yn(i))e.addValue(r,i);else if(yn(a))e.addValue(r,fc(i,{owner:e}));else if(a!==i)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(i):s.hasAnimated||s.set(i)}else{const s=e.getStaticValue(r);e.addValue(r,fc(s!==void 0?s:i,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const vO=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class uK{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:i,blockInitialAnimation:a,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Mb,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=ai.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,dt.render(this.render,!1,!0))};const{latestValues:l,renderState:u,onUpdate:c}=s;this.onUpdate=c,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=i,this.options=o,this.blockInitialAnimation=!!a,this.isControllingVariants=xh(n),this.isVariantNode=z3(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...d}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in d){const g=d[h];l[h]!==void 0&&yn(g)&&g.set(l[h],!1)}}mount(t){this.current=t,yO.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),bO.current||aK(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:ey.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){yO.delete(this.current),this.projection&&this.projection.unmount(),Ra(this.notifyUpdate),Ra(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=vs.has(t),i=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&dt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),a=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{i(),a(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in nl){const n=nl[t];if(!n)continue;const{isEnabled:r,Feature:i}=n;if(!this.features[t]&&i&&r(this.props)&&(this.features[t]=new i(this)),this.features[t]){const a=this.features[t];a.isMounted?a.update():(a.mount(),a.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Rt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<vO.length;r++){const i=vO[r];this.propEventSubscriptions[i]&&(this.propEventSubscriptions[i](),delete this.propEventSubscriptions[i]);const a="on"+i,s=t[a];s&&(this.propEventSubscriptions[i]=this.on(i,s))}this.prevMotionValues=lK(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=fc(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Vk(i)||Rk(i))?i=parseFloat(i):!oK(i)&&Da.test(n)&&(i=Bk(t,n)),this.setBaseTarget(t,yn(i)?i.get():i)),yn(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let i;if(typeof r=="string"||typeof r=="object"){const s=rb(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(i=s[t])}if(r&&i!==void 0)return i;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!yn(a)?a:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Eb),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class xO extends uK{constructor(){super(...arguments),this.KeyframeResolver=Xk}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;yn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function cK(e){return window.getComputedStyle(e)}class fK extends xO{constructor(){super(...arguments),this.type="html",this.renderInstance=J3}readValueFromInstance(t,n){if(vs.has(n)){const r=Rb(n);return r&&r.default||0}else{const r=cK(t),i=($3(n)?r.getPropertyValue(n):r[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return I6(t,n)}build(t,n,r){ob(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return fb(t,n,r)}}class dK extends xO{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Rt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(vs.has(n)){const r=Rb(n);return r&&r.default||0}return n=ek.has(n)?n:eb(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return rk(t,n,r)}build(t,n,r){lb(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,i){tk(t,n,r,i)}mount(t){this.isSVGTag=cb(t.tagName),super.mount(t)}}const hK=(e,t)=>nb(e)?new dK(t):new fK(t,{allowProjection:e!==E.Fragment}),pK=jY({...B$,...rK,...GX,...iK},hK),wc=nY(pK);function mK(){return i_.useSyncExternalStore(gK,()=>!0,()=>!1)}function gK(){return()=>{}}var ty="Avatar",[bK,iee]=_u(ty),[yK,EO]=bK(ty),TO=E.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[i,a]=E.useState("idle");return x.jsx(yK,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:a,children:x.jsx(Zt.span,{...r,ref:t})})});TO.displayName=ty;var wO="AvatarImage",_O=E.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...a}=e,s=EO(wO,n),o=vK(r,a),l=os(u=>{i(u),s.onImageLoadingStatusChange(u)});return $r(()=>{o!=="idle"&&l(o)},[o,l]),o==="loaded"?x.jsx(Zt.img,{...a,ref:t,src:r}):null});_O.displayName=wO;var SO="AvatarFallback",AO=E.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...i}=e,a=EO(SO,n),[s,o]=E.useState(r===void 0);return E.useEffect(()=>{if(r!==void 0){const l=window.setTimeout(()=>o(!0),r);return()=>window.clearTimeout(l)}},[r]),s&&a.imageLoadingStatus!=="loaded"?x.jsx(Zt.span,{...i,ref:t}):null});AO.displayName=SO;function CO(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function vK(e,{referrerPolicy:t,crossOrigin:n}){const r=mK(),i=E.useRef(null),a=r?(i.current||(i.current=new window.Image),i.current):null,[s,o]=E.useState(()=>CO(a,e));return $r(()=>{o(CO(a,e))},[a,e]),$r(()=>{const l=f=>()=>{o(f)};if(!a)return;const u=l("loaded"),c=l("error");return a.addEventListener("load",u),a.addEventListener("error",c),t&&(a.referrerPolicy=t),typeof n=="string"&&(a.crossOrigin=n),()=>{a.removeEventListener("load",u),a.removeEventListener("error",c)}},[a,n,t]),s}var kO=TO,OO=_O,RO=AO;const ny=E.forwardRef(({className:e,...t},n)=>x.jsx(kO,{ref:n,className:de("relative flex size-6 aspect-square shrink-0 overflow-hidden rounded-full bg-secondary",e),...t}));ny.displayName=kO.displayName;const ry=E.forwardRef(({className:e,...t},n)=>x.jsx(OO,{ref:n,className:de("aspect-square h-full w-full",e),...t}));ry.displayName=OO.displayName;const iy=E.forwardRef(({className:e,...t},n)=>x.jsx(RO,{ref:n,className:de("flex size-full text-xs items-center justify-center rounded-lg",e),...t}));iy.displayName=RO.displayName;function ay({agent:e,...t}){var n,r;return x.jsxs(ny,{...t,children:[x.jsx(ry,{src:(e==null?void 0:e.avatar)??"",alt:"Agent Icon"}),(e==null?void 0:e.name)&&x.jsx(iy,{children:(r=(n=e==null?void 0:e.name)==null?void 0:n.slice(0,1))==null?void 0:r.toUpperCase()})]})}const xK=10,EK={right:(e,t,n)=>({initial:{opacity:0,x:-e,...t.initial},animate:{opacity:1,x:0,...t.animate,transition:{delay:n}},exit:{opacity:0,x:e,...t.exit}}),left:(e,t,n)=>({initial:{opacity:0,x:e,...t.initial},animate:{opacity:1,x:0,...t.animate,transition:{delay:n}},exit:{opacity:0,x:-e,...t.exit}}),up:(e,t,n)=>({initial:{opacity:0,y:e,...t.initial},animate:{opacity:1,y:0,...t.animate,transition:{delay:n}},exit:{opacity:0,y:-e,...t.exit}}),down:(e,t,n)=>({initial:{opacity:0,y:-e,...t.initial},animate:{opacity:1,y:0,...t.animate,transition:{delay:n}},exit:{opacity:0,y:e,...t.exit}})},it=E.forwardRef(({fadeIn:e="down",distance:t=xK,children:n,snapExit:r=!1,overrides:i={},delay:a=0,...s},o)=>{const l=e?EK[e](t,i,a):{};return r&&l.exit&&typeof l.exit=="object"&&!Array.isArray(l.exit)&&(l.exit.transition={duration:0}),x.jsx(wc.div,{ref:o,...s,...l,children:n})});it.displayName="MotionDiv";function TK({agent:e}){return x.jsx(Pn,{children:x.jsxs(it,{...Ve("chat/bot_loading/root"),className:"flex flex-row items-end w-full gap-2 animate-pulse",children:[x.jsx(ay,{agent:e}),x.jsxs("div",{...Ve("chat/bot_loading/bouncing_dots_container"),className:de("flex items-center [&_span]:bg-secondary-foreground [&_span]:size-1 gap-1 p-2 rounded-xl bg-secondary"),children:[x.jsx(wc.span,{className:"rounded-full animate-bounce [animation-delay:-0.3s]"}),x.jsx(wc.span,{className:"rounded-full animate-bounce [animation-delay:-0.15s]"}),x.jsx(wc.span,{className:"rounded-full animate-bounce"})]})]})})}const NO='@import"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..700;1,14..32,100..700&display=swap";@import"https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}*{-ms-overflow-style:none;scrollbar-width:none}*::-webkit-scrollbar{display:none}*{border-color:hsl(var(--opencx-border))}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),0 3px rgb(var(--tw-prose-kbd-shadows) / 10%);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: #374151;--tw-prose-headings: #111827;--tw-prose-lead: #4b5563;--tw-prose-links: #111827;--tw-prose-bold: #111827;--tw-prose-counters: #6b7280;--tw-prose-bullets: #d1d5db;--tw-prose-hr: #e5e7eb;--tw-prose-quotes: #111827;--tw-prose-quote-borders: #e5e7eb;--tw-prose-captions: #6b7280;--tw-prose-kbd: #111827;--tw-prose-kbd-shadows: 17 24 39;--tw-prose-code: #111827;--tw-prose-pre-code: #e5e7eb;--tw-prose-pre-bg: #1f2937;--tw-prose-th-borders: #d1d5db;--tw-prose-td-borders: #e5e7eb;--tw-prose-invert-body: #d1d5db;--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: #9ca3af;--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: #9ca3af;--tw-prose-invert-bullets: #4b5563;--tw-prose-invert-hr: #374151;--tw-prose-invert-quotes: #f3f4f6;--tw-prose-invert-quote-borders: #374151;--tw-prose-invert-captions: #9ca3af;--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: 255 255 255;--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: #d1d5db;--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: #4b5563;--tw-prose-invert-td-borders: #374151;font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-0{bottom:0}.end-4{inset-inline-end:1rem}.end-6{inset-inline-end:1.5rem}.left-2{left:.5rem}.left-\\[50\\%\\]{left:50%}.start-0{inset-inline-start:0px}.top-0{top:0}.top-4{top:1rem}.top-6{top:1.5rem}.top-\\[50\\%\\]{top:50%}.z-10{z-index:10}.z-50{z-index:50}.m-2{margin:.5rem}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.ms-auto{margin-inline-start:auto}.mt-0\\.5{margin-top:.125rem}.mt-auto{margin-top:auto}.line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.size-10{width:2.5rem;height:2.5rem}.size-12{width:3rem;height:3rem}.size-16{width:4rem;height:4rem}.size-3{width:.75rem;height:.75rem}.size-4{width:1rem;height:1rem}.size-6{width:1.5rem;height:1.5rem}.size-8{width:2rem;height:2rem}.size-auto{width:auto;height:auto}.size-fit{width:fit-content;height:fit-content}.size-full{width:100%;height:100%}.h-10{height:2.5rem}.h-2{height:.5rem}.h-3\\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-full{height:100%}.h-px{height:1px}.max-h-16{max-height:4rem}.max-h-full{max-height:100%}.min-h-12{min-height:3rem}.w-0{width:0px}.w-1\\/2{width:50%}.w-10{width:2.5rem}.w-2{width:.5rem}.w-2\\/5{width:40%}.w-3\\.5{width:.875rem}.w-3\\/5{width:60%}.w-4{width:1rem}.w-5\\/6{width:83.333333%}.w-60{width:15rem}.w-9{width:2.25rem}.w-auto{width:auto}.w-fit{width:fit-content}.w-full{width:100%}.min-w-\\[8rem\\]{min-width:8rem}.max-w-\\[61\\.8\\%\\]{max-width:61.8%}.max-w-full{max-width:100%}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.translate-x-\\[-50\\%\\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\\[var\\(--wobble-x\\)\\]{--tw-translate-x: var(--wobble-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[-50\\%\\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\\[var\\(--wobble-y\\)\\]{--tw-translate-y: var(--wobble-y);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes bounce{0%,to{transform:translateY(-25%);animation-timing-function:cubic-bezier(.8,0,1,1)}50%{transform:none;animation-timing-function:cubic-bezier(0,0,.2,1)}}.animate-bounce{animation:bounce 1s infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-\\[1px\\]{gap:1px}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-scroll{overflow:scroll}.scroll-smooth{scroll-behavior:smooth}.text-ellipsis{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\\[20px\\]{border-radius:20px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-l-md{border-top-left-radius:.375rem;border-bottom-left-radius:.375rem}.rounded-r-md{border-top-right-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-bl-md{border-bottom-left-radius:.375rem}.rounded-br-md{border-bottom-right-radius:.375rem}.rounded-tl-md{border-top-left-radius:.375rem}.rounded-tr-md{border-top-right-radius:.375rem}.border{border-width:1px}.border-2{border-width:2px}.border-none{border-style:none}.border-transparent{border-color:transparent}.bg-\\[white\\]{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-background{background-color:hsl(var(--opencx-background))}.bg-black\\/50{background-color:#00000080}.bg-black\\/60{background-color:#0009}.bg-destructive{background-color:hsl(var(--opencx-destructive))}.bg-muted{background-color:hsl(var(--opencx-muted))}.bg-primary{background-color:hsl(var(--opencx-primary))}.bg-secondary{background-color:hsl(var(--opencx-secondary))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-\\[radial-gradient\\(ellipse_at_top_left\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\,radial-gradient\\(ellipse_at_top_right\\,hsl\\(var\\(--opencx-primary\\)\\)\\,transparent\\)\\]{background-image:radial-gradient(ellipse at top left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse at top right,hsl(var(--opencx-primary)),transparent)}.fill-current{fill:currentColor}.object-contain{object-fit:contain}.object-cover{object-fit:cover}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.pb-0{padding-bottom:0}.pe-2{padding-inline-end:.5rem}.pe-4{padding-inline-end:1rem}.ps-2{padding-inline-start:.5rem}.ps-4{padding-inline-start:1rem}.ps-8{padding-inline-start:2rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.text-center{text-align:center}.text-start{text-align:start}.align-middle{vertical-align:middle}.text-\\[1\\.75rem\\]{font-size:1.75rem}.text-\\[10px\\]{font-size:10px}.text-\\[16px\\]{font-size:16px}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-none{line-height:1}.leading-snug{line-height:1.375}.leading-tight{line-height:1.25}.tracking-tight{letter-spacing:-.025em}.tracking-widest{letter-spacing:.1em}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--opencx-destructive))}.text-destructive-foreground{color:hsl(var(--opencx-destructive-foreground))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--opencx-foreground))}.text-muted-foreground{color:hsl(var(--opencx-muted-foreground))}.text-muted-foreground\\/70{color:hsl(var(--opencx-muted-foreground) / .7)}.text-muted-foreground\\/75{color:hsl(var(--opencx-muted-foreground) / .75)}.text-primary{color:hsl(var(--opencx-primary))}.text-primary-foreground{color:hsl(var(--opencx-primary-foreground))}.text-secondary-foreground{color:hsl(var(--opencx-secondary-foreground))}.underline{text-decoration-line:underline}.underline-offset-4{text-underline-offset:4px}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-95{opacity:.95}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-2xl{--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / .25);--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-8{outline-width:8px}.outline-background{outline-color:hsl(var(--opencx-background))}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-offset-background{--tw-ring-offset-color: hsl(var(--opencx-background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.duration-200{animation-duration:.2s}.ease-out{animation-timing-function:cubic-bezier(0,0,.2,1)}.\\[animation-delay\\:-0\\.15s\\]{animation-delay:-.15s}.\\[animation-delay\\:-0\\.3s\\]{animation-delay:-.3s}.\\[field-sizing\\:content\\;\\],.\\[field-sizing\\:content\\]{field-sizing:content}.\\[word-break\\:break-word\\]{word-break:break-word}.required:after{content:" *";color:red}.file\\:border-0::file-selector-button{border-width:0px}.file\\:bg-transparent::file-selector-button{background-color:transparent}.file\\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\\:font-medium::file-selector-button{font-weight:500}.file\\:text-primary-foreground::file-selector-button{color:hsl(var(--opencx-primary-foreground))}.placeholder\\:text-muted-foreground::placeholder{color:hsl(var(--opencx-muted-foreground))}.placeholder\\:text-muted-foreground\\/75::placeholder{color:hsl(var(--opencx-muted-foreground) / .75)}.focus-within\\:border-primary:focus-within{border-color:hsl(var(--opencx-primary))}.hover\\:scale-\\[var\\(--scale\\)\\]:hover{--tw-scale-x: var(--scale);--tw-scale-y: var(--scale);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:border-primary:hover{border-color:hsl(var(--opencx-primary))}.hover\\:bg-secondary:hover{background-color:hsl(var(--opencx-secondary))}.hover\\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.hover\\:text-primary:hover{color:hsl(var(--opencx-primary))}.hover\\:underline:hover{text-decoration-line:underline}.hover\\:opacity-100:hover{opacity:1}.focus\\:bg-accent:focus{background-color:hsl(var(--opencx-accent))}.focus\\:text-accent-foreground:focus{color:hsl(var(--opencx-accent-foreground))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-ring:focus{--tw-ring-color: hsl(var(--opencx-ring))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--opencx-ring))}.focus-visible\\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--opencx-background))}.active\\:scale-95:active{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.active\\:hover\\:scale-\\[calc\\(var\\(--scale\\)-0\\.02\\)\\]:hover:active{--tw-scale-x: calc(var(--scale) - .02);--tw-scale-y: calc(var(--scale) - .02);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\\:active\\:scale-95:active:hover{--tw-scale-x: .95;--tw-scale-y: .95;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.disabled\\:pointer-events-none:disabled{pointer-events:none}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}.group:hover .group-hover\\:active\\:scale-90:active,.group:active .group-active\\:scale-90{--tw-scale-x: .9;--tw-scale-y: .9;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.data-\\[state\\=checked\\]\\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=unchecked\\]\\:translate-x-0[data-state=unchecked]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\\[state\\=checked\\]\\:bg-primary[data-state=checked]{background-color:hsl(var(--opencx-primary))}.data-\\[state\\=open\\]\\:bg-accent[data-state=open]{background-color:hsl(var(--opencx-accent))}.data-\\[state\\=unchecked\\]\\:bg-input[data-state=unchecked]{background-color:hsl(var(--opencx-input))}.data-\\[state\\=open\\]\\:text-muted-foreground[data-state=open]{color:hsl(var(--opencx-muted-foreground))}.data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.data-\\[state\\=open\\]\\:animate-in[data-state=open]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\\[state\\=closed\\]\\:animate-out[data-state=closed]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\\[state\\=closed\\]\\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\\[state\\=open\\]\\:fade-in-0[data-state=open]{--tw-enter-opacity: 0}.data-\\[state\\=closed\\]\\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\\[state\\=open\\]\\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\\[side\\=bottom\\]\\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\\[side\\=left\\]\\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\\[side\\=right\\]\\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\\[side\\=top\\]\\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\\[state\\=closed\\]\\:slide-out-to-left-1\\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\\[state\\=closed\\]\\:slide-out-to-top-\\[48\\%\\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\\[state\\=open\\]\\:slide-in-from-left-1\\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\\[state\\=open\\]\\:slide-in-from-top-\\[48\\%\\][data-state=open]{--tw-enter-translate-y: -48%}.prose-a\\:underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-line:underline}.prose-a\\:decoration-primary :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-color:hsl(var(--opencx-primary))}.rtl\\:-scale-100:where([dir=rtl],[dir=rtl] *){--tw-scale-x: -1;--tw-scale-y: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\\[\\&_span\\]\\:size-1 span{width:.25rem;height:.25rem}.\\[\\&_span\\]\\:bg-secondary-foreground span{background-color:hsl(var(--opencx-secondary-foreground))}.\\[\\&_svg\\]\\:pointer-events-none svg{pointer-events:none}.\\[\\&_svg\\]\\:size-4 svg{width:1rem;height:1rem}.\\[\\&_svg\\]\\:shrink-0 svg{flex-shrink:0}.\\[\\&_svg\\]\\:text-muted-foreground\\/70 svg{color:hsl(var(--opencx-muted-foreground) / .7)}.\\[\\&_svg\\]\\:hover\\:text-primary:hover svg{color:hsl(var(--opencx-primary))}';var wK=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),_K="VisuallyHidden",DO=E.forwardRef((e,t)=>x.jsx(Zt.span,{...e,ref:t,style:{...wK,...e.style}}));DO.displayName=_K;var SK=DO,[Lh,uee]=_u("Tooltip",[bd]),Ih=bd(),MO="TooltipProvider",AK=700,sy="tooltip.open",[CK,oy]=Lh(MO),LO=e=>{const{__scopeTooltip:t,delayDuration:n=AK,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,s=E.useRef(!0),o=E.useRef(!1),l=E.useRef(0);return E.useEffect(()=>{const u=l.current;return()=>window.clearTimeout(u)},[]),x.jsx(CK,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:E.useCallback(()=>{window.clearTimeout(l.current),s.current=!1},[]),onClose:E.useCallback(()=>{window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:o,onPointerInTransitChange:E.useCallback(u=>{o.current=u},[]),disableHoverableContent:i,children:a})};LO.displayName=MO;var _c="Tooltip",[kK,Ph]=Lh(_c),IO=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:s,delayDuration:o}=e,l=oy(_c,e.__scopeTooltip),u=Ih(t),[c,f]=E.useState(null),d=Su(),h=E.useRef(0),g=s??l.disableHoverableContent,b=o??l.delayDuration,T=E.useRef(!1),[m,y]=J0({prop:r,defaultProp:i??!1,onChange:N=>{N?(l.onOpen(),document.dispatchEvent(new CustomEvent(sy))):l.onClose(),a==null||a(N)},caller:_c}),v=E.useMemo(()=>m?T.current?"delayed-open":"instant-open":"closed",[m]),w=E.useCallback(()=>{window.clearTimeout(h.current),h.current=0,T.current=!1,y(!0)},[y]),_=E.useCallback(()=>{window.clearTimeout(h.current),h.current=0,y(!1)},[y]),A=E.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{T.current=!0,y(!0),h.current=0},b)},[b,y]);return E.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),x.jsx(Z2,{...u,children:x.jsx(kK,{scope:t,contentId:d,open:m,stateAttribute:v,trigger:c,onTriggerChange:f,onTriggerEnter:E.useCallback(()=>{l.isOpenDelayedRef.current?A():w()},[l.isOpenDelayedRef,A,w]),onTriggerLeave:E.useCallback(()=>{g?_():(window.clearTimeout(h.current),h.current=0)},[_,g]),onOpen:w,onClose:_,disableHoverableContent:g,children:n})})};IO.displayName=_c;var ly="TooltipTrigger",PO=E.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Ph(ly,n),a=oy(ly,n),s=Ih(n),o=E.useRef(null),l=Kn(t,o,i.onTriggerChange),u=E.useRef(!1),c=E.useRef(!1),f=E.useCallback(()=>u.current=!1,[]);return E.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),x.jsx(Z0,{asChild:!0,...s,children:x.jsx(Zt.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:Vt(e.onPointerMove,d=>{d.pointerType!=="touch"&&!c.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),c.current=!0)}),onPointerLeave:Vt(e.onPointerLeave,()=>{i.onTriggerLeave(),c.current=!1}),onPointerDown:Vt(e.onPointerDown,()=>{i.open&&i.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Vt(e.onFocus,()=>{u.current||i.onOpen()}),onBlur:Vt(e.onBlur,i.onClose),onClick:Vt(e.onClick,i.onClose)})})});PO.displayName=ly;var OK="TooltipPortal",[cee,RK]=Lh(OK,{forceMount:void 0}),fl="TooltipContent",BO=E.forwardRef((e,t)=>{const n=RK(fl,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...a}=e,s=Ph(fl,e.__scopeTooltip);return x.jsx(Ou,{present:r||s.open,children:s.disableHoverableContent?x.jsx(UO,{side:i,...a,ref:t}):x.jsx(NK,{side:i,...a,ref:t})})}),NK=E.forwardRef((e,t)=>{const n=Ph(fl,e.__scopeTooltip),r=oy(fl,e.__scopeTooltip),i=E.useRef(null),a=Kn(t,i),[s,o]=E.useState(null),{trigger:l,onClose:u}=n,c=i.current,{onPointerInTransitChange:f}=r,d=E.useCallback(()=>{o(null),f(!1)},[f]),h=E.useCallback((g,b)=>{const T=g.currentTarget,m={x:g.clientX,y:g.clientY},y=PK(m,T.getBoundingClientRect()),v=BK(m,y),w=UK(b.getBoundingClientRect()),_=jK([...v,...w]);o(_),f(!0)},[f]);return E.useEffect(()=>()=>d(),[d]),E.useEffect(()=>{if(l&&c){const g=T=>h(T,c),b=T=>h(T,l);return l.addEventListener("pointerleave",g),c.addEventListener("pointerleave",b),()=>{l.removeEventListener("pointerleave",g),c.removeEventListener("pointerleave",b)}}},[l,c,h,d]),E.useEffect(()=>{if(s){const g=b=>{const T=b.target,m={x:b.clientX,y:b.clientY},y=(l==null?void 0:l.contains(T))||(c==null?void 0:c.contains(T)),v=!zK(m,s);y?d():v&&(d(),u())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[l,c,s,u,d]),x.jsx(UO,{...e,ref:a})}),[DK,MK]=Lh(_c,{isInside:!1}),LK=g5("TooltipContent"),UO=E.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:s,...o}=e,l=Ph(fl,n),u=Ih(n),{onClose:c}=l;return E.useEffect(()=>(document.addEventListener(sy,c),()=>document.removeEventListener(sy,c)),[c]),E.useEffect(()=>{if(l.trigger){const f=d=>{const h=d.target;h!=null&&h.contains(l.trigger)&&c()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,c]),x.jsx(od,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:f=>f.preventDefault(),onDismiss:c,children:x.jsxs(J2,{"data-state":l.stateAttribute,...u,...o,ref:t,style:{...o.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[x.jsx(LK,{children:r}),x.jsx(DK,{scope:n,isInside:!0,children:x.jsx(SK,{id:l.contentId,role:"tooltip",children:i||r})})]})})});BO.displayName=fl;var zO="TooltipArrow",IK=E.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Ih(n);return MK(zO,n).isInside?null:x.jsx(ew,{...i,...r,ref:t})});IK.displayName=zO;function PK(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function BK(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function UK(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function zK(e,t){const{x:n,y:r}=e;let i=!1;for(let a=0,s=t.length-1;a<t.length;s=a++){const o=t[a],l=t[s],u=o.x,c=o.y,f=l.x,d=l.y;c>r!=d>r&&n<(f-u)*(r-c)/(d-c)+u&&(i=!i)}return i}function jK(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),FK(t)}function FK(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const a=t[t.length-1],s=t[t.length-2];if((a.x-s.x)*(i.y-s.y)>=(a.y-s.y)*(i.x-s.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const a=n[n.length-1],s=n[n.length-2];if((a.x-s.x)*(i.y-s.y)>=(a.y-s.y)*(i.x-s.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var HK=LO,VK=IO,qK=PO,jO=BO;const YK=HK,GK=VK,$K=qK,FO=E.forwardRef(({className:e,sideOffset:t=4,...n},r)=>x.jsx(jO,{ref:r,sideOffset:t,className:de("z-50 overflow-hidden max-w-xs rounded-xl bg-primary border text-primary-foreground p-2 text-center align-middle text-xs animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));FO.displayName=jO.displayName;function Sc({children:e,content:t,side:n,align:r}){const{disableTooltips:i}=Lt();return!t||i?e:x.jsxs(GK,{children:[x.jsx($K,{asChild:!0,children:e}),x.jsx(FO,{side:n,align:r,collisionPadding:8,avoidCollisions:!0,children:t})]})}function Bh(e){"@babel/helpers - typeof";return Bh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bh(e)}var XK=/^\s+/,KK=/\s+$/;function ce(e,t){if(e=e||"",t=t||{},e instanceof ce)return e;if(!(this instanceof ce))return new ce(e,t);var n=WK(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}ce.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),n,r,i,a,s,o;return n=t.r/255,r=t.g/255,i=t.b/255,n<=.03928?a=n/12.92:a=Math.pow((n+.055)/1.055,2.4),r<=.03928?s=r/12.92:s=Math.pow((r+.055)/1.055,2.4),i<=.03928?o=i/12.92:o=Math.pow((i+.055)/1.055,2.4),.2126*a+.7152*s+.0722*o},setAlpha:function(t){return this._a=$O(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=VO(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=VO(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this._a==1?"hsv("+n+", "+r+"%, "+i+"%)":"hsva("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHsl:function(){var t=HO(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=HO(this._r,this._g,this._b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this._a==1?"hsl("+n+", "+r+"%, "+i+"%)":"hsla("+n+", "+r+"%, "+i+"%, "+this._roundA+")"},toHex:function(t){return qO(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return eW(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(yt(this._r,255)*100)+"%",g:Math.round(yt(this._g,255)*100)+"%",b:Math.round(yt(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(yt(this._r,255)*100)+"%, "+Math.round(yt(this._g,255)*100)+"%, "+Math.round(yt(this._b,255)*100)+"%)":"rgba("+Math.round(yt(this._r,255)*100)+"%, "+Math.round(yt(this._g,255)*100)+"%, "+Math.round(yt(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:dW[qO(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var n="#"+YO(this._r,this._g,this._b,this._a),r=n,i=this._gradientType?"GradientType = 1, ":"";if(t){var a=ce(t);r="#"+YO(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+i+"startColorstr="+n+",endColorstr="+r+")"},toString:function(t){var n=!!t;t=t||this._format;var r=!1,i=this._a<1&&this._a>=0,a=!n&&i&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return a?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},clone:function(){return ce(this.toString())},_applyModification:function(t,n){var r=t.apply(null,[this].concat([].slice.call(n)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(iW,arguments)},brighten:function(){return this._applyModification(aW,arguments)},darken:function(){return this._applyModification(sW,arguments)},desaturate:function(){return this._applyModification(tW,arguments)},saturate:function(){return this._applyModification(nW,arguments)},greyscale:function(){return this._applyModification(rW,arguments)},spin:function(){return this._applyModification(oW,arguments)},_applyCombination:function(t,n){return t.apply(null,[this].concat([].slice.call(n)))},analogous:function(){return this._applyCombination(cW,arguments)},complement:function(){return this._applyCombination(lW,arguments)},monochromatic:function(){return this._applyCombination(fW,arguments)},splitcomplement:function(){return this._applyCombination(uW,arguments)},triad:function(){return this._applyCombination(GO,[3])},tetrad:function(){return this._applyCombination(GO,[4])}},ce.fromRatio=function(e,t){if(Bh(e)=="object"){var n={};for(var r in e)e.hasOwnProperty(r)&&(r==="a"?n[r]=e[r]:n[r]=Ac(e[r]));e=n}return ce(e,t)};function WK(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,s=!1,o=!1;return typeof e=="string"&&(e=gW(e)),Bh(e)=="object"&&(Bi(e.r)&&Bi(e.g)&&Bi(e.b)?(t=QK(e.r,e.g,e.b),s=!0,o=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Bi(e.h)&&Bi(e.s)&&Bi(e.v)?(r=Ac(e.s),i=Ac(e.v),t=JK(e.h,r,i),s=!0,o="hsv"):Bi(e.h)&&Bi(e.s)&&Bi(e.l)&&(r=Ac(e.s),a=Ac(e.l),t=ZK(e.h,r,a),s=!0,o="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=$O(n),{ok:s,format:e.format||o,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}function QK(e,t,n){return{r:yt(e,255)*255,g:yt(t,255)*255,b:yt(n,255)*255}}function HO(e,t,n){e=yt(e,255),t=yt(t,255),n=yt(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a,s,o=(r+i)/2;if(r==i)a=s=0;else{var l=r-i;switch(s=o>.5?l/(2-r-i):l/(r+i),r){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4;break}a/=6}return{h:a,s,l:o}}function ZK(e,t,n){var r,i,a;e=yt(e,360),t=yt(t,100),n=yt(n,100);function s(u,c,f){return f<0&&(f+=1),f>1&&(f-=1),f<1/6?u+(c-u)*6*f:f<1/2?c:f<2/3?u+(c-u)*(2/3-f)*6:u}if(t===0)r=i=a=n;else{var o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;r=s(l,o,e+1/3),i=s(l,o,e),a=s(l,o,e-1/3)}return{r:r*255,g:i*255,b:a*255}}function VO(e,t,n){e=yt(e,255),t=yt(t,255),n=yt(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),a,s,o=r,l=r-i;if(s=r===0?0:l/r,r==i)a=0;else{switch(r){case e:a=(t-n)/l+(t<n?6:0);break;case t:a=(n-e)/l+2;break;case n:a=(e-t)/l+4;break}a/=6}return{h:a,s,v:o}}function JK(e,t,n){e=yt(e,360)*6,t=yt(t,100),n=yt(n,100);var r=Math.floor(e),i=e-r,a=n*(1-t),s=n*(1-i*t),o=n*(1-(1-i)*t),l=r%6,u=[n,s,a,a,o,n][l],c=[o,n,n,s,a,a][l],f=[a,a,o,n,n,s][l];return{r:u*255,g:c*255,b:f*255}}function qO(e,t,n,r){var i=[Pr(Math.round(e).toString(16)),Pr(Math.round(t).toString(16)),Pr(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function eW(e,t,n,r,i){var a=[Pr(Math.round(e).toString(16)),Pr(Math.round(t).toString(16)),Pr(Math.round(n).toString(16)),Pr(XO(r))];return i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function YO(e,t,n,r){var i=[Pr(XO(r)),Pr(Math.round(e).toString(16)),Pr(Math.round(t).toString(16)),Pr(Math.round(n).toString(16))];return i.join("")}ce.equals=function(e,t){return!e||!t?!1:ce(e).toRgbString()==ce(t).toRgbString()},ce.random=function(){return ce.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function tW(e,t){t=t===0?0:t||10;var n=ce(e).toHsl();return n.s-=t/100,n.s=Uh(n.s),ce(n)}function nW(e,t){t=t===0?0:t||10;var n=ce(e).toHsl();return n.s+=t/100,n.s=Uh(n.s),ce(n)}function rW(e){return ce(e).desaturate(100)}function iW(e,t){t=t===0?0:t||10;var n=ce(e).toHsl();return n.l+=t/100,n.l=Uh(n.l),ce(n)}function aW(e,t){t=t===0?0:t||10;var n=ce(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),ce(n)}function sW(e,t){t=t===0?0:t||10;var n=ce(e).toHsl();return n.l-=t/100,n.l=Uh(n.l),ce(n)}function oW(e,t){var n=ce(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,ce(n)}function lW(e){var t=ce(e).toHsl();return t.h=(t.h+180)%360,ce(t)}function GO(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var n=ce(e).toHsl(),r=[ce(e)],i=360/t,a=1;a<t;a++)r.push(ce({h:(n.h+a*i)%360,s:n.s,l:n.l}));return r}function uW(e){var t=ce(e).toHsl(),n=t.h;return[ce(e),ce({h:(n+72)%360,s:t.s,l:t.l}),ce({h:(n+216)%360,s:t.s,l:t.l})]}function cW(e,t,n){t=t||6,n=n||30;var r=ce(e).toHsl(),i=360/n,a=[ce(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(ce(r));return a}function fW(e,t){t=t||6;for(var n=ce(e).toHsv(),r=n.h,i=n.s,a=n.v,s=[],o=1/t;t--;)s.push(ce({h:r,s:i,v:a})),a=(a+o)%1;return s}ce.mix=function(e,t,n){n=n===0?0:n||50;var r=ce(e).toRgb(),i=ce(t).toRgb(),a=n/100,s={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return ce(s)},ce.readability=function(e,t){var n=ce(e),r=ce(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},ce.isReadable=function(e,t,n){var r=ce.readability(e,t),i,a;switch(a=!1,i=bW(n),i.level+i.size){case"AAsmall":case"AAAlarge":a=r>=4.5;break;case"AAlarge":a=r>=3;break;case"AAAsmall":a=r>=7;break}return a},ce.mostReadable=function(e,t,n){var r=null,i=0,a,s,o,l;n=n||{},s=n.includeFallbackColors,o=n.level,l=n.size;for(var u=0;u<t.length;u++)a=ce.readability(e,t[u]),a>i&&(i=a,r=ce(t[u]));return ce.isReadable(e,r,{level:o,size:l})||!s?r:(n.includeFallbackColors=!1,ce.mostReadable(e,["#fff","#000"],n))};var uy=ce.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},dW=ce.hexNames=hW(uy);function hW(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function $O(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function yt(e,t){pW(e)&&(e="100%");var n=mW(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function Uh(e){return Math.min(1,Math.max(0,e))}function rr(e){return parseInt(e,16)}function pW(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function mW(e){return typeof e=="string"&&e.indexOf("%")!=-1}function Pr(e){return e.length==1?"0"+e:""+e}function Ac(e){return e<=1&&(e=e*100+"%"),e}function XO(e){return Math.round(parseFloat(e)*255).toString(16)}function KO(e){return rr(e)/255}var Br=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Bi(e){return!!Br.CSS_UNIT.exec(e)}function gW(e){e=e.replace(XK,"").replace(KK,"").toLowerCase();var t=!1;if(uy[e])e=uy[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n;return(n=Br.rgb.exec(e))?{r:n[1],g:n[2],b:n[3]}:(n=Br.rgba.exec(e))?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Br.hsl.exec(e))?{h:n[1],s:n[2],l:n[3]}:(n=Br.hsla.exec(e))?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Br.hsv.exec(e))?{h:n[1],s:n[2],v:n[3]}:(n=Br.hsva.exec(e))?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Br.hex8.exec(e))?{r:rr(n[1]),g:rr(n[2]),b:rr(n[3]),a:KO(n[4]),format:t?"name":"hex8"}:(n=Br.hex6.exec(e))?{r:rr(n[1]),g:rr(n[2]),b:rr(n[3]),format:t?"name":"hex"}:(n=Br.hex4.exec(e))?{r:rr(n[1]+""+n[1]),g:rr(n[2]+""+n[2]),b:rr(n[3]+""+n[3]),a:KO(n[4]+""+n[4]),format:t?"name":"hex8"}:(n=Br.hex3.exec(e))?{r:rr(n[1]+""+n[1]),g:rr(n[2]+""+n[2]),b:rr(n[3]+""+n[3]),format:t?"name":"hex"}:!1}function bW(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),n!=="small"&&n!=="large"&&(n="small"),{level:t,size:n}}const WO=450;function Ui(){const[e,t]=zn.useState(()=>(window.top||window).innerWidth<WO);return zn.useEffect(()=>{const n=window.top||window,r=()=>{t(n.innerWidth<WO)};return r(),n.addEventListener("resize",r),()=>{n.removeEventListener("resize",r)}},[]),{isSmallScreen:e}}const zh={transitionTimingFunction:"cubic-bezier(0.16, 1, 0.3, 1)",transitionDuration:"1000ms"};function Ss(){var f,d,h,g,b,T,m,y,v,w,_,A,N,L,F,R,q,j,ne,K,W,H,V,z,te,O,he,je,M,Le,pe,Pe,Yt,Qe,Ut,ut,Nt,Gt,ye,Ie,$e,Re,et,$t,Be,tt,tn;const{dir:e}=Rg(),{isSmallScreen:t}=Ui(),{theme:n,inline:r}=Lt(),i=cn=>r?"100%":cn,a=(cn,_r)=>t?`100dv${cn}`:_r,s=(cn,_r)=>i(a(cn,_r)),o={zIndex:((f=n==null?void 0:n.widgetTrigger)==null?void 0:f.zIndex)??1e7,offset:{bottom:((h=(d=n==null?void 0:n.widgetTrigger)==null?void 0:d.offset)==null?void 0:h.bottom)??20,right:((b=(g=n==null?void 0:n.widgetTrigger)==null?void 0:g.offset)==null?void 0:b.right)??(e==="ltr"?20:"initial"),left:((m=(T=n==null?void 0:n.widgetTrigger)==null?void 0:T.offset)==null?void 0:m.left)??(e==="rtl"?20:"initial")},size:{button:((v=(y=n==null?void 0:n.widgetTrigger)==null?void 0:y.size)==null?void 0:v.button)??48,icon:((_=(w=n==null?void 0:n.widgetTrigger)==null?void 0:w.size)==null?void 0:_.icon)??24}},l=(()=>{const cn=e==="ltr"?o.offset.right:o.offset.left;return typeof cn!="number"?0:cn})(),u={palette:(n==null?void 0:n.palette)??"neutral",primaryColor:(n==null?void 0:n.primaryColor)??"hsl(0 0% 9%)",widgetTrigger:o,widgetContentContainer:{borderRadius:t?"0px":((A=n==null?void 0:n.widgetContentContainer)==null?void 0:A.borderRadius)??"32px",zIndex:((N=n==null?void 0:n.widgetContentContainer)==null?void 0:N.zIndex)??o.zIndex+1,outline:((L=n==null?void 0:n.widgetContentContainer)==null?void 0:L.outline)??"none",outlineColor:((F=n==null?void 0:n.widgetContentContainer)==null?void 0:F.outlineColor)??"hsl(0 0% 50% / .5)",boxShadow:((R=n==null?void 0:n.widgetContentContainer)==null?void 0:R.boxShadow)??"0 0px 100px 0px rgb(0 0 0 / 0.25)",transitionProperty:((q=n==null?void 0:n.widgetContentContainer)==null?void 0:q.transitionProperty)??"all",transitionTimingFunction:((j=n==null?void 0:n.widgetContentContainer)==null?void 0:j.transitionTimingFunction)??zh.transitionTimingFunction,transitionDuration:((ne=n==null?void 0:n.widgetContentContainer)==null?void 0:ne.transitionDuration)??zh.transitionDuration,offset:{side:t?0:o.offset.bottom+o.size.button+el.y*2+(((W=(K=n==null?void 0:n.widgetContentContainer)==null?void 0:K.offset)==null?void 0:W.side)??10),align:t?0:l+(((V=(H=n==null?void 0:n.widgetContentContainer)==null?void 0:H.offset)==null?void 0:V.align)??0)}},screens:{welcome:{width:s("w",((te=(z=n==null?void 0:n.screens)==null?void 0:z.welcome)==null?void 0:te.width)??"400px"),minHeight:s("h",((he=(O=n==null?void 0:n.screens)==null?void 0:O.welcome)==null?void 0:he.minHeight)??"1px")},sessions:{width:s("w",((M=(je=n==null?void 0:n.screens)==null?void 0:je.sessions)==null?void 0:M.width)??"450px"),height:s("h",((pe=(Le=n==null?void 0:n.screens)==null?void 0:Le.sessions)==null?void 0:pe.height)??"600px")},chat:{width:s("w",((Yt=(Pe=n==null?void 0:n.screens)==null?void 0:Pe.chat)==null?void 0:Yt.width)??"525px"),height:s("h",((Ut=(Qe=n==null?void 0:n.screens)==null?void 0:Qe.chat)==null?void 0:Ut.height)??"700px"),withCanvas:{width:s("w",((Gt=(Nt=(ut=n==null?void 0:n.screens)==null?void 0:ut.chat)==null?void 0:Nt.withCanvas)==null?void 0:Gt.width)??"min(1050px, 100vw)"),height:s("h",(($e=(Ie=(ye=n==null?void 0:n.screens)==null?void 0:ye.chat)==null?void 0:Ie.withCanvas)==null?void 0:$e.height)??"min(800px, 100vh)"),transitionTimingFunction:(($t=(et=(Re=n==null?void 0:n.screens)==null?void 0:Re.chat)==null?void 0:et.withCanvas)==null?void 0:$t.transitionTimingFunction)??zh.transitionTimingFunction,transitionDuration:((tn=(tt=(Be=n==null?void 0:n.screens)==null?void 0:Be.chat)==null?void 0:tt.withCanvas)==null?void 0:tn.transitionDuration)??zh.transitionDuration}}}},c={maxHeight:s("h",`calc(
|
|
312
312
|
100vh
|
|
313
313
|
- ${u.widgetTrigger.offset.bottom}px
|
|
314
314
|
- ${u.widgetContentContainer.offset.side}px
|
|
@@ -328,7 +328,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
328
328
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qW(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function YW(e){if(Array.isArray(e))return gy(e)}function hR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function pR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hR(Object(n),!0).forEach(function(r){mR(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kc(e,t){return XW(e)||$W(e,t)||gR(e,t)||GW()}function GW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
329
329
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gR(e,t){if(e){if(typeof e=="string")return gy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gy(e,t)}}function gy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $W(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,s,o;try{for(n=n.call(e);!(i=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));i=!0);}catch(l){a=!0,o=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw o}}return r}}function XW(e){if(Array.isArray(e))return e}var KW=typeof my=="function"?my:my.default,WW="file-invalid-type",QW="file-too-large",ZW="file-too-small",JW="too-many-files",eQ=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),r=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:WW,message:"File type must be ".concat(r)}},bR=function(t){return{code:QW,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},yR=function(t){return{code:ZW,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},tQ={code:JW,message:"Too many files"};function vR(e,t){var n=e.type==="application/x-moz-file"||KW(e,t);return[n,n?null:eQ(t)]}function xR(e,t,n){if(As(e.size))if(As(t)&&As(n)){if(e.size>n)return[!1,bR(n)];if(e.size<t)return[!1,yR(t)]}else{if(As(t)&&e.size<t)return[!1,yR(t)];if(As(n)&&e.size>n)return[!1,bR(n)]}return[!0,null]}function As(e){return e!=null}function nQ(e){var t=e.files,n=e.accept,r=e.minSize,i=e.maxSize,a=e.multiple,s=e.maxFiles,o=e.validator;return!a&&t.length>1||a&&s>=1&&t.length>s?!1:t.every(function(l){var u=vR(l,n),c=kc(u,1),f=c[0],d=xR(l,r,i),h=kc(d,1),g=h[0],b=o?o(l):null;return f&&g&&!b})}function Fh(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Hh(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function ER(e){e.preventDefault()}function rQ(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function iQ(e){return e.indexOf("Edge/")!==-1}function aQ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return rQ(e)||iQ(e)}function si(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];return t.some(function(o){return!Fh(r)&&o&&o.apply(void 0,[r].concat(a)),Fh(r)})}}function sQ(){return"showOpenFilePicker"in window}function oQ(e){if(As(e)){var t=Object.entries(e).filter(function(n){var r=kc(n,2),i=r[0],a=r[1],s=!0;return TR(i)||(console.warn('Skipped "'.concat(i,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),s=!1),(!Array.isArray(a)||!a.every(wR))&&(console.warn('Skipped "'.concat(i,'" because an invalid file extension was provided.')),s=!1),s}).reduce(function(n,r){var i=kc(r,2),a=i[0],s=i[1];return pR(pR({},n),{},mR({},a,s))},{});return[{description:"Files",accept:t}]}return e}function lQ(e){if(As(e))return Object.entries(e).reduce(function(t,n){var r=kc(n,2),i=r[0],a=r[1];return[].concat(dR(t),[i],dR(a))},[]).filter(function(t){return TR(t)||wR(t)}).join(",")}function uQ(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function cQ(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function TR(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||e==="application/*"||/\w+\/[-+.\w]+/g.test(e)}function wR(e){return/^.*\.[\w]+$/.test(e)}var fQ=["children"],dQ=["open"],hQ=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],pQ=["refKey","onChange","onClick"];function mQ(e){return yQ(e)||bQ(e)||_R(e)||gQ()}function gQ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
330
330
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bQ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yQ(e){if(Array.isArray(e))return yy(e)}function by(e,t){return EQ(e)||xQ(e,t)||_R(e,t)||vQ()}function vQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
331
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _R(e,t){if(e){if(typeof e=="string")return yy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yy(e,t)}}function yy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xQ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,s,o;try{for(n=n.call(e);!(i=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));i=!0);}catch(l){a=!0,o=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw o}}return r}}function EQ(e){if(Array.isArray(e))return e}function SR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Et(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SR(Object(n),!0).forEach(function(r){vy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vh(e,t){if(e==null)return{};var n=TQ(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function TQ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var xy=E.forwardRef(function(e,t){var n=e.children,r=Vh(e,fQ),i=CR(r),a=i.open,s=Vh(i,dQ);return E.useImperativeHandle(t,function(){return{open:a}},[a]),zn.createElement(E.Fragment,null,n(Et(Et({},s),{},{open:a})))});xy.displayName="Dropzone";var AR={disabled:!1,getFilesFromEvent:LW,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};xy.defaultProps=AR,xy.propTypes={children:at.func,accept:at.objectOf(at.arrayOf(at.string)),multiple:at.bool,preventDropOnDocument:at.bool,noClick:at.bool,noKeyboard:at.bool,noDrag:at.bool,noDragEventsBubbling:at.bool,minSize:at.number,maxSize:at.number,maxFiles:at.number,disabled:at.bool,getFilesFromEvent:at.func,onFileDialogCancel:at.func,onFileDialogOpen:at.func,useFsAccessApi:at.bool,autoFocus:at.bool,onDragEnter:at.func,onDragLeave:at.func,onDragOver:at.func,onDrop:at.func,onDropAccepted:at.func,onDropRejected:at.func,onError:at.func,validator:at.func};var Ey={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function CR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Et(Et({},AR),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,a=t.maxSize,s=t.minSize,o=t.multiple,l=t.maxFiles,u=t.onDragEnter,c=t.onDragLeave,f=t.onDragOver,d=t.onDrop,h=t.onDropAccepted,g=t.onDropRejected,b=t.onFileDialogCancel,T=t.onFileDialogOpen,m=t.useFsAccessApi,y=t.autoFocus,v=t.preventDropOnDocument,w=t.noClick,_=t.noKeyboard,A=t.noDrag,N=t.noDragEventsBubbling,L=t.onError,F=t.validator,R=E.useMemo(function(){return lQ(n)},[n]),q=E.useMemo(function(){return oQ(n)},[n]),j=E.useMemo(function(){return typeof T=="function"?T:kR},[T]),ne=E.useMemo(function(){return typeof b=="function"?b:kR},[b]),K=E.useRef(null),W=E.useRef(null),H=E.useReducer(wQ,Ey),V=by(H,2),z=V[0],te=V[1],O=z.isFocused,he=z.isFileDialogActive,je=E.useRef(typeof window<"u"&&window.isSecureContext&&m&&sQ()),M=function(){!je.current&&he&&setTimeout(function(){if(W.current){var se=W.current.files;se.length||(te({type:"closeDialog"}),ne())}},300)};E.useEffect(function(){return window.addEventListener("focus",M,!1),function(){window.removeEventListener("focus",M,!1)}},[W,he,ne,je]);var Le=E.useRef([]),pe=function(se){K.current&&K.current.contains(se.target)||(se.preventDefault(),Le.current=[])};E.useEffect(function(){return v&&(document.addEventListener("dragover",ER,!1),document.addEventListener("drop",pe,!1)),function(){v&&(document.removeEventListener("dragover",ER),document.removeEventListener("drop",pe))}},[K,v]),E.useEffect(function(){return!r&&y&&K.current&&K.current.focus(),function(){}},[K,y,r]);var Pe=E.useCallback(function(re){L?L(re):console.error(re)},[L]),Yt=E.useCallback(function(re){re.preventDefault(),re.persist(),tt(re),Le.current=[].concat(mQ(Le.current),[re.target]),Hh(re)&&Promise.resolve(i(re)).then(function(se){if(!(Fh(re)&&!N)){var B=se.length,G=B>0&&nQ({files:se,accept:R,minSize:s,maxSize:a,multiple:o,maxFiles:l,validator:F}),oe=B>0&&!G;te({isDragAccept:G,isDragReject:oe,isDragActive:!0,type:"setDraggedFiles"}),u&&u(re)}}).catch(function(se){return Pe(se)})},[i,u,Pe,N,R,s,a,o,l,F]),Qe=E.useCallback(function(re){re.preventDefault(),re.persist(),tt(re);var se=Hh(re);if(se&&re.dataTransfer)try{re.dataTransfer.dropEffect="copy"}catch{}return se&&f&&f(re),!1},[f,N]),Ut=E.useCallback(function(re){re.preventDefault(),re.persist(),tt(re);var se=Le.current.filter(function(G){return K.current&&K.current.contains(G)}),B=se.indexOf(re.target);B!==-1&&se.splice(B,1),Le.current=se,!(se.length>0)&&(te({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Hh(re)&&c&&c(re))},[K,c,N]),ut=E.useCallback(function(re,se){var B=[],G=[];re.forEach(function(oe){var be=vR(oe,R),ve=by(be,2),nn=ve[0],Bn=ve[1],An=xR(oe,s,a),ar=by(An,2),Un=ar[0],zt=ar[1],sr=F?F(oe):null;if(nn&&Un&&!sr)B.push(oe);else{var Cn=[Bn,zt];sr&&(Cn=Cn.concat(sr)),G.push({file:oe,errors:Cn.filter(function(ji){return ji})})}}),(!o&&B.length>1||o&&l>=1&&B.length>l)&&(B.forEach(function(oe){G.push({file:oe,errors:[tQ]})}),B.splice(0)),te({acceptedFiles:B,fileRejections:G,isDragReject:G.length>0,type:"setFiles"}),d&&d(B,G,se),G.length>0&&g&&g(G,se),B.length>0&&h&&h(B,se)},[te,o,R,s,a,l,d,h,g,F]),Nt=E.useCallback(function(re){re.preventDefault(),re.persist(),tt(re),Le.current=[],Hh(re)&&Promise.resolve(i(re)).then(function(se){Fh(re)&&!N||ut(se,re)}).catch(function(se){return Pe(se)}),te({type:"reset"})},[i,ut,Pe,N]),Gt=E.useCallback(function(){if(je.current){te({type:"openDialog"}),j();var re={multiple:o,types:q};window.showOpenFilePicker(re).then(function(se){return i(se)}).then(function(se){ut(se,null),te({type:"closeDialog"})}).catch(function(se){uQ(se)?(ne(se),te({type:"closeDialog"})):cQ(se)?(je.current=!1,W.current?(W.current.value=null,W.current.click()):Pe(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):Pe(se)});return}W.current&&(te({type:"openDialog"}),j(),W.current.value=null,W.current.click())},[te,j,ne,m,ut,Pe,q,o]),ye=E.useCallback(function(re){!K.current||!K.current.isEqualNode(re.target)||(re.key===" "||re.key==="Enter"||re.keyCode===32||re.keyCode===13)&&(re.preventDefault(),Gt())},[K,Gt]),Ie=E.useCallback(function(){te({type:"focus"})},[]),$e=E.useCallback(function(){te({type:"blur"})},[]),Re=E.useCallback(function(){w||(aQ()?setTimeout(Gt,0):Gt())},[w,Gt]),et=function(se){return r?null:se},$t=function(se){return _?null:et(se)},Be=function(se){return A?null:et(se)},tt=function(se){N&&se.stopPropagation()},tn=E.useMemo(function(){return function(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},se=re.refKey,B=se===void 0?"ref":se,G=re.role,oe=re.onKeyDown,be=re.onFocus,ve=re.onBlur,nn=re.onClick,Bn=re.onDragEnter,An=re.onDragOver,ar=re.onDragLeave,Un=re.onDrop,zt=Vh(re,hQ);return Et(Et(vy({onKeyDown:$t(si(oe,ye)),onFocus:$t(si(be,Ie)),onBlur:$t(si(ve,$e)),onClick:et(si(nn,Re)),onDragEnter:Be(si(Bn,Yt)),onDragOver:Be(si(An,Qe)),onDragLeave:Be(si(ar,Ut)),onDrop:Be(si(Un,Nt)),role:typeof G=="string"&&G!==""?G:"presentation"},B,K),!r&&!_?{tabIndex:0}:{}),zt)}},[K,ye,Ie,$e,Re,Yt,Qe,Ut,Nt,_,A,r]),cn=E.useCallback(function(re){re.stopPropagation()},[]),_r=E.useMemo(function(){return function(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},se=re.refKey,B=se===void 0?"ref":se,G=re.onChange,oe=re.onClick,be=Vh(re,pQ),ve=vy({accept:R,multiple:o,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:et(si(G,Nt)),onClick:et(si(oe,cn)),tabIndex:-1},B,W);return Et(Et({},ve),be)}},[W,n,o,Nt,r]);return Et(Et({},z),{},{isFocused:O&&!r,getRootProps:tn,getInputProps:_r,rootRef:K,inputRef:W,open:et(Gt)})}function wQ(e,t){switch(t.type){case"focus":return Et(Et({},e),{},{isFocused:!0});case"blur":return Et(Et({},e),{},{isFocused:!1});case"openDialog":return Et(Et({},Ey),{},{isFileDialogActive:!0});case"closeDialog":return Et(Et({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Et(Et({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Et(Et({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return Et({},Ey);default:return e}}function kR(){}const OR={en:{"write-a-message":"Write a message...","session-closed-lead":"Your issue has been resolved!","new-conversation":"New conversation","welcome-title":"Welcome to our support chat","welcome-description":"We're here to help! Start a conversation and we'll get back to you as soon as possible.","your-name":"Your name","your-email":"Your email address","start-chat":"Talk to support","starting-chat":"Connecting...","i-need-more-help":"I need more help","this-was-helpful":"This was helpful",optional:"Optional","no-conversations-yet":"No conversations yet","back-to-conversations":"Back to conversations","closed-conversations":"Closed conversations"},ar:{"write-a-message":"اكتب رسالة...","session-closed-lead":"تم حل مشكلتك!","new-conversation":"محادثة جديدة","welcome-title":"مرحبًا بك في دردشة الدعم الخاصة بنا","welcome-description":"نحن هنا للمساعدة! ابدأ محادثة وسنرد عليك في أقرب وقت ممكن.","your-name":"اسمك","your-email":"عنوان بريدك الإلكتروني","start-chat":"تحدث إلى الدعم","starting-chat":"جاري الاتصال...","i-need-more-help":"أحتاج المزيد من المساعدة","this-was-helpful":"كان هذا مفيدًا",optional:"اختياري","no-conversations-yet":"لا يوجد محادثات","back-to-conversations":"العودة إلى المحادثات","closed-conversations":"المحادثات المغلقة"},nl:{"write-a-message":"Schrijf een bericht...","session-closed-lead":"Uw probleem is opgelost!","new-conversation":"Nieuw gesprek","welcome-title":"Welkom bij onze supportchat","welcome-description":"We zijn hier om te helpen! Begin een gesprek en we nemen zo snel mogelijk contact met u op.","your-name":"Uw naam","your-email":"Uw e-mailadres","start-chat":"Praat met ondersteuning","starting-chat":"Verbinding maken...","i-need-more-help":"Ik heb nog meer hulp nodig","this-was-helpful":"Mijn vraag is opgelost",optional:"Optioneel","no-conversations-yet":"Nog geen gesprekken","back-to-conversations":"Terug naar gesprekken","closed-conversations":"Afgesloten gesprekken"},fr:{"write-a-message":"Écrivez un message...","session-closed-lead":"Votre problème a été résolu !","new-conversation":"Nouvelle conversation","welcome-title":"Bienvenue dans notre chat de support","welcome-description":"Nous sommes là pour vous aider ! Commencez une conversation et nous vous répondrons dès que possible.","your-name":"Votre nom","your-email":"Votre adresse e-mail","start-chat":"Parler au support","starting-chat":"Connexion...","i-need-more-help":"Je besoin d'aide plus","this-was-helpful":"C'était utile",optional:"Optionnel","no-conversations-yet":"Aucune conversation pour le moment","back-to-conversations":"Retour aux conversations","closed-conversations":"Conversations fermées"},de:{"write-a-message":"Nachricht schreiben...","session-closed-lead":"Ihr Problem wurde gelöst!","new-conversation":"Neue Konversation","welcome-title":"Willkommen in unserem Support-Chat","welcome-description":"Wir sind hier, um zu helfen! Beginnen Sie ein Gesprách und wir werden so schnell wie mogelijk antworten.","your-name":"Ihr Name","your-email":"Ihre E-Mail-Adresse","start-chat":"Mit dem Support sprechen","starting-chat":"Verbindung wird hergestellt...","i-need-more-help":"Ich brauche weitere Hilfe","this-was-helpful":"Dies war hilfreich",optional:"Optional","no-conversations-yet":"noch keine Gespräche","back-to-conversations":"Zurück zur Konversationen","closed-conversations":"Geschlossene Konversationen"},pt:{"write-a-message":"Escreva uma mensagem...","session-closed-lead":"Seu problema foi resolvido!","new-conversation":"Nova conversa","welcome-title":"Bem-vindo ao nosso chat de suporte","welcome-description":"Estamos aqui para ajudar! Inicie uma conversa e responderemos o mais rápido possível.","your-name":"Seu nome","your-email":"Seu endereço de email","start-chat":"Falar com o suporte","starting-chat":"Conectando...","i-need-more-help":"preciso de mais ajuda","this-was-helpful":"Isso foi útil",optional:"Opcional","no-conversations-yet":"Nenhuma conversa ainda","back-to-conversations":"Voltar para conversas","closed-conversations":"Conversas fechadas"},es:{"write-a-message":"Escribe un mensaje...","session-closed-lead":"¡Tu problema fue resuelto!","new-conversation":"Nueva conversación","welcome-title":"Bienvenido a nuestro chat de soporte","welcome-description":"¡Estamos aquí para ayudarte! Inicia una conversación y responderemos lo antes posible.","your-name":"Tu nombre","your-email":"Tu correo electrónico","start-chat":"Hablar con soporte","starting-chat":"Conectando...","i-need-more-help":"Necesito más ayuda","this-was-helpful":"Esto fue útil",optional:"Opcional","no-conversations-yet":"Sin conversaciones aún","back-to-conversations":"Volver a conversaciones","closed-conversations":"Conversaciones cerradas"},tr:{"write-a-message":"Bir mesaj yazın...","session-closed-lead":"Sorununuz çözüldü!","new-conversation":"Yeni konuşma","welcome-title":"Destek sohbetimize hoş geldiniz","welcome-description":"Yardım etmek için buradayız! Bir konuşma başlatın, en kısa sürede size geri döneceğiz.","your-name":"Adınız","your-email":"E-posta adresiniz","start-chat":"Destekle konuş","starting-chat":"Bağlanıyor...","i-need-more-help":"Daha fazla yardıma ihtiyacım var","this-was-helpful":"Bu yardımcı oldu",optional:"İsteğe bağlı","no-conversations-yet":"Henüz konuşma yok","back-to-conversations":"Konuşmalara geri dön","closed-conversations":"Kapatılan konuşmalar"}},_Q=Object.keys(OR);function SQ(e){return _Q.includes(e)}function AQ(e,t){const n=OR[t];return n&&n[e]||""}function hl(){const{dir:e}=Rg(),t=Lt();return E.useMemo(()=>{const n=SQ(t.language)?t.language:"en";return{t:r=>AQ(r,n),language:n,dir:n==="ar"?"rtl":"ltr",hostDocumentDir:e}},[t.language,e])}function Ty({suggestion:e,className:t,...n}){const{sendMessage:r}=Ea(),i=()=>{const a=e.trim();a&&r({content:a})};return x.jsx(qt,{...Ve("chat/suggested_reply_btn"),size:"sm",className:de("rounded-xl w-fit",t),...n,onClick:i,children:e})}function CQ(){const{t:e}=hl(),t=[e("i-need-more-help"),e("this-was-helpful")];return x.jsx("div",{...Ve("chat/might_solve_user_issue_suggested_replies_container"),className:"flex items-center gap-2 p-2 pb-0 flex-wrap",children:t.map(n=>x.jsx(Ty,{suggestion:n,className:"flex-1"},n))})}function kQ({file:{status:e,file:t,error:n},onCancel:r}){const[i,a]=E.useState(null);E.useEffect(()=>{if(!t.type.startsWith("image/"))return;const l=new FileReader;return l.onload=()=>a(l.result),l.onerror=()=>console.error("Error reading file"),l.readAsDataURL(t),()=>l.abort()},[t]);const s=()=>{switch(e){case"uploading":return x.jsx(bF,{className:"size-4 animate-spin"});case"error":return x.jsx(uF,{className:"size-4 text-destructive"});default:return null}},o=()=>{const l=t.type.split("/")[0];return l==="image"&&i?x.jsx("img",{src:typeof i=="string"?i:"",className:"object-cover bg-secondary size-full",alt:t.name}):l==="audio"?x.jsx(hF,{}):l==="video"?x.jsx(pF,{}):x.jsx(mF,{})};return x.jsx(Sc,{side:"bottom",content:e==="error"?x.jsxs("span",{className:"text-destructive",children:["Failed to upload: ",n]}):t.name,children:x.jsxs("div",{className:de(e==="uploading"&&"opacity-50","group","size-12 border rounded-2xl overflow-hidden relative","flex items-center justify-center shrink-0"),children:[x.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:s()}),x.jsx("button",{type:"button",className:de("absolute bg-black/50 inset-0 size-full z-10 opacity-0","flex items-center justify-center","opacity-0 group-hover:opacity-100 transition"),onClick:r,children:x.jsx(oh,{className:"size-4 text-primary-foreground"})}),x.jsx(o,{})]})})}function OQ(){var A;const{isSmallScreen:e}=Ui(),t=E.useRef(null),{sendMessage:n}=Ea(),{sessionState:r}=ki(),{t:i}=hl(),[a,s]=E.useState(""),{allFiles:o,emptyTheFiles:l,handleCancelUpload:u,appendFiles:c,isUploading:f,successFiles:d}=v8(),h=!!((A=r.session)!=null&&A.isHandedOff),{isAwaitingBotReply:g}=x_(),b=N=>{c(N)},T=!a.trim()&&d.length===0,m=async()=>{if(g||T)return;f&&console.info("please wait for the file(s) to upload");const N=a.trim();n({content:N,attachments:d.flatMap(L=>L.fileUrl?[{url:L.fileUrl,type:L.file.type,name:L.file.name,id:L.id,size:L.file.size}]:[])}),s(""),l()},{getRootProps:y,getInputProps:v,open:w}=CR({onDrop:b,noClick:!0,onDropRejected(){console.error("unsupported file type, or the file is too large")},maxSize:5*1024*1024,accept:h?{"text/*":[".txt"],"image/*":[".png",".jpg",".jpeg",".gif"],"application/pdf":[".pdf"]}:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg"],"image/gif":[".gif"],"image/webp":[".webp"]}}),_=N=>{const L=N.clipboardData;L&&L.files.length>0&&b(Array.from(L.files))};return x.jsxs("div",{...Ve("chat/input_box/root"),className:"p-2 relative space-y-1",...y(),children:[x.jsx("input",{...v()}),x.jsxs("div",{...Ve("chat/input_box/inner_root"),className:de("transition-all","bg-white","relative rounded-3xl flex flex-col gap-2 p-2","hover:border-primary focus-within:border-primary"),children:[x.jsxs("div",{...Ve("chat/input_box/textarea_and_attachments_container"),className:"flex flex-col gap-2",children:[o.length>0&&x.jsx("div",{...Ve("chat/input_box/attachments_container"),className:"flex items-center gap-1",children:x.jsx(Pn,{mode:"popLayout",children:o.map(N=>x.jsx(it,{snapExit:!0,children:x.jsx(kQ,{onCancel:()=>u(N.id),file:N})},N.id))})}),x.jsx("textarea",{...Ve("chat/input_box/textarea"),onPaste:_,ref:t,id:"chat-input",value:a,rows:3,className:de("max-h-16 [field-sizing:content]","w-full resize-none px-2",o.length===0&&"pt-1","bg-transparent outline-none","placeholder:text-muted-foreground",e?"text-[16px]":"text-sm"),onChange:N=>s(N.target.value),onKeyDown:async N=>{N.key==="Enter"&&!N.shiftKey&&(N.preventDefault(),m())},placeholder:i("write-a-message")})]}),x.jsxs("div",{className:"gap-2 flex justify-between",children:[x.jsx(Sc,{side:"top",align:"start",content:"attach files, (maximum size 5mb)",children:x.jsx(qt,{onClick:w,size:"fit",variant:"ghost",className:de("rounded-full size-8 flex items-center justify-center p-0 overflow-hidden"),children:x.jsx(Pn,{mode:"wait",children:h?x.jsx(it,{children:x.jsx(wF,{className:"size-4"})},"paper-clip"):x.jsx(it,{children:x.jsx(gF,{className:"size-4"})},"image-icon")})})}),x.jsx(Sc,{content:"send message",side:"top",align:"end",children:x.jsx(qt,{size:"fit",onClick:m,disabled:g||f||T,className:"rounded-full size-8 flex items-center justify-center p-0",children:x.jsx(Pn,{mode:"wait",children:g||f?x.jsx(it,{snapExit:!0,children:x.jsx(vC,{className:"size-4 animate-spin animate-iteration-infinite"})},"loading"):x.jsx(it,{snapExit:!0,children:x.jsx(rF,{className:"size-4"})},"send")})})})]})]})]})}function RQ(){const{widgetCtx:e}=_n(),{router:t}=Lt(),{canCreateNewSession:n}=ki(),{toSessionsScreen:r}=Oi(),{t:i}=hl();return x.jsx("div",{className:"p-2",children:x.jsxs("div",{className:"p-2 bg-muted rounded-3xl space-y-2",children:[x.jsxs("div",{className:"ps-2 flex items-center gap-1",children:[x.jsx(yC,{className:"size-4 text-emerald-600"}),x.jsx("h2",{className:"text-sm font-medium",children:i("session-closed-lead")})]}),x.jsx("div",{children:n||t!=null&&t.chatScreenOnly?x.jsx(qt,{onClick:e.resetChat,className:"rounded-2xl w-full",children:i("new-conversation")}):x.jsx(qt,{onClick:r,className:"rounded-2xl w-full",children:i("back-to-conversations")})})]})})}function NQ(){var s;const{initialQuestions:e,initialQuestionsPosition:t,thisWasHelpfulOrNot:n}=Lt(),{sessionState:r}=ki(),{messagesState:i}=Ea(),a=i.messages.length===0;return x.jsx("footer",{children:x.jsx("div",{children:x.jsx(Pn,{mode:"wait",children:r.session&&!((s=r.session)!=null&&s.isOpened)?x.jsx(it,{className:"overflow-hidden",overrides:{initial:{height:0},animate:{height:"auto"},exit:{height:0}},children:x.jsx(RQ,{})},"session-closed"):x.jsxs(it,{className:"overflow-hidden",overrides:{initial:{height:0},animate:{height:"auto"},exit:{height:0}},children:[i.lastAIResMightSolveUserIssue&&(n==null?void 0:n.enabled)!==!1&&x.jsx(CQ,{}),a&&e&&t!=="below-initial-messages"&&x.jsx("div",{className:"flex items-center flex-row justify-end gap-2 flex-wrap px-2",children:e==null?void 0:e.map((o,l)=>x.jsx(Ty,{suggestion:o},`${o}-${l}`))}),x.jsx(OQ,{})]},"chat-input")})})})}function DQ({isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n,...r}){const{componentStore:i}=_n();if(r.data.action){const s=i.getComponent(r.data.action.name);if(s)return x.jsx(s,{...r,id:r.id,isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n})}const a=i.getComponent(r.component);return a?x.jsx(a,{...r,id:r.id,isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n}):x.jsx(hh,{...r,isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n})}function wy({messages:e,agent:t,suggestedReplies:n}){return x.jsxs("div",{...Ve("chat/agent_msg_group/root"),className:de("flex items-end gap-2"),children:[x.jsx(Sc,{content:t==null?void 0:t.name,side:"right",align:"end",children:x.jsx(ay,{...Ve("chat/agent_msg_group/root/avatar"),agent:t,className:"hidden"})}),x.jsxs("div",{className:de("flex-1 flex flex-col gap-2"),children:[x.jsxs("div",{...Ve("chat/agent_msg_group/avatar_and_msgs/root"),className:de("flex items-end gap-2"),children:[x.jsx(Sc,{content:t==null?void 0:t.name,side:"right",align:"end",children:x.jsx(ay,{...Ve("chat/agent_msg_group/avatar_and_msgs/avatar"),agent:t})}),x.jsx("div",{...Ve("chat/agent_msg_group/avatar_and_msgs/msgs"),className:de("flex-1 flex flex-col gap-1"),children:e.map((r,i,a)=>x.jsx(DQ,{isFirstInGroup:i===0,isLastInGroup:i===a.length-1,isAloneInGroup:a.length===1,...r},r.id))})]}),n&&n.length>0&&x.jsx("div",{...Ve("chat/agent_msg_group/suggestions"),className:de("flex flex-col gap-1 ps-8"),children:n==null?void 0:n.map((r,i)=>x.jsx(Ty,{suggestion:r},`${r}-${i}`))})]})]})}function MQ({message:e,isFirstInGroup:t,isLastInGroup:n,isAloneInGroup:r}){var i;return x.jsxs("div",{...Ve("chat/user_msg/root"),className:"w-5/6 flex flex-col items-end gap-1",children:[e.attachments&&e.attachments.length>0&&x.jsx("div",{className:"w-full flex gap-1 flex-wrap justify-end",children:(i=e.attachments)==null?void 0:i.map(a=>x.jsx(HC,{attachment:a},a.id))}),e.content.length>0&&x.jsx("div",{...Ve("chat/user_msg/msg"),"data-first":t,"data-last":n,"data-alone":r,className:de("transition-all","w-fit py-3 px-4 rounded-3xl text-sm","bg-primary text-primary-foreground","break-words [word-break:break-word]","whitespace-pre-wrap",t&&!r&&"rounded-br-md",n&&!r&&"rounded-tr-md",!t&&!n&&!r&&"rounded-r-md"),children:e.content})]})}function LQ({messages:e}){return x.jsx("div",{...Ve("chat/user_msg_group/root"),className:de("group","flex flex-col gap-1 justify-end items-end"),children:e.map((t,n,r)=>x.jsx(MQ,{message:t,isFirstInGroup:n===0,isLastInGroup:n===r.length-1,isAloneInGroup:r.length===1},t.id))})}function IQ(e){const t=[];let n=null;return e.forEach(r=>{var i,a,s,o;(!n||((i=n[0])==null?void 0:i.type)!==r.type)&&(n=[],t.push(n)),((a=n[0])==null?void 0:a.type)==="FROM_AGENT"&&r.type==="FROM_AGENT"&&((s=r.agent)==null?void 0:s.id)!==((o=n[0].agent)==null?void 0:o.id)&&(n=[],t.push(n)),n.push(r)}),t}function PQ(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="FROM_USER"}function BQ(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="FROM_BOT"}function UQ(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="FROM_AGENT"}function zQ(){const{messagesState:{messages:e}}=Ea(),{isAwaitingBotReply:t}=x_(),{componentStore:n}=_n(),r=Lt(),{initialQuestions:i,initialQuestionsPosition:a}=r,s=E.useMemo(()=>IQ(e),[e]),o=r.persistentInitialMessages||[],l=(()=>{var h;return e.length?((h=r.advancedInitialMessages)==null?void 0:h.filter(g=>!!g.persistent))||[]:r.advancedInitialMessages||[]})(),u=(()=>{var h;return l.length?[]:e.length?[]:(h=r.initialMessages)!=null&&h.length?r.initialMessages:["Hello, how can I help you?"]})(),c=n.getComponent("loading"),f=E.useRef(null);function d(){setTimeout(()=>{const h=f.current;h&&(h.scrollTop=h.scrollHeight)},0)}return E.useEffect(()=>{d()},[e]),x.jsxs("div",{...Ve("chat/msgs/root"),ref:f,className:"max-h-full scroll-smooth relative flex-1 py-2 px-4 flex flex-col gap-2 overflow-auto",children:[x.jsx("div",{...Ve("chat/persistent_initial_msgs/root"),children:o.map((h,g,b)=>x.jsx(hh,{component:"bot_message",data:{message:h},id:h,type:"FROM_BOT",timestamp:Date.now().toString(),dataComponentNames:{messageContainer:"chat/persistent_initial_msg/root",message:"chat/persistent_initial_msg/msg"},classNames:{messageContainer:de("w-full flex flex-col items-center text-center"),message:"w-full bg-transparent border-none shadow-none text-xs"},isFirstInGroup:g===0,isLastInGroup:g===b.length-1,isAloneInGroup:b.length===1},`${h}-${g}`))}),l.length>0&&x.jsx(wy,{messages:l.map(({message:h},g)=>({component:"bot_message",data:{message:h},id:`${g}-${h}`,type:"FROM_BOT",timestamp:Date.now().toString()})),suggestedReplies:e.length===0&&a==="below-initial-messages"?i:void 0,agent:r.bot?{...r.bot,isAi:!0,id:null}:void 0}),e.length===0&&u.length>0&&x.jsx(wy,{messages:u.map((h,g)=>({component:"bot_message",data:{message:h},id:`${g}-${h}`,type:"FROM_BOT",timestamp:Date.now().toString()})),suggestedReplies:a==="below-initial-messages"?i:void 0,agent:r.bot?{...r.bot,isAi:!0,id:null}:void 0}),s.map(h=>{var T,m,y;const g=(T=h==null?void 0:h[0])==null?void 0:T.type,b=(m=h[0])==null?void 0:m.id;if(!g||!b)return null;if(PQ(h))return x.jsx(LQ,{messages:h},b);if(BQ(h)||UQ(h)){const v=(y=h[0])==null?void 0:y.agent;return x.jsx(wy,{messages:h,agent:v},b)}return null}),t&&c&&x.jsx(c,{agent:r.bot})]})}function jQ(){const{messagesState:{isInitialFetchLoading:e}}=Ea(),{sessionState:{session:t}}=ki(),{isCanvasOpen:n}=_W(),{theme:r}=Ss();cy({width:n?r.screens.chat.withCanvas.width:r.screens.chat.width,height:n?r.screens.chat.withCanvas.height:r.screens.chat.height});const i=E.useRef((t==null?void 0:t.id)||"chat").current;return x.jsx("div",{...Ve("chat/root"),className:de("flex flex-col overflow-hidden"),style:{width:"100vw",maxWidth:"100vw",height:"100vh",maxHeight:"100vh"},children:x.jsxs("div",{className:"size-full justify-between flex flex-col",children:[x.jsx(nR,{}),x.jsx(Pn,{mode:"wait",children:e?x.jsx(it,{className:"flex flex-col items-center justify-center w-full flex-1",children:x.jsx(rR,{})},"loading"):x.jsxs(it,{className:"flex items-start h-full flex-1 overflow-auto",snapExit:!0,children:[x.jsxs("div",{...Ve("chat/main/root"),className:de("flex flex-col h-full overflow-auto transition-all",n?"w-2/5":"w-full"),style:{transitionTimingFunction:r.screens.chat.withCanvas.transitionTimingFunction,transitionDuration:r.screens.chat.withCanvas.transitionDuration},children:[x.jsx(zQ,{}),x.jsx(NQ,{})]}),x.jsx("div",{...Ve("chat/canvas/root"),className:de("h-full overflow-auto transition-all",n?"w-3/5":"w-0"),style:{transitionTimingFunction:r.screens.chat.withCanvas.transitionTimingFunction,transitionDuration:r.screens.chat.withCanvas.transitionDuration},children:x.jsx(SW,{})})]},i)})]})})}function FQ({className:e}){return x.jsx("svg",{width:"26",height:"32",viewBox:"0 0 26 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:de("text-primary-foreground",e),children:x.jsx("path",{d:"M1.34103 25.6132H5.44245C5.74203 25.6228 6.02673 25.7462 6.23867 25.9582C6.45062 26.1703 6.5739 26.4551 6.58348 26.7548V30.8584C6.59305 31.1581 6.71634 31.443 6.92828 31.655C7.14023 31.8671 7.42492 31.9904 7.7245 32H18.2894C18.589 31.9904 18.8737 31.8671 19.0856 31.655C19.2976 31.443 19.4209 31.1581 19.4304 30.8584V26.7548C19.4401 26.4545 19.5638 26.1692 19.7765 25.957C19.9892 25.7449 20.2748 25.6219 20.5749 25.6132H24.659C24.9586 25.6036 25.2433 25.4803 25.4552 25.2682C25.6671 25.0562 25.7904 24.7713 25.8 24.4716V7.52839C25.7904 7.22865 25.6671 6.94381 25.4552 6.73176C25.2433 6.5197 24.9586 6.39635 24.659 6.38677H20.561C20.2603 6.37802 19.9742 6.25457 19.7614 6.04169C19.5487 5.82881 19.4253 5.54261 19.4165 5.24168V1.14161C19.4072 0.84419 19.2858 0.561291 19.0768 0.349589C18.8678 0.137887 18.5865 0.0130193 18.2894 0L7.7245 0C7.42492 0.00957792 7.14023 0.132929 6.92828 0.344983C6.71634 0.557036 6.59305 0.841878 6.58348 1.14161V5.24168C6.57477 5.54203 6.45187 5.82773 6.23983 6.04052C6.0278 6.25331 5.74262 6.37715 5.44245 6.38677H1.34103C1.04144 6.39635 0.756749 6.5197 0.544805 6.73176C0.332861 6.94381 0.209574 7.22865 0.200001 7.52839V24.4716C0.209574 24.7713 0.332861 25.0562 0.544805 25.2682C0.756749 25.4803 1.04144 25.6036 1.34103 25.6132ZM6.58348 24.4716V7.52839C6.59305 7.22865 6.71634 6.94381 6.92828 6.73176C7.14023 6.5197 7.42492 6.39635 7.7245 6.38677H18.2894C18.589 6.39635 18.8737 6.5197 19.0856 6.73176C19.2976 6.94381 19.4209 7.22865 19.4304 7.52839V24.4716C19.4209 24.7713 19.2976 25.0562 19.0856 25.2682C18.8737 25.4803 18.589 25.6036 18.2894 25.6132H7.7245C7.42492 25.6036 7.14023 25.4803 6.92828 25.2682C6.71634 25.0562 6.59305 24.7713 6.58348 24.4716Z",fill:"currentColor"})})}function RR({className:e}){const{token:t}=Lt();return x.jsx("div",{className:de("flex items-center justify-center gap-2 p-2 pt-0",e),children:x.jsx(Mi,{children:x.jsxs("a",{href:`https://open.cx/?ref=${t}`,target:"_blank",rel:"noreferrer",className:de("text-[10px] flex items-center","text-muted-foreground/70 [&_svg]:text-muted-foreground/70","hover:text-primary [&_svg]:hover:text-primary"),children:[x.jsx("span",{children:"Powered by"}),x.jsx("span",{children:" "}),x.jsxs("span",{className:"flex items-center gap-[1px]",children:[x.jsx("span",{children:x.jsx(FQ,{className:"size-3 inline-block"})}),x.jsx("span",{className:"font-semibold",children:"open"})]})]})})})}function HQ({children:e}){return x.jsx("p",{className:"ps-4 text-xs text-muted-foreground/75 uppercase font-semibold tracking-tight",children:e})}function NR({session:e,className:t}){const{bot:n}=Lt(),{toChatScreen:r}=Oi(),i=e.assignee.kind==="human"?e.assignee.name||"Support Agent":(n==null?void 0:n.name)||"AI Support Agent",a=e.assignee.kind==="human"?e.assignee.avatarUrl||"":(n==null?void 0:n.avatar)||"";return x.jsxs(qt,{variant:"ghost",size:"lg",className:de("rounded-full p-2 pe-4 flex text-start justify-between w-full whitespace-normal",t),onClick:()=>r(e.id),children:[x.jsxs("div",{className:"flex-1 flex gap-2 items-center",children:[x.jsx(Pn,{mode:"wait",children:x.jsx(it,{snapExit:!0,children:x.jsxs(ny,{className:"size-10",children:[x.jsx(ry,{src:a,alt:"Agent Icon"}),x.jsx(iy,{children:x.jsx(OF,{className:"size-4"})})]})})}),x.jsxs("div",{className:"flex-1",children:[x.jsx(Pn,{mode:"wait",children:x.jsx(it,{snapExit:!0,children:i},i)}),x.jsx(Pn,{mode:"wait",children:e.lastMessage?x.jsx(it,{snapExit:!0,children:x.jsx(R3,{remarkPlugins:[QA],rehypePlugins:[nA],className:"line-clamp-1 overflow-hidden text-ellipsis text-xs text-muted-foreground",children:e.lastMessage})},e.lastMessage||"content"):x.jsx(it,{className:"w-1/2",snapExit:!0,children:x.jsx(eR,{className:"h-4 w-full"})},"skeleton")})]})]}),x.jsx(lF,{className:"size-4 text-muted-foreground shrink-0 rtl:-scale-100"})]})}function VQ(){const{t:e}=hl(),{toChatScreen:t}=Oi(),{sessionsState:{data:n,isInitialFetchLoading:r},openSessions:i,closedSessions:a,canCreateNewSession:s}=ki();return x.jsx("div",{className:"flex-1 flex flex-col overflow-scroll py-2 px-2",children:x.jsx(Pn,{mode:"wait",children:r?x.jsx(it,{className:"flex-1 flex items-center justify-center",children:x.jsx(rR,{})},"loading"):x.jsx(it,{className:"flex-1 flex flex-col gap-2 relative",children:n.length?x.jsxs(x.Fragment,{children:[x.jsxs(Pn,{children:[i.length>0&&x.jsx(it,{fadeIn:"up",delay:.2,className:"space-y-2",snapExit:!0,children:i.map(o=>x.jsx(NR,{session:o},o.id))},"open-sessions"),a.length>0&&x.jsxs(it,{className:"space-y-2",delay:.2,snapExit:!0,children:[x.jsx(HQ,{children:e("closed-conversations")}),a.map(o=>x.jsx(NR,{session:o,className:"opacity-50 hover:opacity-100"},o.id))]},"closed-sessions")]}),s&&x.jsx("div",{className:"mt-auto w-full rounded-3xl sticky bottom-0 outline outline-8 outline-background bg-background",children:E.createElement(qt,{...Ve("sessions/new_conversation_btn"),size:"lg",key:"new-session",className:"w-full",onClick:()=>t()},e("new-conversation"))})]}):x.jsxs("div",{className:"flex-1 flex flex-col gap-2 items-center",children:[x.jsx("div",{className:"flex-1 flex items-center justify-center",children:x.jsx("p",{className:"text-muted-foreground",children:e("no-conversations-yet")})}),E.createElement(qt,{...Ve("sessions/new_conversation_btn"),size:"lg",key:"new-session",className:"w-full",onClick:()=>t()},e("new-conversation"))]})},"sessions")})})}function qQ(){const{theme:e}=Ss();return cy({width:e.screens.sessions.width,height:e.screens.sessions.height}),x.jsx("div",{...Ve("sessions/root"),className:de("flex flex-col overflow-hidden bg-background"),style:{width:"100vw",maxWidth:"100vw",height:"100vh",maxHeight:"100vh"},children:x.jsxs("div",{className:"size-full flex flex-col",children:[x.jsx(nR,{}),x.jsx(VQ,{}),x.jsx(RR,{})]})})}var DR={};const YQ=m4(mL);var qh={},MR;function GQ(){if(MR)return qh;MR=1,Object.defineProperty(qh,"__esModule",{value:!0});var e=E;function t(){var n=e.useRef(!1),r=e.useCallback(function(){return n.current},[]);return e.useEffect(function(){return n.current=!0,function(){n.current=!1}},[]),r}return qh.default=t,qh}Object.defineProperty(DR,"__esModule",{value:!0});var _y=YQ,Sy=E,$Q=_y.__importDefault(GQ());function XQ(e,t,n){t===void 0&&(t=[]),n===void 0&&(n={loading:!1});var r=Sy.useRef(0),i=$Q.default(),a=Sy.useState(n),s=a[0],o=a[1],l=Sy.useCallback(function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];var f=++r.current;return s.loading||o(function(d){return _y.__assign(_y.__assign({},d),{loading:!0})}),e.apply(void 0,u).then(function(d){return i()&&f===r.current&&o({value:d,loading:!1}),d},function(d){return i()&&f===r.current&&o({error:d,loading:!1}),d})},t);return[s,l]}var KQ=DR.default=XQ,qe;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const a={};for(const s of i)a[s]=s;return a},e.getValidEnumValues=i=>{const a=e.objectKeys(i).filter(o=>typeof i[i[o]]!="number"),s={};for(const o of a)s[o]=i[o];return e.objectValues(s)},e.objectValues=i=>e.objectKeys(i).map(function(a){return i[a]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const a=[];for(const s in i)Object.prototype.hasOwnProperty.call(i,s)&&a.push(s);return a},e.find=(i,a)=>{for(const s of i)if(a(s))return s},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function r(i,a=" | "){return i.map(s=>typeof s=="string"?`'${s}'`:s).join(a)}e.joinValues=r,e.jsonStringifyReplacer=(i,a)=>typeof a=="bigint"?a.toString():a})(qe||(qe={}));var LR;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(LR||(LR={}));const le=qe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),La=e=>{switch(typeof e){case"undefined":return le.undefined;case"string":return le.string;case"number":return Number.isNaN(e)?le.nan:le.number;case"boolean":return le.boolean;case"function":return le.function;case"bigint":return le.bigint;case"symbol":return le.symbol;case"object":return Array.isArray(e)?le.array:e===null?le.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?le.promise:typeof Map<"u"&&e instanceof Map?le.map:typeof Set<"u"&&e instanceof Set?le.set:typeof Date<"u"&&e instanceof Date?le.date:le.object;default:return le.unknown}},ee=qe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class zi extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(a){return a.message},r={_errors:[]},i=a=>{for(const s of a.issues)if(s.code==="invalid_union")s.unionErrors.map(i);else if(s.code==="invalid_return_type")i(s.returnTypeError);else if(s.code==="invalid_arguments")i(s.argumentsError);else if(s.path.length===0)r._errors.push(n(s));else{let o=r,l=0;for(;l<s.path.length;){const u=s.path[l];l===s.path.length-1?(o[u]=o[u]||{_errors:[]},o[u]._errors.push(n(s))):o[u]=o[u]||{_errors:[]},o=o[u],l++}}};return i(this),r}static assert(t){if(!(t instanceof zi))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,qe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const i of this.issues)if(i.path.length>0){const a=i.path[0];n[a]=n[a]||[],n[a].push(t(i))}else r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}zi.create=e=>new zi(e);const Ay=(e,t)=>{let n;switch(e.code){case ee.invalid_type:e.received===le.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case ee.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,qe.jsonStringifyReplacer)}`;break;case ee.unrecognized_keys:n=`Unrecognized key(s) in object: ${qe.joinValues(e.keys,", ")}`;break;case ee.invalid_union:n="Invalid input";break;case ee.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${qe.joinValues(e.options)}`;break;case ee.invalid_enum_value:n=`Invalid enum value. Expected ${qe.joinValues(e.options)}, received '${e.received}'`;break;case ee.invalid_arguments:n="Invalid function arguments";break;case ee.invalid_return_type:n="Invalid function return type";break;case ee.invalid_date:n="Invalid date";break;case ee.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:qe.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case ee.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case ee.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case ee.custom:n="Invalid input";break;case ee.invalid_intersection_types:n="Intersection results could not be merged";break;case ee.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case ee.not_finite:n="Number must be finite";break;default:n=t.defaultError,qe.assertNever(e)}return{message:n}};let WQ=Ay;function QQ(){return WQ}const ZQ=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],s={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let o="";const l=r.filter(u=>!!u).slice().reverse();for(const u of l)o=u(s,{data:t,defaultError:o}).message;return{...i,path:a,message:o}};function ie(e,t){const n=QQ(),r=ZQ({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Ay?void 0:Ay].filter(i=>!!i)});e.common.issues.push(r)}class ir{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return xe;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n){const a=await i.key,s=await i.value;r.push({key:a,value:s})}return ir.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:a,value:s}=i;if(a.status==="aborted"||s.status==="aborted")return xe;a.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof s.value<"u"||i.alwaysSet)&&(r[a.value]=s.value)}return{status:t.value,value:r}}}const xe=Object.freeze({status:"aborted"}),Oc=e=>({status:"dirty",value:e}),wr=e=>({status:"valid",value:e}),IR=e=>e.status==="aborted",PR=e=>e.status==="dirty",pl=e=>e.status==="valid",Yh=e=>typeof Promise<"u"&&e instanceof Promise;var ue;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(ue||(ue={}));class Ia{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const BR=(e,t)=>{if(pl(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new zi(e.common.issues);return this._error=n,this._error}}};function Oe(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(s,o)=>{const{message:l}=e;return s.code==="invalid_enum_value"?{message:l??o.defaultError}:typeof o.data>"u"?{message:l??r??o.defaultError}:s.code!=="invalid_type"?{message:o.defaultError}:{message:l??n??o.defaultError}},description:i}}class He{get description(){return this._def.description}_getType(t){return La(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:La(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new ir,ctx:{common:t.parent.common,data:t.data,parsedType:La(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Yh(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:La(t)},i=this._parseSync({data:t,path:r.path,parent:r});return BR(r,i)}"~validate"(t){var r,i;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:La(t)};if(!this["~standard"].async)try{const a=this._parseSync({data:t,path:[],parent:n});return pl(a)?{value:a.value}:{issues:n.common.issues}}catch(a){(i=(r=a==null?void 0:a.message)==null?void 0:r.toLowerCase())!=null&&i.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(a=>pl(a)?{value:a.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:La(t)},i=this._parse({data:t,path:r.path,parent:r}),a=await(Yh(i)?i:Promise.resolve(i));return BR(r,a)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,a)=>{const s=t(i),o=()=>a.addIssue({code:ee.custom,...r(i)});return typeof Promise<"u"&&s instanceof Promise?s.then(l=>l?!0:(o(),!1)):s?!0:(o(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new bl({schema:this,typeName:Ee.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Ua.create(this,this._def)}nullable(){return yl.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return oi.create(this)}promise(){return Kh.create(this,this._def)}or(t){return $h.create([this,t],this._def)}and(t){return Xh.create(this,t,this._def)}transform(t){return new bl({...Oe(this._def),schema:this,typeName:Ee.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Oy({...Oe(this._def),innerType:this,defaultValue:n,typeName:Ee.ZodDefault})}brand(){return new EZ({typeName:Ee.ZodBranded,type:this,...Oe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Ry({...Oe(this._def),innerType:this,catchValue:n,typeName:Ee.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Ny.create(this,t)}readonly(){return Dy.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const JQ=/^c[^\s-]{8,}$/i,eZ=/^[0-9a-z]+$/,tZ=/^[0-9A-HJKMNP-TV-Z]{26}$/i,nZ=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,rZ=/^[a-z0-9_-]{21}$/i,iZ=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,aZ=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,sZ=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,oZ="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Cy;const lZ=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,uZ=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,cZ=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,fZ=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,dZ=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,hZ=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,UR="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",pZ=new RegExp(`^${UR}$`);function zR(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function mZ(e){return new RegExp(`^${zR(e)}$`)}function gZ(e){let t=`${UR}T${zR(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function bZ(e,t){return!!((t==="v4"||!t)&&lZ.test(e)||(t==="v6"||!t)&&cZ.test(e))}function yZ(e,t){if(!iZ.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));return!(typeof i!="object"||i===null||"typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||t&&i.alg!==t)}catch{return!1}}function vZ(e,t){return!!((t==="v4"||!t)&&uZ.test(e)||(t==="v6"||!t)&&fZ.test(e))}class Pa extends He{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==le.string){const a=this._getOrReturnCtx(t);return ie(a,{code:ee.invalid_type,expected:le.string,received:a.parsedType}),xe}const r=new ir;let i;for(const a of this._def.checks)if(a.kind==="min")t.data.length<a.value&&(i=this._getOrReturnCtx(t,i),ie(i,{code:ee.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="max")t.data.length>a.value&&(i=this._getOrReturnCtx(t,i),ie(i,{code:ee.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="length"){const s=t.data.length>a.value,o=t.data.length<a.value;(s||o)&&(i=this._getOrReturnCtx(t,i),s?ie(i,{code:ee.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):o&&ie(i,{code:ee.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),r.dirty())}else if(a.kind==="email")sZ.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"email",code:ee.invalid_string,message:a.message}),r.dirty());else if(a.kind==="emoji")Cy||(Cy=new RegExp(oZ,"u")),Cy.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"emoji",code:ee.invalid_string,message:a.message}),r.dirty());else if(a.kind==="uuid")nZ.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"uuid",code:ee.invalid_string,message:a.message}),r.dirty());else if(a.kind==="nanoid")rZ.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"nanoid",code:ee.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid")JQ.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"cuid",code:ee.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid2")eZ.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"cuid2",code:ee.invalid_string,message:a.message}),r.dirty());else if(a.kind==="ulid")tZ.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"ulid",code:ee.invalid_string,message:a.message}),r.dirty());else if(a.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),ie(i,{validation:"url",code:ee.invalid_string,message:a.message}),r.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"regex",code:ee.invalid_string,message:a.message}),r.dirty())):a.kind==="trim"?t.data=t.data.trim():a.kind==="includes"?t.data.includes(a.value,a.position)||(i=this._getOrReturnCtx(t,i),ie(i,{code:ee.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),r.dirty()):a.kind==="toLowerCase"?t.data=t.data.toLowerCase():a.kind==="toUpperCase"?t.data=t.data.toUpperCase():a.kind==="startsWith"?t.data.startsWith(a.value)||(i=this._getOrReturnCtx(t,i),ie(i,{code:ee.invalid_string,validation:{startsWith:a.value},message:a.message}),r.dirty()):a.kind==="endsWith"?t.data.endsWith(a.value)||(i=this._getOrReturnCtx(t,i),ie(i,{code:ee.invalid_string,validation:{endsWith:a.value},message:a.message}),r.dirty()):a.kind==="datetime"?gZ(a).test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{code:ee.invalid_string,validation:"datetime",message:a.message}),r.dirty()):a.kind==="date"?pZ.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{code:ee.invalid_string,validation:"date",message:a.message}),r.dirty()):a.kind==="time"?mZ(a).test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{code:ee.invalid_string,validation:"time",message:a.message}),r.dirty()):a.kind==="duration"?aZ.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"duration",code:ee.invalid_string,message:a.message}),r.dirty()):a.kind==="ip"?bZ(t.data,a.version)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"ip",code:ee.invalid_string,message:a.message}),r.dirty()):a.kind==="jwt"?yZ(t.data,a.alg)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"jwt",code:ee.invalid_string,message:a.message}),r.dirty()):a.kind==="cidr"?vZ(t.data,a.version)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"cidr",code:ee.invalid_string,message:a.message}),r.dirty()):a.kind==="base64"?dZ.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"base64",code:ee.invalid_string,message:a.message}),r.dirty()):a.kind==="base64url"?hZ.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"base64url",code:ee.invalid_string,message:a.message}),r.dirty()):qe.assertNever(a);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:ee.invalid_string,...ue.errToObj(r)})}_addCheck(t){return new Pa({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ue.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ue.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ue.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ue.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ue.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ue.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ue.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ue.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ue.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...ue.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...ue.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ue.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...ue.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...ue.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...ue.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...ue.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ue.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...ue.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ue.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ue.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ue.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ue.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ue.errToObj(n)})}nonempty(t){return this.min(1,ue.errToObj(t))}trim(){return new Pa({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Pa({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Pa({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Pa.create=e=>new Pa({checks:[],typeName:Ee.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...Oe(e)});function xZ(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,a=Number.parseInt(e.toFixed(i).replace(".","")),s=Number.parseInt(t.toFixed(i).replace(".",""));return a%s/10**i}class Rc extends He{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==le.number){const a=this._getOrReturnCtx(t);return ie(a,{code:ee.invalid_type,expected:le.number,received:a.parsedType}),xe}let r;const i=new ir;for(const a of this._def.checks)a.kind==="int"?qe.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{code:ee.invalid_type,expected:"integer",received:"float",message:a.message}),i.dirty()):a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(r=this._getOrReturnCtx(t,r),ie(r,{code:ee.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),ie(r,{code:ee.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="multipleOf"?xZ(t.data,a.value)!==0&&(r=this._getOrReturnCtx(t,r),ie(r,{code:ee.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{code:ee.not_finite,message:a.message}),i.dirty()):qe.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ue.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ue.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ue.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ue.toString(n))}setLimit(t,n,r,i){return new Rc({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ue.toString(i)}]})}_addCheck(t){return new Rc({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ue.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ue.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ue.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ue.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ue.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ue.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ue.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ue.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ue.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&qe.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Rc.create=e=>new Rc({checks:[],typeName:Ee.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Oe(e)});class Nc extends He{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==le.bigint)return this._getInvalidInput(t);let r;const i=new ir;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(r=this._getOrReturnCtx(t,r),ie(r,{code:ee.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),ie(r,{code:ee.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),ie(r,{code:ee.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):qe.assertNever(a);return{status:i.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return ie(n,{code:ee.invalid_type,expected:le.bigint,received:n.parsedType}),xe}gte(t,n){return this.setLimit("min",t,!0,ue.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ue.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ue.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ue.toString(n))}setLimit(t,n,r,i){return new Nc({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ue.toString(i)}]})}_addCheck(t){return new Nc({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ue.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ue.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ue.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ue.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ue.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Nc.create=e=>new Nc({checks:[],typeName:Ee.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...Oe(e)});class jR extends He{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==le.boolean){const r=this._getOrReturnCtx(t);return ie(r,{code:ee.invalid_type,expected:le.boolean,received:r.parsedType}),xe}return wr(t.data)}}jR.create=e=>new jR({typeName:Ee.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Oe(e)});class Gh extends He{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==le.date){const a=this._getOrReturnCtx(t);return ie(a,{code:ee.invalid_type,expected:le.date,received:a.parsedType}),xe}if(Number.isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return ie(a,{code:ee.invalid_date}),xe}const r=new ir;let i;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()<a.value&&(i=this._getOrReturnCtx(t,i),ie(i,{code:ee.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),r.dirty()):a.kind==="max"?t.data.getTime()>a.value&&(i=this._getOrReturnCtx(t,i),ie(i,{code:ee.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),r.dirty()):qe.assertNever(a);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Gh({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:ue.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ue.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Gh.create=e=>new Gh({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Ee.ZodDate,...Oe(e)});class FR extends He{_parse(t){if(this._getType(t)!==le.symbol){const r=this._getOrReturnCtx(t);return ie(r,{code:ee.invalid_type,expected:le.symbol,received:r.parsedType}),xe}return wr(t.data)}}FR.create=e=>new FR({typeName:Ee.ZodSymbol,...Oe(e)});class HR extends He{_parse(t){if(this._getType(t)!==le.undefined){const r=this._getOrReturnCtx(t);return ie(r,{code:ee.invalid_type,expected:le.undefined,received:r.parsedType}),xe}return wr(t.data)}}HR.create=e=>new HR({typeName:Ee.ZodUndefined,...Oe(e)});class VR extends He{_parse(t){if(this._getType(t)!==le.null){const r=this._getOrReturnCtx(t);return ie(r,{code:ee.invalid_type,expected:le.null,received:r.parsedType}),xe}return wr(t.data)}}VR.create=e=>new VR({typeName:Ee.ZodNull,...Oe(e)});class qR extends He{constructor(){super(...arguments),this._any=!0}_parse(t){return wr(t.data)}}qR.create=e=>new qR({typeName:Ee.ZodAny,...Oe(e)});class YR extends He{constructor(){super(...arguments),this._unknown=!0}_parse(t){return wr(t.data)}}YR.create=e=>new YR({typeName:Ee.ZodUnknown,...Oe(e)});class Ba extends He{_parse(t){const n=this._getOrReturnCtx(t);return ie(n,{code:ee.invalid_type,expected:le.never,received:n.parsedType}),xe}}Ba.create=e=>new Ba({typeName:Ee.ZodNever,...Oe(e)});class GR extends He{_parse(t){if(this._getType(t)!==le.undefined){const r=this._getOrReturnCtx(t);return ie(r,{code:ee.invalid_type,expected:le.void,received:r.parsedType}),xe}return wr(t.data)}}GR.create=e=>new GR({typeName:Ee.ZodVoid,...Oe(e)});class oi extends He{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==le.array)return ie(n,{code:ee.invalid_type,expected:le.array,received:n.parsedType}),xe;if(i.exactLength!==null){const s=n.data.length>i.exactLength.value,o=n.data.length<i.exactLength.value;(s||o)&&(ie(n,{code:s?ee.too_big:ee.too_small,minimum:o?i.exactLength.value:void 0,maximum:s?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(ie(n,{code:ee.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(ie(n,{code:ee.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((s,o)=>i.type._parseAsync(new Ia(n,s,n.path,o)))).then(s=>ir.mergeArray(r,s));const a=[...n.data].map((s,o)=>i.type._parseSync(new Ia(n,s,n.path,o)));return ir.mergeArray(r,a)}get element(){return this._def.type}min(t,n){return new oi({...this._def,minLength:{value:t,message:ue.toString(n)}})}max(t,n){return new oi({...this._def,maxLength:{value:t,message:ue.toString(n)}})}length(t,n){return new oi({...this._def,exactLength:{value:t,message:ue.toString(n)}})}nonempty(t){return this.min(1,t)}}oi.create=(e,t)=>new oi({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ee.ZodArray,...Oe(t)});function ml(e){if(e instanceof Bt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Ua.create(ml(r))}return new Bt({...e._def,shape:()=>t})}else return e instanceof oi?new oi({...e._def,type:ml(e.element)}):e instanceof Ua?Ua.create(ml(e.unwrap())):e instanceof yl?yl.create(ml(e.unwrap())):e instanceof Cs?Cs.create(e.items.map(t=>ml(t))):e}class Bt extends He{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=qe.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==le.object){const u=this._getOrReturnCtx(t);return ie(u,{code:ee.invalid_type,expected:le.object,received:u.parsedType}),xe}const{status:r,ctx:i}=this._processInputParams(t),{shape:a,keys:s}=this._getCached(),o=[];if(!(this._def.catchall instanceof Ba&&this._def.unknownKeys==="strip"))for(const u in i.data)s.includes(u)||o.push(u);const l=[];for(const u of s){const c=a[u],f=i.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new Ia(i,f,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof Ba){const u=this._def.unknownKeys;if(u==="passthrough")for(const c of o)l.push({key:{status:"valid",value:c},value:{status:"valid",value:i.data[c]}});else if(u==="strict")o.length>0&&(ie(i,{code:ee.unrecognized_keys,keys:o}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const c of o){const f=i.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new Ia(i,f,i.path,c)),alwaysSet:c in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const u=[];for(const c of l){const f=await c.key,d=await c.value;u.push({key:f,value:d,alwaysSet:c.alwaysSet})}return u}).then(u=>ir.mergeObjectSync(r,u)):ir.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return ue.errToObj,new Bt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var a,s;const i=((s=(a=this._def).errorMap)==null?void 0:s.call(a,n,r).message)??r.defaultError;return n.code==="unrecognized_keys"?{message:ue.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new Bt({...this._def,unknownKeys:"strip"})}passthrough(){return new Bt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Bt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Bt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Ee.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Bt({...this._def,catchall:t})}pick(t){const n={};for(const r of qe.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new Bt({...this._def,shape:()=>n})}omit(t){const n={};for(const r of qe.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new Bt({...this._def,shape:()=>n})}deepPartial(){return ml(this)}partial(t){const n={};for(const r of qe.objectKeys(this.shape)){const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}return new Bt({...this._def,shape:()=>n})}required(t){const n={};for(const r of qe.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let a=this.shape[r];for(;a instanceof Ua;)a=a._def.innerType;n[r]=a}return new Bt({...this._def,shape:()=>n})}keyof(){return WR(qe.objectKeys(this.shape))}}Bt.create=(e,t)=>new Bt({shape:()=>e,unknownKeys:"strip",catchall:Ba.create(),typeName:Ee.ZodObject,...Oe(t)}),Bt.strictCreate=(e,t)=>new Bt({shape:()=>e,unknownKeys:"strict",catchall:Ba.create(),typeName:Ee.ZodObject,...Oe(t)}),Bt.lazycreate=(e,t)=>new Bt({shape:e,unknownKeys:"strip",catchall:Ba.create(),typeName:Ee.ZodObject,...Oe(t)});class $h extends He{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(a){for(const o of a)if(o.result.status==="valid")return o.result;for(const o of a)if(o.result.status==="dirty")return n.common.issues.push(...o.ctx.common.issues),o.result;const s=a.map(o=>new zi(o.ctx.common.issues));return ie(n,{code:ee.invalid_union,unionErrors:s}),xe}if(n.common.async)return Promise.all(r.map(async a=>{const s={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:s}),ctx:s}})).then(i);{let a;const s=[];for(const l of r){const u={...n,common:{...n.common,issues:[]},parent:null},c=l._parseSync({data:n.data,path:n.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!a&&(a={result:c,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const o=s.map(l=>new zi(l));return ie(n,{code:ee.invalid_union,unionErrors:o}),xe}}get options(){return this._def.options}}$h.create=(e,t)=>new $h({options:e,typeName:Ee.ZodUnion,...Oe(t)});function ky(e,t){const n=La(e),r=La(t);if(e===t)return{valid:!0,data:e};if(n===le.object&&r===le.object){const i=qe.objectKeys(t),a=qe.objectKeys(e).filter(o=>i.indexOf(o)!==-1),s={...e,...t};for(const o of a){const l=ky(e[o],t[o]);if(!l.valid)return{valid:!1};s[o]=l.data}return{valid:!0,data:s}}else if(n===le.array&&r===le.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let a=0;a<e.length;a++){const s=e[a],o=t[a],l=ky(s,o);if(!l.valid)return{valid:!1};i.push(l.data)}return{valid:!0,data:i}}else return n===le.date&&r===le.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Xh extends He{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(a,s)=>{if(IR(a)||IR(s))return xe;const o=ky(a.value,s.value);return o.valid?((PR(a)||PR(s))&&n.dirty(),{status:n.value,value:o.data}):(ie(r,{code:ee.invalid_intersection_types}),xe)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([a,s])=>i(a,s)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Xh.create=(e,t,n)=>new Xh({left:e,right:t,typeName:Ee.ZodIntersection,...Oe(n)});class Cs extends He{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==le.array)return ie(r,{code:ee.invalid_type,expected:le.array,received:r.parsedType}),xe;if(r.data.length<this._def.items.length)return ie(r,{code:ee.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),xe;!this._def.rest&&r.data.length>this._def.items.length&&(ie(r,{code:ee.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...r.data].map((s,o)=>{const l=this._def.items[o]||this._def.rest;return l?l._parse(new Ia(r,s,r.path,o)):null}).filter(s=>!!s);return r.common.async?Promise.all(a).then(s=>ir.mergeArray(n,s)):ir.mergeArray(n,a)}get items(){return this._def.items}rest(t){return new Cs({...this._def,rest:t})}}Cs.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Cs({items:e,typeName:Ee.ZodTuple,rest:null,...Oe(t)})};class $R extends He{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==le.map)return ie(r,{code:ee.invalid_type,expected:le.map,received:r.parsedType}),xe;const i=this._def.keyType,a=this._def.valueType,s=[...r.data.entries()].map(([o,l],u)=>({key:i._parse(new Ia(r,o,r.path,[u,"key"])),value:a._parse(new Ia(r,l,r.path,[u,"value"]))}));if(r.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const l of s){const u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return xe;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),o.set(u.value,c.value)}return{status:n.value,value:o}})}else{const o=new Map;for(const l of s){const u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return xe;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),o.set(u.value,c.value)}return{status:n.value,value:o}}}}$R.create=(e,t,n)=>new $R({valueType:t,keyType:e,typeName:Ee.ZodMap,...Oe(n)});class Dc extends He{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==le.set)return ie(r,{code:ee.invalid_type,expected:le.set,received:r.parsedType}),xe;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(ie(r,{code:ee.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&r.data.size>i.maxSize.value&&(ie(r,{code:ee.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const a=this._def.valueType;function s(l){const u=new Set;for(const c of l){if(c.status==="aborted")return xe;c.status==="dirty"&&n.dirty(),u.add(c.value)}return{status:n.value,value:u}}const o=[...r.data.values()].map((l,u)=>a._parse(new Ia(r,l,r.path,u)));return r.common.async?Promise.all(o).then(l=>s(l)):s(o)}min(t,n){return new Dc({...this._def,minSize:{value:t,message:ue.toString(n)}})}max(t,n){return new Dc({...this._def,maxSize:{value:t,message:ue.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Dc.create=(e,t)=>new Dc({valueType:e,minSize:null,maxSize:null,typeName:Ee.ZodSet,...Oe(t)});class XR extends He{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}XR.create=(e,t)=>new XR({getter:e,typeName:Ee.ZodLazy,...Oe(t)});class KR extends He{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ie(n,{received:n.data,code:ee.invalid_literal,expected:this._def.value}),xe}return{status:"valid",value:t.data}}get value(){return this._def.value}}KR.create=(e,t)=>new KR({value:e,typeName:Ee.ZodLiteral,...Oe(t)});function WR(e,t){return new gl({values:e,typeName:Ee.ZodEnum,...Oe(t)})}class gl extends He{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return ie(n,{expected:qe.joinValues(r),received:n.parsedType,code:ee.invalid_type}),xe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return ie(n,{received:n.data,code:ee.invalid_enum_value,options:r}),xe}return wr(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return gl.create(t,{...this._def,...n})}exclude(t,n=this._def){return gl.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}gl.create=WR;class QR extends He{_parse(t){const n=qe.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==le.string&&r.parsedType!==le.number){const i=qe.objectValues(n);return ie(r,{expected:qe.joinValues(i),received:r.parsedType,code:ee.invalid_type}),xe}if(this._cache||(this._cache=new Set(qe.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=qe.objectValues(n);return ie(r,{received:r.data,code:ee.invalid_enum_value,options:i}),xe}return wr(t.data)}get enum(){return this._def.values}}QR.create=(e,t)=>new QR({values:e,typeName:Ee.ZodNativeEnum,...Oe(t)});class Kh extends He{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==le.promise&&n.common.async===!1)return ie(n,{code:ee.invalid_type,expected:le.promise,received:n.parsedType}),xe;const r=n.parsedType===le.promise?n.data:Promise.resolve(n.data);return wr(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Kh.create=(e,t)=>new Kh({type:e,typeName:Ee.ZodPromise,...Oe(t)});class bl extends He{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ee.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,a={addIssue:s=>{ie(r,s),s.fatal?n.abort():n.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),i.type==="preprocess"){const s=i.transform(r.data,a);if(r.common.async)return Promise.resolve(s).then(async o=>{if(n.value==="aborted")return xe;const l=await this._def.schema._parseAsync({data:o,path:r.path,parent:r});return l.status==="aborted"?xe:l.status==="dirty"||n.value==="dirty"?Oc(l.value):l});{if(n.value==="aborted")return xe;const o=this._def.schema._parseSync({data:s,path:r.path,parent:r});return o.status==="aborted"?xe:o.status==="dirty"||n.value==="dirty"?Oc(o.value):o}}if(i.type==="refinement"){const s=o=>{const l=i.refinement(o,a);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?xe:(o.status==="dirty"&&n.dirty(),s(o.value),{status:n.value,value:o.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>o.status==="aborted"?xe:(o.status==="dirty"&&n.dirty(),s(o.value).then(()=>({status:n.value,value:o.value}))))}if(i.type==="transform")if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!pl(s))return xe;const o=i.transform(s.value,a);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:o}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>pl(s)?Promise.resolve(i.transform(s.value,a)).then(o=>({status:n.value,value:o})):xe);qe.assertNever(i)}}bl.create=(e,t,n)=>new bl({schema:e,typeName:Ee.ZodEffects,effect:t,...Oe(n)}),bl.createWithPreprocess=(e,t,n)=>new bl({schema:t,effect:{type:"preprocess",transform:e},typeName:Ee.ZodEffects,...Oe(n)});class Ua extends He{_parse(t){return this._getType(t)===le.undefined?wr(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ua.create=(e,t)=>new Ua({innerType:e,typeName:Ee.ZodOptional,...Oe(t)});class yl extends He{_parse(t){return this._getType(t)===le.null?wr(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}yl.create=(e,t)=>new yl({innerType:e,typeName:Ee.ZodNullable,...Oe(t)});class Oy extends He{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===le.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Oy.create=(e,t)=>new Oy({innerType:e,typeName:Ee.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Oe(t)});class Ry extends He{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Yh(i)?i.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new zi(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new zi(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Ry.create=(e,t)=>new Ry({innerType:e,typeName:Ee.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Oe(t)});class ZR extends He{_parse(t){if(this._getType(t)!==le.nan){const r=this._getOrReturnCtx(t);return ie(r,{code:ee.invalid_type,expected:le.nan,received:r.parsedType}),xe}return{status:"valid",value:t.data}}}ZR.create=e=>new ZR({typeName:Ee.ZodNaN,...Oe(e)});class EZ extends He{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Ny extends He{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?xe:a.status==="dirty"?(n.dirty(),Oc(a.value)):this._def.out._parseAsync({data:a.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?xe:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new Ny({in:t,out:n,typeName:Ee.ZodPipeline})}}class Dy extends He{_parse(t){const n=this._def.innerType._parse(t),r=i=>(pl(i)&&(i.value=Object.freeze(i.value)),i);return Yh(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}}Dy.create=(e,t)=>new Dy({innerType:e,typeName:Ee.ZodReadonly,...Oe(t)});var Ee;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Ee||(Ee={}));const JR=Pa.create;Ba.create,oi.create;const TZ=Bt.create;$h.create,Xh.create,Cs.create,gl.create,Kh.create,Ua.create,yl.create;const Wh=E.forwardRef(({className:e,type:t,...n},r)=>{const{isSmallScreen:i}=Ui();return x.jsx(Mi,{ref:r,children:x.jsx("input",{type:t,className:de(i?"text-[16px]":"text-sm","flex w-full rounded-xl p-2 ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-primary-foreground placeholder:text-muted-foreground/75 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 transition","rounded-2xl px-4","border shadow-sm",e),...n})})});Wh.displayName="Input";function wZ(){const{contentIframeRef:e}=_n(),{inline:t}=Lt(),n=E.useRef(null);return E.useEffect(()=>{const r=e==null?void 0:e.current;if(r&&n.current){const i=n.current;let a;const s=new ResizeObserver(()=>{a=requestAnimationFrame(()=>{const o=i.offsetHeight;r.style.setProperty("--opencx-widget-height",t?"100%":`${o.toFixed(1)}px`)})});return s.observe(i),()=>{cancelAnimationFrame(a),s.unobserve(i)}}},[e,t]),{observedElementRef:n}}const _Z=TZ({name:JR().min(2),email:JR().email()});function SZ(){var m,y,v,w,_,A,N,L,F;const{setIsOpen:e}=Po(),{createUnverifiedContact:t}=y8(),{isSmallScreen:n}=Ui(),r=Lt(),{theme:i}=Ss(),{t:a}=hl(),{data:s}=Ld(),{observedElementRef:o}=wZ();cy({height:void 0,width:i.screens.welcome.width});const[l,u]=E.useState(((m=r.prefillUserData)==null?void 0:m.name)||""),[c,f]=E.useState(((y=r.prefillUserData)==null?void 0:y.email)||""),d=(r.extraDataCollectionFields||[]).filter(R=>R!=="name"&&R!=="email"&&!!R),[h,g]=E.useState({}),[b,T]=KQ(async R=>{R.preventDefault();const q=_Z.safeParse({name:l,email:c});q.success&&await t({email:q.data.email,non_verified_name:q.data.name},Object.values(h).filter(Boolean).length?h:void 0)},[l,c,h]);return x.jsx("div",{style:{width:"100vw",maxWidth:"100vw",minHeight:i.screens.welcome.minHeight,height:"100vh",maxHeight:"100vh",overflowY:"auto"},children:x.jsxs("div",{ref:o,className:de("flex flex-col",n&&"h-full","bg-[radial-gradient(ellipse_at_top_left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse_at_top_right,hsl(var(--opencx-primary)),transparent)]"),children:[x.jsxs("div",{className:de("flex-1 flex flex-col px-4 py-12 text-start space-y-4 relative z-10","text-primary-foreground"),children:[n&&x.jsx(it,{className:"absolute top-6 end-6",children:x.jsx(qt,{size:"selfless",onClick:()=>e(!1),children:x.jsx(oh,{className:"size-4"})})}),x.jsx("div",{className:"flex items-center justify-between w-full mb-2",children:(v=r.assets)!=null&&v.organizationLogo?x.jsx("img",{src:(w=r.assets)==null?void 0:w.organizationLogo,alt:"Company Logo",className:"h-8 w-auto object-contain"}):x.jsx("h2",{className:"font-bold text-sm",children:(_=s==null?void 0:s.data)==null?void 0:_.organizationName})}),x.jsxs("div",{className:"space-y-2",children:[x.jsx("h1",{className:"text-[1.75rem] font-semibold tracking-tight leading-none",children:((N=(A=r.textContent)==null?void 0:A.welcomeScreen)==null?void 0:N.title)||a("welcome-title")}),x.jsx("p",{className:"text-sm",children:((F=(L=r.textContent)==null?void 0:L.welcomeScreen)==null?void 0:F.description)||a("welcome-description")})]})]}),x.jsxs("div",{className:de("z-10 m-2 px-2 pt-2 bp-0 space-y-2","bg-[white]","border shadow","rounded-3xl"),children:[x.jsxs("form",{onSubmit:T,className:"space-y-2",children:[x.jsx(Wh,{value:l,onChange:R=>u(R.target.value),required:!0,placeholder:a("your-name"),name:"name"}),x.jsx(Wh,{required:!0,value:c,onChange:R=>f(R.target.value),type:"email",placeholder:a("your-email"),name:"email"}),d.map(R=>x.jsx(Wh,{value:h[R],onChange:q=>g(j=>({...j,[R]:q.target.value})),placeholder:`${R} (${a("optional")})`},R)),x.jsxs(qt,{disabled:b.loading,className:"w-full",size:"lg",children:[b.loading?a("starting-chat"):a("start-chat"),x.jsx(_F,{className:"size-4 rtl:-scale-100"})]})]}),x.jsx(RR,{})]})]})})}function e4(){Ld();const{routerState:{screen:e}}=Oi();return x.jsxs("div",{className:"relative bg-background size-full",children:[x.jsx(lh.Container,{}),x.jsx(Pn,{mode:"wait",children:(()=>{switch(e){case"welcome":return x.jsx(it,{fadeIn:"right",className:"size-full",snapExit:!0,children:x.jsx(SZ,{})},e);case"sessions":return x.jsx(it,{fadeIn:"right",className:"size-full",snapExit:!0,children:x.jsx(qQ,{})},e);case"chat":return x.jsx(it,{fadeIn:"right",className:"size-full",snapExit:!0,children:x.jsx(jQ,{})},e);default:return Dr(e,e4.name),null}})()})]})}const AZ=`<!DOCTYPE html>
|
|
331
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _R(e,t){if(e){if(typeof e=="string")return yy(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yy(e,t)}}function yy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xQ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,s,o;try{for(n=n.call(e);!(i=(s=n.next()).done)&&(r.push(s.value),!(t&&r.length===t));i=!0);}catch(l){a=!0,o=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw o}}return r}}function EQ(e){if(Array.isArray(e))return e}function SR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Et(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SR(Object(n),!0).forEach(function(r){vy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vh(e,t){if(e==null)return{};var n=TQ(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function TQ(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var xy=E.forwardRef(function(e,t){var n=e.children,r=Vh(e,fQ),i=CR(r),a=i.open,s=Vh(i,dQ);return E.useImperativeHandle(t,function(){return{open:a}},[a]),zn.createElement(E.Fragment,null,n(Et(Et({},s),{},{open:a})))});xy.displayName="Dropzone";var AR={disabled:!1,getFilesFromEvent:LW,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};xy.defaultProps=AR,xy.propTypes={children:at.func,accept:at.objectOf(at.arrayOf(at.string)),multiple:at.bool,preventDropOnDocument:at.bool,noClick:at.bool,noKeyboard:at.bool,noDrag:at.bool,noDragEventsBubbling:at.bool,minSize:at.number,maxSize:at.number,maxFiles:at.number,disabled:at.bool,getFilesFromEvent:at.func,onFileDialogCancel:at.func,onFileDialogOpen:at.func,useFsAccessApi:at.bool,autoFocus:at.bool,onDragEnter:at.func,onDragLeave:at.func,onDragOver:at.func,onDrop:at.func,onDropAccepted:at.func,onDropRejected:at.func,onError:at.func,validator:at.func};var Ey={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function CR(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Et(Et({},AR),e),n=t.accept,r=t.disabled,i=t.getFilesFromEvent,a=t.maxSize,s=t.minSize,o=t.multiple,l=t.maxFiles,u=t.onDragEnter,c=t.onDragLeave,f=t.onDragOver,d=t.onDrop,h=t.onDropAccepted,g=t.onDropRejected,b=t.onFileDialogCancel,T=t.onFileDialogOpen,m=t.useFsAccessApi,y=t.autoFocus,v=t.preventDropOnDocument,w=t.noClick,_=t.noKeyboard,A=t.noDrag,N=t.noDragEventsBubbling,L=t.onError,F=t.validator,R=E.useMemo(function(){return lQ(n)},[n]),q=E.useMemo(function(){return oQ(n)},[n]),j=E.useMemo(function(){return typeof T=="function"?T:kR},[T]),ne=E.useMemo(function(){return typeof b=="function"?b:kR},[b]),K=E.useRef(null),W=E.useRef(null),H=E.useReducer(wQ,Ey),V=by(H,2),z=V[0],te=V[1],O=z.isFocused,he=z.isFileDialogActive,je=E.useRef(typeof window<"u"&&window.isSecureContext&&m&&sQ()),M=function(){!je.current&&he&&setTimeout(function(){if(W.current){var se=W.current.files;se.length||(te({type:"closeDialog"}),ne())}},300)};E.useEffect(function(){return window.addEventListener("focus",M,!1),function(){window.removeEventListener("focus",M,!1)}},[W,he,ne,je]);var Le=E.useRef([]),pe=function(se){K.current&&K.current.contains(se.target)||(se.preventDefault(),Le.current=[])};E.useEffect(function(){return v&&(document.addEventListener("dragover",ER,!1),document.addEventListener("drop",pe,!1)),function(){v&&(document.removeEventListener("dragover",ER),document.removeEventListener("drop",pe))}},[K,v]),E.useEffect(function(){return!r&&y&&K.current&&K.current.focus(),function(){}},[K,y,r]);var Pe=E.useCallback(function(re){L?L(re):console.error(re)},[L]),Yt=E.useCallback(function(re){re.preventDefault(),re.persist(),tt(re),Le.current=[].concat(mQ(Le.current),[re.target]),Hh(re)&&Promise.resolve(i(re)).then(function(se){if(!(Fh(re)&&!N)){var B=se.length,G=B>0&&nQ({files:se,accept:R,minSize:s,maxSize:a,multiple:o,maxFiles:l,validator:F}),oe=B>0&&!G;te({isDragAccept:G,isDragReject:oe,isDragActive:!0,type:"setDraggedFiles"}),u&&u(re)}}).catch(function(se){return Pe(se)})},[i,u,Pe,N,R,s,a,o,l,F]),Qe=E.useCallback(function(re){re.preventDefault(),re.persist(),tt(re);var se=Hh(re);if(se&&re.dataTransfer)try{re.dataTransfer.dropEffect="copy"}catch{}return se&&f&&f(re),!1},[f,N]),Ut=E.useCallback(function(re){re.preventDefault(),re.persist(),tt(re);var se=Le.current.filter(function(G){return K.current&&K.current.contains(G)}),B=se.indexOf(re.target);B!==-1&&se.splice(B,1),Le.current=se,!(se.length>0)&&(te({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Hh(re)&&c&&c(re))},[K,c,N]),ut=E.useCallback(function(re,se){var B=[],G=[];re.forEach(function(oe){var be=vR(oe,R),ve=by(be,2),nn=ve[0],Bn=ve[1],An=xR(oe,s,a),ar=by(An,2),Un=ar[0],zt=ar[1],sr=F?F(oe):null;if(nn&&Un&&!sr)B.push(oe);else{var Cn=[Bn,zt];sr&&(Cn=Cn.concat(sr)),G.push({file:oe,errors:Cn.filter(function(ji){return ji})})}}),(!o&&B.length>1||o&&l>=1&&B.length>l)&&(B.forEach(function(oe){G.push({file:oe,errors:[tQ]})}),B.splice(0)),te({acceptedFiles:B,fileRejections:G,isDragReject:G.length>0,type:"setFiles"}),d&&d(B,G,se),G.length>0&&g&&g(G,se),B.length>0&&h&&h(B,se)},[te,o,R,s,a,l,d,h,g,F]),Nt=E.useCallback(function(re){re.preventDefault(),re.persist(),tt(re),Le.current=[],Hh(re)&&Promise.resolve(i(re)).then(function(se){Fh(re)&&!N||ut(se,re)}).catch(function(se){return Pe(se)}),te({type:"reset"})},[i,ut,Pe,N]),Gt=E.useCallback(function(){if(je.current){te({type:"openDialog"}),j();var re={multiple:o,types:q};window.showOpenFilePicker(re).then(function(se){return i(se)}).then(function(se){ut(se,null),te({type:"closeDialog"})}).catch(function(se){uQ(se)?(ne(se),te({type:"closeDialog"})):cQ(se)?(je.current=!1,W.current?(W.current.value=null,W.current.click()):Pe(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):Pe(se)});return}W.current&&(te({type:"openDialog"}),j(),W.current.value=null,W.current.click())},[te,j,ne,m,ut,Pe,q,o]),ye=E.useCallback(function(re){!K.current||!K.current.isEqualNode(re.target)||(re.key===" "||re.key==="Enter"||re.keyCode===32||re.keyCode===13)&&(re.preventDefault(),Gt())},[K,Gt]),Ie=E.useCallback(function(){te({type:"focus"})},[]),$e=E.useCallback(function(){te({type:"blur"})},[]),Re=E.useCallback(function(){w||(aQ()?setTimeout(Gt,0):Gt())},[w,Gt]),et=function(se){return r?null:se},$t=function(se){return _?null:et(se)},Be=function(se){return A?null:et(se)},tt=function(se){N&&se.stopPropagation()},tn=E.useMemo(function(){return function(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},se=re.refKey,B=se===void 0?"ref":se,G=re.role,oe=re.onKeyDown,be=re.onFocus,ve=re.onBlur,nn=re.onClick,Bn=re.onDragEnter,An=re.onDragOver,ar=re.onDragLeave,Un=re.onDrop,zt=Vh(re,hQ);return Et(Et(vy({onKeyDown:$t(si(oe,ye)),onFocus:$t(si(be,Ie)),onBlur:$t(si(ve,$e)),onClick:et(si(nn,Re)),onDragEnter:Be(si(Bn,Yt)),onDragOver:Be(si(An,Qe)),onDragLeave:Be(si(ar,Ut)),onDrop:Be(si(Un,Nt)),role:typeof G=="string"&&G!==""?G:"presentation"},B,K),!r&&!_?{tabIndex:0}:{}),zt)}},[K,ye,Ie,$e,Re,Yt,Qe,Ut,Nt,_,A,r]),cn=E.useCallback(function(re){re.stopPropagation()},[]),_r=E.useMemo(function(){return function(){var re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},se=re.refKey,B=se===void 0?"ref":se,G=re.onChange,oe=re.onClick,be=Vh(re,pQ),ve=vy({accept:R,multiple:o,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:et(si(G,Nt)),onClick:et(si(oe,cn)),tabIndex:-1},B,W);return Et(Et({},ve),be)}},[W,n,o,Nt,r]);return Et(Et({},z),{},{isFocused:O&&!r,getRootProps:tn,getInputProps:_r,rootRef:K,inputRef:W,open:et(Gt)})}function wQ(e,t){switch(t.type){case"focus":return Et(Et({},e),{},{isFocused:!0});case"blur":return Et(Et({},e),{},{isFocused:!1});case"openDialog":return Et(Et({},Ey),{},{isFileDialogActive:!0});case"closeDialog":return Et(Et({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Et(Et({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Et(Et({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return Et({},Ey);default:return e}}function kR(){}const OR={en:{"write-a-message":"Write a message...","session-closed-lead":"Your issue has been resolved!","new-conversation":"New conversation","welcome-title":"Welcome to our support chat","welcome-description":"We're here to help! Start a conversation and we'll get back to you as soon as possible.","your-name":"Your name","your-email":"Your email address","start-chat":"Talk to support","starting-chat":"Connecting...","i-need-more-help":"I need more help","this-was-helpful":"This was helpful",optional:"Optional","no-conversations-yet":"No conversations yet","back-to-conversations":"Back to conversations","closed-conversations":"Closed conversations"},ar:{"write-a-message":"اكتب رسالة...","session-closed-lead":"تم حل مشكلتك!","new-conversation":"محادثة جديدة","welcome-title":"مرحبًا بك في دردشة الدعم الخاصة بنا","welcome-description":"نحن هنا للمساعدة! ابدأ محادثة وسنرد عليك في أقرب وقت ممكن.","your-name":"اسمك","your-email":"عنوان بريدك الإلكتروني","start-chat":"تحدث إلى الدعم","starting-chat":"جاري الاتصال...","i-need-more-help":"أحتاج المزيد من المساعدة","this-was-helpful":"كان هذا مفيدًا",optional:"اختياري","no-conversations-yet":"لا يوجد محادثات","back-to-conversations":"العودة إلى المحادثات","closed-conversations":"المحادثات المغلقة"},nl:{"write-a-message":"Schrijf een bericht...","session-closed-lead":"Uw probleem is opgelost!","new-conversation":"Nieuw gesprek","welcome-title":"Welkom bij onze supportchat","welcome-description":"We zijn hier om te helpen! Begin een gesprek en we nemen zo snel mogelijk contact met u op.","your-name":"Uw naam","your-email":"Uw e-mailadres","start-chat":"Praat met ondersteuning","starting-chat":"Verbinding maken...","i-need-more-help":"Ik heb nog meer hulp nodig","this-was-helpful":"Mijn vraag is opgelost",optional:"Optioneel","no-conversations-yet":"Nog geen gesprekken","back-to-conversations":"Terug naar gesprekken","closed-conversations":"Afgesloten gesprekken"},fr:{"write-a-message":"Écrivez un message...","session-closed-lead":"Votre problème a été résolu !","new-conversation":"Nouvelle conversation","welcome-title":"Bienvenue dans notre chat de support","welcome-description":"Nous sommes là pour vous aider ! Commencez une conversation et nous vous répondrons dès que possible.","your-name":"Votre nom","your-email":"Votre adresse e-mail","start-chat":"Parler au support","starting-chat":"Connexion...","i-need-more-help":"Je besoin d'aide plus","this-was-helpful":"C'était utile",optional:"Optionnel","no-conversations-yet":"Aucune conversation pour le moment","back-to-conversations":"Retour aux conversations","closed-conversations":"Conversations fermées"},de:{"write-a-message":"Nachricht schreiben...","session-closed-lead":"Ihr Problem wurde gelöst!","new-conversation":"Neue Konversation","welcome-title":"Willkommen in unserem Support-Chat","welcome-description":"Wir sind hier, um zu helfen! Beginnen Sie ein Gesprách und wir werden so schnell wie mogelijk antworten.","your-name":"Ihr Name","your-email":"Ihre E-Mail-Adresse","start-chat":"Mit dem Support sprechen","starting-chat":"Verbindung wird hergestellt...","i-need-more-help":"Ich brauche weitere Hilfe","this-was-helpful":"Dies war hilfreich",optional:"Optional","no-conversations-yet":"noch keine Gespräche","back-to-conversations":"Zurück zur Konversationen","closed-conversations":"Geschlossene Konversationen"},pt:{"write-a-message":"Escreva uma mensagem...","session-closed-lead":"Seu problema foi resolvido!","new-conversation":"Nova conversa","welcome-title":"Bem-vindo ao nosso chat de suporte","welcome-description":"Estamos aqui para ajudar! Inicie uma conversa e responderemos o mais rápido possível.","your-name":"Seu nome","your-email":"Seu endereço de email","start-chat":"Falar com o suporte","starting-chat":"Conectando...","i-need-more-help":"preciso de mais ajuda","this-was-helpful":"Isso foi útil",optional:"Opcional","no-conversations-yet":"Nenhuma conversa ainda","back-to-conversations":"Voltar para conversas","closed-conversations":"Conversas fechadas"},es:{"write-a-message":"Escribe un mensaje...","session-closed-lead":"¡Tu problema fue resuelto!","new-conversation":"Nueva conversación","welcome-title":"Bienvenido a nuestro chat de soporte","welcome-description":"¡Estamos aquí para ayudarte! Inicia una conversación y responderemos lo antes posible.","your-name":"Tu nombre","your-email":"Tu correo electrónico","start-chat":"Hablar con soporte","starting-chat":"Conectando...","i-need-more-help":"Necesito más ayuda","this-was-helpful":"Esto fue útil",optional:"Opcional","no-conversations-yet":"Sin conversaciones aún","back-to-conversations":"Volver a conversaciones","closed-conversations":"Conversaciones cerradas"},tr:{"write-a-message":"Bir mesaj yazın...","session-closed-lead":"Sorununuz çözüldü!","new-conversation":"Yeni konuşma","welcome-title":"Destek sohbetimize hoş geldiniz","welcome-description":"Yardım etmek için buradayız! Bir konuşma başlatın, en kısa sürede size geri döneceğiz.","your-name":"Adınız","your-email":"E-posta adresiniz","start-chat":"Destekle konuş","starting-chat":"Bağlanıyor...","i-need-more-help":"Daha fazla yardıma ihtiyacım var","this-was-helpful":"Bu yardımcı oldu",optional:"İsteğe bağlı","no-conversations-yet":"Henüz konuşma yok","back-to-conversations":"Konuşmalara geri dön","closed-conversations":"Kapatılan konuşmalar"}},_Q=Object.keys(OR);function SQ(e){return _Q.includes(e)}function AQ(e,t){const n=OR[t];return n&&n[e]||""}function hl(){const{dir:e}=Rg(),t=Lt();return E.useMemo(()=>{const n=SQ(t.language)?t.language:"en";return{t:r=>AQ(r,n),language:n,dir:n==="ar"?"rtl":"ltr",hostDocumentDir:e}},[t.language,e])}function Ty({suggestion:e,className:t,...n}){const{sendMessage:r}=Ea(),i=()=>{const a=e.trim();a&&r({content:a})};return x.jsx(qt,{...Ve("chat/suggested_reply_btn"),size:"sm",className:de("rounded-xl w-fit",t),...n,onClick:i,children:e})}function CQ(){const{t:e}=hl(),t=[e("i-need-more-help"),e("this-was-helpful")];return x.jsx("div",{...Ve("chat/might_solve_user_issue_suggested_replies_container"),className:"flex items-center gap-2 p-2 pb-0 flex-wrap",children:t.map(n=>x.jsx(Ty,{suggestion:n,className:"flex-1"},n))})}function kQ({file:{status:e,file:t,error:n},onCancel:r}){const[i,a]=E.useState(null);E.useEffect(()=>{if(!t.type.startsWith("image/"))return;const l=new FileReader;return l.onload=()=>a(l.result),l.onerror=()=>console.error("Error reading file"),l.readAsDataURL(t),()=>l.abort()},[t]);const s=()=>{switch(e){case"uploading":return x.jsx(bF,{className:"size-4 animate-spin"});case"error":return x.jsx(uF,{className:"size-4 text-destructive"});default:return null}},o=()=>{const l=t.type.split("/")[0];return l==="image"&&i?x.jsx("img",{src:typeof i=="string"?i:"",className:"object-cover bg-secondary size-full",alt:t.name}):l==="audio"?x.jsx(hF,{}):l==="video"?x.jsx(pF,{}):x.jsx(mF,{})};return x.jsx(Sc,{side:"bottom",content:e==="error"?x.jsxs("span",{className:"text-destructive",children:["Failed to upload: ",n]}):t.name,children:x.jsxs("div",{className:de(e==="uploading"&&"opacity-50","group","size-12 border rounded-2xl overflow-hidden relative","flex items-center justify-center shrink-0"),children:[x.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:s()}),x.jsx("button",{type:"button",className:de("absolute bg-black/50 inset-0 size-full z-10 opacity-0","flex items-center justify-center","opacity-0 group-hover:opacity-100 transition"),onClick:r,children:x.jsx(oh,{className:"size-4 text-primary-foreground"})}),x.jsx(o,{})]})})}function OQ(){var A;const{isSmallScreen:e}=Ui(),t=E.useRef(null),{sendMessage:n}=Ea(),{sessionState:r}=ki(),{t:i}=hl(),[a,s]=E.useState(""),{allFiles:o,emptyTheFiles:l,handleCancelUpload:u,appendFiles:c,isUploading:f,successFiles:d}=v8(),h=!!((A=r.session)!=null&&A.isHandedOff),{isAwaitingBotReply:g}=x_(),b=N=>{c(N)},T=!a.trim()&&d.length===0,m=async()=>{if(g||T)return;f&&console.info("please wait for the file(s) to upload");const N=a.trim();n({content:N,attachments:d.flatMap(L=>L.fileUrl?[{url:L.fileUrl,type:L.file.type,name:L.file.name,id:L.id,size:L.file.size}]:[])}),s(""),l()},{getRootProps:y,getInputProps:v,open:w}=CR({onDrop:b,noClick:!0,onDropRejected(){console.error("unsupported file type, or the file is too large")},maxSize:5*1024*1024,accept:h?{"text/*":[".txt"],"image/*":[".png",".jpg",".jpeg",".gif"],"application/pdf":[".pdf"]}:{"image/png":[".png"],"image/jpeg":[".jpg",".jpeg"],"image/gif":[".gif"],"image/webp":[".webp"]}}),_=N=>{const L=N.clipboardData;L&&L.files.length>0&&b(Array.from(L.files))};return x.jsxs("div",{...Ve("chat/input_box/root"),className:"p-2 relative space-y-1",...y(),children:[x.jsx("input",{...v()}),x.jsxs("div",{...Ve("chat/input_box/inner_root"),className:de("transition-all","bg-white","relative rounded-3xl flex flex-col gap-2 p-2","hover:border-primary focus-within:border-primary"),children:[x.jsxs("div",{...Ve("chat/input_box/textarea_and_attachments_container"),className:"flex flex-col gap-2",children:[o.length>0&&x.jsx("div",{...Ve("chat/input_box/attachments_container"),className:"flex items-center gap-1",children:x.jsx(Pn,{mode:"popLayout",children:o.map(N=>x.jsx(it,{snapExit:!0,children:x.jsx(kQ,{onCancel:()=>u(N.id),file:N})},N.id))})}),x.jsx("textarea",{...Ve("chat/input_box/textarea"),onPaste:_,ref:t,id:"chat-input",value:a,rows:3,className:de("max-h-16 [field-sizing:content]","w-full resize-none px-2",o.length===0&&"pt-1","bg-transparent outline-none","placeholder:text-muted-foreground",e?"text-[16px]":"text-sm"),onChange:N=>s(N.target.value),onKeyDown:async N=>{N.key==="Enter"&&!N.shiftKey&&(N.preventDefault(),m())},placeholder:i("write-a-message")})]}),x.jsxs("div",{className:"gap-2 flex justify-between",children:[x.jsx(Sc,{side:"top",align:"start",content:"attach files, (maximum size 5mb)",children:x.jsx(qt,{onClick:w,size:"fit",variant:"ghost",className:de("rounded-full size-8 flex items-center justify-center p-0 overflow-hidden"),children:x.jsx(Pn,{mode:"wait",children:h?x.jsx(it,{children:x.jsx(wF,{className:"size-4"})},"paper-clip"):x.jsx(it,{children:x.jsx(gF,{className:"size-4"})},"image-icon")})})}),x.jsx(Sc,{content:"send message",side:"top",align:"end",children:x.jsx(qt,{size:"fit",onClick:m,disabled:g||f||T,className:"rounded-full size-8 flex items-center justify-center p-0",children:x.jsx(Pn,{mode:"wait",children:g||f?x.jsx(it,{snapExit:!0,children:x.jsx(vC,{className:"size-4 animate-spin animate-iteration-infinite"})},"loading"):x.jsx(it,{snapExit:!0,children:x.jsx(rF,{className:"size-4"})},"send")})})})]})]})]})}function RQ(){const{widgetCtx:e}=_n(),{router:t}=Lt(),{canCreateNewSession:n}=ki(),{toSessionsScreen:r}=Oi(),{t:i}=hl();return x.jsx("div",{className:"p-2",children:x.jsxs("div",{className:"p-2 bg-muted rounded-3xl space-y-2",children:[x.jsxs("div",{className:"ps-2 flex items-center gap-1",children:[x.jsx(yC,{className:"size-4 text-emerald-600"}),x.jsx("h2",{className:"text-sm font-medium",children:i("session-closed-lead")})]}),x.jsx("div",{children:n||t!=null&&t.chatScreenOnly?x.jsx(qt,{onClick:e.resetChat,className:"rounded-2xl w-full",children:i("new-conversation")}):x.jsx(qt,{onClick:r,className:"rounded-2xl w-full",children:i("back-to-conversations")})})]})})}function NQ(){var s;const{initialQuestions:e,initialQuestionsPosition:t,thisWasHelpfulOrNot:n}=Lt(),{sessionState:r}=ki(),{messagesState:i}=Ea(),a=i.messages.length===0;return x.jsx("footer",{children:x.jsx("div",{children:x.jsx(Pn,{mode:"wait",children:r.session&&!((s=r.session)!=null&&s.isOpened)?x.jsx(it,{className:"overflow-hidden",overrides:{initial:{height:0},animate:{height:"auto"},exit:{height:0}},children:x.jsx(RQ,{})},"session-closed"):x.jsxs(it,{className:"overflow-hidden",overrides:{initial:{height:0},animate:{height:"auto"},exit:{height:0}},children:[i.lastAIResMightSolveUserIssue&&(n==null?void 0:n.enabled)!==!1&&x.jsx(CQ,{}),a&&e&&t!=="below-initial-messages"&&x.jsx("div",{className:"flex items-center flex-row justify-end gap-2 flex-wrap px-2",children:e==null?void 0:e.map((o,l)=>x.jsx(Ty,{suggestion:o},`${o}-${l}`))}),x.jsx(OQ,{})]},"chat-input")})})})}function DQ({isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n,...r}){const{componentStore:i}=_n();if(r.data.action){const s=i.getComponent(r.data.action.name);if(s)return x.jsx(s,{...r,id:r.id,isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n})}const a=i.getComponent(r.component);return a?x.jsx(a,{...r,id:r.id,isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n}):x.jsx(hh,{...r,isFirstInGroup:e,isLastInGroup:t,isAloneInGroup:n})}function wy({messages:e,agent:t,suggestedReplies:n}){return x.jsxs("div",{...Ve("chat/agent_msg_group/root"),className:de("flex items-end gap-2"),children:[x.jsx(Sc,{content:t==null?void 0:t.name,side:"right",align:"end",children:x.jsx(ay,{...Ve("chat/agent_msg_group/root/avatar"),agent:t,className:"hidden"})}),x.jsxs("div",{className:de("flex-1 flex flex-col gap-2"),children:[x.jsxs("div",{...Ve("chat/agent_msg_group/avatar_and_msgs/root"),className:de("flex items-end gap-2"),children:[x.jsx(Sc,{content:t==null?void 0:t.name,side:"right",align:"end",children:x.jsx(ay,{...Ve("chat/agent_msg_group/avatar_and_msgs/avatar"),agent:t})}),x.jsx("div",{...Ve("chat/agent_msg_group/avatar_and_msgs/msgs"),className:de("flex-1 flex flex-col gap-1"),children:e.map((r,i,a)=>x.jsx(DQ,{isFirstInGroup:i===0,isLastInGroup:i===a.length-1,isAloneInGroup:a.length===1,...r},r.id))})]}),n&&n.length>0&&x.jsx("div",{...Ve("chat/agent_msg_group/suggestions"),className:de("flex flex-col gap-1 ps-8"),children:n==null?void 0:n.map((r,i)=>x.jsx(Ty,{suggestion:r},`${r}-${i}`))})]})]})}function MQ({message:e,isFirstInGroup:t,isLastInGroup:n,isAloneInGroup:r}){var i;return x.jsxs("div",{...Ve("chat/user_msg/root"),className:"w-5/6 flex flex-col items-end gap-1",children:[e.attachments&&e.attachments.length>0&&x.jsx("div",{className:"w-full flex gap-1 flex-wrap justify-end",children:(i=e.attachments)==null?void 0:i.map(a=>x.jsx(HC,{attachment:a},a.id))}),e.content.length>0&&x.jsx("div",{...Ve("chat/user_msg/msg"),"data-first":t,"data-last":n,"data-alone":r,className:de("transition-all","w-fit py-3 px-4 rounded-3xl text-sm","bg-primary text-primary-foreground","break-words [word-break:break-word]","whitespace-pre-wrap",t&&!r&&"rounded-br-md",n&&!r&&"rounded-tr-md",!t&&!n&&!r&&"rounded-r-md"),children:e.content})]})}function LQ({messages:e}){return x.jsx("div",{...Ve("chat/user_msg_group/root"),className:de("group","flex flex-col gap-1 justify-end items-end"),children:e.map((t,n,r)=>x.jsx(MQ,{message:t,isFirstInGroup:n===0,isLastInGroup:n===r.length-1,isAloneInGroup:r.length===1},t.id))})}function IQ(e){const t=[];let n=null;return e.forEach(r=>{var i,a,s,o;(!n||((i=n[0])==null?void 0:i.type)!==r.type)&&(n=[],t.push(n)),((a=n[0])==null?void 0:a.type)==="FROM_AGENT"&&r.type==="FROM_AGENT"&&((s=r.agent)==null?void 0:s.id)!==((o=n[0].agent)==null?void 0:o.id)&&(n=[],t.push(n)),n.push(r)}),t}function PQ(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="FROM_USER"}function BQ(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="FROM_BOT"}function UQ(e){var t;return((t=e==null?void 0:e[0])==null?void 0:t.type)==="FROM_AGENT"}function zQ(){const{messagesState:{messages:e}}=Ea(),{isAwaitingBotReply:t}=x_(),{componentStore:n}=_n(),r=Lt(),{initialQuestions:i,initialQuestionsPosition:a}=r,s=E.useMemo(()=>IQ(e),[e]),o=r.persistentInitialMessages||[],l=(()=>{var h;return e.length?((h=r.advancedInitialMessages)==null?void 0:h.filter(g=>!!g.persistent))||[]:r.advancedInitialMessages||[]})(),u=(()=>{var h;return l.length?[]:e.length?[]:(h=r.initialMessages)!=null&&h.length?r.initialMessages:["Hello, how can I help you?"]})(),c=n.getComponent("loading"),f=E.useRef(null);function d(){setTimeout(()=>{const h=f.current;h&&(h.scrollTop=h.scrollHeight)},0)}return E.useEffect(()=>{d()},[e]),x.jsxs("div",{...Ve("chat/msgs/root"),ref:f,className:"max-h-full scroll-smooth relative flex-1 py-2 px-4 flex flex-col gap-2 overflow-auto",children:[x.jsx("div",{...Ve("chat/persistent_initial_msgs/root"),children:o.map((h,g,b)=>x.jsx(hh,{component:"bot_message",data:{message:h},id:h,type:"FROM_BOT",timestamp:Date.now().toString(),dataComponentNames:{messageContainer:"chat/persistent_initial_msg/root",message:"chat/persistent_initial_msg/msg"},classNames:{messageContainer:de("w-full flex flex-col items-center text-center"),message:"w-full bg-transparent border-none shadow-none text-xs"},isFirstInGroup:g===0,isLastInGroup:g===b.length-1,isAloneInGroup:b.length===1},`${h}-${g}`))}),l.length>0&&x.jsx(wy,{messages:l.map(({message:h},g)=>({component:"bot_message",data:{message:h},id:`${g}-${h}`,type:"FROM_BOT",timestamp:Date.now().toString()})),suggestedReplies:e.length===0&&a==="below-initial-messages"?i:void 0,agent:r.bot?{...r.bot,isAi:!0,id:null}:void 0}),e.length===0&&u.length>0&&x.jsx(wy,{messages:u.map((h,g)=>({component:"bot_message",data:{message:h},id:`${g}-${h}`,type:"FROM_BOT",timestamp:Date.now().toString()})),suggestedReplies:a==="below-initial-messages"?i:void 0,agent:r.bot?{...r.bot,isAi:!0,id:null}:void 0}),s.map(h=>{var T,m,y;const g=(T=h==null?void 0:h[0])==null?void 0:T.type,b=(m=h[0])==null?void 0:m.id;if(!g||!b)return null;if(PQ(h))return x.jsx(LQ,{messages:h},b);if(BQ(h)||UQ(h)){const v=(y=h[0])==null?void 0:y.agent;return x.jsx(wy,{messages:h,agent:v},b)}return null}),t&&c&&x.jsx(c,{agent:r.bot})]})}function jQ(){const{messagesState:{isInitialFetchLoading:e}}=Ea(),{sessionState:{session:t}}=ki(),{isCanvasOpen:n}=_W(),{theme:r}=Ss();cy({width:n?r.screens.chat.withCanvas.width:r.screens.chat.width,height:n?r.screens.chat.withCanvas.height:r.screens.chat.height});const i=E.useRef((t==null?void 0:t.id)||"chat").current;return x.jsx("div",{...Ve("chat/root"),className:de("flex flex-col overflow-hidden"),style:{width:"100vw",maxWidth:"100vw",height:"100vh",maxHeight:"100vh"},children:x.jsxs("div",{className:"size-full justify-between flex flex-col",children:[x.jsx(nR,{}),x.jsx(Pn,{mode:"wait",children:e?x.jsx(it,{className:"flex flex-col items-center justify-center w-full flex-1",children:x.jsx(rR,{})},"loading"):x.jsxs(it,{className:"flex items-start h-full flex-1 overflow-auto",snapExit:!0,children:[x.jsxs("div",{...Ve("chat/main/root"),className:de("flex flex-col h-full overflow-auto transition-all",n?"w-2/5":"w-full"),style:{transitionTimingFunction:r.screens.chat.withCanvas.transitionTimingFunction,transitionDuration:r.screens.chat.withCanvas.transitionDuration},children:[x.jsx(zQ,{}),x.jsx(NQ,{})]}),x.jsx("div",{...Ve("chat/canvas/root"),className:de("h-full overflow-auto transition-all",n?"w-3/5":"w-0"),style:{transitionTimingFunction:r.screens.chat.withCanvas.transitionTimingFunction,transitionDuration:r.screens.chat.withCanvas.transitionDuration},children:x.jsx(SW,{})})]},i)})]})})}function FQ({className:e}){return x.jsx("svg",{width:"26",height:"32",viewBox:"0 0 26 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:de("text-primary-foreground",e),children:x.jsx("path",{d:"M1.34103 25.6132H5.44245C5.74203 25.6228 6.02673 25.7462 6.23867 25.9582C6.45062 26.1703 6.5739 26.4551 6.58348 26.7548V30.8584C6.59305 31.1581 6.71634 31.443 6.92828 31.655C7.14023 31.8671 7.42492 31.9904 7.7245 32H18.2894C18.589 31.9904 18.8737 31.8671 19.0856 31.655C19.2976 31.443 19.4209 31.1581 19.4304 30.8584V26.7548C19.4401 26.4545 19.5638 26.1692 19.7765 25.957C19.9892 25.7449 20.2748 25.6219 20.5749 25.6132H24.659C24.9586 25.6036 25.2433 25.4803 25.4552 25.2682C25.6671 25.0562 25.7904 24.7713 25.8 24.4716V7.52839C25.7904 7.22865 25.6671 6.94381 25.4552 6.73176C25.2433 6.5197 24.9586 6.39635 24.659 6.38677H20.561C20.2603 6.37802 19.9742 6.25457 19.7614 6.04169C19.5487 5.82881 19.4253 5.54261 19.4165 5.24168V1.14161C19.4072 0.84419 19.2858 0.561291 19.0768 0.349589C18.8678 0.137887 18.5865 0.0130193 18.2894 0L7.7245 0C7.42492 0.00957792 7.14023 0.132929 6.92828 0.344983C6.71634 0.557036 6.59305 0.841878 6.58348 1.14161V5.24168C6.57477 5.54203 6.45187 5.82773 6.23983 6.04052C6.0278 6.25331 5.74262 6.37715 5.44245 6.38677H1.34103C1.04144 6.39635 0.756749 6.5197 0.544805 6.73176C0.332861 6.94381 0.209574 7.22865 0.200001 7.52839V24.4716C0.209574 24.7713 0.332861 25.0562 0.544805 25.2682C0.756749 25.4803 1.04144 25.6036 1.34103 25.6132ZM6.58348 24.4716V7.52839C6.59305 7.22865 6.71634 6.94381 6.92828 6.73176C7.14023 6.5197 7.42492 6.39635 7.7245 6.38677H18.2894C18.589 6.39635 18.8737 6.5197 19.0856 6.73176C19.2976 6.94381 19.4209 7.22865 19.4304 7.52839V24.4716C19.4209 24.7713 19.2976 25.0562 19.0856 25.2682C18.8737 25.4803 18.589 25.6036 18.2894 25.6132H7.7245C7.42492 25.6036 7.14023 25.4803 6.92828 25.2682C6.71634 25.0562 6.59305 24.7713 6.58348 24.4716Z",fill:"currentColor"})})}function RR({className:e}){const{token:t}=Lt();return x.jsx("div",{className:de("flex items-center justify-center gap-2 p-2 pt-0",e),children:x.jsx(Mi,{children:x.jsxs("a",{href:`https://open.cx/?ref=${t}`,target:"_blank",rel:"noreferrer",className:de("text-[10px] flex items-center","text-muted-foreground/70 [&_svg]:text-muted-foreground/70","hover:text-primary [&_svg]:hover:text-primary"),children:[x.jsx("span",{children:"Powered by"}),x.jsx("span",{children:" "}),x.jsxs("span",{className:"flex items-center gap-[1px]",children:[x.jsx("span",{children:x.jsx(FQ,{className:"size-3 inline-block"})}),x.jsx("span",{className:"font-semibold",children:"open"})]})]})})})}function HQ({children:e}){return x.jsx("p",{className:"ps-4 text-xs text-muted-foreground/75 uppercase font-semibold tracking-tight",children:e})}function NR({session:e,className:t}){const{bot:n}=Lt(),{toChatScreen:r}=Oi(),i=e.assignee.kind==="human"?e.assignee.name||"Support Agent":(n==null?void 0:n.name)||"AI Support Agent",a=e.assignee.kind==="human"?e.assignee.avatarUrl||"":(n==null?void 0:n.avatar)||"";return x.jsxs(qt,{variant:"ghost",size:"lg",className:de("rounded-full p-2 pe-4 flex text-start justify-between w-full whitespace-normal",t),onClick:()=>r(e.id),children:[x.jsxs("div",{className:"flex-1 flex gap-2 items-center",children:[x.jsx(Pn,{mode:"wait",children:x.jsx(it,{snapExit:!0,children:x.jsxs(ny,{className:"size-10",children:[x.jsx(ry,{src:a,alt:"Agent Icon"}),x.jsx(iy,{children:x.jsx(OF,{className:"size-4"})})]})})}),x.jsxs("div",{className:"flex-1",children:[x.jsx(Pn,{mode:"wait",children:x.jsx(it,{snapExit:!0,children:i},i)}),x.jsx(Pn,{mode:"wait",children:e.lastMessage?x.jsx(it,{snapExit:!0,children:x.jsx(R3,{remarkPlugins:[QA],rehypePlugins:[nA],className:"line-clamp-1 overflow-hidden text-ellipsis text-xs text-muted-foreground",children:e.lastMessage})},e.lastMessage||"content"):x.jsx(it,{className:"w-1/2",snapExit:!0,children:x.jsx(eR,{className:"h-4 w-full"})},"skeleton")})]})]}),x.jsx(lF,{className:"size-4 text-muted-foreground shrink-0 rtl:-scale-100"})]})}function VQ(){const{t:e}=hl(),{toChatScreen:t}=Oi(),{sessionsState:{data:n,isInitialFetchLoading:r},openSessions:i,closedSessions:a,canCreateNewSession:s}=ki();return x.jsx("div",{className:"flex-1 flex flex-col overflow-scroll py-2 px-2",children:x.jsx(Pn,{mode:"wait",children:r?x.jsx(it,{className:"flex-1 flex items-center justify-center",children:x.jsx(rR,{})},"loading"):x.jsx(it,{className:"flex-1 flex flex-col gap-2 relative",children:n.length?x.jsxs(x.Fragment,{children:[x.jsxs(Pn,{children:[i.length>0&&x.jsx(it,{fadeIn:"up",delay:.2,className:"space-y-2",snapExit:!0,children:i.map(o=>x.jsx(NR,{session:o},o.id))},"open-sessions"),a.length>0&&x.jsxs(it,{className:"space-y-2",delay:.2,snapExit:!0,children:[x.jsx(HQ,{children:e("closed-conversations")}),a.map(o=>x.jsx(NR,{session:o,className:"opacity-50 hover:opacity-100"},o.id))]},"closed-sessions")]}),s&&x.jsx("div",{className:"mt-auto w-full rounded-3xl sticky bottom-0 outline outline-8 outline-background bg-background",children:E.createElement(qt,{...Ve("sessions/new_conversation_btn"),size:"lg",key:"new-session",className:"w-full",onClick:()=>t()},e("new-conversation"))})]}):x.jsxs("div",{className:"flex-1 flex flex-col gap-2 items-center",children:[x.jsx("div",{className:"flex-1 flex items-center justify-center",children:x.jsx("p",{className:"text-muted-foreground",children:e("no-conversations-yet")})}),E.createElement(qt,{...Ve("sessions/new_conversation_btn"),size:"lg",key:"new-session",className:"w-full",onClick:()=>t()},e("new-conversation"))]})},"sessions")})})}function qQ(){const{theme:e}=Ss();return cy({width:e.screens.sessions.width,height:e.screens.sessions.height}),x.jsx("div",{...Ve("sessions/root"),className:de("flex flex-col overflow-hidden bg-background"),style:{width:"100vw",maxWidth:"100vw",height:"100vh",maxHeight:"100vh"},children:x.jsxs("div",{className:"size-full flex flex-col",children:[x.jsx(nR,{}),x.jsx(VQ,{}),x.jsx(RR,{})]})})}var DR={};const YQ=m4(mL);var qh={},MR;function GQ(){if(MR)return qh;MR=1,Object.defineProperty(qh,"__esModule",{value:!0});var e=E;function t(){var n=e.useRef(!1),r=e.useCallback(function(){return n.current},[]);return e.useEffect(function(){return n.current=!0,function(){n.current=!1}},[]),r}return qh.default=t,qh}Object.defineProperty(DR,"__esModule",{value:!0});var _y=YQ,Sy=E,$Q=_y.__importDefault(GQ());function XQ(e,t,n){t===void 0&&(t=[]),n===void 0&&(n={loading:!1});var r=Sy.useRef(0),i=$Q.default(),a=Sy.useState(n),s=a[0],o=a[1],l=Sy.useCallback(function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];var f=++r.current;return s.loading||o(function(d){return _y.__assign(_y.__assign({},d),{loading:!0})}),e.apply(void 0,u).then(function(d){return i()&&f===r.current&&o({value:d,loading:!1}),d},function(d){return i()&&f===r.current&&o({error:d,loading:!1}),d})},t);return[s,l]}var KQ=DR.default=XQ,qe;(function(e){e.assertEqual=i=>{};function t(i){}e.assertIs=t;function n(i){throw new Error}e.assertNever=n,e.arrayToEnum=i=>{const a={};for(const s of i)a[s]=s;return a},e.getValidEnumValues=i=>{const a=e.objectKeys(i).filter(o=>typeof i[i[o]]!="number"),s={};for(const o of a)s[o]=i[o];return e.objectValues(s)},e.objectValues=i=>e.objectKeys(i).map(function(a){return i[a]}),e.objectKeys=typeof Object.keys=="function"?i=>Object.keys(i):i=>{const a=[];for(const s in i)Object.prototype.hasOwnProperty.call(i,s)&&a.push(s);return a},e.find=(i,a)=>{for(const s of i)if(a(s))return s},e.isInteger=typeof Number.isInteger=="function"?i=>Number.isInteger(i):i=>typeof i=="number"&&Number.isFinite(i)&&Math.floor(i)===i;function r(i,a=" | "){return i.map(s=>typeof s=="string"?`'${s}'`:s).join(a)}e.joinValues=r,e.jsonStringifyReplacer=(i,a)=>typeof a=="bigint"?a.toString():a})(qe||(qe={}));var LR;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(LR||(LR={}));const le=qe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),La=e=>{switch(typeof e){case"undefined":return le.undefined;case"string":return le.string;case"number":return Number.isNaN(e)?le.nan:le.number;case"boolean":return le.boolean;case"function":return le.function;case"bigint":return le.bigint;case"symbol":return le.symbol;case"object":return Array.isArray(e)?le.array:e===null?le.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?le.promise:typeof Map<"u"&&e instanceof Map?le.map:typeof Set<"u"&&e instanceof Set?le.set:typeof Date<"u"&&e instanceof Date?le.date:le.object;default:return le.unknown}},ee=qe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class zi extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(a){return a.message},r={_errors:[]},i=a=>{for(const s of a.issues)if(s.code==="invalid_union")s.unionErrors.map(i);else if(s.code==="invalid_return_type")i(s.returnTypeError);else if(s.code==="invalid_arguments")i(s.argumentsError);else if(s.path.length===0)r._errors.push(n(s));else{let o=r,l=0;for(;l<s.path.length;){const u=s.path[l];l===s.path.length-1?(o[u]=o[u]||{_errors:[]},o[u]._errors.push(n(s))):o[u]=o[u]||{_errors:[]},o=o[u],l++}}};return i(this),r}static assert(t){if(!(t instanceof zi))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,qe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const i of this.issues)if(i.path.length>0){const a=i.path[0];n[a]=n[a]||[],n[a].push(t(i))}else r.push(t(i));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}zi.create=e=>new zi(e);const Ay=(e,t)=>{let n;switch(e.code){case ee.invalid_type:e.received===le.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case ee.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,qe.jsonStringifyReplacer)}`;break;case ee.unrecognized_keys:n=`Unrecognized key(s) in object: ${qe.joinValues(e.keys,", ")}`;break;case ee.invalid_union:n="Invalid input";break;case ee.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${qe.joinValues(e.options)}`;break;case ee.invalid_enum_value:n=`Invalid enum value. Expected ${qe.joinValues(e.options)}, received '${e.received}'`;break;case ee.invalid_arguments:n="Invalid function arguments";break;case ee.invalid_return_type:n="Invalid function return type";break;case ee.invalid_date:n="Invalid date";break;case ee.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:qe.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case ee.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case ee.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case ee.custom:n="Invalid input";break;case ee.invalid_intersection_types:n="Intersection results could not be merged";break;case ee.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case ee.not_finite:n="Number must be finite";break;default:n=t.defaultError,qe.assertNever(e)}return{message:n}};let WQ=Ay;function QQ(){return WQ}const ZQ=e=>{const{data:t,path:n,errorMaps:r,issueData:i}=e,a=[...n,...i.path||[]],s={...i,path:a};if(i.message!==void 0)return{...i,path:a,message:i.message};let o="";const l=r.filter(u=>!!u).slice().reverse();for(const u of l)o=u(s,{data:t,defaultError:o}).message;return{...i,path:a,message:o}};function ie(e,t){const n=QQ(),r=ZQ({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Ay?void 0:Ay].filter(i=>!!i)});e.common.issues.push(r)}class ir{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const i of n){if(i.status==="aborted")return xe;i.status==="dirty"&&t.dirty(),r.push(i.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const i of n){const a=await i.key,s=await i.value;r.push({key:a,value:s})}return ir.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const i of n){const{key:a,value:s}=i;if(a.status==="aborted"||s.status==="aborted")return xe;a.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),a.value!=="__proto__"&&(typeof s.value<"u"||i.alwaysSet)&&(r[a.value]=s.value)}return{status:t.value,value:r}}}const xe=Object.freeze({status:"aborted"}),Oc=e=>({status:"dirty",value:e}),wr=e=>({status:"valid",value:e}),IR=e=>e.status==="aborted",PR=e=>e.status==="dirty",pl=e=>e.status==="valid",Yh=e=>typeof Promise<"u"&&e instanceof Promise;var ue;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t==null?void 0:t.message})(ue||(ue={}));class Ia{constructor(t,n,r,i){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=i}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const BR=(e,t)=>{if(pl(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new zi(e.common.issues);return this._error=n,this._error}}};function Oe(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:i}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:i}:{errorMap:(s,o)=>{const{message:l}=e;return s.code==="invalid_enum_value"?{message:l??o.defaultError}:typeof o.data>"u"?{message:l??r??o.defaultError}:s.code!=="invalid_type"?{message:o.defaultError}:{message:l??n??o.defaultError}},description:i}}class He{get description(){return this._def.description}_getType(t){return La(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:La(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new ir,ctx:{common:t.parent.common,data:t.data,parsedType:La(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Yh(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:(n==null?void 0:n.async)??!1,contextualErrorMap:n==null?void 0:n.errorMap},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:La(t)},i=this._parseSync({data:t,path:r.path,parent:r});return BR(r,i)}"~validate"(t){var r,i;const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:La(t)};if(!this["~standard"].async)try{const a=this._parseSync({data:t,path:[],parent:n});return pl(a)?{value:a.value}:{issues:n.common.issues}}catch(a){(i=(r=a==null?void 0:a.message)==null?void 0:r.toLowerCase())!=null&&i.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(a=>pl(a)?{value:a.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n==null?void 0:n.errorMap,async:!0},path:(n==null?void 0:n.path)||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:La(t)},i=this._parse({data:t,path:r.path,parent:r}),a=await(Yh(i)?i:Promise.resolve(i));return BR(r,a)}refine(t,n){const r=i=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(i):n;return this._refinement((i,a)=>{const s=t(i),o=()=>a.addIssue({code:ee.custom,...r(i)});return typeof Promise<"u"&&s instanceof Promise?s.then(l=>l?!0:(o(),!1)):s?!0:(o(),!1)})}refinement(t,n){return this._refinement((r,i)=>t(r)?!0:(i.addIssue(typeof n=="function"?n(r,i):n),!1))}_refinement(t){return new bl({schema:this,typeName:Ee.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Ua.create(this,this._def)}nullable(){return yl.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return oi.create(this)}promise(){return Kh.create(this,this._def)}or(t){return $h.create([this,t],this._def)}and(t){return Xh.create(this,t,this._def)}transform(t){return new bl({...Oe(this._def),schema:this,typeName:Ee.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Oy({...Oe(this._def),innerType:this,defaultValue:n,typeName:Ee.ZodDefault})}brand(){return new EZ({typeName:Ee.ZodBranded,type:this,...Oe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Ry({...Oe(this._def),innerType:this,catchValue:n,typeName:Ee.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Ny.create(this,t)}readonly(){return Dy.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const JQ=/^c[^\s-]{8,}$/i,eZ=/^[0-9a-z]+$/,tZ=/^[0-9A-HJKMNP-TV-Z]{26}$/i,nZ=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,rZ=/^[a-z0-9_-]{21}$/i,iZ=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,aZ=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,sZ=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,oZ="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Cy;const lZ=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,uZ=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,cZ=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,fZ=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,dZ=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,hZ=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,UR="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",pZ=new RegExp(`^${UR}$`);function zR(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function mZ(e){return new RegExp(`^${zR(e)}$`)}function gZ(e){let t=`${UR}T${zR(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function bZ(e,t){return!!((t==="v4"||!t)&&lZ.test(e)||(t==="v6"||!t)&&cZ.test(e))}function yZ(e,t){if(!iZ.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),i=JSON.parse(atob(r));return!(typeof i!="object"||i===null||"typ"in i&&(i==null?void 0:i.typ)!=="JWT"||!i.alg||t&&i.alg!==t)}catch{return!1}}function vZ(e,t){return!!((t==="v4"||!t)&&uZ.test(e)||(t==="v6"||!t)&&fZ.test(e))}class Pa extends He{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==le.string){const a=this._getOrReturnCtx(t);return ie(a,{code:ee.invalid_type,expected:le.string,received:a.parsedType}),xe}const r=new ir;let i;for(const a of this._def.checks)if(a.kind==="min")t.data.length<a.value&&(i=this._getOrReturnCtx(t,i),ie(i,{code:ee.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="max")t.data.length>a.value&&(i=this._getOrReturnCtx(t,i),ie(i,{code:ee.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!1,message:a.message}),r.dirty());else if(a.kind==="length"){const s=t.data.length>a.value,o=t.data.length<a.value;(s||o)&&(i=this._getOrReturnCtx(t,i),s?ie(i,{code:ee.too_big,maximum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}):o&&ie(i,{code:ee.too_small,minimum:a.value,type:"string",inclusive:!0,exact:!0,message:a.message}),r.dirty())}else if(a.kind==="email")sZ.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"email",code:ee.invalid_string,message:a.message}),r.dirty());else if(a.kind==="emoji")Cy||(Cy=new RegExp(oZ,"u")),Cy.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"emoji",code:ee.invalid_string,message:a.message}),r.dirty());else if(a.kind==="uuid")nZ.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"uuid",code:ee.invalid_string,message:a.message}),r.dirty());else if(a.kind==="nanoid")rZ.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"nanoid",code:ee.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid")JQ.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"cuid",code:ee.invalid_string,message:a.message}),r.dirty());else if(a.kind==="cuid2")eZ.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"cuid2",code:ee.invalid_string,message:a.message}),r.dirty());else if(a.kind==="ulid")tZ.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"ulid",code:ee.invalid_string,message:a.message}),r.dirty());else if(a.kind==="url")try{new URL(t.data)}catch{i=this._getOrReturnCtx(t,i),ie(i,{validation:"url",code:ee.invalid_string,message:a.message}),r.dirty()}else a.kind==="regex"?(a.regex.lastIndex=0,a.regex.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"regex",code:ee.invalid_string,message:a.message}),r.dirty())):a.kind==="trim"?t.data=t.data.trim():a.kind==="includes"?t.data.includes(a.value,a.position)||(i=this._getOrReturnCtx(t,i),ie(i,{code:ee.invalid_string,validation:{includes:a.value,position:a.position},message:a.message}),r.dirty()):a.kind==="toLowerCase"?t.data=t.data.toLowerCase():a.kind==="toUpperCase"?t.data=t.data.toUpperCase():a.kind==="startsWith"?t.data.startsWith(a.value)||(i=this._getOrReturnCtx(t,i),ie(i,{code:ee.invalid_string,validation:{startsWith:a.value},message:a.message}),r.dirty()):a.kind==="endsWith"?t.data.endsWith(a.value)||(i=this._getOrReturnCtx(t,i),ie(i,{code:ee.invalid_string,validation:{endsWith:a.value},message:a.message}),r.dirty()):a.kind==="datetime"?gZ(a).test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{code:ee.invalid_string,validation:"datetime",message:a.message}),r.dirty()):a.kind==="date"?pZ.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{code:ee.invalid_string,validation:"date",message:a.message}),r.dirty()):a.kind==="time"?mZ(a).test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{code:ee.invalid_string,validation:"time",message:a.message}),r.dirty()):a.kind==="duration"?aZ.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"duration",code:ee.invalid_string,message:a.message}),r.dirty()):a.kind==="ip"?bZ(t.data,a.version)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"ip",code:ee.invalid_string,message:a.message}),r.dirty()):a.kind==="jwt"?yZ(t.data,a.alg)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"jwt",code:ee.invalid_string,message:a.message}),r.dirty()):a.kind==="cidr"?vZ(t.data,a.version)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"cidr",code:ee.invalid_string,message:a.message}),r.dirty()):a.kind==="base64"?dZ.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"base64",code:ee.invalid_string,message:a.message}),r.dirty()):a.kind==="base64url"?hZ.test(t.data)||(i=this._getOrReturnCtx(t,i),ie(i,{validation:"base64url",code:ee.invalid_string,message:a.message}),r.dirty()):qe.assertNever(a);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(i=>t.test(i),{validation:n,code:ee.invalid_string,...ue.errToObj(r)})}_addCheck(t){return new Pa({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...ue.errToObj(t)})}url(t){return this._addCheck({kind:"url",...ue.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...ue.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...ue.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...ue.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...ue.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...ue.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...ue.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...ue.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...ue.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...ue.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...ue.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...ue.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,offset:(t==null?void 0:t.offset)??!1,local:(t==null?void 0:t.local)??!1,...ue.errToObj(t==null?void 0:t.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof(t==null?void 0:t.precision)>"u"?null:t==null?void 0:t.precision,...ue.errToObj(t==null?void 0:t.message)})}duration(t){return this._addCheck({kind:"duration",...ue.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...ue.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n==null?void 0:n.position,...ue.errToObj(n==null?void 0:n.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...ue.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...ue.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...ue.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...ue.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...ue.errToObj(n)})}nonempty(t){return this.min(1,ue.errToObj(t))}trim(){return new Pa({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Pa({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Pa({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Pa.create=e=>new Pa({checks:[],typeName:Ee.ZodString,coerce:(e==null?void 0:e.coerce)??!1,...Oe(e)});function xZ(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,i=n>r?n:r,a=Number.parseInt(e.toFixed(i).replace(".","")),s=Number.parseInt(t.toFixed(i).replace(".",""));return a%s/10**i}class Rc extends He{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==le.number){const a=this._getOrReturnCtx(t);return ie(a,{code:ee.invalid_type,expected:le.number,received:a.parsedType}),xe}let r;const i=new ir;for(const a of this._def.checks)a.kind==="int"?qe.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{code:ee.invalid_type,expected:"integer",received:"float",message:a.message}),i.dirty()):a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(r=this._getOrReturnCtx(t,r),ie(r,{code:ee.too_small,minimum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),ie(r,{code:ee.too_big,maximum:a.value,type:"number",inclusive:a.inclusive,exact:!1,message:a.message}),i.dirty()):a.kind==="multipleOf"?xZ(t.data,a.value)!==0&&(r=this._getOrReturnCtx(t,r),ie(r,{code:ee.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):a.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),ie(r,{code:ee.not_finite,message:a.message}),i.dirty()):qe.assertNever(a);return{status:i.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,ue.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ue.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ue.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ue.toString(n))}setLimit(t,n,r,i){return new Rc({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ue.toString(i)}]})}_addCheck(t){return new Rc({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:ue.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:ue.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:ue.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:ue.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:ue.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ue.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:ue.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:ue.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:ue.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&qe.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Rc.create=e=>new Rc({checks:[],typeName:Ee.ZodNumber,coerce:(e==null?void 0:e.coerce)||!1,...Oe(e)});class Nc extends He{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==le.bigint)return this._getInvalidInput(t);let r;const i=new ir;for(const a of this._def.checks)a.kind==="min"?(a.inclusive?t.data<a.value:t.data<=a.value)&&(r=this._getOrReturnCtx(t,r),ie(r,{code:ee.too_small,type:"bigint",minimum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="max"?(a.inclusive?t.data>a.value:t.data>=a.value)&&(r=this._getOrReturnCtx(t,r),ie(r,{code:ee.too_big,type:"bigint",maximum:a.value,inclusive:a.inclusive,message:a.message}),i.dirty()):a.kind==="multipleOf"?t.data%a.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),ie(r,{code:ee.not_multiple_of,multipleOf:a.value,message:a.message}),i.dirty()):qe.assertNever(a);return{status:i.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return ie(n,{code:ee.invalid_type,expected:le.bigint,received:n.parsedType}),xe}gte(t,n){return this.setLimit("min",t,!0,ue.toString(n))}gt(t,n){return this.setLimit("min",t,!1,ue.toString(n))}lte(t,n){return this.setLimit("max",t,!0,ue.toString(n))}lt(t,n){return this.setLimit("max",t,!1,ue.toString(n))}setLimit(t,n,r,i){return new Nc({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:ue.toString(i)}]})}_addCheck(t){return new Nc({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:ue.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:ue.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:ue.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:ue.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:ue.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Nc.create=e=>new Nc({checks:[],typeName:Ee.ZodBigInt,coerce:(e==null?void 0:e.coerce)??!1,...Oe(e)});class jR extends He{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==le.boolean){const r=this._getOrReturnCtx(t);return ie(r,{code:ee.invalid_type,expected:le.boolean,received:r.parsedType}),xe}return wr(t.data)}}jR.create=e=>new jR({typeName:Ee.ZodBoolean,coerce:(e==null?void 0:e.coerce)||!1,...Oe(e)});class Gh extends He{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==le.date){const a=this._getOrReturnCtx(t);return ie(a,{code:ee.invalid_type,expected:le.date,received:a.parsedType}),xe}if(Number.isNaN(t.data.getTime())){const a=this._getOrReturnCtx(t);return ie(a,{code:ee.invalid_date}),xe}const r=new ir;let i;for(const a of this._def.checks)a.kind==="min"?t.data.getTime()<a.value&&(i=this._getOrReturnCtx(t,i),ie(i,{code:ee.too_small,message:a.message,inclusive:!0,exact:!1,minimum:a.value,type:"date"}),r.dirty()):a.kind==="max"?t.data.getTime()>a.value&&(i=this._getOrReturnCtx(t,i),ie(i,{code:ee.too_big,message:a.message,inclusive:!0,exact:!1,maximum:a.value,type:"date"}),r.dirty()):qe.assertNever(a);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Gh({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:ue.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:ue.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Gh.create=e=>new Gh({checks:[],coerce:(e==null?void 0:e.coerce)||!1,typeName:Ee.ZodDate,...Oe(e)});class FR extends He{_parse(t){if(this._getType(t)!==le.symbol){const r=this._getOrReturnCtx(t);return ie(r,{code:ee.invalid_type,expected:le.symbol,received:r.parsedType}),xe}return wr(t.data)}}FR.create=e=>new FR({typeName:Ee.ZodSymbol,...Oe(e)});class HR extends He{_parse(t){if(this._getType(t)!==le.undefined){const r=this._getOrReturnCtx(t);return ie(r,{code:ee.invalid_type,expected:le.undefined,received:r.parsedType}),xe}return wr(t.data)}}HR.create=e=>new HR({typeName:Ee.ZodUndefined,...Oe(e)});class VR extends He{_parse(t){if(this._getType(t)!==le.null){const r=this._getOrReturnCtx(t);return ie(r,{code:ee.invalid_type,expected:le.null,received:r.parsedType}),xe}return wr(t.data)}}VR.create=e=>new VR({typeName:Ee.ZodNull,...Oe(e)});class qR extends He{constructor(){super(...arguments),this._any=!0}_parse(t){return wr(t.data)}}qR.create=e=>new qR({typeName:Ee.ZodAny,...Oe(e)});class YR extends He{constructor(){super(...arguments),this._unknown=!0}_parse(t){return wr(t.data)}}YR.create=e=>new YR({typeName:Ee.ZodUnknown,...Oe(e)});class Ba extends He{_parse(t){const n=this._getOrReturnCtx(t);return ie(n,{code:ee.invalid_type,expected:le.never,received:n.parsedType}),xe}}Ba.create=e=>new Ba({typeName:Ee.ZodNever,...Oe(e)});class GR extends He{_parse(t){if(this._getType(t)!==le.undefined){const r=this._getOrReturnCtx(t);return ie(r,{code:ee.invalid_type,expected:le.void,received:r.parsedType}),xe}return wr(t.data)}}GR.create=e=>new GR({typeName:Ee.ZodVoid,...Oe(e)});class oi extends He{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),i=this._def;if(n.parsedType!==le.array)return ie(n,{code:ee.invalid_type,expected:le.array,received:n.parsedType}),xe;if(i.exactLength!==null){const s=n.data.length>i.exactLength.value,o=n.data.length<i.exactLength.value;(s||o)&&(ie(n,{code:s?ee.too_big:ee.too_small,minimum:o?i.exactLength.value:void 0,maximum:s?i.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:i.exactLength.message}),r.dirty())}if(i.minLength!==null&&n.data.length<i.minLength.value&&(ie(n,{code:ee.too_small,minimum:i.minLength.value,type:"array",inclusive:!0,exact:!1,message:i.minLength.message}),r.dirty()),i.maxLength!==null&&n.data.length>i.maxLength.value&&(ie(n,{code:ee.too_big,maximum:i.maxLength.value,type:"array",inclusive:!0,exact:!1,message:i.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((s,o)=>i.type._parseAsync(new Ia(n,s,n.path,o)))).then(s=>ir.mergeArray(r,s));const a=[...n.data].map((s,o)=>i.type._parseSync(new Ia(n,s,n.path,o)));return ir.mergeArray(r,a)}get element(){return this._def.type}min(t,n){return new oi({...this._def,minLength:{value:t,message:ue.toString(n)}})}max(t,n){return new oi({...this._def,maxLength:{value:t,message:ue.toString(n)}})}length(t,n){return new oi({...this._def,exactLength:{value:t,message:ue.toString(n)}})}nonempty(t){return this.min(1,t)}}oi.create=(e,t)=>new oi({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ee.ZodArray,...Oe(t)});function ml(e){if(e instanceof Bt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=Ua.create(ml(r))}return new Bt({...e._def,shape:()=>t})}else return e instanceof oi?new oi({...e._def,type:ml(e.element)}):e instanceof Ua?Ua.create(ml(e.unwrap())):e instanceof yl?yl.create(ml(e.unwrap())):e instanceof Cs?Cs.create(e.items.map(t=>ml(t))):e}class Bt extends He{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=qe.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==le.object){const u=this._getOrReturnCtx(t);return ie(u,{code:ee.invalid_type,expected:le.object,received:u.parsedType}),xe}const{status:r,ctx:i}=this._processInputParams(t),{shape:a,keys:s}=this._getCached(),o=[];if(!(this._def.catchall instanceof Ba&&this._def.unknownKeys==="strip"))for(const u in i.data)s.includes(u)||o.push(u);const l=[];for(const u of s){const c=a[u],f=i.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new Ia(i,f,i.path,u)),alwaysSet:u in i.data})}if(this._def.catchall instanceof Ba){const u=this._def.unknownKeys;if(u==="passthrough")for(const c of o)l.push({key:{status:"valid",value:c},value:{status:"valid",value:i.data[c]}});else if(u==="strict")o.length>0&&(ie(i,{code:ee.unrecognized_keys,keys:o}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const u=this._def.catchall;for(const c of o){const f=i.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new Ia(i,f,i.path,c)),alwaysSet:c in i.data})}}return i.common.async?Promise.resolve().then(async()=>{const u=[];for(const c of l){const f=await c.key,d=await c.value;u.push({key:f,value:d,alwaysSet:c.alwaysSet})}return u}).then(u=>ir.mergeObjectSync(r,u)):ir.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return ue.errToObj,new Bt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{var a,s;const i=((s=(a=this._def).errorMap)==null?void 0:s.call(a,n,r).message)??r.defaultError;return n.code==="unrecognized_keys"?{message:ue.errToObj(t).message??i}:{message:i}}}:{}})}strip(){return new Bt({...this._def,unknownKeys:"strip"})}passthrough(){return new Bt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Bt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Bt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Ee.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Bt({...this._def,catchall:t})}pick(t){const n={};for(const r of qe.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new Bt({...this._def,shape:()=>n})}omit(t){const n={};for(const r of qe.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new Bt({...this._def,shape:()=>n})}deepPartial(){return ml(this)}partial(t){const n={};for(const r of qe.objectKeys(this.shape)){const i=this.shape[r];t&&!t[r]?n[r]=i:n[r]=i.optional()}return new Bt({...this._def,shape:()=>n})}required(t){const n={};for(const r of qe.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let a=this.shape[r];for(;a instanceof Ua;)a=a._def.innerType;n[r]=a}return new Bt({...this._def,shape:()=>n})}keyof(){return WR(qe.objectKeys(this.shape))}}Bt.create=(e,t)=>new Bt({shape:()=>e,unknownKeys:"strip",catchall:Ba.create(),typeName:Ee.ZodObject,...Oe(t)}),Bt.strictCreate=(e,t)=>new Bt({shape:()=>e,unknownKeys:"strict",catchall:Ba.create(),typeName:Ee.ZodObject,...Oe(t)}),Bt.lazycreate=(e,t)=>new Bt({shape:e,unknownKeys:"strip",catchall:Ba.create(),typeName:Ee.ZodObject,...Oe(t)});class $h extends He{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function i(a){for(const o of a)if(o.result.status==="valid")return o.result;for(const o of a)if(o.result.status==="dirty")return n.common.issues.push(...o.ctx.common.issues),o.result;const s=a.map(o=>new zi(o.ctx.common.issues));return ie(n,{code:ee.invalid_union,unionErrors:s}),xe}if(n.common.async)return Promise.all(r.map(async a=>{const s={...n,common:{...n.common,issues:[]},parent:null};return{result:await a._parseAsync({data:n.data,path:n.path,parent:s}),ctx:s}})).then(i);{let a;const s=[];for(const l of r){const u={...n,common:{...n.common,issues:[]},parent:null},c=l._parseSync({data:n.data,path:n.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!a&&(a={result:c,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(a)return n.common.issues.push(...a.ctx.common.issues),a.result;const o=s.map(l=>new zi(l));return ie(n,{code:ee.invalid_union,unionErrors:o}),xe}}get options(){return this._def.options}}$h.create=(e,t)=>new $h({options:e,typeName:Ee.ZodUnion,...Oe(t)});function ky(e,t){const n=La(e),r=La(t);if(e===t)return{valid:!0,data:e};if(n===le.object&&r===le.object){const i=qe.objectKeys(t),a=qe.objectKeys(e).filter(o=>i.indexOf(o)!==-1),s={...e,...t};for(const o of a){const l=ky(e[o],t[o]);if(!l.valid)return{valid:!1};s[o]=l.data}return{valid:!0,data:s}}else if(n===le.array&&r===le.array){if(e.length!==t.length)return{valid:!1};const i=[];for(let a=0;a<e.length;a++){const s=e[a],o=t[a],l=ky(s,o);if(!l.valid)return{valid:!1};i.push(l.data)}return{valid:!0,data:i}}else return n===le.date&&r===le.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Xh extends He{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=(a,s)=>{if(IR(a)||IR(s))return xe;const o=ky(a.value,s.value);return o.valid?((PR(a)||PR(s))&&n.dirty(),{status:n.value,value:o.data}):(ie(r,{code:ee.invalid_intersection_types}),xe)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([a,s])=>i(a,s)):i(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Xh.create=(e,t,n)=>new Xh({left:e,right:t,typeName:Ee.ZodIntersection,...Oe(n)});class Cs extends He{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==le.array)return ie(r,{code:ee.invalid_type,expected:le.array,received:r.parsedType}),xe;if(r.data.length<this._def.items.length)return ie(r,{code:ee.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),xe;!this._def.rest&&r.data.length>this._def.items.length&&(ie(r,{code:ee.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const a=[...r.data].map((s,o)=>{const l=this._def.items[o]||this._def.rest;return l?l._parse(new Ia(r,s,r.path,o)):null}).filter(s=>!!s);return r.common.async?Promise.all(a).then(s=>ir.mergeArray(n,s)):ir.mergeArray(n,a)}get items(){return this._def.items}rest(t){return new Cs({...this._def,rest:t})}}Cs.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Cs({items:e,typeName:Ee.ZodTuple,rest:null,...Oe(t)})};class $R extends He{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==le.map)return ie(r,{code:ee.invalid_type,expected:le.map,received:r.parsedType}),xe;const i=this._def.keyType,a=this._def.valueType,s=[...r.data.entries()].map(([o,l],u)=>({key:i._parse(new Ia(r,o,r.path,[u,"key"])),value:a._parse(new Ia(r,l,r.path,[u,"value"]))}));if(r.common.async){const o=new Map;return Promise.resolve().then(async()=>{for(const l of s){const u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return xe;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),o.set(u.value,c.value)}return{status:n.value,value:o}})}else{const o=new Map;for(const l of s){const u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return xe;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),o.set(u.value,c.value)}return{status:n.value,value:o}}}}$R.create=(e,t,n)=>new $R({valueType:t,keyType:e,typeName:Ee.ZodMap,...Oe(n)});class Dc extends He{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==le.set)return ie(r,{code:ee.invalid_type,expected:le.set,received:r.parsedType}),xe;const i=this._def;i.minSize!==null&&r.data.size<i.minSize.value&&(ie(r,{code:ee.too_small,minimum:i.minSize.value,type:"set",inclusive:!0,exact:!1,message:i.minSize.message}),n.dirty()),i.maxSize!==null&&r.data.size>i.maxSize.value&&(ie(r,{code:ee.too_big,maximum:i.maxSize.value,type:"set",inclusive:!0,exact:!1,message:i.maxSize.message}),n.dirty());const a=this._def.valueType;function s(l){const u=new Set;for(const c of l){if(c.status==="aborted")return xe;c.status==="dirty"&&n.dirty(),u.add(c.value)}return{status:n.value,value:u}}const o=[...r.data.values()].map((l,u)=>a._parse(new Ia(r,l,r.path,u)));return r.common.async?Promise.all(o).then(l=>s(l)):s(o)}min(t,n){return new Dc({...this._def,minSize:{value:t,message:ue.toString(n)}})}max(t,n){return new Dc({...this._def,maxSize:{value:t,message:ue.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}Dc.create=(e,t)=>new Dc({valueType:e,minSize:null,maxSize:null,typeName:Ee.ZodSet,...Oe(t)});class XR extends He{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}XR.create=(e,t)=>new XR({getter:e,typeName:Ee.ZodLazy,...Oe(t)});class KR extends He{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return ie(n,{received:n.data,code:ee.invalid_literal,expected:this._def.value}),xe}return{status:"valid",value:t.data}}get value(){return this._def.value}}KR.create=(e,t)=>new KR({value:e,typeName:Ee.ZodLiteral,...Oe(t)});function WR(e,t){return new gl({values:e,typeName:Ee.ZodEnum,...Oe(t)})}class gl extends He{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return ie(n,{expected:qe.joinValues(r),received:n.parsedType,code:ee.invalid_type}),xe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return ie(n,{received:n.data,code:ee.invalid_enum_value,options:r}),xe}return wr(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return gl.create(t,{...this._def,...n})}exclude(t,n=this._def){return gl.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}gl.create=WR;class QR extends He{_parse(t){const n=qe.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==le.string&&r.parsedType!==le.number){const i=qe.objectValues(n);return ie(r,{expected:qe.joinValues(i),received:r.parsedType,code:ee.invalid_type}),xe}if(this._cache||(this._cache=new Set(qe.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const i=qe.objectValues(n);return ie(r,{received:r.data,code:ee.invalid_enum_value,options:i}),xe}return wr(t.data)}get enum(){return this._def.values}}QR.create=(e,t)=>new QR({values:e,typeName:Ee.ZodNativeEnum,...Oe(t)});class Kh extends He{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==le.promise&&n.common.async===!1)return ie(n,{code:ee.invalid_type,expected:le.promise,received:n.parsedType}),xe;const r=n.parsedType===le.promise?n.data:Promise.resolve(n.data);return wr(r.then(i=>this._def.type.parseAsync(i,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Kh.create=(e,t)=>new Kh({type:e,typeName:Ee.ZodPromise,...Oe(t)});class bl extends He{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ee.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),i=this._def.effect||null,a={addIssue:s=>{ie(r,s),s.fatal?n.abort():n.dirty()},get path(){return r.path}};if(a.addIssue=a.addIssue.bind(a),i.type==="preprocess"){const s=i.transform(r.data,a);if(r.common.async)return Promise.resolve(s).then(async o=>{if(n.value==="aborted")return xe;const l=await this._def.schema._parseAsync({data:o,path:r.path,parent:r});return l.status==="aborted"?xe:l.status==="dirty"||n.value==="dirty"?Oc(l.value):l});{if(n.value==="aborted")return xe;const o=this._def.schema._parseSync({data:s,path:r.path,parent:r});return o.status==="aborted"?xe:o.status==="dirty"||n.value==="dirty"?Oc(o.value):o}}if(i.type==="refinement"){const s=o=>{const l=i.refinement(o,a);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return o};if(r.common.async===!1){const o=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?xe:(o.status==="dirty"&&n.dirty(),s(o.value),{status:n.value,value:o.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(o=>o.status==="aborted"?xe:(o.status==="dirty"&&n.dirty(),s(o.value).then(()=>({status:n.value,value:o.value}))))}if(i.type==="transform")if(r.common.async===!1){const s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!pl(s))return xe;const o=i.transform(s.value,a);if(o instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:o}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>pl(s)?Promise.resolve(i.transform(s.value,a)).then(o=>({status:n.value,value:o})):xe);qe.assertNever(i)}}bl.create=(e,t,n)=>new bl({schema:e,typeName:Ee.ZodEffects,effect:t,...Oe(n)}),bl.createWithPreprocess=(e,t,n)=>new bl({schema:t,effect:{type:"preprocess",transform:e},typeName:Ee.ZodEffects,...Oe(n)});class Ua extends He{_parse(t){return this._getType(t)===le.undefined?wr(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}Ua.create=(e,t)=>new Ua({innerType:e,typeName:Ee.ZodOptional,...Oe(t)});class yl extends He{_parse(t){return this._getType(t)===le.null?wr(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}yl.create=(e,t)=>new yl({innerType:e,typeName:Ee.ZodNullable,...Oe(t)});class Oy extends He{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===le.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Oy.create=(e,t)=>new Oy({innerType:e,typeName:Ee.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Oe(t)});class Ry extends He{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},i=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Yh(i)?i.then(a=>({status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new zi(r.common.issues)},input:r.data})})):{status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new zi(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}Ry.create=(e,t)=>new Ry({innerType:e,typeName:Ee.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Oe(t)});class ZR extends He{_parse(t){if(this._getType(t)!==le.nan){const r=this._getOrReturnCtx(t);return ie(r,{code:ee.invalid_type,expected:le.nan,received:r.parsedType}),xe}return{status:"valid",value:t.data}}}ZR.create=e=>new ZR({typeName:Ee.ZodNaN,...Oe(e)});class EZ extends He{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class Ny extends He{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const a=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?xe:a.status==="dirty"?(n.dirty(),Oc(a.value)):this._def.out._parseAsync({data:a.value,path:r.path,parent:r})})();{const i=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?xe:i.status==="dirty"?(n.dirty(),{status:"dirty",value:i.value}):this._def.out._parseSync({data:i.value,path:r.path,parent:r})}}static create(t,n){return new Ny({in:t,out:n,typeName:Ee.ZodPipeline})}}class Dy extends He{_parse(t){const n=this._def.innerType._parse(t),r=i=>(pl(i)&&(i.value=Object.freeze(i.value)),i);return Yh(n)?n.then(i=>r(i)):r(n)}unwrap(){return this._def.innerType}}Dy.create=(e,t)=>new Dy({innerType:e,typeName:Ee.ZodReadonly,...Oe(t)});var Ee;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Ee||(Ee={}));const JR=Pa.create;Ba.create,oi.create;const TZ=Bt.create;$h.create,Xh.create,Cs.create,gl.create,Kh.create,Ua.create,yl.create;const Wh=E.forwardRef(({className:e,type:t,...n},r)=>{const{isSmallScreen:i}=Ui();return x.jsx(Mi,{ref:r,children:x.jsx("input",{type:t,className:de(i?"text-[16px]":"text-sm","flex w-full rounded-xl p-2 ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-primary-foreground placeholder:text-muted-foreground/75 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 transition","rounded-2xl px-4","border shadow-sm",e),...n})})});Wh.displayName="Input";function wZ(){const{contentIframeRef:e}=_n(),{inline:t}=Lt(),n=E.useRef(null);return E.useEffect(()=>{const r=e==null?void 0:e.current;if(r&&n.current){const i=n.current;let a;const s=new ResizeObserver(()=>{a=requestAnimationFrame(()=>{const o=i.offsetHeight;r.style.setProperty("--opencx-widget-height",t?"100%":`${o.toFixed(1)}px`)})});return s.observe(i),()=>{cancelAnimationFrame(a),s.unobserve(i)}}},[e,t]),{observedElementRef:n}}const _Z=TZ({name:JR().min(2),email:JR().email()});function SZ(){var m,y,v,w,_,A,N,L,F;const{setIsOpen:e}=Po(),{createUnverifiedContact:t}=y8(),{isSmallScreen:n}=Ui(),r=Lt(),{theme:i}=Ss(),{t:a}=hl(),{data:s}=Ld(),{observedElementRef:o}=wZ();cy({height:void 0,width:i.screens.welcome.width});const[l,u]=E.useState(((m=r.prefillUserData)==null?void 0:m.name)||""),[c,f]=E.useState(((y=r.prefillUserData)==null?void 0:y.email)||""),d=(r.extraDataCollectionFields||[]).filter(R=>R!=="name"&&R!=="email"&&!!R),[h,g]=E.useState({}),[b,T]=KQ(async R=>{R.preventDefault();const q=_Z.safeParse({name:l,email:c});q.success&&await t({email:q.data.email,non_verified_name:q.data.name},Object.values(h).filter(Boolean).length?h:void 0)},[l,c,h]);return x.jsx("div",{style:{width:"100vw",maxWidth:"100vw",minHeight:i.screens.welcome.minHeight,height:"100vh",maxHeight:"100vh",overflowY:"auto"},children:x.jsxs("div",{ref:o,className:de("flex flex-col",n&&"h-full","bg-[radial-gradient(ellipse_at_top_left,hsl(var(--opencx-primary)),transparent),radial-gradient(ellipse_at_top_right,hsl(var(--opencx-primary)),transparent)]"),children:[x.jsxs("div",{className:de("flex-1 flex flex-col px-4 py-12 text-start space-y-4 relative z-10","text-primary-foreground"),children:[n&&x.jsx(it,{className:"absolute top-6 end-6",children:x.jsx(qt,{size:"selfless",onClick:()=>e(!1),children:x.jsx(oh,{className:"size-4"})})}),x.jsx("div",{className:"flex items-center justify-between w-full mb-2",children:(v=r.assets)!=null&&v.organizationLogo?x.jsx("img",{src:(w=r.assets)==null?void 0:w.organizationLogo,alt:"Company Logo",className:"h-8 w-auto object-contain"}):x.jsx("h2",{className:"font-bold text-sm",children:(_=s==null?void 0:s.data)==null?void 0:_.organizationName})}),x.jsxs("div",{className:"space-y-2",children:[x.jsx("h1",{className:"text-[1.75rem] font-semibold tracking-tight leading-none",children:((N=(A=r.textContent)==null?void 0:A.welcomeScreen)==null?void 0:N.title)||a("welcome-title")}),x.jsx("p",{className:"text-sm",children:((F=(L=r.textContent)==null?void 0:L.welcomeScreen)==null?void 0:F.description)||a("welcome-description")})]})]}),x.jsxs("div",{className:de("z-10 m-2 px-2 pt-2 bp-0 space-y-2","bg-[white]","border shadow","rounded-3xl"),children:[x.jsxs("form",{onSubmit:T,className:"space-y-2",children:[x.jsx(Wh,{value:l,onChange:R=>u(R.target.value),required:!0,placeholder:a("your-name"),name:"name"}),x.jsx(Wh,{required:!0,value:c,onChange:R=>f(R.target.value),type:"email",placeholder:a("your-email"),name:"email"}),d.map(R=>x.jsx(Wh,{value:h[R],onChange:q=>g(j=>({...j,[R]:q.target.value})),placeholder:`${R} (${a("optional")})`},R)),x.jsxs(qt,{disabled:b.loading,className:"w-full",size:"lg",children:[b.loading?a("starting-chat"):a("start-chat"),x.jsx(_F,{className:"size-4 rtl:-scale-100"})]})]}),x.jsx(RR,{})]})]})})}function e4(){Ld();const{routerState:{screen:e}}=Oi();return x.jsxs(x.Fragment,{children:[x.jsx(lh.Container,{}),x.jsx("div",{className:"relative bg-background size-full",children:x.jsx(Pn,{mode:"wait",children:(()=>{switch(e){case"welcome":return x.jsx(it,{fadeIn:"right",className:"size-full",snapExit:!0,children:x.jsx(SZ,{})},e);case"sessions":return x.jsx(it,{fadeIn:"right",className:"size-full",snapExit:!0,children:x.jsx(qQ,{})},e);case"chat":return x.jsx(it,{fadeIn:"right",className:"size-full",snapExit:!0,children:x.jsx(jQ,{})},e);default:return Dr(e,e4.name),null}})()})})]})}const AZ=`<!DOCTYPE html>
|
|
332
332
|
<html>
|
|
333
333
|
<head>
|
|
334
334
|
<style>
|
|
@@ -345,7 +345,7 @@ html, body {
|
|
|
345
345
|
</head>
|
|
346
346
|
<body>
|
|
347
347
|
</body>
|
|
348
|
-
</html>`;function t4(){const{isOpen:e}=Po(),{version:t,contentIframeRef:n}=_n(),{cssOverrides:r,inline:i}=Lt(),{theme:a,cssVars:s,computed:o}=Ss(),{dir:l}=hl();return x.jsx(wc.div,{animate:e?"visible":"hidden",initial:"hidden",variants:{hidden:{opacity:0,y:8,transitionEnd:{display:"none"},transition:{duration:.15}},visible:{opacity:1,y:0,display:"block",height:i?"100%":void 0}},children:x.jsxs(S1,{ref:n,initialContent:AZ,allowFullScreen:!0,title:"OpenCX Live Chat",style:{"--opencx-widget-width":o.minWidth,"--opencx-widget-height":o.minHeight,minWidth:o.minWidth,width:"var(--opencx-widget-width)",maxWidth:o.maxWidth,minHeight:o.minHeight,height:"var(--opencx-widget-height)",maxHeight:o.maxHeight,overflow:"hidden",outline:a.widgetContentContainer.outline,outlineColor:a.widgetContentContainer.outlineColor,borderRadius:a.widgetContentContainer.borderRadius,boxShadow:a.widgetContentContainer.boxShadow,transitionProperty:a.widgetContentContainer.transitionProperty,transitionTimingFunction:a.widgetContentContainer.transitionTimingFunction,transitionDuration:a.widgetContentContainer.transitionDuration,boxSizing:"border-box",borderWidth:"0px"},children:[r&&x.jsx("style",{children:r}),x.jsx(YK,{delayDuration:200,disableHoverableContent:!0,children:x.jsx("div",{style:{...s},"data-version":t,className:de("antialiased font-sans size-full overflow-hidden
|
|
348
|
+
</html>`;function t4(){const{isOpen:e}=Po(),{version:t,contentIframeRef:n}=_n(),{cssOverrides:r,inline:i}=Lt(),{theme:a,cssVars:s,computed:o}=Ss(),{dir:l}=hl();return x.jsx(wc.div,{animate:e?"visible":"hidden",initial:"hidden",variants:{hidden:{opacity:0,y:8,transitionEnd:{display:"none"},transition:{duration:.15}},visible:{opacity:1,y:0,display:"block",height:i?"100%":void 0}},children:x.jsxs(S1,{ref:n,initialContent:AZ,allowFullScreen:!0,title:"OpenCX Live Chat",style:{"--opencx-widget-width":o.minWidth,"--opencx-widget-height":o.minHeight,minWidth:o.minWidth,width:"var(--opencx-widget-width)",maxWidth:o.maxWidth,minHeight:o.minHeight,height:"var(--opencx-widget-height)",maxHeight:o.maxHeight,overflow:"hidden",outline:a.widgetContentContainer.outline,outlineColor:a.widgetContentContainer.outlineColor,borderRadius:a.widgetContentContainer.borderRadius,boxShadow:a.widgetContentContainer.boxShadow,transitionProperty:a.widgetContentContainer.transitionProperty,transitionTimingFunction:a.widgetContentContainer.transitionTimingFunction,transitionDuration:a.widgetContentContainer.transitionDuration,boxSizing:"border-box",borderWidth:"0px"},children:[r&&x.jsx("style",{children:r}),x.jsx(YK,{delayDuration:200,disableHoverableContent:!0,children:x.jsx("div",{style:{...s},"data-version":t,className:de("antialiased font-sans size-full overflow-hidden relative text-secondary-foreground"),dir:l,children:x.jsx(e4,{})})})]})})}function CZ(){const{theme:e}=Ss();return x.jsx(lI,{onInteractOutside:t=>t.preventDefault(),forceMount:!0,style:{zIndex:e.widgetContentContainer.zIndex,fontSize:"16px"},side:"top",align:"end",sideOffset:e.widgetContentContainer.offset.side,alignOffset:e.widgetContentContainer.offset.align,avoidCollisions:!1,children:x.jsx(t4,{})})}function kZ({className:e,style:t}){return x.jsxs("svg",{width:"32",height:"30",viewBox:"0 0 32 30",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:de("text-primary-foreground",e),style:t,children:[x.jsx("path",{d:"M0 6.94263C0 3.62892 2.68629 0.942627 6 0.942627H26C29.3137 0.942627 32 3.62892 32 6.94263V17.9426C32 21.2563 29.3137 23.9426 26 23.9426H6C2.68629 23.9426 0 21.2563 0 17.9426V6.94263Z",fill:"currentColor"}),x.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.9945 23.8935L26.237 23.8934C26.1982 24.3557 26.1712 25.2778 26.1704 26.2318C26.1688 28.2839 26.1376 28.7041 25.974 28.868C25.583 29.2598 25.2686 29.0967 24.0616 27.8754C23.4162 27.2222 22.1141 25.9522 21.1682 25.0531L19.9945 23.8935Z",fill:"currentColor"})]})}const OZ=`<!DOCTYPE html>
|
|
349
349
|
<html>
|
|
350
350
|
<head>
|
|
351
351
|
<style>
|