intlayer-editor 5.5.3 → 5.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/dist/assets/{index-BzNPiBRX.js → index-Yc-vRZFR.js} +2 -2
- package/client/dist/index.html +1 -1
- package/package.json +25 -25
- package/server/dist/controllers/configuration.controller.cjs.map +1 -0
- package/server/dist/controllers/configuration.controller.d.ts.map +1 -0
- package/server/dist/controllers/configuration.controller.mjs.map +1 -0
- package/server/dist/controllers/dictionary.controller.cjs.map +1 -0
- package/server/dist/controllers/dictionary.controller.d.ts.map +1 -0
- package/server/dist/controllers/dictionary.controller.mjs.map +1 -0
- package/server/dist/export.cjs.map +1 -0
- package/server/dist/export.d.ts.map +1 -0
- package/server/dist/export.mjs.map +1 -0
- package/server/dist/index.cjs.map +1 -0
- package/server/dist/{types/index.d.ts.map → index.d.ts.map} +1 -1
- package/server/dist/index.mjs.map +1 -0
- package/server/dist/routes/config.routes.cjs.map +1 -0
- package/server/dist/routes/config.routes.d.ts.map +1 -0
- package/server/dist/routes/config.routes.mjs.map +1 -0
- package/server/dist/routes/dictionary.routes.cjs.map +1 -0
- package/server/dist/routes/dictionary.routes.d.ts.map +1 -0
- package/server/dist/routes/dictionary.routes.mjs.map +1 -0
- package/server/dist/types/Routes.cjs.map +1 -0
- package/server/dist/types/Routes.d.ts.map +1 -0
- package/server/dist/utils/checkPortAvailability.cjs.map +1 -0
- package/server/dist/utils/checkPortAvailability.d.ts.map +1 -0
- package/server/dist/utils/checkPortAvailability.mjs.map +1 -0
- package/server/dist/utils/httpStatusCodes.cjs.map +1 -0
- package/server/dist/utils/httpStatusCodes.d.ts.map +1 -0
- package/server/dist/utils/httpStatusCodes.mjs.map +1 -0
- package/server/dist/utils/responseData.cjs.map +1 -0
- package/server/dist/utils/responseData.d.ts.map +1 -0
- package/server/dist/utils/responseData.mjs.map +1 -0
- package/server/dist/cjs/controllers/configuration.controller.cjs.map +0 -1
- package/server/dist/cjs/controllers/dictionary.controller.cjs.map +0 -1
- package/server/dist/cjs/export.cjs.map +0 -1
- package/server/dist/cjs/index.cjs.map +0 -1
- package/server/dist/cjs/routes/config.routes.cjs.map +0 -1
- package/server/dist/cjs/routes/dictionary.routes.cjs.map +0 -1
- package/server/dist/cjs/types/Routes.cjs.map +0 -1
- package/server/dist/cjs/utils/checkPortAvailability.cjs.map +0 -1
- package/server/dist/cjs/utils/httpStatusCodes.cjs.map +0 -1
- package/server/dist/cjs/utils/responseData.cjs.map +0 -1
- package/server/dist/esm/controllers/configuration.controller.mjs.map +0 -1
- package/server/dist/esm/controllers/dictionary.controller.mjs.map +0 -1
- package/server/dist/esm/export.mjs.map +0 -1
- package/server/dist/esm/index.mjs.map +0 -1
- package/server/dist/esm/routes/config.routes.mjs.map +0 -1
- package/server/dist/esm/routes/dictionary.routes.mjs.map +0 -1
- package/server/dist/esm/utils/checkPortAvailability.mjs.map +0 -1
- package/server/dist/esm/utils/httpStatusCodes.mjs.map +0 -1
- package/server/dist/esm/utils/responseData.mjs.map +0 -1
- package/server/dist/types/controllers/configuration.controller.d.ts.map +0 -1
- package/server/dist/types/controllers/dictionary.controller.d.ts.map +0 -1
- package/server/dist/types/export.d.ts.map +0 -1
- package/server/dist/types/routes/config.routes.d.ts.map +0 -1
- package/server/dist/types/routes/dictionary.routes.d.ts.map +0 -1
- package/server/dist/types/types/Routes.d.ts.map +0 -1
- package/server/dist/types/utils/checkPortAvailability.d.ts.map +0 -1
- package/server/dist/types/utils/httpStatusCodes.d.ts.map +0 -1
- package/server/dist/types/utils/responseData.d.ts.map +0 -1
- /package/server/dist/{cjs/controllers → controllers}/configuration.controller.cjs +0 -0
- /package/server/dist/{types/controllers → controllers}/configuration.controller.d.ts +0 -0
- /package/server/dist/{esm/controllers → controllers}/configuration.controller.mjs +0 -0
- /package/server/dist/{cjs/controllers → controllers}/dictionary.controller.cjs +0 -0
- /package/server/dist/{types/controllers → controllers}/dictionary.controller.d.ts +0 -0
- /package/server/dist/{esm/controllers → controllers}/dictionary.controller.mjs +0 -0
- /package/server/dist/{cjs/export.cjs → export.cjs} +0 -0
- /package/server/dist/{types/export.d.ts → export.d.ts} +0 -0
- /package/server/dist/{esm/export.mjs → export.mjs} +0 -0
- /package/server/dist/{cjs/index.cjs → index.cjs} +0 -0
- /package/server/dist/{types/index.d.ts → index.d.ts} +0 -0
- /package/server/dist/{esm/index.mjs → index.mjs} +0 -0
- /package/server/dist/{cjs/routes → routes}/config.routes.cjs +0 -0
- /package/server/dist/{types/routes → routes}/config.routes.d.ts +0 -0
- /package/server/dist/{esm/routes → routes}/config.routes.mjs +0 -0
- /package/server/dist/{cjs/routes → routes}/dictionary.routes.cjs +0 -0
- /package/server/dist/{types/routes → routes}/dictionary.routes.d.ts +0 -0
- /package/server/dist/{esm/routes → routes}/dictionary.routes.mjs +0 -0
- /package/server/dist/{cjs/types → types}/Routes.cjs +0 -0
- /package/server/dist/types/{types/Routes.d.ts → Routes.d.ts} +0 -0
- /package/server/dist/{esm/types → types}/Routes.mjs +0 -0
- /package/server/dist/{esm/types → types}/Routes.mjs.map +0 -0
- /package/server/dist/{cjs/utils → utils}/checkPortAvailability.cjs +0 -0
- /package/server/dist/{types/utils → utils}/checkPortAvailability.d.ts +0 -0
- /package/server/dist/{esm/utils → utils}/checkPortAvailability.mjs +0 -0
- /package/server/dist/{cjs/utils → utils}/httpStatusCodes.cjs +0 -0
- /package/server/dist/{types/utils → utils}/httpStatusCodes.d.ts +0 -0
- /package/server/dist/{esm/utils → utils}/httpStatusCodes.mjs +0 -0
- /package/server/dist/{cjs/utils → utils}/responseData.cjs +0 -0
- /package/server/dist/{types/utils → utils}/responseData.d.ts +0 -0
- /package/server/dist/{esm/utils → utils}/responseData.mjs +0 -0
|
@@ -47,8 +47,8 @@ var eM=Object.defineProperty;var tM=(e,t,n)=>t in e?eM(e,t,{enumerable:!0,config
|
|
|
47
47
|
`+j[h].replace(" at new "," at ");return i.displayName&&se.includes("<anonymous>")&&(se=se.replace("<anonymous>",i.displayName)),se}while(1<=h&&0<=p);break}}}finally{Z=!1,Error.prepareStackTrace=c}return(c=i?i.displayName||i.name:"")?fe(c):""}function F(i){switch(i.tag){case 26:case 27:case 5:return fe(i.type);case 16:return fe("Lazy");case 13:return fe("Suspense");case 19:return fe("SuspenseList");case 0:case 15:return i=ee(i.type,!1),i;case 11:return i=ee(i.type.render,!1),i;case 1:return i=ee(i.type,!0),i;default:return""}}function ne(i){try{var s="";do s+=F(i),i=i.return;while(i);return s}catch(c){return`
|
|
48
48
|
Error generating stack: `+c.message+`
|
|
49
49
|
`+c.stack}}function q(i){var s=i,c=i;if(i.alternate)for(;s.return;)s=s.return;else{i=s;do s=i,(s.flags&4098)!==0&&(c=s.return),i=s.return;while(i)}return s.tag===3?c:null}function ge(i){if(i.tag===13){var s=i.memoizedState;if(s===null&&(i=i.alternate,i!==null&&(s=i.memoizedState)),s!==null)return s.dehydrated}return null}function P(i){if(q(i)!==i)throw Error(r(188))}function X(i){var s=i.alternate;if(!s){if(s=q(i),s===null)throw Error(r(188));return s!==i?null:i}for(var c=i,h=s;;){var p=c.return;if(p===null)break;var _=p.alternate;if(_===null){if(h=p.return,h!==null){c=h;continue}break}if(p.child===_.child){for(_=p.child;_;){if(_===c)return P(p),i;if(_===h)return P(p),s;_=_.sibling}throw Error(r(188))}if(c.return!==h.return)c=p,h=_;else{for(var C=!1,k=p.child;k;){if(k===c){C=!0,c=p,h=_;break}if(k===h){C=!0,h=p,c=_;break}k=k.sibling}if(!C){for(k=_.child;k;){if(k===c){C=!0,c=_,h=p;break}if(k===h){C=!0,h=_,c=p;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:s}function H(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i;for(i=i.child;i!==null;){if(s=H(i),s!==null)return s;i=i.sibling}return null}var Q=Array.isArray,re=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,he={pending:!1,data:null,method:null,action:null},xe=[],le=-1;function Ee(i){return{current:i}}function De(i){0>le||(i.current=xe[le],xe[le]=null,le--)}function Ce(i,s){le++,xe[le]=i.current,i.current=s}var Fe=Ee(null),Ke=Ee(null),Et=Ee(null),Yt=Ee(null);function Ln(i,s){switch(Ce(Et,s),Ce(Ke,i),Ce(Fe,null),i=s.nodeType,i){case 9:case 11:s=(s=s.documentElement)&&(s=s.namespaceURI)?EE(s):0;break;default:if(i=i===8?s.parentNode:s,s=i.tagName,i=i.namespaceURI)i=EE(i),s=SE(i,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}De(Fe),Ce(Fe,s)}function Cn(){De(Fe),De(Ke),De(Et)}function pr(i){i.memoizedState!==null&&Ce(Yt,i);var s=Fe.current,c=SE(s,i.type);s!==c&&(Ce(Ke,i),Ce(Fe,c))}function Na(i){Ke.current===i&&(De(Fe),De(Ke)),Yt.current===i&&(De(Yt),$l._currentValue=he)}var gr=Object.prototype.hasOwnProperty,z=e.unstable_scheduleCallback,J=e.unstable_cancelCallback,oe=e.unstable_shouldYield,we=e.unstable_requestPaint,be=e.unstable_now,_e=e.unstable_getCurrentPriorityLevel,Pe=e.unstable_ImmediatePriority,ct=e.unstable_UserBlockingPriority,ht=e.unstable_NormalPriority,Rn=e.unstable_LowPriority,ka=e.unstable_IdlePriority,Or=e.log,Hh=e.unstable_setDisableYieldValue,ei=null,rn=null;function Fh(i){if(rn&&typeof rn.onCommitFiberRoot=="function")try{rn.onCommitFiberRoot(ei,i,void 0,(i.current.flags&128)===128)}catch{}}function yr(i){if(typeof Or=="function"&&Hh(i),rn&&typeof rn.setStrictMode=="function")try{rn.setStrictMode(ei,i)}catch{}}var _n=Math.clz32?Math.clz32:UD,yu=Math.log,zD=Math.LN2;function UD(i){return i>>>=0,i===0?32:31-(yu(i)/zD|0)|0}var vu=128,bu=4194304;function Oa(i){var s=i&42;if(s!==0)return s;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 _u(i,s){var c=i.pendingLanes;if(c===0)return 0;var h=0,p=i.suspendedLanes,_=i.pingedLanes,C=i.warmLanes;i=i.finishedLanes!==0;var k=c&134217727;return k!==0?(c=k&~p,c!==0?h=Oa(c):(_&=k,_!==0?h=Oa(_):i||(C=k&~C,C!==0&&(h=Oa(C))))):(k=c&~p,k!==0?h=Oa(k):_!==0?h=Oa(_):i||(C=c&~C,C!==0&&(h=Oa(C)))),h===0?0:s!==0&&s!==h&&(s&p)===0&&(p=h&-h,C=s&-s,p>=C||p===32&&(C&4194176)!==0)?s:h}function tl(i,s){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&s)===0}function HD(i,s){switch(i){case 1:case 2:case 4:case 8:return s+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 s+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 m_(){var i=vu;return vu<<=1,(vu&4194176)===0&&(vu=128),i}function p_(){var i=bu;return bu<<=1,(bu&62914560)===0&&(bu=4194304),i}function Gh(i){for(var s=[],c=0;31>c;c++)s.push(i);return s}function nl(i,s){i.pendingLanes|=s,s!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function FD(i,s,c,h,p,_){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,j=i.expirationTimes,$=i.hiddenUpdates;for(c=C&~c;0<c;){var se=31-_n(c),me=1<<se;k[se]=0,j[se]=-1;var te=$[se];if(te!==null)for($[se]=null,se=0;se<te.length;se++){var ae=te[se];ae!==null&&(ae.lane&=-536870913)}c&=~me}h!==0&&g_(i,h,0),_!==0&&p===0&&i.tag!==0&&(i.suspendedLanes|=_&~(C&~s))}function g_(i,s,c){i.pendingLanes|=s,i.suspendedLanes&=~s;var h=31-_n(s);i.entangledLanes|=s,i.entanglements[h]=i.entanglements[h]|1073741824|c&4194218}function y_(i,s){var c=i.entangledLanes|=s;for(i=i.entanglements;c;){var h=31-_n(c),p=1<<h;p&s|i[h]&s&&(i[h]|=s),c&=~p}}function v_(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function b_(){var i=re.p;return i!==0?i:(i=window.event,i===void 0?32:UE(i.type))}function GD(i,s){var c=re.p;try{return re.p=i,s()}finally{re.p=c}}var Li=Math.random().toString(36).slice(2),fn="__reactFiber$"+Li,Nn="__reactProps$"+Li,Ss="__reactContainer$"+Li,$h="__reactEvents$"+Li,$D="__reactListeners$"+Li,qD="__reactHandles$"+Li,__="__reactResources$"+Li,rl="__reactMarker$"+Li;function qh(i){delete i[fn],delete i[Nn],delete i[$h],delete i[$D],delete i[qD]}function Da(i){var s=i[fn];if(s)return s;for(var c=i.parentNode;c;){if(s=c[Ss]||c[fn]){if(c=s.alternate,s.child!==null||c!==null&&c.child!==null)for(i=TE(i);i!==null;){if(c=i[fn])return c;i=TE(i)}return s}i=c,c=i.parentNode}return null}function As(i){if(i=i[fn]||i[Ss]){var s=i.tag;if(s===5||s===6||s===13||s===26||s===27||s===3)return i}return null}function il(i){var s=i.tag;if(s===5||s===26||s===27||s===6)return i.stateNode;throw Error(r(33))}function ws(i){var s=i[__];return s||(s=i[__]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function Zt(i){i[rl]=!0}var x_=new Set,E_={};function Ia(i,s){Ts(i,s),Ts(i+"Capture",s)}function Ts(i,s){for(E_[i]=s,i=0;i<s.length;i++)x_.add(s[i])}var ti=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),KD=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]*$"),S_={},A_={};function WD(i){return gr.call(A_,i)?!0:gr.call(S_,i)?!1:KD.test(i)?A_[i]=!0:(S_[i]=!0,!1)}function xu(i,s,c){if(WD(s))if(c===null)i.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":i.removeAttribute(s);return;case"boolean":var h=s.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){i.removeAttribute(s);return}}i.setAttribute(s,""+c)}}function Eu(i,s,c){if(c===null)i.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(s);return}i.setAttribute(s,""+c)}}function ni(i,s,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(s,c,""+h)}}function Kn(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function w_(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function YD(i){var s=w_(i)?"checked":"value",c=Object.getOwnPropertyDescriptor(i.constructor.prototype,s),h=""+i[s];if(!i.hasOwnProperty(s)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var p=c.get,_=c.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return p.call(this)},set:function(C){h=""+C,_.call(this,C)}}),Object.defineProperty(i,s,{enumerable:c.enumerable}),{getValue:function(){return h},setValue:function(C){h=""+C},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function Su(i){i._valueTracker||(i._valueTracker=YD(i))}function T_(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var c=s.getValue(),h="";return i&&(h=w_(i)?i.checked?"true":"false":i.value),i=h,i!==c?(s.setValue(i),!0):!1}function Au(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 ZD=/[\n"\\]/g;function Wn(i){return i.replace(ZD,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function Kh(i,s,c,h,p,_,C,k){i.name="",C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?i.type=C:i.removeAttribute("type"),s!=null?C==="number"?(s===0&&i.value===""||i.value!=s)&&(i.value=""+Kn(s)):i.value!==""+Kn(s)&&(i.value=""+Kn(s)):C!=="submit"&&C!=="reset"||i.removeAttribute("value"),s!=null?Wh(i,C,Kn(s)):c!=null?Wh(i,C,Kn(c)):h!=null&&i.removeAttribute("value"),p==null&&_!=null&&(i.defaultChecked=!!_),p!=null&&(i.checked=p&&typeof p!="function"&&typeof p!="symbol"),k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?i.name=""+Kn(k):i.removeAttribute("name")}function C_(i,s,c,h,p,_,C,k){if(_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"&&(i.type=_),s!=null||c!=null){if(!(_!=="submit"&&_!=="reset"||s!=null))return;c=c!=null?""+Kn(c):"",s=s!=null?""+Kn(s):c,k||s===i.value||(i.value=s),i.defaultValue=s}h=h??p,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,s,c){s==="number"&&Au(i.ownerDocument)===i||i.defaultValue===""+c||(i.defaultValue=""+c)}function Cs(i,s,c,h){if(i=i.options,s){s={};for(var p=0;p<c.length;p++)s["$"+c[p]]=!0;for(c=0;c<i.length;c++)p=s.hasOwnProperty("$"+i[c].value),i[c].selected!==p&&(i[c].selected=p),p&&h&&(i[c].defaultSelected=!0)}else{for(c=""+Kn(c),s=null,p=0;p<i.length;p++){if(i[p].value===c){i[p].selected=!0,h&&(i[p].defaultSelected=!0);return}s!==null||i[p].disabled||(s=i[p])}s!==null&&(s.selected=!0)}}function R_(i,s,c){if(s!=null&&(s=""+Kn(s),s!==i.value&&(i.value=s),c==null)){i.defaultValue!==s&&(i.defaultValue=s);return}i.defaultValue=c!=null?""+Kn(c):""}function N_(i,s,c,h){if(s==null){if(h!=null){if(c!=null)throw Error(r(92));if(Q(h)){if(1<h.length)throw Error(r(93));h=h[0]}c=h}c==null&&(c=""),s=c}c=Kn(s),i.defaultValue=c,h=i.textContent,h===c&&h!==""&&h!==null&&(i.value=h)}function Rs(i,s){if(s){var c=i.firstChild;if(c&&c===i.lastChild&&c.nodeType===3){c.nodeValue=s;return}}i.textContent=s}var XD=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 k_(i,s,c){var h=s.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?h?i.setProperty(s,""):s==="float"?i.cssFloat="":i[s]="":h?i.setProperty(s,c):typeof c!="number"||c===0||XD.has(s)?s==="float"?i.cssFloat=c:i[s]=(""+c).trim():i[s]=c+"px"}function O_(i,s,c){if(s!=null&&typeof s!="object")throw Error(r(62));if(i=i.style,c!=null){for(var h in c)!c.hasOwnProperty(h)||s!=null&&s.hasOwnProperty(h)||(h.indexOf("--")===0?i.setProperty(h,""):h==="float"?i.cssFloat="":i[h]="");for(var p in s)h=s[p],s.hasOwnProperty(p)&&c[p]!==h&&k_(i,p,h)}else for(var _ in s)s.hasOwnProperty(_)&&k_(i,_,s[_])}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 QD=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"]]),JD=/^[\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 wu(i){return JD.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}var Zh=null;function Xh(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Ns=null,ks=null;function D_(i){var s=As(i);if(s&&(i=s.stateNode)){var c=i[Nn]||null;e:switch(i=s.stateNode,s.type){case"input":if(Kh(i,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),s=c.name,c.type==="radio"&&s!=null){for(c=i;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+Wn(""+s)+'"][type="radio"]'),s=0;s<c.length;s++){var h=c[s];if(h!==i&&h.form===i.form){var p=h[Nn]||null;if(!p)throw Error(r(90));Kh(h,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(s=0;s<c.length;s++)h=c[s],h.form===i.form&&T_(h)}break e;case"textarea":R_(i,c.value,c.defaultValue);break e;case"select":s=c.value,s!=null&&Cs(i,!!c.multiple,s,!1)}}}var Qh=!1;function I_(i,s,c){if(Qh)return i(s,c);Qh=!0;try{var h=i(s);return h}finally{if(Qh=!1,(Ns!==null||ks!==null)&&(ld(),Ns&&(s=Ns,i=ks,ks=Ns=null,D_(s),i)))for(s=0;s<i.length;s++)D_(i[s])}}function al(i,s){var c=i.stateNode;if(c===null)return null;var h=c[Nn]||null;if(h===null)return null;c=h[s];e:switch(s){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,s,typeof c));return c}var Jh=!1;if(ti)try{var sl={};Object.defineProperty(sl,"passive",{get:function(){Jh=!0}}),window.addEventListener("test",sl,sl),window.removeEventListener("test",sl,sl)}catch{Jh=!1}var Mi=null,em=null,Tu=null;function L_(){if(Tu)return Tu;var i,s=em,c=s.length,h,p="value"in Mi?Mi.value:Mi.textContent,_=p.length;for(i=0;i<c&&s[i]===p[i];i++);var C=c-i;for(h=1;h<=C&&s[c-h]===p[_-h];h++);return Tu=p.slice(i,1<h?1-h:void 0)}function Cu(i){var s=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&s===13&&(i=13)):i=s,i===10&&(i=13),32<=i||i===13?i:0}function Ru(){return!0}function M_(){return!1}function kn(i){function s(c,h,p,_,C){this._reactName=c,this._targetInst=p,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)?Ru:M_,this.isPropagationStopped=M_,this}return U(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=Ru)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=Ru)},persist:function(){},isPersistent:Ru}),s}var La={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nu=kn(La),ol=U({},La,{view:0,detail:0}),eI=kn(ol),tm,nm,ll,ku=U({},ol,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:im,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!==ll&&(ll&&i.type==="mousemove"?(tm=i.screenX-ll.screenX,nm=i.screenY-ll.screenY):nm=tm=0,ll=i),tm)},movementY:function(i){return"movementY"in i?i.movementY:nm}}),j_=kn(ku),tI=U({},ku,{dataTransfer:0}),nI=kn(tI),rI=U({},ol,{relatedTarget:0}),rm=kn(rI),iI=U({},La,{animationName:0,elapsedTime:0,pseudoElement:0}),aI=kn(iI),sI=U({},La,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),oI=kn(sI),lI=U({},La,{data:0}),P_=kn(lI),cI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},uI={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"},dI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fI(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=dI[i])?!!s[i]:!1}function im(){return fI}var hI=U({},ol,{key:function(i){if(i.key){var s=cI[i.key]||i.key;if(s!=="Unidentified")return s}return i.type==="keypress"?(i=Cu(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?uI[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:im,charCode:function(i){return i.type==="keypress"?Cu(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Cu(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),mI=kn(hI),pI=U({},ku,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),V_=kn(pI),gI=U({},ol,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:im}),yI=kn(gI),vI=U({},La,{propertyName:0,elapsedTime:0,pseudoElement:0}),bI=kn(vI),_I=U({},ku,{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}),xI=kn(_I),EI=U({},La,{newState:0,oldState:0}),SI=kn(EI),AI=[9,13,27,32],am=ti&&"CompositionEvent"in window,cl=null;ti&&"documentMode"in document&&(cl=document.documentMode);var wI=ti&&"TextEvent"in window&&!cl,B_=ti&&(!am||cl&&8<cl&&11>=cl),z_=" ",U_=!1;function H_(i,s){switch(i){case"keyup":return AI.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function F_(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Os=!1;function TI(i,s){switch(i){case"compositionend":return F_(s);case"keypress":return s.which!==32?null:(U_=!0,z_);case"textInput":return i=s.data,i===z_&&U_?null:i;default:return null}}function CI(i,s){if(Os)return i==="compositionend"||!am&&H_(i,s)?(i=L_(),Tu=em=Mi=null,Os=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return B_&&s.locale!=="ko"?null:s.data;default:return null}}var RI={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 G_(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!RI[i.type]:s==="textarea"}function $_(i,s,c,h){Ns?ks?ks.push(h):ks=[h]:Ns=h,s=hd(s,"onChange"),0<s.length&&(c=new Nu("onChange","change",null,c,h),i.push({event:c,listeners:s}))}var ul=null,dl=null;function NI(i){yE(i,0)}function Ou(i){var s=il(i);if(T_(s))return i}function q_(i,s){if(i==="change")return s}var K_=!1;if(ti){var sm;if(ti){var om="oninput"in document;if(!om){var W_=document.createElement("div");W_.setAttribute("oninput","return;"),om=typeof W_.oninput=="function"}sm=om}else sm=!1;K_=sm&&(!document.documentMode||9<document.documentMode)}function Y_(){ul&&(ul.detachEvent("onpropertychange",Z_),dl=ul=null)}function Z_(i){if(i.propertyName==="value"&&Ou(dl)){var s=[];$_(s,dl,i,Xh(i)),I_(NI,s)}}function kI(i,s,c){i==="focusin"?(Y_(),ul=s,dl=c,ul.attachEvent("onpropertychange",Z_)):i==="focusout"&&Y_()}function OI(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Ou(dl)}function DI(i,s){if(i==="click")return Ou(s)}function II(i,s){if(i==="input"||i==="change")return Ou(s)}function LI(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}var Mn=typeof Object.is=="function"?Object.is:LI;function fl(i,s){if(Mn(i,s))return!0;if(typeof i!="object"||i===null||typeof s!="object"||s===null)return!1;var c=Object.keys(i),h=Object.keys(s);if(c.length!==h.length)return!1;for(h=0;h<c.length;h++){var p=c[h];if(!gr.call(s,p)||!Mn(i[p],s[p]))return!1}return!0}function X_(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function Q_(i,s){var c=X_(i);i=0;for(var h;c;){if(c.nodeType===3){if(h=i+c.textContent.length,i<=s&&h>=s)return{node:c,offset:s-i};i=h}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=X_(c)}}function J_(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?J_(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function e0(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var s=Au(i.document);s instanceof i.HTMLIFrameElement;){try{var c=typeof s.contentWindow.location.href=="string"}catch{c=!1}if(c)i=s.contentWindow;else break;s=Au(i.document)}return s}function lm(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}function MI(i,s){var c=e0(s);s=i.focusedElem;var h=i.selectionRange;if(c!==s&&s&&s.ownerDocument&&J_(s.ownerDocument.documentElement,s)){if(h!==null&&lm(s)){if(i=h.start,c=h.end,c===void 0&&(c=i),"selectionStart"in s)s.selectionStart=i,s.selectionEnd=Math.min(c,s.value.length);else if(c=(i=s.ownerDocument||document)&&i.defaultView||window,c.getSelection){c=c.getSelection();var p=s.textContent.length,_=Math.min(h.start,p);h=h.end===void 0?_:Math.min(h.end,p),!c.extend&&_>h&&(p=h,h=_,_=p),p=Q_(s,_);var C=Q_(s,h);p&&C&&(c.rangeCount!==1||c.anchorNode!==p.node||c.anchorOffset!==p.offset||c.focusNode!==C.node||c.focusOffset!==C.offset)&&(i=i.createRange(),i.setStart(p.node,p.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=s;c=c.parentNode;)c.nodeType===1&&i.push({element:c,left:c.scrollLeft,top:c.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<i.length;s++)c=i[s],c.element.scrollLeft=c.left,c.element.scrollTop=c.top}}var jI=ti&&"documentMode"in document&&11>=document.documentMode,Ds=null,cm=null,hl=null,um=!1;function t0(i,s,c){var h=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;um||Ds==null||Ds!==Au(h)||(h=Ds,"selectionStart"in h&&lm(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}),hl&&fl(hl,h)||(hl=h,h=hd(cm,"onSelect"),0<h.length&&(s=new Nu("onSelect","select",null,s,c),i.push({event:s,listeners:h}),s.target=Ds)))}function Ma(i,s){var c={};return c[i.toLowerCase()]=s.toLowerCase(),c["Webkit"+i]="webkit"+s,c["Moz"+i]="moz"+s,c}var Is={animationend:Ma("Animation","AnimationEnd"),animationiteration:Ma("Animation","AnimationIteration"),animationstart:Ma("Animation","AnimationStart"),transitionrun:Ma("Transition","TransitionRun"),transitionstart:Ma("Transition","TransitionStart"),transitioncancel:Ma("Transition","TransitionCancel"),transitionend:Ma("Transition","TransitionEnd")},dm={},n0={};ti&&(n0=document.createElement("div").style,"AnimationEvent"in window||(delete Is.animationend.animation,delete Is.animationiteration.animation,delete Is.animationstart.animation),"TransitionEvent"in window||delete Is.transitionend.transition);function ja(i){if(dm[i])return dm[i];if(!Is[i])return i;var s=Is[i],c;for(c in s)if(s.hasOwnProperty(c)&&c in n0)return dm[i]=s[c];return i}var r0=ja("animationend"),i0=ja("animationiteration"),a0=ja("animationstart"),PI=ja("transitionrun"),VI=ja("transitionstart"),BI=ja("transitioncancel"),s0=ja("transitionend"),o0=new Map,l0="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 vr(i,s){o0.set(i,s),Ia(s,[i])}var Yn=[],Ls=0,fm=0;function Du(){for(var i=Ls,s=fm=Ls=0;s<i;){var c=Yn[s];Yn[s++]=null;var h=Yn[s];Yn[s++]=null;var p=Yn[s];Yn[s++]=null;var _=Yn[s];if(Yn[s++]=null,h!==null&&p!==null){var C=h.pending;C===null?p.next=p:(p.next=C.next,C.next=p),h.pending=p}_!==0&&c0(c,p,_)}}function Iu(i,s,c,h){Yn[Ls++]=i,Yn[Ls++]=s,Yn[Ls++]=c,Yn[Ls++]=h,fm|=h,i.lanes|=h,i=i.alternate,i!==null&&(i.lanes|=h)}function hm(i,s,c,h){return Iu(i,s,c,h),Lu(i)}function ji(i,s){return Iu(i,null,null,s),Lu(i)}function c0(i,s,c){i.lanes|=c;var h=i.alternate;h!==null&&(h.lanes|=c);for(var p=!1,_=i.return;_!==null;)_.childLanes|=c,h=_.alternate,h!==null&&(h.childLanes|=c),_.tag===22&&(i=_.stateNode,i===null||i._visibility&1||(p=!0)),i=_,_=_.return;p&&s!==null&&i.tag===3&&(_=i.stateNode,p=31-_n(c),_=_.hiddenUpdates,i=_[p],i===null?_[p]=[s]:i.push(s),s.lane=c|536870912)}function Lu(i){if(50<Vl)throw Vl=0,bp=null,Error(r(185));for(var s=i.return;s!==null;)i=s,s=i.return;return i.tag===3?i.stateNode:null}var Ms={},u0=new WeakMap;function Zn(i,s){if(typeof i=="object"&&i!==null){var c=u0.get(i);return c!==void 0?c:(s={value:i,source:s,stack:ne(s)},u0.set(i,s),s)}return{value:i,source:s,stack:ne(s)}}var js=[],Ps=0,Mu=null,ju=0,Xn=[],Qn=0,Pa=null,ri=1,ii="";function Va(i,s){js[Ps++]=ju,js[Ps++]=Mu,Mu=i,ju=s}function d0(i,s,c){Xn[Qn++]=ri,Xn[Qn++]=ii,Xn[Qn++]=Pa,Pa=i;var h=ri;i=ii;var p=32-_n(h)-1;h&=~(1<<p),c+=1;var _=32-_n(s)+p;if(30<_){var C=p-p%5;_=(h&(1<<C)-1).toString(32),h>>=C,p-=C,ri=1<<32-_n(s)+p|c<<p|h,ii=_+i}else ri=1<<_|c<<p|h,ii=i}function mm(i){i.return!==null&&(Va(i,1),d0(i,1,0))}function pm(i){for(;i===Mu;)Mu=js[--Ps],js[Ps]=null,ju=js[--Ps],js[Ps]=null;for(;i===Pa;)Pa=Xn[--Qn],Xn[Qn]=null,ii=Xn[--Qn],Xn[Qn]=null,ri=Xn[--Qn],Xn[Qn]=null}var xn=null,an=null,ut=!1,br=null,Dr=!1,gm=Error(r(519));function Ba(i){var s=Error(r(418,""));throw gl(Zn(s,i)),gm}function f0(i){var s=i.stateNode,c=i.type,h=i.memoizedProps;switch(s[fn]=i,s[Nn]=h,c){case"dialog":at("cancel",s),at("close",s);break;case"iframe":case"object":case"embed":at("load",s);break;case"video":case"audio":for(c=0;c<zl.length;c++)at(zl[c],s);break;case"source":at("error",s);break;case"img":case"image":case"link":at("error",s),at("load",s);break;case"details":at("toggle",s);break;case"input":at("invalid",s),C_(s,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0),Su(s);break;case"select":at("invalid",s);break;case"textarea":at("invalid",s),N_(s,h.value,h.defaultValue,h.children),Su(s)}c=h.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||s.textContent===""+c||h.suppressHydrationWarning===!0||xE(s.textContent,c)?(h.popover!=null&&(at("beforetoggle",s),at("toggle",s)),h.onScroll!=null&&at("scroll",s),h.onScrollEnd!=null&&at("scrollend",s),h.onClick!=null&&(s.onclick=md),s=!0):s=!1,s||Ba(i)}function h0(i){for(xn=i.return;xn;)switch(xn.tag){case 3:case 27:Dr=!0;return;case 5:case 13:Dr=!1;return;default:xn=xn.return}}function ml(i){if(i!==xn)return!1;if(!ut)return h0(i),ut=!0,!1;var s=!1,c;if((c=i.tag!==3&&i.tag!==27)&&((c=i.tag===5)&&(c=i.type,c=!(c!=="form"&&c!=="button")||jp(i.type,i.memoizedProps)),c=!c),c&&(s=!0),s&&an&&Ba(i),h0(i),i.tag===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));e:{for(i=i.nextSibling,s=0;i;){if(i.nodeType===8)if(c=i.data,c==="/$"){if(s===0){an=xr(i.nextSibling);break e}s--}else c!=="$"&&c!=="$!"&&c!=="$?"||s++;i=i.nextSibling}an=null}}else an=xn?xr(i.stateNode.nextSibling):null;return!0}function pl(){an=xn=null,ut=!1}function gl(i){br===null?br=[i]:br.push(i)}var yl=Error(r(460)),m0=Error(r(474)),ym={then:function(){}};function p0(i){return i=i.status,i==="fulfilled"||i==="rejected"}function Pu(){}function g0(i,s,c){switch(c=i[c],c===void 0?i.push(s):c!==s&&(s.then(Pu,Pu),s=c),s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,i===yl?Error(r(483)):i;default:if(typeof s.status=="string")s.then(Pu,Pu);else{if(i=bt,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=s,i.status="pending",i.then(function(h){if(s.status==="pending"){var p=s;p.status="fulfilled",p.value=h}},function(h){if(s.status==="pending"){var p=s;p.status="rejected",p.reason=h}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw i=s.reason,i===yl?Error(r(483)):i}throw vl=s,yl}}var vl=null;function y0(){if(vl===null)throw Error(r(459));var i=vl;return vl=null,i}var Vs=null,bl=0;function Vu(i){var s=bl;return bl+=1,Vs===null&&(Vs=[]),g0(Vs,i,s)}function _l(i,s){s=s.props.ref,i.ref=s!==void 0?s:null}function Bu(i,s){throw s.$$typeof===o?Error(r(525)):(i=Object.prototype.toString.call(s),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":i)))}function v0(i){var s=i._init;return s(i._payload)}function b0(i){function s(W,G){if(i){var Y=W.deletions;Y===null?(W.deletions=[G],W.flags|=16):Y.push(G)}}function c(W,G){if(!i)return null;for(;G!==null;)s(W,G),G=G.sibling;return null}function h(W){for(var G=new Map;W!==null;)W.key!==null?G.set(W.key,W):G.set(W.index,W),W=W.sibling;return G}function p(W,G){return W=Wi(W,G),W.index=0,W.sibling=null,W}function _(W,G,Y){return W.index=Y,i?(Y=W.alternate,Y!==null?(Y=Y.index,Y<G?(W.flags|=33554434,G):Y):(W.flags|=33554434,G)):(W.flags|=1048576,G)}function C(W){return i&&W.alternate===null&&(W.flags|=33554434),W}function k(W,G,Y,de){return G===null||G.tag!==6?(G=dp(Y,W.mode,de),G.return=W,G):(G=p(G,Y),G.return=W,G)}function j(W,G,Y,de){var Re=Y.type;return Re===d?se(W,G,Y.props.children,de,Y.key):G!==null&&(G.elementType===Re||typeof Re=="object"&&Re!==null&&Re.$$typeof===T&&v0(Re)===G.type)?(G=p(G,Y.props),_l(G,Y),G.return=W,G):(G=rd(Y.type,Y.key,Y.props,null,W.mode,de),_l(G,Y),G.return=W,G)}function $(W,G,Y,de){return G===null||G.tag!==4||G.stateNode.containerInfo!==Y.containerInfo||G.stateNode.implementation!==Y.implementation?(G=fp(Y,W.mode,de),G.return=W,G):(G=p(G,Y.children||[]),G.return=W,G)}function se(W,G,Y,de,Re){return G===null||G.tag!==7?(G=Ya(Y,W.mode,de,Re),G.return=W,G):(G=p(G,Y),G.return=W,G)}function me(W,G,Y){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return G=dp(""+G,W.mode,Y),G.return=W,G;if(typeof G=="object"&&G!==null){switch(G.$$typeof){case l:return Y=rd(G.type,G.key,G.props,null,W.mode,Y),_l(Y,G),Y.return=W,Y;case u:return G=fp(G,W.mode,Y),G.return=W,G;case T:var de=G._init;return G=de(G._payload),me(W,G,Y)}if(Q(G)||L(G))return G=Ya(G,W.mode,Y,null),G.return=W,G;if(typeof G.then=="function")return me(W,Vu(G),Y);if(G.$$typeof===v)return me(W,ed(W,G),Y);Bu(W,G)}return null}function te(W,G,Y,de){var Re=G!==null?G.key:null;if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return Re!==null?null:k(W,G,""+Y,de);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case l:return Y.key===Re?j(W,G,Y,de):null;case u:return Y.key===Re?$(W,G,Y,de):null;case T:return Re=Y._init,Y=Re(Y._payload),te(W,G,Y,de)}if(Q(Y)||L(Y))return Re!==null?null:se(W,G,Y,de,null);if(typeof Y.then=="function")return te(W,G,Vu(Y),de);if(Y.$$typeof===v)return te(W,G,ed(W,Y),de);Bu(W,Y)}return null}function ae(W,G,Y,de,Re){if(typeof de=="string"&&de!==""||typeof de=="number"||typeof de=="bigint")return W=W.get(Y)||null,k(G,W,""+de,Re);if(typeof de=="object"&&de!==null){switch(de.$$typeof){case l:return W=W.get(de.key===null?Y:de.key)||null,j(G,W,de,Re);case u:return W=W.get(de.key===null?Y:de.key)||null,$(G,W,de,Re);case T:var nt=de._init;return de=nt(de._payload),ae(W,G,Y,de,Re)}if(Q(de)||L(de))return W=W.get(Y)||null,se(G,W,de,Re,null);if(typeof de.then=="function")return ae(W,G,Y,Vu(de),Re);if(de.$$typeof===v)return ae(W,G,Y,ed(G,de),Re);Bu(G,de)}return null}function Me(W,G,Y,de){for(var Re=null,nt=null,Ve=G,Be=G=0,Jt=null;Ve!==null&&Be<Y.length;Be++){Ve.index>Be?(Jt=Ve,Ve=null):Jt=Ve.sibling;var dt=te(W,Ve,Y[Be],de);if(dt===null){Ve===null&&(Ve=Jt);break}i&&Ve&&dt.alternate===null&&s(W,Ve),G=_(dt,G,Be),nt===null?Re=dt:nt.sibling=dt,nt=dt,Ve=Jt}if(Be===Y.length)return c(W,Ve),ut&&Va(W,Be),Re;if(Ve===null){for(;Be<Y.length;Be++)Ve=me(W,Y[Be],de),Ve!==null&&(G=_(Ve,G,Be),nt===null?Re=Ve:nt.sibling=Ve,nt=Ve);return ut&&Va(W,Be),Re}for(Ve=h(Ve);Be<Y.length;Be++)Jt=ae(Ve,W,Be,Y[Be],de),Jt!==null&&(i&&Jt.alternate!==null&&Ve.delete(Jt.key===null?Be:Jt.key),G=_(Jt,G,Be),nt===null?Re=Jt:nt.sibling=Jt,nt=Jt);return i&&Ve.forEach(function(ta){return s(W,ta)}),ut&&Va(W,Be),Re}function $e(W,G,Y,de){if(Y==null)throw Error(r(151));for(var Re=null,nt=null,Ve=G,Be=G=0,Jt=null,dt=Y.next();Ve!==null&&!dt.done;Be++,dt=Y.next()){Ve.index>Be?(Jt=Ve,Ve=null):Jt=Ve.sibling;var ta=te(W,Ve,dt.value,de);if(ta===null){Ve===null&&(Ve=Jt);break}i&&Ve&&ta.alternate===null&&s(W,Ve),G=_(ta,G,Be),nt===null?Re=ta:nt.sibling=ta,nt=ta,Ve=Jt}if(dt.done)return c(W,Ve),ut&&Va(W,Be),Re;if(Ve===null){for(;!dt.done;Be++,dt=Y.next())dt=me(W,dt.value,de),dt!==null&&(G=_(dt,G,Be),nt===null?Re=dt:nt.sibling=dt,nt=dt);return ut&&Va(W,Be),Re}for(Ve=h(Ve);!dt.done;Be++,dt=Y.next())dt=ae(Ve,W,Be,dt.value,de),dt!==null&&(i&&dt.alternate!==null&&Ve.delete(dt.key===null?Be:dt.key),G=_(dt,G,Be),nt===null?Re=dt:nt.sibling=dt,nt=dt);return i&&Ve.forEach(function(JL){return s(W,JL)}),ut&&Va(W,Be),Re}function Dt(W,G,Y,de){if(typeof Y=="object"&&Y!==null&&Y.type===d&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case l:e:{for(var Re=Y.key;G!==null;){if(G.key===Re){if(Re=Y.type,Re===d){if(G.tag===7){c(W,G.sibling),de=p(G,Y.props.children),de.return=W,W=de;break e}}else if(G.elementType===Re||typeof Re=="object"&&Re!==null&&Re.$$typeof===T&&v0(Re)===G.type){c(W,G.sibling),de=p(G,Y.props),_l(de,Y),de.return=W,W=de;break e}c(W,G);break}else s(W,G);G=G.sibling}Y.type===d?(de=Ya(Y.props.children,W.mode,de,Y.key),de.return=W,W=de):(de=rd(Y.type,Y.key,Y.props,null,W.mode,de),_l(de,Y),de.return=W,W=de)}return C(W);case u:e:{for(Re=Y.key;G!==null;){if(G.key===Re)if(G.tag===4&&G.stateNode.containerInfo===Y.containerInfo&&G.stateNode.implementation===Y.implementation){c(W,G.sibling),de=p(G,Y.children||[]),de.return=W,W=de;break e}else{c(W,G);break}else s(W,G);G=G.sibling}de=fp(Y,W.mode,de),de.return=W,W=de}return C(W);case T:return Re=Y._init,Y=Re(Y._payload),Dt(W,G,Y,de)}if(Q(Y))return Me(W,G,Y,de);if(L(Y)){if(Re=L(Y),typeof Re!="function")throw Error(r(150));return Y=Re.call(Y),$e(W,G,Y,de)}if(typeof Y.then=="function")return Dt(W,G,Vu(Y),de);if(Y.$$typeof===v)return Dt(W,G,ed(W,Y),de);Bu(W,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,G!==null&&G.tag===6?(c(W,G.sibling),de=p(G,Y),de.return=W,W=de):(c(W,G),de=dp(Y,W.mode,de),de.return=W,W=de),C(W)):c(W,G)}return function(W,G,Y,de){try{bl=0;var Re=Dt(W,G,Y,de);return Vs=null,Re}catch(Ve){if(Ve===yl)throw Ve;var nt=nr(29,Ve,null,W.mode);return nt.lanes=de,nt.return=W,nt}finally{}}}var za=b0(!0),_0=b0(!1),Bs=Ee(null),zu=Ee(0);function x0(i,s){i=pi,Ce(zu,i),Ce(Bs,s),pi=i|s.baseLanes}function vm(){Ce(zu,pi),Ce(Bs,Bs.current)}function bm(){pi=zu.current,De(Bs),De(zu)}var Jn=Ee(null),Ir=null;function Pi(i){var s=i.alternate;Ce(Ft,Ft.current&1),Ce(Jn,i),Ir===null&&(s===null||Bs.current!==null||s.memoizedState!==null)&&(Ir=i)}function E0(i){if(i.tag===22){if(Ce(Ft,Ft.current),Ce(Jn,i),Ir===null){var s=i.alternate;s!==null&&s.memoizedState!==null&&(Ir=i)}}else Vi()}function Vi(){Ce(Ft,Ft.current),Ce(Jn,Jn.current)}function ai(i){De(Jn),Ir===i&&(Ir=null),De(Ft)}var Ft=Ee(0);function Uu(i){for(var s=i;s!==null;){if(s.tag===13){var c=s.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||c.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var zI=typeof AbortController<"u"?AbortController:function(){var i=[],s=this.signal={aborted:!1,addEventListener:function(c,h){i.push(h)}};this.abort=function(){s.aborted=!0,i.forEach(function(c){return c()})}},UI=e.unstable_scheduleCallback,HI=e.unstable_NormalPriority,Gt={$$typeof:v,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function _m(){return{controller:new zI,data:new Map,refCount:0}}function xl(i){i.refCount--,i.refCount===0&&UI(HI,function(){i.controller.abort()})}var El=null,xm=0,zs=0,Us=null;function FI(i,s){if(El===null){var c=El=[];xm=0,zs=Cp(),Us={status:"pending",value:void 0,then:function(h){c.push(h)}}}return xm++,s.then(S0,S0),s}function S0(){if(--xm===0&&El!==null){Us!==null&&(Us.status="fulfilled");var i=El;El=null,zs=0,Us=null;for(var s=0;s<i.length;s++)(0,i[s])()}}function GI(i,s){var c=[],h={status:"pending",value:null,reason:null,then:function(p){c.push(p)}};return i.then(function(){h.status="fulfilled",h.value=s;for(var p=0;p<c.length;p++)(0,c[p])(s)},function(p){for(h.status="rejected",h.reason=p,p=0;p<c.length;p++)(0,c[p])(void 0)}),h}var A0=B.S;B.S=function(i,s){typeof s=="object"&&s!==null&&typeof s.then=="function"&&FI(i,s),A0!==null&&A0(i,s)};var Ua=Ee(null);function Em(){var i=Ua.current;return i!==null?i:bt.pooledCache}function Hu(i,s){s===null?Ce(Ua,Ua.current):Ce(Ua,s.pool)}function w0(){var i=Em();return i===null?null:{parent:Gt._currentValue,pool:i}}var Bi=0,Je=null,pt=null,Vt=null,Fu=!1,Hs=!1,Ha=!1,Gu=0,Sl=0,Fs=null,$I=0;function Lt(){throw Error(r(321))}function Sm(i,s){if(s===null)return!1;for(var c=0;c<s.length&&c<i.length;c++)if(!Mn(i[c],s[c]))return!1;return!0}function Am(i,s,c,h,p,_){return Bi=_,Je=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,B.H=i===null||i.memoizedState===null?Fa:zi,Ha=!1,_=c(h,p),Ha=!1,Hs&&(_=C0(s,c,h,p)),T0(i),_}function T0(i){B.H=Lr;var s=pt!==null&&pt.next!==null;if(Bi=0,Vt=pt=Je=null,Fu=!1,Sl=0,Fs=null,s)throw Error(r(300));i===null||Xt||(i=i.dependencies,i!==null&&Ju(i)&&(Xt=!0))}function C0(i,s,c,h){Je=i;var p=0;do{if(Hs&&(Fs=null),Sl=0,Hs=!1,25<=p)throw Error(r(301));if(p+=1,Vt=pt=null,i.updateQueue!=null){var _=i.updateQueue;_.lastEffect=null,_.events=null,_.stores=null,_.memoCache!=null&&(_.memoCache.index=0)}B.H=Ga,_=s(c,h)}while(Hs);return _}function qI(){var i=B.H,s=i.useState()[0];return s=typeof s.then=="function"?Al(s):s,i=i.useState()[0],(pt!==null?pt.memoizedState:null)!==i&&(Je.flags|=1024),s}function wm(){var i=Gu!==0;return Gu=0,i}function Tm(i,s,c){s.updateQueue=i.updateQueue,s.flags&=-2053,i.lanes&=~c}function Cm(i){if(Fu){for(i=i.memoizedState;i!==null;){var s=i.queue;s!==null&&(s.pending=null),i=i.next}Fu=!1}Bi=0,Vt=pt=Je=null,Hs=!1,Sl=Gu=0,Fs=null}function On(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vt===null?Je.memoizedState=Vt=i:Vt=Vt.next=i,Vt}function Bt(){if(pt===null){var i=Je.alternate;i=i!==null?i.memoizedState:null}else i=pt.next;var s=Vt===null?Je.memoizedState:Vt.next;if(s!==null)Vt=s,pt=i;else{if(i===null)throw Je.alternate===null?Error(r(467)):Error(r(310));pt=i,i={memoizedState:pt.memoizedState,baseState:pt.baseState,baseQueue:pt.baseQueue,queue:pt.queue,next:null},Vt===null?Je.memoizedState=Vt=i:Vt=Vt.next=i}return Vt}var $u;$u=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function Al(i){var s=Sl;return Sl+=1,Fs===null&&(Fs=[]),i=g0(Fs,i,s),s=Je,(Vt===null?s.memoizedState:Vt.next)===null&&(s=s.alternate,B.H=s===null||s.memoizedState===null?Fa:zi),i}function qu(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return Al(i);if(i.$$typeof===v)return hn(i)}throw Error(r(438,String(i)))}function Rm(i){var s=null,c=Je.updateQueue;if(c!==null&&(s=c.memoCache),s==null){var h=Je.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(s={data:h.data.map(function(p){return p.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),c===null&&(c=$u(),Je.updateQueue=c),c.memoCache=s,c=s.data[s.index],c===void 0)for(c=s.data[s.index]=Array(i),h=0;h<i;h++)c[h]=D;return s.index++,c}function si(i,s){return typeof s=="function"?s(i):s}function Ku(i){var s=Bt();return Nm(s,pt,i)}function Nm(i,s,c){var h=i.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=c;var p=i.baseQueue,_=h.pending;if(_!==null){if(p!==null){var C=p.next;p.next=_.next,_.next=C}s.baseQueue=p=_,h.pending=null}if(_=i.baseState,p===null)i.memoizedState=_;else{s=p.next;var k=C=null,j=null,$=s,se=!1;do{var me=$.lane&-536870913;if(me!==$.lane?(ot&me)===me:(Bi&me)===me){var te=$.revertLane;if(te===0)j!==null&&(j=j.next={lane:0,revertLane:0,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),me===zs&&(se=!0);else if((Bi&te)===te){$=$.next,te===zs&&(se=!0);continue}else me={lane:0,revertLane:$.revertLane,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},j===null?(k=j=me,C=_):j=j.next=me,Je.lanes|=te,Yi|=te;me=$.action,Ha&&c(_,me),_=$.hasEagerState?$.eagerState:c(_,me)}else te={lane:me,revertLane:$.revertLane,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},j===null?(k=j=te,C=_):j=j.next=te,Je.lanes|=me,Yi|=me;$=$.next}while($!==null&&$!==s);if(j===null?C=_:j.next=k,!Mn(_,i.memoizedState)&&(Xt=!0,se&&(c=Us,c!==null)))throw c;i.memoizedState=_,i.baseState=C,i.baseQueue=j,h.lastRenderedState=_}return p===null&&(h.lanes=0),[i.memoizedState,h.dispatch]}function km(i){var s=Bt(),c=s.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=i;var h=c.dispatch,p=c.pending,_=s.memoizedState;if(p!==null){c.pending=null;var C=p=p.next;do _=i(_,C.action),C=C.next;while(C!==p);Mn(_,s.memoizedState)||(Xt=!0),s.memoizedState=_,s.baseQueue===null&&(s.baseState=_),c.lastRenderedState=_}return[_,h]}function R0(i,s,c){var h=Je,p=Bt(),_=ut;if(_){if(c===void 0)throw Error(r(407));c=c()}else c=s();var C=!Mn((pt||p).memoizedState,c);if(C&&(p.memoizedState=c,Xt=!0),p=p.queue,Im(O0.bind(null,h,p,i),[i]),p.getSnapshot!==s||C||Vt!==null&&Vt.memoizedState.tag&1){if(h.flags|=2048,Gs(9,k0.bind(null,h,p,c,s),{destroy:void 0},null),bt===null)throw Error(r(349));_||(Bi&60)!==0||N0(h,s,c)}return c}function N0(i,s,c){i.flags|=16384,i={getSnapshot:s,value:c},s=Je.updateQueue,s===null?(s=$u(),Je.updateQueue=s,s.stores=[i]):(c=s.stores,c===null?s.stores=[i]:c.push(i))}function k0(i,s,c,h){s.value=c,s.getSnapshot=h,D0(s)&&I0(i)}function O0(i,s,c){return c(function(){D0(s)&&I0(i)})}function D0(i){var s=i.getSnapshot;i=i.value;try{var c=s();return!Mn(i,c)}catch{return!0}}function I0(i){var s=ji(i,2);s!==null&&En(s,i,2)}function Om(i){var s=On();if(typeof i=="function"){var c=i;if(i=c(),Ha){yr(!0);try{c()}finally{yr(!1)}}}return s.memoizedState=s.baseState=i,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:si,lastRenderedState:i},s}function L0(i,s,c,h){return i.baseState=c,Nm(i,pt,typeof h=="function"?h:si)}function KI(i,s,c,h,p){if(Zu(i))throw Error(r(485));if(i=s.action,i!==null){var _={payload:p,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(C){_.listeners.push(C)}};B.T!==null?c(!0):_.isTransition=!1,h(_),c=s.pending,c===null?(_.next=s.pending=_,M0(s,_)):(_.next=c.next,s.pending=c.next=_)}}function M0(i,s){var c=s.action,h=s.payload,p=i.state;if(s.isTransition){var _=B.T,C={};B.T=C;try{var k=c(p,h),j=B.S;j!==null&&j(C,k),j0(i,s,k)}catch($){Dm(i,s,$)}finally{B.T=_}}else try{_=c(p,h),j0(i,s,_)}catch($){Dm(i,s,$)}}function j0(i,s,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(h){P0(i,s,h)},function(h){return Dm(i,s,h)}):P0(i,s,c)}function P0(i,s,c){s.status="fulfilled",s.value=c,V0(s),i.state=c,s=i.pending,s!==null&&(c=s.next,c===s?i.pending=null:(c=c.next,s.next=c,M0(i,c)))}function Dm(i,s,c){var h=i.pending;if(i.pending=null,h!==null){h=h.next;do s.status="rejected",s.reason=c,V0(s),s=s.next;while(s!==h)}i.action=null}function V0(i){i=i.listeners;for(var s=0;s<i.length;s++)(0,i[s])()}function B0(i,s){return s}function z0(i,s){if(ut){var c=bt.formState;if(c!==null){e:{var h=Je;if(ut){if(an){t:{for(var p=an,_=Dr;p.nodeType!==8;){if(!_){p=null;break t}if(p=xr(p.nextSibling),p===null){p=null;break t}}_=p.data,p=_==="F!"||_==="F"?p:null}if(p){an=xr(p.nextSibling),h=p.data==="F!";break e}}Ba(h)}h=!1}h&&(s=c[0])}}return c=On(),c.memoizedState=c.baseState=s,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:B0,lastRenderedState:s},c.queue=h,c=ix.bind(null,Je,h),h.dispatch=c,h=Om(!1),_=Vm.bind(null,Je,!1,h.queue),h=On(),p={state:s,dispatch:null,action:i,pending:null},h.queue=p,c=KI.bind(null,Je,p,_,c),p.dispatch=c,h.memoizedState=i,[s,c,!1]}function U0(i){var s=Bt();return H0(s,pt,i)}function H0(i,s,c){s=Nm(i,s,B0)[0],i=Ku(si)[0],s=typeof s=="object"&&s!==null&&typeof s.then=="function"?Al(s):s;var h=Bt(),p=h.queue,_=p.dispatch;return c!==h.memoizedState&&(Je.flags|=2048,Gs(9,WI.bind(null,p,c),{destroy:void 0},null)),[s,_,i]}function WI(i,s){i.action=s}function F0(i){var s=Bt(),c=pt;if(c!==null)return H0(s,c,i);Bt(),s=s.memoizedState,c=Bt();var h=c.queue.dispatch;return c.memoizedState=i,[s,h,!1]}function Gs(i,s,c,h){return i={tag:i,create:s,inst:c,deps:h,next:null},s=Je.updateQueue,s===null&&(s=$u(),Je.updateQueue=s),c=s.lastEffect,c===null?s.lastEffect=i.next=i:(h=c.next,c.next=i,i.next=h,s.lastEffect=i),i}function G0(){return Bt().memoizedState}function Wu(i,s,c,h){var p=On();Je.flags|=i,p.memoizedState=Gs(1|s,c,{destroy:void 0},h===void 0?null:h)}function Yu(i,s,c,h){var p=Bt();h=h===void 0?null:h;var _=p.memoizedState.inst;pt!==null&&h!==null&&Sm(h,pt.memoizedState.deps)?p.memoizedState=Gs(s,c,_,h):(Je.flags|=i,p.memoizedState=Gs(1|s,c,_,h))}function $0(i,s){Wu(8390656,8,i,s)}function Im(i,s){Yu(2048,8,i,s)}function q0(i,s){return Yu(4,2,i,s)}function K0(i,s){return Yu(4,4,i,s)}function W0(i,s){if(typeof s=="function"){i=i();var c=s(i);return function(){typeof c=="function"?c():s(null)}}if(s!=null)return i=i(),s.current=i,function(){s.current=null}}function Y0(i,s,c){c=c!=null?c.concat([i]):null,Yu(4,4,W0.bind(null,s,i),c)}function Lm(){}function Z0(i,s){var c=Bt();s=s===void 0?null:s;var h=c.memoizedState;return s!==null&&Sm(s,h[1])?h[0]:(c.memoizedState=[i,s],i)}function X0(i,s){var c=Bt();s=s===void 0?null:s;var h=c.memoizedState;if(s!==null&&Sm(s,h[1]))return h[0];if(h=i(),Ha){yr(!0);try{i()}finally{yr(!1)}}return c.memoizedState=[h,s],h}function Mm(i,s,c){return c===void 0||(Bi&1073741824)!==0?i.memoizedState=s:(i.memoizedState=c,i=Jx(),Je.lanes|=i,Yi|=i,c)}function Q0(i,s,c,h){return Mn(c,s)?c:Bs.current!==null?(i=Mm(i,c,h),Mn(i,s)||(Xt=!0),i):(Bi&42)===0?(Xt=!0,i.memoizedState=c):(i=Jx(),Je.lanes|=i,Yi|=i,s)}function J0(i,s,c,h,p){var _=re.p;re.p=_!==0&&8>_?_:8;var C=B.T,k={};B.T=k,Vm(i,!1,s,c);try{var j=p(),$=B.S;if($!==null&&$(k,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var se=GI(j,h);wl(i,s,se,Bn(i))}else wl(i,s,h,Bn(i))}catch(me){wl(i,s,{then:function(){},status:"rejected",reason:me},Bn())}finally{re.p=_,B.T=C}}function YI(){}function jm(i,s,c,h){if(i.tag!==5)throw Error(r(476));var p=ex(i).queue;J0(i,p,s,he,c===null?YI:function(){return tx(i),c(h)})}function ex(i){var s=i.memoizedState;if(s!==null)return s;s={memoizedState:he,baseState:he,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:si,lastRenderedState:he},next:null};var c={};return s.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:si,lastRenderedState:c},next:null},i.memoizedState=s,i=i.alternate,i!==null&&(i.memoizedState=s),s}function tx(i){var s=ex(i).next.queue;wl(i,s,{},Bn())}function Pm(){return hn($l)}function nx(){return Bt().memoizedState}function rx(){return Bt().memoizedState}function ZI(i){for(var s=i.return;s!==null;){switch(s.tag){case 24:case 3:var c=Bn();i=Fi(c);var h=Gi(s,i,c);h!==null&&(En(h,s,c),Rl(h,s,c)),s={cache:_m()},i.payload=s;return}s=s.return}}function XI(i,s,c){var h=Bn();c={lane:h,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null},Zu(i)?ax(s,c):(c=hm(i,s,c,h),c!==null&&(En(c,i,h),sx(c,s,h)))}function ix(i,s,c){var h=Bn();wl(i,s,c,h)}function wl(i,s,c,h){var p={lane:h,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null};if(Zu(i))ax(s,p);else{var _=i.alternate;if(i.lanes===0&&(_===null||_.lanes===0)&&(_=s.lastRenderedReducer,_!==null))try{var C=s.lastRenderedState,k=_(C,c);if(p.hasEagerState=!0,p.eagerState=k,Mn(k,C))return Iu(i,s,p,0),bt===null&&Du(),!1}catch{}finally{}if(c=hm(i,s,p,h),c!==null)return En(c,i,h),sx(c,s,h),!0}return!1}function Vm(i,s,c,h){if(h={lane:2,revertLane:Cp(),action:h,hasEagerState:!1,eagerState:null,next:null},Zu(i)){if(s)throw Error(r(479))}else s=hm(i,c,h,2),s!==null&&En(s,i,2)}function Zu(i){var s=i.alternate;return i===Je||s!==null&&s===Je}function ax(i,s){Hs=Fu=!0;var c=i.pending;c===null?s.next=s:(s.next=c.next,c.next=s),i.pending=s}function sx(i,s,c){if((c&4194176)!==0){var h=s.lanes;h&=i.pendingLanes,c|=h,s.lanes=c,y_(i,c)}}var Lr={readContext:hn,use:qu,useCallback:Lt,useContext:Lt,useEffect:Lt,useImperativeHandle:Lt,useLayoutEffect:Lt,useInsertionEffect:Lt,useMemo:Lt,useReducer:Lt,useRef:Lt,useState:Lt,useDebugValue:Lt,useDeferredValue:Lt,useTransition:Lt,useSyncExternalStore:Lt,useId:Lt};Lr.useCacheRefresh=Lt,Lr.useMemoCache=Lt,Lr.useHostTransitionStatus=Lt,Lr.useFormState=Lt,Lr.useActionState=Lt,Lr.useOptimistic=Lt;var Fa={readContext:hn,use:qu,useCallback:function(i,s){return On().memoizedState=[i,s===void 0?null:s],i},useContext:hn,useEffect:$0,useImperativeHandle:function(i,s,c){c=c!=null?c.concat([i]):null,Wu(4194308,4,W0.bind(null,s,i),c)},useLayoutEffect:function(i,s){return Wu(4194308,4,i,s)},useInsertionEffect:function(i,s){Wu(4,2,i,s)},useMemo:function(i,s){var c=On();s=s===void 0?null:s;var h=i();if(Ha){yr(!0);try{i()}finally{yr(!1)}}return c.memoizedState=[h,s],h},useReducer:function(i,s,c){var h=On();if(c!==void 0){var p=c(s);if(Ha){yr(!0);try{c(s)}finally{yr(!1)}}}else p=s;return h.memoizedState=h.baseState=p,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:p},h.queue=i,i=i.dispatch=XI.bind(null,Je,i),[h.memoizedState,i]},useRef:function(i){var s=On();return i={current:i},s.memoizedState=i},useState:function(i){i=Om(i);var s=i.queue,c=ix.bind(null,Je,s);return s.dispatch=c,[i.memoizedState,c]},useDebugValue:Lm,useDeferredValue:function(i,s){var c=On();return Mm(c,i,s)},useTransition:function(){var i=Om(!1);return i=J0.bind(null,Je,i.queue,!0,!1),On().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,s,c){var h=Je,p=On();if(ut){if(c===void 0)throw Error(r(407));c=c()}else{if(c=s(),bt===null)throw Error(r(349));(ot&60)!==0||N0(h,s,c)}p.memoizedState=c;var _={value:c,getSnapshot:s};return p.queue=_,$0(O0.bind(null,h,_,i),[i]),h.flags|=2048,Gs(9,k0.bind(null,h,_,c,s),{destroy:void 0},null),c},useId:function(){var i=On(),s=bt.identifierPrefix;if(ut){var c=ii,h=ri;c=(h&~(1<<32-_n(h)-1)).toString(32)+c,s=":"+s+"R"+c,c=Gu++,0<c&&(s+="H"+c.toString(32)),s+=":"}else c=$I++,s=":"+s+"r"+c.toString(32)+":";return i.memoizedState=s},useCacheRefresh:function(){return On().memoizedState=ZI.bind(null,Je)}};Fa.useMemoCache=Rm,Fa.useHostTransitionStatus=Pm,Fa.useFormState=z0,Fa.useActionState=z0,Fa.useOptimistic=function(i){var s=On();s.memoizedState=s.baseState=i;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=c,s=Vm.bind(null,Je,!0,c),c.dispatch=s,[i,s]};var zi={readContext:hn,use:qu,useCallback:Z0,useContext:hn,useEffect:Im,useImperativeHandle:Y0,useInsertionEffect:q0,useLayoutEffect:K0,useMemo:X0,useReducer:Ku,useRef:G0,useState:function(){return Ku(si)},useDebugValue:Lm,useDeferredValue:function(i,s){var c=Bt();return Q0(c,pt.memoizedState,i,s)},useTransition:function(){var i=Ku(si)[0],s=Bt().memoizedState;return[typeof i=="boolean"?i:Al(i),s]},useSyncExternalStore:R0,useId:nx};zi.useCacheRefresh=rx,zi.useMemoCache=Rm,zi.useHostTransitionStatus=Pm,zi.useFormState=U0,zi.useActionState=U0,zi.useOptimistic=function(i,s){var c=Bt();return L0(c,pt,i,s)};var Ga={readContext:hn,use:qu,useCallback:Z0,useContext:hn,useEffect:Im,useImperativeHandle:Y0,useInsertionEffect:q0,useLayoutEffect:K0,useMemo:X0,useReducer:km,useRef:G0,useState:function(){return km(si)},useDebugValue:Lm,useDeferredValue:function(i,s){var c=Bt();return pt===null?Mm(c,i,s):Q0(c,pt.memoizedState,i,s)},useTransition:function(){var i=km(si)[0],s=Bt().memoizedState;return[typeof i=="boolean"?i:Al(i),s]},useSyncExternalStore:R0,useId:nx};Ga.useCacheRefresh=rx,Ga.useMemoCache=Rm,Ga.useHostTransitionStatus=Pm,Ga.useFormState=F0,Ga.useActionState=F0,Ga.useOptimistic=function(i,s){var c=Bt();return pt!==null?L0(c,pt,i,s):(c.baseState=i,[i,c.queue.dispatch])};function Bm(i,s,c,h){s=i.memoizedState,c=c(h,s),c=c==null?s:U({},s,c),i.memoizedState=c,i.lanes===0&&(i.updateQueue.baseState=c)}var zm={isMounted:function(i){return(i=i._reactInternals)?q(i)===i:!1},enqueueSetState:function(i,s,c){i=i._reactInternals;var h=Bn(),p=Fi(h);p.payload=s,c!=null&&(p.callback=c),s=Gi(i,p,h),s!==null&&(En(s,i,h),Rl(s,i,h))},enqueueReplaceState:function(i,s,c){i=i._reactInternals;var h=Bn(),p=Fi(h);p.tag=1,p.payload=s,c!=null&&(p.callback=c),s=Gi(i,p,h),s!==null&&(En(s,i,h),Rl(s,i,h))},enqueueForceUpdate:function(i,s){i=i._reactInternals;var c=Bn(),h=Fi(c);h.tag=2,s!=null&&(h.callback=s),s=Gi(i,h,c),s!==null&&(En(s,i,c),Rl(s,i,c))}};function ox(i,s,c,h,p,_,C){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(h,_,C):s.prototype&&s.prototype.isPureReactComponent?!fl(c,h)||!fl(p,_):!0}function lx(i,s,c,h){i=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(c,h),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(c,h),s.state!==i&&zm.enqueueReplaceState(s,s.state,null)}function $a(i,s){var c=s;if("ref"in s){c={};for(var h in s)h!=="ref"&&(c[h]=s[h])}if(i=i.defaultProps){c===s&&(c=U({},c));for(var p in i)c[p]===void 0&&(c[p]=i[p])}return c}var Xu=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=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(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)};function cx(i){Xu(i)}function ux(i){console.error(i)}function dx(i){Xu(i)}function Qu(i,s){try{var c=i.onUncaughtError;c(s.value,{componentStack:s.stack})}catch(h){setTimeout(function(){throw h})}}function fx(i,s,c){try{var h=i.onCaughtError;h(c.value,{componentStack:c.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function Um(i,s,c){return c=Fi(c),c.tag=3,c.payload={element:null},c.callback=function(){Qu(i,s)},c}function hx(i){return i=Fi(i),i.tag=3,i}function mx(i,s,c,h){var p=c.type.getDerivedStateFromError;if(typeof p=="function"){var _=h.value;i.payload=function(){return p(_)},i.callback=function(){fx(s,c,h)}}var C=c.stateNode;C!==null&&typeof C.componentDidCatch=="function"&&(i.callback=function(){fx(s,c,h),typeof p!="function"&&(Zi===null?Zi=new Set([this]):Zi.add(this));var k=h.stack;this.componentDidCatch(h.value,{componentStack:k!==null?k:""})})}function QI(i,s,c,h,p){if(c.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(s=c.alternate,s!==null&&Cl(s,c,p,!0),c=Jn.current,c!==null){switch(c.tag){case 13:return Ir===null?Ep():c.alternate===null&&Ot===0&&(Ot=3),c.flags&=-257,c.flags|=65536,c.lanes=p,h===ym?c.flags|=16384:(s=c.updateQueue,s===null?c.updateQueue=new Set([h]):s.add(h),Ap(i,h,p)),!1;case 22:return c.flags|=65536,h===ym?c.flags|=16384:(s=c.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([h])},c.updateQueue=s):(c=s.retryQueue,c===null?s.retryQueue=new Set([h]):c.add(h)),Ap(i,h,p)),!1}throw Error(r(435,c.tag))}return Ap(i,h,p),Ep(),!1}if(ut)return s=Jn.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=p,h!==gm&&(i=Error(r(422),{cause:h}),gl(Zn(i,c)))):(h!==gm&&(s=Error(r(423),{cause:h}),gl(Zn(s,c))),i=i.current.alternate,i.flags|=65536,p&=-p,i.lanes|=p,h=Zn(h,c),p=Um(i.stateNode,h,p),np(i,p),Ot!==4&&(Ot=2)),!1;var _=Error(r(520),{cause:h});if(_=Zn(_,c),jl===null?jl=[_]:jl.push(_),Ot!==4&&(Ot=2),s===null)return!0;h=Zn(h,c),c=s;do{switch(c.tag){case 3:return c.flags|=65536,i=p&-p,c.lanes|=i,i=Um(c.stateNode,h,i),np(c,i),!1;case 1:if(s=c.type,_=c.stateNode,(c.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(Zi===null||!Zi.has(_))))return c.flags|=65536,p&=-p,c.lanes|=p,p=hx(p),mx(p,i,c,h),np(c,p),!1}c=c.return}while(c!==null);return!1}var px=Error(r(461)),Xt=!1;function sn(i,s,c,h){s.child=i===null?_0(s,null,c,h):za(s,i.child,c,h)}function gx(i,s,c,h,p){c=c.render;var _=s.ref;if("ref"in h){var C={};for(var k in h)k!=="ref"&&(C[k]=h[k])}else C=h;return Ka(s),h=Am(i,s,c,C,_,p),k=wm(),i!==null&&!Xt?(Tm(i,s,p),oi(i,s,p)):(ut&&k&&mm(s),s.flags|=1,sn(i,s,h,p),s.child)}function yx(i,s,c,h,p){if(i===null){var _=c.type;return typeof _=="function"&&!up(_)&&_.defaultProps===void 0&&c.compare===null?(s.tag=15,s.type=_,vx(i,s,_,h,p)):(i=rd(c.type,null,h,s,s.mode,p),i.ref=s.ref,i.return=s,s.child=i)}if(_=i.child,!Zm(i,p)){var C=_.memoizedProps;if(c=c.compare,c=c!==null?c:fl,c(C,h)&&i.ref===s.ref)return oi(i,s,p)}return s.flags|=1,i=Wi(_,h),i.ref=s.ref,i.return=s,s.child=i}function vx(i,s,c,h,p){if(i!==null){var _=i.memoizedProps;if(fl(_,h)&&i.ref===s.ref)if(Xt=!1,s.pendingProps=h=_,Zm(i,p))(i.flags&131072)!==0&&(Xt=!0);else return s.lanes=i.lanes,oi(i,s,p)}return Hm(i,s,c,h,p)}function bx(i,s,c){var h=s.pendingProps,p=h.children,_=(s.stateNode._pendingVisibility&2)!==0,C=i!==null?i.memoizedState:null;if(Tl(i,s),h.mode==="hidden"||_){if((s.flags&128)!==0){if(h=C!==null?C.baseLanes|c:c,i!==null){for(p=s.child=i.child,_=0;p!==null;)_=_|p.lanes|p.childLanes,p=p.sibling;s.childLanes=_&~h}else s.childLanes=0,s.child=null;return _x(i,s,h,c)}if((c&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},i!==null&&Hu(s,C!==null?C.cachePool:null),C!==null?x0(s,C):vm(),E0(s);else return s.lanes=s.childLanes=536870912,_x(i,s,C!==null?C.baseLanes|c:c,c)}else C!==null?(Hu(s,C.cachePool),x0(s,C),Vi(),s.memoizedState=null):(i!==null&&Hu(s,null),vm(),Vi());return sn(i,s,p,c),s.child}function _x(i,s,c,h){var p=Em();return p=p===null?null:{parent:Gt._currentValue,pool:p},s.memoizedState={baseLanes:c,cachePool:p},i!==null&&Hu(s,null),vm(),E0(s),i!==null&&Cl(i,s,h,!0),null}function Tl(i,s){var c=s.ref;if(c===null)i!==null&&i.ref!==null&&(s.flags|=2097664);else{if(typeof c!="function"&&typeof c!="object")throw Error(r(284));(i===null||i.ref!==c)&&(s.flags|=2097664)}}function Hm(i,s,c,h,p){return Ka(s),c=Am(i,s,c,h,void 0,p),h=wm(),i!==null&&!Xt?(Tm(i,s,p),oi(i,s,p)):(ut&&h&&mm(s),s.flags|=1,sn(i,s,c,p),s.child)}function xx(i,s,c,h,p,_){return Ka(s),s.updateQueue=null,c=C0(s,h,c,p),T0(i),h=wm(),i!==null&&!Xt?(Tm(i,s,_),oi(i,s,_)):(ut&&h&&mm(s),s.flags|=1,sn(i,s,c,_),s.child)}function Ex(i,s,c,h,p){if(Ka(s),s.stateNode===null){var _=Ms,C=c.contextType;typeof C=="object"&&C!==null&&(_=hn(C)),_=new c(h,_),s.memoizedState=_.state!==null&&_.state!==void 0?_.state:null,_.updater=zm,s.stateNode=_,_._reactInternals=s,_=s.stateNode,_.props=h,_.state=s.memoizedState,_.refs={},ep(s),C=c.contextType,_.context=typeof C=="object"&&C!==null?hn(C):Ms,_.state=s.memoizedState,C=c.getDerivedStateFromProps,typeof C=="function"&&(Bm(s,c,C,h),_.state=s.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&&zm.enqueueReplaceState(_,_.state,null),kl(s,h,_,p),Nl(),_.state=s.memoizedState),typeof _.componentDidMount=="function"&&(s.flags|=4194308),h=!0}else if(i===null){_=s.stateNode;var k=s.memoizedProps,j=$a(c,k);_.props=j;var $=_.context,se=c.contextType;C=Ms,typeof se=="object"&&se!==null&&(C=hn(se));var me=c.getDerivedStateFromProps;se=typeof me=="function"||typeof _.getSnapshotBeforeUpdate=="function",k=s.pendingProps!==k,se||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(k||$!==C)&&lx(s,_,h,C),Hi=!1;var te=s.memoizedState;_.state=te,kl(s,h,_,p),Nl(),$=s.memoizedState,k||te!==$||Hi?(typeof me=="function"&&(Bm(s,c,me,h),$=s.memoizedState),(j=Hi||ox(s,c,j,h,te,$,C))?(se||typeof _.UNSAFE_componentWillMount!="function"&&typeof _.componentWillMount!="function"||(typeof _.componentWillMount=="function"&&_.componentWillMount(),typeof _.UNSAFE_componentWillMount=="function"&&_.UNSAFE_componentWillMount()),typeof _.componentDidMount=="function"&&(s.flags|=4194308)):(typeof _.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=h,s.memoizedState=$),_.props=h,_.state=$,_.context=C,h=j):(typeof _.componentDidMount=="function"&&(s.flags|=4194308),h=!1)}else{_=s.stateNode,tp(i,s),C=s.memoizedProps,se=$a(c,C),_.props=se,me=s.pendingProps,te=_.context,$=c.contextType,j=Ms,typeof $=="object"&&$!==null&&(j=hn($)),k=c.getDerivedStateFromProps,($=typeof k=="function"||typeof _.getSnapshotBeforeUpdate=="function")||typeof _.UNSAFE_componentWillReceiveProps!="function"&&typeof _.componentWillReceiveProps!="function"||(C!==me||te!==j)&&lx(s,_,h,j),Hi=!1,te=s.memoizedState,_.state=te,kl(s,h,_,p),Nl();var ae=s.memoizedState;C!==me||te!==ae||Hi||i!==null&&i.dependencies!==null&&Ju(i.dependencies)?(typeof k=="function"&&(Bm(s,c,k,h),ae=s.memoizedState),(se=Hi||ox(s,c,se,h,te,ae,j)||i!==null&&i.dependencies!==null&&Ju(i.dependencies))?($||typeof _.UNSAFE_componentWillUpdate!="function"&&typeof _.componentWillUpdate!="function"||(typeof _.componentWillUpdate=="function"&&_.componentWillUpdate(h,ae,j),typeof _.UNSAFE_componentWillUpdate=="function"&&_.UNSAFE_componentWillUpdate(h,ae,j)),typeof _.componentDidUpdate=="function"&&(s.flags|=4),typeof _.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof _.componentDidUpdate!="function"||C===i.memoizedProps&&te===i.memoizedState||(s.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||C===i.memoizedProps&&te===i.memoizedState||(s.flags|=1024),s.memoizedProps=h,s.memoizedState=ae),_.props=h,_.state=ae,_.context=j,h=se):(typeof _.componentDidUpdate!="function"||C===i.memoizedProps&&te===i.memoizedState||(s.flags|=4),typeof _.getSnapshotBeforeUpdate!="function"||C===i.memoizedProps&&te===i.memoizedState||(s.flags|=1024),h=!1)}return _=h,Tl(i,s),h=(s.flags&128)!==0,_||h?(_=s.stateNode,c=h&&typeof c.getDerivedStateFromError!="function"?null:_.render(),s.flags|=1,i!==null&&h?(s.child=za(s,i.child,null,p),s.child=za(s,null,c,p)):sn(i,s,c,p),s.memoizedState=_.state,i=s.child):i=oi(i,s,p),i}function Sx(i,s,c,h){return pl(),s.flags|=256,sn(i,s,c,h),s.child}var Fm={dehydrated:null,treeContext:null,retryLane:0};function Gm(i){return{baseLanes:i,cachePool:w0()}}function $m(i,s,c){return i=i!==null?i.childLanes&~c:0,s&&(i|=rr),i}function Ax(i,s,c){var h=s.pendingProps,p=!1,_=(s.flags&128)!==0,C;if((C=_)||(C=i!==null&&i.memoizedState===null?!1:(Ft.current&2)!==0),C&&(p=!0,s.flags&=-129),C=(s.flags&32)!==0,s.flags&=-33,i===null){if(ut){if(p?Pi(s):Vi(),ut){var k=an,j;if(j=k){e:{for(j=k,k=Dr;j.nodeType!==8;){if(!k){k=null;break e}if(j=xr(j.nextSibling),j===null){k=null;break e}}k=j}k!==null?(s.memoizedState={dehydrated:k,treeContext:Pa!==null?{id:ri,overflow:ii}:null,retryLane:536870912},j=nr(18,null,null,0),j.stateNode=k,j.return=s,s.child=j,xn=s,an=null,j=!0):j=!1}j||Ba(s)}if(k=s.memoizedState,k!==null&&(k=k.dehydrated,k!==null))return k.data==="$!"?s.lanes=16:s.lanes=536870912,null;ai(s)}return k=h.children,h=h.fallback,p?(Vi(),p=s.mode,k=Km({mode:"hidden",children:k},p),h=Ya(h,p,c,null),k.return=s,h.return=s,k.sibling=h,s.child=k,p=s.child,p.memoizedState=Gm(c),p.childLanes=$m(i,C,c),s.memoizedState=Fm,h):(Pi(s),qm(s,k))}if(j=i.memoizedState,j!==null&&(k=j.dehydrated,k!==null)){if(_)s.flags&256?(Pi(s),s.flags&=-257,s=Wm(i,s,c)):s.memoizedState!==null?(Vi(),s.child=i.child,s.flags|=128,s=null):(Vi(),p=h.fallback,k=s.mode,h=Km({mode:"visible",children:h.children},k),p=Ya(p,k,c,null),p.flags|=2,h.return=s,p.return=s,h.sibling=p,s.child=h,za(s,i.child,null,c),h=s.child,h.memoizedState=Gm(c),h.childLanes=$m(i,C,c),s.memoizedState=Fm,s=p);else if(Pi(s),k.data==="$!"){if(C=k.nextSibling&&k.nextSibling.dataset,C)var $=C.dgst;C=$,h=Error(r(419)),h.stack="",h.digest=C,gl({value:h,source:null,stack:null}),s=Wm(i,s,c)}else if(Xt||Cl(i,s,c,!1),C=(c&i.childLanes)!==0,Xt||C){if(C=bt,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!==j.retryLane)throw j.retryLane=h,ji(i,h),En(C,i,h),px}k.data==="$?"||Ep(),s=Wm(i,s,c)}else k.data==="$?"?(s.flags|=128,s.child=i.child,s=hL.bind(null,i),k._reactRetry=s,s=null):(i=j.treeContext,an=xr(k.nextSibling),xn=s,ut=!0,br=null,Dr=!1,i!==null&&(Xn[Qn++]=ri,Xn[Qn++]=ii,Xn[Qn++]=Pa,ri=i.id,ii=i.overflow,Pa=s),s=qm(s,h.children),s.flags|=4096);return s}return p?(Vi(),p=h.fallback,k=s.mode,j=i.child,$=j.sibling,h=Wi(j,{mode:"hidden",children:h.children}),h.subtreeFlags=j.subtreeFlags&31457280,$!==null?p=Wi($,p):(p=Ya(p,k,c,null),p.flags|=2),p.return=s,h.return=s,h.sibling=p,s.child=h,h=p,p=s.child,k=i.child.memoizedState,k===null?k=Gm(c):(j=k.cachePool,j!==null?($=Gt._currentValue,j=j.parent!==$?{parent:$,pool:$}:j):j=w0(),k={baseLanes:k.baseLanes|c,cachePool:j}),p.memoizedState=k,p.childLanes=$m(i,C,c),s.memoizedState=Fm,h):(Pi(s),c=i.child,i=c.sibling,c=Wi(c,{mode:"visible",children:h.children}),c.return=s,c.sibling=null,i!==null&&(C=s.deletions,C===null?(s.deletions=[i],s.flags|=16):C.push(i)),s.child=c,s.memoizedState=null,c)}function qm(i,s){return s=Km({mode:"visible",children:s},i.mode),s.return=i,i.child=s}function Km(i,s){return Zx(i,s,0,null)}function Wm(i,s,c){return za(s,i.child,null,c),i=qm(s,s.pendingProps.children),i.flags|=2,s.memoizedState=null,i}function wx(i,s,c){i.lanes|=s;var h=i.alternate;h!==null&&(h.lanes|=s),Qm(i.return,s,c)}function Ym(i,s,c,h,p){var _=i.memoizedState;_===null?i.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:h,tail:c,tailMode:p}:(_.isBackwards=s,_.rendering=null,_.renderingStartTime=0,_.last=h,_.tail=c,_.tailMode=p)}function Tx(i,s,c){var h=s.pendingProps,p=h.revealOrder,_=h.tail;if(sn(i,s,h.children,c),h=Ft.current,(h&2)!==0)h=h&1|2,s.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=s.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&wx(i,c,s);else if(i.tag===19)wx(i,c,s);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break e;for(;i.sibling===null;){if(i.return===null||i.return===s)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}h&=1}switch(Ce(Ft,h),p){case"forwards":for(c=s.child,p=null;c!==null;)i=c.alternate,i!==null&&Uu(i)===null&&(p=c),c=c.sibling;c=p,c===null?(p=s.child,s.child=null):(p=c.sibling,c.sibling=null),Ym(s,!1,p,c,_);break;case"backwards":for(c=null,p=s.child,s.child=null;p!==null;){if(i=p.alternate,i!==null&&Uu(i)===null){s.child=p;break}i=p.sibling,p.sibling=c,c=p,p=i}Ym(s,!0,c,null,_);break;case"together":Ym(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function oi(i,s,c){if(i!==null&&(s.dependencies=i.dependencies),Yi|=s.lanes,(c&s.childLanes)===0)if(i!==null){if(Cl(i,s,c,!1),(c&s.childLanes)===0)return null}else return null;if(i!==null&&s.child!==i.child)throw Error(r(153));if(s.child!==null){for(i=s.child,c=Wi(i,i.pendingProps),s.child=c,c.return=s;i.sibling!==null;)i=i.sibling,c=c.sibling=Wi(i,i.pendingProps),c.return=s;c.sibling=null}return s.child}function Zm(i,s){return(i.lanes&s)!==0?!0:(i=i.dependencies,!!(i!==null&&Ju(i)))}function JI(i,s,c){switch(s.tag){case 3:Ln(s,s.stateNode.containerInfo),Ui(s,Gt,i.memoizedState.cache),pl();break;case 27:case 5:pr(s);break;case 4:Ln(s,s.stateNode.containerInfo);break;case 10:Ui(s,s.type,s.memoizedProps.value);break;case 13:var h=s.memoizedState;if(h!==null)return h.dehydrated!==null?(Pi(s),s.flags|=128,null):(c&s.child.childLanes)!==0?Ax(i,s,c):(Pi(s),i=oi(i,s,c),i!==null?i.sibling:null);Pi(s);break;case 19:var p=(i.flags&128)!==0;if(h=(c&s.childLanes)!==0,h||(Cl(i,s,c,!1),h=(c&s.childLanes)!==0),p){if(h)return Tx(i,s,c);s.flags|=128}if(p=s.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),Ce(Ft,Ft.current),h)break;return null;case 22:case 23:return s.lanes=0,bx(i,s,c);case 24:Ui(s,Gt,i.memoizedState.cache)}return oi(i,s,c)}function Cx(i,s,c){if(i!==null)if(i.memoizedProps!==s.pendingProps)Xt=!0;else{if(!Zm(i,c)&&(s.flags&128)===0)return Xt=!1,JI(i,s,c);Xt=(i.flags&131072)!==0}else Xt=!1,ut&&(s.flags&1048576)!==0&&d0(s,ju,s.index);switch(s.lanes=0,s.tag){case 16:e:{i=s.pendingProps;var h=s.elementType,p=h._init;if(h=p(h._payload),s.type=h,typeof h=="function")up(h)?(i=$a(h,i),s.tag=1,s=Ex(null,s,h,i,c)):(s.tag=0,s=Hm(null,s,h,i,c));else{if(h!=null){if(p=h.$$typeof,p===x){s.tag=11,s=gx(null,s,h,i,c);break e}else if(p===w){s.tag=14,s=yx(null,s,h,i,c);break e}}throw s=M(h)||h,Error(r(306,s,""))}}return s;case 0:return Hm(i,s,s.type,s.pendingProps,c);case 1:return h=s.type,p=$a(h,s.pendingProps),Ex(i,s,h,p,c);case 3:e:{if(Ln(s,s.stateNode.containerInfo),i===null)throw Error(r(387));var _=s.pendingProps;p=s.memoizedState,h=p.element,tp(i,s),kl(s,_,null,c);var C=s.memoizedState;if(_=C.cache,Ui(s,Gt,_),_!==p.cache&&Jm(s,[Gt],c,!0),Nl(),_=C.element,p.isDehydrated)if(p={element:_,isDehydrated:!1,cache:C.cache},s.updateQueue.baseState=p,s.memoizedState=p,s.flags&256){s=Sx(i,s,_,c);break e}else if(_!==h){h=Zn(Error(r(424)),s),gl(h),s=Sx(i,s,_,c);break e}else for(an=xr(s.stateNode.containerInfo.firstChild),xn=s,ut=!0,br=null,Dr=!0,c=_0(s,null,_,c),s.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling;else{if(pl(),_===h){s=oi(i,s,c);break e}sn(i,s,_,c)}s=s.child}return s;case 26:return Tl(i,s),i===null?(c=kE(s.type,null,s.pendingProps,null))?s.memoizedState=c:ut||(c=s.type,i=s.pendingProps,h=pd(Et.current).createElement(c),h[fn]=s,h[Nn]=i,on(h,c,i),Zt(h),s.stateNode=h):s.memoizedState=kE(s.type,i.memoizedProps,s.pendingProps,i.memoizedState),null;case 27:return pr(s),i===null&&ut&&(h=s.stateNode=CE(s.type,s.pendingProps,Et.current),xn=s,Dr=!0,an=xr(h.firstChild)),h=s.pendingProps.children,i!==null||ut?sn(i,s,h,c):s.child=za(s,null,h,c),Tl(i,s),s.child;case 5:return i===null&&ut&&((p=h=an)&&(h=NL(h,s.type,s.pendingProps,Dr),h!==null?(s.stateNode=h,xn=s,an=xr(h.firstChild),Dr=!1,p=!0):p=!1),p||Ba(s)),pr(s),p=s.type,_=s.pendingProps,C=i!==null?i.memoizedProps:null,h=_.children,jp(p,_)?h=null:C!==null&&jp(p,C)&&(s.flags|=32),s.memoizedState!==null&&(p=Am(i,s,qI,null,null,c),$l._currentValue=p),Tl(i,s),sn(i,s,h,c),s.child;case 6:return i===null&&ut&&((i=c=an)&&(c=kL(c,s.pendingProps,Dr),c!==null?(s.stateNode=c,xn=s,an=null,i=!0):i=!1),i||Ba(s)),null;case 13:return Ax(i,s,c);case 4:return Ln(s,s.stateNode.containerInfo),h=s.pendingProps,i===null?s.child=za(s,null,h,c):sn(i,s,h,c),s.child;case 11:return gx(i,s,s.type,s.pendingProps,c);case 7:return sn(i,s,s.pendingProps,c),s.child;case 8:return sn(i,s,s.pendingProps.children,c),s.child;case 12:return sn(i,s,s.pendingProps.children,c),s.child;case 10:return h=s.pendingProps,Ui(s,s.type,h.value),sn(i,s,h.children,c),s.child;case 9:return p=s.type._context,h=s.pendingProps.children,Ka(s),p=hn(p),h=h(p),s.flags|=1,sn(i,s,h,c),s.child;case 14:return yx(i,s,s.type,s.pendingProps,c);case 15:return vx(i,s,s.type,s.pendingProps,c);case 19:return Tx(i,s,c);case 22:return bx(i,s,c);case 24:return Ka(s),h=hn(Gt),i===null?(p=Em(),p===null&&(p=bt,_=_m(),p.pooledCache=_,_.refCount++,_!==null&&(p.pooledCacheLanes|=c),p=_),s.memoizedState={parent:h,cache:p},ep(s),Ui(s,Gt,p)):((i.lanes&c)!==0&&(tp(i,s),kl(s,null,null,c),Nl()),p=i.memoizedState,_=s.memoizedState,p.parent!==h?(p={parent:h,cache:h},s.memoizedState=p,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=p),Ui(s,Gt,h)):(h=_.cache,Ui(s,Gt,h),h!==p.cache&&Jm(s,[Gt],c,!0))),sn(i,s,s.pendingProps.children,c),s.child;case 29:throw s.pendingProps}throw Error(r(156,s.tag))}var Xm=Ee(null),qa=null,li=null;function Ui(i,s,c){Ce(Xm,s._currentValue),s._currentValue=c}function ci(i){i._currentValue=Xm.current,De(Xm)}function Qm(i,s,c){for(;i!==null;){var h=i.alternate;if((i.childLanes&s)!==s?(i.childLanes|=s,h!==null&&(h.childLanes|=s)):h!==null&&(h.childLanes&s)!==s&&(h.childLanes|=s),i===c)break;i=i.return}}function Jm(i,s,c,h){var p=i.child;for(p!==null&&(p.return=i);p!==null;){var _=p.dependencies;if(_!==null){var C=p.child;_=_.firstContext;e:for(;_!==null;){var k=_;_=p;for(var j=0;j<s.length;j++)if(k.context===s[j]){_.lanes|=c,k=_.alternate,k!==null&&(k.lanes|=c),Qm(_.return,c,i),h||(C=null);break e}_=k.next}}else if(p.tag===18){if(C=p.return,C===null)throw Error(r(341));C.lanes|=c,_=C.alternate,_!==null&&(_.lanes|=c),Qm(C,c,i),C=null}else C=p.child;if(C!==null)C.return=p;else for(C=p;C!==null;){if(C===i){C=null;break}if(p=C.sibling,p!==null){p.return=C.return,C=p;break}C=C.return}p=C}}function Cl(i,s,c,h){i=null;for(var p=s,_=!1;p!==null;){if(!_){if((p.flags&524288)!==0)_=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var C=p.alternate;if(C===null)throw Error(r(387));if(C=C.memoizedProps,C!==null){var k=p.type;Mn(p.pendingProps.value,C.value)||(i!==null?i.push(k):i=[k])}}else if(p===Yt.current){if(C=p.alternate,C===null)throw Error(r(387));C.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(i!==null?i.push($l):i=[$l])}p=p.return}i!==null&&Jm(s,i,c,h),s.flags|=262144}function Ju(i){for(i=i.firstContext;i!==null;){if(!Mn(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Ka(i){qa=i,li=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function hn(i){return Rx(qa,i)}function ed(i,s){return qa===null&&Ka(i),Rx(i,s)}function Rx(i,s){var c=s._currentValue;if(s={context:s,memoizedValue:c,next:null},li===null){if(i===null)throw Error(r(308));li=s,i.dependencies={lanes:0,firstContext:s},i.flags|=524288}else li=li.next=s;return c}var Hi=!1;function ep(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function tp(i,s){i=i.updateQueue,s.updateQueue===i&&(s.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function Fi(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function Gi(i,s,c){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,(wt&2)!==0){var p=h.pending;return p===null?s.next=s:(s.next=p.next,p.next=s),h.pending=s,s=Lu(i),c0(i,null,c),s}return Iu(i,h,s,c),Lu(i)}function Rl(i,s,c){if(s=s.updateQueue,s!==null&&(s=s.shared,(c&4194176)!==0)){var h=s.lanes;h&=i.pendingLanes,c|=h,s.lanes=c,y_(i,c)}}function np(i,s){var c=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,c===h)){var p=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?p=_=C:_=_.next=C,c=c.next}while(c!==null);_===null?p=_=s:_=_.next=s}else p=_=s;c={baseState:h.baseState,firstBaseUpdate:p,lastBaseUpdate:_,shared:h.shared,callbacks:h.callbacks},i.updateQueue=c;return}i=c.lastBaseUpdate,i===null?c.firstBaseUpdate=s:i.next=s,c.lastBaseUpdate=s}var rp=!1;function Nl(){if(rp){var i=Us;if(i!==null)throw i}}function kl(i,s,c,h){rp=!1;var p=i.updateQueue;Hi=!1;var _=p.firstBaseUpdate,C=p.lastBaseUpdate,k=p.shared.pending;if(k!==null){p.shared.pending=null;var j=k,$=j.next;j.next=null,C===null?_=$:C.next=$,C=j;var se=i.alternate;se!==null&&(se=se.updateQueue,k=se.lastBaseUpdate,k!==C&&(k===null?se.firstBaseUpdate=$:k.next=$,se.lastBaseUpdate=j))}if(_!==null){var me=p.baseState;C=0,se=$=j=null,k=_;do{var te=k.lane&-536870913,ae=te!==k.lane;if(ae?(ot&te)===te:(h&te)===te){te!==0&&te===zs&&(rp=!0),se!==null&&(se=se.next={lane:0,tag:k.tag,payload:k.payload,callback:null,next:null});e:{var Me=i,$e=k;te=s;var Dt=c;switch($e.tag){case 1:if(Me=$e.payload,typeof Me=="function"){me=Me.call(Dt,me,te);break e}me=Me;break e;case 3:Me.flags=Me.flags&-65537|128;case 0:if(Me=$e.payload,te=typeof Me=="function"?Me.call(Dt,me,te):Me,te==null)break e;me=U({},me,te);break e;case 2:Hi=!0}}te=k.callback,te!==null&&(i.flags|=64,ae&&(i.flags|=8192),ae=p.callbacks,ae===null?p.callbacks=[te]:ae.push(te))}else ae={lane:te,tag:k.tag,payload:k.payload,callback:k.callback,next:null},se===null?($=se=ae,j=me):se=se.next=ae,C|=te;if(k=k.next,k===null){if(k=p.shared.pending,k===null)break;ae=k,k=ae.next,ae.next=null,p.lastBaseUpdate=ae,p.shared.pending=null}}while(!0);se===null&&(j=me),p.baseState=j,p.firstBaseUpdate=$,p.lastBaseUpdate=se,_===null&&(p.shared.lanes=0),Yi|=C,i.lanes=C,i.memoizedState=me}}function Nx(i,s){if(typeof i!="function")throw Error(r(191,i));i.call(s)}function kx(i,s){var c=i.callbacks;if(c!==null)for(i.callbacks=null,i=0;i<c.length;i++)Nx(c[i],s)}function Ol(i,s){try{var c=s.updateQueue,h=c!==null?c.lastEffect:null;if(h!==null){var p=h.next;c=p;do{if((c.tag&i)===i){h=void 0;var _=c.create,C=c.inst;h=_(),C.destroy=h}c=c.next}while(c!==p)}}catch(k){vt(s,s.return,k)}}function $i(i,s,c){try{var h=s.updateQueue,p=h!==null?h.lastEffect:null;if(p!==null){var _=p.next;h=_;do{if((h.tag&i)===i){var C=h.inst,k=C.destroy;if(k!==void 0){C.destroy=void 0,p=s;var j=c;try{k()}catch($){vt(p,j,$)}}}h=h.next}while(h!==_)}}catch($){vt(s,s.return,$)}}function Ox(i){var s=i.updateQueue;if(s!==null){var c=i.stateNode;try{kx(s,c)}catch(h){vt(i,i.return,h)}}}function Dx(i,s,c){c.props=$a(i.type,i.memoizedProps),c.state=i.memoizedState;try{c.componentWillUnmount()}catch(h){vt(i,s,h)}}function Wa(i,s){try{var c=i.ref;if(c!==null){var h=i.stateNode;switch(i.tag){case 26:case 27:case 5:var p=h;break;default:p=h}typeof c=="function"?i.refCleanup=c(p):c.current=p}}catch(_){vt(i,s,_)}}function jn(i,s){var c=i.ref,h=i.refCleanup;if(c!==null)if(typeof h=="function")try{h()}catch(p){vt(i,s,p)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(p){vt(i,s,p)}else c.current=null}function Ix(i){var s=i.type,c=i.memoizedProps,h=i.stateNode;try{e:switch(s){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(p){vt(i,i.return,p)}}function Lx(i,s,c){try{var h=i.stateNode;AL(h,i.type,c,s),h[Nn]=s}catch(p){vt(i,i.return,p)}}function Mx(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27||i.tag===4}function ip(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||Mx(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 ap(i,s,c){var h=i.tag;if(h===5||h===6)i=i.stateNode,s?c.nodeType===8?c.parentNode.insertBefore(i,s):c.insertBefore(i,s):(c.nodeType===8?(s=c.parentNode,s.insertBefore(i,c)):(s=c,s.appendChild(i)),c=c._reactRootContainer,c!=null||s.onclick!==null||(s.onclick=md));else if(h!==4&&h!==27&&(i=i.child,i!==null))for(ap(i,s,c),i=i.sibling;i!==null;)ap(i,s,c),i=i.sibling}function td(i,s,c){var h=i.tag;if(h===5||h===6)i=i.stateNode,s?c.insertBefore(i,s):c.appendChild(i);else if(h!==4&&h!==27&&(i=i.child,i!==null))for(td(i,s,c),i=i.sibling;i!==null;)td(i,s,c),i=i.sibling}var ui=!1,kt=!1,sp=!1,jx=typeof WeakSet=="function"?WeakSet:Set,Qt=null,Px=!1;function eL(i,s){if(i=i.containerInfo,Lp=xd,i=e0(i),lm(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 p=h.anchorOffset,_=h.focusNode;h=h.focusOffset;try{c.nodeType,_.nodeType}catch{c=null;break e}var C=0,k=-1,j=-1,$=0,se=0,me=i,te=null;t:for(;;){for(var ae;me!==c||p!==0&&me.nodeType!==3||(k=C+p),me!==_||h!==0&&me.nodeType!==3||(j=C+h),me.nodeType===3&&(C+=me.nodeValue.length),(ae=me.firstChild)!==null;)te=me,me=ae;for(;;){if(me===i)break t;if(te===c&&++$===p&&(k=C),te===_&&++se===h&&(j=C),(ae=me.nextSibling)!==null)break;me=te,te=me.parentNode}me=ae}c=k===-1||j===-1?null:{start:k,end:j}}else c=null}c=c||{start:0,end:0}}else c=null;for(Mp={focusedElem:i,selectionRange:c},xd=!1,Qt=s;Qt!==null;)if(s=Qt,i=s.child,(s.subtreeFlags&1028)!==0&&i!==null)i.return=s,Qt=i;else for(;Qt!==null;){switch(s=Qt,_=s.alternate,i=s.flags,s.tag){case 0:break;case 11:case 15:break;case 1:if((i&1024)!==0&&_!==null){i=void 0,c=s,p=_.memoizedProps,_=_.memoizedState,h=c.stateNode;try{var Me=$a(c.type,p,c.elementType===c.type);i=h.getSnapshotBeforeUpdate(Me,_),h.__reactInternalSnapshotBeforeUpdate=i}catch($e){vt(c,c.return,$e)}}break;case 3:if((i&1024)!==0){if(i=s.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=s.sibling,i!==null){i.return=s.return,Qt=i;break}Qt=s.return}return Me=Px,Px=!1,Me}function Vx(i,s,c){var h=c.flags;switch(c.tag){case 0:case 11:case 15:fi(i,c),h&4&&Ol(5,c);break;case 1:if(fi(i,c),h&4)if(i=c.stateNode,s===null)try{i.componentDidMount()}catch(k){vt(c,c.return,k)}else{var p=$a(c.type,s.memoizedProps);s=s.memoizedState;try{i.componentDidUpdate(p,s,i.__reactInternalSnapshotBeforeUpdate)}catch(k){vt(c,c.return,k)}}h&64&&Ox(c),h&512&&Wa(c,c.return);break;case 3:if(fi(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{kx(h,i)}catch(k){vt(c,c.return,k)}}break;case 26:fi(i,c),h&512&&Wa(c,c.return);break;case 27:case 5:fi(i,c),s===null&&h&4&&Ix(c),h&512&&Wa(c,c.return);break;case 12:fi(i,c);break;case 13:fi(i,c),h&4&&Ux(i,c);break;case 22:if(p=c.memoizedState!==null||ui,!p){s=s!==null&&s.memoizedState!==null||kt;var _=ui,C=kt;ui=p,(kt=s)&&!C?qi(i,c,(c.subtreeFlags&8772)!==0):fi(i,c),ui=_,kt=C}h&512&&(c.memoizedProps.mode==="manual"?Wa(c,c.return):jn(c,c.return));break;default:fi(i,c)}}function Bx(i){var s=i.alternate;s!==null&&(i.alternate=null,Bx(s)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(s=i.stateNode,s!==null&&qh(s)),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 zt=null,Pn=!1;function di(i,s,c){for(c=c.child;c!==null;)zx(i,s,c),c=c.sibling}function zx(i,s,c){if(rn&&typeof rn.onCommitFiberUnmount=="function")try{rn.onCommitFiberUnmount(ei,c)}catch{}switch(c.tag){case 26:kt||jn(c,s),di(i,s,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:kt||jn(c,s);var h=zt,p=Pn;for(zt=c.stateNode,di(i,s,c),c=c.stateNode,s=c.attributes;s.length;)c.removeAttributeNode(s[0]);qh(c),zt=h,Pn=p;break;case 5:kt||jn(c,s);case 6:p=zt;var _=Pn;if(zt=null,di(i,s,c),zt=p,Pn=_,zt!==null)if(Pn)try{i=zt,h=c.stateNode,i.nodeType===8?i.parentNode.removeChild(h):i.removeChild(h)}catch(C){vt(c,s,C)}else try{zt.removeChild(c.stateNode)}catch(C){vt(c,s,C)}break;case 18:zt!==null&&(Pn?(s=zt,c=c.stateNode,s.nodeType===8?Vp(s.parentNode,c):s.nodeType===1&&Vp(s,c),Yl(s)):Vp(zt,c.stateNode));break;case 4:h=zt,p=Pn,zt=c.stateNode.containerInfo,Pn=!0,di(i,s,c),zt=h,Pn=p;break;case 0:case 11:case 14:case 15:kt||$i(2,c,s),kt||$i(4,c,s),di(i,s,c);break;case 1:kt||(jn(c,s),h=c.stateNode,typeof h.componentWillUnmount=="function"&&Dx(c,s,h)),di(i,s,c);break;case 21:di(i,s,c);break;case 22:kt||jn(c,s),kt=(h=kt)||c.memoizedState!==null,di(i,s,c),kt=h;break;default:di(i,s,c)}}function Ux(i,s){if(s.memoizedState===null&&(i=s.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{Yl(i)}catch(c){vt(s,s.return,c)}}function tL(i){switch(i.tag){case 13:case 19:var s=i.stateNode;return s===null&&(s=i.stateNode=new jx),s;case 22:return i=i.stateNode,s=i._retryCache,s===null&&(s=i._retryCache=new jx),s;default:throw Error(r(435,i.tag))}}function op(i,s){var c=tL(i);s.forEach(function(h){var p=mL.bind(null,i,h);c.has(h)||(c.add(h),h.then(p,p))})}function er(i,s){var c=s.deletions;if(c!==null)for(var h=0;h<c.length;h++){var p=c[h],_=i,C=s,k=C;e:for(;k!==null;){switch(k.tag){case 27:case 5:zt=k.stateNode,Pn=!1;break e;case 3:zt=k.stateNode.containerInfo,Pn=!0;break e;case 4:zt=k.stateNode.containerInfo,Pn=!0;break e}k=k.return}if(zt===null)throw Error(r(160));zx(_,C,p),zt=null,Pn=!1,_=p.alternate,_!==null&&(_.return=null),p.return=null}if(s.subtreeFlags&13878)for(s=s.child;s!==null;)Hx(s,i),s=s.sibling}var _r=null;function Hx(i,s){var c=i.alternate,h=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:er(s,i),tr(i),h&4&&($i(3,i,i.return),Ol(3,i),$i(5,i,i.return));break;case 1:er(s,i),tr(i),h&512&&(kt||c===null||jn(c,c.return)),h&64&&ui&&(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 p=_r;if(er(s,i),tr(i),h&512&&(kt||c===null||jn(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,p=p.ownerDocument||p;t:switch(h){case"title":_=p.getElementsByTagName("title")[0],(!_||_[rl]||_[fn]||_.namespaceURI==="http://www.w3.org/2000/svg"||_.hasAttribute("itemprop"))&&(_=p.createElement(h),p.head.insertBefore(_,p.querySelector("head > title"))),on(_,h,c),_[fn]=i,Zt(_),h=_;break e;case"link":var C=IE("link","href",p).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}}_=p.createElement(h),on(_,h,c),p.head.appendChild(_);break;case"meta":if(C=IE("meta","content",p).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}}_=p.createElement(h),on(_,h,c),p.head.appendChild(_);break;default:throw Error(r(468,h))}_[fn]=i,Zt(_),h=_}i.stateNode=h}else LE(p,i.type,i.stateNode);else i.stateNode=DE(p,h,i.memoizedProps);else _!==h?(_===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):_.count--,h===null?LE(p,i.type,i.stateNode):DE(p,h,i.memoizedProps)):h===null&&i.stateNode!==null&&Lx(i,i.memoizedProps,c.memoizedProps)}break;case 27:if(h&4&&i.alternate===null){p=i.stateNode,_=i.memoizedProps;try{for(var j=p.firstChild;j;){var $=j.nextSibling,se=j.nodeName;j[rl]||se==="HEAD"||se==="BODY"||se==="SCRIPT"||se==="STYLE"||se==="LINK"&&j.rel.toLowerCase()==="stylesheet"||p.removeChild(j),j=$}for(var me=i.type,te=p.attributes;te.length;)p.removeAttributeNode(te[0]);on(p,me,_),p[fn]=i,p[Nn]=_}catch(Me){vt(i,i.return,Me)}}case 5:if(er(s,i),tr(i),h&512&&(kt||c===null||jn(c,c.return)),i.flags&32){p=i.stateNode;try{Rs(p,"")}catch(Me){vt(i,i.return,Me)}}h&4&&i.stateNode!=null&&(p=i.memoizedProps,Lx(i,p,c!==null?c.memoizedProps:p)),h&1024&&(sp=!0);break;case 6:if(er(s,i),tr(i),h&4){if(i.stateNode===null)throw Error(r(162));h=i.memoizedProps,c=i.stateNode;try{c.nodeValue=h}catch(Me){vt(i,i.return,Me)}}break;case 3:if(vd=null,p=_r,_r=gd(s.containerInfo),er(s,i),_r=p,tr(i),h&4&&c!==null&&c.memoizedState.isDehydrated)try{Yl(s.containerInfo)}catch(Me){vt(i,i.return,Me)}sp&&(sp=!1,Fx(i));break;case 4:h=_r,_r=gd(i.stateNode.containerInfo),er(s,i),tr(i),_r=h;break;case 12:er(s,i),tr(i);break;case 13:er(s,i),tr(i),i.child.flags&8192&&i.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(gp=be()),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,op(i,h)));break;case 22:if(h&512&&(kt||c===null||jn(c,c.return)),j=i.memoizedState!==null,$=c!==null&&c.memoizedState!==null,se=ui,me=kt,ui=se||j,kt=me||$,er(s,i),kt=me,ui=se,tr(i),s=i.stateNode,s._current=i,s._visibility&=-3,s._visibility|=s._pendingVisibility&2,h&8192&&(s._visibility=j?s._visibility&-2:s._visibility|1,j&&(s=ui||kt,c===null||$||s||$s(i)),i.memoizedProps===null||i.memoizedProps.mode!=="manual"))e:for(c=null,s=i;;){if(s.tag===5||s.tag===26||s.tag===27){if(c===null){$=c=s;try{if(p=$.stateNode,j)_=p.style,typeof _.setProperty=="function"?_.setProperty("display","none","important"):_.display="none";else{C=$.stateNode,k=$.memoizedProps.style;var ae=k!=null&&k.hasOwnProperty("display")?k.display:null;C.style.display=ae==null||typeof ae=="boolean"?"":(""+ae).trim()}}catch(Me){vt($,$.return,Me)}}}else if(s.tag===6){if(c===null){$=s;try{$.stateNode.nodeValue=j?"":$.memoizedProps}catch(Me){vt($,$.return,Me)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===i)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break e;for(;s.sibling===null;){if(s.return===null||s.return===i)break e;c===s&&(c=null),s=s.return}c===s&&(c=null),s.sibling.return=s.return,s=s.sibling}h&4&&(h=i.updateQueue,h!==null&&(c=h.retryQueue,c!==null&&(h.retryQueue=null,op(i,c))));break;case 19:er(s,i),tr(i),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,op(i,h)));break;case 21:break;default:er(s,i),tr(i)}}function tr(i){var s=i.flags;if(s&2){try{if(i.tag!==27){e:{for(var c=i.return;c!==null;){if(Mx(c)){var h=c;break e}c=c.return}throw Error(r(160))}switch(h.tag){case 27:var p=h.stateNode,_=ip(i);td(i,_,p);break;case 5:var C=h.stateNode;h.flags&32&&(Rs(C,""),h.flags&=-33);var k=ip(i);td(i,k,C);break;case 3:case 4:var j=h.stateNode.containerInfo,$=ip(i);ap(i,$,j);break;default:throw Error(r(161))}}}catch(se){vt(i,i.return,se)}i.flags&=-3}s&4096&&(i.flags&=-4097)}function Fx(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var s=i;Fx(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),i=i.sibling}}function fi(i,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)Vx(i,s.alternate,s),s=s.sibling}function $s(i){for(i=i.child;i!==null;){var s=i;switch(s.tag){case 0:case 11:case 14:case 15:$i(4,s,s.return),$s(s);break;case 1:jn(s,s.return);var c=s.stateNode;typeof c.componentWillUnmount=="function"&&Dx(s,s.return,c),$s(s);break;case 26:case 27:case 5:jn(s,s.return),$s(s);break;case 22:jn(s,s.return),s.memoizedState===null&&$s(s);break;default:$s(s)}i=i.sibling}}function qi(i,s,c){for(c=c&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var h=s.alternate,p=i,_=s,C=_.flags;switch(_.tag){case 0:case 11:case 15:qi(p,_,c),Ol(4,_);break;case 1:if(qi(p,_,c),h=_,p=h.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch($){vt(h,h.return,$)}if(h=_,p=h.updateQueue,p!==null){var k=h.stateNode;try{var j=p.shared.hiddenCallbacks;if(j!==null)for(p.shared.hiddenCallbacks=null,p=0;p<j.length;p++)Nx(j[p],k)}catch($){vt(h,h.return,$)}}c&&C&64&&Ox(_),Wa(_,_.return);break;case 26:case 27:case 5:qi(p,_,c),c&&h===null&&C&4&&Ix(_),Wa(_,_.return);break;case 12:qi(p,_,c);break;case 13:qi(p,_,c),c&&C&4&&Ux(p,_);break;case 22:_.memoizedState===null&&qi(p,_,c),Wa(_,_.return);break;default:qi(p,_,c)}s=s.sibling}}function lp(i,s){var c=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),i=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(i=s.memoizedState.cachePool.pool),i!==c&&(i!=null&&i.refCount++,c!=null&&xl(c))}function cp(i,s){i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&xl(i))}function Ki(i,s,c,h){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)Gx(i,s,c,h),s=s.sibling}function Gx(i,s,c,h){var p=s.flags;switch(s.tag){case 0:case 11:case 15:Ki(i,s,c,h),p&2048&&Ol(9,s);break;case 3:Ki(i,s,c,h),p&2048&&(i=null,s.alternate!==null&&(i=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==i&&(s.refCount++,i!=null&&xl(i)));break;case 12:if(p&2048){Ki(i,s,c,h),i=s.stateNode;try{var _=s.memoizedProps,C=_.id,k=_.onPostCommit;typeof k=="function"&&k(C,s.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(j){vt(s,s.return,j)}}else Ki(i,s,c,h);break;case 23:break;case 22:_=s.stateNode,s.memoizedState!==null?_._visibility&4?Ki(i,s,c,h):Dl(i,s):_._visibility&4?Ki(i,s,c,h):(_._visibility|=4,qs(i,s,c,h,(s.subtreeFlags&10256)!==0)),p&2048&&lp(s.alternate,s);break;case 24:Ki(i,s,c,h),p&2048&&cp(s.alternate,s);break;default:Ki(i,s,c,h)}}function qs(i,s,c,h,p){for(p=p&&(s.subtreeFlags&10256)!==0,s=s.child;s!==null;){var _=i,C=s,k=c,j=h,$=C.flags;switch(C.tag){case 0:case 11:case 15:qs(_,C,k,j,p),Ol(8,C);break;case 23:break;case 22:var se=C.stateNode;C.memoizedState!==null?se._visibility&4?qs(_,C,k,j,p):Dl(_,C):(se._visibility|=4,qs(_,C,k,j,p)),p&&$&2048&&lp(C.alternate,C);break;case 24:qs(_,C,k,j,p),p&&$&2048&&cp(C.alternate,C);break;default:qs(_,C,k,j,p)}s=s.sibling}}function Dl(i,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var c=i,h=s,p=h.flags;switch(h.tag){case 22:Dl(c,h),p&2048&&lp(h.alternate,h);break;case 24:Dl(c,h),p&2048&&cp(h.alternate,h);break;default:Dl(c,h)}s=s.sibling}}var Il=8192;function Ks(i){if(i.subtreeFlags&Il)for(i=i.child;i!==null;)$x(i),i=i.sibling}function $x(i){switch(i.tag){case 26:Ks(i),i.flags&Il&&i.memoizedState!==null&&FL(_r,i.memoizedState,i.memoizedProps);break;case 5:Ks(i);break;case 3:case 4:var s=_r;_r=gd(i.stateNode.containerInfo),Ks(i),_r=s;break;case 22:i.memoizedState===null&&(s=i.alternate,s!==null&&s.memoizedState!==null?(s=Il,Il=16777216,Ks(i),Il=s):Ks(i));break;default:Ks(i)}}function qx(i){var s=i.alternate;if(s!==null&&(i=s.child,i!==null)){s.child=null;do s=i.sibling,i.sibling=null,i=s;while(i!==null)}}function Ll(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var c=0;c<s.length;c++){var h=s[c];Qt=h,Wx(h,i)}qx(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)Kx(i),i=i.sibling}function Kx(i){switch(i.tag){case 0:case 11:case 15:Ll(i),i.flags&2048&&$i(9,i,i.return);break;case 3:Ll(i);break;case 12:Ll(i);break;case 22:var s=i.stateNode;i.memoizedState!==null&&s._visibility&4&&(i.return===null||i.return.tag!==13)?(s._visibility&=-5,nd(i)):Ll(i);break;default:Ll(i)}}function nd(i){var s=i.deletions;if((i.flags&16)!==0){if(s!==null)for(var c=0;c<s.length;c++){var h=s[c];Qt=h,Wx(h,i)}qx(i)}for(i=i.child;i!==null;){switch(s=i,s.tag){case 0:case 11:case 15:$i(8,s,s.return),nd(s);break;case 22:c=s.stateNode,c._visibility&4&&(c._visibility&=-5,nd(s));break;default:nd(s)}i=i.sibling}}function Wx(i,s){for(;Qt!==null;){var c=Qt;switch(c.tag){case 0:case 11:case 15:$i(8,c,s);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:xl(c.memoizedState.cache)}if(h=c.child,h!==null)h.return=c,Qt=h;else e:for(c=i;Qt!==null;){h=Qt;var p=h.sibling,_=h.return;if(Bx(h),h===c){Qt=null;break e}if(p!==null){p.return=_,Qt=p;break e}Qt=_}}}function nL(i,s,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=s,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 nr(i,s,c,h){return new nL(i,s,c,h)}function up(i){return i=i.prototype,!(!i||!i.isReactComponent)}function Wi(i,s){var c=i.alternate;return c===null?(c=nr(i.tag,s,i.key,i.mode),c.elementType=i.elementType,c.type=i.type,c.stateNode=i.stateNode,c.alternate=i,i.alternate=c):(c.pendingProps=s,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,s=i.dependencies,c.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},c.sibling=i.sibling,c.index=i.index,c.ref=i.ref,c.refCleanup=i.refCleanup,c}function Yx(i,s){i.flags&=31457282;var c=i.alternate;return c===null?(i.childLanes=0,i.lanes=s,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,s=c.dependencies,i.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),i}function rd(i,s,c,h,p,_){var C=0;if(h=i,typeof i=="function")up(i)&&(C=1);else if(typeof i=="string")C=UL(i,c,Fe.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case d:return Ya(c.children,p,_,s);case f:C=8,p|=24;break;case m:return i=nr(12,c,s,p|2),i.elementType=m,i.lanes=_,i;case S:return i=nr(13,c,s,p),i.elementType=S,i.lanes=_,i;case A:return i=nr(19,c,s,p),i.elementType=A,i.lanes=_,i;case R:return Zx(c,p,_,s);default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case y:case v:C=10;break e;case g:C=9;break e;case x:C=11;break e;case w:C=14;break e;case T:C=16,h=null;break e}C=29,c=Error(r(130,i===null?"null":typeof i,"")),h=null}return s=nr(C,c,s,p),s.elementType=i,s.type=h,s.lanes=_,s}function Ya(i,s,c,h){return i=nr(7,i,h,s),i.lanes=c,i}function Zx(i,s,c,h){i=nr(22,i,h,s),i.elementType=R,i.lanes=c;var p={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var _=p._current;if(_===null)throw Error(r(456));if((p._pendingVisibility&2)===0){var C=ji(_,2);C!==null&&(p._pendingVisibility|=2,En(C,_,2))}},attach:function(){var _=p._current;if(_===null)throw Error(r(456));if((p._pendingVisibility&2)!==0){var C=ji(_,2);C!==null&&(p._pendingVisibility&=-3,En(C,_,2))}}};return i.stateNode=p,i}function dp(i,s,c){return i=nr(6,i,null,s),i.lanes=c,i}function fp(i,s,c){return s=nr(4,i.children!==null?i.children:[],i.key,s),s.lanes=c,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}function hi(i){i.flags|=4}function Xx(i,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!ME(s)){if(s=Jn.current,s!==null&&((ot&4194176)===ot?Ir!==null:(ot&62914560)!==ot&&(ot&536870912)===0||s!==Ir))throw vl=ym,m0;i.flags|=8192}}function id(i,s){s!==null&&(i.flags|=4),i.flags&16384&&(s=i.tag!==22?p_():536870912,i.lanes|=s,Ys|=s)}function Ml(i,s){if(!ut)switch(i.tailMode){case"hidden":s=i.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.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?s||i.tail===null?i.tail=null:i.tail.sibling=null:h.sibling=null}}function At(i){var s=i.alternate!==null&&i.alternate.child===i.child,c=0,h=0;if(s)for(var p=i.child;p!==null;)c|=p.lanes|p.childLanes,h|=p.subtreeFlags&31457280,h|=p.flags&31457280,p.return=i,p=p.sibling;else for(p=i.child;p!==null;)c|=p.lanes|p.childLanes,h|=p.subtreeFlags,h|=p.flags,p.return=i,p=p.sibling;return i.subtreeFlags|=h,i.childLanes=c,s}function rL(i,s,c){var h=s.pendingProps;switch(pm(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return At(s),null;case 1:return At(s),null;case 3:return c=s.stateNode,h=null,i!==null&&(h=i.memoizedState.cache),s.memoizedState.cache!==h&&(s.flags|=2048),ci(Gt),Cn(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(i===null||i.child===null)&&(ml(s)?hi(s):i===null||i.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,br!==null&&(_p(br),br=null))),At(s),null;case 26:return c=s.memoizedState,i===null?(hi(s),c!==null?(At(s),Xx(s,c)):(At(s),s.flags&=-16777217)):c?c!==i.memoizedState?(hi(s),At(s),Xx(s,c)):(At(s),s.flags&=-16777217):(i.memoizedProps!==h&&hi(s),At(s),s.flags&=-16777217),null;case 27:Na(s),c=Et.current;var p=s.type;if(i!==null&&s.stateNode!=null)i.memoizedProps!==h&&hi(s);else{if(!h){if(s.stateNode===null)throw Error(r(166));return At(s),null}i=Fe.current,ml(s)?f0(s):(i=CE(p,h,c),s.stateNode=i,hi(s))}return At(s),null;case 5:if(Na(s),c=s.type,i!==null&&s.stateNode!=null)i.memoizedProps!==h&&hi(s);else{if(!h){if(s.stateNode===null)throw Error(r(166));return At(s),null}if(i=Fe.current,ml(s))f0(s);else{switch(p=pd(Et.current),i){case 1:i=p.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:i=p.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":i=p.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":i=p.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":i=p.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof h.is=="string"?p.createElement("select",{is:h.is}):p.createElement("select"),h.multiple?i.multiple=!0:h.size&&(i.size=h.size);break;default:i=typeof h.is=="string"?p.createElement(c,{is:h.is}):p.createElement(c)}}i[fn]=s,i[Nn]=h;e:for(p=s.child;p!==null;){if(p.tag===5||p.tag===6)i.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===s)break e;for(;p.sibling===null;){if(p.return===null||p.return===s)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}s.stateNode=i;e:switch(on(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&&hi(s)}}return At(s),s.flags&=-16777217,null;case 6:if(i&&s.stateNode!=null)i.memoizedProps!==h&&hi(s);else{if(typeof h!="string"&&s.stateNode===null)throw Error(r(166));if(i=Et.current,ml(s)){if(i=s.stateNode,c=s.memoizedProps,h=null,p=xn,p!==null)switch(p.tag){case 27:case 5:h=p.memoizedProps}i[fn]=s,i=!!(i.nodeValue===c||h!==null&&h.suppressHydrationWarning===!0||xE(i.nodeValue,c)),i||Ba(s)}else i=pd(i).createTextNode(h),i[fn]=s,s.stateNode=i}return At(s),null;case 13:if(h=s.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(p=ml(s),h!==null&&h.dehydrated!==null){if(i===null){if(!p)throw Error(r(318));if(p=s.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(r(317));p[fn]=s}else pl(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;At(s),p=!1}else br!==null&&(_p(br),br=null),p=!0;if(!p)return s.flags&256?(ai(s),s):(ai(s),null)}if(ai(s),(s.flags&128)!==0)return s.lanes=c,s;if(c=h!==null,i=i!==null&&i.memoizedState!==null,c){h=s.child,p=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(p=h.alternate.memoizedState.cachePool.pool);var _=null;h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(_=h.memoizedState.cachePool.pool),_!==p&&(h.flags|=2048)}return c!==i&&c&&(s.child.flags|=8192),id(s,s.updateQueue),At(s),null;case 4:return Cn(),i===null&&Op(s.stateNode.containerInfo),At(s),null;case 10:return ci(s.type),At(s),null;case 19:if(De(Ft),p=s.memoizedState,p===null)return At(s),null;if(h=(s.flags&128)!==0,_=p.rendering,_===null)if(h)Ml(p,!1);else{if(Ot!==0||i!==null&&(i.flags&128)!==0)for(i=s.child;i!==null;){if(_=Uu(i),_!==null){for(s.flags|=128,Ml(p,!1),i=_.updateQueue,s.updateQueue=i,id(s,i),s.subtreeFlags=0,i=c,c=s.child;c!==null;)Yx(c,i),c=c.sibling;return Ce(Ft,Ft.current&1|2),s.child}i=i.sibling}p.tail!==null&&be()>ad&&(s.flags|=128,h=!0,Ml(p,!1),s.lanes=4194304)}else{if(!h)if(i=Uu(_),i!==null){if(s.flags|=128,h=!0,i=i.updateQueue,s.updateQueue=i,id(s,i),Ml(p,!0),p.tail===null&&p.tailMode==="hidden"&&!_.alternate&&!ut)return At(s),null}else 2*be()-p.renderingStartTime>ad&&c!==536870912&&(s.flags|=128,h=!0,Ml(p,!1),s.lanes=4194304);p.isBackwards?(_.sibling=s.child,s.child=_):(i=p.last,i!==null?i.sibling=_:s.child=_,p.last=_)}return p.tail!==null?(s=p.tail,p.rendering=s,p.tail=s.sibling,p.renderingStartTime=be(),s.sibling=null,i=Ft.current,Ce(Ft,h?i&1|2:i&1),s):(At(s),null);case 22:case 23:return ai(s),bm(),h=s.memoizedState!==null,i!==null?i.memoizedState!==null!==h&&(s.flags|=8192):h&&(s.flags|=8192),h?(c&536870912)!==0&&(s.flags&128)===0&&(At(s),s.subtreeFlags&6&&(s.flags|=8192)):At(s),c=s.updateQueue,c!==null&&id(s,c.retryQueue),c=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),h=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(h=s.memoizedState.cachePool.pool),h!==c&&(s.flags|=2048),i!==null&&De(Ua),null;case 24:return c=null,i!==null&&(c=i.memoizedState.cache),s.memoizedState.cache!==c&&(s.flags|=2048),ci(Gt),At(s),null;case 25:return null}throw Error(r(156,s.tag))}function iL(i,s){switch(pm(s),s.tag){case 1:return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 3:return ci(Gt),Cn(),i=s.flags,(i&65536)!==0&&(i&128)===0?(s.flags=i&-65537|128,s):null;case 26:case 27:case 5:return Na(s),null;case 13:if(ai(s),i=s.memoizedState,i!==null&&i.dehydrated!==null){if(s.alternate===null)throw Error(r(340));pl()}return i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 19:return De(Ft),null;case 4:return Cn(),null;case 10:return ci(s.type),null;case 22:case 23:return ai(s),bm(),i!==null&&De(Ua),i=s.flags,i&65536?(s.flags=i&-65537|128,s):null;case 24:return ci(Gt),null;case 25:return null;default:return null}}function Qx(i,s){switch(pm(s),s.tag){case 3:ci(Gt),Cn();break;case 26:case 27:case 5:Na(s);break;case 4:Cn();break;case 13:ai(s);break;case 19:De(Ft);break;case 10:ci(s.type);break;case 22:case 23:ai(s),bm(),i!==null&&De(Ua);break;case 24:ci(Gt)}}var aL={getCacheForType:function(i){var s=hn(Gt),c=s.data.get(i);return c===void 0&&(c=i(),s.data.set(i,c)),c}},sL=typeof WeakMap=="function"?WeakMap:Map,wt=0,bt=null,it=null,ot=0,_t=0,Vn=null,mi=!1,Ws=!1,hp=!1,pi=0,Ot=0,Yi=0,Za=0,mp=0,rr=0,Ys=0,jl=null,Mr=null,pp=!1,gp=0,ad=1/0,sd=null,Zi=null,od=!1,Xa=null,Pl=0,yp=0,vp=null,Vl=0,bp=null;function Bn(){if((wt&2)!==0&&ot!==0)return ot&-ot;if(B.T!==null){var i=zs;return i!==0?i:Cp()}return b_()}function Jx(){rr===0&&(rr=(ot&536870912)===0||ut?m_():536870912);var i=Jn.current;return i!==null&&(i.flags|=32),rr}function En(i,s,c){(i===bt&&_t===2||i.cancelPendingCommit!==null)&&(Zs(i,0),gi(i,ot,rr,!1)),nl(i,c),((wt&2)===0||i!==bt)&&(i===bt&&((wt&2)===0&&(Za|=c),Ot===4&&gi(i,ot,rr,!1)),jr(i))}function eE(i,s,c){if((wt&6)!==0)throw Error(r(327));var h=!c&&(s&60)===0&&(s&i.expiredLanes)===0||tl(i,s),p=h?cL(i,s):Sp(i,s,!0),_=h;do{if(p===0){Ws&&!h&&gi(i,s,0,!1);break}else if(p===6)gi(i,s,0,!mi);else{if(c=i.current.alternate,_&&!oL(c)){p=Sp(i,s,!1),_=!1;continue}if(p===2){if(_=s,i.errorRecoveryDisabledLanes&_)var C=0;else C=i.pendingLanes&-536870913,C=C!==0?C:C&536870912?536870912:0;if(C!==0){s=C;e:{var k=i;p=jl;var j=k.current.memoizedState.isDehydrated;if(j&&(Zs(k,C).flags|=256),C=Sp(k,C,!1),C!==2){if(hp&&!j){k.errorRecoveryDisabledLanes|=_,Za|=_,p=4;break e}_=Mr,Mr=p,_!==null&&_p(_)}p=C}if(_=!1,p!==2)continue}}if(p===1){Zs(i,0),gi(i,s,0,!0);break}e:{switch(h=i,p){case 0:case 1:throw Error(r(345));case 4:if((s&4194176)===s){gi(h,s,rr,!mi);break e}break;case 2:Mr=null;break;case 3:case 5:break;default:throw Error(r(329))}if(h.finishedWork=c,h.finishedLanes=s,(s&62914560)===s&&(_=gp+300-be(),10<_)){if(gi(h,s,rr,!mi),_u(h,0)!==0)break e;h.timeoutHandle=AE(tE.bind(null,h,c,Mr,sd,pp,s,rr,Za,Ys,mi,2,-0,0),_);break e}tE(h,c,Mr,sd,pp,s,rr,Za,Ys,mi,0,-0,0)}}break}while(!0);jr(i)}function _p(i){Mr===null?Mr=i:Mr.push.apply(Mr,i)}function tE(i,s,c,h,p,_,C,k,j,$,se,me,te){var ae=s.subtreeFlags;if((ae&8192||(ae&16785408)===16785408)&&(Gl={stylesheets:null,count:0,unsuspend:HL},$x(s),s=GL(),s!==null)){i.cancelPendingCommit=s(lE.bind(null,i,c,h,p,C,k,j,1,me,te)),gi(i,_,C,!$);return}lE(i,c,h,p,C,k,j,se,me,te)}function oL(i){for(var s=i;;){var c=s.tag;if((c===0||c===11||c===15)&&s.flags&16384&&(c=s.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var h=0;h<c.length;h++){var p=c[h],_=p.getSnapshot;p=p.value;try{if(!Mn(_(),p))return!1}catch{return!1}}if(c=s.child,s.subtreeFlags&16384&&c!==null)c.return=s,s=c;else{if(s===i)break;for(;s.sibling===null;){if(s.return===null||s.return===i)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function gi(i,s,c,h){s&=~mp,s&=~Za,i.suspendedLanes|=s,i.pingedLanes&=~s,h&&(i.warmLanes|=s),h=i.expirationTimes;for(var p=s;0<p;){var _=31-_n(p),C=1<<_;h[_]=-1,p&=~C}c!==0&&g_(i,c,s)}function ld(){return(wt&6)===0?(Bl(0),!1):!0}function xp(){if(it!==null){if(_t===0)var i=it.return;else i=it,li=qa=null,Cm(i),Vs=null,bl=0,i=it;for(;i!==null;)Qx(i.alternate,i),i=i.return;it=null}}function Zs(i,s){i.finishedWork=null,i.finishedLanes=0;var c=i.timeoutHandle;c!==-1&&(i.timeoutHandle=-1,TL(c)),c=i.cancelPendingCommit,c!==null&&(i.cancelPendingCommit=null,c()),xp(),bt=i,it=c=Wi(i.current,null),ot=s,_t=0,Vn=null,mi=!1,Ws=tl(i,s),hp=!1,Ys=rr=mp=Za=Yi=Ot=0,Mr=jl=null,pp=!1,(s&8)!==0&&(s|=s&32);var h=i.entangledLanes;if(h!==0)for(i=i.entanglements,h&=s;0<h;){var p=31-_n(h),_=1<<p;s|=i[p],h&=~_}return pi=s,Du(),c}function nE(i,s){Je=null,B.H=Lr,s===yl?(s=y0(),_t=3):s===m0?(s=y0(),_t=4):_t=s===px?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,Vn=s,it===null&&(Ot=1,Qu(i,Zn(s,i.current)))}function rE(){var i=B.H;return B.H=Lr,i===null?Lr:i}function iE(){var i=B.A;return B.A=aL,i}function Ep(){Ot=4,mi||(ot&4194176)!==ot&&Jn.current!==null||(Ws=!0),(Yi&134217727)===0&&(Za&134217727)===0||bt===null||gi(bt,ot,rr,!1)}function Sp(i,s,c){var h=wt;wt|=2;var p=rE(),_=iE();(bt!==i||ot!==s)&&(sd=null,Zs(i,s)),s=!1;var C=Ot;e:do try{if(_t!==0&&it!==null){var k=it,j=Vn;switch(_t){case 8:xp(),C=6;break e;case 3:case 2:case 6:Jn.current===null&&(s=!0);var $=_t;if(_t=0,Vn=null,Xs(i,k,j,$),c&&Ws){C=0;break e}break;default:$=_t,_t=0,Vn=null,Xs(i,k,j,$)}}lL(),C=Ot;break}catch(se){nE(i,se)}while(!0);return s&&i.shellSuspendCounter++,li=qa=null,wt=h,B.H=p,B.A=_,it===null&&(bt=null,ot=0,Du()),C}function lL(){for(;it!==null;)aE(it)}function cL(i,s){var c=wt;wt|=2;var h=rE(),p=iE();bt!==i||ot!==s?(sd=null,ad=be()+500,Zs(i,s)):Ws=tl(i,s);e:do try{if(_t!==0&&it!==null){s=it;var _=Vn;t:switch(_t){case 1:_t=0,Vn=null,Xs(i,s,_,1);break;case 2:if(p0(_)){_t=0,Vn=null,sE(s);break}s=function(){_t===2&&bt===i&&(_t=7),jr(i)},_.then(s,s);break e;case 3:_t=7;break e;case 4:_t=5;break e;case 7:p0(_)?(_t=0,Vn=null,sE(s)):(_t=0,Vn=null,Xs(i,s,_,7));break;case 5:var C=null;switch(it.tag){case 26:C=it.memoizedState;case 5:case 27:var k=it;if(!C||ME(C)){_t=0,Vn=null;var j=k.sibling;if(j!==null)it=j;else{var $=k.return;$!==null?(it=$,cd($)):it=null}break t}}_t=0,Vn=null,Xs(i,s,_,5);break;case 6:_t=0,Vn=null,Xs(i,s,_,6);break;case 8:xp(),Ot=6;break e;default:throw Error(r(462))}}uL();break}catch(se){nE(i,se)}while(!0);return li=qa=null,B.H=h,B.A=p,wt=c,it!==null?0:(bt=null,ot=0,Du(),Ot)}function uL(){for(;it!==null&&!oe();)aE(it)}function aE(i){var s=Cx(i.alternate,i,pi);i.memoizedProps=i.pendingProps,s===null?cd(i):it=s}function sE(i){var s=i,c=s.alternate;switch(s.tag){case 15:case 0:s=xx(c,s,s.pendingProps,s.type,void 0,ot);break;case 11:s=xx(c,s,s.pendingProps,s.type.render,s.ref,ot);break;case 5:Cm(s);default:Qx(c,s),s=it=Yx(s,pi),s=Cx(c,s,pi)}i.memoizedProps=i.pendingProps,s===null?cd(i):it=s}function Xs(i,s,c,h){li=qa=null,Cm(s),Vs=null,bl=0;var p=s.return;try{if(QI(i,p,s,c,ot)){Ot=1,Qu(i,Zn(c,i.current)),it=null;return}}catch(_){if(p!==null)throw it=p,_;Ot=1,Qu(i,Zn(c,i.current)),it=null;return}s.flags&32768?(ut||h===1?i=!0:Ws||(ot&536870912)!==0?i=!1:(mi=i=!0,(h===2||h===3||h===6)&&(h=Jn.current,h!==null&&h.tag===13&&(h.flags|=16384))),oE(s,i)):cd(s)}function cd(i){var s=i;do{if((s.flags&32768)!==0){oE(s,mi);return}i=s.return;var c=rL(s.alternate,s,pi);if(c!==null){it=c;return}if(s=s.sibling,s!==null){it=s;return}it=s=i}while(s!==null);Ot===0&&(Ot=5)}function oE(i,s){do{var c=iL(i.alternate,i);if(c!==null){c.flags&=32767,it=c;return}if(c=i.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!s&&(i=i.sibling,i!==null)){it=i;return}it=i=c}while(i!==null);Ot=6,it=null}function lE(i,s,c,h,p,_,C,k,j,$){var se=B.T,me=re.p;try{re.p=2,B.T=null,dL(i,s,c,h,me,p,_,C,k,j,$)}finally{B.T=se,re.p=me}}function dL(i,s,c,h,p,_,C,k){do Qs();while(Xa!==null);if((wt&6)!==0)throw Error(r(327));var j=i.finishedWork;if(h=i.finishedLanes,j===null)return null;if(i.finishedWork=null,i.finishedLanes=0,j===i.current)throw Error(r(177));i.callbackNode=null,i.callbackPriority=0,i.cancelPendingCommit=null;var $=j.lanes|j.childLanes;if($|=fm,FD(i,h,$,_,C,k),i===bt&&(it=bt=null,ot=0),(j.subtreeFlags&10256)===0&&(j.flags&10256)===0||od||(od=!0,yp=$,vp=c,pL(ht,function(){return Qs(),null})),c=(j.flags&15990)!==0,(j.subtreeFlags&15990)!==0||c?(c=B.T,B.T=null,_=re.p,re.p=2,C=wt,wt|=4,eL(i,j),Hx(j,i),MI(Mp,i.containerInfo),xd=!!Lp,Mp=Lp=null,i.current=j,Vx(i,j.alternate,j),we(),wt=C,re.p=_,B.T=c):i.current=j,od?(od=!1,Xa=i,Pl=h):cE(i,$),$=i.pendingLanes,$===0&&(Zi=null),Fh(j.stateNode),jr(i),s!==null)for(p=i.onRecoverableError,j=0;j<s.length;j++)$=s[j],p($.value,{componentStack:$.stack});return(Pl&3)!==0&&Qs(),$=i.pendingLanes,(h&4194218)!==0&&($&42)!==0?i===bp?Vl++:(Vl=0,bp=i):Vl=0,Bl(0),null}function cE(i,s){(i.pooledCacheLanes&=s)===0&&(s=i.pooledCache,s!=null&&(i.pooledCache=null,xl(s)))}function Qs(){if(Xa!==null){var i=Xa,s=yp;yp=0;var c=v_(Pl),h=B.T,p=re.p;try{if(re.p=32>c?32:c,B.T=null,Xa===null)var _=!1;else{c=vp,vp=null;var C=Xa,k=Pl;if(Xa=null,Pl=0,(wt&6)!==0)throw Error(r(331));var j=wt;if(wt|=4,Kx(C.current),Gx(C,C.current,k,c),wt=j,Bl(0,!1),rn&&typeof rn.onPostCommitFiberRoot=="function")try{rn.onPostCommitFiberRoot(ei,C)}catch{}_=!0}return _}finally{re.p=p,B.T=h,cE(i,s)}}return!1}function uE(i,s,c){s=Zn(c,s),s=Um(i.stateNode,s,2),i=Gi(i,s,2),i!==null&&(nl(i,2),jr(i))}function vt(i,s,c){if(i.tag===3)uE(i,i,c);else for(;s!==null;){if(s.tag===3){uE(s,i,c);break}else if(s.tag===1){var h=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(Zi===null||!Zi.has(h))){i=Zn(c,i),c=hx(2),h=Gi(s,c,2),h!==null&&(mx(c,h,s,i),nl(h,2),jr(h));break}}s=s.return}}function Ap(i,s,c){var h=i.pingCache;if(h===null){h=i.pingCache=new sL;var p=new Set;h.set(s,p)}else p=h.get(s),p===void 0&&(p=new Set,h.set(s,p));p.has(c)||(hp=!0,p.add(c),i=fL.bind(null,i,s,c),s.then(i,i))}function fL(i,s,c){var h=i.pingCache;h!==null&&h.delete(s),i.pingedLanes|=i.suspendedLanes&c,i.warmLanes&=~c,bt===i&&(ot&c)===c&&(Ot===4||Ot===3&&(ot&62914560)===ot&&300>be()-gp?(wt&2)===0&&Zs(i,0):mp|=c,Ys===ot&&(Ys=0)),jr(i)}function dE(i,s){s===0&&(s=p_()),i=ji(i,s),i!==null&&(nl(i,s),jr(i))}function hL(i){var s=i.memoizedState,c=0;s!==null&&(c=s.retryLane),dE(i,c)}function mL(i,s){var c=0;switch(i.tag){case 13:var h=i.stateNode,p=i.memoizedState;p!==null&&(c=p.retryLane);break;case 19:h=i.stateNode;break;case 22:h=i.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(s),dE(i,c)}function pL(i,s){return z(i,s)}var ud=null,Js=null,wp=!1,dd=!1,Tp=!1,Qa=0;function jr(i){i!==Js&&i.next===null&&(Js===null?ud=Js=i:Js=Js.next=i),dd=!0,wp||(wp=!0,yL(gL))}function Bl(i,s){if(!Tp&&dd){Tp=!0;do for(var c=!1,h=ud;h!==null;){if(i!==0){var p=h.pendingLanes;if(p===0)var _=0;else{var C=h.suspendedLanes,k=h.pingedLanes;_=(1<<31-_n(42|i)+1)-1,_&=p&~(C&~k),_=_&201326677?_&201326677|1:_?_|2:0}_!==0&&(c=!0,mE(h,_))}else _=ot,_=_u(h,h===bt?_:0),(_&3)===0||tl(h,_)||(c=!0,mE(h,_));h=h.next}while(c);Tp=!1}}function gL(){dd=wp=!1;var i=0;Qa!==0&&(wL()&&(i=Qa),Qa=0);for(var s=be(),c=null,h=ud;h!==null;){var p=h.next,_=fE(h,s);_===0?(h.next=null,c===null?ud=p:c.next=p,p===null&&(Js=c)):(c=h,(i!==0||(_&3)!==0)&&(dd=!0)),h=p}Bl(i)}function fE(i,s){for(var c=i.suspendedLanes,h=i.pingedLanes,p=i.expirationTimes,_=i.pendingLanes&-62914561;0<_;){var C=31-_n(_),k=1<<C,j=p[C];j===-1?((k&c)===0||(k&h)!==0)&&(p[C]=HD(k,s)):j<=s&&(i.expiredLanes|=k),_&=~k}if(s=bt,c=ot,c=_u(i,i===s?c:0),h=i.callbackNode,c===0||i===s&&_t===2||i.cancelPendingCommit!==null)return h!==null&&h!==null&&J(h),i.callbackNode=null,i.callbackPriority=0;if((c&3)===0||tl(i,c)){if(s=c&-c,s===i.callbackPriority)return s;switch(h!==null&&J(h),v_(c)){case 2:case 8:c=ct;break;case 32:c=ht;break;case 268435456:c=ka;break;default:c=ht}return h=hE.bind(null,i),c=z(c,h),i.callbackPriority=s,i.callbackNode=c,s}return h!==null&&h!==null&&J(h),i.callbackPriority=2,i.callbackNode=null,2}function hE(i,s){var c=i.callbackNode;if(Qs()&&i.callbackNode!==c)return null;var h=ot;return h=_u(i,i===bt?h:0),h===0?null:(eE(i,h,s),fE(i,be()),i.callbackNode!=null&&i.callbackNode===c?hE.bind(null,i):null)}function mE(i,s){if(Qs())return null;eE(i,s,!0)}function yL(i){CL(function(){(wt&6)!==0?z(Pe,i):i()})}function Cp(){return Qa===0&&(Qa=m_()),Qa}function pE(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:wu(""+i)}function gE(i,s){var c=s.ownerDocument.createElement("input");return c.name=s.name,c.value=s.value,i.id&&c.setAttribute("form",i.id),s.parentNode.insertBefore(c,s),i=new FormData(i),c.parentNode.removeChild(c),i}function vL(i,s,c,h,p){if(s==="submit"&&c&&c.stateNode===p){var _=pE((p[Nn]||null).action),C=h.submitter;C&&(s=(s=C[Nn]||null)?pE(s.formAction):C.getAttribute("formAction"),s!==null&&(_=s,C=null));var k=new Nu("action","action",null,h,p);i.push({event:k,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(Qa!==0){var j=C?gE(p,C):new FormData(p);jm(c,{pending:!0,data:j,method:p.method,action:_},null,j)}}else typeof _=="function"&&(k.preventDefault(),j=C?gE(p,C):new FormData(p),jm(c,{pending:!0,data:j,method:p.method,action:_},_,j))},currentTarget:p}]})}}for(var Rp=0;Rp<l0.length;Rp++){var Np=l0[Rp],bL=Np.toLowerCase(),_L=Np[0].toUpperCase()+Np.slice(1);vr(bL,"on"+_L)}vr(r0,"onAnimationEnd"),vr(i0,"onAnimationIteration"),vr(a0,"onAnimationStart"),vr("dblclick","onDoubleClick"),vr("focusin","onFocus"),vr("focusout","onBlur"),vr(PI,"onTransitionRun"),vr(VI,"onTransitionStart"),vr(BI,"onTransitionCancel"),vr(s0,"onTransitionEnd"),Ts("onMouseEnter",["mouseout","mouseover"]),Ts("onMouseLeave",["mouseout","mouseover"]),Ts("onPointerEnter",["pointerout","pointerover"]),Ts("onPointerLeave",["pointerout","pointerover"]),Ia("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ia("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ia("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ia("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ia("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ia("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var zl="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(" "),xL=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(zl));function yE(i,s){s=(s&4)!==0;for(var c=0;c<i.length;c++){var h=i[c],p=h.event;h=h.listeners;e:{var _=void 0;if(s)for(var C=h.length-1;0<=C;C--){var k=h[C],j=k.instance,$=k.currentTarget;if(k=k.listener,j!==_&&p.isPropagationStopped())break e;_=k,p.currentTarget=$;try{_(p)}catch(se){Xu(se)}p.currentTarget=null,_=j}else for(C=0;C<h.length;C++){if(k=h[C],j=k.instance,$=k.currentTarget,k=k.listener,j!==_&&p.isPropagationStopped())break e;_=k,p.currentTarget=$;try{_(p)}catch(se){Xu(se)}p.currentTarget=null,_=j}}}}function at(i,s){var c=s[$h];c===void 0&&(c=s[$h]=new Set);var h=i+"__bubble";c.has(h)||(vE(s,i,2,!1),c.add(h))}function kp(i,s,c){var h=0;s&&(h|=4),vE(c,i,h,s)}var fd="_reactListening"+Math.random().toString(36).slice(2);function Op(i){if(!i[fd]){i[fd]=!0,x_.forEach(function(c){c!=="selectionchange"&&(xL.has(c)||kp(c,!1,i),kp(c,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[fd]||(s[fd]=!0,kp("selectionchange",!1,s))}}function vE(i,s,c,h){switch(UE(s)){case 2:var p=KL;break;case 8:p=WL;break;default:p=Gp}c=p.bind(null,s,c,i),p=void 0,!Jh||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(p=!0),h?p!==void 0?i.addEventListener(s,c,{capture:!0,passive:p}):i.addEventListener(s,c,!0):p!==void 0?i.addEventListener(s,c,{passive:p}):i.addEventListener(s,c,!1)}function Dp(i,s,c,h,p){var _=h;if((s&1)===0&&(s&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===p||k.nodeType===8&&k.parentNode===p)break;if(C===4)for(C=h.return;C!==null;){var j=C.tag;if((j===3||j===4)&&(j=C.stateNode.containerInfo,j===p||j.nodeType===8&&j.parentNode===p))return;C=C.return}for(;k!==null;){if(C=Da(k),C===null)return;if(j=C.tag,j===5||j===6||j===26||j===27){h=_=C;continue e}k=k.parentNode}}h=h.return}I_(function(){var $=_,se=Xh(c),me=[];e:{var te=o0.get(i);if(te!==void 0){var ae=Nu,Me=i;switch(i){case"keypress":if(Cu(c)===0)break e;case"keydown":case"keyup":ae=mI;break;case"focusin":Me="focus",ae=rm;break;case"focusout":Me="blur",ae=rm;break;case"beforeblur":case"afterblur":ae=rm;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":ae=j_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ae=nI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ae=yI;break;case r0:case i0:case a0:ae=aI;break;case s0:ae=bI;break;case"scroll":case"scrollend":ae=eI;break;case"wheel":ae=xI;break;case"copy":case"cut":case"paste":ae=oI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ae=V_;break;case"toggle":case"beforetoggle":ae=SI}var $e=(s&4)!==0,Dt=!$e&&(i==="scroll"||i==="scrollend"),W=$e?te!==null?te+"Capture":null:te;$e=[];for(var G=$,Y;G!==null;){var de=G;if(Y=de.stateNode,de=de.tag,de!==5&&de!==26&&de!==27||Y===null||W===null||(de=al(G,W),de!=null&&$e.push(Ul(G,de,Y))),Dt)break;G=G.return}0<$e.length&&(te=new ae(te,Me,null,c,se),me.push({event:te,listeners:$e}))}}if((s&7)===0){e:{if(te=i==="mouseover"||i==="pointerover",ae=i==="mouseout"||i==="pointerout",te&&c!==Zh&&(Me=c.relatedTarget||c.fromElement)&&(Da(Me)||Me[Ss]))break e;if((ae||te)&&(te=se.window===se?se:(te=se.ownerDocument)?te.defaultView||te.parentWindow:window,ae?(Me=c.relatedTarget||c.toElement,ae=$,Me=Me?Da(Me):null,Me!==null&&(Dt=q(Me),$e=Me.tag,Me!==Dt||$e!==5&&$e!==27&&$e!==6)&&(Me=null)):(ae=null,Me=$),ae!==Me)){if($e=j_,de="onMouseLeave",W="onMouseEnter",G="mouse",(i==="pointerout"||i==="pointerover")&&($e=V_,de="onPointerLeave",W="onPointerEnter",G="pointer"),Dt=ae==null?te:il(ae),Y=Me==null?te:il(Me),te=new $e(de,G+"leave",ae,c,se),te.target=Dt,te.relatedTarget=Y,de=null,Da(se)===$&&($e=new $e(W,G+"enter",Me,c,se),$e.target=Y,$e.relatedTarget=Dt,de=$e),Dt=de,ae&&Me)t:{for($e=ae,W=Me,G=0,Y=$e;Y;Y=eo(Y))G++;for(Y=0,de=W;de;de=eo(de))Y++;for(;0<G-Y;)$e=eo($e),G--;for(;0<Y-G;)W=eo(W),Y--;for(;G--;){if($e===W||W!==null&&$e===W.alternate)break t;$e=eo($e),W=eo(W)}$e=null}else $e=null;ae!==null&&bE(me,te,ae,$e,!1),Me!==null&&Dt!==null&&bE(me,Dt,Me,$e,!0)}}e:{if(te=$?il($):window,ae=te.nodeName&&te.nodeName.toLowerCase(),ae==="select"||ae==="input"&&te.type==="file")var Re=q_;else if(G_(te))if(K_)Re=II;else{Re=OI;var nt=kI}else ae=te.nodeName,!ae||ae.toLowerCase()!=="input"||te.type!=="checkbox"&&te.type!=="radio"?$&&Yh($.elementType)&&(Re=q_):Re=DI;if(Re&&(Re=Re(i,$))){$_(me,Re,c,se);break e}nt&&nt(i,te,$),i==="focusout"&&$&&te.type==="number"&&$.memoizedProps.value!=null&&Wh(te,"number",te.value)}switch(nt=$?il($):window,i){case"focusin":(G_(nt)||nt.contentEditable==="true")&&(Ds=nt,cm=$,hl=null);break;case"focusout":hl=cm=Ds=null;break;case"mousedown":um=!0;break;case"contextmenu":case"mouseup":case"dragend":um=!1,t0(me,c,se);break;case"selectionchange":if(jI)break;case"keydown":case"keyup":t0(me,c,se)}var Ve;if(am)e:{switch(i){case"compositionstart":var Be="onCompositionStart";break e;case"compositionend":Be="onCompositionEnd";break e;case"compositionupdate":Be="onCompositionUpdate";break e}Be=void 0}else Os?H_(i,c)&&(Be="onCompositionEnd"):i==="keydown"&&c.keyCode===229&&(Be="onCompositionStart");Be&&(B_&&c.locale!=="ko"&&(Os||Be!=="onCompositionStart"?Be==="onCompositionEnd"&&Os&&(Ve=L_()):(Mi=se,em="value"in Mi?Mi.value:Mi.textContent,Os=!0)),nt=hd($,Be),0<nt.length&&(Be=new P_(Be,i,null,c,se),me.push({event:Be,listeners:nt}),Ve?Be.data=Ve:(Ve=F_(c),Ve!==null&&(Be.data=Ve)))),(Ve=wI?TI(i,c):CI(i,c))&&(Be=hd($,"onBeforeInput"),0<Be.length&&(nt=new P_("onBeforeInput","beforeinput",null,c,se),me.push({event:nt,listeners:Be}),nt.data=Ve)),vL(me,i,$,c,se)}yE(me,s)})}function Ul(i,s,c){return{instance:i,listener:s,currentTarget:c}}function hd(i,s){for(var c=s+"Capture",h=[];i!==null;){var p=i,_=p.stateNode;p=p.tag,p!==5&&p!==26&&p!==27||_===null||(p=al(i,c),p!=null&&h.unshift(Ul(i,p,_)),p=al(i,s),p!=null&&h.push(Ul(i,p,_))),i=i.return}return h}function eo(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function bE(i,s,c,h,p){for(var _=s._reactName,C=[];c!==null&&c!==h;){var k=c,j=k.alternate,$=k.stateNode;if(k=k.tag,j!==null&&j===h)break;k!==5&&k!==26&&k!==27||$===null||(j=$,p?($=al(c,_),$!=null&&C.unshift(Ul(c,$,j))):p||($=al(c,_),$!=null&&C.push(Ul(c,$,j)))),c=c.return}C.length!==0&&i.push({event:s,listeners:C})}var EL=/\r\n?/g,SL=/\u0000|\uFFFD/g;function _E(i){return(typeof i=="string"?i:""+i).replace(EL,`
|
|
50
|
-
`).replace(SL,"")}function xE(i,s){return s=_E(s),_E(i)===s}function md(){}function gt(i,s,c,h,p,_){switch(c){case"children":typeof h=="string"?s==="body"||s==="textarea"&&h===""||Rs(i,h):(typeof h=="number"||typeof h=="bigint")&&s!=="body"&&Rs(i,""+h);break;case"className":Eu(i,"class",h);break;case"tabIndex":Eu(i,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":Eu(i,c,h);break;case"style":O_(i,h,_);break;case"data":if(s!=="object"){Eu(i,"data",h);break}case"src":case"href":if(h===""&&(s!=="a"||c!=="href")){i.removeAttribute(c);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(c);break}h=wu(""+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"?(s!=="input"&>(i,s,"name",p.name,p,null),gt(i,s,"formEncType",p.formEncType,p,null),gt(i,s,"formMethod",p.formMethod,p,null),gt(i,s,"formTarget",p.formTarget,p,null)):(gt(i,s,"encType",p.encType,p,null),gt(i,s,"method",p.method,p,null),gt(i,s,"target",p.target,p,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(c);break}h=wu(""+h),i.setAttribute(c,h);break;case"onClick":h!=null&&(i.onclick=md);break;case"onScroll":h!=null&&at("scroll",i);break;case"onScrollEnd":h!=null&&at("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(p.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=wu(""+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":at("beforetoggle",i),at("toggle",i),xu(i,"popover",h);break;case"xlinkActuate":ni(i,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":ni(i,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":ni(i,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":ni(i,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":ni(i,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":ni(i,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":ni(i,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":ni(i,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":ni(i,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":xu(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=QD.get(c)||c,xu(i,c,h))}}function Ip(i,s,c,h,p,_){switch(c){case"style":O_(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(p.children!=null)throw Error(r(60));i.innerHTML=c}}break;case"children":typeof h=="string"?Rs(i,h):(typeof h=="number"||typeof h=="bigint")&&Rs(i,""+h);break;case"onScroll":h!=null&&at("scroll",i);break;case"onScrollEnd":h!=null&&at("scrollend",i);break;case"onClick":h!=null&&(i.onclick=md);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!E_.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(p=c.endsWith("Capture"),s=c.slice(2,p?c.length-7:void 0),_=i[Nn]||null,_=_!=null?_[c]:null,typeof _=="function"&&i.removeEventListener(s,_,p),typeof h=="function")){typeof _!="function"&&_!==null&&(c in i?i[c]=null:i.hasAttribute(c)&&i.removeAttribute(c)),i.addEventListener(s,h,p);break e}c in i?i[c]=h:h===!0?i.setAttribute(c,""):xu(i,c,h)}}}function on(i,s,c){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":at("error",i),at("load",i);var h=!1,p=!1,_;for(_ in c)if(c.hasOwnProperty(_)){var C=c[_];if(C!=null)switch(_){case"src":h=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:gt(i,s,_,C,c,null)}}p&>(i,s,"srcSet",c.srcSet,c,null),h&>(i,s,"src",c.src,c,null);return;case"input":at("invalid",i);var k=_=C=p=null,j=null,$=null;for(h in c)if(c.hasOwnProperty(h)){var se=c[h];if(se!=null)switch(h){case"name":p=se;break;case"type":C=se;break;case"checked":j=se;break;case"defaultChecked":$=se;break;case"value":_=se;break;case"defaultValue":k=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(r(137,s));break;default:gt(i,s,h,se,c,null)}}C_(i,_,k,j,$,C,p,!1),Su(i);return;case"select":at("invalid",i),h=C=_=null;for(p in c)if(c.hasOwnProperty(p)&&(k=c[p],k!=null))switch(p){case"value":_=k;break;case"defaultValue":C=k;break;case"multiple":h=k;default:gt(i,s,p,k,c,null)}s=_,c=C,i.multiple=!!h,s!=null?Cs(i,!!h,s,!1):c!=null&&Cs(i,!!h,c,!0);return;case"textarea":at("invalid",i),_=p=h=null;for(C in c)if(c.hasOwnProperty(C)&&(k=c[C],k!=null))switch(C){case"value":h=k;break;case"defaultValue":p=k;break;case"children":_=k;break;case"dangerouslySetInnerHTML":if(k!=null)throw Error(r(91));break;default:gt(i,s,C,k,c,null)}N_(i,h,p,_),Su(i);return;case"option":for(j in c)if(c.hasOwnProperty(j)&&(h=c[j],h!=null))switch(j){case"selected":i.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:gt(i,s,j,h,c,null)}return;case"dialog":at("cancel",i),at("close",i);break;case"iframe":case"object":at("load",i);break;case"video":case"audio":for(h=0;h<zl.length;h++)at(zl[h],i);break;case"image":at("error",i),at("load",i);break;case"details":at("toggle",i);break;case"embed":case"source":case"link":at("error",i),at("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($ in c)if(c.hasOwnProperty($)&&(h=c[$],h!=null))switch($){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:gt(i,s,$,h,c,null)}return;default:if(Yh(s)){for(se in c)c.hasOwnProperty(se)&&(h=c[se],h!==void 0&&Ip(i,s,se,h,c,void 0));return}}for(k in c)c.hasOwnProperty(k)&&(h=c[k],h!=null&>(i,s,k,h,c,null))}function AL(i,s,c,h){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,_=null,C=null,k=null,j=null,$=null,se=null;for(ae in c){var me=c[ae];if(c.hasOwnProperty(ae)&&me!=null)switch(ae){case"checked":break;case"value":break;case"defaultValue":j=me;default:h.hasOwnProperty(ae)||gt(i,s,ae,null,h,me)}}for(var te in h){var ae=h[te];if(me=c[te],h.hasOwnProperty(te)&&(ae!=null||me!=null))switch(te){case"type":_=ae;break;case"name":p=ae;break;case"checked":$=ae;break;case"defaultChecked":se=ae;break;case"value":C=ae;break;case"defaultValue":k=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(r(137,s));break;default:ae!==me&>(i,s,te,ae,h,me)}}Kh(i,C,k,j,$,se,_,p);return;case"select":ae=C=k=te=null;for(_ in c)if(j=c[_],c.hasOwnProperty(_)&&j!=null)switch(_){case"value":break;case"multiple":ae=j;default:h.hasOwnProperty(_)||gt(i,s,_,null,h,j)}for(p in h)if(_=h[p],j=c[p],h.hasOwnProperty(p)&&(_!=null||j!=null))switch(p){case"value":te=_;break;case"defaultValue":k=_;break;case"multiple":C=_;default:_!==j&>(i,s,p,_,h,j)}s=k,c=C,h=ae,te!=null?Cs(i,!!c,te,!1):!!h!=!!c&&(s!=null?Cs(i,!!c,s,!0):Cs(i,!!c,c?[]:"",!1));return;case"textarea":ae=te=null;for(k in c)if(p=c[k],c.hasOwnProperty(k)&&p!=null&&!h.hasOwnProperty(k))switch(k){case"value":break;case"children":break;default:gt(i,s,k,null,h,p)}for(C in h)if(p=h[C],_=c[C],h.hasOwnProperty(C)&&(p!=null||_!=null))switch(C){case"value":te=p;break;case"defaultValue":ae=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(r(91));break;default:p!==_&>(i,s,C,p,h,_)}R_(i,te,ae);return;case"option":for(var Me in c)if(te=c[Me],c.hasOwnProperty(Me)&&te!=null&&!h.hasOwnProperty(Me))switch(Me){case"selected":i.selected=!1;break;default:gt(i,s,Me,null,h,te)}for(j in h)if(te=h[j],ae=c[j],h.hasOwnProperty(j)&&te!==ae&&(te!=null||ae!=null))switch(j){case"selected":i.selected=te&&typeof te!="function"&&typeof te!="symbol";break;default:gt(i,s,j,te,h,ae)}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 $e in c)te=c[$e],c.hasOwnProperty($e)&&te!=null&&!h.hasOwnProperty($e)&>(i,s,$e,null,h,te);for($ in h)if(te=h[$],ae=c[$],h.hasOwnProperty($)&&te!==ae&&(te!=null||ae!=null))switch($){case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(r(137,s));break;default:gt(i,s,$,te,h,ae)}return;default:if(Yh(s)){for(var Dt in c)te=c[Dt],c.hasOwnProperty(Dt)&&te!==void 0&&!h.hasOwnProperty(Dt)&&Ip(i,s,Dt,void 0,h,te);for(se in h)te=h[se],ae=c[se],!h.hasOwnProperty(se)||te===ae||te===void 0&&ae===void 0||Ip(i,s,se,te,h,ae);return}}for(var W in c)te=c[W],c.hasOwnProperty(W)&&te!=null&&!h.hasOwnProperty(W)&>(i,s,W,null,h,te);for(me in h)te=h[me],ae=c[me],!h.hasOwnProperty(me)||te===ae||te==null&&ae==null||gt(i,s,me,te,h,ae)}var Lp=null,Mp=null;function pd(i){return i.nodeType===9?i:i.ownerDocument}function EE(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 SE(i,s){if(i===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&s==="foreignObject"?0:i}function jp(i,s){return i==="textarea"||i==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Pp=null;function wL(){var i=window.event;return i&&i.type==="popstate"?i===Pp?!1:(Pp=i,!0):(Pp=null,!1)}var AE=typeof setTimeout=="function"?setTimeout:void 0,TL=typeof clearTimeout=="function"?clearTimeout:void 0,wE=typeof Promise=="function"?Promise:void 0,CL=typeof queueMicrotask=="function"?queueMicrotask:typeof wE<"u"?function(i){return wE.resolve(null).then(i).catch(RL)}:AE;function RL(i){setTimeout(function(){throw i})}function Vp(i,s){var c=s,h=0;do{var p=c.nextSibling;if(i.removeChild(c),p&&p.nodeType===8)if(c=p.data,c==="/$"){if(h===0){i.removeChild(p),Yl(s);return}h--}else c!=="$"&&c!=="$?"&&c!=="$!"||h++;c=p}while(c);Yl(s)}function Bp(i){var s=i.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var c=s;switch(s=s.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 NL(i,s,c,h){for(;i.nodeType===1;){var p=c;if(i.nodeName.toLowerCase()!==s.toLowerCase()){if(!h&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(h){if(!i[rl])switch(s){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(_=i.getAttribute("rel"),_==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(_!==p.rel||i.getAttribute("href")!==(p.href==null?null:p.href)||i.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||i.getAttribute("title")!==(p.title==null?null:p.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(_=i.getAttribute("src"),(_!==(p.src==null?null:p.src)||i.getAttribute("type")!==(p.type==null?null:p.type)||i.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&_&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(s==="input"&&i.type==="hidden"){var _=p.name==null?null:""+p.name;if(p.type==="hidden"&&i.getAttribute("name")===_)return i}else return i;if(i=xr(i.nextSibling),i===null)break}return null}function kL(i,s,c){if(s==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!c||(i=xr(i.nextSibling),i===null))return null;return i}function xr(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s==="$"||s==="$!"||s==="$?"||s==="F!"||s==="F")break;if(s==="/$")return null}}return i}function TE(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var c=i.data;if(c==="$"||c==="$!"||c==="$?"){if(s===0)return i;s--}else c==="/$"&&s++}i=i.previousSibling}return null}function CE(i,s,c){switch(s=pd(c),i){case"html":if(i=s.documentElement,!i)throw Error(r(452));return i;case"head":if(i=s.head,!i)throw Error(r(453));return i;case"body":if(i=s.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}var ir=new Map,RE=new Set;function gd(i){return typeof i.getRootNode=="function"?i.getRootNode():i.ownerDocument}var yi=re.d;re.d={f:OL,r:DL,D:IL,C:LL,L:ML,m:jL,X:VL,S:PL,M:BL};function OL(){var i=yi.f(),s=ld();return i||s}function DL(i){var s=As(i);s!==null&&s.tag===5&&s.type==="form"?tx(s):yi.r(i)}var to=typeof document>"u"?null:document;function NE(i,s,c){var h=to;if(h&&typeof s=="string"&&s){var p=Wn(s);p='link[rel="'+i+'"][href="'+p+'"]',typeof c=="string"&&(p+='[crossorigin="'+c+'"]'),RE.has(p)||(RE.add(p),i={rel:i,crossOrigin:c,href:s},h.querySelector(p)===null&&(s=h.createElement("link"),on(s,"link",i),Zt(s),h.head.appendChild(s)))}}function IL(i){yi.D(i),NE("dns-prefetch",i,null)}function LL(i,s){yi.C(i,s),NE("preconnect",i,s)}function ML(i,s,c){yi.L(i,s,c);var h=to;if(h&&i&&s){var p='link[rel="preload"][as="'+Wn(s)+'"]';s==="image"&&c&&c.imageSrcSet?(p+='[imagesrcset="'+Wn(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(p+='[imagesizes="'+Wn(c.imageSizes)+'"]')):p+='[href="'+Wn(i)+'"]';var _=p;switch(s){case"style":_=no(i);break;case"script":_=ro(i)}ir.has(_)||(i=U({rel:"preload",href:s==="image"&&c&&c.imageSrcSet?void 0:i,as:s},c),ir.set(_,i),h.querySelector(p)!==null||s==="style"&&h.querySelector(Hl(_))||s==="script"&&h.querySelector(Fl(_))||(s=h.createElement("link"),on(s,"link",i),Zt(s),h.head.appendChild(s)))}}function jL(i,s){yi.m(i,s);var c=to;if(c&&i){var h=s&&typeof s.as=="string"?s.as:"script",p='link[rel="modulepreload"][as="'+Wn(h)+'"][href="'+Wn(i)+'"]',_=p;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":_=ro(i)}if(!ir.has(_)&&(i=U({rel:"modulepreload",href:i},s),ir.set(_,i),c.querySelector(p)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(Fl(_)))return}h=c.createElement("link"),on(h,"link",i),Zt(h),c.head.appendChild(h)}}}function PL(i,s,c){yi.S(i,s,c);var h=to;if(h&&i){var p=ws(h).hoistableStyles,_=no(i);s=s||"default";var C=p.get(_);if(!C){var k={loading:0,preload:null};if(C=h.querySelector(Hl(_)))k.loading=5;else{i=U({rel:"stylesheet",href:i,"data-precedence":s},c),(c=ir.get(_))&&zp(i,c);var j=C=h.createElement("link");Zt(j),on(j,"link",i),j._p=new Promise(function($,se){j.onload=$,j.onerror=se}),j.addEventListener("load",function(){k.loading|=1}),j.addEventListener("error",function(){k.loading|=2}),k.loading|=4,yd(C,s,h)}C={type:"stylesheet",instance:C,count:1,state:k},p.set(_,C)}}}function VL(i,s){yi.X(i,s);var c=to;if(c&&i){var h=ws(c).hoistableScripts,p=ro(i),_=h.get(p);_||(_=c.querySelector(Fl(p)),_||(i=U({src:i,async:!0},s),(s=ir.get(p))&&Up(i,s),_=c.createElement("script"),Zt(_),on(_,"link",i),c.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},h.set(p,_))}}function BL(i,s){yi.M(i,s);var c=to;if(c&&i){var h=ws(c).hoistableScripts,p=ro(i),_=h.get(p);_||(_=c.querySelector(Fl(p)),_||(i=U({src:i,async:!0,type:"module"},s),(s=ir.get(p))&&Up(i,s),_=c.createElement("script"),Zt(_),on(_,"link",i),c.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},h.set(p,_))}}function kE(i,s,c,h){var p=(p=Et.current)?gd(p):null;if(!p)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(s=no(c.href),c=ws(p).hoistableStyles,h=c.get(s),h||(h={type:"style",instance:null,count:0,state:null},c.set(s,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=no(c.href);var _=ws(p).hoistableStyles,C=_.get(i);if(C||(p=p.ownerDocument||p,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},_.set(i,C),(_=p.querySelector(Hl(i)))&&!_._p&&(C.instance=_,C.state.loading=5),ir.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},ir.set(i,c),_||zL(p,i,c,C.state))),s&&h===null)throw Error(r(528,""));return C}if(s&&h!==null)throw Error(r(529,""));return null;case"script":return s=c.async,c=c.src,typeof c=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=ro(c),c=ws(p).hoistableScripts,h=c.get(s),h||(h={type:"script",instance:null,count:0,state:null},c.set(s,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function no(i){return'href="'+Wn(i)+'"'}function Hl(i){return'link[rel="stylesheet"]['+i+"]"}function OE(i){return U({},i,{"data-precedence":i.precedence,precedence:null})}function zL(i,s,c,h){i.querySelector('link[rel="preload"][as="style"]['+s+"]")?h.loading=1:(s=i.createElement("link"),h.preload=s,s.addEventListener("load",function(){return h.loading|=1}),s.addEventListener("error",function(){return h.loading|=2}),on(s,"link",c),Zt(s),i.head.appendChild(s))}function ro(i){return'[src="'+Wn(i)+'"]'}function Fl(i){return"script[async]"+i}function DE(i,s,c){if(s.count++,s.instance===null)switch(s.type){case"style":var h=i.querySelector('style[data-href~="'+Wn(c.href)+'"]');if(h)return s.instance=h,Zt(h),h;var p=U({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return h=(i.ownerDocument||i).createElement("style"),Zt(h),on(h,"style",p),yd(h,c.precedence,i),s.instance=h;case"stylesheet":p=no(c.href);var _=i.querySelector(Hl(p));if(_)return s.state.loading|=4,s.instance=_,Zt(_),_;h=OE(c),(p=ir.get(p))&&zp(h,p),_=(i.ownerDocument||i).createElement("link"),Zt(_);var C=_;return C._p=new Promise(function(k,j){C.onload=k,C.onerror=j}),on(_,"link",h),s.state.loading|=4,yd(_,c.precedence,i),s.instance=_;case"script":return _=ro(c.src),(p=i.querySelector(Fl(_)))?(s.instance=p,Zt(p),p):(h=c,(p=ir.get(_))&&(h=U({},c),Up(h,p)),i=i.ownerDocument||i,p=i.createElement("script"),Zt(p),on(p,"link",h),i.head.appendChild(p),s.instance=p);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(h=s.instance,s.state.loading|=4,yd(h,c.precedence,i));return s.instance}function yd(i,s,c){for(var h=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=h.length?h[h.length-1]:null,_=p,C=0;C<h.length;C++){var k=h[C];if(k.dataset.precedence===s)_=k;else if(_!==p)break}_?_.parentNode.insertBefore(i,_.nextSibling):(s=c.nodeType===9?c.head:c,s.insertBefore(i,s.firstChild))}function zp(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.title==null&&(i.title=s.title)}function Up(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.integrity==null&&(i.integrity=s.integrity)}var vd=null;function IE(i,s,c){if(vd===null){var h=new Map,p=vd=new Map;p.set(c,h)}else p=vd,h=p.get(c),h||(h=new Map,p.set(c,h));if(h.has(i))return h;for(h.set(i,null),c=c.getElementsByTagName(i),p=0;p<c.length;p++){var _=c[p];if(!(_[rl]||_[fn]||i==="link"&&_.getAttribute("rel")==="stylesheet")&&_.namespaceURI!=="http://www.w3.org/2000/svg"){var C=_.getAttribute(s)||"";C=i+C;var k=h.get(C);k?k.push(_):h.set(C,[_])}}return h}function LE(i,s,c){i=i.ownerDocument||i,i.head.insertBefore(c,s==="title"?i.querySelector("head > title"):null)}function UL(i,s,c){if(c===1||s.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return i=s.disabled,typeof s.precedence=="string"&&i==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function ME(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var Gl=null;function HL(){}function FL(i,s,c){if(Gl===null)throw Error(r(475));var h=Gl;if(s.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var p=no(c.href),_=i.querySelector(Hl(p));if(_){i=_._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(h.count++,h=bd.bind(h),i.then(h,h)),s.state.loading|=4,s.instance=_,Zt(_);return}_=i.ownerDocument||i,c=OE(c),(p=ir.get(p))&&zp(c,p),_=_.createElement("link"),Zt(_);var C=_;C._p=new Promise(function(k,j){C.onload=k,C.onerror=j}),on(_,"link",c),s.instance=_}h.stylesheets===null&&(h.stylesheets=new Map),h.stylesheets.set(s,i),(i=s.state.preload)&&(s.state.loading&3)===0&&(h.count++,s=bd.bind(h),i.addEventListener("load",s),i.addEventListener("error",s))}}function GL(){if(Gl===null)throw Error(r(475));var i=Gl;return i.stylesheets&&i.count===0&&Hp(i,i.stylesheets),0<i.count?function(s){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=s,function(){i.unsuspend=null,clearTimeout(c)}}:null}function bd(){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 _d=null;function Hp(i,s){i.stylesheets=null,i.unsuspend!==null&&(i.count++,_d=new Map,s.forEach($L,i),_d=null,bd.call(i))}function $L(i,s){if(!(s.state.loading&4)){var c=_d.get(i);if(c)var h=c.get(null);else{c=new Map,_d.set(i,c);for(var p=i.querySelectorAll("link[data-precedence],style[data-precedence]"),_=0;_<p.length;_++){var C=p[_];(C.nodeName==="LINK"||C.getAttribute("media")!=="not all")&&(c.set(C.dataset.precedence,C),h=C)}h&&c.set(null,h)}p=s.instance,C=p.getAttribute("data-precedence"),_=c.get(C)||h,_===h&&c.set(null,p),c.set(C,p),this.count++,h=bd.bind(this),p.addEventListener("load",h),p.addEventListener("error",h),_?_.parentNode.insertBefore(p,_.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(p,i.firstChild)),s.state.loading|=4}}var $l={$$typeof:v,Provider:null,Consumer:null,_currentValue:he,_currentValue2:he,_threadCount:0};function qL(i,s,c,h,p,_,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=p,this.onCaughtError=_,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=k,this.incompleteTransitions=new Map}function jE(i,s,c,h,p,_,C,k,j,$,se,me){return i=new qL(i,s,c,C,k,j,$,me),s=1,_===!0&&(s|=24),_=nr(3,null,null,s),i.current=_,_.stateNode=i,s=_m(),s.refCount++,i.pooledCache=s,s.refCount++,_.memoizedState={element:h,isDehydrated:c,cache:s},ep(_),i}function PE(i){return i?(i=Ms,i):Ms}function VE(i,s,c,h,p,_){p=PE(p),h.context===null?h.context=p:h.pendingContext=p,h=Fi(s),h.payload={element:c},_=_===void 0?null:_,_!==null&&(h.callback=_),c=Gi(i,h,s),c!==null&&(En(c,i,s),Rl(c,i,s))}function BE(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var c=i.retryLane;i.retryLane=c!==0&&c<s?c:s}}function Fp(i,s){BE(i,s),(i=i.alternate)&&BE(i,s)}function zE(i){if(i.tag===13){var s=ji(i,67108864);s!==null&&En(s,i,67108864),Fp(i,67108864)}}var xd=!0;function KL(i,s,c,h){var p=B.T;B.T=null;var _=re.p;try{re.p=2,Gp(i,s,c,h)}finally{re.p=_,B.T=p}}function WL(i,s,c,h){var p=B.T;B.T=null;var _=re.p;try{re.p=8,Gp(i,s,c,h)}finally{re.p=_,B.T=p}}function Gp(i,s,c,h){if(xd){var p=$p(h);if(p===null)Dp(i,s,h,Ed,c),HE(i,h);else if(ZL(p,i,s,c,h))h.stopPropagation();else if(HE(i,h),s&4&&-1<YL.indexOf(i)){for(;p!==null;){var _=As(p);if(_!==null)switch(_.tag){case 3:if(_=_.stateNode,_.current.memoizedState.isDehydrated){var C=Oa(_.pendingLanes);if(C!==0){var k=_;for(k.pendingLanes|=2,k.entangledLanes|=2;C;){var j=1<<31-_n(C);k.entanglements[1]|=j,C&=~j}jr(_),(wt&6)===0&&(ad=be()+500,Bl(0))}}break;case 13:k=ji(_,2),k!==null&&En(k,_,2),ld(),Fp(_,2)}if(_=$p(h),_===null&&Dp(i,s,h,Ed,c),_===p)break;p=_}p!==null&&h.stopPropagation()}else Dp(i,s,h,null,c)}}function $p(i){return i=Xh(i),qp(i)}var Ed=null;function qp(i){if(Ed=null,i=Da(i),i!==null){var s=q(i);if(s===null)i=null;else{var c=s.tag;if(c===13){if(i=ge(s),i!==null)return i;i=null}else if(c===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;i=null}else s!==i&&(i=null)}}return Ed=i,null}function UE(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(_e()){case Pe:return 2;case ct:return 8;case ht:case Rn:return 32;case ka:return 268435456;default:return 32}default:return 32}}var Kp=!1,Xi=null,Qi=null,Ji=null,ql=new Map,Kl=new Map,ea=[],YL="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 HE(i,s){switch(i){case"focusin":case"focusout":Xi=null;break;case"dragenter":case"dragleave":Qi=null;break;case"mouseover":case"mouseout":Ji=null;break;case"pointerover":case"pointerout":ql.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Kl.delete(s.pointerId)}}function Wl(i,s,c,h,p,_){return i===null||i.nativeEvent!==_?(i={blockedOn:s,domEventName:c,eventSystemFlags:h,nativeEvent:_,targetContainers:[p]},s!==null&&(s=As(s),s!==null&&zE(s)),i):(i.eventSystemFlags|=h,s=i.targetContainers,p!==null&&s.indexOf(p)===-1&&s.push(p),i)}function ZL(i,s,c,h,p){switch(s){case"focusin":return Xi=Wl(Xi,i,s,c,h,p),!0;case"dragenter":return Qi=Wl(Qi,i,s,c,h,p),!0;case"mouseover":return Ji=Wl(Ji,i,s,c,h,p),!0;case"pointerover":var _=p.pointerId;return ql.set(_,Wl(ql.get(_)||null,i,s,c,h,p)),!0;case"gotpointercapture":return _=p.pointerId,Kl.set(_,Wl(Kl.get(_)||null,i,s,c,h,p)),!0}return!1}function FE(i){var s=Da(i.target);if(s!==null){var c=q(s);if(c!==null){if(s=c.tag,s===13){if(s=ge(c),s!==null){i.blockedOn=s,GD(i.priority,function(){if(c.tag===13){var h=Bn(),p=ji(c,h);p!==null&&En(p,c,h),Fp(c,h)}});return}}else if(s===3&&c.stateNode.current.memoizedState.isDehydrated){i.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Sd(i){if(i.blockedOn!==null)return!1;for(var s=i.targetContainers;0<s.length;){var c=$p(i.nativeEvent);if(c===null){c=i.nativeEvent;var h=new c.constructor(c.type,c);Zh=h,c.target.dispatchEvent(h),Zh=null}else return s=As(c),s!==null&&zE(s),i.blockedOn=c,!1;s.shift()}return!0}function GE(i,s,c){Sd(i)&&c.delete(s)}function XL(){Kp=!1,Xi!==null&&Sd(Xi)&&(Xi=null),Qi!==null&&Sd(Qi)&&(Qi=null),Ji!==null&&Sd(Ji)&&(Ji=null),ql.forEach(GE),Kl.forEach(GE)}function Ad(i,s){i.blockedOn===s&&(i.blockedOn=null,Kp||(Kp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,XL)))}var wd=null;function $E(i){wd!==i&&(wd=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){wd===i&&(wd=null);for(var s=0;s<i.length;s+=3){var c=i[s],h=i[s+1],p=i[s+2];if(typeof h!="function"){if(qp(h||c)===null)continue;break}var _=As(c);_!==null&&(i.splice(s,3),s-=3,jm(_,{pending:!0,data:p,method:c.method,action:h},h,p))}}))}function Yl(i){function s(j){return Ad(j,i)}Xi!==null&&Ad(Xi,i),Qi!==null&&Ad(Qi,i),Ji!==null&&Ad(Ji,i),ql.forEach(s),Kl.forEach(s);for(var c=0;c<ea.length;c++){var h=ea[c];h.blockedOn===i&&(h.blockedOn=null)}for(;0<ea.length&&(c=ea[0],c.blockedOn===null);)FE(c),c.blockedOn===null&&ea.shift();if(c=(i.ownerDocument||i).$$reactFormReplay,c!=null)for(h=0;h<c.length;h+=3){var p=c[h],_=c[h+1],C=p[Nn]||null;if(typeof _=="function")C||$E(c);else if(C){var k=null;if(_&&_.hasAttribute("formAction")){if(p=_,C=_[Nn]||null)k=C.formAction;else if(qp(p)!==null)continue}else k=C.action;typeof k=="function"?c[h+1]=k:(c.splice(h,3),h-=3),$E(c)}}}function Wp(i){this._internalRoot=i}Td.prototype.render=Wp.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(r(409));var c=s.current,h=Bn();VE(c,h,i,s,null,null)},Td.prototype.unmount=Wp.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;i.tag===0&&Qs(),VE(i.current,2,null,i,null,null),ld(),s[Ss]=null}};function Td(i){this._internalRoot=i}Td.prototype.unstable_scheduleHydration=function(i){if(i){var s=b_();i={blockedOn:null,target:i,priority:s};for(var c=0;c<ea.length&&s!==0&&s<ea[c].priority;c++);ea.splice(c,0,i),c===0&&FE(i)}};var qE=t.version;if(qE!=="19.0.0")throw Error(r(527,qE,"19.0.0"));re.findDOMNode=function(i){var s=i._reactInternals;if(s===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=X(s),i=i!==null?H(i):null,i=i===null?null:i.stateNode,i};var QL={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:B,findFiberByHostInstance:Da,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Cd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cd.isDisabled&&Cd.supportsFiber)try{ei=Cd.inject(QL),rn=Cd}catch{}}return Xl.createRoot=function(i,s){if(!a(i))throw Error(r(299));var c=!1,h="",p=cx,_=ux,C=dx,k=null;return s!=null&&(s.unstable_strictMode===!0&&(c=!0),s.identifierPrefix!==void 0&&(h=s.identifierPrefix),s.onUncaughtError!==void 0&&(p=s.onUncaughtError),s.onCaughtError!==void 0&&(_=s.onCaughtError),s.onRecoverableError!==void 0&&(C=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(k=s.unstable_transitionCallbacks)),s=jE(i,1,!1,null,null,c,h,p,_,C,k,null),i[Ss]=s.current,Op(i.nodeType===8?i.parentNode:i),new Wp(s)},Xl.hydrateRoot=function(i,s,c){if(!a(i))throw Error(r(299));var h=!1,p="",_=cx,C=ux,k=dx,j=null,$=null;return c!=null&&(c.unstable_strictMode===!0&&(h=!0),c.identifierPrefix!==void 0&&(p=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&&(j=c.unstable_transitionCallbacks),c.formState!==void 0&&($=c.formState)),s=jE(i,1,!0,s,c??null,h,p,_,C,k,j,$),s.context=PE(null),c=s.current,h=Bn(),p=Fi(h),p.callback=null,Gi(c,p,h),s.current.lanes=h,nl(s,h),jr(s),i[Ss]=s.current,Op(i),new Td(s)},Xl.version="19.0.0",Xl}var nS;function uM(){if(nS)return Xp.exports;nS=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(),Xp.exports=cM(),Xp.exports}var dM=uM();const fM={locales:["en","en-GB","fr","es","de","ja","ko","zh","it","pt","hi","ar","ru"],defaultLocale:"en"},hM={cookieName:"INTLAYER_LOCALE",prefixDefault:!1},mM={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},tt={internationalization:fM,middleware:hM,editor:mM};var K=(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.Unknown="unknown",e))(K||{});const pM=(e,t,n)=>({...n,nodeType:e,[e]:t}),rS=(e,t,n)=>{let r=e,a=null,o=[];if(t.length===0)return n;for(let l=0;l<t.length;l++){const u=t[l];if(a=r,(u.type===K.Object||u.type===K.Array)&&(o=[u.key],(!r[u.key]||typeof r[u.key]!="object")&&(r[u.key]={}),r=r[u.key]),(u.type===K.Translation||u.type===K.Enumeration)&&(o=[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===K.Enumeration||u.type===K.Condition)&&(o=[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===K.Markdown||u.type===K.Insertion)&&(o=[u.type],(!r[u.type]||typeof r[u.type]!="object")&&(r[u.type]=""),r=r[u.type]),u.type===K.File&&(o=["content"],r=r.content),u.type&&(r=r),l===t.length-1&&a&&o.length>0){let d=a;for(const f of o.slice(0,-1))d=d[f];typeof n>"u"?delete d[o[o.length-1]]:d[o[o.length-1]]=n}}return e},Hr=(e,t)=>{let n=structuredClone(e);for(const r of t)r.type===K.Object||r.type===K.Array?n=n==null?void 0:n[r.key]:r.type===K.Translation||r.type===K.Condition||r.type===K.Enumeration?n=n==null?void 0:n[r.type][r.key]:(r.type===K.Markdown||r.type===K.Insertion||r.type===K.File)&&(n=n==null?void 0:n[r.type]);return n},FT=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===K.Translation||t.nodeType===K.Enumeration||t.nodeType===K.Condition||t.nodeType===K.Insertion||t.nodeType===K.File){const r=Object.keys(n)[0];return n[r]}return t.nodeType===K.Nested?void 0:n}return!e||typeof e!="object"?e:Array.isArray(e)?e[0]:e},gM=(e,t,n)=>{let r=e,a=null,o=null;for(const l of n)a=r,(l.type===K.Object||l.type===K.Array)&&(o=l.key,r=r[l.key]),(l.type===K.Translation||l.type===K.Enumeration||l.type===K.Condition)&&(o=l.type,r=r[l.type][l.key]),(l.type===K.Markdown||l.type===K.ReactNode||l.type===K.Insertion||l.type===K.File)&&(o=l.type,r=r[l.type]);if(a&&o!==null)if(Array.isArray(a))a[o]=r;else{const l={};for(const u of Object.keys(a))u===o&&typeof t<"u"?l[t]=r:l[u]=a[u];Object.keys(a).forEach(u=>delete a[u]),Object.assign(a,l)}return e},yM=e=>typeof e=="object"&&typeof(e==null?void 0:e.key)<"u"&&typeof(e==null?void 0:e.props)<"u",Vo=e=>typeof e=="string"?K.Text:typeof(e==null?void 0:e.nodeType)=="string"?e.nodeType:Array.isArray(e)?K.Array:yM(e)?K.ReactNode:typeof e=="number"?K.Number:typeof e=="boolean"?K.Boolean:e&&typeof e=="object"?K.Object:K.Unknown,Ql=(e,t,n)=>{const r=structuredClone(n);switch(e){case K.Translation:return{nodeType:K.Translation,[K.Translation]:Object.assign({},...t.map(a=>({[a]:structuredClone(r)??""})))};case K.Enumeration:return{nodeType:K.Enumeration,[K.Enumeration]:{1:r??""}};case K.Condition:return{nodeType:K.Condition,[K.Condition]:{true:r??"",false:r??""}};case K.Insertion:return{nodeType:K.Insertion,[K.Insertion]:{insertion:r??""}};case K.Nested:return{nodeType:K.Nested,[K.Nested]:{dictionaryKey:""}};case K.Markdown:return{nodeType:K.Markdown,[K.Markdown]:r??""};case K.File:return{nodeType:K.File,[K.File]:r??""};case K.Object:return{newKey:r??""};case K.Array:return[r??""];case K.Text:return r??"";case K.Number:return r??0;case K.Boolean:return r??!0;default:return r??""}},cr=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===K.Translation||r.nodeType===K.Enumeration||r.nodeType===K.Condition||r.nodeType===K.Insertion?cr(a):r.nodeType===K.Nested?"dictionary-key":r.nodeType===K.File?"file/path":r.nodeType===K.Markdown?cr(r):a}if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(cr);const t=Object.entries(e).map(([r,a])=>[r,cr(a)]);return Object.fromEntries(t)},Jd=(e,t)=>{for(const r of t.plugins??[])if(r.canHandle(e))return r.transform(e,t,(a,o)=>Jd(a,o));if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map((r,a)=>{const o={...t,children:r,keyPath:[...t.keyPath,{type:K.Array,key:a}]};return Jd(r,o)});const n={};for(const r in e){const a={...t,children:e[r],keyPath:[...t.keyPath,{type:K.Object,key:r}]};n[r]=Jd(e[r],a)}return n},vM=(e,t)=>{const n=Object.keys(e),r=n[n.length-1];return e[`${t}`]??e.fallback??e[r]},bM=(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,o=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||o||l||u||d)return r}},_M=(e,t)=>{const n=bM(e,t)??"fallback";return e[n]},xM=(e,t)=>e.replace(/\{\{(.*?)\}\}/g,(n,r)=>(t[r]??"").toString()),iS={},GT=(e,t,n)=>{const r={dictionaryKey:e.key,dictionaryPath:e.filePath,keyPath:[],plugins:n};return wv(e.content,r,t)},EM=(e,t,n)=>{const r=iS[e];if(!r)throw new Error(`Dictionary ${e} not found`,iS);return GT(r,t,n)},SM=(e,t,n)=>{const r=EM(e,n==null?void 0:n.locale,n==null?void 0:n.plugins);if(typeof t=="string"){const a=t.split(".");let o=r;for(const l of a)if(o=o==null?void 0:o[l],o===void 0)return r;return o}return r},AM=(e,t,n=!0)=>{const{defaultLocale:r}=tt==null?void 0:tt.internationalization;let a=e[t??r];return n&&!a&&(a=e[r]),a},wM=(e,t=!0)=>({id:"translation-plugin",canHandle:n=>typeof n=="object"&&(n==null?void 0:n.nodeType)===K.Translation,transform:(n,r,a)=>{const o=structuredClone(n[K.Translation]);for(const l in o){const u={...r,children:o[l],keyPath:[...r.keyPath,{type:K.Translation,key:l}]};o[l]=a(o[l],u)}return AM(o,e,t)}}),TM={id:"enumeration-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===K.Enumeration,transform:(e,t,n)=>{const r=structuredClone(e[K.Enumeration]);for(const a in r){const o=r[a],l={...t,children:o,keyPath:[...t.keyPath,{type:K.Enumeration,key:a}]};r[a]=n(o,l)}return a=>_M(r,a)}},CM={id:"condition-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===K.Condition,transform:(e,t,n)=>{const r=structuredClone(e[K.Condition]);for(const a in r){const o=r[a],l={...t,children:o,keyPath:[...t.keyPath,{type:K.Condition,key:a}]};r[a]=n(o,l)}return a=>vM(r,a)}},RM={id:"insertion-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===K.Insertion,transform:(e,t,n)=>{const r=[...t.keyPath,{type:K.Insertion}],a=e[K.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 y=xM(f,m);return d(y,{...u,plugins:t.plugins,children:y})}}},...t.plugins??[]]})}},NM={id:"nested-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===K.Nested,transform:(e,t)=>SM(e.nested.dictionaryKey,e.nested.path,t)},kM={id:"file-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===K.File,transform:(e,t,n)=>n(e.content,{...t,children:e.content})},wv=(e,t,n=tt.internationalization.defaultLocale)=>{const r=[RM,wM(n),TM,CM,NM,kM,...t.plugins??[]];return Jd(e,{...t,plugins:r})},aS={method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"},OM=e=>(Object.keys(e).forEach(t=>{e[t]===void 0&&delete e[t]}),e),Rd=e=>e.reduce((t,n)=>{const r=t??{},a=OM(n??{});return typeof r=="object"&&typeof a=="object"?{...r,...a}:a??r},{}),Oe=async(e,...t)=>{const{signal:n}=new AbortController;let r="",a;const o=t.map(({body:v,params:x,headers:S,...A})=>A),l=Rd([aS,...o]),u=Rd([aS.headers,...t.map(v=>v.headers)]),d=Rd(t.map(v=>v.params)),f=l.method;if(f!=="GET"&&f!=="HEAD"){const v=Rd(t.map(x=>x.body));(u==null?void 0:u["Content-Type"])==="application/x-www-form-urlencoded"?a=new URLSearchParams(v).toString():a=JSON.stringify(v)}Object.entries(d).length>0&&(r=`?${new URLSearchParams(d).toString()}`);const m={...l,headers:u,body:a,signal:n},y=`${e}${r}`,g=await fetch(y,m);if(!g.ok){const v=await g.json();throw new Error(JSON.stringify(v.error)??"An error occurred")}return await g.json()},DM=(e={},t)=>{var N,L;const n=((N=t==null?void 0:t.editor)==null?void 0:N.backendURL)??((L=tt.editor)==null?void 0:L.backendURL),{clientId:r,clientSecret:a}=(t==null?void 0:t.editor)??{};if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const o=`${n}/api/auth`;return{login:async(O,M={})=>await Oe(`${o}/login`,e,M,{method:"POST",body:O}),getLoginWithGitHubURL:O=>{const M=new URLSearchParams(O);return`${o}/login/github?${M.toString()}`},getLoginWithGoogleURL:O=>{const M=new URLSearchParams(O);return`${o}/login/google?${M.toString()}`},register:async(O,M={},B={})=>await Oe(`${o}/register`,e,B,{method:"POST",body:O,params:M}),logout:async(O={})=>await Oe(`${o}/logout`,e,O,{method:"POST"}),defineNewPassword:async(O,M={})=>await Oe(`${o}/password/define`,e,M,{method:"POST",body:O}),askResetPassword:async(O,M={})=>await Oe(`${o}/password/reset`,e,M,{method:"POST",body:{email:O}}),checkIfUserHasPassword:async(O={})=>await Oe(`${o}/password/has`,e,O,{method:"GET"}),verifyEmail:async({userId:O,secret:M},B={})=>await Oe(`${o}/active/${O}/${M}`,e,B,{method:"PUT"}),getVerifyEmailStatusURL:O=>`${o}/verify-email-status/${String(O)}`,changePassword:async(O,M={})=>await Oe(`${o}/password`,e,M,{method:"PUT",body:O}),createSession:async(O,M={})=>await Oe(`${o}/session`,e,M,{method:"POST",body:O}),getSession:async(O,M={})=>await Oe(`${n}/session`,e,M,{params:{session_token:O}}),getCSRFToken:async(O={})=>await Oe(`${n}/csrf-token`,e,O),getOAuth2AccessToken:async(O={})=>await Oe(`${n}/oauth2/token`,e,O,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:{grant_type:"client_credentials",client_id:r,client_secret:a}})}},IM=(e={},t)=>{var y,g;const n=((y=t==null?void 0:t.editor)==null?void 0:y.backendURL)??((g=tt.editor)==null?void 0:g.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/dictionary`;return{getDictionaries:async(v,x={})=>await Oe(r,e,x,{params:v}),getDictionariesKeys:async(v={})=>await Oe(`${r}/keys`,e,v),getDictionary:async(v,x,S={})=>await Oe(`${r}/${v}`,e,S,{params:x?{version:x.toString()}:void 0}),pushDictionaries:async(v,x={})=>await Oe(`${r}`,e,x,{method:"PATCH",body:{dictionaries:v}}),addDictionary:async(v,x={})=>await Oe(`${r}`,e,x,{method:"POST",body:v}),updateDictionary:async(v,x,S={})=>await Oe(`${r}/${v}`,e,S,{method:"PUT",body:x}),deleteDictionary:async(v,x={})=>await Oe(`${r}/${v}`,e,x,{method:"DELETE"})}},LM=(e={},t)=>{var y,g;const n=((y=t==null?void 0:t.editor)==null?void 0:y.backendURL)??((g=tt.editor)==null?void 0:g.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/ai`;return{translateJSON:async(v,x={})=>await Oe(`${r}/translate/json`,e,x,{method:"POST",body:v}),auditContentDeclaration:async(v,x={})=>await Oe(`${r}/audit/dictionary`,e,x,{method:"POST",body:v}),auditContentDeclarationField:async(v,x={})=>await Oe(`${r}/audit/dictionary/field`,e,x,{method:"POST",body:v}),auditContentDeclarationMetadata:async(v,x={})=>await Oe(`${r}/audit/dictionary/metadata`,e,x,{method:"POST",body:v}),auditTag:async(v,x={})=>await Oe(`${r}/audit/tag`,e,x,{method:"POST",body:v}),askDocQuestion:async(v,x={})=>{var R;if(!v)return;const{onMessage:S,onDone:A,...w}=v,T=new AbortController;try{const D=await fetch(`${r}/ask`,{method:"POST",headers:{"Content-Type":"application/json",...e.headers,...x.headers},body:JSON.stringify(w),signal:T.signal});if(!D.ok){const M=await D.json().catch(()=>({}));throw new Error(M.message||"Failed to fetch response")}const N=(R=D.body)==null?void 0:R.getReader();if(!N)throw new Error("No reader available");const L=new TextDecoder;let O="";for(;;){const{done:M,value:B}=await N.read();if(M)break;O+=L.decode(B,{stream:!0});const U=O.split(`
|
|
51
|
-
`);O=U.pop()??"";for(const ue of U)if(ue.startsWith("data: "))try{const ie=JSON.parse(ue.slice(6));ie.chunk&&(S==null||S(ie.chunk)),ie.done&&ie.response&&(A==null||A(ie.response))}catch(ie){console.error("Failed to parse SSE data:",ie)}}}catch(D){throw console.error("Error in askDocQuestion:",D),D}},autocomplete:async(v,x={})=>await Oe(`${r}/autocomplete`,e,x,{method:"POST",body:v})}},MM=(e={},t)=>{var u,d;const n=((u=t==null?void 0:t.editor)==null?void 0:u.editorURL)??((d=tt.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 Oe(`${r}/dictionary`,e,f)).data,getConfiguration:async(f={})=>(await Oe(`${r}/config`,e,f)).data,writeDictionary:async(f,m={})=>await Oe(`${r}/dictionary`,e,m,{method:"POST",body:{dictionary:f}})}},jM=(e={},t)=>{var v,x;const n=((v=t==null?void 0:t.editor)==null?void 0:v.backendURL)??((x=tt.editor)==null?void 0:x.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration--.");const r=`${n}/api/organization`;return{getOrganizations:async(S,A={})=>await Oe(r,e,A,{params:S}),getOrganization:async(S,A={})=>await Oe(`${r}/${String(S)}`,e,A),addOrganization:async(S,A={})=>await Oe(r,e,A,{method:"POST",body:S}),addOrganizationMember:async(S,A={})=>Oe(`${r}/member`,e,A,{method:"POST",body:S}),updateOrganization:async(S,A={})=>Oe(r,e,A,{method:"PUT",body:S}),updateOrganizationMembers:async(S,A={})=>Oe(`${r}/members`,e,A,{method:"PUT",body:S}),deleteOrganization:async(S={})=>await Oe(r,e,S,{method:"DELETE"}),selectOrganization:async(S,A={})=>await Oe(`${r}/${String(S)}`,e,A,{method:"PUT"}),unselectOrganization:async(S={})=>await Oe(`${r}/logout`,e,S,{method:"POST"})}},PM=(e={},t)=>{var S,A;const n=((S=t==null?void 0:t.editor)==null?void 0:S.backendURL)??((A=tt.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(w,T={})=>await Oe(r,e,T,{params:w}),addProject:async(w,T={})=>await Oe(`${r}`,e,T,{method:"POST",body:w}),updateProject:async(w,T={})=>await Oe(`${r}`,e,T,{method:"PUT",body:w}),updateProjectMembers:async(w,T={})=>await Oe(`${r}/members`,e,T,{method:"PUT",body:w}),pushProjectConfiguration:async(w,T={})=>await Oe(`${r}/configuration`,e,T,{method:"PUT",body:w}),deleteProject:async(w={})=>await Oe(`${r}`,e,w,{method:"DELETE"}),selectProject:async(w,T={})=>await Oe(`${r}/${String(w)}`,e,T,{method:"PUT"}),unselectProject:async(w={})=>await Oe(`${r}/logout`,e,w,{method:"POST"}),addNewAccessKey:async(w,T={})=>await Oe(`${r}/access_key`,e,T,{method:"POST",body:w}),deleteAccessKey:async(w,T={})=>await Oe(`${r}/access_key`,e,T,{method:"DELETE",body:{clientId:w}}),refreshAccessKey:async(w,T={})=>await Oe(`${r}/access_key`,e,T,{method:"PATCH",body:{clientId:w}})}},VM=(e={},t)=>{var o,l;const n=((o=t==null?void 0:t.editor)==null?void 0:o.backendURL)??((l=tt.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 Oe(`${r}/doc`,e,d,{method:"GET",params:u})}},BM=(e={},t)=>{var u,d;const n=((u=t==null?void 0:t.editor)==null?void 0:u.backendURL)??((d=tt.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 Oe(`${r}/pricing`,e,m,{method:"POST",body:f}),getSubscription:async(f,m={})=>await Oe(`${r}/create-subscription`,e,m,{method:"POST",body:f}),cancelSubscription:async(f={})=>await Oe(`${r}/cancel-subscription`,e,f,{method:"POST"})}},zM=(e={},t)=>{var d,f;const n=((d=t==null?void 0:t.editor)==null?void 0:d.backendURL)??((f=tt.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,y={})=>await Oe(r,e,y,{params:m}),addTag:async(m,y={})=>await Oe(`${r}`,e,y,{method:"POST",body:m}),updateTag:async(m,y,g={})=>await Oe(`${r}/${m}`,e,g,{method:"PUT",body:y}),deleteTag:async(m,y={})=>await Oe(`${r}/${m}`,e,y,{method:"DELETE"})}},UM=(e={},t)=>{var y,g;const n=((y=t==null?void 0:t.editor)==null?void 0:y.backendURL)??((g=tt.editor)==null?void 0:g.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/user`;return{createUser:async(v,x={})=>await Oe(`${r}/`,e,x,{method:"POST",body:v}),getUsers:async(v,x={})=>await Oe(r,e,x,{params:v}),getUserById:async(v,x={})=>await Oe(`${r}/${v}`,e,x),getUserByAccount:async(v,x,S={})=>await Oe(`${r}/account/${x}/${v}`,e,S),getUserByEmail:async(v,x={})=>await Oe(`${r}/email/${v}`,e,x),updateUser:async(v,x={})=>await Oe(`${r}`,e,x,{method:"PUT",body:v}),deleteUser:async(v,x={})=>await Oe(`${r}/${v}`,e,x,{method:"DELETE"})}},sh=(e={},t)=>({organization:jM(e,t),project:PM(e,t),user:UM(e,t),auth:DM(e,t),dictionary:IM(e,t),stripe:BM(e,t),ai:LM(e,t),tag:zM(e,t),search:VM(e,t),editor:MM(e,t)});var V=(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))(V||{});const HM=e=>{switch(e){case V.ENGLISH:case V.FRENCH:case V.SPANISH:case V.PORTUGUESE:case V.GERMAN:case V.AFRIKAANS:case V.AZERI_LATIN:case V.BELARUSIAN:case V.BULGARIAN:case V.BOSNIAN:case V.CATALAN:case V.CZECH:case V.WELSH:case V.DANISH:case V.ESPERANTO:case V.ESTONIAN:case V.BASQUE:case V.FINNISH:case V.FAROESE:case V.GALICIAN:case V.GREEK:case V.CROATIAN:case V.HUNGARIAN:case V.ARMENIAN:case V.INDONESIAN:case V.ICELANDIC:case V.ITALIAN:case V.JAPANESE:case V.GEORGIAN:case V.KAZAKH:case V.KANNADA:case V.KOREAN:case V.KONKANI:case V.KYRGYZ:case V.LITHUANIAN:case V.LATVIAN:case V.MAORI:case V.FYRO_MACEDONIAN:case V.MONGOLIAN:case V.MARATHI:case V.MALAY:case V.MALTESE:case V.NORWEGIAN_BOKMAL:case V.DUTCH:case V.NORTHERN_SOTHO:case V.PUNJABI:case V.POLISH:case V.QUECHUA:case V.ROMANIAN:case V.RUSSIAN:case V.SANSKRIT:case V.SAMI_NORTHERN:case V.SLOVAK:case V.SLOVENIAN:case V.ALBANIAN:case V.SERBIAN_LATIN:case V.SWEDISH:case V.SWAHILI:case V.TAMIL:case V.TELUGU:case V.THAI:case V.TAGALOG:case V.TSWANA:case V.TURKISH:case V.UKRAINIAN:case V.UZBEK_LATIN:case V.VIETNAMESE:case V.XHOSA:case V.CHINESE_SIMPLIFIED:case V.CHINESE_TRADITIONAL:case V.ZULU:case V.AFRIKAANS_SOUTH_AFRICA:case V.AZERI_LATIN_AZERBAIJAN:case V.BELARUSIAN_BELARUS:case V.BULGARIAN_BULGARIA:case V.BOSNIAN_BOSNIA_AND_HERZEGOVINA:case V.CATALAN_SPAIN:case V.CZECH_CZECH_REPUBLIC:case V.WELSH_UNITED_KINGDOM:case V.DANISH_DENMARK:case V.GERMAN_AUSTRIA:case V.GERMAN_SWITZERLAND:case V.GERMAN_GERMANY:case V.GERMAN_LIECHTENSTEIN:case V.GERMAN_LUXEMBOURG:case V.GREEK_GREECE:case V.ENGLISH_AUSTRALIA:case V.ENGLISH_BELIZE:case V.ENGLISH_CANADA:case V.ENGLISH_CARIBBEAN:case V.ENGLISH_UNITED_KINGDOM:case V.ENGLISH_IRELAND:case V.ENGLISH_JAMAICA:case V.ENGLISH_NEW_ZEALAND:case V.ENGLISH_PHILIPPINES:case V.ENGLISH_TRINIDAD_AND_TOBAGO:case V.ENGLISH_UNITED_STATES:case V.ENGLISH_SOUTH_AFRICA:case V.ENGLISH_ZIMBABWE:case V.SPANISH_ARGENTINA:case V.SPANISH_BOLIVIA:case V.SPANISH_CHILE:case V.SPANISH_COLOMBIA:case V.SPANISH_COSTA_RICA:case V.SPANISH_DOMINICAN_REPUBLIC:case V.SPANISH_ECUADOR:case V.SPANISH_SPAIN:case V.SPANISH_GUATEMALA:case V.SPANISH_HONDURAS:case V.SPANISH_MEXICO:case V.SPANISH_NICARAGUA:case V.SPANISH_PANAMA:case V.SPANISH_PERU:case V.SPANISH_PUERTO_RICO:case V.SPANISH_PARAGUAY:case V.SPANISH_EL_SALVADOR:case V.SPANISH_URUGUAY:case V.SPANISH_VENEZUELA:case V.ESTONIAN_ESTONIA:case V.BASQUE_SPAIN:case V.FINNISH_FINLAND:case V.FAROESE_FAROE_ISLANDS:case V.FRENCH_BELGIUM:case V.FRENCH_CANADA:case V.FRENCH_SWITZERLAND:case V.FRENCH_FRANCE:case V.FRENCH_LUXEMBOURG:case V.FRENCH_PRINCIPALITY_OF_MONACO:case V.GALICIAN_SPAIN:case V.GUJARATI_INDIA:case V.HEBREW_ISRAEL:case V.HINDI_INDIA:case V.CROATIAN_BOSNIA_AND_HERZEGOVINA:case V.CROATIAN_CROATIA:case V.HUNGARIAN_HUNGARY:case V.ARMENIAN_ARMENIA:case V.INDONESIAN_INDONESIA:case V.ICELANDIC_ICELAND:case V.ITALIAN_SWITZERLAND:case V.ITALIAN_ITALY:case V.JAPANESE_JAPAN:case V.GEORGIAN_GEORGIA:case V.KAZAKH_KAZAKHSTAN:case V.KANNADA_INDIA:case V.KOREAN_KOREA:case V.KONKANI_INDIA:case V.KYRGYZ_KYRGYZSTAN:case V.LITHUANIAN_LITHUANIA:case V.LATVIAN_LATVIA:case V.MAORI_NEW_ZEALAND:case V.FYRO_MACEDONIAN_MACEDONIA:case V.MONGOLIAN_MONGOLIA:case V.MARATHI_INDIA:case V.MALAY_BRUNEI_DARUSSALAM:case V.MALAY_MALAYSIA:case V.MALTESE_MALTA:case V.NORWEGIAN_BOKMAL_NORWAY:case V.DUTCH_BELGIUM:case V.DUTCH_NETHERLANDS:case V.NORWEGIAN_NYNORSK_NORWAY:case V.NORTHERN_SOTHO_SOUTH_AFRICA:case V.PUNJABI_INDIA:case V.POLISH_POLAND:case V.PORTUGUESE_BRAZIL:case V.PORTUGUESE_PORTUGAL:case V.QUECHUA_BOLIVIA:case V.QUECHUA_ECUADOR:case V.QUECHUA_PERU:case V.ROMANIAN_ROMANIA:case V.RUSSIAN_RUSSIA:case V.SANSKRIT_INDIA:case V.SAMI_NORTHERN_FINLAND:case V.SAMI_NORTHERN_NORWAY:case V.SAMI_NORTHERN_SWEDEN:case V.SLOVAK_SLOVAKIA:case V.SLOVENIAN_SLOVENIA:case V.ALBANIAN_ALBANIA:case V.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA:case V.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO:case V.SWAHILI_KENYA:case V.TAMIL_INDIA:case V.TELUGU_INDIA:case V.THAI_THAILAND:case V.TAGALOG_PHILIPPINES:case V.TSWANA_SOUTH_AFRICA:case V.TURKISH_TURKEY:case V.TATAR_RUSSIA:case V.TSOGA:case V.UKRAINIAN_UKRAINE:case V.UZBEK_LATIN_UZBEKISTAN:case V.VIETNAMESE_VIET_NAM:case V.XHOSA_SOUTH_AFRICA:case V.CHINESE_HONG_KONG:case V.CHINESE_MACAU:case V.CHINESE_SINGAPORE:case V.ZULU_SOUTH_AFRICA:return"ltr";case V.ARABIC:case V.FARSI:case V.URDU:case V.PASHTO:case V.SYRIAC:case V.ARABIC_UNITED_ARAB_EMIRATES:case V.ARABIC_BAHRAIN:case V.ARABIC_ALGERIA:case V.ARABIC_EGYPT:case V.ARABIC_IRAQ:case V.ARABIC_JORDAN:case V.ARABIC_KUWAIT:case V.ARABIC_LEBANON:case V.ARABIC_LIBYA:case V.ARABIC_MOROCCO:case V.ARABIC_OMAN:case V.ARABIC_QATAR:case V.ARABIC_SAUDI_ARABIA:case V.ARABIC_SYRIA:case V.ARABIC_TUNISIA:case V.ARABIC_YEMEN:case V.FARSI_IRAN:case V.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN:case V.PASHTO_AFGHANISTAN:case V.SYRIAC_SYRIA:return"rtl";default:return"auto"}},$T=e=>/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e),sS=new Map,ef=(e,t=e)=>{if(typeof(Intl==null?void 0:Intl.DisplayNames)!="function")return e;let n=sS.get(t);return n||(n=new Intl.DisplayNames([t],{type:"language"}),sS.set(t,n)),n.of(e)??"Unknown locale"},FM=(e,t=tt.internationalization.locales)=>{const n=$T(e);let r=e;e.endsWith("/")&&(r=e.slice(0,-1));const a=n?new URL(r):new URL(r,"http://example.com"),o=a.pathname;o.startsWith("/")||(a.pathname=`/${o}`);const l=o.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","")},GM=(e,t=tt.internationalization.locales,n=tt.internationalization.defaultLocale,r=tt.middleware.prefixDefault)=>{const a=FM(e,t),o=$T(a),l=o?new URL(a):new URL(a,"http://example.com");let u=l.pathname;u.startsWith("/")||(u=`/${u}`);const d=o?`${l.protocol}//${l.host}`:"";return t.reduce((m,y)=>{const g=y.toString()===n.toString();let x=r||!g?`/${y}${u}`:u;x.length>1&&x.endsWith("/")&&(x=x.slice(0,-1));const S=o?`${d}${x}${l.search}${l.hash}`:`${x}${l.search}${l.hash}`;return m[y]=S,m},{})},$M=(e,t,n=tt.internationalization.locales,r=tt.internationalization.defaultLocale,a=tt.middleware.prefixDefault)=>GM(e,n,r,a)[t],qM=(e,t=tt.internationalization.locales,n=tt.internationalization.defaultLocale)=>{const r=[e].flat(),a=o=>o.trim().toLowerCase();try{for(const o of r){const l=a(o),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},pe=e=>pM(K.Translation,e),KM=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(o=>{const l=o.trim();return l.startsWith('"')&&l.endsWith('"')||!isNaN(Number(l))?l:`"${l}"`}).join(", ")}]`),JSON.parse(t)},qT=e=>{try{const t=e.split(/\r?\n/),n=t.find(o=>o.trim()!=="");if(!n||n.trim()!=="---")return{};const r={};let a=!1;for(const o of t){if(o.trim()==="---"){if(a)break;a=!0;continue}if(a){const u=o.match(/^([^:]+)\s*:\s*(.*)$/);if(u){const d=u[1].trim(),f=u[2].trim();try{r[d]=KM(f)}catch{r[d]=f}}}}return r}catch{return}},Zc=(e,t)=>e.every((n,r)=>t[r]&&t[r].key===n.key&&t[r].type===n.type),WM=(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(/\/$/,""),o=r.pathname.replace(/\/$/,"");return!(a!==""&&o!==""&&a!==o)}catch(n){return console.error("Invalid URL(s)",n),!1}},YM=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 fr=(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_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))(fr||{});const KT=E.createContext(void 0),WT=E.createContext(void 0),ZM=({children:e})=>{const[t,n]=E.useState({}),r=(a,o)=>{n(l=>({...l,[a]:{...l==null?void 0:l[a],content:o}}))};return b.jsx(KT.Provider,{value:{changedContent:t},children:b.jsx(WT.Provider,{value:{setChangedContent:r},children:e})})},XM=()=>E.useContext(WT),QM=()=>{const e=E.useContext(KT),t=XM();return{...e,...t}},ln=[];for(let e=0;e<256;++e)ln.push((e+256).toString(16).slice(1));function JM(e,t=0){return(ln[e[t+0]]+ln[e[t+1]]+ln[e[t+2]]+ln[e[t+3]]+"-"+ln[e[t+4]]+ln[e[t+5]]+"-"+ln[e[t+6]]+ln[e[t+7]]+"-"+ln[e[t+8]]+ln[e[t+9]]+"-"+ln[e[t+10]]+ln[e[t+11]]+ln[e[t+12]]+ln[e[t+13]]+ln[e[t+14]]+ln[e[t+15]]).toLowerCase()}let tg;const ej=new Uint8Array(16);function tj(){if(!tg){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");tg=crypto.getRandomValues.bind(crypto)}return tg(ej)}const nj=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),oS={randomUUID:nj};function rj(e,t,n){var a;if(oS.randomUUID&&!e)return oS.randomUUID();e=e||{};const r=e.random??((a=e.rng)==null?void 0:a.call(e))??tj();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,JM(r)}const{editor:vi}=tt,YT=E.createContext({postMessage:()=>null,allowedOrigins:[vi==null?void 0:vi.applicationURL,vi==null?void 0:vi.editorURL,vi==null?void 0:vi.cmsURL],senderId:""}),lS=({children:e,allowedOrigins:t,postMessage:n})=>{const r=E.useRef(rj()),a=E.useMemo(()=>({postMessage:n,allowedOrigins:t,senderId:r.current}),[n,t,r.current]);return b.jsx(YT.Provider,{value:a,children:e})},ZT=()=>E.useContext(YT),To=(e,t,n)=>{const{allowedOrigins:r,postMessage:a,senderId:o}=ZT();return E.useEffect(()=>{if(t){const u=d=>{const{type:f,data:m,senderId:y}=d.data;f===e&&y!==o&&(typeof r>"u"||r!=null&&r.some(g=>WM(g,d.origin))||r!=null&&r.includes("*"))&&t(m)};return window.addEventListener("message",u),()=>window.removeEventListener("message",u)}},[r,a,o,n]),u=>{a({type:e,data:u,senderId:o})}},ij=(e,t)=>typeof e=="function"?e(t):e,vs=(e,t,n)=>{const{postMessage:r,senderId:a}=ZT(),{emit:o,receive:l}=n??{emit:!0,receive:!0},u=(v,x)=>{const S=ij(v,x);return o&&typeof r=="function"&&typeof S<"u"&&r({type:`${e}/post`,data:S,senderId:a}),S},d=()=>{typeof r=="function"&&r({type:`${e}/post`,data:f,senderId:a})},[f,m]=E.useState(()=>u(t)),y=v=>m(x=>u(v,x));To(`${e}/post`,l?v=>{m(v)}:void 0);const g=(v,x)=>{o&&typeof r=="function"&&x!==a&&(typeof f>"u"||r({type:`${e}/post`,data:f,senderId:a}))};return To(`${e}/get`,o?g:void 0,f),E.useEffect(()=>{l&&typeof r=="function"&&typeof f>"u"&&r({type:`${e}/get`,senderId:a})},[]),[f,y,d]},XT=E.createContext(void 0),aj=({children:e,configuration:t})=>b.jsx(XT.Provider,{value:t,children:e}),Zr=()=>E.useContext(XT),QT=E.createContext(void 0),JT=E.createContext(void 0),sj=({children:e})=>{const[t,n]=vs(fr.INTLAYER_LOCALE_DICTIONARIES_CHANGED,void 0),r=E.useMemo(()=>({localeDictionaries:t??{}}),[t]),a=E.useMemo(()=>({setLocaleDictionaries:n,setLocaleDictionary:o=>{n(l=>({...l,[o.key]:o}))}}),[n]);return b.jsx(QT.Provider,{value:r,children:b.jsx(JT.Provider,{value:a,children:e})})},oh=()=>E.useContext(JT),e1=()=>{const e=oh(),t=E.useContext(QT);if(!t)throw new Error("useDictionariesRecordStates must be used within a DictionariesRecordProvider");return{...t,...e}},t1=E.createContext(void 0),oj=e=>To(`${fr.INTLAYER_EDITED_CONTENT_CHANGED}/get`,e),n1=E.createContext(void 0),cS=(e,t)=>typeof e=="function"?e(t):e,lj=({children:e})=>{const{localeDictionaries:t}=e1(),[n,r]=vs(fr.INTLAYER_EDITED_CONTENT_CHANGED),a=v=>{let x=cS(v);return r(S=>(x=cS(v,S==null?void 0:S[x.key]),{...S,[x.key]:x})),x},o=(v,x)=>{r(S=>({...S,[v]:{...S==null?void 0:S[v],content:x}}))},l=(v,x,S=[],A=!0)=>{r(w=>{var L,O;const T=(L=t[v])==null?void 0:L.content,R=structuredClone(((O=w==null?void 0:w[v])==null?void 0:O.content)??T);let D=S;if(!A){let M=0;const B=S.slice(0,-1),U=S[S.length-1];let ue=U.key;for(;typeof Hr(R,D)<"u";)M++,ue=M===0?U.key:`${U.key} (${M})`,D=[...B,{...U,key:ue}]}const N=rS(R,D,x);return{...w,[v]:{...w==null?void 0:w[v],content:N}}})},u=(v,x,S=[])=>{r(A=>{var D,N;const w=(D=t[v])==null?void 0:D.content,T=structuredClone(((N=A==null?void 0:A[v])==null?void 0:N.content)??w),R=gM(T,x,S);return{...A,[v]:{...A==null?void 0:A[v],content:R}}})},d=(v,x)=>{r(S=>{var D,N;const A=(D=t[v])==null?void 0:D.content,w=structuredClone(((N=S==null?void 0:S[v])==null?void 0:N.content)??A),T=Hr(A,x),R=rS(w,x,T);return{...S,[v]:{...S==null?void 0:S[v],content:R}}})},f=v=>{r(x=>{const S={...x};return delete S[v],S})},m=v=>{r(x=>Object.entries(x).reduce((A,[w,T])=>w===v?A:{...A,[w]:T},{}))},y=()=>{r({})},g=(v,x)=>{var A;const S=((A=n==null?void 0:n[v])==null?void 0:A.content)??{};return Hr(S,x)};return b.jsx(t1.Provider,{value:{editedContent:n},children:b.jsx(n1.Provider,{value:{setEditedContentState:r,setEditedDictionary:a,setEditedContent:o,addEditedContent:l,renameEditedContent:u,removeEditedContent:d,restoreEditedContent:f,clearEditedDictionaryContent:m,clearEditedContent:y,getEditedContentValue:g},children:e})})},Bo=()=>E.useContext(n1),Tn=()=>{const e=E.useContext(t1),t=Bo();return{...e,...t}},r1=E.createContext({enabled:!1}),cj=e=>vs(fr.INTLAYER_EDITOR_ENABLED,!1,e),uj=e=>To(`${fr.INTLAYER_EDITOR_ENABLED}/post`,e),i1=e=>To(`${fr.INTLAYER_EDITOR_ENABLED}/get`,e),dj=({children:e})=>{const[t]=cj({emit:!1,receive:!0});return b.jsx(r1.Provider,{value:{enabled:t},children:e})},a1=()=>E.useContext(r1),s1=E.createContext(void 0),o1=E.createContext(void 0),fj=({children:e})=>{const[t,n]=vs(fr.INTLAYER_FOCUSED_CONTENT_CHANGED,null),r=a=>{n(o=>o&&{...o,keyPath:a})};return b.jsx(s1.Provider,{value:{focusedContent:t},children:b.jsx(o1.Provider,{value:{setFocusedContent:n,setFocusedContentKeyPath:r},children:e})})},Tv=()=>{const e=E.useContext(o1);if(e===void 0)throw new Error("useFocusDictionaryActions must be used within a FocusDictionaryProvider");return e},ba=()=>{const e=Tv(),t=E.useContext(s1);if(t===void 0)throw new Error("useFocusDictionaryState must be used within a FocusDictionaryProvider");return{...t,...e}},uS=({children:e})=>{const t=oj();return E.useEffect(()=>{t()},[]),b.jsx(sj,{children:b.jsx(lj,{children:b.jsx(fj,{children:e})})})},hj=({children:e,fallback:t})=>{const n=i1(),{enabled:r}=a1();return E.useEffect(()=>{r||n()},[r]),r?e:t},mj=({children:e,fallback:t})=>{const[n,r]=E.useState(!1);return E.useEffect(()=>{r(window.self!==window.top)},[]),n?e:t},pj=({children:e,configuration:t,...n})=>b.jsx(ZM,{children:b.jsx(dj,{children:b.jsx(aj,{configuration:t,children:n.mode==="editor"?b.jsx(lS,{...n,children:b.jsx(uS,{children:e})}):b.jsx(mj,{fallback:e,children:b.jsx(lS,{...n,children:b.jsx(hj,{fallback:e,children:b.jsx(uS,{children:e})})})})})})}),gj=(e,t)=>vs(fr.INTLAYER_URL_CHANGE,e,t),yj=()=>To(fr.INTLAYER_IFRAME_CLICKED,YM);/*! js-cookie v3.0.5 | MIT */function Nd(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 vj={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 oy(e,t){function n(a,o,l){if(!(typeof document>"u")){l=Nd({},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(o,a)+u}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var o=document.cookie?document.cookie.split("; "):[],l={},u=0;u<o.length;u++){var d=o[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,o){n(a,"",Nd({},o,{expires:-1}))},withAttributes:function(a){return oy(this.converter,Nd({},this.attributes,a))},withConverter:function(a){return oy(Nd({},this.converter,a),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var l1=oy(vj,{path:"/"});const{cookieName:c1}=tt.middleware,bj={path:"/",expires:void 0,domain:void 0,secure:!1,sameSite:"strict"},Cv=l1.get(c1),u1=e=>{l1.set(c1,e,bj)},_j=()=>({localeCookie:Cv,setLocaleCookie:u1});var zT;const lh=E.createContext({locale:Cv??((zT=tt==null?void 0:tt.internationalization)==null?void 0:zT.defaultLocale),setLocale:()=>null,disableEditor:!1}),xj=()=>E.useContext(lh),Ej=({locale:e,defaultLocale:t,children:n,setLocale:r,disableEditor:a})=>{const{internationalization:o}=tt??{},{defaultLocale:l,locales:u}=o??{},d=e??Cv??t??l,[f,m]=vs(fr.INTLAYER_CURRENT_LOCALE,d),g=r??(x=>{if(f.toString()!==x.toString()){if(!(u!=null&&u.map(String).includes(x))){console.error(`Locale ${x} is not available`);return}m(x),u1(x)}}),v=qM(e??f);return b.jsx(lh.Provider,{value:{locale:v,setLocale:g,disableEditor:a},children:n})},vf=({children:e,value:t,additionalProps:n})=>{const r=E.isValidElement(e)?e:b.jsx(b.Fragment,{children:e});return new Proxy(r,{get(a,o,l){return o==="value"?t:n&&Object.keys(n).includes(o)?n[o]:Reflect.get(a,o,l)}})},Sj=250,Aj=({children:e,onPress:t,onClickOutside:n,pressDuration:r=Sj,isSelecting:a,...o})=>{const l=E.useRef(null),[u,d]=E.useState(!1),[f,m]=E.useState(a),y=E.useRef(null),g=typeof e=="string",v=()=>{m(!0),t()},x=()=>{y.current=setTimeout(()=>{v()},r)},S=()=>{y.current&&(clearTimeout(y.current),y.current=null)},A=()=>{S(),x()},w=()=>{d(!0)},T=()=>{d(!1),S()},R=E.useCallback(L=>{l.current&&!l.current.contains(L.target)&&(m(!1),n==null||n())},[n]);E.useEffect(()=>(document.addEventListener("mousedown",R),()=>{document.removeEventListener("mousedown",R)}),[R]);const D=L=>{f&&(L.preventDefault(),L.stopPropagation())},N=()=>{m(!1)};return b.jsx("span",{style:{display:g?"inline":"inline-block",cursor:"pointer",userSelect:"none",borderRadius:"0.375rem",outlineWidth:"2px",outlineOffset:"4px",outlineStyle:"solid",outlineColor:a||f||u?"inherit":"transparent",transition:"all 100ms 50ms ease-in-out"},role:"button",tabIndex:0,onKeyUp:()=>null,onClick:D,onMouseDown:A,onMouseUp:T,onMouseLeave:T,onTouchStart:A,onTouchEnd:T,onTouchCancel:T,onBlur:N,onMouseEnter:w,ref:l,...o,children:e})},wj=({children:e,dictionaryKey:t,keyPath:n})=>{const{focusedContent:r,setFocusedContent:a}=ba(),o=E.useCallback(()=>a({dictionaryKey:t,keyPath:n}),[t,n]),l=E.useMemo(()=>{var u;return((r==null?void 0:r.dictionaryKey)===t&&(((u=r==null?void 0:r.keyPath)==null?void 0:u.length)??0)>0&&Zc((r==null?void 0:r.keyPath)??[],n))??!1},[r,n,t]);return b.jsx(Aj,{onPress:o,isSelecting:l,children:e})},bf=({children:e,...t})=>{const{enabled:n}=a1(),{disableEditor:r}=xj();return n&&!r?b.jsx(wj,{...t,children:e}):e},Rv=({dictionaryKey:e,keyPath:t,children:n})=>{const r=Bo();return r?r.getEditedContentValue(e,t)??n:n},Tj=e=>{const t=Rv(e);if(typeof t=="object"){const n=wv(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},Cj=E.createContext({renderMarkdown:e=>e}),Rj=()=>E.useContext(Cj),Nj=({dictionaryKey:e,keyPath:t,children:n,locale:r})=>{const{renderMarkdown:a}=Rj(),o=Rv({dictionaryKey:e,keyPath:t,children:n});if(typeof o!="string"){const l=wv(o,{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(o)},kj=({dictionaryKey:e,keyPath:t,children:n,metadataKeyPath:r})=>{const a=Rv({dictionaryKey:e,keyPath:t,children:n}),o=qT(a);return Hr(o,r)},d1=e=>{if(typeof e=="string")return e;const n=(o=>{var l;if(o!=null&&o.props&&typeof o.props.children=="object"){const u=[],{children:d}=o.props;return Object.keys(d??{}).forEach(f=>{u.push(d1((d??{})[f]))}),{...o,props:{...o.props,children:u}}}return{...o,props:{...o.props,children:((l=o.props)==null?void 0:l.children)??[]}}})(e),{type:r,props:a}=n;return E.createElement(r??"span",a,...a.children)},Oj={id:"intlayer-node-plugin",canHandle:e=>typeof e=="bigint"||typeof e=="string"||typeof e=="number",transform:(e,{plugins:t,...n})=>vf({...n,value:n.children,children:E.createElement(bf,{...n,key:n.children},b.jsx(Tj,{...n,children:n.children}))})},Dj={id:"react-node-plugin",canHandle:e=>typeof e=="object"&&typeof e.props<"u"&&typeof e.key<"u",transform:(e,{plugins:t,...n})=>vf({...n,value:"[[react-element]]",children:b.jsx(bf,{...n,children:d1(e)})})},Ij={id:"markdown-string-plugin",canHandle:e=>typeof e=="string",transform:(e,t,n)=>{const{plugins:r,...a}=t,o=qT(e),u=n(o,{plugins:[{id:"markdown-metadata-plugin",canHandle:d=>typeof d=="string"||typeof d=="number"||typeof d=="boolean"||!d,transform:(d,f)=>vf({...f,value:d,children:b.jsx(bf,{...a,children:b.jsx(kj,{...a,metadataKeyPath:f.keyPath,children:e})})})}],dictionaryKey:a.dictionaryKey,keyPath:[]});return vf({...t,value:e,children:b.jsx(bf,{...a,children:b.jsx(Nj,{...a,children:e})}),additionalProps:{metadata:u}})}},Lj={id:"markdown-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===K.Markdown,transform:(e,t,n)=>{const r=[...t.keyPath,{type:K.Markdown}],a=e[K.Markdown];return n(a,{...t,children:a,keyPath:r,plugins:[Ij,...t.plugins??[]]})}},dS=(e,t,n)=>GT(e,t,[Oj,Dj,Lj]),nn=(e,t)=>{const{locale:n}=E.useContext(lh),r=n,{changedContent:a}=QM();return a!=null&&a[e.key]?dS(a==null?void 0:a[e.key],r):dS(e,r)},Nv=({onLocaleChange:e}={})=>{const{defaultLocale:t,locales:n}=(tt==null?void 0:tt.internationalization)??{},{locale:r,setLocale:a}=E.useContext(lh),{setLocaleCookie:o}=_j();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),o(u),e==null||e(u)}}};var Jl={},fS;function Mj(){if(fS)return Jl;fS=1,Object.defineProperty(Jl,"__esModule",{value:!0}),Jl.parse=l,Jl.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,o=(()=>{const g=function(){};return g.prototype=Object.create(null),g})();function l(g,v){const x=new o,S=g.length;if(S<2)return x;const A=(v==null?void 0:v.decode)||m;let w=0;do{const T=g.indexOf("=",w);if(T===-1)break;const R=g.indexOf(";",w),D=R===-1?S:R;if(T>D){w=g.lastIndexOf(";",T-1)+1;continue}const N=u(g,w,T),L=d(g,T,N),O=g.slice(N,L);if(x[O]===void 0){let M=u(g,T+1,D),B=d(g,D,M);const U=A(g.slice(M,B));x[O]=U}w=D+1}while(w<S);return x}function u(g,v,x){do{const S=g.charCodeAt(v);if(S!==32&&S!==9)return v}while(++v<x);return x}function d(g,v,x){for(;v>x;){const S=g.charCodeAt(--v);if(S!==32&&S!==9)return v+1}return x}function f(g,v,x){const S=(x==null?void 0:x.encode)||encodeURIComponent;if(!e.test(g))throw new TypeError(`argument name is invalid: ${g}`);const A=S(v);if(!t.test(A))throw new TypeError(`argument val is invalid: ${v}`);let w=g+"="+A;if(!x)return w;if(x.maxAge!==void 0){if(!Number.isInteger(x.maxAge))throw new TypeError(`option maxAge is invalid: ${x.maxAge}`);w+="; Max-Age="+x.maxAge}if(x.domain){if(!n.test(x.domain))throw new TypeError(`option domain is invalid: ${x.domain}`);w+="; Domain="+x.domain}if(x.path){if(!r.test(x.path))throw new TypeError(`option path is invalid: ${x.path}`);w+="; Path="+x.path}if(x.expires){if(!y(x.expires)||!Number.isFinite(x.expires.valueOf()))throw new TypeError(`option expires is invalid: ${x.expires}`);w+="; Expires="+x.expires.toUTCString()}if(x.httpOnly&&(w+="; HttpOnly"),x.secure&&(w+="; Secure"),x.partitioned&&(w+="; Partitioned"),x.priority)switch(typeof x.priority=="string"?x.priority.toLowerCase():void 0){case"low":w+="; Priority=Low";break;case"medium":w+="; Priority=Medium";break;case"high":w+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${x.priority}`)}if(x.sameSite)switch(typeof x.sameSite=="string"?x.sameSite.toLowerCase():x.sameSite){case!0:case"strict":w+="; SameSite=Strict";break;case"lax":w+="; SameSite=Lax";break;case"none":w+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${x.sameSite}`)}return w}function m(g){if(g.indexOf("%")===-1)return g;try{return decodeURIComponent(g)}catch{return g}}function y(g){return a.call(g)==="[object Date]"}return Jl}Mj();var hS="popstate";function jj(e={}){function t(r,a){let{pathname:o,search:l,hash:u}=r.location;return ly("",{pathname:o,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:Nc(a)}return Vj(t,n,null,e)}function Ct(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Wr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Pj(){return Math.random().toString(36).substring(2,10)}function mS(e,t){return{usr:e.state,key:e.key,idx:t}}function ly(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?zo(t):t,state:n,key:t&&t.key||r||Pj()}}function Nc({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 zo(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 Vj(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:o=!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 y(){u="POP";let A=m(),w=A==null?null:A-f;f=A,d&&d({action:u,location:S.location,delta:w})}function g(A,w){u="PUSH";let T=ly(S.location,A,w);f=m()+1;let R=mS(T,f),D=S.createHref(T);try{l.pushState(R,"",D)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;a.location.assign(D)}o&&d&&d({action:u,location:S.location,delta:1})}function v(A,w){u="REPLACE";let T=ly(S.location,A,w);f=m();let R=mS(T,f),D=S.createHref(T);l.replaceState(R,"",D),o&&d&&d({action:u,location:S.location,delta:0})}function x(A){return Bj(A)}let S={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(hS,y),d=A,()=>{a.removeEventListener(hS,y),d=null}},createHref(A){return t(a,A)},createURL:x,encodeLocation(A){let w=x(A);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:g,replace:v,go(A){return l.go(A)}};return S}function Bj(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Ct(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Nc(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function f1(e,t,n="/"){return zj(e,t,n,!1)}function zj(e,t,n,r){let a=typeof t=="string"?zo(t):t,o=wi(a.pathname||"/",n);if(o==null)return null;let l=h1(e);Uj(l);let u=null;for(let d=0;u==null&&d<l.length;++d){let f=Qj(o);u=Zj(l[d],f,r)}return u}function h1(e,t=[],n=[],r=""){let a=(o,l,u)=>{let d={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};d.relativePath.startsWith("/")&&(Ct(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=Si([r,d.relativePath]),m=n.concat(d);o.children&&o.children.length>0&&(Ct(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),h1(o.children,t,m,f)),!(o.path==null&&!o.index)&&t.push({path:f,score:Wj(f,o.index),routesMeta:m})};return e.forEach((o,l)=>{var u;if(o.path===""||!((u=o.path)!=null&&u.includes("?")))a(o,l);else for(let d of m1(o.path))a(o,l,d)}),t}function m1(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return a?[o,""]:[o];let l=m1(r.join("/")),u=[];return u.push(...l.map(d=>d===""?o:[o,d].join("/"))),a&&u.push(...l),u.map(d=>e.startsWith("/")&&d===""?"/":d)}function Uj(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Yj(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Hj=/^:[\w-]+$/,Fj=3,Gj=2,$j=1,qj=10,Kj=-2,pS=e=>e==="*";function Wj(e,t){let n=e.split("/"),r=n.length;return n.some(pS)&&(r+=Kj),t&&(r+=Gj),n.filter(a=>!pS(a)).reduce((a,o)=>a+(Hj.test(o)?Fj:o===""?$j:qj),r)}function Yj(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 Zj(e,t,n=!1){let{routesMeta:r}=e,a={},o="/",l=[];for(let u=0;u<r.length;++u){let d=r[u],f=u===r.length-1,m=o==="/"?t:t.slice(o.length)||"/",y=_f({path:d.relativePath,caseSensitive:d.caseSensitive,end:f},m),g=d.route;if(!y&&f&&n&&!r[r.length-1].route.index&&(y=_f({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},m)),!y)return null;Object.assign(a,y.params),l.push({params:a,pathname:Si([o,y.pathname]),pathnameBase:nP(Si([o,y.pathnameBase])),route:g}),y.pathnameBase!=="/"&&(o=Si([o,y.pathnameBase]))}return l}function _f(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Xj(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],l=o.replace(/(.)\/+$/,"$1"),u=a.slice(1);return{params:r.reduce((f,{paramName:m,isOptional:y},g)=>{if(m==="*"){let x=u[g]||"";l=o.slice(0,o.length-x.length).replace(/(.)\/+$/,"$1")}const v=u[g];return y&&!v?f[m]=void 0:f[m]=(v||"").replace(/%2F/g,"/"),f},{}),pathname:o,pathnameBase:l,pattern:e}}function Xj(e,t=!1,n=!0){Wr(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 Qj(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Wr(!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 wi(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 Jj(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?zo(e):e;return{pathname:n?n.startsWith("/")?n:eP(n,t):t,search:rP(r),hash:iP(a)}}function eP(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 ng(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 tP(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function p1(e){let t=tP(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function g1(e,t,n,r=!1){let a;typeof e=="string"?a=zo(e):(a={...e},Ct(!a.pathname||!a.pathname.includes("?"),ng("?","pathname","search",a)),Ct(!a.pathname||!a.pathname.includes("#"),ng("#","pathname","hash",a)),Ct(!a.search||!a.search.includes("#"),ng("#","search","hash",a)));let o=e===""||a.pathname==="",l=o?"/":a.pathname,u;if(l==null)u=n;else{let y=t.length-1;if(!r&&l.startsWith("..")){let g=l.split("/");for(;g[0]==="..";)g.shift(),y-=1;a.pathname=g.join("/")}u=y>=0?t[y]:"/"}let d=Jj(a,u),f=l&&l!=="/"&&l.endsWith("/"),m=(o||l===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(f||m)&&(d.pathname+="/"),d}var Si=e=>e.join("/").replace(/\/\/+/g,"/"),nP=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),rP=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,iP=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function aP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var y1=["POST","PUT","PATCH","DELETE"];new Set(y1);var sP=["GET",...y1];new Set(sP);var Uo=E.createContext(null);Uo.displayName="DataRouter";var ch=E.createContext(null);ch.displayName="DataRouterState";var v1=E.createContext({isTransitioning:!1});v1.displayName="ViewTransition";var oP=E.createContext(new Map);oP.displayName="Fetchers";var lP=E.createContext(null);lP.displayName="Await";var Xr=E.createContext(null);Xr.displayName="Navigation";var Xc=E.createContext(null);Xc.displayName="Location";var Di=E.createContext({outlet:null,matches:[],isDataRoute:!1});Di.displayName="Route";var kv=E.createContext(null);kv.displayName="RouteError";function cP(e,{relative:t}={}){Ct(Qc(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=E.useContext(Xr),{hash:a,pathname:o,search:l}=Jc(e,{relative:t}),u=o;return n!=="/"&&(u=o==="/"?n:Si([n,o])),r.createHref({pathname:u,search:l,hash:a})}function Qc(){return E.useContext(Xc)!=null}function _a(){return Ct(Qc(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(Xc).location}var b1="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function _1(e){E.useContext(Xr).static||E.useLayoutEffect(e)}function uP(){let{isDataRoute:e}=E.useContext(Di);return e?SP():dP()}function dP(){Ct(Qc(),"useNavigate() may be used only in the context of a <Router> component.");let e=E.useContext(Uo),{basename:t,navigator:n}=E.useContext(Xr),{matches:r}=E.useContext(Di),{pathname:a}=_a(),o=JSON.stringify(p1(r)),l=E.useRef(!1);return _1(()=>{l.current=!0}),E.useCallback((d,f={})=>{if(Wr(l.current,b1),!l.current)return;if(typeof d=="number"){n.go(d);return}let m=g1(d,JSON.parse(o),a,f.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Si([t,m.pathname])),(f.replace?n.replace:n.push)(m,f.state,f)},[t,n,o,a,e])}E.createContext(null);function Jc(e,{relative:t}={}){let{matches:n}=E.useContext(Di),{pathname:r}=_a(),a=JSON.stringify(p1(n));return E.useMemo(()=>g1(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function fP(e,t){return x1(e,t)}function x1(e,t,n,r){var T;Ct(Qc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a,static:o}=E.useContext(Xr),{matches:l}=E.useContext(Di),u=l[l.length-1],d=u?u.params:{},f=u?u.pathname:"/",m=u?u.pathnameBase:"/",y=u&&u.route;{let R=y&&y.path||"";E1(f,!y||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${R}">) 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.
|
|
50
|
+
`).replace(SL,"")}function xE(i,s){return s=_E(s),_E(i)===s}function md(){}function gt(i,s,c,h,p,_){switch(c){case"children":typeof h=="string"?s==="body"||s==="textarea"&&h===""||Rs(i,h):(typeof h=="number"||typeof h=="bigint")&&s!=="body"&&Rs(i,""+h);break;case"className":Eu(i,"class",h);break;case"tabIndex":Eu(i,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":Eu(i,c,h);break;case"style":O_(i,h,_);break;case"data":if(s!=="object"){Eu(i,"data",h);break}case"src":case"href":if(h===""&&(s!=="a"||c!=="href")){i.removeAttribute(c);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(c);break}h=wu(""+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"?(s!=="input"&>(i,s,"name",p.name,p,null),gt(i,s,"formEncType",p.formEncType,p,null),gt(i,s,"formMethod",p.formMethod,p,null),gt(i,s,"formTarget",p.formTarget,p,null)):(gt(i,s,"encType",p.encType,p,null),gt(i,s,"method",p.method,p,null),gt(i,s,"target",p.target,p,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(c);break}h=wu(""+h),i.setAttribute(c,h);break;case"onClick":h!=null&&(i.onclick=md);break;case"onScroll":h!=null&&at("scroll",i);break;case"onScrollEnd":h!=null&&at("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(p.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=wu(""+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":at("beforetoggle",i),at("toggle",i),xu(i,"popover",h);break;case"xlinkActuate":ni(i,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":ni(i,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":ni(i,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":ni(i,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":ni(i,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":ni(i,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":ni(i,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":ni(i,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":ni(i,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":xu(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=QD.get(c)||c,xu(i,c,h))}}function Ip(i,s,c,h,p,_){switch(c){case"style":O_(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(p.children!=null)throw Error(r(60));i.innerHTML=c}}break;case"children":typeof h=="string"?Rs(i,h):(typeof h=="number"||typeof h=="bigint")&&Rs(i,""+h);break;case"onScroll":h!=null&&at("scroll",i);break;case"onScrollEnd":h!=null&&at("scrollend",i);break;case"onClick":h!=null&&(i.onclick=md);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!E_.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(p=c.endsWith("Capture"),s=c.slice(2,p?c.length-7:void 0),_=i[Nn]||null,_=_!=null?_[c]:null,typeof _=="function"&&i.removeEventListener(s,_,p),typeof h=="function")){typeof _!="function"&&_!==null&&(c in i?i[c]=null:i.hasAttribute(c)&&i.removeAttribute(c)),i.addEventListener(s,h,p);break e}c in i?i[c]=h:h===!0?i.setAttribute(c,""):xu(i,c,h)}}}function on(i,s,c){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":at("error",i),at("load",i);var h=!1,p=!1,_;for(_ in c)if(c.hasOwnProperty(_)){var C=c[_];if(C!=null)switch(_){case"src":h=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:gt(i,s,_,C,c,null)}}p&>(i,s,"srcSet",c.srcSet,c,null),h&>(i,s,"src",c.src,c,null);return;case"input":at("invalid",i);var k=_=C=p=null,j=null,$=null;for(h in c)if(c.hasOwnProperty(h)){var se=c[h];if(se!=null)switch(h){case"name":p=se;break;case"type":C=se;break;case"checked":j=se;break;case"defaultChecked":$=se;break;case"value":_=se;break;case"defaultValue":k=se;break;case"children":case"dangerouslySetInnerHTML":if(se!=null)throw Error(r(137,s));break;default:gt(i,s,h,se,c,null)}}C_(i,_,k,j,$,C,p,!1),Su(i);return;case"select":at("invalid",i),h=C=_=null;for(p in c)if(c.hasOwnProperty(p)&&(k=c[p],k!=null))switch(p){case"value":_=k;break;case"defaultValue":C=k;break;case"multiple":h=k;default:gt(i,s,p,k,c,null)}s=_,c=C,i.multiple=!!h,s!=null?Cs(i,!!h,s,!1):c!=null&&Cs(i,!!h,c,!0);return;case"textarea":at("invalid",i),_=p=h=null;for(C in c)if(c.hasOwnProperty(C)&&(k=c[C],k!=null))switch(C){case"value":h=k;break;case"defaultValue":p=k;break;case"children":_=k;break;case"dangerouslySetInnerHTML":if(k!=null)throw Error(r(91));break;default:gt(i,s,C,k,c,null)}N_(i,h,p,_),Su(i);return;case"option":for(j in c)if(c.hasOwnProperty(j)&&(h=c[j],h!=null))switch(j){case"selected":i.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:gt(i,s,j,h,c,null)}return;case"dialog":at("cancel",i),at("close",i);break;case"iframe":case"object":at("load",i);break;case"video":case"audio":for(h=0;h<zl.length;h++)at(zl[h],i);break;case"image":at("error",i),at("load",i);break;case"details":at("toggle",i);break;case"embed":case"source":case"link":at("error",i),at("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($ in c)if(c.hasOwnProperty($)&&(h=c[$],h!=null))switch($){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,s));default:gt(i,s,$,h,c,null)}return;default:if(Yh(s)){for(se in c)c.hasOwnProperty(se)&&(h=c[se],h!==void 0&&Ip(i,s,se,h,c,void 0));return}}for(k in c)c.hasOwnProperty(k)&&(h=c[k],h!=null&>(i,s,k,h,c,null))}function AL(i,s,c,h){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,_=null,C=null,k=null,j=null,$=null,se=null;for(ae in c){var me=c[ae];if(c.hasOwnProperty(ae)&&me!=null)switch(ae){case"checked":break;case"value":break;case"defaultValue":j=me;default:h.hasOwnProperty(ae)||gt(i,s,ae,null,h,me)}}for(var te in h){var ae=h[te];if(me=c[te],h.hasOwnProperty(te)&&(ae!=null||me!=null))switch(te){case"type":_=ae;break;case"name":p=ae;break;case"checked":$=ae;break;case"defaultChecked":se=ae;break;case"value":C=ae;break;case"defaultValue":k=ae;break;case"children":case"dangerouslySetInnerHTML":if(ae!=null)throw Error(r(137,s));break;default:ae!==me&>(i,s,te,ae,h,me)}}Kh(i,C,k,j,$,se,_,p);return;case"select":ae=C=k=te=null;for(_ in c)if(j=c[_],c.hasOwnProperty(_)&&j!=null)switch(_){case"value":break;case"multiple":ae=j;default:h.hasOwnProperty(_)||gt(i,s,_,null,h,j)}for(p in h)if(_=h[p],j=c[p],h.hasOwnProperty(p)&&(_!=null||j!=null))switch(p){case"value":te=_;break;case"defaultValue":k=_;break;case"multiple":C=_;default:_!==j&>(i,s,p,_,h,j)}s=k,c=C,h=ae,te!=null?Cs(i,!!c,te,!1):!!h!=!!c&&(s!=null?Cs(i,!!c,s,!0):Cs(i,!!c,c?[]:"",!1));return;case"textarea":ae=te=null;for(k in c)if(p=c[k],c.hasOwnProperty(k)&&p!=null&&!h.hasOwnProperty(k))switch(k){case"value":break;case"children":break;default:gt(i,s,k,null,h,p)}for(C in h)if(p=h[C],_=c[C],h.hasOwnProperty(C)&&(p!=null||_!=null))switch(C){case"value":te=p;break;case"defaultValue":ae=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(r(91));break;default:p!==_&>(i,s,C,p,h,_)}R_(i,te,ae);return;case"option":for(var Me in c)if(te=c[Me],c.hasOwnProperty(Me)&&te!=null&&!h.hasOwnProperty(Me))switch(Me){case"selected":i.selected=!1;break;default:gt(i,s,Me,null,h,te)}for(j in h)if(te=h[j],ae=c[j],h.hasOwnProperty(j)&&te!==ae&&(te!=null||ae!=null))switch(j){case"selected":i.selected=te&&typeof te!="function"&&typeof te!="symbol";break;default:gt(i,s,j,te,h,ae)}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 $e in c)te=c[$e],c.hasOwnProperty($e)&&te!=null&&!h.hasOwnProperty($e)&>(i,s,$e,null,h,te);for($ in h)if(te=h[$],ae=c[$],h.hasOwnProperty($)&&te!==ae&&(te!=null||ae!=null))switch($){case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(r(137,s));break;default:gt(i,s,$,te,h,ae)}return;default:if(Yh(s)){for(var Dt in c)te=c[Dt],c.hasOwnProperty(Dt)&&te!==void 0&&!h.hasOwnProperty(Dt)&&Ip(i,s,Dt,void 0,h,te);for(se in h)te=h[se],ae=c[se],!h.hasOwnProperty(se)||te===ae||te===void 0&&ae===void 0||Ip(i,s,se,te,h,ae);return}}for(var W in c)te=c[W],c.hasOwnProperty(W)&&te!=null&&!h.hasOwnProperty(W)&>(i,s,W,null,h,te);for(me in h)te=h[me],ae=c[me],!h.hasOwnProperty(me)||te===ae||te==null&&ae==null||gt(i,s,me,te,h,ae)}var Lp=null,Mp=null;function pd(i){return i.nodeType===9?i:i.ownerDocument}function EE(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 SE(i,s){if(i===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&s==="foreignObject"?0:i}function jp(i,s){return i==="textarea"||i==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Pp=null;function wL(){var i=window.event;return i&&i.type==="popstate"?i===Pp?!1:(Pp=i,!0):(Pp=null,!1)}var AE=typeof setTimeout=="function"?setTimeout:void 0,TL=typeof clearTimeout=="function"?clearTimeout:void 0,wE=typeof Promise=="function"?Promise:void 0,CL=typeof queueMicrotask=="function"?queueMicrotask:typeof wE<"u"?function(i){return wE.resolve(null).then(i).catch(RL)}:AE;function RL(i){setTimeout(function(){throw i})}function Vp(i,s){var c=s,h=0;do{var p=c.nextSibling;if(i.removeChild(c),p&&p.nodeType===8)if(c=p.data,c==="/$"){if(h===0){i.removeChild(p),Yl(s);return}h--}else c!=="$"&&c!=="$?"&&c!=="$!"||h++;c=p}while(c);Yl(s)}function Bp(i){var s=i.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var c=s;switch(s=s.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 NL(i,s,c,h){for(;i.nodeType===1;){var p=c;if(i.nodeName.toLowerCase()!==s.toLowerCase()){if(!h&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(h){if(!i[rl])switch(s){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(_=i.getAttribute("rel"),_==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(_!==p.rel||i.getAttribute("href")!==(p.href==null?null:p.href)||i.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||i.getAttribute("title")!==(p.title==null?null:p.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(_=i.getAttribute("src"),(_!==(p.src==null?null:p.src)||i.getAttribute("type")!==(p.type==null?null:p.type)||i.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&_&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(s==="input"&&i.type==="hidden"){var _=p.name==null?null:""+p.name;if(p.type==="hidden"&&i.getAttribute("name")===_)return i}else return i;if(i=xr(i.nextSibling),i===null)break}return null}function kL(i,s,c){if(s==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!c||(i=xr(i.nextSibling),i===null))return null;return i}function xr(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s==="$"||s==="$!"||s==="$?"||s==="F!"||s==="F")break;if(s==="/$")return null}}return i}function TE(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var c=i.data;if(c==="$"||c==="$!"||c==="$?"){if(s===0)return i;s--}else c==="/$"&&s++}i=i.previousSibling}return null}function CE(i,s,c){switch(s=pd(c),i){case"html":if(i=s.documentElement,!i)throw Error(r(452));return i;case"head":if(i=s.head,!i)throw Error(r(453));return i;case"body":if(i=s.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}var ir=new Map,RE=new Set;function gd(i){return typeof i.getRootNode=="function"?i.getRootNode():i.ownerDocument}var yi=re.d;re.d={f:OL,r:DL,D:IL,C:LL,L:ML,m:jL,X:VL,S:PL,M:BL};function OL(){var i=yi.f(),s=ld();return i||s}function DL(i){var s=As(i);s!==null&&s.tag===5&&s.type==="form"?tx(s):yi.r(i)}var to=typeof document>"u"?null:document;function NE(i,s,c){var h=to;if(h&&typeof s=="string"&&s){var p=Wn(s);p='link[rel="'+i+'"][href="'+p+'"]',typeof c=="string"&&(p+='[crossorigin="'+c+'"]'),RE.has(p)||(RE.add(p),i={rel:i,crossOrigin:c,href:s},h.querySelector(p)===null&&(s=h.createElement("link"),on(s,"link",i),Zt(s),h.head.appendChild(s)))}}function IL(i){yi.D(i),NE("dns-prefetch",i,null)}function LL(i,s){yi.C(i,s),NE("preconnect",i,s)}function ML(i,s,c){yi.L(i,s,c);var h=to;if(h&&i&&s){var p='link[rel="preload"][as="'+Wn(s)+'"]';s==="image"&&c&&c.imageSrcSet?(p+='[imagesrcset="'+Wn(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(p+='[imagesizes="'+Wn(c.imageSizes)+'"]')):p+='[href="'+Wn(i)+'"]';var _=p;switch(s){case"style":_=no(i);break;case"script":_=ro(i)}ir.has(_)||(i=U({rel:"preload",href:s==="image"&&c&&c.imageSrcSet?void 0:i,as:s},c),ir.set(_,i),h.querySelector(p)!==null||s==="style"&&h.querySelector(Hl(_))||s==="script"&&h.querySelector(Fl(_))||(s=h.createElement("link"),on(s,"link",i),Zt(s),h.head.appendChild(s)))}}function jL(i,s){yi.m(i,s);var c=to;if(c&&i){var h=s&&typeof s.as=="string"?s.as:"script",p='link[rel="modulepreload"][as="'+Wn(h)+'"][href="'+Wn(i)+'"]',_=p;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":_=ro(i)}if(!ir.has(_)&&(i=U({rel:"modulepreload",href:i},s),ir.set(_,i),c.querySelector(p)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(Fl(_)))return}h=c.createElement("link"),on(h,"link",i),Zt(h),c.head.appendChild(h)}}}function PL(i,s,c){yi.S(i,s,c);var h=to;if(h&&i){var p=ws(h).hoistableStyles,_=no(i);s=s||"default";var C=p.get(_);if(!C){var k={loading:0,preload:null};if(C=h.querySelector(Hl(_)))k.loading=5;else{i=U({rel:"stylesheet",href:i,"data-precedence":s},c),(c=ir.get(_))&&zp(i,c);var j=C=h.createElement("link");Zt(j),on(j,"link",i),j._p=new Promise(function($,se){j.onload=$,j.onerror=se}),j.addEventListener("load",function(){k.loading|=1}),j.addEventListener("error",function(){k.loading|=2}),k.loading|=4,yd(C,s,h)}C={type:"stylesheet",instance:C,count:1,state:k},p.set(_,C)}}}function VL(i,s){yi.X(i,s);var c=to;if(c&&i){var h=ws(c).hoistableScripts,p=ro(i),_=h.get(p);_||(_=c.querySelector(Fl(p)),_||(i=U({src:i,async:!0},s),(s=ir.get(p))&&Up(i,s),_=c.createElement("script"),Zt(_),on(_,"link",i),c.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},h.set(p,_))}}function BL(i,s){yi.M(i,s);var c=to;if(c&&i){var h=ws(c).hoistableScripts,p=ro(i),_=h.get(p);_||(_=c.querySelector(Fl(p)),_||(i=U({src:i,async:!0,type:"module"},s),(s=ir.get(p))&&Up(i,s),_=c.createElement("script"),Zt(_),on(_,"link",i),c.head.appendChild(_)),_={type:"script",instance:_,count:1,state:null},h.set(p,_))}}function kE(i,s,c,h){var p=(p=Et.current)?gd(p):null;if(!p)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(s=no(c.href),c=ws(p).hoistableStyles,h=c.get(s),h||(h={type:"style",instance:null,count:0,state:null},c.set(s,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=no(c.href);var _=ws(p).hoistableStyles,C=_.get(i);if(C||(p=p.ownerDocument||p,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},_.set(i,C),(_=p.querySelector(Hl(i)))&&!_._p&&(C.instance=_,C.state.loading=5),ir.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},ir.set(i,c),_||zL(p,i,c,C.state))),s&&h===null)throw Error(r(528,""));return C}if(s&&h!==null)throw Error(r(529,""));return null;case"script":return s=c.async,c=c.src,typeof c=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=ro(c),c=ws(p).hoistableScripts,h=c.get(s),h||(h={type:"script",instance:null,count:0,state:null},c.set(s,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function no(i){return'href="'+Wn(i)+'"'}function Hl(i){return'link[rel="stylesheet"]['+i+"]"}function OE(i){return U({},i,{"data-precedence":i.precedence,precedence:null})}function zL(i,s,c,h){i.querySelector('link[rel="preload"][as="style"]['+s+"]")?h.loading=1:(s=i.createElement("link"),h.preload=s,s.addEventListener("load",function(){return h.loading|=1}),s.addEventListener("error",function(){return h.loading|=2}),on(s,"link",c),Zt(s),i.head.appendChild(s))}function ro(i){return'[src="'+Wn(i)+'"]'}function Fl(i){return"script[async]"+i}function DE(i,s,c){if(s.count++,s.instance===null)switch(s.type){case"style":var h=i.querySelector('style[data-href~="'+Wn(c.href)+'"]');if(h)return s.instance=h,Zt(h),h;var p=U({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return h=(i.ownerDocument||i).createElement("style"),Zt(h),on(h,"style",p),yd(h,c.precedence,i),s.instance=h;case"stylesheet":p=no(c.href);var _=i.querySelector(Hl(p));if(_)return s.state.loading|=4,s.instance=_,Zt(_),_;h=OE(c),(p=ir.get(p))&&zp(h,p),_=(i.ownerDocument||i).createElement("link"),Zt(_);var C=_;return C._p=new Promise(function(k,j){C.onload=k,C.onerror=j}),on(_,"link",h),s.state.loading|=4,yd(_,c.precedence,i),s.instance=_;case"script":return _=ro(c.src),(p=i.querySelector(Fl(_)))?(s.instance=p,Zt(p),p):(h=c,(p=ir.get(_))&&(h=U({},c),Up(h,p)),i=i.ownerDocument||i,p=i.createElement("script"),Zt(p),on(p,"link",h),i.head.appendChild(p),s.instance=p);case"void":return null;default:throw Error(r(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(h=s.instance,s.state.loading|=4,yd(h,c.precedence,i));return s.instance}function yd(i,s,c){for(var h=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=h.length?h[h.length-1]:null,_=p,C=0;C<h.length;C++){var k=h[C];if(k.dataset.precedence===s)_=k;else if(_!==p)break}_?_.parentNode.insertBefore(i,_.nextSibling):(s=c.nodeType===9?c.head:c,s.insertBefore(i,s.firstChild))}function zp(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.title==null&&(i.title=s.title)}function Up(i,s){i.crossOrigin==null&&(i.crossOrigin=s.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=s.referrerPolicy),i.integrity==null&&(i.integrity=s.integrity)}var vd=null;function IE(i,s,c){if(vd===null){var h=new Map,p=vd=new Map;p.set(c,h)}else p=vd,h=p.get(c),h||(h=new Map,p.set(c,h));if(h.has(i))return h;for(h.set(i,null),c=c.getElementsByTagName(i),p=0;p<c.length;p++){var _=c[p];if(!(_[rl]||_[fn]||i==="link"&&_.getAttribute("rel")==="stylesheet")&&_.namespaceURI!=="http://www.w3.org/2000/svg"){var C=_.getAttribute(s)||"";C=i+C;var k=h.get(C);k?k.push(_):h.set(C,[_])}}return h}function LE(i,s,c){i=i.ownerDocument||i,i.head.insertBefore(c,s==="title"?i.querySelector("head > title"):null)}function UL(i,s,c){if(c===1||s.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return i=s.disabled,typeof s.precedence=="string"&&i==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function ME(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var Gl=null;function HL(){}function FL(i,s,c){if(Gl===null)throw Error(r(475));var h=Gl;if(s.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var p=no(c.href),_=i.querySelector(Hl(p));if(_){i=_._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(h.count++,h=bd.bind(h),i.then(h,h)),s.state.loading|=4,s.instance=_,Zt(_);return}_=i.ownerDocument||i,c=OE(c),(p=ir.get(p))&&zp(c,p),_=_.createElement("link"),Zt(_);var C=_;C._p=new Promise(function(k,j){C.onload=k,C.onerror=j}),on(_,"link",c),s.instance=_}h.stylesheets===null&&(h.stylesheets=new Map),h.stylesheets.set(s,i),(i=s.state.preload)&&(s.state.loading&3)===0&&(h.count++,s=bd.bind(h),i.addEventListener("load",s),i.addEventListener("error",s))}}function GL(){if(Gl===null)throw Error(r(475));var i=Gl;return i.stylesheets&&i.count===0&&Hp(i,i.stylesheets),0<i.count?function(s){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=s,function(){i.unsuspend=null,clearTimeout(c)}}:null}function bd(){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 _d=null;function Hp(i,s){i.stylesheets=null,i.unsuspend!==null&&(i.count++,_d=new Map,s.forEach($L,i),_d=null,bd.call(i))}function $L(i,s){if(!(s.state.loading&4)){var c=_d.get(i);if(c)var h=c.get(null);else{c=new Map,_d.set(i,c);for(var p=i.querySelectorAll("link[data-precedence],style[data-precedence]"),_=0;_<p.length;_++){var C=p[_];(C.nodeName==="LINK"||C.getAttribute("media")!=="not all")&&(c.set(C.dataset.precedence,C),h=C)}h&&c.set(null,h)}p=s.instance,C=p.getAttribute("data-precedence"),_=c.get(C)||h,_===h&&c.set(null,p),c.set(C,p),this.count++,h=bd.bind(this),p.addEventListener("load",h),p.addEventListener("error",h),_?_.parentNode.insertBefore(p,_.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(p,i.firstChild)),s.state.loading|=4}}var $l={$$typeof:v,Provider:null,Consumer:null,_currentValue:he,_currentValue2:he,_threadCount:0};function qL(i,s,c,h,p,_,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=p,this.onCaughtError=_,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=k,this.incompleteTransitions=new Map}function jE(i,s,c,h,p,_,C,k,j,$,se,me){return i=new qL(i,s,c,C,k,j,$,me),s=1,_===!0&&(s|=24),_=nr(3,null,null,s),i.current=_,_.stateNode=i,s=_m(),s.refCount++,i.pooledCache=s,s.refCount++,_.memoizedState={element:h,isDehydrated:c,cache:s},ep(_),i}function PE(i){return i?(i=Ms,i):Ms}function VE(i,s,c,h,p,_){p=PE(p),h.context===null?h.context=p:h.pendingContext=p,h=Fi(s),h.payload={element:c},_=_===void 0?null:_,_!==null&&(h.callback=_),c=Gi(i,h,s),c!==null&&(En(c,i,s),Rl(c,i,s))}function BE(i,s){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var c=i.retryLane;i.retryLane=c!==0&&c<s?c:s}}function Fp(i,s){BE(i,s),(i=i.alternate)&&BE(i,s)}function zE(i){if(i.tag===13){var s=ji(i,67108864);s!==null&&En(s,i,67108864),Fp(i,67108864)}}var xd=!0;function KL(i,s,c,h){var p=B.T;B.T=null;var _=re.p;try{re.p=2,Gp(i,s,c,h)}finally{re.p=_,B.T=p}}function WL(i,s,c,h){var p=B.T;B.T=null;var _=re.p;try{re.p=8,Gp(i,s,c,h)}finally{re.p=_,B.T=p}}function Gp(i,s,c,h){if(xd){var p=$p(h);if(p===null)Dp(i,s,h,Ed,c),HE(i,h);else if(ZL(p,i,s,c,h))h.stopPropagation();else if(HE(i,h),s&4&&-1<YL.indexOf(i)){for(;p!==null;){var _=As(p);if(_!==null)switch(_.tag){case 3:if(_=_.stateNode,_.current.memoizedState.isDehydrated){var C=Oa(_.pendingLanes);if(C!==0){var k=_;for(k.pendingLanes|=2,k.entangledLanes|=2;C;){var j=1<<31-_n(C);k.entanglements[1]|=j,C&=~j}jr(_),(wt&6)===0&&(ad=be()+500,Bl(0))}}break;case 13:k=ji(_,2),k!==null&&En(k,_,2),ld(),Fp(_,2)}if(_=$p(h),_===null&&Dp(i,s,h,Ed,c),_===p)break;p=_}p!==null&&h.stopPropagation()}else Dp(i,s,h,null,c)}}function $p(i){return i=Xh(i),qp(i)}var Ed=null;function qp(i){if(Ed=null,i=Da(i),i!==null){var s=q(i);if(s===null)i=null;else{var c=s.tag;if(c===13){if(i=ge(s),i!==null)return i;i=null}else if(c===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;i=null}else s!==i&&(i=null)}}return Ed=i,null}function UE(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(_e()){case Pe:return 2;case ct:return 8;case ht:case Rn:return 32;case ka:return 268435456;default:return 32}default:return 32}}var Kp=!1,Xi=null,Qi=null,Ji=null,ql=new Map,Kl=new Map,ea=[],YL="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 HE(i,s){switch(i){case"focusin":case"focusout":Xi=null;break;case"dragenter":case"dragleave":Qi=null;break;case"mouseover":case"mouseout":Ji=null;break;case"pointerover":case"pointerout":ql.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Kl.delete(s.pointerId)}}function Wl(i,s,c,h,p,_){return i===null||i.nativeEvent!==_?(i={blockedOn:s,domEventName:c,eventSystemFlags:h,nativeEvent:_,targetContainers:[p]},s!==null&&(s=As(s),s!==null&&zE(s)),i):(i.eventSystemFlags|=h,s=i.targetContainers,p!==null&&s.indexOf(p)===-1&&s.push(p),i)}function ZL(i,s,c,h,p){switch(s){case"focusin":return Xi=Wl(Xi,i,s,c,h,p),!0;case"dragenter":return Qi=Wl(Qi,i,s,c,h,p),!0;case"mouseover":return Ji=Wl(Ji,i,s,c,h,p),!0;case"pointerover":var _=p.pointerId;return ql.set(_,Wl(ql.get(_)||null,i,s,c,h,p)),!0;case"gotpointercapture":return _=p.pointerId,Kl.set(_,Wl(Kl.get(_)||null,i,s,c,h,p)),!0}return!1}function FE(i){var s=Da(i.target);if(s!==null){var c=q(s);if(c!==null){if(s=c.tag,s===13){if(s=ge(c),s!==null){i.blockedOn=s,GD(i.priority,function(){if(c.tag===13){var h=Bn(),p=ji(c,h);p!==null&&En(p,c,h),Fp(c,h)}});return}}else if(s===3&&c.stateNode.current.memoizedState.isDehydrated){i.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}i.blockedOn=null}function Sd(i){if(i.blockedOn!==null)return!1;for(var s=i.targetContainers;0<s.length;){var c=$p(i.nativeEvent);if(c===null){c=i.nativeEvent;var h=new c.constructor(c.type,c);Zh=h,c.target.dispatchEvent(h),Zh=null}else return s=As(c),s!==null&&zE(s),i.blockedOn=c,!1;s.shift()}return!0}function GE(i,s,c){Sd(i)&&c.delete(s)}function XL(){Kp=!1,Xi!==null&&Sd(Xi)&&(Xi=null),Qi!==null&&Sd(Qi)&&(Qi=null),Ji!==null&&Sd(Ji)&&(Ji=null),ql.forEach(GE),Kl.forEach(GE)}function Ad(i,s){i.blockedOn===s&&(i.blockedOn=null,Kp||(Kp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,XL)))}var wd=null;function $E(i){wd!==i&&(wd=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){wd===i&&(wd=null);for(var s=0;s<i.length;s+=3){var c=i[s],h=i[s+1],p=i[s+2];if(typeof h!="function"){if(qp(h||c)===null)continue;break}var _=As(c);_!==null&&(i.splice(s,3),s-=3,jm(_,{pending:!0,data:p,method:c.method,action:h},h,p))}}))}function Yl(i){function s(j){return Ad(j,i)}Xi!==null&&Ad(Xi,i),Qi!==null&&Ad(Qi,i),Ji!==null&&Ad(Ji,i),ql.forEach(s),Kl.forEach(s);for(var c=0;c<ea.length;c++){var h=ea[c];h.blockedOn===i&&(h.blockedOn=null)}for(;0<ea.length&&(c=ea[0],c.blockedOn===null);)FE(c),c.blockedOn===null&&ea.shift();if(c=(i.ownerDocument||i).$$reactFormReplay,c!=null)for(h=0;h<c.length;h+=3){var p=c[h],_=c[h+1],C=p[Nn]||null;if(typeof _=="function")C||$E(c);else if(C){var k=null;if(_&&_.hasAttribute("formAction")){if(p=_,C=_[Nn]||null)k=C.formAction;else if(qp(p)!==null)continue}else k=C.action;typeof k=="function"?c[h+1]=k:(c.splice(h,3),h-=3),$E(c)}}}function Wp(i){this._internalRoot=i}Td.prototype.render=Wp.prototype.render=function(i){var s=this._internalRoot;if(s===null)throw Error(r(409));var c=s.current,h=Bn();VE(c,h,i,s,null,null)},Td.prototype.unmount=Wp.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var s=i.containerInfo;i.tag===0&&Qs(),VE(i.current,2,null,i,null,null),ld(),s[Ss]=null}};function Td(i){this._internalRoot=i}Td.prototype.unstable_scheduleHydration=function(i){if(i){var s=b_();i={blockedOn:null,target:i,priority:s};for(var c=0;c<ea.length&&s!==0&&s<ea[c].priority;c++);ea.splice(c,0,i),c===0&&FE(i)}};var qE=t.version;if(qE!=="19.0.0")throw Error(r(527,qE,"19.0.0"));re.findDOMNode=function(i){var s=i._reactInternals;if(s===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=X(s),i=i!==null?H(i):null,i=i===null?null:i.stateNode,i};var QL={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:B,findFiberByHostInstance:Da,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Cd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Cd.isDisabled&&Cd.supportsFiber)try{ei=Cd.inject(QL),rn=Cd}catch{}}return Xl.createRoot=function(i,s){if(!a(i))throw Error(r(299));var c=!1,h="",p=cx,_=ux,C=dx,k=null;return s!=null&&(s.unstable_strictMode===!0&&(c=!0),s.identifierPrefix!==void 0&&(h=s.identifierPrefix),s.onUncaughtError!==void 0&&(p=s.onUncaughtError),s.onCaughtError!==void 0&&(_=s.onCaughtError),s.onRecoverableError!==void 0&&(C=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(k=s.unstable_transitionCallbacks)),s=jE(i,1,!1,null,null,c,h,p,_,C,k,null),i[Ss]=s.current,Op(i.nodeType===8?i.parentNode:i),new Wp(s)},Xl.hydrateRoot=function(i,s,c){if(!a(i))throw Error(r(299));var h=!1,p="",_=cx,C=ux,k=dx,j=null,$=null;return c!=null&&(c.unstable_strictMode===!0&&(h=!0),c.identifierPrefix!==void 0&&(p=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&&(j=c.unstable_transitionCallbacks),c.formState!==void 0&&($=c.formState)),s=jE(i,1,!0,s,c??null,h,p,_,C,k,j,$),s.context=PE(null),c=s.current,h=Bn(),p=Fi(h),p.callback=null,Gi(c,p,h),s.current.lanes=h,nl(s,h),jr(s),i[Ss]=s.current,Op(i),new Td(s)},Xl.version="19.0.0",Xl}var nS;function uM(){if(nS)return Xp.exports;nS=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(),Xp.exports=cM(),Xp.exports}var dM=uM();const fM={locales:["en","en-GB","fr","es","de","ja","ko","zh","it","pt","hi","ar","ru"],defaultLocale:"en"},hM={cookieName:"INTLAYER_LOCALE",prefixDefault:!1},mM={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},tt={internationalization:fM,middleware:hM,editor:mM};var V=(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))(V||{}),K=(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.Unknown="unknown",e))(K||{});const pM=(e,t,n)=>({...n,nodeType:e,[e]:t}),rS=(e,t,n)=>{let r=e,a=null,o=[];if(t.length===0)return n;for(let l=0;l<t.length;l++){const u=t[l];if(a=r,(u.type===K.Object||u.type===K.Array)&&(o=[u.key],(!r[u.key]||typeof r[u.key]!="object")&&(r[u.key]={}),r=r[u.key]),(u.type===K.Translation||u.type===K.Enumeration)&&(o=[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===K.Enumeration||u.type===K.Condition)&&(o=[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===K.Markdown||u.type===K.Insertion)&&(o=[u.type],(!r[u.type]||typeof r[u.type]!="object")&&(r[u.type]=""),r=r[u.type]),u.type===K.File&&(o=["content"],r=r.content),u.type&&(r=r),l===t.length-1&&a&&o.length>0){let d=a;for(const f of o.slice(0,-1))d=d[f];typeof n>"u"?delete d[o[o.length-1]]:d[o[o.length-1]]=n}}return e},Hr=(e,t)=>{let n=structuredClone(e);for(const r of t)r.type===K.Object||r.type===K.Array?n=n==null?void 0:n[r.key]:r.type===K.Translation||r.type===K.Condition||r.type===K.Enumeration?n=n==null?void 0:n[r.type][r.key]:(r.type===K.Markdown||r.type===K.Insertion||r.type===K.File)&&(n=n==null?void 0:n[r.type]);return n},FT=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===K.Translation||t.nodeType===K.Enumeration||t.nodeType===K.Condition||t.nodeType===K.Insertion||t.nodeType===K.File){const r=Object.keys(n)[0];return n[r]}return t.nodeType===K.Nested?void 0:n}return!e||typeof e!="object"?e:Array.isArray(e)?e[0]:e},gM=(e,t,n)=>{let r=e,a=null,o=null;for(const l of n)a=r,(l.type===K.Object||l.type===K.Array)&&(o=l.key,r=r[l.key]),(l.type===K.Translation||l.type===K.Enumeration||l.type===K.Condition)&&(o=l.type,r=r[l.type][l.key]),(l.type===K.Markdown||l.type===K.ReactNode||l.type===K.Insertion||l.type===K.File)&&(o=l.type,r=r[l.type]);if(a&&o!==null)if(Array.isArray(a))a[o]=r;else{const l={};for(const u of Object.keys(a))u===o&&typeof t<"u"?l[t]=r:l[u]=a[u];Object.keys(a).forEach(u=>delete a[u]),Object.assign(a,l)}return e},yM=e=>typeof e=="object"&&typeof(e==null?void 0:e.key)<"u"&&typeof(e==null?void 0:e.props)<"u",Vo=e=>typeof e=="string"?K.Text:typeof(e==null?void 0:e.nodeType)=="string"?e.nodeType:Array.isArray(e)?K.Array:yM(e)?K.ReactNode:typeof e=="number"?K.Number:typeof e=="boolean"?K.Boolean:e&&typeof e=="object"?K.Object:K.Unknown,Ql=(e,t,n)=>{const r=structuredClone(n);switch(e){case K.Translation:return{nodeType:K.Translation,[K.Translation]:Object.assign({},...t.map(a=>({[a]:structuredClone(r)??""})))};case K.Enumeration:return{nodeType:K.Enumeration,[K.Enumeration]:{1:r??""}};case K.Condition:return{nodeType:K.Condition,[K.Condition]:{true:r??"",false:r??""}};case K.Insertion:return{nodeType:K.Insertion,[K.Insertion]:{insertion:r??""}};case K.Nested:return{nodeType:K.Nested,[K.Nested]:{dictionaryKey:""}};case K.Markdown:return{nodeType:K.Markdown,[K.Markdown]:r??""};case K.File:return{nodeType:K.File,[K.File]:r??""};case K.Object:return{newKey:r??""};case K.Array:return[r??""];case K.Text:return r??"";case K.Number:return r??0;case K.Boolean:return r??!0;default:return r??""}},cr=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===K.Translation||r.nodeType===K.Enumeration||r.nodeType===K.Condition||r.nodeType===K.Insertion?cr(a):r.nodeType===K.Nested?"dictionary-key":r.nodeType===K.File?"file/path":r.nodeType===K.Markdown?cr(r):a}if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(cr);const t=Object.entries(e).map(([r,a])=>[r,cr(a)]);return Object.fromEntries(t)},Jd=(e,t)=>{for(const r of t.plugins??[])if(r.canHandle(e))return r.transform(e,t,(a,o)=>Jd(a,o));if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map((r,a)=>{const o={...t,children:r,keyPath:[...t.keyPath,{type:K.Array,key:a}]};return Jd(r,o)});const n={};for(const r in e){const a={...t,children:e[r],keyPath:[...t.keyPath,{type:K.Object,key:r}]};n[r]=Jd(e[r],a)}return n},vM=(e,t)=>{const n=Object.keys(e),r=n[n.length-1];return e[`${t}`]??e.fallback??e[r]},bM=(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,o=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||o||l||u||d)return r}},_M=(e,t)=>{const n=bM(e,t)??"fallback";return e[n]},xM=(e,t)=>e.replace(/\{\{(.*?)\}\}/g,(n,r)=>(t[r]??"").toString()),iS={},GT=(e,t,n)=>{const r={dictionaryKey:e.key,dictionaryPath:e.filePath,keyPath:[],plugins:n};return wv(e.content,r,t)},EM=(e,t,n)=>{const r=iS[e];if(!r)throw new Error(`Dictionary ${e} not found`,iS);return GT(r,t,n)},SM=(e,t,n)=>{const r=EM(e,n==null?void 0:n.locale,n==null?void 0:n.plugins);if(typeof t=="string"){const a=t.split(".");let o=r;for(const l of a)if(o=o==null?void 0:o[l],o===void 0)return r;return o}return r},AM=(e,t,n=!0)=>{const{defaultLocale:r}=tt==null?void 0:tt.internationalization;let a=e[t??r];return n&&!a&&(a=e[r]),a},wM=(e,t=!0)=>({id:"translation-plugin",canHandle:n=>typeof n=="object"&&(n==null?void 0:n.nodeType)===K.Translation,transform:(n,r,a)=>{const o=structuredClone(n[K.Translation]);for(const l in o){const u={...r,children:o[l],keyPath:[...r.keyPath,{type:K.Translation,key:l}]};o[l]=a(o[l],u)}return AM(o,e,t)}}),TM={id:"enumeration-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===K.Enumeration,transform:(e,t,n)=>{const r=structuredClone(e[K.Enumeration]);for(const a in r){const o=r[a],l={...t,children:o,keyPath:[...t.keyPath,{type:K.Enumeration,key:a}]};r[a]=n(o,l)}return a=>_M(r,a)}},CM={id:"condition-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===K.Condition,transform:(e,t,n)=>{const r=structuredClone(e[K.Condition]);for(const a in r){const o=r[a],l={...t,children:o,keyPath:[...t.keyPath,{type:K.Condition,key:a}]};r[a]=n(o,l)}return a=>vM(r,a)}},RM={id:"insertion-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===K.Insertion,transform:(e,t,n)=>{const r=[...t.keyPath,{type:K.Insertion}],a=e[K.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 y=xM(f,m);return d(y,{...u,plugins:t.plugins,children:y})}}},...t.plugins??[]]})}},NM={id:"nested-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===K.Nested,transform:(e,t)=>SM(e.nested.dictionaryKey,e.nested.path,t)},kM={id:"file-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===K.File,transform:(e,t,n)=>n(e.content,{...t,children:e.content})},wv=(e,t,n=tt.internationalization.defaultLocale)=>{const r=[RM,wM(n),TM,CM,NM,kM,...t.plugins??[]];return Jd(e,{...t,plugins:r})},aS={method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"},OM=e=>(Object.keys(e).forEach(t=>{e[t]===void 0&&delete e[t]}),e),Rd=e=>e.reduce((t,n)=>{const r=t??{},a=OM(n??{});return typeof r=="object"&&typeof a=="object"?{...r,...a}:a??r},{}),Oe=async(e,...t)=>{const{signal:n}=new AbortController;let r="",a;const o=t.map(({body:v,params:x,headers:S,...A})=>A),l=Rd([aS,...o]),u=Rd([aS.headers,...t.map(v=>v.headers)]),d=Rd(t.map(v=>v.params)),f=l.method;if(f!=="GET"&&f!=="HEAD"){const v=Rd(t.map(x=>x.body));(u==null?void 0:u["Content-Type"])==="application/x-www-form-urlencoded"?a=new URLSearchParams(v).toString():a=JSON.stringify(v)}Object.entries(d).length>0&&(r=`?${new URLSearchParams(d).toString()}`);const m={...l,headers:u,body:a,signal:n},y=`${e}${r}`,g=await fetch(y,m);if(!g.ok){const v=await g.json();throw new Error(JSON.stringify(v.error)??"An error occurred")}return await g.json()},DM=(e={},t)=>{var N,L;const n=((N=t==null?void 0:t.editor)==null?void 0:N.backendURL)??((L=tt.editor)==null?void 0:L.backendURL),{clientId:r,clientSecret:a}=(t==null?void 0:t.editor)??{};if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const o=`${n}/api/auth`;return{login:async(O,M={})=>await Oe(`${o}/login`,e,M,{method:"POST",body:O}),getLoginWithGitHubURL:O=>{const M=new URLSearchParams(O);return`${o}/login/github?${M.toString()}`},getLoginWithGoogleURL:O=>{const M=new URLSearchParams(O);return`${o}/login/google?${M.toString()}`},register:async(O,M={},B={})=>await Oe(`${o}/register`,e,B,{method:"POST",body:O,params:M}),logout:async(O={})=>await Oe(`${o}/logout`,e,O,{method:"POST"}),defineNewPassword:async(O,M={})=>await Oe(`${o}/password/define`,e,M,{method:"POST",body:O}),askResetPassword:async(O,M={})=>await Oe(`${o}/password/reset`,e,M,{method:"POST",body:{email:O}}),checkIfUserHasPassword:async(O={})=>await Oe(`${o}/password/has`,e,O,{method:"GET"}),verifyEmail:async({userId:O,secret:M},B={})=>await Oe(`${o}/active/${O}/${M}`,e,B,{method:"PUT"}),getVerifyEmailStatusURL:O=>`${o}/verify-email-status/${String(O)}`,changePassword:async(O,M={})=>await Oe(`${o}/password`,e,M,{method:"PUT",body:O}),createSession:async(O,M={})=>await Oe(`${o}/session`,e,M,{method:"POST",body:O}),getSession:async(O,M={})=>await Oe(`${n}/session`,e,M,{params:{session_token:O}}),getCSRFToken:async(O={})=>await Oe(`${n}/csrf-token`,e,O),getOAuth2AccessToken:async(O={})=>await Oe(`${n}/oauth2/token`,e,O,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:{grant_type:"client_credentials",client_id:r,client_secret:a}})}},IM=(e={},t)=>{var y,g;const n=((y=t==null?void 0:t.editor)==null?void 0:y.backendURL)??((g=tt.editor)==null?void 0:g.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/dictionary`;return{getDictionaries:async(v,x={})=>await Oe(r,e,x,{params:v}),getDictionariesKeys:async(v={})=>await Oe(`${r}/keys`,e,v),getDictionary:async(v,x,S={})=>await Oe(`${r}/${v}`,e,S,{params:x?{version:x.toString()}:void 0}),pushDictionaries:async(v,x={})=>await Oe(`${r}`,e,x,{method:"PATCH",body:{dictionaries:v}}),addDictionary:async(v,x={})=>await Oe(`${r}`,e,x,{method:"POST",body:v}),updateDictionary:async(v,x,S={})=>await Oe(`${r}/${v}`,e,S,{method:"PUT",body:x}),deleteDictionary:async(v,x={})=>await Oe(`${r}/${v}`,e,x,{method:"DELETE"})}},LM=(e={},t)=>{var y,g;const n=((y=t==null?void 0:t.editor)==null?void 0:y.backendURL)??((g=tt.editor)==null?void 0:g.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/ai`;return{translateJSON:async(v,x={})=>await Oe(`${r}/translate/json`,e,x,{method:"POST",body:v}),auditContentDeclaration:async(v,x={})=>await Oe(`${r}/audit/dictionary`,e,x,{method:"POST",body:v}),auditContentDeclarationField:async(v,x={})=>await Oe(`${r}/audit/dictionary/field`,e,x,{method:"POST",body:v}),auditContentDeclarationMetadata:async(v,x={})=>await Oe(`${r}/audit/dictionary/metadata`,e,x,{method:"POST",body:v}),auditTag:async(v,x={})=>await Oe(`${r}/audit/tag`,e,x,{method:"POST",body:v}),askDocQuestion:async(v,x={})=>{var R;if(!v)return;const{onMessage:S,onDone:A,...w}=v,T=new AbortController;try{const D=await fetch(`${r}/ask`,{method:"POST",headers:{"Content-Type":"application/json",...e.headers,...x.headers},body:JSON.stringify(w),signal:T.signal});if(!D.ok){const M=await D.json().catch(()=>({}));throw new Error(M.message||"Failed to fetch response")}const N=(R=D.body)==null?void 0:R.getReader();if(!N)throw new Error("No reader available");const L=new TextDecoder;let O="";for(;;){const{done:M,value:B}=await N.read();if(M)break;O+=L.decode(B,{stream:!0});const U=O.split(`
|
|
51
|
+
`);O=U.pop()??"";for(const ue of U)if(ue.startsWith("data: "))try{const ie=JSON.parse(ue.slice(6));ie.chunk&&(S==null||S(ie.chunk)),ie.done&&ie.response&&(A==null||A(ie.response))}catch(ie){console.error("Failed to parse SSE data:",ie)}}}catch(D){throw console.error("Error in askDocQuestion:",D),D}},autocomplete:async(v,x={})=>await Oe(`${r}/autocomplete`,e,x,{method:"POST",body:v})}},MM=(e={},t)=>{var u,d;const n=((u=t==null?void 0:t.editor)==null?void 0:u.editorURL)??((d=tt.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 Oe(`${r}/dictionary`,e,f)).data,getConfiguration:async(f={})=>(await Oe(`${r}/config`,e,f)).data,writeDictionary:async(f,m={})=>await Oe(`${r}/dictionary`,e,m,{method:"POST",body:{dictionary:f}})}},jM=(e={},t)=>{var v,x;const n=((v=t==null?void 0:t.editor)==null?void 0:v.backendURL)??((x=tt.editor)==null?void 0:x.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration--.");const r=`${n}/api/organization`;return{getOrganizations:async(S,A={})=>await Oe(r,e,A,{params:S}),getOrganization:async(S,A={})=>await Oe(`${r}/${String(S)}`,e,A),addOrganization:async(S,A={})=>await Oe(r,e,A,{method:"POST",body:S}),addOrganizationMember:async(S,A={})=>Oe(`${r}/member`,e,A,{method:"POST",body:S}),updateOrganization:async(S,A={})=>Oe(r,e,A,{method:"PUT",body:S}),updateOrganizationMembers:async(S,A={})=>Oe(`${r}/members`,e,A,{method:"PUT",body:S}),deleteOrganization:async(S={})=>await Oe(r,e,S,{method:"DELETE"}),selectOrganization:async(S,A={})=>await Oe(`${r}/${String(S)}`,e,A,{method:"PUT"}),unselectOrganization:async(S={})=>await Oe(`${r}/logout`,e,S,{method:"POST"})}},PM=(e={},t)=>{var S,A;const n=((S=t==null?void 0:t.editor)==null?void 0:S.backendURL)??((A=tt.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(w,T={})=>await Oe(r,e,T,{params:w}),addProject:async(w,T={})=>await Oe(`${r}`,e,T,{method:"POST",body:w}),updateProject:async(w,T={})=>await Oe(`${r}`,e,T,{method:"PUT",body:w}),updateProjectMembers:async(w,T={})=>await Oe(`${r}/members`,e,T,{method:"PUT",body:w}),pushProjectConfiguration:async(w,T={})=>await Oe(`${r}/configuration`,e,T,{method:"PUT",body:w}),deleteProject:async(w={})=>await Oe(`${r}`,e,w,{method:"DELETE"}),selectProject:async(w,T={})=>await Oe(`${r}/${String(w)}`,e,T,{method:"PUT"}),unselectProject:async(w={})=>await Oe(`${r}/logout`,e,w,{method:"POST"}),addNewAccessKey:async(w,T={})=>await Oe(`${r}/access_key`,e,T,{method:"POST",body:w}),deleteAccessKey:async(w,T={})=>await Oe(`${r}/access_key`,e,T,{method:"DELETE",body:{clientId:w}}),refreshAccessKey:async(w,T={})=>await Oe(`${r}/access_key`,e,T,{method:"PATCH",body:{clientId:w}})}},VM=(e={},t)=>{var o,l;const n=((o=t==null?void 0:t.editor)==null?void 0:o.backendURL)??((l=tt.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 Oe(`${r}/doc`,e,d,{method:"GET",params:u})}},BM=(e={},t)=>{var u,d;const n=((u=t==null?void 0:t.editor)==null?void 0:u.backendURL)??((d=tt.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 Oe(`${r}/pricing`,e,m,{method:"POST",body:f}),getSubscription:async(f,m={})=>await Oe(`${r}/create-subscription`,e,m,{method:"POST",body:f}),cancelSubscription:async(f={})=>await Oe(`${r}/cancel-subscription`,e,f,{method:"POST"})}},zM=(e={},t)=>{var d,f;const n=((d=t==null?void 0:t.editor)==null?void 0:d.backendURL)??((f=tt.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,y={})=>await Oe(r,e,y,{params:m}),addTag:async(m,y={})=>await Oe(`${r}`,e,y,{method:"POST",body:m}),updateTag:async(m,y,g={})=>await Oe(`${r}/${m}`,e,g,{method:"PUT",body:y}),deleteTag:async(m,y={})=>await Oe(`${r}/${m}`,e,y,{method:"DELETE"})}},UM=(e={},t)=>{var y,g;const n=((y=t==null?void 0:t.editor)==null?void 0:y.backendURL)??((g=tt.editor)==null?void 0:g.backendURL);if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const r=`${n}/api/user`;return{createUser:async(v,x={})=>await Oe(`${r}/`,e,x,{method:"POST",body:v}),getUsers:async(v,x={})=>await Oe(r,e,x,{params:v}),getUserById:async(v,x={})=>await Oe(`${r}/${v}`,e,x),getUserByAccount:async(v,x,S={})=>await Oe(`${r}/account/${x}/${v}`,e,S),getUserByEmail:async(v,x={})=>await Oe(`${r}/email/${v}`,e,x),updateUser:async(v,x={})=>await Oe(`${r}`,e,x,{method:"PUT",body:v}),deleteUser:async(v,x={})=>await Oe(`${r}/${v}`,e,x,{method:"DELETE"})}},sh=(e={},t)=>({organization:jM(e,t),project:PM(e,t),user:UM(e,t),auth:DM(e,t),dictionary:IM(e,t),stripe:BM(e,t),ai:LM(e,t),tag:zM(e,t),search:VM(e,t),editor:MM(e,t)}),HM=e=>{switch(e){case V.ENGLISH:case V.FRENCH:case V.SPANISH:case V.PORTUGUESE:case V.GERMAN:case V.AFRIKAANS:case V.AZERI_LATIN:case V.BELARUSIAN:case V.BULGARIAN:case V.BOSNIAN:case V.CATALAN:case V.CZECH:case V.WELSH:case V.DANISH:case V.ESPERANTO:case V.ESTONIAN:case V.BASQUE:case V.FINNISH:case V.FAROESE:case V.GALICIAN:case V.GREEK:case V.CROATIAN:case V.HUNGARIAN:case V.ARMENIAN:case V.INDONESIAN:case V.ICELANDIC:case V.ITALIAN:case V.JAPANESE:case V.GEORGIAN:case V.KAZAKH:case V.KANNADA:case V.KOREAN:case V.KONKANI:case V.KYRGYZ:case V.LITHUANIAN:case V.LATVIAN:case V.MAORI:case V.FYRO_MACEDONIAN:case V.MONGOLIAN:case V.MARATHI:case V.MALAY:case V.MALTESE:case V.NORWEGIAN_BOKMAL:case V.DUTCH:case V.NORTHERN_SOTHO:case V.PUNJABI:case V.POLISH:case V.QUECHUA:case V.ROMANIAN:case V.RUSSIAN:case V.SANSKRIT:case V.SAMI_NORTHERN:case V.SLOVAK:case V.SLOVENIAN:case V.ALBANIAN:case V.SERBIAN_LATIN:case V.SWEDISH:case V.SWAHILI:case V.TAMIL:case V.TELUGU:case V.THAI:case V.TAGALOG:case V.TSWANA:case V.TURKISH:case V.UKRAINIAN:case V.UZBEK_LATIN:case V.VIETNAMESE:case V.XHOSA:case V.CHINESE_SIMPLIFIED:case V.CHINESE_TRADITIONAL:case V.ZULU:case V.AFRIKAANS_SOUTH_AFRICA:case V.AZERI_LATIN_AZERBAIJAN:case V.BELARUSIAN_BELARUS:case V.BULGARIAN_BULGARIA:case V.BOSNIAN_BOSNIA_AND_HERZEGOVINA:case V.CATALAN_SPAIN:case V.CZECH_CZECH_REPUBLIC:case V.WELSH_UNITED_KINGDOM:case V.DANISH_DENMARK:case V.GERMAN_AUSTRIA:case V.GERMAN_SWITZERLAND:case V.GERMAN_GERMANY:case V.GERMAN_LIECHTENSTEIN:case V.GERMAN_LUXEMBOURG:case V.GREEK_GREECE:case V.ENGLISH_AUSTRALIA:case V.ENGLISH_BELIZE:case V.ENGLISH_CANADA:case V.ENGLISH_CARIBBEAN:case V.ENGLISH_UNITED_KINGDOM:case V.ENGLISH_IRELAND:case V.ENGLISH_JAMAICA:case V.ENGLISH_NEW_ZEALAND:case V.ENGLISH_PHILIPPINES:case V.ENGLISH_TRINIDAD_AND_TOBAGO:case V.ENGLISH_UNITED_STATES:case V.ENGLISH_SOUTH_AFRICA:case V.ENGLISH_ZIMBABWE:case V.SPANISH_ARGENTINA:case V.SPANISH_BOLIVIA:case V.SPANISH_CHILE:case V.SPANISH_COLOMBIA:case V.SPANISH_COSTA_RICA:case V.SPANISH_DOMINICAN_REPUBLIC:case V.SPANISH_ECUADOR:case V.SPANISH_SPAIN:case V.SPANISH_GUATEMALA:case V.SPANISH_HONDURAS:case V.SPANISH_MEXICO:case V.SPANISH_NICARAGUA:case V.SPANISH_PANAMA:case V.SPANISH_PERU:case V.SPANISH_PUERTO_RICO:case V.SPANISH_PARAGUAY:case V.SPANISH_EL_SALVADOR:case V.SPANISH_URUGUAY:case V.SPANISH_VENEZUELA:case V.ESTONIAN_ESTONIA:case V.BASQUE_SPAIN:case V.FINNISH_FINLAND:case V.FAROESE_FAROE_ISLANDS:case V.FRENCH_BELGIUM:case V.FRENCH_CANADA:case V.FRENCH_SWITZERLAND:case V.FRENCH_FRANCE:case V.FRENCH_LUXEMBOURG:case V.FRENCH_PRINCIPALITY_OF_MONACO:case V.GALICIAN_SPAIN:case V.GUJARATI_INDIA:case V.HEBREW_ISRAEL:case V.HINDI_INDIA:case V.CROATIAN_BOSNIA_AND_HERZEGOVINA:case V.CROATIAN_CROATIA:case V.HUNGARIAN_HUNGARY:case V.ARMENIAN_ARMENIA:case V.INDONESIAN_INDONESIA:case V.ICELANDIC_ICELAND:case V.ITALIAN_SWITZERLAND:case V.ITALIAN_ITALY:case V.JAPANESE_JAPAN:case V.GEORGIAN_GEORGIA:case V.KAZAKH_KAZAKHSTAN:case V.KANNADA_INDIA:case V.KOREAN_KOREA:case V.KONKANI_INDIA:case V.KYRGYZ_KYRGYZSTAN:case V.LITHUANIAN_LITHUANIA:case V.LATVIAN_LATVIA:case V.MAORI_NEW_ZEALAND:case V.FYRO_MACEDONIAN_MACEDONIA:case V.MONGOLIAN_MONGOLIA:case V.MARATHI_INDIA:case V.MALAY_BRUNEI_DARUSSALAM:case V.MALAY_MALAYSIA:case V.MALTESE_MALTA:case V.NORWEGIAN_BOKMAL_NORWAY:case V.DUTCH_BELGIUM:case V.DUTCH_NETHERLANDS:case V.NORWEGIAN_NYNORSK_NORWAY:case V.NORTHERN_SOTHO_SOUTH_AFRICA:case V.PUNJABI_INDIA:case V.POLISH_POLAND:case V.PORTUGUESE_BRAZIL:case V.PORTUGUESE_PORTUGAL:case V.QUECHUA_BOLIVIA:case V.QUECHUA_ECUADOR:case V.QUECHUA_PERU:case V.ROMANIAN_ROMANIA:case V.RUSSIAN_RUSSIA:case V.SANSKRIT_INDIA:case V.SAMI_NORTHERN_FINLAND:case V.SAMI_NORTHERN_NORWAY:case V.SAMI_NORTHERN_SWEDEN:case V.SLOVAK_SLOVAKIA:case V.SLOVENIAN_SLOVENIA:case V.ALBANIAN_ALBANIA:case V.SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA:case V.SERBIAN_LATIN_SERBIA_AND_MONTENEGRO:case V.SWAHILI_KENYA:case V.TAMIL_INDIA:case V.TELUGU_INDIA:case V.THAI_THAILAND:case V.TAGALOG_PHILIPPINES:case V.TSWANA_SOUTH_AFRICA:case V.TURKISH_TURKEY:case V.TATAR_RUSSIA:case V.TSOGA:case V.UKRAINIAN_UKRAINE:case V.UZBEK_LATIN_UZBEKISTAN:case V.VIETNAMESE_VIET_NAM:case V.XHOSA_SOUTH_AFRICA:case V.CHINESE_HONG_KONG:case V.CHINESE_MACAU:case V.CHINESE_SINGAPORE:case V.ZULU_SOUTH_AFRICA:return"ltr";case V.ARABIC:case V.FARSI:case V.URDU:case V.PASHTO:case V.SYRIAC:case V.ARABIC_UNITED_ARAB_EMIRATES:case V.ARABIC_BAHRAIN:case V.ARABIC_ALGERIA:case V.ARABIC_EGYPT:case V.ARABIC_IRAQ:case V.ARABIC_JORDAN:case V.ARABIC_KUWAIT:case V.ARABIC_LEBANON:case V.ARABIC_LIBYA:case V.ARABIC_MOROCCO:case V.ARABIC_OMAN:case V.ARABIC_QATAR:case V.ARABIC_SAUDI_ARABIA:case V.ARABIC_SYRIA:case V.ARABIC_TUNISIA:case V.ARABIC_YEMEN:case V.FARSI_IRAN:case V.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN:case V.PASHTO_AFGHANISTAN:case V.SYRIAC_SYRIA:return"rtl";default:return"auto"}},$T=e=>/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e),sS=new Map,ef=(e,t=e)=>{if(typeof(Intl==null?void 0:Intl.DisplayNames)!="function")return e;let n=sS.get(t);return n||(n=new Intl.DisplayNames([t],{type:"language"}),sS.set(t,n)),n.of(e)??"Unknown locale"},FM=(e,t=tt.internationalization.locales)=>{const n=$T(e);let r=e;e.endsWith("/")&&(r=e.slice(0,-1));const a=n?new URL(r):new URL(r,"http://example.com"),o=a.pathname;o.startsWith("/")||(a.pathname=`/${o}`);const l=o.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","")},GM=(e,t=tt.internationalization.locales,n=tt.internationalization.defaultLocale,r=tt.middleware.prefixDefault)=>{const a=FM(e,t),o=$T(a),l=o?new URL(a):new URL(a,"http://example.com");let u=l.pathname;u.startsWith("/")||(u=`/${u}`);const d=o?`${l.protocol}//${l.host}`:"";return t.reduce((m,y)=>{const g=y.toString()===n.toString();let x=r||!g?`/${y}${u}`:u;x.length>1&&x.endsWith("/")&&(x=x.slice(0,-1));const S=o?`${d}${x}${l.search}${l.hash}`:`${x}${l.search}${l.hash}`;return m[y]=S,m},{})},$M=(e,t,n=tt.internationalization.locales,r=tt.internationalization.defaultLocale,a=tt.middleware.prefixDefault)=>GM(e,n,r,a)[t],qM=(e,t=tt.internationalization.locales,n=tt.internationalization.defaultLocale)=>{const r=[e].flat(),a=o=>o.trim().toLowerCase();try{for(const o of r){const l=a(o),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},pe=e=>pM(K.Translation,e),KM=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(o=>{const l=o.trim();return l.startsWith('"')&&l.endsWith('"')||!isNaN(Number(l))?l:`"${l}"`}).join(", ")}]`),JSON.parse(t)},qT=e=>{try{const t=e.split(/\r?\n/),n=t.find(o=>o.trim()!=="");if(!n||n.trim()!=="---")return{};const r={};let a=!1;for(const o of t){if(o.trim()==="---"){if(a)break;a=!0;continue}if(a){const u=o.match(/^([^:]+)\s*:\s*(.*)$/);if(u){const d=u[1].trim(),f=u[2].trim();try{r[d]=KM(f)}catch{r[d]=f}}}}return r}catch{return}},Zc=(e,t)=>e.every((n,r)=>t[r]&&t[r].key===n.key&&t[r].type===n.type),WM=(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(/\/$/,""),o=r.pathname.replace(/\/$/,"");return!(a!==""&&o!==""&&a!==o)}catch(n){return console.error("Invalid URL(s)",n),!1}},YM=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 fr=(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_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))(fr||{});const KT=E.createContext(void 0),WT=E.createContext(void 0),ZM=({children:e})=>{const[t,n]=E.useState({}),r=(a,o)=>{n(l=>({...l,[a]:{...l==null?void 0:l[a],content:o}}))};return b.jsx(KT.Provider,{value:{changedContent:t},children:b.jsx(WT.Provider,{value:{setChangedContent:r},children:e})})},XM=()=>E.useContext(WT),QM=()=>{const e=E.useContext(KT),t=XM();return{...e,...t}},ln=[];for(let e=0;e<256;++e)ln.push((e+256).toString(16).slice(1));function JM(e,t=0){return(ln[e[t+0]]+ln[e[t+1]]+ln[e[t+2]]+ln[e[t+3]]+"-"+ln[e[t+4]]+ln[e[t+5]]+"-"+ln[e[t+6]]+ln[e[t+7]]+"-"+ln[e[t+8]]+ln[e[t+9]]+"-"+ln[e[t+10]]+ln[e[t+11]]+ln[e[t+12]]+ln[e[t+13]]+ln[e[t+14]]+ln[e[t+15]]).toLowerCase()}let tg;const ej=new Uint8Array(16);function tj(){if(!tg){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");tg=crypto.getRandomValues.bind(crypto)}return tg(ej)}const nj=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),oS={randomUUID:nj};function rj(e,t,n){var a;if(oS.randomUUID&&!e)return oS.randomUUID();e=e||{};const r=e.random??((a=e.rng)==null?void 0:a.call(e))??tj();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,JM(r)}const{editor:vi}=tt,YT=E.createContext({postMessage:()=>null,allowedOrigins:[vi==null?void 0:vi.applicationURL,vi==null?void 0:vi.editorURL,vi==null?void 0:vi.cmsURL],senderId:""}),lS=({children:e,allowedOrigins:t,postMessage:n})=>{const r=E.useRef(rj()),a=E.useMemo(()=>({postMessage:n,allowedOrigins:t,senderId:r.current}),[n,t,r.current]);return b.jsx(YT.Provider,{value:a,children:e})},ZT=()=>E.useContext(YT),To=(e,t,n)=>{const{allowedOrigins:r,postMessage:a,senderId:o}=ZT();return E.useEffect(()=>{if(t){const u=d=>{const{type:f,data:m,senderId:y}=d.data;f===e&&y!==o&&(typeof r>"u"||r!=null&&r.some(g=>WM(g,d.origin))||r!=null&&r.includes("*"))&&t(m)};return window.addEventListener("message",u),()=>window.removeEventListener("message",u)}},[r,a,o,n]),u=>{a({type:e,data:u,senderId:o})}},ij=(e,t)=>typeof e=="function"?e(t):e,vs=(e,t,n)=>{const{postMessage:r,senderId:a}=ZT(),{emit:o,receive:l}=n??{emit:!0,receive:!0},u=(v,x)=>{const S=ij(v,x);return o&&typeof r=="function"&&typeof S<"u"&&r({type:`${e}/post`,data:S,senderId:a}),S},d=()=>{typeof r=="function"&&r({type:`${e}/post`,data:f,senderId:a})},[f,m]=E.useState(()=>u(t)),y=v=>m(x=>u(v,x));To(`${e}/post`,l?v=>{m(v)}:void 0);const g=(v,x)=>{o&&typeof r=="function"&&x!==a&&(typeof f>"u"||r({type:`${e}/post`,data:f,senderId:a}))};return To(`${e}/get`,o?g:void 0,f),E.useEffect(()=>{l&&typeof r=="function"&&typeof f>"u"&&r({type:`${e}/get`,senderId:a})},[]),[f,y,d]},XT=E.createContext(void 0),aj=({children:e,configuration:t})=>b.jsx(XT.Provider,{value:t,children:e}),Zr=()=>E.useContext(XT),QT=E.createContext(void 0),JT=E.createContext(void 0),sj=({children:e})=>{const[t,n]=vs(fr.INTLAYER_LOCALE_DICTIONARIES_CHANGED,void 0),r=E.useMemo(()=>({localeDictionaries:t??{}}),[t]),a=E.useMemo(()=>({setLocaleDictionaries:n,setLocaleDictionary:o=>{n(l=>({...l,[o.key]:o}))}}),[n]);return b.jsx(QT.Provider,{value:r,children:b.jsx(JT.Provider,{value:a,children:e})})},oh=()=>E.useContext(JT),e1=()=>{const e=oh(),t=E.useContext(QT);if(!t)throw new Error("useDictionariesRecordStates must be used within a DictionariesRecordProvider");return{...t,...e}},t1=E.createContext(void 0),oj=e=>To(`${fr.INTLAYER_EDITED_CONTENT_CHANGED}/get`,e),n1=E.createContext(void 0),cS=(e,t)=>typeof e=="function"?e(t):e,lj=({children:e})=>{const{localeDictionaries:t}=e1(),[n,r]=vs(fr.INTLAYER_EDITED_CONTENT_CHANGED),a=v=>{let x=cS(v);return r(S=>(x=cS(v,S==null?void 0:S[x.key]),{...S,[x.key]:x})),x},o=(v,x)=>{r(S=>({...S,[v]:{...S==null?void 0:S[v],content:x}}))},l=(v,x,S=[],A=!0)=>{r(w=>{var L,O;const T=(L=t[v])==null?void 0:L.content,R=structuredClone(((O=w==null?void 0:w[v])==null?void 0:O.content)??T);let D=S;if(!A){let M=0;const B=S.slice(0,-1),U=S[S.length-1];let ue=U.key;for(;typeof Hr(R,D)<"u";)M++,ue=M===0?U.key:`${U.key} (${M})`,D=[...B,{...U,key:ue}]}const N=rS(R,D,x);return{...w,[v]:{...w==null?void 0:w[v],content:N}}})},u=(v,x,S=[])=>{r(A=>{var D,N;const w=(D=t[v])==null?void 0:D.content,T=structuredClone(((N=A==null?void 0:A[v])==null?void 0:N.content)??w),R=gM(T,x,S);return{...A,[v]:{...A==null?void 0:A[v],content:R}}})},d=(v,x)=>{r(S=>{var D,N;const A=(D=t[v])==null?void 0:D.content,w=structuredClone(((N=S==null?void 0:S[v])==null?void 0:N.content)??A),T=Hr(A,x),R=rS(w,x,T);return{...S,[v]:{...S==null?void 0:S[v],content:R}}})},f=v=>{r(x=>{const S={...x};return delete S[v],S})},m=v=>{r(x=>Object.entries(x).reduce((A,[w,T])=>w===v?A:{...A,[w]:T},{}))},y=()=>{r({})},g=(v,x)=>{var A;const S=((A=n==null?void 0:n[v])==null?void 0:A.content)??{};return Hr(S,x)};return b.jsx(t1.Provider,{value:{editedContent:n},children:b.jsx(n1.Provider,{value:{setEditedContentState:r,setEditedDictionary:a,setEditedContent:o,addEditedContent:l,renameEditedContent:u,removeEditedContent:d,restoreEditedContent:f,clearEditedDictionaryContent:m,clearEditedContent:y,getEditedContentValue:g},children:e})})},Bo=()=>E.useContext(n1),Tn=()=>{const e=E.useContext(t1),t=Bo();return{...e,...t}},r1=E.createContext({enabled:!1}),cj=e=>vs(fr.INTLAYER_EDITOR_ENABLED,!1,e),uj=e=>To(`${fr.INTLAYER_EDITOR_ENABLED}/post`,e),i1=e=>To(`${fr.INTLAYER_EDITOR_ENABLED}/get`,e),dj=({children:e})=>{const[t]=cj({emit:!1,receive:!0});return b.jsx(r1.Provider,{value:{enabled:t},children:e})},a1=()=>E.useContext(r1),s1=E.createContext(void 0),o1=E.createContext(void 0),fj=({children:e})=>{const[t,n]=vs(fr.INTLAYER_FOCUSED_CONTENT_CHANGED,null),r=a=>{n(o=>o&&{...o,keyPath:a})};return b.jsx(s1.Provider,{value:{focusedContent:t},children:b.jsx(o1.Provider,{value:{setFocusedContent:n,setFocusedContentKeyPath:r},children:e})})},Tv=()=>{const e=E.useContext(o1);if(e===void 0)throw new Error("useFocusDictionaryActions must be used within a FocusDictionaryProvider");return e},ba=()=>{const e=Tv(),t=E.useContext(s1);if(t===void 0)throw new Error("useFocusDictionaryState must be used within a FocusDictionaryProvider");return{...t,...e}},uS=({children:e})=>{const t=oj();return E.useEffect(()=>{t()},[]),b.jsx(sj,{children:b.jsx(lj,{children:b.jsx(fj,{children:e})})})},hj=({children:e,fallback:t})=>{const n=i1(),{enabled:r}=a1();return E.useEffect(()=>{r||n()},[r]),r?e:t},mj=({children:e,fallback:t})=>{const[n,r]=E.useState(!1);return E.useEffect(()=>{r(window.self!==window.top)},[]),n?e:t},pj=({children:e,configuration:t,...n})=>b.jsx(ZM,{children:b.jsx(dj,{children:b.jsx(aj,{configuration:t,children:n.mode==="editor"?b.jsx(lS,{...n,children:b.jsx(uS,{children:e})}):b.jsx(mj,{fallback:e,children:b.jsx(lS,{...n,children:b.jsx(hj,{fallback:e,children:b.jsx(uS,{children:e})})})})})})}),gj=(e,t)=>vs(fr.INTLAYER_URL_CHANGE,e,t),yj=()=>To(fr.INTLAYER_IFRAME_CLICKED,YM);/*! js-cookie v3.0.5 | MIT */function Nd(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 vj={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 oy(e,t){function n(a,o,l){if(!(typeof document>"u")){l=Nd({},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(o,a)+u}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var o=document.cookie?document.cookie.split("; "):[],l={},u=0;u<o.length;u++){var d=o[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,o){n(a,"",Nd({},o,{expires:-1}))},withAttributes:function(a){return oy(this.converter,Nd({},this.attributes,a))},withConverter:function(a){return oy(Nd({},this.converter,a),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var l1=oy(vj,{path:"/"});const{cookieName:c1}=tt.middleware,bj={path:"/",expires:void 0,domain:void 0,secure:!1,sameSite:"strict"},Cv=l1.get(c1),u1=e=>{l1.set(c1,e,bj)},_j=()=>({localeCookie:Cv,setLocaleCookie:u1});var zT;const lh=E.createContext({locale:Cv??((zT=tt==null?void 0:tt.internationalization)==null?void 0:zT.defaultLocale),setLocale:()=>null,disableEditor:!1}),xj=()=>E.useContext(lh),Ej=({locale:e,defaultLocale:t,children:n,setLocale:r,disableEditor:a})=>{const{internationalization:o}=tt??{},{defaultLocale:l,locales:u}=o??{},d=e??Cv??t??l,[f,m]=vs(fr.INTLAYER_CURRENT_LOCALE,d),g=r??(x=>{if(f.toString()!==x.toString()){if(!(u!=null&&u.map(String).includes(x))){console.error(`Locale ${x} is not available`);return}m(x),u1(x)}}),v=qM(e??f);return b.jsx(lh.Provider,{value:{locale:v,setLocale:g,disableEditor:a},children:n})},vf=({children:e,value:t,additionalProps:n})=>{const r=E.isValidElement(e)?e:b.jsx(b.Fragment,{children:e});return new Proxy(r,{get(a,o,l){return o==="value"?t:n&&Object.keys(n).includes(o)?n[o]:Reflect.get(a,o,l)}})},Sj=250,Aj=({children:e,onPress:t,onClickOutside:n,pressDuration:r=Sj,isSelecting:a,...o})=>{const l=E.useRef(null),[u,d]=E.useState(!1),[f,m]=E.useState(a),y=E.useRef(null),g=typeof e=="string",v=()=>{m(!0),t()},x=()=>{y.current=setTimeout(()=>{v()},r)},S=()=>{y.current&&(clearTimeout(y.current),y.current=null)},A=()=>{S(),x()},w=()=>{d(!0)},T=()=>{d(!1),S()},R=E.useCallback(L=>{l.current&&!l.current.contains(L.target)&&(m(!1),n==null||n())},[n]);E.useEffect(()=>(document.addEventListener("mousedown",R),()=>{document.removeEventListener("mousedown",R)}),[R]);const D=L=>{f&&(L.preventDefault(),L.stopPropagation())},N=()=>{m(!1)};return b.jsx("span",{style:{display:g?"inline":"inline-block",cursor:"pointer",userSelect:"none",borderRadius:"0.375rem",outlineWidth:"2px",outlineOffset:"4px",outlineStyle:"solid",outlineColor:a||f||u?"inherit":"transparent",transition:"all 100ms 50ms ease-in-out"},role:"button",tabIndex:0,onKeyUp:()=>null,onClick:D,onMouseDown:A,onMouseUp:T,onMouseLeave:T,onTouchStart:A,onTouchEnd:T,onTouchCancel:T,onBlur:N,onMouseEnter:w,ref:l,...o,children:e})},wj=({children:e,dictionaryKey:t,keyPath:n})=>{const{focusedContent:r,setFocusedContent:a}=ba(),o=E.useCallback(()=>a({dictionaryKey:t,keyPath:n}),[t,n]),l=E.useMemo(()=>{var u;return((r==null?void 0:r.dictionaryKey)===t&&(((u=r==null?void 0:r.keyPath)==null?void 0:u.length)??0)>0&&Zc((r==null?void 0:r.keyPath)??[],n))??!1},[r,n,t]);return b.jsx(Aj,{onPress:o,isSelecting:l,children:e})},bf=({children:e,...t})=>{const{enabled:n}=a1(),{disableEditor:r}=xj();return n&&!r?b.jsx(wj,{...t,children:e}):e},Rv=({dictionaryKey:e,keyPath:t,children:n})=>{const r=Bo();return r?r.getEditedContentValue(e,t)??n:n},Tj=e=>{const t=Rv(e);if(typeof t=="object"){const n=wv(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},Cj=E.createContext({renderMarkdown:e=>e}),Rj=()=>E.useContext(Cj),Nj=({dictionaryKey:e,keyPath:t,children:n,locale:r})=>{const{renderMarkdown:a}=Rj(),o=Rv({dictionaryKey:e,keyPath:t,children:n});if(typeof o!="string"){const l=wv(o,{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(o)},kj=({dictionaryKey:e,keyPath:t,children:n,metadataKeyPath:r})=>{const a=Rv({dictionaryKey:e,keyPath:t,children:n}),o=qT(a);return Hr(o,r)},d1=e=>{if(typeof e=="string")return e;const n=(o=>{var l;if(o!=null&&o.props&&typeof o.props.children=="object"){const u=[],{children:d}=o.props;return Object.keys(d??{}).forEach(f=>{u.push(d1((d??{})[f]))}),{...o,props:{...o.props,children:u}}}return{...o,props:{...o.props,children:((l=o.props)==null?void 0:l.children)??[]}}})(e),{type:r,props:a}=n;return E.createElement(r??"span",a,...a.children)},Oj={id:"intlayer-node-plugin",canHandle:e=>typeof e=="bigint"||typeof e=="string"||typeof e=="number",transform:(e,{plugins:t,...n})=>vf({...n,value:n.children,children:E.createElement(bf,{...n,key:n.children},b.jsx(Tj,{...n,children:n.children}))})},Dj={id:"react-node-plugin",canHandle:e=>typeof e=="object"&&typeof e.props<"u"&&typeof e.key<"u",transform:(e,{plugins:t,...n})=>vf({...n,value:"[[react-element]]",children:b.jsx(bf,{...n,children:d1(e)})})},Ij={id:"markdown-string-plugin",canHandle:e=>typeof e=="string",transform:(e,t,n)=>{const{plugins:r,...a}=t,o=qT(e),u=n(o,{plugins:[{id:"markdown-metadata-plugin",canHandle:d=>typeof d=="string"||typeof d=="number"||typeof d=="boolean"||!d,transform:(d,f)=>vf({...f,value:d,children:b.jsx(bf,{...a,children:b.jsx(kj,{...a,metadataKeyPath:f.keyPath,children:e})})})}],dictionaryKey:a.dictionaryKey,keyPath:[]});return vf({...t,value:e,children:b.jsx(bf,{...a,children:b.jsx(Nj,{...a,children:e})}),additionalProps:{metadata:u}})}},Lj={id:"markdown-plugin",canHandle:e=>typeof e=="object"&&(e==null?void 0:e.nodeType)===K.Markdown,transform:(e,t,n)=>{const r=[...t.keyPath,{type:K.Markdown}],a=e[K.Markdown];return n(a,{...t,children:a,keyPath:r,plugins:[Ij,...t.plugins??[]]})}},dS=(e,t,n)=>GT(e,t,[Oj,Dj,Lj]),nn=(e,t)=>{const{locale:n}=E.useContext(lh),r=n,{changedContent:a}=QM();return a!=null&&a[e.key]?dS(a==null?void 0:a[e.key],r):dS(e,r)},Nv=({onLocaleChange:e}={})=>{const{defaultLocale:t,locales:n}=(tt==null?void 0:tt.internationalization)??{},{locale:r,setLocale:a}=E.useContext(lh),{setLocaleCookie:o}=_j();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),o(u),e==null||e(u)}}};var Jl={},fS;function Mj(){if(fS)return Jl;fS=1,Object.defineProperty(Jl,"__esModule",{value:!0}),Jl.parse=l,Jl.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,o=(()=>{const g=function(){};return g.prototype=Object.create(null),g})();function l(g,v){const x=new o,S=g.length;if(S<2)return x;const A=(v==null?void 0:v.decode)||m;let w=0;do{const T=g.indexOf("=",w);if(T===-1)break;const R=g.indexOf(";",w),D=R===-1?S:R;if(T>D){w=g.lastIndexOf(";",T-1)+1;continue}const N=u(g,w,T),L=d(g,T,N),O=g.slice(N,L);if(x[O]===void 0){let M=u(g,T+1,D),B=d(g,D,M);const U=A(g.slice(M,B));x[O]=U}w=D+1}while(w<S);return x}function u(g,v,x){do{const S=g.charCodeAt(v);if(S!==32&&S!==9)return v}while(++v<x);return x}function d(g,v,x){for(;v>x;){const S=g.charCodeAt(--v);if(S!==32&&S!==9)return v+1}return x}function f(g,v,x){const S=(x==null?void 0:x.encode)||encodeURIComponent;if(!e.test(g))throw new TypeError(`argument name is invalid: ${g}`);const A=S(v);if(!t.test(A))throw new TypeError(`argument val is invalid: ${v}`);let w=g+"="+A;if(!x)return w;if(x.maxAge!==void 0){if(!Number.isInteger(x.maxAge))throw new TypeError(`option maxAge is invalid: ${x.maxAge}`);w+="; Max-Age="+x.maxAge}if(x.domain){if(!n.test(x.domain))throw new TypeError(`option domain is invalid: ${x.domain}`);w+="; Domain="+x.domain}if(x.path){if(!r.test(x.path))throw new TypeError(`option path is invalid: ${x.path}`);w+="; Path="+x.path}if(x.expires){if(!y(x.expires)||!Number.isFinite(x.expires.valueOf()))throw new TypeError(`option expires is invalid: ${x.expires}`);w+="; Expires="+x.expires.toUTCString()}if(x.httpOnly&&(w+="; HttpOnly"),x.secure&&(w+="; Secure"),x.partitioned&&(w+="; Partitioned"),x.priority)switch(typeof x.priority=="string"?x.priority.toLowerCase():void 0){case"low":w+="; Priority=Low";break;case"medium":w+="; Priority=Medium";break;case"high":w+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${x.priority}`)}if(x.sameSite)switch(typeof x.sameSite=="string"?x.sameSite.toLowerCase():x.sameSite){case!0:case"strict":w+="; SameSite=Strict";break;case"lax":w+="; SameSite=Lax";break;case"none":w+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${x.sameSite}`)}return w}function m(g){if(g.indexOf("%")===-1)return g;try{return decodeURIComponent(g)}catch{return g}}function y(g){return a.call(g)==="[object Date]"}return Jl}Mj();var hS="popstate";function jj(e={}){function t(r,a){let{pathname:o,search:l,hash:u}=r.location;return ly("",{pathname:o,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:Nc(a)}return Vj(t,n,null,e)}function Ct(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Wr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Pj(){return Math.random().toString(36).substring(2,10)}function mS(e,t){return{usr:e.state,key:e.key,idx:t}}function ly(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?zo(t):t,state:n,key:t&&t.key||r||Pj()}}function Nc({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 zo(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 Vj(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:o=!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 y(){u="POP";let A=m(),w=A==null?null:A-f;f=A,d&&d({action:u,location:S.location,delta:w})}function g(A,w){u="PUSH";let T=ly(S.location,A,w);f=m()+1;let R=mS(T,f),D=S.createHref(T);try{l.pushState(R,"",D)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;a.location.assign(D)}o&&d&&d({action:u,location:S.location,delta:1})}function v(A,w){u="REPLACE";let T=ly(S.location,A,w);f=m();let R=mS(T,f),D=S.createHref(T);l.replaceState(R,"",D),o&&d&&d({action:u,location:S.location,delta:0})}function x(A){return Bj(A)}let S={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(hS,y),d=A,()=>{a.removeEventListener(hS,y),d=null}},createHref(A){return t(a,A)},createURL:x,encodeLocation(A){let w=x(A);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:g,replace:v,go(A){return l.go(A)}};return S}function Bj(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Ct(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Nc(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function f1(e,t,n="/"){return zj(e,t,n,!1)}function zj(e,t,n,r){let a=typeof t=="string"?zo(t):t,o=wi(a.pathname||"/",n);if(o==null)return null;let l=h1(e);Uj(l);let u=null;for(let d=0;u==null&&d<l.length;++d){let f=Qj(o);u=Zj(l[d],f,r)}return u}function h1(e,t=[],n=[],r=""){let a=(o,l,u)=>{let d={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};d.relativePath.startsWith("/")&&(Ct(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=Si([r,d.relativePath]),m=n.concat(d);o.children&&o.children.length>0&&(Ct(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),h1(o.children,t,m,f)),!(o.path==null&&!o.index)&&t.push({path:f,score:Wj(f,o.index),routesMeta:m})};return e.forEach((o,l)=>{var u;if(o.path===""||!((u=o.path)!=null&&u.includes("?")))a(o,l);else for(let d of m1(o.path))a(o,l,d)}),t}function m1(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return a?[o,""]:[o];let l=m1(r.join("/")),u=[];return u.push(...l.map(d=>d===""?o:[o,d].join("/"))),a&&u.push(...l),u.map(d=>e.startsWith("/")&&d===""?"/":d)}function Uj(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:Yj(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Hj=/^:[\w-]+$/,Fj=3,Gj=2,$j=1,qj=10,Kj=-2,pS=e=>e==="*";function Wj(e,t){let n=e.split("/"),r=n.length;return n.some(pS)&&(r+=Kj),t&&(r+=Gj),n.filter(a=>!pS(a)).reduce((a,o)=>a+(Hj.test(o)?Fj:o===""?$j:qj),r)}function Yj(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 Zj(e,t,n=!1){let{routesMeta:r}=e,a={},o="/",l=[];for(let u=0;u<r.length;++u){let d=r[u],f=u===r.length-1,m=o==="/"?t:t.slice(o.length)||"/",y=_f({path:d.relativePath,caseSensitive:d.caseSensitive,end:f},m),g=d.route;if(!y&&f&&n&&!r[r.length-1].route.index&&(y=_f({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},m)),!y)return null;Object.assign(a,y.params),l.push({params:a,pathname:Si([o,y.pathname]),pathnameBase:nP(Si([o,y.pathnameBase])),route:g}),y.pathnameBase!=="/"&&(o=Si([o,y.pathnameBase]))}return l}function _f(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Xj(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let o=a[0],l=o.replace(/(.)\/+$/,"$1"),u=a.slice(1);return{params:r.reduce((f,{paramName:m,isOptional:y},g)=>{if(m==="*"){let x=u[g]||"";l=o.slice(0,o.length-x.length).replace(/(.)\/+$/,"$1")}const v=u[g];return y&&!v?f[m]=void 0:f[m]=(v||"").replace(/%2F/g,"/"),f},{}),pathname:o,pathnameBase:l,pattern:e}}function Xj(e,t=!1,n=!0){Wr(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 Qj(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Wr(!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 wi(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 Jj(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?zo(e):e;return{pathname:n?n.startsWith("/")?n:eP(n,t):t,search:rP(r),hash:iP(a)}}function eP(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 ng(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 tP(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function p1(e){let t=tP(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function g1(e,t,n,r=!1){let a;typeof e=="string"?a=zo(e):(a={...e},Ct(!a.pathname||!a.pathname.includes("?"),ng("?","pathname","search",a)),Ct(!a.pathname||!a.pathname.includes("#"),ng("#","pathname","hash",a)),Ct(!a.search||!a.search.includes("#"),ng("#","search","hash",a)));let o=e===""||a.pathname==="",l=o?"/":a.pathname,u;if(l==null)u=n;else{let y=t.length-1;if(!r&&l.startsWith("..")){let g=l.split("/");for(;g[0]==="..";)g.shift(),y-=1;a.pathname=g.join("/")}u=y>=0?t[y]:"/"}let d=Jj(a,u),f=l&&l!=="/"&&l.endsWith("/"),m=(o||l===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(f||m)&&(d.pathname+="/"),d}var Si=e=>e.join("/").replace(/\/\/+/g,"/"),nP=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),rP=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,iP=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function aP(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var y1=["POST","PUT","PATCH","DELETE"];new Set(y1);var sP=["GET",...y1];new Set(sP);var Uo=E.createContext(null);Uo.displayName="DataRouter";var ch=E.createContext(null);ch.displayName="DataRouterState";var v1=E.createContext({isTransitioning:!1});v1.displayName="ViewTransition";var oP=E.createContext(new Map);oP.displayName="Fetchers";var lP=E.createContext(null);lP.displayName="Await";var Xr=E.createContext(null);Xr.displayName="Navigation";var Xc=E.createContext(null);Xc.displayName="Location";var Di=E.createContext({outlet:null,matches:[],isDataRoute:!1});Di.displayName="Route";var kv=E.createContext(null);kv.displayName="RouteError";function cP(e,{relative:t}={}){Ct(Qc(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=E.useContext(Xr),{hash:a,pathname:o,search:l}=Jc(e,{relative:t}),u=o;return n!=="/"&&(u=o==="/"?n:Si([n,o])),r.createHref({pathname:u,search:l,hash:a})}function Qc(){return E.useContext(Xc)!=null}function _a(){return Ct(Qc(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(Xc).location}var b1="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function _1(e){E.useContext(Xr).static||E.useLayoutEffect(e)}function uP(){let{isDataRoute:e}=E.useContext(Di);return e?SP():dP()}function dP(){Ct(Qc(),"useNavigate() may be used only in the context of a <Router> component.");let e=E.useContext(Uo),{basename:t,navigator:n}=E.useContext(Xr),{matches:r}=E.useContext(Di),{pathname:a}=_a(),o=JSON.stringify(p1(r)),l=E.useRef(!1);return _1(()=>{l.current=!0}),E.useCallback((d,f={})=>{if(Wr(l.current,b1),!l.current)return;if(typeof d=="number"){n.go(d);return}let m=g1(d,JSON.parse(o),a,f.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Si([t,m.pathname])),(f.replace?n.replace:n.push)(m,f.state,f)},[t,n,o,a,e])}E.createContext(null);function Jc(e,{relative:t}={}){let{matches:n}=E.useContext(Di),{pathname:r}=_a(),a=JSON.stringify(p1(n));return E.useMemo(()=>g1(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function fP(e,t){return x1(e,t)}function x1(e,t,n,r){var T;Ct(Qc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a,static:o}=E.useContext(Xr),{matches:l}=E.useContext(Di),u=l[l.length-1],d=u?u.params:{},f=u?u.pathname:"/",m=u?u.pathnameBase:"/",y=u&&u.route;{let R=y&&y.path||"";E1(f,!y||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${R}">) 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="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let g=_a(),v;if(t){let R=typeof t=="string"?zo(t):t;Ct(m==="/"||((T=R.pathname)==null?void 0:T.startsWith(m)),`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 "${m}" but pathname "${R.pathname}" was given in the \`location\` prop.`),v=R}else v=g;let x=v.pathname||"/",S=x;if(m!=="/"){let R=m.replace(/^\//,"").split("/");S="/"+x.replace(/^\//,"").split("/").slice(R.length).join("/")}let A=!o&&n&&n.matches&&n.matches.length>0?n.matches:f1(e,{pathname:S});Wr(y||A!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),Wr(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.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 w=yP(A&&A.map(R=>Object.assign({},R,{params:Object.assign({},d,R.params),pathname:Si([m,a.encodeLocation?a.encodeLocation(R.pathname).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?m:Si([m,a.encodeLocation?a.encodeLocation(R.pathnameBase).pathname:R.pathnameBase])})),l,n,r);return t&&w?E.createElement(Xc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},w):w}function hP(){let e=EP(),t=aP(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},o={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:o},"ErrorBoundary")," or"," ",E.createElement("code",{style:o},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:a},n):null,l)}var mP=E.createElement(hP,null),pP=class extends E.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?E.createElement(Di.Provider,{value:this.props.routeContext},E.createElement(kv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function gP({routeContext:e,match:t,children:n}){let r=E.useContext(Uo);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),E.createElement(Di.Provider,{value:e},n)}function yP(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,o=n==null?void 0:n.errors;if(o!=null){let d=a.findIndex(f=>f.route.id&&(o==null?void 0:o[f.route.id])!==void 0);Ct(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).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:y}=n,g=f.route.loader&&!m.hasOwnProperty(f.route.id)&&(!y||y[f.route.id]===void 0);if(f.route.lazy||g){l=!0,u>=0?a=a.slice(0,u+1):a=[a[0]];break}}}return a.reduceRight((d,f,m)=>{let y,g=!1,v=null,x=null;n&&(y=o&&f.route.id?o[f.route.id]:void 0,v=f.route.errorElement||mP,l&&(u<0&&m===0?(E1("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,x=null):u===m&&(g=!0,x=f.route.hydrateFallbackElement||null)));let S=t.concat(a.slice(0,m+1)),A=()=>{let w;return y?w=v:g?w=x:f.route.Component?w=E.createElement(f.route.Component,null):f.route.element?w=f.route.element:w=d,E.createElement(gP,{match:f,routeContext:{outlet:d,matches:S,isDataRoute:n!=null},children:w})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?E.createElement(pP,{location:n.location,revalidation:n.revalidation,component:v,error:y,children:A(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):A()},null)}function Ov(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function vP(e){let t=E.useContext(Uo);return Ct(t,Ov(e)),t}function bP(e){let t=E.useContext(ch);return Ct(t,Ov(e)),t}function _P(e){let t=E.useContext(Di);return Ct(t,Ov(e)),t}function Dv(e){let t=_P(e),n=t.matches[t.matches.length-1];return Ct(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function xP(){return Dv("useRouteId")}function EP(){var r;let e=E.useContext(kv),t=bP("useRouteError"),n=Dv("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function SP(){let{router:e}=vP("useNavigate"),t=Dv("useNavigate"),n=E.useRef(!1);return _1(()=>{n.current=!0}),E.useCallback(async(a,o={})=>{Wr(n.current,b1),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...o}))},[e,t])}var gS={};function E1(e,t,n){!t&&!gS[e]&&(gS[e]=!0,Wr(!1,n))}E.memo(AP);function AP({routes:e,future:t,state:n}){return x1(e,void 0,n,t)}function S1(e){Ct(!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 wP({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:o=!1}){Ct(!Qc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),u=E.useMemo(()=>({basename:l,navigator:a,static:o,future:{}}),[l,a,o]);typeof n=="string"&&(n=zo(n));let{pathname:d="/",search:f="",hash:m="",state:y=null,key:g="default"}=n,v=E.useMemo(()=>{let x=wi(d,l);return x==null?null:{location:{pathname:x,search:f,hash:m,state:y,key:g},navigationType:r}},[l,d,f,m,y,g,r]);return Wr(v!=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.`),v==null?null:E.createElement(Xr.Provider,{value:u},E.createElement(Xc.Provider,{children:t,value:v}))}function TP({children:e,location:t}){return fP(cy(e),t)}function cy(e,t=[]){let n=[];return E.Children.forEach(e,(r,a)=>{if(!E.isValidElement(r))return;let o=[...t,a];if(r.type===E.Fragment){n.push.apply(n,cy(r.props.children,o));return}Ct(r.type===S1,`[${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>`),Ct(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||o.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=cy(r.props.children,o)),n.push(l)}),n}var tf="get",nf="application/x-www-form-urlencoded";function uh(e){return e!=null&&typeof e.tagName=="string"}function CP(e){return uh(e)&&e.tagName.toLowerCase()==="button"}function RP(e){return uh(e)&&e.tagName.toLowerCase()==="form"}function NP(e){return uh(e)&&e.tagName.toLowerCase()==="input"}function kP(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function OP(e,t){return e.button===0&&(!t||t==="_self")&&!kP(e)}var kd=null;function DP(){if(kd===null)try{new FormData(document.createElement("form"),0),kd=!1}catch{kd=!0}return kd}var IP=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function rg(e){return e!=null&&!IP.has(e)?(Wr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${nf}"`),null):e}function LP(e,t){let n,r,a,o,l;if(RP(e)){let u=e.getAttribute("action");r=u?wi(u,t):null,n=e.getAttribute("method")||tf,a=rg(e.getAttribute("enctype"))||nf,o=new FormData(e)}else if(CP(e)||NP(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?wi(d,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||tf,a=rg(e.getAttribute("formenctype"))||rg(u.getAttribute("enctype"))||nf,o=new FormData(u,e),!DP()){let{name:f,type:m,value:y}=e;if(m==="image"){let g=f?`${f}.`:"";o.append(`${g}x`,"0"),o.append(`${g}y`,"0")}else f&&o.append(f,y)}}else{if(uh(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=tf,r=null,a=nf,l=e}return o&&a==="text/plain"&&(l=o,o=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:o,body:l}}function Iv(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function MP(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 jP(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 PP(e,t,n){let r=await Promise.all(e.map(async a=>{let o=t.routes[a.route.id];if(o){let l=await MP(o,n);return l.links?l.links():[]}return[]}));return UP(r.flat(1).filter(jP).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function yS(e,t,n,r,a,o){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 o==="assets"?t.filter((d,f)=>l(d,f)||u(d,f)):o==="data"?t.filter((d,f)=>{var y;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 g=d.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((y=n[0])==null?void 0:y.params)||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function VP(e,t,{includeHydrateFallback:n}={}){return BP(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let o=[a.module];return a.clientActionModule&&(o=o.concat(a.clientActionModule)),a.clientLoaderModule&&(o=o.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(o=o.concat(a.hydrateFallbackModule)),a.imports&&(o=o.concat(a.imports)),o}).flat(1))}function BP(e){return[...new Set(e)]}function zP(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function UP(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let o=JSON.stringify(zP(a));return n.has(o)||(n.add(o),r.push({key:o,link:a})),r},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var HP=new Set([100,101,204,205]);function FP(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&&wi(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function A1(){let e=E.useContext(Uo);return Iv(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function GP(){let e=E.useContext(ch);return Iv(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Lv=E.createContext(void 0);Lv.displayName="FrameworkContext";function w1(){let e=E.useContext(Lv);return Iv(e,"You must render this element inside a <HydratedRouter> element"),e}function $P(e,t){let n=E.useContext(Lv),[r,a]=E.useState(!1),[o,l]=E.useState(!1),{onFocus:u,onBlur:d,onMouseEnter:f,onMouseLeave:m,onTouchStart:y}=t,g=E.useRef(null);E.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let S=w=>{w.forEach(T=>{l(T.isIntersecting)})},A=new IntersectionObserver(S,{threshold:.5});return g.current&&A.observe(g.current),()=>{A.disconnect()}}},[e]),E.useEffect(()=>{if(r){let S=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(S)}}},[r]);let v=()=>{a(!0)},x=()=>{a(!1),l(!1)};return n?e!=="intent"?[o,g,{}]:[o,g,{onFocus:ec(u,v),onBlur:ec(d,x),onMouseEnter:ec(f,v),onMouseLeave:ec(m,x),onTouchStart:ec(y,v)}]:[!1,g,{}]}function ec(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function qP({page:e,...t}){let{router:n}=A1(),r=E.useMemo(()=>f1(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?E.createElement(WP,{page:e,matches:r,...t}):null}function KP(e){let{manifest:t,routeModules:n}=w1(),[r,a]=E.useState([]);return E.useEffect(()=>{let o=!1;return PP(e,t,n).then(l=>{o||a(l)}),()=>{o=!0}},[e,t,n]),r}function WP({page:e,matches:t,...n}){let r=_a(),{manifest:a,routeModules:o}=w1(),{basename:l}=A1(),{loaderData:u,matches:d}=GP(),f=E.useMemo(()=>yS(e,t,d,a,r,"data"),[e,t,d,a,r]),m=E.useMemo(()=>yS(e,t,d,a,r,"assets"),[e,t,d,a,r]),y=E.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let x=new Set,S=!1;if(t.forEach(w=>{var R;let T=a.routes[w.route.id];!T||!T.hasLoader||(!f.some(D=>D.route.id===w.route.id)&&w.route.id in u&&((R=o[w.route.id])!=null&&R.shouldRevalidate)||T.hasClientLoader?S=!0:x.add(w.route.id))}),x.size===0)return[];let A=FP(e,l);return S&&x.size>0&&A.searchParams.set("_routes",t.filter(w=>x.has(w.route.id)).map(w=>w.route.id).join(",")),[A.pathname+A.search]},[l,u,r,a,f,t,e,o]),g=E.useMemo(()=>VP(m,a),[m,a]),v=KP(m);return E.createElement(E.Fragment,null,y.map(x=>E.createElement("link",{key:x,rel:"prefetch",as:"fetch",href:x,...n})),g.map(x=>E.createElement("link",{key:x,rel:"modulepreload",href:x,...n})),v.map(({key:x,link:S})=>E.createElement("link",{key:x,...S})))}function YP(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var T1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{T1&&(window.__reactRouterVersion="7.6.0")}catch{}function ZP({basename:e,children:t,window:n}){let r=E.useRef();r.current==null&&(r.current=jj({window:n,v5Compat:!0}));let a=r.current,[o,l]=E.useState({action:a.action,location:a.location}),u=E.useCallback(d=>{E.startTransition(()=>l(d))},[l]);return E.useLayoutEffect(()=>a.listen(u),[a,u]),E.createElement(wP,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a})}var C1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,R1=E.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:o,replace:l,state:u,target:d,to:f,preventScrollReset:m,viewTransition:y,...g},v){let{basename:x}=E.useContext(Xr),S=typeof f=="string"&&C1.test(f),A,w=!1;if(typeof f=="string"&&S&&(A=f,T1))try{let B=new URL(window.location.href),U=f.startsWith("//")?new URL(B.protocol+f):new URL(f),ue=wi(U.pathname,x);U.origin===B.origin&&ue!=null?f=ue+U.search+U.hash:w=!0}catch{Wr(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let T=cP(f,{relative:a}),[R,D,N]=$P(r,g),L=eV(f,{replace:l,state:u,target:d,preventScrollReset:m,relative:a,viewTransition:y});function O(B){t&&t(B),B.defaultPrevented||L(B)}let M=E.createElement("a",{...g,...N,href:A||T,onClick:w||o?t:O,ref:YP(v,D),target:d,"data-discover":!S&&n==="render"?"true":void 0});return R&&!S?E.createElement(E.Fragment,null,M,E.createElement(qP,{page:T})):M});R1.displayName="Link";var XP=E.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:o,to:l,viewTransition:u,children:d,...f},m){let y=Jc(l,{relative:f.relative}),g=_a(),v=E.useContext(ch),{navigator:x,basename:S}=E.useContext(Xr),A=v!=null&&aV(y)&&u===!0,w=x.encodeLocation?x.encodeLocation(y).pathname:y.pathname,T=g.pathname,R=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;n||(T=T.toLowerCase(),R=R?R.toLowerCase():null,w=w.toLowerCase()),R&&S&&(R=wi(R,S)||R);const D=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let N=T===w||!a&&T.startsWith(w)&&T.charAt(D)==="/",L=R!=null&&(R===w||!a&&R.startsWith(w)&&R.charAt(w.length)==="/"),O={isActive:N,isPending:L,isTransitioning:A},M=N?t:void 0,B;typeof r=="function"?B=r(O):B=[r,N?"active":null,L?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let U=typeof o=="function"?o(O):o;return E.createElement(R1,{...f,"aria-current":M,className:B,ref:m,style:U,to:l,viewTransition:u},typeof d=="function"?d(O):d)});XP.displayName="NavLink";var QP=E.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:o,method:l=tf,action:u,onSubmit:d,relative:f,preventScrollReset:m,viewTransition:y,...g},v)=>{let x=rV(),S=iV(u,{relative:f}),A=l.toLowerCase()==="get"?"get":"post",w=typeof u=="string"&&C1.test(u),T=R=>{if(d&&d(R),R.defaultPrevented)return;R.preventDefault();let D=R.nativeEvent.submitter,N=(D==null?void 0:D.getAttribute("formmethod"))||l;x(D||R.currentTarget,{fetcherKey:t,method:N,navigate:n,replace:a,state:o,relative:f,preventScrollReset:m,viewTransition:y})};return E.createElement("form",{ref:v,method:A,action:S,onSubmit:r?d:T,...g,"data-discover":!w&&e==="render"?"true":void 0})});QP.displayName="Form";function JP(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function N1(e){let t=E.useContext(Uo);return Ct(t,JP(e)),t}function eV(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:o,viewTransition:l}={}){let u=uP(),d=_a(),f=Jc(e,{relative:o});return E.useCallback(m=>{if(OP(m,t)){m.preventDefault();let y=n!==void 0?n:Nc(d)===Nc(f);u(e,{replace:y,state:r,preventScrollReset:a,relative:o,viewTransition:l})}},[d,u,f,n,r,t,e,a,o,l])}var tV=0,nV=()=>`__${String(++tV)}__`;function rV(){let{router:e}=N1("useSubmit"),{basename:t}=E.useContext(Xr),n=xP();return E.useCallback(async(r,a={})=>{let{action:o,method:l,encType:u,formData:d,body:f}=LP(r,t);if(a.navigate===!1){let m=a.fetcherKey||nV();await e.fetch(m,n,a.action||o,{preventScrollReset:a.preventScrollReset,formData:d,body:f,formMethod:a.method||l,formEncType:a.encType||u,flushSync:a.flushSync})}else await e.navigate(a.action||o,{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 iV(e,{relative:t}={}){let{basename:n}=E.useContext(Xr),r=E.useContext(Di);Ct(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),o={...Jc(e||".",{relative:t})},l=_a();if(e==null){o.search=l.search;let u=new URLSearchParams(o.search),d=u.getAll("index");if(d.some(m=>m==="")){u.delete("index"),d.filter(y=>y).forEach(y=>u.append("index",y));let m=u.toString();o.search=m?`?${m}`:""}}return(!e||e===".")&&a.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:Si([n,o.pathname])),Nc(o)}function aV(e,t={}){let n=E.useContext(v1);Ct(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=N1("useViewTransitionState"),a=Jc(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=wi(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=wi(n.nextLocation.pathname,r)||n.nextLocation.pathname;return _f(a.pathname,l)!=null||_f(a.pathname,o)!=null}[...HP];var bs=HT();const sV=ah(bs);/**
|
|
54
54
|
* @license lucide-react v0.488.0 - ISC
|