intlayer-editor 5.7.6-canary.0 → 5.7.6
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.
|
@@ -47,7 +47,7 @@ var oM=Object.defineProperty;var sM=(e,t,n)=>t in e?oM(e,t,{enumerable:!0,config
|
|
|
47
47
|
`+z[h].replace(" at new "," at ");return i.displayName&&le.includes("<anonymous>")&&(le=le.replace("<anonymous>",i.displayName)),le}while(1<=h&&0<=g);break}}}finally{$=!1,Error.prepareStackTrace=c}return(c=i?i.displayName||i.name:"")?W(c):""}function H(i){switch(i.tag){case 26:case 27:case 5:return W(i.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 15:return i=X(i.type,!1),i;case 11:return i=X(i.type.render,!1),i;case 1:return i=X(i.type,!0),i;default:return""}}function re(i){try{var o="";do o+=H(i),i=i.return;while(i);return o}catch(c){return`
|
|
48
48
|
Error generating stack: `+c.message+`
|
|
49
49
|
`+c.stack}}function q(i){var o=i,c=i;if(i.alternate)for(;o.return;)o=o.return;else{i=o;do o=i,(o.flags&4098)!==0&&(c=o.return),i=o.return;while(i)}return o.tag===3?c:null}function ye(i){if(i.tag===13){var o=i.memoizedState;if(o===null&&(i=i.alternate,i!==null&&(o=i.memoizedState)),o!==null)return o.dehydrated}return null}function V(i){if(q(i)!==i)throw Error(r(188))}function J(i){var o=i.alternate;if(!o){if(o=q(i),o===null)throw Error(r(188));return o!==i?null:i}for(var c=i,h=o;;){var g=c.return;if(g===null)break;var _=g.alternate;if(_===null){if(h=g.return,h!==null){c=h;continue}break}if(g.child===_.child){for(_=g.child;_;){if(_===c)return V(g),i;if(_===h)return V(g),o;_=_.sibling}throw Error(r(188))}if(c.return!==h.return)c=g,h=_;else{for(var C=!1,k=g.child;k;){if(k===c){C=!0,c=g,h=_;break}if(k===h){C=!0,h=g,c=_;break}k=k.sibling}if(!C){for(k=_.child;k;){if(k===c){C=!0,c=_,h=g;break}if(k===h){C=!0,h=_,c=g;break}k=k.sibling}if(!C)throw Error(r(189))}}if(c.alternate!==h)throw Error(r(190))}if(c.tag!==3)throw Error(r(188));return c.stateNode.current===c?i:o}function F(i){var o=i.tag;if(o===5||o===26||o===27||o===6)return i;for(i=i.child;i!==null;){if(o=F(i),o!==null)return o;i=i.sibling}return null}var ee=Array.isArray,ie=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,he={pending:!1,data:null,method:null,action:null},xe=[],de=-1;function _e(i){return{current:i}}function Oe(i){0>de||(i.current=xe[de],xe[de]=null,de--)}function Te(i,o){de++,xe[de]=i.current,i.current=o}var $e=_e(null),Fe=_e(null),pt=_e(null),Zt=_e(null);function Dn(i,o){switch(Te(pt,o),Te(Fe,i),Te($e,null),i=o.nodeType,i){case 9:case 11:o=(o=o.documentElement)&&(o=o.namespaceURI)?Kx(o):0;break;default:if(i=i===8?o.parentNode:o,o=i.tagName,i=i.namespaceURI)i=Kx(i),o=qx(i,o);else switch(o){case"svg":o=1;break;case"math":o=2;break;default:o=0}}Oe($e),Te($e,o)}function An(){Oe($e),Oe(Fe),Oe(pt)}function ur(i){i.memoizedState!==null&&Te(Zt,i);var o=$e.current,c=qx(o,i.type);o!==c&&(Te(Fe,i),Te($e,c))}function Aa(i){Fe.current===i&&(Oe($e),Oe(Fe)),Zt.current===i&&(Oe(Zt),jl._currentValue=he)}var dr=Object.prototype.hasOwnProperty,U=e.unstable_scheduleCallback,te=e.unstable_cancelCallback,ce=e.unstable_shouldYield,we=e.unstable_requestPaint,be=e.unstable_now,Ee=e.unstable_getCurrentPriorityLevel,Ie=e.unstable_ImmediatePriority,rt=e.unstable_UserBlockingPriority,ot=e.unstable_NormalPriority,wn=e.unstable_LowPriority,wa=e.unstable_IdlePriority,Cr=e.log,Hh=e.unstable_setDisableYieldValue,Jr=null,tn=null;function Fh(i){if(tn&&typeof tn.onCommitFiberRoot=="function")try{tn.onCommitFiberRoot(Jr,i,void 0,(i.current.flags&128)===128)}catch{}}function fr(i){if(typeof Cr=="function"&&Hh(i),tn&&typeof tn.setStrictMode=="function")try{tn.setStrictMode(Jr,i)}catch{}}var yn=Math.clz32?Math.clz32:qI,du=Math.log,KI=Math.LN2;function qI(i){return i>>>=0,i===0?32:31-(du(i)/KI|0)|0}var fu=128,hu=4194304;function Ta(i){var o=i&42;if(o!==0)return o;switch(i&-i){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: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 i&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function mu(i,o){var c=i.pendingLanes;if(c===0)return 0;var h=0,g=i.suspendedLanes,_=i.pingedLanes,C=i.warmLanes;i=i.finishedLanes!==0;var k=c&134217727;return k!==0?(c=k&~g,c!==0?h=Ta(c):(_&=k,_!==0?h=Ta(_):i||(C=k&~C,C!==0&&(h=Ta(C))))):(k=c&~g,k!==0?h=Ta(k):_!==0?h=Ta(_):i||(C=c&~C,C!==0&&(h=Ta(C)))),h===0?0:o!==0&&o!==h&&(o&g)===0&&(g=h&-h,C=o&-o,g>=C||g===32&&(C&4194176)!==0)?o:h}function Gs(i,o){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&o)===0}function ZI(i,o){switch(i){case 1:case 2:case 4:case 8:return o+250;case 16:case 32:case 64: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-1}}function z0(){var i=fu;return fu<<=1,(fu&4194176)===0&&(fu=128),i}function V0(){var i=hu;return hu<<=1,(hu&62914560)===0&&(hu=4194304),i}function Gh(i){for(var o=[],c=0;31>c;c++)o.push(i);return o}function Ks(i,o){i.pendingLanes|=o,o!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function WI(i,o,c,h,g,_){var C=i.pendingLanes;i.pendingLanes=c,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=c,i.entangledLanes&=c,i.errorRecoveryDisabledLanes&=c,i.shellSuspendCounter=0;var k=i.entanglements,z=i.expirationTimes,K=i.hiddenUpdates;for(c=C&~c;0<c;){var le=31-yn(c),me=1<<le;k[le]=0,z[le]=-1;var ne=K[le];if(ne!==null)for(K[le]=null,le=0;le<ne.length;le++){var se=ne[le];se!==null&&(se.lane&=-536870913)}c&=~me}h!==0&&B0(i,h,0),_!==0&&g===0&&i.tag!==0&&(i.suspendedLanes|=_&~(C&~o))}function B0(i,o,c){i.pendingLanes|=o,i.suspendedLanes&=~o;var h=31-yn(o);i.entangledLanes|=o,i.entanglements[h]=i.entanglements[h]|1073741824|c&4194218}function U0(i,o){var c=i.entangledLanes|=o;for(i=i.entanglements;c;){var h=31-yn(c),g=1<<h;g&o|i[h]&o&&(i[h]|=o),c&=~g}}function $0(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function H0(){var i=ie.p;return i!==0?i:(i=window.event,i===void 0?32:dS(i.type))}function YI(i,o){var c=ie.p;try{return ie.p=i,o()}finally{ie.p=c}}var ki=Math.random().toString(36).slice(2),un="__reactFiber$"+ki,Tn="__reactProps$"+ki,bo="__reactContainer$"+ki,Kh="__reactEvents$"+ki,XI="__reactListeners$"+ki,QI="__reactHandles$"+ki,F0="__reactResources$"+ki,qs="__reactMarker$"+ki;function qh(i){delete i[un],delete i[Tn],delete i[Kh],delete i[XI],delete i[QI]}function Ra(i){var o=i[un];if(o)return o;for(var c=i.parentNode;c;){if(o=c[bo]||c[un]){if(c=o.alternate,o.child!==null||c!==null&&c.child!==null)for(i=Yx(i);i!==null;){if(c=i[un])return c;i=Yx(i)}return o}i=c,c=i.parentNode}return null}function _o(i){if(i=i[un]||i[bo]){var o=i.tag;if(o===5||o===6||o===13||o===26||o===27||o===3)return i}return null}function Zs(i){var o=i.tag;if(o===5||o===26||o===27||o===6)return i.stateNode;throw Error(r(33))}function Eo(i){var o=i[F0];return o||(o=i[F0]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function Wt(i){i[qs]=!0}var G0=new Set,K0={};function Ca(i,o){xo(i,o),xo(i+"Capture",o)}function xo(i,o){for(K0[i]=o,i=0;i<o.length;i++)G0.add(o[i])}var ei=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),JI=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={},Z0={};function eL(i){return dr.call(Z0,i)?!0:dr.call(q0,i)?!1:JI.test(i)?Z0[i]=!0:(q0[i]=!0,!1)}function pu(i,o,c){if(eL(o))if(c===null)i.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":i.removeAttribute(o);return;case"boolean":var h=o.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){i.removeAttribute(o);return}}i.setAttribute(o,""+c)}}function gu(i,o,c){if(c===null)i.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(o);return}i.setAttribute(o,""+c)}}function ti(i,o,c,h){if(h===null)i.removeAttribute(c);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(c);return}i.setAttributeNS(o,c,""+h)}}function Fn(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function W0(i){var o=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function tL(i){var o=W0(i)?"checked":"value",c=Object.getOwnPropertyDescriptor(i.constructor.prototype,o),h=""+i[o];if(!i.hasOwnProperty(o)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var g=c.get,_=c.set;return Object.defineProperty(i,o,{configurable:!0,get:function(){return g.call(this)},set:function(C){h=""+C,_.call(this,C)}}),Object.defineProperty(i,o,{enumerable:c.enumerable}),{getValue:function(){return h},setValue:function(C){h=""+C},stopTracking:function(){i._valueTracker=null,delete i[o]}}}}function yu(i){i._valueTracker||(i._valueTracker=tL(i))}function Y0(i){if(!i)return!1;var o=i._valueTracker;if(!o)return!0;var c=o.getValue(),h="";return i&&(h=W0(i)?i.checked?"true":"false":i.value),i=h,i!==c?(o.setValue(i),!0):!1}function vu(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var nL=/[\n"\\]/g;function Gn(i){return i.replace(nL,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function Zh(i,o,c,h,g,_,C,k){i.name="",C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?i.type=C:i.removeAttribute("type"),o!=null?C==="number"?(o===0&&i.value===""||i.value!=o)&&(i.value=""+Fn(o)):i.value!==""+Fn(o)&&(i.value=""+Fn(o)):C!=="submit"&&C!=="reset"||i.removeAttribute("value"),o!=null?Wh(i,C,Fn(o)):c!=null?Wh(i,C,Fn(c)):h!=null&&i.removeAttribute("value"),g==null&&_!=null&&(i.defaultChecked=!!_),g!=null&&(i.checked=g&&typeof g!="function"&&typeof g!="symbol"),k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?i.name=""+Fn(k):i.removeAttribute("name")}function X0(i,o,c,h,g,_,C,k){if(_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(i.type=_),o!=null||c!=null){if(!(_!=="submit"&&_!=="reset"||o!=null))return;c=c!=null?""+Fn(c):"",o=o!=null?""+Fn(o):c,k||o===i.value||(i.value=o),i.defaultValue=o}h=h??g,h=typeof h!="function"&&typeof h!="symbol"&&!!h,i.checked=k?i.checked:!!h,i.defaultChecked=!!h,C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(i.name=C)}function Wh(i,o,c){o==="number"&&vu(i.ownerDocument)===i||i.defaultValue===""+c||(i.defaultValue=""+c)}function So(i,o,c,h){if(i=i.options,o){o={};for(var g=0;g<c.length;g++)o["$"+c[g]]=!0;for(c=0;c<i.length;c++)g=o.hasOwnProperty("$"+i[c].value),i[c].selected!==g&&(i[c].selected=g),g&&h&&(i[c].defaultSelected=!0)}else{for(c=""+Fn(c),o=null,g=0;g<i.length;g++){if(i[g].value===c){i[g].selected=!0,h&&(i[g].defaultSelected=!0);return}o!==null||i[g].disabled||(o=i[g])}o!==null&&(o.selected=!0)}}function Q0(i,o,c){if(o!=null&&(o=""+Fn(o),o!==i.value&&(i.value=o),c==null)){i.defaultValue!==o&&(i.defaultValue=o);return}i.defaultValue=c!=null?""+Fn(c):""}function J0(i,o,c,h){if(o==null){if(h!=null){if(c!=null)throw Error(r(92));if(ee(h)){if(1<h.length)throw Error(r(93));h=h[0]}c=h}c==null&&(c=""),o=c}c=Fn(o),i.defaultValue=c,h=i.textContent,h===c&&h!==""&&h!==null&&(i.value=h)}function Ao(i,o){if(o){var c=i.firstChild;if(c&&c===i.lastChild&&c.nodeType===3){c.nodeValue=o;return}}i.textContent=o}var rL=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 e_(i,o,c){var h=o.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?h?i.setProperty(o,""):o==="float"?i.cssFloat="":i[o]="":h?i.setProperty(o,c):typeof c!="number"||c===0||rL.has(o)?o==="float"?i.cssFloat=c:i[o]=(""+c).trim():i[o]=c+"px"}function t_(i,o,c){if(o!=null&&typeof o!="object")throw Error(r(62));if(i=i.style,c!=null){for(var h in c)!c.hasOwnProperty(h)||o!=null&&o.hasOwnProperty(h)||(h.indexOf("--")===0?i.setProperty(h,""):h==="float"?i.cssFloat="":i[h]="");for(var g in o)h=o[g],o.hasOwnProperty(g)&&c[g]!==h&&e_(i,g,h)}else for(var _ in o)o.hasOwnProperty(_)&&e_(i,_,o[_])}function Yh(i){if(i.indexOf("-")===-1)return!1;switch(i){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 iL=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),aL=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function bu(i){return aL.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}var Xh=null;function Qh(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var wo=null,To=null;function n_(i){var o=_o(i);if(o&&(i=o.stateNode)){var c=i[Tn]||null;e:switch(i=o.stateNode,o.type){case"input":if(Zh(i,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),o=c.name,c.type==="radio"&&o!=null){for(c=i;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+Gn(""+o)+'"][type="radio"]'),o=0;o<c.length;o++){var h=c[o];if(h!==i&&h.form===i.form){var g=h[Tn]||null;if(!g)throw Error(r(90));Zh(h,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(o=0;o<c.length;o++)h=c[o],h.form===i.form&&Y0(h)}break e;case"textarea":Q0(i,c.value,c.defaultValue);break e;case"select":o=c.value,o!=null&&So(i,!!c.multiple,o,!1)}}}var Jh=!1;function r_(i,o,c){if(Jh)return i(o,c);Jh=!0;try{var h=i(o);return h}finally{if(Jh=!1,(wo!==null||To!==null)&&(nd(),wo&&(o=wo,i=To,To=wo=null,n_(o),i)))for(o=0;o<i.length;o++)n_(i[o])}}function Ws(i,o){var c=i.stateNode;if(c===null)return null;var h=c[Tn]||null;if(h===null)return null;c=h[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(i=i.type,h=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!h;break e;default:i=!1}if(i)return null;if(c&&typeof c!="function")throw Error(r(231,o,typeof c));return c}var em=!1;if(ei)try{var Ys={};Object.defineProperty(Ys,"passive",{get:function(){em=!0}}),window.addEventListener("test",Ys,Ys),window.removeEventListener("test",Ys,Ys)}catch{em=!1}var Di=null,tm=null,_u=null;function i_(){if(_u)return _u;var i,o=tm,c=o.length,h,g="value"in Di?Di.value:Di.textContent,_=g.length;for(i=0;i<c&&o[i]===g[i];i++);var C=c-i;for(h=1;h<=C&&o[c-h]===g[_-h];h++);return _u=g.slice(i,1<h?1-h:void 0)}function Eu(i){var o=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&o===13&&(i=13)):i=o,i===10&&(i=13),32<=i||i===13?i:0}function xu(){return!0}function a_(){return!1}function Rn(i){function o(c,h,g,_,C){this._reactName=c,this._targetInst=g,this.type=h,this.nativeEvent=_,this.target=C,this.currentTarget=null;for(var k in i)i.hasOwnProperty(k)&&(c=i[k],this[k]=c?c(_):_[k]);return this.isDefaultPrevented=(_.defaultPrevented!=null?_.defaultPrevented:_.returnValue===!1)?xu:a_,this.isPropagationStopped=a_,this}return M(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=xu)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=xu)},persist:function(){},isPersistent:xu}),o}var Na={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Su=Rn(Na),Xs=M({},Na,{view:0,detail:0}),oL=Rn(Xs),nm,rm,Qs,Au=M({},Xs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:am,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==Qs&&(Qs&&i.type==="mousemove"?(nm=i.screenX-Qs.screenX,rm=i.screenY-Qs.screenY):rm=nm=0,Qs=i),nm)},movementY:function(i){return"movementY"in i?i.movementY:rm}}),o_=Rn(Au),sL=M({},Au,{dataTransfer:0}),lL=Rn(sL),cL=M({},Xs,{relatedTarget:0}),im=Rn(cL),uL=M({},Na,{animationName:0,elapsedTime:0,pseudoElement:0}),dL=Rn(uL),fL=M({},Na,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),hL=Rn(fL),mL=M({},Na,{data:0}),s_=Rn(mL),pL={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},gL={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"},yL={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vL(i){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(i):(i=yL[i])?!!o[i]:!1}function am(){return vL}var bL=M({},Xs,{key:function(i){if(i.key){var o=pL[i.key]||i.key;if(o!=="Unidentified")return o}return i.type==="keypress"?(i=Eu(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?gL[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:am,charCode:function(i){return i.type==="keypress"?Eu(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Eu(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),_L=Rn(bL),EL=M({},Au,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),l_=Rn(EL),xL=M({},Xs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:am}),SL=Rn(xL),AL=M({},Na,{propertyName:0,elapsedTime:0,pseudoElement:0}),wL=Rn(AL),TL=M({},Au,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),RL=Rn(TL),CL=M({},Na,{newState:0,oldState:0}),NL=Rn(CL),OL=[9,13,27,32],om=ei&&"CompositionEvent"in window,Js=null;ei&&"documentMode"in document&&(Js=document.documentMode);var kL=ei&&"TextEvent"in window&&!Js,c_=ei&&(!om||Js&&8<Js&&11>=Js),u_=" ",d_=!1;function f_(i,o){switch(i){case"keyup":return OL.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function h_(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Ro=!1;function DL(i,o){switch(i){case"compositionend":return h_(o);case"keypress":return o.which!==32?null:(d_=!0,u_);case"textInput":return i=o.data,i===u_&&d_?null:i;default:return null}}function IL(i,o){if(Ro)return i==="compositionend"||!om&&f_(i,o)?(i=i_(),_u=tm=Di=null,Ro=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return c_&&o.locale!=="ko"?null:o.data;default:return null}}var LL={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 m_(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o==="input"?!!LL[i.type]:o==="textarea"}function p_(i,o,c,h){wo?To?To.push(h):To=[h]:wo=h,o=sd(o,"onChange"),0<o.length&&(c=new Su("onChange","change",null,c,h),i.push({event:c,listeners:o}))}var el=null,tl=null;function jL(i){Ux(i,0)}function wu(i){var o=Zs(i);if(Y0(o))return i}function g_(i,o){if(i==="change")return o}var y_=!1;if(ei){var sm;if(ei){var lm="oninput"in document;if(!lm){var v_=document.createElement("div");v_.setAttribute("oninput","return;"),lm=typeof v_.oninput=="function"}sm=lm}else sm=!1;y_=sm&&(!document.documentMode||9<document.documentMode)}function b_(){el&&(el.detachEvent("onpropertychange",__),tl=el=null)}function __(i){if(i.propertyName==="value"&&wu(tl)){var o=[];p_(o,tl,i,Qh(i)),r_(jL,o)}}function ML(i,o,c){i==="focusin"?(b_(),el=o,tl=c,el.attachEvent("onpropertychange",__)):i==="focusout"&&b_()}function PL(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return wu(tl)}function zL(i,o){if(i==="click")return wu(o)}function VL(i,o){if(i==="input"||i==="change")return wu(o)}function BL(i,o){return i===o&&(i!==0||1/i===1/o)||i!==i&&o!==o}var In=typeof Object.is=="function"?Object.is:BL;function nl(i,o){if(In(i,o))return!0;if(typeof i!="object"||i===null||typeof o!="object"||o===null)return!1;var c=Object.keys(i),h=Object.keys(o);if(c.length!==h.length)return!1;for(h=0;h<c.length;h++){var g=c[h];if(!dr.call(o,g)||!In(i[g],o[g]))return!1}return!0}function E_(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function x_(i,o){var c=E_(i);i=0;for(var h;c;){if(c.nodeType===3){if(h=i+c.textContent.length,i<=o&&h>=o)return{node:c,offset:o-i};i=h}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=E_(c)}}function S_(i,o){return i&&o?i===o?!0:i&&i.nodeType===3?!1:o&&o.nodeType===3?S_(i,o.parentNode):"contains"in i?i.contains(o):i.compareDocumentPosition?!!(i.compareDocumentPosition(o)&16):!1:!1}function A_(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var o=vu(i.document);o instanceof i.HTMLIFrameElement;){try{var c=typeof o.contentWindow.location.href=="string"}catch{c=!1}if(c)i=o.contentWindow;else break;o=vu(i.document)}return o}function cm(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o&&(o==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||o==="textarea"||i.contentEditable==="true")}function UL(i,o){var c=A_(o);o=i.focusedElem;var h=i.selectionRange;if(c!==o&&o&&o.ownerDocument&&S_(o.ownerDocument.documentElement,o)){if(h!==null&&cm(o)){if(i=h.start,c=h.end,c===void 0&&(c=i),"selectionStart"in o)o.selectionStart=i,o.selectionEnd=Math.min(c,o.value.length);else if(c=(i=o.ownerDocument||document)&&i.defaultView||window,c.getSelection){c=c.getSelection();var g=o.textContent.length,_=Math.min(h.start,g);h=h.end===void 0?_:Math.min(h.end,g),!c.extend&&_>h&&(g=h,h=_,_=g),g=x_(o,_);var C=x_(o,h);g&&C&&(c.rangeCount!==1||c.anchorNode!==g.node||c.anchorOffset!==g.offset||c.focusNode!==C.node||c.focusOffset!==C.offset)&&(i=i.createRange(),i.setStart(g.node,g.offset),c.removeAllRanges(),_>h?(c.addRange(i),c.extend(C.node,C.offset)):(i.setEnd(C.node,C.offset),c.addRange(i)))}}for(i=[],c=o;c=c.parentNode;)c.nodeType===1&&i.push({element:c,left:c.scrollLeft,top:c.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<i.length;o++)c=i[o],c.element.scrollLeft=c.left,c.element.scrollTop=c.top}}var $L=ei&&"documentMode"in document&&11>=document.documentMode,Co=null,um=null,rl=null,dm=!1;function w_(i,o,c){var h=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;dm||Co==null||Co!==vu(h)||(h=Co,"selectionStart"in h&&cm(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),rl&&nl(rl,h)||(rl=h,h=sd(um,"onSelect"),0<h.length&&(o=new Su("onSelect","select",null,o,c),i.push({event:o,listeners:h}),o.target=Co)))}function Oa(i,o){var c={};return c[i.toLowerCase()]=o.toLowerCase(),c["Webkit"+i]="webkit"+o,c["Moz"+i]="moz"+o,c}var No={animationend:Oa("Animation","AnimationEnd"),animationiteration:Oa("Animation","AnimationIteration"),animationstart:Oa("Animation","AnimationStart"),transitionrun:Oa("Transition","TransitionRun"),transitionstart:Oa("Transition","TransitionStart"),transitioncancel:Oa("Transition","TransitionCancel"),transitionend:Oa("Transition","TransitionEnd")},fm={},T_={};ei&&(T_=document.createElement("div").style,"AnimationEvent"in window||(delete No.animationend.animation,delete No.animationiteration.animation,delete No.animationstart.animation),"TransitionEvent"in window||delete No.transitionend.transition);function ka(i){if(fm[i])return fm[i];if(!No[i])return i;var o=No[i],c;for(c in o)if(o.hasOwnProperty(c)&&c in T_)return fm[i]=o[c];return i}var R_=ka("animationend"),C_=ka("animationiteration"),N_=ka("animationstart"),HL=ka("transitionrun"),FL=ka("transitionstart"),GL=ka("transitioncancel"),O_=ka("transitionend"),k_=new Map,D_="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 scrollEnd toggle touchMove waiting wheel".split(" ");function hr(i,o){k_.set(i,o),Ca(o,[i])}var Kn=[],Oo=0,hm=0;function Tu(){for(var i=Oo,o=hm=Oo=0;o<i;){var c=Kn[o];Kn[o++]=null;var h=Kn[o];Kn[o++]=null;var g=Kn[o];Kn[o++]=null;var _=Kn[o];if(Kn[o++]=null,h!==null&&g!==null){var C=h.pending;C===null?g.next=g:(g.next=C.next,C.next=g),h.pending=g}_!==0&&I_(c,g,_)}}function Ru(i,o,c,h){Kn[Oo++]=i,Kn[Oo++]=o,Kn[Oo++]=c,Kn[Oo++]=h,hm|=h,i.lanes|=h,i=i.alternate,i!==null&&(i.lanes|=h)}function mm(i,o,c,h){return Ru(i,o,c,h),Cu(i)}function Ii(i,o){return Ru(i,null,null,o),Cu(i)}function I_(i,o,c){i.lanes|=c;var h=i.alternate;h!==null&&(h.lanes|=c);for(var g=!1,_=i.return;_!==null;)_.childLanes|=c,h=_.alternate,h!==null&&(h.childLanes|=c),_.tag===22&&(i=_.stateNode,i===null||i._visibility&1||(g=!0)),i=_,_=_.return;g&&o!==null&&i.tag===3&&(_=i.stateNode,g=31-yn(c),_=_.hiddenUpdates,i=_[g],i===null?_[g]=[o]:i.push(o),o.lane=c|536870912)}function Cu(i){if(50<Cl)throw Cl=0,_p=null,Error(r(185));for(var o=i.return;o!==null;)i=o,o=i.return;return i.tag===3?i.stateNode:null}var ko={},L_=new WeakMap;function qn(i,o){if(typeof i=="object"&&i!==null){var c=L_.get(i);return c!==void 0?c:(o={value:i,source:o,stack:re(o)},L_.set(i,o),o)}return{value:i,source:o,stack:re(o)}}var Do=[],Io=0,Nu=null,Ou=0,Zn=[],Wn=0,Da=null,ni=1,ri="";function Ia(i,o){Do[Io++]=Ou,Do[Io++]=Nu,Nu=i,Ou=o}function j_(i,o,c){Zn[Wn++]=ni,Zn[Wn++]=ri,Zn[Wn++]=Da,Da=i;var h=ni;i=ri;var g=32-yn(h)-1;h&=~(1<<g),c+=1;var _=32-yn(o)+g;if(30<_){var C=g-g%5;_=(h&(1<<C)-1).toString(32),h>>=C,g-=C,ni=1<<32-yn(o)+g|c<<g|h,ri=_+i}else ni=1<<_|c<<g|h,ri=i}function pm(i){i.return!==null&&(Ia(i,1),j_(i,1,0))}function gm(i){for(;i===Nu;)Nu=Do[--Io],Do[Io]=null,Ou=Do[--Io],Do[Io]=null;for(;i===Da;)Da=Zn[--Wn],Zn[Wn]=null,ri=Zn[--Wn],Zn[Wn]=null,ni=Zn[--Wn],Zn[Wn]=null}var vn=null,nn=null,it=!1,mr=null,Nr=!1,ym=Error(r(519));function La(i){var o=Error(r(418,""));throw ol(qn(o,i)),ym}function M_(i){var o=i.stateNode,c=i.type,h=i.memoizedProps;switch(o[un]=i,o[Tn]=h,c){case"dialog":et("cancel",o),et("close",o);break;case"iframe":case"object":case"embed":et("load",o);break;case"video":case"audio":for(c=0;c<Ol.length;c++)et(Ol[c],o);break;case"source":et("error",o);break;case"img":case"image":case"link":et("error",o),et("load",o);break;case"details":et("toggle",o);break;case"input":et("invalid",o),X0(o,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0),yu(o);break;case"select":et("invalid",o);break;case"textarea":et("invalid",o),J0(o,h.value,h.defaultValue,h.children),yu(o)}c=h.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||o.textContent===""+c||h.suppressHydrationWarning===!0||Gx(o.textContent,c)?(h.popover!=null&&(et("beforetoggle",o),et("toggle",o)),h.onScroll!=null&&et("scroll",o),h.onScrollEnd!=null&&et("scrollend",o),h.onClick!=null&&(o.onclick=ld),o=!0):o=!1,o||La(i)}function P_(i){for(vn=i.return;vn;)switch(vn.tag){case 3:case 27:Nr=!0;return;case 5:case 13:Nr=!1;return;default:vn=vn.return}}function il(i){if(i!==vn)return!1;if(!it)return P_(i),it=!0,!1;var o=!1,c;if((c=i.tag!==3&&i.tag!==27)&&((c=i.tag===5)&&(c=i.type,c=!(c!=="form"&&c!=="button")||Pp(i.type,i.memoizedProps)),c=!c),c&&(o=!0),o&&nn&&La(i),P_(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));e:{for(i=i.nextSibling,o=0;i;){if(i.nodeType===8)if(c=i.data,c==="/$"){if(o===0){nn=gr(i.nextSibling);break e}o--}else c!=="$"&&c!=="$!"&&c!=="$?"||o++;i=i.nextSibling}nn=null}}else nn=vn?gr(i.stateNode.nextSibling):null;return!0}function al(){nn=vn=null,it=!1}function ol(i){mr===null?mr=[i]:mr.push(i)}var sl=Error(r(460)),z_=Error(r(474)),vm={then:function(){}};function V_(i){return i=i.status,i==="fulfilled"||i==="rejected"}function ku(){}function B_(i,o,c){switch(c=i[c],c===void 0?i.push(o):c!==o&&(o.then(ku,ku),o=c),o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,i===sl?Error(r(483)):i;default:if(typeof o.status=="string")o.then(ku,ku);else{if(i=ft,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=o,i.status="pending",i.then(function(h){if(o.status==="pending"){var g=o;g.status="fulfilled",g.value=h}},function(h){if(o.status==="pending"){var g=o;g.status="rejected",g.reason=h}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,i===sl?Error(r(483)):i}throw ll=o,sl}}var ll=null;function U_(){if(ll===null)throw Error(r(459));var i=ll;return ll=null,i}var Lo=null,cl=0;function Du(i){var o=cl;return cl+=1,Lo===null&&(Lo=[]),B_(Lo,i,o)}function ul(i,o){o=o.props.ref,i.ref=o!==void 0?o:null}function Iu(i,o){throw o.$$typeof===s?Error(r(525)):(i=Object.prototype.toString.call(o),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":i)))}function $_(i){var o=i._init;return o(i._payload)}function H_(i){function o(Y,G){if(i){var Q=Y.deletions;Q===null?(Y.deletions=[G],Y.flags|=16):Q.push(G)}}function c(Y,G){if(!i)return null;for(;G!==null;)o(Y,G),G=G.sibling;return null}function h(Y){for(var G=new Map;Y!==null;)Y.key!==null?G.set(Y.key,Y):G.set(Y.index,Y),Y=Y.sibling;return G}function g(Y,G){return Y=Gi(Y,G),Y.index=0,Y.sibling=null,Y}function _(Y,G,Q){return Y.index=Q,i?(Q=Y.alternate,Q!==null?(Q=Q.index,Q<G?(Y.flags|=33554434,G):Q):(Y.flags|=33554434,G)):(Y.flags|=1048576,G)}function C(Y){return i&&Y.alternate===null&&(Y.flags|=33554434),Y}function k(Y,G,Q,fe){return G===null||G.tag!==6?(G=fp(Q,Y.mode,fe),G.return=Y,G):(G=g(G,Q),G.return=Y,G)}function z(Y,G,Q,fe){var Re=Q.type;return Re===d?le(Y,G,Q.props.children,fe,Q.key):G!==null&&(G.elementType===Re||typeof Re=="object"&&Re!==null&&Re.$$typeof===w&&$_(Re)===G.type)?(G=g(G,Q.props),ul(G,Q),G.return=Y,G):(G=Xu(Q.type,Q.key,Q.props,null,Y.mode,fe),ul(G,Q),G.return=Y,G)}function K(Y,G,Q,fe){return G===null||G.tag!==4||G.stateNode.containerInfo!==Q.containerInfo||G.stateNode.implementation!==Q.implementation?(G=hp(Q,Y.mode,fe),G.return=Y,G):(G=g(G,Q.children||[]),G.return=Y,G)}function le(Y,G,Q,fe,Re){return G===null||G.tag!==7?(G=Fa(Q,Y.mode,fe,Re),G.return=Y,G):(G=g(G,Q),G.return=Y,G)}function me(Y,G,Q){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return G=fp(""+G,Y.mode,Q),G.return=Y,G;if(typeof G=="object"&&G!==null){switch(G.$$typeof){case l:return Q=Xu(G.type,G.key,G.props,null,Y.mode,Q),ul(Q,G),Q.return=Y,Q;case u:return G=hp(G,Y.mode,Q),G.return=Y,G;case w:var fe=G._init;return G=fe(G._payload),me(Y,G,Q)}if(ee(G)||I(G))return G=Fa(G,Y.mode,Q,null),G.return=Y,G;if(typeof G.then=="function")return me(Y,Du(G),Q);if(G.$$typeof===x)return me(Y,Zu(Y,G),Q);Iu(Y,G)}return null}function ne(Y,G,Q,fe){var Re=G!==null?G.key:null;if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return Re!==null?null:k(Y,G,""+Q,fe);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case l:return Q.key===Re?z(Y,G,Q,fe):null;case u:return Q.key===Re?K(Y,G,Q,fe):null;case w:return Re=Q._init,Q=Re(Q._payload),ne(Y,G,Q,fe)}if(ee(Q)||I(Q))return Re!==null?null:le(Y,G,Q,fe,null);if(typeof Q.then=="function")return ne(Y,G,Du(Q),fe);if(Q.$$typeof===x)return ne(Y,G,Zu(Y,Q),fe);Iu(Y,Q)}return null}function se(Y,G,Q,fe,Re){if(typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint")return Y=Y.get(Q)||null,k(G,Y,""+fe,Re);if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case l:return Y=Y.get(fe.key===null?Q:fe.key)||null,z(G,Y,fe,Re);case u:return Y=Y.get(fe.key===null?Q:fe.key)||null,K(G,Y,fe,Re);case w:var Qe=fe._init;return fe=Qe(fe._payload),se(Y,G,Q,fe,Re)}if(ee(fe)||I(fe))return Y=Y.get(Q)||null,le(G,Y,fe,Re,null);if(typeof fe.then=="function")return se(Y,G,Q,Du(fe),Re);if(fe.$$typeof===x)return se(Y,G,Q,Zu(G,fe),Re);Iu(G,fe)}return null}function ke(Y,G,Q,fe){for(var Re=null,Qe=null,Le=G,Me=G=0,Qt=null;Le!==null&&Me<Q.length;Me++){Le.index>Me?(Qt=Le,Le=null):Qt=Le.sibling;var at=ne(Y,Le,Q[Me],fe);if(at===null){Le===null&&(Le=Qt);break}i&&Le&&at.alternate===null&&o(Y,Le),G=_(at,G,Me),Qe===null?Re=at:Qe.sibling=at,Qe=at,Le=Qt}if(Me===Q.length)return c(Y,Le),it&&Ia(Y,Me),Re;if(Le===null){for(;Me<Q.length;Me++)Le=me(Y,Q[Me],fe),Le!==null&&(G=_(Le,G,Me),Qe===null?Re=Le:Qe.sibling=Le,Qe=Le);return it&&Ia(Y,Me),Re}for(Le=h(Le);Me<Q.length;Me++)Qt=se(Le,Y,Me,Q[Me],fe),Qt!==null&&(i&&Qt.alternate!==null&&Le.delete(Qt.key===null?Me:Qt.key),G=_(Qt,G,Me),Qe===null?Re=Qt:Qe.sibling=Qt,Qe=Qt);return i&&Le.forEach(function(Qi){return o(Y,Qi)}),it&&Ia(Y,Me),Re}function He(Y,G,Q,fe){if(Q==null)throw Error(r(151));for(var Re=null,Qe=null,Le=G,Me=G=0,Qt=null,at=Q.next();Le!==null&&!at.done;Me++,at=Q.next()){Le.index>Me?(Qt=Le,Le=null):Qt=Le.sibling;var Qi=ne(Y,Le,at.value,fe);if(Qi===null){Le===null&&(Le=Qt);break}i&&Le&&Qi.alternate===null&&o(Y,Le),G=_(Qi,G,Me),Qe===null?Re=Qi:Qe.sibling=Qi,Qe=Qi,Le=Qt}if(at.done)return c(Y,Le),it&&Ia(Y,Me),Re;if(Le===null){for(;!at.done;Me++,at=Q.next())at=me(Y,at.value,fe),at!==null&&(G=_(at,G,Me),Qe===null?Re=at:Qe.sibling=at,Qe=at);return it&&Ia(Y,Me),Re}for(Le=h(Le);!at.done;Me++,at=Q.next())at=se(Le,Y,Me,at.value,fe),at!==null&&(i&&at.alternate!==null&&Le.delete(at.key===null?Me:at.key),G=_(at,G,Me),Qe===null?Re=at:Qe.sibling=at,Qe=at);return i&&Le.forEach(function(aM){return o(Y,aM)}),it&&Ia(Y,Me),Re}function Ct(Y,G,Q,fe){if(typeof Q=="object"&&Q!==null&&Q.type===d&&Q.key===null&&(Q=Q.props.children),typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case l:e:{for(var Re=Q.key;G!==null;){if(G.key===Re){if(Re=Q.type,Re===d){if(G.tag===7){c(Y,G.sibling),fe=g(G,Q.props.children),fe.return=Y,Y=fe;break e}}else if(G.elementType===Re||typeof Re=="object"&&Re!==null&&Re.$$typeof===w&&$_(Re)===G.type){c(Y,G.sibling),fe=g(G,Q.props),ul(fe,Q),fe.return=Y,Y=fe;break e}c(Y,G);break}else o(Y,G);G=G.sibling}Q.type===d?(fe=Fa(Q.props.children,Y.mode,fe,Q.key),fe.return=Y,Y=fe):(fe=Xu(Q.type,Q.key,Q.props,null,Y.mode,fe),ul(fe,Q),fe.return=Y,Y=fe)}return C(Y);case u:e:{for(Re=Q.key;G!==null;){if(G.key===Re)if(G.tag===4&&G.stateNode.containerInfo===Q.containerInfo&&G.stateNode.implementation===Q.implementation){c(Y,G.sibling),fe=g(G,Q.children||[]),fe.return=Y,Y=fe;break e}else{c(Y,G);break}else o(Y,G);G=G.sibling}fe=hp(Q,Y.mode,fe),fe.return=Y,Y=fe}return C(Y);case w:return Re=Q._init,Q=Re(Q._payload),Ct(Y,G,Q,fe)}if(ee(Q))return ke(Y,G,Q,fe);if(I(Q)){if(Re=I(Q),typeof Re!="function")throw Error(r(150));return Q=Re.call(Q),He(Y,G,Q,fe)}if(typeof Q.then=="function")return Ct(Y,G,Du(Q),fe);if(Q.$$typeof===x)return Ct(Y,G,Zu(Y,Q),fe);Iu(Y,Q)}return typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint"?(Q=""+Q,G!==null&&G.tag===6?(c(Y,G.sibling),fe=g(G,Q),fe.return=Y,Y=fe):(c(Y,G),fe=fp(Q,Y.mode,fe),fe.return=Y,Y=fe),C(Y)):c(Y,G)}return function(Y,G,Q,fe){try{cl=0;var Re=Ct(Y,G,Q,fe);return Lo=null,Re}catch(Le){if(Le===sl)throw Le;var Qe=Jn(29,Le,null,Y.mode);return Qe.lanes=fe,Qe.return=Y,Qe}finally{}}}var ja=H_(!0),F_=H_(!1),jo=_e(null),Lu=_e(0);function G_(i,o){i=mi,Te(Lu,i),Te(jo,o),mi=i|o.baseLanes}function bm(){Te(Lu,mi),Te(jo,jo.current)}function _m(){mi=Lu.current,Oe(jo),Oe(Lu)}var Yn=_e(null),Or=null;function Li(i){var o=i.alternate;Te($t,$t.current&1),Te(Yn,i),Or===null&&(o===null||jo.current!==null||o.memoizedState!==null)&&(Or=i)}function K_(i){if(i.tag===22){if(Te($t,$t.current),Te(Yn,i),Or===null){var o=i.alternate;o!==null&&o.memoizedState!==null&&(Or=i)}}else ji()}function ji(){Te($t,$t.current),Te(Yn,Yn.current)}function ii(i){Oe(Yn),Or===i&&(Or=null),Oe($t)}var $t=_e(0);function ju(i){for(var o=i;o!==null;){if(o.tag===13){var c=o.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||c.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var KL=typeof AbortController<"u"?AbortController:function(){var i=[],o=this.signal={aborted:!1,addEventListener:function(c,h){i.push(h)}};this.abort=function(){o.aborted=!0,i.forEach(function(c){return c()})}},qL=e.unstable_scheduleCallback,ZL=e.unstable_NormalPriority,Ht={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Em(){return{controller:new KL,data:new Map,refCount:0}}function dl(i){i.refCount--,i.refCount===0&&qL(ZL,function(){i.controller.abort()})}var fl=null,xm=0,Mo=0,Po=null;function WL(i,o){if(fl===null){var c=fl=[];xm=0,Mo=Cp(),Po={status:"pending",value:void 0,then:function(h){c.push(h)}}}return xm++,o.then(q_,q_),o}function q_(){if(--xm===0&&fl!==null){Po!==null&&(Po.status="fulfilled");var i=fl;fl=null,Mo=0,Po=null;for(var o=0;o<i.length;o++)(0,i[o])()}}function YL(i,o){var c=[],h={status:"pending",value:null,reason:null,then:function(g){c.push(g)}};return i.then(function(){h.status="fulfilled",h.value=o;for(var g=0;g<c.length;g++)(0,c[g])(o)},function(g){for(h.status="rejected",h.reason=g,g=0;g<c.length;g++)(0,c[g])(void 0)}),h}var Z_=P.S;P.S=function(i,o){typeof o=="object"&&o!==null&&typeof o.then=="function"&&WL(i,o),Z_!==null&&Z_(i,o)};var Ma=_e(null);function Sm(){var i=Ma.current;return i!==null?i:ft.pooledCache}function Mu(i,o){o===null?Te(Ma,Ma.current):Te(Ma,o.pool)}function W_(){var i=Sm();return i===null?null:{parent:Ht._currentValue,pool:i}}var Mi=0,Ye=null,lt=null,Lt=null,Pu=!1,zo=!1,Pa=!1,zu=0,hl=0,Vo=null,XL=0;function Ot(){throw Error(r(321))}function Am(i,o){if(o===null)return!1;for(var c=0;c<o.length&&c<i.length;c++)if(!In(i[c],o[c]))return!1;return!0}function wm(i,o,c,h,g,_){return Mi=_,Ye=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,P.H=i===null||i.memoizedState===null?za:Pi,Pa=!1,_=c(h,g),Pa=!1,zo&&(_=X_(o,c,h,g)),Y_(i),_}function Y_(i){P.H=kr;var o=lt!==null&<.next!==null;if(Mi=0,Lt=lt=Ye=null,Pu=!1,hl=0,Vo=null,o)throw Error(r(300));i===null||Yt||(i=i.dependencies,i!==null&&qu(i)&&(Yt=!0))}function X_(i,o,c,h){Ye=i;var g=0;do{if(zo&&(Vo=null),hl=0,zo=!1,25<=g)throw Error(r(301));if(g+=1,Lt=lt=null,i.updateQueue!=null){var _=i.updateQueue;_.lastEffect=null,_.events=null,_.stores=null,_.memoCache!=null&&(_.memoCache.index=0)}P.H=Va,_=o(c,h)}while(zo);return _}function QL(){var i=P.H,o=i.useState()[0];return o=typeof o.then=="function"?ml(o):o,i=i.useState()[0],(lt!==null?lt.memoizedState:null)!==i&&(Ye.flags|=1024),o}function Tm(){var i=zu!==0;return zu=0,i}function Rm(i,o,c){o.updateQueue=i.updateQueue,o.flags&=-2053,i.lanes&=~c}function Cm(i){if(Pu){for(i=i.memoizedState;i!==null;){var o=i.queue;o!==null&&(o.pending=null),i=i.next}Pu=!1}Mi=0,Lt=lt=Ye=null,zo=!1,hl=zu=0,Vo=null}function Cn(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Lt===null?Ye.memoizedState=Lt=i:Lt=Lt.next=i,Lt}function jt(){if(lt===null){var i=Ye.alternate;i=i!==null?i.memoizedState:null}else i=lt.next;var o=Lt===null?Ye.memoizedState:Lt.next;if(o!==null)Lt=o,lt=i;else{if(i===null)throw Ye.alternate===null?Error(r(467)):Error(r(310));lt=i,i={memoizedState:lt.memoizedState,baseState:lt.baseState,baseQueue:lt.baseQueue,queue:lt.queue,next:null},Lt===null?Ye.memoizedState=Lt=i:Lt=Lt.next=i}return Lt}var Vu;Vu=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function ml(i){var o=hl;return hl+=1,Vo===null&&(Vo=[]),i=B_(Vo,i,o),o=Ye,(Lt===null?o.memoizedState:Lt.next)===null&&(o=o.alternate,P.H=o===null||o.memoizedState===null?za:Pi),i}function Bu(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return ml(i);if(i.$$typeof===x)return dn(i)}throw Error(r(438,String(i)))}function Nm(i){var o=null,c=Ye.updateQueue;if(c!==null&&(o=c.memoCache),o==null){var h=Ye.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(o={data:h.data.map(function(g){return g.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),c===null&&(c=Vu(),Ye.updateQueue=c),c.memoCache=o,c=o.data[o.index],c===void 0)for(c=o.data[o.index]=Array(i),h=0;h<i;h++)c[h]=O;return o.index++,c}function ai(i,o){return typeof o=="function"?o(i):o}function Uu(i){var o=jt();return Om(o,lt,i)}function Om(i,o,c){var h=i.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=c;var g=i.baseQueue,_=h.pending;if(_!==null){if(g!==null){var C=g.next;g.next=_.next,_.next=C}o.baseQueue=g=_,h.pending=null}if(_=i.baseState,g===null)i.memoizedState=_;else{o=g.next;var k=C=null,z=null,K=o,le=!1;do{var me=K.lane&-536870913;if(me!==K.lane?(nt&me)===me:(Mi&me)===me){var ne=K.revertLane;if(ne===0)z!==null&&(z=z.next={lane:0,revertLane:0,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),me===Mo&&(le=!0);else if((Mi&ne)===ne){K=K.next,ne===Mo&&(le=!0);continue}else me={lane:0,revertLane:K.revertLane,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},z===null?(k=z=me,C=_):z=z.next=me,Ye.lanes|=ne,Ki|=ne;me=K.action,Pa&&c(_,me),_=K.hasEagerState?K.eagerState:c(_,me)}else ne={lane:me,revertLane:K.revertLane,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},z===null?(k=z=ne,C=_):z=z.next=ne,Ye.lanes|=me,Ki|=me;K=K.next}while(K!==null&&K!==o);if(z===null?C=_:z.next=k,!In(_,i.memoizedState)&&(Yt=!0,le&&(c=Po,c!==null)))throw c;i.memoizedState=_,i.baseState=C,i.baseQueue=z,h.lastRenderedState=_}return g===null&&(h.lanes=0),[i.memoizedState,h.dispatch]}function km(i){var o=jt(),c=o.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=i;var h=c.dispatch,g=c.pending,_=o.memoizedState;if(g!==null){c.pending=null;var C=g=g.next;do _=i(_,C.action),C=C.next;while(C!==g);In(_,o.memoizedState)||(Yt=!0),o.memoizedState=_,o.baseQueue===null&&(o.baseState=_),c.lastRenderedState=_}return[_,h]}function Q_(i,o,c){var h=Ye,g=jt(),_=it;if(_){if(c===void 0)throw Error(r(407));c=c()}else c=o();var C=!In((lt||g).memoizedState,c);if(C&&(g.memoizedState=c,Yt=!0),g=g.queue,Lm(tE.bind(null,h,g,i),[i]),g.getSnapshot!==o||C||Lt!==null&&Lt.memoizedState.tag&1){if(h.flags|=2048,Bo(9,eE.bind(null,h,g,c,o),{destroy:void 0},null),ft===null)throw Error(r(349));_||(Mi&60)!==0||J_(h,o,c)}return c}function J_(i,o,c){i.flags|=16384,i={getSnapshot:o,value:c},o=Ye.updateQueue,o===null?(o=Vu(),Ye.updateQueue=o,o.stores=[i]):(c=o.stores,c===null?o.stores=[i]:c.push(i))}function eE(i,o,c,h){o.value=c,o.getSnapshot=h,nE(o)&&rE(i)}function tE(i,o,c){return c(function(){nE(o)&&rE(i)})}function nE(i){var o=i.getSnapshot;i=i.value;try{var c=o();return!In(i,c)}catch{return!0}}function rE(i){var o=Ii(i,2);o!==null&&bn(o,i,2)}function Dm(i){var o=Cn();if(typeof i=="function"){var c=i;if(i=c(),Pa){fr(!0);try{c()}finally{fr(!1)}}}return o.memoizedState=o.baseState=i,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ai,lastRenderedState:i},o}function iE(i,o,c,h){return i.baseState=c,Om(i,lt,typeof h=="function"?h:ai)}function JL(i,o,c,h,g){if(Fu(i))throw Error(r(485));if(i=o.action,i!==null){var _={payload:g,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(C){_.listeners.push(C)}};P.T!==null?c(!0):_.isTransition=!1,h(_),c=o.pending,c===null?(_.next=o.pending=_,aE(o,_)):(_.next=c.next,o.pending=c.next=_)}}function aE(i,o){var c=o.action,h=o.payload,g=i.state;if(o.isTransition){var _=P.T,C={};P.T=C;try{var k=c(g,h),z=P.S;z!==null&&z(C,k),oE(i,o,k)}catch(K){Im(i,o,K)}finally{P.T=_}}else try{_=c(g,h),oE(i,o,_)}catch(K){Im(i,o,K)}}function oE(i,o,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(h){sE(i,o,h)},function(h){return Im(i,o,h)}):sE(i,o,c)}function sE(i,o,c){o.status="fulfilled",o.value=c,lE(o),i.state=c,o=i.pending,o!==null&&(c=o.next,c===o?i.pending=null:(c=c.next,o.next=c,aE(i,c)))}function Im(i,o,c){var h=i.pending;if(i.pending=null,h!==null){h=h.next;do o.status="rejected",o.reason=c,lE(o),o=o.next;while(o!==h)}i.action=null}function lE(i){i=i.listeners;for(var o=0;o<i.length;o++)(0,i[o])()}function cE(i,o){return o}function uE(i,o){if(it){var c=ft.formState;if(c!==null){e:{var h=Ye;if(it){if(nn){t:{for(var g=nn,_=Nr;g.nodeType!==8;){if(!_){g=null;break t}if(g=gr(g.nextSibling),g===null){g=null;break t}}_=g.data,g=_==="F!"||_==="F"?g:null}if(g){nn=gr(g.nextSibling),h=g.data==="F!";break e}}La(h)}h=!1}h&&(o=c[0])}}return c=Cn(),c.memoizedState=c.baseState=o,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cE,lastRenderedState:o},c.queue=h,c=CE.bind(null,Ye,h),h.dispatch=c,h=Dm(!1),_=Vm.bind(null,Ye,!1,h.queue),h=Cn(),g={state:o,dispatch:null,action:i,pending:null},h.queue=g,c=JL.bind(null,Ye,g,_,c),g.dispatch=c,h.memoizedState=i,[o,c,!1]}function dE(i){var o=jt();return fE(o,lt,i)}function fE(i,o,c){o=Om(i,o,cE)[0],i=Uu(ai)[0],o=typeof o=="object"&&o!==null&&typeof o.then=="function"?ml(o):o;var h=jt(),g=h.queue,_=g.dispatch;return c!==h.memoizedState&&(Ye.flags|=2048,Bo(9,ej.bind(null,g,c),{destroy:void 0},null)),[o,_,i]}function ej(i,o){i.action=o}function hE(i){var o=jt(),c=lt;if(c!==null)return fE(o,c,i);jt(),o=o.memoizedState,c=jt();var h=c.queue.dispatch;return c.memoizedState=i,[o,h,!1]}function Bo(i,o,c,h){return i={tag:i,create:o,inst:c,deps:h,next:null},o=Ye.updateQueue,o===null&&(o=Vu(),Ye.updateQueue=o),c=o.lastEffect,c===null?o.lastEffect=i.next=i:(h=c.next,c.next=i,i.next=h,o.lastEffect=i),i}function mE(){return jt().memoizedState}function $u(i,o,c,h){var g=Cn();Ye.flags|=i,g.memoizedState=Bo(1|o,c,{destroy:void 0},h===void 0?null:h)}function Hu(i,o,c,h){var g=jt();h=h===void 0?null:h;var _=g.memoizedState.inst;lt!==null&&h!==null&&Am(h,lt.memoizedState.deps)?g.memoizedState=Bo(o,c,_,h):(Ye.flags|=i,g.memoizedState=Bo(1|o,c,_,h))}function pE(i,o){$u(8390656,8,i,o)}function Lm(i,o){Hu(2048,8,i,o)}function gE(i,o){return Hu(4,2,i,o)}function yE(i,o){return Hu(4,4,i,o)}function vE(i,o){if(typeof o=="function"){i=i();var c=o(i);return function(){typeof c=="function"?c():o(null)}}if(o!=null)return i=i(),o.current=i,function(){o.current=null}}function bE(i,o,c){c=c!=null?c.concat([i]):null,Hu(4,4,vE.bind(null,o,i),c)}function jm(){}function _E(i,o){var c=jt();o=o===void 0?null:o;var h=c.memoizedState;return o!==null&&Am(o,h[1])?h[0]:(c.memoizedState=[i,o],i)}function EE(i,o){var c=jt();o=o===void 0?null:o;var h=c.memoizedState;if(o!==null&&Am(o,h[1]))return h[0];if(h=i(),Pa){fr(!0);try{i()}finally{fr(!1)}}return c.memoizedState=[h,o],h}function Mm(i,o,c){return c===void 0||(Mi&1073741824)!==0?i.memoizedState=o:(i.memoizedState=c,i=Sx(),Ye.lanes|=i,Ki|=i,c)}function xE(i,o,c,h){return In(c,o)?c:jo.current!==null?(i=Mm(i,c,h),In(i,o)||(Yt=!0),i):(Mi&42)===0?(Yt=!0,i.memoizedState=c):(i=Sx(),Ye.lanes|=i,Ki|=i,o)}function SE(i,o,c,h,g){var _=ie.p;ie.p=_!==0&&8>_?_:8;var C=P.T,k={};P.T=k,Vm(i,!1,o,c);try{var z=g(),K=P.S;if(K!==null&&K(k,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var le=YL(z,h);pl(i,o,le,Pn(i))}else pl(i,o,h,Pn(i))}catch(me){pl(i,o,{then:function(){},status:"rejected",reason:me},Pn())}finally{ie.p=_,P.T=C}}function tj(){}function Pm(i,o,c,h){if(i.tag!==5)throw Error(r(476));var g=AE(i).queue;SE(i,g,o,he,c===null?tj:function(){return wE(i),c(h)})}function AE(i){var o=i.memoizedState;if(o!==null)return o;o={memoizedState:he,baseState:he,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ai,lastRenderedState:he},next:null};var c={};return o.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ai,lastRenderedState:c},next:null},i.memoizedState=o,i=i.alternate,i!==null&&(i.memoizedState=o),o}function wE(i){var o=AE(i).next.queue;pl(i,o,{},Pn())}function zm(){return dn(jl)}function TE(){return jt().memoizedState}function RE(){return jt().memoizedState}function nj(i){for(var o=i.return;o!==null;){switch(o.tag){case 24:case 3:var c=Pn();i=Bi(c);var h=Ui(o,i,c);h!==null&&(bn(h,o,c),vl(h,o,c)),o={cache:Em()},i.payload=o;return}o=o.return}}function rj(i,o,c){var h=Pn();c={lane:h,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null},Fu(i)?NE(o,c):(c=mm(i,o,c,h),c!==null&&(bn(c,i,h),OE(c,o,h)))}function CE(i,o,c){var h=Pn();pl(i,o,c,h)}function pl(i,o,c,h){var g={lane:h,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null};if(Fu(i))NE(o,g);else{var _=i.alternate;if(i.lanes===0&&(_===null||_.lanes===0)&&(_=o.lastRenderedReducer,_!==null))try{var C=o.lastRenderedState,k=_(C,c);if(g.hasEagerState=!0,g.eagerState=k,In(k,C))return Ru(i,o,g,0),ft===null&&Tu(),!1}catch{}finally{}if(c=mm(i,o,g,h),c!==null)return bn(c,i,h),OE(c,o,h),!0}return!1}function Vm(i,o,c,h){if(h={lane:2,revertLane:Cp(),action:h,hasEagerState:!1,eagerState:null,next:null},Fu(i)){if(o)throw Error(r(479))}else o=mm(i,c,h,2),o!==null&&bn(o,i,2)}function Fu(i){var o=i.alternate;return i===Ye||o!==null&&o===Ye}function NE(i,o){zo=Pu=!0;var c=i.pending;c===null?o.next=o:(o.next=c.next,c.next=o),i.pending=o}function OE(i,o,c){if((c&4194176)!==0){var h=o.lanes;h&=i.pendingLanes,c|=h,o.lanes=c,U0(i,c)}}var kr={readContext:dn,use:Bu,useCallback:Ot,useContext:Ot,useEffect:Ot,useImperativeHandle:Ot,useLayoutEffect:Ot,useInsertionEffect:Ot,useMemo:Ot,useReducer:Ot,useRef:Ot,useState:Ot,useDebugValue:Ot,useDeferredValue:Ot,useTransition:Ot,useSyncExternalStore:Ot,useId:Ot};kr.useCacheRefresh=Ot,kr.useMemoCache=Ot,kr.useHostTransitionStatus=Ot,kr.useFormState=Ot,kr.useActionState=Ot,kr.useOptimistic=Ot;var za={readContext:dn,use:Bu,useCallback:function(i,o){return Cn().memoizedState=[i,o===void 0?null:o],i},useContext:dn,useEffect:pE,useImperativeHandle:function(i,o,c){c=c!=null?c.concat([i]):null,$u(4194308,4,vE.bind(null,o,i),c)},useLayoutEffect:function(i,o){return $u(4194308,4,i,o)},useInsertionEffect:function(i,o){$u(4,2,i,o)},useMemo:function(i,o){var c=Cn();o=o===void 0?null:o;var h=i();if(Pa){fr(!0);try{i()}finally{fr(!1)}}return c.memoizedState=[h,o],h},useReducer:function(i,o,c){var h=Cn();if(c!==void 0){var g=c(o);if(Pa){fr(!0);try{c(o)}finally{fr(!1)}}}else g=o;return h.memoizedState=h.baseState=g,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:g},h.queue=i,i=i.dispatch=rj.bind(null,Ye,i),[h.memoizedState,i]},useRef:function(i){var o=Cn();return i={current:i},o.memoizedState=i},useState:function(i){i=Dm(i);var o=i.queue,c=CE.bind(null,Ye,o);return o.dispatch=c,[i.memoizedState,c]},useDebugValue:jm,useDeferredValue:function(i,o){var c=Cn();return Mm(c,i,o)},useTransition:function(){var i=Dm(!1);return i=SE.bind(null,Ye,i.queue,!0,!1),Cn().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,o,c){var h=Ye,g=Cn();if(it){if(c===void 0)throw Error(r(407));c=c()}else{if(c=o(),ft===null)throw Error(r(349));(nt&60)!==0||J_(h,o,c)}g.memoizedState=c;var _={value:c,getSnapshot:o};return g.queue=_,pE(tE.bind(null,h,_,i),[i]),h.flags|=2048,Bo(9,eE.bind(null,h,_,c,o),{destroy:void 0},null),c},useId:function(){var i=Cn(),o=ft.identifierPrefix;if(it){var c=ri,h=ni;c=(h&~(1<<32-yn(h)-1)).toString(32)+c,o=":"+o+"R"+c,c=zu++,0<c&&(o+="H"+c.toString(32)),o+=":"}else c=XL++,o=":"+o+"r"+c.toString(32)+":";return i.memoizedState=o},useCacheRefresh:function(){return Cn().memoizedState=nj.bind(null,Ye)}};za.useMemoCache=Nm,za.useHostTransitionStatus=zm,za.useFormState=uE,za.useActionState=uE,za.useOptimistic=function(i){var o=Cn();o.memoizedState=o.baseState=i;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=c,o=Vm.bind(null,Ye,!0,c),c.dispatch=o,[i,o]};var Pi={readContext:dn,use:Bu,useCallback:_E,useContext:dn,useEffect:Lm,useImperativeHandle:bE,useInsertionEffect:gE,useLayoutEffect:yE,useMemo:EE,useReducer:Uu,useRef:mE,useState:function(){return Uu(ai)},useDebugValue:jm,useDeferredValue:function(i,o){var c=jt();return xE(c,lt.memoizedState,i,o)},useTransition:function(){var i=Uu(ai)[0],o=jt().memoizedState;return[typeof i=="boolean"?i:ml(i),o]},useSyncExternalStore:Q_,useId:TE};Pi.useCacheRefresh=RE,Pi.useMemoCache=Nm,Pi.useHostTransitionStatus=zm,Pi.useFormState=dE,Pi.useActionState=dE,Pi.useOptimistic=function(i,o){var c=jt();return iE(c,lt,i,o)};var Va={readContext:dn,use:Bu,useCallback:_E,useContext:dn,useEffect:Lm,useImperativeHandle:bE,useInsertionEffect:gE,useLayoutEffect:yE,useMemo:EE,useReducer:km,useRef:mE,useState:function(){return km(ai)},useDebugValue:jm,useDeferredValue:function(i,o){var c=jt();return lt===null?Mm(c,i,o):xE(c,lt.memoizedState,i,o)},useTransition:function(){var i=km(ai)[0],o=jt().memoizedState;return[typeof i=="boolean"?i:ml(i),o]},useSyncExternalStore:Q_,useId:TE};Va.useCacheRefresh=RE,Va.useMemoCache=Nm,Va.useHostTransitionStatus=zm,Va.useFormState=hE,Va.useActionState=hE,Va.useOptimistic=function(i,o){var c=jt();return lt!==null?iE(c,lt,i,o):(c.baseState=i,[i,c.queue.dispatch])};function Bm(i,o,c,h){o=i.memoizedState,c=c(h,o),c=c==null?o:M({},o,c),i.memoizedState=c,i.lanes===0&&(i.updateQueue.baseState=c)}var Um={isMounted:function(i){return(i=i._reactInternals)?q(i)===i:!1},enqueueSetState:function(i,o,c){i=i._reactInternals;var h=Pn(),g=Bi(h);g.payload=o,c!=null&&(g.callback=c),o=Ui(i,g,h),o!==null&&(bn(o,i,h),vl(o,i,h))},enqueueReplaceState:function(i,o,c){i=i._reactInternals;var h=Pn(),g=Bi(h);g.tag=1,g.payload=o,c!=null&&(g.callback=c),o=Ui(i,g,h),o!==null&&(bn(o,i,h),vl(o,i,h))},enqueueForceUpdate:function(i,o){i=i._reactInternals;var c=Pn(),h=Bi(c);h.tag=2,o!=null&&(h.callback=o),o=Ui(i,h,c),o!==null&&(bn(o,i,c),vl(o,i,c))}};function kE(i,o,c,h,g,_,C){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(h,_,C):o.prototype&&o.prototype.isPureReactComponent?!nl(c,h)||!nl(g,_):!0}function DE(i,o,c,h){i=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(c,h),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(c,h),o.state!==i&&Um.enqueueReplaceState(o,o.state,null)}function Ba(i,o){var c=o;if("ref"in o){c={};for(var h in o)h!=="ref"&&(c[h]=o[h])}if(i=i.defaultProps){c===o&&(c=M({},c));for(var g in i)c[g]===void 0&&(c[g]=i[g])}return c}var Gu=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)};function IE(i){Gu(i)}function LE(i){console.error(i)}function jE(i){Gu(i)}function Ku(i,o){try{var c=i.onUncaughtError;c(o.value,{componentStack:o.stack})}catch(h){setTimeout(function(){throw h})}}function ME(i,o,c){try{var h=i.onCaughtError;h(c.value,{componentStack:c.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function $m(i,o,c){return c=Bi(c),c.tag=3,c.payload={element:null},c.callback=function(){Ku(i,o)},c}function PE(i){return i=Bi(i),i.tag=3,i}function zE(i,o,c,h){var g=c.type.getDerivedStateFromError;if(typeof g=="function"){var _=h.value;i.payload=function(){return g(_)},i.callback=function(){ME(o,c,h)}}var C=c.stateNode;C!==null&&typeof C.componentDidCatch=="function"&&(i.callback=function(){ME(o,c,h),typeof g!="function"&&(qi===null?qi=new Set([this]):qi.add(this));var k=h.stack;this.componentDidCatch(h.value,{componentStack:k!==null?k:""})})}function ij(i,o,c,h,g){if(c.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(o=c.alternate,o!==null&&yl(o,c,g,!0),c=Yn.current,c!==null){switch(c.tag){case 13:return Or===null?Sp():c.alternate===null&&Rt===0&&(Rt=3),c.flags&=-257,c.flags|=65536,c.lanes=g,h===vm?c.flags|=16384:(o=c.updateQueue,o===null?c.updateQueue=new Set([h]):o.add(h),wp(i,h,g)),!1;case 22:return c.flags|=65536,h===vm?c.flags|=16384:(o=c.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([h])},c.updateQueue=o):(c=o.retryQueue,c===null?o.retryQueue=new Set([h]):c.add(h)),wp(i,h,g)),!1}throw Error(r(435,c.tag))}return wp(i,h,g),Sp(),!1}if(it)return o=Yn.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=g,h!==ym&&(i=Error(r(422),{cause:h}),ol(qn(i,c)))):(h!==ym&&(o=Error(r(423),{cause:h}),ol(qn(o,c))),i=i.current.alternate,i.flags|=65536,g&=-g,i.lanes|=g,h=qn(h,c),g=$m(i.stateNode,h,g),rp(i,g),Rt!==4&&(Rt=2)),!1;var _=Error(r(520),{cause:h});if(_=qn(_,c),Tl===null?Tl=[_]:Tl.push(_),Rt!==4&&(Rt=2),o===null)return!0;h=qn(h,c),c=o;do{switch(c.tag){case 3:return c.flags|=65536,i=g&-g,c.lanes|=i,i=$m(c.stateNode,h,i),rp(c,i),!1;case 1:if(o=c.type,_=c.stateNode,(c.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(qi===null||!qi.has(_))))return c.flags|=65536,g&=-g,c.lanes|=g,g=PE(g),zE(g,i,c,h),rp(c,g),!1}c=c.return}while(c!==null);return!1}var VE=Error(r(461)),Yt=!1;function rn(i,o,c,h){o.child=i===null?F_(o,null,c,h):ja(o,i.child,c,h)}function BE(i,o,c,h,g){c=c.render;var _=o.ref;if("ref"in h){var C={};for(var k in h)k!=="ref"&&(C[k]=h[k])}else C=h;return $a(o),h=wm(i,o,c,C,_,g),k=Tm(),i!==null&&!Yt?(Rm(i,o,g),oi(i,o,g)):(it&&k&&pm(o),o.flags|=1,rn(i,o,h,g),o.child)}function UE(i,o,c,h,g){if(i===null){var _=c.type;return typeof _=="function"&&!dp(_)&&_.defaultProps===void 0&&c.compare===null?(o.tag=15,o.type=_,$E(i,o,_,h,g)):(i=Xu(c.type,null,h,o,o.mode,g),i.ref=o.ref,i.return=o,o.child=i)}if(_=i.child,!Xm(i,g)){var C=_.memoizedProps;if(c=c.compare,c=c!==null?c:nl,c(C,h)&&i.ref===o.ref)return oi(i,o,g)}return o.flags|=1,i=Gi(_,h),i.ref=o.ref,i.return=o,o.child=i}function $E(i,o,c,h,g){if(i!==null){var _=i.memoizedProps;if(nl(_,h)&&i.ref===o.ref)if(Yt=!1,o.pendingProps=h=_,Xm(i,g))(i.flags&131072)!==0&&(Yt=!0);else return o.lanes=i.lanes,oi(i,o,g)}return Hm(i,o,c,h,g)}function HE(i,o,c){var h=o.pendingProps,g=h.children,_=(o.stateNode._pendingVisibility&2)!==0,C=i!==null?i.memoizedState:null;if(gl(i,o),h.mode==="hidden"||_){if((o.flags&128)!==0){if(h=C!==null?C.baseLanes|c:c,i!==null){for(g=o.child=i.child,_=0;g!==null;)_=_|g.lanes|g.childLanes,g=g.sibling;o.childLanes=_&~h}else o.childLanes=0,o.child=null;return FE(i,o,h,c)}if((c&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},i!==null&&Mu(o,C!==null?C.cachePool:null),C!==null?G_(o,C):bm(),K_(o);else return o.lanes=o.childLanes=536870912,FE(i,o,C!==null?C.baseLanes|c:c,c)}else C!==null?(Mu(o,C.cachePool),G_(o,C),ji(),o.memoizedState=null):(i!==null&&Mu(o,null),bm(),ji());return rn(i,o,g,c),o.child}function FE(i,o,c,h){var g=Sm();return g=g===null?null:{parent:Ht._currentValue,pool:g},o.memoizedState={baseLanes:c,cachePool:g},i!==null&&Mu(o,null),bm(),K_(o),i!==null&&yl(i,o,h,!0),null}function gl(i,o){var c=o.ref;if(c===null)i!==null&&i.ref!==null&&(o.flags|=2097664);else{if(typeof c!="function"&&typeof c!="object")throw Error(r(284));(i===null||i.ref!==c)&&(o.flags|=2097664)}}function Hm(i,o,c,h,g){return $a(o),c=wm(i,o,c,h,void 0,g),h=Tm(),i!==null&&!Yt?(Rm(i,o,g),oi(i,o,g)):(it&&h&&pm(o),o.flags|=1,rn(i,o,c,g),o.child)}function GE(i,o,c,h,g,_){return $a(o),o.updateQueue=null,c=X_(o,h,c,g),Y_(i),h=Tm(),i!==null&&!Yt?(Rm(i,o,_),oi(i,o,_)):(it&&h&&pm(o),o.flags|=1,rn(i,o,c,_),o.child)}function KE(i,o,c,h,g){if($a(o),o.stateNode===null){var _=ko,C=c.contextType;typeof C=="object"&&C!==null&&(_=dn(C)),_=new c(h,_),o.memoizedState=_.state!==null&&_.state!==void 0?_.state:null,_.updater=Um,o.stateNode=_,_._reactInternals=o,_=o.stateNode,_.props=h,_.state=o.memoizedState,_.refs={},tp(o),C=c.contextType,_.context=typeof C=="object"&&C!==null?dn(C):ko,_.state=o.memoizedState,C=c.getDerivedStateFromProps,typeof C=="function"&&(Bm(o,c,C,h),_.state=o.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof _.getSnapshotBeforeUpdate=="function"||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(C=_.state,typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount(),C!==_.state&&Um.enqueueReplaceState(_,_.state,null),_l(o,h,_,g),bl(),_.state=o.memoizedState),typeof _.componentDidMount=="function"&&(o.flags|=4194308),h=!0}else if(i===null){_=o.stateNode;var k=o.memoizedProps,z=Ba(c,k);_.props=z;var K=_.context,le=c.contextType;C=ko,typeof le=="object"&&le!==null&&(C=dn(le));var me=c.getDerivedStateFromProps;le=typeof me=="function"||typeof _.getSnapshotBeforeUpdate=="function",k=o.pendingProps!==k,le||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(k||K!==C)&&DE(o,_,h,C),Vi=!1;var ne=o.memoizedState;_.state=ne,_l(o,h,_,g),bl(),K=o.memoizedState,k||ne!==K||Vi?(typeof me=="function"&&(Bm(o,c,me,h),K=o.memoizedState),(z=Vi||kE(o,c,z,h,ne,K,C))?(le||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"&&(o.flags|=4194308)):(typeof _.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=h,o.memoizedState=K),_.props=h,_.state=K,_.context=C,h=z):(typeof _.componentDidMount=="function"&&(o.flags|=4194308),h=!1)}else{_=o.stateNode,np(i,o),C=o.memoizedProps,le=Ba(c,C),_.props=le,me=o.pendingProps,ne=_.context,K=c.contextType,z=ko,typeof K=="object"&&K!==null&&(z=dn(K)),k=c.getDerivedStateFromProps,(K=typeof k=="function"||typeof _.getSnapshotBeforeUpdate=="function")||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(C!==me||ne!==z)&&DE(o,_,h,z),Vi=!1,ne=o.memoizedState,_.state=ne,_l(o,h,_,g),bl();var se=o.memoizedState;C!==me||ne!==se||Vi||i!==null&&i.dependencies!==null&&qu(i.dependencies)?(typeof k=="function"&&(Bm(o,c,k,h),se=o.memoizedState),(le=Vi||kE(o,c,le,h,ne,se,z)||i!==null&&i.dependencies!==null&&qu(i.dependencies))?(K||typeof _.UNSAFE_componentWillUpdate!="function"&&typeof _.componentWillUpdate!="function"||(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(h,se,z),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(h,se,z)),typeof _.componentDidUpdate=="function"&&(o.flags|=4),typeof _.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof _.componentDidUpdate!="function"||C===i.memoizedProps&&ne===i.memoizedState||(o.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||C===i.memoizedProps&&ne===i.memoizedState||(o.flags|=1024),o.memoizedProps=h,o.memoizedState=se),_.props=h,_.state=se,_.context=z,h=le):(typeof _.componentDidUpdate!="function"||C===i.memoizedProps&&ne===i.memoizedState||(o.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||C===i.memoizedProps&&ne===i.memoizedState||(o.flags|=1024),h=!1)}return _=h,gl(i,o),h=(o.flags&128)!==0,_||h?(_=o.stateNode,c=h&&typeof c.getDerivedStateFromError!="function"?null:_.render(),o.flags|=1,i!==null&&h?(o.child=ja(o,i.child,null,g),o.child=ja(o,null,c,g)):rn(i,o,c,g),o.memoizedState=_.state,i=o.child):i=oi(i,o,g),i}function qE(i,o,c,h){return al(),o.flags|=256,rn(i,o,c,h),o.child}var Fm={dehydrated:null,treeContext:null,retryLane:0};function Gm(i){return{baseLanes:i,cachePool:W_()}}function Km(i,o,c){return i=i!==null?i.childLanes&~c:0,o&&(i|=er),i}function ZE(i,o,c){var h=o.pendingProps,g=!1,_=(o.flags&128)!==0,C;if((C=_)||(C=i!==null&&i.memoizedState===null?!1:($t.current&2)!==0),C&&(g=!0,o.flags&=-129),C=(o.flags&32)!==0,o.flags&=-33,i===null){if(it){if(g?Li(o):ji(),it){var k=nn,z;if(z=k){e:{for(z=k,k=Nr;z.nodeType!==8;){if(!k){k=null;break e}if(z=gr(z.nextSibling),z===null){k=null;break e}}k=z}k!==null?(o.memoizedState={dehydrated:k,treeContext:Da!==null?{id:ni,overflow:ri}:null,retryLane:536870912},z=Jn(18,null,null,0),z.stateNode=k,z.return=o,o.child=z,vn=o,nn=null,z=!0):z=!1}z||La(o)}if(k=o.memoizedState,k!==null&&(k=k.dehydrated,k!==null))return k.data==="$!"?o.lanes=16:o.lanes=536870912,null;ii(o)}return k=h.children,h=h.fallback,g?(ji(),g=o.mode,k=Zm({mode:"hidden",children:k},g),h=Fa(h,g,c,null),k.return=o,h.return=o,k.sibling=h,o.child=k,g=o.child,g.memoizedState=Gm(c),g.childLanes=Km(i,C,c),o.memoizedState=Fm,h):(Li(o),qm(o,k))}if(z=i.memoizedState,z!==null&&(k=z.dehydrated,k!==null)){if(_)o.flags&256?(Li(o),o.flags&=-257,o=Wm(i,o,c)):o.memoizedState!==null?(ji(),o.child=i.child,o.flags|=128,o=null):(ji(),g=h.fallback,k=o.mode,h=Zm({mode:"visible",children:h.children},k),g=Fa(g,k,c,null),g.flags|=2,h.return=o,g.return=o,h.sibling=g,o.child=h,ja(o,i.child,null,c),h=o.child,h.memoizedState=Gm(c),h.childLanes=Km(i,C,c),o.memoizedState=Fm,o=g);else if(Li(o),k.data==="$!"){if(C=k.nextSibling&&k.nextSibling.dataset,C)var K=C.dgst;C=K,h=Error(r(419)),h.stack="",h.digest=C,ol({value:h,source:null,stack:null}),o=Wm(i,o,c)}else if(Yt||yl(i,o,c,!1),C=(c&i.childLanes)!==0,Yt||C){if(C=ft,C!==null){if(h=c&-c,(h&42)!==0)h=1;else switch(h){case 2:h=1;break;case 8:h=4;break;case 32:h=16;break;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:case 4194304:case 8388608:case 16777216:case 33554432:h=64;break;case 268435456:h=134217728;break;default:h=0}if(h=(h&(C.suspendedLanes|c))!==0?0:h,h!==0&&h!==z.retryLane)throw z.retryLane=h,Ii(i,h),bn(C,i,h),VE}k.data==="$?"||Sp(),o=Wm(i,o,c)}else k.data==="$?"?(o.flags|=128,o.child=i.child,o=bj.bind(null,i),k._reactRetry=o,o=null):(i=z.treeContext,nn=gr(k.nextSibling),vn=o,it=!0,mr=null,Nr=!1,i!==null&&(Zn[Wn++]=ni,Zn[Wn++]=ri,Zn[Wn++]=Da,ni=i.id,ri=i.overflow,Da=o),o=qm(o,h.children),o.flags|=4096);return o}return g?(ji(),g=h.fallback,k=o.mode,z=i.child,K=z.sibling,h=Gi(z,{mode:"hidden",children:h.children}),h.subtreeFlags=z.subtreeFlags&31457280,K!==null?g=Gi(K,g):(g=Fa(g,k,c,null),g.flags|=2),g.return=o,h.return=o,h.sibling=g,o.child=h,h=g,g=o.child,k=i.child.memoizedState,k===null?k=Gm(c):(z=k.cachePool,z!==null?(K=Ht._currentValue,z=z.parent!==K?{parent:K,pool:K}:z):z=W_(),k={baseLanes:k.baseLanes|c,cachePool:z}),g.memoizedState=k,g.childLanes=Km(i,C,c),o.memoizedState=Fm,h):(Li(o),c=i.child,i=c.sibling,c=Gi(c,{mode:"visible",children:h.children}),c.return=o,c.sibling=null,i!==null&&(C=o.deletions,C===null?(o.deletions=[i],o.flags|=16):C.push(i)),o.child=c,o.memoizedState=null,c)}function qm(i,o){return o=Zm({mode:"visible",children:o},i.mode),o.return=i,i.child=o}function Zm(i,o){return _x(i,o,0,null)}function Wm(i,o,c){return ja(o,i.child,null,c),i=qm(o,o.pendingProps.children),i.flags|=2,o.memoizedState=null,i}function WE(i,o,c){i.lanes|=o;var h=i.alternate;h!==null&&(h.lanes|=o),Jm(i.return,o,c)}function Ym(i,o,c,h,g){var _=i.memoizedState;_===null?i.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:h,tail:c,tailMode:g}:(_.isBackwards=o,_.rendering=null,_.renderingStartTime=0,_.last=h,_.tail=c,_.tailMode=g)}function YE(i,o,c){var h=o.pendingProps,g=h.revealOrder,_=h.tail;if(rn(i,o,h.children,c),h=$t.current,(h&2)!==0)h=h&1|2,o.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=o.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&WE(i,c,o);else if(i.tag===19)WE(i,c,o);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break e;for(;i.sibling===null;){if(i.return===null||i.return===o)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}h&=1}switch(Te($t,h),g){case"forwards":for(c=o.child,g=null;c!==null;)i=c.alternate,i!==null&&ju(i)===null&&(g=c),c=c.sibling;c=g,c===null?(g=o.child,o.child=null):(g=c.sibling,c.sibling=null),Ym(o,!1,g,c,_);break;case"backwards":for(c=null,g=o.child,o.child=null;g!==null;){if(i=g.alternate,i!==null&&ju(i)===null){o.child=g;break}i=g.sibling,g.sibling=c,c=g,g=i}Ym(o,!0,c,null,_);break;case"together":Ym(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function oi(i,o,c){if(i!==null&&(o.dependencies=i.dependencies),Ki|=o.lanes,(c&o.childLanes)===0)if(i!==null){if(yl(i,o,c,!1),(c&o.childLanes)===0)return null}else return null;if(i!==null&&o.child!==i.child)throw Error(r(153));if(o.child!==null){for(i=o.child,c=Gi(i,i.pendingProps),o.child=c,c.return=o;i.sibling!==null;)i=i.sibling,c=c.sibling=Gi(i,i.pendingProps),c.return=o;c.sibling=null}return o.child}function Xm(i,o){return(i.lanes&o)!==0?!0:(i=i.dependencies,!!(i!==null&&qu(i)))}function aj(i,o,c){switch(o.tag){case 3:Dn(o,o.stateNode.containerInfo),zi(o,Ht,i.memoizedState.cache),al();break;case 27:case 5:ur(o);break;case 4:Dn(o,o.stateNode.containerInfo);break;case 10:zi(o,o.type,o.memoizedProps.value);break;case 13:var h=o.memoizedState;if(h!==null)return h.dehydrated!==null?(Li(o),o.flags|=128,null):(c&o.child.childLanes)!==0?ZE(i,o,c):(Li(o),i=oi(i,o,c),i!==null?i.sibling:null);Li(o);break;case 19:var g=(i.flags&128)!==0;if(h=(c&o.childLanes)!==0,h||(yl(i,o,c,!1),h=(c&o.childLanes)!==0),g){if(h)return YE(i,o,c);o.flags|=128}if(g=o.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),Te($t,$t.current),h)break;return null;case 22:case 23:return o.lanes=0,HE(i,o,c);case 24:zi(o,Ht,i.memoizedState.cache)}return oi(i,o,c)}function XE(i,o,c){if(i!==null)if(i.memoizedProps!==o.pendingProps)Yt=!0;else{if(!Xm(i,c)&&(o.flags&128)===0)return Yt=!1,aj(i,o,c);Yt=(i.flags&131072)!==0}else Yt=!1,it&&(o.flags&1048576)!==0&&j_(o,Ou,o.index);switch(o.lanes=0,o.tag){case 16:e:{i=o.pendingProps;var h=o.elementType,g=h._init;if(h=g(h._payload),o.type=h,typeof h=="function")dp(h)?(i=Ba(h,i),o.tag=1,o=KE(null,o,h,i,c)):(o.tag=0,o=Hm(null,o,h,i,c));else{if(h!=null){if(g=h.$$typeof,g===y){o.tag=11,o=BE(null,o,h,i,c);break e}else if(g===T){o.tag=14,o=UE(null,o,h,i,c);break e}}throw o=j(h)||h,Error(r(306,o,""))}}return o;case 0:return Hm(i,o,o.type,o.pendingProps,c);case 1:return h=o.type,g=Ba(h,o.pendingProps),KE(i,o,h,g,c);case 3:e:{if(Dn(o,o.stateNode.containerInfo),i===null)throw Error(r(387));var _=o.pendingProps;g=o.memoizedState,h=g.element,np(i,o),_l(o,_,null,c);var C=o.memoizedState;if(_=C.cache,zi(o,Ht,_),_!==g.cache&&ep(o,[Ht],c,!0),bl(),_=C.element,g.isDehydrated)if(g={element:_,isDehydrated:!1,cache:C.cache},o.updateQueue.baseState=g,o.memoizedState=g,o.flags&256){o=qE(i,o,_,c);break e}else if(_!==h){h=qn(Error(r(424)),o),ol(h),o=qE(i,o,_,c);break e}else for(nn=gr(o.stateNode.containerInfo.firstChild),vn=o,it=!0,mr=null,Nr=!0,c=F_(o,null,_,c),o.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if(al(),_===h){o=oi(i,o,c);break e}rn(i,o,_,c)}o=o.child}return o;case 26:return gl(i,o),i===null?(c=eS(o.type,null,o.pendingProps,null))?o.memoizedState=c:it||(c=o.type,i=o.pendingProps,h=cd(pt.current).createElement(c),h[un]=o,h[Tn]=i,an(h,c,i),Wt(h),o.stateNode=h):o.memoizedState=eS(o.type,i.memoizedProps,o.pendingProps,i.memoizedState),null;case 27:return ur(o),i===null&&it&&(h=o.stateNode=Xx(o.type,o.pendingProps,pt.current),vn=o,Nr=!0,nn=gr(h.firstChild)),h=o.pendingProps.children,i!==null||it?rn(i,o,h,c):o.child=ja(o,null,h,c),gl(i,o),o.child;case 5:return i===null&&it&&((g=h=nn)&&(h=jj(h,o.type,o.pendingProps,Nr),h!==null?(o.stateNode=h,vn=o,nn=gr(h.firstChild),Nr=!1,g=!0):g=!1),g||La(o)),ur(o),g=o.type,_=o.pendingProps,C=i!==null?i.memoizedProps:null,h=_.children,Pp(g,_)?h=null:C!==null&&Pp(g,C)&&(o.flags|=32),o.memoizedState!==null&&(g=wm(i,o,QL,null,null,c),jl._currentValue=g),gl(i,o),rn(i,o,h,c),o.child;case 6:return i===null&&it&&((i=c=nn)&&(c=Mj(c,o.pendingProps,Nr),c!==null?(o.stateNode=c,vn=o,nn=null,i=!0):i=!1),i||La(o)),null;case 13:return ZE(i,o,c);case 4:return Dn(o,o.stateNode.containerInfo),h=o.pendingProps,i===null?o.child=ja(o,null,h,c):rn(i,o,h,c),o.child;case 11:return BE(i,o,o.type,o.pendingProps,c);case 7:return rn(i,o,o.pendingProps,c),o.child;case 8:return rn(i,o,o.pendingProps.children,c),o.child;case 12:return rn(i,o,o.pendingProps.children,c),o.child;case 10:return h=o.pendingProps,zi(o,o.type,h.value),rn(i,o,h.children,c),o.child;case 9:return g=o.type._context,h=o.pendingProps.children,$a(o),g=dn(g),h=h(g),o.flags|=1,rn(i,o,h,c),o.child;case 14:return UE(i,o,o.type,o.pendingProps,c);case 15:return $E(i,o,o.type,o.pendingProps,c);case 19:return YE(i,o,c);case 22:return HE(i,o,c);case 24:return $a(o),h=dn(Ht),i===null?(g=Sm(),g===null&&(g=ft,_=Em(),g.pooledCache=_,_.refCount++,_!==null&&(g.pooledCacheLanes|=c),g=_),o.memoizedState={parent:h,cache:g},tp(o),zi(o,Ht,g)):((i.lanes&c)!==0&&(np(i,o),_l(o,null,null,c),bl()),g=i.memoizedState,_=o.memoizedState,g.parent!==h?(g={parent:h,cache:h},o.memoizedState=g,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=g),zi(o,Ht,h)):(h=_.cache,zi(o,Ht,h),h!==g.cache&&ep(o,[Ht],c,!0))),rn(i,o,o.pendingProps.children,c),o.child;case 29:throw o.pendingProps}throw Error(r(156,o.tag))}var Qm=_e(null),Ua=null,si=null;function zi(i,o,c){Te(Qm,o._currentValue),o._currentValue=c}function li(i){i._currentValue=Qm.current,Oe(Qm)}function Jm(i,o,c){for(;i!==null;){var h=i.alternate;if((i.childLanes&o)!==o?(i.childLanes|=o,h!==null&&(h.childLanes|=o)):h!==null&&(h.childLanes&o)!==o&&(h.childLanes|=o),i===c)break;i=i.return}}function ep(i,o,c,h){var g=i.child;for(g!==null&&(g.return=i);g!==null;){var _=g.dependencies;if(_!==null){var C=g.child;_=_.firstContext;e:for(;_!==null;){var k=_;_=g;for(var z=0;z<o.length;z++)if(k.context===o[z]){_.lanes|=c,k=_.alternate,k!==null&&(k.lanes|=c),Jm(_.return,c,i),h||(C=null);break e}_=k.next}}else if(g.tag===18){if(C=g.return,C===null)throw Error(r(341));C.lanes|=c,_=C.alternate,_!==null&&(_.lanes|=c),Jm(C,c,i),C=null}else C=g.child;if(C!==null)C.return=g;else for(C=g;C!==null;){if(C===i){C=null;break}if(g=C.sibling,g!==null){g.return=C.return,C=g;break}C=C.return}g=C}}function yl(i,o,c,h){i=null;for(var g=o,_=!1;g!==null;){if(!_){if((g.flags&524288)!==0)_=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var C=g.alternate;if(C===null)throw Error(r(387));if(C=C.memoizedProps,C!==null){var k=g.type;In(g.pendingProps.value,C.value)||(i!==null?i.push(k):i=[k])}}else if(g===Zt.current){if(C=g.alternate,C===null)throw Error(r(387));C.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(i!==null?i.push(jl):i=[jl])}g=g.return}i!==null&&ep(o,i,c,h),o.flags|=262144}function qu(i){for(i=i.firstContext;i!==null;){if(!In(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function $a(i){Ua=i,si=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function dn(i){return QE(Ua,i)}function Zu(i,o){return Ua===null&&$a(i),QE(i,o)}function QE(i,o){var c=o._currentValue;if(o={context:o,memoizedValue:c,next:null},si===null){if(i===null)throw Error(r(308));si=o,i.dependencies={lanes:0,firstContext:o},i.flags|=524288}else si=si.next=o;return c}var Vi=!1;function tp(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function np(i,o){i=i.updateQueue,o.updateQueue===i&&(o.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function Bi(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function Ui(i,o,c){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,(bt&2)!==0){var g=h.pending;return g===null?o.next=o:(o.next=g.next,g.next=o),h.pending=o,o=Cu(i),I_(i,null,c),o}return Ru(i,h,o,c),Cu(i)}function vl(i,o,c){if(o=o.updateQueue,o!==null&&(o=o.shared,(c&4194176)!==0)){var h=o.lanes;h&=i.pendingLanes,c|=h,o.lanes=c,U0(i,c)}}function rp(i,o){var c=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,c===h)){var g=null,_=null;if(c=c.firstBaseUpdate,c!==null){do{var C={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};_===null?g=_=C:_=_.next=C,c=c.next}while(c!==null);_===null?g=_=o:_=_.next=o}else g=_=o;c={baseState:h.baseState,firstBaseUpdate:g,lastBaseUpdate:_,shared:h.shared,callbacks:h.callbacks},i.updateQueue=c;return}i=c.lastBaseUpdate,i===null?c.firstBaseUpdate=o:i.next=o,c.lastBaseUpdate=o}var ip=!1;function bl(){if(ip){var i=Po;if(i!==null)throw i}}function _l(i,o,c,h){ip=!1;var g=i.updateQueue;Vi=!1;var _=g.firstBaseUpdate,C=g.lastBaseUpdate,k=g.shared.pending;if(k!==null){g.shared.pending=null;var z=k,K=z.next;z.next=null,C===null?_=K:C.next=K,C=z;var le=i.alternate;le!==null&&(le=le.updateQueue,k=le.lastBaseUpdate,k!==C&&(k===null?le.firstBaseUpdate=K:k.next=K,le.lastBaseUpdate=z))}if(_!==null){var me=g.baseState;C=0,le=K=z=null,k=_;do{var ne=k.lane&-536870913,se=ne!==k.lane;if(se?(nt&ne)===ne:(h&ne)===ne){ne!==0&&ne===Mo&&(ip=!0),le!==null&&(le=le.next={lane:0,tag:k.tag,payload:k.payload,callback:null,next:null});e:{var ke=i,He=k;ne=o;var Ct=c;switch(He.tag){case 1:if(ke=He.payload,typeof ke=="function"){me=ke.call(Ct,me,ne);break e}me=ke;break e;case 3:ke.flags=ke.flags&-65537|128;case 0:if(ke=He.payload,ne=typeof ke=="function"?ke.call(Ct,me,ne):ke,ne==null)break e;me=M({},me,ne);break e;case 2:Vi=!0}}ne=k.callback,ne!==null&&(i.flags|=64,se&&(i.flags|=8192),se=g.callbacks,se===null?g.callbacks=[ne]:se.push(ne))}else se={lane:ne,tag:k.tag,payload:k.payload,callback:k.callback,next:null},le===null?(K=le=se,z=me):le=le.next=se,C|=ne;if(k=k.next,k===null){if(k=g.shared.pending,k===null)break;se=k,k=se.next,se.next=null,g.lastBaseUpdate=se,g.shared.pending=null}}while(!0);le===null&&(z=me),g.baseState=z,g.firstBaseUpdate=K,g.lastBaseUpdate=le,_===null&&(g.shared.lanes=0),Ki|=C,i.lanes=C,i.memoizedState=me}}function JE(i,o){if(typeof i!="function")throw Error(r(191,i));i.call(o)}function ex(i,o){var c=i.callbacks;if(c!==null)for(i.callbacks=null,i=0;i<c.length;i++)JE(c[i],o)}function El(i,o){try{var c=o.updateQueue,h=c!==null?c.lastEffect:null;if(h!==null){var g=h.next;c=g;do{if((c.tag&i)===i){h=void 0;var _=c.create,C=c.inst;h=_(),C.destroy=h}c=c.next}while(c!==g)}}catch(k){dt(o,o.return,k)}}function $i(i,o,c){try{var h=o.updateQueue,g=h!==null?h.lastEffect:null;if(g!==null){var _=g.next;h=_;do{if((h.tag&i)===i){var C=h.inst,k=C.destroy;if(k!==void 0){C.destroy=void 0,g=o;var z=c;try{k()}catch(K){dt(g,z,K)}}}h=h.next}while(h!==_)}}catch(K){dt(o,o.return,K)}}function tx(i){var o=i.updateQueue;if(o!==null){var c=i.stateNode;try{ex(o,c)}catch(h){dt(i,i.return,h)}}}function nx(i,o,c){c.props=Ba(i.type,i.memoizedProps),c.state=i.memoizedState;try{c.componentWillUnmount()}catch(h){dt(i,o,h)}}function Ha(i,o){try{var c=i.ref;if(c!==null){var h=i.stateNode;switch(i.tag){case 26:case 27:case 5:var g=h;break;default:g=h}typeof c=="function"?i.refCleanup=c(g):c.current=g}}catch(_){dt(i,o,_)}}function Ln(i,o){var c=i.ref,h=i.refCleanup;if(c!==null)if(typeof h=="function")try{h()}catch(g){dt(i,o,g)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(g){dt(i,o,g)}else c.current=null}function rx(i){var o=i.type,c=i.memoizedProps,h=i.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":c.autoFocus&&h.focus();break e;case"img":c.src?h.src=c.src:c.srcSet&&(h.srcset=c.srcSet)}}catch(g){dt(i,i.return,g)}}function ix(i,o,c){try{var h=i.stateNode;Oj(h,i.type,c,o),h[Tn]=o}catch(g){dt(i,i.return,g)}}function ax(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27||i.tag===4}function ap(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||ax(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==27&&i.tag!==18;){if(i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function op(i,o,c){var h=i.tag;if(h===5||h===6)i=i.stateNode,o?c.nodeType===8?c.parentNode.insertBefore(i,o):c.insertBefore(i,o):(c.nodeType===8?(o=c.parentNode,o.insertBefore(i,c)):(o=c,o.appendChild(i)),c=c._reactRootContainer,c!=null||o.onclick!==null||(o.onclick=ld));else if(h!==4&&h!==27&&(i=i.child,i!==null))for(op(i,o,c),i=i.sibling;i!==null;)op(i,o,c),i=i.sibling}function Wu(i,o,c){var h=i.tag;if(h===5||h===6)i=i.stateNode,o?c.insertBefore(i,o):c.appendChild(i);else if(h!==4&&h!==27&&(i=i.child,i!==null))for(Wu(i,o,c),i=i.sibling;i!==null;)Wu(i,o,c),i=i.sibling}var ci=!1,Tt=!1,sp=!1,ox=typeof WeakSet=="function"?WeakSet:Set,Xt=null,sx=!1;function oj(i,o){if(i=i.containerInfo,jp=pd,i=A_(i),cm(i)){if("selectionStart"in i)var c={start:i.selectionStart,end:i.selectionEnd};else e:{c=(c=i.ownerDocument)&&c.defaultView||window;var h=c.getSelection&&c.getSelection();if(h&&h.rangeCount!==0){c=h.anchorNode;var g=h.anchorOffset,_=h.focusNode;h=h.focusOffset;try{c.nodeType,_.nodeType}catch{c=null;break e}var C=0,k=-1,z=-1,K=0,le=0,me=i,ne=null;t:for(;;){for(var se;me!==c||g!==0&&me.nodeType!==3||(k=C+g),me!==_||h!==0&&me.nodeType!==3||(z=C+h),me.nodeType===3&&(C+=me.nodeValue.length),(se=me.firstChild)!==null;)ne=me,me=se;for(;;){if(me===i)break t;if(ne===c&&++K===g&&(k=C),ne===_&&++le===h&&(z=C),(se=me.nextSibling)!==null)break;me=ne,ne=me.parentNode}me=se}c=k===-1||z===-1?null:{start:k,end:z}}else c=null}c=c||{start:0,end:0}}else c=null;for(Mp={focusedElem:i,selectionRange:c},pd=!1,Xt=o;Xt!==null;)if(o=Xt,i=o.child,(o.subtreeFlags&1028)!==0&&i!==null)i.return=o,Xt=i;else for(;Xt!==null;){switch(o=Xt,_=o.alternate,i=o.flags,o.tag){case 0:break;case 11:case 15:break;case 1:if((i&1024)!==0&&_!==null){i=void 0,c=o,g=_.memoizedProps,_=_.memoizedState,h=c.stateNode;try{var ke=Ba(c.type,g,c.elementType===c.type);i=h.getSnapshotBeforeUpdate(ke,_),h.__reactInternalSnapshotBeforeUpdate=i}catch(He){dt(c,c.return,He)}}break;case 3:if((i&1024)!==0){if(i=o.stateNode.containerInfo,c=i.nodeType,c===9)Bp(i);else if(c===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":Bp(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=o.sibling,i!==null){i.return=o.return,Xt=i;break}Xt=o.return}return ke=sx,sx=!1,ke}function lx(i,o,c){var h=c.flags;switch(c.tag){case 0:case 11:case 15:di(i,c),h&4&&El(5,c);break;case 1:if(di(i,c),h&4)if(i=c.stateNode,o===null)try{i.componentDidMount()}catch(k){dt(c,c.return,k)}else{var g=Ba(c.type,o.memoizedProps);o=o.memoizedState;try{i.componentDidUpdate(g,o,i.__reactInternalSnapshotBeforeUpdate)}catch(k){dt(c,c.return,k)}}h&64&&tx(c),h&512&&Ha(c,c.return);break;case 3:if(di(i,c),h&64&&(h=c.updateQueue,h!==null)){if(i=null,c.child!==null)switch(c.child.tag){case 27:case 5:i=c.child.stateNode;break;case 1:i=c.child.stateNode}try{ex(h,i)}catch(k){dt(c,c.return,k)}}break;case 26:di(i,c),h&512&&Ha(c,c.return);break;case 27:case 5:di(i,c),o===null&&h&4&&rx(c),h&512&&Ha(c,c.return);break;case 12:di(i,c);break;case 13:di(i,c),h&4&&dx(i,c);break;case 22:if(g=c.memoizedState!==null||ci,!g){o=o!==null&&o.memoizedState!==null||Tt;var _=ci,C=Tt;ci=g,(Tt=o)&&!C?Hi(i,c,(c.subtreeFlags&8772)!==0):di(i,c),ci=_,Tt=C}h&512&&(c.memoizedProps.mode==="manual"?Ha(c,c.return):Ln(c,c.return));break;default:di(i,c)}}function cx(i){var o=i.alternate;o!==null&&(i.alternate=null,cx(o)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(o=i.stateNode,o!==null&&qh(o)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var Mt=null,jn=!1;function ui(i,o,c){for(c=c.child;c!==null;)ux(i,o,c),c=c.sibling}function ux(i,o,c){if(tn&&typeof tn.onCommitFiberUnmount=="function")try{tn.onCommitFiberUnmount(Jr,c)}catch{}switch(c.tag){case 26:Tt||Ln(c,o),ui(i,o,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:Tt||Ln(c,o);var h=Mt,g=jn;for(Mt=c.stateNode,ui(i,o,c),c=c.stateNode,o=c.attributes;o.length;)c.removeAttributeNode(o[0]);qh(c),Mt=h,jn=g;break;case 5:Tt||Ln(c,o);case 6:g=Mt;var _=jn;if(Mt=null,ui(i,o,c),Mt=g,jn=_,Mt!==null)if(jn)try{i=Mt,h=c.stateNode,i.nodeType===8?i.parentNode.removeChild(h):i.removeChild(h)}catch(C){dt(c,o,C)}else try{Mt.removeChild(c.stateNode)}catch(C){dt(c,o,C)}break;case 18:Mt!==null&&(jn?(o=Mt,c=c.stateNode,o.nodeType===8?Vp(o.parentNode,c):o.nodeType===1&&Vp(o,c),Vl(o)):Vp(Mt,c.stateNode));break;case 4:h=Mt,g=jn,Mt=c.stateNode.containerInfo,jn=!0,ui(i,o,c),Mt=h,jn=g;break;case 0:case 11:case 14:case 15:Tt||$i(2,c,o),Tt||$i(4,c,o),ui(i,o,c);break;case 1:Tt||(Ln(c,o),h=c.stateNode,typeof h.componentWillUnmount=="function"&&nx(c,o,h)),ui(i,o,c);break;case 21:ui(i,o,c);break;case 22:Tt||Ln(c,o),Tt=(h=Tt)||c.memoizedState!==null,ui(i,o,c),Tt=h;break;default:ui(i,o,c)}}function dx(i,o){if(o.memoizedState===null&&(i=o.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{Vl(i)}catch(c){dt(o,o.return,c)}}function sj(i){switch(i.tag){case 13:case 19:var o=i.stateNode;return o===null&&(o=i.stateNode=new ox),o;case 22:return i=i.stateNode,o=i._retryCache,o===null&&(o=i._retryCache=new ox),o;default:throw Error(r(435,i.tag))}}function lp(i,o){var c=sj(i);o.forEach(function(h){var g=_j.bind(null,i,h);c.has(h)||(c.add(h),h.then(g,g))})}function Xn(i,o){var c=o.deletions;if(c!==null)for(var h=0;h<c.length;h++){var g=c[h],_=i,C=o,k=C;e:for(;k!==null;){switch(k.tag){case 27:case 5:Mt=k.stateNode,jn=!1;break e;case 3:Mt=k.stateNode.containerInfo,jn=!0;break e;case 4:Mt=k.stateNode.containerInfo,jn=!0;break e}k=k.return}if(Mt===null)throw Error(r(160));ux(_,C,g),Mt=null,jn=!1,_=g.alternate,_!==null&&(_.return=null),g.return=null}if(o.subtreeFlags&13878)for(o=o.child;o!==null;)fx(o,i),o=o.sibling}var pr=null;function fx(i,o){var c=i.alternate,h=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Xn(o,i),Qn(i),h&4&&($i(3,i,i.return),El(3,i),$i(5,i,i.return));break;case 1:Xn(o,i),Qn(i),h&512&&(Tt||c===null||Ln(c,c.return)),h&64&&ci&&(i=i.updateQueue,i!==null&&(h=i.callbacks,h!==null&&(c=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=c===null?h:c.concat(h))));break;case 26:var g=pr;if(Xn(o,i),Qn(i),h&512&&(Tt||c===null||Ln(c,c.return)),h&4){var _=c!==null?c.memoizedState:null;if(h=i.memoizedState,c===null)if(h===null)if(i.stateNode===null){e:{h=i.type,c=i.memoizedProps,g=g.ownerDocument||g;t:switch(h){case"title":_=g.getElementsByTagName("title")[0],(!_||_[qs]||_[un]||_.namespaceURI==="http://www.w3.org/2000/svg"||_.hasAttribute("itemprop"))&&(_=g.createElement(h),g.head.insertBefore(_,g.querySelector("head > title"))),an(_,h,c),_[un]=i,Wt(_),h=_;break e;case"link":var C=rS("link","href",g).get(h+(c.href||""));if(C){for(var k=0;k<C.length;k++)if(_=C[k],_.getAttribute("href")===(c.href==null?null:c.href)&&_.getAttribute("rel")===(c.rel==null?null:c.rel)&&_.getAttribute("title")===(c.title==null?null:c.title)&&_.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){C.splice(k,1);break t}}_=g.createElement(h),an(_,h,c),g.head.appendChild(_);break;case"meta":if(C=rS("meta","content",g).get(h+(c.content||""))){for(k=0;k<C.length;k++)if(_=C[k],_.getAttribute("content")===(c.content==null?null:""+c.content)&&_.getAttribute("name")===(c.name==null?null:c.name)&&_.getAttribute("property")===(c.property==null?null:c.property)&&_.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&_.getAttribute("charset")===(c.charSet==null?null:c.charSet)){C.splice(k,1);break t}}_=g.createElement(h),an(_,h,c),g.head.appendChild(_);break;default:throw Error(r(468,h))}_[un]=i,Wt(_),h=_}i.stateNode=h}else iS(g,i.type,i.stateNode);else i.stateNode=nS(g,h,i.memoizedProps);else _!==h?(_===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):_.count--,h===null?iS(g,i.type,i.stateNode):nS(g,h,i.memoizedProps)):h===null&&i.stateNode!==null&&ix(i,i.memoizedProps,c.memoizedProps)}break;case 27:if(h&4&&i.alternate===null){g=i.stateNode,_=i.memoizedProps;try{for(var z=g.firstChild;z;){var K=z.nextSibling,le=z.nodeName;z[qs]||le==="HEAD"||le==="BODY"||le==="SCRIPT"||le==="STYLE"||le==="LINK"&&z.rel.toLowerCase()==="stylesheet"||g.removeChild(z),z=K}for(var me=i.type,ne=g.attributes;ne.length;)g.removeAttributeNode(ne[0]);an(g,me,_),g[un]=i,g[Tn]=_}catch(ke){dt(i,i.return,ke)}}case 5:if(Xn(o,i),Qn(i),h&512&&(Tt||c===null||Ln(c,c.return)),i.flags&32){g=i.stateNode;try{Ao(g,"")}catch(ke){dt(i,i.return,ke)}}h&4&&i.stateNode!=null&&(g=i.memoizedProps,ix(i,g,c!==null?c.memoizedProps:g)),h&1024&&(sp=!0);break;case 6:if(Xn(o,i),Qn(i),h&4){if(i.stateNode===null)throw Error(r(162));h=i.memoizedProps,c=i.stateNode;try{c.nodeValue=h}catch(ke){dt(i,i.return,ke)}}break;case 3:if(fd=null,g=pr,pr=ud(o.containerInfo),Xn(o,i),pr=g,Qn(i),h&4&&c!==null&&c.memoizedState.isDehydrated)try{Vl(o.containerInfo)}catch(ke){dt(i,i.return,ke)}sp&&(sp=!1,hx(i));break;case 4:h=pr,pr=ud(i.stateNode.containerInfo),Xn(o,i),Qn(i),pr=h;break;case 12:Xn(o,i),Qn(i);break;case 13:Xn(o,i),Qn(i),i.child.flags&8192&&i.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(yp=be()),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,lp(i,h)));break;case 22:if(h&512&&(Tt||c===null||Ln(c,c.return)),z=i.memoizedState!==null,K=c!==null&&c.memoizedState!==null,le=ci,me=Tt,ci=le||z,Tt=me||K,Xn(o,i),Tt=me,ci=le,Qn(i),o=i.stateNode,o._current=i,o._visibility&=-3,o._visibility|=o._pendingVisibility&2,h&8192&&(o._visibility=z?o._visibility&-2:o._visibility|1,z&&(o=ci||Tt,c===null||K||o||Uo(i)),i.memoizedProps===null||i.memoizedProps.mode!=="manual"))e:for(c=null,o=i;;){if(o.tag===5||o.tag===26||o.tag===27){if(c===null){K=c=o;try{if(g=K.stateNode,z)_=g.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none";else{C=K.stateNode,k=K.memoizedProps.style;var se=k!=null&&k.hasOwnProperty("display")?k.display:null;C.style.display=se==null||typeof se=="boolean"?"":(""+se).trim()}}catch(ke){dt(K,K.return,ke)}}}else if(o.tag===6){if(c===null){K=o;try{K.stateNode.nodeValue=z?"":K.memoizedProps}catch(ke){dt(K,K.return,ke)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===i)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break e;for(;o.sibling===null;){if(o.return===null||o.return===i)break e;c===o&&(c=null),o=o.return}c===o&&(c=null),o.sibling.return=o.return,o=o.sibling}h&4&&(h=i.updateQueue,h!==null&&(c=h.retryQueue,c!==null&&(h.retryQueue=null,lp(i,c))));break;case 19:Xn(o,i),Qn(i),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,lp(i,h)));break;case 21:break;default:Xn(o,i),Qn(i)}}function Qn(i){var o=i.flags;if(o&2){try{if(i.tag!==27){e:{for(var c=i.return;c!==null;){if(ax(c)){var h=c;break e}c=c.return}throw Error(r(160))}switch(h.tag){case 27:var g=h.stateNode,_=ap(i);Wu(i,_,g);break;case 5:var C=h.stateNode;h.flags&32&&(Ao(C,""),h.flags&=-33);var k=ap(i);Wu(i,k,C);break;case 3:case 4:var z=h.stateNode.containerInfo,K=ap(i);op(i,K,z);break;default:throw Error(r(161))}}}catch(le){dt(i,i.return,le)}i.flags&=-3}o&4096&&(i.flags&=-4097)}function hx(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var o=i;hx(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),i=i.sibling}}function di(i,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)lx(i,o.alternate,o),o=o.sibling}function Uo(i){for(i=i.child;i!==null;){var o=i;switch(o.tag){case 0:case 11:case 14:case 15:$i(4,o,o.return),Uo(o);break;case 1:Ln(o,o.return);var c=o.stateNode;typeof c.componentWillUnmount=="function"&&nx(o,o.return,c),Uo(o);break;case 26:case 27:case 5:Ln(o,o.return),Uo(o);break;case 22:Ln(o,o.return),o.memoizedState===null&&Uo(o);break;default:Uo(o)}i=i.sibling}}function Hi(i,o,c){for(c=c&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var h=o.alternate,g=i,_=o,C=_.flags;switch(_.tag){case 0:case 11:case 15:Hi(g,_,c),El(4,_);break;case 1:if(Hi(g,_,c),h=_,g=h.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(K){dt(h,h.return,K)}if(h=_,g=h.updateQueue,g!==null){var k=h.stateNode;try{var z=g.shared.hiddenCallbacks;if(z!==null)for(g.shared.hiddenCallbacks=null,g=0;g<z.length;g++)JE(z[g],k)}catch(K){dt(h,h.return,K)}}c&&C&64&&tx(_),Ha(_,_.return);break;case 26:case 27:case 5:Hi(g,_,c),c&&h===null&&C&4&&rx(_),Ha(_,_.return);break;case 12:Hi(g,_,c);break;case 13:Hi(g,_,c),c&&C&4&&dx(g,_);break;case 22:_.memoizedState===null&&Hi(g,_,c),Ha(_,_.return);break;default:Hi(g,_,c)}o=o.sibling}}function cp(i,o){var c=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),i=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(i=o.memoizedState.cachePool.pool),i!==c&&(i!=null&&i.refCount++,c!=null&&dl(c))}function up(i,o){i=null,o.alternate!==null&&(i=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==i&&(o.refCount++,i!=null&&dl(i))}function Fi(i,o,c,h){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)mx(i,o,c,h),o=o.sibling}function mx(i,o,c,h){var g=o.flags;switch(o.tag){case 0:case 11:case 15:Fi(i,o,c,h),g&2048&&El(9,o);break;case 3:Fi(i,o,c,h),g&2048&&(i=null,o.alternate!==null&&(i=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==i&&(o.refCount++,i!=null&&dl(i)));break;case 12:if(g&2048){Fi(i,o,c,h),i=o.stateNode;try{var _=o.memoizedProps,C=_.id,k=_.onPostCommit;typeof k=="function"&&k(C,o.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(z){dt(o,o.return,z)}}else Fi(i,o,c,h);break;case 23:break;case 22:_=o.stateNode,o.memoizedState!==null?_._visibility&4?Fi(i,o,c,h):xl(i,o):_._visibility&4?Fi(i,o,c,h):(_._visibility|=4,$o(i,o,c,h,(o.subtreeFlags&10256)!==0)),g&2048&&cp(o.alternate,o);break;case 24:Fi(i,o,c,h),g&2048&&up(o.alternate,o);break;default:Fi(i,o,c,h)}}function $o(i,o,c,h,g){for(g=g&&(o.subtreeFlags&10256)!==0,o=o.child;o!==null;){var _=i,C=o,k=c,z=h,K=C.flags;switch(C.tag){case 0:case 11:case 15:$o(_,C,k,z,g),El(8,C);break;case 23:break;case 22:var le=C.stateNode;C.memoizedState!==null?le._visibility&4?$o(_,C,k,z,g):xl(_,C):(le._visibility|=4,$o(_,C,k,z,g)),g&&K&2048&&cp(C.alternate,C);break;case 24:$o(_,C,k,z,g),g&&K&2048&&up(C.alternate,C);break;default:$o(_,C,k,z,g)}o=o.sibling}}function xl(i,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var c=i,h=o,g=h.flags;switch(h.tag){case 22:xl(c,h),g&2048&&cp(h.alternate,h);break;case 24:xl(c,h),g&2048&&up(h.alternate,h);break;default:xl(c,h)}o=o.sibling}}var Sl=8192;function Ho(i){if(i.subtreeFlags&Sl)for(i=i.child;i!==null;)px(i),i=i.sibling}function px(i){switch(i.tag){case 26:Ho(i),i.flags&Sl&&i.memoizedState!==null&&Wj(pr,i.memoizedState,i.memoizedProps);break;case 5:Ho(i);break;case 3:case 4:var o=pr;pr=ud(i.stateNode.containerInfo),Ho(i),pr=o;break;case 22:i.memoizedState===null&&(o=i.alternate,o!==null&&o.memoizedState!==null?(o=Sl,Sl=16777216,Ho(i),Sl=o):Ho(i));break;default:Ho(i)}}function gx(i){var o=i.alternate;if(o!==null&&(i=o.child,i!==null)){o.child=null;do o=i.sibling,i.sibling=null,i=o;while(i!==null)}}function Al(i){var o=i.deletions;if((i.flags&16)!==0){if(o!==null)for(var c=0;c<o.length;c++){var h=o[c];Xt=h,vx(h,i)}gx(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)yx(i),i=i.sibling}function yx(i){switch(i.tag){case 0:case 11:case 15:Al(i),i.flags&2048&&$i(9,i,i.return);break;case 3:Al(i);break;case 12:Al(i);break;case 22:var o=i.stateNode;i.memoizedState!==null&&o._visibility&4&&(i.return===null||i.return.tag!==13)?(o._visibility&=-5,Yu(i)):Al(i);break;default:Al(i)}}function Yu(i){var o=i.deletions;if((i.flags&16)!==0){if(o!==null)for(var c=0;c<o.length;c++){var h=o[c];Xt=h,vx(h,i)}gx(i)}for(i=i.child;i!==null;){switch(o=i,o.tag){case 0:case 11:case 15:$i(8,o,o.return),Yu(o);break;case 22:c=o.stateNode,c._visibility&4&&(c._visibility&=-5,Yu(o));break;default:Yu(o)}i=i.sibling}}function vx(i,o){for(;Xt!==null;){var c=Xt;switch(c.tag){case 0:case 11:case 15:$i(8,c,o);break;case 23:case 22:if(c.memoizedState!==null&&c.memoizedState.cachePool!==null){var h=c.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:dl(c.memoizedState.cache)}if(h=c.child,h!==null)h.return=c,Xt=h;else e:for(c=i;Xt!==null;){h=Xt;var g=h.sibling,_=h.return;if(cx(h),h===c){Xt=null;break e}if(g!==null){g.return=_,Xt=g;break e}Xt=_}}}function lj(i,o,c,h){this.tag=i,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Jn(i,o,c,h){return new lj(i,o,c,h)}function dp(i){return i=i.prototype,!(!i||!i.isReactComponent)}function Gi(i,o){var c=i.alternate;return c===null?(c=Jn(i.tag,o,i.key,i.mode),c.elementType=i.elementType,c.type=i.type,c.stateNode=i.stateNode,c.alternate=i,i.alternate=c):(c.pendingProps=o,c.type=i.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=i.flags&31457280,c.childLanes=i.childLanes,c.lanes=i.lanes,c.child=i.child,c.memoizedProps=i.memoizedProps,c.memoizedState=i.memoizedState,c.updateQueue=i.updateQueue,o=i.dependencies,c.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},c.sibling=i.sibling,c.index=i.index,c.ref=i.ref,c.refCleanup=i.refCleanup,c}function bx(i,o){i.flags&=31457282;var c=i.alternate;return c===null?(i.childLanes=0,i.lanes=o,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=c.childLanes,i.lanes=c.lanes,i.child=c.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=c.memoizedProps,i.memoizedState=c.memoizedState,i.updateQueue=c.updateQueue,i.type=c.type,o=c.dependencies,i.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),i}function Xu(i,o,c,h,g,_){var C=0;if(h=i,typeof i=="function")dp(i)&&(C=1);else if(typeof i=="string")C=qj(i,c,$e.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case d:return Fa(c.children,g,_,o);case f:C=8,g|=24;break;case m:return i=Jn(12,c,o,g|2),i.elementType=m,i.lanes=_,i;case E:return i=Jn(13,c,o,g),i.elementType=E,i.lanes=_,i;case A:return i=Jn(19,c,o,g),i.elementType=A,i.lanes=_,i;case R:return _x(c,g,_,o);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case p:case x:C=10;break e;case v:C=9;break e;case y:C=11;break e;case T:C=14;break e;case w:C=16,h=null;break e}C=29,c=Error(r(130,i===null?"null":typeof i,"")),h=null}return o=Jn(C,c,o,g),o.elementType=i,o.type=h,o.lanes=_,o}function Fa(i,o,c,h){return i=Jn(7,i,h,o),i.lanes=c,i}function _x(i,o,c,h){i=Jn(22,i,h,o),i.elementType=R,i.lanes=c;var g={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var _=g._current;if(_===null)throw Error(r(456));if((g._pendingVisibility&2)===0){var C=Ii(_,2);C!==null&&(g._pendingVisibility|=2,bn(C,_,2))}},attach:function(){var _=g._current;if(_===null)throw Error(r(456));if((g._pendingVisibility&2)!==0){var C=Ii(_,2);C!==null&&(g._pendingVisibility&=-3,bn(C,_,2))}}};return i.stateNode=g,i}function fp(i,o,c){return i=Jn(6,i,null,o),i.lanes=c,i}function hp(i,o,c){return o=Jn(4,i.children!==null?i.children:[],i.key,o),o.lanes=c,o.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},o}function fi(i){i.flags|=4}function Ex(i,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!aS(o)){if(o=Yn.current,o!==null&&((nt&4194176)===nt?Or!==null:(nt&62914560)!==nt&&(nt&536870912)===0||o!==Or))throw ll=vm,z_;i.flags|=8192}}function Qu(i,o){o!==null&&(i.flags|=4),i.flags&16384&&(o=i.tag!==22?V0():536870912,i.lanes|=o,Go|=o)}function wl(i,o){if(!it)switch(i.tailMode){case"hidden":o=i.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?i.tail=null:c.sibling=null;break;case"collapsed":c=i.tail;for(var h=null;c!==null;)c.alternate!==null&&(h=c),c=c.sibling;h===null?o||i.tail===null?i.tail=null:i.tail.sibling=null:h.sibling=null}}function vt(i){var o=i.alternate!==null&&i.alternate.child===i.child,c=0,h=0;if(o)for(var g=i.child;g!==null;)c|=g.lanes|g.childLanes,h|=g.subtreeFlags&31457280,h|=g.flags&31457280,g.return=i,g=g.sibling;else for(g=i.child;g!==null;)c|=g.lanes|g.childLanes,h|=g.subtreeFlags,h|=g.flags,g.return=i,g=g.sibling;return i.subtreeFlags|=h,i.childLanes=c,o}function cj(i,o,c){var h=o.pendingProps;switch(gm(o),o.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vt(o),null;case 1:return vt(o),null;case 3:return c=o.stateNode,h=null,i!==null&&(h=i.memoizedState.cache),o.memoizedState.cache!==h&&(o.flags|=2048),li(Ht),An(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(i===null||i.child===null)&&(il(o)?fi(o):i===null||i.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,mr!==null&&(Ep(mr),mr=null))),vt(o),null;case 26:return c=o.memoizedState,i===null?(fi(o),c!==null?(vt(o),Ex(o,c)):(vt(o),o.flags&=-16777217)):c?c!==i.memoizedState?(fi(o),vt(o),Ex(o,c)):(vt(o),o.flags&=-16777217):(i.memoizedProps!==h&&fi(o),vt(o),o.flags&=-16777217),null;case 27:Aa(o),c=pt.current;var g=o.type;if(i!==null&&o.stateNode!=null)i.memoizedProps!==h&&fi(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return vt(o),null}i=$e.current,il(o)?M_(o):(i=Xx(g,h,c),o.stateNode=i,fi(o))}return vt(o),null;case 5:if(Aa(o),c=o.type,i!==null&&o.stateNode!=null)i.memoizedProps!==h&&fi(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return vt(o),null}if(i=$e.current,il(o))M_(o);else{switch(g=cd(pt.current),i){case 1:i=g.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:i=g.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":i=g.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":i=g.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":i=g.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof h.is=="string"?g.createElement("select",{is:h.is}):g.createElement("select"),h.multiple?i.multiple=!0:h.size&&(i.size=h.size);break;default:i=typeof h.is=="string"?g.createElement(c,{is:h.is}):g.createElement(c)}}i[un]=o,i[Tn]=h;e:for(g=o.child;g!==null;){if(g.tag===5||g.tag===6)i.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===o)break e;for(;g.sibling===null;){if(g.return===null||g.return===o)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}o.stateNode=i;e:switch(an(i,c,h),c){case"button":case"input":case"select":case"textarea":i=!!h.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&fi(o)}}return vt(o),o.flags&=-16777217,null;case 6:if(i&&o.stateNode!=null)i.memoizedProps!==h&&fi(o);else{if(typeof h!="string"&&o.stateNode===null)throw Error(r(166));if(i=pt.current,il(o)){if(i=o.stateNode,c=o.memoizedProps,h=null,g=vn,g!==null)switch(g.tag){case 27:case 5:h=g.memoizedProps}i[un]=o,i=!!(i.nodeValue===c||h!==null&&h.suppressHydrationWarning===!0||Gx(i.nodeValue,c)),i||La(o)}else i=cd(i).createTextNode(h),i[un]=o,o.stateNode=i}return vt(o),null;case 13:if(h=o.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(g=il(o),h!==null&&h.dehydrated!==null){if(i===null){if(!g)throw Error(r(318));if(g=o.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(r(317));g[un]=o}else al(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;vt(o),g=!1}else mr!==null&&(Ep(mr),mr=null),g=!0;if(!g)return o.flags&256?(ii(o),o):(ii(o),null)}if(ii(o),(o.flags&128)!==0)return o.lanes=c,o;if(c=h!==null,i=i!==null&&i.memoizedState!==null,c){h=o.child,g=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(g=h.alternate.memoizedState.cachePool.pool);var _=null;h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(_=h.memoizedState.cachePool.pool),_!==g&&(h.flags|=2048)}return c!==i&&c&&(o.child.flags|=8192),Qu(o,o.updateQueue),vt(o),null;case 4:return An(),i===null&&Dp(o.stateNode.containerInfo),vt(o),null;case 10:return li(o.type),vt(o),null;case 19:if(Oe($t),g=o.memoizedState,g===null)return vt(o),null;if(h=(o.flags&128)!==0,_=g.rendering,_===null)if(h)wl(g,!1);else{if(Rt!==0||i!==null&&(i.flags&128)!==0)for(i=o.child;i!==null;){if(_=ju(i),_!==null){for(o.flags|=128,wl(g,!1),i=_.updateQueue,o.updateQueue=i,Qu(o,i),o.subtreeFlags=0,i=c,c=o.child;c!==null;)bx(c,i),c=c.sibling;return Te($t,$t.current&1|2),o.child}i=i.sibling}g.tail!==null&&be()>Ju&&(o.flags|=128,h=!0,wl(g,!1),o.lanes=4194304)}else{if(!h)if(i=ju(_),i!==null){if(o.flags|=128,h=!0,i=i.updateQueue,o.updateQueue=i,Qu(o,i),wl(g,!0),g.tail===null&&g.tailMode==="hidden"&&!_.alternate&&!it)return vt(o),null}else 2*be()-g.renderingStartTime>Ju&&c!==536870912&&(o.flags|=128,h=!0,wl(g,!1),o.lanes=4194304);g.isBackwards?(_.sibling=o.child,o.child=_):(i=g.last,i!==null?i.sibling=_:o.child=_,g.last=_)}return g.tail!==null?(o=g.tail,g.rendering=o,g.tail=o.sibling,g.renderingStartTime=be(),o.sibling=null,i=$t.current,Te($t,h?i&1|2:i&1),o):(vt(o),null);case 22:case 23:return ii(o),_m(),h=o.memoizedState!==null,i!==null?i.memoizedState!==null!==h&&(o.flags|=8192):h&&(o.flags|=8192),h?(c&536870912)!==0&&(o.flags&128)===0&&(vt(o),o.subtreeFlags&6&&(o.flags|=8192)):vt(o),c=o.updateQueue,c!==null&&Qu(o,c.retryQueue),c=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),h=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),h!==c&&(o.flags|=2048),i!==null&&Oe(Ma),null;case 24:return c=null,i!==null&&(c=i.memoizedState.cache),o.memoizedState.cache!==c&&(o.flags|=2048),li(Ht),vt(o),null;case 25:return null}throw Error(r(156,o.tag))}function uj(i,o){switch(gm(o),o.tag){case 1:return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 3:return li(Ht),An(),i=o.flags,(i&65536)!==0&&(i&128)===0?(o.flags=i&-65537|128,o):null;case 26:case 27:case 5:return Aa(o),null;case 13:if(ii(o),i=o.memoizedState,i!==null&&i.dehydrated!==null){if(o.alternate===null)throw Error(r(340));al()}return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 19:return Oe($t),null;case 4:return An(),null;case 10:return li(o.type),null;case 22:case 23:return ii(o),_m(),i!==null&&Oe(Ma),i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 24:return li(Ht),null;case 25:return null;default:return null}}function xx(i,o){switch(gm(o),o.tag){case 3:li(Ht),An();break;case 26:case 27:case 5:Aa(o);break;case 4:An();break;case 13:ii(o);break;case 19:Oe($t);break;case 10:li(o.type);break;case 22:case 23:ii(o),_m(),i!==null&&Oe(Ma);break;case 24:li(Ht)}}var dj={getCacheForType:function(i){var o=dn(Ht),c=o.data.get(i);return c===void 0&&(c=i(),o.data.set(i,c)),c}},fj=typeof WeakMap=="function"?WeakMap:Map,bt=0,ft=null,Je=null,nt=0,ht=0,Mn=null,hi=!1,Fo=!1,mp=!1,mi=0,Rt=0,Ki=0,Ga=0,pp=0,er=0,Go=0,Tl=null,Dr=null,gp=!1,yp=0,Ju=1/0,ed=null,qi=null,td=!1,Ka=null,Rl=0,vp=0,bp=null,Cl=0,_p=null;function Pn(){if((bt&2)!==0&&nt!==0)return nt&-nt;if(P.T!==null){var i=Mo;return i!==0?i:Cp()}return H0()}function Sx(){er===0&&(er=(nt&536870912)===0||it?z0():536870912);var i=Yn.current;return i!==null&&(i.flags|=32),er}function bn(i,o,c){(i===ft&&ht===2||i.cancelPendingCommit!==null)&&(Ko(i,0),pi(i,nt,er,!1)),Ks(i,c),((bt&2)===0||i!==ft)&&(i===ft&&((bt&2)===0&&(Ga|=c),Rt===4&&pi(i,nt,er,!1)),Ir(i))}function Ax(i,o,c){if((bt&6)!==0)throw Error(r(327));var h=!c&&(o&60)===0&&(o&i.expiredLanes)===0||Gs(i,o),g=h?pj(i,o):Ap(i,o,!0),_=h;do{if(g===0){Fo&&!h&&pi(i,o,0,!1);break}else if(g===6)pi(i,o,0,!hi);else{if(c=i.current.alternate,_&&!hj(c)){g=Ap(i,o,!1),_=!1;continue}if(g===2){if(_=o,i.errorRecoveryDisabledLanes&_)var C=0;else C=i.pendingLanes&-536870913,C=C!==0?C:C&536870912?536870912:0;if(C!==0){o=C;e:{var k=i;g=Tl;var z=k.current.memoizedState.isDehydrated;if(z&&(Ko(k,C).flags|=256),C=Ap(k,C,!1),C!==2){if(mp&&!z){k.errorRecoveryDisabledLanes|=_,Ga|=_,g=4;break e}_=Dr,Dr=g,_!==null&&Ep(_)}g=C}if(_=!1,g!==2)continue}}if(g===1){Ko(i,0),pi(i,o,0,!0);break}e:{switch(h=i,g){case 0:case 1:throw Error(r(345));case 4:if((o&4194176)===o){pi(h,o,er,!hi);break e}break;case 2:Dr=null;break;case 3:case 5:break;default:throw Error(r(329))}if(h.finishedWork=c,h.finishedLanes=o,(o&62914560)===o&&(_=yp+300-be(),10<_)){if(pi(h,o,er,!hi),mu(h,0)!==0)break e;h.timeoutHandle=Zx(wx.bind(null,h,c,Dr,ed,gp,o,er,Ga,Go,hi,2,-0,0),_);break e}wx(h,c,Dr,ed,gp,o,er,Ga,Go,hi,0,-0,0)}}break}while(!0);Ir(i)}function Ep(i){Dr===null?Dr=i:Dr.push.apply(Dr,i)}function wx(i,o,c,h,g,_,C,k,z,K,le,me,ne){var se=o.subtreeFlags;if((se&8192||(se&16785408)===16785408)&&(Ll={stylesheets:null,count:0,unsuspend:Zj},px(o),o=Yj(),o!==null)){i.cancelPendingCommit=o(Dx.bind(null,i,c,h,g,C,k,z,1,me,ne)),pi(i,_,C,!K);return}Dx(i,c,h,g,C,k,z,le,me,ne)}function hj(i){for(var o=i;;){var c=o.tag;if((c===0||c===11||c===15)&&o.flags&16384&&(c=o.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var h=0;h<c.length;h++){var g=c[h],_=g.getSnapshot;g=g.value;try{if(!In(_(),g))return!1}catch{return!1}}if(c=o.child,o.subtreeFlags&16384&&c!==null)c.return=o,o=c;else{if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function pi(i,o,c,h){o&=~pp,o&=~Ga,i.suspendedLanes|=o,i.pingedLanes&=~o,h&&(i.warmLanes|=o),h=i.expirationTimes;for(var g=o;0<g;){var _=31-yn(g),C=1<<_;h[_]=-1,g&=~C}c!==0&&B0(i,c,o)}function nd(){return(bt&6)===0?(Nl(0),!1):!0}function xp(){if(Je!==null){if(ht===0)var i=Je.return;else i=Je,si=Ua=null,Cm(i),Lo=null,cl=0,i=Je;for(;i!==null;)xx(i.alternate,i),i=i.return;Je=null}}function Ko(i,o){i.finishedWork=null,i.finishedLanes=0;var c=i.timeoutHandle;c!==-1&&(i.timeoutHandle=-1,Dj(c)),c=i.cancelPendingCommit,c!==null&&(i.cancelPendingCommit=null,c()),xp(),ft=i,Je=c=Gi(i.current,null),nt=o,ht=0,Mn=null,hi=!1,Fo=Gs(i,o),mp=!1,Go=er=pp=Ga=Ki=Rt=0,Dr=Tl=null,gp=!1,(o&8)!==0&&(o|=o&32);var h=i.entangledLanes;if(h!==0)for(i=i.entanglements,h&=o;0<h;){var g=31-yn(h),_=1<<g;o|=i[g],h&=~_}return mi=o,Tu(),c}function Tx(i,o){Ye=null,P.H=kr,o===sl?(o=U_(),ht=3):o===z_?(o=U_(),ht=4):ht=o===VE?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,Mn=o,Je===null&&(Rt=1,Ku(i,qn(o,i.current)))}function Rx(){var i=P.H;return P.H=kr,i===null?kr:i}function Cx(){var i=P.A;return P.A=dj,i}function Sp(){Rt=4,hi||(nt&4194176)!==nt&&Yn.current!==null||(Fo=!0),(Ki&134217727)===0&&(Ga&134217727)===0||ft===null||pi(ft,nt,er,!1)}function Ap(i,o,c){var h=bt;bt|=2;var g=Rx(),_=Cx();(ft!==i||nt!==o)&&(ed=null,Ko(i,o)),o=!1;var C=Rt;e:do try{if(ht!==0&&Je!==null){var k=Je,z=Mn;switch(ht){case 8:xp(),C=6;break e;case 3:case 2:case 6:Yn.current===null&&(o=!0);var K=ht;if(ht=0,Mn=null,qo(i,k,z,K),c&&Fo){C=0;break e}break;default:K=ht,ht=0,Mn=null,qo(i,k,z,K)}}mj(),C=Rt;break}catch(le){Tx(i,le)}while(!0);return o&&i.shellSuspendCounter++,si=Ua=null,bt=h,P.H=g,P.A=_,Je===null&&(ft=null,nt=0,Tu()),C}function mj(){for(;Je!==null;)Nx(Je)}function pj(i,o){var c=bt;bt|=2;var h=Rx(),g=Cx();ft!==i||nt!==o?(ed=null,Ju=be()+500,Ko(i,o)):Fo=Gs(i,o);e:do try{if(ht!==0&&Je!==null){o=Je;var _=Mn;t:switch(ht){case 1:ht=0,Mn=null,qo(i,o,_,1);break;case 2:if(V_(_)){ht=0,Mn=null,Ox(o);break}o=function(){ht===2&&ft===i&&(ht=7),Ir(i)},_.then(o,o);break e;case 3:ht=7;break e;case 4:ht=5;break e;case 7:V_(_)?(ht=0,Mn=null,Ox(o)):(ht=0,Mn=null,qo(i,o,_,7));break;case 5:var C=null;switch(Je.tag){case 26:C=Je.memoizedState;case 5:case 27:var k=Je;if(!C||aS(C)){ht=0,Mn=null;var z=k.sibling;if(z!==null)Je=z;else{var K=k.return;K!==null?(Je=K,rd(K)):Je=null}break t}}ht=0,Mn=null,qo(i,o,_,5);break;case 6:ht=0,Mn=null,qo(i,o,_,6);break;case 8:xp(),Rt=6;break e;default:throw Error(r(462))}}gj();break}catch(le){Tx(i,le)}while(!0);return si=Ua=null,P.H=h,P.A=g,bt=c,Je!==null?0:(ft=null,nt=0,Tu(),Rt)}function gj(){for(;Je!==null&&!ce();)Nx(Je)}function Nx(i){var o=XE(i.alternate,i,mi);i.memoizedProps=i.pendingProps,o===null?rd(i):Je=o}function Ox(i){var o=i,c=o.alternate;switch(o.tag){case 15:case 0:o=GE(c,o,o.pendingProps,o.type,void 0,nt);break;case 11:o=GE(c,o,o.pendingProps,o.type.render,o.ref,nt);break;case 5:Cm(o);default:xx(c,o),o=Je=bx(o,mi),o=XE(c,o,mi)}i.memoizedProps=i.pendingProps,o===null?rd(i):Je=o}function qo(i,o,c,h){si=Ua=null,Cm(o),Lo=null,cl=0;var g=o.return;try{if(ij(i,g,o,c,nt)){Rt=1,Ku(i,qn(c,i.current)),Je=null;return}}catch(_){if(g!==null)throw Je=g,_;Rt=1,Ku(i,qn(c,i.current)),Je=null;return}o.flags&32768?(it||h===1?i=!0:Fo||(nt&536870912)!==0?i=!1:(hi=i=!0,(h===2||h===3||h===6)&&(h=Yn.current,h!==null&&h.tag===13&&(h.flags|=16384))),kx(o,i)):rd(o)}function rd(i){var o=i;do{if((o.flags&32768)!==0){kx(o,hi);return}i=o.return;var c=cj(o.alternate,o,mi);if(c!==null){Je=c;return}if(o=o.sibling,o!==null){Je=o;return}Je=o=i}while(o!==null);Rt===0&&(Rt=5)}function kx(i,o){do{var c=uj(i.alternate,i);if(c!==null){c.flags&=32767,Je=c;return}if(c=i.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!o&&(i=i.sibling,i!==null)){Je=i;return}Je=i=c}while(i!==null);Rt=6,Je=null}function Dx(i,o,c,h,g,_,C,k,z,K){var le=P.T,me=ie.p;try{ie.p=2,P.T=null,yj(i,o,c,h,me,g,_,C,k,z,K)}finally{P.T=le,ie.p=me}}function yj(i,o,c,h,g,_,C,k){do Zo();while(Ka!==null);if((bt&6)!==0)throw Error(r(327));var z=i.finishedWork;if(h=i.finishedLanes,z===null)return null;if(i.finishedWork=null,i.finishedLanes=0,z===i.current)throw Error(r(177));i.callbackNode=null,i.callbackPriority=0,i.cancelPendingCommit=null;var K=z.lanes|z.childLanes;if(K|=hm,WI(i,h,K,_,C,k),i===ft&&(Je=ft=null,nt=0),(z.subtreeFlags&10256)===0&&(z.flags&10256)===0||td||(td=!0,vp=K,bp=c,Ej(ot,function(){return Zo(),null})),c=(z.flags&15990)!==0,(z.subtreeFlags&15990)!==0||c?(c=P.T,P.T=null,_=ie.p,ie.p=2,C=bt,bt|=4,oj(i,z),fx(z,i),UL(Mp,i.containerInfo),pd=!!jp,Mp=jp=null,i.current=z,lx(i,z.alternate,z),we(),bt=C,ie.p=_,P.T=c):i.current=z,td?(td=!1,Ka=i,Rl=h):Ix(i,K),K=i.pendingLanes,K===0&&(qi=null),Fh(z.stateNode),Ir(i),o!==null)for(g=i.onRecoverableError,z=0;z<o.length;z++)K=o[z],g(K.value,{componentStack:K.stack});return(Rl&3)!==0&&Zo(),K=i.pendingLanes,(h&4194218)!==0&&(K&42)!==0?i===_p?Cl++:(Cl=0,_p=i):Cl=0,Nl(0),null}function Ix(i,o){(i.pooledCacheLanes&=o)===0&&(o=i.pooledCache,o!=null&&(i.pooledCache=null,dl(o)))}function Zo(){if(Ka!==null){var i=Ka,o=vp;vp=0;var c=$0(Rl),h=P.T,g=ie.p;try{if(ie.p=32>c?32:c,P.T=null,Ka===null)var _=!1;else{c=bp,bp=null;var C=Ka,k=Rl;if(Ka=null,Rl=0,(bt&6)!==0)throw Error(r(331));var z=bt;if(bt|=4,yx(C.current),mx(C,C.current,k,c),bt=z,Nl(0,!1),tn&&typeof tn.onPostCommitFiberRoot=="function")try{tn.onPostCommitFiberRoot(Jr,C)}catch{}_=!0}return _}finally{ie.p=g,P.T=h,Ix(i,o)}}return!1}function Lx(i,o,c){o=qn(c,o),o=$m(i.stateNode,o,2),i=Ui(i,o,2),i!==null&&(Ks(i,2),Ir(i))}function dt(i,o,c){if(i.tag===3)Lx(i,i,c);else for(;o!==null;){if(o.tag===3){Lx(o,i,c);break}else if(o.tag===1){var h=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(qi===null||!qi.has(h))){i=qn(c,i),c=PE(2),h=Ui(o,c,2),h!==null&&(zE(c,h,o,i),Ks(h,2),Ir(h));break}}o=o.return}}function wp(i,o,c){var h=i.pingCache;if(h===null){h=i.pingCache=new fj;var g=new Set;h.set(o,g)}else g=h.get(o),g===void 0&&(g=new Set,h.set(o,g));g.has(c)||(mp=!0,g.add(c),i=vj.bind(null,i,o,c),o.then(i,i))}function vj(i,o,c){var h=i.pingCache;h!==null&&h.delete(o),i.pingedLanes|=i.suspendedLanes&c,i.warmLanes&=~c,ft===i&&(nt&c)===c&&(Rt===4||Rt===3&&(nt&62914560)===nt&&300>be()-yp?(bt&2)===0&&Ko(i,0):pp|=c,Go===nt&&(Go=0)),Ir(i)}function jx(i,o){o===0&&(o=V0()),i=Ii(i,o),i!==null&&(Ks(i,o),Ir(i))}function bj(i){var o=i.memoizedState,c=0;o!==null&&(c=o.retryLane),jx(i,c)}function _j(i,o){var c=0;switch(i.tag){case 13:var h=i.stateNode,g=i.memoizedState;g!==null&&(c=g.retryLane);break;case 19:h=i.stateNode;break;case 22:h=i.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(o),jx(i,c)}function Ej(i,o){return U(i,o)}var id=null,Wo=null,Tp=!1,ad=!1,Rp=!1,qa=0;function Ir(i){i!==Wo&&i.next===null&&(Wo===null?id=Wo=i:Wo=Wo.next=i),ad=!0,Tp||(Tp=!0,Sj(xj))}function Nl(i,o){if(!Rp&&ad){Rp=!0;do for(var c=!1,h=id;h!==null;){if(i!==0){var g=h.pendingLanes;if(g===0)var _=0;else{var C=h.suspendedLanes,k=h.pingedLanes;_=(1<<31-yn(42|i)+1)-1,_&=g&~(C&~k),_=_&201326677?_&201326677|1:_?_|2:0}_!==0&&(c=!0,zx(h,_))}else _=nt,_=mu(h,h===ft?_:0),(_&3)===0||Gs(h,_)||(c=!0,zx(h,_));h=h.next}while(c);Rp=!1}}function xj(){ad=Tp=!1;var i=0;qa!==0&&(kj()&&(i=qa),qa=0);for(var o=be(),c=null,h=id;h!==null;){var g=h.next,_=Mx(h,o);_===0?(h.next=null,c===null?id=g:c.next=g,g===null&&(Wo=c)):(c=h,(i!==0||(_&3)!==0)&&(ad=!0)),h=g}Nl(i)}function Mx(i,o){for(var c=i.suspendedLanes,h=i.pingedLanes,g=i.expirationTimes,_=i.pendingLanes&-62914561;0<_;){var C=31-yn(_),k=1<<C,z=g[C];z===-1?((k&c)===0||(k&h)!==0)&&(g[C]=ZI(k,o)):z<=o&&(i.expiredLanes|=k),_&=~k}if(o=ft,c=nt,c=mu(i,i===o?c:0),h=i.callbackNode,c===0||i===o&&ht===2||i.cancelPendingCommit!==null)return h!==null&&h!==null&&te(h),i.callbackNode=null,i.callbackPriority=0;if((c&3)===0||Gs(i,c)){if(o=c&-c,o===i.callbackPriority)return o;switch(h!==null&&te(h),$0(c)){case 2:case 8:c=rt;break;case 32:c=ot;break;case 268435456:c=wa;break;default:c=ot}return h=Px.bind(null,i),c=U(c,h),i.callbackPriority=o,i.callbackNode=c,o}return h!==null&&h!==null&&te(h),i.callbackPriority=2,i.callbackNode=null,2}function Px(i,o){var c=i.callbackNode;if(Zo()&&i.callbackNode!==c)return null;var h=nt;return h=mu(i,i===ft?h:0),h===0?null:(Ax(i,h,o),Mx(i,be()),i.callbackNode!=null&&i.callbackNode===c?Px.bind(null,i):null)}function zx(i,o){if(Zo())return null;Ax(i,o,!0)}function Sj(i){Ij(function(){(bt&6)!==0?U(Ie,i):i()})}function Cp(){return qa===0&&(qa=z0()),qa}function Vx(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:bu(""+i)}function Bx(i,o){var c=o.ownerDocument.createElement("input");return c.name=o.name,c.value=o.value,i.id&&c.setAttribute("form",i.id),o.parentNode.insertBefore(c,o),i=new FormData(i),c.parentNode.removeChild(c),i}function Aj(i,o,c,h,g){if(o==="submit"&&c&&c.stateNode===g){var _=Vx((g[Tn]||null).action),C=h.submitter;C&&(o=(o=C[Tn]||null)?Vx(o.formAction):C.getAttribute("formAction"),o!==null&&(_=o,C=null));var k=new Su("action","action",null,h,g);i.push({event:k,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(qa!==0){var z=C?Bx(g,C):new FormData(g);Pm(c,{pending:!0,data:z,method:g.method,action:_},null,z)}}else typeof _=="function"&&(k.preventDefault(),z=C?Bx(g,C):new FormData(g),Pm(c,{pending:!0,data:z,method:g.method,action:_},_,z))},currentTarget:g}]})}}for(var Np=0;Np<D_.length;Np++){var Op=D_[Np],wj=Op.toLowerCase(),Tj=Op[0].toUpperCase()+Op.slice(1);hr(wj,"on"+Tj)}hr(R_,"onAnimationEnd"),hr(C_,"onAnimationIteration"),hr(N_,"onAnimationStart"),hr("dblclick","onDoubleClick"),hr("focusin","onFocus"),hr("focusout","onBlur"),hr(HL,"onTransitionRun"),hr(FL,"onTransitionStart"),hr(GL,"onTransitionCancel"),hr(O_,"onTransitionEnd"),xo("onMouseEnter",["mouseout","mouseover"]),xo("onMouseLeave",["mouseout","mouseover"]),xo("onPointerEnter",["pointerout","pointerover"]),xo("onPointerLeave",["pointerout","pointerover"]),Ca("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ca("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ca("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ca("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ca("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ca("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ol="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(" "),Rj=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ol));function Ux(i,o){o=(o&4)!==0;for(var c=0;c<i.length;c++){var h=i[c],g=h.event;h=h.listeners;e:{var _=void 0;if(o)for(var C=h.length-1;0<=C;C--){var k=h[C],z=k.instance,K=k.currentTarget;if(k=k.listener,z!==_&&g.isPropagationStopped())break e;_=k,g.currentTarget=K;try{_(g)}catch(le){Gu(le)}g.currentTarget=null,_=z}else for(C=0;C<h.length;C++){if(k=h[C],z=k.instance,K=k.currentTarget,k=k.listener,z!==_&&g.isPropagationStopped())break e;_=k,g.currentTarget=K;try{_(g)}catch(le){Gu(le)}g.currentTarget=null,_=z}}}}function et(i,o){var c=o[Kh];c===void 0&&(c=o[Kh]=new Set);var h=i+"__bubble";c.has(h)||($x(o,i,2,!1),c.add(h))}function kp(i,o,c){var h=0;o&&(h|=4),$x(c,i,h,o)}var od="_reactListening"+Math.random().toString(36).slice(2);function Dp(i){if(!i[od]){i[od]=!0,G0.forEach(function(c){c!=="selectionchange"&&(Rj.has(c)||kp(c,!1,i),kp(c,!0,i))});var o=i.nodeType===9?i:i.ownerDocument;o===null||o[od]||(o[od]=!0,kp("selectionchange",!1,o))}}function $x(i,o,c,h){switch(dS(o)){case 2:var g=Jj;break;case 8:g=eM;break;default:g=Gp}c=g.bind(null,o,c,i),g=void 0,!em||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(g=!0),h?g!==void 0?i.addEventListener(o,c,{capture:!0,passive:g}):i.addEventListener(o,c,!0):g!==void 0?i.addEventListener(o,c,{passive:g}):i.addEventListener(o,c,!1)}function Ip(i,o,c,h,g){var _=h;if((o&1)===0&&(o&2)===0&&h!==null)e:for(;;){if(h===null)return;var C=h.tag;if(C===3||C===4){var k=h.stateNode.containerInfo;if(k===g||k.nodeType===8&&k.parentNode===g)break;if(C===4)for(C=h.return;C!==null;){var z=C.tag;if((z===3||z===4)&&(z=C.stateNode.containerInfo,z===g||z.nodeType===8&&z.parentNode===g))return;C=C.return}for(;k!==null;){if(C=Ra(k),C===null)return;if(z=C.tag,z===5||z===6||z===26||z===27){h=_=C;continue e}k=k.parentNode}}h=h.return}r_(function(){var K=_,le=Qh(c),me=[];e:{var ne=k_.get(i);if(ne!==void 0){var se=Su,ke=i;switch(i){case"keypress":if(Eu(c)===0)break e;case"keydown":case"keyup":se=_L;break;case"focusin":ke="focus",se=im;break;case"focusout":ke="blur",se=im;break;case"beforeblur":case"afterblur":se=im;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":se=o_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":se=lL;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":se=SL;break;case R_:case C_:case N_:se=dL;break;case O_:se=wL;break;case"scroll":case"scrollend":se=oL;break;case"wheel":se=RL;break;case"copy":case"cut":case"paste":se=hL;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":se=l_;break;case"toggle":case"beforetoggle":se=NL}var He=(o&4)!==0,Ct=!He&&(i==="scroll"||i==="scrollend"),Y=He?ne!==null?ne+"Capture":null:ne;He=[];for(var G=K,Q;G!==null;){var fe=G;if(Q=fe.stateNode,fe=fe.tag,fe!==5&&fe!==26&&fe!==27||Q===null||Y===null||(fe=Ws(G,Y),fe!=null&&He.push(kl(G,fe,Q))),Ct)break;G=G.return}0<He.length&&(ne=new se(ne,ke,null,c,le),me.push({event:ne,listeners:He}))}}if((o&7)===0){e:{if(ne=i==="mouseover"||i==="pointerover",se=i==="mouseout"||i==="pointerout",ne&&c!==Xh&&(ke=c.relatedTarget||c.fromElement)&&(Ra(ke)||ke[bo]))break e;if((se||ne)&&(ne=le.window===le?le:(ne=le.ownerDocument)?ne.defaultView||ne.parentWindow:window,se?(ke=c.relatedTarget||c.toElement,se=K,ke=ke?Ra(ke):null,ke!==null&&(Ct=q(ke),He=ke.tag,ke!==Ct||He!==5&&He!==27&&He!==6)&&(ke=null)):(se=null,ke=K),se!==ke)){if(He=o_,fe="onMouseLeave",Y="onMouseEnter",G="mouse",(i==="pointerout"||i==="pointerover")&&(He=l_,fe="onPointerLeave",Y="onPointerEnter",G="pointer"),Ct=se==null?ne:Zs(se),Q=ke==null?ne:Zs(ke),ne=new He(fe,G+"leave",se,c,le),ne.target=Ct,ne.relatedTarget=Q,fe=null,Ra(le)===K&&(He=new He(Y,G+"enter",ke,c,le),He.target=Q,He.relatedTarget=Ct,fe=He),Ct=fe,se&&ke)t:{for(He=se,Y=ke,G=0,Q=He;Q;Q=Yo(Q))G++;for(Q=0,fe=Y;fe;fe=Yo(fe))Q++;for(;0<G-Q;)He=Yo(He),G--;for(;0<Q-G;)Y=Yo(Y),Q--;for(;G--;){if(He===Y||Y!==null&&He===Y.alternate)break t;He=Yo(He),Y=Yo(Y)}He=null}else He=null;se!==null&&Hx(me,ne,se,He,!1),ke!==null&&Ct!==null&&Hx(me,Ct,ke,He,!0)}}e:{if(ne=K?Zs(K):window,se=ne.nodeName&&ne.nodeName.toLowerCase(),se==="select"||se==="input"&&ne.type==="file")var Re=g_;else if(m_(ne))if(y_)Re=VL;else{Re=PL;var Qe=ML}else se=ne.nodeName,!se||se.toLowerCase()!=="input"||ne.type!=="checkbox"&&ne.type!=="radio"?K&&Yh(K.elementType)&&(Re=g_):Re=zL;if(Re&&(Re=Re(i,K))){p_(me,Re,c,le);break e}Qe&&Qe(i,ne,K),i==="focusout"&&K&&ne.type==="number"&&K.memoizedProps.value!=null&&Wh(ne,"number",ne.value)}switch(Qe=K?Zs(K):window,i){case"focusin":(m_(Qe)||Qe.contentEditable==="true")&&(Co=Qe,um=K,rl=null);break;case"focusout":rl=um=Co=null;break;case"mousedown":dm=!0;break;case"contextmenu":case"mouseup":case"dragend":dm=!1,w_(me,c,le);break;case"selectionchange":if($L)break;case"keydown":case"keyup":w_(me,c,le)}var Le;if(om)e:{switch(i){case"compositionstart":var Me="onCompositionStart";break e;case"compositionend":Me="onCompositionEnd";break e;case"compositionupdate":Me="onCompositionUpdate";break e}Me=void 0}else Ro?f_(i,c)&&(Me="onCompositionEnd"):i==="keydown"&&c.keyCode===229&&(Me="onCompositionStart");Me&&(c_&&c.locale!=="ko"&&(Ro||Me!=="onCompositionStart"?Me==="onCompositionEnd"&&Ro&&(Le=i_()):(Di=le,tm="value"in Di?Di.value:Di.textContent,Ro=!0)),Qe=sd(K,Me),0<Qe.length&&(Me=new s_(Me,i,null,c,le),me.push({event:Me,listeners:Qe}),Le?Me.data=Le:(Le=h_(c),Le!==null&&(Me.data=Le)))),(Le=kL?DL(i,c):IL(i,c))&&(Me=sd(K,"onBeforeInput"),0<Me.length&&(Qe=new s_("onBeforeInput","beforeinput",null,c,le),me.push({event:Qe,listeners:Me}),Qe.data=Le)),Aj(me,i,K,c,le)}Ux(me,o)})}function kl(i,o,c){return{instance:i,listener:o,currentTarget:c}}function sd(i,o){for(var c=o+"Capture",h=[];i!==null;){var g=i,_=g.stateNode;g=g.tag,g!==5&&g!==26&&g!==27||_===null||(g=Ws(i,c),g!=null&&h.unshift(kl(i,g,_)),g=Ws(i,o),g!=null&&h.push(kl(i,g,_))),i=i.return}return h}function Yo(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function Hx(i,o,c,h,g){for(var _=o._reactName,C=[];c!==null&&c!==h;){var k=c,z=k.alternate,K=k.stateNode;if(k=k.tag,z!==null&&z===h)break;k!==5&&k!==26&&k!==27||K===null||(z=K,g?(K=Ws(c,_),K!=null&&C.unshift(kl(c,K,z))):g||(K=Ws(c,_),K!=null&&C.push(kl(c,K,z)))),c=c.return}C.length!==0&&i.push({event:o,listeners:C})}var Cj=/\r\n?/g,Nj=/\u0000|\uFFFD/g;function Fx(i){return(typeof i=="string"?i:""+i).replace(Cj,`
|
|
50
|
-
`).replace(Nj,"")}function Gx(i,o){return o=Fx(o),Fx(i)===o}function ld(){}function ct(i,o,c,h,g,_){switch(c){case"children":typeof h=="string"?o==="body"||o==="textarea"&&h===""||Ao(i,h):(typeof h=="number"||typeof h=="bigint")&&o!=="body"&&Ao(i,""+h);break;case"className":gu(i,"class",h);break;case"tabIndex":gu(i,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":gu(i,c,h);break;case"style":t_(i,h,_);break;case"data":if(o!=="object"){gu(i,"data",h);break}case"src":case"href":if(h===""&&(o!=="a"||c!=="href")){i.removeAttribute(c);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(c);break}h=bu(""+h),i.setAttribute(c,h);break;case"action":case"formAction":if(typeof h=="function"){i.setAttribute(c,"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 _=="function"&&(c==="formAction"?(o!=="input"&&ct(i,o,"name",g.name,g,null),ct(i,o,"formEncType",g.formEncType,g,null),ct(i,o,"formMethod",g.formMethod,g,null),ct(i,o,"formTarget",g.formTarget,g,null)):(ct(i,o,"encType",g.encType,g,null),ct(i,o,"method",g.method,g,null),ct(i,o,"target",g.target,g,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(c);break}h=bu(""+h),i.setAttribute(c,h);break;case"onClick":h!=null&&(i.onclick=ld);break;case"onScroll":h!=null&&et("scroll",i);break;case"onScrollEnd":h!=null&&et("scrollend",i);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(c=h.__html,c!=null){if(g.children!=null)throw Error(r(60));i.innerHTML=c}}break;case"multiple":i.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":i.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){i.removeAttribute("xlink:href");break}c=bu(""+h),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(c,""+h):i.removeAttribute(c);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":h&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(c,""):i.removeAttribute(c);break;case"capture":case"download":h===!0?i.setAttribute(c,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(c,h):i.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?i.setAttribute(c,h):i.removeAttribute(c);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?i.removeAttribute(c):i.setAttribute(c,h);break;case"popover":et("beforetoggle",i),et("toggle",i),pu(i,"popover",h);break;case"xlinkActuate":ti(i,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":ti(i,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":ti(i,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":ti(i,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":ti(i,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":ti(i,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":ti(i,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":ti(i,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":ti(i,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":pu(i,"is",h);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=iL.get(c)||c,pu(i,c,h))}}function Lp(i,o,c,h,g,_){switch(c){case"style":t_(i,h,_);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(c=h.__html,c!=null){if(g.children!=null)throw Error(r(60));i.innerHTML=c}}break;case"children":typeof h=="string"?Ao(i,h):(typeof h=="number"||typeof h=="bigint")&&Ao(i,""+h);break;case"onScroll":h!=null&&et("scroll",i);break;case"onScrollEnd":h!=null&&et("scrollend",i);break;case"onClick":h!=null&&(i.onclick=ld);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!K0.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(g=c.endsWith("Capture"),o=c.slice(2,g?c.length-7:void 0),_=i[Tn]||null,_=_!=null?_[c]:null,typeof _=="function"&&i.removeEventListener(o,_,g),typeof h=="function")){typeof _!="function"&&_!==null&&(c in i?i[c]=null:i.hasAttribute(c)&&i.removeAttribute(c)),i.addEventListener(o,h,g);break e}c in i?i[c]=h:h===!0?i.setAttribute(c,""):pu(i,c,h)}}}function an(i,o,c){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":et("error",i),et("load",i);var h=!1,g=!1,_;for(_ in c)if(c.hasOwnProperty(_)){var C=c[_];if(C!=null)switch(_){case"src":h=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:ct(i,o,_,C,c,null)}}g&&ct(i,o,"srcSet",c.srcSet,c,null),h&&ct(i,o,"src",c.src,c,null);return;case"input":et("invalid",i);var k=_=C=g=null,z=null,K=null;for(h in c)if(c.hasOwnProperty(h)){var le=c[h];if(le!=null)switch(h){case"name":g=le;break;case"type":C=le;break;case"checked":z=le;break;case"defaultChecked":K=le;break;case"value":_=le;break;case"defaultValue":k=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(r(137,o));break;default:ct(i,o,h,le,c,null)}}X0(i,_,k,z,K,C,g,!1),yu(i);return;case"select":et("invalid",i),h=C=_=null;for(g in c)if(c.hasOwnProperty(g)&&(k=c[g],k!=null))switch(g){case"value":_=k;break;case"defaultValue":C=k;break;case"multiple":h=k;default:ct(i,o,g,k,c,null)}o=_,c=C,i.multiple=!!h,o!=null?So(i,!!h,o,!1):c!=null&&So(i,!!h,c,!0);return;case"textarea":et("invalid",i),_=g=h=null;for(C in c)if(c.hasOwnProperty(C)&&(k=c[C],k!=null))switch(C){case"value":h=k;break;case"defaultValue":g=k;break;case"children":_=k;break;case"dangerouslySetInnerHTML":if(k!=null)throw Error(r(91));break;default:ct(i,o,C,k,c,null)}J0(i,h,g,_),yu(i);return;case"option":for(z in c)if(c.hasOwnProperty(z)&&(h=c[z],h!=null))switch(z){case"selected":i.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:ct(i,o,z,h,c,null)}return;case"dialog":et("cancel",i),et("close",i);break;case"iframe":case"object":et("load",i);break;case"video":case"audio":for(h=0;h<Ol.length;h++)et(Ol[h],i);break;case"image":et("error",i),et("load",i);break;case"details":et("toggle",i);break;case"embed":case"source":case"link":et("error",i),et("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(K in c)if(c.hasOwnProperty(K)&&(h=c[K],h!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:ct(i,o,K,h,c,null)}return;default:if(Yh(o)){for(le in c)c.hasOwnProperty(le)&&(h=c[le],h!==void 0&&Lp(i,o,le,h,c,void 0));return}}for(k in c)c.hasOwnProperty(k)&&(h=c[k],h!=null&&ct(i,o,k,h,c,null))}function Oj(i,o,c,h){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,_=null,C=null,k=null,z=null,K=null,le=null;for(se in c){var me=c[se];if(c.hasOwnProperty(se)&&me!=null)switch(se){case"checked":break;case"value":break;case"defaultValue":z=me;default:h.hasOwnProperty(se)||ct(i,o,se,null,h,me)}}for(var ne in h){var se=h[ne];if(me=c[ne],h.hasOwnProperty(ne)&&(se!=null||me!=null))switch(ne){case"type":_=se;break;case"name":g=se;break;case"checked":K=se;break;case"defaultChecked":le=se;break;case"value":C=se;break;case"defaultValue":k=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(r(137,o));break;default:se!==me&&ct(i,o,ne,se,h,me)}}Zh(i,C,k,z,K,le,_,g);return;case"select":se=C=k=ne=null;for(_ in c)if(z=c[_],c.hasOwnProperty(_)&&z!=null)switch(_){case"value":break;case"multiple":se=z;default:h.hasOwnProperty(_)||ct(i,o,_,null,h,z)}for(g in h)if(_=h[g],z=c[g],h.hasOwnProperty(g)&&(_!=null||z!=null))switch(g){case"value":ne=_;break;case"defaultValue":k=_;break;case"multiple":C=_;default:_!==z&&ct(i,o,g,_,h,z)}o=k,c=C,h=se,ne!=null?So(i,!!c,ne,!1):!!h!=!!c&&(o!=null?So(i,!!c,o,!0):So(i,!!c,c?[]:"",!1));return;case"textarea":se=ne=null;for(k in c)if(g=c[k],c.hasOwnProperty(k)&&g!=null&&!h.hasOwnProperty(k))switch(k){case"value":break;case"children":break;default:ct(i,o,k,null,h,g)}for(C in h)if(g=h[C],_=c[C],h.hasOwnProperty(C)&&(g!=null||_!=null))switch(C){case"value":ne=g;break;case"defaultValue":se=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(r(91));break;default:g!==_&&ct(i,o,C,g,h,_)}Q0(i,ne,se);return;case"option":for(var ke in c)if(ne=c[ke],c.hasOwnProperty(ke)&&ne!=null&&!h.hasOwnProperty(ke))switch(ke){case"selected":i.selected=!1;break;default:ct(i,o,ke,null,h,ne)}for(z in h)if(ne=h[z],se=c[z],h.hasOwnProperty(z)&&ne!==se&&(ne!=null||se!=null))switch(z){case"selected":i.selected=ne&&typeof ne!="function"&&typeof ne!="symbol";break;default:ct(i,o,z,ne,h,se)}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 He in c)ne=c[He],c.hasOwnProperty(He)&&ne!=null&&!h.hasOwnProperty(He)&&ct(i,o,He,null,h,ne);for(K in h)if(ne=h[K],se=c[K],h.hasOwnProperty(K)&&ne!==se&&(ne!=null||se!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(r(137,o));break;default:ct(i,o,K,ne,h,se)}return;default:if(Yh(o)){for(var Ct in c)ne=c[Ct],c.hasOwnProperty(Ct)&&ne!==void 0&&!h.hasOwnProperty(Ct)&&Lp(i,o,Ct,void 0,h,ne);for(le in h)ne=h[le],se=c[le],!h.hasOwnProperty(le)||ne===se||ne===void 0&&se===void 0||Lp(i,o,le,ne,h,se);return}}for(var Y in c)ne=c[Y],c.hasOwnProperty(Y)&&ne!=null&&!h.hasOwnProperty(Y)&&ct(i,o,Y,null,h,ne);for(me in h)ne=h[me],se=c[me],!h.hasOwnProperty(me)||ne===se||ne==null&&se==null||ct(i,o,me,ne,h,se)}var jp=null,Mp=null;function cd(i){return i.nodeType===9?i:i.ownerDocument}function Kx(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function qx(i,o){if(i===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&o==="foreignObject"?0:i}function Pp(i,o){return i==="textarea"||i==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var zp=null;function kj(){var i=window.event;return i&&i.type==="popstate"?i===zp?!1:(zp=i,!0):(zp=null,!1)}var Zx=typeof setTimeout=="function"?setTimeout:void 0,Dj=typeof clearTimeout=="function"?clearTimeout:void 0,Wx=typeof Promise=="function"?Promise:void 0,Ij=typeof queueMicrotask=="function"?queueMicrotask:typeof Wx<"u"?function(i){return Wx.resolve(null).then(i).catch(Lj)}:Zx;function Lj(i){setTimeout(function(){throw i})}function Vp(i,o){var c=o,h=0;do{var g=c.nextSibling;if(i.removeChild(c),g&&g.nodeType===8)if(c=g.data,c==="/$"){if(h===0){i.removeChild(g),Vl(o);return}h--}else c!=="$"&&c!=="$?"&&c!=="$!"||h++;c=g}while(c);Vl(o)}function Bp(i){var o=i.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var c=o;switch(o=o.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":Bp(c),qh(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}i.removeChild(c)}}function jj(i,o,c,h){for(;i.nodeType===1;){var g=c;if(i.nodeName.toLowerCase()!==o.toLowerCase()){if(!h&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(h){if(!i[qs])switch(o){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(_=i.getAttribute("rel"),_==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(_!==g.rel||i.getAttribute("href")!==(g.href==null?null:g.href)||i.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||i.getAttribute("title")!==(g.title==null?null:g.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(_=i.getAttribute("src"),(_!==(g.src==null?null:g.src)||i.getAttribute("type")!==(g.type==null?null:g.type)||i.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&_&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(o==="input"&&i.type==="hidden"){var _=g.name==null?null:""+g.name;if(g.type==="hidden"&&i.getAttribute("name")===_)return i}else return i;if(i=gr(i.nextSibling),i===null)break}return null}function Mj(i,o,c){if(o==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!c||(i=gr(i.nextSibling),i===null))return null;return i}function gr(i){for(;i!=null;i=i.nextSibling){var o=i.nodeType;if(o===1||o===3)break;if(o===8){if(o=i.data,o==="$"||o==="$!"||o==="$?"||o==="F!"||o==="F")break;if(o==="/$")return null}}return i}function Yx(i){i=i.previousSibling;for(var o=0;i;){if(i.nodeType===8){var c=i.data;if(c==="$"||c==="$!"||c==="$?"){if(o===0)return i;o--}else c==="/$"&&o++}i=i.previousSibling}return null}function Xx(i,o,c){switch(o=cd(c),i){case"html":if(i=o.documentElement,!i)throw Error(r(452));return i;case"head":if(i=o.head,!i)throw Error(r(453));return i;case"body":if(i=o.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}var tr=new Map,Qx=new Set;function ud(i){return typeof i.getRootNode=="function"?i.getRootNode():i.ownerDocument}var gi=ie.d;ie.d={f:Pj,r:zj,D:Vj,C:Bj,L:Uj,m:$j,X:Fj,S:Hj,M:Gj};function Pj(){var i=gi.f(),o=nd();return i||o}function zj(i){var o=_o(i);o!==null&&o.tag===5&&o.type==="form"?wE(o):gi.r(i)}var Xo=typeof document>"u"?null:document;function Jx(i,o,c){var h=Xo;if(h&&typeof o=="string"&&o){var g=Gn(o);g='link[rel="'+i+'"][href="'+g+'"]',typeof c=="string"&&(g+='[crossorigin="'+c+'"]'),Qx.has(g)||(Qx.add(g),i={rel:i,crossOrigin:c,href:o},h.querySelector(g)===null&&(o=h.createElement("link"),an(o,"link",i),Wt(o),h.head.appendChild(o)))}}function Vj(i){gi.D(i),Jx("dns-prefetch",i,null)}function Bj(i,o){gi.C(i,o),Jx("preconnect",i,o)}function Uj(i,o,c){gi.L(i,o,c);var h=Xo;if(h&&i&&o){var g='link[rel="preload"][as="'+Gn(o)+'"]';o==="image"&&c&&c.imageSrcSet?(g+='[imagesrcset="'+Gn(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(g+='[imagesizes="'+Gn(c.imageSizes)+'"]')):g+='[href="'+Gn(i)+'"]';var _=g;switch(o){case"style":_=Qo(i);break;case"script":_=Jo(i)}tr.has(_)||(i=M({rel:"preload",href:o==="image"&&c&&c.imageSrcSet?void 0:i,as:o},c),tr.set(_,i),h.querySelector(g)!==null||o==="style"&&h.querySelector(Dl(_))||o==="script"&&h.querySelector(Il(_))||(o=h.createElement("link"),an(o,"link",i),Wt(o),h.head.appendChild(o)))}}function $j(i,o){gi.m(i,o);var c=Xo;if(c&&i){var h=o&&typeof o.as=="string"?o.as:"script",g='link[rel="modulepreload"][as="'+Gn(h)+'"][href="'+Gn(i)+'"]',_=g;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":_=Jo(i)}if(!tr.has(_)&&(i=M({rel:"modulepreload",href:i},o),tr.set(_,i),c.querySelector(g)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(Il(_)))return}h=c.createElement("link"),an(h,"link",i),Wt(h),c.head.appendChild(h)}}}function Hj(i,o,c){gi.S(i,o,c);var h=Xo;if(h&&i){var g=Eo(h).hoistableStyles,_=Qo(i);o=o||"default";var C=g.get(_);if(!C){var k={loading:0,preload:null};if(C=h.querySelector(Dl(_)))k.loading=5;else{i=M({rel:"stylesheet",href:i,"data-precedence":o},c),(c=tr.get(_))&&Up(i,c);var z=C=h.createElement("link");Wt(z),an(z,"link",i),z._p=new Promise(function(K,le){z.onload=K,z.onerror=le}),z.addEventListener("load",function(){k.loading|=1}),z.addEventListener("error",function(){k.loading|=2}),k.loading|=4,dd(C,o,h)}C={type:"stylesheet",instance:C,count:1,state:k},g.set(_,C)}}}function Fj(i,o){gi.X(i,o);var c=Xo;if(c&&i){var h=Eo(c).hoistableScripts,g=Jo(i),_=h.get(g);_||(_=c.querySelector(Il(g)),_||(i=M({src:i,async:!0},o),(o=tr.get(g))&&$p(i,o),_=c.createElement("script"),Wt(_),an(_,"link",i),c.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},h.set(g,_))}}function Gj(i,o){gi.M(i,o);var c=Xo;if(c&&i){var h=Eo(c).hoistableScripts,g=Jo(i),_=h.get(g);_||(_=c.querySelector(Il(g)),_||(i=M({src:i,async:!0,type:"module"},o),(o=tr.get(g))&&$p(i,o),_=c.createElement("script"),Wt(_),an(_,"link",i),c.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},h.set(g,_))}}function eS(i,o,c,h){var g=(g=pt.current)?ud(g):null;if(!g)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(o=Qo(c.href),c=Eo(g).hoistableStyles,h=c.get(o),h||(h={type:"style",instance:null,count:0,state:null},c.set(o,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){i=Qo(c.href);var _=Eo(g).hoistableStyles,C=_.get(i);if(C||(g=g.ownerDocument||g,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},_.set(i,C),(_=g.querySelector(Dl(i)))&&!_._p&&(C.instance=_,C.state.loading=5),tr.has(i)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},tr.set(i,c),_||Kj(g,i,c,C.state))),o&&h===null)throw Error(r(528,""));return C}if(o&&h!==null)throw Error(r(529,""));return null;case"script":return o=c.async,c=c.src,typeof c=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=Jo(c),c=Eo(g).hoistableScripts,h=c.get(o),h||(h={type:"script",instance:null,count:0,state:null},c.set(o,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function Qo(i){return'href="'+Gn(i)+'"'}function Dl(i){return'link[rel="stylesheet"]['+i+"]"}function tS(i){return M({},i,{"data-precedence":i.precedence,precedence:null})}function Kj(i,o,c,h){i.querySelector('link[rel="preload"][as="style"]['+o+"]")?h.loading=1:(o=i.createElement("link"),h.preload=o,o.addEventListener("load",function(){return h.loading|=1}),o.addEventListener("error",function(){return h.loading|=2}),an(o,"link",c),Wt(o),i.head.appendChild(o))}function Jo(i){return'[src="'+Gn(i)+'"]'}function Il(i){return"script[async]"+i}function nS(i,o,c){if(o.count++,o.instance===null)switch(o.type){case"style":var h=i.querySelector('style[data-href~="'+Gn(c.href)+'"]');if(h)return o.instance=h,Wt(h),h;var g=M({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return h=(i.ownerDocument||i).createElement("style"),Wt(h),an(h,"style",g),dd(h,c.precedence,i),o.instance=h;case"stylesheet":g=Qo(c.href);var _=i.querySelector(Dl(g));if(_)return o.state.loading|=4,o.instance=_,Wt(_),_;h=tS(c),(g=tr.get(g))&&Up(h,g),_=(i.ownerDocument||i).createElement("link"),Wt(_);var C=_;return C._p=new Promise(function(k,z){C.onload=k,C.onerror=z}),an(_,"link",h),o.state.loading|=4,dd(_,c.precedence,i),o.instance=_;case"script":return _=Jo(c.src),(g=i.querySelector(Il(_)))?(o.instance=g,Wt(g),g):(h=c,(g=tr.get(_))&&(h=M({},c),$p(h,g)),i=i.ownerDocument||i,g=i.createElement("script"),Wt(g),an(g,"link",h),i.head.appendChild(g),o.instance=g);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(h=o.instance,o.state.loading|=4,dd(h,c.precedence,i));return o.instance}function dd(i,o,c){for(var h=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=h.length?h[h.length-1]:null,_=g,C=0;C<h.length;C++){var k=h[C];if(k.dataset.precedence===o)_=k;else if(_!==g)break}_?_.parentNode.insertBefore(i,_.nextSibling):(o=c.nodeType===9?c.head:c,o.insertBefore(i,o.firstChild))}function Up(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.title==null&&(i.title=o.title)}function $p(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.integrity==null&&(i.integrity=o.integrity)}var fd=null;function rS(i,o,c){if(fd===null){var h=new Map,g=fd=new Map;g.set(c,h)}else g=fd,h=g.get(c),h||(h=new Map,g.set(c,h));if(h.has(i))return h;for(h.set(i,null),c=c.getElementsByTagName(i),g=0;g<c.length;g++){var _=c[g];if(!(_[qs]||_[un]||i==="link"&&_.getAttribute("rel")==="stylesheet")&&_.namespaceURI!=="http://www.w3.org/2000/svg"){var C=_.getAttribute(o)||"";C=i+C;var k=h.get(C);k?k.push(_):h.set(C,[_])}}return h}function iS(i,o,c){i=i.ownerDocument||i,i.head.insertBefore(c,o==="title"?i.querySelector("head > title"):null)}function qj(i,o,c){if(c===1||o.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;switch(o.rel){case"stylesheet":return i=o.disabled,typeof o.precedence=="string"&&i==null;default:return!0}case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function aS(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var Ll=null;function Zj(){}function Wj(i,o,c){if(Ll===null)throw Error(r(475));var h=Ll;if(o.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var g=Qo(c.href),_=i.querySelector(Dl(g));if(_){i=_._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(h.count++,h=hd.bind(h),i.then(h,h)),o.state.loading|=4,o.instance=_,Wt(_);return}_=i.ownerDocument||i,c=tS(c),(g=tr.get(g))&&Up(c,g),_=_.createElement("link"),Wt(_);var C=_;C._p=new Promise(function(k,z){C.onload=k,C.onerror=z}),an(_,"link",c),o.instance=_}h.stylesheets===null&&(h.stylesheets=new Map),h.stylesheets.set(o,i),(i=o.state.preload)&&(o.state.loading&3)===0&&(h.count++,o=hd.bind(h),i.addEventListener("load",o),i.addEventListener("error",o))}}function Yj(){if(Ll===null)throw Error(r(475));var i=Ll;return i.stylesheets&&i.count===0&&Hp(i,i.stylesheets),0<i.count?function(o){var c=setTimeout(function(){if(i.stylesheets&&Hp(i,i.stylesheets),i.unsuspend){var h=i.unsuspend;i.unsuspend=null,h()}},6e4);return i.unsuspend=o,function(){i.unsuspend=null,clearTimeout(c)}}:null}function hd(){if(this.count--,this.count===0){if(this.stylesheets)Hp(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var md=null;function Hp(i,o){i.stylesheets=null,i.unsuspend!==null&&(i.count++,md=new Map,o.forEach(Xj,i),md=null,hd.call(i))}function Xj(i,o){if(!(o.state.loading&4)){var c=md.get(i);if(c)var h=c.get(null);else{c=new Map,md.set(i,c);for(var g=i.querySelectorAll("link[data-precedence],style[data-precedence]"),_=0;_<g.length;_++){var C=g[_];(C.nodeName==="LINK"||C.getAttribute("media")!=="not all")&&(c.set(C.dataset.precedence,C),h=C)}h&&c.set(null,h)}g=o.instance,C=g.getAttribute("data-precedence"),_=c.get(C)||h,_===h&&c.set(null,g),c.set(C,g),this.count++,h=hd.bind(this),g.addEventListener("load",h),g.addEventListener("error",h),_?_.parentNode.insertBefore(g,_.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(g,i.firstChild)),o.state.loading|=4}}var jl={$$typeof:x,Provider:null,Consumer:null,_currentValue:he,_currentValue2:he,_threadCount:0};function Qj(i,o,c,h,g,_,C,k){this.tag=1,this.containerInfo=i,this.finishedWork=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=Gh(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gh(0),this.hiddenUpdates=Gh(null),this.identifierPrefix=h,this.onUncaughtError=g,this.onCaughtError=_,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=k,this.incompleteTransitions=new Map}function oS(i,o,c,h,g,_,C,k,z,K,le,me){return i=new Qj(i,o,c,C,k,z,K,me),o=1,_===!0&&(o|=24),_=Jn(3,null,null,o),i.current=_,_.stateNode=i,o=Em(),o.refCount++,i.pooledCache=o,o.refCount++,_.memoizedState={element:h,isDehydrated:c,cache:o},tp(_),i}function sS(i){return i?(i=ko,i):ko}function lS(i,o,c,h,g,_){g=sS(g),h.context===null?h.context=g:h.pendingContext=g,h=Bi(o),h.payload={element:c},_=_===void 0?null:_,_!==null&&(h.callback=_),c=Ui(i,h,o),c!==null&&(bn(c,i,o),vl(c,i,o))}function cS(i,o){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var c=i.retryLane;i.retryLane=c!==0&&c<o?c:o}}function Fp(i,o){cS(i,o),(i=i.alternate)&&cS(i,o)}function uS(i){if(i.tag===13){var o=Ii(i,67108864);o!==null&&bn(o,i,67108864),Fp(i,67108864)}}var pd=!0;function Jj(i,o,c,h){var g=P.T;P.T=null;var _=ie.p;try{ie.p=2,Gp(i,o,c,h)}finally{ie.p=_,P.T=g}}function eM(i,o,c,h){var g=P.T;P.T=null;var _=ie.p;try{ie.p=8,Gp(i,o,c,h)}finally{ie.p=_,P.T=g}}function Gp(i,o,c,h){if(pd){var g=Kp(h);if(g===null)Ip(i,o,h,gd,c),fS(i,h);else if(nM(g,i,o,c,h))h.stopPropagation();else if(fS(i,h),o&4&&-1<tM.indexOf(i)){for(;g!==null;){var _=_o(g);if(_!==null)switch(_.tag){case 3:if(_=_.stateNode,_.current.memoizedState.isDehydrated){var C=Ta(_.pendingLanes);if(C!==0){var k=_;for(k.pendingLanes|=2,k.entangledLanes|=2;C;){var z=1<<31-yn(C);k.entanglements[1]|=z,C&=~z}Ir(_),(bt&6)===0&&(Ju=be()+500,Nl(0))}}break;case 13:k=Ii(_,2),k!==null&&bn(k,_,2),nd(),Fp(_,2)}if(_=Kp(h),_===null&&Ip(i,o,h,gd,c),_===g)break;g=_}g!==null&&h.stopPropagation()}else Ip(i,o,h,null,c)}}function Kp(i){return i=Qh(i),qp(i)}var gd=null;function qp(i){if(gd=null,i=Ra(i),i!==null){var o=q(i);if(o===null)i=null;else{var c=o.tag;if(c===13){if(i=ye(o),i!==null)return i;i=null}else if(c===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return gd=i,null}function dS(i){switch(i){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(Ee()){case Ie:return 2;case rt:return 8;case ot:case wn:return 32;case wa:return 268435456;default:return 32}default:return 32}}var Zp=!1,Zi=null,Wi=null,Yi=null,Ml=new Map,Pl=new Map,Xi=[],tM="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 fS(i,o){switch(i){case"focusin":case"focusout":Zi=null;break;case"dragenter":case"dragleave":Wi=null;break;case"mouseover":case"mouseout":Yi=null;break;case"pointerover":case"pointerout":Ml.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pl.delete(o.pointerId)}}function zl(i,o,c,h,g,_){return i===null||i.nativeEvent!==_?(i={blockedOn:o,domEventName:c,eventSystemFlags:h,nativeEvent:_,targetContainers:[g]},o!==null&&(o=_o(o),o!==null&&uS(o)),i):(i.eventSystemFlags|=h,o=i.targetContainers,g!==null&&o.indexOf(g)===-1&&o.push(g),i)}function nM(i,o,c,h,g){switch(o){case"focusin":return Zi=zl(Zi,i,o,c,h,g),!0;case"dragenter":return Wi=zl(Wi,i,o,c,h,g),!0;case"mouseover":return Yi=zl(Yi,i,o,c,h,g),!0;case"pointerover":var _=g.pointerId;return Ml.set(_,zl(Ml.get(_)||null,i,o,c,h,g)),!0;case"gotpointercapture":return _=g.pointerId,Pl.set(_,zl(Pl.get(_)||null,i,o,c,h,g)),!0}return!1}function hS(i){var o=Ra(i.target);if(o!==null){var c=q(o);if(c!==null){if(o=c.tag,o===13){if(o=ye(c),o!==null){i.blockedOn=o,YI(i.priority,function(){if(c.tag===13){var h=Pn(),g=Ii(c,h);g!==null&&bn(g,c,h),Fp(c,h)}});return}}else if(o===3&&c.stateNode.current.memoizedState.isDehydrated){i.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}i.blockedOn=null}function yd(i){if(i.blockedOn!==null)return!1;for(var o=i.targetContainers;0<o.length;){var c=Kp(i.nativeEvent);if(c===null){c=i.nativeEvent;var h=new c.constructor(c.type,c);Xh=h,c.target.dispatchEvent(h),Xh=null}else return o=_o(c),o!==null&&uS(o),i.blockedOn=c,!1;o.shift()}return!0}function mS(i,o,c){yd(i)&&c.delete(o)}function rM(){Zp=!1,Zi!==null&&yd(Zi)&&(Zi=null),Wi!==null&&yd(Wi)&&(Wi=null),Yi!==null&&yd(Yi)&&(Yi=null),Ml.forEach(mS),Pl.forEach(mS)}function vd(i,o){i.blockedOn===o&&(i.blockedOn=null,Zp||(Zp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,rM)))}var bd=null;function pS(i){bd!==i&&(bd=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){bd===i&&(bd=null);for(var o=0;o<i.length;o+=3){var c=i[o],h=i[o+1],g=i[o+2];if(typeof h!="function"){if(qp(h||c)===null)continue;break}var _=_o(c);_!==null&&(i.splice(o,3),o-=3,Pm(_,{pending:!0,data:g,method:c.method,action:h},h,g))}}))}function Vl(i){function o(z){return vd(z,i)}Zi!==null&&vd(Zi,i),Wi!==null&&vd(Wi,i),Yi!==null&&vd(Yi,i),Ml.forEach(o),Pl.forEach(o);for(var c=0;c<Xi.length;c++){var h=Xi[c];h.blockedOn===i&&(h.blockedOn=null)}for(;0<Xi.length&&(c=Xi[0],c.blockedOn===null);)hS(c),c.blockedOn===null&&Xi.shift();if(c=(i.ownerDocument||i).$$reactFormReplay,c!=null)for(h=0;h<c.length;h+=3){var g=c[h],_=c[h+1],C=g[Tn]||null;if(typeof _=="function")C||pS(c);else if(C){var k=null;if(_&&_.hasAttribute("formAction")){if(g=_,C=_[Tn]||null)k=C.formAction;else if(qp(g)!==null)continue}else k=C.action;typeof k=="function"?c[h+1]=k:(c.splice(h,3),h-=3),pS(c)}}}function Wp(i){this._internalRoot=i}_d.prototype.render=Wp.prototype.render=function(i){var o=this._internalRoot;if(o===null)throw Error(r(409));var c=o.current,h=Pn();lS(c,h,i,o,null,null)},_d.prototype.unmount=Wp.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var o=i.containerInfo;i.tag===0&&Zo(),lS(i.current,2,null,i,null,null),nd(),o[bo]=null}};function _d(i){this._internalRoot=i}_d.prototype.unstable_scheduleHydration=function(i){if(i){var o=H0();i={blockedOn:null,target:i,priority:o};for(var c=0;c<Xi.length&&o!==0&&o<Xi[c].priority;c++);Xi.splice(c,0,i),c===0&&hS(i)}};var gS=t.version;if(gS!=="19.0.0")throw Error(r(527,gS,"19.0.0"));ie.findDOMNode=function(i){var o=i._reactInternals;if(o===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=J(o),i=i!==null?F(i):null,i=i===null?null:i.stateNode,i};var iM={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:P,findFiberByHostInstance:Ra,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ed=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ed.isDisabled&&Ed.supportsFiber)try{Jr=Ed.inject(iM),tn=Ed}catch{}}return Ul.createRoot=function(i,o){if(!a(i))throw Error(r(299));var c=!1,h="",g=IE,_=LE,C=jE,k=null;return o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onUncaughtError!==void 0&&(g=o.onUncaughtError),o.onCaughtError!==void 0&&(_=o.onCaughtError),o.onRecoverableError!==void 0&&(C=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(k=o.unstable_transitionCallbacks)),o=oS(i,1,!1,null,null,c,h,g,_,C,k,null),i[bo]=o.current,Dp(i.nodeType===8?i.parentNode:i),new Wp(o)},Ul.hydrateRoot=function(i,o,c){if(!a(i))throw Error(r(299));var h=!1,g="",_=IE,C=LE,k=jE,z=null,K=null;return c!=null&&(c.unstable_strictMode===!0&&(h=!0),c.identifierPrefix!==void 0&&(g=c.identifierPrefix),c.onUncaughtError!==void 0&&(_=c.onUncaughtError),c.onCaughtError!==void 0&&(C=c.onCaughtError),c.onRecoverableError!==void 0&&(k=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(z=c.unstable_transitionCallbacks),c.formState!==void 0&&(K=c.formState)),o=oS(i,1,!0,o,c??null,h,g,_,C,k,z,K),o.context=sS(null),c=o.current,h=Pn(),g=Bi(h),g.callback=null,Ui(c,g,h),o.current.lanes=h,Ks(o,h),Ir(o),i[bo]=o.current,Dp(i),new _d(o)},Ul.version="19.0.0",Ul}var TS;function gM(){if(TS)return Qp.exports;TS=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Qp.exports=pM(),Qp.exports}var yM=gM();const vM={locales:["en","en-GB","fr","es","de","ja","ko","zh","it","pt","hi","ar","ru"],requiredLocales:["en","en-GB","fr","es","de","ja","ko","zh","it","pt","hi","ar","ru"],strictMode:"strict",defaultLocale:"en"},bM={headerName:"x-intlayer-locale",cookieName:"INTLAYER_LOCALE",prefixDefault:!1,basePath:"",serverSetCookie:"always",noPrefix:!1,detectLocaleOnPrefetchNoPrefix:!1},_M={fileExtensions:[".content.ts",".content.js",".content.cjs",".content.cjx",".content.mjs",".content.mjx",".content.json",".content.tsx",".content.jsx"],baseDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor",excludedPath:["node_modules",".intlayer",".next",".nuxt",".expo","dist"],watch:!1,contentDir:["/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor"],dictionariesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/dictionary",moduleAugmentationDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/types",dictionaryOutput:["intlayer"],unmergedDictionariesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/unmerged_dictionary",dynamicDictionariesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/dynamic_dictionary",i18nextResourcesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/i18next_resources",reactIntlMessagesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/intl_messages",typesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/types",mainDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/main",configDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/config",watchedFilesPattern:["/**/*.content.ts","/**/*.content.js","/**/*.content.cjs","/**/*.content.cjx","/**/*.content.mjs","/**/*.content.mjx","/**/*.content.json","/**/*.content.tsx","/**/*.content.jsx"],watchedFilesPatternWithPath:["/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.ts","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.js","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.cjs","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.cjx","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.mjs","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.mjx","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.json","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.tsx","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.jsx"],outputFilesPatternWithPath:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/dictionary/**/*.json"},EM={applicationURL:"http://localhost:5173/",editorURL:"http://localhost:8000",cmsURL:"https://intlayer.org",backendURL:"https://back.intlayer.org",port:8e3,enabled:!0,dictionaryPriorityStrategy:"local_first",hotReload:!1},xM={mode:"default",prefix:"\x1B[90m[intlayer] \x1B[0m"},SM={},AM={optimize:!0,importMode:"static",traversePattern:["**/*.{js,ts,mjs,cjs,jsx,tsx,mjx,cjx,vue,svelte,svte}","!**/node_modules/**"]},Ge={internationalization:vM,middleware:bM,content:_M,editor:EM,log:xM,ai:SM,build:AM};var B=(e=>(e.AFRIKAANS="af",e.AFRIKAANS_SOUTH_AFRICA="af-ZA",e.ARABIC="ar",e.ARABIC_UNITED_ARAB_EMIRATES="ar-AE",e.ARABIC_BAHRAIN="ar-BH",e.ARABIC_ALGERIA="ar-DZ",e.ARABIC_EGYPT="ar-EG",e.ARABIC_IRAQ="ar-IQ",e.ARABIC_JORDAN="ar-JO",e.ARABIC_KUWAIT="ar-KW",e.ARABIC_LEBANON="ar-LB",e.ARABIC_LIBYA="ar-LY",e.ARABIC_MOROCCO="ar-MA",e.ARABIC_OMAN="ar-OM",e.ARABIC_QATAR="ar-QA",e.ARABIC_SAUDI_ARABIA="ar-SA",e.ARABIC_SYRIA="ar-SY",e.ARABIC_TUNISIA="ar-TN",e.ARABIC_YEMEN="ar-YE",e.AZERI_LATIN="az",e.AZERI_LATIN_AZERBAIJAN="az-AZ",e.BELARUSIAN="be",e.BELARUSIAN_BELARUS="be-BY",e.BULGARIAN="bg",e.BULGARIAN_BULGARIA="bg-BG",e.BOSNIAN="bs",e.BOSNIAN_BOSNIA_AND_HERZEGOVINA="bs-BA",e.CATALAN="ca",e.CATALAN_SPAIN="ca-ES",e.CZECH="cs",e.CZECH_CZECH_REPUBLIC="cs-CZ",e.WELSH="cy",e.WELSH_UNITED_KINGDOM="cy-GB",e.DANISH="da",e.DANISH_DENMARK="da-DK",e.GERMAN="de",e.GERMAN_AUSTRIA="de-AT",e.GERMAN_SWITZERLAND="de-CH",e.GERMAN_GERMANY="de-DE",e.GERMAN_LIECHTENSTEIN="de-LI",e.GERMAN_LUXEMBOURG="de-LU",e.DIVEHI="dv",e.DIVEHI_MALDIVES="dv-MV",e.GREEK="el",e.GREEK_GREECE="el-GR",e.ENGLISH="en",e.ENGLISH_AUSTRALIA="en-AU",e.ENGLISH_BELIZE="en-BZ",e.ENGLISH_CANADA="en-CA",e.ENGLISH_CARIBBEAN="en-CB",e.ENGLISH_UNITED_KINGDOM="en-GB",e.ENGLISH_IRELAND="en-IE",e.ENGLISH_JAMAICA="en-JM",e.ENGLISH_NEW_ZEALAND="en-NZ",e.ENGLISH_PHILIPPINES="en-PH",e.ENGLISH_TRINIDAD_AND_TOBAGO="en-TT",e.ENGLISH_UNITED_STATES="en-US",e.ENGLISH_SOUTH_AFRICA="en-ZA",e.ENGLISH_ZIMBABWE="en-ZW",e.ESPERANTO="eo",e.SPANISH="es",e.SPANISH_ARGENTINA="es-AR",e.SPANISH_BOLIVIA="es-BO",e.SPANISH_CHILE="es-CL",e.SPANISH_COLOMBIA="es-CO",e.SPANISH_COSTA_RICA="es-CR",e.SPANISH_DOMINICAN_REPUBLIC="es-DO",e.SPANISH_ECUADOR="es-EC",e.SPANISH_SPAIN="es-ES",e.SPANISH_GUATEMALA="es-GT",e.SPANISH_HONDURAS="es-HN",e.SPANISH_MEXICO="es-MX",e.SPANISH_NICARAGUA="es-NI",e.SPANISH_PANAMA="es-PA",e.SPANISH_PERU="es-PE",e.SPANISH_PUERTO_RICO="es-PR",e.SPANISH_PARAGUAY="es-PY",e.SPANISH_EL_SALVADOR="es-SV",e.SPANISH_URUGUAY="es-UY",e.SPANISH_VENEZUELA="es-VE",e.ESTONIAN="et",e.ESTONIAN_ESTONIA="et-EE",e.BASQUE="eu",e.BASQUE_SPAIN="eu-ES",e.FARSI="fa",e.FARSI_IRAN="fa-IR",e.FINNISH="fi",e.FINNISH_FINLAND="fi-FI",e.FAROESE="fo",e.FAROESE_FAROE_ISLANDS="fo-FO",e.FRENCH="fr",e.FRENCH_BELGIUM="fr-BE",e.FRENCH_CANADA="fr-CA",e.FRENCH_SWITZERLAND="fr-CH",e.FRENCH_FRANCE="fr-FR",e.FRENCH_LUXEMBOURG="fr-LU",e.FRENCH_PRINCIPALITY_OF_MONACO="fr-MC",e.GALICIAN="gl",e.GALICIAN_SPAIN="gl-ES",e.GUJARATI="gu",e.GUJARATI_INDIA="gu-IN",e.HEBREW="he",e.HEBREW_ISRAEL="he-IL",e.HINDI="hi",e.HINDI_INDIA="hi-IN",e.CROATIAN="hr",e.CROATIAN_BOSNIA_AND_HERZEGOVINA="hr-BA",e.CROATIAN_CROATIA="hr-HR",e.HUNGARIAN="hu",e.HUNGARIAN_HUNGARY="hu-HU",e.ARMENIAN="hy",e.ARMENIAN_ARMENIA="hy-AM",e.INDONESIAN="id",e.INDONESIAN_INDONESIA="id-ID",e.ICELANDIC="is",e.ICELANDIC_ICELAND="is-IS",e.ITALIAN="it",e.ITALIAN_SWITZERLAND="it-CH",e.ITALIAN_ITALY="it-IT",e.JAPANESE="ja",e.JAPANESE_JAPAN="ja-JP",e.GEORGIAN="ka",e.GEORGIAN_GEORGIA="ka-GE",e.KAZAKH="kk",e.KAZAKH_KAZAKHSTAN="kk-KZ",e.KANNADA="kn",e.KANNADA_INDIA="kn-IN",e.KOREAN="ko",e.KOREAN_KOREA="ko-KR",e.KONKANI="kok",e.KONKANI_INDIA="kok-IN",e.KYRGYZ="ky",e.KYRGYZ_KYRGYZSTAN="ky-KG",e.LITHUANIAN="lt",e.LITHUANIAN_LITHUANIA="lt-LT",e.LATVIAN="lv",e.LATVIAN_LATVIA="lv-LV",e.MAORI="mi",e.MAORI_NEW_ZEALAND="mi-NZ",e.FYRO_MACEDONIAN="mk",e.FYRO_MACEDONIAN_MACEDONIA="mk-MK",e.MONGOLIAN="mn",e.MONGOLIAN_MONGOLIA="mn-MN",e.MARATHI="mr",e.MARATHI_INDIA="mr-IN",e.MALAY="ms",e.MALAY_BRUNEI_DARUSSALAM="ms-BN",e.MALAY_MALAYSIA="ms-MY",e.MALTESE="mt",e.MALTESE_MALTA="mt-MT",e.NORWEGIAN_BOKMAL="nb",e.NORWEGIAN_BOKMAL_NORWAY="nb-NO",e.DUTCH="nl",e.DUTCH_BELGIUM="nl-BE",e.DUTCH_NETHERLANDS="nl-NL",e.NORWEGIAN_NYNORSK_NORWAY="nn-NO",e.NORTHERN_SOTHO="ns",e.NORTHERN_SOTHO_SOUTH_AFRICA="ns-ZA",e.PUNJABI="pa",e.PUNJABI_INDIA="pa-IN",e.POLISH="pl",e.POLISH_POLAND="pl-PL",e.PASHTO="ps",e.PASHTO_AFGHANISTAN="ps-AR",e.PORTUGUESE="pt",e.PORTUGUESE_BRAZIL="pt-BR",e.PORTUGUESE_PORTUGAL="pt-PT",e.QUECHUA="qu",e.QUECHUA_BOLIVIA="qu-BO",e.QUECHUA_ECUADOR="qu-EC",e.QUECHUA_PERU="qu-PE",e.ROMANIAN="ro",e.ROMANIAN_ROMANIA="ro-RO",e.RUSSIAN="ru",e.RUSSIAN_RUSSIA="ru-RU",e.SANSKRIT="sa",e.SANSKRIT_INDIA="sa-IN",e.SAMI_NORTHERN="se",e.SAMI_NORTHERN_FINLAND="se-FI",e.SAMI_NORTHERN_NORWAY="se-NO",e.SAMI_NORTHERN_SWEDEN="se-SE",e.SLOVAK="sk",e.SLOVAK_SLOVAKIA="sk-SK",e.SLOVENIAN="sl",e.SLOVENIAN_SLOVENIA="sl-SI",e.ALBANIAN="sq",e.ALBANIAN_ALBANIA="sq-AL",e.SERBIAN_LATIN="sr",e.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA="sr-BA",e.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO="sr-SP",e.SWEDISH="sv",e.SWEDISH_FINLAND="sv-FI",e.SWEDISH_SWEDEN="sv-SE",e.SWAHILI="sw",e.SWAHILI_KENYA="sw-KE",e.SYRIAC="syr",e.SYRIAC_SYRIA="syr-SY",e.TAMIL="ta",e.TAMIL_INDIA="ta-IN",e.TELUGU="te",e.TELUGU_INDIA="te-IN",e.THAI="th",e.THAI_THAILAND="th-TH",e.TAGALOG="tl",e.TAGALOG_PHILIPPINES="tl-PH",e.TSWANA="tn",e.TSWANA_SOUTH_AFRICA="tn-ZA",e.TURKISH="tr",e.TURKISH_TURKEY="tr-TR",e.TATAR="tt",e.TATAR_RUSSIA="tt-RU",e.TSOGA="ts",e.UKRAINIAN="uk",e.UKRAINIAN_UKRAINE="uk-UA",e.URDU="ur",e.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN="ur-PK",e.UZBEK_LATIN="uz",e.UZBEK_LATIN_UZBEKISTAN="uz-UZ",e.VIETNAMESE="vi",e.VIETNAMESE_VIET_NAM="vi-VN",e.XHOSA="xh",e.XHOSA_SOUTH_AFRICA="xh-ZA",e.CHINESE="zh",e.CHINESE_SIMPLIFIED="zh-Hans",e.CHINESE_SIMPLIFIED_CHINA="zh-CN",e.CHINESE_HONG_KONG="zh-HK",e.CHINESE_MACAU="zh-MO",e.CHINESE_SINGAPORE="zh-SG",e.CHINESE_TRADITIONAL="zh-Hant",e.ZULU="zu",e.ZULU_SOUTH_AFRICA="zu-ZA",e.BENGALI="bn",e.BENGALI_BANGLADESH="bn-BD",e.BENGALI_INDIA="bn-IN",e.BENGALI_MYANMAR="bn-MM",e.BURMESE="my",e.BURMESE_MYANMAR="my-MM",e.KHMER="km",e.KHMER_CAMBODIA="km-KH",e.LAO="lo",e.LAO_LAOS="lo-LA",e.YORUBA="yo",e.YORUBA_NIGERIA="yo-NG",e.AMHARIC="am",e.AMHARIC_ETHIOPIA="am-ET",e.NEPALI="ne",e))(B||{}),Z=(e=>(e.Translation="translation",e.Enumeration="enumeration",e.Condition="condition",e.Insertion="insertion",e.File="file",e.Object="object",e.Array="array",e.Nested="nested",e.ReactNode="reactNode",e.Markdown="markdown",e.Text="text",e.Number="number",e.Boolean="boolean",e.Gender="gender",e.Unknown="unknown",e))(Z||{});const H1=(e,t,n)=>({...n,nodeType:e,[e]:t}),RS=(e,t,n)=>{let r=e,a=null,s=[];if(t.length===0)return n;for(let l=0;l<t.length;l++){const u=t[l];if(a=r,(u.type===Z.Object||u.type===Z.Array)&&(s=[u.key],(!r[u.key]||typeof r[u.key]!="object")&&(r[u.key]={}),r=r[u.key]),(u.type===Z.Translation||u.type===Z.Enumeration)&&(s=[u.type,u.key],(!r[u.type]||typeof r[u.type]!="object")&&(r[u.type]={}),(!r[u.type][u.key]||typeof r[u.type][u.key]!="object")&&(r[u.type][u.key]={}),r=r[u.type][u.key]),(u.type===Z.Enumeration||u.type===Z.Condition)&&(s=[u.type,u.key],(!r[u.type]||typeof r[u.type]!="object")&&(r[u.type]={}),(!r[u.type][u.key]||typeof r[u.type][u.key]!="object")&&(r[u.type][u.key]={}),r=r[u.type][u.key]),(u.type===Z.Markdown||u.type===Z.Insertion)&&(s=[u.type],(!r[u.type]||typeof r[u.type]!="object")&&(r[u.type]=""),r=r[u.type]),u.type===Z.File&&(s=["content"],r=r.content),u.type&&(r=r),l===t.length-1&&a&&s.length>0){let d=a;for(const f of s.slice(0,-1))d=d[f];typeof n>"u"?delete d[s[s.length-1]]:d[s[s.length-1]]=n}}return e},Ur=(e,t)=>{let n=structuredClone(e);for(const r of t)r.type===Z.Object||r.type===Z.Array?n=n==null?void 0:n[r.key]:r.type===Z.Translation||r.type===Z.Condition||r.type===Z.Enumeration?n=n==null?void 0:n[r.type][r.key]:(r.type===Z.Markdown||r.type===Z.Insertion||r.type===Z.File)&&(n=n==null?void 0:n[r.type]);return n},F1=e=>{if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;if(typeof(e==null?void 0:e.nodeType)=="string"){const t=e,n=t[t.nodeType];if(t.nodeType===Z.Translation||t.nodeType===Z.Enumeration||t.nodeType===Z.Condition||t.nodeType===Z.Insertion||t.nodeType===Z.File){const r=Object.keys(n)[0];return n[r]}return t.nodeType===Z.Nested?void 0:n}return!e||typeof e!="object"?e:Array.isArray(e)?e[0]:e},wM=(e,t,n)=>{let r=e,a=null,s=null;for(const l of n)a=r,(l.type===Z.Object||l.type===Z.Array)&&(s=l.key,r=r[l.key]),(l.type===Z.Translation||l.type===Z.Enumeration||l.type===Z.Condition)&&(s=l.type,r=r[l.type][l.key]),(l.type===Z.Markdown||l.type===Z.ReactNode||l.type===Z.Insertion||l.type===Z.File)&&(s=l.type,r=r[l.type]);if(a&&s!==null)if(Array.isArray(a))a[s]=r;else{const l={};for(const u of Object.keys(a))u===s&&typeof t<"u"?l[t]=r:l[u]=a[u];Object.keys(a).forEach(u=>delete a[u]),Object.assign(a,l)}return e},TM=e=>typeof e=="object"&&typeof(e==null?void 0:e.key)<"u"&&typeof(e==null?void 0:e.props)<"u",Cs=e=>typeof e=="string"?Z.Text:typeof(e==null?void 0:e.nodeType)=="string"?e.nodeType:Array.isArray(e)?Z.Array:TM(e)?Z.ReactNode:typeof e=="number"?Z.Number:typeof e=="boolean"?Z.Boolean:e&&typeof e=="object"?Z.Object:Z.Unknown,$l=(e,t,n)=>{const r=structuredClone(n);switch(e){case Z.Translation:return{nodeType:Z.Translation,[Z.Translation]:Object.assign({},...t.map(a=>({[a]:structuredClone(r)??""})))};case Z.Enumeration:return{nodeType:Z.Enumeration,[Z.Enumeration]:{1:r??""}};case Z.Condition:return{nodeType:Z.Condition,[Z.Condition]:{true:r??"",false:r??""}};case Z.Insertion:return{nodeType:Z.Insertion,[Z.Insertion]:{insertion:r??""}};case Z.Nested:return{nodeType:Z.Nested,[Z.Nested]:{dictionaryKey:""}};case Z.Markdown:return{nodeType:Z.Markdown,[Z.Markdown]:r??""};case Z.File:return{nodeType:Z.File,[Z.File]:r??""};case Z.Object:return{newKey:r??""};case Z.Array:return[r??""];case Z.Text:return r??"";case Z.Number:return r??0;case Z.Boolean:return r??!0;default:return r??""}},or=e=>{if(typeof e=="string")return"";if(typeof e=="number")return 0;if(typeof e=="boolean")return!0;if(typeof(e==null?void 0:e.nodeType)=="string"){const r=e,a=r[r.nodeType];return r.nodeType===Z.Translation||r.nodeType===Z.Enumeration||r.nodeType===Z.Condition||r.nodeType===Z.Insertion?or(a):r.nodeType===Z.Nested?"dictionary-key":r.nodeType===Z.File?"file/path":r.nodeType===Z.Markdown?or(r):a}if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(or);const t=Object.entries(e).map(([r,a])=>[r,or(a)]);return Object.fromEntries(t)},Qd=(e,t)=>{for(const r of t.plugins??[])if(r.canHandle(e))return r.transform(e,t,(a,s)=>Qd(a,s));if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map((r,a)=>{const s={...t,children:r,keyPath:[...t.keyPath,{type:Z.Array,key:a}]};return Qd(r,s)});const n={};for(const r in e){const a={...t,children:e[r],keyPath:[...t.keyPath,{type:Z.Object,key:r}]};n[r]=Qd(e[r],a)}return n},RM=(e,t)=>{const n=Object.keys(e),r=n[n.length-1];return e[`${t}`]??e.fallback??e[r]},CM=(e,t)=>{const n=Object.keys(e);for(const r of n){const a=!r.startsWith(">")&&!r.startsWith("<")&&!r.startsWith("=")&&parseFloat(r)===t||r.startsWith("=")&&parseFloat(r.slice(1))===t,s=r.startsWith(">")&&t>parseFloat(r.slice(1)),l=r.startsWith(">=")&&t>=parseFloat(r.slice(2)),u=r.startsWith("<")&&t<parseFloat(r.slice(1)),d=r.startsWith("<=")&&t<=parseFloat(r.slice(2));if(a||s||l||u||d)return r}},NM=(e,t)=>{const n=CM(e,t)??"fallback";return e[n]},OM=(e,t)=>e.replace(/\{\{(.*?)\}\}/g,(n,r)=>(t[r]??"").toString()),kM="dictionary-edition-drawer",DM={openDictionaryEditor:{label:{nodeType:"translation",translation:{en:"Click to open the dictionary in the editor",fr:"Cliquez pour ouvrir le dictionnaire dans l’éditeur",es:"Haga clic para abrir el diccionario en el editor",de:"Klicken Sie hier, um das Wörterbuch im Editor zu öffnen",ja:"エディターで辞書を開く",ko:"편집기에서 사전 열기",zh:"点击打开词典到编辑器",it:"Fai clic per aprire il dizionario nell’editor",pt:"Clique para abrir o dicionário no editor",hi:"एडिटर में शब्दकोश खोलने के लिए क्लिक करें",ar:"انقر لفتح قاموس في المحرر",ru:"Нажмите, чтобы открыть словарь в редакторе","en-GB":"Click to open the dictionary in the editor"}}},backButtonText:{nodeType:"translation",translation:{en:"Dictionary list",fr:"Liste des dictionnaires",es:"Lista de diccionarios",de:"Wörterbuchliste",ja:"辞書リスト",ko:"사전 목록",zh:"词典列表",it:"Elenco di dizionari",pt:"Lista de dicionários",hi:"शब्दकोश सूची",ar:"قائمة القوامل",ru:"Список словарей","en-GB":"Dictionary list"}},modalTitle:{nodeType:"translation",translation:{en:"Edit dictionary",fr:"Modifier le dictionnaire",es:"Editar el diccionario",de:"Wörterbuch bearbeiten",ja:"辞書を編集",ko:"사전 편집",zh:"编辑词典",it:"Modifica dizionario",pt:"Editar dicionário",hi:"शब्दकोश संपादित करें",ar:"تحرير قاموس",ru:"Редактировать словарь","en-GB":"Edit dictionary"}},noDictionaryFocused:{nodeType:"translation",translation:{en:"No dictionary focused",fr:"Aucun dictionnaire sélectionné",es:"No hay diccionario enfocado",de:"Kein Wörterbuch ausgewählt",ja:"フォーカスされた辞書がありません",ko:"포커스가 있는 사전이 없습니다",zh:"没有聚焦的词典",it:"Nessun dizionario selezionato",pt:"Nenhum dicionário focalizado",hi:"कोई फोकस शब्दकोश नहीं है",ar:"لا يوجد قاموس مرتبط",ru:"Нет фокусированного словаря","en-GB":"No dictionary focused"}}},IM={key:kM,content:DM},LM="long-press-message",jM={message:{fields:["dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey"],nodeType:"insertion",insertion:{nodeType:"translation",translation:{en:'Long press to edit the "{{dictionaryKey}}" dictionary',fr:'Long press pour éditer le dictionnaire "{{dictionaryKey}}"',es:'Presiona largo para editar el diccionario "{{dictionaryKey}}"',de:'Lang press für Bearbeitung des Wörterbuchs "{{dictionaryKey}}"',it:'Premi a lungo per modificare il dizionario "{{dictionaryKey}}"',pt:'Pressione longa para editar o dicionário "{{dictionaryKey}}"',ru:'Длительное нажатие для редактирования словаря "{{dictionaryKey}}"',ja:'長押しして編集 "{{dictionaryKey}}" 辞書',ko:'길게 눌러 편집 "{{dictionaryKey}}" 사전',zh:'长按编辑 "{{dictionaryKey}}" 字典',"en-GB":'Long press to edit the "{{dictionaryKey}}" dictionary',ar:'اضغط طويلاً للتعديل "{{dictionaryKey}}"',hi:'लंग प्रेस करें टू एडिट "{{dictionaryKey}}"'}}}},MM={key:LM,content:jM},PM="no-application-url-view",zM={title:{nodeType:"translation",translation:{en:"Your project configuration do not includes application URL","en-GB":"Your project configuration do not includes application URL",fr:"Votre configuration de projet ne comprend pas l’URL de l’application",es:"Su configuración de proyecto no incluye la URL de la aplicación",de:"Ihre Projektkonfiguration enthält keine Anwendungs-URL",ja:"あなたのプロジェクト構成にはアプリケーション URL が含まれていません",ko:"당신의 프로젝트 구성에 앱 URL이 포함되어 있지 않습니다.",zh:"您的项目配置未包含应用程序 URL",pt:"Sua configuração do projeto não inclui a URL do aplicativo",ru:"Ваша конфигурация проекта не включает URL-адрес приложения",ar:"تم إنشاء مشروعك بدون تضمين عنوان URL التطبيق",hi:"आपके प्रोजेक्ट कॉन्फ़िगरेशन में ऐप का URL शामिल नहीं है",it:"La configurazione del progetto non include l’URL dell’applicazione"}},description:{nodeType:"translation",translation:{en:"To use the editor, you need to add the URL of the application to access to the configuration file.","en-GB":"To use the editor, you need to add the URL of the application to access to the configuration file.",fr:"Pour utiliser l’éditeur, vous devez ajouter l’URL de l’application pour accéder au fichier de configuration.",es:"Para usar el editor, debe agregar la URL de la aplicación para acceder al archivo de configuración.",de:"Um den Editor zu verwenden, müssen Sie die URL der Anwendung hinzufügen, um auf die Konfigurationsdatei zuzugreifen.",ja:"エディターを使用するには、アプリケーションの URL を設定ファイルに追加する必要があります。",ko:"에디터를 사용하려면 설정 파일에 앱 URL을 추가해야 합니다.",zh:"要使用编辑器,您需要将应用程序 URL 添加到访问配置文件。",pt:"Para usar o editor, você precisa adicionar a URL do aplicativo para acessar o arquivo de configuração.",ru:"Чтобы использовать редактор, вам необходимо добавить URL-адрес приложения для доступа к файлу конфигурации.",ar:"لاستخدام المحرر، يجب عليك إضافة عنوان URL التطبيق للوصول إلى ملف التكوين.",hi:"एडिटर का उपयोग करने के लिए, आपको कॉन्फ़िगरेशन फ़ाइल तक ऐप का URL को जोड़ना होगा।",it:"Per utilizzare l’editor, è necessario aggiungere l’URL dell’applicazione per accedere al file di configurazione."}},documentationLink:{label:{nodeType:"translation",translation:{en:"Click to go to the editor documentation","en-GB":"Click to go to the editor documentation",fr:"Cliquez ici pour accéder à la documentation de l’éditeur",es:"Haga clic aquí para acceder a la documentación del editor",de:"Klicken Sie hier, um die Editor-Dokumentation zu besuchen",ja:"エディターのドキュメントに移動するには、ここをクリックしてください",ko:"에디터 문서로 이동하려면 여기를 클릭하십시오.",zh:"点击此处访问编辑器文档",pt:"Clique aqui para acessar a documentação do editor",ru:"Нажмите, чтобы перейти к документации редактора",ar:"انقر هنا للوصول إلى وثائق المحرر",hi:"एडिटर को डॉक्यूमेंट पर जाए रखना चाहते हैं?",it:"Fai clic qui per accedere alla documentazione dell’editor"}},text:{nodeType:"translation",translation:{en:"See how to configure the editor","en-GB":"See how to configure the editor",fr:"Voir comment configurer l’éditeur",de:"Siehe, wie man den Editor konfiguriert",ar:"انظر كيفية تكوين المحرر",hi:"एडिटर को काने के बारे में देखें",it:"Vedi come configurare l’editor",ja:"エディターの設定方法を見る",ru:"Смотрите, как настроить редактор",es:"Vea cómo configurar el editor",pt:"Veja como configurar o editor",ko:"에디터 설정 방법을 보십시오",zh:"查看如何配置编辑器"}}}},VM={key:PM,content:zM},CS={"dictionary-edition-drawer":IM,"long-press-message":MM,"no-application-url-view":VM},G1=(e,t,n)=>{const r={dictionaryKey:e.key,dictionaryPath:e.filePath,keyPath:[],plugins:n};return jv(e.content,r,t)},BM=(e,t,n)=>{const r=CS[e];if(!r)throw new Error(`Dictionary ${e} not found`,CS);return G1(r,t,n)},UM=(e,t,n)=>{const r=BM(e,n==null?void 0:n.locale,n==null?void 0:n.plugins);if(typeof t=="string"){const a=t.split(".");let s=r;for(const l of a)if(s=s==null?void 0:s[l],s===void 0)return r;return s}return r},$M=(e,t,n=!0)=>{const{defaultLocale:r}=Ge==null?void 0:Ge.internationalization;let a=e[t??r];return n&&!a&&(a=e[r]),a},HM=(e,t=!0)=>({id:"translation-plugin",canHandle:n=>typeof n=="object"&&(n==null?void 0:n.nodeType)===Z.Translation,transform:(n,r,a)=>{const s=structuredClone(n[Z.Translation]);for(const l in s){const u={...r,children:s[l],keyPath:[...r.keyPath,{type:Z.Translation,key:l}]};s[l]=a(s[l],u)}return $M(s,e,t)}}),FM={id:"enumeration-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===Z.Enumeration,transform:(e,t,n)=>{const r=structuredClone(e[Z.Enumeration]);for(const a in r){const s=r[a],l={...t,children:s,keyPath:[...t.keyPath,{type:Z.Enumeration,key:a}]};r[a]=n(s,l)}return a=>NM(r,a)}},GM={id:"condition-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===Z.Condition,transform:(e,t,n)=>{const r=structuredClone(e[Z.Condition]);for(const a in r){const s=r[a],l={...t,children:s,keyPath:[...t.keyPath,{type:Z.Condition,key:a}]};r[a]=n(s,l)}return a=>RM(r,a)}},KM={id:"insertion-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===Z.Insertion,transform:(e,t,n)=>{const r=[...t.keyPath,{type:Z.Insertion}],a=e[Z.Insertion];return n(a,{...t,children:a,keyPath:r,plugins:[{id:"insertion-string-plugin",canHandle:l=>typeof l=="string",transform:(l,u,d)=>{const f=d(l,{...u,children:l,plugins:[...(t.plugins??[]).filter(m=>m.id!=="intlayer-node-plugin")]});return m=>{const p=OM(f,m);return d(p,{...u,plugins:t.plugins,children:p})}}},...t.plugins??[]]})}},qM={id:"nested-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===Z.Nested,transform:(e,t)=>UM(e.nested.dictionaryKey,e.nested.path,t)},ZM={id:"file-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===Z.File,transform:(e,t,n)=>n(e.content,{...t,children:e.content})},jv=(e,t,n=Ge==null?void 0:Ge.internationalization.defaultLocale)=>{const r=[KM,HM(n),FM,GM,qM,ZM,...t.plugins??[]];return Qd(e,{...t,plugins:r})},NS={method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"},WM=e=>(Object.keys(e).forEach(t=>{e[t]===void 0&&delete e[t]}),e),xd=e=>e.reduce((t,n)=>{const r=t??{},a=WM(n??{});return typeof r=="object"&&typeof a=="object"?{...r,...a}:a??r},{}),je=async(e,...t)=>{const{signal:n}=new AbortController;let r="",a;const s=t.map(({body:x,params:y,headers:E,...A})=>A),l=xd([NS,...s]),u=xd([NS.headers,...t.map(x=>x.headers)]),d=xd(t.map(x=>x.params)),f=l.method;if(f!=="GET"&&f!=="HEAD"){const x=xd(t.map(y=>y.body));(u==null?void 0:u["Content-Type"])==="application/x-www-form-urlencoded"?a=new URLSearchParams(x).toString():a=JSON.stringify(x)}Object.entries(d).length>0&&(r=`?${new URLSearchParams(d).toString()}`);const m={...l,headers:u,body:a,signal:n},p=`${e}${r}`,v=await fetch(p,m);if(!v.ok){const x=await v.json();throw new Error(JSON.stringify(x.error)??"An error occurred")}return await v.json()},YM=(e={},t)=>{var p,v;const n=((p=t==null?void 0:t.editor)==null?void 0:p.backendURL)??((v=Ge.editor)==null?void 0:v.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/dictionary`;return{getDictionaries:async(x,y={})=>await je(r,e,y,{params:x}),getDictionariesKeys:async(x={})=>await je(`${r}/keys`,e,x),getDictionary:async(x,y,E={})=>await je(`${r}/${x}`,e,E,{params:y?{version:y.toString()}:void 0}),pushDictionaries:async(x,y={})=>await je(`${r}`,e,y,{method:"PATCH",body:{dictionaries:x}}),addDictionary:async(x,y={})=>await je(`${r}`,e,y,{method:"POST",body:x}),updateDictionary:async(x,y,E={})=>await je(`${r}/${x}`,e,E,{method:"PUT",body:y}),deleteDictionary:async(x,y={})=>await je(`${r}/${x}`,e,y,{method:"DELETE"})}},K1=e=>{var s,l;const t=((s=e==null?void 0:e.editor)==null?void 0:s.backendURL)??((l=Ge.editor)==null?void 0:l.backendURL),{clientId:n,clientSecret:r}=(e==null?void 0:e.editor)??{};if(!t)throw new Error("Backend URL is not defined in the Intlayer configuration.");return{getOAuth2AccessToken:async(u={})=>await je(`${t}/oauth2/token`,{},u,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:{grant_type:"client_credentials",client_id:n,client_secret:r}})}},XM=(e={},t)=>{var v,x;const n=((v=t==null?void 0:t.editor)==null?void 0:v.backendURL)??((x=Ge.editor)==null?void 0:x.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/ai`;return{customQuery:async(y,E={})=>await je(r,e,E,{method:"POST",body:y}),translateJSON:async(y,E={})=>await je(`${r}/translate/json`,e,E,{method:"POST",body:y}),auditContentDeclaration:async(y,E={})=>await je(`${r}/audit/dictionary`,e,E,{method:"POST",body:y}),auditContentDeclarationField:async(y,E={})=>await je(`${r}/audit/dictionary/field`,e,E,{method:"POST",body:y}),auditContentDeclarationMetadata:async(y,E={})=>await je(`${r}/audit/dictionary/metadata`,e,E,{method:"POST",body:y}),auditTag:async(y,E={})=>await je(`${r}/audit/tag`,e,E,{method:"POST",body:y}),askDocQuestion:async(y,E={})=>{var O;if(!y)return;const{onMessage:A,onDone:T,...w}=y,R=new AbortController;try{const N=await fetch(`${r}/ask`,{method:"POST",headers:{"Content-Type":"application/json",...e.headers,...E.headers},body:JSON.stringify({...w,...e.body,...E.body}),signal:R.signal,credentials:"include"});if(!N.ok){let P="An error occurred";try{const M=await N.json();P=JSON.stringify(M.error)??"An error occurred"}catch{try{const M=await N.text();M&&(P=M)}catch{}}throw new Error(P)}const I=(O=N.body)==null?void 0:O.getReader();if(!I)throw new Error("No reader available");const D=new TextDecoder;let j="";for(;;){const{done:P,value:M}=await I.read();if(P)break;j+=D.decode(M,{stream:!0});const oe=j.split(`
|
|
50
|
+
`).replace(Nj,"")}function Gx(i,o){return o=Fx(o),Fx(i)===o}function ld(){}function ct(i,o,c,h,g,_){switch(c){case"children":typeof h=="string"?o==="body"||o==="textarea"&&h===""||Ao(i,h):(typeof h=="number"||typeof h=="bigint")&&o!=="body"&&Ao(i,""+h);break;case"className":gu(i,"class",h);break;case"tabIndex":gu(i,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":gu(i,c,h);break;case"style":t_(i,h,_);break;case"data":if(o!=="object"){gu(i,"data",h);break}case"src":case"href":if(h===""&&(o!=="a"||c!=="href")){i.removeAttribute(c);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(c);break}h=bu(""+h),i.setAttribute(c,h);break;case"action":case"formAction":if(typeof h=="function"){i.setAttribute(c,"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 _=="function"&&(c==="formAction"?(o!=="input"&&ct(i,o,"name",g.name,g,null),ct(i,o,"formEncType",g.formEncType,g,null),ct(i,o,"formMethod",g.formMethod,g,null),ct(i,o,"formTarget",g.formTarget,g,null)):(ct(i,o,"encType",g.encType,g,null),ct(i,o,"method",g.method,g,null),ct(i,o,"target",g.target,g,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(c);break}h=bu(""+h),i.setAttribute(c,h);break;case"onClick":h!=null&&(i.onclick=ld);break;case"onScroll":h!=null&&et("scroll",i);break;case"onScrollEnd":h!=null&&et("scrollend",i);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(c=h.__html,c!=null){if(g.children!=null)throw Error(r(60));i.innerHTML=c}}break;case"multiple":i.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":i.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){i.removeAttribute("xlink:href");break}c=bu(""+h),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(c,""+h):i.removeAttribute(c);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":h&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(c,""):i.removeAttribute(c);break;case"capture":case"download":h===!0?i.setAttribute(c,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(c,h):i.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?i.setAttribute(c,h):i.removeAttribute(c);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?i.removeAttribute(c):i.setAttribute(c,h);break;case"popover":et("beforetoggle",i),et("toggle",i),pu(i,"popover",h);break;case"xlinkActuate":ti(i,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":ti(i,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":ti(i,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":ti(i,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":ti(i,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":ti(i,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":ti(i,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":ti(i,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":ti(i,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":pu(i,"is",h);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=iL.get(c)||c,pu(i,c,h))}}function Lp(i,o,c,h,g,_){switch(c){case"style":t_(i,h,_);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(c=h.__html,c!=null){if(g.children!=null)throw Error(r(60));i.innerHTML=c}}break;case"children":typeof h=="string"?Ao(i,h):(typeof h=="number"||typeof h=="bigint")&&Ao(i,""+h);break;case"onScroll":h!=null&&et("scroll",i);break;case"onScrollEnd":h!=null&&et("scrollend",i);break;case"onClick":h!=null&&(i.onclick=ld);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!K0.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(g=c.endsWith("Capture"),o=c.slice(2,g?c.length-7:void 0),_=i[Tn]||null,_=_!=null?_[c]:null,typeof _=="function"&&i.removeEventListener(o,_,g),typeof h=="function")){typeof _!="function"&&_!==null&&(c in i?i[c]=null:i.hasAttribute(c)&&i.removeAttribute(c)),i.addEventListener(o,h,g);break e}c in i?i[c]=h:h===!0?i.setAttribute(c,""):pu(i,c,h)}}}function an(i,o,c){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":et("error",i),et("load",i);var h=!1,g=!1,_;for(_ in c)if(c.hasOwnProperty(_)){var C=c[_];if(C!=null)switch(_){case"src":h=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:ct(i,o,_,C,c,null)}}g&&ct(i,o,"srcSet",c.srcSet,c,null),h&&ct(i,o,"src",c.src,c,null);return;case"input":et("invalid",i);var k=_=C=g=null,z=null,K=null;for(h in c)if(c.hasOwnProperty(h)){var le=c[h];if(le!=null)switch(h){case"name":g=le;break;case"type":C=le;break;case"checked":z=le;break;case"defaultChecked":K=le;break;case"value":_=le;break;case"defaultValue":k=le;break;case"children":case"dangerouslySetInnerHTML":if(le!=null)throw Error(r(137,o));break;default:ct(i,o,h,le,c,null)}}X0(i,_,k,z,K,C,g,!1),yu(i);return;case"select":et("invalid",i),h=C=_=null;for(g in c)if(c.hasOwnProperty(g)&&(k=c[g],k!=null))switch(g){case"value":_=k;break;case"defaultValue":C=k;break;case"multiple":h=k;default:ct(i,o,g,k,c,null)}o=_,c=C,i.multiple=!!h,o!=null?So(i,!!h,o,!1):c!=null&&So(i,!!h,c,!0);return;case"textarea":et("invalid",i),_=g=h=null;for(C in c)if(c.hasOwnProperty(C)&&(k=c[C],k!=null))switch(C){case"value":h=k;break;case"defaultValue":g=k;break;case"children":_=k;break;case"dangerouslySetInnerHTML":if(k!=null)throw Error(r(91));break;default:ct(i,o,C,k,c,null)}J0(i,h,g,_),yu(i);return;case"option":for(z in c)if(c.hasOwnProperty(z)&&(h=c[z],h!=null))switch(z){case"selected":i.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:ct(i,o,z,h,c,null)}return;case"dialog":et("cancel",i),et("close",i);break;case"iframe":case"object":et("load",i);break;case"video":case"audio":for(h=0;h<Ol.length;h++)et(Ol[h],i);break;case"image":et("error",i),et("load",i);break;case"details":et("toggle",i);break;case"embed":case"source":case"link":et("error",i),et("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(K in c)if(c.hasOwnProperty(K)&&(h=c[K],h!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:ct(i,o,K,h,c,null)}return;default:if(Yh(o)){for(le in c)c.hasOwnProperty(le)&&(h=c[le],h!==void 0&&Lp(i,o,le,h,c,void 0));return}}for(k in c)c.hasOwnProperty(k)&&(h=c[k],h!=null&&ct(i,o,k,h,c,null))}function Oj(i,o,c,h){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,_=null,C=null,k=null,z=null,K=null,le=null;for(se in c){var me=c[se];if(c.hasOwnProperty(se)&&me!=null)switch(se){case"checked":break;case"value":break;case"defaultValue":z=me;default:h.hasOwnProperty(se)||ct(i,o,se,null,h,me)}}for(var ne in h){var se=h[ne];if(me=c[ne],h.hasOwnProperty(ne)&&(se!=null||me!=null))switch(ne){case"type":_=se;break;case"name":g=se;break;case"checked":K=se;break;case"defaultChecked":le=se;break;case"value":C=se;break;case"defaultValue":k=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(r(137,o));break;default:se!==me&&ct(i,o,ne,se,h,me)}}Zh(i,C,k,z,K,le,_,g);return;case"select":se=C=k=ne=null;for(_ in c)if(z=c[_],c.hasOwnProperty(_)&&z!=null)switch(_){case"value":break;case"multiple":se=z;default:h.hasOwnProperty(_)||ct(i,o,_,null,h,z)}for(g in h)if(_=h[g],z=c[g],h.hasOwnProperty(g)&&(_!=null||z!=null))switch(g){case"value":ne=_;break;case"defaultValue":k=_;break;case"multiple":C=_;default:_!==z&&ct(i,o,g,_,h,z)}o=k,c=C,h=se,ne!=null?So(i,!!c,ne,!1):!!h!=!!c&&(o!=null?So(i,!!c,o,!0):So(i,!!c,c?[]:"",!1));return;case"textarea":se=ne=null;for(k in c)if(g=c[k],c.hasOwnProperty(k)&&g!=null&&!h.hasOwnProperty(k))switch(k){case"value":break;case"children":break;default:ct(i,o,k,null,h,g)}for(C in h)if(g=h[C],_=c[C],h.hasOwnProperty(C)&&(g!=null||_!=null))switch(C){case"value":ne=g;break;case"defaultValue":se=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(r(91));break;default:g!==_&&ct(i,o,C,g,h,_)}Q0(i,ne,se);return;case"option":for(var ke in c)if(ne=c[ke],c.hasOwnProperty(ke)&&ne!=null&&!h.hasOwnProperty(ke))switch(ke){case"selected":i.selected=!1;break;default:ct(i,o,ke,null,h,ne)}for(z in h)if(ne=h[z],se=c[z],h.hasOwnProperty(z)&&ne!==se&&(ne!=null||se!=null))switch(z){case"selected":i.selected=ne&&typeof ne!="function"&&typeof ne!="symbol";break;default:ct(i,o,z,ne,h,se)}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 He in c)ne=c[He],c.hasOwnProperty(He)&&ne!=null&&!h.hasOwnProperty(He)&&ct(i,o,He,null,h,ne);for(K in h)if(ne=h[K],se=c[K],h.hasOwnProperty(K)&&ne!==se&&(ne!=null||se!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(r(137,o));break;default:ct(i,o,K,ne,h,se)}return;default:if(Yh(o)){for(var Ct in c)ne=c[Ct],c.hasOwnProperty(Ct)&&ne!==void 0&&!h.hasOwnProperty(Ct)&&Lp(i,o,Ct,void 0,h,ne);for(le in h)ne=h[le],se=c[le],!h.hasOwnProperty(le)||ne===se||ne===void 0&&se===void 0||Lp(i,o,le,ne,h,se);return}}for(var Y in c)ne=c[Y],c.hasOwnProperty(Y)&&ne!=null&&!h.hasOwnProperty(Y)&&ct(i,o,Y,null,h,ne);for(me in h)ne=h[me],se=c[me],!h.hasOwnProperty(me)||ne===se||ne==null&&se==null||ct(i,o,me,ne,h,se)}var jp=null,Mp=null;function cd(i){return i.nodeType===9?i:i.ownerDocument}function Kx(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function qx(i,o){if(i===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&o==="foreignObject"?0:i}function Pp(i,o){return i==="textarea"||i==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var zp=null;function kj(){var i=window.event;return i&&i.type==="popstate"?i===zp?!1:(zp=i,!0):(zp=null,!1)}var Zx=typeof setTimeout=="function"?setTimeout:void 0,Dj=typeof clearTimeout=="function"?clearTimeout:void 0,Wx=typeof Promise=="function"?Promise:void 0,Ij=typeof queueMicrotask=="function"?queueMicrotask:typeof Wx<"u"?function(i){return Wx.resolve(null).then(i).catch(Lj)}:Zx;function Lj(i){setTimeout(function(){throw i})}function Vp(i,o){var c=o,h=0;do{var g=c.nextSibling;if(i.removeChild(c),g&&g.nodeType===8)if(c=g.data,c==="/$"){if(h===0){i.removeChild(g),Vl(o);return}h--}else c!=="$"&&c!=="$?"&&c!=="$!"||h++;c=g}while(c);Vl(o)}function Bp(i){var o=i.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var c=o;switch(o=o.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":Bp(c),qh(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}i.removeChild(c)}}function jj(i,o,c,h){for(;i.nodeType===1;){var g=c;if(i.nodeName.toLowerCase()!==o.toLowerCase()){if(!h&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(h){if(!i[qs])switch(o){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(_=i.getAttribute("rel"),_==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(_!==g.rel||i.getAttribute("href")!==(g.href==null?null:g.href)||i.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||i.getAttribute("title")!==(g.title==null?null:g.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(_=i.getAttribute("src"),(_!==(g.src==null?null:g.src)||i.getAttribute("type")!==(g.type==null?null:g.type)||i.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&_&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(o==="input"&&i.type==="hidden"){var _=g.name==null?null:""+g.name;if(g.type==="hidden"&&i.getAttribute("name")===_)return i}else return i;if(i=gr(i.nextSibling),i===null)break}return null}function Mj(i,o,c){if(o==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!c||(i=gr(i.nextSibling),i===null))return null;return i}function gr(i){for(;i!=null;i=i.nextSibling){var o=i.nodeType;if(o===1||o===3)break;if(o===8){if(o=i.data,o==="$"||o==="$!"||o==="$?"||o==="F!"||o==="F")break;if(o==="/$")return null}}return i}function Yx(i){i=i.previousSibling;for(var o=0;i;){if(i.nodeType===8){var c=i.data;if(c==="$"||c==="$!"||c==="$?"){if(o===0)return i;o--}else c==="/$"&&o++}i=i.previousSibling}return null}function Xx(i,o,c){switch(o=cd(c),i){case"html":if(i=o.documentElement,!i)throw Error(r(452));return i;case"head":if(i=o.head,!i)throw Error(r(453));return i;case"body":if(i=o.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}var tr=new Map,Qx=new Set;function ud(i){return typeof i.getRootNode=="function"?i.getRootNode():i.ownerDocument}var gi=ie.d;ie.d={f:Pj,r:zj,D:Vj,C:Bj,L:Uj,m:$j,X:Fj,S:Hj,M:Gj};function Pj(){var i=gi.f(),o=nd();return i||o}function zj(i){var o=_o(i);o!==null&&o.tag===5&&o.type==="form"?wE(o):gi.r(i)}var Xo=typeof document>"u"?null:document;function Jx(i,o,c){var h=Xo;if(h&&typeof o=="string"&&o){var g=Gn(o);g='link[rel="'+i+'"][href="'+g+'"]',typeof c=="string"&&(g+='[crossorigin="'+c+'"]'),Qx.has(g)||(Qx.add(g),i={rel:i,crossOrigin:c,href:o},h.querySelector(g)===null&&(o=h.createElement("link"),an(o,"link",i),Wt(o),h.head.appendChild(o)))}}function Vj(i){gi.D(i),Jx("dns-prefetch",i,null)}function Bj(i,o){gi.C(i,o),Jx("preconnect",i,o)}function Uj(i,o,c){gi.L(i,o,c);var h=Xo;if(h&&i&&o){var g='link[rel="preload"][as="'+Gn(o)+'"]';o==="image"&&c&&c.imageSrcSet?(g+='[imagesrcset="'+Gn(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(g+='[imagesizes="'+Gn(c.imageSizes)+'"]')):g+='[href="'+Gn(i)+'"]';var _=g;switch(o){case"style":_=Qo(i);break;case"script":_=Jo(i)}tr.has(_)||(i=M({rel:"preload",href:o==="image"&&c&&c.imageSrcSet?void 0:i,as:o},c),tr.set(_,i),h.querySelector(g)!==null||o==="style"&&h.querySelector(Dl(_))||o==="script"&&h.querySelector(Il(_))||(o=h.createElement("link"),an(o,"link",i),Wt(o),h.head.appendChild(o)))}}function $j(i,o){gi.m(i,o);var c=Xo;if(c&&i){var h=o&&typeof o.as=="string"?o.as:"script",g='link[rel="modulepreload"][as="'+Gn(h)+'"][href="'+Gn(i)+'"]',_=g;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":_=Jo(i)}if(!tr.has(_)&&(i=M({rel:"modulepreload",href:i},o),tr.set(_,i),c.querySelector(g)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(Il(_)))return}h=c.createElement("link"),an(h,"link",i),Wt(h),c.head.appendChild(h)}}}function Hj(i,o,c){gi.S(i,o,c);var h=Xo;if(h&&i){var g=Eo(h).hoistableStyles,_=Qo(i);o=o||"default";var C=g.get(_);if(!C){var k={loading:0,preload:null};if(C=h.querySelector(Dl(_)))k.loading=5;else{i=M({rel:"stylesheet",href:i,"data-precedence":o},c),(c=tr.get(_))&&Up(i,c);var z=C=h.createElement("link");Wt(z),an(z,"link",i),z._p=new Promise(function(K,le){z.onload=K,z.onerror=le}),z.addEventListener("load",function(){k.loading|=1}),z.addEventListener("error",function(){k.loading|=2}),k.loading|=4,dd(C,o,h)}C={type:"stylesheet",instance:C,count:1,state:k},g.set(_,C)}}}function Fj(i,o){gi.X(i,o);var c=Xo;if(c&&i){var h=Eo(c).hoistableScripts,g=Jo(i),_=h.get(g);_||(_=c.querySelector(Il(g)),_||(i=M({src:i,async:!0},o),(o=tr.get(g))&&$p(i,o),_=c.createElement("script"),Wt(_),an(_,"link",i),c.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},h.set(g,_))}}function Gj(i,o){gi.M(i,o);var c=Xo;if(c&&i){var h=Eo(c).hoistableScripts,g=Jo(i),_=h.get(g);_||(_=c.querySelector(Il(g)),_||(i=M({src:i,async:!0,type:"module"},o),(o=tr.get(g))&&$p(i,o),_=c.createElement("script"),Wt(_),an(_,"link",i),c.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},h.set(g,_))}}function eS(i,o,c,h){var g=(g=pt.current)?ud(g):null;if(!g)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(o=Qo(c.href),c=Eo(g).hoistableStyles,h=c.get(o),h||(h={type:"style",instance:null,count:0,state:null},c.set(o,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){i=Qo(c.href);var _=Eo(g).hoistableStyles,C=_.get(i);if(C||(g=g.ownerDocument||g,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},_.set(i,C),(_=g.querySelector(Dl(i)))&&!_._p&&(C.instance=_,C.state.loading=5),tr.has(i)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},tr.set(i,c),_||Kj(g,i,c,C.state))),o&&h===null)throw Error(r(528,""));return C}if(o&&h!==null)throw Error(r(529,""));return null;case"script":return o=c.async,c=c.src,typeof c=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=Jo(c),c=Eo(g).hoistableScripts,h=c.get(o),h||(h={type:"script",instance:null,count:0,state:null},c.set(o,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function Qo(i){return'href="'+Gn(i)+'"'}function Dl(i){return'link[rel="stylesheet"]['+i+"]"}function tS(i){return M({},i,{"data-precedence":i.precedence,precedence:null})}function Kj(i,o,c,h){i.querySelector('link[rel="preload"][as="style"]['+o+"]")?h.loading=1:(o=i.createElement("link"),h.preload=o,o.addEventListener("load",function(){return h.loading|=1}),o.addEventListener("error",function(){return h.loading|=2}),an(o,"link",c),Wt(o),i.head.appendChild(o))}function Jo(i){return'[src="'+Gn(i)+'"]'}function Il(i){return"script[async]"+i}function nS(i,o,c){if(o.count++,o.instance===null)switch(o.type){case"style":var h=i.querySelector('style[data-href~="'+Gn(c.href)+'"]');if(h)return o.instance=h,Wt(h),h;var g=M({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return h=(i.ownerDocument||i).createElement("style"),Wt(h),an(h,"style",g),dd(h,c.precedence,i),o.instance=h;case"stylesheet":g=Qo(c.href);var _=i.querySelector(Dl(g));if(_)return o.state.loading|=4,o.instance=_,Wt(_),_;h=tS(c),(g=tr.get(g))&&Up(h,g),_=(i.ownerDocument||i).createElement("link"),Wt(_);var C=_;return C._p=new Promise(function(k,z){C.onload=k,C.onerror=z}),an(_,"link",h),o.state.loading|=4,dd(_,c.precedence,i),o.instance=_;case"script":return _=Jo(c.src),(g=i.querySelector(Il(_)))?(o.instance=g,Wt(g),g):(h=c,(g=tr.get(_))&&(h=M({},c),$p(h,g)),i=i.ownerDocument||i,g=i.createElement("script"),Wt(g),an(g,"link",h),i.head.appendChild(g),o.instance=g);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(h=o.instance,o.state.loading|=4,dd(h,c.precedence,i));return o.instance}function dd(i,o,c){for(var h=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=h.length?h[h.length-1]:null,_=g,C=0;C<h.length;C++){var k=h[C];if(k.dataset.precedence===o)_=k;else if(_!==g)break}_?_.parentNode.insertBefore(i,_.nextSibling):(o=c.nodeType===9?c.head:c,o.insertBefore(i,o.firstChild))}function Up(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.title==null&&(i.title=o.title)}function $p(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.integrity==null&&(i.integrity=o.integrity)}var fd=null;function rS(i,o,c){if(fd===null){var h=new Map,g=fd=new Map;g.set(c,h)}else g=fd,h=g.get(c),h||(h=new Map,g.set(c,h));if(h.has(i))return h;for(h.set(i,null),c=c.getElementsByTagName(i),g=0;g<c.length;g++){var _=c[g];if(!(_[qs]||_[un]||i==="link"&&_.getAttribute("rel")==="stylesheet")&&_.namespaceURI!=="http://www.w3.org/2000/svg"){var C=_.getAttribute(o)||"";C=i+C;var k=h.get(C);k?k.push(_):h.set(C,[_])}}return h}function iS(i,o,c){i=i.ownerDocument||i,i.head.insertBefore(c,o==="title"?i.querySelector("head > title"):null)}function qj(i,o,c){if(c===1||o.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;switch(o.rel){case"stylesheet":return i=o.disabled,typeof o.precedence=="string"&&i==null;default:return!0}case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function aS(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var Ll=null;function Zj(){}function Wj(i,o,c){if(Ll===null)throw Error(r(475));var h=Ll;if(o.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var g=Qo(c.href),_=i.querySelector(Dl(g));if(_){i=_._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(h.count++,h=hd.bind(h),i.then(h,h)),o.state.loading|=4,o.instance=_,Wt(_);return}_=i.ownerDocument||i,c=tS(c),(g=tr.get(g))&&Up(c,g),_=_.createElement("link"),Wt(_);var C=_;C._p=new Promise(function(k,z){C.onload=k,C.onerror=z}),an(_,"link",c),o.instance=_}h.stylesheets===null&&(h.stylesheets=new Map),h.stylesheets.set(o,i),(i=o.state.preload)&&(o.state.loading&3)===0&&(h.count++,o=hd.bind(h),i.addEventListener("load",o),i.addEventListener("error",o))}}function Yj(){if(Ll===null)throw Error(r(475));var i=Ll;return i.stylesheets&&i.count===0&&Hp(i,i.stylesheets),0<i.count?function(o){var c=setTimeout(function(){if(i.stylesheets&&Hp(i,i.stylesheets),i.unsuspend){var h=i.unsuspend;i.unsuspend=null,h()}},6e4);return i.unsuspend=o,function(){i.unsuspend=null,clearTimeout(c)}}:null}function hd(){if(this.count--,this.count===0){if(this.stylesheets)Hp(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var md=null;function Hp(i,o){i.stylesheets=null,i.unsuspend!==null&&(i.count++,md=new Map,o.forEach(Xj,i),md=null,hd.call(i))}function Xj(i,o){if(!(o.state.loading&4)){var c=md.get(i);if(c)var h=c.get(null);else{c=new Map,md.set(i,c);for(var g=i.querySelectorAll("link[data-precedence],style[data-precedence]"),_=0;_<g.length;_++){var C=g[_];(C.nodeName==="LINK"||C.getAttribute("media")!=="not all")&&(c.set(C.dataset.precedence,C),h=C)}h&&c.set(null,h)}g=o.instance,C=g.getAttribute("data-precedence"),_=c.get(C)||h,_===h&&c.set(null,g),c.set(C,g),this.count++,h=hd.bind(this),g.addEventListener("load",h),g.addEventListener("error",h),_?_.parentNode.insertBefore(g,_.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(g,i.firstChild)),o.state.loading|=4}}var jl={$$typeof:x,Provider:null,Consumer:null,_currentValue:he,_currentValue2:he,_threadCount:0};function Qj(i,o,c,h,g,_,C,k){this.tag=1,this.containerInfo=i,this.finishedWork=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=Gh(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gh(0),this.hiddenUpdates=Gh(null),this.identifierPrefix=h,this.onUncaughtError=g,this.onCaughtError=_,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=k,this.incompleteTransitions=new Map}function oS(i,o,c,h,g,_,C,k,z,K,le,me){return i=new Qj(i,o,c,C,k,z,K,me),o=1,_===!0&&(o|=24),_=Jn(3,null,null,o),i.current=_,_.stateNode=i,o=Em(),o.refCount++,i.pooledCache=o,o.refCount++,_.memoizedState={element:h,isDehydrated:c,cache:o},tp(_),i}function sS(i){return i?(i=ko,i):ko}function lS(i,o,c,h,g,_){g=sS(g),h.context===null?h.context=g:h.pendingContext=g,h=Bi(o),h.payload={element:c},_=_===void 0?null:_,_!==null&&(h.callback=_),c=Ui(i,h,o),c!==null&&(bn(c,i,o),vl(c,i,o))}function cS(i,o){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var c=i.retryLane;i.retryLane=c!==0&&c<o?c:o}}function Fp(i,o){cS(i,o),(i=i.alternate)&&cS(i,o)}function uS(i){if(i.tag===13){var o=Ii(i,67108864);o!==null&&bn(o,i,67108864),Fp(i,67108864)}}var pd=!0;function Jj(i,o,c,h){var g=P.T;P.T=null;var _=ie.p;try{ie.p=2,Gp(i,o,c,h)}finally{ie.p=_,P.T=g}}function eM(i,o,c,h){var g=P.T;P.T=null;var _=ie.p;try{ie.p=8,Gp(i,o,c,h)}finally{ie.p=_,P.T=g}}function Gp(i,o,c,h){if(pd){var g=Kp(h);if(g===null)Ip(i,o,h,gd,c),fS(i,h);else if(nM(g,i,o,c,h))h.stopPropagation();else if(fS(i,h),o&4&&-1<tM.indexOf(i)){for(;g!==null;){var _=_o(g);if(_!==null)switch(_.tag){case 3:if(_=_.stateNode,_.current.memoizedState.isDehydrated){var C=Ta(_.pendingLanes);if(C!==0){var k=_;for(k.pendingLanes|=2,k.entangledLanes|=2;C;){var z=1<<31-yn(C);k.entanglements[1]|=z,C&=~z}Ir(_),(bt&6)===0&&(Ju=be()+500,Nl(0))}}break;case 13:k=Ii(_,2),k!==null&&bn(k,_,2),nd(),Fp(_,2)}if(_=Kp(h),_===null&&Ip(i,o,h,gd,c),_===g)break;g=_}g!==null&&h.stopPropagation()}else Ip(i,o,h,null,c)}}function Kp(i){return i=Qh(i),qp(i)}var gd=null;function qp(i){if(gd=null,i=Ra(i),i!==null){var o=q(i);if(o===null)i=null;else{var c=o.tag;if(c===13){if(i=ye(o),i!==null)return i;i=null}else if(c===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return gd=i,null}function dS(i){switch(i){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(Ee()){case Ie:return 2;case rt:return 8;case ot:case wn:return 32;case wa:return 268435456;default:return 32}default:return 32}}var Zp=!1,Zi=null,Wi=null,Yi=null,Ml=new Map,Pl=new Map,Xi=[],tM="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 fS(i,o){switch(i){case"focusin":case"focusout":Zi=null;break;case"dragenter":case"dragleave":Wi=null;break;case"mouseover":case"mouseout":Yi=null;break;case"pointerover":case"pointerout":Ml.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pl.delete(o.pointerId)}}function zl(i,o,c,h,g,_){return i===null||i.nativeEvent!==_?(i={blockedOn:o,domEventName:c,eventSystemFlags:h,nativeEvent:_,targetContainers:[g]},o!==null&&(o=_o(o),o!==null&&uS(o)),i):(i.eventSystemFlags|=h,o=i.targetContainers,g!==null&&o.indexOf(g)===-1&&o.push(g),i)}function nM(i,o,c,h,g){switch(o){case"focusin":return Zi=zl(Zi,i,o,c,h,g),!0;case"dragenter":return Wi=zl(Wi,i,o,c,h,g),!0;case"mouseover":return Yi=zl(Yi,i,o,c,h,g),!0;case"pointerover":var _=g.pointerId;return Ml.set(_,zl(Ml.get(_)||null,i,o,c,h,g)),!0;case"gotpointercapture":return _=g.pointerId,Pl.set(_,zl(Pl.get(_)||null,i,o,c,h,g)),!0}return!1}function hS(i){var o=Ra(i.target);if(o!==null){var c=q(o);if(c!==null){if(o=c.tag,o===13){if(o=ye(c),o!==null){i.blockedOn=o,YI(i.priority,function(){if(c.tag===13){var h=Pn(),g=Ii(c,h);g!==null&&bn(g,c,h),Fp(c,h)}});return}}else if(o===3&&c.stateNode.current.memoizedState.isDehydrated){i.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}i.blockedOn=null}function yd(i){if(i.blockedOn!==null)return!1;for(var o=i.targetContainers;0<o.length;){var c=Kp(i.nativeEvent);if(c===null){c=i.nativeEvent;var h=new c.constructor(c.type,c);Xh=h,c.target.dispatchEvent(h),Xh=null}else return o=_o(c),o!==null&&uS(o),i.blockedOn=c,!1;o.shift()}return!0}function mS(i,o,c){yd(i)&&c.delete(o)}function rM(){Zp=!1,Zi!==null&&yd(Zi)&&(Zi=null),Wi!==null&&yd(Wi)&&(Wi=null),Yi!==null&&yd(Yi)&&(Yi=null),Ml.forEach(mS),Pl.forEach(mS)}function vd(i,o){i.blockedOn===o&&(i.blockedOn=null,Zp||(Zp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,rM)))}var bd=null;function pS(i){bd!==i&&(bd=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){bd===i&&(bd=null);for(var o=0;o<i.length;o+=3){var c=i[o],h=i[o+1],g=i[o+2];if(typeof h!="function"){if(qp(h||c)===null)continue;break}var _=_o(c);_!==null&&(i.splice(o,3),o-=3,Pm(_,{pending:!0,data:g,method:c.method,action:h},h,g))}}))}function Vl(i){function o(z){return vd(z,i)}Zi!==null&&vd(Zi,i),Wi!==null&&vd(Wi,i),Yi!==null&&vd(Yi,i),Ml.forEach(o),Pl.forEach(o);for(var c=0;c<Xi.length;c++){var h=Xi[c];h.blockedOn===i&&(h.blockedOn=null)}for(;0<Xi.length&&(c=Xi[0],c.blockedOn===null);)hS(c),c.blockedOn===null&&Xi.shift();if(c=(i.ownerDocument||i).$$reactFormReplay,c!=null)for(h=0;h<c.length;h+=3){var g=c[h],_=c[h+1],C=g[Tn]||null;if(typeof _=="function")C||pS(c);else if(C){var k=null;if(_&&_.hasAttribute("formAction")){if(g=_,C=_[Tn]||null)k=C.formAction;else if(qp(g)!==null)continue}else k=C.action;typeof k=="function"?c[h+1]=k:(c.splice(h,3),h-=3),pS(c)}}}function Wp(i){this._internalRoot=i}_d.prototype.render=Wp.prototype.render=function(i){var o=this._internalRoot;if(o===null)throw Error(r(409));var c=o.current,h=Pn();lS(c,h,i,o,null,null)},_d.prototype.unmount=Wp.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var o=i.containerInfo;i.tag===0&&Zo(),lS(i.current,2,null,i,null,null),nd(),o[bo]=null}};function _d(i){this._internalRoot=i}_d.prototype.unstable_scheduleHydration=function(i){if(i){var o=H0();i={blockedOn:null,target:i,priority:o};for(var c=0;c<Xi.length&&o!==0&&o<Xi[c].priority;c++);Xi.splice(c,0,i),c===0&&hS(i)}};var gS=t.version;if(gS!=="19.0.0")throw Error(r(527,gS,"19.0.0"));ie.findDOMNode=function(i){var o=i._reactInternals;if(o===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=J(o),i=i!==null?F(i):null,i=i===null?null:i.stateNode,i};var iM={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:P,findFiberByHostInstance:Ra,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ed=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ed.isDisabled&&Ed.supportsFiber)try{Jr=Ed.inject(iM),tn=Ed}catch{}}return Ul.createRoot=function(i,o){if(!a(i))throw Error(r(299));var c=!1,h="",g=IE,_=LE,C=jE,k=null;return o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onUncaughtError!==void 0&&(g=o.onUncaughtError),o.onCaughtError!==void 0&&(_=o.onCaughtError),o.onRecoverableError!==void 0&&(C=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(k=o.unstable_transitionCallbacks)),o=oS(i,1,!1,null,null,c,h,g,_,C,k,null),i[bo]=o.current,Dp(i.nodeType===8?i.parentNode:i),new Wp(o)},Ul.hydrateRoot=function(i,o,c){if(!a(i))throw Error(r(299));var h=!1,g="",_=IE,C=LE,k=jE,z=null,K=null;return c!=null&&(c.unstable_strictMode===!0&&(h=!0),c.identifierPrefix!==void 0&&(g=c.identifierPrefix),c.onUncaughtError!==void 0&&(_=c.onUncaughtError),c.onCaughtError!==void 0&&(C=c.onCaughtError),c.onRecoverableError!==void 0&&(k=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(z=c.unstable_transitionCallbacks),c.formState!==void 0&&(K=c.formState)),o=oS(i,1,!0,o,c??null,h,g,_,C,k,z,K),o.context=sS(null),c=o.current,h=Pn(),g=Bi(h),g.callback=null,Ui(c,g,h),o.current.lanes=h,Ks(o,h),Ir(o),i[bo]=o.current,Dp(i),new _d(o)},Ul.version="19.0.0",Ul}var TS;function gM(){if(TS)return Qp.exports;TS=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Qp.exports=pM(),Qp.exports}var yM=gM();const vM={locales:["en","en-GB","fr","es","de","ja","ko","zh","it","pt","hi","ar","ru"],requiredLocales:["en","en-GB","fr","es","de","ja","ko","zh","it","pt","hi","ar","ru"],strictMode:"strict",defaultLocale:"en"},bM={headerName:"x-intlayer-locale",cookieName:"INTLAYER_LOCALE",prefixDefault:!1,basePath:"",serverSetCookie:"always",noPrefix:!1,detectLocaleOnPrefetchNoPrefix:!1},_M={fileExtensions:[".content.ts",".content.js",".content.cjs",".content.cjx",".content.mjs",".content.mjx",".content.json",".content.tsx",".content.jsx"],baseDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor",excludedPath:["node_modules",".intlayer",".next",".nuxt",".expo","dist"],watch:!1,contentDir:["/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor"],dictionariesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/dictionary",moduleAugmentationDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/types",dictionaryOutput:["intlayer"],unmergedDictionariesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/unmerged_dictionary",dynamicDictionariesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/dynamic_dictionary",i18nextResourcesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/i18next_resources",reactIntlMessagesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/intl_messages",typesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/types",mainDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/main",configDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/config",watchedFilesPattern:["/**/*.content.ts","/**/*.content.js","/**/*.content.cjs","/**/*.content.cjx","/**/*.content.mjs","/**/*.content.mjx","/**/*.content.json","/**/*.content.tsx","/**/*.content.jsx"],watchedFilesPatternWithPath:["/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.ts","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.js","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.cjs","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.cjx","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.mjs","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.mjx","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.json","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.tsx","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/**/*.content.jsx"],outputFilesPatternWithPath:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/dictionary/**/*.json"},EM={applicationURL:"http://localhost:5173/",editorURL:"http://localhost:8000",cmsURL:"https://intlayer.org",backendURL:"https://back.intlayer.org",port:8e3,enabled:!0,dictionaryPriorityStrategy:"local_first",hotReload:!1},xM={mode:"default",prefix:"\x1B[90m[intlayer] \x1B[0m"},SM={},AM={optimize:!0,importMode:"static",traversePattern:["**/*.{js,ts,mjs,cjs,jsx,tsx,mjx,cjx,vue,svelte,svte}","!**/node_modules/**"]},Ge={internationalization:vM,middleware:bM,content:_M,editor:EM,log:xM,ai:SM,build:AM};var B=(e=>(e.AFRIKAANS="af",e.AFRIKAANS_SOUTH_AFRICA="af-ZA",e.ARABIC="ar",e.ARABIC_UNITED_ARAB_EMIRATES="ar-AE",e.ARABIC_BAHRAIN="ar-BH",e.ARABIC_ALGERIA="ar-DZ",e.ARABIC_EGYPT="ar-EG",e.ARABIC_IRAQ="ar-IQ",e.ARABIC_JORDAN="ar-JO",e.ARABIC_KUWAIT="ar-KW",e.ARABIC_LEBANON="ar-LB",e.ARABIC_LIBYA="ar-LY",e.ARABIC_MOROCCO="ar-MA",e.ARABIC_OMAN="ar-OM",e.ARABIC_QATAR="ar-QA",e.ARABIC_SAUDI_ARABIA="ar-SA",e.ARABIC_SYRIA="ar-SY",e.ARABIC_TUNISIA="ar-TN",e.ARABIC_YEMEN="ar-YE",e.AZERI_LATIN="az",e.AZERI_LATIN_AZERBAIJAN="az-AZ",e.BELARUSIAN="be",e.BELARUSIAN_BELARUS="be-BY",e.BULGARIAN="bg",e.BULGARIAN_BULGARIA="bg-BG",e.BOSNIAN="bs",e.BOSNIAN_BOSNIA_AND_HERZEGOVINA="bs-BA",e.CATALAN="ca",e.CATALAN_SPAIN="ca-ES",e.CZECH="cs",e.CZECH_CZECH_REPUBLIC="cs-CZ",e.WELSH="cy",e.WELSH_UNITED_KINGDOM="cy-GB",e.DANISH="da",e.DANISH_DENMARK="da-DK",e.GERMAN="de",e.GERMAN_AUSTRIA="de-AT",e.GERMAN_SWITZERLAND="de-CH",e.GERMAN_GERMANY="de-DE",e.GERMAN_LIECHTENSTEIN="de-LI",e.GERMAN_LUXEMBOURG="de-LU",e.DIVEHI="dv",e.DIVEHI_MALDIVES="dv-MV",e.GREEK="el",e.GREEK_GREECE="el-GR",e.ENGLISH="en",e.ENGLISH_AUSTRALIA="en-AU",e.ENGLISH_BELIZE="en-BZ",e.ENGLISH_CANADA="en-CA",e.ENGLISH_CARIBBEAN="en-CB",e.ENGLISH_UNITED_KINGDOM="en-GB",e.ENGLISH_IRELAND="en-IE",e.ENGLISH_JAMAICA="en-JM",e.ENGLISH_NEW_ZEALAND="en-NZ",e.ENGLISH_PHILIPPINES="en-PH",e.ENGLISH_TRINIDAD_AND_TOBAGO="en-TT",e.ENGLISH_UNITED_STATES="en-US",e.ENGLISH_SOUTH_AFRICA="en-ZA",e.ENGLISH_ZIMBABWE="en-ZW",e.ESPERANTO="eo",e.SPANISH="es",e.SPANISH_ARGENTINA="es-AR",e.SPANISH_BOLIVIA="es-BO",e.SPANISH_CHILE="es-CL",e.SPANISH_COLOMBIA="es-CO",e.SPANISH_COSTA_RICA="es-CR",e.SPANISH_DOMINICAN_REPUBLIC="es-DO",e.SPANISH_ECUADOR="es-EC",e.SPANISH_SPAIN="es-ES",e.SPANISH_GUATEMALA="es-GT",e.SPANISH_HONDURAS="es-HN",e.SPANISH_MEXICO="es-MX",e.SPANISH_NICARAGUA="es-NI",e.SPANISH_PANAMA="es-PA",e.SPANISH_PERU="es-PE",e.SPANISH_PUERTO_RICO="es-PR",e.SPANISH_PARAGUAY="es-PY",e.SPANISH_EL_SALVADOR="es-SV",e.SPANISH_URUGUAY="es-UY",e.SPANISH_VENEZUELA="es-VE",e.ESTONIAN="et",e.ESTONIAN_ESTONIA="et-EE",e.BASQUE="eu",e.BASQUE_SPAIN="eu-ES",e.FARSI="fa",e.FARSI_IRAN="fa-IR",e.FINNISH="fi",e.FINNISH_FINLAND="fi-FI",e.FAROESE="fo",e.FAROESE_FAROE_ISLANDS="fo-FO",e.FRENCH="fr",e.FRENCH_BELGIUM="fr-BE",e.FRENCH_CANADA="fr-CA",e.FRENCH_SWITZERLAND="fr-CH",e.FRENCH_FRANCE="fr-FR",e.FRENCH_LUXEMBOURG="fr-LU",e.FRENCH_PRINCIPALITY_OF_MONACO="fr-MC",e.GALICIAN="gl",e.GALICIAN_SPAIN="gl-ES",e.GUJARATI="gu",e.GUJARATI_INDIA="gu-IN",e.HEBREW="he",e.HEBREW_ISRAEL="he-IL",e.HINDI="hi",e.HINDI_INDIA="hi-IN",e.CROATIAN="hr",e.CROATIAN_BOSNIA_AND_HERZEGOVINA="hr-BA",e.CROATIAN_CROATIA="hr-HR",e.HUNGARIAN="hu",e.HUNGARIAN_HUNGARY="hu-HU",e.ARMENIAN="hy",e.ARMENIAN_ARMENIA="hy-AM",e.INDONESIAN="id",e.INDONESIAN_INDONESIA="id-ID",e.ICELANDIC="is",e.ICELANDIC_ICELAND="is-IS",e.ITALIAN="it",e.ITALIAN_SWITZERLAND="it-CH",e.ITALIAN_ITALY="it-IT",e.JAPANESE="ja",e.JAPANESE_JAPAN="ja-JP",e.GEORGIAN="ka",e.GEORGIAN_GEORGIA="ka-GE",e.KAZAKH="kk",e.KAZAKH_KAZAKHSTAN="kk-KZ",e.KANNADA="kn",e.KANNADA_INDIA="kn-IN",e.KOREAN="ko",e.KOREAN_KOREA="ko-KR",e.KONKANI="kok",e.KONKANI_INDIA="kok-IN",e.KYRGYZ="ky",e.KYRGYZ_KYRGYZSTAN="ky-KG",e.LITHUANIAN="lt",e.LITHUANIAN_LITHUANIA="lt-LT",e.LATVIAN="lv",e.LATVIAN_LATVIA="lv-LV",e.MAORI="mi",e.MAORI_NEW_ZEALAND="mi-NZ",e.FYRO_MACEDONIAN="mk",e.FYRO_MACEDONIAN_MACEDONIA="mk-MK",e.MONGOLIAN="mn",e.MONGOLIAN_MONGOLIA="mn-MN",e.MARATHI="mr",e.MARATHI_INDIA="mr-IN",e.MALAY="ms",e.MALAY_BRUNEI_DARUSSALAM="ms-BN",e.MALAY_MALAYSIA="ms-MY",e.MALTESE="mt",e.MALTESE_MALTA="mt-MT",e.NORWEGIAN_BOKMAL="nb",e.NORWEGIAN_BOKMAL_NORWAY="nb-NO",e.DUTCH="nl",e.DUTCH_BELGIUM="nl-BE",e.DUTCH_NETHERLANDS="nl-NL",e.NORWEGIAN_NYNORSK_NORWAY="nn-NO",e.NORTHERN_SOTHO="ns",e.NORTHERN_SOTHO_SOUTH_AFRICA="ns-ZA",e.PUNJABI="pa",e.PUNJABI_INDIA="pa-IN",e.POLISH="pl",e.POLISH_POLAND="pl-PL",e.PASHTO="ps",e.PASHTO_AFGHANISTAN="ps-AR",e.PORTUGUESE="pt",e.PORTUGUESE_BRAZIL="pt-BR",e.PORTUGUESE_PORTUGAL="pt-PT",e.QUECHUA="qu",e.QUECHUA_BOLIVIA="qu-BO",e.QUECHUA_ECUADOR="qu-EC",e.QUECHUA_PERU="qu-PE",e.ROMANIAN="ro",e.ROMANIAN_ROMANIA="ro-RO",e.RUSSIAN="ru",e.RUSSIAN_RUSSIA="ru-RU",e.SANSKRIT="sa",e.SANSKRIT_INDIA="sa-IN",e.SAMI_NORTHERN="se",e.SAMI_NORTHERN_FINLAND="se-FI",e.SAMI_NORTHERN_NORWAY="se-NO",e.SAMI_NORTHERN_SWEDEN="se-SE",e.SLOVAK="sk",e.SLOVAK_SLOVAKIA="sk-SK",e.SLOVENIAN="sl",e.SLOVENIAN_SLOVENIA="sl-SI",e.ALBANIAN="sq",e.ALBANIAN_ALBANIA="sq-AL",e.SERBIAN_LATIN="sr",e.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA="sr-BA",e.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO="sr-SP",e.SWEDISH="sv",e.SWEDISH_FINLAND="sv-FI",e.SWEDISH_SWEDEN="sv-SE",e.SWAHILI="sw",e.SWAHILI_KENYA="sw-KE",e.SYRIAC="syr",e.SYRIAC_SYRIA="syr-SY",e.TAMIL="ta",e.TAMIL_INDIA="ta-IN",e.TELUGU="te",e.TELUGU_INDIA="te-IN",e.THAI="th",e.THAI_THAILAND="th-TH",e.TAGALOG="tl",e.TAGALOG_PHILIPPINES="tl-PH",e.TSWANA="tn",e.TSWANA_SOUTH_AFRICA="tn-ZA",e.TURKISH="tr",e.TURKISH_TURKEY="tr-TR",e.TATAR="tt",e.TATAR_RUSSIA="tt-RU",e.TSOGA="ts",e.UKRAINIAN="uk",e.UKRAINIAN_UKRAINE="uk-UA",e.URDU="ur",e.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN="ur-PK",e.UZBEK_LATIN="uz",e.UZBEK_LATIN_UZBEKISTAN="uz-UZ",e.VIETNAMESE="vi",e.VIETNAMESE_VIET_NAM="vi-VN",e.XHOSA="xh",e.XHOSA_SOUTH_AFRICA="xh-ZA",e.CHINESE="zh",e.CHINESE_SIMPLIFIED="zh-Hans",e.CHINESE_SIMPLIFIED_CHINA="zh-CN",e.CHINESE_HONG_KONG="zh-HK",e.CHINESE_MACAU="zh-MO",e.CHINESE_SINGAPORE="zh-SG",e.CHINESE_TRADITIONAL="zh-Hant",e.ZULU="zu",e.ZULU_SOUTH_AFRICA="zu-ZA",e.BENGALI="bn",e.BENGALI_BANGLADESH="bn-BD",e.BENGALI_INDIA="bn-IN",e.BENGALI_MYANMAR="bn-MM",e.BURMESE="my",e.BURMESE_MYANMAR="my-MM",e.KHMER="km",e.KHMER_CAMBODIA="km-KH",e.LAO="lo",e.LAO_LAOS="lo-LA",e.YORUBA="yo",e.YORUBA_NIGERIA="yo-NG",e.AMHARIC="am",e.AMHARIC_ETHIOPIA="am-ET",e.NEPALI="ne",e))(B||{}),Z=(e=>(e.Translation="translation",e.Enumeration="enumeration",e.Condition="condition",e.Insertion="insertion",e.File="file",e.Object="object",e.Array="array",e.Nested="nested",e.ReactNode="reactNode",e.Markdown="markdown",e.Text="text",e.Number="number",e.Boolean="boolean",e.Gender="gender",e.Unknown="unknown",e))(Z||{});const H1=(e,t,n)=>({...n,nodeType:e,[e]:t}),RS=(e,t,n)=>{let r=e,a=null,s=[];if(t.length===0)return n;for(let l=0;l<t.length;l++){const u=t[l];if(a=r,(u.type===Z.Object||u.type===Z.Array)&&(s=[u.key],(!r[u.key]||typeof r[u.key]!="object")&&(r[u.key]={}),r=r[u.key]),(u.type===Z.Translation||u.type===Z.Enumeration)&&(s=[u.type,u.key],(!r[u.type]||typeof r[u.type]!="object")&&(r[u.type]={}),(!r[u.type][u.key]||typeof r[u.type][u.key]!="object")&&(r[u.type][u.key]={}),r=r[u.type][u.key]),(u.type===Z.Enumeration||u.type===Z.Condition)&&(s=[u.type,u.key],(!r[u.type]||typeof r[u.type]!="object")&&(r[u.type]={}),(!r[u.type][u.key]||typeof r[u.type][u.key]!="object")&&(r[u.type][u.key]={}),r=r[u.type][u.key]),(u.type===Z.Markdown||u.type===Z.Insertion)&&(s=[u.type],(!r[u.type]||typeof r[u.type]!="object")&&(r[u.type]=""),r=r[u.type]),u.type===Z.File&&(s=["content"],r=r.content),u.type&&(r=r),l===t.length-1&&a&&s.length>0){let d=a;for(const f of s.slice(0,-1))d=d[f];typeof n>"u"?delete d[s[s.length-1]]:d[s[s.length-1]]=n}}return e},Ur=(e,t)=>{let n=structuredClone(e);for(const r of t)r.type===Z.Object||r.type===Z.Array?n=n==null?void 0:n[r.key]:r.type===Z.Translation||r.type===Z.Condition||r.type===Z.Enumeration?n=n==null?void 0:n[r.type][r.key]:(r.type===Z.Markdown||r.type===Z.Insertion||r.type===Z.File)&&(n=n==null?void 0:n[r.type]);return n},F1=e=>{if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return e;if(typeof(e==null?void 0:e.nodeType)=="string"){const t=e,n=t[t.nodeType];if(t.nodeType===Z.Translation||t.nodeType===Z.Enumeration||t.nodeType===Z.Condition||t.nodeType===Z.Insertion||t.nodeType===Z.File){const r=Object.keys(n)[0];return n[r]}return t.nodeType===Z.Nested?void 0:n}return!e||typeof e!="object"?e:Array.isArray(e)?e[0]:e},wM=(e,t,n)=>{let r=e,a=null,s=null;for(const l of n)a=r,(l.type===Z.Object||l.type===Z.Array)&&(s=l.key,r=r[l.key]),(l.type===Z.Translation||l.type===Z.Enumeration||l.type===Z.Condition)&&(s=l.type,r=r[l.type][l.key]),(l.type===Z.Markdown||l.type===Z.ReactNode||l.type===Z.Insertion||l.type===Z.File)&&(s=l.type,r=r[l.type]);if(a&&s!==null)if(Array.isArray(a))a[s]=r;else{const l={};for(const u of Object.keys(a))u===s&&typeof t<"u"?l[t]=r:l[u]=a[u];Object.keys(a).forEach(u=>delete a[u]),Object.assign(a,l)}return e},TM=e=>typeof e=="object"&&typeof(e==null?void 0:e.key)<"u"&&typeof(e==null?void 0:e.props)<"u",Cs=e=>typeof e=="string"?Z.Text:typeof(e==null?void 0:e.nodeType)=="string"?e.nodeType:Array.isArray(e)?Z.Array:TM(e)?Z.ReactNode:typeof e=="number"?Z.Number:typeof e=="boolean"?Z.Boolean:e&&typeof e=="object"?Z.Object:Z.Unknown,$l=(e,t,n)=>{const r=structuredClone(n);switch(e){case Z.Translation:return{nodeType:Z.Translation,[Z.Translation]:Object.assign({},...t.map(a=>({[a]:structuredClone(r)??""})))};case Z.Enumeration:return{nodeType:Z.Enumeration,[Z.Enumeration]:{1:r??""}};case Z.Condition:return{nodeType:Z.Condition,[Z.Condition]:{true:r??"",false:r??""}};case Z.Insertion:return{nodeType:Z.Insertion,[Z.Insertion]:{insertion:r??""}};case Z.Nested:return{nodeType:Z.Nested,[Z.Nested]:{dictionaryKey:""}};case Z.Markdown:return{nodeType:Z.Markdown,[Z.Markdown]:r??""};case Z.File:return{nodeType:Z.File,[Z.File]:r??""};case Z.Object:return{newKey:r??""};case Z.Array:return[r??""];case Z.Text:return r??"";case Z.Number:return r??0;case Z.Boolean:return r??!0;default:return r??""}},or=e=>{if(typeof e=="string")return"";if(typeof e=="number")return 0;if(typeof e=="boolean")return!0;if(typeof(e==null?void 0:e.nodeType)=="string"){const r=e,a=r[r.nodeType];return r.nodeType===Z.Translation||r.nodeType===Z.Enumeration||r.nodeType===Z.Condition||r.nodeType===Z.Insertion?or(a):r.nodeType===Z.Nested?"dictionary-key":r.nodeType===Z.File?"file/path":r.nodeType===Z.Markdown?or(r):a}if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(or);const t=Object.entries(e).map(([r,a])=>[r,or(a)]);return Object.fromEntries(t)},Qd=(e,t)=>{for(const r of t.plugins??[])if(r.canHandle(e))return r.transform(e,t,(a,s)=>Qd(a,s));if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map((r,a)=>{const s={...t,children:r,keyPath:[...t.keyPath,{type:Z.Array,key:a}]};return Qd(r,s)});const n={};for(const r in e){const a={...t,children:e[r],keyPath:[...t.keyPath,{type:Z.Object,key:r}]};n[r]=Qd(e[r],a)}return n},RM=(e,t)=>{const n=Object.keys(e),r=n[n.length-1];return e[`${t}`]??e.fallback??e[r]},CM=(e,t)=>{const n=Object.keys(e);for(const r of n){const a=!r.startsWith(">")&&!r.startsWith("<")&&!r.startsWith("=")&&parseFloat(r)===t||r.startsWith("=")&&parseFloat(r.slice(1))===t,s=r.startsWith(">")&&t>parseFloat(r.slice(1)),l=r.startsWith(">=")&&t>=parseFloat(r.slice(2)),u=r.startsWith("<")&&t<parseFloat(r.slice(1)),d=r.startsWith("<=")&&t<=parseFloat(r.slice(2));if(a||s||l||u||d)return r}},NM=(e,t)=>{const n=CM(e,t)??"fallback";return e[n]},OM=(e,t)=>e.replace(/\{\{(.*?)\}\}/g,(n,r)=>(t[r]??"").toString()),kM="dictionary-edition-drawer",DM={openDictionaryEditor:{label:{nodeType:"translation",translation:{en:"Click to open the dictionary in the editor",fr:"Cliquez pour ouvrir le dictionnaire dans l’éditeur",es:"Haga clic para abrir el diccionario en el editor",de:"Klicken Sie hier, um das Wörterbuch im Editor zu öffnen",ja:"エディターで辞書を開く",ko:"편집기에서 사전 열기",zh:"点击打开词典到编辑器",it:"Fai clic per aprire il dizionario nell’editor",pt:"Clique para abrir o dicionário no editor",hi:"एडिटर में शब्दकोश खोलने के लिए क्लिक करें",ar:"انقر لفتح قاموس في المحرر",ru:"Нажмите, чтобы открыть словарь в редакторе","en-GB":"Click to open the dictionary in the editor"}}},backButtonText:{nodeType:"translation",translation:{en:"Dictionary list",fr:"Liste des dictionnaires",es:"Lista de diccionarios",de:"Wörterbuchliste",ja:"辞書リスト",ko:"사전 목록",zh:"词典列表",it:"Elenco di dizionari",pt:"Lista de dicionários",hi:"शब्दकोश सूची",ar:"قائمة القوامل",ru:"Список словарей","en-GB":"Dictionary list"}},modalTitle:{nodeType:"translation",translation:{en:"Edit dictionary",fr:"Modifier le dictionnaire",es:"Editar el diccionario",de:"Wörterbuch bearbeiten",ja:"辞書を編集",ko:"사전 편집",zh:"编辑词典",it:"Modifica dizionario",pt:"Editar dicionário",hi:"शब्दकोश संपादित करें",ar:"تحرير قاموس",ru:"Редактировать словарь","en-GB":"Edit dictionary"}},noDictionaryFocused:{nodeType:"translation",translation:{en:"No dictionary focused",fr:"Aucun dictionnaire sélectionné",es:"No hay diccionario enfocado",de:"Kein Wörterbuch ausgewählt",ja:"フォーカスされた辞書がありません",ko:"포커스가 있는 사전이 없습니다",zh:"没有聚焦的词典",it:"Nessun dizionario selezionato",pt:"Nenhum dicionário focalizado",hi:"कोई फोकस शब्दकोश नहीं है",ar:"لا يوجد قاموس مرتبط",ru:"Нет фокусированного словаря","en-GB":"No dictionary focused"}},focusedDictionaryNotFound:{nodeType:"translation",translation:{en:"Focused dictionary not found",fr:"Dictionnaire focalisé non trouvé",es:"Diccionario enfocado no encontrado",de:"Ausgewähltes Wörterbuch nicht gefunden",ja:"フォーカスされた辞書が見つかりません",ko:"포커스가 있는 사전이 없습니다",zh:"没有聚焦的词典",it:"Nessun dizionario selezionato",pt:"Nenhum dicionário focalizado",hi:"कोई फोकस शब्दकोश नहीं है",ar:"لا يوجد قاموس مرتبط",ru:"Нет фокусированного словаря","en-GB":"Focused dictionary not found"}}},IM={key:kM,content:DM},LM="long-press-message",jM={message:{fields:["dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey"],nodeType:"insertion",insertion:{nodeType:"translation",translation:{en:'Long press to edit the "{{dictionaryKey}}" dictionary',fr:'Long press pour éditer le dictionnaire "{{dictionaryKey}}"',es:'Presiona largo para editar el diccionario "{{dictionaryKey}}"',de:'Lang press für Bearbeitung des Wörterbuchs "{{dictionaryKey}}"',it:'Premi a lungo per modificare il dizionario "{{dictionaryKey}}"',pt:'Pressione longa para editar o dicionário "{{dictionaryKey}}"',ru:'Длительное нажатие для редактирования словаря "{{dictionaryKey}}"',ja:'長押しして編集 "{{dictionaryKey}}" 辞書',ko:'길게 눌러 편집 "{{dictionaryKey}}" 사전',zh:'长按编辑 "{{dictionaryKey}}" 字典',"en-GB":'Long press to edit the "{{dictionaryKey}}" dictionary',ar:'اضغط طويلاً للتعديل "{{dictionaryKey}}"',hi:'लंग प्रेस करें टू एडिट "{{dictionaryKey}}"'}}}},MM={key:LM,content:jM},PM="no-application-url-view",zM={title:{nodeType:"translation",translation:{en:"Your project configuration do not includes application URL","en-GB":"Your project configuration do not includes application URL",fr:"Votre configuration de projet ne comprend pas l’URL de l’application",es:"Su configuración de proyecto no incluye la URL de la aplicación",de:"Ihre Projektkonfiguration enthält keine Anwendungs-URL",ja:"あなたのプロジェクト構成にはアプリケーション URL が含まれていません",ko:"당신의 프로젝트 구성에 앱 URL이 포함되어 있지 않습니다.",zh:"您的项目配置未包含应用程序 URL",pt:"Sua configuração do projeto não inclui a URL do aplicativo",ru:"Ваша конфигурация проекта не включает URL-адрес приложения",ar:"تم إنشاء مشروعك بدون تضمين عنوان URL التطبيق",hi:"आपके प्रोजेक्ट कॉन्फ़िगरेशन में ऐप का URL शामिल नहीं है",it:"La configurazione del progetto non include l’URL dell’applicazione"}},description:{nodeType:"translation",translation:{en:"To use the editor, you need to add the URL of the application to access to the configuration file.","en-GB":"To use the editor, you need to add the URL of the application to access to the configuration file.",fr:"Pour utiliser l’éditeur, vous devez ajouter l’URL de l’application pour accéder au fichier de configuration.",es:"Para usar el editor, debe agregar la URL de la aplicación para acceder al archivo de configuración.",de:"Um den Editor zu verwenden, müssen Sie die URL der Anwendung hinzufügen, um auf die Konfigurationsdatei zuzugreifen.",ja:"エディターを使用するには、アプリケーションの URL を設定ファイルに追加する必要があります。",ko:"에디터를 사용하려면 설정 파일에 앱 URL을 추가해야 합니다.",zh:"要使用编辑器,您需要将应用程序 URL 添加到访问配置文件。",pt:"Para usar o editor, você precisa adicionar a URL do aplicativo para acessar o arquivo de configuração.",ru:"Чтобы использовать редактор, вам необходимо добавить URL-адрес приложения для доступа к файлу конфигурации.",ar:"لاستخدام المحرر، يجب عليك إضافة عنوان URL التطبيق للوصول إلى ملف التكوين.",hi:"एडिटर का उपयोग करने के लिए, आपको कॉन्फ़िगरेशन फ़ाइल तक ऐप का URL को जोड़ना होगा।",it:"Per utilizzare l’editor, è necessario aggiungere l’URL dell’applicazione per accedere al file di configurazione."}},documentationLink:{label:{nodeType:"translation",translation:{en:"Click to go to the editor documentation","en-GB":"Click to go to the editor documentation",fr:"Cliquez ici pour accéder à la documentation de l’éditeur",es:"Haga clic aquí para acceder a la documentación del editor",de:"Klicken Sie hier, um die Editor-Dokumentation zu besuchen",ja:"エディターのドキュメントに移動するには、ここをクリックしてください",ko:"에디터 문서로 이동하려면 여기를 클릭하십시오.",zh:"点击此处访问编辑器文档",pt:"Clique aqui para acessar a documentação do editor",ru:"Нажмите, чтобы перейти к документации редактора",ar:"انقر هنا للوصول إلى وثائق المحرر",hi:"एडिटर को डॉक्यूमेंट पर जाए रखना चाहते हैं?",it:"Fai clic qui per accedere alla documentazione dell’editor"}},text:{nodeType:"translation",translation:{en:"See how to configure the editor","en-GB":"See how to configure the editor",fr:"Voir comment configurer l’éditeur",de:"Siehe, wie man den Editor konfiguriert",ar:"انظر كيفية تكوين المحرر",hi:"एडिटर को काने के बारे में देखें",it:"Vedi come configurare l’editor",ja:"エディターの設定方法を見る",ru:"Смотрите, как настроить редактор",es:"Vea cómo configurar el editor",pt:"Veja como configurar o editor",ko:"에디터 설정 방법을 보십시오",zh:"查看如何配置编辑器"}}}},VM={key:PM,content:zM},CS={"dictionary-edition-drawer":IM,"long-press-message":MM,"no-application-url-view":VM},G1=(e,t,n)=>{const r={dictionaryKey:e.key,dictionaryPath:e.filePath,keyPath:[],plugins:n};return jv(e.content,r,t)},BM=(e,t,n)=>{const r=CS[e];if(!r)throw new Error(`Dictionary ${e} not found`,CS);return G1(r,t,n)},UM=(e,t,n)=>{const r=BM(e,n==null?void 0:n.locale,n==null?void 0:n.plugins);if(typeof t=="string"){const a=t.split(".");let s=r;for(const l of a)if(s=s==null?void 0:s[l],s===void 0)return r;return s}return r},$M=(e,t,n=!0)=>{const{defaultLocale:r}=Ge==null?void 0:Ge.internationalization;let a=e[t??r];return n&&!a&&(a=e[r]),a},HM=(e,t=!0)=>({id:"translation-plugin",canHandle:n=>typeof n=="object"&&(n==null?void 0:n.nodeType)===Z.Translation,transform:(n,r,a)=>{const s=structuredClone(n[Z.Translation]);for(const l in s){const u={...r,children:s[l],keyPath:[...r.keyPath,{type:Z.Translation,key:l}]};s[l]=a(s[l],u)}return $M(s,e,t)}}),FM={id:"enumeration-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===Z.Enumeration,transform:(e,t,n)=>{const r=structuredClone(e[Z.Enumeration]);for(const a in r){const s=r[a],l={...t,children:s,keyPath:[...t.keyPath,{type:Z.Enumeration,key:a}]};r[a]=n(s,l)}return a=>NM(r,a)}},GM={id:"condition-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===Z.Condition,transform:(e,t,n)=>{const r=structuredClone(e[Z.Condition]);for(const a in r){const s=r[a],l={...t,children:s,keyPath:[...t.keyPath,{type:Z.Condition,key:a}]};r[a]=n(s,l)}return a=>RM(r,a)}},KM={id:"insertion-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===Z.Insertion,transform:(e,t,n)=>{const r=[...t.keyPath,{type:Z.Insertion}],a=e[Z.Insertion];return n(a,{...t,children:a,keyPath:r,plugins:[{id:"insertion-string-plugin",canHandle:l=>typeof l=="string",transform:(l,u,d)=>{const f=d(l,{...u,children:l,plugins:[...(t.plugins??[]).filter(m=>m.id!=="intlayer-node-plugin")]});return m=>{const p=OM(f,m);return d(p,{...u,plugins:t.plugins,children:p})}}},...t.plugins??[]]})}},qM={id:"nested-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===Z.Nested,transform:(e,t)=>UM(e.nested.dictionaryKey,e.nested.path,t)},ZM={id:"file-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===Z.File,transform:(e,t,n)=>n(e.content,{...t,children:e.content})},jv=(e,t,n=Ge==null?void 0:Ge.internationalization.defaultLocale)=>{const r=[KM,HM(n),FM,GM,qM,ZM,...t.plugins??[]];return Qd(e,{...t,plugins:r})},NS={method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"},WM=e=>(Object.keys(e).forEach(t=>{e[t]===void 0&&delete e[t]}),e),xd=e=>e.reduce((t,n)=>{const r=t??{},a=WM(n??{});return typeof r=="object"&&typeof a=="object"?{...r,...a}:a??r},{}),je=async(e,...t)=>{const{signal:n}=new AbortController;let r="",a;const s=t.map(({body:x,params:y,headers:E,...A})=>A),l=xd([NS,...s]),u=xd([NS.headers,...t.map(x=>x.headers)]),d=xd(t.map(x=>x.params)),f=l.method;if(f!=="GET"&&f!=="HEAD"){const x=xd(t.map(y=>y.body));(u==null?void 0:u["Content-Type"])==="application/x-www-form-urlencoded"?a=new URLSearchParams(x).toString():a=JSON.stringify(x)}Object.entries(d).length>0&&(r=`?${new URLSearchParams(d).toString()}`);const m={...l,headers:u,body:a,signal:n},p=`${e}${r}`,v=await fetch(p,m);if(!v.ok){const x=await v.json();throw new Error(JSON.stringify(x.error)??"An error occurred")}return await v.json()},YM=(e={},t)=>{var p,v;const n=((p=t==null?void 0:t.editor)==null?void 0:p.backendURL)??((v=Ge.editor)==null?void 0:v.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/dictionary`;return{getDictionaries:async(x,y={})=>await je(r,e,y,{params:x}),getDictionariesKeys:async(x={})=>await je(`${r}/keys`,e,x),getDictionary:async(x,y,E={})=>await je(`${r}/${x}`,e,E,{params:y?{version:y.toString()}:void 0}),pushDictionaries:async(x,y={})=>await je(`${r}`,e,y,{method:"PATCH",body:{dictionaries:x}}),addDictionary:async(x,y={})=>await je(`${r}`,e,y,{method:"POST",body:x}),updateDictionary:async(x,y,E={})=>await je(`${r}/${x}`,e,E,{method:"PUT",body:y}),deleteDictionary:async(x,y={})=>await je(`${r}/${x}`,e,y,{method:"DELETE"})}},K1=e=>{var s,l;const t=((s=e==null?void 0:e.editor)==null?void 0:s.backendURL)??((l=Ge.editor)==null?void 0:l.backendURL),{clientId:n,clientSecret:r}=(e==null?void 0:e.editor)??{};if(!t)throw new Error("Backend URL is not defined in the Intlayer configuration.");return{getOAuth2AccessToken:async(u={})=>await je(`${t}/oauth2/token`,{},u,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:{grant_type:"client_credentials",client_id:n,client_secret:r}})}},XM=(e={},t)=>{var v,x;const n=((v=t==null?void 0:t.editor)==null?void 0:v.backendURL)??((x=Ge.editor)==null?void 0:x.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/ai`;return{customQuery:async(y,E={})=>await je(r,e,E,{method:"POST",body:y}),translateJSON:async(y,E={})=>await je(`${r}/translate/json`,e,E,{method:"POST",body:y}),auditContentDeclaration:async(y,E={})=>await je(`${r}/audit/dictionary`,e,E,{method:"POST",body:y}),auditContentDeclarationField:async(y,E={})=>await je(`${r}/audit/dictionary/field`,e,E,{method:"POST",body:y}),auditContentDeclarationMetadata:async(y,E={})=>await je(`${r}/audit/dictionary/metadata`,e,E,{method:"POST",body:y}),auditTag:async(y,E={})=>await je(`${r}/audit/tag`,e,E,{method:"POST",body:y}),askDocQuestion:async(y,E={})=>{var O;if(!y)return;const{onMessage:A,onDone:T,...w}=y,R=new AbortController;try{const N=await fetch(`${r}/ask`,{method:"POST",headers:{"Content-Type":"application/json",...e.headers,...E.headers},body:JSON.stringify({...w,...e.body,...E.body}),signal:R.signal,credentials:"include"});if(!N.ok){let P="An error occurred";try{const M=await N.json();P=JSON.stringify(M.error)??"An error occurred"}catch{try{const M=await N.text();M&&(P=M)}catch{}}throw new Error(P)}const I=(O=N.body)==null?void 0:O.getReader();if(!I)throw new Error("No reader available");const D=new TextDecoder;let j="";for(;;){const{done:P,value:M}=await I.read();if(P)break;j+=D.decode(M,{stream:!0});const oe=j.split(`
|
|
51
51
|
`);j=oe.pop()??"";for(const ae of oe)if(ae.startsWith("data: "))try{const W=JSON.parse(ae.slice(6));W.chunk&&(A==null||A(W.chunk)),W.done&&W.response&&(T==null||T(W.response))}catch(W){console.error("Failed to parse SSE data:",W)}}}catch(N){throw console.error("Error in askDocQuestion:",N),N}},autocomplete:async(y,E={})=>await je(`${r}/autocomplete`,e,E,{method:"POST",body:y})}},QM=(e={},t)=>{var u,d;const n=((u=t==null?void 0:t.editor)==null?void 0:u.editorURL)??((d=Ge.editor)==null?void 0:d.editorURL);if(!n)throw new Error("Editor URL is not defined in the Intlayer configuration.");const r=`${n}/api`;return{getDictionaries:async(f={})=>(await je(`${r}/dictionary`,e,f)).data,getConfiguration:async(f={})=>(await je(`${r}/config`,e,f)).data,writeDictionary:async(f,m={})=>await je(`${r}/dictionary`,e,m,{method:"POST",body:{dictionary:f}})}},JM=(e={},t)=>{var u,d;const n=((u=t==null?void 0:t.editor)==null?void 0:u.backendURL)??((d=Ge.editor)==null?void 0:d.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/newsletter`;return{subscribeToNewsletter:async(f,m={})=>await je(`${r}/subscribe`,e,m,{method:"POST",body:f}),unsubscribeFromNewsletter:async(f,m={})=>await je(`${r}/unsubscribe`,e,m,{method:"POST",body:f}),getNewsletterStatus:async(f={})=>await je(`${r}/status`,e,f,{method:"GET"})}},eP=(e={},t)=>{var x,y;const n=((x=t==null?void 0:t.editor)==null?void 0:x.backendURL)??((y=Ge.editor)==null?void 0:y.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration--.");const r=`${n}/api/organization`;return{getOrganizations:async(E,A={})=>await je(r,e,A,{params:E}),getOrganization:async(E,A={})=>await je(`${r}/${String(E)}`,e,A),addOrganization:async(E,A={})=>await je(r,e,A,{method:"POST",body:E}),addOrganizationMember:async(E,A={})=>je(`${r}/member`,e,A,{method:"POST",body:E}),updateOrganization:async(E,A={})=>je(r,e,A,{method:"PUT",body:E}),updateOrganizationMembers:async(E,A={})=>je(`${r}/members`,e,A,{method:"PUT",body:E}),deleteOrganization:async(E={})=>await je(r,e,E,{method:"DELETE"}),selectOrganization:async(E,A={})=>await je(`${r}/${String(E)}`,e,A,{method:"PUT"}),unselectOrganization:async(E={})=>await je(`${r}/logout`,e,E,{method:"POST"})}},tP=(e={},t)=>{var E,A;const n=((E=t==null?void 0:t.editor)==null?void 0:E.backendURL)??((A=Ge.editor)==null?void 0:A.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/project`;return{getProjects:async(T,w={})=>await je(r,e,w,{params:T}),addProject:async(T,w={})=>await je(`${r}`,e,w,{method:"POST",body:T}),updateProject:async(T,w={})=>await je(`${r}`,e,w,{method:"PUT",body:T}),updateProjectMembers:async(T,w={})=>await je(`${r}/members`,e,w,{method:"PUT",body:T}),pushProjectConfiguration:async(T,w={})=>await je(`${r}/configuration`,e,w,{method:"PUT",body:T}),deleteProject:async(T={})=>await je(`${r}`,e,T,{method:"DELETE"}),selectProject:async(T,w={})=>await je(`${r}/${String(T)}`,e,w,{method:"PUT"}),unselectProject:async(T={})=>await je(`${r}/logout`,e,T,{method:"POST"}),addNewAccessKey:async(T,w={})=>await je(`${r}/access_key`,e,w,{method:"POST",body:T}),deleteAccessKey:async(T,w={})=>await je(`${r}/access_key`,e,w,{method:"DELETE",body:{clientId:T}}),refreshAccessKey:async(T,w={})=>await je(`${r}/access_key`,e,w,{method:"PATCH",body:{clientId:T}})}},nP=(e={},t)=>{var s,l;const n=((s=t==null?void 0:t.editor)==null?void 0:s.backendURL)??((l=Ge.editor)==null?void 0:l.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/search`;return{searchDoc:async(u,d={})=>await je(`${r}/doc`,e,d,{method:"GET",params:u})}},rP=(e={},t)=>{var u,d;const n=((u=t==null?void 0:t.editor)==null?void 0:u.backendURL)??((d=Ge.editor)==null?void 0:d.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/stripe`;return{getPricing:async(f,m={})=>await je(`${r}/pricing`,e,m,{method:"POST",body:f}),getSubscription:async(f,m={})=>await je(`${r}/create-subscription`,e,m,{method:"POST",body:f}),cancelSubscription:async(f={})=>await je(`${r}/cancel-subscription`,e,f,{method:"POST"})}},iP=(e={},t)=>{var d,f;const n=((d=t==null?void 0:t.editor)==null?void 0:d.backendURL)??((f=Ge.editor)==null?void 0:f.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/tag`;return{getTags:async(m,p={})=>await je(r,e,p,{params:m}),addTag:async(m,p={})=>await je(`${r}`,e,p,{method:"POST",body:m}),updateTag:async(m,p,v={})=>await je(`${r}/${m}`,e,v,{method:"PUT",body:p}),deleteTag:async(m,p={})=>await je(`${r}/${m}`,e,p,{method:"DELETE"})}},aP=(e={},t)=>{var v,x;const n=((v=t==null?void 0:t.editor)==null?void 0:v.backendURL)??((x=Ge.editor)==null?void 0:x.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/user`;return{createUser:async(y,E={})=>await je(`${r}/`,e,E,{method:"POST",body:y}),getUsers:async(y,E={})=>await je(r,e,E,{params:y}),getUserById:async(y,E={})=>await je(`${r}/${y}`,e,E),getUserByAccount:async(y,E,A={})=>await je(`${r}/account/${E}/${y}`,e,A),getUserByEmail:async(y,E={})=>await je(`${r}/email/${y}`,e,E),updateUser:async(y,E={})=>await je(`${r}`,e,E,{method:"PUT",body:y}),deleteUser:async(y,E={})=>await je(`${r}/${y}`,e,E,{method:"DELETE"}),getVerifyEmailStatusURL:y=>`${r}/verify-email-status/${String(y)}`}},oP=(e={},t)=>({organization:eP(e,t),project:tP(e,t),user:aP(e,t),oAuth:K1(t),dictionary:YM(e,t),stripe:rP(e,t),ai:XM(e,t),tag:iP(e,t),search:nP(e,t),editor:QM(e,t),newsletter:JM(e,t)}),sP=e=>{switch(e){case B.ENGLISH:case B.FRENCH:case B.SPANISH:case B.PORTUGUESE:case B.GERMAN:case B.AFRIKAANS:case B.AZERI_LATIN:case B.BELARUSIAN:case B.BULGARIAN:case B.BOSNIAN:case B.CATALAN:case B.CZECH:case B.WELSH:case B.DANISH:case B.ESPERANTO:case B.ESTONIAN:case B.BASQUE:case B.FINNISH:case B.FAROESE:case B.GALICIAN:case B.GREEK:case B.CROATIAN:case B.HUNGARIAN:case B.ARMENIAN:case B.INDONESIAN:case B.ICELANDIC:case B.ITALIAN:case B.JAPANESE:case B.GEORGIAN:case B.KAZAKH:case B.KANNADA:case B.KOREAN:case B.KONKANI:case B.KYRGYZ:case B.LITHUANIAN:case B.LATVIAN:case B.MAORI:case B.FYRO_MACEDONIAN:case B.MONGOLIAN:case B.MARATHI:case B.MALAY:case B.MALTESE:case B.NORWEGIAN_BOKMAL:case B.DUTCH:case B.NORTHERN_SOTHO:case B.PUNJABI:case B.POLISH:case B.QUECHUA:case B.ROMANIAN:case B.RUSSIAN:case B.SANSKRIT:case B.SAMI_NORTHERN:case B.SLOVAK:case B.SLOVENIAN:case B.ALBANIAN:case B.SERBIAN_LATIN:case B.SWEDISH:case B.SWAHILI:case B.TAMIL:case B.TELUGU:case B.THAI:case B.TAGALOG:case B.TSWANA:case B.TURKISH:case B.UKRAINIAN:case B.UZBEK_LATIN:case B.VIETNAMESE:case B.XHOSA:case B.CHINESE_SIMPLIFIED:case B.CHINESE_TRADITIONAL:case B.ZULU:case B.AFRIKAANS_SOUTH_AFRICA:case B.AZERI_LATIN_AZERBAIJAN:case B.BELARUSIAN_BELARUS:case B.BULGARIAN_BULGARIA:case B.BOSNIAN_BOSNIA_AND_HERZEGOVINA:case B.CATALAN_SPAIN:case B.CZECH_CZECH_REPUBLIC:case B.WELSH_UNITED_KINGDOM:case B.DANISH_DENMARK:case B.GERMAN_AUSTRIA:case B.GERMAN_SWITZERLAND:case B.GERMAN_GERMANY:case B.GERMAN_LIECHTENSTEIN:case B.GERMAN_LUXEMBOURG:case B.GREEK_GREECE:case B.ENGLISH_AUSTRALIA:case B.ENGLISH_BELIZE:case B.ENGLISH_CANADA:case B.ENGLISH_CARIBBEAN:case B.ENGLISH_UNITED_KINGDOM:case B.ENGLISH_IRELAND:case B.ENGLISH_JAMAICA:case B.ENGLISH_NEW_ZEALAND:case B.ENGLISH_PHILIPPINES:case B.ENGLISH_TRINIDAD_AND_TOBAGO:case B.ENGLISH_UNITED_STATES:case B.ENGLISH_SOUTH_AFRICA:case B.ENGLISH_ZIMBABWE:case B.SPANISH_ARGENTINA:case B.SPANISH_BOLIVIA:case B.SPANISH_CHILE:case B.SPANISH_COLOMBIA:case B.SPANISH_COSTA_RICA:case B.SPANISH_DOMINICAN_REPUBLIC:case B.SPANISH_ECUADOR:case B.SPANISH_SPAIN:case B.SPANISH_GUATEMALA:case B.SPANISH_HONDURAS:case B.SPANISH_MEXICO:case B.SPANISH_NICARAGUA:case B.SPANISH_PANAMA:case B.SPANISH_PERU:case B.SPANISH_PUERTO_RICO:case B.SPANISH_PARAGUAY:case B.SPANISH_EL_SALVADOR:case B.SPANISH_URUGUAY:case B.SPANISH_VENEZUELA:case B.ESTONIAN_ESTONIA:case B.BASQUE_SPAIN:case B.FINNISH_FINLAND:case B.FAROESE_FAROE_ISLANDS:case B.FRENCH_BELGIUM:case B.FRENCH_CANADA:case B.FRENCH_SWITZERLAND:case B.FRENCH_FRANCE:case B.FRENCH_LUXEMBOURG:case B.FRENCH_PRINCIPALITY_OF_MONACO:case B.GALICIAN_SPAIN:case B.GUJARATI_INDIA:case B.HEBREW_ISRAEL:case B.HINDI_INDIA:case B.CROATIAN_BOSNIA_AND_HERZEGOVINA:case B.CROATIAN_CROATIA:case B.HUNGARIAN_HUNGARY:case B.ARMENIAN_ARMENIA:case B.INDONESIAN_INDONESIA:case B.ICELANDIC_ICELAND:case B.ITALIAN_SWITZERLAND:case B.ITALIAN_ITALY:case B.JAPANESE_JAPAN:case B.GEORGIAN_GEORGIA:case B.KAZAKH_KAZAKHSTAN:case B.KANNADA_INDIA:case B.KOREAN_KOREA:case B.KONKANI_INDIA:case B.KYRGYZ_KYRGYZSTAN:case B.LITHUANIAN_LITHUANIA:case B.LATVIAN_LATVIA:case B.MAORI_NEW_ZEALAND:case B.FYRO_MACEDONIAN_MACEDONIA:case B.MONGOLIAN_MONGOLIA:case B.MARATHI_INDIA:case B.MALAY_BRUNEI_DARUSSALAM:case B.MALAY_MALAYSIA:case B.MALTESE_MALTA:case B.NORWEGIAN_BOKMAL_NORWAY:case B.DUTCH_BELGIUM:case B.DUTCH_NETHERLANDS:case B.NORWEGIAN_NYNORSK_NORWAY:case B.NORTHERN_SOTHO_SOUTH_AFRICA:case B.PUNJABI_INDIA:case B.POLISH_POLAND:case B.PORTUGUESE_BRAZIL:case B.PORTUGUESE_PORTUGAL:case B.QUECHUA_BOLIVIA:case B.QUECHUA_ECUADOR:case B.QUECHUA_PERU:case B.ROMANIAN_ROMANIA:case B.RUSSIAN_RUSSIA:case B.SANSKRIT_INDIA:case B.SAMI_NORTHERN_FINLAND:case B.SAMI_NORTHERN_NORWAY:case B.SAMI_NORTHERN_SWEDEN:case B.SLOVAK_SLOVAKIA:case B.SLOVENIAN_SLOVENIA:case B.ALBANIAN_ALBANIA:case B.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA:case B.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO:case B.SWAHILI_KENYA:case B.TAMIL_INDIA:case B.TELUGU_INDIA:case B.THAI_THAILAND:case B.TAGALOG_PHILIPPINES:case B.TSWANA_SOUTH_AFRICA:case B.TURKISH_TURKEY:case B.TATAR_RUSSIA:case B.TSOGA:case B.UKRAINIAN_UKRAINE:case B.UZBEK_LATIN_UZBEKISTAN:case B.VIETNAMESE_VIET_NAM:case B.XHOSA_SOUTH_AFRICA:case B.CHINESE_HONG_KONG:case B.CHINESE_MACAU:case B.CHINESE_SINGAPORE:case B.ZULU_SOUTH_AFRICA:return"ltr";case B.ARABIC:case B.FARSI:case B.URDU:case B.PASHTO:case B.SYRIAC:case B.ARABIC_UNITED_ARAB_EMIRATES:case B.ARABIC_BAHRAIN:case B.ARABIC_ALGERIA:case B.ARABIC_EGYPT:case B.ARABIC_IRAQ:case B.ARABIC_JORDAN:case B.ARABIC_KUWAIT:case B.ARABIC_LEBANON:case B.ARABIC_LIBYA:case B.ARABIC_MOROCCO:case B.ARABIC_OMAN:case B.ARABIC_QATAR:case B.ARABIC_SAUDI_ARABIA:case B.ARABIC_SYRIA:case B.ARABIC_TUNISIA:case B.ARABIC_YEMEN:case B.FARSI_IRAN:case B.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN:case B.PASHTO_AFGHANISTAN:case B.SYRIAC_SYRIA:return"rtl";default:return"auto"}},q1=e=>/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e),OS=new Map,Jd=(e,t=e)=>{if(typeof(Intl==null?void 0:Intl.DisplayNames)!="function")return e;let n=OS.get(t);return n||(n=new Intl.DisplayNames([t],{type:"language"}),OS.set(t,n)),n.of(e)??"Unknown locale"},lP=(e,t=Ge.internationalization.locales)=>{const n=q1(e);let r=e;e.endsWith("/")&&(r=e.slice(0,-1));const a=n?new URL(r):new URL(r,"http://example.com"),s=a.pathname;s.startsWith("/")||(a.pathname=`/${s}`);const l=s.split("/"),u=l[1];if(t.includes(u)){l.splice(1,1);const d=l.join("/")??"/";a.pathname=d}return n?a.toString():a.toString().replace("http://example.com","")},cP=(e,t=Ge.internationalization.locales,n=Ge.internationalization.defaultLocale,r=Ge.middleware.prefixDefault)=>{const a=lP(e,t),s=q1(a),l=s?new URL(a):new URL(a,"http://example.com");let u=l.pathname;u.startsWith("/")||(u=`/${u}`);const d=s?`${l.protocol}//${l.host}`:"";return t.reduce((m,p)=>{const v=p.toString()===n.toString();let y=r||!v?`/${p}${u}`:u;y.length>1&&y.endsWith("/")&&(y=y.slice(0,-1));const E=s?`${d}${y}${l.search}${l.hash}`:`${y}${l.search}${l.hash}`;return m[p]=E,m},{})},uP=(e,t,n=Ge.internationalization.locales,r=Ge.internationalization.defaultLocale,a=Ge.middleware.prefixDefault)=>cP(e,n,r,a)[t],dP=(e,t=Ge.internationalization.locales,n=Ge.internationalization.defaultLocale)=>{const r=[e].flat(),a=s=>s.trim().toLowerCase();try{for(const s of r){const l=a(s),u=t.find(m=>a(m)===l);if(u)return u;const[d]=l.split("-"),f=t.find(m=>a(m).split("-")[0]===d);if(f)return f}}catch{}return n},Sd=e=>{const t=/{{\s*(\w+)\s*}}/g,n=[...e.matchAll(t)];return n.length===0?[]:n.map(r=>r[1])},fP=e=>{const t=()=>{if(typeof e=="string")return Sd(e);let n;if(typeof e=="function"?n=e():typeof e.then=="function"&&(n=async()=>Sd(await e)),typeof n=="string")return Sd(n);try{return Sd(JSON.stringify(e))}catch{return[]}};return H1(Z.Insertion,e,{fields:t()})},hP=e=>{let t=e.trim().replace(/^\[/,"[").replace(/^\{/,"{").replace(/\]$/,"]").replace(/\}$/,"}").replace(/([\w\d_]+)\s*:/g,'"$1":').replace(/:\s*([a-zA-Z_][\w\d_]*)/g,': "$1"');return t=t.replace(/\[([^\[\]]+?)\]/g,(n,r)=>`[${r.split(",").map(s=>{const l=s.trim();return l.startsWith('"')&&l.endsWith('"')||!isNaN(Number(l))?l:`"${l}"`}).join(", ")}]`),JSON.parse(t)},Z1=e=>{try{const t=e.split(/\r?\n/),n=t.find(u=>u.trim()!=="");if(!n||n.trim()!=="---")return{};const r={};let a=!1,s=null,l=[];for(let u=0;u<t.length;u++){const d=t[u];if(d.trim()==="---")if(a){s&&l.length>0&&(r[s]=l);break}else{a=!0;continue}if(a){const m=d.match(/^\s*-\s+(.+)$/);if(m&&s){l.push(m[1].trim());continue}s&&l.length>0&&(r[s]=l,s=null,l=[]);const p=d.match(/^([^:]+)\s*:\s*(.*)$/);if(p){const v=p[1].trim(),x=p[2].trim();if(x==="")s=v,l=[];else try{r[v]=hP(x)}catch{r[v]=x}}}}return r}catch{return{}}},ge=e=>H1(Z.Translation,e),Fc=(e,t)=>e.every((n,r)=>t[r]&&t[r].key===n.key&&t[r].type===n.type),mP=(e,t)=>{try{const n=new URL(e),r=new URL(t);if(n.protocol!==r.protocol||n.hostname!==r.hostname||n.port!==r.port)return!1;const a=n.pathname.replace(/\/$/,""),s=r.pathname.replace(/\/$/,"");return!(a!==""&&s!==""&&a!==s)}catch(n){return console.error("Invalid URL(s)",n),!1}},pP=e=>{const t=new MouseEvent("mousedown",{bubbles:!0,cancelable:!0,view:window}),n=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window});Object.assign(n,{iframeData:e}),Object.assign(t,{iframeData:e}),window.dispatchEvent(n),window.dispatchEvent(t)};var xn=(e=>(e.INTLAYER_CONFIGURATION="INTLAYER_CONFIGURATION",e.INTLAYER_CURRENT_LOCALE="INTLAYER_CURRENT_LOCALE",e.INTLAYER_EDITOR_ENABLED="INTLAYER_EDITOR_ENABLED",e.INTLAYER_URL_CHANGE="INTLAYER_URL_CHANGE",e.INTLAYER_HOVERED_CONTENT_CHANGED="INTLAYER_HOVERED_CONTENT_CHANGED",e.INTLAYER_FOCUSED_CONTENT_CHANGED="INTLAYER_FOCUSED_CONTENT_CHANGED",e.INTLAYER_LOCALE_DICTIONARIES_CHANGED="INTLAYER_LOCALE_DICTIONARIES_CHANGED",e.INTLAYER_DISTANT_DICTIONARIES_CHANGED="INTLAYER_DISTANT_DICTIONARIES_CHANGED",e.INTLAYER_EDITED_CONTENT_CHANGED="INTLAYER_EDITED_CONTENT_CHANGED",e.INTLAYER_IFRAME_CLICKED="INTLAYER_IFRAME_CLICKED",e))(xn||{});const on=[];for(let e=0;e<256;++e)on.push((e+256).toString(16).slice(1));function gP(e,t=0){return(on[e[t+0]]+on[e[t+1]]+on[e[t+2]]+on[e[t+3]]+"-"+on[e[t+4]]+on[e[t+5]]+"-"+on[e[t+6]]+on[e[t+7]]+"-"+on[e[t+8]]+on[e[t+9]]+"-"+on[e[t+10]]+on[e[t+11]]+on[e[t+12]]+on[e[t+13]]+on[e[t+14]]+on[e[t+15]]).toLowerCase()}let ng;const yP=new Uint8Array(16);function vP(){if(!ng){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ng=crypto.getRandomValues.bind(crypto)}return ng(yP)}const bP=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),kS={randomUUID:bP};function _P(e,t,n){var a;if(kS.randomUUID&&!e)return kS.randomUUID();e=e||{};const r=e.random??((a=e.rng)==null?void 0:a.call(e))??vP();if(r.length<16)throw new Error("Random bytes length must be >= 16");return r[6]=r[6]&15|64,r[8]=r[8]&63|128,gP(r)}const{editor:yi}=Ge,W1=S.createContext({postMessage:()=>null,allowedOrigins:[yi==null?void 0:yi.applicationURL,yi==null?void 0:yi.editorURL,yi==null?void 0:yi.cmsURL],senderId:""}),DS=({children:e,allowedOrigins:t,postMessage:n})=>{const r=S.useRef(_P()),a=S.useMemo(()=>({postMessage:n,allowedOrigins:t,senderId:r.current}),[n,t,r.current]);return b.jsx(W1.Provider,{value:a,children:e})},Mv=()=>S.useContext(W1),_s=(e,t,n)=>{const{allowedOrigins:r,postMessage:a,senderId:s}=Mv();return S.useEffect(()=>{if(t){const u=d=>{const{type:f,data:m,senderId:p}=d.data;f===e&&p!==s&&(typeof r>"u"||r!=null&&r.some(v=>mP(v,d.origin))||r!=null&&r.includes("*"))&&t(m)};return window.addEventListener("message",u),()=>window.removeEventListener("message",u)}},[r,a,s,n]),u=>{a({type:e,data:u,senderId:s})}},EP=(e,t)=>typeof e=="function"?e(t):e,la=(e,t,n)=>{const{postMessage:r,senderId:a}=Mv(),{emit:s,receive:l}=n??{emit:!0,receive:!0},u=(x,y)=>{const E=EP(x,y);return s&&typeof r=="function"&&typeof E<"u"&&r({type:`${e}/post`,data:E,senderId:a}),E},d=()=>{typeof r=="function"&&r({type:`${e}/post`,data:f,senderId:a})},[f,m]=S.useState(()=>u(t)),p=x=>m(y=>u(x,y));_s(`${e}/post`,l?x=>{m(x)}:void 0);const v=(x,y)=>{s&&typeof r=="function"&&y!==a&&(typeof f>"u"||r({type:`${e}/post`,data:f,senderId:a}))};return _s(`${e}/get`,s?v:void 0,f),S.useEffect(()=>{l&&typeof r=="function"&&typeof f>"u"&&r({type:`${e}/get`,senderId:a})},[]),[f,p,d]},Y1=S.createContext(void 0),xP=({children:e,configuration:t})=>b.jsx(Y1.Provider,{value:t,children:e}),Zr=()=>S.useContext(Y1),X1=S.createContext(void 0),Q1=S.createContext(void 0),SP=({children:e})=>{const[t,n]=la(xn.INTLAYER_LOCALE_DICTIONARIES_CHANGED,void 0),r=S.useMemo(()=>({localeDictionaries:t??{}}),[t]),a=S.useMemo(()=>({setLocaleDictionaries:n,setLocaleDictionary:s=>{n(l=>({...l,[s.key]:s}))}}),[n]);return b.jsx(X1.Provider,{value:r,children:b.jsx(Q1.Provider,{value:a,children:e})})},nh=()=>S.useContext(Q1),J1=()=>{const e=nh(),t=S.useContext(X1);if(!t)throw new Error("useDictionariesRecordStates must be used within a DictionariesRecordProvider");return{...t,...e}},eR=S.createContext(void 0),AP=e=>_s(`${xn.INTLAYER_EDITED_CONTENT_CHANGED}/get`,e),tR=S.createContext(void 0),IS=(e,t)=>typeof e=="function"?e(t):e,wP=({children:e})=>{const{localeDictionaries:t}=J1(),[n,r]=la(xn.INTLAYER_EDITED_CONTENT_CHANGED),a=x=>{let y=IS(x);return r(E=>(y=IS(x,E==null?void 0:E[y.key]),{...E,[y.key]:y})),y},s=(x,y)=>{r(E=>({...E,[x]:{...E==null?void 0:E[x],content:y}}))},l=(x,y,E=[],A=!0)=>{r(T=>{var I,D;const w=(I=t[x])==null?void 0:I.content,R=structuredClone(((D=T==null?void 0:T[x])==null?void 0:D.content)??w);let O=E;if(!A){let j=0;const P=E.slice(0,-1),M=E[E.length-1];let oe=M.key;for(;typeof Ur(R,O)<"u";)j++,oe=j===0?M.key:`${M.key} (${j})`,O=[...P,{...M,key:oe}]}const N=RS(R,O,y);return{...T,[x]:{...T==null?void 0:T[x],content:N}}})},u=(x,y,E=[])=>{r(A=>{var O,N;const T=(O=t[x])==null?void 0:O.content,w=structuredClone(((N=A==null?void 0:A[x])==null?void 0:N.content)??T),R=wM(w,y,E);return{...A,[x]:{...A==null?void 0:A[x],content:R}}})},d=(x,y)=>{r(E=>{var O,N;const A=(O=t[x])==null?void 0:O.content,T=structuredClone(((N=E==null?void 0:E[x])==null?void 0:N.content)??A),w=Ur(A,y),R=RS(T,y,w);return{...E,[x]:{...E==null?void 0:E[x],content:R}}})},f=x=>{r(y=>{const E={...y};return delete E[x],E})},m=x=>{r(y=>Object.entries(y).reduce((A,[T,w])=>T===x?A:{...A,[T]:w},{}))},p=()=>{r({})},v=(x,y)=>{var A;const E=((A=n==null?void 0:n[x])==null?void 0:A.content)??{};return Ur(E,y)};return b.jsx(eR.Provider,{value:{editedContent:n},children:b.jsx(tR.Provider,{value:{setEditedContentState:r,setEditedDictionary:a,setEditedContent:s,addEditedContent:l,renameEditedContent:u,removeEditedContent:d,restoreEditedContent:f,clearEditedDictionaryContent:m,clearEditedContent:p,getEditedContentValue:v},children:e})})},Ns=()=>S.useContext(tR),Sn=()=>{const e=S.useContext(eR),t=Ns();return{...e,...t}},nR=S.createContext({enabled:!1}),TP=e=>la(xn.INTLAYER_EDITOR_ENABLED,!1,e),RP=e=>_s(`${xn.INTLAYER_EDITOR_ENABLED}/post`,e),rR=e=>_s(`${xn.INTLAYER_EDITOR_ENABLED}/get`,e),CP=({children:e})=>{const[t]=TP({emit:!1,receive:!0});return b.jsx(nR.Provider,{value:{enabled:t},children:e})},iR=()=>S.useContext(nR),aR=S.createContext(void 0),oR=S.createContext(void 0),NP=({children:e})=>{const[t,n]=la(xn.INTLAYER_FOCUSED_CONTENT_CHANGED,null),r=a=>{n(s=>s&&{...s,keyPath:a})};return b.jsx(aR.Provider,{value:{focusedContent:t},children:b.jsx(oR.Provider,{value:{setFocusedContent:n,setFocusedContentKeyPath:r},children:e})})},Pv=()=>{const e=S.useContext(oR);if(e===void 0)throw new Error("useFocusDictionaryActions must be used within a FocusDictionaryProvider");return e},ma=()=>{const e=Pv(),t=S.useContext(aR);if(t===void 0)throw new Error("useFocusDictionaryState must be used within a FocusDictionaryProvider");return{...t,...e}},LS=({children:e})=>{const t=AP();return S.useEffect(()=>{t()},[]),b.jsx(SP,{children:b.jsx(wP,{children:b.jsx(NP,{children:e})})})},OP=({children:e,fallback:t})=>{const n=rR(),{enabled:r}=iR();return S.useEffect(()=>{r||n()},[r]),r?e:t},kP=({children:e,fallback:t})=>{const[n,r]=S.useState(!1);return S.useEffect(()=>{r(window.self!==window.top)},[]),n?e:t},DP=({children:e,configuration:t,...n})=>b.jsx(CP,{children:b.jsx(xP,{configuration:t,children:n.mode==="editor"?b.jsx(DS,{...n,children:b.jsx(LS,{children:e})}):b.jsx(kP,{fallback:e,children:b.jsx(DS,{...n,children:b.jsx(OP,{fallback:e,children:b.jsx(LS,{children:e})})})})})}),IP=(e,t)=>la(xn.INTLAYER_URL_CHANGE,e,t),LP=()=>_s(xn.INTLAYER_IFRAME_CLICKED,pP);/*! js-cookie v3.0.5 | MIT */function Ad(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var jP={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function gy(e,t){function n(a,s,l){if(!(typeof document>"u")){l=Ad({},t,l),typeof l.expires=="number"&&(l.expires=new Date(Date.now()+l.expires*864e5)),l.expires&&(l.expires=l.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var u="";for(var d in l)l[d]&&(u+="; "+d,l[d]!==!0&&(u+="="+l[d].split(";")[0]));return document.cookie=a+"="+e.write(s,a)+u}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var s=document.cookie?document.cookie.split("; "):[],l={},u=0;u<s.length;u++){var d=s[u].split("="),f=d.slice(1).join("=");try{var m=decodeURIComponent(d[0]);if(l[m]=e.read(f,m),a===m)break}catch{}}return a?l[a]:l}}return Object.create({set:n,get:r,remove:function(a,s){n(a,"",Ad({},s,{expires:-1}))},withAttributes:function(a){return gy(this.converter,Ad({},this.attributes,a))},withConverter:function(a){return gy(Ad({},this.converter,a),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var sR=gy(jP,{path:"/"});const{cookieName:lR}=Ge.middleware,MP={path:"/",expires:void 0,domain:void 0,secure:!1,sameSite:"strict"},zv=sR.get(lR),cR=e=>{sR.set(lR,e,MP)},PP=()=>({localeCookie:zv,setLocaleCookie:cR});var B1;const rh=S.createContext({locale:zv??((B1=Ge==null?void 0:Ge.internationalization)==null?void 0:B1.defaultLocale),setLocale:()=>null,disableEditor:!1}),zP=()=>S.useContext(rh),VP=({locale:e,defaultLocale:t,children:n,setLocale:r,disableEditor:a})=>{const{internationalization:s}=Ge??{},{defaultLocale:l,locales:u}=s??{},d=e??zv??t??l,[f,m]=la(xn.INTLAYER_CURRENT_LOCALE,d),v=r??(y=>{if(f.toString()!==y.toString()){if(!(u!=null&&u.map(String).includes(y))){console.error(`Locale ${y} is not available`);return}m(y),cR(y)}}),x=dP(e??f);return b.jsx(rh.Provider,{value:{locale:x,setLocale:v,disableEditor:a},children:n})},bf=({children:e,value:t,additionalProps:n})=>{const r=S.isValidElement(e)?e:b.jsx(b.Fragment,{children:e});return new Proxy(r,{get(a,s,l){return s==="value"?t:n&&Object.keys(n).includes(s)?n[s]:Reflect.get(a,s,l)}})},BP=250,UP=({children:e,onPress:t,onHover:n,onUnhover:r,onClickOutside:a,pressDuration:s=BP,isSelecting:l,...u})=>{const d=S.useRef(null),[f,m]=S.useState(!1),[p,v]=S.useState(l),x=S.useRef(null),y=typeof e=="string",E=()=>{v(!0),t()},A=()=>{x.current=setTimeout(()=>{E()},s)},T=()=>{x.current&&(clearTimeout(x.current),x.current=null)},w=()=>{T(),A()},R=()=>{m(!0),n==null||n()},O=()=>{r==null||r(),m(!1),T()},N=S.useCallback(j=>{d.current&&!d.current.contains(j.target)&&(v(!1),a==null||a())},[a]);S.useEffect(()=>(document.addEventListener("mousedown",N),()=>{document.removeEventListener("mousedown",N)}),[N]);const I=j=>{p&&(j.preventDefault(),j.stopPropagation())},D=()=>{v(!1)};return b.jsx("span",{style:{display:y?"inline":"inline-block",cursor:"pointer",userSelect:"none",borderRadius:"0.375rem",outlineWidth:"2px",outlineOffset:"4px",outlineStyle:"solid",outlineColor:l||p||f?"inherit":"transparent",transition:"all 100ms 50ms ease-in-out"},role:"button",tabIndex:0,onKeyUp:()=>null,onClick:I,onMouseDown:w,onMouseUp:O,onMouseLeave:O,onTouchStart:w,onTouchEnd:O,onTouchCancel:O,onBlur:D,onMouseEnter:R,ref:d,...u,children:e})},$P=({children:e,dictionaryKey:t,keyPath:n})=>{const{focusedContent:r,setFocusedContent:a}=ma(),{postMessage:s,senderId:l}=Mv(),u=S.useCallback(()=>a({dictionaryKey:t,keyPath:n}),[t,n]),d=S.useCallback(()=>s({type:`${xn.INTLAYER_HOVERED_CONTENT_CHANGED}/post`,data:{dictionaryKey:t,keyPath:n},senderId:l}),[t,n]),f=S.useCallback(()=>s({type:`${xn.INTLAYER_HOVERED_CONTENT_CHANGED}/post`,data:null,senderId:l}),[l]),m=S.useMemo(()=>{var p;return((r==null?void 0:r.dictionaryKey)===t&&(((p=r==null?void 0:r.keyPath)==null?void 0:p.length)??0)>0&&Fc((r==null?void 0:r.keyPath)??[],n))??!1},[r,n,t]);return b.jsx(UP,{onPress:u,onHover:d,onUnhover:f,isSelecting:m,children:e})},_f=({children:e,...t})=>{const{enabled:n}=iR(),{disableEditor:r}=zP();return n&&!r?b.jsx($P,{...t,children:e}):e},Vv=({dictionaryKey:e,keyPath:t,children:n})=>{const r=Ns();return r?r.getEditedContentValue(e,t)??n:n},HP=e=>{const t=Vv(e);if(typeof t=="object"){const n=jv(t,e,e.locale);return typeof n!="string"?(console.error(`Incorrect edited content format. Content type: ${typeof n}. Expected string. Value ${JSON.stringify(n)}`),e.children):n}return t},FP=S.createContext({renderMarkdown:e=>e}),GP=()=>S.useContext(FP),KP=({dictionaryKey:e,keyPath:t,children:n,locale:r})=>{const{renderMarkdown:a}=GP(),s=Vv({dictionaryKey:e,keyPath:t,children:n});if(typeof s!="string"){const l=jv(s,{dictionaryKey:e,keyPath:t},r);return typeof l!="string"?(console.error(`Incorrect Markdown content. Edited Markdown content type: ${typeof l}. Expected string. Value ${JSON.stringify(l)}`),a(n)):a(l)}return a(s)},qP=({dictionaryKey:e,keyPath:t,children:n,metadataKeyPath:r})=>{const a=Vv({dictionaryKey:e,keyPath:t,children:n}),s=Z1(a);return Ur(s,r)},uR=e=>{if(typeof e=="string")return e;const n=(s=>{var l;if(s!=null&&s.props&&typeof s.props.children=="object"){const u=[],{children:d}=s.props;return Object.keys(d??{}).forEach(f=>{u.push(uR((d??{})[f]))}),{...s,props:{...s.props,children:u}}}return{...s,props:{...s.props,children:((l=s.props)==null?void 0:l.children)??[]}}})(e),{type:r,props:a}=n;return S.createElement(r??"span",a,...a.children)},ZP={id:"intlayer-node-plugin",canHandle:e=>typeof e=="bigint"||typeof e=="string"||typeof e=="number",transform:(e,{plugins:t,...n})=>bf({...n,value:n.children,children:S.createElement(_f,{...n,key:n.children},b.jsx(HP,{...n,children:n.children}))})},WP={id:"react-node-plugin",canHandle:e=>typeof e=="object"&&typeof e.props<"u"&&typeof e.key<"u",transform:(e,{plugins:t,...n})=>bf({...n,value:"[[react-element]]",children:b.jsx(_f,{...n,children:uR(e)})})},YP={id:"markdown-string-plugin",canHandle:e=>typeof e=="string",transform:(e,t,n)=>{const{plugins:r,...a}=t,s=Z1(e),u=n(s,{plugins:[{id:"markdown-metadata-plugin",canHandle:d=>typeof d=="string"||typeof d=="number"||typeof d=="boolean"||!d,transform:(d,f)=>bf({...f,value:d,children:b.jsx(_f,{...a,children:b.jsx(qP,{...a,metadataKeyPath:f.keyPath,children:e})})})}],dictionaryKey:a.dictionaryKey,keyPath:[]});return bf({...t,value:e,children:b.jsx(_f,{...a,children:b.jsx(KP,{...a,children:e})}),additionalProps:{metadata:u}})}},XP={id:"markdown-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===Z.Markdown,transform:(e,t,n)=>{const r=[...t.keyPath,{type:Z.Markdown}],a=e[Z.Markdown];return n(a,{...t,children:a,keyPath:r,plugins:[YP,...t.plugins??[]]})}},QP=(e,t,n)=>G1(e,t,[ZP,WP,XP]),Ut=(e,t)=>{const{locale:n}=S.useContext(rh);return QP(e,n)},Bv=({onLocaleChange:e}={})=>{const{defaultLocale:t,locales:n}=(Ge==null?void 0:Ge.internationalization)??{},{locale:r,setLocale:a}=S.useContext(rh),{setLocaleCookie:s}=PP();return{locale:r,defaultLocale:t,availableLocales:n,setLocale:u=>{if(!(n!=null&&n.map(String).includes(u))){console.error(`Locale ${u} is not available`);return}a(u),s(u),e==null||e(u)}}};var Hl={},jS;function JP(){if(jS)return Hl;jS=1,Object.defineProperty(Hl,"__esModule",{value:!0}),Hl.parse=l,Hl.serialize=f;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,a=Object.prototype.toString,s=(()=>{const v=function(){};return v.prototype=Object.create(null),v})();function l(v,x){const y=new s,E=v.length;if(E<2)return y;const A=(x==null?void 0:x.decode)||m;let T=0;do{const w=v.indexOf("=",T);if(w===-1)break;const R=v.indexOf(";",T),O=R===-1?E:R;if(w>O){T=v.lastIndexOf(";",w-1)+1;continue}const N=u(v,T,w),I=d(v,w,N),D=v.slice(N,I);if(y[D]===void 0){let j=u(v,w+1,O),P=d(v,O,j);const M=A(v.slice(j,P));y[D]=M}T=O+1}while(T<E);return y}function u(v,x,y){do{const E=v.charCodeAt(x);if(E!==32&&E!==9)return x}while(++x<y);return y}function d(v,x,y){for(;x>y;){const E=v.charCodeAt(--x);if(E!==32&&E!==9)return x+1}return y}function f(v,x,y){const E=(y==null?void 0:y.encode)||encodeURIComponent;if(!e.test(v))throw new TypeError(`argument name is invalid: ${v}`);const A=E(x);if(!t.test(A))throw new TypeError(`argument val is invalid: ${x}`);let T=v+"="+A;if(!y)return T;if(y.maxAge!==void 0){if(!Number.isInteger(y.maxAge))throw new TypeError(`option maxAge is invalid: ${y.maxAge}`);T+="; Max-Age="+y.maxAge}if(y.domain){if(!n.test(y.domain))throw new TypeError(`option domain is invalid: ${y.domain}`);T+="; Domain="+y.domain}if(y.path){if(!r.test(y.path))throw new TypeError(`option path is invalid: ${y.path}`);T+="; Path="+y.path}if(y.expires){if(!p(y.expires)||!Number.isFinite(y.expires.valueOf()))throw new TypeError(`option expires is invalid: ${y.expires}`);T+="; Expires="+y.expires.toUTCString()}if(y.httpOnly&&(T+="; HttpOnly"),y.secure&&(T+="; Secure"),y.partitioned&&(T+="; Partitioned"),y.priority)switch(typeof y.priority=="string"?y.priority.toLowerCase():void 0){case"low":T+="; Priority=Low";break;case"medium":T+="; Priority=Medium";break;case"high":T+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${y.priority}`)}if(y.sameSite)switch(typeof y.sameSite=="string"?y.sameSite.toLowerCase():y.sameSite){case!0:case"strict":T+="; SameSite=Strict";break;case"lax":T+="; SameSite=Lax";break;case"none":T+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${y.sameSite}`)}return T}function m(v){if(v.indexOf("%")===-1)return v;try{return decodeURIComponent(v)}catch{return v}}function p(v){return a.call(v)==="[object Date]"}return Hl}JP();var MS="popstate";function ez(e={}){function t(r,a){let{pathname:s,search:l,hash:u}=r.location;return yy("",{pathname:s,search:l,hash:u},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(r,a){return typeof a=="string"?a:wc(a)}return nz(t,n,null,e)}function xt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Kr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function tz(){return Math.random().toString(36).substring(2,10)}function PS(e,t){return{usr:e.state,key:e.key,idx:t}}function yy(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Os(t):t,state:n,key:t&&t.key||r||tz()}}function wc({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Os(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function nz(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:s=!1}=r,l=a.history,u="POP",d=null,f=m();f==null&&(f=0,l.replaceState({...l.state,idx:f},""));function m(){return(l.state||{idx:null}).idx}function p(){u="POP";let A=m(),T=A==null?null:A-f;f=A,d&&d({action:u,location:E.location,delta:T})}function v(A,T){u="PUSH";let w=yy(E.location,A,T);f=m()+1;let R=PS(w,f),O=E.createHref(w);try{l.pushState(R,"",O)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;a.location.assign(O)}s&&d&&d({action:u,location:E.location,delta:1})}function x(A,T){u="REPLACE";let w=yy(E.location,A,T);f=m();let R=PS(w,f),O=E.createHref(w);l.replaceState(R,"",O),s&&d&&d({action:u,location:E.location,delta:0})}function y(A){return rz(A)}let E={get action(){return u},get location(){return e(a,l)},listen(A){if(d)throw new Error("A history only accepts one active listener");return a.addEventListener(MS,p),d=A,()=>{a.removeEventListener(MS,p),d=null}},createHref(A){return t(a,A)},createURL:y,encodeLocation(A){let T=y(A);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:v,replace:x,go(A){return l.go(A)}};return E}function rz(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),xt(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:wc(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function dR(e,t,n="/"){return iz(e,t,n,!1)}function iz(e,t,n,r){let a=typeof t=="string"?Os(t):t,s=Si(a.pathname||"/",n);if(s==null)return null;let l=fR(e);az(l);let u=null;for(let d=0;u==null&&d<l.length;++d){let f=gz(s);u=mz(l[d],f,r)}return u}function fR(e,t=[],n=[],r=""){let a=(s,l,u)=>{let d={relativePath:u===void 0?s.path||"":u,caseSensitive:s.caseSensitive===!0,childrenIndex:l,route:s};d.relativePath.startsWith("/")&&(xt(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length));let f=xi([r,d.relativePath]),m=n.concat(d);s.children&&s.children.length>0&&(xt(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),fR(s.children,t,m,f)),!(s.path==null&&!s.index)&&t.push({path:f,score:fz(f,s.index),routesMeta:m})};return e.forEach((s,l)=>{var u;if(s.path===""||!((u=s.path)!=null&&u.includes("?")))a(s,l);else for(let d of hR(s.path))a(s,l,d)}),t}function hR(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return a?[s,""]:[s];let l=hR(r.join("/")),u=[];return u.push(...l.map(d=>d===""?s:[s,d].join("/"))),a&&u.push(...l),u.map(d=>e.startsWith("/")&&d===""?"/":d)}function az(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:hz(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var oz=/^:[\w-]+$/,sz=3,lz=2,cz=1,uz=10,dz=-2,zS=e=>e==="*";function fz(e,t){let n=e.split("/"),r=n.length;return n.some(zS)&&(r+=dz),t&&(r+=lz),n.filter(a=>!zS(a)).reduce((a,s)=>a+(oz.test(s)?sz:s===""?cz:uz),r)}function hz(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function mz(e,t,n=!1){let{routesMeta:r}=e,a={},s="/",l=[];for(let u=0;u<r.length;++u){let d=r[u],f=u===r.length-1,m=s==="/"?t:t.slice(s.length)||"/",p=Ef({path:d.relativePath,caseSensitive:d.caseSensitive,end:f},m),v=d.route;if(!p&&f&&n&&!r[r.length-1].route.index&&(p=Ef({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},m)),!p)return null;Object.assign(a,p.params),l.push({params:a,pathname:xi([s,p.pathname]),pathnameBase:_z(xi([s,p.pathnameBase])),route:v}),p.pathnameBase!=="/"&&(s=xi([s,p.pathnameBase]))}return l}function Ef(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=pz(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let s=a[0],l=s.replace(/(.)\/+$/,"$1"),u=a.slice(1);return{params:r.reduce((f,{paramName:m,isOptional:p},v)=>{if(m==="*"){let y=u[v]||"";l=s.slice(0,s.length-y.length).replace(/(.)\/+$/,"$1")}const x=u[v];return p&&!x?f[m]=void 0:f[m]=(x||"").replace(/%2F/g,"/"),f},{}),pathname:s,pathnameBase:l,pattern:e}}function pz(e,t=!1,n=!0){Kr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,u,d)=>(r.push({paramName:u,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function gz(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Kr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Si(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function yz(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Os(e):e;return{pathname:n?n.startsWith("/")?n:vz(n,t):t,search:Ez(r),hash:xz(a)}}function vz(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function rg(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function bz(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function mR(e){let t=bz(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function pR(e,t,n,r=!1){let a;typeof e=="string"?a=Os(e):(a={...e},xt(!a.pathname||!a.pathname.includes("?"),rg("?","pathname","search",a)),xt(!a.pathname||!a.pathname.includes("#"),rg("#","pathname","hash",a)),xt(!a.search||!a.search.includes("#"),rg("#","search","hash",a)));let s=e===""||a.pathname==="",l=s?"/":a.pathname,u;if(l==null)u=n;else{let p=t.length-1;if(!r&&l.startsWith("..")){let v=l.split("/");for(;v[0]==="..";)v.shift(),p-=1;a.pathname=v.join("/")}u=p>=0?t[p]:"/"}let d=yz(a,u),f=l&&l!=="/"&&l.endsWith("/"),m=(s||l===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(f||m)&&(d.pathname+="/"),d}var xi=e=>e.join("/").replace(/\/\/+/g,"/"),_z=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Ez=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,xz=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Sz(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var gR=["POST","PUT","PATCH","DELETE"];new Set(gR);var Az=["GET",...gR];new Set(Az);var ks=S.createContext(null);ks.displayName="DataRouter";var ih=S.createContext(null);ih.displayName="DataRouterState";var yR=S.createContext({isTransitioning:!1});yR.displayName="ViewTransition";var wz=S.createContext(new Map);wz.displayName="Fetchers";var Tz=S.createContext(null);Tz.displayName="Await";var Wr=S.createContext(null);Wr.displayName="Navigation";var Gc=S.createContext(null);Gc.displayName="Location";var Ni=S.createContext({outlet:null,matches:[],isDataRoute:!1});Ni.displayName="Route";var Uv=S.createContext(null);Uv.displayName="RouteError";function Rz(e,{relative:t}={}){xt(Kc(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=S.useContext(Wr),{hash:a,pathname:s,search:l}=qc(e,{relative:t}),u=s;return n!=="/"&&(u=s==="/"?n:xi([n,s])),r.createHref({pathname:u,search:l,hash:a})}function Kc(){return S.useContext(Gc)!=null}function pa(){return xt(Kc(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(Gc).location}var vR="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function bR(e){S.useContext(Wr).static||S.useLayoutEffect(e)}function Cz(){let{isDataRoute:e}=S.useContext(Ni);return e?Uz():Nz()}function Nz(){xt(Kc(),"useNavigate() may be used only in the context of a <Router> component.");let e=S.useContext(ks),{basename:t,navigator:n}=S.useContext(Wr),{matches:r}=S.useContext(Ni),{pathname:a}=pa(),s=JSON.stringify(mR(r)),l=S.useRef(!1);return bR(()=>{l.current=!0}),S.useCallback((d,f={})=>{if(Kr(l.current,vR),!l.current)return;if(typeof d=="number"){n.go(d);return}let m=pR(d,JSON.parse(s),a,f.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:xi([t,m.pathname])),(f.replace?n.replace:n.push)(m,f.state,f)},[t,n,s,a,e])}S.createContext(null);function qc(e,{relative:t}={}){let{matches:n}=S.useContext(Ni),{pathname:r}=pa(),a=JSON.stringify(mR(n));return S.useMemo(()=>pR(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function Oz(e,t){return _R(e,t)}function _R(e,t,n,r){var T;xt(Kc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=S.useContext(Wr),{matches:s}=S.useContext(Ni),l=s[s.length-1],u=l?l.params:{},d=l?l.pathname:"/",f=l?l.pathnameBase:"/",m=l&&l.route;{let w=m&&m.path||"";ER(d,!m||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${w}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
52
52
|
|
|
53
53
|
Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let p=pa(),v;if(t){let w=typeof t=="string"?Os(t):t;xt(f==="/"||((T=w.pathname)==null?void 0:T.startsWith(f)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${f}" but pathname "${w.pathname}" was given in the \`location\` prop.`),v=w}else v=p;let x=v.pathname||"/",y=x;if(f!=="/"){let w=f.replace(/^\//,"").split("/");y="/"+x.replace(/^\//,"").split("/").slice(w.length).join("/")}let E=dR(e,{pathname:y});Kr(m||E!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),Kr(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let A=jz(E&&E.map(w=>Object.assign({},w,{params:Object.assign({},u,w.params),pathname:xi([f,a.encodeLocation?a.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?f:xi([f,a.encodeLocation?a.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),s,n,r);return t&&A?S.createElement(Gc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},A):A}function kz(){let e=Bz(),t=Sz(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:s},"ErrorBoundary")," or"," ",S.createElement("code",{style:s},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},t),n?S.createElement("pre",{style:a},n):null,l)}var Dz=S.createElement(kz,null),Iz=class extends S.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?S.createElement(Ni.Provider,{value:this.props.routeContext},S.createElement(Uv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Lz({routeContext:e,match:t,children:n}){let r=S.useContext(ks);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),S.createElement(Ni.Provider,{value:e},n)}function jz(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=n==null?void 0:n.errors;if(s!=null){let d=a.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);xt(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),a=a.slice(0,Math.min(a.length,d+1))}let l=!1,u=-1;if(n)for(let d=0;d<a.length;d++){let f=a[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(u=d),f.route.id){let{loaderData:m,errors:p}=n,v=f.route.loader&&!m.hasOwnProperty(f.route.id)&&(!p||p[f.route.id]===void 0);if(f.route.lazy||v){l=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((d,f,m)=>{let p,v=!1,x=null,y=null;n&&(p=s&&f.route.id?s[f.route.id]:void 0,x=f.route.errorElement||Dz,l&&(u<0&&m===0?(ER("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,y=null):u===m&&(v=!0,y=f.route.hydrateFallbackElement||null)));let E=t.concat(a.slice(0,m+1)),A=()=>{let T;return p?T=x:v?T=y:f.route.Component?T=S.createElement(f.route.Component,null):f.route.element?T=f.route.element:T=d,S.createElement(Lz,{match:f,routeContext:{outlet:d,matches:E,isDataRoute:n!=null},children:T})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?S.createElement(Iz,{location:n.location,revalidation:n.revalidation,component:x,error:p,children:A(),routeContext:{outlet:null,matches:E,isDataRoute:!0}}):A()},null)}function $v(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Mz(e){let t=S.useContext(ks);return xt(t,$v(e)),t}function Pz(e){let t=S.useContext(ih);return xt(t,$v(e)),t}function zz(e){let t=S.useContext(Ni);return xt(t,$v(e)),t}function Hv(e){let t=zz(e),n=t.matches[t.matches.length-1];return xt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Vz(){return Hv("useRouteId")}function Bz(){var r;let e=S.useContext(Uv),t=Pz("useRouteError"),n=Hv("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function Uz(){let{router:e}=Mz("useNavigate"),t=Hv("useNavigate"),n=S.useRef(!1);return bR(()=>{n.current=!0}),S.useCallback(async(a,s={})=>{Kr(n.current,vR),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...s}))},[e,t])}var VS={};function ER(e,t,n){!t&&!VS[e]&&(VS[e]=!0,Kr(!1,n))}S.memo($z);function $z({routes:e,future:t,state:n}){return _R(e,void 0,n,t)}function xR(e){xt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Hz({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:s=!1}){xt(!Kc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),u=S.useMemo(()=>({basename:l,navigator:a,static:s,future:{}}),[l,a,s]);typeof n=="string"&&(n=Os(n));let{pathname:d="/",search:f="",hash:m="",state:p=null,key:v="default"}=n,x=S.useMemo(()=>{let y=Si(d,l);return y==null?null:{location:{pathname:y,search:f,hash:m,state:p,key:v},navigationType:r}},[l,d,f,m,p,v,r]);return Kr(x!=null,`<Router basename="${l}"> is not able to match the URL "${d}${f}${m}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:S.createElement(Wr.Provider,{value:u},S.createElement(Gc.Provider,{children:t,value:x}))}function Fz({children:e,location:t}){return Oz(vy(e),t)}function vy(e,t=[]){let n=[];return S.Children.forEach(e,(r,a)=>{if(!S.isValidElement(r))return;let s=[...t,a];if(r.type===S.Fragment){n.push.apply(n,vy(r.props.children,s));return}xt(r.type===xR,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),xt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=vy(r.props.children,s)),n.push(l)}),n}var ef="get",tf="application/x-www-form-urlencoded";function ah(e){return e!=null&&typeof e.tagName=="string"}function Gz(e){return ah(e)&&e.tagName.toLowerCase()==="button"}function Kz(e){return ah(e)&&e.tagName.toLowerCase()==="form"}function qz(e){return ah(e)&&e.tagName.toLowerCase()==="input"}function Zz(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Wz(e,t){return e.button===0&&(!t||t==="_self")&&!Zz(e)}var wd=null;function Yz(){if(wd===null)try{new FormData(document.createElement("form"),0),wd=!1}catch{wd=!0}return wd}var Xz=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ig(e){return e!=null&&!Xz.has(e)?(Kr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${tf}"`),null):e}function Qz(e,t){let n,r,a,s,l;if(Kz(e)){let u=e.getAttribute("action");r=u?Si(u,t):null,n=e.getAttribute("method")||ef,a=ig(e.getAttribute("enctype"))||tf,s=new FormData(e)}else if(Gz(e)||qz(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||u.getAttribute("action");if(r=d?Si(d,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||ef,a=ig(e.getAttribute("formenctype"))||ig(u.getAttribute("enctype"))||tf,s=new FormData(u,e),!Yz()){let{name:f,type:m,value:p}=e;if(m==="image"){let v=f?`${f}.`:"";s.append(`${v}x`,"0"),s.append(`${v}y`,"0")}else f&&s.append(f,p)}}else{if(ah(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=ef,r=null,a=tf,l=e}return s&&a==="text/plain"&&(l=s,s=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:s,body:l}}function Fv(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function Jz(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function eV(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function tV(e,t,n){let r=await Promise.all(e.map(async a=>{let s=t.routes[a.route.id];if(s){let l=await Jz(s,n);return l.links?l.links():[]}return[]}));return aV(r.flat(1).filter(eV).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function BS(e,t,n,r,a,s){let l=(d,f)=>n[f]?d.route.id!==n[f].route.id:!0,u=(d,f)=>{var m;return n[f].pathname!==d.pathname||((m=n[f].route.path)==null?void 0:m.endsWith("*"))&&n[f].params["*"]!==d.params["*"]};return s==="assets"?t.filter((d,f)=>l(d,f)||u(d,f)):s==="data"?t.filter((d,f)=>{var p;let m=r.routes[d.route.id];if(!m||!m.hasLoader)return!1;if(l(d,f)||u(d,f))return!0;if(d.route.shouldRevalidate){let v=d.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((p=n[0])==null?void 0:p.params)||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function nV(e,t,{includeHydrateFallback:n}={}){return rV(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let s=[a.module];return a.clientActionModule&&(s=s.concat(a.clientActionModule)),a.clientLoaderModule&&(s=s.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(s=s.concat(a.hydrateFallbackModule)),a.imports&&(s=s.concat(a.imports)),s}).flat(1))}function rV(e){return[...new Set(e)]}function iV(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function aV(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let s=JSON.stringify(iV(a));return n.has(s)||(n.add(s),r.push({key:s,link:a})),r},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var oV=new Set([100,101,204,205]);function sV(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&Si(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function SR(){let e=S.useContext(ks);return Fv(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function lV(){let e=S.useContext(ih);return Fv(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Gv=S.createContext(void 0);Gv.displayName="FrameworkContext";function AR(){let e=S.useContext(Gv);return Fv(e,"You must render this element inside a <HydratedRouter> element"),e}function cV(e,t){let n=S.useContext(Gv),[r,a]=S.useState(!1),[s,l]=S.useState(!1),{onFocus:u,onBlur:d,onMouseEnter:f,onMouseLeave:m,onTouchStart:p}=t,v=S.useRef(null);S.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let E=T=>{T.forEach(w=>{l(w.isIntersecting)})},A=new IntersectionObserver(E,{threshold:.5});return v.current&&A.observe(v.current),()=>{A.disconnect()}}},[e]),S.useEffect(()=>{if(r){let E=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(E)}}},[r]);let x=()=>{a(!0)},y=()=>{a(!1),l(!1)};return n?e!=="intent"?[s,v,{}]:[s,v,{onFocus:Fl(u,x),onBlur:Fl(d,y),onMouseEnter:Fl(f,x),onMouseLeave:Fl(m,y),onTouchStart:Fl(p,x)}]:[!1,v,{}]}function Fl(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function uV({page:e,...t}){let{router:n}=SR(),r=S.useMemo(()=>dR(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?S.createElement(fV,{page:e,matches:r,...t}):null}function dV(e){let{manifest:t,routeModules:n}=AR(),[r,a]=S.useState([]);return S.useEffect(()=>{let s=!1;return tV(e,t,n).then(l=>{s||a(l)}),()=>{s=!0}},[e,t,n]),r}function fV({page:e,matches:t,...n}){let r=pa(),{manifest:a,routeModules:s}=AR(),{basename:l}=SR(),{loaderData:u,matches:d}=lV(),f=S.useMemo(()=>BS(e,t,d,a,r,"data"),[e,t,d,a,r]),m=S.useMemo(()=>BS(e,t,d,a,r,"assets"),[e,t,d,a,r]),p=S.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let y=new Set,E=!1;if(t.forEach(T=>{var R;let w=a.routes[T.route.id];!w||!w.hasLoader||(!f.some(O=>O.route.id===T.route.id)&&T.route.id in u&&((R=s[T.route.id])!=null&&R.shouldRevalidate)||w.hasClientLoader?E=!0:y.add(T.route.id))}),y.size===0)return[];let A=sV(e,l);return E&&y.size>0&&A.searchParams.set("_routes",t.filter(T=>y.has(T.route.id)).map(T=>T.route.id).join(",")),[A.pathname+A.search]},[l,u,r,a,f,t,e,s]),v=S.useMemo(()=>nV(m,a),[m,a]),x=dV(m);return S.createElement(S.Fragment,null,p.map(y=>S.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...n})),v.map(y=>S.createElement("link",{key:y,rel:"modulepreload",href:y,...n})),x.map(({key:y,link:E})=>S.createElement("link",{key:y,...E})))}function hV(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var wR=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{wR&&(window.__reactRouterVersion="7.6.2")}catch{}function mV({basename:e,children:t,window:n}){let r=S.useRef();r.current==null&&(r.current=ez({window:n,v5Compat:!0}));let a=r.current,[s,l]=S.useState({action:a.action,location:a.location}),u=S.useCallback(d=>{S.startTransition(()=>l(d))},[l]);return S.useLayoutEffect(()=>a.listen(u),[a,u]),S.createElement(Hz,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:a})}var TR=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,RR=S.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:s,replace:l,state:u,target:d,to:f,preventScrollReset:m,viewTransition:p,...v},x){let{basename:y}=S.useContext(Wr),E=typeof f=="string"&&TR.test(f),A,T=!1;if(typeof f=="string"&&E&&(A=f,wR))try{let P=new URL(window.location.href),M=f.startsWith("//")?new URL(P.protocol+f):new URL(f),oe=Si(M.pathname,y);M.origin===P.origin&&oe!=null?f=oe+M.search+M.hash:T=!0}catch{Kr(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let w=Rz(f,{relative:a}),[R,O,N]=cV(r,v),I=vV(f,{replace:l,state:u,target:d,preventScrollReset:m,relative:a,viewTransition:p});function D(P){t&&t(P),P.defaultPrevented||I(P)}let j=S.createElement("a",{...v,...N,href:A||w,onClick:T||s?t:D,ref:hV(x,O),target:d,"data-discover":!E&&n==="render"?"true":void 0});return R&&!E?S.createElement(S.Fragment,null,j,S.createElement(uV,{page:w})):j});RR.displayName="Link";var pV=S.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:s,to:l,viewTransition:u,children:d,...f},m){let p=qc(l,{relative:f.relative}),v=pa(),x=S.useContext(ih),{navigator:y,basename:E}=S.useContext(Wr),A=x!=null&&SV(p)&&u===!0,T=y.encodeLocation?y.encodeLocation(p).pathname:p.pathname,w=v.pathname,R=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;n||(w=w.toLowerCase(),R=R?R.toLowerCase():null,T=T.toLowerCase()),R&&E&&(R=Si(R,E)||R);const O=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let N=w===T||!a&&w.startsWith(T)&&w.charAt(O)==="/",I=R!=null&&(R===T||!a&&R.startsWith(T)&&R.charAt(T.length)==="/"),D={isActive:N,isPending:I,isTransitioning:A},j=N?t:void 0,P;typeof r=="function"?P=r(D):P=[r,N?"active":null,I?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let M=typeof s=="function"?s(D):s;return S.createElement(RR,{...f,"aria-current":j,className:P,ref:m,style:M,to:l,viewTransition:u},typeof d=="function"?d(D):d)});pV.displayName="NavLink";var gV=S.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:s,method:l=ef,action:u,onSubmit:d,relative:f,preventScrollReset:m,viewTransition:p,...v},x)=>{let y=EV(),E=xV(u,{relative:f}),A=l.toLowerCase()==="get"?"get":"post",T=typeof u=="string"&&TR.test(u),w=R=>{if(d&&d(R),R.defaultPrevented)return;R.preventDefault();let O=R.nativeEvent.submitter,N=(O==null?void 0:O.getAttribute("formmethod"))||l;y(O||R.currentTarget,{fetcherKey:t,method:N,navigate:n,replace:a,state:s,relative:f,preventScrollReset:m,viewTransition:p})};return S.createElement("form",{ref:x,method:A,action:E,onSubmit:r?d:w,...v,"data-discover":!T&&e==="render"?"true":void 0})});gV.displayName="Form";function yV(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function CR(e){let t=S.useContext(ks);return xt(t,yV(e)),t}function vV(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:s,viewTransition:l}={}){let u=Cz(),d=pa(),f=qc(e,{relative:s});return S.useCallback(m=>{if(Wz(m,t)){m.preventDefault();let p=n!==void 0?n:wc(d)===wc(f);u(e,{replace:p,state:r,preventScrollReset:a,relative:s,viewTransition:l})}},[d,u,f,n,r,t,e,a,s,l])}var bV=0,_V=()=>`__${String(++bV)}__`;function EV(){let{router:e}=CR("useSubmit"),{basename:t}=S.useContext(Wr),n=Vz();return S.useCallback(async(r,a={})=>{let{action:s,method:l,encType:u,formData:d,body:f}=Qz(r,t);if(a.navigate===!1){let m=a.fetcherKey||_V();await e.fetch(m,n,a.action||s,{preventScrollReset:a.preventScrollReset,formData:d,body:f,formMethod:a.method||l,formEncType:a.encType||u,flushSync:a.flushSync})}else await e.navigate(a.action||s,{preventScrollReset:a.preventScrollReset,formData:d,body:f,formMethod:a.method||l,formEncType:a.encType||u,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,n])}function xV(e,{relative:t}={}){let{basename:n}=S.useContext(Wr),r=S.useContext(Ni);xt(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),s={...qc(e||".",{relative:t})},l=pa();if(e==null){s.search=l.search;let u=new URLSearchParams(s.search),d=u.getAll("index");if(d.some(m=>m==="")){u.delete("index"),d.filter(p=>p).forEach(p=>u.append("index",p));let m=u.toString();s.search=m?`?${m}`:""}}return(!e||e===".")&&a.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:xi([n,s.pathname])),wc(s)}function SV(e,t={}){let n=S.useContext(yR);xt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=CR("useViewTransitionState"),a=qc(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=Si(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=Si(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Ef(a.pathname,l)!=null||Ef(a.pathname,s)!=null}[...oV];var mo=$1();const AV=th(mo);/**
|
|
@@ -317,4 +317,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
317
317
|
|
|
318
318
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
319
319
|
`},z1=_ne(Ane)(DI),wne={config:xne},Tne=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return function(a){return n.reduceRight(function(s,l){return l(s)},a)}};function II(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],II(e[n],t[n]))}),L1(L1({},e),t)}var Rne={type:"cancelation",msg:"operation is manually canceled"};function hy(e){var t=!1,n=new Promise(function(r,a){e.then(function(s){return t?a(Rne):r(s)}),e.catch(a)});return n.cancel=function(){return t=!0},n}var Cne=vne.create({config:bne,isInitialized:!1,resolve:null,reject:null,monaco:null}),LI=Jte(Cne,2),uu=LI[0],Uh=LI[1];function Nne(e){var t=wne.config(e),n=t.monaco,r=Qte(t,["monaco"]);Uh(function(a){return{config:II(a.config,r),monaco:n}})}function One(){var e=uu(function(t){var n=t.monaco,r=t.isInitialized,a=t.resolve;return{monaco:n,isInitialized:r,resolve:a}});if(!e.isInitialized){if(Uh({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),hy(my);if(window.monaco&&window.monaco.editor)return jI(window.monaco),e.resolve(window.monaco),hy(my);Tne(kne,Ine)(Lne)}return hy(my)}function kne(e){return document.body.appendChild(e)}function Dne(e){var t=document.createElement("script");return e&&(t.src=e),t}function Ine(e){var t=uu(function(r){var a=r.config,s=r.reject;return{config:a,reject:s}}),n=Dne("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function Lne(){var e=uu(function(n){var r=n.config,a=n.resolve,s=n.reject;return{config:r,resolve:a,reject:s}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){jI(n),e.resolve(n)},function(n){e.reject(n)})}function jI(e){uu().monaco||Uh({monaco:e})}function jne(){return uu(function(e){var t=e.monaco;return t})}var my=new Promise(function(e,t){return Uh({resolve:e,reject:t})}),MI={config:Nne,init:One,__getMonacoInstance:jne},Mne={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},py=Mne,Pne={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},zne=Pne;function Vne({children:e}){return Be.createElement("div",{style:zne.container},e)}var Bne=Vne,Une=Bne;function $ne({width:e,height:t,isEditorReady:n,loading:r,_ref:a,className:s,wrapperProps:l}){return Be.createElement("section",{style:{...py.wrapper,width:e,height:t},...l},!n&&Be.createElement(Une,null,r),Be.createElement("div",{ref:a,style:{...py.fullWidth,...!n&&py.hide},className:s}))}var Hne=$ne,PI=S.memo(Hne);function Fne(e){S.useEffect(e,[])}var zI=Fne;function Gne(e,t,n=!0){let r=S.useRef(!0);S.useEffect(r.current||!n?()=>{r.current=!1}:e,t)}var Bn=Gne;function Ac(){}function ps(e,t,n,r){return Kne(e,r)||qne(e,t,n,r)}function Kne(e,t){return e.editor.getModel(VI(e,t))}function qne(e,t,n,r){return e.editor.createModel(t,n,r?VI(e,r):void 0)}function VI(e,t){return e.Uri.parse(t)}function Zne({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:a,originalModelPath:s,modifiedModelPath:l,keepCurrentOriginalModel:u=!1,keepCurrentModifiedModel:d=!1,theme:f="light",loading:m="Loading...",options:p={},height:v="100%",width:x="100%",className:y,wrapperProps:E={},beforeMount:A=Ac,onMount:T=Ac}){let[w,R]=S.useState(!1),[O,N]=S.useState(!0),I=S.useRef(null),D=S.useRef(null),j=S.useRef(null),P=S.useRef(T),M=S.useRef(A),oe=S.useRef(!1);zI(()=>{let X=MI.init();return X.then(H=>(D.current=H)&&N(!1)).catch(H=>(H==null?void 0:H.type)!=="cancelation"&&console.error("Monaco initialization: error:",H)),()=>I.current?$():X.cancel()}),Bn(()=>{if(I.current&&D.current){let X=I.current.getOriginalEditor(),H=ps(D.current,e||"",r||n||"text",s||"");H!==X.getModel()&&X.setModel(H)}},[s],w),Bn(()=>{if(I.current&&D.current){let X=I.current.getModifiedEditor(),H=ps(D.current,t||"",a||n||"text",l||"");H!==X.getModel()&&X.setModel(H)}},[l],w),Bn(()=>{let X=I.current.getModifiedEditor();X.getOption(D.current.editor.EditorOption.readOnly)?X.setValue(t||""):t!==X.getValue()&&(X.executeEdits("",[{range:X.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),X.pushUndoStop())},[t],w),Bn(()=>{var X,H;(H=(X=I.current)==null?void 0:X.getModel())==null||H.original.setValue(e||"")},[e],w),Bn(()=>{let{original:X,modified:H}=I.current.getModel();D.current.editor.setModelLanguage(X,r||n||"text"),D.current.editor.setModelLanguage(H,a||n||"text")},[n,r,a],w),Bn(()=>{var X;(X=D.current)==null||X.editor.setTheme(f)},[f],w),Bn(()=>{var X;(X=I.current)==null||X.updateOptions(p)},[p],w);let ae=S.useCallback(()=>{var re;if(!D.current)return;M.current(D.current);let X=ps(D.current,e||"",r||n||"text",s||""),H=ps(D.current,t||"",a||n||"text",l||"");(re=I.current)==null||re.setModel({original:X,modified:H})},[n,t,a,e,r,s,l]),W=S.useCallback(()=>{var X;!oe.current&&j.current&&(I.current=D.current.editor.createDiffEditor(j.current,{automaticLayout:!0,...p}),ae(),(X=D.current)==null||X.editor.setTheme(f),R(!0),oe.current=!0)},[p,f,ae]);S.useEffect(()=>{w&&P.current(I.current,D.current)},[w]),S.useEffect(()=>{!O&&!w&&W()},[O,w,W]);function $(){var H,re,q,ye;let X=(H=I.current)==null?void 0:H.getModel();u||((re=X==null?void 0:X.original)==null||re.dispose()),d||((q=X==null?void 0:X.modified)==null||q.dispose()),(ye=I.current)==null||ye.dispose()}return Be.createElement(PI,{width:x,height:v,isEditorReady:w,loading:m,_ref:j,className:y,wrapperProps:E})}var Wne=Zne;S.memo(Wne);function Yne(e){let t=S.useRef();return S.useEffect(()=>{t.current=e},[e]),t.current}var Xne=Yne,Yd=new Map;function Qne({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:a,path:s,theme:l="light",line:u,loading:d="Loading...",options:f={},overrideServices:m={},saveViewState:p=!0,keepCurrentModel:v=!1,width:x="100%",height:y="100%",className:E,wrapperProps:A={},beforeMount:T=Ac,onMount:w=Ac,onChange:R,onValidate:O=Ac}){let[N,I]=S.useState(!1),[D,j]=S.useState(!0),P=S.useRef(null),M=S.useRef(null),oe=S.useRef(null),ae=S.useRef(w),W=S.useRef(T),$=S.useRef(),X=S.useRef(r),H=Xne(s),re=S.useRef(!1),q=S.useRef(!1);zI(()=>{let J=MI.init();return J.then(F=>(P.current=F)&&j(!1)).catch(F=>(F==null?void 0:F.type)!=="cancelation"&&console.error("Monaco initialization: error:",F)),()=>M.current?V():J.cancel()}),Bn(()=>{var F,ee,ie,he;let J=ps(P.current,e||r||"",t||a||"",s||n||"");J!==((F=M.current)==null?void 0:F.getModel())&&(p&&Yd.set(H,(ee=M.current)==null?void 0:ee.saveViewState()),(ie=M.current)==null||ie.setModel(J),p&&((he=M.current)==null||he.restoreViewState(Yd.get(s))))},[s],N),Bn(()=>{var J;(J=M.current)==null||J.updateOptions(f)},[f],N),Bn(()=>{!M.current||r===void 0||(M.current.getOption(P.current.editor.EditorOption.readOnly)?M.current.setValue(r):r!==M.current.getValue()&&(q.current=!0,M.current.executeEdits("",[{range:M.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),M.current.pushUndoStop(),q.current=!1))},[r],N),Bn(()=>{var F,ee;let J=(F=M.current)==null?void 0:F.getModel();J&&a&&((ee=P.current)==null||ee.editor.setModelLanguage(J,a))},[a],N),Bn(()=>{var J;u!==void 0&&((J=M.current)==null||J.revealLine(u))},[u],N),Bn(()=>{var J;(J=P.current)==null||J.editor.setTheme(l)},[l],N);let ye=S.useCallback(()=>{var J;if(!(!oe.current||!P.current)&&!re.current){W.current(P.current);let F=s||n,ee=ps(P.current,r||e||"",t||a||"",F||"");M.current=(J=P.current)==null?void 0:J.editor.create(oe.current,{model:ee,automaticLayout:!0,...f},m),p&&M.current.restoreViewState(Yd.get(F)),P.current.editor.setTheme(l),u!==void 0&&M.current.revealLine(u),I(!0),re.current=!0}},[e,t,n,r,a,s,f,m,p,l,u]);S.useEffect(()=>{N&&ae.current(M.current,P.current)},[N]),S.useEffect(()=>{!D&&!N&&ye()},[D,N,ye]),X.current=r,S.useEffect(()=>{var J,F;N&&R&&((J=$.current)==null||J.dispose(),$.current=(F=M.current)==null?void 0:F.onDidChangeModelContent(ee=>{q.current||R(M.current.getValue(),ee)}))},[N,R]),S.useEffect(()=>{if(N){let J=P.current.editor.onDidChangeMarkers(F=>{var ie;let ee=(ie=M.current.getModel())==null?void 0:ie.uri;if(ee&&F.find(he=>he.path===ee.path)){let he=P.current.editor.getModelMarkers({resource:ee});O==null||O(he)}});return()=>{J==null||J.dispose()}}return()=>{}},[N,O]);function V(){var J,F;(J=$.current)==null||J.dispose(),v?p&&Yd.set(s,M.current.saveViewState()):(F=M.current.getModel())==null||F.dispose(),M.current.dispose()}return Be.createElement(PI,{width:x,height:y,isEditorReady:N,loading:d,_ref:oe,className:E,wrapperProps:A})}var Jne=Qne,ere=S.memo(Jne);const tre=({children:e,language:t,isDarkMode:n,showLineNumbers:r,showCopyButton:a=!0,isReadOnly:s=!1,onChange:l})=>{const u=S.useRef(null),d=S.useRef(null),[f,m]=S.useState({height:0,width:0}),p=S.useMemo(()=>n?"vs-dark-transparent":"hc-light-theme",[n]),v=(y,E)=>{var T;d.current=y;const A=(y.getContentHeight()??0)+25;E.editor.defineTheme("vs-dark-transparent",{base:"vs-dark",inherit:!0,rules:[],colors:{"editor.background":"#00000000"}}),E.editor.defineTheme("hc-light-theme",{base:"vs",inherit:!0,rules:[],colors:{"editor.background":"#00000000"}}),E.editor.setTheme(p),E.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0}),E.languages.typescript.javascriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0}),E.languages.typescript.typescriptDefaults.setCompilerOptions({noLib:!0,allowNonTsExtensions:!0}),E.languages.typescript.javascriptDefaults.setCompilerOptions({noLib:!0,allowNonTsExtensions:!0}),m({height:A,width:((T=u.current)==null?void 0:T.clientWidth)??0})},x=r??e.split(`
|
|
320
|
-
`).length>1;return b.jsxs("div",{className:Ae("relative h-full w-full text-sm",r&&"ml-0"),children:[a&&b.jsx("div",{className:"sticky top-5 z-10",children:b.jsx("div",{className:Ae("absolute bottom-0 right-2 flex h-7 items-center"),children:b.jsx(OC,{content:e})})}),b.jsx("div",{className:"z-0 grid size-full grid-cols-[0px] overflow-auto",ref:u,children:b.jsx(ere,{...f,defaultLanguage:"typescript",language:t,loading:b.jsx(Es,{}),defaultValue:String(e).replace(/\n$/,""),onMount:v,onChange:l,options:{readOnly:s,cursorStyle:"line",minimap:{enabled:!1},scrollbar:{vertical:"hidden",verticalScrollbarSize:0,alwaysConsumeMouseWheel:!1},folding:!1,renderValidationDecorations:"off",quickSuggestions:!1,parameterHints:{enabled:!1},suggestOnTriggerCharacters:!1,mouseWheelScrollSensitivity:0,fastScrollSensitivity:0,scrollBeyondLastLine:!1,lineNumbers:x?"on":"off"},theme:p,className:"my-2 rounded-md"})})]})},nre=({dictionary:e,isDarkMode:t})=>{const{setEditedContent:n,editedContent:r}=Sn(),a=l=>{try{return JSON.parse(l),!0}catch{return!1}},s=S.useMemo(()=>{var l;return((l=r==null?void 0:r[e.key])==null?void 0:l.content)??(e==null?void 0:e.content)??{}},[e]);return b.jsx(Rr,{background:"none",border:!0,roundedSize:"xl",className:"w-full overflow-hidden p-3",children:b.jsx(tre,{language:"json",onChange:l=>{a(l??"{}")&&n(e.key,JSON.parse(l??"{}"))},isDarkMode:t,children:JSON.stringify(s,null,2)})})},rre={key:"node-type-selector",content:{triggerPlaceHolder:ge({en:"Node type","en-GB":"Node type",fr:"Type du Nœud",es:"Tipo del nodo",de:"Knotentyp",ja:"ノードタイプ",ko:"노드 유형",zh:"节点类型",it:"Tipo di nodo",pt:"Tipo de nó",hi:"नोड प्रकार",ar:"نوع العقدة",ru:"Тип узла"}),multilingual:ge({en:"Multilingual content","en-GB":"Multilingual content",fr:"Contenu Multilingue",es:"Contenido multilingüe",de:"Mehrsprachiger Inhalt",ja:"複数言語コンテンツ",ko:"다중 언어 콘텐츠",zh:"多语言内容",it:"Contenuto multilingue",pt:"Conteúdo multilíngue",hi:"बहुभाषी सामग्री",ar:"محتوى متعدد اللغات",ru:"Многоязычный контент"}),text:ge({en:"Text","en-GB":"Text",fr:"Texte",es:"Texto",de:"Text",ja:"テキスト",ko:"텍스트",zh:"文本",it:"Testo",pt:"Texto",hi:"पाठ",ar:"نص",ru:"Текст"}),number:ge({en:"Number","en-GB":"Number",fr:"Nombre",es:"Número",de:"Zahl",ja:"数字",ko:"숫자",zh:"数字",it:"Numero",pt:"Número",hi:"संख्या",ar:"رقم",ru:"Число"}),boolean:ge({en:"Boolean","en-GB":"Boolean",fr:"Booléen",es:"Booleano",de:"Bool",ja:"ブール",ko:"불리언",zh:"布尔",it:"Booleano",pt:"Booleano",hi:"बूलियन",ar:"منطقي",ru:"Булево"}),node:ge({en:"Object","en-GB":"Object",fr:"Objet",es:"Objeto",de:"Objekt",ja:"オブジェクト",ko:"객체",zh:"对象",it:"Oggetto",pt:"Objeto",hi:"ऑब्जेक्ट",ar:"كائن",ru:"Объект"}),array:ge({en:"Array","en-GB":"Array",fr:"Tableau",es:"Arreglo",de:"Array",ja:"配列",ko:"배열",zh:"数组",it:"Array",pt:"Array",hi:"ऐरे",ar:"مصفوفة",ru:"Массив"}),enumeration:ge({en:"Enumeration","en-GB":"Enumeration",fr:"Énumération",es:"Enumeración",de:"Enumeration",ja:"列挙",ko:"열거",zh:"枚举",it:"Enumerazione",pt:"Enumeração",hi:"गणना",ar:"تعداد",ru:"Перечисление"}),nest:ge({en:"Nesting","en-GB":"Nesting",fr:"Imbriquation",es:"Anidación",de:"Vererbung",ja:"ネスト",ko:"중첩",zh:"嵌套",it:"Nidificazione",pt:"Nido",hi:"नेस्टेंस",ar:"مستوى",ru:"Вложенность",nl:"Nest"}),insertion:ge({en:"Insertion","en-GB":"Insertion",fr:"Insertion",es:"Inserción",de:"Einfügung",ja:"挿入",ko:"삽입",zh:"插入",it:"Inserimento",pt:"Inserção",hi:"सम्मिलन",ar:"إدراج",ru:"Вставка"}),condition:ge({en:"Condition","en-GB":"Condition",fr:"Condition",es:"Condición",de:"Bedingung",ja:"条件",ko:"조건",zh:"条件",it:"Condizione",pt:"Condição",hi:"शर्त्ता",ar:"شرط",ru:"Условие"}),file:ge({en:"File","en-GB":"File",fr:"Fichier",es:"Archivo",de:"Datei",ja:"ファイル",ko:"파일",zh:"文件",it:"File",pt:"Arquivo",hi:"फ़ाइल",ar:"ملف",ru:"Файл"}),markdown:ge({en:"Markdown","en-GB":"Markdown",fr:"Markdown",es:"Markdown",de:"Markdown",ja:"マークダウン",ko:"마크다운",zh:"Markdown",it:"Markdown",pt:"Markdown",hi:"मार्कडाउन",ar:"مارك داون",ru:"Markdown"}),reactNode:ge({en:"React Node","en-GB":"React Node",fr:"Node React",es:"Nodo React",de:"React-Knoten",ja:"リアル・ノード",ko:"리액 노드",zh:"React 节点",it:"Nodo React",pt:"Nó React",hi:"रेड नोड",ar:"عقدة رياكت",ru:"Реакт узел"})}},Xd=({section:e,onValueChange:t})=>{const{multilingual:n,text:r,number:a,boolean:s,node:l,array:u,enumeration:d,triggerPlaceHolder:f,nest:m,condition:p,markdown:v,insertion:x,reactNode:y,file:E}=Ut(rre),A=Cs(e),[T,w]=S.useState(A),R=O=>{w(O),t(O)};return b.jsxs(De,{value:T,onValueChange:R,children:[b.jsx(De.Trigger,{children:b.jsx(De.Value,{placeholder:f})}),b.jsxs(De.Content,{children:[b.jsx(De.Item,{value:Z.Translation,children:n}),b.jsx(De.Item,{value:Z.Text,children:r}),b.jsx(De.Item,{value:Z.Number,children:a}),b.jsx(De.Item,{value:Z.Boolean,children:s}),b.jsx(De.Item,{value:Z.Object,children:l}),b.jsx(De.Item,{value:Z.Array,children:u}),b.jsx(De.Item,{value:Z.Enumeration,children:d}),b.jsx(De.Item,{value:Z.Insertion,children:x}),b.jsx(De.Item,{value:Z.Markdown,children:v}),b.jsx(De.Item,{value:Z.Nested,children:m}),b.jsx(De.Item,{value:Z.Condition,children:p}),b.jsx(De.Item,{value:Z.ReactNode,disabled:!0,children:y}),b.jsx(De.Item,{value:Z.File,children:E})]})]})},BI={key:"editor-view",content:{titleInput:{placeholder:ge({en:"Enter the key of your node","en-GB":"Enter the key of your node",fr:"Entrez la clé de votre nœud",es:"Ingrese la clave de su nodo",de:"Geben Sie den Schlüssel Ihres Knotens ein",ja:"ノードのキーを入力してください",ko:"노드의 키를 입력하세요",zh:"输入您节点的键",it:"Inserisci la chiave del tuo nodo",pt:"Insira a chave do seu nó",hi:"अपनी नोड की कुंजी दर्ज करें",ar:"أدخل مفتاح العقدة الخاص بك",ru:"Введите ключ вашего узла"})},deleteButton:{label:ge({en:"Remove node from section","en-GB":"Remove node from section",fr:"Supprimer le nœud de la section",es:"Eliminar el nodo de la sección",de:"Knoten aus dem Abschnitt entfernen",ja:"セクションからノードを削除",ko:"섹션에서 노드를 제거",zh:"从部分中移除节点",it:"Rimuovi nodo dalla sezione",pt:"Remover nó da seção",hi:"सेक्शन से नोड हटाएं",ar:"إزالة العقدة من القسم",ru:"Удалить узел из секции"})},addNodeButton:{label:ge({en:"Click to add a new node","en-GB":"Click to add a new node",fr:"Cliquez pour ajouter un nouveau nœud",es:"Haga clic para agregar un nuevo nodo",de:"Klicken, um einen neuen Knoten hinzuzufügen",ja:"新しいノードを追加するにはクリックしてください",ko:"새 노드를 추가하려면 클릭하세요",zh:"点击添加新节点",it:"Fai clic per aggiungere un nuovo nodo",pt:"Clique para adicionar um novo nó",hi:"नया नोड जोड़ने के लिए क्लिक करें",ar:"انقر لإضافة عقدة جديدة",ru:"Нажмите, чтобы добавить новый узел"}),text:ge({en:"Add a new node","en-GB":"Add a new node",fr:"Ajouter un nouveau nœud",es:"Agregar un nuevo nodo",de:"Neuen Knoten hinzufügen",ja:"新しいノードを追加",ko:"새 노드 추가",zh:"添加新节点",it:"Aggiungi un nuovo nodo",pt:"Adicionar um novo nó",hi:"नया नोड जोड़ें",ar:"إضافة عقدة جديدة",ru:"Добавить новый узел"})}}},Iv=({section:e,dictionaryKey:t,keyPath:n,onNodeTypeChange:r})=>{var d;const a=((d=Zr())==null?void 0:d.internationalization.locales)??[],s=Cs(e),l=F1(e),u=f=>{const m=$l(s,a,f);r(m)};if(s===Z.Translation||s===Z.Condition||s===Z.Enumeration){const f=Object.keys(e[s])[0],m=[...n,{type:s,key:f}];return b.jsxs("div",{className:"flex w-full flex-col gap-1",children:[b.jsx(Xd,{section:e,onValueChange:p=>r($l(p,a))}),b.jsx(Iv,{section:l,keyPath:m,dictionaryKey:t,onNodeTypeChange:u})]})}if(s===Z.Array){const f=[...n,{type:s,key:0}];return b.jsxs("div",{className:"flex w-full flex-col gap-1",children:[b.jsx(Xd,{section:e,onValueChange:m=>r($l(m,a))}),b.jsx(Iv,{section:l,keyPath:f,dictionaryKey:t,onNodeTypeChange:u})]})}return s===Z.Object?b.jsxs(b.Fragment,{children:[b.jsx(Xd,{section:e,onValueChange:f=>r($l(f,a))}),b.jsx("div",{className:"ml-10 mt-6",children:b.jsx(are,{keyPath:n,section:e,dictionaryKey:t})})]}):b.jsx(Xd,{section:e,onValueChange:f=>r($l(f,a))})},M0=({sectionKey:e,section:t,keyPath:n,dictionaryKey:r})=>{const{focusedContent:a,setFocusedContentKeyPath:s}=ma(),{renameEditedContent:l,addEditedContent:u}=Ns(),{titleInput:d,deleteButton:f}=Ut(BI),m=p=>{l(r,p,n);const v=n.slice(0,-1),x=n[n.length-1],y=[...v,{...x,key:p}];s(y)};return b.jsx(Rr,{transparency:"xl",roundedSize:"xl",className:"w-full min-w-80 gap-2 overflow-auto px-5 py-2",border:!0,borderColor:"text",background:"none","aria-selected":Fc(n,(a==null?void 0:a.keyPath)??[]),onClick:()=>s(n),children:b.jsxs("div",{className:"flex w-full flex-col items-start justify-between gap-3",children:[typeof e=="string"&&b.jsxs("div",{className:"w-full",children:[b.jsxs("div",{className:"flex w-full items-center justify-between gap-10",children:[b.jsx(nk,{name:"key","aria-label":"Key",placeholder:d.placeholder.value,defaultValue:e,onSave:p=>m(p),variant:"invisible"}),b.jsx(ut,{label:f.label.value,variant:"hoverable",size:"icon-sm",color:"text",className:"translate-x-2",Icon:sh,onClick:()=>{u(r,void 0,n);const p=n.slice(0,-1);s(p)}})]}),b.jsxs("span",{className:"text-neutral ml-3 text-sm",children:["( ",vf(e)," )"]})]}),b.jsx(Iv,{keyPath:n,dictionaryKey:r,section:t,onNodeTypeChange:p=>{u(r,p,n)}})]})})},ire=({section:e,keyPath:t,dictionaryKey:n})=>{const{addNodeButton:r}=Ut(BI),{setFocusedContentKeyPath:a}=Pv(),{addEditedContent:s}=Ns();return!e||typeof e!="object"?b.jsx("div",{children:"Not an object"}):b.jsxs("div",{className:"flex flex-col gap-2 overflow-y-auto",children:[b.jsx("ul",{className:"mr-auto flex flex-col gap-4",children:Object.keys(e).map(l=>b.jsx("li",{className:"flex w-full",children:b.jsx(M0,{sectionKey:l,section:e==null?void 0:e[l],keyPath:[...t,{type:Z.Object,key:l}],dictionaryKey:n})},l))}),b.jsx(ut,{label:r.label.value,variant:"hoverable",size:"md",color:"text",Icon:oh,className:"flex-1",onClick:()=>{const u=[...t,{type:Z.Object,key:"newKey"}];s(n,"",u),a(u)},children:r.text})]})},are=({section:e,keyPath:t,dictionaryKey:n})=>!e||typeof e!="object"||typeof e.nodeType=="string"?b.jsx(M0,{sectionKey:"content",section:e,keyPath:t,dictionaryKey:n}):b.jsx(ire,{section:e,keyPath:t,dictionaryKey:n}),ore=({dictionary:e})=>{var s,l;const{content:t,key:n}=e,{editedContent:r}=Sn(),a=typeof((s=r==null?void 0:r[n])==null?void 0:s.content)>"u"?t:(l=r==null?void 0:r[n])==null?void 0:l.content;return b.jsx(M0,{section:a,keyPath:[],dictionaryKey:e.key})},sre=({dictionary:e,onClickDictionaryList:t,isDarkMode:n,mode:r,onDelete:a})=>{const s=Zr(),[l,u]=S.useState(1),{returnToDictionaryList:d}=Ut(Wte),{setFocusedContent:f}=Pv(),{setLocaleDictionaries:m}=nh();return S.useEffect(()=>{f(p=>({...p??{},dictionaryKey:e.key})),m(p=>({...p,[e.key]:e}))},[]),b.jsx(_Y,{availableLocales:(s==null?void 0:s.internationalization.locales)??[],children:b.jsxs("div",{className:"flex size-full flex-col gap-6 px-2",children:[b.jsx(ut,{onClick:t,variant:"hoverable",className:"z-10 ml-5 mr-auto",color:"text",Icon:kV,label:d.label.value,children:d.text}),b.jsx(ou,{defaultValue:l,onChange:p=>u(p),color:"text",size:"sm",className:"m-auto w-full max-w-xl",choices:[{content:"Details",value:0},{content:"Structure",value:2},{content:"Content",value:1},{content:"JSON",value:3}].filter(({value:p})=>!(!r.includes("remote")&&p===0))}),l===0&&b.jsx(Zte,{dictionary:e}),l===2&&b.jsx(ore,{dictionary:e}),l===1&&b.jsx(Fte,{dictionary:e,isDarkMode:n}),l===3&&b.jsx(nre,{dictionary:e,isDarkMode:n}),b.jsx(hD,{dictionary:e,mode:r,onDelete:()=>{f(null),a==null||a()}})]})})},lre=({children:e,isHidden:t,minWidth:n=0,align:r="left",className:a,...s})=>b.jsx("div",{className:Ae("relative grid h-full grid-cols-[0fr] overflow-x-hidden overflow-y-hidden transition-all duration-500 ease-in-out",t?"":"grid-cols-[1fr]",a),"aria-hidden":t,...s,children:b.jsx("div",{style:{minWidth:`${n}px`},tabIndex:t!==!1?void 0:-1,className:Ae(r==="right"&&"ml-auto"),children:e})}),cre=e=>{switch(e){case"sm":return 640;case"md":return 768;case"lg":return 1024;case"xl":return 1280;case"2xl":return 1536;default:return e}},ure=()=>{var t;if(typeof window>"u")return;const e=(t=window.navigator)==null?void 0:t.userAgent;if(!(typeof e>"u"))return/android|bb\d+|meego|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(?:hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(?:ob|in)i|palm(?: os)?|phone|p(?:ixi|re)\/|plucker|pocket|psp|series(?:4|6)0|symbian|treo|up\.(?:browser|link)|vodafone|wap|windows ce|windows phone|xda|xiino|zte-/i.test(e)},dre=e=>{if(!(typeof window>"u"))return((window==null?void 0:window.innerWidth)??0)<=e},V1=(e="md")=>{const t=cre(e),n=ure(),r=dre(t);return{isMobileScreen:r,isMobileUserAgent:n,isMobile:r??n}},fre=(e="md")=>{const[t,n]=S.useState(V1(e));return S.useEffect(()=>{const r=()=>{n(V1(e))};return window.addEventListener("resize",r,{passive:!0}),()=>window.removeEventListener("resize",r)},[e]),t},hre=e=>{const t=e.getBoundingClientRect(),n=t.top,r=t.bottom-1;if(n>=0&&r<=window.innerHeight){const s=t.left+t.width/2,l=t.top+10,u=document.elementFromPoint(s,l);return e===u||e.contains(u)}return!1},$h=CO((e,t)=>({drawers:{},open:n=>e(r=>({drawers:{...r.drawers,[n]:!0}})),close:n=>e(r=>({drawers:{...r.drawers,[n]:!1}})),isOpen:n=>t().drawers[n]??!1})),UI=({title:e,identifier:t,children:n,header:r,closeOnOutsideClick:a=!0,backButton:s,isOpen:l,onClose:u})=>{const{isMobile:d}=fre("md"),f=S.useRef(null),m=S.useRef(null),{close:p,open:v,isOpen:x}=$h(NO(E=>({close:()=>E.close(t),open:()=>E.open(t),isOpen:E.isOpen(t)})));OO({disableScroll:x,key:t?`right_drawer_${t}`:"right_drawer"}),S.useEffect(()=>{const E=A=>{try{if(!f.current)return;const T=x&&a,w=A.target&&!f.current.contains(A.target),R=hre(f.current);(T&&w&&R||!A.target)&&(p(),u==null||u())}catch{p(),u==null||u()}};return window.addEventListener("mousedown",E),()=>window.removeEventListener("mousedown",E)},[x,p,u,a,t]),S.useEffect(()=>{l!==void 0&&(l?v():(p(),u==null||u()))},[p,v,u,l,t]);const y=E=>{E.target===E.currentTarget&&d&&(p(),u==null||u())};return b.jsx("div",{className:"fixed right-0 top-0 z-50 flex h-full justify-end",children:b.jsx(lre,{isHidden:!x,align:"right",children:b.jsxs(Rr,{className:"text-text relative flex h-screen w-screen flex-col md:w-[400px]",ref:f,roundedSize:"none",children:[b.jsxs("div",{className:"flex flex-col gap-3 p-6",children:[b.jsxs("div",{className:"flex justify-between gap-3",children:[b.jsx("div",{children:s&&b.jsx(ut,{variant:"hoverable",color:"text",label:s.text??"Go back",onClick:s.onBack,Icon:PV,children:s==null?void 0:s.text})}),b.jsx("div",{children:b.jsx(ut,{variant:"hoverable",color:"text",label:"Close",className:"ml-auto",onClick:p,Icon:po,size:"icon-md"})})]}),e&&b.jsx("h2",{className:"flex items-center justify-center text-lg font-bold",children:e}),r]}),b.jsx("div",{className:"flex h-full flex-col overflow-y-auto p-2",children:b.jsx("div",{className:"flex flex-1 flex-col",onClick:y,ref:m,children:n})})]})})})},mre=()=>{const{toasts:e}=DO();return b.jsxs(_G.Provider,{children:[e.map(({id:t,title:n,description:r,action:a,...s})=>b.jsxs(SG,{...s,children:[b.jsxs("div",{className:"grid gap-1",children:[n&&b.jsx(wG,{children:n}),r&&b.jsx(TG,{children:r})]}),a,b.jsx(AG,{})]},t)),b.jsx(EG,{})]})},$I=(...e)=>{const{localeDictionaries:t}=J1(),{data:n,isWaitingData:r}=E6(...e),a=S.useMemo(()=>((n==null?void 0:n.data)??[]).reduce((l,u)=>(l[u.key]=u,l),{}),[n]),s=S.useMemo(()=>DG(a??{},t),[a,t]);return{online:a,locale:t,all:s,isLoading:r}},pre=({children:e})=>b.jsx(pF,{features:W4,children:e}),gre=({children:e})=>b.jsx(pre,{children:b.jsxs(CG,{children:[b.jsx(mre,{}),e]})}),yre=({children:e})=>b.jsx(mV,{children:b.jsx(Fz,{children:b.jsx(xR,{path:"*",element:e})})}),Lv="dictionaryList",HI={key:"dictionary-edition-drawer",content:{openDictionaryEditor:{label:ge({en:"Click to open the dictionary in the editor",fr:"Cliquez pour ouvrir le dictionnaire dans l’éditeur",es:"Haga clic para abrir el diccionario en el editor",de:"Klicken Sie hier, um das Wörterbuch im Editor zu öffnen",ja:"エディターで辞書を開く",ko:"편집기에서 사전 열기",zh:"点击打开词典到编辑器",it:"Fai clic per aprire il dizionario nell’editor",pt:"Clique para abrir o dicionário no editor",hi:"एडिटर में शब्दकोश खोलने के लिए क्लिक करें",ar:"انقر لفتح قاموس في المحرر",ru:"Нажмите, чтобы открыть словарь в редакторе","en-GB":"Click to open the dictionary in the editor"})},backButtonText:ge({en:"Dictionary list",fr:"Liste des dictionnaires",es:"Lista de diccionarios",de:"Wörterbuchliste",ja:"辞書リスト",ko:"사전 목록",zh:"词典列表",it:"Elenco di dizionari",pt:"Lista de dicionários",hi:"शब्दकोश सूची",ar:"قائمة القوامل",ru:"Список словарей","en-GB":"Dictionary list"}),modalTitle:ge({en:"Edit dictionary",fr:"Modifier le dictionnaire",es:"Editar el diccionario",de:"Wörterbuch bearbeiten",ja:"辞書を編集",ko:"사전 편집",zh:"编辑词典",it:"Modifica dizionario",pt:"Editar dicionário",hi:"शब्दकोश संपादित करें",ar:"تحرير قاموس",ru:"Редактировать словарь","en-GB":"Edit dictionary"}),noDictionaryFocused:ge({en:"No dictionary focused",fr:"Aucun dictionnaire sélectionné",es:"No hay diccionario enfocado",de:"Kein Wörterbuch ausgewählt",ja:"フォーカスされた辞書がありません",ko:"포커스가 있는 사전이 없습니다",zh:"没有聚焦的词典",it:"Nessun dizionario selezionato",pt:"Nenhum dicionário focalizado",hi:"कोई फोकस शब्दकोश नहीं है",ar:"لا يوجد قاموس مرتبط",ru:"Нет фокусированного словаря","en-GB":"No dictionary focused"})}},P0=e=>`dictionary_edition_${e}`,FI=e=>{const t=P0(e),{isOpen:n,open:r,close:a}=$h(),{getEditedContentValue:s}=Ns(),{focusedContent:l,setFocusedContent:u}=ma();return S.useEffect(()=>{var d;l&&(((d=l.keyPath)==null?void 0:d.length)??0)>0&&r(t)},[l,r,t]),{isOpen:n(t),focusedContent:l,getEditedContentValue:s,close:()=>{a(t),u(d=>d!=null&&d.dictionaryKey?{...d,keyPath:[]}:d)}}},vre=({locale:e,identifier:t,handleOnBack:n,isDarkMode:r})=>{const{modalTitle:a,openDictionaryEditor:s}=Ut(HI),[l,u]=S.useState(!1),{all:d}=$I(),{focusedContent:f}=FI(t),m=S.useCallback(()=>{u(!1),n()},[n]),p=f==null?void 0:f.dictionaryKey;if(!p)return b.jsx(b.Fragment,{children:"No dictionary focused"});const v=d[p];return v?b.jsxs(b.Fragment,{children:[b.jsx(kO,{isOpen:l,onClose:()=>u(!1),hasCloseButton:!0,title:a.value,size:"xl",transparency:"lg",children:b.jsx("div",{className:"size-full px-3 pt-5",children:b.jsx(sre,{dictionary:v,onClickDictionaryList:m,isDarkMode:r,mode:["local","remote"],onDelete:()=>{u(!1),n()}})})}),b.jsxs("div",{className:"border-text/20 /20 mb-5 flex w-full border-b border-dashed px-3 pb-2",children:[b.jsx("h3",{className:"w-full text-center text-lg",children:v.title?v.title:v.key}),b.jsx(ut,{variant:"hoverable",color:"text",size:"icon-md",IconRight:kR,label:s.label.value,onClick:()=>u(!0)})]}),b.jsx(m7,{dictionary:v,locale:e,mode:["local","remote"]})]}):b.jsx(b.Fragment,{children:"No dictionary focused"})},bre=({locale:e,dictionaryKey:t,isDarkMode:n})=>{const{backButtonText:r}=Ut(HI),a=P0(t),{focusedContent:s,close:l}=FI(t),{openDictionaryListDrawer:u}=$h(f=>({openDictionaryListDrawer:()=>f.open(Lv)})),d=()=>{l(),u()};return b.jsx(UI,{identifier:a,backButton:{onBack:d,text:r.value},onClose:l,children:s&&b.jsx(vre,{focusedContent:s,locale:e,identifier:a,handleOnBack:d,isDarkMode:n})})},_re=({locale:e,isDarkMode:t})=>{const{focusedContent:n}=ma(),r=n==null?void 0:n.dictionaryKey;return r?b.jsx(bre,{locale:e,dictionaryKey:r,isDarkMode:t}):b.jsx(b.Fragment,{})},Ere=()=>{const{all:e}=$I(),t=Object.keys(e),{close:n,open:r}=$h(),{editedContent:a}=Sn(),{setFocusedContent:s}=ma(),l=d=>{n(Lv);const{filePath:f}=e[d];s({dictionaryKey:d,dictionaryPath:f}),r(P0(d))},u=d=>Object.keys(a??{}).includes(d);return b.jsx(UI,{title:"Dictionary list",identifier:Lv,children:t.map(d=>b.jsx("div",{children:b.jsx(ut,{label:`Open dictionary editor ${d}`,onClick:()=>l(d),variant:"hoverable",color:"text",IconRight:xf,size:"md",isFullWidth:!0,children:u(d)?`✎ ${d}`:d})},d))})},GI=(...e)=>FR(lh(e)),xre={key:"long-press-message",content:{message:fP(ge({en:'Long press to edit the "{{dictionaryKey}}" dictionary',fr:'Long press pour éditer le dictionnaire "{{dictionaryKey}}"',es:'Presiona largo para editar el diccionario "{{dictionaryKey}}"',de:'Lang press für Bearbeitung des Wörterbuchs "{{dictionaryKey}}"',it:'Premi a lungo per modificare il dizionario "{{dictionaryKey}}"',pt:'Pressione longa para editar o dicionário "{{dictionaryKey}}"',ru:'Длительное нажатие для редактирования словаря "{{dictionaryKey}}"',ja:'長押しして編集 "{{dictionaryKey}}" 辞書',ko:'길게 눌러 편집 "{{dictionaryKey}}" 사전',zh:'长按编辑 "{{dictionaryKey}}" 字典',"en-GB":'Long press to edit the "{{dictionaryKey}}" dictionary',ar:'اضغط طويلاً للتعديل "{{dictionaryKey}}"',hi:'लंग प्रेस करें टू एडिट "{{dictionaryKey}}"'}))}},Sre=e=>{const{message:t}=Ut(xre);return b.jsx("div",{className:GI("bg-neutral/30 py-1 px-3 rounded-2xl font-bold text-text text-sm transition-opacity duration-100",e!=null&&e.dictionaryKey?"opacity-100":"opacity-0"),children:e!=null&&e.dictionaryKey?t({dictionaryKey:e.dictionaryKey}):""})},Are=({children:e})=>{const[t]=la(xn.INTLAYER_CURRENT_LOCALE,void 0,{receive:!0,emit:!1}),[n]=la(xn.INTLAYER_HOVERED_CONTENT_CHANGED,null),{data:r}=N6({autoFetch:!0}),{setLocaleDictionaries:a}=nh();return S.useEffect(()=>{r&&a(r)},[r]),b.jsxs("div",{className:"bg-card relative size-full p-3",children:[e,b.jsx("div",{className:"absolute bottom-2 right-2",children:b.jsx(Sre,{...n})}),b.jsx(_re,{locale:t}),b.jsx(Ere,{})]})},wre=()=>{const[e,t]=S.useState();return S.useEffect(()=>{fetch("/api/config").then(n=>n.json()).then(n=>t(n.data))},[]),e},Tre=({children:e,iframeRef:t})=>{const n=wre(),r=n!=null&&n.editor.applicationURL?n==null?void 0:n.editor.applicationURL:"*",a=(n==null?void 0:n.editor.editorURL)??"*";return n?b.jsx(DP,{postMessage:s=>{var l,u;window==null||window.postMessage(s,a),(u=(l=t.current)==null?void 0:l.contentWindow)==null||u.postMessage(s,r)},allowedOrigins:[r,a],mode:"editor",configuration:n,children:e}):b.jsx(Es,{})},Rre=()=>{const{editedContent:e,setEditedContentState:t}=Sn(),n=()=>{const r=localStorage==null?void 0:localStorage.getItem("INTLAYER_EDITED_CONTENT_CHANGED");if(r)try{const a=JSON.parse(r);t(a)}catch(a){console.error(a)}};return S.useEffect(()=>{typeof e>"u"||localStorage==null||localStorage.setItem("INTLAYER_EDITED_CONTENT_CHANGED",JSON.stringify(e))},[e]),S.useEffect(()=>{typeof e<"u"||n()},[]),n},Cre={key:"no-application-url-view",content:{title:ge({en:"Your project configuration do not includes application URL","en-GB":"Your project configuration do not includes application URL",fr:"Votre configuration de projet ne comprend pas l’URL de l’application",es:"Su configuración de proyecto no incluye la URL de la aplicación",de:"Ihre Projektkonfiguration enthält keine Anwendungs-URL",ja:"あなたのプロジェクト構成にはアプリケーション URL が含まれていません",ko:"당신의 프로젝트 구성에 앱 URL이 포함되어 있지 않습니다.",zh:"您的项目配置未包含应用程序 URL",pt:"Sua configuração do projeto não inclui a URL do aplicativo",ru:"Ваша конфигурация проекта не включает URL-адрес приложения",ar:"تم إنشاء مشروعك بدون تضمين عنوان URL التطبيق",hi:"आपके प्रोजेक्ट कॉन्फ़िगरेशन में ऐप का URL शामिल नहीं है",it:"La configurazione del progetto non include l’URL dell’applicazione"}),description:ge({en:"To use the editor, you need to add the URL of the application to access to the configuration file.","en-GB":"To use the editor, you need to add the URL of the application to access to the configuration file.",fr:"Pour utiliser l’éditeur, vous devez ajouter l’URL de l’application pour accéder au fichier de configuration.",es:"Para usar el editor, debe agregar la URL de la aplicación para acceder al archivo de configuración.",de:"Um den Editor zu verwenden, müssen Sie die URL der Anwendung hinzufügen, um auf die Konfigurationsdatei zuzugreifen.",ja:"エディターを使用するには、アプリケーションの URL を設定ファイルに追加する必要があります。",ko:"에디터를 사용하려면 설정 파일에 앱 URL을 추가해야 합니다.",zh:"要使用编辑器,您需要将应用程序 URL 添加到访问配置文件。",pt:"Para usar o editor, você precisa adicionar a URL do aplicativo para acessar o arquivo de configuração.",ru:"Чтобы использовать редактор, вам необходимо добавить URL-адрес приложения для доступа к файлу конфигурации.",ar:"لاستخدام المحرر، يجب عليك إضافة عنوان URL التطبيق للوصول إلى ملف التكوين.",hi:"एडिटर का उपयोग करने के लिए, आपको कॉन्फ़िगरेशन फ़ाइल तक ऐप का URL को जोड़ना होगा।",it:"Per utilizzare l’editor, è necessario aggiungere l’URL dell’applicazione per accedere al file di configurazione."}),documentationLink:{label:ge({en:"Click to go to the editor documentation","en-GB":"Click to go to the editor documentation",fr:"Cliquez ici pour accéder à la documentation de l’éditeur",es:"Haga clic aquí para acceder a la documentación del editor",de:"Klicken Sie hier, um die Editor-Dokumentation zu besuchen",ja:"エディターのドキュメントに移動するには、ここをクリックしてください",ko:"에디터 문서로 이동하려면 여기를 클릭하십시오.",zh:"点击此处访问编辑器文档",pt:"Clique aqui para acessar a documentação do editor",ru:"Нажмите, чтобы перейти к документации редактора",ar:"انقر هنا للوصول إلى وثائق المحرر",hi:"एडिटर को डॉक्यूमेंट पर जाए रखना चाहते हैं?",it:"Fai clic qui per accedere alla documentazione dell’editor"}),text:ge({en:"See how to configure the editor","en-GB":"See how to configure the editor",fr:"Voir comment configurer l’éditeur",de:"Siehe, wie man den Editor konfiguriert",ar:"انظر كيفية تكوين المحرر",hi:"एडिटर को काने के बारे में देखें",it:"Vedi come configurare l’editor",ja:"エディターの設定方法を見る",ru:"Смотрите, как настроить редактор",es:"Vea cómo configurar el editor",pt:"Veja como configurar o editor",ko:"에디터 설정 방법을 보십시오",zh:"查看如何配置编辑器"})}}},Nre=()=>{const{title:e,description:t,documentationLink:n}=Ut(Cre);return b.jsxs("div",{className:"flex flex-col gap-6",children:[b.jsx(Fb,{className:"mb-8",children:e}),b.jsx("strong",{className:"text-neutral block",children:t}),b.jsx(qv,{label:n.label.value,href:"https://intlayer.org/doc/concept/configuration#editor-configuration",color:"text",children:n.text})]})},Ore=({iframeRef:e,applicationPath:t})=>{const{editor:n}=Zr(),r=()=>a(n.enabled),a=RP();rR(r),Rre(),LP();const[s,l]=S.useState(!1),[u]=IP(void 0,{receive:!0,emit:!1});return S.useEffect(()=>{typeof u=="string"&&window.history.replaceState({},"",u)},[u]),n.applicationURL?b.jsxs("div",{className:"size-full overflow-hidden rounded-lg",children:[b.jsx(Es,{isLoading:s}),b.jsx("iframe",{src:`${n.applicationURL}${t}`,title:"Intlayer Application",className:GI("size-full",s&&"hidden"),ref:e,onLoad:()=>{l(!1),r()}})]}):b.jsx("div",{className:"flex size-full items-center justify-center",children:b.jsx(Rr,{className:"flex max-w-xl flex-col gap-4 p-6",children:b.jsx(Nre,{})})})},kre=()=>{const e=S.useRef(null),t=pa();return b.jsx(Tre,{iframeRef:e,children:b.jsx(VP,{disableEditor:!0,children:b.jsx(Are,{children:b.jsx(Ore,{iframeRef:e,applicationPath:t.pathname})})})})},Dre=()=>b.jsx(yre,{children:b.jsx(gre,{children:b.jsx(kre,{})})});yM.createRoot(document.getElementById("root")).render(b.jsx(S.StrictMode,{children:b.jsx(Dre,{})}));
|
|
320
|
+
`).length>1;return b.jsxs("div",{className:Ae("relative h-full w-full text-sm",r&&"ml-0"),children:[a&&b.jsx("div",{className:"sticky top-5 z-10",children:b.jsx("div",{className:Ae("absolute bottom-0 right-2 flex h-7 items-center"),children:b.jsx(OC,{content:e})})}),b.jsx("div",{className:"z-0 grid size-full grid-cols-[0px] overflow-auto",ref:u,children:b.jsx(ere,{...f,defaultLanguage:"typescript",language:t,loading:b.jsx(Es,{}),defaultValue:String(e).replace(/\n$/,""),onMount:v,onChange:l,options:{readOnly:s,cursorStyle:"line",minimap:{enabled:!1},scrollbar:{vertical:"hidden",verticalScrollbarSize:0,alwaysConsumeMouseWheel:!1},folding:!1,renderValidationDecorations:"off",quickSuggestions:!1,parameterHints:{enabled:!1},suggestOnTriggerCharacters:!1,mouseWheelScrollSensitivity:0,fastScrollSensitivity:0,scrollBeyondLastLine:!1,lineNumbers:x?"on":"off"},theme:p,className:"my-2 rounded-md"})})]})},nre=({dictionary:e,isDarkMode:t})=>{const{setEditedContent:n,editedContent:r}=Sn(),a=l=>{try{return JSON.parse(l),!0}catch{return!1}},s=S.useMemo(()=>{var l;return((l=r==null?void 0:r[e.key])==null?void 0:l.content)??(e==null?void 0:e.content)??{}},[e]);return b.jsx(Rr,{background:"none",border:!0,roundedSize:"xl",className:"w-full overflow-hidden p-3",children:b.jsx(tre,{language:"json",onChange:l=>{a(l??"{}")&&n(e.key,JSON.parse(l??"{}"))},isDarkMode:t,children:JSON.stringify(s,null,2)})})},rre={key:"node-type-selector",content:{triggerPlaceHolder:ge({en:"Node type","en-GB":"Node type",fr:"Type du Nœud",es:"Tipo del nodo",de:"Knotentyp",ja:"ノードタイプ",ko:"노드 유형",zh:"节点类型",it:"Tipo di nodo",pt:"Tipo de nó",hi:"नोड प्रकार",ar:"نوع العقدة",ru:"Тип узла"}),multilingual:ge({en:"Multilingual content","en-GB":"Multilingual content",fr:"Contenu Multilingue",es:"Contenido multilingüe",de:"Mehrsprachiger Inhalt",ja:"複数言語コンテンツ",ko:"다중 언어 콘텐츠",zh:"多语言内容",it:"Contenuto multilingue",pt:"Conteúdo multilíngue",hi:"बहुभाषी सामग्री",ar:"محتوى متعدد اللغات",ru:"Многоязычный контент"}),text:ge({en:"Text","en-GB":"Text",fr:"Texte",es:"Texto",de:"Text",ja:"テキスト",ko:"텍스트",zh:"文本",it:"Testo",pt:"Texto",hi:"पाठ",ar:"نص",ru:"Текст"}),number:ge({en:"Number","en-GB":"Number",fr:"Nombre",es:"Número",de:"Zahl",ja:"数字",ko:"숫자",zh:"数字",it:"Numero",pt:"Número",hi:"संख्या",ar:"رقم",ru:"Число"}),boolean:ge({en:"Boolean","en-GB":"Boolean",fr:"Booléen",es:"Booleano",de:"Bool",ja:"ブール",ko:"불리언",zh:"布尔",it:"Booleano",pt:"Booleano",hi:"बूलियन",ar:"منطقي",ru:"Булево"}),node:ge({en:"Object","en-GB":"Object",fr:"Objet",es:"Objeto",de:"Objekt",ja:"オブジェクト",ko:"객체",zh:"对象",it:"Oggetto",pt:"Objeto",hi:"ऑब्जेक्ट",ar:"كائن",ru:"Объект"}),array:ge({en:"Array","en-GB":"Array",fr:"Tableau",es:"Arreglo",de:"Array",ja:"配列",ko:"배열",zh:"数组",it:"Array",pt:"Array",hi:"ऐरे",ar:"مصفوفة",ru:"Массив"}),enumeration:ge({en:"Enumeration","en-GB":"Enumeration",fr:"Énumération",es:"Enumeración",de:"Enumeration",ja:"列挙",ko:"열거",zh:"枚举",it:"Enumerazione",pt:"Enumeração",hi:"गणना",ar:"تعداد",ru:"Перечисление"}),nest:ge({en:"Nesting","en-GB":"Nesting",fr:"Imbriquation",es:"Anidación",de:"Vererbung",ja:"ネスト",ko:"중첩",zh:"嵌套",it:"Nidificazione",pt:"Nido",hi:"नेस्टेंस",ar:"مستوى",ru:"Вложенность",nl:"Nest"}),insertion:ge({en:"Insertion","en-GB":"Insertion",fr:"Insertion",es:"Inserción",de:"Einfügung",ja:"挿入",ko:"삽입",zh:"插入",it:"Inserimento",pt:"Inserção",hi:"सम्मिलन",ar:"إدراج",ru:"Вставка"}),condition:ge({en:"Condition","en-GB":"Condition",fr:"Condition",es:"Condición",de:"Bedingung",ja:"条件",ko:"조건",zh:"条件",it:"Condizione",pt:"Condição",hi:"शर्त्ता",ar:"شرط",ru:"Условие"}),file:ge({en:"File","en-GB":"File",fr:"Fichier",es:"Archivo",de:"Datei",ja:"ファイル",ko:"파일",zh:"文件",it:"File",pt:"Arquivo",hi:"फ़ाइल",ar:"ملف",ru:"Файл"}),markdown:ge({en:"Markdown","en-GB":"Markdown",fr:"Markdown",es:"Markdown",de:"Markdown",ja:"マークダウン",ko:"마크다운",zh:"Markdown",it:"Markdown",pt:"Markdown",hi:"मार्कडाउन",ar:"مارك داون",ru:"Markdown"}),reactNode:ge({en:"React Node","en-GB":"React Node",fr:"Node React",es:"Nodo React",de:"React-Knoten",ja:"リアル・ノード",ko:"리액 노드",zh:"React 节点",it:"Nodo React",pt:"Nó React",hi:"रेड नोड",ar:"عقدة رياكت",ru:"Реакт узел"})}},Xd=({section:e,onValueChange:t})=>{const{multilingual:n,text:r,number:a,boolean:s,node:l,array:u,enumeration:d,triggerPlaceHolder:f,nest:m,condition:p,markdown:v,insertion:x,reactNode:y,file:E}=Ut(rre),A=Cs(e),[T,w]=S.useState(A),R=O=>{w(O),t(O)};return b.jsxs(De,{value:T,onValueChange:R,children:[b.jsx(De.Trigger,{children:b.jsx(De.Value,{placeholder:f})}),b.jsxs(De.Content,{children:[b.jsx(De.Item,{value:Z.Translation,children:n}),b.jsx(De.Item,{value:Z.Text,children:r}),b.jsx(De.Item,{value:Z.Number,children:a}),b.jsx(De.Item,{value:Z.Boolean,children:s}),b.jsx(De.Item,{value:Z.Object,children:l}),b.jsx(De.Item,{value:Z.Array,children:u}),b.jsx(De.Item,{value:Z.Enumeration,children:d}),b.jsx(De.Item,{value:Z.Insertion,children:x}),b.jsx(De.Item,{value:Z.Markdown,children:v}),b.jsx(De.Item,{value:Z.Nested,children:m}),b.jsx(De.Item,{value:Z.Condition,children:p}),b.jsx(De.Item,{value:Z.ReactNode,disabled:!0,children:y}),b.jsx(De.Item,{value:Z.File,children:E})]})]})},BI={key:"editor-view",content:{titleInput:{placeholder:ge({en:"Enter the key of your node","en-GB":"Enter the key of your node",fr:"Entrez la clé de votre nœud",es:"Ingrese la clave de su nodo",de:"Geben Sie den Schlüssel Ihres Knotens ein",ja:"ノードのキーを入力してください",ko:"노드의 키를 입력하세요",zh:"输入您节点的键",it:"Inserisci la chiave del tuo nodo",pt:"Insira a chave do seu nó",hi:"अपनी नोड की कुंजी दर्ज करें",ar:"أدخل مفتاح العقدة الخاص بك",ru:"Введите ключ вашего узла"})},deleteButton:{label:ge({en:"Remove node from section","en-GB":"Remove node from section",fr:"Supprimer le nœud de la section",es:"Eliminar el nodo de la sección",de:"Knoten aus dem Abschnitt entfernen",ja:"セクションからノードを削除",ko:"섹션에서 노드를 제거",zh:"从部分中移除节点",it:"Rimuovi nodo dalla sezione",pt:"Remover nó da seção",hi:"सेक्शन से नोड हटाएं",ar:"إزالة العقدة من القسم",ru:"Удалить узел из секции"})},addNodeButton:{label:ge({en:"Click to add a new node","en-GB":"Click to add a new node",fr:"Cliquez pour ajouter un nouveau nœud",es:"Haga clic para agregar un nuevo nodo",de:"Klicken, um einen neuen Knoten hinzuzufügen",ja:"新しいノードを追加するにはクリックしてください",ko:"새 노드를 추가하려면 클릭하세요",zh:"点击添加新节点",it:"Fai clic per aggiungere un nuovo nodo",pt:"Clique para adicionar um novo nó",hi:"नया नोड जोड़ने के लिए क्लिक करें",ar:"انقر لإضافة عقدة جديدة",ru:"Нажмите, чтобы добавить новый узел"}),text:ge({en:"Add a new node","en-GB":"Add a new node",fr:"Ajouter un nouveau nœud",es:"Agregar un nuevo nodo",de:"Neuen Knoten hinzufügen",ja:"新しいノードを追加",ko:"새 노드 추가",zh:"添加新节点",it:"Aggiungi un nuovo nodo",pt:"Adicionar um novo nó",hi:"नया नोड जोड़ें",ar:"إضافة عقدة جديدة",ru:"Добавить новый узел"})}}},Iv=({section:e,dictionaryKey:t,keyPath:n,onNodeTypeChange:r})=>{var d;const a=((d=Zr())==null?void 0:d.internationalization.locales)??[],s=Cs(e),l=F1(e),u=f=>{const m=$l(s,a,f);r(m)};if(s===Z.Translation||s===Z.Condition||s===Z.Enumeration){const f=Object.keys(e[s])[0],m=[...n,{type:s,key:f}];return b.jsxs("div",{className:"flex w-full flex-col gap-1",children:[b.jsx(Xd,{section:e,onValueChange:p=>r($l(p,a))}),b.jsx(Iv,{section:l,keyPath:m,dictionaryKey:t,onNodeTypeChange:u})]})}if(s===Z.Array){const f=[...n,{type:s,key:0}];return b.jsxs("div",{className:"flex w-full flex-col gap-1",children:[b.jsx(Xd,{section:e,onValueChange:m=>r($l(m,a))}),b.jsx(Iv,{section:l,keyPath:f,dictionaryKey:t,onNodeTypeChange:u})]})}return s===Z.Object?b.jsxs(b.Fragment,{children:[b.jsx(Xd,{section:e,onValueChange:f=>r($l(f,a))}),b.jsx("div",{className:"ml-10 mt-6",children:b.jsx(are,{keyPath:n,section:e,dictionaryKey:t})})]}):b.jsx(Xd,{section:e,onValueChange:f=>r($l(f,a))})},M0=({sectionKey:e,section:t,keyPath:n,dictionaryKey:r})=>{const{focusedContent:a,setFocusedContentKeyPath:s}=ma(),{renameEditedContent:l,addEditedContent:u}=Ns(),{titleInput:d,deleteButton:f}=Ut(BI),m=p=>{l(r,p,n);const v=n.slice(0,-1),x=n[n.length-1],y=[...v,{...x,key:p}];s(y)};return b.jsx(Rr,{transparency:"xl",roundedSize:"xl",className:"w-full min-w-80 gap-2 overflow-auto px-5 py-2",border:!0,borderColor:"text",background:"none","aria-selected":Fc(n,(a==null?void 0:a.keyPath)??[]),onClick:()=>s(n),children:b.jsxs("div",{className:"flex w-full flex-col items-start justify-between gap-3",children:[typeof e=="string"&&b.jsxs("div",{className:"w-full",children:[b.jsxs("div",{className:"flex w-full items-center justify-between gap-10",children:[b.jsx(nk,{name:"key","aria-label":"Key",placeholder:d.placeholder.value,defaultValue:e,onSave:p=>m(p),variant:"invisible"}),b.jsx(ut,{label:f.label.value,variant:"hoverable",size:"icon-sm",color:"text",className:"translate-x-2",Icon:sh,onClick:()=>{u(r,void 0,n);const p=n.slice(0,-1);s(p)}})]}),b.jsxs("span",{className:"text-neutral ml-3 text-sm",children:["( ",vf(e)," )"]})]}),b.jsx(Iv,{keyPath:n,dictionaryKey:r,section:t,onNodeTypeChange:p=>{u(r,p,n)}})]})})},ire=({section:e,keyPath:t,dictionaryKey:n})=>{const{addNodeButton:r}=Ut(BI),{setFocusedContentKeyPath:a}=Pv(),{addEditedContent:s}=Ns();return!e||typeof e!="object"?b.jsx("div",{children:"Not an object"}):b.jsxs("div",{className:"flex flex-col gap-2 overflow-y-auto",children:[b.jsx("ul",{className:"mr-auto flex flex-col gap-4",children:Object.keys(e).map(l=>b.jsx("li",{className:"flex w-full",children:b.jsx(M0,{sectionKey:l,section:e==null?void 0:e[l],keyPath:[...t,{type:Z.Object,key:l}],dictionaryKey:n})},l))}),b.jsx(ut,{label:r.label.value,variant:"hoverable",size:"md",color:"text",Icon:oh,className:"flex-1",onClick:()=>{const u=[...t,{type:Z.Object,key:"newKey"}];s(n,"",u),a(u)},children:r.text})]})},are=({section:e,keyPath:t,dictionaryKey:n})=>!e||typeof e!="object"||typeof e.nodeType=="string"?b.jsx(M0,{sectionKey:"content",section:e,keyPath:t,dictionaryKey:n}):b.jsx(ire,{section:e,keyPath:t,dictionaryKey:n}),ore=({dictionary:e})=>{var s,l;const{content:t,key:n}=e,{editedContent:r}=Sn(),a=typeof((s=r==null?void 0:r[n])==null?void 0:s.content)>"u"?t:(l=r==null?void 0:r[n])==null?void 0:l.content;return b.jsx(M0,{section:a,keyPath:[],dictionaryKey:e.key})},sre=({dictionary:e,onClickDictionaryList:t,isDarkMode:n,mode:r,onDelete:a})=>{const s=Zr(),[l,u]=S.useState(1),{returnToDictionaryList:d}=Ut(Wte),{setFocusedContent:f}=Pv(),{setLocaleDictionaries:m}=nh();return S.useEffect(()=>{f(p=>({...p??{},dictionaryKey:e.key})),m(p=>({...p,[e.key]:e}))},[]),b.jsx(_Y,{availableLocales:(s==null?void 0:s.internationalization.locales)??[],children:b.jsxs("div",{className:"flex size-full flex-col gap-6 px-2",children:[b.jsx(ut,{onClick:t,variant:"hoverable",className:"z-10 ml-5 mr-auto",color:"text",Icon:kV,label:d.label.value,children:d.text}),b.jsx(ou,{defaultValue:l,onChange:p=>u(p),color:"text",size:"sm",className:"m-auto w-full max-w-xl",choices:[{content:"Details",value:0},{content:"Structure",value:2},{content:"Content",value:1},{content:"JSON",value:3}].filter(({value:p})=>!(!r.includes("remote")&&p===0))}),l===0&&b.jsx(Zte,{dictionary:e}),l===2&&b.jsx(ore,{dictionary:e}),l===1&&b.jsx(Fte,{dictionary:e,isDarkMode:n}),l===3&&b.jsx(nre,{dictionary:e,isDarkMode:n}),b.jsx(hD,{dictionary:e,mode:r,onDelete:()=>{f(null),a==null||a()}})]})})},lre=({children:e,isHidden:t,minWidth:n=0,align:r="left",className:a,...s})=>b.jsx("div",{className:Ae("relative grid h-full grid-cols-[0fr] overflow-x-hidden overflow-y-hidden transition-all duration-500 ease-in-out",t?"":"grid-cols-[1fr]",a),"aria-hidden":t,...s,children:b.jsx("div",{style:{minWidth:`${n}px`},tabIndex:t!==!1?void 0:-1,className:Ae(r==="right"&&"ml-auto"),children:e})}),cre=e=>{switch(e){case"sm":return 640;case"md":return 768;case"lg":return 1024;case"xl":return 1280;case"2xl":return 1536;default:return e}},ure=()=>{var t;if(typeof window>"u")return;const e=(t=window.navigator)==null?void 0:t.userAgent;if(!(typeof e>"u"))return/android|bb\d+|meego|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(?:hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(?:ob|in)i|palm(?: os)?|phone|p(?:ixi|re)\/|plucker|pocket|psp|series(?:4|6)0|symbian|treo|up\.(?:browser|link)|vodafone|wap|windows ce|windows phone|xda|xiino|zte-/i.test(e)},dre=e=>{if(!(typeof window>"u"))return((window==null?void 0:window.innerWidth)??0)<=e},V1=(e="md")=>{const t=cre(e),n=ure(),r=dre(t);return{isMobileScreen:r,isMobileUserAgent:n,isMobile:r??n}},fre=(e="md")=>{const[t,n]=S.useState(V1(e));return S.useEffect(()=>{const r=()=>{n(V1(e))};return window.addEventListener("resize",r,{passive:!0}),()=>window.removeEventListener("resize",r)},[e]),t},hre=e=>{const t=e.getBoundingClientRect(),n=t.top,r=t.bottom-1;if(n>=0&&r<=window.innerHeight){const s=t.left+t.width/2,l=t.top+10,u=document.elementFromPoint(s,l);return e===u||e.contains(u)}return!1},$h=CO((e,t)=>({drawers:{},open:n=>e(r=>({drawers:{...r.drawers,[n]:!0}})),close:n=>e(r=>({drawers:{...r.drawers,[n]:!1}})),isOpen:n=>t().drawers[n]??!1})),UI=({title:e,identifier:t,children:n,header:r,closeOnOutsideClick:a=!0,backButton:s,isOpen:l,onClose:u})=>{const{isMobile:d}=fre("md"),f=S.useRef(null),m=S.useRef(null),{close:p,open:v,isOpen:x}=$h(NO(E=>({close:()=>E.close(t),open:()=>E.open(t),isOpen:E.isOpen(t)})));OO({disableScroll:x,key:t?`right_drawer_${t}`:"right_drawer"}),S.useEffect(()=>{const E=A=>{try{if(!f.current)return;const T=x&&a,w=A.target&&!f.current.contains(A.target),R=hre(f.current);(T&&w&&R||!A.target)&&(p(),u==null||u())}catch{p(),u==null||u()}};return window.addEventListener("mousedown",E),()=>window.removeEventListener("mousedown",E)},[x,p,u,a,t]),S.useEffect(()=>{l!==void 0&&(l?v():(p(),u==null||u()))},[p,v,u,l,t]);const y=E=>{E.target===E.currentTarget&&d&&(p(),u==null||u())};return b.jsx("div",{className:"fixed right-0 top-0 z-50 flex h-full justify-end",children:b.jsx(lre,{isHidden:!x,align:"right",children:b.jsxs(Rr,{className:"text-text relative flex h-screen w-screen flex-col md:w-[400px]",ref:f,roundedSize:"none",children:[b.jsxs("div",{className:"flex flex-col gap-3 p-6",children:[b.jsxs("div",{className:"flex justify-between gap-3",children:[b.jsx("div",{children:s&&b.jsx(ut,{variant:"hoverable",color:"text",label:s.text??"Go back",onClick:s.onBack,Icon:PV,children:s==null?void 0:s.text})}),b.jsx("div",{children:b.jsx(ut,{variant:"hoverable",color:"text",label:"Close",className:"ml-auto",onClick:p,Icon:po,size:"icon-md"})})]}),e&&b.jsx("h2",{className:"flex items-center justify-center text-lg font-bold",children:e}),r]}),b.jsx("div",{className:"flex h-full flex-col overflow-y-auto p-2",children:b.jsx("div",{className:"flex flex-1 flex-col",onClick:y,ref:m,children:n})})]})})})},mre=()=>{const{toasts:e}=DO();return b.jsxs(_G.Provider,{children:[e.map(({id:t,title:n,description:r,action:a,...s})=>b.jsxs(SG,{...s,children:[b.jsxs("div",{className:"grid gap-1",children:[n&&b.jsx(wG,{children:n}),r&&b.jsx(TG,{children:r})]}),a,b.jsx(AG,{})]},t)),b.jsx(EG,{})]})},$I=(...e)=>{const{localeDictionaries:t}=J1(),{data:n,isWaitingData:r}=E6(...e),a=S.useMemo(()=>((n==null?void 0:n.data)??[]).reduce((l,u)=>(l[u.key]=u,l),{}),[n]),s=S.useMemo(()=>DG(a??{},t),[a,t]);return{online:a,locale:t,all:s,isLoading:r}},pre=({children:e})=>b.jsx(pF,{features:W4,children:e}),gre=({children:e})=>b.jsx(pre,{children:b.jsxs(CG,{children:[b.jsx(mre,{}),e]})}),yre=({children:e})=>b.jsx(mV,{children:b.jsx(Fz,{children:b.jsx(xR,{path:"*",element:e})})}),Lv="dictionaryList",HI={key:"dictionary-edition-drawer",content:{openDictionaryEditor:{label:ge({en:"Click to open the dictionary in the editor",fr:"Cliquez pour ouvrir le dictionnaire dans l’éditeur",es:"Haga clic para abrir el diccionario en el editor",de:"Klicken Sie hier, um das Wörterbuch im Editor zu öffnen",ja:"エディターで辞書を開く",ko:"편집기에서 사전 열기",zh:"点击打开词典到编辑器",it:"Fai clic per aprire il dizionario nell’editor",pt:"Clique para abrir o dicionário no editor",hi:"एडिटर में शब्दकोश खोलने के लिए क्लिक करें",ar:"انقر لفتح قاموس في المحرر",ru:"Нажмите, чтобы открыть словарь в редакторе","en-GB":"Click to open the dictionary in the editor"})},backButtonText:ge({en:"Dictionary list",fr:"Liste des dictionnaires",es:"Lista de diccionarios",de:"Wörterbuchliste",ja:"辞書リスト",ko:"사전 목록",zh:"词典列表",it:"Elenco di dizionari",pt:"Lista de dicionários",hi:"शब्दकोश सूची",ar:"قائمة القوامل",ru:"Список словарей","en-GB":"Dictionary list"}),modalTitle:ge({en:"Edit dictionary",fr:"Modifier le dictionnaire",es:"Editar el diccionario",de:"Wörterbuch bearbeiten",ja:"辞書を編集",ko:"사전 편집",zh:"编辑词典",it:"Modifica dizionario",pt:"Editar dicionário",hi:"शब्दकोश संपादित करें",ar:"تحرير قاموس",ru:"Редактировать словарь","en-GB":"Edit dictionary"}),noDictionaryFocused:ge({en:"No dictionary focused",fr:"Aucun dictionnaire sélectionné",es:"No hay diccionario enfocado",de:"Kein Wörterbuch ausgewählt",ja:"フォーカスされた辞書がありません",ko:"포커스가 있는 사전이 없습니다",zh:"没有聚焦的词典",it:"Nessun dizionario selezionato",pt:"Nenhum dicionário focalizado",hi:"कोई फोकस शब्दकोश नहीं है",ar:"لا يوجد قاموس مرتبط",ru:"Нет фокусированного словаря","en-GB":"No dictionary focused"}),focusedDictionaryNotFound:ge({en:"Focused dictionary not found",fr:"Dictionnaire focalisé non trouvé",es:"Diccionario enfocado no encontrado",de:"Ausgewähltes Wörterbuch nicht gefunden",ja:"フォーカスされた辞書が見つかりません",ko:"포커스가 있는 사전이 없습니다",zh:"没有聚焦的词典",it:"Nessun dizionario selezionato",pt:"Nenhum dicionário focalizado",hi:"कोई फोकस शब्दकोश नहीं है",ar:"لا يوجد قاموس مرتبط",ru:"Нет фокусированного словаря","en-GB":"Focused dictionary not found"})}},P0=e=>`dictionary_edition_${e}`,FI=e=>{const t=P0(e),{isOpen:n,open:r,close:a}=$h(),{getEditedContentValue:s}=Ns(),{focusedContent:l,setFocusedContent:u}=ma();return S.useEffect(()=>{var d;l&&(((d=l.keyPath)==null?void 0:d.length)??0)>0&&r(t)},[l,r,t]),{isOpen:n(t),focusedContent:l,getEditedContentValue:s,close:()=>{a(t),u(d=>d!=null&&d.dictionaryKey?{...d,keyPath:[]}:d)}}},vre=({locale:e,identifier:t,handleOnBack:n,isDarkMode:r})=>{const{modalTitle:a,openDictionaryEditor:s,noDictionaryFocused:l,focusedDictionaryNotFound:u}=Ut(HI),[d,f]=S.useState(!1),{all:m}=$I(),{focusedContent:p}=FI(t),v=S.useCallback(()=>{f(!1),n()},[n]),x=p==null?void 0:p.dictionaryKey;if(!x)return b.jsx("span",{className:"mx-auto my-10 text-sm text-neutral",children:l});const y=m[x];return y?b.jsxs(b.Fragment,{children:[b.jsx(kO,{isOpen:d,onClose:()=>f(!1),hasCloseButton:!0,title:a.value,size:"xl",transparency:"lg",children:b.jsx("div",{className:"size-full px-3 pt-5",children:b.jsx(sre,{dictionary:y,onClickDictionaryList:v,isDarkMode:r,mode:["local","remote"],onDelete:()=>{f(!1),n()}})})}),b.jsxs("div",{className:"border-text/20 /20 mb-5 flex w-full border-b border-dashed px-3 pb-2",children:[b.jsx("h3",{className:"w-full text-center text-lg",children:y.title?y.title:y.key}),b.jsx(ut,{variant:"hoverable",color:"text",size:"icon-md",IconRight:kR,label:s.label.value,onClick:()=>f(!0)})]}),b.jsx(m7,{dictionary:y,locale:e,mode:["local","remote"]})]}):b.jsx("span",{className:"mx-auto my-10 text-sm text-neutral",children:u})},bre=({locale:e,dictionaryKey:t,isDarkMode:n})=>{const{backButtonText:r}=Ut(HI),a=P0(t),{focusedContent:s,close:l}=FI(t),{openDictionaryListDrawer:u}=$h(f=>({openDictionaryListDrawer:()=>f.open(Lv)})),d=()=>{l(),u()};return b.jsx(UI,{identifier:a,backButton:{onBack:d,text:r.value},onClose:l,children:s&&b.jsx(vre,{focusedContent:s,locale:e,identifier:a,handleOnBack:d,isDarkMode:n})})},_re=({locale:e,isDarkMode:t})=>{const{focusedContent:n}=ma(),r=n==null?void 0:n.dictionaryKey;return r?b.jsx(bre,{locale:e,dictionaryKey:r,isDarkMode:t}):b.jsx(b.Fragment,{})},Ere=()=>{const{all:e}=$I(),t=Object.keys(e),{close:n,open:r}=$h(),{editedContent:a}=Sn(),{setFocusedContent:s}=ma(),l=d=>{n(Lv);const{filePath:f}=e[d];s({dictionaryKey:d,dictionaryPath:f}),r(P0(d))},u=d=>Object.keys(a??{}).includes(d);return b.jsx(UI,{title:"Dictionary list",identifier:Lv,children:t.map(d=>b.jsx("div",{children:b.jsx(ut,{label:`Open dictionary editor ${d}`,onClick:()=>l(d),variant:"hoverable",color:"text",IconRight:xf,size:"md",isFullWidth:!0,children:u(d)?`✎ ${d}`:d})},d))})},GI=(...e)=>FR(lh(e)),xre={key:"long-press-message",content:{message:fP(ge({en:'Long press to edit the "{{dictionaryKey}}" dictionary',fr:'Long press pour éditer le dictionnaire "{{dictionaryKey}}"',es:'Presiona largo para editar el diccionario "{{dictionaryKey}}"',de:'Lang press für Bearbeitung des Wörterbuchs "{{dictionaryKey}}"',it:'Premi a lungo per modificare il dizionario "{{dictionaryKey}}"',pt:'Pressione longa para editar o dicionário "{{dictionaryKey}}"',ru:'Длительное нажатие для редактирования словаря "{{dictionaryKey}}"',ja:'長押しして編集 "{{dictionaryKey}}" 辞書',ko:'길게 눌러 편집 "{{dictionaryKey}}" 사전',zh:'长按编辑 "{{dictionaryKey}}" 字典',"en-GB":'Long press to edit the "{{dictionaryKey}}" dictionary',ar:'اضغط طويلاً للتعديل "{{dictionaryKey}}"',hi:'लंग प्रेस करें टू एडिट "{{dictionaryKey}}"'}))}},Sre=e=>{const{message:t}=Ut(xre);return b.jsx("div",{className:GI("bg-neutral/30 py-1 px-3 rounded-2xl font-bold text-text text-sm transition-opacity duration-100",e!=null&&e.dictionaryKey?"opacity-100":"opacity-0"),children:e!=null&&e.dictionaryKey?t({dictionaryKey:e.dictionaryKey}):""})},Are=({children:e})=>{const[t]=la(xn.INTLAYER_CURRENT_LOCALE,void 0,{receive:!0,emit:!1}),[n]=la(xn.INTLAYER_HOVERED_CONTENT_CHANGED,null),{data:r}=N6({autoFetch:!0}),{setLocaleDictionaries:a}=nh();return S.useEffect(()=>{r&&a(r)},[r]),b.jsxs("div",{className:"bg-card relative size-full p-3",children:[e,b.jsx("div",{className:"absolute bottom-2 right-2",children:b.jsx(Sre,{...n})}),b.jsx(_re,{locale:t}),b.jsx(Ere,{})]})},wre=()=>{const[e,t]=S.useState();return S.useEffect(()=>{fetch("/api/config").then(n=>n.json()).then(n=>t(n.data))},[]),e},Tre=({children:e,iframeRef:t})=>{const n=wre(),r=n!=null&&n.editor.applicationURL?n==null?void 0:n.editor.applicationURL:"*",a=(n==null?void 0:n.editor.editorURL)??"*";return n?b.jsx(DP,{postMessage:s=>{var l,u;window==null||window.postMessage(s,a),(u=(l=t.current)==null?void 0:l.contentWindow)==null||u.postMessage(s,r)},allowedOrigins:[r,a],mode:"editor",configuration:n,children:e}):b.jsx(Es,{})},Rre=()=>{const{editedContent:e,setEditedContentState:t}=Sn(),n=()=>{const r=localStorage==null?void 0:localStorage.getItem("INTLAYER_EDITED_CONTENT_CHANGED");if(r)try{const a=JSON.parse(r);t(a)}catch(a){console.error(a)}};return S.useEffect(()=>{typeof e>"u"||localStorage==null||localStorage.setItem("INTLAYER_EDITED_CONTENT_CHANGED",JSON.stringify(e))},[e]),S.useEffect(()=>{typeof e<"u"||n()},[]),n},Cre={key:"no-application-url-view",content:{title:ge({en:"Your project configuration do not includes application URL","en-GB":"Your project configuration do not includes application URL",fr:"Votre configuration de projet ne comprend pas l’URL de l’application",es:"Su configuración de proyecto no incluye la URL de la aplicación",de:"Ihre Projektkonfiguration enthält keine Anwendungs-URL",ja:"あなたのプロジェクト構成にはアプリケーション URL が含まれていません",ko:"당신의 프로젝트 구성에 앱 URL이 포함되어 있지 않습니다.",zh:"您的项目配置未包含应用程序 URL",pt:"Sua configuração do projeto não inclui a URL do aplicativo",ru:"Ваша конфигурация проекта не включает URL-адрес приложения",ar:"تم إنشاء مشروعك بدون تضمين عنوان URL التطبيق",hi:"आपके प्रोजेक्ट कॉन्फ़िगरेशन में ऐप का URL शामिल नहीं है",it:"La configurazione del progetto non include l’URL dell’applicazione"}),description:ge({en:"To use the editor, you need to add the URL of the application to access to the configuration file.","en-GB":"To use the editor, you need to add the URL of the application to access to the configuration file.",fr:"Pour utiliser l’éditeur, vous devez ajouter l’URL de l’application pour accéder au fichier de configuration.",es:"Para usar el editor, debe agregar la URL de la aplicación para acceder al archivo de configuración.",de:"Um den Editor zu verwenden, müssen Sie die URL der Anwendung hinzufügen, um auf die Konfigurationsdatei zuzugreifen.",ja:"エディターを使用するには、アプリケーションの URL を設定ファイルに追加する必要があります。",ko:"에디터를 사용하려면 설정 파일에 앱 URL을 추가해야 합니다.",zh:"要使用编辑器,您需要将应用程序 URL 添加到访问配置文件。",pt:"Para usar o editor, você precisa adicionar a URL do aplicativo para acessar o arquivo de configuração.",ru:"Чтобы использовать редактор, вам необходимо добавить URL-адрес приложения для доступа к файлу конфигурации.",ar:"لاستخدام المحرر، يجب عليك إضافة عنوان URL التطبيق للوصول إلى ملف التكوين.",hi:"एडिटर का उपयोग करने के लिए, आपको कॉन्फ़िगरेशन फ़ाइल तक ऐप का URL को जोड़ना होगा।",it:"Per utilizzare l’editor, è necessario aggiungere l’URL dell’applicazione per accedere al file di configurazione."}),documentationLink:{label:ge({en:"Click to go to the editor documentation","en-GB":"Click to go to the editor documentation",fr:"Cliquez ici pour accéder à la documentation de l’éditeur",es:"Haga clic aquí para acceder a la documentación del editor",de:"Klicken Sie hier, um die Editor-Dokumentation zu besuchen",ja:"エディターのドキュメントに移動するには、ここをクリックしてください",ko:"에디터 문서로 이동하려면 여기를 클릭하십시오.",zh:"点击此处访问编辑器文档",pt:"Clique aqui para acessar a documentação do editor",ru:"Нажмите, чтобы перейти к документации редактора",ar:"انقر هنا للوصول إلى وثائق المحرر",hi:"एडिटर को डॉक्यूमेंट पर जाए रखना चाहते हैं?",it:"Fai clic qui per accedere alla documentazione dell’editor"}),text:ge({en:"See how to configure the editor","en-GB":"See how to configure the editor",fr:"Voir comment configurer l’éditeur",de:"Siehe, wie man den Editor konfiguriert",ar:"انظر كيفية تكوين المحرر",hi:"एडिटर को काने के बारे में देखें",it:"Vedi come configurare l’editor",ja:"エディターの設定方法を見る",ru:"Смотрите, как настроить редактор",es:"Vea cómo configurar el editor",pt:"Veja como configurar o editor",ko:"에디터 설정 방법을 보십시오",zh:"查看如何配置编辑器"})}}},Nre=()=>{const{title:e,description:t,documentationLink:n}=Ut(Cre);return b.jsxs("div",{className:"flex flex-col gap-6",children:[b.jsx(Fb,{className:"mb-8",children:e}),b.jsx("strong",{className:"text-neutral block",children:t}),b.jsx(qv,{label:n.label.value,href:"https://intlayer.org/doc/concept/configuration#editor-configuration",color:"text",children:n.text})]})},Ore=({iframeRef:e,applicationPath:t})=>{const{editor:n}=Zr(),r=()=>a(n.enabled),a=RP();rR(r),Rre(),LP();const[s,l]=S.useState(!0),[u]=IP(void 0,{receive:!0,emit:!1});return S.useEffect(()=>{typeof u=="string"&&window.history.replaceState({},"",u)},[u]),n.applicationURL?b.jsxs("div",{className:"size-full overflow-hidden rounded-lg",children:[b.jsx(Es,{isLoading:s}),b.jsx("iframe",{src:`${n.applicationURL}${t}`,title:"Intlayer Application",className:GI("size-full",s&&"hidden"),ref:e,onLoad:()=>{l(!1),r()}})]}):b.jsx("div",{className:"flex size-full items-center justify-center",children:b.jsx(Rr,{className:"flex max-w-xl flex-col gap-4 p-6",children:b.jsx(Nre,{})})})},kre=()=>{const e=S.useRef(null),t=pa();return b.jsx(Tre,{iframeRef:e,children:b.jsx(VP,{disableEditor:!0,children:b.jsx(Are,{children:b.jsx(Ore,{iframeRef:e,applicationPath:t.pathname})})})})},Dre=()=>b.jsx(yre,{children:b.jsx(gre,{children:b.jsx(kre,{})})});yM.createRoot(document.getElementById("root")).render(b.jsx(S.StrictMode,{children:b.jsx(Dre,{})}));
|