@boomi/embedkit 1.3.13 → 1.3.14

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 CHANGED
@@ -77,8 +77,8 @@ React keys must be passed directly to JSX without using spread:
77
77
  `);for(z=x=0;x<be.length&&!be[x].includes("DetermineComponentFrameRoot");)x++;for(;z<Me.length&&!Me[z].includes("DetermineComponentFrameRoot");)z++;if(x===be.length||z===Me.length)for(x=be.length-1,z=Me.length-1;1<=x&&0<=z&&be[x]!==Me[z];)z--;for(;1<=x&&0<=z;x--,z--)if(be[x]!==Me[z]){if(x!==1||z!==1)do if(x--,z--,0>z||be[x]!==Me[z]){var Fe=`
78
78
  `+be[x].replace(" at new "," at ");return r.displayName&&Fe.includes("<anonymous>")&&(Fe=Fe.replace("<anonymous>",r.displayName)),Fe}while(1<=x&&0<=z);break}}}finally{qe=!1,Error.prepareStackTrace=v}return(v=r?r.displayName||r.name:"")?De(v):""}function mt(r,l){switch(r.tag){case 26:case 27:case 5:return De(r.type);case 16:return De("Lazy");case 13:return r.child!==l&&l!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return et(r.type,!1);case 11:return et(r.type.render,!1);case 1:return et(r.type,!0);case 31:return De("Activity");default:return""}}function xt(r){try{var l="",v=null;do l+=mt(r,v),v=r,r=r.return;while(r);return l}catch(x){return`
79
79
  Error generating stack: `+x.message+`
80
- `+x.stack}}var $t=Object.prototype.hasOwnProperty,ze=t.unstable_scheduleCallback,tt=t.unstable_cancelCallback,ct=t.unstable_shouldYield,gt=t.unstable_requestPaint,at=t.unstable_now,Re=t.unstable_getCurrentPriorityLevel,je=t.unstable_ImmediatePriority,it=t.unstable_UserBlockingPriority,rt=t.unstable_NormalPriority,vt=t.unstable_LowPriority,St=t.unstable_IdlePriority,Nt=t.log,an=t.unstable_setDisableYieldValue,Lt=null,_t=null;function Et(r){if(typeof Nt=="function"&&an(r),_t&&typeof _t.setStrictMode=="function")try{_t.setStrictMode(Lt,r)}catch{}}var xe=Math.clz32?Math.clz32:Dt,Ge=Math.log,bt=Math.LN2;function Dt(r){return r>>>=0,r===0?32:31-(Ge(r)/bt|0)|0}var ut=256,yt=262144,Ht=4194304;function jt(r){var l=r&42;if(l!==0)return l;switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function Ce(r,l,v){var x=r.pendingLanes;if(x===0)return 0;var z=0,V=r.suspendedLanes,ee=r.pingedLanes;r=r.warmLanes;var le=x&134217727;return le!==0?(x=le&~V,x!==0?z=jt(x):(ee&=le,ee!==0?z=jt(ee):v||(v=le&~r,v!==0&&(z=jt(v))))):(le=x&~V,le!==0?z=jt(le):ee!==0?z=jt(ee):v||(v=x&~r,v!==0&&(z=jt(v)))),z===0?0:l!==0&&l!==z&&(l&V)===0&&(V=z&-z,v=l&-l,V>=v||V===32&&(v&4194048)!==0)?l:z}function Ze(r,l){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&l)===0}function ft(r,l){switch(r){case 1:case 2:case 4:case 8:case 64:return l+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Tt(){var r=Ht;return Ht<<=1,(Ht&62914560)===0&&(Ht=4194304),r}function Mt(r){for(var l=[],v=0;31>v;v++)l.push(r);return l}function en(r,l){r.pendingLanes|=l,l!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function Gt(r,l,v,x,z,V){var ee=r.pendingLanes;r.pendingLanes=v,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=v,r.entangledLanes&=v,r.errorRecoveryDisabledLanes&=v,r.shellSuspendCounter=0;var le=r.entanglements,be=r.expirationTimes,Me=r.hiddenUpdates;for(v=ee&~v;0<v;){var Fe=31-xe(v),We=1<<Fe;le[Fe]=0,be[Fe]=-1;var ke=Me[Fe];if(ke!==null)for(Me[Fe]=null,Fe=0;Fe<ke.length;Fe++){var He=ke[Fe];He!==null&&(He.lane&=-536870913)}v&=~We}x!==0&&sn(r,x,0),V!==0&&z===0&&r.tag!==0&&(r.suspendedLanes|=V&~(ee&~l))}function sn(r,l,v){r.pendingLanes|=l,r.suspendedLanes&=~l;var x=31-xe(l);r.entangledLanes|=l,r.entanglements[x]=r.entanglements[x]|1073741824|v&261930}function Rn(r,l){var v=r.entangledLanes|=l;for(r=r.entanglements;v;){var x=31-xe(v),z=1<<x;z&l|r[x]&l&&(r[x]|=l),v&=~z}}function Yt(r,l){var v=l&-l;return v=(v&42)!==0?1:Je(v),(v&(r.suspendedLanes|l))!==0?0:v}function Je(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function Fn(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function Rt(){var r=W.p;return r!==0?r:(r=window.event,r===void 0?32:_m(r.type))}function ni(r,l){var v=W.p;try{return W.p=r,l()}finally{W.p=v}}var vo=Math.random().toString(36).slice(2),Xt="__reactFiber$"+vo,Pn="__reactProps$"+vo,zo="__reactContainer$"+vo,mo="__reactEvents$"+vo,ki="__reactListeners$"+vo,wr="__reactHandles$"+vo,nt="__reactResources$"+vo,Ee="__reactMarker$"+vo;function Ke(r){delete r[Xt],delete r[Pn],delete r[mo],delete r[ki],delete r[wr]}function st(r){var l=r[Xt];if(l)return l;for(var v=r.parentNode;v;){if(l=v[zo]||v[Xt]){if(v=l.alternate,l.child!==null||v!==null&&v.child!==null)for(r=ms(r);r!==null;){if(v=r[Xt])return v;r=ms(r)}return l}r=v,v=r.parentNode}return null}function on(r){if(r=r[Xt]||r[zo]){var l=r.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return r}return null}function Zn(r){var l=r.tag;if(l===5||l===26||l===27||l===6)return r.stateNode;throw Error(a(33))}function Ln(r){var l=r[nt];return l||(l=r[nt]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function ot(r){r[Ee]=!0}var vn=new Set,yn={};function gi(r,l){On(r,l),On(r+"Capture",l)}function On(r,l){for(yn[r]=l,r=0;r<l.length;r++)vn.add(l[r])}var oi=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),va={},rc={};function ac(r){return $t.call(rc,r)?!0:$t.call(va,r)?!1:oi.test(r)?rc[r]=!0:(va[r]=!0,!1)}function sc(r,l,v){if(ac(l))if(v===null)r.removeAttribute(l);else{switch(typeof v){case"undefined":case"function":case"symbol":r.removeAttribute(l);return;case"boolean":var x=l.toLowerCase().slice(0,5);if(x!=="data-"&&x!=="aria-"){r.removeAttribute(l);return}}r.setAttribute(l,""+v)}}function Ed(r,l,v){if(v===null)r.removeAttribute(l);else{switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(l);return}r.setAttribute(l,""+v)}}function Ga(r,l,v,x){if(x===null)r.removeAttribute(v);else{switch(typeof x){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(v);return}r.setAttributeNS(l,v,""+x)}}function bi(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function wd(r){var l=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function xl(r,l,v){var x=Object.getOwnPropertyDescriptor(r.constructor.prototype,l);if(!r.hasOwnProperty(l)&&typeof x<"u"&&typeof x.get=="function"&&typeof x.set=="function"){var z=x.get,V=x.set;return Object.defineProperty(r,l,{configurable:!0,get:function(){return z.call(this)},set:function(ee){v=""+ee,V.call(this,ee)}}),Object.defineProperty(r,l,{enumerable:x.enumerable}),{getValue:function(){return v},setValue:function(ee){v=""+ee},stopTracking:function(){r._valueTracker=null,delete r[l]}}}}function su(r){if(!r._valueTracker){var l=wd(r)?"checked":"value";r._valueTracker=xl(r,l,""+r[l])}}function Sd(r){if(!r)return!1;var l=r._valueTracker;if(!l)return!0;var v=l.getValue(),x="";return r&&(x=wd(r)?r.checked?"true":"false":r.value),r=x,r!==v?(l.setValue(r),!0):!1}function lu(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var sv=/[\n"\\]/g;function Ji(r){return r.replace(sv,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function cu(r,l,v,x,z,V,ee,le){r.name="",ee!=null&&typeof ee!="function"&&typeof ee!="symbol"&&typeof ee!="boolean"?r.type=ee:r.removeAttribute("type"),l!=null?ee==="number"?(l===0&&r.value===""||r.value!=l)&&(r.value=""+bi(l)):r.value!==""+bi(l)&&(r.value=""+bi(l)):ee!=="submit"&&ee!=="reset"||r.removeAttribute("value"),l!=null?_l(r,ee,bi(l)):v!=null?_l(r,ee,bi(v)):x!=null&&r.removeAttribute("value"),z==null&&V!=null&&(r.defaultChecked=!!V),z!=null&&(r.checked=z&&typeof z!="function"&&typeof z!="symbol"),le!=null&&typeof le!="function"&&typeof le!="symbol"&&typeof le!="boolean"?r.name=""+bi(le):r.removeAttribute("name")}function lc(r,l,v,x,z,V,ee,le){if(V!=null&&typeof V!="function"&&typeof V!="symbol"&&typeof V!="boolean"&&(r.type=V),l!=null||v!=null){if(!(V!=="submit"&&V!=="reset"||l!=null)){su(r);return}v=v!=null?""+bi(v):"",l=l!=null?""+bi(l):v,le||l===r.value||(r.value=l),r.defaultValue=l}x=x??z,x=typeof x!="function"&&typeof x!="symbol"&&!!x,r.checked=le?r.checked:!!x,r.defaultChecked=!!x,ee!=null&&typeof ee!="function"&&typeof ee!="symbol"&&typeof ee!="boolean"&&(r.name=ee),su(r)}function _l(r,l,v){l==="number"&&lu(r.ownerDocument)===r||r.defaultValue===""+v||(r.defaultValue=""+v)}function cc(r,l,v,x){if(r=r.options,l){l={};for(var z=0;z<v.length;z++)l["$"+v[z]]=!0;for(v=0;v<r.length;v++)z=l.hasOwnProperty("$"+r[v].value),r[v].selected!==z&&(r[v].selected=z),z&&x&&(r[v].defaultSelected=!0)}else{for(v=""+bi(v),l=null,z=0;z<r.length;z++){if(r[z].value===v){r[z].selected=!0,x&&(r[z].defaultSelected=!0);return}l!==null||r[z].disabled||(l=r[z])}l!==null&&(l.selected=!0)}}function Td(r,l,v){if(l!=null&&(l=""+bi(l),l!==r.value&&(r.value=l),v==null)){r.defaultValue!==l&&(r.defaultValue=l);return}r.defaultValue=v!=null?""+bi(v):""}function uc(r,l,v,x){if(l==null){if(x!=null){if(v!=null)throw Error(a(92));if(M(x)){if(1<x.length)throw Error(a(93));x=x[0]}v=x}v==null&&(v=""),l=v}v=bi(l),r.defaultValue=v,x=r.textContent,x===v&&x!==""&&x!==null&&(r.value=x),su(r)}function Ii(r,l){if(l){var v=r.firstChild;if(v&&v===r.lastChild&&v.nodeType===3){v.nodeValue=l;return}}r.textContent=l}var wp=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 Sp(r,l,v){var x=l.indexOf("--")===0;v==null||typeof v=="boolean"||v===""?x?r.setProperty(l,""):l==="float"?r.cssFloat="":r[l]="":x?r.setProperty(l,v):typeof v!="number"||v===0||wp.has(l)?l==="float"?r.cssFloat=v:r[l]=(""+v).trim():r[l]=v+"px"}function Qa(r,l,v){if(l!=null&&typeof l!="object")throw Error(a(62));if(r=r.style,v!=null){for(var x in v)!v.hasOwnProperty(x)||l!=null&&l.hasOwnProperty(x)||(x.indexOf("--")===0?r.setProperty(x,""):x==="float"?r.cssFloat="":r[x]="");for(var z in l)x=l[z],l.hasOwnProperty(z)&&v[z]!==x&&Sp(r,z,x)}else for(var V in l)l.hasOwnProperty(V)&&Sp(r,V,l[V])}function vh(r){if(r.indexOf("-")===-1)return!1;switch(r){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 lv=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"]]),uu=/^[\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 Sr(r){return uu.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function Br(){}var ya=null;function du(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Ea=null,wa=null;function fu(r){var l=on(r);if(l&&(r=l.stateNode)){var v=r[Pn]||null;e:switch(r=l.stateNode,l.type){case"input":if(cu(r,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name),l=v.name,v.type==="radio"&&l!=null){for(v=r;v.parentNode;)v=v.parentNode;for(v=v.querySelectorAll('input[name="'+Ji(""+l)+'"][type="radio"]'),l=0;l<v.length;l++){var x=v[l];if(x!==r&&x.form===r.form){var z=x[Pn]||null;if(!z)throw Error(a(90));cu(x,z.value,z.defaultValue,z.defaultValue,z.checked,z.defaultChecked,z.type,z.name)}}for(l=0;l<v.length;l++)x=v[l],x.form===r.form&&Sd(x)}break e;case"textarea":Td(r,v.value,v.defaultValue);break e;case"select":l=v.value,l!=null&&cc(r,!!v.multiple,l,!1)}}}var Ns=!1;function yh(r,l,v){if(Ns)return r(l,v);Ns=!0;try{var x=r(l);return x}finally{if(Ns=!1,(Ea!==null||wa!==null)&&(of(),Ea&&(l=Ea,r=wa,wa=Ea=null,fu(l),r)))for(l=0;l<r.length;l++)fu(r[l])}}function Bo(r,l){var v=r.stateNode;if(v===null)return null;var x=v[Pn]||null;if(x===null)return null;v=x[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(x=!x.disabled)||(r=r.type,x=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!x;break e;default:r=!1}if(r)return null;if(v&&typeof v!="function")throw Error(a(231,l,typeof v));return v}var Sa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),dc=!1;if(Sa)try{var Ta={};Object.defineProperty(Ta,"passive",{get:function(){dc=!0}}),window.addEventListener("test",Ta,Ta),window.removeEventListener("test",Ta,Ta)}catch{dc=!1}var Aa=null,Eh=null,Ad=null;function wh(){if(Ad)return Ad;var r,l=Eh,v=l.length,x,z="value"in Aa?Aa.value:Aa.textContent,V=z.length;for(r=0;r<v&&l[r]===z[r];r++);var ee=v-r;for(x=1;x<=ee&&l[v-x]===z[V-x];x++);return Ad=z.slice(r,1<x?1-x:void 0)}function ce(r){var l=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&l===13&&(r=13)):r=l,r===10&&(r=13),32<=r||r===13?r:0}function _e(){return!0}function Xe(){return!1}function lt(r){function l(v,x,z,V,ee){this._reactName=v,this._targetInst=z,this.type=x,this.nativeEvent=V,this.target=ee,this.currentTarget=null;for(var le in r)r.hasOwnProperty(le)&&(v=r[le],this[le]=v?v(V):V[le]);return this.isDefaultPrevented=(V.defaultPrevented!=null?V.defaultPrevented:V.returnValue===!1)?_e:Xe,this.isPropagationStopped=Xe,this}return u(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var v=this.nativeEvent;v&&(v.preventDefault?v.preventDefault():typeof v.returnValue!="unknown"&&(v.returnValue=!1),this.isDefaultPrevented=_e)},stopPropagation:function(){var v=this.nativeEvent;v&&(v.stopPropagation?v.stopPropagation():typeof v.cancelBubble!="unknown"&&(v.cancelBubble=!0),this.isPropagationStopped=_e)},persist:function(){},isPersistent:_e}),l}var Cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qt=lt(Cn),qn=u({},Cn,{view:0,detail:0}),Ko=lt(qn),Fo,ao,ii,Bi=u({},qn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ca,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==ii&&(ii&&r.type==="mousemove"?(Fo=r.screenX-ii.screenX,ao=r.screenY-ii.screenY):ao=Fo=0,ii=r),Fo)},movementY:function(r){return"movementY"in r?r.movementY:ao}}),No=lt(Bi),er=u({},Bi,{dataTransfer:0}),tr=lt(er),Wa=u({},qn,{relatedTarget:0}),Tr=lt(Wa),Ya=u({},Cn,{animationName:0,elapsedTime:0,pseudoElement:0}),Sh=lt(Ya),xa=u({},Cn,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),_a=lt(xa),Xa=u({},Cn,{data:0}),KE=lt(Xa),cv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Rs={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"},ZE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qa(r){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(r):(r=ZE[r])?!!l[r]:!1}function Ca(){return qa}var Tp=u({},qn,{key:function(r){if(r.key){var l=cv[r.key]||r.key;if(l!=="Unidentified")return l}return r.type==="keypress"?(r=ce(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?Rs[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ca,charCode:function(r){return r.type==="keypress"?ce(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?ce(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),Ap=lt(Tp),uv=u({},Bi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ka=lt(uv),jT=u({},qn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ca}),JE=lt(jT),ew=u({},Cn,{propertyName:0,elapsedTime:0,pseudoElement:0}),zT=lt(ew),dv=u({},Bi,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),BT=lt(dv),tw=u({},Cn,{newState:0,oldState:0}),fv=lt(tw),xp=[9,13,27,32],xd=Sa&&"CompositionEvent"in window,hu=null;Sa&&"documentMode"in document&&(hu=document.documentMode);var Fi=Sa&&"TextEvent"in window&&!hu,hv=Sa&&(!xd||hu&&8<hu&&11>=hu),Th=" ",fc=!1;function _p(r,l){switch(r){case"keyup":return xp.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mv(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var mu=!1;function nw(r,l){switch(r){case"compositionend":return mv(l);case"keypress":return l.which!==32?null:(fc=!0,Th);case"textInput":return r=l.data,r===Th&&fc?null:r;default:return null}}function FT(r,l){if(mu)return r==="compositionend"||!xd&&_p(r,l)?(r=wh(),Ad=Eh=Aa=null,mu=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return hv&&l.locale!=="ko"?null:l.data;default:return null}}var pv={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 Ls(r){var l=r&&r.nodeName&&r.nodeName.toLowerCase();return l==="input"?!!pv[r.type]:l==="textarea"}function gv(r,l,v,x){Ea?wa?wa.push(x):wa=[x]:Ea=x,l=ym(l,"onChange"),0<l.length&&(v=new Qt("onChange","change",null,v,x),r.push({event:v,listeners:l}))}var pu=null,hc=null;function gu(r){Kw(r,0)}function _d(r){var l=Zn(r);if(Sd(l))return r}function bv(r,l){if(r==="change")return l}var Cp=!1;if(Sa){var nr;if(Sa){var Za="oninput"in document;if(!Za){var vv=document.createElement("div");vv.setAttribute("oninput","return;"),Za=typeof vv.oninput=="function"}nr=Za}else nr=!1;Cp=nr&&(!document.documentMode||9<document.documentMode)}function Np(){pu&&(pu.detachEvent("onpropertychange",Rp),hc=pu=null)}function Rp(r){if(r.propertyName==="value"&&_d(hc)){var l=[];gv(l,hc,r,du(r)),yh(gu,l)}}function ow(r,l,v){r==="focusin"?(Np(),pu=l,hc=v,pu.attachEvent("onpropertychange",Rp)):r==="focusout"&&Np()}function iw(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return _d(hc)}function mc(r,l){if(r==="click")return _d(l)}function bu(r,l){if(r==="input"||r==="change")return _d(l)}function rw(r,l){return r===l&&(r!==0||1/r===1/l)||r!==r&&l!==l}var Pi=typeof Object.is=="function"?Object.is:rw;function Na(r,l){if(Pi(r,l))return!0;if(typeof r!="object"||r===null||typeof l!="object"||l===null)return!1;var v=Object.keys(r),x=Object.keys(l);if(v.length!==x.length)return!1;for(x=0;x<v.length;x++){var z=v[x];if(!$t.call(l,z)||!Pi(r[z],l[z]))return!1}return!0}function yv(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Ev(r,l){var v=yv(r);r=0;for(var x;v;){if(v.nodeType===3){if(x=r+v.textContent.length,r<=l&&x>=l)return{node:v,offset:l-r};r=x}e:{for(;v;){if(v.nextSibling){v=v.nextSibling;break e}v=v.parentNode}v=void 0}v=yv(v)}}function vu(r,l){return r&&l?r===l?!0:r&&r.nodeType===3?!1:l&&l.nodeType===3?vu(r,l.parentNode):"contains"in r?r.contains(l):r.compareDocumentPosition?!!(r.compareDocumentPosition(l)&16):!1:!1}function pc(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var l=lu(r.document);l instanceof r.HTMLIFrameElement;){try{var v=typeof l.contentWindow.location.href=="string"}catch{v=!1}if(v)r=l.contentWindow;else break;l=lu(r.document)}return l}function Ah(r){var l=r&&r.nodeName&&r.nodeName.toLowerCase();return l&&(l==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||l==="textarea"||r.contentEditable==="true")}var xh=Sa&&"documentMode"in document&&11>=document.documentMode,gc=null,Cd=null,Ra=null,Ja=!1;function Lp(r,l,v){var x=v.window===v?v.document:v.nodeType===9?v:v.ownerDocument;Ja||gc==null||gc!==lu(x)||(x=gc,"selectionStart"in x&&Ah(x)?x={start:x.selectionStart,end:x.selectionEnd}:(x=(x.ownerDocument&&x.ownerDocument.defaultView||window).getSelection(),x={anchorNode:x.anchorNode,anchorOffset:x.anchorOffset,focusNode:x.focusNode,focusOffset:x.focusOffset}),Ra&&Na(Ra,x)||(Ra=x,x=ym(Cd,"onSelect"),0<x.length&&(l=new Qt("onSelect","select",null,l,v),r.push({event:l,listeners:x}),l.target=gc)))}function Cl(r,l){var v={};return v[r.toLowerCase()]=l.toLowerCase(),v["Webkit"+r]="webkit"+l,v["Moz"+r]="moz"+l,v}var es={animationend:Cl("Animation","AnimationEnd"),animationiteration:Cl("Animation","AnimationIteration"),animationstart:Cl("Animation","AnimationStart"),transitionrun:Cl("Transition","TransitionRun"),transitionstart:Cl("Transition","TransitionStart"),transitioncancel:Cl("Transition","TransitionCancel"),transitionend:Cl("Transition","TransitionEnd")},Nd={},bc={};Sa&&(bc=document.createElement("div").style,"AnimationEvent"in window||(delete es.animationend.animation,delete es.animationiteration.animation,delete es.animationstart.animation),"TransitionEvent"in window||delete es.transitionend.transition);function Hn(r){if(Nd[r])return Nd[r];if(!es[r])return r;var l=es[r],v;for(v in l)if(l.hasOwnProperty(v)&&v in bc)return Nd[r]=l[v];return r}var _h=Hn("animationend"),wv=Hn("animationiteration"),Op=Hn("animationstart"),yu=Hn("transitionrun"),Ch=Hn("transitionstart"),Os=Hn("transitioncancel"),aw=Hn("transitionend"),Ds=new Map,Rd="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(" ");Rd.push("scrollEnd");function or(r,l){Ds.set(r,l),gi(l,[r])}var Eu=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},yo=[],vi=0,La=0;function Fr(){for(var r=vi,l=La=vi=0;l<r;){var v=yo[l];yo[l++]=null;var x=yo[l];yo[l++]=null;var z=yo[l];yo[l++]=null;var V=yo[l];if(yo[l++]=null,x!==null&&z!==null){var ee=x.pending;ee===null?z.next=z:(z.next=ee.next,ee.next=z),x.pending=z}V!==0&&Dp(v,z,V)}}function Pr(r,l,v,x){yo[vi++]=r,yo[vi++]=l,yo[vi++]=v,yo[vi++]=x,La|=x,r.lanes|=x,r=r.alternate,r!==null&&(r.lanes|=x)}function Oa(r,l,v,x){return Pr(r,l,v,x),Nh(r)}function Nl(r,l){return Pr(r,null,null,l),Nh(r)}function Dp(r,l,v){r.lanes|=v;var x=r.alternate;x!==null&&(x.lanes|=v);for(var z=!1,V=r.return;V!==null;)V.childLanes|=v,x=V.alternate,x!==null&&(x.childLanes|=v),V.tag===22&&(r=V.stateNode,r===null||r._visibility&1||(z=!0)),r=V,V=V.return;return r.tag===3?(V=r.stateNode,z&&l!==null&&(z=31-xe(v),r=V.hiddenUpdates,x=r[z],x===null?r[z]=[l]:x.push(l),l.lane=v|536870912),V):null}function Nh(r){if(50<nf)throw nf=0,um=null,Error(a(185));for(var l=r.return;l!==null;)r=l,l=r.return;return r.tag===3?r.stateNode:null}var ir={};function sw(r,l,v,x){this.tag=r,this.key=v,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=x,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mo(r,l,v,x){return new sw(r,l,v,x)}function wu(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Rl(r,l){var v=r.alternate;return v===null?(v=Mo(r.tag,l,r.key,r.mode),v.elementType=r.elementType,v.type=r.type,v.stateNode=r.stateNode,v.alternate=r,r.alternate=v):(v.pendingProps=l,v.type=r.type,v.flags=0,v.subtreeFlags=0,v.deletions=null),v.flags=r.flags&65011712,v.childLanes=r.childLanes,v.lanes=r.lanes,v.child=r.child,v.memoizedProps=r.memoizedProps,v.memoizedState=r.memoizedState,v.updateQueue=r.updateQueue,l=r.dependencies,v.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},v.sibling=r.sibling,v.index=r.index,v.ref=r.ref,v.refCleanup=r.refCleanup,v}function Sv(r,l){r.flags&=65011714;var v=r.alternate;return v===null?(r.childLanes=0,r.lanes=l,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=v.childLanes,r.lanes=v.lanes,r.child=v.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=v.memoizedProps,r.memoizedState=v.memoizedState,r.updateQueue=v.updateQueue,r.type=v.type,l=v.dependencies,r.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),r}function Mp(r,l,v,x,z,V){var ee=0;if(x=r,typeof r=="function")wu(r)&&(ee=1);else if(typeof r=="string")ee=G0(r,v,ae.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case U:return r=Mo(31,v,l,z),r.elementType=U,r.lanes=V,r;case S:return Ll(v.children,z,V,l);case T:ee=8,z|=24;break;case A:return r=Mo(12,v,l,z|2),r.elementType=A,r.lanes=V,r;case R:return r=Mo(13,v,l,z),r.elementType=R,r.lanes=V,r;case C:return r=Mo(19,v,l,z),r.elementType=C,r.lanes=V,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case O:ee=10;break e;case N:ee=9;break e;case D:ee=11;break e;case $:ee=14;break e;case F:ee=16,x=null;break e}ee=29,v=Error(a(130,r===null?"null":typeof r,"")),x=null}return l=Mo(ee,v,l,z),l.elementType=r,l.type=x,l.lanes=V,l}function Ll(r,l,v,x){return r=Mo(7,r,x,l),r.lanes=v,r}function Ld(r,l,v){return r=Mo(6,r,null,l),r.lanes=v,r}function Tv(r){var l=Mo(18,null,null,0);return l.stateNode=r,l}function kp(r,l,v){return l=Mo(4,r.children!==null?r.children:[],r.key,l),l.lanes=v,l.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},l}var Av=new WeakMap;function Vr(r,l){if(typeof r=="object"&&r!==null){var v=Av.get(r);return v!==void 0?v:(l={value:r,source:l,stack:xt(l)},Av.set(r,l),l)}return{value:r,source:l,stack:xt(l)}}var Gr=[],Su=0,Rh=null,Po=0,Ar=[],rr=0,ts=null,xr=1,ns="";function Da(r,l){Gr[Su++]=Po,Gr[Su++]=Rh,Rh=r,Po=l}function xv(r,l,v){Ar[rr++]=xr,Ar[rr++]=ns,Ar[rr++]=ts,ts=r;var x=xr;r=ns;var z=32-xe(x)-1;x&=~(1<<z),v+=1;var V=32-xe(l)+z;if(30<V){var ee=z-z%5;V=(x&(1<<ee)-1).toString(32),x>>=ee,z-=ee,xr=1<<32-xe(l)+z|v<<z|x,ns=V+r}else xr=1<<V|v<<z|x,ns=r}function Od(r){r.return!==null&&(Da(r,1),xv(r,1,0))}function Ip(r){for(;r===Rh;)Rh=Gr[--Su],Gr[Su]=null,Po=Gr[--Su],Gr[Su]=null;for(;r===ts;)ts=Ar[--rr],Ar[rr]=null,ns=Ar[--rr],Ar[rr]=null,xr=Ar[--rr],Ar[rr]=null}function Lh(r,l){Ar[rr++]=xr,Ar[rr++]=ns,Ar[rr++]=ts,xr=l.id,ns=l.overflow,ts=r}var yi=null,lo=null,wn=!1,Ms=null,ri=!1,ks=Error(a(519));function Ma(r){var l=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Md(Vr(l,r)),ks}function Oh(r){var l=r.stateNode,v=r.type,x=r.memoizedProps;switch(l[Xt]=r,l[Pn]=x,v){case"dialog":En("cancel",l),En("close",l);break;case"iframe":case"object":case"embed":En("load",l);break;case"video":case"audio":for(v=0;v<cf.length;v++)En(cf[v],l);break;case"source":En("error",l);break;case"img":case"image":case"link":En("error",l),En("load",l);break;case"details":En("toggle",l);break;case"input":En("invalid",l),lc(l,x.value,x.defaultValue,x.checked,x.defaultChecked,x.type,x.name,!0);break;case"select":En("invalid",l);break;case"textarea":En("invalid",l),uc(l,x.value,x.defaultValue,x.children)}v=x.children,typeof v!="string"&&typeof v!="number"&&typeof v!="bigint"||l.textContent===""+v||x.suppressHydrationWarning===!0||k0(l.textContent,v)?(x.popover!=null&&(En("beforetoggle",l),En("toggle",l)),x.onScroll!=null&&En("scroll",l),x.onScrollEnd!=null&&En("scrollend",l),x.onClick!=null&&(l.onclick=Br),l=!0):l=!1,l||Ma(r,!0)}function Dd(r){for(yi=r.return;yi;)switch(yi.tag){case 5:case 31:case 13:ri=!1;return;case 27:case 3:ri=!0;return;default:yi=yi.return}}function Is(r){if(r!==yi)return!1;if(!wn)return Dd(r),wn=!0,!1;var l=r.tag,v;if((v=l!==3&&l!==27)&&((v=l===5)&&(v=r.type,v=!(v!=="form"&&v!=="button")||df(r.type,r.memoizedProps)),v=!v),v&&lo&&Ma(r),Dd(r),l===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(317));lo=Hg(r)}else if(l===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(317));lo=Hg(r)}else l===27?(l=lo,hs(r.type)?(r=Sm,Sm=null,lo=r):lo=l):lo=yi?pr(r.stateNode.nextSibling):null;return!0}function vc(){lo=yi=null,wn=!1}function _v(){var r=Ms;return r!==null&&(Oo===null?Oo=r:Oo.push.apply(Oo,r),Ms=null),r}function Md(r){Ms===null?Ms=[r]:Ms.push(r)}var $p=Z(null),Ol=null,os=null;function ar(r,l,v){te($p,l._currentValue),l._currentValue=v}function is(r){r._currentValue=$p.current,re($p)}function Up(r,l,v){for(;r!==null;){var x=r.alternate;if((r.childLanes&l)!==l?(r.childLanes|=l,x!==null&&(x.childLanes|=l)):x!==null&&(x.childLanes&l)!==l&&(x.childLanes|=l),r===v)break;r=r.return}}function $s(r,l,v,x){var z=r.child;for(z!==null&&(z.return=r);z!==null;){var V=z.dependencies;if(V!==null){var ee=z.child;V=V.firstContext;e:for(;V!==null;){var le=V;V=z;for(var be=0;be<l.length;be++)if(le.context===l[be]){V.lanes|=v,le=V.alternate,le!==null&&(le.lanes|=v),Up(V.return,v,r),x||(ee=null);break e}V=le.next}}else if(z.tag===18){if(ee=z.return,ee===null)throw Error(a(341));ee.lanes|=v,V=ee.alternate,V!==null&&(V.lanes|=v),Up(ee,v,r),ee=null}else ee=z.child;if(ee!==null)ee.return=z;else for(ee=z;ee!==null;){if(ee===r){ee=null;break}if(z=ee.sibling,z!==null){z.return=ee.return,ee=z;break}ee=ee.return}z=ee}}function Ei(r,l,v,x){r=null;for(var z=l,V=!1;z!==null;){if(!V){if((z.flags&524288)!==0)V=!0;else if((z.flags&262144)!==0)break}if(z.tag===10){var ee=z.alternate;if(ee===null)throw Error(a(387));if(ee=ee.memoizedProps,ee!==null){var le=z.type;Pi(z.pendingProps.value,ee.value)||(r!==null?r.push(le):r=[le])}}else if(z===ue.current){if(ee=z.alternate,ee===null)throw Error(a(387));ee.memoizedState.memoizedState!==z.memoizedState.memoizedState&&(r!==null?r.push(xm):r=[xm])}z=z.return}r!==null&&$s(l,r,v,x),l.flags|=262144}function Tu(r){for(r=r.firstContext;r!==null;){if(!Pi(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function qt(r){Ol=r,os=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function Ye(r){return Dh(Ol,r)}function Dl(r,l){return Ol===null&&qt(r),Dh(r,l)}function Dh(r,l){var v=l._currentValue;if(l={context:l,memoizedValue:v,next:null},os===null){if(r===null)throw Error(a(308));os=l,r.dependencies={lanes:0,firstContext:l},r.flags|=524288}else os=os.next=l;return v}var ko=typeof AbortController<"u"?AbortController:function(){var r=[],l=this.signal={aborted:!1,addEventListener:function(v,x){r.push(x)}};this.abort=function(){l.aborted=!0,r.forEach(function(v){return v()})}},Cv=t.unstable_scheduleCallback,Nv=t.unstable_NormalPriority,Vo={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Mh(){return{controller:new ko,data:new Map,refCount:0}}function kh(r){r.refCount--,r.refCount===0&&Cv(Nv,function(){r.controller.abort()})}var Au=null,Ih=0,yc=0,Zo=null;function Vn(r,l){if(Au===null){var v=Au=[];Ih=0,yc=Lg(),Zo={status:"pending",value:void 0,then:function(x){v.push(x)}}}return Ih++,l.then($h,$h),l}function $h(){if(--Ih===0&&Au!==null){Zo!==null&&(Zo.status="fulfilled");var r=Au;Au=null,yc=0,Zo=null;for(var l=0;l<r.length;l++)(0,r[l])()}}function Uh(r,l){var v=[],x={status:"pending",value:null,reason:null,then:function(z){v.push(z)}};return r.then(function(){x.status="fulfilled",x.value=l;for(var z=0;z<v.length;z++)(0,v[z])(l)},function(z){for(x.status="rejected",x.reason=z,z=0;z<v.length;z++)(0,v[z])(void 0)}),x}var Ml=I.S;I.S=function(r,l){w0=at(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&Vn(r,l),Ml!==null&&Ml(r,l)};var Qr=Z(null);function Wr(){var r=Qr.current;return r!==null?r:eo.pooledCache}function kd(r,l){l===null?te(Qr,Qr.current):te(Qr,l.pool)}function xu(){var r=Wr();return r===null?null:{parent:Vo._currentValue,pool:r}}var Ec=Error(a(460)),_u=Error(a(474)),Id=Error(a(542)),Cu={then:function(){}};function Rv(r){return r=r.status,r==="fulfilled"||r==="rejected"}function Lv(r,l,v){switch(v=r[v],v===void 0?r.push(l):v!==l&&(l.then(Br,Br),l=v),l.status){case"fulfilled":return l.value;case"rejected":throw r=l.reason,Hp(r),r;default:if(typeof l.status=="string")l.then(Br,Br);else{if(r=eo,r!==null&&100<r.shellSuspendCounter)throw Error(a(482));r=l,r.status="pending",r.then(function(x){if(l.status==="pending"){var z=l;z.status="fulfilled",z.value=x}},function(x){if(l.status==="pending"){var z=l;z.status="rejected",z.reason=x}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw r=l.reason,Hp(r),r}throw Sc=l,Ec}}function wc(r){try{var l=r._init;return l(r._payload)}catch(v){throw v!==null&&typeof v=="object"&&typeof v.then=="function"?(Sc=v,Ec):v}}var Sc=null;function Ov(){if(Sc===null)throw Error(a(459));var r=Sc;return Sc=null,r}function Hp(r){if(r===Ec||r===Id)throw Error(a(483))}var Tc=null,Nu=0;function Hh(r){var l=Nu;return Nu+=1,Tc===null&&(Tc=[]),Lv(Tc,r,l)}function $d(r,l){l=l.props.ref,r.ref=l!==void 0?l:null}function jh(r,l){throw l.$$typeof===d?Error(a(525)):(r=Object.prototype.toString.call(l),Error(a(31,r==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":r)))}function lw(r){function l(Ne,Te){if(r){var Oe=Ne.deletions;Oe===null?(Ne.deletions=[Te],Ne.flags|=16):Oe.push(Te)}}function v(Ne,Te){if(!r)return null;for(;Te!==null;)l(Ne,Te),Te=Te.sibling;return null}function x(Ne){for(var Te=new Map;Ne!==null;)Ne.key!==null?Te.set(Ne.key,Ne):Te.set(Ne.index,Ne),Ne=Ne.sibling;return Te}function z(Ne,Te){return Ne=Rl(Ne,Te),Ne.index=0,Ne.sibling=null,Ne}function V(Ne,Te,Oe){return Ne.index=Oe,r?(Oe=Ne.alternate,Oe!==null?(Oe=Oe.index,Oe<Te?(Ne.flags|=67108866,Te):Oe):(Ne.flags|=67108866,Te)):(Ne.flags|=1048576,Te)}function ee(Ne){return r&&Ne.alternate===null&&(Ne.flags|=67108866),Ne}function le(Ne,Te,Oe,Qe){return Te===null||Te.tag!==6?(Te=Ld(Oe,Ne.mode,Qe),Te.return=Ne,Te):(Te=z(Te,Oe),Te.return=Ne,Te)}function be(Ne,Te,Oe,Qe){var Ot=Oe.type;return Ot===S?Fe(Ne,Te,Oe.props.children,Qe,Oe.key):Te!==null&&(Te.elementType===Ot||typeof Ot=="object"&&Ot!==null&&Ot.$$typeof===F&&wc(Ot)===Te.type)?(Te=z(Te,Oe.props),$d(Te,Oe),Te.return=Ne,Te):(Te=Mp(Oe.type,Oe.key,Oe.props,null,Ne.mode,Qe),$d(Te,Oe),Te.return=Ne,Te)}function Me(Ne,Te,Oe,Qe){return Te===null||Te.tag!==4||Te.stateNode.containerInfo!==Oe.containerInfo||Te.stateNode.implementation!==Oe.implementation?(Te=kp(Oe,Ne.mode,Qe),Te.return=Ne,Te):(Te=z(Te,Oe.children||[]),Te.return=Ne,Te)}function Fe(Ne,Te,Oe,Qe,Ot){return Te===null||Te.tag!==7?(Te=Ll(Oe,Ne.mode,Qe,Ot),Te.return=Ne,Te):(Te=z(Te,Oe),Te.return=Ne,Te)}function We(Ne,Te,Oe){if(typeof Te=="string"&&Te!==""||typeof Te=="number"||typeof Te=="bigint")return Te=Ld(""+Te,Ne.mode,Oe),Te.return=Ne,Te;if(typeof Te=="object"&&Te!==null){switch(Te.$$typeof){case h:return Oe=Mp(Te.type,Te.key,Te.props,null,Ne.mode,Oe),$d(Oe,Te),Oe.return=Ne,Oe;case m:return Te=kp(Te,Ne.mode,Oe),Te.return=Ne,Te;case F:return Te=wc(Te),We(Ne,Te,Oe)}if(M(Te)||P(Te))return Te=Ll(Te,Ne.mode,Oe,null),Te.return=Ne,Te;if(typeof Te.then=="function")return We(Ne,Hh(Te),Oe);if(Te.$$typeof===O)return We(Ne,Dl(Ne,Te),Oe);jh(Ne,Te)}return null}function ke(Ne,Te,Oe,Qe){var Ot=Te!==null?Te.key:null;if(typeof Oe=="string"&&Oe!==""||typeof Oe=="number"||typeof Oe=="bigint")return Ot!==null?null:le(Ne,Te,""+Oe,Qe);if(typeof Oe=="object"&&Oe!==null){switch(Oe.$$typeof){case h:return Oe.key===Ot?be(Ne,Te,Oe,Qe):null;case m:return Oe.key===Ot?Me(Ne,Te,Oe,Qe):null;case F:return Oe=wc(Oe),ke(Ne,Te,Oe,Qe)}if(M(Oe)||P(Oe))return Ot!==null?null:Fe(Ne,Te,Oe,Qe,null);if(typeof Oe.then=="function")return ke(Ne,Te,Hh(Oe),Qe);if(Oe.$$typeof===O)return ke(Ne,Te,Dl(Ne,Oe),Qe);jh(Ne,Oe)}return null}function He(Ne,Te,Oe,Qe,Ot){if(typeof Qe=="string"&&Qe!==""||typeof Qe=="number"||typeof Qe=="bigint")return Ne=Ne.get(Oe)||null,le(Te,Ne,""+Qe,Ot);if(typeof Qe=="object"&&Qe!==null){switch(Qe.$$typeof){case h:return Ne=Ne.get(Qe.key===null?Oe:Qe.key)||null,be(Te,Ne,Qe,Ot);case m:return Ne=Ne.get(Qe.key===null?Oe:Qe.key)||null,Me(Te,Ne,Qe,Ot);case F:return Qe=wc(Qe),He(Ne,Te,Oe,Qe,Ot)}if(M(Qe)||P(Qe))return Ne=Ne.get(Oe)||null,Fe(Te,Ne,Qe,Ot,null);if(typeof Qe.then=="function")return He(Ne,Te,Oe,Hh(Qe),Ot);if(Qe.$$typeof===O)return He(Ne,Te,Oe,Dl(Te,Qe),Ot);jh(Te,Qe)}return null}function wt(Ne,Te,Oe,Qe){for(var Ot=null,Dn=null,At=Te,nn=Te=0,cn=null;At!==null&&nn<Oe.length;nn++){At.index>nn?(cn=At,At=null):cn=At.sibling;var $n=ke(Ne,At,Oe[nn],Qe);if($n===null){At===null&&(At=cn);break}r&&At&&$n.alternate===null&&l(Ne,At),Te=V($n,Te,nn),Dn===null?Ot=$n:Dn.sibling=$n,Dn=$n,At=cn}if(nn===Oe.length)return v(Ne,At),wn&&Da(Ne,nn),Ot;if(At===null){for(;nn<Oe.length;nn++)At=We(Ne,Oe[nn],Qe),At!==null&&(Te=V(At,Te,nn),Dn===null?Ot=At:Dn.sibling=At,Dn=At);return wn&&Da(Ne,nn),Ot}for(At=x(At);nn<Oe.length;nn++)cn=He(At,Ne,nn,Oe[nn],Qe),cn!==null&&(r&&cn.alternate!==null&&At.delete(cn.key===null?nn:cn.key),Te=V(cn,Te,nn),Dn===null?Ot=cn:Dn.sibling=cn,Dn=cn);return r&&At.forEach(function(gs){return l(Ne,gs)}),wn&&Da(Ne,nn),Ot}function zt(Ne,Te,Oe,Qe){if(Oe==null)throw Error(a(151));for(var Ot=null,Dn=null,At=Te,nn=Te=0,cn=null,$n=Oe.next();At!==null&&!$n.done;nn++,$n=Oe.next()){At.index>nn?(cn=At,At=null):cn=At.sibling;var gs=ke(Ne,At,$n.value,Qe);if(gs===null){At===null&&(At=cn);break}r&&At&&gs.alternate===null&&l(Ne,At),Te=V(gs,Te,nn),Dn===null?Ot=gs:Dn.sibling=gs,Dn=gs,At=cn}if($n.done)return v(Ne,At),wn&&Da(Ne,nn),Ot;if(At===null){for(;!$n.done;nn++,$n=Oe.next())$n=We(Ne,$n.value,Qe),$n!==null&&(Te=V($n,Te,nn),Dn===null?Ot=$n:Dn.sibling=$n,Dn=$n);return wn&&Da(Ne,nn),Ot}for(At=x(At);!$n.done;nn++,$n=Oe.next())$n=He(At,Ne,nn,$n.value,Qe),$n!==null&&(r&&$n.alternate!==null&&At.delete($n.key===null?nn:$n.key),Te=V($n,Te,nn),Dn===null?Ot=$n:Dn.sibling=$n,Dn=$n);return r&&At.forEach(function(f1){return l(Ne,f1)}),wn&&Da(Ne,nn),Ot}function no(Ne,Te,Oe,Qe){if(typeof Oe=="object"&&Oe!==null&&Oe.type===S&&Oe.key===null&&(Oe=Oe.props.children),typeof Oe=="object"&&Oe!==null){switch(Oe.$$typeof){case h:e:{for(var Ot=Oe.key;Te!==null;){if(Te.key===Ot){if(Ot=Oe.type,Ot===S){if(Te.tag===7){v(Ne,Te.sibling),Qe=z(Te,Oe.props.children),Qe.return=Ne,Ne=Qe;break e}}else if(Te.elementType===Ot||typeof Ot=="object"&&Ot!==null&&Ot.$$typeof===F&&wc(Ot)===Te.type){v(Ne,Te.sibling),Qe=z(Te,Oe.props),$d(Qe,Oe),Qe.return=Ne,Ne=Qe;break e}v(Ne,Te);break}else l(Ne,Te);Te=Te.sibling}Oe.type===S?(Qe=Ll(Oe.props.children,Ne.mode,Qe,Oe.key),Qe.return=Ne,Ne=Qe):(Qe=Mp(Oe.type,Oe.key,Oe.props,null,Ne.mode,Qe),$d(Qe,Oe),Qe.return=Ne,Ne=Qe)}return ee(Ne);case m:e:{for(Ot=Oe.key;Te!==null;){if(Te.key===Ot)if(Te.tag===4&&Te.stateNode.containerInfo===Oe.containerInfo&&Te.stateNode.implementation===Oe.implementation){v(Ne,Te.sibling),Qe=z(Te,Oe.children||[]),Qe.return=Ne,Ne=Qe;break e}else{v(Ne,Te);break}else l(Ne,Te);Te=Te.sibling}Qe=kp(Oe,Ne.mode,Qe),Qe.return=Ne,Ne=Qe}return ee(Ne);case F:return Oe=wc(Oe),no(Ne,Te,Oe,Qe)}if(M(Oe))return wt(Ne,Te,Oe,Qe);if(P(Oe)){if(Ot=P(Oe),typeof Ot!="function")throw Error(a(150));return Oe=Ot.call(Oe),zt(Ne,Te,Oe,Qe)}if(typeof Oe.then=="function")return no(Ne,Te,Hh(Oe),Qe);if(Oe.$$typeof===O)return no(Ne,Te,Dl(Ne,Oe),Qe);jh(Ne,Oe)}return typeof Oe=="string"&&Oe!==""||typeof Oe=="number"||typeof Oe=="bigint"?(Oe=""+Oe,Te!==null&&Te.tag===6?(v(Ne,Te.sibling),Qe=z(Te,Oe),Qe.return=Ne,Ne=Qe):(v(Ne,Te),Qe=Ld(Oe,Ne.mode,Qe),Qe.return=Ne,Ne=Qe),ee(Ne)):v(Ne,Te)}return function(Ne,Te,Oe,Qe){try{Nu=0;var Ot=no(Ne,Te,Oe,Qe);return Tc=null,Ot}catch(At){if(At===Ec||At===Id)throw At;var Dn=Mo(29,At,null,Ne.mode);return Dn.lanes=Qe,Dn.return=Ne,Dn}finally{}}}var Ac=lw(!0),Dv=lw(!1),kl=!1;function zh(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function jp(r,l){r=r.updateQueue,l.updateQueue===r&&(l.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function Il(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function Yr(r,l,v){var x=r.updateQueue;if(x===null)return null;if(x=x.shared,(In&2)!==0){var z=x.pending;return z===null?l.next=l:(l.next=z.next,z.next=l),x.pending=l,l=Nh(r),Dp(r,null,v),l}return Pr(r,x,l,v),Nh(r)}function xc(r,l,v){if(l=l.updateQueue,l!==null&&(l=l.shared,(v&4194048)!==0)){var x=l.lanes;x&=r.pendingLanes,v|=x,l.lanes=v,Rn(r,v)}}function zp(r,l){var v=r.updateQueue,x=r.alternate;if(x!==null&&(x=x.updateQueue,v===x)){var z=null,V=null;if(v=v.firstBaseUpdate,v!==null){do{var ee={lane:v.lane,tag:v.tag,payload:v.payload,callback:null,next:null};V===null?z=V=ee:V=V.next=ee,v=v.next}while(v!==null);V===null?z=V=l:V=V.next=l}else z=V=l;v={baseState:x.baseState,firstBaseUpdate:z,lastBaseUpdate:V,shared:x.shared,callbacks:x.callbacks},r.updateQueue=v;return}r=v.lastBaseUpdate,r===null?v.firstBaseUpdate=l:r.next=l,v.lastBaseUpdate=l}var Mv=!1;function _c(){if(Mv){var r=Zo;if(r!==null)throw r}}function Us(r,l,v,x){Mv=!1;var z=r.updateQueue;kl=!1;var V=z.firstBaseUpdate,ee=z.lastBaseUpdate,le=z.shared.pending;if(le!==null){z.shared.pending=null;var be=le,Me=be.next;be.next=null,ee===null?V=Me:ee.next=Me,ee=be;var Fe=r.alternate;Fe!==null&&(Fe=Fe.updateQueue,le=Fe.lastBaseUpdate,le!==ee&&(le===null?Fe.firstBaseUpdate=Me:le.next=Me,Fe.lastBaseUpdate=be))}if(V!==null){var We=z.baseState;ee=0,Fe=Me=be=null,le=V;do{var ke=le.lane&-536870913,He=ke!==le.lane;if(He?(pn&ke)===ke:(x&ke)===ke){ke!==0&&ke===yc&&(Mv=!0),Fe!==null&&(Fe=Fe.next={lane:0,tag:le.tag,payload:le.payload,callback:null,next:null});e:{var wt=r,zt=le;ke=l;var no=v;switch(zt.tag){case 1:if(wt=zt.payload,typeof wt=="function"){We=wt.call(no,We,ke);break e}We=wt;break e;case 3:wt.flags=wt.flags&-65537|128;case 0:if(wt=zt.payload,ke=typeof wt=="function"?wt.call(no,We,ke):wt,ke==null)break e;We=u({},We,ke);break e;case 2:kl=!0}}ke=le.callback,ke!==null&&(r.flags|=64,He&&(r.flags|=8192),He=z.callbacks,He===null?z.callbacks=[ke]:He.push(ke))}else He={lane:ke,tag:le.tag,payload:le.payload,callback:le.callback,next:null},Fe===null?(Me=Fe=He,be=We):Fe=Fe.next=He,ee|=ke;if(le=le.next,le===null){if(le=z.shared.pending,le===null)break;He=le,le=He.next,He.next=null,z.lastBaseUpdate=He,z.shared.pending=null}}while(!0);Fe===null&&(be=We),z.baseState=be,z.firstBaseUpdate=Me,z.lastBaseUpdate=Fe,V===null&&(z.shared.lanes=0),ds|=ee,r.lanes=ee,r.memoizedState=We}}function Bp(r,l){if(typeof r!="function")throw Error(a(191,r));r.call(l)}function Cc(r,l){var v=r.callbacks;if(v!==null)for(r.callbacks=null,r=0;r<v.length;r++)Bp(v[r],l)}var ai=Z(null),Ru=Z(0);function cw(r,l){r=us,te(Ru,r),te(ai,l),us=r|l.baseLanes}function Bh(){te(Ru,us),te(ai,ai.current)}function Ud(){us=Ru.current,re(ai),re(Ru)}var sr=Z(null),Xr=null;function Hs(r){var l=r.alternate;te(Eo,Eo.current&1),te(sr,r),Xr===null&&(l===null||ai.current!==null||l.memoizedState!==null)&&(Xr=r)}function Hd(r){te(Eo,Eo.current),te(sr,r),Xr===null&&(Xr=r)}function Fp(r){r.tag===22?(te(Eo,Eo.current),te(sr,r),Xr===null&&(Xr=r)):rs()}function rs(){te(Eo,Eo.current),te(sr,sr.current)}function lr(r){re(sr),Xr===r&&(Xr=null),re(Eo)}var Eo=Z(0);function jd(r){for(var l=r;l!==null;){if(l.tag===13){var v=l.memoizedState;if(v!==null&&(v=v.dehydrated,v===null||Ua(v)||jc(v)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder==="forwards"||l.memoizedProps.revealOrder==="backwards"||l.memoizedProps.revealOrder==="unstable_legacy-backwards"||l.memoizedProps.revealOrder==="together")){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===r)break;for(;l.sibling===null;){if(l.return===null||l.return===r)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var js=0,rn=null,Gn=null,Go=null,Lu=!1,Ou=!1,$l=!1,Fh=0,zd=0,Nc=null,uw=0;function Ro(){throw Error(a(321))}function Ul(r,l){if(l===null)return!1;for(var v=0;v<l.length&&v<r.length;v++)if(!Pi(r[v],l[v]))return!1;return!0}function Ph(r,l,v,x,z,V){return js=V,rn=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,I.H=r===null||r.memoizedState===null?vw:rg,$l=!1,V=v(x,z),$l=!1,Ou&&(V=dw(l,v,x,z)),Pp(r),V}function Pp(r){I.H=Zh;var l=Gn!==null&&Gn.next!==null;if(js=0,Go=Gn=rn=null,Lu=!1,zd=0,Nc=null,l)throw Error(a(300));r===null||Qo||(r=r.dependencies,r!==null&&Tu(r)&&(Qo=!0))}function dw(r,l,v,x){rn=r;var z=0;do{if(Ou&&(Nc=null),zd=0,Ou=!1,25<=z)throw Error(a(301));if(z+=1,Go=Gn=null,r.updateQueue!=null){var V=r.updateQueue;V.lastEffect=null,V.events=null,V.stores=null,V.memoCache!=null&&(V.memoCache.index=0)}I.H=yw,V=l(v,x)}while(Ou);return V}function PT(){var r=I.H,l=r.useState()[0];return l=typeof l.then=="function"?Mu(l):l,r=r.useState()[0],(Gn!==null?Gn.memoizedState:null)!==r&&(rn.flags|=1024),l}function Vp(){var r=Fh!==0;return Fh=0,r}function Du(r,l,v){l.updateQueue=r.updateQueue,l.flags&=-2053,r.lanes&=~v}function Vh(r){if(Lu){for(r=r.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}Lu=!1}js=0,Go=Gn=rn=null,Ou=!1,zd=Fh=0,Nc=null}function wi(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Go===null?rn.memoizedState=Go=r:Go=Go.next=r,Go}function Io(){if(Gn===null){var r=rn.alternate;r=r!==null?r.memoizedState:null}else r=Gn.next;var l=Go===null?rn.memoizedState:Go.next;if(l!==null)Go=l,Gn=r;else{if(r===null)throw rn.alternate===null?Error(a(467)):Error(a(310));Gn=r,r={memoizedState:Gn.memoizedState,baseState:Gn.baseState,baseQueue:Gn.baseQueue,queue:Gn.queue,next:null},Go===null?rn.memoizedState=Go=r:Go=Go.next=r}return Go}function Gh(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Mu(r){var l=zd;return zd+=1,Nc===null&&(Nc=[]),r=Lv(Nc,r,l),l=rn,(Go===null?l.memoizedState:Go.next)===null&&(l=l.alternate,I.H=l===null||l.memoizedState===null?vw:rg),r}function Bd(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Mu(r);if(r.$$typeof===O)return Ye(r)}throw Error(a(438,String(r)))}function Gp(r){var l=null,v=rn.updateQueue;if(v!==null&&(l=v.memoCache),l==null){var x=rn.alternate;x!==null&&(x=x.updateQueue,x!==null&&(x=x.memoCache,x!=null&&(l={data:x.data.map(function(z){return z.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),v===null&&(v=Gh(),rn.updateQueue=v),v.memoCache=l,v=l.data[l.index],v===void 0)for(v=l.data[l.index]=Array(r),x=0;x<r;x++)v[x]=j;return l.index++,v}function zs(r,l){return typeof l=="function"?l(r):l}function Bs(r){var l=Io();return Qp(l,Gn,r)}function Qp(r,l,v){var x=r.queue;if(x===null)throw Error(a(311));x.lastRenderedReducer=v;var z=r.baseQueue,V=x.pending;if(V!==null){if(z!==null){var ee=z.next;z.next=V.next,V.next=ee}l.baseQueue=z=V,x.pending=null}if(V=r.baseState,z===null)r.memoizedState=V;else{l=z.next;var le=ee=null,be=null,Me=l,Fe=!1;do{var We=Me.lane&-536870913;if(We!==Me.lane?(pn&We)===We:(js&We)===We){var ke=Me.revertLane;if(ke===0)be!==null&&(be=be.next={lane:0,revertLane:0,gesture:null,action:Me.action,hasEagerState:Me.hasEagerState,eagerState:Me.eagerState,next:null}),We===yc&&(Fe=!0);else if((js&ke)===ke){Me=Me.next,ke===yc&&(Fe=!0);continue}else We={lane:0,revertLane:Me.revertLane,gesture:null,action:Me.action,hasEagerState:Me.hasEagerState,eagerState:Me.eagerState,next:null},be===null?(le=be=We,ee=V):be=be.next=We,rn.lanes|=ke,ds|=ke;We=Me.action,$l&&v(V,We),V=Me.hasEagerState?Me.eagerState:v(V,We)}else ke={lane:We,revertLane:Me.revertLane,gesture:Me.gesture,action:Me.action,hasEagerState:Me.hasEagerState,eagerState:Me.eagerState,next:null},be===null?(le=be=ke,ee=V):be=be.next=ke,rn.lanes|=We,ds|=We;Me=Me.next}while(Me!==null&&Me!==l);if(be===null?ee=V:be.next=le,!Pi(V,r.memoizedState)&&(Qo=!0,Fe&&(v=Zo,v!==null)))throw v;r.memoizedState=V,r.baseState=ee,r.baseQueue=be,x.lastRenderedState=V}return z===null&&(x.lanes=0),[r.memoizedState,x.dispatch]}function Wp(r){var l=Io(),v=l.queue;if(v===null)throw Error(a(311));v.lastRenderedReducer=r;var x=v.dispatch,z=v.pending,V=l.memoizedState;if(z!==null){v.pending=null;var ee=z=z.next;do V=r(V,ee.action),ee=ee.next;while(ee!==z);Pi(V,l.memoizedState)||(Qo=!0),l.memoizedState=V,l.baseQueue===null&&(l.baseState=V),v.lastRenderedState=V}return[V,x]}function kv(r,l,v){var x=rn,z=Io(),V=wn;if(V){if(v===void 0)throw Error(a(407));v=v()}else v=l();var ee=!Pi((Gn||z).memoizedState,v);if(ee&&(z.memoizedState=v,Qo=!0),z=z.queue,Zp(Yp.bind(null,x,z,r),[r]),z.getSnapshot!==l||ee||Go!==null&&Go.memoizedState.tag&1){if(x.flags|=2048,Iu(9,{destroy:void 0},Iv.bind(null,x,z,v,l),null),eo===null)throw Error(a(349));V||(js&127)!==0||Qh(x,l,v)}return v}function Qh(r,l,v){r.flags|=16384,r={getSnapshot:l,value:v},l=rn.updateQueue,l===null?(l=Gh(),rn.updateQueue=l,l.stores=[r]):(v=l.stores,v===null?l.stores=[r]:v.push(r))}function Iv(r,l,v,x){l.value=v,l.getSnapshot=x,Xp(l)&&qp(r)}function Yp(r,l,v){return v(function(){Xp(l)&&qp(r)})}function Xp(r){var l=r.getSnapshot;r=r.value;try{var v=l();return!Pi(r,v)}catch{return!0}}function qp(r){var l=Nl(r,2);l!==null&&mr(l,r,2)}function $v(r){var l=wi();if(typeof r=="function"){var v=r;if(r=v(),$l){Et(!0);try{v()}finally{Et(!1)}}}return l.memoizedState=l.baseState=r,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zs,lastRenderedState:r},l}function Si(r,l,v,x){return r.baseState=v,Qp(r,Gn,typeof x=="function"?x:zs)}function fw(r,l,v,x,z){if(Kh(r))throw Error(a(485));if(r=l.action,r!==null){var V={payload:z,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(ee){V.listeners.push(ee)}};I.T!==null?v(!0):V.isTransition=!1,x(V),v=l.pending,v===null?(V.next=l.pending=V,Uv(l,V)):(V.next=v.next,l.pending=v.next=V)}}function Uv(r,l){var v=l.action,x=l.payload,z=r.state;if(l.isTransition){var V=I.T,ee={};I.T=ee;try{var le=v(z,x),be=I.S;be!==null&&be(ee,le),Hv(r,l,le)}catch(Me){ku(r,l,Me)}finally{V!==null&&ee.types!==null&&(V.types=ee.types),I.T=V}}else try{V=v(z,x),Hv(r,l,V)}catch(Me){ku(r,l,Me)}}function Hv(r,l,v){v!==null&&typeof v=="object"&&typeof v.then=="function"?v.then(function(x){jv(r,l,x)},function(x){return ku(r,l,x)}):jv(r,l,v)}function jv(r,l,v){l.status="fulfilled",l.value=v,zv(l),r.state=v,l=r.pending,l!==null&&(v=l.next,v===l?r.pending=null:(v=v.next,l.next=v,Uv(r,v)))}function ku(r,l,v){var x=r.pending;if(r.pending=null,x!==null){x=x.next;do l.status="rejected",l.reason=v,zv(l),l=l.next;while(l!==x)}r.action=null}function zv(r){r=r.listeners;for(var l=0;l<r.length;l++)(0,r[l])()}function Wh(r,l){return l}function Bv(r,l){if(wn){var v=eo.formState;if(v!==null){e:{var x=rn;if(wn){if(lo){t:{for(var z=lo,V=ri;z.nodeType!==8;){if(!V){z=null;break t}if(z=pr(z.nextSibling),z===null){z=null;break t}}V=z.data,z=V==="F!"||V==="F"?z:null}if(z){lo=pr(z.nextSibling),x=z.data==="F!";break e}}Ma(x)}x=!1}x&&(l=v[0])}}return v=wi(),v.memoizedState=v.baseState=l,x={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wh,lastRenderedState:l},v.queue=x,v=og.bind(null,rn,x),x.dispatch=v,x=$v(!1),V=Rc.bind(null,rn,!1,x.queue),x=wi(),z={state:l,dispatch:null,action:r,pending:null},x.queue=z,v=fw.bind(null,rn,z,V,v),z.dispatch=v,x.memoizedState=r,[l,v,!1]}function hw(r){var l=Io();return Yh(l,Gn,r)}function Yh(r,l,v){if(l=Qp(r,l,Wh)[0],r=Bs(zs)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var x=Mu(l)}catch(ee){throw ee===Ec?Id:ee}else x=l;l=Io();var z=l.queue,V=z.dispatch;return v!==l.memoizedState&&(rn.flags|=2048,Iu(9,{destroy:void 0},Fv.bind(null,z,v),null)),[x,V,r]}function Fv(r,l){r.action=l}function Pv(r){var l=Io(),v=Gn;if(v!==null)return Yh(l,v,r);Io(),l=l.memoizedState,v=Io();var x=v.queue.dispatch;return v.memoizedState=r,[l,x,!1]}function Iu(r,l,v,x){return r={tag:r,create:v,deps:x,inst:l,next:null},l=rn.updateQueue,l===null&&(l=Gh(),rn.updateQueue=l),v=l.lastEffect,v===null?l.lastEffect=r.next=r:(x=v.next,v.next=r,r.next=x,l.lastEffect=r),r}function Vv(){return Io().memoizedState}function Fd(r,l,v,x){var z=wi();rn.flags|=r,z.memoizedState=Iu(1|l,{destroy:void 0},v,x===void 0?null:x)}function Pd(r,l,v,x){var z=Io();x=x===void 0?null:x;var V=z.memoizedState.inst;Gn!==null&&x!==null&&Ul(x,Gn.memoizedState.deps)?z.memoizedState=Iu(l,V,v,x):(rn.flags|=r,z.memoizedState=Iu(1|l,V,v,x))}function Kp(r,l){Fd(8390656,8,r,l)}function Zp(r,l){Pd(2048,8,r,l)}function Gv(r){rn.flags|=4;var l=rn.updateQueue;if(l===null)l=Gh(),rn.updateQueue=l,l.events=[r];else{var v=l.events;v===null?l.events=[r]:v.push(r)}}function Xh(r){var l=Io().memoizedState;return Gv({ref:l,nextImpl:r}),function(){if((In&2)!==0)throw Error(a(440));return l.impl.apply(void 0,arguments)}}function Jp(r,l){return Pd(4,2,r,l)}function Qv(r,l){return Pd(4,4,r,l)}function eg(r,l){if(typeof l=="function"){r=r();var v=l(r);return function(){typeof v=="function"?v():l(null)}}if(l!=null)return r=r(),l.current=r,function(){l.current=null}}function Wv(r,l,v){v=v!=null?v.concat([r]):null,Pd(4,4,eg.bind(null,l,r),v)}function as(){}function tg(r,l){var v=Io();l=l===void 0?null:l;var x=v.memoizedState;return l!==null&&Ul(l,x[1])?x[0]:(v.memoizedState=[r,l],r)}function mw(r,l){var v=Io();l=l===void 0?null:l;var x=v.memoizedState;if(l!==null&&Ul(l,x[1]))return x[0];if(x=r(),$l){Et(!0);try{r()}finally{Et(!1)}}return v.memoizedState=[x,l],x}function qh(r,l,v){return v===void 0||(js&1073741824)!==0&&(pn&261930)===0?r.memoizedState=l:(r.memoizedState=v,r=Rw(),rn.lanes|=r,ds|=r,v)}function Fs(r,l,v,x){return Pi(v,l)?v:ai.current!==null?(r=qh(r,v,x),Pi(r,l)||(Qo=!0),r):(js&42)===0||(js&1073741824)!==0&&(pn&261930)===0?(Qo=!0,r.memoizedState=v):(r=Rw(),rn.lanes|=r,ds|=r,l)}function ng(r,l,v,x,z){var V=W.p;W.p=V!==0&&8>V?V:8;var ee=I.T,le={};I.T=le,Rc(r,!1,l,v);try{var be=z(),Me=I.S;if(Me!==null&&Me(le,be),be!==null&&typeof be=="object"&&typeof be.then=="function"){var Fe=Uh(be,x);Hl(r,l,Fe,Rr(r))}else Hl(r,l,x,Rr(r))}catch(We){Hl(r,l,{then:function(){},status:"rejected",reason:We},Rr())}finally{W.p=V,ee!==null&&le.types!==null&&(ee.types=le.types),I.T=ee}}function pw(){}function Vd(r,l,v,x){if(r.tag!==5)throw Error(a(476));var z=Gd(r).queue;ng(r,z,l,Q,v===null?pw:function(){return Jn(r),v(x)})}function Gd(r){var l=r.memoizedState;if(l!==null)return l;l={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zs,lastRenderedState:Q},next:null};var v={};return l.next={memoizedState:v,baseState:v,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zs,lastRenderedState:v},next:null},r.memoizedState=l,r=r.alternate,r!==null&&(r.memoizedState=l),l}function Jn(r){var l=Gd(r);l.next===null&&(l=r.alternate.memoizedState),Hl(r,l.next.queue,{},Rr())}function Yv(){return Ye(xm)}function gw(){return Io().memoizedState}function Xv(){return Io().memoizedState}function Ps(r){for(var l=r.return;l!==null;){switch(l.tag){case 24:case 3:var v=Rr();r=Il(v);var x=Yr(l,r,v);x!==null&&(mr(x,l,v),xc(x,l,v)),l={cache:Mh()},r.payload=l;return}l=l.return}}function bw(r,l,v){var x=Rr();v={lane:x,revertLane:0,gesture:null,action:v,hasEagerState:!1,eagerState:null,next:null},Kh(r)?ig(l,v):(v=Oa(r,l,v,x),v!==null&&(mr(v,r,x),qv(v,l,x)))}function og(r,l,v){var x=Rr();Hl(r,l,v,x)}function Hl(r,l,v,x){var z={lane:x,revertLane:0,gesture:null,action:v,hasEagerState:!1,eagerState:null,next:null};if(Kh(r))ig(l,z);else{var V=r.alternate;if(r.lanes===0&&(V===null||V.lanes===0)&&(V=l.lastRenderedReducer,V!==null))try{var ee=l.lastRenderedState,le=V(ee,v);if(z.hasEagerState=!0,z.eagerState=le,Pi(le,ee))return Pr(r,l,z,0),eo===null&&Fr(),!1}catch{}finally{}if(v=Oa(r,l,z,x),v!==null)return mr(v,r,x),qv(v,l,x),!0}return!1}function Rc(r,l,v,x){if(x={lane:2,revertLane:Lg(),gesture:null,action:x,hasEagerState:!1,eagerState:null,next:null},Kh(r)){if(l)throw Error(a(479))}else l=Oa(r,v,x,2),l!==null&&mr(l,r,2)}function Kh(r){var l=r.alternate;return r===rn||l!==null&&l===rn}function ig(r,l){Ou=Lu=!0;var v=r.pending;v===null?l.next=l:(l.next=v.next,v.next=l),r.pending=l}function qv(r,l,v){if((v&4194048)!==0){var x=l.lanes;x&=r.pendingLanes,v|=x,l.lanes=v,Rn(r,v)}}var Zh={readContext:Ye,use:Bd,useCallback:Ro,useContext:Ro,useEffect:Ro,useImperativeHandle:Ro,useLayoutEffect:Ro,useInsertionEffect:Ro,useMemo:Ro,useReducer:Ro,useRef:Ro,useState:Ro,useDebugValue:Ro,useDeferredValue:Ro,useTransition:Ro,useSyncExternalStore:Ro,useId:Ro,useHostTransitionStatus:Ro,useFormState:Ro,useActionState:Ro,useOptimistic:Ro,useMemoCache:Ro,useCacheRefresh:Ro};Zh.useEffectEvent=Ro;var vw={readContext:Ye,use:Bd,useCallback:function(r,l){return wi().memoizedState=[r,l===void 0?null:l],r},useContext:Ye,useEffect:Kp,useImperativeHandle:function(r,l,v){v=v!=null?v.concat([r]):null,Fd(4194308,4,eg.bind(null,l,r),v)},useLayoutEffect:function(r,l){return Fd(4194308,4,r,l)},useInsertionEffect:function(r,l){Fd(4,2,r,l)},useMemo:function(r,l){var v=wi();l=l===void 0?null:l;var x=r();if($l){Et(!0);try{r()}finally{Et(!1)}}return v.memoizedState=[x,l],x},useReducer:function(r,l,v){var x=wi();if(v!==void 0){var z=v(l);if($l){Et(!0);try{v(l)}finally{Et(!1)}}}else z=l;return x.memoizedState=x.baseState=z,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:z},x.queue=r,r=r.dispatch=bw.bind(null,rn,r),[x.memoizedState,r]},useRef:function(r){var l=wi();return r={current:r},l.memoizedState=r},useState:function(r){r=$v(r);var l=r.queue,v=og.bind(null,rn,l);return l.dispatch=v,[r.memoizedState,v]},useDebugValue:as,useDeferredValue:function(r,l){var v=wi();return qh(v,r,l)},useTransition:function(){var r=$v(!1);return r=ng.bind(null,rn,r.queue,!0,!1),wi().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,l,v){var x=rn,z=wi();if(wn){if(v===void 0)throw Error(a(407));v=v()}else{if(v=l(),eo===null)throw Error(a(349));(pn&127)!==0||Qh(x,l,v)}z.memoizedState=v;var V={value:v,getSnapshot:l};return z.queue=V,Kp(Yp.bind(null,x,V,r),[r]),x.flags|=2048,Iu(9,{destroy:void 0},Iv.bind(null,x,V,v,l),null),v},useId:function(){var r=wi(),l=eo.identifierPrefix;if(wn){var v=ns,x=xr;v=(x&~(1<<32-xe(x)-1)).toString(32)+v,l="_"+l+"R_"+v,v=Fh++,0<v&&(l+="H"+v.toString(32)),l+="_"}else v=uw++,l="_"+l+"r_"+v.toString(32)+"_";return r.memoizedState=l},useHostTransitionStatus:Yv,useFormState:Bv,useActionState:Bv,useOptimistic:function(r){var l=wi();l.memoizedState=l.baseState=r;var v={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=v,l=Rc.bind(null,rn,!0,v),v.dispatch=l,[r,l]},useMemoCache:Gp,useCacheRefresh:function(){return wi().memoizedState=Ps.bind(null,rn)},useEffectEvent:function(r){var l=wi(),v={impl:r};return l.memoizedState=v,function(){if((In&2)!==0)throw Error(a(440));return v.impl.apply(void 0,arguments)}}},rg={readContext:Ye,use:Bd,useCallback:tg,useContext:Ye,useEffect:Zp,useImperativeHandle:Wv,useInsertionEffect:Jp,useLayoutEffect:Qv,useMemo:mw,useReducer:Bs,useRef:Vv,useState:function(){return Bs(zs)},useDebugValue:as,useDeferredValue:function(r,l){var v=Io();return Fs(v,Gn.memoizedState,r,l)},useTransition:function(){var r=Bs(zs)[0],l=Io().memoizedState;return[typeof r=="boolean"?r:Mu(r),l]},useSyncExternalStore:kv,useId:gw,useHostTransitionStatus:Yv,useFormState:hw,useActionState:hw,useOptimistic:function(r,l){var v=Io();return Si(v,Gn,r,l)},useMemoCache:Gp,useCacheRefresh:Xv};rg.useEffectEvent=Xh;var yw={readContext:Ye,use:Bd,useCallback:tg,useContext:Ye,useEffect:Zp,useImperativeHandle:Wv,useInsertionEffect:Jp,useLayoutEffect:Qv,useMemo:mw,useReducer:Wp,useRef:Vv,useState:function(){return Wp(zs)},useDebugValue:as,useDeferredValue:function(r,l){var v=Io();return Gn===null?qh(v,r,l):Fs(v,Gn.memoizedState,r,l)},useTransition:function(){var r=Wp(zs)[0],l=Io().memoizedState;return[typeof r=="boolean"?r:Mu(r),l]},useSyncExternalStore:kv,useId:gw,useHostTransitionStatus:Yv,useFormState:Pv,useActionState:Pv,useOptimistic:function(r,l){var v=Io();return Gn!==null?Si(v,Gn,r,l):(v.baseState=r,[r,v.queue.dispatch])},useMemoCache:Gp,useCacheRefresh:Xv};yw.useEffectEvent=Xh;function $u(r,l,v,x){l=r.memoizedState,v=v(x,l),v=v==null?l:u({},l,v),r.memoizedState=v,r.lanes===0&&(r.updateQueue.baseState=v)}var ka={enqueueSetState:function(r,l,v){r=r._reactInternals;var x=Rr(),z=Il(x);z.payload=l,v!=null&&(z.callback=v),l=Yr(r,z,x),l!==null&&(mr(l,r,x),xc(l,r,x))},enqueueReplaceState:function(r,l,v){r=r._reactInternals;var x=Rr(),z=Il(x);z.tag=1,z.payload=l,v!=null&&(z.callback=v),l=Yr(r,z,x),l!==null&&(mr(l,r,x),xc(l,r,x))},enqueueForceUpdate:function(r,l){r=r._reactInternals;var v=Rr(),x=Il(v);x.tag=2,l!=null&&(x.callback=l),l=Yr(r,x,v),l!==null&&(mr(l,r,v),xc(l,r,v))}};function Kv(r,l,v,x,z,V,ee){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(x,V,ee):l.prototype&&l.prototype.isPureReactComponent?!Na(v,x)||!Na(z,V):!0}function Ew(r,l,v,x){r=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(v,x),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(v,x),l.state!==r&&ka.enqueueReplaceState(l,l.state,null)}function Lc(r,l){var v=l;if("ref"in l){v={};for(var x in l)x!=="ref"&&(v[x]=l[x])}if(r=r.defaultProps){v===l&&(v=u({},v));for(var z in r)v[z]===void 0&&(v[z]=r[z])}return v}function ag(r){Eu(r)}function Zv(r){console.error(r)}function sg(r){Eu(r)}function Qd(r,l){try{var v=r.onUncaughtError;v(l.value,{componentStack:l.stack})}catch(x){setTimeout(function(){throw x})}}function Jh(r,l,v){try{var x=r.onCaughtError;x(v.value,{componentStack:v.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(z){setTimeout(function(){throw z})}}function Jv(r,l,v){return v=Il(v),v.tag=3,v.payload={element:null},v.callback=function(){Qd(r,l)},v}function e0(r){return r=Il(r),r.tag=3,r}function t0(r,l,v,x){var z=v.type.getDerivedStateFromError;if(typeof z=="function"){var V=x.value;r.payload=function(){return z(V)},r.callback=function(){Jh(l,v,x)}}var ee=v.stateNode;ee!==null&&typeof ee.componentDidCatch=="function"&&(r.callback=function(){Jh(l,v,x),typeof z!="function"&&(wo===null?wo=new Set([this]):wo.add(this));var le=x.stack;this.componentDidCatch(x.value,{componentStack:le!==null?le:""})})}function VT(r,l,v,x,z){if(v.flags|=32768,x!==null&&typeof x=="object"&&typeof x.then=="function"){if(l=v.alternate,l!==null&&Ei(l,v,z,!0),v=sr.current,v!==null){switch(v.tag){case 31:case 13:return Xr===null?_g():v.alternate===null&&uo===0&&(uo=3),v.flags&=-257,v.flags|=65536,v.lanes=z,x===Cu?v.flags|=16384:(l=v.updateQueue,l===null?v.updateQueue=new Set([x]):l.add(x),hm(r,x,z)),!1;case 22:return v.flags|=65536,x===Cu?v.flags|=16384:(l=v.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([x])},v.updateQueue=l):(v=l.retryQueue,v===null?l.retryQueue=new Set([x]):v.add(x)),hm(r,x,z)),!1}throw Error(a(435,v.tag))}return hm(r,x,z),_g(),!1}if(wn)return l=sr.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=z,x!==ks&&(r=Error(a(422),{cause:x}),Md(Vr(r,v)))):(x!==ks&&(l=Error(a(423),{cause:x}),Md(Vr(l,v))),r=r.current.alternate,r.flags|=65536,z&=-z,r.lanes|=z,x=Vr(x,v),z=Jv(r.stateNode,x,z),zp(r,z),uo!==4&&(uo=2)),!1;var V=Error(a(520),{cause:x});if(V=Vr(V,v),cm===null?cm=[V]:cm.push(V),uo!==4&&(uo=2),l===null)return!0;x=Vr(x,v),v=l;do{switch(v.tag){case 3:return v.flags|=65536,r=z&-z,v.lanes|=r,r=Jv(v.stateNode,x,r),zp(v,r),!1;case 1:if(l=v.type,V=v.stateNode,(v.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||V!==null&&typeof V.componentDidCatch=="function"&&(wo===null||!wo.has(V))))return v.flags|=65536,z&=-z,v.lanes|=z,z=e0(z),t0(z,r,v,x),zp(v,z),!1}v=v.return}while(v!==null);return!1}var lg=Error(a(461)),Qo=!1;function po(r,l,v,x){l.child=r===null?Dv(l,null,v,x):Ac(l,r.child,v,x)}function n0(r,l,v,x,z){v=v.render;var V=l.ref;if("ref"in x){var ee={};for(var le in x)le!=="ref"&&(ee[le]=x[le])}else ee=x;return qt(l),x=Ph(r,l,v,ee,V,z),le=Vp(),r!==null&&!Qo?(Du(r,l,z),Zr(r,l,z)):(wn&&le&&Od(l),l.flags|=1,po(r,l,x,z),l.child)}function o0(r,l,v,x,z){if(r===null){var V=v.type;return typeof V=="function"&&!wu(V)&&V.defaultProps===void 0&&v.compare===null?(l.tag=15,l.type=V,i0(r,l,V,x,z)):(r=Mp(v.type,null,x,l,l.mode,z),r.ref=l.ref,r.return=l,l.child=r)}if(V=r.child,!dg(r,z)){var ee=V.memoizedProps;if(v=v.compare,v=v!==null?v:Na,v(ee,x)&&r.ref===l.ref)return Zr(r,l,z)}return l.flags|=1,r=Rl(V,x),r.ref=l.ref,r.return=l,l.child=r}function i0(r,l,v,x,z){if(r!==null){var V=r.memoizedProps;if(Na(V,x)&&r.ref===l.ref)if(Qo=!1,l.pendingProps=x=V,dg(r,z))(r.flags&131072)!==0&&(Qo=!0);else return l.lanes=r.lanes,Zr(r,l,z)}return cg(r,l,v,x,z)}function ww(r,l,v,x){var z=x.children,V=r!==null?r.memoizedState:null;if(r===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),x.mode==="hidden"){if((l.flags&128)!==0){if(V=V!==null?V.baseLanes|v:v,r!==null){for(x=l.child=r.child,z=0;x!==null;)z=z|x.lanes|x.childLanes,x=x.sibling;x=z&~V}else x=0,l.child=null;return cr(r,l,V,v,x)}if((v&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},r!==null&&kd(l,V!==null?V.cachePool:null),V!==null?cw(l,V):Bh(),Fp(l);else return x=l.lanes=536870912,cr(r,l,V!==null?V.baseLanes|v:v,v,x)}else V!==null?(kd(l,V.cachePool),cw(l,V),rs(),l.memoizedState=null):(r!==null&&kd(l,null),Bh(),rs());return po(r,l,z,v),l.child}function Oc(r,l){return r!==null&&r.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function cr(r,l,v,x,z){var V=Wr();return V=V===null?null:{parent:Vo._currentValue,pool:V},l.memoizedState={baseLanes:v,cachePool:V},r!==null&&kd(l,null),Bh(),Fp(l),r!==null&&Ei(r,l,x,!0),l.childLanes=z,null}function em(r,l){return l=om({mode:l.mode,children:l.children},r.mode),l.ref=r.ref,r.child=l,l.return=r,l}function ur(r,l,v){return Ac(l,r.child,null,v),r=em(l,l.pendingProps),r.flags|=2,lr(l),l.memoizedState=null,r}function Sw(r,l,v){var x=l.pendingProps,z=(l.flags&128)!==0;if(l.flags&=-129,r===null){if(wn){if(x.mode==="hidden")return r=em(l,x),l.lanes=536870912,Oc(null,r);if(Hd(l),(r=lo)?(r=o1(r,ri),r=r!==null&&r.data==="&"?r:null,r!==null&&(l.memoizedState={dehydrated:r,treeContext:ts!==null?{id:xr,overflow:ns}:null,retryLane:536870912,hydrationErrors:null},v=Tv(r),v.return=l,l.child=v,yi=l,lo=null)):r=null,r===null)throw Ma(l);return l.lanes=536870912,null}return em(l,x)}var V=r.memoizedState;if(V!==null){var ee=V.dehydrated;if(Hd(l),z)if(l.flags&256)l.flags&=-257,l=ur(r,l,v);else if(l.memoizedState!==null)l.child=r.child,l.flags|=128,l=null;else throw Error(a(558));else if(Qo||Ei(r,l,v,!1),z=(v&r.childLanes)!==0,Qo||z){if(x=eo,x!==null&&(ee=Yt(x,v),ee!==0&&ee!==V.retryLane))throw V.retryLane=ee,Nl(r,ee),mr(x,r,ee),lg;_g(),l=ur(r,l,v)}else r=V.treeContext,lo=pr(ee.nextSibling),yi=l,wn=!0,Ms=null,ri=!1,r!==null&&Lh(l,r),l=em(l,x),l.flags|=4096;return l}return r=Rl(r.child,{mode:x.mode,children:x.children}),r.ref=l.ref,l.child=r,r.return=l,r}function qr(r,l){var v=l.ref;if(v===null)r!==null&&r.ref!==null&&(l.flags|=4194816);else{if(typeof v!="function"&&typeof v!="object")throw Error(a(284));(r===null||r.ref!==v)&&(l.flags|=4194816)}}function cg(r,l,v,x,z){return qt(l),v=Ph(r,l,v,x,void 0,z),x=Vp(),r!==null&&!Qo?(Du(r,l,z),Zr(r,l,z)):(wn&&x&&Od(l),l.flags|=1,po(r,l,v,z),l.child)}function Dc(r,l,v,x,z,V){return qt(l),l.updateQueue=null,v=dw(l,x,v,z),Pp(r),x=Vp(),r!==null&&!Qo?(Du(r,l,V),Zr(r,l,V)):(wn&&x&&Od(l),l.flags|=1,po(r,l,v,V),l.child)}function r0(r,l,v,x,z){if(qt(l),l.stateNode===null){var V=ir,ee=v.contextType;typeof ee=="object"&&ee!==null&&(V=Ye(ee)),V=new v(x,V),l.memoizedState=V.state!==null&&V.state!==void 0?V.state:null,V.updater=ka,l.stateNode=V,V._reactInternals=l,V=l.stateNode,V.props=x,V.state=l.memoizedState,V.refs={},zh(l),ee=v.contextType,V.context=typeof ee=="object"&&ee!==null?Ye(ee):ir,V.state=l.memoizedState,ee=v.getDerivedStateFromProps,typeof ee=="function"&&($u(l,v,ee,x),V.state=l.memoizedState),typeof v.getDerivedStateFromProps=="function"||typeof V.getSnapshotBeforeUpdate=="function"||typeof V.UNSAFE_componentWillMount!="function"&&typeof V.componentWillMount!="function"||(ee=V.state,typeof V.componentWillMount=="function"&&V.componentWillMount(),typeof V.UNSAFE_componentWillMount=="function"&&V.UNSAFE_componentWillMount(),ee!==V.state&&ka.enqueueReplaceState(V,V.state,null),Us(l,x,V,z),_c(),V.state=l.memoizedState),typeof V.componentDidMount=="function"&&(l.flags|=4194308),x=!0}else if(r===null){V=l.stateNode;var le=l.memoizedProps,be=Lc(v,le);V.props=be;var Me=V.context,Fe=v.contextType;ee=ir,typeof Fe=="object"&&Fe!==null&&(ee=Ye(Fe));var We=v.getDerivedStateFromProps;Fe=typeof We=="function"||typeof V.getSnapshotBeforeUpdate=="function",le=l.pendingProps!==le,Fe||typeof V.UNSAFE_componentWillReceiveProps!="function"&&typeof V.componentWillReceiveProps!="function"||(le||Me!==ee)&&Ew(l,V,x,ee),kl=!1;var ke=l.memoizedState;V.state=ke,Us(l,x,V,z),_c(),Me=l.memoizedState,le||ke!==Me||kl?(typeof We=="function"&&($u(l,v,We,x),Me=l.memoizedState),(be=kl||Kv(l,v,be,x,ke,Me,ee))?(Fe||typeof V.UNSAFE_componentWillMount!="function"&&typeof V.componentWillMount!="function"||(typeof V.componentWillMount=="function"&&V.componentWillMount(),typeof V.UNSAFE_componentWillMount=="function"&&V.UNSAFE_componentWillMount()),typeof V.componentDidMount=="function"&&(l.flags|=4194308)):(typeof V.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=x,l.memoizedState=Me),V.props=x,V.state=Me,V.context=ee,x=be):(typeof V.componentDidMount=="function"&&(l.flags|=4194308),x=!1)}else{V=l.stateNode,jp(r,l),ee=l.memoizedProps,Fe=Lc(v,ee),V.props=Fe,We=l.pendingProps,ke=V.context,Me=v.contextType,be=ir,typeof Me=="object"&&Me!==null&&(be=Ye(Me)),le=v.getDerivedStateFromProps,(Me=typeof le=="function"||typeof V.getSnapshotBeforeUpdate=="function")||typeof V.UNSAFE_componentWillReceiveProps!="function"&&typeof V.componentWillReceiveProps!="function"||(ee!==We||ke!==be)&&Ew(l,V,x,be),kl=!1,ke=l.memoizedState,V.state=ke,Us(l,x,V,z),_c();var He=l.memoizedState;ee!==We||ke!==He||kl||r!==null&&r.dependencies!==null&&Tu(r.dependencies)?(typeof le=="function"&&($u(l,v,le,x),He=l.memoizedState),(Fe=kl||Kv(l,v,Fe,x,ke,He,be)||r!==null&&r.dependencies!==null&&Tu(r.dependencies))?(Me||typeof V.UNSAFE_componentWillUpdate!="function"&&typeof V.componentWillUpdate!="function"||(typeof V.componentWillUpdate=="function"&&V.componentWillUpdate(x,He,be),typeof V.UNSAFE_componentWillUpdate=="function"&&V.UNSAFE_componentWillUpdate(x,He,be)),typeof V.componentDidUpdate=="function"&&(l.flags|=4),typeof V.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof V.componentDidUpdate!="function"||ee===r.memoizedProps&&ke===r.memoizedState||(l.flags|=4),typeof V.getSnapshotBeforeUpdate!="function"||ee===r.memoizedProps&&ke===r.memoizedState||(l.flags|=1024),l.memoizedProps=x,l.memoizedState=He),V.props=x,V.state=He,V.context=be,x=Fe):(typeof V.componentDidUpdate!="function"||ee===r.memoizedProps&&ke===r.memoizedState||(l.flags|=4),typeof V.getSnapshotBeforeUpdate!="function"||ee===r.memoizedProps&&ke===r.memoizedState||(l.flags|=1024),x=!1)}return V=x,qr(r,l),x=(l.flags&128)!==0,V||x?(V=l.stateNode,v=x&&typeof v.getDerivedStateFromError!="function"?null:V.render(),l.flags|=1,r!==null&&x?(l.child=Ac(l,r.child,null,z),l.child=Ac(l,null,v,z)):po(r,l,v,z),l.memoizedState=V.state,r=l.child):r=Zr(r,l,z),r}function ss(r,l,v,x){return vc(),l.flags|=256,po(r,l,v,x),l.child}var tm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function nm(r){return{baseLanes:r,cachePool:xu()}}function Kr(r,l,v){return r=r!==null?r.childLanes&~v:0,l&&(r|=hr),r}function a0(r,l,v){var x=l.pendingProps,z=!1,V=(l.flags&128)!==0,ee;if((ee=V)||(ee=r!==null&&r.memoizedState===null?!1:(Eo.current&2)!==0),ee&&(z=!0,l.flags&=-129),ee=(l.flags&32)!==0,l.flags&=-33,r===null){if(wn){if(z?Hs(l):rs(),(r=lo)?(r=o1(r,ri),r=r!==null&&r.data!=="&"?r:null,r!==null&&(l.memoizedState={dehydrated:r,treeContext:ts!==null?{id:xr,overflow:ns}:null,retryLane:536870912,hydrationErrors:null},v=Tv(r),v.return=l,l.child=v,yi=l,lo=null)):r=null,r===null)throw Ma(l);return jc(r)?l.lanes=32:l.lanes=536870912,null}var le=x.children;return x=x.fallback,z?(rs(),z=l.mode,le=om({mode:"hidden",children:le},z),x=Ll(x,z,v,null),le.return=l,x.return=l,le.sibling=x,l.child=le,x=l.child,x.memoizedState=nm(v),x.childLanes=Kr(r,ee,v),l.memoizedState=tm,Oc(null,x)):(Hs(l),Mc(l,le))}var be=r.memoizedState;if(be!==null&&(le=be.dehydrated,le!==null)){if(V)l.flags&256?(Hs(l),l.flags&=-257,l=Uu(r,l,v)):l.memoizedState!==null?(rs(),l.child=r.child,l.flags|=128,l=null):(rs(),le=x.fallback,z=l.mode,x=om({mode:"visible",children:x.children},z),le=Ll(le,z,v,null),le.flags|=2,x.return=l,le.return=l,x.sibling=le,l.child=x,Ac(l,r.child,null,v),x=l.child,x.memoizedState=nm(v),x.childLanes=Kr(r,ee,v),l.memoizedState=tm,l=Oc(null,x));else if(Hs(l),jc(le)){if(ee=le.nextSibling&&le.nextSibling.dataset,ee)var Me=ee.dgst;ee=Me,x=Error(a(419)),x.stack="",x.digest=ee,Md({value:x,source:null,stack:null}),l=Uu(r,l,v)}else if(Qo||Ei(r,l,v,!1),ee=(v&r.childLanes)!==0,Qo||ee){if(ee=eo,ee!==null&&(x=Yt(ee,v),x!==0&&x!==be.retryLane))throw be.retryLane=x,Nl(r,x),mr(ee,r,x),lg;Ua(le)||_g(),l=Uu(r,l,v)}else Ua(le)?(l.flags|=192,l.child=r.child,l=null):(r=be.treeContext,lo=pr(le.nextSibling),yi=l,wn=!0,Ms=null,ri=!1,r!==null&&Lh(l,r),l=Mc(l,x.children),l.flags|=4096);return l}return z?(rs(),le=x.fallback,z=l.mode,be=r.child,Me=be.sibling,x=Rl(be,{mode:"hidden",children:x.children}),x.subtreeFlags=be.subtreeFlags&65011712,Me!==null?le=Rl(Me,le):(le=Ll(le,z,v,null),le.flags|=2),le.return=l,x.return=l,x.sibling=le,l.child=x,Oc(null,x),x=l.child,le=r.child.memoizedState,le===null?le=nm(v):(z=le.cachePool,z!==null?(be=Vo._currentValue,z=z.parent!==be?{parent:be,pool:be}:z):z=xu(),le={baseLanes:le.baseLanes|v,cachePool:z}),x.memoizedState=le,x.childLanes=Kr(r,ee,v),l.memoizedState=tm,Oc(r.child,x)):(Hs(l),v=r.child,r=v.sibling,v=Rl(v,{mode:"visible",children:x.children}),v.return=l,v.sibling=null,r!==null&&(ee=l.deletions,ee===null?(l.deletions=[r],l.flags|=16):ee.push(r)),l.child=v,l.memoizedState=null,v)}function Mc(r,l){return l=om({mode:"visible",children:l},r.mode),l.return=r,r.child=l}function om(r,l){return r=Mo(22,r,null,l),r.lanes=0,r}function Uu(r,l,v){return Ac(l,r.child,null,v),r=Mc(l,l.pendingProps.children),r.flags|=2,l.memoizedState=null,r}function Hu(r,l,v){r.lanes|=l;var x=r.alternate;x!==null&&(x.lanes|=l),Up(r.return,l,v)}function ug(r,l,v,x,z,V){var ee=r.memoizedState;ee===null?r.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:x,tail:v,tailMode:z,treeForkCount:V}:(ee.isBackwards=l,ee.rendering=null,ee.renderingStartTime=0,ee.last=x,ee.tail=v,ee.tailMode=z,ee.treeForkCount=V)}function s0(r,l,v){var x=l.pendingProps,z=x.revealOrder,V=x.tail;x=x.children;var ee=Eo.current,le=(ee&2)!==0;if(le?(ee=ee&1|2,l.flags|=128):ee&=1,te(Eo,ee),po(r,l,x,v),x=wn?Po:0,!le&&r!==null&&(r.flags&128)!==0)e:for(r=l.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Hu(r,v,l);else if(r.tag===19)Hu(r,v,l);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===l)break e;for(;r.sibling===null;){if(r.return===null||r.return===l)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(z){case"forwards":for(v=l.child,z=null;v!==null;)r=v.alternate,r!==null&&jd(r)===null&&(z=v),v=v.sibling;v=z,v===null?(z=l.child,l.child=null):(z=v.sibling,v.sibling=null),ug(l,!1,z,v,V,x);break;case"backwards":case"unstable_legacy-backwards":for(v=null,z=l.child,l.child=null;z!==null;){if(r=z.alternate,r!==null&&jd(r)===null){l.child=z;break}r=z.sibling,z.sibling=v,v=z,z=r}ug(l,!0,v,null,V,x);break;case"together":ug(l,!1,null,null,void 0,x);break;default:l.memoizedState=null}return l.child}function Zr(r,l,v){if(r!==null&&(l.dependencies=r.dependencies),ds|=l.lanes,(v&l.childLanes)===0)if(r!==null){if(Ei(r,l,v,!1),(v&l.childLanes)===0)return null}else return null;if(r!==null&&l.child!==r.child)throw Error(a(153));if(l.child!==null){for(r=l.child,v=Rl(r,r.pendingProps),l.child=v,v.return=l;r.sibling!==null;)r=r.sibling,v=v.sibling=Rl(r,r.pendingProps),v.return=l;v.sibling=null}return l.child}function dg(r,l){return(r.lanes&l)!==0?!0:(r=r.dependencies,!!(r!==null&&Tu(r)))}function fg(r,l,v){switch(l.tag){case 3:me(l,l.stateNode.containerInfo),ar(l,Vo,r.memoizedState.cache),vc();break;case 27:case 5:pe(l);break;case 4:me(l,l.stateNode.containerInfo);break;case 10:ar(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,Hd(l),null;break;case 13:var x=l.memoizedState;if(x!==null)return x.dehydrated!==null?(Hs(l),l.flags|=128,null):(v&l.child.childLanes)!==0?a0(r,l,v):(Hs(l),r=Zr(r,l,v),r!==null?r.sibling:null);Hs(l);break;case 19:var z=(r.flags&128)!==0;if(x=(v&l.childLanes)!==0,x||(Ei(r,l,v,!1),x=(v&l.childLanes)!==0),z){if(x)return s0(r,l,v);l.flags|=128}if(z=l.memoizedState,z!==null&&(z.rendering=null,z.tail=null,z.lastEffect=null),te(Eo,Eo.current),x)break;return null;case 22:return l.lanes=0,ww(r,l,v,l.pendingProps);case 24:ar(l,Vo,r.memoizedState.cache)}return Zr(r,l,v)}function l0(r,l,v){if(r!==null)if(r.memoizedProps!==l.pendingProps)Qo=!0;else{if(!dg(r,v)&&(l.flags&128)===0)return Qo=!1,fg(r,l,v);Qo=(r.flags&131072)!==0}else Qo=!1,wn&&(l.flags&1048576)!==0&&xv(l,Po,l.index);switch(l.lanes=0,l.tag){case 16:e:{var x=l.pendingProps;if(r=wc(l.elementType),l.type=r,typeof r=="function")wu(r)?(x=Lc(r,x),l.tag=1,l=r0(null,l,r,x,v)):(l.tag=0,l=cg(null,l,r,x,v));else{if(r!=null){var z=r.$$typeof;if(z===D){l.tag=11,l=n0(null,l,r,x,v);break e}else if(z===$){l.tag=14,l=o0(null,l,r,x,v);break e}}throw l=k(r)||r,Error(a(306,l,""))}}return l;case 0:return cg(r,l,l.type,l.pendingProps,v);case 1:return x=l.type,z=Lc(x,l.pendingProps),r0(r,l,x,z,v);case 3:e:{if(me(l,l.stateNode.containerInfo),r===null)throw Error(a(387));x=l.pendingProps;var V=l.memoizedState;z=V.element,jp(r,l),Us(l,x,null,v);var ee=l.memoizedState;if(x=ee.cache,ar(l,Vo,x),x!==V.cache&&$s(l,[Vo],v,!0),_c(),x=ee.element,V.isDehydrated)if(V={element:x,isDehydrated:!1,cache:ee.cache},l.updateQueue.baseState=V,l.memoizedState=V,l.flags&256){l=ss(r,l,x,v);break e}else if(x!==z){z=Vr(Error(a(424)),l),Md(z),l=ss(r,l,x,v);break e}else{switch(r=l.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(lo=pr(r.firstChild),yi=l,wn=!0,Ms=null,ri=!0,v=Dv(l,null,x,v),l.child=v;v;)v.flags=v.flags&-3|4096,v=v.sibling}else{if(vc(),x===z){l=Zr(r,l,v);break e}po(r,l,x,v)}l=l.child}return l;case 26:return qr(r,l),r===null?(v=pf(l.type,null,l.pendingProps,null))?l.memoizedState=v:wn||(v=l.type,r=l.pendingProps,x=Hc(ie.current).createElement(v),x[Xt]=l,x[Pn]=r,$i(x,v,r),ot(x),l.stateNode=x):l.memoizedState=pf(l.type,r.memoizedProps,l.pendingProps,r.memoizedState),null;case 27:return pe(l),r===null&&wn&&(x=l.stateNode=hf(l.type,l.pendingProps,ie.current),yi=l,ri=!0,z=lo,hs(l.type)?(Sm=z,lo=pr(x.firstChild)):lo=z),po(r,l,l.pendingProps.children,v),qr(r,l),r===null&&(l.flags|=4194304),l.child;case 5:return r===null&&wn&&((z=x=lo)&&(x=WT(x,l.type,l.pendingProps,ri),x!==null?(l.stateNode=x,yi=l,lo=pr(x.firstChild),ri=!1,z=!0):z=!1),z||Ma(l)),pe(l),z=l.type,V=l.pendingProps,ee=r!==null?r.memoizedProps:null,x=V.children,df(z,V)?x=null:ee!==null&&df(z,ee)&&(l.flags|=32),l.memoizedState!==null&&(z=Ph(r,l,PT,null,null,v),xm._currentValue=z),qr(r,l),po(r,l,x,v),l.child;case 6:return r===null&&wn&&((r=v=lo)&&(v=dn(v,l.pendingProps,ri),v!==null?(l.stateNode=v,yi=l,lo=null,r=!0):r=!1),r||Ma(l)),null;case 13:return a0(r,l,v);case 4:return me(l,l.stateNode.containerInfo),x=l.pendingProps,r===null?l.child=Ac(l,null,x,v):po(r,l,x,v),l.child;case 11:return n0(r,l,l.type,l.pendingProps,v);case 7:return po(r,l,l.pendingProps,v),l.child;case 8:return po(r,l,l.pendingProps.children,v),l.child;case 12:return po(r,l,l.pendingProps.children,v),l.child;case 10:return x=l.pendingProps,ar(l,l.type,x.value),po(r,l,x.children,v),l.child;case 9:return z=l.type._context,x=l.pendingProps.children,qt(l),z=Ye(z),x=x(z),l.flags|=1,po(r,l,x,v),l.child;case 14:return o0(r,l,l.type,l.pendingProps,v);case 15:return i0(r,l,l.type,l.pendingProps,v);case 19:return s0(r,l,v);case 31:return Sw(r,l,v);case 22:return ww(r,l,v,l.pendingProps);case 24:return qt(l),x=Ye(Vo),r===null?(z=Wr(),z===null&&(z=eo,V=Mh(),z.pooledCache=V,V.refCount++,V!==null&&(z.pooledCacheLanes|=v),z=V),l.memoizedState={parent:x,cache:z},zh(l),ar(l,Vo,z)):((r.lanes&v)!==0&&(jp(r,l),Us(l,null,null,v),_c()),z=r.memoizedState,V=l.memoizedState,z.parent!==x?(z={parent:x,cache:x},l.memoizedState=z,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=z),ar(l,Vo,x)):(x=V.cache,ar(l,Vo,x),x!==z.cache&&$s(l,[Vo],v,!0))),po(r,l,l.pendingProps.children,v),l.child;case 29:throw l.pendingProps}throw Error(a(156,l.tag))}function Vs(r){r.flags|=4}function c0(r,l,v,x,z){if((l=(r.mode&32)!==0)&&(l=!1),l){if(r.flags|=16777216,(z&335544128)===z)if(r.stateNode.complete)r.flags|=8192;else if(Dw())r.flags|=8192;else throw Sc=Cu,_u}else r.flags&=-16777217}function u0(r,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!Or(l))if(Dw())r.flags|=8192;else throw Sc=Cu,_u}function Vi(r,l){l!==null&&(r.flags|=4),r.flags&16384&&(l=r.tag!==22?Tt():536870912,r.lanes|=l,Lo|=l)}function Wd(r,l){if(!wn)switch(r.tailMode){case"hidden":l=r.tail;for(var v=null;l!==null;)l.alternate!==null&&(v=l),l=l.sibling;v===null?r.tail=null:v.sibling=null;break;case"collapsed":v=r.tail;for(var x=null;v!==null;)v.alternate!==null&&(x=v),v=v.sibling;x===null?l||r.tail===null?r.tail=null:r.tail.sibling=null:x.sibling=null}}function Wt(r){var l=r.alternate!==null&&r.alternate.child===r.child,v=0,x=0;if(l)for(var z=r.child;z!==null;)v|=z.lanes|z.childLanes,x|=z.subtreeFlags&65011712,x|=z.flags&65011712,z.return=r,z=z.sibling;else for(z=r.child;z!==null;)v|=z.lanes|z.childLanes,x|=z.subtreeFlags,x|=z.flags,z.return=r,z=z.sibling;return r.subtreeFlags|=x,r.childLanes=v,l}function Tw(r,l,v){var x=l.pendingProps;switch(Ip(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wt(l),null;case 1:return Wt(l),null;case 3:return v=l.stateNode,x=null,r!==null&&(x=r.memoizedState.cache),l.memoizedState.cache!==x&&(l.flags|=2048),is(Vo),ve(),v.pendingContext&&(v.context=v.pendingContext,v.pendingContext=null),(r===null||r.child===null)&&(Is(l)?Vs(l):r===null||r.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,_v())),Wt(l),null;case 26:var z=l.type,V=l.memoizedState;return r===null?(Vs(l),V!==null?(Wt(l),u0(l,V)):(Wt(l),c0(l,z,null,x,v))):V?V!==r.memoizedState?(Vs(l),Wt(l),u0(l,V)):(Wt(l),l.flags&=-16777217):(r=r.memoizedProps,r!==x&&Vs(l),Wt(l),c0(l,z,r,x,v)),null;case 27:if(ye(l),v=ie.current,z=l.type,r!==null&&l.stateNode!=null)r.memoizedProps!==x&&Vs(l);else{if(!x){if(l.stateNode===null)throw Error(a(166));return Wt(l),null}r=ae.current,Is(l)?Oh(l):(r=hf(z,x,v),l.stateNode=r,Vs(l))}return Wt(l),null;case 5:if(ye(l),z=l.type,r!==null&&l.stateNode!=null)r.memoizedProps!==x&&Vs(l);else{if(!x){if(l.stateNode===null)throw Error(a(166));return Wt(l),null}if(V=ae.current,Is(l))Oh(l);else{var ee=Hc(ie.current);switch(V){case 1:V=ee.createElementNS("http://www.w3.org/2000/svg",z);break;case 2:V=ee.createElementNS("http://www.w3.org/1998/Math/MathML",z);break;default:switch(z){case"svg":V=ee.createElementNS("http://www.w3.org/2000/svg",z);break;case"math":V=ee.createElementNS("http://www.w3.org/1998/Math/MathML",z);break;case"script":V=ee.createElement("div"),V.innerHTML="<script><\/script>",V=V.removeChild(V.firstChild);break;case"select":V=typeof x.is=="string"?ee.createElement("select",{is:x.is}):ee.createElement("select"),x.multiple?V.multiple=!0:x.size&&(V.size=x.size);break;default:V=typeof x.is=="string"?ee.createElement(z,{is:x.is}):ee.createElement(z)}}V[Xt]=l,V[Pn]=x;e:for(ee=l.child;ee!==null;){if(ee.tag===5||ee.tag===6)V.appendChild(ee.stateNode);else if(ee.tag!==4&&ee.tag!==27&&ee.child!==null){ee.child.return=ee,ee=ee.child;continue}if(ee===l)break e;for(;ee.sibling===null;){if(ee.return===null||ee.return===l)break e;ee=ee.return}ee.sibling.return=ee.return,ee=ee.sibling}l.stateNode=V;e:switch($i(V,z,x),z){case"button":case"input":case"select":case"textarea":x=!!x.autoFocus;break e;case"img":x=!0;break e;default:x=!1}x&&Vs(l)}}return Wt(l),c0(l,l.type,r===null?null:r.memoizedProps,l.pendingProps,v),null;case 6:if(r&&l.stateNode!=null)r.memoizedProps!==x&&Vs(l);else{if(typeof x!="string"&&l.stateNode===null)throw Error(a(166));if(r=ie.current,Is(l)){if(r=l.stateNode,v=l.memoizedProps,x=null,z=yi,z!==null)switch(z.tag){case 27:case 5:x=z.memoizedProps}r[Xt]=l,r=!!(r.nodeValue===v||x!==null&&x.suppressHydrationWarning===!0||k0(r.nodeValue,v)),r||Ma(l,!0)}else r=Hc(r).createTextNode(x),r[Xt]=l,l.stateNode=r}return Wt(l),null;case 31:if(v=l.memoizedState,r===null||r.memoizedState!==null){if(x=Is(l),v!==null){if(r===null){if(!x)throw Error(a(318));if(r=l.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(557));r[Xt]=l}else vc(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Wt(l),r=!1}else v=_v(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=v),r=!0;if(!r)return l.flags&256?(lr(l),l):(lr(l),null);if((l.flags&128)!==0)throw Error(a(558))}return Wt(l),null;case 13:if(x=l.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(z=Is(l),x!==null&&x.dehydrated!==null){if(r===null){if(!z)throw Error(a(318));if(z=l.memoizedState,z=z!==null?z.dehydrated:null,!z)throw Error(a(317));z[Xt]=l}else vc(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Wt(l),z=!1}else z=_v(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=z),z=!0;if(!z)return l.flags&256?(lr(l),l):(lr(l),null)}return lr(l),(l.flags&128)!==0?(l.lanes=v,l):(v=x!==null,r=r!==null&&r.memoizedState!==null,v&&(x=l.child,z=null,x.alternate!==null&&x.alternate.memoizedState!==null&&x.alternate.memoizedState.cachePool!==null&&(z=x.alternate.memoizedState.cachePool.pool),V=null,x.memoizedState!==null&&x.memoizedState.cachePool!==null&&(V=x.memoizedState.cachePool.pool),V!==z&&(x.flags|=2048)),v!==r&&v&&(l.child.flags|=8192),Vi(l,l.updateQueue),Wt(l),null);case 4:return ve(),r===null&&uf(l.stateNode.containerInfo),Wt(l),null;case 10:return is(l.type),Wt(l),null;case 19:if(re(Eo),x=l.memoizedState,x===null)return Wt(l),null;if(z=(l.flags&128)!==0,V=x.rendering,V===null)if(z)Wd(x,!1);else{if(uo!==0||r!==null&&(r.flags&128)!==0)for(r=l.child;r!==null;){if(V=jd(r),V!==null){for(l.flags|=128,Wd(x,!1),r=V.updateQueue,l.updateQueue=r,Vi(l,r),l.subtreeFlags=0,r=v,v=l.child;v!==null;)Sv(v,r),v=v.sibling;return te(Eo,Eo.current&1|2),wn&&Da(l,x.treeForkCount),l.child}r=r.sibling}x.tail!==null&&at()>jn&&(l.flags|=128,z=!0,Wd(x,!1),l.lanes=4194304)}else{if(!z)if(r=jd(V),r!==null){if(l.flags|=128,z=!0,r=r.updateQueue,l.updateQueue=r,Vi(l,r),Wd(x,!0),x.tail===null&&x.tailMode==="hidden"&&!V.alternate&&!wn)return Wt(l),null}else 2*at()-x.renderingStartTime>jn&&v!==536870912&&(l.flags|=128,z=!0,Wd(x,!1),l.lanes=4194304);x.isBackwards?(V.sibling=l.child,l.child=V):(r=x.last,r!==null?r.sibling=V:l.child=V,x.last=V)}return x.tail!==null?(r=x.tail,x.rendering=r,x.tail=r.sibling,x.renderingStartTime=at(),r.sibling=null,v=Eo.current,te(Eo,z?v&1|2:v&1),wn&&Da(l,x.treeForkCount),r):(Wt(l),null);case 22:case 23:return lr(l),Ud(),x=l.memoizedState!==null,r!==null?r.memoizedState!==null!==x&&(l.flags|=8192):x&&(l.flags|=8192),x?(v&536870912)!==0&&(l.flags&128)===0&&(Wt(l),l.subtreeFlags&6&&(l.flags|=8192)):Wt(l),v=l.updateQueue,v!==null&&Vi(l,v.retryQueue),v=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(v=r.memoizedState.cachePool.pool),x=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(x=l.memoizedState.cachePool.pool),x!==v&&(l.flags|=2048),r!==null&&re(Qr),null;case 24:return v=null,r!==null&&(v=r.memoizedState.cache),l.memoizedState.cache!==v&&(l.flags|=2048),is(Vo),Wt(l),null;case 25:return null;case 30:return null}throw Error(a(156,l.tag))}function Aw(r,l){switch(Ip(l),l.tag){case 1:return r=l.flags,r&65536?(l.flags=r&-65537|128,l):null;case 3:return is(Vo),ve(),r=l.flags,(r&65536)!==0&&(r&128)===0?(l.flags=r&-65537|128,l):null;case 26:case 27:case 5:return ye(l),null;case 31:if(l.memoizedState!==null){if(lr(l),l.alternate===null)throw Error(a(340));vc()}return r=l.flags,r&65536?(l.flags=r&-65537|128,l):null;case 13:if(lr(l),r=l.memoizedState,r!==null&&r.dehydrated!==null){if(l.alternate===null)throw Error(a(340));vc()}return r=l.flags,r&65536?(l.flags=r&-65537|128,l):null;case 19:return re(Eo),null;case 4:return ve(),null;case 10:return is(l.type),null;case 22:case 23:return lr(l),Ud(),r!==null&&re(Qr),r=l.flags,r&65536?(l.flags=r&-65537|128,l):null;case 24:return is(Vo),null;case 25:return null;default:return null}}function xw(r,l){switch(Ip(l),l.tag){case 3:is(Vo),ve();break;case 26:case 27:case 5:ye(l);break;case 4:ve();break;case 31:l.memoizedState!==null&&lr(l);break;case 13:lr(l);break;case 19:re(Eo);break;case 10:is(l.type);break;case 22:case 23:lr(l),Ud(),r!==null&&re(Qr);break;case 24:is(Vo)}}function Ia(r,l){try{var v=l.updateQueue,x=v!==null?v.lastEffect:null;if(x!==null){var z=x.next;v=z;do{if((v.tag&r)===r){x=void 0;var V=v.create,ee=v.inst;x=V(),ee.destroy=x}v=v.next}while(v!==z)}}catch(le){Wn(l,l.return,le)}}function Jr(r,l,v){try{var x=l.updateQueue,z=x!==null?x.lastEffect:null;if(z!==null){var V=z.next;x=V;do{if((x.tag&r)===r){var ee=x.inst,le=ee.destroy;if(le!==void 0){ee.destroy=void 0,z=l;var be=v,Me=le;try{Me()}catch(Fe){Wn(z,be,Fe)}}}x=x.next}while(x!==V)}}catch(Fe){Wn(l,l.return,Fe)}}function hg(r){var l=r.updateQueue;if(l!==null){var v=r.stateNode;try{Cc(l,v)}catch(x){Wn(r,r.return,x)}}}function kc(r,l,v){v.props=Lc(r.type,r.memoizedProps),v.state=r.memoizedState;try{v.componentWillUnmount()}catch(x){Wn(r,l,x)}}function Gs(r,l){try{var v=r.ref;if(v!==null){switch(r.tag){case 26:case 27:case 5:var x=r.stateNode;break;case 30:x=r.stateNode;break;default:x=r.stateNode}typeof v=="function"?r.refCleanup=v(x):v.current=x}}catch(z){Wn(r,l,z)}}function ls(r,l){var v=r.ref,x=r.refCleanup;if(v!==null)if(typeof x=="function")try{x()}catch(z){Wn(r,l,z)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof v=="function")try{v(null)}catch(z){Wn(r,l,z)}else v.current=null}function d0(r){var l=r.type,v=r.memoizedProps,x=r.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":v.autoFocus&&x.focus();break e;case"img":v.src?x.src=v.src:v.srcSet&&(x.srcset=v.srcSet)}}catch(z){Wn(r,r.return,z)}}function mg(r,l,v){try{var x=r.stateNode;$0(x,r.type,v,l),x[Pn]=l}catch(z){Wn(r,r.return,z)}}function f0(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&hs(r.type)||r.tag===4}function Yd(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||f0(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&hs(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Xd(r,l,v){var x=r.tag;if(x===5||x===6)r=r.stateNode,l?(v.nodeType===9?v.body:v.nodeName==="HTML"?v.ownerDocument.body:v).insertBefore(r,l):(l=v.nodeType===9?v.body:v.nodeName==="HTML"?v.ownerDocument.body:v,l.appendChild(r),v=v._reactRootContainer,v!=null||l.onclick!==null||(l.onclick=Br));else if(x!==4&&(x===27&&hs(r.type)&&(v=r.stateNode,l=null),r=r.child,r!==null))for(Xd(r,l,v),r=r.sibling;r!==null;)Xd(r,l,v),r=r.sibling}function qd(r,l,v){var x=r.tag;if(x===5||x===6)r=r.stateNode,l?v.insertBefore(r,l):v.appendChild(r);else if(x!==4&&(x===27&&hs(r.type)&&(v=r.stateNode),r=r.child,r!==null))for(qd(r,l,v),r=r.sibling;r!==null;)qd(r,l,v),r=r.sibling}function h0(r){var l=r.stateNode,v=r.memoizedProps;try{for(var x=r.type,z=l.attributes;z.length;)l.removeAttributeNode(z[0]);$i(l,x,v),l[Xt]=r,l[Pn]=v}catch(V){Wn(r,r.return,V)}}var jl=!1,Jo=!1,pg=!1,m0=typeof WeakSet=="function"?WeakSet:Set,Ti=null;function Kd(r,l){if(r=r.containerInfo,Ig=li,r=pc(r),Ah(r)){if("selectionStart"in r)var v={start:r.selectionStart,end:r.selectionEnd};else e:{v=(v=r.ownerDocument)&&v.defaultView||window;var x=v.getSelection&&v.getSelection();if(x&&x.rangeCount!==0){v=x.anchorNode;var z=x.anchorOffset,V=x.focusNode;x=x.focusOffset;try{v.nodeType,V.nodeType}catch{v=null;break e}var ee=0,le=-1,be=-1,Me=0,Fe=0,We=r,ke=null;t:for(;;){for(var He;We!==v||z!==0&&We.nodeType!==3||(le=ee+z),We!==V||x!==0&&We.nodeType!==3||(be=ee+x),We.nodeType===3&&(ee+=We.nodeValue.length),(He=We.firstChild)!==null;)ke=We,We=He;for(;;){if(We===r)break t;if(ke===v&&++Me===z&&(le=ee),ke===V&&++Fe===x&&(be=ee),(He=We.nextSibling)!==null)break;We=ke,ke=We.parentNode}We=He}v=le===-1||be===-1?null:{start:le,end:be}}else v=null}v=v||{start:0,end:0}}else v=null;for($g={focusedElem:r,selectionRange:v},li=!1,Ti=l;Ti!==null;)if(l=Ti,r=l.child,(l.subtreeFlags&1028)!==0&&r!==null)r.return=l,Ti=r;else for(;Ti!==null;){switch(l=Ti,V=l.alternate,r=l.flags,l.tag){case 0:if((r&4)!==0&&(r=l.updateQueue,r=r!==null?r.events:null,r!==null))for(v=0;v<r.length;v++)z=r[v],z.ref.impl=z.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&V!==null){r=void 0,v=l,z=V.memoizedProps,V=V.memoizedState,x=v.stateNode;try{var wt=Lc(v.type,z);r=x.getSnapshotBeforeUpdate(wt,V),x.__reactInternalSnapshotBeforeUpdate=r}catch(zt){Wn(v,v.return,zt)}}break;case 3:if((r&1024)!==0){if(r=l.stateNode.containerInfo,v=r.nodeType,v===9)wm(r);else if(v===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":wm(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(a(163))}if(r=l.sibling,r!==null){r.return=l.return,Ti=r;break}Ti=l.return}}function im(r,l,v){var x=v.flags;switch(v.tag){case 0:case 11:case 15:zl(r,v),x&4&&Ia(5,v);break;case 1:if(zl(r,v),x&4)if(r=v.stateNode,l===null)try{r.componentDidMount()}catch(ee){Wn(v,v.return,ee)}else{var z=Lc(v.type,l.memoizedProps);l=l.memoizedState;try{r.componentDidUpdate(z,l,r.__reactInternalSnapshotBeforeUpdate)}catch(ee){Wn(v,v.return,ee)}}x&64&&hg(v),x&512&&Gs(v,v.return);break;case 3:if(zl(r,v),x&64&&(r=v.updateQueue,r!==null)){if(l=null,v.child!==null)switch(v.child.tag){case 27:case 5:l=v.child.stateNode;break;case 1:l=v.child.stateNode}try{Cc(r,l)}catch(ee){Wn(v,v.return,ee)}}break;case 27:l===null&&x&4&&h0(v);case 26:case 5:zl(r,v),l===null&&x&4&&d0(v),x&512&&Gs(v,v.return);break;case 12:zl(r,v);break;case 31:zl(r,v),x&4&&_w(r,v);break;case 13:zl(r,v),x&4&&b0(r,v),x&64&&(r=v.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(v=ea.bind(null,v),ff(r,v))));break;case 22:if(x=v.memoizedState!==null||jl,!x){l=l!==null&&l.memoizedState!==null||Jo,z=jl;var V=Jo;jl=x,(Jo=l)&&!V?cs(r,v,(v.subtreeFlags&8772)!==0):zl(r,v),jl=z,Jo=V}break;case 30:break;default:zl(r,v)}}function p0(r){var l=r.alternate;l!==null&&(r.alternate=null,p0(l)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(l=r.stateNode,l!==null&&Ke(l)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var co=null,dr=!1;function Qs(r,l,v){for(v=v.child;v!==null;)g0(r,l,v),v=v.sibling}function g0(r,l,v){if(_t&&typeof _t.onCommitFiberUnmount=="function")try{_t.onCommitFiberUnmount(Lt,v)}catch{}switch(v.tag){case 26:Jo||ls(v,l),Qs(r,l,v),v.memoizedState?v.memoizedState.count--:v.stateNode&&(v=v.stateNode,v.parentNode.removeChild(v));break;case 27:Jo||ls(v,l);var x=co,z=dr;hs(v.type)&&(co=v.stateNode,dr=!1),Qs(r,l,v),Qu(v.stateNode),co=x,dr=z;break;case 5:Jo||ls(v,l);case 6:if(x=co,z=dr,co=null,Qs(r,l,v),co=x,dr=z,co!==null)if(dr)try{(co.nodeType===9?co.body:co.nodeName==="HTML"?co.ownerDocument.body:co).removeChild(v.stateNode)}catch(V){Wn(v,l,V)}else try{co.removeChild(v.stateNode)}catch(V){Wn(v,l,V)}break;case 18:co!==null&&(dr?(r=co,z0(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,v.stateNode),Tf(r)):z0(co,v.stateNode));break;case 4:x=co,z=dr,co=v.stateNode.containerInfo,dr=!0,Qs(r,l,v),co=x,dr=z;break;case 0:case 11:case 14:case 15:Jr(2,v,l),Jo||Jr(4,v,l),Qs(r,l,v);break;case 1:Jo||(ls(v,l),x=v.stateNode,typeof x.componentWillUnmount=="function"&&kc(v,l,x)),Qs(r,l,v);break;case 21:Qs(r,l,v);break;case 22:Jo=(x=Jo)||v.memoizedState!==null,Qs(r,l,v),Jo=x;break;default:Qs(r,l,v)}}function _w(r,l){if(l.memoizedState===null&&(r=l.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{Tf(r)}catch(v){Wn(l,l.return,v)}}}function b0(r,l){if(l.memoizedState===null&&(r=l.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Tf(r)}catch(v){Wn(l,l.return,v)}}function rm(r){switch(r.tag){case 31:case 13:case 19:var l=r.stateNode;return l===null&&(l=r.stateNode=new m0),l;case 22:return r=r.stateNode,l=r._retryCache,l===null&&(l=r._retryCache=new m0),l;default:throw Error(a(435,r.tag))}}function am(r,l){var v=rm(r);l.forEach(function(x){if(!v.has(x)){v.add(x);var z=Ww.bind(null,r,x);x.then(z,z)}})}function fr(r,l){var v=l.deletions;if(v!==null)for(var x=0;x<v.length;x++){var z=v[x],V=r,ee=l,le=ee;e:for(;le!==null;){switch(le.tag){case 27:if(hs(le.type)){co=le.stateNode,dr=!1;break e}break;case 5:co=le.stateNode,dr=!1;break e;case 3:case 4:co=le.stateNode.containerInfo,dr=!0;break e}le=le.return}if(co===null)throw Error(a(160));g0(V,ee,z),co=null,dr=!1,V=z.alternate,V!==null&&(V.return=null),z.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)gg(l,r),l=l.sibling}var ln=null;function gg(r,l){var v=r.alternate,x=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:fr(l,r),_r(r),x&4&&(Jr(3,r,r.return),Ia(3,r),Jr(5,r,r.return));break;case 1:fr(l,r),_r(r),x&512&&(Jo||v===null||ls(v,v.return)),x&64&&jl&&(r=r.updateQueue,r!==null&&(x=r.callbacks,x!==null&&(v=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=v===null?x:v.concat(x))));break;case 26:var z=ln;if(fr(l,r),_r(r),x&512&&(Jo||v===null||ls(v,v.return)),x&4){var V=v!==null?v.memoizedState:null;if(x=r.memoizedState,v===null)if(x===null)if(r.stateNode===null){e:{x=r.type,v=r.memoizedProps,z=z.ownerDocument||z;t:switch(x){case"title":V=z.getElementsByTagName("title")[0],(!V||V[Ee]||V[Xt]||V.namespaceURI==="http://www.w3.org/2000/svg"||V.hasAttribute("itemprop"))&&(V=z.createElement(x),z.head.insertBefore(V,z.querySelector("head > title"))),$i(V,x,v),V[Xt]=r,ot(V),x=V;break e;case"link":var ee=V0("link","href",z).get(x+(v.href||""));if(ee){for(var le=0;le<ee.length;le++)if(V=ee[le],V.getAttribute("href")===(v.href==null||v.href===""?null:v.href)&&V.getAttribute("rel")===(v.rel==null?null:v.rel)&&V.getAttribute("title")===(v.title==null?null:v.title)&&V.getAttribute("crossorigin")===(v.crossOrigin==null?null:v.crossOrigin)){ee.splice(le,1);break t}}V=z.createElement(x),$i(V,x,v),z.head.appendChild(V);break;case"meta":if(ee=V0("meta","content",z).get(x+(v.content||""))){for(le=0;le<ee.length;le++)if(V=ee[le],V.getAttribute("content")===(v.content==null?null:""+v.content)&&V.getAttribute("name")===(v.name==null?null:v.name)&&V.getAttribute("property")===(v.property==null?null:v.property)&&V.getAttribute("http-equiv")===(v.httpEquiv==null?null:v.httpEquiv)&&V.getAttribute("charset")===(v.charSet==null?null:v.charSet)){ee.splice(le,1);break t}}V=z.createElement(x),$i(V,x,v),z.head.appendChild(V);break;default:throw Error(a(468,x))}V[Xt]=r,ot(V),x=V}r.stateNode=x}else Bg(z,r.type,r.stateNode);else r.stateNode=P0(z,x,r.memoizedProps);else V!==x?(V===null?v.stateNode!==null&&(v=v.stateNode,v.parentNode.removeChild(v)):V.count--,x===null?Bg(z,r.type,r.stateNode):P0(z,x,r.memoizedProps)):x===null&&r.stateNode!==null&&mg(r,r.memoizedProps,v.memoizedProps)}break;case 27:fr(l,r),_r(r),x&512&&(Jo||v===null||ls(v,v.return)),v!==null&&x&4&&mg(r,r.memoizedProps,v.memoizedProps);break;case 5:if(fr(l,r),_r(r),x&512&&(Jo||v===null||ls(v,v.return)),r.flags&32){z=r.stateNode;try{Ii(z,"")}catch(wt){Wn(r,r.return,wt)}}x&4&&r.stateNode!=null&&(z=r.memoizedProps,mg(r,z,v!==null?v.memoizedProps:z)),x&1024&&(pg=!0);break;case 6:if(fr(l,r),_r(r),x&4){if(r.stateNode===null)throw Error(a(162));x=r.memoizedProps,v=r.stateNode;try{v.nodeValue=x}catch(wt){Wn(r,r.return,wt)}}break;case 3:if(vf=null,z=ln,ln=Gi(l.containerInfo),fr(l,r),ln=z,_r(r),x&4&&v!==null&&v.memoizedState.isDehydrated)try{Tf(l.containerInfo)}catch(wt){Wn(r,r.return,wt)}pg&&(pg=!1,v0(r));break;case 4:x=ln,ln=Gi(r.stateNode.containerInfo),fr(l,r),_r(r),ln=x;break;case 12:fr(l,r),_r(r);break;case 31:fr(l,r),_r(r),x&4&&(x=r.updateQueue,x!==null&&(r.updateQueue=null,am(r,x)));break;case 13:fr(l,r),_r(r),r.child.flags&8192&&r.memoizedState!==null!=(v!==null&&v.memoizedState!==null)&&(fs=at()),x&4&&(x=r.updateQueue,x!==null&&(r.updateQueue=null,am(r,x)));break;case 22:z=r.memoizedState!==null;var be=v!==null&&v.memoizedState!==null,Me=jl,Fe=Jo;if(jl=Me||z,Jo=Fe||be,fr(l,r),Jo=Fe,jl=Me,_r(r),x&8192)e:for(l=r.stateNode,l._visibility=z?l._visibility&-2:l._visibility|1,z&&(v===null||be||jl||Jo||ju(r)),v=null,l=r;;){if(l.tag===5||l.tag===26){if(v===null){be=v=l;try{if(V=be.stateNode,z)ee=V.style,typeof ee.setProperty=="function"?ee.setProperty("display","none","important"):ee.display="none";else{le=be.stateNode;var We=be.memoizedProps.style,ke=We!=null&&We.hasOwnProperty("display")?We.display:null;le.style.display=ke==null||typeof ke=="boolean"?"":(""+ke).trim()}}catch(wt){Wn(be,be.return,wt)}}}else if(l.tag===6){if(v===null){be=l;try{be.stateNode.nodeValue=z?"":be.memoizedProps}catch(wt){Wn(be,be.return,wt)}}}else if(l.tag===18){if(v===null){be=l;try{var He=be.stateNode;z?Wo(He,!0):Wo(be.stateNode,!1)}catch(wt){Wn(be,be.return,wt)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===r)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===r)break e;for(;l.sibling===null;){if(l.return===null||l.return===r)break e;v===l&&(v=null),l=l.return}v===l&&(v=null),l.sibling.return=l.return,l=l.sibling}x&4&&(x=r.updateQueue,x!==null&&(v=x.retryQueue,v!==null&&(x.retryQueue=null,am(r,v))));break;case 19:fr(l,r),_r(r),x&4&&(x=r.updateQueue,x!==null&&(r.updateQueue=null,am(r,x)));break;case 30:break;case 21:break;default:fr(l,r),_r(r)}}function _r(r){var l=r.flags;if(l&2){try{for(var v,x=r.return;x!==null;){if(f0(x)){v=x;break}x=x.return}if(v==null)throw Error(a(160));switch(v.tag){case 27:var z=v.stateNode,V=Yd(r);qd(r,V,z);break;case 5:var ee=v.stateNode;v.flags&32&&(Ii(ee,""),v.flags&=-33);var le=Yd(r);qd(r,le,ee);break;case 3:case 4:var be=v.stateNode.containerInfo,Me=Yd(r);Xd(r,Me,be);break;default:throw Error(a(161))}}catch(Fe){Wn(r,r.return,Fe)}r.flags&=-3}l&4096&&(r.flags&=-4097)}function v0(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var l=r;v0(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),r=r.sibling}}function zl(r,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)im(r,l.alternate,l),l=l.sibling}function ju(r){for(r=r.child;r!==null;){var l=r;switch(l.tag){case 0:case 11:case 14:case 15:Jr(4,l,l.return),ju(l);break;case 1:ls(l,l.return);var v=l.stateNode;typeof v.componentWillUnmount=="function"&&kc(l,l.return,v),ju(l);break;case 27:Qu(l.stateNode);case 26:case 5:ls(l,l.return),ju(l);break;case 22:l.memoizedState===null&&ju(l);break;case 30:ju(l);break;default:ju(l)}r=r.sibling}}function cs(r,l,v){for(v=v&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var x=l.alternate,z=r,V=l,ee=V.flags;switch(V.tag){case 0:case 11:case 15:cs(z,V,v),Ia(4,V);break;case 1:if(cs(z,V,v),x=V,z=x.stateNode,typeof z.componentDidMount=="function")try{z.componentDidMount()}catch(Me){Wn(x,x.return,Me)}if(x=V,z=x.updateQueue,z!==null){var le=x.stateNode;try{var be=z.shared.hiddenCallbacks;if(be!==null)for(z.shared.hiddenCallbacks=null,z=0;z<be.length;z++)Bp(be[z],le)}catch(Me){Wn(x,x.return,Me)}}v&&ee&64&&hg(V),Gs(V,V.return);break;case 27:h0(V);case 26:case 5:cs(z,V,v),v&&x===null&&ee&4&&d0(V),Gs(V,V.return);break;case 12:cs(z,V,v);break;case 31:cs(z,V,v),v&&ee&4&&_w(z,V);break;case 13:cs(z,V,v),v&&ee&4&&b0(z,V);break;case 22:V.memoizedState===null&&cs(z,V,v),Gs(V,V.return);break;case 30:break;default:cs(z,V,v)}l=l.sibling}}function bg(r,l){var v=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(v=r.memoizedState.cachePool.pool),r=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(r=l.memoizedState.cachePool.pool),r!==v&&(r!=null&&r.refCount++,v!=null&&kh(v))}function vg(r,l){r=null,l.alternate!==null&&(r=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==r&&(l.refCount++,r!=null&&kh(r))}function $a(r,l,v,x){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)Zd(r,l,v,x),l=l.sibling}function Zd(r,l,v,x){var z=l.flags;switch(l.tag){case 0:case 11:case 15:$a(r,l,v,x),z&2048&&Ia(9,l);break;case 1:$a(r,l,v,x);break;case 3:$a(r,l,v,x),z&2048&&(r=null,l.alternate!==null&&(r=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==r&&(l.refCount++,r!=null&&kh(r)));break;case 12:if(z&2048){$a(r,l,v,x),r=l.stateNode;try{var V=l.memoizedProps,ee=V.id,le=V.onPostCommit;typeof le=="function"&&le(ee,l.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(be){Wn(l,l.return,be)}}else $a(r,l,v,x);break;case 31:$a(r,l,v,x);break;case 13:$a(r,l,v,x);break;case 23:break;case 22:V=l.stateNode,ee=l.alternate,l.memoizedState!==null?V._visibility&2?$a(r,l,v,x):sm(r,l):V._visibility&2?$a(r,l,v,x):(V._visibility|=2,Jd(r,l,v,x,(l.subtreeFlags&10256)!==0||!1)),z&2048&&bg(ee,l);break;case 24:$a(r,l,v,x),z&2048&&vg(l.alternate,l);break;default:$a(r,l,v,x)}}function Jd(r,l,v,x,z){for(z=z&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var V=r,ee=l,le=v,be=x,Me=ee.flags;switch(ee.tag){case 0:case 11:case 15:Jd(V,ee,le,be,z),Ia(8,ee);break;case 23:break;case 22:var Fe=ee.stateNode;ee.memoizedState!==null?Fe._visibility&2?Jd(V,ee,le,be,z):sm(V,ee):(Fe._visibility|=2,Jd(V,ee,le,be,z)),z&&Me&2048&&bg(ee.alternate,ee);break;case 24:Jd(V,ee,le,be,z),z&&Me&2048&&vg(ee.alternate,ee);break;default:Jd(V,ee,le,be,z)}l=l.sibling}}function sm(r,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var v=r,x=l,z=x.flags;switch(x.tag){case 22:sm(v,x),z&2048&&bg(x.alternate,x);break;case 24:sm(v,x),z&2048&&vg(x.alternate,x);break;default:sm(v,x)}l=l.sibling}}var Cr=8192;function Ws(r,l,v){if(r.subtreeFlags&Cr)for(r=r.child;r!==null;)Cw(r,l,v),r=r.sibling}function Cw(r,l,v){switch(r.tag){case 26:Ws(r,l,v),r.flags&Cr&&r.memoizedState!==null&&Zs(v,ln,r.memoizedState,r.memoizedProps);break;case 5:Ws(r,l,v);break;case 3:case 4:var x=ln;ln=Gi(r.stateNode.containerInfo),Ws(r,l,v),ln=x;break;case 22:r.memoizedState===null&&(x=r.alternate,x!==null&&x.memoizedState!==null?(x=Cr,Cr=16777216,Ws(r,l,v),Cr=x):Ws(r,l,v));break;default:Ws(r,l,v)}}function yg(r){var l=r.alternate;if(l!==null&&(r=l.child,r!==null)){l.child=null;do l=r.sibling,r.sibling=null,r=l;while(r!==null)}}function ef(r){var l=r.deletions;if((r.flags&16)!==0){if(l!==null)for(var v=0;v<l.length;v++){var x=l[v];Ti=x,Eg(x,r)}yg(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)y0(r),r=r.sibling}function y0(r){switch(r.tag){case 0:case 11:case 15:ef(r),r.flags&2048&&Jr(9,r,r.return);break;case 3:ef(r);break;case 12:ef(r);break;case 22:var l=r.stateNode;r.memoizedState!==null&&l._visibility&2&&(r.return===null||r.return.tag!==13)?(l._visibility&=-3,lm(r)):ef(r);break;default:ef(r)}}function lm(r){var l=r.deletions;if((r.flags&16)!==0){if(l!==null)for(var v=0;v<l.length;v++){var x=l[v];Ti=x,Eg(x,r)}yg(r)}for(r=r.child;r!==null;){switch(l=r,l.tag){case 0:case 11:case 15:Jr(8,l,l.return),lm(l);break;case 22:v=l.stateNode,v._visibility&2&&(v._visibility&=-3,lm(l));break;default:lm(l)}r=r.sibling}}function Eg(r,l){for(;Ti!==null;){var v=Ti;switch(v.tag){case 0:case 11:case 15:Jr(8,v,l);break;case 23:case 22:if(v.memoizedState!==null&&v.memoizedState.cachePool!==null){var x=v.memoizedState.cachePool.pool;x!=null&&x.refCount++}break;case 24:kh(v.memoizedState.cache)}if(x=v.child,x!==null)x.return=v,Ti=x;else e:for(v=r;Ti!==null;){x=Ti;var z=x.sibling,V=x.return;if(p0(x),x===v){Ti=null;break e}if(z!==null){z.return=V,Ti=z;break e}Ti=V}}}var Nw={getCacheForType:function(r){var l=Ye(Vo),v=l.data.get(r);return v===void 0&&(v=r(),l.data.set(r,v)),v},cacheSignal:function(){return Ye(Vo).controller.signal}},E0=typeof WeakMap=="function"?WeakMap:Map,In=0,eo=null,Sn=null,pn=0,Qn=0,Pt=null,Ys=!1,Ic=!1,wg=!1,us=0,uo=0,ds=0,zu=0,Sg=0,hr=0,Lo=0,cm=null,Oo=null,Tg=!1,fs=0,w0=0,jn=1/0,tf=null,wo=null,si=0,Bl=null,$c=null,Xs=0,Nr=0,Ag=null,xg=null,nf=0,um=null;function Rr(){return(In&2)!==0&&pn!==0?pn&-pn:I.T!==null?Lg():Rt()}function Rw(){if(hr===0)if((pn&536870912)===0||wn){var r=yt;yt<<=1,(yt&3932160)===0&&(yt=262144),hr=r}else hr=536870912;return r=sr.current,r!==null&&(r.flags|=32),hr}function mr(r,l,v){(r===eo&&(Qn===2||Qn===9)||r.cancelPendingCommit!==null)&&(qs(r,0),Fl(r,pn,hr,!1)),en(r,v),((In&2)===0||r!==eo)&&(r===eo&&((In&2)===0&&(zu|=v),uo===4&&Fl(r,pn,hr,!1)),Ks(r))}function Lw(r,l,v){if((In&6)!==0)throw Error(a(327));var x=!v&&(l&127)===0&&(l&r.expiredLanes)===0||Ze(r,l),z=x?Iw(r,l):Cg(r,l,!0),V=x;do{if(z===0){Ic&&!x&&Fl(r,l,0,!1);break}else{if(v=r.current.alternate,V&&!Ow(v)){z=Cg(r,l,!1),V=!1;continue}if(z===2){if(V=l,r.errorRecoveryDisabledLanes&V)var ee=0;else ee=r.pendingLanes&-536870913,ee=ee!==0?ee:ee&536870912?536870912:0;if(ee!==0){l=ee;e:{var le=r;z=cm;var be=le.current.memoizedState.isDehydrated;if(be&&(qs(le,ee).flags|=256),ee=Cg(le,ee,!1),ee!==2){if(wg&&!be){le.errorRecoveryDisabledLanes|=V,zu|=V,z=4;break e}V=Oo,Oo=z,V!==null&&(Oo===null?Oo=V:Oo.push.apply(Oo,V))}z=ee}if(V=!1,z!==2)continue}}if(z===1){qs(r,0),Fl(r,l,0,!0);break}e:{switch(x=r,V=z,V){case 0:case 1:throw Error(a(345));case 4:if((l&4194048)!==l)break;case 6:Fl(x,l,hr,!Ys);break e;case 2:Oo=null;break;case 3:case 5:break;default:throw Error(a(329))}if((l&62914560)===l&&(z=fs+300-at(),10<z)){if(Fl(x,l,hr,!Ys),Ce(x,0,!0)!==0)break e;Xs=l,x.timeoutHandle=Em(dm.bind(null,x,v,Oo,tf,Tg,l,hr,zu,Lo,Ys,V,"Throttled",-0,0),z);break e}dm(x,v,Oo,tf,Tg,l,hr,zu,Lo,Ys,V,null,-0,0)}}break}while(!0);Ks(r)}function dm(r,l,v,x,z,V,ee,le,be,Me,Fe,We,ke,He){if(r.timeoutHandle=-1,We=l.subtreeFlags,We&8192||(We&16785408)===16785408){We={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Br},Cw(l,V,We);var wt=(V&62914560)===V?fs-at():(V&4194048)===V?w0-at():0;if(wt=Q0(We,wt),wt!==null){Xs=V,r.cancelPendingCommit=wt(jw.bind(null,r,l,V,v,x,z,ee,le,be,Fe,We,null,ke,He)),Fl(r,V,ee,!Me);return}}jw(r,l,V,v,x,z,ee,le,be)}function Ow(r){for(var l=r;;){var v=l.tag;if((v===0||v===11||v===15)&&l.flags&16384&&(v=l.updateQueue,v!==null&&(v=v.stores,v!==null)))for(var x=0;x<v.length;x++){var z=v[x],V=z.getSnapshot;z=z.value;try{if(!Pi(V(),z))return!1}catch{return!1}}if(v=l.child,l.subtreeFlags&16384&&v!==null)v.return=l,l=v;else{if(l===r)break;for(;l.sibling===null;){if(l.return===null||l.return===r)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function Fl(r,l,v,x){l&=~Sg,l&=~zu,r.suspendedLanes|=l,r.pingedLanes&=~l,x&&(r.warmLanes|=l),x=r.expirationTimes;for(var z=l;0<z;){var V=31-xe(z),ee=1<<V;x[V]=-1,z&=~ee}v!==0&&sn(r,v,l)}function of(){return(In&6)===0?(Vl(0),!1):!0}function S0(){if(Sn!==null){if(Qn===0)var r=Sn.return;else r=Sn,os=Ol=null,Vh(r),Tc=null,Nu=0,r=Sn;for(;r!==null;)xw(r.alternate,r),r=r.return;Sn=null}}function qs(r,l){var v=r.timeoutHandle;v!==-1&&(r.timeoutHandle=-1,t1(v)),v=r.cancelPendingCommit,v!==null&&(r.cancelPendingCommit=null,v()),Xs=0,S0(),eo=r,Sn=v=Rl(r.current,null),pn=l,Qn=0,Pt=null,Ys=!1,Ic=Ze(r,l),wg=!1,Lo=hr=Sg=zu=ds=uo=0,Oo=cm=null,Tg=!1,(l&8)!==0&&(l|=l&32);var x=r.entangledLanes;if(x!==0)for(r=r.entanglements,x&=l;0<x;){var z=31-xe(x),V=1<<z;l|=r[z],x&=~V}return us=l,Fr(),v}function rf(r,l){rn=null,I.H=Zh,l===Ec||l===Id?(l=Ov(),Qn=3):l===_u?(l=Ov(),Qn=4):Qn=l===lg?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,Pt=l,Sn===null&&(uo=1,Qd(r,Vr(l,r.current)))}function Dw(){var r=sr.current;return r===null?!0:(pn&4194048)===pn?Xr===null:(pn&62914560)===pn||(pn&536870912)!==0?r===Xr:!1}function Mw(){var r=I.H;return I.H=Zh,r===null?Zh:r}function kw(){var r=I.A;return I.A=Nw,r}function _g(){uo=4,Ys||(pn&4194048)!==pn&&sr.current!==null||(Ic=!0),(ds&134217727)===0&&(zu&134217727)===0||eo===null||Fl(eo,pn,hr,!1)}function Cg(r,l,v){var x=In;In|=2;var z=Mw(),V=kw();(eo!==r||pn!==l)&&(tf=null,qs(r,l)),l=!1;var ee=uo;e:do try{if(Qn!==0&&Sn!==null){var le=Sn,be=Pt;switch(Qn){case 8:S0(),ee=6;break e;case 3:case 2:case 9:case 6:sr.current===null&&(l=!0);var Me=Qn;if(Qn=0,Pt=null,Bu(r,le,be,Me),v&&Ic){ee=0;break e}break;default:Me=Qn,Qn=0,Pt=null,Bu(r,le,be,Me)}}GT(),ee=uo;break}catch(Fe){rf(r,Fe)}while(!0);return l&&r.shellSuspendCounter++,os=Ol=null,In=x,I.H=z,I.A=V,Sn===null&&(eo=null,pn=0,Fr()),ee}function GT(){for(;Sn!==null;)$w(Sn)}function Iw(r,l){var v=In;In|=2;var x=Mw(),z=kw();eo!==r||pn!==l?(tf=null,jn=at()+500,qs(r,l)):Ic=Ze(r,l);e:do try{if(Qn!==0&&Sn!==null){l=Sn;var V=Pt;t:switch(Qn){case 1:Qn=0,Pt=null,Bu(r,l,V,1);break;case 2:case 9:if(Rv(V)){Qn=0,Pt=null,Uw(l);break}l=function(){Qn!==2&&Qn!==9||eo!==r||(Qn=7),Ks(r)},V.then(l,l);break e;case 3:Qn=7;break e;case 4:Qn=5;break e;case 7:Rv(V)?(Qn=0,Pt=null,Uw(l)):(Qn=0,Pt=null,Bu(r,l,V,7));break;case 5:var ee=null;switch(Sn.tag){case 26:ee=Sn.memoizedState;case 5:case 27:var le=Sn;if(ee?Or(ee):le.stateNode.complete){Qn=0,Pt=null;var be=le.sibling;if(be!==null)Sn=be;else{var Me=le.return;Me!==null?(Sn=Me,fm(Me)):Sn=null}break t}}Qn=0,Pt=null,Bu(r,l,V,5);break;case 6:Qn=0,Pt=null,Bu(r,l,V,6);break;case 8:S0(),uo=6;break e;default:throw Error(a(462))}}Uc();break}catch(Fe){rf(r,Fe)}while(!0);return os=Ol=null,I.H=x,I.A=z,In=v,Sn!==null?0:(eo=null,pn=0,Fr(),uo)}function Uc(){for(;Sn!==null&&!ct();)$w(Sn)}function $w(r){var l=l0(r.alternate,r,us);r.memoizedProps=r.pendingProps,l===null?fm(r):Sn=l}function Uw(r){var l=r,v=l.alternate;switch(l.tag){case 15:case 0:l=Dc(v,l,l.pendingProps,l.type,void 0,pn);break;case 11:l=Dc(v,l,l.pendingProps,l.type.render,l.ref,pn);break;case 5:Vh(l);default:xw(v,l),l=Sn=Sv(l,us),l=l0(v,l,us)}r.memoizedProps=r.pendingProps,l===null?fm(r):Sn=l}function Bu(r,l,v,x){os=Ol=null,Vh(l),Tc=null,Nu=0;var z=l.return;try{if(VT(r,z,l,v,pn)){uo=1,Qd(r,Vr(v,r.current)),Sn=null;return}}catch(V){if(z!==null)throw Sn=z,V;uo=1,Qd(r,Vr(v,r.current)),Sn=null;return}l.flags&32768?(wn||x===1?r=!0:Ic||(pn&536870912)!==0?r=!1:(Ys=r=!0,(x===2||x===9||x===3||x===6)&&(x=sr.current,x!==null&&x.tag===13&&(x.flags|=16384))),Hw(l,r)):fm(l)}function fm(r){var l=r;do{if((l.flags&32768)!==0){Hw(l,Ys);return}r=l.return;var v=Tw(l.alternate,l,us);if(v!==null){Sn=v;return}if(l=l.sibling,l!==null){Sn=l;return}Sn=l=r}while(l!==null);uo===0&&(uo=5)}function Hw(r,l){do{var v=Aw(r.alternate,r);if(v!==null){v.flags&=32767,Sn=v;return}if(v=r.return,v!==null&&(v.flags|=32768,v.subtreeFlags=0,v.deletions=null),!l&&(r=r.sibling,r!==null)){Sn=r;return}Sn=r=v}while(r!==null);uo=6,Sn=null}function jw(r,l,v,x,z,V,ee,le,be){r.cancelPendingCommit=null;do af();while(si!==0);if((In&6)!==0)throw Error(a(327));if(l!==null){if(l===r.current)throw Error(a(177));if(V=l.lanes|l.childLanes,V|=La,Gt(r,v,V,ee,le,be),r===eo&&(Sn=eo=null,pn=0),$c=l,Bl=r,Xs=v,Nr=V,Ag=z,xg=x,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,Yw(rt,function(){return Vw(),null})):(r.callbackNode=null,r.callbackPriority=0),x=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||x){x=I.T,I.T=null,z=W.p,W.p=2,ee=In,In|=4;try{Kd(r,l,v)}finally{In=ee,W.p=z,I.T=x}}si=1,zw(),Bw(),Fw()}}function zw(){if(si===1){si=0;var r=Bl,l=$c,v=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||v){v=I.T,I.T=null;var x=W.p;W.p=2;var z=In;In|=4;try{gg(l,r);var V=$g,ee=pc(r.containerInfo),le=V.focusedElem,be=V.selectionRange;if(ee!==le&&le&&le.ownerDocument&&vu(le.ownerDocument.documentElement,le)){if(be!==null&&Ah(le)){var Me=be.start,Fe=be.end;if(Fe===void 0&&(Fe=Me),"selectionStart"in le)le.selectionStart=Me,le.selectionEnd=Math.min(Fe,le.value.length);else{var We=le.ownerDocument||document,ke=We&&We.defaultView||window;if(ke.getSelection){var He=ke.getSelection(),wt=le.textContent.length,zt=Math.min(be.start,wt),no=be.end===void 0?zt:Math.min(be.end,wt);!He.extend&&zt>no&&(ee=no,no=zt,zt=ee);var Ne=Ev(le,zt),Te=Ev(le,no);if(Ne&&Te&&(He.rangeCount!==1||He.anchorNode!==Ne.node||He.anchorOffset!==Ne.offset||He.focusNode!==Te.node||He.focusOffset!==Te.offset)){var Oe=We.createRange();Oe.setStart(Ne.node,Ne.offset),He.removeAllRanges(),zt>no?(He.addRange(Oe),He.extend(Te.node,Te.offset)):(Oe.setEnd(Te.node,Te.offset),He.addRange(Oe))}}}}for(We=[],He=le;He=He.parentNode;)He.nodeType===1&&We.push({element:He,left:He.scrollLeft,top:He.scrollTop});for(typeof le.focus=="function"&&le.focus(),le=0;le<We.length;le++){var Qe=We[le];Qe.element.scrollLeft=Qe.left,Qe.element.scrollTop=Qe.top}}li=!!Ig,$g=Ig=null}finally{In=z,W.p=x,I.T=v}}r.current=l,si=2}}function Bw(){if(si===2){si=0;var r=Bl,l=$c,v=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||v){v=I.T,I.T=null;var x=W.p;W.p=2;var z=In;In|=4;try{im(r,l.alternate,l)}finally{In=z,W.p=x,I.T=v}}si=3}}function Fw(){if(si===4||si===3){si=0,gt();var r=Bl,l=$c,v=Xs,x=xg;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?si=5:(si=0,$c=Bl=null,Pw(r,r.pendingLanes));var z=r.pendingLanes;if(z===0&&(wo=null),Fn(v),l=l.stateNode,_t&&typeof _t.onCommitFiberRoot=="function")try{_t.onCommitFiberRoot(Lt,l,void 0,(l.current.flags&128)===128)}catch{}if(x!==null){l=I.T,z=W.p,W.p=2,I.T=null;try{for(var V=r.onRecoverableError,ee=0;ee<x.length;ee++){var le=x[ee];V(le.value,{componentStack:le.stack})}}finally{I.T=l,W.p=z}}(Xs&3)!==0&&af(),Ks(r),z=r.pendingLanes,(v&261930)!==0&&(z&42)!==0?r===um?nf++:(nf=0,um=r):nf=0,Vl(0)}}function Pw(r,l){(r.pooledCacheLanes&=l)===0&&(l=r.pooledCache,l!=null&&(r.pooledCache=null,kh(l)))}function af(){return zw(),Bw(),Fw(),Vw()}function Vw(){if(si!==5)return!1;var r=Bl,l=Nr;Nr=0;var v=Fn(Xs),x=I.T,z=W.p;try{W.p=32>v?32:v,I.T=null,v=Ag,Ag=null;var V=Bl,ee=Xs;if(si=0,$c=Bl=null,Xs=0,(In&6)!==0)throw Error(a(331));var le=In;if(In|=4,y0(V.current),Zd(V,V.current,ee,v),In=le,Vl(0,!1),_t&&typeof _t.onPostCommitFiberRoot=="function")try{_t.onPostCommitFiberRoot(Lt,V)}catch{}return!0}finally{W.p=z,I.T=x,Pw(r,l)}}function Gw(r,l,v){l=Vr(v,l),l=Jv(r.stateNode,l,2),r=Yr(r,l,2),r!==null&&(en(r,2),Ks(r))}function Wn(r,l,v){if(r.tag===3)Gw(r,r,v);else for(;l!==null;){if(l.tag===3){Gw(l,r,v);break}else if(l.tag===1){var x=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof x.componentDidCatch=="function"&&(wo===null||!wo.has(x))){r=Vr(v,r),v=e0(2),x=Yr(l,v,2),x!==null&&(t0(v,x,l,r),en(x,2),Ks(x));break}}l=l.return}}function hm(r,l,v){var x=r.pingCache;if(x===null){x=r.pingCache=new E0;var z=new Set;x.set(l,z)}else z=x.get(l),z===void 0&&(z=new Set,x.set(l,z));z.has(v)||(wg=!0,z.add(v),r=T0.bind(null,r,l,v),l.then(r,r))}function T0(r,l,v){var x=r.pingCache;x!==null&&x.delete(l),r.pingedLanes|=r.suspendedLanes&v,r.warmLanes&=~v,eo===r&&(pn&v)===v&&(uo===4||uo===3&&(pn&62914560)===pn&&300>at()-fs?(In&2)===0&&qs(r,0):Sg|=v,Lo===pn&&(Lo=0)),Ks(r)}function Qw(r,l){l===0&&(l=Tt()),r=Nl(r,l),r!==null&&(en(r,l),Ks(r))}function ea(r){var l=r.memoizedState,v=0;l!==null&&(v=l.retryLane),Qw(r,v)}function Ww(r,l){var v=0;switch(r.tag){case 31:case 13:var x=r.stateNode,z=r.memoizedState;z!==null&&(v=z.retryLane);break;case 19:x=r.stateNode;break;case 22:x=r.stateNode._retryCache;break;default:throw Error(a(314))}x!==null&&x.delete(l),Qw(r,v)}function Yw(r,l){return ze(r,l)}var sf=null,Fu=null,A0=!1,Ng=!1,x0=!1,Pl=0;function Ks(r){r!==Fu&&r.next===null&&(Fu===null?sf=Fu=r:Fu=Fu.next=r),Ng=!0,A0||(A0=!0,pm())}function Vl(r,l){if(!x0&&Ng){x0=!0;do for(var v=!1,x=sf;x!==null;){if(r!==0){var z=x.pendingLanes;if(z===0)var V=0;else{var ee=x.suspendedLanes,le=x.pingedLanes;V=(1<<31-xe(42|r)+1)-1,V&=z&~(ee&~le),V=V&201326741?V&201326741|1:V?V|2:0}V!==0&&(v=!0,Pu(x,V))}else V=pn,V=Ce(x,x===eo?V:0,x.cancelPendingCommit!==null||x.timeoutHandle!==-1),(V&3)===0||Ze(x,V)||(v=!0,Pu(x,V));x=x.next}while(v);x0=!1}}function Rg(){_0()}function _0(){Ng=A0=!1;var r=0;Pl!==0&&QT()&&(r=Pl);for(var l=at(),v=null,x=sf;x!==null;){var z=x.next,V=C0(x,l);V===0?(x.next=null,v===null?sf=z:v.next=z,z===null&&(Fu=v)):(v=x,(r!==0||(V&3)!==0)&&(Ng=!0)),x=z}si!==0&&si!==5||Vl(r),Pl!==0&&(Pl=0)}function C0(r,l){for(var v=r.suspendedLanes,x=r.pingedLanes,z=r.expirationTimes,V=r.pendingLanes&-62914561;0<V;){var ee=31-xe(V),le=1<<ee,be=z[ee];be===-1?((le&v)===0||(le&x)!==0)&&(z[ee]=ft(le,l)):be<=l&&(r.expiredLanes|=le),V&=~le}if(l=eo,v=pn,v=Ce(r,r===l?v:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),x=r.callbackNode,v===0||r===l&&(Qn===2||Qn===9)||r.cancelPendingCommit!==null)return x!==null&&x!==null&&tt(x),r.callbackNode=null,r.callbackPriority=0;if((v&3)===0||Ze(r,v)){if(l=v&-v,l===r.callbackPriority)return l;switch(x!==null&&tt(x),Fn(v)){case 2:case 8:v=it;break;case 32:v=rt;break;case 268435456:v=St;break;default:v=rt}return x=mm.bind(null,r),v=ze(v,x),r.callbackPriority=l,r.callbackNode=v,l}return x!==null&&x!==null&&tt(x),r.callbackPriority=2,r.callbackNode=null,2}function mm(r,l){if(si!==0&&si!==5)return r.callbackNode=null,r.callbackPriority=0,null;var v=r.callbackNode;if(af()&&r.callbackNode!==v)return null;var x=pn;return x=Ce(r,r===eo?x:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),x===0?null:(Lw(r,x,l),C0(r,at()),r.callbackNode!=null&&r.callbackNode===v?mm.bind(null,r):null)}function Pu(r,l){if(af())return null;Lw(r,l,!0)}function pm(){n1(function(){(In&6)!==0?ze(je,Rg):_0()})}function Lg(){if(Pl===0){var r=yc;r===0&&(r=ut,ut<<=1,(ut&261888)===0&&(ut=256)),Pl=r}return Pl}function Xw(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:Sr(""+r)}function Vu(r,l){var v=l.ownerDocument.createElement("input");return v.name=l.name,v.value=l.value,r.id&&v.setAttribute("form",r.id),l.parentNode.insertBefore(v,l),r=new FormData(r),v.parentNode.removeChild(v),r}function gm(r,l,v,x,z){if(l==="submit"&&v&&v.stateNode===z){var V=Xw((z[Pn]||null).action),ee=x.submitter;ee&&(l=(l=ee[Pn]||null)?Xw(l.formAction):ee.getAttribute("formAction"),l!==null&&(V=l,ee=null));var le=new Qt("action","action",null,x,z);r.push({event:le,listeners:[{instance:null,listener:function(){if(x.defaultPrevented){if(Pl!==0){var be=ee?Vu(z,ee):new FormData(z);Vd(v,{pending:!0,data:be,method:z.method,action:V},null,be)}}else typeof V=="function"&&(le.preventDefault(),be=ee?Vu(z,ee):new FormData(z),Vd(v,{pending:!0,data:be,method:z.method,action:V},V,be))},currentTarget:z}]})}}for(var Og=0;Og<Rd.length;Og++){var lf=Rd[Og],N0=lf.toLowerCase(),R0=lf[0].toUpperCase()+lf.slice(1);or(N0,"on"+R0)}or(_h,"onAnimationEnd"),or(wv,"onAnimationIteration"),or(Op,"onAnimationStart"),or("dblclick","onDoubleClick"),or("focusin","onFocus"),or("focusout","onBlur"),or(yu,"onTransitionRun"),or(Ch,"onTransitionStart"),or(Os,"onTransitionCancel"),or(aw,"onTransitionEnd"),On("onMouseEnter",["mouseout","mouseover"]),On("onMouseLeave",["mouseout","mouseover"]),On("onPointerEnter",["pointerout","pointerover"]),On("onPointerLeave",["pointerout","pointerover"]),gi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),gi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),gi("onBeforeInput",["compositionend","keypress","textInput","paste"]),gi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),gi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),gi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var cf="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(" "),qw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(cf));function Kw(r,l){l=(l&4)!==0;for(var v=0;v<r.length;v++){var x=r[v],z=x.event;x=x.listeners;e:{var V=void 0;if(l)for(var ee=x.length-1;0<=ee;ee--){var le=x[ee],be=le.instance,Me=le.currentTarget;if(le=le.listener,be!==V&&z.isPropagationStopped())break e;V=le,z.currentTarget=Me;try{V(z)}catch(Fe){Eu(Fe)}z.currentTarget=null,V=be}else for(ee=0;ee<x.length;ee++){if(le=x[ee],be=le.instance,Me=le.currentTarget,le=le.listener,be!==V&&z.isPropagationStopped())break e;V=le,z.currentTarget=Me;try{V(z)}catch(Fe){Eu(Fe)}z.currentTarget=null,V=be}}}}function En(r,l){var v=l[mo];v===void 0&&(v=l[mo]=new Set);var x=r+"__bubble";v.has(x)||(bm(l,r,2,!1),v.add(x))}function L0(r,l,v){var x=0;l&&(x|=4),bm(v,r,x,l)}var Dg="_reactListening"+Math.random().toString(36).slice(2);function uf(r){if(!r[Dg]){r[Dg]=!0,vn.forEach(function(v){v!=="selectionchange"&&(qw.has(v)||L0(v,!1,r),L0(v,!0,r))});var l=r.nodeType===9?r:r.ownerDocument;l===null||l[Dg]||(l[Dg]=!0,L0("selectionchange",!1,l))}}function bm(r,l,v,x){switch(_m(l)){case 2:var z=Js;break;case 8:z=el;break;default:z=Ui}v=z.bind(null,l,v,r),z=void 0,!dc||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(z=!0),x?z!==void 0?r.addEventListener(l,v,{capture:!0,passive:z}):r.addEventListener(l,v,!0):z!==void 0?r.addEventListener(l,v,{passive:z}):r.addEventListener(l,v,!1)}function O0(r,l,v,x,z){var V=x;if((l&1)===0&&(l&2)===0&&x!==null)e:for(;;){if(x===null)return;var ee=x.tag;if(ee===3||ee===4){var le=x.stateNode.containerInfo;if(le===z)break;if(ee===4)for(ee=x.return;ee!==null;){var be=ee.tag;if((be===3||be===4)&&ee.stateNode.containerInfo===z)return;ee=ee.return}for(;le!==null;){if(ee=st(le),ee===null)return;if(be=ee.tag,be===5||be===6||be===26||be===27){x=V=ee;continue e}le=le.parentNode}}x=x.return}yh(function(){var Me=V,Fe=du(v),We=[];e:{var ke=Ds.get(r);if(ke!==void 0){var He=Qt,wt=r;switch(r){case"keypress":if(ce(v)===0)break e;case"keydown":case"keyup":He=Ap;break;case"focusin":wt="focus",He=Tr;break;case"focusout":wt="blur",He=Tr;break;case"beforeblur":case"afterblur":He=Tr;break;case"click":if(v.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":He=No;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":He=tr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":He=JE;break;case _h:case wv:case Op:He=Sh;break;case aw:He=zT;break;case"scroll":case"scrollend":He=Ko;break;case"wheel":He=BT;break;case"copy":case"cut":case"paste":He=_a;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":He=Ka;break;case"toggle":case"beforetoggle":He=fv}var zt=(l&4)!==0,no=!zt&&(r==="scroll"||r==="scrollend"),Ne=zt?ke!==null?ke+"Capture":null:ke;zt=[];for(var Te=Me,Oe;Te!==null;){var Qe=Te;if(Oe=Qe.stateNode,Qe=Qe.tag,Qe!==5&&Qe!==26&&Qe!==27||Oe===null||Ne===null||(Qe=Bo(Te,Ne),Qe!=null&&zt.push(vm(Te,Qe,Oe))),no)break;Te=Te.return}0<zt.length&&(ke=new He(ke,wt,null,v,Fe),We.push({event:ke,listeners:zt}))}}if((l&7)===0){e:{if(ke=r==="mouseover"||r==="pointerover",He=r==="mouseout"||r==="pointerout",ke&&v!==ya&&(wt=v.relatedTarget||v.fromElement)&&(st(wt)||wt[zo]))break e;if((He||ke)&&(ke=Fe.window===Fe?Fe:(ke=Fe.ownerDocument)?ke.defaultView||ke.parentWindow:window,He?(wt=v.relatedTarget||v.toElement,He=Me,wt=wt?st(wt):null,wt!==null&&(no=p(wt),zt=wt.tag,wt!==no||zt!==5&&zt!==27&&zt!==6)&&(wt=null)):(He=null,wt=Me),He!==wt)){if(zt=No,Qe="onMouseLeave",Ne="onMouseEnter",Te="mouse",(r==="pointerout"||r==="pointerover")&&(zt=Ka,Qe="onPointerLeave",Ne="onPointerEnter",Te="pointer"),no=He==null?ke:Zn(He),Oe=wt==null?ke:Zn(wt),ke=new zt(Qe,Te+"leave",He,v,Fe),ke.target=no,ke.relatedTarget=Oe,Qe=null,st(Fe)===Me&&(zt=new zt(Ne,Te+"enter",wt,v,Fe),zt.target=Oe,zt.relatedTarget=no,Qe=zt),no=Qe,He&&wt)t:{for(zt=Zw,Ne=He,Te=wt,Oe=0,Qe=Ne;Qe;Qe=zt(Qe))Oe++;Qe=0;for(var Ot=Te;Ot;Ot=zt(Ot))Qe++;for(;0<Oe-Qe;)Ne=zt(Ne),Oe--;for(;0<Qe-Oe;)Te=zt(Te),Qe--;for(;Oe--;){if(Ne===Te||Te!==null&&Ne===Te.alternate){zt=Ne;break t}Ne=zt(Ne),Te=zt(Te)}zt=null}else zt=null;He!==null&&Mg(We,ke,He,zt,!1),wt!==null&&no!==null&&Mg(We,no,wt,zt,!0)}}e:{if(ke=Me?Zn(Me):window,He=ke.nodeName&&ke.nodeName.toLowerCase(),He==="select"||He==="input"&&ke.type==="file")var Dn=bv;else if(Ls(ke))if(Cp)Dn=bu;else{Dn=iw;var At=ow}else He=ke.nodeName,!He||He.toLowerCase()!=="input"||ke.type!=="checkbox"&&ke.type!=="radio"?Me&&vh(Me.elementType)&&(Dn=bv):Dn=mc;if(Dn&&(Dn=Dn(r,Me))){gv(We,Dn,v,Fe);break e}At&&At(r,ke,Me),r==="focusout"&&Me&&ke.type==="number"&&Me.memoizedProps.value!=null&&_l(ke,"number",ke.value)}switch(At=Me?Zn(Me):window,r){case"focusin":(Ls(At)||At.contentEditable==="true")&&(gc=At,Cd=Me,Ra=null);break;case"focusout":Ra=Cd=gc=null;break;case"mousedown":Ja=!0;break;case"contextmenu":case"mouseup":case"dragend":Ja=!1,Lp(We,v,Fe);break;case"selectionchange":if(xh)break;case"keydown":case"keyup":Lp(We,v,Fe)}var nn;if(xd)e:{switch(r){case"compositionstart":var cn="onCompositionStart";break e;case"compositionend":cn="onCompositionEnd";break e;case"compositionupdate":cn="onCompositionUpdate";break e}cn=void 0}else mu?_p(r,v)&&(cn="onCompositionEnd"):r==="keydown"&&v.keyCode===229&&(cn="onCompositionStart");cn&&(hv&&v.locale!=="ko"&&(mu||cn!=="onCompositionStart"?cn==="onCompositionEnd"&&mu&&(nn=wh()):(Aa=Fe,Eh="value"in Aa?Aa.value:Aa.textContent,mu=!0)),At=ym(Me,cn),0<At.length&&(cn=new KE(cn,r,null,v,Fe),We.push({event:cn,listeners:At}),nn?cn.data=nn:(nn=mv(v),nn!==null&&(cn.data=nn)))),(nn=Fi?nw(r,v):FT(r,v))&&(cn=ym(Me,"onBeforeInput"),0<cn.length&&(At=new KE("onBeforeInput","beforeinput",null,v,Fe),We.push({event:At,listeners:cn}),At.data=nn)),gm(We,r,Me,v,Fe)}Kw(We,l)})}function vm(r,l,v){return{instance:r,listener:l,currentTarget:v}}function ym(r,l){for(var v=l+"Capture",x=[];r!==null;){var z=r,V=z.stateNode;if(z=z.tag,z!==5&&z!==26&&z!==27||V===null||(z=Bo(r,v),z!=null&&x.unshift(vm(r,z,V)),z=Bo(r,l),z!=null&&x.push(vm(r,z,V))),r.tag===3)return x;r=r.return}return[]}function Zw(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function Mg(r,l,v,x,z){for(var V=l._reactName,ee=[];v!==null&&v!==x;){var le=v,be=le.alternate,Me=le.stateNode;if(le=le.tag,be!==null&&be===x)break;le!==5&&le!==26&&le!==27||Me===null||(be=Me,z?(Me=Bo(v,V),Me!=null&&ee.unshift(vm(v,Me,be))):z||(Me=Bo(v,V),Me!=null&&ee.push(vm(v,Me,be)))),v=v.return}ee.length!==0&&r.push({event:l,listeners:ee})}var Jw=/\r\n?/g,D0=/\u0000|\uFFFD/g;function M0(r){return(typeof r=="string"?r:""+r).replace(Jw,`
81
- `).replace(D0,"")}function k0(r,l){return l=M0(l),M0(r)===l}function to(r,l,v,x,z,V){switch(v){case"children":typeof x=="string"?l==="body"||l==="textarea"&&x===""||Ii(r,x):(typeof x=="number"||typeof x=="bigint")&&l!=="body"&&Ii(r,""+x);break;case"className":Ed(r,"class",x);break;case"tabIndex":Ed(r,"tabindex",x);break;case"dir":case"role":case"viewBox":case"width":case"height":Ed(r,v,x);break;case"style":Qa(r,x,V);break;case"data":if(l!=="object"){Ed(r,"data",x);break}case"src":case"href":if(x===""&&(l!=="a"||v!=="href")){r.removeAttribute(v);break}if(x==null||typeof x=="function"||typeof x=="symbol"||typeof x=="boolean"){r.removeAttribute(v);break}x=Sr(""+x),r.setAttribute(v,x);break;case"action":case"formAction":if(typeof x=="function"){r.setAttribute(v,"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 V=="function"&&(v==="formAction"?(l!=="input"&&to(r,l,"name",z.name,z,null),to(r,l,"formEncType",z.formEncType,z,null),to(r,l,"formMethod",z.formMethod,z,null),to(r,l,"formTarget",z.formTarget,z,null)):(to(r,l,"encType",z.encType,z,null),to(r,l,"method",z.method,z,null),to(r,l,"target",z.target,z,null)));if(x==null||typeof x=="symbol"||typeof x=="boolean"){r.removeAttribute(v);break}x=Sr(""+x),r.setAttribute(v,x);break;case"onClick":x!=null&&(r.onclick=Br);break;case"onScroll":x!=null&&En("scroll",r);break;case"onScrollEnd":x!=null&&En("scrollend",r);break;case"dangerouslySetInnerHTML":if(x!=null){if(typeof x!="object"||!("__html"in x))throw Error(a(61));if(v=x.__html,v!=null){if(z.children!=null)throw Error(a(60));r.innerHTML=v}}break;case"multiple":r.multiple=x&&typeof x!="function"&&typeof x!="symbol";break;case"muted":r.muted=x&&typeof x!="function"&&typeof x!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(x==null||typeof x=="function"||typeof x=="boolean"||typeof x=="symbol"){r.removeAttribute("xlink:href");break}v=Sr(""+x),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",v);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":x!=null&&typeof x!="function"&&typeof x!="symbol"?r.setAttribute(v,""+x):r.removeAttribute(v);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":x&&typeof x!="function"&&typeof x!="symbol"?r.setAttribute(v,""):r.removeAttribute(v);break;case"capture":case"download":x===!0?r.setAttribute(v,""):x!==!1&&x!=null&&typeof x!="function"&&typeof x!="symbol"?r.setAttribute(v,x):r.removeAttribute(v);break;case"cols":case"rows":case"size":case"span":x!=null&&typeof x!="function"&&typeof x!="symbol"&&!isNaN(x)&&1<=x?r.setAttribute(v,x):r.removeAttribute(v);break;case"rowSpan":case"start":x==null||typeof x=="function"||typeof x=="symbol"||isNaN(x)?r.removeAttribute(v):r.setAttribute(v,x);break;case"popover":En("beforetoggle",r),En("toggle",r),sc(r,"popover",x);break;case"xlinkActuate":Ga(r,"http://www.w3.org/1999/xlink","xlink:actuate",x);break;case"xlinkArcrole":Ga(r,"http://www.w3.org/1999/xlink","xlink:arcrole",x);break;case"xlinkRole":Ga(r,"http://www.w3.org/1999/xlink","xlink:role",x);break;case"xlinkShow":Ga(r,"http://www.w3.org/1999/xlink","xlink:show",x);break;case"xlinkTitle":Ga(r,"http://www.w3.org/1999/xlink","xlink:title",x);break;case"xlinkType":Ga(r,"http://www.w3.org/1999/xlink","xlink:type",x);break;case"xmlBase":Ga(r,"http://www.w3.org/XML/1998/namespace","xml:base",x);break;case"xmlLang":Ga(r,"http://www.w3.org/XML/1998/namespace","xml:lang",x);break;case"xmlSpace":Ga(r,"http://www.w3.org/XML/1998/namespace","xml:space",x);break;case"is":sc(r,"is",x);break;case"innerText":case"textContent":break;default:(!(2<v.length)||v[0]!=="o"&&v[0]!=="O"||v[1]!=="n"&&v[1]!=="N")&&(v=lv.get(v)||v,sc(r,v,x))}}function I0(r,l,v,x,z,V){switch(v){case"style":Qa(r,x,V);break;case"dangerouslySetInnerHTML":if(x!=null){if(typeof x!="object"||!("__html"in x))throw Error(a(61));if(v=x.__html,v!=null){if(z.children!=null)throw Error(a(60));r.innerHTML=v}}break;case"children":typeof x=="string"?Ii(r,x):(typeof x=="number"||typeof x=="bigint")&&Ii(r,""+x);break;case"onScroll":x!=null&&En("scroll",r);break;case"onScrollEnd":x!=null&&En("scrollend",r);break;case"onClick":x!=null&&(r.onclick=Br);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!yn.hasOwnProperty(v))e:{if(v[0]==="o"&&v[1]==="n"&&(z=v.endsWith("Capture"),l=v.slice(2,z?v.length-7:void 0),V=r[Pn]||null,V=V!=null?V[v]:null,typeof V=="function"&&r.removeEventListener(l,V,z),typeof x=="function")){typeof V!="function"&&V!==null&&(v in r?r[v]=null:r.hasAttribute(v)&&r.removeAttribute(v)),r.addEventListener(l,x,z);break e}v in r?r[v]=x:x===!0?r.setAttribute(v,""):sc(r,v,x)}}}function $i(r,l,v){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":En("error",r),En("load",r);var x=!1,z=!1,V;for(V in v)if(v.hasOwnProperty(V)){var ee=v[V];if(ee!=null)switch(V){case"src":x=!0;break;case"srcSet":z=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,l));default:to(r,l,V,ee,v,null)}}z&&to(r,l,"srcSet",v.srcSet,v,null),x&&to(r,l,"src",v.src,v,null);return;case"input":En("invalid",r);var le=V=ee=z=null,be=null,Me=null;for(x in v)if(v.hasOwnProperty(x)){var Fe=v[x];if(Fe!=null)switch(x){case"name":z=Fe;break;case"type":ee=Fe;break;case"checked":be=Fe;break;case"defaultChecked":Me=Fe;break;case"value":V=Fe;break;case"defaultValue":le=Fe;break;case"children":case"dangerouslySetInnerHTML":if(Fe!=null)throw Error(a(137,l));break;default:to(r,l,x,Fe,v,null)}}lc(r,V,le,be,Me,ee,z,!1);return;case"select":En("invalid",r),x=ee=V=null;for(z in v)if(v.hasOwnProperty(z)&&(le=v[z],le!=null))switch(z){case"value":V=le;break;case"defaultValue":ee=le;break;case"multiple":x=le;default:to(r,l,z,le,v,null)}l=V,v=ee,r.multiple=!!x,l!=null?cc(r,!!x,l,!1):v!=null&&cc(r,!!x,v,!0);return;case"textarea":En("invalid",r),V=z=x=null;for(ee in v)if(v.hasOwnProperty(ee)&&(le=v[ee],le!=null))switch(ee){case"value":x=le;break;case"defaultValue":z=le;break;case"children":V=le;break;case"dangerouslySetInnerHTML":if(le!=null)throw Error(a(91));break;default:to(r,l,ee,le,v,null)}uc(r,x,z,V);return;case"option":for(be in v)if(v.hasOwnProperty(be)&&(x=v[be],x!=null))switch(be){case"selected":r.selected=x&&typeof x!="function"&&typeof x!="symbol";break;default:to(r,l,be,x,v,null)}return;case"dialog":En("beforetoggle",r),En("toggle",r),En("cancel",r),En("close",r);break;case"iframe":case"object":En("load",r);break;case"video":case"audio":for(x=0;x<cf.length;x++)En(cf[x],r);break;case"image":En("error",r),En("load",r);break;case"details":En("toggle",r);break;case"embed":case"source":case"link":En("error",r),En("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Me in v)if(v.hasOwnProperty(Me)&&(x=v[Me],x!=null))switch(Me){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,l));default:to(r,l,Me,x,v,null)}return;default:if(vh(l)){for(Fe in v)v.hasOwnProperty(Fe)&&(x=v[Fe],x!==void 0&&I0(r,l,Fe,x,v,void 0));return}}for(le in v)v.hasOwnProperty(le)&&(x=v[le],x!=null&&to(r,l,le,x,v,null))}function $0(r,l,v,x){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var z=null,V=null,ee=null,le=null,be=null,Me=null,Fe=null;for(He in v){var We=v[He];if(v.hasOwnProperty(He)&&We!=null)switch(He){case"checked":break;case"value":break;case"defaultValue":be=We;default:x.hasOwnProperty(He)||to(r,l,He,null,x,We)}}for(var ke in x){var He=x[ke];if(We=v[ke],x.hasOwnProperty(ke)&&(He!=null||We!=null))switch(ke){case"type":V=He;break;case"name":z=He;break;case"checked":Me=He;break;case"defaultChecked":Fe=He;break;case"value":ee=He;break;case"defaultValue":le=He;break;case"children":case"dangerouslySetInnerHTML":if(He!=null)throw Error(a(137,l));break;default:He!==We&&to(r,l,ke,He,x,We)}}cu(r,ee,le,be,Me,Fe,V,z);return;case"select":He=ee=le=ke=null;for(V in v)if(be=v[V],v.hasOwnProperty(V)&&be!=null)switch(V){case"value":break;case"multiple":He=be;default:x.hasOwnProperty(V)||to(r,l,V,null,x,be)}for(z in x)if(V=x[z],be=v[z],x.hasOwnProperty(z)&&(V!=null||be!=null))switch(z){case"value":ke=V;break;case"defaultValue":le=V;break;case"multiple":ee=V;default:V!==be&&to(r,l,z,V,x,be)}l=le,v=ee,x=He,ke!=null?cc(r,!!v,ke,!1):!!x!=!!v&&(l!=null?cc(r,!!v,l,!0):cc(r,!!v,v?[]:"",!1));return;case"textarea":He=ke=null;for(le in v)if(z=v[le],v.hasOwnProperty(le)&&z!=null&&!x.hasOwnProperty(le))switch(le){case"value":break;case"children":break;default:to(r,l,le,null,x,z)}for(ee in x)if(z=x[ee],V=v[ee],x.hasOwnProperty(ee)&&(z!=null||V!=null))switch(ee){case"value":ke=z;break;case"defaultValue":He=z;break;case"children":break;case"dangerouslySetInnerHTML":if(z!=null)throw Error(a(91));break;default:z!==V&&to(r,l,ee,z,x,V)}Td(r,ke,He);return;case"option":for(var wt in v)if(ke=v[wt],v.hasOwnProperty(wt)&&ke!=null&&!x.hasOwnProperty(wt))switch(wt){case"selected":r.selected=!1;break;default:to(r,l,wt,null,x,ke)}for(be in x)if(ke=x[be],He=v[be],x.hasOwnProperty(be)&&ke!==He&&(ke!=null||He!=null))switch(be){case"selected":r.selected=ke&&typeof ke!="function"&&typeof ke!="symbol";break;default:to(r,l,be,ke,x,He)}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 zt in v)ke=v[zt],v.hasOwnProperty(zt)&&ke!=null&&!x.hasOwnProperty(zt)&&to(r,l,zt,null,x,ke);for(Me in x)if(ke=x[Me],He=v[Me],x.hasOwnProperty(Me)&&ke!==He&&(ke!=null||He!=null))switch(Me){case"children":case"dangerouslySetInnerHTML":if(ke!=null)throw Error(a(137,l));break;default:to(r,l,Me,ke,x,He)}return;default:if(vh(l)){for(var no in v)ke=v[no],v.hasOwnProperty(no)&&ke!==void 0&&!x.hasOwnProperty(no)&&I0(r,l,no,void 0,x,ke);for(Fe in x)ke=x[Fe],He=v[Fe],!x.hasOwnProperty(Fe)||ke===He||ke===void 0&&He===void 0||I0(r,l,Fe,ke,x,He);return}}for(var Ne in v)ke=v[Ne],v.hasOwnProperty(Ne)&&ke!=null&&!x.hasOwnProperty(Ne)&&to(r,l,Ne,null,x,ke);for(We in x)ke=x[We],He=v[We],!x.hasOwnProperty(We)||ke===He||ke==null&&He==null||to(r,l,We,ke,x,He)}function kg(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function U0(){if(typeof performance.getEntriesByType=="function"){for(var r=0,l=0,v=performance.getEntriesByType("resource"),x=0;x<v.length;x++){var z=v[x],V=z.transferSize,ee=z.initiatorType,le=z.duration;if(V&&le&&kg(ee)){for(ee=0,le=z.responseEnd,x+=1;x<v.length;x++){var be=v[x],Me=be.startTime;if(Me>le)break;var Fe=be.transferSize,We=be.initiatorType;Fe&&kg(We)&&(be=be.responseEnd,ee+=Fe*(be<le?1:(le-Me)/(be-Me)))}if(--x,l+=8*(V+ee)/(z.duration/1e3),r++,10<r)break}}if(0<r)return l/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var Ig=null,$g=null;function Hc(r){return r.nodeType===9?r:r.ownerDocument}function e1(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function H0(r,l){if(r===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&l==="foreignObject"?0:r}function df(r,l){return r==="textarea"||r==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var Ug=null;function QT(){var r=window.event;return r&&r.type==="popstate"?r===Ug?!1:(Ug=r,!0):(Ug=null,!1)}var Em=typeof setTimeout=="function"?setTimeout:void 0,t1=typeof clearTimeout=="function"?clearTimeout:void 0,Gu=typeof Promise=="function"?Promise:void 0,n1=typeof queueMicrotask=="function"?queueMicrotask:typeof Gu<"u"?function(r){return Gu.resolve(null).then(r).catch(j0)}:Em;function j0(r){setTimeout(function(){throw r})}function hs(r){return r==="head"}function z0(r,l){var v=l,x=0;do{var z=v.nextSibling;if(r.removeChild(v),z&&z.nodeType===8)if(v=z.data,v==="/$"||v==="/&"){if(x===0){r.removeChild(z),Tf(l);return}x--}else if(v==="$"||v==="$?"||v==="$~"||v==="$!"||v==="&")x++;else if(v==="html")Qu(r.ownerDocument.documentElement);else if(v==="head"){v=r.ownerDocument.head,Qu(v);for(var V=v.firstChild;V;){var ee=V.nextSibling,le=V.nodeName;V[Ee]||le==="SCRIPT"||le==="STYLE"||le==="LINK"&&V.rel.toLowerCase()==="stylesheet"||v.removeChild(V),V=ee}}else v==="body"&&Qu(r.ownerDocument.body);v=z}while(v);Tf(l)}function Wo(r,l){var v=r;r=0;do{var x=v.nextSibling;if(v.nodeType===1?l?(v._stashedDisplay=v.style.display,v.style.display="none"):(v.style.display=v._stashedDisplay||"",v.getAttribute("style")===""&&v.removeAttribute("style")):v.nodeType===3&&(l?(v._stashedText=v.nodeValue,v.nodeValue=""):v.nodeValue=v._stashedText||""),x&&x.nodeType===8)if(v=x.data,v==="/$"){if(r===0)break;r--}else v!=="$"&&v!=="$?"&&v!=="$~"&&v!=="$!"||r++;v=x}while(v)}function wm(r){var l=r.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var v=l;switch(l=l.nextSibling,v.nodeName){case"HTML":case"HEAD":case"BODY":wm(v),Ke(v);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(v.rel.toLowerCase()==="stylesheet")continue}r.removeChild(v)}}function WT(r,l,v,x){for(;r.nodeType===1;){var z=v;if(r.nodeName.toLowerCase()!==l.toLowerCase()){if(!x&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(x){if(!r[Ee])switch(l){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(V=r.getAttribute("rel"),V==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(V!==z.rel||r.getAttribute("href")!==(z.href==null||z.href===""?null:z.href)||r.getAttribute("crossorigin")!==(z.crossOrigin==null?null:z.crossOrigin)||r.getAttribute("title")!==(z.title==null?null:z.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(V=r.getAttribute("src"),(V!==(z.src==null?null:z.src)||r.getAttribute("type")!==(z.type==null?null:z.type)||r.getAttribute("crossorigin")!==(z.crossOrigin==null?null:z.crossOrigin))&&V&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(l==="input"&&r.type==="hidden"){var V=z.name==null?null:""+z.name;if(z.type==="hidden"&&r.getAttribute("name")===V)return r}else return r;if(r=pr(r.nextSibling),r===null)break}return null}function dn(r,l,v){if(l==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!v||(r=pr(r.nextSibling),r===null))return null;return r}function o1(r,l){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!l||(r=pr(r.nextSibling),r===null))return null;return r}function Ua(r){return r.data==="$?"||r.data==="$~"}function jc(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function ff(r,l){var v=r.ownerDocument;if(r.data==="$~")r._reactRetry=l;else if(r.data!=="$?"||v.readyState!=="loading")l();else{var x=function(){l(),v.removeEventListener("DOMContentLoaded",x)};v.addEventListener("DOMContentLoaded",x),r._reactRetry=x}}function pr(r){for(;r!=null;r=r.nextSibling){var l=r.nodeType;if(l===1||l===3)break;if(l===8){if(l=r.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return r}var Sm=null;function Hg(r){r=r.nextSibling;for(var l=0;r;){if(r.nodeType===8){var v=r.data;if(v==="/$"||v==="/&"){if(l===0)return pr(r.nextSibling);l--}else v!=="$"&&v!=="$!"&&v!=="$?"&&v!=="$~"&&v!=="&"||l++}r=r.nextSibling}return null}function ms(r){r=r.previousSibling;for(var l=0;r;){if(r.nodeType===8){var v=r.data;if(v==="$"||v==="$!"||v==="$?"||v==="$~"||v==="&"){if(l===0)return r;l--}else v!=="/$"&&v!=="/&"||l++}r=r.previousSibling}return null}function hf(r,l,v){switch(l=Hc(v),r){case"html":if(r=l.documentElement,!r)throw Error(a(452));return r;case"head":if(r=l.head,!r)throw Error(a(453));return r;case"body":if(r=l.body,!r)throw Error(a(454));return r;default:throw Error(a(451))}}function Qu(r){for(var l=r.attributes;l.length;)r.removeAttributeNode(l[0]);Ke(r)}var Lr=new Map,Tm=new Set;function Gi(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var ps=W.d;W.d={f:YT,r:i1,D:Ue,C:zn,L:XT,m:B0,X:Gl,S:F0,M:zc};function YT(){var r=ps.f(),l=of();return r||l}function i1(r){var l=on(r);l!==null&&l.tag===5&&l.type==="form"?Jn(l):ps.r(r)}var mf=typeof document>"u"?null:document;function ei(r,l,v){var x=mf;if(x&&typeof l=="string"&&l){var z=Ji(l);z='link[rel="'+r+'"][href="'+z+'"]',typeof v=="string"&&(z+='[crossorigin="'+v+'"]'),Tm.has(z)||(Tm.add(z),r={rel:r,crossOrigin:v,href:l},x.querySelector(z)===null&&(l=x.createElement("link"),$i(l,"link",r),ot(l),x.head.appendChild(l)))}}function Ue(r){ps.D(r),ei("dns-prefetch",r,null)}function zn(r,l){ps.C(r,l),ei("preconnect",r,l)}function XT(r,l,v){ps.L(r,l,v);var x=mf;if(x&&r&&l){var z='link[rel="preload"][as="'+Ji(l)+'"]';l==="image"&&v&&v.imageSrcSet?(z+='[imagesrcset="'+Ji(v.imageSrcSet)+'"]',typeof v.imageSizes=="string"&&(z+='[imagesizes="'+Ji(v.imageSizes)+'"]')):z+='[href="'+Ji(r)+'"]';var V=z;switch(l){case"style":V=ta(r);break;case"script":V=Wu(r)}Lr.has(V)||(r=u({rel:"preload",href:l==="image"&&v&&v.imageSrcSet?void 0:r,as:l},v),Lr.set(V,r),x.querySelector(z)!==null||l==="style"&&x.querySelector(Bc(V))||l==="script"&&x.querySelector(bf(V))||(l=x.createElement("link"),$i(l,"link",r),ot(l),x.head.appendChild(l)))}}function B0(r,l){ps.m(r,l);var v=mf;if(v&&r){var x=l&&typeof l.as=="string"?l.as:"script",z='link[rel="modulepreload"][as="'+Ji(x)+'"][href="'+Ji(r)+'"]',V=z;switch(x){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":V=Wu(r)}if(!Lr.has(V)&&(r=u({rel:"modulepreload",href:r},l),Lr.set(V,r),v.querySelector(z)===null)){switch(x){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(v.querySelector(bf(V)))return}x=v.createElement("link"),$i(x,"link",r),ot(x),v.head.appendChild(x)}}}function F0(r,l,v){ps.S(r,l,v);var x=mf;if(x&&r){var z=Ln(x).hoistableStyles,V=ta(r);l=l||"default";var ee=z.get(V);if(!ee){var le={loading:0,preload:null};if(ee=x.querySelector(Bc(V)))le.loading=5;else{r=u({rel:"stylesheet",href:r,"data-precedence":l},v),(v=Lr.get(V))&&jg(r,v);var be=ee=x.createElement("link");ot(be),$i(be,"link",r),be._p=new Promise(function(Me,Fe){be.onload=Me,be.onerror=Fe}),be.addEventListener("load",function(){le.loading|=1}),be.addEventListener("error",function(){le.loading|=2}),le.loading|=4,Am(ee,l,x)}ee={type:"stylesheet",instance:ee,count:1,state:le},z.set(V,ee)}}}function Gl(r,l){ps.X(r,l);var v=mf;if(v&&r){var x=Ln(v).hoistableScripts,z=Wu(r),V=x.get(z);V||(V=v.querySelector(bf(z)),V||(r=u({src:r,async:!0},l),(l=Lr.get(z))&&zg(r,l),V=v.createElement("script"),ot(V),$i(V,"link",r),v.head.appendChild(V)),V={type:"script",instance:V,count:1,state:null},x.set(z,V))}}function zc(r,l){ps.M(r,l);var v=mf;if(v&&r){var x=Ln(v).hoistableScripts,z=Wu(r),V=x.get(z);V||(V=v.querySelector(bf(z)),V||(r=u({src:r,async:!0,type:"module"},l),(l=Lr.get(z))&&zg(r,l),V=v.createElement("script"),ot(V),$i(V,"link",r),v.head.appendChild(V)),V={type:"script",instance:V,count:1,state:null},x.set(z,V))}}function pf(r,l,v,x){var z=(z=ie.current)?Gi(z):null;if(!z)throw Error(a(446));switch(r){case"meta":case"title":return null;case"style":return typeof v.precedence=="string"&&typeof v.href=="string"?(l=ta(v.href),v=Ln(z).hoistableStyles,x=v.get(l),x||(x={type:"style",instance:null,count:0,state:null},v.set(l,x)),x):{type:"void",instance:null,count:0,state:null};case"link":if(v.rel==="stylesheet"&&typeof v.href=="string"&&typeof v.precedence=="string"){r=ta(v.href);var V=Ln(z).hoistableStyles,ee=V.get(r);if(ee||(z=z.ownerDocument||z,ee={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},V.set(r,ee),(V=z.querySelector(Bc(r)))&&!V._p&&(ee.instance=V,ee.state.loading=5),Lr.has(r)||(v={rel:"preload",as:"style",href:v.href,crossOrigin:v.crossOrigin,integrity:v.integrity,media:v.media,hrefLang:v.hrefLang,referrerPolicy:v.referrerPolicy},Lr.set(r,v),V||r1(z,r,v,ee.state))),l&&x===null)throw Error(a(528,""));return ee}if(l&&x!==null)throw Error(a(529,""));return null;case"script":return l=v.async,v=v.src,typeof v=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=Wu(v),v=Ln(z).hoistableScripts,x=v.get(l),x||(x={type:"script",instance:null,count:0,state:null},v.set(l,x)),x):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,r))}}function ta(r){return'href="'+Ji(r)+'"'}function Bc(r){return'link[rel="stylesheet"]['+r+"]"}function gf(r){return u({},r,{"data-precedence":r.precedence,precedence:null})}function r1(r,l,v,x){r.querySelector('link[rel="preload"][as="style"]['+l+"]")?x.loading=1:(l=r.createElement("link"),x.preload=l,l.addEventListener("load",function(){return x.loading|=1}),l.addEventListener("error",function(){return x.loading|=2}),$i(l,"link",v),ot(l),r.head.appendChild(l))}function Wu(r){return'[src="'+Ji(r)+'"]'}function bf(r){return"script[async]"+r}function P0(r,l,v){if(l.count++,l.instance===null)switch(l.type){case"style":var x=r.querySelector('style[data-href~="'+Ji(v.href)+'"]');if(x)return l.instance=x,ot(x),x;var z=u({},v,{"data-href":v.href,"data-precedence":v.precedence,href:null,precedence:null});return x=(r.ownerDocument||r).createElement("style"),ot(x),$i(x,"style",z),Am(x,v.precedence,r),l.instance=x;case"stylesheet":z=ta(v.href);var V=r.querySelector(Bc(z));if(V)return l.state.loading|=4,l.instance=V,ot(V),V;x=gf(v),(z=Lr.get(z))&&jg(x,z),V=(r.ownerDocument||r).createElement("link"),ot(V);var ee=V;return ee._p=new Promise(function(le,be){ee.onload=le,ee.onerror=be}),$i(V,"link",x),l.state.loading|=4,Am(V,v.precedence,r),l.instance=V;case"script":return V=Wu(v.src),(z=r.querySelector(bf(V)))?(l.instance=z,ot(z),z):(x=v,(z=Lr.get(V))&&(x=u({},v),zg(x,z)),r=r.ownerDocument||r,z=r.createElement("script"),ot(z),$i(z,"link",x),r.head.appendChild(z),l.instance=z);case"void":return null;default:throw Error(a(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(x=l.instance,l.state.loading|=4,Am(x,v.precedence,r));return l.instance}function Am(r,l,v){for(var x=v.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),z=x.length?x[x.length-1]:null,V=z,ee=0;ee<x.length;ee++){var le=x[ee];if(le.dataset.precedence===l)V=le;else if(V!==z)break}V?V.parentNode.insertBefore(r,V.nextSibling):(l=v.nodeType===9?v.head:v,l.insertBefore(r,l.firstChild))}function jg(r,l){r.crossOrigin==null&&(r.crossOrigin=l.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=l.referrerPolicy),r.title==null&&(r.title=l.title)}function zg(r,l){r.crossOrigin==null&&(r.crossOrigin=l.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=l.referrerPolicy),r.integrity==null&&(r.integrity=l.integrity)}var vf=null;function V0(r,l,v){if(vf===null){var x=new Map,z=vf=new Map;z.set(v,x)}else z=vf,x=z.get(v),x||(x=new Map,z.set(v,x));if(x.has(r))return x;for(x.set(r,null),v=v.getElementsByTagName(r),z=0;z<v.length;z++){var V=v[z];if(!(V[Ee]||V[Xt]||r==="link"&&V.getAttribute("rel")==="stylesheet")&&V.namespaceURI!=="http://www.w3.org/2000/svg"){var ee=V.getAttribute(l)||"";ee=r+ee;var le=x.get(ee);le?le.push(V):x.set(ee,[V])}}return x}function Bg(r,l,v){r=r.ownerDocument||r,r.head.insertBefore(v,l==="title"?r.querySelector("head > title"):null)}function G0(r,l,v){if(v===1||l.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return r=l.disabled,typeof l.precedence=="string"&&r==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function Or(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function Zs(r,l,v,x){if(v.type==="stylesheet"&&(typeof x.media!="string"||matchMedia(x.media).matches!==!1)&&(v.state.loading&4)===0){if(v.instance===null){var z=ta(x.href),V=l.querySelector(Bc(z));if(V){l=V._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(r.count++,r=Fg.bind(r),l.then(r,r)),v.state.loading|=4,v.instance=V,ot(V);return}V=l.ownerDocument||l,x=gf(x),(z=Lr.get(z))&&jg(x,z),V=V.createElement("link"),ot(V);var ee=V;ee._p=new Promise(function(le,be){ee.onload=le,ee.onerror=be}),$i(V,"link",x),v.instance=V}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(v,l),(l=v.state.preload)&&(v.state.loading&3)===0&&(r.count++,v=Fg.bind(r),l.addEventListener("load",v),l.addEventListener("error",v))}}var na=0;function Q0(r,l){return r.stylesheets&&r.count===0&&Vg(r,r.stylesheets),0<r.count||0<r.imgCount?function(v){var x=setTimeout(function(){if(r.stylesheets&&Vg(r,r.stylesheets),r.unsuspend){var V=r.unsuspend;r.unsuspend=null,V()}},6e4+l);0<r.imgBytes&&na===0&&(na=62500*U0());var z=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&Vg(r,r.stylesheets),r.unsuspend)){var V=r.unsuspend;r.unsuspend=null,V()}},(r.imgBytes>na?50:800)+l);return r.unsuspend=v,function(){r.unsuspend=null,clearTimeout(x),clearTimeout(z)}}:null}function Fg(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Vg(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var Pg=null;function Vg(r,l){r.stylesheets=null,r.unsuspend!==null&&(r.count++,Pg=new Map,l.forEach(Ai,r),Pg=null,Fg.call(r))}function Ai(r,l){if(!(l.state.loading&4)){var v=Pg.get(r);if(v)var x=v.get(null);else{v=new Map,Pg.set(r,v);for(var z=r.querySelectorAll("link[data-precedence],style[data-precedence]"),V=0;V<z.length;V++){var ee=z[V];(ee.nodeName==="LINK"||ee.getAttribute("media")!=="not all")&&(v.set(ee.dataset.precedence,ee),x=ee)}x&&v.set(null,x)}z=l.instance,ee=z.getAttribute("data-precedence"),V=v.get(ee)||x,V===x&&v.set(null,z),v.set(ee,z),this.count++,x=Fg.bind(this),z.addEventListener("load",x),z.addEventListener("error",x),V?V.parentNode.insertBefore(z,V.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(z,r.firstChild)),l.state.loading|=4}}var xm={$$typeof:O,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function W0(r,l,v,x,z,V,ee,le,be){this.tag=1,this.containerInfo=r,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=Mt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mt(0),this.hiddenUpdates=Mt(null),this.identifierPrefix=x,this.onUncaughtError=z,this.onCaughtError=V,this.onRecoverableError=ee,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=be,this.incompleteTransitions=new Map}function Gg(r,l,v,x,z,V,ee,le,be,Me,Fe,We){return r=new W0(r,l,v,ee,be,Me,Fe,We,le),l=1,V===!0&&(l|=24),V=Mo(3,null,null,l),r.current=V,V.stateNode=r,l=Mh(),l.refCount++,r.pooledCache=l,l.refCount++,V.memoizedState={element:x,isDehydrated:v,cache:l},zh(V),r}function Yu(r){return r?(r=ir,r):ir}function a1(r,l,v,x,z,V){z=Yu(z),x.context===null?x.context=z:x.pendingContext=z,x=Il(l),x.payload={element:v},V=V===void 0?null:V,V!==null&&(x.callback=V),v=Yr(r,x,l),v!==null&&(mr(v,r,l),xc(v,r,l))}function Qg(r,l){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var v=r.retryLane;r.retryLane=v!==0&&v<l?v:l}}function Y0(r,l){Qg(r,l),(r=r.alternate)&&Qg(r,l)}function s1(r){if(r.tag===13||r.tag===31){var l=Nl(r,67108864);l!==null&&mr(l,r,67108864),Y0(r,67108864)}}function Xu(r){if(r.tag===13||r.tag===31){var l=Rr();l=Je(l);var v=Nl(r,l);v!==null&&mr(v,r,l),Y0(r,l)}}var li=!0;function Js(r,l,v,x){var z=I.T;I.T=null;var V=W.p;try{W.p=2,Ui(r,l,v,x)}finally{W.p=V,I.T=z}}function el(r,l,v,x){var z=I.T;I.T=null;var V=W.p;try{W.p=8,Ui(r,l,v,x)}finally{W.p=V,I.T=z}}function Ui(r,l,v,x){if(li){var z=X0(x);if(z===null)O0(r,l,x,Wg,v),Ql(r,x);else if(qT(z,r,l,v,x))x.stopPropagation();else if(Ql(r,x),l&4&&-1<gr.indexOf(r)){for(;z!==null;){var V=on(z);if(V!==null)switch(V.tag){case 3:if(V=V.stateNode,V.current.memoizedState.isDehydrated){var ee=jt(V.pendingLanes);if(ee!==0){var le=V;for(le.pendingLanes|=2,le.entangledLanes|=2;ee;){var be=1<<31-xe(ee);le.entanglements[1]|=be,ee&=~be}Ks(V),(In&6)===0&&(jn=at()+500,Vl(0))}}break;case 31:case 13:le=Nl(V,2),le!==null&&mr(le,V,2),of(),Y0(V,2)}if(V=X0(x),V===null&&O0(r,l,x,Wg,v),V===z)break;z=V}z!==null&&x.stopPropagation()}else O0(r,l,x,null,v)}}function X0(r){return r=du(r),yf(r)}var Wg=null;function yf(r){if(Wg=null,r=st(r),r!==null){var l=p(r);if(l===null)r=null;else{var v=l.tag;if(v===13){if(r=g(l),r!==null)return r;r=null}else if(v===31){if(r=y(l),r!==null)return r;r=null}else if(v===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;r=null}else l!==r&&(r=null)}}return Wg=r,null}function _m(r){switch(r){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(Re()){case je:return 2;case it:return 8;case rt:case vt:return 32;case St:return 268435456;default:return 32}default:return 32}}var Ef=!1,ci=null,Hi=null,Qi=null,Fc=new Map,Ha=new Map,So=[],gr="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 Ql(r,l){switch(r){case"focusin":case"focusout":ci=null;break;case"dragenter":case"dragleave":Hi=null;break;case"mouseover":case"mouseout":Qi=null;break;case"pointerover":case"pointerout":Fc.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ha.delete(l.pointerId)}}function qu(r,l,v,x,z,V){return r===null||r.nativeEvent!==V?(r={blockedOn:l,domEventName:v,eventSystemFlags:x,nativeEvent:V,targetContainers:[z]},l!==null&&(l=on(l),l!==null&&s1(l)),r):(r.eventSystemFlags|=x,l=r.targetContainers,z!==null&&l.indexOf(z)===-1&&l.push(z),r)}function qT(r,l,v,x,z){switch(l){case"focusin":return ci=qu(ci,r,l,v,x,z),!0;case"dragenter":return Hi=qu(Hi,r,l,v,x,z),!0;case"mouseover":return Qi=qu(Qi,r,l,v,x,z),!0;case"pointerover":var V=z.pointerId;return Fc.set(V,qu(Fc.get(V)||null,r,l,v,x,z)),!0;case"gotpointercapture":return V=z.pointerId,Ha.set(V,qu(Ha.get(V)||null,r,l,v,x,z)),!0}return!1}function l1(r){var l=st(r.target);if(l!==null){var v=p(l);if(v!==null){if(l=v.tag,l===13){if(l=g(v),l!==null){r.blockedOn=l,ni(r.priority,function(){Xu(v)});return}}else if(l===31){if(l=y(v),l!==null){r.blockedOn=l,ni(r.priority,function(){Xu(v)});return}}else if(l===3&&v.stateNode.current.memoizedState.isDehydrated){r.blockedOn=v.tag===3?v.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Cm(r){if(r.blockedOn!==null)return!1;for(var l=r.targetContainers;0<l.length;){var v=X0(r.nativeEvent);if(v===null){v=r.nativeEvent;var x=new v.constructor(v.type,v);ya=x,v.target.dispatchEvent(x),ya=null}else return l=on(v),l!==null&&s1(l),r.blockedOn=v,!1;l.shift()}return!0}function wf(r,l,v){Cm(r)&&v.delete(l)}function c1(){Ef=!1,ci!==null&&Cm(ci)&&(ci=null),Hi!==null&&Cm(Hi)&&(Hi=null),Qi!==null&&Cm(Qi)&&(Qi=null),Fc.forEach(wf),Ha.forEach(wf)}function tl(r,l){r.blockedOn===l&&(r.blockedOn=null,Ef||(Ef=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,c1)))}var Sf=null;function u1(r){Sf!==r&&(Sf=r,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Sf===r&&(Sf=null);for(var l=0;l<r.length;l+=3){var v=r[l],x=r[l+1],z=r[l+2];if(typeof x!="function"){if(yf(x||v)===null)continue;break}var V=on(v);V!==null&&(r.splice(l,3),l-=3,Vd(V,{pending:!0,data:z,method:v.method,action:x},x,z))}}))}function Tf(r){function l(be){return tl(be,r)}ci!==null&&tl(ci,r),Hi!==null&&tl(Hi,r),Qi!==null&&tl(Qi,r),Fc.forEach(l),Ha.forEach(l);for(var v=0;v<So.length;v++){var x=So[v];x.blockedOn===r&&(x.blockedOn=null)}for(;0<So.length&&(v=So[0],v.blockedOn===null);)l1(v),v.blockedOn===null&&So.shift();if(v=(r.ownerDocument||r).$$reactFormReplay,v!=null)for(x=0;x<v.length;x+=3){var z=v[x],V=v[x+1],ee=z[Pn]||null;if(typeof V=="function")ee||u1(v);else if(ee){var le=null;if(V&&V.hasAttribute("formAction")){if(z=V,ee=V[Pn]||null)le=ee.formAction;else if(yf(z)!==null)continue}else le=ee.action;typeof le=="function"?v[x+1]=le:(v.splice(x,3),x-=3),u1(v)}}}function q0(){function r(V){V.canIntercept&&V.info==="react-transition"&&V.intercept({handler:function(){return new Promise(function(ee){return z=ee})},focusReset:"manual",scroll:"manual"})}function l(){z!==null&&(z(),z=null),x||setTimeout(v,20)}function v(){if(!x&&!navigation.transition){var V=navigation.currentEntry;V&&V.url!=null&&navigation.navigate(V.url,{state:V.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var x=!1,z=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",l),navigation.addEventListener("navigateerror",l),setTimeout(v,100),function(){x=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),z!==null&&(z(),z=null)}}}function Yg(r){this._internalRoot=r}Xg.prototype.render=Yg.prototype.render=function(r){var l=this._internalRoot;if(l===null)throw Error(a(409));var v=l.current,x=Rr();a1(v,x,r,l,null,null)},Xg.prototype.unmount=Yg.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var l=r.containerInfo;a1(r.current,2,null,r,null,null),of(),l[zo]=null}};function Xg(r){this._internalRoot=r}Xg.prototype.unstable_scheduleHydration=function(r){if(r){var l=Rt();r={blockedOn:null,target:r,priority:l};for(var v=0;v<So.length&&l!==0&&l<So[v].priority;v++);So.splice(v,0,r),v===0&&l1(r)}};var K0=e.version;if(K0!=="19.2.0")throw Error(a(527,K0,"19.2.0"));W.findDOMNode=function(r){var l=r._reactInternals;if(l===void 0)throw typeof r.render=="function"?Error(a(188)):(r=Object.keys(r).join(","),Error(a(268,r)));return r=b(l),r=r!==null?c(r):null,r=r===null?null:r.stateNode,r};var d1={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:I,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Nm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nm.isDisabled&&Nm.supportsFiber)try{Lt=Nm.inject(d1),_t=Nm}catch{}}return Gy.createRoot=function(r,l){if(!E(r))throw Error(a(299));var v=!1,x="",z=ag,V=Zv,ee=sg;return l!=null&&(l.unstable_strictMode===!0&&(v=!0),l.identifierPrefix!==void 0&&(x=l.identifierPrefix),l.onUncaughtError!==void 0&&(z=l.onUncaughtError),l.onCaughtError!==void 0&&(V=l.onCaughtError),l.onRecoverableError!==void 0&&(ee=l.onRecoverableError)),l=Gg(r,1,!1,null,null,v,x,null,z,V,ee,q0),r[zo]=l.current,uf(r),new Yg(l)},Gy.hydrateRoot=function(r,l,v){if(!E(r))throw Error(a(299));var x=!1,z="",V=ag,ee=Zv,le=sg,be=null;return v!=null&&(v.unstable_strictMode===!0&&(x=!0),v.identifierPrefix!==void 0&&(z=v.identifierPrefix),v.onUncaughtError!==void 0&&(V=v.onUncaughtError),v.onCaughtError!==void 0&&(ee=v.onCaughtError),v.onRecoverableError!==void 0&&(le=v.onRecoverableError),v.formState!==void 0&&(be=v.formState)),l=Gg(r,1,!0,l,v??null,x,z,be,V,ee,le,q0),l.context=Yu(null),v=l.current,x=Rr(),x=Je(x),z=Il(x),z.callback=null,Yr(v,z,x),v=x,l.current.lanes=v,en(l,v),Ks(l),r[zo]=l.current,uf(r),new Xg(l)},Gy.version="19.2.0",Gy}var Qy={};/**
80
+ `+x.stack}}var $t=Object.prototype.hasOwnProperty,ze=t.unstable_scheduleCallback,nt=t.unstable_cancelCallback,ct=t.unstable_shouldYield,gt=t.unstable_requestPaint,at=t.unstable_now,Re=t.unstable_getCurrentPriorityLevel,je=t.unstable_ImmediatePriority,ot=t.unstable_UserBlockingPriority,tt=t.unstable_NormalPriority,vt=t.unstable_LowPriority,St=t.unstable_IdlePriority,Nt=t.log,an=t.unstable_setDisableYieldValue,Lt=null,_t=null;function Et(r){if(typeof Nt=="function"&&an(r),_t&&typeof _t.setStrictMode=="function")try{_t.setStrictMode(Lt,r)}catch{}}var xe=Math.clz32?Math.clz32:Dt,Ge=Math.log,bt=Math.LN2;function Dt(r){return r>>>=0,r===0?32:31-(Ge(r)/bt|0)|0}var ut=256,yt=262144,Ht=4194304;function jt(r){var l=r&42;if(l!==0)return l;switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function Ce(r,l,v){var x=r.pendingLanes;if(x===0)return 0;var z=0,V=r.suspendedLanes,ee=r.pingedLanes;r=r.warmLanes;var le=x&134217727;return le!==0?(x=le&~V,x!==0?z=jt(x):(ee&=le,ee!==0?z=jt(ee):v||(v=le&~r,v!==0&&(z=jt(v))))):(le=x&~V,le!==0?z=jt(le):ee!==0?z=jt(ee):v||(v=x&~r,v!==0&&(z=jt(v)))),z===0?0:l!==0&&l!==z&&(l&V)===0&&(V=z&-z,v=l&-l,V>=v||V===32&&(v&4194048)!==0)?l:z}function Ze(r,l){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&l)===0}function ft(r,l){switch(r){case 1:case 2:case 4:case 8:case 64:return l+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Tt(){var r=Ht;return Ht<<=1,(Ht&62914560)===0&&(Ht=4194304),r}function Mt(r){for(var l=[],v=0;31>v;v++)l.push(r);return l}function en(r,l){r.pendingLanes|=l,l!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function Gt(r,l,v,x,z,V){var ee=r.pendingLanes;r.pendingLanes=v,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=v,r.entangledLanes&=v,r.errorRecoveryDisabledLanes&=v,r.shellSuspendCounter=0;var le=r.entanglements,be=r.expirationTimes,Me=r.hiddenUpdates;for(v=ee&~v;0<v;){var Fe=31-xe(v),We=1<<Fe;le[Fe]=0,be[Fe]=-1;var ke=Me[Fe];if(ke!==null)for(Me[Fe]=null,Fe=0;Fe<ke.length;Fe++){var He=ke[Fe];He!==null&&(He.lane&=-536870913)}v&=~We}x!==0&&sn(r,x,0),V!==0&&z===0&&r.tag!==0&&(r.suspendedLanes|=V&~(ee&~l))}function sn(r,l,v){r.pendingLanes|=l,r.suspendedLanes&=~l;var x=31-xe(l);r.entangledLanes|=l,r.entanglements[x]=r.entanglements[x]|1073741824|v&261930}function Rn(r,l){var v=r.entangledLanes|=l;for(r=r.entanglements;v;){var x=31-xe(v),z=1<<x;z&l|r[x]&l&&(r[x]|=l),v&=~z}}function Yt(r,l){var v=l&-l;return v=(v&42)!==0?1:Je(v),(v&(r.suspendedLanes|l))!==0?0:v}function Je(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function Fn(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function Rt(){var r=W.p;return r!==0?r:(r=window.event,r===void 0?32:_m(r.type))}function ni(r,l){var v=W.p;try{return W.p=r,l()}finally{W.p=v}}var vo=Math.random().toString(36).slice(2),Xt="__reactFiber$"+vo,Pn="__reactProps$"+vo,zo="__reactContainer$"+vo,mo="__reactEvents$"+vo,ki="__reactListeners$"+vo,wr="__reactHandles$"+vo,it="__reactResources$"+vo,Ee="__reactMarker$"+vo;function Ke(r){delete r[Xt],delete r[Pn],delete r[mo],delete r[ki],delete r[wr]}function st(r){var l=r[Xt];if(l)return l;for(var v=r.parentNode;v;){if(l=v[zo]||v[Xt]){if(v=l.alternate,l.child!==null||v!==null&&v.child!==null)for(r=ms(r);r!==null;){if(v=r[Xt])return v;r=ms(r)}return l}r=v,v=r.parentNode}return null}function on(r){if(r=r[Xt]||r[zo]){var l=r.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return r}return null}function Zn(r){var l=r.tag;if(l===5||l===26||l===27||l===6)return r.stateNode;throw Error(a(33))}function Ln(r){var l=r[it];return l||(l=r[it]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function rt(r){r[Ee]=!0}var vn=new Set,yn={};function gi(r,l){On(r,l),On(r+"Capture",l)}function On(r,l){for(yn[r]=l,r=0;r<l.length;r++)vn.add(l[r])}var oi=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),va={},rc={};function ac(r){return $t.call(rc,r)?!0:$t.call(va,r)?!1:oi.test(r)?rc[r]=!0:(va[r]=!0,!1)}function sc(r,l,v){if(ac(l))if(v===null)r.removeAttribute(l);else{switch(typeof v){case"undefined":case"function":case"symbol":r.removeAttribute(l);return;case"boolean":var x=l.toLowerCase().slice(0,5);if(x!=="data-"&&x!=="aria-"){r.removeAttribute(l);return}}r.setAttribute(l,""+v)}}function Ed(r,l,v){if(v===null)r.removeAttribute(l);else{switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(l);return}r.setAttribute(l,""+v)}}function Ga(r,l,v,x){if(x===null)r.removeAttribute(v);else{switch(typeof x){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(v);return}r.setAttributeNS(l,v,""+x)}}function bi(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function wd(r){var l=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function xl(r,l,v){var x=Object.getOwnPropertyDescriptor(r.constructor.prototype,l);if(!r.hasOwnProperty(l)&&typeof x<"u"&&typeof x.get=="function"&&typeof x.set=="function"){var z=x.get,V=x.set;return Object.defineProperty(r,l,{configurable:!0,get:function(){return z.call(this)},set:function(ee){v=""+ee,V.call(this,ee)}}),Object.defineProperty(r,l,{enumerable:x.enumerable}),{getValue:function(){return v},setValue:function(ee){v=""+ee},stopTracking:function(){r._valueTracker=null,delete r[l]}}}}function su(r){if(!r._valueTracker){var l=wd(r)?"checked":"value";r._valueTracker=xl(r,l,""+r[l])}}function Sd(r){if(!r)return!1;var l=r._valueTracker;if(!l)return!0;var v=l.getValue(),x="";return r&&(x=wd(r)?r.checked?"true":"false":r.value),r=x,r!==v?(l.setValue(r),!0):!1}function lu(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var sv=/[\n"\\]/g;function Ji(r){return r.replace(sv,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function cu(r,l,v,x,z,V,ee,le){r.name="",ee!=null&&typeof ee!="function"&&typeof ee!="symbol"&&typeof ee!="boolean"?r.type=ee:r.removeAttribute("type"),l!=null?ee==="number"?(l===0&&r.value===""||r.value!=l)&&(r.value=""+bi(l)):r.value!==""+bi(l)&&(r.value=""+bi(l)):ee!=="submit"&&ee!=="reset"||r.removeAttribute("value"),l!=null?_l(r,ee,bi(l)):v!=null?_l(r,ee,bi(v)):x!=null&&r.removeAttribute("value"),z==null&&V!=null&&(r.defaultChecked=!!V),z!=null&&(r.checked=z&&typeof z!="function"&&typeof z!="symbol"),le!=null&&typeof le!="function"&&typeof le!="symbol"&&typeof le!="boolean"?r.name=""+bi(le):r.removeAttribute("name")}function lc(r,l,v,x,z,V,ee,le){if(V!=null&&typeof V!="function"&&typeof V!="symbol"&&typeof V!="boolean"&&(r.type=V),l!=null||v!=null){if(!(V!=="submit"&&V!=="reset"||l!=null)){su(r);return}v=v!=null?""+bi(v):"",l=l!=null?""+bi(l):v,le||l===r.value||(r.value=l),r.defaultValue=l}x=x??z,x=typeof x!="function"&&typeof x!="symbol"&&!!x,r.checked=le?r.checked:!!x,r.defaultChecked=!!x,ee!=null&&typeof ee!="function"&&typeof ee!="symbol"&&typeof ee!="boolean"&&(r.name=ee),su(r)}function _l(r,l,v){l==="number"&&lu(r.ownerDocument)===r||r.defaultValue===""+v||(r.defaultValue=""+v)}function cc(r,l,v,x){if(r=r.options,l){l={};for(var z=0;z<v.length;z++)l["$"+v[z]]=!0;for(v=0;v<r.length;v++)z=l.hasOwnProperty("$"+r[v].value),r[v].selected!==z&&(r[v].selected=z),z&&x&&(r[v].defaultSelected=!0)}else{for(v=""+bi(v),l=null,z=0;z<r.length;z++){if(r[z].value===v){r[z].selected=!0,x&&(r[z].defaultSelected=!0);return}l!==null||r[z].disabled||(l=r[z])}l!==null&&(l.selected=!0)}}function Td(r,l,v){if(l!=null&&(l=""+bi(l),l!==r.value&&(r.value=l),v==null)){r.defaultValue!==l&&(r.defaultValue=l);return}r.defaultValue=v!=null?""+bi(v):""}function uc(r,l,v,x){if(l==null){if(x!=null){if(v!=null)throw Error(a(92));if(M(x)){if(1<x.length)throw Error(a(93));x=x[0]}v=x}v==null&&(v=""),l=v}v=bi(l),r.defaultValue=v,x=r.textContent,x===v&&x!==""&&x!==null&&(r.value=x),su(r)}function Ii(r,l){if(l){var v=r.firstChild;if(v&&v===r.lastChild&&v.nodeType===3){v.nodeValue=l;return}}r.textContent=l}var wp=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 Sp(r,l,v){var x=l.indexOf("--")===0;v==null||typeof v=="boolean"||v===""?x?r.setProperty(l,""):l==="float"?r.cssFloat="":r[l]="":x?r.setProperty(l,v):typeof v!="number"||v===0||wp.has(l)?l==="float"?r.cssFloat=v:r[l]=(""+v).trim():r[l]=v+"px"}function Qa(r,l,v){if(l!=null&&typeof l!="object")throw Error(a(62));if(r=r.style,v!=null){for(var x in v)!v.hasOwnProperty(x)||l!=null&&l.hasOwnProperty(x)||(x.indexOf("--")===0?r.setProperty(x,""):x==="float"?r.cssFloat="":r[x]="");for(var z in l)x=l[z],l.hasOwnProperty(z)&&v[z]!==x&&Sp(r,z,x)}else for(var V in l)l.hasOwnProperty(V)&&Sp(r,V,l[V])}function vh(r){if(r.indexOf("-")===-1)return!1;switch(r){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 lv=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"]]),uu=/^[\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 Sr(r){return uu.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function Br(){}var ya=null;function du(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Ea=null,wa=null;function fu(r){var l=on(r);if(l&&(r=l.stateNode)){var v=r[Pn]||null;e:switch(r=l.stateNode,l.type){case"input":if(cu(r,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name),l=v.name,v.type==="radio"&&l!=null){for(v=r;v.parentNode;)v=v.parentNode;for(v=v.querySelectorAll('input[name="'+Ji(""+l)+'"][type="radio"]'),l=0;l<v.length;l++){var x=v[l];if(x!==r&&x.form===r.form){var z=x[Pn]||null;if(!z)throw Error(a(90));cu(x,z.value,z.defaultValue,z.defaultValue,z.checked,z.defaultChecked,z.type,z.name)}}for(l=0;l<v.length;l++)x=v[l],x.form===r.form&&Sd(x)}break e;case"textarea":Td(r,v.value,v.defaultValue);break e;case"select":l=v.value,l!=null&&cc(r,!!v.multiple,l,!1)}}}var Ns=!1;function yh(r,l,v){if(Ns)return r(l,v);Ns=!0;try{var x=r(l);return x}finally{if(Ns=!1,(Ea!==null||wa!==null)&&(of(),Ea&&(l=Ea,r=wa,wa=Ea=null,fu(l),r)))for(l=0;l<r.length;l++)fu(r[l])}}function Bo(r,l){var v=r.stateNode;if(v===null)return null;var x=v[Pn]||null;if(x===null)return null;v=x[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(x=!x.disabled)||(r=r.type,x=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!x;break e;default:r=!1}if(r)return null;if(v&&typeof v!="function")throw Error(a(231,l,typeof v));return v}var Sa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),dc=!1;if(Sa)try{var Ta={};Object.defineProperty(Ta,"passive",{get:function(){dc=!0}}),window.addEventListener("test",Ta,Ta),window.removeEventListener("test",Ta,Ta)}catch{dc=!1}var Aa=null,Eh=null,Ad=null;function wh(){if(Ad)return Ad;var r,l=Eh,v=l.length,x,z="value"in Aa?Aa.value:Aa.textContent,V=z.length;for(r=0;r<v&&l[r]===z[r];r++);var ee=v-r;for(x=1;x<=ee&&l[v-x]===z[V-x];x++);return Ad=z.slice(r,1<x?1-x:void 0)}function ce(r){var l=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&l===13&&(r=13)):r=l,r===10&&(r=13),32<=r||r===13?r:0}function _e(){return!0}function Xe(){return!1}function lt(r){function l(v,x,z,V,ee){this._reactName=v,this._targetInst=z,this.type=x,this.nativeEvent=V,this.target=ee,this.currentTarget=null;for(var le in r)r.hasOwnProperty(le)&&(v=r[le],this[le]=v?v(V):V[le]);return this.isDefaultPrevented=(V.defaultPrevented!=null?V.defaultPrevented:V.returnValue===!1)?_e:Xe,this.isPropagationStopped=Xe,this}return u(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var v=this.nativeEvent;v&&(v.preventDefault?v.preventDefault():typeof v.returnValue!="unknown"&&(v.returnValue=!1),this.isDefaultPrevented=_e)},stopPropagation:function(){var v=this.nativeEvent;v&&(v.stopPropagation?v.stopPropagation():typeof v.cancelBubble!="unknown"&&(v.cancelBubble=!0),this.isPropagationStopped=_e)},persist:function(){},isPersistent:_e}),l}var Cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qt=lt(Cn),qn=u({},Cn,{view:0,detail:0}),Ko=lt(qn),Fo,ao,ii,Bi=u({},qn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ca,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==ii&&(ii&&r.type==="mousemove"?(Fo=r.screenX-ii.screenX,ao=r.screenY-ii.screenY):ao=Fo=0,ii=r),Fo)},movementY:function(r){return"movementY"in r?r.movementY:ao}}),No=lt(Bi),er=u({},Bi,{dataTransfer:0}),tr=lt(er),Wa=u({},qn,{relatedTarget:0}),Tr=lt(Wa),Ya=u({},Cn,{animationName:0,elapsedTime:0,pseudoElement:0}),Sh=lt(Ya),xa=u({},Cn,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),_a=lt(xa),Xa=u({},Cn,{data:0}),KE=lt(Xa),cv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Rs={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"},ZE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function qa(r){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(r):(r=ZE[r])?!!l[r]:!1}function Ca(){return qa}var Tp=u({},qn,{key:function(r){if(r.key){var l=cv[r.key]||r.key;if(l!=="Unidentified")return l}return r.type==="keypress"?(r=ce(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?Rs[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ca,charCode:function(r){return r.type==="keypress"?ce(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?ce(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),Ap=lt(Tp),uv=u({},Bi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ka=lt(uv),jT=u({},qn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ca}),JE=lt(jT),ew=u({},Cn,{propertyName:0,elapsedTime:0,pseudoElement:0}),zT=lt(ew),dv=u({},Bi,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),BT=lt(dv),tw=u({},Cn,{newState:0,oldState:0}),fv=lt(tw),xp=[9,13,27,32],xd=Sa&&"CompositionEvent"in window,hu=null;Sa&&"documentMode"in document&&(hu=document.documentMode);var Fi=Sa&&"TextEvent"in window&&!hu,hv=Sa&&(!xd||hu&&8<hu&&11>=hu),Th=" ",fc=!1;function _p(r,l){switch(r){case"keyup":return xp.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mv(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var mu=!1;function nw(r,l){switch(r){case"compositionend":return mv(l);case"keypress":return l.which!==32?null:(fc=!0,Th);case"textInput":return r=l.data,r===Th&&fc?null:r;default:return null}}function FT(r,l){if(mu)return r==="compositionend"||!xd&&_p(r,l)?(r=wh(),Ad=Eh=Aa=null,mu=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return hv&&l.locale!=="ko"?null:l.data;default:return null}}var pv={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 Ls(r){var l=r&&r.nodeName&&r.nodeName.toLowerCase();return l==="input"?!!pv[r.type]:l==="textarea"}function gv(r,l,v,x){Ea?wa?wa.push(x):wa=[x]:Ea=x,l=ym(l,"onChange"),0<l.length&&(v=new Qt("onChange","change",null,v,x),r.push({event:v,listeners:l}))}var pu=null,hc=null;function gu(r){Kw(r,0)}function _d(r){var l=Zn(r);if(Sd(l))return r}function bv(r,l){if(r==="change")return l}var Cp=!1;if(Sa){var nr;if(Sa){var Za="oninput"in document;if(!Za){var vv=document.createElement("div");vv.setAttribute("oninput","return;"),Za=typeof vv.oninput=="function"}nr=Za}else nr=!1;Cp=nr&&(!document.documentMode||9<document.documentMode)}function Np(){pu&&(pu.detachEvent("onpropertychange",Rp),hc=pu=null)}function Rp(r){if(r.propertyName==="value"&&_d(hc)){var l=[];gv(l,hc,r,du(r)),yh(gu,l)}}function ow(r,l,v){r==="focusin"?(Np(),pu=l,hc=v,pu.attachEvent("onpropertychange",Rp)):r==="focusout"&&Np()}function iw(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return _d(hc)}function mc(r,l){if(r==="click")return _d(l)}function bu(r,l){if(r==="input"||r==="change")return _d(l)}function rw(r,l){return r===l&&(r!==0||1/r===1/l)||r!==r&&l!==l}var Pi=typeof Object.is=="function"?Object.is:rw;function Na(r,l){if(Pi(r,l))return!0;if(typeof r!="object"||r===null||typeof l!="object"||l===null)return!1;var v=Object.keys(r),x=Object.keys(l);if(v.length!==x.length)return!1;for(x=0;x<v.length;x++){var z=v[x];if(!$t.call(l,z)||!Pi(r[z],l[z]))return!1}return!0}function yv(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function Ev(r,l){var v=yv(r);r=0;for(var x;v;){if(v.nodeType===3){if(x=r+v.textContent.length,r<=l&&x>=l)return{node:v,offset:l-r};r=x}e:{for(;v;){if(v.nextSibling){v=v.nextSibling;break e}v=v.parentNode}v=void 0}v=yv(v)}}function vu(r,l){return r&&l?r===l?!0:r&&r.nodeType===3?!1:l&&l.nodeType===3?vu(r,l.parentNode):"contains"in r?r.contains(l):r.compareDocumentPosition?!!(r.compareDocumentPosition(l)&16):!1:!1}function pc(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var l=lu(r.document);l instanceof r.HTMLIFrameElement;){try{var v=typeof l.contentWindow.location.href=="string"}catch{v=!1}if(v)r=l.contentWindow;else break;l=lu(r.document)}return l}function Ah(r){var l=r&&r.nodeName&&r.nodeName.toLowerCase();return l&&(l==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||l==="textarea"||r.contentEditable==="true")}var xh=Sa&&"documentMode"in document&&11>=document.documentMode,gc=null,Cd=null,Ra=null,Ja=!1;function Lp(r,l,v){var x=v.window===v?v.document:v.nodeType===9?v:v.ownerDocument;Ja||gc==null||gc!==lu(x)||(x=gc,"selectionStart"in x&&Ah(x)?x={start:x.selectionStart,end:x.selectionEnd}:(x=(x.ownerDocument&&x.ownerDocument.defaultView||window).getSelection(),x={anchorNode:x.anchorNode,anchorOffset:x.anchorOffset,focusNode:x.focusNode,focusOffset:x.focusOffset}),Ra&&Na(Ra,x)||(Ra=x,x=ym(Cd,"onSelect"),0<x.length&&(l=new Qt("onSelect","select",null,l,v),r.push({event:l,listeners:x}),l.target=gc)))}function Cl(r,l){var v={};return v[r.toLowerCase()]=l.toLowerCase(),v["Webkit"+r]="webkit"+l,v["Moz"+r]="moz"+l,v}var es={animationend:Cl("Animation","AnimationEnd"),animationiteration:Cl("Animation","AnimationIteration"),animationstart:Cl("Animation","AnimationStart"),transitionrun:Cl("Transition","TransitionRun"),transitionstart:Cl("Transition","TransitionStart"),transitioncancel:Cl("Transition","TransitionCancel"),transitionend:Cl("Transition","TransitionEnd")},Nd={},bc={};Sa&&(bc=document.createElement("div").style,"AnimationEvent"in window||(delete es.animationend.animation,delete es.animationiteration.animation,delete es.animationstart.animation),"TransitionEvent"in window||delete es.transitionend.transition);function Hn(r){if(Nd[r])return Nd[r];if(!es[r])return r;var l=es[r],v;for(v in l)if(l.hasOwnProperty(v)&&v in bc)return Nd[r]=l[v];return r}var _h=Hn("animationend"),wv=Hn("animationiteration"),Op=Hn("animationstart"),yu=Hn("transitionrun"),Ch=Hn("transitionstart"),Os=Hn("transitioncancel"),aw=Hn("transitionend"),Ds=new Map,Rd="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(" ");Rd.push("scrollEnd");function or(r,l){Ds.set(r,l),gi(l,[r])}var Eu=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},yo=[],vi=0,La=0;function Fr(){for(var r=vi,l=La=vi=0;l<r;){var v=yo[l];yo[l++]=null;var x=yo[l];yo[l++]=null;var z=yo[l];yo[l++]=null;var V=yo[l];if(yo[l++]=null,x!==null&&z!==null){var ee=x.pending;ee===null?z.next=z:(z.next=ee.next,ee.next=z),x.pending=z}V!==0&&Dp(v,z,V)}}function Pr(r,l,v,x){yo[vi++]=r,yo[vi++]=l,yo[vi++]=v,yo[vi++]=x,La|=x,r.lanes|=x,r=r.alternate,r!==null&&(r.lanes|=x)}function Oa(r,l,v,x){return Pr(r,l,v,x),Nh(r)}function Nl(r,l){return Pr(r,null,null,l),Nh(r)}function Dp(r,l,v){r.lanes|=v;var x=r.alternate;x!==null&&(x.lanes|=v);for(var z=!1,V=r.return;V!==null;)V.childLanes|=v,x=V.alternate,x!==null&&(x.childLanes|=v),V.tag===22&&(r=V.stateNode,r===null||r._visibility&1||(z=!0)),r=V,V=V.return;return r.tag===3?(V=r.stateNode,z&&l!==null&&(z=31-xe(v),r=V.hiddenUpdates,x=r[z],x===null?r[z]=[l]:x.push(l),l.lane=v|536870912),V):null}function Nh(r){if(50<nf)throw nf=0,um=null,Error(a(185));for(var l=r.return;l!==null;)r=l,l=r.return;return r.tag===3?r.stateNode:null}var ir={};function sw(r,l,v,x){this.tag=r,this.key=v,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=x,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Mo(r,l,v,x){return new sw(r,l,v,x)}function wu(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Rl(r,l){var v=r.alternate;return v===null?(v=Mo(r.tag,l,r.key,r.mode),v.elementType=r.elementType,v.type=r.type,v.stateNode=r.stateNode,v.alternate=r,r.alternate=v):(v.pendingProps=l,v.type=r.type,v.flags=0,v.subtreeFlags=0,v.deletions=null),v.flags=r.flags&65011712,v.childLanes=r.childLanes,v.lanes=r.lanes,v.child=r.child,v.memoizedProps=r.memoizedProps,v.memoizedState=r.memoizedState,v.updateQueue=r.updateQueue,l=r.dependencies,v.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},v.sibling=r.sibling,v.index=r.index,v.ref=r.ref,v.refCleanup=r.refCleanup,v}function Sv(r,l){r.flags&=65011714;var v=r.alternate;return v===null?(r.childLanes=0,r.lanes=l,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=v.childLanes,r.lanes=v.lanes,r.child=v.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=v.memoizedProps,r.memoizedState=v.memoizedState,r.updateQueue=v.updateQueue,r.type=v.type,l=v.dependencies,r.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),r}function Mp(r,l,v,x,z,V){var ee=0;if(x=r,typeof r=="function")wu(r)&&(ee=1);else if(typeof r=="string")ee=G0(r,v,ae.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case U:return r=Mo(31,v,l,z),r.elementType=U,r.lanes=V,r;case S:return Ll(v.children,z,V,l);case T:ee=8,z|=24;break;case A:return r=Mo(12,v,l,z|2),r.elementType=A,r.lanes=V,r;case R:return r=Mo(13,v,l,z),r.elementType=R,r.lanes=V,r;case C:return r=Mo(19,v,l,z),r.elementType=C,r.lanes=V,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case O:ee=10;break e;case N:ee=9;break e;case D:ee=11;break e;case $:ee=14;break e;case F:ee=16,x=null;break e}ee=29,v=Error(a(130,r===null?"null":typeof r,"")),x=null}return l=Mo(ee,v,l,z),l.elementType=r,l.type=x,l.lanes=V,l}function Ll(r,l,v,x){return r=Mo(7,r,x,l),r.lanes=v,r}function Ld(r,l,v){return r=Mo(6,r,null,l),r.lanes=v,r}function Tv(r){var l=Mo(18,null,null,0);return l.stateNode=r,l}function kp(r,l,v){return l=Mo(4,r.children!==null?r.children:[],r.key,l),l.lanes=v,l.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},l}var Av=new WeakMap;function Vr(r,l){if(typeof r=="object"&&r!==null){var v=Av.get(r);return v!==void 0?v:(l={value:r,source:l,stack:xt(l)},Av.set(r,l),l)}return{value:r,source:l,stack:xt(l)}}var Gr=[],Su=0,Rh=null,Po=0,Ar=[],rr=0,ts=null,xr=1,ns="";function Da(r,l){Gr[Su++]=Po,Gr[Su++]=Rh,Rh=r,Po=l}function xv(r,l,v){Ar[rr++]=xr,Ar[rr++]=ns,Ar[rr++]=ts,ts=r;var x=xr;r=ns;var z=32-xe(x)-1;x&=~(1<<z),v+=1;var V=32-xe(l)+z;if(30<V){var ee=z-z%5;V=(x&(1<<ee)-1).toString(32),x>>=ee,z-=ee,xr=1<<32-xe(l)+z|v<<z|x,ns=V+r}else xr=1<<V|v<<z|x,ns=r}function Od(r){r.return!==null&&(Da(r,1),xv(r,1,0))}function Ip(r){for(;r===Rh;)Rh=Gr[--Su],Gr[Su]=null,Po=Gr[--Su],Gr[Su]=null;for(;r===ts;)ts=Ar[--rr],Ar[rr]=null,ns=Ar[--rr],Ar[rr]=null,xr=Ar[--rr],Ar[rr]=null}function Lh(r,l){Ar[rr++]=xr,Ar[rr++]=ns,Ar[rr++]=ts,xr=l.id,ns=l.overflow,ts=r}var yi=null,lo=null,wn=!1,Ms=null,ri=!1,ks=Error(a(519));function Ma(r){var l=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Md(Vr(l,r)),ks}function Oh(r){var l=r.stateNode,v=r.type,x=r.memoizedProps;switch(l[Xt]=r,l[Pn]=x,v){case"dialog":En("cancel",l),En("close",l);break;case"iframe":case"object":case"embed":En("load",l);break;case"video":case"audio":for(v=0;v<cf.length;v++)En(cf[v],l);break;case"source":En("error",l);break;case"img":case"image":case"link":En("error",l),En("load",l);break;case"details":En("toggle",l);break;case"input":En("invalid",l),lc(l,x.value,x.defaultValue,x.checked,x.defaultChecked,x.type,x.name,!0);break;case"select":En("invalid",l);break;case"textarea":En("invalid",l),uc(l,x.value,x.defaultValue,x.children)}v=x.children,typeof v!="string"&&typeof v!="number"&&typeof v!="bigint"||l.textContent===""+v||x.suppressHydrationWarning===!0||k0(l.textContent,v)?(x.popover!=null&&(En("beforetoggle",l),En("toggle",l)),x.onScroll!=null&&En("scroll",l),x.onScrollEnd!=null&&En("scrollend",l),x.onClick!=null&&(l.onclick=Br),l=!0):l=!1,l||Ma(r,!0)}function Dd(r){for(yi=r.return;yi;)switch(yi.tag){case 5:case 31:case 13:ri=!1;return;case 27:case 3:ri=!0;return;default:yi=yi.return}}function Is(r){if(r!==yi)return!1;if(!wn)return Dd(r),wn=!0,!1;var l=r.tag,v;if((v=l!==3&&l!==27)&&((v=l===5)&&(v=r.type,v=!(v!=="form"&&v!=="button")||df(r.type,r.memoizedProps)),v=!v),v&&lo&&Ma(r),Dd(r),l===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(317));lo=Hg(r)}else if(l===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(317));lo=Hg(r)}else l===27?(l=lo,hs(r.type)?(r=Sm,Sm=null,lo=r):lo=l):lo=yi?pr(r.stateNode.nextSibling):null;return!0}function vc(){lo=yi=null,wn=!1}function _v(){var r=Ms;return r!==null&&(Oo===null?Oo=r:Oo.push.apply(Oo,r),Ms=null),r}function Md(r){Ms===null?Ms=[r]:Ms.push(r)}var $p=Z(null),Ol=null,os=null;function ar(r,l,v){te($p,l._currentValue),l._currentValue=v}function is(r){r._currentValue=$p.current,re($p)}function Up(r,l,v){for(;r!==null;){var x=r.alternate;if((r.childLanes&l)!==l?(r.childLanes|=l,x!==null&&(x.childLanes|=l)):x!==null&&(x.childLanes&l)!==l&&(x.childLanes|=l),r===v)break;r=r.return}}function $s(r,l,v,x){var z=r.child;for(z!==null&&(z.return=r);z!==null;){var V=z.dependencies;if(V!==null){var ee=z.child;V=V.firstContext;e:for(;V!==null;){var le=V;V=z;for(var be=0;be<l.length;be++)if(le.context===l[be]){V.lanes|=v,le=V.alternate,le!==null&&(le.lanes|=v),Up(V.return,v,r),x||(ee=null);break e}V=le.next}}else if(z.tag===18){if(ee=z.return,ee===null)throw Error(a(341));ee.lanes|=v,V=ee.alternate,V!==null&&(V.lanes|=v),Up(ee,v,r),ee=null}else ee=z.child;if(ee!==null)ee.return=z;else for(ee=z;ee!==null;){if(ee===r){ee=null;break}if(z=ee.sibling,z!==null){z.return=ee.return,ee=z;break}ee=ee.return}z=ee}}function Ei(r,l,v,x){r=null;for(var z=l,V=!1;z!==null;){if(!V){if((z.flags&524288)!==0)V=!0;else if((z.flags&262144)!==0)break}if(z.tag===10){var ee=z.alternate;if(ee===null)throw Error(a(387));if(ee=ee.memoizedProps,ee!==null){var le=z.type;Pi(z.pendingProps.value,ee.value)||(r!==null?r.push(le):r=[le])}}else if(z===ue.current){if(ee=z.alternate,ee===null)throw Error(a(387));ee.memoizedState.memoizedState!==z.memoizedState.memoizedState&&(r!==null?r.push(xm):r=[xm])}z=z.return}r!==null&&$s(l,r,v,x),l.flags|=262144}function Tu(r){for(r=r.firstContext;r!==null;){if(!Pi(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function qt(r){Ol=r,os=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function Ye(r){return Dh(Ol,r)}function Dl(r,l){return Ol===null&&qt(r),Dh(r,l)}function Dh(r,l){var v=l._currentValue;if(l={context:l,memoizedValue:v,next:null},os===null){if(r===null)throw Error(a(308));os=l,r.dependencies={lanes:0,firstContext:l},r.flags|=524288}else os=os.next=l;return v}var ko=typeof AbortController<"u"?AbortController:function(){var r=[],l=this.signal={aborted:!1,addEventListener:function(v,x){r.push(x)}};this.abort=function(){l.aborted=!0,r.forEach(function(v){return v()})}},Cv=t.unstable_scheduleCallback,Nv=t.unstable_NormalPriority,Vo={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Mh(){return{controller:new ko,data:new Map,refCount:0}}function kh(r){r.refCount--,r.refCount===0&&Cv(Nv,function(){r.controller.abort()})}var Au=null,Ih=0,yc=0,Zo=null;function Vn(r,l){if(Au===null){var v=Au=[];Ih=0,yc=Lg(),Zo={status:"pending",value:void 0,then:function(x){v.push(x)}}}return Ih++,l.then($h,$h),l}function $h(){if(--Ih===0&&Au!==null){Zo!==null&&(Zo.status="fulfilled");var r=Au;Au=null,yc=0,Zo=null;for(var l=0;l<r.length;l++)(0,r[l])()}}function Uh(r,l){var v=[],x={status:"pending",value:null,reason:null,then:function(z){v.push(z)}};return r.then(function(){x.status="fulfilled",x.value=l;for(var z=0;z<v.length;z++)(0,v[z])(l)},function(z){for(x.status="rejected",x.reason=z,z=0;z<v.length;z++)(0,v[z])(void 0)}),x}var Ml=I.S;I.S=function(r,l){w0=at(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&Vn(r,l),Ml!==null&&Ml(r,l)};var Qr=Z(null);function Wr(){var r=Qr.current;return r!==null?r:eo.pooledCache}function kd(r,l){l===null?te(Qr,Qr.current):te(Qr,l.pool)}function xu(){var r=Wr();return r===null?null:{parent:Vo._currentValue,pool:r}}var Ec=Error(a(460)),_u=Error(a(474)),Id=Error(a(542)),Cu={then:function(){}};function Rv(r){return r=r.status,r==="fulfilled"||r==="rejected"}function Lv(r,l,v){switch(v=r[v],v===void 0?r.push(l):v!==l&&(l.then(Br,Br),l=v),l.status){case"fulfilled":return l.value;case"rejected":throw r=l.reason,Hp(r),r;default:if(typeof l.status=="string")l.then(Br,Br);else{if(r=eo,r!==null&&100<r.shellSuspendCounter)throw Error(a(482));r=l,r.status="pending",r.then(function(x){if(l.status==="pending"){var z=l;z.status="fulfilled",z.value=x}},function(x){if(l.status==="pending"){var z=l;z.status="rejected",z.reason=x}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw r=l.reason,Hp(r),r}throw Sc=l,Ec}}function wc(r){try{var l=r._init;return l(r._payload)}catch(v){throw v!==null&&typeof v=="object"&&typeof v.then=="function"?(Sc=v,Ec):v}}var Sc=null;function Ov(){if(Sc===null)throw Error(a(459));var r=Sc;return Sc=null,r}function Hp(r){if(r===Ec||r===Id)throw Error(a(483))}var Tc=null,Nu=0;function Hh(r){var l=Nu;return Nu+=1,Tc===null&&(Tc=[]),Lv(Tc,r,l)}function $d(r,l){l=l.props.ref,r.ref=l!==void 0?l:null}function jh(r,l){throw l.$$typeof===d?Error(a(525)):(r=Object.prototype.toString.call(l),Error(a(31,r==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":r)))}function lw(r){function l(Ne,Te){if(r){var Oe=Ne.deletions;Oe===null?(Ne.deletions=[Te],Ne.flags|=16):Oe.push(Te)}}function v(Ne,Te){if(!r)return null;for(;Te!==null;)l(Ne,Te),Te=Te.sibling;return null}function x(Ne){for(var Te=new Map;Ne!==null;)Ne.key!==null?Te.set(Ne.key,Ne):Te.set(Ne.index,Ne),Ne=Ne.sibling;return Te}function z(Ne,Te){return Ne=Rl(Ne,Te),Ne.index=0,Ne.sibling=null,Ne}function V(Ne,Te,Oe){return Ne.index=Oe,r?(Oe=Ne.alternate,Oe!==null?(Oe=Oe.index,Oe<Te?(Ne.flags|=67108866,Te):Oe):(Ne.flags|=67108866,Te)):(Ne.flags|=1048576,Te)}function ee(Ne){return r&&Ne.alternate===null&&(Ne.flags|=67108866),Ne}function le(Ne,Te,Oe,Qe){return Te===null||Te.tag!==6?(Te=Ld(Oe,Ne.mode,Qe),Te.return=Ne,Te):(Te=z(Te,Oe),Te.return=Ne,Te)}function be(Ne,Te,Oe,Qe){var Ot=Oe.type;return Ot===S?Fe(Ne,Te,Oe.props.children,Qe,Oe.key):Te!==null&&(Te.elementType===Ot||typeof Ot=="object"&&Ot!==null&&Ot.$$typeof===F&&wc(Ot)===Te.type)?(Te=z(Te,Oe.props),$d(Te,Oe),Te.return=Ne,Te):(Te=Mp(Oe.type,Oe.key,Oe.props,null,Ne.mode,Qe),$d(Te,Oe),Te.return=Ne,Te)}function Me(Ne,Te,Oe,Qe){return Te===null||Te.tag!==4||Te.stateNode.containerInfo!==Oe.containerInfo||Te.stateNode.implementation!==Oe.implementation?(Te=kp(Oe,Ne.mode,Qe),Te.return=Ne,Te):(Te=z(Te,Oe.children||[]),Te.return=Ne,Te)}function Fe(Ne,Te,Oe,Qe,Ot){return Te===null||Te.tag!==7?(Te=Ll(Oe,Ne.mode,Qe,Ot),Te.return=Ne,Te):(Te=z(Te,Oe),Te.return=Ne,Te)}function We(Ne,Te,Oe){if(typeof Te=="string"&&Te!==""||typeof Te=="number"||typeof Te=="bigint")return Te=Ld(""+Te,Ne.mode,Oe),Te.return=Ne,Te;if(typeof Te=="object"&&Te!==null){switch(Te.$$typeof){case h:return Oe=Mp(Te.type,Te.key,Te.props,null,Ne.mode,Oe),$d(Oe,Te),Oe.return=Ne,Oe;case m:return Te=kp(Te,Ne.mode,Oe),Te.return=Ne,Te;case F:return Te=wc(Te),We(Ne,Te,Oe)}if(M(Te)||P(Te))return Te=Ll(Te,Ne.mode,Oe,null),Te.return=Ne,Te;if(typeof Te.then=="function")return We(Ne,Hh(Te),Oe);if(Te.$$typeof===O)return We(Ne,Dl(Ne,Te),Oe);jh(Ne,Te)}return null}function ke(Ne,Te,Oe,Qe){var Ot=Te!==null?Te.key:null;if(typeof Oe=="string"&&Oe!==""||typeof Oe=="number"||typeof Oe=="bigint")return Ot!==null?null:le(Ne,Te,""+Oe,Qe);if(typeof Oe=="object"&&Oe!==null){switch(Oe.$$typeof){case h:return Oe.key===Ot?be(Ne,Te,Oe,Qe):null;case m:return Oe.key===Ot?Me(Ne,Te,Oe,Qe):null;case F:return Oe=wc(Oe),ke(Ne,Te,Oe,Qe)}if(M(Oe)||P(Oe))return Ot!==null?null:Fe(Ne,Te,Oe,Qe,null);if(typeof Oe.then=="function")return ke(Ne,Te,Hh(Oe),Qe);if(Oe.$$typeof===O)return ke(Ne,Te,Dl(Ne,Oe),Qe);jh(Ne,Oe)}return null}function He(Ne,Te,Oe,Qe,Ot){if(typeof Qe=="string"&&Qe!==""||typeof Qe=="number"||typeof Qe=="bigint")return Ne=Ne.get(Oe)||null,le(Te,Ne,""+Qe,Ot);if(typeof Qe=="object"&&Qe!==null){switch(Qe.$$typeof){case h:return Ne=Ne.get(Qe.key===null?Oe:Qe.key)||null,be(Te,Ne,Qe,Ot);case m:return Ne=Ne.get(Qe.key===null?Oe:Qe.key)||null,Me(Te,Ne,Qe,Ot);case F:return Qe=wc(Qe),He(Ne,Te,Oe,Qe,Ot)}if(M(Qe)||P(Qe))return Ne=Ne.get(Oe)||null,Fe(Te,Ne,Qe,Ot,null);if(typeof Qe.then=="function")return He(Ne,Te,Oe,Hh(Qe),Ot);if(Qe.$$typeof===O)return He(Ne,Te,Oe,Dl(Te,Qe),Ot);jh(Te,Qe)}return null}function wt(Ne,Te,Oe,Qe){for(var Ot=null,Dn=null,At=Te,nn=Te=0,cn=null;At!==null&&nn<Oe.length;nn++){At.index>nn?(cn=At,At=null):cn=At.sibling;var $n=ke(Ne,At,Oe[nn],Qe);if($n===null){At===null&&(At=cn);break}r&&At&&$n.alternate===null&&l(Ne,At),Te=V($n,Te,nn),Dn===null?Ot=$n:Dn.sibling=$n,Dn=$n,At=cn}if(nn===Oe.length)return v(Ne,At),wn&&Da(Ne,nn),Ot;if(At===null){for(;nn<Oe.length;nn++)At=We(Ne,Oe[nn],Qe),At!==null&&(Te=V(At,Te,nn),Dn===null?Ot=At:Dn.sibling=At,Dn=At);return wn&&Da(Ne,nn),Ot}for(At=x(At);nn<Oe.length;nn++)cn=He(At,Ne,nn,Oe[nn],Qe),cn!==null&&(r&&cn.alternate!==null&&At.delete(cn.key===null?nn:cn.key),Te=V(cn,Te,nn),Dn===null?Ot=cn:Dn.sibling=cn,Dn=cn);return r&&At.forEach(function(gs){return l(Ne,gs)}),wn&&Da(Ne,nn),Ot}function zt(Ne,Te,Oe,Qe){if(Oe==null)throw Error(a(151));for(var Ot=null,Dn=null,At=Te,nn=Te=0,cn=null,$n=Oe.next();At!==null&&!$n.done;nn++,$n=Oe.next()){At.index>nn?(cn=At,At=null):cn=At.sibling;var gs=ke(Ne,At,$n.value,Qe);if(gs===null){At===null&&(At=cn);break}r&&At&&gs.alternate===null&&l(Ne,At),Te=V(gs,Te,nn),Dn===null?Ot=gs:Dn.sibling=gs,Dn=gs,At=cn}if($n.done)return v(Ne,At),wn&&Da(Ne,nn),Ot;if(At===null){for(;!$n.done;nn++,$n=Oe.next())$n=We(Ne,$n.value,Qe),$n!==null&&(Te=V($n,Te,nn),Dn===null?Ot=$n:Dn.sibling=$n,Dn=$n);return wn&&Da(Ne,nn),Ot}for(At=x(At);!$n.done;nn++,$n=Oe.next())$n=He(At,Ne,nn,$n.value,Qe),$n!==null&&(r&&$n.alternate!==null&&At.delete($n.key===null?nn:$n.key),Te=V($n,Te,nn),Dn===null?Ot=$n:Dn.sibling=$n,Dn=$n);return r&&At.forEach(function(f1){return l(Ne,f1)}),wn&&Da(Ne,nn),Ot}function no(Ne,Te,Oe,Qe){if(typeof Oe=="object"&&Oe!==null&&Oe.type===S&&Oe.key===null&&(Oe=Oe.props.children),typeof Oe=="object"&&Oe!==null){switch(Oe.$$typeof){case h:e:{for(var Ot=Oe.key;Te!==null;){if(Te.key===Ot){if(Ot=Oe.type,Ot===S){if(Te.tag===7){v(Ne,Te.sibling),Qe=z(Te,Oe.props.children),Qe.return=Ne,Ne=Qe;break e}}else if(Te.elementType===Ot||typeof Ot=="object"&&Ot!==null&&Ot.$$typeof===F&&wc(Ot)===Te.type){v(Ne,Te.sibling),Qe=z(Te,Oe.props),$d(Qe,Oe),Qe.return=Ne,Ne=Qe;break e}v(Ne,Te);break}else l(Ne,Te);Te=Te.sibling}Oe.type===S?(Qe=Ll(Oe.props.children,Ne.mode,Qe,Oe.key),Qe.return=Ne,Ne=Qe):(Qe=Mp(Oe.type,Oe.key,Oe.props,null,Ne.mode,Qe),$d(Qe,Oe),Qe.return=Ne,Ne=Qe)}return ee(Ne);case m:e:{for(Ot=Oe.key;Te!==null;){if(Te.key===Ot)if(Te.tag===4&&Te.stateNode.containerInfo===Oe.containerInfo&&Te.stateNode.implementation===Oe.implementation){v(Ne,Te.sibling),Qe=z(Te,Oe.children||[]),Qe.return=Ne,Ne=Qe;break e}else{v(Ne,Te);break}else l(Ne,Te);Te=Te.sibling}Qe=kp(Oe,Ne.mode,Qe),Qe.return=Ne,Ne=Qe}return ee(Ne);case F:return Oe=wc(Oe),no(Ne,Te,Oe,Qe)}if(M(Oe))return wt(Ne,Te,Oe,Qe);if(P(Oe)){if(Ot=P(Oe),typeof Ot!="function")throw Error(a(150));return Oe=Ot.call(Oe),zt(Ne,Te,Oe,Qe)}if(typeof Oe.then=="function")return no(Ne,Te,Hh(Oe),Qe);if(Oe.$$typeof===O)return no(Ne,Te,Dl(Ne,Oe),Qe);jh(Ne,Oe)}return typeof Oe=="string"&&Oe!==""||typeof Oe=="number"||typeof Oe=="bigint"?(Oe=""+Oe,Te!==null&&Te.tag===6?(v(Ne,Te.sibling),Qe=z(Te,Oe),Qe.return=Ne,Ne=Qe):(v(Ne,Te),Qe=Ld(Oe,Ne.mode,Qe),Qe.return=Ne,Ne=Qe),ee(Ne)):v(Ne,Te)}return function(Ne,Te,Oe,Qe){try{Nu=0;var Ot=no(Ne,Te,Oe,Qe);return Tc=null,Ot}catch(At){if(At===Ec||At===Id)throw At;var Dn=Mo(29,At,null,Ne.mode);return Dn.lanes=Qe,Dn.return=Ne,Dn}finally{}}}var Ac=lw(!0),Dv=lw(!1),kl=!1;function zh(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function jp(r,l){r=r.updateQueue,l.updateQueue===r&&(l.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function Il(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function Yr(r,l,v){var x=r.updateQueue;if(x===null)return null;if(x=x.shared,(In&2)!==0){var z=x.pending;return z===null?l.next=l:(l.next=z.next,z.next=l),x.pending=l,l=Nh(r),Dp(r,null,v),l}return Pr(r,x,l,v),Nh(r)}function xc(r,l,v){if(l=l.updateQueue,l!==null&&(l=l.shared,(v&4194048)!==0)){var x=l.lanes;x&=r.pendingLanes,v|=x,l.lanes=v,Rn(r,v)}}function zp(r,l){var v=r.updateQueue,x=r.alternate;if(x!==null&&(x=x.updateQueue,v===x)){var z=null,V=null;if(v=v.firstBaseUpdate,v!==null){do{var ee={lane:v.lane,tag:v.tag,payload:v.payload,callback:null,next:null};V===null?z=V=ee:V=V.next=ee,v=v.next}while(v!==null);V===null?z=V=l:V=V.next=l}else z=V=l;v={baseState:x.baseState,firstBaseUpdate:z,lastBaseUpdate:V,shared:x.shared,callbacks:x.callbacks},r.updateQueue=v;return}r=v.lastBaseUpdate,r===null?v.firstBaseUpdate=l:r.next=l,v.lastBaseUpdate=l}var Mv=!1;function _c(){if(Mv){var r=Zo;if(r!==null)throw r}}function Us(r,l,v,x){Mv=!1;var z=r.updateQueue;kl=!1;var V=z.firstBaseUpdate,ee=z.lastBaseUpdate,le=z.shared.pending;if(le!==null){z.shared.pending=null;var be=le,Me=be.next;be.next=null,ee===null?V=Me:ee.next=Me,ee=be;var Fe=r.alternate;Fe!==null&&(Fe=Fe.updateQueue,le=Fe.lastBaseUpdate,le!==ee&&(le===null?Fe.firstBaseUpdate=Me:le.next=Me,Fe.lastBaseUpdate=be))}if(V!==null){var We=z.baseState;ee=0,Fe=Me=be=null,le=V;do{var ke=le.lane&-536870913,He=ke!==le.lane;if(He?(pn&ke)===ke:(x&ke)===ke){ke!==0&&ke===yc&&(Mv=!0),Fe!==null&&(Fe=Fe.next={lane:0,tag:le.tag,payload:le.payload,callback:null,next:null});e:{var wt=r,zt=le;ke=l;var no=v;switch(zt.tag){case 1:if(wt=zt.payload,typeof wt=="function"){We=wt.call(no,We,ke);break e}We=wt;break e;case 3:wt.flags=wt.flags&-65537|128;case 0:if(wt=zt.payload,ke=typeof wt=="function"?wt.call(no,We,ke):wt,ke==null)break e;We=u({},We,ke);break e;case 2:kl=!0}}ke=le.callback,ke!==null&&(r.flags|=64,He&&(r.flags|=8192),He=z.callbacks,He===null?z.callbacks=[ke]:He.push(ke))}else He={lane:ke,tag:le.tag,payload:le.payload,callback:le.callback,next:null},Fe===null?(Me=Fe=He,be=We):Fe=Fe.next=He,ee|=ke;if(le=le.next,le===null){if(le=z.shared.pending,le===null)break;He=le,le=He.next,He.next=null,z.lastBaseUpdate=He,z.shared.pending=null}}while(!0);Fe===null&&(be=We),z.baseState=be,z.firstBaseUpdate=Me,z.lastBaseUpdate=Fe,V===null&&(z.shared.lanes=0),ds|=ee,r.lanes=ee,r.memoizedState=We}}function Bp(r,l){if(typeof r!="function")throw Error(a(191,r));r.call(l)}function Cc(r,l){var v=r.callbacks;if(v!==null)for(r.callbacks=null,r=0;r<v.length;r++)Bp(v[r],l)}var ai=Z(null),Ru=Z(0);function cw(r,l){r=us,te(Ru,r),te(ai,l),us=r|l.baseLanes}function Bh(){te(Ru,us),te(ai,ai.current)}function Ud(){us=Ru.current,re(ai),re(Ru)}var sr=Z(null),Xr=null;function Hs(r){var l=r.alternate;te(Eo,Eo.current&1),te(sr,r),Xr===null&&(l===null||ai.current!==null||l.memoizedState!==null)&&(Xr=r)}function Hd(r){te(Eo,Eo.current),te(sr,r),Xr===null&&(Xr=r)}function Fp(r){r.tag===22?(te(Eo,Eo.current),te(sr,r),Xr===null&&(Xr=r)):rs()}function rs(){te(Eo,Eo.current),te(sr,sr.current)}function lr(r){re(sr),Xr===r&&(Xr=null),re(Eo)}var Eo=Z(0);function jd(r){for(var l=r;l!==null;){if(l.tag===13){var v=l.memoizedState;if(v!==null&&(v=v.dehydrated,v===null||Ua(v)||jc(v)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder==="forwards"||l.memoizedProps.revealOrder==="backwards"||l.memoizedProps.revealOrder==="unstable_legacy-backwards"||l.memoizedProps.revealOrder==="together")){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===r)break;for(;l.sibling===null;){if(l.return===null||l.return===r)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var js=0,rn=null,Gn=null,Go=null,Lu=!1,Ou=!1,$l=!1,Fh=0,zd=0,Nc=null,uw=0;function Ro(){throw Error(a(321))}function Ul(r,l){if(l===null)return!1;for(var v=0;v<l.length&&v<r.length;v++)if(!Pi(r[v],l[v]))return!1;return!0}function Ph(r,l,v,x,z,V){return js=V,rn=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,I.H=r===null||r.memoizedState===null?vw:rg,$l=!1,V=v(x,z),$l=!1,Ou&&(V=dw(l,v,x,z)),Pp(r),V}function Pp(r){I.H=Zh;var l=Gn!==null&&Gn.next!==null;if(js=0,Go=Gn=rn=null,Lu=!1,zd=0,Nc=null,l)throw Error(a(300));r===null||Qo||(r=r.dependencies,r!==null&&Tu(r)&&(Qo=!0))}function dw(r,l,v,x){rn=r;var z=0;do{if(Ou&&(Nc=null),zd=0,Ou=!1,25<=z)throw Error(a(301));if(z+=1,Go=Gn=null,r.updateQueue!=null){var V=r.updateQueue;V.lastEffect=null,V.events=null,V.stores=null,V.memoCache!=null&&(V.memoCache.index=0)}I.H=yw,V=l(v,x)}while(Ou);return V}function PT(){var r=I.H,l=r.useState()[0];return l=typeof l.then=="function"?Mu(l):l,r=r.useState()[0],(Gn!==null?Gn.memoizedState:null)!==r&&(rn.flags|=1024),l}function Vp(){var r=Fh!==0;return Fh=0,r}function Du(r,l,v){l.updateQueue=r.updateQueue,l.flags&=-2053,r.lanes&=~v}function Vh(r){if(Lu){for(r=r.memoizedState;r!==null;){var l=r.queue;l!==null&&(l.pending=null),r=r.next}Lu=!1}js=0,Go=Gn=rn=null,Ou=!1,zd=Fh=0,Nc=null}function wi(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Go===null?rn.memoizedState=Go=r:Go=Go.next=r,Go}function Io(){if(Gn===null){var r=rn.alternate;r=r!==null?r.memoizedState:null}else r=Gn.next;var l=Go===null?rn.memoizedState:Go.next;if(l!==null)Go=l,Gn=r;else{if(r===null)throw rn.alternate===null?Error(a(467)):Error(a(310));Gn=r,r={memoizedState:Gn.memoizedState,baseState:Gn.baseState,baseQueue:Gn.baseQueue,queue:Gn.queue,next:null},Go===null?rn.memoizedState=Go=r:Go=Go.next=r}return Go}function Gh(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Mu(r){var l=zd;return zd+=1,Nc===null&&(Nc=[]),r=Lv(Nc,r,l),l=rn,(Go===null?l.memoizedState:Go.next)===null&&(l=l.alternate,I.H=l===null||l.memoizedState===null?vw:rg),r}function Bd(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Mu(r);if(r.$$typeof===O)return Ye(r)}throw Error(a(438,String(r)))}function Gp(r){var l=null,v=rn.updateQueue;if(v!==null&&(l=v.memoCache),l==null){var x=rn.alternate;x!==null&&(x=x.updateQueue,x!==null&&(x=x.memoCache,x!=null&&(l={data:x.data.map(function(z){return z.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),v===null&&(v=Gh(),rn.updateQueue=v),v.memoCache=l,v=l.data[l.index],v===void 0)for(v=l.data[l.index]=Array(r),x=0;x<r;x++)v[x]=j;return l.index++,v}function zs(r,l){return typeof l=="function"?l(r):l}function Bs(r){var l=Io();return Qp(l,Gn,r)}function Qp(r,l,v){var x=r.queue;if(x===null)throw Error(a(311));x.lastRenderedReducer=v;var z=r.baseQueue,V=x.pending;if(V!==null){if(z!==null){var ee=z.next;z.next=V.next,V.next=ee}l.baseQueue=z=V,x.pending=null}if(V=r.baseState,z===null)r.memoizedState=V;else{l=z.next;var le=ee=null,be=null,Me=l,Fe=!1;do{var We=Me.lane&-536870913;if(We!==Me.lane?(pn&We)===We:(js&We)===We){var ke=Me.revertLane;if(ke===0)be!==null&&(be=be.next={lane:0,revertLane:0,gesture:null,action:Me.action,hasEagerState:Me.hasEagerState,eagerState:Me.eagerState,next:null}),We===yc&&(Fe=!0);else if((js&ke)===ke){Me=Me.next,ke===yc&&(Fe=!0);continue}else We={lane:0,revertLane:Me.revertLane,gesture:null,action:Me.action,hasEagerState:Me.hasEagerState,eagerState:Me.eagerState,next:null},be===null?(le=be=We,ee=V):be=be.next=We,rn.lanes|=ke,ds|=ke;We=Me.action,$l&&v(V,We),V=Me.hasEagerState?Me.eagerState:v(V,We)}else ke={lane:We,revertLane:Me.revertLane,gesture:Me.gesture,action:Me.action,hasEagerState:Me.hasEagerState,eagerState:Me.eagerState,next:null},be===null?(le=be=ke,ee=V):be=be.next=ke,rn.lanes|=We,ds|=We;Me=Me.next}while(Me!==null&&Me!==l);if(be===null?ee=V:be.next=le,!Pi(V,r.memoizedState)&&(Qo=!0,Fe&&(v=Zo,v!==null)))throw v;r.memoizedState=V,r.baseState=ee,r.baseQueue=be,x.lastRenderedState=V}return z===null&&(x.lanes=0),[r.memoizedState,x.dispatch]}function Wp(r){var l=Io(),v=l.queue;if(v===null)throw Error(a(311));v.lastRenderedReducer=r;var x=v.dispatch,z=v.pending,V=l.memoizedState;if(z!==null){v.pending=null;var ee=z=z.next;do V=r(V,ee.action),ee=ee.next;while(ee!==z);Pi(V,l.memoizedState)||(Qo=!0),l.memoizedState=V,l.baseQueue===null&&(l.baseState=V),v.lastRenderedState=V}return[V,x]}function kv(r,l,v){var x=rn,z=Io(),V=wn;if(V){if(v===void 0)throw Error(a(407));v=v()}else v=l();var ee=!Pi((Gn||z).memoizedState,v);if(ee&&(z.memoizedState=v,Qo=!0),z=z.queue,Zp(Yp.bind(null,x,z,r),[r]),z.getSnapshot!==l||ee||Go!==null&&Go.memoizedState.tag&1){if(x.flags|=2048,Iu(9,{destroy:void 0},Iv.bind(null,x,z,v,l),null),eo===null)throw Error(a(349));V||(js&127)!==0||Qh(x,l,v)}return v}function Qh(r,l,v){r.flags|=16384,r={getSnapshot:l,value:v},l=rn.updateQueue,l===null?(l=Gh(),rn.updateQueue=l,l.stores=[r]):(v=l.stores,v===null?l.stores=[r]:v.push(r))}function Iv(r,l,v,x){l.value=v,l.getSnapshot=x,Xp(l)&&qp(r)}function Yp(r,l,v){return v(function(){Xp(l)&&qp(r)})}function Xp(r){var l=r.getSnapshot;r=r.value;try{var v=l();return!Pi(r,v)}catch{return!0}}function qp(r){var l=Nl(r,2);l!==null&&mr(l,r,2)}function $v(r){var l=wi();if(typeof r=="function"){var v=r;if(r=v(),$l){Et(!0);try{v()}finally{Et(!1)}}}return l.memoizedState=l.baseState=r,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zs,lastRenderedState:r},l}function Si(r,l,v,x){return r.baseState=v,Qp(r,Gn,typeof x=="function"?x:zs)}function fw(r,l,v,x,z){if(Kh(r))throw Error(a(485));if(r=l.action,r!==null){var V={payload:z,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(ee){V.listeners.push(ee)}};I.T!==null?v(!0):V.isTransition=!1,x(V),v=l.pending,v===null?(V.next=l.pending=V,Uv(l,V)):(V.next=v.next,l.pending=v.next=V)}}function Uv(r,l){var v=l.action,x=l.payload,z=r.state;if(l.isTransition){var V=I.T,ee={};I.T=ee;try{var le=v(z,x),be=I.S;be!==null&&be(ee,le),Hv(r,l,le)}catch(Me){ku(r,l,Me)}finally{V!==null&&ee.types!==null&&(V.types=ee.types),I.T=V}}else try{V=v(z,x),Hv(r,l,V)}catch(Me){ku(r,l,Me)}}function Hv(r,l,v){v!==null&&typeof v=="object"&&typeof v.then=="function"?v.then(function(x){jv(r,l,x)},function(x){return ku(r,l,x)}):jv(r,l,v)}function jv(r,l,v){l.status="fulfilled",l.value=v,zv(l),r.state=v,l=r.pending,l!==null&&(v=l.next,v===l?r.pending=null:(v=v.next,l.next=v,Uv(r,v)))}function ku(r,l,v){var x=r.pending;if(r.pending=null,x!==null){x=x.next;do l.status="rejected",l.reason=v,zv(l),l=l.next;while(l!==x)}r.action=null}function zv(r){r=r.listeners;for(var l=0;l<r.length;l++)(0,r[l])()}function Wh(r,l){return l}function Bv(r,l){if(wn){var v=eo.formState;if(v!==null){e:{var x=rn;if(wn){if(lo){t:{for(var z=lo,V=ri;z.nodeType!==8;){if(!V){z=null;break t}if(z=pr(z.nextSibling),z===null){z=null;break t}}V=z.data,z=V==="F!"||V==="F"?z:null}if(z){lo=pr(z.nextSibling),x=z.data==="F!";break e}}Ma(x)}x=!1}x&&(l=v[0])}}return v=wi(),v.memoizedState=v.baseState=l,x={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wh,lastRenderedState:l},v.queue=x,v=og.bind(null,rn,x),x.dispatch=v,x=$v(!1),V=Rc.bind(null,rn,!1,x.queue),x=wi(),z={state:l,dispatch:null,action:r,pending:null},x.queue=z,v=fw.bind(null,rn,z,V,v),z.dispatch=v,x.memoizedState=r,[l,v,!1]}function hw(r){var l=Io();return Yh(l,Gn,r)}function Yh(r,l,v){if(l=Qp(r,l,Wh)[0],r=Bs(zs)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var x=Mu(l)}catch(ee){throw ee===Ec?Id:ee}else x=l;l=Io();var z=l.queue,V=z.dispatch;return v!==l.memoizedState&&(rn.flags|=2048,Iu(9,{destroy:void 0},Fv.bind(null,z,v),null)),[x,V,r]}function Fv(r,l){r.action=l}function Pv(r){var l=Io(),v=Gn;if(v!==null)return Yh(l,v,r);Io(),l=l.memoizedState,v=Io();var x=v.queue.dispatch;return v.memoizedState=r,[l,x,!1]}function Iu(r,l,v,x){return r={tag:r,create:v,deps:x,inst:l,next:null},l=rn.updateQueue,l===null&&(l=Gh(),rn.updateQueue=l),v=l.lastEffect,v===null?l.lastEffect=r.next=r:(x=v.next,v.next=r,r.next=x,l.lastEffect=r),r}function Vv(){return Io().memoizedState}function Fd(r,l,v,x){var z=wi();rn.flags|=r,z.memoizedState=Iu(1|l,{destroy:void 0},v,x===void 0?null:x)}function Pd(r,l,v,x){var z=Io();x=x===void 0?null:x;var V=z.memoizedState.inst;Gn!==null&&x!==null&&Ul(x,Gn.memoizedState.deps)?z.memoizedState=Iu(l,V,v,x):(rn.flags|=r,z.memoizedState=Iu(1|l,V,v,x))}function Kp(r,l){Fd(8390656,8,r,l)}function Zp(r,l){Pd(2048,8,r,l)}function Gv(r){rn.flags|=4;var l=rn.updateQueue;if(l===null)l=Gh(),rn.updateQueue=l,l.events=[r];else{var v=l.events;v===null?l.events=[r]:v.push(r)}}function Xh(r){var l=Io().memoizedState;return Gv({ref:l,nextImpl:r}),function(){if((In&2)!==0)throw Error(a(440));return l.impl.apply(void 0,arguments)}}function Jp(r,l){return Pd(4,2,r,l)}function Qv(r,l){return Pd(4,4,r,l)}function eg(r,l){if(typeof l=="function"){r=r();var v=l(r);return function(){typeof v=="function"?v():l(null)}}if(l!=null)return r=r(),l.current=r,function(){l.current=null}}function Wv(r,l,v){v=v!=null?v.concat([r]):null,Pd(4,4,eg.bind(null,l,r),v)}function as(){}function tg(r,l){var v=Io();l=l===void 0?null:l;var x=v.memoizedState;return l!==null&&Ul(l,x[1])?x[0]:(v.memoizedState=[r,l],r)}function mw(r,l){var v=Io();l=l===void 0?null:l;var x=v.memoizedState;if(l!==null&&Ul(l,x[1]))return x[0];if(x=r(),$l){Et(!0);try{r()}finally{Et(!1)}}return v.memoizedState=[x,l],x}function qh(r,l,v){return v===void 0||(js&1073741824)!==0&&(pn&261930)===0?r.memoizedState=l:(r.memoizedState=v,r=Rw(),rn.lanes|=r,ds|=r,v)}function Fs(r,l,v,x){return Pi(v,l)?v:ai.current!==null?(r=qh(r,v,x),Pi(r,l)||(Qo=!0),r):(js&42)===0||(js&1073741824)!==0&&(pn&261930)===0?(Qo=!0,r.memoizedState=v):(r=Rw(),rn.lanes|=r,ds|=r,l)}function ng(r,l,v,x,z){var V=W.p;W.p=V!==0&&8>V?V:8;var ee=I.T,le={};I.T=le,Rc(r,!1,l,v);try{var be=z(),Me=I.S;if(Me!==null&&Me(le,be),be!==null&&typeof be=="object"&&typeof be.then=="function"){var Fe=Uh(be,x);Hl(r,l,Fe,Rr(r))}else Hl(r,l,x,Rr(r))}catch(We){Hl(r,l,{then:function(){},status:"rejected",reason:We},Rr())}finally{W.p=V,ee!==null&&le.types!==null&&(ee.types=le.types),I.T=ee}}function pw(){}function Vd(r,l,v,x){if(r.tag!==5)throw Error(a(476));var z=Gd(r).queue;ng(r,z,l,Q,v===null?pw:function(){return Jn(r),v(x)})}function Gd(r){var l=r.memoizedState;if(l!==null)return l;l={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zs,lastRenderedState:Q},next:null};var v={};return l.next={memoizedState:v,baseState:v,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:zs,lastRenderedState:v},next:null},r.memoizedState=l,r=r.alternate,r!==null&&(r.memoizedState=l),l}function Jn(r){var l=Gd(r);l.next===null&&(l=r.alternate.memoizedState),Hl(r,l.next.queue,{},Rr())}function Yv(){return Ye(xm)}function gw(){return Io().memoizedState}function Xv(){return Io().memoizedState}function Ps(r){for(var l=r.return;l!==null;){switch(l.tag){case 24:case 3:var v=Rr();r=Il(v);var x=Yr(l,r,v);x!==null&&(mr(x,l,v),xc(x,l,v)),l={cache:Mh()},r.payload=l;return}l=l.return}}function bw(r,l,v){var x=Rr();v={lane:x,revertLane:0,gesture:null,action:v,hasEagerState:!1,eagerState:null,next:null},Kh(r)?ig(l,v):(v=Oa(r,l,v,x),v!==null&&(mr(v,r,x),qv(v,l,x)))}function og(r,l,v){var x=Rr();Hl(r,l,v,x)}function Hl(r,l,v,x){var z={lane:x,revertLane:0,gesture:null,action:v,hasEagerState:!1,eagerState:null,next:null};if(Kh(r))ig(l,z);else{var V=r.alternate;if(r.lanes===0&&(V===null||V.lanes===0)&&(V=l.lastRenderedReducer,V!==null))try{var ee=l.lastRenderedState,le=V(ee,v);if(z.hasEagerState=!0,z.eagerState=le,Pi(le,ee))return Pr(r,l,z,0),eo===null&&Fr(),!1}catch{}finally{}if(v=Oa(r,l,z,x),v!==null)return mr(v,r,x),qv(v,l,x),!0}return!1}function Rc(r,l,v,x){if(x={lane:2,revertLane:Lg(),gesture:null,action:x,hasEagerState:!1,eagerState:null,next:null},Kh(r)){if(l)throw Error(a(479))}else l=Oa(r,v,x,2),l!==null&&mr(l,r,2)}function Kh(r){var l=r.alternate;return r===rn||l!==null&&l===rn}function ig(r,l){Ou=Lu=!0;var v=r.pending;v===null?l.next=l:(l.next=v.next,v.next=l),r.pending=l}function qv(r,l,v){if((v&4194048)!==0){var x=l.lanes;x&=r.pendingLanes,v|=x,l.lanes=v,Rn(r,v)}}var Zh={readContext:Ye,use:Bd,useCallback:Ro,useContext:Ro,useEffect:Ro,useImperativeHandle:Ro,useLayoutEffect:Ro,useInsertionEffect:Ro,useMemo:Ro,useReducer:Ro,useRef:Ro,useState:Ro,useDebugValue:Ro,useDeferredValue:Ro,useTransition:Ro,useSyncExternalStore:Ro,useId:Ro,useHostTransitionStatus:Ro,useFormState:Ro,useActionState:Ro,useOptimistic:Ro,useMemoCache:Ro,useCacheRefresh:Ro};Zh.useEffectEvent=Ro;var vw={readContext:Ye,use:Bd,useCallback:function(r,l){return wi().memoizedState=[r,l===void 0?null:l],r},useContext:Ye,useEffect:Kp,useImperativeHandle:function(r,l,v){v=v!=null?v.concat([r]):null,Fd(4194308,4,eg.bind(null,l,r),v)},useLayoutEffect:function(r,l){return Fd(4194308,4,r,l)},useInsertionEffect:function(r,l){Fd(4,2,r,l)},useMemo:function(r,l){var v=wi();l=l===void 0?null:l;var x=r();if($l){Et(!0);try{r()}finally{Et(!1)}}return v.memoizedState=[x,l],x},useReducer:function(r,l,v){var x=wi();if(v!==void 0){var z=v(l);if($l){Et(!0);try{v(l)}finally{Et(!1)}}}else z=l;return x.memoizedState=x.baseState=z,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:z},x.queue=r,r=r.dispatch=bw.bind(null,rn,r),[x.memoizedState,r]},useRef:function(r){var l=wi();return r={current:r},l.memoizedState=r},useState:function(r){r=$v(r);var l=r.queue,v=og.bind(null,rn,l);return l.dispatch=v,[r.memoizedState,v]},useDebugValue:as,useDeferredValue:function(r,l){var v=wi();return qh(v,r,l)},useTransition:function(){var r=$v(!1);return r=ng.bind(null,rn,r.queue,!0,!1),wi().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,l,v){var x=rn,z=wi();if(wn){if(v===void 0)throw Error(a(407));v=v()}else{if(v=l(),eo===null)throw Error(a(349));(pn&127)!==0||Qh(x,l,v)}z.memoizedState=v;var V={value:v,getSnapshot:l};return z.queue=V,Kp(Yp.bind(null,x,V,r),[r]),x.flags|=2048,Iu(9,{destroy:void 0},Iv.bind(null,x,V,v,l),null),v},useId:function(){var r=wi(),l=eo.identifierPrefix;if(wn){var v=ns,x=xr;v=(x&~(1<<32-xe(x)-1)).toString(32)+v,l="_"+l+"R_"+v,v=Fh++,0<v&&(l+="H"+v.toString(32)),l+="_"}else v=uw++,l="_"+l+"r_"+v.toString(32)+"_";return r.memoizedState=l},useHostTransitionStatus:Yv,useFormState:Bv,useActionState:Bv,useOptimistic:function(r){var l=wi();l.memoizedState=l.baseState=r;var v={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=v,l=Rc.bind(null,rn,!0,v),v.dispatch=l,[r,l]},useMemoCache:Gp,useCacheRefresh:function(){return wi().memoizedState=Ps.bind(null,rn)},useEffectEvent:function(r){var l=wi(),v={impl:r};return l.memoizedState=v,function(){if((In&2)!==0)throw Error(a(440));return v.impl.apply(void 0,arguments)}}},rg={readContext:Ye,use:Bd,useCallback:tg,useContext:Ye,useEffect:Zp,useImperativeHandle:Wv,useInsertionEffect:Jp,useLayoutEffect:Qv,useMemo:mw,useReducer:Bs,useRef:Vv,useState:function(){return Bs(zs)},useDebugValue:as,useDeferredValue:function(r,l){var v=Io();return Fs(v,Gn.memoizedState,r,l)},useTransition:function(){var r=Bs(zs)[0],l=Io().memoizedState;return[typeof r=="boolean"?r:Mu(r),l]},useSyncExternalStore:kv,useId:gw,useHostTransitionStatus:Yv,useFormState:hw,useActionState:hw,useOptimistic:function(r,l){var v=Io();return Si(v,Gn,r,l)},useMemoCache:Gp,useCacheRefresh:Xv};rg.useEffectEvent=Xh;var yw={readContext:Ye,use:Bd,useCallback:tg,useContext:Ye,useEffect:Zp,useImperativeHandle:Wv,useInsertionEffect:Jp,useLayoutEffect:Qv,useMemo:mw,useReducer:Wp,useRef:Vv,useState:function(){return Wp(zs)},useDebugValue:as,useDeferredValue:function(r,l){var v=Io();return Gn===null?qh(v,r,l):Fs(v,Gn.memoizedState,r,l)},useTransition:function(){var r=Wp(zs)[0],l=Io().memoizedState;return[typeof r=="boolean"?r:Mu(r),l]},useSyncExternalStore:kv,useId:gw,useHostTransitionStatus:Yv,useFormState:Pv,useActionState:Pv,useOptimistic:function(r,l){var v=Io();return Gn!==null?Si(v,Gn,r,l):(v.baseState=r,[r,v.queue.dispatch])},useMemoCache:Gp,useCacheRefresh:Xv};yw.useEffectEvent=Xh;function $u(r,l,v,x){l=r.memoizedState,v=v(x,l),v=v==null?l:u({},l,v),r.memoizedState=v,r.lanes===0&&(r.updateQueue.baseState=v)}var ka={enqueueSetState:function(r,l,v){r=r._reactInternals;var x=Rr(),z=Il(x);z.payload=l,v!=null&&(z.callback=v),l=Yr(r,z,x),l!==null&&(mr(l,r,x),xc(l,r,x))},enqueueReplaceState:function(r,l,v){r=r._reactInternals;var x=Rr(),z=Il(x);z.tag=1,z.payload=l,v!=null&&(z.callback=v),l=Yr(r,z,x),l!==null&&(mr(l,r,x),xc(l,r,x))},enqueueForceUpdate:function(r,l){r=r._reactInternals;var v=Rr(),x=Il(v);x.tag=2,l!=null&&(x.callback=l),l=Yr(r,x,v),l!==null&&(mr(l,r,v),xc(l,r,v))}};function Kv(r,l,v,x,z,V,ee){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(x,V,ee):l.prototype&&l.prototype.isPureReactComponent?!Na(v,x)||!Na(z,V):!0}function Ew(r,l,v,x){r=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(v,x),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(v,x),l.state!==r&&ka.enqueueReplaceState(l,l.state,null)}function Lc(r,l){var v=l;if("ref"in l){v={};for(var x in l)x!=="ref"&&(v[x]=l[x])}if(r=r.defaultProps){v===l&&(v=u({},v));for(var z in r)v[z]===void 0&&(v[z]=r[z])}return v}function ag(r){Eu(r)}function Zv(r){console.error(r)}function sg(r){Eu(r)}function Qd(r,l){try{var v=r.onUncaughtError;v(l.value,{componentStack:l.stack})}catch(x){setTimeout(function(){throw x})}}function Jh(r,l,v){try{var x=r.onCaughtError;x(v.value,{componentStack:v.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(z){setTimeout(function(){throw z})}}function Jv(r,l,v){return v=Il(v),v.tag=3,v.payload={element:null},v.callback=function(){Qd(r,l)},v}function e0(r){return r=Il(r),r.tag=3,r}function t0(r,l,v,x){var z=v.type.getDerivedStateFromError;if(typeof z=="function"){var V=x.value;r.payload=function(){return z(V)},r.callback=function(){Jh(l,v,x)}}var ee=v.stateNode;ee!==null&&typeof ee.componentDidCatch=="function"&&(r.callback=function(){Jh(l,v,x),typeof z!="function"&&(wo===null?wo=new Set([this]):wo.add(this));var le=x.stack;this.componentDidCatch(x.value,{componentStack:le!==null?le:""})})}function VT(r,l,v,x,z){if(v.flags|=32768,x!==null&&typeof x=="object"&&typeof x.then=="function"){if(l=v.alternate,l!==null&&Ei(l,v,z,!0),v=sr.current,v!==null){switch(v.tag){case 31:case 13:return Xr===null?_g():v.alternate===null&&uo===0&&(uo=3),v.flags&=-257,v.flags|=65536,v.lanes=z,x===Cu?v.flags|=16384:(l=v.updateQueue,l===null?v.updateQueue=new Set([x]):l.add(x),hm(r,x,z)),!1;case 22:return v.flags|=65536,x===Cu?v.flags|=16384:(l=v.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([x])},v.updateQueue=l):(v=l.retryQueue,v===null?l.retryQueue=new Set([x]):v.add(x)),hm(r,x,z)),!1}throw Error(a(435,v.tag))}return hm(r,x,z),_g(),!1}if(wn)return l=sr.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=z,x!==ks&&(r=Error(a(422),{cause:x}),Md(Vr(r,v)))):(x!==ks&&(l=Error(a(423),{cause:x}),Md(Vr(l,v))),r=r.current.alternate,r.flags|=65536,z&=-z,r.lanes|=z,x=Vr(x,v),z=Jv(r.stateNode,x,z),zp(r,z),uo!==4&&(uo=2)),!1;var V=Error(a(520),{cause:x});if(V=Vr(V,v),cm===null?cm=[V]:cm.push(V),uo!==4&&(uo=2),l===null)return!0;x=Vr(x,v),v=l;do{switch(v.tag){case 3:return v.flags|=65536,r=z&-z,v.lanes|=r,r=Jv(v.stateNode,x,r),zp(v,r),!1;case 1:if(l=v.type,V=v.stateNode,(v.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||V!==null&&typeof V.componentDidCatch=="function"&&(wo===null||!wo.has(V))))return v.flags|=65536,z&=-z,v.lanes|=z,z=e0(z),t0(z,r,v,x),zp(v,z),!1}v=v.return}while(v!==null);return!1}var lg=Error(a(461)),Qo=!1;function po(r,l,v,x){l.child=r===null?Dv(l,null,v,x):Ac(l,r.child,v,x)}function n0(r,l,v,x,z){v=v.render;var V=l.ref;if("ref"in x){var ee={};for(var le in x)le!=="ref"&&(ee[le]=x[le])}else ee=x;return qt(l),x=Ph(r,l,v,ee,V,z),le=Vp(),r!==null&&!Qo?(Du(r,l,z),Zr(r,l,z)):(wn&&le&&Od(l),l.flags|=1,po(r,l,x,z),l.child)}function o0(r,l,v,x,z){if(r===null){var V=v.type;return typeof V=="function"&&!wu(V)&&V.defaultProps===void 0&&v.compare===null?(l.tag=15,l.type=V,i0(r,l,V,x,z)):(r=Mp(v.type,null,x,l,l.mode,z),r.ref=l.ref,r.return=l,l.child=r)}if(V=r.child,!dg(r,z)){var ee=V.memoizedProps;if(v=v.compare,v=v!==null?v:Na,v(ee,x)&&r.ref===l.ref)return Zr(r,l,z)}return l.flags|=1,r=Rl(V,x),r.ref=l.ref,r.return=l,l.child=r}function i0(r,l,v,x,z){if(r!==null){var V=r.memoizedProps;if(Na(V,x)&&r.ref===l.ref)if(Qo=!1,l.pendingProps=x=V,dg(r,z))(r.flags&131072)!==0&&(Qo=!0);else return l.lanes=r.lanes,Zr(r,l,z)}return cg(r,l,v,x,z)}function ww(r,l,v,x){var z=x.children,V=r!==null?r.memoizedState:null;if(r===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),x.mode==="hidden"){if((l.flags&128)!==0){if(V=V!==null?V.baseLanes|v:v,r!==null){for(x=l.child=r.child,z=0;x!==null;)z=z|x.lanes|x.childLanes,x=x.sibling;x=z&~V}else x=0,l.child=null;return cr(r,l,V,v,x)}if((v&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},r!==null&&kd(l,V!==null?V.cachePool:null),V!==null?cw(l,V):Bh(),Fp(l);else return x=l.lanes=536870912,cr(r,l,V!==null?V.baseLanes|v:v,v,x)}else V!==null?(kd(l,V.cachePool),cw(l,V),rs(),l.memoizedState=null):(r!==null&&kd(l,null),Bh(),rs());return po(r,l,z,v),l.child}function Oc(r,l){return r!==null&&r.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function cr(r,l,v,x,z){var V=Wr();return V=V===null?null:{parent:Vo._currentValue,pool:V},l.memoizedState={baseLanes:v,cachePool:V},r!==null&&kd(l,null),Bh(),Fp(l),r!==null&&Ei(r,l,x,!0),l.childLanes=z,null}function em(r,l){return l=om({mode:l.mode,children:l.children},r.mode),l.ref=r.ref,r.child=l,l.return=r,l}function ur(r,l,v){return Ac(l,r.child,null,v),r=em(l,l.pendingProps),r.flags|=2,lr(l),l.memoizedState=null,r}function Sw(r,l,v){var x=l.pendingProps,z=(l.flags&128)!==0;if(l.flags&=-129,r===null){if(wn){if(x.mode==="hidden")return r=em(l,x),l.lanes=536870912,Oc(null,r);if(Hd(l),(r=lo)?(r=o1(r,ri),r=r!==null&&r.data==="&"?r:null,r!==null&&(l.memoizedState={dehydrated:r,treeContext:ts!==null?{id:xr,overflow:ns}:null,retryLane:536870912,hydrationErrors:null},v=Tv(r),v.return=l,l.child=v,yi=l,lo=null)):r=null,r===null)throw Ma(l);return l.lanes=536870912,null}return em(l,x)}var V=r.memoizedState;if(V!==null){var ee=V.dehydrated;if(Hd(l),z)if(l.flags&256)l.flags&=-257,l=ur(r,l,v);else if(l.memoizedState!==null)l.child=r.child,l.flags|=128,l=null;else throw Error(a(558));else if(Qo||Ei(r,l,v,!1),z=(v&r.childLanes)!==0,Qo||z){if(x=eo,x!==null&&(ee=Yt(x,v),ee!==0&&ee!==V.retryLane))throw V.retryLane=ee,Nl(r,ee),mr(x,r,ee),lg;_g(),l=ur(r,l,v)}else r=V.treeContext,lo=pr(ee.nextSibling),yi=l,wn=!0,Ms=null,ri=!1,r!==null&&Lh(l,r),l=em(l,x),l.flags|=4096;return l}return r=Rl(r.child,{mode:x.mode,children:x.children}),r.ref=l.ref,l.child=r,r.return=l,r}function qr(r,l){var v=l.ref;if(v===null)r!==null&&r.ref!==null&&(l.flags|=4194816);else{if(typeof v!="function"&&typeof v!="object")throw Error(a(284));(r===null||r.ref!==v)&&(l.flags|=4194816)}}function cg(r,l,v,x,z){return qt(l),v=Ph(r,l,v,x,void 0,z),x=Vp(),r!==null&&!Qo?(Du(r,l,z),Zr(r,l,z)):(wn&&x&&Od(l),l.flags|=1,po(r,l,v,z),l.child)}function Dc(r,l,v,x,z,V){return qt(l),l.updateQueue=null,v=dw(l,x,v,z),Pp(r),x=Vp(),r!==null&&!Qo?(Du(r,l,V),Zr(r,l,V)):(wn&&x&&Od(l),l.flags|=1,po(r,l,v,V),l.child)}function r0(r,l,v,x,z){if(qt(l),l.stateNode===null){var V=ir,ee=v.contextType;typeof ee=="object"&&ee!==null&&(V=Ye(ee)),V=new v(x,V),l.memoizedState=V.state!==null&&V.state!==void 0?V.state:null,V.updater=ka,l.stateNode=V,V._reactInternals=l,V=l.stateNode,V.props=x,V.state=l.memoizedState,V.refs={},zh(l),ee=v.contextType,V.context=typeof ee=="object"&&ee!==null?Ye(ee):ir,V.state=l.memoizedState,ee=v.getDerivedStateFromProps,typeof ee=="function"&&($u(l,v,ee,x),V.state=l.memoizedState),typeof v.getDerivedStateFromProps=="function"||typeof V.getSnapshotBeforeUpdate=="function"||typeof V.UNSAFE_componentWillMount!="function"&&typeof V.componentWillMount!="function"||(ee=V.state,typeof V.componentWillMount=="function"&&V.componentWillMount(),typeof V.UNSAFE_componentWillMount=="function"&&V.UNSAFE_componentWillMount(),ee!==V.state&&ka.enqueueReplaceState(V,V.state,null),Us(l,x,V,z),_c(),V.state=l.memoizedState),typeof V.componentDidMount=="function"&&(l.flags|=4194308),x=!0}else if(r===null){V=l.stateNode;var le=l.memoizedProps,be=Lc(v,le);V.props=be;var Me=V.context,Fe=v.contextType;ee=ir,typeof Fe=="object"&&Fe!==null&&(ee=Ye(Fe));var We=v.getDerivedStateFromProps;Fe=typeof We=="function"||typeof V.getSnapshotBeforeUpdate=="function",le=l.pendingProps!==le,Fe||typeof V.UNSAFE_componentWillReceiveProps!="function"&&typeof V.componentWillReceiveProps!="function"||(le||Me!==ee)&&Ew(l,V,x,ee),kl=!1;var ke=l.memoizedState;V.state=ke,Us(l,x,V,z),_c(),Me=l.memoizedState,le||ke!==Me||kl?(typeof We=="function"&&($u(l,v,We,x),Me=l.memoizedState),(be=kl||Kv(l,v,be,x,ke,Me,ee))?(Fe||typeof V.UNSAFE_componentWillMount!="function"&&typeof V.componentWillMount!="function"||(typeof V.componentWillMount=="function"&&V.componentWillMount(),typeof V.UNSAFE_componentWillMount=="function"&&V.UNSAFE_componentWillMount()),typeof V.componentDidMount=="function"&&(l.flags|=4194308)):(typeof V.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=x,l.memoizedState=Me),V.props=x,V.state=Me,V.context=ee,x=be):(typeof V.componentDidMount=="function"&&(l.flags|=4194308),x=!1)}else{V=l.stateNode,jp(r,l),ee=l.memoizedProps,Fe=Lc(v,ee),V.props=Fe,We=l.pendingProps,ke=V.context,Me=v.contextType,be=ir,typeof Me=="object"&&Me!==null&&(be=Ye(Me)),le=v.getDerivedStateFromProps,(Me=typeof le=="function"||typeof V.getSnapshotBeforeUpdate=="function")||typeof V.UNSAFE_componentWillReceiveProps!="function"&&typeof V.componentWillReceiveProps!="function"||(ee!==We||ke!==be)&&Ew(l,V,x,be),kl=!1,ke=l.memoizedState,V.state=ke,Us(l,x,V,z),_c();var He=l.memoizedState;ee!==We||ke!==He||kl||r!==null&&r.dependencies!==null&&Tu(r.dependencies)?(typeof le=="function"&&($u(l,v,le,x),He=l.memoizedState),(Fe=kl||Kv(l,v,Fe,x,ke,He,be)||r!==null&&r.dependencies!==null&&Tu(r.dependencies))?(Me||typeof V.UNSAFE_componentWillUpdate!="function"&&typeof V.componentWillUpdate!="function"||(typeof V.componentWillUpdate=="function"&&V.componentWillUpdate(x,He,be),typeof V.UNSAFE_componentWillUpdate=="function"&&V.UNSAFE_componentWillUpdate(x,He,be)),typeof V.componentDidUpdate=="function"&&(l.flags|=4),typeof V.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof V.componentDidUpdate!="function"||ee===r.memoizedProps&&ke===r.memoizedState||(l.flags|=4),typeof V.getSnapshotBeforeUpdate!="function"||ee===r.memoizedProps&&ke===r.memoizedState||(l.flags|=1024),l.memoizedProps=x,l.memoizedState=He),V.props=x,V.state=He,V.context=be,x=Fe):(typeof V.componentDidUpdate!="function"||ee===r.memoizedProps&&ke===r.memoizedState||(l.flags|=4),typeof V.getSnapshotBeforeUpdate!="function"||ee===r.memoizedProps&&ke===r.memoizedState||(l.flags|=1024),x=!1)}return V=x,qr(r,l),x=(l.flags&128)!==0,V||x?(V=l.stateNode,v=x&&typeof v.getDerivedStateFromError!="function"?null:V.render(),l.flags|=1,r!==null&&x?(l.child=Ac(l,r.child,null,z),l.child=Ac(l,null,v,z)):po(r,l,v,z),l.memoizedState=V.state,r=l.child):r=Zr(r,l,z),r}function ss(r,l,v,x){return vc(),l.flags|=256,po(r,l,v,x),l.child}var tm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function nm(r){return{baseLanes:r,cachePool:xu()}}function Kr(r,l,v){return r=r!==null?r.childLanes&~v:0,l&&(r|=hr),r}function a0(r,l,v){var x=l.pendingProps,z=!1,V=(l.flags&128)!==0,ee;if((ee=V)||(ee=r!==null&&r.memoizedState===null?!1:(Eo.current&2)!==0),ee&&(z=!0,l.flags&=-129),ee=(l.flags&32)!==0,l.flags&=-33,r===null){if(wn){if(z?Hs(l):rs(),(r=lo)?(r=o1(r,ri),r=r!==null&&r.data!=="&"?r:null,r!==null&&(l.memoizedState={dehydrated:r,treeContext:ts!==null?{id:xr,overflow:ns}:null,retryLane:536870912,hydrationErrors:null},v=Tv(r),v.return=l,l.child=v,yi=l,lo=null)):r=null,r===null)throw Ma(l);return jc(r)?l.lanes=32:l.lanes=536870912,null}var le=x.children;return x=x.fallback,z?(rs(),z=l.mode,le=om({mode:"hidden",children:le},z),x=Ll(x,z,v,null),le.return=l,x.return=l,le.sibling=x,l.child=le,x=l.child,x.memoizedState=nm(v),x.childLanes=Kr(r,ee,v),l.memoizedState=tm,Oc(null,x)):(Hs(l),Mc(l,le))}var be=r.memoizedState;if(be!==null&&(le=be.dehydrated,le!==null)){if(V)l.flags&256?(Hs(l),l.flags&=-257,l=Uu(r,l,v)):l.memoizedState!==null?(rs(),l.child=r.child,l.flags|=128,l=null):(rs(),le=x.fallback,z=l.mode,x=om({mode:"visible",children:x.children},z),le=Ll(le,z,v,null),le.flags|=2,x.return=l,le.return=l,x.sibling=le,l.child=x,Ac(l,r.child,null,v),x=l.child,x.memoizedState=nm(v),x.childLanes=Kr(r,ee,v),l.memoizedState=tm,l=Oc(null,x));else if(Hs(l),jc(le)){if(ee=le.nextSibling&&le.nextSibling.dataset,ee)var Me=ee.dgst;ee=Me,x=Error(a(419)),x.stack="",x.digest=ee,Md({value:x,source:null,stack:null}),l=Uu(r,l,v)}else if(Qo||Ei(r,l,v,!1),ee=(v&r.childLanes)!==0,Qo||ee){if(ee=eo,ee!==null&&(x=Yt(ee,v),x!==0&&x!==be.retryLane))throw be.retryLane=x,Nl(r,x),mr(ee,r,x),lg;Ua(le)||_g(),l=Uu(r,l,v)}else Ua(le)?(l.flags|=192,l.child=r.child,l=null):(r=be.treeContext,lo=pr(le.nextSibling),yi=l,wn=!0,Ms=null,ri=!1,r!==null&&Lh(l,r),l=Mc(l,x.children),l.flags|=4096);return l}return z?(rs(),le=x.fallback,z=l.mode,be=r.child,Me=be.sibling,x=Rl(be,{mode:"hidden",children:x.children}),x.subtreeFlags=be.subtreeFlags&65011712,Me!==null?le=Rl(Me,le):(le=Ll(le,z,v,null),le.flags|=2),le.return=l,x.return=l,x.sibling=le,l.child=x,Oc(null,x),x=l.child,le=r.child.memoizedState,le===null?le=nm(v):(z=le.cachePool,z!==null?(be=Vo._currentValue,z=z.parent!==be?{parent:be,pool:be}:z):z=xu(),le={baseLanes:le.baseLanes|v,cachePool:z}),x.memoizedState=le,x.childLanes=Kr(r,ee,v),l.memoizedState=tm,Oc(r.child,x)):(Hs(l),v=r.child,r=v.sibling,v=Rl(v,{mode:"visible",children:x.children}),v.return=l,v.sibling=null,r!==null&&(ee=l.deletions,ee===null?(l.deletions=[r],l.flags|=16):ee.push(r)),l.child=v,l.memoizedState=null,v)}function Mc(r,l){return l=om({mode:"visible",children:l},r.mode),l.return=r,r.child=l}function om(r,l){return r=Mo(22,r,null,l),r.lanes=0,r}function Uu(r,l,v){return Ac(l,r.child,null,v),r=Mc(l,l.pendingProps.children),r.flags|=2,l.memoizedState=null,r}function Hu(r,l,v){r.lanes|=l;var x=r.alternate;x!==null&&(x.lanes|=l),Up(r.return,l,v)}function ug(r,l,v,x,z,V){var ee=r.memoizedState;ee===null?r.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:x,tail:v,tailMode:z,treeForkCount:V}:(ee.isBackwards=l,ee.rendering=null,ee.renderingStartTime=0,ee.last=x,ee.tail=v,ee.tailMode=z,ee.treeForkCount=V)}function s0(r,l,v){var x=l.pendingProps,z=x.revealOrder,V=x.tail;x=x.children;var ee=Eo.current,le=(ee&2)!==0;if(le?(ee=ee&1|2,l.flags|=128):ee&=1,te(Eo,ee),po(r,l,x,v),x=wn?Po:0,!le&&r!==null&&(r.flags&128)!==0)e:for(r=l.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&Hu(r,v,l);else if(r.tag===19)Hu(r,v,l);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===l)break e;for(;r.sibling===null;){if(r.return===null||r.return===l)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(z){case"forwards":for(v=l.child,z=null;v!==null;)r=v.alternate,r!==null&&jd(r)===null&&(z=v),v=v.sibling;v=z,v===null?(z=l.child,l.child=null):(z=v.sibling,v.sibling=null),ug(l,!1,z,v,V,x);break;case"backwards":case"unstable_legacy-backwards":for(v=null,z=l.child,l.child=null;z!==null;){if(r=z.alternate,r!==null&&jd(r)===null){l.child=z;break}r=z.sibling,z.sibling=v,v=z,z=r}ug(l,!0,v,null,V,x);break;case"together":ug(l,!1,null,null,void 0,x);break;default:l.memoizedState=null}return l.child}function Zr(r,l,v){if(r!==null&&(l.dependencies=r.dependencies),ds|=l.lanes,(v&l.childLanes)===0)if(r!==null){if(Ei(r,l,v,!1),(v&l.childLanes)===0)return null}else return null;if(r!==null&&l.child!==r.child)throw Error(a(153));if(l.child!==null){for(r=l.child,v=Rl(r,r.pendingProps),l.child=v,v.return=l;r.sibling!==null;)r=r.sibling,v=v.sibling=Rl(r,r.pendingProps),v.return=l;v.sibling=null}return l.child}function dg(r,l){return(r.lanes&l)!==0?!0:(r=r.dependencies,!!(r!==null&&Tu(r)))}function fg(r,l,v){switch(l.tag){case 3:me(l,l.stateNode.containerInfo),ar(l,Vo,r.memoizedState.cache),vc();break;case 27:case 5:pe(l);break;case 4:me(l,l.stateNode.containerInfo);break;case 10:ar(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,Hd(l),null;break;case 13:var x=l.memoizedState;if(x!==null)return x.dehydrated!==null?(Hs(l),l.flags|=128,null):(v&l.child.childLanes)!==0?a0(r,l,v):(Hs(l),r=Zr(r,l,v),r!==null?r.sibling:null);Hs(l);break;case 19:var z=(r.flags&128)!==0;if(x=(v&l.childLanes)!==0,x||(Ei(r,l,v,!1),x=(v&l.childLanes)!==0),z){if(x)return s0(r,l,v);l.flags|=128}if(z=l.memoizedState,z!==null&&(z.rendering=null,z.tail=null,z.lastEffect=null),te(Eo,Eo.current),x)break;return null;case 22:return l.lanes=0,ww(r,l,v,l.pendingProps);case 24:ar(l,Vo,r.memoizedState.cache)}return Zr(r,l,v)}function l0(r,l,v){if(r!==null)if(r.memoizedProps!==l.pendingProps)Qo=!0;else{if(!dg(r,v)&&(l.flags&128)===0)return Qo=!1,fg(r,l,v);Qo=(r.flags&131072)!==0}else Qo=!1,wn&&(l.flags&1048576)!==0&&xv(l,Po,l.index);switch(l.lanes=0,l.tag){case 16:e:{var x=l.pendingProps;if(r=wc(l.elementType),l.type=r,typeof r=="function")wu(r)?(x=Lc(r,x),l.tag=1,l=r0(null,l,r,x,v)):(l.tag=0,l=cg(null,l,r,x,v));else{if(r!=null){var z=r.$$typeof;if(z===D){l.tag=11,l=n0(null,l,r,x,v);break e}else if(z===$){l.tag=14,l=o0(null,l,r,x,v);break e}}throw l=k(r)||r,Error(a(306,l,""))}}return l;case 0:return cg(r,l,l.type,l.pendingProps,v);case 1:return x=l.type,z=Lc(x,l.pendingProps),r0(r,l,x,z,v);case 3:e:{if(me(l,l.stateNode.containerInfo),r===null)throw Error(a(387));x=l.pendingProps;var V=l.memoizedState;z=V.element,jp(r,l),Us(l,x,null,v);var ee=l.memoizedState;if(x=ee.cache,ar(l,Vo,x),x!==V.cache&&$s(l,[Vo],v,!0),_c(),x=ee.element,V.isDehydrated)if(V={element:x,isDehydrated:!1,cache:ee.cache},l.updateQueue.baseState=V,l.memoizedState=V,l.flags&256){l=ss(r,l,x,v);break e}else if(x!==z){z=Vr(Error(a(424)),l),Md(z),l=ss(r,l,x,v);break e}else{switch(r=l.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(lo=pr(r.firstChild),yi=l,wn=!0,Ms=null,ri=!0,v=Dv(l,null,x,v),l.child=v;v;)v.flags=v.flags&-3|4096,v=v.sibling}else{if(vc(),x===z){l=Zr(r,l,v);break e}po(r,l,x,v)}l=l.child}return l;case 26:return qr(r,l),r===null?(v=pf(l.type,null,l.pendingProps,null))?l.memoizedState=v:wn||(v=l.type,r=l.pendingProps,x=Hc(ie.current).createElement(v),x[Xt]=l,x[Pn]=r,$i(x,v,r),rt(x),l.stateNode=x):l.memoizedState=pf(l.type,r.memoizedProps,l.pendingProps,r.memoizedState),null;case 27:return pe(l),r===null&&wn&&(x=l.stateNode=hf(l.type,l.pendingProps,ie.current),yi=l,ri=!0,z=lo,hs(l.type)?(Sm=z,lo=pr(x.firstChild)):lo=z),po(r,l,l.pendingProps.children,v),qr(r,l),r===null&&(l.flags|=4194304),l.child;case 5:return r===null&&wn&&((z=x=lo)&&(x=WT(x,l.type,l.pendingProps,ri),x!==null?(l.stateNode=x,yi=l,lo=pr(x.firstChild),ri=!1,z=!0):z=!1),z||Ma(l)),pe(l),z=l.type,V=l.pendingProps,ee=r!==null?r.memoizedProps:null,x=V.children,df(z,V)?x=null:ee!==null&&df(z,ee)&&(l.flags|=32),l.memoizedState!==null&&(z=Ph(r,l,PT,null,null,v),xm._currentValue=z),qr(r,l),po(r,l,x,v),l.child;case 6:return r===null&&wn&&((r=v=lo)&&(v=dn(v,l.pendingProps,ri),v!==null?(l.stateNode=v,yi=l,lo=null,r=!0):r=!1),r||Ma(l)),null;case 13:return a0(r,l,v);case 4:return me(l,l.stateNode.containerInfo),x=l.pendingProps,r===null?l.child=Ac(l,null,x,v):po(r,l,x,v),l.child;case 11:return n0(r,l,l.type,l.pendingProps,v);case 7:return po(r,l,l.pendingProps,v),l.child;case 8:return po(r,l,l.pendingProps.children,v),l.child;case 12:return po(r,l,l.pendingProps.children,v),l.child;case 10:return x=l.pendingProps,ar(l,l.type,x.value),po(r,l,x.children,v),l.child;case 9:return z=l.type._context,x=l.pendingProps.children,qt(l),z=Ye(z),x=x(z),l.flags|=1,po(r,l,x,v),l.child;case 14:return o0(r,l,l.type,l.pendingProps,v);case 15:return i0(r,l,l.type,l.pendingProps,v);case 19:return s0(r,l,v);case 31:return Sw(r,l,v);case 22:return ww(r,l,v,l.pendingProps);case 24:return qt(l),x=Ye(Vo),r===null?(z=Wr(),z===null&&(z=eo,V=Mh(),z.pooledCache=V,V.refCount++,V!==null&&(z.pooledCacheLanes|=v),z=V),l.memoizedState={parent:x,cache:z},zh(l),ar(l,Vo,z)):((r.lanes&v)!==0&&(jp(r,l),Us(l,null,null,v),_c()),z=r.memoizedState,V=l.memoizedState,z.parent!==x?(z={parent:x,cache:x},l.memoizedState=z,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=z),ar(l,Vo,x)):(x=V.cache,ar(l,Vo,x),x!==z.cache&&$s(l,[Vo],v,!0))),po(r,l,l.pendingProps.children,v),l.child;case 29:throw l.pendingProps}throw Error(a(156,l.tag))}function Vs(r){r.flags|=4}function c0(r,l,v,x,z){if((l=(r.mode&32)!==0)&&(l=!1),l){if(r.flags|=16777216,(z&335544128)===z)if(r.stateNode.complete)r.flags|=8192;else if(Dw())r.flags|=8192;else throw Sc=Cu,_u}else r.flags&=-16777217}function u0(r,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!Or(l))if(Dw())r.flags|=8192;else throw Sc=Cu,_u}function Vi(r,l){l!==null&&(r.flags|=4),r.flags&16384&&(l=r.tag!==22?Tt():536870912,r.lanes|=l,Lo|=l)}function Wd(r,l){if(!wn)switch(r.tailMode){case"hidden":l=r.tail;for(var v=null;l!==null;)l.alternate!==null&&(v=l),l=l.sibling;v===null?r.tail=null:v.sibling=null;break;case"collapsed":v=r.tail;for(var x=null;v!==null;)v.alternate!==null&&(x=v),v=v.sibling;x===null?l||r.tail===null?r.tail=null:r.tail.sibling=null:x.sibling=null}}function Wt(r){var l=r.alternate!==null&&r.alternate.child===r.child,v=0,x=0;if(l)for(var z=r.child;z!==null;)v|=z.lanes|z.childLanes,x|=z.subtreeFlags&65011712,x|=z.flags&65011712,z.return=r,z=z.sibling;else for(z=r.child;z!==null;)v|=z.lanes|z.childLanes,x|=z.subtreeFlags,x|=z.flags,z.return=r,z=z.sibling;return r.subtreeFlags|=x,r.childLanes=v,l}function Tw(r,l,v){var x=l.pendingProps;switch(Ip(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Wt(l),null;case 1:return Wt(l),null;case 3:return v=l.stateNode,x=null,r!==null&&(x=r.memoizedState.cache),l.memoizedState.cache!==x&&(l.flags|=2048),is(Vo),ve(),v.pendingContext&&(v.context=v.pendingContext,v.pendingContext=null),(r===null||r.child===null)&&(Is(l)?Vs(l):r===null||r.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,_v())),Wt(l),null;case 26:var z=l.type,V=l.memoizedState;return r===null?(Vs(l),V!==null?(Wt(l),u0(l,V)):(Wt(l),c0(l,z,null,x,v))):V?V!==r.memoizedState?(Vs(l),Wt(l),u0(l,V)):(Wt(l),l.flags&=-16777217):(r=r.memoizedProps,r!==x&&Vs(l),Wt(l),c0(l,z,r,x,v)),null;case 27:if(ye(l),v=ie.current,z=l.type,r!==null&&l.stateNode!=null)r.memoizedProps!==x&&Vs(l);else{if(!x){if(l.stateNode===null)throw Error(a(166));return Wt(l),null}r=ae.current,Is(l)?Oh(l):(r=hf(z,x,v),l.stateNode=r,Vs(l))}return Wt(l),null;case 5:if(ye(l),z=l.type,r!==null&&l.stateNode!=null)r.memoizedProps!==x&&Vs(l);else{if(!x){if(l.stateNode===null)throw Error(a(166));return Wt(l),null}if(V=ae.current,Is(l))Oh(l);else{var ee=Hc(ie.current);switch(V){case 1:V=ee.createElementNS("http://www.w3.org/2000/svg",z);break;case 2:V=ee.createElementNS("http://www.w3.org/1998/Math/MathML",z);break;default:switch(z){case"svg":V=ee.createElementNS("http://www.w3.org/2000/svg",z);break;case"math":V=ee.createElementNS("http://www.w3.org/1998/Math/MathML",z);break;case"script":V=ee.createElement("div"),V.innerHTML="<script><\/script>",V=V.removeChild(V.firstChild);break;case"select":V=typeof x.is=="string"?ee.createElement("select",{is:x.is}):ee.createElement("select"),x.multiple?V.multiple=!0:x.size&&(V.size=x.size);break;default:V=typeof x.is=="string"?ee.createElement(z,{is:x.is}):ee.createElement(z)}}V[Xt]=l,V[Pn]=x;e:for(ee=l.child;ee!==null;){if(ee.tag===5||ee.tag===6)V.appendChild(ee.stateNode);else if(ee.tag!==4&&ee.tag!==27&&ee.child!==null){ee.child.return=ee,ee=ee.child;continue}if(ee===l)break e;for(;ee.sibling===null;){if(ee.return===null||ee.return===l)break e;ee=ee.return}ee.sibling.return=ee.return,ee=ee.sibling}l.stateNode=V;e:switch($i(V,z,x),z){case"button":case"input":case"select":case"textarea":x=!!x.autoFocus;break e;case"img":x=!0;break e;default:x=!1}x&&Vs(l)}}return Wt(l),c0(l,l.type,r===null?null:r.memoizedProps,l.pendingProps,v),null;case 6:if(r&&l.stateNode!=null)r.memoizedProps!==x&&Vs(l);else{if(typeof x!="string"&&l.stateNode===null)throw Error(a(166));if(r=ie.current,Is(l)){if(r=l.stateNode,v=l.memoizedProps,x=null,z=yi,z!==null)switch(z.tag){case 27:case 5:x=z.memoizedProps}r[Xt]=l,r=!!(r.nodeValue===v||x!==null&&x.suppressHydrationWarning===!0||k0(r.nodeValue,v)),r||Ma(l,!0)}else r=Hc(r).createTextNode(x),r[Xt]=l,l.stateNode=r}return Wt(l),null;case 31:if(v=l.memoizedState,r===null||r.memoizedState!==null){if(x=Is(l),v!==null){if(r===null){if(!x)throw Error(a(318));if(r=l.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(557));r[Xt]=l}else vc(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Wt(l),r=!1}else v=_v(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=v),r=!0;if(!r)return l.flags&256?(lr(l),l):(lr(l),null);if((l.flags&128)!==0)throw Error(a(558))}return Wt(l),null;case 13:if(x=l.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(z=Is(l),x!==null&&x.dehydrated!==null){if(r===null){if(!z)throw Error(a(318));if(z=l.memoizedState,z=z!==null?z.dehydrated:null,!z)throw Error(a(317));z[Xt]=l}else vc(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;Wt(l),z=!1}else z=_v(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=z),z=!0;if(!z)return l.flags&256?(lr(l),l):(lr(l),null)}return lr(l),(l.flags&128)!==0?(l.lanes=v,l):(v=x!==null,r=r!==null&&r.memoizedState!==null,v&&(x=l.child,z=null,x.alternate!==null&&x.alternate.memoizedState!==null&&x.alternate.memoizedState.cachePool!==null&&(z=x.alternate.memoizedState.cachePool.pool),V=null,x.memoizedState!==null&&x.memoizedState.cachePool!==null&&(V=x.memoizedState.cachePool.pool),V!==z&&(x.flags|=2048)),v!==r&&v&&(l.child.flags|=8192),Vi(l,l.updateQueue),Wt(l),null);case 4:return ve(),r===null&&uf(l.stateNode.containerInfo),Wt(l),null;case 10:return is(l.type),Wt(l),null;case 19:if(re(Eo),x=l.memoizedState,x===null)return Wt(l),null;if(z=(l.flags&128)!==0,V=x.rendering,V===null)if(z)Wd(x,!1);else{if(uo!==0||r!==null&&(r.flags&128)!==0)for(r=l.child;r!==null;){if(V=jd(r),V!==null){for(l.flags|=128,Wd(x,!1),r=V.updateQueue,l.updateQueue=r,Vi(l,r),l.subtreeFlags=0,r=v,v=l.child;v!==null;)Sv(v,r),v=v.sibling;return te(Eo,Eo.current&1|2),wn&&Da(l,x.treeForkCount),l.child}r=r.sibling}x.tail!==null&&at()>jn&&(l.flags|=128,z=!0,Wd(x,!1),l.lanes=4194304)}else{if(!z)if(r=jd(V),r!==null){if(l.flags|=128,z=!0,r=r.updateQueue,l.updateQueue=r,Vi(l,r),Wd(x,!0),x.tail===null&&x.tailMode==="hidden"&&!V.alternate&&!wn)return Wt(l),null}else 2*at()-x.renderingStartTime>jn&&v!==536870912&&(l.flags|=128,z=!0,Wd(x,!1),l.lanes=4194304);x.isBackwards?(V.sibling=l.child,l.child=V):(r=x.last,r!==null?r.sibling=V:l.child=V,x.last=V)}return x.tail!==null?(r=x.tail,x.rendering=r,x.tail=r.sibling,x.renderingStartTime=at(),r.sibling=null,v=Eo.current,te(Eo,z?v&1|2:v&1),wn&&Da(l,x.treeForkCount),r):(Wt(l),null);case 22:case 23:return lr(l),Ud(),x=l.memoizedState!==null,r!==null?r.memoizedState!==null!==x&&(l.flags|=8192):x&&(l.flags|=8192),x?(v&536870912)!==0&&(l.flags&128)===0&&(Wt(l),l.subtreeFlags&6&&(l.flags|=8192)):Wt(l),v=l.updateQueue,v!==null&&Vi(l,v.retryQueue),v=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(v=r.memoizedState.cachePool.pool),x=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(x=l.memoizedState.cachePool.pool),x!==v&&(l.flags|=2048),r!==null&&re(Qr),null;case 24:return v=null,r!==null&&(v=r.memoizedState.cache),l.memoizedState.cache!==v&&(l.flags|=2048),is(Vo),Wt(l),null;case 25:return null;case 30:return null}throw Error(a(156,l.tag))}function Aw(r,l){switch(Ip(l),l.tag){case 1:return r=l.flags,r&65536?(l.flags=r&-65537|128,l):null;case 3:return is(Vo),ve(),r=l.flags,(r&65536)!==0&&(r&128)===0?(l.flags=r&-65537|128,l):null;case 26:case 27:case 5:return ye(l),null;case 31:if(l.memoizedState!==null){if(lr(l),l.alternate===null)throw Error(a(340));vc()}return r=l.flags,r&65536?(l.flags=r&-65537|128,l):null;case 13:if(lr(l),r=l.memoizedState,r!==null&&r.dehydrated!==null){if(l.alternate===null)throw Error(a(340));vc()}return r=l.flags,r&65536?(l.flags=r&-65537|128,l):null;case 19:return re(Eo),null;case 4:return ve(),null;case 10:return is(l.type),null;case 22:case 23:return lr(l),Ud(),r!==null&&re(Qr),r=l.flags,r&65536?(l.flags=r&-65537|128,l):null;case 24:return is(Vo),null;case 25:return null;default:return null}}function xw(r,l){switch(Ip(l),l.tag){case 3:is(Vo),ve();break;case 26:case 27:case 5:ye(l);break;case 4:ve();break;case 31:l.memoizedState!==null&&lr(l);break;case 13:lr(l);break;case 19:re(Eo);break;case 10:is(l.type);break;case 22:case 23:lr(l),Ud(),r!==null&&re(Qr);break;case 24:is(Vo)}}function Ia(r,l){try{var v=l.updateQueue,x=v!==null?v.lastEffect:null;if(x!==null){var z=x.next;v=z;do{if((v.tag&r)===r){x=void 0;var V=v.create,ee=v.inst;x=V(),ee.destroy=x}v=v.next}while(v!==z)}}catch(le){Wn(l,l.return,le)}}function Jr(r,l,v){try{var x=l.updateQueue,z=x!==null?x.lastEffect:null;if(z!==null){var V=z.next;x=V;do{if((x.tag&r)===r){var ee=x.inst,le=ee.destroy;if(le!==void 0){ee.destroy=void 0,z=l;var be=v,Me=le;try{Me()}catch(Fe){Wn(z,be,Fe)}}}x=x.next}while(x!==V)}}catch(Fe){Wn(l,l.return,Fe)}}function hg(r){var l=r.updateQueue;if(l!==null){var v=r.stateNode;try{Cc(l,v)}catch(x){Wn(r,r.return,x)}}}function kc(r,l,v){v.props=Lc(r.type,r.memoizedProps),v.state=r.memoizedState;try{v.componentWillUnmount()}catch(x){Wn(r,l,x)}}function Gs(r,l){try{var v=r.ref;if(v!==null){switch(r.tag){case 26:case 27:case 5:var x=r.stateNode;break;case 30:x=r.stateNode;break;default:x=r.stateNode}typeof v=="function"?r.refCleanup=v(x):v.current=x}}catch(z){Wn(r,l,z)}}function ls(r,l){var v=r.ref,x=r.refCleanup;if(v!==null)if(typeof x=="function")try{x()}catch(z){Wn(r,l,z)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof v=="function")try{v(null)}catch(z){Wn(r,l,z)}else v.current=null}function d0(r){var l=r.type,v=r.memoizedProps,x=r.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":v.autoFocus&&x.focus();break e;case"img":v.src?x.src=v.src:v.srcSet&&(x.srcset=v.srcSet)}}catch(z){Wn(r,r.return,z)}}function mg(r,l,v){try{var x=r.stateNode;$0(x,r.type,v,l),x[Pn]=l}catch(z){Wn(r,r.return,z)}}function f0(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&hs(r.type)||r.tag===4}function Yd(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||f0(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&hs(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Xd(r,l,v){var x=r.tag;if(x===5||x===6)r=r.stateNode,l?(v.nodeType===9?v.body:v.nodeName==="HTML"?v.ownerDocument.body:v).insertBefore(r,l):(l=v.nodeType===9?v.body:v.nodeName==="HTML"?v.ownerDocument.body:v,l.appendChild(r),v=v._reactRootContainer,v!=null||l.onclick!==null||(l.onclick=Br));else if(x!==4&&(x===27&&hs(r.type)&&(v=r.stateNode,l=null),r=r.child,r!==null))for(Xd(r,l,v),r=r.sibling;r!==null;)Xd(r,l,v),r=r.sibling}function qd(r,l,v){var x=r.tag;if(x===5||x===6)r=r.stateNode,l?v.insertBefore(r,l):v.appendChild(r);else if(x!==4&&(x===27&&hs(r.type)&&(v=r.stateNode),r=r.child,r!==null))for(qd(r,l,v),r=r.sibling;r!==null;)qd(r,l,v),r=r.sibling}function h0(r){var l=r.stateNode,v=r.memoizedProps;try{for(var x=r.type,z=l.attributes;z.length;)l.removeAttributeNode(z[0]);$i(l,x,v),l[Xt]=r,l[Pn]=v}catch(V){Wn(r,r.return,V)}}var jl=!1,Jo=!1,pg=!1,m0=typeof WeakSet=="function"?WeakSet:Set,Ti=null;function Kd(r,l){if(r=r.containerInfo,Ig=li,r=pc(r),Ah(r)){if("selectionStart"in r)var v={start:r.selectionStart,end:r.selectionEnd};else e:{v=(v=r.ownerDocument)&&v.defaultView||window;var x=v.getSelection&&v.getSelection();if(x&&x.rangeCount!==0){v=x.anchorNode;var z=x.anchorOffset,V=x.focusNode;x=x.focusOffset;try{v.nodeType,V.nodeType}catch{v=null;break e}var ee=0,le=-1,be=-1,Me=0,Fe=0,We=r,ke=null;t:for(;;){for(var He;We!==v||z!==0&&We.nodeType!==3||(le=ee+z),We!==V||x!==0&&We.nodeType!==3||(be=ee+x),We.nodeType===3&&(ee+=We.nodeValue.length),(He=We.firstChild)!==null;)ke=We,We=He;for(;;){if(We===r)break t;if(ke===v&&++Me===z&&(le=ee),ke===V&&++Fe===x&&(be=ee),(He=We.nextSibling)!==null)break;We=ke,ke=We.parentNode}We=He}v=le===-1||be===-1?null:{start:le,end:be}}else v=null}v=v||{start:0,end:0}}else v=null;for($g={focusedElem:r,selectionRange:v},li=!1,Ti=l;Ti!==null;)if(l=Ti,r=l.child,(l.subtreeFlags&1028)!==0&&r!==null)r.return=l,Ti=r;else for(;Ti!==null;){switch(l=Ti,V=l.alternate,r=l.flags,l.tag){case 0:if((r&4)!==0&&(r=l.updateQueue,r=r!==null?r.events:null,r!==null))for(v=0;v<r.length;v++)z=r[v],z.ref.impl=z.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&V!==null){r=void 0,v=l,z=V.memoizedProps,V=V.memoizedState,x=v.stateNode;try{var wt=Lc(v.type,z);r=x.getSnapshotBeforeUpdate(wt,V),x.__reactInternalSnapshotBeforeUpdate=r}catch(zt){Wn(v,v.return,zt)}}break;case 3:if((r&1024)!==0){if(r=l.stateNode.containerInfo,v=r.nodeType,v===9)wm(r);else if(v===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":wm(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(a(163))}if(r=l.sibling,r!==null){r.return=l.return,Ti=r;break}Ti=l.return}}function im(r,l,v){var x=v.flags;switch(v.tag){case 0:case 11:case 15:zl(r,v),x&4&&Ia(5,v);break;case 1:if(zl(r,v),x&4)if(r=v.stateNode,l===null)try{r.componentDidMount()}catch(ee){Wn(v,v.return,ee)}else{var z=Lc(v.type,l.memoizedProps);l=l.memoizedState;try{r.componentDidUpdate(z,l,r.__reactInternalSnapshotBeforeUpdate)}catch(ee){Wn(v,v.return,ee)}}x&64&&hg(v),x&512&&Gs(v,v.return);break;case 3:if(zl(r,v),x&64&&(r=v.updateQueue,r!==null)){if(l=null,v.child!==null)switch(v.child.tag){case 27:case 5:l=v.child.stateNode;break;case 1:l=v.child.stateNode}try{Cc(r,l)}catch(ee){Wn(v,v.return,ee)}}break;case 27:l===null&&x&4&&h0(v);case 26:case 5:zl(r,v),l===null&&x&4&&d0(v),x&512&&Gs(v,v.return);break;case 12:zl(r,v);break;case 31:zl(r,v),x&4&&_w(r,v);break;case 13:zl(r,v),x&4&&b0(r,v),x&64&&(r=v.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(v=ea.bind(null,v),ff(r,v))));break;case 22:if(x=v.memoizedState!==null||jl,!x){l=l!==null&&l.memoizedState!==null||Jo,z=jl;var V=Jo;jl=x,(Jo=l)&&!V?cs(r,v,(v.subtreeFlags&8772)!==0):zl(r,v),jl=z,Jo=V}break;case 30:break;default:zl(r,v)}}function p0(r){var l=r.alternate;l!==null&&(r.alternate=null,p0(l)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(l=r.stateNode,l!==null&&Ke(l)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var co=null,dr=!1;function Qs(r,l,v){for(v=v.child;v!==null;)g0(r,l,v),v=v.sibling}function g0(r,l,v){if(_t&&typeof _t.onCommitFiberUnmount=="function")try{_t.onCommitFiberUnmount(Lt,v)}catch{}switch(v.tag){case 26:Jo||ls(v,l),Qs(r,l,v),v.memoizedState?v.memoizedState.count--:v.stateNode&&(v=v.stateNode,v.parentNode.removeChild(v));break;case 27:Jo||ls(v,l);var x=co,z=dr;hs(v.type)&&(co=v.stateNode,dr=!1),Qs(r,l,v),Qu(v.stateNode),co=x,dr=z;break;case 5:Jo||ls(v,l);case 6:if(x=co,z=dr,co=null,Qs(r,l,v),co=x,dr=z,co!==null)if(dr)try{(co.nodeType===9?co.body:co.nodeName==="HTML"?co.ownerDocument.body:co).removeChild(v.stateNode)}catch(V){Wn(v,l,V)}else try{co.removeChild(v.stateNode)}catch(V){Wn(v,l,V)}break;case 18:co!==null&&(dr?(r=co,z0(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,v.stateNode),Tf(r)):z0(co,v.stateNode));break;case 4:x=co,z=dr,co=v.stateNode.containerInfo,dr=!0,Qs(r,l,v),co=x,dr=z;break;case 0:case 11:case 14:case 15:Jr(2,v,l),Jo||Jr(4,v,l),Qs(r,l,v);break;case 1:Jo||(ls(v,l),x=v.stateNode,typeof x.componentWillUnmount=="function"&&kc(v,l,x)),Qs(r,l,v);break;case 21:Qs(r,l,v);break;case 22:Jo=(x=Jo)||v.memoizedState!==null,Qs(r,l,v),Jo=x;break;default:Qs(r,l,v)}}function _w(r,l){if(l.memoizedState===null&&(r=l.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{Tf(r)}catch(v){Wn(l,l.return,v)}}}function b0(r,l){if(l.memoizedState===null&&(r=l.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Tf(r)}catch(v){Wn(l,l.return,v)}}function rm(r){switch(r.tag){case 31:case 13:case 19:var l=r.stateNode;return l===null&&(l=r.stateNode=new m0),l;case 22:return r=r.stateNode,l=r._retryCache,l===null&&(l=r._retryCache=new m0),l;default:throw Error(a(435,r.tag))}}function am(r,l){var v=rm(r);l.forEach(function(x){if(!v.has(x)){v.add(x);var z=Ww.bind(null,r,x);x.then(z,z)}})}function fr(r,l){var v=l.deletions;if(v!==null)for(var x=0;x<v.length;x++){var z=v[x],V=r,ee=l,le=ee;e:for(;le!==null;){switch(le.tag){case 27:if(hs(le.type)){co=le.stateNode,dr=!1;break e}break;case 5:co=le.stateNode,dr=!1;break e;case 3:case 4:co=le.stateNode.containerInfo,dr=!0;break e}le=le.return}if(co===null)throw Error(a(160));g0(V,ee,z),co=null,dr=!1,V=z.alternate,V!==null&&(V.return=null),z.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)gg(l,r),l=l.sibling}var ln=null;function gg(r,l){var v=r.alternate,x=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:fr(l,r),_r(r),x&4&&(Jr(3,r,r.return),Ia(3,r),Jr(5,r,r.return));break;case 1:fr(l,r),_r(r),x&512&&(Jo||v===null||ls(v,v.return)),x&64&&jl&&(r=r.updateQueue,r!==null&&(x=r.callbacks,x!==null&&(v=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=v===null?x:v.concat(x))));break;case 26:var z=ln;if(fr(l,r),_r(r),x&512&&(Jo||v===null||ls(v,v.return)),x&4){var V=v!==null?v.memoizedState:null;if(x=r.memoizedState,v===null)if(x===null)if(r.stateNode===null){e:{x=r.type,v=r.memoizedProps,z=z.ownerDocument||z;t:switch(x){case"title":V=z.getElementsByTagName("title")[0],(!V||V[Ee]||V[Xt]||V.namespaceURI==="http://www.w3.org/2000/svg"||V.hasAttribute("itemprop"))&&(V=z.createElement(x),z.head.insertBefore(V,z.querySelector("head > title"))),$i(V,x,v),V[Xt]=r,rt(V),x=V;break e;case"link":var ee=V0("link","href",z).get(x+(v.href||""));if(ee){for(var le=0;le<ee.length;le++)if(V=ee[le],V.getAttribute("href")===(v.href==null||v.href===""?null:v.href)&&V.getAttribute("rel")===(v.rel==null?null:v.rel)&&V.getAttribute("title")===(v.title==null?null:v.title)&&V.getAttribute("crossorigin")===(v.crossOrigin==null?null:v.crossOrigin)){ee.splice(le,1);break t}}V=z.createElement(x),$i(V,x,v),z.head.appendChild(V);break;case"meta":if(ee=V0("meta","content",z).get(x+(v.content||""))){for(le=0;le<ee.length;le++)if(V=ee[le],V.getAttribute("content")===(v.content==null?null:""+v.content)&&V.getAttribute("name")===(v.name==null?null:v.name)&&V.getAttribute("property")===(v.property==null?null:v.property)&&V.getAttribute("http-equiv")===(v.httpEquiv==null?null:v.httpEquiv)&&V.getAttribute("charset")===(v.charSet==null?null:v.charSet)){ee.splice(le,1);break t}}V=z.createElement(x),$i(V,x,v),z.head.appendChild(V);break;default:throw Error(a(468,x))}V[Xt]=r,rt(V),x=V}r.stateNode=x}else Bg(z,r.type,r.stateNode);else r.stateNode=P0(z,x,r.memoizedProps);else V!==x?(V===null?v.stateNode!==null&&(v=v.stateNode,v.parentNode.removeChild(v)):V.count--,x===null?Bg(z,r.type,r.stateNode):P0(z,x,r.memoizedProps)):x===null&&r.stateNode!==null&&mg(r,r.memoizedProps,v.memoizedProps)}break;case 27:fr(l,r),_r(r),x&512&&(Jo||v===null||ls(v,v.return)),v!==null&&x&4&&mg(r,r.memoizedProps,v.memoizedProps);break;case 5:if(fr(l,r),_r(r),x&512&&(Jo||v===null||ls(v,v.return)),r.flags&32){z=r.stateNode;try{Ii(z,"")}catch(wt){Wn(r,r.return,wt)}}x&4&&r.stateNode!=null&&(z=r.memoizedProps,mg(r,z,v!==null?v.memoizedProps:z)),x&1024&&(pg=!0);break;case 6:if(fr(l,r),_r(r),x&4){if(r.stateNode===null)throw Error(a(162));x=r.memoizedProps,v=r.stateNode;try{v.nodeValue=x}catch(wt){Wn(r,r.return,wt)}}break;case 3:if(vf=null,z=ln,ln=Gi(l.containerInfo),fr(l,r),ln=z,_r(r),x&4&&v!==null&&v.memoizedState.isDehydrated)try{Tf(l.containerInfo)}catch(wt){Wn(r,r.return,wt)}pg&&(pg=!1,v0(r));break;case 4:x=ln,ln=Gi(r.stateNode.containerInfo),fr(l,r),_r(r),ln=x;break;case 12:fr(l,r),_r(r);break;case 31:fr(l,r),_r(r),x&4&&(x=r.updateQueue,x!==null&&(r.updateQueue=null,am(r,x)));break;case 13:fr(l,r),_r(r),r.child.flags&8192&&r.memoizedState!==null!=(v!==null&&v.memoizedState!==null)&&(fs=at()),x&4&&(x=r.updateQueue,x!==null&&(r.updateQueue=null,am(r,x)));break;case 22:z=r.memoizedState!==null;var be=v!==null&&v.memoizedState!==null,Me=jl,Fe=Jo;if(jl=Me||z,Jo=Fe||be,fr(l,r),Jo=Fe,jl=Me,_r(r),x&8192)e:for(l=r.stateNode,l._visibility=z?l._visibility&-2:l._visibility|1,z&&(v===null||be||jl||Jo||ju(r)),v=null,l=r;;){if(l.tag===5||l.tag===26){if(v===null){be=v=l;try{if(V=be.stateNode,z)ee=V.style,typeof ee.setProperty=="function"?ee.setProperty("display","none","important"):ee.display="none";else{le=be.stateNode;var We=be.memoizedProps.style,ke=We!=null&&We.hasOwnProperty("display")?We.display:null;le.style.display=ke==null||typeof ke=="boolean"?"":(""+ke).trim()}}catch(wt){Wn(be,be.return,wt)}}}else if(l.tag===6){if(v===null){be=l;try{be.stateNode.nodeValue=z?"":be.memoizedProps}catch(wt){Wn(be,be.return,wt)}}}else if(l.tag===18){if(v===null){be=l;try{var He=be.stateNode;z?Wo(He,!0):Wo(be.stateNode,!1)}catch(wt){Wn(be,be.return,wt)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===r)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===r)break e;for(;l.sibling===null;){if(l.return===null||l.return===r)break e;v===l&&(v=null),l=l.return}v===l&&(v=null),l.sibling.return=l.return,l=l.sibling}x&4&&(x=r.updateQueue,x!==null&&(v=x.retryQueue,v!==null&&(x.retryQueue=null,am(r,v))));break;case 19:fr(l,r),_r(r),x&4&&(x=r.updateQueue,x!==null&&(r.updateQueue=null,am(r,x)));break;case 30:break;case 21:break;default:fr(l,r),_r(r)}}function _r(r){var l=r.flags;if(l&2){try{for(var v,x=r.return;x!==null;){if(f0(x)){v=x;break}x=x.return}if(v==null)throw Error(a(160));switch(v.tag){case 27:var z=v.stateNode,V=Yd(r);qd(r,V,z);break;case 5:var ee=v.stateNode;v.flags&32&&(Ii(ee,""),v.flags&=-33);var le=Yd(r);qd(r,le,ee);break;case 3:case 4:var be=v.stateNode.containerInfo,Me=Yd(r);Xd(r,Me,be);break;default:throw Error(a(161))}}catch(Fe){Wn(r,r.return,Fe)}r.flags&=-3}l&4096&&(r.flags&=-4097)}function v0(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var l=r;v0(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),r=r.sibling}}function zl(r,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)im(r,l.alternate,l),l=l.sibling}function ju(r){for(r=r.child;r!==null;){var l=r;switch(l.tag){case 0:case 11:case 14:case 15:Jr(4,l,l.return),ju(l);break;case 1:ls(l,l.return);var v=l.stateNode;typeof v.componentWillUnmount=="function"&&kc(l,l.return,v),ju(l);break;case 27:Qu(l.stateNode);case 26:case 5:ls(l,l.return),ju(l);break;case 22:l.memoizedState===null&&ju(l);break;case 30:ju(l);break;default:ju(l)}r=r.sibling}}function cs(r,l,v){for(v=v&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var x=l.alternate,z=r,V=l,ee=V.flags;switch(V.tag){case 0:case 11:case 15:cs(z,V,v),Ia(4,V);break;case 1:if(cs(z,V,v),x=V,z=x.stateNode,typeof z.componentDidMount=="function")try{z.componentDidMount()}catch(Me){Wn(x,x.return,Me)}if(x=V,z=x.updateQueue,z!==null){var le=x.stateNode;try{var be=z.shared.hiddenCallbacks;if(be!==null)for(z.shared.hiddenCallbacks=null,z=0;z<be.length;z++)Bp(be[z],le)}catch(Me){Wn(x,x.return,Me)}}v&&ee&64&&hg(V),Gs(V,V.return);break;case 27:h0(V);case 26:case 5:cs(z,V,v),v&&x===null&&ee&4&&d0(V),Gs(V,V.return);break;case 12:cs(z,V,v);break;case 31:cs(z,V,v),v&&ee&4&&_w(z,V);break;case 13:cs(z,V,v),v&&ee&4&&b0(z,V);break;case 22:V.memoizedState===null&&cs(z,V,v),Gs(V,V.return);break;case 30:break;default:cs(z,V,v)}l=l.sibling}}function bg(r,l){var v=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(v=r.memoizedState.cachePool.pool),r=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(r=l.memoizedState.cachePool.pool),r!==v&&(r!=null&&r.refCount++,v!=null&&kh(v))}function vg(r,l){r=null,l.alternate!==null&&(r=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==r&&(l.refCount++,r!=null&&kh(r))}function $a(r,l,v,x){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)Zd(r,l,v,x),l=l.sibling}function Zd(r,l,v,x){var z=l.flags;switch(l.tag){case 0:case 11:case 15:$a(r,l,v,x),z&2048&&Ia(9,l);break;case 1:$a(r,l,v,x);break;case 3:$a(r,l,v,x),z&2048&&(r=null,l.alternate!==null&&(r=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==r&&(l.refCount++,r!=null&&kh(r)));break;case 12:if(z&2048){$a(r,l,v,x),r=l.stateNode;try{var V=l.memoizedProps,ee=V.id,le=V.onPostCommit;typeof le=="function"&&le(ee,l.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(be){Wn(l,l.return,be)}}else $a(r,l,v,x);break;case 31:$a(r,l,v,x);break;case 13:$a(r,l,v,x);break;case 23:break;case 22:V=l.stateNode,ee=l.alternate,l.memoizedState!==null?V._visibility&2?$a(r,l,v,x):sm(r,l):V._visibility&2?$a(r,l,v,x):(V._visibility|=2,Jd(r,l,v,x,(l.subtreeFlags&10256)!==0||!1)),z&2048&&bg(ee,l);break;case 24:$a(r,l,v,x),z&2048&&vg(l.alternate,l);break;default:$a(r,l,v,x)}}function Jd(r,l,v,x,z){for(z=z&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var V=r,ee=l,le=v,be=x,Me=ee.flags;switch(ee.tag){case 0:case 11:case 15:Jd(V,ee,le,be,z),Ia(8,ee);break;case 23:break;case 22:var Fe=ee.stateNode;ee.memoizedState!==null?Fe._visibility&2?Jd(V,ee,le,be,z):sm(V,ee):(Fe._visibility|=2,Jd(V,ee,le,be,z)),z&&Me&2048&&bg(ee.alternate,ee);break;case 24:Jd(V,ee,le,be,z),z&&Me&2048&&vg(ee.alternate,ee);break;default:Jd(V,ee,le,be,z)}l=l.sibling}}function sm(r,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var v=r,x=l,z=x.flags;switch(x.tag){case 22:sm(v,x),z&2048&&bg(x.alternate,x);break;case 24:sm(v,x),z&2048&&vg(x.alternate,x);break;default:sm(v,x)}l=l.sibling}}var Cr=8192;function Ws(r,l,v){if(r.subtreeFlags&Cr)for(r=r.child;r!==null;)Cw(r,l,v),r=r.sibling}function Cw(r,l,v){switch(r.tag){case 26:Ws(r,l,v),r.flags&Cr&&r.memoizedState!==null&&Zs(v,ln,r.memoizedState,r.memoizedProps);break;case 5:Ws(r,l,v);break;case 3:case 4:var x=ln;ln=Gi(r.stateNode.containerInfo),Ws(r,l,v),ln=x;break;case 22:r.memoizedState===null&&(x=r.alternate,x!==null&&x.memoizedState!==null?(x=Cr,Cr=16777216,Ws(r,l,v),Cr=x):Ws(r,l,v));break;default:Ws(r,l,v)}}function yg(r){var l=r.alternate;if(l!==null&&(r=l.child,r!==null)){l.child=null;do l=r.sibling,r.sibling=null,r=l;while(r!==null)}}function ef(r){var l=r.deletions;if((r.flags&16)!==0){if(l!==null)for(var v=0;v<l.length;v++){var x=l[v];Ti=x,Eg(x,r)}yg(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)y0(r),r=r.sibling}function y0(r){switch(r.tag){case 0:case 11:case 15:ef(r),r.flags&2048&&Jr(9,r,r.return);break;case 3:ef(r);break;case 12:ef(r);break;case 22:var l=r.stateNode;r.memoizedState!==null&&l._visibility&2&&(r.return===null||r.return.tag!==13)?(l._visibility&=-3,lm(r)):ef(r);break;default:ef(r)}}function lm(r){var l=r.deletions;if((r.flags&16)!==0){if(l!==null)for(var v=0;v<l.length;v++){var x=l[v];Ti=x,Eg(x,r)}yg(r)}for(r=r.child;r!==null;){switch(l=r,l.tag){case 0:case 11:case 15:Jr(8,l,l.return),lm(l);break;case 22:v=l.stateNode,v._visibility&2&&(v._visibility&=-3,lm(l));break;default:lm(l)}r=r.sibling}}function Eg(r,l){for(;Ti!==null;){var v=Ti;switch(v.tag){case 0:case 11:case 15:Jr(8,v,l);break;case 23:case 22:if(v.memoizedState!==null&&v.memoizedState.cachePool!==null){var x=v.memoizedState.cachePool.pool;x!=null&&x.refCount++}break;case 24:kh(v.memoizedState.cache)}if(x=v.child,x!==null)x.return=v,Ti=x;else e:for(v=r;Ti!==null;){x=Ti;var z=x.sibling,V=x.return;if(p0(x),x===v){Ti=null;break e}if(z!==null){z.return=V,Ti=z;break e}Ti=V}}}var Nw={getCacheForType:function(r){var l=Ye(Vo),v=l.data.get(r);return v===void 0&&(v=r(),l.data.set(r,v)),v},cacheSignal:function(){return Ye(Vo).controller.signal}},E0=typeof WeakMap=="function"?WeakMap:Map,In=0,eo=null,Sn=null,pn=0,Qn=0,Pt=null,Ys=!1,Ic=!1,wg=!1,us=0,uo=0,ds=0,zu=0,Sg=0,hr=0,Lo=0,cm=null,Oo=null,Tg=!1,fs=0,w0=0,jn=1/0,tf=null,wo=null,si=0,Bl=null,$c=null,Xs=0,Nr=0,Ag=null,xg=null,nf=0,um=null;function Rr(){return(In&2)!==0&&pn!==0?pn&-pn:I.T!==null?Lg():Rt()}function Rw(){if(hr===0)if((pn&536870912)===0||wn){var r=yt;yt<<=1,(yt&3932160)===0&&(yt=262144),hr=r}else hr=536870912;return r=sr.current,r!==null&&(r.flags|=32),hr}function mr(r,l,v){(r===eo&&(Qn===2||Qn===9)||r.cancelPendingCommit!==null)&&(qs(r,0),Fl(r,pn,hr,!1)),en(r,v),((In&2)===0||r!==eo)&&(r===eo&&((In&2)===0&&(zu|=v),uo===4&&Fl(r,pn,hr,!1)),Ks(r))}function Lw(r,l,v){if((In&6)!==0)throw Error(a(327));var x=!v&&(l&127)===0&&(l&r.expiredLanes)===0||Ze(r,l),z=x?Iw(r,l):Cg(r,l,!0),V=x;do{if(z===0){Ic&&!x&&Fl(r,l,0,!1);break}else{if(v=r.current.alternate,V&&!Ow(v)){z=Cg(r,l,!1),V=!1;continue}if(z===2){if(V=l,r.errorRecoveryDisabledLanes&V)var ee=0;else ee=r.pendingLanes&-536870913,ee=ee!==0?ee:ee&536870912?536870912:0;if(ee!==0){l=ee;e:{var le=r;z=cm;var be=le.current.memoizedState.isDehydrated;if(be&&(qs(le,ee).flags|=256),ee=Cg(le,ee,!1),ee!==2){if(wg&&!be){le.errorRecoveryDisabledLanes|=V,zu|=V,z=4;break e}V=Oo,Oo=z,V!==null&&(Oo===null?Oo=V:Oo.push.apply(Oo,V))}z=ee}if(V=!1,z!==2)continue}}if(z===1){qs(r,0),Fl(r,l,0,!0);break}e:{switch(x=r,V=z,V){case 0:case 1:throw Error(a(345));case 4:if((l&4194048)!==l)break;case 6:Fl(x,l,hr,!Ys);break e;case 2:Oo=null;break;case 3:case 5:break;default:throw Error(a(329))}if((l&62914560)===l&&(z=fs+300-at(),10<z)){if(Fl(x,l,hr,!Ys),Ce(x,0,!0)!==0)break e;Xs=l,x.timeoutHandle=Em(dm.bind(null,x,v,Oo,tf,Tg,l,hr,zu,Lo,Ys,V,"Throttled",-0,0),z);break e}dm(x,v,Oo,tf,Tg,l,hr,zu,Lo,Ys,V,null,-0,0)}}break}while(!0);Ks(r)}function dm(r,l,v,x,z,V,ee,le,be,Me,Fe,We,ke,He){if(r.timeoutHandle=-1,We=l.subtreeFlags,We&8192||(We&16785408)===16785408){We={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Br},Cw(l,V,We);var wt=(V&62914560)===V?fs-at():(V&4194048)===V?w0-at():0;if(wt=Q0(We,wt),wt!==null){Xs=V,r.cancelPendingCommit=wt(jw.bind(null,r,l,V,v,x,z,ee,le,be,Fe,We,null,ke,He)),Fl(r,V,ee,!Me);return}}jw(r,l,V,v,x,z,ee,le,be)}function Ow(r){for(var l=r;;){var v=l.tag;if((v===0||v===11||v===15)&&l.flags&16384&&(v=l.updateQueue,v!==null&&(v=v.stores,v!==null)))for(var x=0;x<v.length;x++){var z=v[x],V=z.getSnapshot;z=z.value;try{if(!Pi(V(),z))return!1}catch{return!1}}if(v=l.child,l.subtreeFlags&16384&&v!==null)v.return=l,l=v;else{if(l===r)break;for(;l.sibling===null;){if(l.return===null||l.return===r)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function Fl(r,l,v,x){l&=~Sg,l&=~zu,r.suspendedLanes|=l,r.pingedLanes&=~l,x&&(r.warmLanes|=l),x=r.expirationTimes;for(var z=l;0<z;){var V=31-xe(z),ee=1<<V;x[V]=-1,z&=~ee}v!==0&&sn(r,v,l)}function of(){return(In&6)===0?(Vl(0),!1):!0}function S0(){if(Sn!==null){if(Qn===0)var r=Sn.return;else r=Sn,os=Ol=null,Vh(r),Tc=null,Nu=0,r=Sn;for(;r!==null;)xw(r.alternate,r),r=r.return;Sn=null}}function qs(r,l){var v=r.timeoutHandle;v!==-1&&(r.timeoutHandle=-1,t1(v)),v=r.cancelPendingCommit,v!==null&&(r.cancelPendingCommit=null,v()),Xs=0,S0(),eo=r,Sn=v=Rl(r.current,null),pn=l,Qn=0,Pt=null,Ys=!1,Ic=Ze(r,l),wg=!1,Lo=hr=Sg=zu=ds=uo=0,Oo=cm=null,Tg=!1,(l&8)!==0&&(l|=l&32);var x=r.entangledLanes;if(x!==0)for(r=r.entanglements,x&=l;0<x;){var z=31-xe(x),V=1<<z;l|=r[z],x&=~V}return us=l,Fr(),v}function rf(r,l){rn=null,I.H=Zh,l===Ec||l===Id?(l=Ov(),Qn=3):l===_u?(l=Ov(),Qn=4):Qn=l===lg?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,Pt=l,Sn===null&&(uo=1,Qd(r,Vr(l,r.current)))}function Dw(){var r=sr.current;return r===null?!0:(pn&4194048)===pn?Xr===null:(pn&62914560)===pn||(pn&536870912)!==0?r===Xr:!1}function Mw(){var r=I.H;return I.H=Zh,r===null?Zh:r}function kw(){var r=I.A;return I.A=Nw,r}function _g(){uo=4,Ys||(pn&4194048)!==pn&&sr.current!==null||(Ic=!0),(ds&134217727)===0&&(zu&134217727)===0||eo===null||Fl(eo,pn,hr,!1)}function Cg(r,l,v){var x=In;In|=2;var z=Mw(),V=kw();(eo!==r||pn!==l)&&(tf=null,qs(r,l)),l=!1;var ee=uo;e:do try{if(Qn!==0&&Sn!==null){var le=Sn,be=Pt;switch(Qn){case 8:S0(),ee=6;break e;case 3:case 2:case 9:case 6:sr.current===null&&(l=!0);var Me=Qn;if(Qn=0,Pt=null,Bu(r,le,be,Me),v&&Ic){ee=0;break e}break;default:Me=Qn,Qn=0,Pt=null,Bu(r,le,be,Me)}}GT(),ee=uo;break}catch(Fe){rf(r,Fe)}while(!0);return l&&r.shellSuspendCounter++,os=Ol=null,In=x,I.H=z,I.A=V,Sn===null&&(eo=null,pn=0,Fr()),ee}function GT(){for(;Sn!==null;)$w(Sn)}function Iw(r,l){var v=In;In|=2;var x=Mw(),z=kw();eo!==r||pn!==l?(tf=null,jn=at()+500,qs(r,l)):Ic=Ze(r,l);e:do try{if(Qn!==0&&Sn!==null){l=Sn;var V=Pt;t:switch(Qn){case 1:Qn=0,Pt=null,Bu(r,l,V,1);break;case 2:case 9:if(Rv(V)){Qn=0,Pt=null,Uw(l);break}l=function(){Qn!==2&&Qn!==9||eo!==r||(Qn=7),Ks(r)},V.then(l,l);break e;case 3:Qn=7;break e;case 4:Qn=5;break e;case 7:Rv(V)?(Qn=0,Pt=null,Uw(l)):(Qn=0,Pt=null,Bu(r,l,V,7));break;case 5:var ee=null;switch(Sn.tag){case 26:ee=Sn.memoizedState;case 5:case 27:var le=Sn;if(ee?Or(ee):le.stateNode.complete){Qn=0,Pt=null;var be=le.sibling;if(be!==null)Sn=be;else{var Me=le.return;Me!==null?(Sn=Me,fm(Me)):Sn=null}break t}}Qn=0,Pt=null,Bu(r,l,V,5);break;case 6:Qn=0,Pt=null,Bu(r,l,V,6);break;case 8:S0(),uo=6;break e;default:throw Error(a(462))}}Uc();break}catch(Fe){rf(r,Fe)}while(!0);return os=Ol=null,I.H=x,I.A=z,In=v,Sn!==null?0:(eo=null,pn=0,Fr(),uo)}function Uc(){for(;Sn!==null&&!ct();)$w(Sn)}function $w(r){var l=l0(r.alternate,r,us);r.memoizedProps=r.pendingProps,l===null?fm(r):Sn=l}function Uw(r){var l=r,v=l.alternate;switch(l.tag){case 15:case 0:l=Dc(v,l,l.pendingProps,l.type,void 0,pn);break;case 11:l=Dc(v,l,l.pendingProps,l.type.render,l.ref,pn);break;case 5:Vh(l);default:xw(v,l),l=Sn=Sv(l,us),l=l0(v,l,us)}r.memoizedProps=r.pendingProps,l===null?fm(r):Sn=l}function Bu(r,l,v,x){os=Ol=null,Vh(l),Tc=null,Nu=0;var z=l.return;try{if(VT(r,z,l,v,pn)){uo=1,Qd(r,Vr(v,r.current)),Sn=null;return}}catch(V){if(z!==null)throw Sn=z,V;uo=1,Qd(r,Vr(v,r.current)),Sn=null;return}l.flags&32768?(wn||x===1?r=!0:Ic||(pn&536870912)!==0?r=!1:(Ys=r=!0,(x===2||x===9||x===3||x===6)&&(x=sr.current,x!==null&&x.tag===13&&(x.flags|=16384))),Hw(l,r)):fm(l)}function fm(r){var l=r;do{if((l.flags&32768)!==0){Hw(l,Ys);return}r=l.return;var v=Tw(l.alternate,l,us);if(v!==null){Sn=v;return}if(l=l.sibling,l!==null){Sn=l;return}Sn=l=r}while(l!==null);uo===0&&(uo=5)}function Hw(r,l){do{var v=Aw(r.alternate,r);if(v!==null){v.flags&=32767,Sn=v;return}if(v=r.return,v!==null&&(v.flags|=32768,v.subtreeFlags=0,v.deletions=null),!l&&(r=r.sibling,r!==null)){Sn=r;return}Sn=r=v}while(r!==null);uo=6,Sn=null}function jw(r,l,v,x,z,V,ee,le,be){r.cancelPendingCommit=null;do af();while(si!==0);if((In&6)!==0)throw Error(a(327));if(l!==null){if(l===r.current)throw Error(a(177));if(V=l.lanes|l.childLanes,V|=La,Gt(r,v,V,ee,le,be),r===eo&&(Sn=eo=null,pn=0),$c=l,Bl=r,Xs=v,Nr=V,Ag=z,xg=x,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,Yw(tt,function(){return Vw(),null})):(r.callbackNode=null,r.callbackPriority=0),x=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||x){x=I.T,I.T=null,z=W.p,W.p=2,ee=In,In|=4;try{Kd(r,l,v)}finally{In=ee,W.p=z,I.T=x}}si=1,zw(),Bw(),Fw()}}function zw(){if(si===1){si=0;var r=Bl,l=$c,v=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||v){v=I.T,I.T=null;var x=W.p;W.p=2;var z=In;In|=4;try{gg(l,r);var V=$g,ee=pc(r.containerInfo),le=V.focusedElem,be=V.selectionRange;if(ee!==le&&le&&le.ownerDocument&&vu(le.ownerDocument.documentElement,le)){if(be!==null&&Ah(le)){var Me=be.start,Fe=be.end;if(Fe===void 0&&(Fe=Me),"selectionStart"in le)le.selectionStart=Me,le.selectionEnd=Math.min(Fe,le.value.length);else{var We=le.ownerDocument||document,ke=We&&We.defaultView||window;if(ke.getSelection){var He=ke.getSelection(),wt=le.textContent.length,zt=Math.min(be.start,wt),no=be.end===void 0?zt:Math.min(be.end,wt);!He.extend&&zt>no&&(ee=no,no=zt,zt=ee);var Ne=Ev(le,zt),Te=Ev(le,no);if(Ne&&Te&&(He.rangeCount!==1||He.anchorNode!==Ne.node||He.anchorOffset!==Ne.offset||He.focusNode!==Te.node||He.focusOffset!==Te.offset)){var Oe=We.createRange();Oe.setStart(Ne.node,Ne.offset),He.removeAllRanges(),zt>no?(He.addRange(Oe),He.extend(Te.node,Te.offset)):(Oe.setEnd(Te.node,Te.offset),He.addRange(Oe))}}}}for(We=[],He=le;He=He.parentNode;)He.nodeType===1&&We.push({element:He,left:He.scrollLeft,top:He.scrollTop});for(typeof le.focus=="function"&&le.focus(),le=0;le<We.length;le++){var Qe=We[le];Qe.element.scrollLeft=Qe.left,Qe.element.scrollTop=Qe.top}}li=!!Ig,$g=Ig=null}finally{In=z,W.p=x,I.T=v}}r.current=l,si=2}}function Bw(){if(si===2){si=0;var r=Bl,l=$c,v=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||v){v=I.T,I.T=null;var x=W.p;W.p=2;var z=In;In|=4;try{im(r,l.alternate,l)}finally{In=z,W.p=x,I.T=v}}si=3}}function Fw(){if(si===4||si===3){si=0,gt();var r=Bl,l=$c,v=Xs,x=xg;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?si=5:(si=0,$c=Bl=null,Pw(r,r.pendingLanes));var z=r.pendingLanes;if(z===0&&(wo=null),Fn(v),l=l.stateNode,_t&&typeof _t.onCommitFiberRoot=="function")try{_t.onCommitFiberRoot(Lt,l,void 0,(l.current.flags&128)===128)}catch{}if(x!==null){l=I.T,z=W.p,W.p=2,I.T=null;try{for(var V=r.onRecoverableError,ee=0;ee<x.length;ee++){var le=x[ee];V(le.value,{componentStack:le.stack})}}finally{I.T=l,W.p=z}}(Xs&3)!==0&&af(),Ks(r),z=r.pendingLanes,(v&261930)!==0&&(z&42)!==0?r===um?nf++:(nf=0,um=r):nf=0,Vl(0)}}function Pw(r,l){(r.pooledCacheLanes&=l)===0&&(l=r.pooledCache,l!=null&&(r.pooledCache=null,kh(l)))}function af(){return zw(),Bw(),Fw(),Vw()}function Vw(){if(si!==5)return!1;var r=Bl,l=Nr;Nr=0;var v=Fn(Xs),x=I.T,z=W.p;try{W.p=32>v?32:v,I.T=null,v=Ag,Ag=null;var V=Bl,ee=Xs;if(si=0,$c=Bl=null,Xs=0,(In&6)!==0)throw Error(a(331));var le=In;if(In|=4,y0(V.current),Zd(V,V.current,ee,v),In=le,Vl(0,!1),_t&&typeof _t.onPostCommitFiberRoot=="function")try{_t.onPostCommitFiberRoot(Lt,V)}catch{}return!0}finally{W.p=z,I.T=x,Pw(r,l)}}function Gw(r,l,v){l=Vr(v,l),l=Jv(r.stateNode,l,2),r=Yr(r,l,2),r!==null&&(en(r,2),Ks(r))}function Wn(r,l,v){if(r.tag===3)Gw(r,r,v);else for(;l!==null;){if(l.tag===3){Gw(l,r,v);break}else if(l.tag===1){var x=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof x.componentDidCatch=="function"&&(wo===null||!wo.has(x))){r=Vr(v,r),v=e0(2),x=Yr(l,v,2),x!==null&&(t0(v,x,l,r),en(x,2),Ks(x));break}}l=l.return}}function hm(r,l,v){var x=r.pingCache;if(x===null){x=r.pingCache=new E0;var z=new Set;x.set(l,z)}else z=x.get(l),z===void 0&&(z=new Set,x.set(l,z));z.has(v)||(wg=!0,z.add(v),r=T0.bind(null,r,l,v),l.then(r,r))}function T0(r,l,v){var x=r.pingCache;x!==null&&x.delete(l),r.pingedLanes|=r.suspendedLanes&v,r.warmLanes&=~v,eo===r&&(pn&v)===v&&(uo===4||uo===3&&(pn&62914560)===pn&&300>at()-fs?(In&2)===0&&qs(r,0):Sg|=v,Lo===pn&&(Lo=0)),Ks(r)}function Qw(r,l){l===0&&(l=Tt()),r=Nl(r,l),r!==null&&(en(r,l),Ks(r))}function ea(r){var l=r.memoizedState,v=0;l!==null&&(v=l.retryLane),Qw(r,v)}function Ww(r,l){var v=0;switch(r.tag){case 31:case 13:var x=r.stateNode,z=r.memoizedState;z!==null&&(v=z.retryLane);break;case 19:x=r.stateNode;break;case 22:x=r.stateNode._retryCache;break;default:throw Error(a(314))}x!==null&&x.delete(l),Qw(r,v)}function Yw(r,l){return ze(r,l)}var sf=null,Fu=null,A0=!1,Ng=!1,x0=!1,Pl=0;function Ks(r){r!==Fu&&r.next===null&&(Fu===null?sf=Fu=r:Fu=Fu.next=r),Ng=!0,A0||(A0=!0,pm())}function Vl(r,l){if(!x0&&Ng){x0=!0;do for(var v=!1,x=sf;x!==null;){if(r!==0){var z=x.pendingLanes;if(z===0)var V=0;else{var ee=x.suspendedLanes,le=x.pingedLanes;V=(1<<31-xe(42|r)+1)-1,V&=z&~(ee&~le),V=V&201326741?V&201326741|1:V?V|2:0}V!==0&&(v=!0,Pu(x,V))}else V=pn,V=Ce(x,x===eo?V:0,x.cancelPendingCommit!==null||x.timeoutHandle!==-1),(V&3)===0||Ze(x,V)||(v=!0,Pu(x,V));x=x.next}while(v);x0=!1}}function Rg(){_0()}function _0(){Ng=A0=!1;var r=0;Pl!==0&&QT()&&(r=Pl);for(var l=at(),v=null,x=sf;x!==null;){var z=x.next,V=C0(x,l);V===0?(x.next=null,v===null?sf=z:v.next=z,z===null&&(Fu=v)):(v=x,(r!==0||(V&3)!==0)&&(Ng=!0)),x=z}si!==0&&si!==5||Vl(r),Pl!==0&&(Pl=0)}function C0(r,l){for(var v=r.suspendedLanes,x=r.pingedLanes,z=r.expirationTimes,V=r.pendingLanes&-62914561;0<V;){var ee=31-xe(V),le=1<<ee,be=z[ee];be===-1?((le&v)===0||(le&x)!==0)&&(z[ee]=ft(le,l)):be<=l&&(r.expiredLanes|=le),V&=~le}if(l=eo,v=pn,v=Ce(r,r===l?v:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),x=r.callbackNode,v===0||r===l&&(Qn===2||Qn===9)||r.cancelPendingCommit!==null)return x!==null&&x!==null&&nt(x),r.callbackNode=null,r.callbackPriority=0;if((v&3)===0||Ze(r,v)){if(l=v&-v,l===r.callbackPriority)return l;switch(x!==null&&nt(x),Fn(v)){case 2:case 8:v=ot;break;case 32:v=tt;break;case 268435456:v=St;break;default:v=tt}return x=mm.bind(null,r),v=ze(v,x),r.callbackPriority=l,r.callbackNode=v,l}return x!==null&&x!==null&&nt(x),r.callbackPriority=2,r.callbackNode=null,2}function mm(r,l){if(si!==0&&si!==5)return r.callbackNode=null,r.callbackPriority=0,null;var v=r.callbackNode;if(af()&&r.callbackNode!==v)return null;var x=pn;return x=Ce(r,r===eo?x:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),x===0?null:(Lw(r,x,l),C0(r,at()),r.callbackNode!=null&&r.callbackNode===v?mm.bind(null,r):null)}function Pu(r,l){if(af())return null;Lw(r,l,!0)}function pm(){n1(function(){(In&6)!==0?ze(je,Rg):_0()})}function Lg(){if(Pl===0){var r=yc;r===0&&(r=ut,ut<<=1,(ut&261888)===0&&(ut=256)),Pl=r}return Pl}function Xw(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:Sr(""+r)}function Vu(r,l){var v=l.ownerDocument.createElement("input");return v.name=l.name,v.value=l.value,r.id&&v.setAttribute("form",r.id),l.parentNode.insertBefore(v,l),r=new FormData(r),v.parentNode.removeChild(v),r}function gm(r,l,v,x,z){if(l==="submit"&&v&&v.stateNode===z){var V=Xw((z[Pn]||null).action),ee=x.submitter;ee&&(l=(l=ee[Pn]||null)?Xw(l.formAction):ee.getAttribute("formAction"),l!==null&&(V=l,ee=null));var le=new Qt("action","action",null,x,z);r.push({event:le,listeners:[{instance:null,listener:function(){if(x.defaultPrevented){if(Pl!==0){var be=ee?Vu(z,ee):new FormData(z);Vd(v,{pending:!0,data:be,method:z.method,action:V},null,be)}}else typeof V=="function"&&(le.preventDefault(),be=ee?Vu(z,ee):new FormData(z),Vd(v,{pending:!0,data:be,method:z.method,action:V},V,be))},currentTarget:z}]})}}for(var Og=0;Og<Rd.length;Og++){var lf=Rd[Og],N0=lf.toLowerCase(),R0=lf[0].toUpperCase()+lf.slice(1);or(N0,"on"+R0)}or(_h,"onAnimationEnd"),or(wv,"onAnimationIteration"),or(Op,"onAnimationStart"),or("dblclick","onDoubleClick"),or("focusin","onFocus"),or("focusout","onBlur"),or(yu,"onTransitionRun"),or(Ch,"onTransitionStart"),or(Os,"onTransitionCancel"),or(aw,"onTransitionEnd"),On("onMouseEnter",["mouseout","mouseover"]),On("onMouseLeave",["mouseout","mouseover"]),On("onPointerEnter",["pointerout","pointerover"]),On("onPointerLeave",["pointerout","pointerover"]),gi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),gi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),gi("onBeforeInput",["compositionend","keypress","textInput","paste"]),gi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),gi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),gi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var cf="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(" "),qw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(cf));function Kw(r,l){l=(l&4)!==0;for(var v=0;v<r.length;v++){var x=r[v],z=x.event;x=x.listeners;e:{var V=void 0;if(l)for(var ee=x.length-1;0<=ee;ee--){var le=x[ee],be=le.instance,Me=le.currentTarget;if(le=le.listener,be!==V&&z.isPropagationStopped())break e;V=le,z.currentTarget=Me;try{V(z)}catch(Fe){Eu(Fe)}z.currentTarget=null,V=be}else for(ee=0;ee<x.length;ee++){if(le=x[ee],be=le.instance,Me=le.currentTarget,le=le.listener,be!==V&&z.isPropagationStopped())break e;V=le,z.currentTarget=Me;try{V(z)}catch(Fe){Eu(Fe)}z.currentTarget=null,V=be}}}}function En(r,l){var v=l[mo];v===void 0&&(v=l[mo]=new Set);var x=r+"__bubble";v.has(x)||(bm(l,r,2,!1),v.add(x))}function L0(r,l,v){var x=0;l&&(x|=4),bm(v,r,x,l)}var Dg="_reactListening"+Math.random().toString(36).slice(2);function uf(r){if(!r[Dg]){r[Dg]=!0,vn.forEach(function(v){v!=="selectionchange"&&(qw.has(v)||L0(v,!1,r),L0(v,!0,r))});var l=r.nodeType===9?r:r.ownerDocument;l===null||l[Dg]||(l[Dg]=!0,L0("selectionchange",!1,l))}}function bm(r,l,v,x){switch(_m(l)){case 2:var z=Js;break;case 8:z=el;break;default:z=Ui}v=z.bind(null,l,v,r),z=void 0,!dc||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(z=!0),x?z!==void 0?r.addEventListener(l,v,{capture:!0,passive:z}):r.addEventListener(l,v,!0):z!==void 0?r.addEventListener(l,v,{passive:z}):r.addEventListener(l,v,!1)}function O0(r,l,v,x,z){var V=x;if((l&1)===0&&(l&2)===0&&x!==null)e:for(;;){if(x===null)return;var ee=x.tag;if(ee===3||ee===4){var le=x.stateNode.containerInfo;if(le===z)break;if(ee===4)for(ee=x.return;ee!==null;){var be=ee.tag;if((be===3||be===4)&&ee.stateNode.containerInfo===z)return;ee=ee.return}for(;le!==null;){if(ee=st(le),ee===null)return;if(be=ee.tag,be===5||be===6||be===26||be===27){x=V=ee;continue e}le=le.parentNode}}x=x.return}yh(function(){var Me=V,Fe=du(v),We=[];e:{var ke=Ds.get(r);if(ke!==void 0){var He=Qt,wt=r;switch(r){case"keypress":if(ce(v)===0)break e;case"keydown":case"keyup":He=Ap;break;case"focusin":wt="focus",He=Tr;break;case"focusout":wt="blur",He=Tr;break;case"beforeblur":case"afterblur":He=Tr;break;case"click":if(v.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":He=No;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":He=tr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":He=JE;break;case _h:case wv:case Op:He=Sh;break;case aw:He=zT;break;case"scroll":case"scrollend":He=Ko;break;case"wheel":He=BT;break;case"copy":case"cut":case"paste":He=_a;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":He=Ka;break;case"toggle":case"beforetoggle":He=fv}var zt=(l&4)!==0,no=!zt&&(r==="scroll"||r==="scrollend"),Ne=zt?ke!==null?ke+"Capture":null:ke;zt=[];for(var Te=Me,Oe;Te!==null;){var Qe=Te;if(Oe=Qe.stateNode,Qe=Qe.tag,Qe!==5&&Qe!==26&&Qe!==27||Oe===null||Ne===null||(Qe=Bo(Te,Ne),Qe!=null&&zt.push(vm(Te,Qe,Oe))),no)break;Te=Te.return}0<zt.length&&(ke=new He(ke,wt,null,v,Fe),We.push({event:ke,listeners:zt}))}}if((l&7)===0){e:{if(ke=r==="mouseover"||r==="pointerover",He=r==="mouseout"||r==="pointerout",ke&&v!==ya&&(wt=v.relatedTarget||v.fromElement)&&(st(wt)||wt[zo]))break e;if((He||ke)&&(ke=Fe.window===Fe?Fe:(ke=Fe.ownerDocument)?ke.defaultView||ke.parentWindow:window,He?(wt=v.relatedTarget||v.toElement,He=Me,wt=wt?st(wt):null,wt!==null&&(no=p(wt),zt=wt.tag,wt!==no||zt!==5&&zt!==27&&zt!==6)&&(wt=null)):(He=null,wt=Me),He!==wt)){if(zt=No,Qe="onMouseLeave",Ne="onMouseEnter",Te="mouse",(r==="pointerout"||r==="pointerover")&&(zt=Ka,Qe="onPointerLeave",Ne="onPointerEnter",Te="pointer"),no=He==null?ke:Zn(He),Oe=wt==null?ke:Zn(wt),ke=new zt(Qe,Te+"leave",He,v,Fe),ke.target=no,ke.relatedTarget=Oe,Qe=null,st(Fe)===Me&&(zt=new zt(Ne,Te+"enter",wt,v,Fe),zt.target=Oe,zt.relatedTarget=no,Qe=zt),no=Qe,He&&wt)t:{for(zt=Zw,Ne=He,Te=wt,Oe=0,Qe=Ne;Qe;Qe=zt(Qe))Oe++;Qe=0;for(var Ot=Te;Ot;Ot=zt(Ot))Qe++;for(;0<Oe-Qe;)Ne=zt(Ne),Oe--;for(;0<Qe-Oe;)Te=zt(Te),Qe--;for(;Oe--;){if(Ne===Te||Te!==null&&Ne===Te.alternate){zt=Ne;break t}Ne=zt(Ne),Te=zt(Te)}zt=null}else zt=null;He!==null&&Mg(We,ke,He,zt,!1),wt!==null&&no!==null&&Mg(We,no,wt,zt,!0)}}e:{if(ke=Me?Zn(Me):window,He=ke.nodeName&&ke.nodeName.toLowerCase(),He==="select"||He==="input"&&ke.type==="file")var Dn=bv;else if(Ls(ke))if(Cp)Dn=bu;else{Dn=iw;var At=ow}else He=ke.nodeName,!He||He.toLowerCase()!=="input"||ke.type!=="checkbox"&&ke.type!=="radio"?Me&&vh(Me.elementType)&&(Dn=bv):Dn=mc;if(Dn&&(Dn=Dn(r,Me))){gv(We,Dn,v,Fe);break e}At&&At(r,ke,Me),r==="focusout"&&Me&&ke.type==="number"&&Me.memoizedProps.value!=null&&_l(ke,"number",ke.value)}switch(At=Me?Zn(Me):window,r){case"focusin":(Ls(At)||At.contentEditable==="true")&&(gc=At,Cd=Me,Ra=null);break;case"focusout":Ra=Cd=gc=null;break;case"mousedown":Ja=!0;break;case"contextmenu":case"mouseup":case"dragend":Ja=!1,Lp(We,v,Fe);break;case"selectionchange":if(xh)break;case"keydown":case"keyup":Lp(We,v,Fe)}var nn;if(xd)e:{switch(r){case"compositionstart":var cn="onCompositionStart";break e;case"compositionend":cn="onCompositionEnd";break e;case"compositionupdate":cn="onCompositionUpdate";break e}cn=void 0}else mu?_p(r,v)&&(cn="onCompositionEnd"):r==="keydown"&&v.keyCode===229&&(cn="onCompositionStart");cn&&(hv&&v.locale!=="ko"&&(mu||cn!=="onCompositionStart"?cn==="onCompositionEnd"&&mu&&(nn=wh()):(Aa=Fe,Eh="value"in Aa?Aa.value:Aa.textContent,mu=!0)),At=ym(Me,cn),0<At.length&&(cn=new KE(cn,r,null,v,Fe),We.push({event:cn,listeners:At}),nn?cn.data=nn:(nn=mv(v),nn!==null&&(cn.data=nn)))),(nn=Fi?nw(r,v):FT(r,v))&&(cn=ym(Me,"onBeforeInput"),0<cn.length&&(At=new KE("onBeforeInput","beforeinput",null,v,Fe),We.push({event:At,listeners:cn}),At.data=nn)),gm(We,r,Me,v,Fe)}Kw(We,l)})}function vm(r,l,v){return{instance:r,listener:l,currentTarget:v}}function ym(r,l){for(var v=l+"Capture",x=[];r!==null;){var z=r,V=z.stateNode;if(z=z.tag,z!==5&&z!==26&&z!==27||V===null||(z=Bo(r,v),z!=null&&x.unshift(vm(r,z,V)),z=Bo(r,l),z!=null&&x.push(vm(r,z,V))),r.tag===3)return x;r=r.return}return[]}function Zw(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function Mg(r,l,v,x,z){for(var V=l._reactName,ee=[];v!==null&&v!==x;){var le=v,be=le.alternate,Me=le.stateNode;if(le=le.tag,be!==null&&be===x)break;le!==5&&le!==26&&le!==27||Me===null||(be=Me,z?(Me=Bo(v,V),Me!=null&&ee.unshift(vm(v,Me,be))):z||(Me=Bo(v,V),Me!=null&&ee.push(vm(v,Me,be)))),v=v.return}ee.length!==0&&r.push({event:l,listeners:ee})}var Jw=/\r\n?/g,D0=/\u0000|\uFFFD/g;function M0(r){return(typeof r=="string"?r:""+r).replace(Jw,`
81
+ `).replace(D0,"")}function k0(r,l){return l=M0(l),M0(r)===l}function to(r,l,v,x,z,V){switch(v){case"children":typeof x=="string"?l==="body"||l==="textarea"&&x===""||Ii(r,x):(typeof x=="number"||typeof x=="bigint")&&l!=="body"&&Ii(r,""+x);break;case"className":Ed(r,"class",x);break;case"tabIndex":Ed(r,"tabindex",x);break;case"dir":case"role":case"viewBox":case"width":case"height":Ed(r,v,x);break;case"style":Qa(r,x,V);break;case"data":if(l!=="object"){Ed(r,"data",x);break}case"src":case"href":if(x===""&&(l!=="a"||v!=="href")){r.removeAttribute(v);break}if(x==null||typeof x=="function"||typeof x=="symbol"||typeof x=="boolean"){r.removeAttribute(v);break}x=Sr(""+x),r.setAttribute(v,x);break;case"action":case"formAction":if(typeof x=="function"){r.setAttribute(v,"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 V=="function"&&(v==="formAction"?(l!=="input"&&to(r,l,"name",z.name,z,null),to(r,l,"formEncType",z.formEncType,z,null),to(r,l,"formMethod",z.formMethod,z,null),to(r,l,"formTarget",z.formTarget,z,null)):(to(r,l,"encType",z.encType,z,null),to(r,l,"method",z.method,z,null),to(r,l,"target",z.target,z,null)));if(x==null||typeof x=="symbol"||typeof x=="boolean"){r.removeAttribute(v);break}x=Sr(""+x),r.setAttribute(v,x);break;case"onClick":x!=null&&(r.onclick=Br);break;case"onScroll":x!=null&&En("scroll",r);break;case"onScrollEnd":x!=null&&En("scrollend",r);break;case"dangerouslySetInnerHTML":if(x!=null){if(typeof x!="object"||!("__html"in x))throw Error(a(61));if(v=x.__html,v!=null){if(z.children!=null)throw Error(a(60));r.innerHTML=v}}break;case"multiple":r.multiple=x&&typeof x!="function"&&typeof x!="symbol";break;case"muted":r.muted=x&&typeof x!="function"&&typeof x!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(x==null||typeof x=="function"||typeof x=="boolean"||typeof x=="symbol"){r.removeAttribute("xlink:href");break}v=Sr(""+x),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",v);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":x!=null&&typeof x!="function"&&typeof x!="symbol"?r.setAttribute(v,""+x):r.removeAttribute(v);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":x&&typeof x!="function"&&typeof x!="symbol"?r.setAttribute(v,""):r.removeAttribute(v);break;case"capture":case"download":x===!0?r.setAttribute(v,""):x!==!1&&x!=null&&typeof x!="function"&&typeof x!="symbol"?r.setAttribute(v,x):r.removeAttribute(v);break;case"cols":case"rows":case"size":case"span":x!=null&&typeof x!="function"&&typeof x!="symbol"&&!isNaN(x)&&1<=x?r.setAttribute(v,x):r.removeAttribute(v);break;case"rowSpan":case"start":x==null||typeof x=="function"||typeof x=="symbol"||isNaN(x)?r.removeAttribute(v):r.setAttribute(v,x);break;case"popover":En("beforetoggle",r),En("toggle",r),sc(r,"popover",x);break;case"xlinkActuate":Ga(r,"http://www.w3.org/1999/xlink","xlink:actuate",x);break;case"xlinkArcrole":Ga(r,"http://www.w3.org/1999/xlink","xlink:arcrole",x);break;case"xlinkRole":Ga(r,"http://www.w3.org/1999/xlink","xlink:role",x);break;case"xlinkShow":Ga(r,"http://www.w3.org/1999/xlink","xlink:show",x);break;case"xlinkTitle":Ga(r,"http://www.w3.org/1999/xlink","xlink:title",x);break;case"xlinkType":Ga(r,"http://www.w3.org/1999/xlink","xlink:type",x);break;case"xmlBase":Ga(r,"http://www.w3.org/XML/1998/namespace","xml:base",x);break;case"xmlLang":Ga(r,"http://www.w3.org/XML/1998/namespace","xml:lang",x);break;case"xmlSpace":Ga(r,"http://www.w3.org/XML/1998/namespace","xml:space",x);break;case"is":sc(r,"is",x);break;case"innerText":case"textContent":break;default:(!(2<v.length)||v[0]!=="o"&&v[0]!=="O"||v[1]!=="n"&&v[1]!=="N")&&(v=lv.get(v)||v,sc(r,v,x))}}function I0(r,l,v,x,z,V){switch(v){case"style":Qa(r,x,V);break;case"dangerouslySetInnerHTML":if(x!=null){if(typeof x!="object"||!("__html"in x))throw Error(a(61));if(v=x.__html,v!=null){if(z.children!=null)throw Error(a(60));r.innerHTML=v}}break;case"children":typeof x=="string"?Ii(r,x):(typeof x=="number"||typeof x=="bigint")&&Ii(r,""+x);break;case"onScroll":x!=null&&En("scroll",r);break;case"onScrollEnd":x!=null&&En("scrollend",r);break;case"onClick":x!=null&&(r.onclick=Br);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!yn.hasOwnProperty(v))e:{if(v[0]==="o"&&v[1]==="n"&&(z=v.endsWith("Capture"),l=v.slice(2,z?v.length-7:void 0),V=r[Pn]||null,V=V!=null?V[v]:null,typeof V=="function"&&r.removeEventListener(l,V,z),typeof x=="function")){typeof V!="function"&&V!==null&&(v in r?r[v]=null:r.hasAttribute(v)&&r.removeAttribute(v)),r.addEventListener(l,x,z);break e}v in r?r[v]=x:x===!0?r.setAttribute(v,""):sc(r,v,x)}}}function $i(r,l,v){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":En("error",r),En("load",r);var x=!1,z=!1,V;for(V in v)if(v.hasOwnProperty(V)){var ee=v[V];if(ee!=null)switch(V){case"src":x=!0;break;case"srcSet":z=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,l));default:to(r,l,V,ee,v,null)}}z&&to(r,l,"srcSet",v.srcSet,v,null),x&&to(r,l,"src",v.src,v,null);return;case"input":En("invalid",r);var le=V=ee=z=null,be=null,Me=null;for(x in v)if(v.hasOwnProperty(x)){var Fe=v[x];if(Fe!=null)switch(x){case"name":z=Fe;break;case"type":ee=Fe;break;case"checked":be=Fe;break;case"defaultChecked":Me=Fe;break;case"value":V=Fe;break;case"defaultValue":le=Fe;break;case"children":case"dangerouslySetInnerHTML":if(Fe!=null)throw Error(a(137,l));break;default:to(r,l,x,Fe,v,null)}}lc(r,V,le,be,Me,ee,z,!1);return;case"select":En("invalid",r),x=ee=V=null;for(z in v)if(v.hasOwnProperty(z)&&(le=v[z],le!=null))switch(z){case"value":V=le;break;case"defaultValue":ee=le;break;case"multiple":x=le;default:to(r,l,z,le,v,null)}l=V,v=ee,r.multiple=!!x,l!=null?cc(r,!!x,l,!1):v!=null&&cc(r,!!x,v,!0);return;case"textarea":En("invalid",r),V=z=x=null;for(ee in v)if(v.hasOwnProperty(ee)&&(le=v[ee],le!=null))switch(ee){case"value":x=le;break;case"defaultValue":z=le;break;case"children":V=le;break;case"dangerouslySetInnerHTML":if(le!=null)throw Error(a(91));break;default:to(r,l,ee,le,v,null)}uc(r,x,z,V);return;case"option":for(be in v)if(v.hasOwnProperty(be)&&(x=v[be],x!=null))switch(be){case"selected":r.selected=x&&typeof x!="function"&&typeof x!="symbol";break;default:to(r,l,be,x,v,null)}return;case"dialog":En("beforetoggle",r),En("toggle",r),En("cancel",r),En("close",r);break;case"iframe":case"object":En("load",r);break;case"video":case"audio":for(x=0;x<cf.length;x++)En(cf[x],r);break;case"image":En("error",r),En("load",r);break;case"details":En("toggle",r);break;case"embed":case"source":case"link":En("error",r),En("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Me in v)if(v.hasOwnProperty(Me)&&(x=v[Me],x!=null))switch(Me){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,l));default:to(r,l,Me,x,v,null)}return;default:if(vh(l)){for(Fe in v)v.hasOwnProperty(Fe)&&(x=v[Fe],x!==void 0&&I0(r,l,Fe,x,v,void 0));return}}for(le in v)v.hasOwnProperty(le)&&(x=v[le],x!=null&&to(r,l,le,x,v,null))}function $0(r,l,v,x){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var z=null,V=null,ee=null,le=null,be=null,Me=null,Fe=null;for(He in v){var We=v[He];if(v.hasOwnProperty(He)&&We!=null)switch(He){case"checked":break;case"value":break;case"defaultValue":be=We;default:x.hasOwnProperty(He)||to(r,l,He,null,x,We)}}for(var ke in x){var He=x[ke];if(We=v[ke],x.hasOwnProperty(ke)&&(He!=null||We!=null))switch(ke){case"type":V=He;break;case"name":z=He;break;case"checked":Me=He;break;case"defaultChecked":Fe=He;break;case"value":ee=He;break;case"defaultValue":le=He;break;case"children":case"dangerouslySetInnerHTML":if(He!=null)throw Error(a(137,l));break;default:He!==We&&to(r,l,ke,He,x,We)}}cu(r,ee,le,be,Me,Fe,V,z);return;case"select":He=ee=le=ke=null;for(V in v)if(be=v[V],v.hasOwnProperty(V)&&be!=null)switch(V){case"value":break;case"multiple":He=be;default:x.hasOwnProperty(V)||to(r,l,V,null,x,be)}for(z in x)if(V=x[z],be=v[z],x.hasOwnProperty(z)&&(V!=null||be!=null))switch(z){case"value":ke=V;break;case"defaultValue":le=V;break;case"multiple":ee=V;default:V!==be&&to(r,l,z,V,x,be)}l=le,v=ee,x=He,ke!=null?cc(r,!!v,ke,!1):!!x!=!!v&&(l!=null?cc(r,!!v,l,!0):cc(r,!!v,v?[]:"",!1));return;case"textarea":He=ke=null;for(le in v)if(z=v[le],v.hasOwnProperty(le)&&z!=null&&!x.hasOwnProperty(le))switch(le){case"value":break;case"children":break;default:to(r,l,le,null,x,z)}for(ee in x)if(z=x[ee],V=v[ee],x.hasOwnProperty(ee)&&(z!=null||V!=null))switch(ee){case"value":ke=z;break;case"defaultValue":He=z;break;case"children":break;case"dangerouslySetInnerHTML":if(z!=null)throw Error(a(91));break;default:z!==V&&to(r,l,ee,z,x,V)}Td(r,ke,He);return;case"option":for(var wt in v)if(ke=v[wt],v.hasOwnProperty(wt)&&ke!=null&&!x.hasOwnProperty(wt))switch(wt){case"selected":r.selected=!1;break;default:to(r,l,wt,null,x,ke)}for(be in x)if(ke=x[be],He=v[be],x.hasOwnProperty(be)&&ke!==He&&(ke!=null||He!=null))switch(be){case"selected":r.selected=ke&&typeof ke!="function"&&typeof ke!="symbol";break;default:to(r,l,be,ke,x,He)}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 zt in v)ke=v[zt],v.hasOwnProperty(zt)&&ke!=null&&!x.hasOwnProperty(zt)&&to(r,l,zt,null,x,ke);for(Me in x)if(ke=x[Me],He=v[Me],x.hasOwnProperty(Me)&&ke!==He&&(ke!=null||He!=null))switch(Me){case"children":case"dangerouslySetInnerHTML":if(ke!=null)throw Error(a(137,l));break;default:to(r,l,Me,ke,x,He)}return;default:if(vh(l)){for(var no in v)ke=v[no],v.hasOwnProperty(no)&&ke!==void 0&&!x.hasOwnProperty(no)&&I0(r,l,no,void 0,x,ke);for(Fe in x)ke=x[Fe],He=v[Fe],!x.hasOwnProperty(Fe)||ke===He||ke===void 0&&He===void 0||I0(r,l,Fe,ke,x,He);return}}for(var Ne in v)ke=v[Ne],v.hasOwnProperty(Ne)&&ke!=null&&!x.hasOwnProperty(Ne)&&to(r,l,Ne,null,x,ke);for(We in x)ke=x[We],He=v[We],!x.hasOwnProperty(We)||ke===He||ke==null&&He==null||to(r,l,We,ke,x,He)}function kg(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function U0(){if(typeof performance.getEntriesByType=="function"){for(var r=0,l=0,v=performance.getEntriesByType("resource"),x=0;x<v.length;x++){var z=v[x],V=z.transferSize,ee=z.initiatorType,le=z.duration;if(V&&le&&kg(ee)){for(ee=0,le=z.responseEnd,x+=1;x<v.length;x++){var be=v[x],Me=be.startTime;if(Me>le)break;var Fe=be.transferSize,We=be.initiatorType;Fe&&kg(We)&&(be=be.responseEnd,ee+=Fe*(be<le?1:(le-Me)/(be-Me)))}if(--x,l+=8*(V+ee)/(z.duration/1e3),r++,10<r)break}}if(0<r)return l/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var Ig=null,$g=null;function Hc(r){return r.nodeType===9?r:r.ownerDocument}function e1(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function H0(r,l){if(r===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&l==="foreignObject"?0:r}function df(r,l){return r==="textarea"||r==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var Ug=null;function QT(){var r=window.event;return r&&r.type==="popstate"?r===Ug?!1:(Ug=r,!0):(Ug=null,!1)}var Em=typeof setTimeout=="function"?setTimeout:void 0,t1=typeof clearTimeout=="function"?clearTimeout:void 0,Gu=typeof Promise=="function"?Promise:void 0,n1=typeof queueMicrotask=="function"?queueMicrotask:typeof Gu<"u"?function(r){return Gu.resolve(null).then(r).catch(j0)}:Em;function j0(r){setTimeout(function(){throw r})}function hs(r){return r==="head"}function z0(r,l){var v=l,x=0;do{var z=v.nextSibling;if(r.removeChild(v),z&&z.nodeType===8)if(v=z.data,v==="/$"||v==="/&"){if(x===0){r.removeChild(z),Tf(l);return}x--}else if(v==="$"||v==="$?"||v==="$~"||v==="$!"||v==="&")x++;else if(v==="html")Qu(r.ownerDocument.documentElement);else if(v==="head"){v=r.ownerDocument.head,Qu(v);for(var V=v.firstChild;V;){var ee=V.nextSibling,le=V.nodeName;V[Ee]||le==="SCRIPT"||le==="STYLE"||le==="LINK"&&V.rel.toLowerCase()==="stylesheet"||v.removeChild(V),V=ee}}else v==="body"&&Qu(r.ownerDocument.body);v=z}while(v);Tf(l)}function Wo(r,l){var v=r;r=0;do{var x=v.nextSibling;if(v.nodeType===1?l?(v._stashedDisplay=v.style.display,v.style.display="none"):(v.style.display=v._stashedDisplay||"",v.getAttribute("style")===""&&v.removeAttribute("style")):v.nodeType===3&&(l?(v._stashedText=v.nodeValue,v.nodeValue=""):v.nodeValue=v._stashedText||""),x&&x.nodeType===8)if(v=x.data,v==="/$"){if(r===0)break;r--}else v!=="$"&&v!=="$?"&&v!=="$~"&&v!=="$!"||r++;v=x}while(v)}function wm(r){var l=r.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var v=l;switch(l=l.nextSibling,v.nodeName){case"HTML":case"HEAD":case"BODY":wm(v),Ke(v);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(v.rel.toLowerCase()==="stylesheet")continue}r.removeChild(v)}}function WT(r,l,v,x){for(;r.nodeType===1;){var z=v;if(r.nodeName.toLowerCase()!==l.toLowerCase()){if(!x&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(x){if(!r[Ee])switch(l){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(V=r.getAttribute("rel"),V==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(V!==z.rel||r.getAttribute("href")!==(z.href==null||z.href===""?null:z.href)||r.getAttribute("crossorigin")!==(z.crossOrigin==null?null:z.crossOrigin)||r.getAttribute("title")!==(z.title==null?null:z.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(V=r.getAttribute("src"),(V!==(z.src==null?null:z.src)||r.getAttribute("type")!==(z.type==null?null:z.type)||r.getAttribute("crossorigin")!==(z.crossOrigin==null?null:z.crossOrigin))&&V&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(l==="input"&&r.type==="hidden"){var V=z.name==null?null:""+z.name;if(z.type==="hidden"&&r.getAttribute("name")===V)return r}else return r;if(r=pr(r.nextSibling),r===null)break}return null}function dn(r,l,v){if(l==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!v||(r=pr(r.nextSibling),r===null))return null;return r}function o1(r,l){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!l||(r=pr(r.nextSibling),r===null))return null;return r}function Ua(r){return r.data==="$?"||r.data==="$~"}function jc(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function ff(r,l){var v=r.ownerDocument;if(r.data==="$~")r._reactRetry=l;else if(r.data!=="$?"||v.readyState!=="loading")l();else{var x=function(){l(),v.removeEventListener("DOMContentLoaded",x)};v.addEventListener("DOMContentLoaded",x),r._reactRetry=x}}function pr(r){for(;r!=null;r=r.nextSibling){var l=r.nodeType;if(l===1||l===3)break;if(l===8){if(l=r.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return r}var Sm=null;function Hg(r){r=r.nextSibling;for(var l=0;r;){if(r.nodeType===8){var v=r.data;if(v==="/$"||v==="/&"){if(l===0)return pr(r.nextSibling);l--}else v!=="$"&&v!=="$!"&&v!=="$?"&&v!=="$~"&&v!=="&"||l++}r=r.nextSibling}return null}function ms(r){r=r.previousSibling;for(var l=0;r;){if(r.nodeType===8){var v=r.data;if(v==="$"||v==="$!"||v==="$?"||v==="$~"||v==="&"){if(l===0)return r;l--}else v!=="/$"&&v!=="/&"||l++}r=r.previousSibling}return null}function hf(r,l,v){switch(l=Hc(v),r){case"html":if(r=l.documentElement,!r)throw Error(a(452));return r;case"head":if(r=l.head,!r)throw Error(a(453));return r;case"body":if(r=l.body,!r)throw Error(a(454));return r;default:throw Error(a(451))}}function Qu(r){for(var l=r.attributes;l.length;)r.removeAttributeNode(l[0]);Ke(r)}var Lr=new Map,Tm=new Set;function Gi(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var ps=W.d;W.d={f:YT,r:i1,D:Ue,C:zn,L:XT,m:B0,X:Gl,S:F0,M:zc};function YT(){var r=ps.f(),l=of();return r||l}function i1(r){var l=on(r);l!==null&&l.tag===5&&l.type==="form"?Jn(l):ps.r(r)}var mf=typeof document>"u"?null:document;function ei(r,l,v){var x=mf;if(x&&typeof l=="string"&&l){var z=Ji(l);z='link[rel="'+r+'"][href="'+z+'"]',typeof v=="string"&&(z+='[crossorigin="'+v+'"]'),Tm.has(z)||(Tm.add(z),r={rel:r,crossOrigin:v,href:l},x.querySelector(z)===null&&(l=x.createElement("link"),$i(l,"link",r),rt(l),x.head.appendChild(l)))}}function Ue(r){ps.D(r),ei("dns-prefetch",r,null)}function zn(r,l){ps.C(r,l),ei("preconnect",r,l)}function XT(r,l,v){ps.L(r,l,v);var x=mf;if(x&&r&&l){var z='link[rel="preload"][as="'+Ji(l)+'"]';l==="image"&&v&&v.imageSrcSet?(z+='[imagesrcset="'+Ji(v.imageSrcSet)+'"]',typeof v.imageSizes=="string"&&(z+='[imagesizes="'+Ji(v.imageSizes)+'"]')):z+='[href="'+Ji(r)+'"]';var V=z;switch(l){case"style":V=ta(r);break;case"script":V=Wu(r)}Lr.has(V)||(r=u({rel:"preload",href:l==="image"&&v&&v.imageSrcSet?void 0:r,as:l},v),Lr.set(V,r),x.querySelector(z)!==null||l==="style"&&x.querySelector(Bc(V))||l==="script"&&x.querySelector(bf(V))||(l=x.createElement("link"),$i(l,"link",r),rt(l),x.head.appendChild(l)))}}function B0(r,l){ps.m(r,l);var v=mf;if(v&&r){var x=l&&typeof l.as=="string"?l.as:"script",z='link[rel="modulepreload"][as="'+Ji(x)+'"][href="'+Ji(r)+'"]',V=z;switch(x){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":V=Wu(r)}if(!Lr.has(V)&&(r=u({rel:"modulepreload",href:r},l),Lr.set(V,r),v.querySelector(z)===null)){switch(x){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(v.querySelector(bf(V)))return}x=v.createElement("link"),$i(x,"link",r),rt(x),v.head.appendChild(x)}}}function F0(r,l,v){ps.S(r,l,v);var x=mf;if(x&&r){var z=Ln(x).hoistableStyles,V=ta(r);l=l||"default";var ee=z.get(V);if(!ee){var le={loading:0,preload:null};if(ee=x.querySelector(Bc(V)))le.loading=5;else{r=u({rel:"stylesheet",href:r,"data-precedence":l},v),(v=Lr.get(V))&&jg(r,v);var be=ee=x.createElement("link");rt(be),$i(be,"link",r),be._p=new Promise(function(Me,Fe){be.onload=Me,be.onerror=Fe}),be.addEventListener("load",function(){le.loading|=1}),be.addEventListener("error",function(){le.loading|=2}),le.loading|=4,Am(ee,l,x)}ee={type:"stylesheet",instance:ee,count:1,state:le},z.set(V,ee)}}}function Gl(r,l){ps.X(r,l);var v=mf;if(v&&r){var x=Ln(v).hoistableScripts,z=Wu(r),V=x.get(z);V||(V=v.querySelector(bf(z)),V||(r=u({src:r,async:!0},l),(l=Lr.get(z))&&zg(r,l),V=v.createElement("script"),rt(V),$i(V,"link",r),v.head.appendChild(V)),V={type:"script",instance:V,count:1,state:null},x.set(z,V))}}function zc(r,l){ps.M(r,l);var v=mf;if(v&&r){var x=Ln(v).hoistableScripts,z=Wu(r),V=x.get(z);V||(V=v.querySelector(bf(z)),V||(r=u({src:r,async:!0,type:"module"},l),(l=Lr.get(z))&&zg(r,l),V=v.createElement("script"),rt(V),$i(V,"link",r),v.head.appendChild(V)),V={type:"script",instance:V,count:1,state:null},x.set(z,V))}}function pf(r,l,v,x){var z=(z=ie.current)?Gi(z):null;if(!z)throw Error(a(446));switch(r){case"meta":case"title":return null;case"style":return typeof v.precedence=="string"&&typeof v.href=="string"?(l=ta(v.href),v=Ln(z).hoistableStyles,x=v.get(l),x||(x={type:"style",instance:null,count:0,state:null},v.set(l,x)),x):{type:"void",instance:null,count:0,state:null};case"link":if(v.rel==="stylesheet"&&typeof v.href=="string"&&typeof v.precedence=="string"){r=ta(v.href);var V=Ln(z).hoistableStyles,ee=V.get(r);if(ee||(z=z.ownerDocument||z,ee={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},V.set(r,ee),(V=z.querySelector(Bc(r)))&&!V._p&&(ee.instance=V,ee.state.loading=5),Lr.has(r)||(v={rel:"preload",as:"style",href:v.href,crossOrigin:v.crossOrigin,integrity:v.integrity,media:v.media,hrefLang:v.hrefLang,referrerPolicy:v.referrerPolicy},Lr.set(r,v),V||r1(z,r,v,ee.state))),l&&x===null)throw Error(a(528,""));return ee}if(l&&x!==null)throw Error(a(529,""));return null;case"script":return l=v.async,v=v.src,typeof v=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=Wu(v),v=Ln(z).hoistableScripts,x=v.get(l),x||(x={type:"script",instance:null,count:0,state:null},v.set(l,x)),x):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,r))}}function ta(r){return'href="'+Ji(r)+'"'}function Bc(r){return'link[rel="stylesheet"]['+r+"]"}function gf(r){return u({},r,{"data-precedence":r.precedence,precedence:null})}function r1(r,l,v,x){r.querySelector('link[rel="preload"][as="style"]['+l+"]")?x.loading=1:(l=r.createElement("link"),x.preload=l,l.addEventListener("load",function(){return x.loading|=1}),l.addEventListener("error",function(){return x.loading|=2}),$i(l,"link",v),rt(l),r.head.appendChild(l))}function Wu(r){return'[src="'+Ji(r)+'"]'}function bf(r){return"script[async]"+r}function P0(r,l,v){if(l.count++,l.instance===null)switch(l.type){case"style":var x=r.querySelector('style[data-href~="'+Ji(v.href)+'"]');if(x)return l.instance=x,rt(x),x;var z=u({},v,{"data-href":v.href,"data-precedence":v.precedence,href:null,precedence:null});return x=(r.ownerDocument||r).createElement("style"),rt(x),$i(x,"style",z),Am(x,v.precedence,r),l.instance=x;case"stylesheet":z=ta(v.href);var V=r.querySelector(Bc(z));if(V)return l.state.loading|=4,l.instance=V,rt(V),V;x=gf(v),(z=Lr.get(z))&&jg(x,z),V=(r.ownerDocument||r).createElement("link"),rt(V);var ee=V;return ee._p=new Promise(function(le,be){ee.onload=le,ee.onerror=be}),$i(V,"link",x),l.state.loading|=4,Am(V,v.precedence,r),l.instance=V;case"script":return V=Wu(v.src),(z=r.querySelector(bf(V)))?(l.instance=z,rt(z),z):(x=v,(z=Lr.get(V))&&(x=u({},v),zg(x,z)),r=r.ownerDocument||r,z=r.createElement("script"),rt(z),$i(z,"link",x),r.head.appendChild(z),l.instance=z);case"void":return null;default:throw Error(a(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(x=l.instance,l.state.loading|=4,Am(x,v.precedence,r));return l.instance}function Am(r,l,v){for(var x=v.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),z=x.length?x[x.length-1]:null,V=z,ee=0;ee<x.length;ee++){var le=x[ee];if(le.dataset.precedence===l)V=le;else if(V!==z)break}V?V.parentNode.insertBefore(r,V.nextSibling):(l=v.nodeType===9?v.head:v,l.insertBefore(r,l.firstChild))}function jg(r,l){r.crossOrigin==null&&(r.crossOrigin=l.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=l.referrerPolicy),r.title==null&&(r.title=l.title)}function zg(r,l){r.crossOrigin==null&&(r.crossOrigin=l.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=l.referrerPolicy),r.integrity==null&&(r.integrity=l.integrity)}var vf=null;function V0(r,l,v){if(vf===null){var x=new Map,z=vf=new Map;z.set(v,x)}else z=vf,x=z.get(v),x||(x=new Map,z.set(v,x));if(x.has(r))return x;for(x.set(r,null),v=v.getElementsByTagName(r),z=0;z<v.length;z++){var V=v[z];if(!(V[Ee]||V[Xt]||r==="link"&&V.getAttribute("rel")==="stylesheet")&&V.namespaceURI!=="http://www.w3.org/2000/svg"){var ee=V.getAttribute(l)||"";ee=r+ee;var le=x.get(ee);le?le.push(V):x.set(ee,[V])}}return x}function Bg(r,l,v){r=r.ownerDocument||r,r.head.insertBefore(v,l==="title"?r.querySelector("head > title"):null)}function G0(r,l,v){if(v===1||l.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return r=l.disabled,typeof l.precedence=="string"&&r==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function Or(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function Zs(r,l,v,x){if(v.type==="stylesheet"&&(typeof x.media!="string"||matchMedia(x.media).matches!==!1)&&(v.state.loading&4)===0){if(v.instance===null){var z=ta(x.href),V=l.querySelector(Bc(z));if(V){l=V._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(r.count++,r=Fg.bind(r),l.then(r,r)),v.state.loading|=4,v.instance=V,rt(V);return}V=l.ownerDocument||l,x=gf(x),(z=Lr.get(z))&&jg(x,z),V=V.createElement("link"),rt(V);var ee=V;ee._p=new Promise(function(le,be){ee.onload=le,ee.onerror=be}),$i(V,"link",x),v.instance=V}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(v,l),(l=v.state.preload)&&(v.state.loading&3)===0&&(r.count++,v=Fg.bind(r),l.addEventListener("load",v),l.addEventListener("error",v))}}var na=0;function Q0(r,l){return r.stylesheets&&r.count===0&&Vg(r,r.stylesheets),0<r.count||0<r.imgCount?function(v){var x=setTimeout(function(){if(r.stylesheets&&Vg(r,r.stylesheets),r.unsuspend){var V=r.unsuspend;r.unsuspend=null,V()}},6e4+l);0<r.imgBytes&&na===0&&(na=62500*U0());var z=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&Vg(r,r.stylesheets),r.unsuspend)){var V=r.unsuspend;r.unsuspend=null,V()}},(r.imgBytes>na?50:800)+l);return r.unsuspend=v,function(){r.unsuspend=null,clearTimeout(x),clearTimeout(z)}}:null}function Fg(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Vg(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var Pg=null;function Vg(r,l){r.stylesheets=null,r.unsuspend!==null&&(r.count++,Pg=new Map,l.forEach(Ai,r),Pg=null,Fg.call(r))}function Ai(r,l){if(!(l.state.loading&4)){var v=Pg.get(r);if(v)var x=v.get(null);else{v=new Map,Pg.set(r,v);for(var z=r.querySelectorAll("link[data-precedence],style[data-precedence]"),V=0;V<z.length;V++){var ee=z[V];(ee.nodeName==="LINK"||ee.getAttribute("media")!=="not all")&&(v.set(ee.dataset.precedence,ee),x=ee)}x&&v.set(null,x)}z=l.instance,ee=z.getAttribute("data-precedence"),V=v.get(ee)||x,V===x&&v.set(null,z),v.set(ee,z),this.count++,x=Fg.bind(this),z.addEventListener("load",x),z.addEventListener("error",x),V?V.parentNode.insertBefore(z,V.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(z,r.firstChild)),l.state.loading|=4}}var xm={$$typeof:O,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function W0(r,l,v,x,z,V,ee,le,be){this.tag=1,this.containerInfo=r,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=Mt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mt(0),this.hiddenUpdates=Mt(null),this.identifierPrefix=x,this.onUncaughtError=z,this.onCaughtError=V,this.onRecoverableError=ee,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=be,this.incompleteTransitions=new Map}function Gg(r,l,v,x,z,V,ee,le,be,Me,Fe,We){return r=new W0(r,l,v,ee,be,Me,Fe,We,le),l=1,V===!0&&(l|=24),V=Mo(3,null,null,l),r.current=V,V.stateNode=r,l=Mh(),l.refCount++,r.pooledCache=l,l.refCount++,V.memoizedState={element:x,isDehydrated:v,cache:l},zh(V),r}function Yu(r){return r?(r=ir,r):ir}function a1(r,l,v,x,z,V){z=Yu(z),x.context===null?x.context=z:x.pendingContext=z,x=Il(l),x.payload={element:v},V=V===void 0?null:V,V!==null&&(x.callback=V),v=Yr(r,x,l),v!==null&&(mr(v,r,l),xc(v,r,l))}function Qg(r,l){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var v=r.retryLane;r.retryLane=v!==0&&v<l?v:l}}function Y0(r,l){Qg(r,l),(r=r.alternate)&&Qg(r,l)}function s1(r){if(r.tag===13||r.tag===31){var l=Nl(r,67108864);l!==null&&mr(l,r,67108864),Y0(r,67108864)}}function Xu(r){if(r.tag===13||r.tag===31){var l=Rr();l=Je(l);var v=Nl(r,l);v!==null&&mr(v,r,l),Y0(r,l)}}var li=!0;function Js(r,l,v,x){var z=I.T;I.T=null;var V=W.p;try{W.p=2,Ui(r,l,v,x)}finally{W.p=V,I.T=z}}function el(r,l,v,x){var z=I.T;I.T=null;var V=W.p;try{W.p=8,Ui(r,l,v,x)}finally{W.p=V,I.T=z}}function Ui(r,l,v,x){if(li){var z=X0(x);if(z===null)O0(r,l,x,Wg,v),Ql(r,x);else if(qT(z,r,l,v,x))x.stopPropagation();else if(Ql(r,x),l&4&&-1<gr.indexOf(r)){for(;z!==null;){var V=on(z);if(V!==null)switch(V.tag){case 3:if(V=V.stateNode,V.current.memoizedState.isDehydrated){var ee=jt(V.pendingLanes);if(ee!==0){var le=V;for(le.pendingLanes|=2,le.entangledLanes|=2;ee;){var be=1<<31-xe(ee);le.entanglements[1]|=be,ee&=~be}Ks(V),(In&6)===0&&(jn=at()+500,Vl(0))}}break;case 31:case 13:le=Nl(V,2),le!==null&&mr(le,V,2),of(),Y0(V,2)}if(V=X0(x),V===null&&O0(r,l,x,Wg,v),V===z)break;z=V}z!==null&&x.stopPropagation()}else O0(r,l,x,null,v)}}function X0(r){return r=du(r),yf(r)}var Wg=null;function yf(r){if(Wg=null,r=st(r),r!==null){var l=p(r);if(l===null)r=null;else{var v=l.tag;if(v===13){if(r=g(l),r!==null)return r;r=null}else if(v===31){if(r=y(l),r!==null)return r;r=null}else if(v===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;r=null}else l!==r&&(r=null)}}return Wg=r,null}function _m(r){switch(r){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(Re()){case je:return 2;case ot:return 8;case tt:case vt:return 32;case St:return 268435456;default:return 32}default:return 32}}var Ef=!1,ci=null,Hi=null,Qi=null,Fc=new Map,Ha=new Map,So=[],gr="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 Ql(r,l){switch(r){case"focusin":case"focusout":ci=null;break;case"dragenter":case"dragleave":Hi=null;break;case"mouseover":case"mouseout":Qi=null;break;case"pointerover":case"pointerout":Fc.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ha.delete(l.pointerId)}}function qu(r,l,v,x,z,V){return r===null||r.nativeEvent!==V?(r={blockedOn:l,domEventName:v,eventSystemFlags:x,nativeEvent:V,targetContainers:[z]},l!==null&&(l=on(l),l!==null&&s1(l)),r):(r.eventSystemFlags|=x,l=r.targetContainers,z!==null&&l.indexOf(z)===-1&&l.push(z),r)}function qT(r,l,v,x,z){switch(l){case"focusin":return ci=qu(ci,r,l,v,x,z),!0;case"dragenter":return Hi=qu(Hi,r,l,v,x,z),!0;case"mouseover":return Qi=qu(Qi,r,l,v,x,z),!0;case"pointerover":var V=z.pointerId;return Fc.set(V,qu(Fc.get(V)||null,r,l,v,x,z)),!0;case"gotpointercapture":return V=z.pointerId,Ha.set(V,qu(Ha.get(V)||null,r,l,v,x,z)),!0}return!1}function l1(r){var l=st(r.target);if(l!==null){var v=p(l);if(v!==null){if(l=v.tag,l===13){if(l=g(v),l!==null){r.blockedOn=l,ni(r.priority,function(){Xu(v)});return}}else if(l===31){if(l=y(v),l!==null){r.blockedOn=l,ni(r.priority,function(){Xu(v)});return}}else if(l===3&&v.stateNode.current.memoizedState.isDehydrated){r.blockedOn=v.tag===3?v.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Cm(r){if(r.blockedOn!==null)return!1;for(var l=r.targetContainers;0<l.length;){var v=X0(r.nativeEvent);if(v===null){v=r.nativeEvent;var x=new v.constructor(v.type,v);ya=x,v.target.dispatchEvent(x),ya=null}else return l=on(v),l!==null&&s1(l),r.blockedOn=v,!1;l.shift()}return!0}function wf(r,l,v){Cm(r)&&v.delete(l)}function c1(){Ef=!1,ci!==null&&Cm(ci)&&(ci=null),Hi!==null&&Cm(Hi)&&(Hi=null),Qi!==null&&Cm(Qi)&&(Qi=null),Fc.forEach(wf),Ha.forEach(wf)}function tl(r,l){r.blockedOn===l&&(r.blockedOn=null,Ef||(Ef=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,c1)))}var Sf=null;function u1(r){Sf!==r&&(Sf=r,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Sf===r&&(Sf=null);for(var l=0;l<r.length;l+=3){var v=r[l],x=r[l+1],z=r[l+2];if(typeof x!="function"){if(yf(x||v)===null)continue;break}var V=on(v);V!==null&&(r.splice(l,3),l-=3,Vd(V,{pending:!0,data:z,method:v.method,action:x},x,z))}}))}function Tf(r){function l(be){return tl(be,r)}ci!==null&&tl(ci,r),Hi!==null&&tl(Hi,r),Qi!==null&&tl(Qi,r),Fc.forEach(l),Ha.forEach(l);for(var v=0;v<So.length;v++){var x=So[v];x.blockedOn===r&&(x.blockedOn=null)}for(;0<So.length&&(v=So[0],v.blockedOn===null);)l1(v),v.blockedOn===null&&So.shift();if(v=(r.ownerDocument||r).$$reactFormReplay,v!=null)for(x=0;x<v.length;x+=3){var z=v[x],V=v[x+1],ee=z[Pn]||null;if(typeof V=="function")ee||u1(v);else if(ee){var le=null;if(V&&V.hasAttribute("formAction")){if(z=V,ee=V[Pn]||null)le=ee.formAction;else if(yf(z)!==null)continue}else le=ee.action;typeof le=="function"?v[x+1]=le:(v.splice(x,3),x-=3),u1(v)}}}function q0(){function r(V){V.canIntercept&&V.info==="react-transition"&&V.intercept({handler:function(){return new Promise(function(ee){return z=ee})},focusReset:"manual",scroll:"manual"})}function l(){z!==null&&(z(),z=null),x||setTimeout(v,20)}function v(){if(!x&&!navigation.transition){var V=navigation.currentEntry;V&&V.url!=null&&navigation.navigate(V.url,{state:V.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var x=!1,z=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",l),navigation.addEventListener("navigateerror",l),setTimeout(v,100),function(){x=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),z!==null&&(z(),z=null)}}}function Yg(r){this._internalRoot=r}Xg.prototype.render=Yg.prototype.render=function(r){var l=this._internalRoot;if(l===null)throw Error(a(409));var v=l.current,x=Rr();a1(v,x,r,l,null,null)},Xg.prototype.unmount=Yg.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var l=r.containerInfo;a1(r.current,2,null,r,null,null),of(),l[zo]=null}};function Xg(r){this._internalRoot=r}Xg.prototype.unstable_scheduleHydration=function(r){if(r){var l=Rt();r={blockedOn:null,target:r,priority:l};for(var v=0;v<So.length&&l!==0&&l<So[v].priority;v++);So.splice(v,0,r),v===0&&l1(r)}};var K0=e.version;if(K0!=="19.2.0")throw Error(a(527,K0,"19.2.0"));W.findDOMNode=function(r){var l=r._reactInternals;if(l===void 0)throw typeof r.render=="function"?Error(a(188)):(r=Object.keys(r).join(","),Error(a(268,r)));return r=b(l),r=r!==null?c(r):null,r=r===null?null:r.stateNode,r};var d1={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:I,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Nm=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nm.isDisabled&&Nm.supportsFiber)try{Lt=Nm.inject(d1),_t=Nm}catch{}}return Gy.createRoot=function(r,l){if(!E(r))throw Error(a(299));var v=!1,x="",z=ag,V=Zv,ee=sg;return l!=null&&(l.unstable_strictMode===!0&&(v=!0),l.identifierPrefix!==void 0&&(x=l.identifierPrefix),l.onUncaughtError!==void 0&&(z=l.onUncaughtError),l.onCaughtError!==void 0&&(V=l.onCaughtError),l.onRecoverableError!==void 0&&(ee=l.onRecoverableError)),l=Gg(r,1,!1,null,null,v,x,null,z,V,ee,q0),r[zo]=l.current,uf(r),new Yg(l)},Gy.hydrateRoot=function(r,l,v){if(!E(r))throw Error(a(299));var x=!1,z="",V=ag,ee=Zv,le=sg,be=null;return v!=null&&(v.unstable_strictMode===!0&&(x=!0),v.identifierPrefix!==void 0&&(z=v.identifierPrefix),v.onUncaughtError!==void 0&&(V=v.onUncaughtError),v.onCaughtError!==void 0&&(ee=v.onCaughtError),v.onRecoverableError!==void 0&&(le=v.onRecoverableError),v.formState!==void 0&&(be=v.formState)),l=Gg(r,1,!0,l,v??null,x,z,be,V,ee,le,q0),l.context=Yu(null),v=l.current,x=Rr(),x=Je(x),z=Il(x),z.callback=null,Yr(v,z,x),v=x,l.current.lanes=v,en(l,v),Ks(l),r[zo]=l.current,uf(r),new Xg(l)},Gy.version="19.2.0",Gy}var Qy={};/**
82
82
  * @license React
83
83
  * react-dom-client.development.js
84
84
  *
@@ -102,12 +102,12 @@ Error generating stack: `+dt.message+`
102
102
  `+_)}}else if(n.debugStack!=null){var L=n.debugStack;(n=n.owner)&&L&&(o+=`
103
103
  `+te(L))}else break;var G=o}catch(q){G=`
104
104
  Error generating stack: `+q.message+`
105
- `+q.stack}return G}function ye(n,o,s,w,_,L,G){var q=Or;de(n);try{return n!==null&&n._debugTask?n._debugTask.run(o.bind(null,s,w,_,L,G)):o(s,w,_,L,G)}finally{de(q)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function de(n){Ue.getCurrentStack=n===null?null:pe,Zs=!1,Or=n}function Ve(n){return typeof Symbol=="function"&&Symbol.toStringTag&&n[Symbol.toStringTag]||n.constructor.name||"Object"}function De(n){try{return qe(n),!1}catch{return!0}}function qe(n){return""+n}function et(n,o){if(De(n))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",o,Ve(n)),qe(n)}function mt(n,o){if(De(n))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",o,Ve(n)),qe(n)}function xt(n){if(De(n))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",Ve(n)),qe(n)}function $t(n){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var o=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(o.isDisabled)return!0;if(!o.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{Xu=o.inject(n),li=o}catch(s){console.error("React instrumentation encountered an error: %o.",s)}return!!o.checkDCE}function ze(n){if(typeof Y0=="function"&&s1(n),li&&typeof li.setStrictMode=="function")try{li.setStrictMode(Xu,n)}catch(o){Js||(Js=!0,console.error("React instrumentation encountered an error: %o",o))}}function tt(n){return n>>>=0,n===0?32:31-(X0(n)/Wg|0)|0}function ct(n){var o=n&42;if(o!==0)return o;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),n}}function gt(n,o,s){var w=n.pendingLanes;if(w===0)return 0;var _=0,L=n.suspendedLanes,G=n.pingedLanes;n=n.warmLanes;var q=w&134217727;return q!==0?(w=q&~L,w!==0?_=ct(w):(G&=q,G!==0?_=ct(G):s||(s=q&~n,s!==0&&(_=ct(s))))):(q=w&~L,q!==0?_=ct(q):G!==0?_=ct(G):s||(s=w&~n,s!==0&&(_=ct(s)))),_===0?0:o!==0&&o!==_&&(o&L)===0&&(L=_&-_,s=o&-o,L>=s||L===32&&(s&4194048)!==0)?o:_}function at(n,o){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&o)===0}function Re(n,o){switch(n){case 1:case 2:case 4:case 8:case 64:return o+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function je(){var n=Ef;return Ef<<=1,(Ef&62914560)===0&&(Ef=4194304),n}function it(n){for(var o=[],s=0;31>s;s++)o.push(n);return o}function rt(n,o){n.pendingLanes|=o,o!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function vt(n,o,s,w,_,L){var G=n.pendingLanes;n.pendingLanes=s,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=s,n.entangledLanes&=s,n.errorRecoveryDisabledLanes&=s,n.shellSuspendCounter=0;var q=n.entanglements,ne=n.expirationTimes,oe=n.hiddenUpdates;for(s=G&~s;0<s;){var Se=31-Ui(s),Ae=1<<Se;q[Se]=0,ne[Se]=-1;var he=oe[Se];if(he!==null)for(oe[Se]=null,Se=0;Se<he.length;Se++){var Ie=he[Se];Ie!==null&&(Ie.lane&=-536870913)}s&=~Ae}w!==0&&St(n,w,0),L!==0&&_===0&&n.tag!==0&&(n.suspendedLanes|=L&~(G&~o))}function St(n,o,s){n.pendingLanes|=o,n.suspendedLanes&=~o;var w=31-Ui(o);n.entangledLanes|=o,n.entanglements[w]=n.entanglements[w]|1073741824|s&261930}function Nt(n,o){var s=n.entangledLanes|=o;for(n=n.entanglements;s;){var w=31-Ui(s),_=1<<w;_&o|n[w]&o&&(n[w]|=o),s&=~_}}function an(n,o){var s=o&-o;return s=(s&42)!==0?1:Lt(s),(s&(n.suspendedLanes|o))!==0?0:s}function Lt(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function _t(n,o,s){if(el)for(n=n.pendingUpdatersLaneMap;0<s;){var w=31-Ui(s),_=1<<w;n[w].add(o),s&=~_}}function Et(n,o){if(el)for(var s=n.pendingUpdatersLaneMap,w=n.memoizedUpdaters;0<o;){var _=31-Ui(o);n=1<<_,_=s[_],0<_.size&&(_.forEach(function(L){var G=L.alternate;G!==null&&w.has(G)||w.add(L)}),_.clear()),o&=~n}}function xe(n){return n&=-n,ci<n?Hi<n?(n&134217727)!==0?Qi:Fc:Hi:ci}function Ge(){var n=zn.p;return n!==0?n:(n=window.event,n===void 0?Qi:Ig(n.type))}function bt(n,o){var s=zn.p;try{return zn.p=n,o()}finally{zn.p=s}}function Dt(n){delete n[So],delete n[gr],delete n[qu],delete n[qT],delete n[l1]}function ut(n){var o=n[So];if(o)return o;for(var s=n.parentNode;s;){if(o=s[Ql]||s[So]){if(s=o.alternate,o.child!==null||s!==null&&s.child!==null)for(n=Fu(n);n!==null;){if(s=n[So])return s;n=Fu(n)}return o}n=s,s=n.parentNode}return null}function yt(n){if(n=n[So]||n[Ql]){var o=n.tag;if(o===5||o===6||o===13||o===31||o===26||o===27||o===3)return n}return null}function Ht(n){var o=n.tag;if(o===5||o===26||o===27||o===6)return n.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function jt(n){var o=n[Cm];return o||(o=n[Cm]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function Ce(n){n[wf]=!0}function Ze(n,o){ft(n,o),ft(n+"Capture",o)}function ft(n,o){tl[n]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",n),tl[n]=o;var s=n.toLowerCase();for(Sf[s]=n,n==="onDoubleClick"&&(Sf.ondblclick=n),n=0;n<o.length;n++)c1.add(o[n])}function Tt(n,o){u1[o.type]||o.onChange||o.onInput||o.readOnly||o.disabled||o.value==null||console.error(n==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),o.onChange||o.readOnly||o.disabled||o.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Mt(n){return na.call(Yg,n)?!0:na.call(q0,n)?!1:Tf.test(n)?Yg[n]=!0:(q0[n]=!0,console.error("Invalid attribute name: `%s`",n),!1)}function en(n,o,s){if(Mt(o)){if(!n.hasAttribute(o)){switch(typeof s){case"symbol":case"object":return s;case"function":return s;case"boolean":if(s===!1)return s}return s===void 0?void 0:null}return n=n.getAttribute(o),n===""&&s===!0?!0:(et(s,o),n===""+s?s:n)}}function Gt(n,o,s){if(Mt(o))if(s===null)n.removeAttribute(o);else{switch(typeof s){case"undefined":case"function":case"symbol":n.removeAttribute(o);return;case"boolean":var w=o.toLowerCase().slice(0,5);if(w!=="data-"&&w!=="aria-"){n.removeAttribute(o);return}}et(s,o),n.setAttribute(o,""+s)}}function sn(n,o,s){if(s===null)n.removeAttribute(o);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(o);return}et(s,o),n.setAttribute(o,""+s)}}function Rn(n,o,s,w){if(w===null)n.removeAttribute(s);else{switch(typeof w){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(s);return}et(w,s),n.setAttributeNS(o,s,""+w)}}function Yt(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return xt(n),n;default:return""}}function Je(n){var o=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Fn(n,o,s){var w=Object.getOwnPropertyDescriptor(n.constructor.prototype,o);if(!n.hasOwnProperty(o)&&typeof w<"u"&&typeof w.get=="function"&&typeof w.set=="function"){var _=w.get,L=w.set;return Object.defineProperty(n,o,{configurable:!0,get:function(){return _.call(this)},set:function(G){xt(G),s=""+G,L.call(this,G)}}),Object.defineProperty(n,o,{enumerable:w.enumerable}),{getValue:function(){return s},setValue:function(G){xt(G),s=""+G},stopTracking:function(){n._valueTracker=null,delete n[o]}}}}function Rt(n){if(!n._valueTracker){var o=Je(n)?"checked":"value";n._valueTracker=Fn(n,o,""+n[o])}}function ni(n){if(!n)return!1;var o=n._valueTracker;if(!o)return!0;var s=o.getValue(),w="";return n&&(w=Je(n)?n.checked?"true":"false":n.value),n=w,n!==s?(o.setValue(n),!0):!1}function vo(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function Xt(n){return n.replace(Xg,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function Pn(n,o){o.checked===void 0||o.defaultChecked===void 0||d1||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",ve()||"A component",o.type),d1=!0),o.value===void 0||o.defaultValue===void 0||K0||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",ve()||"A component",o.type),K0=!0)}function zo(n,o,s,w,_,L,G,q){n.name="",G!=null&&typeof G!="function"&&typeof G!="symbol"&&typeof G!="boolean"?(et(G,"type"),n.type=G):n.removeAttribute("type"),o!=null?G==="number"?(o===0&&n.value===""||n.value!=o)&&(n.value=""+Yt(o)):n.value!==""+Yt(o)&&(n.value=""+Yt(o)):G!=="submit"&&G!=="reset"||n.removeAttribute("value"),o!=null?ki(n,G,Yt(o)):s!=null?ki(n,G,Yt(s)):w!=null&&n.removeAttribute("value"),_==null&&L!=null&&(n.defaultChecked=!!L),_!=null&&(n.checked=_&&typeof _!="function"&&typeof _!="symbol"),q!=null&&typeof q!="function"&&typeof q!="symbol"&&typeof q!="boolean"?(et(q,"name"),n.name=""+Yt(q)):n.removeAttribute("name")}function mo(n,o,s,w,_,L,G,q){if(L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"&&(et(L,"type"),n.type=L),o!=null||s!=null){if(!(L!=="submit"&&L!=="reset"||o!=null)){Rt(n);return}s=s!=null?""+Yt(s):"",o=o!=null?""+Yt(o):s,q||o===n.value||(n.value=o),n.defaultValue=o}w=w??_,w=typeof w!="function"&&typeof w!="symbol"&&!!w,n.checked=q?n.checked:!!w,n.defaultChecked=!!w,G!=null&&typeof G!="function"&&typeof G!="symbol"&&typeof G!="boolean"&&(et(G,"name"),n.name=G),Rt(n)}function ki(n,o,s){o==="number"&&vo(n.ownerDocument)===n||n.defaultValue===""+s||(n.defaultValue=""+s)}function wr(n,o){o.value==null&&(typeof o.children=="object"&&o.children!==null?wm.Children.forEach(o.children,function(s){s==null||typeof s=="string"||typeof s=="number"||typeof s=="bigint"||r||(r=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):o.dangerouslySetInnerHTML==null||l||(l=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),o.selected==null||Nm||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Nm=!0)}function nt(){var n=ve();return n?`
105
+ `+q.stack}return G}function ye(n,o,s,w,_,L,G){var q=Or;de(n);try{return n!==null&&n._debugTask?n._debugTask.run(o.bind(null,s,w,_,L,G)):o(s,w,_,L,G)}finally{de(q)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function de(n){Ue.getCurrentStack=n===null?null:pe,Zs=!1,Or=n}function Ve(n){return typeof Symbol=="function"&&Symbol.toStringTag&&n[Symbol.toStringTag]||n.constructor.name||"Object"}function De(n){try{return qe(n),!1}catch{return!0}}function qe(n){return""+n}function et(n,o){if(De(n))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",o,Ve(n)),qe(n)}function mt(n,o){if(De(n))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",o,Ve(n)),qe(n)}function xt(n){if(De(n))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",Ve(n)),qe(n)}function $t(n){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var o=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(o.isDisabled)return!0;if(!o.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{Xu=o.inject(n),li=o}catch(s){console.error("React instrumentation encountered an error: %o.",s)}return!!o.checkDCE}function ze(n){if(typeof Y0=="function"&&s1(n),li&&typeof li.setStrictMode=="function")try{li.setStrictMode(Xu,n)}catch(o){Js||(Js=!0,console.error("React instrumentation encountered an error: %o",o))}}function nt(n){return n>>>=0,n===0?32:31-(X0(n)/Wg|0)|0}function ct(n){var o=n&42;if(o!==0)return o;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),n}}function gt(n,o,s){var w=n.pendingLanes;if(w===0)return 0;var _=0,L=n.suspendedLanes,G=n.pingedLanes;n=n.warmLanes;var q=w&134217727;return q!==0?(w=q&~L,w!==0?_=ct(w):(G&=q,G!==0?_=ct(G):s||(s=q&~n,s!==0&&(_=ct(s))))):(q=w&~L,q!==0?_=ct(q):G!==0?_=ct(G):s||(s=w&~n,s!==0&&(_=ct(s)))),_===0?0:o!==0&&o!==_&&(o&L)===0&&(L=_&-_,s=o&-o,L>=s||L===32&&(s&4194048)!==0)?o:_}function at(n,o){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&o)===0}function Re(n,o){switch(n){case 1:case 2:case 4:case 8:case 64:return o+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function je(){var n=Ef;return Ef<<=1,(Ef&62914560)===0&&(Ef=4194304),n}function ot(n){for(var o=[],s=0;31>s;s++)o.push(n);return o}function tt(n,o){n.pendingLanes|=o,o!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function vt(n,o,s,w,_,L){var G=n.pendingLanes;n.pendingLanes=s,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=s,n.entangledLanes&=s,n.errorRecoveryDisabledLanes&=s,n.shellSuspendCounter=0;var q=n.entanglements,ne=n.expirationTimes,oe=n.hiddenUpdates;for(s=G&~s;0<s;){var Se=31-Ui(s),Ae=1<<Se;q[Se]=0,ne[Se]=-1;var he=oe[Se];if(he!==null)for(oe[Se]=null,Se=0;Se<he.length;Se++){var Ie=he[Se];Ie!==null&&(Ie.lane&=-536870913)}s&=~Ae}w!==0&&St(n,w,0),L!==0&&_===0&&n.tag!==0&&(n.suspendedLanes|=L&~(G&~o))}function St(n,o,s){n.pendingLanes|=o,n.suspendedLanes&=~o;var w=31-Ui(o);n.entangledLanes|=o,n.entanglements[w]=n.entanglements[w]|1073741824|s&261930}function Nt(n,o){var s=n.entangledLanes|=o;for(n=n.entanglements;s;){var w=31-Ui(s),_=1<<w;_&o|n[w]&o&&(n[w]|=o),s&=~_}}function an(n,o){var s=o&-o;return s=(s&42)!==0?1:Lt(s),(s&(n.suspendedLanes|o))!==0?0:s}function Lt(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function _t(n,o,s){if(el)for(n=n.pendingUpdatersLaneMap;0<s;){var w=31-Ui(s),_=1<<w;n[w].add(o),s&=~_}}function Et(n,o){if(el)for(var s=n.pendingUpdatersLaneMap,w=n.memoizedUpdaters;0<o;){var _=31-Ui(o);n=1<<_,_=s[_],0<_.size&&(_.forEach(function(L){var G=L.alternate;G!==null&&w.has(G)||w.add(L)}),_.clear()),o&=~n}}function xe(n){return n&=-n,ci<n?Hi<n?(n&134217727)!==0?Qi:Fc:Hi:ci}function Ge(){var n=zn.p;return n!==0?n:(n=window.event,n===void 0?Qi:Ig(n.type))}function bt(n,o){var s=zn.p;try{return zn.p=n,o()}finally{zn.p=s}}function Dt(n){delete n[So],delete n[gr],delete n[qu],delete n[qT],delete n[l1]}function ut(n){var o=n[So];if(o)return o;for(var s=n.parentNode;s;){if(o=s[Ql]||s[So]){if(s=o.alternate,o.child!==null||s!==null&&s.child!==null)for(n=Fu(n);n!==null;){if(s=n[So])return s;n=Fu(n)}return o}n=s,s=n.parentNode}return null}function yt(n){if(n=n[So]||n[Ql]){var o=n.tag;if(o===5||o===6||o===13||o===31||o===26||o===27||o===3)return n}return null}function Ht(n){var o=n.tag;if(o===5||o===26||o===27||o===6)return n.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function jt(n){var o=n[Cm];return o||(o=n[Cm]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function Ce(n){n[wf]=!0}function Ze(n,o){ft(n,o),ft(n+"Capture",o)}function ft(n,o){tl[n]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",n),tl[n]=o;var s=n.toLowerCase();for(Sf[s]=n,n==="onDoubleClick"&&(Sf.ondblclick=n),n=0;n<o.length;n++)c1.add(o[n])}function Tt(n,o){u1[o.type]||o.onChange||o.onInput||o.readOnly||o.disabled||o.value==null||console.error(n==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),o.onChange||o.readOnly||o.disabled||o.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Mt(n){return na.call(Yg,n)?!0:na.call(q0,n)?!1:Tf.test(n)?Yg[n]=!0:(q0[n]=!0,console.error("Invalid attribute name: `%s`",n),!1)}function en(n,o,s){if(Mt(o)){if(!n.hasAttribute(o)){switch(typeof s){case"symbol":case"object":return s;case"function":return s;case"boolean":if(s===!1)return s}return s===void 0?void 0:null}return n=n.getAttribute(o),n===""&&s===!0?!0:(et(s,o),n===""+s?s:n)}}function Gt(n,o,s){if(Mt(o))if(s===null)n.removeAttribute(o);else{switch(typeof s){case"undefined":case"function":case"symbol":n.removeAttribute(o);return;case"boolean":var w=o.toLowerCase().slice(0,5);if(w!=="data-"&&w!=="aria-"){n.removeAttribute(o);return}}et(s,o),n.setAttribute(o,""+s)}}function sn(n,o,s){if(s===null)n.removeAttribute(o);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(o);return}et(s,o),n.setAttribute(o,""+s)}}function Rn(n,o,s,w){if(w===null)n.removeAttribute(s);else{switch(typeof w){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(s);return}et(w,s),n.setAttributeNS(o,s,""+w)}}function Yt(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return xt(n),n;default:return""}}function Je(n){var o=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Fn(n,o,s){var w=Object.getOwnPropertyDescriptor(n.constructor.prototype,o);if(!n.hasOwnProperty(o)&&typeof w<"u"&&typeof w.get=="function"&&typeof w.set=="function"){var _=w.get,L=w.set;return Object.defineProperty(n,o,{configurable:!0,get:function(){return _.call(this)},set:function(G){xt(G),s=""+G,L.call(this,G)}}),Object.defineProperty(n,o,{enumerable:w.enumerable}),{getValue:function(){return s},setValue:function(G){xt(G),s=""+G},stopTracking:function(){n._valueTracker=null,delete n[o]}}}}function Rt(n){if(!n._valueTracker){var o=Je(n)?"checked":"value";n._valueTracker=Fn(n,o,""+n[o])}}function ni(n){if(!n)return!1;var o=n._valueTracker;if(!o)return!0;var s=o.getValue(),w="";return n&&(w=Je(n)?n.checked?"true":"false":n.value),n=w,n!==s?(o.setValue(n),!0):!1}function vo(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function Xt(n){return n.replace(Xg,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function Pn(n,o){o.checked===void 0||o.defaultChecked===void 0||d1||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",ve()||"A component",o.type),d1=!0),o.value===void 0||o.defaultValue===void 0||K0||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",ve()||"A component",o.type),K0=!0)}function zo(n,o,s,w,_,L,G,q){n.name="",G!=null&&typeof G!="function"&&typeof G!="symbol"&&typeof G!="boolean"?(et(G,"type"),n.type=G):n.removeAttribute("type"),o!=null?G==="number"?(o===0&&n.value===""||n.value!=o)&&(n.value=""+Yt(o)):n.value!==""+Yt(o)&&(n.value=""+Yt(o)):G!=="submit"&&G!=="reset"||n.removeAttribute("value"),o!=null?ki(n,G,Yt(o)):s!=null?ki(n,G,Yt(s)):w!=null&&n.removeAttribute("value"),_==null&&L!=null&&(n.defaultChecked=!!L),_!=null&&(n.checked=_&&typeof _!="function"&&typeof _!="symbol"),q!=null&&typeof q!="function"&&typeof q!="symbol"&&typeof q!="boolean"?(et(q,"name"),n.name=""+Yt(q)):n.removeAttribute("name")}function mo(n,o,s,w,_,L,G,q){if(L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"&&(et(L,"type"),n.type=L),o!=null||s!=null){if(!(L!=="submit"&&L!=="reset"||o!=null)){Rt(n);return}s=s!=null?""+Yt(s):"",o=o!=null?""+Yt(o):s,q||o===n.value||(n.value=o),n.defaultValue=o}w=w??_,w=typeof w!="function"&&typeof w!="symbol"&&!!w,n.checked=q?n.checked:!!w,n.defaultChecked=!!w,G!=null&&typeof G!="function"&&typeof G!="symbol"&&typeof G!="boolean"&&(et(G,"name"),n.name=G),Rt(n)}function ki(n,o,s){o==="number"&&vo(n.ownerDocument)===n||n.defaultValue===""+s||(n.defaultValue=""+s)}function wr(n,o){o.value==null&&(typeof o.children=="object"&&o.children!==null?wm.Children.forEach(o.children,function(s){s==null||typeof s=="string"||typeof s=="number"||typeof s=="bigint"||r||(r=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):o.dangerouslySetInnerHTML==null||l||(l=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),o.selected==null||Nm||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Nm=!0)}function it(){var n=ve();return n?`
106
106
 
107
- Check the render method of \``+n+"`.":""}function Ee(n,o,s,w){if(n=n.options,o){o={};for(var _=0;_<s.length;_++)o["$"+s[_]]=!0;for(s=0;s<n.length;s++)_=o.hasOwnProperty("$"+n[s].value),n[s].selected!==_&&(n[s].selected=_),_&&w&&(n[s].defaultSelected=!0)}else{for(s=""+Yt(s),o=null,_=0;_<n.length;_++){if(n[_].value===s){n[_].selected=!0,w&&(n[_].defaultSelected=!0);return}o!==null||n[_].disabled||(o=n[_])}o!==null&&(o.selected=!0)}}function Ke(n,o){for(n=0;n<x.length;n++){var s=x[n];if(o[s]!=null){var w=ei(o[s]);o.multiple&&!w?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",s,nt()):!o.multiple&&w&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",s,nt())}}o.value===void 0||o.defaultValue===void 0||v||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),v=!0)}function st(n,o){o.value===void 0||o.defaultValue===void 0||z||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",ve()||"A component"),z=!0),o.children!=null&&o.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function on(n,o,s){if(o!=null&&(o=""+Yt(o),o!==n.value&&(n.value=o),s==null)){n.defaultValue!==o&&(n.defaultValue=o);return}n.defaultValue=s!=null?""+Yt(s):""}function Zn(n,o,s,w){if(o==null){if(w!=null){if(s!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(ei(w)){if(1<w.length)throw Error("<textarea> can only have at most one child.");w=w[0]}s=w}s==null&&(s=""),o=s}s=Yt(o),n.defaultValue=s,w=n.textContent,w===s&&w!==""&&w!==null&&(n.value=w),Rt(n)}function Ln(n,o){return n.serverProps===void 0&&n.serverTail.length===0&&n.children.length===1&&3<n.distanceFromLeaf&&n.distanceFromLeaf>15-o?Ln(n.children[0],o):n}function ot(n){return" "+" ".repeat(n)}function vn(n){return"+ "+" ".repeat(n)}function yn(n){return"- "+" ".repeat(n)}function gi(n){switch(n.tag){case 26:case 27:case 5:return n.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return n=n.type,n.displayName||n.name||null;case 11:return n=n.type.render,n.displayName||n.name||null;case 1:return n=n.type,n.displayName||n.name||null;default:return null}}function On(n,o){return V.test(n)?(n=JSON.stringify(n),n.length>o-2?8>o?'{"..."}':"{"+n.slice(0,o-7)+'..."}':"{"+n+"}"):n.length>o?5>o?'{"..."}':n.slice(0,o-3)+"...":n}function oi(n,o,s){var w=120-2*s;if(o===null)return vn(s)+On(n,w)+`
107
+ Check the render method of \``+n+"`.":""}function Ee(n,o,s,w){if(n=n.options,o){o={};for(var _=0;_<s.length;_++)o["$"+s[_]]=!0;for(s=0;s<n.length;s++)_=o.hasOwnProperty("$"+n[s].value),n[s].selected!==_&&(n[s].selected=_),_&&w&&(n[s].defaultSelected=!0)}else{for(s=""+Yt(s),o=null,_=0;_<n.length;_++){if(n[_].value===s){n[_].selected=!0,w&&(n[_].defaultSelected=!0);return}o!==null||n[_].disabled||(o=n[_])}o!==null&&(o.selected=!0)}}function Ke(n,o){for(n=0;n<x.length;n++){var s=x[n];if(o[s]!=null){var w=ei(o[s]);o.multiple&&!w?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",s,it()):!o.multiple&&w&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",s,it())}}o.value===void 0||o.defaultValue===void 0||v||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),v=!0)}function st(n,o){o.value===void 0||o.defaultValue===void 0||z||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",ve()||"A component"),z=!0),o.children!=null&&o.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function on(n,o,s){if(o!=null&&(o=""+Yt(o),o!==n.value&&(n.value=o),s==null)){n.defaultValue!==o&&(n.defaultValue=o);return}n.defaultValue=s!=null?""+Yt(s):""}function Zn(n,o,s,w){if(o==null){if(w!=null){if(s!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(ei(w)){if(1<w.length)throw Error("<textarea> can only have at most one child.");w=w[0]}s=w}s==null&&(s=""),o=s}s=Yt(o),n.defaultValue=s,w=n.textContent,w===s&&w!==""&&w!==null&&(n.value=w),Rt(n)}function Ln(n,o){return n.serverProps===void 0&&n.serverTail.length===0&&n.children.length===1&&3<n.distanceFromLeaf&&n.distanceFromLeaf>15-o?Ln(n.children[0],o):n}function rt(n){return" "+" ".repeat(n)}function vn(n){return"+ "+" ".repeat(n)}function yn(n){return"- "+" ".repeat(n)}function gi(n){switch(n.tag){case 26:case 27:case 5:return n.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return n=n.type,n.displayName||n.name||null;case 11:return n=n.type.render,n.displayName||n.name||null;case 1:return n=n.type,n.displayName||n.name||null;default:return null}}function On(n,o){return V.test(n)?(n=JSON.stringify(n),n.length>o-2?8>o?'{"..."}':"{"+n.slice(0,o-7)+'..."}':"{"+n+"}"):n.length>o?5>o?'{"..."}':n.slice(0,o-3)+"...":n}function oi(n,o,s){var w=120-2*s;if(o===null)return vn(s)+On(n,w)+`
108
108
  `;if(typeof o=="string"){for(var _=0;_<o.length&&_<n.length&&o.charCodeAt(_)===n.charCodeAt(_);_++);return _>w-8&&10<_&&(n="..."+n.slice(_-8),o="..."+o.slice(_-8)),vn(s)+On(n,w)+`
109
109
  `+yn(s)+On(o,w)+`
110
- `}return ot(s)+On(n,w)+`
110
+ `}return rt(s)+On(n,w)+`
111
111
  `}function va(n){return Object.prototype.toString.call(n).replace(/^\[object (.*)\]$/,function(o,s){return s})}function rc(n,o){switch(typeof n){case"string":return n=JSON.stringify(n),n.length>o?5>o?'"..."':n.slice(0,o-4)+'..."':n;case"object":if(n===null)return"null";if(ei(n))return"[...]";if(n.$$typeof===Ua)return(o=F(n.type))?"<"+o+">":"<...>";var s=va(n);if(s==="Object"){s="",o-=2;for(var w in n)if(n.hasOwnProperty(w)){var _=JSON.stringify(w);if(_!=='"'+w+'"'&&(w=_),o-=w.length-2,_=rc(n[w],15>o?o:15),o-=_.length,0>o){s+=s===""?"...":", ...";break}s+=(s===""?"":",")+w+":"+_}return"{"+s+"}"}return s;case"function":return(o=n.displayName||n.name)?"function "+o:"function";default:return String(n)}}function ac(n,o){return typeof n!="string"||V.test(n)?"{"+rc(n,o-2)+"}":n.length>o-2?5>o?'"..."':'"'+n.slice(0,o-5)+'..."':'"'+n+'"'}function sc(n,o,s){var w=120-s.length-n.length,_=[],L;for(L in o)if(o.hasOwnProperty(L)&&L!=="children"){var G=ac(o[L],120-s.length-L.length-1);w-=L.length+G.length+2,_.push(L+"="+G)}return _.length===0?s+"<"+n+`>
112
112
  `:0<w?s+"<"+n+" "+_.join(" ")+`>
113
113
  `:s+"<"+n+`
@@ -118,20 +118,20 @@ Check the render method of \``+n+"`.":""}function Ee(n,o,s,w){if(n=n.options,o){
118
118
  `,w+=yn(s)+L+": "+G+`
119
119
  `):w+=vn(s)+L+": "+q+`
120
120
  `}for(var ne in _)_.hasOwnProperty(ne)&&(n=rc(_[ne],120-2*s-ne.length-2),w+=yn(s)+ne+": "+n+`
121
- `);return w}function Ga(n,o,s,w){var _="",L=new Map;for(oe in s)s.hasOwnProperty(oe)&&L.set(oe.toLowerCase(),oe);if(L.size===1&&L.has("children"))_+=sc(n,o,ot(w));else{for(var G in o)if(o.hasOwnProperty(G)&&G!=="children"){var q=120-2*(w+1)-G.length-1,ne=L.get(G.toLowerCase());if(ne!==void 0){L.delete(G.toLowerCase());var oe=o[G];ne=s[ne];var Se=ac(oe,q);q=ac(ne,q),typeof oe=="object"&&oe!==null&&typeof ne=="object"&&ne!==null&&va(oe)==="Object"&&va(ne)==="Object"&&(2<Object.keys(oe).length||2<Object.keys(ne).length||-1<Se.indexOf("...")||-1<q.indexOf("..."))?_+=ot(w+1)+G+`={{
122
- `+Ed(oe,ne,w+2)+ot(w+1)+`}}
121
+ `);return w}function Ga(n,o,s,w){var _="",L=new Map;for(oe in s)s.hasOwnProperty(oe)&&L.set(oe.toLowerCase(),oe);if(L.size===1&&L.has("children"))_+=sc(n,o,rt(w));else{for(var G in o)if(o.hasOwnProperty(G)&&G!=="children"){var q=120-2*(w+1)-G.length-1,ne=L.get(G.toLowerCase());if(ne!==void 0){L.delete(G.toLowerCase());var oe=o[G];ne=s[ne];var Se=ac(oe,q);q=ac(ne,q),typeof oe=="object"&&oe!==null&&typeof ne=="object"&&ne!==null&&va(oe)==="Object"&&va(ne)==="Object"&&(2<Object.keys(oe).length||2<Object.keys(ne).length||-1<Se.indexOf("...")||-1<q.indexOf("..."))?_+=rt(w+1)+G+`={{
122
+ `+Ed(oe,ne,w+2)+rt(w+1)+`}}
123
123
  `:(_+=vn(w+1)+G+"="+Se+`
124
124
  `,_+=yn(w+1)+G+"="+q+`
125
- `)}else _+=ot(w+1)+G+"="+ac(o[G],q)+`
125
+ `)}else _+=rt(w+1)+G+"="+ac(o[G],q)+`
126
126
  `}L.forEach(function(Ae){if(Ae!=="children"){var he=120-2*(w+1)-Ae.length-1;_+=yn(w+1)+Ae+"="+ac(s[Ae],he)+`
127
- `}}),_=_===""?ot(w)+"<"+n+`>
128
- `:ot(w)+"<"+n+`
129
- `+_+ot(w)+`>
130
- `}return n=s.children,o=o.children,typeof n=="string"||typeof n=="number"||typeof n=="bigint"?(L="",(typeof o=="string"||typeof o=="number"||typeof o=="bigint")&&(L=""+o),_+=oi(L,""+n,w+1)):(typeof o=="string"||typeof o=="number"||typeof o=="bigint")&&(_=n==null?_+oi(""+o,null,w+1):_+oi(""+o,void 0,w+1)),_}function bi(n,o){var s=gi(n);if(s===null){for(s="",n=n.child;n;)s+=bi(n,o),n=n.sibling;return s}return ot(o)+"<"+s+`>
131
- `}function wd(n,o){var s=Ln(n,o);if(s!==n&&(n.children.length!==1||n.children[0]!==s))return ot(o)+`...
132
- `+wd(s,o+1);s="";var w=n.fiber._debugInfo;if(w)for(var _=0;_<w.length;_++){var L=w[_].name;typeof L=="string"&&(s+=ot(o)+"<"+L+`>
133
- `,o++)}if(w="",_=n.fiber.pendingProps,n.fiber.tag===6)w=oi(_,n.serverProps,o),o++;else if(L=gi(n.fiber),L!==null)if(n.serverProps===void 0){w=o;var G=120-2*w-L.length-2,q="";for(oe in _)if(_.hasOwnProperty(oe)&&oe!=="children"){var ne=ac(_[oe],15);if(G-=oe.length+ne.length+2,0>G){q+=" ...";break}q+=" "+oe+"="+ne}w=ot(w)+"<"+L+q+`>
134
- `,o++}else n.serverProps===null?(w=sc(L,_,vn(o)),o++):typeof n.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(w=Ga(L,_,n.serverProps,o),o++);var oe="";for(_=n.fiber.child,L=0;_&&L<n.children.length;)G=n.children[L],G.fiber===_?(oe+=wd(G,o),L++):oe+=bi(_,o),_=_.sibling;for(_&&0<n.children.length&&(oe+=ot(o)+`...
127
+ `}}),_=_===""?rt(w)+"<"+n+`>
128
+ `:rt(w)+"<"+n+`
129
+ `+_+rt(w)+`>
130
+ `}return n=s.children,o=o.children,typeof n=="string"||typeof n=="number"||typeof n=="bigint"?(L="",(typeof o=="string"||typeof o=="number"||typeof o=="bigint")&&(L=""+o),_+=oi(L,""+n,w+1)):(typeof o=="string"||typeof o=="number"||typeof o=="bigint")&&(_=n==null?_+oi(""+o,null,w+1):_+oi(""+o,void 0,w+1)),_}function bi(n,o){var s=gi(n);if(s===null){for(s="",n=n.child;n;)s+=bi(n,o),n=n.sibling;return s}return rt(o)+"<"+s+`>
131
+ `}function wd(n,o){var s=Ln(n,o);if(s!==n&&(n.children.length!==1||n.children[0]!==s))return rt(o)+`...
132
+ `+wd(s,o+1);s="";var w=n.fiber._debugInfo;if(w)for(var _=0;_<w.length;_++){var L=w[_].name;typeof L=="string"&&(s+=rt(o)+"<"+L+`>
133
+ `,o++)}if(w="",_=n.fiber.pendingProps,n.fiber.tag===6)w=oi(_,n.serverProps,o),o++;else if(L=gi(n.fiber),L!==null)if(n.serverProps===void 0){w=o;var G=120-2*w-L.length-2,q="";for(oe in _)if(_.hasOwnProperty(oe)&&oe!=="children"){var ne=ac(_[oe],15);if(G-=oe.length+ne.length+2,0>G){q+=" ...";break}q+=" "+oe+"="+ne}w=rt(w)+"<"+L+q+`>
134
+ `,o++}else n.serverProps===null?(w=sc(L,_,vn(o)),o++):typeof n.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(w=Ga(L,_,n.serverProps,o),o++);var oe="";for(_=n.fiber.child,L=0;_&&L<n.children.length;)G=n.children[L],G.fiber===_?(oe+=wd(G,o),L++):oe+=bi(_,o),_=_.sibling;for(_&&0<n.children.length&&(oe+=rt(o)+`...
135
135
  `),_=n.serverTail,n.serverProps===null&&o--,n=0;n<_.length;n++)L=_[n],oe=typeof L=="string"?oe+(yn(o)+On(L,120-2*o)+`
136
136
  `):oe+sc(L.type,L.props,yn(o));return s+w+oe}function xl(n){try{return`
137
137
 
@@ -222,7 +222,7 @@ It looks like you wrote `+L+`(async () => ...) or returned a Promise. Instead, w
222
222
  fetchData();
223
223
  }, [someId]); // Or [] if effect doesn't need props or state
224
224
 
225
- Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+w,ye(o,function(q,ne){console.error("%s must not return anything besides a function, which is used for clean-up.%s",q,ne)},L,G)}s=s.next}while(s!==_)}}catch(q){ln(o,o.return,q)}}function Rc(n,o,s){try{var w=o.updateQueue,_=w!==null?w.lastEffect:null;if(_!==null){var L=_.next;w=L;do{if((w.tag&n)===n){var G=w.inst,q=G.destroy;q!==void 0&&(G.destroy=void 0,(n&aa)!==D1&&(Sb=!0),_=o,ye(_,bj,_,s,q),(n&aa)!==D1&&(Sb=!1))}w=w.next}while(w!==L)}}catch(ne){ln(o,o.return,ne)}}function Kh(n,o){Ps(n)?(Mo(),Hl(o,n),ir()):Hl(o,n)}function ig(n,o,s){Ps(n)?(Mo(),Rc(s,n,o),ir()):Rc(s,n,o)}function qv(n){var o=n.updateQueue;if(o!==null){var s=n.stateNode;n.type.defaultProps||"ref"in n.memoizedProps||bb||(s.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",j(n)||"instance"),s.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",j(n)||"instance"));try{ye(n,Md,o,s)}catch(w){ln(n,n.return,w)}}}function Zh(n,o,s){return n.getSnapshotBeforeUpdate(o,s)}function vw(n,o){var s=o.memoizedProps,w=o.memoizedState;o=n.stateNode,n.type.defaultProps||"ref"in n.memoizedProps||bb||(o.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",j(n)||"instance"),o.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",j(n)||"instance"));try{var _=Bs(n.type,s),L=ye(n,Zh,o,_,w);s=oL,L!==void 0||s.has(n.type)||(s.add(n.type),ye(n,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",j(n))})),o.__reactInternalSnapshotBeforeUpdate=L}catch(G){ln(n,n.return,G)}}function rg(n,o,s){s.props=Bs(n.type,n.memoizedProps),s.state=n.memoizedState,Ps(n)?(Mo(),ye(n,SR,n,o,s),ir()):ye(n,SR,n,o,s)}function yw(n){var o=n.ref;if(o!==null){switch(n.tag){case 26:case 27:case 5:var s=n.stateNode;break;case 30:s=n.stateNode;break;default:s=n.stateNode}if(typeof o=="function")if(Ps(n))try{Mo(),n.refCleanup=o(s)}finally{ir()}else n.refCleanup=o(s);else typeof o=="string"?console.error("String refs are no longer supported."):o.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",j(n)),o.current=s}}function $u(n,o){try{ye(n,yw,n)}catch(s){ln(n,o,s)}}function ka(n,o){var s=n.ref,w=n.refCleanup;if(s!==null)if(typeof w=="function")try{if(Ps(n))try{Mo(),ye(n,w)}finally{ir(n)}else ye(n,w)}catch(_){ln(n,o,_)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof s=="function")try{if(Ps(n))try{Mo(),ye(n,s,null)}finally{ir(n)}else ye(n,s,null)}catch(_){ln(n,o,_)}else s.current=null}function Kv(n,o,s,w){var _=n.memoizedProps,L=_.id,G=_.onCommit;_=_.onRender,o=o===null?"mount":"update",_1&&(o="nested-update"),typeof _=="function"&&_(L,o,n.actualDuration,n.treeBaseDuration,n.actualStartTime,s),typeof G=="function"&&G(L,o,w,s)}function Ew(n,o,s,w){var _=n.memoizedProps;n=_.id,_=_.onPostCommit,o=o===null?"mount":"update",_1&&(o="nested-update"),typeof _=="function"&&_(n,o,w,s)}function Lc(n){var o=n.type,s=n.memoizedProps,w=n.stateNode;try{ye(n,Mw,w,o,s,n)}catch(_){ln(n,n.return,_)}}function ag(n,o,s){try{ye(n,_g,n.stateNode,n.type,s,o,n)}catch(w){ln(n,n.return,w)}}function Zv(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Uc(n.type)||n.tag===4}function sg(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Zv(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Uc(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Qd(n,o,s){var w=n.tag;if(w===5||w===6)n=n.stateNode,o?(Iw(s),(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(n,o)):(Iw(s),o=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,o.appendChild(n),s=s._reactRootContainer,s!=null||o.onclick!==null||(o.onclick=Sr));else if(w!==4&&(w===27&&Uc(n.type)&&(s=n.stateNode,o=null),n=n.child,n!==null))for(Qd(n,o,s),n=n.sibling;n!==null;)Qd(n,o,s),n=n.sibling}function Jh(n,o,s){var w=n.tag;if(w===5||w===6)n=n.stateNode,o?s.insertBefore(n,o):s.appendChild(n);else if(w!==4&&(w===27&&Uc(n.type)&&(s=n.stateNode),n=n.child,n!==null))for(Jh(n,o,s),n=n.sibling;n!==null;)Jh(n,o,s),n=n.sibling}function Jv(n){for(var o,s=n.return;s!==null;){if(Zv(s)){o=s;break}s=s.return}if(o==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(o.tag){case 27:o=o.stateNode,s=sg(n),Jh(n,s,o);break;case 5:s=o.stateNode,o.flags&32&&(Cg(s),o.flags&=-33),o=sg(n),Jh(n,o,s);break;case 3:case 4:o=o.stateNode.containerInfo,s=sg(n),Qd(n,s,o);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function e0(n){var o=n.stateNode,s=n.memoizedProps;try{ye(n,Ks,n.type,s,o,n)}catch(w){ln(n,n.return,w)}}function t0(n,o){return o.tag===31?(o=o.memoizedState,n.memoizedState!==null&&o===null):o.tag===13?(n=n.memoizedState,o=o.memoizedState,n!==null&&n.dehydrated!==null&&(o===null||o.dehydrated===null)):o.tag===3?n.memoizedState.isDehydrated&&(o.flags&256)===0:!1}function VT(n,o){if(n=n.containerInfo,ex=aS,n=Tr(n),Ya(n)){if("selectionStart"in n)var s={start:n.selectionStart,end:n.selectionEnd};else e:{s=(s=n.ownerDocument)&&s.defaultView||window;var w=s.getSelection&&s.getSelection();if(w&&w.rangeCount!==0){s=w.anchorNode;var _=w.anchorOffset,L=w.focusNode;w=w.focusOffset;try{s.nodeType,L.nodeType}catch{s=null;break e}var G=0,q=-1,ne=-1,oe=0,Se=0,Ae=n,he=null;t:for(;;){for(var Ie;Ae!==s||_!==0&&Ae.nodeType!==3||(q=G+_),Ae!==L||w!==0&&Ae.nodeType!==3||(ne=G+w),Ae.nodeType===3&&(G+=Ae.nodeValue.length),(Ie=Ae.firstChild)!==null;)he=Ae,Ae=Ie;for(;;){if(Ae===n)break t;if(he===s&&++oe===_&&(q=G),he===L&&++Se===w&&(ne=G),(Ie=Ae.nextSibling)!==null)break;Ae=he,he=Ae.parentNode}Ae=Ie}s=q===-1||ne===-1?null:{start:q,end:ne}}else s=null}s=s||{start:0,end:0}}else s=null;for(tx={focusedElem:n,selectionRange:s},aS=!1,Yi=o;Yi!==null;)if(o=Yi,n=o.child,(o.subtreeFlags&1028)!==0&&n!==null)n.return=o,Yi=n;else for(;Yi!==null;){switch(n=o=Yi,s=n.alternate,_=n.flags,n.tag){case 0:if((_&4)!==0&&(n=n.updateQueue,n=n!==null?n.events:null,n!==null))for(s=0;s<n.length;s++)_=n[s],_.ref.impl=_.nextImpl;break;case 11:case 15:break;case 1:(_&1024)!==0&&s!==null&&vw(n,s);break;case 3:if((_&1024)!==0){if(n=n.stateNode.containerInfo,s=n.nodeType,s===9)af(n);else if(s===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":af(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((_&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(n=o.sibling,n!==null){n.return=o.return,Yi=n;break}Yi=o.return}}function lg(n,o,s){var w=yo(),_=La(),L=Pr(),G=Oa(),q=s.flags;switch(s.tag){case 0:case 11:case 15:qr(n,s),q&4&&bw(s,ys|ul);break;case 1:if(qr(n,s),q&4)if(n=s.stateNode,o===null)s.type.defaultProps||"ref"in s.memoizedProps||bb||(n.props!==s.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",j(s)||"instance"),n.state!==s.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",j(s)||"instance")),Ps(s)?(Mo(),ye(s,SA,s,n),ir()):ye(s,SA,s,n);else{var ne=Bs(s.type,o.memoizedProps);o=o.memoizedState,s.type.defaultProps||"ref"in s.memoizedProps||bb||(n.props!==s.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",j(s)||"instance"),n.state!==s.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",j(s)||"instance")),Ps(s)?(Mo(),ye(s,yR,s,n,ne,o,n.__reactInternalSnapshotBeforeUpdate),ir()):ye(s,yR,s,n,ne,o,n.__reactInternalSnapshotBeforeUpdate)}q&64&&qv(s),q&512&&$u(s,s.return);break;case 3:if(o=Ds(),qr(n,s),q&64&&(q=s.updateQueue,q!==null)){if(ne=null,s.child!==null)switch(s.child.tag){case 27:case 5:ne=s.child.stateNode;break;case 1:ne=s.child.stateNode}try{ye(s,Md,q,ne)}catch(Se){ln(s,s.return,Se)}}n.effectDuration+=Rd(o);break;case 27:o===null&&q&4&&e0(s);case 26:case 5:if(qr(n,s),o===null){if(q&4)Lc(s);else if(q&64){n=s.type,o=s.memoizedProps,ne=s.stateNode;try{ye(s,kw,ne,n,o,s)}catch(Se){ln(s,s.return,Se)}}}q&512&&$u(s,s.return);break;case 12:if(q&4){q=Ds(),qr(n,s),n=s.stateNode,n.effectDuration+=or(q);try{ye(s,Kv,s,o,Rf,n.effectDuration)}catch(Se){ln(s,s.return,Se)}}else qr(n,s);break;case 31:qr(n,s),q&4&&o0(n,s);break;case 13:qr(n,s),q&4&&i0(n,s),q&64&&(n=s.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(q=zl.bind(null,s),Qw(n,q))));break;case 22:if(q=s.memoizedState!==null||ld,!q){o=o!==null&&o.memoizedState!==null||Ri,ne=ld;var oe=Ri;ld=q,(Ri=o)&&!oe?(ss(n,s,(s.subtreeFlags&8772)!==0),(s.mode&fn)!==Vt&&0<=Ut&&0<=Bt&&.05<Bt-Ut&&Tp(s,Ut,Bt)):qr(n,s),ld=ne,Ri=oe}break;case 30:break;default:qr(n,s)}(s.mode&fn)!==Vt&&0<=Ut&&0<=Bt&&((Yo||.05<$o)&&Ka(s,Ut,Bt,$o,Do),s.alternate===null&&s.return!==null&&s.return.alternate!==null&&.05<Bt-Ut&&(t0(s.return.alternate,s.return)||Ca(s,Ut,Bt,"Mount"))),vi(w),Fr(_),Do=L,Yo=G}function Qo(n){var o=n.alternate;o!==null&&(n.alternate=null,Qo(o)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(o=n.stateNode,o!==null&&Dt(o)),n.stateNode=null,n._debugOwner=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function po(n,o,s){for(s=s.child;s!==null;)n0(n,o,s),s=s.sibling}function n0(n,o,s){if(li&&typeof li.onCommitFiberUnmount=="function")try{li.onCommitFiberUnmount(Xu,s)}catch(oe){Js||(Js=!0,console.error("React instrumentation encountered an error: %o",oe))}var w=yo(),_=La(),L=Pr(),G=Oa();switch(s.tag){case 26:Ri||ka(s,o),po(n,o,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(n=s.stateNode,n.parentNode.removeChild(n));break;case 27:Ri||ka(s,o);var q=Li,ne=ja;Uc(s.type)&&(Li=s.stateNode,ja=!1),po(n,o,s),ye(s,Vl,s.stateNode),Li=q,ja=ne;break;case 5:Ri||ka(s,o);case 6:if(q=Li,ne=ja,Li=null,po(n,o,s),Li=q,ja=ne,Li!==null)if(ja)try{ye(s,Uw,Li,s.stateNode)}catch(oe){ln(s,o,oe)}else try{ye(s,$w,Li,s.stateNode)}catch(oe){ln(s,o,oe)}break;case 18:Li!==null&&(ja?(n=Li,Bu(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,s.stateNode),Gu(n)):Bu(Li,s.stateNode));break;case 4:q=Li,ne=ja,Li=s.stateNode.containerInfo,ja=!0,po(n,o,s),Li=q,ja=ne;break;case 0:case 11:case 14:case 15:Rc(aa,s,o),Ri||og(s,o,ys),po(n,o,s);break;case 1:Ri||(ka(s,o),q=s.stateNode,typeof q.componentWillUnmount=="function"&&rg(s,o,q)),po(n,o,s);break;case 21:po(n,o,s);break;case 22:Ri=(q=Ri)||s.memoizedState!==null,po(n,o,s),Ri=q;break;default:po(n,o,s)}(s.mode&fn)!==Vt&&0<=Ut&&0<=Bt&&(Yo||.05<$o)&&Ka(s,Ut,Bt,$o,Do),vi(w),Fr(_),Do=L,Yo=G}function o0(n,o){if(o.memoizedState===null&&(n=o.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{ye(o,Ng,n)}catch(s){ln(o,o.return,s)}}}function i0(n,o){if(o.memoizedState===null&&(n=o.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{ye(o,x0,n)}catch(s){ln(o,o.return,s)}}function ww(n){switch(n.tag){case 31:case 13:case 19:var o=n.stateNode;return o===null&&(o=n.stateNode=new iL),o;case 22:return n=n.stateNode,o=n._retryCache,o===null&&(o=n._retryCache=new iL),o;default:throw Error("Unexpected Suspense handler tag ("+n.tag+"). This is a bug in React.")}}function Oc(n,o){var s=ww(n);o.forEach(function(w){if(!s.has(w)){if(s.add(w),el)if(vb!==null&&yb!==null)Zd(yb,vb);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var _=ju.bind(null,n,w);w.then(_,_)}})}function cr(n,o){var s=o.deletions;if(s!==null)for(var w=0;w<s.length;w++){var _=n,L=o,G=s[w],q=yo(),ne=L;e:for(;ne!==null;){switch(ne.tag){case 27:if(Uc(ne.type)){Li=ne.stateNode,ja=!1;break e}break;case 5:Li=ne.stateNode,ja=!1;break e;case 3:case 4:Li=ne.stateNode.containerInfo,ja=!0;break e}ne=ne.return}if(Li===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");n0(_,L,G),Li=null,ja=!1,(G.mode&fn)!==Vt&&0<=Ut&&0<=Bt&&.05<Bt-Ut&&Ca(G,Ut,Bt,"Unmount"),vi(q),_=G,L=_.alternate,L!==null&&(L.return=null),_.return=null}if(o.subtreeFlags&13886)for(o=o.child;o!==null;)em(o,n),o=o.sibling}function em(n,o){var s=yo(),w=La(),_=Pr(),L=Oa(),G=n.alternate,q=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:cr(o,n),ur(n),q&4&&(Rc(aa|ul,n,n.return),Hl(aa|ul,n),og(n,n.return,ys|ul));break;case 1:if(cr(o,n),ur(n),q&512&&(Ri||G===null||ka(G,G.return)),q&64&&ld&&(q=n.updateQueue,q!==null&&(G=q.callbacks,G!==null))){var ne=q.shared.hiddenCallbacks;q.shared.hiddenCallbacks=ne===null?G:ne.concat(G)}break;case 26:if(ne=ql,cr(o,n),ur(n),q&512&&(Ri||G===null||ka(G,G.return)),q&4){var oe=G!==null?G.memoizedState:null;if(q=n.memoizedState,G===null)if(q===null)if(n.stateNode===null){e:{q=n.type,G=n.memoizedProps,ne=ne.ownerDocument||ne;t:switch(q){case"title":oe=ne.getElementsByTagName("title")[0],(!oe||oe[wf]||oe[So]||oe.namespaceURI===cn||oe.hasAttribute("itemprop"))&&(oe=ne.createElement(q),ne.head.insertBefore(oe,ne.querySelector("head > title"))),wo(oe,q,G),oe[So]=n,Ce(oe),q=oe;break e;case"link":var Se=cf("link","href",ne).get(q+(G.href||""));if(Se){for(var Ae=0;Ae<Se.length;Ae++)if(oe=Se[Ae],oe.getAttribute("href")===(G.href==null||G.href===""?null:G.href)&&oe.getAttribute("rel")===(G.rel==null?null:G.rel)&&oe.getAttribute("title")===(G.title==null?null:G.title)&&oe.getAttribute("crossorigin")===(G.crossOrigin==null?null:G.crossOrigin)){Se.splice(Ae,1);break t}}oe=ne.createElement(q),wo(oe,q,G),ne.head.appendChild(oe);break;case"meta":if(Se=cf("meta","content",ne).get(q+(G.content||""))){for(Ae=0;Ae<Se.length;Ae++)if(oe=Se[Ae],et(G.content,"content"),oe.getAttribute("content")===(G.content==null?null:""+G.content)&&oe.getAttribute("name")===(G.name==null?null:G.name)&&oe.getAttribute("property")===(G.property==null?null:G.property)&&oe.getAttribute("http-equiv")===(G.httpEquiv==null?null:G.httpEquiv)&&oe.getAttribute("charset")===(G.charSet==null?null:G.charSet)){Se.splice(Ae,1);break t}}oe=ne.createElement(q),wo(oe,q,G),ne.head.appendChild(oe);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+q+'". This is a bug in React.')}oe[So]=n,Ce(oe),q=oe}n.stateNode=q}else qw(ne,n.type,n.stateNode);else n.stateNode=Og(ne,q,n.memoizedProps);else oe!==q?(oe===null?G.stateNode!==null&&(G=G.stateNode,G.parentNode.removeChild(G)):oe.count--,q===null?qw(ne,n.type,n.stateNode):Og(ne,q,n.memoizedProps)):q===null&&n.stateNode!==null&&ag(n,n.memoizedProps,G.memoizedProps)}break;case 27:cr(o,n),ur(n),q&512&&(Ri||G===null||ka(G,G.return)),G!==null&&q&4&&ag(n,n.memoizedProps,G.memoizedProps);break;case 5:if(cr(o,n),ur(n),q&512&&(Ri||G===null||ka(G,G.return)),n.flags&32){ne=n.stateNode;try{ye(n,Cg,ne)}catch(pt){ln(n,n.return,pt)}}q&4&&n.stateNode!=null&&(ne=n.memoizedProps,ag(n,ne,G!==null?G.memoizedProps:ne)),q&1024&&(IA=!0,n.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(cr(o,n),ur(n),q&4){if(n.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");q=n.memoizedProps,G=G!==null?G.memoizedProps:q,ne=n.stateNode;try{ye(n,GT,ne,G,q)}catch(pt){ln(n,n.return,pt)}}break;case 3:if(ne=Ds(),oS=null,oe=ql,ql=Rg(o.containerInfo),cr(o,n),ql=oe,ur(n),q&4&&G!==null&&G.memoizedState.isDehydrated)try{ye(n,A0,o.containerInfo)}catch(pt){ln(n,n.return,pt)}IA&&(IA=!1,Sw(n)),o.effectDuration+=Rd(ne);break;case 4:q=ql,ql=Rg(n.stateNode.containerInfo),cr(o,n),ur(n),ql=q;break;case 12:q=Ds(),cr(o,n),ur(n),n.stateNode.effectDuration+=or(q);break;case 31:cr(o,n),ur(n),q&4&&(q=n.updateQueue,q!==null&&(n.updateQueue=null,Oc(n,q)));break;case 13:cr(o,n),ur(n),n.child.flags&8192&&n.memoizedState!==null!=(G!==null&&G.memoizedState!==null)&&(F1=Ai()),q&4&&(q=n.updateQueue,q!==null&&(n.updateQueue=null,Oc(n,q)));break;case 22:ne=n.memoizedState!==null;var he=G!==null&&G.memoizedState!==null,Ie=ld,dt=Ri;if(ld=Ie||ne,Ri=dt||he,cr(o,n),Ri=dt,ld=Ie,he&&!ne&&!Ie&&!dt&&(n.mode&fn)!==Vt&&0<=Ut&&0<=Bt&&.05<Bt-Ut&&Tp(n,Ut,Bt),ur(n),q&8192)e:for(o=n.stateNode,o._visibility=ne?o._visibility&~ay:o._visibility|ay,!ne||G===null||he||ld||Ri||(Dc(n),(n.mode&fn)!==Vt&&0<=Ut&&0<=Bt&&.05<Bt-Ut&&Ca(n,Ut,Bt,"Disconnect")),G=null,o=n;;){if(o.tag===5||o.tag===26){if(G===null){he=G=o;try{oe=he.stateNode,ne?ye(he,jw,oe):ye(he,Fw,he.stateNode,he.memoizedProps)}catch(pt){ln(he,he.return,pt)}}}else if(o.tag===6){if(G===null){he=o;try{Se=he.stateNode,ne?ye(he,zw,Se):ye(he,Pw,Se,he.memoizedProps)}catch(pt){ln(he,he.return,pt)}}}else if(o.tag===18){if(G===null){he=o;try{Ae=he.stateNode,ne?ye(he,Hw,Ae):ye(he,Bw,he.stateNode)}catch(pt){ln(he,he.return,pt)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===n)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===n)break e;for(;o.sibling===null;){if(o.return===null||o.return===n)break e;G===o&&(G=null),o=o.return}G===o&&(G=null),o.sibling.return=o.return,o=o.sibling}q&4&&(q=n.updateQueue,q!==null&&(G=q.retryQueue,G!==null&&(q.retryQueue=null,Oc(n,G))));break;case 19:cr(o,n),ur(n),q&4&&(q=n.updateQueue,q!==null&&(n.updateQueue=null,Oc(n,q)));break;case 30:break;case 21:break;default:cr(o,n),ur(n)}(n.mode&fn)!==Vt&&0<=Ut&&0<=Bt&&((Yo||.05<$o)&&Ka(n,Ut,Bt,$o,Do),n.alternate===null&&n.return!==null&&n.return.alternate!==null&&.05<Bt-Ut&&(t0(n.return.alternate,n.return)||Ca(n,Ut,Bt,"Mount"))),vi(s),Fr(w),Do=_,Yo=L}function ur(n){var o=n.flags;if(o&2){try{ye(n,Jv,n)}catch(s){ln(n,n.return,s)}n.flags&=-3}o&4096&&(n.flags&=-4097)}function Sw(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var o=n;Sw(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),n=n.sibling}}function qr(n,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)lg(n,o.alternate,o),o=o.sibling}function cg(n){var o=yo(),s=La(),w=Pr(),_=Oa();switch(n.tag){case 0:case 11:case 14:case 15:og(n,n.return,ys),Dc(n);break;case 1:ka(n,n.return);var L=n.stateNode;typeof L.componentWillUnmount=="function"&&rg(n,n.return,L),Dc(n);break;case 27:ye(n,Vl,n.stateNode);case 26:case 5:ka(n,n.return),Dc(n);break;case 22:n.memoizedState===null&&Dc(n);break;case 30:Dc(n);break;default:Dc(n)}(n.mode&fn)!==Vt&&0<=Ut&&0<=Bt&&(Yo||.05<$o)&&Ka(n,Ut,Bt,$o,Do),vi(o),Fr(s),Do=w,Yo=_}function Dc(n){for(n=n.child;n!==null;)cg(n),n=n.sibling}function r0(n,o,s,w){var _=yo(),L=La(),G=Pr(),q=Oa(),ne=s.flags;switch(s.tag){case 0:case 11:case 15:ss(n,s,w),bw(s,ys);break;case 1:if(ss(n,s,w),o=s.stateNode,typeof o.componentDidMount=="function"&&ye(s,SA,s,o),o=s.updateQueue,o!==null){n=s.stateNode;try{ye(s,_v,o,n)}catch(oe){ln(s,s.return,oe)}}w&&ne&64&&qv(s),$u(s,s.return);break;case 27:e0(s);case 26:case 5:ss(n,s,w),w&&o===null&&ne&4&&Lc(s),$u(s,s.return);break;case 12:if(w&&ne&4){ne=Ds(),ss(n,s,w),w=s.stateNode,w.effectDuration+=or(ne);try{ye(s,Kv,s,o,Rf,w.effectDuration)}catch(oe){ln(s,s.return,oe)}}else ss(n,s,w);break;case 31:ss(n,s,w),w&&ne&4&&o0(n,s);break;case 13:ss(n,s,w),w&&ne&4&&i0(n,s);break;case 22:s.memoizedState===null&&ss(n,s,w),$u(s,s.return);break;case 30:break;default:ss(n,s,w)}(s.mode&fn)!==Vt&&0<=Ut&&0<=Bt&&(Yo||.05<$o)&&Ka(s,Ut,Bt,$o,Do),vi(_),Fr(L),Do=G,Yo=q}function ss(n,o,s){for(s=s&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;)r0(n,o.alternate,o,s),o=o.sibling}function tm(n,o){var s=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),n=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(n=o.memoizedState.cachePool.pool),n!==s&&(n!=null&&yu(n),s!=null&&Ch(s))}function nm(n,o){n=null,o.alternate!==null&&(n=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==n&&(yu(o),n!=null&&Ch(n))}function Kr(n,o,s,w,_){if(o.subtreeFlags&10256||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child))for(o=o.child;o!==null;){var L=o.sibling;a0(n,o,s,w,L!==null?L.actualStartTime:_),o=L}}function a0(n,o,s,w,_){var L=yo(),G=La(),q=Pr(),ne=Oa(),oe=xf,Se=o.flags;switch(o.tag){case 0:case 11:case 15:(o.mode&fn)!==Vt&&0<o.actualStartTime&&(o.flags&1)!==0&&Ap(o,o.actualStartTime,_,ji,s),Kr(n,o,s,w,_),Se&2048&&Kh(o,sa|ul);break;case 1:(o.mode&fn)!==Vt&&0<o.actualStartTime&&((o.flags&128)!==0?uv(o,o.actualStartTime,_,[]):(o.flags&1)!==0&&Ap(o,o.actualStartTime,_,ji,s)),Kr(n,o,s,w,_);break;case 3:var Ae=Ds(),he=ji;ji=o.alternate!==null&&o.alternate.memoizedState.isDehydrated&&(o.flags&256)===0,Kr(n,o,s,w,_),ji=he,Se&2048&&(s=null,o.alternate!==null&&(s=o.alternate.memoizedState.cache),w=o.memoizedState.cache,w!==s&&(yu(w),s!=null&&Ch(s))),n.passiveEffectDuration+=Rd(Ae);break;case 12:if(Se&2048){Se=Ds(),Kr(n,o,s,w,_),n=o.stateNode,n.passiveEffectDuration+=or(Se);try{ye(o,Ew,o,o.alternate,Rf,n.passiveEffectDuration)}catch(Ie){ln(o,o.return,Ie)}}else Kr(n,o,s,w,_);break;case 31:Se=ji,Ae=o.alternate!==null?o.alternate.memoizedState:null,he=o.memoizedState,Ae!==null&&he===null?(he=o.deletions,he!==null&&0<he.length&&he[0].tag===18?(ji=!1,Ae=Ae.hydrationErrors,Ae!==null&&uv(o,o.actualStartTime,_,Ae)):ji=!0):ji=!1,Kr(n,o,s,w,_),ji=Se;break;case 13:Se=ji,Ae=o.alternate!==null?o.alternate.memoizedState:null,he=o.memoizedState,Ae===null||Ae.dehydrated===null||he!==null&&he.dehydrated!==null?ji=!1:(he=o.deletions,he!==null&&0<he.length&&he[0].tag===18?(ji=!1,Ae=Ae.hydrationErrors,Ae!==null&&uv(o,o.actualStartTime,_,Ae)):ji=!0),Kr(n,o,s,w,_),ji=Se;break;case 23:break;case 22:he=o.stateNode,Ae=o.alternate,o.memoizedState!==null?he._visibility&Zu?Kr(n,o,s,w,_):Uu(n,o,s,w,_):he._visibility&Zu?Kr(n,o,s,w,_):(he._visibility|=Zu,Mc(n,o,s,w,(o.subtreeFlags&10256)!==0||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child),_),(o.mode&fn)===Vt||ji||(n=o.actualStartTime,0<=n&&.05<_-n&&Tp(o,n,_),0<=Ut&&0<=Bt&&.05<Bt-Ut&&Tp(o,Ut,Bt))),Se&2048&&tm(Ae,o);break;case 24:Kr(n,o,s,w,_),Se&2048&&nm(o.alternate,o);break;default:Kr(n,o,s,w,_)}(o.mode&fn)!==Vt&&((n=!ji&&o.alternate===null&&o.return!==null&&o.return.alternate!==null)&&(s=o.actualStartTime,0<=s&&.05<_-s&&Ca(o,s,_,"Mount")),0<=Ut&&0<=Bt&&((Yo||.05<$o)&&Ka(o,Ut,Bt,$o,Do),n&&.05<Bt-Ut&&Ca(o,Ut,Bt,"Mount"))),vi(L),Fr(G),Do=q,Yo=ne,xf=oe}function Mc(n,o,s,w,_,L){for(_=_&&((o.subtreeFlags&10256)!==0||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child)),o=o.child;o!==null;){var G=o.sibling;om(n,o,s,w,_,G!==null?G.actualStartTime:L),o=G}}function om(n,o,s,w,_,L){var G=yo(),q=La(),ne=Pr(),oe=Oa(),Se=xf;_&&(o.mode&fn)!==Vt&&0<o.actualStartTime&&(o.flags&1)!==0&&Ap(o,o.actualStartTime,L,ji,s);var Ae=o.flags;switch(o.tag){case 0:case 11:case 15:Mc(n,o,s,w,_,L),Kh(o,sa);break;case 23:break;case 22:var he=o.stateNode;o.memoizedState!==null?he._visibility&Zu?Mc(n,o,s,w,_,L):Uu(n,o,s,w,L):(he._visibility|=Zu,Mc(n,o,s,w,_,L)),_&&Ae&2048&&tm(o.alternate,o);break;case 24:Mc(n,o,s,w,_,L),_&&Ae&2048&&nm(o.alternate,o);break;default:Mc(n,o,s,w,_,L)}(o.mode&fn)!==Vt&&0<=Ut&&0<=Bt&&(Yo||.05<$o)&&Ka(o,Ut,Bt,$o,Do),vi(G),Fr(q),Do=ne,Yo=oe,xf=Se}function Uu(n,o,s,w,_){if(o.subtreeFlags&10256||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child))for(var L=o.child;L!==null;){o=L.sibling;var G=n,q=s,ne=w,oe=o!==null?o.actualStartTime:_,Se=xf;(L.mode&fn)!==Vt&&0<L.actualStartTime&&(L.flags&1)!==0&&Ap(L,L.actualStartTime,oe,ji,q);var Ae=L.flags;switch(L.tag){case 22:Uu(G,L,q,ne,oe),Ae&2048&&tm(L.alternate,L);break;case 24:Uu(G,L,q,ne,oe),Ae&2048&&nm(L.alternate,L);break;default:Uu(G,L,q,ne,oe)}xf=Se,L=o}}function Hu(n,o,s){if(n.subtreeFlags&_y)for(n=n.child;n!==null;)ug(n,o,s),n=n.sibling}function ug(n,o,s){switch(n.tag){case 26:Hu(n,o,s),n.flags&_y&&n.memoizedState!==null&&L0(s,ql,n.memoizedState,n.memoizedProps);break;case 5:Hu(n,o,s);break;case 3:case 4:var w=ql;ql=Rg(n.stateNode.containerInfo),Hu(n,o,s),ql=w;break;case 22:n.memoizedState===null&&(w=n.alternate,w!==null&&w.memoizedState!==null?(w=_y,_y=16777216,Hu(n,o,s),_y=w):Hu(n,o,s));break;default:Hu(n,o,s)}}function s0(n){var o=n.alternate;if(o!==null&&(n=o.child,n!==null)){o.child=null;do o=n.sibling,n.sibling=null,n=o;while(n!==null)}}function Zr(n){var o=n.deletions;if((n.flags&16)!==0){if(o!==null)for(var s=0;s<o.length;s++){var w=o[s],_=yo();Yi=w,Vs(w,n),(w.mode&fn)!==Vt&&0<=Ut&&0<=Bt&&.05<Bt-Ut&&Ca(w,Ut,Bt,"Unmount"),vi(_)}s0(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)dg(n),n=n.sibling}function dg(n){var o=yo(),s=La(),w=Pr(),_=Oa();switch(n.tag){case 0:case 11:case 15:Zr(n),n.flags&2048&&ig(n,n.return,sa|ul);break;case 3:var L=Ds();Zr(n),n.stateNode.passiveEffectDuration+=Rd(L);break;case 12:L=Ds(),Zr(n),n.stateNode.passiveEffectDuration+=or(L);break;case 22:L=n.stateNode,n.memoizedState!==null&&L._visibility&Zu&&(n.return===null||n.return.tag!==13)?(L._visibility&=~Zu,fg(n),(n.mode&fn)!==Vt&&0<=Ut&&0<=Bt&&.05<Bt-Ut&&Ca(n,Ut,Bt,"Disconnect")):Zr(n);break;default:Zr(n)}(n.mode&fn)!==Vt&&0<=Ut&&0<=Bt&&(Yo||.05<$o)&&Ka(n,Ut,Bt,$o,Do),vi(o),Fr(s),Yo=_,Do=w}function fg(n){var o=n.deletions;if((n.flags&16)!==0){if(o!==null)for(var s=0;s<o.length;s++){var w=o[s],_=yo();Yi=w,Vs(w,n),(w.mode&fn)!==Vt&&0<=Ut&&0<=Bt&&.05<Bt-Ut&&Ca(w,Ut,Bt,"Unmount"),vi(_)}s0(n)}for(n=n.child;n!==null;)l0(n),n=n.sibling}function l0(n){var o=yo(),s=La(),w=Pr(),_=Oa();switch(n.tag){case 0:case 11:case 15:ig(n,n.return,sa),fg(n);break;case 22:var L=n.stateNode;L._visibility&Zu&&(L._visibility&=~Zu,fg(n));break;default:fg(n)}(n.mode&fn)!==Vt&&0<=Ut&&0<=Bt&&(Yo||.05<$o)&&Ka(n,Ut,Bt,$o,Do),vi(o),Fr(s),Yo=_,Do=w}function Vs(n,o){for(;Yi!==null;){var s=Yi,w=s,_=o,L=yo(),G=La(),q=Pr(),ne=Oa();switch(w.tag){case 0:case 11:case 15:ig(w,_,sa);break;case 23:case 22:w.memoizedState!==null&&w.memoizedState.cachePool!==null&&(_=w.memoizedState.cachePool.pool,_!=null&&yu(_));break;case 24:Ch(w.memoizedState.cache)}if((w.mode&fn)!==Vt&&0<=Ut&&0<=Bt&&(Yo||.05<$o)&&Ka(w,Ut,Bt,$o,Do),vi(L),Fr(G),Yo=ne,Do=q,w=s.child,w!==null)w.return=s,Yi=w;else e:for(s=n;Yi!==null;){if(w=Yi,L=w.sibling,G=w.return,Qo(w),w===s){Yi=null;break e}if(L!==null){L.return=G,Yi=L;break e}Yi=G}}}function c0(){Sj.forEach(function(n){return n()})}function u0(){var n=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return n||Ue.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),n}function Vi(n){if((Mn&zi)!==Xi&&mn!==0)return mn&-mn;var o=Ue.T;return o!==null?(o._updatedFibers||(o._updatedFibers=new Set),o._updatedFibers.add(n),E0()):Ge()}function Wd(){if(Ba===0)if((mn&536870912)===0||Tn){var n=_m;_m<<=1,(_m&3932160)===0&&(_m=262144),Ba=n}else Ba=536870912;return n=vs.current,n!==null&&(n.flags|=32),Ba}function Wt(n,o,s){if(Sb&&console.error("useInsertionEffect must not schedule updates."),QA&&(Q1=!0),(n===ho&&(oo===Fm||oo===Pm)||n.cancelPendingCommit!==null)&&(Gs(n,0),Ia(n,mn,Ba,!1)),rt(n,s),(Mn&zi)!==Xi&&n===ho){if(Zs)switch(o.tag){case 0:case 11:case 15:n=gn&&j(gn)||"Unknown",yL.has(n)||(yL.add(n),o=j(o)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",o,n,n));break;case 1:vL||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),vL=!0)}}else el&&_t(n,o,s),sm(o),n===ho&&((Mn&zi)===Xi&&(Uf|=s),Uo===kf&&Ia(n,mn,Ba,!1)),Cr(n)}function Tw(n,o,s){if((Mn&(zi|Es))!==Xi)throw Error("Should not already be working.");if(mn!==0&&gn!==null){var w=gn,_=Ai();switch(dR){case Ry:case Fm:var L=fy;To&&((w=w._debugTask)?w.run(console.timeStamp.bind(console,"Suspended",L,_,nl,void 0,"primary-light")):console.timeStamp("Suspended",L,_,nl,void 0,"primary-light"));break;case Pm:L=fy,To&&((w=w._debugTask)?w.run(console.timeStamp.bind(console,"Action",L,_,nl,void 0,"primary-light")):console.timeStamp("Action",L,_,nl,void 0,"primary-light"));break;default:To&&(w=_-fy,3>w||console.timeStamp("Blocked",fy,_,nl,void 0,5>w?"primary-light":10>w?"primary":100>w?"primary-dark":"error"))}}L=(s=!s&&(o&127)===0&&(o&n.expiredLanes)===0||at(n,o))?jl(n,o):qd(n,o,!0);var G=s;do{if(L===cd){Eb&&!s&&Ia(n,o,0,!1),o=oo,fy=_i(),dR=o;break}else{if(w=Ai(),_=n.current.alternate,G&&!xw(_)){qa(o),_=Wi,L=w,!To||L<=_||(ti?ti.run(console.timeStamp.bind(console,"Teared Render",_,L,Nn,An,"error")):console.timeStamp("Teared Render",_,L,Nn,An,"error")),kc(o,w),L=qd(n,o,!1),G=!1;continue}if(L===Bm){if(G=o,n.errorRecoveryDisabledLanes&G)var q=0;else q=n.pendingLanes&-536870913,q=q!==0?q:q&536870912?536870912:0;if(q!==0){qa(o),dv(Wi,w,o,ti),kc(o,w),o=q;e:{w=n,L=G,G=Oy;var ne=w.current.memoizedState.isDehydrated;if(ne&&(Gs(w,q).flags|=256),q=qd(w,q,!1),q!==Bm){if(HA&&!ne){w.errorRecoveryDisabledLanes|=L,Uf|=L,L=kf;break e}w=la,la=G,w!==null&&(la===null?la=w:la.push.apply(la,w))}L=q}if(G=!1,L!==Bm)continue;w=Ai()}}if(L===Ny){qa(o),dv(Wi,w,o,ti),kc(o,w),Gs(n,0),Ia(n,o,0,!0);break}e:{switch(s=n,L){case cd:case Ny:throw Error("Root did not complete. This is a bug in React.");case kf:if((o&4194048)!==o)break;case H1:qa(o),JE(Wi,w,o,ti),kc(o,w),_=o,(_&127)!==0?T1=w:(_&4194048)!==0&&(A1=w),Ia(s,o,Ba,!If);break e;case Bm:la=null;break;case U1:case rL:break;default:throw Error("Unknown root exit status.")}if(Ue.actQueue!==null)co(s,_,o,la,Dy,B1,Ba,Uf,Vm,L,null,null,Wi,w);else{if((o&62914560)===o&&(G=F1+lL-Ai(),10<G)){if(Ia(s,o,Ba,!If),gt(s,0,!0)!==0)break e;Kl=o,s.timeoutHandle=CL(Aw.bind(null,s,_,la,Dy,B1,o,Ba,Uf,Vm,If,L,"Throttled",Wi,w),G);break e}Aw(s,_,la,Dy,B1,o,Ba,Uf,Vm,If,L,null,Wi,w)}}}break}while(!0);Cr(n)}function Aw(n,o,s,w,_,L,G,q,ne,oe,Se,Ae,he,Ie){n.timeoutHandle=Xm;var dt=o.subtreeFlags,pt=null;if((dt&8192||(dt&16785408)===16785408)&&(pt={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Sr},ug(o,L,pt),dt=(L&62914560)===L?F1-Ai():(L&4194048)===L?sL-Ai():0,dt=Dg(pt,dt),dt!==null)){Kl=L,n.cancelPendingCommit=dt(co.bind(null,n,o,L,s,w,_,G,q,ne,Se,pt,pt.waitingForViewTransition?"Waiting for the previous Animation":0<pt.count?0<pt.imgCount?"Suspended on CSS and Images":"Suspended on CSS":pt.imgCount===1?"Suspended on an Image":0<pt.imgCount?"Suspended on Images":null,he,Ie)),Ia(n,L,G,!oe);return}co(n,o,L,s,w,_,G,q,ne,Se,pt,Ae,he,Ie)}function xw(n){for(var o=n;;){var s=o.tag;if((s===0||s===11||s===15)&&o.flags&16384&&(s=o.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var w=0;w<s.length;w++){var _=s[w],L=_.getSnapshot;_=_.value;try{if(!ia(L(),_))return!1}catch{return!1}}if(s=o.child,o.subtreeFlags&16384&&s!==null)s.return=o,o=s;else{if(o===n)break;for(;o.sibling===null;){if(o.return===null||o.return===n)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function Ia(n,o,s,w){o&=~jA,o&=~Uf,n.suspendedLanes|=o,n.pingedLanes&=~o,w&&(n.warmLanes|=o),w=n.expirationTimes;for(var _=o;0<_;){var L=31-Ui(_),G=1<<L;w[L]=-1,_&=~G}s!==0&&St(n,s,o)}function Jr(){return(Mn&(zi|Es))===Xi?(Ws(0),!1):!0}function hg(){if(gn!==null){if(oo===za)var n=gn.return;else n=gn,Cd(),yc(n),db=null,wy=0,n=gn;for(;n!==null;)Xv(n.alternate,n),n=n.return;gn=null}}function kc(n,o){(n&127)!==0&&(Dm=o),(n&4194048)!==0&&(od=o),(n&62914560)!==0&&(cR=o),(n&2080374784)!==0&&(uR=o)}function Gs(n,o){To&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",An,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",An,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",An,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",An,"primary-light"));var s=Wi;if(Wi=_i(),mn!==0&&0<s){if(qa(mn),Uo===U1||Uo===kf)JE(s,Wi,o,ti);else{var w=Wi,_=ti;if(To&&!(w<=s)){var L=(o&738197653)===o?"tertiary-dark":"primary-dark",G=(o&536870912)===o?"Prewarm":(o&201326741)===o?"Interrupted Hydration":"Interrupted Render";_?_.run(console.timeStamp.bind(console,G,s,w,Nn,An,L)):console.timeStamp(G,s,w,Nn,An,L)}}kc(mn,Wi)}if(s=ti,ti=null,(o&127)!==0){ti=cy,_=0<=Gc&&Gc<Dm?Dm:Gc,w=0<=Mm&&Mm<Dm?Dm:Mm,L=0<=w?w:0<=_?_:Wi,0<=T1?(qa(2),ew(T1,L,o,s)):x1&127,s=_;var q=w,ne=uy,oe=0<lb,Se=Lf===ly,Ae=Lf===S1;if(_=Wi,w=cy,L=bA,G=vA,To){if(Nn="Blocking",0<s?s>_&&(s=_):s=_,0<q?q>s&&(q=s):q=s,ne!==null&&s>q){var he=oe?"secondary-light":"warning";w?w.run(console.timeStamp.bind(console,oe?"Consecutive":"Event: "+ne,q,s,Nn,An,he)):console.timeStamp(oe?"Consecutive":"Event: "+ne,q,s,Nn,An,he)}_>s&&(q=Se?"error":(o&738197653)===o?"tertiary-light":"primary-light",Se=Ae?"Promise Resolved":Se?"Cascading Update":5<_-s?"Update Blocked":"Update",Ae=[],G!=null&&Ae.push(["Component name",G]),L!=null&&Ae.push(["Method name",L]),s={start:s,end:_,detail:{devtools:{properties:Ae,track:Nn,trackGroup:An,color:q}}},w?w.run(performance.measure.bind(performance,Se,s)):performance.measure(Se,s))}Gc=-1.1,Lf=0,vA=bA=null,T1=-1.1,lb=Mm,Mm=-1.1,Dm=_i()}if((o&4194048)!==0&&(ti=dy,_=0<=id&&id<od?od:id,s=0<=ll&&ll<od?od:ll,w=0<=Of&&Of<od?od:Of,L=0<=w?w:0<=s?s:Wi,0<=A1?(qa(256),ew(A1,L,o,ti)):x1&4194048,Ae=w,q=km,ne=0<Df,oe=yA===S1,L=Wi,w=dy,G=sR,Se=lR,To&&(Nn="Transition",0<s?s>L&&(s=L):s=L,0<_?_>s&&(_=s):_=s,0<Ae?Ae>_&&(Ae=_):Ae=_,_>Ae&&q!==null&&(he=ne?"secondary-light":"warning",w?w.run(console.timeStamp.bind(console,ne?"Consecutive":"Event: "+q,Ae,_,Nn,An,he)):console.timeStamp(ne?"Consecutive":"Event: "+q,Ae,_,Nn,An,he)),s>_&&(w?w.run(console.timeStamp.bind(console,"Action",_,s,Nn,An,"primary-dark")):console.timeStamp("Action",_,s,Nn,An,"primary-dark")),L>s&&(_=oe?"Promise Resolved":5<L-s?"Update Blocked":"Update",Ae=[],Se!=null&&Ae.push(["Component name",Se]),G!=null&&Ae.push(["Method name",G]),s={start:s,end:L,detail:{devtools:{properties:Ae,track:Nn,trackGroup:An,color:"primary-light"}}},w?w.run(performance.measure.bind(performance,_,s)):performance.measure(_,s))),ll=id=-1.1,yA=0,A1=-1.1,Df=Of,Of=-1.1,od=_i()),(o&62914560)!==0&&(x1&62914560)!==0&&(qa(4194304),fv(cR,Wi)),(o&2080374784)!==0&&(x1&2080374784)!==0&&(qa(268435456),fv(uR,Wi)),s=n.timeoutHandle,s!==Xm&&(n.timeoutHandle=Xm,Ij(s)),s=n.cancelPendingCommit,s!==null&&(n.cancelPendingCommit=null,s()),Kl=0,hg(),ho=n,gn=s=Ls(n.current,null),mn=o,oo=za,ws=null,If=!1,Eb=at(n,o),HA=!1,Uo=cd,Vm=Ba=jA=Uf=$f=0,la=Oy=null,B1=!1,(o&8)!==0&&(o|=o&32),w=n.entangledLanes,w!==0)for(n=n.entanglements,w&=o;0<w;)_=31-Ui(w),L=1<<_,o|=n[_],w&=~L;return Wc=o,xp(),n=tR(),1e3<n-eR&&(Ue.recentlyCreatedOwnerStacks=0,eR=n),Yl.discardPendingWarnings(),s}function ls(n,o){Kt=null,Ue.H=xy,Ue.getCurrentStack=null,Zs=!1,Or=null,o===ub||o===R1?(o=Su(),oo=Ry):o===TA?(o=Su(),oo=aL):oo=o===MA?UA:o!==null&&typeof o=="object"&&typeof o.then=="function"?Ly:j1,ws=o;var s=gn;s===null?(Uo=Ny,Qh(n,nr(o,n.current))):s.mode&fn&&Dp(s)}function d0(){var n=vs.current;return n===null?!0:(mn&4194048)===mn?cl===null:(mn&62914560)===mn||(mn&536870912)!==0?n===cl:!1}function mg(){var n=Ue.H;return Ue.H=xy,n===null?xy:n}function f0(){var n=Ue.A;return Ue.A=wj,n}function Yd(n){ti===null&&(ti=n._debugTask==null?null:n._debugTask)}function Xd(){Uo=kf,If||(mn&4194048)!==mn&&vs.current!==null||(Eb=!0),($f&134217727)===0&&(Uf&134217727)===0||ho===null||Ia(ho,mn,Ba,!1)}function qd(n,o,s){var w=Mn;Mn|=zi;var _=mg(),L=f0();if(ho!==n||mn!==o){if(el){var G=n.memoizedUpdaters;0<G.size&&(Zd(n,mn),G.clear()),Et(n,o)}Dy=null,Gs(n,o)}o=!1,G=Uo;e:do try{if(oo!==za&&gn!==null){var q=gn,ne=ws;switch(oo){case UA:hg(),G=H1;break e;case Ry:case Fm:case Pm:case Ly:vs.current===null&&(o=!0);var oe=oo;if(oo=za,ws=null,Kd(n,q,ne,oe),s&&Eb){G=cd;break e}break;default:oe=oo,oo=za,ws=null,Kd(n,q,ne,oe)}}h0(),G=Uo;break}catch(Se){ls(n,Se)}while(!0);return o&&n.shellSuspendCounter++,Cd(),Mn=w,Ue.H=_,Ue.A=L,gn===null&&(ho=null,mn=0,xp()),G}function h0(){for(;gn!==null;)pg(gn)}function jl(n,o){var s=Mn;Mn|=zi;var w=mg(),_=f0();if(ho!==n||mn!==o){if(el){var L=n.memoizedUpdaters;0<L.size&&(Zd(n,mn),L.clear()),Et(n,o)}Dy=null,P1=Ai()+cL,Gs(n,o)}else Eb=at(n,o);e:do try{if(oo!==za&&gn!==null)t:switch(o=gn,L=ws,oo){case j1:oo=za,ws=null,Kd(n,o,L,j1);break;case Fm:case Pm:if(Av(L)){oo=za,ws=null,m0(o);break}o=function(){oo!==Fm&&oo!==Pm||ho!==n||(oo=z1),Cr(n)},L.then(o,o);break e;case Ry:oo=z1;break e;case aL:oo=$A;break e;case z1:Av(L)?(oo=za,ws=null,m0(o)):(oo=za,ws=null,Kd(n,o,L,z1));break;case $A:var G=null;switch(gn.tag){case 26:G=gn.memoizedState;case 5:case 27:var q=gn;if(G?En(G):q.stateNode.complete){oo=za,ws=null;var ne=q.sibling;if(ne!==null)gn=ne;else{var oe=q.return;oe!==null?(gn=oe,im(oe)):gn=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}oo=za,ws=null,Kd(n,o,L,$A);break;case Ly:oo=za,ws=null,Kd(n,o,L,Ly);break;case UA:hg(),Uo=H1;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Ue.actQueue!==null?h0():Jo();break}catch(Se){ls(n,Se)}while(!0);return Cd(),Ue.H=w,Ue.A=_,Mn=s,gn!==null?cd:(ho=null,mn=0,xp(),Uo)}function Jo(){for(;gn!==null&&!Pg();)pg(gn)}function pg(n){var o=n.alternate;(n.mode&fn)!==Vt?(Nl(n),o=ye(n,qh,o,n,Wc),Dp(n)):o=ye(n,qh,o,n,Wc),n.memoizedProps=n.pendingProps,o===null?im(n):gn=o}function m0(n){var o=ye(n,Ti,n);n.memoizedProps=n.pendingProps,o===null?im(n):gn=o}function Ti(n){var o=n.alternate,s=(n.mode&fn)!==Vt;switch(s&&Nl(n),n.tag){case 15:case 0:o=Pv(o,n,n.pendingProps,n.type,void 0,mn);break;case 11:o=Pv(o,n,n.pendingProps,n.type.render,n.ref,mn);break;case 5:yc(n);default:Xv(o,n),n=gn=gv(n,Wc),o=qh(o,n,Wc)}return s&&Dp(n),o}function Kd(n,o,s,w){Cd(),yc(o),db=null,wy=0;var _=o.return;try{if($v(n,_,o,s,mn)){Uo=Ny,Qh(n,nr(s,n.current)),gn=null;return}}catch(L){if(_!==null)throw gn=_,L;Uo=Ny,Qh(n,nr(s,n.current)),gn=null;return}o.flags&32768?(Tn||w===j1?n=!0:Eb||(mn&536870912)!==0?n=!1:(If=n=!0,(w===Fm||w===Pm||w===Ry||w===Ly)&&(w=vs.current,w!==null&&w.tag===13&&(w.flags|=16384))),p0(o,n)):im(o)}function im(n){var o=n;do{if((o.flags&32768)!==0){p0(o,If);return}var s=o.alternate;if(n=o.return,Nl(o),s=ye(o,Yv,s,o,Wc),(o.mode&fn)!==Vt&&Nh(o),s!==null){gn=s;return}if(o=o.sibling,o!==null){gn=o;return}gn=o=n}while(o!==null);Uo===cd&&(Uo=rL)}function p0(n,o){do{var s=gw(n.alternate,n);if(s!==null){s.flags&=32767,gn=s;return}if((n.mode&fn)!==Vt){Nh(n),s=n.actualDuration;for(var w=n.child;w!==null;)s+=w.actualDuration,w=w.sibling;n.actualDuration=s}if(s=n.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!o&&(n=n.sibling,n!==null)){gn=n;return}gn=n=s}while(n!==null);Uo=H1,gn=null}function co(n,o,s,w,_,L,G,q,ne,oe,Se,Ae,he,Ie){n.cancelPendingCommit=null;do rm();while(Oi!==jf);if(Yl.flushLegacyContextWarning(),Yl.flushPendingUnsafeLifecycleWarnings(),(Mn&(zi|Es))!==Xi)throw Error("Should not already be working.");if(qa(s),oe===Bm?dv(he,Ie,s,ti):w!==null?zT(he,Ie,s,w,o!==null&&o.alternate!==null&&o.alternate.memoizedState.isDehydrated&&(o.flags&256)!==0,ti):jT(he,Ie,s,ti),o!==null){if(s===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),o===n.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(L=o.lanes|o.childLanes,L|=fA,vt(n,s,L,G,q,ne),n===ho&&(gn=ho=null,mn=0),wb=o,zf=n,Kl=s,FA=L,VA=_,pL=w,PA=Ie,gL=Ae,Zl=V1,bL=null,o.actualDuration!==0||(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,Jd(Yu,function(){return Hy=window.event,Zl===V1&&(Zl=BA),am(),null})):(n.callbackNode=null,n.callbackPriority=0),nd=null,Rf=_i(),Ae!==null&&BT(Ie,Rf,Ae,ti),w=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||w){w=Ue.T,Ue.T=null,_=zn.p,zn.p=ci,G=Mn,Mn|=Es;try{VT(n,o,s)}finally{Mn=G,zn.p=_,Ue.T=w}}Oi=dL,dr(),Qs(),g0()}}function dr(){if(Oi===dL){Oi=jf;var n=zf,o=wb,s=Kl,w=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||w){w=Ue.T,Ue.T=null;var _=zn.p;zn.p=ci;var L=Mn;Mn|=Es;try{vb=s,yb=n,Eu(),em(o,n),yb=vb=null,s=tx;var G=Tr(n.containerInfo),q=s.focusedElem,ne=s.selectionRange;if(G!==q&&q&&q.ownerDocument&&Wa(q.ownerDocument.documentElement,q)){if(ne!==null&&Ya(q)){var oe=ne.start,Se=ne.end;if(Se===void 0&&(Se=oe),"selectionStart"in q)q.selectionStart=oe,q.selectionEnd=Math.min(Se,q.value.length);else{var Ae=q.ownerDocument||document,he=Ae&&Ae.defaultView||window;if(he.getSelection){var Ie=he.getSelection(),dt=q.textContent.length,pt=Math.min(ne.start,dt),go=ne.end===void 0?pt:Math.min(ne.end,dt);!Ie.extend&&pt>go&&(G=go,go=pt,pt=G);var xn=tr(q,pt),fe=tr(q,go);if(xn&&fe&&(Ie.rangeCount!==1||Ie.anchorNode!==xn.node||Ie.anchorOffset!==xn.offset||Ie.focusNode!==fe.node||Ie.focusOffset!==fe.offset)){var ge=Ae.createRange();ge.setStart(xn.node,xn.offset),Ie.removeAllRanges(),pt>go?(Ie.addRange(ge),Ie.extend(fe.node,fe.offset)):(ge.setEnd(fe.node,fe.offset),Ie.addRange(ge))}}}}for(Ae=[],Ie=q;Ie=Ie.parentNode;)Ie.nodeType===1&&Ae.push({element:Ie,left:Ie.scrollLeft,top:Ie.scrollTop});for(typeof q.focus=="function"&&q.focus(),q=0;q<Ae.length;q++){var we=Ae[q];we.element.scrollLeft=we.left,we.element.scrollTop=we.top}}aS=!!ex,tx=ex=null}finally{Mn=L,zn.p=_,Ue.T=w}}n.current=o,Oi=fL}}function Qs(){if(Oi===fL){Oi=jf;var n=bL;if(n!==null){Rf=_i();var o=td,s=Rf;!To||s<=o||console.timeStamp(n,o,s,Nn,An,"secondary-light")}n=zf,o=wb,s=Kl;var w=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||w){w=Ue.T,Ue.T=null;var _=zn.p;zn.p=ci;var L=Mn;Mn|=Es;try{vb=s,yb=n,Eu(),lg(n,o.alternate,o),yb=vb=null}finally{Mn=L,zn.p=_,Ue.T=w}}n=PA,o=gL,td=_i(),n=o===null?n:Rf,o=td,s=Zl===zA,w=ti,nd!==null?tw(n,o,nd,!1,w):!To||o<=n||(w?w.run(console.timeStamp.bind(console,s?"Commit Interrupted View Transition":"Commit",n,o,Nn,An,s?"error":"secondary-dark")):console.timeStamp(s?"Commit Interrupted View Transition":"Commit",n,o,Nn,An,s?"error":"secondary-dark")),Oi=hL}}function g0(){if(Oi===mL||Oi===hL){if(Oi===mL){var n=td;td=_i();var o=td,s=Zl===zA;!To||o<=n||console.timeStamp(s?"Interrupted View Transition":"Starting Animation",n,o,Nn,An,s?" error":"secondary-light"),Zl!==zA&&(Zl=uL)}Oi=jf,Vg(),n=zf;var w=wb;o=Kl,s=pL;var _=w.actualDuration!==0||(w.subtreeFlags&10256)!==0||(w.flags&10256)!==0;_?Oi=G1:(Oi=jf,wb=zf=null,b0(n,n.pendingLanes),Gm=0,ky=null);var L=n.pendingLanes;if(L===0&&(Hf=null),_||vg(n),L=xe(o),w=w.stateNode,li&&typeof li.onCommitFiberRoot=="function")try{var G=(w.current.flags&128)===128;switch(L){case ci:var q=W0;break;case Hi:q=Gg;break;case Qi:q=Yu;break;case Fc:q=Qg;break;default:q=Yu}li.onCommitFiberRoot(Xu,w,q,G)}catch(Ae){Js||(Js=!0,console.error("React instrumentation encountered an error: %o",Ae))}if(el&&n.memoizedUpdaters.clear(),c0(),s!==null){G=Ue.T,q=zn.p,zn.p=ci,Ue.T=null;try{var ne=n.onRecoverableError;for(w=0;w<s.length;w++){var oe=s[w],Se=_w(oe.stack);ye(oe.source,ne,oe.value,Se)}}finally{Ue.T=G,zn.p=q}}(Kl&3)!==0&&rm(),Cr(n),L=n.pendingLanes,(o&261930)!==0&&(L&42)!==0?(C1=!0,n===GA?My++:(My=0,GA=n)):My=0,_||kc(o,td),Ws(0)}}function _w(n){return n={componentStack:n},Object.defineProperty(n,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),n}function b0(n,o){(n.pooledCacheLanes&=o)===0&&(o=n.pooledCache,o!=null&&(n.pooledCache=null,Ch(o)))}function rm(){return dr(),Qs(),g0(),am()}function am(){if(Oi!==G1)return!1;var n=zf,o=FA;FA=0;var s=xe(Kl),w=Qi>s?Qi:s;s=Ue.T;var _=zn.p;try{zn.p=w,Ue.T=null;var L=VA;VA=null,w=zf;var G=Kl;if(Oi=jf,wb=zf=null,Kl=0,(Mn&(zi|Es))!==Xi)throw Error("Cannot flush passive effects while already rendering.");qa(G),QA=!0,Q1=!1;var q=0;if(nd=null,q=Ai(),Zl===uL)fv(td,q,mj);else{var ne=td,oe=q,Se=Zl===BA;!To||oe<=ne||(ti?ti.run(console.timeStamp.bind(console,Se?"Waiting for Paint":"Waiting",ne,oe,Nn,An,"secondary-light")):console.timeStamp(Se?"Waiting for Paint":"Waiting",ne,oe,Nn,An,"secondary-light"))}ne=Mn,Mn|=Es;var Ae=w.current;Eu(),dg(Ae);var he=w.current;Ae=PA,Eu(),a0(w,he,G,L,Ae),vg(w),Mn=ne;var Ie=Ai();if(he=q,Ae=ti,nd!==null?tw(he,Ie,nd,!0,Ae):!To||Ie<=he||(Ae?Ae.run(console.timeStamp.bind(console,"Remaining Effects",he,Ie,Nn,An,"secondary-dark")):console.timeStamp("Remaining Effects",he,Ie,Nn,An,"secondary-dark")),kc(G,Ie),Ws(0,!1),Q1?w===ky?Gm++:(Gm=0,ky=w):Gm=0,Q1=QA=!1,li&&typeof li.onPostCommitFiberRoot=="function")try{li.onPostCommitFiberRoot(Xu,w)}catch(pt){Js||(Js=!0,console.error("React instrumentation encountered an error: %o",pt))}var dt=w.current.stateNode;return dt.effectDuration=0,dt.passiveEffectDuration=0,!0}finally{zn.p=_,Ue.T=s,b0(n,o)}}function fr(n,o,s){o=nr(s,o),sw(o),o=Yp(n.stateNode,o,2),n=ks(n,o,2),n!==null&&(rt(n,2),Cr(n))}function ln(n,o,s){if(Sb=!1,n.tag===3)fr(n,n,s);else{for(;o!==null;){if(o.tag===3){fr(o,n,s);return}if(o.tag===1){var w=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof w.componentDidCatch=="function"&&(Hf===null||!Hf.has(w))){n=nr(s,n),sw(n),s=Xp(2),w=ks(o,s,2),w!==null&&(qp(s,w,o,n),rt(w,2),Cr(w));return}}o=o.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
225
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+w,ye(o,function(q,ne){console.error("%s must not return anything besides a function, which is used for clean-up.%s",q,ne)},L,G)}s=s.next}while(s!==_)}}catch(q){ln(o,o.return,q)}}function Rc(n,o,s){try{var w=o.updateQueue,_=w!==null?w.lastEffect:null;if(_!==null){var L=_.next;w=L;do{if((w.tag&n)===n){var G=w.inst,q=G.destroy;q!==void 0&&(G.destroy=void 0,(n&aa)!==D1&&(Sb=!0),_=o,ye(_,bj,_,s,q),(n&aa)!==D1&&(Sb=!1))}w=w.next}while(w!==L)}}catch(ne){ln(o,o.return,ne)}}function Kh(n,o){Ps(n)?(Mo(),Hl(o,n),ir()):Hl(o,n)}function ig(n,o,s){Ps(n)?(Mo(),Rc(s,n,o),ir()):Rc(s,n,o)}function qv(n){var o=n.updateQueue;if(o!==null){var s=n.stateNode;n.type.defaultProps||"ref"in n.memoizedProps||bb||(s.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",j(n)||"instance"),s.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",j(n)||"instance"));try{ye(n,Md,o,s)}catch(w){ln(n,n.return,w)}}}function Zh(n,o,s){return n.getSnapshotBeforeUpdate(o,s)}function vw(n,o){var s=o.memoizedProps,w=o.memoizedState;o=n.stateNode,n.type.defaultProps||"ref"in n.memoizedProps||bb||(o.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",j(n)||"instance"),o.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",j(n)||"instance"));try{var _=Bs(n.type,s),L=ye(n,Zh,o,_,w);s=oL,L!==void 0||s.has(n.type)||(s.add(n.type),ye(n,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",j(n))})),o.__reactInternalSnapshotBeforeUpdate=L}catch(G){ln(n,n.return,G)}}function rg(n,o,s){s.props=Bs(n.type,n.memoizedProps),s.state=n.memoizedState,Ps(n)?(Mo(),ye(n,SR,n,o,s),ir()):ye(n,SR,n,o,s)}function yw(n){var o=n.ref;if(o!==null){switch(n.tag){case 26:case 27:case 5:var s=n.stateNode;break;case 30:s=n.stateNode;break;default:s=n.stateNode}if(typeof o=="function")if(Ps(n))try{Mo(),n.refCleanup=o(s)}finally{ir()}else n.refCleanup=o(s);else typeof o=="string"?console.error("String refs are no longer supported."):o.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",j(n)),o.current=s}}function $u(n,o){try{ye(n,yw,n)}catch(s){ln(n,o,s)}}function ka(n,o){var s=n.ref,w=n.refCleanup;if(s!==null)if(typeof w=="function")try{if(Ps(n))try{Mo(),ye(n,w)}finally{ir(n)}else ye(n,w)}catch(_){ln(n,o,_)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof s=="function")try{if(Ps(n))try{Mo(),ye(n,s,null)}finally{ir(n)}else ye(n,s,null)}catch(_){ln(n,o,_)}else s.current=null}function Kv(n,o,s,w){var _=n.memoizedProps,L=_.id,G=_.onCommit;_=_.onRender,o=o===null?"mount":"update",_1&&(o="nested-update"),typeof _=="function"&&_(L,o,n.actualDuration,n.treeBaseDuration,n.actualStartTime,s),typeof G=="function"&&G(L,o,w,s)}function Ew(n,o,s,w){var _=n.memoizedProps;n=_.id,_=_.onPostCommit,o=o===null?"mount":"update",_1&&(o="nested-update"),typeof _=="function"&&_(n,o,w,s)}function Lc(n){var o=n.type,s=n.memoizedProps,w=n.stateNode;try{ye(n,Mw,w,o,s,n)}catch(_){ln(n,n.return,_)}}function ag(n,o,s){try{ye(n,_g,n.stateNode,n.type,s,o,n)}catch(w){ln(n,n.return,w)}}function Zv(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Uc(n.type)||n.tag===4}function sg(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Zv(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Uc(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Qd(n,o,s){var w=n.tag;if(w===5||w===6)n=n.stateNode,o?(Iw(s),(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(n,o)):(Iw(s),o=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,o.appendChild(n),s=s._reactRootContainer,s!=null||o.onclick!==null||(o.onclick=Sr));else if(w!==4&&(w===27&&Uc(n.type)&&(s=n.stateNode,o=null),n=n.child,n!==null))for(Qd(n,o,s),n=n.sibling;n!==null;)Qd(n,o,s),n=n.sibling}function Jh(n,o,s){var w=n.tag;if(w===5||w===6)n=n.stateNode,o?s.insertBefore(n,o):s.appendChild(n);else if(w!==4&&(w===27&&Uc(n.type)&&(s=n.stateNode),n=n.child,n!==null))for(Jh(n,o,s),n=n.sibling;n!==null;)Jh(n,o,s),n=n.sibling}function Jv(n){for(var o,s=n.return;s!==null;){if(Zv(s)){o=s;break}s=s.return}if(o==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(o.tag){case 27:o=o.stateNode,s=sg(n),Jh(n,s,o);break;case 5:s=o.stateNode,o.flags&32&&(Cg(s),o.flags&=-33),o=sg(n),Jh(n,o,s);break;case 3:case 4:o=o.stateNode.containerInfo,s=sg(n),Qd(n,s,o);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function e0(n){var o=n.stateNode,s=n.memoizedProps;try{ye(n,Ks,n.type,s,o,n)}catch(w){ln(n,n.return,w)}}function t0(n,o){return o.tag===31?(o=o.memoizedState,n.memoizedState!==null&&o===null):o.tag===13?(n=n.memoizedState,o=o.memoizedState,n!==null&&n.dehydrated!==null&&(o===null||o.dehydrated===null)):o.tag===3?n.memoizedState.isDehydrated&&(o.flags&256)===0:!1}function VT(n,o){if(n=n.containerInfo,ex=aS,n=Tr(n),Ya(n)){if("selectionStart"in n)var s={start:n.selectionStart,end:n.selectionEnd};else e:{s=(s=n.ownerDocument)&&s.defaultView||window;var w=s.getSelection&&s.getSelection();if(w&&w.rangeCount!==0){s=w.anchorNode;var _=w.anchorOffset,L=w.focusNode;w=w.focusOffset;try{s.nodeType,L.nodeType}catch{s=null;break e}var G=0,q=-1,ne=-1,oe=0,Se=0,Ae=n,he=null;t:for(;;){for(var Ie;Ae!==s||_!==0&&Ae.nodeType!==3||(q=G+_),Ae!==L||w!==0&&Ae.nodeType!==3||(ne=G+w),Ae.nodeType===3&&(G+=Ae.nodeValue.length),(Ie=Ae.firstChild)!==null;)he=Ae,Ae=Ie;for(;;){if(Ae===n)break t;if(he===s&&++oe===_&&(q=G),he===L&&++Se===w&&(ne=G),(Ie=Ae.nextSibling)!==null)break;Ae=he,he=Ae.parentNode}Ae=Ie}s=q===-1||ne===-1?null:{start:q,end:ne}}else s=null}s=s||{start:0,end:0}}else s=null;for(tx={focusedElem:n,selectionRange:s},aS=!1,Yi=o;Yi!==null;)if(o=Yi,n=o.child,(o.subtreeFlags&1028)!==0&&n!==null)n.return=o,Yi=n;else for(;Yi!==null;){switch(n=o=Yi,s=n.alternate,_=n.flags,n.tag){case 0:if((_&4)!==0&&(n=n.updateQueue,n=n!==null?n.events:null,n!==null))for(s=0;s<n.length;s++)_=n[s],_.ref.impl=_.nextImpl;break;case 11:case 15:break;case 1:(_&1024)!==0&&s!==null&&vw(n,s);break;case 3:if((_&1024)!==0){if(n=n.stateNode.containerInfo,s=n.nodeType,s===9)af(n);else if(s===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":af(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((_&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(n=o.sibling,n!==null){n.return=o.return,Yi=n;break}Yi=o.return}}function lg(n,o,s){var w=yo(),_=La(),L=Pr(),G=Oa(),q=s.flags;switch(s.tag){case 0:case 11:case 15:qr(n,s),q&4&&bw(s,ys|ul);break;case 1:if(qr(n,s),q&4)if(n=s.stateNode,o===null)s.type.defaultProps||"ref"in s.memoizedProps||bb||(n.props!==s.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",j(s)||"instance"),n.state!==s.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",j(s)||"instance")),Ps(s)?(Mo(),ye(s,SA,s,n),ir()):ye(s,SA,s,n);else{var ne=Bs(s.type,o.memoizedProps);o=o.memoizedState,s.type.defaultProps||"ref"in s.memoizedProps||bb||(n.props!==s.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",j(s)||"instance"),n.state!==s.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",j(s)||"instance")),Ps(s)?(Mo(),ye(s,yR,s,n,ne,o,n.__reactInternalSnapshotBeforeUpdate),ir()):ye(s,yR,s,n,ne,o,n.__reactInternalSnapshotBeforeUpdate)}q&64&&qv(s),q&512&&$u(s,s.return);break;case 3:if(o=Ds(),qr(n,s),q&64&&(q=s.updateQueue,q!==null)){if(ne=null,s.child!==null)switch(s.child.tag){case 27:case 5:ne=s.child.stateNode;break;case 1:ne=s.child.stateNode}try{ye(s,Md,q,ne)}catch(Se){ln(s,s.return,Se)}}n.effectDuration+=Rd(o);break;case 27:o===null&&q&4&&e0(s);case 26:case 5:if(qr(n,s),o===null){if(q&4)Lc(s);else if(q&64){n=s.type,o=s.memoizedProps,ne=s.stateNode;try{ye(s,kw,ne,n,o,s)}catch(Se){ln(s,s.return,Se)}}}q&512&&$u(s,s.return);break;case 12:if(q&4){q=Ds(),qr(n,s),n=s.stateNode,n.effectDuration+=or(q);try{ye(s,Kv,s,o,Rf,n.effectDuration)}catch(Se){ln(s,s.return,Se)}}else qr(n,s);break;case 31:qr(n,s),q&4&&o0(n,s);break;case 13:qr(n,s),q&4&&i0(n,s),q&64&&(n=s.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(q=zl.bind(null,s),Qw(n,q))));break;case 22:if(q=s.memoizedState!==null||ld,!q){o=o!==null&&o.memoizedState!==null||Ri,ne=ld;var oe=Ri;ld=q,(Ri=o)&&!oe?(ss(n,s,(s.subtreeFlags&8772)!==0),(s.mode&fn)!==Vt&&0<=Ut&&0<=Bt&&.05<Bt-Ut&&Tp(s,Ut,Bt)):qr(n,s),ld=ne,Ri=oe}break;case 30:break;default:qr(n,s)}(s.mode&fn)!==Vt&&0<=Ut&&0<=Bt&&((Yo||.05<$o)&&Ka(s,Ut,Bt,$o,Do),s.alternate===null&&s.return!==null&&s.return.alternate!==null&&.05<Bt-Ut&&(t0(s.return.alternate,s.return)||Ca(s,Ut,Bt,"Mount"))),vi(w),Fr(_),Do=L,Yo=G}function Qo(n){var o=n.alternate;o!==null&&(n.alternate=null,Qo(o)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(o=n.stateNode,o!==null&&Dt(o)),n.stateNode=null,n._debugOwner=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function po(n,o,s){for(s=s.child;s!==null;)n0(n,o,s),s=s.sibling}function n0(n,o,s){if(li&&typeof li.onCommitFiberUnmount=="function")try{li.onCommitFiberUnmount(Xu,s)}catch(oe){Js||(Js=!0,console.error("React instrumentation encountered an error: %o",oe))}var w=yo(),_=La(),L=Pr(),G=Oa();switch(s.tag){case 26:Ri||ka(s,o),po(n,o,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(n=s.stateNode,n.parentNode.removeChild(n));break;case 27:Ri||ka(s,o);var q=Li,ne=ja;Uc(s.type)&&(Li=s.stateNode,ja=!1),po(n,o,s),ye(s,Vl,s.stateNode),Li=q,ja=ne;break;case 5:Ri||ka(s,o);case 6:if(q=Li,ne=ja,Li=null,po(n,o,s),Li=q,ja=ne,Li!==null)if(ja)try{ye(s,Uw,Li,s.stateNode)}catch(oe){ln(s,o,oe)}else try{ye(s,$w,Li,s.stateNode)}catch(oe){ln(s,o,oe)}break;case 18:Li!==null&&(ja?(n=Li,Bu(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,s.stateNode),Gu(n)):Bu(Li,s.stateNode));break;case 4:q=Li,ne=ja,Li=s.stateNode.containerInfo,ja=!0,po(n,o,s),Li=q,ja=ne;break;case 0:case 11:case 14:case 15:Rc(aa,s,o),Ri||og(s,o,ys),po(n,o,s);break;case 1:Ri||(ka(s,o),q=s.stateNode,typeof q.componentWillUnmount=="function"&&rg(s,o,q)),po(n,o,s);break;case 21:po(n,o,s);break;case 22:Ri=(q=Ri)||s.memoizedState!==null,po(n,o,s),Ri=q;break;default:po(n,o,s)}(s.mode&fn)!==Vt&&0<=Ut&&0<=Bt&&(Yo||.05<$o)&&Ka(s,Ut,Bt,$o,Do),vi(w),Fr(_),Do=L,Yo=G}function o0(n,o){if(o.memoizedState===null&&(n=o.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{ye(o,Ng,n)}catch(s){ln(o,o.return,s)}}}function i0(n,o){if(o.memoizedState===null&&(n=o.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{ye(o,x0,n)}catch(s){ln(o,o.return,s)}}function ww(n){switch(n.tag){case 31:case 13:case 19:var o=n.stateNode;return o===null&&(o=n.stateNode=new iL),o;case 22:return n=n.stateNode,o=n._retryCache,o===null&&(o=n._retryCache=new iL),o;default:throw Error("Unexpected Suspense handler tag ("+n.tag+"). This is a bug in React.")}}function Oc(n,o){var s=ww(n);o.forEach(function(w){if(!s.has(w)){if(s.add(w),el)if(vb!==null&&yb!==null)Zd(yb,vb);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var _=ju.bind(null,n,w);w.then(_,_)}})}function cr(n,o){var s=o.deletions;if(s!==null)for(var w=0;w<s.length;w++){var _=n,L=o,G=s[w],q=yo(),ne=L;e:for(;ne!==null;){switch(ne.tag){case 27:if(Uc(ne.type)){Li=ne.stateNode,ja=!1;break e}break;case 5:Li=ne.stateNode,ja=!1;break e;case 3:case 4:Li=ne.stateNode.containerInfo,ja=!0;break e}ne=ne.return}if(Li===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");n0(_,L,G),Li=null,ja=!1,(G.mode&fn)!==Vt&&0<=Ut&&0<=Bt&&.05<Bt-Ut&&Ca(G,Ut,Bt,"Unmount"),vi(q),_=G,L=_.alternate,L!==null&&(L.return=null),_.return=null}if(o.subtreeFlags&13886)for(o=o.child;o!==null;)em(o,n),o=o.sibling}function em(n,o){var s=yo(),w=La(),_=Pr(),L=Oa(),G=n.alternate,q=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:cr(o,n),ur(n),q&4&&(Rc(aa|ul,n,n.return),Hl(aa|ul,n),og(n,n.return,ys|ul));break;case 1:if(cr(o,n),ur(n),q&512&&(Ri||G===null||ka(G,G.return)),q&64&&ld&&(q=n.updateQueue,q!==null&&(G=q.callbacks,G!==null))){var ne=q.shared.hiddenCallbacks;q.shared.hiddenCallbacks=ne===null?G:ne.concat(G)}break;case 26:if(ne=ql,cr(o,n),ur(n),q&512&&(Ri||G===null||ka(G,G.return)),q&4){var oe=G!==null?G.memoizedState:null;if(q=n.memoizedState,G===null)if(q===null)if(n.stateNode===null){e:{q=n.type,G=n.memoizedProps,ne=ne.ownerDocument||ne;t:switch(q){case"title":oe=ne.getElementsByTagName("title")[0],(!oe||oe[wf]||oe[So]||oe.namespaceURI===cn||oe.hasAttribute("itemprop"))&&(oe=ne.createElement(q),ne.head.insertBefore(oe,ne.querySelector("head > title"))),wo(oe,q,G),oe[So]=n,Ce(oe),q=oe;break e;case"link":var Se=cf("link","href",ne).get(q+(G.href||""));if(Se){for(var Ae=0;Ae<Se.length;Ae++)if(oe=Se[Ae],oe.getAttribute("href")===(G.href==null||G.href===""?null:G.href)&&oe.getAttribute("rel")===(G.rel==null?null:G.rel)&&oe.getAttribute("title")===(G.title==null?null:G.title)&&oe.getAttribute("crossorigin")===(G.crossOrigin==null?null:G.crossOrigin)){Se.splice(Ae,1);break t}}oe=ne.createElement(q),wo(oe,q,G),ne.head.appendChild(oe);break;case"meta":if(Se=cf("meta","content",ne).get(q+(G.content||""))){for(Ae=0;Ae<Se.length;Ae++)if(oe=Se[Ae],et(G.content,"content"),oe.getAttribute("content")===(G.content==null?null:""+G.content)&&oe.getAttribute("name")===(G.name==null?null:G.name)&&oe.getAttribute("property")===(G.property==null?null:G.property)&&oe.getAttribute("http-equiv")===(G.httpEquiv==null?null:G.httpEquiv)&&oe.getAttribute("charset")===(G.charSet==null?null:G.charSet)){Se.splice(Ae,1);break t}}oe=ne.createElement(q),wo(oe,q,G),ne.head.appendChild(oe);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+q+'". This is a bug in React.')}oe[So]=n,Ce(oe),q=oe}n.stateNode=q}else qw(ne,n.type,n.stateNode);else n.stateNode=Og(ne,q,n.memoizedProps);else oe!==q?(oe===null?G.stateNode!==null&&(G=G.stateNode,G.parentNode.removeChild(G)):oe.count--,q===null?qw(ne,n.type,n.stateNode):Og(ne,q,n.memoizedProps)):q===null&&n.stateNode!==null&&ag(n,n.memoizedProps,G.memoizedProps)}break;case 27:cr(o,n),ur(n),q&512&&(Ri||G===null||ka(G,G.return)),G!==null&&q&4&&ag(n,n.memoizedProps,G.memoizedProps);break;case 5:if(cr(o,n),ur(n),q&512&&(Ri||G===null||ka(G,G.return)),n.flags&32){ne=n.stateNode;try{ye(n,Cg,ne)}catch(pt){ln(n,n.return,pt)}}q&4&&n.stateNode!=null&&(ne=n.memoizedProps,ag(n,ne,G!==null?G.memoizedProps:ne)),q&1024&&(IA=!0,n.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(cr(o,n),ur(n),q&4){if(n.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");q=n.memoizedProps,G=G!==null?G.memoizedProps:q,ne=n.stateNode;try{ye(n,GT,ne,G,q)}catch(pt){ln(n,n.return,pt)}}break;case 3:if(ne=Ds(),oS=null,oe=ql,ql=Rg(o.containerInfo),cr(o,n),ql=oe,ur(n),q&4&&G!==null&&G.memoizedState.isDehydrated)try{ye(n,A0,o.containerInfo)}catch(pt){ln(n,n.return,pt)}IA&&(IA=!1,Sw(n)),o.effectDuration+=Rd(ne);break;case 4:q=ql,ql=Rg(n.stateNode.containerInfo),cr(o,n),ur(n),ql=q;break;case 12:q=Ds(),cr(o,n),ur(n),n.stateNode.effectDuration+=or(q);break;case 31:cr(o,n),ur(n),q&4&&(q=n.updateQueue,q!==null&&(n.updateQueue=null,Oc(n,q)));break;case 13:cr(o,n),ur(n),n.child.flags&8192&&n.memoizedState!==null!=(G!==null&&G.memoizedState!==null)&&(F1=Ai()),q&4&&(q=n.updateQueue,q!==null&&(n.updateQueue=null,Oc(n,q)));break;case 22:ne=n.memoizedState!==null;var he=G!==null&&G.memoizedState!==null,Ie=ld,dt=Ri;if(ld=Ie||ne,Ri=dt||he,cr(o,n),Ri=dt,ld=Ie,he&&!ne&&!Ie&&!dt&&(n.mode&fn)!==Vt&&0<=Ut&&0<=Bt&&.05<Bt-Ut&&Tp(n,Ut,Bt),ur(n),q&8192)e:for(o=n.stateNode,o._visibility=ne?o._visibility&~ay:o._visibility|ay,!ne||G===null||he||ld||Ri||(Dc(n),(n.mode&fn)!==Vt&&0<=Ut&&0<=Bt&&.05<Bt-Ut&&Ca(n,Ut,Bt,"Disconnect")),G=null,o=n;;){if(o.tag===5||o.tag===26){if(G===null){he=G=o;try{oe=he.stateNode,ne?ye(he,jw,oe):ye(he,Fw,he.stateNode,he.memoizedProps)}catch(pt){ln(he,he.return,pt)}}}else if(o.tag===6){if(G===null){he=o;try{Se=he.stateNode,ne?ye(he,zw,Se):ye(he,Pw,Se,he.memoizedProps)}catch(pt){ln(he,he.return,pt)}}}else if(o.tag===18){if(G===null){he=o;try{Ae=he.stateNode,ne?ye(he,Hw,Ae):ye(he,Bw,he.stateNode)}catch(pt){ln(he,he.return,pt)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===n)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===n)break e;for(;o.sibling===null;){if(o.return===null||o.return===n)break e;G===o&&(G=null),o=o.return}G===o&&(G=null),o.sibling.return=o.return,o=o.sibling}q&4&&(q=n.updateQueue,q!==null&&(G=q.retryQueue,G!==null&&(q.retryQueue=null,Oc(n,G))));break;case 19:cr(o,n),ur(n),q&4&&(q=n.updateQueue,q!==null&&(n.updateQueue=null,Oc(n,q)));break;case 30:break;case 21:break;default:cr(o,n),ur(n)}(n.mode&fn)!==Vt&&0<=Ut&&0<=Bt&&((Yo||.05<$o)&&Ka(n,Ut,Bt,$o,Do),n.alternate===null&&n.return!==null&&n.return.alternate!==null&&.05<Bt-Ut&&(t0(n.return.alternate,n.return)||Ca(n,Ut,Bt,"Mount"))),vi(s),Fr(w),Do=_,Yo=L}function ur(n){var o=n.flags;if(o&2){try{ye(n,Jv,n)}catch(s){ln(n,n.return,s)}n.flags&=-3}o&4096&&(n.flags&=-4097)}function Sw(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var o=n;Sw(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),n=n.sibling}}function qr(n,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)lg(n,o.alternate,o),o=o.sibling}function cg(n){var o=yo(),s=La(),w=Pr(),_=Oa();switch(n.tag){case 0:case 11:case 14:case 15:og(n,n.return,ys),Dc(n);break;case 1:ka(n,n.return);var L=n.stateNode;typeof L.componentWillUnmount=="function"&&rg(n,n.return,L),Dc(n);break;case 27:ye(n,Vl,n.stateNode);case 26:case 5:ka(n,n.return),Dc(n);break;case 22:n.memoizedState===null&&Dc(n);break;case 30:Dc(n);break;default:Dc(n)}(n.mode&fn)!==Vt&&0<=Ut&&0<=Bt&&(Yo||.05<$o)&&Ka(n,Ut,Bt,$o,Do),vi(o),Fr(s),Do=w,Yo=_}function Dc(n){for(n=n.child;n!==null;)cg(n),n=n.sibling}function r0(n,o,s,w){var _=yo(),L=La(),G=Pr(),q=Oa(),ne=s.flags;switch(s.tag){case 0:case 11:case 15:ss(n,s,w),bw(s,ys);break;case 1:if(ss(n,s,w),o=s.stateNode,typeof o.componentDidMount=="function"&&ye(s,SA,s,o),o=s.updateQueue,o!==null){n=s.stateNode;try{ye(s,_v,o,n)}catch(oe){ln(s,s.return,oe)}}w&&ne&64&&qv(s),$u(s,s.return);break;case 27:e0(s);case 26:case 5:ss(n,s,w),w&&o===null&&ne&4&&Lc(s),$u(s,s.return);break;case 12:if(w&&ne&4){ne=Ds(),ss(n,s,w),w=s.stateNode,w.effectDuration+=or(ne);try{ye(s,Kv,s,o,Rf,w.effectDuration)}catch(oe){ln(s,s.return,oe)}}else ss(n,s,w);break;case 31:ss(n,s,w),w&&ne&4&&o0(n,s);break;case 13:ss(n,s,w),w&&ne&4&&i0(n,s);break;case 22:s.memoizedState===null&&ss(n,s,w),$u(s,s.return);break;case 30:break;default:ss(n,s,w)}(s.mode&fn)!==Vt&&0<=Ut&&0<=Bt&&(Yo||.05<$o)&&Ka(s,Ut,Bt,$o,Do),vi(_),Fr(L),Do=G,Yo=q}function ss(n,o,s){for(s=s&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;)r0(n,o.alternate,o,s),o=o.sibling}function tm(n,o){var s=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),n=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(n=o.memoizedState.cachePool.pool),n!==s&&(n!=null&&yu(n),s!=null&&Ch(s))}function nm(n,o){n=null,o.alternate!==null&&(n=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==n&&(yu(o),n!=null&&Ch(n))}function Kr(n,o,s,w,_){if(o.subtreeFlags&10256||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child))for(o=o.child;o!==null;){var L=o.sibling;a0(n,o,s,w,L!==null?L.actualStartTime:_),o=L}}function a0(n,o,s,w,_){var L=yo(),G=La(),q=Pr(),ne=Oa(),oe=xf,Se=o.flags;switch(o.tag){case 0:case 11:case 15:(o.mode&fn)!==Vt&&0<o.actualStartTime&&(o.flags&1)!==0&&Ap(o,o.actualStartTime,_,ji,s),Kr(n,o,s,w,_),Se&2048&&Kh(o,sa|ul);break;case 1:(o.mode&fn)!==Vt&&0<o.actualStartTime&&((o.flags&128)!==0?uv(o,o.actualStartTime,_,[]):(o.flags&1)!==0&&Ap(o,o.actualStartTime,_,ji,s)),Kr(n,o,s,w,_);break;case 3:var Ae=Ds(),he=ji;ji=o.alternate!==null&&o.alternate.memoizedState.isDehydrated&&(o.flags&256)===0,Kr(n,o,s,w,_),ji=he,Se&2048&&(s=null,o.alternate!==null&&(s=o.alternate.memoizedState.cache),w=o.memoizedState.cache,w!==s&&(yu(w),s!=null&&Ch(s))),n.passiveEffectDuration+=Rd(Ae);break;case 12:if(Se&2048){Se=Ds(),Kr(n,o,s,w,_),n=o.stateNode,n.passiveEffectDuration+=or(Se);try{ye(o,Ew,o,o.alternate,Rf,n.passiveEffectDuration)}catch(Ie){ln(o,o.return,Ie)}}else Kr(n,o,s,w,_);break;case 31:Se=ji,Ae=o.alternate!==null?o.alternate.memoizedState:null,he=o.memoizedState,Ae!==null&&he===null?(he=o.deletions,he!==null&&0<he.length&&he[0].tag===18?(ji=!1,Ae=Ae.hydrationErrors,Ae!==null&&uv(o,o.actualStartTime,_,Ae)):ji=!0):ji=!1,Kr(n,o,s,w,_),ji=Se;break;case 13:Se=ji,Ae=o.alternate!==null?o.alternate.memoizedState:null,he=o.memoizedState,Ae===null||Ae.dehydrated===null||he!==null&&he.dehydrated!==null?ji=!1:(he=o.deletions,he!==null&&0<he.length&&he[0].tag===18?(ji=!1,Ae=Ae.hydrationErrors,Ae!==null&&uv(o,o.actualStartTime,_,Ae)):ji=!0),Kr(n,o,s,w,_),ji=Se;break;case 23:break;case 22:he=o.stateNode,Ae=o.alternate,o.memoizedState!==null?he._visibility&Zu?Kr(n,o,s,w,_):Uu(n,o,s,w,_):he._visibility&Zu?Kr(n,o,s,w,_):(he._visibility|=Zu,Mc(n,o,s,w,(o.subtreeFlags&10256)!==0||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child),_),(o.mode&fn)===Vt||ji||(n=o.actualStartTime,0<=n&&.05<_-n&&Tp(o,n,_),0<=Ut&&0<=Bt&&.05<Bt-Ut&&Tp(o,Ut,Bt))),Se&2048&&tm(Ae,o);break;case 24:Kr(n,o,s,w,_),Se&2048&&nm(o.alternate,o);break;default:Kr(n,o,s,w,_)}(o.mode&fn)!==Vt&&((n=!ji&&o.alternate===null&&o.return!==null&&o.return.alternate!==null)&&(s=o.actualStartTime,0<=s&&.05<_-s&&Ca(o,s,_,"Mount")),0<=Ut&&0<=Bt&&((Yo||.05<$o)&&Ka(o,Ut,Bt,$o,Do),n&&.05<Bt-Ut&&Ca(o,Ut,Bt,"Mount"))),vi(L),Fr(G),Do=q,Yo=ne,xf=oe}function Mc(n,o,s,w,_,L){for(_=_&&((o.subtreeFlags&10256)!==0||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child)),o=o.child;o!==null;){var G=o.sibling;om(n,o,s,w,_,G!==null?G.actualStartTime:L),o=G}}function om(n,o,s,w,_,L){var G=yo(),q=La(),ne=Pr(),oe=Oa(),Se=xf;_&&(o.mode&fn)!==Vt&&0<o.actualStartTime&&(o.flags&1)!==0&&Ap(o,o.actualStartTime,L,ji,s);var Ae=o.flags;switch(o.tag){case 0:case 11:case 15:Mc(n,o,s,w,_,L),Kh(o,sa);break;case 23:break;case 22:var he=o.stateNode;o.memoizedState!==null?he._visibility&Zu?Mc(n,o,s,w,_,L):Uu(n,o,s,w,L):(he._visibility|=Zu,Mc(n,o,s,w,_,L)),_&&Ae&2048&&tm(o.alternate,o);break;case 24:Mc(n,o,s,w,_,L),_&&Ae&2048&&nm(o.alternate,o);break;default:Mc(n,o,s,w,_,L)}(o.mode&fn)!==Vt&&0<=Ut&&0<=Bt&&(Yo||.05<$o)&&Ka(o,Ut,Bt,$o,Do),vi(G),Fr(q),Do=ne,Yo=oe,xf=Se}function Uu(n,o,s,w,_){if(o.subtreeFlags&10256||o.actualDuration!==0&&(o.alternate===null||o.alternate.child!==o.child))for(var L=o.child;L!==null;){o=L.sibling;var G=n,q=s,ne=w,oe=o!==null?o.actualStartTime:_,Se=xf;(L.mode&fn)!==Vt&&0<L.actualStartTime&&(L.flags&1)!==0&&Ap(L,L.actualStartTime,oe,ji,q);var Ae=L.flags;switch(L.tag){case 22:Uu(G,L,q,ne,oe),Ae&2048&&tm(L.alternate,L);break;case 24:Uu(G,L,q,ne,oe),Ae&2048&&nm(L.alternate,L);break;default:Uu(G,L,q,ne,oe)}xf=Se,L=o}}function Hu(n,o,s){if(n.subtreeFlags&_y)for(n=n.child;n!==null;)ug(n,o,s),n=n.sibling}function ug(n,o,s){switch(n.tag){case 26:Hu(n,o,s),n.flags&_y&&n.memoizedState!==null&&L0(s,ql,n.memoizedState,n.memoizedProps);break;case 5:Hu(n,o,s);break;case 3:case 4:var w=ql;ql=Rg(n.stateNode.containerInfo),Hu(n,o,s),ql=w;break;case 22:n.memoizedState===null&&(w=n.alternate,w!==null&&w.memoizedState!==null?(w=_y,_y=16777216,Hu(n,o,s),_y=w):Hu(n,o,s));break;default:Hu(n,o,s)}}function s0(n){var o=n.alternate;if(o!==null&&(n=o.child,n!==null)){o.child=null;do o=n.sibling,n.sibling=null,n=o;while(n!==null)}}function Zr(n){var o=n.deletions;if((n.flags&16)!==0){if(o!==null)for(var s=0;s<o.length;s++){var w=o[s],_=yo();Yi=w,Vs(w,n),(w.mode&fn)!==Vt&&0<=Ut&&0<=Bt&&.05<Bt-Ut&&Ca(w,Ut,Bt,"Unmount"),vi(_)}s0(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)dg(n),n=n.sibling}function dg(n){var o=yo(),s=La(),w=Pr(),_=Oa();switch(n.tag){case 0:case 11:case 15:Zr(n),n.flags&2048&&ig(n,n.return,sa|ul);break;case 3:var L=Ds();Zr(n),n.stateNode.passiveEffectDuration+=Rd(L);break;case 12:L=Ds(),Zr(n),n.stateNode.passiveEffectDuration+=or(L);break;case 22:L=n.stateNode,n.memoizedState!==null&&L._visibility&Zu&&(n.return===null||n.return.tag!==13)?(L._visibility&=~Zu,fg(n),(n.mode&fn)!==Vt&&0<=Ut&&0<=Bt&&.05<Bt-Ut&&Ca(n,Ut,Bt,"Disconnect")):Zr(n);break;default:Zr(n)}(n.mode&fn)!==Vt&&0<=Ut&&0<=Bt&&(Yo||.05<$o)&&Ka(n,Ut,Bt,$o,Do),vi(o),Fr(s),Yo=_,Do=w}function fg(n){var o=n.deletions;if((n.flags&16)!==0){if(o!==null)for(var s=0;s<o.length;s++){var w=o[s],_=yo();Yi=w,Vs(w,n),(w.mode&fn)!==Vt&&0<=Ut&&0<=Bt&&.05<Bt-Ut&&Ca(w,Ut,Bt,"Unmount"),vi(_)}s0(n)}for(n=n.child;n!==null;)l0(n),n=n.sibling}function l0(n){var o=yo(),s=La(),w=Pr(),_=Oa();switch(n.tag){case 0:case 11:case 15:ig(n,n.return,sa),fg(n);break;case 22:var L=n.stateNode;L._visibility&Zu&&(L._visibility&=~Zu,fg(n));break;default:fg(n)}(n.mode&fn)!==Vt&&0<=Ut&&0<=Bt&&(Yo||.05<$o)&&Ka(n,Ut,Bt,$o,Do),vi(o),Fr(s),Yo=_,Do=w}function Vs(n,o){for(;Yi!==null;){var s=Yi,w=s,_=o,L=yo(),G=La(),q=Pr(),ne=Oa();switch(w.tag){case 0:case 11:case 15:ig(w,_,sa);break;case 23:case 22:w.memoizedState!==null&&w.memoizedState.cachePool!==null&&(_=w.memoizedState.cachePool.pool,_!=null&&yu(_));break;case 24:Ch(w.memoizedState.cache)}if((w.mode&fn)!==Vt&&0<=Ut&&0<=Bt&&(Yo||.05<$o)&&Ka(w,Ut,Bt,$o,Do),vi(L),Fr(G),Yo=ne,Do=q,w=s.child,w!==null)w.return=s,Yi=w;else e:for(s=n;Yi!==null;){if(w=Yi,L=w.sibling,G=w.return,Qo(w),w===s){Yi=null;break e}if(L!==null){L.return=G,Yi=L;break e}Yi=G}}}function c0(){Sj.forEach(function(n){return n()})}function u0(){var n=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return n||Ue.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),n}function Vi(n){if((Mn&zi)!==Xi&&mn!==0)return mn&-mn;var o=Ue.T;return o!==null?(o._updatedFibers||(o._updatedFibers=new Set),o._updatedFibers.add(n),E0()):Ge()}function Wd(){if(Ba===0)if((mn&536870912)===0||Tn){var n=_m;_m<<=1,(_m&3932160)===0&&(_m=262144),Ba=n}else Ba=536870912;return n=vs.current,n!==null&&(n.flags|=32),Ba}function Wt(n,o,s){if(Sb&&console.error("useInsertionEffect must not schedule updates."),QA&&(Q1=!0),(n===ho&&(oo===Fm||oo===Pm)||n.cancelPendingCommit!==null)&&(Gs(n,0),Ia(n,mn,Ba,!1)),tt(n,s),(Mn&zi)!==Xi&&n===ho){if(Zs)switch(o.tag){case 0:case 11:case 15:n=gn&&j(gn)||"Unknown",yL.has(n)||(yL.add(n),o=j(o)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",o,n,n));break;case 1:vL||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),vL=!0)}}else el&&_t(n,o,s),sm(o),n===ho&&((Mn&zi)===Xi&&(Uf|=s),Uo===kf&&Ia(n,mn,Ba,!1)),Cr(n)}function Tw(n,o,s){if((Mn&(zi|Es))!==Xi)throw Error("Should not already be working.");if(mn!==0&&gn!==null){var w=gn,_=Ai();switch(dR){case Ry:case Fm:var L=fy;To&&((w=w._debugTask)?w.run(console.timeStamp.bind(console,"Suspended",L,_,nl,void 0,"primary-light")):console.timeStamp("Suspended",L,_,nl,void 0,"primary-light"));break;case Pm:L=fy,To&&((w=w._debugTask)?w.run(console.timeStamp.bind(console,"Action",L,_,nl,void 0,"primary-light")):console.timeStamp("Action",L,_,nl,void 0,"primary-light"));break;default:To&&(w=_-fy,3>w||console.timeStamp("Blocked",fy,_,nl,void 0,5>w?"primary-light":10>w?"primary":100>w?"primary-dark":"error"))}}L=(s=!s&&(o&127)===0&&(o&n.expiredLanes)===0||at(n,o))?jl(n,o):qd(n,o,!0);var G=s;do{if(L===cd){Eb&&!s&&Ia(n,o,0,!1),o=oo,fy=_i(),dR=o;break}else{if(w=Ai(),_=n.current.alternate,G&&!xw(_)){qa(o),_=Wi,L=w,!To||L<=_||(ti?ti.run(console.timeStamp.bind(console,"Teared Render",_,L,Nn,An,"error")):console.timeStamp("Teared Render",_,L,Nn,An,"error")),kc(o,w),L=qd(n,o,!1),G=!1;continue}if(L===Bm){if(G=o,n.errorRecoveryDisabledLanes&G)var q=0;else q=n.pendingLanes&-536870913,q=q!==0?q:q&536870912?536870912:0;if(q!==0){qa(o),dv(Wi,w,o,ti),kc(o,w),o=q;e:{w=n,L=G,G=Oy;var ne=w.current.memoizedState.isDehydrated;if(ne&&(Gs(w,q).flags|=256),q=qd(w,q,!1),q!==Bm){if(HA&&!ne){w.errorRecoveryDisabledLanes|=L,Uf|=L,L=kf;break e}w=la,la=G,w!==null&&(la===null?la=w:la.push.apply(la,w))}L=q}if(G=!1,L!==Bm)continue;w=Ai()}}if(L===Ny){qa(o),dv(Wi,w,o,ti),kc(o,w),Gs(n,0),Ia(n,o,0,!0);break}e:{switch(s=n,L){case cd:case Ny:throw Error("Root did not complete. This is a bug in React.");case kf:if((o&4194048)!==o)break;case H1:qa(o),JE(Wi,w,o,ti),kc(o,w),_=o,(_&127)!==0?T1=w:(_&4194048)!==0&&(A1=w),Ia(s,o,Ba,!If);break e;case Bm:la=null;break;case U1:case rL:break;default:throw Error("Unknown root exit status.")}if(Ue.actQueue!==null)co(s,_,o,la,Dy,B1,Ba,Uf,Vm,L,null,null,Wi,w);else{if((o&62914560)===o&&(G=F1+lL-Ai(),10<G)){if(Ia(s,o,Ba,!If),gt(s,0,!0)!==0)break e;Kl=o,s.timeoutHandle=CL(Aw.bind(null,s,_,la,Dy,B1,o,Ba,Uf,Vm,If,L,"Throttled",Wi,w),G);break e}Aw(s,_,la,Dy,B1,o,Ba,Uf,Vm,If,L,null,Wi,w)}}}break}while(!0);Cr(n)}function Aw(n,o,s,w,_,L,G,q,ne,oe,Se,Ae,he,Ie){n.timeoutHandle=Xm;var dt=o.subtreeFlags,pt=null;if((dt&8192||(dt&16785408)===16785408)&&(pt={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Sr},ug(o,L,pt),dt=(L&62914560)===L?F1-Ai():(L&4194048)===L?sL-Ai():0,dt=Dg(pt,dt),dt!==null)){Kl=L,n.cancelPendingCommit=dt(co.bind(null,n,o,L,s,w,_,G,q,ne,Se,pt,pt.waitingForViewTransition?"Waiting for the previous Animation":0<pt.count?0<pt.imgCount?"Suspended on CSS and Images":"Suspended on CSS":pt.imgCount===1?"Suspended on an Image":0<pt.imgCount?"Suspended on Images":null,he,Ie)),Ia(n,L,G,!oe);return}co(n,o,L,s,w,_,G,q,ne,Se,pt,Ae,he,Ie)}function xw(n){for(var o=n;;){var s=o.tag;if((s===0||s===11||s===15)&&o.flags&16384&&(s=o.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var w=0;w<s.length;w++){var _=s[w],L=_.getSnapshot;_=_.value;try{if(!ia(L(),_))return!1}catch{return!1}}if(s=o.child,o.subtreeFlags&16384&&s!==null)s.return=o,o=s;else{if(o===n)break;for(;o.sibling===null;){if(o.return===null||o.return===n)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function Ia(n,o,s,w){o&=~jA,o&=~Uf,n.suspendedLanes|=o,n.pingedLanes&=~o,w&&(n.warmLanes|=o),w=n.expirationTimes;for(var _=o;0<_;){var L=31-Ui(_),G=1<<L;w[L]=-1,_&=~G}s!==0&&St(n,s,o)}function Jr(){return(Mn&(zi|Es))===Xi?(Ws(0),!1):!0}function hg(){if(gn!==null){if(oo===za)var n=gn.return;else n=gn,Cd(),yc(n),db=null,wy=0,n=gn;for(;n!==null;)Xv(n.alternate,n),n=n.return;gn=null}}function kc(n,o){(n&127)!==0&&(Dm=o),(n&4194048)!==0&&(od=o),(n&62914560)!==0&&(cR=o),(n&2080374784)!==0&&(uR=o)}function Gs(n,o){To&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",An,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",An,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",An,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",An,"primary-light"));var s=Wi;if(Wi=_i(),mn!==0&&0<s){if(qa(mn),Uo===U1||Uo===kf)JE(s,Wi,o,ti);else{var w=Wi,_=ti;if(To&&!(w<=s)){var L=(o&738197653)===o?"tertiary-dark":"primary-dark",G=(o&536870912)===o?"Prewarm":(o&201326741)===o?"Interrupted Hydration":"Interrupted Render";_?_.run(console.timeStamp.bind(console,G,s,w,Nn,An,L)):console.timeStamp(G,s,w,Nn,An,L)}}kc(mn,Wi)}if(s=ti,ti=null,(o&127)!==0){ti=cy,_=0<=Gc&&Gc<Dm?Dm:Gc,w=0<=Mm&&Mm<Dm?Dm:Mm,L=0<=w?w:0<=_?_:Wi,0<=T1?(qa(2),ew(T1,L,o,s)):x1&127,s=_;var q=w,ne=uy,oe=0<lb,Se=Lf===ly,Ae=Lf===S1;if(_=Wi,w=cy,L=bA,G=vA,To){if(Nn="Blocking",0<s?s>_&&(s=_):s=_,0<q?q>s&&(q=s):q=s,ne!==null&&s>q){var he=oe?"secondary-light":"warning";w?w.run(console.timeStamp.bind(console,oe?"Consecutive":"Event: "+ne,q,s,Nn,An,he)):console.timeStamp(oe?"Consecutive":"Event: "+ne,q,s,Nn,An,he)}_>s&&(q=Se?"error":(o&738197653)===o?"tertiary-light":"primary-light",Se=Ae?"Promise Resolved":Se?"Cascading Update":5<_-s?"Update Blocked":"Update",Ae=[],G!=null&&Ae.push(["Component name",G]),L!=null&&Ae.push(["Method name",L]),s={start:s,end:_,detail:{devtools:{properties:Ae,track:Nn,trackGroup:An,color:q}}},w?w.run(performance.measure.bind(performance,Se,s)):performance.measure(Se,s))}Gc=-1.1,Lf=0,vA=bA=null,T1=-1.1,lb=Mm,Mm=-1.1,Dm=_i()}if((o&4194048)!==0&&(ti=dy,_=0<=id&&id<od?od:id,s=0<=ll&&ll<od?od:ll,w=0<=Of&&Of<od?od:Of,L=0<=w?w:0<=s?s:Wi,0<=A1?(qa(256),ew(A1,L,o,ti)):x1&4194048,Ae=w,q=km,ne=0<Df,oe=yA===S1,L=Wi,w=dy,G=sR,Se=lR,To&&(Nn="Transition",0<s?s>L&&(s=L):s=L,0<_?_>s&&(_=s):_=s,0<Ae?Ae>_&&(Ae=_):Ae=_,_>Ae&&q!==null&&(he=ne?"secondary-light":"warning",w?w.run(console.timeStamp.bind(console,ne?"Consecutive":"Event: "+q,Ae,_,Nn,An,he)):console.timeStamp(ne?"Consecutive":"Event: "+q,Ae,_,Nn,An,he)),s>_&&(w?w.run(console.timeStamp.bind(console,"Action",_,s,Nn,An,"primary-dark")):console.timeStamp("Action",_,s,Nn,An,"primary-dark")),L>s&&(_=oe?"Promise Resolved":5<L-s?"Update Blocked":"Update",Ae=[],Se!=null&&Ae.push(["Component name",Se]),G!=null&&Ae.push(["Method name",G]),s={start:s,end:L,detail:{devtools:{properties:Ae,track:Nn,trackGroup:An,color:"primary-light"}}},w?w.run(performance.measure.bind(performance,_,s)):performance.measure(_,s))),ll=id=-1.1,yA=0,A1=-1.1,Df=Of,Of=-1.1,od=_i()),(o&62914560)!==0&&(x1&62914560)!==0&&(qa(4194304),fv(cR,Wi)),(o&2080374784)!==0&&(x1&2080374784)!==0&&(qa(268435456),fv(uR,Wi)),s=n.timeoutHandle,s!==Xm&&(n.timeoutHandle=Xm,Ij(s)),s=n.cancelPendingCommit,s!==null&&(n.cancelPendingCommit=null,s()),Kl=0,hg(),ho=n,gn=s=Ls(n.current,null),mn=o,oo=za,ws=null,If=!1,Eb=at(n,o),HA=!1,Uo=cd,Vm=Ba=jA=Uf=$f=0,la=Oy=null,B1=!1,(o&8)!==0&&(o|=o&32),w=n.entangledLanes,w!==0)for(n=n.entanglements,w&=o;0<w;)_=31-Ui(w),L=1<<_,o|=n[_],w&=~L;return Wc=o,xp(),n=tR(),1e3<n-eR&&(Ue.recentlyCreatedOwnerStacks=0,eR=n),Yl.discardPendingWarnings(),s}function ls(n,o){Kt=null,Ue.H=xy,Ue.getCurrentStack=null,Zs=!1,Or=null,o===ub||o===R1?(o=Su(),oo=Ry):o===TA?(o=Su(),oo=aL):oo=o===MA?UA:o!==null&&typeof o=="object"&&typeof o.then=="function"?Ly:j1,ws=o;var s=gn;s===null?(Uo=Ny,Qh(n,nr(o,n.current))):s.mode&fn&&Dp(s)}function d0(){var n=vs.current;return n===null?!0:(mn&4194048)===mn?cl===null:(mn&62914560)===mn||(mn&536870912)!==0?n===cl:!1}function mg(){var n=Ue.H;return Ue.H=xy,n===null?xy:n}function f0(){var n=Ue.A;return Ue.A=wj,n}function Yd(n){ti===null&&(ti=n._debugTask==null?null:n._debugTask)}function Xd(){Uo=kf,If||(mn&4194048)!==mn&&vs.current!==null||(Eb=!0),($f&134217727)===0&&(Uf&134217727)===0||ho===null||Ia(ho,mn,Ba,!1)}function qd(n,o,s){var w=Mn;Mn|=zi;var _=mg(),L=f0();if(ho!==n||mn!==o){if(el){var G=n.memoizedUpdaters;0<G.size&&(Zd(n,mn),G.clear()),Et(n,o)}Dy=null,Gs(n,o)}o=!1,G=Uo;e:do try{if(oo!==za&&gn!==null){var q=gn,ne=ws;switch(oo){case UA:hg(),G=H1;break e;case Ry:case Fm:case Pm:case Ly:vs.current===null&&(o=!0);var oe=oo;if(oo=za,ws=null,Kd(n,q,ne,oe),s&&Eb){G=cd;break e}break;default:oe=oo,oo=za,ws=null,Kd(n,q,ne,oe)}}h0(),G=Uo;break}catch(Se){ls(n,Se)}while(!0);return o&&n.shellSuspendCounter++,Cd(),Mn=w,Ue.H=_,Ue.A=L,gn===null&&(ho=null,mn=0,xp()),G}function h0(){for(;gn!==null;)pg(gn)}function jl(n,o){var s=Mn;Mn|=zi;var w=mg(),_=f0();if(ho!==n||mn!==o){if(el){var L=n.memoizedUpdaters;0<L.size&&(Zd(n,mn),L.clear()),Et(n,o)}Dy=null,P1=Ai()+cL,Gs(n,o)}else Eb=at(n,o);e:do try{if(oo!==za&&gn!==null)t:switch(o=gn,L=ws,oo){case j1:oo=za,ws=null,Kd(n,o,L,j1);break;case Fm:case Pm:if(Av(L)){oo=za,ws=null,m0(o);break}o=function(){oo!==Fm&&oo!==Pm||ho!==n||(oo=z1),Cr(n)},L.then(o,o);break e;case Ry:oo=z1;break e;case aL:oo=$A;break e;case z1:Av(L)?(oo=za,ws=null,m0(o)):(oo=za,ws=null,Kd(n,o,L,z1));break;case $A:var G=null;switch(gn.tag){case 26:G=gn.memoizedState;case 5:case 27:var q=gn;if(G?En(G):q.stateNode.complete){oo=za,ws=null;var ne=q.sibling;if(ne!==null)gn=ne;else{var oe=q.return;oe!==null?(gn=oe,im(oe)):gn=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}oo=za,ws=null,Kd(n,o,L,$A);break;case Ly:oo=za,ws=null,Kd(n,o,L,Ly);break;case UA:hg(),Uo=H1;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}Ue.actQueue!==null?h0():Jo();break}catch(Se){ls(n,Se)}while(!0);return Cd(),Ue.H=w,Ue.A=_,Mn=s,gn!==null?cd:(ho=null,mn=0,xp(),Uo)}function Jo(){for(;gn!==null&&!Pg();)pg(gn)}function pg(n){var o=n.alternate;(n.mode&fn)!==Vt?(Nl(n),o=ye(n,qh,o,n,Wc),Dp(n)):o=ye(n,qh,o,n,Wc),n.memoizedProps=n.pendingProps,o===null?im(n):gn=o}function m0(n){var o=ye(n,Ti,n);n.memoizedProps=n.pendingProps,o===null?im(n):gn=o}function Ti(n){var o=n.alternate,s=(n.mode&fn)!==Vt;switch(s&&Nl(n),n.tag){case 15:case 0:o=Pv(o,n,n.pendingProps,n.type,void 0,mn);break;case 11:o=Pv(o,n,n.pendingProps,n.type.render,n.ref,mn);break;case 5:yc(n);default:Xv(o,n),n=gn=gv(n,Wc),o=qh(o,n,Wc)}return s&&Dp(n),o}function Kd(n,o,s,w){Cd(),yc(o),db=null,wy=0;var _=o.return;try{if($v(n,_,o,s,mn)){Uo=Ny,Qh(n,nr(s,n.current)),gn=null;return}}catch(L){if(_!==null)throw gn=_,L;Uo=Ny,Qh(n,nr(s,n.current)),gn=null;return}o.flags&32768?(Tn||w===j1?n=!0:Eb||(mn&536870912)!==0?n=!1:(If=n=!0,(w===Fm||w===Pm||w===Ry||w===Ly)&&(w=vs.current,w!==null&&w.tag===13&&(w.flags|=16384))),p0(o,n)):im(o)}function im(n){var o=n;do{if((o.flags&32768)!==0){p0(o,If);return}var s=o.alternate;if(n=o.return,Nl(o),s=ye(o,Yv,s,o,Wc),(o.mode&fn)!==Vt&&Nh(o),s!==null){gn=s;return}if(o=o.sibling,o!==null){gn=o;return}gn=o=n}while(o!==null);Uo===cd&&(Uo=rL)}function p0(n,o){do{var s=gw(n.alternate,n);if(s!==null){s.flags&=32767,gn=s;return}if((n.mode&fn)!==Vt){Nh(n),s=n.actualDuration;for(var w=n.child;w!==null;)s+=w.actualDuration,w=w.sibling;n.actualDuration=s}if(s=n.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!o&&(n=n.sibling,n!==null)){gn=n;return}gn=n=s}while(n!==null);Uo=H1,gn=null}function co(n,o,s,w,_,L,G,q,ne,oe,Se,Ae,he,Ie){n.cancelPendingCommit=null;do rm();while(Oi!==jf);if(Yl.flushLegacyContextWarning(),Yl.flushPendingUnsafeLifecycleWarnings(),(Mn&(zi|Es))!==Xi)throw Error("Should not already be working.");if(qa(s),oe===Bm?dv(he,Ie,s,ti):w!==null?zT(he,Ie,s,w,o!==null&&o.alternate!==null&&o.alternate.memoizedState.isDehydrated&&(o.flags&256)!==0,ti):jT(he,Ie,s,ti),o!==null){if(s===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),o===n.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(L=o.lanes|o.childLanes,L|=fA,vt(n,s,L,G,q,ne),n===ho&&(gn=ho=null,mn=0),wb=o,zf=n,Kl=s,FA=L,VA=_,pL=w,PA=Ie,gL=Ae,Zl=V1,bL=null,o.actualDuration!==0||(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,Jd(Yu,function(){return Hy=window.event,Zl===V1&&(Zl=BA),am(),null})):(n.callbackNode=null,n.callbackPriority=0),nd=null,Rf=_i(),Ae!==null&&BT(Ie,Rf,Ae,ti),w=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||w){w=Ue.T,Ue.T=null,_=zn.p,zn.p=ci,G=Mn,Mn|=Es;try{VT(n,o,s)}finally{Mn=G,zn.p=_,Ue.T=w}}Oi=dL,dr(),Qs(),g0()}}function dr(){if(Oi===dL){Oi=jf;var n=zf,o=wb,s=Kl,w=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||w){w=Ue.T,Ue.T=null;var _=zn.p;zn.p=ci;var L=Mn;Mn|=Es;try{vb=s,yb=n,Eu(),em(o,n),yb=vb=null,s=tx;var G=Tr(n.containerInfo),q=s.focusedElem,ne=s.selectionRange;if(G!==q&&q&&q.ownerDocument&&Wa(q.ownerDocument.documentElement,q)){if(ne!==null&&Ya(q)){var oe=ne.start,Se=ne.end;if(Se===void 0&&(Se=oe),"selectionStart"in q)q.selectionStart=oe,q.selectionEnd=Math.min(Se,q.value.length);else{var Ae=q.ownerDocument||document,he=Ae&&Ae.defaultView||window;if(he.getSelection){var Ie=he.getSelection(),dt=q.textContent.length,pt=Math.min(ne.start,dt),go=ne.end===void 0?pt:Math.min(ne.end,dt);!Ie.extend&&pt>go&&(G=go,go=pt,pt=G);var xn=tr(q,pt),fe=tr(q,go);if(xn&&fe&&(Ie.rangeCount!==1||Ie.anchorNode!==xn.node||Ie.anchorOffset!==xn.offset||Ie.focusNode!==fe.node||Ie.focusOffset!==fe.offset)){var ge=Ae.createRange();ge.setStart(xn.node,xn.offset),Ie.removeAllRanges(),pt>go?(Ie.addRange(ge),Ie.extend(fe.node,fe.offset)):(ge.setEnd(fe.node,fe.offset),Ie.addRange(ge))}}}}for(Ae=[],Ie=q;Ie=Ie.parentNode;)Ie.nodeType===1&&Ae.push({element:Ie,left:Ie.scrollLeft,top:Ie.scrollTop});for(typeof q.focus=="function"&&q.focus(),q=0;q<Ae.length;q++){var we=Ae[q];we.element.scrollLeft=we.left,we.element.scrollTop=we.top}}aS=!!ex,tx=ex=null}finally{Mn=L,zn.p=_,Ue.T=w}}n.current=o,Oi=fL}}function Qs(){if(Oi===fL){Oi=jf;var n=bL;if(n!==null){Rf=_i();var o=td,s=Rf;!To||s<=o||console.timeStamp(n,o,s,Nn,An,"secondary-light")}n=zf,o=wb,s=Kl;var w=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||w){w=Ue.T,Ue.T=null;var _=zn.p;zn.p=ci;var L=Mn;Mn|=Es;try{vb=s,yb=n,Eu(),lg(n,o.alternate,o),yb=vb=null}finally{Mn=L,zn.p=_,Ue.T=w}}n=PA,o=gL,td=_i(),n=o===null?n:Rf,o=td,s=Zl===zA,w=ti,nd!==null?tw(n,o,nd,!1,w):!To||o<=n||(w?w.run(console.timeStamp.bind(console,s?"Commit Interrupted View Transition":"Commit",n,o,Nn,An,s?"error":"secondary-dark")):console.timeStamp(s?"Commit Interrupted View Transition":"Commit",n,o,Nn,An,s?"error":"secondary-dark")),Oi=hL}}function g0(){if(Oi===mL||Oi===hL){if(Oi===mL){var n=td;td=_i();var o=td,s=Zl===zA;!To||o<=n||console.timeStamp(s?"Interrupted View Transition":"Starting Animation",n,o,Nn,An,s?" error":"secondary-light"),Zl!==zA&&(Zl=uL)}Oi=jf,Vg(),n=zf;var w=wb;o=Kl,s=pL;var _=w.actualDuration!==0||(w.subtreeFlags&10256)!==0||(w.flags&10256)!==0;_?Oi=G1:(Oi=jf,wb=zf=null,b0(n,n.pendingLanes),Gm=0,ky=null);var L=n.pendingLanes;if(L===0&&(Hf=null),_||vg(n),L=xe(o),w=w.stateNode,li&&typeof li.onCommitFiberRoot=="function")try{var G=(w.current.flags&128)===128;switch(L){case ci:var q=W0;break;case Hi:q=Gg;break;case Qi:q=Yu;break;case Fc:q=Qg;break;default:q=Yu}li.onCommitFiberRoot(Xu,w,q,G)}catch(Ae){Js||(Js=!0,console.error("React instrumentation encountered an error: %o",Ae))}if(el&&n.memoizedUpdaters.clear(),c0(),s!==null){G=Ue.T,q=zn.p,zn.p=ci,Ue.T=null;try{var ne=n.onRecoverableError;for(w=0;w<s.length;w++){var oe=s[w],Se=_w(oe.stack);ye(oe.source,ne,oe.value,Se)}}finally{Ue.T=G,zn.p=q}}(Kl&3)!==0&&rm(),Cr(n),L=n.pendingLanes,(o&261930)!==0&&(L&42)!==0?(C1=!0,n===GA?My++:(My=0,GA=n)):My=0,_||kc(o,td),Ws(0)}}function _w(n){return n={componentStack:n},Object.defineProperty(n,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),n}function b0(n,o){(n.pooledCacheLanes&=o)===0&&(o=n.pooledCache,o!=null&&(n.pooledCache=null,Ch(o)))}function rm(){return dr(),Qs(),g0(),am()}function am(){if(Oi!==G1)return!1;var n=zf,o=FA;FA=0;var s=xe(Kl),w=Qi>s?Qi:s;s=Ue.T;var _=zn.p;try{zn.p=w,Ue.T=null;var L=VA;VA=null,w=zf;var G=Kl;if(Oi=jf,wb=zf=null,Kl=0,(Mn&(zi|Es))!==Xi)throw Error("Cannot flush passive effects while already rendering.");qa(G),QA=!0,Q1=!1;var q=0;if(nd=null,q=Ai(),Zl===uL)fv(td,q,mj);else{var ne=td,oe=q,Se=Zl===BA;!To||oe<=ne||(ti?ti.run(console.timeStamp.bind(console,Se?"Waiting for Paint":"Waiting",ne,oe,Nn,An,"secondary-light")):console.timeStamp(Se?"Waiting for Paint":"Waiting",ne,oe,Nn,An,"secondary-light"))}ne=Mn,Mn|=Es;var Ae=w.current;Eu(),dg(Ae);var he=w.current;Ae=PA,Eu(),a0(w,he,G,L,Ae),vg(w),Mn=ne;var Ie=Ai();if(he=q,Ae=ti,nd!==null?tw(he,Ie,nd,!0,Ae):!To||Ie<=he||(Ae?Ae.run(console.timeStamp.bind(console,"Remaining Effects",he,Ie,Nn,An,"secondary-dark")):console.timeStamp("Remaining Effects",he,Ie,Nn,An,"secondary-dark")),kc(G,Ie),Ws(0,!1),Q1?w===ky?Gm++:(Gm=0,ky=w):Gm=0,Q1=QA=!1,li&&typeof li.onPostCommitFiberRoot=="function")try{li.onPostCommitFiberRoot(Xu,w)}catch(pt){Js||(Js=!0,console.error("React instrumentation encountered an error: %o",pt))}var dt=w.current.stateNode;return dt.effectDuration=0,dt.passiveEffectDuration=0,!0}finally{zn.p=_,Ue.T=s,b0(n,o)}}function fr(n,o,s){o=nr(s,o),sw(o),o=Yp(n.stateNode,o,2),n=ks(n,o,2),n!==null&&(tt(n,2),Cr(n))}function ln(n,o,s){if(Sb=!1,n.tag===3)fr(n,n,s);else{for(;o!==null;){if(o.tag===3){fr(o,n,s);return}if(o.tag===1){var w=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof w.componentDidCatch=="function"&&(Hf===null||!Hf.has(w))){n=nr(s,n),sw(n),s=Xp(2),w=ks(o,s,2),w!==null&&(qp(s,w,o,n),tt(w,2),Cr(w));return}}o=o.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
226
226
 
227
227
  Error message:
228
228
 
@@ -235,7 +235,7 @@ act(() => {
235
235
  });
236
236
  /* assert on the output */
237
237
 
238
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),ho===n&&(mn&s)===s&&(Uo===kf||Uo===U1&&(mn&62914560)===mn&&Ai()-F1<lL?(Mn&zi)===Xi&&Gs(n,0):jA|=s,Vm===mn&&(Vm=0)),Cr(n)}function v0(n,o){o===0&&(o=je()),n=Fi(n,o),n!==null&&(rt(n,o),Cr(n))}function zl(n){var o=n.memoizedState,s=0;o!==null&&(s=o.retryLane),v0(n,s)}function ju(n,o){var s=0;switch(n.tag){case 31:case 13:var w=n.stateNode,_=n.memoizedState;_!==null&&(s=_.retryLane);break;case 19:w=n.stateNode;break;case 22:w=n.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}w!==null&&w.delete(o),v0(n,s)}function cs(n,o,s){if((o.subtreeFlags&67117056)!==0)for(o=o.child;o!==null;){var w=n,_=o,L=_.type===pr;L=s||L,_.tag!==22?_.flags&67108864?L&&ye(_,bg,w,_):cs(w,_,L):_.memoizedState===null&&(L&&_.flags&8192?ye(_,bg,w,_):_.subtreeFlags&67108864&&ye(_,cs,w,_,L)),o=o.sibling}}function bg(n,o){ze(!0);try{cg(o),l0(o),r0(n,o.alternate,o,!1),om(n,o,0,null,!1,0)}finally{ze(!1)}}function vg(n){var o=!0;n.current.mode&(Dr|Wl)||(o=!1),cs(n,n.current,o)}function $a(n){if((Mn&zi)===Xi){var o=n.tag;if(o===3||o===1||o===0||o===11||o===14||o===15){if(o=j(n)||"ReactComponent",W1!==null){if(W1.has(o))return;W1.add(o)}else W1=new Set([o]);ye(n,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function Zd(n,o){el&&n.memoizedUpdaters.forEach(function(s){_t(n,s,o)})}function Jd(n,o){var s=Ue.actQueue;return s!==null?(s.push(o),_j):Q0(n,o)}function sm(n){u0()&&Ue.actQueue===null&&ye(n,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
238
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),ho===n&&(mn&s)===s&&(Uo===kf||Uo===U1&&(mn&62914560)===mn&&Ai()-F1<lL?(Mn&zi)===Xi&&Gs(n,0):jA|=s,Vm===mn&&(Vm=0)),Cr(n)}function v0(n,o){o===0&&(o=je()),n=Fi(n,o),n!==null&&(tt(n,o),Cr(n))}function zl(n){var o=n.memoizedState,s=0;o!==null&&(s=o.retryLane),v0(n,s)}function ju(n,o){var s=0;switch(n.tag){case 31:case 13:var w=n.stateNode,_=n.memoizedState;_!==null&&(s=_.retryLane);break;case 19:w=n.stateNode;break;case 22:w=n.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}w!==null&&w.delete(o),v0(n,s)}function cs(n,o,s){if((o.subtreeFlags&67117056)!==0)for(o=o.child;o!==null;){var w=n,_=o,L=_.type===pr;L=s||L,_.tag!==22?_.flags&67108864?L&&ye(_,bg,w,_):cs(w,_,L):_.memoizedState===null&&(L&&_.flags&8192?ye(_,bg,w,_):_.subtreeFlags&67108864&&ye(_,cs,w,_,L)),o=o.sibling}}function bg(n,o){ze(!0);try{cg(o),l0(o),r0(n,o.alternate,o,!1),om(n,o,0,null,!1,0)}finally{ze(!1)}}function vg(n){var o=!0;n.current.mode&(Dr|Wl)||(o=!1),cs(n,n.current,o)}function $a(n){if((Mn&zi)===Xi){var o=n.tag;if(o===3||o===1||o===0||o===11||o===14||o===15){if(o=j(n)||"ReactComponent",W1!==null){if(W1.has(o))return;W1.add(o)}else W1=new Set([o]);ye(n,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function Zd(n,o){el&&n.memoizedUpdaters.forEach(function(s){_t(n,s,o)})}function Jd(n,o){var s=Ue.actQueue;return s!==null?(s.push(o),_j):Q0(n,o)}function sm(n){u0()&&Ue.actQueue===null&&ye(n,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
239
239
 
240
240
  When testing, code that causes React state updates should be wrapped into act(...):
241
241
 
@@ -251,9 +251,9 @@ This ensures that you're testing the behavior the user would see in the browser.
251
251
  + `+mm(s),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+s);return G}if(o&&w!==null)throw s=`
252
252
 
253
253
  - `+mm(o)+`
254
- + `+mm(s),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+s);return null;case"script":return o=s.async,s=s.src,typeof s=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(s=Vu(s),o=jt(_).hoistableScripts,w=o.get(s),w||(w={type:"script",instance:null,count:0,state:null},o.set(s,w)),w):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+n+'". this is a bug in React.')}}function mm(n){var o=0,s="<link";return typeof n.rel=="string"?(o++,s+=' rel="'+n.rel+'"'):na.call(n,"rel")&&(o++,s+=' rel="'+(n.rel===null?"null":"invalid type "+typeof n.rel)+'"'),typeof n.href=="string"?(o++,s+=' href="'+n.href+'"'):na.call(n,"href")&&(o++,s+=' href="'+(n.href===null?"null":"invalid type "+typeof n.href)+'"'),typeof n.precedence=="string"?(o++,s+=' precedence="'+n.precedence+'"'):na.call(n,"precedence")&&(o++,s+=" precedence={"+(n.precedence===null?"null":"invalid type "+typeof n.precedence)+"}"),Object.getOwnPropertyNames(n).length>o&&(s+=" ..."),s+" />"}function Pu(n){return'href="'+Xt(n)+'"'}function pm(n){return'link[rel="stylesheet"]['+n+"]"}function Lg(n){return dn({},n,{"data-precedence":n.precedence,precedence:null})}function Xw(n,o,s,w){n.querySelector('link[rel="preload"][as="style"]['+o+"]")?w.loading=jy:(o=n.createElement("link"),w.preload=o,o.addEventListener("load",function(){return w.loading|=jy}),o.addEventListener("error",function(){return w.loading|=RL}),wo(o,"link",s),Ce(o),n.head.appendChild(o))}function Vu(n){return'[src="'+Xt(n)+'"]'}function gm(n){return"script[async]"+n}function Og(n,o,s){if(o.count++,o.instance===null)switch(o.type){case"style":var w=n.querySelector('style[data-href~="'+Xt(s.href)+'"]');if(w)return o.instance=w,Ce(w),w;var _=dn({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return w=(n.ownerDocument||n).createElement("style"),Ce(w),wo(w,"style",_),lf(w,s.precedence,n),o.instance=w;case"stylesheet":_=Pu(s.href);var L=n.querySelector(pm(_));if(L)return o.state.loading|=fl,o.instance=L,Ce(L),L;w=Lg(s),(_=hl.get(_))&&N0(w,_),L=(n.ownerDocument||n).createElement("link"),Ce(L);var G=L;return G._p=new Promise(function(q,ne){G.onload=q,G.onerror=ne}),wo(L,"link",w),o.state.loading|=fl,lf(L,s.precedence,n),o.instance=L;case"script":return L=Vu(s.src),(_=n.querySelector(gm(L)))?(o.instance=_,Ce(_),_):(w=s,(_=hl.get(L))&&(w=dn({},s),R0(w,_)),n=n.ownerDocument||n,_=n.createElement("script"),Ce(_),wo(_,"link",w),n.head.appendChild(_),o.instance=_);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+o.type+'". this is a bug in React.')}else o.type==="stylesheet"&&(o.state.loading&fl)===qm&&(w=o.instance,o.state.loading|=fl,lf(w,s.precedence,n));return o.instance}function lf(n,o,s){for(var w=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),_=w.length?w[w.length-1]:null,L=_,G=0;G<w.length;G++){var q=w[G];if(q.dataset.precedence===o)L=q;else if(L!==_)break}L?L.parentNode.insertBefore(n,L.nextSibling):(o=s.nodeType===9?s.head:s,o.insertBefore(n,o.firstChild))}function N0(n,o){n.crossOrigin==null&&(n.crossOrigin=o.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=o.referrerPolicy),n.title==null&&(n.title=o.title)}function R0(n,o){n.crossOrigin==null&&(n.crossOrigin=o.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=o.referrerPolicy),n.integrity==null&&(n.integrity=o.integrity)}function cf(n,o,s){if(oS===null){var w=new Map,_=oS=new Map;_.set(s,w)}else _=oS,w=_.get(s),w||(w=new Map,_.set(s,w));if(w.has(n))return w;for(w.set(n,null),s=s.getElementsByTagName(n),_=0;_<s.length;_++){var L=s[_];if(!(L[wf]||L[So]||n==="link"&&L.getAttribute("rel")==="stylesheet")&&L.namespaceURI!==cn){var G=L.getAttribute(o)||"";G=n+G;var q=w.get(G);q?q.push(L):w.set(G,[L])}}return w}function qw(n,o,s){n=n.ownerDocument||n,n.head.insertBefore(s,o==="title"?n.querySelector("head > title"):null)}function Kw(n,o,s){var w=!s.ancestorInfo.containerTagInScope;if(s.context===xb||o.itemProp!=null)return!w||o.itemProp==null||n!=="meta"&&n!=="title"&&n!=="style"&&n!=="link"&&n!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",n,n),!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href===""){w&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError){if(o.rel==="stylesheet"&&typeof o.precedence=="string"){n=o.href;var _=o.onError,L=o.disabled;s=[],o.onLoad&&s.push("`onLoad`"),_&&s.push("`onError`"),L!=null&&s.push("`disabled`"),_=Rw(s,"and"),_+=s.length===1?" prop":" props",L=s.length===1?"an "+_:"the "+_,s.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',n,L,_)}w&&(typeof o.rel!="string"||typeof o.href!="string"||o.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(o.onError||o.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(o.rel){case"stylesheet":return n=o.precedence,o=o.disabled,typeof n!="string"&&w&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof n=="string"&&o==null;default:return!0}case"script":if(n=o.async&&typeof o.async!="function"&&typeof o.async!="symbol",!n||o.onLoad||o.onError||!o.src||typeof o.src!="string"){w&&(n?o.onLoad||o.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":w&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",n)}return!1}function En(n){return!(n.type==="stylesheet"&&(n.state.loading&LL)===qm)}function L0(n,o,s,w){if(s.type==="stylesheet"&&(typeof w.media!="string"||matchMedia(w.media).matches!==!1)&&(s.state.loading&fl)===qm){if(s.instance===null){var _=Pu(w.href),L=o.querySelector(pm(_));if(L){o=L._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(n.count++,n=uf.bind(n),o.then(n,n)),s.state.loading|=fl,s.instance=L,Ce(L);return}L=o.ownerDocument||o,w=Lg(w),(_=hl.get(_))&&N0(w,_),L=L.createElement("link"),Ce(L);var G=L;G._p=new Promise(function(q,ne){G.onload=q,G.onerror=ne}),wo(L,"link",w),s.instance=L}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(s,o),(o=s.state.preload)&&(s.state.loading&LL)===qm&&(n.count++,s=uf.bind(n),o.addEventListener("load",s),o.addEventListener("error",s))}}function Dg(n,o){return n.stylesheets&&n.count===0&&bm(n,n.stylesheets),0<n.count||0<n.imgCount?function(s){var w=setTimeout(function(){if(n.stylesheets&&bm(n,n.stylesheets),n.unsuspend){var L=n.unsuspend;n.unsuspend=null,L()}},Uj+o);0<n.imgBytes&&ix===0&&(ix=125*Lw()*jj);var _=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&bm(n,n.stylesheets),n.unsuspend)){var L=n.unsuspend;n.unsuspend=null,L()}},(n.imgBytes>ix?50:Hj)+o);return n.unsuspend=s,function(){n.unsuspend=null,clearTimeout(w),clearTimeout(_)}}:null}function uf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)bm(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}function bm(n,o){n.stylesheets=null,n.unsuspend!==null&&(n.count++,iS=new Map,o.forEach(O0,n),iS=null,uf.call(n))}function O0(n,o){if(!(o.state.loading&fl)){var s=iS.get(n);if(s)var w=s.get(rx);else{s=new Map,iS.set(n,s);for(var _=n.querySelectorAll("link[data-precedence],style[data-precedence]"),L=0;L<_.length;L++){var G=_[L];(G.nodeName==="LINK"||G.getAttribute("media")!=="not all")&&(s.set(G.dataset.precedence,G),w=G)}w&&s.set(rx,w)}_=o.instance,G=_.getAttribute("data-precedence"),L=s.get(G)||w,L===w&&s.set(rx,_),s.set(G,_),this.count++,w=uf.bind(this),_.addEventListener("load",w),_.addEventListener("error",w),L?L.parentNode.insertBefore(_,L.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(_,n.firstChild)),o.state.loading|=fl}}function vm(n,o,s,w,_,L,G,q,ne){for(this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Xm,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=it(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=it(0),this.hiddenUpdates=it(null),this.identifierPrefix=w,this.onUncaughtError=_,this.onCaughtError=L,this.onRecoverableError=G,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ne,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,n=this.pendingUpdatersLaneMap=[],o=0;31>o;o++)n.push(new Set);this._debugRootType=s?"hydrateRoot()":"createRoot()"}function ym(n,o,s,w,_,L,G,q,ne,oe,Se,Ae){return n=new vm(n,o,s,G,ne,oe,Se,Ae,q),o=cj,L===!0&&(o|=Dr|Wl),o|=fn,L=d(3,null,null,o),n.current=L,L.stateNode=n,o=Op(),yu(o),n.pooledCache=o,yu(o),L.memoizedState={element:w,isDehydrated:s,cache:o},wn(L),n}function Zw(n){return n?(n=Cf,n):Cf}function Mg(n,o,s,w,_,L){if(li&&typeof li.onScheduleFiberRoot=="function")try{li.onScheduleFiberRoot(Xu,w,s)}catch(G){Js||(Js=!0,console.error("React instrumentation encountered an error: %o",G))}_=Zw(_),w.context===null?w.context=_:w.pendingContext=_,Zs&&Or!==null&&!IL&&(IL=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
254
+ + `+mm(s),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+s);return null;case"script":return o=s.async,s=s.src,typeof s=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(s=Vu(s),o=jt(_).hoistableScripts,w=o.get(s),w||(w={type:"script",instance:null,count:0,state:null},o.set(s,w)),w):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+n+'". this is a bug in React.')}}function mm(n){var o=0,s="<link";return typeof n.rel=="string"?(o++,s+=' rel="'+n.rel+'"'):na.call(n,"rel")&&(o++,s+=' rel="'+(n.rel===null?"null":"invalid type "+typeof n.rel)+'"'),typeof n.href=="string"?(o++,s+=' href="'+n.href+'"'):na.call(n,"href")&&(o++,s+=' href="'+(n.href===null?"null":"invalid type "+typeof n.href)+'"'),typeof n.precedence=="string"?(o++,s+=' precedence="'+n.precedence+'"'):na.call(n,"precedence")&&(o++,s+=" precedence={"+(n.precedence===null?"null":"invalid type "+typeof n.precedence)+"}"),Object.getOwnPropertyNames(n).length>o&&(s+=" ..."),s+" />"}function Pu(n){return'href="'+Xt(n)+'"'}function pm(n){return'link[rel="stylesheet"]['+n+"]"}function Lg(n){return dn({},n,{"data-precedence":n.precedence,precedence:null})}function Xw(n,o,s,w){n.querySelector('link[rel="preload"][as="style"]['+o+"]")?w.loading=jy:(o=n.createElement("link"),w.preload=o,o.addEventListener("load",function(){return w.loading|=jy}),o.addEventListener("error",function(){return w.loading|=RL}),wo(o,"link",s),Ce(o),n.head.appendChild(o))}function Vu(n){return'[src="'+Xt(n)+'"]'}function gm(n){return"script[async]"+n}function Og(n,o,s){if(o.count++,o.instance===null)switch(o.type){case"style":var w=n.querySelector('style[data-href~="'+Xt(s.href)+'"]');if(w)return o.instance=w,Ce(w),w;var _=dn({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return w=(n.ownerDocument||n).createElement("style"),Ce(w),wo(w,"style",_),lf(w,s.precedence,n),o.instance=w;case"stylesheet":_=Pu(s.href);var L=n.querySelector(pm(_));if(L)return o.state.loading|=fl,o.instance=L,Ce(L),L;w=Lg(s),(_=hl.get(_))&&N0(w,_),L=(n.ownerDocument||n).createElement("link"),Ce(L);var G=L;return G._p=new Promise(function(q,ne){G.onload=q,G.onerror=ne}),wo(L,"link",w),o.state.loading|=fl,lf(L,s.precedence,n),o.instance=L;case"script":return L=Vu(s.src),(_=n.querySelector(gm(L)))?(o.instance=_,Ce(_),_):(w=s,(_=hl.get(L))&&(w=dn({},s),R0(w,_)),n=n.ownerDocument||n,_=n.createElement("script"),Ce(_),wo(_,"link",w),n.head.appendChild(_),o.instance=_);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+o.type+'". this is a bug in React.')}else o.type==="stylesheet"&&(o.state.loading&fl)===qm&&(w=o.instance,o.state.loading|=fl,lf(w,s.precedence,n));return o.instance}function lf(n,o,s){for(var w=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),_=w.length?w[w.length-1]:null,L=_,G=0;G<w.length;G++){var q=w[G];if(q.dataset.precedence===o)L=q;else if(L!==_)break}L?L.parentNode.insertBefore(n,L.nextSibling):(o=s.nodeType===9?s.head:s,o.insertBefore(n,o.firstChild))}function N0(n,o){n.crossOrigin==null&&(n.crossOrigin=o.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=o.referrerPolicy),n.title==null&&(n.title=o.title)}function R0(n,o){n.crossOrigin==null&&(n.crossOrigin=o.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=o.referrerPolicy),n.integrity==null&&(n.integrity=o.integrity)}function cf(n,o,s){if(oS===null){var w=new Map,_=oS=new Map;_.set(s,w)}else _=oS,w=_.get(s),w||(w=new Map,_.set(s,w));if(w.has(n))return w;for(w.set(n,null),s=s.getElementsByTagName(n),_=0;_<s.length;_++){var L=s[_];if(!(L[wf]||L[So]||n==="link"&&L.getAttribute("rel")==="stylesheet")&&L.namespaceURI!==cn){var G=L.getAttribute(o)||"";G=n+G;var q=w.get(G);q?q.push(L):w.set(G,[L])}}return w}function qw(n,o,s){n=n.ownerDocument||n,n.head.insertBefore(s,o==="title"?n.querySelector("head > title"):null)}function Kw(n,o,s){var w=!s.ancestorInfo.containerTagInScope;if(s.context===xb||o.itemProp!=null)return!w||o.itemProp==null||n!=="meta"&&n!=="title"&&n!=="style"&&n!=="link"&&n!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",n,n),!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href===""){w&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError){if(o.rel==="stylesheet"&&typeof o.precedence=="string"){n=o.href;var _=o.onError,L=o.disabled;s=[],o.onLoad&&s.push("`onLoad`"),_&&s.push("`onError`"),L!=null&&s.push("`disabled`"),_=Rw(s,"and"),_+=s.length===1?" prop":" props",L=s.length===1?"an "+_:"the "+_,s.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',n,L,_)}w&&(typeof o.rel!="string"||typeof o.href!="string"||o.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(o.onError||o.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(o.rel){case"stylesheet":return n=o.precedence,o=o.disabled,typeof n!="string"&&w&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof n=="string"&&o==null;default:return!0}case"script":if(n=o.async&&typeof o.async!="function"&&typeof o.async!="symbol",!n||o.onLoad||o.onError||!o.src||typeof o.src!="string"){w&&(n?o.onLoad||o.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":w&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",n)}return!1}function En(n){return!(n.type==="stylesheet"&&(n.state.loading&LL)===qm)}function L0(n,o,s,w){if(s.type==="stylesheet"&&(typeof w.media!="string"||matchMedia(w.media).matches!==!1)&&(s.state.loading&fl)===qm){if(s.instance===null){var _=Pu(w.href),L=o.querySelector(pm(_));if(L){o=L._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(n.count++,n=uf.bind(n),o.then(n,n)),s.state.loading|=fl,s.instance=L,Ce(L);return}L=o.ownerDocument||o,w=Lg(w),(_=hl.get(_))&&N0(w,_),L=L.createElement("link"),Ce(L);var G=L;G._p=new Promise(function(q,ne){G.onload=q,G.onerror=ne}),wo(L,"link",w),s.instance=L}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(s,o),(o=s.state.preload)&&(s.state.loading&LL)===qm&&(n.count++,s=uf.bind(n),o.addEventListener("load",s),o.addEventListener("error",s))}}function Dg(n,o){return n.stylesheets&&n.count===0&&bm(n,n.stylesheets),0<n.count||0<n.imgCount?function(s){var w=setTimeout(function(){if(n.stylesheets&&bm(n,n.stylesheets),n.unsuspend){var L=n.unsuspend;n.unsuspend=null,L()}},Uj+o);0<n.imgBytes&&ix===0&&(ix=125*Lw()*jj);var _=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&bm(n,n.stylesheets),n.unsuspend)){var L=n.unsuspend;n.unsuspend=null,L()}},(n.imgBytes>ix?50:Hj)+o);return n.unsuspend=s,function(){n.unsuspend=null,clearTimeout(w),clearTimeout(_)}}:null}function uf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)bm(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}function bm(n,o){n.stylesheets=null,n.unsuspend!==null&&(n.count++,iS=new Map,o.forEach(O0,n),iS=null,uf.call(n))}function O0(n,o){if(!(o.state.loading&fl)){var s=iS.get(n);if(s)var w=s.get(rx);else{s=new Map,iS.set(n,s);for(var _=n.querySelectorAll("link[data-precedence],style[data-precedence]"),L=0;L<_.length;L++){var G=_[L];(G.nodeName==="LINK"||G.getAttribute("media")!=="not all")&&(s.set(G.dataset.precedence,G),w=G)}w&&s.set(rx,w)}_=o.instance,G=_.getAttribute("data-precedence"),L=s.get(G)||w,L===w&&s.set(rx,_),s.set(G,_),this.count++,w=uf.bind(this),_.addEventListener("load",w),_.addEventListener("error",w),L?L.parentNode.insertBefore(_,L.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(_,n.firstChild)),o.state.loading|=fl}}function vm(n,o,s,w,_,L,G,q,ne){for(this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Xm,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ot(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ot(0),this.hiddenUpdates=ot(null),this.identifierPrefix=w,this.onUncaughtError=_,this.onCaughtError=L,this.onRecoverableError=G,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ne,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,n=this.pendingUpdatersLaneMap=[],o=0;31>o;o++)n.push(new Set);this._debugRootType=s?"hydrateRoot()":"createRoot()"}function ym(n,o,s,w,_,L,G,q,ne,oe,Se,Ae){return n=new vm(n,o,s,G,ne,oe,Se,Ae,q),o=cj,L===!0&&(o|=Dr|Wl),o|=fn,L=d(3,null,null,o),n.current=L,L.stateNode=n,o=Op(),yu(o),n.pooledCache=o,yu(o),L.memoizedState={element:w,isDehydrated:s,cache:o},wn(L),n}function Zw(n){return n?(n=Cf,n):Cf}function Mg(n,o,s,w,_,L){if(li&&typeof li.onScheduleFiberRoot=="function")try{li.onScheduleFiberRoot(Xu,w,s)}catch(G){Js||(Js=!0,console.error("React instrumentation encountered an error: %o",G))}_=Zw(_),w.context===null?w.context=_:w.pendingContext=_,Zs&&Or!==null&&!IL&&(IL=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
255
255
 
256
- Check the render method of %s.`,j(Or)||"Unknown")),w=ri(o),w.payload={element:s},L=L===void 0?null:L,L!==null&&(typeof L!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",L),w.callback=L),s=ks(n,w,o),s!==null&&(Os(o,"root.render()",null),Wt(s,n,o),Ma(s,n,o))}function Jw(n,o){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var s=n.retryLane;n.retryLane=s!==0&&s<o?s:o}}function D0(n,o){Jw(n,o),(n=n.alternate)&&Jw(n,o)}function M0(n){if(n.tag===13||n.tag===31){var o=Fi(n,67108864);o!==null&&Wt(o,n,67108864),D0(n,67108864)}}function k0(n){if(n.tag===13||n.tag===31){var o=Vi(n);o=Lt(o);var s=Fi(n,o);s!==null&&Wt(s,n,o),D0(n,o)}}function to(){return Or}function I0(n,o,s,w){var _=Ue.T;Ue.T=null;var L=zn.p;try{zn.p=ci,$0(n,o,s,w)}finally{zn.p=L,Ue.T=_}}function $i(n,o,s,w){var _=Ue.T;Ue.T=null;var L=zn.p;try{zn.p=Hi,$0(n,o,s,w)}finally{zn.p=L,Ue.T=_}}function $0(n,o,s,w){if(aS){var _=kg(w);if(_===null)us(n,o,w,sS,s),$g(n,w);else if(e1(_,n,o,s,w))w.stopPropagation();else if($g(n,w),o&4&&-1<Bj.indexOf(n)){for(;_!==null;){var L=yt(_);if(L!==null)switch(L.tag){case 3:if(L=L.stateNode,L.current.memoizedState.isDehydrated){var G=ct(L.pendingLanes);if(G!==0){var q=L;for(q.pendingLanes|=2,q.entangledLanes|=2;G;){var ne=1<<31-Ui(G);q.entanglements[1]|=ne,G&=~ne}Cr(L),(Mn&(zi|Es))===Xi&&(P1=Ai()+cL,Ws(0))}}break;case 31:case 13:q=Fi(L,2),q!==null&&Wt(q,L,2),Jr(),D0(L,2)}if(L=kg(w),L===null&&us(n,o,w,sS,s),L===_)break;_=L}_!==null&&w.stopPropagation()}else us(n,o,w,null,s)}}function kg(n){return n=Br(n),U0(n)}function U0(n){if(sS=null,n=ut(n),n!==null){var o=A(n);if(o===null)n=null;else{var s=o.tag;if(s===13){if(n=N(o),n!==null)return n;n=null}else if(s===31){if(n=O(o),n!==null)return n;n=null}else if(s===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;n=null}else o!==n&&(n=null)}}return sS=n,null}function Ig(n){switch(n){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 ci;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 Hi;case"message":switch(xm()){case W0:return ci;case Gg:return Hi;case Yu:case a1:return Qi;case Qg:return Fc;default:return Qi}default:return Qi}}function $g(n,o){switch(n){case"focusin":case"focusout":Pf=null;break;case"dragenter":case"dragleave":Vf=null;break;case"mouseover":case"mouseout":Gf=null;break;case"pointerover":case"pointerout":By.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fy.delete(o.pointerId)}}function Hc(n,o,s,w,_,L){return n===null||n.nativeEvent!==L?(n={blockedOn:o,domEventName:s,eventSystemFlags:w,nativeEvent:L,targetContainers:[_]},o!==null&&(o=yt(o),o!==null&&M0(o)),n):(n.eventSystemFlags|=w,o=n.targetContainers,_!==null&&o.indexOf(_)===-1&&o.push(_),n)}function e1(n,o,s,w,_){switch(o){case"focusin":return Pf=Hc(Pf,n,o,s,w,_),!0;case"dragenter":return Vf=Hc(Vf,n,o,s,w,_),!0;case"mouseover":return Gf=Hc(Gf,n,o,s,w,_),!0;case"pointerover":var L=_.pointerId;return By.set(L,Hc(By.get(L)||null,n,o,s,w,_)),!0;case"gotpointercapture":return L=_.pointerId,Fy.set(L,Hc(Fy.get(L)||null,n,o,s,w,_)),!0}return!1}function H0(n){var o=ut(n.target);if(o!==null){var s=A(o);if(s!==null){if(o=s.tag,o===13){if(o=N(s),o!==null){n.blockedOn=o,bt(n.priority,function(){k0(s)});return}}else if(o===31){if(o=O(s),o!==null){n.blockedOn=o,bt(n.priority,function(){k0(s)});return}}else if(o===3&&s.stateNode.current.memoizedState.isDehydrated){n.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}n.blockedOn=null}function df(n){if(n.blockedOn!==null)return!1;for(var o=n.targetContainers;0<o.length;){var s=kg(n.nativeEvent);if(s===null){s=n.nativeEvent;var w=new s.constructor(s.type,s),_=w;Z0!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Z0=_,s.target.dispatchEvent(w),Z0===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Z0=null}else return o=yt(s),o!==null&&M0(o),n.blockedOn=s,!1;o.shift()}return!0}function Ug(n,o,s){df(n)&&s.delete(o)}function QT(){ax=!1,Pf!==null&&df(Pf)&&(Pf=null),Vf!==null&&df(Vf)&&(Vf=null),Gf!==null&&df(Gf)&&(Gf=null),By.forEach(Ug),Fy.forEach(Ug)}function Em(n,o){n.blockedOn===o&&(n.blockedOn=null,ax||(ax=!0,Wo.unstable_scheduleCallback(Wo.unstable_NormalPriority,QT)))}function t1(n){lS!==n&&(lS=n,Wo.unstable_scheduleCallback(Wo.unstable_NormalPriority,function(){lS===n&&(lS=null);for(var o=0;o<n.length;o+=3){var s=n[o],w=n[o+1],_=n[o+2];if(typeof w!="function"){if(U0(w||s)===null)continue;break}var L=yt(s);L!==null&&(n.splice(o,3),o-=3,s={pending:!0,data:_,method:s.method,action:w},Object.freeze(s),$l(L,s,w,_))}}))}function Gu(n){function o(ne){return Em(ne,n)}Pf!==null&&Em(Pf,n),Vf!==null&&Em(Vf,n),Gf!==null&&Em(Gf,n),By.forEach(o),Fy.forEach(o);for(var s=0;s<Qf.length;s++){var w=Qf[s];w.blockedOn===n&&(w.blockedOn=null)}for(;0<Qf.length&&(s=Qf[0],s.blockedOn===null);)H0(s),s.blockedOn===null&&Qf.shift();if(s=(n.ownerDocument||n).$$reactFormReplay,s!=null)for(w=0;w<s.length;w+=3){var _=s[w],L=s[w+1],G=_[gr]||null;if(typeof L=="function")G||t1(s);else if(G){var q=null;if(L&&L.hasAttribute("formAction")){if(_=L,G=L[gr]||null)q=G.formAction;else if(U0(_)!==null)continue}else q=G.action;typeof q=="function"?s[w+1]=q:(s.splice(w,3),w-=3),t1(s)}}}function n1(){function n(L){L.canIntercept&&L.info==="react-transition"&&L.intercept({handler:function(){return new Promise(function(G){return _=G})},focusReset:"manual",scroll:"manual"})}function o(){_!==null&&(_(),_=null),w||setTimeout(s,20)}function s(){if(!w&&!navigation.transition){var L=navigation.currentEntry;L&&L.url!=null&&navigation.navigate(L.url,{state:L.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var w=!1,_=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",o),navigation.addEventListener("navigateerror",o),setTimeout(s,100),function(){w=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",o),navigation.removeEventListener("navigateerror",o),_!==null&&(_(),_=null)}}}function j0(n){this._internalRoot=n}function hs(n){this._internalRoot=n}function z0(n){n[Ql]&&(n._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Wo=g5(),wm=Y,WT=wl,dn=Object.assign,o1=Symbol.for("react.element"),Ua=Symbol.for("react.transitional.element"),jc=Symbol.for("react.portal"),ff=Symbol.for("react.fragment"),pr=Symbol.for("react.strict_mode"),Sm=Symbol.for("react.profiler"),Hg=Symbol.for("react.consumer"),ms=Symbol.for("react.context"),hf=Symbol.for("react.forward_ref"),Qu=Symbol.for("react.suspense"),Lr=Symbol.for("react.suspense_list"),Tm=Symbol.for("react.memo"),Gi=Symbol.for("react.lazy"),ps=Symbol.for("react.activity"),YT=Symbol.for("react.memo_cache_sentinel"),i1=Symbol.iterator,mf=Symbol.for("react.client.reference"),ei=Array.isArray,Ue=wm.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,zn=WT.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,XT=Object.freeze({pending:!1,data:null,method:null,action:null}),B0=[],F0=[],Gl=-1,zc=X(null),pf=X(null),ta=X(null),Bc=X(null),gf=0,r1,Wu,bf,P0,Am,jg,zg;K.__reactDisabledLog=!0;var vf,V0,Bg=!1,G0=new(typeof WeakMap=="function"?WeakMap:Map),Or=null,Zs=!1,na=Object.prototype.hasOwnProperty,Q0=Wo.unstable_scheduleCallback,Fg=Wo.unstable_cancelCallback,Pg=Wo.unstable_shouldYield,Vg=Wo.unstable_requestPaint,Ai=Wo.unstable_now,xm=Wo.unstable_getCurrentPriorityLevel,W0=Wo.unstable_ImmediatePriority,Gg=Wo.unstable_UserBlockingPriority,Yu=Wo.unstable_NormalPriority,a1=Wo.unstable_LowPriority,Qg=Wo.unstable_IdlePriority,Y0=Wo.log,s1=Wo.unstable_setDisableYieldValue,Xu=null,li=null,Js=!1,el=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Ui=Math.clz32?Math.clz32:tt,X0=Math.log,Wg=Math.LN2,yf=256,_m=262144,Ef=4194304,ci=2,Hi=8,Qi=32,Fc=268435456,Ha=Math.random().toString(36).slice(2),So="__reactFiber$"+Ha,gr="__reactProps$"+Ha,Ql="__reactContainer$"+Ha,qu="__reactEvents$"+Ha,qT="__reactListeners$"+Ha,l1="__reactHandles$"+Ha,Cm="__reactResources$"+Ha,wf="__reactMarker$"+Ha,c1=new Set,tl={},Sf={},u1={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Tf=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),q0={},Yg={},Xg=/[\n"\\]/g,K0=!1,d1=!1,Nm=!1,r=!1,l=!1,v=!1,x=["value","defaultValue"],z=!1,V=/["'&<>\n\t]|^\s|\s$/,ee="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),le="applet caption html table td th marquee object template foreignObject desc title".split(" "),be=le.concat(["button"]),Me="dd dt li option optgroup p rp rt".split(" "),Fe={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},We={},ke={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},He=/([A-Z])/g,wt=/^ms-/,zt=/^(?:webkit|moz|o)[A-Z]/,no=/^-ms-/,Ne=/-(.)/g,Te=/;\s*$/,Oe={},Qe={},Ot=!1,Dn=!1,At=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(" ")),nn="http://www.w3.org/1998/Math/MathML",cn="http://www.w3.org/2000/svg",$n=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"]]),gs={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},f1={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},qg={},wH=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),SH=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),UN=!1,oa={},HN=/^on./,TH=/^on[^A-Z]/,AH=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),xH=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),_H=/^[\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,Z0=null,Kg=null,Zg=null,KT=!1,Pc=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ZT=!1;if(Pc)try{var J0={};Object.defineProperty(J0,"passive",{get:function(){ZT=!0}}),window.addEventListener("test",J0,J0),window.removeEventListener("test",J0,J0)}catch{ZT=!1}var Af=null,JT=null,h1=null,Rm={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},m1=Bo(Rm),ey=dn({},Rm,{view:0,detail:0}),CH=Bo(ey),eA,tA,ty,p1=dn({},ey,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dc,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==ty&&(ty&&n.type==="mousemove"?(eA=n.screenX-ty.screenX,tA=n.screenY-ty.screenY):tA=eA=0,ty=n),eA)},movementY:function(n){return"movementY"in n?n.movementY:tA}}),jN=Bo(p1),NH=dn({},p1,{dataTransfer:0}),RH=Bo(NH),LH=dn({},ey,{relatedTarget:0}),nA=Bo(LH),OH=dn({},Rm,{animationName:0,elapsedTime:0,pseudoElement:0}),DH=Bo(OH),MH=dn({},Rm,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),kH=Bo(MH),IH=dn({},Rm,{data:0}),zN=Bo(IH),$H=zN,UH={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},HH={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"},jH={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},zH=dn({},ey,{key:function(n){if(n.key){var o=UH[n.key]||n.key;if(o!=="Unidentified")return o}return n.type==="keypress"?(n=fu(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?HH[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dc,charCode:function(n){return n.type==="keypress"?fu(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?fu(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),BH=Bo(zH),FH=dn({},p1,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),BN=Bo(FH),PH=dn({},ey,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dc}),VH=Bo(PH),GH=dn({},Rm,{propertyName:0,elapsedTime:0,pseudoElement:0}),QH=Bo(GH),WH=dn({},p1,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),YH=Bo(WH),XH=dn({},Rm,{newState:0,oldState:0}),qH=Bo(XH),KH=[9,13,27,32],FN=229,oA=Pc&&"CompositionEvent"in window,ny=null;Pc&&"documentMode"in document&&(ny=document.documentMode);var ZH=Pc&&"TextEvent"in window&&!ny,PN=Pc&&(!oA||ny&&8<ny&&11>=ny),VN=32,GN=String.fromCharCode(VN),QN=!1,Jg=!1,JH={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},oy=null,iy=null,WN=!1;Pc&&(WN=ce("input")&&(!document.documentMode||9<document.documentMode));var ia=typeof Object.is=="function"?Object.is:Bi,ej=Pc&&"documentMode"in document&&11>=document.documentMode,eb=null,iA=null,ry=null,rA=!1,tb={animationend:xa("Animation","AnimationEnd"),animationiteration:xa("Animation","AnimationIteration"),animationstart:xa("Animation","AnimationStart"),transitionrun:xa("Transition","TransitionRun"),transitionstart:xa("Transition","TransitionStart"),transitioncancel:xa("Transition","TransitionCancel"),transitionend:xa("Transition","TransitionEnd")},aA={},YN={};Pc&&(YN=document.createElement("div").style,"AnimationEvent"in window||(delete tb.animationend.animation,delete tb.animationiteration.animation,delete tb.animationstart.animation),"TransitionEvent"in window||delete tb.transitionend.transition);var XN=_a("animationend"),qN=_a("animationiteration"),KN=_a("animationstart"),tj=_a("transitionrun"),nj=_a("transitionstart"),oj=_a("transitioncancel"),ZN=_a("transitionend"),JN=new Map,sA="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(" ");sA.push("scrollEnd");var eR=0;if(typeof performance=="object"&&typeof performance.now=="function")var ij=performance,tR=function(){return ij.now()};else{var rj=Date;tR=function(){return rj.now()}}var lA=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},aj="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",g1=0,cA=1,uA=2,dA=3,b1="– ",v1="+ ",nR="  ",To=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",nl="Components ⚛",An="Scheduler ⚛",Nn="Blocking",xf=!1,Ku={color:"primary",properties:null,tooltipText:"",track:nl},_f={start:-0,end:-0,detail:{devtools:Ku}},sj=["Changed Props",""],oR="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",lj=["Changed Props",oR],ay=1,Zu=2,ol=[],nb=0,fA=0,Cf={};Object.freeze(Cf);var il=null,ob=null,Vt=0,cj=1,fn=2,Dr=8,Wl=16,uj=32,iR=!1;try{var rR=Object.preventExtensions({})}catch{iR=!0}var hA=new WeakMap,ib=[],rb=0,y1=null,sy=0,rl=[],al=0,Lm=null,Ju=1,ed="",br=null,Ao=null,Tn=!1,Vc=!1,bs=null,Nf=null,sl=!1,mA=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),pA=X(null),gA=X(null),aR={},E1=null,ab=null,sb=!1,dj=typeof AbortController<"u"?AbortController:function(){var n=[],o=this.signal={aborted:!1,addEventListener:function(s,w){n.push(w)}};this.abort=function(){o.aborted=!0,n.forEach(function(s){return s()})}},fj=Wo.unstable_scheduleCallback,hj=Wo.unstable_NormalPriority,xi={$$typeof:ms,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},_i=Wo.unstable_now,w1=console.createTask?console.createTask:function(){return null},ly=1,S1=2,Wi=-0,Rf=-0,td=-0,nd=null,ra=-1.1,Om=-0,$o=-0,Ut=-1.1,Bt=-1.1,Do=null,Yo=!1,Dm=-0,Gc=-1.1,cy=null,Lf=0,bA=null,vA=null,Mm=-1.1,uy=null,lb=-1.1,T1=-1.1,od=-0,id=-1.1,ll=-1.1,yA=0,dy=null,sR=null,lR=null,Of=-1.1,km=null,Df=-1.1,A1=-1.1,cR=-0,uR=-0,x1=0,mj=null,dR=0,fy=-1.1,_1=!1,C1=!1,hy=null,EA=0,Im=0,cb=null,fR=Ue.S;Ue.S=function(n,o){if(sL=Ai(),typeof o=="object"&&o!==null&&typeof o.then=="function"){if(0>id&&0>ll){id=_i();var s=rf(),w=qs();(s!==Df||w!==km)&&(Df=-1.1),Of=s,km=w}Rl(n,o)}fR!==null&&fR(n,o)};var $m=X(null),Yl={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},my=[],py=[],gy=[],by=[],vy=[],yy=[],Um=new Set;Yl.recordUnsafeLifecycleWarnings=function(n,o){Um.has(n.type)||(typeof o.componentWillMount=="function"&&o.componentWillMount.__suppressDeprecationWarning!==!0&&my.push(n),n.mode&Dr&&typeof o.UNSAFE_componentWillMount=="function"&&py.push(n),typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&gy.push(n),n.mode&Dr&&typeof o.UNSAFE_componentWillReceiveProps=="function"&&by.push(n),typeof o.componentWillUpdate=="function"&&o.componentWillUpdate.__suppressDeprecationWarning!==!0&&vy.push(n),n.mode&Dr&&typeof o.UNSAFE_componentWillUpdate=="function"&&yy.push(n))},Yl.flushPendingUnsafeLifecycleWarnings=function(){var n=new Set;0<my.length&&(my.forEach(function(q){n.add(j(q)||"Component"),Um.add(q.type)}),my=[]);var o=new Set;0<py.length&&(py.forEach(function(q){o.add(j(q)||"Component"),Um.add(q.type)}),py=[]);var s=new Set;0<gy.length&&(gy.forEach(function(q){s.add(j(q)||"Component"),Um.add(q.type)}),gy=[]);var w=new Set;0<by.length&&(by.forEach(function(q){w.add(j(q)||"Component"),Um.add(q.type)}),by=[]);var _=new Set;0<vy.length&&(vy.forEach(function(q){_.add(j(q)||"Component"),Um.add(q.type)}),vy=[]);var L=new Set;if(0<yy.length&&(yy.forEach(function(q){L.add(j(q)||"Component"),Um.add(q.type)}),yy=[]),0<o.size){var G=u(o);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
256
+ Check the render method of %s.`,j(Or)||"Unknown")),w=ri(o),w.payload={element:s},L=L===void 0?null:L,L!==null&&(typeof L!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",L),w.callback=L),s=ks(n,w,o),s!==null&&(Os(o,"root.render()",null),Wt(s,n,o),Ma(s,n,o))}function Jw(n,o){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var s=n.retryLane;n.retryLane=s!==0&&s<o?s:o}}function D0(n,o){Jw(n,o),(n=n.alternate)&&Jw(n,o)}function M0(n){if(n.tag===13||n.tag===31){var o=Fi(n,67108864);o!==null&&Wt(o,n,67108864),D0(n,67108864)}}function k0(n){if(n.tag===13||n.tag===31){var o=Vi(n);o=Lt(o);var s=Fi(n,o);s!==null&&Wt(s,n,o),D0(n,o)}}function to(){return Or}function I0(n,o,s,w){var _=Ue.T;Ue.T=null;var L=zn.p;try{zn.p=ci,$0(n,o,s,w)}finally{zn.p=L,Ue.T=_}}function $i(n,o,s,w){var _=Ue.T;Ue.T=null;var L=zn.p;try{zn.p=Hi,$0(n,o,s,w)}finally{zn.p=L,Ue.T=_}}function $0(n,o,s,w){if(aS){var _=kg(w);if(_===null)us(n,o,w,sS,s),$g(n,w);else if(e1(_,n,o,s,w))w.stopPropagation();else if($g(n,w),o&4&&-1<Bj.indexOf(n)){for(;_!==null;){var L=yt(_);if(L!==null)switch(L.tag){case 3:if(L=L.stateNode,L.current.memoizedState.isDehydrated){var G=ct(L.pendingLanes);if(G!==0){var q=L;for(q.pendingLanes|=2,q.entangledLanes|=2;G;){var ne=1<<31-Ui(G);q.entanglements[1]|=ne,G&=~ne}Cr(L),(Mn&(zi|Es))===Xi&&(P1=Ai()+cL,Ws(0))}}break;case 31:case 13:q=Fi(L,2),q!==null&&Wt(q,L,2),Jr(),D0(L,2)}if(L=kg(w),L===null&&us(n,o,w,sS,s),L===_)break;_=L}_!==null&&w.stopPropagation()}else us(n,o,w,null,s)}}function kg(n){return n=Br(n),U0(n)}function U0(n){if(sS=null,n=ut(n),n!==null){var o=A(n);if(o===null)n=null;else{var s=o.tag;if(s===13){if(n=N(o),n!==null)return n;n=null}else if(s===31){if(n=O(o),n!==null)return n;n=null}else if(s===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;n=null}else o!==n&&(n=null)}}return sS=n,null}function Ig(n){switch(n){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 ci;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 Hi;case"message":switch(xm()){case W0:return ci;case Gg:return Hi;case Yu:case a1:return Qi;case Qg:return Fc;default:return Qi}default:return Qi}}function $g(n,o){switch(n){case"focusin":case"focusout":Pf=null;break;case"dragenter":case"dragleave":Vf=null;break;case"mouseover":case"mouseout":Gf=null;break;case"pointerover":case"pointerout":By.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fy.delete(o.pointerId)}}function Hc(n,o,s,w,_,L){return n===null||n.nativeEvent!==L?(n={blockedOn:o,domEventName:s,eventSystemFlags:w,nativeEvent:L,targetContainers:[_]},o!==null&&(o=yt(o),o!==null&&M0(o)),n):(n.eventSystemFlags|=w,o=n.targetContainers,_!==null&&o.indexOf(_)===-1&&o.push(_),n)}function e1(n,o,s,w,_){switch(o){case"focusin":return Pf=Hc(Pf,n,o,s,w,_),!0;case"dragenter":return Vf=Hc(Vf,n,o,s,w,_),!0;case"mouseover":return Gf=Hc(Gf,n,o,s,w,_),!0;case"pointerover":var L=_.pointerId;return By.set(L,Hc(By.get(L)||null,n,o,s,w,_)),!0;case"gotpointercapture":return L=_.pointerId,Fy.set(L,Hc(Fy.get(L)||null,n,o,s,w,_)),!0}return!1}function H0(n){var o=ut(n.target);if(o!==null){var s=A(o);if(s!==null){if(o=s.tag,o===13){if(o=N(s),o!==null){n.blockedOn=o,bt(n.priority,function(){k0(s)});return}}else if(o===31){if(o=O(s),o!==null){n.blockedOn=o,bt(n.priority,function(){k0(s)});return}}else if(o===3&&s.stateNode.current.memoizedState.isDehydrated){n.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}n.blockedOn=null}function df(n){if(n.blockedOn!==null)return!1;for(var o=n.targetContainers;0<o.length;){var s=kg(n.nativeEvent);if(s===null){s=n.nativeEvent;var w=new s.constructor(s.type,s),_=w;Z0!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Z0=_,s.target.dispatchEvent(w),Z0===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Z0=null}else return o=yt(s),o!==null&&M0(o),n.blockedOn=s,!1;o.shift()}return!0}function Ug(n,o,s){df(n)&&s.delete(o)}function QT(){ax=!1,Pf!==null&&df(Pf)&&(Pf=null),Vf!==null&&df(Vf)&&(Vf=null),Gf!==null&&df(Gf)&&(Gf=null),By.forEach(Ug),Fy.forEach(Ug)}function Em(n,o){n.blockedOn===o&&(n.blockedOn=null,ax||(ax=!0,Wo.unstable_scheduleCallback(Wo.unstable_NormalPriority,QT)))}function t1(n){lS!==n&&(lS=n,Wo.unstable_scheduleCallback(Wo.unstable_NormalPriority,function(){lS===n&&(lS=null);for(var o=0;o<n.length;o+=3){var s=n[o],w=n[o+1],_=n[o+2];if(typeof w!="function"){if(U0(w||s)===null)continue;break}var L=yt(s);L!==null&&(n.splice(o,3),o-=3,s={pending:!0,data:_,method:s.method,action:w},Object.freeze(s),$l(L,s,w,_))}}))}function Gu(n){function o(ne){return Em(ne,n)}Pf!==null&&Em(Pf,n),Vf!==null&&Em(Vf,n),Gf!==null&&Em(Gf,n),By.forEach(o),Fy.forEach(o);for(var s=0;s<Qf.length;s++){var w=Qf[s];w.blockedOn===n&&(w.blockedOn=null)}for(;0<Qf.length&&(s=Qf[0],s.blockedOn===null);)H0(s),s.blockedOn===null&&Qf.shift();if(s=(n.ownerDocument||n).$$reactFormReplay,s!=null)for(w=0;w<s.length;w+=3){var _=s[w],L=s[w+1],G=_[gr]||null;if(typeof L=="function")G||t1(s);else if(G){var q=null;if(L&&L.hasAttribute("formAction")){if(_=L,G=L[gr]||null)q=G.formAction;else if(U0(_)!==null)continue}else q=G.action;typeof q=="function"?s[w+1]=q:(s.splice(w,3),w-=3),t1(s)}}}function n1(){function n(L){L.canIntercept&&L.info==="react-transition"&&L.intercept({handler:function(){return new Promise(function(G){return _=G})},focusReset:"manual",scroll:"manual"})}function o(){_!==null&&(_(),_=null),w||setTimeout(s,20)}function s(){if(!w&&!navigation.transition){var L=navigation.currentEntry;L&&L.url!=null&&navigation.navigate(L.url,{state:L.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var w=!1,_=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",o),navigation.addEventListener("navigateerror",o),setTimeout(s,100),function(){w=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",o),navigation.removeEventListener("navigateerror",o),_!==null&&(_(),_=null)}}}function j0(n){this._internalRoot=n}function hs(n){this._internalRoot=n}function z0(n){n[Ql]&&(n._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Wo=g5(),wm=Y,WT=wl,dn=Object.assign,o1=Symbol.for("react.element"),Ua=Symbol.for("react.transitional.element"),jc=Symbol.for("react.portal"),ff=Symbol.for("react.fragment"),pr=Symbol.for("react.strict_mode"),Sm=Symbol.for("react.profiler"),Hg=Symbol.for("react.consumer"),ms=Symbol.for("react.context"),hf=Symbol.for("react.forward_ref"),Qu=Symbol.for("react.suspense"),Lr=Symbol.for("react.suspense_list"),Tm=Symbol.for("react.memo"),Gi=Symbol.for("react.lazy"),ps=Symbol.for("react.activity"),YT=Symbol.for("react.memo_cache_sentinel"),i1=Symbol.iterator,mf=Symbol.for("react.client.reference"),ei=Array.isArray,Ue=wm.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,zn=WT.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,XT=Object.freeze({pending:!1,data:null,method:null,action:null}),B0=[],F0=[],Gl=-1,zc=X(null),pf=X(null),ta=X(null),Bc=X(null),gf=0,r1,Wu,bf,P0,Am,jg,zg;K.__reactDisabledLog=!0;var vf,V0,Bg=!1,G0=new(typeof WeakMap=="function"?WeakMap:Map),Or=null,Zs=!1,na=Object.prototype.hasOwnProperty,Q0=Wo.unstable_scheduleCallback,Fg=Wo.unstable_cancelCallback,Pg=Wo.unstable_shouldYield,Vg=Wo.unstable_requestPaint,Ai=Wo.unstable_now,xm=Wo.unstable_getCurrentPriorityLevel,W0=Wo.unstable_ImmediatePriority,Gg=Wo.unstable_UserBlockingPriority,Yu=Wo.unstable_NormalPriority,a1=Wo.unstable_LowPriority,Qg=Wo.unstable_IdlePriority,Y0=Wo.log,s1=Wo.unstable_setDisableYieldValue,Xu=null,li=null,Js=!1,el=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Ui=Math.clz32?Math.clz32:nt,X0=Math.log,Wg=Math.LN2,yf=256,_m=262144,Ef=4194304,ci=2,Hi=8,Qi=32,Fc=268435456,Ha=Math.random().toString(36).slice(2),So="__reactFiber$"+Ha,gr="__reactProps$"+Ha,Ql="__reactContainer$"+Ha,qu="__reactEvents$"+Ha,qT="__reactListeners$"+Ha,l1="__reactHandles$"+Ha,Cm="__reactResources$"+Ha,wf="__reactMarker$"+Ha,c1=new Set,tl={},Sf={},u1={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Tf=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),q0={},Yg={},Xg=/[\n"\\]/g,K0=!1,d1=!1,Nm=!1,r=!1,l=!1,v=!1,x=["value","defaultValue"],z=!1,V=/["'&<>\n\t]|^\s|\s$/,ee="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),le="applet caption html table td th marquee object template foreignObject desc title".split(" "),be=le.concat(["button"]),Me="dd dt li option optgroup p rp rt".split(" "),Fe={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},We={},ke={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},He=/([A-Z])/g,wt=/^ms-/,zt=/^(?:webkit|moz|o)[A-Z]/,no=/^-ms-/,Ne=/-(.)/g,Te=/;\s*$/,Oe={},Qe={},Ot=!1,Dn=!1,At=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(" ")),nn="http://www.w3.org/1998/Math/MathML",cn="http://www.w3.org/2000/svg",$n=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"]]),gs={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},f1={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},qg={},wH=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),SH=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),UN=!1,oa={},HN=/^on./,TH=/^on[^A-Z]/,AH=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),xH=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),_H=/^[\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,Z0=null,Kg=null,Zg=null,KT=!1,Pc=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ZT=!1;if(Pc)try{var J0={};Object.defineProperty(J0,"passive",{get:function(){ZT=!0}}),window.addEventListener("test",J0,J0),window.removeEventListener("test",J0,J0)}catch{ZT=!1}var Af=null,JT=null,h1=null,Rm={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},m1=Bo(Rm),ey=dn({},Rm,{view:0,detail:0}),CH=Bo(ey),eA,tA,ty,p1=dn({},ey,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dc,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==ty&&(ty&&n.type==="mousemove"?(eA=n.screenX-ty.screenX,tA=n.screenY-ty.screenY):tA=eA=0,ty=n),eA)},movementY:function(n){return"movementY"in n?n.movementY:tA}}),jN=Bo(p1),NH=dn({},p1,{dataTransfer:0}),RH=Bo(NH),LH=dn({},ey,{relatedTarget:0}),nA=Bo(LH),OH=dn({},Rm,{animationName:0,elapsedTime:0,pseudoElement:0}),DH=Bo(OH),MH=dn({},Rm,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),kH=Bo(MH),IH=dn({},Rm,{data:0}),zN=Bo(IH),$H=zN,UH={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},HH={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"},jH={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},zH=dn({},ey,{key:function(n){if(n.key){var o=UH[n.key]||n.key;if(o!=="Unidentified")return o}return n.type==="keypress"?(n=fu(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?HH[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dc,charCode:function(n){return n.type==="keypress"?fu(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?fu(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),BH=Bo(zH),FH=dn({},p1,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),BN=Bo(FH),PH=dn({},ey,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dc}),VH=Bo(PH),GH=dn({},Rm,{propertyName:0,elapsedTime:0,pseudoElement:0}),QH=Bo(GH),WH=dn({},p1,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),YH=Bo(WH),XH=dn({},Rm,{newState:0,oldState:0}),qH=Bo(XH),KH=[9,13,27,32],FN=229,oA=Pc&&"CompositionEvent"in window,ny=null;Pc&&"documentMode"in document&&(ny=document.documentMode);var ZH=Pc&&"TextEvent"in window&&!ny,PN=Pc&&(!oA||ny&&8<ny&&11>=ny),VN=32,GN=String.fromCharCode(VN),QN=!1,Jg=!1,JH={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},oy=null,iy=null,WN=!1;Pc&&(WN=ce("input")&&(!document.documentMode||9<document.documentMode));var ia=typeof Object.is=="function"?Object.is:Bi,ej=Pc&&"documentMode"in document&&11>=document.documentMode,eb=null,iA=null,ry=null,rA=!1,tb={animationend:xa("Animation","AnimationEnd"),animationiteration:xa("Animation","AnimationIteration"),animationstart:xa("Animation","AnimationStart"),transitionrun:xa("Transition","TransitionRun"),transitionstart:xa("Transition","TransitionStart"),transitioncancel:xa("Transition","TransitionCancel"),transitionend:xa("Transition","TransitionEnd")},aA={},YN={};Pc&&(YN=document.createElement("div").style,"AnimationEvent"in window||(delete tb.animationend.animation,delete tb.animationiteration.animation,delete tb.animationstart.animation),"TransitionEvent"in window||delete tb.transitionend.transition);var XN=_a("animationend"),qN=_a("animationiteration"),KN=_a("animationstart"),tj=_a("transitionrun"),nj=_a("transitionstart"),oj=_a("transitioncancel"),ZN=_a("transitionend"),JN=new Map,sA="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(" ");sA.push("scrollEnd");var eR=0;if(typeof performance=="object"&&typeof performance.now=="function")var ij=performance,tR=function(){return ij.now()};else{var rj=Date;tR=function(){return rj.now()}}var lA=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},aj="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",g1=0,cA=1,uA=2,dA=3,b1="– ",v1="+ ",nR="  ",To=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",nl="Components ⚛",An="Scheduler ⚛",Nn="Blocking",xf=!1,Ku={color:"primary",properties:null,tooltipText:"",track:nl},_f={start:-0,end:-0,detail:{devtools:Ku}},sj=["Changed Props",""],oR="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",lj=["Changed Props",oR],ay=1,Zu=2,ol=[],nb=0,fA=0,Cf={};Object.freeze(Cf);var il=null,ob=null,Vt=0,cj=1,fn=2,Dr=8,Wl=16,uj=32,iR=!1;try{var rR=Object.preventExtensions({})}catch{iR=!0}var hA=new WeakMap,ib=[],rb=0,y1=null,sy=0,rl=[],al=0,Lm=null,Ju=1,ed="",br=null,Ao=null,Tn=!1,Vc=!1,bs=null,Nf=null,sl=!1,mA=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),pA=X(null),gA=X(null),aR={},E1=null,ab=null,sb=!1,dj=typeof AbortController<"u"?AbortController:function(){var n=[],o=this.signal={aborted:!1,addEventListener:function(s,w){n.push(w)}};this.abort=function(){o.aborted=!0,n.forEach(function(s){return s()})}},fj=Wo.unstable_scheduleCallback,hj=Wo.unstable_NormalPriority,xi={$$typeof:ms,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},_i=Wo.unstable_now,w1=console.createTask?console.createTask:function(){return null},ly=1,S1=2,Wi=-0,Rf=-0,td=-0,nd=null,ra=-1.1,Om=-0,$o=-0,Ut=-1.1,Bt=-1.1,Do=null,Yo=!1,Dm=-0,Gc=-1.1,cy=null,Lf=0,bA=null,vA=null,Mm=-1.1,uy=null,lb=-1.1,T1=-1.1,od=-0,id=-1.1,ll=-1.1,yA=0,dy=null,sR=null,lR=null,Of=-1.1,km=null,Df=-1.1,A1=-1.1,cR=-0,uR=-0,x1=0,mj=null,dR=0,fy=-1.1,_1=!1,C1=!1,hy=null,EA=0,Im=0,cb=null,fR=Ue.S;Ue.S=function(n,o){if(sL=Ai(),typeof o=="object"&&o!==null&&typeof o.then=="function"){if(0>id&&0>ll){id=_i();var s=rf(),w=qs();(s!==Df||w!==km)&&(Df=-1.1),Of=s,km=w}Rl(n,o)}fR!==null&&fR(n,o)};var $m=X(null),Yl={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},my=[],py=[],gy=[],by=[],vy=[],yy=[],Um=new Set;Yl.recordUnsafeLifecycleWarnings=function(n,o){Um.has(n.type)||(typeof o.componentWillMount=="function"&&o.componentWillMount.__suppressDeprecationWarning!==!0&&my.push(n),n.mode&Dr&&typeof o.UNSAFE_componentWillMount=="function"&&py.push(n),typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&gy.push(n),n.mode&Dr&&typeof o.UNSAFE_componentWillReceiveProps=="function"&&by.push(n),typeof o.componentWillUpdate=="function"&&o.componentWillUpdate.__suppressDeprecationWarning!==!0&&vy.push(n),n.mode&Dr&&typeof o.UNSAFE_componentWillUpdate=="function"&&yy.push(n))},Yl.flushPendingUnsafeLifecycleWarnings=function(){var n=new Set;0<my.length&&(my.forEach(function(q){n.add(j(q)||"Component"),Um.add(q.type)}),my=[]);var o=new Set;0<py.length&&(py.forEach(function(q){o.add(j(q)||"Component"),Um.add(q.type)}),py=[]);var s=new Set;0<gy.length&&(gy.forEach(function(q){s.add(j(q)||"Component"),Um.add(q.type)}),gy=[]);var w=new Set;0<by.length&&(by.forEach(function(q){w.add(j(q)||"Component"),Um.add(q.type)}),by=[]);var _=new Set;0<vy.length&&(vy.forEach(function(q){_.add(j(q)||"Component"),Um.add(q.type)}),vy=[]);var L=new Set;if(0<yy.length&&(yy.forEach(function(q){L.add(j(q)||"Component"),Um.add(q.type)}),yy=[]),0<o.size){var G=u(o);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
257
257
 
258
258
  * Move code with side effects to componentDidMount, and set initial state in the constructor.
259
259
 
@@ -299,7 +299,7 @@ Learn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map=="func
299
299
  You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}Qy.createRoot=function(n,o){if(!T(n))throw Error("Target container is not a DOM element.");z0(n);var s=!1,w="",_=Qp,L=Wp,G=kv;return o!=null&&(o.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof o=="object"&&o!==null&&o.$$typeof===Ua&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
300
300
 
301
301
  let root = createRoot(domContainer);
302
- root.render(<App />);`),o.unstable_strictMode===!0&&(s=!0),o.identifierPrefix!==void 0&&(w=o.identifierPrefix),o.onUncaughtError!==void 0&&(_=o.onUncaughtError),o.onCaughtError!==void 0&&(L=o.onCaughtError),o.onRecoverableError!==void 0&&(G=o.onRecoverableError)),o=ym(n,1,!1,null,null,s,w,null,_,L,G,n1),n[Ql]=o.current,Ic(n),new j0(o)},Qy.hydrateRoot=function(n,o,s){if(!T(n))throw Error("Target container is not a DOM element.");z0(n),o===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var w=!1,_="",L=Qp,G=Wp,q=kv,ne=null;return s!=null&&(s.unstable_strictMode===!0&&(w=!0),s.identifierPrefix!==void 0&&(_=s.identifierPrefix),s.onUncaughtError!==void 0&&(L=s.onUncaughtError),s.onCaughtError!==void 0&&(G=s.onCaughtError),s.onRecoverableError!==void 0&&(q=s.onRecoverableError),s.formState!==void 0&&(ne=s.formState)),o=ym(n,1,!0,o,s??null,w,_,ne,L,G,q,n1),o.context=Zw(null),s=o.current,w=Vi(s),w=Lt(w),_=ri(w),_.callback=null,ks(s,_,w),Os(w,"hydrateRoot()",null),s=w,o.current.lanes=s,rt(o,s),Cr(o),n[Ql]=o.current,Ic(n),new hs(o)},Qy.version="19.2.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Qy}var nO;function e7(){if(nO)return dS.exports;nO=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}}return process.env.NODE_ENV==="production"?(t(),dS.exports=Zj()):dS.exports=Jj(),dS.exports}var t7=e7();const oO=lT(t7);var cx={exports:{}};/*!
302
+ root.render(<App />);`),o.unstable_strictMode===!0&&(s=!0),o.identifierPrefix!==void 0&&(w=o.identifierPrefix),o.onUncaughtError!==void 0&&(_=o.onUncaughtError),o.onCaughtError!==void 0&&(L=o.onCaughtError),o.onRecoverableError!==void 0&&(G=o.onRecoverableError)),o=ym(n,1,!1,null,null,s,w,null,_,L,G,n1),n[Ql]=o.current,Ic(n),new j0(o)},Qy.hydrateRoot=function(n,o,s){if(!T(n))throw Error("Target container is not a DOM element.");z0(n),o===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var w=!1,_="",L=Qp,G=Wp,q=kv,ne=null;return s!=null&&(s.unstable_strictMode===!0&&(w=!0),s.identifierPrefix!==void 0&&(_=s.identifierPrefix),s.onUncaughtError!==void 0&&(L=s.onUncaughtError),s.onCaughtError!==void 0&&(G=s.onCaughtError),s.onRecoverableError!==void 0&&(q=s.onRecoverableError),s.formState!==void 0&&(ne=s.formState)),o=ym(n,1,!0,o,s??null,w,_,ne,L,G,q,n1),o.context=Zw(null),s=o.current,w=Vi(s),w=Lt(w),_=ri(w),_.callback=null,ks(s,_,w),Os(w,"hydrateRoot()",null),s=w,o.current.lanes=s,tt(o,s),Cr(o),n[Ql]=o.current,Ic(n),new hs(o)},Qy.version="19.2.0",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()),Qy}var nO;function e7(){if(nO)return dS.exports;nO=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}}return process.env.NODE_ENV==="production"?(t(),dS.exports=Zj()):dS.exports=Jj(),dS.exports}var t7=e7();const oO=lT(t7);var cx={exports:{}};/*!
303
303
  Copyright (c) 2018 Jed Watson.
304
304
  Licensed under the MIT License (MIT), see
305
305
  http://jedwatson.github.io/classnames
@@ -368,7 +368,7 @@ You might need to use a local HTTP server (instead of file://): https://react.de
368
368
  * @file useAgentApi.ts
369
369
  * @function useAgentApi
370
370
  * @license BSD-2-Clause
371
- */const Cb=t=>{if(t!=null){if(typeof t=="number"||typeof t=="string"&&/^\d+$/.test(t)){const e=Number(t),i=new Date(e);return Number.isNaN(i.getTime())?void 0:i.toISOString()}if(typeof t=="string"){const e=new Date(t);return Number.isNaN(e.getTime())?void 0:e.toISOString()}if(t instanceof Date)return t.toISOString()}};function g_(t){return!!t&&t.type==="text"}function F7(t,e){switch(e.type){case"reset":{const i={},a=[];for(const E of e.list)i[E.id]||a.push(E.id),i[E.id]=E;return{byId:i,order:a}}case"appendOptimistic":return t.byId[e.msg.id]?t:{byId:{...t.byId,[e.msg.id]:e.msg},order:[...t.order,e.msg.id]};case"mergeFromServer":{const i={...t.byId},a=[...t.order];for(const E of e.list)i[E.id]||a.push(E.id),i[E.id]=E;return{byId:i,order:a}}case"reconcileUserEcho":{const i=e.server;if(!(i!=null&&i.id)||i.role!=="user"||!g_(i))return t;const a=sO(i),E=[...t.order],p={...t.byId};for(let g=E.length-1;g>=0;g--){const y=E[g],f=p[y];if(f&&f.sessionId===i.sessionId&&f.role==="user"&&f.status==="pending"&&g_(f)&&sO(f)===a)return delete p[y],p[i.id]={...i,status:"sent"},E[g]=i.id,{byId:p,order:E}}return p[i.id]||(p[i.id]=i,E.push(i.id)),{byId:p,order:E}}default:return t}}function P7(t,e){if(t===e)return!0;if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++){const a=t[i],E=e[i];if(a.sessionId!==E.sessionId||a.lastAt!==E.lastAt||a.lastPreview!==E.lastPreview||a.messageCount!==E.messageCount)return!1}return!0}function sO(t){var i;if(!t||t.type!=="text")return;const e=(i=t.content)==null?void 0:i.data;return typeof e=="string"?e:void 0}function V7(t){var $t;const{integration:e,sessionId:i,onNewSessionId:a,persistMode:E="none"}=t,{boomiConfig:p}=Xn(),g=i!=null,y=Y.useMemo(()=>t.storageKey??`agent:sess:${e.id??"unknown"}`,[t.storageKey,e.id]),f=!g&&E==="modal",b=e.integrationPackId?($t=p==null?void 0:p.agents)==null?void 0:$t[e.integrationPackId]:void 0,c=!!(b!=null&&b.sendMultipartData||b!=null&&b.sendMultiPartOnly),u=(b==null?void 0:b.transport)==="boomi-direct",d=H7(),h=Y.useRef(d.listSessions),m=Y.useRef(d.getConversation),S=Y.useRef(d.createSession),T=Y.useRef(d.sendMessage),A=Y.useRef(d.deleteSession);Y.useEffect(()=>{h.current=d.listSessions,m.current=d.getConversation,S.current=d.createSession,T.current=u?d.sendBoomiAgentSession:d.sendMessage,A.current=d.deleteSession},[d,u]);const[N,O]=Y.useState([]),[D,R]=Y.useState(!1),[C,$]=Y.useState(null),[F,U]=Y.useState(null),j=Y.useRef(!1),X=g?i??null:F,[P,B]=Y.useState(!1),[k,M]=Y.useState(!1),[I,W]=Y.useReducer(F7,{byId:{},order:[]}),Q=Y.useMemo(()=>I.order.map(ze=>I.byId[ze]).filter(Boolean),[I]),[J,K]=Y.useState("idle"),[Z,re]=Y.useState(void 0),te=k||J==="working",ae=Y.useRef(!1),se=Y.useRef(null),ie=Y.useRef(null),ue=Y.useRef(0),me=1500,ve=Y.useCallback(async(ze=!1)=>{const tt=Date.now();if(!ze&&tt-ue.current<me||ie.current)return;const ct=(async()=>{R(!0),$(null);try{const Re=((await h.current({limit:50})).items??[]).map(je=>{const it=Cb(je.lastActivity)??Cb(je.updatedAt)??Cb(je.lastActivityMs)??Cb(je.createdAt)??new Date().toISOString();return{sessionId:je.sessionId,integrationPackId:je.integrationPackId,lastAt:it,createdAt:Cb(je.createdAt),updatedAt:Cb(je.updatedAt),lastRole:je.lastRole??void 0,lastPreview:je.lastPreview??void 0,messageCount:je.messageCount??void 0,metadata:je.metadata??void 0}}).filter(je=>e.integrationPackId?je.integrationPackId&&je.integrationPackId===e.integrationPackId:!0);O(je=>P7(je,Re)?je:Re),ue.current=Date.now()}catch(gt){$(gt)}finally{R(!1),ie.current=null}})();return ie.current=ct,ct},[e.integrationPackId]),pe=Y.useCallback(async ze=>{if(ze&&se.current!==ze){se.current=ze,B(!0);try{const ct=((await m.current({sessionId:ze,limit:200})).messages??[]).filter(gt=>(gt==null?void 0:gt.type)!=="status");W({type:"reset",list:ct})}finally{B(!1),se.current===ze&&(se.current=null)}}},[]),ye=Y.useCallback(async()=>{if(ae.current)return null;ae.current=!0;try{const tt=(await S.current({integrationPackId:e.integrationPackId})).sessionId;if(g)a==null||a(tt);else{if(f)try{localStorage.setItem(y,tt)}catch{}await ve(!0),U(tt),j.current=!1}return tt}catch(ze){return Le.warn({e:ze},"createSession failed"),null}finally{ae.current=!1}},[e.integrationPackId,g,a,f,y,ve]),de=Y.useCallback(async ze=>{const tt=X===ze;if(!g&&(tt&&(j.current=!0),U(ct=>ct===ze?null:ct),f))try{(localStorage.getItem(y)||"")===ze&&localStorage.removeItem(y)}catch{}tt&&(W({type:"reset",list:[]}),K("idle"),re(void 0));try{await A.current({sessionId:ze})}finally{await ve(!0)}},[g,f,y,ve,X,W,K,re]),Ve=Y.useCallback(ze=>{if(!g&&(j.current=!1,U(ze),f))try{localStorage.setItem(y,ze)}catch{}},[g,f,y]),De=Y.useCallback(async ze=>{var gt,at;let tt=X;if(tt||(tt=await ye()),!tt)return;const ct=((gt=ze.data)==null?void 0:gt.trim())??"";if(ct){const Re={id:crypto.randomUUID(),sessionId:tt,integrationPackId:e.integrationPackId,agentCommand:"sendMessage",role:"user",type:"text",status:"pending",metadata:{timestamp:new Date().toISOString(),platform:"client"},content:{data:ct}};W({type:"appendOptimistic",msg:Re})}M(!0);try{if((((at=ze.files)==null?void 0:at.length)??0)>0||c){if(u&&Le.warn("Boomi direct transport does not support file attachments yet; sending text only."),u){await T.current({sessionId:tt,agent_id:e.integrationPackId??"",message:ct,preview_mode:!1});return}const je=new FormData;je.append("sessionId",tt),je.append("integrationPackId",e.integrationPackId??""),je.append("agentCommand","sendMessage"),je.append("message",JSON.stringify({role:"user",type:"text",content:{data:ct}}));for(const it of ze.files??[])je.append("files",it);await d.sendMultipart({formData:je})}else u?await T.current({sessionId:tt,agent_id:e.integrationPackId??"",message:ct,preview_mode:!1}):await T.current({sessionId:tt,integrationPackId:e.integrationPackId,agentCommand:"sendMessage",message:{role:"user",type:"text",content:{data:ct}}})}finally{M(!1)}},[X,e.integrationPackId,ye,d,T,W,c,u]),qe=Y.useCallback(async ze=>{var at;if(c){await De({data:ze,files:[]});return}let tt=X;if(tt||(tt=await ye()),!tt)return;const ct=ze??"",gt={id:crypto.randomUUID(),sessionId:tt,integrationPackId:e.integrationPackId,agentCommand:"sendMessage",role:"user",type:"text",status:"pending",metadata:{timestamp:new Date().toISOString(),platform:"client"},content:{data:ct}};W({type:"appendOptimistic",msg:gt}),M(!0);try{const Re=await T.current(u?{sessionId:tt,agent_id:e.integrationPackId??"",message:ct,preview_mode:!1}:{sessionId:tt,integrationPackId:e.integrationPackId,agentCommand:"sendMessage",message:{role:"user",type:"text",content:{data:ct}}});((at=Re==null?void 0:Re.message)==null?void 0:at.role)==="user"&&g_(Re.message)?W({type:"reconcileUserEcho",server:Re.message}):Re!=null&&Re.message&&W({type:"mergeFromServer",list:[Re.message]})}finally{M(!1)}},[X,e.integrationPackId,ye,De,c,u]);Y.useEffect(()=>{ve(!0)},[ve]),Y.useEffect(()=>{if(!g&&!j.current&&!F){if(f)try{const ze=localStorage.getItem(y)||"";if(ze&&N.some(tt=>tt.sessionId===ze)){j.current=!1,U(ze);return}}catch{}if(N.length>0&&(j.current=!1,U(N[0].sessionId),f))try{localStorage.setItem(y,N[0].sessionId)}catch{}}},[g,f,y,N,F]),Y.useEffect(()=>{W({type:"reset",list:[]}),X&&pe(X)},[X,pe]);const et=Y.useRef(0),mt=Y.useCallback(ze=>{if((ze==null?void 0:ze.type)==="status"){const ct=String(ze.status||"working"),gt=typeof ze.note=="string"?ze.note:void 0;K(ct),re(gt);return}ze.role==="user"?W({type:"reconcileUserEcho",server:ze}):W({type:"mergeFromServer",list:[ze]});const tt=Date.now();tt-et.current>5e3&&(et.current=tt,ve())},[W,ve]),xt=Y.useCallback(ze=>{const tt=ze.note;let ct=ze.state;tt&&/progress/i.test(tt)&&(ct="progress"),tt&&/error|timeout|failed/i.test(tt)&&(ct="error"),K(ct),re(tt)},[]);return B7({sessionId:X||"",enabled:!!X,onMessage:mt,onStatus:xt}),{sessions:N,sessionsLoading:D,sessionsError:C,activeSessionId:X,selectSession:Ve,createSession:ye,deleteSession:de,messages:Q,loading:P,busy:te,agentStatus:J,agentNote:Z,sendMessage:qe,sendMessageRich:De,reloadSessions:ve}}var lO;(t=>{(e=>{e.TRIAL="trial",e.ACTIVE="active",e.SUSPENDED="suspended",e.DELETED="deleted",e.UNLIMITED="unlimited"})(t.status||(t.status={})),(e=>{e.STANDARD="standard",e.PREMIER="premier"})(t.supportLevel||(t.supportLevel={}))})(lO||(lO={}));var cO;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(cO||(cO={}));var uO;(t=>{(e=>{e.GENERAL="GENERAL",e.LOW_LATENCY_DEBUG="LOW_LATENCY_DEBUG"})(t.as2Workload||(t.as2Workload={})),(e=>{e.NONE="NONE",e.THREADS="THREADS",e.PROCESSES="PROCESSES"})(t.flowControlParallelProcessTypeOverride||(t.flowControlParallelProcessTypeOverride={})),(e=>{e.GENERAL="GENERAL",e.LOW_LATENCY_DEBUG="LOW_LATENCY_DEBUG",e.LOW_LATENCY="LOW_LATENCY"})(t.httpWorkload||(t.httpWorkload={}))})(uO||(uO={}));var dO;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(dO||(dO={}));var fO;(t=>{(e=>{e.NONE="none",e.INFO="info",e.WARNING="warning",e.ERROR="error"})(t.autoSubscribeAlertLevel||(t.autoSubscribeAlertLevel={}))})(fO||(fO={}));var hO;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(hO||(hO={}));var mO;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ACCOUNT_GROUP_ID="accountGroupId",e.ACCOUNT_ID="accountId"})(t.property||(t.property={}))})(mO||(mO={}));var pO;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(pO||(pO={}));var gO;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(gO||(gO={}));var bO;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(bO||(bO={}));var vO;(t=>{(e=>{e.SINGLE="SINGLE",e.MULTI="MULTI"})(t.installationType||(t.installationType={}))})(vO||(vO={}));var yO;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(yO||(yO={}));var EO;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(EO||(EO={}));var wO;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={}))})(wO||(wO={}));var SO;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ID="id",e.ACCOUNT_ID="accountId",e.NAME="name",e.DEFAULT_GROUP="defaultGroup",e.AUTO_SUBSCRIBE_ALERT_LEVEL="autoSubscribeAlertLevel"})(t.property||(t.property={}))})(SO||(SO={}));var TO;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(TO||(TO={}));var AO;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ACCOUNT_GROUP_ID="accountGroupId",e.USER_ID="userId",e.ROLE_ID="roleId"})(t.property||(t.property={}))})(AO||(AO={}));var xO;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ACCOUNTID="ACCOUNTID",e.DATECREATED="DATECREATED",e.EXPIRATIONDATE="EXPIRATIONDATE",e.NAME="NAME",e.STATUS="STATUS",e.WIDGETACCOUNT="WIDGETACCOUNT",e.OVERDEPLOYED="OVERDEPLOYED"})(t.property||(t.property={}))})(xO||(xO={}));var _O;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(_O||(_O={}));var CO;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(CO||(CO={}));var NO;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ACCOUNT_ID="accountId",e.USER_ID="userId",e.FEDERATION_ID="federationId"})(t.property||(t.property={}))})(NO||(NO={}));var RO;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(RO||(RO={}));var LO;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ACCOUNT_ID="accountId",e.USER_ID="userId",e.ROLE_ID="roleId"})(t.property||(t.property={}))})(LO||(LO={}));var OO;(t=>{(e=>{e.ANY="ANY",e.SUCCESS="SUCCESS",e.ERROR="ERROR"})(t.documentStatus||(t.documentStatus={}))})(OO||(OO={}));var DO;(t=>{(e=>{e.PROD="PROD",e.TEST="TEST"})(t.classification||(t.classification={}))})(DO||(DO={}));var MO;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(MO||(MO={}));var kO;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.PROCESS_DATE="processDate",e.CLASSIFICATION="classification",e.SUCCESS_COUNT="successCount",e.ERROR_COUNT="errorCount"})(t.property||(t.property={}))})(kO||(kO={}));var IO;(t=>{(e=>{e.DEFAULT="default",e.CUSTOM="custom",e.COMPONENT="component"})(t.CommunicationSetting||(t.CommunicationSetting={}))})(IO||(IO={}));var $O;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})($O||($O={}));var UO;(t=>{(e=>{e.EQUALS="EQUALS",e.STARTS_WITH="STARTS_WITH",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL"})(t.operator||(t.operator={}))})(UO||(UO={}));var HO;(t=>{(e=>{e.SHA1="SHA1",e.SHA224="SHA224",e.SHA256="SHA256",e.SHA384="SHA384",e.SHA512="SHA512"})(t.mdnDigestAlg||(t.mdnDigestAlg={})),(e=>{e.SYNC="sync",e.ASYNC="async"})(t.synchronous||(t.synchronous={}))})(HO||(HO={}));var jO;(t=>{(e=>{e.BATCH="BATCH",e.DOCUMENT_CACHE="DOCUMENT_CACHE"})(t.attachmentOption||(t.attachmentOption={})),(e=>{e.TEXTPLAIN="textplain",e.BINARY="binary",e.EDIFACT="edifact",e.EDIX12="edix12",e.APPLICATIONXML="applicationxml",e.TEXTXML="textxml"})(t.dataContentType||(t.dataContentType={})),(e=>{e.NA="na",e.TRIPLEDES="tripledes",e.DES="des",e.RC2_128="rc2-128",e.RC2_64="rc2-64",e.RC2_40="rc2-40",e.AES_128="aes-128",e.AES_192="aes-192",e.AES_256="aes-256"})(t.encryptionAlgorithm||(t.encryptionAlgorithm={})),(e=>{e.SHA1="SHA1",e.SHA224="SHA224",e.SHA256="SHA256",e.SHA384="SHA384",e.SHA512="SHA512"})(t.signingDigestAlg||(t.signingDigestAlg={}))})(jO||(jO={}));var zO;(t=>{(e=>{e.NONE="NONE",e.BASIC="BASIC"})(t.authenticationType||(t.authenticationType={}))})(zO||(zO={}));var BO;(t=>{(e=>{e.UNKNOWN="UNKNOWN",e.ONLINE="ONLINE",e.WARNING="WARNING",e.OFFLINE="OFFLINE"})(t.status||(t.status={})),(e=>{e.CLOUD="CLOUD",e.MOLECULE="MOLECULE",e.ATOM="ATOM"})(t.type||(t.type={}))})(BO||(BO={}));var FO;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(FO||(FO={}));var PO;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(PO||(PO={}));var VO;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ATOM_ID="atomId",e.EXTENSION_GROUP_ID="extensionGroupId",e.CONNECTION_ID="connectionId",e.FIELD_ID="fieldId"})(t.property||(t.property={}))})(VO||(VO={}));var GO;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(GO||(GO={}));var QO;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(QO||(QO={}));var WO;(t=>{(e=>{e.EQUALS="EQUALS",e.NOT_EQUALS="NOT_EQUALS",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.NAME="name",e.ID="id",e.HOSTNAME="hostname",e.STATUS="status",e.TYPE="type",e.CAPABILITIES="capabilities"})(t.property||(t.property={}))})(WO||(WO={}));var YO;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(YO||(YO={}));var XO;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(XO||(XO={}));var qO;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(qO||(qO={}));var KO;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.CONTAINER_ID="containerId",e.USER_ID="userId",e.DATE="date",e.TYPE="type",e.ACTION="action",e.MODIFIER="modifier",e.LEVEL="level",e.SOURCE="source"})(t.property||(t.property={}))})(KO||(KO={}));var ZO;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(ZO||(ZO={}));var JO;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(JO||(JO={}));var eD;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={}))})(eD||(eD={}));var tD;(t=>{(e=>{e.RESTART="restart",e.RESTART_ALL="restart_all",e.PAUSE="pause",e.PAUSE_ALL="pause_all",e.RESUME="resume",e.RESUME_ALL="resume_all"})(t.action||(t.action={}))})(tD||(tD={}));var nD;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(nD||(nD={}));var oD;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(oD||(oD={}));var iD;(t=>{(e=>{e.AWS="AWS",e.AZURE="AZURE"})(t.secretsManagerType||(t.secretsManagerType={}))})(iD||(iD={}));var rD;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.NAME="name",e.ID="id"})(t.property||(t.property={}))})(rD||(rD={}));var aD;(t=>{(e=>{e.CERTIFICATE="certificate",e.CONNECTOR_ACTION="connector-action",e.CONNECTOR_SETTINGS="connector-settings",e.CROSSREF="crossref",e.DOCUMENTCACHE="documentcache",e.TRANSFORM_MAP="transform.map",e.TRANSFORM_FUNCTION="transform.function",e.CERTIFICATE_PGP="certificate.pgp",e.PROCESS="process",e.PROCESSPROPERTY="processproperty",e.PROFILE_DB="profile.db",e.PROFILE_EDI="profile.edi",e.PROFILE_FLATFILE="profile.flatfile",e.PROFILE_XML="profile.xml",e.PROFILE_JSON="profile.json",e.QUEUE="queue",e.TRADINGPARTNER="tradingpartner",e.TPGROUP="tpgroup",e.TPORGANIZATION="tporganization",e.TPCOMMOPTIONS="tpcommoptions",e.WEBSERVICE="webservice",e.WEBSERVICE_EXTERNAL="webservice.external",e.PROCESSROUTE="processroute",e.CUSTOMLIBRARY="customlibrary",e.EDISTANDARD="edistandard",e.FLOWSERVICE="flowservice",e.SCRIPT_PROCESSING="script.processing",e.SCRIPT_MAPPING="script.mapping",e.XSLT="xslt"})(t.componentType||(t.componentType={}))})(aD||(aD={}));var sD;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(sD||(sD={}));var lD;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ATOM_ID="atomId",e.COMPONENT_ID="componentId",e.COMPONENT_TYPE="componentType"})(t.property||(t.property={}))})(lD||(lD={}));var cD;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(cD||(cD={}));var uD;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(uD||(uD={}));var dD;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(dD||(dD={}));var fD;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ENVIRONMENT_ID="environmentId",e.COMPONENT_ID="componentId",e.COMPONENT_TYPE="componentType"})(t.property||(t.property={}))})(fD||(fD={}));var hD;(t=>{(e=>{e.CERTIFICATE="certificate",e.CONNECTOR_ACTION="connector-action",e.CONNECTOR_SETTINGS="connector-settings",e.CROSSREF="crossref",e.DOCUMENTCACHE="documentcache",e.TRANSFORM_MAP="transform.map",e.TRANSFORM_FUNCTION="transform.function",e.CERTIFICATE_PGP="certificate.pgp",e.PROCESS="process",e.PROCESSPROPERTY="processproperty",e.PROFILE_DB="profile.db",e.PROFILE_EDI="profile.edi",e.PROFILE_FLATFILE="profile.flatfile",e.PROFILE_XML="profile.xml",e.PROFILE_JSON="profile.json",e.QUEUE="queue",e.TRADINGPARTNER="tradingpartner",e.TPGROUP="tpgroup",e.TPORGANIZATION="tporganization",e.TPCOMMOPTIONS="tpcommoptions",e.WEBSERVICE="webservice",e.WEBSERVICE_EXTERNAL="webservice.external",e.PROCESSROUTE="processroute",e.CUSTOMLIBRARY="customlibrary",e.EDISTANDARD="edistandard",e.FLOWSERVICE="flowservice",e.SCRIPT_PROCESSING="script.processing",e.SCRIPT_MAPPING="script.mapping",e.XSLT="xslt"})(t.type||(t.type={}))})(hD||(hD={}));var mD;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(mD||(mD={}));var pD;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(pD||(pD={}));var gD;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ACCOUNT_ID="accountId",e.COMPONENT_ID="componentId",e.VERSION="version",e.NAME="name",e.TYPE="type",e.SUB_TYPE="subType",e.CREATED_DATE="createdDate",e.CREATED_BY="createdBy",e.MODIFIED_DATE="modifiedDate",e.MODIFIED_BY="modifiedBy",e.DELETED="deleted",e.CURRENT_VERSION="currentVersion",e.FOLDER_NAME="folderName",e.FOLDER_ID="folderId",e.COPIED_FROM_COMPONENT_ID="copiedFromComponentId",e.COPIED_FROM_COMPONENT_VERSION="copiedFromComponentVersion",e.BRANCH_NAME="branchName",e.BRANCH_ID="branchId"})(t.property||(t.property={}))})(gD||(gD={}));var bD;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(bD||(bD={}));var vD;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(vD||(vD={}));var yD;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.PARENT_COMPONENT_ID="parentComponentId",e.PARENT_VERSION="parentVersion",e.COMPONENT_ID="componentId",e.TYPE="type"})(t.property||(t.property={}))})(yD||(yD={}));var ED;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(ED||(ED={}));var wD;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(wD||(wD={}));var SD;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.TYPE="type",e.NAME="name"})(t.property||(t.property={}))})(SD||(SD={}));var TD;(t=>{(e=>{e.CHARACTER="character",e.DATETIME="datetime",e.NUMBER="number"})(t.type||(t.type={}))})(TD||(TD={}));var AD;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(AD||(AD={}));var xD;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={}))})(xD||(xD={}));var _D;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(_D||(_D={}));var CD;(t=>{(e=>{e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL"})(t.operator||(t.operator={})),(e=>{e.CONTAINER_ID="containerId",e.CONTAINER_NAME="containerName",e.ENVIRONMENT_ID="environmentId",e.ENVIRONMENT_NAME="environmentName",e.EXPIRATION_BOUNDARY="expirationBoundary"})(t.property||(t.property={}))})(CD||(CD={}));var ND;(t=>{(e=>{e.RUNNING="RUNNING",e.PAUSED="PAUSED"})(t.listenerStatus||(t.listenerStatus={}))})(ND||(ND={}));var RD;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(RD||(RD={}));var LD;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(LD||(LD={}));var OD;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.UID="uid",e.NOTES="notes",e.CURRENT="current",e.PACKAGE_NOTES="packageNotes",e.ACTIVE="active",e.COMPONENT_ID="componentId",e.COMPONENT_VERSION="componentVersion",e.COMPONENT_NAME="componentName",e.COMPONENT_TYPE="componentType",e.DEPLOYED_BY="deployedBy",e.DEPLOYED_DATE="deployedDate",e.DEPLOYMENT_ID="deploymentId",e.ENVIRONMENT_ID="environmentId",e.ENVIRONMENT_NAME="environmentName",e.PACKAGE_ID="packageId",e.PACKAGE_VERSION="packageVersion",e.VERSION="version",e.ACCOUNT_ID="accountId",e.BRANCH="branch"})(t.property||(t.property={}))})(OD||(OD={}));var DD;(t=>{(e=>{e.RUNNING="RUNNING",e.PAUSED="PAUSED"})(t.listenerStatus||(t.listenerStatus={}))})(DD||(DD={}));var MD;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(MD||(MD={}));var kD;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(kD||(kD={}));var ID;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ENVIRONMENT_ID="environmentId",e.PROCESS_ID="processId",e.COMPONENT_ID="componentId",e.COMPONENT_TYPE="componentType",e.CURRENT="current"})(t.property||(t.property={}))})(ID||(ID={}));var $D;(t=>{(e=>{e.DEFAULT="default",e.CUSTOM="custom",e.COMPONENT="component"})(t.CommunicationSetting||(t.CommunicationSetting={}))})($D||($D={}));var UD;(t=>{(e=>{e.WILDCARD="wildcard",e.REGEX="regex"})(t.filterMatchType||(t.filterMatchType={}))})(UD||(UD={}));var HD;(t=>{(e=>{e.UNIQUE="unique",e.OVER="over",e.APPEND="append",e.ABORT="abort"})(t.writeOption||(t.writeOption={}))})(HD||(HD={}));var jD;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(jD||(jD={}));var zD;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(zD||(zD={}));var BD;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ACCOUNT_GROUP_ID="accountGroupId",e.PROCESS_DATE="processDate"})(t.property||(t.property={}))})(BD||(BD={}));var FD;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ENVIRONMENT_ID="environmentId",e.ATOM_ID="atomId",e.PROCESS_DATE="processDate"})(t.property||(t.property={}))})(FD||(FD={}));var PD;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(PD||(PD={}));var VD;(t=>{(e=>{e.EQUALS="EQUALS",e.STARTS_WITH="STARTS_WITH",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL"})(t.operator||(t.operator={}))})(VD||(VD={}));var GD;(t=>{(e=>{e.STARDELIMITED="stardelimited",e.COMMADELIMITED="commadelimited",e.TABDELIMITED="tabdelimited",e.TICKDELIMITED="tickdelimited",e.BARDELIMITED="bardelimited",e.PLUSDELIMITED="plusdelimited",e.COLONDELIMITED="colondelimited",e.CARATDELIMITED="caratdelimited",e.AMPERSANDDELIMITED="ampersanddelimited",e.BYTECHARACTER="bytecharacter",e.OTHERCHARACTER="othercharacter"})(t.delimiterValue||(t.delimiterValue={}))})(GD||(GD={}));var QD;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(QD||(QD={}));var WD;(t=>{(e=>{e.EQUALS="EQUALS",e.STARTS_WITH="STARTS_WITH",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL"})(t.operator||(t.operator={}))})(WD||(WD={}));var YD;(t=>{(e=>{e.DONOTACKITEM="donotackitem",e.ACKITEM="ackitem"})(t.acknowledgementoption||(t.acknowledgementoption={})),(e=>{e.GROUPALL="groupall",e.GROUPFG="groupfg",e.GROUPMESSAGE="groupmessage"})(t.envelopeoption||(t.envelopeoption={})),(e=>{e.FILTER_ERROR="filterError",e.FAIL_ALL="failAll"})(t.outboundValidationOption||(t.outboundValidationOption={}))})(YD||(YD={}));var XD;(t=>{(e=>{e.NEWLINE="newline",e.SINGLEQUOTE="singlequote",e.TILDE="tilde",e.CARRIAGERETURN="carriagereturn",e.BYTECHARACTER="bytecharacter",e.OTHERCHARACTER="othercharacter"})(t.segmentTerminatorValue||(t.segmentTerminatorValue={}))})(XD||(XD={}));var qD;(t=>{(e=>{e.PROD="PROD",e.TEST="TEST"})(t.classification||(t.classification={}))})(qD||(qD={}));var KD;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(KD||(KD={}));var ZD;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ATOM_ID="atomId",e.ENVIRONMENT_ID="environmentId"})(t.property||(t.property={}))})(ZD||(ZD={}));var JD;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(JD||(JD={}));var eM;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(eM||(eM={}));var tM;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ENVIRONMENT_ID="environmentId",e.EXTENSION_GROUP_ID="extensionGroupId",e.CONNECTION_ID="connectionId",e.FIELD_ID="fieldId"})(t.property||(t.property={}))})(tM||(tM={}));var nM;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(nM||(nM={}));var oM;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(oM||(oM={}));var iM;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ENVIRONMENT_ID="environmentId",e.EXTENSION_GROUP_ID="extensionGroupId"})(t.property||(t.property={}))})(iM||(iM={}));var rM;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(rM||(rM={}));var aM;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(aM||(aM={}));var sM;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(sM||(sM={}));var lM;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ACCOUNT_ID="ACCOUNT_ID",e.ENVIRONMENT_MAP_EXTENSION_ID="ENVIRONMENT_MAP_EXTENSION_ID",e.PACKAGED_COMPONENT_UID="PACKAGED_COMPONENT_UID",e.COMPONENT_ID="COMPONENT_ID",e.COMPONENT_VERSION="COMPONENT_VERSION",e.COMPONENT_NAME="COMPONENT_NAME",e.COMPONENT_TYPE="COMPONENT_TYPE"})(t.property||(t.property={}))})(lM||(lM={}));var cM;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(cM||(cM={}));var uM;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ENVIRONMENT_ID="environmentId",e.EXTENSION_GROUP_ID="extensionGroupId"})(t.property||(t.property={}))})(uM||(uM={}));var dM;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(dM||(dM={}));var fM;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(fM||(fM={}));var hM;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ENVIRONMENT_ID="environmentId",e.EXTENSION_GROUP_ID="extensionGroupId"})(t.property||(t.property={}))})(hM||(hM={}));var mM;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(mM||(mM={}));var pM;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(pM||(pM={}));var gM;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ENVIRONMENT_ID="environmentId",e.ROLE_ID="roleId"})(t.property||(t.property={}))})(gM||(gM={}));var bM;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.NAME="name",e.ID="id",e.CLASSIFICATION="classification"})(t.property||(t.property={}))})(bM||(bM={}));var vM;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(vM||(vM={}));var yM;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.EVENT_ID="eventId",e.ACCOUNT_ID="accountId",e.ATOM_ID="atomId",e.ATOM_NAME="atomName",e.EVENT_LEVEL="eventLevel",e.EVENT_DATE="eventDate",e.STATUS="status",e.EVENT_TYPE="eventType",e.EXECUTION_ID="executionId",e.TITLE="title",e.UPDATE_DATE="updateDate",e.START_TIME="startTime",e.END_TIME="endTime",e.ERROR_DOCUMENT_COUNT="errorDocumentCount",e.INBOUND_DOCUMENT_COUNT="inboundDocumentCount",e.OUTBOUND_DOCUMENT_COUNT="outboundDocumentCount",e.PROCESS_NAME="processName",e.RECORD_DATE="recordDate",e.ERROR="error",e.ENVIRONMENT="environment",e.CLASSIFICATION="classification"})(t.property||(t.property={}))})(yM||(yM={}));var EM;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(EM||(EM={}));var wM;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.EXECUTION_ID="executionId",e.CONNECTOR_TYPE="connectorType",e.ACTION_TYPE="actionType",e.ERROR_COUNT="errorCount",e.SUCCESS_COUNT="successCount",e.SIZE="size",e.IS_START_SHAPE="isStartShape",e.RECORD_TYPE="recordType"})(t.property||(t.property={}))})(wM||(wM={}));var SM;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(SM||(SM={}));var TM;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(TM||(TM={}));var AM;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ACCOUNT_GROUP_ID="accountGroupId",e.PROCESS_DATE="processDate"})(t.property||(t.property={}))})(AM||(AM={}));var xM;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ENVIRONMENT_ID="environmentId",e.ATOM_ID="atomId",e.PROCESS_DATE="processDate"})(t.property||(t.property={}))})(xM||(xM={}));var _M;(t=>{(e=>{e.EXEC_MANUAL="exec_manual",e.EXEC_SCHED="exec_sched",e.EXEC_LISTENER="exec_listener",e.EXEC_LISTENER_BRIDGE="exec_listener_bridge",e.EXEC_REMOTE="exec_remote",e.RETRY_MANUAL="retry_manual",e.RETRY_SCHED="retry_sched",e.FIBER="fiber",e.SUB_PROCESS="sub_process",e.TEST_MANUAL="test_manual",e.TEST_SUB_PROCESS="test_sub_process",e.UNKNOWN="unknown"})(t.executionType||(t.executionType={}))})(_M||(_M={}));var CM;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(CM||(CM={}));var NM;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.EXECUTION_ID="executionId",e.ORIGINAL_EXECUTION_ID="originalExecutionId",e.ACCOUNT="account",e.EXECUTION_TIME="executionTime",e.STATUS="status",e.EXECUTION_TYPE="executionType",e.PROCESS_NAME="processName",e.PROCESS_ID="processId",e.ATOM_NAME="atomName",e.ATOM_ID="atomId",e.INBOUND_DOCUMENT_COUNT="inboundDocumentCount",e.OUTBOUND_DOCUMENT_COUNT="outboundDocumentCount",e.EXECUTION_DURATION="executionDuration",e.MESSAGE="message",e.REPORT_KEY="reportKey",e.LAUNCHER_ID="launcherId",e.NODE_ID="nodeId",e.RECORDED_DATE="recordedDate"})(t.property||(t.property={}))})(NM||(NM={}));var RM;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(RM||(RM={}));var LM;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.PROCESS_ID="processId",e.TIME_BLOCK="timeBlock",e.ATOM_ID="atomId",e.STATUS="status",e.REPORT_KEY="reportKey",e.LAUNCHER_ID="launcherId"})(t.property||(t.property={}))})(LM||(LM={}));var OM;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(OM||(OM={}));var DM;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(DM||(DM={}));var MM;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ACCOUNT_ID="accountId",e.ID="id",e.NAME="name",e.FULL_PATH="fullPath",e.DELETED="deleted",e.PARENT_ID="parentId",e.PARENT_NAME="parentName",e.PERMITTED_ROLES="permittedRoles"})(t.property||(t.property={}))})(MM||(MM={}));var kM;(t=>{(e=>{e.DEFAULT="default",e.CUSTOM="custom",e.COMPONENT="component"})(t.CommunicationSetting||(t.CommunicationSetting={}))})(kM||(kM={}));var IM;(t=>{(e=>{e.ACTIONGET="actionget",e.ACTIONGETDELETE="actiongetdelete",e.ACTIONGETMOVE="actiongetmove"})(t.ftpAction||(t.ftpAction={})),(e=>{e.ASCII="ascii",e.BINARY="binary"})(t.transferType||(t.transferType={}))})(IM||(IM={}));var $M;(t=>{(e=>{e.ACTIONPUTRENAME="actionputrename",e.ACTIONPUTAPPEND="actionputappend",e.ACTIONPUTERROR="actionputerror",e.ACTIONPUTOVERWRITE="actionputoverwrite"})(t.ftpAction||(t.ftpAction={})),(e=>{e.ASCII="ascii",e.BINARY="binary"})(t.transferType||(t.transferType={}))})($M||($M={}));var UM;(t=>{(e=>{e.ACTIVE="active",e.PASSIVE="passive"})(t.connectionMode||(t.connectionMode={}))})(UM||(UM={}));var HM;(t=>{(e=>{e.NONE="none",e.EXPLICIT="explicit",e.IMPLICIT="implicit"})(t.sslmode||(t.sslmode={}))})(HM||(HM={}));var jM;(t=>{(e=>{e.SUCCESS="SUCCESS",e.ERROR="ERROR"})(t.status||(t.status={}))})(jM||(jM={}));var zM;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(zM||(zM={}));var BM;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(BM||(BM={}));var FM;(t=>{(e=>{e.EQUALS="EQUALS"})(t.operator||(t.operator={})),(e=>{e.ID="id",e.EXECUTION_CONNECTOR_ID="executionConnectorId",e.EXECUTION_ID="executionId",e.CONNECTION_ID="connectionId",e.OPERATION_ID="operationId",e.ACTION_TYPE="actionType",e.CONNECTOR_TYPE="connectorType",e.ATOM_ID="atomId",e.DATE_PROCESSED="dateProcessed",e.CONNECTION_NAME="connectionName",e.OPERATION_NAME="operationName",e.ERROR_MESSAGE="errorMessage",e.STATUS="status",e.DOCUMENT_INDEX="documentIndex",e.INCREMENTAL_DOCUMENT_INDEX="incrementalDocumentIndex",e.SIZE="size",e.START_SHAPE="startShape",e.RETRYABLE="retryable"})(t.property||(t.property={}))})(FM||(FM={}));var PM;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(PM||(PM={}));var VM;(t=>{(e=>{e.T="T",e.X="X"})(t.respagencycode||(t.respagencycode={}))})(VM||(VM={}));var GM;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(GM||(GM={}));var QM;(t=>{(e=>{e.EQUALS="EQUALS",e.STARTS_WITH="STARTS_WITH",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL"})(t.operator||(t.operator={}))})(QM||(QM={}));var WM;(t=>{(e=>{e.AL="AL",e.NE="NE",e.ER="ER",e.SU="SU",e.NOT_DEFINED="NOT_DEFINED"})(t.acceptackoption||(t.acceptackoption={})),(e=>{e.AL="AL",e.NE="NE",e.ER="ER",e.SU="SU",e.NOT_DEFINED="NOT_DEFINED"})(t.appackoption||(t.appackoption={})),(e=>{e.NONE="none",e.BATCH="batch"})(t.batchoption||(t.batchoption={})),(e=>{e.FILTER_ERROR="filterError",e.FAIL_ALL="failAll"})(t.outboundValidationOption||(t.outboundValidationOption={}))})(WM||(WM={}));var YM;(t=>{(e=>{e.DEFAULT="default",e.CUSTOM="custom",e.COMPONENT="component"})(t.CommunicationSetting||(t.CommunicationSetting={}))})(YM||(YM={}));var XM;(t=>{(e=>{e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE"})(t.methodType||(t.methodType={})),(e=>{e.NONE="NONE",e.XML="XML",e.JSON="JSON"})(t.requestProfileType||(t.requestProfileType={})),(e=>{e.NONE="NONE",e.XML="XML",e.JSON="JSON"})(t.responseProfileType||(t.responseProfileType={}))})(XM||(XM={}));var qM;(t=>{(e=>{e.CODE="code",e.CLIENT_CREDENTIALS="client_credentials",e.PASSWORD="password"})(t.grantType||(t.grantType={}))})(qM||(qM={}));var KM;(t=>{(e=>{e.SHA1="SHA1",e.SHA256="SHA256"})(t.signatureMethod||(t.signatureMethod={}))})(KM||(KM={}));var ZM;(t=>{(e=>{e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE"})(t.methodType||(t.methodType={})),(e=>{e.NONE="NONE",e.XML="XML",e.JSON="JSON"})(t.requestProfileType||(t.requestProfileType={})),(e=>{e.NONE="NONE",e.XML="XML",e.JSON="JSON"})(t.responseProfileType||(t.responseProfileType={}))})(ZM||(ZM={}));var JM;(t=>{(e=>{e.NONE="NONE",e.BASIC="BASIC",e.PASSWORD_DIGEST="PASSWORD_DIGEST",e.CUSTOM="CUSTOM",e.OAUTH="OAUTH",e.OAUTH2="OAUTH2"})(t.authenticationType||(t.authenticationType={})),(e=>{e.IGNORED="IGNORED",e.GLOBAL="GLOBAL",e.CONNECTOR_SHAPE="CONNECTOR_SHAPE"})(t.cookieScope||(t.cookieScope={}))})(JM||(JM={}));var e2;(t=>{(e=>{e.CLOUD="CLOUD",e.ATOM="ATOM",e.MOLECULE="MOLECULE",e.BROKER="BROKER",e.GATEWAY="GATEWAY"})(t.installType||(t.installType={}))})(e2||(e2={}));var t2;(t=>{(e=>{e.SINGLE="SINGLE",e.MULTI="MULTI"})(t.installationType||(t.installationType={}))})(t2||(t2={}));var n2;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(n2||(n2={}));var o2;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ATOM_ID="atomId",e.INTEGRATION_PACK_INSTANCE_ID="integrationPackInstanceId"})(t.property||(t.property={}))})(o2||(o2={}));var i2;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(i2||(i2={}));var r2;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(r2||(r2={}));var a2;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ENVIRONMENT_ID="environmentId",e.INTEGRATION_PACK_INSTANCE_ID="integrationPackInstanceId"})(t.property||(t.property={}))})(a2||(a2={}));var s2;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(s2||(s2={}));var l2;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(l2||(l2={}));var c2;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(c2||(c2={}));var u2;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.INTEGRATION_PACK_OVERRIDE_NAME="integrationPackOverrideName",e.INTEGRATION_PACK_NAME="integrationPackName",e.INTEGRATION_PACK_ID="integrationPackId"})(t.property||(t.property={}))})(u2||(u2={}));var d2;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.NAME="name",e.ID="id",e.INSTALLATION_TYPE="installationType"})(t.property||(t.property={}))})(d2||(d2={}));var f2;(t=>{(e=>{e.X12AUTHQUAL_00="X12AUTHQUAL_00",e.X12AUTHQUAL_01="X12AUTHQUAL_01",e.X12AUTHQUAL_02="X12AUTHQUAL_02",e.X12AUTHQUAL_03="X12AUTHQUAL_03",e.X12AUTHQUAL_04="X12AUTHQUAL_04",e.X12AUTHQUAL_05="X12AUTHQUAL_05"})(t.authorizationInformationQualifier||(t.authorizationInformationQualifier={})),(e=>{e.X12IDQUAL_01="X12IDQUAL_01",e.X12IDQUAL_02="X12IDQUAL_02",e.X12IDQUAL_03="X12IDQUAL_03",e.X12IDQUAL_04="X12IDQUAL_04",e.X12IDQUAL_07="X12IDQUAL_07",e.X12IDQUAL_08="X12IDQUAL_08",e.X12IDQUAL_09="X12IDQUAL_09",e.X12IDQUAL_10="X12IDQUAL_10",e.X12IDQUAL_11="X12IDQUAL_11",e.X12IDQUAL_12="X12IDQUAL_12",e.X12IDQUAL_13="X12IDQUAL_13",e.X12IDQUAL_14="X12IDQUAL_14",e.X12IDQUAL_15="X12IDQUAL_15",e.X12IDQUAL_16="X12IDQUAL_16",e.X12IDQUAL_17="X12IDQUAL_17",e.X12IDQUAL_18="X12IDQUAL_18",e.X12IDQUAL_19="X12IDQUAL_19",e.X12IDQUAL_20="X12IDQUAL_20",e.X12IDQUAL_21="X12IDQUAL_21",e.X12IDQUAL_22="X12IDQUAL_22",e.X12IDQUAL_23="X12IDQUAL_23",e.X12IDQUAL_24="X12IDQUAL_24",e.X12IDQUAL_25="X12IDQUAL_25",e.X12IDQUAL_26="X12IDQUAL_26",e.X12IDQUAL_27="X12IDQUAL_27",e.X12IDQUAL_28="X12IDQUAL_28",e.X12IDQUAL_29="X12IDQUAL_29",e.X12IDQUAL_30="X12IDQUAL_30",e.X12IDQUAL_31="X12IDQUAL_31",e.X12IDQUAL_32="X12IDQUAL_32",e.X12IDQUAL_33="X12IDQUAL_33",e.X12IDQUAL_34="X12IDQUAL_34",e.X12IDQUAL_NR="X12IDQUAL_NR",e.X12IDQUAL_ZZ="X12IDQUAL_ZZ"})(t.interchangeIdQualifier||(t.interchangeIdQualifier={})),(e=>{e.X12SECQUAL_00="X12SECQUAL_00",e.X12SECQUAL_01="X12SECQUAL_01"})(t.securityInformationQualifier||(t.securityInformationQualifier={})),(e=>{e.P="P",e.T="T"})(t.testindicator||(t.testindicator={}))})(f2||(f2={}));var h2;(t=>{(e=>{e[e._200=200]="_200",e[e._202=202]="_202"})(t.responseStatusCode||(t.responseStatusCode={}))})(h2||(h2={}));var m2;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(m2||(m2={}));var p2;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.LISTENER_ID="listenerId",e.CONTAINER_ID="containerId"})(t.property||(t.property={}))})(p2||(p2={}));var US;(t=>{(e=>{e.NONE="None",e.BY_DOCUMENT="ByDocument",e.BY_MAP="ByMap"})(t.cacheType||(t.cacheType={})),(e=>{e.COUNT="Count",e.CURRENT_DATE="CurrentDate",e.DATE_FORMAT="DateFormat",e.LEFT_TRIM="LeftTrim",e.LINE_ITEM_INCREMENT="LineItemIncrement",e.MATH_ABS="MathABS",e.MATH_ADD="MathAdd",e.MATH_CEIL="MathCeil",e.MATH_DIVIDE="MathDivide",e.MATH_FLOOR="MathFloor",e.MATH_MULTIPLY="MathMultiply",e.MATH_SET_PRECISION="MathSetPrecision",e.MATH_SUBTRACT="MathSubtract",e.NUMBER_FORMAT="NumberFormat",e.PROPERTY_GET="PropertyGet",e.PROPERTY_SET="PropertySet",e.RIGHT_TRIM="RightTrim",e.RUNNING_TOTAL="RunningTotal",e.STRING_APPEND="StringAppend",e.STRING_PREPEND="StringPrepend",e.STRING_REMOVE="StringRemove",e.STRING_REPLACE="StringReplace",e.STRING_TO_LOWER="StringToLower",e.STRING_TO_UPPER="StringToUpper",e.SUM="Sum",e.TRIM_WHITESPACE="TrimWhitespace",e.STRING_CONCAT="StringConcat",e.STRING_SPLIT="StringSplit",e.SEQUENTIAL_VALUE="SequentialValue",e.SIMPLE_LOOKUP="SimpleLookup",e.DOCUMENT_PROPERTY_GET="DocumentPropertyGet",e.DOCUMENT_PROPERTY_SET="DocumentPropertySet",e.CROSS_REF_LOOKUP="CrossRefLookup",e.DOCUMENT_CACHE_LOOKUP="DocumentCacheLookup",e.CUSTOM_SCRIPTING="CustomScripting",e.USER_DEFINED="UserDefined",e.JAPANESE_CHARACTER_CONVERSION="JapaneseCharacterConversion"})(t.type||(t.type={}))})(US||(US={}));var g2;(t=>{(e=>{e.NONE="None",e.BY_DOCUMENT="ByDocument",e.BY_MAP="ByMap"})(t.cacheType||(t.cacheType={})),(e=>{e.COUNT="Count",e.CURRENT_DATE="CurrentDate",e.DATE_FORMAT="DateFormat",e.LEFT_TRIM="LeftTrim",e.LINE_ITEM_INCREMENT="LineItemIncrement",e.MATH_ABS="MathABS",e.MATH_ADD="MathAdd",e.MATH_CEIL="MathCeil",e.MATH_DIVIDE="MathDivide",e.MATH_FLOOR="MathFloor",e.MATH_MULTIPLY="MathMultiply",e.MATH_SET_PRECISION="MathSetPrecision",e.MATH_SUBTRACT="MathSubtract",e.NUMBER_FORMAT="NumberFormat",e.PROPERTY_GET="PropertyGet",e.PROPERTY_SET="PropertySet",e.RIGHT_TRIM="RightTrim",e.RUNNING_TOTAL="RunningTotal",e.STRING_APPEND="StringAppend",e.STRING_PREPEND="StringPrepend",e.STRING_REMOVE="StringRemove",e.STRING_REPLACE="StringReplace",e.STRING_TO_LOWER="StringToLower",e.STRING_TO_UPPER="StringToUpper",e.SUM="Sum",e.TRIM_WHITESPACE="TrimWhitespace",e.STRING_CONCAT="StringConcat",e.STRING_SPLIT="StringSplit",e.SEQUENTIAL_VALUE="SequentialValue",e.SIMPLE_LOOKUP="SimpleLookup",e.DOCUMENT_PROPERTY_GET="DocumentPropertyGet",e.DOCUMENT_PROPERTY_SET="DocumentPropertySet",e.CROSS_REF_LOOKUP="CrossRefLookup",e.DOCUMENT_CACHE_LOOKUP="DocumentCacheLookup",e.CUSTOM_SCRIPTING="CustomScripting",e.USER_DEFINED="UserDefined",e.JAPANESE_CHARACTER_CONVERSION="JapaneseCharacterConversion"})(t.type||(t.type={}))})(g2||(g2={}));var b_;(t=>{(e=>{e.GROOVY="GROOVY",e.GROOVY2="GROOVY2",e.JAVASCRIPT="Javascript"})(t.language||(t.language={}))})(b_||(b_={}));var b2;(t=>{(e=>{e.UPDATE="UPDATE",e.MERGE="MERGE",e.RETRY_DRAFTING="RETRY_DRAFTING",e.REVERT="REVERT"})(t.mergeRequestAction||(t.mergeRequestAction={})),(e=>{e.NOT_EXIST="NOT_EXIST",e.DRAFTING="DRAFTING",e.FAILED_TO_DRAFT="FAILED_TO_DRAFT",e.FAILED_TO_REDRAFT="FAILED_TO_REDRAFT",e.DRAFTED="DRAFTED",e.REVIEWING="REVIEWING",e.MERGING="MERGING",e.MERGED="MERGED",e.FAILED_TO_MERGE="FAILED_TO_MERGE",e.DELETED="DELETED",e.REDRAFTING="REDRAFTING",e.REVERTED="REVERTED"})(t.previousStage||(t.previousStage={})),(e=>{e.SOURCE="SOURCE",e.DESTINATION="DESTINATION"})(t.priorityBranch||(t.priorityBranch={})),(e=>{e.NOT_EXIST="NOT_EXIST",e.DRAFTING="DRAFTING",e.FAILED_TO_DRAFT="FAILED_TO_DRAFT",e.FAILED_TO_REDRAFT="FAILED_TO_REDRAFT",e.DRAFTED="DRAFTED",e.REVIEWING="REVIEWING",e.MERGING="MERGING",e.MERGED="MERGED",e.FAILED_TO_MERGE="FAILED_TO_MERGE",e.DELETED="DELETED",e.REDRAFTING="REDRAFTING",e.REVERTED="REVERTED"})(t.stage||(t.stage={})),(e=>{e.OVERRIDE="OVERRIDE",e.CONFLICT_RESOLVE="CONFLICT_RESOLVE",e.SUBSET="SUBSET"})(t.strategy||(t.strategy={}))})(b2||(b2={}));var v2;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(v2||(v2={}));var y2;(t=>{(e=>{e.ADDED="ADDED",e.MODIFIED="MODIFIED",e.DELETED="DELETED"})(t.changeType||(t.changeType={})),(e=>{e.OVERRIDE="OVERRIDE",e.KEEP_DESTINATION="KEEP_DESTINATION"})(t.resolution||(t.resolution={})),(e=>{e.DRAFTED="DRAFTED",e.REVIEWED="REVIEWED",e.CONFLICT_RESOLVED="CONFLICT_RESOLVED",e.MERGED="MERGED",e.REVERTED="REVERTED"})(t.stage||(t.stage={}))})(y2||(y2={}));var E2;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(E2||(E2={}));var w2;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={}))})(w2||(w2={}));var S2;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(S2||(S2={}));var T2;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ENVIRONMENT_ID="environmentId",e.EXTENSION_GROUP_ID="extensionGroupId",e.CONNECTION_ID="connectionId",e.OAUTH_FIELD_ID="oAuthFieldId",e.CLIENT_ID="clientId",e.CLIENT_SECRET="clientSecret"})(t.property||(t.property={}))})(T2||(T2={}));var A2;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(A2||(A2={}));var x2;(t=>{(e=>{e.EQUALS="EQUALS",e.STARTS_WITH="STARTS_WITH",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL"})(t.operator||(t.operator={}))})(x2||(x2={}));var _2;(t=>{(e=>{e.DONOTACKITEM="donotackitem",e.ACKITEM="ackitem"})(t.acknowledgementoption||(t.acknowledgementoption={})),(e=>{e.GROUPALL="groupall",e.GROUPMESSAGE="groupmessage"})(t.envelopeoption||(t.envelopeoption={})),(e=>{e.FILTER_ERROR="filterError",e.FAIL_ALL="failAll"})(t.outboundValidationOption||(t.outboundValidationOption={}))})(_2||(_2={}));var C2;(t=>{(e=>{e.ODETTEIDQUAL_NA="ODETTEIDQUAL_NA",e.ODETTEIDQUAL_1="ODETTEIDQUAL_1",e.ODETTEIDQUAL_4="ODETTEIDQUAL_4",e.ODETTEIDQUAL_5="ODETTEIDQUAL_5",e.ODETTEIDQUAL_8="ODETTEIDQUAL_8",e.ODETTEIDQUAL_9="ODETTEIDQUAL_9",e.ODETTEIDQUAL_12="ODETTEIDQUAL_12",e.ODETTEIDQUAL_14="ODETTEIDQUAL_14",e.ODETTEIDQUAL_18="ODETTEIDQUAL_18",e.ODETTEIDQUAL_22="ODETTEIDQUAL_22",e.ODETTEIDQUAL_30="ODETTEIDQUAL_30",e.ODETTEIDQUAL_31="ODETTEIDQUAL_31",e.ODETTEIDQUAL_33="ODETTEIDQUAL_33",e.ODETTEIDQUAL_34="ODETTEIDQUAL_34",e.ODETTEIDQUAL_51="ODETTEIDQUAL_51",e.ODETTEIDQUAL_52="ODETTEIDQUAL_52",e.ODETTEIDQUAL_53="ODETTEIDQUAL_53",e.ODETTEIDQUAL_54="ODETTEIDQUAL_54",e.ODETTEIDQUAL_55="ODETTEIDQUAL_55",e.ODETTEIDQUAL_57="ODETTEIDQUAL_57",e.ODETTEIDQUAL_58="ODETTEIDQUAL_58",e.ODETTEIDQUAL_59="ODETTEIDQUAL_59",e.ODETTEIDQUAL_61="ODETTEIDQUAL_61",e.ODETTEIDQUAL_63="ODETTEIDQUAL_63",e.ODETTEIDQUAL_65="ODETTEIDQUAL_65",e.ODETTEIDQUAL_80="ODETTEIDQUAL_80",e.ODETTEIDQUAL_82="ODETTEIDQUAL_82",e.ODETTEIDQUAL_84="ODETTEIDQUAL_84",e.ODETTEIDQUAL_85="ODETTEIDQUAL_85",e.ODETTEIDQUAL_86="ODETTEIDQUAL_86",e.ODETTEIDQUAL_87="ODETTEIDQUAL_87",e.ODETTEIDQUAL_89="ODETTEIDQUAL_89",e.ODETTEIDQUAL_90="ODETTEIDQUAL_90",e.ODETTEIDQUAL_91="ODETTEIDQUAL_91",e.ODETTEIDQUAL_92="ODETTEIDQUAL_92",e.ODETTEIDQUAL_103="ODETTEIDQUAL_103",e.ODETTEIDQUAL_128="ODETTEIDQUAL_128",e.ODETTEIDQUAL_129="ODETTEIDQUAL_129",e.ODETTEIDQUAL_144="ODETTEIDQUAL_144",e.ODETTEIDQUAL_145="ODETTEIDQUAL_145",e.ODETTEIDQUAL_146="ODETTEIDQUAL_146",e.ODETTEIDQUAL_147="ODETTEIDQUAL_147",e.ODETTEIDQUAL_148="ODETTEIDQUAL_148",e.ODETTEIDQUAL_Z01="ODETTEIDQUAL_Z01",e.ODETTEIDQUAL_ZZZ="ODETTEIDQUAL_ZZZ",e.ODETTEIDQUAL_ZZ="ODETTEIDQUAL_ZZ"})(t.interchangeIdQual||(t.interchangeIdQual={})),(e=>{e.NA="NA",e.A="A"})(t.priority||(t.priority={})),(e=>{e.NA="NA",e.AA="AA",e.BB="BB"})(t.referencePasswordQualifier||(t.referencePasswordQualifier={})),(e=>{e.UNOA="UNOA",e.UNOB="UNOB",e.UNOC="UNOC",e.UNOD="UNOD",e.UNOE="UNOE",e.UNOF="UNOF"})(t.syntaxId||(t.syntaxId={})),(e=>{e.ODETTESYNTAXVERSION_1="ODETTESYNTAXVERSION_1",e.ODETTESYNTAXVERSION_2="ODETTESYNTAXVERSION_2",e.ODETTESYNTAXVERSION_3="ODETTESYNTAXVERSION_3"})(t.syntaxVersion||(t.syntaxVersion={})),(e=>{e.ODETTETEST_NA="ODETTETEST_NA",e.ODETTETEST_1="ODETTETEST_1"})(t.testIndicator||(t.testIndicator={}))})(C2||(C2={}));var N2;(t=>{(e=>{e.AA="AA",e.AB="AB",e.AC="AC",e.AD="AD",e.AE="AE",e.CC="CC",e.CE="CE",e.EC="EC",e.ED="ED",e.EE="EE",e.EN="EN",e.ER="ER",e.EU="EU",e.EX="EX",e.IA="IA",e.KE="KE",e.LI="LI",e.OD="OD",e.RI="RI",e.RT="RT",e.UN="UN"})(t.controllingAgency||(t.controllingAgency={})),(e=>{e.ODETTERELEASE_1="ODETTERELEASE_1",e.ODETTERELEASE_2="ODETTERELEASE_2",e.ODETTERELEASE_902="ODETTERELEASE_902",e.ODETTERELEASE_911="ODETTERELEASE_911",e.ODETTERELEASE_912="ODETTERELEASE_912",e.ODETTERELEASE_921="ODETTERELEASE_921",e.ODETTERELEASE_932="ODETTERELEASE_932",e.ODETTERELEASE_93A="ODETTERELEASE_93A",e.ODETTERELEASE_94A="ODETTERELEASE_94A",e.ODETTERELEASE_94B="ODETTERELEASE_94B",e.ODETTERELEASE_95A="ODETTERELEASE_95A",e.ODETTERELEASE_95B="ODETTERELEASE_95B",e.ODETTERELEASE_96A="ODETTERELEASE_96A",e.ODETTERELEASE_96B="ODETTERELEASE_96B",e.ODETTERELEASE_97A="ODETTERELEASE_97A",e.ODETTERELEASE_97B="ODETTERELEASE_97B",e.ODETTERELEASE_98A="ODETTERELEASE_98A",e.ODETTERELEASE_98B="ODETTERELEASE_98B",e.ODETTERELEASE_99A="ODETTERELEASE_99A",e.ODETTERELEASE_99B="ODETTERELEASE_99B",e.ODETTERELEASE_00A="ODETTERELEASE_00A",e.ODETTERELEASE_00B="ODETTERELEASE_00B",e.ODETTERELEASE_01A="ODETTERELEASE_01A",e.ODETTERELEASE_01B="ODETTERELEASE_01B",e.ODETTERELEASE_02A="ODETTERELEASE_02A",e.ODETTERELEASE_02B="ODETTERELEASE_02B",e.ODETTERELEASE_03A="ODETTERELEASE_03A",e.ODETTERELEASE_03B="ODETTERELEASE_03B",e.ODETTERELEASE_04A="ODETTERELEASE_04A",e.ODETTERELEASE_04B="ODETTERELEASE_04B",e.ODETTERELEASE_05A="ODETTERELEASE_05A",e.ODETTERELEASE_05B="ODETTERELEASE_05B",e.ODETTERELEASE_06A="ODETTERELEASE_06A",e.ODETTERELEASE_06B="ODETTERELEASE_06B",e.ODETTERELEASE_07A="ODETTERELEASE_07A",e.ODETTERELEASE_07B="ODETTERELEASE_07B",e.ODETTERELEASE_08A="ODETTERELEASE_08A",e.ODETTERELEASE_08B="ODETTERELEASE_08B",e.ODETTERELEASE_09A="ODETTERELEASE_09A",e.ODETTERELEASE_09B="ODETTERELEASE_09B"})(t.release||(t.release={})),(e=>{e.ODETTEVERSION_1="ODETTEVERSION_1",e.ODETTEVERSION_2="ODETTEVERSION_2",e.ODETTEVERSION_4="ODETTEVERSION_4",e.ODETTEVERSION_88="ODETTEVERSION_88",e.ODETTEVERSION_89="ODETTEVERSION_89",e.ODETTEVERSION_90="ODETTEVERSION_90",e.ODETTEVERSION_D="ODETTEVERSION_D",e.ODETTEVERSION_S="ODETTEVERSION_S"})(t.version||(t.version={}))})(N2||(N2={}));var R2;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(R2||(R2={}));var L2;(t=>{(e=>{e.EQUALS="EQUALS",e.STARTS_WITH="STARTS_WITH",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL"})(t.operator||(t.operator={})),(e=>{e.SFIDDSN="sfiddsn",e.SFIDDATE="sfiddate",e.SFIDTIME="sfidtime",e.SFIDDEST="sfiddest",e.INITIATOR_SSIDCODE="initiator_ssidcode",e.RESPONDER_SSIDCODE="responder_ssidcode",e.SFIDORIG="sfidorig",e.SFIDSEC="sfidsec",e.SFIDCOMP="sfidcomp",e.SFIDCIPH="sfidciph",e.SFIDDESC="sfiddesc",e.SFIDSIGN="sfidsign",e.SFIDOSIZ="sfidosiz",e.SFIDENV="sfidenv",e.STATUS="status",e.ACCOUNT="account",e.EXECUTION_ID="executionId",e.ATOM_ID="atomId",e.DATE_PROCESSED="dateProcessed",e.ID="id",e.ACTION_TYPE="actionType",e.CONNECTOR_TYPE="connectorType",e.CONNECTOR_NAME="connectorName",e.OPERATION_NAME="operationName",e.DOCUMENT_INDEX="documentIndex",e.SUCCESSFUL="successful",e.SIZE="size",e.CUSTOM_FIELDS="customFields",e.NAREAS="nareas",e.NAREAST="nareast"})(t.property||(t.property={}))})(L2||(L2={}));var O2;(t=>{(e=>{e.DEFAULT="default",e.CUSTOM="custom",e.COMPONENT="component"})(t.CommunicationSetting||(t.CommunicationSetting={}))})(O2||(O2={}));var D2;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(D2||(D2={}));var M2;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(M2||(M2={}));var k2;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.NAME="name",e.CONTACT_NAME="contactName",e.EMAIL="email",e.PHONE="phone"})(t.property||(t.property={}))})(k2||(k2={}));var I2;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(I2||(I2={}));var $2;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})($2||($2={}));var U2;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(U2||(U2={}));var H2;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={}))})(H2||(H2={}));var j2;(t=>{(e=>{e.DOCUMENTS_PATH="documentsPath",e.ERRORS_PATH="errorsPath"})(t.invalidDocumentRouting||(t.invalidDocumentRouting={}))})(j2||(j2={}));var z2;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(z2||(z2={}));var B2;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ATOM_ID="atomId",e.PROCESS_ID="processId",e.COMPONENT_TYPE="componentType"})(t.property||(t.property={}))})(B2||(B2={}));var F2;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(F2||(F2={}));var P2;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(P2||(P2={}));var V2;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ENVIRONMENT_ID="environmentId",e.PROCESS_ID="processId",e.COMPONENT_TYPE="componentType"})(t.property||(t.property={}))})(V2||(V2={}));var G2;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(G2||(G2={}));var Q2;(t=>{(e=>{e.X12="x12",e.EDIFACT="edifact",e.HL7="hl7",e.CUSTOM="custom",e.ROSETTANET="rosettanet",e.TRADACOMS="tradacoms",e.ODETTE="odette"})(t.standard||(t.standard={}))})(Q2||(Q2={}));var W2;(t=>{(e=>{e.X12="x12",e.EDIFACT="edifact",e.HL7="hl7",e.CUSTOM="custom",e.ROSETTANET="rosettanet",e.TRADACOMS="tradacoms",e.ODETTE="odette"})(t.standard||(t.standard={}))})(W2||(W2={}));var Y2;(t=>{(e=>{e.D="D",e.P="P",e.T="T"})(t.processingId||(t.processingId={})),(e=>{e.A="A",e.R="R",e.I="I",e.T="T",e.NOT_PRESENT="NOT_PRESENT"})(t.processingMode||(t.processingMode={}))})(Y2||(Y2={}));var X2;(t=>{(e=>{e.SEVERE="SEVERE",e.WARNING="WARNING",e.INFO="INFO",e.CONFIG="CONFIG",e.FINE="FINE",e.FINER="FINER",e.FINEST="FINEST",e.ALL="ALL"})(t.logLevel||(t.logLevel={}))})(X2||(X2={}));var q2;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(q2||(q2={}));var K2;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(K2||(K2={}));var Z2;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.PROCESS_ID="processId",e.ATOM_ID="atomId"})(t.property||(t.property={}))})(Z2||(Z2={}));var J2;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(J2||(J2={}));var ek;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(ek||(ek={}));var tk;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.PROCESS_ID="processId",e.ATOM_ID="atomId"})(t.property||(t.property={}))})(tk||(tk={}));var nk;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.NAME="name",e.ID="id",e.INTEGRATION_PACK_ID="integrationPackId",e.INTEGRATION_PACK_INSTANCE_ID="integrationPackInstanceId"})(t.property||(t.property={}))})(nk||(nk={}));var ok;(t=>{(e=>{e.SINGLE="SINGLE",e.MULTI="MULTI"})(t.installationType||(t.installationType={})),(e=>{e.ADD="ADD",e.DELETE="DELETE"})(t.operationType||(t.operationType={}))})(ok||(ok={}));var ik;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(ik||(ik={}));var rk;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(rk||(rk={}));var ak;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={}))})(ak||(ak={}));var sk;(t=>{(e=>{e.DEPENDENT="DEPENDENT",e.INDEPENDENT="INDEPENDENT"})(t.type||(t.type={}))})(sk||(sk={}));var lk;(t=>{(e=>{e.SINGLE="SINGLE",e.MULTI="MULTI"})(t.installationType||(t.installationType={})),(e=>{e.IMMEDIATELY="IMMEDIATELY",e.RELEASE_ON_SPECIFIED_DATE="RELEASE_ON_SPECIFIED_DATE"})(t.releaseSchedule||(t.releaseSchedule={}))})(lk||(lk={}));var ck;(t=>{(e=>{e.SINGLE="SINGLE",e.MULTI="MULTI"})(t.installationType||(t.installationType={})),(e=>{e.IMMEDIATELY="IMMEDIATELY",e.RELEASE_ON_SPECIFIED_DATE="RELEASE_ON_SPECIFIED_DATE"})(t.releaseSchedule||(t.releaseSchedule={})),(e=>{e.IN_PROGRESS="IN_PROGRESS",e.SUCCESS="SUCCESS",e.SCHEDULED="SCHEDULED",e.ERROR="ERROR"})(t.releaseStatus||(t.releaseStatus={}))})(ck||(ck={}));var uk;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(uk||(uk={}));var dk;(t=>{(e=>{e.CLOUD="Cloud",e.CONNECTOR="Connector",e.DATA_HUB_MODEL="Data Hub Model",e.INTEGRATION_PACK="Integration Pack",e.PUBLISHED_PROCESS="Published Process",e.ROLE="Role"})(t.objectType||(t.objectType={}))})(dk||(dk={}));var fk;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(fk||(fk={}));var hk;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(hk||(hk={}));var mk;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.NAME="name",e.PARENT_ID="parentId"})(t.property||(t.property={}))})(mk||(mk={}));var pk;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(pk||(pk={}));var gk;(t=>{(e=>{e.EQUALS="EQUALS",e.STARTS_WITH="STARTS_WITH",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL"})(t.operator||(t.operator={})),(e=>{e.EXECUTION_ID="executionId",e.ATOM_ID="atomId",e.DATE_PROCESSED="dateProcessed",e.ID="id",e.ACTION_TYPE="actionType",e.CONNECTOR_TYPE="connectorType",e.CONNECTOR_NAME="connectorName",e.OPERATION_NAME="operationName",e.DOCUMENT_INDEX="documentIndex",e.SUCCESSFUL="successful",e.SIZE="size",e.ERROR_MESSAGE="errorMessage",e.ACK_STATUS="ackStatus",e.ACK_REPORT="ackReport",e.SENDER_ID="senderID",e.RECEIVER_ID="receiverID",e.KNOWN_INITIATING_PARTNER_ID="knownInitiatingPartnerID",e.FRAMEWORK_VERSION="frameworkVersion",e.PIPCODE="PIPCode",e.PIPVERSION="PIPVersion",e.GLOBAL_PROCESS_CODE="globalProcessCode",e.GLOBAL_BUSINESS_ACTION_CODE="globalBusinessActionCode",e.GLOBAL_DOCUMENT_FUNCTION_CODE="globalDocumentFunctionCode",e.FROM_GLOBAL_PARTNER_ROLE_CLASSIFICATION_CODE="fromGlobalPartnerRoleClassificationCode",e.TO_GLOBAL_PARTNER_ROLE_CLASSIFICATION_CODE="toGlobalPartnerRoleClassificationCode",e.FROM_GLOBAL_BUSINESS_SERVICE_CODE="fromGlobalBusinessServiceCode",e.TO_GLOBAL_BUSINESS_SERVICE_CODE="toGlobalBusinessServiceCode",e.BUSINESS_ACTIVITY_IDENTIFIER="businessActivityIdentifier",e.PROCESS_INSTANCE_IDENTIFIER="processInstanceIdentifier",e.TRANSACTION_INSTANCE_IDENTIFIER="transactionInstanceIdentifier",e.ACTION_INSTANCE_IDENTIFIER="actionInstanceIdentifier",e.IN_RESPONSE_TO_GLOBAL_BUSINESS_ACTION_CODE="inResponseToGlobalBusinessActionCode",e.IN_RESPONSE_TO_INSTANCE_IDENTIFIER="inResponseToInstanceIdentifier",e.GLOBAL_USAGE_CODE="globalUsageCode",e.ATTEMPT_COUNT="attemptCount",e.DATE_TIME="dateTime",e.IS_SECURE_TRANSPORT_REQUIRED="isSecureTransportRequired",e.TIME_TO_ACKNOWLEDGE_ACCEPTANCE="timeToAcknowledgeAcceptance",e.TIME_TO_ACKNOWLEDGE_RECEIPT="timeToAcknowledgeReceipt",e.TIME_TO_PERFORM="timeToPerform",e.OUTBOUND_VALIDATION_STATUS="outboundValidationStatus",e.OUTBOUND_VALIDATION_REPORT="outboundValidationReport"})(t.property||(t.property={}))})(gk||(gk={}));var bk;(t=>{(e=>{e.TEST="Test",e.PRODUCTION="Production"})(t.globalUsageCode||(t.globalUsageCode={})),(e=>{e.DUNS="DUNS"})(t.partnerIdType||(t.partnerIdType={}))})(bk||(bk={}));var vk;(t=>{(e=>{e.BINARY="binary",e.BASE64="base64"})(t.contentTransferEncoding||(t.contentTransferEncoding={})),(e=>{e.NA="na",e.TRIPLEDES="tripledes",e.DES="des",e.RC2_128="rc2-128",e.RC2_64="rc2-64",e.RC2_40="rc2-40",e.AES_128="aes-128",e.AES_192="aes-192",e.AES_256="aes-256"})(t.encryptionAlgorithm||(t.encryptionAlgorithm={})),(e=>{e.SHA1="SHA1",e.SHA224="SHA224",e.SHA256="SHA256",e.SHA384="SHA384",e.SHA512="SHA512"})(t.signatureDigestAlgorithm||(t.signatureDigestAlgorithm={}))})(vk||(vk={}));var yk;(t=>{(e=>{e.V11="v11",e.V20="v20"})(t.version||(t.version={}))})(yk||(yk={}));var Ek;(t=>{(e=>{e.NEVER="NEVER",e.FIRST="FIRST",e.LAST="LAST"})(t.scheduleType||(t.scheduleType={}))})(Ek||(Ek={}));var wk;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(wk||(wk={}));var hE;(t=>{(e=>{e.CHARACTER="CHARACTER",e.DATETIME="DATETIME",e.FLOAT="FLOAT",e.INTEGER="INTEGER"})(t.dataType||(t.dataType={}))})(hE||(hE={}));var Sk;(t=>{(e=>{e.DEFAULT="default",e.CUSTOM="custom",e.COMPONENT="component"})(t.CommunicationSetting||(t.CommunicationSetting={}))})(Sk||(Sk={}));var Tk;(t=>{(e=>{e.ACTIONGET="actionget",e.ACTIONGETDELETE="actiongetdelete",e.ACTIONGETMOVE="actiongetmove"})(t.ftpAction||(t.ftpAction={}))})(Tk||(Tk={}));var Ak;(t=>{(e=>{e.ATOM="ATOM",e.HTTP="HTTP",e.SOCKS4="SOCKS4",e.SOCKS5="SOCKS5"})(t.type||(t.type={}))})(Ak||(Ak={}));var xk;(t=>{(e=>{e.ACTIONPUTRENAME="actionputrename",e.ACTIONPUTAPPEND="actionputappend",e.ACTIONPUTERROR="actionputerror",e.ACTIONPUTOVERWRITE="actionputoverwrite"})(t.ftpAction||(t.ftpAction={}))})(xk||(xk={}));var _k;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(_k||(_k={}));var Ck;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(Ck||(Ck={}));var Nk;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.NAME="name",e.COMMUNICATION_TYPE="communicationType"})(t.property||(t.property={}))})(Nk||(Nk={}));var Rk;(t=>{(e=>{e.BASIC="basic",e.INTERMEDIATE="intermediate",e.ADVANCED="advanced"})(t.apiType||(t.apiType={})),(e=>{e.NONE="none",e.BASIC="basic"})(t.auth||(t.auth={})),(e=>{e.NONE="none",e.BASIC="basic"})(t.minAuth||(t.minAuth={}))})(Rk||(Rk={}));var Lk;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(Lk||(Lk={}));var Ok;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(Ok||(Ok={}));var Dk;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(Dk||(Dk={}));var Mk;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(Mk||(Mk={}));var kk;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ACCOUNT_GROUP_ID="accountGroupId",e.PROCESS_DATE="processDate"})(t.property||(t.property={}))})(kk||(kk={}));var Ik;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ENVIRONMENT_ID="environmentId",e.ATOM_ID="atomId",e.PROCESS_DATE="processDate"})(t.property||(t.property={}))})(Ik||(Ik={}));var $k;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})($k||($k={}));var Uk;(t=>{(e=>{e.EQUALS="EQUALS",e.STARTS_WITH="STARTS_WITH",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL"})(t.operator||(t.operator={})),(e=>{e.EXECUTION_ID="executionId",e.ATOM_ID="atomId",e.DATE_PROCESSED="dateProcessed",e.ID="id",e.ACTION_TYPE="actionType",e.CONNECTOR_TYPE="connectorType",e.CONNECTOR_NAME="connectorName",e.OPERATION_NAME="operationName",e.DOCUMENT_INDEX="documentIndex",e.SUCCESSFUL="successful",e.SIZE="size",e.ERROR_MESSAGE="errorMessage",e.VALIDATION_STATUS="validationStatus",e.VALIDATION_REPORT="validationReport",e.SENDER_NAME="senderName",e.RECEIVER_NAME="receiverName",e.MESSAGE_TYPE="messageType",e.DATE="date",e.TIME="time",e.SENDER_TRANSMISSION_REFERENCE="senderTransmissionReference",e.RECEIVER_TRANSMISSION_REFERENCE="receiverTransmissionReference",e.APPLICATION_REFERENCE="applicationReference",e.TRANSMISSION_PRIORITY_CODE="transmissionPriorityCode",e.FILE_GENERATION_NUMBER="fileGenerationNumber",e.FILE_VERSION_NUMBER="fileVersionNumber"})(t.property||(t.property={}))})(Uk||(Uk={}));var Hk;(t=>{(e=>{e.TRADINGPARTNER="tradingpartner",e.MYCOMPANY="mycompany"})(t.classification||(t.classification={})),(e=>{e.X12="x12",e.EDIFACT="edifact",e.HL7="hl7",e.CUSTOM="custom",e.ROSETTANET="rosettanet",e.TRADACOMS="tradacoms",e.ODETTE="odette"})(t.standard||(t.standard={}))})(Hk||(Hk={}));var jk;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(jk||(jk={}));var zk;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(zk||(zk={}));var Bk;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.NAME="name",e.CLASSIFICATION="classification",e.STANDARD="standard",e.IDENTIFIER="identifier",e.AS2="as2",e.DISK="disk",e.FTP="ftp",e.MLLP="mllp",e.SFTP="sftp",e.HTTP="http",e.OFTP="oftp"})(t.property||(t.property={}))})(Bk||(Bk={}));var Fk;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(Fk||(Fk={}));var Pk;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(Pk||(Pk={}));var Vk;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={}))})(Vk||(Vk={}));var Gk;(t=>{(e=>{e.EDIFACTIDQUAL_NA="EDIFACTIDQUAL_NA",e.EDIFACTIDQUAL_1="EDIFACTIDQUAL_1",e.EDIFACTIDQUAL_4="EDIFACTIDQUAL_4",e.EDIFACTIDQUAL_5="EDIFACTIDQUAL_5",e.EDIFACTIDQUAL_8="EDIFACTIDQUAL_8",e.EDIFACTIDQUAL_9="EDIFACTIDQUAL_9",e.EDIFACTIDQUAL_12="EDIFACTIDQUAL_12",e.EDIFACTIDQUAL_14="EDIFACTIDQUAL_14",e.EDIFACTIDQUAL_18="EDIFACTIDQUAL_18",e.EDIFACTIDQUAL_22="EDIFACTIDQUAL_22",e.EDIFACTIDQUAL_30="EDIFACTIDQUAL_30",e.EDIFACTIDQUAL_31="EDIFACTIDQUAL_31",e.EDIFACTIDQUAL_33="EDIFACTIDQUAL_33",e.EDIFACTIDQUAL_34="EDIFACTIDQUAL_34",e.EDIFACTIDQUAL_51="EDIFACTIDQUAL_51",e.EDIFACTIDQUAL_52="EDIFACTIDQUAL_52",e.EDIFACTIDQUAL_53="EDIFACTIDQUAL_53",e.EDIFACTIDQUAL_54="EDIFACTIDQUAL_54",e.EDIFACTIDQUAL_55="EDIFACTIDQUAL_55",e.EDIFACTIDQUAL_57="EDIFACTIDQUAL_57",e.EDIFACTIDQUAL_58="EDIFACTIDQUAL_58",e.EDIFACTIDQUAL_59="EDIFACTIDQUAL_59",e.EDIFACTIDQUAL_61="EDIFACTIDQUAL_61",e.EDIFACTIDQUAL_63="EDIFACTIDQUAL_63",e.EDIFACTIDQUAL_65="EDIFACTIDQUAL_65",e.EDIFACTIDQUAL_80="EDIFACTIDQUAL_80",e.EDIFACTIDQUAL_82="EDIFACTIDQUAL_82",e.EDIFACTIDQUAL_84="EDIFACTIDQUAL_84",e.EDIFACTIDQUAL_85="EDIFACTIDQUAL_85",e.EDIFACTIDQUAL_86="EDIFACTIDQUAL_86",e.EDIFACTIDQUAL_87="EDIFACTIDQUAL_87",e.EDIFACTIDQUAL_89="EDIFACTIDQUAL_89",e.EDIFACTIDQUAL_90="EDIFACTIDQUAL_90",e.EDIFACTIDQUAL_91="EDIFACTIDQUAL_91",e.EDIFACTIDQUAL_92="EDIFACTIDQUAL_92",e.EDIFACTIDQUAL_103="EDIFACTIDQUAL_103",e.EDIFACTIDQUAL_128="EDIFACTIDQUAL_128",e.EDIFACTIDQUAL_129="EDIFACTIDQUAL_129",e.EDIFACTIDQUAL_144="EDIFACTIDQUAL_144",e.EDIFACTIDQUAL_145="EDIFACTIDQUAL_145",e.EDIFACTIDQUAL_146="EDIFACTIDQUAL_146",e.EDIFACTIDQUAL_147="EDIFACTIDQUAL_147",e.EDIFACTIDQUAL_148="EDIFACTIDQUAL_148",e.EDIFACTIDQUAL_Z01="EDIFACTIDQUAL_Z01",e.EDIFACTIDQUAL_ZZZ="EDIFACTIDQUAL_ZZZ",e.EDIFACTIDQUAL_ZZ="EDIFACTIDQUAL_ZZ"})(t.interchangeIdQual||(t.interchangeIdQual={})),(e=>{e.NA="NA",e.A="A"})(t.priority||(t.priority={})),(e=>{e.NA="NA",e.AA="AA",e.BB="BB"})(t.referencePasswordQualifier||(t.referencePasswordQualifier={})),(e=>{e.UNOA="UNOA",e.UNOB="UNOB",e.UNOC="UNOC",e.UNOD="UNOD",e.UNOE="UNOE",e.UNOF="UNOF"})(t.syntaxId||(t.syntaxId={})),(e=>{e.EDIFACTSYNTAXVERSION_1="EDIFACTSYNTAXVERSION_1",e.EDIFACTSYNTAXVERSION_2="EDIFACTSYNTAXVERSION_2",e.EDIFACTSYNTAXVERSION_3="EDIFACTSYNTAXVERSION_3"})(t.syntaxVersion||(t.syntaxVersion={})),(e=>{e.EDIFACTTEST_NA="EDIFACTTEST_NA",e.EDIFACTTEST_1="EDIFACTTEST_1"})(t.testIndicator||(t.testIndicator={}))})(Gk||(Gk={}));var Qk;(t=>{(e=>{e.EDIFACTIDQUAL_NA="EDIFACTIDQUAL_NA",e.EDIFACTIDQUAL_1="EDIFACTIDQUAL_1",e.EDIFACTIDQUAL_4="EDIFACTIDQUAL_4",e.EDIFACTIDQUAL_5="EDIFACTIDQUAL_5",e.EDIFACTIDQUAL_8="EDIFACTIDQUAL_8",e.EDIFACTIDQUAL_9="EDIFACTIDQUAL_9",e.EDIFACTIDQUAL_12="EDIFACTIDQUAL_12",e.EDIFACTIDQUAL_14="EDIFACTIDQUAL_14",e.EDIFACTIDQUAL_18="EDIFACTIDQUAL_18",e.EDIFACTIDQUAL_22="EDIFACTIDQUAL_22",e.EDIFACTIDQUAL_30="EDIFACTIDQUAL_30",e.EDIFACTIDQUAL_31="EDIFACTIDQUAL_31",e.EDIFACTIDQUAL_33="EDIFACTIDQUAL_33",e.EDIFACTIDQUAL_34="EDIFACTIDQUAL_34",e.EDIFACTIDQUAL_51="EDIFACTIDQUAL_51",e.EDIFACTIDQUAL_52="EDIFACTIDQUAL_52",e.EDIFACTIDQUAL_53="EDIFACTIDQUAL_53",e.EDIFACTIDQUAL_54="EDIFACTIDQUAL_54",e.EDIFACTIDQUAL_55="EDIFACTIDQUAL_55",e.EDIFACTIDQUAL_57="EDIFACTIDQUAL_57",e.EDIFACTIDQUAL_58="EDIFACTIDQUAL_58",e.EDIFACTIDQUAL_59="EDIFACTIDQUAL_59",e.EDIFACTIDQUAL_61="EDIFACTIDQUAL_61",e.EDIFACTIDQUAL_63="EDIFACTIDQUAL_63",e.EDIFACTIDQUAL_65="EDIFACTIDQUAL_65",e.EDIFACTIDQUAL_80="EDIFACTIDQUAL_80",e.EDIFACTIDQUAL_82="EDIFACTIDQUAL_82",e.EDIFACTIDQUAL_84="EDIFACTIDQUAL_84",e.EDIFACTIDQUAL_85="EDIFACTIDQUAL_85",e.EDIFACTIDQUAL_86="EDIFACTIDQUAL_86",e.EDIFACTIDQUAL_87="EDIFACTIDQUAL_87",e.EDIFACTIDQUAL_89="EDIFACTIDQUAL_89",e.EDIFACTIDQUAL_90="EDIFACTIDQUAL_90",e.EDIFACTIDQUAL_91="EDIFACTIDQUAL_91",e.EDIFACTIDQUAL_92="EDIFACTIDQUAL_92",e.EDIFACTIDQUAL_103="EDIFACTIDQUAL_103",e.EDIFACTIDQUAL_128="EDIFACTIDQUAL_128",e.EDIFACTIDQUAL_129="EDIFACTIDQUAL_129",e.EDIFACTIDQUAL_144="EDIFACTIDQUAL_144",e.EDIFACTIDQUAL_145="EDIFACTIDQUAL_145",e.EDIFACTIDQUAL_146="EDIFACTIDQUAL_146",e.EDIFACTIDQUAL_147="EDIFACTIDQUAL_147",e.EDIFACTIDQUAL_148="EDIFACTIDQUAL_148",e.EDIFACTIDQUAL_Z01="EDIFACTIDQUAL_Z01",e.EDIFACTIDQUAL_ZZZ="EDIFACTIDQUAL_ZZZ",e.EDIFACTIDQUAL_ZZ="EDIFACTIDQUAL_ZZ"})(t.applicationIdQual||(t.applicationIdQual={}))})(Qk||(Qk={}));var Wk;(t=>{(e=>{e.AA="AA",e.AB="AB",e.AC="AC",e.AD="AD",e.AE="AE",e.CC="CC",e.CE="CE",e.EC="EC",e.ED="ED",e.EE="EE",e.EN="EN",e.ER="ER",e.EU="EU",e.EX="EX",e.IA="IA",e.KE="KE",e.LI="LI",e.OD="OD",e.RI="RI",e.RT="RT",e.UN="UN"})(t.controllingAgency||(t.controllingAgency={})),(e=>{e.EDIFACTRELEASE_1="EDIFACTRELEASE_1",e.EDIFACTRELEASE_2="EDIFACTRELEASE_2",e.EDIFACTRELEASE_902="EDIFACTRELEASE_902",e.EDIFACTRELEASE_911="EDIFACTRELEASE_911",e.EDIFACTRELEASE_912="EDIFACTRELEASE_912",e.EDIFACTRELEASE_921="EDIFACTRELEASE_921",e.EDIFACTRELEASE_932="EDIFACTRELEASE_932",e.EDIFACTRELEASE_93A="EDIFACTRELEASE_93A",e.EDIFACTRELEASE_94A="EDIFACTRELEASE_94A",e.EDIFACTRELEASE_94B="EDIFACTRELEASE_94B",e.EDIFACTRELEASE_95A="EDIFACTRELEASE_95A",e.EDIFACTRELEASE_95B="EDIFACTRELEASE_95B",e.EDIFACTRELEASE_96A="EDIFACTRELEASE_96A",e.EDIFACTRELEASE_96B="EDIFACTRELEASE_96B",e.EDIFACTRELEASE_97A="EDIFACTRELEASE_97A",e.EDIFACTRELEASE_97B="EDIFACTRELEASE_97B",e.EDIFACTRELEASE_98A="EDIFACTRELEASE_98A",e.EDIFACTRELEASE_98B="EDIFACTRELEASE_98B",e.EDIFACTRELEASE_99A="EDIFACTRELEASE_99A",e.EDIFACTRELEASE_99B="EDIFACTRELEASE_99B",e.EDIFACTRELEASE_00A="EDIFACTRELEASE_00A",e.EDIFACTRELEASE_00B="EDIFACTRELEASE_00B",e.EDIFACTRELEASE_01A="EDIFACTRELEASE_01A",e.EDIFACTRELEASE_01B="EDIFACTRELEASE_01B",e.EDIFACTRELEASE_02A="EDIFACTRELEASE_02A",e.EDIFACTRELEASE_02B="EDIFACTRELEASE_02B",e.EDIFACTRELEASE_03A="EDIFACTRELEASE_03A",e.EDIFACTRELEASE_03B="EDIFACTRELEASE_03B",e.EDIFACTRELEASE_04A="EDIFACTRELEASE_04A",e.EDIFACTRELEASE_04B="EDIFACTRELEASE_04B",e.EDIFACTRELEASE_05A="EDIFACTRELEASE_05A",e.EDIFACTRELEASE_05B="EDIFACTRELEASE_05B",e.EDIFACTRELEASE_06A="EDIFACTRELEASE_06A",e.EDIFACTRELEASE_06B="EDIFACTRELEASE_06B",e.EDIFACTRELEASE_07A="EDIFACTRELEASE_07A",e.EDIFACTRELEASE_07B="EDIFACTRELEASE_07B",e.EDIFACTRELEASE_08A="EDIFACTRELEASE_08A",e.EDIFACTRELEASE_08B="EDIFACTRELEASE_08B",e.EDIFACTRELEASE_09A="EDIFACTRELEASE_09A",e.EDIFACTRELEASE_09B="EDIFACTRELEASE_09B"})(t.release||(t.release={})),(e=>{e.EDIFACTVERSION_1="EDIFACTVERSION_1",e.EDIFACTVERSION_2="EDIFACTVERSION_2",e.EDIFACTVERSION_4="EDIFACTVERSION_4",e.EDIFACTVERSION_88="EDIFACTVERSION_88",e.EDIFACTVERSION_89="EDIFACTVERSION_89",e.EDIFACTVERSION_90="EDIFACTVERSION_90",e.EDIFACTVERSION_D="EDIFACTVERSION_D",e.EDIFACTVERSION_S="EDIFACTVERSION_S"})(t.version||(t.version={}))})(Wk||(Wk={}));var Yk;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(Yk||(Yk={}));var Xk;(t=>{(e=>{e.EQUALS="EQUALS",e.STARTS_WITH="STARTS_WITH",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL"})(t.operator||(t.operator={})),(e=>{e.EXECUTION_ID="executionId",e.ATOM_ID="atomId",e.DATE_PROCESSED="dateProcessed",e.ID="id",e.ACTION_TYPE="actionType",e.CONNECTOR_TYPE="connectorType",e.CONNECTOR_NAME="connectorName",e.OPERATION_NAME="operationName",e.DOCUMENT_INDEX="documentIndex",e.SUCCESSFUL="successful",e.SIZE="size",e.ERROR_MESSAGE="errorMessage",e.ISA_ACK_STATUS="isaAckStatus",e.ISA_ACK_REPORT="isaAckReport",e.ACK_STATUS="ackStatus",e.ACK_REPORT="ackReport",e.ISA_CONTROL="isaControl",e.GS_CONTROL="gsControl",e.ST_CONTROL="stControl",e.FUNCTIONAL_ID="functionalID",e.TRANSACTION_SET="transactionSet",e.TEST_INDICATOR="testIndicator",e.SENDER_IDQUALIFIER="senderIDQualifier",e.SENDER_ID="senderID",e.RECEIVER_IDQUALIFIER="receiverIDQualifier",e.RECEIVER_ID="receiverID",e.APP_SENDER_ID="appSenderID",e.APP_RECEIVER_ID="appReceiverID",e.STANDARD_ID="standardID",e.STANDARD="standard",e.GS_VERSION="gsVersion",e.AGENCY_CODE="agencyCode",e.GS_DATE="gsDate",e.GS_TIME="gsTime",e.OUTBOUND_VALIDATION_STATUS="outboundValidationStatus",e.OUTBOUND_VALIDATION_REPORT="outboundValidationReport"})(t.property||(t.property={}))})(Xk||(Xk={}));var qk;(t=>{(e=>{e.DONOTACKITEM="donotackitem",e.ACKFUNCITEM="ackfuncitem",e.ACKTRANITEM="acktranitem"})(t.acknowledgementoption||(t.acknowledgementoption={})),(e=>{e.GROUPALL="groupall",e.GROUPFG="groupfg",e.GROUPST="groupst"})(t.envelopeoption||(t.envelopeoption={})),(e=>{e.FILTER_ERROR="filterError",e.FAIL_ALL="failAll"})(t.outboundValidationOption||(t.outboundValidationOption={}))})(qk||(qk={}));/**
371
+ */const Cb=t=>{if(t!=null){if(typeof t=="number"||typeof t=="string"&&/^\d+$/.test(t)){const e=Number(t),i=new Date(e);return Number.isNaN(i.getTime())?void 0:i.toISOString()}if(typeof t=="string"){const e=new Date(t);return Number.isNaN(e.getTime())?void 0:e.toISOString()}if(t instanceof Date)return t.toISOString()}};function g_(t){return!!t&&t.type==="text"}function F7(t,e){switch(e.type){case"reset":{const i={},a=[];for(const E of e.list)i[E.id]||a.push(E.id),i[E.id]=E;return{byId:i,order:a}}case"appendOptimistic":return t.byId[e.msg.id]?t:{byId:{...t.byId,[e.msg.id]:e.msg},order:[...t.order,e.msg.id]};case"mergeFromServer":{const i={...t.byId},a=[...t.order];for(const E of e.list)i[E.id]||a.push(E.id),i[E.id]=E;return{byId:i,order:a}}case"reconcileUserEcho":{const i=e.server;if(!(i!=null&&i.id)||i.role!=="user"||!g_(i))return t;const a=sO(i),E=[...t.order],p={...t.byId};for(let g=E.length-1;g>=0;g--){const y=E[g],f=p[y];if(f&&f.sessionId===i.sessionId&&f.role==="user"&&f.status==="pending"&&g_(f)&&sO(f)===a)return delete p[y],p[i.id]={...i,status:"sent"},E[g]=i.id,{byId:p,order:E}}return p[i.id]||(p[i.id]=i,E.push(i.id)),{byId:p,order:E}}default:return t}}function P7(t,e){if(t===e)return!0;if(t.length!==e.length)return!1;for(let i=0;i<t.length;i++){const a=t[i],E=e[i];if(a.sessionId!==E.sessionId||a.lastAt!==E.lastAt||a.lastPreview!==E.lastPreview||a.messageCount!==E.messageCount)return!1}return!0}function sO(t){var i;if(!t||t.type!=="text")return;const e=(i=t.content)==null?void 0:i.data;return typeof e=="string"?e:void 0}function V7(t){var $t;const{integration:e,sessionId:i,onNewSessionId:a,persistMode:E="none"}=t,{boomiConfig:p}=Xn(),g=i!=null,y=Y.useMemo(()=>t.storageKey??`agent:sess:${e.id??"unknown"}`,[t.storageKey,e.id]),f=!g&&E==="modal",b=e.integrationPackId?($t=p==null?void 0:p.agents)==null?void 0:$t[e.integrationPackId]:void 0,c=!!(b!=null&&b.sendMultipartData||b!=null&&b.sendMultiPartOnly),u=(b==null?void 0:b.transport)==="boomi-direct",d=H7(),h=Y.useRef(d.listSessions),m=Y.useRef(d.getConversation),S=Y.useRef(d.createSession),T=Y.useRef(d.sendMessage),A=Y.useRef(d.deleteSession);Y.useEffect(()=>{h.current=d.listSessions,m.current=d.getConversation,S.current=d.createSession,T.current=u?d.sendBoomiAgentSession:d.sendMessage,A.current=d.deleteSession},[d,u]);const[N,O]=Y.useState([]),[D,R]=Y.useState(!1),[C,$]=Y.useState(null),[F,U]=Y.useState(null),j=Y.useRef(!1),X=g?i??null:F,[P,B]=Y.useState(!1),[k,M]=Y.useState(!1),[I,W]=Y.useReducer(F7,{byId:{},order:[]}),Q=Y.useMemo(()=>I.order.map(ze=>I.byId[ze]).filter(Boolean),[I]),[J,K]=Y.useState("idle"),[Z,re]=Y.useState(void 0),te=k||J==="working",ae=Y.useRef(!1),se=Y.useRef(null),ie=Y.useRef(null),ue=Y.useRef(0),me=1500,ve=Y.useCallback(async(ze=!1)=>{const nt=Date.now();if(!ze&&nt-ue.current<me||ie.current)return;const ct=(async()=>{R(!0),$(null);try{const Re=((await h.current({limit:50})).items??[]).map(je=>{const ot=Cb(je.lastActivity)??Cb(je.updatedAt)??Cb(je.lastActivityMs)??Cb(je.createdAt)??new Date().toISOString();return{sessionId:je.sessionId,integrationPackId:je.integrationPackId,lastAt:ot,createdAt:Cb(je.createdAt),updatedAt:Cb(je.updatedAt),lastRole:je.lastRole??void 0,lastPreview:je.lastPreview??void 0,messageCount:je.messageCount??void 0,metadata:je.metadata??void 0}}).filter(je=>e.integrationPackId?je.integrationPackId&&je.integrationPackId===e.integrationPackId:!0);O(je=>P7(je,Re)?je:Re),ue.current=Date.now()}catch(gt){$(gt)}finally{R(!1),ie.current=null}})();return ie.current=ct,ct},[e.integrationPackId]),pe=Y.useCallback(async ze=>{if(ze&&se.current!==ze){se.current=ze,B(!0);try{const ct=((await m.current({sessionId:ze,limit:200})).messages??[]).filter(gt=>(gt==null?void 0:gt.type)!=="status");W({type:"reset",list:ct})}finally{B(!1),se.current===ze&&(se.current=null)}}},[]),ye=Y.useCallback(async()=>{if(ae.current)return null;ae.current=!0;try{const nt=(await S.current({integrationPackId:e.integrationPackId})).sessionId;if(g)a==null||a(nt);else{if(f)try{localStorage.setItem(y,nt)}catch{}await ve(!0),U(nt),j.current=!1}return nt}catch(ze){return Le.warn({e:ze},"createSession failed"),null}finally{ae.current=!1}},[e.integrationPackId,g,a,f,y,ve]),de=Y.useCallback(async ze=>{const nt=X===ze;if(!g&&(nt&&(j.current=!0),U(ct=>ct===ze?null:ct),f))try{(localStorage.getItem(y)||"")===ze&&localStorage.removeItem(y)}catch{}nt&&(W({type:"reset",list:[]}),K("idle"),re(void 0));try{await A.current({sessionId:ze})}finally{await ve(!0)}},[g,f,y,ve,X,W,K,re]),Ve=Y.useCallback(ze=>{if(!g&&(j.current=!1,U(ze),f))try{localStorage.setItem(y,ze)}catch{}},[g,f,y]),De=Y.useCallback(async ze=>{var gt,at;let nt=X;if(nt||(nt=await ye()),!nt)return;const ct=((gt=ze.data)==null?void 0:gt.trim())??"";if(ct){const Re={id:crypto.randomUUID(),sessionId:nt,integrationPackId:e.integrationPackId,agentCommand:"sendMessage",role:"user",type:"text",status:"pending",metadata:{timestamp:new Date().toISOString(),platform:"client"},content:{data:ct}};W({type:"appendOptimistic",msg:Re})}M(!0);try{if((((at=ze.files)==null?void 0:at.length)??0)>0||c){if(u&&Le.warn("Boomi direct transport does not support file attachments yet; sending text only."),u){await T.current({sessionId:nt,agent_id:e.integrationPackId??"",message:ct,preview_mode:!1});return}const je=new FormData;je.append("sessionId",nt),je.append("integrationPackId",e.integrationPackId??""),je.append("agentCommand","sendMessage"),je.append("message",JSON.stringify({role:"user",type:"text",content:{data:ct}}));const ot=ze.files??[];if(c&&ot.length===0){const tt=new File([""],"empty.txt",{type:"text/plain"});je.append("files",tt)}for(const tt of ot)je.append("files",tt);await d.sendMultipart({formData:je})}else u?await T.current({sessionId:nt,agent_id:e.integrationPackId??"",message:ct,preview_mode:!1}):await T.current({sessionId:nt,integrationPackId:e.integrationPackId,agentCommand:"sendMessage",message:{role:"user",type:"text",content:{data:ct}}})}finally{M(!1)}},[X,e.integrationPackId,ye,d,T,W,c,u]),qe=Y.useCallback(async ze=>{var at;if(c){await De({data:ze,files:[]});return}let nt=X;if(nt||(nt=await ye()),!nt)return;const ct=ze??"",gt={id:crypto.randomUUID(),sessionId:nt,integrationPackId:e.integrationPackId,agentCommand:"sendMessage",role:"user",type:"text",status:"pending",metadata:{timestamp:new Date().toISOString(),platform:"client"},content:{data:ct}};W({type:"appendOptimistic",msg:gt}),M(!0);try{const Re=await T.current(u?{sessionId:nt,agent_id:e.integrationPackId??"",message:ct,preview_mode:!1}:{sessionId:nt,integrationPackId:e.integrationPackId,agentCommand:"sendMessage",message:{role:"user",type:"text",content:{data:ct}}});((at=Re==null?void 0:Re.message)==null?void 0:at.role)==="user"&&g_(Re.message)?W({type:"reconcileUserEcho",server:Re.message}):Re!=null&&Re.message&&W({type:"mergeFromServer",list:[Re.message]})}finally{M(!1)}},[X,e.integrationPackId,ye,De,c,u]);Y.useEffect(()=>{ve(!0)},[ve]),Y.useEffect(()=>{if(!g&&!j.current&&!F){if(f)try{const ze=localStorage.getItem(y)||"";if(ze&&N.some(nt=>nt.sessionId===ze)){j.current=!1,U(ze);return}}catch{}if(N.length>0&&(j.current=!1,U(N[0].sessionId),f))try{localStorage.setItem(y,N[0].sessionId)}catch{}}},[g,f,y,N,F]),Y.useEffect(()=>{W({type:"reset",list:[]}),X&&pe(X)},[X,pe]);const et=Y.useRef(0),mt=Y.useCallback(ze=>{if((ze==null?void 0:ze.type)==="status"){const ct=String(ze.status||"working"),gt=typeof ze.note=="string"?ze.note:void 0;K(ct),re(gt);return}ze.role==="user"?W({type:"reconcileUserEcho",server:ze}):W({type:"mergeFromServer",list:[ze]});const nt=Date.now();nt-et.current>5e3&&(et.current=nt,ve())},[W,ve]),xt=Y.useCallback(ze=>{const nt=ze.note;let ct=ze.state;nt&&/progress/i.test(nt)&&(ct="progress"),nt&&/error|timeout|failed/i.test(nt)&&(ct="error"),K(ct),re(nt)},[]);return B7({sessionId:X||"",enabled:!!X,onMessage:mt,onStatus:xt}),{sessions:N,sessionsLoading:D,sessionsError:C,activeSessionId:X,selectSession:Ve,createSession:ye,deleteSession:de,messages:Q,loading:P,busy:te,agentStatus:J,agentNote:Z,sendMessage:qe,sendMessageRich:De,reloadSessions:ve}}var lO;(t=>{(e=>{e.TRIAL="trial",e.ACTIVE="active",e.SUSPENDED="suspended",e.DELETED="deleted",e.UNLIMITED="unlimited"})(t.status||(t.status={})),(e=>{e.STANDARD="standard",e.PREMIER="premier"})(t.supportLevel||(t.supportLevel={}))})(lO||(lO={}));var cO;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(cO||(cO={}));var uO;(t=>{(e=>{e.GENERAL="GENERAL",e.LOW_LATENCY_DEBUG="LOW_LATENCY_DEBUG"})(t.as2Workload||(t.as2Workload={})),(e=>{e.NONE="NONE",e.THREADS="THREADS",e.PROCESSES="PROCESSES"})(t.flowControlParallelProcessTypeOverride||(t.flowControlParallelProcessTypeOverride={})),(e=>{e.GENERAL="GENERAL",e.LOW_LATENCY_DEBUG="LOW_LATENCY_DEBUG",e.LOW_LATENCY="LOW_LATENCY"})(t.httpWorkload||(t.httpWorkload={}))})(uO||(uO={}));var dO;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(dO||(dO={}));var fO;(t=>{(e=>{e.NONE="none",e.INFO="info",e.WARNING="warning",e.ERROR="error"})(t.autoSubscribeAlertLevel||(t.autoSubscribeAlertLevel={}))})(fO||(fO={}));var hO;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(hO||(hO={}));var mO;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ACCOUNT_GROUP_ID="accountGroupId",e.ACCOUNT_ID="accountId"})(t.property||(t.property={}))})(mO||(mO={}));var pO;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(pO||(pO={}));var gO;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(gO||(gO={}));var bO;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(bO||(bO={}));var vO;(t=>{(e=>{e.SINGLE="SINGLE",e.MULTI="MULTI"})(t.installationType||(t.installationType={}))})(vO||(vO={}));var yO;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(yO||(yO={}));var EO;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(EO||(EO={}));var wO;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={}))})(wO||(wO={}));var SO;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ID="id",e.ACCOUNT_ID="accountId",e.NAME="name",e.DEFAULT_GROUP="defaultGroup",e.AUTO_SUBSCRIBE_ALERT_LEVEL="autoSubscribeAlertLevel"})(t.property||(t.property={}))})(SO||(SO={}));var TO;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(TO||(TO={}));var AO;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ACCOUNT_GROUP_ID="accountGroupId",e.USER_ID="userId",e.ROLE_ID="roleId"})(t.property||(t.property={}))})(AO||(AO={}));var xO;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ACCOUNTID="ACCOUNTID",e.DATECREATED="DATECREATED",e.EXPIRATIONDATE="EXPIRATIONDATE",e.NAME="NAME",e.STATUS="STATUS",e.WIDGETACCOUNT="WIDGETACCOUNT",e.OVERDEPLOYED="OVERDEPLOYED"})(t.property||(t.property={}))})(xO||(xO={}));var _O;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(_O||(_O={}));var CO;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(CO||(CO={}));var NO;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ACCOUNT_ID="accountId",e.USER_ID="userId",e.FEDERATION_ID="federationId"})(t.property||(t.property={}))})(NO||(NO={}));var RO;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(RO||(RO={}));var LO;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ACCOUNT_ID="accountId",e.USER_ID="userId",e.ROLE_ID="roleId"})(t.property||(t.property={}))})(LO||(LO={}));var OO;(t=>{(e=>{e.ANY="ANY",e.SUCCESS="SUCCESS",e.ERROR="ERROR"})(t.documentStatus||(t.documentStatus={}))})(OO||(OO={}));var DO;(t=>{(e=>{e.PROD="PROD",e.TEST="TEST"})(t.classification||(t.classification={}))})(DO||(DO={}));var MO;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(MO||(MO={}));var kO;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.PROCESS_DATE="processDate",e.CLASSIFICATION="classification",e.SUCCESS_COUNT="successCount",e.ERROR_COUNT="errorCount"})(t.property||(t.property={}))})(kO||(kO={}));var IO;(t=>{(e=>{e.DEFAULT="default",e.CUSTOM="custom",e.COMPONENT="component"})(t.CommunicationSetting||(t.CommunicationSetting={}))})(IO||(IO={}));var $O;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})($O||($O={}));var UO;(t=>{(e=>{e.EQUALS="EQUALS",e.STARTS_WITH="STARTS_WITH",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL"})(t.operator||(t.operator={}))})(UO||(UO={}));var HO;(t=>{(e=>{e.SHA1="SHA1",e.SHA224="SHA224",e.SHA256="SHA256",e.SHA384="SHA384",e.SHA512="SHA512"})(t.mdnDigestAlg||(t.mdnDigestAlg={})),(e=>{e.SYNC="sync",e.ASYNC="async"})(t.synchronous||(t.synchronous={}))})(HO||(HO={}));var jO;(t=>{(e=>{e.BATCH="BATCH",e.DOCUMENT_CACHE="DOCUMENT_CACHE"})(t.attachmentOption||(t.attachmentOption={})),(e=>{e.TEXTPLAIN="textplain",e.BINARY="binary",e.EDIFACT="edifact",e.EDIX12="edix12",e.APPLICATIONXML="applicationxml",e.TEXTXML="textxml"})(t.dataContentType||(t.dataContentType={})),(e=>{e.NA="na",e.TRIPLEDES="tripledes",e.DES="des",e.RC2_128="rc2-128",e.RC2_64="rc2-64",e.RC2_40="rc2-40",e.AES_128="aes-128",e.AES_192="aes-192",e.AES_256="aes-256"})(t.encryptionAlgorithm||(t.encryptionAlgorithm={})),(e=>{e.SHA1="SHA1",e.SHA224="SHA224",e.SHA256="SHA256",e.SHA384="SHA384",e.SHA512="SHA512"})(t.signingDigestAlg||(t.signingDigestAlg={}))})(jO||(jO={}));var zO;(t=>{(e=>{e.NONE="NONE",e.BASIC="BASIC"})(t.authenticationType||(t.authenticationType={}))})(zO||(zO={}));var BO;(t=>{(e=>{e.UNKNOWN="UNKNOWN",e.ONLINE="ONLINE",e.WARNING="WARNING",e.OFFLINE="OFFLINE"})(t.status||(t.status={})),(e=>{e.CLOUD="CLOUD",e.MOLECULE="MOLECULE",e.ATOM="ATOM"})(t.type||(t.type={}))})(BO||(BO={}));var FO;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(FO||(FO={}));var PO;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(PO||(PO={}));var VO;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ATOM_ID="atomId",e.EXTENSION_GROUP_ID="extensionGroupId",e.CONNECTION_ID="connectionId",e.FIELD_ID="fieldId"})(t.property||(t.property={}))})(VO||(VO={}));var GO;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(GO||(GO={}));var QO;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(QO||(QO={}));var WO;(t=>{(e=>{e.EQUALS="EQUALS",e.NOT_EQUALS="NOT_EQUALS",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.NAME="name",e.ID="id",e.HOSTNAME="hostname",e.STATUS="status",e.TYPE="type",e.CAPABILITIES="capabilities"})(t.property||(t.property={}))})(WO||(WO={}));var YO;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(YO||(YO={}));var XO;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(XO||(XO={}));var qO;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(qO||(qO={}));var KO;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.CONTAINER_ID="containerId",e.USER_ID="userId",e.DATE="date",e.TYPE="type",e.ACTION="action",e.MODIFIER="modifier",e.LEVEL="level",e.SOURCE="source"})(t.property||(t.property={}))})(KO||(KO={}));var ZO;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(ZO||(ZO={}));var JO;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(JO||(JO={}));var eD;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={}))})(eD||(eD={}));var tD;(t=>{(e=>{e.RESTART="restart",e.RESTART_ALL="restart_all",e.PAUSE="pause",e.PAUSE_ALL="pause_all",e.RESUME="resume",e.RESUME_ALL="resume_all"})(t.action||(t.action={}))})(tD||(tD={}));var nD;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(nD||(nD={}));var oD;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(oD||(oD={}));var iD;(t=>{(e=>{e.AWS="AWS",e.AZURE="AZURE"})(t.secretsManagerType||(t.secretsManagerType={}))})(iD||(iD={}));var rD;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.NAME="name",e.ID="id"})(t.property||(t.property={}))})(rD||(rD={}));var aD;(t=>{(e=>{e.CERTIFICATE="certificate",e.CONNECTOR_ACTION="connector-action",e.CONNECTOR_SETTINGS="connector-settings",e.CROSSREF="crossref",e.DOCUMENTCACHE="documentcache",e.TRANSFORM_MAP="transform.map",e.TRANSFORM_FUNCTION="transform.function",e.CERTIFICATE_PGP="certificate.pgp",e.PROCESS="process",e.PROCESSPROPERTY="processproperty",e.PROFILE_DB="profile.db",e.PROFILE_EDI="profile.edi",e.PROFILE_FLATFILE="profile.flatfile",e.PROFILE_XML="profile.xml",e.PROFILE_JSON="profile.json",e.QUEUE="queue",e.TRADINGPARTNER="tradingpartner",e.TPGROUP="tpgroup",e.TPORGANIZATION="tporganization",e.TPCOMMOPTIONS="tpcommoptions",e.WEBSERVICE="webservice",e.WEBSERVICE_EXTERNAL="webservice.external",e.PROCESSROUTE="processroute",e.CUSTOMLIBRARY="customlibrary",e.EDISTANDARD="edistandard",e.FLOWSERVICE="flowservice",e.SCRIPT_PROCESSING="script.processing",e.SCRIPT_MAPPING="script.mapping",e.XSLT="xslt"})(t.componentType||(t.componentType={}))})(aD||(aD={}));var sD;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(sD||(sD={}));var lD;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ATOM_ID="atomId",e.COMPONENT_ID="componentId",e.COMPONENT_TYPE="componentType"})(t.property||(t.property={}))})(lD||(lD={}));var cD;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(cD||(cD={}));var uD;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(uD||(uD={}));var dD;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(dD||(dD={}));var fD;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ENVIRONMENT_ID="environmentId",e.COMPONENT_ID="componentId",e.COMPONENT_TYPE="componentType"})(t.property||(t.property={}))})(fD||(fD={}));var hD;(t=>{(e=>{e.CERTIFICATE="certificate",e.CONNECTOR_ACTION="connector-action",e.CONNECTOR_SETTINGS="connector-settings",e.CROSSREF="crossref",e.DOCUMENTCACHE="documentcache",e.TRANSFORM_MAP="transform.map",e.TRANSFORM_FUNCTION="transform.function",e.CERTIFICATE_PGP="certificate.pgp",e.PROCESS="process",e.PROCESSPROPERTY="processproperty",e.PROFILE_DB="profile.db",e.PROFILE_EDI="profile.edi",e.PROFILE_FLATFILE="profile.flatfile",e.PROFILE_XML="profile.xml",e.PROFILE_JSON="profile.json",e.QUEUE="queue",e.TRADINGPARTNER="tradingpartner",e.TPGROUP="tpgroup",e.TPORGANIZATION="tporganization",e.TPCOMMOPTIONS="tpcommoptions",e.WEBSERVICE="webservice",e.WEBSERVICE_EXTERNAL="webservice.external",e.PROCESSROUTE="processroute",e.CUSTOMLIBRARY="customlibrary",e.EDISTANDARD="edistandard",e.FLOWSERVICE="flowservice",e.SCRIPT_PROCESSING="script.processing",e.SCRIPT_MAPPING="script.mapping",e.XSLT="xslt"})(t.type||(t.type={}))})(hD||(hD={}));var mD;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(mD||(mD={}));var pD;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(pD||(pD={}));var gD;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ACCOUNT_ID="accountId",e.COMPONENT_ID="componentId",e.VERSION="version",e.NAME="name",e.TYPE="type",e.SUB_TYPE="subType",e.CREATED_DATE="createdDate",e.CREATED_BY="createdBy",e.MODIFIED_DATE="modifiedDate",e.MODIFIED_BY="modifiedBy",e.DELETED="deleted",e.CURRENT_VERSION="currentVersion",e.FOLDER_NAME="folderName",e.FOLDER_ID="folderId",e.COPIED_FROM_COMPONENT_ID="copiedFromComponentId",e.COPIED_FROM_COMPONENT_VERSION="copiedFromComponentVersion",e.BRANCH_NAME="branchName",e.BRANCH_ID="branchId"})(t.property||(t.property={}))})(gD||(gD={}));var bD;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(bD||(bD={}));var vD;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(vD||(vD={}));var yD;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.PARENT_COMPONENT_ID="parentComponentId",e.PARENT_VERSION="parentVersion",e.COMPONENT_ID="componentId",e.TYPE="type"})(t.property||(t.property={}))})(yD||(yD={}));var ED;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(ED||(ED={}));var wD;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(wD||(wD={}));var SD;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.TYPE="type",e.NAME="name"})(t.property||(t.property={}))})(SD||(SD={}));var TD;(t=>{(e=>{e.CHARACTER="character",e.DATETIME="datetime",e.NUMBER="number"})(t.type||(t.type={}))})(TD||(TD={}));var AD;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(AD||(AD={}));var xD;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={}))})(xD||(xD={}));var _D;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(_D||(_D={}));var CD;(t=>{(e=>{e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL"})(t.operator||(t.operator={})),(e=>{e.CONTAINER_ID="containerId",e.CONTAINER_NAME="containerName",e.ENVIRONMENT_ID="environmentId",e.ENVIRONMENT_NAME="environmentName",e.EXPIRATION_BOUNDARY="expirationBoundary"})(t.property||(t.property={}))})(CD||(CD={}));var ND;(t=>{(e=>{e.RUNNING="RUNNING",e.PAUSED="PAUSED"})(t.listenerStatus||(t.listenerStatus={}))})(ND||(ND={}));var RD;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(RD||(RD={}));var LD;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(LD||(LD={}));var OD;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.UID="uid",e.NOTES="notes",e.CURRENT="current",e.PACKAGE_NOTES="packageNotes",e.ACTIVE="active",e.COMPONENT_ID="componentId",e.COMPONENT_VERSION="componentVersion",e.COMPONENT_NAME="componentName",e.COMPONENT_TYPE="componentType",e.DEPLOYED_BY="deployedBy",e.DEPLOYED_DATE="deployedDate",e.DEPLOYMENT_ID="deploymentId",e.ENVIRONMENT_ID="environmentId",e.ENVIRONMENT_NAME="environmentName",e.PACKAGE_ID="packageId",e.PACKAGE_VERSION="packageVersion",e.VERSION="version",e.ACCOUNT_ID="accountId",e.BRANCH="branch"})(t.property||(t.property={}))})(OD||(OD={}));var DD;(t=>{(e=>{e.RUNNING="RUNNING",e.PAUSED="PAUSED"})(t.listenerStatus||(t.listenerStatus={}))})(DD||(DD={}));var MD;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(MD||(MD={}));var kD;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(kD||(kD={}));var ID;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ENVIRONMENT_ID="environmentId",e.PROCESS_ID="processId",e.COMPONENT_ID="componentId",e.COMPONENT_TYPE="componentType",e.CURRENT="current"})(t.property||(t.property={}))})(ID||(ID={}));var $D;(t=>{(e=>{e.DEFAULT="default",e.CUSTOM="custom",e.COMPONENT="component"})(t.CommunicationSetting||(t.CommunicationSetting={}))})($D||($D={}));var UD;(t=>{(e=>{e.WILDCARD="wildcard",e.REGEX="regex"})(t.filterMatchType||(t.filterMatchType={}))})(UD||(UD={}));var HD;(t=>{(e=>{e.UNIQUE="unique",e.OVER="over",e.APPEND="append",e.ABORT="abort"})(t.writeOption||(t.writeOption={}))})(HD||(HD={}));var jD;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(jD||(jD={}));var zD;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(zD||(zD={}));var BD;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ACCOUNT_GROUP_ID="accountGroupId",e.PROCESS_DATE="processDate"})(t.property||(t.property={}))})(BD||(BD={}));var FD;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ENVIRONMENT_ID="environmentId",e.ATOM_ID="atomId",e.PROCESS_DATE="processDate"})(t.property||(t.property={}))})(FD||(FD={}));var PD;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(PD||(PD={}));var VD;(t=>{(e=>{e.EQUALS="EQUALS",e.STARTS_WITH="STARTS_WITH",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL"})(t.operator||(t.operator={}))})(VD||(VD={}));var GD;(t=>{(e=>{e.STARDELIMITED="stardelimited",e.COMMADELIMITED="commadelimited",e.TABDELIMITED="tabdelimited",e.TICKDELIMITED="tickdelimited",e.BARDELIMITED="bardelimited",e.PLUSDELIMITED="plusdelimited",e.COLONDELIMITED="colondelimited",e.CARATDELIMITED="caratdelimited",e.AMPERSANDDELIMITED="ampersanddelimited",e.BYTECHARACTER="bytecharacter",e.OTHERCHARACTER="othercharacter"})(t.delimiterValue||(t.delimiterValue={}))})(GD||(GD={}));var QD;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(QD||(QD={}));var WD;(t=>{(e=>{e.EQUALS="EQUALS",e.STARTS_WITH="STARTS_WITH",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL"})(t.operator||(t.operator={}))})(WD||(WD={}));var YD;(t=>{(e=>{e.DONOTACKITEM="donotackitem",e.ACKITEM="ackitem"})(t.acknowledgementoption||(t.acknowledgementoption={})),(e=>{e.GROUPALL="groupall",e.GROUPFG="groupfg",e.GROUPMESSAGE="groupmessage"})(t.envelopeoption||(t.envelopeoption={})),(e=>{e.FILTER_ERROR="filterError",e.FAIL_ALL="failAll"})(t.outboundValidationOption||(t.outboundValidationOption={}))})(YD||(YD={}));var XD;(t=>{(e=>{e.NEWLINE="newline",e.SINGLEQUOTE="singlequote",e.TILDE="tilde",e.CARRIAGERETURN="carriagereturn",e.BYTECHARACTER="bytecharacter",e.OTHERCHARACTER="othercharacter"})(t.segmentTerminatorValue||(t.segmentTerminatorValue={}))})(XD||(XD={}));var qD;(t=>{(e=>{e.PROD="PROD",e.TEST="TEST"})(t.classification||(t.classification={}))})(qD||(qD={}));var KD;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(KD||(KD={}));var ZD;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ATOM_ID="atomId",e.ENVIRONMENT_ID="environmentId"})(t.property||(t.property={}))})(ZD||(ZD={}));var JD;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(JD||(JD={}));var eM;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(eM||(eM={}));var tM;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ENVIRONMENT_ID="environmentId",e.EXTENSION_GROUP_ID="extensionGroupId",e.CONNECTION_ID="connectionId",e.FIELD_ID="fieldId"})(t.property||(t.property={}))})(tM||(tM={}));var nM;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(nM||(nM={}));var oM;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(oM||(oM={}));var iM;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ENVIRONMENT_ID="environmentId",e.EXTENSION_GROUP_ID="extensionGroupId"})(t.property||(t.property={}))})(iM||(iM={}));var rM;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(rM||(rM={}));var aM;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(aM||(aM={}));var sM;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(sM||(sM={}));var lM;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ACCOUNT_ID="ACCOUNT_ID",e.ENVIRONMENT_MAP_EXTENSION_ID="ENVIRONMENT_MAP_EXTENSION_ID",e.PACKAGED_COMPONENT_UID="PACKAGED_COMPONENT_UID",e.COMPONENT_ID="COMPONENT_ID",e.COMPONENT_VERSION="COMPONENT_VERSION",e.COMPONENT_NAME="COMPONENT_NAME",e.COMPONENT_TYPE="COMPONENT_TYPE"})(t.property||(t.property={}))})(lM||(lM={}));var cM;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(cM||(cM={}));var uM;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ENVIRONMENT_ID="environmentId",e.EXTENSION_GROUP_ID="extensionGroupId"})(t.property||(t.property={}))})(uM||(uM={}));var dM;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(dM||(dM={}));var fM;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(fM||(fM={}));var hM;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ENVIRONMENT_ID="environmentId",e.EXTENSION_GROUP_ID="extensionGroupId"})(t.property||(t.property={}))})(hM||(hM={}));var mM;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(mM||(mM={}));var pM;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(pM||(pM={}));var gM;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ENVIRONMENT_ID="environmentId",e.ROLE_ID="roleId"})(t.property||(t.property={}))})(gM||(gM={}));var bM;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.NAME="name",e.ID="id",e.CLASSIFICATION="classification"})(t.property||(t.property={}))})(bM||(bM={}));var vM;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(vM||(vM={}));var yM;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.EVENT_ID="eventId",e.ACCOUNT_ID="accountId",e.ATOM_ID="atomId",e.ATOM_NAME="atomName",e.EVENT_LEVEL="eventLevel",e.EVENT_DATE="eventDate",e.STATUS="status",e.EVENT_TYPE="eventType",e.EXECUTION_ID="executionId",e.TITLE="title",e.UPDATE_DATE="updateDate",e.START_TIME="startTime",e.END_TIME="endTime",e.ERROR_DOCUMENT_COUNT="errorDocumentCount",e.INBOUND_DOCUMENT_COUNT="inboundDocumentCount",e.OUTBOUND_DOCUMENT_COUNT="outboundDocumentCount",e.PROCESS_NAME="processName",e.RECORD_DATE="recordDate",e.ERROR="error",e.ENVIRONMENT="environment",e.CLASSIFICATION="classification"})(t.property||(t.property={}))})(yM||(yM={}));var EM;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(EM||(EM={}));var wM;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.EXECUTION_ID="executionId",e.CONNECTOR_TYPE="connectorType",e.ACTION_TYPE="actionType",e.ERROR_COUNT="errorCount",e.SUCCESS_COUNT="successCount",e.SIZE="size",e.IS_START_SHAPE="isStartShape",e.RECORD_TYPE="recordType"})(t.property||(t.property={}))})(wM||(wM={}));var SM;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(SM||(SM={}));var TM;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(TM||(TM={}));var AM;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ACCOUNT_GROUP_ID="accountGroupId",e.PROCESS_DATE="processDate"})(t.property||(t.property={}))})(AM||(AM={}));var xM;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ENVIRONMENT_ID="environmentId",e.ATOM_ID="atomId",e.PROCESS_DATE="processDate"})(t.property||(t.property={}))})(xM||(xM={}));var _M;(t=>{(e=>{e.EXEC_MANUAL="exec_manual",e.EXEC_SCHED="exec_sched",e.EXEC_LISTENER="exec_listener",e.EXEC_LISTENER_BRIDGE="exec_listener_bridge",e.EXEC_REMOTE="exec_remote",e.RETRY_MANUAL="retry_manual",e.RETRY_SCHED="retry_sched",e.FIBER="fiber",e.SUB_PROCESS="sub_process",e.TEST_MANUAL="test_manual",e.TEST_SUB_PROCESS="test_sub_process",e.UNKNOWN="unknown"})(t.executionType||(t.executionType={}))})(_M||(_M={}));var CM;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(CM||(CM={}));var NM;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.EXECUTION_ID="executionId",e.ORIGINAL_EXECUTION_ID="originalExecutionId",e.ACCOUNT="account",e.EXECUTION_TIME="executionTime",e.STATUS="status",e.EXECUTION_TYPE="executionType",e.PROCESS_NAME="processName",e.PROCESS_ID="processId",e.ATOM_NAME="atomName",e.ATOM_ID="atomId",e.INBOUND_DOCUMENT_COUNT="inboundDocumentCount",e.OUTBOUND_DOCUMENT_COUNT="outboundDocumentCount",e.EXECUTION_DURATION="executionDuration",e.MESSAGE="message",e.REPORT_KEY="reportKey",e.LAUNCHER_ID="launcherId",e.NODE_ID="nodeId",e.RECORDED_DATE="recordedDate"})(t.property||(t.property={}))})(NM||(NM={}));var RM;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(RM||(RM={}));var LM;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.PROCESS_ID="processId",e.TIME_BLOCK="timeBlock",e.ATOM_ID="atomId",e.STATUS="status",e.REPORT_KEY="reportKey",e.LAUNCHER_ID="launcherId"})(t.property||(t.property={}))})(LM||(LM={}));var OM;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(OM||(OM={}));var DM;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(DM||(DM={}));var MM;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ACCOUNT_ID="accountId",e.ID="id",e.NAME="name",e.FULL_PATH="fullPath",e.DELETED="deleted",e.PARENT_ID="parentId",e.PARENT_NAME="parentName",e.PERMITTED_ROLES="permittedRoles"})(t.property||(t.property={}))})(MM||(MM={}));var kM;(t=>{(e=>{e.DEFAULT="default",e.CUSTOM="custom",e.COMPONENT="component"})(t.CommunicationSetting||(t.CommunicationSetting={}))})(kM||(kM={}));var IM;(t=>{(e=>{e.ACTIONGET="actionget",e.ACTIONGETDELETE="actiongetdelete",e.ACTIONGETMOVE="actiongetmove"})(t.ftpAction||(t.ftpAction={})),(e=>{e.ASCII="ascii",e.BINARY="binary"})(t.transferType||(t.transferType={}))})(IM||(IM={}));var $M;(t=>{(e=>{e.ACTIONPUTRENAME="actionputrename",e.ACTIONPUTAPPEND="actionputappend",e.ACTIONPUTERROR="actionputerror",e.ACTIONPUTOVERWRITE="actionputoverwrite"})(t.ftpAction||(t.ftpAction={})),(e=>{e.ASCII="ascii",e.BINARY="binary"})(t.transferType||(t.transferType={}))})($M||($M={}));var UM;(t=>{(e=>{e.ACTIVE="active",e.PASSIVE="passive"})(t.connectionMode||(t.connectionMode={}))})(UM||(UM={}));var HM;(t=>{(e=>{e.NONE="none",e.EXPLICIT="explicit",e.IMPLICIT="implicit"})(t.sslmode||(t.sslmode={}))})(HM||(HM={}));var jM;(t=>{(e=>{e.SUCCESS="SUCCESS",e.ERROR="ERROR"})(t.status||(t.status={}))})(jM||(jM={}));var zM;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(zM||(zM={}));var BM;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(BM||(BM={}));var FM;(t=>{(e=>{e.EQUALS="EQUALS"})(t.operator||(t.operator={})),(e=>{e.ID="id",e.EXECUTION_CONNECTOR_ID="executionConnectorId",e.EXECUTION_ID="executionId",e.CONNECTION_ID="connectionId",e.OPERATION_ID="operationId",e.ACTION_TYPE="actionType",e.CONNECTOR_TYPE="connectorType",e.ATOM_ID="atomId",e.DATE_PROCESSED="dateProcessed",e.CONNECTION_NAME="connectionName",e.OPERATION_NAME="operationName",e.ERROR_MESSAGE="errorMessage",e.STATUS="status",e.DOCUMENT_INDEX="documentIndex",e.INCREMENTAL_DOCUMENT_INDEX="incrementalDocumentIndex",e.SIZE="size",e.START_SHAPE="startShape",e.RETRYABLE="retryable"})(t.property||(t.property={}))})(FM||(FM={}));var PM;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(PM||(PM={}));var VM;(t=>{(e=>{e.T="T",e.X="X"})(t.respagencycode||(t.respagencycode={}))})(VM||(VM={}));var GM;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(GM||(GM={}));var QM;(t=>{(e=>{e.EQUALS="EQUALS",e.STARTS_WITH="STARTS_WITH",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL"})(t.operator||(t.operator={}))})(QM||(QM={}));var WM;(t=>{(e=>{e.AL="AL",e.NE="NE",e.ER="ER",e.SU="SU",e.NOT_DEFINED="NOT_DEFINED"})(t.acceptackoption||(t.acceptackoption={})),(e=>{e.AL="AL",e.NE="NE",e.ER="ER",e.SU="SU",e.NOT_DEFINED="NOT_DEFINED"})(t.appackoption||(t.appackoption={})),(e=>{e.NONE="none",e.BATCH="batch"})(t.batchoption||(t.batchoption={})),(e=>{e.FILTER_ERROR="filterError",e.FAIL_ALL="failAll"})(t.outboundValidationOption||(t.outboundValidationOption={}))})(WM||(WM={}));var YM;(t=>{(e=>{e.DEFAULT="default",e.CUSTOM="custom",e.COMPONENT="component"})(t.CommunicationSetting||(t.CommunicationSetting={}))})(YM||(YM={}));var XM;(t=>{(e=>{e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE"})(t.methodType||(t.methodType={})),(e=>{e.NONE="NONE",e.XML="XML",e.JSON="JSON"})(t.requestProfileType||(t.requestProfileType={})),(e=>{e.NONE="NONE",e.XML="XML",e.JSON="JSON"})(t.responseProfileType||(t.responseProfileType={}))})(XM||(XM={}));var qM;(t=>{(e=>{e.CODE="code",e.CLIENT_CREDENTIALS="client_credentials",e.PASSWORD="password"})(t.grantType||(t.grantType={}))})(qM||(qM={}));var KM;(t=>{(e=>{e.SHA1="SHA1",e.SHA256="SHA256"})(t.signatureMethod||(t.signatureMethod={}))})(KM||(KM={}));var ZM;(t=>{(e=>{e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE"})(t.methodType||(t.methodType={})),(e=>{e.NONE="NONE",e.XML="XML",e.JSON="JSON"})(t.requestProfileType||(t.requestProfileType={})),(e=>{e.NONE="NONE",e.XML="XML",e.JSON="JSON"})(t.responseProfileType||(t.responseProfileType={}))})(ZM||(ZM={}));var JM;(t=>{(e=>{e.NONE="NONE",e.BASIC="BASIC",e.PASSWORD_DIGEST="PASSWORD_DIGEST",e.CUSTOM="CUSTOM",e.OAUTH="OAUTH",e.OAUTH2="OAUTH2"})(t.authenticationType||(t.authenticationType={})),(e=>{e.IGNORED="IGNORED",e.GLOBAL="GLOBAL",e.CONNECTOR_SHAPE="CONNECTOR_SHAPE"})(t.cookieScope||(t.cookieScope={}))})(JM||(JM={}));var e2;(t=>{(e=>{e.CLOUD="CLOUD",e.ATOM="ATOM",e.MOLECULE="MOLECULE",e.BROKER="BROKER",e.GATEWAY="GATEWAY"})(t.installType||(t.installType={}))})(e2||(e2={}));var t2;(t=>{(e=>{e.SINGLE="SINGLE",e.MULTI="MULTI"})(t.installationType||(t.installationType={}))})(t2||(t2={}));var n2;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(n2||(n2={}));var o2;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ATOM_ID="atomId",e.INTEGRATION_PACK_INSTANCE_ID="integrationPackInstanceId"})(t.property||(t.property={}))})(o2||(o2={}));var i2;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(i2||(i2={}));var r2;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(r2||(r2={}));var a2;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ENVIRONMENT_ID="environmentId",e.INTEGRATION_PACK_INSTANCE_ID="integrationPackInstanceId"})(t.property||(t.property={}))})(a2||(a2={}));var s2;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(s2||(s2={}));var l2;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(l2||(l2={}));var c2;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(c2||(c2={}));var u2;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.INTEGRATION_PACK_OVERRIDE_NAME="integrationPackOverrideName",e.INTEGRATION_PACK_NAME="integrationPackName",e.INTEGRATION_PACK_ID="integrationPackId"})(t.property||(t.property={}))})(u2||(u2={}));var d2;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.NAME="name",e.ID="id",e.INSTALLATION_TYPE="installationType"})(t.property||(t.property={}))})(d2||(d2={}));var f2;(t=>{(e=>{e.X12AUTHQUAL_00="X12AUTHQUAL_00",e.X12AUTHQUAL_01="X12AUTHQUAL_01",e.X12AUTHQUAL_02="X12AUTHQUAL_02",e.X12AUTHQUAL_03="X12AUTHQUAL_03",e.X12AUTHQUAL_04="X12AUTHQUAL_04",e.X12AUTHQUAL_05="X12AUTHQUAL_05"})(t.authorizationInformationQualifier||(t.authorizationInformationQualifier={})),(e=>{e.X12IDQUAL_01="X12IDQUAL_01",e.X12IDQUAL_02="X12IDQUAL_02",e.X12IDQUAL_03="X12IDQUAL_03",e.X12IDQUAL_04="X12IDQUAL_04",e.X12IDQUAL_07="X12IDQUAL_07",e.X12IDQUAL_08="X12IDQUAL_08",e.X12IDQUAL_09="X12IDQUAL_09",e.X12IDQUAL_10="X12IDQUAL_10",e.X12IDQUAL_11="X12IDQUAL_11",e.X12IDQUAL_12="X12IDQUAL_12",e.X12IDQUAL_13="X12IDQUAL_13",e.X12IDQUAL_14="X12IDQUAL_14",e.X12IDQUAL_15="X12IDQUAL_15",e.X12IDQUAL_16="X12IDQUAL_16",e.X12IDQUAL_17="X12IDQUAL_17",e.X12IDQUAL_18="X12IDQUAL_18",e.X12IDQUAL_19="X12IDQUAL_19",e.X12IDQUAL_20="X12IDQUAL_20",e.X12IDQUAL_21="X12IDQUAL_21",e.X12IDQUAL_22="X12IDQUAL_22",e.X12IDQUAL_23="X12IDQUAL_23",e.X12IDQUAL_24="X12IDQUAL_24",e.X12IDQUAL_25="X12IDQUAL_25",e.X12IDQUAL_26="X12IDQUAL_26",e.X12IDQUAL_27="X12IDQUAL_27",e.X12IDQUAL_28="X12IDQUAL_28",e.X12IDQUAL_29="X12IDQUAL_29",e.X12IDQUAL_30="X12IDQUAL_30",e.X12IDQUAL_31="X12IDQUAL_31",e.X12IDQUAL_32="X12IDQUAL_32",e.X12IDQUAL_33="X12IDQUAL_33",e.X12IDQUAL_34="X12IDQUAL_34",e.X12IDQUAL_NR="X12IDQUAL_NR",e.X12IDQUAL_ZZ="X12IDQUAL_ZZ"})(t.interchangeIdQualifier||(t.interchangeIdQualifier={})),(e=>{e.X12SECQUAL_00="X12SECQUAL_00",e.X12SECQUAL_01="X12SECQUAL_01"})(t.securityInformationQualifier||(t.securityInformationQualifier={})),(e=>{e.P="P",e.T="T"})(t.testindicator||(t.testindicator={}))})(f2||(f2={}));var h2;(t=>{(e=>{e[e._200=200]="_200",e[e._202=202]="_202"})(t.responseStatusCode||(t.responseStatusCode={}))})(h2||(h2={}));var m2;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(m2||(m2={}));var p2;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.LISTENER_ID="listenerId",e.CONTAINER_ID="containerId"})(t.property||(t.property={}))})(p2||(p2={}));var US;(t=>{(e=>{e.NONE="None",e.BY_DOCUMENT="ByDocument",e.BY_MAP="ByMap"})(t.cacheType||(t.cacheType={})),(e=>{e.COUNT="Count",e.CURRENT_DATE="CurrentDate",e.DATE_FORMAT="DateFormat",e.LEFT_TRIM="LeftTrim",e.LINE_ITEM_INCREMENT="LineItemIncrement",e.MATH_ABS="MathABS",e.MATH_ADD="MathAdd",e.MATH_CEIL="MathCeil",e.MATH_DIVIDE="MathDivide",e.MATH_FLOOR="MathFloor",e.MATH_MULTIPLY="MathMultiply",e.MATH_SET_PRECISION="MathSetPrecision",e.MATH_SUBTRACT="MathSubtract",e.NUMBER_FORMAT="NumberFormat",e.PROPERTY_GET="PropertyGet",e.PROPERTY_SET="PropertySet",e.RIGHT_TRIM="RightTrim",e.RUNNING_TOTAL="RunningTotal",e.STRING_APPEND="StringAppend",e.STRING_PREPEND="StringPrepend",e.STRING_REMOVE="StringRemove",e.STRING_REPLACE="StringReplace",e.STRING_TO_LOWER="StringToLower",e.STRING_TO_UPPER="StringToUpper",e.SUM="Sum",e.TRIM_WHITESPACE="TrimWhitespace",e.STRING_CONCAT="StringConcat",e.STRING_SPLIT="StringSplit",e.SEQUENTIAL_VALUE="SequentialValue",e.SIMPLE_LOOKUP="SimpleLookup",e.DOCUMENT_PROPERTY_GET="DocumentPropertyGet",e.DOCUMENT_PROPERTY_SET="DocumentPropertySet",e.CROSS_REF_LOOKUP="CrossRefLookup",e.DOCUMENT_CACHE_LOOKUP="DocumentCacheLookup",e.CUSTOM_SCRIPTING="CustomScripting",e.USER_DEFINED="UserDefined",e.JAPANESE_CHARACTER_CONVERSION="JapaneseCharacterConversion"})(t.type||(t.type={}))})(US||(US={}));var g2;(t=>{(e=>{e.NONE="None",e.BY_DOCUMENT="ByDocument",e.BY_MAP="ByMap"})(t.cacheType||(t.cacheType={})),(e=>{e.COUNT="Count",e.CURRENT_DATE="CurrentDate",e.DATE_FORMAT="DateFormat",e.LEFT_TRIM="LeftTrim",e.LINE_ITEM_INCREMENT="LineItemIncrement",e.MATH_ABS="MathABS",e.MATH_ADD="MathAdd",e.MATH_CEIL="MathCeil",e.MATH_DIVIDE="MathDivide",e.MATH_FLOOR="MathFloor",e.MATH_MULTIPLY="MathMultiply",e.MATH_SET_PRECISION="MathSetPrecision",e.MATH_SUBTRACT="MathSubtract",e.NUMBER_FORMAT="NumberFormat",e.PROPERTY_GET="PropertyGet",e.PROPERTY_SET="PropertySet",e.RIGHT_TRIM="RightTrim",e.RUNNING_TOTAL="RunningTotal",e.STRING_APPEND="StringAppend",e.STRING_PREPEND="StringPrepend",e.STRING_REMOVE="StringRemove",e.STRING_REPLACE="StringReplace",e.STRING_TO_LOWER="StringToLower",e.STRING_TO_UPPER="StringToUpper",e.SUM="Sum",e.TRIM_WHITESPACE="TrimWhitespace",e.STRING_CONCAT="StringConcat",e.STRING_SPLIT="StringSplit",e.SEQUENTIAL_VALUE="SequentialValue",e.SIMPLE_LOOKUP="SimpleLookup",e.DOCUMENT_PROPERTY_GET="DocumentPropertyGet",e.DOCUMENT_PROPERTY_SET="DocumentPropertySet",e.CROSS_REF_LOOKUP="CrossRefLookup",e.DOCUMENT_CACHE_LOOKUP="DocumentCacheLookup",e.CUSTOM_SCRIPTING="CustomScripting",e.USER_DEFINED="UserDefined",e.JAPANESE_CHARACTER_CONVERSION="JapaneseCharacterConversion"})(t.type||(t.type={}))})(g2||(g2={}));var b_;(t=>{(e=>{e.GROOVY="GROOVY",e.GROOVY2="GROOVY2",e.JAVASCRIPT="Javascript"})(t.language||(t.language={}))})(b_||(b_={}));var b2;(t=>{(e=>{e.UPDATE="UPDATE",e.MERGE="MERGE",e.RETRY_DRAFTING="RETRY_DRAFTING",e.REVERT="REVERT"})(t.mergeRequestAction||(t.mergeRequestAction={})),(e=>{e.NOT_EXIST="NOT_EXIST",e.DRAFTING="DRAFTING",e.FAILED_TO_DRAFT="FAILED_TO_DRAFT",e.FAILED_TO_REDRAFT="FAILED_TO_REDRAFT",e.DRAFTED="DRAFTED",e.REVIEWING="REVIEWING",e.MERGING="MERGING",e.MERGED="MERGED",e.FAILED_TO_MERGE="FAILED_TO_MERGE",e.DELETED="DELETED",e.REDRAFTING="REDRAFTING",e.REVERTED="REVERTED"})(t.previousStage||(t.previousStage={})),(e=>{e.SOURCE="SOURCE",e.DESTINATION="DESTINATION"})(t.priorityBranch||(t.priorityBranch={})),(e=>{e.NOT_EXIST="NOT_EXIST",e.DRAFTING="DRAFTING",e.FAILED_TO_DRAFT="FAILED_TO_DRAFT",e.FAILED_TO_REDRAFT="FAILED_TO_REDRAFT",e.DRAFTED="DRAFTED",e.REVIEWING="REVIEWING",e.MERGING="MERGING",e.MERGED="MERGED",e.FAILED_TO_MERGE="FAILED_TO_MERGE",e.DELETED="DELETED",e.REDRAFTING="REDRAFTING",e.REVERTED="REVERTED"})(t.stage||(t.stage={})),(e=>{e.OVERRIDE="OVERRIDE",e.CONFLICT_RESOLVE="CONFLICT_RESOLVE",e.SUBSET="SUBSET"})(t.strategy||(t.strategy={}))})(b2||(b2={}));var v2;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(v2||(v2={}));var y2;(t=>{(e=>{e.ADDED="ADDED",e.MODIFIED="MODIFIED",e.DELETED="DELETED"})(t.changeType||(t.changeType={})),(e=>{e.OVERRIDE="OVERRIDE",e.KEEP_DESTINATION="KEEP_DESTINATION"})(t.resolution||(t.resolution={})),(e=>{e.DRAFTED="DRAFTED",e.REVIEWED="REVIEWED",e.CONFLICT_RESOLVED="CONFLICT_RESOLVED",e.MERGED="MERGED",e.REVERTED="REVERTED"})(t.stage||(t.stage={}))})(y2||(y2={}));var E2;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(E2||(E2={}));var w2;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={}))})(w2||(w2={}));var S2;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(S2||(S2={}));var T2;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ENVIRONMENT_ID="environmentId",e.EXTENSION_GROUP_ID="extensionGroupId",e.CONNECTION_ID="connectionId",e.OAUTH_FIELD_ID="oAuthFieldId",e.CLIENT_ID="clientId",e.CLIENT_SECRET="clientSecret"})(t.property||(t.property={}))})(T2||(T2={}));var A2;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(A2||(A2={}));var x2;(t=>{(e=>{e.EQUALS="EQUALS",e.STARTS_WITH="STARTS_WITH",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL"})(t.operator||(t.operator={}))})(x2||(x2={}));var _2;(t=>{(e=>{e.DONOTACKITEM="donotackitem",e.ACKITEM="ackitem"})(t.acknowledgementoption||(t.acknowledgementoption={})),(e=>{e.GROUPALL="groupall",e.GROUPMESSAGE="groupmessage"})(t.envelopeoption||(t.envelopeoption={})),(e=>{e.FILTER_ERROR="filterError",e.FAIL_ALL="failAll"})(t.outboundValidationOption||(t.outboundValidationOption={}))})(_2||(_2={}));var C2;(t=>{(e=>{e.ODETTEIDQUAL_NA="ODETTEIDQUAL_NA",e.ODETTEIDQUAL_1="ODETTEIDQUAL_1",e.ODETTEIDQUAL_4="ODETTEIDQUAL_4",e.ODETTEIDQUAL_5="ODETTEIDQUAL_5",e.ODETTEIDQUAL_8="ODETTEIDQUAL_8",e.ODETTEIDQUAL_9="ODETTEIDQUAL_9",e.ODETTEIDQUAL_12="ODETTEIDQUAL_12",e.ODETTEIDQUAL_14="ODETTEIDQUAL_14",e.ODETTEIDQUAL_18="ODETTEIDQUAL_18",e.ODETTEIDQUAL_22="ODETTEIDQUAL_22",e.ODETTEIDQUAL_30="ODETTEIDQUAL_30",e.ODETTEIDQUAL_31="ODETTEIDQUAL_31",e.ODETTEIDQUAL_33="ODETTEIDQUAL_33",e.ODETTEIDQUAL_34="ODETTEIDQUAL_34",e.ODETTEIDQUAL_51="ODETTEIDQUAL_51",e.ODETTEIDQUAL_52="ODETTEIDQUAL_52",e.ODETTEIDQUAL_53="ODETTEIDQUAL_53",e.ODETTEIDQUAL_54="ODETTEIDQUAL_54",e.ODETTEIDQUAL_55="ODETTEIDQUAL_55",e.ODETTEIDQUAL_57="ODETTEIDQUAL_57",e.ODETTEIDQUAL_58="ODETTEIDQUAL_58",e.ODETTEIDQUAL_59="ODETTEIDQUAL_59",e.ODETTEIDQUAL_61="ODETTEIDQUAL_61",e.ODETTEIDQUAL_63="ODETTEIDQUAL_63",e.ODETTEIDQUAL_65="ODETTEIDQUAL_65",e.ODETTEIDQUAL_80="ODETTEIDQUAL_80",e.ODETTEIDQUAL_82="ODETTEIDQUAL_82",e.ODETTEIDQUAL_84="ODETTEIDQUAL_84",e.ODETTEIDQUAL_85="ODETTEIDQUAL_85",e.ODETTEIDQUAL_86="ODETTEIDQUAL_86",e.ODETTEIDQUAL_87="ODETTEIDQUAL_87",e.ODETTEIDQUAL_89="ODETTEIDQUAL_89",e.ODETTEIDQUAL_90="ODETTEIDQUAL_90",e.ODETTEIDQUAL_91="ODETTEIDQUAL_91",e.ODETTEIDQUAL_92="ODETTEIDQUAL_92",e.ODETTEIDQUAL_103="ODETTEIDQUAL_103",e.ODETTEIDQUAL_128="ODETTEIDQUAL_128",e.ODETTEIDQUAL_129="ODETTEIDQUAL_129",e.ODETTEIDQUAL_144="ODETTEIDQUAL_144",e.ODETTEIDQUAL_145="ODETTEIDQUAL_145",e.ODETTEIDQUAL_146="ODETTEIDQUAL_146",e.ODETTEIDQUAL_147="ODETTEIDQUAL_147",e.ODETTEIDQUAL_148="ODETTEIDQUAL_148",e.ODETTEIDQUAL_Z01="ODETTEIDQUAL_Z01",e.ODETTEIDQUAL_ZZZ="ODETTEIDQUAL_ZZZ",e.ODETTEIDQUAL_ZZ="ODETTEIDQUAL_ZZ"})(t.interchangeIdQual||(t.interchangeIdQual={})),(e=>{e.NA="NA",e.A="A"})(t.priority||(t.priority={})),(e=>{e.NA="NA",e.AA="AA",e.BB="BB"})(t.referencePasswordQualifier||(t.referencePasswordQualifier={})),(e=>{e.UNOA="UNOA",e.UNOB="UNOB",e.UNOC="UNOC",e.UNOD="UNOD",e.UNOE="UNOE",e.UNOF="UNOF"})(t.syntaxId||(t.syntaxId={})),(e=>{e.ODETTESYNTAXVERSION_1="ODETTESYNTAXVERSION_1",e.ODETTESYNTAXVERSION_2="ODETTESYNTAXVERSION_2",e.ODETTESYNTAXVERSION_3="ODETTESYNTAXVERSION_3"})(t.syntaxVersion||(t.syntaxVersion={})),(e=>{e.ODETTETEST_NA="ODETTETEST_NA",e.ODETTETEST_1="ODETTETEST_1"})(t.testIndicator||(t.testIndicator={}))})(C2||(C2={}));var N2;(t=>{(e=>{e.AA="AA",e.AB="AB",e.AC="AC",e.AD="AD",e.AE="AE",e.CC="CC",e.CE="CE",e.EC="EC",e.ED="ED",e.EE="EE",e.EN="EN",e.ER="ER",e.EU="EU",e.EX="EX",e.IA="IA",e.KE="KE",e.LI="LI",e.OD="OD",e.RI="RI",e.RT="RT",e.UN="UN"})(t.controllingAgency||(t.controllingAgency={})),(e=>{e.ODETTERELEASE_1="ODETTERELEASE_1",e.ODETTERELEASE_2="ODETTERELEASE_2",e.ODETTERELEASE_902="ODETTERELEASE_902",e.ODETTERELEASE_911="ODETTERELEASE_911",e.ODETTERELEASE_912="ODETTERELEASE_912",e.ODETTERELEASE_921="ODETTERELEASE_921",e.ODETTERELEASE_932="ODETTERELEASE_932",e.ODETTERELEASE_93A="ODETTERELEASE_93A",e.ODETTERELEASE_94A="ODETTERELEASE_94A",e.ODETTERELEASE_94B="ODETTERELEASE_94B",e.ODETTERELEASE_95A="ODETTERELEASE_95A",e.ODETTERELEASE_95B="ODETTERELEASE_95B",e.ODETTERELEASE_96A="ODETTERELEASE_96A",e.ODETTERELEASE_96B="ODETTERELEASE_96B",e.ODETTERELEASE_97A="ODETTERELEASE_97A",e.ODETTERELEASE_97B="ODETTERELEASE_97B",e.ODETTERELEASE_98A="ODETTERELEASE_98A",e.ODETTERELEASE_98B="ODETTERELEASE_98B",e.ODETTERELEASE_99A="ODETTERELEASE_99A",e.ODETTERELEASE_99B="ODETTERELEASE_99B",e.ODETTERELEASE_00A="ODETTERELEASE_00A",e.ODETTERELEASE_00B="ODETTERELEASE_00B",e.ODETTERELEASE_01A="ODETTERELEASE_01A",e.ODETTERELEASE_01B="ODETTERELEASE_01B",e.ODETTERELEASE_02A="ODETTERELEASE_02A",e.ODETTERELEASE_02B="ODETTERELEASE_02B",e.ODETTERELEASE_03A="ODETTERELEASE_03A",e.ODETTERELEASE_03B="ODETTERELEASE_03B",e.ODETTERELEASE_04A="ODETTERELEASE_04A",e.ODETTERELEASE_04B="ODETTERELEASE_04B",e.ODETTERELEASE_05A="ODETTERELEASE_05A",e.ODETTERELEASE_05B="ODETTERELEASE_05B",e.ODETTERELEASE_06A="ODETTERELEASE_06A",e.ODETTERELEASE_06B="ODETTERELEASE_06B",e.ODETTERELEASE_07A="ODETTERELEASE_07A",e.ODETTERELEASE_07B="ODETTERELEASE_07B",e.ODETTERELEASE_08A="ODETTERELEASE_08A",e.ODETTERELEASE_08B="ODETTERELEASE_08B",e.ODETTERELEASE_09A="ODETTERELEASE_09A",e.ODETTERELEASE_09B="ODETTERELEASE_09B"})(t.release||(t.release={})),(e=>{e.ODETTEVERSION_1="ODETTEVERSION_1",e.ODETTEVERSION_2="ODETTEVERSION_2",e.ODETTEVERSION_4="ODETTEVERSION_4",e.ODETTEVERSION_88="ODETTEVERSION_88",e.ODETTEVERSION_89="ODETTEVERSION_89",e.ODETTEVERSION_90="ODETTEVERSION_90",e.ODETTEVERSION_D="ODETTEVERSION_D",e.ODETTEVERSION_S="ODETTEVERSION_S"})(t.version||(t.version={}))})(N2||(N2={}));var R2;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(R2||(R2={}));var L2;(t=>{(e=>{e.EQUALS="EQUALS",e.STARTS_WITH="STARTS_WITH",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL"})(t.operator||(t.operator={})),(e=>{e.SFIDDSN="sfiddsn",e.SFIDDATE="sfiddate",e.SFIDTIME="sfidtime",e.SFIDDEST="sfiddest",e.INITIATOR_SSIDCODE="initiator_ssidcode",e.RESPONDER_SSIDCODE="responder_ssidcode",e.SFIDORIG="sfidorig",e.SFIDSEC="sfidsec",e.SFIDCOMP="sfidcomp",e.SFIDCIPH="sfidciph",e.SFIDDESC="sfiddesc",e.SFIDSIGN="sfidsign",e.SFIDOSIZ="sfidosiz",e.SFIDENV="sfidenv",e.STATUS="status",e.ACCOUNT="account",e.EXECUTION_ID="executionId",e.ATOM_ID="atomId",e.DATE_PROCESSED="dateProcessed",e.ID="id",e.ACTION_TYPE="actionType",e.CONNECTOR_TYPE="connectorType",e.CONNECTOR_NAME="connectorName",e.OPERATION_NAME="operationName",e.DOCUMENT_INDEX="documentIndex",e.SUCCESSFUL="successful",e.SIZE="size",e.CUSTOM_FIELDS="customFields",e.NAREAS="nareas",e.NAREAST="nareast"})(t.property||(t.property={}))})(L2||(L2={}));var O2;(t=>{(e=>{e.DEFAULT="default",e.CUSTOM="custom",e.COMPONENT="component"})(t.CommunicationSetting||(t.CommunicationSetting={}))})(O2||(O2={}));var D2;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(D2||(D2={}));var M2;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(M2||(M2={}));var k2;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.NAME="name",e.CONTACT_NAME="contactName",e.EMAIL="email",e.PHONE="phone"})(t.property||(t.property={}))})(k2||(k2={}));var I2;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(I2||(I2={}));var $2;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})($2||($2={}));var U2;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(U2||(U2={}));var H2;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={}))})(H2||(H2={}));var j2;(t=>{(e=>{e.DOCUMENTS_PATH="documentsPath",e.ERRORS_PATH="errorsPath"})(t.invalidDocumentRouting||(t.invalidDocumentRouting={}))})(j2||(j2={}));var z2;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(z2||(z2={}));var B2;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ATOM_ID="atomId",e.PROCESS_ID="processId",e.COMPONENT_TYPE="componentType"})(t.property||(t.property={}))})(B2||(B2={}));var F2;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(F2||(F2={}));var P2;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(P2||(P2={}));var V2;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ENVIRONMENT_ID="environmentId",e.PROCESS_ID="processId",e.COMPONENT_TYPE="componentType"})(t.property||(t.property={}))})(V2||(V2={}));var G2;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(G2||(G2={}));var Q2;(t=>{(e=>{e.X12="x12",e.EDIFACT="edifact",e.HL7="hl7",e.CUSTOM="custom",e.ROSETTANET="rosettanet",e.TRADACOMS="tradacoms",e.ODETTE="odette"})(t.standard||(t.standard={}))})(Q2||(Q2={}));var W2;(t=>{(e=>{e.X12="x12",e.EDIFACT="edifact",e.HL7="hl7",e.CUSTOM="custom",e.ROSETTANET="rosettanet",e.TRADACOMS="tradacoms",e.ODETTE="odette"})(t.standard||(t.standard={}))})(W2||(W2={}));var Y2;(t=>{(e=>{e.D="D",e.P="P",e.T="T"})(t.processingId||(t.processingId={})),(e=>{e.A="A",e.R="R",e.I="I",e.T="T",e.NOT_PRESENT="NOT_PRESENT"})(t.processingMode||(t.processingMode={}))})(Y2||(Y2={}));var X2;(t=>{(e=>{e.SEVERE="SEVERE",e.WARNING="WARNING",e.INFO="INFO",e.CONFIG="CONFIG",e.FINE="FINE",e.FINER="FINER",e.FINEST="FINEST",e.ALL="ALL"})(t.logLevel||(t.logLevel={}))})(X2||(X2={}));var q2;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(q2||(q2={}));var K2;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(K2||(K2={}));var Z2;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.PROCESS_ID="processId",e.ATOM_ID="atomId"})(t.property||(t.property={}))})(Z2||(Z2={}));var J2;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(J2||(J2={}));var ek;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(ek||(ek={}));var tk;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.PROCESS_ID="processId",e.ATOM_ID="atomId"})(t.property||(t.property={}))})(tk||(tk={}));var nk;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.NAME="name",e.ID="id",e.INTEGRATION_PACK_ID="integrationPackId",e.INTEGRATION_PACK_INSTANCE_ID="integrationPackInstanceId"})(t.property||(t.property={}))})(nk||(nk={}));var ok;(t=>{(e=>{e.SINGLE="SINGLE",e.MULTI="MULTI"})(t.installationType||(t.installationType={})),(e=>{e.ADD="ADD",e.DELETE="DELETE"})(t.operationType||(t.operationType={}))})(ok||(ok={}));var ik;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(ik||(ik={}));var rk;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(rk||(rk={}));var ak;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={}))})(ak||(ak={}));var sk;(t=>{(e=>{e.DEPENDENT="DEPENDENT",e.INDEPENDENT="INDEPENDENT"})(t.type||(t.type={}))})(sk||(sk={}));var lk;(t=>{(e=>{e.SINGLE="SINGLE",e.MULTI="MULTI"})(t.installationType||(t.installationType={})),(e=>{e.IMMEDIATELY="IMMEDIATELY",e.RELEASE_ON_SPECIFIED_DATE="RELEASE_ON_SPECIFIED_DATE"})(t.releaseSchedule||(t.releaseSchedule={}))})(lk||(lk={}));var ck;(t=>{(e=>{e.SINGLE="SINGLE",e.MULTI="MULTI"})(t.installationType||(t.installationType={})),(e=>{e.IMMEDIATELY="IMMEDIATELY",e.RELEASE_ON_SPECIFIED_DATE="RELEASE_ON_SPECIFIED_DATE"})(t.releaseSchedule||(t.releaseSchedule={})),(e=>{e.IN_PROGRESS="IN_PROGRESS",e.SUCCESS="SUCCESS",e.SCHEDULED="SCHEDULED",e.ERROR="ERROR"})(t.releaseStatus||(t.releaseStatus={}))})(ck||(ck={}));var uk;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(uk||(uk={}));var dk;(t=>{(e=>{e.CLOUD="Cloud",e.CONNECTOR="Connector",e.DATA_HUB_MODEL="Data Hub Model",e.INTEGRATION_PACK="Integration Pack",e.PUBLISHED_PROCESS="Published Process",e.ROLE="Role"})(t.objectType||(t.objectType={}))})(dk||(dk={}));var fk;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(fk||(fk={}));var hk;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(hk||(hk={}));var mk;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.NAME="name",e.PARENT_ID="parentId"})(t.property||(t.property={}))})(mk||(mk={}));var pk;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(pk||(pk={}));var gk;(t=>{(e=>{e.EQUALS="EQUALS",e.STARTS_WITH="STARTS_WITH",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL"})(t.operator||(t.operator={})),(e=>{e.EXECUTION_ID="executionId",e.ATOM_ID="atomId",e.DATE_PROCESSED="dateProcessed",e.ID="id",e.ACTION_TYPE="actionType",e.CONNECTOR_TYPE="connectorType",e.CONNECTOR_NAME="connectorName",e.OPERATION_NAME="operationName",e.DOCUMENT_INDEX="documentIndex",e.SUCCESSFUL="successful",e.SIZE="size",e.ERROR_MESSAGE="errorMessage",e.ACK_STATUS="ackStatus",e.ACK_REPORT="ackReport",e.SENDER_ID="senderID",e.RECEIVER_ID="receiverID",e.KNOWN_INITIATING_PARTNER_ID="knownInitiatingPartnerID",e.FRAMEWORK_VERSION="frameworkVersion",e.PIPCODE="PIPCode",e.PIPVERSION="PIPVersion",e.GLOBAL_PROCESS_CODE="globalProcessCode",e.GLOBAL_BUSINESS_ACTION_CODE="globalBusinessActionCode",e.GLOBAL_DOCUMENT_FUNCTION_CODE="globalDocumentFunctionCode",e.FROM_GLOBAL_PARTNER_ROLE_CLASSIFICATION_CODE="fromGlobalPartnerRoleClassificationCode",e.TO_GLOBAL_PARTNER_ROLE_CLASSIFICATION_CODE="toGlobalPartnerRoleClassificationCode",e.FROM_GLOBAL_BUSINESS_SERVICE_CODE="fromGlobalBusinessServiceCode",e.TO_GLOBAL_BUSINESS_SERVICE_CODE="toGlobalBusinessServiceCode",e.BUSINESS_ACTIVITY_IDENTIFIER="businessActivityIdentifier",e.PROCESS_INSTANCE_IDENTIFIER="processInstanceIdentifier",e.TRANSACTION_INSTANCE_IDENTIFIER="transactionInstanceIdentifier",e.ACTION_INSTANCE_IDENTIFIER="actionInstanceIdentifier",e.IN_RESPONSE_TO_GLOBAL_BUSINESS_ACTION_CODE="inResponseToGlobalBusinessActionCode",e.IN_RESPONSE_TO_INSTANCE_IDENTIFIER="inResponseToInstanceIdentifier",e.GLOBAL_USAGE_CODE="globalUsageCode",e.ATTEMPT_COUNT="attemptCount",e.DATE_TIME="dateTime",e.IS_SECURE_TRANSPORT_REQUIRED="isSecureTransportRequired",e.TIME_TO_ACKNOWLEDGE_ACCEPTANCE="timeToAcknowledgeAcceptance",e.TIME_TO_ACKNOWLEDGE_RECEIPT="timeToAcknowledgeReceipt",e.TIME_TO_PERFORM="timeToPerform",e.OUTBOUND_VALIDATION_STATUS="outboundValidationStatus",e.OUTBOUND_VALIDATION_REPORT="outboundValidationReport"})(t.property||(t.property={}))})(gk||(gk={}));var bk;(t=>{(e=>{e.TEST="Test",e.PRODUCTION="Production"})(t.globalUsageCode||(t.globalUsageCode={})),(e=>{e.DUNS="DUNS"})(t.partnerIdType||(t.partnerIdType={}))})(bk||(bk={}));var vk;(t=>{(e=>{e.BINARY="binary",e.BASE64="base64"})(t.contentTransferEncoding||(t.contentTransferEncoding={})),(e=>{e.NA="na",e.TRIPLEDES="tripledes",e.DES="des",e.RC2_128="rc2-128",e.RC2_64="rc2-64",e.RC2_40="rc2-40",e.AES_128="aes-128",e.AES_192="aes-192",e.AES_256="aes-256"})(t.encryptionAlgorithm||(t.encryptionAlgorithm={})),(e=>{e.SHA1="SHA1",e.SHA224="SHA224",e.SHA256="SHA256",e.SHA384="SHA384",e.SHA512="SHA512"})(t.signatureDigestAlgorithm||(t.signatureDigestAlgorithm={}))})(vk||(vk={}));var yk;(t=>{(e=>{e.V11="v11",e.V20="v20"})(t.version||(t.version={}))})(yk||(yk={}));var Ek;(t=>{(e=>{e.NEVER="NEVER",e.FIRST="FIRST",e.LAST="LAST"})(t.scheduleType||(t.scheduleType={}))})(Ek||(Ek={}));var wk;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(wk||(wk={}));var hE;(t=>{(e=>{e.CHARACTER="CHARACTER",e.DATETIME="DATETIME",e.FLOAT="FLOAT",e.INTEGER="INTEGER"})(t.dataType||(t.dataType={}))})(hE||(hE={}));var Sk;(t=>{(e=>{e.DEFAULT="default",e.CUSTOM="custom",e.COMPONENT="component"})(t.CommunicationSetting||(t.CommunicationSetting={}))})(Sk||(Sk={}));var Tk;(t=>{(e=>{e.ACTIONGET="actionget",e.ACTIONGETDELETE="actiongetdelete",e.ACTIONGETMOVE="actiongetmove"})(t.ftpAction||(t.ftpAction={}))})(Tk||(Tk={}));var Ak;(t=>{(e=>{e.ATOM="ATOM",e.HTTP="HTTP",e.SOCKS4="SOCKS4",e.SOCKS5="SOCKS5"})(t.type||(t.type={}))})(Ak||(Ak={}));var xk;(t=>{(e=>{e.ACTIONPUTRENAME="actionputrename",e.ACTIONPUTAPPEND="actionputappend",e.ACTIONPUTERROR="actionputerror",e.ACTIONPUTOVERWRITE="actionputoverwrite"})(t.ftpAction||(t.ftpAction={}))})(xk||(xk={}));var _k;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(_k||(_k={}));var Ck;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(Ck||(Ck={}));var Nk;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.NAME="name",e.COMMUNICATION_TYPE="communicationType"})(t.property||(t.property={}))})(Nk||(Nk={}));var Rk;(t=>{(e=>{e.BASIC="basic",e.INTERMEDIATE="intermediate",e.ADVANCED="advanced"})(t.apiType||(t.apiType={})),(e=>{e.NONE="none",e.BASIC="basic"})(t.auth||(t.auth={})),(e=>{e.NONE="none",e.BASIC="basic"})(t.minAuth||(t.minAuth={}))})(Rk||(Rk={}));var Lk;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(Lk||(Lk={}));var Ok;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(Ok||(Ok={}));var Dk;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(Dk||(Dk={}));var Mk;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(Mk||(Mk={}));var kk;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ACCOUNT_GROUP_ID="accountGroupId",e.PROCESS_DATE="processDate"})(t.property||(t.property={}))})(kk||(kk={}));var Ik;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.ENVIRONMENT_ID="environmentId",e.ATOM_ID="atomId",e.PROCESS_DATE="processDate"})(t.property||(t.property={}))})(Ik||(Ik={}));var $k;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})($k||($k={}));var Uk;(t=>{(e=>{e.EQUALS="EQUALS",e.STARTS_WITH="STARTS_WITH",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL"})(t.operator||(t.operator={})),(e=>{e.EXECUTION_ID="executionId",e.ATOM_ID="atomId",e.DATE_PROCESSED="dateProcessed",e.ID="id",e.ACTION_TYPE="actionType",e.CONNECTOR_TYPE="connectorType",e.CONNECTOR_NAME="connectorName",e.OPERATION_NAME="operationName",e.DOCUMENT_INDEX="documentIndex",e.SUCCESSFUL="successful",e.SIZE="size",e.ERROR_MESSAGE="errorMessage",e.VALIDATION_STATUS="validationStatus",e.VALIDATION_REPORT="validationReport",e.SENDER_NAME="senderName",e.RECEIVER_NAME="receiverName",e.MESSAGE_TYPE="messageType",e.DATE="date",e.TIME="time",e.SENDER_TRANSMISSION_REFERENCE="senderTransmissionReference",e.RECEIVER_TRANSMISSION_REFERENCE="receiverTransmissionReference",e.APPLICATION_REFERENCE="applicationReference",e.TRANSMISSION_PRIORITY_CODE="transmissionPriorityCode",e.FILE_GENERATION_NUMBER="fileGenerationNumber",e.FILE_VERSION_NUMBER="fileVersionNumber"})(t.property||(t.property={}))})(Uk||(Uk={}));var Hk;(t=>{(e=>{e.TRADINGPARTNER="tradingpartner",e.MYCOMPANY="mycompany"})(t.classification||(t.classification={})),(e=>{e.X12="x12",e.EDIFACT="edifact",e.HL7="hl7",e.CUSTOM="custom",e.ROSETTANET="rosettanet",e.TRADACOMS="tradacoms",e.ODETTE="odette"})(t.standard||(t.standard={}))})(Hk||(Hk={}));var jk;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(jk||(jk={}));var zk;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(zk||(zk={}));var Bk;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={})),(e=>{e.NAME="name",e.CLASSIFICATION="classification",e.STANDARD="standard",e.IDENTIFIER="identifier",e.AS2="as2",e.DISK="disk",e.FTP="ftp",e.MLLP="mllp",e.SFTP="sftp",e.HTTP="http",e.OFTP="oftp"})(t.property||(t.property={}))})(Bk||(Bk={}));var Fk;(t=>{(e=>{e.GET="GET",e.DELETE="DELETE",e.UPDATE="UPDATE",e.CREATE="CREATE"})(t.type||(t.type={}))})(Fk||(Fk={}));var Pk;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(Pk||(Pk={}));var Vk;(t=>{(e=>{e.EQUALS="EQUALS",e.LIKE="LIKE",e.NOT_EQUALS="NOT_EQUALS",e.IS_NULL="IS_NULL",e.IS_NOT_NULL="IS_NOT_NULL",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL",e.CONTAINS="CONTAINS",e.NOT_CONTAINS="NOT_CONTAINS"})(t.operator||(t.operator={}))})(Vk||(Vk={}));var Gk;(t=>{(e=>{e.EDIFACTIDQUAL_NA="EDIFACTIDQUAL_NA",e.EDIFACTIDQUAL_1="EDIFACTIDQUAL_1",e.EDIFACTIDQUAL_4="EDIFACTIDQUAL_4",e.EDIFACTIDQUAL_5="EDIFACTIDQUAL_5",e.EDIFACTIDQUAL_8="EDIFACTIDQUAL_8",e.EDIFACTIDQUAL_9="EDIFACTIDQUAL_9",e.EDIFACTIDQUAL_12="EDIFACTIDQUAL_12",e.EDIFACTIDQUAL_14="EDIFACTIDQUAL_14",e.EDIFACTIDQUAL_18="EDIFACTIDQUAL_18",e.EDIFACTIDQUAL_22="EDIFACTIDQUAL_22",e.EDIFACTIDQUAL_30="EDIFACTIDQUAL_30",e.EDIFACTIDQUAL_31="EDIFACTIDQUAL_31",e.EDIFACTIDQUAL_33="EDIFACTIDQUAL_33",e.EDIFACTIDQUAL_34="EDIFACTIDQUAL_34",e.EDIFACTIDQUAL_51="EDIFACTIDQUAL_51",e.EDIFACTIDQUAL_52="EDIFACTIDQUAL_52",e.EDIFACTIDQUAL_53="EDIFACTIDQUAL_53",e.EDIFACTIDQUAL_54="EDIFACTIDQUAL_54",e.EDIFACTIDQUAL_55="EDIFACTIDQUAL_55",e.EDIFACTIDQUAL_57="EDIFACTIDQUAL_57",e.EDIFACTIDQUAL_58="EDIFACTIDQUAL_58",e.EDIFACTIDQUAL_59="EDIFACTIDQUAL_59",e.EDIFACTIDQUAL_61="EDIFACTIDQUAL_61",e.EDIFACTIDQUAL_63="EDIFACTIDQUAL_63",e.EDIFACTIDQUAL_65="EDIFACTIDQUAL_65",e.EDIFACTIDQUAL_80="EDIFACTIDQUAL_80",e.EDIFACTIDQUAL_82="EDIFACTIDQUAL_82",e.EDIFACTIDQUAL_84="EDIFACTIDQUAL_84",e.EDIFACTIDQUAL_85="EDIFACTIDQUAL_85",e.EDIFACTIDQUAL_86="EDIFACTIDQUAL_86",e.EDIFACTIDQUAL_87="EDIFACTIDQUAL_87",e.EDIFACTIDQUAL_89="EDIFACTIDQUAL_89",e.EDIFACTIDQUAL_90="EDIFACTIDQUAL_90",e.EDIFACTIDQUAL_91="EDIFACTIDQUAL_91",e.EDIFACTIDQUAL_92="EDIFACTIDQUAL_92",e.EDIFACTIDQUAL_103="EDIFACTIDQUAL_103",e.EDIFACTIDQUAL_128="EDIFACTIDQUAL_128",e.EDIFACTIDQUAL_129="EDIFACTIDQUAL_129",e.EDIFACTIDQUAL_144="EDIFACTIDQUAL_144",e.EDIFACTIDQUAL_145="EDIFACTIDQUAL_145",e.EDIFACTIDQUAL_146="EDIFACTIDQUAL_146",e.EDIFACTIDQUAL_147="EDIFACTIDQUAL_147",e.EDIFACTIDQUAL_148="EDIFACTIDQUAL_148",e.EDIFACTIDQUAL_Z01="EDIFACTIDQUAL_Z01",e.EDIFACTIDQUAL_ZZZ="EDIFACTIDQUAL_ZZZ",e.EDIFACTIDQUAL_ZZ="EDIFACTIDQUAL_ZZ"})(t.interchangeIdQual||(t.interchangeIdQual={})),(e=>{e.NA="NA",e.A="A"})(t.priority||(t.priority={})),(e=>{e.NA="NA",e.AA="AA",e.BB="BB"})(t.referencePasswordQualifier||(t.referencePasswordQualifier={})),(e=>{e.UNOA="UNOA",e.UNOB="UNOB",e.UNOC="UNOC",e.UNOD="UNOD",e.UNOE="UNOE",e.UNOF="UNOF"})(t.syntaxId||(t.syntaxId={})),(e=>{e.EDIFACTSYNTAXVERSION_1="EDIFACTSYNTAXVERSION_1",e.EDIFACTSYNTAXVERSION_2="EDIFACTSYNTAXVERSION_2",e.EDIFACTSYNTAXVERSION_3="EDIFACTSYNTAXVERSION_3"})(t.syntaxVersion||(t.syntaxVersion={})),(e=>{e.EDIFACTTEST_NA="EDIFACTTEST_NA",e.EDIFACTTEST_1="EDIFACTTEST_1"})(t.testIndicator||(t.testIndicator={}))})(Gk||(Gk={}));var Qk;(t=>{(e=>{e.EDIFACTIDQUAL_NA="EDIFACTIDQUAL_NA",e.EDIFACTIDQUAL_1="EDIFACTIDQUAL_1",e.EDIFACTIDQUAL_4="EDIFACTIDQUAL_4",e.EDIFACTIDQUAL_5="EDIFACTIDQUAL_5",e.EDIFACTIDQUAL_8="EDIFACTIDQUAL_8",e.EDIFACTIDQUAL_9="EDIFACTIDQUAL_9",e.EDIFACTIDQUAL_12="EDIFACTIDQUAL_12",e.EDIFACTIDQUAL_14="EDIFACTIDQUAL_14",e.EDIFACTIDQUAL_18="EDIFACTIDQUAL_18",e.EDIFACTIDQUAL_22="EDIFACTIDQUAL_22",e.EDIFACTIDQUAL_30="EDIFACTIDQUAL_30",e.EDIFACTIDQUAL_31="EDIFACTIDQUAL_31",e.EDIFACTIDQUAL_33="EDIFACTIDQUAL_33",e.EDIFACTIDQUAL_34="EDIFACTIDQUAL_34",e.EDIFACTIDQUAL_51="EDIFACTIDQUAL_51",e.EDIFACTIDQUAL_52="EDIFACTIDQUAL_52",e.EDIFACTIDQUAL_53="EDIFACTIDQUAL_53",e.EDIFACTIDQUAL_54="EDIFACTIDQUAL_54",e.EDIFACTIDQUAL_55="EDIFACTIDQUAL_55",e.EDIFACTIDQUAL_57="EDIFACTIDQUAL_57",e.EDIFACTIDQUAL_58="EDIFACTIDQUAL_58",e.EDIFACTIDQUAL_59="EDIFACTIDQUAL_59",e.EDIFACTIDQUAL_61="EDIFACTIDQUAL_61",e.EDIFACTIDQUAL_63="EDIFACTIDQUAL_63",e.EDIFACTIDQUAL_65="EDIFACTIDQUAL_65",e.EDIFACTIDQUAL_80="EDIFACTIDQUAL_80",e.EDIFACTIDQUAL_82="EDIFACTIDQUAL_82",e.EDIFACTIDQUAL_84="EDIFACTIDQUAL_84",e.EDIFACTIDQUAL_85="EDIFACTIDQUAL_85",e.EDIFACTIDQUAL_86="EDIFACTIDQUAL_86",e.EDIFACTIDQUAL_87="EDIFACTIDQUAL_87",e.EDIFACTIDQUAL_89="EDIFACTIDQUAL_89",e.EDIFACTIDQUAL_90="EDIFACTIDQUAL_90",e.EDIFACTIDQUAL_91="EDIFACTIDQUAL_91",e.EDIFACTIDQUAL_92="EDIFACTIDQUAL_92",e.EDIFACTIDQUAL_103="EDIFACTIDQUAL_103",e.EDIFACTIDQUAL_128="EDIFACTIDQUAL_128",e.EDIFACTIDQUAL_129="EDIFACTIDQUAL_129",e.EDIFACTIDQUAL_144="EDIFACTIDQUAL_144",e.EDIFACTIDQUAL_145="EDIFACTIDQUAL_145",e.EDIFACTIDQUAL_146="EDIFACTIDQUAL_146",e.EDIFACTIDQUAL_147="EDIFACTIDQUAL_147",e.EDIFACTIDQUAL_148="EDIFACTIDQUAL_148",e.EDIFACTIDQUAL_Z01="EDIFACTIDQUAL_Z01",e.EDIFACTIDQUAL_ZZZ="EDIFACTIDQUAL_ZZZ",e.EDIFACTIDQUAL_ZZ="EDIFACTIDQUAL_ZZ"})(t.applicationIdQual||(t.applicationIdQual={}))})(Qk||(Qk={}));var Wk;(t=>{(e=>{e.AA="AA",e.AB="AB",e.AC="AC",e.AD="AD",e.AE="AE",e.CC="CC",e.CE="CE",e.EC="EC",e.ED="ED",e.EE="EE",e.EN="EN",e.ER="ER",e.EU="EU",e.EX="EX",e.IA="IA",e.KE="KE",e.LI="LI",e.OD="OD",e.RI="RI",e.RT="RT",e.UN="UN"})(t.controllingAgency||(t.controllingAgency={})),(e=>{e.EDIFACTRELEASE_1="EDIFACTRELEASE_1",e.EDIFACTRELEASE_2="EDIFACTRELEASE_2",e.EDIFACTRELEASE_902="EDIFACTRELEASE_902",e.EDIFACTRELEASE_911="EDIFACTRELEASE_911",e.EDIFACTRELEASE_912="EDIFACTRELEASE_912",e.EDIFACTRELEASE_921="EDIFACTRELEASE_921",e.EDIFACTRELEASE_932="EDIFACTRELEASE_932",e.EDIFACTRELEASE_93A="EDIFACTRELEASE_93A",e.EDIFACTRELEASE_94A="EDIFACTRELEASE_94A",e.EDIFACTRELEASE_94B="EDIFACTRELEASE_94B",e.EDIFACTRELEASE_95A="EDIFACTRELEASE_95A",e.EDIFACTRELEASE_95B="EDIFACTRELEASE_95B",e.EDIFACTRELEASE_96A="EDIFACTRELEASE_96A",e.EDIFACTRELEASE_96B="EDIFACTRELEASE_96B",e.EDIFACTRELEASE_97A="EDIFACTRELEASE_97A",e.EDIFACTRELEASE_97B="EDIFACTRELEASE_97B",e.EDIFACTRELEASE_98A="EDIFACTRELEASE_98A",e.EDIFACTRELEASE_98B="EDIFACTRELEASE_98B",e.EDIFACTRELEASE_99A="EDIFACTRELEASE_99A",e.EDIFACTRELEASE_99B="EDIFACTRELEASE_99B",e.EDIFACTRELEASE_00A="EDIFACTRELEASE_00A",e.EDIFACTRELEASE_00B="EDIFACTRELEASE_00B",e.EDIFACTRELEASE_01A="EDIFACTRELEASE_01A",e.EDIFACTRELEASE_01B="EDIFACTRELEASE_01B",e.EDIFACTRELEASE_02A="EDIFACTRELEASE_02A",e.EDIFACTRELEASE_02B="EDIFACTRELEASE_02B",e.EDIFACTRELEASE_03A="EDIFACTRELEASE_03A",e.EDIFACTRELEASE_03B="EDIFACTRELEASE_03B",e.EDIFACTRELEASE_04A="EDIFACTRELEASE_04A",e.EDIFACTRELEASE_04B="EDIFACTRELEASE_04B",e.EDIFACTRELEASE_05A="EDIFACTRELEASE_05A",e.EDIFACTRELEASE_05B="EDIFACTRELEASE_05B",e.EDIFACTRELEASE_06A="EDIFACTRELEASE_06A",e.EDIFACTRELEASE_06B="EDIFACTRELEASE_06B",e.EDIFACTRELEASE_07A="EDIFACTRELEASE_07A",e.EDIFACTRELEASE_07B="EDIFACTRELEASE_07B",e.EDIFACTRELEASE_08A="EDIFACTRELEASE_08A",e.EDIFACTRELEASE_08B="EDIFACTRELEASE_08B",e.EDIFACTRELEASE_09A="EDIFACTRELEASE_09A",e.EDIFACTRELEASE_09B="EDIFACTRELEASE_09B"})(t.release||(t.release={})),(e=>{e.EDIFACTVERSION_1="EDIFACTVERSION_1",e.EDIFACTVERSION_2="EDIFACTVERSION_2",e.EDIFACTVERSION_4="EDIFACTVERSION_4",e.EDIFACTVERSION_88="EDIFACTVERSION_88",e.EDIFACTVERSION_89="EDIFACTVERSION_89",e.EDIFACTVERSION_90="EDIFACTVERSION_90",e.EDIFACTVERSION_D="EDIFACTVERSION_D",e.EDIFACTVERSION_S="EDIFACTVERSION_S"})(t.version||(t.version={}))})(Wk||(Wk={}));var Yk;(t=>{(e=>{e.AND="and",e.OR="or"})(t.operator||(t.operator={}))})(Yk||(Yk={}));var Xk;(t=>{(e=>{e.EQUALS="EQUALS",e.STARTS_WITH="STARTS_WITH",e.BETWEEN="BETWEEN",e.GREATER_THAN="GREATER_THAN",e.GREATER_THAN_OR_EQUAL="GREATER_THAN_OR_EQUAL",e.LESS_THAN="LESS_THAN",e.LESS_THAN_OR_EQUAL="LESS_THAN_OR_EQUAL"})(t.operator||(t.operator={})),(e=>{e.EXECUTION_ID="executionId",e.ATOM_ID="atomId",e.DATE_PROCESSED="dateProcessed",e.ID="id",e.ACTION_TYPE="actionType",e.CONNECTOR_TYPE="connectorType",e.CONNECTOR_NAME="connectorName",e.OPERATION_NAME="operationName",e.DOCUMENT_INDEX="documentIndex",e.SUCCESSFUL="successful",e.SIZE="size",e.ERROR_MESSAGE="errorMessage",e.ISA_ACK_STATUS="isaAckStatus",e.ISA_ACK_REPORT="isaAckReport",e.ACK_STATUS="ackStatus",e.ACK_REPORT="ackReport",e.ISA_CONTROL="isaControl",e.GS_CONTROL="gsControl",e.ST_CONTROL="stControl",e.FUNCTIONAL_ID="functionalID",e.TRANSACTION_SET="transactionSet",e.TEST_INDICATOR="testIndicator",e.SENDER_IDQUALIFIER="senderIDQualifier",e.SENDER_ID="senderID",e.RECEIVER_IDQUALIFIER="receiverIDQualifier",e.RECEIVER_ID="receiverID",e.APP_SENDER_ID="appSenderID",e.APP_RECEIVER_ID="appReceiverID",e.STANDARD_ID="standardID",e.STANDARD="standard",e.GS_VERSION="gsVersion",e.AGENCY_CODE="agencyCode",e.GS_DATE="gsDate",e.GS_TIME="gsTime",e.OUTBOUND_VALIDATION_STATUS="outboundValidationStatus",e.OUTBOUND_VALIDATION_REPORT="outboundValidationReport"})(t.property||(t.property={}))})(Xk||(Xk={}));var qk;(t=>{(e=>{e.DONOTACKITEM="donotackitem",e.ACKFUNCITEM="ackfuncitem",e.ACKTRANITEM="acktranitem"})(t.acknowledgementoption||(t.acknowledgementoption={})),(e=>{e.GROUPALL="groupall",e.GROUPFG="groupfg",e.GROUPST="groupst"})(t.envelopeoption||(t.envelopeoption={})),(e=>{e.FILTER_ERROR="filterError",e.FAIL_ALL="failAll"})(t.outboundValidationOption||(t.outboundValidationOption={}))})(qk||(qk={}));/**
372
372
  * Boomi EmbedKit-SDK Component
373
373
  *
374
374
  * @license BSD-2-Clause
@@ -1401,7 +1401,7 @@ object-assign
1401
1401
  (c) Sindre Sorhus
1402
1402
  @license MIT
1403
1403
  */var Tx,VI;function _P(){if(VI)return Tx;VI=1;var t=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(p){if(p==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(p)}function E(){try{if(!Object.assign)return!1;var p=new String("abc");if(p[5]="de",Object.getOwnPropertyNames(p)[0]==="5")return!1;for(var g={},y=0;y<10;y++)g["_"+String.fromCharCode(y)]=y;var f=Object.getOwnPropertyNames(g).map(function(c){return g[c]});if(f.join("")!=="0123456789")return!1;var b={};return"abcdefghijklmnopqrst".split("").forEach(function(c){b[c]=c}),Object.keys(Object.assign({},b)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Tx=E()?Object.assign:function(p,g){for(var y,f=a(p),b,c=1;c<arguments.length;c++){y=Object(arguments[c]);for(var u in y)e.call(y,u)&&(f[u]=y[u]);if(t){b=t(y);for(var d=0;d<b.length;d++)i.call(y,b[d])&&(f[b[d]]=y[b[d]])}}return f},Tx}var Ax,GI;function MC(){if(GI)return Ax;GI=1;var t="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ax=t,Ax}var xx,QI;function f6(){return QI||(QI=1,xx=Function.call.bind(Object.prototype.hasOwnProperty)),xx}var _x,WI;function CP(){if(WI)return _x;WI=1;var t=function(){};if(process.env.NODE_ENV!=="production"){var e=MC(),i={},a=f6();t=function(p){var g="Warning: "+p;typeof console<"u"&&console.error(g);try{throw new Error(g)}catch{}}}function E(p,g,y,f,b){if(process.env.NODE_ENV!=="production"){for(var c in p)if(a(p,c)){var u;try{if(typeof p[c]!="function"){var d=Error((f||"React class")+": "+y+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof p[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}u=p[c](g,c,f,y,null,e)}catch(m){u=m}if(u&&!(u instanceof Error)&&t((f||"React class")+": type specification of "+y+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in i)){i[u.message]=!0;var h=b?b():"";t("Failed "+y+" type: "+u.message+(h??""))}}}}return E.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(i={})},_x=E,_x}var Cx,YI;function NP(){if(YI)return Cx;YI=1;var t=d6(),e=_P(),i=MC(),a=f6(),E=CP(),p=function(){};process.env.NODE_ENV!=="production"&&(p=function(y){var f="Warning: "+y;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}});function g(){return null}return Cx=function(y,f){var b=typeof Symbol=="function"&&Symbol.iterator,c="@@iterator";function u(K){var Z=K&&(b&&K[b]||K[c]);if(typeof Z=="function")return Z}var d="<<anonymous>>",h={array:A("array"),bigint:A("bigint"),bool:A("boolean"),func:A("function"),number:A("number"),object:A("object"),string:A("string"),symbol:A("symbol"),any:N(),arrayOf:O,element:D(),elementType:R(),instanceOf:C,node:j(),objectOf:F,oneOf:$,oneOfType:U,shape:P,exact:B};function m(K,Z){return K===Z?K!==0||1/K===1/Z:K!==K&&Z!==Z}function S(K,Z){this.message=K,this.data=Z&&typeof Z=="object"?Z:{},this.stack=""}S.prototype=Error.prototype;function T(K){if(process.env.NODE_ENV!=="production")var Z={},re=0;function te(se,ie,ue,me,ve,pe,ye){if(me=me||d,pe=pe||ue,ye!==i){if(f){var de=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw de.name="Invariant Violation",de}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Ve=me+":"+ue;!Z[Ve]&&re<3&&(p("You are manually calling a React.PropTypes validation function for the `"+pe+"` prop on `"+me+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),Z[Ve]=!0,re++)}}return ie[ue]==null?se?ie[ue]===null?new S("The "+ve+" `"+pe+"` is marked as required "+("in `"+me+"`, but its value is `null`.")):new S("The "+ve+" `"+pe+"` is marked as required in "+("`"+me+"`, but its value is `undefined`.")):null:K(ie,ue,me,ve,pe)}var ae=te.bind(null,!1);return ae.isRequired=te.bind(null,!0),ae}function A(K){function Z(re,te,ae,se,ie,ue){var me=re[te],ve=I(me);if(ve!==K){var pe=W(me);return new S("Invalid "+se+" `"+ie+"` of type "+("`"+pe+"` supplied to `"+ae+"`, expected ")+("`"+K+"`."),{expectedType:K})}return null}return T(Z)}function N(){return T(g)}function O(K){function Z(re,te,ae,se,ie){if(typeof K!="function")return new S("Property `"+ie+"` of component `"+ae+"` has invalid PropType notation inside arrayOf.");var ue=re[te];if(!Array.isArray(ue)){var me=I(ue);return new S("Invalid "+se+" `"+ie+"` of type "+("`"+me+"` supplied to `"+ae+"`, expected an array."))}for(var ve=0;ve<ue.length;ve++){var pe=K(ue,ve,ae,se,ie+"["+ve+"]",i);if(pe instanceof Error)return pe}return null}return T(Z)}function D(){function K(Z,re,te,ae,se){var ie=Z[re];if(!y(ie)){var ue=I(ie);return new S("Invalid "+ae+" `"+se+"` of type "+("`"+ue+"` supplied to `"+te+"`, expected a single ReactElement."))}return null}return T(K)}function R(){function K(Z,re,te,ae,se){var ie=Z[re];if(!t.isValidElementType(ie)){var ue=I(ie);return new S("Invalid "+ae+" `"+se+"` of type "+("`"+ue+"` supplied to `"+te+"`, expected a single ReactElement type."))}return null}return T(K)}function C(K){function Z(re,te,ae,se,ie){if(!(re[te]instanceof K)){var ue=K.name||d,me=J(re[te]);return new S("Invalid "+se+" `"+ie+"` of type "+("`"+me+"` supplied to `"+ae+"`, expected ")+("instance of `"+ue+"`."))}return null}return T(Z)}function $(K){if(!Array.isArray(K))return process.env.NODE_ENV!=="production"&&(arguments.length>1?p("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):p("Invalid argument supplied to oneOf, expected an array.")),g;function Z(re,te,ae,se,ie){for(var ue=re[te],me=0;me<K.length;me++)if(m(ue,K[me]))return null;var ve=JSON.stringify(K,function(ye,de){var Ve=W(de);return Ve==="symbol"?String(de):de});return new S("Invalid "+se+" `"+ie+"` of value `"+String(ue)+"` "+("supplied to `"+ae+"`, expected one of "+ve+"."))}return T(Z)}function F(K){function Z(re,te,ae,se,ie){if(typeof K!="function")return new S("Property `"+ie+"` of component `"+ae+"` has invalid PropType notation inside objectOf.");var ue=re[te],me=I(ue);if(me!=="object")return new S("Invalid "+se+" `"+ie+"` of type "+("`"+me+"` supplied to `"+ae+"`, expected an object."));for(var ve in ue)if(a(ue,ve)){var pe=K(ue,ve,ae,se,ie+"."+ve,i);if(pe instanceof Error)return pe}return null}return T(Z)}function U(K){if(!Array.isArray(K))return process.env.NODE_ENV!=="production"&&p("Invalid argument supplied to oneOfType, expected an instance of array."),g;for(var Z=0;Z<K.length;Z++){var re=K[Z];if(typeof re!="function")return p("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Q(re)+" at index "+Z+"."),g}function te(ae,se,ie,ue,me){for(var ve=[],pe=0;pe<K.length;pe++){var ye=K[pe],de=ye(ae,se,ie,ue,me,i);if(de==null)return null;de.data&&a(de.data,"expectedType")&&ve.push(de.data.expectedType)}var Ve=ve.length>0?", expected one of type ["+ve.join(", ")+"]":"";return new S("Invalid "+ue+" `"+me+"` supplied to "+("`"+ie+"`"+Ve+"."))}return T(te)}function j(){function K(Z,re,te,ae,se){return k(Z[re])?null:new S("Invalid "+ae+" `"+se+"` supplied to "+("`"+te+"`, expected a ReactNode."))}return T(K)}function X(K,Z,re,te,ae){return new S((K||"React class")+": "+Z+" type `"+re+"."+te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ae+"`.")}function P(K){function Z(re,te,ae,se,ie){var ue=re[te],me=I(ue);if(me!=="object")return new S("Invalid "+se+" `"+ie+"` of type `"+me+"` "+("supplied to `"+ae+"`, expected `object`."));for(var ve in K){var pe=K[ve];if(typeof pe!="function")return X(ae,se,ie,ve,W(pe));var ye=pe(ue,ve,ae,se,ie+"."+ve,i);if(ye)return ye}return null}return T(Z)}function B(K){function Z(re,te,ae,se,ie){var ue=re[te],me=I(ue);if(me!=="object")return new S("Invalid "+se+" `"+ie+"` of type `"+me+"` "+("supplied to `"+ae+"`, expected `object`."));var ve=e({},re[te],K);for(var pe in ve){var ye=K[pe];if(a(K,pe)&&typeof ye!="function")return X(ae,se,ie,pe,W(ye));if(!ye)return new S("Invalid "+se+" `"+ie+"` key `"+pe+"` supplied to `"+ae+"`.\nBad object: "+JSON.stringify(re[te],null," ")+`
1404
- Valid keys: `+JSON.stringify(Object.keys(K),null," "));var de=ye(ue,pe,ae,se,ie+"."+pe,i);if(de)return de}return null}return T(Z)}function k(K){switch(typeof K){case"number":case"string":case"undefined":return!0;case"boolean":return!K;case"object":if(Array.isArray(K))return K.every(k);if(K===null||y(K))return!0;var Z=u(K);if(Z){var re=Z.call(K),te;if(Z!==K.entries){for(;!(te=re.next()).done;)if(!k(te.value))return!1}else for(;!(te=re.next()).done;){var ae=te.value;if(ae&&!k(ae[1]))return!1}}else return!1;return!0;default:return!1}}function M(K,Z){return K==="symbol"?!0:Z?Z["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Z instanceof Symbol:!1}function I(K){var Z=typeof K;return Array.isArray(K)?"array":K instanceof RegExp?"object":M(Z,K)?"symbol":Z}function W(K){if(typeof K>"u"||K===null)return""+K;var Z=I(K);if(Z==="object"){if(K instanceof Date)return"date";if(K instanceof RegExp)return"regexp"}return Z}function Q(K){var Z=W(K);switch(Z){case"array":case"object":return"an "+Z;case"boolean":case"date":case"regexp":return"a "+Z;default:return Z}}function J(K){return!K.constructor||!K.constructor.name?d:K.constructor.name}return h.checkPropTypes=E,h.resetWarningCache=E.resetWarningCache,h.PropTypes=h,h},Cx}var Nx,XI;function RP(){if(XI)return Nx;XI=1;var t=MC();function e(){}function i(){}return i.resetWarningCache=e,Nx=function(){function a(g,y,f,b,c,u){if(u!==t){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}a.isRequired=a;function E(){return a}var p={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:E,element:a,elementType:a,instanceOf:E,node:a,objectOf:E,oneOf:E,oneOfType:E,shape:E,exact:E,checkPropTypes:i,resetWarningCache:e};return p.PropTypes=p,p},Nx}var qI;function kC(){if(qI)return bS.exports;if(qI=1,process.env.NODE_ENV!=="production"){var t=d6(),e=!0;bS.exports=NP()(t.isElement,e)}else bS.exports=RP()();return bS.exports}var oE={exports:{}};oE.exports;var KI;function h6(){return KI||(KI=1,(function(t,e){var i=200,a="__lodash_hash_undefined__",E=1,p=2,g=9007199254740991,y="[object Arguments]",f="[object Array]",b="[object AsyncFunction]",c="[object Boolean]",u="[object Date]",d="[object Error]",h="[object Function]",m="[object GeneratorFunction]",S="[object Map]",T="[object Number]",A="[object Null]",N="[object Object]",O="[object Promise]",D="[object Proxy]",R="[object RegExp]",C="[object Set]",$="[object String]",F="[object Symbol]",U="[object Undefined]",j="[object WeakMap]",X="[object ArrayBuffer]",P="[object DataView]",B="[object Float32Array]",k="[object Float64Array]",M="[object Int8Array]",I="[object Int16Array]",W="[object Int32Array]",Q="[object Uint8Array]",J="[object Uint8ClampedArray]",K="[object Uint16Array]",Z="[object Uint32Array]",re=/[\\^$.*+?()[\]{}|]/g,te=/^\[object .+?Constructor\]$/,ae=/^(?:0|[1-9]\d*)$/,se={};se[B]=se[k]=se[M]=se[I]=se[W]=se[Q]=se[J]=se[K]=se[Z]=!0,se[y]=se[f]=se[X]=se[c]=se[P]=se[u]=se[d]=se[h]=se[S]=se[T]=se[N]=se[R]=se[C]=se[$]=se[j]=!1;var ie=typeof qc=="object"&&qc&&qc.Object===Object&&qc,ue=typeof self=="object"&&self&&self.Object===Object&&self,me=ie||ue||Function("return this")(),ve=e&&!e.nodeType&&e,pe=ve&&!0&&t&&!t.nodeType&&t,ye=pe&&pe.exports===ve,de=ye&&ie.process,Ve=(function(){try{return de&&de.binding&&de.binding("util")}catch{}})(),De=Ve&&Ve.isTypedArray;function qe(ce,_e){for(var Xe=-1,lt=ce==null?0:ce.length,Cn=0,Qt=[];++Xe<lt;){var qn=ce[Xe];_e(qn,Xe,ce)&&(Qt[Cn++]=qn)}return Qt}function et(ce,_e){for(var Xe=-1,lt=_e.length,Cn=ce.length;++Xe<lt;)ce[Cn+Xe]=_e[Xe];return ce}function mt(ce,_e){for(var Xe=-1,lt=ce==null?0:ce.length;++Xe<lt;)if(_e(ce[Xe],Xe,ce))return!0;return!1}function xt(ce,_e){for(var Xe=-1,lt=Array(ce);++Xe<ce;)lt[Xe]=_e(Xe);return lt}function $t(ce){return function(_e){return ce(_e)}}function ze(ce,_e){return ce.has(_e)}function tt(ce,_e){return ce==null?void 0:ce[_e]}function ct(ce){var _e=-1,Xe=Array(ce.size);return ce.forEach(function(lt,Cn){Xe[++_e]=[Cn,lt]}),Xe}function gt(ce,_e){return function(Xe){return ce(_e(Xe))}}function at(ce){var _e=-1,Xe=Array(ce.size);return ce.forEach(function(lt){Xe[++_e]=lt}),Xe}var Re=Array.prototype,je=Function.prototype,it=Object.prototype,rt=me["__core-js_shared__"],vt=je.toString,St=it.hasOwnProperty,Nt=(function(){var ce=/[^.]+$/.exec(rt&&rt.keys&&rt.keys.IE_PROTO||"");return ce?"Symbol(src)_1."+ce:""})(),an=it.toString,Lt=RegExp("^"+vt.call(St).replace(re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_t=ye?me.Buffer:void 0,Et=me.Symbol,xe=me.Uint8Array,Ge=it.propertyIsEnumerable,bt=Re.splice,Dt=Et?Et.toStringTag:void 0,ut=Object.getOwnPropertySymbols,yt=_t?_t.isBuffer:void 0,Ht=gt(Object.keys,Object),jt=Ii(me,"DataView"),Ce=Ii(me,"Map"),Ze=Ii(me,"Promise"),ft=Ii(me,"Set"),Tt=Ii(me,"WeakMap"),Mt=Ii(Object,"create"),en=ya(jt),Gt=ya(Ce),sn=ya(Ze),Rn=ya(ft),Yt=ya(Tt),Je=Et?Et.prototype:void 0,Fn=Je?Je.valueOf:void 0;function Rt(ce){var _e=-1,Xe=ce==null?0:ce.length;for(this.clear();++_e<Xe;){var lt=ce[_e];this.set(lt[0],lt[1])}}function ni(){this.__data__=Mt?Mt(null):{},this.size=0}function vo(ce){var _e=this.has(ce)&&delete this.__data__[ce];return this.size-=_e?1:0,_e}function Xt(ce){var _e=this.__data__;if(Mt){var Xe=_e[ce];return Xe===a?void 0:Xe}return St.call(_e,ce)?_e[ce]:void 0}function Pn(ce){var _e=this.__data__;return Mt?_e[ce]!==void 0:St.call(_e,ce)}function zo(ce,_e){var Xe=this.__data__;return this.size+=this.has(ce)?0:1,Xe[ce]=Mt&&_e===void 0?a:_e,this}Rt.prototype.clear=ni,Rt.prototype.delete=vo,Rt.prototype.get=Xt,Rt.prototype.has=Pn,Rt.prototype.set=zo;function mo(ce){var _e=-1,Xe=ce==null?0:ce.length;for(this.clear();++_e<Xe;){var lt=ce[_e];this.set(lt[0],lt[1])}}function ki(){this.__data__=[],this.size=0}function wr(ce){var _e=this.__data__,Xe=bi(_e,ce);if(Xe<0)return!1;var lt=_e.length-1;return Xe==lt?_e.pop():bt.call(_e,Xe,1),--this.size,!0}function nt(ce){var _e=this.__data__,Xe=bi(_e,ce);return Xe<0?void 0:_e[Xe][1]}function Ee(ce){return bi(this.__data__,ce)>-1}function Ke(ce,_e){var Xe=this.__data__,lt=bi(Xe,ce);return lt<0?(++this.size,Xe.push([ce,_e])):Xe[lt][1]=_e,this}mo.prototype.clear=ki,mo.prototype.delete=wr,mo.prototype.get=nt,mo.prototype.has=Ee,mo.prototype.set=Ke;function st(ce){var _e=-1,Xe=ce==null?0:ce.length;for(this.clear();++_e<Xe;){var lt=ce[_e];this.set(lt[0],lt[1])}}function on(){this.size=0,this.__data__={hash:new Rt,map:new(Ce||mo),string:new Rt}}function Zn(ce){var _e=uc(this,ce).delete(ce);return this.size-=_e?1:0,_e}function Ln(ce){return uc(this,ce).get(ce)}function ot(ce){return uc(this,ce).has(ce)}function vn(ce,_e){var Xe=uc(this,ce),lt=Xe.size;return Xe.set(ce,_e),this.size+=Xe.size==lt?0:1,this}st.prototype.clear=on,st.prototype.delete=Zn,st.prototype.get=Ln,st.prototype.has=ot,st.prototype.set=vn;function yn(ce){var _e=-1,Xe=ce==null?0:ce.length;for(this.__data__=new st;++_e<Xe;)this.add(ce[_e])}function gi(ce){return this.__data__.set(ce,a),this}function On(ce){return this.__data__.has(ce)}yn.prototype.add=yn.prototype.push=gi,yn.prototype.has=On;function oi(ce){var _e=this.__data__=new mo(ce);this.size=_e.size}function va(){this.__data__=new mo,this.size=0}function rc(ce){var _e=this.__data__,Xe=_e.delete(ce);return this.size=_e.size,Xe}function ac(ce){return this.__data__.get(ce)}function sc(ce){return this.__data__.has(ce)}function Ed(ce,_e){var Xe=this.__data__;if(Xe instanceof mo){var lt=Xe.__data__;if(!Ce||lt.length<i-1)return lt.push([ce,_e]),this.size=++Xe.size,this;Xe=this.__data__=new st(lt)}return Xe.set(ce,_e),this.size=Xe.size,this}oi.prototype.clear=va,oi.prototype.delete=rc,oi.prototype.get=ac,oi.prototype.has=sc,oi.prototype.set=Ed;function Ga(ce,_e){var Xe=wa(ce),lt=!Xe&&Ea(ce),Cn=!Xe&&!lt&&Ns(ce),Qt=!Xe&&!lt&&!Cn&&Aa(ce),qn=Xe||lt||Cn||Qt,Ko=qn?xt(ce.length,String):[],Fo=Ko.length;for(var ao in ce)St.call(ce,ao)&&!(qn&&(ao=="length"||Cn&&(ao=="offset"||ao=="parent")||Qt&&(ao=="buffer"||ao=="byteLength"||ao=="byteOffset")||vh(ao,Fo)))&&Ko.push(ao);return Ko}function bi(ce,_e){for(var Xe=ce.length;Xe--;)if(du(ce[Xe][0],_e))return Xe;return-1}function wd(ce,_e,Xe){var lt=_e(ce);return wa(ce)?lt:et(lt,Xe(ce))}function xl(ce){return ce==null?ce===void 0?U:A:Dt&&Dt in Object(ce)?wp(ce):Br(ce)}function su(ce){return Ta(ce)&&xl(ce)==y}function Sd(ce,_e,Xe,lt,Cn){return ce===_e?!0:ce==null||_e==null||!Ta(ce)&&!Ta(_e)?ce!==ce&&_e!==_e:lu(ce,_e,Xe,lt,Sd,Cn)}function lu(ce,_e,Xe,lt,Cn,Qt){var qn=wa(ce),Ko=wa(_e),Fo=qn?f:Qa(ce),ao=Ko?f:Qa(_e);Fo=Fo==y?N:Fo,ao=ao==y?N:ao;var ii=Fo==N,Bi=ao==N,No=Fo==ao;if(No&&Ns(ce)){if(!Ns(_e))return!1;qn=!0,ii=!1}if(No&&!ii)return Qt||(Qt=new oi),qn||Aa(ce)?lc(ce,_e,Xe,lt,Cn,Qt):_l(ce,_e,Fo,Xe,lt,Cn,Qt);if(!(Xe&E)){var er=ii&&St.call(ce,"__wrapped__"),tr=Bi&&St.call(_e,"__wrapped__");if(er||tr){var Wa=er?ce.value():ce,Tr=tr?_e.value():_e;return Qt||(Qt=new oi),Cn(Wa,Tr,Xe,lt,Qt)}}return No?(Qt||(Qt=new oi),cc(ce,_e,Xe,lt,Cn,Qt)):!1}function sv(ce){if(!dc(ce)||uu(ce))return!1;var _e=Bo(ce)?Lt:te;return _e.test(ya(ce))}function Ji(ce){return Ta(ce)&&Sa(ce.length)&&!!se[xl(ce)]}function cu(ce){if(!Sr(ce))return Ht(ce);var _e=[];for(var Xe in Object(ce))St.call(ce,Xe)&&Xe!="constructor"&&_e.push(Xe);return _e}function lc(ce,_e,Xe,lt,Cn,Qt){var qn=Xe&E,Ko=ce.length,Fo=_e.length;if(Ko!=Fo&&!(qn&&Fo>Ko))return!1;var ao=Qt.get(ce);if(ao&&Qt.get(_e))return ao==_e;var ii=-1,Bi=!0,No=Xe&p?new yn:void 0;for(Qt.set(ce,_e),Qt.set(_e,ce);++ii<Ko;){var er=ce[ii],tr=_e[ii];if(lt)var Wa=qn?lt(tr,er,ii,_e,ce,Qt):lt(er,tr,ii,ce,_e,Qt);if(Wa!==void 0){if(Wa)continue;Bi=!1;break}if(No){if(!mt(_e,function(Tr,Ya){if(!ze(No,Ya)&&(er===Tr||Cn(er,Tr,Xe,lt,Qt)))return No.push(Ya)})){Bi=!1;break}}else if(!(er===tr||Cn(er,tr,Xe,lt,Qt))){Bi=!1;break}}return Qt.delete(ce),Qt.delete(_e),Bi}function _l(ce,_e,Xe,lt,Cn,Qt,qn){switch(Xe){case P:if(ce.byteLength!=_e.byteLength||ce.byteOffset!=_e.byteOffset)return!1;ce=ce.buffer,_e=_e.buffer;case X:return!(ce.byteLength!=_e.byteLength||!Qt(new xe(ce),new xe(_e)));case c:case u:case T:return du(+ce,+_e);case d:return ce.name==_e.name&&ce.message==_e.message;case R:case $:return ce==_e+"";case S:var Ko=ct;case C:var Fo=lt&E;if(Ko||(Ko=at),ce.size!=_e.size&&!Fo)return!1;var ao=qn.get(ce);if(ao)return ao==_e;lt|=p,qn.set(ce,_e);var ii=lc(Ko(ce),Ko(_e),lt,Cn,Qt,qn);return qn.delete(ce),ii;case F:if(Fn)return Fn.call(ce)==Fn.call(_e)}return!1}function cc(ce,_e,Xe,lt,Cn,Qt){var qn=Xe&E,Ko=Td(ce),Fo=Ko.length,ao=Td(_e),ii=ao.length;if(Fo!=ii&&!qn)return!1;for(var Bi=Fo;Bi--;){var No=Ko[Bi];if(!(qn?No in _e:St.call(_e,No)))return!1}var er=Qt.get(ce);if(er&&Qt.get(_e))return er==_e;var tr=!0;Qt.set(ce,_e),Qt.set(_e,ce);for(var Wa=qn;++Bi<Fo;){No=Ko[Bi];var Tr=ce[No],Ya=_e[No];if(lt)var Sh=qn?lt(Ya,Tr,No,_e,ce,Qt):lt(Tr,Ya,No,ce,_e,Qt);if(!(Sh===void 0?Tr===Ya||Cn(Tr,Ya,Xe,lt,Qt):Sh)){tr=!1;break}Wa||(Wa=No=="constructor")}if(tr&&!Wa){var xa=ce.constructor,_a=_e.constructor;xa!=_a&&"constructor"in ce&&"constructor"in _e&&!(typeof xa=="function"&&xa instanceof xa&&typeof _a=="function"&&_a instanceof _a)&&(tr=!1)}return Qt.delete(ce),Qt.delete(_e),tr}function Td(ce){return wd(ce,Eh,Sp)}function uc(ce,_e){var Xe=ce.__data__;return lv(_e)?Xe[typeof _e=="string"?"string":"hash"]:Xe.map}function Ii(ce,_e){var Xe=tt(ce,_e);return sv(Xe)?Xe:void 0}function wp(ce){var _e=St.call(ce,Dt),Xe=ce[Dt];try{ce[Dt]=void 0;var lt=!0}catch{}var Cn=an.call(ce);return lt&&(_e?ce[Dt]=Xe:delete ce[Dt]),Cn}var Sp=ut?function(ce){return ce==null?[]:(ce=Object(ce),qe(ut(ce),function(_e){return Ge.call(ce,_e)}))}:Ad,Qa=xl;(jt&&Qa(new jt(new ArrayBuffer(1)))!=P||Ce&&Qa(new Ce)!=S||Ze&&Qa(Ze.resolve())!=O||ft&&Qa(new ft)!=C||Tt&&Qa(new Tt)!=j)&&(Qa=function(ce){var _e=xl(ce),Xe=_e==N?ce.constructor:void 0,lt=Xe?ya(Xe):"";if(lt)switch(lt){case en:return P;case Gt:return S;case sn:return O;case Rn:return C;case Yt:return j}return _e});function vh(ce,_e){return _e=_e??g,!!_e&&(typeof ce=="number"||ae.test(ce))&&ce>-1&&ce%1==0&&ce<_e}function lv(ce){var _e=typeof ce;return _e=="string"||_e=="number"||_e=="symbol"||_e=="boolean"?ce!=="__proto__":ce===null}function uu(ce){return!!Nt&&Nt in ce}function Sr(ce){var _e=ce&&ce.constructor,Xe=typeof _e=="function"&&_e.prototype||it;return ce===Xe}function Br(ce){return an.call(ce)}function ya(ce){if(ce!=null){try{return vt.call(ce)}catch{}try{return ce+""}catch{}}return""}function du(ce,_e){return ce===_e||ce!==ce&&_e!==_e}var Ea=su((function(){return arguments})())?su:function(ce){return Ta(ce)&&St.call(ce,"callee")&&!Ge.call(ce,"callee")},wa=Array.isArray;function fu(ce){return ce!=null&&Sa(ce.length)&&!Bo(ce)}var Ns=yt||wh;function yh(ce,_e){return Sd(ce,_e)}function Bo(ce){if(!dc(ce))return!1;var _e=xl(ce);return _e==h||_e==m||_e==b||_e==D}function Sa(ce){return typeof ce=="number"&&ce>-1&&ce%1==0&&ce<=g}function dc(ce){var _e=typeof ce;return ce!=null&&(_e=="object"||_e=="function")}function Ta(ce){return ce!=null&&typeof ce=="object"}var Aa=De?$t(De):Ji;function Eh(ce){return fu(ce)?Ga(ce):cu(ce)}function Ad(){return[]}function wh(){return!1}t.exports=yh})(oE,oE.exports)),oE.exports}var Jl={},ZI;function m6(){if(ZI)return Jl;ZI=1,Object.defineProperty(Jl,"__esModule",{value:!0}),Jl.getAceInstance=Jl.debounce=Jl.editorEvents=Jl.editorOptions=void 0;var t=["minLines","maxLines","readOnly","highlightActiveLine","tabSize","enableBasicAutocompletion","enableLiveAutocompletion","enableSnippets"];Jl.editorOptions=t;var e=["onChange","onFocus","onInput","onBlur","onCopy","onPaste","onSelectionChange","onCursorChange","onScroll","handleOptions","updateRef"];Jl.editorEvents=e;var i=function(){var E;return typeof window>"u"?(qc.window={},E=EE(),delete qc.window):window.ace?(E=window.ace,E.acequire=window.ace.require||window.ace.acequire):E=EE(),E};Jl.getAceInstance=i;var a=function(E,p){var g=null;return function(){var y=this,f=arguments;clearTimeout(g),g=setTimeout(function(){E.apply(y,f)},p)}};return Jl.debounce=a,Jl}var JI;function LP(){if(JI)return Yf;JI=1;var t=Yf&&Yf.__extends||(function(){var b=function(c,u){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(d[m]=h[m])},b(c,u)};return function(c,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");b(c,u);function d(){this.constructor=c}c.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)}})(),e=Yf&&Yf.__assign||function(){return e=Object.assign||function(b){for(var c,u=1,d=arguments.length;u<d;u++){c=arguments[u];for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(b[h]=c[h])}return b},e.apply(this,arguments)};Object.defineProperty(Yf,"__esModule",{value:!0});var i=EE(),a=kC(),E=Y,p=h6(),g=m6(),y=(0,g.getAceInstance)(),f=(function(b){t(c,b);function c(u){var d=b.call(this,u)||this;return g.editorEvents.forEach(function(h){d[h]=d[h].bind(d)}),d.debounce=g.debounce,d}return c.prototype.isInShadow=function(u){for(var d=u&&u.parentNode;d;){if(d.toString()==="[object ShadowRoot]")return!0;d=d.parentNode}return!1},c.prototype.componentDidMount=function(){var u=this,d=this.props,h=d.className,m=d.onBeforeLoad,S=d.onValidate,T=d.mode,A=d.focus,N=d.theme,O=d.fontSize,D=d.lineHeight,R=d.value,C=d.defaultValue,$=d.showGutter,F=d.wrapEnabled,U=d.showPrintMargin,j=d.scrollMargin,X=j===void 0?[0,0,0,0]:j,P=d.keyboardHandler,B=d.onLoad,k=d.commands,M=d.annotations,I=d.markers,W=d.placeholder;this.editor=y.edit(this.refEditor),m&&m(y);for(var Q=Object.keys(this.props.editorProps),J=0;J<Q.length;J++)this.editor[Q[J]]=this.props.editorProps[Q[J]];this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),this.editor.renderer.setScrollMargin(X[0],X[1],X[2],X[3]),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.getSession().setMode(typeof T=="string"?"ace/mode/".concat(T):T),N&&N!==""&&this.editor.setTheme("ace/theme/".concat(N)),this.editor.setFontSize(typeof O=="number"?"".concat(O,"px"):O),D&&(this.editor.container.style.lineHeight=typeof D=="number"?"".concat(D,"px"):"".concat(D),this.editor.renderer.updateFontSize()),this.editor.getSession().setValue(C||R||""),this.props.navigateToFileEnd&&this.editor.navigateFileEnd(),this.editor.renderer.setShowGutter($),this.editor.getSession().setUseWrapMode(F),this.editor.setShowPrintMargin(U),this.editor.on("focus",this.onFocus),this.editor.on("blur",this.onBlur),this.editor.on("copy",this.onCopy),this.editor.on("paste",this.onPaste),this.editor.on("change",this.onChange),this.editor.on("input",this.onInput),W&&this.updatePlaceholder(),this.editor.getSession().selection.on("changeSelection",this.onSelectionChange),this.editor.getSession().selection.on("changeCursor",this.onCursorChange),S&&this.editor.getSession().on("changeAnnotation",function(){var Z=u.editor.getSession().getAnnotations();u.props.onValidate(Z)}),this.editor.session.on("changeScrollTop",this.onScroll),this.editor.getSession().setAnnotations(M||[]),I&&I.length>0&&this.handleMarkers(I);var K=this.editor.$options;g.editorOptions.forEach(function(Z){K.hasOwnProperty(Z)?u.editor.setOption(Z,u.props[Z]):u.props[Z]&&console.warn("ReactAce: editor option ".concat(Z," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}),this.handleOptions(this.props),Array.isArray(k)&&k.forEach(function(Z){typeof Z.exec=="string"?u.editor.commands.bindKey(Z.bindKey,Z.exec):u.editor.commands.addCommand(Z)}),P&&this.editor.setKeyboardHandler("ace/keyboard/"+P),h&&(this.refEditor.className+=" "+h),B&&B(this.editor),this.editor.resize(),A&&this.editor.focus()},c.prototype.componentDidUpdate=function(u){for(var d=u,h=this.props,m=0;m<g.editorOptions.length;m++){var S=g.editorOptions[m];h[S]!==d[S]&&this.editor.setOption(S,h[S])}if(h.className!==d.className){var T=this.refEditor.className,A=T.trim().split(" "),N=d.className.trim().split(" ");N.forEach(function(R){var C=A.indexOf(R);A.splice(C,1)}),this.refEditor.className=" "+h.className+" "+A.join(" ")}var O=this.editor&&h.value!=null&&this.editor.getValue()!==h.value;if(O){this.silent=!0;var D=this.editor.session.selection.toJSON();this.editor.setValue(h.value,h.cursorStart),this.editor.session.selection.fromJSON(D),this.silent=!1}h.placeholder!==d.placeholder&&this.updatePlaceholder(),h.mode!==d.mode&&this.editor.getSession().setMode(typeof h.mode=="string"?"ace/mode/".concat(h.mode):h.mode),h.theme!==d.theme&&this.editor.setTheme("ace/theme/"+h.theme),h.keyboardHandler!==d.keyboardHandler&&(h.keyboardHandler?this.editor.setKeyboardHandler("ace/keyboard/"+h.keyboardHandler):this.editor.setKeyboardHandler(null)),h.fontSize!==d.fontSize&&this.editor.setFontSize(typeof h.fontSize=="number"?"".concat(h.fontSize,"px"):h.fontSize),h.lineHeight!==d.lineHeight&&(this.editor.container.style.lineHeight=typeof h.lineHeight=="number"?"".concat(h.lineHeight,"px"):h.lineHeight,this.editor.renderer.updateFontSize()),h.wrapEnabled!==d.wrapEnabled&&this.editor.getSession().setUseWrapMode(h.wrapEnabled),h.showPrintMargin!==d.showPrintMargin&&this.editor.setShowPrintMargin(h.showPrintMargin),h.showGutter!==d.showGutter&&this.editor.renderer.setShowGutter(h.showGutter),p(h.setOptions,d.setOptions)||this.handleOptions(h),(O||!p(h.annotations,d.annotations))&&this.editor.getSession().setAnnotations(h.annotations||[]),!p(h.markers,d.markers)&&Array.isArray(h.markers)&&this.handleMarkers(h.markers),p(h.scrollMargin,d.scrollMargin)||this.handleScrollMargins(h.scrollMargin),(u.height!==this.props.height||u.width!==this.props.width)&&this.editor.resize(),this.props.focus&&!u.focus&&this.editor.focus()},c.prototype.handleScrollMargins=function(u){u===void 0&&(u=[0,0,0,0]),this.editor.renderer.setScrollMargin(u[0],u[1],u[2],u[3])},c.prototype.componentWillUnmount=function(){this.editor&&(this.editor.destroy(),this.editor=null)},c.prototype.onChange=function(u){if(this.editor&&this.props.onChange&&!this.silent){var d=this.editor.getValue();this.props.onChange(d,u)}},c.prototype.onSelectionChange=function(u){if(this.props.onSelectionChange){var d=this.editor.getSelection();this.props.onSelectionChange(d,u)}},c.prototype.onCursorChange=function(u){if(this.props.onCursorChange){var d=this.editor.getSelection();this.props.onCursorChange(d,u)}},c.prototype.onInput=function(u){this.props.onInput&&this.props.onInput(u),this.props.placeholder&&this.updatePlaceholder()},c.prototype.onFocus=function(u){this.props.onFocus&&this.props.onFocus(u,this.editor)},c.prototype.onBlur=function(u){this.props.onBlur&&this.props.onBlur(u,this.editor)},c.prototype.onCopy=function(u){var d=u.text;this.props.onCopy&&this.props.onCopy(d)},c.prototype.onPaste=function(u){var d=u.text;this.props.onPaste&&this.props.onPaste(d)},c.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},c.prototype.handleOptions=function(u){for(var d=Object.keys(u.setOptions),h=0;h<d.length;h++)this.editor.setOption(d[h],u.setOptions[d[h]])},c.prototype.handleMarkers=function(u){var d=this,h=this.editor.getSession().getMarkers(!0);for(var m in h)h.hasOwnProperty(m)&&this.editor.getSession().removeMarker(h[m].id);h=this.editor.getSession().getMarkers(!1);for(var m in h)h.hasOwnProperty(m)&&h[m].clazz!=="ace_active-line"&&h[m].clazz!=="ace_selected-word"&&this.editor.getSession().removeMarker(h[m].id);u.forEach(function(S){var T=S.startRow,A=S.startCol,N=S.endRow,O=S.endCol,D=S.className,R=S.type,C=S.inFront,$=C===void 0?!1:C,F=new i.Range(T,A,N,O);d.editor.getSession().addMarker(F,D,R,$)})},c.prototype.updatePlaceholder=function(){var u=this.editor,d=this.props.placeholder,h=!u.session.getValue().length,m=u.renderer.placeholderNode;!h&&m?(u.renderer.scroller.removeChild(u.renderer.placeholderNode),u.renderer.placeholderNode=null):h&&!m?(m=u.renderer.placeholderNode=document.createElement("div"),m.textContent=d||"",m.className="ace_comment ace_placeholder",m.style.padding="0 9px",m.style.position="absolute",m.style.zIndex="3",u.renderer.scroller.appendChild(m)):h&&m&&(m.textContent=d)},c.prototype.updateRef=function(u){this.refEditor=u},c.prototype.render=function(){var u=this.props,d=u.name,h=u.width,m=u.height,S=u.style,T=e({width:h,height:m},S);return E.createElement("div",{ref:this.updateRef,id:d,style:T})},c.propTypes={mode:a.oneOfType([a.string,a.object]),focus:a.bool,theme:a.string,name:a.string,className:a.string,height:a.string,width:a.string,fontSize:a.oneOfType([a.number,a.string]),lineHeight:a.oneOfType([a.number,a.string]),showGutter:a.bool,onChange:a.func,onCopy:a.func,onPaste:a.func,onFocus:a.func,onInput:a.func,onBlur:a.func,onScroll:a.func,value:a.string,defaultValue:a.string,onLoad:a.func,onSelectionChange:a.func,onCursorChange:a.func,onBeforeLoad:a.func,onValidate:a.func,minLines:a.number,maxLines:a.number,readOnly:a.bool,highlightActiveLine:a.bool,tabSize:a.number,showPrintMargin:a.bool,cursorStart:a.number,debounceChangePeriod:a.number,editorProps:a.object,setOptions:a.object,style:a.object,scrollMargin:a.array,annotations:a.array,markers:a.array,keyboardHandler:a.string,wrapEnabled:a.bool,enableSnippets:a.bool,enableBasicAutocompletion:a.oneOfType([a.bool,a.array]),enableLiveAutocompletion:a.oneOfType([a.bool,a.array]),navigateToFileEnd:a.bool,commands:a.array,placeholder:a.string},c.defaultProps={name:"ace-editor",focus:!1,mode:"",theme:"",height:"500px",width:"500px",fontSize:12,enableSnippets:!1,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,placeholder:null,navigateToFileEnd:!0},c})(E.Component);return Yf.default=f,Yf}var Nb={},Xf={},Rx={exports:{}},e3;function OP(){return e3||(e3=1,(function(t,e){ace.define("ace/split",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/editor","ace/virtual_renderer","ace/edit_session"],function(i,a,E){var p=i("./lib/oop");i("./lib/lang");var g=i("./lib/event_emitter").EventEmitter,y=i("./editor").Editor,f=i("./virtual_renderer").VirtualRenderer,b=i("./edit_session").EditSession,c;c=function(u,d,h){this.BELOW=1,this.BESIDE=0,this.$container=u,this.$theme=d,this.$splits=0,this.$editorCSS="",this.$editors=[],this.$orientation=this.BESIDE,this.setSplits(h||1),this.$cEditor=this.$editors[0],this.on("focus",(function(m){this.$cEditor=m}).bind(this))},(function(){p.implement(this,g),this.$createEditor=function(){var u=document.createElement("div");u.className=this.$editorCSS,u.style.cssText="position: absolute; top:0px; bottom:0px",this.$container.appendChild(u);var d=new y(new f(u,this.$theme));return d.on("focus",(function(){this._emit("focus",d)}).bind(this)),this.$editors.push(d),d.setFontSize(this.$fontSize),d},this.setSplits=function(u){var d;if(u<1)throw"The number of splits have to be > 0!";if(u!=this.$splits){if(u>this.$splits){for(;this.$splits<this.$editors.length&&this.$splits<u;)d=this.$editors[this.$splits],this.$container.appendChild(d.container),d.setFontSize(this.$fontSize),this.$splits++;for(;this.$splits<u;)this.$createEditor(),this.$splits++}else for(;this.$splits>u;)d=this.$editors[this.$splits-1],this.$container.removeChild(d.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(u){return this.$editors[u]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(u){this.$editors.forEach(function(d){d.setTheme(u)})},this.setKeyboardHandler=function(u){this.$editors.forEach(function(d){d.setKeyboardHandler(u)})},this.forEach=function(u,d){this.$editors.forEach(u,d)},this.$fontSize="",this.setFontSize=function(u){this.$fontSize=u,this.forEach(function(d){d.setFontSize(u)})},this.$cloneSession=function(u){var d=new b(u.getDocument(),u.getMode()),h=u.getUndoManager();return d.setUndoManager(h),d.setTabSize(u.getTabSize()),d.setUseSoftTabs(u.getUseSoftTabs()),d.setOverwrite(u.getOverwrite()),d.setBreakpoints(u.getBreakpoints()),d.setUseWrapMode(u.getUseWrapMode()),d.setUseWorker(u.getUseWorker()),d.setWrapLimitRange(u.$wrapLimitRange.min,u.$wrapLimitRange.max),d.$foldData=u.$cloneFoldData(),d},this.setSession=function(u,d){var h;d==null?h=this.$cEditor:h=this.$editors[d];var m=this.$editors.some(function(S){return S.session===u});return m&&(u=this.$cloneSession(u)),h.setSession(u),u},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(u){this.$orientation!=u&&(this.$orientation=u,this.resize())},this.resize=function(){var u=this.$container.clientWidth,d=this.$container.clientHeight,h;if(this.$orientation==this.BESIDE)for(var m=u/this.$splits,S=0;S<this.$splits;S++)h=this.$editors[S],h.container.style.width=m+"px",h.container.style.top="0px",h.container.style.left=S*m+"px",h.container.style.height=d+"px",h.resize();else for(var T=d/this.$splits,S=0;S<this.$splits;S++)h=this.$editors[S],h.container.style.width=u+"px",h.container.style.top=S*T+"px",h.container.style.left="0px",h.container.style.height=T+"px",h.resize()}}).call(c.prototype),a.Split=c}),ace.define("ace/ext/split",["require","exports","module","ace/ext/split","ace/split"],function(i,a,E){E.exports=i("../split")}),(function(){ace.require(["ace/ext/split"],function(i){t&&(t.exports=i)})})()})(Rx)),Rx.exports}var Lx,t3;function DP(){if(t3)return Lx;t3=1;var t="Expected a function",e="__lodash_hash_undefined__",i="[object Function]",a="[object GeneratorFunction]",E="[object Symbol]",p=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,g=/^\w*$/,y=/^\./,f=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,b=/[\\^$.*+?()[\]{}|]/g,c=/\\(\\)?/g,u=/^\[object .+?Constructor\]$/,d=typeof qc=="object"&&qc&&qc.Object===Object&&qc,h=typeof self=="object"&&self&&self.Object===Object&&self,m=d||h||Function("return this")();function S(xe,Ge){return xe==null?void 0:xe[Ge]}function T(xe){var Ge=!1;if(xe!=null&&typeof xe.toString!="function")try{Ge=!!(xe+"")}catch{}return Ge}var A=Array.prototype,N=Function.prototype,O=Object.prototype,D=m["__core-js_shared__"],R=(function(){var xe=/[^.]+$/.exec(D&&D.keys&&D.keys.IE_PROTO||"");return xe?"Symbol(src)_1."+xe:""})(),C=N.toString,$=O.hasOwnProperty,F=O.toString,U=RegExp("^"+C.call($).replace(b,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=m.Symbol,X=A.splice,P=ze(m,"Map"),B=ze(Object,"create"),k=j?j.prototype:void 0,M=k?k.toString:void 0;function I(xe){var Ge=-1,bt=xe?xe.length:0;for(this.clear();++Ge<bt;){var Dt=xe[Ge];this.set(Dt[0],Dt[1])}}function W(){this.__data__=B?B(null):{}}function Q(xe){return this.has(xe)&&delete this.__data__[xe]}function J(xe){var Ge=this.__data__;if(B){var bt=Ge[xe];return bt===e?void 0:bt}return $.call(Ge,xe)?Ge[xe]:void 0}function K(xe){var Ge=this.__data__;return B?Ge[xe]!==void 0:$.call(Ge,xe)}function Z(xe,Ge){var bt=this.__data__;return bt[xe]=B&&Ge===void 0?e:Ge,this}I.prototype.clear=W,I.prototype.delete=Q,I.prototype.get=J,I.prototype.has=K,I.prototype.set=Z;function re(xe){var Ge=-1,bt=xe?xe.length:0;for(this.clear();++Ge<bt;){var Dt=xe[Ge];this.set(Dt[0],Dt[1])}}function te(){this.__data__=[]}function ae(xe){var Ge=this.__data__,bt=De(Ge,xe);if(bt<0)return!1;var Dt=Ge.length-1;return bt==Dt?Ge.pop():X.call(Ge,bt,1),!0}function se(xe){var Ge=this.__data__,bt=De(Ge,xe);return bt<0?void 0:Ge[bt][1]}function ie(xe){return De(this.__data__,xe)>-1}function ue(xe,Ge){var bt=this.__data__,Dt=De(bt,xe);return Dt<0?bt.push([xe,Ge]):bt[Dt][1]=Ge,this}re.prototype.clear=te,re.prototype.delete=ae,re.prototype.get=se,re.prototype.has=ie,re.prototype.set=ue;function me(xe){var Ge=-1,bt=xe?xe.length:0;for(this.clear();++Ge<bt;){var Dt=xe[Ge];this.set(Dt[0],Dt[1])}}function ve(){this.__data__={hash:new I,map:new(P||re),string:new I}}function pe(xe){return $t(this,xe).delete(xe)}function ye(xe){return $t(this,xe).get(xe)}function de(xe){return $t(this,xe).has(xe)}function Ve(xe,Ge){return $t(this,xe).set(xe,Ge),this}me.prototype.clear=ve,me.prototype.delete=pe,me.prototype.get=ye,me.prototype.has=de,me.prototype.set=Ve;function De(xe,Ge){for(var bt=xe.length;bt--;)if(rt(xe[bt][0],Ge))return bt;return-1}function qe(xe,Ge){Ge=tt(Ge,xe)?[Ge]:xt(Ge);for(var bt=0,Dt=Ge.length;xe!=null&&bt<Dt;)xe=xe[Re(Ge[bt++])];return bt&&bt==Dt?xe:void 0}function et(xe){if(!Nt(xe)||gt(xe))return!1;var Ge=St(xe)||T(xe)?U:u;return Ge.test(je(xe))}function mt(xe){if(typeof xe=="string")return xe;if(Lt(xe))return M?M.call(xe):"";var Ge=xe+"";return Ge=="0"&&1/xe==-1/0?"-0":Ge}function xt(xe){return vt(xe)?xe:at(xe)}function $t(xe,Ge){var bt=xe.__data__;return ct(Ge)?bt[typeof Ge=="string"?"string":"hash"]:bt.map}function ze(xe,Ge){var bt=S(xe,Ge);return et(bt)?bt:void 0}function tt(xe,Ge){if(vt(xe))return!1;var bt=typeof xe;return bt=="number"||bt=="symbol"||bt=="boolean"||xe==null||Lt(xe)?!0:g.test(xe)||!p.test(xe)||Ge!=null&&xe in Object(Ge)}function ct(xe){var Ge=typeof xe;return Ge=="string"||Ge=="number"||Ge=="symbol"||Ge=="boolean"?xe!=="__proto__":xe===null}function gt(xe){return!!R&&R in xe}var at=it(function(xe){xe=_t(xe);var Ge=[];return y.test(xe)&&Ge.push(""),xe.replace(f,function(bt,Dt,ut,yt){Ge.push(ut?yt.replace(c,"$1"):Dt||bt)}),Ge});function Re(xe){if(typeof xe=="string"||Lt(xe))return xe;var Ge=xe+"";return Ge=="0"&&1/xe==-1/0?"-0":Ge}function je(xe){if(xe!=null){try{return C.call(xe)}catch{}try{return xe+""}catch{}}return""}function it(xe,Ge){if(typeof xe!="function"||Ge&&typeof Ge!="function")throw new TypeError(t);var bt=function(){var Dt=arguments,ut=Ge?Ge.apply(this,Dt):Dt[0],yt=bt.cache;if(yt.has(ut))return yt.get(ut);var Ht=xe.apply(this,Dt);return bt.cache=yt.set(ut,Ht),Ht};return bt.cache=new(it.Cache||me),bt}it.Cache=me;function rt(xe,Ge){return xe===Ge||xe!==xe&&Ge!==Ge}var vt=Array.isArray;function St(xe){var Ge=Nt(xe)?F.call(xe):"";return Ge==i||Ge==a}function Nt(xe){var Ge=typeof xe;return!!xe&&(Ge=="object"||Ge=="function")}function an(xe){return!!xe&&typeof xe=="object"}function Lt(xe){return typeof xe=="symbol"||an(xe)&&F.call(xe)==E}function _t(xe){return xe==null?"":mt(xe)}function Et(xe,Ge,bt){var Dt=xe==null?void 0:qe(xe,Ge);return Dt===void 0?bt:Dt}return Lx=Et,Lx}var n3;function p6(){if(n3)return Xf;n3=1;var t=Xf&&Xf.__extends||(function(){var u=function(d,h){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,S){m.__proto__=S}||function(m,S){for(var T in S)Object.prototype.hasOwnProperty.call(S,T)&&(m[T]=S[T])},u(d,h)};return function(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");u(d,h);function m(){this.constructor=d}d.prototype=h===null?Object.create(h):(m.prototype=h.prototype,new m)}})(),e=Xf&&Xf.__assign||function(){return e=Object.assign||function(u){for(var d,h=1,m=arguments.length;h<m;h++){d=arguments[h];for(var S in d)Object.prototype.hasOwnProperty.call(d,S)&&(u[S]=d[S])}return u},e.apply(this,arguments)};Object.defineProperty(Xf,"__esModule",{value:!0});var i=m6(),a=(0,i.getAceInstance)(),E=EE(),p=OP(),g=kC(),y=Y,f=h6(),b=DP(),c=(function(u){t(d,u);function d(h){var m=u.call(this,h)||this;return i.editorEvents.forEach(function(S){m[S]=m[S].bind(m)}),m.debounce=i.debounce,m}return d.prototype.isInShadow=function(h){for(var m=h&&h.parentNode;m;){if(m.toString()==="[object ShadowRoot]")return!0;m=m.parentNode}return!1},d.prototype.componentDidMount=function(){var h=this,m=this.props,S=m.className,T=m.onBeforeLoad,A=m.mode,N=m.focus,O=m.theme,D=m.fontSize,R=m.value,C=m.defaultValue,$=m.cursorStart,F=m.showGutter,U=m.wrapEnabled,j=m.showPrintMargin,X=m.scrollMargin,P=X===void 0?[0,0,0,0]:X,B=m.keyboardHandler,k=m.onLoad,M=m.commands,I=m.annotations,W=m.markers,Q=m.splits;this.editor=a.edit(this.refEditor),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.setTheme("ace/theme/".concat(O)),T&&T(a);var J=Object.keys(this.props.editorProps),K=new p.Split(this.editor.container,"ace/theme/".concat(O),Q);this.editor.env.split=K,this.splitEditor=K.getEditor(0),this.split=K,this.editor.setShowPrintMargin(!1),this.editor.renderer.setShowGutter(!1);var Z=this.splitEditor.$options;this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),K.forEach(function(te,ae){for(var se=0;se<J.length;se++)te[J[se]]=h.props.editorProps[J[se]];var ie=b(C,ae),ue=b(R,ae,"");te.session.setUndoManager(new a.UndoManager),te.setTheme("ace/theme/".concat(O)),te.renderer.setScrollMargin(P[0],P[1],P[2],P[3]),te.getSession().setMode("ace/mode/".concat(A)),te.setFontSize(D),te.renderer.setShowGutter(F),te.getSession().setUseWrapMode(U),te.setShowPrintMargin(j),te.on("focus",h.onFocus),te.on("blur",h.onBlur),te.on("input",h.onInput),te.on("copy",h.onCopy),te.on("paste",h.onPaste),te.on("change",h.onChange),te.getSession().selection.on("changeSelection",h.onSelectionChange),te.getSession().selection.on("changeCursor",h.onCursorChange),te.session.on("changeScrollTop",h.onScroll),te.setValue(ie===void 0?ue:ie,$);var me=b(I,ae,[]),ve=b(W,ae,[]);te.getSession().setAnnotations(me),ve&&ve.length>0&&h.handleMarkers(ve,te);for(var se=0;se<i.editorOptions.length;se++){var pe=i.editorOptions[se];Z.hasOwnProperty(pe)?te.setOption(pe,h.props[pe]):h.props[pe]&&console.warn("ReaceAce: editor option ".concat(pe," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}h.handleOptions(h.props,te),Array.isArray(M)&&M.forEach(function(ye){typeof ye.exec=="string"?te.commands.bindKey(ye.bindKey,ye.exec):te.commands.addCommand(ye)}),B&&te.setKeyboardHandler("ace/keyboard/"+B)}),S&&(this.refEditor.className+=" "+S),N&&this.splitEditor.focus();var re=this.editor.env.split;re.setOrientation(this.props.orientation==="below"?re.BELOW:re.BESIDE),re.resize(!0),k&&k(re)},d.prototype.componentDidUpdate=function(h){var m=this,S=h,T=this.props,A=this.editor.env.split;if(T.splits!==S.splits&&A.setSplits(T.splits),T.orientation!==S.orientation&&A.setOrientation(T.orientation==="below"?A.BELOW:A.BESIDE),A.forEach(function(R,C){T.mode!==S.mode&&R.getSession().setMode("ace/mode/"+T.mode),T.keyboardHandler!==S.keyboardHandler&&(T.keyboardHandler?R.setKeyboardHandler("ace/keyboard/"+T.keyboardHandler):R.setKeyboardHandler(null)),T.fontSize!==S.fontSize&&R.setFontSize(T.fontSize),T.wrapEnabled!==S.wrapEnabled&&R.getSession().setUseWrapMode(T.wrapEnabled),T.showPrintMargin!==S.showPrintMargin&&R.setShowPrintMargin(T.showPrintMargin),T.showGutter!==S.showGutter&&R.renderer.setShowGutter(T.showGutter);for(var $=0;$<i.editorOptions.length;$++){var F=i.editorOptions[$];T[F]!==S[F]&&R.setOption(F,T[F])}f(T.setOptions,S.setOptions)||m.handleOptions(T,R);var U=b(T.value,C,"");if(R.getValue()!==U){m.silent=!0;var j=R.session.selection.toJSON();R.setValue(U,T.cursorStart),R.session.selection.fromJSON(j),m.silent=!1}var X=b(T.annotations,C,[]),P=b(S.annotations,C,[]);f(X,P)||R.getSession().setAnnotations(X);var B=b(T.markers,C,[]),k=b(S.markers,C,[]);!f(B,k)&&Array.isArray(B)&&m.handleMarkers(B,R)}),T.className!==S.className){var N=this.refEditor.className,O=N.trim().split(" "),D=S.className.trim().split(" ");D.forEach(function(R){var C=O.indexOf(R);O.splice(C,1)}),this.refEditor.className=" "+T.className+" "+O.join(" ")}T.theme!==S.theme&&A.setTheme("ace/theme/"+T.theme),T.focus&&!S.focus&&this.splitEditor.focus(),(T.height!==this.props.height||T.width!==this.props.width)&&this.editor.resize()},d.prototype.componentWillUnmount=function(){this.editor.destroy(),this.editor=null},d.prototype.onChange=function(h){if(this.props.onChange&&!this.silent){var m=[];this.editor.env.split.forEach(function(S){m.push(S.getValue())}),this.props.onChange(m,h)}},d.prototype.onSelectionChange=function(h){if(this.props.onSelectionChange){var m=[];this.editor.env.split.forEach(function(S){m.push(S.getSelection())}),this.props.onSelectionChange(m,h)}},d.prototype.onCursorChange=function(h){if(this.props.onCursorChange){var m=[];this.editor.env.split.forEach(function(S){m.push(S.getSelection())}),this.props.onCursorChange(m,h)}},d.prototype.onFocus=function(h){this.props.onFocus&&this.props.onFocus(h)},d.prototype.onInput=function(h){this.props.onInput&&this.props.onInput(h)},d.prototype.onBlur=function(h){this.props.onBlur&&this.props.onBlur(h)},d.prototype.onCopy=function(h){this.props.onCopy&&this.props.onCopy(h)},d.prototype.onPaste=function(h){this.props.onPaste&&this.props.onPaste(h)},d.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},d.prototype.handleOptions=function(h,m){for(var S=Object.keys(h.setOptions),T=0;T<S.length;T++)m.setOption(S[T],h.setOptions[S[T]])},d.prototype.handleMarkers=function(h,m){var S=m.getSession().getMarkers(!0);for(var T in S)S.hasOwnProperty(T)&&m.getSession().removeMarker(S[T].id);S=m.getSession().getMarkers(!1);for(var T in S)S.hasOwnProperty(T)&&m.getSession().removeMarker(S[T].id);h.forEach(function(A){var N=A.startRow,O=A.startCol,D=A.endRow,R=A.endCol,C=A.className,$=A.type,F=A.inFront,U=F===void 0?!1:F,j=new E.Range(N,O,D,R);m.getSession().addMarker(j,C,$,U)})},d.prototype.updateRef=function(h){this.refEditor=h},d.prototype.render=function(){var h=this.props,m=h.name,S=h.width,T=h.height,A=h.style,N=e({width:S,height:T},A);return y.createElement("div",{ref:this.updateRef,id:m,style:N})},d.propTypes={className:g.string,debounceChangePeriod:g.number,defaultValue:g.arrayOf(g.string),focus:g.bool,fontSize:g.oneOfType([g.number,g.string]),height:g.string,mode:g.string,name:g.string,onBlur:g.func,onChange:g.func,onCopy:g.func,onFocus:g.func,onInput:g.func,onLoad:g.func,onPaste:g.func,onScroll:g.func,orientation:g.string,showGutter:g.bool,splits:g.number,theme:g.string,value:g.arrayOf(g.string),width:g.string,onSelectionChange:g.func,onCursorChange:g.func,onBeforeLoad:g.func,minLines:g.number,maxLines:g.number,readOnly:g.bool,highlightActiveLine:g.bool,tabSize:g.number,showPrintMargin:g.bool,cursorStart:g.number,editorProps:g.object,setOptions:g.object,style:g.object,scrollMargin:g.array,annotations:g.array,markers:g.array,keyboardHandler:g.string,wrapEnabled:g.bool,enableBasicAutocompletion:g.oneOfType([g.bool,g.array]),enableLiveAutocompletion:g.oneOfType([g.bool,g.array]),commands:g.array},d.defaultProps={name:"ace-editor",focus:!1,orientation:"beside",splits:2,mode:"",theme:"",height:"500px",width:"500px",value:[],fontSize:12,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1},d})(y.Component);return Xf.default=c,Xf}var Ox={exports:{}},o3;function MP(){return o3||(o3=1,(function(t){var e=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},i=-1,a=1,E=0;e.Diff=function(p,g){return[p,g]},e.prototype.diff_main=function(p,g,y,f){typeof f>"u"&&(this.Diff_Timeout<=0?f=Number.MAX_VALUE:f=new Date().getTime()+this.Diff_Timeout*1e3);var b=f;if(p==null||g==null)throw new Error("Null input. (diff_main)");if(p==g)return p?[new e.Diff(E,p)]:[];typeof y>"u"&&(y=!0);var c=y,u=this.diff_commonPrefix(p,g),d=p.substring(0,u);p=p.substring(u),g=g.substring(u),u=this.diff_commonSuffix(p,g);var h=p.substring(p.length-u);p=p.substring(0,p.length-u),g=g.substring(0,g.length-u);var m=this.diff_compute_(p,g,c,b);return d&&m.unshift(new e.Diff(E,d)),h&&m.push(new e.Diff(E,h)),this.diff_cleanupMerge(m),m},e.prototype.diff_compute_=function(p,g,y,f){var b;if(!p)return[new e.Diff(a,g)];if(!g)return[new e.Diff(i,p)];var c=p.length>g.length?p:g,u=p.length>g.length?g:p,d=c.indexOf(u);if(d!=-1)return b=[new e.Diff(a,c.substring(0,d)),new e.Diff(E,u),new e.Diff(a,c.substring(d+u.length))],p.length>g.length&&(b[0][0]=b[2][0]=i),b;if(u.length==1)return[new e.Diff(i,p),new e.Diff(a,g)];var h=this.diff_halfMatch_(p,g);if(h){var m=h[0],S=h[1],T=h[2],A=h[3],N=h[4],O=this.diff_main(m,T,y,f),D=this.diff_main(S,A,y,f);return O.concat([new e.Diff(E,N)],D)}return y&&p.length>100&&g.length>100?this.diff_lineMode_(p,g,f):this.diff_bisect_(p,g,f)},e.prototype.diff_lineMode_=function(p,g,y){var f=this.diff_linesToChars_(p,g);p=f.chars1,g=f.chars2;var b=f.lineArray,c=this.diff_main(p,g,!1,y);this.diff_charsToLines_(c,b),this.diff_cleanupSemantic(c),c.push(new e.Diff(E,""));for(var u=0,d=0,h=0,m="",S="";u<c.length;){switch(c[u][0]){case a:h++,S+=c[u][1];break;case i:d++,m+=c[u][1];break;case E:if(d>=1&&h>=1){c.splice(u-d-h,d+h),u=u-d-h;for(var T=this.diff_main(m,S,!1,y),A=T.length-1;A>=0;A--)c.splice(u,0,T[A]);u=u+T.length}h=0,d=0,m="",S="";break}u++}return c.pop(),c},e.prototype.diff_bisect_=function(p,g,y){for(var f=p.length,b=g.length,c=Math.ceil((f+b)/2),u=c,d=2*c,h=new Array(d),m=new Array(d),S=0;S<d;S++)h[S]=-1,m[S]=-1;h[u+1]=0,m[u+1]=0;for(var T=f-b,A=T%2!=0,N=0,O=0,D=0,R=0,C=0;C<c&&!(new Date().getTime()>y);C++){for(var $=-C+N;$<=C-O;$+=2){var F=u+$,U;$==-C||$!=C&&h[F-1]<h[F+1]?U=h[F+1]:U=h[F-1]+1;for(var j=U-$;U<f&&j<b&&p.charAt(U)==g.charAt(j);)U++,j++;if(h[F]=U,U>f)O+=2;else if(j>b)N+=2;else if(A){var X=u+T-$;if(X>=0&&X<d&&m[X]!=-1){var P=f-m[X];if(U>=P)return this.diff_bisectSplit_(p,g,U,j,y)}}}for(var B=-C+D;B<=C-R;B+=2){var X=u+B,P;B==-C||B!=C&&m[X-1]<m[X+1]?P=m[X+1]:P=m[X-1]+1;for(var k=P-B;P<f&&k<b&&p.charAt(f-P-1)==g.charAt(b-k-1);)P++,k++;if(m[X]=P,P>f)R+=2;else if(k>b)D+=2;else if(!A){var F=u+T-B;if(F>=0&&F<d&&h[F]!=-1){var U=h[F],j=u+U-F;if(P=f-P,U>=P)return this.diff_bisectSplit_(p,g,U,j,y)}}}}return[new e.Diff(i,p),new e.Diff(a,g)]},e.prototype.diff_bisectSplit_=function(p,g,y,f,b){var c=p.substring(0,y),u=g.substring(0,f),d=p.substring(y),h=g.substring(f),m=this.diff_main(c,u,!1,b),S=this.diff_main(d,h,!1,b);return m.concat(S)},e.prototype.diff_linesToChars_=function(p,g){var y=[],f={};y[0]="";function b(h){for(var m="",S=0,T=-1,A=y.length;T<h.length-1;){T=h.indexOf(`
1404
+ Valid keys: `+JSON.stringify(Object.keys(K),null," "));var de=ye(ue,pe,ae,se,ie+"."+pe,i);if(de)return de}return null}return T(Z)}function k(K){switch(typeof K){case"number":case"string":case"undefined":return!0;case"boolean":return!K;case"object":if(Array.isArray(K))return K.every(k);if(K===null||y(K))return!0;var Z=u(K);if(Z){var re=Z.call(K),te;if(Z!==K.entries){for(;!(te=re.next()).done;)if(!k(te.value))return!1}else for(;!(te=re.next()).done;){var ae=te.value;if(ae&&!k(ae[1]))return!1}}else return!1;return!0;default:return!1}}function M(K,Z){return K==="symbol"?!0:Z?Z["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Z instanceof Symbol:!1}function I(K){var Z=typeof K;return Array.isArray(K)?"array":K instanceof RegExp?"object":M(Z,K)?"symbol":Z}function W(K){if(typeof K>"u"||K===null)return""+K;var Z=I(K);if(Z==="object"){if(K instanceof Date)return"date";if(K instanceof RegExp)return"regexp"}return Z}function Q(K){var Z=W(K);switch(Z){case"array":case"object":return"an "+Z;case"boolean":case"date":case"regexp":return"a "+Z;default:return Z}}function J(K){return!K.constructor||!K.constructor.name?d:K.constructor.name}return h.checkPropTypes=E,h.resetWarningCache=E.resetWarningCache,h.PropTypes=h,h},Cx}var Nx,XI;function RP(){if(XI)return Nx;XI=1;var t=MC();function e(){}function i(){}return i.resetWarningCache=e,Nx=function(){function a(g,y,f,b,c,u){if(u!==t){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}a.isRequired=a;function E(){return a}var p={array:a,bigint:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:E,element:a,elementType:a,instanceOf:E,node:a,objectOf:E,oneOf:E,oneOfType:E,shape:E,exact:E,checkPropTypes:i,resetWarningCache:e};return p.PropTypes=p,p},Nx}var qI;function kC(){if(qI)return bS.exports;if(qI=1,process.env.NODE_ENV!=="production"){var t=d6(),e=!0;bS.exports=NP()(t.isElement,e)}else bS.exports=RP()();return bS.exports}var oE={exports:{}};oE.exports;var KI;function h6(){return KI||(KI=1,(function(t,e){var i=200,a="__lodash_hash_undefined__",E=1,p=2,g=9007199254740991,y="[object Arguments]",f="[object Array]",b="[object AsyncFunction]",c="[object Boolean]",u="[object Date]",d="[object Error]",h="[object Function]",m="[object GeneratorFunction]",S="[object Map]",T="[object Number]",A="[object Null]",N="[object Object]",O="[object Promise]",D="[object Proxy]",R="[object RegExp]",C="[object Set]",$="[object String]",F="[object Symbol]",U="[object Undefined]",j="[object WeakMap]",X="[object ArrayBuffer]",P="[object DataView]",B="[object Float32Array]",k="[object Float64Array]",M="[object Int8Array]",I="[object Int16Array]",W="[object Int32Array]",Q="[object Uint8Array]",J="[object Uint8ClampedArray]",K="[object Uint16Array]",Z="[object Uint32Array]",re=/[\\^$.*+?()[\]{}|]/g,te=/^\[object .+?Constructor\]$/,ae=/^(?:0|[1-9]\d*)$/,se={};se[B]=se[k]=se[M]=se[I]=se[W]=se[Q]=se[J]=se[K]=se[Z]=!0,se[y]=se[f]=se[X]=se[c]=se[P]=se[u]=se[d]=se[h]=se[S]=se[T]=se[N]=se[R]=se[C]=se[$]=se[j]=!1;var ie=typeof qc=="object"&&qc&&qc.Object===Object&&qc,ue=typeof self=="object"&&self&&self.Object===Object&&self,me=ie||ue||Function("return this")(),ve=e&&!e.nodeType&&e,pe=ve&&!0&&t&&!t.nodeType&&t,ye=pe&&pe.exports===ve,de=ye&&ie.process,Ve=(function(){try{return de&&de.binding&&de.binding("util")}catch{}})(),De=Ve&&Ve.isTypedArray;function qe(ce,_e){for(var Xe=-1,lt=ce==null?0:ce.length,Cn=0,Qt=[];++Xe<lt;){var qn=ce[Xe];_e(qn,Xe,ce)&&(Qt[Cn++]=qn)}return Qt}function et(ce,_e){for(var Xe=-1,lt=_e.length,Cn=ce.length;++Xe<lt;)ce[Cn+Xe]=_e[Xe];return ce}function mt(ce,_e){for(var Xe=-1,lt=ce==null?0:ce.length;++Xe<lt;)if(_e(ce[Xe],Xe,ce))return!0;return!1}function xt(ce,_e){for(var Xe=-1,lt=Array(ce);++Xe<ce;)lt[Xe]=_e(Xe);return lt}function $t(ce){return function(_e){return ce(_e)}}function ze(ce,_e){return ce.has(_e)}function nt(ce,_e){return ce==null?void 0:ce[_e]}function ct(ce){var _e=-1,Xe=Array(ce.size);return ce.forEach(function(lt,Cn){Xe[++_e]=[Cn,lt]}),Xe}function gt(ce,_e){return function(Xe){return ce(_e(Xe))}}function at(ce){var _e=-1,Xe=Array(ce.size);return ce.forEach(function(lt){Xe[++_e]=lt}),Xe}var Re=Array.prototype,je=Function.prototype,ot=Object.prototype,tt=me["__core-js_shared__"],vt=je.toString,St=ot.hasOwnProperty,Nt=(function(){var ce=/[^.]+$/.exec(tt&&tt.keys&&tt.keys.IE_PROTO||"");return ce?"Symbol(src)_1."+ce:""})(),an=ot.toString,Lt=RegExp("^"+vt.call(St).replace(re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_t=ye?me.Buffer:void 0,Et=me.Symbol,xe=me.Uint8Array,Ge=ot.propertyIsEnumerable,bt=Re.splice,Dt=Et?Et.toStringTag:void 0,ut=Object.getOwnPropertySymbols,yt=_t?_t.isBuffer:void 0,Ht=gt(Object.keys,Object),jt=Ii(me,"DataView"),Ce=Ii(me,"Map"),Ze=Ii(me,"Promise"),ft=Ii(me,"Set"),Tt=Ii(me,"WeakMap"),Mt=Ii(Object,"create"),en=ya(jt),Gt=ya(Ce),sn=ya(Ze),Rn=ya(ft),Yt=ya(Tt),Je=Et?Et.prototype:void 0,Fn=Je?Je.valueOf:void 0;function Rt(ce){var _e=-1,Xe=ce==null?0:ce.length;for(this.clear();++_e<Xe;){var lt=ce[_e];this.set(lt[0],lt[1])}}function ni(){this.__data__=Mt?Mt(null):{},this.size=0}function vo(ce){var _e=this.has(ce)&&delete this.__data__[ce];return this.size-=_e?1:0,_e}function Xt(ce){var _e=this.__data__;if(Mt){var Xe=_e[ce];return Xe===a?void 0:Xe}return St.call(_e,ce)?_e[ce]:void 0}function Pn(ce){var _e=this.__data__;return Mt?_e[ce]!==void 0:St.call(_e,ce)}function zo(ce,_e){var Xe=this.__data__;return this.size+=this.has(ce)?0:1,Xe[ce]=Mt&&_e===void 0?a:_e,this}Rt.prototype.clear=ni,Rt.prototype.delete=vo,Rt.prototype.get=Xt,Rt.prototype.has=Pn,Rt.prototype.set=zo;function mo(ce){var _e=-1,Xe=ce==null?0:ce.length;for(this.clear();++_e<Xe;){var lt=ce[_e];this.set(lt[0],lt[1])}}function ki(){this.__data__=[],this.size=0}function wr(ce){var _e=this.__data__,Xe=bi(_e,ce);if(Xe<0)return!1;var lt=_e.length-1;return Xe==lt?_e.pop():bt.call(_e,Xe,1),--this.size,!0}function it(ce){var _e=this.__data__,Xe=bi(_e,ce);return Xe<0?void 0:_e[Xe][1]}function Ee(ce){return bi(this.__data__,ce)>-1}function Ke(ce,_e){var Xe=this.__data__,lt=bi(Xe,ce);return lt<0?(++this.size,Xe.push([ce,_e])):Xe[lt][1]=_e,this}mo.prototype.clear=ki,mo.prototype.delete=wr,mo.prototype.get=it,mo.prototype.has=Ee,mo.prototype.set=Ke;function st(ce){var _e=-1,Xe=ce==null?0:ce.length;for(this.clear();++_e<Xe;){var lt=ce[_e];this.set(lt[0],lt[1])}}function on(){this.size=0,this.__data__={hash:new Rt,map:new(Ce||mo),string:new Rt}}function Zn(ce){var _e=uc(this,ce).delete(ce);return this.size-=_e?1:0,_e}function Ln(ce){return uc(this,ce).get(ce)}function rt(ce){return uc(this,ce).has(ce)}function vn(ce,_e){var Xe=uc(this,ce),lt=Xe.size;return Xe.set(ce,_e),this.size+=Xe.size==lt?0:1,this}st.prototype.clear=on,st.prototype.delete=Zn,st.prototype.get=Ln,st.prototype.has=rt,st.prototype.set=vn;function yn(ce){var _e=-1,Xe=ce==null?0:ce.length;for(this.__data__=new st;++_e<Xe;)this.add(ce[_e])}function gi(ce){return this.__data__.set(ce,a),this}function On(ce){return this.__data__.has(ce)}yn.prototype.add=yn.prototype.push=gi,yn.prototype.has=On;function oi(ce){var _e=this.__data__=new mo(ce);this.size=_e.size}function va(){this.__data__=new mo,this.size=0}function rc(ce){var _e=this.__data__,Xe=_e.delete(ce);return this.size=_e.size,Xe}function ac(ce){return this.__data__.get(ce)}function sc(ce){return this.__data__.has(ce)}function Ed(ce,_e){var Xe=this.__data__;if(Xe instanceof mo){var lt=Xe.__data__;if(!Ce||lt.length<i-1)return lt.push([ce,_e]),this.size=++Xe.size,this;Xe=this.__data__=new st(lt)}return Xe.set(ce,_e),this.size=Xe.size,this}oi.prototype.clear=va,oi.prototype.delete=rc,oi.prototype.get=ac,oi.prototype.has=sc,oi.prototype.set=Ed;function Ga(ce,_e){var Xe=wa(ce),lt=!Xe&&Ea(ce),Cn=!Xe&&!lt&&Ns(ce),Qt=!Xe&&!lt&&!Cn&&Aa(ce),qn=Xe||lt||Cn||Qt,Ko=qn?xt(ce.length,String):[],Fo=Ko.length;for(var ao in ce)St.call(ce,ao)&&!(qn&&(ao=="length"||Cn&&(ao=="offset"||ao=="parent")||Qt&&(ao=="buffer"||ao=="byteLength"||ao=="byteOffset")||vh(ao,Fo)))&&Ko.push(ao);return Ko}function bi(ce,_e){for(var Xe=ce.length;Xe--;)if(du(ce[Xe][0],_e))return Xe;return-1}function wd(ce,_e,Xe){var lt=_e(ce);return wa(ce)?lt:et(lt,Xe(ce))}function xl(ce){return ce==null?ce===void 0?U:A:Dt&&Dt in Object(ce)?wp(ce):Br(ce)}function su(ce){return Ta(ce)&&xl(ce)==y}function Sd(ce,_e,Xe,lt,Cn){return ce===_e?!0:ce==null||_e==null||!Ta(ce)&&!Ta(_e)?ce!==ce&&_e!==_e:lu(ce,_e,Xe,lt,Sd,Cn)}function lu(ce,_e,Xe,lt,Cn,Qt){var qn=wa(ce),Ko=wa(_e),Fo=qn?f:Qa(ce),ao=Ko?f:Qa(_e);Fo=Fo==y?N:Fo,ao=ao==y?N:ao;var ii=Fo==N,Bi=ao==N,No=Fo==ao;if(No&&Ns(ce)){if(!Ns(_e))return!1;qn=!0,ii=!1}if(No&&!ii)return Qt||(Qt=new oi),qn||Aa(ce)?lc(ce,_e,Xe,lt,Cn,Qt):_l(ce,_e,Fo,Xe,lt,Cn,Qt);if(!(Xe&E)){var er=ii&&St.call(ce,"__wrapped__"),tr=Bi&&St.call(_e,"__wrapped__");if(er||tr){var Wa=er?ce.value():ce,Tr=tr?_e.value():_e;return Qt||(Qt=new oi),Cn(Wa,Tr,Xe,lt,Qt)}}return No?(Qt||(Qt=new oi),cc(ce,_e,Xe,lt,Cn,Qt)):!1}function sv(ce){if(!dc(ce)||uu(ce))return!1;var _e=Bo(ce)?Lt:te;return _e.test(ya(ce))}function Ji(ce){return Ta(ce)&&Sa(ce.length)&&!!se[xl(ce)]}function cu(ce){if(!Sr(ce))return Ht(ce);var _e=[];for(var Xe in Object(ce))St.call(ce,Xe)&&Xe!="constructor"&&_e.push(Xe);return _e}function lc(ce,_e,Xe,lt,Cn,Qt){var qn=Xe&E,Ko=ce.length,Fo=_e.length;if(Ko!=Fo&&!(qn&&Fo>Ko))return!1;var ao=Qt.get(ce);if(ao&&Qt.get(_e))return ao==_e;var ii=-1,Bi=!0,No=Xe&p?new yn:void 0;for(Qt.set(ce,_e),Qt.set(_e,ce);++ii<Ko;){var er=ce[ii],tr=_e[ii];if(lt)var Wa=qn?lt(tr,er,ii,_e,ce,Qt):lt(er,tr,ii,ce,_e,Qt);if(Wa!==void 0){if(Wa)continue;Bi=!1;break}if(No){if(!mt(_e,function(Tr,Ya){if(!ze(No,Ya)&&(er===Tr||Cn(er,Tr,Xe,lt,Qt)))return No.push(Ya)})){Bi=!1;break}}else if(!(er===tr||Cn(er,tr,Xe,lt,Qt))){Bi=!1;break}}return Qt.delete(ce),Qt.delete(_e),Bi}function _l(ce,_e,Xe,lt,Cn,Qt,qn){switch(Xe){case P:if(ce.byteLength!=_e.byteLength||ce.byteOffset!=_e.byteOffset)return!1;ce=ce.buffer,_e=_e.buffer;case X:return!(ce.byteLength!=_e.byteLength||!Qt(new xe(ce),new xe(_e)));case c:case u:case T:return du(+ce,+_e);case d:return ce.name==_e.name&&ce.message==_e.message;case R:case $:return ce==_e+"";case S:var Ko=ct;case C:var Fo=lt&E;if(Ko||(Ko=at),ce.size!=_e.size&&!Fo)return!1;var ao=qn.get(ce);if(ao)return ao==_e;lt|=p,qn.set(ce,_e);var ii=lc(Ko(ce),Ko(_e),lt,Cn,Qt,qn);return qn.delete(ce),ii;case F:if(Fn)return Fn.call(ce)==Fn.call(_e)}return!1}function cc(ce,_e,Xe,lt,Cn,Qt){var qn=Xe&E,Ko=Td(ce),Fo=Ko.length,ao=Td(_e),ii=ao.length;if(Fo!=ii&&!qn)return!1;for(var Bi=Fo;Bi--;){var No=Ko[Bi];if(!(qn?No in _e:St.call(_e,No)))return!1}var er=Qt.get(ce);if(er&&Qt.get(_e))return er==_e;var tr=!0;Qt.set(ce,_e),Qt.set(_e,ce);for(var Wa=qn;++Bi<Fo;){No=Ko[Bi];var Tr=ce[No],Ya=_e[No];if(lt)var Sh=qn?lt(Ya,Tr,No,_e,ce,Qt):lt(Tr,Ya,No,ce,_e,Qt);if(!(Sh===void 0?Tr===Ya||Cn(Tr,Ya,Xe,lt,Qt):Sh)){tr=!1;break}Wa||(Wa=No=="constructor")}if(tr&&!Wa){var xa=ce.constructor,_a=_e.constructor;xa!=_a&&"constructor"in ce&&"constructor"in _e&&!(typeof xa=="function"&&xa instanceof xa&&typeof _a=="function"&&_a instanceof _a)&&(tr=!1)}return Qt.delete(ce),Qt.delete(_e),tr}function Td(ce){return wd(ce,Eh,Sp)}function uc(ce,_e){var Xe=ce.__data__;return lv(_e)?Xe[typeof _e=="string"?"string":"hash"]:Xe.map}function Ii(ce,_e){var Xe=nt(ce,_e);return sv(Xe)?Xe:void 0}function wp(ce){var _e=St.call(ce,Dt),Xe=ce[Dt];try{ce[Dt]=void 0;var lt=!0}catch{}var Cn=an.call(ce);return lt&&(_e?ce[Dt]=Xe:delete ce[Dt]),Cn}var Sp=ut?function(ce){return ce==null?[]:(ce=Object(ce),qe(ut(ce),function(_e){return Ge.call(ce,_e)}))}:Ad,Qa=xl;(jt&&Qa(new jt(new ArrayBuffer(1)))!=P||Ce&&Qa(new Ce)!=S||Ze&&Qa(Ze.resolve())!=O||ft&&Qa(new ft)!=C||Tt&&Qa(new Tt)!=j)&&(Qa=function(ce){var _e=xl(ce),Xe=_e==N?ce.constructor:void 0,lt=Xe?ya(Xe):"";if(lt)switch(lt){case en:return P;case Gt:return S;case sn:return O;case Rn:return C;case Yt:return j}return _e});function vh(ce,_e){return _e=_e??g,!!_e&&(typeof ce=="number"||ae.test(ce))&&ce>-1&&ce%1==0&&ce<_e}function lv(ce){var _e=typeof ce;return _e=="string"||_e=="number"||_e=="symbol"||_e=="boolean"?ce!=="__proto__":ce===null}function uu(ce){return!!Nt&&Nt in ce}function Sr(ce){var _e=ce&&ce.constructor,Xe=typeof _e=="function"&&_e.prototype||ot;return ce===Xe}function Br(ce){return an.call(ce)}function ya(ce){if(ce!=null){try{return vt.call(ce)}catch{}try{return ce+""}catch{}}return""}function du(ce,_e){return ce===_e||ce!==ce&&_e!==_e}var Ea=su((function(){return arguments})())?su:function(ce){return Ta(ce)&&St.call(ce,"callee")&&!Ge.call(ce,"callee")},wa=Array.isArray;function fu(ce){return ce!=null&&Sa(ce.length)&&!Bo(ce)}var Ns=yt||wh;function yh(ce,_e){return Sd(ce,_e)}function Bo(ce){if(!dc(ce))return!1;var _e=xl(ce);return _e==h||_e==m||_e==b||_e==D}function Sa(ce){return typeof ce=="number"&&ce>-1&&ce%1==0&&ce<=g}function dc(ce){var _e=typeof ce;return ce!=null&&(_e=="object"||_e=="function")}function Ta(ce){return ce!=null&&typeof ce=="object"}var Aa=De?$t(De):Ji;function Eh(ce){return fu(ce)?Ga(ce):cu(ce)}function Ad(){return[]}function wh(){return!1}t.exports=yh})(oE,oE.exports)),oE.exports}var Jl={},ZI;function m6(){if(ZI)return Jl;ZI=1,Object.defineProperty(Jl,"__esModule",{value:!0}),Jl.getAceInstance=Jl.debounce=Jl.editorEvents=Jl.editorOptions=void 0;var t=["minLines","maxLines","readOnly","highlightActiveLine","tabSize","enableBasicAutocompletion","enableLiveAutocompletion","enableSnippets"];Jl.editorOptions=t;var e=["onChange","onFocus","onInput","onBlur","onCopy","onPaste","onSelectionChange","onCursorChange","onScroll","handleOptions","updateRef"];Jl.editorEvents=e;var i=function(){var E;return typeof window>"u"?(qc.window={},E=EE(),delete qc.window):window.ace?(E=window.ace,E.acequire=window.ace.require||window.ace.acequire):E=EE(),E};Jl.getAceInstance=i;var a=function(E,p){var g=null;return function(){var y=this,f=arguments;clearTimeout(g),g=setTimeout(function(){E.apply(y,f)},p)}};return Jl.debounce=a,Jl}var JI;function LP(){if(JI)return Yf;JI=1;var t=Yf&&Yf.__extends||(function(){var b=function(c,u){return b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,h){d.__proto__=h}||function(d,h){for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&(d[m]=h[m])},b(c,u)};return function(c,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");b(c,u);function d(){this.constructor=c}c.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)}})(),e=Yf&&Yf.__assign||function(){return e=Object.assign||function(b){for(var c,u=1,d=arguments.length;u<d;u++){c=arguments[u];for(var h in c)Object.prototype.hasOwnProperty.call(c,h)&&(b[h]=c[h])}return b},e.apply(this,arguments)};Object.defineProperty(Yf,"__esModule",{value:!0});var i=EE(),a=kC(),E=Y,p=h6(),g=m6(),y=(0,g.getAceInstance)(),f=(function(b){t(c,b);function c(u){var d=b.call(this,u)||this;return g.editorEvents.forEach(function(h){d[h]=d[h].bind(d)}),d.debounce=g.debounce,d}return c.prototype.isInShadow=function(u){for(var d=u&&u.parentNode;d;){if(d.toString()==="[object ShadowRoot]")return!0;d=d.parentNode}return!1},c.prototype.componentDidMount=function(){var u=this,d=this.props,h=d.className,m=d.onBeforeLoad,S=d.onValidate,T=d.mode,A=d.focus,N=d.theme,O=d.fontSize,D=d.lineHeight,R=d.value,C=d.defaultValue,$=d.showGutter,F=d.wrapEnabled,U=d.showPrintMargin,j=d.scrollMargin,X=j===void 0?[0,0,0,0]:j,P=d.keyboardHandler,B=d.onLoad,k=d.commands,M=d.annotations,I=d.markers,W=d.placeholder;this.editor=y.edit(this.refEditor),m&&m(y);for(var Q=Object.keys(this.props.editorProps),J=0;J<Q.length;J++)this.editor[Q[J]]=this.props.editorProps[Q[J]];this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),this.editor.renderer.setScrollMargin(X[0],X[1],X[2],X[3]),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.getSession().setMode(typeof T=="string"?"ace/mode/".concat(T):T),N&&N!==""&&this.editor.setTheme("ace/theme/".concat(N)),this.editor.setFontSize(typeof O=="number"?"".concat(O,"px"):O),D&&(this.editor.container.style.lineHeight=typeof D=="number"?"".concat(D,"px"):"".concat(D),this.editor.renderer.updateFontSize()),this.editor.getSession().setValue(C||R||""),this.props.navigateToFileEnd&&this.editor.navigateFileEnd(),this.editor.renderer.setShowGutter($),this.editor.getSession().setUseWrapMode(F),this.editor.setShowPrintMargin(U),this.editor.on("focus",this.onFocus),this.editor.on("blur",this.onBlur),this.editor.on("copy",this.onCopy),this.editor.on("paste",this.onPaste),this.editor.on("change",this.onChange),this.editor.on("input",this.onInput),W&&this.updatePlaceholder(),this.editor.getSession().selection.on("changeSelection",this.onSelectionChange),this.editor.getSession().selection.on("changeCursor",this.onCursorChange),S&&this.editor.getSession().on("changeAnnotation",function(){var Z=u.editor.getSession().getAnnotations();u.props.onValidate(Z)}),this.editor.session.on("changeScrollTop",this.onScroll),this.editor.getSession().setAnnotations(M||[]),I&&I.length>0&&this.handleMarkers(I);var K=this.editor.$options;g.editorOptions.forEach(function(Z){K.hasOwnProperty(Z)?u.editor.setOption(Z,u.props[Z]):u.props[Z]&&console.warn("ReactAce: editor option ".concat(Z," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}),this.handleOptions(this.props),Array.isArray(k)&&k.forEach(function(Z){typeof Z.exec=="string"?u.editor.commands.bindKey(Z.bindKey,Z.exec):u.editor.commands.addCommand(Z)}),P&&this.editor.setKeyboardHandler("ace/keyboard/"+P),h&&(this.refEditor.className+=" "+h),B&&B(this.editor),this.editor.resize(),A&&this.editor.focus()},c.prototype.componentDidUpdate=function(u){for(var d=u,h=this.props,m=0;m<g.editorOptions.length;m++){var S=g.editorOptions[m];h[S]!==d[S]&&this.editor.setOption(S,h[S])}if(h.className!==d.className){var T=this.refEditor.className,A=T.trim().split(" "),N=d.className.trim().split(" ");N.forEach(function(R){var C=A.indexOf(R);A.splice(C,1)}),this.refEditor.className=" "+h.className+" "+A.join(" ")}var O=this.editor&&h.value!=null&&this.editor.getValue()!==h.value;if(O){this.silent=!0;var D=this.editor.session.selection.toJSON();this.editor.setValue(h.value,h.cursorStart),this.editor.session.selection.fromJSON(D),this.silent=!1}h.placeholder!==d.placeholder&&this.updatePlaceholder(),h.mode!==d.mode&&this.editor.getSession().setMode(typeof h.mode=="string"?"ace/mode/".concat(h.mode):h.mode),h.theme!==d.theme&&this.editor.setTheme("ace/theme/"+h.theme),h.keyboardHandler!==d.keyboardHandler&&(h.keyboardHandler?this.editor.setKeyboardHandler("ace/keyboard/"+h.keyboardHandler):this.editor.setKeyboardHandler(null)),h.fontSize!==d.fontSize&&this.editor.setFontSize(typeof h.fontSize=="number"?"".concat(h.fontSize,"px"):h.fontSize),h.lineHeight!==d.lineHeight&&(this.editor.container.style.lineHeight=typeof h.lineHeight=="number"?"".concat(h.lineHeight,"px"):h.lineHeight,this.editor.renderer.updateFontSize()),h.wrapEnabled!==d.wrapEnabled&&this.editor.getSession().setUseWrapMode(h.wrapEnabled),h.showPrintMargin!==d.showPrintMargin&&this.editor.setShowPrintMargin(h.showPrintMargin),h.showGutter!==d.showGutter&&this.editor.renderer.setShowGutter(h.showGutter),p(h.setOptions,d.setOptions)||this.handleOptions(h),(O||!p(h.annotations,d.annotations))&&this.editor.getSession().setAnnotations(h.annotations||[]),!p(h.markers,d.markers)&&Array.isArray(h.markers)&&this.handleMarkers(h.markers),p(h.scrollMargin,d.scrollMargin)||this.handleScrollMargins(h.scrollMargin),(u.height!==this.props.height||u.width!==this.props.width)&&this.editor.resize(),this.props.focus&&!u.focus&&this.editor.focus()},c.prototype.handleScrollMargins=function(u){u===void 0&&(u=[0,0,0,0]),this.editor.renderer.setScrollMargin(u[0],u[1],u[2],u[3])},c.prototype.componentWillUnmount=function(){this.editor&&(this.editor.destroy(),this.editor=null)},c.prototype.onChange=function(u){if(this.editor&&this.props.onChange&&!this.silent){var d=this.editor.getValue();this.props.onChange(d,u)}},c.prototype.onSelectionChange=function(u){if(this.props.onSelectionChange){var d=this.editor.getSelection();this.props.onSelectionChange(d,u)}},c.prototype.onCursorChange=function(u){if(this.props.onCursorChange){var d=this.editor.getSelection();this.props.onCursorChange(d,u)}},c.prototype.onInput=function(u){this.props.onInput&&this.props.onInput(u),this.props.placeholder&&this.updatePlaceholder()},c.prototype.onFocus=function(u){this.props.onFocus&&this.props.onFocus(u,this.editor)},c.prototype.onBlur=function(u){this.props.onBlur&&this.props.onBlur(u,this.editor)},c.prototype.onCopy=function(u){var d=u.text;this.props.onCopy&&this.props.onCopy(d)},c.prototype.onPaste=function(u){var d=u.text;this.props.onPaste&&this.props.onPaste(d)},c.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},c.prototype.handleOptions=function(u){for(var d=Object.keys(u.setOptions),h=0;h<d.length;h++)this.editor.setOption(d[h],u.setOptions[d[h]])},c.prototype.handleMarkers=function(u){var d=this,h=this.editor.getSession().getMarkers(!0);for(var m in h)h.hasOwnProperty(m)&&this.editor.getSession().removeMarker(h[m].id);h=this.editor.getSession().getMarkers(!1);for(var m in h)h.hasOwnProperty(m)&&h[m].clazz!=="ace_active-line"&&h[m].clazz!=="ace_selected-word"&&this.editor.getSession().removeMarker(h[m].id);u.forEach(function(S){var T=S.startRow,A=S.startCol,N=S.endRow,O=S.endCol,D=S.className,R=S.type,C=S.inFront,$=C===void 0?!1:C,F=new i.Range(T,A,N,O);d.editor.getSession().addMarker(F,D,R,$)})},c.prototype.updatePlaceholder=function(){var u=this.editor,d=this.props.placeholder,h=!u.session.getValue().length,m=u.renderer.placeholderNode;!h&&m?(u.renderer.scroller.removeChild(u.renderer.placeholderNode),u.renderer.placeholderNode=null):h&&!m?(m=u.renderer.placeholderNode=document.createElement("div"),m.textContent=d||"",m.className="ace_comment ace_placeholder",m.style.padding="0 9px",m.style.position="absolute",m.style.zIndex="3",u.renderer.scroller.appendChild(m)):h&&m&&(m.textContent=d)},c.prototype.updateRef=function(u){this.refEditor=u},c.prototype.render=function(){var u=this.props,d=u.name,h=u.width,m=u.height,S=u.style,T=e({width:h,height:m},S);return E.createElement("div",{ref:this.updateRef,id:d,style:T})},c.propTypes={mode:a.oneOfType([a.string,a.object]),focus:a.bool,theme:a.string,name:a.string,className:a.string,height:a.string,width:a.string,fontSize:a.oneOfType([a.number,a.string]),lineHeight:a.oneOfType([a.number,a.string]),showGutter:a.bool,onChange:a.func,onCopy:a.func,onPaste:a.func,onFocus:a.func,onInput:a.func,onBlur:a.func,onScroll:a.func,value:a.string,defaultValue:a.string,onLoad:a.func,onSelectionChange:a.func,onCursorChange:a.func,onBeforeLoad:a.func,onValidate:a.func,minLines:a.number,maxLines:a.number,readOnly:a.bool,highlightActiveLine:a.bool,tabSize:a.number,showPrintMargin:a.bool,cursorStart:a.number,debounceChangePeriod:a.number,editorProps:a.object,setOptions:a.object,style:a.object,scrollMargin:a.array,annotations:a.array,markers:a.array,keyboardHandler:a.string,wrapEnabled:a.bool,enableSnippets:a.bool,enableBasicAutocompletion:a.oneOfType([a.bool,a.array]),enableLiveAutocompletion:a.oneOfType([a.bool,a.array]),navigateToFileEnd:a.bool,commands:a.array,placeholder:a.string},c.defaultProps={name:"ace-editor",focus:!1,mode:"",theme:"",height:"500px",width:"500px",fontSize:12,enableSnippets:!1,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,placeholder:null,navigateToFileEnd:!0},c})(E.Component);return Yf.default=f,Yf}var Nb={},Xf={},Rx={exports:{}},e3;function OP(){return e3||(e3=1,(function(t,e){ace.define("ace/split",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/editor","ace/virtual_renderer","ace/edit_session"],function(i,a,E){var p=i("./lib/oop");i("./lib/lang");var g=i("./lib/event_emitter").EventEmitter,y=i("./editor").Editor,f=i("./virtual_renderer").VirtualRenderer,b=i("./edit_session").EditSession,c;c=function(u,d,h){this.BELOW=1,this.BESIDE=0,this.$container=u,this.$theme=d,this.$splits=0,this.$editorCSS="",this.$editors=[],this.$orientation=this.BESIDE,this.setSplits(h||1),this.$cEditor=this.$editors[0],this.on("focus",(function(m){this.$cEditor=m}).bind(this))},(function(){p.implement(this,g),this.$createEditor=function(){var u=document.createElement("div");u.className=this.$editorCSS,u.style.cssText="position: absolute; top:0px; bottom:0px",this.$container.appendChild(u);var d=new y(new f(u,this.$theme));return d.on("focus",(function(){this._emit("focus",d)}).bind(this)),this.$editors.push(d),d.setFontSize(this.$fontSize),d},this.setSplits=function(u){var d;if(u<1)throw"The number of splits have to be > 0!";if(u!=this.$splits){if(u>this.$splits){for(;this.$splits<this.$editors.length&&this.$splits<u;)d=this.$editors[this.$splits],this.$container.appendChild(d.container),d.setFontSize(this.$fontSize),this.$splits++;for(;this.$splits<u;)this.$createEditor(),this.$splits++}else for(;this.$splits>u;)d=this.$editors[this.$splits-1],this.$container.removeChild(d.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(u){return this.$editors[u]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(u){this.$editors.forEach(function(d){d.setTheme(u)})},this.setKeyboardHandler=function(u){this.$editors.forEach(function(d){d.setKeyboardHandler(u)})},this.forEach=function(u,d){this.$editors.forEach(u,d)},this.$fontSize="",this.setFontSize=function(u){this.$fontSize=u,this.forEach(function(d){d.setFontSize(u)})},this.$cloneSession=function(u){var d=new b(u.getDocument(),u.getMode()),h=u.getUndoManager();return d.setUndoManager(h),d.setTabSize(u.getTabSize()),d.setUseSoftTabs(u.getUseSoftTabs()),d.setOverwrite(u.getOverwrite()),d.setBreakpoints(u.getBreakpoints()),d.setUseWrapMode(u.getUseWrapMode()),d.setUseWorker(u.getUseWorker()),d.setWrapLimitRange(u.$wrapLimitRange.min,u.$wrapLimitRange.max),d.$foldData=u.$cloneFoldData(),d},this.setSession=function(u,d){var h;d==null?h=this.$cEditor:h=this.$editors[d];var m=this.$editors.some(function(S){return S.session===u});return m&&(u=this.$cloneSession(u)),h.setSession(u),u},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(u){this.$orientation!=u&&(this.$orientation=u,this.resize())},this.resize=function(){var u=this.$container.clientWidth,d=this.$container.clientHeight,h;if(this.$orientation==this.BESIDE)for(var m=u/this.$splits,S=0;S<this.$splits;S++)h=this.$editors[S],h.container.style.width=m+"px",h.container.style.top="0px",h.container.style.left=S*m+"px",h.container.style.height=d+"px",h.resize();else for(var T=d/this.$splits,S=0;S<this.$splits;S++)h=this.$editors[S],h.container.style.width=u+"px",h.container.style.top=S*T+"px",h.container.style.left="0px",h.container.style.height=T+"px",h.resize()}}).call(c.prototype),a.Split=c}),ace.define("ace/ext/split",["require","exports","module","ace/ext/split","ace/split"],function(i,a,E){E.exports=i("../split")}),(function(){ace.require(["ace/ext/split"],function(i){t&&(t.exports=i)})})()})(Rx)),Rx.exports}var Lx,t3;function DP(){if(t3)return Lx;t3=1;var t="Expected a function",e="__lodash_hash_undefined__",i="[object Function]",a="[object GeneratorFunction]",E="[object Symbol]",p=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,g=/^\w*$/,y=/^\./,f=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,b=/[\\^$.*+?()[\]{}|]/g,c=/\\(\\)?/g,u=/^\[object .+?Constructor\]$/,d=typeof qc=="object"&&qc&&qc.Object===Object&&qc,h=typeof self=="object"&&self&&self.Object===Object&&self,m=d||h||Function("return this")();function S(xe,Ge){return xe==null?void 0:xe[Ge]}function T(xe){var Ge=!1;if(xe!=null&&typeof xe.toString!="function")try{Ge=!!(xe+"")}catch{}return Ge}var A=Array.prototype,N=Function.prototype,O=Object.prototype,D=m["__core-js_shared__"],R=(function(){var xe=/[^.]+$/.exec(D&&D.keys&&D.keys.IE_PROTO||"");return xe?"Symbol(src)_1."+xe:""})(),C=N.toString,$=O.hasOwnProperty,F=O.toString,U=RegExp("^"+C.call($).replace(b,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),j=m.Symbol,X=A.splice,P=ze(m,"Map"),B=ze(Object,"create"),k=j?j.prototype:void 0,M=k?k.toString:void 0;function I(xe){var Ge=-1,bt=xe?xe.length:0;for(this.clear();++Ge<bt;){var Dt=xe[Ge];this.set(Dt[0],Dt[1])}}function W(){this.__data__=B?B(null):{}}function Q(xe){return this.has(xe)&&delete this.__data__[xe]}function J(xe){var Ge=this.__data__;if(B){var bt=Ge[xe];return bt===e?void 0:bt}return $.call(Ge,xe)?Ge[xe]:void 0}function K(xe){var Ge=this.__data__;return B?Ge[xe]!==void 0:$.call(Ge,xe)}function Z(xe,Ge){var bt=this.__data__;return bt[xe]=B&&Ge===void 0?e:Ge,this}I.prototype.clear=W,I.prototype.delete=Q,I.prototype.get=J,I.prototype.has=K,I.prototype.set=Z;function re(xe){var Ge=-1,bt=xe?xe.length:0;for(this.clear();++Ge<bt;){var Dt=xe[Ge];this.set(Dt[0],Dt[1])}}function te(){this.__data__=[]}function ae(xe){var Ge=this.__data__,bt=De(Ge,xe);if(bt<0)return!1;var Dt=Ge.length-1;return bt==Dt?Ge.pop():X.call(Ge,bt,1),!0}function se(xe){var Ge=this.__data__,bt=De(Ge,xe);return bt<0?void 0:Ge[bt][1]}function ie(xe){return De(this.__data__,xe)>-1}function ue(xe,Ge){var bt=this.__data__,Dt=De(bt,xe);return Dt<0?bt.push([xe,Ge]):bt[Dt][1]=Ge,this}re.prototype.clear=te,re.prototype.delete=ae,re.prototype.get=se,re.prototype.has=ie,re.prototype.set=ue;function me(xe){var Ge=-1,bt=xe?xe.length:0;for(this.clear();++Ge<bt;){var Dt=xe[Ge];this.set(Dt[0],Dt[1])}}function ve(){this.__data__={hash:new I,map:new(P||re),string:new I}}function pe(xe){return $t(this,xe).delete(xe)}function ye(xe){return $t(this,xe).get(xe)}function de(xe){return $t(this,xe).has(xe)}function Ve(xe,Ge){return $t(this,xe).set(xe,Ge),this}me.prototype.clear=ve,me.prototype.delete=pe,me.prototype.get=ye,me.prototype.has=de,me.prototype.set=Ve;function De(xe,Ge){for(var bt=xe.length;bt--;)if(tt(xe[bt][0],Ge))return bt;return-1}function qe(xe,Ge){Ge=nt(Ge,xe)?[Ge]:xt(Ge);for(var bt=0,Dt=Ge.length;xe!=null&&bt<Dt;)xe=xe[Re(Ge[bt++])];return bt&&bt==Dt?xe:void 0}function et(xe){if(!Nt(xe)||gt(xe))return!1;var Ge=St(xe)||T(xe)?U:u;return Ge.test(je(xe))}function mt(xe){if(typeof xe=="string")return xe;if(Lt(xe))return M?M.call(xe):"";var Ge=xe+"";return Ge=="0"&&1/xe==-1/0?"-0":Ge}function xt(xe){return vt(xe)?xe:at(xe)}function $t(xe,Ge){var bt=xe.__data__;return ct(Ge)?bt[typeof Ge=="string"?"string":"hash"]:bt.map}function ze(xe,Ge){var bt=S(xe,Ge);return et(bt)?bt:void 0}function nt(xe,Ge){if(vt(xe))return!1;var bt=typeof xe;return bt=="number"||bt=="symbol"||bt=="boolean"||xe==null||Lt(xe)?!0:g.test(xe)||!p.test(xe)||Ge!=null&&xe in Object(Ge)}function ct(xe){var Ge=typeof xe;return Ge=="string"||Ge=="number"||Ge=="symbol"||Ge=="boolean"?xe!=="__proto__":xe===null}function gt(xe){return!!R&&R in xe}var at=ot(function(xe){xe=_t(xe);var Ge=[];return y.test(xe)&&Ge.push(""),xe.replace(f,function(bt,Dt,ut,yt){Ge.push(ut?yt.replace(c,"$1"):Dt||bt)}),Ge});function Re(xe){if(typeof xe=="string"||Lt(xe))return xe;var Ge=xe+"";return Ge=="0"&&1/xe==-1/0?"-0":Ge}function je(xe){if(xe!=null){try{return C.call(xe)}catch{}try{return xe+""}catch{}}return""}function ot(xe,Ge){if(typeof xe!="function"||Ge&&typeof Ge!="function")throw new TypeError(t);var bt=function(){var Dt=arguments,ut=Ge?Ge.apply(this,Dt):Dt[0],yt=bt.cache;if(yt.has(ut))return yt.get(ut);var Ht=xe.apply(this,Dt);return bt.cache=yt.set(ut,Ht),Ht};return bt.cache=new(ot.Cache||me),bt}ot.Cache=me;function tt(xe,Ge){return xe===Ge||xe!==xe&&Ge!==Ge}var vt=Array.isArray;function St(xe){var Ge=Nt(xe)?F.call(xe):"";return Ge==i||Ge==a}function Nt(xe){var Ge=typeof xe;return!!xe&&(Ge=="object"||Ge=="function")}function an(xe){return!!xe&&typeof xe=="object"}function Lt(xe){return typeof xe=="symbol"||an(xe)&&F.call(xe)==E}function _t(xe){return xe==null?"":mt(xe)}function Et(xe,Ge,bt){var Dt=xe==null?void 0:qe(xe,Ge);return Dt===void 0?bt:Dt}return Lx=Et,Lx}var n3;function p6(){if(n3)return Xf;n3=1;var t=Xf&&Xf.__extends||(function(){var u=function(d,h){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,S){m.__proto__=S}||function(m,S){for(var T in S)Object.prototype.hasOwnProperty.call(S,T)&&(m[T]=S[T])},u(d,h)};return function(d,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");u(d,h);function m(){this.constructor=d}d.prototype=h===null?Object.create(h):(m.prototype=h.prototype,new m)}})(),e=Xf&&Xf.__assign||function(){return e=Object.assign||function(u){for(var d,h=1,m=arguments.length;h<m;h++){d=arguments[h];for(var S in d)Object.prototype.hasOwnProperty.call(d,S)&&(u[S]=d[S])}return u},e.apply(this,arguments)};Object.defineProperty(Xf,"__esModule",{value:!0});var i=m6(),a=(0,i.getAceInstance)(),E=EE(),p=OP(),g=kC(),y=Y,f=h6(),b=DP(),c=(function(u){t(d,u);function d(h){var m=u.call(this,h)||this;return i.editorEvents.forEach(function(S){m[S]=m[S].bind(m)}),m.debounce=i.debounce,m}return d.prototype.isInShadow=function(h){for(var m=h&&h.parentNode;m;){if(m.toString()==="[object ShadowRoot]")return!0;m=m.parentNode}return!1},d.prototype.componentDidMount=function(){var h=this,m=this.props,S=m.className,T=m.onBeforeLoad,A=m.mode,N=m.focus,O=m.theme,D=m.fontSize,R=m.value,C=m.defaultValue,$=m.cursorStart,F=m.showGutter,U=m.wrapEnabled,j=m.showPrintMargin,X=m.scrollMargin,P=X===void 0?[0,0,0,0]:X,B=m.keyboardHandler,k=m.onLoad,M=m.commands,I=m.annotations,W=m.markers,Q=m.splits;this.editor=a.edit(this.refEditor),this.isInShadow(this.refEditor)&&this.editor.renderer.attachToShadowRoot(),this.editor.setTheme("ace/theme/".concat(O)),T&&T(a);var J=Object.keys(this.props.editorProps),K=new p.Split(this.editor.container,"ace/theme/".concat(O),Q);this.editor.env.split=K,this.splitEditor=K.getEditor(0),this.split=K,this.editor.setShowPrintMargin(!1),this.editor.renderer.setShowGutter(!1);var Z=this.splitEditor.$options;this.props.debounceChangePeriod&&(this.onChange=this.debounce(this.onChange,this.props.debounceChangePeriod)),K.forEach(function(te,ae){for(var se=0;se<J.length;se++)te[J[se]]=h.props.editorProps[J[se]];var ie=b(C,ae),ue=b(R,ae,"");te.session.setUndoManager(new a.UndoManager),te.setTheme("ace/theme/".concat(O)),te.renderer.setScrollMargin(P[0],P[1],P[2],P[3]),te.getSession().setMode("ace/mode/".concat(A)),te.setFontSize(D),te.renderer.setShowGutter(F),te.getSession().setUseWrapMode(U),te.setShowPrintMargin(j),te.on("focus",h.onFocus),te.on("blur",h.onBlur),te.on("input",h.onInput),te.on("copy",h.onCopy),te.on("paste",h.onPaste),te.on("change",h.onChange),te.getSession().selection.on("changeSelection",h.onSelectionChange),te.getSession().selection.on("changeCursor",h.onCursorChange),te.session.on("changeScrollTop",h.onScroll),te.setValue(ie===void 0?ue:ie,$);var me=b(I,ae,[]),ve=b(W,ae,[]);te.getSession().setAnnotations(me),ve&&ve.length>0&&h.handleMarkers(ve,te);for(var se=0;se<i.editorOptions.length;se++){var pe=i.editorOptions[se];Z.hasOwnProperty(pe)?te.setOption(pe,h.props[pe]):h.props[pe]&&console.warn("ReaceAce: editor option ".concat(pe," was activated but not found. Did you need to import a related tool or did you possibly mispell the option?"))}h.handleOptions(h.props,te),Array.isArray(M)&&M.forEach(function(ye){typeof ye.exec=="string"?te.commands.bindKey(ye.bindKey,ye.exec):te.commands.addCommand(ye)}),B&&te.setKeyboardHandler("ace/keyboard/"+B)}),S&&(this.refEditor.className+=" "+S),N&&this.splitEditor.focus();var re=this.editor.env.split;re.setOrientation(this.props.orientation==="below"?re.BELOW:re.BESIDE),re.resize(!0),k&&k(re)},d.prototype.componentDidUpdate=function(h){var m=this,S=h,T=this.props,A=this.editor.env.split;if(T.splits!==S.splits&&A.setSplits(T.splits),T.orientation!==S.orientation&&A.setOrientation(T.orientation==="below"?A.BELOW:A.BESIDE),A.forEach(function(R,C){T.mode!==S.mode&&R.getSession().setMode("ace/mode/"+T.mode),T.keyboardHandler!==S.keyboardHandler&&(T.keyboardHandler?R.setKeyboardHandler("ace/keyboard/"+T.keyboardHandler):R.setKeyboardHandler(null)),T.fontSize!==S.fontSize&&R.setFontSize(T.fontSize),T.wrapEnabled!==S.wrapEnabled&&R.getSession().setUseWrapMode(T.wrapEnabled),T.showPrintMargin!==S.showPrintMargin&&R.setShowPrintMargin(T.showPrintMargin),T.showGutter!==S.showGutter&&R.renderer.setShowGutter(T.showGutter);for(var $=0;$<i.editorOptions.length;$++){var F=i.editorOptions[$];T[F]!==S[F]&&R.setOption(F,T[F])}f(T.setOptions,S.setOptions)||m.handleOptions(T,R);var U=b(T.value,C,"");if(R.getValue()!==U){m.silent=!0;var j=R.session.selection.toJSON();R.setValue(U,T.cursorStart),R.session.selection.fromJSON(j),m.silent=!1}var X=b(T.annotations,C,[]),P=b(S.annotations,C,[]);f(X,P)||R.getSession().setAnnotations(X);var B=b(T.markers,C,[]),k=b(S.markers,C,[]);!f(B,k)&&Array.isArray(B)&&m.handleMarkers(B,R)}),T.className!==S.className){var N=this.refEditor.className,O=N.trim().split(" "),D=S.className.trim().split(" ");D.forEach(function(R){var C=O.indexOf(R);O.splice(C,1)}),this.refEditor.className=" "+T.className+" "+O.join(" ")}T.theme!==S.theme&&A.setTheme("ace/theme/"+T.theme),T.focus&&!S.focus&&this.splitEditor.focus(),(T.height!==this.props.height||T.width!==this.props.width)&&this.editor.resize()},d.prototype.componentWillUnmount=function(){this.editor.destroy(),this.editor=null},d.prototype.onChange=function(h){if(this.props.onChange&&!this.silent){var m=[];this.editor.env.split.forEach(function(S){m.push(S.getValue())}),this.props.onChange(m,h)}},d.prototype.onSelectionChange=function(h){if(this.props.onSelectionChange){var m=[];this.editor.env.split.forEach(function(S){m.push(S.getSelection())}),this.props.onSelectionChange(m,h)}},d.prototype.onCursorChange=function(h){if(this.props.onCursorChange){var m=[];this.editor.env.split.forEach(function(S){m.push(S.getSelection())}),this.props.onCursorChange(m,h)}},d.prototype.onFocus=function(h){this.props.onFocus&&this.props.onFocus(h)},d.prototype.onInput=function(h){this.props.onInput&&this.props.onInput(h)},d.prototype.onBlur=function(h){this.props.onBlur&&this.props.onBlur(h)},d.prototype.onCopy=function(h){this.props.onCopy&&this.props.onCopy(h)},d.prototype.onPaste=function(h){this.props.onPaste&&this.props.onPaste(h)},d.prototype.onScroll=function(){this.props.onScroll&&this.props.onScroll(this.editor)},d.prototype.handleOptions=function(h,m){for(var S=Object.keys(h.setOptions),T=0;T<S.length;T++)m.setOption(S[T],h.setOptions[S[T]])},d.prototype.handleMarkers=function(h,m){var S=m.getSession().getMarkers(!0);for(var T in S)S.hasOwnProperty(T)&&m.getSession().removeMarker(S[T].id);S=m.getSession().getMarkers(!1);for(var T in S)S.hasOwnProperty(T)&&m.getSession().removeMarker(S[T].id);h.forEach(function(A){var N=A.startRow,O=A.startCol,D=A.endRow,R=A.endCol,C=A.className,$=A.type,F=A.inFront,U=F===void 0?!1:F,j=new E.Range(N,O,D,R);m.getSession().addMarker(j,C,$,U)})},d.prototype.updateRef=function(h){this.refEditor=h},d.prototype.render=function(){var h=this.props,m=h.name,S=h.width,T=h.height,A=h.style,N=e({width:S,height:T},A);return y.createElement("div",{ref:this.updateRef,id:m,style:N})},d.propTypes={className:g.string,debounceChangePeriod:g.number,defaultValue:g.arrayOf(g.string),focus:g.bool,fontSize:g.oneOfType([g.number,g.string]),height:g.string,mode:g.string,name:g.string,onBlur:g.func,onChange:g.func,onCopy:g.func,onFocus:g.func,onInput:g.func,onLoad:g.func,onPaste:g.func,onScroll:g.func,orientation:g.string,showGutter:g.bool,splits:g.number,theme:g.string,value:g.arrayOf(g.string),width:g.string,onSelectionChange:g.func,onCursorChange:g.func,onBeforeLoad:g.func,minLines:g.number,maxLines:g.number,readOnly:g.bool,highlightActiveLine:g.bool,tabSize:g.number,showPrintMargin:g.bool,cursorStart:g.number,editorProps:g.object,setOptions:g.object,style:g.object,scrollMargin:g.array,annotations:g.array,markers:g.array,keyboardHandler:g.string,wrapEnabled:g.bool,enableBasicAutocompletion:g.oneOfType([g.bool,g.array]),enableLiveAutocompletion:g.oneOfType([g.bool,g.array]),commands:g.array},d.defaultProps={name:"ace-editor",focus:!1,orientation:"beside",splits:2,mode:"",theme:"",height:"500px",width:"500px",value:[],fontSize:12,showGutter:!0,onChange:null,onPaste:null,onLoad:null,onScroll:null,minLines:null,maxLines:null,readOnly:!1,highlightActiveLine:!0,showPrintMargin:!0,tabSize:4,cursorStart:1,editorProps:{},style:{},scrollMargin:[0,0,0,0],setOptions:{},wrapEnabled:!1,enableBasicAutocompletion:!1,enableLiveAutocompletion:!1},d})(y.Component);return Xf.default=c,Xf}var Ox={exports:{}},o3;function MP(){return o3||(o3=1,(function(t){var e=function(){this.Diff_Timeout=1,this.Diff_EditCost=4,this.Match_Threshold=.5,this.Match_Distance=1e3,this.Patch_DeleteThreshold=.5,this.Patch_Margin=4,this.Match_MaxBits=32},i=-1,a=1,E=0;e.Diff=function(p,g){return[p,g]},e.prototype.diff_main=function(p,g,y,f){typeof f>"u"&&(this.Diff_Timeout<=0?f=Number.MAX_VALUE:f=new Date().getTime()+this.Diff_Timeout*1e3);var b=f;if(p==null||g==null)throw new Error("Null input. (diff_main)");if(p==g)return p?[new e.Diff(E,p)]:[];typeof y>"u"&&(y=!0);var c=y,u=this.diff_commonPrefix(p,g),d=p.substring(0,u);p=p.substring(u),g=g.substring(u),u=this.diff_commonSuffix(p,g);var h=p.substring(p.length-u);p=p.substring(0,p.length-u),g=g.substring(0,g.length-u);var m=this.diff_compute_(p,g,c,b);return d&&m.unshift(new e.Diff(E,d)),h&&m.push(new e.Diff(E,h)),this.diff_cleanupMerge(m),m},e.prototype.diff_compute_=function(p,g,y,f){var b;if(!p)return[new e.Diff(a,g)];if(!g)return[new e.Diff(i,p)];var c=p.length>g.length?p:g,u=p.length>g.length?g:p,d=c.indexOf(u);if(d!=-1)return b=[new e.Diff(a,c.substring(0,d)),new e.Diff(E,u),new e.Diff(a,c.substring(d+u.length))],p.length>g.length&&(b[0][0]=b[2][0]=i),b;if(u.length==1)return[new e.Diff(i,p),new e.Diff(a,g)];var h=this.diff_halfMatch_(p,g);if(h){var m=h[0],S=h[1],T=h[2],A=h[3],N=h[4],O=this.diff_main(m,T,y,f),D=this.diff_main(S,A,y,f);return O.concat([new e.Diff(E,N)],D)}return y&&p.length>100&&g.length>100?this.diff_lineMode_(p,g,f):this.diff_bisect_(p,g,f)},e.prototype.diff_lineMode_=function(p,g,y){var f=this.diff_linesToChars_(p,g);p=f.chars1,g=f.chars2;var b=f.lineArray,c=this.diff_main(p,g,!1,y);this.diff_charsToLines_(c,b),this.diff_cleanupSemantic(c),c.push(new e.Diff(E,""));for(var u=0,d=0,h=0,m="",S="";u<c.length;){switch(c[u][0]){case a:h++,S+=c[u][1];break;case i:d++,m+=c[u][1];break;case E:if(d>=1&&h>=1){c.splice(u-d-h,d+h),u=u-d-h;for(var T=this.diff_main(m,S,!1,y),A=T.length-1;A>=0;A--)c.splice(u,0,T[A]);u=u+T.length}h=0,d=0,m="",S="";break}u++}return c.pop(),c},e.prototype.diff_bisect_=function(p,g,y){for(var f=p.length,b=g.length,c=Math.ceil((f+b)/2),u=c,d=2*c,h=new Array(d),m=new Array(d),S=0;S<d;S++)h[S]=-1,m[S]=-1;h[u+1]=0,m[u+1]=0;for(var T=f-b,A=T%2!=0,N=0,O=0,D=0,R=0,C=0;C<c&&!(new Date().getTime()>y);C++){for(var $=-C+N;$<=C-O;$+=2){var F=u+$,U;$==-C||$!=C&&h[F-1]<h[F+1]?U=h[F+1]:U=h[F-1]+1;for(var j=U-$;U<f&&j<b&&p.charAt(U)==g.charAt(j);)U++,j++;if(h[F]=U,U>f)O+=2;else if(j>b)N+=2;else if(A){var X=u+T-$;if(X>=0&&X<d&&m[X]!=-1){var P=f-m[X];if(U>=P)return this.diff_bisectSplit_(p,g,U,j,y)}}}for(var B=-C+D;B<=C-R;B+=2){var X=u+B,P;B==-C||B!=C&&m[X-1]<m[X+1]?P=m[X+1]:P=m[X-1]+1;for(var k=P-B;P<f&&k<b&&p.charAt(f-P-1)==g.charAt(b-k-1);)P++,k++;if(m[X]=P,P>f)R+=2;else if(k>b)D+=2;else if(!A){var F=u+T-B;if(F>=0&&F<d&&h[F]!=-1){var U=h[F],j=u+U-F;if(P=f-P,U>=P)return this.diff_bisectSplit_(p,g,U,j,y)}}}}return[new e.Diff(i,p),new e.Diff(a,g)]},e.prototype.diff_bisectSplit_=function(p,g,y,f,b){var c=p.substring(0,y),u=g.substring(0,f),d=p.substring(y),h=g.substring(f),m=this.diff_main(c,u,!1,b),S=this.diff_main(d,h,!1,b);return m.concat(S)},e.prototype.diff_linesToChars_=function(p,g){var y=[],f={};y[0]="";function b(h){for(var m="",S=0,T=-1,A=y.length;T<h.length-1;){T=h.indexOf(`
1405
1405
  `,S),T==-1&&(T=h.length-1);var N=h.substring(S,T+1);(f.hasOwnProperty?f.hasOwnProperty(N):f[N]!==void 0)?m+=String.fromCharCode(f[N]):(A==c&&(N=h.substring(S),T=h.length),m+=String.fromCharCode(A),f[N]=A,y[A++]=N),S=T+1}return m}var c=4e4,u=b(p);c=65535;var d=b(g);return{chars1:u,chars2:d,lineArray:y}},e.prototype.diff_charsToLines_=function(p,g){for(var y=0;y<p.length;y++){for(var f=p[y][1],b=[],c=0;c<f.length;c++)b[c]=g[f.charCodeAt(c)];p[y][1]=b.join("")}},e.prototype.diff_commonPrefix=function(p,g){if(!p||!g||p.charAt(0)!=g.charAt(0))return 0;for(var y=0,f=Math.min(p.length,g.length),b=f,c=0;y<b;)p.substring(c,b)==g.substring(c,b)?(y=b,c=y):f=b,b=Math.floor((f-y)/2+y);return b},e.prototype.diff_commonSuffix=function(p,g){if(!p||!g||p.charAt(p.length-1)!=g.charAt(g.length-1))return 0;for(var y=0,f=Math.min(p.length,g.length),b=f,c=0;y<b;)p.substring(p.length-b,p.length-c)==g.substring(g.length-b,g.length-c)?(y=b,c=y):f=b,b=Math.floor((f-y)/2+y);return b},e.prototype.diff_commonOverlap_=function(p,g){var y=p.length,f=g.length;if(y==0||f==0)return 0;y>f?p=p.substring(y-f):y<f&&(g=g.substring(0,y));var b=Math.min(y,f);if(p==g)return b;for(var c=0,u=1;;){var d=p.substring(b-u),h=g.indexOf(d);if(h==-1)return c;u+=h,(h==0||p.substring(b-u)==g.substring(0,u))&&(c=u,u++)}},e.prototype.diff_halfMatch_=function(p,g){if(this.Diff_Timeout<=0)return null;var y=p.length>g.length?p:g,f=p.length>g.length?g:p;if(y.length<4||f.length*2<y.length)return null;var b=this;function c(O,D,R){for(var C=O.substring(R,R+Math.floor(O.length/4)),$=-1,F="",U,j,X,P;($=D.indexOf(C,$+1))!=-1;){var B=b.diff_commonPrefix(O.substring(R),D.substring($)),k=b.diff_commonSuffix(O.substring(0,R),D.substring(0,$));F.length<k+B&&(F=D.substring($-k,$)+D.substring($,$+B),U=O.substring(0,R-k),j=O.substring(R+B),X=D.substring(0,$-k),P=D.substring($+B))}return F.length*2>=O.length?[U,j,X,P,F]:null}var u=c(y,f,Math.ceil(y.length/4)),d=c(y,f,Math.ceil(y.length/2)),h;if(!u&&!d)return null;d?u?h=u[4].length>d[4].length?u:d:h=d:h=u;var m,S,T,A;p.length>g.length?(m=h[0],S=h[1],T=h[2],A=h[3]):(T=h[0],A=h[1],m=h[2],S=h[3]);var N=h[4];return[m,S,T,A,N]},e.prototype.diff_cleanupSemantic=function(p){for(var g=!1,y=[],f=0,b=null,c=0,u=0,d=0,h=0,m=0;c<p.length;)p[c][0]==E?(y[f++]=c,u=h,d=m,h=0,m=0,b=p[c][1]):(p[c][0]==a?h+=p[c][1].length:m+=p[c][1].length,b&&b.length<=Math.max(u,d)&&b.length<=Math.max(h,m)&&(p.splice(y[f-1],0,new e.Diff(i,b)),p[y[f-1]+1][0]=a,f--,f--,c=f>0?y[f-1]:-1,u=0,d=0,h=0,m=0,b=null,g=!0)),c++;for(g&&this.diff_cleanupMerge(p),this.diff_cleanupSemanticLossless(p),c=1;c<p.length;){if(p[c-1][0]==i&&p[c][0]==a){var S=p[c-1][1],T=p[c][1],A=this.diff_commonOverlap_(S,T),N=this.diff_commonOverlap_(T,S);A>=N?(A>=S.length/2||A>=T.length/2)&&(p.splice(c,0,new e.Diff(E,T.substring(0,A))),p[c-1][1]=S.substring(0,S.length-A),p[c+1][1]=T.substring(A),c++):(N>=S.length/2||N>=T.length/2)&&(p.splice(c,0,new e.Diff(E,S.substring(0,N))),p[c-1][0]=a,p[c-1][1]=T.substring(0,T.length-N),p[c+1][0]=i,p[c+1][1]=S.substring(N),c++),c++}c++}},e.prototype.diff_cleanupSemanticLossless=function(p){function g(N,O){if(!N||!O)return 6;var D=N.charAt(N.length-1),R=O.charAt(0),C=D.match(e.nonAlphaNumericRegex_),$=R.match(e.nonAlphaNumericRegex_),F=C&&D.match(e.whitespaceRegex_),U=$&&R.match(e.whitespaceRegex_),j=F&&D.match(e.linebreakRegex_),X=U&&R.match(e.linebreakRegex_),P=j&&N.match(e.blanklineEndRegex_),B=X&&O.match(e.blanklineStartRegex_);return P||B?5:j||X?4:C&&!F&&U?3:F||U?2:C||$?1:0}for(var y=1;y<p.length-1;){if(p[y-1][0]==E&&p[y+1][0]==E){var f=p[y-1][1],b=p[y][1],c=p[y+1][1],u=this.diff_commonSuffix(f,b);if(u){var d=b.substring(b.length-u);f=f.substring(0,f.length-u),b=d+b.substring(0,b.length-u),c=d+c}for(var h=f,m=b,S=c,T=g(f,b)+g(b,c);b.charAt(0)===c.charAt(0);){f+=b.charAt(0),b=b.substring(1)+c.charAt(0),c=c.substring(1);var A=g(f,b)+g(b,c);A>=T&&(T=A,h=f,m=b,S=c)}p[y-1][1]!=h&&(h?p[y-1][1]=h:(p.splice(y-1,1),y--),p[y][1]=m,S?p[y+1][1]=S:(p.splice(y+1,1),y--))}y++}},e.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,e.whitespaceRegex_=/\s/,e.linebreakRegex_=/[\r\n]/,e.blanklineEndRegex_=/\n\r?\n$/,e.blanklineStartRegex_=/^\r?\n\r?\n/,e.prototype.diff_cleanupEfficiency=function(p){for(var g=!1,y=[],f=0,b=null,c=0,u=!1,d=!1,h=!1,m=!1;c<p.length;)p[c][0]==E?(p[c][1].length<this.Diff_EditCost&&(h||m)?(y[f++]=c,u=h,d=m,b=p[c][1]):(f=0,b=null),h=m=!1):(p[c][0]==i?m=!0:h=!0,b&&(u&&d&&h&&m||b.length<this.Diff_EditCost/2&&u+d+h+m==3)&&(p.splice(y[f-1],0,new e.Diff(i,b)),p[y[f-1]+1][0]=a,f--,b=null,u&&d?(h=m=!0,f=0):(f--,c=f>0?y[f-1]:-1,h=m=!1),g=!0)),c++;g&&this.diff_cleanupMerge(p)},e.prototype.diff_cleanupMerge=function(p){p.push(new e.Diff(E,""));for(var g=0,y=0,f=0,b="",c="",u;g<p.length;)switch(p[g][0]){case a:f++,c+=p[g][1],g++;break;case i:y++,b+=p[g][1],g++;break;case E:y+f>1?(y!==0&&f!==0&&(u=this.diff_commonPrefix(c,b),u!==0&&(g-y-f>0&&p[g-y-f-1][0]==E?p[g-y-f-1][1]+=c.substring(0,u):(p.splice(0,0,new e.Diff(E,c.substring(0,u))),g++),c=c.substring(u),b=b.substring(u)),u=this.diff_commonSuffix(c,b),u!==0&&(p[g][1]=c.substring(c.length-u)+p[g][1],c=c.substring(0,c.length-u),b=b.substring(0,b.length-u))),g-=y+f,p.splice(g,y+f),b.length&&(p.splice(g,0,new e.Diff(i,b)),g++),c.length&&(p.splice(g,0,new e.Diff(a,c)),g++),g++):g!==0&&p[g-1][0]==E?(p[g-1][1]+=p[g][1],p.splice(g,1)):g++,f=0,y=0,b="",c="";break}p[p.length-1][1]===""&&p.pop();var d=!1;for(g=1;g<p.length-1;)p[g-1][0]==E&&p[g+1][0]==E&&(p[g][1].substring(p[g][1].length-p[g-1][1].length)==p[g-1][1]?(p[g][1]=p[g-1][1]+p[g][1].substring(0,p[g][1].length-p[g-1][1].length),p[g+1][1]=p[g-1][1]+p[g+1][1],p.splice(g-1,1),d=!0):p[g][1].substring(0,p[g+1][1].length)==p[g+1][1]&&(p[g-1][1]+=p[g+1][1],p[g][1]=p[g][1].substring(p[g+1][1].length)+p[g+1][1],p.splice(g+1,1),d=!0)),g++;d&&this.diff_cleanupMerge(p)},e.prototype.diff_xIndex=function(p,g){var y=0,f=0,b=0,c=0,u;for(u=0;u<p.length&&(p[u][0]!==a&&(y+=p[u][1].length),p[u][0]!==i&&(f+=p[u][1].length),!(y>g));u++)b=y,c=f;return p.length!=u&&p[u][0]===i?c:c+(g-b)},e.prototype.diff_prettyHtml=function(p){for(var g=[],y=/&/g,f=/</g,b=/>/g,c=/\n/g,u=0;u<p.length;u++){var d=p[u][0],h=p[u][1],m=h.replace(y,"&amp;").replace(f,"&lt;").replace(b,"&gt;").replace(c,"&para;<br>");switch(d){case a:g[u]='<ins style="background:#e6ffe6;">'+m+"</ins>";break;case i:g[u]='<del style="background:#ffe6e6;">'+m+"</del>";break;case E:g[u]="<span>"+m+"</span>";break}}return g.join("")},e.prototype.diff_text1=function(p){for(var g=[],y=0;y<p.length;y++)p[y][0]!==a&&(g[y]=p[y][1]);return g.join("")},e.prototype.diff_text2=function(p){for(var g=[],y=0;y<p.length;y++)p[y][0]!==i&&(g[y]=p[y][1]);return g.join("")},e.prototype.diff_levenshtein=function(p){for(var g=0,y=0,f=0,b=0;b<p.length;b++){var c=p[b][0],u=p[b][1];switch(c){case a:y+=u.length;break;case i:f+=u.length;break;case E:g+=Math.max(y,f),y=0,f=0;break}}return g+=Math.max(y,f),g},e.prototype.diff_toDelta=function(p){for(var g=[],y=0;y<p.length;y++)switch(p[y][0]){case a:g[y]="+"+encodeURI(p[y][1]);break;case i:g[y]="-"+p[y][1].length;break;case E:g[y]="="+p[y][1].length;break}return g.join(" ").replace(/%20/g," ")},e.prototype.diff_fromDelta=function(p,g){for(var y=[],f=0,b=0,c=g.split(/\t/g),u=0;u<c.length;u++){var d=c[u].substring(1);switch(c[u].charAt(0)){case"+":try{y[f++]=new e.Diff(a,decodeURI(d))}catch{throw new Error("Illegal escape in diff_fromDelta: "+d)}break;case"-":case"=":var h=parseInt(d,10);if(isNaN(h)||h<0)throw new Error("Invalid number in diff_fromDelta: "+d);var m=p.substring(b,b+=h);c[u].charAt(0)=="="?y[f++]=new e.Diff(E,m):y[f++]=new e.Diff(i,m);break;default:if(c[u])throw new Error("Invalid diff operation in diff_fromDelta: "+c[u])}}if(b!=p.length)throw new Error("Delta length ("+b+") does not equal source text length ("+p.length+").");return y},e.prototype.match_main=function(p,g,y){if(p==null||g==null||y==null)throw new Error("Null input. (match_main)");return y=Math.max(0,Math.min(y,p.length)),p==g?0:p.length?p.substring(y,y+g.length)==g?y:this.match_bitap_(p,g,y):-1},e.prototype.match_bitap_=function(p,g,y){if(g.length>this.Match_MaxBits)throw new Error("Pattern too long for this browser.");var f=this.match_alphabet_(g),b=this;function c(U,j){var X=U/g.length,P=Math.abs(y-j);return b.Match_Distance?X+P/b.Match_Distance:P?1:X}var u=this.Match_Threshold,d=p.indexOf(g,y);d!=-1&&(u=Math.min(c(0,d),u),d=p.lastIndexOf(g,y+g.length),d!=-1&&(u=Math.min(c(0,d),u)));var h=1<<g.length-1;d=-1;for(var m,S,T=g.length+p.length,A,N=0;N<g.length;N++){for(m=0,S=T;m<S;)c(N,y+S)<=u?m=S:T=S,S=Math.floor((T-m)/2+m);T=S;var O=Math.max(1,y-S+1),D=Math.min(y+S,p.length)+g.length,R=Array(D+2);R[D+1]=(1<<N)-1;for(var C=D;C>=O;C--){var $=f[p.charAt(C-1)];if(N===0?R[C]=(R[C+1]<<1|1)&$:R[C]=(R[C+1]<<1|1)&$|((A[C+1]|A[C])<<1|1)|A[C+1],R[C]&h){var F=c(N,C-1);if(F<=u)if(u=F,d=C-1,d>y)O=Math.max(1,2*y-d);else break}}if(c(N+1,y)>u)break;A=R}return d},e.prototype.match_alphabet_=function(p){for(var g={},y=0;y<p.length;y++)g[p.charAt(y)]=0;for(var y=0;y<p.length;y++)g[p.charAt(y)]|=1<<p.length-y-1;return g},e.prototype.patch_addContext_=function(p,g){if(g.length!=0){if(p.start2===null)throw Error("patch not initialized");for(var y=g.substring(p.start2,p.start2+p.length1),f=0;g.indexOf(y)!=g.lastIndexOf(y)&&y.length<this.Match_MaxBits-this.Patch_Margin-this.Patch_Margin;)f+=this.Patch_Margin,y=g.substring(p.start2-f,p.start2+p.length1+f);f+=this.Patch_Margin;var b=g.substring(p.start2-f,p.start2);b&&p.diffs.unshift(new e.Diff(E,b));var c=g.substring(p.start2+p.length1,p.start2+p.length1+f);c&&p.diffs.push(new e.Diff(E,c)),p.start1-=b.length,p.start2-=b.length,p.length1+=b.length+c.length,p.length2+=b.length+c.length}},e.prototype.patch_make=function(p,g,y){var f,b;if(typeof p=="string"&&typeof g=="string"&&typeof y>"u")f=p,b=this.diff_main(f,g,!0),b.length>2&&(this.diff_cleanupSemantic(b),this.diff_cleanupEfficiency(b));else if(p&&typeof p=="object"&&typeof g>"u"&&typeof y>"u")b=p,f=this.diff_text1(b);else if(typeof p=="string"&&g&&typeof g=="object"&&typeof y>"u")f=p,b=g;else if(typeof p=="string"&&typeof g=="string"&&y&&typeof y=="object")f=p,b=y;else throw new Error("Unknown call format to patch_make.");if(b.length===0)return[];for(var c=[],u=new e.patch_obj,d=0,h=0,m=0,S=f,T=f,A=0;A<b.length;A++){var N=b[A][0],O=b[A][1];switch(!d&&N!==E&&(u.start1=h,u.start2=m),N){case a:u.diffs[d++]=b[A],u.length2+=O.length,T=T.substring(0,m)+O+T.substring(m);break;case i:u.length1+=O.length,u.diffs[d++]=b[A],T=T.substring(0,m)+T.substring(m+O.length);break;case E:O.length<=2*this.Patch_Margin&&d&&b.length!=A+1?(u.diffs[d++]=b[A],u.length1+=O.length,u.length2+=O.length):O.length>=2*this.Patch_Margin&&d&&(this.patch_addContext_(u,S),c.push(u),u=new e.patch_obj,d=0,S=T,h=m);break}N!==a&&(h+=O.length),N!==i&&(m+=O.length)}return d&&(this.patch_addContext_(u,S),c.push(u)),c},e.prototype.patch_deepCopy=function(p){for(var g=[],y=0;y<p.length;y++){var f=p[y],b=new e.patch_obj;b.diffs=[];for(var c=0;c<f.diffs.length;c++)b.diffs[c]=new e.Diff(f.diffs[c][0],f.diffs[c][1]);b.start1=f.start1,b.start2=f.start2,b.length1=f.length1,b.length2=f.length2,g[y]=b}return g},e.prototype.patch_apply=function(p,g){if(p.length==0)return[g,[]];p=this.patch_deepCopy(p);var y=this.patch_addPadding(p);g=y+g+y,this.patch_splitMax(p);for(var f=0,b=[],c=0;c<p.length;c++){var u=p[c].start2+f,d=this.diff_text1(p[c].diffs),h,m=-1;if(d.length>this.Match_MaxBits?(h=this.match_main(g,d.substring(0,this.Match_MaxBits),u),h!=-1&&(m=this.match_main(g,d.substring(d.length-this.Match_MaxBits),u+d.length-this.Match_MaxBits),(m==-1||h>=m)&&(h=-1))):h=this.match_main(g,d,u),h==-1)b[c]=!1,f-=p[c].length2-p[c].length1;else{b[c]=!0,f=h-u;var S;if(m==-1?S=g.substring(h,h+d.length):S=g.substring(h,m+this.Match_MaxBits),d==S)g=g.substring(0,h)+this.diff_text2(p[c].diffs)+g.substring(h+d.length);else{var T=this.diff_main(d,S,!1);if(d.length>this.Match_MaxBits&&this.diff_levenshtein(T)/d.length>this.Patch_DeleteThreshold)b[c]=!1;else{this.diff_cleanupSemanticLossless(T);for(var A=0,N,O=0;O<p[c].diffs.length;O++){var D=p[c].diffs[O];D[0]!==E&&(N=this.diff_xIndex(T,A)),D[0]===a?g=g.substring(0,h+N)+D[1]+g.substring(h+N):D[0]===i&&(g=g.substring(0,h+N)+g.substring(h+this.diff_xIndex(T,A+D[1].length))),D[0]!==i&&(A+=D[1].length)}}}}}return g=g.substring(y.length,g.length-y.length),[g,b]},e.prototype.patch_addPadding=function(p){for(var g=this.Patch_Margin,y="",f=1;f<=g;f++)y+=String.fromCharCode(f);for(var f=0;f<p.length;f++)p[f].start1+=g,p[f].start2+=g;var b=p[0],c=b.diffs;if(c.length==0||c[0][0]!=E)c.unshift(new e.Diff(E,y)),b.start1-=g,b.start2-=g,b.length1+=g,b.length2+=g;else if(g>c[0][1].length){var u=g-c[0][1].length;c[0][1]=y.substring(c[0][1].length)+c[0][1],b.start1-=u,b.start2-=u,b.length1+=u,b.length2+=u}if(b=p[p.length-1],c=b.diffs,c.length==0||c[c.length-1][0]!=E)c.push(new e.Diff(E,y)),b.length1+=g,b.length2+=g;else if(g>c[c.length-1][1].length){var u=g-c[c.length-1][1].length;c[c.length-1][1]+=y.substring(0,u),b.length1+=u,b.length2+=u}return y},e.prototype.patch_splitMax=function(p){for(var g=this.Match_MaxBits,y=0;y<p.length;y++)if(!(p[y].length1<=g)){var f=p[y];p.splice(y--,1);for(var b=f.start1,c=f.start2,u="";f.diffs.length!==0;){var d=new e.patch_obj,h=!0;for(d.start1=b-u.length,d.start2=c-u.length,u!==""&&(d.length1=d.length2=u.length,d.diffs.push(new e.Diff(E,u)));f.diffs.length!==0&&d.length1<g-this.Patch_Margin;){var m=f.diffs[0][0],S=f.diffs[0][1];m===a?(d.length2+=S.length,c+=S.length,d.diffs.push(f.diffs.shift()),h=!1):m===i&&d.diffs.length==1&&d.diffs[0][0]==E&&S.length>2*g?(d.length1+=S.length,b+=S.length,h=!1,d.diffs.push(new e.Diff(m,S)),f.diffs.shift()):(S=S.substring(0,g-d.length1-this.Patch_Margin),d.length1+=S.length,b+=S.length,m===E?(d.length2+=S.length,c+=S.length):h=!1,d.diffs.push(new e.Diff(m,S)),S==f.diffs[0][1]?f.diffs.shift():f.diffs[0][1]=f.diffs[0][1].substring(S.length))}u=this.diff_text2(d.diffs),u=u.substring(u.length-this.Patch_Margin);var T=this.diff_text1(f.diffs).substring(0,this.Patch_Margin);T!==""&&(d.length1+=T.length,d.length2+=T.length,d.diffs.length!==0&&d.diffs[d.diffs.length-1][0]===E?d.diffs[d.diffs.length-1][1]+=T:d.diffs.push(new e.Diff(E,T))),h||p.splice(++y,0,d)}}},e.prototype.patch_toText=function(p){for(var g=[],y=0;y<p.length;y++)g[y]=p[y];return g.join("")},e.prototype.patch_fromText=function(p){var g=[];if(!p)return g;for(var y=p.split(`
1406
1406
  `),f=0,b=/^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;f<y.length;){var c=y[f].match(b);if(!c)throw new Error("Invalid patch string: "+y[f]);var u=new e.patch_obj;for(g.push(u),u.start1=parseInt(c[1],10),c[2]===""?(u.start1--,u.length1=1):c[2]=="0"?u.length1=0:(u.start1--,u.length1=parseInt(c[2],10)),u.start2=parseInt(c[3],10),c[4]===""?(u.start2--,u.length2=1):c[4]=="0"?u.length2=0:(u.start2--,u.length2=parseInt(c[4],10)),f++;f<y.length;){var d=y[f].charAt(0);try{var h=decodeURI(y[f].substring(1))}catch{throw new Error("Illegal escape in patch_fromText: "+h)}if(d=="-")u.diffs.push(new e.Diff(i,h));else if(d=="+")u.diffs.push(new e.Diff(a,h));else if(d==" ")u.diffs.push(new e.Diff(E,h));else{if(d=="@")break;if(d!=="")throw new Error('Invalid patch mode "'+d+'" in: '+h)}f++}}return g},e.patch_obj=function(){this.diffs=[],this.start1=null,this.start2=null,this.length1=0,this.length2=0},e.patch_obj.prototype.toString=function(){var p,g;this.length1===0?p=this.start1+",0":this.length1==1?p=this.start1+1:p=this.start1+1+","+this.length1,this.length2===0?g=this.start2+",0":this.length2==1?g=this.start2+1:g=this.start2+1+","+this.length2;for(var y=["@@ -"+p+" +"+g+` @@
1407
1407
  `],f,b=0;b<this.diffs.length;b++){switch(this.diffs[b][0]){case a:f="+";break;case i:f="-";break;case E:f=" ";break}y[b+1]=f+encodeURI(this.diffs[b][1])+`
@@ -2035,7 +2035,7 @@ guard ^\\s*
2035
2035
  *
2036
2036
  * @description
2037
2037
  * Stylized, theme-aware status chip(s) with a soft pulse.
2038
- */function eV(t){const e=t.toLowerCase();return/\b(success|successful|successfully|ok|ready|healthy|running|connected|live|up)\b/.test(e)?"success":/\b(warn|warning|degraded|slow|retry|pending|queue|queued)\b/.test(e)?"warning":/\b(error|errors|fail|failed|invalid|down|offline|blocked|denied)\b/.test(e)?"error":"accent"}const tV=({note:t})=>{if(!t)return null;const e=t.split(/\r?\n|;|\s·\s/g).map(a=>a.trim()).filter(Boolean),i=[];for(const a of e)i[i.length-1]!==a&&i.push(a);return i.length?H.jsx("div",{className:"w-full max-w-[860px] px-4 md:px-6",children:H.jsx("div",{className:"flex flex-wrap gap-2 py-1",children:i.map((a,E)=>{const p=eV(a),g=p==="success"?"boomi-chip--success":p==="warning"?"boomi-chip--warning":p==="error"?"boomi-chip--error":"";return H.jsxs("span",{className:["boomi-chip","boomi-chip--pulse",g].join(" "),"data-tone":p,children:[H.jsx("span",{className:"boomi-chip-dot","aria-hidden":"true"}),H.jsx("span",{className:"font-semibold",children:a})]},`${a}-${E}`)})})}):null};function p3(t){if(!Number.isFinite(t))return`${t}`;const e=["B","KB","MB","GB"];let i=0,a=t;for(;a>=1024&&i<e.length-1;)a/=1024,i++;return`${a.toFixed(a>=10||i===0?0:1)} ${e[i]}`}const nV=t=>H.jsx("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"none",stroke:"currentColor",strokeWidth:"2",...t,children:H.jsx("path",{d:"M21.44 11.05 12 20.5a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66L9.88 17.96a2 2 0 1 1-2.83-2.83l8.13-8.13"})}),oV=t=>H.jsx("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"none",stroke:"currentColor",strokeWidth:"2",...t,children:H.jsx("path",{d:"M18 6 6 18M6 6l12 12"})});function iV({integration:t,sessionId:e,messages:i,busy:a,status:E,onSend:p,onSendRich:g,emptyState:y,loading:f=!1}){var tt,ct,gt,at;const{boomiConfig:b}=Xn(),[c,u]=Y.useState(""),[d,h]=Y.useState([]),[m,S]=Y.useState(!1),T=Y.useRef(null),A=Y.useRef(null),N=Y.useRef(null),O=Y.useRef(null),D=Y.useRef(null),R=Y.useRef(!1),[C,$]=Y.useState(120),F=(E==null?void 0:E.state)==="working"||(E==null?void 0:E.state)==="progress",U=!a&&!F,j=t.integrationPackId,X=j?((ct=(tt=b==null?void 0:b.agents)==null?void 0:tt[j])==null?void 0:ct.ui)??void 0:void 0,P=(X==null?void 0:X.allowFreeTextPrompt)!==!1,B=Array.isArray(X==null?void 0:X.prompts)?X.prompts:[],k=!!(X!=null&&X.fileAttachmentSupported),M=!!(X!=null&&X.fileAttachmentRequired),I=Array.isArray(X==null?void 0:X.allowedFileExtensions)?X.allowedFileExtensions.map(Re=>Re.startsWith(".")?Re.toLowerCase():`.${Re.toLowerCase()}`):[],W=k&&M&&d.length===0,Q=Number.isFinite(X==null?void 0:X.maxFiles)?X.maxFiles:5,J=Number.isFinite(X==null?void 0:X.maxTotalBytes)?X.maxTotalBytes:25*1024*1024,K=(X==null?void 0:X.welcome)??void 0,Z=(K==null?void 0:K.title)??"Welcome to your Agent Chat",re=(K==null?void 0:K.subtitle)??"Ask me anything about your integrations.",te=Y.useRef(!0),[ae,se]=Y.useState(!0),ie=Y.useRef(!0),ue=(Re="smooth")=>{var an;const je=T.current;if(!je)return;const it=A.current,rt=((an=O.current)==null?void 0:an.offsetHeight)??0,vt=32,St=it?it.offsetTop:je.scrollHeight,Nt=Math.max(0,St-(je.clientHeight-rt-vt));je.scrollTo({top:Nt,behavior:Re})},me=()=>{const Re=T.current;if(!Re)return;const je=Re.scrollTop+Re.clientHeight>=Re.scrollHeight-24;se(je),te.current=je};Y.useEffect(()=>{const Re=ie.current?"auto":"smooth";ue(Re),ie.current=!1},[i.length,E==null?void 0:E.note,a,F,f,d.length]),Y.useLayoutEffect(()=>{const Re=O.current;if(!Re)return;const je=()=>{const rt=Re.offsetHeight||0;$(Math.max(120,rt+48))};je();const it=new ResizeObserver(je);return it.observe(Re),()=>it.disconnect()},[]),Y.useEffect(()=>{ue("auto")},[C]),Y.useEffect(()=>{R.current=!0},[e]),Y.useEffect(()=>{if(R.current||f||a||F){ue(f?"auto":"smooth"),R.current=!1;return}},[i.length,f,a,F,E==null?void 0:E.note]);const ve=Y.useMemo(()=>{const Re=[];return i.forEach((je,it)=>{const rt=(je==null?void 0:je.id)??String(it);Re.push(H.jsx("div",{className:"w-full",children:H.jsx("div",{className:"w-full max-w-[1024px] px-4 md:px-6",children:H.jsx(ZP,{m:je,getMsgText:JP})})},rt));const vt=i[it+1];vt&&((je==null?void 0:je.role)==="user"&&(vt==null?void 0:vt.role)==="assistant"||(je==null?void 0:je.role)==="assistant"&&(vt==null?void 0:vt.role)==="user")&&Re.push(H.jsx("div",{className:"boomi-agent-thread-separator"},`${rt}-sep`))}),Re},[i]),pe=Re=>{const je=(Re.name||"").toLowerCase(),it=je.lastIndexOf(".");return it>=0?je.slice(it):""},ye=Re=>{if(!I.length)return!0;const je=pe(Re);return!!je&&I.includes(je)},de=I.length?I.join(","):void 0,Ve=Re=>{const je=[],it=[...d],rt=it.reduce((vt,St)=>vt+((St==null?void 0:St.size)||0),0);for(const vt of Array.from(Re)){if(!ye(vt))continue;if(it.length+je.length>=Q||rt+je.reduce((Nt,an)=>Nt+an.size,0)+vt.size>J)break;je.push(vt)}je.length&&h([...it,...je])},De=Re=>{h(je=>je.filter((it,rt)=>rt!==Re))},qe=()=>{const Re=D.current;Re&&(Re.style.height="auto",Re.style.height=`${Math.min(Re.scrollHeight,720)}px`)};Y.useEffect(()=>{qe()},[c]);const et=Re=>{k&&(Re.preventDefault(),Re.stopPropagation(),S(!0))},mt=Re=>{k&&(Re.preventDefault(),Re.stopPropagation(),S(!1))},xt=Re=>{var je,it;k&&(Re.preventDefault(),Re.stopPropagation(),S(!1),(it=(je=Re.dataTransfer)==null?void 0:je.files)!=null&&it.length&&Ve(Re.dataTransfer.files))},$t=async()=>{if(!U)return;const Re=c.trim();if(!(!Re&&d.length===0)){if(R.current=!0,ue("smooth"),d.length&&typeof g=="function"){await g({text:Re,files:d}),u(""),h([]);return}Re&&(await p(Re),u("")),d.length&&h([])}},ze=async Re=>{U&&(R.current=!0,ue("smooth"),d.length&&g?(await g({text:Re,files:d}),h([])):await p(Re))};return H.jsx("main",{className:"boomi-agent-pane flex flex-col relative h-full min-h-0",children:H.jsxs("div",{className:"flex-1 min-h-0 relative overflow-hidden",children:[H.jsx("div",{ref:T,onScroll:me,className:"h-full overflow-auto boomi-scroll bg-[var(--boomi-agent-pane-bg)] text-[var(--boomi-agent-pane-fg)]",style:{paddingBottom:C},children:f?H.jsx("div",{className:"mt-6",children:H.jsx(Ki,{message:"Loading conversation…"})}):y?H.jsx("div",{className:"h-full w-full flex items-center justify-center",children:H.jsxs("div",{className:"text-center max-w-[720px] px-6 py-10",children:[H.jsx("div",{className:"text-3xl font-extrabold mb-3",children:Z}),H.jsx("p",{className:"opacity-70",children:re})]})}):H.jsxs("div",{className:"mx-auto w-full max-w-[1140px] py-6 space-y-4 px-4 md:px-8",style:{paddingBottom:C},children:[ve,(F||(((at=(gt=E==null?void 0:E.note)==null?void 0:gt.trim())==null?void 0:at.length)??0)>0)&&H.jsx(tV,{note:E==null?void 0:E.note}),H.jsx("div",{ref:A})]})}),H.jsx("div",{className:"boomi-agent-composer pointer-events-none","aria-live":"polite",ref:O,children:H.jsx("form",{className:["pointer-events-auto w-full relative z-10",k&&m?"outline outline-2 outline-[var(--boomi-accent,#6366f1)]":""].join(" "),onSubmit:Re=>{Re.preventDefault(),$t()},onDragOver:et,onDragLeave:mt,onDrop:xt,children:H.jsxs("div",{className:"mx-auto max-w-[1024px] w-full px-4 md:px-6 py-3 space-y-2",children:[k&&d.length>0&&H.jsx("div",{className:"flex flex-wrap gap-2 items-center",children:d.map((Re,je)=>H.jsxs("span",{className:`inline-flex items-center gap-2 rounded-full px-3 py-1 text-sm border
2038
+ */function eV(t){const e=t.toLowerCase();return/\b(success|successful|successfully|ok|ready|healthy|running|connected|live|up)\b/.test(e)?"success":/\b(warn|warning|degraded|slow|retry|pending|queue|queued)\b/.test(e)?"warning":/\b(error|errors|fail|failed|invalid|down|offline|blocked|denied)\b/.test(e)?"error":"accent"}const tV=({note:t})=>{if(!t)return null;const e=t.split(/\r?\n|;|\s·\s/g).map(a=>a.trim()).filter(Boolean),i=[];for(const a of e)i[i.length-1]!==a&&i.push(a);return i.length?H.jsx("div",{className:"w-full max-w-[860px] px-4 md:px-6",children:H.jsx("div",{className:"flex flex-wrap gap-2 py-1",children:i.map((a,E)=>{const p=eV(a),g=p==="success"?"boomi-chip--success":p==="warning"?"boomi-chip--warning":p==="error"?"boomi-chip--error":"";return H.jsxs("span",{className:["boomi-chip","boomi-chip--pulse",g].join(" "),"data-tone":p,children:[H.jsx("span",{className:"boomi-chip-dot","aria-hidden":"true"}),H.jsx("span",{className:"font-semibold",children:a})]},`${a}-${E}`)})})}):null};function p3(t){if(!Number.isFinite(t))return`${t}`;const e=["B","KB","MB","GB"];let i=0,a=t;for(;a>=1024&&i<e.length-1;)a/=1024,i++;return`${a.toFixed(a>=10||i===0?0:1)} ${e[i]}`}const nV=t=>H.jsx("svg",{viewBox:"0 0 24 24",width:"18",height:"18",fill:"none",stroke:"currentColor",strokeWidth:"2",...t,children:H.jsx("path",{d:"M21.44 11.05 12 20.5a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66L9.88 17.96a2 2 0 1 1-2.83-2.83l8.13-8.13"})}),oV=t=>H.jsx("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"none",stroke:"currentColor",strokeWidth:"2",...t,children:H.jsx("path",{d:"M18 6 6 18M6 6l12 12"})});function iV({integration:t,sessionId:e,messages:i,busy:a,status:E,onSend:p,onSendRich:g,emptyState:y,loading:f=!1}){var nt,ct,gt,at;const{boomiConfig:b}=Xn(),[c,u]=Y.useState(""),[d,h]=Y.useState([]),[m,S]=Y.useState(!1),T=Y.useRef(null),A=Y.useRef(null),N=Y.useRef(null),O=Y.useRef(null),D=Y.useRef(null),R=Y.useRef(!1),[C,$]=Y.useState(120),F=(E==null?void 0:E.state)==="working"||(E==null?void 0:E.state)==="progress",U=!a&&!F,j=t.integrationPackId,X=j?((ct=(nt=b==null?void 0:b.agents)==null?void 0:nt[j])==null?void 0:ct.ui)??void 0:void 0,P=(X==null?void 0:X.allowFreeTextPrompt)!==!1,B=Array.isArray(X==null?void 0:X.prompts)?X.prompts:[],k=!!(X!=null&&X.fileAttachmentSupported),M=!!(X!=null&&X.fileAttachmentRequired),I=Array.isArray(X==null?void 0:X.allowedFileExtensions)?X.allowedFileExtensions.map(Re=>Re.startsWith(".")?Re.toLowerCase():`.${Re.toLowerCase()}`):[],W=k&&M&&d.length===0,Q=Number.isFinite(X==null?void 0:X.maxFiles)?X.maxFiles:5,J=Number.isFinite(X==null?void 0:X.maxTotalBytes)?X.maxTotalBytes:25*1024*1024,K=(X==null?void 0:X.welcome)??void 0,Z=(K==null?void 0:K.title)??"Welcome to your Agent Chat",re=(K==null?void 0:K.subtitle)??"Ask me anything about your integrations.",te=Y.useRef(!0),[ae,se]=Y.useState(!0),ie=Y.useRef(!0),ue=(Re="smooth")=>{var an;const je=T.current;if(!je)return;const ot=A.current,tt=((an=O.current)==null?void 0:an.offsetHeight)??0,vt=32,St=ot?ot.offsetTop:je.scrollHeight,Nt=Math.max(0,St-(je.clientHeight-tt-vt));je.scrollTo({top:Nt,behavior:Re})},me=()=>{const Re=T.current;if(!Re)return;const je=Re.scrollTop+Re.clientHeight>=Re.scrollHeight-24;se(je),te.current=je};Y.useEffect(()=>{const Re=ie.current?"auto":"smooth";ue(Re),ie.current=!1},[i.length,E==null?void 0:E.note,a,F,f,d.length]),Y.useLayoutEffect(()=>{const Re=O.current;if(!Re)return;const je=()=>{const tt=Re.offsetHeight||0;$(Math.max(120,tt+48))};je();const ot=new ResizeObserver(je);return ot.observe(Re),()=>ot.disconnect()},[]),Y.useEffect(()=>{ue("auto")},[C]),Y.useEffect(()=>{R.current=!0},[e]),Y.useEffect(()=>{if(R.current||f||a||F){ue(f?"auto":"smooth"),R.current=!1;return}},[i.length,f,a,F,E==null?void 0:E.note]);const ve=Y.useMemo(()=>{const Re=[];return i.forEach((je,ot)=>{const tt=(je==null?void 0:je.id)??String(ot);Re.push(H.jsx("div",{className:"w-full",children:H.jsx("div",{className:"w-full max-w-[1024px] px-4 md:px-6",children:H.jsx(ZP,{m:je,getMsgText:JP})})},tt));const vt=i[ot+1];vt&&((je==null?void 0:je.role)==="user"&&(vt==null?void 0:vt.role)==="assistant"||(je==null?void 0:je.role)==="assistant"&&(vt==null?void 0:vt.role)==="user")&&Re.push(H.jsx("div",{className:"boomi-agent-thread-separator"},`${tt}-sep`))}),Re},[i]),pe=Re=>{const je=(Re.name||"").toLowerCase(),ot=je.lastIndexOf(".");return ot>=0?je.slice(ot):""},ye=Re=>{if(!I.length)return!0;const je=pe(Re);return!!je&&I.includes(je)},de=I.length?I.join(","):void 0,Ve=Re=>{const je=[],ot=[...d],tt=ot.reduce((vt,St)=>vt+((St==null?void 0:St.size)||0),0);for(const vt of Array.from(Re)){if(!ye(vt))continue;if(ot.length+je.length>=Q||tt+je.reduce((Nt,an)=>Nt+an.size,0)+vt.size>J)break;je.push(vt)}je.length&&h([...ot,...je])},De=Re=>{h(je=>je.filter((ot,tt)=>tt!==Re))},qe=()=>{const Re=D.current;Re&&(Re.style.height="auto",Re.style.height=`${Math.min(Re.scrollHeight,720)}px`)};Y.useEffect(()=>{qe()},[c]);const et=Re=>{k&&(Re.preventDefault(),Re.stopPropagation(),S(!0))},mt=Re=>{k&&(Re.preventDefault(),Re.stopPropagation(),S(!1))},xt=Re=>{var je,ot;k&&(Re.preventDefault(),Re.stopPropagation(),S(!1),(ot=(je=Re.dataTransfer)==null?void 0:je.files)!=null&&ot.length&&Ve(Re.dataTransfer.files))},$t=async()=>{if(!U)return;const Re=c.trim();if(!(!Re&&d.length===0)){if(R.current=!0,ue("smooth"),d.length&&typeof g=="function"){await g({text:Re,files:d}),u(""),h([]);return}Re&&(await p(Re),u("")),d.length&&h([])}},ze=async Re=>{U&&(R.current=!0,ue("smooth"),d.length&&g?(await g({text:Re,files:d}),h([])):await p(Re))};return H.jsx("main",{className:"boomi-agent-pane flex flex-col relative h-full min-h-0",children:H.jsxs("div",{className:"flex-1 min-h-0 relative overflow-hidden",children:[H.jsx("div",{ref:T,onScroll:me,className:"h-full overflow-auto boomi-scroll bg-[var(--boomi-agent-pane-bg)] text-[var(--boomi-agent-pane-fg)]",style:{paddingBottom:C},children:f?H.jsx("div",{className:"mt-6",children:H.jsx(Ki,{message:"Loading conversation…"})}):y?H.jsx("div",{className:"h-full w-full flex items-center justify-center",children:H.jsxs("div",{className:"text-center max-w-[720px] px-6 py-10",children:[H.jsx("div",{className:"text-3xl font-extrabold mb-3",children:Z}),H.jsx("p",{className:"opacity-70",children:re})]})}):H.jsxs("div",{className:"mx-auto w-full max-w-[1140px] py-6 space-y-4 px-4 md:px-8",style:{paddingBottom:C},children:[ve,(F||(((at=(gt=E==null?void 0:E.note)==null?void 0:gt.trim())==null?void 0:at.length)??0)>0)&&H.jsx(tV,{note:E==null?void 0:E.note}),H.jsx("div",{ref:A})]})}),H.jsx("div",{className:"boomi-agent-composer pointer-events-none","aria-live":"polite",ref:O,children:H.jsx("form",{className:["pointer-events-auto w-full relative z-10",k&&m?"outline outline-2 outline-[var(--boomi-accent,#6366f1)]":""].join(" "),onSubmit:Re=>{Re.preventDefault(),$t()},onDragOver:et,onDragLeave:mt,onDrop:xt,children:H.jsxs("div",{className:"mx-auto max-w-[1024px] w-full px-4 md:px-6 py-3 space-y-2",children:[k&&d.length>0&&H.jsx("div",{className:"flex flex-wrap gap-2 items-center",children:d.map((Re,je)=>H.jsxs("span",{className:`inline-flex items-center gap-2 rounded-full px-3 py-1 text-sm border
2039
2039
  border-[var(--boomi-agent-compose-secondary-border,var(--boomi-card-border))] bg-[var(--boomi-agent-compose-secondary-bg,var(--boomi-card-bg))]`,title:`${Re.name} • ${p3(Re.size)}`,children:[H.jsx("span",{className:"truncate max-w-[260px]",children:Re.name}),H.jsx("span",{className:"opacity-60 text-xs",children:p3(Re.size)}),H.jsx("button",{type:"button",onClick:()=>De(je),className:"inline-flex items-center justify-center w-5 h-5 rounded-full hover:bg-black/5","aria-label":`Remove ${Re.name}`,children:H.jsx(oV,{})})]},`${Re.name}-${je}`))}),H.jsxs("div",{className:"flex items-end gap-2 rounded-2xl bg-[var(--boomi-agent-compose-bg,var(--boomi-card-bg))] border border-[var(--boomi-agent-compose-input-border,var(--boomi-card-border))] p-2 shadow-[0_6px_18px_rgba(15,23,42,0.08)]",children:[k&&H.jsxs(H.Fragment,{children:[H.jsx("button",{type:"button",disabled:!U,onClick:()=>{var Re;return(Re=N.current)==null?void 0:Re.click()},className:"shrink-0 inline-flex items-center justify-center rounded-lg p-2 border border-[var(--boomi-agent-compose-secondary-border,var(--boomi-card-border))] bg-[var(--boomi-agent-compose-secondary-bg,var(--boomi-card-bg))] hover:bg-[color-mix(in_srgb,var(--boomi-agent-compose-secondary-bg,var(--boomi-card-bg)) 85%,var(--boomi-agent-compose-bg,var(--boomi-card-bg)))] disabled:opacity-50",title:I.length?`Attach file (${I.join(", ")})`:"Attach file",children:H.jsx(nV,{})}),H.jsx("input",{ref:N,type:"file",multiple:!0,accept:de,className:"hidden",onChange:Re=>{const je=Re.currentTarget.files;je!=null&&je.length&&Ve(je),Re.currentTarget.value=""}})]}),P&&H.jsx("div",{className:"flex-1 min-w-0",children:H.jsx("textarea",{ref:D,value:c,onChange:Re=>{u(Re.target.value),qe()},rows:1,placeholder:k?M&&W?`Attachment Required — drop a file here or click the paperclip (supported: ${de})`:"Message...":"Message…",className:["w-full resize-none bg-transparent focus:outline-none",W?"placeholder-[var(--boomi-error-soft,var(--boomi-error-fg,#b91c1c))]/90":""].join(" "),"aria-invalid":W||void 0,"aria-describedby":W?"attachRequiredHint":void 0,onKeyDown:Re=>{if(Re.key==="Enter"&&!Re.shiftKey){if(Re.preventDefault(),W)return;$t()}}})}),H.jsx("button",{type:"submit",disabled:!U||W||!c.trim()&&d.length===0,className:"inline-flex items-center gap-2 rounded-lg px-3 py-2 bg-[var(--boomi-btn-primary-bg)] text-[var(--boomi-btn-primary-fg)] disabled:opacity-50 cursor-pointer",children:"Send"})]}),Array.isArray(B)&&B.length>0&&H.jsxs(H.Fragment,{children:[H.jsx("div",{className:"flex flex-wrap items-center justify-center gap-2 pt-1",children:B.map((Re,je)=>H.jsxs("button",{type:"button",disabled:!U,onClick:()=>void ze(Re.prompt),className:["group relative overflow-hidden","rounded-2xl px-3 py-2","border border-[var(--boomi-card-border)]","bg-[var(--boomi-card-bg)]/70 backdrop-blur-[1px]","hover:shadow hover:-translate-y-[1px] transition-all","disabled:opacity-50 disabled:cursor-not-allowed"].join(" "),title:Re.prompt,children:[H.jsx("span",{className:"pointer-events-none absolute inset-0 -translate-x-full group-hover:translate-x-0 transition will-change-transform [background:linear-gradient(90deg,transparent,rgba(255,255,255,.08),transparent)]"}),H.jsx("span",{className:"text-sm font-medium",children:Re.title})]},`${Re.title}-${je}`))}),P&&H.jsx("div",{className:"flex flex-wrap items-center justify-center gap-2 pt-1",children:H.jsx("div",{className:"text-[11px] opacity-60",children:"Press Enter to send • Shift + Enter for new line"})})]})]})})})]})})}/**
2040
2040
  * @file browseSessionStore.ts
2041
2041
  * @license BSD-2-Clause
@@ -2091,7 +2091,7 @@ guard ^\\s*
2091
2091
  * Commonly used to indicate background processing or data fetching.
2092
2092
  *
2093
2093
  * @return {JSX.Element} The rendered loading spinner component.
2094
- */const UC=({message:t="Loading...",variant:e="full"})=>{const i=e==="contained"?"boomi-spinner-overlay boomi-spinner-overlay--contained":"boomi-spinner-overlay";return H.jsx("div",{className:i,children:H.jsxs("div",{className:"boomi-spinner-container",children:[H.jsxs("div",{className:"boomi-spinner-ring-wrap",children:[H.jsx("div",{className:"boomi-spinner-ring"}),H.jsx("div",{className:"boomi-spinner-ring-ping"})]}),H.jsx("span",{className:"boomi-spinner-message",children:t})]})})},aV=Y.forwardRef(({componentKey:t,integration:e,onSubmit:i,setIsLoading:a,onCancel:E},p)=>{var ve,pe,ye,de,Ve,De,qe,et,mt,xt,$t,ze,tt,ct,gt,at,Re,je;const{boomiConfig:g,setPageIsLoading:y}=Xn(),f=Y.useRef(null),{updateFromCombined:b,editedConnections:c}=v6(),{extensions:u,rawExtensions:d,isLoading:h,fetchEnvironmentExtensions:m}=y6(),[S,T]=Y.useState(null),[A,N]=Y.useState(null),{fetchOauth2Url:O}=E6(),{fetchEnvironmentExtensionConnectionStatus:D}=w6(),[R,C]=Y.useState({}),[$,F]=Y.useState({}),[U,j]=Y.useState({}),X=Y.useRef(null),P=Y.useRef({}),B=(it,rt)=>`${it}:${rt}`,[k,M]=Y.useState(!1),I=(ve=g==null?void 0:g.agents)==null?void 0:ve[e.integrationPackId||""],W=((pe=I==null?void 0:I.ui)==null?void 0:pe.mode)==="modal",Q=it=>{W?M(it):y(it),a==null||a(it)},J=async()=>{var it;T(null),Q(!0);try{const rt=(it=f.current)==null?void 0:it.validateAndSubmit();if(!rt||!e.environmentId)return Le.warn("Connector form is invalid or missing environmentId"),!1;const vt=e.installationType==="SINGLE"||!1;return await b(d??[],rt??[],e.environmentId,e.id||"",vt),i==null||i(),!0}catch(rt){return T(rt.message||"Failed to update environment extensions"),Le.error("Update error:",rt),!1}finally{Q(!1)}};Y.useImperativeHandle(p,()=>({submit:J}));const K=async()=>{await J()&&(E==null||E())},Z=(it,rt,vt)=>{const St=B(it,rt),Nt=P.current[St];Nt!=null&&Nt.interval&&window.clearInterval(Nt.interval),Nt!=null&&Nt.timeout&&window.clearTimeout(Nt.timeout),Nt!=null&&Nt.watch&&window.clearInterval(Nt.watch);const an=window.setTimeout(()=>{re(St,{success:!1,message:"Authentication timed out. Please try again.",closePopup:!0}),vt(!1)},12e4),Lt=window.setInterval(async()=>{try{const Et=await D(e.environmentId,e.id||"",it,rt);!!(Et===!0||Et!=null&&Et.connected||(Et==null?void 0:Et.status)==="CONNECTED")?(re(St,{success:!0,message:null,closePopup:!0}),await m([],e.environmentId,e.id||"",!0),vt(!0)):j(Ge=>({...Ge,[St]:"Waiting for connection to complete…"}))}catch(Et){Le.warn("Polling error (connection status)",Et)}},5e3),_t=window.setInterval(()=>{X.current&&X.current.closed&&(re(St,{success:!1,message:"Authorization window closed.",closePopup:!1}),vt(!1))},500);P.current[St]={interval:Lt,timeout:an,watch:_t}},re=(it,{success:rt,message:vt,closePopup:St=!0})=>{const Nt=P.current[it];if(Nt!=null&&Nt.interval&&window.clearInterval(Nt.interval),Nt!=null&&Nt.timeout&&window.clearTimeout(Nt.timeout),Nt!=null&&Nt.watch&&window.clearInterval(Nt.watch),delete P.current[it],C(an=>({...an,[it]:!1})),F(an=>({...an,[it]:rt})),vt!==void 0&&j(an=>({...an,[it]:vt})),St)try{X.current&&!X.current.closed&&X.current.close()}catch{}},te=async(it,rt)=>{const vt=B(it,rt);Le.log("Authenticate connection:",{connectionId:it,fieldId:rt}),C(Et=>({...Et,[vt]:!0})),F(Et=>({...Et,[vt]:!1})),j(Et=>({...Et,[vt]:"Opening authorization window…"}));const St=600,Nt=750,an=window.screenX+Math.max(0,(window.outerWidth-St)/2),Lt=window.screenY+Math.max(0,(window.outerHeight-Nt)/2),_t=window.open("","oauth2_auth",`width=${St},height=${Nt},left=${an},top=${Lt},resizable,scrollbars`);X.current=_t??null;try{const Et=await O(e.id||"",e.environmentId,it,rt);X.current?X.current.location.href=Et:window.location.assign(Et),j(xe=>({...xe,[vt]:"Please complete authentication in the new window…"})),Z(it,rt,xe=>{if(!xe)try{X.current&&!X.current.closed&&X.current.close()}catch{}})}catch(Et){X.current&&!X.current.closed&&X.current.close(),C(Ge=>({...Ge,[vt]:!1})),j(Ge=>({...Ge,[vt]:null}));const xe=(Et==null?void 0:Et.message)||"Failed to fetch OAuth2 URL";T(xe),Le.error("Failed to fetch oauth2Url",Et)}};Y.useEffect(()=>{c&&c.length>0&&N(c)},[c]),Y.useEffect(()=>{u&&N(u)},[u]),Y.useEffect(()=>()=>{Object.values(P.current).forEach(({interval:it,timeout:rt})=>{it&&window.clearInterval(it),rt&&window.clearTimeout(rt)}),X.current&&!X.current.closed&&X.current.close()},[]),Y.useEffect(()=>{if(!(e!=null&&e.environmentId)||!(e!=null&&e.id))return;const it=e.installationType==="SINGLE"||!1;m([],e.environmentId,e.id,it).catch(rt=>{T(rt.message),Le.error("Failed to fetch environment extensions",rt)})},[e.environmentId,e.id]);const ae=((De=(Ve=(de=(ye=g==null?void 0:g.agents)==null?void 0:ye[t])==null?void 0:de.form)==null?void 0:Ve.configureAgent)==null?void 0:De.showTitle)??!0,se=((xt=(mt=(et=(qe=g==null?void 0:g.agents)==null?void 0:qe[t])==null?void 0:et.form)==null?void 0:mt.configureAgent)==null?void 0:xt.title)??"Update Connections",ie=((ct=(tt=(ze=($t=g==null?void 0:g.agents)==null?void 0:$t[t])==null?void 0:ze.form)==null?void 0:tt.configureAgent)==null?void 0:ct.showDescription)??!0,ue=((je=(Re=(at=(gt=g==null?void 0:g.agents)==null?void 0:gt[t])==null?void 0:at.form)==null?void 0:Re.configureAgent)==null?void 0:je.description)??"Please provide the necessary information to make connections to your target systems.",me=H.jsx(H.Fragment,{children:H.jsxs("div",{className:"boomi-agent-update p-2",children:[W&&k&&H.jsx(UC,{variant:"contained",message:"Updating..."}),h&&!A?H.jsx("div",{className:"boomi-center pt-6 m-6",children:H.jsx(Ki,{message:"Loading..."})}):H.jsxs("div",{className:"boomi-agent-update__body",children:[S&&H.jsx(tu,{error:{header:"Error",message:S,errorType:"error"}}),ae||ie?H.jsxs("div",{className:"boomi-agent-update__header",children:[ae&&H.jsx("div",{className:"boomi-agent-update__title",children:se}),ie&&H.jsx("div",{className:"boomi-agent-update__desc",children:ue})]}):null,H.jsx($C,{ref:f,extensions:A||[],onAuthConnection:te,authBusy:R,authConnected:$,authMessage:U,propertiesName:"Agent Properties"}),H.jsxs("div",{className:"boomi-agent-update__actions",children:[H.jsx(Bn,{toggle:!1,primary:!1,showIcon:!1,label:"Cancel",onClick:E}),H.jsx(Bn,{toggle:!1,primary:!0,showIcon:!1,label:"Save",onClick:K})]})]})]})});return H.jsx(H.Fragment,{children:me})});/*!
2094
+ */const UC=({message:t="Loading...",variant:e="full"})=>{const i=e==="contained"?"boomi-spinner-overlay boomi-spinner-overlay--contained":"boomi-spinner-overlay";return H.jsx("div",{className:i,children:H.jsxs("div",{className:"boomi-spinner-container",children:[H.jsxs("div",{className:"boomi-spinner-ring-wrap",children:[H.jsx("div",{className:"boomi-spinner-ring"}),H.jsx("div",{className:"boomi-spinner-ring-ping"})]}),H.jsx("span",{className:"boomi-spinner-message",children:t})]})})},aV=Y.forwardRef(({componentKey:t,integration:e,onSubmit:i,setIsLoading:a,onCancel:E},p)=>{var ve,pe,ye,de,Ve,De,qe,et,mt,xt,$t,ze,nt,ct,gt,at,Re,je;const{boomiConfig:g,setPageIsLoading:y}=Xn(),f=Y.useRef(null),{updateFromCombined:b,editedConnections:c}=v6(),{extensions:u,rawExtensions:d,isLoading:h,fetchEnvironmentExtensions:m}=y6(),[S,T]=Y.useState(null),[A,N]=Y.useState(null),{fetchOauth2Url:O}=E6(),{fetchEnvironmentExtensionConnectionStatus:D}=w6(),[R,C]=Y.useState({}),[$,F]=Y.useState({}),[U,j]=Y.useState({}),X=Y.useRef(null),P=Y.useRef({}),B=(ot,tt)=>`${ot}:${tt}`,[k,M]=Y.useState(!1),I=(ve=g==null?void 0:g.agents)==null?void 0:ve[e.integrationPackId||""],W=((pe=I==null?void 0:I.ui)==null?void 0:pe.mode)==="modal",Q=ot=>{W?M(ot):y(ot),a==null||a(ot)},J=async()=>{var ot;T(null),Q(!0);try{const tt=(ot=f.current)==null?void 0:ot.validateAndSubmit();if(!tt||!e.environmentId)return Le.warn("Connector form is invalid or missing environmentId"),!1;const vt=e.installationType==="SINGLE"||!1;return await b(d??[],tt??[],e.environmentId,e.id||"",vt),i==null||i(),!0}catch(tt){return T(tt.message||"Failed to update environment extensions"),Le.error("Update error:",tt),!1}finally{Q(!1)}};Y.useImperativeHandle(p,()=>({submit:J}));const K=async()=>{await J()&&(E==null||E())},Z=(ot,tt,vt)=>{const St=B(ot,tt),Nt=P.current[St];Nt!=null&&Nt.interval&&window.clearInterval(Nt.interval),Nt!=null&&Nt.timeout&&window.clearTimeout(Nt.timeout),Nt!=null&&Nt.watch&&window.clearInterval(Nt.watch);const an=window.setTimeout(()=>{re(St,{success:!1,message:"Authentication timed out. Please try again.",closePopup:!0}),vt(!1)},12e4),Lt=window.setInterval(async()=>{try{const Et=await D(e.environmentId,e.id||"",ot,tt);!!(Et===!0||Et!=null&&Et.connected||(Et==null?void 0:Et.status)==="CONNECTED")?(re(St,{success:!0,message:null,closePopup:!0}),await m([],e.environmentId,e.id||"",!0),vt(!0)):j(Ge=>({...Ge,[St]:"Waiting for connection to complete…"}))}catch(Et){Le.warn("Polling error (connection status)",Et)}},5e3),_t=window.setInterval(()=>{X.current&&X.current.closed&&(re(St,{success:!1,message:"Authorization window closed.",closePopup:!1}),vt(!1))},500);P.current[St]={interval:Lt,timeout:an,watch:_t}},re=(ot,{success:tt,message:vt,closePopup:St=!0})=>{const Nt=P.current[ot];if(Nt!=null&&Nt.interval&&window.clearInterval(Nt.interval),Nt!=null&&Nt.timeout&&window.clearTimeout(Nt.timeout),Nt!=null&&Nt.watch&&window.clearInterval(Nt.watch),delete P.current[ot],C(an=>({...an,[ot]:!1})),F(an=>({...an,[ot]:tt})),vt!==void 0&&j(an=>({...an,[ot]:vt})),St)try{X.current&&!X.current.closed&&X.current.close()}catch{}},te=async(ot,tt)=>{const vt=B(ot,tt);Le.log("Authenticate connection:",{connectionId:ot,fieldId:tt}),C(Et=>({...Et,[vt]:!0})),F(Et=>({...Et,[vt]:!1})),j(Et=>({...Et,[vt]:"Opening authorization window…"}));const St=600,Nt=750,an=window.screenX+Math.max(0,(window.outerWidth-St)/2),Lt=window.screenY+Math.max(0,(window.outerHeight-Nt)/2),_t=window.open("","oauth2_auth",`width=${St},height=${Nt},left=${an},top=${Lt},resizable,scrollbars`);X.current=_t??null;try{const Et=await O(e.id||"",e.environmentId,ot,tt);X.current?X.current.location.href=Et:window.location.assign(Et),j(xe=>({...xe,[vt]:"Please complete authentication in the new window…"})),Z(ot,tt,xe=>{if(!xe)try{X.current&&!X.current.closed&&X.current.close()}catch{}})}catch(Et){X.current&&!X.current.closed&&X.current.close(),C(Ge=>({...Ge,[vt]:!1})),j(Ge=>({...Ge,[vt]:null}));const xe=(Et==null?void 0:Et.message)||"Failed to fetch OAuth2 URL";T(xe),Le.error("Failed to fetch oauth2Url",Et)}};Y.useEffect(()=>{c&&c.length>0&&N(c)},[c]),Y.useEffect(()=>{u&&N(u)},[u]),Y.useEffect(()=>()=>{Object.values(P.current).forEach(({interval:ot,timeout:tt})=>{ot&&window.clearInterval(ot),tt&&window.clearTimeout(tt)}),X.current&&!X.current.closed&&X.current.close()},[]),Y.useEffect(()=>{if(!(e!=null&&e.environmentId)||!(e!=null&&e.id))return;const ot=e.installationType==="SINGLE"||!1;m([],e.environmentId,e.id,ot).catch(tt=>{T(tt.message),Le.error("Failed to fetch environment extensions",tt)})},[e.environmentId,e.id]);const ae=((De=(Ve=(de=(ye=g==null?void 0:g.agents)==null?void 0:ye[t])==null?void 0:de.form)==null?void 0:Ve.configureAgent)==null?void 0:De.showTitle)??!0,se=((xt=(mt=(et=(qe=g==null?void 0:g.agents)==null?void 0:qe[t])==null?void 0:et.form)==null?void 0:mt.configureAgent)==null?void 0:xt.title)??"Update Connections",ie=((ct=(nt=(ze=($t=g==null?void 0:g.agents)==null?void 0:$t[t])==null?void 0:ze.form)==null?void 0:nt.configureAgent)==null?void 0:ct.showDescription)??!0,ue=((je=(Re=(at=(gt=g==null?void 0:g.agents)==null?void 0:gt[t])==null?void 0:at.form)==null?void 0:Re.configureAgent)==null?void 0:je.description)??"Please provide the necessary information to make connections to your target systems.",me=H.jsx(H.Fragment,{children:H.jsxs("div",{className:"boomi-agent-update p-2",children:[W&&k&&H.jsx(UC,{variant:"contained",message:"Updating..."}),h&&!A?H.jsx("div",{className:"boomi-center pt-6 m-6",children:H.jsx(Ki,{message:"Loading..."})}):H.jsxs("div",{className:"boomi-agent-update__body",children:[S&&H.jsx(tu,{error:{header:"Error",message:S,errorType:"error"}}),ae||ie?H.jsxs("div",{className:"boomi-agent-update__header",children:[ae&&H.jsx("div",{className:"boomi-agent-update__title",children:se}),ie&&H.jsx("div",{className:"boomi-agent-update__desc",children:ue})]}):null,H.jsx($C,{ref:f,extensions:A||[],onAuthConnection:te,authBusy:R,authConnected:$,authMessage:U,propertiesName:"Agent Properties"}),H.jsxs("div",{className:"boomi-agent-update__actions",children:[H.jsx(Bn,{toggle:!1,primary:!1,showIcon:!1,label:"Cancel",onClick:E}),H.jsx(Bn,{toggle:!1,primary:!0,showIcon:!1,label:"Save",onClick:K})]})]})]})});return H.jsx(H.Fragment,{children:me})});/*!
2095
2095
  * sweetalert2 v11.23.0
2096
2096
  * Released under the MIT License.
2097
2097
  */function S6(t,e,i){if(typeof t=="function"?t===e:t.has(e))return arguments.length<3?e:i;throw new TypeError("Private element is not present on this object")}function sV(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function b3(t,e){return t.get(S6(t,e))}function lV(t,e,i){sV(t,e),e.set(t,i)}function cV(t,e,i){return t.set(S6(t,e),i),i}const uV=100,Ft={},dV=()=>{Ft.previousActiveElement instanceof HTMLElement?(Ft.previousActiveElement.focus(),Ft.previousActiveElement=null):document.body&&document.body.focus()},fV=t=>new Promise(e=>{if(!t)return e();const i=window.scrollX,a=window.scrollY;Ft.restoreFocusTimeout=setTimeout(()=>{dV(),e()},uV),window.scrollTo(i,a)}),T6="swal2-",hV=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"],Be=hV.reduce((t,e)=>(t[e]=T6+e,t),{}),mV=["success","warning","info","question","error"],GS=mV.reduce((t,e)=>(t[e]=T6+e,t),{}),A6="SweetAlert2:",HC=t=>t.charAt(0).toUpperCase()+t.slice(1),ha=t=>{console.warn(`${A6} ${typeof t=="object"?t.join(" "):t}`)},vp=t=>{console.error(`${A6} ${t}`)},v3=[],pV=t=>{v3.includes(t)||(v3.push(t),ha(t))},x6=(t,e=null)=>{pV(`"${t}" is deprecated and will be removed in the next major release.${e?` Use "${e}" instead.`:""}`)},LT=t=>typeof t=="function"?t():t,jC=t=>t&&typeof t.toPromise=="function",BE=t=>jC(t)?t.toPromise():Promise.resolve(t),zC=t=>t&&Promise.resolve(t)===t,ba=()=>document.body.querySelector(`.${Be.container}`),FE=t=>{const e=ba();return e?e.querySelector(t):null},_s=t=>FE(`.${t}`),Yn=()=>_s(Be.popup),Jb=()=>_s(Be.icon),gV=()=>_s(Be["icon-content"]),_6=()=>_s(Be.title),BC=()=>_s(Be["html-container"]),C6=()=>_s(Be.image),FC=()=>_s(Be["progress-steps"]),OT=()=>_s(Be["validation-message"]),ou=()=>FE(`.${Be.actions} .${Be.confirm}`),ev=()=>FE(`.${Be.actions} .${Be.cancel}`),yp=()=>FE(`.${Be.actions} .${Be.deny}`),bV=()=>_s(Be["input-label"]),tv=()=>FE(`.${Be.loader}`),PE=()=>_s(Be.actions),N6=()=>_s(Be.footer),DT=()=>_s(Be["timer-progress-bar"]),PC=()=>_s(Be.close),vV=`
@@ -2205,8 +2205,8 @@ https://sweetalert2.github.io/#ajax-request`),zQ(t),typeof t.title=="string"&&(t
2205
2205
  * Accepts optional children to display inside the footer container.
2206
2206
  *
2207
2207
  * @return {JSX.Element} A div containing the footer content.
2208
- */const vU=({children:t})=>H.jsx("div",{children:t});/*! @license DOMPurify 3.2.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.7/LICENSE */const{entries:yU,setPrototypeOf:N3,isFrozen:JQ,getPrototypeOf:eW,getOwnPropertyDescriptor:tW}=Object;let{freeze:ma,seal:Al,create:EU}=Object,{apply:I_,construct:$_}=typeof Reflect<"u"&&Reflect;ma||(ma=function(e){return e});Al||(Al=function(e){return e});I_||(I_=function(e,i){for(var a=arguments.length,E=new Array(a>2?a-2:0),p=2;p<a;p++)E[p-2]=arguments[p];return e.apply(i,E)});$_||($_=function(e){for(var i=arguments.length,a=new Array(i>1?i-1:0),E=1;E<i;E++)a[E-1]=arguments[E];return new e(...a)});const ES=pa(Array.prototype.forEach),nW=pa(Array.prototype.lastIndexOf),R3=pa(Array.prototype.pop),Wy=pa(Array.prototype.push),oW=pa(Array.prototype.splice),RS=pa(String.prototype.toLowerCase),Gx=pa(String.prototype.toString),Qx=pa(String.prototype.match),Yy=pa(String.prototype.replace),iW=pa(String.prototype.indexOf),rW=pa(String.prototype.trim),ec=pa(Object.prototype.hasOwnProperty),ca=pa(RegExp.prototype.test),Xy=aW(TypeError);function pa(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var i=arguments.length,a=new Array(i>1?i-1:0),E=1;E<i;E++)a[E-1]=arguments[E];return I_(t,e,a)}}function aW(t){return function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];return $_(t,i)}}function _n(t,e){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:RS;N3&&N3(t,null);let a=e.length;for(;a--;){let E=e[a];if(typeof E=="string"){const p=i(E);p!==E&&(JQ(e)||(e[a]=p),E=p)}t[E]=!0}return t}function sW(t){for(let e=0;e<t.length;e++)ec(t,e)||(t[e]=null);return t}function hd(t){const e=EU(null);for(const[i,a]of yU(t))ec(t,i)&&(Array.isArray(a)?e[i]=sW(a):a&&typeof a=="object"&&a.constructor===Object?e[i]=hd(a):e[i]=a);return e}function qy(t,e){for(;t!==null;){const a=tW(t,e);if(a){if(a.get)return pa(a.get);if(typeof a.value=="function")return pa(a.value)}t=eW(t)}function i(){return null}return i}const L3=ma(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Wx=ma(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","slot","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Yx=ma(["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"]),lW=ma(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Xx=ma(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),cW=ma(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),O3=ma(["#text"]),D3=ma(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),qx=ma(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),M3=ma(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),wS=ma(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),uW=Al(/\{\{[\w\W]*|[\w\W]*\}\}/gm),dW=Al(/<%[\w\W]*|[\w\W]*%>/gm),fW=Al(/\$\{[\w\W]*/gm),hW=Al(/^data-[\-\w.\u00B7-\uFFFF]+$/),mW=Al(/^aria-[\-\w]+$/),wU=Al(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),pW=Al(/^(?:\w+script|data):/i),gW=Al(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),SU=Al(/^html$/i),bW=Al(/^[a-z][.\w]*(-[.\w]+)+$/i);var k3=Object.freeze({__proto__:null,ARIA_ATTR:mW,ATTR_WHITESPACE:gW,CUSTOM_ELEMENT:bW,DATA_ATTR:hW,DOCTYPE_NAME:SU,ERB_EXPR:dW,IS_ALLOWED_URI:wU,IS_SCRIPT_OR_DATA:pW,MUSTACHE_EXPR:uW,TMPLIT_EXPR:fW});const Ky={element:1,text:3,progressingInstruction:7,comment:8,document:9},vW=function(){return typeof window>"u"?null:window},yW=function(e,i){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let a=null;const E="data-tt-policy-suffix";i&&i.hasAttribute(E)&&(a=i.getAttribute(E));const p="dompurify"+(a?"#"+a:"");try{return e.createPolicy(p,{createHTML(g){return g},createScriptURL(g){return g}})}catch{return console.warn("TrustedTypes policy "+p+" could not be created."),null}},I3=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function TU(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:vW();const e=nt=>TU(nt);if(e.version="3.2.7",e.removed=[],!t||!t.document||t.document.nodeType!==Ky.document||!t.Element)return e.isSupported=!1,e;let{document:i}=t;const a=i,E=a.currentScript,{DocumentFragment:p,HTMLTemplateElement:g,Node:y,Element:f,NodeFilter:b,NamedNodeMap:c=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:u,DOMParser:d,trustedTypes:h}=t,m=f.prototype,S=qy(m,"cloneNode"),T=qy(m,"remove"),A=qy(m,"nextSibling"),N=qy(m,"childNodes"),O=qy(m,"parentNode");if(typeof g=="function"){const nt=i.createElement("template");nt.content&&nt.content.ownerDocument&&(i=nt.content.ownerDocument)}let D,R="";const{implementation:C,createNodeIterator:$,createDocumentFragment:F,getElementsByTagName:U}=i,{importNode:j}=a;let X=I3();e.isSupported=typeof yU=="function"&&typeof O=="function"&&C&&C.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:P,ERB_EXPR:B,TMPLIT_EXPR:k,DATA_ATTR:M,ARIA_ATTR:I,IS_SCRIPT_OR_DATA:W,ATTR_WHITESPACE:Q,CUSTOM_ELEMENT:J}=k3;let{IS_ALLOWED_URI:K}=k3,Z=null;const re=_n({},[...L3,...Wx,...Yx,...Xx,...O3]);let te=null;const ae=_n({},[...D3,...qx,...M3,...wS]);let se=Object.seal(EU(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ie=null,ue=null,me=!0,ve=!0,pe=!1,ye=!0,de=!1,Ve=!0,De=!1,qe=!1,et=!1,mt=!1,xt=!1,$t=!1,ze=!0,tt=!1;const ct="user-content-";let gt=!0,at=!1,Re={},je=null;const it=_n({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let rt=null;const vt=_n({},["audio","video","img","source","image","track"]);let St=null;const Nt=_n({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),an="http://www.w3.org/1998/Math/MathML",Lt="http://www.w3.org/2000/svg",_t="http://www.w3.org/1999/xhtml";let Et=_t,xe=!1,Ge=null;const bt=_n({},[an,Lt,_t],Gx);let Dt=_n({},["mi","mo","mn","ms","mtext"]),ut=_n({},["annotation-xml"]);const yt=_n({},["title","style","font","a","script"]);let Ht=null;const jt=["application/xhtml+xml","text/html"],Ce="text/html";let Ze=null,ft=null;const Tt=i.createElement("form"),Mt=function(Ee){return Ee instanceof RegExp||Ee instanceof Function},en=function(){let Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ft&&ft===Ee)){if((!Ee||typeof Ee!="object")&&(Ee={}),Ee=hd(Ee),Ht=jt.indexOf(Ee.PARSER_MEDIA_TYPE)===-1?Ce:Ee.PARSER_MEDIA_TYPE,Ze=Ht==="application/xhtml+xml"?Gx:RS,Z=ec(Ee,"ALLOWED_TAGS")?_n({},Ee.ALLOWED_TAGS,Ze):re,te=ec(Ee,"ALLOWED_ATTR")?_n({},Ee.ALLOWED_ATTR,Ze):ae,Ge=ec(Ee,"ALLOWED_NAMESPACES")?_n({},Ee.ALLOWED_NAMESPACES,Gx):bt,St=ec(Ee,"ADD_URI_SAFE_ATTR")?_n(hd(Nt),Ee.ADD_URI_SAFE_ATTR,Ze):Nt,rt=ec(Ee,"ADD_DATA_URI_TAGS")?_n(hd(vt),Ee.ADD_DATA_URI_TAGS,Ze):vt,je=ec(Ee,"FORBID_CONTENTS")?_n({},Ee.FORBID_CONTENTS,Ze):it,ie=ec(Ee,"FORBID_TAGS")?_n({},Ee.FORBID_TAGS,Ze):hd({}),ue=ec(Ee,"FORBID_ATTR")?_n({},Ee.FORBID_ATTR,Ze):hd({}),Re=ec(Ee,"USE_PROFILES")?Ee.USE_PROFILES:!1,me=Ee.ALLOW_ARIA_ATTR!==!1,ve=Ee.ALLOW_DATA_ATTR!==!1,pe=Ee.ALLOW_UNKNOWN_PROTOCOLS||!1,ye=Ee.ALLOW_SELF_CLOSE_IN_ATTR!==!1,de=Ee.SAFE_FOR_TEMPLATES||!1,Ve=Ee.SAFE_FOR_XML!==!1,De=Ee.WHOLE_DOCUMENT||!1,mt=Ee.RETURN_DOM||!1,xt=Ee.RETURN_DOM_FRAGMENT||!1,$t=Ee.RETURN_TRUSTED_TYPE||!1,et=Ee.FORCE_BODY||!1,ze=Ee.SANITIZE_DOM!==!1,tt=Ee.SANITIZE_NAMED_PROPS||!1,gt=Ee.KEEP_CONTENT!==!1,at=Ee.IN_PLACE||!1,K=Ee.ALLOWED_URI_REGEXP||wU,Et=Ee.NAMESPACE||_t,Dt=Ee.MATHML_TEXT_INTEGRATION_POINTS||Dt,ut=Ee.HTML_INTEGRATION_POINTS||ut,se=Ee.CUSTOM_ELEMENT_HANDLING||{},Ee.CUSTOM_ELEMENT_HANDLING&&Mt(Ee.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(se.tagNameCheck=Ee.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Ee.CUSTOM_ELEMENT_HANDLING&&Mt(Ee.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(se.attributeNameCheck=Ee.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Ee.CUSTOM_ELEMENT_HANDLING&&typeof Ee.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(se.allowCustomizedBuiltInElements=Ee.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),de&&(ve=!1),xt&&(mt=!0),Re&&(Z=_n({},O3),te=[],Re.html===!0&&(_n(Z,L3),_n(te,D3)),Re.svg===!0&&(_n(Z,Wx),_n(te,qx),_n(te,wS)),Re.svgFilters===!0&&(_n(Z,Yx),_n(te,qx),_n(te,wS)),Re.mathMl===!0&&(_n(Z,Xx),_n(te,M3),_n(te,wS))),Ee.ADD_TAGS&&(Z===re&&(Z=hd(Z)),_n(Z,Ee.ADD_TAGS,Ze)),Ee.ADD_ATTR&&(te===ae&&(te=hd(te)),_n(te,Ee.ADD_ATTR,Ze)),Ee.ADD_URI_SAFE_ATTR&&_n(St,Ee.ADD_URI_SAFE_ATTR,Ze),Ee.FORBID_CONTENTS&&(je===it&&(je=hd(je)),_n(je,Ee.FORBID_CONTENTS,Ze)),gt&&(Z["#text"]=!0),De&&_n(Z,["html","head","body"]),Z.table&&(_n(Z,["tbody"]),delete ie.tbody),Ee.TRUSTED_TYPES_POLICY){if(typeof Ee.TRUSTED_TYPES_POLICY.createHTML!="function")throw Xy('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Ee.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Xy('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');D=Ee.TRUSTED_TYPES_POLICY,R=D.createHTML("")}else D===void 0&&(D=yW(h,E)),D!==null&&typeof R=="string"&&(R=D.createHTML(""));ma&&ma(Ee),ft=Ee}},Gt=_n({},[...Wx,...Yx,...lW]),sn=_n({},[...Xx,...cW]),Rn=function(Ee){let Ke=O(Ee);(!Ke||!Ke.tagName)&&(Ke={namespaceURI:Et,tagName:"template"});const st=RS(Ee.tagName),on=RS(Ke.tagName);return Ge[Ee.namespaceURI]?Ee.namespaceURI===Lt?Ke.namespaceURI===_t?st==="svg":Ke.namespaceURI===an?st==="svg"&&(on==="annotation-xml"||Dt[on]):!!Gt[st]:Ee.namespaceURI===an?Ke.namespaceURI===_t?st==="math":Ke.namespaceURI===Lt?st==="math"&&ut[on]:!!sn[st]:Ee.namespaceURI===_t?Ke.namespaceURI===Lt&&!ut[on]||Ke.namespaceURI===an&&!Dt[on]?!1:!sn[st]&&(yt[st]||!Gt[st]):!!(Ht==="application/xhtml+xml"&&Ge[Ee.namespaceURI]):!1},Yt=function(Ee){Wy(e.removed,{element:Ee});try{O(Ee).removeChild(Ee)}catch{T(Ee)}},Je=function(Ee,Ke){try{Wy(e.removed,{attribute:Ke.getAttributeNode(Ee),from:Ke})}catch{Wy(e.removed,{attribute:null,from:Ke})}if(Ke.removeAttribute(Ee),Ee==="is")if(mt||xt)try{Yt(Ke)}catch{}else try{Ke.setAttribute(Ee,"")}catch{}},Fn=function(Ee){let Ke=null,st=null;if(et)Ee="<remove></remove>"+Ee;else{const Ln=Qx(Ee,/^[\r\n\t ]+/);st=Ln&&Ln[0]}Ht==="application/xhtml+xml"&&Et===_t&&(Ee='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Ee+"</body></html>");const on=D?D.createHTML(Ee):Ee;if(Et===_t)try{Ke=new d().parseFromString(on,Ht)}catch{}if(!Ke||!Ke.documentElement){Ke=C.createDocument(Et,"template",null);try{Ke.documentElement.innerHTML=xe?R:on}catch{}}const Zn=Ke.body||Ke.documentElement;return Ee&&st&&Zn.insertBefore(i.createTextNode(st),Zn.childNodes[0]||null),Et===_t?U.call(Ke,De?"html":"body")[0]:De?Ke.documentElement:Zn},Rt=function(Ee){return $.call(Ee.ownerDocument||Ee,Ee,b.SHOW_ELEMENT|b.SHOW_COMMENT|b.SHOW_TEXT|b.SHOW_PROCESSING_INSTRUCTION|b.SHOW_CDATA_SECTION,null)},ni=function(Ee){return Ee instanceof u&&(typeof Ee.nodeName!="string"||typeof Ee.textContent!="string"||typeof Ee.removeChild!="function"||!(Ee.attributes instanceof c)||typeof Ee.removeAttribute!="function"||typeof Ee.setAttribute!="function"||typeof Ee.namespaceURI!="string"||typeof Ee.insertBefore!="function"||typeof Ee.hasChildNodes!="function")},vo=function(Ee){return typeof y=="function"&&Ee instanceof y};function Xt(nt,Ee,Ke){ES(nt,st=>{st.call(e,Ee,Ke,ft)})}const Pn=function(Ee){let Ke=null;if(Xt(X.beforeSanitizeElements,Ee,null),ni(Ee))return Yt(Ee),!0;const st=Ze(Ee.nodeName);if(Xt(X.uponSanitizeElement,Ee,{tagName:st,allowedTags:Z}),Ve&&Ee.hasChildNodes()&&!vo(Ee.firstElementChild)&&ca(/<[/\w!]/g,Ee.innerHTML)&&ca(/<[/\w!]/g,Ee.textContent)||Ee.nodeType===Ky.progressingInstruction||Ve&&Ee.nodeType===Ky.comment&&ca(/<[/\w]/g,Ee.data))return Yt(Ee),!0;if(!Z[st]||ie[st]){if(!ie[st]&&mo(st)&&(se.tagNameCheck instanceof RegExp&&ca(se.tagNameCheck,st)||se.tagNameCheck instanceof Function&&se.tagNameCheck(st)))return!1;if(gt&&!je[st]){const on=O(Ee)||Ee.parentNode,Zn=N(Ee)||Ee.childNodes;if(Zn&&on){const Ln=Zn.length;for(let ot=Ln-1;ot>=0;--ot){const vn=S(Zn[ot],!0);vn.__removalCount=(Ee.__removalCount||0)+1,on.insertBefore(vn,A(Ee))}}}return Yt(Ee),!0}return Ee instanceof f&&!Rn(Ee)||(st==="noscript"||st==="noembed"||st==="noframes")&&ca(/<\/no(script|embed|frames)/i,Ee.innerHTML)?(Yt(Ee),!0):(de&&Ee.nodeType===Ky.text&&(Ke=Ee.textContent,ES([P,B,k],on=>{Ke=Yy(Ke,on," ")}),Ee.textContent!==Ke&&(Wy(e.removed,{element:Ee.cloneNode()}),Ee.textContent=Ke)),Xt(X.afterSanitizeElements,Ee,null),!1)},zo=function(Ee,Ke,st){if(ze&&(Ke==="id"||Ke==="name")&&(st in i||st in Tt))return!1;if(!(ve&&!ue[Ke]&&ca(M,Ke))){if(!(me&&ca(I,Ke))){if(!te[Ke]||ue[Ke]){if(!(mo(Ee)&&(se.tagNameCheck instanceof RegExp&&ca(se.tagNameCheck,Ee)||se.tagNameCheck instanceof Function&&se.tagNameCheck(Ee))&&(se.attributeNameCheck instanceof RegExp&&ca(se.attributeNameCheck,Ke)||se.attributeNameCheck instanceof Function&&se.attributeNameCheck(Ke,Ee))||Ke==="is"&&se.allowCustomizedBuiltInElements&&(se.tagNameCheck instanceof RegExp&&ca(se.tagNameCheck,st)||se.tagNameCheck instanceof Function&&se.tagNameCheck(st))))return!1}else if(!St[Ke]){if(!ca(K,Yy(st,Q,""))){if(!((Ke==="src"||Ke==="xlink:href"||Ke==="href")&&Ee!=="script"&&iW(st,"data:")===0&&rt[Ee])){if(!(pe&&!ca(W,Yy(st,Q,"")))){if(st)return!1}}}}}}return!0},mo=function(Ee){return Ee!=="annotation-xml"&&Qx(Ee,J)},ki=function(Ee){Xt(X.beforeSanitizeAttributes,Ee,null);const{attributes:Ke}=Ee;if(!Ke||ni(Ee))return;const st={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:te,forceKeepAttr:void 0};let on=Ke.length;for(;on--;){const Zn=Ke[on],{name:Ln,namespaceURI:ot,value:vn}=Zn,yn=Ze(Ln),gi=vn;let On=Ln==="value"?gi:rW(gi);if(st.attrName=yn,st.attrValue=On,st.keepAttr=!0,st.forceKeepAttr=void 0,Xt(X.uponSanitizeAttribute,Ee,st),On=st.attrValue,tt&&(yn==="id"||yn==="name")&&(Je(Ln,Ee),On=ct+On),Ve&&ca(/((--!?|])>)|<\/(style|title|textarea)/i,On)){Je(Ln,Ee);continue}if(yn==="attributename"&&Qx(On,"href")){Je(Ln,Ee);continue}if(st.forceKeepAttr)continue;if(!st.keepAttr){Je(Ln,Ee);continue}if(!ye&&ca(/\/>/i,On)){Je(Ln,Ee);continue}de&&ES([P,B,k],va=>{On=Yy(On,va," ")});const oi=Ze(Ee.nodeName);if(!zo(oi,yn,On)){Je(Ln,Ee);continue}if(D&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!ot)switch(h.getAttributeType(oi,yn)){case"TrustedHTML":{On=D.createHTML(On);break}case"TrustedScriptURL":{On=D.createScriptURL(On);break}}if(On!==gi)try{ot?Ee.setAttributeNS(ot,Ln,On):Ee.setAttribute(Ln,On),ni(Ee)?Yt(Ee):R3(e.removed)}catch{Je(Ln,Ee)}}Xt(X.afterSanitizeAttributes,Ee,null)},wr=function nt(Ee){let Ke=null;const st=Rt(Ee);for(Xt(X.beforeSanitizeShadowDOM,Ee,null);Ke=st.nextNode();)Xt(X.uponSanitizeShadowNode,Ke,null),Pn(Ke),ki(Ke),Ke.content instanceof p&&nt(Ke.content);Xt(X.afterSanitizeShadowDOM,Ee,null)};return e.sanitize=function(nt){let Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ke=null,st=null,on=null,Zn=null;if(xe=!nt,xe&&(nt="<!-->"),typeof nt!="string"&&!vo(nt))if(typeof nt.toString=="function"){if(nt=nt.toString(),typeof nt!="string")throw Xy("dirty is not a string, aborting")}else throw Xy("toString is not a function");if(!e.isSupported)return nt;if(qe||en(Ee),e.removed=[],typeof nt=="string"&&(at=!1),at){if(nt.nodeName){const vn=Ze(nt.nodeName);if(!Z[vn]||ie[vn])throw Xy("root node is forbidden and cannot be sanitized in-place")}}else if(nt instanceof y)Ke=Fn("<!---->"),st=Ke.ownerDocument.importNode(nt,!0),st.nodeType===Ky.element&&st.nodeName==="BODY"||st.nodeName==="HTML"?Ke=st:Ke.appendChild(st);else{if(!mt&&!de&&!De&&nt.indexOf("<")===-1)return D&&$t?D.createHTML(nt):nt;if(Ke=Fn(nt),!Ke)return mt?null:$t?R:""}Ke&&et&&Yt(Ke.firstChild);const Ln=Rt(at?nt:Ke);for(;on=Ln.nextNode();)Pn(on),ki(on),on.content instanceof p&&wr(on.content);if(at)return nt;if(mt){if(xt)for(Zn=F.call(Ke.ownerDocument);Ke.firstChild;)Zn.appendChild(Ke.firstChild);else Zn=Ke;return(te.shadowroot||te.shadowrootmode)&&(Zn=j.call(a,Zn,!0)),Zn}let ot=De?Ke.outerHTML:Ke.innerHTML;return De&&Z["!doctype"]&&Ke.ownerDocument&&Ke.ownerDocument.doctype&&Ke.ownerDocument.doctype.name&&ca(SU,Ke.ownerDocument.doctype.name)&&(ot="<!DOCTYPE "+Ke.ownerDocument.doctype.name+`>
2209
- `+ot),de&&ES([P,B,k],vn=>{ot=Yy(ot,vn," ")}),D&&$t?D.createHTML(ot):ot},e.setConfig=function(){let nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};en(nt),qe=!0},e.clearConfig=function(){ft=null,qe=!1},e.isValidAttribute=function(nt,Ee,Ke){ft||en({});const st=Ze(nt),on=Ze(Ee);return zo(st,on,Ke)},e.addHook=function(nt,Ee){typeof Ee=="function"&&Wy(X[nt],Ee)},e.removeHook=function(nt,Ee){if(Ee!==void 0){const Ke=nW(X[nt],Ee);return Ke===-1?void 0:oW(X[nt],Ke,1)[0]}return R3(X[nt])},e.removeHooks=function(nt){X[nt]=[]},e.removeAllHooks=function(){X=I3()},e}var EW=TU();const AU=({componentKey:t,title:e,description:i,children:a,componentName:E})=>{var b,c,u,d,h,m,S,T;const{boomiConfig:p}=Xn(),g=((d=(u=(c=(b=p==null?void 0:p.components)==null?void 0:b[t])==null?void 0:c[E])==null?void 0:u.header)==null?void 0:d.showTitle)??!0,y=((T=(S=(m=(h=p==null?void 0:p.components)==null?void 0:h[t])==null?void 0:m[E])==null?void 0:S.header)==null?void 0:T.showDescription)??!0,f=g||y;return H.jsx("div",{className:`
2208
+ */const vU=({children:t})=>H.jsx("div",{children:t});/*! @license DOMPurify 3.2.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.7/LICENSE */const{entries:yU,setPrototypeOf:N3,isFrozen:JQ,getPrototypeOf:eW,getOwnPropertyDescriptor:tW}=Object;let{freeze:ma,seal:Al,create:EU}=Object,{apply:I_,construct:$_}=typeof Reflect<"u"&&Reflect;ma||(ma=function(e){return e});Al||(Al=function(e){return e});I_||(I_=function(e,i){for(var a=arguments.length,E=new Array(a>2?a-2:0),p=2;p<a;p++)E[p-2]=arguments[p];return e.apply(i,E)});$_||($_=function(e){for(var i=arguments.length,a=new Array(i>1?i-1:0),E=1;E<i;E++)a[E-1]=arguments[E];return new e(...a)});const ES=pa(Array.prototype.forEach),nW=pa(Array.prototype.lastIndexOf),R3=pa(Array.prototype.pop),Wy=pa(Array.prototype.push),oW=pa(Array.prototype.splice),RS=pa(String.prototype.toLowerCase),Gx=pa(String.prototype.toString),Qx=pa(String.prototype.match),Yy=pa(String.prototype.replace),iW=pa(String.prototype.indexOf),rW=pa(String.prototype.trim),ec=pa(Object.prototype.hasOwnProperty),ca=pa(RegExp.prototype.test),Xy=aW(TypeError);function pa(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var i=arguments.length,a=new Array(i>1?i-1:0),E=1;E<i;E++)a[E-1]=arguments[E];return I_(t,e,a)}}function aW(t){return function(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];return $_(t,i)}}function _n(t,e){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:RS;N3&&N3(t,null);let a=e.length;for(;a--;){let E=e[a];if(typeof E=="string"){const p=i(E);p!==E&&(JQ(e)||(e[a]=p),E=p)}t[E]=!0}return t}function sW(t){for(let e=0;e<t.length;e++)ec(t,e)||(t[e]=null);return t}function hd(t){const e=EU(null);for(const[i,a]of yU(t))ec(t,i)&&(Array.isArray(a)?e[i]=sW(a):a&&typeof a=="object"&&a.constructor===Object?e[i]=hd(a):e[i]=a);return e}function qy(t,e){for(;t!==null;){const a=tW(t,e);if(a){if(a.get)return pa(a.get);if(typeof a.value=="function")return pa(a.value)}t=eW(t)}function i(){return null}return i}const L3=ma(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Wx=ma(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","slot","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Yx=ma(["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"]),lW=ma(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Xx=ma(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),cW=ma(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),O3=ma(["#text"]),D3=ma(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),qx=ma(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),M3=ma(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),wS=ma(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),uW=Al(/\{\{[\w\W]*|[\w\W]*\}\}/gm),dW=Al(/<%[\w\W]*|[\w\W]*%>/gm),fW=Al(/\$\{[\w\W]*/gm),hW=Al(/^data-[\-\w.\u00B7-\uFFFF]+$/),mW=Al(/^aria-[\-\w]+$/),wU=Al(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),pW=Al(/^(?:\w+script|data):/i),gW=Al(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),SU=Al(/^html$/i),bW=Al(/^[a-z][.\w]*(-[.\w]+)+$/i);var k3=Object.freeze({__proto__:null,ARIA_ATTR:mW,ATTR_WHITESPACE:gW,CUSTOM_ELEMENT:bW,DATA_ATTR:hW,DOCTYPE_NAME:SU,ERB_EXPR:dW,IS_ALLOWED_URI:wU,IS_SCRIPT_OR_DATA:pW,MUSTACHE_EXPR:uW,TMPLIT_EXPR:fW});const Ky={element:1,text:3,progressingInstruction:7,comment:8,document:9},vW=function(){return typeof window>"u"?null:window},yW=function(e,i){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let a=null;const E="data-tt-policy-suffix";i&&i.hasAttribute(E)&&(a=i.getAttribute(E));const p="dompurify"+(a?"#"+a:"");try{return e.createPolicy(p,{createHTML(g){return g},createScriptURL(g){return g}})}catch{return console.warn("TrustedTypes policy "+p+" could not be created."),null}},I3=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function TU(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:vW();const e=it=>TU(it);if(e.version="3.2.7",e.removed=[],!t||!t.document||t.document.nodeType!==Ky.document||!t.Element)return e.isSupported=!1,e;let{document:i}=t;const a=i,E=a.currentScript,{DocumentFragment:p,HTMLTemplateElement:g,Node:y,Element:f,NodeFilter:b,NamedNodeMap:c=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:u,DOMParser:d,trustedTypes:h}=t,m=f.prototype,S=qy(m,"cloneNode"),T=qy(m,"remove"),A=qy(m,"nextSibling"),N=qy(m,"childNodes"),O=qy(m,"parentNode");if(typeof g=="function"){const it=i.createElement("template");it.content&&it.content.ownerDocument&&(i=it.content.ownerDocument)}let D,R="";const{implementation:C,createNodeIterator:$,createDocumentFragment:F,getElementsByTagName:U}=i,{importNode:j}=a;let X=I3();e.isSupported=typeof yU=="function"&&typeof O=="function"&&C&&C.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:P,ERB_EXPR:B,TMPLIT_EXPR:k,DATA_ATTR:M,ARIA_ATTR:I,IS_SCRIPT_OR_DATA:W,ATTR_WHITESPACE:Q,CUSTOM_ELEMENT:J}=k3;let{IS_ALLOWED_URI:K}=k3,Z=null;const re=_n({},[...L3,...Wx,...Yx,...Xx,...O3]);let te=null;const ae=_n({},[...D3,...qx,...M3,...wS]);let se=Object.seal(EU(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ie=null,ue=null,me=!0,ve=!0,pe=!1,ye=!0,de=!1,Ve=!0,De=!1,qe=!1,et=!1,mt=!1,xt=!1,$t=!1,ze=!0,nt=!1;const ct="user-content-";let gt=!0,at=!1,Re={},je=null;const ot=_n({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let tt=null;const vt=_n({},["audio","video","img","source","image","track"]);let St=null;const Nt=_n({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),an="http://www.w3.org/1998/Math/MathML",Lt="http://www.w3.org/2000/svg",_t="http://www.w3.org/1999/xhtml";let Et=_t,xe=!1,Ge=null;const bt=_n({},[an,Lt,_t],Gx);let Dt=_n({},["mi","mo","mn","ms","mtext"]),ut=_n({},["annotation-xml"]);const yt=_n({},["title","style","font","a","script"]);let Ht=null;const jt=["application/xhtml+xml","text/html"],Ce="text/html";let Ze=null,ft=null;const Tt=i.createElement("form"),Mt=function(Ee){return Ee instanceof RegExp||Ee instanceof Function},en=function(){let Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ft&&ft===Ee)){if((!Ee||typeof Ee!="object")&&(Ee={}),Ee=hd(Ee),Ht=jt.indexOf(Ee.PARSER_MEDIA_TYPE)===-1?Ce:Ee.PARSER_MEDIA_TYPE,Ze=Ht==="application/xhtml+xml"?Gx:RS,Z=ec(Ee,"ALLOWED_TAGS")?_n({},Ee.ALLOWED_TAGS,Ze):re,te=ec(Ee,"ALLOWED_ATTR")?_n({},Ee.ALLOWED_ATTR,Ze):ae,Ge=ec(Ee,"ALLOWED_NAMESPACES")?_n({},Ee.ALLOWED_NAMESPACES,Gx):bt,St=ec(Ee,"ADD_URI_SAFE_ATTR")?_n(hd(Nt),Ee.ADD_URI_SAFE_ATTR,Ze):Nt,tt=ec(Ee,"ADD_DATA_URI_TAGS")?_n(hd(vt),Ee.ADD_DATA_URI_TAGS,Ze):vt,je=ec(Ee,"FORBID_CONTENTS")?_n({},Ee.FORBID_CONTENTS,Ze):ot,ie=ec(Ee,"FORBID_TAGS")?_n({},Ee.FORBID_TAGS,Ze):hd({}),ue=ec(Ee,"FORBID_ATTR")?_n({},Ee.FORBID_ATTR,Ze):hd({}),Re=ec(Ee,"USE_PROFILES")?Ee.USE_PROFILES:!1,me=Ee.ALLOW_ARIA_ATTR!==!1,ve=Ee.ALLOW_DATA_ATTR!==!1,pe=Ee.ALLOW_UNKNOWN_PROTOCOLS||!1,ye=Ee.ALLOW_SELF_CLOSE_IN_ATTR!==!1,de=Ee.SAFE_FOR_TEMPLATES||!1,Ve=Ee.SAFE_FOR_XML!==!1,De=Ee.WHOLE_DOCUMENT||!1,mt=Ee.RETURN_DOM||!1,xt=Ee.RETURN_DOM_FRAGMENT||!1,$t=Ee.RETURN_TRUSTED_TYPE||!1,et=Ee.FORCE_BODY||!1,ze=Ee.SANITIZE_DOM!==!1,nt=Ee.SANITIZE_NAMED_PROPS||!1,gt=Ee.KEEP_CONTENT!==!1,at=Ee.IN_PLACE||!1,K=Ee.ALLOWED_URI_REGEXP||wU,Et=Ee.NAMESPACE||_t,Dt=Ee.MATHML_TEXT_INTEGRATION_POINTS||Dt,ut=Ee.HTML_INTEGRATION_POINTS||ut,se=Ee.CUSTOM_ELEMENT_HANDLING||{},Ee.CUSTOM_ELEMENT_HANDLING&&Mt(Ee.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(se.tagNameCheck=Ee.CUSTOM_ELEMENT_HANDLING.tagNameCheck),Ee.CUSTOM_ELEMENT_HANDLING&&Mt(Ee.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(se.attributeNameCheck=Ee.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),Ee.CUSTOM_ELEMENT_HANDLING&&typeof Ee.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(se.allowCustomizedBuiltInElements=Ee.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),de&&(ve=!1),xt&&(mt=!0),Re&&(Z=_n({},O3),te=[],Re.html===!0&&(_n(Z,L3),_n(te,D3)),Re.svg===!0&&(_n(Z,Wx),_n(te,qx),_n(te,wS)),Re.svgFilters===!0&&(_n(Z,Yx),_n(te,qx),_n(te,wS)),Re.mathMl===!0&&(_n(Z,Xx),_n(te,M3),_n(te,wS))),Ee.ADD_TAGS&&(Z===re&&(Z=hd(Z)),_n(Z,Ee.ADD_TAGS,Ze)),Ee.ADD_ATTR&&(te===ae&&(te=hd(te)),_n(te,Ee.ADD_ATTR,Ze)),Ee.ADD_URI_SAFE_ATTR&&_n(St,Ee.ADD_URI_SAFE_ATTR,Ze),Ee.FORBID_CONTENTS&&(je===ot&&(je=hd(je)),_n(je,Ee.FORBID_CONTENTS,Ze)),gt&&(Z["#text"]=!0),De&&_n(Z,["html","head","body"]),Z.table&&(_n(Z,["tbody"]),delete ie.tbody),Ee.TRUSTED_TYPES_POLICY){if(typeof Ee.TRUSTED_TYPES_POLICY.createHTML!="function")throw Xy('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Ee.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Xy('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');D=Ee.TRUSTED_TYPES_POLICY,R=D.createHTML("")}else D===void 0&&(D=yW(h,E)),D!==null&&typeof R=="string"&&(R=D.createHTML(""));ma&&ma(Ee),ft=Ee}},Gt=_n({},[...Wx,...Yx,...lW]),sn=_n({},[...Xx,...cW]),Rn=function(Ee){let Ke=O(Ee);(!Ke||!Ke.tagName)&&(Ke={namespaceURI:Et,tagName:"template"});const st=RS(Ee.tagName),on=RS(Ke.tagName);return Ge[Ee.namespaceURI]?Ee.namespaceURI===Lt?Ke.namespaceURI===_t?st==="svg":Ke.namespaceURI===an?st==="svg"&&(on==="annotation-xml"||Dt[on]):!!Gt[st]:Ee.namespaceURI===an?Ke.namespaceURI===_t?st==="math":Ke.namespaceURI===Lt?st==="math"&&ut[on]:!!sn[st]:Ee.namespaceURI===_t?Ke.namespaceURI===Lt&&!ut[on]||Ke.namespaceURI===an&&!Dt[on]?!1:!sn[st]&&(yt[st]||!Gt[st]):!!(Ht==="application/xhtml+xml"&&Ge[Ee.namespaceURI]):!1},Yt=function(Ee){Wy(e.removed,{element:Ee});try{O(Ee).removeChild(Ee)}catch{T(Ee)}},Je=function(Ee,Ke){try{Wy(e.removed,{attribute:Ke.getAttributeNode(Ee),from:Ke})}catch{Wy(e.removed,{attribute:null,from:Ke})}if(Ke.removeAttribute(Ee),Ee==="is")if(mt||xt)try{Yt(Ke)}catch{}else try{Ke.setAttribute(Ee,"")}catch{}},Fn=function(Ee){let Ke=null,st=null;if(et)Ee="<remove></remove>"+Ee;else{const Ln=Qx(Ee,/^[\r\n\t ]+/);st=Ln&&Ln[0]}Ht==="application/xhtml+xml"&&Et===_t&&(Ee='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Ee+"</body></html>");const on=D?D.createHTML(Ee):Ee;if(Et===_t)try{Ke=new d().parseFromString(on,Ht)}catch{}if(!Ke||!Ke.documentElement){Ke=C.createDocument(Et,"template",null);try{Ke.documentElement.innerHTML=xe?R:on}catch{}}const Zn=Ke.body||Ke.documentElement;return Ee&&st&&Zn.insertBefore(i.createTextNode(st),Zn.childNodes[0]||null),Et===_t?U.call(Ke,De?"html":"body")[0]:De?Ke.documentElement:Zn},Rt=function(Ee){return $.call(Ee.ownerDocument||Ee,Ee,b.SHOW_ELEMENT|b.SHOW_COMMENT|b.SHOW_TEXT|b.SHOW_PROCESSING_INSTRUCTION|b.SHOW_CDATA_SECTION,null)},ni=function(Ee){return Ee instanceof u&&(typeof Ee.nodeName!="string"||typeof Ee.textContent!="string"||typeof Ee.removeChild!="function"||!(Ee.attributes instanceof c)||typeof Ee.removeAttribute!="function"||typeof Ee.setAttribute!="function"||typeof Ee.namespaceURI!="string"||typeof Ee.insertBefore!="function"||typeof Ee.hasChildNodes!="function")},vo=function(Ee){return typeof y=="function"&&Ee instanceof y};function Xt(it,Ee,Ke){ES(it,st=>{st.call(e,Ee,Ke,ft)})}const Pn=function(Ee){let Ke=null;if(Xt(X.beforeSanitizeElements,Ee,null),ni(Ee))return Yt(Ee),!0;const st=Ze(Ee.nodeName);if(Xt(X.uponSanitizeElement,Ee,{tagName:st,allowedTags:Z}),Ve&&Ee.hasChildNodes()&&!vo(Ee.firstElementChild)&&ca(/<[/\w!]/g,Ee.innerHTML)&&ca(/<[/\w!]/g,Ee.textContent)||Ee.nodeType===Ky.progressingInstruction||Ve&&Ee.nodeType===Ky.comment&&ca(/<[/\w]/g,Ee.data))return Yt(Ee),!0;if(!Z[st]||ie[st]){if(!ie[st]&&mo(st)&&(se.tagNameCheck instanceof RegExp&&ca(se.tagNameCheck,st)||se.tagNameCheck instanceof Function&&se.tagNameCheck(st)))return!1;if(gt&&!je[st]){const on=O(Ee)||Ee.parentNode,Zn=N(Ee)||Ee.childNodes;if(Zn&&on){const Ln=Zn.length;for(let rt=Ln-1;rt>=0;--rt){const vn=S(Zn[rt],!0);vn.__removalCount=(Ee.__removalCount||0)+1,on.insertBefore(vn,A(Ee))}}}return Yt(Ee),!0}return Ee instanceof f&&!Rn(Ee)||(st==="noscript"||st==="noembed"||st==="noframes")&&ca(/<\/no(script|embed|frames)/i,Ee.innerHTML)?(Yt(Ee),!0):(de&&Ee.nodeType===Ky.text&&(Ke=Ee.textContent,ES([P,B,k],on=>{Ke=Yy(Ke,on," ")}),Ee.textContent!==Ke&&(Wy(e.removed,{element:Ee.cloneNode()}),Ee.textContent=Ke)),Xt(X.afterSanitizeElements,Ee,null),!1)},zo=function(Ee,Ke,st){if(ze&&(Ke==="id"||Ke==="name")&&(st in i||st in Tt))return!1;if(!(ve&&!ue[Ke]&&ca(M,Ke))){if(!(me&&ca(I,Ke))){if(!te[Ke]||ue[Ke]){if(!(mo(Ee)&&(se.tagNameCheck instanceof RegExp&&ca(se.tagNameCheck,Ee)||se.tagNameCheck instanceof Function&&se.tagNameCheck(Ee))&&(se.attributeNameCheck instanceof RegExp&&ca(se.attributeNameCheck,Ke)||se.attributeNameCheck instanceof Function&&se.attributeNameCheck(Ke,Ee))||Ke==="is"&&se.allowCustomizedBuiltInElements&&(se.tagNameCheck instanceof RegExp&&ca(se.tagNameCheck,st)||se.tagNameCheck instanceof Function&&se.tagNameCheck(st))))return!1}else if(!St[Ke]){if(!ca(K,Yy(st,Q,""))){if(!((Ke==="src"||Ke==="xlink:href"||Ke==="href")&&Ee!=="script"&&iW(st,"data:")===0&&tt[Ee])){if(!(pe&&!ca(W,Yy(st,Q,"")))){if(st)return!1}}}}}}return!0},mo=function(Ee){return Ee!=="annotation-xml"&&Qx(Ee,J)},ki=function(Ee){Xt(X.beforeSanitizeAttributes,Ee,null);const{attributes:Ke}=Ee;if(!Ke||ni(Ee))return;const st={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:te,forceKeepAttr:void 0};let on=Ke.length;for(;on--;){const Zn=Ke[on],{name:Ln,namespaceURI:rt,value:vn}=Zn,yn=Ze(Ln),gi=vn;let On=Ln==="value"?gi:rW(gi);if(st.attrName=yn,st.attrValue=On,st.keepAttr=!0,st.forceKeepAttr=void 0,Xt(X.uponSanitizeAttribute,Ee,st),On=st.attrValue,nt&&(yn==="id"||yn==="name")&&(Je(Ln,Ee),On=ct+On),Ve&&ca(/((--!?|])>)|<\/(style|title|textarea)/i,On)){Je(Ln,Ee);continue}if(yn==="attributename"&&Qx(On,"href")){Je(Ln,Ee);continue}if(st.forceKeepAttr)continue;if(!st.keepAttr){Je(Ln,Ee);continue}if(!ye&&ca(/\/>/i,On)){Je(Ln,Ee);continue}de&&ES([P,B,k],va=>{On=Yy(On,va," ")});const oi=Ze(Ee.nodeName);if(!zo(oi,yn,On)){Je(Ln,Ee);continue}if(D&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!rt)switch(h.getAttributeType(oi,yn)){case"TrustedHTML":{On=D.createHTML(On);break}case"TrustedScriptURL":{On=D.createScriptURL(On);break}}if(On!==gi)try{rt?Ee.setAttributeNS(rt,Ln,On):Ee.setAttribute(Ln,On),ni(Ee)?Yt(Ee):R3(e.removed)}catch{Je(Ln,Ee)}}Xt(X.afterSanitizeAttributes,Ee,null)},wr=function it(Ee){let Ke=null;const st=Rt(Ee);for(Xt(X.beforeSanitizeShadowDOM,Ee,null);Ke=st.nextNode();)Xt(X.uponSanitizeShadowNode,Ke,null),Pn(Ke),ki(Ke),Ke.content instanceof p&&it(Ke.content);Xt(X.afterSanitizeShadowDOM,Ee,null)};return e.sanitize=function(it){let Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ke=null,st=null,on=null,Zn=null;if(xe=!it,xe&&(it="<!-->"),typeof it!="string"&&!vo(it))if(typeof it.toString=="function"){if(it=it.toString(),typeof it!="string")throw Xy("dirty is not a string, aborting")}else throw Xy("toString is not a function");if(!e.isSupported)return it;if(qe||en(Ee),e.removed=[],typeof it=="string"&&(at=!1),at){if(it.nodeName){const vn=Ze(it.nodeName);if(!Z[vn]||ie[vn])throw Xy("root node is forbidden and cannot be sanitized in-place")}}else if(it instanceof y)Ke=Fn("<!---->"),st=Ke.ownerDocument.importNode(it,!0),st.nodeType===Ky.element&&st.nodeName==="BODY"||st.nodeName==="HTML"?Ke=st:Ke.appendChild(st);else{if(!mt&&!de&&!De&&it.indexOf("<")===-1)return D&&$t?D.createHTML(it):it;if(Ke=Fn(it),!Ke)return mt?null:$t?R:""}Ke&&et&&Yt(Ke.firstChild);const Ln=Rt(at?it:Ke);for(;on=Ln.nextNode();)Pn(on),ki(on),on.content instanceof p&&wr(on.content);if(at)return it;if(mt){if(xt)for(Zn=F.call(Ke.ownerDocument);Ke.firstChild;)Zn.appendChild(Ke.firstChild);else Zn=Ke;return(te.shadowroot||te.shadowrootmode)&&(Zn=j.call(a,Zn,!0)),Zn}let rt=De?Ke.outerHTML:Ke.innerHTML;return De&&Z["!doctype"]&&Ke.ownerDocument&&Ke.ownerDocument.doctype&&Ke.ownerDocument.doctype.name&&ca(SU,Ke.ownerDocument.doctype.name)&&(rt="<!DOCTYPE "+Ke.ownerDocument.doctype.name+`>
2209
+ `+rt),de&&ES([P,B,k],vn=>{rt=Yy(rt,vn," ")}),D&&$t?D.createHTML(rt):rt},e.setConfig=function(){let it=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};en(it),qe=!0},e.clearConfig=function(){ft=null,qe=!1},e.isValidAttribute=function(it,Ee,Ke){ft||en({});const st=Ze(it),on=Ze(Ee);return zo(st,on,Ke)},e.addHook=function(it,Ee){typeof Ee=="function"&&Wy(X[it],Ee)},e.removeHook=function(it,Ee){if(Ee!==void 0){const Ke=nW(X[it],Ee);return Ke===-1?void 0:oW(X[it],Ke,1)[0]}return R3(X[it])},e.removeHooks=function(it){X[it]=[]},e.removeAllHooks=function(){X=I3()},e}var EW=TU();const AU=({componentKey:t,title:e,description:i,children:a,componentName:E})=>{var b,c,u,d,h,m,S,T;const{boomiConfig:p}=Xn(),g=((d=(u=(c=(b=p==null?void 0:p.components)==null?void 0:b[t])==null?void 0:c[E])==null?void 0:u.header)==null?void 0:d.showTitle)??!0,y=((T=(S=(m=(h=p==null?void 0:p.components)==null?void 0:h[t])==null?void 0:m[E])==null?void 0:S.header)==null?void 0:T.showDescription)??!0,f=g||y;return H.jsx("div",{className:`
2210
2210
  pt-2 pb-2 sm:flex sm:items-center text-left border-b
2211
2211
  [background-color:var(--boomi-header-bg-color)]
2212
2212
  [color:var(--boomi-header-fg-color)]
@@ -2248,7 +2248,7 @@ https://sweetalert2.github.io/#ajax-request`),zQ(t),typeof t.title=="string"&&(t
2248
2248
  * @function useFetchAccountGroupIntegrationPacks
2249
2249
  * @license BSD-2-Clause
2250
2250
  * @support https://bitbucket.org/officialboomi/embedkit
2251
- */const LW=t=>{const{filter:e}=t,[i,a]=Y.useState([]),[E,p]=Y.useState(!1),[g,y]=Y.useState(null),{getEligibleIntegrationPacks:f}=ME(),b=Y.useRef(!1),{boomiConfig:c}=Xn();return Y.useEffect(()=>{if(b.current)return;b.current=!0,(async()=>{p(!0),y(null),a([]);try{Le.debug("Requesting eligible Integration Packs for current account group");const d=Object.entries((c==null?void 0:c.agents)??{}).filter(([m,S])=>S.allowInstall===!1).map(([m])=>m),h=await f({notAllowedIds:d,renderType:e});Le.debug("Received eligible Integration Packs:",h==null?void 0:h.result),a(h.result||[])}catch(d){const h=`Unexpected error: ${(d==null?void 0:d.message)??"Unknown"}`;Le.error(h,d),y(h)}finally{p(!1)}})()},[f]),{integrationPacks:i,isLoading:E,error:g}},OW=({formName:t,renderType:e="all",label:i="Available Integration",disabled:a=!1,showLoading:E=!0,loadingMessage:p="Loading Integrations...",validationError:g,onIntegrationChange:y,onBlur:f})=>{const{integrationPacks:b,isLoading:c,error:u}=LW({filter:e}),[d,h]=Y.useState([]),m={id:"placeholder",name:"Please select"},[S,T]=Y.useState(m),A=null;Y.useEffect(()=>{if(!b)return;const O=b.map(R=>({id:R.id,name:R.name}));h([m,...O]);let D=m;T(R=>R.id===D.id?R:D)},[b,A]);const N=O=>{if(T(O),Le.debug("IntegrationPackSelect handleChange",{selectedOption:O,integrationPackId:A,options:d}),Le.debug("selected option",S.id),O.id==="placeholder"){y==null||y([]);return}const D=b==null?void 0:b.find(R=>R.id===O.id);D&&(y==null||y([D]))};return c&&E?H.jsx(Ki,{message:p}):u?H.jsx("p",{className:"text-red-500 text-sm",children:"Failed to load integrations."}):H.jsx(JC,{formName:t,label:i,inputName:"integrationPack",options:d,selected:S,onChange:N,onBlur:f,required:!0,disabled:a,error:g},(S==null?void 0:S.id)??"placeholder")},DW=Y.memo(OW),CU=Y.forwardRef(({componentKey:t},e)=>{var j,X,P,B,k,M,I,W,Q,J,K,Z,re,te,ae,se,ie,ue,me,ve,pe,ye,de,Ve,De,qe,et,mt,xt,$t,ze,tt,ct,gt,at,Re,je,it,rt,vt,St,Nt,an;const{boomiConfig:i}=Xn(),[a,E]=Y.useState(null),[p,g]=Y.useState(null),[y,f]=Y.useState(""),[b,c]=Y.useState({integrationPackId:"",environmentId:"",integrationName:""}),u=!!(a!=null&&a.id),d=((B=(P=(X=(j=i==null?void 0:i.components)==null?void 0:j[t])==null?void 0:X.form)==null?void 0:P.addIntegration)==null?void 0:B.showIntegrationPackSelect)??!0,h=((W=(I=(M=(k=i==null?void 0:i.components)==null?void 0:k[t])==null?void 0:M.form)==null?void 0:I.addIntegration)==null?void 0:W.defaultIntegrationPackId)??"",m=((Z=(K=(J=(Q=i==null?void 0:i.components)==null?void 0:Q[t])==null?void 0:J.form)==null?void 0:K.addIntegration)==null?void 0:Z.showEnvironmentSelect)??!0,S=((se=(ae=(te=(re=i==null?void 0:i.components)==null?void 0:re[t])==null?void 0:te.form)==null?void 0:ae.addIntegration)==null?void 0:se.defaultEnvironmentId)??"",T=((pe=(ve=(me=(ue=(ie=i==null?void 0:i.components)==null?void 0:ie[t])==null?void 0:ue.form)==null?void 0:me.addIntegration)==null?void 0:ve.integrationPackName)==null?void 0:pe.defaultIntegrationPackName)??null,A=((qe=(De=(Ve=(de=(ye=i==null?void 0:i.components)==null?void 0:ye[t])==null?void 0:de.form)==null?void 0:Ve.addIntegration)==null?void 0:De.integrationPackName)==null?void 0:qe.editable)??!1,N=((ze=($t=(xt=(mt=(et=i==null?void 0:i.components)==null?void 0:et[t])==null?void 0:mt.form)==null?void 0:xt.addIntegration)==null?void 0:$t.integrationPackName)==null?void 0:ze.label)??"Integration Name",O=!!(p!=null&&p.id),D=(a==null?void 0:a.installationType)==="SINGLE",R=((ct=(tt=i==null?void 0:i.components)==null?void 0:tt[t])==null?void 0:ct.renderType)||"integration";Y.useEffect(()=>{a!=null&&a.name&&(f(a.name),c(Lt=>({...Lt,integrationName:""})))},[a]);const C=Y.useCallback(Lt=>{const _t=Lt[0]||null;E(_t),c(Et=>({...Et,integrationPack:""}))},[]),$=Y.useCallback(Lt=>{Lt!=null&&Lt.id||c(_t=>({..._t,integrationPack:"Required"}))},[]),F=Y.useCallback(Lt=>{g(Lt),c(_t=>({..._t,environment:""}))},[]),U=Y.useCallback(Lt=>{Lt!=null&&Lt.id||c(_t=>({..._t,environment:"Required"}))},[]);return Y.useImperativeHandle(e,()=>({validateAndSubmit:()=>{var ut,yt,Ht,jt,Ce;Le.debug("Validating AddIntegrationForm with state:",{integrationPack:a,environment:p,integrationName:y,formErrors:b});const Lt=(a==null?void 0:a.id)||h||"",_t=(p==null?void 0:p.id)||S||"",Et=y||T||"",xe=(a==null?void 0:a.installationType)==="SINGLE";Le.debug("Derived IDs:",{integrationPackId:Lt,environmentId:_t,iName:Et,isSingle:xe});const Ge={integrationPackId:Lt?"":"Required",environmentId:_t?"":"Required",integrationName:Et?"":"Required"},bt=(Ce=(jt=(Ht=(yt=(ut=i==null?void 0:i.components)==null?void 0:ut[t])==null?void 0:yt.form)==null?void 0:Ht.addIntegrationForm)==null?void 0:jt.integrationName)==null?void 0:Ce.validation;return Et&&bt&&!new RegExp(bt).test(Et)&&(Ge.integrationName="Invalid format"),c(Ge),Object.values(Ge).some(Ze=>!!Ze)||!Lt||!_t?null:{integrationPackId:Lt,environmentId:_t,integrationName:Et,isSingle:xe}},isFormReady:()=>!!y})),H.jsxs("div",{className:"space-y-4 relative",children:[d&&H.jsx(DW,{formName:"addIntegrationForm",onIntegrationChange:C,onBlur:$,showLoading:!0,loadingMessage:((it=(je=(Re=(at=(gt=i==null?void 0:i.components)==null?void 0:gt[t])==null?void 0:at.form)==null?void 0:Re.addIntegration)==null?void 0:je.integrationPackSelect)==null?void 0:it.loadingMessage)||"Loading...",validationError:b.integrationPackId,label:((an=(Nt=(St=(vt=(rt=i==null?void 0:i.components)==null?void 0:rt[t])==null?void 0:vt.form)==null?void 0:St.addIntegration)==null?void 0:Nt.integrationPackSelect)==null?void 0:an.label)||"Available Integrations",renderType:R}),m&&H.jsx(RW,{componentKey:t,formName:"addIntegrationForm",disabled:!u,onEnvironmentChange:F,onBlur:U,showLoading:!0,loadingMessage:"Loading...",validationError:b.environmentId}),H.jsx(mp,{formName:"addIntegrationForm",label:N,type:"text",required:!0,inputName:"integrationName",value:y,readOnly:A&&(D||!O),onChange:Lt=>{f(Lt.target.value),c(_t=>({..._t,integrationName:""}))},onBlur:Lt=>{var Et,xe,Ge,bt,Dt;const _t=Lt.target.value;if(!_t)c(ut=>({...ut,integrationName:"Required"}));else{const ut=(Dt=(bt=(Ge=(xe=(Et=i==null?void 0:i.components)==null?void 0:Et[t])==null?void 0:xe.form)==null?void 0:Ge.addIntegrationForm)==null?void 0:bt.integrationName)==null?void 0:Dt.validation;ut&&!new RegExp(ut).test(_t)&&c(yt=>({...yt,integrationName:"Invalid format"}))}},error:b.integrationName})]})});CU.displayName="AddIntegrationForm";const NU=6048e5,MW=864e5,$3=Symbol.for("constructDateFrom");function dh(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&$3 in t?t[$3](e):t instanceof Date?new t.constructor(e):new Date(e)}function ic(t,e){return dh(e||t,t)}let kW={};function IT(){return kW}function SE(t,e){var y,f,b,c;const i=IT(),a=(e==null?void 0:e.weekStartsOn)??((f=(y=e==null?void 0:e.locale)==null?void 0:y.options)==null?void 0:f.weekStartsOn)??i.weekStartsOn??((c=(b=i.locale)==null?void 0:b.options)==null?void 0:c.weekStartsOn)??0,E=ic(t,e==null?void 0:e.in),p=E.getDay(),g=(p<a?7:0)+p-a;return E.setDate(E.getDate()-g),E.setHours(0,0,0,0),E}function eT(t,e){return SE(t,{...e,weekStartsOn:1})}function RU(t,e){const i=ic(t,e==null?void 0:e.in),a=i.getFullYear(),E=dh(i,0);E.setFullYear(a+1,0,4),E.setHours(0,0,0,0);const p=eT(E),g=dh(i,0);g.setFullYear(a,0,4),g.setHours(0,0,0,0);const y=eT(g);return i.getTime()>=p.getTime()?a+1:i.getTime()>=y.getTime()?a:a-1}function U3(t){const e=ic(t),i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return i.setUTCFullYear(e.getFullYear()),+t-+i}function IW(t,...e){const i=dh.bind(null,e.find(a=>typeof a=="object"));return e.map(i)}function H3(t,e){const i=ic(t,e==null?void 0:e.in);return i.setHours(0,0,0,0),i}function $W(t,e,i){const[a,E]=IW(i==null?void 0:i.in,t,e),p=H3(a),g=H3(E),y=+p-U3(p),f=+g-U3(g);return Math.round((y-f)/MW)}function UW(t,e){const i=RU(t,e),a=dh(t,0);return a.setFullYear(i,0,4),a.setHours(0,0,0,0),eT(a)}function HW(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function jW(t){return!(!HW(t)&&typeof t!="number"||isNaN(+ic(t)))}function zW(t,e){const i=ic(t,e==null?void 0:e.in);return i.setFullYear(i.getFullYear(),0,1),i.setHours(0,0,0,0),i}const BW={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},FW=(t,e,i)=>{let a;const E=BW[t];return typeof E=="string"?a=E:e===1?a=E.one:a=E.other.replace("{{count}}",e.toString()),i!=null&&i.addSuffix?i.comparison&&i.comparison>0?"in "+a:a+" ago":a};function Kx(t){return(e={})=>{const i=e.width?String(e.width):t.defaultWidth;return t.formats[i]||t.formats[t.defaultWidth]}}const PW={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},VW={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},GW={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},QW={date:Kx({formats:PW,defaultWidth:"full"}),time:Kx({formats:VW,defaultWidth:"full"}),dateTime:Kx({formats:GW,defaultWidth:"full"})},WW={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},YW=(t,e,i,a)=>WW[t];function Zy(t){return(e,i)=>{const a=i!=null&&i.context?String(i.context):"standalone";let E;if(a==="formatting"&&t.formattingValues){const g=t.defaultFormattingWidth||t.defaultWidth,y=i!=null&&i.width?String(i.width):g;E=t.formattingValues[y]||t.formattingValues[g]}else{const g=t.defaultWidth,y=i!=null&&i.width?String(i.width):t.defaultWidth;E=t.values[y]||t.values[g]}const p=t.argumentCallback?t.argumentCallback(e):e;return E[p]}}const XW={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},qW={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},KW={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ZW={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},JW={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},eY={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},tY=(t,e)=>{const i=Number(t),a=i%100;if(a>20||a<10)switch(a%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},nY={ordinalNumber:tY,era:Zy({values:XW,defaultWidth:"wide"}),quarter:Zy({values:qW,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Zy({values:KW,defaultWidth:"wide"}),day:Zy({values:ZW,defaultWidth:"wide"}),dayPeriod:Zy({values:JW,defaultWidth:"wide",formattingValues:eY,defaultFormattingWidth:"wide"})};function Jy(t){return(e,i={})=>{const a=i.width,E=a&&t.matchPatterns[a]||t.matchPatterns[t.defaultMatchWidth],p=e.match(E);if(!p)return null;const g=p[0],y=a&&t.parsePatterns[a]||t.parsePatterns[t.defaultParseWidth],f=Array.isArray(y)?iY(y,u=>u.test(g)):oY(y,u=>u.test(g));let b;b=t.valueCallback?t.valueCallback(f):f,b=i.valueCallback?i.valueCallback(b):b;const c=e.slice(g.length);return{value:b,rest:c}}}function oY(t,e){for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&e(t[i]))return i}function iY(t,e){for(let i=0;i<t.length;i++)if(e(t[i]))return i}function rY(t){return(e,i={})=>{const a=e.match(t.matchPattern);if(!a)return null;const E=a[0],p=e.match(t.parsePattern);if(!p)return null;let g=t.valueCallback?t.valueCallback(p[0]):p[0];g=i.valueCallback?i.valueCallback(g):g;const y=e.slice(E.length);return{value:g,rest:y}}}const aY=/^(\d+)(th|st|nd|rd)?/i,sY=/\d+/i,lY={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},cY={any:[/^b/i,/^(a|c)/i]},uY={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},dY={any:[/1/i,/2/i,/3/i,/4/i]},fY={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},hY={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},mY={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},pY={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},gY={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},bY={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},vY={ordinalNumber:rY({matchPattern:aY,parsePattern:sY,valueCallback:t=>parseInt(t,10)}),era:Jy({matchPatterns:lY,defaultMatchWidth:"wide",parsePatterns:cY,defaultParseWidth:"any"}),quarter:Jy({matchPatterns:uY,defaultMatchWidth:"wide",parsePatterns:dY,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Jy({matchPatterns:fY,defaultMatchWidth:"wide",parsePatterns:hY,defaultParseWidth:"any"}),day:Jy({matchPatterns:mY,defaultMatchWidth:"wide",parsePatterns:pY,defaultParseWidth:"any"}),dayPeriod:Jy({matchPatterns:gY,defaultMatchWidth:"any",parsePatterns:bY,defaultParseWidth:"any"})},yY={code:"en-US",formatDistance:FW,formatLong:QW,formatRelative:YW,localize:nY,match:vY,options:{weekStartsOn:0,firstWeekContainsDate:1}};function EY(t,e){const i=ic(t,e==null?void 0:e.in);return $W(i,zW(i))+1}function wY(t,e){const i=ic(t,e==null?void 0:e.in),a=+eT(i)-+UW(i);return Math.round(a/NU)+1}function LU(t,e){var c,u,d,h;const i=ic(t,e==null?void 0:e.in),a=i.getFullYear(),E=IT(),p=(e==null?void 0:e.firstWeekContainsDate)??((u=(c=e==null?void 0:e.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??E.firstWeekContainsDate??((h=(d=E.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??1,g=dh((e==null?void 0:e.in)||t,0);g.setFullYear(a+1,0,p),g.setHours(0,0,0,0);const y=SE(g,e),f=dh((e==null?void 0:e.in)||t,0);f.setFullYear(a,0,p),f.setHours(0,0,0,0);const b=SE(f,e);return+i>=+y?a+1:+i>=+b?a:a-1}function SY(t,e){var y,f,b,c;const i=IT(),a=(e==null?void 0:e.firstWeekContainsDate)??((f=(y=e==null?void 0:e.locale)==null?void 0:y.options)==null?void 0:f.firstWeekContainsDate)??i.firstWeekContainsDate??((c=(b=i.locale)==null?void 0:b.options)==null?void 0:c.firstWeekContainsDate)??1,E=LU(t,e),p=dh((e==null?void 0:e.in)||t,0);return p.setFullYear(E,0,a),p.setHours(0,0,0,0),SE(p,e)}function TY(t,e){const i=ic(t,e==null?void 0:e.in),a=+SE(i,e)-+SY(i,e);return Math.round(a/NU)+1}function so(t,e){const i=t<0?"-":"",a=Math.abs(t).toString().padStart(e,"0");return i+a}const Kf={y(t,e){const i=t.getFullYear(),a=i>0?i:1-i;return so(e==="yy"?a%100:a,e.length)},M(t,e){const i=t.getMonth();return e==="M"?String(i+1):so(i+1,2)},d(t,e){return so(t.getDate(),e.length)},a(t,e){const i=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];case"aaaa":default:return i==="am"?"a.m.":"p.m."}},h(t,e){return so(t.getHours()%12||12,e.length)},H(t,e){return so(t.getHours(),e.length)},m(t,e){return so(t.getMinutes(),e.length)},s(t,e){return so(t.getSeconds(),e.length)},S(t,e){const i=e.length,a=t.getMilliseconds(),E=Math.trunc(a*Math.pow(10,i-3));return so(E,e.length)}},Rb={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},j3={G:function(t,e,i){const a=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(a,{width:"abbreviated"});case"GGGGG":return i.era(a,{width:"narrow"});case"GGGG":default:return i.era(a,{width:"wide"})}},y:function(t,e,i){if(e==="yo"){const a=t.getFullYear(),E=a>0?a:1-a;return i.ordinalNumber(E,{unit:"year"})}return Kf.y(t,e)},Y:function(t,e,i,a){const E=LU(t,a),p=E>0?E:1-E;if(e==="YY"){const g=p%100;return so(g,2)}return e==="Yo"?i.ordinalNumber(p,{unit:"year"}):so(p,e.length)},R:function(t,e){const i=RU(t);return so(i,e.length)},u:function(t,e){const i=t.getFullYear();return so(i,e.length)},Q:function(t,e,i){const a=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(a);case"QQ":return so(a,2);case"Qo":return i.ordinalNumber(a,{unit:"quarter"});case"QQQ":return i.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(a,{width:"wide",context:"formatting"})}},q:function(t,e,i){const a=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(a);case"qq":return so(a,2);case"qo":return i.ordinalNumber(a,{unit:"quarter"});case"qqq":return i.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(a,{width:"wide",context:"standalone"})}},M:function(t,e,i){const a=t.getMonth();switch(e){case"M":case"MM":return Kf.M(t,e);case"Mo":return i.ordinalNumber(a+1,{unit:"month"});case"MMM":return i.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(a,{width:"wide",context:"formatting"})}},L:function(t,e,i){const a=t.getMonth();switch(e){case"L":return String(a+1);case"LL":return so(a+1,2);case"Lo":return i.ordinalNumber(a+1,{unit:"month"});case"LLL":return i.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(a,{width:"wide",context:"standalone"})}},w:function(t,e,i,a){const E=TY(t,a);return e==="wo"?i.ordinalNumber(E,{unit:"week"}):so(E,e.length)},I:function(t,e,i){const a=wY(t);return e==="Io"?i.ordinalNumber(a,{unit:"week"}):so(a,e.length)},d:function(t,e,i){return e==="do"?i.ordinalNumber(t.getDate(),{unit:"date"}):Kf.d(t,e)},D:function(t,e,i){const a=EY(t);return e==="Do"?i.ordinalNumber(a,{unit:"dayOfYear"}):so(a,e.length)},E:function(t,e,i){const a=t.getDay();switch(e){case"E":case"EE":case"EEE":return i.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(a,{width:"short",context:"formatting"});case"EEEE":default:return i.day(a,{width:"wide",context:"formatting"})}},e:function(t,e,i,a){const E=t.getDay(),p=(E-a.weekStartsOn+8)%7||7;switch(e){case"e":return String(p);case"ee":return so(p,2);case"eo":return i.ordinalNumber(p,{unit:"day"});case"eee":return i.day(E,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(E,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(E,{width:"short",context:"formatting"});case"eeee":default:return i.day(E,{width:"wide",context:"formatting"})}},c:function(t,e,i,a){const E=t.getDay(),p=(E-a.weekStartsOn+8)%7||7;switch(e){case"c":return String(p);case"cc":return so(p,e.length);case"co":return i.ordinalNumber(p,{unit:"day"});case"ccc":return i.day(E,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(E,{width:"narrow",context:"standalone"});case"cccccc":return i.day(E,{width:"short",context:"standalone"});case"cccc":default:return i.day(E,{width:"wide",context:"standalone"})}},i:function(t,e,i){const a=t.getDay(),E=a===0?7:a;switch(e){case"i":return String(E);case"ii":return so(E,e.length);case"io":return i.ordinalNumber(E,{unit:"day"});case"iii":return i.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(a,{width:"short",context:"formatting"});case"iiii":default:return i.day(a,{width:"wide",context:"formatting"})}},a:function(t,e,i){const E=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(E,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(E,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(E,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(E,{width:"wide",context:"formatting"})}},b:function(t,e,i){const a=t.getHours();let E;switch(a===12?E=Rb.noon:a===0?E=Rb.midnight:E=a/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(E,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(E,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(E,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(E,{width:"wide",context:"formatting"})}},B:function(t,e,i){const a=t.getHours();let E;switch(a>=17?E=Rb.evening:a>=12?E=Rb.afternoon:a>=4?E=Rb.morning:E=Rb.night,e){case"B":case"BB":case"BBB":return i.dayPeriod(E,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(E,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(E,{width:"wide",context:"formatting"})}},h:function(t,e,i){if(e==="ho"){let a=t.getHours()%12;return a===0&&(a=12),i.ordinalNumber(a,{unit:"hour"})}return Kf.h(t,e)},H:function(t,e,i){return e==="Ho"?i.ordinalNumber(t.getHours(),{unit:"hour"}):Kf.H(t,e)},K:function(t,e,i){const a=t.getHours()%12;return e==="Ko"?i.ordinalNumber(a,{unit:"hour"}):so(a,e.length)},k:function(t,e,i){let a=t.getHours();return a===0&&(a=24),e==="ko"?i.ordinalNumber(a,{unit:"hour"}):so(a,e.length)},m:function(t,e,i){return e==="mo"?i.ordinalNumber(t.getMinutes(),{unit:"minute"}):Kf.m(t,e)},s:function(t,e,i){return e==="so"?i.ordinalNumber(t.getSeconds(),{unit:"second"}):Kf.s(t,e)},S:function(t,e){return Kf.S(t,e)},X:function(t,e,i){const a=t.getTimezoneOffset();if(a===0)return"Z";switch(e){case"X":return B3(a);case"XXXX":case"XX":return tp(a);case"XXXXX":case"XXX":default:return tp(a,":")}},x:function(t,e,i){const a=t.getTimezoneOffset();switch(e){case"x":return B3(a);case"xxxx":case"xx":return tp(a);case"xxxxx":case"xxx":default:return tp(a,":")}},O:function(t,e,i){const a=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+z3(a,":");case"OOOO":default:return"GMT"+tp(a,":")}},z:function(t,e,i){const a=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+z3(a,":");case"zzzz":default:return"GMT"+tp(a,":")}},t:function(t,e,i){const a=Math.trunc(+t/1e3);return so(a,e.length)},T:function(t,e,i){return so(+t,e.length)}};function z3(t,e=""){const i=t>0?"-":"+",a=Math.abs(t),E=Math.trunc(a/60),p=a%60;return p===0?i+String(E):i+String(E)+e+so(p,2)}function B3(t,e){return t%60===0?(t>0?"-":"+")+so(Math.abs(t)/60,2):tp(t,e)}function tp(t,e=""){const i=t>0?"-":"+",a=Math.abs(t),E=so(Math.trunc(a/60),2),p=so(a%60,2);return i+E+e+p}const F3=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},OU=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},AY=(t,e)=>{const i=t.match(/(P+)(p+)?/)||[],a=i[1],E=i[2];if(!E)return F3(t,e);let p;switch(a){case"P":p=e.dateTime({width:"short"});break;case"PP":p=e.dateTime({width:"medium"});break;case"PPP":p=e.dateTime({width:"long"});break;case"PPPP":default:p=e.dateTime({width:"full"});break}return p.replace("{{date}}",F3(a,e)).replace("{{time}}",OU(E,e))},xY={p:OU,P:AY},_Y=/^D+$/,CY=/^Y+$/,NY=["D","DD","YY","YYYY"];function RY(t){return _Y.test(t)}function LY(t){return CY.test(t)}function OY(t,e,i){const a=DY(t,e,i);if(console.warn(a),NY.includes(t))throw new RangeError(a)}function DY(t,e,i){const a=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${a} to the input \`${i}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const MY=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,kY=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,IY=/^'([^]*?)'?$/,$Y=/''/g,UY=/[a-zA-Z]/;function TE(t,e,i){var c,u,d,h;const a=IT(),E=a.locale??yY,p=a.firstWeekContainsDate??((u=(c=a.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??1,g=a.weekStartsOn??((h=(d=a.locale)==null?void 0:d.options)==null?void 0:h.weekStartsOn)??0,y=ic(t,i==null?void 0:i.in);if(!jW(y))throw new RangeError("Invalid time value");let f=e.match(kY).map(m=>{const S=m[0];if(S==="p"||S==="P"){const T=xY[S];return T(m,E.formatLong)}return m}).join("").match(MY).map(m=>{if(m==="''")return{isToken:!1,value:"'"};const S=m[0];if(S==="'")return{isToken:!1,value:HY(m)};if(j3[S])return{isToken:!0,value:m};if(S.match(UY))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");return{isToken:!1,value:m}});E.localize.preprocessor&&(f=E.localize.preprocessor(y,f));const b={firstWeekContainsDate:p,weekStartsOn:g,locale:E};return f.map(m=>{if(!m.isToken)return m.value;const S=m.value;(LY(S)||RY(S))&&OY(S,e,String(t));const T=j3[S[0]];return T(y,S,E.localize,b)}).join("")}function HY(t){const e=t.match(IY);return e?e[1].replace($Y,"'"):t}function jY(){const t=iu();async function e(i){const{integrationPackInstanceId:a,search:E,page:p,pageSize:g,signal:y}=i;return t.get("/execution-summary-records",{signal:y,params:{integrationPackInstanceId:a,...E?{search:E}:{},...typeof p=="number"?{page:p}:{},...typeof g=="number"?{pageSize:g}:{}}})}return{getExecutionRecords:e}}/**
2251
+ */const LW=t=>{const{filter:e}=t,[i,a]=Y.useState([]),[E,p]=Y.useState(!1),[g,y]=Y.useState(null),{getEligibleIntegrationPacks:f}=ME(),b=Y.useRef(!1),{boomiConfig:c}=Xn();return Y.useEffect(()=>{if(b.current)return;b.current=!0,(async()=>{p(!0),y(null),a([]);try{Le.debug("Requesting eligible Integration Packs for current account group");const d=Object.entries((c==null?void 0:c.agents)??{}).filter(([m,S])=>S.allowInstall===!1).map(([m])=>m),h=await f({notAllowedIds:d,renderType:e});Le.debug("Received eligible Integration Packs:",h==null?void 0:h.result),a(h.result||[])}catch(d){const h=`Unexpected error: ${(d==null?void 0:d.message)??"Unknown"}`;Le.error(h,d),y(h)}finally{p(!1)}})()},[f]),{integrationPacks:i,isLoading:E,error:g}},OW=({formName:t,renderType:e="all",label:i="Available Integration",disabled:a=!1,showLoading:E=!0,loadingMessage:p="Loading Integrations...",validationError:g,onIntegrationChange:y,onBlur:f})=>{const{integrationPacks:b,isLoading:c,error:u}=LW({filter:e}),[d,h]=Y.useState([]),m={id:"placeholder",name:"Please select"},[S,T]=Y.useState(m),A=null;Y.useEffect(()=>{if(!b)return;const O=b.map(R=>({id:R.id,name:R.name}));h([m,...O]);let D=m;T(R=>R.id===D.id?R:D)},[b,A]);const N=O=>{if(T(O),Le.debug("IntegrationPackSelect handleChange",{selectedOption:O,integrationPackId:A,options:d}),Le.debug("selected option",S.id),O.id==="placeholder"){y==null||y([]);return}const D=b==null?void 0:b.find(R=>R.id===O.id);D&&(y==null||y([D]))};return c&&E?H.jsx(Ki,{message:p}):u?H.jsx("p",{className:"text-red-500 text-sm",children:"Failed to load integrations."}):H.jsx(JC,{formName:t,label:i,inputName:"integrationPack",options:d,selected:S,onChange:N,onBlur:f,required:!0,disabled:a,error:g},(S==null?void 0:S.id)??"placeholder")},DW=Y.memo(OW),CU=Y.forwardRef(({componentKey:t},e)=>{var j,X,P,B,k,M,I,W,Q,J,K,Z,re,te,ae,se,ie,ue,me,ve,pe,ye,de,Ve,De,qe,et,mt,xt,$t,ze,nt,ct,gt,at,Re,je,ot,tt,vt,St,Nt,an;const{boomiConfig:i}=Xn(),[a,E]=Y.useState(null),[p,g]=Y.useState(null),[y,f]=Y.useState(""),[b,c]=Y.useState({integrationPackId:"",environmentId:"",integrationName:""}),u=!!(a!=null&&a.id),d=((B=(P=(X=(j=i==null?void 0:i.components)==null?void 0:j[t])==null?void 0:X.form)==null?void 0:P.addIntegration)==null?void 0:B.showIntegrationPackSelect)??!0,h=((W=(I=(M=(k=i==null?void 0:i.components)==null?void 0:k[t])==null?void 0:M.form)==null?void 0:I.addIntegration)==null?void 0:W.defaultIntegrationPackId)??"",m=((Z=(K=(J=(Q=i==null?void 0:i.components)==null?void 0:Q[t])==null?void 0:J.form)==null?void 0:K.addIntegration)==null?void 0:Z.showEnvironmentSelect)??!0,S=((se=(ae=(te=(re=i==null?void 0:i.components)==null?void 0:re[t])==null?void 0:te.form)==null?void 0:ae.addIntegration)==null?void 0:se.defaultEnvironmentId)??"",T=((pe=(ve=(me=(ue=(ie=i==null?void 0:i.components)==null?void 0:ie[t])==null?void 0:ue.form)==null?void 0:me.addIntegration)==null?void 0:ve.integrationPackName)==null?void 0:pe.defaultIntegrationPackName)??null,A=((qe=(De=(Ve=(de=(ye=i==null?void 0:i.components)==null?void 0:ye[t])==null?void 0:de.form)==null?void 0:Ve.addIntegration)==null?void 0:De.integrationPackName)==null?void 0:qe.editable)??!1,N=((ze=($t=(xt=(mt=(et=i==null?void 0:i.components)==null?void 0:et[t])==null?void 0:mt.form)==null?void 0:xt.addIntegration)==null?void 0:$t.integrationPackName)==null?void 0:ze.label)??"Integration Name",O=!!(p!=null&&p.id),D=(a==null?void 0:a.installationType)==="SINGLE",R=((ct=(nt=i==null?void 0:i.components)==null?void 0:nt[t])==null?void 0:ct.renderType)||"integration";Y.useEffect(()=>{a!=null&&a.name&&(f(a.name),c(Lt=>({...Lt,integrationName:""})))},[a]);const C=Y.useCallback(Lt=>{const _t=Lt[0]||null;E(_t),c(Et=>({...Et,integrationPack:""}))},[]),$=Y.useCallback(Lt=>{Lt!=null&&Lt.id||c(_t=>({..._t,integrationPack:"Required"}))},[]),F=Y.useCallback(Lt=>{g(Lt),c(_t=>({..._t,environment:""}))},[]),U=Y.useCallback(Lt=>{Lt!=null&&Lt.id||c(_t=>({..._t,environment:"Required"}))},[]);return Y.useImperativeHandle(e,()=>({validateAndSubmit:()=>{var ut,yt,Ht,jt,Ce;Le.debug("Validating AddIntegrationForm with state:",{integrationPack:a,environment:p,integrationName:y,formErrors:b});const Lt=(a==null?void 0:a.id)||h||"",_t=(p==null?void 0:p.id)||S||"",Et=y||T||"",xe=(a==null?void 0:a.installationType)==="SINGLE";Le.debug("Derived IDs:",{integrationPackId:Lt,environmentId:_t,iName:Et,isSingle:xe});const Ge={integrationPackId:Lt?"":"Required",environmentId:_t?"":"Required",integrationName:Et?"":"Required"},bt=(Ce=(jt=(Ht=(yt=(ut=i==null?void 0:i.components)==null?void 0:ut[t])==null?void 0:yt.form)==null?void 0:Ht.addIntegrationForm)==null?void 0:jt.integrationName)==null?void 0:Ce.validation;return Et&&bt&&!new RegExp(bt).test(Et)&&(Ge.integrationName="Invalid format"),c(Ge),Object.values(Ge).some(Ze=>!!Ze)||!Lt||!_t?null:{integrationPackId:Lt,environmentId:_t,integrationName:Et,isSingle:xe}},isFormReady:()=>!!y})),H.jsxs("div",{className:"space-y-4 relative",children:[d&&H.jsx(DW,{formName:"addIntegrationForm",onIntegrationChange:C,onBlur:$,showLoading:!0,loadingMessage:((ot=(je=(Re=(at=(gt=i==null?void 0:i.components)==null?void 0:gt[t])==null?void 0:at.form)==null?void 0:Re.addIntegration)==null?void 0:je.integrationPackSelect)==null?void 0:ot.loadingMessage)||"Loading...",validationError:b.integrationPackId,label:((an=(Nt=(St=(vt=(tt=i==null?void 0:i.components)==null?void 0:tt[t])==null?void 0:vt.form)==null?void 0:St.addIntegration)==null?void 0:Nt.integrationPackSelect)==null?void 0:an.label)||"Available Integrations",renderType:R}),m&&H.jsx(RW,{componentKey:t,formName:"addIntegrationForm",disabled:!u,onEnvironmentChange:F,onBlur:U,showLoading:!0,loadingMessage:"Loading...",validationError:b.environmentId}),H.jsx(mp,{formName:"addIntegrationForm",label:N,type:"text",required:!0,inputName:"integrationName",value:y,readOnly:A&&(D||!O),onChange:Lt=>{f(Lt.target.value),c(_t=>({..._t,integrationName:""}))},onBlur:Lt=>{var Et,xe,Ge,bt,Dt;const _t=Lt.target.value;if(!_t)c(ut=>({...ut,integrationName:"Required"}));else{const ut=(Dt=(bt=(Ge=(xe=(Et=i==null?void 0:i.components)==null?void 0:Et[t])==null?void 0:xe.form)==null?void 0:Ge.addIntegrationForm)==null?void 0:bt.integrationName)==null?void 0:Dt.validation;ut&&!new RegExp(ut).test(_t)&&c(yt=>({...yt,integrationName:"Invalid format"}))}},error:b.integrationName})]})});CU.displayName="AddIntegrationForm";const NU=6048e5,MW=864e5,$3=Symbol.for("constructDateFrom");function dh(t,e){return typeof t=="function"?t(e):t&&typeof t=="object"&&$3 in t?t[$3](e):t instanceof Date?new t.constructor(e):new Date(e)}function ic(t,e){return dh(e||t,t)}let kW={};function IT(){return kW}function SE(t,e){var y,f,b,c;const i=IT(),a=(e==null?void 0:e.weekStartsOn)??((f=(y=e==null?void 0:e.locale)==null?void 0:y.options)==null?void 0:f.weekStartsOn)??i.weekStartsOn??((c=(b=i.locale)==null?void 0:b.options)==null?void 0:c.weekStartsOn)??0,E=ic(t,e==null?void 0:e.in),p=E.getDay(),g=(p<a?7:0)+p-a;return E.setDate(E.getDate()-g),E.setHours(0,0,0,0),E}function eT(t,e){return SE(t,{...e,weekStartsOn:1})}function RU(t,e){const i=ic(t,e==null?void 0:e.in),a=i.getFullYear(),E=dh(i,0);E.setFullYear(a+1,0,4),E.setHours(0,0,0,0);const p=eT(E),g=dh(i,0);g.setFullYear(a,0,4),g.setHours(0,0,0,0);const y=eT(g);return i.getTime()>=p.getTime()?a+1:i.getTime()>=y.getTime()?a:a-1}function U3(t){const e=ic(t),i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return i.setUTCFullYear(e.getFullYear()),+t-+i}function IW(t,...e){const i=dh.bind(null,e.find(a=>typeof a=="object"));return e.map(i)}function H3(t,e){const i=ic(t,e==null?void 0:e.in);return i.setHours(0,0,0,0),i}function $W(t,e,i){const[a,E]=IW(i==null?void 0:i.in,t,e),p=H3(a),g=H3(E),y=+p-U3(p),f=+g-U3(g);return Math.round((y-f)/MW)}function UW(t,e){const i=RU(t,e),a=dh(t,0);return a.setFullYear(i,0,4),a.setHours(0,0,0,0),eT(a)}function HW(t){return t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]"}function jW(t){return!(!HW(t)&&typeof t!="number"||isNaN(+ic(t)))}function zW(t,e){const i=ic(t,e==null?void 0:e.in);return i.setFullYear(i.getFullYear(),0,1),i.setHours(0,0,0,0),i}const BW={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},FW=(t,e,i)=>{let a;const E=BW[t];return typeof E=="string"?a=E:e===1?a=E.one:a=E.other.replace("{{count}}",e.toString()),i!=null&&i.addSuffix?i.comparison&&i.comparison>0?"in "+a:a+" ago":a};function Kx(t){return(e={})=>{const i=e.width?String(e.width):t.defaultWidth;return t.formats[i]||t.formats[t.defaultWidth]}}const PW={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},VW={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},GW={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},QW={date:Kx({formats:PW,defaultWidth:"full"}),time:Kx({formats:VW,defaultWidth:"full"}),dateTime:Kx({formats:GW,defaultWidth:"full"})},WW={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},YW=(t,e,i,a)=>WW[t];function Zy(t){return(e,i)=>{const a=i!=null&&i.context?String(i.context):"standalone";let E;if(a==="formatting"&&t.formattingValues){const g=t.defaultFormattingWidth||t.defaultWidth,y=i!=null&&i.width?String(i.width):g;E=t.formattingValues[y]||t.formattingValues[g]}else{const g=t.defaultWidth,y=i!=null&&i.width?String(i.width):t.defaultWidth;E=t.values[y]||t.values[g]}const p=t.argumentCallback?t.argumentCallback(e):e;return E[p]}}const XW={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},qW={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},KW={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ZW={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},JW={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},eY={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},tY=(t,e)=>{const i=Number(t),a=i%100;if(a>20||a<10)switch(a%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},nY={ordinalNumber:tY,era:Zy({values:XW,defaultWidth:"wide"}),quarter:Zy({values:qW,defaultWidth:"wide",argumentCallback:t=>t-1}),month:Zy({values:KW,defaultWidth:"wide"}),day:Zy({values:ZW,defaultWidth:"wide"}),dayPeriod:Zy({values:JW,defaultWidth:"wide",formattingValues:eY,defaultFormattingWidth:"wide"})};function Jy(t){return(e,i={})=>{const a=i.width,E=a&&t.matchPatterns[a]||t.matchPatterns[t.defaultMatchWidth],p=e.match(E);if(!p)return null;const g=p[0],y=a&&t.parsePatterns[a]||t.parsePatterns[t.defaultParseWidth],f=Array.isArray(y)?iY(y,u=>u.test(g)):oY(y,u=>u.test(g));let b;b=t.valueCallback?t.valueCallback(f):f,b=i.valueCallback?i.valueCallback(b):b;const c=e.slice(g.length);return{value:b,rest:c}}}function oY(t,e){for(const i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&e(t[i]))return i}function iY(t,e){for(let i=0;i<t.length;i++)if(e(t[i]))return i}function rY(t){return(e,i={})=>{const a=e.match(t.matchPattern);if(!a)return null;const E=a[0],p=e.match(t.parsePattern);if(!p)return null;let g=t.valueCallback?t.valueCallback(p[0]):p[0];g=i.valueCallback?i.valueCallback(g):g;const y=e.slice(E.length);return{value:g,rest:y}}}const aY=/^(\d+)(th|st|nd|rd)?/i,sY=/\d+/i,lY={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},cY={any:[/^b/i,/^(a|c)/i]},uY={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},dY={any:[/1/i,/2/i,/3/i,/4/i]},fY={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},hY={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},mY={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},pY={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},gY={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},bY={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},vY={ordinalNumber:rY({matchPattern:aY,parsePattern:sY,valueCallback:t=>parseInt(t,10)}),era:Jy({matchPatterns:lY,defaultMatchWidth:"wide",parsePatterns:cY,defaultParseWidth:"any"}),quarter:Jy({matchPatterns:uY,defaultMatchWidth:"wide",parsePatterns:dY,defaultParseWidth:"any",valueCallback:t=>t+1}),month:Jy({matchPatterns:fY,defaultMatchWidth:"wide",parsePatterns:hY,defaultParseWidth:"any"}),day:Jy({matchPatterns:mY,defaultMatchWidth:"wide",parsePatterns:pY,defaultParseWidth:"any"}),dayPeriod:Jy({matchPatterns:gY,defaultMatchWidth:"any",parsePatterns:bY,defaultParseWidth:"any"})},yY={code:"en-US",formatDistance:FW,formatLong:QW,formatRelative:YW,localize:nY,match:vY,options:{weekStartsOn:0,firstWeekContainsDate:1}};function EY(t,e){const i=ic(t,e==null?void 0:e.in);return $W(i,zW(i))+1}function wY(t,e){const i=ic(t,e==null?void 0:e.in),a=+eT(i)-+UW(i);return Math.round(a/NU)+1}function LU(t,e){var c,u,d,h;const i=ic(t,e==null?void 0:e.in),a=i.getFullYear(),E=IT(),p=(e==null?void 0:e.firstWeekContainsDate)??((u=(c=e==null?void 0:e.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??E.firstWeekContainsDate??((h=(d=E.locale)==null?void 0:d.options)==null?void 0:h.firstWeekContainsDate)??1,g=dh((e==null?void 0:e.in)||t,0);g.setFullYear(a+1,0,p),g.setHours(0,0,0,0);const y=SE(g,e),f=dh((e==null?void 0:e.in)||t,0);f.setFullYear(a,0,p),f.setHours(0,0,0,0);const b=SE(f,e);return+i>=+y?a+1:+i>=+b?a:a-1}function SY(t,e){var y,f,b,c;const i=IT(),a=(e==null?void 0:e.firstWeekContainsDate)??((f=(y=e==null?void 0:e.locale)==null?void 0:y.options)==null?void 0:f.firstWeekContainsDate)??i.firstWeekContainsDate??((c=(b=i.locale)==null?void 0:b.options)==null?void 0:c.firstWeekContainsDate)??1,E=LU(t,e),p=dh((e==null?void 0:e.in)||t,0);return p.setFullYear(E,0,a),p.setHours(0,0,0,0),SE(p,e)}function TY(t,e){const i=ic(t,e==null?void 0:e.in),a=+SE(i,e)-+SY(i,e);return Math.round(a/NU)+1}function so(t,e){const i=t<0?"-":"",a=Math.abs(t).toString().padStart(e,"0");return i+a}const Kf={y(t,e){const i=t.getFullYear(),a=i>0?i:1-i;return so(e==="yy"?a%100:a,e.length)},M(t,e){const i=t.getMonth();return e==="M"?String(i+1):so(i+1,2)},d(t,e){return so(t.getDate(),e.length)},a(t,e){const i=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.toUpperCase();case"aaa":return i;case"aaaaa":return i[0];case"aaaa":default:return i==="am"?"a.m.":"p.m."}},h(t,e){return so(t.getHours()%12||12,e.length)},H(t,e){return so(t.getHours(),e.length)},m(t,e){return so(t.getMinutes(),e.length)},s(t,e){return so(t.getSeconds(),e.length)},S(t,e){const i=e.length,a=t.getMilliseconds(),E=Math.trunc(a*Math.pow(10,i-3));return so(E,e.length)}},Rb={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},j3={G:function(t,e,i){const a=t.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(a,{width:"abbreviated"});case"GGGGG":return i.era(a,{width:"narrow"});case"GGGG":default:return i.era(a,{width:"wide"})}},y:function(t,e,i){if(e==="yo"){const a=t.getFullYear(),E=a>0?a:1-a;return i.ordinalNumber(E,{unit:"year"})}return Kf.y(t,e)},Y:function(t,e,i,a){const E=LU(t,a),p=E>0?E:1-E;if(e==="YY"){const g=p%100;return so(g,2)}return e==="Yo"?i.ordinalNumber(p,{unit:"year"}):so(p,e.length)},R:function(t,e){const i=RU(t);return so(i,e.length)},u:function(t,e){const i=t.getFullYear();return so(i,e.length)},Q:function(t,e,i){const a=Math.ceil((t.getMonth()+1)/3);switch(e){case"Q":return String(a);case"QQ":return so(a,2);case"Qo":return i.ordinalNumber(a,{unit:"quarter"});case"QQQ":return i.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(a,{width:"wide",context:"formatting"})}},q:function(t,e,i){const a=Math.ceil((t.getMonth()+1)/3);switch(e){case"q":return String(a);case"qq":return so(a,2);case"qo":return i.ordinalNumber(a,{unit:"quarter"});case"qqq":return i.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(a,{width:"wide",context:"standalone"})}},M:function(t,e,i){const a=t.getMonth();switch(e){case"M":case"MM":return Kf.M(t,e);case"Mo":return i.ordinalNumber(a+1,{unit:"month"});case"MMM":return i.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(a,{width:"wide",context:"formatting"})}},L:function(t,e,i){const a=t.getMonth();switch(e){case"L":return String(a+1);case"LL":return so(a+1,2);case"Lo":return i.ordinalNumber(a+1,{unit:"month"});case"LLL":return i.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(a,{width:"wide",context:"standalone"})}},w:function(t,e,i,a){const E=TY(t,a);return e==="wo"?i.ordinalNumber(E,{unit:"week"}):so(E,e.length)},I:function(t,e,i){const a=wY(t);return e==="Io"?i.ordinalNumber(a,{unit:"week"}):so(a,e.length)},d:function(t,e,i){return e==="do"?i.ordinalNumber(t.getDate(),{unit:"date"}):Kf.d(t,e)},D:function(t,e,i){const a=EY(t);return e==="Do"?i.ordinalNumber(a,{unit:"dayOfYear"}):so(a,e.length)},E:function(t,e,i){const a=t.getDay();switch(e){case"E":case"EE":case"EEE":return i.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(a,{width:"short",context:"formatting"});case"EEEE":default:return i.day(a,{width:"wide",context:"formatting"})}},e:function(t,e,i,a){const E=t.getDay(),p=(E-a.weekStartsOn+8)%7||7;switch(e){case"e":return String(p);case"ee":return so(p,2);case"eo":return i.ordinalNumber(p,{unit:"day"});case"eee":return i.day(E,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(E,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(E,{width:"short",context:"formatting"});case"eeee":default:return i.day(E,{width:"wide",context:"formatting"})}},c:function(t,e,i,a){const E=t.getDay(),p=(E-a.weekStartsOn+8)%7||7;switch(e){case"c":return String(p);case"cc":return so(p,e.length);case"co":return i.ordinalNumber(p,{unit:"day"});case"ccc":return i.day(E,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(E,{width:"narrow",context:"standalone"});case"cccccc":return i.day(E,{width:"short",context:"standalone"});case"cccc":default:return i.day(E,{width:"wide",context:"standalone"})}},i:function(t,e,i){const a=t.getDay(),E=a===0?7:a;switch(e){case"i":return String(E);case"ii":return so(E,e.length);case"io":return i.ordinalNumber(E,{unit:"day"});case"iii":return i.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(a,{width:"short",context:"formatting"});case"iiii":default:return i.day(a,{width:"wide",context:"formatting"})}},a:function(t,e,i){const E=t.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(E,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(E,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(E,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(E,{width:"wide",context:"formatting"})}},b:function(t,e,i){const a=t.getHours();let E;switch(a===12?E=Rb.noon:a===0?E=Rb.midnight:E=a/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(E,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(E,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(E,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(E,{width:"wide",context:"formatting"})}},B:function(t,e,i){const a=t.getHours();let E;switch(a>=17?E=Rb.evening:a>=12?E=Rb.afternoon:a>=4?E=Rb.morning:E=Rb.night,e){case"B":case"BB":case"BBB":return i.dayPeriod(E,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(E,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(E,{width:"wide",context:"formatting"})}},h:function(t,e,i){if(e==="ho"){let a=t.getHours()%12;return a===0&&(a=12),i.ordinalNumber(a,{unit:"hour"})}return Kf.h(t,e)},H:function(t,e,i){return e==="Ho"?i.ordinalNumber(t.getHours(),{unit:"hour"}):Kf.H(t,e)},K:function(t,e,i){const a=t.getHours()%12;return e==="Ko"?i.ordinalNumber(a,{unit:"hour"}):so(a,e.length)},k:function(t,e,i){let a=t.getHours();return a===0&&(a=24),e==="ko"?i.ordinalNumber(a,{unit:"hour"}):so(a,e.length)},m:function(t,e,i){return e==="mo"?i.ordinalNumber(t.getMinutes(),{unit:"minute"}):Kf.m(t,e)},s:function(t,e,i){return e==="so"?i.ordinalNumber(t.getSeconds(),{unit:"second"}):Kf.s(t,e)},S:function(t,e){return Kf.S(t,e)},X:function(t,e,i){const a=t.getTimezoneOffset();if(a===0)return"Z";switch(e){case"X":return B3(a);case"XXXX":case"XX":return tp(a);case"XXXXX":case"XXX":default:return tp(a,":")}},x:function(t,e,i){const a=t.getTimezoneOffset();switch(e){case"x":return B3(a);case"xxxx":case"xx":return tp(a);case"xxxxx":case"xxx":default:return tp(a,":")}},O:function(t,e,i){const a=t.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+z3(a,":");case"OOOO":default:return"GMT"+tp(a,":")}},z:function(t,e,i){const a=t.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+z3(a,":");case"zzzz":default:return"GMT"+tp(a,":")}},t:function(t,e,i){const a=Math.trunc(+t/1e3);return so(a,e.length)},T:function(t,e,i){return so(+t,e.length)}};function z3(t,e=""){const i=t>0?"-":"+",a=Math.abs(t),E=Math.trunc(a/60),p=a%60;return p===0?i+String(E):i+String(E)+e+so(p,2)}function B3(t,e){return t%60===0?(t>0?"-":"+")+so(Math.abs(t)/60,2):tp(t,e)}function tp(t,e=""){const i=t>0?"-":"+",a=Math.abs(t),E=so(Math.trunc(a/60),2),p=so(a%60,2);return i+E+e+p}const F3=(t,e)=>{switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},OU=(t,e)=>{switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},AY=(t,e)=>{const i=t.match(/(P+)(p+)?/)||[],a=i[1],E=i[2];if(!E)return F3(t,e);let p;switch(a){case"P":p=e.dateTime({width:"short"});break;case"PP":p=e.dateTime({width:"medium"});break;case"PPP":p=e.dateTime({width:"long"});break;case"PPPP":default:p=e.dateTime({width:"full"});break}return p.replace("{{date}}",F3(a,e)).replace("{{time}}",OU(E,e))},xY={p:OU,P:AY},_Y=/^D+$/,CY=/^Y+$/,NY=["D","DD","YY","YYYY"];function RY(t){return _Y.test(t)}function LY(t){return CY.test(t)}function OY(t,e,i){const a=DY(t,e,i);if(console.warn(a),NY.includes(t))throw new RangeError(a)}function DY(t,e,i){const a=t[0]==="Y"?"years":"days of the month";return`Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${a} to the input \`${i}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const MY=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,kY=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,IY=/^'([^]*?)'?$/,$Y=/''/g,UY=/[a-zA-Z]/;function TE(t,e,i){var c,u,d,h;const a=IT(),E=a.locale??yY,p=a.firstWeekContainsDate??((u=(c=a.locale)==null?void 0:c.options)==null?void 0:u.firstWeekContainsDate)??1,g=a.weekStartsOn??((h=(d=a.locale)==null?void 0:d.options)==null?void 0:h.weekStartsOn)??0,y=ic(t,i==null?void 0:i.in);if(!jW(y))throw new RangeError("Invalid time value");let f=e.match(kY).map(m=>{const S=m[0];if(S==="p"||S==="P"){const T=xY[S];return T(m,E.formatLong)}return m}).join("").match(MY).map(m=>{if(m==="''")return{isToken:!1,value:"'"};const S=m[0];if(S==="'")return{isToken:!1,value:HY(m)};if(j3[S])return{isToken:!0,value:m};if(S.match(UY))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");return{isToken:!1,value:m}});E.localize.preprocessor&&(f=E.localize.preprocessor(y,f));const b={firstWeekContainsDate:p,weekStartsOn:g,locale:E};return f.map(m=>{if(!m.isToken)return m.value;const S=m.value;(LY(S)||RY(S))&&OY(S,e,String(t));const T=j3[S[0]];return T(y,S,E.localize,b)}).join("")}function HY(t){const e=t.match(IY);return e?e[1].replace($Y,"'"):t}function jY(){const t=iu();async function e(i){const{integrationPackInstanceId:a,search:E,page:p,pageSize:g,signal:y}=i;return t.get("/execution-summary-records",{signal:y,params:{integrationPackInstanceId:a,...E?{search:E}:{},...typeof p=="number"?{page:p}:{},...typeof g=="number"?{pageSize:g}:{}}})}return{getExecutionRecords:e}}/**
2252
2252
  * @file useFetchExecutionRecords.tsx
2253
2253
  * @function useFetchExecutionRecords
2254
2254
  * @license BSD-2-Clause
@@ -2262,7 +2262,7 @@ https://sweetalert2.github.io/#ajax-request`),zQ(t),typeof t.title=="string"&&(t
2262
2262
  w-full h-full min-h-0 flex flex-col
2263
2263
  [background-color:var(--boomi-page-bg-color)]
2264
2264
  [color:var(--boomi-page-fg-color)]
2265
- `,children:[T&&H.jsx(UC,{message:"working on your request..."}),H.jsxs("div",{className:"flex-1 min-h-0 flex flex-col",children:[!i&&H.jsx(bU,{levelOneCallback:d||(()=>{}),levelTwoCallback:h||(()=>{}),levelThreeCallback:m||(()=>{}),levelOneText:b||"Back",levelTwoText:c||"",levelThreeText:u||""}),N&&H.jsx(AU,{componentKey:t,componentName:e,title:p,description:g,children:a}),H.jsx(WY,{error:y,children:E}),H.jsx(vU,{children:f})]})]})},AE=({currentPage:t,totalPages:e,onPageChange:i})=>{const[a,E]=Y.useState(t.toString()),p=f=>{f>=1&&f<=e&&(i(f),E(f.toString()))},g=f=>{E(f.target.value)},y=()=>{const f=parseInt(a,10);isNaN(f)||p(f)};return H.jsxs("div",{className:"flex justify-end items-center space-x-2 mt-4",children:[H.jsx(Bn,{toggle:!1,primary:!1,showIcon:!0,iconOnly:!0,disabled:t===1,icon:H.jsx(v7,{className:"text-indigo-400 hover:text-indigo-500 w-6 h-6"}),onClick:()=>p(t-1)}),Array.from({length:e}).map((f,b)=>{const c=b+1;return H.jsx("button",{className:`px-2 py-1 rounded cursor-pointer ${t===c?"text-indigo-500 bg-indigo-100 rounded-md":"text-indigo-400"}`,onClick:()=>p(c),children:c},c)}),H.jsx(Bn,{toggle:!1,primary:!1,showIcon:!0,iconOnly:!0,disabled:t===e,icon:H.jsx(y7,{className:"w-6 h-6"}),onClick:()=>p(t+1)}),H.jsx("span",{className:"text-sm text-gray-700 ml-2",children:"Go to page"}),H.jsx("input",{type:"number",value:a,onChange:g,className:"w-12 px-1 py-1 border rounded text-sm "}),H.jsx(Bn,{toggle:!1,primary:!1,showIcon:!1,label:"Go",onClick:y})]})},xE=({searchCallback:t})=>{const[e,i]=Y.useState(""),a=g=>{const y=g.currentTarget.value;i(y)},E=g=>{if(g.key==="Enter"){const y=g.currentTarget.value;g.preventDefault(),i(y),t(y)}},p=()=>{i(""),t("");const g=document.getElementById("search");g==null||g.focus()};return H.jsxs("div",{className:"relative flex items-center pr-2 w-[400px]",children:[H.jsx("input",{type:"text",name:"search",id:"search",placeholder:"Type to search...",value:e,onChange:a,onKeyDown:E,className:"block w-full rounded-md py-2 pl-3 pr-10 text-sm boomi-input","aria-label":"Search"}),e.length>0&&H.jsx("button",{type:"button",onClick:p,className:"absolute right-3 top-1/2 -translate-y-1/2 p-0.5 rounded-full focus:outline-none focus:ring-2 focus:ring-offset-1","aria-label":"Clear search",title:"Clear",children:H.jsx(w5,{className:"h-5 w-5"})})]})},YY={COMPLETE:"text-green-600 bg-green-100",COMPLETE_WARN:"text-yellow-600 bg-yellow-100",DISCARDED:"text-yellow-600 bg-yellow-100",ERROR:"text-red-600 bg-red-100"},MU=({record:t})=>{const{processName:e,executionId:i,executionTime:a,recordedDate:E,status:p,atomName:g,launcherID:y,executionType:f,inboundDocumentCount:b,outboundDocumentCount:c,message:u}=t,d=Yb("text-xs font-semibold rounded-full px-2 py-1",YY[p]||"bg-gray-100 text-gray-600");return H.jsxs("div",{className:"border rounded-xl p-5 shadow-md bg-white space-y-4",children:[H.jsxs("div",{className:"flex items-center justify-between",children:[H.jsxs("div",{className:"flex flex-col",children:[H.jsx("h2",{className:"text-md font-bold text-gray-800",children:e}),H.jsxs("span",{className:"text-xs font-normal text-gray-700 mt-1",children:["Execution ID: ",i]})]}),H.jsxs("div",{className:"flex flex-col",children:[H.jsx("span",{className:d,children:p}),H.jsx("span",{className:"text-xs font-normal text-gray-700 mt-1",children:f})]})]}),H.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-x-6 gap-y-2 text-sm text-gray-700",children:[H.jsxs("div",{children:[H.jsx("span",{className:"font-medium",children:"Start Time:"})," ",TE(new Date(a),"PPpp")]}),H.jsxs("div",{children:[H.jsx("span",{className:"font-medium",children:"End Time:"})," ",TE(new Date(E),"PPpp")]}),H.jsxs("div",{children:[H.jsx("span",{className:"font-medium",children:"Runtime:"})," ",g]}),H.jsxs("div",{children:[H.jsx("span",{className:"font-medium",children:"Launcher:"})," ",y]}),H.jsxs("div",{children:[H.jsx("span",{className:"font-medium",children:"Inbound Docs:"})," ",b??0]}),H.jsxs("div",{children:[H.jsx("span",{className:"font-medium",children:"Outbound Docs:"})," ",c??0]})]}),u&&p==="ERROR"&&H.jsxs("div",{className:"mt-3 bg-red-50 border border-red-300 rounded p-3 text-sm text-red-700",children:[H.jsx("strong",{children:"Error:"})," ",u]}),u&&p==="COMPLETE_WARN"&&H.jsxs("div",{className:"mt-3 bg-yellow-50 border border-red-300 rounded p-3 text-sm text-yellow-700",children:[H.jsx("strong",{children:"Error:"})," ",u]}),u&&p==="DISCARDED"&&H.jsxs("div",{className:"mt-3 bg-yellow-50 border border-red-300 rounded p-3 text-sm text-yellow-700",children:[H.jsx("strong",{children:"Error:"})," ",u]}),u&&p==="COMPLETE"&&H.jsxs("div",{className:"mt-3 bg-green-50 border border-red-300 rounded p-3 text-sm text-green-700",children:[H.jsx("strong",{children:"Error:"})," ",u]})]})},kU=({componentKey:t,showUpdateControls:e})=>{var ct,gt,at,Re,je,it,rt,vt,St,Nt,an,Lt,_t,Et,xe,Ge,bt,Dt,ut,yt,Ht,jt,Ce,Ze,ft,Tt,Mt,en,Gt,sn,Rn,Yt,Je,Fn,Rt,ni,vo,Xt,Pn,zo,mo,ki,wr,nt,Ee,Ke,st,on,Zn,Ln;const{boomiConfig:i,setPageIsLoading:a,renderComponent:E}=Xn(),p=((gt=(ct=i==null?void 0:i.components)==null?void 0:ct[t])==null?void 0:gt.renderType)??"all",[g,y]=Y.useState({delete:!1,update:e||!1,startSuccess:!1,startError:!1}),{deleteIntegrationPackInstance:f}=TW(),{createInstance:b}=SW(),[c,u]=Y.useState(""),[d,h]=Y.useState(new Set),[m,S]=Y.useState(!1),T=Y.useRef(null),A=Y.useRef(!1),[N,O]=Y.useState(null),{integrationPackInstances:D,error:R,isLoading:C,refetch:$,currentPage:F,totalPages:U,goToPage:j}=AW({search:c,renderType:p}),{isRunning:X,error:P,runAllProcesses:B}=_U(),[k,M]=Y.useState(!1),[I,W]=Y.useState(null),Q=`integrations-list-all:${t}`,[J,K]=Y.useState("off"),Z=ot=>re(ot??void 0),re=ot=>{if(ot===!0)return"on";if(ot===!1)return"off";if(typeof ot=="string"){const vn=ot.toLowerCase();if(vn==="table"||vn==="on")return"on";if(vn==="grid"||vn==="off")return"off"}},te=ot=>{y(vn=>({...vn,[ot]:!0})),setTimeout(()=>{y(vn=>({...vn,[ot]:!1}))},3e3)},ae=ot=>{Le.debug("showing execution record:",ot),W(ot),M(!0)},se=()=>{M(!1),W(null)},ie=D.filter(ot=>!d.has(ot.id||"")),ue=ie.filter(ot=>!ot.isAgent),me=async()=>{var vn;const ot=(vn=T.current)==null?void 0:vn.validateAndSubmit();if(ot){S(!1),O(null),a(!0);try{Le.debug("Creating integration instance with:",ot);const yn=await b(ot.integrationPackId||"",ot.isSingle||!1,ot.environmentId,ot.integrationName);yn&&(yn.isAgent?pe("RunAgent",yn):yn.installationType==="SINGLE"?pe("UpdateSchedules",yn):pe("ConfigureIntegration",yn))}catch(yn){O(yn.message||"Failed to install integration"),Le.error("Install error:",yn)}}},ve=()=>{E==null||E({component:"Integrations",props:{componentKey:t||"integrationsMain"}})},pe=(ot,vn)=>{a(!0),E==null||E({component:ot||"ConfigureIntegration",props:{componentKey:t||"integrationsMain",integration:vn,onBack:ve}})},ye=ot=>{a(!0),E==null||E({component:"ExecutionHistory",props:{componentKey:t||"integrationsMain",integration:ot,onBack:ve}})},de=async ot=>{await f(ot.id||"")&&(h(yn=>new Set(yn).add(ot.id||"")),te("delete"),await $())},Ve=async ot=>{await B(ot.environmentId||"",ot.id||"")&&!P?(a(!1),te("startSuccess")):P&&te("startError")},De=()=>{const ot=Z(localStorage.getItem(Q));ot&&K(ot)},qe=ot=>{u(ot)};Y.useEffect(()=>{e&&te("update")},[e]),Y.useEffect(()=>{var On,oi;A.current||(A.current=!0);const ot=((oi=(On=i==null?void 0:i.components)==null?void 0:On[t])==null?void 0:oi.integrations)??{},vn=!!ot.forceDefaultView,yn=re(ot.defaultView),gi=Z(localStorage.getItem(Q));if(Le.debug("Integrations view init",{componentKey:t,storageKey:Q,forced:vn,configured:yn,stored:gi}),vn){const va=yn??"off";K(va);try{localStorage.setItem(Q,va)}catch{}return}if(gi){K(gi);return}if(yn){K(yn);try{localStorage.setItem(Q,yn)}catch{}return}K("off");try{localStorage.setItem(Q,"off")}catch{}},[i,t,Q]),Y.useEffect(()=>{a(X)},[X,a]);const et=((it=(je=(Re=(at=i==null?void 0:i.components)==null?void 0:at[t])==null?void 0:Re.integrations)==null?void 0:je.search)==null?void 0:it.show)??!0,mt=((Nt=(St=(vt=(rt=i==null?void 0:i.components)==null?void 0:rt[t])==null?void 0:vt.integrations)==null?void 0:St.addButton)==null?void 0:Nt.show)??!0,xt=((Et=(_t=(Lt=(an=i==null?void 0:i.components)==null?void 0:an[t])==null?void 0:Lt.integrations)==null?void 0:_t.viewTypeButton)==null?void 0:Et.show)??!0,$t=H.jsxs(H.Fragment,{children:[et&&H.jsx("div",{className:"flex-none pr-6 pt-4 pb-4",children:H.jsx(xE,{searchCallback:qe})}),mt&&H.jsx("div",{className:"flex-1 pr-4 pt-4",children:H.jsx(Bn,{toggle:!1,primary:!0,showIcon:!0,label:(Dt=(bt=(Ge=(xe=i==null?void 0:i.components)==null?void 0:xe[t])==null?void 0:Ge.integrations)==null?void 0:bt.addButton)==null?void 0:Dt.label,icon:H.jsx(DE,{className:"h-5 w-5"}),onClick:()=>S(!0)})}),xt&&H.jsx("div",{className:"flex-none pt-4 pr-4",children:H.jsx(Bn,{toggle:!0,primary:!1,viewLoc:Q,onClass:"flex w-full justify-center rounded-md px-2 py-2 text-xs font-semibold leading-6 shadow-md transition-colors duration-100",showIcon:!0,label:(jt=(Ht=(yt=(ut=i==null?void 0:i.components)==null?void 0:ut[t])==null?void 0:yt.integrations)==null?void 0:Ht.viewTypeButton)==null?void 0:jt.label,icon:H.jsx(A5,{className:"h-5 w-5"}),onIcon:H.jsx(y5,{className:"h-5 w-5"}),onClick:De})})]}),ze=J==="off"?H.jsxs(H.Fragment,{children:[H.jsx("ul",{role:"list",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-x-6 gap-y-8",children:C?H.jsx("div",{className:"col-span-full flex justify-center items-center",children:H.jsx(Ki,{})}):ie.length>0?ie.map(ot=>H.jsx(G3,{componentKey:t,viewType:"off",integration:ot,onEditClick:pe,onDeleteClick:de,onShowHistory:ye,onViewDetails:ae,onRunClick:Ve},ot.id)):H.jsx("div",{className:"col-span-full flex justify-center items-center",children:H.jsx("p",{className:"text-gray-500 text-xs",children:"No integrations found."})})}),!C&&U>1&&H.jsx(AE,{currentPage:F,totalPages:U,onPageChange:ot=>j(ot)})]}):H.jsxs("div",{className:"",children:[H.jsxs("table",{className:"w-full table-auto rounded-lg shadow-sm",children:[H.jsx("thead",{className:"boomi-table-header",children:H.jsxs("tr",{children:[H.jsx("th",{className:"py-3 px-4 text-left text-sm font-semibold w-1/6",children:"Name"}),H.jsx("th",{className:"py-3 text-left text-sm font-semibold w-3/6 w-full",children:"Description"}),H.jsx("th",{className:"py-3 text-left text-sm font-semibold w-1/6",children:"Execution History"}),(((Tt=(ft=(Ze=(Ce=i==null?void 0:i.components)==null?void 0:Ce[t])==null?void 0:Ze.integrations)==null?void 0:ft.integration)==null?void 0:Tt.showControls)??!0)&&H.jsx("th",{className:"py-3 px-4"})]})}),H.jsx("tbody",{className:"divide-y",children:C?H.jsx("tr",{children:H.jsx("td",{colSpan:5,children:H.jsx("div",{className:"flex justify-center items-center py-6",children:H.jsx(Ki,{})})})}):ue.length>0?ue.map(ot=>H.jsx(G3,{componentKey:t,viewType:"on",integration:ot,onEditClick:pe,onDeleteClick:de,onShowHistory:ye,onViewDetails:ae,onRunClick:Ve},ot.id)):ie.length>0?H.jsx("tr",{children:H.jsx("td",{colSpan:5,children:H.jsx("div",{className:"flex justify-center items-center py-4",children:H.jsx("p",{className:"text-gray-500 text-xs",children:"No integrations found."})})})}):H.jsx("tr",{children:H.jsx("td",{colSpan:5,children:H.jsx("div",{className:"flex justify-center items-center py-4",children:H.jsx("p",{className:"text-gray-500 text-xs",children:"No integrations found."})})})})})]}),!C&&U>1&&H.jsx(AE,{currentPage:F,totalPages:U,onPageChange:ot=>j(ot)})]}),tt=R||N;return H.jsxs(H.Fragment,{children:[H.jsxs(H.Fragment,{children:[g.delete&&H.jsx(Kc,{type:"success",content:"Integration deleted successfully!"}),g.update&&H.jsx(Kc,{type:"success",content:"Integration updated successfully!"}),g.startSuccess&&H.jsx(Kc,{type:"success",content:"Integration process(s) started successfully!"}),g.startError&&H.jsx(Kc,{type:"error",content:`Error starting integrations: ${P}`})]}),k&&H.jsx(fh,{isOpen:k,title:`${((sn=(Gt=(en=(Mt=i==null?void 0:i.components)==null?void 0:Mt[t])==null?void 0:en.integrations)==null?void 0:Gt.executionHistoryDetails)==null?void 0:sn.title)||"Execution History Details"}`,description:((Fn=(Je=(Yt=(Rn=i==null?void 0:i.components)==null?void 0:Rn[t])==null?void 0:Yt.integrations)==null?void 0:Je.executionHistoryDetails)==null?void 0:Fn.description)||"The details for this execution.",showCancelButton:!1,onSubmit:se,submitLabel:"Close",children:I&&H.jsx(MU,{record:I})}),H.jsx(fh,{isOpen:m,title:`${((Xt=(vo=(ni=(Rt=i==null?void 0:i.components)==null?void 0:Rt[t])==null?void 0:ni.form)==null?void 0:vo.addIntegration)==null?void 0:Xt.title)||"Add Integration"}`,description:((ki=(mo=(zo=(Pn=i==null?void 0:i.components)==null?void 0:Pn[t])==null?void 0:zo.form)==null?void 0:mo.addIntegration)==null?void 0:ki.description)||"Add a new integration to your environment. Note: This will not deploy the integration, it will only create the integration instance.",onClose:()=>S(!1),onSubmit:me,submitLabel:"Create Integration",children:H.jsx(CU,{ref:T,componentKey:t})}),H.jsx(Ep,{componentKey:t,componentName:"integrations",isRootNavigation:!0,title:`${((Ke=(Ee=(nt=(wr=i==null?void 0:i.components)==null?void 0:wr[t])==null?void 0:nt.integrations)==null?void 0:Ee.header)==null?void 0:Ke.title)||"Integrations"}`,description:((Ln=(Zn=(on=(st=i==null?void 0:i.components)==null?void 0:st[t])==null?void 0:on.integrations)==null?void 0:Zn.header)==null?void 0:Ln.description)||"View your integrations below.",headerContent:$t,bodyContent:ze,error:tt?{header:"Error",message:tt,errorType:"error"}:void 0,levelOne:"My Integrations",callbackOne:ve})]})};/**
2265
+ `,children:[T&&H.jsx(UC,{message:"working on your request..."}),H.jsxs("div",{className:"flex-1 min-h-0 flex flex-col",children:[!i&&H.jsx(bU,{levelOneCallback:d||(()=>{}),levelTwoCallback:h||(()=>{}),levelThreeCallback:m||(()=>{}),levelOneText:b||"Back",levelTwoText:c||"",levelThreeText:u||""}),N&&H.jsx(AU,{componentKey:t,componentName:e,title:p,description:g,children:a}),H.jsx(WY,{error:y,children:E}),H.jsx(vU,{children:f})]})]})},AE=({currentPage:t,totalPages:e,onPageChange:i})=>{const[a,E]=Y.useState(t.toString()),p=f=>{f>=1&&f<=e&&(i(f),E(f.toString()))},g=f=>{E(f.target.value)},y=()=>{const f=parseInt(a,10);isNaN(f)||p(f)};return H.jsxs("div",{className:"flex justify-end items-center space-x-2 mt-4",children:[H.jsx(Bn,{toggle:!1,primary:!1,showIcon:!0,iconOnly:!0,disabled:t===1,icon:H.jsx(v7,{className:"text-indigo-400 hover:text-indigo-500 w-6 h-6"}),onClick:()=>p(t-1)}),Array.from({length:e}).map((f,b)=>{const c=b+1;return H.jsx("button",{className:`px-2 py-1 rounded cursor-pointer ${t===c?"text-indigo-500 bg-indigo-100 rounded-md":"text-indigo-400"}`,onClick:()=>p(c),children:c},c)}),H.jsx(Bn,{toggle:!1,primary:!1,showIcon:!0,iconOnly:!0,disabled:t===e,icon:H.jsx(y7,{className:"w-6 h-6"}),onClick:()=>p(t+1)}),H.jsx("span",{className:"text-sm text-gray-700 ml-2",children:"Go to page"}),H.jsx("input",{type:"number",value:a,onChange:g,className:"w-12 px-1 py-1 border rounded text-sm "}),H.jsx(Bn,{toggle:!1,primary:!1,showIcon:!1,label:"Go",onClick:y})]})},xE=({searchCallback:t})=>{const[e,i]=Y.useState(""),a=g=>{const y=g.currentTarget.value;i(y)},E=g=>{if(g.key==="Enter"){const y=g.currentTarget.value;g.preventDefault(),i(y),t(y)}},p=()=>{i(""),t("");const g=document.getElementById("search");g==null||g.focus()};return H.jsxs("div",{className:"relative flex items-center pr-2 w-[400px]",children:[H.jsx("input",{type:"text",name:"search",id:"search",placeholder:"Type to search...",value:e,onChange:a,onKeyDown:E,className:"block w-full rounded-md py-2 pl-3 pr-10 text-sm boomi-input","aria-label":"Search"}),e.length>0&&H.jsx("button",{type:"button",onClick:p,className:"absolute right-3 top-1/2 -translate-y-1/2 p-0.5 rounded-full focus:outline-none focus:ring-2 focus:ring-offset-1","aria-label":"Clear search",title:"Clear",children:H.jsx(w5,{className:"h-5 w-5"})})]})},YY={COMPLETE:"text-green-600 bg-green-100",COMPLETE_WARN:"text-yellow-600 bg-yellow-100",DISCARDED:"text-yellow-600 bg-yellow-100",ERROR:"text-red-600 bg-red-100"},MU=({record:t})=>{const{processName:e,executionId:i,executionTime:a,recordedDate:E,status:p,atomName:g,launcherID:y,executionType:f,inboundDocumentCount:b,outboundDocumentCount:c,message:u}=t,d=Yb("text-xs font-semibold rounded-full px-2 py-1",YY[p]||"bg-gray-100 text-gray-600");return H.jsxs("div",{className:"border rounded-xl p-5 shadow-md bg-white space-y-4",children:[H.jsxs("div",{className:"flex items-center justify-between",children:[H.jsxs("div",{className:"flex flex-col",children:[H.jsx("h2",{className:"text-md font-bold text-gray-800",children:e}),H.jsxs("span",{className:"text-xs font-normal text-gray-700 mt-1",children:["Execution ID: ",i]})]}),H.jsxs("div",{className:"flex flex-col",children:[H.jsx("span",{className:d,children:p}),H.jsx("span",{className:"text-xs font-normal text-gray-700 mt-1",children:f})]})]}),H.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-x-6 gap-y-2 text-sm text-gray-700",children:[H.jsxs("div",{children:[H.jsx("span",{className:"font-medium",children:"Start Time:"})," ",TE(new Date(a),"PPpp")]}),H.jsxs("div",{children:[H.jsx("span",{className:"font-medium",children:"End Time:"})," ",TE(new Date(E),"PPpp")]}),H.jsxs("div",{children:[H.jsx("span",{className:"font-medium",children:"Runtime:"})," ",g]}),H.jsxs("div",{children:[H.jsx("span",{className:"font-medium",children:"Launcher:"})," ",y]}),H.jsxs("div",{children:[H.jsx("span",{className:"font-medium",children:"Inbound Docs:"})," ",b??0]}),H.jsxs("div",{children:[H.jsx("span",{className:"font-medium",children:"Outbound Docs:"})," ",c??0]})]}),u&&p==="ERROR"&&H.jsxs("div",{className:"mt-3 bg-red-50 border border-red-300 rounded p-3 text-sm text-red-700",children:[H.jsx("strong",{children:"Error:"})," ",u]}),u&&p==="COMPLETE_WARN"&&H.jsxs("div",{className:"mt-3 bg-yellow-50 border border-red-300 rounded p-3 text-sm text-yellow-700",children:[H.jsx("strong",{children:"Error:"})," ",u]}),u&&p==="DISCARDED"&&H.jsxs("div",{className:"mt-3 bg-yellow-50 border border-red-300 rounded p-3 text-sm text-yellow-700",children:[H.jsx("strong",{children:"Error:"})," ",u]}),u&&p==="COMPLETE"&&H.jsxs("div",{className:"mt-3 bg-green-50 border border-red-300 rounded p-3 text-sm text-green-700",children:[H.jsx("strong",{children:"Error:"})," ",u]})]})},kU=({componentKey:t,showUpdateControls:e})=>{var ct,gt,at,Re,je,ot,tt,vt,St,Nt,an,Lt,_t,Et,xe,Ge,bt,Dt,ut,yt,Ht,jt,Ce,Ze,ft,Tt,Mt,en,Gt,sn,Rn,Yt,Je,Fn,Rt,ni,vo,Xt,Pn,zo,mo,ki,wr,it,Ee,Ke,st,on,Zn,Ln;const{boomiConfig:i,setPageIsLoading:a,renderComponent:E}=Xn(),p=((gt=(ct=i==null?void 0:i.components)==null?void 0:ct[t])==null?void 0:gt.renderType)??"all",[g,y]=Y.useState({delete:!1,update:e||!1,startSuccess:!1,startError:!1}),{deleteIntegrationPackInstance:f}=TW(),{createInstance:b}=SW(),[c,u]=Y.useState(""),[d,h]=Y.useState(new Set),[m,S]=Y.useState(!1),T=Y.useRef(null),A=Y.useRef(!1),[N,O]=Y.useState(null),{integrationPackInstances:D,error:R,isLoading:C,refetch:$,currentPage:F,totalPages:U,goToPage:j}=AW({search:c,renderType:p}),{isRunning:X,error:P,runAllProcesses:B}=_U(),[k,M]=Y.useState(!1),[I,W]=Y.useState(null),Q=`integrations-list-all:${t}`,[J,K]=Y.useState("off"),Z=rt=>re(rt??void 0),re=rt=>{if(rt===!0)return"on";if(rt===!1)return"off";if(typeof rt=="string"){const vn=rt.toLowerCase();if(vn==="table"||vn==="on")return"on";if(vn==="grid"||vn==="off")return"off"}},te=rt=>{y(vn=>({...vn,[rt]:!0})),setTimeout(()=>{y(vn=>({...vn,[rt]:!1}))},3e3)},ae=rt=>{Le.debug("showing execution record:",rt),W(rt),M(!0)},se=()=>{M(!1),W(null)},ie=D.filter(rt=>!d.has(rt.id||"")),ue=ie.filter(rt=>!rt.isAgent),me=async()=>{var vn;const rt=(vn=T.current)==null?void 0:vn.validateAndSubmit();if(rt){S(!1),O(null),a(!0);try{Le.debug("Creating integration instance with:",rt);const yn=await b(rt.integrationPackId||"",rt.isSingle||!1,rt.environmentId,rt.integrationName);yn&&(yn.isAgent?pe("RunAgent",yn):yn.installationType==="SINGLE"?pe("UpdateSchedules",yn):pe("ConfigureIntegration",yn))}catch(yn){O(yn.message||"Failed to install integration"),Le.error("Install error:",yn)}}},ve=()=>{E==null||E({component:"Integrations",props:{componentKey:t||"integrationsMain"}})},pe=(rt,vn)=>{a(!0),E==null||E({component:rt||"ConfigureIntegration",props:{componentKey:t||"integrationsMain",integration:vn,onBack:ve}})},ye=rt=>{a(!0),E==null||E({component:"ExecutionHistory",props:{componentKey:t||"integrationsMain",integration:rt,onBack:ve}})},de=async rt=>{await f(rt.id||"")&&(h(yn=>new Set(yn).add(rt.id||"")),te("delete"),await $())},Ve=async rt=>{await B(rt.environmentId||"",rt.id||"")&&!P?(a(!1),te("startSuccess")):P&&te("startError")},De=()=>{const rt=Z(localStorage.getItem(Q));rt&&K(rt)},qe=rt=>{u(rt)};Y.useEffect(()=>{e&&te("update")},[e]),Y.useEffect(()=>{var On,oi;A.current||(A.current=!0);const rt=((oi=(On=i==null?void 0:i.components)==null?void 0:On[t])==null?void 0:oi.integrations)??{},vn=!!rt.forceDefaultView,yn=re(rt.defaultView),gi=Z(localStorage.getItem(Q));if(Le.debug("Integrations view init",{componentKey:t,storageKey:Q,forced:vn,configured:yn,stored:gi}),vn){const va=yn??"off";K(va);try{localStorage.setItem(Q,va)}catch{}return}if(gi){K(gi);return}if(yn){K(yn);try{localStorage.setItem(Q,yn)}catch{}return}K("off");try{localStorage.setItem(Q,"off")}catch{}},[i,t,Q]),Y.useEffect(()=>{a(X)},[X,a]);const et=((ot=(je=(Re=(at=i==null?void 0:i.components)==null?void 0:at[t])==null?void 0:Re.integrations)==null?void 0:je.search)==null?void 0:ot.show)??!0,mt=((Nt=(St=(vt=(tt=i==null?void 0:i.components)==null?void 0:tt[t])==null?void 0:vt.integrations)==null?void 0:St.addButton)==null?void 0:Nt.show)??!0,xt=((Et=(_t=(Lt=(an=i==null?void 0:i.components)==null?void 0:an[t])==null?void 0:Lt.integrations)==null?void 0:_t.viewTypeButton)==null?void 0:Et.show)??!0,$t=H.jsxs(H.Fragment,{children:[et&&H.jsx("div",{className:"flex-none pr-6 pt-4 pb-4",children:H.jsx(xE,{searchCallback:qe})}),mt&&H.jsx("div",{className:"flex-1 pr-4 pt-4",children:H.jsx(Bn,{toggle:!1,primary:!0,showIcon:!0,label:(Dt=(bt=(Ge=(xe=i==null?void 0:i.components)==null?void 0:xe[t])==null?void 0:Ge.integrations)==null?void 0:bt.addButton)==null?void 0:Dt.label,icon:H.jsx(DE,{className:"h-5 w-5"}),onClick:()=>S(!0)})}),xt&&H.jsx("div",{className:"flex-none pt-4 pr-4",children:H.jsx(Bn,{toggle:!0,primary:!1,viewLoc:Q,onClass:"flex w-full justify-center rounded-md px-2 py-2 text-xs font-semibold leading-6 shadow-md transition-colors duration-100",showIcon:!0,label:(jt=(Ht=(yt=(ut=i==null?void 0:i.components)==null?void 0:ut[t])==null?void 0:yt.integrations)==null?void 0:Ht.viewTypeButton)==null?void 0:jt.label,icon:H.jsx(A5,{className:"h-5 w-5"}),onIcon:H.jsx(y5,{className:"h-5 w-5"}),onClick:De})})]}),ze=J==="off"?H.jsxs(H.Fragment,{children:[H.jsx("ul",{role:"list",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-x-6 gap-y-8",children:C?H.jsx("div",{className:"col-span-full flex justify-center items-center",children:H.jsx(Ki,{})}):ie.length>0?ie.map(rt=>H.jsx(G3,{componentKey:t,viewType:"off",integration:rt,onEditClick:pe,onDeleteClick:de,onShowHistory:ye,onViewDetails:ae,onRunClick:Ve},rt.id)):H.jsx("div",{className:"col-span-full flex justify-center items-center",children:H.jsx("p",{className:"text-gray-500 text-xs",children:"No integrations found."})})}),!C&&U>1&&H.jsx(AE,{currentPage:F,totalPages:U,onPageChange:rt=>j(rt)})]}):H.jsxs("div",{className:"",children:[H.jsxs("table",{className:"w-full table-auto rounded-lg shadow-sm",children:[H.jsx("thead",{className:"boomi-table-header",children:H.jsxs("tr",{children:[H.jsx("th",{className:"py-3 px-4 text-left text-sm font-semibold w-1/6",children:"Name"}),H.jsx("th",{className:"py-3 text-left text-sm font-semibold w-3/6 w-full",children:"Description"}),H.jsx("th",{className:"py-3 text-left text-sm font-semibold w-1/6",children:"Execution History"}),(((Tt=(ft=(Ze=(Ce=i==null?void 0:i.components)==null?void 0:Ce[t])==null?void 0:Ze.integrations)==null?void 0:ft.integration)==null?void 0:Tt.showControls)??!0)&&H.jsx("th",{className:"py-3 px-4"})]})}),H.jsx("tbody",{className:"divide-y",children:C?H.jsx("tr",{children:H.jsx("td",{colSpan:5,children:H.jsx("div",{className:"flex justify-center items-center py-6",children:H.jsx(Ki,{})})})}):ue.length>0?ue.map(rt=>H.jsx(G3,{componentKey:t,viewType:"on",integration:rt,onEditClick:pe,onDeleteClick:de,onShowHistory:ye,onViewDetails:ae,onRunClick:Ve},rt.id)):ie.length>0?H.jsx("tr",{children:H.jsx("td",{colSpan:5,children:H.jsx("div",{className:"flex justify-center items-center py-4",children:H.jsx("p",{className:"text-gray-500 text-xs",children:"No integrations found."})})})}):H.jsx("tr",{children:H.jsx("td",{colSpan:5,children:H.jsx("div",{className:"flex justify-center items-center py-4",children:H.jsx("p",{className:"text-gray-500 text-xs",children:"No integrations found."})})})})})]}),!C&&U>1&&H.jsx(AE,{currentPage:F,totalPages:U,onPageChange:rt=>j(rt)})]}),nt=R||N;return H.jsxs(H.Fragment,{children:[H.jsxs(H.Fragment,{children:[g.delete&&H.jsx(Kc,{type:"success",content:"Integration deleted successfully!"}),g.update&&H.jsx(Kc,{type:"success",content:"Integration updated successfully!"}),g.startSuccess&&H.jsx(Kc,{type:"success",content:"Integration process(s) started successfully!"}),g.startError&&H.jsx(Kc,{type:"error",content:`Error starting integrations: ${P}`})]}),k&&H.jsx(fh,{isOpen:k,title:`${((sn=(Gt=(en=(Mt=i==null?void 0:i.components)==null?void 0:Mt[t])==null?void 0:en.integrations)==null?void 0:Gt.executionHistoryDetails)==null?void 0:sn.title)||"Execution History Details"}`,description:((Fn=(Je=(Yt=(Rn=i==null?void 0:i.components)==null?void 0:Rn[t])==null?void 0:Yt.integrations)==null?void 0:Je.executionHistoryDetails)==null?void 0:Fn.description)||"The details for this execution.",showCancelButton:!1,onSubmit:se,submitLabel:"Close",children:I&&H.jsx(MU,{record:I})}),H.jsx(fh,{isOpen:m,title:`${((Xt=(vo=(ni=(Rt=i==null?void 0:i.components)==null?void 0:Rt[t])==null?void 0:ni.form)==null?void 0:vo.addIntegration)==null?void 0:Xt.title)||"Add Integration"}`,description:((ki=(mo=(zo=(Pn=i==null?void 0:i.components)==null?void 0:Pn[t])==null?void 0:zo.form)==null?void 0:mo.addIntegration)==null?void 0:ki.description)||"Add a new integration to your environment. Note: This will not deploy the integration, it will only create the integration instance.",onClose:()=>S(!1),onSubmit:me,submitLabel:"Create Integration",children:H.jsx(CU,{ref:T,componentKey:t})}),H.jsx(Ep,{componentKey:t,componentName:"integrations",isRootNavigation:!0,title:`${((Ke=(Ee=(it=(wr=i==null?void 0:i.components)==null?void 0:wr[t])==null?void 0:it.integrations)==null?void 0:Ee.header)==null?void 0:Ke.title)||"Integrations"}`,description:((Ln=(Zn=(on=(st=i==null?void 0:i.components)==null?void 0:st[t])==null?void 0:on.integrations)==null?void 0:Zn.header)==null?void 0:Ln.description)||"View your integrations below.",headerContent:$t,bodyContent:ze,error:nt?{header:"Error",message:nt,errorType:"error"}:void 0,levelOne:"My Integrations",callbackOne:ve})]})};/**
2266
2266
  * @file useFetchMapExtensions.tsx
2267
2267
  * @function useFetchMapExtensions
2268
2268
  * @license BSD-2-Clause
@@ -2341,7 +2341,7 @@ https://sweetalert2.github.io/#ajax-request`),zQ(t),typeof t.title=="string"&&(t
2341
2341
  * @function useFetchAiTransformations
2342
2342
  * @license BSD-2-Clause
2343
2343
  * @support https://github.com/OfficialBoomi/embed-js
2344
- */const tX=()=>{const[t,e]=Y.useState(null),[i,a]=Y.useState(!1),[E,p]=Y.useState(null),{buildAiTransformation:g}=eX();return{result:t,isLoading:i,error:E,fetchTransformation:async(f,b)=>{a(!0),p(null),e(null);try{Le.debug("Requesting AI transformation for prompt:",f);const c=await g({id:b,userPrompt:f});return Le.debug("Structured output:",c),e(c),c}catch(c){const u=(c==null?void 0:c.message)||"An unexpected error occurred.";Le.error("AI transformation error:",u,c),p(u)}finally{a(!1)}}}};CT.config.set("basePath","https://cdn.jsdelivr.net/npm/ace-builds@1.4.3/src-noconflict/");CT.config.setModuleUrl("ace/mode/javascript_worker","https://cdn.jsdelivr.net/npm/ace-builds@1.4.3/src-noconflict/worker-javascript.js");const nX=["CHARACTER","DATETIME","FLOAT","INTEGER"],IU=Y.forwardRef(({componentKey:t,existingName:e="",existingScript:i="",existingInputs:a=[],existingOutputs:E=[]},p)=>{var ve;const{boomiConfig:g}=Xn(),y=`custom_scripting_${Date.now()}`,[f,b]=Y.useState(()=>e?cT(e,0):y),[c,u]=Y.useState(i),[d,h]=Y.useState(a??[]),[m,S]=Y.useState(E??[]),[T,A]=Y.useState(""),[N,O]=Y.useState("CHARACTER"),[D,R]=Y.useState(""),[C,$]=Y.useState({outputField:"",script:""}),F=Y.useRef(null),[U,j]=Y.useState({}),[X,P]=Y.useState({}),[B,k]=Y.useState(null),[M,I]=Y.useState(""),{isLoading:W,error:Q,fetchTransformation:J}=tX(),K=(g==null?void 0:g.enableAi)||!1,Z=(ve=g==null?void 0:g.theme)!=null&&ve.darkModeTheme?"tomorrow_night_bright":"chrome",re=()=>{const pe=m.some(de=>{var Ve;return((Ve=de==null?void 0:de.name)==null?void 0:Ve.trim().toLowerCase())==="output"}),ye={outputField:m.length===0?"At least one output is required":pe?"Output name 'output' is not allowed":"",script:c.trim()?"":"Script is required"};return $(ye),ye};Y.useImperativeHandle(p,()=>({validateAndSubmit:()=>{const pe=re(),ye=Object.values(pe).some(Boolean);return Le.debug("EditTransformationsForm.validateAndSubmit hasErrors?",pe),ye?null:(Le.debug("EditTransformationsForm.validateAndSubmit",{id:f,script:c,inputs:d,outputs:m}),{id:f,script:c,inputs:d,outputs:m})},isFormReady:()=>{const pe=re();return!Object.values(pe).some(Boolean)}}));const te=()=>{$(pe=>({...pe,script:c.trim()?"":"Script is required"}))},ae=()=>{if(!T.trim())return;const ye=(d.length>0?Math.max(...d.map(de=>de.key)):0)+1;h([...d,{name:T.trim(),key:ye,type:N}]),A(""),O("CHARACTER")},se=()=>{if(!D.trim())return;const ye=(m.length>0?Math.max(...m.map(de=>de.key)):0)+1;S([...m,{name:D.trim(),key:ye}]),R("")},ie=pe=>{h(ye=>ye.filter((de,Ve)=>Ve!==pe))},ue=pe=>{S(ye=>ye.filter((de,Ve)=>Ve!==pe))},me=()=>{var ye,de;Le.debug("Testing script with inputs:",d,"and values:",U);const pe={};d.forEach(Ve=>{const De=U[Ve.key];let qe=De;switch(Ve.type){case"FLOAT":qe=parseFloat(De);break;case"INTEGER":qe=parseInt(De,10);break;case"DATETIME":qe=new Date(De);break}pe[Ve.name]=qe}),(de=(ye=F.current)==null?void 0:ye.contentWindow)==null||de.postMessage({script:c,inputs:pe},"*")};return Y.useEffect(()=>{const pe=ye=>{var de,Ve;if(((de=ye.data)==null?void 0:de.type)==="RESULT"){const De=ye.data.result||{};typeof De=="object"&&De!==null&&(P({...De}),k(null))}else if(((Ve=ye.data)==null?void 0:Ve.type)==="ERROR"){const De=ye.data.error;if(De==="No script provided or script is not a string")return;k(De||"Unknown error"),Le.error("Script Error:",De)}};return window.addEventListener("message",pe),()=>window.removeEventListener("message",pe)},[]),H.jsxs("div",{className:"space-y-4 text-sm",children:[H.jsx("input",{type:"hidden",value:f}),H.jsx("iframe",{ref:F,src:JY(),sandbox:"allow-scripts",style:{display:"none"}}),K&&H.jsxs("div",{className:"space-y-2",children:[H.jsx("label",{className:"block font-semibold",children:"Ask AI to generate transformation"}),H.jsxs("div",{className:"flex gap-2",children:[H.jsx("textarea",{rows:2,value:M,onChange:pe=>I(pe.target.value),placeholder:"Describe your transformation...",className:"flex-1 border rounded px-2 py-1 resize-y"}),H.jsx("button",{type:"button",disabled:W||!M.trim(),onClick:async()=>{const pe=await J(M,f);pe&&(u(pe.Configuration.Scripting.Script),h(pe.Configuration.Scripting.Inputs.Input.map(ye=>({name:ye.name,key:Number(ye.index),type:ye.dataType}))),S(pe.Configuration.Scripting.Outputs.Output.map(ye=>({name:ye.name,key:Number(ye.index)}))),$({outputField:"",script:""}))},className:" boomi-btn-primary px-3 py-1 disabled:opacity-50",children:W?"Generating...":"Generate"})]}),Q&&H.jsx(tu,{error:{header:"Error Generating Transformation",message:Q,errorType:"error",onClose:()=>{}}})]}),H.jsxs("div",{children:[H.jsx("label",{className:"block mb-1 font-semibold",children:"Transformation Script"}),H.jsx("div",{className:`h-[200px] relative border rounded ${C.script?"border-red-500":""}`,children:H.jsx(g6,{className:"flex-1 h-full w-full h-[200px]",placeholder:"",mode:"javascript",theme:Z,width:"100%",height:"100%",fontSize:12,lineHeight:17,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:c,onChange:pe=>{u(pe),$(ye=>({...ye,script:""}))},onBlur:te,setOptions:{showLineNumbers:!0,tabSize:1}})}),H.jsx("div",{className:"flex justify-end mt-2",children:H.jsx(Bn,{toggle:!1,primary:!1,viewLoc:"field-mapping-add-transformation",buttonClass:"ml-2",onClass:"flex items-center gap-1 boomi-btn-secondary",showIcon:!1,label:"Test Script",onClick:me})}),C.script&&H.jsx("p",{className:"text-xs text-red-600 mt-1",children:C.script})]}),H.jsxs("div",{className:"flex gap-6 mt-4 overflow-x-hidden ",children:[H.jsxs("div",{className:`w-1/2 border-1 p-2 ${C.outputField?"border-red-500 border-2":""}`,children:[H.jsx("label",{className:"block mb-1 font-semibold",children:"Inputs"}),H.jsxs("div",{className:"flex gap-2 items-center mb-2 w-full",children:[H.jsx("input",{type:"text",value:T,onChange:pe=>A(pe.target.value),className:"border px-2 py-1 rounded w-full",placeholder:"Input name"}),H.jsx("select",{value:N,onChange:pe=>O(pe.target.value),className:"border px-2 py-1 rounded",children:nX.map(pe=>H.jsx("option",{value:pe,children:pe},pe))}),H.jsx("button",{type:"button",onClick:ae,className:"px-2 py-1 border boomi-btn-secondary",children:"Add"})]}),H.jsxs("div",{className:"border rounded max-h-44 overflow-y-auto",children:[H.jsxs("div",{className:"flex px-1 py-1.5 boomi-table-header",children:[H.jsx("div",{className:"flex-1",children:"Name"}),H.jsx("div",{className:"w-1/2 text-left",children:"Test Input"}),H.jsx("div",{className:"w-24 text-center",children:"Type"}),H.jsx("div",{className:"w-6"})]}),H.jsx("ul",{className:"space-y-1",children:d.map((pe,ye)=>H.jsxs("li",{className:"flex items-center text-xs boomi-table-row p-2",children:[H.jsx("div",{className:"flex-1 truncate",children:pe.name}),H.jsx("input",{type:"text",className:"border px-2 py-1 rounded w-1/2",value:U[pe.key]??"",onChange:de=>j({...U,[pe.key]:de.target.value})}),H.jsx("div",{className:"w-24 text-center",children:H.jsx("span",{className:"px-2 py-0.5 rounded-full font-medium",children:pe.type})}),H.jsx("button",{onClick:()=>ie(ye),className:"text-red-400 hover:text-red-600 transition ml-2",title:"Remove input",children:H.jsx(lh,{size:14})})]},ye))})]})]}),H.jsxs("div",{className:`w-1/2 border-1 p-2 ${C.outputField?"border-red-500 border-2":""}`,children:[H.jsx("label",{className:"block mb-1 font-semibold",children:"Outputs"}),H.jsxs("div",{className:"flex gap-2 items-center mb-2",children:[H.jsx("input",{type:"text",value:D,onChange:pe=>R(pe.target.value),className:"border px-2 py-1 rounded w-full",placeholder:"Output name"}),H.jsx("button",{type:"button",onClick:se,className:"px-2 py-1 boomi-btn-secondary",children:"Add"})]}),H.jsxs("div",{className:"border rounded max-h-44 overflow-y-auto",children:[H.jsxs("div",{className:"flex px-1 py-1.5 boomi-table-header",children:[H.jsx("div",{className:"flex-1",children:"Name"}),H.jsx("div",{className:"w-1/2 text-left",children:"Test Output"}),H.jsx("div",{className:"w-6"})]}),H.jsx("ul",{className:"space-y-1",children:m.map((pe,ye)=>H.jsxs("li",{className:"flex items-center text-xs boomi-table-row p-2",children:[H.jsx("div",{className:"flex-1 truncate",children:pe.name}),H.jsx("span",{className:"font-mono text-green-700 text-left text-xs w-1/2 text-left",children:(X==null?void 0:X[pe.name])??""}),H.jsx("button",{onClick:()=>ue(ye),className:"text-red-400 hover:text-red-600 transition ml-2",title:"Remove output",children:H.jsx(lh,{size:14})})]},ye))})]}),B&&H.jsxs("p",{className:"text-sm text-red-600 mt-2",children:["Test Error: ",B]}),C.outputField&&H.jsx("p",{className:"text-xs text-red-600 mt-1",children:C.outputField})]})]})]})});IU.displayName="EditTransformationsForm";const $U=Y.createContext({});function oX(t){const e=Y.useRef(null);return e.current===null&&(e.current=t()),e.current}const eN=typeof window<"u",iX=eN?Y.useLayoutEffect:Y.useEffect,tN=Y.createContext(null);function nN(t,e){t.indexOf(e)===-1&&t.push(e)}function oN(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}const gd=(t,e,i)=>i>e?e:i<t?t:i;function U_(t,e){return e?`${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}`:t}let ov=()=>{},bd=()=>{};process.env.NODE_ENV!=="production"&&(ov=(t,e,i)=>{!t&&typeof console<"u"&&console.warn(U_(e,i))},bd=(t,e,i)=>{if(!t)throw new Error(U_(e,i))});const vd={},UU=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function HU(t){return typeof t=="object"&&t!==null}const jU=t=>/^0[^.\s]+$/u.test(t);function iN(t){let e;return()=>(e===void 0&&(e=t()),e)}const El=t=>t,rX=(t,e)=>i=>e(t(i)),WE=(...t)=>t.reduce(rX),_E=(t,e,i)=>{const a=e-t;return a===0?1:(i-t)/a};class rN{constructor(){this.subscriptions=[]}add(e){return nN(this.subscriptions,e),()=>oN(this.subscriptions,e)}notify(e,i,a){const E=this.subscriptions.length;if(E)if(E===1)this.subscriptions[0](e,i,a);else for(let p=0;p<E;p++){const g=this.subscriptions[p];g&&g(e,i,a)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const nc=t=>t*1e3,yl=t=>t/1e3;function zU(t,e){return e?t*(1e3/e):0}const Q3=new Set;function aN(t,e,i){t||Q3.has(e)||(console.warn(U_(e,i)),Q3.add(e))}const BU=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t,aX=1e-7,sX=12;function lX(t,e,i,a,E){let p,g,y=0;do g=e+(i-e)/2,p=BU(g,a,E)-t,p>0?i=g:e=g;while(Math.abs(p)>aX&&++y<sX);return g}function YE(t,e,i,a){if(t===e&&i===a)return El;const E=p=>lX(p,0,1,t,i);return p=>p===0||p===1?p:BU(E(p),e,a)}const FU=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,PU=t=>e=>1-t(1-e),VU=YE(.33,1.53,.69,.99),sN=PU(VU),GU=FU(sN),QU=t=>(t*=2)<1?.5*sN(t):.5*(2-Math.pow(2,-10*(t-1))),lN=t=>1-Math.sin(Math.acos(t)),WU=PU(lN),YU=FU(lN),cX=YE(.42,0,1,1),uX=YE(0,0,.58,1),XU=YE(.42,0,.58,1),dX=t=>Array.isArray(t)&&typeof t[0]!="number",qU=t=>Array.isArray(t)&&typeof t[0]=="number",W3={linear:El,easeIn:cX,easeInOut:XU,easeOut:uX,circIn:lN,circInOut:YU,circOut:WU,backIn:sN,backInOut:GU,backOut:VU,anticipate:QU},fX=t=>typeof t=="string",Y3=t=>{if(qU(t)){bd(t.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[e,i,a,E]=t;return YE(e,i,a,E)}else if(fX(t))return bd(W3[t]!==void 0,`Invalid easing type '${t}'`,"invalid-easing-type"),W3[t];return t},TS=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function hX(t,e){let i=new Set,a=new Set,E=!1,p=!1;const g=new WeakSet;let y={delta:0,timestamp:0,isProcessing:!1};function f(c){g.has(c)&&(b.schedule(c),t()),c(y)}const b={schedule:(c,u=!1,d=!1)=>{const m=d&&E?i:a;return u&&g.add(c),m.has(c)||m.add(c),c},cancel:c=>{a.delete(c),g.delete(c)},process:c=>{if(y=c,E){p=!0;return}E=!0,[i,a]=[a,i],i.forEach(f),i.clear(),E=!1,p&&(p=!1,b.process(c))}};return b}const mX=40;function KU(t,e){let i=!1,a=!0;const E={delta:0,timestamp:0,isProcessing:!1},p=()=>i=!0,g=TS.reduce((O,D)=>(O[D]=hX(p),O),{}),{setup:y,read:f,resolveKeyframes:b,preUpdate:c,update:u,preRender:d,render:h,postRender:m}=g,S=()=>{const O=vd.useManualTiming?E.timestamp:performance.now();i=!1,vd.useManualTiming||(E.delta=a?1e3/60:Math.max(Math.min(O-E.timestamp,mX),1)),E.timestamp=O,E.isProcessing=!0,y.process(E),f.process(E),b.process(E),c.process(E),u.process(E),d.process(E),h.process(E),m.process(E),E.isProcessing=!1,i&&e&&(a=!1,t(S))},T=()=>{i=!0,a=!0,E.isProcessing||t(S)};return{schedule:TS.reduce((O,D)=>{const R=g[D];return O[D]=(C,$=!1,F=!1)=>(i||T(),R.schedule(C,$,F)),O},{}),cancel:O=>{for(let D=0;D<TS.length;D++)g[TS[D]].cancel(O)},state:E,steps:g}}const{schedule:jo,cancel:hh,state:yr,steps:Zx}=KU(typeof requestAnimationFrame<"u"?requestAnimationFrame:El,!0);let LS;function pX(){LS=void 0}const Fa={now:()=>(LS===void 0&&Fa.set(yr.isProcessing||vd.useManualTiming?yr.timestamp:performance.now()),LS),set:t=>{LS=t,queueMicrotask(pX)}},ZU=t=>e=>typeof e=="string"&&e.startsWith(t),cN=ZU("--"),gX=ZU("var(--"),uN=t=>gX(t)?bX.test(t.split("/*")[0].trim()):!1,bX=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,iv={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},CE={...iv,transform:t=>gd(0,1,t)},AS={...iv,default:1},cE=t=>Math.round(t*1e5)/1e5,dN=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function vX(t){return t==null}const yX=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,fN=(t,e)=>i=>!!(typeof i=="string"&&yX.test(i)&&i.startsWith(t)||e&&!vX(i)&&Object.prototype.hasOwnProperty.call(i,e)),JU=(t,e,i)=>a=>{if(typeof a!="string")return a;const[E,p,g,y]=a.match(dN);return{[t]:parseFloat(E),[e]:parseFloat(p),[i]:parseFloat(g),alpha:y!==void 0?parseFloat(y):1}},EX=t=>gd(0,255,t),Jx={...iv,transform:t=>Math.round(EX(t))},ap={test:fN("rgb","red"),parse:JU("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:a=1})=>"rgba("+Jx.transform(t)+", "+Jx.transform(e)+", "+Jx.transform(i)+", "+cE(CE.transform(a))+")"};function wX(t){let e="",i="",a="",E="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),a=t.substring(5,7),E=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),a=t.substring(3,4),E=t.substring(4,5),e+=e,i+=i,a+=a,E+=E),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(a,16),alpha:E?parseInt(E,16)/255:1}}const H_={test:fN("#"),parse:wX,transform:ap.transform},XE=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Zf=XE("deg"),eu=XE("%"),Jt=XE("px"),SX=XE("vh"),TX=XE("vw"),X3={...eu,parse:t=>eu.parse(t)/100,transform:t=>eu.transform(t*100)},Db={test:fN("hsl","hue"),parse:JU("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:a=1})=>"hsla("+Math.round(t)+", "+eu.transform(cE(e))+", "+eu.transform(cE(i))+", "+cE(CE.transform(a))+")"},Di={test:t=>ap.test(t)||H_.test(t)||Db.test(t),parse:t=>ap.test(t)?ap.parse(t):Db.test(t)?Db.parse(t):H_.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?ap.transform(t):Db.transform(t),getAnimatableNone:t=>{const e=Di.parse(t);return e.alpha=0,Di.transform(e)}},AX=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function xX(t){var e,i;return isNaN(t)&&typeof t=="string"&&(((e=t.match(dN))==null?void 0:e.length)||0)+(((i=t.match(AX))==null?void 0:i.length)||0)>0}const e8="number",t8="color",_X="var",CX="var(",q3="${}",NX=/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 NE(t){const e=t.toString(),i=[],a={color:[],number:[],var:[]},E=[];let p=0;const y=e.replace(NX,f=>(Di.test(f)?(a.color.push(p),E.push(t8),i.push(Di.parse(f))):f.startsWith(CX)?(a.var.push(p),E.push(_X),i.push(f)):(a.number.push(p),E.push(e8),i.push(parseFloat(f))),++p,q3)).split(q3);return{values:i,split:y,indexes:a,types:E}}function n8(t){return NE(t).values}function o8(t){const{split:e,types:i}=NE(t),a=e.length;return E=>{let p="";for(let g=0;g<a;g++)if(p+=e[g],E[g]!==void 0){const y=i[g];y===e8?p+=cE(E[g]):y===t8?p+=Di.transform(E[g]):p+=E[g]}return p}}const RX=t=>typeof t=="number"?0:Di.test(t)?Di.getAnimatableNone(t):t;function LX(t){const e=n8(t);return o8(t)(e.map(RX))}const mh={test:xX,parse:n8,createTransformer:o8,getAnimatableNone:LX};function e_(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function OX({hue:t,saturation:e,lightness:i,alpha:a}){t/=360,e/=100,i/=100;let E=0,p=0,g=0;if(!e)E=p=g=i;else{const y=i<.5?i*(1+e):i+e-i*e,f=2*i-y;E=e_(f,y,t+1/3),p=e_(f,y,t),g=e_(f,y,t-1/3)}return{red:Math.round(E*255),green:Math.round(p*255),blue:Math.round(g*255),alpha:a}}function tT(t,e){return i=>i>0?e:t}const qo=(t,e,i)=>t+(e-t)*i,t_=(t,e,i)=>{const a=t*t,E=i*(e*e-a)+a;return E<0?0:Math.sqrt(E)},DX=[H_,ap,Db],MX=t=>DX.find(e=>e.test(t));function K3(t){const e=MX(t);if(ov(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===Db&&(i=OX(i)),i}const Z3=(t,e)=>{const i=K3(t),a=K3(e);if(!i||!a)return tT(t,e);const E={...i};return p=>(E.red=t_(i.red,a.red,p),E.green=t_(i.green,a.green,p),E.blue=t_(i.blue,a.blue,p),E.alpha=qo(i.alpha,a.alpha,p),ap.transform(E))},j_=new Set(["none","hidden"]);function kX(t,e){return j_.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}function IX(t,e){return i=>qo(t,e,i)}function hN(t){return typeof t=="number"?IX:typeof t=="string"?uN(t)?tT:Di.test(t)?Z3:HX:Array.isArray(t)?i8:typeof t=="object"?Di.test(t)?Z3:$X:tT}function i8(t,e){const i=[...t],a=i.length,E=t.map((p,g)=>hN(p)(p,e[g]));return p=>{for(let g=0;g<a;g++)i[g]=E[g](p);return i}}function $X(t,e){const i={...t,...e},a={};for(const E in i)t[E]!==void 0&&e[E]!==void 0&&(a[E]=hN(t[E])(t[E],e[E]));return E=>{for(const p in a)i[p]=a[p](E);return i}}function UX(t,e){const i=[],a={color:0,var:0,number:0};for(let E=0;E<e.values.length;E++){const p=e.types[E],g=t.indexes[p][a[p]],y=t.values[g]??0;i[E]=y,a[p]++}return i}const HX=(t,e)=>{const i=mh.createTransformer(e),a=NE(t),E=NE(e);return a.indexes.var.length===E.indexes.var.length&&a.indexes.color.length===E.indexes.color.length&&a.indexes.number.length>=E.indexes.number.length?j_.has(t)&&!E.values.length||j_.has(e)&&!a.values.length?kX(t,e):WE(i8(UX(a,E),E.values),i):(ov(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),tT(t,e))};function r8(t,e,i){return typeof t=="number"&&typeof e=="number"&&typeof i=="number"?qo(t,e,i):hN(t)(t,e)}const jX=t=>{const e=({timestamp:i})=>t(i);return{start:(i=!0)=>jo.update(e,i),stop:()=>hh(e),now:()=>yr.isProcessing?yr.timestamp:Fa.now()}},a8=(t,e,i=10)=>{let a="";const E=Math.max(Math.round(e/i),2);for(let p=0;p<E;p++)a+=Math.round(t(p/(E-1))*1e4)/1e4+", ";return`linear(${a.substring(0,a.length-2)})`},nT=2e4;function mN(t){let e=0;const i=50;let a=t.next(e);for(;!a.done&&e<nT;)e+=i,a=t.next(e);return e>=nT?1/0:e}function zX(t,e=100,i){const a=i({...t,keyframes:[0,e]}),E=Math.min(mN(a),nT);return{type:"keyframes",ease:p=>a.next(E*p).value/e,duration:yl(E)}}const BX=5;function s8(t,e,i){const a=Math.max(e-BX,0);return zU(i-t(a),e-a)}const Xo={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},n_=.001;function FX({duration:t=Xo.duration,bounce:e=Xo.bounce,velocity:i=Xo.velocity,mass:a=Xo.mass}){let E,p;ov(t<=nc(Xo.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let g=1-e;g=gd(Xo.minDamping,Xo.maxDamping,g),t=gd(Xo.minDuration,Xo.maxDuration,yl(t)),g<1?(E=b=>{const c=b*g,u=c*t,d=c-i,h=z_(b,g),m=Math.exp(-u);return n_-d/h*m},p=b=>{const u=b*g*t,d=u*i+i,h=Math.pow(g,2)*Math.pow(b,2)*t,m=Math.exp(-u),S=z_(Math.pow(b,2),g);return(-E(b)+n_>0?-1:1)*((d-h)*m)/S}):(E=b=>{const c=Math.exp(-b*t),u=(b-i)*t+1;return-n_+c*u},p=b=>{const c=Math.exp(-b*t),u=(i-b)*(t*t);return c*u});const y=5/t,f=VX(E,p,y);if(t=nc(t),isNaN(f))return{stiffness:Xo.stiffness,damping:Xo.damping,duration:t};{const b=Math.pow(f,2)*a;return{stiffness:b,damping:g*2*Math.sqrt(a*b),duration:t}}}const PX=12;function VX(t,e,i){let a=i;for(let E=1;E<PX;E++)a=a-t(a)/e(a);return a}function z_(t,e){return t*Math.sqrt(1-e*e)}const GX=["duration","bounce"],QX=["stiffness","damping","mass"];function J3(t,e){return e.some(i=>t[i]!==void 0)}function WX(t){let e={velocity:Xo.velocity,stiffness:Xo.stiffness,damping:Xo.damping,mass:Xo.mass,isResolvedFromDuration:!1,...t};if(!J3(t,QX)&&J3(t,GX))if(t.visualDuration){const i=t.visualDuration,a=2*Math.PI/(i*1.2),E=a*a,p=2*gd(.05,1,1-(t.bounce||0))*Math.sqrt(E);e={...e,mass:Xo.mass,stiffness:E,damping:p}}else{const i=FX(t);e={...e,...i,mass:Xo.mass},e.isResolvedFromDuration=!0}return e}function oT(t=Xo.visualDuration,e=Xo.bounce){const i=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:a,restDelta:E}=i;const p=i.keyframes[0],g=i.keyframes[i.keyframes.length-1],y={done:!1,value:p},{stiffness:f,damping:b,mass:c,duration:u,velocity:d,isResolvedFromDuration:h}=WX({...i,velocity:-yl(i.velocity||0)}),m=d||0,S=b/(2*Math.sqrt(f*c)),T=g-p,A=yl(Math.sqrt(f/c)),N=Math.abs(T)<5;a||(a=N?Xo.restSpeed.granular:Xo.restSpeed.default),E||(E=N?Xo.restDelta.granular:Xo.restDelta.default);let O;if(S<1){const R=z_(A,S);O=C=>{const $=Math.exp(-S*A*C);return g-$*((m+S*A*T)/R*Math.sin(R*C)+T*Math.cos(R*C))}}else if(S===1)O=R=>g-Math.exp(-A*R)*(T+(m+A*T)*R);else{const R=A*Math.sqrt(S*S-1);O=C=>{const $=Math.exp(-S*A*C),F=Math.min(R*C,300);return g-$*((m+S*A*T)*Math.sinh(F)+R*T*Math.cosh(F))/R}}const D={calculatedDuration:h&&u||null,next:R=>{const C=O(R);if(h)y.done=R>=u;else{let $=R===0?m:0;S<1&&($=R===0?nc(m):s8(O,R,C));const F=Math.abs($)<=a,U=Math.abs(g-C)<=E;y.done=F&&U}return y.value=y.done?g:C,y},toString:()=>{const R=Math.min(mN(D),nT),C=a8($=>D.next(R*$).value,R,30);return R+"ms "+C},toTransition:()=>{}};return D}oT.applyToOptions=t=>{const e=zX(t,100,oT);return t.ease=e.ease,t.duration=nc(e.duration),t.type="keyframes",t};function B_({keyframes:t,velocity:e=0,power:i=.8,timeConstant:a=325,bounceDamping:E=10,bounceStiffness:p=500,modifyTarget:g,min:y,max:f,restDelta:b=.5,restSpeed:c}){const u=t[0],d={done:!1,value:u},h=F=>y!==void 0&&F<y||f!==void 0&&F>f,m=F=>y===void 0?f:f===void 0||Math.abs(y-F)<Math.abs(f-F)?y:f;let S=i*e;const T=u+S,A=g===void 0?T:g(T);A!==T&&(S=A-u);const N=F=>-S*Math.exp(-F/a),O=F=>A+N(F),D=F=>{const U=N(F),j=O(F);d.done=Math.abs(U)<=b,d.value=d.done?A:j};let R,C;const $=F=>{h(d.value)&&(R=F,C=oT({keyframes:[d.value,m(d.value)],velocity:s8(O,F,d.value),damping:E,stiffness:p,restDelta:b,restSpeed:c}))};return $(0),{calculatedDuration:null,next:F=>{let U=!1;return!C&&R===void 0&&(U=!0,D(F),$(F)),R!==void 0&&F>=R?C.next(F-R):(!U&&D(F),d)}}}function YX(t,e,i){const a=[],E=i||vd.mix||r8,p=t.length-1;for(let g=0;g<p;g++){let y=E(t[g],t[g+1]);if(e){const f=Array.isArray(e)?e[g]||El:e;y=WE(f,y)}a.push(y)}return a}function XX(t,e,{clamp:i=!0,ease:a,mixer:E}={}){const p=t.length;if(bd(p===e.length,"Both input and output ranges must be the same length","range-length"),p===1)return()=>e[0];if(p===2&&e[0]===e[1])return()=>e[1];const g=t[0]===t[1];t[0]>t[p-1]&&(t=[...t].reverse(),e=[...e].reverse());const y=YX(e,a,E),f=y.length,b=c=>{if(g&&c<t[0])return e[0];let u=0;if(f>1)for(;u<t.length-2&&!(c<t[u+1]);u++);const d=_E(t[u],t[u+1],c);return y[u](d)};return i?c=>b(gd(t[0],t[p-1],c)):b}function qX(t,e){const i=t[t.length-1];for(let a=1;a<=e;a++){const E=_E(0,e,a);t.push(qo(i,1,E))}}function KX(t){const e=[0];return qX(e,t.length-1),e}function ZX(t,e){return t.map(i=>i*e)}function JX(t,e){return t.map(()=>e||XU).splice(0,t.length-1)}function Mb({duration:t=300,keyframes:e,times:i,ease:a="easeInOut"}){const E=dX(a)?a.map(Y3):Y3(a),p={done:!1,value:e[0]},g=ZX(i&&i.length===e.length?i:KX(e),t),y=XX(g,e,{ease:Array.isArray(E)?E:JX(e,E)});return{calculatedDuration:t,next:f=>(p.value=y(f),p.done=f>=t,p)}}const eq=t=>t!==null;function pN(t,{repeat:e,repeatType:i="loop"},a,E=1){const p=t.filter(eq),y=E<0||e&&i!=="loop"&&e%2===1?0:p.length-1;return!y||a===void 0?p[y]:a}const tq={decay:B_,inertia:B_,tween:Mb,keyframes:Mb,spring:oT};function l8(t){typeof t.type=="string"&&(t.type=tq[t.type])}class gN{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,i){return this.finished.then(e,i)}}const nq=t=>t/100;class bN extends gN{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var a,E;const{motionValue:i}=this.options;i&&i.updatedAt!==Fa.now()&&this.tick(Fa.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(E=(a=this.options).onStop)==null||E.call(a))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;l8(e);const{type:i=Mb,repeat:a=0,repeatDelay:E=0,repeatType:p,velocity:g=0}=e;let{keyframes:y}=e;const f=i||Mb;process.env.NODE_ENV!=="production"&&f!==Mb&&bd(y.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${y}`,"spring-two-frames"),f!==Mb&&typeof y[0]!="number"&&(this.mixKeyframes=WE(nq,r8(y[0],y[1])),y=[0,100]);const b=f({...e,keyframes:y});p==="mirror"&&(this.mirroredGenerator=f({...e,keyframes:[...y].reverse(),velocity:-g})),b.calculatedDuration===null&&(b.calculatedDuration=mN(b));const{calculatedDuration:c}=b;this.calculatedDuration=c,this.resolvedDuration=c+E,this.totalDuration=this.resolvedDuration*(a+1)-E,this.generator=b}updateTime(e){const i=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=i}tick(e,i=!1){const{generator:a,totalDuration:E,mixKeyframes:p,mirroredGenerator:g,resolvedDuration:y,calculatedDuration:f}=this;if(this.startTime===null)return a.next(0);const{delay:b=0,keyframes:c,repeat:u,repeatType:d,repeatDelay:h,type:m,onUpdate:S,finalKeyframe:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-E/this.speed,this.startTime)),i?this.currentTime=e:this.updateTime(e);const A=this.currentTime-b*(this.playbackSpeed>=0?1:-1),N=this.playbackSpeed>=0?A<0:A>E;this.currentTime=Math.max(A,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=E);let O=this.currentTime,D=a;if(u){const F=Math.min(this.currentTime,E)/y;let U=Math.floor(F),j=F%1;!j&&F>=1&&(j=1),j===1&&U--,U=Math.min(U,u+1),!!(U%2)&&(d==="reverse"?(j=1-j,h&&(j-=h/y)):d==="mirror"&&(D=g)),O=gd(0,1,j)*y}const R=N?{done:!1,value:c[0]}:D.next(O);p&&(R.value=p(R.value));let{done:C}=R;!N&&f!==null&&(C=this.playbackSpeed>=0?this.currentTime>=E:this.currentTime<=0);const $=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return $&&m!==B_&&(R.value=pN(c,this.options,T,this.speed)),S&&S(R.value),$&&this.finish(),R}then(e,i){return this.finished.then(e,i)}get duration(){return yl(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+yl(e)}get time(){return yl(this.currentTime)}set time(e){var i;e=nc(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(i=this.driver)==null||i.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(Fa.now());const i=this.playbackSpeed!==e;this.playbackSpeed=e,i&&(this.time=yl(this.currentTime))}play(){var E,p;if(this.isStopped)return;const{driver:e=jX,startTime:i}=this.options;this.driver||(this.driver=e(g=>this.tick(g))),(p=(E=this.options).onPlay)==null||p.call(E);const a=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=a):this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime||(this.startTime=i??a),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Fa.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,i;this.notifyFinished(),this.teardown(),this.state="finished",(i=(e=this.options).onComplete)==null||i.call(e)}cancel(){var e,i;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(i=(e=this.options).onCancel)==null||i.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var i;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(i=this.driver)==null||i.stop(),e.observe(this)}}function oq(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const sp=t=>t*180/Math.PI,F_=t=>{const e=sp(Math.atan2(t[1],t[0]));return P_(e)},iq={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:F_,rotateZ:F_,skewX:t=>sp(Math.atan(t[1])),skewY:t=>sp(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},P_=t=>(t=t%360,t<0&&(t+=360),t),e4=F_,t4=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),n4=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),rq={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:t4,scaleY:n4,scale:t=>(t4(t)+n4(t))/2,rotateX:t=>P_(sp(Math.atan2(t[6],t[5]))),rotateY:t=>P_(sp(Math.atan2(-t[2],t[0]))),rotateZ:e4,rotate:e4,skewX:t=>sp(Math.atan(t[4])),skewY:t=>sp(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function V_(t){return t.includes("scale")?1:0}function G_(t,e){if(!t||t==="none")return V_(e);const i=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let a,E;if(i)a=rq,E=i;else{const y=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);a=iq,E=y}if(!E)return V_(e);const p=a[e],g=E[1].split(",").map(sq);return typeof p=="function"?p(g):g[p]}const aq=(t,e)=>{const{transform:i="none"}=getComputedStyle(t);return G_(i,e)};function sq(t){return parseFloat(t.trim())}const rv=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],av=new Set(rv),o4=t=>t===iv||t===Jt,lq=new Set(["x","y","z"]),cq=rv.filter(t=>!lq.has(t));function uq(t){const e=[];return cq.forEach(i=>{const a=t.getValue(i);a!==void 0&&(e.push([i,a.get()]),a.set(i.startsWith("scale")?1:0))}),e}const cp={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>G_(e,"x"),y:(t,{transform:e})=>G_(e,"y")};cp.translateX=cp.x;cp.translateY=cp.y;const up=new Set;let Q_=!1,W_=!1,Y_=!1;function c8(){if(W_){const t=Array.from(up).filter(a=>a.needsMeasurement),e=new Set(t.map(a=>a.element)),i=new Map;e.forEach(a=>{const E=uq(a);E.length&&(i.set(a,E),a.render())}),t.forEach(a=>a.measureInitialState()),e.forEach(a=>{a.render();const E=i.get(a);E&&E.forEach(([p,g])=>{var y;(y=a.getValue(p))==null||y.set(g)})}),t.forEach(a=>a.measureEndState()),t.forEach(a=>{a.suspendedScrollY!==void 0&&window.scrollTo(0,a.suspendedScrollY)})}W_=!1,Q_=!1,up.forEach(t=>t.complete(Y_)),up.clear()}function u8(){up.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(W_=!0)})}function dq(){Y_=!0,u8(),c8(),Y_=!1}class vN{constructor(e,i,a,E,p,g=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=i,this.name=a,this.motionValue=E,this.element=p,this.isAsync=g}scheduleResolve(){this.state="scheduled",this.isAsync?(up.add(this),Q_||(Q_=!0,jo.read(u8),jo.resolveKeyframes(c8))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:i,element:a,motionValue:E}=this;if(e[0]===null){const p=E==null?void 0:E.get(),g=e[e.length-1];if(p!==void 0)e[0]=p;else if(a&&i){const y=a.readValue(i,g);y!=null&&(e[0]=y)}e[0]===void 0&&(e[0]=g),E&&p===void 0&&E.set(e[0])}oq(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),up.delete(this)}cancel(){this.state==="scheduled"&&(up.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const fq=t=>t.startsWith("--");function hq(t,e,i){fq(e)?t.style.setProperty(e,i):t.style[e]=i}const mq=iN(()=>window.ScrollTimeline!==void 0),pq={};function gq(t,e){const i=iN(t);return()=>pq[e]??i()}const d8=gq(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),iE=([t,e,i,a])=>`cubic-bezier(${t}, ${e}, ${i}, ${a})`,i4={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:iE([0,.65,.55,1]),circOut:iE([.55,0,1,.45]),backIn:iE([.31,.01,.66,-.59]),backOut:iE([.33,1.53,.69,.99])};function f8(t,e){if(t)return typeof t=="function"?d8()?a8(t,e):"ease-out":qU(t)?iE(t):Array.isArray(t)?t.map(i=>f8(i,e)||i4.easeOut):i4[t]}function bq(t,e,i,{delay:a=0,duration:E=300,repeat:p=0,repeatType:g="loop",ease:y="easeOut",times:f}={},b=void 0){const c={[e]:i};f&&(c.offset=f);const u=f8(y,E);Array.isArray(u)&&(c.easing=u);const d={delay:a,duration:E,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:p+1,direction:g==="reverse"?"alternate":"normal"};return b&&(d.pseudoElement=b),t.animate(c,d)}function h8(t){return typeof t=="function"&&"applyToOptions"in t}function vq({type:t,...e}){return h8(t)&&d8()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class yq extends gN{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:i,name:a,keyframes:E,pseudoElement:p,allowFlatten:g=!1,finalKeyframe:y,onComplete:f}=e;this.isPseudoElement=!!p,this.allowFlatten=g,this.options=e,bd(typeof e.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const b=vq(e);this.animation=bq(i,a,E,b,p),b.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!p){const c=pN(E,this.options,y,this.speed);this.updateMotionValue?this.updateMotionValue(c):hq(i,a,c),this.animation.cancel()}f==null||f(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,i;(i=(e=this.animation).finish)==null||i.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,i;this.isPseudoElement||(i=(e=this.animation).commitStyles)==null||i.call(e)}get duration(){var i,a;const e=((a=(i=this.animation.effect)==null?void 0:i.getComputedTiming)==null?void 0:a.call(i).duration)||0;return yl(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+yl(e)}get time(){return yl(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=nc(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:i}){var a;return this.allowFlatten&&((a=this.animation.effect)==null||a.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&mq()?(this.animation.timeline=e,El):i(this)}}const m8={anticipate:QU,backInOut:GU,circInOut:YU};function Eq(t){return t in m8}function wq(t){typeof t.ease=="string"&&Eq(t.ease)&&(t.ease=m8[t.ease])}const r4=10;class Sq extends yq{constructor(e){wq(e),l8(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:i,onUpdate:a,onComplete:E,element:p,...g}=this.options;if(!i)return;if(e!==void 0){i.set(e);return}const y=new bN({...g,autoplay:!1}),f=nc(this.finishedTime??this.time);i.setWithVelocity(y.sample(f-r4).value,y.sample(f).value,r4),y.stop()}}const a4=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(mh.test(t)||t==="0")&&!t.startsWith("url("));function Tq(t){const e=t[0];if(t.length===1)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}function Aq(t,e,i,a){const E=t[0];if(E===null)return!1;if(e==="display"||e==="visibility")return!0;const p=t[t.length-1],g=a4(E,e),y=a4(p,e);return ov(g===y,`You are trying to animate ${e} from "${E}" to "${p}". "${g?p:E}" is not an animatable value.`,"value-not-animatable"),!g||!y?!1:Tq(t)||(i==="spring"||h8(i))&&a}function X_(t){t.duration=0,t.type="keyframes"}const xq=new Set(["opacity","clipPath","filter","transform"]),_q=iN(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Cq(t){var c;const{motionValue:e,name:i,repeatDelay:a,repeatType:E,damping:p,type:g}=t;if(!(((c=e==null?void 0:e.owner)==null?void 0:c.current)instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:b}=e.owner.getProps();return _q()&&i&&xq.has(i)&&(i!=="transform"||!b)&&!f&&!a&&E!=="mirror"&&p!==0&&g!=="inertia"}const Nq=40;class Rq extends gN{constructor({autoplay:e=!0,delay:i=0,type:a="keyframes",repeat:E=0,repeatDelay:p=0,repeatType:g="loop",keyframes:y,name:f,motionValue:b,element:c,...u}){var m;super(),this.stop=()=>{var S,T;this._animation&&(this._animation.stop(),(S=this.stopTimeline)==null||S.call(this)),(T=this.keyframeResolver)==null||T.cancel()},this.createdAt=Fa.now();const d={autoplay:e,delay:i,type:a,repeat:E,repeatDelay:p,repeatType:g,name:f,motionValue:b,element:c,...u},h=(c==null?void 0:c.KeyframeResolver)||vN;this.keyframeResolver=new h(y,(S,T,A)=>this.onKeyframesResolved(S,T,d,!A),f,b,c),(m=this.keyframeResolver)==null||m.scheduleResolve()}onKeyframesResolved(e,i,a,E){this.keyframeResolver=void 0;const{name:p,type:g,velocity:y,delay:f,isHandoff:b,onUpdate:c}=a;this.resolvedAt=Fa.now(),Aq(e,p,g,y)||((vd.instantAnimations||!f)&&(c==null||c(pN(e,a,i))),e[0]=e[e.length-1],X_(a),a.repeat=0);const d={startTime:E?this.resolvedAt?this.resolvedAt-this.createdAt>Nq?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:i,...a,keyframes:e},h=!b&&Cq(d)?new Sq({...d,element:d.motionValue.owner.current}):new bN(d);h.finished.then(()=>this.notifyFinished()).catch(El),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(e,i){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),dq()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}const Lq=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Oq(t){const e=Lq.exec(t);if(!e)return[,];const[,i,a,E]=e;return[`--${i??a}`,E]}const Dq=4;function p8(t,e,i=1){bd(i<=Dq,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[a,E]=Oq(t);if(!a)return;const p=window.getComputedStyle(e).getPropertyValue(a);if(p){const g=p.trim();return UU(g)?parseFloat(g):g}return uN(E)?p8(E,e,i+1):E}function yN(t,e){return(t==null?void 0:t[e])??(t==null?void 0:t.default)??t}const g8=new Set(["width","height","top","left","right","bottom",...rv]),Mq={test:t=>t==="auto",parse:t=>t},b8=t=>e=>e.test(t),v8=[iv,Jt,eu,Zf,TX,SX,Mq],s4=t=>v8.find(b8(t));function kq(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||jU(t):!0}const Iq=new Set(["brightness","contrast","saturate","opacity"]);function $q(t){const[e,i]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[a]=i.match(dN)||[];if(!a)return t;const E=i.replace(a,"");let p=Iq.has(e)?1:0;return a!==i&&(p*=100),e+"("+p+E+")"}const Uq=/\b([a-z-]*)\(.*?\)/gu,q_={...mh,getAnimatableNone:t=>{const e=t.match(Uq);return e?e.map($q).join(" "):t}},l4={...iv,transform:Math.round},Hq={rotate:Zf,rotateX:Zf,rotateY:Zf,rotateZ:Zf,scale:AS,scaleX:AS,scaleY:AS,scaleZ:AS,skew:Zf,skewX:Zf,skewY:Zf,distance:Jt,translateX:Jt,translateY:Jt,translateZ:Jt,x:Jt,y:Jt,z:Jt,perspective:Jt,transformPerspective:Jt,opacity:CE,originX:X3,originY:X3,originZ:Jt},EN={borderWidth:Jt,borderTopWidth:Jt,borderRightWidth:Jt,borderBottomWidth:Jt,borderLeftWidth:Jt,borderRadius:Jt,radius:Jt,borderTopLeftRadius:Jt,borderTopRightRadius:Jt,borderBottomRightRadius:Jt,borderBottomLeftRadius:Jt,width:Jt,maxWidth:Jt,height:Jt,maxHeight:Jt,top:Jt,right:Jt,bottom:Jt,left:Jt,padding:Jt,paddingTop:Jt,paddingRight:Jt,paddingBottom:Jt,paddingLeft:Jt,margin:Jt,marginTop:Jt,marginRight:Jt,marginBottom:Jt,marginLeft:Jt,backgroundPositionX:Jt,backgroundPositionY:Jt,...Hq,zIndex:l4,fillOpacity:CE,strokeOpacity:CE,numOctaves:l4},jq={...EN,color:Di,backgroundColor:Di,outlineColor:Di,fill:Di,stroke:Di,borderColor:Di,borderTopColor:Di,borderRightColor:Di,borderBottomColor:Di,borderLeftColor:Di,filter:q_,WebkitFilter:q_},y8=t=>jq[t];function E8(t,e){let i=y8(t);return i!==q_&&(i=mh),i.getAnimatableNone?i.getAnimatableNone(e):void 0}const zq=new Set(["auto","none","0"]);function Bq(t,e,i){let a=0,E;for(;a<t.length&&!E;){const p=t[a];typeof p=="string"&&!zq.has(p)&&NE(p).values.length&&(E=t[a]),a++}if(E&&i)for(const p of e)t[p]=E8(i,E)}class Fq extends vN{constructor(e,i,a,E,p){super(e,i,a,E,p,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:i,name:a}=this;if(!i||!i.current)return;super.readKeyframes();for(let f=0;f<e.length;f++){let b=e[f];if(typeof b=="string"&&(b=b.trim(),uN(b))){const c=p8(b,i.current);c!==void 0&&(e[f]=c),f===e.length-1&&(this.finalKeyframe=b)}}if(this.resolveNoneKeyframes(),!g8.has(a)||e.length!==2)return;const[E,p]=e,g=s4(E),y=s4(p);if(g!==y)if(o4(g)&&o4(y))for(let f=0;f<e.length;f++){const b=e[f];typeof b=="string"&&(e[f]=parseFloat(b))}else cp[a]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:i}=this,a=[];for(let E=0;E<e.length;E++)(e[E]===null||kq(e[E]))&&a.push(E);a.length&&Bq(e,a,i)}measureInitialState(){const{element:e,unresolvedKeyframes:i,name:a}=this;if(!e||!e.current)return;a==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=cp[a](e.measureViewportBox(),window.getComputedStyle(e.current)),i[0]=this.measuredOrigin;const E=i[i.length-1];E!==void 0&&e.getValue(a,E).jump(E,!1)}measureEndState(){var y;const{element:e,name:i,unresolvedKeyframes:a}=this;if(!e||!e.current)return;const E=e.getValue(i);E&&E.jump(this.measuredOrigin,!1);const p=a.length-1,g=a[p];a[p]=cp[i](e.measureViewportBox(),window.getComputedStyle(e.current)),g!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=g),(y=this.removedTransforms)!=null&&y.length&&this.removedTransforms.forEach(([f,b])=>{e.getValue(f).set(b)}),this.resolveNoneKeyframes()}}function Pq(t,e,i){if(t instanceof EventTarget)return[t];if(typeof t=="string"){let a=document;const E=(i==null?void 0:i[t])??a.querySelectorAll(t);return E?Array.from(E):[]}return Array.from(t)}const w8=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function Vq(t){return HU(t)&&"offsetHeight"in t}const c4=30,Gq=t=>!isNaN(parseFloat(t));class Qq{constructor(e,i={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=a=>{var p;const E=Fa.now();if(this.updatedAt!==E&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&((p=this.events.change)==null||p.notify(this.current),this.dependents))for(const g of this.dependents)g.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=i.owner}setCurrent(e){this.current=e,this.updatedAt=Fa.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Gq(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&aN(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,i){this.events[e]||(this.events[e]=new rN);const a=this.events[e].add(i);return e==="change"?()=>{a(),jo.read(()=>{this.events.change.getSize()||this.stop()})}:a}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,i){this.passiveEffect=e,this.stopPassiveEffect=i}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,i,a){this.set(i),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-a}jump(e,i=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,i&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Fa.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>c4)return 0;const i=Math.min(this.updatedAt-this.prevUpdatedAt,c4);return zU(parseFloat(this.current)-parseFloat(this.prevFrameValue),i)}start(e){return this.stop(),new Promise(i=>{this.hasAnimated=!0,this.animation=e(i),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(){var e,i;(e=this.dependents)==null||e.clear(),(i=this.events.destroy)==null||i.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Qb(t,e){return new Qq(t,e)}const{schedule:wN}=KU(queueMicrotask,!1),tc={x:!1,y:!1};function S8(){return tc.x||tc.y}function Wq(t){return t==="x"||t==="y"?tc[t]?null:(tc[t]=!0,()=>{tc[t]=!1}):tc.x||tc.y?null:(tc.x=tc.y=!0,()=>{tc.x=tc.y=!1})}function T8(t,e){const i=Pq(t),a=new AbortController,E={passive:!0,...e,signal:a.signal};return[i,E,()=>a.abort()]}function u4(t){return!(t.pointerType==="touch"||S8())}function Yq(t,e,i={}){const[a,E,p]=T8(t,i),g=y=>{if(!u4(y))return;const{target:f}=y,b=e(f,y);if(typeof b!="function"||!f)return;const c=u=>{u4(u)&&(b(u),f.removeEventListener("pointerleave",c))};f.addEventListener("pointerleave",c,E)};return a.forEach(y=>{y.addEventListener("pointerenter",g,E)}),p}const A8=(t,e)=>e?t===e?!0:A8(t,e.parentElement):!1,SN=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Xq=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function qq(t){return Xq.has(t.tagName)||t.tabIndex!==-1}const OS=new WeakSet;function d4(t){return e=>{e.key==="Enter"&&t(e)}}function o_(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Kq=(t,e)=>{const i=t.currentTarget;if(!i)return;const a=d4(()=>{if(OS.has(i))return;o_(i,"down");const E=d4(()=>{o_(i,"up")}),p=()=>o_(i,"cancel");i.addEventListener("keyup",E,e),i.addEventListener("blur",p,e)});i.addEventListener("keydown",a,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",a),e)};function f4(t){return SN(t)&&!S8()}function Zq(t,e,i={}){const[a,E,p]=T8(t,i),g=y=>{const f=y.currentTarget;if(!f4(y))return;OS.add(f);const b=e(f,y),c=(h,m)=>{window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",d),OS.has(f)&&OS.delete(f),f4(h)&&typeof b=="function"&&b(h,{success:m})},u=h=>{c(h,f===window||f===document||i.useGlobalTarget||A8(f,h.target))},d=h=>{c(h,!1)};window.addEventListener("pointerup",u,E),window.addEventListener("pointercancel",d,E)};return a.forEach(y=>{(i.useGlobalTarget?window:y).addEventListener("pointerdown",g,E),Vq(y)&&(y.addEventListener("focus",b=>Kq(b,E)),!qq(y)&&!y.hasAttribute("tabindex")&&(y.tabIndex=0))}),p}function x8(t){return HU(t)&&"ownerSVGElement"in t}function Jq(t){return x8(t)&&t.tagName==="svg"}const Hr=t=>!!(t&&t.getVelocity),eK=[...v8,Di,mh],tK=t=>eK.find(b8(t)),_8=Y.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function nK(t=!0){const e=Y.useContext(tN);if(e===null)return[!0,null];const{isPresent:i,onExitComplete:a,register:E}=e,p=Y.useId();Y.useEffect(()=>{if(t)return E(p)},[t]);const g=Y.useCallback(()=>t&&a&&a(p),[p,a,t]);return!i&&a?[!1,g]:[!0]}const C8=Y.createContext({strict:!1}),h4={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"]},Wb={};for(const t in h4)Wb[t]={isEnabled:e=>h4[t].some(i=>!!e[i])};function oK(t){for(const e in t)Wb[e]={...Wb[e],...t[e]}}const iK=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 iT(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||iK.has(t)}let N8=t=>!iT(t);function rK(t){typeof t=="function"&&(N8=e=>e.startsWith("on")?!iT(e):t(e))}try{rK(require("@emotion/is-prop-valid").default)}catch{}function aK(t,e,i){const a={};for(const E in t)E==="values"&&typeof t.values=="object"||(N8(E)||i===!0&&iT(E)||!e&&!iT(E)||t.draggable&&E.startsWith("onDrag"))&&(a[E]=t[E]);return a}const $T=Y.createContext({});function UT(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function RE(t){return typeof t=="string"||Array.isArray(t)}const TN=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],AN=["initial",...TN];function HT(t){return UT(t.animate)||AN.some(e=>RE(t[e]))}function R8(t){return!!(HT(t)||t.variants)}function sK(t,e){if(HT(t)){const{initial:i,animate:a}=t;return{initial:i===!1||RE(i)?i:void 0,animate:RE(a)?a:void 0}}return t.inherit!==!1?e:{}}function lK(t){const{initial:e,animate:i}=sK(t,Y.useContext($T));return Y.useMemo(()=>({initial:e,animate:i}),[m4(e),m4(i)])}function m4(t){return Array.isArray(t)?t.join(" "):t}const LE={};function cK(t){for(const e in t)LE[e]=t[e],cN(e)&&(LE[e].isCSSVariable=!0)}function L8(t,{layout:e,layoutId:i}){return av.has(t)||t.startsWith("origin")||(e||i!==void 0)&&(!!LE[t]||t==="opacity")}const uK={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},dK=rv.length;function fK(t,e,i){let a="",E=!0;for(let p=0;p<dK;p++){const g=rv[p],y=t[g];if(y===void 0)continue;let f=!0;if(typeof y=="number"?f=y===(g.startsWith("scale")?1:0):f=parseFloat(y)===0,!f||i){const b=w8(y,EN[g]);if(!f){E=!1;const c=uK[g]||g;a+=`${c}(${b}) `}i&&(e[g]=b)}}return a=a.trim(),i?a=i(e,E?"":a):E&&(a="none"),a}function xN(t,e,i){const{style:a,vars:E,transformOrigin:p}=t;let g=!1,y=!1;for(const f in e){const b=e[f];if(av.has(f)){g=!0;continue}else if(cN(f)){E[f]=b;continue}else{const c=w8(b,EN[f]);f.startsWith("origin")?(y=!0,p[f]=c):a[f]=c}}if(e.transform||(g||i?a.transform=fK(e,t.transform,i):a.transform&&(a.transform="none")),y){const{originX:f="50%",originY:b="50%",originZ:c=0}=p;a.transformOrigin=`${f} ${b} ${c}`}}const _N=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function O8(t,e,i){for(const a in e)!Hr(e[a])&&!L8(a,i)&&(t[a]=e[a])}function hK({transformTemplate:t},e){return Y.useMemo(()=>{const i=_N();return xN(i,e,t),Object.assign({},i.vars,i.style)},[e])}function mK(t,e){const i=t.style||{},a={};return O8(a,i,t),Object.assign(a,hK(t,e)),a}function pK(t,e){const i={},a=mK(t,e);return t.drag&&t.dragListener!==!1&&(i.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=a,i}const gK={offset:"stroke-dashoffset",array:"stroke-dasharray"},bK={offset:"strokeDashoffset",array:"strokeDasharray"};function vK(t,e,i=1,a=0,E=!0){t.pathLength=1;const p=E?gK:bK;t[p.offset]=Jt.transform(-a);const g=Jt.transform(e),y=Jt.transform(i);t[p.array]=`${g} ${y}`}function D8(t,{attrX:e,attrY:i,attrScale:a,pathLength:E,pathSpacing:p=1,pathOffset:g=0,...y},f,b,c){if(xN(t,y,b),f){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:u,style:d}=t;u.transform&&(d.transform=u.transform,delete u.transform),(d.transform||u.transformOrigin)&&(d.transformOrigin=u.transformOrigin??"50% 50%",delete u.transformOrigin),d.transform&&(d.transformBox=(c==null?void 0:c.transformBox)??"fill-box",delete u.transformBox),e!==void 0&&(u.x=e),i!==void 0&&(u.y=i),a!==void 0&&(u.scale=a),E!==void 0&&vK(u,E,p,g,!1)}const M8=()=>({..._N(),attrs:{}}),k8=t=>typeof t=="string"&&t.toLowerCase()==="svg";function yK(t,e,i,a){const E=Y.useMemo(()=>{const p=M8();return D8(p,e,k8(a),t.transformTemplate,t.style),{...p.attrs,style:{...p.style}}},[e]);if(t.style){const p={};O8(p,t.style,t),E.style={...p,...E.style}}return E}const EK=["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 CN(t){return typeof t!="string"||t.includes("-")?!1:!!(EK.indexOf(t)>-1||/[A-Z]/u.test(t))}function wK(t,e,i,{latestValues:a},E,p=!1){const y=(CN(t)?yK:pK)(e,a,E,t),f=aK(e,typeof t=="string",p),b=t!==Y.Fragment?{...f,...y,ref:i}:{},{children:c}=e,u=Y.useMemo(()=>Hr(c)?c.get():c,[c]);return Y.createElement(t,{...b,children:u})}function p4(t){const e=[{},{}];return t==null||t.values.forEach((i,a)=>{e[0][a]=i.get(),e[1][a]=i.getVelocity()}),e}function NN(t,e,i,a){if(typeof e=="function"){const[E,p]=p4(a);e=e(i!==void 0?i:t.custom,E,p)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[E,p]=p4(a);e=e(i!==void 0?i:t.custom,E,p)}return e}function DS(t){return Hr(t)?t.get():t}function SK({scrapeMotionValuesFromProps:t,createRenderState:e},i,a,E){return{latestValues:TK(i,a,E,t),renderState:e()}}function TK(t,e,i,a){const E={},p=a(t,{});for(const d in p)E[d]=DS(p[d]);let{initial:g,animate:y}=t;const f=HT(t),b=R8(t);e&&b&&!f&&t.inherit!==!1&&(g===void 0&&(g=e.initial),y===void 0&&(y=e.animate));let c=i?i.initial===!1:!1;c=c||g===!1;const u=c?y:g;if(u&&typeof u!="boolean"&&!UT(u)){const d=Array.isArray(u)?u:[u];for(let h=0;h<d.length;h++){const m=NN(t,d[h]);if(m){const{transitionEnd:S,transition:T,...A}=m;for(const N in A){let O=A[N];if(Array.isArray(O)){const D=c?O.length-1:0;O=O[D]}O!==null&&(E[N]=O)}for(const N in S)E[N]=S[N]}}}return E}const I8=t=>(e,i)=>{const a=Y.useContext($T),E=Y.useContext(tN),p=()=>SK(t,e,a,E);return i?p():oX(p)};function RN(t,e,i){var p;const{style:a}=t,E={};for(const g in a)(Hr(a[g])||e.style&&Hr(e.style[g])||L8(g,t)||((p=i==null?void 0:i.getValue(g))==null?void 0:p.liveStyle)!==void 0)&&(E[g]=a[g]);return E}const AK=I8({scrapeMotionValuesFromProps:RN,createRenderState:_N});function $8(t,e,i){const a=RN(t,e,i);for(const E in t)if(Hr(t[E])||Hr(e[E])){const p=rv.indexOf(E)!==-1?"attr"+E.charAt(0).toUpperCase()+E.substring(1):E;a[p]=t[E]}return a}const xK=I8({scrapeMotionValuesFromProps:$8,createRenderState:M8}),_K=Symbol.for("motionComponentSymbol");function kb(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function CK(t,e,i){return Y.useCallback(a=>{a&&t.onMount&&t.onMount(a),e&&(a?e.mount(a):e.unmount()),i&&(typeof i=="function"?i(a):kb(i)&&(i.current=a))},[e])}const LN=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),NK="framerAppearId",U8="data-"+LN(NK),H8=Y.createContext({});function RK(t,e,i,a,E){var S,T;const{visualElement:p}=Y.useContext($T),g=Y.useContext(C8),y=Y.useContext(tN),f=Y.useContext(_8).reducedMotion,b=Y.useRef(null);a=a||g.renderer,!b.current&&a&&(b.current=a(t,{visualState:e,parent:p,props:i,presenceContext:y,blockInitialAnimation:y?y.initial===!1:!1,reducedMotionConfig:f}));const c=b.current,u=Y.useContext(H8);c&&!c.projection&&E&&(c.type==="html"||c.type==="svg")&&LK(b.current,i,E,u);const d=Y.useRef(!1);Y.useInsertionEffect(()=>{c&&d.current&&c.update(i,y)});const h=i[U8],m=Y.useRef(!!h&&!((S=window.MotionHandoffIsComplete)!=null&&S.call(window,h))&&((T=window.MotionHasOptimisedAnimation)==null?void 0:T.call(window,h)));return iX(()=>{c&&(d.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),m.current&&c.animationState&&c.animationState.animateChanges())}),Y.useEffect(()=>{c&&(!m.current&&c.animationState&&c.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{var A;(A=window.MotionHandoffMarkAsComplete)==null||A.call(window,h)}),m.current=!1),c.enteringChildren=void 0)}),c}function LK(t,e,i,a){const{layoutId:E,layout:p,drag:g,dragConstraints:y,layoutScroll:f,layoutRoot:b,layoutCrossfade:c}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:j8(t.parent)),t.projection.setOptions({layoutId:E,layout:p,alwaysMeasureLayout:!!g||y&&kb(y),visualElement:t,animationType:typeof p=="string"?p:"both",initialPromotionConfig:a,crossfade:c,layoutScroll:f,layoutRoot:b})}function j8(t){if(t)return t.options.allowProjection!==!1?t.projection:j8(t.parent)}function i_(t,{forwardMotionProps:e=!1}={},i,a){i&&oK(i);const E=CN(t)?xK:AK;function p(y,f){let b;const c={...Y.useContext(_8),...y,layoutId:OK(y)},{isStatic:u}=c,d=lK(y),h=E(y,u);if(!u&&eN){DK(c,i);const m=MK(c);b=m.MeasureLayout,d.visualElement=RK(t,h,c,a,m.ProjectionNode)}return H.jsxs($T.Provider,{value:d,children:[b&&d.visualElement?H.jsx(b,{visualElement:d.visualElement,...c}):null,wK(t,y,CK(h,d.visualElement,f),h,u,e)]})}p.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const g=Y.forwardRef(p);return g[_K]=t,g}function OK({layoutId:t}){const e=Y.useContext($U).id;return e&&t!==void 0?e+"-"+t:t}function DK(t,e){const i=Y.useContext(C8).strict;if(process.env.NODE_ENV!=="production"&&e&&i){const a="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?ov(!1,a,"lazy-strict-mode"):bd(!1,a,"lazy-strict-mode")}}function MK(t){const{drag:e,layout:i}=Wb;if(!e&&!i)return{};const a={...e,...i};return{MeasureLayout:e!=null&&e.isEnabled(t)||i!=null&&i.isEnabled(t)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}function kK(t,e){if(typeof Proxy>"u")return i_;const i=new Map,a=(p,g)=>i_(p,g,t,e),E=(p,g)=>(process.env.NODE_ENV!=="production"&&aN(!1,"motion() is deprecated. Use motion.create() instead."),a(p,g));return new Proxy(E,{get:(p,g)=>g==="create"?a:(i.has(g)||i.set(g,i_(g,void 0,t,e)),i.get(g))})}function z8({top:t,left:e,right:i,bottom:a}){return{x:{min:e,max:i},y:{min:t,max:a}}}function IK({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function $K(t,e){if(!e)return t;const i=e({x:t.left,y:t.top}),a=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:a.y,right:a.x}}function r_(t){return t===void 0||t===1}function K_({scale:t,scaleX:e,scaleY:i}){return!r_(t)||!r_(e)||!r_(i)}function np(t){return K_(t)||B8(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function B8(t){return g4(t.x)||g4(t.y)}function g4(t){return t&&t!=="0%"}function rT(t,e,i){const a=t-i,E=e*a;return i+E}function b4(t,e,i,a,E){return E!==void 0&&(t=rT(t,E,a)),rT(t,i,a)+e}function Z_(t,e=0,i=1,a,E){t.min=b4(t.min,e,i,a,E),t.max=b4(t.max,e,i,a,E)}function F8(t,{x:e,y:i}){Z_(t.x,e.translate,e.scale,e.originPoint),Z_(t.y,i.translate,i.scale,i.originPoint)}const v4=.999999999999,y4=1.0000000000001;function UK(t,e,i,a=!1){const E=i.length;if(!E)return;e.x=e.y=1;let p,g;for(let y=0;y<E;y++){p=i[y],g=p.projectionDelta;const{visualElement:f}=p.options;f&&f.props.style&&f.props.style.display==="contents"||(a&&p.options.layoutScroll&&p.scroll&&p!==p.root&&$b(t,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),g&&(e.x*=g.x.scale,e.y*=g.y.scale,F8(t,g)),a&&np(p.latestValues)&&$b(t,p.latestValues))}e.x<y4&&e.x>v4&&(e.x=1),e.y<y4&&e.y>v4&&(e.y=1)}function Ib(t,e){t.min=t.min+e,t.max=t.max+e}function E4(t,e,i,a,E=.5){const p=qo(t.min,t.max,E);Z_(t,e,i,p,a)}function $b(t,e){E4(t.x,e.x,e.scaleX,e.scale,e.originX),E4(t.y,e.y,e.scaleY,e.scale,e.originY)}function P8(t,e){return z8($K(t.getBoundingClientRect(),e))}function HK(t,e,i){const a=P8(t,i),{scroll:E}=e;return E&&(Ib(a.x,E.offset.x),Ib(a.y,E.offset.y)),a}const w4=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ub=()=>({x:w4(),y:w4()}),S4=()=>({min:0,max:0}),fi=()=>({x:S4(),y:S4()}),J_={current:null},V8={current:!1};function jK(){if(V8.current=!0,!!eN)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>J_.current=t.matches;t.addEventListener("change",e),e()}else J_.current=!1}const zK=new WeakMap;function BK(t,e,i){for(const a in e){const E=e[a],p=i[a];if(Hr(E))t.addValue(a,E);else if(Hr(p))t.addValue(a,Qb(E,{owner:t}));else if(p!==E)if(t.hasValue(a)){const g=t.getValue(a);g.liveStyle===!0?g.jump(E):g.hasAnimated||g.set(E)}else{const g=t.getStaticValue(a);t.addValue(a,Qb(g!==void 0?g:E,{owner:t}))}}for(const a in i)e[a]===void 0&&t.removeValue(a);return e}const T4=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class FK{scrapeMotionValuesFromProps(e,i,a){return{}}constructor({parent:e,props:i,presenceContext:a,reducedMotionConfig:E,blockInitialAnimation:p,visualState:g},y={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=vN,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 d=Fa.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,jo.render(this.render,!1,!0))};const{latestValues:f,renderState:b}=g;this.latestValues=f,this.baseTarget={...f},this.initialValues=i.initial?{...f}:{},this.renderState=b,this.parent=e,this.props=i,this.presenceContext=a,this.depth=e?e.depth+1:0,this.reducedMotionConfig=E,this.options=y,this.blockInitialAnimation=!!p,this.isControllingVariants=HT(i),this.isVariantNode=R8(i),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(i,{},this);for(const d in u){const h=u[d];f[d]!==void 0&&Hr(h)&&h.set(f[d])}}mount(e){var i;this.current=e,zK.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,E)=>this.bindToMotionValue(E,a)),V8.current||jK(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:J_.current,process.env.NODE_ENV!=="production"&&aN(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),(i=this.parent)==null||i.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var e;this.projection&&this.projection.unmount(),hh(this.notifyUpdate),hh(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const a=this.features[i];a&&(a.unmount(),a.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,i){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const a=av.has(e);a&&this.onBindTransform&&this.onBindTransform();const E=i.on("change",g=>{this.latestValues[e]=g,this.props.onUpdate&&jo.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let p;window.MotionCheckAppearSync&&(p=window.MotionCheckAppearSync(this,e,i)),this.valueSubscriptions.set(e,()=>{E(),p&&p(),i.owner&&i.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Wb){const i=Wb[e];if(!i)continue;const{isEnabled:a,Feature:E}=i;if(!this.features[e]&&E&&a(this.props)&&(this.features[e]=new E(this)),this.features[e]){const p=this.features[e];p.isMounted?p.update():(p.mount(),p.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):fi()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,i){this.latestValues[e]=i}update(e,i){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=i;for(let a=0;a<T4.length;a++){const E=T4[a];this.propEventSubscriptions[E]&&(this.propEventSubscriptions[E](),delete this.propEventSubscriptions[E]);const p="on"+E,g=e[p];g&&(this.propEventSubscriptions[E]=this.on(E,g))}this.prevMotionValues=BK(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]: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(e){const i=this.getClosestVariantNode();if(i)return i.variantChildren&&i.variantChildren.add(e),()=>i.variantChildren.delete(e)}addValue(e,i){const a=this.values.get(e);i!==a&&(a&&this.removeValue(e),this.bindToMotionValue(e,i),this.values.set(e,i),this.latestValues[e]=i.get())}removeValue(e){this.values.delete(e);const i=this.valueSubscriptions.get(e);i&&(i(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,i){if(this.props.values&&this.props.values[e])return this.props.values[e];let a=this.values.get(e);return a===void 0&&i!==void 0&&(a=Qb(i===null?void 0:i,{owner:this}),this.addValue(e,a)),a}readValue(e,i){let a=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return a!=null&&(typeof a=="string"&&(UU(a)||jU(a))?a=parseFloat(a):!tK(a)&&mh.test(i)&&(a=E8(e,i)),this.setBaseTarget(e,Hr(a)?a.get():a)),Hr(a)?a.get():a}setBaseTarget(e,i){this.baseTarget[e]=i}getBaseTarget(e){var p;const{initial:i}=this.props;let a;if(typeof i=="string"||typeof i=="object"){const g=NN(this.props,i,(p=this.presenceContext)==null?void 0:p.custom);g&&(a=g[e])}if(i&&a!==void 0)return a;const E=this.getBaseTargetFromProps(this.props,e);return E!==void 0&&!Hr(E)?E:this.initialValues[e]!==void 0&&a===void 0?void 0:this.baseTarget[e]}on(e,i){return this.events[e]||(this.events[e]=new rN),this.events[e].add(i)}notify(e,...i){this.events[e]&&this.events[e].notify(...i)}scheduleRenderMicrotask(){wN.render(this.render)}}class G8 extends FK{constructor(){super(...arguments),this.KeyframeResolver=Fq}sortInstanceNodePosition(e,i){return e.compareDocumentPosition(i)&2?1:-1}getBaseTargetFromProps(e,i){return e.style?e.style[i]:void 0}removeValueFromRenderState(e,{vars:i,style:a}){delete i[e],delete a[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Hr(e)&&(this.childSubscription=e.on("change",i=>{this.current&&(this.current.textContent=`${i}`)}))}}function Q8(t,{style:e,vars:i},a,E){const p=t.style;let g;for(g in e)p[g]=e[g];E==null||E.applyProjectionStyles(p,a);for(g in i)p.setProperty(g,i[g])}function PK(t){return window.getComputedStyle(t)}class VK extends G8{constructor(){super(...arguments),this.type="html",this.renderInstance=Q8}readValueFromInstance(e,i){var a;if(av.has(i))return(a=this.projection)!=null&&a.isProjecting?V_(i):aq(e,i);{const E=PK(e),p=(cN(i)?E.getPropertyValue(i):E[i])||0;return typeof p=="string"?p.trim():p}}measureInstanceViewportBox(e,{transformPagePoint:i}){return P8(e,i)}build(e,i,a){xN(e,i,a.transformTemplate)}scrapeMotionValuesFromProps(e,i,a){return RN(e,i,a)}}const W8=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 GK(t,e,i,a){Q8(t,e,void 0,a);for(const E in e.attrs)t.setAttribute(W8.has(E)?E:LN(E),e.attrs[E])}class QK extends G8{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=fi}getBaseTargetFromProps(e,i){return e[i]}readValueFromInstance(e,i){if(av.has(i)){const a=y8(i);return a&&a.default||0}return i=W8.has(i)?i:LN(i),e.getAttribute(i)}scrapeMotionValuesFromProps(e,i,a){return $8(e,i,a)}build(e,i,a){D8(e,i,this.isSVGTag,a.transformTemplate,a.style)}renderInstance(e,i,a,E){GK(e,i,a,E)}mount(e){this.isSVGTag=k8(e.tagName),super.mount(e)}}const WK=(t,e)=>CN(t)?new QK(e):new VK(e,{allowProjection:t!==Y.Fragment});function Bb(t,e,i){const a=t.getProps();return NN(a,e,i!==void 0?i:a.custom,t)}const eC=t=>Array.isArray(t);function YK(t,e,i){t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,Qb(i))}function XK(t){return eC(t)?t[t.length-1]||0:t}function qK(t,e){const i=Bb(t,e);let{transitionEnd:a={},transition:E={},...p}=i||{};p={...p,...a};for(const g in p){const y=XK(p[g]);YK(t,g,y)}}function KK(t){return!!(Hr(t)&&t.add)}function tC(t,e){const i=t.getValue("willChange");if(KK(i))return i.add(e);if(!i&&vd.WillChange){const a=new vd.WillChange("auto");t.addValue("willChange",a),a.add(e)}}function Y8(t){return t.props[U8]}const ZK=t=>t!==null;function JK(t,{repeat:e,repeatType:i="loop"},a){const E=t.filter(ZK),p=e&&i!=="loop"&&e%2===1?0:E.length-1;return E[p]}const eZ={type:"spring",stiffness:500,damping:25,restSpeed:10},tZ=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),nZ={type:"keyframes",duration:.8},oZ={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},iZ=(t,{keyframes:e})=>e.length>2?nZ:av.has(t)?t.startsWith("scale")?tZ(e[1]):eZ:oZ;function rZ({when:t,delay:e,delayChildren:i,staggerChildren:a,staggerDirection:E,repeat:p,repeatType:g,repeatDelay:y,from:f,elapsed:b,...c}){return!!Object.keys(c).length}const ON=(t,e,i,a={},E,p)=>g=>{const y=yN(a,t)||{},f=y.delay||a.delay||0;let{elapsed:b=0}=a;b=b-nc(f);const c={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...y,delay:-b,onUpdate:d=>{e.set(d),y.onUpdate&&y.onUpdate(d)},onComplete:()=>{g(),y.onComplete&&y.onComplete()},name:t,motionValue:e,element:p?void 0:E};rZ(y)||Object.assign(c,iZ(t,c)),c.duration&&(c.duration=nc(c.duration)),c.repeatDelay&&(c.repeatDelay=nc(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let u=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(X_(c),c.delay===0&&(u=!0)),(vd.instantAnimations||vd.skipAnimations)&&(u=!0,X_(c),c.delay=0),c.allowFlatten=!y.type&&!y.ease,u&&!p&&e.get()!==void 0){const d=JK(c.keyframes,y);if(d!==void 0){jo.update(()=>{c.onUpdate(d),c.onComplete()});return}}return y.isSync?new bN(c):new Rq(c)};function aZ({protectedKeys:t,needsAnimating:e},i){const a=t.hasOwnProperty(i)&&e[i]!==!0;return e[i]=!1,a}function X8(t,e,{delay:i=0,transitionOverride:a,type:E}={}){let{transition:p=t.getDefaultTransition(),transitionEnd:g,...y}=e;a&&(p=a);const f=[],b=E&&t.animationState&&t.animationState.getState()[E];for(const c in y){const u=t.getValue(c,t.latestValues[c]??null),d=y[c];if(d===void 0||b&&aZ(b,c))continue;const h={delay:i,...yN(p||{},c)},m=u.get();if(m!==void 0&&!u.isAnimating&&!Array.isArray(d)&&d===m&&!h.velocity)continue;let S=!1;if(window.MotionHandoffAnimation){const A=Y8(t);if(A){const N=window.MotionHandoffAnimation(A,c,jo);N!==null&&(h.startTime=N,S=!0)}}tC(t,c),u.start(ON(c,u,d,t.shouldReduceMotion&&g8.has(c)?{type:!1}:h,t,S));const T=u.animation;T&&f.push(T)}return g&&Promise.all(f).then(()=>{jo.update(()=>{g&&qK(t,g)})}),f}function q8(t,e,i,a=0,E=1){const p=Array.from(t).sort((b,c)=>b.sortNodePosition(c)).indexOf(e),g=t.size,y=(g-1)*a;return typeof i=="function"?i(p,g):E===1?p*a:y-p*a}function nC(t,e,i={}){var f;const a=Bb(t,e,i.type==="exit"?(f=t.presenceContext)==null?void 0:f.custom:void 0);let{transition:E=t.getDefaultTransition()||{}}=a||{};i.transitionOverride&&(E=i.transitionOverride);const p=a?()=>Promise.all(X8(t,a,i)):()=>Promise.resolve(),g=t.variantChildren&&t.variantChildren.size?(b=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:d}=E;return sZ(t,e,b,c,u,d,i)}:()=>Promise.resolve(),{when:y}=E;if(y){const[b,c]=y==="beforeChildren"?[p,g]:[g,p];return b().then(()=>c())}else return Promise.all([p(),g(i.delay)])}function sZ(t,e,i=0,a=0,E=0,p=1,g){const y=[];for(const f of t.variantChildren)f.notify("AnimationStart",e),y.push(nC(f,e,{...g,delay:i+(typeof a=="function"?0:a)+q8(t.variantChildren,f,a,E,p)}).then(()=>f.notify("AnimationComplete",e)));return Promise.all(y)}function lZ(t,e,i={}){t.notify("AnimationStart",e);let a;if(Array.isArray(e)){const E=e.map(p=>nC(t,p,i));a=Promise.all(E)}else if(typeof e=="string")a=nC(t,e,i);else{const E=typeof e=="function"?Bb(t,e,i.custom):e;a=Promise.all(X8(t,E,i))}return a.then(()=>{t.notify("AnimationComplete",e)})}function K8(t,e){if(!Array.isArray(e))return!1;const i=e.length;if(i!==t.length)return!1;for(let a=0;a<i;a++)if(e[a]!==t[a])return!1;return!0}const cZ=AN.length;function Z8(t){if(!t)return;if(!t.isControllingVariants){const i=t.parent?Z8(t.parent)||{}:{};return t.props.initial!==void 0&&(i.initial=t.props.initial),i}const e={};for(let i=0;i<cZ;i++){const a=AN[i],E=t.props[a];(RE(E)||E===!1)&&(e[a]=E)}return e}const uZ=[...TN].reverse(),dZ=TN.length;function fZ(t){return e=>Promise.all(e.map(({animation:i,options:a})=>lZ(t,i,a)))}function hZ(t){let e=fZ(t),i=A4(),a=!0;const E=f=>(b,c)=>{var d;const u=Bb(t,c,f==="exit"?(d=t.presenceContext)==null?void 0:d.custom:void 0);if(u){const{transition:h,transitionEnd:m,...S}=u;b={...b,...S,...m}}return b};function p(f){e=f(t)}function g(f){const{props:b}=t,c=Z8(t.parent)||{},u=[],d=new Set;let h={},m=1/0;for(let T=0;T<dZ;T++){const A=uZ[T],N=i[A],O=b[A]!==void 0?b[A]:c[A],D=RE(O),R=A===f?N.isActive:null;R===!1&&(m=T);let C=O===c[A]&&O!==b[A]&&D;if(C&&a&&t.manuallyAnimateOnMount&&(C=!1),N.protectedKeys={...h},!N.isActive&&R===null||!O&&!N.prevProp||UT(O)||typeof O=="boolean")continue;const $=mZ(N.prevProp,O);let F=$||A===f&&N.isActive&&!C&&D||T>m&&D,U=!1;const j=Array.isArray(O)?O:[O];let X=j.reduce(E(A),{});R===!1&&(X={});const{prevResolvedValues:P={}}=N,B={...P,...X},k=W=>{F=!0,d.has(W)&&(U=!0,d.delete(W)),N.needsAnimating[W]=!0;const Q=t.getValue(W);Q&&(Q.liveStyle=!1)};for(const W in B){const Q=X[W],J=P[W];if(h.hasOwnProperty(W))continue;let K=!1;eC(Q)&&eC(J)?K=!K8(Q,J):K=Q!==J,K?Q!=null?k(W):d.add(W):Q!==void 0&&d.has(W)?k(W):N.protectedKeys[W]=!0}N.prevProp=O,N.prevResolvedValues=X,N.isActive&&(h={...h,...X}),a&&t.blockInitialAnimation&&(F=!1);const M=C&&$;F&&(!M||U)&&u.push(...j.map(W=>{const Q={type:A};if(typeof W=="string"&&a&&!M&&t.manuallyAnimateOnMount&&t.parent){const{parent:J}=t,K=Bb(J,W);if(J.enteringChildren&&K){const{delayChildren:Z}=K.transition||{};Q.delay=q8(J.enteringChildren,t,Z)}}return{animation:W,options:Q}}))}if(d.size){const T={};if(typeof b.initial!="boolean"){const A=Bb(t,Array.isArray(b.initial)?b.initial[0]:b.initial);A&&A.transition&&(T.transition=A.transition)}d.forEach(A=>{const N=t.getBaseTarget(A),O=t.getValue(A);O&&(O.liveStyle=!0),T[A]=N??null}),u.push({animation:T})}let S=!!u.length;return a&&(b.initial===!1||b.initial===b.animate)&&!t.manuallyAnimateOnMount&&(S=!1),a=!1,S?e(u):Promise.resolve()}function y(f,b){var u;if(i[f].isActive===b)return Promise.resolve();(u=t.variantChildren)==null||u.forEach(d=>{var h;return(h=d.animationState)==null?void 0:h.setActive(f,b)}),i[f].isActive=b;const c=g(f);for(const d in i)i[d].protectedKeys={};return c}return{animateChanges:g,setActive:y,setAnimateFunction:p,getState:()=>i,reset:()=>{i=A4(),a=!0}}}function mZ(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!K8(e,t):!1}function ep(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function A4(){return{animate:ep(!0),whileInView:ep(),whileHover:ep(),whileTap:ep(),whileDrag:ep(),whileFocus:ep(),exit:ep()}}class bh{constructor(e){this.isMounted=!1,this.node=e}update(){}}class pZ extends bh{constructor(e){super(e),e.animationState||(e.animationState=hZ(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();UT(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:i}=this.node.prevProps||{};e!==i&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let gZ=0;class bZ extends bh{constructor(){super(...arguments),this.id=gZ++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:i}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===a)return;const E=this.node.animationState.setActive("exit",!e);i&&!e&&E.then(()=>{i(this.id)})}mount(){const{register:e,onExitComplete:i}=this.node.presenceContext||{};i&&i(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const vZ={animation:{Feature:pZ},exit:{Feature:bZ}};function OE(t,e,i,a={passive:!0}){return t.addEventListener(e,i,a),()=>t.removeEventListener(e,i)}function qE(t){return{point:{x:t.pageX,y:t.pageY}}}const yZ=t=>e=>SN(e)&&t(e,qE(e));function uE(t,e,i,a){return OE(t,e,yZ(i),a)}const J8=1e-4,EZ=1-J8,wZ=1+J8,eH=.01,SZ=0-eH,TZ=0+eH;function fa(t){return t.max-t.min}function AZ(t,e,i){return Math.abs(t-e)<=i}function x4(t,e,i,a=.5){t.origin=a,t.originPoint=qo(e.min,e.max,t.origin),t.scale=fa(i)/fa(e),t.translate=qo(i.min,i.max,t.origin)-t.originPoint,(t.scale>=EZ&&t.scale<=wZ||isNaN(t.scale))&&(t.scale=1),(t.translate>=SZ&&t.translate<=TZ||isNaN(t.translate))&&(t.translate=0)}function dE(t,e,i,a){x4(t.x,e.x,i.x,a?a.originX:void 0),x4(t.y,e.y,i.y,a?a.originY:void 0)}function _4(t,e,i){t.min=i.min+e.min,t.max=t.min+fa(e)}function xZ(t,e,i){_4(t.x,e.x,i.x),_4(t.y,e.y,i.y)}function C4(t,e,i){t.min=e.min-i.min,t.max=t.min+fa(e)}function fE(t,e,i){C4(t.x,e.x,i.x),C4(t.y,e.y,i.y)}function gl(t){return[t("x"),t("y")]}const tH=({current:t})=>t?t.ownerDocument.defaultView:null,N4=(t,e)=>Math.abs(t-e);function _Z(t,e){const i=N4(t.x,e.x),a=N4(t.y,e.y);return Math.sqrt(i**2+a**2)}class nH{constructor(e,i,{transformPagePoint:a,contextWindow:E=window,dragSnapToOrigin:p=!1,distanceThreshold:g=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=s_(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,m=_Z(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!h&&!m)return;const{point:S}=d,{timestamp:T}=yr;this.history.push({...S,timestamp:T});const{onStart:A,onMove:N}=this.handlers;h||(A&&A(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),N&&N(this.lastMoveEvent,d)},this.handlePointerMove=(d,h)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=a_(h,this.transformPagePoint),jo.update(this.updatePoint,!0)},this.handlePointerUp=(d,h)=>{this.end();const{onEnd:m,onSessionEnd:S,resumeAnimation:T}=this.handlers;if(this.dragSnapToOrigin&&T&&T(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const A=s_(d.type==="pointercancel"?this.lastMoveEventInfo:a_(h,this.transformPagePoint),this.history);this.startEvent&&m&&m(d,A),S&&S(d,A)},!SN(e))return;this.dragSnapToOrigin=p,this.handlers=i,this.transformPagePoint=a,this.distanceThreshold=g,this.contextWindow=E||window;const y=qE(e),f=a_(y,this.transformPagePoint),{point:b}=f,{timestamp:c}=yr;this.history=[{...b,timestamp:c}];const{onSessionStart:u}=i;u&&u(e,s_(f,this.history)),this.removeListeners=WE(uE(this.contextWindow,"pointermove",this.handlePointerMove),uE(this.contextWindow,"pointerup",this.handlePointerUp),uE(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),hh(this.updatePoint)}}function a_(t,e){return e?{point:e(t.point)}:t}function R4(t,e){return{x:t.x-e.x,y:t.y-e.y}}function s_({point:t},e){return{point:t,delta:R4(t,oH(e)),offset:R4(t,CZ(e)),velocity:NZ(e,.1)}}function CZ(t){return t[0]}function oH(t){return t[t.length-1]}function NZ(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,a=null;const E=oH(t);for(;i>=0&&(a=t[i],!(E.timestamp-a.timestamp>nc(e)));)i--;if(!a)return{x:0,y:0};const p=yl(E.timestamp-a.timestamp);if(p===0)return{x:0,y:0};const g={x:(E.x-a.x)/p,y:(E.y-a.y)/p};return g.x===1/0&&(g.x=0),g.y===1/0&&(g.y=0),g}function RZ(t,{min:e,max:i},a){return e!==void 0&&t<e?t=a?qo(e,t,a.min):Math.max(t,e):i!==void 0&&t>i&&(t=a?qo(i,t,a.max):Math.min(t,i)),t}function L4(t,e,i){return{min:e!==void 0?t.min+e:void 0,max:i!==void 0?t.max+i-(t.max-t.min):void 0}}function LZ(t,{top:e,left:i,bottom:a,right:E}){return{x:L4(t.x,i,E),y:L4(t.y,e,a)}}function O4(t,e){let i=e.min-t.min,a=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,a]=[a,i]),{min:i,max:a}}function OZ(t,e){return{x:O4(t.x,e.x),y:O4(t.y,e.y)}}function DZ(t,e){let i=.5;const a=fa(t),E=fa(e);return E>a?i=_E(e.min,e.max-a,t.min):a>E&&(i=_E(t.min,t.max-E,e.min)),gd(0,1,i)}function MZ(t,e){const i={};return e.min!==void 0&&(i.min=e.min-t.min),e.max!==void 0&&(i.max=e.max-t.min),i}const oC=.35;function kZ(t=oC){return t===!1?t=0:t===!0&&(t=oC),{x:D4(t,"left","right"),y:D4(t,"top","bottom")}}function D4(t,e,i){return{min:M4(t,e),max:M4(t,i)}}function M4(t,e){return typeof t=="number"?t:t[e]||0}const IZ=new WeakMap;class $Z{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=fi(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:i=!1,distanceThreshold:a}={}){const{presenceContext:E}=this.visualElement;if(E&&E.isPresent===!1)return;const p=u=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),i&&this.snapToCursor(qE(u).point)},g=(u,d)=>{const{drag:h,dragPropagation:m,onDragStart:S}=this.getProps();if(h&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Wq(h),!this.openDragLock))return;this.latestPointerEvent=u,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),gl(A=>{let N=this.getAxisMotionValue(A).get()||0;if(eu.test(N)){const{projection:O}=this.visualElement;if(O&&O.layout){const D=O.layout.layoutBox[A];D&&(N=fa(D)*(parseFloat(N)/100))}}this.originPoint[A]=N}),S&&jo.postRender(()=>S(u,d)),tC(this.visualElement,"transform");const{animationState:T}=this.visualElement;T&&T.setActive("whileDrag",!0)},y=(u,d)=>{this.latestPointerEvent=u,this.latestPanInfo=d;const{dragPropagation:h,dragDirectionLock:m,onDirectionLock:S,onDrag:T}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:A}=d;if(m&&this.currentDirection===null){this.currentDirection=UZ(A),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",d.point,A),this.updateAxis("y",d.point,A),this.visualElement.render(),T&&T(u,d)},f=(u,d)=>{this.latestPointerEvent=u,this.latestPanInfo=d,this.stop(u,d),this.latestPointerEvent=null,this.latestPanInfo=null},b=()=>gl(u=>{var d;return this.getAnimationState(u)==="paused"&&((d=this.getAxisMotionValue(u).animation)==null?void 0:d.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new nH(e,{onSessionStart:p,onStart:g,onMove:y,onSessionEnd:f,resumeAnimation:b},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:a,contextWindow:tH(this.visualElement)})}stop(e,i){const a=e||this.latestPointerEvent,E=i||this.latestPanInfo,p=this.isDragging;if(this.cancel(),!p||!E||!a)return;const{velocity:g}=E;this.startAnimation(g);const{onDragEnd:y}=this.getProps();y&&jo.postRender(()=>y(a,E))}cancel(){this.isDragging=!1;const{projection:e,animationState:i}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:a}=this.getProps();!a&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),i&&i.setActive("whileDrag",!1)}updateAxis(e,i,a){const{drag:E}=this.getProps();if(!a||!xS(e,E,this.currentDirection))return;const p=this.getAxisMotionValue(e);let g=this.originPoint[e]+a[e];this.constraints&&this.constraints[e]&&(g=RZ(g,this.constraints[e],this.elastic[e])),p.set(g)}resolveConstraints(){var p;const{dragConstraints:e,dragElastic:i}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(p=this.visualElement.projection)==null?void 0:p.layout,E=this.constraints;e&&kb(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&a?this.constraints=LZ(a.layoutBox,e):this.constraints=!1,this.elastic=kZ(i),E!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&gl(g=>{this.constraints!==!1&&this.getAxisMotionValue(g)&&(this.constraints[g]=MZ(a.layoutBox[g],this.constraints[g]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!kb(e))return!1;const a=e.current;bd(a!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:E}=this.visualElement;if(!E||!E.layout)return!1;const p=HK(a,E.root,this.visualElement.getTransformPagePoint());let g=OZ(E.layout.layoutBox,p);if(i){const y=i(IK(g));this.hasMutatedConstraints=!!y,y&&(g=z8(y))}return g}startAnimation(e){const{drag:i,dragMomentum:a,dragElastic:E,dragTransition:p,dragSnapToOrigin:g,onDragTransitionEnd:y}=this.getProps(),f=this.constraints||{},b=gl(c=>{if(!xS(c,i,this.currentDirection))return;let u=f&&f[c]||{};g&&(u={min:0,max:0});const d=E?200:1e6,h=E?40:1e7,m={type:"inertia",velocity:a?e[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...p,...u};return this.startAxisValueAnimation(c,m)});return Promise.all(b).then(y)}startAxisValueAnimation(e,i){const a=this.getAxisMotionValue(e);return tC(this.visualElement,e),a.start(ON(e,a,0,i,this.visualElement,!1))}stopAnimation(){gl(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){gl(e=>{var i;return(i=this.getAxisMotionValue(e).animation)==null?void 0:i.pause()})}getAnimationState(e){var i;return(i=this.getAxisMotionValue(e).animation)==null?void 0:i.state}getAxisMotionValue(e){const i=`_drag${e.toUpperCase()}`,a=this.visualElement.getProps(),E=a[i];return E||this.visualElement.getValue(e,(a.initial?a.initial[e]:void 0)||0)}snapToCursor(e){gl(i=>{const{drag:a}=this.getProps();if(!xS(i,a,this.currentDirection))return;const{projection:E}=this.visualElement,p=this.getAxisMotionValue(i);if(E&&E.layout){const{min:g,max:y}=E.layout.layoutBox[i];p.set(e[i]-qo(g,y,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:i}=this.getProps(),{projection:a}=this.visualElement;if(!kb(i)||!a||!this.constraints)return;this.stopAnimation();const E={x:0,y:0};gl(g=>{const y=this.getAxisMotionValue(g);if(y&&this.constraints!==!1){const f=y.get();E[g]=DZ({min:f,max:f},this.constraints[g])}});const{transformTemplate:p}=this.visualElement.getProps();this.visualElement.current.style.transform=p?p({},""):"none",a.root&&a.root.updateScroll(),a.updateLayout(),this.resolveConstraints(),gl(g=>{if(!xS(g,e,null))return;const y=this.getAxisMotionValue(g),{min:f,max:b}=this.constraints[g];y.set(qo(f,b,E[g]))})}addListeners(){if(!this.visualElement.current)return;IZ.set(this.visualElement,this);const e=this.visualElement.current,i=uE(e,"pointerdown",f=>{const{drag:b,dragListener:c=!0}=this.getProps();b&&c&&this.start(f)}),a=()=>{const{dragConstraints:f}=this.getProps();kb(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:E}=this.visualElement,p=E.addEventListener("measure",a);E&&!E.layout&&(E.root&&E.root.updateScroll(),E.updateLayout()),jo.read(a);const g=OE(window,"resize",()=>this.scalePositionWithinConstraints()),y=E.addEventListener("didUpdate",(({delta:f,hasLayoutChanged:b})=>{this.isDragging&&b&&(gl(c=>{const u=this.getAxisMotionValue(c);u&&(this.originPoint[c]+=f[c].translate,u.set(u.get()+f[c].translate))}),this.visualElement.render())}));return()=>{g(),i(),p(),y&&y()}}getProps(){const e=this.visualElement.getProps(),{drag:i=!1,dragDirectionLock:a=!1,dragPropagation:E=!1,dragConstraints:p=!1,dragElastic:g=oC,dragMomentum:y=!0}=e;return{...e,drag:i,dragDirectionLock:a,dragPropagation:E,dragConstraints:p,dragElastic:g,dragMomentum:y}}}function xS(t,e,i){return(e===!0||e===t)&&(i===null||i===t)}function UZ(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}class HZ extends bh{constructor(e){super(e),this.removeGroupControls=El,this.removeListeners=El,this.controls=new $Z(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||El}unmount(){this.removeGroupControls(),this.removeListeners()}}const k4=t=>(e,i)=>{t&&jo.postRender(()=>t(e,i))};class jZ extends bh{constructor(){super(...arguments),this.removePointerDownListener=El}onPointerDown(e){this.session=new nH(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tH(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:i,onPan:a,onPanEnd:E}=this.node.getProps();return{onSessionStart:k4(e),onStart:k4(i),onMove:a,onEnd:(p,g)=>{delete this.session,E&&jo.postRender(()=>E(p,g))}}}mount(){this.removePointerDownListener=uE(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const MS={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function I4(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const eE={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Jt.test(t))t=parseFloat(t);else return t;const i=I4(t,e.target.x),a=I4(t,e.target.y);return`${i}% ${a}%`}},zZ={correct:(t,{treeScale:e,projectionDelta:i})=>{const a=t,E=mh.parse(t);if(E.length>5)return a;const p=mh.createTransformer(t),g=typeof E[0]!="number"?1:0,y=i.x.scale*e.x,f=i.y.scale*e.y;E[0+g]/=y,E[1+g]/=f;const b=qo(y,f,.5);return typeof E[2+g]=="number"&&(E[2+g]/=b),typeof E[3+g]=="number"&&(E[3+g]/=b),p(E)}};let l_=!1;class BZ extends Y.Component{componentDidMount(){const{visualElement:e,layoutGroup:i,switchLayoutGroup:a,layoutId:E}=this.props,{projection:p}=e;cK(FZ),p&&(i.group&&i.group.add(p),a&&a.register&&E&&a.register(p),l_&&p.root.didUpdate(),p.addEventListener("animationComplete",()=>{this.safeToRemove()}),p.setOptions({...p.options,onExitComplete:()=>this.safeToRemove()})),MS.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:i,visualElement:a,drag:E,isPresent:p}=this.props,{projection:g}=a;return g&&(g.isPresent=p,l_=!0,E||e.layoutDependency!==i||i===void 0||e.isPresent!==p?g.willUpdate():this.safeToRemove(),e.isPresent!==p&&(p?g.promote():g.relegate()||jo.postRender(()=>{const y=g.getStack();(!y||!y.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),wN.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:i,switchLayoutGroup:a}=this.props,{projection:E}=e;l_=!0,E&&(E.scheduleCheckAfterUnmount(),i&&i.group&&i.group.remove(E),a&&a.deregister&&a.deregister(E))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function iH(t){const[e,i]=nK(),a=Y.useContext($U);return H.jsx(BZ,{...t,layoutGroup:a,switchLayoutGroup:Y.useContext(H8),isPresent:e,safeToRemove:i})}const FZ={borderRadius:{...eE,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eE,borderTopRightRadius:eE,borderBottomLeftRadius:eE,borderBottomRightRadius:eE,boxShadow:zZ};function PZ(t,e,i){const a=Hr(t)?t:Qb(t);return a.start(ON("",a,e,i)),a.animation}const VZ=(t,e)=>t.depth-e.depth;class GZ{constructor(){this.children=[],this.isDirty=!1}add(e){nN(this.children,e),this.isDirty=!0}remove(e){oN(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(VZ),this.isDirty=!1,this.children.forEach(e)}}function QZ(t,e){const i=Fa.now(),a=({timestamp:E})=>{const p=E-i;p>=e&&(hh(a),t(p-e))};return jo.setup(a,!0),()=>hh(a)}const rH=["TopLeft","TopRight","BottomLeft","BottomRight"],WZ=rH.length,$4=t=>typeof t=="string"?parseFloat(t):t,U4=t=>typeof t=="number"||Jt.test(t);function YZ(t,e,i,a,E,p){E?(t.opacity=qo(0,i.opacity??1,XZ(a)),t.opacityExit=qo(e.opacity??1,0,qZ(a))):p&&(t.opacity=qo(e.opacity??1,i.opacity??1,a));for(let g=0;g<WZ;g++){const y=`border${rH[g]}Radius`;let f=H4(e,y),b=H4(i,y);if(f===void 0&&b===void 0)continue;f||(f=0),b||(b=0),f===0||b===0||U4(f)===U4(b)?(t[y]=Math.max(qo($4(f),$4(b),a),0),(eu.test(b)||eu.test(f))&&(t[y]+="%")):t[y]=b}(e.rotate||i.rotate)&&(t.rotate=qo(e.rotate||0,i.rotate||0,a))}function H4(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const XZ=aH(0,.5,WU),qZ=aH(.5,.95,El);function aH(t,e,i){return a=>a<t?0:a>e?1:i(_E(t,e,a))}function j4(t,e){t.min=e.min,t.max=e.max}function pl(t,e){j4(t.x,e.x),j4(t.y,e.y)}function z4(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function B4(t,e,i,a,E){return t-=e,t=rT(t,1/i,a),E!==void 0&&(t=rT(t,1/E,a)),t}function KZ(t,e=0,i=1,a=.5,E,p=t,g=t){if(eu.test(e)&&(e=parseFloat(e),e=qo(g.min,g.max,e/100)-g.min),typeof e!="number")return;let y=qo(p.min,p.max,a);t===p&&(y-=e),t.min=B4(t.min,e,i,y,E),t.max=B4(t.max,e,i,y,E)}function F4(t,e,[i,a,E],p,g){KZ(t,e[i],e[a],e[E],e.scale,p,g)}const ZZ=["x","scaleX","originX"],JZ=["y","scaleY","originY"];function P4(t,e,i,a){F4(t.x,e,ZZ,i?i.x:void 0,a?a.x:void 0),F4(t.y,e,JZ,i?i.y:void 0,a?a.y:void 0)}function V4(t){return t.translate===0&&t.scale===1}function sH(t){return V4(t.x)&&V4(t.y)}function G4(t,e){return t.min===e.min&&t.max===e.max}function eJ(t,e){return G4(t.x,e.x)&&G4(t.y,e.y)}function Q4(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function lH(t,e){return Q4(t.x,e.x)&&Q4(t.y,e.y)}function W4(t){return fa(t.x)/fa(t.y)}function Y4(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class tJ{constructor(){this.members=[]}add(e){nN(this.members,e),e.scheduleRender()}remove(e){if(oN(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const i=this.members[this.members.length-1];i&&this.promote(i)}}relegate(e){const i=this.members.findIndex(E=>e===E);if(i===0)return!1;let a;for(let E=i;E>=0;E--){const p=this.members[E];if(p.isPresent!==!1){a=p;break}}return a?(this.promote(a),!0):!1}promote(e,i){const a=this.lead;if(e!==a&&(this.prevLead=a,this.lead=e,e.show(),a)){a.instance&&a.scheduleRender(),e.scheduleRender(),e.resumeFrom=a,i&&(e.resumeFrom.preserveOpacity=!0),a.snapshot&&(e.snapshot=a.snapshot,e.snapshot.latestValues=a.animationValues||a.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:E}=e.options;E===!1&&a.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:i,resumingFrom:a}=e;i.onExitComplete&&i.onExitComplete(),a&&a.options.onExitComplete&&a.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function nJ(t,e,i){let a="";const E=t.x.translate/e.x,p=t.y.translate/e.y,g=(i==null?void 0:i.z)||0;if((E||p||g)&&(a=`translate3d(${E}px, ${p}px, ${g}px) `),(e.x!==1||e.y!==1)&&(a+=`scale(${1/e.x}, ${1/e.y}) `),i){const{transformPerspective:b,rotate:c,rotateX:u,rotateY:d,skewX:h,skewY:m}=i;b&&(a=`perspective(${b}px) ${a}`),c&&(a+=`rotate(${c}deg) `),u&&(a+=`rotateX(${u}deg) `),d&&(a+=`rotateY(${d}deg) `),h&&(a+=`skewX(${h}deg) `),m&&(a+=`skewY(${m}deg) `)}const y=t.x.scale*e.x,f=t.y.scale*e.y;return(y!==1||f!==1)&&(a+=`scale(${y}, ${f})`),a||"none"}const c_=["","X","Y","Z"],oJ=1e3;let iJ=0;function u_(t,e,i,a){const{latestValues:E}=e;E[t]&&(i[t]=E[t],e.setStaticValue(t,0),a&&(a[t]=0))}function cH(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const i=Y8(e);if(window.MotionHasOptimisedAnimation(i,"transform")){const{layout:E,layoutId:p}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",jo,!(E||p))}const{parent:a}=t;a&&!a.hasCheckedOptimisedAppear&&cH(a)}function uH({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:a,resetTransform:E}){return class{constructor(g={},y=e==null?void 0:e()){this.id=iJ++,this.animationId=0,this.animationCommitId=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,this.nodes.forEach(sJ),this.nodes.forEach(dJ),this.nodes.forEach(fJ),this.nodes.forEach(lJ)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=g,this.root=y?y.root||y:this,this.path=y?[...y.path,y]:[],this.parent=y,this.depth=y?y.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new GZ)}addEventListener(g,y){return this.eventHandlers.has(g)||this.eventHandlers.set(g,new rN),this.eventHandlers.get(g).add(y)}notifyListeners(g,...y){const f=this.eventHandlers.get(g);f&&f.notify(...y)}hasListeners(g){return this.eventHandlers.has(g)}mount(g){if(this.instance)return;this.isSVG=x8(g)&&!Jq(g),this.instance=g;const{layoutId:y,layout:f,visualElement:b}=this.options;if(b&&!b.current&&b.mount(g),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(f||y)&&(this.isLayoutDirty=!0),t){let c,u=0;const d=()=>this.root.updateBlockedByResize=!1;jo.read(()=>{u=window.innerWidth}),t(g,()=>{const h=window.innerWidth;h!==u&&(u=h,this.root.updateBlockedByResize=!0,c&&c(),c=QZ(d,250),MS.hasAnimatedSinceResize&&(MS.hasAnimatedSinceResize=!1,this.nodes.forEach(K4)))})}y&&this.root.registerSharedNode(y,this),this.options.animate!==!1&&b&&(y||f)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u,hasRelativeLayoutChanged:d,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||b.getDefaultTransition()||bJ,{onLayoutAnimationStart:S,onLayoutAnimationComplete:T}=b.getProps(),A=!this.targetLayout||!lH(this.targetLayout,h),N=!u&&d;if(this.options.layoutRoot||this.resumeFrom||N||u&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const O={...yN(m,"layout"),onPlay:S,onComplete:T};(b.shouldReduceMotion||this.options.layoutRoot)&&(O.delay=0,O.type=!1),this.startAnimation(O),this.setAnimationOrigin(c,N)}else u||K4(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const g=this.getStack();g&&g.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),hh(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(hJ),this.animationId++)}getTransformTemplate(){const{visualElement:g}=this.options;return g&&g.getProps().transformTemplate}willUpdate(g=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&cH(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const u=this.path[c];u.shouldResetTransform=!0,u.updateScroll("snapshot"),u.options.layoutRoot&&u.willUpdate(!1)}const{layoutId:y,layout:f}=this.options;if(y===void 0&&!f)return;const b=this.getTransformTemplate();this.prevTransformTemplateValue=b?b(this.latestValues,""):void 0,this.updateSnapshot(),g&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(X4);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(q4);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(uJ),this.nodes.forEach(rJ),this.nodes.forEach(aJ)):this.nodes.forEach(q4),this.clearAllSnapshots();const y=Fa.now();yr.delta=gd(0,1e3/60,y-yr.timestamp),yr.timestamp=y,yr.isProcessing=!0,Zx.update.process(yr),Zx.preRender.process(yr),Zx.render.process(yr),yr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,wN.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(cJ),this.sharedNodes.forEach(mJ)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,jo.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){jo.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!fa(this.snapshot.measuredBox.x)&&!fa(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const g=this.layout;this.layout=this.measure(!1),this.layoutCorrected=fi(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:y}=this.options;y&&y.notify("LayoutMeasure",this.layout.layoutBox,g?g.layoutBox:void 0)}updateScroll(g="measure"){let y=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===g&&(y=!1),y&&this.instance){const f=a(this.instance);this.scroll={animationId:this.root.animationId,phase:g,isRoot:f,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!E)return;const g=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,y=this.projectionDelta&&!sH(this.projectionDelta),f=this.getTransformTemplate(),b=f?f(this.latestValues,""):void 0,c=b!==this.prevTransformTemplateValue;g&&this.instance&&(y||np(this.latestValues)||c)&&(E(this.instance,b),this.shouldResetTransform=!1,this.scheduleRender())}measure(g=!0){const y=this.measurePageBox();let f=this.removeElementScroll(y);return g&&(f=this.removeTransform(f)),vJ(f),{animationId:this.root.animationId,measuredBox:y,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var b;const{visualElement:g}=this.options;if(!g)return fi();const y=g.measureViewportBox();if(!(((b=this.scroll)==null?void 0:b.wasRoot)||this.path.some(yJ))){const{scroll:c}=this.root;c&&(Ib(y.x,c.offset.x),Ib(y.y,c.offset.y))}return y}removeElementScroll(g){var f;const y=fi();if(pl(y,g),(f=this.scroll)!=null&&f.wasRoot)return y;for(let b=0;b<this.path.length;b++){const c=this.path[b],{scroll:u,options:d}=c;c!==this.root&&u&&d.layoutScroll&&(u.wasRoot&&pl(y,g),Ib(y.x,u.offset.x),Ib(y.y,u.offset.y))}return y}applyTransform(g,y=!1){const f=fi();pl(f,g);for(let b=0;b<this.path.length;b++){const c=this.path[b];!y&&c.options.layoutScroll&&c.scroll&&c!==c.root&&$b(f,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),np(c.latestValues)&&$b(f,c.latestValues)}return np(this.latestValues)&&$b(f,this.latestValues),f}removeTransform(g){const y=fi();pl(y,g);for(let f=0;f<this.path.length;f++){const b=this.path[f];if(!b.instance||!np(b.latestValues))continue;K_(b.latestValues)&&b.updateSnapshot();const c=fi(),u=b.measurePageBox();pl(c,u),P4(y,b.latestValues,b.snapshot?b.snapshot.layoutBox:void 0,c)}return np(this.latestValues)&&P4(y,this.latestValues),y}setTargetDelta(g){this.targetDelta=g,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(g){this.options={...this.options,...g,crossfade:g.crossfade!==void 0?g.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!==yr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(g=!1){var d;const y=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=y.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=y.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=y.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==y;if(!(g||f&&this.isSharedProjectionDirty||this.isProjectionDirty||(d=this.parent)!=null&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:u}=this.options;if(!(!this.layout||!(c||u))){if(this.resolvedRelativeTargetAt=yr.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=fi(),this.relativeTargetOrigin=fi(),fE(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),pl(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=fi(),this.targetWithTransforms=fi()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),xZ(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):pl(this.target,this.layout.layoutBox),F8(this.target,this.targetDelta)):pl(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=fi(),this.relativeTargetOrigin=fi(),fE(this.relativeTargetOrigin,this.target,h.target),pl(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||K_(this.parent.latestValues)||B8(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 m;const g=this.getLead(),y=!!this.resumingFrom||this!==g;let f=!0;if((this.isProjectionDirty||(m=this.parent)!=null&&m.isProjectionDirty)&&(f=!1),y&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===yr.timestamp&&(f=!1),f)return;const{layout:b,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(b||c))return;pl(this.layoutCorrected,this.layout.layoutBox);const u=this.treeScale.x,d=this.treeScale.y;UK(this.layoutCorrected,this.treeScale,this.path,y),g.layout&&!g.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(g.target=g.layout.layoutBox,g.targetWithTransforms=fi());const{target:h}=g;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(z4(this.prevProjectionDelta.x,this.projectionDelta.x),z4(this.prevProjectionDelta.y,this.projectionDelta.y)),dE(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==u||this.treeScale.y!==d||!Y4(this.projectionDelta.x,this.prevProjectionDelta.x)||!Y4(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(g=!0){var y;if((y=this.options.visualElement)==null||y.scheduleRender(),g){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ub(),this.projectionDelta=Ub(),this.projectionDeltaWithTransform=Ub()}setAnimationOrigin(g,y=!1){const f=this.snapshot,b=f?f.latestValues:{},c={...this.latestValues},u=Ub();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!y;const d=fi(),h=f?f.source:void 0,m=this.layout?this.layout.source:void 0,S=h!==m,T=this.getStack(),A=!T||T.members.length<=1,N=!!(S&&!A&&this.options.crossfade===!0&&!this.path.some(gJ));this.animationProgress=0;let O;this.mixTargetDelta=D=>{const R=D/1e3;Z4(u.x,g.x,R),Z4(u.y,g.y,R),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(fE(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),pJ(this.relativeTarget,this.relativeTargetOrigin,d,R),O&&eJ(this.relativeTarget,O)&&(this.isProjectionDirty=!1),O||(O=fi()),pl(O,this.relativeTarget)),S&&(this.animationValues=c,YZ(c,b,this.latestValues,R,N,A)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=R},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(g){var y,f,b;this.notifyListeners("animationStart"),(y=this.currentAnimation)==null||y.stop(),(b=(f=this.resumingFrom)==null?void 0:f.currentAnimation)==null||b.stop(),this.pendingAnimation&&(hh(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=jo.update(()=>{MS.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Qb(0)),this.currentAnimation=PZ(this.motionValue,[0,1e3],{...g,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),g.onUpdate&&g.onUpdate(c)},onStop:()=>{},onComplete:()=>{g.onComplete&&g.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 g=this.getStack();g&&g.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(oJ),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const g=this.getLead();let{targetWithTransforms:y,target:f,layout:b,latestValues:c}=g;if(!(!y||!f||!b)){if(this!==g&&this.layout&&b&&dH(this.options.animationType,this.layout.layoutBox,b.layoutBox)){f=this.target||fi();const u=fa(this.layout.layoutBox.x);f.x.min=g.target.x.min,f.x.max=f.x.min+u;const d=fa(this.layout.layoutBox.y);f.y.min=g.target.y.min,f.y.max=f.y.min+d}pl(y,f),$b(y,c),dE(this.projectionDeltaWithTransform,this.layoutCorrected,y,c)}}registerSharedNode(g,y){this.sharedNodes.has(g)||this.sharedNodes.set(g,new tJ),this.sharedNodes.get(g).add(y);const b=y.options.initialPromotionConfig;y.promote({transition:b?b.transition:void 0,preserveFollowOpacity:b&&b.shouldPreserveFollowOpacity?b.shouldPreserveFollowOpacity(y):void 0})}isLead(){const g=this.getStack();return g?g.lead===this:!0}getLead(){var y;const{layoutId:g}=this.options;return g?((y=this.getStack())==null?void 0:y.lead)||this:this}getPrevLead(){var y;const{layoutId:g}=this.options;return g?(y=this.getStack())==null?void 0:y.prevLead:void 0}getStack(){const{layoutId:g}=this.options;if(g)return this.root.sharedNodes.get(g)}promote({needsReset:g,transition:y,preserveFollowOpacity:f}={}){const b=this.getStack();b&&b.promote(this,f),g&&(this.projectionDelta=void 0,this.needsReset=!0),y&&this.setOptions({transition:y})}relegate(){const g=this.getStack();return g?g.relegate(this):!1}resetSkewAndRotation(){const{visualElement:g}=this.options;if(!g)return;let y=!1;const{latestValues:f}=g;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(y=!0),!y)return;const b={};f.z&&u_("z",g,b,this.animationValues);for(let c=0;c<c_.length;c++)u_(`rotate${c_[c]}`,g,b,this.animationValues),u_(`skew${c_[c]}`,g,b,this.animationValues);g.render();for(const c in b)g.setStaticValue(c,b[c]),this.animationValues&&(this.animationValues[c]=b[c]);g.scheduleRender()}applyProjectionStyles(g,y){if(!this.instance||this.isSVG)return;if(!this.isVisible){g.visibility="hidden";return}const f=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,g.visibility="",g.opacity="",g.pointerEvents=DS(y==null?void 0:y.pointerEvents)||"",g.transform=f?f(this.latestValues,""):"none";return}const b=this.getLead();if(!this.projectionDelta||!this.layout||!b.target){this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=DS(y==null?void 0:y.pointerEvents)||""),this.hasProjected&&!np(this.latestValues)&&(g.transform=f?f({},""):"none",this.hasProjected=!1);return}g.visibility="";const c=b.animationValues||b.latestValues;this.applyTransformsToTarget();let u=nJ(this.projectionDeltaWithTransform,this.treeScale,c);f&&(u=f(c,u)),g.transform=u;const{x:d,y:h}=this.projectionDelta;g.transformOrigin=`${d.origin*100}% ${h.origin*100}% 0`,b.animationValues?g.opacity=b===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:g.opacity=b===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const m in LE){if(c[m]===void 0)continue;const{correct:S,applyTo:T,isCSSVariable:A}=LE[m],N=u==="none"?c[m]:S(c[m],b);if(T){const O=T.length;for(let D=0;D<O;D++)g[T[D]]=N}else A?this.options.visualElement.renderState.vars[m]=N:g[m]=N}this.options.layoutId&&(g.pointerEvents=b===this?DS(y==null?void 0:y.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(g=>{var y;return(y=g.currentAnimation)==null?void 0:y.stop()}),this.root.nodes.forEach(X4),this.root.sharedNodes.clear()}}}function rJ(t){t.updateLayout()}function aJ(t){var i;const e=((i=t.resumeFrom)==null?void 0:i.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:a,measuredBox:E}=t.layout,{animationType:p}=t.options,g=e.source!==t.layout.source;p==="size"?gl(u=>{const d=g?e.measuredBox[u]:e.layoutBox[u],h=fa(d);d.min=a[u].min,d.max=d.min+h}):dH(p,e.layoutBox,a)&&gl(u=>{const d=g?e.measuredBox[u]:e.layoutBox[u],h=fa(a[u]);d.max=d.min+h,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[u].max=t.relativeTarget[u].min+h)});const y=Ub();dE(y,a,e.layoutBox);const f=Ub();g?dE(f,t.applyTransform(E,!0),e.measuredBox):dE(f,a,e.layoutBox);const b=!sH(y);let c=!1;if(!t.resumeFrom){const u=t.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:d,layout:h}=u;if(d&&h){const m=fi();fE(m,e.layoutBox,d.layoutBox);const S=fi();fE(S,a,h.layoutBox),lH(m,S)||(c=!0),u.options.layoutRoot&&(t.relativeTarget=S,t.relativeTargetOrigin=m,t.relativeParent=u)}}}t.notifyListeners("didUpdate",{layout:a,snapshot:e,delta:f,layoutDelta:y,hasLayoutChanged:b,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:a}=t.options;a&&a()}t.options.transition=void 0}function sJ(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function lJ(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function cJ(t){t.clearSnapshot()}function X4(t){t.clearMeasurements()}function q4(t){t.isLayoutDirty=!1}function uJ(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function K4(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function dJ(t){t.resolveTargetDelta()}function fJ(t){t.calcProjection()}function hJ(t){t.resetSkewAndRotation()}function mJ(t){t.removeLeadSnapshot()}function Z4(t,e,i){t.translate=qo(e.translate,0,i),t.scale=qo(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function J4(t,e,i,a){t.min=qo(e.min,i.min,a),t.max=qo(e.max,i.max,a)}function pJ(t,e,i,a){J4(t.x,e.x,i.x,a),J4(t.y,e.y,i.y,a)}function gJ(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const bJ={duration:.45,ease:[.4,0,.1,1]},e5=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),t5=e5("applewebkit/")&&!e5("chrome/")?Math.round:El;function n5(t){t.min=t5(t.min),t.max=t5(t.max)}function vJ(t){n5(t.x),n5(t.y)}function dH(t,e,i){return t==="position"||t==="preserve-aspect"&&!AZ(W4(e),W4(i),.2)}function yJ(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const EJ=uH({attachResizeListener:(t,e)=>OE(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),d_={current:void 0},fH=uH({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!d_.current){const t=new EJ({});t.mount(window),t.setOptions({layoutScroll:!0}),d_.current=t}return d_.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),wJ={pan:{Feature:jZ},drag:{Feature:HZ,ProjectionNode:fH,MeasureLayout:iH}};function o5(t,e,i){const{props:a}=t;t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",i==="Start");const E="onHover"+i,p=a[E];p&&jo.postRender(()=>p(e,qE(e)))}class SJ extends bh{mount(){const{current:e}=this.node;e&&(this.unmount=Yq(e,(i,a)=>(o5(this.node,a,"Start"),E=>o5(this.node,E,"End"))))}unmount(){}}class TJ extends bh{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!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=WE(OE(this.node.current,"focus",()=>this.onFocus()),OE(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function i5(t,e,i){const{props:a}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&a.whileTap&&t.animationState.setActive("whileTap",i==="Start");const E="onTap"+(i==="End"?"":i),p=a[E];p&&jo.postRender(()=>p(e,qE(e)))}class AJ extends bh{mount(){const{current:e}=this.node;e&&(this.unmount=Zq(e,(i,a)=>(i5(this.node,a,"Start"),(E,{success:p})=>i5(this.node,E,p?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const iC=new WeakMap,f_=new WeakMap,xJ=t=>{const e=iC.get(t.target);e&&e(t)},_J=t=>{t.forEach(xJ)};function CJ({root:t,...e}){const i=t||document;f_.has(i)||f_.set(i,{});const a=f_.get(i),E=JSON.stringify(e);return a[E]||(a[E]=new IntersectionObserver(_J,{root:t,...e})),a[E]}function NJ(t,e,i){const a=CJ(e);return iC.set(t,i),a.observe(t),()=>{iC.delete(t),a.unobserve(t)}}const RJ={some:0,all:1};class LJ extends bh{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:i,margin:a,amount:E="some",once:p}=e,g={root:i?i.current:void 0,rootMargin:a,threshold:typeof E=="number"?E:RJ[E]},y=f=>{const{isIntersecting:b}=f;if(this.isInView===b||(this.isInView=b,p&&!b&&this.hasEnteredView))return;b&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",b);const{onViewportEnter:c,onViewportLeave:u}=this.node.getProps(),d=b?c:u;d&&d(f)};return NJ(this.node.current,g,y)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:i}=this.node;["amount","margin","root"].some(OJ(e,i))&&this.startObserver()}unmount(){}}function OJ({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}const DJ={inView:{Feature:LJ},tap:{Feature:AJ},focus:{Feature:TJ},hover:{Feature:SJ}},MJ={layout:{ProjectionNode:fH,MeasureLayout:iH}},kJ={...vZ,...DJ,...wJ,...MJ},hH=kK(kJ,WK),mH=({onEditTransformation:t,onDeleteTransformation:e})=>H.jsxs(Zb,{children:[H.jsx(Er.Item,{children:({active:i})=>H.jsxs("button",{onClick:t,className:"boomi-menu-item","data-headlessui-state":i?"active":void 0,children:[H.jsx(S5,{className:"boomi-menu-icon"}),"Edit Transformation"]})}),H.jsx(Er.Item,{children:({active:i})=>H.jsxs("button",{onClick:e,className:"boomi-menu-item","data-headlessui-state":i?"active":void 0,children:[H.jsx(lh,{className:"boomi-menu-icon"}),"Delete Transformation"]})})]}),IJ=140,h_=0,$J=Y.forwardRef(({sourceFields:t,targetFields:e,functions:i,mappings:a=[],onMappingChange:E,onTransformationUpdate:p,onEditTransformation:g,onDeleteTransformation:y,onAddTransformation:f},b)=>{const[c,u]=Y.useState(null),d=Y.useRef(null),h=Y.useRef(new Map),m=Y.useRef(new Map),S=Y.useRef(new Map),T=Y.useRef(new Map),A=Y.useRef({}),[N,O]=Y.useState(!1),[D,R]=Y.useState(!1),[C,$]=Y.useState(null),[F,U]=Y.useState(null),[j,X]=Y.useState(null),[P,B]=Y.useState(null),[k,M]=Y.useState(null),I=Y.useRef(null),W=()=>{u(null),X(null),B(null),M(null)},Q=(de,Ve)=>{de&&(A.current[Ve]=de)},J=(de,Ve)=>De=>{De&&de.set(Ve,De)},K=(de,Ve,De,qe)=>{if(a.find(mt=>mt.fromXPath===de&&mt.toXPath===Ve&&mt.toFunction===De&&mt.fromFunction===qe))return;const et=[...a,{fromXPath:de,toXPath:Ve,toFunction:De,fromFunction:qe}];E==null||E(et)},Z=(de,Ve)=>{const De=a.filter(qe=>!(qe.fromXPath===de&&qe.toXPath===Ve));E==null||E(De)},re=de=>{const Ve=a.filter(De=>De.fromXPath!==de);E==null||E(Ve)},te=de=>{U(de),R(!0)},ae=()=>{C&&(re(C),$(null)),O(!1)},se=()=>{F&&(y==null||y(F),U(null)),R(!1)},ie=()=>{U(null),$(null),O(!1)},ue=de=>{$(de),O(!0)},me=()=>{const de=d.current;if(!de)return;for(;de.firstChild;)de.removeChild(de.firstChild);let Ve=!1;a.forEach(De=>{const qe=De.fromXPath,et=De.toXPath;if(!qe)return;const mt=De.fromFunction?`${De.fromFunction}.out.${Ts(qe)}`:Ts(qe),xt=De.toFunction?`${De.toFunction}.in.${Ts(et)}`:Ts(et),$t=De.fromFunction?T.current.get(mt):h.current.get(mt),ze=De.toFunction?S.current.get(xt):m.current.get(xt);if(!$t||!ze)return;const tt=$t.getBoundingClientRect(),ct=ze.getBoundingClientRect(),gt=de.getBoundingClientRect(),at={x:tt.left+tt.width/2-gt.left,y:tt.top+tt.height/2-gt.top},Re={x:ct.left+ct.width/2-gt.left,y:ct.top+ct.height/2-gt.top},je=Re.x-at.x,it=Re.y-at.y,rt=je/1.5,St=Math.min(12,Math.abs(it)/2),Nt=it>0?1:-1,an={x:at.x+rt,y:at.y-Nt*St},Lt={x:Re.x-rt,y:Re.y-Nt*St},_t=`M ${at.x} ${at.y} C ${an.x} ${an.y} ${Lt.x} ${Lt.y} ${Re.x} ${Re.y}`,Et=c&&De.fromXPath===c||j&&De.toXPath===j||P&&(De.fromFunction===P||De.toFunction===P),xe=document.createElementNS("http://www.w3.org/2000/svg","path");xe.setAttribute("d",_t),xe.setAttribute("fill","none"),xe.setAttribute("stroke-linejoin","round"),xe.setAttribute("stroke-linecap","round"),Et&&(xe.classList.add("is-highlighted"),Ve=!0),de.appendChild(xe)}),Ve?de.classList.add("has-selection"):de.classList.remove("has-selection")},ve=de=>{const Ve=a.some(De=>De.toXPath===de);if((c||k)&&Ve){X(de),u(null),B(null),M(null);return}if(c){K(c,de,void 0,void 0),u(null),M(null),B(null),X(de);return}if(k){K(k.outputKey.toString(),de,void 0,k.fnId),M(null),u(null),B(null),X(de);return}X(de),u(null),B(null)},[pe,ye]=Y.useState({});return Y.useEffect(()=>{const de={};let Ve=0;i.forEach(De=>{const qe=typeof De.y=="number"?De.y:sC(De.id)??Ve;de[De.id]={x:De.x??h_,y:qe},typeof De.y!="number"&&(Ve+=IJ)}),ye(de)},[i]),Y.useLayoutEffect(()=>{const de=()=>{requestAnimationFrame(()=>{me()})};return de(),window.addEventListener("resize",de),()=>{window.removeEventListener("resize",de)}},[a,i,t,e,pe,c,j,P]),H.jsxs(H.Fragment,{children:[N&&H.jsx(gp,{type:"warning",title:"Are you sure?",description:"Disconnecting these mappings cannot be undone.",showCancel:!0,confirmButtonText:"Yes, Disconnect All!",cancelButtonText:"No, cancel",onConfirm:ae,onCancel:ie}),D&&H.jsx(gp,{type:"warning",title:"Are you sure?",description:"Deleting this transformation cannot be undone and will remove all mappings associated with it.",showCancel:!0,confirmButtonText:"Yes, Delete!",cancelButtonText:"No, cancel",onConfirm:se,onCancel:ie}),H.jsxs("div",{className:"boomi-map-canvas",onClick:de=>{const Ve=de.target;!Ve.closest(".boomi-map-card")&&!Ve.closest(".boomi-map-pin")&&W()},children:[H.jsx("svg",{ref:d,className:"boomi-map-svg"}),H.jsxs("div",{className:"boomi-map-col boomi-map-col--sources",children:[H.jsx("h3",{className:"boomi-map-heading",children:"Sources"}),t.map((de,Ve)=>{const De=`${de.xpath}::${Ve}`,qe=a.some(et=>et.fromXPath===de.xpath);return H.jsxs("div",{className:`boomi-map-card boomi-map-card--source ${c===de.xpath?"is-selected":""} ${qe?"is-mapped":""} cursor-pointer`,onClick:()=>{u(de.xpath),X(null),B(null),M(null)},children:[H.jsx("div",{className:"boomi-map-card-title text-xs font-medium truncate",children:de.name}),H.jsx("div",{className:"text-[10px] font-thin text-gray-500 break-words whitespace-normal",children:de.xpath}),H.jsx("div",{ref:J(h.current,Ts(de.xpath)),className:`boomi-map-pin --source is-selectable ${c===de.xpath?"is-mappable":""}`,onClick:et=>{et.stopPropagation(),a.some(mt=>mt.fromXPath===de.xpath)&&ue(de.xpath)},children:a.some(et=>et.fromXPath===de.xpath)&&H.jsx("span",{className:"boomi-map-pin-badge",children:"×"})})]},De)})]}),H.jsxs("div",{className:"boomi-map-col boomi-map-col--functions",children:[H.jsxs("div",{className:"flex justify-between items-center mb-2",children:[H.jsx("h3",{className:"boomi-map-heading w-full text-center",children:"Transformations"}),H.jsx("div",{className:"flex-1 text-right",children:H.jsx(Bn,{toggle:!1,primary:!1,viewLoc:"field-mapping-add-transformation",buttonClass:"ml-2",onClass:"boomi-map-add-btn",showIcon:!0,label:"Add",icon:H.jsx(DE,{className:"w-4 h-4"}),onClick:()=>{const de={id:`temp-${Date.now()}`,name:"New Function",type:"custom",inputs:[],outputs:[]};f==null||f(de)}})})]}),H.jsx("div",{ref:I,className:"relative w-full max-w-md h-full",style:{minHeight:500,paddingTop:15,paddingBottom:15},children:i.map(de=>{const Ve=pe[de.id]||{x:h_,y:15};return H.jsxs(hH.div,{ref:De=>Q(De,de.id),drag:"y",dragMomentum:!1,dragElastic:0,dragSnapToOrigin:!1,dragConstraints:I,className:`boomi-map-card boomi-map-card--function absolute w-full ${P===de.id?"is-selected":""}`,style:{left:Ve.x,y:Math.max(15,Ve.y),cursor:"grab"},onDrag:(De,qe)=>{ye(et=>({...et,[de.id]:{...et[de.id],y:qe.delta.y}}))},onDragEnd:()=>{var et;const De=mE(de.id),qe=A.current[de.id];if(qe){const mt=((et=qe.parentElement)==null?void 0:et.getBoundingClientRect().top)??0,xt=qe.getBoundingClientRect().top,$t=Math.round(xt-mt),ze=Math.max(15,$t),tt=cT(De,ze),ct=i.map(gt=>gt.id===de.id&&gt.id!==tt?{...gt,newId:tt,x:gt.x??h_,y:ze}:gt);p==null||p(ct),requestAnimationFrame(()=>me())}},onClick:()=>{B(de.id),u(null),X(null)},children:[H.jsxs("div",{className:"flex justify-between items-center py-1",children:[H.jsx("div",{className:"boomi-map-card-title",children:"Transformation"}),H.jsx(mH,{onEditTransformation:()=>g==null?void 0:g(de),onDeleteTransformation:()=>te(de)})]}),H.jsx("div",{className:"boomi-map-card-subtitle text-xs",children:de.type}),H.jsxs("div",{className:"flex justify-between mt-4",children:[H.jsx("div",{className:"flex flex-col gap-1",children:de.inputs.map(De=>{const qe=`${de.id}.in.${De.key}`,et=a.some(xt=>xt.toFunction===de.id&&xt.toXPath===`${De.key}`),mt=a.find(xt=>xt.toFunction===de.id&&xt.toXPath===`${De.key}`);return H.jsxs("div",{className:"relative z-50",children:[H.jsx("div",{className:"text-xs pl-2 pb-2",children:De.name}),H.jsx("div",{ref:J(S.current,qe),className:`boomi-map-pin --input is-selectable ${c&&!et?"is-mappable":""}`,onClick:xt=>{xt.stopPropagation(),c&&!et&&(K(c,De.key.toString(),de.id),u(null))},children:et&&mt&&H.jsx("div",{className:"boomi-map-pin-badge",onClick:xt=>{xt.stopPropagation(),Z(mt.fromXPath??"",mt.toXPath??"")},children:"×"})})]},De.key)})}),H.jsx("div",{className:"flex flex-col gap-1 items-end",children:de.outputs.map(De=>{const qe=`${de.id}.out.${De.key}`,et=(k==null?void 0:k.fnId)===de.id&&k.outputKey===De.key;return H.jsxs("div",{className:"relative",children:[H.jsx("div",{className:"text-xs pr-2 pb-2",children:De.name}),H.jsx("div",{ref:J(T.current,qe),className:`boomi-map-pin --output is-selectable ${et?"is-active-output":""}`,onClick:mt=>{mt.stopPropagation(),M({fnId:de.id,outputKey:De.key}),B(de.id),u(null),X(null)}})]},De.key)})})]})]},de.id)})})]}),H.jsxs("div",{className:"boomi-map-col boomi-map-col--targets",children:[H.jsx("h3",{className:"boomi-map-heading",children:"Targets"}),e.map((de,Ve)=>{const De=`${de.xpath}::${Ve}`,qe=a.some(mt=>mt.toXPath===de.xpath),et=(!!c||!!k)&&!qe;return H.jsxs("div",{className:`boomi-map-card boomi-map-card--target ${j===de.xpath?"is-selected":""} ${qe?"is-mapped":""} cursor-pointer`,onClick:()=>ve(de.xpath),children:[H.jsx("div",{className:"flex justify-start items-center",children:H.jsx("div",{className:"flex-0",children:H.jsx("span",{className:"text-xs truncate pl-2",children:de.name})})}),H.jsx("div",{className:"flex justify-start items-center",children:H.jsx("div",{className:"flex-0",children:H.jsx("div",{className:"text-[10px] font-thin text-gray-500 break-words whitespace-normal",children:de.xpath})})}),H.jsx("div",{ref:J(m.current,Ts(de.xpath)),className:`boomi-map-pin --target is-selectable ${et?"is-mappable":""}`,onClick:mt=>{mt.stopPropagation(),ve(de.xpath)},children:qe&&H.jsx("span",{className:"boomi-map-pin-badge",onClick:mt=>{mt.stopPropagation();const xt=a.find($t=>$t.toXPath===de.xpath);xt&&Z(xt.fromXPath??"",xt.toXPath??"")},children:"×"})})]},De)})]})]})]})}),UJ=140,m_=0,ua=t=>(t||"").replace(/^\/+|\/+$/g,""),pH=t=>(t||"").replace(/^\/+|\/+$/g,"").split("/").filter(Boolean);function HJ(t){const e=pH(t),i=[];for(let a=1;a<=e.length;a++)i.push(e.slice(0,a).join("/"));return i}function r5(t){const e=new Map,i=(p,g,y,f)=>{let b=p.get(y);return b||(b={key:y,fullPath:f,name:y,children:[],isLeaf:!1,__childMap:new Map},p.set(y,b),g&&!g.children.includes(b)&&g.children.push(b)),b};for(const p of t){const g=pH(p.xpath||p.name||"");if(!g.length)continue;let y=e,f=null,b="";for(const c of g){b=b?`${b}/${c}`:c;const u=i(y,f,c,b);f=u,y=u.__childMap}f&&(f.node=p)}const a=Array.from(e.values()),E=p=>{p.isLeaf=p.children.length===0,p.children.forEach(g=>E(g))};return a.forEach(E),a}function a5(t){const e=new Map,i=a=>{e.set(a.fullPath,a),a.children.forEach(i)};return t.forEach(i),e}function s5(t,e){let i=ua(t);for(;i;){const a=Ts(i);if(e.has(a))return i;const E=i.lastIndexOf("/");if(E<0)break;i=i.slice(0,E)}return null}const Ss=(t,e)=>!!t&&!!e&&(ua(t)===ua(e)||ua(t).startsWith(ua(e)+"/")),qi=(t,e)=>ua(t)===ua(e),jJ=Y.forwardRef(({sourceFields:t,targetFields:e,functions:i,mappings:a=[],onMappingChange:E,onTransformationUpdate:p,onEditTransformation:g,onDeleteTransformation:y,onAddTransformation:f},b)=>{const[c,u]=Y.useState(null),[d,h]=Y.useState(null),[m,S]=Y.useState(null),[T,A]=Y.useState(null),N=Y.useRef(null),O=Y.useRef(new Map),D=Y.useRef(new Map),R=Y.useRef(new Map),C=Y.useRef(new Map),$=Y.useRef({}),F=Y.useRef(null),[U,j]=Y.useState(!1),[X,P]=Y.useState(!1),[B,k]=Y.useState(null),[M,I]=Y.useState(null),[W,Q]=Y.useState(new Set),[J,K]=Y.useState(new Set),[Z,re]=Y.useState({}),te=Y.useMemo(()=>r5(t),[t]),ae=Y.useMemo(()=>r5(e),[e]),se=Y.useMemo(()=>a5(te),[te]),ie=Y.useMemo(()=>a5(ae),[ae]),ue=Ce=>Ce==="source"?se:ie,me=Ce=>Ce==="source"?W:J,ve=(Ce,Ze)=>{Ce==="source"?Q(Ze):K(Ze)},pe=(Ce,Ze)=>{const ft=new Set(me(Ce));HJ(ua(Ze)).forEach(Tt=>ft.delete(Tt)),ve(Ce,ft)},ye=Ce=>{const Ze=new Set;ue(Ce).forEach(ft=>{ft.isLeaf||Ze.add(ft.fullPath)}),ve(Ce,Ze)},de=Ce=>ve(Ce,new Set),[Ve,De]=Y.useState(""),[qe,et]=Y.useState(""),[mt,xt]=Y.useState([]),[$t,ze]=Y.useState([]),[tt,ct]=Y.useState(0),[gt,at]=Y.useState(0),Re=Y.useMemo(()=>new Set(mt),[mt]),je=Y.useMemo(()=>new Set($t),[$t]),it=()=>{u(null),h(null),S(null),A(null)},rt=(Ce,Ze)=>{Ce&&($.current[Ze]=Ce)},vt=(Ce,Ze)=>ft=>{ft?Ce.set(Ze,ft):Ce.delete(Ze)},St=(Ce,Ze,ft,Tt)=>{a.find(Mt=>Mt.fromXPath===Ce&&Mt.toXPath===Ze&&Mt.toFunction===ft&&Mt.fromFunction===Tt)||E==null||E([...a,{fromXPath:Ce,toXPath:Ze,toFunction:ft,fromFunction:Tt}])},Nt=(Ce,Ze)=>{E==null||E(a.filter(ft=>!(ft.fromXPath===Ce&&ft.toXPath===Ze)))},an=(Ce,Ze)=>{E==null||E(a.filter(ft=>!(ft.fromFunction===Ce&&ft.fromXPath===String(Ze))))},Lt=Ce=>{E==null||E(a.filter(Ze=>Ze.fromXPath!==Ce))},_t=Ce=>{I(Ce),P(!0)},Et=()=>{B&&(Lt(B),k(null)),j(!1)},xe=()=>{M&&(y==null||y(M),I(null)),P(!1)},Ge=()=>{I(null),k(null),j(!1)},bt=Ce=>{const Ze=a.some(ft=>ft.toXPath===Ce);if((c||T)&&Ze){h(Ce),u(null),S(null),A(null);return}if(c){St(c,Ce,void 0,void 0),u(null),A(null),S(null),h(Ce);return}if(T){St(String(T.outputKey),Ce,void 0,T.fnId),A(null),u(null),S(null),h(Ce);return}h(Ce),u(null),S(null)};Y.useEffect(()=>{const Ce={};let Ze=0;i.forEach(ft=>{const Tt=typeof ft.y=="number"?ft.y:sC(ft.id)??Ze;Ce[ft.id]={x:ft.x??m_,y:Tt},typeof ft.y!="number"&&(Ze+=UJ)}),re(Ce)},[i]);const Dt=(Ce,Ze)=>{const ft=ua(Ze).toLowerCase();if(Ce==="source"?De(Ze):et(Ze),!ft){Ce==="source"?(xt([]),ct(0)):(ze([]),at(0));return}const Tt=ue(Ce),Mt=[];Tt.forEach(Gt=>{var Yt;const sn=ua(Gt.fullPath).toLowerCase(),Rn=Gt.isLeaf?ua((Yt=Gt.node)==null?void 0:Yt.xpath).toLowerCase():null;sn.includes(ft)?Mt.push(ua(Gt.fullPath)):Rn&&Rn.includes(ft)&&Mt.push(ua(Gt.node.xpath))});const en=Array.from(new Set(Mt));if(Ce==="source"?(xt(en),ct(0)):(ze(en),at(0)),en.length>0){const Gt=en[0];pe(Ce,Gt),requestAnimationFrame(()=>ut(Ce,Gt))}},ut=(Ce,Ze)=>{const Tt=(Ce==="source"?O:D).current.get(Ts(Ze));Tt&&Tt.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},yt=(Ce,Ze)=>{const ft=Ce==="source"?mt:$t;if(!ft.length)return;const Mt=((Ce==="source"?tt:gt)+Ze+ft.length)%ft.length;Ce==="source"?ct(Mt):at(Mt);const en=ft[Mt];pe(Ce,en),requestAnimationFrame(()=>ut(Ce,en))},Ht=({side:Ce,nodes:Ze,collapsed:ft,setCollapsed:Tt,onLeafClick:Mt,refMap:en})=>{const Gt=Je=>{Tt(Fn=>{const Rt=new Set(Fn);return Rt.has(Je)?Rt.delete(Je):Rt.add(Je),Rt})},sn=Ce==="source"?Re:je,Rn=Ce==="source"?mt[tt]:$t[gt],Yt=Je=>{var ki,wr;const Fn=ft.has(Je.fullPath),Rt=(ki=Je.node)==null?void 0:ki.xpath,ni=Je.isLeaf?Ce==="source"?a.some(nt=>qi(nt.fromXPath,Rt)):a.some(nt=>qi(nt.toXPath,Rt)):!1,vo=c&&(Ce==="source"?qi(Rt,c)||Ss(c,Rt)||Ss(Rt,c):a.some(nt=>(qi(nt.fromXPath,c)||Ss(nt.fromXPath,c))&&(Je.isLeaf?qi(nt.toXPath,Rt):Ss(nt.toXPath,Je.fullPath))))||d&&(Ce==="target"?qi(Rt,d)||Ss(d,Rt)||Ss(Rt,d):a.some(nt=>(qi(nt.toXPath,d)||Ss(nt.toXPath,d))&&(Je.isLeaf?qi(nt.fromXPath,Rt):Ss(nt.fromXPath,Je.fullPath))))||m&&a.some(nt=>nt.fromFunction===m&&Ce==="source"&&(Je.isLeaf?qi(nt.fromXPath,Rt):Ss(nt.fromXPath,Je.fullPath))||nt.toFunction===m&&Ce==="target"&&(Je.isLeaf?qi(nt.toXPath,Rt):Ss(nt.toXPath,Je.fullPath))),Xt=Ce==="target"&&Je.isLeaf&&(!!c||!!T)&&!a.some(nt=>qi(nt.toXPath,Rt)),Pn=Je.isLeaf?ua(Rt):ua(Je.fullPath),zo=sn.has(Pn),mo=Rn&&Pn===Rn;return H.jsxs("div",{className:"boomi-tree-node",style:{marginBottom:6},children:[H.jsx("div",{className:["boomi-map-card",Ce==="source"?"boomi-map-card--source":"boomi-map-card--target",Je.isLeaf&&(Ce==="source"?qi(c||"",Rt||"")?"is-selected":"":qi(d||"",Rt||"")?"is-selected":""),ni?"is-mapped":"",vo?"is-connected":"",zo?"is-search-hit":"",mo?"is-current-hit":"","cursor-pointer"].join(" "),onClick:nt=>{nt.stopPropagation(),Je.isLeaf&&Rt?Ce==="source"?(u(Rt),h(null),S(null),A(null)):Mt(Rt):(Gt(Je.fullPath),requestAnimationFrame(jt))},children:H.jsxs("div",{className:"flex items-center justify-between",children:[H.jsxs("div",{className:"flex items-center gap-1 flex-1 min-w-0",children:[!Je.isLeaf&&H.jsx("button",{className:"boomi-tree-toggle inline-flex items-center justify-center w-4 h-4 p-0 leading-none shrink-0",onClick:nt=>{nt.stopPropagation(),Gt(Je.fullPath),requestAnimationFrame(jt)},"aria-expanded":!Fn,"aria-label":Fn?"Expand":"Collapse",title:Fn?"Expand":"Collapse",children:Fn?H.jsx(R7,{size:12}):H.jsx(rC,{size:12})}),H.jsx("div",{className:"boomi-map-card-title text-xs font-medium leading-snug whitespace-normal break-words",style:{overflowWrap:"anywhere"},children:Je.isLeaf?((wr=Je.node)==null?void 0:wr.name)??Je.name:Je.name})]}),H.jsxs("div",{ref:vt(en.current,Ts(Pn)),className:["boomi-map-pin",Ce==="source"?"--source":"--target","is-selectable",Xt?"is-mappable":""].join(" "),onClick:nt=>{if(nt.stopPropagation(),!(!Je.isLeaf||!Rt)){if(Ce==="target"){Mt(Rt);return}a.some(Ee=>qi(Ee.fromXPath,Rt))?(k(Rt),j(!0)):(u(Rt),h(null),S(null),A(null))}},children:[Je.isLeaf&&ni&&Ce==="source"&&H.jsx("span",{className:"boomi-map-pin-badge",onClick:nt=>{nt.stopPropagation(),k(Rt),j(!0)},title:"Disconnect",children:"×"}),Je.isLeaf&&ni&&Ce==="target"&&H.jsx("span",{className:"boomi-map-pin-badge",onClick:nt=>{nt.stopPropagation();const Ee=a.find(Ke=>qi(Ke.toXPath,Rt));Ee&&Nt(Ee.fromXPath??"",Ee.toXPath??"")},title:"Disconnect",children:"×"})]})]})}),!Je.isLeaf&&!Fn&&Je.children.length>0&&H.jsx("div",{className:"py-2 boomi-tree-children pl-3 border-l border-dashed border-gray-300",children:Je.children.map(Yt)})]},Je.fullPath)};return H.jsx("div",{className:"boomi-tree",style:{display:"flex",flexDirection:"column",gap:1},children:Ze.map(Yt)})},jt=()=>{const Ce=N.current;if(!Ce)return;for(;Ce.firstChild;)Ce.removeChild(Ce.firstChild);let Ze=!1;a.forEach(ft=>{const Tt=ft.fromXPath,Mt=ft.toXPath;if(!Tt)return;const en=ft.fromFunction?C.current.get(`${ft.fromFunction}.out.${Ts(String(Tt))}`)??null:(()=>{const on=s5(String(Tt),O.current);return on?O.current.get(Ts(on))??null:null})(),Gt=ft.toFunction?R.current.get(`${ft.toFunction}.in.${Ts(String(Mt))}`)??null:(()=>{const on=s5(String(Mt),D.current);return on?D.current.get(Ts(on))??null:null})();if(!en||!Gt)return;const sn=en.getBoundingClientRect(),Rn=Gt.getBoundingClientRect(),Yt=Ce.getBoundingClientRect(),Je={x:sn.left+sn.width/2-Yt.left,y:sn.top+sn.height/2-Yt.top},Fn={x:Rn.left+Rn.width/2-Yt.left,y:Rn.top+Rn.height/2-Yt.top},Rt=Fn.x-Je.x,ni=Fn.y-Je.y,vo=Rt/1.5,Pn=Math.min(12,Math.abs(ni)/2),zo=ni>0?1:-1,mo={x:Je.x+vo,y:Je.y-zo*Pn},ki={x:Fn.x-vo,y:Fn.y-zo*Pn},wr=`M ${Je.x} ${Je.y} C ${mo.x} ${mo.y} ${ki.x} ${ki.y} ${Fn.x} ${Fn.y}`,nt=c&&(qi(ft.fromXPath,c)||Ss(ft.fromXPath,c))||m&&ft.fromFunction===m,Ee=d&&(qi(ft.toXPath,d)||Ss(ft.toXPath,d))||m&&ft.toFunction===m,Ke=!!(nt||Ee),st=document.createElementNS("http://www.w3.org/2000/svg","path");st.setAttribute("d",wr),st.setAttribute("fill","none"),st.setAttribute("stroke-linejoin","round"),st.setAttribute("stroke-linecap","round"),Ke&&(st.classList.add("is-highlighted"),c&&(qi(ft.fromXPath,c)||Ss(ft.fromXPath,c))&&st.classList.add("is-danger"),Ze=!0),Ce.appendChild(st)}),Ze?Ce.classList.add("has-selection"):Ce.classList.remove("has-selection")};return Y.useLayoutEffect(()=>{const Ce=()=>requestAnimationFrame(jt);return Ce(),window.addEventListener("resize",Ce),()=>window.removeEventListener("resize",Ce)},[a,i,t,e,Z,c,d,m,W,J]),H.jsxs(H.Fragment,{children:[U&&H.jsx(gp,{type:"warning",title:"Are you sure?",description:"Disconnecting these mappings cannot be undone.",showCancel:!0,confirmButtonText:"Yes, Disconnect All!",cancelButtonText:"No, cancel",onConfirm:Et,onCancel:Ge}),X&&H.jsx(gp,{type:"warning",title:"Are you sure?",description:"Deleting this transformation cannot be undone and will remove all mappings associated with it.",showCancel:!0,confirmButtonText:"Yes, Delete!",cancelButtonText:"No, cancel",onConfirm:xe,onCancel:Ge}),H.jsxs("div",{className:"boomi-map-canvas",onClick:Ce=>{const Ze=Ce.target;!Ze.closest(".boomi-map-card")&&!Ze.closest(".boomi-map-pin")&&it()},children:[H.jsx("svg",{ref:N,className:"boomi-map-svg"}),H.jsxs("div",{className:"boomi-map-col boomi-map-col--sources",children:[H.jsxs("div",{className:"flex items-center justify-between",children:[H.jsx("h3",{className:"boomi-map-heading",children:"Sources"}),H.jsxs("div",{className:"flex gap-2",children:[H.jsx(Bn,{toggle:!1,primary:!1,showIcon:!1,label:"Expand All",onClick:()=>{de("source"),requestAnimationFrame(jt)}}),H.jsx(Bn,{toggle:!1,primary:!1,showIcon:!1,label:"Collapse All",onClick:()=>{ye("source"),requestAnimationFrame(jt)}})]})]}),H.jsxs("div",{className:"mt-2 flex items-center gap-2",children:[H.jsx(xE,{searchCallback:Ce=>Dt("source",Ce)}),H.jsxs("div",{className:"flex items-center gap-1 text-xs",children:[H.jsx("button",{type:"button",className:"px-2 py-1 rounded border boomi-btn-xs",onClick:()=>yt("source",-1),disabled:mt.length===0,title:"Previous result",children:"Prev"}),H.jsx("span",{className:"min-w-[56px] text-center",children:mt.length?`${tt+1} / ${mt.length}`:"0 / 0"}),H.jsx("button",{type:"button",className:"px-2 py-1 rounded border boomi-btn-xs",onClick:()=>yt("source",1),disabled:mt.length===0,title:"Next result",children:"Next"})]})]}),H.jsx(Ht,{side:"source",nodes:te,collapsed:W,setCollapsed:Q,onLeafClick:Ce=>{u(Ce),h(null),S(null),A(null)},refMap:O})]}),H.jsxs("div",{className:"boomi-map-col boomi-map-col--functions",children:[H.jsxs("div",{className:"flex justify-between items-center mb-2",children:[H.jsx("h3",{className:"boomi-map-heading w-full text-center",children:"Transformations"}),H.jsx("div",{className:"flex-1 text-right",children:H.jsx(Bn,{toggle:!1,primary:!1,viewLoc:"field-mapping-add-transformation",buttonClass:"ml-2",onClass:"boomi-map-add-btn",showIcon:!0,label:"Add",icon:H.jsx(DE,{className:"w-4 h-4"}),onClick:()=>{const Ce={id:`temp-${Date.now()}`,name:"New Function",type:"custom",inputs:[],outputs:[]};f==null||f(Ce)}})})]}),H.jsx("div",{ref:F,className:"relative w-full max-w-md h-full",style:{minHeight:500,paddingTop:15,paddingBottom:15},children:i.map(Ce=>{Le.debug("Rendering function:",Ce);const Ze=Z[Ce.id]||{x:m_,y:15},ft=Tt=>a.filter(Mt=>Mt.fromFunction===Ce.id&&Mt.fromXPath===String(Tt));return H.jsxs(hH.div,{ref:Tt=>rt(Tt,Ce.id),drag:"y",dragMomentum:!1,dragElastic:0,dragSnapToOrigin:!1,dragConstraints:F,className:`boomi-map-card boomi-map-card--function absolute w-full ${m===Ce.id?"is-selected":""}`,style:{left:Ze.x,y:Math.max(15,Ze.y),cursor:"grab"},onDrag:(Tt,Mt)=>{re(en=>({...en,[Ce.id]:{...en[Ce.id],y:Mt.delta.y}}))},onDragEnd:()=>{var en;const Tt=mE(Ce.id),Mt=$.current[Ce.id];if(Mt){const Gt=((en=Mt.parentElement)==null?void 0:en.getBoundingClientRect().top)??0,sn=Mt.getBoundingClientRect().top,Rn=Math.round(sn-Gt),Yt=Math.max(15,Rn),Je=cT(Tt,Yt),Fn=i.map(Rt=>Rt.id===Ce.id&&Rt.id!==Je?{...Rt,newId:Je,x:Rt.x??m_,y:Yt}:Rt);p==null||p(Fn),requestAnimationFrame(jt)}},onClick:()=>{S(Ce.id),u(null),h(null)},children:[H.jsxs("div",{className:"flex justify-between items-center py-1",children:[H.jsx("div",{className:"boomi-map-card-title",children:"Transformation"}),H.jsx(mH,{onEditTransformation:()=>g==null?void 0:g(Ce),onDeleteTransformation:()=>_t(Ce)})]}),H.jsx("div",{className:"boomi-map-card-subtitle text-xs",children:Ce.type}),H.jsxs("div",{className:"flex justify-between mt-4",children:[H.jsx("div",{className:"flex flex-col gap-1",children:Ce.inputs.map(Tt=>{const Mt=`${Ce.id}.in.${Tt.key}`,en=a.some(sn=>sn.toFunction===Ce.id&&sn.toXPath===`${Tt.key}`),Gt=a.find(sn=>sn.toFunction===Ce.id&&sn.toXPath===`${Tt.key}`);return H.jsxs("div",{className:"relative z-50",children:[H.jsx("div",{className:"text-xs pl-2 pb-2",children:Tt.name}),H.jsx("div",{ref:vt(R.current,Mt),className:`boomi-map-pin --input is-selectable ${c&&!en?"is-mappable":""}`,onClick:sn=>{sn.stopPropagation(),c&&!en&&(St(c,Tt.key.toString(),Ce.id),u(null))},children:en&&Gt&&H.jsx("div",{className:"boomi-map-pin-badge",onClick:sn=>{sn.stopPropagation(),Nt(Gt.fromXPath??"",Gt.toXPath??"")},title:"Disconnect",children:"×"})})]},Tt.key)})}),H.jsx("div",{className:"flex flex-col gap-1 items-end",children:Ce.outputs.map(Tt=>{const Mt=`${Ce.id}.out.${Tt.key}`,en=(T==null?void 0:T.fnId)===Ce.id&&T.outputKey===Tt.key,Gt=ft(Tt.key);return H.jsxs("div",{className:"relative",children:[H.jsx("div",{className:"text-xs pr-2 pb-2",children:Tt.name}),H.jsx("div",{ref:vt(C.current,Mt),className:`boomi-map-pin --output is-selectable ${en?"is-active-output":""}`,onClick:sn=>{sn.stopPropagation(),A({fnId:Ce.id,outputKey:Tt.key}),S(Ce.id),u(null),h(null)},children:Gt.length>0&&H.jsxs("div",{className:"boomi-map-pin-badge",onClick:sn=>{sn.stopPropagation(),an(Ce.id,Tt.key)},title:Gt.length>1?`Disconnect ${Gt.length} targets`:"Disconnect",children:["×",Gt.length>1?` ${Gt.length}`:""]})})]},Tt.key)})})]})]},Ce.id)})})]}),H.jsxs("div",{className:"boomi-map-col boomi-map-col--targets",children:[H.jsxs("div",{className:"flex items-center justify-between",children:[H.jsx("h3",{className:"boomi-map-heading",children:"Targets"}),H.jsxs("div",{className:"flex gap-2",children:[H.jsx(Bn,{toggle:!1,primary:!1,showIcon:!1,label:"Expand All",onClick:()=>{de("target"),requestAnimationFrame(jt)}}),H.jsx(Bn,{toggle:!1,primary:!1,showIcon:!1,label:"Collapse All",onClick:()=>{ye("target"),requestAnimationFrame(jt)}})]})]}),H.jsxs("div",{className:"mt-2 flex items-center gap-2",children:[H.jsx(xE,{searchCallback:Ce=>Dt("target",Ce)}),H.jsxs("div",{className:"flex items-center gap-1 text-xs",children:[H.jsx("button",{type:"button",className:"px-2 py-1 rounded border boomi-btn-xs",onClick:()=>yt("target",-1),disabled:$t.length===0,title:"Previous result",children:"Prev"}),H.jsx("span",{className:"min-w-[56px] text-center",children:$t.length?`${gt+1} / ${$t.length}`:"0 / 0"}),H.jsx("button",{type:"button",className:"px-2 py-1 rounded border boomi-btn-xs",onClick:()=>yt("target",1),disabled:$t.length===0,title:"Next result",children:"Next"})]})]}),H.jsx(Ht,{side:"target",nodes:ae,collapsed:J,setCollapsed:K,onLeafClick:bt,refMap:D})]})]})]})}),gH=Y.forwardRef(({candidates:t,formName:e="editMapCandidateForm"},i)=>{const{boomiConfig:a}=Xn(),E=Y.useMemo(()=>{const N={};for(const O of t)N[O.connectionId]||(N[O.connectionId]={connectionId:O.connectionId,connectionName:O.connectionName||O.connectionId,params:[]}),N[O.connectionId].params.includes(O.paramName)||N[O.connectionId].params.push(O.paramName);return N},[t]),[p,g]=Y.useState({}),[y,f]=Y.useState({}),b=Y.useCallback(N=>!!Object.values(y[N]??{}).find(O=>!!O),[y]);Y.useEffect(()=>{const N={},O={};for(const[D,R]of Object.entries(E)){N[D]=N[D]??{},O[D]=O[D]??{};for(const C of R.params){const $=t.find(F=>F.connectionId===D&&F.paramName===C);N[D][C]=($==null?void 0:$.paramValue)??"",O[D][C]=""}}g(N),f(O)},[E,t]);const c=Y.useCallback(N=>{var D,R,C;const O=((C=(R=(D=a==null?void 0:a.form)==null?void 0:D.editMapCandidateForm)==null?void 0:R[N])==null?void 0:C.validation)??null;if(!O)return null;try{const $=String(O).match(/^\/(.+)\/([a-z]*)$/i);return $?new RegExp($[1],$[2]):new RegExp(String(O))}catch{return null}},[a]),u=Y.useCallback((N,O,D)=>{if(!D||!D.trim())return"Required";const R=c(O);return R&&!R.test(D)?"Invalid format":""},[c]),d=Y.useCallback(()=>{var D;const N={};let O=!1;for(const[R,C]of Object.entries(E)){N[R]=N[R]??{};for(const $ of C.params){const F=((D=p[R])==null?void 0:D[$])??"",U=u(R,$,F);N[R][$]=U,U&&(O=!0)}}return f(N),!O},[E,p,u]),h=Y.useMemo(()=>{var N;for(const[O,D]of Object.entries(E))for(const R of D.params){const C=((N=p[O])==null?void 0:N[R])??"";if(!C||!C.trim())return!1;const $=c(R);if($&&!$.test(C))return!1}return!0},[E,p,c]),m=Y.useCallback(N=>{f(O=>{const D={...O};for(const[R,C]of Object.entries(N||{})){D[R]??(D[R]={});for(const[$,F]of Object.entries(C||{}))D[R][$]=F||"Invalid value"}return D})},[]),S=Y.useCallback((N,O="Please supply valid credentials and try again.")=>{var R;const D={};for(const C of N||[]){if(!(C!=null&&C.connectionId)||!(C!=null&&C.paramName))continue;const $=C.uiMessage||C.message||O;D[R=C.connectionId]??(D[R]={}),D[C.connectionId][C.paramName]=$}m(D)},[m]);Y.useImperativeHandle(i,()=>({validateAndSubmit:()=>d()?{candidates:t.map(R=>{var C;return{...R,paramValue:((C=p[R.connectionId])==null?void 0:C[R.paramName])??""}})}:null,isFormReady:()=>h,applyErrors:m,applyErrorsFromCandidates:S}));const T=Y.useCallback((N,O,D)=>{g(R=>({...R,[N]:{...R[N]??{},[O]:D}})),f(R=>({...R,[N]:{...R[N]??{},[O]:""}}))},[]),A=Y.useCallback((N,O)=>{var C;const D=((C=p[N])==null?void 0:C[O])??"",R=u(N,O,D);R&&f($=>({...$,[N]:{...$[N]??{},[O]:R}}))},[p,u]);return H.jsx("div",{className:"space-y-6",children:Object.values(E).map(N=>(b(N.connectionId),H.jsx("div",{className:"boomi-connector-group",children:H.jsxs("div",{className:"boomi-connector-section",children:[H.jsx("h3",{className:"boomi-connector-heading",children:N.connectionName}),H.jsx("div",{className:"grid grid-cols-1 gap-4",children:N.params.map(O=>{var F,U;const D=((F=p[N.connectionId])==null?void 0:F[O])??"",R=((U=y[N.connectionId])==null?void 0:U[O])??"",C=`${e}-${N.connectionId}-${O}`,$=O;return H.jsx(mp,{formName:e,label:$,type:"password",required:!0,inputName:C,value:D,onChange:j=>T(N.connectionId,O,j.target.value),onBlur:()=>A(N.connectionId,O),error:R,placeholder:"Enter value",readOnly:!1},C)})})]})},N.connectionId)))})});gH.displayName="EditMapCandidateForm";const DN=({componentKey:t,active:e,wizard:i,integration:a,onBack:E,setIsLoading:p})=>{var $t,ze,tt,ct,gt,at,Re,je,it,rt,vt,St,Nt,an,Lt,_t,Et,xe,Ge,bt,Dt;const{boomiConfig:g,setPageIsLoading:y,renderComponent:f}=Xn(),{updateMapExtensions:b}=qY(),[c,u]=Y.useState(null),{maps:d,isLoading:h,hasCandidates:m,mapCandidates:S,fetchMapExtensions:T}=XY(),[A,N]=Y.useState(0),O=d[A],D=O==null?void 0:O.mapId,[R,C]=Y.useState({}),[$,F]=Y.useState({}),[U,j]=Y.useState(null),[X,P]=Y.useState(!1),B=Y.useRef(null),[k,M]=Y.useState(""),I=Y.useRef(null),[W,Q]=Y.useState(!1),{executeMapExtensions:J,updatedCandidates:K}=KY(),[Z,re]=Y.useState(!1),te=((tt=(ze=($t=O==null?void 0:O.Map)==null?void 0:$t.SourceProfile)==null?void 0:ze.Node)==null?void 0:tt.filter(ut=>ut.xpath))??[],ae=((at=(gt=(ct=O==null?void 0:O.Map)==null?void 0:ct.DestinationProfile)==null?void 0:gt.Node)==null?void 0:at.filter(ut=>ut.xpath))??[],se=((it=(je=(Re=g==null?void 0:g.components)==null?void 0:Re[t])==null?void 0:je.mapping)==null?void 0:it.useTreeMode)??!1,ie=async ut=>{p==null||p(!0),y==null||y(!0);try{return await ut()}finally{p==null||p(!1),y==null||y(!1)}},ue=ut=>{f==null||f({component:"Integrations",props:{componentKey:t||"integrationsMain"}})},me=()=>ue(),ve=()=>{y==null||y(!0),ue()},pe=async()=>ie(async()=>{var yt,Ht,jt;const ut=(yt=I.current)==null?void 0:yt.validateAndSubmit();if(!ut)return!1;try{const Ce=await J(ut.candidates);return Array.isArray(Ce)&&Ce.length>0?((Ht=I.current)==null||Ht.applyErrorsFromCandidates(Ce,"Please supply valid credentials and try again."),!1):(Q(!1),y==null||y(!0),await qe(),re(!0),!0)}catch{return K!=null&&K.length&&((jt=I.current)==null||jt.applyErrorsFromCandidates(K,"Authentication Failed. Please supply valid credentials and try again.")),!1}}),ye=async ut=>{await ie(async()=>{var ft,Tt,Mt,en;const yt={DestinationBrowse:{},SourceBrowse:{},containerId:void 0};if(!D||!O)return;const Ht=R[D]||[],{functions:jt}=Kk(Ht),Ce={...O,Map:{...O==null?void 0:O.Map,BrowseSettings:yt,DestinationProfile:((ft=O==null?void 0:O.Map)==null?void 0:ft.DestinationProfile)??{Node:[]},DestinationProfileExtensions:((Tt=O==null?void 0:O.Map)==null?void 0:Tt.DestinationProfileExtensions)??{Node:[]},SourceProfile:((Mt=O==null?void 0:O.Map)==null?void 0:Mt.SourceProfile)??{Node:[]},SourceProfileExtensions:((en=O==null?void 0:O.Map)==null?void 0:en.SourceProfileExtensions)??{Node:[]},ExtendedFunctions:{Function:jt},ExtendedMappings:{Mapping:ut}}};await b(Ce),F(Gt=>({...Gt,[D]:ut}));const Ze=d.map(Gt=>Gt.mapId===Ce.mapId?Ce:Gt)}).catch(yt=>u((yt==null?void 0:yt.message)||"Failed to update functions"))},de=async(ut,yt)=>{await ie(async()=>{var Gt,sn,Rn,Yt;const Ht={DestinationBrowse:{},SourceBrowse:{},containerId:void 0};if(!D||!O)return;const jt=(yt==null?void 0:yt.mappingsOverride)??($[D]||[]),{functions:Ce,idMap:Ze}=Kk(ut),ft=Je=>(Je==null?void 0:Je.id)??(Je==null?void 0:Je["@id"])??(Je==null?void 0:Je.FunctionId)??(Je==null?void 0:Je.functionId)??(Je==null?void 0:Je.Id),Tt=new Set((Array.isArray(Ce)?Ce:[]).map(ft).filter(Je=>Je!=null)),Mt=jt.map(Je=>({...Je,...Je.fromFunction!=null&&(Ze==null?void 0:Ze[Je.fromFunction])!=null?{fromFunction:Ze[Je.fromFunction]}:{},...Je.toFunction!=null&&(Ze==null?void 0:Ze[Je.toFunction])!=null?{toFunction:Ze[Je.toFunction]}:{}})).filter(Je=>!(Je.fromFunction!=null&&!Tt.has(Je.fromFunction)||Je.toFunction!=null&&!Tt.has(Je.toFunction)||Je.fromFunction&&isNaN(Number(Je.fromXPath))||Je.toFunction&&isNaN(Number(Je.toXPath)))),en={...O,Map:{...O==null?void 0:O.Map,BrowseSettings:Ht,DestinationProfile:((Gt=O==null?void 0:O.Map)==null?void 0:Gt.DestinationProfile)??{Node:[]},DestinationProfileExtensions:((sn=O==null?void 0:O.Map)==null?void 0:sn.DestinationProfileExtensions)??{Node:[]},SourceProfile:((Rn=O==null?void 0:O.Map)==null?void 0:Rn.SourceProfile)??{Node:[]},SourceProfileExtensions:((Yt=O==null?void 0:O.Map)==null?void 0:Yt.SourceProfileExtensions)??{Node:[]},ExtendedFunctions:{Function:Ce},ExtendedMappings:{Mapping:Mt}}};await b(en),C(Je=>({...Je,[D]:Zk(Ce)})),F(Je=>({...Je,[D]:Mt}))}).catch(Ht=>u((Ht==null?void 0:Ht.message)||"Failed to update functions"))},Ve=async ut=>{await ie(async()=>{const yt=R[D]||[],Ht=$[D]||[],jt=yt.filter(Ze=>Ze.id!==ut.id),Ce=Ht.filter(Ze=>Ze.fromFunction!==ut.id&&Ze.toFunction!==ut.id);await de(jt,{mappingsOverride:Ce})}).catch(yt=>u((yt==null?void 0:yt.message)||"Failed to delete functions"))},De=async()=>{if(!B.current||!D)return!1;const ut=B.current.validateAndSubmit();if(!ut)return!1;const yt={id:(U==null?void 0:U.id)??"",newId:cT(ut.id,sC((U==null?void 0:U.id)??"")??0),name:ut.id,script:ut.script,inputs:ut.inputs.map(({name:jt,key:Ce,type:Ze})=>({name:jt,key:Ce,dataType:Ze})),outputs:ut.outputs.map(({name:jt,key:Ce})=>({name:jt,key:Ce})),type:"Custom Scripting"},Ht=U?(R[D]||[]).map(jt=>jt.id===U.id?yt:jt):[...R[D]||[],yt];try{await de(Ht),j(null),P(!1)}catch(jt){u(jt.message||"Failed to save transformation")}finally{p==null||p(!1)}return!0},qe=async()=>{try{Le.debug("Fetching maps...",[],a.environmentId,a.id),await T(a.id||"",a.environmentId||"")}catch(ut){u("Failed to fetch maps."),Le.error("Failed to fetch maps",ut)}};Y.useEffect(()=>{O&&(O!=null&&O.Map)&&D&&(C(ut=>{var yt,Ht;return{...ut,[D]:Zk(((Ht=(yt=O.Map)==null?void 0:yt.ExtendedFunctions)==null?void 0:Ht.Function)??[])}}),F(ut=>{var yt,Ht;return{...ut,[D]:((Ht=(yt=O.Map)==null?void 0:yt.ExtendedMappings)==null?void 0:Ht.Mapping)??[]}}))},[e,O,D]),Y.useEffect(()=>{(e||!i)&&qe()},[e,i]),Y.useEffect(()=>{m&&Q(!0)},[m]);const et=((St=(vt=(rt=g==null?void 0:g.components)==null?void 0:rt[t])==null?void 0:vt.updateMaps)==null?void 0:St.showTitle)??!0,mt=((Lt=(an=(Nt=g==null?void 0:g.components)==null?void 0:Nt[t])==null?void 0:an.updateMaps)==null?void 0:Lt.showDescription)??!0,xt=H.jsxs(H.Fragment,{children:[Z&&H.jsx(Kc,{type:"success",content:"Authentication Successful. Map has been updated."}),X&&H.jsx(fh,{isOpen:X,title:"Transformation Editor",description:"Use this form to create or edit transformations.",onClose:()=>P(!1),onSubmit:De,submitLabel:"Save",children:H.jsx(IU,{componentKey:t,ref:B,existingName:k,existingScript:(U==null?void 0:U.script)??"",existingInputs:(U==null?void 0:U.inputs.map(({key:ut,name:yt,dataType:Ht})=>({key:ut,name:yt,type:Ht})))??[],existingOutputs:(U==null?void 0:U.outputs.map(({key:ut,name:yt})=>({key:ut,name:yt})))??[]})}),m&&H.jsx(fh,{isOpen:W,title:"Credentials required",description:"Re-enter your credentials to update the requested map(s).",onClose:()=>me(),onSubmit:pe,submitLabel:"Save",children:H.jsx(gH,{ref:I,candidates:S})}),h?H.jsx("div",{className:"flex justify-center items-center pt-6 m-6",children:H.jsx(Ki,{message:"Loading maps..."})}):d.length?H.jsxs("div",{className:`${i?"boomi-update-wizard":"boomi-update"}`,children:[et&&H.jsx("div",{className:"boomi-update-title",children:((xe=(Et=(_t=g==null?void 0:g.components)==null?void 0:_t[t])==null?void 0:Et.updateMaps)==null?void 0:xe.title)||"Map Fields"}),mt&&H.jsx("div",{className:"boomi-update-desc",children:((Dt=(bt=(Ge=g==null?void 0:g.components)==null?void 0:Ge[t])==null?void 0:bt.updateMaps)==null?void 0:Dt.description)||"Please map fields below."}),H.jsx("div",{className:"boomi-tabs",children:H.jsx("nav",{className:"boomi-tablist",children:d.map((ut,yt)=>{const Ht=A===yt;return H.jsx("button",{onClick:()=>N(yt),className:Yb("boomi-tab",Ht&&"boomi-tab--active"),type:"button",children:ut.name||`Map ${yt+1}`},ut.mapId)})})}),H.jsxs("div",{className:"boomi-update-content",children:[c&&H.jsx(tu,{error:{header:"Error Updating Maps",message:c,errorType:"error",onClose:()=>u(null)}}),se?H.jsx(jJ,{sourceFields:te,targetFields:ae,functions:R[D]||[],mappings:$[D]||[],onMappingChange:ye,onTransformationUpdate:de,onDeleteTransformation:Ve,onEditTransformation:ut=>{j(ut),M(mE(ut.name)),P(!0)},onAddTransformation:()=>{j(null),M(`script_${Date.now()}`),P(!0)}}):H.jsx($J,{sourceFields:te,targetFields:ae,functions:R[D]||[],mappings:$[D]||[],onMappingChange:ye,onTransformationUpdate:de,onDeleteTransformation:Ve,onEditTransformation:ut=>{j(ut),M(mE(ut.name)),P(!0)},onAddTransformation:()=>{j(null),M(`script_${Date.now()}`),P(!0)}})]}),!i&&H.jsxs("div",{className:"boomi-update-actions",children:[H.jsx(Bn,{toggle:!1,primary:!1,showIcon:!1,label:"Cancel",onClick:me}),H.jsx(Bn,{toggle:!1,primary:!0,showIcon:!1,label:"Save",onClick:ve})]})]}):H.jsx(tu,{error:{header:"No Maps Found",message:"No maps found for this integration.",errorType:"warning",onClose:E??(()=>{})}})]});return e||!i?i?xt:H.jsx(Ep,{componentKey:t,componentName:"updateMaps",isRootNavigation:!1,title:`Update Maps - ${a.integrationPackOverrideName}`,description:a.integrationPackDescription||"",headerContent:H.jsx(H.Fragment,{}),bodyContent:xt,footerContent:H.jsx(H.Fragment,{}),levelOne:"My Integrations",callbackOne:E}):null};DN.displayName="UpdateMaps";const MN=Y.forwardRef(({componentKey:t,integration:e,active:i,wizard:a,onSubmit:E,onBack:p,setIsLoading:g},y)=>{var me,ve,pe,ye,de,Ve,De,qe,et,mt,xt,$t;const{boomiConfig:f,renderComponent:b}=Xn(),c=Y.useRef(null),{updateFromCombined:u,editedConnections:d}=v6(),{extensions:h,rawExtensions:m,isLoading:S,fetchEnvironmentExtensions:T}=y6(),[A,N]=Y.useState(null),[O,D]=Y.useState(null),{fetchOauth2Url:R}=E6(),{fetchEnvironmentExtensionConnectionStatus:C}=w6(),[$,F]=Y.useState({}),[U,j]=Y.useState({}),[X,P]=Y.useState({}),B=Y.useRef(null),k=Y.useRef({}),M=(ze,tt)=>`${ze}:${tt}`,I=async()=>{var ze;N(null);try{const tt=(ze=c.current)==null?void 0:ze.validateAndSubmit();return!tt||!e.environmentId?(Le.warn("Connector form is invalid or missing environmentId"),!1):(g==null||g(!0),await u(m??[],tt??[],e.environmentId,e.id||""),g==null||g(!1),E==null||E(),!0)}catch(tt){return g==null||g(!1),N(tt.message||"Failed to update environment extensions"),Le.error("Update error:",tt),!1}},W=ze=>{b==null||b({component:"Integrations",props:{componentKey:t||"integrationsMain"}})};Y.useImperativeHandle(y,()=>({submit:I}));const Q=()=>W(),J=async()=>{await I()&&W()},K=(ze,tt,ct)=>{const gt=M(ze,tt),at=k.current[gt];at!=null&&at.interval&&window.clearInterval(at.interval),at!=null&&at.timeout&&window.clearTimeout(at.timeout),at!=null&&at.watch&&window.clearInterval(at.watch);const Re=window.setTimeout(()=>{Z(gt,{success:!1,message:"Authentication timed out. Please try again.",closePopup:!0}),ct(!1)},12e4),je=window.setInterval(async()=>{try{const rt=await C(e.environmentId,e.id||"",ze,tt);if(!!(rt===!0||rt!=null&&rt.connected||(rt==null?void 0:rt.status)==="CONNECTED")){Z(gt,{success:!0,message:null,closePopup:!0});const St=e.installationType==="SINGLE"||!1;Le.debug("Connection authorized, reloading extensions",{isSingle:St}),await T([],e.environmentId,e.id||"",St),ct(!0)}else P(St=>({...St,[gt]:"Waiting for connection to complete…"}))}catch(rt){Le.warn("Polling error (connection status)",rt)}},5e3),it=window.setInterval(()=>{B.current&&B.current.closed&&(Z(gt,{success:!1,message:"Authorization window closed.",closePopup:!1}),ct(!1))},500);k.current[gt]={interval:je,timeout:Re,watch:it}},Z=(ze,{success:tt,message:ct,closePopup:gt=!0})=>{const at=k.current[ze];if(at!=null&&at.interval&&window.clearInterval(at.interval),at!=null&&at.timeout&&window.clearTimeout(at.timeout),at!=null&&at.watch&&window.clearInterval(at.watch),delete k.current[ze],F(Re=>({...Re,[ze]:!1})),j(Re=>({...Re,[ze]:tt})),ct!==void 0&&P(Re=>({...Re,[ze]:ct})),gt)try{B.current&&!B.current.closed&&B.current.close()}catch{}},re=async(ze,tt)=>{const ct=M(ze,tt);Le.log("Authenticate connection:",{connectionId:ze,fieldId:tt}),F(rt=>({...rt,[ct]:!0})),j(rt=>({...rt,[ct]:!1})),P(rt=>({...rt,[ct]:"Opening authorization window…"}));const gt=600,at=750,Re=window.screenX+Math.max(0,(window.outerWidth-gt)/2),je=window.screenY+Math.max(0,(window.outerHeight-at)/2),it=window.open("","oauth2_auth",`width=${gt},height=${at},left=${Re},top=${je},resizable,scrollbars`);B.current=it??null;try{const rt=await R(e.id||"",e.environmentId,ze,tt);B.current?B.current.location.href=rt:window.location.assign(rt),P(vt=>({...vt,[ct]:"Please complete authentication in the new window…"})),K(ze,tt,vt=>{if(!vt)try{B.current&&!B.current.closed&&B.current.close()}catch{}})}catch(rt){B.current&&!B.current.closed&&B.current.close(),F(St=>({...St,[ct]:!1})),P(St=>({...St,[ct]:null}));const vt=(rt==null?void 0:rt.message)||"Failed to fetch OAuth2 URL";N(vt),Le.error("Failed to fetch oauth2Url",rt)}};Y.useEffect(()=>{d&&d.length>0&&D(d)},[d]),Y.useEffect(()=>{h&&D(h)},[h]),Y.useEffect(()=>()=>{Object.values(k.current).forEach(({interval:ze,timeout:tt})=>{ze&&window.clearInterval(ze),tt&&window.clearTimeout(tt)}),B.current&&!B.current.closed&&B.current.close()},[]),Y.useEffect(()=>{!(e!=null&&e.environmentId)||!(e!=null&&e.id)||(i||!a)&&T([],e.environmentId,e.id).catch(ze=>{N(ze.message),Le.error("Failed to fetch environment extensions",ze)})},[i,a,e.environmentId,e.id]);const te=((pe=(ve=(me=f==null?void 0:f.components)==null?void 0:me[t])==null?void 0:ve.updateConnections)==null?void 0:pe.showTitle)??!0,ae=((Ve=(de=(ye=f==null?void 0:f.components)==null?void 0:ye[t])==null?void 0:de.updateConnections)==null?void 0:Ve.title)??"Update Connections",se=((et=(qe=(De=f==null?void 0:f.components)==null?void 0:De[t])==null?void 0:qe.updateConnections)==null?void 0:et.showDescription)??!0,ie=(($t=(xt=(mt=f==null?void 0:f.components)==null?void 0:mt[t])==null?void 0:xt.updateConnections)==null?void 0:$t.description)??"Please provide the necessary information to make connections to your target systems.",ue=H.jsx(H.Fragment,{children:H.jsxs("div",{className:`${a?"boomi-update-wizard":"boomi-update"}`,children:[(te||se)&&H.jsxs("div",{className:"boomi-update-header",children:[te&&H.jsx("div",{className:"boomi-update-title",children:ae}),se&&H.jsx("div",{className:"boomi-update-desc",children:ie})]}),S&&!O?H.jsx("div",{className:"boomi-center pt-6 m-6",children:H.jsx(Ki,{message:"Retrieving Connection Information..."})}):H.jsxs("div",{className:"boomi-update-body",children:[A&&H.jsx(tu,{error:{header:"Error Updating Connections",message:A,errorType:"error"}}),H.jsx($C,{ref:c,extensions:O||[],onAuthConnection:re,authBusy:$,authConnected:U,authMessage:X}),!a&&H.jsxs("div",{className:"boomi-update-actions",children:[H.jsx(Bn,{toggle:!1,primary:!1,showIcon:!1,label:"Cancel",onClick:Q}),H.jsx(Bn,{toggle:!1,primary:!0,showIcon:!1,label:"Save",onClick:J})]})]})]})});return a?H.jsx(H.Fragment,{children:ue}):H.jsx(H.Fragment,{children:H.jsx(Ep,{componentKey:t,componentName:"updateConnections",isRootNavigation:!1,title:`Update Connections ${e.integrationPackOverrideName??""}`,description:e.integrationPackDescription||"",headerContent:H.jsx(H.Fragment,{}),bodyContent:ue,footerContent:H.jsx(H.Fragment,{}),levelOne:"My Integrations",callbackOne:p})})});MN.displayName="UpdateConnections";function bH(){const t=iu();async function e(a){const{integrationPackInstanceId:E,environmentId:p,signal:g}=a;return Le.debug("Fetching process schedules via service",a),t.get("/process-schedules",{signal:g,params:{integrationPackInstanceId:E,environmentId:p}})}async function i(a){const{integrationPackInstanceId:E,environmentId:p,schedules:g}=a;return Le.debug("updating map extension via service",E,p),t.post("/process-schedules/update",{integrationPackInstanceId:E,environmentId:p,schedules:g})}return{getProcessSchedules:e,updateProcessSchedules:i}}/**
2344
+ */const tX=()=>{const[t,e]=Y.useState(null),[i,a]=Y.useState(!1),[E,p]=Y.useState(null),{buildAiTransformation:g}=eX();return{result:t,isLoading:i,error:E,fetchTransformation:async(f,b)=>{a(!0),p(null),e(null);try{Le.debug("Requesting AI transformation for prompt:",f);const c=await g({id:b,userPrompt:f});return Le.debug("Structured output:",c),e(c),c}catch(c){const u=(c==null?void 0:c.message)||"An unexpected error occurred.";Le.error("AI transformation error:",u,c),p(u)}finally{a(!1)}}}};CT.config.set("basePath","https://cdn.jsdelivr.net/npm/ace-builds@1.4.3/src-noconflict/");CT.config.setModuleUrl("ace/mode/javascript_worker","https://cdn.jsdelivr.net/npm/ace-builds@1.4.3/src-noconflict/worker-javascript.js");const nX=["CHARACTER","DATETIME","FLOAT","INTEGER"],IU=Y.forwardRef(({componentKey:t,existingName:e="",existingScript:i="",existingInputs:a=[],existingOutputs:E=[]},p)=>{var ve;const{boomiConfig:g}=Xn(),y=`custom_scripting_${Date.now()}`,[f,b]=Y.useState(()=>e?cT(e,0):y),[c,u]=Y.useState(i),[d,h]=Y.useState(a??[]),[m,S]=Y.useState(E??[]),[T,A]=Y.useState(""),[N,O]=Y.useState("CHARACTER"),[D,R]=Y.useState(""),[C,$]=Y.useState({outputField:"",script:""}),F=Y.useRef(null),[U,j]=Y.useState({}),[X,P]=Y.useState({}),[B,k]=Y.useState(null),[M,I]=Y.useState(""),{isLoading:W,error:Q,fetchTransformation:J}=tX(),K=(g==null?void 0:g.enableAi)||!1,Z=(ve=g==null?void 0:g.theme)!=null&&ve.darkModeTheme?"tomorrow_night_bright":"chrome",re=()=>{const pe=m.some(de=>{var Ve;return((Ve=de==null?void 0:de.name)==null?void 0:Ve.trim().toLowerCase())==="output"}),ye={outputField:m.length===0?"At least one output is required":pe?"Output name 'output' is not allowed":"",script:c.trim()?"":"Script is required"};return $(ye),ye};Y.useImperativeHandle(p,()=>({validateAndSubmit:()=>{const pe=re(),ye=Object.values(pe).some(Boolean);return Le.debug("EditTransformationsForm.validateAndSubmit hasErrors?",pe),ye?null:(Le.debug("EditTransformationsForm.validateAndSubmit",{id:f,script:c,inputs:d,outputs:m}),{id:f,script:c,inputs:d,outputs:m})},isFormReady:()=>{const pe=re();return!Object.values(pe).some(Boolean)}}));const te=()=>{$(pe=>({...pe,script:c.trim()?"":"Script is required"}))},ae=()=>{if(!T.trim())return;const ye=(d.length>0?Math.max(...d.map(de=>de.key)):0)+1;h([...d,{name:T.trim(),key:ye,type:N}]),A(""),O("CHARACTER")},se=()=>{if(!D.trim())return;const ye=(m.length>0?Math.max(...m.map(de=>de.key)):0)+1;S([...m,{name:D.trim(),key:ye}]),R("")},ie=pe=>{h(ye=>ye.filter((de,Ve)=>Ve!==pe))},ue=pe=>{S(ye=>ye.filter((de,Ve)=>Ve!==pe))},me=()=>{var ye,de;Le.debug("Testing script with inputs:",d,"and values:",U);const pe={};d.forEach(Ve=>{const De=U[Ve.key];let qe=De;switch(Ve.type){case"FLOAT":qe=parseFloat(De);break;case"INTEGER":qe=parseInt(De,10);break;case"DATETIME":qe=new Date(De);break}pe[Ve.name]=qe}),(de=(ye=F.current)==null?void 0:ye.contentWindow)==null||de.postMessage({script:c,inputs:pe},"*")};return Y.useEffect(()=>{const pe=ye=>{var de,Ve;if(((de=ye.data)==null?void 0:de.type)==="RESULT"){const De=ye.data.result||{};typeof De=="object"&&De!==null&&(P({...De}),k(null))}else if(((Ve=ye.data)==null?void 0:Ve.type)==="ERROR"){const De=ye.data.error;if(De==="No script provided or script is not a string")return;k(De||"Unknown error"),Le.error("Script Error:",De)}};return window.addEventListener("message",pe),()=>window.removeEventListener("message",pe)},[]),H.jsxs("div",{className:"space-y-4 text-sm",children:[H.jsx("input",{type:"hidden",value:f}),H.jsx("iframe",{ref:F,src:JY(),sandbox:"allow-scripts",style:{display:"none"}}),K&&H.jsxs("div",{className:"space-y-2",children:[H.jsx("label",{className:"block font-semibold",children:"Ask AI to generate transformation"}),H.jsxs("div",{className:"flex gap-2",children:[H.jsx("textarea",{rows:2,value:M,onChange:pe=>I(pe.target.value),placeholder:"Describe your transformation...",className:"flex-1 border rounded px-2 py-1 resize-y"}),H.jsx("button",{type:"button",disabled:W||!M.trim(),onClick:async()=>{const pe=await J(M,f);pe&&(u(pe.Configuration.Scripting.Script),h(pe.Configuration.Scripting.Inputs.Input.map(ye=>({name:ye.name,key:Number(ye.index),type:ye.dataType}))),S(pe.Configuration.Scripting.Outputs.Output.map(ye=>({name:ye.name,key:Number(ye.index)}))),$({outputField:"",script:""}))},className:" boomi-btn-primary px-3 py-1 disabled:opacity-50",children:W?"Generating...":"Generate"})]}),Q&&H.jsx(tu,{error:{header:"Error Generating Transformation",message:Q,errorType:"error",onClose:()=>{}}})]}),H.jsxs("div",{children:[H.jsx("label",{className:"block mb-1 font-semibold",children:"Transformation Script"}),H.jsx("div",{className:`h-[200px] relative border rounded ${C.script?"border-red-500":""}`,children:H.jsx(g6,{className:"flex-1 h-full w-full h-[200px]",placeholder:"",mode:"javascript",theme:Z,width:"100%",height:"100%",fontSize:12,lineHeight:17,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:c,onChange:pe=>{u(pe),$(ye=>({...ye,script:""}))},onBlur:te,setOptions:{showLineNumbers:!0,tabSize:1}})}),H.jsx("div",{className:"flex justify-end mt-2",children:H.jsx(Bn,{toggle:!1,primary:!1,viewLoc:"field-mapping-add-transformation",buttonClass:"ml-2",onClass:"flex items-center gap-1 boomi-btn-secondary",showIcon:!1,label:"Test Script",onClick:me})}),C.script&&H.jsx("p",{className:"text-xs text-red-600 mt-1",children:C.script})]}),H.jsxs("div",{className:"flex gap-6 mt-4 overflow-x-hidden ",children:[H.jsxs("div",{className:`w-1/2 border-1 p-2 ${C.outputField?"border-red-500 border-2":""}`,children:[H.jsx("label",{className:"block mb-1 font-semibold",children:"Inputs"}),H.jsxs("div",{className:"flex gap-2 items-center mb-2 w-full",children:[H.jsx("input",{type:"text",value:T,onChange:pe=>A(pe.target.value),className:"border px-2 py-1 rounded w-full",placeholder:"Input name"}),H.jsx("select",{value:N,onChange:pe=>O(pe.target.value),className:"border px-2 py-1 rounded",children:nX.map(pe=>H.jsx("option",{value:pe,children:pe},pe))}),H.jsx("button",{type:"button",onClick:ae,className:"px-2 py-1 border boomi-btn-secondary",children:"Add"})]}),H.jsxs("div",{className:"border rounded max-h-44 overflow-y-auto",children:[H.jsxs("div",{className:"flex px-1 py-1.5 boomi-table-header",children:[H.jsx("div",{className:"flex-1",children:"Name"}),H.jsx("div",{className:"w-1/2 text-left",children:"Test Input"}),H.jsx("div",{className:"w-24 text-center",children:"Type"}),H.jsx("div",{className:"w-6"})]}),H.jsx("ul",{className:"space-y-1",children:d.map((pe,ye)=>H.jsxs("li",{className:"flex items-center text-xs boomi-table-row p-2",children:[H.jsx("div",{className:"flex-1 truncate",children:pe.name}),H.jsx("input",{type:"text",className:"border px-2 py-1 rounded w-1/2",value:U[pe.key]??"",onChange:de=>j({...U,[pe.key]:de.target.value})}),H.jsx("div",{className:"w-24 text-center",children:H.jsx("span",{className:"px-2 py-0.5 rounded-full font-medium",children:pe.type})}),H.jsx("button",{onClick:()=>ie(ye),className:"text-red-400 hover:text-red-600 transition ml-2",title:"Remove input",children:H.jsx(lh,{size:14})})]},ye))})]})]}),H.jsxs("div",{className:`w-1/2 border-1 p-2 ${C.outputField?"border-red-500 border-2":""}`,children:[H.jsx("label",{className:"block mb-1 font-semibold",children:"Outputs"}),H.jsxs("div",{className:"flex gap-2 items-center mb-2",children:[H.jsx("input",{type:"text",value:D,onChange:pe=>R(pe.target.value),className:"border px-2 py-1 rounded w-full",placeholder:"Output name"}),H.jsx("button",{type:"button",onClick:se,className:"px-2 py-1 boomi-btn-secondary",children:"Add"})]}),H.jsxs("div",{className:"border rounded max-h-44 overflow-y-auto",children:[H.jsxs("div",{className:"flex px-1 py-1.5 boomi-table-header",children:[H.jsx("div",{className:"flex-1",children:"Name"}),H.jsx("div",{className:"w-1/2 text-left",children:"Test Output"}),H.jsx("div",{className:"w-6"})]}),H.jsx("ul",{className:"space-y-1",children:m.map((pe,ye)=>H.jsxs("li",{className:"flex items-center text-xs boomi-table-row p-2",children:[H.jsx("div",{className:"flex-1 truncate",children:pe.name}),H.jsx("span",{className:"font-mono text-green-700 text-left text-xs w-1/2 text-left",children:(X==null?void 0:X[pe.name])??""}),H.jsx("button",{onClick:()=>ue(ye),className:"text-red-400 hover:text-red-600 transition ml-2",title:"Remove output",children:H.jsx(lh,{size:14})})]},ye))})]}),B&&H.jsxs("p",{className:"text-sm text-red-600 mt-2",children:["Test Error: ",B]}),C.outputField&&H.jsx("p",{className:"text-xs text-red-600 mt-1",children:C.outputField})]})]})]})});IU.displayName="EditTransformationsForm";const $U=Y.createContext({});function oX(t){const e=Y.useRef(null);return e.current===null&&(e.current=t()),e.current}const eN=typeof window<"u",iX=eN?Y.useLayoutEffect:Y.useEffect,tN=Y.createContext(null);function nN(t,e){t.indexOf(e)===-1&&t.push(e)}function oN(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}const gd=(t,e,i)=>i>e?e:i<t?t:i;function U_(t,e){return e?`${t}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${e}`:t}let ov=()=>{},bd=()=>{};process.env.NODE_ENV!=="production"&&(ov=(t,e,i)=>{!t&&typeof console<"u"&&console.warn(U_(e,i))},bd=(t,e,i)=>{if(!t)throw new Error(U_(e,i))});const vd={},UU=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function HU(t){return typeof t=="object"&&t!==null}const jU=t=>/^0[^.\s]+$/u.test(t);function iN(t){let e;return()=>(e===void 0&&(e=t()),e)}const El=t=>t,rX=(t,e)=>i=>e(t(i)),WE=(...t)=>t.reduce(rX),_E=(t,e,i)=>{const a=e-t;return a===0?1:(i-t)/a};class rN{constructor(){this.subscriptions=[]}add(e){return nN(this.subscriptions,e),()=>oN(this.subscriptions,e)}notify(e,i,a){const E=this.subscriptions.length;if(E)if(E===1)this.subscriptions[0](e,i,a);else for(let p=0;p<E;p++){const g=this.subscriptions[p];g&&g(e,i,a)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const nc=t=>t*1e3,yl=t=>t/1e3;function zU(t,e){return e?t*(1e3/e):0}const Q3=new Set;function aN(t,e,i){t||Q3.has(e)||(console.warn(U_(e,i)),Q3.add(e))}const BU=(t,e,i)=>(((1-3*i+3*e)*t+(3*i-6*e))*t+3*e)*t,aX=1e-7,sX=12;function lX(t,e,i,a,E){let p,g,y=0;do g=e+(i-e)/2,p=BU(g,a,E)-t,p>0?i=g:e=g;while(Math.abs(p)>aX&&++y<sX);return g}function YE(t,e,i,a){if(t===e&&i===a)return El;const E=p=>lX(p,0,1,t,i);return p=>p===0||p===1?p:BU(E(p),e,a)}const FU=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,PU=t=>e=>1-t(1-e),VU=YE(.33,1.53,.69,.99),sN=PU(VU),GU=FU(sN),QU=t=>(t*=2)<1?.5*sN(t):.5*(2-Math.pow(2,-10*(t-1))),lN=t=>1-Math.sin(Math.acos(t)),WU=PU(lN),YU=FU(lN),cX=YE(.42,0,1,1),uX=YE(0,0,.58,1),XU=YE(.42,0,.58,1),dX=t=>Array.isArray(t)&&typeof t[0]!="number",qU=t=>Array.isArray(t)&&typeof t[0]=="number",W3={linear:El,easeIn:cX,easeInOut:XU,easeOut:uX,circIn:lN,circInOut:YU,circOut:WU,backIn:sN,backInOut:GU,backOut:VU,anticipate:QU},fX=t=>typeof t=="string",Y3=t=>{if(qU(t)){bd(t.length===4,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");const[e,i,a,E]=t;return YE(e,i,a,E)}else if(fX(t))return bd(W3[t]!==void 0,`Invalid easing type '${t}'`,"invalid-easing-type"),W3[t];return t},TS=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function hX(t,e){let i=new Set,a=new Set,E=!1,p=!1;const g=new WeakSet;let y={delta:0,timestamp:0,isProcessing:!1};function f(c){g.has(c)&&(b.schedule(c),t()),c(y)}const b={schedule:(c,u=!1,d=!1)=>{const m=d&&E?i:a;return u&&g.add(c),m.has(c)||m.add(c),c},cancel:c=>{a.delete(c),g.delete(c)},process:c=>{if(y=c,E){p=!0;return}E=!0,[i,a]=[a,i],i.forEach(f),i.clear(),E=!1,p&&(p=!1,b.process(c))}};return b}const mX=40;function KU(t,e){let i=!1,a=!0;const E={delta:0,timestamp:0,isProcessing:!1},p=()=>i=!0,g=TS.reduce((O,D)=>(O[D]=hX(p),O),{}),{setup:y,read:f,resolveKeyframes:b,preUpdate:c,update:u,preRender:d,render:h,postRender:m}=g,S=()=>{const O=vd.useManualTiming?E.timestamp:performance.now();i=!1,vd.useManualTiming||(E.delta=a?1e3/60:Math.max(Math.min(O-E.timestamp,mX),1)),E.timestamp=O,E.isProcessing=!0,y.process(E),f.process(E),b.process(E),c.process(E),u.process(E),d.process(E),h.process(E),m.process(E),E.isProcessing=!1,i&&e&&(a=!1,t(S))},T=()=>{i=!0,a=!0,E.isProcessing||t(S)};return{schedule:TS.reduce((O,D)=>{const R=g[D];return O[D]=(C,$=!1,F=!1)=>(i||T(),R.schedule(C,$,F)),O},{}),cancel:O=>{for(let D=0;D<TS.length;D++)g[TS[D]].cancel(O)},state:E,steps:g}}const{schedule:jo,cancel:hh,state:yr,steps:Zx}=KU(typeof requestAnimationFrame<"u"?requestAnimationFrame:El,!0);let LS;function pX(){LS=void 0}const Fa={now:()=>(LS===void 0&&Fa.set(yr.isProcessing||vd.useManualTiming?yr.timestamp:performance.now()),LS),set:t=>{LS=t,queueMicrotask(pX)}},ZU=t=>e=>typeof e=="string"&&e.startsWith(t),cN=ZU("--"),gX=ZU("var(--"),uN=t=>gX(t)?bX.test(t.split("/*")[0].trim()):!1,bX=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,iv={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},CE={...iv,transform:t=>gd(0,1,t)},AS={...iv,default:1},cE=t=>Math.round(t*1e5)/1e5,dN=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function vX(t){return t==null}const yX=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,fN=(t,e)=>i=>!!(typeof i=="string"&&yX.test(i)&&i.startsWith(t)||e&&!vX(i)&&Object.prototype.hasOwnProperty.call(i,e)),JU=(t,e,i)=>a=>{if(typeof a!="string")return a;const[E,p,g,y]=a.match(dN);return{[t]:parseFloat(E),[e]:parseFloat(p),[i]:parseFloat(g),alpha:y!==void 0?parseFloat(y):1}},EX=t=>gd(0,255,t),Jx={...iv,transform:t=>Math.round(EX(t))},ap={test:fN("rgb","red"),parse:JU("red","green","blue"),transform:({red:t,green:e,blue:i,alpha:a=1})=>"rgba("+Jx.transform(t)+", "+Jx.transform(e)+", "+Jx.transform(i)+", "+cE(CE.transform(a))+")"};function wX(t){let e="",i="",a="",E="";return t.length>5?(e=t.substring(1,3),i=t.substring(3,5),a=t.substring(5,7),E=t.substring(7,9)):(e=t.substring(1,2),i=t.substring(2,3),a=t.substring(3,4),E=t.substring(4,5),e+=e,i+=i,a+=a,E+=E),{red:parseInt(e,16),green:parseInt(i,16),blue:parseInt(a,16),alpha:E?parseInt(E,16)/255:1}}const H_={test:fN("#"),parse:wX,transform:ap.transform},XE=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Zf=XE("deg"),eu=XE("%"),Jt=XE("px"),SX=XE("vh"),TX=XE("vw"),X3={...eu,parse:t=>eu.parse(t)/100,transform:t=>eu.transform(t*100)},Db={test:fN("hsl","hue"),parse:JU("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:i,alpha:a=1})=>"hsla("+Math.round(t)+", "+eu.transform(cE(e))+", "+eu.transform(cE(i))+", "+cE(CE.transform(a))+")"},Di={test:t=>ap.test(t)||H_.test(t)||Db.test(t),parse:t=>ap.test(t)?ap.parse(t):Db.test(t)?Db.parse(t):H_.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?ap.transform(t):Db.transform(t),getAnimatableNone:t=>{const e=Di.parse(t);return e.alpha=0,Di.transform(e)}},AX=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function xX(t){var e,i;return isNaN(t)&&typeof t=="string"&&(((e=t.match(dN))==null?void 0:e.length)||0)+(((i=t.match(AX))==null?void 0:i.length)||0)>0}const e8="number",t8="color",_X="var",CX="var(",q3="${}",NX=/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 NE(t){const e=t.toString(),i=[],a={color:[],number:[],var:[]},E=[];let p=0;const y=e.replace(NX,f=>(Di.test(f)?(a.color.push(p),E.push(t8),i.push(Di.parse(f))):f.startsWith(CX)?(a.var.push(p),E.push(_X),i.push(f)):(a.number.push(p),E.push(e8),i.push(parseFloat(f))),++p,q3)).split(q3);return{values:i,split:y,indexes:a,types:E}}function n8(t){return NE(t).values}function o8(t){const{split:e,types:i}=NE(t),a=e.length;return E=>{let p="";for(let g=0;g<a;g++)if(p+=e[g],E[g]!==void 0){const y=i[g];y===e8?p+=cE(E[g]):y===t8?p+=Di.transform(E[g]):p+=E[g]}return p}}const RX=t=>typeof t=="number"?0:Di.test(t)?Di.getAnimatableNone(t):t;function LX(t){const e=n8(t);return o8(t)(e.map(RX))}const mh={test:xX,parse:n8,createTransformer:o8,getAnimatableNone:LX};function e_(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+(e-t)*6*i:i<1/2?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function OX({hue:t,saturation:e,lightness:i,alpha:a}){t/=360,e/=100,i/=100;let E=0,p=0,g=0;if(!e)E=p=g=i;else{const y=i<.5?i*(1+e):i+e-i*e,f=2*i-y;E=e_(f,y,t+1/3),p=e_(f,y,t),g=e_(f,y,t-1/3)}return{red:Math.round(E*255),green:Math.round(p*255),blue:Math.round(g*255),alpha:a}}function tT(t,e){return i=>i>0?e:t}const qo=(t,e,i)=>t+(e-t)*i,t_=(t,e,i)=>{const a=t*t,E=i*(e*e-a)+a;return E<0?0:Math.sqrt(E)},DX=[H_,ap,Db],MX=t=>DX.find(e=>e.test(t));function K3(t){const e=MX(t);if(ov(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!e)return!1;let i=e.parse(t);return e===Db&&(i=OX(i)),i}const Z3=(t,e)=>{const i=K3(t),a=K3(e);if(!i||!a)return tT(t,e);const E={...i};return p=>(E.red=t_(i.red,a.red,p),E.green=t_(i.green,a.green,p),E.blue=t_(i.blue,a.blue,p),E.alpha=qo(i.alpha,a.alpha,p),ap.transform(E))},j_=new Set(["none","hidden"]);function kX(t,e){return j_.has(t)?i=>i<=0?t:e:i=>i>=1?e:t}function IX(t,e){return i=>qo(t,e,i)}function hN(t){return typeof t=="number"?IX:typeof t=="string"?uN(t)?tT:Di.test(t)?Z3:HX:Array.isArray(t)?i8:typeof t=="object"?Di.test(t)?Z3:$X:tT}function i8(t,e){const i=[...t],a=i.length,E=t.map((p,g)=>hN(p)(p,e[g]));return p=>{for(let g=0;g<a;g++)i[g]=E[g](p);return i}}function $X(t,e){const i={...t,...e},a={};for(const E in i)t[E]!==void 0&&e[E]!==void 0&&(a[E]=hN(t[E])(t[E],e[E]));return E=>{for(const p in a)i[p]=a[p](E);return i}}function UX(t,e){const i=[],a={color:0,var:0,number:0};for(let E=0;E<e.values.length;E++){const p=e.types[E],g=t.indexes[p][a[p]],y=t.values[g]??0;i[E]=y,a[p]++}return i}const HX=(t,e)=>{const i=mh.createTransformer(e),a=NE(t),E=NE(e);return a.indexes.var.length===E.indexes.var.length&&a.indexes.color.length===E.indexes.color.length&&a.indexes.number.length>=E.indexes.number.length?j_.has(t)&&!E.values.length||j_.has(e)&&!a.values.length?kX(t,e):WE(i8(UX(a,E),E.values),i):(ov(!0,`Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),tT(t,e))};function r8(t,e,i){return typeof t=="number"&&typeof e=="number"&&typeof i=="number"?qo(t,e,i):hN(t)(t,e)}const jX=t=>{const e=({timestamp:i})=>t(i);return{start:(i=!0)=>jo.update(e,i),stop:()=>hh(e),now:()=>yr.isProcessing?yr.timestamp:Fa.now()}},a8=(t,e,i=10)=>{let a="";const E=Math.max(Math.round(e/i),2);for(let p=0;p<E;p++)a+=Math.round(t(p/(E-1))*1e4)/1e4+", ";return`linear(${a.substring(0,a.length-2)})`},nT=2e4;function mN(t){let e=0;const i=50;let a=t.next(e);for(;!a.done&&e<nT;)e+=i,a=t.next(e);return e>=nT?1/0:e}function zX(t,e=100,i){const a=i({...t,keyframes:[0,e]}),E=Math.min(mN(a),nT);return{type:"keyframes",ease:p=>a.next(E*p).value/e,duration:yl(E)}}const BX=5;function s8(t,e,i){const a=Math.max(e-BX,0);return zU(i-t(a),e-a)}const Xo={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},n_=.001;function FX({duration:t=Xo.duration,bounce:e=Xo.bounce,velocity:i=Xo.velocity,mass:a=Xo.mass}){let E,p;ov(t<=nc(Xo.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let g=1-e;g=gd(Xo.minDamping,Xo.maxDamping,g),t=gd(Xo.minDuration,Xo.maxDuration,yl(t)),g<1?(E=b=>{const c=b*g,u=c*t,d=c-i,h=z_(b,g),m=Math.exp(-u);return n_-d/h*m},p=b=>{const u=b*g*t,d=u*i+i,h=Math.pow(g,2)*Math.pow(b,2)*t,m=Math.exp(-u),S=z_(Math.pow(b,2),g);return(-E(b)+n_>0?-1:1)*((d-h)*m)/S}):(E=b=>{const c=Math.exp(-b*t),u=(b-i)*t+1;return-n_+c*u},p=b=>{const c=Math.exp(-b*t),u=(i-b)*(t*t);return c*u});const y=5/t,f=VX(E,p,y);if(t=nc(t),isNaN(f))return{stiffness:Xo.stiffness,damping:Xo.damping,duration:t};{const b=Math.pow(f,2)*a;return{stiffness:b,damping:g*2*Math.sqrt(a*b),duration:t}}}const PX=12;function VX(t,e,i){let a=i;for(let E=1;E<PX;E++)a=a-t(a)/e(a);return a}function z_(t,e){return t*Math.sqrt(1-e*e)}const GX=["duration","bounce"],QX=["stiffness","damping","mass"];function J3(t,e){return e.some(i=>t[i]!==void 0)}function WX(t){let e={velocity:Xo.velocity,stiffness:Xo.stiffness,damping:Xo.damping,mass:Xo.mass,isResolvedFromDuration:!1,...t};if(!J3(t,QX)&&J3(t,GX))if(t.visualDuration){const i=t.visualDuration,a=2*Math.PI/(i*1.2),E=a*a,p=2*gd(.05,1,1-(t.bounce||0))*Math.sqrt(E);e={...e,mass:Xo.mass,stiffness:E,damping:p}}else{const i=FX(t);e={...e,...i,mass:Xo.mass},e.isResolvedFromDuration=!0}return e}function oT(t=Xo.visualDuration,e=Xo.bounce){const i=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:a,restDelta:E}=i;const p=i.keyframes[0],g=i.keyframes[i.keyframes.length-1],y={done:!1,value:p},{stiffness:f,damping:b,mass:c,duration:u,velocity:d,isResolvedFromDuration:h}=WX({...i,velocity:-yl(i.velocity||0)}),m=d||0,S=b/(2*Math.sqrt(f*c)),T=g-p,A=yl(Math.sqrt(f/c)),N=Math.abs(T)<5;a||(a=N?Xo.restSpeed.granular:Xo.restSpeed.default),E||(E=N?Xo.restDelta.granular:Xo.restDelta.default);let O;if(S<1){const R=z_(A,S);O=C=>{const $=Math.exp(-S*A*C);return g-$*((m+S*A*T)/R*Math.sin(R*C)+T*Math.cos(R*C))}}else if(S===1)O=R=>g-Math.exp(-A*R)*(T+(m+A*T)*R);else{const R=A*Math.sqrt(S*S-1);O=C=>{const $=Math.exp(-S*A*C),F=Math.min(R*C,300);return g-$*((m+S*A*T)*Math.sinh(F)+R*T*Math.cosh(F))/R}}const D={calculatedDuration:h&&u||null,next:R=>{const C=O(R);if(h)y.done=R>=u;else{let $=R===0?m:0;S<1&&($=R===0?nc(m):s8(O,R,C));const F=Math.abs($)<=a,U=Math.abs(g-C)<=E;y.done=F&&U}return y.value=y.done?g:C,y},toString:()=>{const R=Math.min(mN(D),nT),C=a8($=>D.next(R*$).value,R,30);return R+"ms "+C},toTransition:()=>{}};return D}oT.applyToOptions=t=>{const e=zX(t,100,oT);return t.ease=e.ease,t.duration=nc(e.duration),t.type="keyframes",t};function B_({keyframes:t,velocity:e=0,power:i=.8,timeConstant:a=325,bounceDamping:E=10,bounceStiffness:p=500,modifyTarget:g,min:y,max:f,restDelta:b=.5,restSpeed:c}){const u=t[0],d={done:!1,value:u},h=F=>y!==void 0&&F<y||f!==void 0&&F>f,m=F=>y===void 0?f:f===void 0||Math.abs(y-F)<Math.abs(f-F)?y:f;let S=i*e;const T=u+S,A=g===void 0?T:g(T);A!==T&&(S=A-u);const N=F=>-S*Math.exp(-F/a),O=F=>A+N(F),D=F=>{const U=N(F),j=O(F);d.done=Math.abs(U)<=b,d.value=d.done?A:j};let R,C;const $=F=>{h(d.value)&&(R=F,C=oT({keyframes:[d.value,m(d.value)],velocity:s8(O,F,d.value),damping:E,stiffness:p,restDelta:b,restSpeed:c}))};return $(0),{calculatedDuration:null,next:F=>{let U=!1;return!C&&R===void 0&&(U=!0,D(F),$(F)),R!==void 0&&F>=R?C.next(F-R):(!U&&D(F),d)}}}function YX(t,e,i){const a=[],E=i||vd.mix||r8,p=t.length-1;for(let g=0;g<p;g++){let y=E(t[g],t[g+1]);if(e){const f=Array.isArray(e)?e[g]||El:e;y=WE(f,y)}a.push(y)}return a}function XX(t,e,{clamp:i=!0,ease:a,mixer:E}={}){const p=t.length;if(bd(p===e.length,"Both input and output ranges must be the same length","range-length"),p===1)return()=>e[0];if(p===2&&e[0]===e[1])return()=>e[1];const g=t[0]===t[1];t[0]>t[p-1]&&(t=[...t].reverse(),e=[...e].reverse());const y=YX(e,a,E),f=y.length,b=c=>{if(g&&c<t[0])return e[0];let u=0;if(f>1)for(;u<t.length-2&&!(c<t[u+1]);u++);const d=_E(t[u],t[u+1],c);return y[u](d)};return i?c=>b(gd(t[0],t[p-1],c)):b}function qX(t,e){const i=t[t.length-1];for(let a=1;a<=e;a++){const E=_E(0,e,a);t.push(qo(i,1,E))}}function KX(t){const e=[0];return qX(e,t.length-1),e}function ZX(t,e){return t.map(i=>i*e)}function JX(t,e){return t.map(()=>e||XU).splice(0,t.length-1)}function Mb({duration:t=300,keyframes:e,times:i,ease:a="easeInOut"}){const E=dX(a)?a.map(Y3):Y3(a),p={done:!1,value:e[0]},g=ZX(i&&i.length===e.length?i:KX(e),t),y=XX(g,e,{ease:Array.isArray(E)?E:JX(e,E)});return{calculatedDuration:t,next:f=>(p.value=y(f),p.done=f>=t,p)}}const eq=t=>t!==null;function pN(t,{repeat:e,repeatType:i="loop"},a,E=1){const p=t.filter(eq),y=E<0||e&&i!=="loop"&&e%2===1?0:p.length-1;return!y||a===void 0?p[y]:a}const tq={decay:B_,inertia:B_,tween:Mb,keyframes:Mb,spring:oT};function l8(t){typeof t.type=="string"&&(t.type=tq[t.type])}class gN{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,i){return this.finished.then(e,i)}}const nq=t=>t/100;class bN extends gN{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var a,E;const{motionValue:i}=this.options;i&&i.updatedAt!==Fa.now()&&this.tick(Fa.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(E=(a=this.options).onStop)==null||E.call(a))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;l8(e);const{type:i=Mb,repeat:a=0,repeatDelay:E=0,repeatType:p,velocity:g=0}=e;let{keyframes:y}=e;const f=i||Mb;process.env.NODE_ENV!=="production"&&f!==Mb&&bd(y.length<=2,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${y}`,"spring-two-frames"),f!==Mb&&typeof y[0]!="number"&&(this.mixKeyframes=WE(nq,r8(y[0],y[1])),y=[0,100]);const b=f({...e,keyframes:y});p==="mirror"&&(this.mirroredGenerator=f({...e,keyframes:[...y].reverse(),velocity:-g})),b.calculatedDuration===null&&(b.calculatedDuration=mN(b));const{calculatedDuration:c}=b;this.calculatedDuration=c,this.resolvedDuration=c+E,this.totalDuration=this.resolvedDuration*(a+1)-E,this.generator=b}updateTime(e){const i=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=i}tick(e,i=!1){const{generator:a,totalDuration:E,mixKeyframes:p,mirroredGenerator:g,resolvedDuration:y,calculatedDuration:f}=this;if(this.startTime===null)return a.next(0);const{delay:b=0,keyframes:c,repeat:u,repeatType:d,repeatDelay:h,type:m,onUpdate:S,finalKeyframe:T}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-E/this.speed,this.startTime)),i?this.currentTime=e:this.updateTime(e);const A=this.currentTime-b*(this.playbackSpeed>=0?1:-1),N=this.playbackSpeed>=0?A<0:A>E;this.currentTime=Math.max(A,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=E);let O=this.currentTime,D=a;if(u){const F=Math.min(this.currentTime,E)/y;let U=Math.floor(F),j=F%1;!j&&F>=1&&(j=1),j===1&&U--,U=Math.min(U,u+1),!!(U%2)&&(d==="reverse"?(j=1-j,h&&(j-=h/y)):d==="mirror"&&(D=g)),O=gd(0,1,j)*y}const R=N?{done:!1,value:c[0]}:D.next(O);p&&(R.value=p(R.value));let{done:C}=R;!N&&f!==null&&(C=this.playbackSpeed>=0?this.currentTime>=E:this.currentTime<=0);const $=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&C);return $&&m!==B_&&(R.value=pN(c,this.options,T,this.speed)),S&&S(R.value),$&&this.finish(),R}then(e,i){return this.finished.then(e,i)}get duration(){return yl(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+yl(e)}get time(){return yl(this.currentTime)}set time(e){var i;e=nc(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(i=this.driver)==null||i.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(Fa.now());const i=this.playbackSpeed!==e;this.playbackSpeed=e,i&&(this.time=yl(this.currentTime))}play(){var E,p;if(this.isStopped)return;const{driver:e=jX,startTime:i}=this.options;this.driver||(this.driver=e(g=>this.tick(g))),(p=(E=this.options).onPlay)==null||p.call(E);const a=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=a):this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime||(this.startTime=i??a),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Fa.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,i;this.notifyFinished(),this.teardown(),this.state="finished",(i=(e=this.options).onComplete)==null||i.call(e)}cancel(){var e,i;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(i=(e=this.options).onCancel)==null||i.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var i;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(i=this.driver)==null||i.stop(),e.observe(this)}}function oq(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const sp=t=>t*180/Math.PI,F_=t=>{const e=sp(Math.atan2(t[1],t[0]));return P_(e)},iq={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:F_,rotateZ:F_,skewX:t=>sp(Math.atan(t[1])),skewY:t=>sp(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},P_=t=>(t=t%360,t<0&&(t+=360),t),e4=F_,t4=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),n4=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),rq={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:t4,scaleY:n4,scale:t=>(t4(t)+n4(t))/2,rotateX:t=>P_(sp(Math.atan2(t[6],t[5]))),rotateY:t=>P_(sp(Math.atan2(-t[2],t[0]))),rotateZ:e4,rotate:e4,skewX:t=>sp(Math.atan(t[4])),skewY:t=>sp(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function V_(t){return t.includes("scale")?1:0}function G_(t,e){if(!t||t==="none")return V_(e);const i=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let a,E;if(i)a=rq,E=i;else{const y=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);a=iq,E=y}if(!E)return V_(e);const p=a[e],g=E[1].split(",").map(sq);return typeof p=="function"?p(g):g[p]}const aq=(t,e)=>{const{transform:i="none"}=getComputedStyle(t);return G_(i,e)};function sq(t){return parseFloat(t.trim())}const rv=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],av=new Set(rv),o4=t=>t===iv||t===Jt,lq=new Set(["x","y","z"]),cq=rv.filter(t=>!lq.has(t));function uq(t){const e=[];return cq.forEach(i=>{const a=t.getValue(i);a!==void 0&&(e.push([i,a.get()]),a.set(i.startsWith("scale")?1:0))}),e}const cp={width:({x:t},{paddingLeft:e="0",paddingRight:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),height:({y:t},{paddingTop:e="0",paddingBottom:i="0"})=>t.max-t.min-parseFloat(e)-parseFloat(i),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>G_(e,"x"),y:(t,{transform:e})=>G_(e,"y")};cp.translateX=cp.x;cp.translateY=cp.y;const up=new Set;let Q_=!1,W_=!1,Y_=!1;function c8(){if(W_){const t=Array.from(up).filter(a=>a.needsMeasurement),e=new Set(t.map(a=>a.element)),i=new Map;e.forEach(a=>{const E=uq(a);E.length&&(i.set(a,E),a.render())}),t.forEach(a=>a.measureInitialState()),e.forEach(a=>{a.render();const E=i.get(a);E&&E.forEach(([p,g])=>{var y;(y=a.getValue(p))==null||y.set(g)})}),t.forEach(a=>a.measureEndState()),t.forEach(a=>{a.suspendedScrollY!==void 0&&window.scrollTo(0,a.suspendedScrollY)})}W_=!1,Q_=!1,up.forEach(t=>t.complete(Y_)),up.clear()}function u8(){up.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(W_=!0)})}function dq(){Y_=!0,u8(),c8(),Y_=!1}class vN{constructor(e,i,a,E,p,g=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=i,this.name=a,this.motionValue=E,this.element=p,this.isAsync=g}scheduleResolve(){this.state="scheduled",this.isAsync?(up.add(this),Q_||(Q_=!0,jo.read(u8),jo.resolveKeyframes(c8))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:i,element:a,motionValue:E}=this;if(e[0]===null){const p=E==null?void 0:E.get(),g=e[e.length-1];if(p!==void 0)e[0]=p;else if(a&&i){const y=a.readValue(i,g);y!=null&&(e[0]=y)}e[0]===void 0&&(e[0]=g),E&&p===void 0&&E.set(e[0])}oq(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),up.delete(this)}cancel(){this.state==="scheduled"&&(up.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const fq=t=>t.startsWith("--");function hq(t,e,i){fq(e)?t.style.setProperty(e,i):t.style[e]=i}const mq=iN(()=>window.ScrollTimeline!==void 0),pq={};function gq(t,e){const i=iN(t);return()=>pq[e]??i()}const d8=gq(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),iE=([t,e,i,a])=>`cubic-bezier(${t}, ${e}, ${i}, ${a})`,i4={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:iE([0,.65,.55,1]),circOut:iE([.55,0,1,.45]),backIn:iE([.31,.01,.66,-.59]),backOut:iE([.33,1.53,.69,.99])};function f8(t,e){if(t)return typeof t=="function"?d8()?a8(t,e):"ease-out":qU(t)?iE(t):Array.isArray(t)?t.map(i=>f8(i,e)||i4.easeOut):i4[t]}function bq(t,e,i,{delay:a=0,duration:E=300,repeat:p=0,repeatType:g="loop",ease:y="easeOut",times:f}={},b=void 0){const c={[e]:i};f&&(c.offset=f);const u=f8(y,E);Array.isArray(u)&&(c.easing=u);const d={delay:a,duration:E,easing:Array.isArray(u)?"linear":u,fill:"both",iterations:p+1,direction:g==="reverse"?"alternate":"normal"};return b&&(d.pseudoElement=b),t.animate(c,d)}function h8(t){return typeof t=="function"&&"applyToOptions"in t}function vq({type:t,...e}){return h8(t)&&d8()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class yq extends gN{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,!e)return;const{element:i,name:a,keyframes:E,pseudoElement:p,allowFlatten:g=!1,finalKeyframe:y,onComplete:f}=e;this.isPseudoElement=!!p,this.allowFlatten=g,this.options=e,bd(typeof e.type!="string",`Mini animate() doesn't support "type" as a string.`,"mini-spring");const b=vq(e);this.animation=bq(i,a,E,b,p),b.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!p){const c=pN(E,this.options,y,this.speed);this.updateMotionValue?this.updateMotionValue(c):hq(i,a,c),this.animation.cancel()}f==null||f(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,i;(i=(e=this.animation).finish)==null||i.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,i;this.isPseudoElement||(i=(e=this.animation).commitStyles)==null||i.call(e)}get duration(){var i,a;const e=((a=(i=this.animation.effect)==null?void 0:i.getComputedTiming)==null?void 0:a.call(i).duration)||0;return yl(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+yl(e)}get time(){return yl(Number(this.animation.currentTime)||0)}set time(e){this.finishedTime=null,this.animation.currentTime=nc(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(e){this.animation.startTime=e}attachTimeline({timeline:e,observe:i}){var a;return this.allowFlatten&&((a=this.animation.effect)==null||a.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&mq()?(this.animation.timeline=e,El):i(this)}}const m8={anticipate:QU,backInOut:GU,circInOut:YU};function Eq(t){return t in m8}function wq(t){typeof t.ease=="string"&&Eq(t.ease)&&(t.ease=m8[t.ease])}const r4=10;class Sq extends yq{constructor(e){wq(e),l8(e),super(e),e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:i,onUpdate:a,onComplete:E,element:p,...g}=this.options;if(!i)return;if(e!==void 0){i.set(e);return}const y=new bN({...g,autoplay:!1}),f=nc(this.finishedTime??this.time);i.setWithVelocity(y.sample(f-r4).value,y.sample(f).value,r4),y.stop()}}const a4=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(mh.test(t)||t==="0")&&!t.startsWith("url("));function Tq(t){const e=t[0];if(t.length===1)return!0;for(let i=0;i<t.length;i++)if(t[i]!==e)return!0}function Aq(t,e,i,a){const E=t[0];if(E===null)return!1;if(e==="display"||e==="visibility")return!0;const p=t[t.length-1],g=a4(E,e),y=a4(p,e);return ov(g===y,`You are trying to animate ${e} from "${E}" to "${p}". "${g?p:E}" is not an animatable value.`,"value-not-animatable"),!g||!y?!1:Tq(t)||(i==="spring"||h8(i))&&a}function X_(t){t.duration=0,t.type="keyframes"}const xq=new Set(["opacity","clipPath","filter","transform"]),_q=iN(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Cq(t){var c;const{motionValue:e,name:i,repeatDelay:a,repeatType:E,damping:p,type:g}=t;if(!(((c=e==null?void 0:e.owner)==null?void 0:c.current)instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:b}=e.owner.getProps();return _q()&&i&&xq.has(i)&&(i!=="transform"||!b)&&!f&&!a&&E!=="mirror"&&p!==0&&g!=="inertia"}const Nq=40;class Rq extends gN{constructor({autoplay:e=!0,delay:i=0,type:a="keyframes",repeat:E=0,repeatDelay:p=0,repeatType:g="loop",keyframes:y,name:f,motionValue:b,element:c,...u}){var m;super(),this.stop=()=>{var S,T;this._animation&&(this._animation.stop(),(S=this.stopTimeline)==null||S.call(this)),(T=this.keyframeResolver)==null||T.cancel()},this.createdAt=Fa.now();const d={autoplay:e,delay:i,type:a,repeat:E,repeatDelay:p,repeatType:g,name:f,motionValue:b,element:c,...u},h=(c==null?void 0:c.KeyframeResolver)||vN;this.keyframeResolver=new h(y,(S,T,A)=>this.onKeyframesResolved(S,T,d,!A),f,b,c),(m=this.keyframeResolver)==null||m.scheduleResolve()}onKeyframesResolved(e,i,a,E){this.keyframeResolver=void 0;const{name:p,type:g,velocity:y,delay:f,isHandoff:b,onUpdate:c}=a;this.resolvedAt=Fa.now(),Aq(e,p,g,y)||((vd.instantAnimations||!f)&&(c==null||c(pN(e,a,i))),e[0]=e[e.length-1],X_(a),a.repeat=0);const d={startTime:E?this.resolvedAt?this.resolvedAt-this.createdAt>Nq?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:i,...a,keyframes:e},h=!b&&Cq(d)?new Sq({...d,element:d.motionValue.owner.current}):new bN(d);h.finished.then(()=>this.notifyFinished()).catch(El),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(e,i){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),dq()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}const Lq=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Oq(t){const e=Lq.exec(t);if(!e)return[,];const[,i,a,E]=e;return[`--${i??a}`,E]}const Dq=4;function p8(t,e,i=1){bd(i<=Dq,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");const[a,E]=Oq(t);if(!a)return;const p=window.getComputedStyle(e).getPropertyValue(a);if(p){const g=p.trim();return UU(g)?parseFloat(g):g}return uN(E)?p8(E,e,i+1):E}function yN(t,e){return(t==null?void 0:t[e])??(t==null?void 0:t.default)??t}const g8=new Set(["width","height","top","left","right","bottom",...rv]),Mq={test:t=>t==="auto",parse:t=>t},b8=t=>e=>e.test(t),v8=[iv,Jt,eu,Zf,TX,SX,Mq],s4=t=>v8.find(b8(t));function kq(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||jU(t):!0}const Iq=new Set(["brightness","contrast","saturate","opacity"]);function $q(t){const[e,i]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[a]=i.match(dN)||[];if(!a)return t;const E=i.replace(a,"");let p=Iq.has(e)?1:0;return a!==i&&(p*=100),e+"("+p+E+")"}const Uq=/\b([a-z-]*)\(.*?\)/gu,q_={...mh,getAnimatableNone:t=>{const e=t.match(Uq);return e?e.map($q).join(" "):t}},l4={...iv,transform:Math.round},Hq={rotate:Zf,rotateX:Zf,rotateY:Zf,rotateZ:Zf,scale:AS,scaleX:AS,scaleY:AS,scaleZ:AS,skew:Zf,skewX:Zf,skewY:Zf,distance:Jt,translateX:Jt,translateY:Jt,translateZ:Jt,x:Jt,y:Jt,z:Jt,perspective:Jt,transformPerspective:Jt,opacity:CE,originX:X3,originY:X3,originZ:Jt},EN={borderWidth:Jt,borderTopWidth:Jt,borderRightWidth:Jt,borderBottomWidth:Jt,borderLeftWidth:Jt,borderRadius:Jt,radius:Jt,borderTopLeftRadius:Jt,borderTopRightRadius:Jt,borderBottomRightRadius:Jt,borderBottomLeftRadius:Jt,width:Jt,maxWidth:Jt,height:Jt,maxHeight:Jt,top:Jt,right:Jt,bottom:Jt,left:Jt,padding:Jt,paddingTop:Jt,paddingRight:Jt,paddingBottom:Jt,paddingLeft:Jt,margin:Jt,marginTop:Jt,marginRight:Jt,marginBottom:Jt,marginLeft:Jt,backgroundPositionX:Jt,backgroundPositionY:Jt,...Hq,zIndex:l4,fillOpacity:CE,strokeOpacity:CE,numOctaves:l4},jq={...EN,color:Di,backgroundColor:Di,outlineColor:Di,fill:Di,stroke:Di,borderColor:Di,borderTopColor:Di,borderRightColor:Di,borderBottomColor:Di,borderLeftColor:Di,filter:q_,WebkitFilter:q_},y8=t=>jq[t];function E8(t,e){let i=y8(t);return i!==q_&&(i=mh),i.getAnimatableNone?i.getAnimatableNone(e):void 0}const zq=new Set(["auto","none","0"]);function Bq(t,e,i){let a=0,E;for(;a<t.length&&!E;){const p=t[a];typeof p=="string"&&!zq.has(p)&&NE(p).values.length&&(E=t[a]),a++}if(E&&i)for(const p of e)t[p]=E8(i,E)}class Fq extends vN{constructor(e,i,a,E,p){super(e,i,a,E,p,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:i,name:a}=this;if(!i||!i.current)return;super.readKeyframes();for(let f=0;f<e.length;f++){let b=e[f];if(typeof b=="string"&&(b=b.trim(),uN(b))){const c=p8(b,i.current);c!==void 0&&(e[f]=c),f===e.length-1&&(this.finalKeyframe=b)}}if(this.resolveNoneKeyframes(),!g8.has(a)||e.length!==2)return;const[E,p]=e,g=s4(E),y=s4(p);if(g!==y)if(o4(g)&&o4(y))for(let f=0;f<e.length;f++){const b=e[f];typeof b=="string"&&(e[f]=parseFloat(b))}else cp[a]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:i}=this,a=[];for(let E=0;E<e.length;E++)(e[E]===null||kq(e[E]))&&a.push(E);a.length&&Bq(e,a,i)}measureInitialState(){const{element:e,unresolvedKeyframes:i,name:a}=this;if(!e||!e.current)return;a==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=cp[a](e.measureViewportBox(),window.getComputedStyle(e.current)),i[0]=this.measuredOrigin;const E=i[i.length-1];E!==void 0&&e.getValue(a,E).jump(E,!1)}measureEndState(){var y;const{element:e,name:i,unresolvedKeyframes:a}=this;if(!e||!e.current)return;const E=e.getValue(i);E&&E.jump(this.measuredOrigin,!1);const p=a.length-1,g=a[p];a[p]=cp[i](e.measureViewportBox(),window.getComputedStyle(e.current)),g!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=g),(y=this.removedTransforms)!=null&&y.length&&this.removedTransforms.forEach(([f,b])=>{e.getValue(f).set(b)}),this.resolveNoneKeyframes()}}function Pq(t,e,i){if(t instanceof EventTarget)return[t];if(typeof t=="string"){let a=document;const E=(i==null?void 0:i[t])??a.querySelectorAll(t);return E?Array.from(E):[]}return Array.from(t)}const w8=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function Vq(t){return HU(t)&&"offsetHeight"in t}const c4=30,Gq=t=>!isNaN(parseFloat(t));class Qq{constructor(e,i={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=a=>{var p;const E=Fa.now();if(this.updatedAt!==E&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(a),this.current!==this.prev&&((p=this.events.change)==null||p.notify(this.current),this.dependents))for(const g of this.dependents)g.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=i.owner}setCurrent(e){this.current=e,this.updatedAt=Fa.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Gq(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return process.env.NODE_ENV!=="production"&&aN(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,i){this.events[e]||(this.events[e]=new rN);const a=this.events[e].add(i);return e==="change"?()=>{a(),jo.read(()=>{this.events.change.getSize()||this.stop()})}:a}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,i){this.passiveEffect=e,this.stopPassiveEffect=i}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,i,a){this.set(i),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-a}jump(e,i=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,i&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=Fa.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>c4)return 0;const i=Math.min(this.updatedAt-this.prevUpdatedAt,c4);return zU(parseFloat(this.current)-parseFloat(this.prevFrameValue),i)}start(e){return this.stop(),new Promise(i=>{this.hasAnimated=!0,this.animation=e(i),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(){var e,i;(e=this.dependents)==null||e.clear(),(i=this.events.destroy)==null||i.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Qb(t,e){return new Qq(t,e)}const{schedule:wN}=KU(queueMicrotask,!1),tc={x:!1,y:!1};function S8(){return tc.x||tc.y}function Wq(t){return t==="x"||t==="y"?tc[t]?null:(tc[t]=!0,()=>{tc[t]=!1}):tc.x||tc.y?null:(tc.x=tc.y=!0,()=>{tc.x=tc.y=!1})}function T8(t,e){const i=Pq(t),a=new AbortController,E={passive:!0,...e,signal:a.signal};return[i,E,()=>a.abort()]}function u4(t){return!(t.pointerType==="touch"||S8())}function Yq(t,e,i={}){const[a,E,p]=T8(t,i),g=y=>{if(!u4(y))return;const{target:f}=y,b=e(f,y);if(typeof b!="function"||!f)return;const c=u=>{u4(u)&&(b(u),f.removeEventListener("pointerleave",c))};f.addEventListener("pointerleave",c,E)};return a.forEach(y=>{y.addEventListener("pointerenter",g,E)}),p}const A8=(t,e)=>e?t===e?!0:A8(t,e.parentElement):!1,SN=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Xq=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function qq(t){return Xq.has(t.tagName)||t.tabIndex!==-1}const OS=new WeakSet;function d4(t){return e=>{e.key==="Enter"&&t(e)}}function o_(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const Kq=(t,e)=>{const i=t.currentTarget;if(!i)return;const a=d4(()=>{if(OS.has(i))return;o_(i,"down");const E=d4(()=>{o_(i,"up")}),p=()=>o_(i,"cancel");i.addEventListener("keyup",E,e),i.addEventListener("blur",p,e)});i.addEventListener("keydown",a,e),i.addEventListener("blur",()=>i.removeEventListener("keydown",a),e)};function f4(t){return SN(t)&&!S8()}function Zq(t,e,i={}){const[a,E,p]=T8(t,i),g=y=>{const f=y.currentTarget;if(!f4(y))return;OS.add(f);const b=e(f,y),c=(h,m)=>{window.removeEventListener("pointerup",u),window.removeEventListener("pointercancel",d),OS.has(f)&&OS.delete(f),f4(h)&&typeof b=="function"&&b(h,{success:m})},u=h=>{c(h,f===window||f===document||i.useGlobalTarget||A8(f,h.target))},d=h=>{c(h,!1)};window.addEventListener("pointerup",u,E),window.addEventListener("pointercancel",d,E)};return a.forEach(y=>{(i.useGlobalTarget?window:y).addEventListener("pointerdown",g,E),Vq(y)&&(y.addEventListener("focus",b=>Kq(b,E)),!qq(y)&&!y.hasAttribute("tabindex")&&(y.tabIndex=0))}),p}function x8(t){return HU(t)&&"ownerSVGElement"in t}function Jq(t){return x8(t)&&t.tagName==="svg"}const Hr=t=>!!(t&&t.getVelocity),eK=[...v8,Di,mh],tK=t=>eK.find(b8(t)),_8=Y.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function nK(t=!0){const e=Y.useContext(tN);if(e===null)return[!0,null];const{isPresent:i,onExitComplete:a,register:E}=e,p=Y.useId();Y.useEffect(()=>{if(t)return E(p)},[t]);const g=Y.useCallback(()=>t&&a&&a(p),[p,a,t]);return!i&&a?[!1,g]:[!0]}const C8=Y.createContext({strict:!1}),h4={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"]},Wb={};for(const t in h4)Wb[t]={isEnabled:e=>h4[t].some(i=>!!e[i])};function oK(t){for(const e in t)Wb[e]={...Wb[e],...t[e]}}const iK=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 iT(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||iK.has(t)}let N8=t=>!iT(t);function rK(t){typeof t=="function"&&(N8=e=>e.startsWith("on")?!iT(e):t(e))}try{rK(require("@emotion/is-prop-valid").default)}catch{}function aK(t,e,i){const a={};for(const E in t)E==="values"&&typeof t.values=="object"||(N8(E)||i===!0&&iT(E)||!e&&!iT(E)||t.draggable&&E.startsWith("onDrag"))&&(a[E]=t[E]);return a}const $T=Y.createContext({});function UT(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function RE(t){return typeof t=="string"||Array.isArray(t)}const TN=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],AN=["initial",...TN];function HT(t){return UT(t.animate)||AN.some(e=>RE(t[e]))}function R8(t){return!!(HT(t)||t.variants)}function sK(t,e){if(HT(t)){const{initial:i,animate:a}=t;return{initial:i===!1||RE(i)?i:void 0,animate:RE(a)?a:void 0}}return t.inherit!==!1?e:{}}function lK(t){const{initial:e,animate:i}=sK(t,Y.useContext($T));return Y.useMemo(()=>({initial:e,animate:i}),[m4(e),m4(i)])}function m4(t){return Array.isArray(t)?t.join(" "):t}const LE={};function cK(t){for(const e in t)LE[e]=t[e],cN(e)&&(LE[e].isCSSVariable=!0)}function L8(t,{layout:e,layoutId:i}){return av.has(t)||t.startsWith("origin")||(e||i!==void 0)&&(!!LE[t]||t==="opacity")}const uK={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},dK=rv.length;function fK(t,e,i){let a="",E=!0;for(let p=0;p<dK;p++){const g=rv[p],y=t[g];if(y===void 0)continue;let f=!0;if(typeof y=="number"?f=y===(g.startsWith("scale")?1:0):f=parseFloat(y)===0,!f||i){const b=w8(y,EN[g]);if(!f){E=!1;const c=uK[g]||g;a+=`${c}(${b}) `}i&&(e[g]=b)}}return a=a.trim(),i?a=i(e,E?"":a):E&&(a="none"),a}function xN(t,e,i){const{style:a,vars:E,transformOrigin:p}=t;let g=!1,y=!1;for(const f in e){const b=e[f];if(av.has(f)){g=!0;continue}else if(cN(f)){E[f]=b;continue}else{const c=w8(b,EN[f]);f.startsWith("origin")?(y=!0,p[f]=c):a[f]=c}}if(e.transform||(g||i?a.transform=fK(e,t.transform,i):a.transform&&(a.transform="none")),y){const{originX:f="50%",originY:b="50%",originZ:c=0}=p;a.transformOrigin=`${f} ${b} ${c}`}}const _N=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function O8(t,e,i){for(const a in e)!Hr(e[a])&&!L8(a,i)&&(t[a]=e[a])}function hK({transformTemplate:t},e){return Y.useMemo(()=>{const i=_N();return xN(i,e,t),Object.assign({},i.vars,i.style)},[e])}function mK(t,e){const i=t.style||{},a={};return O8(a,i,t),Object.assign(a,hK(t,e)),a}function pK(t,e){const i={},a=mK(t,e);return t.drag&&t.dragListener!==!1&&(i.draggable=!1,a.userSelect=a.WebkitUserSelect=a.WebkitTouchCallout="none",a.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(i.tabIndex=0),i.style=a,i}const gK={offset:"stroke-dashoffset",array:"stroke-dasharray"},bK={offset:"strokeDashoffset",array:"strokeDasharray"};function vK(t,e,i=1,a=0,E=!0){t.pathLength=1;const p=E?gK:bK;t[p.offset]=Jt.transform(-a);const g=Jt.transform(e),y=Jt.transform(i);t[p.array]=`${g} ${y}`}function D8(t,{attrX:e,attrY:i,attrScale:a,pathLength:E,pathSpacing:p=1,pathOffset:g=0,...y},f,b,c){if(xN(t,y,b),f){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:u,style:d}=t;u.transform&&(d.transform=u.transform,delete u.transform),(d.transform||u.transformOrigin)&&(d.transformOrigin=u.transformOrigin??"50% 50%",delete u.transformOrigin),d.transform&&(d.transformBox=(c==null?void 0:c.transformBox)??"fill-box",delete u.transformBox),e!==void 0&&(u.x=e),i!==void 0&&(u.y=i),a!==void 0&&(u.scale=a),E!==void 0&&vK(u,E,p,g,!1)}const M8=()=>({..._N(),attrs:{}}),k8=t=>typeof t=="string"&&t.toLowerCase()==="svg";function yK(t,e,i,a){const E=Y.useMemo(()=>{const p=M8();return D8(p,e,k8(a),t.transformTemplate,t.style),{...p.attrs,style:{...p.style}}},[e]);if(t.style){const p={};O8(p,t.style,t),E.style={...p,...E.style}}return E}const EK=["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 CN(t){return typeof t!="string"||t.includes("-")?!1:!!(EK.indexOf(t)>-1||/[A-Z]/u.test(t))}function wK(t,e,i,{latestValues:a},E,p=!1){const y=(CN(t)?yK:pK)(e,a,E,t),f=aK(e,typeof t=="string",p),b=t!==Y.Fragment?{...f,...y,ref:i}:{},{children:c}=e,u=Y.useMemo(()=>Hr(c)?c.get():c,[c]);return Y.createElement(t,{...b,children:u})}function p4(t){const e=[{},{}];return t==null||t.values.forEach((i,a)=>{e[0][a]=i.get(),e[1][a]=i.getVelocity()}),e}function NN(t,e,i,a){if(typeof e=="function"){const[E,p]=p4(a);e=e(i!==void 0?i:t.custom,E,p)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[E,p]=p4(a);e=e(i!==void 0?i:t.custom,E,p)}return e}function DS(t){return Hr(t)?t.get():t}function SK({scrapeMotionValuesFromProps:t,createRenderState:e},i,a,E){return{latestValues:TK(i,a,E,t),renderState:e()}}function TK(t,e,i,a){const E={},p=a(t,{});for(const d in p)E[d]=DS(p[d]);let{initial:g,animate:y}=t;const f=HT(t),b=R8(t);e&&b&&!f&&t.inherit!==!1&&(g===void 0&&(g=e.initial),y===void 0&&(y=e.animate));let c=i?i.initial===!1:!1;c=c||g===!1;const u=c?y:g;if(u&&typeof u!="boolean"&&!UT(u)){const d=Array.isArray(u)?u:[u];for(let h=0;h<d.length;h++){const m=NN(t,d[h]);if(m){const{transitionEnd:S,transition:T,...A}=m;for(const N in A){let O=A[N];if(Array.isArray(O)){const D=c?O.length-1:0;O=O[D]}O!==null&&(E[N]=O)}for(const N in S)E[N]=S[N]}}}return E}const I8=t=>(e,i)=>{const a=Y.useContext($T),E=Y.useContext(tN),p=()=>SK(t,e,a,E);return i?p():oX(p)};function RN(t,e,i){var p;const{style:a}=t,E={};for(const g in a)(Hr(a[g])||e.style&&Hr(e.style[g])||L8(g,t)||((p=i==null?void 0:i.getValue(g))==null?void 0:p.liveStyle)!==void 0)&&(E[g]=a[g]);return E}const AK=I8({scrapeMotionValuesFromProps:RN,createRenderState:_N});function $8(t,e,i){const a=RN(t,e,i);for(const E in t)if(Hr(t[E])||Hr(e[E])){const p=rv.indexOf(E)!==-1?"attr"+E.charAt(0).toUpperCase()+E.substring(1):E;a[p]=t[E]}return a}const xK=I8({scrapeMotionValuesFromProps:$8,createRenderState:M8}),_K=Symbol.for("motionComponentSymbol");function kb(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function CK(t,e,i){return Y.useCallback(a=>{a&&t.onMount&&t.onMount(a),e&&(a?e.mount(a):e.unmount()),i&&(typeof i=="function"?i(a):kb(i)&&(i.current=a))},[e])}const LN=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),NK="framerAppearId",U8="data-"+LN(NK),H8=Y.createContext({});function RK(t,e,i,a,E){var S,T;const{visualElement:p}=Y.useContext($T),g=Y.useContext(C8),y=Y.useContext(tN),f=Y.useContext(_8).reducedMotion,b=Y.useRef(null);a=a||g.renderer,!b.current&&a&&(b.current=a(t,{visualState:e,parent:p,props:i,presenceContext:y,blockInitialAnimation:y?y.initial===!1:!1,reducedMotionConfig:f}));const c=b.current,u=Y.useContext(H8);c&&!c.projection&&E&&(c.type==="html"||c.type==="svg")&&LK(b.current,i,E,u);const d=Y.useRef(!1);Y.useInsertionEffect(()=>{c&&d.current&&c.update(i,y)});const h=i[U8],m=Y.useRef(!!h&&!((S=window.MotionHandoffIsComplete)!=null&&S.call(window,h))&&((T=window.MotionHasOptimisedAnimation)==null?void 0:T.call(window,h)));return iX(()=>{c&&(d.current=!0,window.MotionIsMounted=!0,c.updateFeatures(),c.scheduleRenderMicrotask(),m.current&&c.animationState&&c.animationState.animateChanges())}),Y.useEffect(()=>{c&&(!m.current&&c.animationState&&c.animationState.animateChanges(),m.current&&(queueMicrotask(()=>{var A;(A=window.MotionHandoffMarkAsComplete)==null||A.call(window,h)}),m.current=!1),c.enteringChildren=void 0)}),c}function LK(t,e,i,a){const{layoutId:E,layout:p,drag:g,dragConstraints:y,layoutScroll:f,layoutRoot:b,layoutCrossfade:c}=e;t.projection=new i(t.latestValues,e["data-framer-portal-id"]?void 0:j8(t.parent)),t.projection.setOptions({layoutId:E,layout:p,alwaysMeasureLayout:!!g||y&&kb(y),visualElement:t,animationType:typeof p=="string"?p:"both",initialPromotionConfig:a,crossfade:c,layoutScroll:f,layoutRoot:b})}function j8(t){if(t)return t.options.allowProjection!==!1?t.projection:j8(t.parent)}function i_(t,{forwardMotionProps:e=!1}={},i,a){i&&oK(i);const E=CN(t)?xK:AK;function p(y,f){let b;const c={...Y.useContext(_8),...y,layoutId:OK(y)},{isStatic:u}=c,d=lK(y),h=E(y,u);if(!u&&eN){DK(c,i);const m=MK(c);b=m.MeasureLayout,d.visualElement=RK(t,h,c,a,m.ProjectionNode)}return H.jsxs($T.Provider,{value:d,children:[b&&d.visualElement?H.jsx(b,{visualElement:d.visualElement,...c}):null,wK(t,y,CK(h,d.visualElement,f),h,u,e)]})}p.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const g=Y.forwardRef(p);return g[_K]=t,g}function OK({layoutId:t}){const e=Y.useContext($U).id;return e&&t!==void 0?e+"-"+t:t}function DK(t,e){const i=Y.useContext(C8).strict;if(process.env.NODE_ENV!=="production"&&e&&i){const a="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?ov(!1,a,"lazy-strict-mode"):bd(!1,a,"lazy-strict-mode")}}function MK(t){const{drag:e,layout:i}=Wb;if(!e&&!i)return{};const a={...e,...i};return{MeasureLayout:e!=null&&e.isEnabled(t)||i!=null&&i.isEnabled(t)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}function kK(t,e){if(typeof Proxy>"u")return i_;const i=new Map,a=(p,g)=>i_(p,g,t,e),E=(p,g)=>(process.env.NODE_ENV!=="production"&&aN(!1,"motion() is deprecated. Use motion.create() instead."),a(p,g));return new Proxy(E,{get:(p,g)=>g==="create"?a:(i.has(g)||i.set(g,i_(g,void 0,t,e)),i.get(g))})}function z8({top:t,left:e,right:i,bottom:a}){return{x:{min:e,max:i},y:{min:t,max:a}}}function IK({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function $K(t,e){if(!e)return t;const i=e({x:t.left,y:t.top}),a=e({x:t.right,y:t.bottom});return{top:i.y,left:i.x,bottom:a.y,right:a.x}}function r_(t){return t===void 0||t===1}function K_({scale:t,scaleX:e,scaleY:i}){return!r_(t)||!r_(e)||!r_(i)}function np(t){return K_(t)||B8(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function B8(t){return g4(t.x)||g4(t.y)}function g4(t){return t&&t!=="0%"}function rT(t,e,i){const a=t-i,E=e*a;return i+E}function b4(t,e,i,a,E){return E!==void 0&&(t=rT(t,E,a)),rT(t,i,a)+e}function Z_(t,e=0,i=1,a,E){t.min=b4(t.min,e,i,a,E),t.max=b4(t.max,e,i,a,E)}function F8(t,{x:e,y:i}){Z_(t.x,e.translate,e.scale,e.originPoint),Z_(t.y,i.translate,i.scale,i.originPoint)}const v4=.999999999999,y4=1.0000000000001;function UK(t,e,i,a=!1){const E=i.length;if(!E)return;e.x=e.y=1;let p,g;for(let y=0;y<E;y++){p=i[y],g=p.projectionDelta;const{visualElement:f}=p.options;f&&f.props.style&&f.props.style.display==="contents"||(a&&p.options.layoutScroll&&p.scroll&&p!==p.root&&$b(t,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),g&&(e.x*=g.x.scale,e.y*=g.y.scale,F8(t,g)),a&&np(p.latestValues)&&$b(t,p.latestValues))}e.x<y4&&e.x>v4&&(e.x=1),e.y<y4&&e.y>v4&&(e.y=1)}function Ib(t,e){t.min=t.min+e,t.max=t.max+e}function E4(t,e,i,a,E=.5){const p=qo(t.min,t.max,E);Z_(t,e,i,p,a)}function $b(t,e){E4(t.x,e.x,e.scaleX,e.scale,e.originX),E4(t.y,e.y,e.scaleY,e.scale,e.originY)}function P8(t,e){return z8($K(t.getBoundingClientRect(),e))}function HK(t,e,i){const a=P8(t,i),{scroll:E}=e;return E&&(Ib(a.x,E.offset.x),Ib(a.y,E.offset.y)),a}const w4=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ub=()=>({x:w4(),y:w4()}),S4=()=>({min:0,max:0}),fi=()=>({x:S4(),y:S4()}),J_={current:null},V8={current:!1};function jK(){if(V8.current=!0,!!eN)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>J_.current=t.matches;t.addEventListener("change",e),e()}else J_.current=!1}const zK=new WeakMap;function BK(t,e,i){for(const a in e){const E=e[a],p=i[a];if(Hr(E))t.addValue(a,E);else if(Hr(p))t.addValue(a,Qb(E,{owner:t}));else if(p!==E)if(t.hasValue(a)){const g=t.getValue(a);g.liveStyle===!0?g.jump(E):g.hasAnimated||g.set(E)}else{const g=t.getStaticValue(a);t.addValue(a,Qb(g!==void 0?g:E,{owner:t}))}}for(const a in i)e[a]===void 0&&t.removeValue(a);return e}const T4=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class FK{scrapeMotionValuesFromProps(e,i,a){return{}}constructor({parent:e,props:i,presenceContext:a,reducedMotionConfig:E,blockInitialAnimation:p,visualState:g},y={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=vN,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 d=Fa.now();this.renderScheduledAt<d&&(this.renderScheduledAt=d,jo.render(this.render,!1,!0))};const{latestValues:f,renderState:b}=g;this.latestValues=f,this.baseTarget={...f},this.initialValues=i.initial?{...f}:{},this.renderState=b,this.parent=e,this.props=i,this.presenceContext=a,this.depth=e?e.depth+1:0,this.reducedMotionConfig=E,this.options=y,this.blockInitialAnimation=!!p,this.isControllingVariants=HT(i),this.isVariantNode=R8(i),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:c,...u}=this.scrapeMotionValuesFromProps(i,{},this);for(const d in u){const h=u[d];f[d]!==void 0&&Hr(h)&&h.set(f[d])}}mount(e){var i;this.current=e,zK.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,E)=>this.bindToMotionValue(E,a)),V8.current||jK(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:J_.current,process.env.NODE_ENV!=="production"&&aN(this.shouldReduceMotion!==!0,"You have Reduced Motion enabled on your device. Animations may not appear as expected.","reduced-motion-disabled"),(i=this.parent)==null||i.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var e;this.projection&&this.projection.unmount(),hh(this.notifyUpdate),hh(this.render),this.valueSubscriptions.forEach(i=>i()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const i in this.events)this.events[i].clear();for(const i in this.features){const a=this.features[i];a&&(a.unmount(),a.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,i){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const a=av.has(e);a&&this.onBindTransform&&this.onBindTransform();const E=i.on("change",g=>{this.latestValues[e]=g,this.props.onUpdate&&jo.preRender(this.notifyUpdate),a&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let p;window.MotionCheckAppearSync&&(p=window.MotionCheckAppearSync(this,e,i)),this.valueSubscriptions.set(e,()=>{E(),p&&p(),i.owner&&i.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in Wb){const i=Wb[e];if(!i)continue;const{isEnabled:a,Feature:E}=i;if(!this.features[e]&&E&&a(this.props)&&(this.features[e]=new E(this)),this.features[e]){const p=this.features[e];p.isMounted?p.update():(p.mount(),p.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):fi()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,i){this.latestValues[e]=i}update(e,i){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=i;for(let a=0;a<T4.length;a++){const E=T4[a];this.propEventSubscriptions[E]&&(this.propEventSubscriptions[E](),delete this.propEventSubscriptions[E]);const p="on"+E,g=e[p];g&&(this.propEventSubscriptions[E]=this.on(E,g))}this.prevMotionValues=BK(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]: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(e){const i=this.getClosestVariantNode();if(i)return i.variantChildren&&i.variantChildren.add(e),()=>i.variantChildren.delete(e)}addValue(e,i){const a=this.values.get(e);i!==a&&(a&&this.removeValue(e),this.bindToMotionValue(e,i),this.values.set(e,i),this.latestValues[e]=i.get())}removeValue(e){this.values.delete(e);const i=this.valueSubscriptions.get(e);i&&(i(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,i){if(this.props.values&&this.props.values[e])return this.props.values[e];let a=this.values.get(e);return a===void 0&&i!==void 0&&(a=Qb(i===null?void 0:i,{owner:this}),this.addValue(e,a)),a}readValue(e,i){let a=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return a!=null&&(typeof a=="string"&&(UU(a)||jU(a))?a=parseFloat(a):!tK(a)&&mh.test(i)&&(a=E8(e,i)),this.setBaseTarget(e,Hr(a)?a.get():a)),Hr(a)?a.get():a}setBaseTarget(e,i){this.baseTarget[e]=i}getBaseTarget(e){var p;const{initial:i}=this.props;let a;if(typeof i=="string"||typeof i=="object"){const g=NN(this.props,i,(p=this.presenceContext)==null?void 0:p.custom);g&&(a=g[e])}if(i&&a!==void 0)return a;const E=this.getBaseTargetFromProps(this.props,e);return E!==void 0&&!Hr(E)?E:this.initialValues[e]!==void 0&&a===void 0?void 0:this.baseTarget[e]}on(e,i){return this.events[e]||(this.events[e]=new rN),this.events[e].add(i)}notify(e,...i){this.events[e]&&this.events[e].notify(...i)}scheduleRenderMicrotask(){wN.render(this.render)}}class G8 extends FK{constructor(){super(...arguments),this.KeyframeResolver=Fq}sortInstanceNodePosition(e,i){return e.compareDocumentPosition(i)&2?1:-1}getBaseTargetFromProps(e,i){return e.style?e.style[i]:void 0}removeValueFromRenderState(e,{vars:i,style:a}){delete i[e],delete a[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;Hr(e)&&(this.childSubscription=e.on("change",i=>{this.current&&(this.current.textContent=`${i}`)}))}}function Q8(t,{style:e,vars:i},a,E){const p=t.style;let g;for(g in e)p[g]=e[g];E==null||E.applyProjectionStyles(p,a);for(g in i)p.setProperty(g,i[g])}function PK(t){return window.getComputedStyle(t)}class VK extends G8{constructor(){super(...arguments),this.type="html",this.renderInstance=Q8}readValueFromInstance(e,i){var a;if(av.has(i))return(a=this.projection)!=null&&a.isProjecting?V_(i):aq(e,i);{const E=PK(e),p=(cN(i)?E.getPropertyValue(i):E[i])||0;return typeof p=="string"?p.trim():p}}measureInstanceViewportBox(e,{transformPagePoint:i}){return P8(e,i)}build(e,i,a){xN(e,i,a.transformTemplate)}scrapeMotionValuesFromProps(e,i,a){return RN(e,i,a)}}const W8=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 GK(t,e,i,a){Q8(t,e,void 0,a);for(const E in e.attrs)t.setAttribute(W8.has(E)?E:LN(E),e.attrs[E])}class QK extends G8{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=fi}getBaseTargetFromProps(e,i){return e[i]}readValueFromInstance(e,i){if(av.has(i)){const a=y8(i);return a&&a.default||0}return i=W8.has(i)?i:LN(i),e.getAttribute(i)}scrapeMotionValuesFromProps(e,i,a){return $8(e,i,a)}build(e,i,a){D8(e,i,this.isSVGTag,a.transformTemplate,a.style)}renderInstance(e,i,a,E){GK(e,i,a,E)}mount(e){this.isSVGTag=k8(e.tagName),super.mount(e)}}const WK=(t,e)=>CN(t)?new QK(e):new VK(e,{allowProjection:t!==Y.Fragment});function Bb(t,e,i){const a=t.getProps();return NN(a,e,i!==void 0?i:a.custom,t)}const eC=t=>Array.isArray(t);function YK(t,e,i){t.hasValue(e)?t.getValue(e).set(i):t.addValue(e,Qb(i))}function XK(t){return eC(t)?t[t.length-1]||0:t}function qK(t,e){const i=Bb(t,e);let{transitionEnd:a={},transition:E={},...p}=i||{};p={...p,...a};for(const g in p){const y=XK(p[g]);YK(t,g,y)}}function KK(t){return!!(Hr(t)&&t.add)}function tC(t,e){const i=t.getValue("willChange");if(KK(i))return i.add(e);if(!i&&vd.WillChange){const a=new vd.WillChange("auto");t.addValue("willChange",a),a.add(e)}}function Y8(t){return t.props[U8]}const ZK=t=>t!==null;function JK(t,{repeat:e,repeatType:i="loop"},a){const E=t.filter(ZK),p=e&&i!=="loop"&&e%2===1?0:E.length-1;return E[p]}const eZ={type:"spring",stiffness:500,damping:25,restSpeed:10},tZ=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),nZ={type:"keyframes",duration:.8},oZ={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},iZ=(t,{keyframes:e})=>e.length>2?nZ:av.has(t)?t.startsWith("scale")?tZ(e[1]):eZ:oZ;function rZ({when:t,delay:e,delayChildren:i,staggerChildren:a,staggerDirection:E,repeat:p,repeatType:g,repeatDelay:y,from:f,elapsed:b,...c}){return!!Object.keys(c).length}const ON=(t,e,i,a={},E,p)=>g=>{const y=yN(a,t)||{},f=y.delay||a.delay||0;let{elapsed:b=0}=a;b=b-nc(f);const c={keyframes:Array.isArray(i)?i:[null,i],ease:"easeOut",velocity:e.getVelocity(),...y,delay:-b,onUpdate:d=>{e.set(d),y.onUpdate&&y.onUpdate(d)},onComplete:()=>{g(),y.onComplete&&y.onComplete()},name:t,motionValue:e,element:p?void 0:E};rZ(y)||Object.assign(c,iZ(t,c)),c.duration&&(c.duration=nc(c.duration)),c.repeatDelay&&(c.repeatDelay=nc(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let u=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(X_(c),c.delay===0&&(u=!0)),(vd.instantAnimations||vd.skipAnimations)&&(u=!0,X_(c),c.delay=0),c.allowFlatten=!y.type&&!y.ease,u&&!p&&e.get()!==void 0){const d=JK(c.keyframes,y);if(d!==void 0){jo.update(()=>{c.onUpdate(d),c.onComplete()});return}}return y.isSync?new bN(c):new Rq(c)};function aZ({protectedKeys:t,needsAnimating:e},i){const a=t.hasOwnProperty(i)&&e[i]!==!0;return e[i]=!1,a}function X8(t,e,{delay:i=0,transitionOverride:a,type:E}={}){let{transition:p=t.getDefaultTransition(),transitionEnd:g,...y}=e;a&&(p=a);const f=[],b=E&&t.animationState&&t.animationState.getState()[E];for(const c in y){const u=t.getValue(c,t.latestValues[c]??null),d=y[c];if(d===void 0||b&&aZ(b,c))continue;const h={delay:i,...yN(p||{},c)},m=u.get();if(m!==void 0&&!u.isAnimating&&!Array.isArray(d)&&d===m&&!h.velocity)continue;let S=!1;if(window.MotionHandoffAnimation){const A=Y8(t);if(A){const N=window.MotionHandoffAnimation(A,c,jo);N!==null&&(h.startTime=N,S=!0)}}tC(t,c),u.start(ON(c,u,d,t.shouldReduceMotion&&g8.has(c)?{type:!1}:h,t,S));const T=u.animation;T&&f.push(T)}return g&&Promise.all(f).then(()=>{jo.update(()=>{g&&qK(t,g)})}),f}function q8(t,e,i,a=0,E=1){const p=Array.from(t).sort((b,c)=>b.sortNodePosition(c)).indexOf(e),g=t.size,y=(g-1)*a;return typeof i=="function"?i(p,g):E===1?p*a:y-p*a}function nC(t,e,i={}){var f;const a=Bb(t,e,i.type==="exit"?(f=t.presenceContext)==null?void 0:f.custom:void 0);let{transition:E=t.getDefaultTransition()||{}}=a||{};i.transitionOverride&&(E=i.transitionOverride);const p=a?()=>Promise.all(X8(t,a,i)):()=>Promise.resolve(),g=t.variantChildren&&t.variantChildren.size?(b=0)=>{const{delayChildren:c=0,staggerChildren:u,staggerDirection:d}=E;return sZ(t,e,b,c,u,d,i)}:()=>Promise.resolve(),{when:y}=E;if(y){const[b,c]=y==="beforeChildren"?[p,g]:[g,p];return b().then(()=>c())}else return Promise.all([p(),g(i.delay)])}function sZ(t,e,i=0,a=0,E=0,p=1,g){const y=[];for(const f of t.variantChildren)f.notify("AnimationStart",e),y.push(nC(f,e,{...g,delay:i+(typeof a=="function"?0:a)+q8(t.variantChildren,f,a,E,p)}).then(()=>f.notify("AnimationComplete",e)));return Promise.all(y)}function lZ(t,e,i={}){t.notify("AnimationStart",e);let a;if(Array.isArray(e)){const E=e.map(p=>nC(t,p,i));a=Promise.all(E)}else if(typeof e=="string")a=nC(t,e,i);else{const E=typeof e=="function"?Bb(t,e,i.custom):e;a=Promise.all(X8(t,E,i))}return a.then(()=>{t.notify("AnimationComplete",e)})}function K8(t,e){if(!Array.isArray(e))return!1;const i=e.length;if(i!==t.length)return!1;for(let a=0;a<i;a++)if(e[a]!==t[a])return!1;return!0}const cZ=AN.length;function Z8(t){if(!t)return;if(!t.isControllingVariants){const i=t.parent?Z8(t.parent)||{}:{};return t.props.initial!==void 0&&(i.initial=t.props.initial),i}const e={};for(let i=0;i<cZ;i++){const a=AN[i],E=t.props[a];(RE(E)||E===!1)&&(e[a]=E)}return e}const uZ=[...TN].reverse(),dZ=TN.length;function fZ(t){return e=>Promise.all(e.map(({animation:i,options:a})=>lZ(t,i,a)))}function hZ(t){let e=fZ(t),i=A4(),a=!0;const E=f=>(b,c)=>{var d;const u=Bb(t,c,f==="exit"?(d=t.presenceContext)==null?void 0:d.custom:void 0);if(u){const{transition:h,transitionEnd:m,...S}=u;b={...b,...S,...m}}return b};function p(f){e=f(t)}function g(f){const{props:b}=t,c=Z8(t.parent)||{},u=[],d=new Set;let h={},m=1/0;for(let T=0;T<dZ;T++){const A=uZ[T],N=i[A],O=b[A]!==void 0?b[A]:c[A],D=RE(O),R=A===f?N.isActive:null;R===!1&&(m=T);let C=O===c[A]&&O!==b[A]&&D;if(C&&a&&t.manuallyAnimateOnMount&&(C=!1),N.protectedKeys={...h},!N.isActive&&R===null||!O&&!N.prevProp||UT(O)||typeof O=="boolean")continue;const $=mZ(N.prevProp,O);let F=$||A===f&&N.isActive&&!C&&D||T>m&&D,U=!1;const j=Array.isArray(O)?O:[O];let X=j.reduce(E(A),{});R===!1&&(X={});const{prevResolvedValues:P={}}=N,B={...P,...X},k=W=>{F=!0,d.has(W)&&(U=!0,d.delete(W)),N.needsAnimating[W]=!0;const Q=t.getValue(W);Q&&(Q.liveStyle=!1)};for(const W in B){const Q=X[W],J=P[W];if(h.hasOwnProperty(W))continue;let K=!1;eC(Q)&&eC(J)?K=!K8(Q,J):K=Q!==J,K?Q!=null?k(W):d.add(W):Q!==void 0&&d.has(W)?k(W):N.protectedKeys[W]=!0}N.prevProp=O,N.prevResolvedValues=X,N.isActive&&(h={...h,...X}),a&&t.blockInitialAnimation&&(F=!1);const M=C&&$;F&&(!M||U)&&u.push(...j.map(W=>{const Q={type:A};if(typeof W=="string"&&a&&!M&&t.manuallyAnimateOnMount&&t.parent){const{parent:J}=t,K=Bb(J,W);if(J.enteringChildren&&K){const{delayChildren:Z}=K.transition||{};Q.delay=q8(J.enteringChildren,t,Z)}}return{animation:W,options:Q}}))}if(d.size){const T={};if(typeof b.initial!="boolean"){const A=Bb(t,Array.isArray(b.initial)?b.initial[0]:b.initial);A&&A.transition&&(T.transition=A.transition)}d.forEach(A=>{const N=t.getBaseTarget(A),O=t.getValue(A);O&&(O.liveStyle=!0),T[A]=N??null}),u.push({animation:T})}let S=!!u.length;return a&&(b.initial===!1||b.initial===b.animate)&&!t.manuallyAnimateOnMount&&(S=!1),a=!1,S?e(u):Promise.resolve()}function y(f,b){var u;if(i[f].isActive===b)return Promise.resolve();(u=t.variantChildren)==null||u.forEach(d=>{var h;return(h=d.animationState)==null?void 0:h.setActive(f,b)}),i[f].isActive=b;const c=g(f);for(const d in i)i[d].protectedKeys={};return c}return{animateChanges:g,setActive:y,setAnimateFunction:p,getState:()=>i,reset:()=>{i=A4(),a=!0}}}function mZ(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!K8(e,t):!1}function ep(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function A4(){return{animate:ep(!0),whileInView:ep(),whileHover:ep(),whileTap:ep(),whileDrag:ep(),whileFocus:ep(),exit:ep()}}class bh{constructor(e){this.isMounted=!1,this.node=e}update(){}}class pZ extends bh{constructor(e){super(e),e.animationState||(e.animationState=hZ(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();UT(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:i}=this.node.prevProps||{};e!==i&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let gZ=0;class bZ extends bh{constructor(){super(...arguments),this.id=gZ++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:i}=this.node.presenceContext,{isPresent:a}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===a)return;const E=this.node.animationState.setActive("exit",!e);i&&!e&&E.then(()=>{i(this.id)})}mount(){const{register:e,onExitComplete:i}=this.node.presenceContext||{};i&&i(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const vZ={animation:{Feature:pZ},exit:{Feature:bZ}};function OE(t,e,i,a={passive:!0}){return t.addEventListener(e,i,a),()=>t.removeEventListener(e,i)}function qE(t){return{point:{x:t.pageX,y:t.pageY}}}const yZ=t=>e=>SN(e)&&t(e,qE(e));function uE(t,e,i,a){return OE(t,e,yZ(i),a)}const J8=1e-4,EZ=1-J8,wZ=1+J8,eH=.01,SZ=0-eH,TZ=0+eH;function fa(t){return t.max-t.min}function AZ(t,e,i){return Math.abs(t-e)<=i}function x4(t,e,i,a=.5){t.origin=a,t.originPoint=qo(e.min,e.max,t.origin),t.scale=fa(i)/fa(e),t.translate=qo(i.min,i.max,t.origin)-t.originPoint,(t.scale>=EZ&&t.scale<=wZ||isNaN(t.scale))&&(t.scale=1),(t.translate>=SZ&&t.translate<=TZ||isNaN(t.translate))&&(t.translate=0)}function dE(t,e,i,a){x4(t.x,e.x,i.x,a?a.originX:void 0),x4(t.y,e.y,i.y,a?a.originY:void 0)}function _4(t,e,i){t.min=i.min+e.min,t.max=t.min+fa(e)}function xZ(t,e,i){_4(t.x,e.x,i.x),_4(t.y,e.y,i.y)}function C4(t,e,i){t.min=e.min-i.min,t.max=t.min+fa(e)}function fE(t,e,i){C4(t.x,e.x,i.x),C4(t.y,e.y,i.y)}function gl(t){return[t("x"),t("y")]}const tH=({current:t})=>t?t.ownerDocument.defaultView:null,N4=(t,e)=>Math.abs(t-e);function _Z(t,e){const i=N4(t.x,e.x),a=N4(t.y,e.y);return Math.sqrt(i**2+a**2)}class nH{constructor(e,i,{transformPagePoint:a,contextWindow:E=window,dragSnapToOrigin:p=!1,distanceThreshold:g=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=s_(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,m=_Z(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!h&&!m)return;const{point:S}=d,{timestamp:T}=yr;this.history.push({...S,timestamp:T});const{onStart:A,onMove:N}=this.handlers;h||(A&&A(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),N&&N(this.lastMoveEvent,d)},this.handlePointerMove=(d,h)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=a_(h,this.transformPagePoint),jo.update(this.updatePoint,!0)},this.handlePointerUp=(d,h)=>{this.end();const{onEnd:m,onSessionEnd:S,resumeAnimation:T}=this.handlers;if(this.dragSnapToOrigin&&T&&T(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const A=s_(d.type==="pointercancel"?this.lastMoveEventInfo:a_(h,this.transformPagePoint),this.history);this.startEvent&&m&&m(d,A),S&&S(d,A)},!SN(e))return;this.dragSnapToOrigin=p,this.handlers=i,this.transformPagePoint=a,this.distanceThreshold=g,this.contextWindow=E||window;const y=qE(e),f=a_(y,this.transformPagePoint),{point:b}=f,{timestamp:c}=yr;this.history=[{...b,timestamp:c}];const{onSessionStart:u}=i;u&&u(e,s_(f,this.history)),this.removeListeners=WE(uE(this.contextWindow,"pointermove",this.handlePointerMove),uE(this.contextWindow,"pointerup",this.handlePointerUp),uE(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),hh(this.updatePoint)}}function a_(t,e){return e?{point:e(t.point)}:t}function R4(t,e){return{x:t.x-e.x,y:t.y-e.y}}function s_({point:t},e){return{point:t,delta:R4(t,oH(e)),offset:R4(t,CZ(e)),velocity:NZ(e,.1)}}function CZ(t){return t[0]}function oH(t){return t[t.length-1]}function NZ(t,e){if(t.length<2)return{x:0,y:0};let i=t.length-1,a=null;const E=oH(t);for(;i>=0&&(a=t[i],!(E.timestamp-a.timestamp>nc(e)));)i--;if(!a)return{x:0,y:0};const p=yl(E.timestamp-a.timestamp);if(p===0)return{x:0,y:0};const g={x:(E.x-a.x)/p,y:(E.y-a.y)/p};return g.x===1/0&&(g.x=0),g.y===1/0&&(g.y=0),g}function RZ(t,{min:e,max:i},a){return e!==void 0&&t<e?t=a?qo(e,t,a.min):Math.max(t,e):i!==void 0&&t>i&&(t=a?qo(i,t,a.max):Math.min(t,i)),t}function L4(t,e,i){return{min:e!==void 0?t.min+e:void 0,max:i!==void 0?t.max+i-(t.max-t.min):void 0}}function LZ(t,{top:e,left:i,bottom:a,right:E}){return{x:L4(t.x,i,E),y:L4(t.y,e,a)}}function O4(t,e){let i=e.min-t.min,a=e.max-t.max;return e.max-e.min<t.max-t.min&&([i,a]=[a,i]),{min:i,max:a}}function OZ(t,e){return{x:O4(t.x,e.x),y:O4(t.y,e.y)}}function DZ(t,e){let i=.5;const a=fa(t),E=fa(e);return E>a?i=_E(e.min,e.max-a,t.min):a>E&&(i=_E(t.min,t.max-E,e.min)),gd(0,1,i)}function MZ(t,e){const i={};return e.min!==void 0&&(i.min=e.min-t.min),e.max!==void 0&&(i.max=e.max-t.min),i}const oC=.35;function kZ(t=oC){return t===!1?t=0:t===!0&&(t=oC),{x:D4(t,"left","right"),y:D4(t,"top","bottom")}}function D4(t,e,i){return{min:M4(t,e),max:M4(t,i)}}function M4(t,e){return typeof t=="number"?t:t[e]||0}const IZ=new WeakMap;class $Z{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=fi(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:i=!1,distanceThreshold:a}={}){const{presenceContext:E}=this.visualElement;if(E&&E.isPresent===!1)return;const p=u=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),i&&this.snapToCursor(qE(u).point)},g=(u,d)=>{const{drag:h,dragPropagation:m,onDragStart:S}=this.getProps();if(h&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Wq(h),!this.openDragLock))return;this.latestPointerEvent=u,this.latestPanInfo=d,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),gl(A=>{let N=this.getAxisMotionValue(A).get()||0;if(eu.test(N)){const{projection:O}=this.visualElement;if(O&&O.layout){const D=O.layout.layoutBox[A];D&&(N=fa(D)*(parseFloat(N)/100))}}this.originPoint[A]=N}),S&&jo.postRender(()=>S(u,d)),tC(this.visualElement,"transform");const{animationState:T}=this.visualElement;T&&T.setActive("whileDrag",!0)},y=(u,d)=>{this.latestPointerEvent=u,this.latestPanInfo=d;const{dragPropagation:h,dragDirectionLock:m,onDirectionLock:S,onDrag:T}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:A}=d;if(m&&this.currentDirection===null){this.currentDirection=UZ(A),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",d.point,A),this.updateAxis("y",d.point,A),this.visualElement.render(),T&&T(u,d)},f=(u,d)=>{this.latestPointerEvent=u,this.latestPanInfo=d,this.stop(u,d),this.latestPointerEvent=null,this.latestPanInfo=null},b=()=>gl(u=>{var d;return this.getAnimationState(u)==="paused"&&((d=this.getAxisMotionValue(u).animation)==null?void 0:d.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new nH(e,{onSessionStart:p,onStart:g,onMove:y,onSessionEnd:f,resumeAnimation:b},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:a,contextWindow:tH(this.visualElement)})}stop(e,i){const a=e||this.latestPointerEvent,E=i||this.latestPanInfo,p=this.isDragging;if(this.cancel(),!p||!E||!a)return;const{velocity:g}=E;this.startAnimation(g);const{onDragEnd:y}=this.getProps();y&&jo.postRender(()=>y(a,E))}cancel(){this.isDragging=!1;const{projection:e,animationState:i}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:a}=this.getProps();!a&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),i&&i.setActive("whileDrag",!1)}updateAxis(e,i,a){const{drag:E}=this.getProps();if(!a||!xS(e,E,this.currentDirection))return;const p=this.getAxisMotionValue(e);let g=this.originPoint[e]+a[e];this.constraints&&this.constraints[e]&&(g=RZ(g,this.constraints[e],this.elastic[e])),p.set(g)}resolveConstraints(){var p;const{dragConstraints:e,dragElastic:i}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(p=this.visualElement.projection)==null?void 0:p.layout,E=this.constraints;e&&kb(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&a?this.constraints=LZ(a.layoutBox,e):this.constraints=!1,this.elastic=kZ(i),E!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&gl(g=>{this.constraints!==!1&&this.getAxisMotionValue(g)&&(this.constraints[g]=MZ(a.layoutBox[g],this.constraints[g]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:i}=this.getProps();if(!e||!kb(e))return!1;const a=e.current;bd(a!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");const{projection:E}=this.visualElement;if(!E||!E.layout)return!1;const p=HK(a,E.root,this.visualElement.getTransformPagePoint());let g=OZ(E.layout.layoutBox,p);if(i){const y=i(IK(g));this.hasMutatedConstraints=!!y,y&&(g=z8(y))}return g}startAnimation(e){const{drag:i,dragMomentum:a,dragElastic:E,dragTransition:p,dragSnapToOrigin:g,onDragTransitionEnd:y}=this.getProps(),f=this.constraints||{},b=gl(c=>{if(!xS(c,i,this.currentDirection))return;let u=f&&f[c]||{};g&&(u={min:0,max:0});const d=E?200:1e6,h=E?40:1e7,m={type:"inertia",velocity:a?e[c]:0,bounceStiffness:d,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...p,...u};return this.startAxisValueAnimation(c,m)});return Promise.all(b).then(y)}startAxisValueAnimation(e,i){const a=this.getAxisMotionValue(e);return tC(this.visualElement,e),a.start(ON(e,a,0,i,this.visualElement,!1))}stopAnimation(){gl(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){gl(e=>{var i;return(i=this.getAxisMotionValue(e).animation)==null?void 0:i.pause()})}getAnimationState(e){var i;return(i=this.getAxisMotionValue(e).animation)==null?void 0:i.state}getAxisMotionValue(e){const i=`_drag${e.toUpperCase()}`,a=this.visualElement.getProps(),E=a[i];return E||this.visualElement.getValue(e,(a.initial?a.initial[e]:void 0)||0)}snapToCursor(e){gl(i=>{const{drag:a}=this.getProps();if(!xS(i,a,this.currentDirection))return;const{projection:E}=this.visualElement,p=this.getAxisMotionValue(i);if(E&&E.layout){const{min:g,max:y}=E.layout.layoutBox[i];p.set(e[i]-qo(g,y,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:i}=this.getProps(),{projection:a}=this.visualElement;if(!kb(i)||!a||!this.constraints)return;this.stopAnimation();const E={x:0,y:0};gl(g=>{const y=this.getAxisMotionValue(g);if(y&&this.constraints!==!1){const f=y.get();E[g]=DZ({min:f,max:f},this.constraints[g])}});const{transformTemplate:p}=this.visualElement.getProps();this.visualElement.current.style.transform=p?p({},""):"none",a.root&&a.root.updateScroll(),a.updateLayout(),this.resolveConstraints(),gl(g=>{if(!xS(g,e,null))return;const y=this.getAxisMotionValue(g),{min:f,max:b}=this.constraints[g];y.set(qo(f,b,E[g]))})}addListeners(){if(!this.visualElement.current)return;IZ.set(this.visualElement,this);const e=this.visualElement.current,i=uE(e,"pointerdown",f=>{const{drag:b,dragListener:c=!0}=this.getProps();b&&c&&this.start(f)}),a=()=>{const{dragConstraints:f}=this.getProps();kb(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:E}=this.visualElement,p=E.addEventListener("measure",a);E&&!E.layout&&(E.root&&E.root.updateScroll(),E.updateLayout()),jo.read(a);const g=OE(window,"resize",()=>this.scalePositionWithinConstraints()),y=E.addEventListener("didUpdate",(({delta:f,hasLayoutChanged:b})=>{this.isDragging&&b&&(gl(c=>{const u=this.getAxisMotionValue(c);u&&(this.originPoint[c]+=f[c].translate,u.set(u.get()+f[c].translate))}),this.visualElement.render())}));return()=>{g(),i(),p(),y&&y()}}getProps(){const e=this.visualElement.getProps(),{drag:i=!1,dragDirectionLock:a=!1,dragPropagation:E=!1,dragConstraints:p=!1,dragElastic:g=oC,dragMomentum:y=!0}=e;return{...e,drag:i,dragDirectionLock:a,dragPropagation:E,dragConstraints:p,dragElastic:g,dragMomentum:y}}}function xS(t,e,i){return(e===!0||e===t)&&(i===null||i===t)}function UZ(t,e=10){let i=null;return Math.abs(t.y)>e?i="y":Math.abs(t.x)>e&&(i="x"),i}class HZ extends bh{constructor(e){super(e),this.removeGroupControls=El,this.removeListeners=El,this.controls=new $Z(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||El}unmount(){this.removeGroupControls(),this.removeListeners()}}const k4=t=>(e,i)=>{t&&jo.postRender(()=>t(e,i))};class jZ extends bh{constructor(){super(...arguments),this.removePointerDownListener=El}onPointerDown(e){this.session=new nH(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:tH(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:i,onPan:a,onPanEnd:E}=this.node.getProps();return{onSessionStart:k4(e),onStart:k4(i),onMove:a,onEnd:(p,g)=>{delete this.session,E&&jo.postRender(()=>E(p,g))}}}mount(){this.removePointerDownListener=uE(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const MS={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function I4(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const eE={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(Jt.test(t))t=parseFloat(t);else return t;const i=I4(t,e.target.x),a=I4(t,e.target.y);return`${i}% ${a}%`}},zZ={correct:(t,{treeScale:e,projectionDelta:i})=>{const a=t,E=mh.parse(t);if(E.length>5)return a;const p=mh.createTransformer(t),g=typeof E[0]!="number"?1:0,y=i.x.scale*e.x,f=i.y.scale*e.y;E[0+g]/=y,E[1+g]/=f;const b=qo(y,f,.5);return typeof E[2+g]=="number"&&(E[2+g]/=b),typeof E[3+g]=="number"&&(E[3+g]/=b),p(E)}};let l_=!1;class BZ extends Y.Component{componentDidMount(){const{visualElement:e,layoutGroup:i,switchLayoutGroup:a,layoutId:E}=this.props,{projection:p}=e;cK(FZ),p&&(i.group&&i.group.add(p),a&&a.register&&E&&a.register(p),l_&&p.root.didUpdate(),p.addEventListener("animationComplete",()=>{this.safeToRemove()}),p.setOptions({...p.options,onExitComplete:()=>this.safeToRemove()})),MS.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:i,visualElement:a,drag:E,isPresent:p}=this.props,{projection:g}=a;return g&&(g.isPresent=p,l_=!0,E||e.layoutDependency!==i||i===void 0||e.isPresent!==p?g.willUpdate():this.safeToRemove(),e.isPresent!==p&&(p?g.promote():g.relegate()||jo.postRender(()=>{const y=g.getStack();(!y||!y.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),wN.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:i,switchLayoutGroup:a}=this.props,{projection:E}=e;l_=!0,E&&(E.scheduleCheckAfterUnmount(),i&&i.group&&i.group.remove(E),a&&a.deregister&&a.deregister(E))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function iH(t){const[e,i]=nK(),a=Y.useContext($U);return H.jsx(BZ,{...t,layoutGroup:a,switchLayoutGroup:Y.useContext(H8),isPresent:e,safeToRemove:i})}const FZ={borderRadius:{...eE,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:eE,borderTopRightRadius:eE,borderBottomLeftRadius:eE,borderBottomRightRadius:eE,boxShadow:zZ};function PZ(t,e,i){const a=Hr(t)?t:Qb(t);return a.start(ON("",a,e,i)),a.animation}const VZ=(t,e)=>t.depth-e.depth;class GZ{constructor(){this.children=[],this.isDirty=!1}add(e){nN(this.children,e),this.isDirty=!0}remove(e){oN(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(VZ),this.isDirty=!1,this.children.forEach(e)}}function QZ(t,e){const i=Fa.now(),a=({timestamp:E})=>{const p=E-i;p>=e&&(hh(a),t(p-e))};return jo.setup(a,!0),()=>hh(a)}const rH=["TopLeft","TopRight","BottomLeft","BottomRight"],WZ=rH.length,$4=t=>typeof t=="string"?parseFloat(t):t,U4=t=>typeof t=="number"||Jt.test(t);function YZ(t,e,i,a,E,p){E?(t.opacity=qo(0,i.opacity??1,XZ(a)),t.opacityExit=qo(e.opacity??1,0,qZ(a))):p&&(t.opacity=qo(e.opacity??1,i.opacity??1,a));for(let g=0;g<WZ;g++){const y=`border${rH[g]}Radius`;let f=H4(e,y),b=H4(i,y);if(f===void 0&&b===void 0)continue;f||(f=0),b||(b=0),f===0||b===0||U4(f)===U4(b)?(t[y]=Math.max(qo($4(f),$4(b),a),0),(eu.test(b)||eu.test(f))&&(t[y]+="%")):t[y]=b}(e.rotate||i.rotate)&&(t.rotate=qo(e.rotate||0,i.rotate||0,a))}function H4(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const XZ=aH(0,.5,WU),qZ=aH(.5,.95,El);function aH(t,e,i){return a=>a<t?0:a>e?1:i(_E(t,e,a))}function j4(t,e){t.min=e.min,t.max=e.max}function pl(t,e){j4(t.x,e.x),j4(t.y,e.y)}function z4(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function B4(t,e,i,a,E){return t-=e,t=rT(t,1/i,a),E!==void 0&&(t=rT(t,1/E,a)),t}function KZ(t,e=0,i=1,a=.5,E,p=t,g=t){if(eu.test(e)&&(e=parseFloat(e),e=qo(g.min,g.max,e/100)-g.min),typeof e!="number")return;let y=qo(p.min,p.max,a);t===p&&(y-=e),t.min=B4(t.min,e,i,y,E),t.max=B4(t.max,e,i,y,E)}function F4(t,e,[i,a,E],p,g){KZ(t,e[i],e[a],e[E],e.scale,p,g)}const ZZ=["x","scaleX","originX"],JZ=["y","scaleY","originY"];function P4(t,e,i,a){F4(t.x,e,ZZ,i?i.x:void 0,a?a.x:void 0),F4(t.y,e,JZ,i?i.y:void 0,a?a.y:void 0)}function V4(t){return t.translate===0&&t.scale===1}function sH(t){return V4(t.x)&&V4(t.y)}function G4(t,e){return t.min===e.min&&t.max===e.max}function eJ(t,e){return G4(t.x,e.x)&&G4(t.y,e.y)}function Q4(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function lH(t,e){return Q4(t.x,e.x)&&Q4(t.y,e.y)}function W4(t){return fa(t.x)/fa(t.y)}function Y4(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class tJ{constructor(){this.members=[]}add(e){nN(this.members,e),e.scheduleRender()}remove(e){if(oN(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const i=this.members[this.members.length-1];i&&this.promote(i)}}relegate(e){const i=this.members.findIndex(E=>e===E);if(i===0)return!1;let a;for(let E=i;E>=0;E--){const p=this.members[E];if(p.isPresent!==!1){a=p;break}}return a?(this.promote(a),!0):!1}promote(e,i){const a=this.lead;if(e!==a&&(this.prevLead=a,this.lead=e,e.show(),a)){a.instance&&a.scheduleRender(),e.scheduleRender(),e.resumeFrom=a,i&&(e.resumeFrom.preserveOpacity=!0),a.snapshot&&(e.snapshot=a.snapshot,e.snapshot.latestValues=a.animationValues||a.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:E}=e.options;E===!1&&a.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:i,resumingFrom:a}=e;i.onExitComplete&&i.onExitComplete(),a&&a.options.onExitComplete&&a.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function nJ(t,e,i){let a="";const E=t.x.translate/e.x,p=t.y.translate/e.y,g=(i==null?void 0:i.z)||0;if((E||p||g)&&(a=`translate3d(${E}px, ${p}px, ${g}px) `),(e.x!==1||e.y!==1)&&(a+=`scale(${1/e.x}, ${1/e.y}) `),i){const{transformPerspective:b,rotate:c,rotateX:u,rotateY:d,skewX:h,skewY:m}=i;b&&(a=`perspective(${b}px) ${a}`),c&&(a+=`rotate(${c}deg) `),u&&(a+=`rotateX(${u}deg) `),d&&(a+=`rotateY(${d}deg) `),h&&(a+=`skewX(${h}deg) `),m&&(a+=`skewY(${m}deg) `)}const y=t.x.scale*e.x,f=t.y.scale*e.y;return(y!==1||f!==1)&&(a+=`scale(${y}, ${f})`),a||"none"}const c_=["","X","Y","Z"],oJ=1e3;let iJ=0;function u_(t,e,i,a){const{latestValues:E}=e;E[t]&&(i[t]=E[t],e.setStaticValue(t,0),a&&(a[t]=0))}function cH(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const i=Y8(e);if(window.MotionHasOptimisedAnimation(i,"transform")){const{layout:E,layoutId:p}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",jo,!(E||p))}const{parent:a}=t;a&&!a.hasCheckedOptimisedAppear&&cH(a)}function uH({attachResizeListener:t,defaultParent:e,measureScroll:i,checkIsScrollRoot:a,resetTransform:E}){return class{constructor(g={},y=e==null?void 0:e()){this.id=iJ++,this.animationId=0,this.animationCommitId=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,this.nodes.forEach(sJ),this.nodes.forEach(dJ),this.nodes.forEach(fJ),this.nodes.forEach(lJ)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=g,this.root=y?y.root||y:this,this.path=y?[...y.path,y]:[],this.parent=y,this.depth=y?y.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new GZ)}addEventListener(g,y){return this.eventHandlers.has(g)||this.eventHandlers.set(g,new rN),this.eventHandlers.get(g).add(y)}notifyListeners(g,...y){const f=this.eventHandlers.get(g);f&&f.notify(...y)}hasListeners(g){return this.eventHandlers.has(g)}mount(g){if(this.instance)return;this.isSVG=x8(g)&&!Jq(g),this.instance=g;const{layoutId:y,layout:f,visualElement:b}=this.options;if(b&&!b.current&&b.mount(g),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(f||y)&&(this.isLayoutDirty=!0),t){let c,u=0;const d=()=>this.root.updateBlockedByResize=!1;jo.read(()=>{u=window.innerWidth}),t(g,()=>{const h=window.innerWidth;h!==u&&(u=h,this.root.updateBlockedByResize=!0,c&&c(),c=QZ(d,250),MS.hasAnimatedSinceResize&&(MS.hasAnimatedSinceResize=!1,this.nodes.forEach(K4)))})}y&&this.root.registerSharedNode(y,this),this.options.animate!==!1&&b&&(y||f)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:u,hasRelativeLayoutChanged:d,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||b.getDefaultTransition()||bJ,{onLayoutAnimationStart:S,onLayoutAnimationComplete:T}=b.getProps(),A=!this.targetLayout||!lH(this.targetLayout,h),N=!u&&d;if(this.options.layoutRoot||this.resumeFrom||N||u&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const O={...yN(m,"layout"),onPlay:S,onComplete:T};(b.shouldReduceMotion||this.options.layoutRoot)&&(O.delay=0,O.type=!1),this.startAnimation(O),this.setAnimationOrigin(c,N)}else u||K4(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const g=this.getStack();g&&g.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),hh(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(hJ),this.animationId++)}getTransformTemplate(){const{visualElement:g}=this.options;return g&&g.getProps().transformTemplate}willUpdate(g=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&cH(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const u=this.path[c];u.shouldResetTransform=!0,u.updateScroll("snapshot"),u.options.layoutRoot&&u.willUpdate(!1)}const{layoutId:y,layout:f}=this.options;if(y===void 0&&!f)return;const b=this.getTransformTemplate();this.prevTransformTemplateValue=b?b(this.latestValues,""):void 0,this.updateSnapshot(),g&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(X4);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(q4);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(uJ),this.nodes.forEach(rJ),this.nodes.forEach(aJ)):this.nodes.forEach(q4),this.clearAllSnapshots();const y=Fa.now();yr.delta=gd(0,1e3/60,y-yr.timestamp),yr.timestamp=y,yr.isProcessing=!0,Zx.update.process(yr),Zx.preRender.process(yr),Zx.render.process(yr),yr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,wN.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(cJ),this.sharedNodes.forEach(mJ)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,jo.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){jo.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!fa(this.snapshot.measuredBox.x)&&!fa(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const g=this.layout;this.layout=this.measure(!1),this.layoutCorrected=fi(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:y}=this.options;y&&y.notify("LayoutMeasure",this.layout.layoutBox,g?g.layoutBox:void 0)}updateScroll(g="measure"){let y=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===g&&(y=!1),y&&this.instance){const f=a(this.instance);this.scroll={animationId:this.root.animationId,phase:g,isRoot:f,offset:i(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!E)return;const g=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,y=this.projectionDelta&&!sH(this.projectionDelta),f=this.getTransformTemplate(),b=f?f(this.latestValues,""):void 0,c=b!==this.prevTransformTemplateValue;g&&this.instance&&(y||np(this.latestValues)||c)&&(E(this.instance,b),this.shouldResetTransform=!1,this.scheduleRender())}measure(g=!0){const y=this.measurePageBox();let f=this.removeElementScroll(y);return g&&(f=this.removeTransform(f)),vJ(f),{animationId:this.root.animationId,measuredBox:y,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var b;const{visualElement:g}=this.options;if(!g)return fi();const y=g.measureViewportBox();if(!(((b=this.scroll)==null?void 0:b.wasRoot)||this.path.some(yJ))){const{scroll:c}=this.root;c&&(Ib(y.x,c.offset.x),Ib(y.y,c.offset.y))}return y}removeElementScroll(g){var f;const y=fi();if(pl(y,g),(f=this.scroll)!=null&&f.wasRoot)return y;for(let b=0;b<this.path.length;b++){const c=this.path[b],{scroll:u,options:d}=c;c!==this.root&&u&&d.layoutScroll&&(u.wasRoot&&pl(y,g),Ib(y.x,u.offset.x),Ib(y.y,u.offset.y))}return y}applyTransform(g,y=!1){const f=fi();pl(f,g);for(let b=0;b<this.path.length;b++){const c=this.path[b];!y&&c.options.layoutScroll&&c.scroll&&c!==c.root&&$b(f,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),np(c.latestValues)&&$b(f,c.latestValues)}return np(this.latestValues)&&$b(f,this.latestValues),f}removeTransform(g){const y=fi();pl(y,g);for(let f=0;f<this.path.length;f++){const b=this.path[f];if(!b.instance||!np(b.latestValues))continue;K_(b.latestValues)&&b.updateSnapshot();const c=fi(),u=b.measurePageBox();pl(c,u),P4(y,b.latestValues,b.snapshot?b.snapshot.layoutBox:void 0,c)}return np(this.latestValues)&&P4(y,this.latestValues),y}setTargetDelta(g){this.targetDelta=g,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(g){this.options={...this.options,...g,crossfade:g.crossfade!==void 0?g.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!==yr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(g=!1){var d;const y=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=y.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=y.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=y.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==y;if(!(g||f&&this.isSharedProjectionDirty||this.isProjectionDirty||(d=this.parent)!=null&&d.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:u}=this.options;if(!(!this.layout||!(c||u))){if(this.resolvedRelativeTargetAt=yr.timestamp,!this.targetDelta&&!this.relativeTarget){const h=this.getClosestProjectingParent();h&&h.layout&&this.animationProgress!==1?(this.relativeParent=h,this.forceRelativeParentToResolveTarget(),this.relativeTarget=fi(),this.relativeTargetOrigin=fi(),fE(this.relativeTargetOrigin,this.layout.layoutBox,h.layout.layoutBox),pl(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=fi(),this.targetWithTransforms=fi()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),xZ(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):pl(this.target,this.layout.layoutBox),F8(this.target,this.targetDelta)):pl(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=fi(),this.relativeTargetOrigin=fi(),fE(this.relativeTargetOrigin,this.target,h.target),pl(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||K_(this.parent.latestValues)||B8(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 m;const g=this.getLead(),y=!!this.resumingFrom||this!==g;let f=!0;if((this.isProjectionDirty||(m=this.parent)!=null&&m.isProjectionDirty)&&(f=!1),y&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===yr.timestamp&&(f=!1),f)return;const{layout:b,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(b||c))return;pl(this.layoutCorrected,this.layout.layoutBox);const u=this.treeScale.x,d=this.treeScale.y;UK(this.layoutCorrected,this.treeScale,this.path,y),g.layout&&!g.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(g.target=g.layout.layoutBox,g.targetWithTransforms=fi());const{target:h}=g;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(z4(this.prevProjectionDelta.x,this.projectionDelta.x),z4(this.prevProjectionDelta.y,this.projectionDelta.y)),dE(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==u||this.treeScale.y!==d||!Y4(this.projectionDelta.x,this.prevProjectionDelta.x)||!Y4(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(g=!0){var y;if((y=this.options.visualElement)==null||y.scheduleRender(),g){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ub(),this.projectionDelta=Ub(),this.projectionDeltaWithTransform=Ub()}setAnimationOrigin(g,y=!1){const f=this.snapshot,b=f?f.latestValues:{},c={...this.latestValues},u=Ub();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!y;const d=fi(),h=f?f.source:void 0,m=this.layout?this.layout.source:void 0,S=h!==m,T=this.getStack(),A=!T||T.members.length<=1,N=!!(S&&!A&&this.options.crossfade===!0&&!this.path.some(gJ));this.animationProgress=0;let O;this.mixTargetDelta=D=>{const R=D/1e3;Z4(u.x,g.x,R),Z4(u.y,g.y,R),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(fE(d,this.layout.layoutBox,this.relativeParent.layout.layoutBox),pJ(this.relativeTarget,this.relativeTargetOrigin,d,R),O&&eJ(this.relativeTarget,O)&&(this.isProjectionDirty=!1),O||(O=fi()),pl(O,this.relativeTarget)),S&&(this.animationValues=c,YZ(c,b,this.latestValues,R,N,A)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=R},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(g){var y,f,b;this.notifyListeners("animationStart"),(y=this.currentAnimation)==null||y.stop(),(b=(f=this.resumingFrom)==null?void 0:f.currentAnimation)==null||b.stop(),this.pendingAnimation&&(hh(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=jo.update(()=>{MS.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Qb(0)),this.currentAnimation=PZ(this.motionValue,[0,1e3],{...g,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),g.onUpdate&&g.onUpdate(c)},onStop:()=>{},onComplete:()=>{g.onComplete&&g.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 g=this.getStack();g&&g.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(oJ),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const g=this.getLead();let{targetWithTransforms:y,target:f,layout:b,latestValues:c}=g;if(!(!y||!f||!b)){if(this!==g&&this.layout&&b&&dH(this.options.animationType,this.layout.layoutBox,b.layoutBox)){f=this.target||fi();const u=fa(this.layout.layoutBox.x);f.x.min=g.target.x.min,f.x.max=f.x.min+u;const d=fa(this.layout.layoutBox.y);f.y.min=g.target.y.min,f.y.max=f.y.min+d}pl(y,f),$b(y,c),dE(this.projectionDeltaWithTransform,this.layoutCorrected,y,c)}}registerSharedNode(g,y){this.sharedNodes.has(g)||this.sharedNodes.set(g,new tJ),this.sharedNodes.get(g).add(y);const b=y.options.initialPromotionConfig;y.promote({transition:b?b.transition:void 0,preserveFollowOpacity:b&&b.shouldPreserveFollowOpacity?b.shouldPreserveFollowOpacity(y):void 0})}isLead(){const g=this.getStack();return g?g.lead===this:!0}getLead(){var y;const{layoutId:g}=this.options;return g?((y=this.getStack())==null?void 0:y.lead)||this:this}getPrevLead(){var y;const{layoutId:g}=this.options;return g?(y=this.getStack())==null?void 0:y.prevLead:void 0}getStack(){const{layoutId:g}=this.options;if(g)return this.root.sharedNodes.get(g)}promote({needsReset:g,transition:y,preserveFollowOpacity:f}={}){const b=this.getStack();b&&b.promote(this,f),g&&(this.projectionDelta=void 0,this.needsReset=!0),y&&this.setOptions({transition:y})}relegate(){const g=this.getStack();return g?g.relegate(this):!1}resetSkewAndRotation(){const{visualElement:g}=this.options;if(!g)return;let y=!1;const{latestValues:f}=g;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(y=!0),!y)return;const b={};f.z&&u_("z",g,b,this.animationValues);for(let c=0;c<c_.length;c++)u_(`rotate${c_[c]}`,g,b,this.animationValues),u_(`skew${c_[c]}`,g,b,this.animationValues);g.render();for(const c in b)g.setStaticValue(c,b[c]),this.animationValues&&(this.animationValues[c]=b[c]);g.scheduleRender()}applyProjectionStyles(g,y){if(!this.instance||this.isSVG)return;if(!this.isVisible){g.visibility="hidden";return}const f=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,g.visibility="",g.opacity="",g.pointerEvents=DS(y==null?void 0:y.pointerEvents)||"",g.transform=f?f(this.latestValues,""):"none";return}const b=this.getLead();if(!this.projectionDelta||!this.layout||!b.target){this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=DS(y==null?void 0:y.pointerEvents)||""),this.hasProjected&&!np(this.latestValues)&&(g.transform=f?f({},""):"none",this.hasProjected=!1);return}g.visibility="";const c=b.animationValues||b.latestValues;this.applyTransformsToTarget();let u=nJ(this.projectionDeltaWithTransform,this.treeScale,c);f&&(u=f(c,u)),g.transform=u;const{x:d,y:h}=this.projectionDelta;g.transformOrigin=`${d.origin*100}% ${h.origin*100}% 0`,b.animationValues?g.opacity=b===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:g.opacity=b===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const m in LE){if(c[m]===void 0)continue;const{correct:S,applyTo:T,isCSSVariable:A}=LE[m],N=u==="none"?c[m]:S(c[m],b);if(T){const O=T.length;for(let D=0;D<O;D++)g[T[D]]=N}else A?this.options.visualElement.renderState.vars[m]=N:g[m]=N}this.options.layoutId&&(g.pointerEvents=b===this?DS(y==null?void 0:y.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(g=>{var y;return(y=g.currentAnimation)==null?void 0:y.stop()}),this.root.nodes.forEach(X4),this.root.sharedNodes.clear()}}}function rJ(t){t.updateLayout()}function aJ(t){var i;const e=((i=t.resumeFrom)==null?void 0:i.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:a,measuredBox:E}=t.layout,{animationType:p}=t.options,g=e.source!==t.layout.source;p==="size"?gl(u=>{const d=g?e.measuredBox[u]:e.layoutBox[u],h=fa(d);d.min=a[u].min,d.max=d.min+h}):dH(p,e.layoutBox,a)&&gl(u=>{const d=g?e.measuredBox[u]:e.layoutBox[u],h=fa(a[u]);d.max=d.min+h,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[u].max=t.relativeTarget[u].min+h)});const y=Ub();dE(y,a,e.layoutBox);const f=Ub();g?dE(f,t.applyTransform(E,!0),e.measuredBox):dE(f,a,e.layoutBox);const b=!sH(y);let c=!1;if(!t.resumeFrom){const u=t.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:d,layout:h}=u;if(d&&h){const m=fi();fE(m,e.layoutBox,d.layoutBox);const S=fi();fE(S,a,h.layoutBox),lH(m,S)||(c=!0),u.options.layoutRoot&&(t.relativeTarget=S,t.relativeTargetOrigin=m,t.relativeParent=u)}}}t.notifyListeners("didUpdate",{layout:a,snapshot:e,delta:f,layoutDelta:y,hasLayoutChanged:b,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:a}=t.options;a&&a()}t.options.transition=void 0}function sJ(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function lJ(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function cJ(t){t.clearSnapshot()}function X4(t){t.clearMeasurements()}function q4(t){t.isLayoutDirty=!1}function uJ(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function K4(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function dJ(t){t.resolveTargetDelta()}function fJ(t){t.calcProjection()}function hJ(t){t.resetSkewAndRotation()}function mJ(t){t.removeLeadSnapshot()}function Z4(t,e,i){t.translate=qo(e.translate,0,i),t.scale=qo(e.scale,1,i),t.origin=e.origin,t.originPoint=e.originPoint}function J4(t,e,i,a){t.min=qo(e.min,i.min,a),t.max=qo(e.max,i.max,a)}function pJ(t,e,i,a){J4(t.x,e.x,i.x,a),J4(t.y,e.y,i.y,a)}function gJ(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const bJ={duration:.45,ease:[.4,0,.1,1]},e5=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),t5=e5("applewebkit/")&&!e5("chrome/")?Math.round:El;function n5(t){t.min=t5(t.min),t.max=t5(t.max)}function vJ(t){n5(t.x),n5(t.y)}function dH(t,e,i){return t==="position"||t==="preserve-aspect"&&!AZ(W4(e),W4(i),.2)}function yJ(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const EJ=uH({attachResizeListener:(t,e)=>OE(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),d_={current:void 0},fH=uH({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!d_.current){const t=new EJ({});t.mount(window),t.setOptions({layoutScroll:!0}),d_.current=t}return d_.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),wJ={pan:{Feature:jZ},drag:{Feature:HZ,ProjectionNode:fH,MeasureLayout:iH}};function o5(t,e,i){const{props:a}=t;t.animationState&&a.whileHover&&t.animationState.setActive("whileHover",i==="Start");const E="onHover"+i,p=a[E];p&&jo.postRender(()=>p(e,qE(e)))}class SJ extends bh{mount(){const{current:e}=this.node;e&&(this.unmount=Yq(e,(i,a)=>(o5(this.node,a,"Start"),E=>o5(this.node,E,"End"))))}unmount(){}}class TJ extends bh{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!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=WE(OE(this.node.current,"focus",()=>this.onFocus()),OE(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function i5(t,e,i){const{props:a}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&a.whileTap&&t.animationState.setActive("whileTap",i==="Start");const E="onTap"+(i==="End"?"":i),p=a[E];p&&jo.postRender(()=>p(e,qE(e)))}class AJ extends bh{mount(){const{current:e}=this.node;e&&(this.unmount=Zq(e,(i,a)=>(i5(this.node,a,"Start"),(E,{success:p})=>i5(this.node,E,p?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const iC=new WeakMap,f_=new WeakMap,xJ=t=>{const e=iC.get(t.target);e&&e(t)},_J=t=>{t.forEach(xJ)};function CJ({root:t,...e}){const i=t||document;f_.has(i)||f_.set(i,{});const a=f_.get(i),E=JSON.stringify(e);return a[E]||(a[E]=new IntersectionObserver(_J,{root:t,...e})),a[E]}function NJ(t,e,i){const a=CJ(e);return iC.set(t,i),a.observe(t),()=>{iC.delete(t),a.unobserve(t)}}const RJ={some:0,all:1};class LJ extends bh{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:i,margin:a,amount:E="some",once:p}=e,g={root:i?i.current:void 0,rootMargin:a,threshold:typeof E=="number"?E:RJ[E]},y=f=>{const{isIntersecting:b}=f;if(this.isInView===b||(this.isInView=b,p&&!b&&this.hasEnteredView))return;b&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",b);const{onViewportEnter:c,onViewportLeave:u}=this.node.getProps(),d=b?c:u;d&&d(f)};return NJ(this.node.current,g,y)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:i}=this.node;["amount","margin","root"].some(OJ(e,i))&&this.startObserver()}unmount(){}}function OJ({viewport:t={}},{viewport:e={}}={}){return i=>t[i]!==e[i]}const DJ={inView:{Feature:LJ},tap:{Feature:AJ},focus:{Feature:TJ},hover:{Feature:SJ}},MJ={layout:{ProjectionNode:fH,MeasureLayout:iH}},kJ={...vZ,...DJ,...wJ,...MJ},hH=kK(kJ,WK),mH=({onEditTransformation:t,onDeleteTransformation:e})=>H.jsxs(Zb,{children:[H.jsx(Er.Item,{children:({active:i})=>H.jsxs("button",{onClick:t,className:"boomi-menu-item","data-headlessui-state":i?"active":void 0,children:[H.jsx(S5,{className:"boomi-menu-icon"}),"Edit Transformation"]})}),H.jsx(Er.Item,{children:({active:i})=>H.jsxs("button",{onClick:e,className:"boomi-menu-item","data-headlessui-state":i?"active":void 0,children:[H.jsx(lh,{className:"boomi-menu-icon"}),"Delete Transformation"]})})]}),IJ=140,h_=0,$J=Y.forwardRef(({sourceFields:t,targetFields:e,functions:i,mappings:a=[],onMappingChange:E,onTransformationUpdate:p,onEditTransformation:g,onDeleteTransformation:y,onAddTransformation:f},b)=>{const[c,u]=Y.useState(null),d=Y.useRef(null),h=Y.useRef(new Map),m=Y.useRef(new Map),S=Y.useRef(new Map),T=Y.useRef(new Map),A=Y.useRef({}),[N,O]=Y.useState(!1),[D,R]=Y.useState(!1),[C,$]=Y.useState(null),[F,U]=Y.useState(null),[j,X]=Y.useState(null),[P,B]=Y.useState(null),[k,M]=Y.useState(null),I=Y.useRef(null),W=()=>{u(null),X(null),B(null),M(null)},Q=(de,Ve)=>{de&&(A.current[Ve]=de)},J=(de,Ve)=>De=>{De&&de.set(Ve,De)},K=(de,Ve,De,qe)=>{if(a.find(mt=>mt.fromXPath===de&&mt.toXPath===Ve&&mt.toFunction===De&&mt.fromFunction===qe))return;const et=[...a,{fromXPath:de,toXPath:Ve,toFunction:De,fromFunction:qe}];E==null||E(et)},Z=(de,Ve)=>{const De=a.filter(qe=>!(qe.fromXPath===de&&qe.toXPath===Ve));E==null||E(De)},re=de=>{const Ve=a.filter(De=>De.fromXPath!==de);E==null||E(Ve)},te=de=>{U(de),R(!0)},ae=()=>{C&&(re(C),$(null)),O(!1)},se=()=>{F&&(y==null||y(F),U(null)),R(!1)},ie=()=>{U(null),$(null),O(!1)},ue=de=>{$(de),O(!0)},me=()=>{const de=d.current;if(!de)return;for(;de.firstChild;)de.removeChild(de.firstChild);let Ve=!1;a.forEach(De=>{const qe=De.fromXPath,et=De.toXPath;if(!qe)return;const mt=De.fromFunction?`${De.fromFunction}.out.${Ts(qe)}`:Ts(qe),xt=De.toFunction?`${De.toFunction}.in.${Ts(et)}`:Ts(et),$t=De.fromFunction?T.current.get(mt):h.current.get(mt),ze=De.toFunction?S.current.get(xt):m.current.get(xt);if(!$t||!ze)return;const nt=$t.getBoundingClientRect(),ct=ze.getBoundingClientRect(),gt=de.getBoundingClientRect(),at={x:nt.left+nt.width/2-gt.left,y:nt.top+nt.height/2-gt.top},Re={x:ct.left+ct.width/2-gt.left,y:ct.top+ct.height/2-gt.top},je=Re.x-at.x,ot=Re.y-at.y,tt=je/1.5,St=Math.min(12,Math.abs(ot)/2),Nt=ot>0?1:-1,an={x:at.x+tt,y:at.y-Nt*St},Lt={x:Re.x-tt,y:Re.y-Nt*St},_t=`M ${at.x} ${at.y} C ${an.x} ${an.y} ${Lt.x} ${Lt.y} ${Re.x} ${Re.y}`,Et=c&&De.fromXPath===c||j&&De.toXPath===j||P&&(De.fromFunction===P||De.toFunction===P),xe=document.createElementNS("http://www.w3.org/2000/svg","path");xe.setAttribute("d",_t),xe.setAttribute("fill","none"),xe.setAttribute("stroke-linejoin","round"),xe.setAttribute("stroke-linecap","round"),Et&&(xe.classList.add("is-highlighted"),Ve=!0),de.appendChild(xe)}),Ve?de.classList.add("has-selection"):de.classList.remove("has-selection")},ve=de=>{const Ve=a.some(De=>De.toXPath===de);if((c||k)&&Ve){X(de),u(null),B(null),M(null);return}if(c){K(c,de,void 0,void 0),u(null),M(null),B(null),X(de);return}if(k){K(k.outputKey.toString(),de,void 0,k.fnId),M(null),u(null),B(null),X(de);return}X(de),u(null),B(null)},[pe,ye]=Y.useState({});return Y.useEffect(()=>{const de={};let Ve=0;i.forEach(De=>{const qe=typeof De.y=="number"?De.y:sC(De.id)??Ve;de[De.id]={x:De.x??h_,y:qe},typeof De.y!="number"&&(Ve+=IJ)}),ye(de)},[i]),Y.useLayoutEffect(()=>{const de=()=>{requestAnimationFrame(()=>{me()})};return de(),window.addEventListener("resize",de),()=>{window.removeEventListener("resize",de)}},[a,i,t,e,pe,c,j,P]),H.jsxs(H.Fragment,{children:[N&&H.jsx(gp,{type:"warning",title:"Are you sure?",description:"Disconnecting these mappings cannot be undone.",showCancel:!0,confirmButtonText:"Yes, Disconnect All!",cancelButtonText:"No, cancel",onConfirm:ae,onCancel:ie}),D&&H.jsx(gp,{type:"warning",title:"Are you sure?",description:"Deleting this transformation cannot be undone and will remove all mappings associated with it.",showCancel:!0,confirmButtonText:"Yes, Delete!",cancelButtonText:"No, cancel",onConfirm:se,onCancel:ie}),H.jsxs("div",{className:"boomi-map-canvas",onClick:de=>{const Ve=de.target;!Ve.closest(".boomi-map-card")&&!Ve.closest(".boomi-map-pin")&&W()},children:[H.jsx("svg",{ref:d,className:"boomi-map-svg"}),H.jsxs("div",{className:"boomi-map-col boomi-map-col--sources",children:[H.jsx("h3",{className:"boomi-map-heading",children:"Sources"}),t.map((de,Ve)=>{const De=`${de.xpath}::${Ve}`,qe=a.some(et=>et.fromXPath===de.xpath);return H.jsxs("div",{className:`boomi-map-card boomi-map-card--source ${c===de.xpath?"is-selected":""} ${qe?"is-mapped":""} cursor-pointer`,onClick:()=>{u(de.xpath),X(null),B(null),M(null)},children:[H.jsx("div",{className:"boomi-map-card-title text-xs font-medium truncate",children:de.name}),H.jsx("div",{className:"text-[10px] font-thin text-gray-500 break-words whitespace-normal",children:de.xpath}),H.jsx("div",{ref:J(h.current,Ts(de.xpath)),className:`boomi-map-pin --source is-selectable ${c===de.xpath?"is-mappable":""}`,onClick:et=>{et.stopPropagation(),a.some(mt=>mt.fromXPath===de.xpath)&&ue(de.xpath)},children:a.some(et=>et.fromXPath===de.xpath)&&H.jsx("span",{className:"boomi-map-pin-badge",children:"×"})})]},De)})]}),H.jsxs("div",{className:"boomi-map-col boomi-map-col--functions",children:[H.jsxs("div",{className:"flex justify-between items-center mb-2",children:[H.jsx("h3",{className:"boomi-map-heading w-full text-center",children:"Transformations"}),H.jsx("div",{className:"flex-1 text-right",children:H.jsx(Bn,{toggle:!1,primary:!1,viewLoc:"field-mapping-add-transformation",buttonClass:"ml-2",onClass:"boomi-map-add-btn",showIcon:!0,label:"Add",icon:H.jsx(DE,{className:"w-4 h-4"}),onClick:()=>{const de={id:`temp-${Date.now()}`,name:"New Function",type:"custom",inputs:[],outputs:[]};f==null||f(de)}})})]}),H.jsx("div",{ref:I,className:"relative w-full max-w-md h-full",style:{minHeight:500,paddingTop:15,paddingBottom:15},children:i.map(de=>{const Ve=pe[de.id]||{x:h_,y:15};return H.jsxs(hH.div,{ref:De=>Q(De,de.id),drag:"y",dragMomentum:!1,dragElastic:0,dragSnapToOrigin:!1,dragConstraints:I,className:`boomi-map-card boomi-map-card--function absolute w-full ${P===de.id?"is-selected":""}`,style:{left:Ve.x,y:Math.max(15,Ve.y),cursor:"grab"},onDrag:(De,qe)=>{ye(et=>({...et,[de.id]:{...et[de.id],y:qe.delta.y}}))},onDragEnd:()=>{var et;const De=mE(de.id),qe=A.current[de.id];if(qe){const mt=((et=qe.parentElement)==null?void 0:et.getBoundingClientRect().top)??0,xt=qe.getBoundingClientRect().top,$t=Math.round(xt-mt),ze=Math.max(15,$t),nt=cT(De,ze),ct=i.map(gt=>gt.id===de.id&&gt.id!==nt?{...gt,newId:nt,x:gt.x??h_,y:ze}:gt);p==null||p(ct),requestAnimationFrame(()=>me())}},onClick:()=>{B(de.id),u(null),X(null)},children:[H.jsxs("div",{className:"flex justify-between items-center py-1",children:[H.jsx("div",{className:"boomi-map-card-title",children:"Transformation"}),H.jsx(mH,{onEditTransformation:()=>g==null?void 0:g(de),onDeleteTransformation:()=>te(de)})]}),H.jsx("div",{className:"boomi-map-card-subtitle text-xs",children:de.type}),H.jsxs("div",{className:"flex justify-between mt-4",children:[H.jsx("div",{className:"flex flex-col gap-1",children:de.inputs.map(De=>{const qe=`${de.id}.in.${De.key}`,et=a.some(xt=>xt.toFunction===de.id&&xt.toXPath===`${De.key}`),mt=a.find(xt=>xt.toFunction===de.id&&xt.toXPath===`${De.key}`);return H.jsxs("div",{className:"relative z-50",children:[H.jsx("div",{className:"text-xs pl-2 pb-2",children:De.name}),H.jsx("div",{ref:J(S.current,qe),className:`boomi-map-pin --input is-selectable ${c&&!et?"is-mappable":""}`,onClick:xt=>{xt.stopPropagation(),c&&!et&&(K(c,De.key.toString(),de.id),u(null))},children:et&&mt&&H.jsx("div",{className:"boomi-map-pin-badge",onClick:xt=>{xt.stopPropagation(),Z(mt.fromXPath??"",mt.toXPath??"")},children:"×"})})]},De.key)})}),H.jsx("div",{className:"flex flex-col gap-1 items-end",children:de.outputs.map(De=>{const qe=`${de.id}.out.${De.key}`,et=(k==null?void 0:k.fnId)===de.id&&k.outputKey===De.key;return H.jsxs("div",{className:"relative",children:[H.jsx("div",{className:"text-xs pr-2 pb-2",children:De.name}),H.jsx("div",{ref:J(T.current,qe),className:`boomi-map-pin --output is-selectable ${et?"is-active-output":""}`,onClick:mt=>{mt.stopPropagation(),M({fnId:de.id,outputKey:De.key}),B(de.id),u(null),X(null)}})]},De.key)})})]})]},de.id)})})]}),H.jsxs("div",{className:"boomi-map-col boomi-map-col--targets",children:[H.jsx("h3",{className:"boomi-map-heading",children:"Targets"}),e.map((de,Ve)=>{const De=`${de.xpath}::${Ve}`,qe=a.some(mt=>mt.toXPath===de.xpath),et=(!!c||!!k)&&!qe;return H.jsxs("div",{className:`boomi-map-card boomi-map-card--target ${j===de.xpath?"is-selected":""} ${qe?"is-mapped":""} cursor-pointer`,onClick:()=>ve(de.xpath),children:[H.jsx("div",{className:"flex justify-start items-center",children:H.jsx("div",{className:"flex-0",children:H.jsx("span",{className:"text-xs truncate pl-2",children:de.name})})}),H.jsx("div",{className:"flex justify-start items-center",children:H.jsx("div",{className:"flex-0",children:H.jsx("div",{className:"text-[10px] font-thin text-gray-500 break-words whitespace-normal",children:de.xpath})})}),H.jsx("div",{ref:J(m.current,Ts(de.xpath)),className:`boomi-map-pin --target is-selectable ${et?"is-mappable":""}`,onClick:mt=>{mt.stopPropagation(),ve(de.xpath)},children:qe&&H.jsx("span",{className:"boomi-map-pin-badge",onClick:mt=>{mt.stopPropagation();const xt=a.find($t=>$t.toXPath===de.xpath);xt&&Z(xt.fromXPath??"",xt.toXPath??"")},children:"×"})})]},De)})]})]})]})}),UJ=140,m_=0,ua=t=>(t||"").replace(/^\/+|\/+$/g,""),pH=t=>(t||"").replace(/^\/+|\/+$/g,"").split("/").filter(Boolean);function HJ(t){const e=pH(t),i=[];for(let a=1;a<=e.length;a++)i.push(e.slice(0,a).join("/"));return i}function r5(t){const e=new Map,i=(p,g,y,f)=>{let b=p.get(y);return b||(b={key:y,fullPath:f,name:y,children:[],isLeaf:!1,__childMap:new Map},p.set(y,b),g&&!g.children.includes(b)&&g.children.push(b)),b};for(const p of t){const g=pH(p.xpath||p.name||"");if(!g.length)continue;let y=e,f=null,b="";for(const c of g){b=b?`${b}/${c}`:c;const u=i(y,f,c,b);f=u,y=u.__childMap}f&&(f.node=p)}const a=Array.from(e.values()),E=p=>{p.isLeaf=p.children.length===0,p.children.forEach(g=>E(g))};return a.forEach(E),a}function a5(t){const e=new Map,i=a=>{e.set(a.fullPath,a),a.children.forEach(i)};return t.forEach(i),e}function s5(t,e){let i=ua(t);for(;i;){const a=Ts(i);if(e.has(a))return i;const E=i.lastIndexOf("/");if(E<0)break;i=i.slice(0,E)}return null}const Ss=(t,e)=>!!t&&!!e&&(ua(t)===ua(e)||ua(t).startsWith(ua(e)+"/")),qi=(t,e)=>ua(t)===ua(e),jJ=Y.forwardRef(({sourceFields:t,targetFields:e,functions:i,mappings:a=[],onMappingChange:E,onTransformationUpdate:p,onEditTransformation:g,onDeleteTransformation:y,onAddTransformation:f},b)=>{const[c,u]=Y.useState(null),[d,h]=Y.useState(null),[m,S]=Y.useState(null),[T,A]=Y.useState(null),N=Y.useRef(null),O=Y.useRef(new Map),D=Y.useRef(new Map),R=Y.useRef(new Map),C=Y.useRef(new Map),$=Y.useRef({}),F=Y.useRef(null),[U,j]=Y.useState(!1),[X,P]=Y.useState(!1),[B,k]=Y.useState(null),[M,I]=Y.useState(null),[W,Q]=Y.useState(new Set),[J,K]=Y.useState(new Set),[Z,re]=Y.useState({}),te=Y.useMemo(()=>r5(t),[t]),ae=Y.useMemo(()=>r5(e),[e]),se=Y.useMemo(()=>a5(te),[te]),ie=Y.useMemo(()=>a5(ae),[ae]),ue=Ce=>Ce==="source"?se:ie,me=Ce=>Ce==="source"?W:J,ve=(Ce,Ze)=>{Ce==="source"?Q(Ze):K(Ze)},pe=(Ce,Ze)=>{const ft=new Set(me(Ce));HJ(ua(Ze)).forEach(Tt=>ft.delete(Tt)),ve(Ce,ft)},ye=Ce=>{const Ze=new Set;ue(Ce).forEach(ft=>{ft.isLeaf||Ze.add(ft.fullPath)}),ve(Ce,Ze)},de=Ce=>ve(Ce,new Set),[Ve,De]=Y.useState(""),[qe,et]=Y.useState(""),[mt,xt]=Y.useState([]),[$t,ze]=Y.useState([]),[nt,ct]=Y.useState(0),[gt,at]=Y.useState(0),Re=Y.useMemo(()=>new Set(mt),[mt]),je=Y.useMemo(()=>new Set($t),[$t]),ot=()=>{u(null),h(null),S(null),A(null)},tt=(Ce,Ze)=>{Ce&&($.current[Ze]=Ce)},vt=(Ce,Ze)=>ft=>{ft?Ce.set(Ze,ft):Ce.delete(Ze)},St=(Ce,Ze,ft,Tt)=>{a.find(Mt=>Mt.fromXPath===Ce&&Mt.toXPath===Ze&&Mt.toFunction===ft&&Mt.fromFunction===Tt)||E==null||E([...a,{fromXPath:Ce,toXPath:Ze,toFunction:ft,fromFunction:Tt}])},Nt=(Ce,Ze)=>{E==null||E(a.filter(ft=>!(ft.fromXPath===Ce&&ft.toXPath===Ze)))},an=(Ce,Ze)=>{E==null||E(a.filter(ft=>!(ft.fromFunction===Ce&&ft.fromXPath===String(Ze))))},Lt=Ce=>{E==null||E(a.filter(Ze=>Ze.fromXPath!==Ce))},_t=Ce=>{I(Ce),P(!0)},Et=()=>{B&&(Lt(B),k(null)),j(!1)},xe=()=>{M&&(y==null||y(M),I(null)),P(!1)},Ge=()=>{I(null),k(null),j(!1)},bt=Ce=>{const Ze=a.some(ft=>ft.toXPath===Ce);if((c||T)&&Ze){h(Ce),u(null),S(null),A(null);return}if(c){St(c,Ce,void 0,void 0),u(null),A(null),S(null),h(Ce);return}if(T){St(String(T.outputKey),Ce,void 0,T.fnId),A(null),u(null),S(null),h(Ce);return}h(Ce),u(null),S(null)};Y.useEffect(()=>{const Ce={};let Ze=0;i.forEach(ft=>{const Tt=typeof ft.y=="number"?ft.y:sC(ft.id)??Ze;Ce[ft.id]={x:ft.x??m_,y:Tt},typeof ft.y!="number"&&(Ze+=UJ)}),re(Ce)},[i]);const Dt=(Ce,Ze)=>{const ft=ua(Ze).toLowerCase();if(Ce==="source"?De(Ze):et(Ze),!ft){Ce==="source"?(xt([]),ct(0)):(ze([]),at(0));return}const Tt=ue(Ce),Mt=[];Tt.forEach(Gt=>{var Yt;const sn=ua(Gt.fullPath).toLowerCase(),Rn=Gt.isLeaf?ua((Yt=Gt.node)==null?void 0:Yt.xpath).toLowerCase():null;sn.includes(ft)?Mt.push(ua(Gt.fullPath)):Rn&&Rn.includes(ft)&&Mt.push(ua(Gt.node.xpath))});const en=Array.from(new Set(Mt));if(Ce==="source"?(xt(en),ct(0)):(ze(en),at(0)),en.length>0){const Gt=en[0];pe(Ce,Gt),requestAnimationFrame(()=>ut(Ce,Gt))}},ut=(Ce,Ze)=>{const Tt=(Ce==="source"?O:D).current.get(Ts(Ze));Tt&&Tt.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})},yt=(Ce,Ze)=>{const ft=Ce==="source"?mt:$t;if(!ft.length)return;const Mt=((Ce==="source"?nt:gt)+Ze+ft.length)%ft.length;Ce==="source"?ct(Mt):at(Mt);const en=ft[Mt];pe(Ce,en),requestAnimationFrame(()=>ut(Ce,en))},Ht=({side:Ce,nodes:Ze,collapsed:ft,setCollapsed:Tt,onLeafClick:Mt,refMap:en})=>{const Gt=Je=>{Tt(Fn=>{const Rt=new Set(Fn);return Rt.has(Je)?Rt.delete(Je):Rt.add(Je),Rt})},sn=Ce==="source"?Re:je,Rn=Ce==="source"?mt[nt]:$t[gt],Yt=Je=>{var ki,wr;const Fn=ft.has(Je.fullPath),Rt=(ki=Je.node)==null?void 0:ki.xpath,ni=Je.isLeaf?Ce==="source"?a.some(it=>qi(it.fromXPath,Rt)):a.some(it=>qi(it.toXPath,Rt)):!1,vo=c&&(Ce==="source"?qi(Rt,c)||Ss(c,Rt)||Ss(Rt,c):a.some(it=>(qi(it.fromXPath,c)||Ss(it.fromXPath,c))&&(Je.isLeaf?qi(it.toXPath,Rt):Ss(it.toXPath,Je.fullPath))))||d&&(Ce==="target"?qi(Rt,d)||Ss(d,Rt)||Ss(Rt,d):a.some(it=>(qi(it.toXPath,d)||Ss(it.toXPath,d))&&(Je.isLeaf?qi(it.fromXPath,Rt):Ss(it.fromXPath,Je.fullPath))))||m&&a.some(it=>it.fromFunction===m&&Ce==="source"&&(Je.isLeaf?qi(it.fromXPath,Rt):Ss(it.fromXPath,Je.fullPath))||it.toFunction===m&&Ce==="target"&&(Je.isLeaf?qi(it.toXPath,Rt):Ss(it.toXPath,Je.fullPath))),Xt=Ce==="target"&&Je.isLeaf&&(!!c||!!T)&&!a.some(it=>qi(it.toXPath,Rt)),Pn=Je.isLeaf?ua(Rt):ua(Je.fullPath),zo=sn.has(Pn),mo=Rn&&Pn===Rn;return H.jsxs("div",{className:"boomi-tree-node",style:{marginBottom:6},children:[H.jsx("div",{className:["boomi-map-card",Ce==="source"?"boomi-map-card--source":"boomi-map-card--target",Je.isLeaf&&(Ce==="source"?qi(c||"",Rt||"")?"is-selected":"":qi(d||"",Rt||"")?"is-selected":""),ni?"is-mapped":"",vo?"is-connected":"",zo?"is-search-hit":"",mo?"is-current-hit":"","cursor-pointer"].join(" "),onClick:it=>{it.stopPropagation(),Je.isLeaf&&Rt?Ce==="source"?(u(Rt),h(null),S(null),A(null)):Mt(Rt):(Gt(Je.fullPath),requestAnimationFrame(jt))},children:H.jsxs("div",{className:"flex items-center justify-between",children:[H.jsxs("div",{className:"flex items-center gap-1 flex-1 min-w-0",children:[!Je.isLeaf&&H.jsx("button",{className:"boomi-tree-toggle inline-flex items-center justify-center w-4 h-4 p-0 leading-none shrink-0",onClick:it=>{it.stopPropagation(),Gt(Je.fullPath),requestAnimationFrame(jt)},"aria-expanded":!Fn,"aria-label":Fn?"Expand":"Collapse",title:Fn?"Expand":"Collapse",children:Fn?H.jsx(R7,{size:12}):H.jsx(rC,{size:12})}),H.jsx("div",{className:"boomi-map-card-title text-xs font-medium leading-snug whitespace-normal break-words",style:{overflowWrap:"anywhere"},children:Je.isLeaf?((wr=Je.node)==null?void 0:wr.name)??Je.name:Je.name})]}),H.jsxs("div",{ref:vt(en.current,Ts(Pn)),className:["boomi-map-pin",Ce==="source"?"--source":"--target","is-selectable",Xt?"is-mappable":""].join(" "),onClick:it=>{if(it.stopPropagation(),!(!Je.isLeaf||!Rt)){if(Ce==="target"){Mt(Rt);return}a.some(Ee=>qi(Ee.fromXPath,Rt))?(k(Rt),j(!0)):(u(Rt),h(null),S(null),A(null))}},children:[Je.isLeaf&&ni&&Ce==="source"&&H.jsx("span",{className:"boomi-map-pin-badge",onClick:it=>{it.stopPropagation(),k(Rt),j(!0)},title:"Disconnect",children:"×"}),Je.isLeaf&&ni&&Ce==="target"&&H.jsx("span",{className:"boomi-map-pin-badge",onClick:it=>{it.stopPropagation();const Ee=a.find(Ke=>qi(Ke.toXPath,Rt));Ee&&Nt(Ee.fromXPath??"",Ee.toXPath??"")},title:"Disconnect",children:"×"})]})]})}),!Je.isLeaf&&!Fn&&Je.children.length>0&&H.jsx("div",{className:"py-2 boomi-tree-children pl-3 border-l border-dashed border-gray-300",children:Je.children.map(Yt)})]},Je.fullPath)};return H.jsx("div",{className:"boomi-tree",style:{display:"flex",flexDirection:"column",gap:1},children:Ze.map(Yt)})},jt=()=>{const Ce=N.current;if(!Ce)return;for(;Ce.firstChild;)Ce.removeChild(Ce.firstChild);let Ze=!1;a.forEach(ft=>{const Tt=ft.fromXPath,Mt=ft.toXPath;if(!Tt)return;const en=ft.fromFunction?C.current.get(`${ft.fromFunction}.out.${Ts(String(Tt))}`)??null:(()=>{const on=s5(String(Tt),O.current);return on?O.current.get(Ts(on))??null:null})(),Gt=ft.toFunction?R.current.get(`${ft.toFunction}.in.${Ts(String(Mt))}`)??null:(()=>{const on=s5(String(Mt),D.current);return on?D.current.get(Ts(on))??null:null})();if(!en||!Gt)return;const sn=en.getBoundingClientRect(),Rn=Gt.getBoundingClientRect(),Yt=Ce.getBoundingClientRect(),Je={x:sn.left+sn.width/2-Yt.left,y:sn.top+sn.height/2-Yt.top},Fn={x:Rn.left+Rn.width/2-Yt.left,y:Rn.top+Rn.height/2-Yt.top},Rt=Fn.x-Je.x,ni=Fn.y-Je.y,vo=Rt/1.5,Pn=Math.min(12,Math.abs(ni)/2),zo=ni>0?1:-1,mo={x:Je.x+vo,y:Je.y-zo*Pn},ki={x:Fn.x-vo,y:Fn.y-zo*Pn},wr=`M ${Je.x} ${Je.y} C ${mo.x} ${mo.y} ${ki.x} ${ki.y} ${Fn.x} ${Fn.y}`,it=c&&(qi(ft.fromXPath,c)||Ss(ft.fromXPath,c))||m&&ft.fromFunction===m,Ee=d&&(qi(ft.toXPath,d)||Ss(ft.toXPath,d))||m&&ft.toFunction===m,Ke=!!(it||Ee),st=document.createElementNS("http://www.w3.org/2000/svg","path");st.setAttribute("d",wr),st.setAttribute("fill","none"),st.setAttribute("stroke-linejoin","round"),st.setAttribute("stroke-linecap","round"),Ke&&(st.classList.add("is-highlighted"),c&&(qi(ft.fromXPath,c)||Ss(ft.fromXPath,c))&&st.classList.add("is-danger"),Ze=!0),Ce.appendChild(st)}),Ze?Ce.classList.add("has-selection"):Ce.classList.remove("has-selection")};return Y.useLayoutEffect(()=>{const Ce=()=>requestAnimationFrame(jt);return Ce(),window.addEventListener("resize",Ce),()=>window.removeEventListener("resize",Ce)},[a,i,t,e,Z,c,d,m,W,J]),H.jsxs(H.Fragment,{children:[U&&H.jsx(gp,{type:"warning",title:"Are you sure?",description:"Disconnecting these mappings cannot be undone.",showCancel:!0,confirmButtonText:"Yes, Disconnect All!",cancelButtonText:"No, cancel",onConfirm:Et,onCancel:Ge}),X&&H.jsx(gp,{type:"warning",title:"Are you sure?",description:"Deleting this transformation cannot be undone and will remove all mappings associated with it.",showCancel:!0,confirmButtonText:"Yes, Delete!",cancelButtonText:"No, cancel",onConfirm:xe,onCancel:Ge}),H.jsxs("div",{className:"boomi-map-canvas",onClick:Ce=>{const Ze=Ce.target;!Ze.closest(".boomi-map-card")&&!Ze.closest(".boomi-map-pin")&&ot()},children:[H.jsx("svg",{ref:N,className:"boomi-map-svg"}),H.jsxs("div",{className:"boomi-map-col boomi-map-col--sources",children:[H.jsxs("div",{className:"flex items-center justify-between",children:[H.jsx("h3",{className:"boomi-map-heading",children:"Sources"}),H.jsxs("div",{className:"flex gap-2",children:[H.jsx(Bn,{toggle:!1,primary:!1,showIcon:!1,label:"Expand All",onClick:()=>{de("source"),requestAnimationFrame(jt)}}),H.jsx(Bn,{toggle:!1,primary:!1,showIcon:!1,label:"Collapse All",onClick:()=>{ye("source"),requestAnimationFrame(jt)}})]})]}),H.jsxs("div",{className:"mt-2 flex items-center gap-2",children:[H.jsx(xE,{searchCallback:Ce=>Dt("source",Ce)}),H.jsxs("div",{className:"flex items-center gap-1 text-xs",children:[H.jsx("button",{type:"button",className:"px-2 py-1 rounded border boomi-btn-xs",onClick:()=>yt("source",-1),disabled:mt.length===0,title:"Previous result",children:"Prev"}),H.jsx("span",{className:"min-w-[56px] text-center",children:mt.length?`${nt+1} / ${mt.length}`:"0 / 0"}),H.jsx("button",{type:"button",className:"px-2 py-1 rounded border boomi-btn-xs",onClick:()=>yt("source",1),disabled:mt.length===0,title:"Next result",children:"Next"})]})]}),H.jsx(Ht,{side:"source",nodes:te,collapsed:W,setCollapsed:Q,onLeafClick:Ce=>{u(Ce),h(null),S(null),A(null)},refMap:O})]}),H.jsxs("div",{className:"boomi-map-col boomi-map-col--functions",children:[H.jsxs("div",{className:"flex justify-between items-center mb-2",children:[H.jsx("h3",{className:"boomi-map-heading w-full text-center",children:"Transformations"}),H.jsx("div",{className:"flex-1 text-right",children:H.jsx(Bn,{toggle:!1,primary:!1,viewLoc:"field-mapping-add-transformation",buttonClass:"ml-2",onClass:"boomi-map-add-btn",showIcon:!0,label:"Add",icon:H.jsx(DE,{className:"w-4 h-4"}),onClick:()=>{const Ce={id:`temp-${Date.now()}`,name:"New Function",type:"custom",inputs:[],outputs:[]};f==null||f(Ce)}})})]}),H.jsx("div",{ref:F,className:"relative w-full max-w-md h-full",style:{minHeight:500,paddingTop:15,paddingBottom:15},children:i.map(Ce=>{Le.debug("Rendering function:",Ce);const Ze=Z[Ce.id]||{x:m_,y:15},ft=Tt=>a.filter(Mt=>Mt.fromFunction===Ce.id&&Mt.fromXPath===String(Tt));return H.jsxs(hH.div,{ref:Tt=>tt(Tt,Ce.id),drag:"y",dragMomentum:!1,dragElastic:0,dragSnapToOrigin:!1,dragConstraints:F,className:`boomi-map-card boomi-map-card--function absolute w-full ${m===Ce.id?"is-selected":""}`,style:{left:Ze.x,y:Math.max(15,Ze.y),cursor:"grab"},onDrag:(Tt,Mt)=>{re(en=>({...en,[Ce.id]:{...en[Ce.id],y:Mt.delta.y}}))},onDragEnd:()=>{var en;const Tt=mE(Ce.id),Mt=$.current[Ce.id];if(Mt){const Gt=((en=Mt.parentElement)==null?void 0:en.getBoundingClientRect().top)??0,sn=Mt.getBoundingClientRect().top,Rn=Math.round(sn-Gt),Yt=Math.max(15,Rn),Je=cT(Tt,Yt),Fn=i.map(Rt=>Rt.id===Ce.id&&Rt.id!==Je?{...Rt,newId:Je,x:Rt.x??m_,y:Yt}:Rt);p==null||p(Fn),requestAnimationFrame(jt)}},onClick:()=>{S(Ce.id),u(null),h(null)},children:[H.jsxs("div",{className:"flex justify-between items-center py-1",children:[H.jsx("div",{className:"boomi-map-card-title",children:"Transformation"}),H.jsx(mH,{onEditTransformation:()=>g==null?void 0:g(Ce),onDeleteTransformation:()=>_t(Ce)})]}),H.jsx("div",{className:"boomi-map-card-subtitle text-xs",children:Ce.type}),H.jsxs("div",{className:"flex justify-between mt-4",children:[H.jsx("div",{className:"flex flex-col gap-1",children:Ce.inputs.map(Tt=>{const Mt=`${Ce.id}.in.${Tt.key}`,en=a.some(sn=>sn.toFunction===Ce.id&&sn.toXPath===`${Tt.key}`),Gt=a.find(sn=>sn.toFunction===Ce.id&&sn.toXPath===`${Tt.key}`);return H.jsxs("div",{className:"relative z-50",children:[H.jsx("div",{className:"text-xs pl-2 pb-2",children:Tt.name}),H.jsx("div",{ref:vt(R.current,Mt),className:`boomi-map-pin --input is-selectable ${c&&!en?"is-mappable":""}`,onClick:sn=>{sn.stopPropagation(),c&&!en&&(St(c,Tt.key.toString(),Ce.id),u(null))},children:en&&Gt&&H.jsx("div",{className:"boomi-map-pin-badge",onClick:sn=>{sn.stopPropagation(),Nt(Gt.fromXPath??"",Gt.toXPath??"")},title:"Disconnect",children:"×"})})]},Tt.key)})}),H.jsx("div",{className:"flex flex-col gap-1 items-end",children:Ce.outputs.map(Tt=>{const Mt=`${Ce.id}.out.${Tt.key}`,en=(T==null?void 0:T.fnId)===Ce.id&&T.outputKey===Tt.key,Gt=ft(Tt.key);return H.jsxs("div",{className:"relative",children:[H.jsx("div",{className:"text-xs pr-2 pb-2",children:Tt.name}),H.jsx("div",{ref:vt(C.current,Mt),className:`boomi-map-pin --output is-selectable ${en?"is-active-output":""}`,onClick:sn=>{sn.stopPropagation(),A({fnId:Ce.id,outputKey:Tt.key}),S(Ce.id),u(null),h(null)},children:Gt.length>0&&H.jsxs("div",{className:"boomi-map-pin-badge",onClick:sn=>{sn.stopPropagation(),an(Ce.id,Tt.key)},title:Gt.length>1?`Disconnect ${Gt.length} targets`:"Disconnect",children:["×",Gt.length>1?` ${Gt.length}`:""]})})]},Tt.key)})})]})]},Ce.id)})})]}),H.jsxs("div",{className:"boomi-map-col boomi-map-col--targets",children:[H.jsxs("div",{className:"flex items-center justify-between",children:[H.jsx("h3",{className:"boomi-map-heading",children:"Targets"}),H.jsxs("div",{className:"flex gap-2",children:[H.jsx(Bn,{toggle:!1,primary:!1,showIcon:!1,label:"Expand All",onClick:()=>{de("target"),requestAnimationFrame(jt)}}),H.jsx(Bn,{toggle:!1,primary:!1,showIcon:!1,label:"Collapse All",onClick:()=>{ye("target"),requestAnimationFrame(jt)}})]})]}),H.jsxs("div",{className:"mt-2 flex items-center gap-2",children:[H.jsx(xE,{searchCallback:Ce=>Dt("target",Ce)}),H.jsxs("div",{className:"flex items-center gap-1 text-xs",children:[H.jsx("button",{type:"button",className:"px-2 py-1 rounded border boomi-btn-xs",onClick:()=>yt("target",-1),disabled:$t.length===0,title:"Previous result",children:"Prev"}),H.jsx("span",{className:"min-w-[56px] text-center",children:$t.length?`${gt+1} / ${$t.length}`:"0 / 0"}),H.jsx("button",{type:"button",className:"px-2 py-1 rounded border boomi-btn-xs",onClick:()=>yt("target",1),disabled:$t.length===0,title:"Next result",children:"Next"})]})]}),H.jsx(Ht,{side:"target",nodes:ae,collapsed:J,setCollapsed:K,onLeafClick:bt,refMap:D})]})]})]})}),gH=Y.forwardRef(({candidates:t,formName:e="editMapCandidateForm"},i)=>{const{boomiConfig:a}=Xn(),E=Y.useMemo(()=>{const N={};for(const O of t)N[O.connectionId]||(N[O.connectionId]={connectionId:O.connectionId,connectionName:O.connectionName||O.connectionId,params:[]}),N[O.connectionId].params.includes(O.paramName)||N[O.connectionId].params.push(O.paramName);return N},[t]),[p,g]=Y.useState({}),[y,f]=Y.useState({}),b=Y.useCallback(N=>!!Object.values(y[N]??{}).find(O=>!!O),[y]);Y.useEffect(()=>{const N={},O={};for(const[D,R]of Object.entries(E)){N[D]=N[D]??{},O[D]=O[D]??{};for(const C of R.params){const $=t.find(F=>F.connectionId===D&&F.paramName===C);N[D][C]=($==null?void 0:$.paramValue)??"",O[D][C]=""}}g(N),f(O)},[E,t]);const c=Y.useCallback(N=>{var D,R,C;const O=((C=(R=(D=a==null?void 0:a.form)==null?void 0:D.editMapCandidateForm)==null?void 0:R[N])==null?void 0:C.validation)??null;if(!O)return null;try{const $=String(O).match(/^\/(.+)\/([a-z]*)$/i);return $?new RegExp($[1],$[2]):new RegExp(String(O))}catch{return null}},[a]),u=Y.useCallback((N,O,D)=>{if(!D||!D.trim())return"Required";const R=c(O);return R&&!R.test(D)?"Invalid format":""},[c]),d=Y.useCallback(()=>{var D;const N={};let O=!1;for(const[R,C]of Object.entries(E)){N[R]=N[R]??{};for(const $ of C.params){const F=((D=p[R])==null?void 0:D[$])??"",U=u(R,$,F);N[R][$]=U,U&&(O=!0)}}return f(N),!O},[E,p,u]),h=Y.useMemo(()=>{var N;for(const[O,D]of Object.entries(E))for(const R of D.params){const C=((N=p[O])==null?void 0:N[R])??"";if(!C||!C.trim())return!1;const $=c(R);if($&&!$.test(C))return!1}return!0},[E,p,c]),m=Y.useCallback(N=>{f(O=>{const D={...O};for(const[R,C]of Object.entries(N||{})){D[R]??(D[R]={});for(const[$,F]of Object.entries(C||{}))D[R][$]=F||"Invalid value"}return D})},[]),S=Y.useCallback((N,O="Please supply valid credentials and try again.")=>{var R;const D={};for(const C of N||[]){if(!(C!=null&&C.connectionId)||!(C!=null&&C.paramName))continue;const $=C.uiMessage||C.message||O;D[R=C.connectionId]??(D[R]={}),D[C.connectionId][C.paramName]=$}m(D)},[m]);Y.useImperativeHandle(i,()=>({validateAndSubmit:()=>d()?{candidates:t.map(R=>{var C;return{...R,paramValue:((C=p[R.connectionId])==null?void 0:C[R.paramName])??""}})}:null,isFormReady:()=>h,applyErrors:m,applyErrorsFromCandidates:S}));const T=Y.useCallback((N,O,D)=>{g(R=>({...R,[N]:{...R[N]??{},[O]:D}})),f(R=>({...R,[N]:{...R[N]??{},[O]:""}}))},[]),A=Y.useCallback((N,O)=>{var C;const D=((C=p[N])==null?void 0:C[O])??"",R=u(N,O,D);R&&f($=>({...$,[N]:{...$[N]??{},[O]:R}}))},[p,u]);return H.jsx("div",{className:"space-y-6",children:Object.values(E).map(N=>(b(N.connectionId),H.jsx("div",{className:"boomi-connector-group",children:H.jsxs("div",{className:"boomi-connector-section",children:[H.jsx("h3",{className:"boomi-connector-heading",children:N.connectionName}),H.jsx("div",{className:"grid grid-cols-1 gap-4",children:N.params.map(O=>{var F,U;const D=((F=p[N.connectionId])==null?void 0:F[O])??"",R=((U=y[N.connectionId])==null?void 0:U[O])??"",C=`${e}-${N.connectionId}-${O}`,$=O;return H.jsx(mp,{formName:e,label:$,type:"password",required:!0,inputName:C,value:D,onChange:j=>T(N.connectionId,O,j.target.value),onBlur:()=>A(N.connectionId,O),error:R,placeholder:"Enter value",readOnly:!1},C)})})]})},N.connectionId)))})});gH.displayName="EditMapCandidateForm";const DN=({componentKey:t,active:e,wizard:i,integration:a,onBack:E,setIsLoading:p})=>{var $t,ze,nt,ct,gt,at,Re,je,ot,tt,vt,St,Nt,an,Lt,_t,Et,xe,Ge,bt,Dt;const{boomiConfig:g,setPageIsLoading:y,renderComponent:f}=Xn(),{updateMapExtensions:b}=qY(),[c,u]=Y.useState(null),{maps:d,isLoading:h,hasCandidates:m,mapCandidates:S,fetchMapExtensions:T}=XY(),[A,N]=Y.useState(0),O=d[A],D=O==null?void 0:O.mapId,[R,C]=Y.useState({}),[$,F]=Y.useState({}),[U,j]=Y.useState(null),[X,P]=Y.useState(!1),B=Y.useRef(null),[k,M]=Y.useState(""),I=Y.useRef(null),[W,Q]=Y.useState(!1),{executeMapExtensions:J,updatedCandidates:K}=KY(),[Z,re]=Y.useState(!1),te=((nt=(ze=($t=O==null?void 0:O.Map)==null?void 0:$t.SourceProfile)==null?void 0:ze.Node)==null?void 0:nt.filter(ut=>ut.xpath))??[],ae=((at=(gt=(ct=O==null?void 0:O.Map)==null?void 0:ct.DestinationProfile)==null?void 0:gt.Node)==null?void 0:at.filter(ut=>ut.xpath))??[],se=((ot=(je=(Re=g==null?void 0:g.components)==null?void 0:Re[t])==null?void 0:je.mapping)==null?void 0:ot.useTreeMode)??!1,ie=async ut=>{p==null||p(!0),y==null||y(!0);try{return await ut()}finally{p==null||p(!1),y==null||y(!1)}},ue=ut=>{f==null||f({component:"Integrations",props:{componentKey:t||"integrationsMain"}})},me=()=>ue(),ve=()=>{y==null||y(!0),ue()},pe=async()=>ie(async()=>{var yt,Ht,jt;const ut=(yt=I.current)==null?void 0:yt.validateAndSubmit();if(!ut)return!1;try{const Ce=await J(ut.candidates);return Array.isArray(Ce)&&Ce.length>0?((Ht=I.current)==null||Ht.applyErrorsFromCandidates(Ce,"Please supply valid credentials and try again."),!1):(Q(!1),y==null||y(!0),await qe(),re(!0),!0)}catch{return K!=null&&K.length&&((jt=I.current)==null||jt.applyErrorsFromCandidates(K,"Authentication Failed. Please supply valid credentials and try again.")),!1}}),ye=async ut=>{await ie(async()=>{var ft,Tt,Mt,en;const yt={DestinationBrowse:{},SourceBrowse:{},containerId:void 0};if(!D||!O)return;const Ht=R[D]||[],{functions:jt}=Kk(Ht),Ce={...O,Map:{...O==null?void 0:O.Map,BrowseSettings:yt,DestinationProfile:((ft=O==null?void 0:O.Map)==null?void 0:ft.DestinationProfile)??{Node:[]},DestinationProfileExtensions:((Tt=O==null?void 0:O.Map)==null?void 0:Tt.DestinationProfileExtensions)??{Node:[]},SourceProfile:((Mt=O==null?void 0:O.Map)==null?void 0:Mt.SourceProfile)??{Node:[]},SourceProfileExtensions:((en=O==null?void 0:O.Map)==null?void 0:en.SourceProfileExtensions)??{Node:[]},ExtendedFunctions:{Function:jt},ExtendedMappings:{Mapping:ut}}};await b(Ce),F(Gt=>({...Gt,[D]:ut}));const Ze=d.map(Gt=>Gt.mapId===Ce.mapId?Ce:Gt)}).catch(yt=>u((yt==null?void 0:yt.message)||"Failed to update functions"))},de=async(ut,yt)=>{await ie(async()=>{var Gt,sn,Rn,Yt;const Ht={DestinationBrowse:{},SourceBrowse:{},containerId:void 0};if(!D||!O)return;const jt=(yt==null?void 0:yt.mappingsOverride)??($[D]||[]),{functions:Ce,idMap:Ze}=Kk(ut),ft=Je=>(Je==null?void 0:Je.id)??(Je==null?void 0:Je["@id"])??(Je==null?void 0:Je.FunctionId)??(Je==null?void 0:Je.functionId)??(Je==null?void 0:Je.Id),Tt=new Set((Array.isArray(Ce)?Ce:[]).map(ft).filter(Je=>Je!=null)),Mt=jt.map(Je=>({...Je,...Je.fromFunction!=null&&(Ze==null?void 0:Ze[Je.fromFunction])!=null?{fromFunction:Ze[Je.fromFunction]}:{},...Je.toFunction!=null&&(Ze==null?void 0:Ze[Je.toFunction])!=null?{toFunction:Ze[Je.toFunction]}:{}})).filter(Je=>!(Je.fromFunction!=null&&!Tt.has(Je.fromFunction)||Je.toFunction!=null&&!Tt.has(Je.toFunction)||Je.fromFunction&&isNaN(Number(Je.fromXPath))||Je.toFunction&&isNaN(Number(Je.toXPath)))),en={...O,Map:{...O==null?void 0:O.Map,BrowseSettings:Ht,DestinationProfile:((Gt=O==null?void 0:O.Map)==null?void 0:Gt.DestinationProfile)??{Node:[]},DestinationProfileExtensions:((sn=O==null?void 0:O.Map)==null?void 0:sn.DestinationProfileExtensions)??{Node:[]},SourceProfile:((Rn=O==null?void 0:O.Map)==null?void 0:Rn.SourceProfile)??{Node:[]},SourceProfileExtensions:((Yt=O==null?void 0:O.Map)==null?void 0:Yt.SourceProfileExtensions)??{Node:[]},ExtendedFunctions:{Function:Ce},ExtendedMappings:{Mapping:Mt}}};await b(en),C(Je=>({...Je,[D]:Zk(Ce)})),F(Je=>({...Je,[D]:Mt}))}).catch(Ht=>u((Ht==null?void 0:Ht.message)||"Failed to update functions"))},Ve=async ut=>{await ie(async()=>{const yt=R[D]||[],Ht=$[D]||[],jt=yt.filter(Ze=>Ze.id!==ut.id),Ce=Ht.filter(Ze=>Ze.fromFunction!==ut.id&&Ze.toFunction!==ut.id);await de(jt,{mappingsOverride:Ce})}).catch(yt=>u((yt==null?void 0:yt.message)||"Failed to delete functions"))},De=async()=>{if(!B.current||!D)return!1;const ut=B.current.validateAndSubmit();if(!ut)return!1;const yt={id:(U==null?void 0:U.id)??"",newId:cT(ut.id,sC((U==null?void 0:U.id)??"")??0),name:ut.id,script:ut.script,inputs:ut.inputs.map(({name:jt,key:Ce,type:Ze})=>({name:jt,key:Ce,dataType:Ze})),outputs:ut.outputs.map(({name:jt,key:Ce})=>({name:jt,key:Ce})),type:"Custom Scripting"},Ht=U?(R[D]||[]).map(jt=>jt.id===U.id?yt:jt):[...R[D]||[],yt];try{await de(Ht),j(null),P(!1)}catch(jt){u(jt.message||"Failed to save transformation")}finally{p==null||p(!1)}return!0},qe=async()=>{try{Le.debug("Fetching maps...",[],a.environmentId,a.id),await T(a.id||"",a.environmentId||"")}catch(ut){u("Failed to fetch maps."),Le.error("Failed to fetch maps",ut)}};Y.useEffect(()=>{O&&(O!=null&&O.Map)&&D&&(C(ut=>{var yt,Ht;return{...ut,[D]:Zk(((Ht=(yt=O.Map)==null?void 0:yt.ExtendedFunctions)==null?void 0:Ht.Function)??[])}}),F(ut=>{var yt,Ht;return{...ut,[D]:((Ht=(yt=O.Map)==null?void 0:yt.ExtendedMappings)==null?void 0:Ht.Mapping)??[]}}))},[e,O,D]),Y.useEffect(()=>{(e||!i)&&qe()},[e,i]),Y.useEffect(()=>{m&&Q(!0)},[m]);const et=((St=(vt=(tt=g==null?void 0:g.components)==null?void 0:tt[t])==null?void 0:vt.updateMaps)==null?void 0:St.showTitle)??!0,mt=((Lt=(an=(Nt=g==null?void 0:g.components)==null?void 0:Nt[t])==null?void 0:an.updateMaps)==null?void 0:Lt.showDescription)??!0,xt=H.jsxs(H.Fragment,{children:[Z&&H.jsx(Kc,{type:"success",content:"Authentication Successful. Map has been updated."}),X&&H.jsx(fh,{isOpen:X,title:"Transformation Editor",description:"Use this form to create or edit transformations.",onClose:()=>P(!1),onSubmit:De,submitLabel:"Save",children:H.jsx(IU,{componentKey:t,ref:B,existingName:k,existingScript:(U==null?void 0:U.script)??"",existingInputs:(U==null?void 0:U.inputs.map(({key:ut,name:yt,dataType:Ht})=>({key:ut,name:yt,type:Ht})))??[],existingOutputs:(U==null?void 0:U.outputs.map(({key:ut,name:yt})=>({key:ut,name:yt})))??[]})}),m&&H.jsx(fh,{isOpen:W,title:"Credentials required",description:"Re-enter your credentials to update the requested map(s).",onClose:()=>me(),onSubmit:pe,submitLabel:"Save",children:H.jsx(gH,{ref:I,candidates:S})}),h?H.jsx("div",{className:"flex justify-center items-center pt-6 m-6",children:H.jsx(Ki,{message:"Loading maps..."})}):d.length?H.jsxs("div",{className:`${i?"boomi-update-wizard":"boomi-update"}`,children:[et&&H.jsx("div",{className:"boomi-update-title",children:((xe=(Et=(_t=g==null?void 0:g.components)==null?void 0:_t[t])==null?void 0:Et.updateMaps)==null?void 0:xe.title)||"Map Fields"}),mt&&H.jsx("div",{className:"boomi-update-desc",children:((Dt=(bt=(Ge=g==null?void 0:g.components)==null?void 0:Ge[t])==null?void 0:bt.updateMaps)==null?void 0:Dt.description)||"Please map fields below."}),H.jsx("div",{className:"boomi-tabs",children:H.jsx("nav",{className:"boomi-tablist",children:d.map((ut,yt)=>{const Ht=A===yt;return H.jsx("button",{onClick:()=>N(yt),className:Yb("boomi-tab",Ht&&"boomi-tab--active"),type:"button",children:ut.name||`Map ${yt+1}`},ut.mapId)})})}),H.jsxs("div",{className:"boomi-update-content",children:[c&&H.jsx(tu,{error:{header:"Error Updating Maps",message:c,errorType:"error",onClose:()=>u(null)}}),se?H.jsx(jJ,{sourceFields:te,targetFields:ae,functions:R[D]||[],mappings:$[D]||[],onMappingChange:ye,onTransformationUpdate:de,onDeleteTransformation:Ve,onEditTransformation:ut=>{j(ut),M(mE(ut.name)),P(!0)},onAddTransformation:()=>{j(null),M(`script_${Date.now()}`),P(!0)}}):H.jsx($J,{sourceFields:te,targetFields:ae,functions:R[D]||[],mappings:$[D]||[],onMappingChange:ye,onTransformationUpdate:de,onDeleteTransformation:Ve,onEditTransformation:ut=>{j(ut),M(mE(ut.name)),P(!0)},onAddTransformation:()=>{j(null),M(`script_${Date.now()}`),P(!0)}})]}),!i&&H.jsxs("div",{className:"boomi-update-actions",children:[H.jsx(Bn,{toggle:!1,primary:!1,showIcon:!1,label:"Cancel",onClick:me}),H.jsx(Bn,{toggle:!1,primary:!0,showIcon:!1,label:"Save",onClick:ve})]})]}):H.jsx(tu,{error:{header:"No Maps Found",message:"No maps found for this integration.",errorType:"warning",onClose:E??(()=>{})}})]});return e||!i?i?xt:H.jsx(Ep,{componentKey:t,componentName:"updateMaps",isRootNavigation:!1,title:`Update Maps - ${a.integrationPackOverrideName}`,description:a.integrationPackDescription||"",headerContent:H.jsx(H.Fragment,{}),bodyContent:xt,footerContent:H.jsx(H.Fragment,{}),levelOne:"My Integrations",callbackOne:E}):null};DN.displayName="UpdateMaps";const MN=Y.forwardRef(({componentKey:t,integration:e,active:i,wizard:a,onSubmit:E,onBack:p,setIsLoading:g},y)=>{var me,ve,pe,ye,de,Ve,De,qe,et,mt,xt,$t;const{boomiConfig:f,renderComponent:b}=Xn(),c=Y.useRef(null),{updateFromCombined:u,editedConnections:d}=v6(),{extensions:h,rawExtensions:m,isLoading:S,fetchEnvironmentExtensions:T}=y6(),[A,N]=Y.useState(null),[O,D]=Y.useState(null),{fetchOauth2Url:R}=E6(),{fetchEnvironmentExtensionConnectionStatus:C}=w6(),[$,F]=Y.useState({}),[U,j]=Y.useState({}),[X,P]=Y.useState({}),B=Y.useRef(null),k=Y.useRef({}),M=(ze,nt)=>`${ze}:${nt}`,I=async()=>{var ze;N(null);try{const nt=(ze=c.current)==null?void 0:ze.validateAndSubmit();return!nt||!e.environmentId?(Le.warn("Connector form is invalid or missing environmentId"),!1):(g==null||g(!0),await u(m??[],nt??[],e.environmentId,e.id||""),g==null||g(!1),E==null||E(),!0)}catch(nt){return g==null||g(!1),N(nt.message||"Failed to update environment extensions"),Le.error("Update error:",nt),!1}},W=ze=>{b==null||b({component:"Integrations",props:{componentKey:t||"integrationsMain"}})};Y.useImperativeHandle(y,()=>({submit:I}));const Q=()=>W(),J=async()=>{await I()&&W()},K=(ze,nt,ct)=>{const gt=M(ze,nt),at=k.current[gt];at!=null&&at.interval&&window.clearInterval(at.interval),at!=null&&at.timeout&&window.clearTimeout(at.timeout),at!=null&&at.watch&&window.clearInterval(at.watch);const Re=window.setTimeout(()=>{Z(gt,{success:!1,message:"Authentication timed out. Please try again.",closePopup:!0}),ct(!1)},12e4),je=window.setInterval(async()=>{try{const tt=await C(e.environmentId,e.id||"",ze,nt);if(!!(tt===!0||tt!=null&&tt.connected||(tt==null?void 0:tt.status)==="CONNECTED")){Z(gt,{success:!0,message:null,closePopup:!0});const St=e.installationType==="SINGLE"||!1;Le.debug("Connection authorized, reloading extensions",{isSingle:St}),await T([],e.environmentId,e.id||"",St),ct(!0)}else P(St=>({...St,[gt]:"Waiting for connection to complete…"}))}catch(tt){Le.warn("Polling error (connection status)",tt)}},5e3),ot=window.setInterval(()=>{B.current&&B.current.closed&&(Z(gt,{success:!1,message:"Authorization window closed.",closePopup:!1}),ct(!1))},500);k.current[gt]={interval:je,timeout:Re,watch:ot}},Z=(ze,{success:nt,message:ct,closePopup:gt=!0})=>{const at=k.current[ze];if(at!=null&&at.interval&&window.clearInterval(at.interval),at!=null&&at.timeout&&window.clearTimeout(at.timeout),at!=null&&at.watch&&window.clearInterval(at.watch),delete k.current[ze],F(Re=>({...Re,[ze]:!1})),j(Re=>({...Re,[ze]:nt})),ct!==void 0&&P(Re=>({...Re,[ze]:ct})),gt)try{B.current&&!B.current.closed&&B.current.close()}catch{}},re=async(ze,nt)=>{const ct=M(ze,nt);Le.log("Authenticate connection:",{connectionId:ze,fieldId:nt}),F(tt=>({...tt,[ct]:!0})),j(tt=>({...tt,[ct]:!1})),P(tt=>({...tt,[ct]:"Opening authorization window…"}));const gt=600,at=750,Re=window.screenX+Math.max(0,(window.outerWidth-gt)/2),je=window.screenY+Math.max(0,(window.outerHeight-at)/2),ot=window.open("","oauth2_auth",`width=${gt},height=${at},left=${Re},top=${je},resizable,scrollbars`);B.current=ot??null;try{const tt=await R(e.id||"",e.environmentId,ze,nt);B.current?B.current.location.href=tt:window.location.assign(tt),P(vt=>({...vt,[ct]:"Please complete authentication in the new window…"})),K(ze,nt,vt=>{if(!vt)try{B.current&&!B.current.closed&&B.current.close()}catch{}})}catch(tt){B.current&&!B.current.closed&&B.current.close(),F(St=>({...St,[ct]:!1})),P(St=>({...St,[ct]:null}));const vt=(tt==null?void 0:tt.message)||"Failed to fetch OAuth2 URL";N(vt),Le.error("Failed to fetch oauth2Url",tt)}};Y.useEffect(()=>{d&&d.length>0&&D(d)},[d]),Y.useEffect(()=>{h&&D(h)},[h]),Y.useEffect(()=>()=>{Object.values(k.current).forEach(({interval:ze,timeout:nt})=>{ze&&window.clearInterval(ze),nt&&window.clearTimeout(nt)}),B.current&&!B.current.closed&&B.current.close()},[]),Y.useEffect(()=>{!(e!=null&&e.environmentId)||!(e!=null&&e.id)||(i||!a)&&T([],e.environmentId,e.id).catch(ze=>{N(ze.message),Le.error("Failed to fetch environment extensions",ze)})},[i,a,e.environmentId,e.id]);const te=((pe=(ve=(me=f==null?void 0:f.components)==null?void 0:me[t])==null?void 0:ve.updateConnections)==null?void 0:pe.showTitle)??!0,ae=((Ve=(de=(ye=f==null?void 0:f.components)==null?void 0:ye[t])==null?void 0:de.updateConnections)==null?void 0:Ve.title)??"Update Connections",se=((et=(qe=(De=f==null?void 0:f.components)==null?void 0:De[t])==null?void 0:qe.updateConnections)==null?void 0:et.showDescription)??!0,ie=(($t=(xt=(mt=f==null?void 0:f.components)==null?void 0:mt[t])==null?void 0:xt.updateConnections)==null?void 0:$t.description)??"Please provide the necessary information to make connections to your target systems.",ue=H.jsx(H.Fragment,{children:H.jsxs("div",{className:`${a?"boomi-update-wizard":"boomi-update"}`,children:[(te||se)&&H.jsxs("div",{className:"boomi-update-header",children:[te&&H.jsx("div",{className:"boomi-update-title",children:ae}),se&&H.jsx("div",{className:"boomi-update-desc",children:ie})]}),S&&!O?H.jsx("div",{className:"boomi-center pt-6 m-6",children:H.jsx(Ki,{message:"Retrieving Connection Information..."})}):H.jsxs("div",{className:"boomi-update-body",children:[A&&H.jsx(tu,{error:{header:"Error Updating Connections",message:A,errorType:"error"}}),H.jsx($C,{ref:c,extensions:O||[],onAuthConnection:re,authBusy:$,authConnected:U,authMessage:X}),!a&&H.jsxs("div",{className:"boomi-update-actions",children:[H.jsx(Bn,{toggle:!1,primary:!1,showIcon:!1,label:"Cancel",onClick:Q}),H.jsx(Bn,{toggle:!1,primary:!0,showIcon:!1,label:"Save",onClick:J})]})]})]})});return a?H.jsx(H.Fragment,{children:ue}):H.jsx(H.Fragment,{children:H.jsx(Ep,{componentKey:t,componentName:"updateConnections",isRootNavigation:!1,title:`Update Connections ${e.integrationPackOverrideName??""}`,description:e.integrationPackDescription||"",headerContent:H.jsx(H.Fragment,{}),bodyContent:ue,footerContent:H.jsx(H.Fragment,{}),levelOne:"My Integrations",callbackOne:p})})});MN.displayName="UpdateConnections";function bH(){const t=iu();async function e(a){const{integrationPackInstanceId:E,environmentId:p,signal:g}=a;return Le.debug("Fetching process schedules via service",a),t.get("/process-schedules",{signal:g,params:{integrationPackInstanceId:E,environmentId:p}})}async function i(a){const{integrationPackInstanceId:E,environmentId:p,schedules:g}=a;return Le.debug("updating map extension via service",E,p),t.post("/process-schedules/update",{integrationPackInstanceId:E,environmentId:p,schedules:g})}return{getProcessSchedules:e,updateProcessSchedules:i}}/**
2345
2345
  * @file useFetchProcessSchedules.tsx
2346
2346
  * @function useFetchProcessSchedules
2347
2347
  * @license BSD-2-Clause
@@ -2375,7 +2375,7 @@ https://sweetalert2.github.io/#ajax-request`),zQ(t),typeof t.title=="string"&&(t
2375
2375
  *
2376
2376
  * Deletes a tenant's CORS configuration. Tracks loading/error state so UI
2377
2377
  * flows can match other admin mutation hooks.
2378
- */const KJ=()=>{const[t,e]=Y.useState(!1),[i,a]=Y.useState(null),{deleteCorsConfig:E}=IN(),p=Y.useCallback(async g=>{e(!0),a(null);try{await E(g),Le.debug("[useDeleteCors] deleted config",{primaryAccountId:g.primaryAccountId})}catch(y){const f=(y==null?void 0:y.message)||"Failed to delete CORS configuration";throw Le.error({err:y},"[useDeleteCors] failed"),a(f),y}finally{e(!1)}},[E]);return Y.useMemo(()=>({deleteCors:p,isDeleting:t,error:i}),[p,i,t])},ZJ=({isOpen:t,onClose:e,onSubmit:i,isSaving:a})=>{const[E,p]=Y.useState(""),[g,y]=Y.useState(null);Y.useEffect(()=>{t&&(p(""),y(null))},[t]);const f=async()=>{const b=E.trim();if(!b){y("Origin is required");return}y(null),await i(b)};return H.jsx(fh,{isOpen:t,title:"Add Allowed Origin",description:"Add a new origin to the allowed list for this tenant.",onClose:e,onSubmit:f,submitLabel:a?"Saving...":"Add Origin",showSaveButton:!a,children:H.jsx(mp,{formName:"corsAdd",label:"Origin",required:!0,inputName:"origin",readOnly:!1,value:E,onChange:b=>p(b.target.value),placeholder:"https://app.example.com",error:g||void 0})})},JJ=({isOpen:t,origin:e,onClose:i,onSubmit:a,isSaving:E})=>{const[p,g]=Y.useState(e??""),[y,f]=Y.useState(null);Y.useEffect(()=>{t&&(g(e??""),f(null))},[t,e]);const b=async()=>{const c=p.trim();if(!c){f("Origin is required");return}f(null),await a(c)};return H.jsx(fh,{isOpen:t,title:"Edit Allowed Origin",description:"Update the selected origin for this tenant.",onClose:i,onSubmit:b,submitLabel:E?"Saving...":"Save Changes",showSaveButton:!E,children:H.jsx(mp,{formName:"corsEdit",label:"Origin",required:!0,inputName:"origin",readOnly:!1,value:p,onChange:c=>g(c.target.value),placeholder:"https://app.example.com",error:y||void 0})})},eee=({isOpen:t,origin:e,onClose:i,onConfirm:a,isDeleting:E})=>H.jsx(fh,{isOpen:t,title:"Delete Allowed Origin",description:"Remove this origin from the allowed list for this tenant.",onClose:i,onSubmit:a,submitLabel:E?"Deleting...":"Delete",showSaveButton:!E,children:H.jsxs("p",{className:"text-sm",children:["Are you sure you want to remove"," ",H.jsx("span",{className:"font-semibold",children:e})," from the allowed origins?"]})}),p_=12,vH=({componentKey:t,primaryAccountId:e})=>{var xt,$t,ze,tt,ct,gt,at;const{boomiConfig:i,tenantId:a,setPageIsLoading:E}=Xn(),p=e??a??(i==null?void 0:i.tenantId),g=`cors-view:${t}`,y=($t=(xt=i==null?void 0:i.components)==null?void 0:xt[t])==null?void 0:$t.cors,f=((ze=y==null?void 0:y.search)==null?void 0:ze.show)??!0,b=((tt=y==null?void 0:y.addButton)==null?void 0:tt.show)??!0,c=((ct=y==null?void 0:y.viewTypeButton)==null?void 0:ct.show)??!0,{allowedOrigins:u,refetch:d,isLoading:h,error:m}=XJ({primaryAccountId:p,auto:!!p}),{updateCors:S,isUpdating:T,error:A}=qJ(),{deleteCors:N,isDeleting:O,error:D}=KJ(),[R,C]=Y.useState([]),[$,F]=Y.useState(""),[U,j]=Y.useState(1),[X,P]=Y.useState("off"),[B,k]=Y.useState(!1),[M,I]=Y.useState(!1),[W,Q]=Y.useState(!1),[J,K]=Y.useState(null),[Z,re]=Y.useState(null),[te,ae]=Y.useState({add:!1,edit:!1,delete:!1});Y.useEffect(()=>{try{const Re=localStorage.getItem(g);(Re==="on"||Re==="off")&&P(Re)}catch{}},[g]),Y.useEffect(()=>{C(u)},[u]);const se=Y.useMemo(()=>{const Re=$.trim().toLowerCase();return Re?R.filter(je=>je.toLowerCase().includes(Re)):R},[R,$]),ie=Math.max(1,Math.ceil(se.length/p_)),ue=se.slice((U-1)*p_,U*p_),me=Re=>{ae(je=>({...je,[Re]:!0})),setTimeout(()=>ae(je=>({...je,[Re]:!1})),3e3)},ve=()=>p||(re("primaryAccountId is required to manage CORS."),null),pe=Y.useCallback(()=>{P(Re=>{const je=Re==="on"?"off":"on";try{localStorage.setItem(g,je)}catch{}return je})},[g]),ye=async Re=>{const je=ve();if(!je)return;const it=Array.from(new Set([...R,Re]));E(!0);try{const rt=await S({primaryAccountId:je,allowedOrigins:it});C(rt.allowedOrigins),k(!1),me("add"),await d()}catch(rt){Le.error({err:rt},"[Cors] add failed")}finally{E(!1)}},de=async Re=>{if(!J)return;const je=ve();if(!je)return;const it=R.map(vt=>vt===J?Re:vt),rt=Array.from(new Set(it));E(!0);try{const vt=await S({primaryAccountId:je,allowedOrigins:rt});C(vt.allowedOrigins),I(!1),K(null),me("edit"),await d()}catch(vt){Le.error({err:vt},"[Cors] edit failed")}finally{E(!1)}},Ve=async()=>{if(!J)return;const Re=ve();if(!Re)return;const je=R.filter(it=>it!==J);E(!0);try{if(je.length===0)await N({primaryAccountId:Re}),C([]);else{const it=await S({primaryAccountId:Re,allowedOrigins:je});C(it.allowedOrigins)}Q(!1),K(null),me("delete"),await d()}catch(it){Le.error({err:it},"[Cors] delete failed")}finally{E(!1)}},De=H.jsxs(H.Fragment,{children:[f&&H.jsx("div",{className:"flex-none pr-6 pt-4 pb-4",children:H.jsx(xE,{searchCallback:Re=>{F(Re),j(1)}})}),b&&H.jsx("div",{className:"flex-1 pr-4 pt-4",children:H.jsx(Bn,{toggle:!1,primary:!0,showIcon:!0,label:(gt=y==null?void 0:y.addButton)==null?void 0:gt.label,icon:H.jsx(DE,{className:"h-5 w-5"}),onClick:()=>k(!0)})}),c&&H.jsx("div",{className:"flex-none pt-4 pr-4",children:H.jsx(Bn,{toggle:!0,primary:!1,viewLoc:g,onClass:"flex w-full justify-center rounded-md px-2 py-2 text-xs font-semibold leading-6 shadow-md transition-colors duration-100",showIcon:!0,label:(at=y==null?void 0:y.viewTypeButton)==null?void 0:at.label,icon:H.jsx(A5,{className:"h-5 w-5"}),onIcon:H.jsx(y5,{className:"h-5 w-5"}),onClick:pe})})]}),qe=({origin:Re})=>H.jsxs(Zb,{children:[H.jsx(Er.Item,{children:({active:je})=>H.jsxs("button",{onClick:()=>{K(Re),I(!0)},className:"boomi-menu-item","data-headlessui-state":je?"active":void 0,children:[H.jsx(S5,{className:"boomi-menu-icon"}),"Edit"]})}),H.jsx("div",{className:"boomi-menu-divider"}),H.jsx(Er.Item,{children:({active:je})=>H.jsxs("button",{onClick:()=>{K(Re),Q(!0)},className:"boomi-menu-item boomi-menu-item--danger","data-headlessui-state":je?"active":void 0,children:[H.jsx(lh,{className:"boomi-menu-icon"}),"Delete"]})})]}),et=X==="off"?H.jsxs(H.Fragment,{children:[H.jsx("ul",{role:"list",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-x-6 gap-y-8",children:h?H.jsx("div",{className:"col-span-full flex justify-center items-center",children:H.jsx(Ki,{})}):ue.length>0?ue.map(Re=>{var je;return H.jsxs("li",{className:"boomi-card boomi-cors-card",children:[H.jsx("div",{className:"flex gap-4 p-4",children:H.jsxs("div",{className:"flex flex-col w-full",children:[H.jsx("h3",{className:"text-base font-semibold break-words truncate overflow-hidden pr-2",children:Re}),H.jsx("p",{className:"text-xs mt-1 line-clamp-2 break-words overflow-hidden",children:"Origin allowed for this tenant."})]})}),H.jsxs("div",{className:"flex w-full p-2 justify-end items-center gap-x-2 relative overflow-visible",children:[H.jsx(Bn,{toggle:!1,primary:!0,showIcon:!1,label:((je=y==null?void 0:y.editButton)==null?void 0:je.label)??"Edit",onClick:()=>{K(Re),I(!0)}}),H.jsx(qe,{origin:Re})]})]},Re)}):H.jsx("div",{className:"col-span-full flex justify-center items-center",children:H.jsx("p",{className:"text-gray-500 text-xs",children:"No allowed origins found."})})}),!h&&ie>1&&H.jsx(AE,{currentPage:U,totalPages:ie,onPageChange:Re=>j(Re)})]}):H.jsxs("div",{className:"",children:[H.jsxs("table",{className:"w-full table-auto rounded-lg shadow-sm",children:[H.jsx("thead",{className:"boomi-table-header",children:H.jsxs("tr",{children:[H.jsx("th",{className:"py-3 px-4 text-left text-sm font-semibold w-3/4",children:"Origin"}),H.jsx("th",{className:"py-3 px-4 text-right text-sm font-semibold w-1/4",children:"Actions"})]})}),H.jsx("tbody",{className:"divide-y",children:h?H.jsx("tr",{children:H.jsx("td",{colSpan:2,children:H.jsx("div",{className:"flex justify-center items-center py-6",children:H.jsx(Ki,{})})})}):ue.length>0?ue.map(Re=>H.jsxs("tr",{className:"boomi-table-row",children:[H.jsx("td",{className:"py-4 pl-4 pr-3 text-xs sm:pl-2 max-w-md break-words",children:Re}),H.jsx("td",{className:"py-4 pl-4 pr-3 text-xs sm:pl-2",children:H.jsx("div",{className:"flex justify-end",children:H.jsx(qe,{origin:Re})})})]},Re)):H.jsx("tr",{children:H.jsx("td",{colSpan:2,children:H.jsx("div",{className:"flex justify-center items-center py-4",children:H.jsx("p",{className:"text-gray-500 text-xs",children:"No allowed origins found."})})})})})]}),!h&&ie>1&&H.jsx("div",{className:"mt-4 flex justify-end",children:H.jsx(AE,{currentPage:U,totalPages:ie,onPageChange:j})})]}),mt=Z||m||A||D||null;return H.jsxs(H.Fragment,{children:[te.add&&H.jsx(Kc,{type:"success",content:"Origin added."}),te.edit&&H.jsx(Kc,{type:"success",content:"Origin updated."}),te.delete&&H.jsx(Kc,{type:"success",content:"Origin deleted."}),H.jsx(ZJ,{isOpen:B,onClose:()=>k(!1),onSubmit:ye,isSaving:T}),H.jsx(JJ,{isOpen:M,origin:J,onClose:()=>{I(!1),K(null)},onSubmit:de,isSaving:T}),H.jsx(eee,{isOpen:W,origin:J,onClose:()=>{Q(!1),K(null)},onConfirm:Ve,isDeleting:O}),H.jsx(Ep,{componentKey:t,componentName:"cors",isRootNavigation:!0,title:"CORS Configuration",description:"Manage allowed origins for this tenant.",headerContent:De,bodyContent:et,error:mt?{header:"Error",message:mt,errorType:"error"}:void 0})]})},tee=({componentKey:t,primaryAccountId:e,logo:i,logoSrc:a,logoText:E="EmbedKit Admin",onLogout:p})=>{var u;const g=Y.useMemo(()=>[{id:"cors",label:"CORS",icon:H.jsx(w7,{className:"h-5 w-5"}),render:()=>H.jsx(vH,{componentKey:`${t}:cors`,primaryAccountId:e})}],[t,e]),[y,f]=Y.useState(((u=g[0])==null?void 0:u.id)??"");Y.useEffect(()=>{var d;g.find(h=>h.id===y)||f(((d=g[0])==null?void 0:d.id)??"")},[g,y]);const b=g.find(d=>d.id===y)??g[0],c=async()=>{try{(await Promise.resolve().then(()=>cee)).DestroyPlugin({clearAuth:!0,removeHost:!0})}catch(d){console.error("Failed to destroy plugin",d)}try{p==null||p()}catch(d){console.error("AdminLayout onLogout callback failed",d)}};return H.jsxs("div",{className:"boomi-admin-shell",children:[H.jsxs("aside",{className:"boomi-admin-sidebar",children:[H.jsx("div",{className:"boomi-admin-logo",children:i||(a?H.jsx("img",{src:a,alt:E,className:"max-h-10 w-auto mx-auto"}):H.jsx("span",{className:"boomi-admin-logo-text",children:E}))}),H.jsx("nav",{className:"boomi-admin-nav",children:g.map(d=>{const h=d.id===y;return H.jsxs("button",{type:"button",onClick:()=>f(d.id),className:`boomi-admin-nav-button ${h?"is-active":""}`,children:[H.jsx("span",{className:"boomi-admin-nav-icon",children:d.icon}),H.jsx("span",{className:"boomi-admin-nav-label",children:d.label})]},d.id)})}),H.jsx("div",{className:"boomi-admin-logout",children:H.jsxs("button",{type:"button",onClick:c,className:"boomi-admin-logout-button",children:[H.jsx(Q7,{className:"h-5 w-5"}),H.jsx("span",{children:"Logout"})]})})]}),H.jsx("main",{className:"boomi-admin-main",children:H.jsx("div",{className:"boomi-admin-main-inner",children:b==null?void 0:b.render()})})]})},yH={Integrations:kU,Agent:KQ,RunAgent:xU,ConfigureIntegration:GJ,ExecutionHistory:YJ,UpdateConnections:MN,UpdateMaps:DN,UpdateSchedules:kN,AdminLayout:tee,Cors:vH};let vr=null;const vl={};async function nee(){await sh.get().ensureReady()}function f5(t,e="--boomi-show-"){const i=t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase();return`${e}${i}`}function oee(t,e,i){var m,S;if(!e)return;const a=[];let E="";const p=e.components??{};for(const[T,A]of Object.entries(p))typeof A=="boolean"&&(E+=`${f5(T)}:${A?"1":"0"};`);const g=e.cssVars??{};for(const[T,A]of Object.entries(g))String(T).startsWith("--")&&(E+=`${T}:${String(A)};`);E&&a.push(`:host{${E}}`);const y=e.cssVarsByTheme??{};for(const[T,A]of Object.entries(y)){const N=Object.entries(A).filter(([O])=>String(O).startsWith("--")).map(([O,D])=>`${O}:${String(D)};`).join("");N&&a.push(`:host([data-theme="${T}"]){${N}}`)}const b=(e.cssVarsByKey??{})[i]??{},c=((m=e.componentsByKey)==null?void 0:m[i])??{},u=(S=e.components)==null?void 0:S[i],d=u==null?void 0:u.modalOffset;let h="";for(const[T,A]of Object.entries(c))typeof A=="boolean"&&(h+=`${f5(T)}:${A?"1":"0"};`);for(const[T,A]of Object.entries(b))String(T).startsWith("--")&&(h+=`${T}:${String(A)};`);if(d){const T=O=>typeof O=="number"&&Number.isFinite(O)?`${O}px`:typeof O=="string"&&O.trim().length>0?O:null,A=T(d.offsetX??d.x??null),N=T(d.offsetY??d.y??null);A&&(h+=`--boomi-modal-offset-x:${A};`),N&&(h+=`--boomi-modal-offset-y:${N};`)}if(h&&a.push(`:host{${h}}`),a.length){t.querySelectorAll("style[data-boomi-vars]").forEach(A=>A.remove());const T=document.createElement("style");T.setAttribute("data-boomi-vars","true"),T.textContent=a.join(`
2378
+ */const KJ=()=>{const[t,e]=Y.useState(!1),[i,a]=Y.useState(null),{deleteCorsConfig:E}=IN(),p=Y.useCallback(async g=>{e(!0),a(null);try{await E(g),Le.debug("[useDeleteCors] deleted config",{primaryAccountId:g.primaryAccountId})}catch(y){const f=(y==null?void 0:y.message)||"Failed to delete CORS configuration";throw Le.error({err:y},"[useDeleteCors] failed"),a(f),y}finally{e(!1)}},[E]);return Y.useMemo(()=>({deleteCors:p,isDeleting:t,error:i}),[p,i,t])},ZJ=({isOpen:t,onClose:e,onSubmit:i,isSaving:a})=>{const[E,p]=Y.useState(""),[g,y]=Y.useState(null);Y.useEffect(()=>{t&&(p(""),y(null))},[t]);const f=async()=>{const b=E.trim();if(!b){y("Origin is required");return}y(null),await i(b)};return H.jsx(fh,{isOpen:t,title:"Add Allowed Origin",description:"Add a new origin to the allowed list for this tenant.",onClose:e,onSubmit:f,submitLabel:a?"Saving...":"Add Origin",showSaveButton:!a,children:H.jsx(mp,{formName:"corsAdd",label:"Origin",required:!0,inputName:"origin",readOnly:!1,value:E,onChange:b=>p(b.target.value),placeholder:"https://app.example.com",error:g||void 0})})},JJ=({isOpen:t,origin:e,onClose:i,onSubmit:a,isSaving:E})=>{const[p,g]=Y.useState(e??""),[y,f]=Y.useState(null);Y.useEffect(()=>{t&&(g(e??""),f(null))},[t,e]);const b=async()=>{const c=p.trim();if(!c){f("Origin is required");return}f(null),await a(c)};return H.jsx(fh,{isOpen:t,title:"Edit Allowed Origin",description:"Update the selected origin for this tenant.",onClose:i,onSubmit:b,submitLabel:E?"Saving...":"Save Changes",showSaveButton:!E,children:H.jsx(mp,{formName:"corsEdit",label:"Origin",required:!0,inputName:"origin",readOnly:!1,value:p,onChange:c=>g(c.target.value),placeholder:"https://app.example.com",error:y||void 0})})},eee=({isOpen:t,origin:e,onClose:i,onConfirm:a,isDeleting:E})=>H.jsx(fh,{isOpen:t,title:"Delete Allowed Origin",description:"Remove this origin from the allowed list for this tenant.",onClose:i,onSubmit:a,submitLabel:E?"Deleting...":"Delete",showSaveButton:!E,children:H.jsxs("p",{className:"text-sm",children:["Are you sure you want to remove"," ",H.jsx("span",{className:"font-semibold",children:e})," from the allowed origins?"]})}),p_=12,vH=({componentKey:t,primaryAccountId:e})=>{var xt,$t,ze,nt,ct,gt,at;const{boomiConfig:i,tenantId:a,setPageIsLoading:E}=Xn(),p=e??a??(i==null?void 0:i.tenantId),g=`cors-view:${t}`,y=($t=(xt=i==null?void 0:i.components)==null?void 0:xt[t])==null?void 0:$t.cors,f=((ze=y==null?void 0:y.search)==null?void 0:ze.show)??!0,b=((nt=y==null?void 0:y.addButton)==null?void 0:nt.show)??!0,c=((ct=y==null?void 0:y.viewTypeButton)==null?void 0:ct.show)??!0,{allowedOrigins:u,refetch:d,isLoading:h,error:m}=XJ({primaryAccountId:p,auto:!!p}),{updateCors:S,isUpdating:T,error:A}=qJ(),{deleteCors:N,isDeleting:O,error:D}=KJ(),[R,C]=Y.useState([]),[$,F]=Y.useState(""),[U,j]=Y.useState(1),[X,P]=Y.useState("off"),[B,k]=Y.useState(!1),[M,I]=Y.useState(!1),[W,Q]=Y.useState(!1),[J,K]=Y.useState(null),[Z,re]=Y.useState(null),[te,ae]=Y.useState({add:!1,edit:!1,delete:!1});Y.useEffect(()=>{try{const Re=localStorage.getItem(g);(Re==="on"||Re==="off")&&P(Re)}catch{}},[g]),Y.useEffect(()=>{C(u)},[u]);const se=Y.useMemo(()=>{const Re=$.trim().toLowerCase();return Re?R.filter(je=>je.toLowerCase().includes(Re)):R},[R,$]),ie=Math.max(1,Math.ceil(se.length/p_)),ue=se.slice((U-1)*p_,U*p_),me=Re=>{ae(je=>({...je,[Re]:!0})),setTimeout(()=>ae(je=>({...je,[Re]:!1})),3e3)},ve=()=>p||(re("primaryAccountId is required to manage CORS."),null),pe=Y.useCallback(()=>{P(Re=>{const je=Re==="on"?"off":"on";try{localStorage.setItem(g,je)}catch{}return je})},[g]),ye=async Re=>{const je=ve();if(!je)return;const ot=Array.from(new Set([...R,Re]));E(!0);try{const tt=await S({primaryAccountId:je,allowedOrigins:ot});C(tt.allowedOrigins),k(!1),me("add"),await d()}catch(tt){Le.error({err:tt},"[Cors] add failed")}finally{E(!1)}},de=async Re=>{if(!J)return;const je=ve();if(!je)return;const ot=R.map(vt=>vt===J?Re:vt),tt=Array.from(new Set(ot));E(!0);try{const vt=await S({primaryAccountId:je,allowedOrigins:tt});C(vt.allowedOrigins),I(!1),K(null),me("edit"),await d()}catch(vt){Le.error({err:vt},"[Cors] edit failed")}finally{E(!1)}},Ve=async()=>{if(!J)return;const Re=ve();if(!Re)return;const je=R.filter(ot=>ot!==J);E(!0);try{if(je.length===0)await N({primaryAccountId:Re}),C([]);else{const ot=await S({primaryAccountId:Re,allowedOrigins:je});C(ot.allowedOrigins)}Q(!1),K(null),me("delete"),await d()}catch(ot){Le.error({err:ot},"[Cors] delete failed")}finally{E(!1)}},De=H.jsxs(H.Fragment,{children:[f&&H.jsx("div",{className:"flex-none pr-6 pt-4 pb-4",children:H.jsx(xE,{searchCallback:Re=>{F(Re),j(1)}})}),b&&H.jsx("div",{className:"flex-1 pr-4 pt-4",children:H.jsx(Bn,{toggle:!1,primary:!0,showIcon:!0,label:(gt=y==null?void 0:y.addButton)==null?void 0:gt.label,icon:H.jsx(DE,{className:"h-5 w-5"}),onClick:()=>k(!0)})}),c&&H.jsx("div",{className:"flex-none pt-4 pr-4",children:H.jsx(Bn,{toggle:!0,primary:!1,viewLoc:g,onClass:"flex w-full justify-center rounded-md px-2 py-2 text-xs font-semibold leading-6 shadow-md transition-colors duration-100",showIcon:!0,label:(at=y==null?void 0:y.viewTypeButton)==null?void 0:at.label,icon:H.jsx(A5,{className:"h-5 w-5"}),onIcon:H.jsx(y5,{className:"h-5 w-5"}),onClick:pe})})]}),qe=({origin:Re})=>H.jsxs(Zb,{children:[H.jsx(Er.Item,{children:({active:je})=>H.jsxs("button",{onClick:()=>{K(Re),I(!0)},className:"boomi-menu-item","data-headlessui-state":je?"active":void 0,children:[H.jsx(S5,{className:"boomi-menu-icon"}),"Edit"]})}),H.jsx("div",{className:"boomi-menu-divider"}),H.jsx(Er.Item,{children:({active:je})=>H.jsxs("button",{onClick:()=>{K(Re),Q(!0)},className:"boomi-menu-item boomi-menu-item--danger","data-headlessui-state":je?"active":void 0,children:[H.jsx(lh,{className:"boomi-menu-icon"}),"Delete"]})})]}),et=X==="off"?H.jsxs(H.Fragment,{children:[H.jsx("ul",{role:"list",className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-x-6 gap-y-8",children:h?H.jsx("div",{className:"col-span-full flex justify-center items-center",children:H.jsx(Ki,{})}):ue.length>0?ue.map(Re=>{var je;return H.jsxs("li",{className:"boomi-card boomi-cors-card",children:[H.jsx("div",{className:"flex gap-4 p-4",children:H.jsxs("div",{className:"flex flex-col w-full",children:[H.jsx("h3",{className:"text-base font-semibold break-words truncate overflow-hidden pr-2",children:Re}),H.jsx("p",{className:"text-xs mt-1 line-clamp-2 break-words overflow-hidden",children:"Origin allowed for this tenant."})]})}),H.jsxs("div",{className:"flex w-full p-2 justify-end items-center gap-x-2 relative overflow-visible",children:[H.jsx(Bn,{toggle:!1,primary:!0,showIcon:!1,label:((je=y==null?void 0:y.editButton)==null?void 0:je.label)??"Edit",onClick:()=>{K(Re),I(!0)}}),H.jsx(qe,{origin:Re})]})]},Re)}):H.jsx("div",{className:"col-span-full flex justify-center items-center",children:H.jsx("p",{className:"text-gray-500 text-xs",children:"No allowed origins found."})})}),!h&&ie>1&&H.jsx(AE,{currentPage:U,totalPages:ie,onPageChange:Re=>j(Re)})]}):H.jsxs("div",{className:"",children:[H.jsxs("table",{className:"w-full table-auto rounded-lg shadow-sm",children:[H.jsx("thead",{className:"boomi-table-header",children:H.jsxs("tr",{children:[H.jsx("th",{className:"py-3 px-4 text-left text-sm font-semibold w-3/4",children:"Origin"}),H.jsx("th",{className:"py-3 px-4 text-right text-sm font-semibold w-1/4",children:"Actions"})]})}),H.jsx("tbody",{className:"divide-y",children:h?H.jsx("tr",{children:H.jsx("td",{colSpan:2,children:H.jsx("div",{className:"flex justify-center items-center py-6",children:H.jsx(Ki,{})})})}):ue.length>0?ue.map(Re=>H.jsxs("tr",{className:"boomi-table-row",children:[H.jsx("td",{className:"py-4 pl-4 pr-3 text-xs sm:pl-2 max-w-md break-words",children:Re}),H.jsx("td",{className:"py-4 pl-4 pr-3 text-xs sm:pl-2",children:H.jsx("div",{className:"flex justify-end",children:H.jsx(qe,{origin:Re})})})]},Re)):H.jsx("tr",{children:H.jsx("td",{colSpan:2,children:H.jsx("div",{className:"flex justify-center items-center py-4",children:H.jsx("p",{className:"text-gray-500 text-xs",children:"No allowed origins found."})})})})})]}),!h&&ie>1&&H.jsx("div",{className:"mt-4 flex justify-end",children:H.jsx(AE,{currentPage:U,totalPages:ie,onPageChange:j})})]}),mt=Z||m||A||D||null;return H.jsxs(H.Fragment,{children:[te.add&&H.jsx(Kc,{type:"success",content:"Origin added."}),te.edit&&H.jsx(Kc,{type:"success",content:"Origin updated."}),te.delete&&H.jsx(Kc,{type:"success",content:"Origin deleted."}),H.jsx(ZJ,{isOpen:B,onClose:()=>k(!1),onSubmit:ye,isSaving:T}),H.jsx(JJ,{isOpen:M,origin:J,onClose:()=>{I(!1),K(null)},onSubmit:de,isSaving:T}),H.jsx(eee,{isOpen:W,origin:J,onClose:()=>{Q(!1),K(null)},onConfirm:Ve,isDeleting:O}),H.jsx(Ep,{componentKey:t,componentName:"cors",isRootNavigation:!0,title:"CORS Configuration",description:"Manage allowed origins for this tenant.",headerContent:De,bodyContent:et,error:mt?{header:"Error",message:mt,errorType:"error"}:void 0})]})},tee=({componentKey:t,primaryAccountId:e,logo:i,logoSrc:a,logoText:E="EmbedKit Admin",onLogout:p})=>{var u;const g=Y.useMemo(()=>[{id:"cors",label:"CORS",icon:H.jsx(w7,{className:"h-5 w-5"}),render:()=>H.jsx(vH,{componentKey:`${t}:cors`,primaryAccountId:e})}],[t,e]),[y,f]=Y.useState(((u=g[0])==null?void 0:u.id)??"");Y.useEffect(()=>{var d;g.find(h=>h.id===y)||f(((d=g[0])==null?void 0:d.id)??"")},[g,y]);const b=g.find(d=>d.id===y)??g[0],c=async()=>{try{(await Promise.resolve().then(()=>cee)).DestroyPlugin({clearAuth:!0,removeHost:!0})}catch(d){console.error("Failed to destroy plugin",d)}try{p==null||p()}catch(d){console.error("AdminLayout onLogout callback failed",d)}};return H.jsxs("div",{className:"boomi-admin-shell",children:[H.jsxs("aside",{className:"boomi-admin-sidebar",children:[H.jsx("div",{className:"boomi-admin-logo",children:i||(a?H.jsx("img",{src:a,alt:E,className:"max-h-10 w-auto mx-auto"}):H.jsx("span",{className:"boomi-admin-logo-text",children:E}))}),H.jsx("nav",{className:"boomi-admin-nav",children:g.map(d=>{const h=d.id===y;return H.jsxs("button",{type:"button",onClick:()=>f(d.id),className:`boomi-admin-nav-button ${h?"is-active":""}`,children:[H.jsx("span",{className:"boomi-admin-nav-icon",children:d.icon}),H.jsx("span",{className:"boomi-admin-nav-label",children:d.label})]},d.id)})}),H.jsx("div",{className:"boomi-admin-logout",children:H.jsxs("button",{type:"button",onClick:c,className:"boomi-admin-logout-button",children:[H.jsx(Q7,{className:"h-5 w-5"}),H.jsx("span",{children:"Logout"})]})})]}),H.jsx("main",{className:"boomi-admin-main",children:H.jsx("div",{className:"boomi-admin-main-inner",children:b==null?void 0:b.render()})})]})},yH={Integrations:kU,Agent:KQ,RunAgent:xU,ConfigureIntegration:GJ,ExecutionHistory:YJ,UpdateConnections:MN,UpdateMaps:DN,UpdateSchedules:kN,AdminLayout:tee,Cors:vH};let vr=null;const vl={};async function nee(){await sh.get().ensureReady()}function f5(t,e="--boomi-show-"){const i=t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase();return`${e}${i}`}function oee(t,e,i){var m,S;if(!e)return;const a=[];let E="";const p=e.components??{};for(const[T,A]of Object.entries(p))typeof A=="boolean"&&(E+=`${f5(T)}:${A?"1":"0"};`);const g=e.cssVars??{};for(const[T,A]of Object.entries(g))String(T).startsWith("--")&&(E+=`${T}:${String(A)};`);E&&a.push(`:host{${E}}`);const y=e.cssVarsByTheme??{};for(const[T,A]of Object.entries(y)){const N=Object.entries(A).filter(([O])=>String(O).startsWith("--")).map(([O,D])=>`${O}:${String(D)};`).join("");N&&a.push(`:host([data-theme="${T}"]){${N}}`)}const b=(e.cssVarsByKey??{})[i]??{},c=((m=e.componentsByKey)==null?void 0:m[i])??{},u=(S=e.components)==null?void 0:S[i],d=u==null?void 0:u.modalOffset;let h="";for(const[T,A]of Object.entries(c))typeof A=="boolean"&&(h+=`${f5(T)}:${A?"1":"0"};`);for(const[T,A]of Object.entries(b))String(T).startsWith("--")&&(h+=`${T}:${String(A)};`);if(d){const T=O=>typeof O=="number"&&Number.isFinite(O)?`${O}px`:typeof O=="string"&&O.trim().length>0?O:null,A=T(d.offsetX??d.x??null),N=T(d.offsetY??d.y??null);A&&(h+=`--boomi-modal-offset-x:${A};`),N&&(h+=`--boomi-modal-offset-y:${N};`)}if(h&&a.push(`:host{${h}}`),a.length){t.querySelectorAll("style[data-boomi-vars]").forEach(A=>A.remove());const T=document.createElement("style");T.setAttribute("data-boomi-vars","true"),T.textContent=a.join(`
2379
2379
  `),t.appendChild(T)}}function iee(t,e){var a;if(!t)return"base";const i=(a=t.boomiConfig)==null?void 0:a.theme;return!i||(i==null?void 0:i.allowThemes)===!1?"base":(Le.debug("Determining theme for key:",e,"with config theme:",i),i.defaultTheme||"base")}function ree(t){if(t.querySelector("style[data-boomi-base]"))return;const e=document.createElement("style");e.setAttribute("data-boomi-base","true"),e.textContent=`
2380
2380
  ${D7}
2381
2381
  /* Ensure the shadow host and mount can actually fill */