pi-roundtable-web 0.23.0 → 0.23.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +27 -2
  3. package/dist/chunk-character-creator-dwk6y4be.js +1 -0
  4. package/dist/chunk-connectors-pk0fh4y6.js +1 -0
  5. package/dist/chunk-conversations-sfsgmsdm.js +1 -0
  6. package/dist/chunk-entry-x0j9g57j.js +1 -0
  7. package/dist/chunk-index-19g8jmr8.js +2 -0
  8. package/dist/chunk-index-362dfedj.js +1 -0
  9. package/dist/chunk-index-6g69tqt0.js +47 -0
  10. package/dist/chunk-index-89q2qdkj.css +1 -0
  11. package/dist/chunk-index-9k42hnam.js +41 -0
  12. package/dist/chunk-index-k0z1ykph.js +2 -0
  13. package/dist/{chunk-index-kkydgsrs.js → chunk-index-p8h0e861.js} +2 -2
  14. package/dist/chunk-notes-v60aswry.js +1 -0
  15. package/dist/chunk-overview-c1c0ccda.js +1 -0
  16. package/dist/chunk-skills-r8rwbc5y.js +1 -0
  17. package/dist/{chunk-table-ypqdgf66.js → chunk-table-pmr7zrgm.js} +1 -1
  18. package/dist/chunk-table2d-ac2gez71.js +1 -0
  19. package/dist/chunk-table3d-g258jemr.js +4229 -0
  20. package/dist/chunk-transcript-wjqk37f5.js +1 -0
  21. package/dist/chunk-zh-tw-mtvm7sn7.js +1 -0
  22. package/dist/index.html +1 -1
  23. package/dist/sw.js +1 -1
  24. package/package.json +2 -2
  25. package/src/api-types.ts +9 -0
  26. package/src/app/app.ts +17 -0
  27. package/src/app/routes.ts +5 -0
  28. package/src/features.ts +6 -1
  29. package/src/i18n/index.ts +13 -0
  30. package/src/i18n/locale.ts +11 -0
  31. package/src/i18n/zh-tw.ts +698 -0
  32. package/src/options.ts +34 -0
  33. package/src/push/quiet-hours.ts +60 -0
  34. package/src/push/triggers.ts +14 -2
  35. package/src/web-plugin.ts +4 -0
  36. package/dist/chunk-character-creator-6vdshaj9.js +0 -1
  37. package/dist/chunk-connectors-s33pc7b8.js +0 -1
  38. package/dist/chunk-conversations-zpztvesk.js +0 -1
  39. package/dist/chunk-entry-th44mrfe.js +0 -1
  40. package/dist/chunk-index-4w1rf52n.js +0 -47
  41. package/dist/chunk-index-5pnpf9v5.js +0 -41
  42. package/dist/chunk-index-dkvf85c7.css +0 -1
  43. package/dist/chunk-index-mtcervy3.js +0 -2
  44. package/dist/chunk-index-x3cf4dsz.js +0 -1
  45. package/dist/chunk-notes-ytw8qcfk.js +0 -1
  46. package/dist/chunk-overview-fbea32dq.js +0 -1
  47. package/dist/chunk-skills-58f4qz3b.js +0 -1
  48. package/dist/chunk-table2d-bk1khqzq.js +0 -1
  49. package/dist/chunk-table3d-5vpp4bzh.js +0 -4229
  50. package/dist/chunk-transcript-nabrrayp.js +0 -1
@@ -0,0 +1,41 @@
1
+ var E2=Object.create;var{getPrototypeOf:T2,defineProperty:Tu,getOwnPropertyNames:C2}=Object;var Yg=Object.prototype.hasOwnProperty;function N2(c){return this[c]}var A2,z2,Ig=(c,v,E)=>{var N=c!=null&&typeof c==="object";if(N){var D=v?A2??=new WeakMap:z2??=new WeakMap,H=D.get(c);if(H)return H}E=c!=null?E2(T2(c)):{};let q=v||!c||!c.__esModule||!Yg.call(c,"default")?Tu(E,"default",{value:c,enumerable:!0}):E;if(c&&typeof c==="object"||typeof c==="function"){for(let Y of C2(c))if(!Yg.call(q,Y))Tu(q,Y,{get:N2.bind(c,Y),enumerable:!0})}if(N)D.set(c,q);return q};var qo=(c,v)=>()=>(v||c((v={exports:{}}).exports,v),v.exports);var R2=(c)=>c;function O2(c,v){this[c]=R2.bind(null,v)}var Gg=(c,v)=>{for(var E in v)Tu(c,E,{get:v[E],enumerable:!0,configurable:!0,set:O2.bind(v,E)})};var M2=(c,v,E)=>{for(var N in v)Tu(c,N,{get:v[N],set:E[N],enumerable:!0,configurable:!0})};var Pg,kf,Eu,M=(c,v)=>{for(var[E,N,D]of Pg||[])for(var H=[c],q=globalThis,Y=q.document,I,Q,F,ee,te;Q=H.pop();)if(!kf[Q]&&(F=N[Q])){kf[Q]=1;for(ee=1;ee<F.length;ee++)H.push(D[F[ee]]);if(!v&&Q!==c&&(I=Y&&Y.head)){if(Eu===void 0)Eu=(ee=Y.querySelector("meta[property=csp-nonce]"))&&(ee.nonce||ee.getAttribute("nonce"))||"";if(te=Y.createElement("link"),te.rel="modulepreload",te.crossOrigin="",Eu)te.nonce=Eu;te.href=new q.URL(F[0],E),I.appendChild(te)}}},_2=(c,v,E,N)=>{for(var D={},H=0;H<v.length;H++)D[v[H]]=E[H];(Pg||=[]).push([c,D,v]),kf||={},M(v[N],1)};_2(import.meta.url,["9k42hnam","sfsgmsdm","wjqk37f5","v60aswry","r8rwbc5y","pk0fh4y6","pmr7zrgm","mtvm7sn7","362dfedj","dwk6y4be","x0j9g57j","c1c0ccda","k0z1ykph","6g69tqt0","ac2gez71","g258jemr","19g8jmr8","p8h0e861"],[["./chunk-index-9k42hnam.js"],["./chunk-conversations-sfsgmsdm.js",0],["./chunk-transcript-wjqk37f5.js",0],["./chunk-notes-v60aswry.js",0,12],["./chunk-skills-r8rwbc5y.js",0,12],["./chunk-connectors-pk0fh4y6.js",0],["./chunk-table-pmr7zrgm.js",0],["./chunk-zh-tw-mtvm7sn7.js"],["./chunk-index-362dfedj.js",13],["./chunk-character-creator-dwk6y4be.js",13,0],["./chunk-entry-x0j9g57j.js",0,16],["./chunk-overview-c1c0ccda.js",0,12],["./chunk-index-k0z1ykph.js",0],["./chunk-index-6g69tqt0.js"],["./chunk-table2d-ac2gez71.js",17,16],["./chunk-table3d-g258jemr.js",17,16],["./chunk-index-19g8jmr8.js"],["./chunk-index-p8h0e861.js"]],0);
2
+ var uw=qo(function(rD,lw){var rw=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,oA=/\n/g,lA=/^\s*/,uA=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,sA=/^:\s*/,cA=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,fA=/^[;\s]*/,dA=/^\s+|\s+$/g,mA=`
3
+ `,aw="/",iw="*",ii="",pA="comment",hA="declaration";function gA(c,v){if(typeof c!=="string")throw TypeError("First argument must be a string");if(!c)return[];v=v||{};var E=1,N=1;function D(ie){var ce=ie.match(oA);if(ce)E+=ce.length;var me=ie.lastIndexOf(mA);N=~me?ie.length-me:N+ie.length}function H(){var ie={line:E,column:N};return function(ce){return ce.position=new q(ie),Q(),ce}}function q(ie){this.start=ie,this.end={line:E,column:N},this.source=v.source}q.prototype.content=c;function Y(ie){var ce=Error(v.source+":"+E+":"+N+": "+ie);if(ce.reason=ie,ce.filename=v.source,ce.line=E,ce.column=N,ce.source=c,v.silent);else throw ce}function I(ie){var ce=ie.exec(c);if(!ce)return;var me=ce[0];return D(me),c=c.slice(me.length),ce}function Q(){I(lA)}function F(ie){var ce;ie=ie||[];while(ce=ee())if(ce!==!1)ie.push(ce);return ie}function ee(){var ie=H();if(aw!=c.charAt(0)||iw!=c.charAt(1))return;var ce=2;while(ii!=c.charAt(ce)&&(iw!=c.charAt(ce)||aw!=c.charAt(ce+1)))++ce;if(ce+=2,ii===c.charAt(ce-1))return Y("End of comment missing");var me=c.slice(2,ce-2);return N+=2,D(me),c=c.slice(ce),N+=2,ie({type:pA,comment:me})}function te(){var ie=H(),ce=I(uA);if(!ce)return;if(ee(),!I(sA))return Y("property missing ':'");var me=I(cA),re=ie({type:hA,property:ow(ce[0].replace(rw,ii)),value:me?ow(me[0].replace(rw,ii)):ii});return I(fA),re}function ne(){var ie=[];F(ie);var ce;while(ce=te())if(ce!==!1)ie.push(ce),F(ie);return ie}return Q(),ne()}function ow(c){return c?c.replace(dA,ii):ii}lw.exports=gA});var sw=qo(function(au){var yA=au&&au.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(au,"__esModule",{value:!0});au.default=bA;var vA=yA(uw());function bA(c,v){let E=null;if(!c||typeof c!=="string")return E;let N=(0,vA.default)(c),D=typeof v==="function";return N.forEach((H)=>{if(H.type!=="declaration")return;let{property:q,value:Y}=H;if(D)v(q,Y,H);else if(Y)E=E||{},E[q]=Y}),E}});var mw=qo(function(fw){Object.defineProperty(fw,"__esModule",{value:!0});fw.camelCase=void 0;var xA=/^--[a-zA-Z0-9_-]+$/,wA=/-([a-z])/g,SA=/^[^-]+$/,kA=/^-(webkit|moz|ms|o|khtml)-/,EA=/^-(ms)-/,TA=function(c){return!c||SA.test(c)||xA.test(c)},CA=function(c,v){return v.toUpperCase()},cw=function(c,v){return"".concat(v,"-")},NA=function(c,v){if(v===void 0)v={};if(TA(c))return c;if(c=c.toLowerCase(),v.reactCompat)c=c.replace(EA,cw);else c=c.replace(kA,cw);return c.replace(wA,CA)};fw.camelCase=NA});var hw=qo(function(ah,pw){var AA=ah&&ah.__importDefault||function(c){return c&&c.__esModule?c:{default:c}},zA=AA(sw()),RA=mw();function rh(c,v){var E={};if(!c||typeof c!=="string")return E;return(0,zA.default)(c,function(N,D){if(N&&D)E[(0,RA.camelCase)(N,v)]=D}),E}rh.default=rh;pw.exports=rh});var HS=qo(function(eU,US){var cf=Object.prototype.hasOwnProperty,LS=Object.prototype.toString,{defineProperty:zS,getOwnPropertyDescriptor:RS}=Object,OS=function(v){if(typeof Array.isArray==="function")return Array.isArray(v);return LS.call(v)==="[object Array]"},MS=function(v){if(!v||LS.call(v)!=="[object Object]")return!1;var E=cf.call(v,"constructor"),N=v.constructor&&v.constructor.prototype&&cf.call(v.constructor.prototype,"isPrototypeOf");if(v.constructor&&!E&&!N)return!1;var D;for(D in v);return typeof D>"u"||cf.call(v,D)},_S=function(v,E){if(zS&&E.name==="__proto__")zS(v,E.name,{enumerable:!0,configurable:!0,value:E.newValue,writable:!0});else v[E.name]=E.newValue},DS=function(v,E){if(E==="__proto__"){if(!cf.call(v,E))return;else if(RS)return RS(v,E).value}return v[E]};US.exports=function c(){var v,E,N,D,H,q,Y=arguments[0],I=1,Q=arguments.length,F=!1;if(typeof Y==="boolean")F=Y,Y=arguments[1]||{},I=2;if(Y==null||typeof Y!=="object"&&typeof Y!=="function")Y={};for(;I<Q;++I)if(v=arguments[I],v!=null){for(E in v)if(N=DS(Y,E),D=DS(v,E),Y!==D){if(F&&D&&(MS(D)||(H=OS(D)))){if(H)H=!1,q=N&&OS(N)?N:[];else q=N&&MS(N)?N:{};_S(Y,{name:E,newValue:c(F,q,D)})}else if(typeof D<"u")_S(Y,{name:E,newValue:D})}}return Y}});var Ta={};M2(Ta,{unstable_now:()=>Bn,unstable_IdlePriority:()=>Mu,unstable_ImmediatePriority:()=>_u,unstable_LowPriority:()=>Du,unstable_NormalPriority:()=>Ca,unstable_Profiling:()=>ry,unstable_UserBlockingPriority:()=>Lu,unstable_cancelCallback:()=>Uu,unstable_forceFrameRate:()=>ay,unstable_getCurrentPriorityLevel:()=>Hu,unstable_next:()=>iy,unstable_requestPaint:()=>Bu,unstable_runWithPriority:()=>oy,unstable_scheduleCallback:()=>Na,unstable_shouldYield:()=>Vu,unstable_wrapCallback:()=>ly},{unstable_now:(BO)=>Bn=BO,unstable_IdlePriority:(BO)=>Mu=BO,unstable_ImmediatePriority:(BO)=>_u=BO,unstable_LowPriority:(BO)=>Du=BO,unstable_NormalPriority:(BO)=>Ca=BO,unstable_Profiling:(BO)=>ry=BO,unstable_UserBlockingPriority:(BO)=>Lu=BO,unstable_cancelCallback:(BO)=>Uu=BO,unstable_forceFrameRate:(BO)=>ay=BO,unstable_getCurrentPriorityLevel:(BO)=>Hu=BO,unstable_next:(BO)=>iy=BO,unstable_requestPaint:(BO)=>Bu=BO,unstable_runWithPriority:(BO)=>oy=BO,unstable_scheduleCallback:(BO)=>Na=BO,unstable_shouldYield:(BO)=>Vu=BO,unstable_wrapCallback:(BO)=>ly=BO});var ru={};Gg(ru,{boolean:()=>Le,booleanish:()=>yt,commaOrSpaceSeparated:()=>un,commaSeparated:()=>Hr,number:()=>we,overloadedBoolean:()=>Lc,spaceSeparated:()=>Je});var Eh={};Gg(Eh,{attentionMarkers:()=>m4,contentInitial:()=>l4,disable:()=>p4,document:()=>o4,flow:()=>s4,flowInitial:()=>u4,insideSpan:()=>d4,string:()=>c4,text:()=>f4});var D2=Symbol.for("react.fragment"),L2=Symbol.for("react.strict_mode");var U2=Symbol.for("react.consumer"),H2=Symbol.for("react.context");var B2=Symbol.for("react.suspense"),V2=Symbol.for("react.memo"),q2=Symbol.for("react.lazy");var Qg={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j2=Object.assign,Xg={};function bi(c,v,E){this.props=c,this.context=v,this.refs=Xg,this.updater=E||Qg}bi.prototype.isReactComponent={};bi.prototype.setState=function(c,v){if(typeof c!=="object"&&typeof c!=="function"&&c!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,c,v,"setState")};bi.prototype.forceUpdate=function(c){this.updater.enqueueForceUpdate(this,c,"forceUpdate")};function Fg(){}Fg.prototype=bi.prototype;function Zg(c,v,E){this.props=c,this.context=v,this.refs=Xg,this.updater=E||Qg}var Ef=Zg.prototype=new Fg;Ef.constructor=Zg;j2(Ef,bi.prototype);Ef.isPureReactComponent=!0;var Sn={H:null,A:null,T:null,S:null};function Y2(c){if(c._status===-1){var v=c._result,E=v();E.then(function(N){if(c._status===0||c._status===-1)c._status=1,c._result=N,E.status===void 0&&(E.status="fulfilled",E.value=N)},function(N){if(c._status===0||c._status===-1)c._status=2,c._result=N,E.status===void 0&&(E.status="rejected",E.reason=N)}),c._status===-1&&(c._status=0,c._result=E)}if(c._status===1)return c._result.default;throw c._result}var Tf=bi,K=D2;var Cf=L2,jo=B2;var Yo=Sn;var Io=function(c){return c={$$typeof:H2,_currentValue:c,_currentValue2:c,_threadCount:0,Provider:null,Consumer:null},c.Provider=c,c.Consumer={$$typeof:U2,_context:c},c};var Hn=function(c){return{$$typeof:q2,_payload:{_status:-1,_result:c},_init:Y2}},b=function(c,v){return{$$typeof:V2,type:c,compare:v===void 0?null:v}};var A=function(c,v){return Sn.H.useCallback(c,v)},yr=function(c){return Sn.H.useContext(c)};var J=function(c,v){return Sn.H.useDeferredValue(c,v)},a=function(c,v){return Sn.H.useEffect(c,v)};var P=function(){return Sn.H.useId()};var Cu=function(c,v){return Sn.H.useLayoutEffect(c,v)},_=function(c,v){return Sn.H.useMemo(c,v)};var Nf=function(c,v,E){return Sn.H.useReducer(c,v,E)},o=function(c){return Sn.H.useRef(c)},i=function(c){return Sn.H.useState(c)},Ea=function(c,v,E){return Sn.H.useSyncExternalStore(c,v,E)};var Af="19.3.0";function Y1(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Y1)}catch(c){console.error(c)}}function Rf(c,v){var E=c.length;c.push(v);e:for(;0<E;){var N=E-1>>>1,D=c[N];if(0<Nu(D,v))c[N]=v,c[E]=D,E=N;else break e}}function Fn(c){return c.length===0?null:c[0]}function Ou(c){if(c.length===0)return null;var v=c[0],E=c.pop();if(E!==v){c[0]=E;e:for(var N=0,D=c.length,H=D>>>1;N<H;){var q=2*(N+1)-1,Y=c[q],I=q+1,Q=c[I];if(0>Nu(Y,E))I<D&&0>Nu(Q,Y)?(c[N]=Q,c[I]=E,N=I):(c[N]=Y,c[q]=E,N=q);else if(I<D&&0>Nu(Q,E))c[N]=Q,c[I]=E,N=I;else break e}}return v}function Nu(c,v){var E=c.sortIndex-v.sortIndex;return E!==0?E:c.id-v.id}var Bn=void 0;if(typeof performance==="object"&&typeof performance.now==="function")Of=performance,Bn=function(){return Of.now()};else Au=Date,Mf=Au.now(),Bn=function(){return Au.now()-Mf};var Of,Au,Mf,vr=[],qr=[],I2=1,kn=null,Gt=3,_f=!1,Go=!1,Po=!1,Lf=!1,Wg=typeof setTimeout==="function"?setTimeout:null,$g=typeof clearTimeout==="function"?clearTimeout:null,Jg=typeof setImmediate<"u"?setImmediate:null;function zu(c){for(var v=Fn(qr);v!==null;){if(v.callback===null)Ou(qr);else if(v.startTime<=c)Ou(qr),v.sortIndex=v.expirationTime,Rf(vr,v);else break;v=Fn(qr)}}function Uf(c){if(Po=!1,zu(c),!Go)if(Fn(vr)!==null)Go=!0,wi||(wi=!0,xi());else{var v=Fn(qr);v!==null&&Hf(Uf,v.startTime-c)}}var wi=!1,Qo=-1,ey=5,ty=-1;function ny(){return Lf?!0:Ta.unstable_now()-ty<ey?!1:!0}function zf(){if(Lf=!1,wi){var c=Ta.unstable_now();ty=c;var v=!0;try{e:{Go=!1,Po&&(Po=!1,$g(Qo),Qo=-1),_f=!0;var E=Gt;try{t:{zu(c);for(kn=Fn(vr);kn!==null&&!(kn.expirationTime>c&&ny());){var N=kn.callback;if(typeof N==="function"){kn.callback=null,Gt=kn.priorityLevel;var D=N(kn.expirationTime<=c);if(c=Ta.unstable_now(),typeof D==="function"){kn.callback=D,zu(c),v=!0;break t}kn===Fn(vr)&&Ou(vr),zu(c)}else Ou(vr);kn=Fn(vr)}if(kn!==null)v=!0;else{var H=Fn(qr);H!==null&&Hf(Uf,H.startTime-c),v=!1}}break e}finally{kn=null,Gt=E,_f=!1}v=void 0}}finally{v?xi():wi=!1}}}var xi;if(typeof Jg==="function")xi=function(){Jg(zf)};else if(typeof MessageChannel<"u")Ru=new MessageChannel,Df=Ru.port2,Ru.port1.onmessage=zf,xi=function(){Df.postMessage(null)};else xi=function(){Wg(zf,0)};var Ru,Df;function Hf(c,v){Qo=Wg(function(){c(Ta.unstable_now())},v)}var Mu=5,_u=1,Du=4,Ca=3,ry=null,Lu=2,Uu=function(c){c.callback=null},ay=function(c){0>c||125<c?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ey=0<c?Math.floor(1000/c):5},Hu=function(){return Gt},iy=function(c){switch(Gt){case 1:case 2:case 3:var v=3;break;default:v=Gt}var E=Gt;Gt=v;try{return c()}finally{Gt=E}},Bu=function(){Lf=!0},oy=function(c,v){switch(c){case 1:case 2:case 3:case 4:case 5:break;default:c=3}var E=Gt;Gt=c;try{return v()}finally{Gt=E}},Na=function(c,v,E){var N=Ta.unstable_now();switch(typeof E==="object"&&E!==null?(E=E.delay,E=typeof E==="number"&&0<E?N+E:N):E=N,c){case 1:var D=-1;break;case 2:D=250;break;case 5:D=1073741823;break;case 4:D=1e4;break;default:D=5000}return D=E+D,c={id:I2++,callback:v,priorityLevel:c,startTime:E,expirationTime:D,sortIndex:-1},E>N?(c.sortIndex=E,Rf(qr,c),Fn(vr)===null&&c===Fn(qr)&&(Po?($g(Qo),Qo=-1):Po=!0,Hf(Uf,E-N))):(c.sortIndex=D,Rf(vr,c),Go||_f||(Go=!0,wi||(wi=!0,xi()))),c},Vu=ny,ly=function(c){var v=Gt;return function(){var E=Gt;Gt=v;try{return c.apply(this,arguments)}finally{Gt=E}}};function cy(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function")return;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(cy)}catch(c){console.error(c)}}function sy(c){var v="https://react.dev/errors/"+c;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var E=2;E<arguments.length;E++)v+="&args[]="+encodeURIComponent(arguments[E])}return"Minified React error #"+c+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function jr(){}var Xo={d:{f:jr,r:function(){throw Error(sy(522))},D:jr,C:jr,L:jr,m:jr,X:jr,S:jr,M:jr},p:0,findDOMNode:null},G2=Symbol.for("react.portal");var uy=Symbol.for("react.optimistic_key");function P2(c,v,E){var N=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:G2,key:N==null?null:N===uy?uy:""+N,children:c,containerInfo:v,implementation:E}}var Bf=Yo;var Vf=Xo;var qf=function(c,v){var E=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(sy(299));return P2(c,v,null,E)},jf=function(c){var v=Bf.T,E=Xo.p;try{if(Bf.T=null,Xo.p=2,c)return c()}finally{Bf.T=v,Xo.p=E,Xo.d.f()}};cy();function ve(c){var v="https://react.dev/errors/"+c;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var E=2;E<arguments.length;E++)v+="&args[]="+encodeURIComponent(arguments[E])}return"Minified React error #"+c+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function X2(c){return!(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)}function Hl(c){for(var v=c,E=v;E&&!E.alternate;)v=E,(v.flags&4098)!==0&&(c=v.return),E=v.return;for(;v.return;)v=v.return;return v.tag===3?c:null}function Xv(c){if(c.tag===13){var v=c.memoizedState;if(v===null&&(c=c.alternate,c!==null&&(v=c.memoizedState)),v!==null)return v.dehydrated}return null}function Fv(c){if(c.tag===31){var v=c.memoizedState;if(v===null&&(c=c.alternate,c!==null&&(v=c.memoizedState)),v!==null)return v.dehydrated}return null}function fy(c){if(Hl(c)!==c)throw Error(ve(188))}function F2(c){var v=c.alternate;if(!v){if(v=Hl(c),v===null)throw Error(ve(188));return v!==c?null:c}for(var E=c,N=v;;){var D=E.return;if(D===null)break;var H=D.alternate;if(H===null){if(N=D.return,N!==null){E=N;continue}break}if(D.child===H.child){for(H=D.child;H;){if(H===E)return fy(D),c;if(H===N)return fy(D),v;H=H.sibling}throw Error(ve(188))}if(E.return!==N.return)E=D,N=H;else{for(var q=!1,Y=D.child;Y;){if(Y===E){q=!0,E=D,N=H;break}if(Y===N){q=!0,N=D,E=H;break}Y=Y.sibling}if(!q){for(Y=H.child;Y;){if(Y===E){q=!0,E=H,N=D;break}if(Y===N){q=!0,N=H,E=D;break}Y=Y.sibling}if(!q)throw Error(ve(189))}}if(E.alternate!==N)throw Error(ve(190))}if(E.tag!==3)throw Error(ve(188));return E.stateNode.current===E?c:v}function Zv(c){var v=c.tag;if(v===5||v===26||v===27||v===6)return c;for(c=c.child;c!==null;){if(v=Zv(c),v!==null)return v;c=c.sibling}return null}function on(c,v,E,N,D,H){for(;c!==null;){if((c.tag===5||c.tag===27||c.tag===6)&&E(c,N,D,H)||(c.tag!==22||c.memoizedState===null)&&(v||c.tag!==5&&c.tag!==27)&&on(c.child,v,E,N,D,H))return!0;c=c.sibling}return!1}function Ja(c){for(c=c.return;c!==null;){if(c.tag===3||c.tag===5||c.tag===27)return c;c=c.return}return null}function dy(c){var v=!1;for(c=c.return;c!==null;){if(c.tag===4&&(v=!0),c.tag===3||c.tag===5||c.tag===27)break;c=c.return}return v}function Kv(c){var v=[null,null],E=Ja(c);if(E===null)return v;return Jv(v,c,E.child,{foundSelf:!1}),v}function Jv(c,v,E,N){for(;E!==null;){if(E===v)N.foundSelf=!0;else if(E.tag===5||E.tag===27||E.tag===6){if(N.foundSelf)return c[1]=E,!0;c[0]=E}else if((E.tag!==22||E.memoizedState===null)&&Jv(c,v,E.child,N))return!0;E=E.sibling}return!1}function At(c){switch(c.tag){case 5:case 27:case 6:return c.stateNode;case 3:return c.stateNode.containerInfo;default:throw Error(ve(559))}}var Ai=null,vd=null;function Z2(c,v,E){return c===E?!0:c===v?(Ai=c,!0):!1}function K2(c,v,E){return c===E?(vd=c,!1):c===v?(vd!==null&&(Ai=c),!0):!1}function my(c){if(c===null)return null;do c=c===null?null:c.return;while(c&&c.tag!==5&&c.tag!==27&&c.tag!==3);return c?c:null}function bd(c,v,E){for(var N=0,D=c;D;D=E(D))N++;D=0;for(var H=v;H;H=E(H))D++;for(;0<N-D;)c=E(c),N--;for(;0<D-N;)v=E(v),D--;for(;N--;){if(c===v||v!==null&&c===v.alternate)return c;c=E(c),v=E(v)}return null}var at=Object.assign,J2=Symbol.for("react.element"),qu=Symbol.for("react.transitional.element"),$o=Symbol.for("react.portal"),zi=Symbol.for("react.fragment"),Wv=Symbol.for("react.strict_mode"),xd=Symbol.for("react.profiler"),$v=Symbol.for("react.consumer"),er=Symbol.for("react.context"),Om=Symbol.for("react.forward_ref"),wd=Symbol.for("react.suspense"),Sd=Symbol.for("react.suspense_list"),Mm=Symbol.for("react.memo"),Pr=Symbol.for("react.lazy"),kd=Symbol.for("react.activity"),W2=Symbol.for("react.legacy_hidden"),$2=Symbol.for("react.memo_cache_sentinel"),Ed=Symbol.for("react.view_transition"),eE=Symbol.for("react.recoverable"),py=Symbol.iterator;function Fo(c){if(c===null||typeof c!=="object")return null;return c=py&&c[py]||c["@@iterator"],typeof c==="function"?c:null}var tE=Symbol.for("react.client.reference");function Td(c){if(c==null)return null;if(typeof c==="function")return c.$$typeof===tE?null:c.displayName||c.name||null;if(typeof c==="string")return c;switch(c){case zi:return"Fragment";case xd:return"Profiler";case Wv:return"StrictMode";case wd:return"Suspense";case Sd:return"SuspenseList";case kd:return"Activity";case Ed:return"ViewTransition"}if(typeof c==="object")switch(c.$$typeof){case $o:return"Portal";case er:return c.displayName||"Context";case $v:return(c._context.displayName||"Context")+".Consumer";case Om:var v=c.render;return c=c.displayName,c||(c=v.displayName||v.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case Mm:return v=c.displayName||null,v!==null?v:Td(c.type)||"Memo";case Pr:v=c._payload,c=c._init;try{return Td(c(v))}catch(E){}}return null}var el=Array.isArray,De=Yo,Ze=Vf,Ua={pending:!1,data:null,method:null,action:null},Cd=[],Ri=-1;function lr(c){return{current:c}}function Bt(c){0>Ri||(c.current=Cd[Ri],Cd[Ri]=null,Ri--)}function ct(c,v){Ri++,Cd[Ri]=c.current,c.current=v}var ar=lr(null),wl=lr(null),ea=lr(null),ks=lr(null);function Es(c,v){switch(ct(ea,v),ct(wl,c),ct(ar,null),v.nodeType){case 9:case 11:c=(c=v.documentElement)?(c=c.namespaceURI)?Cv(c):0:0;break;default:if(c=v.tagName,v=v.namespaceURI)v=Cv(v),c=x1(v,c);else switch(c){case"svg":c=1;break;case"math":c=2;break;default:c=0}}Bt(ar),ct(ar,c)}function Ki(){Bt(ar),Bt(wl),Bt(ea)}function Nd(c){var v=c.memoizedState;v!==null&&(oo._currentValue=v.memoizedState,ct(ks,c)),v=ar.current;var E=x1(v,c.type);v!==E&&(ct(wl,c),ct(ar,E))}function Ts(c){wl.current===c&&(Bt(ar),Bt(wl)),ks.current===c&&(Bt(ks),oo._currentValue=Ua)}var Yf,hy;function Ir(c){if(Yf===void 0)try{throw Error()}catch(E){var v=E.stack.trim().match(/\n( *(at )?)/);Yf=v&&v[1]||"",hy=-1<E.stack.indexOf(`
4
+ at`)?" (<anonymous>)":-1<E.stack.indexOf("@")?"@unknown:0:0":""}return`
5
+ `+Yf+c+hy}var If=!1;function Gf(c,v){if(!c||If)return"";If=!0;var E=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var N={DetermineComponentFrameRoot:function(){try{if(v){var ee=function(){throw Error()};if(Object.defineProperty(ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(ee,[])}catch(ie){var te=ie}Reflect.construct(c,[],ee)}else{try{ee.call()}catch(ie){te=ie}ee=!1;try{var ne=Object.getOwnPropertyDescriptor(c.prototype,"props");Object.defineProperty(c.prototype,"props",{configurable:!0,set:function(){throw Error()}}),ee=!0,new c}finally{ee&&(ne!==void 0?Object.defineProperty(c.prototype,"props",ne):delete c.prototype.props)}}}else{try{throw Error()}catch(ie){te=ie}(ee=c())&&typeof ee.catch==="function"&&ee.catch(function(){})}}catch(ie){if(ie&&te&&typeof ie.stack==="string")return[ie.stack,te.stack]}return[null,null]}};N.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var D=Object.getOwnPropertyDescriptor(N.DetermineComponentFrameRoot,"name");D&&D.configurable&&Object.defineProperty(N.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var H=N.DetermineComponentFrameRoot(),q=H[0],Y=H[1];if(q&&Y){var I=q.split(`
6
+ `),Q=Y.split(`
7
+ `);for(D=N=0;N<I.length&&!I[N].includes("DetermineComponentFrameRoot");)N++;for(;D<Q.length&&!Q[D].includes("DetermineComponentFrameRoot");)D++;if(N===I.length||D===Q.length)for(N=I.length-1,D=Q.length-1;1<=N&&0<=D&&I[N]!==Q[D];)D--;for(;1<=N&&0<=D;N--,D--)if(I[N]!==Q[D]){if(N!==1||D!==1)do if(N--,D--,0>D||I[N]!==Q[D]){var F=`
8
+ `+I[N].replace(" at new "," at ");return c.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",c.displayName)),F}while(1<=N&&0<=D);break}}}finally{If=!1,Error.prepareStackTrace=E}return(E=c?c.displayName||c.name:"")?Ir(E):""}function nE(c,v){switch(c.tag){case 26:case 27:case 5:return Ir(c.type);case 16:return Ir("Lazy");case 13:return c.child!==v&&v!==null?Ir("Suspense Fallback"):Ir("Suspense");case 19:return Ir("SuspenseList");case 0:case 15:return Gf(c.type,!1);case 11:return Gf(c.type.render,!1);case 1:return Gf(c.type,!0);case 31:return Ir("Activity");case 30:return Ir("ViewTransition");default:return""}}function gy(c){try{var v="",E=null;do v+=nE(c,E),E=c,c=c.return;while(c);return v}catch(N){return`
9
+ Error generating stack: `+N.message+`
10
+ `+N.stack}}var Ad=Object.prototype.hasOwnProperty,_m=Na,Pf=Uu,rE=Vu,aE=Bu,gn=Bn,iE=Hu,eb=_u,tb=Lu,Cs=Ca,oE=Du,nb=Mu,lE=void 0,uE=void 0,Bl=null,yn=null;function Fr(c){if(typeof lE==="function"&&uE(c),yn&&typeof yn.setStrictMode==="function")try{yn.setStrictMode(Bl,c)}catch(v){}}var vn=Math.clz32?Math.clz32:fE,{log:sE,LN2:cE}=Math;function fE(c){return c>>>=0,c===0?32:31-(sE(c)/cE|0)|0}var ju=256,Yu=262144,Iu=4194304;function Ra(c){var v=c&42;if(v!==0)return v;switch(c&-c){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return c&-c;case 262144:case 524288:case 1048576:case 2097152:return c&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return c&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return c}}function Ws(c,v,E){var N=c.pendingLanes;if(N===0)return 0;var D=0,H=c.suspendedLanes,q=c.pingedLanes;c=c.warmLanes;var Y=N&134217727;return Y!==0?(N=Y&~H,N!==0?D=Ra(N):(q&=Y,q!==0?D=Ra(q):E||(E=Y&~c,E!==0&&(D=Ra(E))))):(Y=N&~H,Y!==0?D=Ra(Y):q!==0?D=Ra(q):E||(E=N&~c,E!==0&&(D=Ra(E)))),D===0?0:v!==0&&v!==D&&(v&H)===0&&(H=D&-D,E=v&-v,H>=E||H===32&&(E&4194048)!==0)?v:D}function Vl(c,v){return(c.pendingLanes&~(c.suspendedLanes&~c.pingedLanes)&v)===0}function rb(c,v){(v&8)!==0&&(v|=v&32);var E=c.entangledLanes;if(E!==0)for(c=c.entanglements,E&=v;0<E;){var N=31-vn(E),D=1<<N;v|=c[N],E&=~D}return v}function dE(c,v){switch(c){case 1:case 2:case 4:case 8:case 64:return v+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return v+5000;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 ab(){var c=Iu;return Iu<<=1,(Iu&62914560)===0&&(Iu=4194304),c}function Qf(c){for(var v=[],E=0;31>E;E++)v.push(c);return v}function $s(c,v){c.pendingLanes|=v,v!==268435456&&(c.suspendedLanes=0,c.pingedLanes=0,c.warmLanes=0)}function mE(c,v,E,N,D,H){var q=c.pendingLanes;c.pendingLanes=E,c.suspendedLanes=0,c.pingedLanes=0,c.warmLanes=0,c.expiredLanes&=E,c.entangledLanes&=E,c.errorRecoveryDisabledLanes&=E,c.shellSuspendCounter=0;var{entanglements:Y,expirationTimes:I,hiddenUpdates:Q}=c;for(E=q&~E;0<E;){var F=31-vn(E),ee=1<<F;Y[F]=0,I[F]=-1;var te=Q[F];if(te!==null)for(Q[F]=null,F=0;F<te.length;F++){var ne=te[F];ne!==null&&(ne.lane&=-536870913)}E&=~ee}N!==0&&ib(c,N,0),H!==0&&D===0&&c.tag!==0&&(c.suspendedLanes|=H&~(q&~v))}function ib(c,v,E){c.pendingLanes|=v,c.suspendedLanes&=~v;var N=31-vn(v);c.entangledLanes|=v,c.entanglements[N]=c.entanglements[N]|1073741824|E&261930}function ob(c,v){var E=c.entangledLanes|=v;for(c=c.entanglements;E;){var N=31-vn(E),D=1<<N;D&v|c[N]&v&&(c[N]|=v),E&=~D}}function lb(c,v){var E=v&-v;return E=(E&42)!==0?1:ub(E),(E&(c.suspendedLanes|v))!==0?0:E}function ub(c){switch(c){case 2:c=1;break;case 8:c=4;break;case 32:c=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:c=128;break;case 268435456:c=134217728;break;default:c=0}return c}function Dm(c){return c&=-c,2<c?8<c?(c&134217727)!==0?32:268435456:8:2}function sb(){var c=Ze.p;if(c!==0)return c;return c=window.event,c===void 0?32:q1(c.type)}function yy(c,v){var E=Ze.p;try{return Ze.p=c,v()}finally{Ze.p=E}}var Or=Math.random().toString(36).slice(2),Ut="__reactFiber$"+Or,ln="__reactProps$"+Or,ql="__reactContainer$"+Or,vy="__reactEvents$"+Or,pE="__reactListeners$"+Or,hE="__reactHandles$"+Or,by="__reactResources$"+Or,jl="__reactMarker$"+Or,Ns="__reactLoad$"+Or;function ec(c){delete c[Ut],delete c[ln],delete c[pE],delete c[hE]}function Da(c){var v;if(v=c[Ut])return v;for(var E=c.parentNode;E;){if(v=E[ql]||E[Ut]){if(E=v.alternate,v.child!==null||E!==null&&E.child!==null)for(c=Dv(c);c!==null;){if(E=c[Ut])return E;c=Dv(c)}return v}c=E,E=c.parentNode}return null}function so(c){if(c=c[Ut]||c[ql]){var v=c.tag;if(v===5||v===6||v===13||v===31||v===26||v===27||v===3)return c}return null}function tl(c){var v=c.tag;if(v===5||v===26||v===27||v===6)return c.stateNode;throw Error(ve(33))}function qi(c){var v=c[by];return v||(v=c[by]={hoistableStyles:new Map,hoistableScripts:new Map}),v}function Mt(c){c[jl]=!0}function cb(c){c[Ns]=void 0}var fb=new Set,db={};function Wa(c,v){Ji(c,v),Ji(c+"Capture",v)}function Ji(c,v){db[c]=v;for(c=0;c<v.length;c++)fb.add(v[c])}var gE=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]*$"),xy={},wy={};function yE(c){if(Ad.call(wy,c))return!0;if(Ad.call(xy,c))return!1;if(gE.test(c))return wy[c]=!0;return xy[c]=!0,!1}var Qe=!1;function Sy(){var c=Qe;return Qe=!1,c}function rs(c,v,E){if(yE(v))if(E===null)c.removeAttribute(v);else{switch(typeof E){case"undefined":case"function":case"symbol":c.removeAttribute(v);return;case"boolean":var N=v.toLowerCase().slice(0,5);if(N!=="data-"&&N!=="aria-"){c.removeAttribute(v);return}}c.setAttribute(v,E)}}function Gu(c,v,E){if(E===null)c.removeAttribute(v);else{switch(typeof E){case"undefined":case"function":case"symbol":case"boolean":c.removeAttribute(v);return}c.setAttribute(v,E)}}function br(c,v,E,N){if(N===null)c.removeAttribute(E);else{switch(typeof N){case"undefined":case"function":case"symbol":case"boolean":c.removeAttribute(E);return}c.setAttributeNS(v,E,N)}}function dn(c){switch(typeof c){case"bigint":case"boolean":case"number":case"string":case"undefined":return c;case"object":return c;default:return""}}function mb(c){var v=c.type;return(c=c.nodeName)&&c.toLowerCase()==="input"&&(v==="checkbox"||v==="radio")}function vE(c,v,E){var N=Object.getOwnPropertyDescriptor(c.constructor.prototype,v);if(!c.hasOwnProperty(v)&&typeof N<"u"&&typeof N.get==="function"&&typeof N.set==="function"){var{get:D,set:H}=N;return Object.defineProperty(c,v,{configurable:!0,get:function(){return D.call(this)},set:function(q){E=""+q,H.call(this,q)}}),Object.defineProperty(c,v,{enumerable:N.enumerable}),{getValue:function(){return E},setValue:function(q){E=""+q},stopTracking:function(){c._valueTracker=null,delete c[v]}}}}function zd(c){if(!c._valueTracker){var v=mb(c)?"checked":"value";c._valueTracker=vE(c,v,""+c[v])}}function pb(c){if(!c)return!1;var v=c._valueTracker;if(!v)return!0;var E=v.getValue(),N="";return c&&(N=mb(c)?c.checked?"true":"false":c.value),c=N,c!==E?(v.setValue(c),!0):!1}var bE=/[\n"\\]/g;function An(c){return c.replace(bE,function(v){return"\\"+v.charCodeAt(0).toString(16)+" "})}function Rd(c,v,E,N,D,H,q,Y){if(c.name="",q!=null&&typeof q!=="function"&&typeof q!=="symbol"&&typeof q!=="boolean"?c.type=q:c.removeAttribute("type"),v!=null)if(q==="number"){if(v===0&&c.value===""||c.value!=v)c.value=""+dn(v)}else c.value!==""+dn(v)&&(c.value=""+dn(v));else q!=="submit"&&q!=="reset"||c.removeAttribute("value");v!=null?q==="number"&&c.value==v?Xf(c,dn(c.value)):Xf(c,dn(v)):E!=null?Xf(c,dn(E)):N!=null&&c.removeAttribute("value"),D==null&&H!=null&&(c.defaultChecked=!!H),D!=null&&(c.checked=D&&typeof D!=="function"&&typeof D!=="symbol"),Y!=null&&typeof Y!=="function"&&typeof Y!=="symbol"&&typeof Y!=="boolean"?c.name=""+dn(Y):c.removeAttribute("name")}function hb(c,v,E,N,D,H,q,Y){if(H!=null&&typeof H!=="function"&&typeof H!=="symbol"&&typeof H!=="boolean"&&(c.type=H),v!=null||E!=null){if(!(H!=="submit"&&H!=="reset"||v!==void 0&&v!==null)){zd(c);return}E=E!=null?""+dn(E):"",v=v!=null?""+dn(v):E,Y||v===c.value||(c.value=v),c.defaultValue=v}N=N!=null?N:D,N=typeof N!=="function"&&typeof N!=="symbol"&&!!N,c.checked=Y?c.checked:!!N,c.defaultChecked=!!N,q!=null&&typeof q!=="function"&&typeof q!=="symbol"&&typeof q!=="boolean"&&(c.name=q),zd(c)}function Xf(c,v){c.defaultValue!==""+v&&(c.defaultValue=""+v)}function ji(c,v,E,N){if(c=c.options,v){v={};for(var D=0;D<E.length;D++)v["$"+E[D]]=!0;for(E=0;E<c.length;E++)D=v.hasOwnProperty("$"+c[E].value),c[E].selected!==D&&(c[E].selected=D),D&&N&&(c[E].defaultSelected=!0)}else{E=""+dn(E),v=null;for(D=0;D<c.length;D++){if(c[D].value===E){c[D].selected=!0,N&&(c[D].defaultSelected=!0);return}v!==null||c[D].disabled||(v=c[D])}v!==null&&(v.selected=!0)}}function gb(c,v,E){if(v!=null&&(v=""+dn(v),v!==c.value&&(c.value=v),E==null)){c.defaultValue!==v&&(c.defaultValue=v);return}c.defaultValue=E!=null?""+dn(E):""}function yb(c,v,E,N){if(v==null){if(N!=null){if(E!=null)throw Error(ve(92));if(el(N)){if(1<N.length)throw Error(ve(93));N=N[0]}E=N}E==null&&(E=""),v=E}E=dn(v),c.defaultValue=E,N=c.textContent,N===E&&N!==""&&N!==null&&(c.value=N),zd(c)}function Wi(c,v){if(v){var E=c.firstChild;if(E&&E===c.lastChild&&E.nodeType===3){E.nodeValue=v;return}}c.textContent=v}var xE=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 ky(c,v,E){var N=v.indexOf("--")===0;E==null||typeof E==="boolean"||E===""?N?c.setProperty(v,""):v==="float"?c.cssFloat="":c[v]="":N?c.setProperty(v,E):typeof E!=="number"||E===0||xE.has(v)?v==="float"?c.cssFloat=E:c[v]=(""+E).trim():c[v]=E+"px"}function vb(c,v,E){if(v!=null&&typeof v!=="object")throw Error(ve(62));if(c=c.style,E!=null){for(var N in E)!E.hasOwnProperty(N)||v!=null&&v.hasOwnProperty(N)||(N.indexOf("--")===0?c.setProperty(N,""):N==="float"?c.cssFloat="":c[N]="",Qe=!0);for(var D in v)N=v[D],v.hasOwnProperty(D)&&E[D]!==N&&(ky(c,D,N),Qe=!0)}else for(var H in v)v.hasOwnProperty(H)&&ky(c,H,v[H])}function Lm(c){if(c.indexOf("-")===-1)return!1;switch(c){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 wE=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"],["maskType","mask-type"],["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"]]),SE=/^[\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 as(c){return SE.test(""+c)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":c}function tr(){}var Od=null;function Um(c){return c=c.target||c.srcElement||window,c.correspondingUseElement&&(c=c.correspondingUseElement),c.nodeType===3?c.parentNode:c}var Oi=null,Yi=null;function Ey(c){var v=so(c);if(v&&(c=v.stateNode)){var E=c[ln]||null;e:switch(c=v.stateNode,v.type){case"input":if(Rd(c,E.value,E.defaultValue,E.defaultValue,E.checked,E.defaultChecked,E.type,E.name),v=E.name,E.type==="radio"&&v!=null){for(E=c;E.parentNode;)E=E.parentNode;E=E.querySelectorAll('input[name="'+An(""+v)+'"][type="radio"]');for(v=0;v<E.length;v++){var N=E[v];if(N!==c&&N.form===c.form){var D=N[ln]||null;if(!D)throw Error(ve(90));Rd(N,D.value,D.defaultValue,D.defaultValue,D.checked,D.defaultChecked,D.type,D.name)}}for(v=0;v<E.length;v++)N=E[v],N.form===c.form&&pb(N)}break e;case"textarea":gb(c,E.value,E.defaultValue);break e;case"select":v=E.value,v!=null&&ji(c,!!E.multiple,v,!1)}}}var Ff=!1;function bb(c,v,E){if(Ff)return c(v,E);Ff=!0;try{var N=c(v);return N}finally{if(Ff=!1,Oi!==null||Yi!==null){if(pc(),Oi&&(v=Oi,c=Yi,Yi=Oi=null,Ey(v),c))for(v=0;v<c.length;v++)Ey(c[v])}}}function Sl(c,v){var E=c.stateNode;if(E===null)return null;var N=E[ln]||null;if(N===null)return null;E=N[v];e:switch(v){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(N=!N.disabled)||(c=c.type,N=!(c==="button"||c==="input"||c==="select"||c==="textarea")),c=!N;break e;default:c=!1}if(c)return null;if(E&&typeof E!=="function")throw Error(ve(231,v,typeof E));return E}var Tr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Md=!1;if(Tr)try{Oa={},Object.defineProperty(Oa,"passive",{get:function(){Md=!0}}),window.addEventListener("test",Oa,Oa),window.removeEventListener("test",Oa,Oa)}catch(c){Md=!1}var Oa,Zr=null,Hm=null,is=null;function xb(){if(is)return is;var c,v=Hm,E=v.length,N,D="value"in Zr?Zr.value:Zr.textContent,H=D.length;for(c=0;c<E&&v[c]===D[c];c++);var q=E-c;for(N=1;N<=q&&v[E-N]===D[H-N];N++);return is=D.slice(c,1<N?1-N:void 0)}function os(c){var v=c.keyCode;return"charCode"in c?(c=c.charCode,c===0&&v===13&&(c=13)):c=v,c===10&&(c=13),32<=c||c===13?c:0}function Pu(){return!0}function Ty(){return!1}function Wt(c){function v(E,N,D,H,q){this._reactName=E,this._targetInst=D,this.type=N,this.nativeEvent=H,this.target=q,this.currentTarget=null;for(var Y in c)c.hasOwnProperty(Y)&&(E=c[Y],this[Y]=E?E(H):H[Y]);return this.isDefaultPrevented=(H.defaultPrevented!=null?H.defaultPrevented:H.returnValue===!1)?Pu:Ty,this.isPropagationStopped=Ty,this}return at(v.prototype,{preventDefault:function(){this.defaultPrevented=!0;var E=this.nativeEvent;E&&(E.preventDefault?E.preventDefault():typeof E.returnValue!=="unknown"&&(E.returnValue=!1),this.isDefaultPrevented=Pu)},stopPropagation:function(){var E=this.nativeEvent;E&&(E.stopPropagation?E.stopPropagation():typeof E.cancelBubble!=="unknown"&&(E.cancelBubble=!0),this.isPropagationStopped=Pu)},persist:function(){},isPersistent:Pu}),v}var ma={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(c){return c.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tc=Wt(ma),Yl=at({},ma,{view:0,detail:0}),kE=Wt(Yl),Zf,Kf,Zo,nc=at({},Yl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bm,button:0,buttons:0,relatedTarget:function(c){return c.relatedTarget===void 0?c.fromElement===c.srcElement?c.toElement:c.fromElement:c.relatedTarget},movementX:function(c){if("movementX"in c)return c.movementX;return c!==Zo&&(Zo&&c.type==="mousemove"?(Zf=c.screenX-Zo.screenX,Kf=c.screenY-Zo.screenY):Kf=Zf=0,Zo=c),Zf},movementY:function(c){return"movementY"in c?c.movementY:Kf}}),Cy=Wt(nc),EE=at({},nc,{dataTransfer:0}),TE=Wt(EE),CE=at({},Yl,{relatedTarget:0}),Jf=Wt(CE),NE=at({},ma,{animationName:0,elapsedTime:0,pseudoElement:0}),AE=Wt(NE),zE=at({},ma,{clipboardData:function(c){return"clipboardData"in c?c.clipboardData:window.clipboardData}}),RE=Wt(zE),OE=at({},ma,{data:0}),Ny=Wt(OE),ME={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_E={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"},DE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function LE(c){var v=this.nativeEvent;return v.getModifierState?v.getModifierState(c):(c=DE[c])?!!v[c]:!1}function Bm(){return LE}var UE=at({},Yl,{key:function(c){if(c.key){var v=ME[c.key]||c.key;if(v!=="Unidentified")return v}return c.type==="keypress"?(c=os(c),c===13?"Enter":String.fromCharCode(c)):c.type==="keydown"||c.type==="keyup"?_E[c.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bm,charCode:function(c){return c.type==="keypress"?os(c):0},keyCode:function(c){return c.type==="keydown"||c.type==="keyup"?c.keyCode:0},which:function(c){return c.type==="keypress"?os(c):c.type==="keydown"||c.type==="keyup"?c.keyCode:0}}),HE=Wt(UE),BE=at({},nc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ay=Wt(BE),VE=at({},ma,{submitter:0}),qE=Wt(VE),jE=at({},Yl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bm}),YE=Wt(jE),IE=at({},ma,{propertyName:0,elapsedTime:0,pseudoElement:0}),GE=Wt(IE),PE=at({},nc,{deltaX:function(c){return"deltaX"in c?c.deltaX:("wheelDeltaX"in c)?-c.wheelDeltaX:0},deltaY:function(c){return"deltaY"in c?c.deltaY:("wheelDeltaY"in c)?-c.wheelDeltaY:("wheelDelta"in c)?-c.wheelDelta:0},deltaZ:0,deltaMode:0}),QE=Wt(PE),XE=at({},ma,{newState:0,oldState:0,source:0}),FE=Wt(XE),ZE=[9,13,27,32],Vm=Tr&&"CompositionEvent"in window,ul=null;Tr&&"documentMode"in document&&(ul=document.documentMode);var KE=Tr&&"TextEvent"in window&&!ul,wb=Tr&&(!Vm||ul&&8<ul&&11>=ul),zy=String.fromCharCode(32),Ry=!1;function Sb(c,v){switch(c){case"keyup":return ZE.indexOf(v.keyCode)!==-1;case"keydown":return v.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kb(c){return c=c.detail,typeof c==="object"&&"data"in c?c.data:null}var Mi=!1;function JE(c,v){switch(c){case"compositionend":return kb(v);case"keypress":if(v.which!==32)return null;return Ry=!0,zy;case"textInput":return c=v.data,c===zy&&Ry?null:c;default:return null}}function WE(c,v){if(Mi)return c==="compositionend"||!Vm&&Sb(c,v)?(c=xb(),is=Hm=Zr=null,Mi=!1,c):null;switch(c){case"paste":return null;case"keypress":if(!(v.ctrlKey||v.altKey||v.metaKey)||v.ctrlKey&&v.altKey){if(v.char&&1<v.char.length)return v.char;if(v.which)return String.fromCharCode(v.which)}return null;case"compositionend":return wb&&v.locale!=="ko"?null:v.data;default:return null}}var $E={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 Oy(c){var v=c&&c.nodeName&&c.nodeName.toLowerCase();return v==="input"?!!$E[c.type]:v==="textarea"?!0:!1}function Eb(c,v,E,N){Oi?Yi?Yi.push(N):Yi=[N]:Oi=N,v=Zs(v,"onChange"),0<v.length&&(E=new tc("onChange","change",null,E,N),c.push({event:E,listeners:v}))}var sl=null,kl=null;function eT(c){g1(c,0)}function rc(c){var v=tl(c);if(pb(v))return c}function My(c,v){if(c==="change")return v}var Tb=!1;if(Tr){if(Tr){if(rl="oninput"in document,!rl)ls=document.createElement("div"),ls.setAttribute("oninput","return;"),rl=typeof ls.oninput==="function";nl=rl}else nl=!1;Tb=nl&&(!document.documentMode||9<document.documentMode)}var nl,rl,ls;function _y(){sl&&(sl.detachEvent("onpropertychange",Cb),kl=sl=null)}function Cb(c){if(c.propertyName==="value"&&rc(kl)){var v=[];Eb(v,kl,c,Um(c)),bb(eT,v)}}function tT(c,v,E){c==="focusin"?(_y(),sl=v,kl=E,sl.attachEvent("onpropertychange",Cb)):c==="focusout"&&_y()}function nT(c){if(c==="selectionchange"||c==="keyup"||c==="keydown")return rc(kl)}function rT(c,v){if(c==="click")return rc(v)}function aT(c,v){if(c==="input"||c==="change")return rc(v)}function iT(c,v){return c===v&&(c!==0||1/c===1/v)||c!==c&&v!==v}var bn=typeof Object.is==="function"?Object.is:iT;function El(c,v){if(bn(c,v))return!0;if(typeof c!=="object"||c===null||typeof v!=="object"||v===null)return!1;var E=Object.keys(c),N=Object.keys(v);if(E.length!==N.length)return!1;for(N=0;N<E.length;N++){var D=E[N];if(!Ad.call(v,D)||!bn(c[D],v[D]))return!1}return!0}function _d(c){if(c=c||(typeof document<"u"?document:void 0),typeof c>"u")return null;try{return c.activeElement||c.body}catch(v){return c.body}}function Dy(c){for(;c&&c.firstChild;)c=c.firstChild;return c}function Ly(c,v){var E=Dy(c);c=0;for(var N;E;){if(E.nodeType===3){if(N=c+E.textContent.length,c<=v&&N>=v)return{node:E,offset:v-c};c=N}e:{for(;E;){if(E.nextSibling){E=E.nextSibling;break e}E=E.parentNode}E=void 0}E=Dy(E)}}function Nb(c,v){return c&&v?c===v?!0:c&&c.nodeType===3?!1:v&&v.nodeType===3?Nb(c,v.parentNode):("contains"in c)?c.contains(v):c.compareDocumentPosition?!!(c.compareDocumentPosition(v)&16):!1:!1}function Ab(c){c=c!=null&&c.ownerDocument!=null&&c.ownerDocument.defaultView!=null?c.ownerDocument.defaultView:window;for(var v=_d(c.document);v instanceof c.HTMLIFrameElement;){try{var E=typeof v.contentWindow.location.href==="string"}catch(N){E=!1}if(E)c=v.contentWindow;else break;v=_d(c.document)}return v}function qm(c){var v=c&&c.nodeName&&c.nodeName.toLowerCase();return v&&(v==="input"&&(c.type==="text"||c.type==="search"||c.type==="tel"||c.type==="url"||c.type==="password")||v==="textarea"||c.contentEditable==="true")}var oT=Tr&&"documentMode"in document&&11>=document.documentMode,_i=null,Dd=null,cl=null,Ld=!1;function Uy(c,v,E){var N=E.window===E?E.document:E.nodeType===9?E:E.ownerDocument;Ld||_i==null||_i!==_d(N)||(N=_i,("selectionStart"in N)&&qm(N)?N={start:N.selectionStart,end:N.selectionEnd}:(N=(N.ownerDocument&&N.ownerDocument.defaultView||window).getSelection(),N={anchorNode:N.anchorNode,anchorOffset:N.anchorOffset,focusNode:N.focusNode,focusOffset:N.focusOffset}),cl&&El(cl,N)||(cl=N,N=Zs(Dd,"onSelect"),0<N.length&&(v=new tc("onSelect","select",null,v,E),c.push({event:v,listeners:N}),v.target=_i)))}function Aa(c,v){var E={};return E[c.toLowerCase()]=v.toLowerCase(),E["Webkit"+c]="webkit"+v,E["Moz"+c]="moz"+v,E}var Di={animationend:Aa("Animation","AnimationEnd"),animationiteration:Aa("Animation","AnimationIteration"),animationstart:Aa("Animation","AnimationStart"),transitionrun:Aa("Transition","TransitionRun"),transitionstart:Aa("Transition","TransitionStart"),transitioncancel:Aa("Transition","TransitionCancel"),transitionend:Aa("Transition","TransitionEnd")},Wf={},zb={};Tr&&(zb=document.createElement("div").style,("AnimationEvent"in window)||(delete Di.animationend.animation,delete Di.animationiteration.animation,delete Di.animationstart.animation),("TransitionEvent"in window)||delete Di.transitionend.transition);function $a(c){if(Wf[c])return Wf[c];if(!Di[c])return c;var v=Di[c],E;for(E in v)if(v.hasOwnProperty(E)&&E in zb)return Wf[c]=v[E];return c}var Rb=$a("animationend"),Ob=$a("animationiteration"),Mb=$a("animationstart"),lT=$a("transitionrun"),uT=$a("transitionstart"),sT=$a("transitioncancel"),_b=$a("transitionend"),Db=new Map,Ud="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Ud.push("scrollEnd");function Gn(c,v){Db.set(c,v),Wa(v,[c])}var cT=0;function Cr(c,v){if(c.name!=null&&c.name!=="auto")return c.name;if(v.autoName!==null)return v.autoName;c=In.identifierPrefix;var E=cT++;return c="_"+c+"t_"+E.toString(32)+"_",v.autoName=c}function Hy(c){if(c==null||typeof c==="string")return c;var v=null,E=Zi;if(E!==null)for(var N=0;N<E.length;N++){var D=c[E[N]];if(D!=null){if(D==="none")return"none";v=v==null?D:v+(" "+D)}}return v==null?c.default:v}function Mr(c,v){return c=Hy(c),v=Hy(v),v==null?c==="auto"?null:c:v==="auto"?null:v}var As=typeof reportError==="function"?reportError:function(c){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var v=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof c==="object"&&c!==null&&typeof c.message==="string"?String(c.message):String(c),error:c});if(!window.dispatchEvent(v))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",c);return}console.error(c)},Tn=[],Li=0,jm=0;function ac(){for(var c=Li,v=jm=Li=0;v<c;){var E=Tn[v];Tn[v++]=null;var N=Tn[v];Tn[v++]=null;var D=Tn[v];Tn[v++]=null;var H=Tn[v];if(Tn[v++]=null,N!==null&&D!==null){var q=N.pending;q===null?D.next=D:(D.next=q.next,q.next=D),N.pending=D}H!==0&&Lb(E,D,H)}}function ic(c,v,E,N){Tn[Li++]=c,Tn[Li++]=v,Tn[Li++]=E,Tn[Li++]=N,jm|=N,c.lanes|=N,c=c.alternate,c!==null&&(c.lanes|=N)}function Ym(c,v,E,N){return ic(c,v,E,N),zs(c)}function ei(c,v){return ic(c,null,null,v),zs(c)}function Lb(c,v,E){c.lanes|=E;var N=c.alternate;N!==null&&(N.lanes|=E);for(var D=!1,H=c.return;H!==null;)H.childLanes|=E,N=H.alternate,N!==null&&(N.childLanes|=E),H.tag===22&&(c=H.stateNode,c===null||c._visibility&1||(D=!0)),c=H,H=H.return;return c.tag===3?(H=c.stateNode,D&&v!==null&&(D=31-vn(E),c=H.hiddenUpdates,N=c[D],N===null?c[D]=[v]:N.push(v),v.lane=E|536870912),H):null}function zs(c){if(50<xl)throw xl=0,ys=null,Error(ve(185));for(var v=c.return;v!==null;)c=v,v=c.return;return c.tag===3?c.stateNode:null}var Ui={};function fT(c,v,E,N){this.tag=c,this.key=E,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=v,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=N,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rn(c,v,E,N){return new fT(c,v,E,N)}function Im(c){return c=c.prototype,!(!c||!c.isReactComponent)}function kr(c,v){var E=c.alternate;return E===null?(E=rn(c.tag,v,c.key,c.mode),E.elementType=c.elementType,E.type=c.type,E.stateNode=c.stateNode,E.alternate=c,c.alternate=E):(E.pendingProps=v,E.type=c.type,E.flags=0,E.subtreeFlags=0,E.deletions=null),E.flags=c.flags&1206910976,E.childLanes=c.childLanes,E.lanes=c.lanes,E.child=c.child,E.memoizedProps=c.memoizedProps,E.memoizedState=c.memoizedState,E.updateQueue=c.updateQueue,v=c.dependencies,E.dependencies=v===null?null:{lanes:v.lanes,firstContext:v.firstContext},E.sibling=c.sibling,E.index=c.index,E.ref=c.ref,E.refCleanup=c.refCleanup,E}function Ub(c,v){c.flags&=1206910978;var E=c.alternate;return E===null?(c.childLanes=0,c.lanes=v,c.child=null,c.subtreeFlags=0,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null,c.stateNode=null):(c.childLanes=E.childLanes,c.lanes=E.lanes,c.child=E.child,c.subtreeFlags=0,c.deletions=null,c.memoizedProps=E.memoizedProps,c.memoizedState=E.memoizedState,c.updateQueue=E.updateQueue,c.type=E.type,v=E.dependencies,c.dependencies=v===null?null:{lanes:v.lanes,firstContext:v.firstContext}),c}function us(c,v,E,N,D,H){var q=0;if(N=c,typeof N==="function")Im(N)&&(q=1);else if(typeof N==="string")q=qC(c,E,ar.current)?26:c==="html"||c==="head"||c==="body"?27:5;else e:switch(N){case kd:return c=rn(31,E,v,D),c.elementType=kd,c.lanes=H,c;case zi:return Ha(E.children,D,H,v);case Wv:q=8,D|=24;break;case xd:return c=rn(12,E,v,D|2),c.elementType=xd,c.lanes=H,c;case wd:return c=rn(13,E,v,D),c.elementType=wd,c.lanes=H,c;case Sd:return c=rn(19,E,v,D),c.elementType=Sd,c.lanes=H,c;case W2:case Ed:return c=D|32,c=rn(30,E,v,c),c.elementType=Ed,c.lanes=H,c.stateNode={autoName:null,paired:null,clones:null,ref:null},c;default:if(typeof N==="object"&&N!==null)switch(N.$$typeof){case er:q=10;break e;case $v:q=9;break e;case Om:q=11;break e;case Mm:q=14;break e;case Pr:q=16,N=null;break e}q=29,E=Error(ve(130,c===null?"null":typeof c,"")),N=null}return v=rn(q,E,v,D),v.elementType=c,v.type=N,v.lanes=H,v}function Ha(c,v,E,N){return c=rn(7,c,N,v),c.lanes=E,c}function $f(c,v,E){return c=rn(6,c,null,v),c.lanes=E,c}function Hb(c){var v=rn(18,null,null,0);return v.stateNode=c,v}function ed(c,v,E){return v=rn(4,c.children!==null?c.children:[],c.key,v),v.lanes=E,v.stateNode={containerInfo:c.containerInfo,pendingChildren:null,implementation:c.implementation},v}var By=new WeakMap;function zn(c,v){if(typeof c==="object"&&c!==null){var E=By.get(c);if(E!==void 0)return E;return v={value:c,source:v,stack:gy(v)},By.set(c,v),v}return{value:c,source:v,stack:gy(v)}}var Hi=[],Bi=0,Rs=null,Tl=0,Cn=[],Nn=0,ua=null,nr=1,rr="";function wr(c,v){Hi[Bi++]=Tl,Hi[Bi++]=Rs,Rs=c,Tl=v}function Bb(c,v,E){Cn[Nn++]=nr,Cn[Nn++]=rr,Cn[Nn++]=ua,ua=c;var N=nr;c=rr;var D=32-vn(N)-1;N&=~(1<<D),E+=1;var H=32-vn(v)+D;if(30<H){var q=D-D%5;H=(N&(1<<q)-1).toString(32),N>>=q,D-=q,nr=1<<32-vn(v)+D|E<<D|N,rr=H+c}else nr=1<<H|E<<D|N,rr=c}function oc(c){c.return!==null&&(wr(c,1),Bb(c,1,0))}function Gm(c){for(;c===Rs;)Rs=Hi[--Bi],Hi[Bi]=null,Tl=Hi[--Bi],Hi[Bi]=null;for(;c===ua;)ua=Cn[--Nn],Cn[Nn]=null,rr=Cn[--Nn],Cn[Nn]=null,nr=Cn[--Nn],Cn[Nn]=null}function Vb(c,v){Cn[Nn++]=nr,Cn[Nn++]=rr,Cn[Nn++]=ua,nr=v.id,rr=v.overflow,ua=c}var _t=null,st=null,Ve=!1,ta=null,Rn=!1,Hd=Error(ve(519));function sa(c){var v=Error(ve(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Cl(zn(v,c)),Hd}function Vy(c){var{stateNode:v,type:E,memoizedProps:N}=c;switch(v[Ut]=c,v[ln]=N,E){case"dialog":je("cancel",v),je("close",v);break;case"iframe":case"object":case"embed":je("load",v);break;case"video":case"audio":for(E=0;E<Rl.length;E++)je(Rl[E],v);break;case"source":je("error",v);break;case"img":case"image":case"link":je("error",v),je("load",v);break;case"details":je("toggle",v);break;case"input":je("invalid",v),hb(v,N.value,N.defaultValue,N.checked,N.defaultChecked,N.type,N.name,!0);break;case"select":je("invalid",v);break;case"textarea":je("invalid",v),yb(v,N.value,N.defaultValue,N.children)}E=N.children,typeof E!=="string"&&typeof E!=="number"&&typeof E!=="bigint"||v.textContent===""+E||N.suppressHydrationWarning===!0||b1(v.textContent,E)?(N.popover!=null&&(je("beforetoggle",v),je("toggle",v)),N.onScroll!=null&&je("scroll",v),N.onScrollEnd!=null&&je("scrollend",v),N.onClick!=null&&(v.onclick=tr),v=!0):v=!1,v||sa(c,!0)}function Os(c){for(_t=c.return;_t;)switch(_t.tag){case 5:case 31:case 13:Rn=!1;return;case 27:case 3:Rn=!0;return;default:_t=_t.return}}function Si(c){if(c!==_t)return!1;if(!Ve)return Os(c),Ve=!0,!1;var v=c.tag,E;if(E=v!==3&&v!==27){if(E=v===5)E=c.type,E=!(E!=="form"&&E!=="button")||km(c.type,c.memoizedProps);E=!E}if(E&&st&&sa(c),Os(c),v===13){if(c=c.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(ve(317));st=_v(c)}else if(v===31){if(c=c.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(ve(317));st=_v(c)}else v===27?(v=st,pa(c.type)?(c=Nm,Nm=null,st=c):st=v):st=_t?Mn(c.stateNode.nextSibling):null;return!0}function Ia(){st=_t=null,Ve=!1}function td(){var c=ta;return c!==null&&(tn===null?tn=c:tn.push.apply(tn,c),ta=null),c}function Cl(c){ta===null?ta=[c]:ta.push(c)}var Bd=lr(null),ti=null,Sr=null;function Kr(c,v,E){ct(Bd,v._currentValue),v._currentValue=E}function Er(c){c._currentValue=Bd.current,Bt(Bd)}function ss(c,v,E){for(;c!==null;){var N=c.alternate;if((c.childLanes&v)!==v?(c.childLanes|=v,N!==null&&(N.childLanes|=v)):N!==null&&(N.childLanes&v)!==v&&(N.childLanes|=v),c===E)break;c=c.return}}function Vd(c,v,E,N){var D=c.child;D!==null&&(D.return=c);for(;D!==null;){var H=D.dependencies;if(H!==null){var q=D.child;H=H.firstContext;e:for(;H!==null;){var Y=H;H=D;for(var I=0;I<v.length;I++)if(Y.context===v[I]){H.lanes|=E,Y=H.alternate,Y!==null&&(Y.lanes|=E),ss(H.return,E,c),N||(q=null);break e}H=Y.next}}else if(D.tag===18){if(q=D.return,q===null)throw Error(ve(341));q.lanes|=E,H=q.alternate,H!==null&&(H.lanes|=E),ss(q,E,c),q=null}else D.tag===13&&D.memoizedState!==null&&D.memoizedState.dehydrated===null?(D.lanes|=E,q=D.alternate,q!==null&&(q.lanes|=E),ss(D.return,E,c),q=D.child,q=q!==null?q.sibling:null):q=D.child;if(q!==null)q.return=D;else for(q=D;q!==null;){if(q===c){q=null;break}if(D=q.sibling,D!==null){D.return=q.return,q=D;break}q=q.return}D=q}}function Ga(c,v,E,N){c=null;for(var D=v,H=!1;D!==null;){if(!H){if((D.flags&524288)!==0)H=!0;else if((D.flags&262144)!==0)break}if(D.tag===10){var q=D.alternate;if(q===null)throw Error(ve(387));if(q=q.memoizedProps,q!==null){var Y=D.type;bn(D.pendingProps.value,q.value)||(c!==null?c.push(Y):c=[Y])}}else if(D===ks.current){if(q=D.alternate,q===null)throw Error(ve(387));q.memoizedState.memoizedState!==D.memoizedState.memoizedState&&(c!==null?c.push(oo):c=[oo])}D=D.return}return c!==null&&Vd(v,c,E,N),v.flags|=262144,c!==null}function Ms(c){for(c=c.firstContext;c!==null;){if(!bn(c.context._currentValue,c.memoizedValue))return!0;c=c.next}return!1}function Pa(c){ti=c,Sr=null,c=c.dependencies,c!==null&&(c.firstContext=null)}function Ht(c){return qb(ti,c)}function Qu(c,v){return ti===null&&Pa(c),qb(c,v)}function qb(c,v){var E=v._currentValue;if(v={context:v,memoizedValue:E,next:null},Sr===null){if(c===null)throw Error(ve(308));Sr=v,c.dependencies={lanes:0,firstContext:v},c.flags|=524288}else Sr=Sr.next=v;return E}var dT=typeof AbortController<"u"?AbortController:function(){var c=[],v=this.signal={aborted:!1,addEventListener:function(E,N){c.push(N)}};this.abort=function(){v.aborted=!0,c.forEach(function(E){return E()})}},mT=Na,pT=Ca,kt={$$typeof:er,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Pm(){return{controller:new dT,data:new Map,refCount:0}}function Il(c){c.refCount--,c.refCount===0&&mT(pT,function(){c.controller.abort()})}function qy(c,v){if((c.pendingLanes&4194048)!==0){var E=c.transitionTypes;E===null&&(E=c.transitionTypes=[]);for(c=0;c<v.length;c++){var N=v[c];E.indexOf(N)===-1&&E.push(N)}}}var al=null;function hT(c){var v=c.transitionTypes;return c.transitionTypes=null,v}var fl=null,qd=0,Qa=0,Ii=null;function gT(c,v){if(fl===null){var E=fl=[];qd=0,Qa=bp(),Ii={status:"pending",value:void 0,then:function(N){E.push(N)}}}return qd++,v.then(jy,jy),v}function jy(){if(--qd===0&&(al=null,fl!==null)){Ii!==null&&(Ii.status="fulfilled");var c=fl;fl=null,Qa=0,Ii=null;for(var v=0;v<c.length;v++)(0,c[v])()}}function yT(c,v){var E=[],N={status:"pending",value:null,reason:null,then:function(D){E.push(D)}};return c.then(function(){N.status="fulfilled",N.value=v;for(var D=0;D<E.length;D++)(0,E[D])(v)},function(D){N.status="rejected",N.reason=D;for(D=0;D<E.length;D++)(0,E[D])(void 0)}),N}var Yy=De.S;De.S=function(c,v){if(t1=gn(),typeof v==="object"&&v!==null&&typeof v.then==="function"&&gT(c,v),al!==null)for(var E=ro;E!==null;)qy(E,al),E=E.next;if(E=c.types,E!==null){for(var N=ro;N!==null;)qy(N,E),N=N.next;if(Qa!==0){N=al,N===null&&(N=al=[]);for(var D=0;D<E.length;D++){var H=E[D];N.indexOf(H)===-1&&N.push(H)}}}Yy!==null&&Yy(c,v)};var Ba=lr(null);function Qm(){var c=Ba.current;return c!==null?c:rt.pooledCache}function cs(c,v){v===null?ct(Ba,Ba.current):ct(Ba,v.pool)}function jb(){var c=Qm();return c===null?null:{parent:kt._currentValue,pool:c}}var co=Error(ve(460)),Xm=Error(ve(474)),lc=Error(ve(542)),_s={then:function(){}};function Iy(c){return c=c.status,c==="fulfilled"||c==="rejected"}function Yb(c,v,E){switch(E=c[E],E===void 0?c.push(v):E!==v&&(v.then(tr,tr),v=E),v.status){case"fulfilled":return v.value;case"rejected":if(c=v.reason,Py(c),c===void 0&&!("reason"in v))throw Error(ve(600));throw c;default:if(typeof v.status==="string")v.then(tr,tr);else{if(c=rt,c!==null&&100<c.shellSuspendCounter)throw Error(ve(482));c=v,c.status="pending",c.then(function(N){if(v.status==="pending"){var D=v;D.status="fulfilled",D.value=N}},function(N){if(v.status==="pending"){var D=v;D.status="rejected",D.reason=N}})}switch(v.status){case"fulfilled":return v.value;case"rejected":throw c=v.reason,Py(c),c}throw Va=v,co}}function Ma(c){try{var v=c._init;return v(c._payload)}catch(E){if(E!==null&&typeof E==="object"&&typeof E.then==="function")throw Va=E,co;throw E}}var Va=null;function Gy(){if(Va===null)throw Error(ve(459));var c=Va;return Va=null,c}function Py(c){if(c===co||c===lc)throw Error(ve(483))}var Gi=null,Nl=0;function Xu(c){var v=Nl;return Nl+=1,Gi===null&&(Gi=[]),Yb(Gi,c,v)}function Yr(c,v){v=v.props.ref,c.ref=v!==void 0?v:null}function Fu(c,v){if(v.$$typeof===J2)throw Error(ve(525));throw c=Object.prototype.toString.call(v),Error(ve(31,c==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":c))}function Ib(c){function v(re,oe){if(c){var le=re.deletions;le===null?(re.deletions=[oe],re.flags|=16):le.push(oe)}}function E(re,oe){if(!c)return null;for(;oe!==null;)v(re,oe),oe=oe.sibling;return null}function N(re){for(var oe=new Map;re!==null;)re.key===null?oe.set(re.index,re):oe.set(re.key,re),re=re.sibling;return oe}function D(re,oe){return re=kr(re,oe),re.index=0,re.sibling=null,re}function H(re,oe,le){if(re.index=le,!c)return re.flags|=1048576,oe;if(le=re.alternate,le!==null)return le=le.index,le<oe?(re.flags|=2,oe):le;return re.flags|=134217730,oe}function q(re){return c&&re.alternate===null&&(re.flags|=134217730),re}function Y(re,oe,le,pe){if(oe===null||oe.tag!==6)return oe=$f(le,re.mode,pe),oe.return=re,oe;return oe=D(oe,le),oe.return=re,oe}function I(re,oe,le,pe){var ye=le.type;if(ye===zi)return re=F(re,oe,le.props.children,pe,le.key),Yr(re,le),re;if(oe!==null&&(oe.elementType===ye||typeof ye==="object"&&ye!==null&&ye.$$typeof===Pr&&Ma(ye)===oe.type))return oe=D(oe,le.props),Yr(oe,le),oe.return=re,oe;return oe=us(le.type,le.key,le.props,null,re.mode,pe),Yr(oe,le),oe.return=re,oe}function Q(re,oe,le,pe){if(oe===null||oe.tag!==4||oe.stateNode.containerInfo!==le.containerInfo||oe.stateNode.implementation!==le.implementation)return oe=ed(le,re.mode,pe),oe.return=re,oe;return oe=D(oe,le.children||[]),oe.return=re,oe}function F(re,oe,le,pe,ye){if(oe===null||oe.tag!==7)return oe=Ha(le,re.mode,pe,ye),oe.return=re,oe;return oe=D(oe,le),oe.return=re,oe}function ee(re,oe,le){if(typeof oe==="string"&&oe!==""||typeof oe==="number"||typeof oe==="bigint")return oe=$f(""+oe,re.mode,le),oe.return=re,oe;if(typeof oe==="object"&&oe!==null){switch(oe.$$typeof){case qu:return le=us(oe.type,oe.key,oe.props,null,re.mode,le),Yr(le,oe),le.return=re,le;case $o:return oe=ed(oe,re.mode,le),oe.return=re,oe;case Pr:return oe=Ma(oe),ee(re,oe,le)}if(el(oe)||Fo(oe))return oe=Ha(oe,re.mode,le,null),oe.return=re,oe;if(typeof oe.then==="function")return ee(re,Xu(oe),le);if(oe.$$typeof===er)return ee(re,Qu(re,oe),le);Fu(re,oe)}return null}function te(re,oe,le,pe){var ye=oe!==null?oe.key:null;if(typeof le==="string"&&le!==""||typeof le==="number"||typeof le==="bigint")return ye!==null?null:Y(re,oe,""+le,pe);if(typeof le==="object"&&le!==null){switch(le.$$typeof){case qu:return le.key===ye?I(re,oe,le,pe):null;case $o:return le.key===ye?Q(re,oe,le,pe):null;case Pr:return le=Ma(le),te(re,oe,le,pe)}if(el(le)||Fo(le))return ye!==null?null:F(re,oe,le,pe,null);if(typeof le.then==="function")return te(re,oe,Xu(le),pe);if(le.$$typeof===er)return te(re,oe,Qu(re,le),pe);Fu(re,le)}return null}function ne(re,oe,le,pe,ye){if(typeof pe==="string"&&pe!==""||typeof pe==="number"||typeof pe==="bigint")return re=re.get(le)||null,Y(oe,re,""+pe,ye);if(typeof pe==="object"&&pe!==null){switch(pe.$$typeof){case qu:return re=re.get(pe.key===null?le:pe.key)||null,I(oe,re,pe,ye);case $o:return re=re.get(pe.key===null?le:pe.key)||null,Q(oe,re,pe,ye);case Pr:return pe=Ma(pe),ne(re,oe,le,pe,ye)}if(el(pe)||Fo(pe))return re=re.get(le)||null,F(oe,re,pe,ye,null);if(typeof pe.then==="function")return ne(re,oe,le,Xu(pe),ye);if(pe.$$typeof===er)return ne(re,oe,le,Qu(oe,pe),ye);Fu(oe,pe)}return null}function ie(re,oe,le,pe){for(var ye=null,he=null,ge=oe,xe=oe=0,ze=null;ge!==null&&xe<le.length;xe++){ge.index>xe?(ze=ge,ge=null):ze=ge.sibling;var ue=te(re,ge,le[xe],pe);if(ue===null){ge===null&&(ge=ze);break}c&&ge&&ue.alternate===null&&v(re,ge),oe=H(ue,oe,xe),he===null?ye=ue:he.sibling=ue,he=ue,ge=ze}if(xe===le.length)return E(re,ge),Ve&&wr(re,xe),ye;if(ge===null){for(;xe<le.length;xe++)ge=ee(re,le[xe],pe),ge!==null&&(oe=H(ge,oe,xe),he===null?ye=ge:he.sibling=ge,he=ge);return Ve&&wr(re,xe),ye}for(ge=N(ge);xe<le.length;xe++)ze=ne(ge,re,xe,le[xe],pe),ze!==null&&(c&&(ue=ze.alternate,ue!==null&&ge.delete(ue.key===null?xe:ue.key)),oe=H(ze,oe,xe),he===null?ye=ze:he.sibling=ze,he=ze);return c&&ge.forEach(function(Re){return v(re,Re)}),Ve&&wr(re,xe),ye}function ce(re,oe,le,pe){if(le==null)throw Error(ve(151));for(var ye=null,he=null,ge=oe,xe=oe=0,ze=null,ue=le.next();ge!==null&&!ue.done;xe++,ue=le.next()){ge.index>xe?(ze=ge,ge=null):ze=ge.sibling;var Re=te(re,ge,ue.value,pe);if(Re===null){ge===null&&(ge=ze);break}c&&ge&&Re.alternate===null&&v(re,ge),oe=H(Re,oe,xe),he===null?ye=Re:he.sibling=Re,he=Re,ge=ze}if(ue.done)return E(re,ge),Ve&&wr(re,xe),ye;if(ge===null){for(;!ue.done;xe++,ue=le.next())ue=ee(re,ue.value,pe),ue!==null&&(oe=H(ue,oe,xe),he===null?ye=ue:he.sibling=ue,he=ue);return Ve&&wr(re,xe),ye}for(ge=N(ge);!ue.done;xe++,ue=le.next())ue=ne(ge,re,xe,ue.value,pe),ue!==null&&(c&&(ze=ue.alternate,ze!==null&&ge.delete(ze.key===null?xe:ze.key)),oe=H(ue,oe,xe),he===null?ye=ue:he.sibling=ue,he=ue);return c&&ge.forEach(function(Ee){return v(re,Ee)}),Ve&&wr(re,xe),ye}function me(re,oe,le,pe){if(typeof le==="object"&&le!==null&&le.type===zi&&le.key===null&&le.props.ref===void 0&&(le=le.props.children),typeof le==="object"&&le!==null){switch(le.$$typeof){case qu:e:{for(var ye=le.key;oe!==null;){if(oe.key===ye){if(ye=le.type,ye===zi){if(oe.tag===7){E(re,oe.sibling),pe=D(oe,le.props.children),Yr(pe,le),pe.return=re,re=pe;break e}}else if(oe.elementType===ye||typeof ye==="object"&&ye!==null&&ye.$$typeof===Pr&&Ma(ye)===oe.type){E(re,oe.sibling),pe=D(oe,le.props),Yr(pe,le),pe.return=re,re=pe;break e}E(re,oe);break}else v(re,oe);oe=oe.sibling}le.type===zi?(pe=Ha(le.props.children,re.mode,pe,le.key),Yr(pe,le),pe.return=re,re=pe):(pe=us(le.type,le.key,le.props,null,re.mode,pe),Yr(pe,le),pe.return=re,re=pe)}return q(re);case $o:e:{for(ye=le.key;oe!==null;){if(oe.key===ye)if(oe.tag===4&&oe.stateNode.containerInfo===le.containerInfo&&oe.stateNode.implementation===le.implementation){E(re,oe.sibling),pe=D(oe,le.children||[]),pe.return=re,re=pe;break e}else{E(re,oe);break}else v(re,oe);oe=oe.sibling}pe=ed(le,re.mode,pe),pe.return=re,re=pe}return q(re);case Pr:return le=Ma(le),me(re,oe,le,pe)}if(el(le))return ie(re,oe,le,pe);if(Fo(le)){if(ye=Fo(le),typeof ye!=="function")throw Error(ve(150));return le=ye.call(le),ce(re,oe,le,pe)}if(typeof le.then==="function")return me(re,oe,Xu(le),pe);if(le.$$typeof===er)return me(re,oe,Qu(re,le),pe);Fu(re,le)}return typeof le==="string"&&le!==""||typeof le==="number"||typeof le==="bigint"?(le=""+le,oe!==null&&oe.tag===6?(E(re,oe.sibling),pe=D(oe,le),pe.return=re,re=pe):(E(re,oe),pe=$f(le,re.mode,pe),pe.return=re,re=pe),q(re)):E(re,oe)}return function(re,oe,le,pe){try{Nl=0;var ye=me(re,oe,le,pe);return Gi=null,ye}catch(ge){if(ge===co||ge===lc)throw ge;var he=rn(29,ge,null,re.mode);return he.lanes=pe,he.return=re,he}finally{}}}var Xa=Ib(!0),Gb=Ib(!1),Qr=!1;function Fm(c){c.updateQueue={baseState:c.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function jd(c,v){c=c.updateQueue,v.updateQueue===c&&(v.updateQueue={baseState:c.baseState,firstBaseUpdate:c.firstBaseUpdate,lastBaseUpdate:c.lastBaseUpdate,shared:c.shared,callbacks:null})}function qa(c){return{lane:c,tag:0,payload:null,callback:null,next:null}}function ja(c,v,E){var N=c.updateQueue;if(N===null)return null;if(N=N.shared,(Fe&2)!==0){var D=N.pending;return D===null?v.next=v:(v.next=D.next,D.next=v),N.pending=v,v=zs(c),Lb(c,null,E),v}return ic(c,N,v,E),zs(c)}function dl(c,v,E){if(v=v.updateQueue,v!==null&&(v=v.shared,(E&4194048)!==0)){var N=v.lanes;N&=c.pendingLanes,E|=N,v.lanes=E,ob(c,E)}}function nd(c,v){var E=c.updateQueue,N=c.alternate;if(N!==null&&(N=N.updateQueue,E===N)){var D=null,H=null;if(E=E.firstBaseUpdate,E!==null){do{var q={lane:E.lane,tag:E.tag,payload:E.payload,callback:null,next:null};H===null?D=H=q:H=H.next=q,E=E.next}while(E!==null);H===null?D=H=v:H=H.next=v}else D=H=v;E={baseState:N.baseState,firstBaseUpdate:D,lastBaseUpdate:H,shared:N.shared,callbacks:N.callbacks},c.updateQueue=E;return}c=E.lastBaseUpdate,c===null?E.firstBaseUpdate=v:c.next=v,E.lastBaseUpdate=v}var Yd=!1;function ml(){if(Yd){var c=Ii;if(c!==null)throw c}}function pl(c,v,E,N){Yd=!1;var D=c.updateQueue;Qr=!1;var{firstBaseUpdate:H,lastBaseUpdate:q}=D,Y=D.shared.pending;if(Y!==null){D.shared.pending=null;var I=Y,Q=I.next;I.next=null,q===null?H=Q:q.next=Q,q=I;var F=c.alternate;F!==null&&(F=F.updateQueue,Y=F.lastBaseUpdate,Y!==q&&(Y===null?F.firstBaseUpdate=Q:Y.next=Q,F.lastBaseUpdate=I))}if(H!==null){var ee=D.baseState;q=0,F=Q=I=null,Y=H;do{var te=Y.lane&-536870913,ne=te!==Y.lane;if(ne?(Ie&te)===te:(N&te)===te){te!==0&&te===Qa&&(Yd=!0),F!==null&&(F=F.next={lane:0,tag:Y.tag,payload:Y.payload,callback:null,next:null});e:{var ie=c,ce=Y;te=v;var me=E;switch(ce.tag){case 1:if(ie=ce.payload,typeof ie==="function"){ee=ie.call(me,ee,te);break e}ee=ie;break e;case 3:ie.flags=ie.flags&-65537|128;case 0:if(ie=ce.payload,te=typeof ie==="function"?ie.call(me,ee,te):ie,te===null||te===void 0)break e;ee=at({},ee,te);break e;case 2:Qr=!0}}te=Y.callback,te!==null&&(c.flags|=64,ne&&(c.flags|=8192),ne=D.callbacks,ne===null?D.callbacks=[te]:ne.push(te))}else ne={lane:te,tag:Y.tag,payload:Y.payload,callback:Y.callback,next:null},F===null?(Q=F=ne,I=ee):F=F.next=ne,q|=te;if(Y=Y.next,Y===null)if(Y=D.shared.pending,Y===null)break;else ne=Y,Y=ne.next,ne.next=null,D.lastBaseUpdate=ne,D.shared.pending=null}while(1);F===null&&(I=ee),D.baseState=I,D.firstBaseUpdate=Q,D.lastBaseUpdate=F,H===null&&(D.shared.lanes=0),da|=q,c.lanes=q,c.memoizedState=ee}}function Pb(c,v){if(typeof c!=="function")throw Error(ve(191,c));c.call(v)}function Qb(c,v){var E=c.callbacks;if(E!==null)for(c.callbacks=null,c=0;c<E.length;c++)Pb(E[c],v)}var ca=lr(null),Ds=lr(0);function Qy(c,v){c=Rr,ct(Ds,c),ct(ca,v),Rr=c|v.baseLanes}function Id(){ct(Ds,Rr),ct(ca,ca.current)}function Zm(){Rr=Ds.current,Bt(ca),Bt(Ds)}var jt=lr(null),Pt=null;function na(c){var v=c.alternate;ct(Vt,Vt.current&1),ct(jt,c),Pt===null&&(v===null||ca.current!==null?Pt=c:v.memoizedState!==null&&(Pt=c))}function Gd(c){ct(Vt,Vt.current),ct(jt,c),Pt===null&&(Pt=c)}function Xb(c){c.tag===22?(ct(Vt,Vt.current),ct(jt,c),Pt===null&&(Pt=c)):ra()}function ra(){ct(Vt,Vt.current),ct(jt,jt.current)}function mn(c){Bt(jt),Pt===c&&(Pt=null),Bt(Vt)}var Vt=lr(0);function Al(c,v){ct(jt,jt.current),ct(Vt,v)}function Km(c){Bt(Vt),Bt(jt),Pt===c&&(Pt=null)}function Ls(c){for(var v=c;v!==null;){if(v.tag===13){var E=v.memoizedState;if(E!==null&&(E=E.dehydrated,E===null||Cm(E)||Sp(E)))return v}else if(v.tag===19&&v.memoizedProps.revealOrder!=="independent"){if((v.flags&128)!==0)return v}else if(v.child!==null){v.child.return=v,v=v.child;continue}if(v===c)break;for(;v.sibling===null;){if(v.return===null||v.return===c)return null;v=v.return}v.sibling.return=v.return,v=v.sibling}return null}var Nr=0,He=null,tt=null,St=null,Us=!1,Pi=!1,Fa=!1,Hs=0,zl=0,Qi=null,vT=0;function pt(){throw Error(ve(321))}function Jm(c,v){if(v===null)return!1;for(var E=0;E<v.length&&E<c.length;E++)if(!bn(c[E],v[E]))return!1;return!0}function Wm(c,v,E,N,D,H){return Nr=H,He=v,v.memoizedState=null,v.updateQueue=null,v.lanes=0,De.H=c===null||c.memoizedState===null?E0:T0,Fa=!1,H=E(N,D),Fa=!1,Pi&&(H=Zb(v,E,N,D)),Fb(c),H}function Fb(c){De.H=Bs;var v=tt!==null&&tt.next!==null;if(Nr=0,St=tt=He=null,Us=!1,zl=0,Qi=null,v)throw Error(ve(300));c===null||Et||(c=c.dependencies,c!==null&&Ms(c)&&(Et=!0))}function Zb(c,v,E,N){He=c;var D=0;do{if(Pi&&(Qi=null),zl=0,Pi=!1,25<=D)throw Error(ve(301));if(D+=1,St=tt=null,c.updateQueue!=null){var H=c.updateQueue;H.lastEffect=null,H.events=null,H.stores=null,H.memoCache!=null&&(H.memoCache.index=0)}De.H=CT,H=v(E,N)}while(Pi);return H}function bT(){var c=De.H,v=c.useState()[0];return v=typeof v.then==="function"?Gl(v):v,c=c.useState()[0],(tt!==null?tt.memoizedState:null)!==c&&(He.flags|=1024),v}function $m(){var c=Hs!==0;return Hs=0,c}function ep(c,v,E){v.updateQueue=c.updateQueue,v.flags&=-2053,c.lanes&=~E}function tp(c){if(Us){for(c=c.memoizedState;c!==null;){var v=c.queue;v!==null&&(v.pending=null),c=c.next}Us=!1}Nr=0,St=tt=He=null,Pi=!1,zl=Hs=0,Qi=null}function Jt(){var c={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return St===null?He.memoizedState=St=c:St=St.next=c,St}function xt(){if(tt===null){var c=He.alternate;c=c!==null?c.memoizedState:null}else c=tt.next;var v=St===null?He.memoizedState:St.next;if(v!==null)St=v,tt=c;else{if(c===null){if(He.alternate===null)throw Error(ve(467));throw Error(ve(310))}tt=c,c={memoizedState:tt.memoizedState,baseState:tt.baseState,baseQueue:tt.baseQueue,queue:tt.queue,next:null},St===null?He.memoizedState=St=c:St=St.next=c}return St}function uc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Gl(c){var v=zl;return zl+=1,Qi===null&&(Qi=[]),c=Yb(Qi,c,v),v=He,(St===null?v.memoizedState:St.next)===null&&(v=v.alternate,De.H=v===null||v.memoizedState===null?E0:T0),c}function sc(c){if(c!==null&&typeof c==="object"){if(typeof c.then==="function")return Gl(c);if(c.$$typeof===eE)return;if(c.$$typeof===er)return Ht(c)}throw Error(ve(438,String(c)))}function np(c){var v=null,E=He.updateQueue;if(E!==null&&(v=E.memoCache),v==null){var N=He.alternate;N!==null&&(N=N.updateQueue,N!==null&&(N=N.memoCache,N!=null&&(v={data:N.data.map(function(D){return D.slice()}),index:0})))}if(v==null&&(v={data:[],index:0}),E===null&&(E=uc(),He.updateQueue=E),E.memoCache=v,E=v.data[v.index],E===void 0)for(E=v.data[v.index]=Array(c),N=0;N<c;N++)E[N]=$2;return v.index++,E}function Ar(c,v){return typeof v==="function"?v(c):v}function fs(c){var v=xt();return rp(v,tt,c)}function rp(c,v,E){var N=c.queue;if(N===null)throw Error(ve(311));N.lastRenderedReducer=E;var D=c.baseQueue,H=N.pending;if(H!==null){if(D!==null){var q=D.next;D.next=H.next,H.next=q}v.baseQueue=D=H,N.pending=null}if(H=c.baseState,D===null)c.memoizedState=H;else{v=D.next;var Y=q=null,I=null,Q=v,F=!1;do{var ee=Q.lane&-536870913;if(ee!==Q.lane?(Ie&ee)===ee:(Nr&ee)===ee){var te=Q.revertLane;if(te===0)I!==null&&(I=I.next={lane:0,revertLane:0,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null}),ee===Qa&&(F=!0);else if((Nr&te)===te){Q=Q.next,te===Qa&&(F=!0);continue}else ee={lane:0,revertLane:Q.revertLane,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},I===null?(Y=I=ee,q=H):I=I.next=ee,He.lanes|=te,da|=te;ee=Q.action,Fa&&E(H,ee),H=Q.hasEagerState?Q.eagerState:E(H,ee)}else te={lane:ee,revertLane:Q.revertLane,gesture:Q.gesture,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},I===null?(Y=I=te,q=H):I=I.next=te,He.lanes|=ee,da|=ee;Q=Q.next}while(Q!==null&&Q!==v);if(I===null?q=H:I.next=Y,!bn(H,c.memoizedState)&&(Et=!0,F&&(E=Ii,E!==null)))throw E;c.memoizedState=H,c.baseState=q,c.baseQueue=I,N.lastRenderedState=H}return D===null&&(N.lanes=0),[c.memoizedState,N.dispatch]}function rd(c){var v=xt(),E=v.queue;if(E===null)throw Error(ve(311));E.lastRenderedReducer=c;var{dispatch:N,pending:D}=E,H=v.memoizedState;if(D!==null){E.pending=null;var q=D=D.next;do H=c(H,q.action),q=q.next;while(q!==D);bn(H,v.memoizedState)||(Et=!0),v.memoizedState=H,v.baseQueue===null&&(v.baseState=H),E.lastRenderedState=H}return[H,N]}function Kb(c,v,E){var N=He,D=xt(),H=Ve;if(H){if(E===void 0)throw Error(ve(407));E=E()}else E=v();var q=!bn((tt||D).memoizedState,E);if(q&&(D.memoizedState=E,Et=!0),D=D.queue,ap($b.bind(null,N,D,c),[c]),c=D.getSnapshot!==v||q||St!==null&&(St.memoizedState.tag&1)!==0,$i(c?9:8,{destroy:void 0},Wb.bind(null,N,D,E,v),null),c){if(N.flags|=2048,rt===null)throw Error(ve(349));H||(Nr&127)!==0||Jb(N,v,E)}return E}function Jb(c,v,E){c.flags|=16384,c={getSnapshot:v,value:E},v=He.updateQueue,v===null?(v=uc(),He.updateQueue=v,v.stores=[c]):(E=v.stores,E===null?v.stores=[c]:E.push(c))}function Wb(c,v,E,N){v.value=E,v.getSnapshot=N,e0(v)&&t0(c)}function $b(c,v,E){return E(function(){e0(v)&&t0(c)})}function e0(c){var v=c.getSnapshot;c=c.value;try{var E=v();return!bn(c,E)}catch(N){return!0}}function t0(c){var v=ei(c,2);v!==null&&an(v,c,2)}function Pd(c){var v=Jt();if(typeof c==="function"){var E=c;if(c=E(),Fa){Fr(!0);try{E()}finally{Fr(!1)}}}return v.memoizedState=v.baseState=c,v.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ar,lastRenderedState:c},v}function n0(c,v,E,N){return c.baseState=E,rp(c,tt,typeof N==="function"?N:Ar)}function xT(c,v,E,N,D){if(fc(c))throw Error(ve(485));if(c=v.action,c!==null){var H={payload:D,action:c,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(q){H.listeners.push(q)}};De.T!==null?E(!0):H.isTransition=!1,N(H),E=v.pending,E===null?(H.next=v.pending=H,r0(v,H)):(H.next=E.next,v.pending=E.next=H)}}function r0(c,v){var{action:E,payload:N}=v,D=c.state;if(v.isTransition){var H=De.T,q={};q.types=H!==null?H.types:null,De.T=q;try{var Y=E(D,N),I=De.S;I!==null&&I(q,Y),Xy(c,v,Y)}catch(Q){Qd(c,v,Q)}finally{H!==null&&q.types!==null&&(H.types=q.types),De.T=H}}else try{H=E(D,N),Xy(c,v,H)}catch(Q){Qd(c,v,Q)}}function Xy(c,v,E){E!==null&&typeof E==="object"&&typeof E.then==="function"?E.then(function(N){Fy(c,v,N)},function(N){return Qd(c,v,N)}):Fy(c,v,E)}function Fy(c,v,E){v.status="fulfilled",v.value=E,a0(v),c.state=E,v=c.pending,v!==null&&(E=v.next,E===v?c.pending=null:(E=E.next,v.next=E,r0(c,E)))}function Qd(c,v,E){var N=c.pending;if(c.pending=null,N!==null){N=N.next;do v.status="rejected",v.reason=E,a0(v),v=v.next;while(v!==N)}c.action=null}function a0(c){c=c.listeners;for(var v=0;v<c.length;v++)(0,c[v])()}function i0(c,v){return v}function Zy(c,v){if(Ve){var E=rt.formState;if(E!==null){e:{var N=He;if(Ve){if(st){t:{var D=st;for(var H=Rn;D.nodeType!==8;){if(!H){D=null;break t}if(D=Mn(D.nextSibling),D===null){D=null;break t}}H=D.data,D=H==="F!"||H==="F"?D:null}if(D){st=Mn(D.nextSibling),N=D.data==="F!";break e}}sa(N)}N=!1}N&&(v=E[0])}}return E=Jt(),E.memoizedState=E.baseState=v,N={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i0,lastRenderedState:v},E.queue=N,E=w0.bind(null,He,N),N.dispatch=E,N=Pd(!1),H=up.bind(null,He,!1,N.queue),N=Jt(),D={state:v,dispatch:null,action:c,pending:null},N.queue=D,E=xT.bind(null,He,D,H,E),D.dispatch=E,N.memoizedState=c,[v,E,!1]}function Ky(c){var v=xt();return o0(v,tt,c)}function o0(c,v,E){if(v=rp(c,v,i0)[0],c=fs(Ar)[0],typeof v==="object"&&v!==null&&typeof v.then==="function")try{var N=Gl(v)}catch(q){if(q===co)throw lc;throw q}else N=v;v=xt();var D=v.queue,H=D.dispatch;return E!==v.memoizedState&&(He.flags|=2048,$i(9,{destroy:void 0},wT.bind(null,D,E),null)),[N,H,c]}function wT(c,v){c.action=v}function Jy(c){var v=xt(),E=tt;if(E!==null)return o0(v,E,c);xt(),v=v.memoizedState,E=xt();var N=E.queue.dispatch;return E.memoizedState=c,[v,N,!1]}function $i(c,v,E,N){return c={tag:c,create:E,deps:N,inst:v,next:null},v=He.updateQueue,v===null&&(v=uc(),He.updateQueue=v),E=v.lastEffect,E===null?v.lastEffect=c.next=c:(N=E.next,E.next=c,c.next=N,v.lastEffect=c),c}function l0(){return xt().memoizedState}function ds(c,v,E,N){var D=Jt();He.flags|=c,D.memoizedState=$i(1|v,{destroy:void 0},E,N===void 0?null:N)}function cc(c,v,E,N){var D=xt();N=N===void 0?null:N;var H=D.memoizedState.inst;tt!==null&&N!==null&&Jm(N,tt.memoizedState.deps)?D.memoizedState=$i(v,H,E,N):(He.flags|=c,D.memoizedState=$i(1|v,H,E,N))}function Wy(c,v){ds(8390656,8,c,v)}function ap(c,v){cc(2048,8,c,v)}function ST(c){He.flags|=4;var v=He.updateQueue;if(v===null)v=uc(),He.updateQueue=v,v.events=[c];else{var E=v.events;E===null?v.events=[c]:E.push(c)}}function u0(c){var v=xt().memoizedState;return ST({ref:v,nextImpl:c}),function(){if((Fe&2)!==0)throw Error(ve(440));return v.impl.apply(void 0,arguments)}}function s0(c,v){return cc(4,2,c,v)}function c0(c,v){return cc(4,4,c,v)}function f0(c,v){if(typeof v==="function"){c=c();var E=v(c);return function(){typeof E==="function"?E():v(null)}}if(v!==null&&v!==void 0)return c=c(),v.current=c,function(){v.current=null}}function d0(c,v,E){E=E!==null&&E!==void 0?E.concat([c]):null,cc(4,4,f0.bind(null,v,c),E)}function ip(){}function m0(c,v){var E=xt();v=v===void 0?null:v;var N=E.memoizedState;if(v!==null&&Jm(v,N[1]))return N[0];return E.memoizedState=[c,v],c}function p0(c,v){var E=xt();v=v===void 0?null:v;var N=E.memoizedState;if(v!==null&&Jm(v,N[1]))return N[0];if(N=c(),Fa){Fr(!0);try{c()}finally{Fr(!1)}}return E.memoizedState=[N,v],N}function op(c,v,E){if(E===void 0||(Nr&1073741824)!==0&&(Ie&261930)===0)return c.memoizedState=v;return c.memoizedState=E,c=r1(),He.lanes|=c,da|=c,E}function h0(c,v,E,N){if(bn(E,v))return E;if(ca.current!==null)return c=op(c,E,N),bn(c,v)||(Et=!0),c;if((Nr&106)===0||(Nr&1073741824)!==0&&(Ie&261930)===0)return Et=!0,c.memoizedState=E;return c=r1(),He.lanes|=c,da|=c,v}function g0(c,v,E,N,D){var H=Ze.p;Ze.p=H!==0&&8>H?H:8;var q=De.T,Y={};Y.types=q!==null?q.types:null,De.T=Y,up(c,!1,v,E);try{var I=D(),Q=De.S;if(Q!==null&&Q(Y,I),I!==null&&typeof I==="object"&&typeof I.then==="function"){var F=yT(I,N);hl(c,v,F,On(c))}else hl(c,v,N,On(c))}catch(ee){hl(c,v,{then:function(){},status:"rejected",reason:ee},On())}finally{Ze.p=H,q!==null&&Y.types!==null&&(q.types=Y.types),De.T=q}}function kT(){}function Xd(c,v,E,N){if(c.tag!==5)throw Error(ve(476));var D=y0(c).queue;g0(c,D,v,Ua,E===null?kT:function(){return v0(c),E(N)})}function y0(c){var v=c.memoizedState;if(v!==null)return v;v={memoizedState:Ua,baseState:Ua,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ar,lastRenderedState:Ua},next:null};var E={};return v.next={memoizedState:E,baseState:E,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ar,lastRenderedState:E},next:null},c.memoizedState=v,c=c.alternate,c!==null&&(c.memoizedState=v),v}function v0(c){var v=y0(c);v.next===null&&(v=c.alternate.memoizedState),hl(c,v.next.queue,{},On())}function lp(){return Ht(oo)}function b0(){return xt().memoizedState}function x0(){return xt().memoizedState}function ET(c){for(var v=c.return;v!==null;){switch(v.tag){case 24:case 3:var E=On();c=qa(E);var N=ja(v,c,E);N!==null&&(an(N,v,E),dl(N,v,E)),v={cache:Pm()},c.payload=v;return}v=v.return}}function TT(c,v,E){var N=On();E={lane:N,revertLane:0,gesture:null,action:E,hasEagerState:!1,eagerState:null,next:null},fc(c)?S0(v,E):(E=Ym(c,v,E,N),E!==null&&(an(E,c,N),k0(E,v,N)))}function w0(c,v,E){var N=On();hl(c,v,E,N)}function hl(c,v,E,N){var D={lane:N,revertLane:0,gesture:null,action:E,hasEagerState:!1,eagerState:null,next:null};if(fc(c))S0(v,D);else{var H=c.alternate;if(c.lanes===0&&(H===null||H.lanes===0)&&(H=v.lastRenderedReducer,H!==null))try{var q=v.lastRenderedState,Y=H(q,E);if(D.hasEagerState=!0,D.eagerState=Y,bn(Y,q))return ic(c,v,D,0),rt===null&&ac(),!1}catch(I){}finally{}if(E=Ym(c,v,D,N),E!==null)return an(E,c,N),k0(E,v,N),!0}return!1}function up(c,v,E,N){if(N={lane:2,revertLane:bp(),gesture:null,action:N,hasEagerState:!1,eagerState:null,next:null},fc(c)){if(v)throw Error(ve(479))}else v=Ym(c,E,N,2),v!==null&&an(v,c,2)}function fc(c){var v=c.alternate;return c===He||v!==null&&v===He}function S0(c,v){Pi=Us=!0;var E=c.pending;E===null?v.next=v:(v.next=E.next,E.next=v),c.pending=v}function k0(c,v,E){if((E&4194048)!==0){var N=v.lanes;N&=c.pendingLanes,E|=N,v.lanes=E,ob(c,E)}}var Bs={readContext:Ht,use:sc,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useLayoutEffect:pt,useInsertionEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useSyncExternalStore:pt,useId:pt,useHostTransitionStatus:pt,useFormState:pt,useActionState:pt,useOptimistic:pt,useMemoCache:pt,useCacheRefresh:pt,useEffectEvent:pt},E0={readContext:Ht,use:sc,useCallback:function(c,v){return Jt().memoizedState=[c,v===void 0?null:v],c},useContext:Ht,useEffect:Wy,useImperativeHandle:function(c,v,E){E=E!==null&&E!==void 0?E.concat([c]):null,ds(4194308,4,f0.bind(null,v,c),E)},useLayoutEffect:function(c,v){return ds(4194308,4,c,v)},useInsertionEffect:function(c,v){ds(4,2,c,v)},useMemo:function(c,v){var E=Jt();v=v===void 0?null:v;var N=c();if(Fa){Fr(!0);try{c()}finally{Fr(!1)}}return E.memoizedState=[N,v],N},useReducer:function(c,v,E){var N=Jt();if(E!==void 0){var D=E(v);if(Fa){Fr(!0);try{E(v)}finally{Fr(!1)}}}else D=v;return N.memoizedState=N.baseState=D,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:c,lastRenderedState:D},N.queue=c,c=c.dispatch=TT.bind(null,He,c),[N.memoizedState,c]},useRef:function(c){var v=Jt();return c={current:c},v.memoizedState=c},useState:function(c){c=Pd(c);var v=c.queue,E=w0.bind(null,He,v);return v.dispatch=E,[c.memoizedState,E]},useDebugValue:ip,useDeferredValue:function(c,v){var E=Jt();return op(E,c,v)},useTransition:function(){var c=Pd(!1);return c=g0.bind(null,He,c.queue,!0,!1),Jt().memoizedState=c,[!1,c]},useSyncExternalStore:function(c,v,E){var N=He,D=Jt();if(Ve){if(E===void 0)throw Error(ve(407));E=E()}else{if(E=v(),rt===null)throw Error(ve(349));(Ie&127)!==0||Jb(N,v,E)}D.memoizedState=E;var H={value:E,getSnapshot:v};return D.queue=H,Wy($b.bind(null,N,H,c),[c]),N.flags|=2048,$i(9,{destroy:void 0},Wb.bind(null,N,H,E,v),null),E},useId:function(){var c=Jt(),v=rt.identifierPrefix;if(Ve){var E=rr,N=nr;E=(N&~(1<<32-vn(N)-1)).toString(32)+E,v="_"+v+"R_"+E,E=Hs++,0<E&&(v+="H"+E.toString(32)),v+="_"}else E=vT++,v="_"+v+"r_"+E.toString(32)+"_";return c.memoizedState=v},useHostTransitionStatus:lp,useFormState:Zy,useActionState:Zy,useOptimistic:function(c){var v=Jt();v.memoizedState=v.baseState=c;var E={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return v.queue=E,v=up.bind(null,He,!0,E),E.dispatch=v,[c,v]},useMemoCache:np,useCacheRefresh:function(){return Jt().memoizedState=ET.bind(null,He)},useEffectEvent:function(c){var v=Jt(),E={impl:c};return v.memoizedState=E,function(){if((Fe&2)!==0)throw Error(ve(440));return E.impl.apply(void 0,arguments)}}},T0={readContext:Ht,use:sc,useCallback:m0,useContext:Ht,useEffect:ap,useImperativeHandle:d0,useInsertionEffect:s0,useLayoutEffect:c0,useMemo:p0,useReducer:fs,useRef:l0,useState:function(){return fs(Ar)},useDebugValue:ip,useDeferredValue:function(c,v){var E=xt();return h0(E,tt.memoizedState,c,v)},useTransition:function(){var c=fs(Ar)[0],v=xt().memoizedState;return[typeof c==="boolean"?c:Gl(c),v]},useSyncExternalStore:Kb,useId:b0,useHostTransitionStatus:lp,useFormState:Ky,useActionState:Ky,useOptimistic:function(c,v){var E=xt();return n0(E,tt,c,v)},useMemoCache:np,useCacheRefresh:x0,useEffectEvent:u0},CT={readContext:Ht,use:sc,useCallback:m0,useContext:Ht,useEffect:ap,useImperativeHandle:d0,useInsertionEffect:s0,useLayoutEffect:c0,useMemo:p0,useReducer:rd,useRef:l0,useState:function(){return rd(Ar)},useDebugValue:ip,useDeferredValue:function(c,v){var E=xt();return tt===null?op(E,c,v):h0(E,tt.memoizedState,c,v)},useTransition:function(){var c=rd(Ar)[0],v=xt().memoizedState;return[typeof c==="boolean"?c:Gl(c),v]},useSyncExternalStore:Kb,useId:b0,useHostTransitionStatus:lp,useFormState:Jy,useActionState:Jy,useOptimistic:function(c,v){var E=xt();if(tt!==null)return n0(E,tt,c,v);return E.baseState=c,[c,E.queue.dispatch]},useMemoCache:np,useCacheRefresh:x0,useEffectEvent:u0};function ad(c,v,E,N){v=c.memoizedState,E=E(N,v),E=E===null||E===void 0?v:at({},v,E),c.memoizedState=E,c.lanes===0&&(c.updateQueue.baseState=E)}var Fd={enqueueSetState:function(c,v,E){c=c._reactInternals;var N=On(),D=qa(N);D.payload=v,E!==void 0&&E!==null&&(D.callback=E),v=ja(c,D,N),v!==null&&(an(v,c,N),dl(v,c,N))},enqueueReplaceState:function(c,v,E){c=c._reactInternals;var N=On(),D=qa(N);D.tag=1,D.payload=v,E!==void 0&&E!==null&&(D.callback=E),v=ja(c,D,N),v!==null&&(an(v,c,N),dl(v,c,N))},enqueueForceUpdate:function(c,v){c=c._reactInternals;var E=On(),N=qa(E);N.tag=2,v!==void 0&&v!==null&&(N.callback=v),v=ja(c,N,E),v!==null&&(an(v,c,E),dl(v,c,E))}};function $y(c,v,E,N,D,H,q){return c=c.stateNode,typeof c.shouldComponentUpdate==="function"?c.shouldComponentUpdate(N,H,q):v.prototype&&v.prototype.isPureReactComponent?!El(E,N)||!El(D,H):!0}function ev(c,v,E,N){c=v.state,typeof v.componentWillReceiveProps==="function"&&v.componentWillReceiveProps(E,N),typeof v.UNSAFE_componentWillReceiveProps==="function"&&v.UNSAFE_componentWillReceiveProps(E,N),v.state!==c&&Fd.enqueueReplaceState(v,v.state,null)}function Za(c,v){var E=v;if("ref"in v){E={};for(var N in v)N!=="ref"&&(E[N]=v[N])}if(c=c.defaultProps){E===v&&(E=at({},E));for(var D in c)E[D]===void 0&&(E[D]=c[D])}return E}function NT(c){As(c)}function AT(c){console.error(c)}function zT(c){As(c)}function Vs(c,v){try{var E=c.onUncaughtError;E(v.value,{componentStack:v.stack})}catch(N){setTimeout(function(){throw N})}}function tv(c,v,E){try{var N=c.onCaughtError;N(E.value,{componentStack:E.stack,errorBoundary:v.tag===1?v.stateNode:null})}catch(D){setTimeout(function(){throw D})}}function Zd(c,v,E){return E=qa(E),E.tag=3,E.payload={element:null},E.callback=function(){Vs(c,v)},E}function C0(c){return c=qa(c),c.tag=3,c}function N0(c,v,E,N){var D=E.type.getDerivedStateFromError;if(typeof D==="function"){var H=N.value;c.payload=function(){return D(H)},c.callback=function(){tv(v,E,N)}}var q=E.stateNode;q!==null&&typeof q.componentDidCatch==="function"&&(c.callback=function(){tv(v,E,N),typeof D!=="function"&&(aa===null?aa=new Set([this]):aa.add(this));var Y=N.stack;this.componentDidCatch(N.value,{componentStack:Y!==null?Y:""})})}function RT(c,v,E,N,D){if(E.flags|=32768,N!==null&&typeof N==="object"&&typeof N.then==="function"){if(v=E.alternate,v!==null&&Ga(v,E,D,!0),E=jt.current,E!==null){switch(E.tag){case 31:case 13:case 19:return Pt===null?Xs():E.alternate===null&&ht===0&&(ht=3),E.flags&=-257,E.flags|=65536,E.lanes=D,N===_s?E.flags|=16384:(v=E.updateQueue,v===null?E.updateQueue=new Set([N]):v.add(N),fd(c,N,D)),!1;case 22:return E.flags|=65536,N===_s?E.flags|=16384:(v=E.updateQueue,v===null?(v={transitions:null,markerInstances:null,retryQueue:new Set([N])},E.updateQueue=v):(E=v.retryQueue,E===null?v.retryQueue=new Set([N]):E.add(N)),fd(c,N,D)),!1}throw Error(ve(435,E.tag))}return fd(c,N,D),Xs(),!1}if(Ve)return v=jt.current,v!==null?((v.flags&65536)===0&&(v.flags|=256),v.flags|=65536,v.lanes=D,N!==Hd&&(c=Error(ve(422),{cause:N}),Cl(zn(c,E)))):(N!==Hd&&(v=Error(ve(423),{cause:N}),Cl(zn(v,E))),c=c.current.alternate,c.flags|=65536,D&=-D,c.lanes|=D,N=zn(N,E),D=Zd(c.stateNode,N,D),nd(c,D),ht!==4&&(ht=2)),!1;var H=Error(ve(520),{cause:N});if(H=zn(H,E),bl===null?bl=[H]:bl.push(H),ht!==4&&(ht=2),v===null)return!0;N=zn(N,E),E=v;do{switch(E.tag){case 3:return E.flags|=65536,c=D&-D,E.lanes|=c,c=Zd(E.stateNode,N,c),nd(E,c),!1;case 1:if(v=E.type,H=E.stateNode,(E.flags&128)===0&&(typeof v.getDerivedStateFromError==="function"||H!==null&&typeof H.componentDidCatch==="function"&&(aa===null||!aa.has(H))))return E.flags|=65536,D&=-D,E.lanes|=D,D=C0(D),N0(D,c,E,N),nd(E,D),!1;break;case 22:if(E.memoizedState!==null)return E.flags|=65536,!1}E=E.return}while(E!==null);return!1}var sp=Error(ve(461)),Et=!1;function Nt(c,v,E,N){v.child=c===null?Gb(v,null,E,N):Xa(v,c.child,E,N)}function nv(c,v,E,N,D){E=E.render;var H=v.ref;if("ref"in N){var q={};for(var Y in N)Y!=="ref"&&(q[Y]=N[Y])}else q=N;if(Pa(v),N=Wm(c,v,E,q,H,D),Y=$m(),c!==null&&!Et)return ep(c,v,D),zr(c,v,D);return Ve&&Y&&oc(v),v.flags|=1,Nt(c,v,N,D),v.child}function rv(c,v,E,N,D){if(c===null){var H=E.type;if(typeof H==="function"&&!Im(H)&&H.defaultProps===void 0&&E.compare===null)return v.tag=15,v.type=H,A0(c,v,H,N,D);return c=us(E.type,null,N,v,v.mode,D),c.ref=v.ref,c.return=v,v.child=c}if(H=c.child,!fp(c,D)){var q=H.memoizedProps;if(E=E.compare,E=E!==null?E:El,E(q,N)&&c.ref===v.ref)return zr(c,v,D)}return v.flags|=1,c=kr(H,N),c.ref=v.ref,c.return=v,v.child=c}function A0(c,v,E,N,D){if(c!==null){var H=c.memoizedProps;if(El(H,N)&&c.ref===v.ref)if(Et=!1,v.pendingProps=N=H,fp(c,D))(c.flags&131072)!==0&&(Et=!0);else return v.lanes=c.lanes,zr(c,v,D)}return Kd(c,v,E,N,D)}function z0(c,v,E,N){var D=N.children,H=c!==null?c.memoizedState:null;if(c===null&&v.stateNode===null&&(v.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),N.mode==="hidden"){if((v.flags&128)!==0){if(H=H!==null?H.baseLanes|E:E,c!==null){N=v.child=c.child;for(D=0;N!==null;)D=D|N.lanes|N.childLanes,N=N.sibling;N=D&~H}else N=0,v.child=null;return av(c,v,H,E,N)}if((E&536870912)!==0)v.memoizedState={baseLanes:0,cachePool:null},c!==null&&cs(v,H!==null?H.cachePool:null),H!==null?Qy(v,H):Id(),Xb(v);else return N=v.lanes=536870912,av(c,v,H!==null?H.baseLanes|E:E,E,N)}else H!==null?(cs(v,H.cachePool),Qy(v,H),ra(),v.memoizedState=null):(c!==null&&cs(v,null),Id(),ra());return Nt(c,v,D,E),v.child}function gl(c,v){return c!==null&&c.tag===22||v.stateNode!==null||(v.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),v.sibling}function av(c,v,E,N,D){var H=Qm();return H=H===null?null:{parent:kt._currentValue,pool:H},v.memoizedState={baseLanes:E,cachePool:H},c!==null&&cs(v,null),Id(),Xb(v),c!==null&&Ga(c,v,N,!0),v.childLanes=D,null}function ms(c,v){return v=dc({mode:v.mode,children:v.children},c.mode),v.ref=c.ref,c.child=v,v.return=c,v}function iv(c,v,E){return Xa(v,c.child,null,E),c=ms(v,v.pendingProps),c.flags|=2,mn(v),v.memoizedState=null,c}function OT(c,v,E){var N=v.pendingProps,D=(v.flags&128)!==0;if(v.flags&=-129,c===null){if(Ve){if(N.mode==="hidden")return c=ms(v,N),v.lanes=536870912,c.memoizedState={baseLanes:0,cachePool:null},gl(null,c);if(Gd(v),(c=st)?(c=R1(c,Rn),c=c!==null&&c.data==="&"?c:null,c!==null&&(v.memoizedState={dehydrated:c,treeContext:ua!==null?{id:nr,overflow:rr}:null,retryLane:536870912,hydrationErrors:null},E=Hb(c),E.return=v,v.child=E,_t=v,st=null)):c=null,c===null)throw sa(v);return v.lanes=536870912,null}return ms(v,N)}var H=c.memoizedState;if(H!==null){var q=H.dehydrated;if(Gd(v),D)if(v.flags&256)v.flags&=-257,v=iv(c,v,E);else if(v.memoizedState!==null)v.child=c.child,v.flags|=128,v=null;else throw Error(ve(558));else if(Et||Ga(c,v,E,!1),D=(E&c.childLanes)!==0,Et||D){if(ca.current===null){if(N=rt,N!==null&&(q=lb(N,E),q!==0&&q!==H.retryLane))throw H.retryLane=q,ei(c,q),an(N,c,q),sp;Xs()}v=iv(c,v,E)}else c=H.treeContext,st=Mn(q.nextSibling),_t=v,Ve=!0,ta=null,Rn=!1,c!==null&&Vb(v,c),v=ms(v,N),v.flags|=134221824;return v}return c=kr(c.child,{mode:N.mode,children:N.children}),c.ref=v.ref,v.child=c,c.return=v,c}function Ei(c,v){var E=v.ref;if(E===null)c!==null&&c.ref!==null&&(v.flags|=4194816);else{if(typeof E!=="function"&&typeof E!=="object")throw Error(ve(284));if(c===null||c.ref!==E)v.flags|=4194816}}function Kd(c,v,E,N,D){if(Pa(v),E=Wm(c,v,E,N,void 0,D),N=$m(),c!==null&&!Et)return ep(c,v,D),zr(c,v,D);return Ve&&N&&oc(v),v.flags|=1,Nt(c,v,E,D),v.child}function ov(c,v,E,N,D,H){if(Pa(v),v.updateQueue=null,E=Zb(v,N,E,D),Fb(c),N=$m(),c!==null&&!Et)return ep(c,v,H),zr(c,v,H);return Ve&&N&&oc(v),v.flags|=1,Nt(c,v,E,H),v.child}function lv(c,v,E,N,D){if(Pa(v),v.stateNode===null){var H=Ui,q=E.contextType;typeof q==="object"&&q!==null&&(H=Ht(q)),H=new E(N,H),v.memoizedState=H.state!==null&&H.state!==void 0?H.state:null,H.updater=Fd,v.stateNode=H,H._reactInternals=v,H=v.stateNode,H.props=N,H.state=v.memoizedState,H.refs={},Fm(v),q=E.contextType,H.context=typeof q==="object"&&q!==null?Ht(q):Ui,H.state=v.memoizedState,q=E.getDerivedStateFromProps,typeof q==="function"&&(ad(v,E,q,N),H.state=v.memoizedState),typeof E.getDerivedStateFromProps==="function"||typeof H.getSnapshotBeforeUpdate==="function"||typeof H.UNSAFE_componentWillMount!=="function"&&typeof H.componentWillMount!=="function"||(q=H.state,typeof H.componentWillMount==="function"&&H.componentWillMount(),typeof H.UNSAFE_componentWillMount==="function"&&H.UNSAFE_componentWillMount(),q!==H.state&&Fd.enqueueReplaceState(H,H.state,null),pl(v,N,H,D),ml(),H.state=v.memoizedState),typeof H.componentDidMount==="function"&&(v.flags|=4194308),N=!0}else if(c===null){H=v.stateNode;var Y=v.memoizedProps,I=Za(E,Y);H.props=I;var Q=H.context,F=E.contextType;q=Ui,typeof F==="object"&&F!==null&&(q=Ht(F));var ee=E.getDerivedStateFromProps;F=typeof ee==="function"||typeof H.getSnapshotBeforeUpdate==="function",Y=v.pendingProps!==Y,F||typeof H.UNSAFE_componentWillReceiveProps!=="function"&&typeof H.componentWillReceiveProps!=="function"||(Y||Q!==q)&&ev(v,H,N,q),Qr=!1;var te=v.memoizedState;H.state=te,pl(v,N,H,D),ml(),Q=v.memoizedState,Y||te!==Q||Qr?(typeof ee==="function"&&(ad(v,E,ee,N),Q=v.memoizedState),(I=Qr||$y(v,E,I,N,te,Q,q))?(F||typeof H.UNSAFE_componentWillMount!=="function"&&typeof H.componentWillMount!=="function"||(typeof H.componentWillMount==="function"&&H.componentWillMount(),typeof H.UNSAFE_componentWillMount==="function"&&H.UNSAFE_componentWillMount()),typeof H.componentDidMount==="function"&&(v.flags|=4194308)):(typeof H.componentDidMount==="function"&&(v.flags|=4194308),v.memoizedProps=N,v.memoizedState=Q),H.props=N,H.state=Q,H.context=q,N=I):(typeof H.componentDidMount==="function"&&(v.flags|=4194308),N=!1)}else{H=v.stateNode,jd(c,v),q=v.memoizedProps,F=Za(E,q),H.props=F,ee=v.pendingProps,te=H.context,Q=E.contextType,I=Ui,typeof Q==="object"&&Q!==null&&(I=Ht(Q)),Y=E.getDerivedStateFromProps,(Q=typeof Y==="function"||typeof H.getSnapshotBeforeUpdate==="function")||typeof H.UNSAFE_componentWillReceiveProps!=="function"&&typeof H.componentWillReceiveProps!=="function"||(q!==ee||te!==I)&&ev(v,H,N,I),Qr=!1,te=v.memoizedState,H.state=te,pl(v,N,H,D),ml();var ne=v.memoizedState;q!==ee||te!==ne||Qr||c!==null&&c.dependencies!==null&&Ms(c.dependencies)?(typeof Y==="function"&&(ad(v,E,Y,N),ne=v.memoizedState),(F=Qr||$y(v,E,F,N,te,ne,I)||c!==null&&c.dependencies!==null&&Ms(c.dependencies))?(Q||typeof H.UNSAFE_componentWillUpdate!=="function"&&typeof H.componentWillUpdate!=="function"||(typeof H.componentWillUpdate==="function"&&H.componentWillUpdate(N,ne,I),typeof H.UNSAFE_componentWillUpdate==="function"&&H.UNSAFE_componentWillUpdate(N,ne,I)),typeof H.componentDidUpdate==="function"&&(v.flags|=4),typeof H.getSnapshotBeforeUpdate==="function"&&(v.flags|=1024)):(typeof H.componentDidUpdate!=="function"||q===c.memoizedProps&&te===c.memoizedState||(v.flags|=4),typeof H.getSnapshotBeforeUpdate!=="function"||q===c.memoizedProps&&te===c.memoizedState||(v.flags|=1024),v.memoizedProps=N,v.memoizedState=ne),H.props=N,H.state=ne,H.context=I,N=F):(typeof H.componentDidUpdate!=="function"||q===c.memoizedProps&&te===c.memoizedState||(v.flags|=4),typeof H.getSnapshotBeforeUpdate!=="function"||q===c.memoizedProps&&te===c.memoizedState||(v.flags|=1024),N=!1)}return H=N,Ei(c,v),N=(v.flags&128)!==0,H||N?(H=v.stateNode,E=N&&typeof E.getDerivedStateFromError!=="function"?null:H.render(),v.flags|=1,c!==null&&N?(v.child=Xa(v,c.child,null,D),v.child=Xa(v,null,E,D)):Nt(c,v,E,D),v.memoizedState=H.state,c=v.child):c=zr(c,v,D),c}function uv(c,v,E,N){return Ia(),v.flags|=256,Nt(c,v,E,N),v.child}var Jd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Wd(c){return{baseLanes:c,cachePool:jb()}}function $d(c,v,E){return c=c!==null?c.childLanes&~E:0,v&&(c|=hn),c}function R0(c,v,E){var N=v.pendingProps,D=!1,H=(v.flags&128)!==0,q;if((q=H)||(q=c!==null&&c.memoizedState===null?!1:(Vt.current&2)!==0),q&&(D=!0,v.flags&=-129),q=(v.flags&32)!==0,v.flags&=-33,c===null){if(Ve){if(D?na(v):ra(),(c=st)?(c=R1(c,Rn),c=c!==null&&c.data!=="&"?c:null,c!==null&&(v.memoizedState={dehydrated:c,treeContext:ua!==null?{id:nr,overflow:rr}:null,retryLane:536870912,hydrationErrors:null},E=Hb(c),E.return=v,v.child=E,_t=v,st=null)):c=null,c===null)throw sa(v);return Sp(c)?v.lanes=32:v.lanes=536870912,null}if(H=N.children,N=N.fallback,D)return ra(),D=v.mode,H=dc({mode:"hidden",children:H},D),N=Ha(N,D,E,null),H.return=v,N.return=v,H.sibling=N,v.child=H,N=v.child,N.memoizedState=Wd(E),N.childLanes=$d(c,q,E),v.memoizedState=Jd,gl(null,N);return na(v),cp(v,H)}var Y=c.memoizedState;if(Y!==null){var I=Y.dehydrated;if(I!==null)return MT(c,v,H,q,N,I,Y,E)}if(D)return ra(),D=N.fallback,H=v.mode,Y=c.child,I=Y.sibling,N=kr(Y,{mode:"hidden",children:N.children}),N.subtreeFlags=Y.subtreeFlags&1206910976,I!==null?D=kr(I,D):(D=Ha(D,H,E,null),D.flags|=2),D.return=v,N.return=v,N.sibling=D,v.child=N,gl(null,N),N=v.child,D=c.child.memoizedState,D===null?D=Wd(E):(H=D.cachePool,H!==null?(Y=kt._currentValue,H=H.parent!==Y?{parent:Y,pool:Y}:H):H=jb(),D={baseLanes:D.baseLanes|E,cachePool:H}),N.memoizedState=D,N.childLanes=$d(c,q,E),v.memoizedState=Jd,gl(c.child,N);return na(v),E=c.child,c=E.sibling,E=kr(E,{mode:"visible",children:N.children}),E.return=v,E.sibling=null,c!==null&&(q=v.deletions,q===null?(v.deletions=[c],v.flags|=16):q.push(c)),v.child=E,v.memoizedState=null,E}function cp(c,v){return v=dc({mode:"visible",children:v},c.mode),v.return=c,c.child=v}function dc(c,v){return c=rn(22,c,null,v),c.lanes=0,c}function Zu(c,v,E){return Xa(v,c.child,null,E),c=cp(v,v.pendingProps.children),c.flags|=2,v.memoizedState=null,c}function MT(c,v,E,N,D,H,q,Y){if(E){if(v.flags&256)return na(v),v.flags&=-257,Zu(c,v,Y);if(v.memoizedState!==null)return ra(),v.child=c.child,v.flags|=128,null;return ra(),H=D.fallback,q=v.mode,D=dc({mode:"visible",children:D.children},q),H=Ha(H,q,Y,null),H.flags|=2,D.return=v,H.return=v,D.sibling=H,v.child=D,Xa(v,c.child,null,Y),D=v.child,D.memoizedState=Wd(Y),D.childLanes=$d(c,N,Y),v.memoizedState=Jd,gl(null,D)}if(na(v),Sp(H)){if(N=H.nextSibling&&H.nextSibling.dataset,N)var I=N.dgst;return N=I,N!==""&&(D=Error(ve(419)),D.stack="",D.digest=N,Cl({value:D,source:null,stack:null})),Zu(c,v,Y)}if(Et||Ga(c,v,Y,!1),N=(Y&c.childLanes)!==0,Et||N){if(ca.current!==null)return Zu(c,v,Y);if(N=rt,N!==null&&(D=lb(N,Y),D!==0&&D!==q.retryLane))throw q.retryLane=D,ei(c,D),an(N,c,D),sp;return Cm(H)||Xs(),Zu(c,v,Y)}if(Cm(H))return v.flags|=192,v.child=c.child,null;return c=q.treeContext,st=Mn(H.nextSibling),_t=v,Ve=!0,ta=null,Rn=!1,c!==null&&Vb(v,c),v=cp(v,D.children),v.flags|=134221824,v}function sv(c,v,E){c.lanes|=v;var N=c.alternate;N!==null&&(N.lanes|=v),ss(c.return,v,E)}function cv(c){for(var v=null;c!==null;){var E=c.alternate;E!==null&&Ls(E)===null&&(v=c),c=c.sibling}return v}function Ku(c,v,E,N,D,H){var q=c.memoizedState;q===null?c.memoizedState={isBackwards:v,rendering:null,renderingStartTime:0,last:N,tail:E,tailMode:D,treeForkCount:H}:(q.isBackwards=v,q.rendering=null,q.renderingStartTime=0,q.last=N,q.tail=E,q.tailMode=D,q.treeForkCount=H)}function id(c){var v=c.child;for(c.child=null;v!==null;){var E=v.sibling;v.sibling=c.child,c.child=v,v=E}}function em(c,v,E){var N=v.pendingProps,D=N.revealOrder,H=N.tail;N=N.children;var q=Vt.current;if(v.flags&128)return Al(v,q),null;var Y=(q&2)!==0;if(Y?(q=q&1|2,v.flags|=128):q&=1,Al(v,q),D==="backwards"&&c!==null?(id(c),Nt(c,v,N,E),id(c)):Nt(c,v,N,E),N=Ve?Tl:0,!Y&&c!==null&&(c.flags&128)!==0)e:for(c=v.child;c!==null;){if(c.tag===13)c.memoizedState!==null&&sv(c,E,v);else if(c.tag===19)sv(c,E,v);else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===v)break e;for(;c.sibling===null;){if(c.return===null||c.return===v)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}switch(D){case"backwards":E=cv(v.child),E===null?(D=v.child,v.child=null):(D=E.sibling,E.sibling=null,id(v)),Ku(v,!0,D,null,H,N);break;case"unstable_legacy-backwards":E=null,D=v.child;for(v.child=null;D!==null;){if(c=D.alternate,c!==null&&Ls(c)===null){v.child=D;break}c=D.sibling,D.sibling=E,E=D,D=c}Ku(v,!0,E,null,H,N);break;case"together":Ku(v,!1,null,null,void 0,N);break;case"independent":v.memoizedState=null;break;default:E=cv(v.child),E===null?(D=v.child,v.child=null):(D=E.sibling,E.sibling=null),Ku(v,!1,D,E,H,N)}return v.child}function fv(c,v,E){var N=v.pendingProps;return Kr(v,v.type,N.value),Nt(c,v,N.children,E),v.child}function zr(c,v,E){if(c!==null&&(v.dependencies=c.dependencies),da|=v.lanes,(E&v.childLanes)===0)if(c!==null){if(Ga(c,v,E,!1),(E&v.childLanes)===0)return null}else return null;if(c!==null&&v.child!==c.child)throw Error(ve(153));if(v.child!==null){c=v.child,E=kr(c,c.pendingProps),v.child=E;for(E.return=v;c.sibling!==null;)c=c.sibling,E=E.sibling=kr(c,c.pendingProps),E.return=v;E.sibling=null}return v.child}function fp(c,v){if((c.lanes&v)!==0)return!0;return c=c.dependencies,c!==null&&Ms(c)?!0:!1}function _T(c,v,E){switch(v.tag){case 3:Es(v,v.stateNode.containerInfo),Kr(v,kt,c.memoizedState.cache),Ia();break;case 27:case 5:Nd(v);break;case 4:Es(v,v.stateNode.containerInfo);break;case 10:Kr(v,v.type,v.memoizedProps.value);break;case 31:if(v.memoizedState!==null)return v.flags|=128,Gd(v),null;break;case 13:var N=v.memoizedState;if(N!==null){if(N.dehydrated!==null)return na(v),v.flags|=128,null;N=Ga(c,v,E,!1);var D=v.child.childLanes;if(N||(E&D)!==0)return R0(c,v,E);return na(v),c=zr(c,v,E),c!==null?c.sibling:null}na(v);break;case 19:if(v.flags&128)return em(c,v,E);if(D=(c.flags&128)!==0,N=(E&v.childLanes)!==0,N||(Ga(c,v,E,!1),N=(E&v.childLanes)!==0),D){if(N)return em(c,v,E);v.flags|=128}if(D=v.memoizedState,D!==null&&(D.rendering=null,D.tail=null,D.lastEffect=null),Al(v,Vt.current),N)break;else return null;case 22:return v.lanes=0,z0(c,v,E,v.pendingProps);case 24:Kr(v,kt,c.memoizedState.cache)}return zr(c,v,E)}function O0(c,v,E){if(c!==null)if(c.memoizedProps!==v.pendingProps)Et=!0;else{if(!fp(c,E)&&(v.flags&128)===0)return Et=!1,_T(c,v,E);Et=(c.flags&131072)!==0?!0:!1}else Et=!1,Ve&&(v.flags&1048576)!==0&&Bb(v,Tl,v.index);switch(v.lanes=0,v.tag){case 16:e:{var N=v.pendingProps;if(c=Ma(v.elementType),v.type=c,typeof c==="function")Im(c)?(N=Za(c,N),v.tag=1,v=lv(null,v,c,N,E)):(v.tag=0,v=Kd(null,v,c,N,E));else{if(c!==void 0&&c!==null){var D=c.$$typeof;if(D===Om){v.tag=11,v=nv(null,v,c,N,E);break e}else if(D===Mm){v.tag=14,v=rv(null,v,c,N,E);break e}else if(D===er){v.tag=10,v.type=c,v=fv(null,v,E);break e}}throw v=Td(c)||c,Error(ve(306,v,""))}}return v;case 0:return Kd(c,v,v.type,v.pendingProps,E);case 1:return N=v.type,D=Za(N,v.pendingProps),lv(c,v,N,D,E);case 3:e:{if(Es(v,v.stateNode.containerInfo),c===null)throw Error(ve(387));N=v.pendingProps;var H=v.memoizedState;D=H.element,jd(c,v),pl(v,N,null,E);var q=v.memoizedState;if(N=q.cache,Kr(v,kt,N),N!==H.cache&&Vd(v,[kt],E,!0),ml(),N=q.element,H.isDehydrated)if(H={element:N,isDehydrated:!1,cache:q.cache},v.updateQueue.baseState=H,v.memoizedState=H,v.flags&256){v=uv(c,v,N,E);break e}else if(N!==D){D=zn(Error(ve(424)),v),Cl(D),v=uv(c,v,N,E);break e}else{switch(c=v.stateNode.containerInfo,c.nodeType){case 9:c=c.body;break;default:c=c.nodeName==="HTML"?c.ownerDocument.body:c}st=Mn(c.firstChild),_t=v,Ve=!0,ta=null,Rn=!0,E=Gb(v,null,N,E);for(v.child=E;E;)E.flags=E.flags&-3|134221824,E=E.sibling}else{if(Ia(),N===D){v=zr(c,v,E);break e}Nt(c,v,N,E)}v=v.child}return v;case 26:return Ei(c,v),c===null?(E=Uv(v.type,null,v.pendingProps,null))?v.memoizedState=E:Ve||(v.stateNode=w1(v.type,v.pendingProps,ea.current,v)):v.memoizedState=Uv(v.type,c.memoizedProps,v.pendingProps,c.memoizedState),null;case 27:return Nd(v),c===null&&Ve&&(N=v.stateNode=O1(v.type,v.pendingProps,ea.current),_t=v,Rn=!0,D=st,pa(v.type)?(Nm=D,st=Mn(N.firstChild)):st=D),Nt(c,v,v.pendingProps.children,E),Ei(c,v),c===null&&(v.flags|=4194304),v.child;case 5:if(c===null&&Ve){if(D=N=st)N=TC(N,v.type,v.pendingProps,Rn),N!==null?(v.stateNode=N,_t=v,st=Mn(N.firstChild),Rn=!1,D=!0):D=!1;D||sa(v)}return Nd(v),D=v.type,H=v.pendingProps,q=c!==null?c.memoizedProps:null,N=H.children,km(D,H)?N=null:q!==null&&km(D,q)&&(v.flags|=32),v.memoizedState!==null&&(D=Wm(c,v,bT,null,null,E),oo._currentValue=D),Ei(c,v),Nt(c,v,N,E),v.child;case 6:if(c===null&&Ve){if(c=E=st)E=CC(E,v.pendingProps,Rn),E!==null?(v.stateNode=E,_t=v,st=null,c=!0):c=!1;c||sa(v)}return null;case 13:return R0(c,v,E);case 4:return Es(v,v.stateNode.containerInfo),N=v.pendingProps,c===null?v.child=Xa(v,null,N,E):Nt(c,v,N,E),v.child;case 11:return nv(c,v,v.type,v.pendingProps,E);case 7:return N=v.pendingProps,Ei(c,v),Nt(c,v,N,E),v.child;case 8:return Nt(c,v,v.pendingProps.children,E),v.child;case 12:return Nt(c,v,v.pendingProps.children,E),v.child;case 10:return fv(c,v,E);case 9:return D=v.type._context,N=v.pendingProps.children,Pa(v),D=Ht(D),N=N(D),v.flags|=1,Nt(c,v,N,E),v.child;case 14:return rv(c,v,v.type,v.pendingProps,E);case 15:return A0(c,v,v.type,v.pendingProps,E);case 19:return em(c,v,E);case 31:return OT(c,v,E);case 22:return z0(c,v,E,v.pendingProps);case 24:return Pa(v),N=Ht(kt),c===null?(D=Qm(),D===null&&(D=rt,H=Pm(),D.pooledCache=H,H.refCount++,H!==null&&(D.pooledCacheLanes|=E),D=H),v.memoizedState={parent:N,cache:D},Fm(v),Kr(v,kt,D)):((c.lanes&E)!==0&&(jd(c,v),pl(v,null,null,E),ml()),D=c.memoizedState,H=v.memoizedState,D.parent!==N?(D={parent:N,cache:N},v.memoizedState=D,v.lanes===0&&(v.memoizedState=v.updateQueue.baseState=D),Kr(v,kt,N)):(N=H.cache,Kr(v,kt,N),N!==D.cache&&Vd(v,[kt],E,!0))),Nt(c,v,v.pendingProps.children,E),v.child;case 30:return v.stateNode===null&&(v.stateNode={autoName:null,paired:null,clones:null,ref:null}),N=v.pendingProps,N.name!=null&&N.name!=="auto"?v.flags|=c===null?18882560:18874368:Ve&&oc(v),c!==null&&c.memoizedProps.name!==N.name?v.flags|=4194816:Ei(c,v),Nt(c,v,N.children,E),v.child;case 29:throw v.pendingProps}throw Error(ve(156,v.tag))}function xr(c){c.flags|=4}function od(c,v,E,N,D){var H;if(H=(c.mode&32)!==0)H=E===null?Vv(v,N):Vv(v,N)&&(N.src!==E.src||N.srcSet!==E.srcSet);if(H){if(c.flags|=16777216,(D&335544128)===D)if(c.stateNode.complete)c.flags|=8192;else if(o1())c.flags|=8192;else throw Va=_s,Xm}else c.flags&=-16777217}function dv(c,v){if(v.type!=="stylesheet"||(v.state.loading&4)!==0)c.flags&=-16777217;else if(c.flags|=16777216,!L1(v))if(o1())c.flags|=8192;else throw Va=_s,Xm}function Ju(c,v){v!==null&&(c.flags|=4),c.flags&16384&&(v=c.tag!==22?ab():536870912,c.lanes|=v,eo|=v)}function Ko(c,v){if(!Ve)switch(c.tailMode){case"visible":break;case"collapsed":for(var E=c.tail,N=null;E!==null;)E.alternate!==null&&(N=E),E=E.sibling;N===null?v||c.tail===null?c.tail=null:c.tail.sibling=null:N.sibling=null;break;default:v=c.tail;for(E=null;v!==null;)v.alternate!==null&&(E=v),v=v.sibling;E===null?c.tail=null:E.sibling=null}}function ut(c){var v=c.alternate!==null&&c.alternate.child===c.child,E=0,N=0;if(v)for(var D=c.child;D!==null;)E|=D.lanes|D.childLanes,N|=D.subtreeFlags&1206910976,N|=D.flags&1206910976,D.return=c,D=D.sibling;else for(D=c.child;D!==null;)E|=D.lanes|D.childLanes,N|=D.subtreeFlags,N|=D.flags,D.return=c,D=D.sibling;return c.subtreeFlags|=N,c.childLanes=E,v}function DT(c,v,E){var N=v.pendingProps;switch(Gm(v),v.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ut(v),null;case 1:return ut(v),null;case 3:if(E=v.stateNode,N=null,c!==null&&(N=c.memoizedState.cache),v.memoizedState.cache!==N&&(v.flags|=2048),Er(kt),Ki(),E.pendingContext&&(E.context=E.pendingContext,E.pendingContext=null),c===null||c.child===null)Si(v)?xr(v):c===null||c.memoizedState.isDehydrated&&(v.flags&256)===0||(v.flags|=1024,td());return ut(v),null;case 26:var{type:D,memoizedState:H}=v;return c===null?(xr(v),H!==null?(ut(v),dv(v,H)):(ut(v),od(v,D,null,N,E))):H?H!==c.memoizedState?(xr(v),ut(v),dv(v,H)):(ut(v),v.flags&=-16777217):(c=c.memoizedProps,c!==N&&xr(v),ut(v),od(v,D,c,N,E)),null;case 27:if(Ts(v),E=ea.current,D=v.type,c!==null&&v.stateNode!=null)c.memoizedProps!==N&&xr(v);else{if(!N){if(v.stateNode===null)throw Error(ve(166));return ut(v),v.subtreeFlags&=-33554433,null}c=ar.current,Si(v)?Vy(v,c):(c=O1(D,N,E),v.stateNode=c,xr(v))}return ut(v),v.subtreeFlags&=-33554433,null;case 5:if(Ts(v),D=v.type,c!==null&&v.stateNode!=null)c.memoizedProps!==N&&xr(v);else{if(!N){if(v.stateNode===null)throw Error(ve(166));return ut(v),v.subtreeFlags&=-33554433,null}if(H=ar.current,Si(v))Vy(v,H);else{var q=Ml(ea.current);switch(H){case 1:H=q.createElementNS("http://www.w3.org/2000/svg",D);break;case 2:H=q.createElementNS("http://www.w3.org/1998/Math/MathML",D);break;default:switch(D){case"svg":H=q.createElementNS("http://www.w3.org/2000/svg",D);break;case"math":H=q.createElementNS("http://www.w3.org/1998/Math/MathML",D);break;case"script":H=q.createElement("div"),H.innerHTML="<script></script>",H=H.removeChild(H.firstChild);break;case"select":H=typeof N.is==="string"?q.createElement("select",{is:N.is}):q.createElement("select"),N.multiple?H.multiple=!0:N.size&&(H.size=N.size);break;default:H=typeof N.is==="string"?q.createElement(D,{is:N.is}):q.createElement(D)}}H[Ut]=v,H[ln]=N;e:for(q=v.child;q!==null;){if(q.tag===5||q.tag===6)H.appendChild(q.stateNode);else if(q.tag!==4&&q.tag!==27&&q.child!==null){q.child.return=q,q=q.child;continue}if(q===v)break e;for(;q.sibling===null;){if(q.return===null||q.return===v)break e;q=q.return}q.sibling.return=q.return,q=q.sibling}v.stateNode=H;e:switch(qt(H,D,N),D){case"button":case"input":case"select":case"textarea":N=!!N.autoFocus;break e;case"img":N=!0;break e;default:N=!1}N&&xr(v)}}return ut(v),v.subtreeFlags&=-33554433,od(v,v.type,c===null?null:c.memoizedProps,v.pendingProps,E),null;case 6:if(c&&v.stateNode!=null)c.memoizedProps!==N&&xr(v);else{if(typeof N!=="string"&&v.stateNode===null)throw Error(ve(166));if(c=ea.current,Si(v)){if(c=v.stateNode,E=v.memoizedProps,N=null,D=_t,D!==null)switch(D.tag){case 27:case 5:N=D.memoizedProps}c[Ut]=v,c=c.nodeValue===E||N!==null&&N.suppressHydrationWarning===!0||b1(c.nodeValue,E)?!0:!1,c||sa(v,!0)}else c=Ml(c).createTextNode(N),c[Ut]=v,v.stateNode=c}return ut(v),null;case 31:if(E=v.memoizedState,c===null||c.memoizedState!==null){if(N=Si(v),E!==null){if(c===null){if(!N)throw Error(ve(318));if(c=v.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(ve(557));c[Ut]=v}else Ia(),(v.flags&128)===0&&(v.memoizedState=null),v.flags|=4;ut(v),c=!1}else E=td(),c!==null&&c.memoizedState!==null&&(c.memoizedState.hydrationErrors=E),c=!0;if(!c){if(v.flags&256)return mn(v),v;return mn(v),null}if((v.flags&128)!==0)throw Error(ve(558))}return ut(v),null;case 13:if(N=v.memoizedState,c===null||c.memoizedState!==null&&c.memoizedState.dehydrated!==null){if(D=Si(v),N!==null&&N.dehydrated!==null){if(c===null){if(!D)throw Error(ve(318));if(D=v.memoizedState,D=D!==null?D.dehydrated:null,!D)throw Error(ve(317));D[Ut]=v}else Ia(),(v.flags&128)===0&&(v.memoizedState=null),v.flags|=4;ut(v),D=!1}else D=td(),c!==null&&c.memoizedState!==null&&(c.memoizedState.hydrationErrors=D),D=!0;if(!D){if(v.flags&256)return mn(v),v;return mn(v),null}}if(mn(v),(v.flags&128)!==0)return v.lanes=E,v;return E=N!==null,c=c!==null&&c.memoizedState!==null,E&&(N=v.child,D=null,N.alternate!==null&&N.alternate.memoizedState!==null&&N.alternate.memoizedState.cachePool!==null&&(D=N.alternate.memoizedState.cachePool.pool),H=null,N.memoizedState!==null&&N.memoizedState.cachePool!==null&&(H=N.memoizedState.cachePool.pool),H!==D&&(N.flags|=2048)),E!==c&&E&&(v.child.flags|=8192),Ju(v,v.updateQueue),ut(v),null;case 4:return Ki(),c===null&&y1(v.stateNode.containerInfo),v.flags|=67108864,ut(v),null;case 10:return Er(v.type),ut(v),null;case 19:if(Km(v),N=v.memoizedState,N===null)return ut(v),null;if(D=(v.flags&128)!==0,H=N.rendering,H===null)if(D)Ko(N,!1);else{if(ht!==0||c!==null&&(c.flags&128)!==0)for(c=v.child;c!==null;){if(H=Ls(c),H!==null){v.flags|=128,Ko(N,!1),c=H.updateQueue,v.updateQueue=c,Ju(v,c),v.subtreeFlags=0,c=E;for(E=v.child;E!==null;)Ub(E,c),E=E.sibling;return Al(v,Vt.current&1|2),Ve&&wr(v,N.treeForkCount),v.child}c=c.sibling}N.tail!==null&&gn()>Ps&&(v.flags|=128,D=!0,Ko(N,!1),v.lanes=4194304)}else{if(!D)if(c=Ls(H),c!==null){if(v.flags|=128,D=!0,c=c.updateQueue,v.updateQueue=c,Ju(v,c),Ko(N,!0),N.tail===null&&N.tailMode!=="collapsed"&&N.tailMode!=="visible"&&!H.alternate&&!Ve)return ut(v),null}else 2*gn()-N.renderingStartTime>Ps&&E!==536870912&&(v.flags|=128,D=!0,Ko(N,!1),v.lanes=4194304);N.isBackwards?(H.sibling=v.child,v.child=H):(c=N.last,c!==null?c.sibling=H:v.child=H,N.last=H)}if(N.tail!==null){c=N.tail;e:{for(E=c;E!==null;){if(E.alternate!==null){E=!1;break e}E=E.sibling}E=!0}return N.rendering=c,N.tail=c.sibling,N.renderingStartTime=gn(),c.sibling=null,H=Vt.current,H=D?H&1|2:H&1,N.tailMode==="visible"||N.tailMode==="collapsed"||!E||Ve?Al(v,H):(E=H,ct(jt,v),ct(Vt,E),Pt===null&&(Pt=v)),Ve&&wr(v,N.treeForkCount),c}return ut(v),null;case 22:case 23:return mn(v),Zm(),N=v.memoizedState!==null,c!==null?c.memoizedState!==null!==N&&(v.flags|=8192):N&&(v.flags|=8192),N?(E&536870912)!==0&&(v.flags&128)===0&&(ut(v),v.subtreeFlags&6&&(v.flags|=8192)):ut(v),E=v.updateQueue,E!==null&&Ju(v,E.retryQueue),E=null,c!==null&&c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(E=c.memoizedState.cachePool.pool),N=null,v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(N=v.memoizedState.cachePool.pool),N!==E&&(v.flags|=2048),c!==null&&Bt(Ba),null;case 24:return E=null,c!==null&&(E=c.memoizedState.cache),v.memoizedState.cache!==E&&(v.flags|=2048),Er(kt),ut(v),null;case 25:return null;case 30:return v.flags|=33554432,ut(v),null}throw Error(ve(156,v.tag))}function LT(c,v){switch(Gm(v),v.tag){case 1:return c=v.flags,c&65536?(v.flags=c&-65537|128,v):null;case 3:return Er(kt),Ki(),c=v.flags,(c&65536)!==0&&(c&128)===0?(v.flags=c&-65537|128,v):null;case 26:case 27:case 5:return Ts(v),null;case 31:if(v.memoizedState!==null){if(mn(v),v.alternate===null)throw Error(ve(340));Ia()}return c=v.flags,c&65536?(v.flags=c&-65537|128,v):null;case 13:if(mn(v),c=v.memoizedState,c!==null&&c.dehydrated!==null){if(v.alternate===null)throw Error(ve(340));Ia()}return c=v.flags,c&65536?(v.flags=c&-65537|128,v):null;case 19:return Km(v),c=v.flags,c&65536?(v.flags=c&-65537|128,c=v.memoizedState,c!==null&&(c.rendering=null,c.tail=null),v.flags|=4,v):null;case 4:return Ki(),null;case 10:return Er(v.type),null;case 22:case 23:return mn(v),Zm(),c!==null&&Bt(Ba),c=v.flags,c&65536?(v.flags=c&-65537|128,v):null;case 24:return Er(kt),null;case 25:return null;default:return null}}function M0(c,v){switch(Gm(v),v.tag){case 3:Er(kt),Ki();break;case 26:case 27:case 5:Ts(v);break;case 4:Ki();break;case 31:v.memoizedState!==null&&mn(v);break;case 13:mn(v);break;case 19:Km(v);break;case 10:Er(v.type);break;case 22:case 23:mn(v),Zm(),c!==null&&Bt(Ba);break;case 24:Er(kt)}}function Pl(c,v){try{var E=v.updateQueue,N=E!==null?E.lastEffect:null;if(N!==null){var D=N.next;E=D;do{if((E.tag&c)===c){N=void 0;var H=E.create,q=E.inst;N=H(),q.destroy=N}E=E.next}while(E!==D)}}catch(Y){et(v,v.return,Y)}}function fa(c,v,E){try{var N=v.updateQueue,D=N!==null?N.lastEffect:null;if(D!==null){var H=D.next;N=H;do{if((N.tag&c)===c){var q=N.inst,Y=q.destroy;if(Y!==void 0){q.destroy=void 0,D=v;var I=E,Q=Y;try{Q()}catch(F){et(D,I,F)}}}N=N.next}while(N!==H)}}catch(F){et(v,v.return,F)}}function _0(c){var v=c.updateQueue;if(v!==null){var E=c.stateNode;try{Qb(v,E)}catch(N){et(c,c.return,N)}}}function D0(c,v,E){E.props=Za(c.type,c.memoizedProps),E.state=c.memoizedState;try{E.componentWillUnmount()}catch(N){et(c,v,N)}}function Wn(c,v){try{var E=c.ref;if(E!==null){switch(c.tag){case 26:case 27:case 5:var N=c.stateNode;break;case 30:var D=c.stateNode,H=Cr(c.memoizedProps,D);if(D.ref===null||D.ref.name!==H)D.ref=T1(H);N=D.ref;break;case 7:if(c.stateNode===null){var q=new xn(c);on(c.child,!1,kC,q,void 0,void 0),c.stateNode=q}N=c.stateNode;break;default:N=c.stateNode}typeof E==="function"?c.refCleanup=E(N):E.current=N}}catch(Y){et(c,v,Y)}}function Lt(c,v){var E=c.ref,N=c.refCleanup;if(E!==null)if(typeof N==="function")try{N()}catch(D){et(c,v,D)}finally{c.refCleanup=null,c=c.alternate,c!=null&&(c.refCleanup=null)}else if(typeof E==="function")try{E(null)}catch(D){et(c,v,D)}else E.current=null}function qs(c,v){if((c.tag===5||c.tag===27||c.tag===6)&&c.alternate===null&&v!==null)for(var E=0;E<v.length;E++)z1(c.stateNode,v[E])}function mv(c){for(var v=c.return;v!==null;){if(mp(v)&&z1(c.stateNode,v.stateNode),dp(v))break;v=v.return}}function yl(c){for(var v=c.return;v!==null;){if(mp(v)&&EC(c.stateNode,v.stateNode),dp(v))break;v=v.return}}function dp(c){return c.tag===5||c.tag===3||c.tag===27}function mp(c){return c&&c.tag===7&&c.stateNode!==null}function tm(c){var{type:v,memoizedProps:E,stateNode:N}=c;try{e:switch(v){case"button":case"input":case"select":case"textarea":E.autoFocus&&N.focus();break e;case"img":E.src?N.src=E.src:E.srcSet&&(N.srcset=E.srcSet)}}catch(D){et(c,c.return,D)}}function ld(c,v,E){try{var N=c.stateNode;iC(N,c.type,E,v),N[ln]=v}catch(D){et(c,c.return,D)}}function L0(c){return c.tag===5||c.tag===3||c.tag===26||c.tag===27&&pa(c.type)||c.tag===4}function ud(c){e:for(;;){for(;c.sibling===null;){if(c.return===null||L0(c.return))return null;c=c.return}c.sibling.return=c.return;for(c=c.sibling;c.tag!==5&&c.tag!==6&&c.tag!==18;){if(c.tag===27&&pa(c.type))continue e;if(c.flags&2)continue e;if(c.child===null||c.tag===4)continue e;else c.child.return=c,c=c.child}if(!(c.flags&2))return c.stateNode}}function nm(c,v,E,N){var D=c.tag;if(D===5||D===6)D=c.stateNode,v?(E.nodeType===9?E.body:E.nodeName==="HTML"?E.ownerDocument.body:E).insertBefore(D,v):(v=E.nodeType===9?E.body:E.nodeName==="HTML"?E.ownerDocument.body:E,v.appendChild(D),E=E._reactRootContainer,E!==null&&E!==void 0||v.onclick!==null||(v.onclick=tr)),qs(c,N),Qe=!0;else if(D!==4&&(D===27&&(qs(c,N),N=null,pa(c.type)&&(E=c.stateNode,v=null)),c=c.child,c!==null))for(nm(c,v,E,N),c=c.sibling;c!==null;)nm(c,v,E,N),c=c.sibling}function js(c,v,E,N){var D=c.tag;if(D===5||D===6)D=c.stateNode,v?E.insertBefore(D,v):E.appendChild(D),qs(c,N),Qe=!0;else if(D!==4&&(D===27&&(qs(c,N),N=null,pa(c.type)&&(E=c.stateNode)),c=c.child,c!==null))for(js(c,v,E,N),c=c.sibling;c!==null;)js(c,v,E,N),c=c.sibling}function U0(c){var{stateNode:v,memoizedProps:E}=c;try{for(var N=c.type,D=v.attributes;D.length;)v.removeAttributeNode(D[0]);qt(v,N,E),v[Ut]=c,v[ln]=E}catch(H){et(c,c.return,H)}}var Ys=!1,pn=null;function pv(c){if(c.tag===30||(c.subtreeFlags&33554432)!==0)Ys=!0}var $n=null;function hv(){var c=$n;return $n=null,c}var nn=0;function fo(c,v,E,N,D){return nn=0,H0(c.child,v,E,N,D)}function H0(c,v,E,N,D){for(var H=!1;c!==null;){if(c.tag===5){var q=c.stateNode;if(N!==null){var Y=Em(q);N.push(Y),Y.view&&(H=!0)}else H||Em(q).view&&(H=!0);Ys=!0,S1(q,nn===0?v:v+"_"+nn,E),nn++}else if(c.tag!==22||c.memoizedState===null)c.tag===30&&D||H0(c.child,v,E,N,D)&&(H=!0);c=c.sibling}return H}function or(c,v){for(;c!==null;){if(c.tag===5)k1(c.stateNode,c.memoizedProps);else if(c.tag!==22||c.memoizedState===null)c.tag===30&&v||or(c.child,v);c=c.sibling}}function ps(c){if((c.subtreeFlags&18874368)!==0)for(c=c.child;c!==null;){if(c.tag!==22||c.memoizedState===null){if(ps(c),c.tag===30&&(c.flags&18874368)!==0&&c.stateNode.paired){var v=c.memoizedProps;if(v.name==null||v.name==="auto")throw Error(ve(544));var E=v.name;v=Mr(v.default,v.share),v!=="none"&&(fo(c,E,v,null,!1)||or(c.child,!1))}}c=c.sibling}}function rm(c,v){if(c.tag===30){var E=c.stateNode,N=c.memoizedProps,D=Cr(N,E),H=Mr(N.default,E.paired?N.share:N.enter);H!=="none"?fo(c,D,H,null,!1)?(ps(c),E.paired||v||to(c,N.onEnter)):or(c.child,!1):ps(c)}else if((c.subtreeFlags&33554432)!==0)for(c=c.child;c!==null;)rm(c,v),c=c.sibling;else ps(c)}function am(c){if(pn!==null&&pn.size!==0){var v=pn;if((c.subtreeFlags&18874368)!==0)for(c=c.child;c!==null;){if(c.tag!==22||c.memoizedState===null){if(c.tag===30&&(c.flags&18874368)!==0){var E=c.memoizedProps,N=E.name;if(N!=null&&N!=="auto"){var D=v.get(N);if(D!==void 0){var H=Mr(E.default,E.share);if(H!=="none"&&(fo(c,N,H,null,!1)?(H=c.stateNode,D.paired=H,H.paired=D,to(c,E.onShare)):or(c.child,!1)),v.delete(N),v.size===0)break}}}am(c)}c=c.sibling}}}function im(c){if(c.tag===30){var v=c.memoizedProps,E=Cr(v,c.stateNode),N=pn!==null?pn.get(E):void 0,D=Mr(v.default,N!==void 0?v.share:v.exit);D!=="none"&&(fo(c,E,D,null,!1)?N!==void 0?(D=c.stateNode,N.paired=D,D.paired=N,pn.delete(E),to(c,v.onShare)):to(c,v.onExit):or(c.child,!1)),pn!==null&&am(c)}else if((c.subtreeFlags&33554432)!==0)for(c=c.child;c!==null;)im(c),c=c.sibling;else pn!==null&&am(c)}function B0(c){for(c=c.child;c!==null;){if(c.tag===30){var v=c.memoizedProps,E=Cr(v,c.stateNode);v=Mr(v.default,v.update),c.flags&=-5,v!=="none"&&fo(c,E,v,c.memoizedState=[],!1)}else(c.subtreeFlags&33554432)!==0&&B0(c);c=c.sibling}}function om(c){if((c.subtreeFlags&18874368)!==0)for(c=c.child;c!==null;){if(c.tag!==22||c.memoizedState===null){if(c.tag===30&&(c.flags&18874368)!==0){var v=c.stateNode;v.paired!==null&&(v.paired=null,or(c.child,!1))}om(c)}c=c.sibling}}function hs(c){if(c.tag===30)c.stateNode.paired=null,or(c.child,!1),om(c);else if((c.subtreeFlags&33554432)!==0)for(c=c.child;c!==null;)hs(c),c=c.sibling;else om(c)}function V0(c){for(c=c.child;c!==null;)c.tag===30?or(c.child,!1):(c.subtreeFlags&33554432)!==0&&V0(c),c=c.sibling}function pp(c,v,E,N,D,H,q){for(var Y=!1;v!==null;){if(v.tag===5){var I=v.stateNode;if(H!==null&&nn<H.length){var Q=H[nn],F=Em(I);if(Q.view||F.view)Y=!0;var ee;if(ee=(c.flags&4)===0)if(F.clip)ee=!0;else{ee=Q.rect;var te=F.rect;ee=ee.y!==te.y||ee.x!==te.x||ee.height!==te.height||ee.width!==te.width}ee&&(c.flags|=4),F.abs?F=!Q.abs:(Q=Q.rect,F=F.rect,F=Q.height!==F.height||Q.width!==F.width),F&&(c.flags|=32)}else c.flags|=32;(c.flags&4)!==0&&S1(I,nn===0?E:E+"_"+nn,D),Y&&(c.flags&4)!==0||($n===null&&($n=[]),$n.push(I,nn===0?N:N+"_"+nn,v.memoizedProps)),nn++}else if(v.tag!==22||v.memoizedState===null)v.tag===30&&q?c.flags|=v.flags&32:pp(c,v.child,E,N,D,H,q)&&(Y=!0);v=v.sibling}return Y}function q0(c,v){for(c=c.child;c!==null;){if(c.tag===30){var E=c.memoizedProps,N=c.stateNode,D=Cr(E,N),H=Mr(E.default,E.update);if(v){N=N.clones;var q=N===null?null:N.map(fC)}else q=c.memoizedState,c.memoizedState=null;N=c;var Y=c.child;nn=0,D=pp(N,Y,D,D,H,q,!1),(c.flags&4)!==0&&D&&(v||to(c,E.onUpdate))}else(c.subtreeFlags&33554432)!==0&&q0(c,v);c=c.sibling}}var Rt=!1,Ke=!1,Zn=!1,sd=!1,gv=typeof WeakSet==="function"?WeakSet:Set,Ot=null,Kn=!1,il=!1,Is=!1,lm=!1;function UT(c,v,E){if(c=c.containerInfo,wm=lo,c=Ab(c),qm(c)){if("selectionStart"in c)var N={start:c.selectionStart,end:c.selectionEnd};else e:{N=(N=c.ownerDocument)&&N.defaultView||window;var D=N.getSelection&&N.getSelection();if(D&&D.rangeCount!==0){N=D.anchorNode;var H=D.anchorOffset,q=D.focusNode;D=D.focusOffset;try{N.nodeType,q.nodeType}catch(ce){N=null;break e}var Y=0,I=-1,Q=-1,F=0,ee=0,te=c,ne=null;t:for(;;){for(var ie;;){if(te!==N||H!==0&&te.nodeType!==3||(I=Y+H),te!==q||D!==0&&te.nodeType!==3||(Q=Y+D),te.nodeType===3&&(Y+=te.nodeValue.length),(ie=te.firstChild)===null)break;ne=te,te=ie}for(;;){if(te===c)break t;if(ne===N&&++F===H&&(I=Y),ne===q&&++ee===D&&(Q=Y),(ie=te.nextSibling)!==null)break;te=ne,ne=te.parentNode}te=ie}N=I===-1||Q===-1?null:{start:I,end:Q}}else N=null}N=N||{start:0,end:0}}else N=null;Sm={focusedElem:c,selectionRange:N},lo=!1,E=(E&335544064)===E,Ot=v;for(v=E?9270:1024;Ot!==null;){if(c=Ot,E&&(N=c.deletions,N!==null))for(H=0;H<N.length;H++)E&&im(N[H]);if(c.alternate===null&&(c.flags&2)!==0)E&&pv(c),Wu(E);else{if(c.tag===22){if(N=c.alternate,c.memoizedState!==null){N!==null&&N.memoizedState===null&&E&&im(N),Wu(E);continue}else if(N!==null&&N.memoizedState!==null){E&&pv(c),Wu(E);continue}}N=c.child,(c.subtreeFlags&v)!==0&&N!==null?(N.return=c,Ot=N):(E&&B0(c),Wu(E))}}pn=null}function Wu(c){for(;Ot!==null;){var v=Ot,E=c,{alternate:N,flags:D}=v;switch(v.tag){case 0:case 11:case 15:break;case 1:if((D&1024)!==0&&N!==null){E=void 0,D=N.memoizedProps,N=N.memoizedState;var H=v.stateNode;try{var q=Za(v.type,D);E=H.getSnapshotBeforeUpdate(q,N),H.__reactInternalSnapshotBeforeUpdate=E}catch(Y){et(v,v.return,Y)}}break;case 3:if((D&1024)!==0){if(N=v.stateNode.containerInfo,E=N.nodeType,E===9)Tm(N);else if(E===1)switch(N.nodeName){case"HEAD":case"HTML":case"BODY":Tm(N);break;default:N.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:E&&N!==null&&(E=Cr(N.memoizedProps,N.stateNode),D=v.memoizedProps,D=Mr(D.default,D.update),D!=="none"&&fo(N,E,D,N.memoizedState=[],!0));break;default:if((D&1024)!==0)throw Error(ve(163))}if(N=v.sibling,N!==null){N.return=v.return,Ot=N;break}Ot=v.return}}function j0(c,v,E){var N=E.flags;switch(E.tag){case 0:case 11:case 15:Jn(c,E),N&4&&Pl(5,E);break;case 1:if(Jn(c,E),N&4)if(c=E.stateNode,v===null)try{c.componentDidMount()}catch(q){et(E,E.return,q)}else{var D=Za(E.type,v.memoizedProps);v=v.memoizedState;try{c.componentDidUpdate(D,v,c.__reactInternalSnapshotBeforeUpdate)}catch(q){et(E,E.return,q)}}N&64&&_0(E),N&512&&Wn(E,E.return);break;case 3:if(Jn(c,E),N&64&&(c=E.updateQueue,c!==null)){if(v=null,E.child!==null)switch(E.child.tag){case 27:case 5:v=E.child.stateNode;break;case 1:v=E.child.stateNode}try{Qb(c,v)}catch(q){et(E,E.return,q)}}break;case 27:v===null&&N&4&&U0(E);case 26:case 5:Jn(c,E),v===null&&N&4&&tm(E),N&512&&Wn(E,E.return);break;case 12:Jn(c,E);break;case 31:Jn(c,E),N&4&&P0(c,E);break;case 13:Jn(c,E),N&4&&Q0(c,E),N&64&&(c=E.memoizedState,c!==null&&(c=c.dehydrated,c!==null&&(E=FT.bind(null,E),NC(c,E))));break;case 22:if(N=E.memoizedState!==null||Rt,!N){var H=v!==null&&v.memoizedState!==null||Ke;v=Rt,D=Ke,Rt=N,(Ke=H)&&!D?(N=2,(E.subtreeFlags&8772)!==0&&(N|=1),qn(c,E,N)):Jn(c,E),Rt=v,Ke=D}break;case 30:Jn(c,E),N&512&&Wn(E,E.return);break;case 7:N&512&&Wn(E,E.return);default:Jn(c,E)}}function um(c,v){for(c=c.child;c!==null;)Y0(c,v),c=c.sibling}function Y0(c,v){switch(c.tag){case 5:case 26:try{var E=c.stateNode;if(v){var N=E.style;typeof N.setProperty==="function"?N.setProperty("display","none","important"):N.display="none"}else{var D=c.stateNode,H=c.memoizedProps.style,q=H!==void 0&&H!==null&&H.hasOwnProperty("display")?H.display:null;D.style.display=q==null||typeof q==="boolean"?"":(""+q).trim()}}catch(I){et(c,c.return,I)}sm(c,v);break;case 6:try{c.stateNode.nodeValue=v?"":c.memoizedProps,Qe=!0}catch(I){et(c,c.return,I)}break;case 18:try{var Y=c.stateNode;v?Rv(Y,!0):Rv(c.stateNode,!1)}catch(I){et(c,c.return,I)}break;case 22:case 23:c.memoizedState===null&&um(c,v);break;default:um(c,v)}}function sm(c,v){if(c.subtreeFlags&67108864)for(c=c.child;c!==null;){e:{var E=c,N=v;switch(E.tag){case 4:Y0(E,N);break e;case 22:E.memoizedState===null&&sm(E,N);break e;default:sm(E,N)}}c=c.sibling}}function I0(c){var v=c.alternate;v!==null&&(c.alternate=null,I0(v)),c.child=null,c.deletions=null,c.sibling=null,c.tag===5&&(v=c.stateNode,v!==null&&ec(v)),c.stateNode=null,c.return=null,c.dependencies=null,c.memoizedProps=null,c.memoizedState=null,c.pendingProps=null,c.stateNode=null,c.updateQueue=null}var dt=null,en=!1;function Vn(c,v,E){for(E=E.child;E!==null;)G0(c,v,E),E=E.sibling}function G0(c,v,E){if(yn&&typeof yn.onCommitFiberUnmount==="function")try{yn.onCommitFiberUnmount(Bl,E)}catch(H){}switch(E.tag){case 26:Ke||Lt(E,v),Vn(c,v,E),E.memoizedState?E.memoizedState.count--:E.stateNode&&!Ke&&(E=E.stateNode,E.parentNode.removeChild(E));break;case 27:Ke||Lt(E,v),yl(E);var N=dt,D=en;pa(E.type)&&(dt=E.stateNode,en=!1),Vn(c,v,E),M1(E.stateNode,E.type,E.memoizedProps),dt=N,en=D;break;case 5:Ke||Lt(E,v),yl(E);case 6:if(E.tag===6&&yl(E),N=dt,D=en,dt=null,Vn(c,v,E),dt=N,en=D,dt!==null)if(en)try{(dt.nodeType===9?dt.body:dt.nodeName==="HTML"?dt.ownerDocument.body:dt).removeChild(E.stateNode),Qe=!0}catch(H){et(E,v,H)}else try{dt.removeChild(E.stateNode),Qe=!0}catch(H){et(E,v,H)}break;case 18:dt!==null&&(en?(c=dt,zv(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,E.stateNode),uo(c)):zv(dt,E.stateNode));break;case 4:N=dt,D=en,dt=E.stateNode.containerInfo,en=!0,Vn(c,v,E),dt=N,en=D;break;case 0:case 11:case 14:case 15:fa(2,E,v),Ke||fa(4,E,v),Vn(c,v,E);break;case 1:Ke||(Lt(E,v),N=E.stateNode,typeof N.componentWillUnmount==="function"&&D0(E,v,N)),Vn(c,v,E);break;case 21:Vn(c,v,E);break;case 22:Ke=(N=Ke)||E.memoizedState!==null,Vn(c,v,E),Ke=N;break;case 30:Lt(E,v),Vn(c,v,E);break;case 7:Ke||Lt(E,v),Vn(c,v,E);break;default:Vn(c,v,E)}}function P0(c,v){if(v.memoizedState===null&&(c=v.alternate,c!==null&&(c=c.memoizedState,c!==null))){c=c.dehydrated;try{uo(c)}catch(E){et(v,v.return,E)}}}function Q0(c,v){if(v.memoizedState===null&&(c=v.alternate,c!==null&&(c=c.memoizedState,c!==null&&(c=c.dehydrated,c!==null))))try{uo(c)}catch(E){et(v,v.return,E)}}function HT(c){switch(c.tag){case 31:case 13:case 19:var v=c.stateNode;return v===null&&(v=c.stateNode=new gv),v;case 22:return c=c.stateNode,v=c._retryCache,v===null&&(v=c._retryCache=new gv),v;default:throw Error(ve(435,c.tag))}}function $u(c,v){var E=HT(c);v.forEach(function(N){if(!E.has(N)){E.add(N);var D=ZT.bind(null,c,N);N.then(D,D)}})}function Zt(c,v,E){var N=v.deletions;if(N!==null)for(var D=0;D<N.length;D++){var H=N[D],q=c,Y=v,I=Y;e:for(;I!==null;){switch(I.tag){case 27:if(pa(I.type)){dt=I.stateNode,en=!1;break e}break;case 5:dt=I.stateNode,en=!1;break e;case 3:case 4:dt=I.stateNode.containerInfo,en=!0;break e}I=I.return}if(dt===null)throw Error(ve(160));G0(q,Y,H),dt=null,en=!1,q=H.alternate,q!==null&&(q.return=null),H.return=null}if(v.subtreeFlags&13886)for(v=v.child;v!==null;)X0(v,c,E),v=v.sibling}var jn=null;function X0(c,v,E){var N=c.alternate,D=c.flags;switch(c.tag){case 0:case 11:case 14:case 15:if(D&4&&(N=c.updateQueue,N=N!==null?N.events:null,N!==null))for(var H=0;H<N.length;H++){var q=N[H];q.ref.impl=q.nextImpl}Zt(v,c,E),Kt(c),D&4&&(fa(3,c,c.return),Pl(3,c),fa(5,c,c.return));break;case 1:Zt(v,c,E),Kt(c),D&512&&(Ke||N===null||Lt(N,N.return)),D&64&&Rt&&(c=c.updateQueue,c!==null&&(v=c.callbacks,v!==null&&(E=c.shared.hiddenCallbacks,c.shared.hiddenCallbacks=E===null?v:E.concat(v))));break;case 26:if(H=jn,Zt(v,c,E),Kt(c),D&512&&(Ke||N===null||Lt(N,N.return)),D&4)if(D=N!==null?N.memoizedState:null,E=c.memoizedState,N===null)if(E===null)if(c.stateNode===null)if(Rt)c.stateNode=w1(c.type,c.memoizedProps,v.containerInfo,c);else{e:{v=c.type,E=c.memoizedProps,D=H.ownerDocument||H;t:switch(v){case"title":if(N=D.getElementsByTagName("title")[0],!N||N[jl]||N[Ut]||N.namespaceURI==="http://www.w3.org/2000/svg"||N.hasAttribute("itemprop"))N=D.createElement(v),D.head.insertBefore(N,D.querySelector("head > title"));qt(N,v,E),N[Ut]=c,Mt(N),v=N;break e;case"link":if(H=Bv("link","href",D).get(v+(E.href||""))){for(q=0;q<H.length;q++)if(N=H[q],N.getAttribute("href")===(E.href==null||E.href===""?null:E.href)&&N.getAttribute("rel")===(E.rel==null?null:E.rel)&&N.getAttribute("title")===(E.title==null?null:E.title)&&N.getAttribute("crossorigin")===(E.crossOrigin==null?null:E.crossOrigin)){H.splice(q,1);break t}}N=D.createElement(v),qt(N,v,E),D.head.appendChild(N);break;case"meta":if(H=Bv("meta","content",D).get(v+(E.content||""))){for(q=0;q<H.length;q++)if(N=H[q],N.getAttribute("content")===(E.content==null?null:""+E.content)&&N.getAttribute("name")===(E.name==null?null:E.name)&&N.getAttribute("property")===(E.property==null?null:E.property)&&N.getAttribute("http-equiv")===(E.httpEquiv==null?null:E.httpEquiv)&&N.getAttribute("charset")===(E.charSet==null?null:E.charSet)){H.splice(q,1);break t}}N=D.createElement(v),qt(N,v,E),D.head.appendChild(N);break;default:throw Error(ve(468,v))}N[Ut]=c,Mt(N),v=N}c.stateNode=v}else Rt||Am(H,c.type,c.stateNode);else c.stateNode=Hv(H,E,c.memoizedProps);else D!==E?(D===null?(v=N.stateNode,v===null||Ke||v.parentNode.removeChild(v)):D.count--,E===null?Rt||Am(H,c.type,c.stateNode):Hv(H,E,c.memoizedProps)):E===null&&c.stateNode!==null&&ld(c,c.memoizedProps,N.memoizedProps);break;case 27:Zt(v,c,E),Kt(c),D&512&&(Ke||N===null||Lt(N,N.return)),N!==null&&D&4&&ld(c,c.memoizedProps,N.memoizedProps);break;case 5:if(H=Zn,Zn=!1,Zt(v,c,E),Zn=H,Kt(c),D&512&&(Ke||N===null||Lt(N,N.return)),c.flags&32){v=c.stateNode;try{Wi(v,""),Qe=!0}catch(F){et(c,c.return,F)}}D&4&&c.stateNode!=null&&(v=c.memoizedProps,ld(c,v,N!==null?N.memoizedProps:v)),D&1024&&(sd=!0);break;case 6:if(Zt(v,c,E),Kt(c),D&4){if(c.stateNode===null)throw Error(ve(162));v=c.memoizedProps,E=c.stateNode;try{E.nodeValue=v,Qe=!0}catch(F){et(c,c.return,F)}}break;case 3:if(Qe=!1,bs=null,H=jn,jn=_l(v.containerInfo),Zt(v,c,E),jn=H,Kt(c),D&4&&N!==null&&N.memoizedState.isDehydrated)try{uo(v.containerInfo)}catch(F){et(c,c.return,F)}sd&&(sd=!1,F0(c)),Qe=!1;break;case 4:D=Zn,Zn=Rt,N=Sy(),H=jn,jn=_l(c.stateNode.containerInfo),Zt(v,c,E),Kt(c),jn=H,Qe&&il&&(Is=!0),Qe=N,Zn=D;break;case 12:Zt(v,c,E),Kt(c);break;case 31:Zt(v,c,E),Kt(c),D&4&&(v=c.updateQueue,v!==null&&(c.updateQueue=null,$u(c,v)));break;case 13:Zt(v,c,E),Kt(c),c.child.flags&8192&&c.memoizedState!==null!==(N!==null&&N.memoizedState!==null)&&(mc=gn()),D&4&&(v=c.updateQueue,v!==null&&(c.updateQueue=null,$u(c,v)));break;case 22:H=c.memoizedState!==null,q=N!==null&&N.memoizedState!==null;var Y=Rt,I=Ke,Q=Zn;Rt=Y||H,Zn=Q||H,Ke=I||q,Zt(v,c,E),Ke=I,Zn=Q,Rt=Y,Kt(c),D&8192&&(v=c.stateNode,v._visibility=H?v._visibility&-2:v._visibility|1,!H||N===null||q||Rt||Ke||(v=q||Ke,E=Rt,N=Ke,Rt=H||Rt,Ke=v,Gr(c,2),Rt=E,Ke=N),!H&&Zn||um(c,H)),D&4&&(v=c.updateQueue,v!==null&&(E=v.retryQueue,E!==null&&(v.retryQueue=null,$u(c,E))));break;case 19:Zt(v,c,E),Kt(c),D&4&&(v=c.updateQueue,v!==null&&(c.updateQueue=null,$u(c,v)));break;case 30:D&512&&(Ke||N===null||Lt(N,N.return)),D=Sy(),H=il,q=(E&335544064)===E,Y=c.memoizedProps,il=q&&Mr(Y.default,Y.update)!=="none",Zt(v,c,E),Kt(c),q&&N!==null&&Qe&&(c.flags|=4),il=H,Qe=D;break;case 21:break;case 7:D&512&&(Ke||N===null||Lt(N,N.return)),N&&N.stateNode!==null&&(N.stateNode._fragmentFiber=c);default:Zt(v,c,E),Kt(c)}}function Kt(c){var v=c.flags;if(v&2){try{for(var E,N=c.return;N!==null;){if(L0(N)){E=N;break}N=N.return}N=null;for(var D=c.return;D!==null;){if(mp(D)){var H=D.stateNode;N===null?N=[H]:N.push(H)}if(dp(D))break;D=D.return}var q=N;if(E==null)throw Error(ve(160));switch(E.tag){case 27:var Y=E.stateNode,I=ud(c);js(c,I,Y,q);break;case 5:var Q=E.stateNode;E.flags&32&&(Wi(Q,""),E.flags&=-33);var F=ud(c);js(c,F,Q,q);break;case 3:case 4:var ee=E.stateNode.containerInfo,te=ud(c);nm(c,te,ee,q);break;default:throw Error(ve(161))}}catch(ne){et(c,c.return,ne)}c.flags&=-3}v&4096&&(c.flags&=-4097)}function F0(c){if(c.subtreeFlags&1024)for(c=c.child;c!==null;){var v=c;F0(v),v.tag===5&&v.flags&1024&&(v=v.stateNode,lo=!0,v.reset(),lo=!1),c=c.sibling}}function ki(c,v){if(v.subtreeFlags&9270)for(v=v.child;v!==null;)Z0(v,c),v=v.sibling;else q0(v,!1)}function Z0(c,v){var E=c.alternate;if(E===null)rm(c,!1);else switch(c.tag){case 3:if(lm=Kn=!1,hv(),ki(v,c),!Kn&&!Is){if(c=$n,c!==null)for(var N=0;N<c.length;N+=3){E=c[N];var D=c[N+1];k1(E,c[N+2]),E=E.ownerDocument.documentElement,E!==null&&E.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+D+")"})}c=v.containerInfo,c=c.nodeType===9?c.documentElement:c.ownerDocument.documentElement,c!==null&&c.style.viewTransitionName===""&&(c.style.viewTransitionName="none",c.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),c.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),lm=!0}$n=null;break;case 5:ki(v,c);break;case 4:N=Kn,Kn=!1,ki(v,c),Kn&&(Is=!0),Kn=N;break;case 22:c.memoizedState===null&&(E.memoizedState!==null?rm(c,!1):ki(v,c));break;case 30:N=Kn,D=hv(),Kn=!1,ki(v,c),Kn&&(c.flags|=4);var H=c.memoizedProps,q=c.stateNode;v=Cr(H,q),q=Cr(E.memoizedProps,q);var Y=Mr(H.default,H.update);Y==="none"?v=!1:(H=E.memoizedState,E.memoizedState=null,E=c.child,nn=0,v=pp(c,E,v,q,Y,H,!0),nn!==(H===null?0:H.length)&&(c.flags|=32)),(c.flags&4)!==0&&v?(to(c,c.memoizedProps.onUpdate),$n=D):D!==null&&(D.push.apply(D,$n),$n=D),Kn=(c.flags&32)!==0?!0:N;break;default:ki(v,c)}}function Jn(c,v){if(v.subtreeFlags&8772)for(v=v.child;v!==null;)j0(c,v.alternate,v),v=v.sibling}function Gr(c,v){for(c=c.child;c!==null;){var E=c,N=v;switch(E.tag){case 0:case 11:case 14:case 15:fa(4,E,E.return),Gr(E,N);break;case 1:Lt(E,E.return);var D=E.stateNode;typeof D.componentWillUnmount==="function"&&D0(E,E.return,D),Gr(E,N);break;case 27:(N&2)!==0&&M1(E.stateNode,E.type,E.memoizedProps);case 5:Lt(E,E.return),E.tag!==5&&E.tag!==27||yl(E),Gr(E,N);break;case 6:yl(E);break;case 26:Lt(E,E.return),D=E.stateNode,E.memoizedState!==null||D===null||Ke||D.parentNode.removeChild(D),Gr(E,N);break;case 22:E.memoizedState===null&&Gr(E,N);break;case 30:Lt(E,E.return),Gr(E,N);break;case 7:Lt(E,E.return);default:Gr(E,N)}c=c.sibling}}function qn(c,v,E){E=(v.subtreeFlags&8772)!==0?E:E&-2;for(v=v.child;v!==null;){var N=v.alternate,D=c,H=v,q=H.flags,Y=(E&1)!==0;switch(H.tag){case 0:case 11:case 15:qn(D,H,E),Pl(4,H);break;case 1:if(qn(D,H,E),N=H,D=N.stateNode,typeof D.componentDidMount==="function")try{D.componentDidMount()}catch(F){et(N,N.return,F)}if(N=H,D=N.updateQueue,D!==null){var I=N.stateNode;try{var Q=D.shared.hiddenCallbacks;if(Q!==null)for(D.shared.hiddenCallbacks=null,D=0;D<Q.length;D++)Pb(Q[D],I)}catch(F){et(N,N.return,F)}}Y&&q&64&&_0(H),Wn(H,H.return);break;case 27:(E&2)!==0&&U0(H);case 5:H.tag!==5&&H.tag!==27||mv(H),qn(D,H,E),Y&&N===null&&q&4&&tm(H),Wn(H,H.return);break;case 6:mv(H);break;case 26:I=H.stateNode,H.memoizedState!==null||I===null||Rt||Am(_l(I.ownerDocument),H.type,I),qn(D,H,E),Y&&N===null&&q&4&&tm(H),Wn(H,H.return);break;case 12:qn(D,H,E);break;case 31:qn(D,H,E),Y&&q&4&&P0(D,H);break;case 13:qn(D,H,E),Y&&q&4&&Q0(D,H);break;case 22:H.memoizedState===null&&qn(D,H,E),Wn(H,H.return);break;case 30:qn(D,H,E),Wn(H,H.return);break;case 7:Wn(H,H.return);default:qn(D,H,E)}v=v.sibling}}function hp(c,v){var E=null;c!==null&&c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(E=c.memoizedState.cachePool.pool),c=null,v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(c=v.memoizedState.cachePool.pool),c!==E&&(c!=null&&c.refCount++,E!=null&&Il(E))}function gp(c,v){c=null,v.alternate!==null&&(c=v.alternate.memoizedState.cache),v=v.memoizedState.cache,v!==c&&(v.refCount++,c!=null&&Il(c))}function En(c,v,E,N){var D=(E&335544064)===E;if(v.subtreeFlags&(D?10262:10256))for(v=v.child;v!==null;)K0(c,v,E,N),v=v.sibling;else D&&V0(v)}function K0(c,v,E,N){var D=(E&335544064)===E;D&&v.alternate===null&&v.return!==null&&v.return.alternate!==null&&hs(v);var H=v.flags;switch(v.tag){case 0:case 11:case 15:En(c,v,E,N),H&2048&&Pl(9,v);break;case 1:En(c,v,E,N);break;case 3:En(c,v,E,N),D&&lm&&(c=c.containerInfo,c=c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,c.style.viewTransitionName==="root"&&(c.style.viewTransitionName=""),c=c.ownerDocument.documentElement,c!==null&&c.style.viewTransitionName==="none"&&(c.style.viewTransitionName="")),H&2048&&(H=null,v.alternate!==null&&(H=v.alternate.memoizedState.cache),v=v.memoizedState.cache,v!==H&&(v.refCount++,H!=null&&Il(H)));break;case 12:if(H&2048){En(c,v,E,N),H=v.stateNode;try{var q=v.memoizedProps,Y=q.id,I=q.onPostCommit;typeof I==="function"&&I(Y,v.alternate===null?"mount":"update",H.passiveEffectDuration,-0)}catch(Q){et(v,v.return,Q)}}else En(c,v,E,N);break;case 31:En(c,v,E,N);break;case 13:En(c,v,E,N);break;case 23:break;case 22:q=v.stateNode,Y=v.alternate,v.memoizedState!==null?(D&&Y!==null&&Y.memoizedState===null&&hs(Y),q._visibility&2?En(c,v,E,N):vl(c,v)):(D&&Y!==null&&Y.memoizedState!==null&&hs(v),q._visibility&2?En(c,v,E,N):(q._visibility|=2,Ti(c,v,E,N,(v.subtreeFlags&10256)!==0||!1))),H&2048&&hp(Y,v);break;case 24:En(c,v,E,N),H&2048&&gp(v.alternate,v);break;case 30:D&&(H=v.alternate,H!==null&&(or(H.child,!0),or(v.child,!0))),En(c,v,E,N);break;default:En(c,v,E,N)}}function Ti(c,v,E,N,D){D=D&&((v.subtreeFlags&10256)!==0||!1);for(v=v.child;v!==null;){var H=c,q=v,Y=E,I=N,Q=q.flags;switch(q.tag){case 0:case 11:case 15:Ti(H,q,Y,I,D),Pl(8,q);break;case 23:break;case 22:var F=q.stateNode;q.memoizedState!==null?F._visibility&2?Ti(H,q,Y,I,D):vl(H,q):(F._visibility|=2,Ti(H,q,Y,I,D)),D&&Q&2048&&hp(q.alternate,q);break;case 24:Ti(H,q,Y,I,D),D&&Q&2048&&gp(q.alternate,q);break;default:Ti(H,q,Y,I,D)}v=v.sibling}}function vl(c,v){if(v.subtreeFlags&10256)for(v=v.child;v!==null;){var E=c,N=v,D=N.flags;switch(N.tag){case 22:vl(E,N),D&2048&&hp(N.alternate,N);break;case 24:vl(E,N),D&2048&&gp(N.alternate,N);break;default:vl(E,N)}v=v.sibling}}var _a=8192;function za(c,v,E){if(c.subtreeFlags&_a)for(c=c.child;c!==null;)J0(c,v,E),c=c.sibling}function J0(c,v,E){switch(c.tag){case 26:za(c,v,E),c.flags&_a&&(c.memoizedState!==null?jC(E,jn,c.memoizedState,c.memoizedProps):(c=c.stateNode,(v&335544128)===v&&qv(E,c)));break;case 5:za(c,v,E),c.flags&_a&&(c=c.stateNode,(v&335544128)===v&&qv(E,c));break;case 3:case 4:var N=jn;jn=_l(c.stateNode.containerInfo),za(c,v,E),jn=N;break;case 22:c.memoizedState===null&&(N=c.alternate,N!==null&&N.memoizedState!==null?(N=_a,_a=16777216,za(c,v,E),_a=N):za(c,v,E));break;case 30:if((c.flags&_a)!==0&&(N=c.memoizedProps.name,N!=null&&N!=="auto")){var D=c.stateNode;D.paired=null,pn===null&&(pn=new Map),pn.set(N,D)}za(c,v,E);break;default:za(c,v,E)}}function W0(c){var v=c.alternate;if(v!==null&&(c=v.child,c!==null)){v.child=null;do v=c.sibling,c.sibling=null,c=v;while(c!==null)}}function Jo(c){var v=c.deletions;if((c.flags&16)!==0){if(v!==null)for(var E=0;E<v.length;E++){var N=v[E];Ot=N,e1(N,c)}W0(c)}if(c.subtreeFlags&10256)for(c=c.child;c!==null;)$0(c),c=c.sibling}function $0(c){switch(c.tag){case 0:case 11:case 15:Jo(c),c.flags&2048&&fa(9,c,c.return);break;case 3:Jo(c);break;case 12:Jo(c);break;case 22:var v=c.stateNode;c.memoizedState!==null&&v._visibility&2&&(c.return===null||c.return.tag!==13)?(v._visibility&=-3,gs(c)):Jo(c);break;default:Jo(c)}}function gs(c){var v=c.deletions;if((c.flags&16)!==0){if(v!==null)for(var E=0;E<v.length;E++){var N=v[E];Ot=N,e1(N,c)}W0(c)}for(c=c.child;c!==null;){switch(v=c,v.tag){case 0:case 11:case 15:fa(8,v,v.return),gs(v);break;case 22:E=v.stateNode,E._visibility&2&&(E._visibility&=-3,gs(v));break;default:gs(v)}c=c.sibling}}function e1(c,v){for(;Ot!==null;){var E=Ot;switch(E.tag){case 0:case 11:case 15:fa(8,E,v);break;case 23:case 22:if(E.memoizedState!==null&&E.memoizedState.cachePool!==null){var N=E.memoizedState.cachePool.pool;N!=null&&N.refCount++}break;case 24:Il(E.memoizedState.cache)}if(N=E.child,N!==null)N.return=E,Ot=N;else e:for(E=c;Ot!==null;){N=Ot;var D=N.sibling,H=N.return;if(I0(N),N===E){Ot=null;break e}if(D!==null){D.return=H,Ot=D;break e}Ot=H}}}var BT={getCacheForType:function(c){var v=Ht(kt),E=v.data.get(c);return E===void 0&&(E=c(),v.data.set(c,E)),E},cacheSignal:function(){return Ht(kt).controller.signal}},VT=typeof WeakMap==="function"?WeakMap:Map,Fe=0,rt=null,Ye=null,Ie=0,We=0,fn=null,Jr=!1,mo=!1,yp=!1,Rr=0,ht=0,da=0,Ya=0,Gs=0,hn=0,eo=0,bl=null,tn=null,cm=!1,mc=0,t1=0,Ps=1/0,Qs=null,aa=null,mt=0,In=null,Ka=null,ir=0,fm=0,dm=null,n1=null,Xi=null,Fi=null,Zi=null,xl=0,ys=null;function On(){return(Fe&2)!==0&&Ie!==0?Ie&-Ie:De.T!==null?bp():sb()}function r1(){if(hn===0)if((Ie&536870912)===0||Ve){var c=Yu;Yu<<=1,(Yu&3932160)===0&&(Yu=262144),hn=c}else hn=536870912;return c=jt.current,c!==null&&(c.flags|=32),hn}function to(c,v){if(v!=null){var E=c.stateNode,N=E.ref;N===null&&(N=E.ref=T1(Cr(c.memoizedProps,E))),Fi===null&&(Fi=[]),Fi.push(v.bind(null,N))}}function an(c,v,E){if(c===rt&&(We===2||We===9)||c.cancelPendingCommit!==null)no(c,0),Wr(c,Ie,hn,!1);if($s(c,E),(Fe&2)===0||c!==rt)c===rt&&((Fe&2)===0&&(Ya|=E),ht===4&&Wr(c,Ie,hn,!1)),_r(c)}function a1(c,v,E){if((Fe&6)!==0)throw Error(ve(327));var N=!E&&(v&127)===0&&(v&c.expiredLanes)===0||Vl(c,v),D=N?YT(c,v):cd(c,v,!0),H=N;do{if(D===0){mo&&!N&&Wr(c,v,0,!1);break}else{if(E=c.current.alternate,H&&!qT(E)){D=cd(c,v,!1),H=!1;continue}if(D===2){if(H=v,c.errorRecoveryDisabledLanes&H)var q=0;else q=c.pendingLanes&-536870913,q=q!==0?q:q&536870912?536870912:0;if(q!==0){v=q;e:{var Y=c;D=bl;var I=Y.current.memoizedState.isDehydrated;if(I&&(no(Y,q).flags|=256),q=cd(Y,q,!1),q!==2&&q!==6){if(yp&&!I){Y.errorRecoveryDisabledLanes|=H,Ya|=H,D=4;break e}H=tn,tn=D,H!==null&&(tn===null?tn=H:tn.push.apply(tn,H))}D=q}if(H=!1,D!==2)continue}}if(D===1){no(c,0),Wr(c,v,0,!0);break}e:{switch(N=c,H=D,H){case 0:case 1:throw Error(ve(345));case 4:if((v&4194048)!==v&&(v&62914560)!==v)break;case 6:Wr(N,v,hn,!Jr);break e;case 2:tn=null;break;case 3:case 5:break;default:throw Error(ve(329))}if((v&62914560)===v&&(D=mc+300-gn(),10<D)){if(Wr(N,v,hn,!Jr),Ws(N,0,!0)!==0)break e;ir=v,N.timeoutHandle=xp(yv.bind(null,N,E,tn,Qs,cm,v,hn,Ya,eo,Jr,H,"Throttled",-0,0),D);break e}yv(N,E,tn,Qs,cm,v,hn,Ya,eo,Jr,H,null,-0,0)}}break}while(1);_r(c)}function yv(c,v,E,N,D,H,q,Y,I,Q,F,ee,te,ne){c.timeoutHandle=-1;var ie=v.subtreeFlags,ce=(H&335544064)===H;if(ee=null,ce||ie&8192||(ie&16785408)===16785408){if(ee={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:tr},pn=null,J0(v,H,ee),ce&&(ie=ee,ce=c.containerInfo,ce=(ce.nodeType===9?ce:ce.ownerDocument).__reactViewTransition,ce!=null&&(ie.count++,ie.waitingForViewTransition=!0,ie=Dl.bind(ie),ce.finished.then(ie,ie))),ie=(H&62914560)===H?mc-gn():(H&4194048)===H?t1-gn():0,ie=YC(ee,ie),ie!==null){ir=H,c.cancelPendingCommit=ie(bv.bind(null,c,v,H,E,N,D,q,Y,I,Q,F,ee,null,te,ne)),Wr(c,H,q,!Q);return}}bv(c,v,H,E,N,D,q,Y,I,Q,F,ee)}function qT(c){for(var v=c;;){var E=v.tag;if((E===0||E===11||E===15)&&v.flags&16384&&(E=v.updateQueue,E!==null&&(E=E.stores,E!==null)))for(var N=0;N<E.length;N++){var D=E[N],H=D.getSnapshot;D=D.value;try{if(!bn(H(),D))return!1}catch(q){return!1}}if(E=v.child,v.subtreeFlags&16384&&E!==null)E.return=v,v=E;else{if(v===c)break;for(;v.sibling===null;){if(v.return===null||v.return===c)return!0;v=v.return}v.sibling.return=v.return,v=v.sibling}}return!0}function Wr(c,v,E,N){v=rb(c,v),v&=~Gs,v&=~Ya,c.suspendedLanes|=v,c.pingedLanes&=~v,N&&(c.warmLanes|=v),N=c.expirationTimes;for(var D=v;0<D;){var H=31-vn(D),q=1<<H;N[H]=-1,D&=~q}E!==0&&ib(c,E,v)}function pc(){return(Fe&6)===0?(Ql(0,!1),!1):!0}function vp(){if(Ye!==null){if(We===0)var c=Ye.return;else c=Ye,Sr=ti=null,tp(c),Gi=null,Nl=0,c=Ye;for(;c!==null;)M0(c.alternate,c),c=c.return;Ye=null}}function no(c,v){var E=c.timeoutHandle;return E!==-1&&(c.timeoutHandle=-1,uC(E)),E=c.cancelPendingCommit,E!==null&&(c.cancelPendingCommit=null,E()),ir=0,vp(),rt=c,Ye=E=kr(c.current,null),Ie=v,We=0,fn=null,Jr=!1,mo=Vl(c,v),yp=!1,eo=hn=Gs=Ya=da=ht=0,tn=bl=null,cm=!1,Rr=rb(c,v),ac(),E}function i1(c,v){He=null,De.H=Bs,v===co||v===lc?(v=Gy(),We=3):v===Xm?(v=Gy(),We=4):We=v===sp?8:v!==null&&typeof v==="object"&&typeof v.then==="function"?6:1,fn=v,Ye===null&&(ht=1,Vs(c,zn(v,c.current)))}function o1(){var c=jt.current;return c===null?!0:(Ie&4194048)===Ie?Pt===null?!0:!1:(Ie&62914560)===Ie||(Ie&536870912)!==0?c===Pt:!1}function l1(){var c=De.H;return De.H=Bs,c===null?Bs:c}function u1(){var c=De.A;return De.A=BT,c}function Xs(){ht=4,Jr||(Ie&4194048)!==Ie&&jt.current!==null||(mo=!0),(da&134217727)===0&&(Ya&134217727)===0||rt===null||Wr(rt,Ie,hn,!1)}function cd(c,v,E){var N=Fe;Fe|=2;var D=l1(),H=u1();if(rt!==c||Ie!==v)Qs=null,no(c,v);v=!1;var q=ht;e:do try{if(We!==0&&Ye!==null){var Y=Ye,I=fn;switch(We){case 8:vp(),q=6;break e;case 3:case 2:case 9:case 6:jt.current===null&&(v=!0);var Q=We;if(We=0,fn=null,Vi(c,Y,I,Q),E&&mo){q=0;break e}break;default:Q=We,We=0,fn=null,Vi(c,Y,I,Q)}}jT(),q=ht;break}catch(F){i1(c,F)}while(1);return v&&c.shellSuspendCounter++,Sr=ti=null,Fe=N,De.H=D,De.A=H,Ye===null&&(rt=null,Ie=0,ac()),q}function jT(){for(;Ye!==null;)s1(Ye)}function YT(c,v){var E=Fe;Fe|=2;var N=l1(),D=u1();rt!==c||Ie!==v?(Qs=null,Ps=gn()+500,no(c,v)):mo=Vl(c,v);e:do try{if(We!==0&&Ye!==null){v=Ye;var H=fn;t:switch(We){case 1:We=0,fn=null,Vi(c,v,H,1);break;case 2:case 9:if(Iy(H)){We=0,fn=null,vv(v);break}v=function(){We!==2&&We!==9||rt!==c||(We=7),_r(c)},H.then(v,v);break e;case 3:We=7;break e;case 4:We=5;break e;case 7:Iy(H)?(We=0,fn=null,vv(v)):(We=0,fn=null,Vi(c,v,H,7));break;case 5:var q=null;switch(Ye.tag){case 26:q=Ye.memoizedState;case 5:case 27:var Y=Ye;if(q?L1(q):Y.stateNode.complete){We=0,fn=null;var I=Y.sibling;if(I!==null)Ye=I;else{var Q=Y.return;Q!==null?(Ye=Q,hc(Q)):Ye=null}break t}}We=0,fn=null,Vi(c,v,H,5);break;case 6:We=0,fn=null,Vi(c,v,H,6);break;case 8:vp(),ht=6;break e;default:throw Error(ve(462))}}IT();break}catch(F){i1(c,F)}while(1);if(Sr=ti=null,De.H=N,De.A=D,Fe=E,Ye!==null)return 0;return rt=null,Ie=0,ac(),ht}function IT(){for(;Ye!==null&&!rE();)s1(Ye)}function s1(c){var v=O0(c.alternate,c,Rr);c.memoizedProps=c.pendingProps,v===null?hc(c):Ye=v}function vv(c){var v=c,E=v.alternate;switch(v.tag){case 15:case 0:v=ov(E,v,v.pendingProps,v.type,void 0,Ie);break;case 11:v=ov(E,v,v.pendingProps,v.type.render,v.ref,Ie);break;case 5:tp(v);var N=v;N===_t&&(Ve?(Os(N),N.tag===5&&N.stateNode!=null&&(st=N.stateNode)):(Os(N),Ve=!0));default:M0(E,v),v=Ye=Ub(v,Rr),v=O0(E,v,Rr)}c.memoizedProps=c.pendingProps,v===null?hc(c):Ye=v}function Vi(c,v,E,N){Sr=ti=null,tp(v),Gi=null,Nl=0;var D=v.return;try{if(RT(c,D,v,E,Ie)){ht=1,Vs(c,zn(E,c.current)),Ye=null;return}}catch(H){if(D!==null)throw Ye=D,H;ht=1,Vs(c,zn(E,c.current)),Ye=null;return}if(v.flags&32768){if(Ve||N===1)c=!0;else if(mo||(Ie&536870912)!==0)c=!1;else if(Jr=c=!0,N===2||N===9||N===3||N===6)N=jt.current,N!==null&&N.tag===13&&(N.flags|=16384);c1(v,c)}else hc(v)}function hc(c){var v=c;do{if((v.flags&32768)!==0){c1(v,Jr);return}c=v.return;var E=DT(v.alternate,v,Rr);if(E!==null){Ye=E;return}if(v=v.sibling,v!==null){Ye=v;return}Ye=v=c}while(v!==null);ht===0&&(ht=5)}function c1(c,v){do{var E=LT(c.alternate,c);if(E!==null){E.flags&=32767,Ye=E;return}if(E=c.return,E!==null&&(E.flags|=32768,E.subtreeFlags=0,E.deletions=null),!v&&(c=c.sibling,c!==null)){Ye=c;return}Ye=c=E}while(c!==null);ht=6,Ye=null}function bv(c,v,E,N,D,H,q,Y,I,Q,F,ee){c.cancelPendingCommit=null;do gc();while(mt!==0);if((Fe&6)!==0)throw Error(ve(327));if(v!==null){if(v===c.current)throw Error(ve(177));c===rt&&(Ye=rt=null,Ie=0),Ka=v,In=c,ir=E,dm=D,n1=N,GT(c,v,E,q,Y,I,ee)}}function GT(c,v,E,N,D,H,q){var Y=v.lanes|v.childLanes;if(fm=Y,Y|=jm,mE(c,E,Y,N,D,H),Fi=null,(E&335544064)===E?(Zi=hT(c),N=10262):(Zi=null,N=10256),(v.subtreeFlags&N)!==0||(v.flags&N)!==0?(c.callbackNode=null,c.callbackPriority=0,KT(Cs,function(){return gm(),null})):(c.callbackNode=null,c.callbackPriority=0),Ys=!1,N=(v.flags&13878)!==0,(v.subtreeFlags&13878)!==0||N){N=De.T,De.T=null,D=Ze.p,Ze.p=2,H=Fe,Fe|=4;try{UT(c,v,E)}finally{Fe=H,Ze.p=D,De.T=N}}mt=1,Ys?Xi=pC(q,c.containerInfo,Zi,mm,pm,QT,hm,gm,PT,null,null):(mm(),pm(),hm())}function PT(c){if(mt!==0){var v=In.onRecoverableError;v(c,{componentStack:null})}}function QT(){mt===3&&(mt=0,Z0(Ka,In),mt=4)}function mm(){if(mt===1){mt=0;var c=In,v=Ka,E=ir,N=(v.flags&13878)!==0;if((v.subtreeFlags&13878)!==0||N){N=De.T,De.T=null;var D=Ze.p;Ze.p=2;var H=Fe;Fe|=4;try{il=Is=!1,X0(v,c,E),E=Sm;var q=Ab(c.containerInfo),Y=E.focusedElem,I=E.selectionRange;if(q!==Y&&Y&&Y.ownerDocument&&Nb(Y.ownerDocument.documentElement,Y)){if(I!==null&&qm(Y)){var{start:Q,end:F}=I;if(F===void 0&&(F=Q),"selectionStart"in Y)Y.selectionStart=Q,Y.selectionEnd=Math.min(F,Y.value.length);else{var ee=Y.ownerDocument||document,te=ee&&ee.defaultView||window;if(te.getSelection){var ne=te.getSelection(),ie=Y.textContent.length,ce=Math.min(I.start,ie),me=I.end===void 0?ce:Math.min(I.end,ie);!ne.extend&&ce>me&&(q=me,me=ce,ce=q);var re=Ly(Y,ce),oe=Ly(Y,me);if(re&&oe&&(ne.rangeCount!==1||ne.anchorNode!==re.node||ne.anchorOffset!==re.offset||ne.focusNode!==oe.node||ne.focusOffset!==oe.offset)){var le=ee.createRange();le.setStart(re.node,re.offset),ne.removeAllRanges(),ce>me?(ne.addRange(le),ne.extend(oe.node,oe.offset)):(le.setEnd(oe.node,oe.offset),ne.addRange(le))}}}}ee=[];for(ne=Y;ne=ne.parentNode;)ne.nodeType===1&&ee.push({element:ne,left:ne.scrollLeft,top:ne.scrollTop});typeof Y.focus==="function"&&Y.focus();for(Y=0;Y<ee.length;Y++){var pe=ee[Y];pe.element.scrollLeft=pe.left,pe.element.scrollTop=pe.top}}lo=!!wm,Sm=wm=null}finally{Fe=H,Ze.p=D,De.T=N}}c.current=v,mt=2}}function pm(){if(mt===2){mt=0;var c=In,v=Ka,E=(v.flags&8772)!==0;if((v.subtreeFlags&8772)!==0||E){E=De.T,De.T=null;var N=Ze.p;Ze.p=2;var D=Fe;Fe|=4;try{j0(c,v.alternate,v)}finally{Fe=D,Ze.p=N,De.T=E}}mt=3}}function hm(){if(mt===4||mt===3){mt=0;var c=Xi;Xi=null,aE();var v=In,E=Ka,N=ir,D=n1,H=(N&335544064)===N?10262:10256;if((E.subtreeFlags&H)!==0||(E.flags&H)!==0?mt=5:(mt=0,Ka=In=null,f1(v,v.pendingLanes)),H=v.pendingLanes,H===0&&(aa=null),Dm(N),E=E.stateNode,yn&&typeof yn.onCommitFiberRoot==="function")try{yn.onCommitFiberRoot(Bl,E,void 0,(E.current.flags&128)===128)}catch(Q){}if(D!==null){E=De.T,H=Ze.p,Ze.p=2,De.T=null;try{for(var q=v.onRecoverableError,Y=0;Y<D.length;Y++){var I=D[Y];q(I.value,{componentStack:I.stack})}}finally{De.T=E,Ze.p=H}}if(D=Fi,q=Zi,Zi=null,D!==null&&(Fi=null,q===null&&(q=[]),c!==null))for(I=0;I<D.length;I++)E=(0,D[I])(q),E!==void 0&&c.finished.finally(E);(ir&3)!==0&&gc(),_r(v),H=v.pendingLanes,(N&261930)!==0&&(H&42)!==0?v===ys?xl++:(xl=0,ys=v):(xl=0,ys=null),Ql(0,!1)}}function f1(c,v){(c.pooledCacheLanes&=v)===0&&(v=c.pooledCache,v!=null&&(c.pooledCache=null,Il(v)))}function gc(){return Xi!==null&&(Xi.skipTransition(),Xi=null),mm(),pm(),hm(),gm()}function gm(){if(mt!==5)return!1;var c=In,v=fm;fm=0;var E=Dm(ir),N=De.T,D=Ze.p;try{Ze.p=32>E?32:E,De.T=null,E=dm,dm=null;var H=In,q=ir;if(mt=0,Ka=In=null,ir=0,(Fe&6)!==0)throw Error(ve(331));var Y=Fe;if(Fe|=4,$0(H.current),K0(H,H.current,q,E),Fe=Y,Ql(0,!1),yn&&typeof yn.onPostCommitFiberRoot==="function")try{yn.onPostCommitFiberRoot(Bl,H)}catch(I){}return!0}finally{Ze.p=D,De.T=N,f1(c,v)}}function xv(c,v,E){v=zn(E,v),v=Zd(c.stateNode,v,2),c=ja(c,v,2),c!==null&&($s(c,2),_r(c))}function et(c,v,E){if(c.tag===3)xv(c,c,E);else for(;v!==null;){if(v.tag===3){xv(v,c,E);break}else if(v.tag===1){var N=v.stateNode;if(typeof v.type.getDerivedStateFromError==="function"||typeof N.componentDidCatch==="function"&&(aa===null||!aa.has(N))){c=zn(E,c),E=C0(2),N=ja(v,E,2),N!==null&&(N0(E,N,v,c),$s(N,2),_r(N));break}}v=v.return}}function fd(c,v,E){var N=c.pingCache;if(N===null){N=c.pingCache=new VT;var D=new Set;N.set(v,D)}else D=N.get(v),D===void 0&&(D=new Set,N.set(v,D));D.has(E)||(yp=!0,D.add(E),c=XT.bind(null,c,v,E),v.then(c,c))}function XT(c,v,E){var N=c.pingCache;N!==null&&N.delete(v),c.pingedLanes|=c.suspendedLanes&E,c.warmLanes&=~E,rt===c&&(Ie&E)===E&&(ht===4||ht===3&&(Ie&62914560)===Ie&&300>gn()-mc?(Fe&2)===0?no(c,0):Gs|=E:Gs|=E,eo===Ie&&(eo=0)),_r(c)}function d1(c,v){v===0&&(v=ab()),c=ei(c,v),c!==null&&($s(c,v),_r(c))}function FT(c){var v=c.memoizedState,E=0;v!==null&&(E=v.retryLane),d1(c,E)}function ZT(c,v){var E=0;switch(c.tag){case 31:case 13:var{stateNode:N,memoizedState:D}=c;D!==null&&(E=D.retryLane);break;case 19:N=c.stateNode;break;case 22:N=c.stateNode._retryCache;break;default:throw Error(ve(314))}N!==null&&N.delete(v),d1(c,E)}function KT(c,v){return _m(c,v)}var ro=null,Ci=null,ym=!1,Fs=!1,dd=!1,$r=0;function _r(c){c!==Ci&&c.next===null&&(Ci===null?ro=Ci=c:Ci=Ci.next=c),Fs=!0,ym||(ym=!0,WT())}function Ql(c,v){if(!dd&&Fs){dd=!0;do{var E=!1;for(var N=ro;N!==null;){if(!v)if(c!==0){var D=N.pendingLanes;if(D===0)var H=0;else{var q=N.suspendedLanes,Y=N.pingedLanes;H=(1<<31-vn(42|c)+1)-1,H&=D&~(q&~Y),H=H&201326741?H&201326741|1:H?H|2:0}H!==0&&(E=!0,wv(N,H))}else H=Ie,H=Ws(N,N===rt?H:0,N.cancelPendingCommit!==null||N.timeoutHandle!==-1),(H&3)===0||Vl(N,H)||(E=!0,wv(N,H));N=N.next}}while(E);dd=!1}}function JT(){m1()}function m1(){Fs=ym=!1;var c=0;$r!==0&&lC()&&(c=$r);for(var v=gn(),E=null,N=ro;N!==null;){var D=N.next,H=p1(N,v);if(H===0)N.next=null,E===null?ro=D:E.next=D,D===null&&(Ci=E);else if(E=N,c!==0||(H&3)!==0)Fs=!0;N=D}mt!==0&&mt!==5||Ql(c,!1),$r!==0&&($r=0)}function p1(c,v){for(var{suspendedLanes:E,pingedLanes:N,expirationTimes:D}=c,H=c.pendingLanes&-62914561;0<H;){var q=31-vn(H),Y=1<<q,I=D[q];if(I===-1){if((Y&E)===0||(Y&N)!==0)D[q]=dE(Y,v)}else I<=v&&(c.expiredLanes|=Y);H&=~Y}if(v=rt,E=Ie,E=Ws(c,c===v?E:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),N=c.callbackNode,E===0||c===v&&(We===2||We===9)||c.cancelPendingCommit!==null)return N!==null&&N!==null&&Pf(N),c.callbackNode=null,c.callbackPriority=0;if((E&3)===0||Vl(c,E)){if(v=E&-E,v===c.callbackPriority)return v;switch(N!==null&&Pf(N),Dm(E)){case 2:case 8:E=tb;break;case 32:E=Cs;break;case 268435456:E=nb;break;default:E=Cs}return N=h1.bind(null,c),E=_m(E,N),c.callbackPriority=v,c.callbackNode=E,v}return N!==null&&N!==null&&Pf(N),c.callbackPriority=2,c.callbackNode=null,2}function h1(c,v){if(mt!==0&&mt!==5)return c.callbackNode=null,c.callbackPriority=0,null;var E=c.callbackNode;if(gc()&&c.callbackNode!==E)return null;var N=Ie;if(N=Ws(c,c===rt?N:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),N===0)return null;return a1(c,N,v),p1(c,gn()),c.callbackNode!=null&&c.callbackNode===E?h1.bind(null,c):null}function wv(c,v){if(gc())return null;a1(c,v,!0)}function WT(){sC(function(){(Fe&6)!==0?_m(eb,JT):m1()})}function bp(){if($r===0){var c=Qa;c===0&&(c=ju,ju<<=1,(ju&261888)===0&&(ju=256)),$r=c}return $r}function Sv(c){return c==null||typeof c==="symbol"||typeof c==="boolean"?null:typeof c==="function"?c:as(c)}function $T(c,v,E,N,D){if(v==="submit"&&E&&E.stateNode===D){var H=Sv((D[ln]||null).action),q=N.submitter;q&&(v=(v=q[ln]||null)?Sv(v.formAction):q.getAttribute("formAction"),v!==null&&(H=v,q=null));var Y=new tc("action","action",null,N,D);c.push({event:Y,listeners:[{instance:null,listener:function(){if(N.defaultPrevented){if($r!==0){var I=new FormData(D,q);Xd(E,{pending:!0,data:I,method:D.method,action:H},null,I)}}else typeof H==="function"&&(Y.preventDefault(),I=new FormData(D,q),Xd(E,{pending:!0,data:I,method:D.method,action:H},H,I))},currentTarget:D}]})}}for(ol=0;ol<Ud.length;ol++)ll=Ud[ol],vm=ll.toLowerCase(),bm=ll[0].toUpperCase()+ll.slice(1),Gn(vm,"on"+bm);var ll,vm,bm,ol;Gn(Rb,"onAnimationEnd");Gn(Ob,"onAnimationIteration");Gn(Mb,"onAnimationStart");Gn("dblclick","onDoubleClick");Gn("focusin","onFocus");Gn("focusout","onBlur");Gn(lT,"onTransitionRun");Gn(uT,"onTransitionStart");Gn(sT,"onTransitionCancel");Gn(_b,"onTransitionEnd");Ji("onMouseEnter",["mouseout","mouseover"]);Ji("onMouseLeave",["mouseout","mouseover"]);Ji("onPointerEnter",["pointerout","pointerover"]);Ji("onPointerLeave",["pointerout","pointerover"]);Wa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Wa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Wa("onBeforeInput",["compositionend","keypress","textInput","paste"]);Wa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Wa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Wa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rl="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(" "),eC=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Rl));function g1(c,v){v=(v&4)!==0;for(var E=0;E<c.length;E++){var N=c[E],D=N.event;N=N.listeners;e:{var H=void 0;if(v)for(var q=N.length-1;0<=q;q--){var Y=N[q],I=Y.instance,Q=Y.currentTarget;if(Y=Y.listener,I!==H&&D.isPropagationStopped())break e;H=Y,D.currentTarget=Q;try{H(D)}catch(F){As(F)}D.currentTarget=null,H=I}else for(q=0;q<N.length;q++){if(Y=N[q],I=Y.instance,Q=Y.currentTarget,Y=Y.listener,I!==H&&D.isPropagationStopped())break e;H=Y,D.currentTarget=Q;try{H(D)}catch(F){As(F)}D.currentTarget=null,H=I}}}}function je(c,v){var E=v[vy];E===void 0&&(E=v[vy]=new Set);var N=c+"__bubble";E.has(N)||(v1(v,c,2,!1),E.add(N))}function md(c,v,E){var N=0;v&&(N|=4),v1(E,c,N,v)}var es="_reactListening"+Math.random().toString(36).slice(2);function y1(c){if(!c[es]){c[es]=!0,fb.forEach(function(E){E!=="selectionchange"&&(eC.has(E)||md(E,!1,c),md(E,!0,c))});var v=c.nodeType===9?c:c.ownerDocument;v===null||v[es]||(v[es]=!0,md("selectionchange",!1,v))}}function v1(c,v,E,N){switch(q1(v)){case 2:var D=FC;break;case 8:D=ZC;break;default:D=Cp}E=D.bind(null,v,E,c),D=void 0,!Md||v!=="touchstart"&&v!=="touchmove"&&v!=="wheel"||(D=!0),N?D!==void 0?c.addEventListener(v,E,{capture:!0,passive:D}):c.addEventListener(v,E,!0):D!==void 0?c.addEventListener(v,E,{passive:D}):c.addEventListener(v,E,!1)}function pd(c,v,E,N,D){var H=N;if((v&1)===0&&(v&2)===0&&N!==null)e:for(;;){if(N===null)return;var q=N.tag;if(q===3||q===4){var Y=N.stateNode.containerInfo;if(Y===D)break;if(q===4)for(q=N.return;q!==null;){var I=q.tag;if((I===3||I===4)&&q.stateNode.containerInfo===D)return;q=q.return}for(;Y!==null;){if(q=Da(Y),q===null)return;if(I=q.tag,I===5||I===6||I===26||I===27){N=H=q;continue e}Y=Y.parentNode}}N=N.return}bb(function(){var Q=H,F=Um(E),ee=[];e:{var te=Db.get(c);if(te!==void 0){var ne=tc,ie=c;switch(c){case"keypress":if(os(E)===0)break e;case"keydown":case"keyup":ne=HE;break;case"focusin":ie="focus",ne=Jf;break;case"focusout":ie="blur",ne=Jf;break;case"beforeblur":case"afterblur":ne=Jf;break;case"click":if(E.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ne=Cy;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ne=TE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ne=YE;break;case Rb:case Ob:case Mb:ne=AE;break;case _b:ne=GE;break;case"scroll":case"scrollend":ne=kE;break;case"wheel":ne=QE;break;case"copy":case"cut":case"paste":ne=RE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ne=Ay;break;case"submit":ne=qE;break;case"toggle":case"beforetoggle":ne=FE}var ce=(v&4)!==0,me=!ce&&(c==="scroll"||c==="scrollend"),re=ce?te!==null?te+"Capture":null:te;ce=[];for(var oe=Q,le;oe!==null;){var pe=oe;if(le=pe.stateNode,pe=pe.tag,pe!==5&&pe!==26&&pe!==27||le===null||re===null||(pe=Sl(oe,re),pe!=null&&ce.push(Ol(oe,pe,le))),me)break;oe=oe.return}0<ce.length&&(te=new ne(te,ie,null,E,F),ee.push({event:te,listeners:ce}))}}if((v&7)===0){e:{if(ne=c==="mouseover"||c==="pointerover",te=c==="mouseout"||c==="pointerout",ne&&E!==Od&&(ie=E.relatedTarget||E.fromElement)&&(Da(ie)||ie[ql]))break e;if(te||ne){if(ie=F.window===F?F:(ne=F.ownerDocument)?ne.defaultView||ne.parentWindow:window,te){if(ne=E.relatedTarget||E.toElement,te=Q,ne=ne?Da(ne):null,ne!==null&&(me=Hl(ne),ce=ne.tag,ne!==me||ce!==5&&ce!==27&&ce!==6))ne=null}else te=null,ne=Q;if(te!==ne){if(ce=Cy,pe="onMouseLeave",re="onMouseEnter",oe="mouse",c==="pointerout"||c==="pointerover")ce=Ay,pe="onPointerLeave",re="onPointerEnter",oe="pointer";me=te==null?ie:tl(te),le=ne==null?ie:tl(ne),ie=new ce(pe,oe+"leave",te,E,F),ie.target=me,ie.relatedTarget=le,pe=null,Da(F)===Q&&(ce=new ce(re,oe+"enter",ne,E,F),ce.target=le,ce.relatedTarget=me,pe=ce),me=pe,ce=te&&ne?bd(te,ne,tC):null,te!==null&&kv(ee,ie,te,ce,!1),ne!==null&&me!==null&&kv(ee,me,ne,ce,!0)}}}e:{if(te=Q?tl(Q):window,ne=te.nodeName&&te.nodeName.toLowerCase(),ne==="select"||ne==="input"&&te.type==="file")var ye=My;else if(Oy(te))if(Tb)ye=aT;else{ye=nT;var he=tT}else ne=te.nodeName,!ne||ne.toLowerCase()!=="input"||te.type!=="checkbox"&&te.type!=="radio"?Q&&Lm(Q.elementType)&&(ye=My):ye=rT;if(ye&&(ye=ye(c,Q))){Eb(ee,ye,E,F);break e}he&&he(c,te,Q)}switch(he=Q?tl(Q):window,c){case"focusin":if(Oy(he)||he.contentEditable==="true")_i=he,Dd=Q,cl=null;break;case"focusout":cl=Dd=_i=null;break;case"mousedown":Ld=!0;break;case"contextmenu":case"mouseup":case"dragend":Ld=!1,Uy(ee,E,F);break;case"selectionchange":if(oT)break;case"keydown":case"keyup":Uy(ee,E,F)}var ge;if(Vm)e:{switch(c){case"compositionstart":var xe="onCompositionStart";break e;case"compositionend":xe="onCompositionEnd";break e;case"compositionupdate":xe="onCompositionUpdate";break e}xe=void 0}else Mi?Sb(c,E)&&(xe="onCompositionEnd"):c==="keydown"&&E.keyCode===229&&(xe="onCompositionStart");if(xe&&(wb&&E.locale!=="ko"&&(Mi||xe!=="onCompositionStart"?xe==="onCompositionEnd"&&Mi&&(ge=xb()):(Zr=F,Hm=("value"in Zr)?Zr.value:Zr.textContent,Mi=!0)),he=Zs(Q,xe),0<he.length&&(xe=new Ny(xe,c,null,E,F),ee.push({event:xe,listeners:he}),ge?xe.data=ge:(ge=kb(E),ge!==null&&(xe.data=ge)))),ge=KE?JE(c,E):WE(c,E))xe=Zs(Q,"onBeforeInput"),0<xe.length&&(he=new Ny("onBeforeInput","beforeinput",null,E,F),ee.push({event:he,listeners:xe}),he.data=ge);$T(ee,c,Q,E,F)}g1(ee,v)})}function Ol(c,v,E){return{instance:c,listener:v,currentTarget:E}}function Zs(c,v){for(var E=v+"Capture",N=[];c!==null;){var D=c,H=D.stateNode;if(D=D.tag,D!==5&&D!==26&&D!==27||H===null||(D=Sl(c,E),D!=null&&N.unshift(Ol(c,D,H)),D=Sl(c,v),D!=null&&N.push(Ol(c,D,H))),c.tag===3)return N;c=c.return}return[]}function tC(c){if(c===null)return null;do c=c.return;while(c&&c.tag!==5&&c.tag!==27);return c?c:null}function kv(c,v,E,N,D){for(var H=v._reactName,q=[];E!==null&&E!==N;){var Y=E,I=Y.alternate,Q=Y.stateNode;if(Y=Y.tag,I!==null&&I===N)break;Y!==5&&Y!==26&&Y!==27||Q===null||(I=Q,D?(Q=Sl(E,H),Q!=null&&q.unshift(Ol(E,Q,I))):D||(Q=Sl(E,H),Q!=null&&q.push(Ol(E,Q,I)))),E=E.return}q.length!==0&&c.push({event:v,listeners:q})}var nC=/\r\n?/g,rC=/\u0000|\uFFFD/g;function Ev(c){return(typeof c==="string"?c:""+c).replace(nC,`
11
+ `).replace(rC,"")}function b1(c,v){return v=Ev(v),Ev(c)===v?!0:!1}function $e(c,v,E,N,D,H){switch(E){case"children":if(typeof N==="string")v==="body"||v==="textarea"&&N===""||Wi(c,N);else if(typeof N==="number"||typeof N==="bigint")v!=="body"&&Wi(c,""+N);else return;break;case"className":Gu(c,"class",N);break;case"tabIndex":Gu(c,"tabindex",N);break;case"dir":case"role":case"viewBox":case"width":case"height":Gu(c,E,N);break;case"style":vb(c,N,H);return;case"data":if(v!=="object"){Gu(c,"data",N);break}case"src":case"href":if(N===""&&(v!=="a"||E!=="href")){c.removeAttribute(E);break}if(N==null||typeof N==="function"||typeof N==="symbol"||typeof N==="boolean"){c.removeAttribute(E);break}N=as(N),c.setAttribute(E,N);break;case"action":case"formAction":if(typeof N==="function"){c.setAttribute(E,"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 H==="function"&&(E==="formAction"?(v!=="input"&&$e(c,v,"name",D.name,D,null),$e(c,v,"formEncType",D.formEncType,D,null),$e(c,v,"formMethod",D.formMethod,D,null),$e(c,v,"formTarget",D.formTarget,D,null)):($e(c,v,"encType",D.encType,D,null),$e(c,v,"method",D.method,D,null),$e(c,v,"target",D.target,D,null)));if(N==null||typeof N==="symbol"||typeof N==="boolean"){c.removeAttribute(E);break}N=as(N),c.setAttribute(E,N);break;case"onClick":N!=null&&(c.onclick=tr);return;case"onScroll":N!=null&&je("scroll",c);return;case"onScrollEnd":N!=null&&je("scrollend",c);return;case"dangerouslySetInnerHTML":if(N!=null){if(typeof N!=="object"||!("__html"in N))throw Error(ve(61));if(E=N.__html,E!=null){if(D.children!=null)throw Error(ve(60));(H!=null?H.__html:void 0)!==E&&(c.innerHTML=E)}}break;case"multiple":c.multiple=N&&typeof N!=="function"&&typeof N!=="symbol";break;case"muted":c.muted=N&&typeof N!=="function"&&typeof N!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(N==null||typeof N==="function"||typeof N==="boolean"||typeof N==="symbol"){c.removeAttribute("xlink:href");break}E=as(N),c.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",E);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":N!=null&&typeof N!=="function"&&typeof N!=="symbol"?c.setAttribute(E,N):c.removeAttribute(E);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":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":N&&typeof N!=="function"&&typeof N!=="symbol"?c.setAttribute(E,""):c.removeAttribute(E);break;case"capture":case"download":N===!0?c.setAttribute(E,""):N!==!1&&N!=null&&typeof N!=="function"&&typeof N!=="symbol"?c.setAttribute(E,N):c.removeAttribute(E);break;case"cols":case"rows":case"size":case"span":N!=null&&typeof N!=="function"&&typeof N!=="symbol"&&!isNaN(N)&&1<=N?c.setAttribute(E,N):c.removeAttribute(E);break;case"rowSpan":case"start":N==null||typeof N==="function"||typeof N==="symbol"||isNaN(N)?c.removeAttribute(E):c.setAttribute(E,N);break;case"popover":je("beforetoggle",c),je("toggle",c),rs(c,"popover",N);break;case"xlinkActuate":br(c,"http://www.w3.org/1999/xlink","xlink:actuate",N);break;case"xlinkArcrole":br(c,"http://www.w3.org/1999/xlink","xlink:arcrole",N);break;case"xlinkRole":br(c,"http://www.w3.org/1999/xlink","xlink:role",N);break;case"xlinkShow":br(c,"http://www.w3.org/1999/xlink","xlink:show",N);break;case"xlinkTitle":br(c,"http://www.w3.org/1999/xlink","xlink:title",N);break;case"xlinkType":br(c,"http://www.w3.org/1999/xlink","xlink:type",N);break;case"xmlBase":br(c,"http://www.w3.org/XML/1998/namespace","xml:base",N);break;case"xmlLang":br(c,"http://www.w3.org/XML/1998/namespace","xml:lang",N);break;case"xmlSpace":br(c,"http://www.w3.org/XML/1998/namespace","xml:space",N);break;case"is":rs(c,"is",N);break;case"innerText":case"textContent":return;default:if(!(2<E.length)||E[0]!=="o"&&E[0]!=="O"||E[1]!=="n"&&E[1]!=="N")E=wE.get(E)||E,rs(c,E,N);else return}Qe=!0}function xm(c,v,E,N,D,H){switch(E){case"style":vb(c,N,H);return;case"dangerouslySetInnerHTML":if(N!=null){if(typeof N!=="object"||!("__html"in N))throw Error(ve(61));if(E=N.__html,E!=null){if(D.children!=null)throw Error(ve(60));(H!=null?H.__html:void 0)!==E&&(c.innerHTML=E)}}break;case"children":if(typeof N==="string")Wi(c,N);else if(typeof N==="number"||typeof N==="bigint")Wi(c,""+N);else return;break;case"onScroll":N!=null&&je("scroll",c);return;case"onScrollEnd":N!=null&&je("scrollend",c);return;case"onClick":N!=null&&(c.onclick=tr);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!db.hasOwnProperty(E))e:{if(E[0]==="o"&&E[1]==="n"&&(D=E.endsWith("Capture"),H=E.slice(2,D?E.length-7:void 0),v=c[ln]||null,v=v!=null?v[E]:null,typeof v==="function"&&c.removeEventListener(H,v,D),typeof N==="function")){typeof v!=="function"&&v!==null&&(E in c?c[E]=null:c.hasAttribute(E)&&c.removeAttribute(E)),c.addEventListener(H,N,D);break e}Qe=!0,E in c?c[E]=N:N===!0?c.setAttribute(E,""):rs(c,E,N)}return}Qe=!0}function qt(c,v,E){switch(v){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":je("error",c),je("load",c);var N=!1,D=!1,H;for(H in E)if(E.hasOwnProperty(H)){var q=E[H];if(q!=null)switch(H){case"src":N=!0;break;case"srcSet":D=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(ve(137,v));default:$e(c,v,H,q,E,null)}}D&&$e(c,v,"srcSet",E.srcSet,E,null),N&&$e(c,v,"src",E.src,E,null);return;case"input":je("invalid",c);var Y=H=q=D=null,I=null,Q=null;for(N in E)if(E.hasOwnProperty(N)){var F=E[N];if(F!=null)switch(N){case"name":D=F;break;case"type":q=F;break;case"checked":I=F;break;case"defaultChecked":Q=F;break;case"value":H=F;break;case"defaultValue":Y=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(ve(137,v));break;default:$e(c,v,N,F,E,null)}}hb(c,H,Y,I,Q,q,D,!1);return;case"select":je("invalid",c),N=q=H=null;for(D in E)if(E.hasOwnProperty(D)&&(Y=E[D],Y!=null))switch(D){case"value":H=Y;break;case"defaultValue":q=Y;break;case"multiple":N=Y;default:$e(c,v,D,Y,E,null)}v=H,E=q,c.multiple=!!N,v!=null?ji(c,!!N,v,!1):E!=null&&ji(c,!!N,E,!0);return;case"textarea":je("invalid",c),H=D=N=null;for(q in E)if(E.hasOwnProperty(q)&&(Y=E[q],Y!=null))switch(q){case"value":N=Y;break;case"defaultValue":D=Y;break;case"children":H=Y;break;case"dangerouslySetInnerHTML":if(Y!=null)throw Error(ve(91));break;default:$e(c,v,q,Y,E,null)}yb(c,N,D,H);return;case"option":for(I in E)if(E.hasOwnProperty(I)&&(N=E[I],N!=null))switch(I){case"selected":c.selected=N&&typeof N!=="function"&&typeof N!=="symbol";break;default:$e(c,v,I,N,E,null)}return;case"dialog":je("beforetoggle",c),je("toggle",c),je("cancel",c),je("close",c);break;case"iframe":case"object":je("load",c);break;case"video":case"audio":for(N=0;N<Rl.length;N++)je(Rl[N],c);break;case"image":je("error",c),je("load",c);break;case"details":je("toggle",c);break;case"embed":case"source":case"link":je("error",c),je("load",c);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Q in E)if(E.hasOwnProperty(Q)&&(N=E[Q],N!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":throw Error(ve(137,v));default:$e(c,v,Q,N,E,null)}return;default:if(Lm(v)){for(F in E)E.hasOwnProperty(F)&&(N=E[F],N!==void 0&&xm(c,v,F,N,E,void 0));return}}for(Y in E)E.hasOwnProperty(Y)&&(N=E[Y],N!=null&&$e(c,v,Y,N,E,null))}var aC={};function iC(c,v,E,N){switch(v){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var D=null,H=null,q=null,Y=null,I=null,Q=null,F=null;for(ne in E){var ee=E[ne];if(E.hasOwnProperty(ne)&&ee!=null)switch(ne){case"checked":break;case"value":break;case"defaultValue":I=ee;default:N.hasOwnProperty(ne)||$e(c,v,ne,null,N,ee)}}for(var te in N){var ne=N[te];if(ee=E[te],N.hasOwnProperty(te)&&(ne!=null||ee!=null))switch(te){case"type":ne!==ee&&(Qe=!0),H=ne;break;case"name":ne!==ee&&(Qe=!0),D=ne;break;case"checked":ne!==ee&&(Qe=!0),Q=ne;break;case"defaultChecked":ne!==ee&&(Qe=!0),F=ne;break;case"value":ne!==ee&&(Qe=!0),q=ne;break;case"defaultValue":ne!==ee&&(Qe=!0),Y=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(ve(137,v));break;default:ne!==ee&&$e(c,v,te,ne,N,ee)}}Rd(c,q,Y,I,Q,F,H,D);return;case"select":ne=q=Y=te=null;for(H in E)if(I=E[H],E.hasOwnProperty(H)&&I!=null)switch(H){case"value":break;case"multiple":ne=I;default:N.hasOwnProperty(H)||$e(c,v,H,null,N,I)}for(D in N)if(H=N[D],I=E[D],N.hasOwnProperty(D)&&(H!=null||I!=null))switch(D){case"value":H!==I&&(Qe=!0),te=H;break;case"defaultValue":H!==I&&(Qe=!0),Y=H;break;case"multiple":H!==I&&(Qe=!0),q=H;default:H!==I&&$e(c,v,D,H,N,I)}v=Y,E=q,N=ne,te!=null?ji(c,!!E,te,!1):!!N!==!!E&&(v!=null?ji(c,!!E,v,!0):ji(c,!!E,E?[]:"",!1));return;case"textarea":ne=te=null;for(Y in E)if(D=E[Y],E.hasOwnProperty(Y)&&D!=null&&!N.hasOwnProperty(Y))switch(Y){case"value":break;case"children":break;default:$e(c,v,Y,null,N,D)}for(q in N)if(D=N[q],H=E[q],N.hasOwnProperty(q)&&(D!=null||H!=null))switch(q){case"value":D!==H&&(Qe=!0),te=D;break;case"defaultValue":D!==H&&(Qe=!0),ne=D;break;case"children":break;case"dangerouslySetInnerHTML":if(D!=null)throw Error(ve(91));break;default:D!==H&&$e(c,v,q,D,N,H)}gb(c,te,ne);return;case"option":for(var ie in E)if(te=E[ie],E.hasOwnProperty(ie)&&te!=null&&!N.hasOwnProperty(ie))switch(ie){case"selected":c.selected=!1;break;default:$e(c,v,ie,null,N,te)}for(I in N)if(te=N[I],ne=E[I],N.hasOwnProperty(I)&&te!==ne&&(te!=null||ne!=null))switch(I){case"selected":te!==ne&&(Qe=!0),c.selected=te&&typeof te!=="function"&&typeof te!=="symbol";break;default:$e(c,v,I,te,N,ne)}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 ce in E)te=E[ce],E.hasOwnProperty(ce)&&te!=null&&!N.hasOwnProperty(ce)&&$e(c,v,ce,null,N,te);for(Q in N)if(te=N[Q],ne=E[Q],N.hasOwnProperty(Q)&&te!==ne&&(te!=null||ne!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(ve(137,v));break;default:$e(c,v,Q,te,N,ne)}return;default:if(Lm(v)){for(var me in E)te=E[me],E.hasOwnProperty(me)&&te!==void 0&&!N.hasOwnProperty(me)&&xm(c,v,me,void 0,N,te);for(F in N)te=N[F],ne=E[F],!N.hasOwnProperty(F)||te===ne||te===void 0&&ne===void 0||xm(c,v,F,te,N,ne);return}}for(var re in E)te=E[re],E.hasOwnProperty(re)&&te!=null&&!N.hasOwnProperty(re)&&$e(c,v,re,null,N,te);for(ee in N)te=N[ee],ne=E[ee],!N.hasOwnProperty(ee)||te===ne||te==null&&ne==null||$e(c,v,ee,te,N,ne)}function Tv(c){switch(c){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function oC(){if(typeof performance.getEntriesByType==="function"){for(var c=0,v=0,E=performance.getEntriesByType("resource"),N=0;N<E.length;N++){var D=E[N],{transferSize:H,initiatorType:q,duration:Y}=D;if(H&&Y&&Tv(q)){q=0,Y=D.responseEnd;for(N+=1;N<E.length;N++){var I=E[N],Q=I.startTime;if(Q>Y)break;var F=I.transferSize,ee=I.initiatorType;F&&Tv(ee)&&(I=I.responseEnd,q+=F*(I<Y?1:(Y-Q)/(I-Q)))}if(--N,v+=8*(H+q)/(D.duration/1000),c++,10<c)break}}if(0<c)return v/c/1e6}return navigator.connection&&(c=navigator.connection.downlink,typeof c==="number")?c:5}var wm=null,Sm=null;function Ml(c){return c.nodeType===9?c:c.ownerDocument}function Cv(c){switch(c){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function x1(c,v){if(c===0)switch(v){case"svg":return 1;case"math":return 2;default:return 0}return c===1&&v==="foreignObject"?0:c}function w1(c,v,E,N){return E=Ml(E).createElement(c),E[Ut]=N,E[ln]=v,qt(E,c,v),Mt(E),E}function km(c,v){return c==="textarea"||c==="noscript"||typeof v.children==="string"||typeof v.children==="number"||typeof v.children==="bigint"||typeof v.dangerouslySetInnerHTML==="object"&&v.dangerouslySetInnerHTML!==null&&v.dangerouslySetInnerHTML.__html!=null}var hd=null;function lC(){var c=window.event;if(c&&c.type==="popstate"){if(c===hd)return!1;return hd=c,!0}return hd=null,!1}var xp=typeof setTimeout==="function"?setTimeout:void 0,uC=typeof clearTimeout==="function"?clearTimeout:void 0,Nv=typeof Promise==="function"?Promise:void 0,Av=typeof requestAnimationFrame==="function"?requestAnimationFrame:xp,sC=typeof queueMicrotask==="function"?queueMicrotask:typeof Nv<"u"?function(c){return Nv.resolve(null).then(c).catch(cC)}:xp;function cC(c){setTimeout(function(){throw c})}function pa(c){return c==="head"}function zv(c,v){var E=v,N=0;do{var D=E.nextSibling;if(c.removeChild(E),D&&D.nodeType===8)if(E=D.data,E==="/$"||E==="/&"){if(N===0){c.removeChild(D),uo(v);return}N--}else if(E==="$"||E==="$?"||E==="$~"||E==="$!"||E==="&")N++;else if(E==="html")yd(c.ownerDocument.documentElement);else if(E==="head"){E=c.ownerDocument.head,yd(E);for(var H=E.firstChild;H;){var q=H.nextSibling,Y=H.nodeName;H[jl]||Y==="SCRIPT"||Y==="STYLE"||Y==="LINK"&&H.rel.toLowerCase()==="stylesheet"||E.removeChild(H),H=q}}else E==="body"&&yd(c.ownerDocument.body);E=D}while(E);uo(v)}function Rv(c,v){var E=c;c=0;do{var N=E.nextSibling;if(E.nodeType===1?v?(E._stashedDisplay=E.style.display,E.style.display="none"):(E.style.display=E._stashedDisplay||"",E.getAttribute("style")===""&&E.removeAttribute("style")):E.nodeType===3&&(v?(E._stashedText=E.nodeValue,E.nodeValue=""):E.nodeValue=E._stashedText||""),N&&N.nodeType===8)if(E=N.data,E==="/$")if(c===0)break;else c--;else E!=="$"&&E!=="$?"&&E!=="$~"&&E!=="$!"||c++;E=N}while(E)}function S1(c,v,E){if(v=CSS.escape(v)!==v?"r-"+btoa(v).replace(/=/g,""):v,c.style.viewTransitionName=v,E!=null&&(c.style.viewTransitionClass=E),E=getComputedStyle(c),E.display==="inline"){if(v=c.getClientRects(),v.length===1)var N=1;else for(var D=N=0;D<v.length;D++){var H=v[D];0<H.width&&0<H.height&&N++}N===1&&(c=c.style,c.display=v.length===1?"inline-block":"block",c.marginTop="-"+E.paddingTop,c.marginBottom="-"+E.paddingBottom)}}function k1(c,v){c=c.style,v=v.style;var E=v!=null?v.hasOwnProperty("viewTransitionName")?v.viewTransitionName:v.hasOwnProperty("view-transition-name")?v["view-transition-name"]:null:null;c.viewTransitionName=E==null||typeof E==="boolean"?"":(""+E).trim(),E=v!=null?v.hasOwnProperty("viewTransitionClass")?v.viewTransitionClass:v.hasOwnProperty("view-transition-class")?v["view-transition-class"]:null:null,c.viewTransitionClass=E==null||typeof E==="boolean"?"":(""+E).trim(),c.display==="inline-block"&&(v==null?c.display=c.margin="":(E=v.display,c.display=E==null||typeof E==="boolean"?"":E,E=v.margin,E!=null?c.margin=E:(E=v.hasOwnProperty("marginTop")?v.marginTop:v["margin-top"],c.marginTop=E==null||typeof E==="boolean"?"":E,v=v.hasOwnProperty("marginBottom")?v.marginBottom:v["margin-bottom"],c.marginBottom=v==null||typeof v==="boolean"?"":v)))}function E1(c,v,E){return E=E.ownerDocument.defaultView,{rect:c,abs:v.position==="absolute"||v.position==="fixed",clip:v.clipPath!=="none"||v.overflow!=="visible"||v.filter!=="none"||v.mask!=="none"||v.mask!=="none"||v.borderRadius!=="0px",view:0<=c.bottom&&0<=c.right&&c.top<=E.innerHeight&&c.left<=E.innerWidth}}function Em(c){var v=c.getBoundingClientRect(),E=getComputedStyle(c);return E1(v,E,c)}function fC(c){var v=c.getBoundingClientRect();v=new DOMRect(v.x+20000,v.y+20000,v.width,v.height);var E=getComputedStyle(c);return E1(v,E,c)}function dC(c){return c.documentElement.clientHeight}function mC(c){this.addEventListener("load",c),this.addEventListener("error",c)}function pC(c,v,E,N,D,H,q,Y,I){var Q=v.nodeType===9?v:v.ownerDocument;try{var F=Q.startViewTransition({update:function(){var te=Q.defaultView,ne=te.navigation&&te.navigation.transition,ie=Q.fonts.status;N();var ce=[];if(ie==="loaded"&&(dC(Q),Q.fonts.status==="loading"&&ce.push(Q.fonts.ready)),ie=ce.length,c!==null)for(var me=c.suspenseyImages,re=0,oe=0;oe<me.length;oe++){var le=me[oe];if(!le.complete){var pe=le.getBoundingClientRect();if(0<pe.bottom&&0<pe.right&&pe.top<te.innerHeight&&pe.left<te.innerWidth){if(re+=U1(le),re>xs){ce.length=ie;break}le=new Promise(mC.bind(le)),ce.push(le)}}}if(0<ce.length)return te=Promise.race([Promise.all(ce),new Promise(function(ye){return setTimeout(ye,500)})]).then(D,D),(ne?Promise.allSettled([ne.finished,te]):te).then(H,H);if(D(),ne)return ne.finished.then(H,H);H()},types:E});Q.__reactViewTransition=F;var ee=[];return F.ready.then(function(){for(var te=Q.documentElement.getAnimations({subtree:!0}),ne=0;ne<te.length;ne++){var ie=te[ne],ce=ie.effect,me=ce.pseudoElement;if(me!=null&&me.startsWith("::view-transition")){ee.push(ie),ie=ce.getKeyframes();for(var re=me=void 0,oe=!0,le=0;le<ie.length;le++){var pe=ie[le],ye=pe.width;if(me===void 0)me=ye;else if(me!==ye){oe=!1;break}if(ye=pe.height,re===void 0)re=ye;else if(re!==ye){oe=!1;break}delete pe.width,delete pe.height,pe.transform==="none"&&delete pe.transform}oe&&me!==void 0&&re!==void 0&&(ce.setKeyframes(ie),oe=getComputedStyle(ce.target,ce.pseudoElement),oe.width!==me||oe.height!==re)&&(oe=ie[0],oe.width=me,oe.height=re,oe=ie[ie.length-1],oe.width=me,oe.height=re,ce.setKeyframes(ie))}}q()},function(te){Q.__reactViewTransition===F&&(Q.__reactViewTransition=null);try{if(typeof te==="object"&&te!==null)switch(te.name){case"InvalidStateError":if(te.message==="View transition was skipped because document visibility state is hidden."||te.message==="Skipping view transition because document visibility state has become hidden."||te.message==="Skipping view transition because viewport size changed."||te.message==="Transition was aborted because of invalid state")te=null}te!==null&&I(te)}finally{N(),D(),q()}}),F.finished.finally(function(){for(var te=0;te<ee.length;te++)ee[te].cancel();Q.__reactViewTransition===F&&(Q.__reactViewTransition=null),Y()}),F}catch(te){return N(),D(),q(),null}}function La(c,v){this._scope=document.documentElement,this._selector="::view-transition-"+c+"("+v+")"}La.prototype.animate=function(c,v){return v=typeof v==="number"?{duration:v}:at({},v),v.pseudoElement=this._selector,this._scope.animate(c,v)};La.prototype.getAnimations=function(){for(var c=this._scope,v=this._selector,E=c.getAnimations({subtree:!0}),N=[],D=0;D<E.length;D++){var H=E[D].effect;H!==null&&H.target===c&&H.pseudoElement===v&&N.push(E[D])}return N};La.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function T1(c){return{name:c,group:new La("group",c),imagePair:new La("image-pair",c),old:new La("old",c),new:new La("new",c)}}function xn(c){this._fragmentFiber=c,this._observers=this._eventListeners=null}xn.prototype.addEventListener=function(c,v,E){var N=null,D=null;if(E!=null&&typeof E!=="boolean"&&(N=E.signal||null,N!==null&&N.aborted))return;this._eventListeners===null&&(this._eventListeners=[]);var H=this._eventListeners;if(C1(H,c,v,E)===-1){var q=this,Y=v;E!=null&&typeof E!=="boolean"&&E.once===!0&&(Y=function(I){q.removeEventListener(c,v,E),typeof v==="function"?v.call(this,I):v.handleEvent(I)}),N!==null&&(D=q.removeEventListener.bind(q,c,v,E),N.addEventListener("abort",D,{once:!0}),D=N.removeEventListener.bind(N,"abort",D)),N=ao(E),H.push({type:c,listener:v,optionsOrUseCapture:E,attachedListener:Y,cleanup:D}),on(this._fragmentFiber.child,!1,hC,c,Y,N)}this._eventListeners=H};function hC(c,v,E,N){return At(c).addEventListener(v,E,N),!1}xn.prototype.removeEventListener=function(c,v,E){var N=this._eventListeners;if(N!==null&&(v=C1(N,c,v,E),v!==-1)){var D=N[v];E=D.attachedListener;var H=D.cleanup;D=ao(D.optionsOrUseCapture),on(this._fragmentFiber.child,!1,gC,c,E,D),N.splice(v,1),H!==null&&H()}};function gC(c,v,E,N){return At(c).removeEventListener(v,E,N),!1}function ao(c){return c!=null&&typeof c!=="boolean"&&(c.once===!0||c.signal instanceof AbortSignal)?{capture:c.capture,passive:c.passive}:c}function Ov(c){return c==null?"c=0":typeof c==="boolean"?"c="+(c?"1":"0"):"c="+(c.capture?"1":"0")}function C1(c,v,E,N){if(c.length===0)return-1;N=Ov(N);for(var D=0;D<c.length;D++){var H=c[D];if(H.type===v&&H.listener===E&&Ov(H.optionsOrUseCapture)===N)return D}return-1}xn.prototype.dispatchEvent=function(c){var v=Ja(this._fragmentFiber);if(v===null)return!0;v=At(v);var E=this._eventListeners;if(E!==null&&0<E.length||!c.bubbles){var N=v.nodeType===9?v.createComment(""):document.createTextNode("");if(E)for(var D=0;D<E.length;D++){var H=E[D];N.addEventListener(H.type,H.attachedListener,ao(H.optionsOrUseCapture))}if(v.appendChild(N),c=N.dispatchEvent(c),E)for(D=0;D<E.length;D++)H=E[D],N.removeEventListener(H.type,H.attachedListener,ao(H.optionsOrUseCapture));return v.removeChild(N),c}return v.dispatchEvent(c)};xn.prototype.focus=function(c){on(this._fragmentFiber.child,!0,N1,c,void 0,void 0)};function N1(c,v){if(c.tag===6)return!1;return c=At(c),AC(c,v)}xn.prototype.focusLast=function(c){var v=[];on(this._fragmentFiber.child,!0,wp,v,void 0,void 0);for(var E=v.length-1;0<=E&&!N1(v[E],c);E--);};function wp(c,v){return v.push(c),!1}xn.prototype.blur=function(){var c=Ja(this._fragmentFiber);c!==null&&(c=At(c),c=Ml(c).activeElement,c!==null&&on(this._fragmentFiber.child,!1,yC,c,void 0,void 0))};function yC(c,v){if(c.tag===6)return!1;return c=At(c),c===v||c.contains(v)?(v.blur(),!0):!1}xn.prototype.observeUsing=function(c){this._observers===null&&(this._observers=new Set),this._observers.add(c),on(this._fragmentFiber.child,!1,vC,c,void 0,void 0)};function vC(c,v){if(c.tag===6)return!1;return c=At(c),v.observe(c),!1}xn.prototype.unobserveUsing=function(c){var v=this._observers;if(v!==null&&v.has(c)){v.delete(c),on(this._fragmentFiber.child,!1,bC,c,void 0,void 0);for(var E=v=0;E<Yn.length;E++){var N=Yn[E];N.fragmentInstance===this&&N.observer===c?c.unobserve(N.instance):Yn[v++]=N}Yn.length=v}};function bC(c,v){if(c.tag===6)return!1;return c=At(c),v.unobserve(c),!1}var Yn=[],gd=!1;function xC(c,v,E){Yn.push({fragmentInstance:c,observer:v,instance:E}),gd||(gd=!0,zC(function(){gd=!1;var N=Yn;Yn=[];for(var D=0;D<N.length;D++){var H=N[D];H.observer.unobserve(H.instance)}}))}xn.prototype.getClientRects=function(){var c=[];return on(this._fragmentFiber.child,!1,wC,c,void 0,void 0),c};function wC(c,v){if(c.tag===6){c=c.stateNode;var E=c.ownerDocument.createRange();E.selectNodeContents(c),v.push.apply(v,E.getClientRects())}else c=At(c),v.push.apply(v,c.getClientRects());return!1}xn.prototype.getRootNode=function(c){var v=Ja(this._fragmentFiber);return v===null?this:At(v).getRootNode(c)};xn.prototype.compareDocumentPosition=function(c){var v=Ja(this._fragmentFiber);if(v===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var E=[];on(this._fragmentFiber.child,!1,wp,E,void 0,void 0);var N=At(v);if(E.length===0){if(E=N,dy(this._fragmentFiber)){e:{for(v=this._fragmentFiber.return;v!==null;){if(v.tag===4){v=v.stateNode.containerInfo;break e}if(v.tag===3||v.tag===5||v.tag===27)break;v=v.return}v=null}v!=null&&(E=v)}v=this._fragmentFiber;var D=N=E.compareDocumentPosition(c);return E===c?D=Node.DOCUMENT_POSITION_CONTAINS:N&Node.DOCUMENT_POSITION_CONTAINED_BY&&(E=Kv(v)[1],E===null?D=Node.DOCUMENT_POSITION_PRECEDING:(c=At(E).compareDocumentPosition(c),D=c===0||c&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),D|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}v=At(E[0]),D=At(E[E.length-1]);var H=dy(this._fragmentFiber)?v.parentElement:N;if(H==null)return Node.DOCUMENT_POSITION_DISCONNECTED;N=H.compareDocumentPosition(v)&Node.DOCUMENT_POSITION_CONTAINED_BY,H=H.compareDocumentPosition(D)&Node.DOCUMENT_POSITION_CONTAINED_BY;var q=v.compareDocumentPosition(c),Y=D.compareDocumentPosition(c),I=q&Node.DOCUMENT_POSITION_CONTAINED_BY||Y&Node.DOCUMENT_POSITION_CONTAINED_BY;return Y=N&&H&&q&Node.DOCUMENT_POSITION_FOLLOWING&&Y&Node.DOCUMENT_POSITION_PRECEDING,v=N&&v===c||H&&D===c||I||Y?Node.DOCUMENT_POSITION_CONTAINED_BY:!N&&v===c||!H&&D===c?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:q,v&Node.DOCUMENT_POSITION_DISCONNECTED||v&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||SC(v,this._fragmentFiber,E[0],E[E.length-1],c)?v:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function SC(c,v,E,N,D){var H=Da(D);if(c&Node.DOCUMENT_POSITION_CONTAINED_BY){if(E=!!H)e:{for(;H!==null;){if(H.tag===7&&(H===v||H.alternate===v)){E=!0;break e}H=H.return}E=!1}return E}if(c&Node.DOCUMENT_POSITION_CONTAINS){if(H===null)return H=D.ownerDocument,D===H||D===H.documentElement||D===H.body;e:{H=v;for(v=Ja(v);H!==null;){if(!(H.tag!==5&&H.tag!==3&&H.tag!==27||H!==v&&H.alternate!==v)){H=!0;break e}H=H.return}H=!1}return H}return c&Node.DOCUMENT_POSITION_PRECEDING?((v=!!H)&&!(v=H===E)&&(v=bd(E,H,my),v===null?v=!1:(on(v,!0,Z2,H,E),H=Ai,Ai=null,v=H!==null)),v):c&Node.DOCUMENT_POSITION_FOLLOWING?((v=!!H)&&!(v=H===N)&&(v=bd(N,H,my),v===null?v=!1:(on(v,!0,K2,H,N),H=Ai,vd=Ai=null,v=H!==null)),v):!1}function Mv(c,v){var E=c.ownerDocument.createRange();E.selectNodeContents(c),c=E.getBoundingClientRect(),window.scrollTo(window.scrollX+c.left,v?window.scrollY+c.top:window.scrollY+c.bottom-window.innerHeight)}xn.prototype.scrollIntoView=function(c){if(typeof c==="object")throw Error(ve(566));var v=[];on(this._fragmentFiber.child,!1,wp,v,void 0,void 0);var E=c!==!1;if(v.length===0){var N=Kv(this._fragmentFiber);if(N=E?N[1]||N[0]||Ja(this._fragmentFiber):N[0]||N[1],N===null)return;if(N.tag===6){c=At(N),Mv(c,E);return}if(N=At(N),N.nodeType!==9){if(N.nodeType===11){E="host"in N?N.host:null,E!==null&&E.scrollIntoView(c);return}N.scrollIntoView(c)}}for(N=E?v.length-1:0;N!==(E?-1:v.length);){var D=v[N];D.tag===6?(D=At(D),Mv(D,E)):At(D).scrollIntoView(c),N+=E?-1:1}};function kC(c,v){return c=At(c),A1(c,v),!1}function A1(c,v){c.reactFragments==null&&(c.reactFragments=new Set),c.reactFragments.add(v)}function z1(c,v){var E=v._eventListeners;if(E!==null)for(var N=0;N<E.length;N++){var D=E[N];c.addEventListener(D.type,D.attachedListener,ao(D.optionsOrUseCapture))}c.nodeType!==3&&(E=v._observers,E!==null&&E.forEach(function(H){for(var q=0,Y=0;Y<Yn.length;Y++){var I=Yn[Y];if(I.fragmentInstance!==v||I.observer!==H||I.instance!==c)Yn[q++]=I}Yn.length=q,H.observe(c)}),A1(c,v))}function EC(c,v){var E=v._eventListeners;if(E!==null)for(var N=0;N<E.length;N++){var D=E[N];c.removeEventListener(D.type,D.attachedListener,ao(D.optionsOrUseCapture))}c.nodeType!==3&&(E=v._observers,E!==null&&E.forEach(function(H){typeof H.rootMargin==="string"?xC(v,H,c):H.unobserve(c)}),c.reactFragments!=null&&c.reactFragments.delete(v))}function Tm(c){var v=c.firstChild;v&&v.nodeType===10&&(v=v.nextSibling);for(;v;){var E=v;switch(v=v.nextSibling,E.nodeName){case"HTML":case"HEAD":case"BODY":Tm(E),ec(E);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(E.rel.toLowerCase()==="stylesheet")continue}c.removeChild(E)}}function TC(c,v,E,N){for(;c.nodeType===1;){var D=E;if(c.nodeName.toLowerCase()!==v.toLowerCase()){if(!N&&(c.nodeName!=="INPUT"||c.type!=="hidden"))break}else if(!N)if(v==="input"&&c.type==="hidden"){var H=D.name==null?null:""+D.name;if(D.type==="hidden"&&c.getAttribute("name")===H)return c}else return c;else if(!c[jl])switch(v){case"meta":if(!c.hasAttribute("itemprop"))break;return c;case"link":if(H=c.getAttribute("rel"),H==="stylesheet"&&c.hasAttribute("data-precedence"))break;else if(H!==D.rel||c.getAttribute("href")!==(D.href==null||D.href===""?null:D.href)||c.getAttribute("crossorigin")!==(D.crossOrigin==null?null:D.crossOrigin)||c.getAttribute("title")!==(D.title==null?null:D.title))break;return c;case"style":if(c.hasAttribute("data-precedence"))break;return c;case"script":if(H=c.getAttribute("src"),(H!==(D.src==null?null:D.src)||c.getAttribute("type")!==(D.type==null?null:D.type)||c.getAttribute("crossorigin")!==(D.crossOrigin==null?null:D.crossOrigin))&&H&&c.hasAttribute("async")&&!c.hasAttribute("itemprop"))break;return c;default:return c}if(c=Mn(c.nextSibling),c===null)break}return null}function CC(c,v,E){if(v==="")return null;for(;c.nodeType!==3;){if((c.nodeType!==1||c.nodeName!=="INPUT"||c.type!=="hidden")&&!E)return null;if(c=Mn(c.nextSibling),c===null)return null}return c}function R1(c,v){for(;c.nodeType!==8;){if((c.nodeType!==1||c.nodeName!=="INPUT"||c.type!=="hidden")&&!v)return null;if(c=Mn(c.nextSibling),c===null)return null}return c}function Cm(c){return c.data==="$?"||c.data==="$~"}function Sp(c){return c.data==="$!"||c.data==="$?"&&c.ownerDocument.readyState!=="loading"}function NC(c,v){var E=c.ownerDocument;if(c.data==="$~")c._reactRetry=v;else if(c.data!=="$?"||E.readyState!=="loading")v();else{var N=function(){v(),E.removeEventListener("DOMContentLoaded",N)};E.addEventListener("DOMContentLoaded",N),c._reactRetry=N}}function Mn(c){for(;c!=null;c=c.nextSibling){var v=c.nodeType;if(v===1||v===3)break;if(v===8){if(v=c.data,v==="$"||v==="$!"||v==="$?"||v==="$~"||v==="&"||v==="F!"||v==="F")break;if(v==="/$"||v==="/&")return null}}return c}var Nm=null;function _v(c){c=c.nextSibling;for(var v=0;c;){if(c.nodeType===8){var E=c.data;if(E==="/$"||E==="/&"){if(v===0)return Mn(c.nextSibling);v--}else E!=="$"&&E!=="$!"&&E!=="$?"&&E!=="$~"&&E!=="&"||v++}c=c.nextSibling}return null}function Dv(c){c=c.previousSibling;for(var v=0;c;){if(c.nodeType===8){var E=c.data;if(E==="$"||E==="$!"||E==="$?"||E==="$~"||E==="&"){if(v===0)return c;v--}else E!=="/$"&&E!=="/&"||v++}c=c.previousSibling}return null}function AC(c,v){function E(){N=!0}if(c.ownerDocument.activeElement===c)return!0;var N=!1;try{c.ownerDocument.addEventListener("focus",E,!0),(c.focus||HTMLElement.prototype.focus).call(c,v)}finally{c.ownerDocument.removeEventListener("focus",E,!0)}return N}function zC(c){Av(function(){Av(function(v){return c(v)})})}function O1(c,v,E){switch(v=Ml(E),c){case"html":if(c=v.documentElement,!c)throw Error(ve(452));return c;case"head":if(c=v.head,!c)throw Error(ve(453));return c;case"body":if(c=v.body,!c)throw Error(ve(454));return c;default:throw Error(ve(451))}}function M1(c,v,E){for(var N in E){var D=E[N];E.hasOwnProperty(N)&&D!=null&&$e(c,v,N,null,aC,D)}E.dangerouslySetInnerHTML!=null&&(c.textContent=""),c.onclick===tr&&(c.onclick=null),ec(c)}function yd(c){for(var v=c.attributes;v.length;)c.removeAttributeNode(v[0]);ec(c)}var _n=new Map,Lv=new Set;function _l(c){if(typeof c.getRootNode==="function"){var v=c.getRootNode();if(v.nodeType===9||v.nodeType===11)return v}return c.nodeType===9?c:c.ownerDocument}var Dr=Ze.d;Ze.d={f:RC,r:OC,D:MC,C:_C,L:DC,m:LC,X:HC,S:UC,M:BC};function RC(){var c=Dr.f(),v=pc();return c||v}function OC(c){var v=so(c);v!==null&&v.tag===5&&v.type==="form"?v0(v):Dr.r(c)}var po=typeof document>"u"?null:document;function _1(c,v,E){var N=po;if(N&&typeof v==="string"&&v){var D=An(v);D='link[rel="'+c+'"][href="'+D+'"]',typeof E==="string"&&(D+='[crossorigin="'+E+'"]'),Lv.has(D)||(Lv.add(D),c={rel:c,crossOrigin:E,href:v},N.querySelector(D)===null&&(v=N.createElement("link"),qt(v,"link",c),Mt(v),N.head.appendChild(v)))}}function MC(c){Dr.D(c),_1("dns-prefetch",c,null)}function _C(c,v){Dr.C(c,v),_1("preconnect",c,v)}function DC(c,v,E){Dr.L(c,v,E);var N=po;if(N&&c&&v){var D='link[rel="preload"][as="'+An(v)+'"]';v==="image"?E&&E.imageSrcSet?(D+='[imagesrcset="'+An(E.imageSrcSet)+'"]',typeof E.imageSizes==="string"&&(D+='[imagesizes="'+An(E.imageSizes)+'"]')):D+='[href="'+An(c)+'"]':D+='[href="'+An(c)+'"]';var H=D;switch(v){case"style":H=io(c);break;case"script":H=ho(c)}if(!(_n.has(H)||(c=at({rel:"preload",href:v==="image"&&E&&E.imageSrcSet?void 0:c,as:v},E),_n.set(H,c),N.querySelector(D)!==null||v==="style"&&N.querySelector(Xl(H))||v==="script"&&N.querySelector(Fl(H))))){var q=N.createElement("link");qt(q,"link",c),v==="style"&&(q[Ns]=!0,q.onload=q.onerror=function(){cb(q)}),Mt(q),N.head.appendChild(q)}}}function LC(c,v){Dr.m(c,v);var E=po;if(E&&c){var N=v&&typeof v.as==="string"?v.as:"script",D='link[rel="modulepreload"][as="'+An(N)+'"][href="'+An(c)+'"]',H=D;switch(N){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":H=ho(c)}if(!_n.has(H)&&(c=at({rel:"modulepreload",href:c},v),_n.set(H,c),E.querySelector(D)===null)){switch(N){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(E.querySelector(Fl(H)))return}N=E.createElement("link"),qt(N,"link",c),Mt(N),E.head.appendChild(N)}}}function UC(c,v,E){Dr.S(c,v,E);var N=po;if(N&&c){var D=qi(N).hoistableStyles,H=io(c);v=v||"default";var q=D.get(H);if(!q){var Y={loading:0,preload:null};if(q=N.querySelector(Xl(H)))Y.loading=5;else{c=at({rel:"stylesheet",href:c,"data-precedence":v},E),(E=_n.get(H))&&kp(c,E);var I=q=N.createElement("link");Mt(I),qt(I,"link",c),I._p=new Promise(function(Q,F){I.onload=Q,I.onerror=F}),I.addEventListener("load",function(){Y.loading|=1}),I.addEventListener("error",function(){Y.loading|=2}),Y.loading|=4,vs(q,v,N)}q={type:"stylesheet",instance:q,count:1,state:Y},D.set(H,q)}}}function HC(c,v){Dr.X(c,v);var E=po;if(E&&c){var N=qi(E).hoistableScripts,D=ho(c),H=N.get(D);H||(H=E.querySelector(Fl(D)),H||(c=at({src:c,async:!0},v),(v=_n.get(D))&&Ep(c,v),H=E.createElement("script"),Mt(H),qt(H,"link",c),E.head.appendChild(H)),H={type:"script",instance:H,count:1,state:null},N.set(D,H))}}function BC(c,v){Dr.M(c,v);var E=po;if(E&&c){var N=qi(E).hoistableScripts,D=ho(c),H=N.get(D);H||(H=E.querySelector(Fl(D)),H||(c=at({src:c,async:!0,type:"module"},v),(v=_n.get(D))&&Ep(c,v),H=E.createElement("script"),Mt(H),qt(H,"link",c),E.head.appendChild(H)),H={type:"script",instance:H,count:1,state:null},N.set(D,H))}}function Uv(c,v,E,N){var D=(D=ea.current)?_l(D):null;if(!D)throw Error(ve(446));switch(c){case"meta":case"title":return null;case"style":return typeof E.precedence==="string"&&typeof E.href==="string"?(E=io(E.href),v=qi(D).hoistableStyles,N=v.get(E),N||(N={type:"style",instance:null,count:0,state:null},v.set(E,N)),N):{type:"void",instance:null,count:0,state:null};case"link":if(E.rel==="stylesheet"&&typeof E.href==="string"&&typeof E.precedence==="string"){c=io(E.href);var H=qi(D).hoistableStyles,q=H.get(c);if(q||(D=D.ownerDocument||D,q={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},H.set(c,q),(H=D.querySelector(Xl(c)))?H._p||(q.instance=H,q.state.loading=5):(H=_n.get(c),H||(H={rel:"preload",as:"style",href:E.href,crossOrigin:E.crossOrigin,integrity:E.integrity,media:E.media,hrefLang:E.hrefLang,referrerPolicy:E.referrerPolicy},_n.set(c,H)),VC(D,c,H,q.state))),v&&N===null)throw Error(ve(528,""));return q}if(v&&N!==null)throw Error(ve(529,""));return null;case"script":return v=E.async,E=E.src,typeof E==="string"&&v&&typeof v!=="function"&&typeof v!=="symbol"?(E=ho(E),v=qi(D).hoistableScripts,N=v.get(E),N||(N={type:"script",instance:null,count:0,state:null},v.set(E,N)),N):{type:"void",instance:null,count:0,state:null};default:throw Error(ve(444,c))}}function io(c){return'href="'+An(c)+'"'}function Xl(c){return'link[rel="stylesheet"]['+c+"]"}function D1(c){return at({},c,{"data-precedence":c.precedence,precedence:null})}function VC(c,v,E,N){if(v=c.querySelector('link[rel="preload"][as="style"]['+v+"]")){if(v[Ns]!==!0){N.loading=1;return}}else v=c.createElement("link"),v[Ns]=!0,v.onload=v.onerror=cb.bind(null,v),qt(v,"link",E),Mt(v),c.head.appendChild(v);N.preload=v,v.addEventListener("load",function(){return N.loading|=1}),v.addEventListener("error",function(){return N.loading|=2})}function ho(c){return'[src="'+An(c)+'"]'}function Fl(c){return"script[async]"+c}function Hv(c,v,E){if(v.count++,v.instance===null)switch(v.type){case"style":var N=c.querySelector('style[data-href~="'+An(E.href)+'"]');if(N)return v.instance=N,Mt(N),N;var D=at({},E,{"data-href":E.href,"data-precedence":E.precedence,href:null,precedence:null});return N=(c.ownerDocument||c).createElement("style"),Mt(N),qt(N,"style",D),vs(N,E.precedence,c),v.instance=N;case"stylesheet":D=io(E.href);var H=c.querySelector(Xl(D));if(H)return v.state.loading|=4,v.instance=H,Mt(H),H;N=D1(E),(D=_n.get(D))&&kp(N,D),H=(c.ownerDocument||c).createElement("link"),Mt(H);var q=H;return q._p=new Promise(function(Y,I){q.onload=Y,q.onerror=I}),qt(H,"link",N),v.state.loading|=4,vs(H,E.precedence,c),v.instance=H;case"script":if(H=ho(E.src),D=c.querySelector(Fl(H)))return v.instance=D,Mt(D),D;if(N=E,D=_n.get(H))N=at({},E),Ep(N,D);return c=c.ownerDocument||c,D=c.createElement("script"),Mt(D),qt(D,"link",N),c.head.appendChild(D),v.instance=D;case"void":return null;default:throw Error(ve(443,v.type))}else v.type==="stylesheet"&&(v.state.loading&4)===0&&(N=v.instance,v.state.loading|=4,vs(N,E.precedence,c));return v.instance}function vs(c,v,E){for(var N=E.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),D=N.length?N[N.length-1]:null,H=D,q=0;q<N.length;q++){var Y=N[q];if(Y.dataset.precedence===v)H=Y;else if(H!==D)break}H?H.parentNode.insertBefore(c,H.nextSibling):(v=E.nodeType===9?E.head:E,v.insertBefore(c,v.firstChild))}function kp(c,v){c.crossOrigin==null&&(c.crossOrigin=v.crossOrigin),c.referrerPolicy==null&&(c.referrerPolicy=v.referrerPolicy),c.title==null&&(c.title=v.title)}function Ep(c,v){c.crossOrigin==null&&(c.crossOrigin=v.crossOrigin),c.referrerPolicy==null&&(c.referrerPolicy=v.referrerPolicy),c.integrity==null&&(c.integrity=v.integrity)}var bs=null;function Bv(c,v,E){if(bs===null){var N=new Map,D=bs=new Map;D.set(E,N)}else D=bs,N=D.get(E),N||(N=new Map,D.set(E,N));if(N.has(c))return N;N.set(c,null),E=E.getElementsByTagName(c);for(D=0;D<E.length;D++){var H=E[D];if(!(H[jl]||H[Ut]||c==="link"&&H.getAttribute("rel")==="stylesheet")&&H.namespaceURI!=="http://www.w3.org/2000/svg"){var q=H.getAttribute(v)||"";q=c+q;var Y=N.get(q);Y?Y.push(H):N.set(q,[H])}}return N}function Am(c,v,E){c=c.ownerDocument||c,c.head.insertBefore(E,v==="title"?c.querySelector("head > title"):null)}function qC(c,v,E){if(E===1||v.itemProp!=null)return!1;switch(c){case"meta":case"title":return!0;case"style":if(typeof v.precedence!=="string"||typeof v.href!=="string"||v.href==="")break;return!0;case"link":if(typeof v.rel!=="string"||typeof v.href!=="string"||v.href===""||v.onLoad||v.onError)break;switch(v.rel){case"stylesheet":return c=v.disabled,typeof v.precedence==="string"&&c==null;default:return!0}case"script":if(v.async&&typeof v.async!=="function"&&typeof v.async!=="symbol"&&!v.onLoad&&!v.onError&&v.src&&typeof v.src==="string")return!0}return!1}function Vv(c,v){return c==="img"&&v.src!=null&&v.src!==""&&v.onLoad==null&&v.loading!=="lazy"}function L1(c){return c.type==="stylesheet"&&(c.state.loading&3)===0?!1:!0}function U1(c){return(c.width||100)*(c.height||100)*(typeof devicePixelRatio==="number"?devicePixelRatio:1)*0.25}function qv(c,v){typeof v.decode==="function"&&(c.imgCount++,v.complete||(c.imgBytes+=U1(v),c.suspenseyImages.push(v)),c=IC.bind(c),v.decode().then(c,c))}function jC(c,v,E,N){if(E.type==="stylesheet"&&(typeof N.media!=="string"||matchMedia(N.media).matches!==!1)&&(E.state.loading&4)===0){if(E.instance===null){var D=io(N.href),H=v.querySelector(Xl(D));if(H){v=H._p,v!==null&&typeof v==="object"&&typeof v.then==="function"&&(c.count++,c=Dl.bind(c),v.then(c,c)),E.state.loading|=4,E.instance=H,Mt(H);return}H=v.ownerDocument||v,N=D1(N),(D=_n.get(D))&&kp(N,D),H=H.createElement("link"),Mt(H);var q=H;q._p=new Promise(function(Y,I){q.onload=Y,q.onerror=I}),qt(H,"link",N),E.instance=H}c.stylesheets===null&&(c.stylesheets=new Map),c.stylesheets.set(E,v),(v=E.state.preload)&&(E.state.loading&3)===0&&(c.count++,E=Dl.bind(c),v.addEventListener("load",E),v.addEventListener("error",E))}}var xs=0;function YC(c,v){return c.stylesheets&&c.count===0&&ws(c,c.stylesheets),0<c.count||0<c.imgCount?function(E){var N=setTimeout(function(){if(c.stylesheets&&ws(c,c.stylesheets),c.unsuspend){var H=c.unsuspend;c.unsuspend=null,H()}},60000+v);0<c.imgBytes&&xs===0&&(xs=62500*oC());var D=setTimeout(function(){if(c.waitingForImages=!1,c.count===0&&(c.stylesheets&&ws(c,c.stylesheets),c.unsuspend)){var H=c.unsuspend;c.unsuspend=null,H()}},(c.imgBytes>xs?50:800)+v);return c.unsuspend=E,function(){c.unsuspend=null,clearTimeout(N),clearTimeout(D)}}:null}function H1(c){if(c.count===0&&(c.imgCount===0||!c.waitingForImages)){if(c.stylesheets)ws(c,c.stylesheets);else if(c.unsuspend){var v=c.unsuspend;c.unsuspend=null,v()}}}function Dl(){this.count--,H1(this)}function IC(){this.imgCount--,H1(this)}var Ks=null;function ws(c,v){c.stylesheets=null,c.unsuspend!==null&&(c.count++,Ks=new Map,v.forEach(GC,c),Ks=null,Dl.call(c))}function GC(c,v){if(!(v.state.loading&4)){var E=Ks.get(c);if(E)var N=E.get(null);else{E=new Map,Ks.set(c,E);for(var D=c.querySelectorAll("link[data-precedence],style[data-precedence]"),H=0;H<D.length;H++){var q=D[H];if(q.nodeName==="LINK"||q.getAttribute("media")!=="not all")E.set(q.dataset.precedence,q),N=q}N&&E.set(null,N)}D=v.instance,q=D.getAttribute("data-precedence"),H=E.get(q)||N,H===N&&E.set(null,D),E.set(q,D),this.count++,N=Dl.bind(this),D.addEventListener("load",N),D.addEventListener("error",N),H?H.parentNode.insertBefore(D,H.nextSibling):(c=c.nodeType===9?c.head:c,c.insertBefore(D,c.firstChild)),v.state.loading|=4}}var oo={$$typeof:er,Provider:null,Consumer:null,_currentValue:Ua,_currentValue2:Ua,_threadCount:0};function PC(c,v,E,N,D,H,q,Y,I){this.tag=1,this.containerInfo=c,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=Qf(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qf(0),this.hiddenUpdates=Qf(null),this.identifierPrefix=N,this.onUncaughtError=D,this.onCaughtError=H,this.onRecoverableError=q,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=I,this.transitionTypes=null,this.incompleteTransitions=new Map}function QC(c,v,E,N,D,H,q,Y,I,Q,F,ee){return c=new PC(c,v,E,q,I,Q,F,ee,Y),v=1,H===!0&&(v|=24),H=rn(3,null,null,v),c.current=H,H.stateNode=c,v=Pm(),v.refCount++,c.pooledCache=v,v.refCount++,H.memoizedState={element:N,isDehydrated:E,cache:v},Fm(H),c}function XC(c){if(!c)return Ui;return c=Ui,c}function B1(c,v,E,N,D,H){D=XC(D),N.context===null?N.context=D:N.pendingContext=D,N=qa(v),N.payload={element:E},H=H===void 0?null:H,H!==null&&(N.callback=H),E=ja(c,N,v),E!==null&&(an(E,c,v),dl(E,c,v))}function jv(c,v){if(c=c.memoizedState,c!==null&&c.dehydrated!==null){var E=c.retryLane;c.retryLane=E!==0&&E<v?E:v}}function Tp(c,v){jv(c,v),(c=c.alternate)&&jv(c,v)}function V1(c){if(c.tag===13||c.tag===31){var v=ei(c,67108864);v!==null&&an(v,c,67108864),Tp(c,67108864)}}function Yv(c){if(c.tag===13||c.tag===31){var v=On();v=ub(v);var E=ei(c,v);E!==null&&an(E,c,v),Tp(c,v)}}var lo=!0;function FC(c,v,E,N){var D=De.T;De.T=null;var H=Ze.p;try{Ze.p=2,Cp(c,v,E,N)}finally{Ze.p=H,De.T=D}}function ZC(c,v,E,N){var D=De.T;De.T=null;var H=Ze.p;try{Ze.p=8,Cp(c,v,E,N)}finally{Ze.p=H,De.T=D}}function Cp(c,v,E,N){if(lo){var D=zm(N);if(D===null)pd(c,v,N,Js,E),Iv(c,N);else if(JC(D,c,v,E,N))N.stopPropagation();else if(Iv(c,N),v&4&&-1<KC.indexOf(c)){for(;D!==null;){var H=so(D);if(H!==null)switch(H.tag){case 3:if(H=H.stateNode,H.current.memoizedState.isDehydrated){var q=Ra(H.pendingLanes);if(q!==0){var Y=H;Y.pendingLanes|=2;for(Y.entangledLanes|=2;q;){var I=1<<31-vn(q);Y.entanglements[1]|=I,q&=~I}_r(H),(Fe&6)===0&&(Ps=gn()+500,Ql(0,!1))}}break;case 31:case 13:Y=ei(H,2),Y!==null&&an(Y,H,2),pc(),Tp(H,2)}if(H=zm(N),H===null&&pd(c,v,N,Js,E),H===D)break;D=H}D!==null&&N.stopPropagation()}else pd(c,v,N,null,E)}}function zm(c){return c=Um(c),Np(c)}var Js=null;function Np(c){if(Js=null,c=Da(c),c!==null){var v=Hl(c);if(v===null)c=null;else{var E=v.tag;if(E===13){if(c=Xv(v),c!==null)return c;c=null}else if(E===31){if(c=Fv(v),c!==null)return c;c=null}else if(E===3){if(v.stateNode.current.memoizedState.isDehydrated)return v.tag===3?v.stateNode.containerInfo:null;c=null}else v!==c&&(c=null)}}return Js=c,null}function q1(c){switch(c){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"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"fullscreenerror":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"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(iE()){case eb:return 2;case tb:return 8;case Cs:case oE:return 32;case nb:return 268435456;default:return 32}default:return 32}}var Rm=!1,ia=null,oa=null,la=null,Ll=new Map,Ul=new Map,Xr=[],KC="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 Iv(c,v){switch(c){case"focusin":case"focusout":ia=null;break;case"dragenter":case"dragleave":oa=null;break;case"mouseover":case"mouseout":la=null;break;case"pointerover":case"pointerout":Ll.delete(v.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ul.delete(v.pointerId)}}function Wo(c,v,E,N,D,H){if(c===null||c.nativeEvent!==H)return c={blockedOn:v,domEventName:E,eventSystemFlags:N,nativeEvent:H,targetContainers:[D]},v!==null&&(v=so(v),v!==null&&V1(v)),c;return c.eventSystemFlags|=N,v=c.targetContainers,D!==null&&v.indexOf(D)===-1&&v.push(D),c}function JC(c,v,E,N,D){switch(v){case"focusin":return ia=Wo(ia,c,v,E,N,D),!0;case"dragenter":return oa=Wo(oa,c,v,E,N,D),!0;case"mouseover":return la=Wo(la,c,v,E,N,D),!0;case"pointerover":var H=D.pointerId;return Ll.set(H,Wo(Ll.get(H)||null,c,v,E,N,D)),!0;case"gotpointercapture":return H=D.pointerId,Ul.set(H,Wo(Ul.get(H)||null,c,v,E,N,D)),!0}return!1}function j1(c){var v=Da(c.target);if(v!==null){var E=Hl(v);if(E!==null){if(v=E.tag,v===13){if(v=Xv(E),v!==null){c.blockedOn=v,yy(c.priority,function(){Yv(E)});return}}else if(v===31){if(v=Fv(E),v!==null){c.blockedOn=v,yy(c.priority,function(){Yv(E)});return}}else if(v===3&&E.stateNode.current.memoizedState.isDehydrated){c.blockedOn=E.tag===3?E.stateNode.containerInfo:null;return}}}c.blockedOn=null}function Ss(c){if(c.blockedOn!==null)return!1;for(var v=c.targetContainers;0<v.length;){var E=zm(c.nativeEvent);if(E===null){E=c.nativeEvent;var N=new E.constructor(E.type,E);Od=N,E.target.dispatchEvent(N),Od=null}else return v=so(E),v!==null&&V1(v),c.blockedOn=E,!1;v.shift()}return!0}function Gv(c,v,E){Ss(c)&&E.delete(v)}function WC(){Rm=!1,ia!==null&&Ss(ia)&&(ia=null),oa!==null&&Ss(oa)&&(oa=null),la!==null&&Ss(la)&&(la=null),Ll.forEach(Gv),Ul.forEach(Gv)}function ts(c,v){c.blockedOn===v&&(c.blockedOn=null,Rm||(Rm=!0,Na(Ca,WC)))}var ns=null;function Pv(c){ns!==c&&(ns=c,Na(Ca,function(){ns===c&&(ns=null);for(var v=0;v<c.length;v+=3){var E=c[v],N=c[v+1],D=c[v+2];if(typeof N!=="function")if(Np(N||E)===null)continue;else break;var H=so(E);H!==null&&(c.splice(v,3),v-=3,Xd(H,{pending:!0,data:D,method:E.method,action:N},N,D))}}))}function uo(c){function v(I){return ts(I,c)}ia!==null&&ts(ia,c),oa!==null&&ts(oa,c),la!==null&&ts(la,c),Ll.forEach(v),Ul.forEach(v);for(var E=0;E<Xr.length;E++){var N=Xr[E];N.blockedOn===c&&(N.blockedOn=null)}for(;0<Xr.length&&(E=Xr[0],E.blockedOn===null);)j1(E),E.blockedOn===null&&Xr.shift();if(E=(c.ownerDocument||c).$$reactFormReplay,E!=null)for(N=0;N<E.length;N+=3){var D=E[N],H=E[N+1],q=D[ln]||null;if(typeof H==="function")q||Pv(E);else if(q){var Y=null;if(H&&H.hasAttribute("formAction")){if(D=H,q=H[ln]||null)Y=q.formAction;else if(Np(D)!==null)continue}else Y=q.action;typeof Y==="function"?E[N+1]=Y:(E.splice(N,3),N-=3),Pv(E)}}}function $C(){function c(H){H.canIntercept&&H.info==="react-transition"&&H.intercept({handler:function(){return new Promise(function(q){return D=q})},focusReset:"manual",scroll:"manual"})}function v(){D!==null&&(D(),D=null),N||setTimeout(E,20)}function E(){if(!N&&!navigation.transition){var H=navigation.currentEntry;H&&H.url!=null&&navigation.navigate(H.url,{state:H.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var N=!1,D=null;return navigation.addEventListener("navigate",c),navigation.addEventListener("navigatesuccess",v),navigation.addEventListener("navigateerror",v),setTimeout(E,100),function(){N=!0,navigation.removeEventListener("navigate",c),navigation.removeEventListener("navigatesuccess",v),navigation.removeEventListener("navigateerror",v),D!==null&&(D(),D=null)}}}function Ap(c){this._internalRoot=c}zp.prototype.render=Ap.prototype.render=function(c){var v=this._internalRoot;if(v===null)throw Error(ve(409));var E=v.current,N=On();B1(E,N,c,v,null,null)};zp.prototype.unmount=Ap.prototype.unmount=function(){var c=this._internalRoot;if(c!==null){this._internalRoot=null;var v=c.containerInfo;B1(c.current,2,null,c,null,null),pc(),v[ql]=null}};function zp(c){this._internalRoot=c}zp.prototype.unstable_scheduleHydration=function(c){if(c){var v=sb();c={blockedOn:null,target:c,priority:v};for(var E=0;E<Xr.length&&v!==0&&v<Xr[E].priority;E++);Xr.splice(E,0,c),E===0&&j1(c)}};var Qv=Af;if(Qv!=="19.3.0")throw Error(ve(527,Qv,"19.3.0"));Ze.findDOMNode=function(c){var v=c._reactInternals;if(v===void 0){if(typeof c.render==="function")throw Error(ve(188));throw c=Object.keys(c).join(","),Error(ve(268,c))}return c=F2(v),c=c!==null?Zv(c):null,c=c===null?null:c.stateNode,c};var eN={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:De,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){if(Ni=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Ni.isDisabled&&Ni.supportsFiber)try{Bl=Ni.inject(eN),yn=Ni}catch(c){}}var Ni;var Rp=function(c,v){if(!X2(c))throw Error(ve(299));var E=!1,N="",D=NT,H=AT,q=zT;return v!==null&&v!==void 0&&(v.unstable_strictMode===!0&&(E=!0),v.identifierPrefix!==void 0&&(N=v.identifierPrefix),v.onUncaughtError!==void 0&&(D=v.onUncaughtError),v.onCaughtError!==void 0&&(H=v.onCaughtError),v.onRecoverableError!==void 0&&(q=v.onRecoverableError)),v=QC(c,1,!1,null,null,E,N,null,D,H,q,$C),c[ql]=v.current,y1(c),new Ap(v)};Y1();var rN=/dynamically imported module|importing a module script|loading chunk|loading css chunk|ChunkLoadError/i;function Op(c){let v=c instanceof Error?`${c.name} ${c.message}`:String(c);return rN.test(v)}function aN(c,v){let E=Number(c);return!c||Number.isNaN(E)||v-E>60000}function I1(c=sessionStorage,v=Date.now(),E=()=>location.reload()){try{if(!aN(c.getItem("rt-chunk-reload"),v))return!1;c.setItem("rt-chunk-reload",String(v))}catch{return!1}return E(),!0}function G1(c){try{let v=new Intl.Locale(c.replaceAll("_","-"));if(v.language!=="zh")return!1;if(v.script!==void 0&&v.script!=="Hant")return!1;return v.region==="TW"||v.script==="Hant"&&!v.region}catch{return!1}}function Q1(){if(typeof document>"u")return{};let c=document.querySelector('meta[name="roundtable-console-presentation"]')?.content;try{return c?JSON.parse(c)??{}:{}}catch{return{}}}var Mp=Q1();function X1(c){Mp=c}var F1,P1;async function yc(c){if(P1===c)return;F1=c!==void 0&&G1(c)?(await (M("mtvm7sn7"),import("./chunk-zh-tw-mtvm7sn7.js"))).ZH_TW:void 0,P1=c}var Z1=()=>Q1().locale;function t(c,v={}){return(Mp.messages?.[c]??F1?.[c]??c).replace(/\{(\w+)\}/g,(E,N)=>String(v[N]??E))}function vc(c,v,E){return t(c===1?v:E,{count:c})}function bc(){return Mp.locale??"en-GB"}var r=(c)=>c;var iN=Symbol.for("react.transitional.element"),oN=Symbol.for("react.fragment");function K1(c,v,E){var N=null;if(E!==void 0&&(N=""+E),v.key!==void 0&&(N=""+v.key),"key"in v){E={};for(var D in v)D!=="key"&&(E[D]=v[D])}else E=v;return v=E.ref,{$$typeof:iN,type:c,key:N,ref:v!==void 0?v:null,props:E}}var h=oN,e=K1,n=K1;var lN={rooms:"M21 12a8 8 0 0 1-11.6 7.1L4 20.5l1.4-4.7A8 8 0 1 1 21 12Z",schedules:"M12 7v5l3 2M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z",settings:"M4 7h9M17 7h3M4 17h3M11 17h9M15 4v6M9 14v6",more:"M5 12h.01M12 12h.01M19 12h.01",back:"M15 5l-7 7 7 7",send:"M12 19V5M5 12l7-7 7 7",stop:"M7 7h10v10H7z",attach:"M20 11.5l-8.2 8.2a5 5 0 0 1-7-7l8.5-8.5a3.3 3.3 0 0 1 4.7 4.7l-8.6 8.6a1.7 1.7 0 0 1-2.4-2.4l7.9-7.9",menu:"M12 5h.01M12 12h.01M12 19h.01",sun:"M12 3v2M12 19v2M3 12h2M19 12h2M5.6 5.6l1.4 1.4M17 17l1.4 1.4M5.6 18.4L7 17M17 7l1.4-1.4M16 12a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z",moon:"M20 14.5A8 8 0 0 1 9.5 4a8 8 0 1 0 10.5 10.5Z",system:"M4 5h16v11H4zM9 20h6M12 16v4",bolt:"M13 3L5 13.5h6L10 21l8-10.5h-6L13 3Z",timer:"M10 2h4M12 8v5l3 2M20 13a8 8 0 1 1-16 0 8 8 0 0 1 16 0Z",check:"M5 12.5l4.5 4.5L19 7.5",close:"M6 6l12 12M18 6L6 18",copy:"M9 9h10v11H9zM5 15V4h10",search:"M11 18a7 7 0 1 1 0-14 7 7 0 0 1 0 14Zm5-2l5 5",overview:"M4 4h7v7H4zM13 4h7v4h-7zM13 11h7v9h-7zM4 14h7v6H4z",conversations:"M4 5h16v11H9l-5 4V5Z",notes:"M6 3h9l4 4v14H6zM14 3v5h5M9 13h7M9 17h5",skills:"M10 4a2 2 0 1 1 4 0v2h4v4h-2a2 2 0 1 0 0 4h2v4h-4v-2a2 2 0 1 0-4 0v2H6v-4h2a2 2 0 1 0 0-4H6V6h4V4Z",connectors:"M9 3v5M15 3v5M6 8h12v4a6 6 0 0 1-12 0V8ZM12 18v3",trash:"M5 7h14M10 7V4h4v3M7 7l1 13h8l1-13",refresh:"M20 11a8 8 0 0 0-14.5-3.5L4 9M4 4v5h5M4 13a8 8 0 0 0 14.5 3.5L20 15M20 20v-5h-5",download:"M12 4v11M7 11l5 5 5-5M5 20h14",file:"M6 3h9l4 4v14H6zM14 3v5h5",logout:"M15 4h4v16h-4M10 8l-4 4 4 4M6 12h10",profile:"M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8ZM4 21a8 8 0 0 1 16 0",reset:"M4 4v6h6M4.5 10A8 8 0 1 1 6 16",chevron:"M9 6l6 6-6 6",sparkle:"M12 3l2 5.5L19.5 10 14 12l-2 5.5L10 12l-5.5-2L10 8.5 12 3Z",shield:"M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6l8-3Z",table:"M3 12a9 4.5 0 1 0 18 0 9 4.5 0 1 0-18 0ZM6.5 14.5L5 19M17.5 14.5L19 19M12 16.5V20",list:"M8 6h12M8 12h12M8 18h12M4 6h.01M4 12h.01M4 18h.01"};function Ne({name:c,size:v=20,...E}){return e("svg",{viewBox:"0 0 24 24",width:v,height:v,fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",focusable:"false",...E,children:e("path",{d:lN[c]})})}function uN(c){let v=Op(c.error);return e("div",{className:"page",children:n("div",{className:"crash",role:"alert",children:[e("span",{className:"crash-icon",children:e(Ne,{name:"shield",size:22})}),e("h2",{children:t("Something went wrong")}),e("p",{children:v?t("The app was updated while this page was open, so part of it could not load."):t("This page stopped working. Reloading usually fixes it.")}),e("button",{type:"button",onClick:c.onReload,children:t("Reload")})]})})}class Zl extends Tf{state={};static getDerivedStateFromProps(c,v){return c.resetKey===v.key?null:{error:void 0,key:c.resetKey}}static getDerivedStateFromError(c){return{error:{value:c}}}componentDidCatch(c,v){if(Op(c)&&I1())return;console.error("the page failed",c,v.componentStack)}render(){let{error:c}=this.state;if(!c)return this.props.children;return e(uN,{error:c.value,onReload:()=>location.reload()})}}var Kl=()=>typeof matchMedia==="function"&&matchMedia("(prefers-reduced-motion: reduce)").matches;function J1(c){if(Kl()||typeof document.startViewTransition!=="function"){c();return}let v=document.startViewTransition(()=>jf(c));v.ready.catch(()=>{return}),v.updateCallbackDone.catch(()=>{return}),v.finished.catch(()=>{return})}var Pn,ex="";function tx(c,v=""){Pn=c,ex=v}function W1(){try{let c=Pn?window.location.pathname.slice(Pn.length).replace(/^\//,""):window.location.hash.replace(/^#\/?/,""),[v="",E]=c.split("/").map(decodeURIComponent);return{pane:v,...E?{key:E}:{}}}catch{return{pane:""}}}var nx=(c)=>`${Pn?`${Pn}/`:"./"}${c}`,u=(c,v)=>`${Pn?`${Pn}/`:"#/"}${c===ex&&Pn&&!v?"":c}${v?`/${encodeURIComponent(v)}`:""}`,Jl,_p;function ae(c){Jl=c;let v=window.location.href;window.history.pushState({rtGuard:!0},"",v);let E=(D)=>{if(D.state?.rtGuard)return;D.stopImmediatePropagation(),window.history.pushState({rtGuard:!0},"",v),c(()=>{N(),window.history.go(-2)})};window.addEventListener("popstate",E,!0);let N=()=>{if(Jl!==c)return;if(Jl=void 0,_p=void 0,window.removeEventListener("popstate",E,!0),window.history.state?.rtGuard)window.history.replaceState(null,"",window.location.href)};return _p=N,N}function Wl(c,v){let E=u(c,v);if(Jl){Jl(()=>{_p?.(),$1(E)});return}$1(E)}function $1(c){if(Pn)window.history.pushState(null,"",c),window.dispatchEvent(new PopStateEvent("popstate"));else window.location.hash=c.slice(1)}function rx(){let[c,v]=i(W1);return a(()=>{let E=()=>{J1(()=>v(W1())),window.scrollTo(0,0)};window.addEventListener("hashchange",E),window.addEventListener("popstate",E);let N=(D)=>{if(!Pn||D.button!==0||D.metaKey||D.ctrlKey||D.shiftKey||D.altKey||D.defaultPrevented)return;let H=D.target instanceof Element?D.target.closest("a"):null;if(!H||H.target||H.hasAttribute("download"))return;let q=new URL(H.href);if(q.origin!==window.location.origin||!q.pathname.startsWith(`${Pn}/`))return;D.preventDefault(),window.history.pushState(null,"",q),E()};return document.addEventListener("click",N),()=>{window.removeEventListener("hashchange",E),window.removeEventListener("popstate",E),document.removeEventListener("click",N)}},[]),c}function Dp(){return e("span",{className:"brand-mark",children:e("img",{src:nx("icons/192.png"),alt:"",width:28,height:28})})}var ax=4401,ix=4403;var Lp=32000;var lx=50;var sN={yolo:!1,longRunning:!1},wc={text:"",tools:[]};function ux(){return{connection:"connecting",rooms:{},order:[],presence:{},listed:!1,cards:{},cardOrder:[],focus:void 0,revision:0,connects:0,refusal:void 0,forbidden:!1}}var cN=(c)=>({key:c,messages:[],live:[],more:!1,progress:wc,typing:!1,stoppable:!1,mode:sN,autoApproved:0,pending:[]});function ur(c,v,E){let N=c.rooms[v]??cN(v);return{...c,rooms:{...c.rooms,[v]:E(N)}}}function Up(c,v){let E=c.at(-1)?.id??Number.NEGATIVE_INFINITY;if(v.every((H)=>{let q=H.id>E;return E=H.id,q}))return v.length===0?c:[...c,...v];let N=new Set(c.map((H)=>H.id)),D=v.filter((H)=>{if(N.has(H.id))return!1;return N.add(H.id),!0});if(D.length===0)return c;return[...c,...D].sort((H,q)=>H.id-q.id)}function sx(c){if(c.messages.length<=50)return c;return{...c,messages:c.messages.slice(-50),more:!0}}function xc(c){let v=new Set,E=new Map;for(let N of c.cardOrder){let D=c.cards[N];if(!D?.outcome)continue;let H=c.rooms[D.room],q=H?.messages[0];if(q){if(H.more&&mx(D,q))v.add(N)}else E.set(D.room,[...E.get(D.room)??[],N])}for(let N of E.values())for(let D of N.slice(0,N.length-30))v.add(D);if(v.size===0)return c;return{...c,cardOrder:c.cardOrder.filter((N)=>!v.has(N)),cards:Object.fromEntries(Object.entries(c.cards).filter(([N])=>!v.has(N)))}}function fN(c,v,E){if(E.length===0)return c;let N=c.rooms[v]?.messages??[],D={...c.cards},H=[...c.cardOrder];for(let q of E){let Y=q.frame.id,I=Date.parse(q.frame.at??""),Q=D[Y];if(D[Y]={room:q.room,frame:q.frame,after:Q?Q.after:N.findLast((ee)=>Date.parse(ee.at)<=I)?.id??0,outcome:q.outcome,...q.note?{note:q.note}:{},...q.by?{by:q.by}:{},...q.answer?{answer:q.answer}:{},closedAt:q.closedAt},Q)continue;let F=H.findIndex((ee)=>{let te=Date.parse(D[ee]?.frame.at??"");return!Number.isNaN(I)&&te>I});if(F<0)H.push(Y);else H.splice(F,0,Y)}return{...c,cards:D,cardOrder:H}}function dN(c,v){if(c.focus!==v.room)return c;return ur(c,v.room,(E)=>{let{event:N}=v,{text:D,tools:H}=E.progress;switch(N.type){case"text":return{...E,progress:{text:(D+N.delta).slice(-6000),tools:H}};case"tool_start":return{...E,progress:{text:D,tools:[...H.filter((q)=>q.id!==N.id),{id:N.id,tool:N.tool,...N.preview?{preview:N.preview}:{},status:"running"}].slice(-20)}};case"tool_end":return{...E,progress:{text:D,tools:H.map((q)=>q.id===N.id?{...q,status:N.refused?"refused":N.ok?"ok":"failed",...N.refused?{refused:N.refused}:{}}:q)}}}})}function ox(c,v,E,N){let D=ur(c,v,(H)=>{let q=N?H.pending.filter((Q)=>Q.id!==N):H.pending;if(E.id===0&&E.live){let Q=H.live.some((F)=>F.live===E.live)?H.live.map((F)=>F.live===E.live?E:F):[...H.live,E];return{...H,live:Q,pending:q}}let Y=E.kind==="agent",I={...H,messages:Up(H.messages,[E]),live:Y?H.live.filter((Q)=>Q.agent!==E.agent):H.live,progress:Y?wc:H.progress,pending:q};return c.focus===v?I:sx(I)});return c.focus===v?D:xc(D)}function mN(c,v){return ur(c,v.room,(E)=>{if(v.older)return{...E,messages:Up(E.messages,v.messages),more:v.more};let N=v.messages[0],D=E.messages.at(-1);if(N&&D&&N.id>D.id)return{...E,messages:[...v.messages],more:v.more};return{...E,messages:Up(E.messages,v.messages),more:N&&D?E.more||v.more:v.more}})}function cx(c,v){let{phase:E,agent:N,...D}=c;return{...D,typing:v.typing,...v.typing&&v.phase?{phase:v.phase}:{},...v.typing&&v.agent?{agent:v.agent}:{}}}function pN(c,v){let E={...c,listed:!0};for(let N of v)E=ur(E,N.key,(D)=>({...cx(D,N),view:N,mode:N.mode,stoppable:N.stoppable}));return{...E,order:v.map((N)=>N.key)}}function fx(c,v){switch(v.type){case"connection":return{...c,connection:v.status};case"forbidden":return{...c,forbidden:!0,connection:"closed"};case"ready":{let E=new Set(c.cardOrder.filter((N)=>!c.cards[N]?.outcome));return{...c,connection:"open",principal:{id:v.principal,name:v.name},limits:v.uploads,connects:c.connects+1,cardOrder:c.cardOrder.filter((N)=>!E.has(N)),cards:Object.fromEntries(Object.entries(c.cards).filter(([N])=>!E.has(N)))}}case"accepted":return ox(c,v.room,v.message,v.id);case"refused":{let{id:E,prompt:N}=v;if(E===void 0){let D=N===void 0?void 0:c.cards[N];return{...c,refusal:v.code,...N!==void 0&&D?{cards:{...c.cards,[N]:{...D,refused:(D.refused??0)+1}}}:{}}}return{...c,rooms:Object.fromEntries(Object.entries(c.rooms).map(([D,H])=>[D,H.pending.some((q)=>q.id===E)?{...H,pending:H.pending.map((q)=>q.id===E?{...q,failed:v.code}:q)}:H]))}}case"message":return ox(c,v.room,v.message);case"edited":return ur(c,v.room,(E)=>({...E,messages:E.messages.map((N)=>N.id===v.message.id?v.message:N)}));case"progress":return dN(c,v);case"activity":return ur(c,v.room,(E)=>{let N={...cx(E,v),stoppable:v.stoppable,...v.at===void 0?{}:{activityAt:v.at}};if(v.typing){let{outcome:D,outcomeAt:H,...q}=N;return q}return{...N,progress:wc,live:[],...v.outcome?{outcome:v.outcome,...v.at===void 0?{}:{outcomeAt:v.at}}:{}}});case"prompt":{let E=c.cards[v.prompt.id],N=E?E.after:c.rooms[v.room]?.messages.at(-1)?.id??0;return{...ur(c,v.room,(D)=>D),cards:{...c.cards,[v.prompt.id]:{room:v.room,frame:v.prompt,after:N}},cardOrder:E?c.cardOrder:[...c.cardOrder,v.prompt.id]}}case"prompt_closed":{let E=c.cards[v.prompt];if(!E)return c;return xc({...c,cards:{...c.cards,[v.prompt]:{...E,outcome:v.outcome,...v.note?{note:v.note}:{},...v.by?{by:v.by}:{},...v.answer?{answer:v.answer}:{},...v.closedAt?{closedAt:v.closedAt}:{}}}})}case"mode":return ur(c,v.room,(E)=>({...E,mode:{yolo:v.yolo,longRunning:v.longRunning}}));case"auto_approved":return ur(c,v.room,(E)=>({...E,autoApproved:E.autoApproved+1}));case"changed":return{...c,revision:c.revision+1};case"presence":return{...c,presence:v.agents};case"rooms_loaded":return pN(c,v.rooms);case"history_loaded":return xc(fN(mN(c,v),v.room,v.cards??[]));case"focused":{let E=c.focus,N={...c.rooms};if(E&&E!==v.room&&N[E])N[E]=sx(N[E]);if(v.room&&N[v.room]){let{outcome:D,outcomeAt:H,...q}=N[v.room];N[v.room]={...q,progress:wc}}return xc({...c,focus:v.room,rooms:N})}case"queued":return ur(c,v.room,(E)=>({...E,pending:[...E.pending.filter((N)=>N.id!==v.id),{id:v.id,room:v.room,text:v.text,files:v.files}]}));case"pending_dropped":return{...c,rooms:Object.fromEntries(Object.entries(c.rooms).map(([E,N])=>[E,{...N,pending:N.pending.filter((D)=>D.id!==v.id)}]))};case"refusal_dismissed":return{...c,refusal:void 0}}}function Sc(c,v){return c.cardOrder.filter((E)=>{let N=c.cards[E];return N?.room===v&&!N.outcome}).length}function dx(c,v){let E=c.rooms[v],N=E?.messages.at(-1),D=E?.view?.last;return N&&D?N.id>=D.id?N:D:N??D}function mx(c,v){let E=Date.parse(c.frame.at??""),N=Date.parse(v.at);if(!Number.isNaN(E)&&!Number.isNaN(N))return E<N;return c.after<v.id}function px(c,v){let E=c.rooms[v];if(!E)return[];let N=c.cardOrder.map((I)=>({id:I,card:c.cards[I]})).filter((I)=>I.card?.room===v),D=[],H=0,q=(I)=>{while(H<N.length){let Q=N[H];if(!Q||I&&!mx(Q.card,I))break;D.push({kind:"card",card:Q.card,id:Q.id}),H+=1}},Y=E.messages;q(Y[0]),Y.forEach((I,Q)=>{D.push({kind:"message",message:I}),q(Y[Q+1])}),q(void 0);for(let I of E.pending)D.push({kind:"pending",pending:I});for(let I of E.live)D.push({kind:"live",message:I});return D}var kc=(c)=>`api/files/${encodeURIComponent(c.id)}`;class hx{#e=ux();#n=new Set;getState=()=>this.#e;subscribe=(c)=>(this.#n.add(c),()=>this.#n.delete(c));dispatch=(c)=>{let v=fx(this.#e,c);if(v===this.#e)return;this.#e=v;for(let E of this.#n)E()}}var gt=new hx,hN=(c,v)=>{if(Object.is(c,v))return!0;if(typeof c!=="object"||typeof v!=="object"||c===null||v===null)return!1;let E=Object.entries(c),N=Object.entries(v);return E.length===N.length&&E.every(([D,H])=>Object.is(H,v[D]))};function Pe(c,v=""){let E=o(void 0),N=()=>{let D=gt.getState(),H=E.current;if(H&&H.state===D&&H.inputs===v)return H.value;let q=c(D),Y=H&&hN(H.value,q)?H.value:q;return E.current={state:D,inputs:v,value:Y},Y};return Ea(gt.subscribe,N,N)}var gN=15000,yN=120,vN=(c)=>typeof c==="object"&&c!==null&&typeof c.type==="string";class gx{#e;#n;#t;#u=0;#c;#a=!1;#s=!1;#f;#r;#i;#d;constructor(c,v=document.baseURI){let E=new URL("api/socket",v);E.protocol=E.protocol==="https:"?"wss:":"ws:",this.#e=E,this.#n=c}start(){this.#a=!1,this.#m(),document.addEventListener("visibilitychange",this.#p),addEventListener("online",this.#o),addEventListener("pageshow",this.#o)}stop(){this.#a=!0,clearTimeout(this.#c),document.removeEventListener("visibilitychange",this.#p),removeEventListener("online",this.#o),removeEventListener("pageshow",this.#o),this.#t?.close(1000,"page closed")}get open(){return this.#t?.readyState===WebSocket.OPEN}send(c){if(!this.open)return!1;return this.#t?.send(JSON.stringify(c)),!0}focus(c){this.#f=c,gt.dispatch({type:"focused",room:c}),this.send({type:"focus",...c?{room:c}:{}})}say(c,v,E=[]){let N=crypto.randomUUID();if(gt.dispatch({type:"queued",id:N,room:c,text:v,files:E}),!this.send({type:"send",id:N,room:c,text:v,...E.length?{uploads:E.map((H)=>H.id)}:{}}))gt.dispatch({type:"refused",id:N,code:"not_accepted"})}retry(c){gt.dispatch({type:"pending_dropped",id:c.id}),this.say(c.room,c.text,c.files)}#p=()=>{if(this.send({type:"visibility",visible:document.visibilityState==="visible"}),document.visibilityState==="visible")this.#o()};#o=()=>{if(this.#a||this.#t)return;clearTimeout(this.#c),this.#m()};#m(){if(this.#a||this.#t)return;gt.dispatch({type:"connection",status:this.#u===0?"connecting":"reconnecting"});let c=!1,v=new WebSocket(this.#e,[this.#n]);this.#t=v,v.onopen=()=>{c=!0,this.#u=0,this.#s=!1},v.onmessage=(E)=>this.#h(String(E.data)),v.onclose=(E)=>{if(this.#t=void 0,this.#l(),this.#a)return;if(E.code===ix){gt.dispatch({type:"forbidden"});return}if(E.code===ax)this.#s=!0;if(!c&&this.#s){location.reload();return}this.#u+=1,gt.dispatch({type:"connection",status:"reconnecting"});let N=this.#s?0:Math.min(gN,500*2**Math.min(this.#u,6));this.#c=setTimeout(()=>this.#m(),N*(0.75+Math.random()*0.5))}}#h(c){let v;try{v=JSON.parse(c)}catch{return}if(!vN(v))return;if(v.type==="progress"&&v.event.type==="text"){this.#g(v.room,v.event.delta);return}if(this.#l(),gt.dispatch(v.type==="activity"?{...v,at:Date.now()}:v),v.type==="ready")this.send({type:"hello",visible:document.visibilityState==="visible",...this.#f?{focus:this.#f}:{}})}#g(c,v){if(this.#r&&this.#r.room!==c)this.#l();if(this.#r={room:c,delta:(this.#r?.delta??"")+v},this.#i===void 0)this.#i=requestAnimationFrame(()=>this.#l());this.#d??=setTimeout(()=>this.#l(),yN)}#l(){if(this.#i!==void 0)cancelAnimationFrame(this.#i);clearTimeout(this.#d),this.#i=void 0,this.#d=void 0;let c=this.#r;if(this.#r=void 0,c)gt.dispatch({type:"progress",room:c.room,event:{type:"text",delta:c.delta}})}}var go;function yx(c,v=(E)=>new gx(E)){if(!go)go=v(c),go.start();return go}function yo(){if(!go)throw Error("the owner app is not connected");return go}function vx(c){return yx(c.protocol,c.make),c.children}function bx(c,v){let E=c.toLowerCase().replace(/\s+/g,"");if(E==="")return 0;let N=v.toLowerCase(),D=0,H=0,q=0;for(let Y of E){let I=N.indexOf(Y,H);if(I<0)return;let Q=I===0||/[\s\-_./:]/.test(N[I-1]??"");q=I===H?q+1:0,D+=1+(Q?4:0)+q*2-Math.min(I-H,6)*0.2,H=I+1}return D-N.length*0.02}var Ec=(c)=>c.isComposing||c.keyCode===229;var Tc=new Map;function xx(c){let v=JSON.stringify(c),E=Tc.get(v);if(E)return E;if(Tc.size>=200)Tc.clear();return Tc.set(v,c),c}var ni=(c,v)=>c.suggestCharacter({name:v.name,displayName:v.displayName??v.name,prompt:""});function Hp(c,v,E){try{return xx(c.parseCharacter(v))}catch(N){return console.warn(`the character of ${E.name} was refused; drawing a suggestion`,N),xx(ni(c,E))}}function ha(){let c=new Set,v=(E)=>(c.add(E),()=>c.delete(E));return{emit(){for(let E of c)E()},use:(E)=>Ea(v,E,E)}}var wx,Cc,{emit:bN,use:xN}=ha();function Nc(){return Cc??=(M("362dfedj"),import("./chunk-index-362dfedj.js")).then((c)=>(wx=c,bN(),c)),Cc.catch(()=>{Cc=void 0}),Cc}function vo(){return xN(()=>wx)}var Sx={modern:{light:"#f5f6f8",dark:"#0f1115"},camelot:{light:"#f4ead5",dark:"#0f1726"}};var kx="rt-theme",wN=["system","light","dark"],{emit:SN,use:kN}=ha(),Lr=EN();function EN(){try{let c=localStorage.getItem(kx);return wN.find((v)=>v===c)??"system"}catch{return"system"}}var Ex=()=>typeof matchMedia==="function"?matchMedia("(prefers-color-scheme: dark)"):void 0;function Tx(){if(Lr!=="system")return Lr;return Ex()?.matches?"dark":"light"}var TN=(c,v)=>Sx[c][v];function Bp(){requestAnimationFrame(()=>{let c=document.documentElement.dataset.look==="camelot"?"camelot":"modern",v=[...document.querySelectorAll('meta[name="theme-color"]')];if(v.length===0){let E=document.createElement("meta");E.name="theme-color",document.head.append(E),v=[E]}for(let E of v){let N=E.getAttribute("media")??"",D=N.includes("dark")?"dark":"light";E.content=TN(c,Lr==="system"&&N?D:Tx())}})}function $l(){let c=document.documentElement;if(Lr==="system")delete c.dataset.theme;else c.dataset.theme=Lr;Bp(),SN()}function Cx(){$l(),Ex()?.addEventListener("change",()=>{if(Lr==="system")$l()})}var CN=()=>typeof matchMedia==="function"&&matchMedia("(prefers-reduced-motion: reduce)").matches;function Ac(c,v){if(c===Lr)return;Lr=c;try{localStorage.setItem(kx,c)}catch{}let E=document.documentElement;if(CN()){$l();return}if(typeof document.startViewTransition==="function"){let N=v?.x??innerWidth/2,D=v?.y??innerHeight/2,H=Math.hypot(Math.max(N,innerWidth-N),Math.max(D,innerHeight-D));E.classList.add("theme-reveal");let q=document.startViewTransition($l);q.ready.then(()=>E.animate({clipPath:[`circle(0 at ${N}px ${D}px)`,`circle(${H}px at ${N}px ${D}px)`]},{duration:480,easing:"cubic-bezier(0.2, 0.8, 0.2, 1)",pseudoElement:"::view-transition-new(root)"})).catch(()=>{return}),q.updateCallbackDone.catch(()=>{return}),q.finished.catch(()=>{return}).finally(()=>E.classList.remove("theme-reveal"));return}E.classList.add("theme-fade"),$l(),setTimeout(()=>E.classList.remove("theme-fade"),260)}function bo(){return{preference:kN(()=>Lr),resolved:Tx()}}var Vp="rt-look",NN=["modern","camelot"],{emit:AN,use:zN}=ha(),jp="modern",zc=Nx(),qp=zc??jp;function Nx(){try{let c=localStorage.getItem(Vp);return NN.find((v)=>v===c)}catch{return}}function Ax(){qp=zc??jp,document.documentElement.dataset.look=qp,Bp(),AN()}function Rc(c){jp=c==="camelot"?"camelot":"modern",zc=Nx(),Ax()}function zx(c){zc=c;try{if(c)localStorage.setItem(Vp,c);else localStorage.removeItem(Vp)}catch{}Ax()}function Qn(){return zN(()=>qp)}var RN=(c,v)=>`${c}-${v}`,ON=(c)=>c==="camelot"?"shield":"disc";function xo(){let c=Qn(),{resolved:v}=bo();return{look:RN(c,v),frame:ON(c),scheme:v}}function MN(c){return`c${c.toLowerCase().replace(/[^a-z0-9]/g,"")}`.slice(0,16)}var _N=new Set(["svg","g","path","circle","ellipse","rect","clipPath"]),DN=/\bhref\s*=|\bstyle\s*=|\bon[a-z]+\s*=|var\(/i;function Yp(c){if([...c.matchAll(/<\/?([^\s/>]*)/g)].map((E)=>E[1]??"").every((E)=>_N.has(E))&&!DN.test(c))return c;return console.error("the drawing holds markup the page does not inject"),""}function LN(c,v,E){let N={look:v.look,frame:v.frame??"disc",expr:v.expr??c.STATE_EXPRESSION[v.state??"idle"],uid:E},D={name:v.name??v.label??"agent"};if(v.spec===void 0)return Yp(c.composeSvg(ni(c,D),N));try{return Yp(c.composeSvg(v.spec,N))}catch(H){return console.warn(`the character of ${D.name} was refused; drawing a suggestion`,H),Yp(c.composeSvg(ni(c,D),N))}}var UN=b(function(v){let E=MN(P()),N=vo(),{spec:D,look:H,frame:q,state:Y,expr:I,name:Q,label:F}=v,ee=_(()=>N?LN(N,{spec:D,look:H,frame:q,state:Y,expr:I,name:Q,label:F},E):"",[N,D,H,q,Y,I,Q,F,E]),te=v.size;return e("span",{className:v.live===!1?"av-host static":"av-host","data-state":Y??"idle",...F?{role:"img","aria-label":F}:{"aria-hidden":!0},...te?{style:{width:te,height:te}}:{},dangerouslySetInnerHTML:{__html:ee}})}),w=b(function(v){let{look:E,frame:N}=xo();return e(UN,{...v,look:E,frame:N})}),Oc=b(function(v){let E=v.members.slice(0,3);return e("span",{className:"av-stack","aria-hidden":"true",style:{width:v.size*(1+(E.length-1)*0.45),height:v.size},children:E.map((N,D)=>e("span",{className:"av-stack-item",style:{left:D*v.size*0.45,zIndex:E.length-D},children:e(w,{spec:N.spec,name:N.name,size:v.size,live:!1})},N.name))})});var HN=96,BN=0.6,VN=220,qN=()=>typeof matchMedia==="function"&&matchMedia("(max-width: 719px)").matches;function R(c){let v=o(null),E=o(void 0),{open:N,onClose:D}=c,H=o(c.restoreFocus);H.current=c.restoreFocus;let q=o(!1),Y=o(!1),I=A(()=>{let ne=v.current;if(ne?.open)ne.close();if(H.current?.()?.focus(),q.current=!1,Y.current)Y.current=!1;else D()},[D]),Q=A(()=>{let ne=v.current;if(!ne||q.current)return;if(q.current=!0,Kl()){I();return}ne.dataset.state="closing",ne.style.removeProperty("transform"),setTimeout(I,VN)},[I]);a(()=>{let ne=v.current;if(!ne)return;if(N&&!ne.open)ne.dataset.state="opening",ne.showModal(),requestAnimationFrame(()=>requestAnimationFrame(()=>{ne.dataset.state="open"}));if(!N&&ne.open&&!q.current)Y.current=!0,Q()},[N,Q]);let F=(ne)=>{if(!qN())return;if(ne.target instanceof Element&&ne.target.closest("button, a"))return;E.current={y:ne.clientY,at:ne.timeStamp,dy:0},ne.currentTarget.setPointerCapture(ne.pointerId);let ie=v.current;if(ie)ie.dataset.dragging="true"},ee=(ne)=>{let ie=E.current,ce=v.current;if(!ie||!ce)return;let me=Math.max(0,ne.clientY-ie.y);ie.dy=me,ce.style.transform=`translate3d(0, ${me}px, 0)`,ce.style.setProperty("--sheet-progress",String(1-Math.min(1,me/400)))},te=(ne)=>{let ie=E.current,ce=v.current;if(E.current=void 0,!ie||!ce)return;delete ce.dataset.dragging;let me=ie.dy/Math.max(1,ne.timeStamp-ie.at);if(ie.dy>HN||me>BN){Q();return}ce.style.removeProperty("transform"),ce.style.removeProperty("--sheet-progress")};return n("dialog",{ref:v,className:c.variant==="palette"?"sheet palette":"sheet","aria-label":c.title,onCancel:(ne)=>{ne.preventDefault(),Q()},onClick:(ne)=>{if(ne.target===ne.currentTarget)Q()},onClose:()=>{if(!q.current)D()},children:[e("div",{className:"sheet-grab",onPointerDown:F,onPointerMove:ee,onPointerUp:te,onPointerCancel:te,children:e("span",{className:"sheet-handle"})}),n("div",{className:"sheet-body",children:[c.variant==="palette"?null:n("div",{className:"sheet-head",onPointerDown:F,onPointerMove:ee,onPointerUp:te,onPointerCancel:te,children:[e("h2",{children:c.title}),e("button",{type:"button",className:"icon-button","aria-label":t("Close"),onClick:Q,children:e(Ne,{name:"close"})})]}),N?c.children:null]})]})}function Rx(c){let[v,E]=i(""),[N,D]=i(0),H=o(null),q=Pe((Q)=>Q.order.flatMap((F)=>{let ee=Q.rooms[F]?.view;return ee?[{key:F,name:ee.displayName,agent:ee.name,character:ee.character,kind:ee.kind}]:[]})),Y=_(()=>[...q.map((F)=>({id:F.key,label:F.name,hint:F.kind==="agent"?t("Agent"):F.kind==="group"?t("Group"):t("Thread"),room:!0,...F.kind==="agent"?{avatar:{name:F.agent,character:F.character}}:{icon:"conversations"},go:()=>Wl("room",F.key)})),...c.pages.map((F)=>({id:F.pane,label:F.label,hint:t("Page"),icon:F.icon,go:()=>Wl(F.pane)}))].flatMap((F)=>{let ee=bx(v,F.label);return ee===void 0?[]:[{target:F,score:ee}]}).sort((F,ee)=>ee.score-F.score).map((F)=>F.target).slice(0,12),[q,c.pages,v]);a(()=>D(0),[v]),a(()=>{if(c.open)E(""),requestAnimationFrame(()=>H.current?.focus())},[c.open]);let I=(Q)=>{if(!Q)return;c.onClose(),Q.go()};return e(R,{open:c.open,title:t("Find a room"),onClose:c.onClose,variant:"palette",children:n("div",{className:"palette-box",children:[n("div",{className:"palette-input",children:[e(Ne,{name:"search",size:18}),e("input",{ref:H,value:v,placeholder:t("Find a room or page"),"aria-label":t("Find a room or page"),role:"combobox","aria-expanded":"true","aria-controls":"palette-list","aria-activedescendant":Y[N]?`palette-${N}`:void 0,onChange:(Q)=>E(Q.target.value),onKeyDown:(Q)=>{if(Ec(Q.nativeEvent))return;if(Q.key==="ArrowDown")Q.preventDefault(),D((F)=>Math.min(Y.length-1,F+1));else if(Q.key==="ArrowUp")Q.preventDefault(),D((F)=>Math.max(0,F-1));else if(Q.key==="Enter")Q.preventDefault(),I(Y[N])}}),e("kbd",{children:"Esc"})]}),n("ul",{className:"palette-list",children:[Y.length===0?e("li",{className:"palette-empty",children:t("Nothing matches.")}):null,Y.map((Q,F)=>e("li",{"data-active":F===N||void 0,children:n("a",{href:Q.room?u("room",Q.id):u(Q.id),onClick:(ee)=>{ee.preventDefault(),I(Q)},onMouseMove:()=>D(F),"aria-current":F===N?"true":void 0,children:[Q.avatar?e(w,{spec:Q.avatar.character,name:Q.avatar.name,size:28,live:!1}):e("span",{className:"palette-icon",children:e(Ne,{name:Q.icon??"list",size:16})}),e("span",{className:"palette-label",children:Q.label}),e("span",{className:"meta",children:Q.hint})]})},Q.id))]})]})})}function p(){return n("div",{className:"stack","aria-busy":"true",children:[e("div",{className:"skeleton"}),e("div",{className:"skeleton"})]})}function l({message:c}){return e("p",{className:"failure",role:"alert",children:c})}function m({children:c}){return e("p",{className:"empty",children:c})}function f({children:c,tone:v="plain"}){return e("span",{className:`badge badge-${v}`,children:c})}var eu=[],jN=1,{emit:Ox,use:YN}=ha(),IN=5200;function y(c,v="info"){let E=jN++;eu=[...eu.slice(-2),{id:E,text:c,tone:v}],Ox(),setTimeout(()=>Ip(E),IN)}function Ip(c){eu=eu.filter((v)=>v.id!==c),Ox()}var Mx=()=>YN(()=>eu);function GN(c){switch(c){case"bad_frame":return t("The app could not read that. Reload the page and try again.");case"unknown_room":return t("That room is gone.");case"read_only":return t("This room is read-only.");case"forbidden":return t("Only an owner can do that.");case"unknown_prompt":return t("That card is no longer open.");case"unknown_upload":return t("A file is no longer available. Attach it again.");case"empty":return t("Write a message or attach a file.");case"too_long":return t("That message is too long.");case"not_accepted":return t("The message was not taken. Check the connection and try again.")}}function _x(){let c=Mx(),v=Pe((E)=>E.refusal);return a(()=>{if(!v)return;y(GN(v),"danger"),gt.dispatch({type:"refusal_dismissed"})},[v]),e("div",{className:"toaster",role:"status","aria-live":"polite",children:c.map((E)=>n("div",{className:"toast","data-tone":E.tone,children:[e("span",{children:E.text}),e("button",{type:"button",className:"icon-button","aria-label":t("Dismiss"),onClick:()=>Ip(E.id),children:e(Ne,{name:"close",size:16})})]},E.id))})}var Dx="api/";class Z extends Error{field;constructor(c,v){super(c);this.name="ApiFailure",this.field=v}}var PN=(c)=>c===void 0?void 0:t(c);async function Xe(c,v={}){let E;try{E=await fetch(`${Dx}${c}`,{...v,headers:{...v.body&&!(v.body instanceof FormData)?{"content-type":"application/json"}:{},...v.headers}})}catch{throw Error(t("The console is unreachable. Reload the page to sign in again."))}if(E.status===403)throw Error(t("The request was refused. Reload the page to sign in again."));let N=await E.json().catch(()=>{return});if(!E.ok)throw new Z(PN(N?.error)??t("The console answered {status}.",{status:E.status}),N?.field);return N}var s={config:()=>Xe("config"),skills:()=>Xe("skills"),skill:(c)=>Xe(`skills/${encodeURIComponent(c)}`),connectors:()=>Xe("connectors"),startOver:(c)=>Xe(`channels/${encodeURIComponent(c)}/start-over`,{method:"POST"}),deleteConversation:(c)=>Xe(`channels/${encodeURIComponent(c)}/delete`,{method:"POST"}),overview:()=>Xe("overview"),conversations:()=>Xe("conversations"),transcript:(c,v)=>Xe(`conversations/${encodeURIComponent(c)}${v?`?archive=${encodeURIComponent(v)}`:""}`),principals:()=>Xe("principals"),notes:(c,v)=>Xe(`notes${Mc(v,c?{q:c}:{})}`),addNote:(c,v)=>Xe(`notes${Mc(v)}`,{method:"POST",body:JSON.stringify(c)}),updateNote:(c,v,E)=>Xe(`notes/${c}${Mc(E)}`,{method:"PATCH",body:JSON.stringify(v)}),deleteNote:(c,v)=>Xe(`notes/${c}${Mc(v)}`,{method:"DELETE"}),session:()=>Xe("session"),rooms:async()=>{let[c,v]=await Promise.all([Xe("rooms"),Lx()]);return{...c,rooms:c.rooms.map((E)=>E.character===void 0?E:v===void 0?QN(E):{...E,character:Hp(v,E.character,{name:E.name,displayName:E.displayName})})}},messages:(c,v,E=50)=>Xe(`rooms/${encodeURIComponent(c)}/messages?limit=${E}${v===void 0?"":`&before=${v}`}`),setMode:(c,v)=>Xe(`rooms/${encodeURIComponent(c)}/mode`,{method:"PUT",body:JSON.stringify(v)}),startRoomOver:(c)=>Xe(`rooms/${encodeURIComponent(c)}/start-over`,{method:"POST"}),upload:(c)=>{let v=new FormData;return v.set("file",c),Xe("uploads",{method:"POST",body:v})},discardUpload:(c)=>Xe(`uploads/${encodeURIComponent(c)}`,{method:"DELETE"}),pushKey:()=>Xe("push/key"),pushDevices:()=>Xe("push/subscriptions"),addPushDevice:(c)=>Xe("push/subscriptions",{method:"POST",body:JSON.stringify(c)}),removePushEndpoint:(c)=>Xe("push/subscriptions",{method:"DELETE",body:JSON.stringify({endpoint:c})}),removePushDevice:(c)=>Xe(`push/subscriptions/${encodeURIComponent(c)}`,{method:"DELETE"}),schedules:()=>Xe("schedules"),cancelSchedule:(c)=>Xe(`schedules/${c}`,{method:"DELETE"}),models:()=>Xe("models"),agent:(c)=>Gp(Xe(`agents/${encodeURIComponent(c)}`)),updateAgent:(c,v)=>Gp(Xe(`agents/${encodeURIComponent(c)}`,{method:"PATCH",body:JSON.stringify(v)})),setCharacter:(c,v)=>Gp(Xe(`agents/${encodeURIComponent(c)}/character`,{method:"PUT",body:JSON.stringify({character:v})}))};async function Lx(){try{return await Nc()}catch(c){console.warn("the character kit failed to load",c);return}}function QN(c){let{character:v,...E}=c;return E}async function Gp(c){let[v,E]=await Promise.all([c,Lx()]);if(E===void 0)return v;return{...v,character:Hp(E,v.character,{name:v.name,displayName:v.displayName})}}function Mc(c,v={}){let E=new URLSearchParams({...c===void 0?{}:{principal:c},...v}).toString();return E?`?${E}`:""}var Ux=`${Dx}events`,d=(c)=>c instanceof Error?c.message:String(c);var ri=Io(void 0);function g(){let c=yr(ri);if(!c)throw Error("no console config");return c}var XN=30000,Pp=Io({version:0,now:Date.now(),connected:!1}),S=()=>yr(Pp);function Hx(){let[c,v]=i({version:0,now:Date.now(),connected:!1});return a(()=>{let E=(H)=>v((q)=>({version:q.version+1,now:Date.now(),connected:H??q.connected})),N=new EventSource(Ux);N.addEventListener("open",()=>E(!0)),N.addEventListener("error",()=>v((H)=>({...H,connected:!1}))),N.addEventListener("changed",()=>E());let D=setInterval(()=>E(),XN);return()=>{N.close(),clearInterval(D)}},[]),c}function L(c){return Ea((E)=>{if(typeof matchMedia!=="function")return()=>{return};let N=matchMedia(c);return N.addEventListener("change",E),()=>N.removeEventListener("change",E)},()=>typeof matchMedia==="function"&&matchMedia(c).matches,()=>!1)}var Bx={from:1,to:6};function Qp(c,v){if(c.prompts>0)return"waiting";if(c.typing&&c.phase==="working")return"working";if(c.typing||c.busyElsewhere)return c.phase==="thinking"?"thinking":"working";let E=c.outcomeAt===void 0?void 0:v-c.outcomeAt;if(c.outcome==="failed"&&(E===void 0||E<600000))return"error";if(c.outcome==="done"&&E!==void 0&&E<2500)return"done";if(FN(c,v))return"sleepy";return"idle"}function FN(c,v){let E=c.lastActivityAt===void 0?Number.POSITIVE_INFINITY:v-c.lastActivityAt;if(c.lastActivityAt!==void 0&&E>28800000)return!0;let N=new Date(v).getHours();return N>=Bx.from&&N<Bx.to&&E>=3600000}function Xp(c,v){if(c.prompts>0||c.typing||c.busyElsewhere)return;if(c.outcome===void 0||c.outcomeAt===void 0)return;let E=c.outcome==="done"?2500:600000,N=c.outcomeAt+E-v;return N>0?N:void 0}function O(c){let v=vo(),{look:E}=xo();if(!v||!c)return;return{["--agent-accent"]:v.accentOf(c,E)}}function Vx(c){let v=Pe((E)=>{let N=E.rooms[c]?.view;return N?.character??(N?.parent?E.rooms[N.parent]?.view?.character:void 0)},c);return O(v)}function wo(){return Pe((c)=>{let v={};for(let E of Object.values(c.rooms))if(E.view?.kind==="agent"&&E.view.character)v[E.view.name]=E.view.character;return v})}function qx(c,v){let E=c.rooms[v],N=E?.view;return{typing:E?.typing??!1,phase:E?.phase,prompts:Sc(c,v),outcome:E?.outcome,outcomeAt:E?.outcomeAt,lastActivityAt:E?.activityAt,busyElsewhere:N?.kind==="agent"&&c.presence[N.name]?.busy===!0}}function jx(c){let[,v]=Nf((E)=>E+1,0);a(()=>{if(c===void 0)return;let E=setTimeout(v,c+20);return()=>clearTimeout(E)},[c])}function So(c){S();let v=Pe((E)=>qx(E,c),c);return jx(Xp(v,Date.now())),Qp(v,Date.now())}function Yx(c){S();let v=Pe((D)=>D),E=Date.now(),N=c.map((D)=>[D,qx(v,D)]);return jx(N.reduce((D,[,H])=>{let q=Xp(H,E);return q===void 0||D!==void 0&&D<=q?D:q},void 0)),Object.fromEntries(N.map(([D,H])=>[D,Qp(H,E)]))}var Ix=(c)=>c!=="idle"&&c!=="sleepy";var ZN=Hn(()=>(M("dwk6y4be"),import("./chunk-character-creator-dwk6y4be.js")).then((c)=>({default:c.CharacterCreator}))),KN=["default","off","minimal","low","medium","high","xhigh"],Ur="default";function Gx({name:c}){let[v,E]=i(),[N,D]=i([]),[H,q]=i(),[Y,I]=i(),[Q,F]=i(!1),ee=So(v?.room??"");if(a(()=>{let me=!0;return Promise.all([s.agent(c),s.models()]).then(([re,oe])=>{if(!me)return;E(re),D(oe.models),I({displayName:re.displayName,prompt:re.prompt,model:re.model??Ur,thinking:re.thinking??Ur})},(re)=>me&&q(d(re))),()=>{me=!1}},[c]),H)return e("div",{className:"page",children:e(l,{message:H})});if(!v||!Y)return e("div",{className:"page",children:e(p,{})});let te=Array.from(new Set([Ur,...N,Y.model])),ne={...Y.displayName!==v.displayName?{displayName:Y.displayName}:{},...Y.prompt!==v.prompt?{prompt:Y.prompt}:{},...Y.model!==(v.model??Ur)?{model:Y.model}:{},...Y.thinking!==(v.thinking??Ur)?{thinking:Y.thinking}:{}},ie=Object.keys(ne).length>0,ce=async()=>{F(!0);try{let me=await s.updateAgent(c,ne);E(me),I({displayName:me.displayName,prompt:me.prompt,model:me.model??Ur,thinking:me.thinking??Ur}),y(t("Saved."))}catch(me){y(d(me),"danger")}finally{F(!1)}};return n("div",{className:"page",children:[n("header",{className:"page-bar",children:[e("a",{className:"icon-button",href:u("room",v.room),"aria-label":t("Back to the room"),children:e(Ne,{name:"back"})}),e("strong",{children:t("Profile")})]}),n("header",{className:"profile-head",children:[e(w,{spec:v.character,name:v.name,size:72,state:ee,label:v.displayName}),n("div",{children:[e("h1",{children:v.displayName}),e("p",{className:"meta",children:t("Runs on {model}, thinking {thinking}",{model:v.effective.model,thinking:v.effective.thinking})})]})]}),n("section",{className:"card stack",children:[e("h2",{children:t("Look")}),e("p",{className:"meta",children:t("Class, colors and parts. The picture here, in the rooms and in Discord all follow it.")}),e(jo,{fallback:e(p,{}),children:e(ZN,{name:v.name,displayName:v.displayName,prompt:v.prompt,character:v.character,onSaved:(me)=>E(me)})})]}),n("form",{className:"stack form",onSubmit:(me)=>{if(me.preventDefault(),ie)ce()},children:[n("label",{children:[t("Name"),e("input",{value:Y.displayName,onChange:(me)=>I({...Y,displayName:me.target.value})})]}),n("label",{children:[t("Prompt"),e("textarea",{rows:10,value:Y.prompt,onChange:(me)=>I({...Y,prompt:me.target.value})})]}),n("div",{className:"form-row",children:[n("label",{children:[t("Model"),e("select",{value:Y.model,onChange:(me)=>I({...Y,model:me.target.value}),children:te.map((me)=>e("option",{value:me,children:me===Ur?t("Follow the assistant"):me},me))})]}),n("label",{children:[t("Thinking"),e("select",{value:Y.thinking,onChange:(me)=>I({...Y,thinking:me.target.value}),children:KN.map((me)=>e("option",{value:me,children:me===Ur?t("Follow the assistant (automatic)"):me},me))})]})]}),e("div",{className:"actions",children:e("button",{type:"submit",disabled:!ie||Q,children:Q?t("Saving…"):t("Save")})})]})]})}var tu={rooms:"rooms",schedules:"schedules",table:"table",overview:"overview",conversations:"conversations",notes:"notes",skills:"skills",connectors:"connectors",settings:"settings",more:"more"};function Px(c){return n("div",{className:"page",children:[e("header",{className:"page-head",children:e("h1",{children:t("More")})}),e("ul",{className:"more-list",children:c.items.map((v)=>e("li",{children:n("a",{className:"menu-item menu-link",href:u(v.pane),children:[e("span",{className:"menu-icon",children:e(Ne,{name:tu[v.pane]??"list"})}),e("span",{className:"menu-text",children:e("strong",{children:v.label})}),e(Ne,{name:"chevron",size:16})]})},v.pane))})]})}function C(c,v,E){if(!c)return"—";let N=Math.floor((v-Date.parse(c))/60000);if(N<1)return t("just now");if(N<60)return t("{count} min ago",{count:N});let D=Math.floor(N/60);if(D<24)return t("{count} h ago",{count:D});let H=Math.floor(D/24);return H<=7?t("{count} d ago",{count:H}):T(c,E)}function T(c,v){return new Intl.DateTimeFormat(bc(),{timeZone:v,day:"numeric",month:"short",hour:"2-digit",minute:"2-digit",hour12:!1}).format(new Date(c))}function k(c){if(c<1024)return`${c} B`;if(c<1048576)return`${Math.round(c/1024)} KB`;return`${(c/1024/1024).toFixed(1)} MB`}function j(c){return`${Math.round(c/1000)}k`}function z(c,v){switch(c?.kind){case"dm":return{title:c.name?t("Direct message · {name}",{name:c.name}):t("Direct message")};case"guild":return{title:`#${c.name}`,detail:c.guild};case"gone":return{title:v,detail:t("channel no longer exists")};case"unknown":return{title:v,detail:t("channel name unavailable")};default:return{title:v}}}function G(c,v){return`https://discord.com/channels/${v??"@me"}/${c}`}function se(c){return new Intl.DateTimeFormat("en-CA",{timeZone:c}).format(new Date)}function V(c){if(c.kind==="outside")return c.firstMessage||t("Session {id}",{id:c.id.slice(0,8)});if(c.kind==="plugin")return c.title||c.firstMessage||t("Conversation {key}",{key:c.key});let{title:v}=z(c.channel,c.id);return c.member?`${v} · ${c.member}`:v}function Qx(c,v){return new Intl.DateTimeFormat(bc(),{timeZone:v,hour:"2-digit",minute:"2-digit",hour12:!1}).format(new Date(c))}function Xx(c,v,E){let N=(H)=>new Intl.DateTimeFormat("en-CA",{timeZone:E}).format(new Date(H)),D=N(Date.parse(c));if(D===N(v))return t("Today");if(D===N(v-86400000))return t("Yesterday");return new Intl.DateTimeFormat(bc(),{timeZone:E,day:"numeric",month:"short"}).format(new Date(c))}function Fx(c,v){return new Intl.DateTimeFormat("en-CA",{timeZone:v}).format(new Date(c))}function ft(){}function _c(){}function Zx(c,v){let E=v||{};return(c[c.length-1]===""?[...c,""]:c).join((E.padRight?" ":"")+","+(E.padLeft===!1?"":" ")).trim()}var JN=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,WN=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,$N={};function Dc(c,v){return((v||$N).jsx?WN:JN).test(c)}var eA=/[ \t\n\f\r]/g;function Fp(c){return typeof c==="object"?c.type==="text"?Kx(c.value):!1:Kx(c)}function Kx(c){return c.replace(eA,"")===""}class ga{constructor(c,v,E){if(this.normal=v,this.property=c,E)this.space=E}}ga.prototype.normal={};ga.prototype.property={};ga.prototype.space=void 0;function Zp(c,v){let E={},N={};for(let D of c)Object.assign(E,D.property),Object.assign(N,D.normal);return new ga(E,N,v)}function nu(c){return c.toLowerCase()}class Yt{constructor(c,v){this.attribute=v,this.property=c}}Yt.prototype.attribute="";Yt.prototype.booleanish=!1;Yt.prototype.boolean=!1;Yt.prototype.commaOrSpaceSeparated=!1;Yt.prototype.commaSeparated=!1;Yt.prototype.defined=!1;Yt.prototype.mustUseProperty=!1;Yt.prototype.number=!1;Yt.prototype.overloadedBoolean=!1;Yt.prototype.property="";Yt.prototype.spaceSeparated=!1;Yt.prototype.space=void 0;var tA=0,Le=ai(),yt=ai(),Lc=ai(),we=ai(),Je=ai(),Hr=ai(),un=ai();function ai(){return 2**++tA}var Kp=Object.keys(ru);class ko extends Yt{constructor(c,v,E,N){let D=-1;super(c,v);if(Jx(this,"space",N),typeof E==="number")while(++D<Kp.length){let H=Kp[D];Jx(this,Kp[D],(E&ru[H])===ru[H])}}}ko.prototype.defined=!0;function Jx(c,v,E){if(E)c[v]=E}function Dn(c){let v={},E={};for(let[N,D]of Object.entries(c.properties)){let H=new ko(N,c.transform(c.attributes||{},N),D,c.space);if(c.mustUseProperty&&c.mustUseProperty.includes(N))H.mustUseProperty=!0;v[N]=H,E[nu(N)]=N,E[nu(H.attribute)]=N}return new ga(v,E,c.space)}var Jp=Dn({properties:{ariaActiveDescendant:null,ariaAtomic:yt,ariaAutoComplete:null,ariaBusy:yt,ariaChecked:yt,ariaColCount:we,ariaColIndex:we,ariaColSpan:we,ariaControls:Je,ariaCurrent:null,ariaDescribedBy:Je,ariaDetails:null,ariaDisabled:yt,ariaDropEffect:Je,ariaErrorMessage:null,ariaExpanded:yt,ariaFlowTo:Je,ariaGrabbed:yt,ariaHasPopup:null,ariaHidden:yt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Je,ariaLevel:we,ariaLive:null,ariaModal:yt,ariaMultiLine:yt,ariaMultiSelectable:yt,ariaOrientation:null,ariaOwns:Je,ariaPlaceholder:null,ariaPosInSet:we,ariaPressed:yt,ariaReadOnly:yt,ariaRelevant:null,ariaRequired:yt,ariaRoleDescription:Je,ariaRowCount:we,ariaRowIndex:we,ariaRowSpan:we,ariaSelected:yt,ariaSetSize:we,ariaSort:null,ariaValueMax:we,ariaValueMin:we,ariaValueNow:we,ariaValueText:null,role:null},transform(c,v){return v==="role"?v:"aria-"+v.slice(4).toLowerCase()}});function Uc(c,v){return v in c?c[v]:v}function Hc(c,v){return Uc(c,v.toLowerCase())}var Wx=Dn({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Hr,acceptCharset:Je,accessKey:Je,action:null,allow:null,allowFullScreen:Le,allowPaymentRequest:Le,allowUserMedia:Le,alpha:Le,alt:null,as:null,async:Le,autoCapitalize:null,autoComplete:Je,autoFocus:Le,autoPlay:Le,blocking:Je,capture:null,charSet:null,checked:Le,cite:null,className:Je,closedBy:null,colorSpace:null,cols:we,colSpan:we,command:null,commandFor:null,content:null,contentEditable:yt,controls:Le,controlsList:Je,coords:we|Hr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Le,defer:Le,dir:null,dirName:null,disabled:Le,download:Lc,draggable:yt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Le,formTarget:null,headers:Je,height:we,hidden:Lc,high:we,href:null,hrefLang:null,htmlFor:Je,httpEquiv:Je,id:null,imageSizes:null,imageSrcSet:null,inert:Le,inputMode:null,integrity:null,is:null,isMap:Le,itemId:null,itemProp:Je,itemRef:Je,itemScope:Le,itemType:Je,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Le,low:we,manifest:null,max:null,maxLength:we,media:null,method:null,min:null,minLength:we,multiple:Le,muted:Le,name:null,nonce:null,noModule:Le,noValidate:Le,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Le,optimum:we,pattern:null,ping:Je,placeholder:null,playsInline:Le,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Le,referrerPolicy:null,rel:Je,required:Le,reversed:Le,rows:we,rowSpan:we,sandbox:Je,scope:null,scoped:Le,seamless:Le,selected:Le,shadowRootClonable:Le,shadowRootCustomElementRegistry:Le,shadowRootDelegatesFocus:Le,shadowRootMode:null,shadowRootSerializable:Le,shape:null,size:we,sizes:null,slot:null,span:we,spellCheck:yt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:we,step:null,style:null,tabIndex:we,target:null,title:null,translate:null,type:null,typeMustMatch:Le,useMap:null,value:yt,width:we,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Je,axis:null,background:null,bgColor:null,border:we,borderColor:null,bottomMargin:we,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Le,declare:Le,event:null,face:null,frame:null,frameBorder:null,hSpace:we,leftMargin:we,link:null,longDesc:null,lowSrc:null,marginHeight:we,marginWidth:we,noResize:Le,noHref:Le,noShade:Le,noWrap:Le,object:null,profile:null,prompt:null,rev:null,rightMargin:we,rules:null,scheme:null,scrolling:yt,standby:null,summary:null,text:null,topMargin:we,valueType:null,version:null,vAlign:null,vLink:null,vSpace:we,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:Le,disablePictureInPicture:Le,disableRemotePlayback:Le,exportParts:Hr,part:Je,prefix:null,property:null,results:we,security:null,unselectable:null},space:"html",transform:Hc});var $x=Dn({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:un,accentHeight:we,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:we,amplitude:we,arabicForm:null,ascent:we,attributeName:null,attributeType:null,azimuth:we,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:we,by:null,calcMode:null,capHeight:we,className:Je,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:we,diffuseConstant:we,direction:null,display:null,dur:null,divisor:we,dominantBaseline:null,download:Le,dx:null,dy:null,edgeMode:null,editable:null,elevation:we,enableBackground:null,end:null,event:null,exponent:we,externalResourcesRequired:null,fill:null,fillOpacity:we,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Hr,g2:Hr,glyphName:Hr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:we,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:we,horizOriginX:we,horizOriginY:we,id:null,ideographic:we,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:we,k:we,k1:we,k2:we,k3:we,k4:we,kernelMatrix:un,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:we,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:we,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:we,overlineThickness:we,paintOrder:null,panose1:null,path:null,pathLength:we,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Je,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:we,pointsAtY:we,pointsAtZ:we,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:un,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:un,rev:un,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:un,requiredFeatures:un,requiredFonts:un,requiredFormats:un,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:we,specularExponent:we,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:we,strikethroughThickness:we,string:null,stroke:null,strokeDashArray:un,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:we,strokeOpacity:we,strokeWidth:null,style:null,surfaceScale:we,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:un,tabIndex:we,tableValues:null,target:null,targetX:we,targetY:we,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:un,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:we,underlineThickness:we,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:we,values:null,vAlphabetic:we,vMathematical:we,vectorEffect:null,vHanging:we,vIdeographic:we,version:null,vertAdvY:we,vertOriginX:we,vertOriginY:we,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:we,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Uc});var Wp=Dn({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(c,v){return"xlink:"+v.slice(5).toLowerCase()}});var $p=Dn({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Hc});var eh=Dn({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(c,v){return"xml:"+v.slice(3).toLowerCase()}});var th={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var nA=/[A-Z]/g,ew=/-[a-z]/g,rA=/^data[-\w.:]+$/i;function nh(c,v){let E=nu(v),N=v,D=Yt;if(E in c.normal)return c.property[c.normal[E]];if(E.length>4&&E.slice(0,4)==="data"&&rA.test(v)){if(v.charAt(4)==="-"){let H=v.slice(5).replace(ew,iA);N="data"+H.charAt(0).toUpperCase()+H.slice(1)}else{let H=v.slice(4);if(!ew.test(H)){let q=H.replace(nA,aA);if(q.charAt(0)!=="-")q="-"+q;v="data"+q}}D=ko}return new D(N,v)}function aA(c){return"-"+c.toLowerCase()}function iA(c){return c.charAt(1).toUpperCase()}var tw=Zp([Jp,Wx,Wp,$p,eh],"html"),Bc=Zp([Jp,$x,Wp,$p,eh],"svg");function nw(c){return c.join(" ").trim()}var bw=Ig(hw(),1);var Vc=gw("end"),Eo=gw("start");function gw(c){return v;function v(E){let N=E&&E.position&&E.position[c]||{};if(typeof N.line==="number"&&N.line>0&&typeof N.column==="number"&&N.column>0)return{line:N.line,column:N.column,offset:typeof N.offset==="number"&&N.offset>-1?N.offset:void 0}}}function ih(c){let v=Eo(c),E=Vc(c);if(v&&E)return{start:v,end:E}}function ya(c){if(!c||typeof c!=="object")return"";if("position"in c||"type"in c)return yw(c.position);if("start"in c||"end"in c)return yw(c);if("line"in c||"column"in c)return oh(c);return""}function oh(c){return vw(c&&c.line)+":"+vw(c&&c.column)}function yw(c){return oh(c&&c.start)+"-"+oh(c&&c.end)}function vw(c){return c&&typeof c==="number"?c:1}class Tt extends Error{constructor(c,v,E){super();if(typeof v==="string")E=v,v=void 0;let N="",D={},H=!1;if(v)if("line"in v&&"column"in v)D={place:v};else if("start"in v&&"end"in v)D={place:v};else if("type"in v)D={ancestors:[v],place:v.position};else D={...v};if(typeof c==="string")N=c;else if(!D.cause&&c)H=!0,N=c.message,D.cause=c;if(!D.ruleId&&!D.source&&typeof E==="string"){let Y=E.indexOf(":");if(Y===-1)D.ruleId=E;else D.source=E.slice(0,Y),D.ruleId=E.slice(Y+1)}if(!D.place&&D.ancestors&&D.ancestors){let Y=D.ancestors[D.ancestors.length-1];if(Y)D.place=Y.position}let q=D.place&&"start"in D.place?D.place.start:D.place;this.ancestors=D.ancestors||void 0,this.cause=D.cause||void 0,this.column=q?q.column:void 0,this.fatal=void 0,this.file="",this.message=N,this.line=q?q.line:void 0,this.name=ya(D.place)||"1:1",this.place=D.place||void 0,this.reason=this.message,this.ruleId=D.ruleId||void 0,this.source=D.source||void 0,this.stack=H&&D.cause&&typeof D.cause.stack==="string"?D.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Tt.prototype.file="";Tt.prototype.name="";Tt.prototype.reason="";Tt.prototype.message="";Tt.prototype.stack="";Tt.prototype.column=void 0;Tt.prototype.line=void 0;Tt.prototype.ancestors=void 0;Tt.prototype.cause=void 0;Tt.prototype.fatal=void 0;Tt.prototype.place=void 0;Tt.prototype.ruleId=void 0;Tt.prototype.source=void 0;var lh={}.hasOwnProperty,OA=new Map,MA=/[A-Z]/g,_A=new Set(["table","tbody","thead","tfoot","tr"]),DA=new Set(["td","th"]),xw="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function uh(c,v){if(!v||v.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let E=v.filePath||void 0,N;if(v.development){if(typeof v.jsxDEV!=="function")throw TypeError("Expected `jsxDEV` in options when `development: true`");N=YA(E,v.jsxDEV)}else{if(typeof v.jsx!=="function")throw TypeError("Expected `jsx` in production options");if(typeof v.jsxs!=="function")throw TypeError("Expected `jsxs` in production options");N=jA(E,v.jsx,v.jsxs)}let D={Fragment:v.Fragment,ancestors:[],components:v.components||{},create:N,elementAttributeNameCase:v.elementAttributeNameCase||"react",evaluater:v.createEvaluater?v.createEvaluater():void 0,filePath:E,ignoreInvalidStyle:v.ignoreInvalidStyle||!1,passKeys:v.passKeys!==!1,passNode:v.passNode||!1,schema:v.space==="svg"?Bc:tw,stylePropertyNameCase:v.stylePropertyNameCase||"dom",tableCellAlignToStyle:v.tableCellAlignToStyle!==!1},H=ww(D,c,void 0);if(H&&typeof H!=="string")return H;return D.create(c,D.Fragment,{children:H||void 0},void 0)}function ww(c,v,E){if(v.type==="element")return LA(c,v,E);if(v.type==="mdxFlowExpression"||v.type==="mdxTextExpression")return UA(c,v);if(v.type==="mdxJsxFlowElement"||v.type==="mdxJsxTextElement")return BA(c,v,E);if(v.type==="mdxjsEsm")return HA(c,v);if(v.type==="root")return VA(c,v,E);if(v.type==="text")return qA(c,v)}function LA(c,v,E){let N=c.schema,D=N;if(v.tagName.toLowerCase()==="svg"&&N.space==="html")D=Bc,c.schema=D;c.ancestors.push(v);let H=kw(c,v.tagName,!1),q=IA(c,v),Y=ch(c,v);if(_A.has(v.tagName))Y=Y.filter(function(I){return typeof I==="string"?!Fp(I):!0});return Sw(c,q,H,v),sh(q,Y),c.ancestors.pop(),c.schema=N,c.create(v,H,q,E)}function UA(c,v){if(v.data&&v.data.estree&&c.evaluater){let N=v.data.estree.body[0];return ft(N.type==="ExpressionStatement"),c.evaluater.evaluateExpression(N.expression)}iu(c,v.position)}function HA(c,v){if(v.data&&v.data.estree&&c.evaluater)return c.evaluater.evaluateProgram(v.data.estree);iu(c,v.position)}function BA(c,v,E){let N=c.schema,D=N;if(v.name==="svg"&&N.space==="html")D=Bc,c.schema=D;c.ancestors.push(v);let H=v.name===null?c.Fragment:kw(c,v.name,!0),q=GA(c,v),Y=ch(c,v);return Sw(c,q,H,v),sh(q,Y),c.ancestors.pop(),c.schema=N,c.create(v,H,q,E)}function VA(c,v,E){let N={};return sh(N,ch(c,v)),c.create(v,c.Fragment,N,E)}function qA(c,v){return v.value}function Sw(c,v,E,N){if(typeof E!=="string"&&E!==c.Fragment&&c.passNode)v.node=N}function sh(c,v){if(v.length>0){let E=v.length>1?v:v[0];if(E)c.children=E}}function jA(c,v,E){return N;function N(D,H,q,Y){let Q=Array.isArray(q.children)?E:v;return Y?Q(H,q,Y):Q(H,q)}}function YA(c,v){return E;function E(N,D,H,q){let Y=Array.isArray(H.children),I=Eo(N);return v(D,H,q,Y,{columnNumber:I?I.column-1:void 0,fileName:c,lineNumber:I?I.line:void 0},void 0)}}function IA(c,v){let E={},N,D;for(D in v.properties)if(D!=="children"&&lh.call(v.properties,D)){let H=PA(c,D,v.properties[D]);if(H){let[q,Y]=H;if(c.tableCellAlignToStyle&&q==="align"&&typeof Y==="string"&&DA.has(v.tagName))N=Y;else E[q]=Y}}if(N){let H=E.style||(E.style={});H[c.stylePropertyNameCase==="css"?"text-align":"textAlign"]=N}return E}function GA(c,v){let E={};for(let N of v.attributes)if(N.type==="mdxJsxExpressionAttribute")if(N.data&&N.data.estree&&c.evaluater){let H=N.data.estree.body[0];ft(H.type==="ExpressionStatement");let q=H.expression;ft(q.type==="ObjectExpression");let Y=q.properties[0];ft(Y.type==="SpreadElement"),Object.assign(E,c.evaluater.evaluateExpression(Y.argument))}else iu(c,v.position);else{let D=N.name,H;if(N.value&&typeof N.value==="object")if(N.value.data&&N.value.data.estree&&c.evaluater){let Y=N.value.data.estree.body[0];ft(Y.type==="ExpressionStatement"),H=c.evaluater.evaluateExpression(Y.expression)}else iu(c,v.position);else H=N.value===null?!0:N.value;E[D]=H}return E}function ch(c,v){let E=[],N=-1,D=c.passKeys?new Map:OA;while(++N<v.children.length){let H=v.children[N],q;if(c.passKeys){let I=H.type==="element"?H.tagName:H.type==="mdxJsxFlowElement"||H.type==="mdxJsxTextElement"?H.name:void 0;if(I){let Q=D.get(I)||0;q=I+"-"+Q,D.set(I,Q+1)}}let Y=ww(c,H,q);if(Y!==void 0)E.push(Y)}return E}function PA(c,v,E){let N=nh(c.schema,v);if(E===null||E===void 0||typeof E==="number"&&Number.isNaN(E))return;if(Array.isArray(E))E=N.commaSeparated?Zx(E):nw(E);if(N.property==="style"){let D=typeof E==="object"?E:QA(c,String(E));if(c.stylePropertyNameCase==="css")D=XA(D);return["style",D]}return[c.elementAttributeNameCase==="react"&&N.space?th[N.property]||N.property:N.attribute,E]}function QA(c,v){try{return bw.default(v,{reactCompat:!0})}catch(E){if(c.ignoreInvalidStyle)return{};let N=E,D=new Tt("Cannot parse `style` attribute",{ancestors:c.ancestors,cause:N,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw D.file=c.filePath||void 0,D.url=xw+"#cannot-parse-style-attribute",D}}function kw(c,v,E){let N;if(!E)N={type:"Literal",value:v};else if(v.includes(".")){let D=v.split("."),H=-1,q;while(++H<D.length){let Y=Dc(D[H])?{type:"Identifier",name:D[H]}:{type:"Literal",value:D[H]};q=q?{type:"MemberExpression",object:q,property:Y,computed:Boolean(H&&Y.type==="Literal"),optional:!1}:Y}ft(q,"always a result"),N=q}else N=Dc(v)&&!/^[a-z]/.test(v)?{type:"Identifier",name:v}:{type:"Literal",value:v};if(N.type==="Literal"){let D=N.value;return lh.call(c.components,D)?c.components[D]:D}if(c.evaluater)return c.evaluater.evaluateExpression(N);iu(c)}function iu(c,v){let E=new Tt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:c.ancestors,place:v,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw E.file=c.filePath||void 0,E.url=xw+"#cannot-handle-mdx-estrees-without-createevaluater",E}function XA(c){let v={},E;for(E in c)if(lh.call(c,E))v[FA(E)]=c[E];return v}function FA(c){let v=c.replace(MA,ZA);if(v.slice(0,3)==="ms-")v="-"+v;return v}function ZA(c){return"-"+c.toLowerCase()}var ou={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var KA={};function oi(c,v){let E=v||KA,N=typeof E.includeImageAlt==="boolean"?E.includeImageAlt:!0,D=typeof E.includeHtml==="boolean"?E.includeHtml:!0;return Tw(c,N,D)}function Tw(c,v,E){if(JA(c)){if("value"in c)return c.type==="html"&&!E?"":c.value;if(v&&"alt"in c&&c.alt)return c.alt;if("children"in c)return Ew(c.children,v,E)}if(Array.isArray(c))return Ew(c,v,E);return""}function Ew(c,v,E){let N=[],D=-1;while(++D<c.length)N[D]=Tw(c[D],v,E);return N.join("")}function JA(c){return Boolean(c&&typeof c==="object")}var Cw=document.createElement("i");function To(c){let v="&"+c+";";Cw.innerHTML=v;let E=Cw.textContent;if(E.charCodeAt(E.length-1)===59&&c!=="semi")return!1;return E===v?!1:E}function Dt(c,v,E,N){let D=c.length,H=0,q;if(v<0)v=-v>D?0:D+v;else v=v>D?D:v;if(E=E>0?E:0,N.length<1e4)q=Array.from(N),q.unshift(v,E),c.splice(...q);else{if(E)c.splice(v,E);while(H<N.length)q=N.slice(H,H+1e4),q.unshift(v,0),c.splice(...q),H+=1e4,v+=1e4}}function $t(c,v){if(c.length>0)return Dt(c,c.length,0,v),c;return v}var Nw={}.hasOwnProperty;function qc(c){let v={},E=-1;while(++E<c.length)WA(v,c[E]);return v}function WA(c,v){let E;for(E in v){let D=(Nw.call(c,E)?c[E]:void 0)||(c[E]={}),H=v[E],q;if(H)for(q in H){if(!Nw.call(D,q))D[q]=[];let Y=H[q];$A(D[q],Array.isArray(Y)?Y:Y?[Y]:[])}}}function $A(c,v){let E=-1,N=[];while(++E<v.length)(v[E].add==="after"?c:N).push(v[E]);Dt(c,0,0,N)}function jc(c,v){let E=Number.parseInt(c,v);if(E<9||E===11||E>13&&E<32||E>126&&E<160||E>55295&&E<57344||E>64975&&E<65008||(E&65535)===65535||(E&65535)===65534||E>1114111)return"�";return String.fromCodePoint(E)}function Qt(c){return c.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var zt=va(/[A-Za-z]/),vt=va(/[\dA-Za-z]/),Aw=va(/[#-'*+\--9=?A-Z^-~]/);function li(c){return c!==null&&(c<32||c===127)}var lu=va(/\d/),zw=va(/[\dA-Fa-f]/),Rw=va(/[!-/:-@[-`{-~]/);function Te(c){return c!==null&&c<-2}function qe(c){return c!==null&&(c<0||c===32)}function Oe(c){return c===-2||c===-1||c===32}var ui=va(/\p{P}|\p{S}/u),sr=va(/\s/);function va(c){return v;function v(E){return E!==null&&E>-1&&c.test(String.fromCharCode(E))}}function Ln(c){let v=[],E=-1,N=0,D=0;while(++E<c.length){let H=c.charCodeAt(E),q="";if(H===37&&vt(c.charCodeAt(E+1))&&vt(c.charCodeAt(E+2)))D=2;else if(H<128){if(!/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(H)))q=String.fromCharCode(H)}else if(H>55295&&H<57344){let Y=c.charCodeAt(E+1);if(H<56320&&Y>56319&&Y<57344)q=String.fromCharCode(H,Y),D=1;else q="�"}else q=String.fromCharCode(H);if(q)v.push(c.slice(N,E),encodeURIComponent(q)),N=E+D+1,q="";if(D)E+=D,D=0}return v.join("")+c.slice(N)}function _e(c,v,E,N){let D=N?N-1:1/0,H=0;return q;function q(I){if(Oe(I))return c.enter(E),Y(I);return v(I)}function Y(I){if(Oe(I)&&H++<D)return c.consume(I),Y;return c.exit(E),v(I)}}function fh(c,v,E,N,D,H){let q=0;return Y;function Y(F){if(H>0&&Oe(F))return c.enter(N),I(F);return Q(F)}function I(F){if(Oe(F)&&q<H)return c.consume(F),q++,I;return c.exit(N),Q(F)}function Q(F){return q>=D?v(F):E(F)}}var Ow={tokenize:e3};function e3(c){let v=c.attempt(this.parser.constructs.contentInitial,N,D),E;return v;function N(Y){if(Y===null){c.consume(Y);return}return c.enter("lineEnding"),c.consume(Y),c.exit("lineEnding"),_e(c,v,"linePrefix")}function D(Y){return c.enter("paragraph"),H(Y)}function H(Y){let I=c.enter("chunkText",{contentType:"text",previous:E});if(E)E.next=I;return E=I,q(Y)}function q(Y){if(Y===null){c.exit("chunkText"),c.exit("paragraph"),c.consume(Y);return}if(Te(Y))return c.consume(Y),c.exit("chunkText"),H;return c.consume(Y),q}}class ba{constructor(){this.index=new Map,this.map=[]}add(c,v,E){Mw(this,c,v,E,!1)}addBefore(c,v,E){Mw(this,c,v,E,!0)}consume(c){if(this.map.sort(function(D,H){return D[0]-H[0]}),this.map.length===0)return;let v=this.map.length,E=[];while(v>0)v-=1,E.push(c.slice(this.map[v][0]+this.map[v][1]),this.map[v][2]),c.length=this.map[v][0];E.push(c.slice()),c.length=0;let N=E.pop();while(N){for(let D of N)c.push(D);N=E.pop()}this.map.length=0,this.index.clear()}}function Mw(c,v,E,N,D){if(E===0&&N.length===0)return;let H=c.index.get(v);if(H){if(H[1]+=E,D)N.push(...H[2]),H[2]=N;else H[2].push(...N);return}let q=[v,E,N];c.map.push(q),c.index.set(v,q)}var Dw={tokenize:t3},_w={tokenize:n3};function t3(c){let v=this,E=[],N=0,D,H,q;return Y;function Y(le){if(N<E.length){let pe=E[N];return v.containerState=pe[1],c.attempt(pe[0].continuation,I,Q)(le)}return Q(le)}function I(le){if(N++,v.containerState._closeFlow){if(v.containerState._closeFlow=void 0,D)oe();let pe=v.events.length,ye=pe,he;while(ye--)if(v.events[ye][0]==="exit"&&v.events[ye][1].type==="chunkFlow"){he=v.events[ye][1].end;break}re(N);let ge=pe;while(ge<v.events.length)v.events[ge][1].end={...he},ge++;let xe=new ba;return xe.add(ye+1,0,v.events.slice(pe)),xe.add(pe,ge-pe,[]),xe.consume(v.events),Q(le)}return Y(le)}function Q(le){if(N===E.length){if(!D)return te(le);if(D.currentConstruct&&D.currentConstruct.concrete)return ie(le);v.interrupt=Boolean(D.currentConstruct&&!D._gfmTableDynamicInterruptHack)}return v.containerState={},c.check(_w,F,ee)(le)}function F(le){if(D)oe();return re(N),te(le)}function ee(le){return v.parser.lazy[v.now().line]=N!==E.length,q=v.now().offset,ie(le)}function te(le){return v.containerState={},c.attempt(_w,ne,ie)(le)}function ne(le){return N++,E.push([v.currentConstruct,v.containerState]),te(le)}function ie(le){if(le===null){if(D)oe();re(0),c.consume(le);return}return D=D||v.parser.flow(v.now()),c.enter("chunkFlow",{_tokenizer:D,contentType:"flow",previous:H}),ce(le)}function ce(le){if(le===null){me(c.exit("chunkFlow"),!0),re(0),c.consume(le);return}if(Te(le))return c.consume(le),me(c.exit("chunkFlow")),N=0,v.interrupt=void 0,Y;return c.consume(le),ce}function me(le,pe){let ye=v.sliceStream(le);if(pe)ye.push(null);if(le.previous=H,H)H.next=le;if(H=le,D.defineSkip(le.start),D.write(ye),v.parser.lazy[le.start.line]){let he=D.events.length;while(he--)if(D.events[he][1].start.offset<q&&(!D.events[he][1].end||D.events[he][1].end.offset>q))return;let ge=v.events.length,xe=ge,ze,ue;while(xe--)if(v.events[xe][0]==="exit"&&v.events[xe][1].type==="chunkFlow"){if(ze){ue=v.events[xe][1].end;break}ze=!0}re(N),he=ge;while(he<v.events.length)v.events[he][1].end={...ue},he++;let Re=new ba;Re.add(xe+1,0,v.events.slice(ge)),Re.add(ge,he-ge,[]),Re.consume(v.events)}}function re(le){let pe=E.length;while(pe-- >le){let ye=E[pe];v.containerState=ye[1],ye[0].exit.call(v,c)}E.length=le}function oe(){D.write([null]),H=void 0,D=void 0,v.containerState._closeFlow=void 0}}function n3(c,v,E){return _e(c,c.attempt(this.parser.constructs.document,v,E),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Co(c){if(c===null||qe(c)||sr(c))return 1;if(ui(c))return 2}function xa(c,v,E){let N=[],D=-1;while(++D<c.length){let H=c[D].resolveAll;if(H&&!N.includes(H))v=H(v,E),N.push(H)}return v}var uu={name:"attention",resolveAll:r3,tokenize:a3};function r3(c,v){let E=-1,N;while(++E<c.length)if(c[E][0]==="enter"&&c[E][1].type==="attentionSequence"&&c[E][1]._close){let D=E;while(D--)if(c[D][0]==="exit"&&c[D][1].type==="attentionSequence"&&c[D][1]._open&&v.sliceSerialize(c[D][1]).charCodeAt(0)===v.sliceSerialize(c[E][1]).charCodeAt(0)){if((c[D][1]._close||c[E][1]._open)&&(c[E][1].end.offset-c[E][1].start.offset)%3&&!((c[D][1].end.offset-c[D][1].start.offset+c[E][1].end.offset-c[E][1].start.offset)%3))continue;let H=c[D][1].end.offset-c[D][1].start.offset>1&&c[E][1].end.offset-c[E][1].start.offset>1?2:1,q={...c[D][1].end},Y={...c[E][1].start};Lw(q,-H),Lw(Y,H);let I={type:H>1?"strongSequence":"emphasisSequence",start:q,end:{...c[D][1].end}},Q={type:H>1?"strongSequence":"emphasisSequence",start:{...c[E][1].start},end:Y},F={type:H>1?"strongText":"emphasisText",start:{...c[D][1].end},end:{...c[E][1].start}},ee={type:H>1?"strong":"emphasis",start:{...I.start},end:{...Q.end}};if(c[D][1].end={...I.start},c[E][1].start={...Q.end},N=[],c[D][1].end.offset-c[D][1].start.offset)N=$t(N,[["enter",c[D][1],v],["exit",c[D][1],v]]);N=$t(N,[["enter",ee,v],["enter",I,v],["exit",I,v],["enter",F,v]]),N=$t(N,xa(v.parser.constructs.insideSpan.null,c.slice(D+1,E),v)),N=$t(N,[["exit",F,v],["enter",Q,v],["exit",Q,v],["exit",ee,v]]);let te=0;if(c[E][1].end.offset-c[E][1].start.offset)te=2,N=$t(N,[["enter",c[E][1],v],["exit",c[E][1],v]]);Dt(c,D-1,E-D+3,N),E=D+N.length-te-2;break}}E=-1;while(++E<c.length)if(c[E][1].type==="attentionSequence")c[E][1].type="data";return c}function a3(c,v){let E=this.parser.constructs.attentionMarkers.null,N=this.previous,D=Co(N),H;return q;function q(I){return H=I,c.enter("attentionSequence"),Y(I)}function Y(I){if(I===H)return c.consume(I),Y;let Q=c.exit("attentionSequence"),F=Co(I),ee=!F||F===2&&D||E.includes(I)&&I!==42&&I!==95,te=!D||D===2&&F||E.includes(N)&&N!==42&&N!==95;return Q._open=Boolean(H===42?ee:ee&&(D||!te)),Q._close=Boolean(H===42?te:te&&(F||!ee)),v(I)}}function Lw(c,v){c.column+=v,c.offset+=v,c._bufferIndex+=v}var dh={name:"autolink",tokenize:i3};function i3(c,v,E){let N=0;return D;function D(ne){return c.enter("autolink"),c.enter("autolinkMarker"),c.consume(ne),c.exit("autolinkMarker"),c.enter("autolinkProtocol"),H}function H(ne){if(zt(ne))return c.consume(ne),q;if(ne===64)return E(ne);return Q(ne)}function q(ne){if(ne===43||ne===45||ne===46||vt(ne))return N=1,Y(ne);return Q(ne)}function Y(ne){if(ne===58)return c.consume(ne),N=0,I;if((ne===43||ne===45||ne===46||vt(ne))&&N++<32)return c.consume(ne),Y;return N=0,Q(ne)}function I(ne){if(ne===62)return c.exit("autolinkProtocol"),c.enter("autolinkMarker"),c.consume(ne),c.exit("autolinkMarker"),c.exit("autolink"),v;if(ne===null||ne===32||ne===60||li(ne))return E(ne);return c.consume(ne),I}function Q(ne){if(ne===64)return c.consume(ne),F;if(Aw(ne))return c.consume(ne),Q;return E(ne)}function F(ne){return vt(ne)?ee(ne):E(ne)}function ee(ne){if(ne===46)return c.consume(ne),N=0,F;if(ne===62)return c.exit("autolinkProtocol").type="autolinkEmail",c.enter("autolinkMarker"),c.consume(ne),c.exit("autolinkMarker"),c.exit("autolink"),v;return te(ne)}function te(ne){if((ne===45||vt(ne))&&N++<63){let ie=ne===45?te:ee;return c.consume(ne),ie}return E(ne)}}var cr={partial:!0,tokenize:o3};function o3(c,v,E){return N;function N(H){return Oe(H)?_e(c,D,"linePrefix")(H):D(H)}function D(H){return H===null||Te(H)?v(H):E(H)}}var Yc={continuation:{tokenize:u3},exit:s3,name:"blockQuote",tokenize:l3};function l3(c,v,E){let N=this;return D;function D(q){if(q===62){let Y=N.containerState;if(!Y.open)c.enter("blockQuote",{_container:!0}),Y.open=!0;return c.enter("blockQuotePrefix"),c.enter("blockQuoteMarker"),c.consume(q),c.exit("blockQuoteMarker"),H}return E(q)}function H(q){if(Oe(q))return c.enter("blockQuotePrefixWhitespace"),c.consume(q),c.exit("blockQuotePrefixWhitespace"),c.exit("blockQuotePrefix"),v;return c.exit("blockQuotePrefix"),v(q)}}function u3(c,v,E){let N=this;return D;function D(q){if(Oe(q))return _e(c,H,"linePrefix",N.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q);return H(q)}function H(q){return c.attempt(Yc,v,E)(q)}}function s3(c){c.exit("blockQuote")}var Ic={name:"characterEscape",tokenize:c3};function c3(c,v,E){return N;function N(H){return c.enter("characterEscape"),c.enter("escapeMarker"),c.consume(H),c.exit("escapeMarker"),D}function D(H){if(Rw(H))return c.enter("characterEscapeValue"),c.consume(H),c.exit("characterEscapeValue"),c.exit("characterEscape"),v;return E(H)}}var Gc={name:"characterReference",tokenize:f3};function f3(c,v,E){let N=this,D=0,H,q;return Y;function Y(ee){return c.enter("characterReference"),c.enter("characterReferenceMarker"),c.consume(ee),c.exit("characterReferenceMarker"),I}function I(ee){if(ee===35)return c.enter("characterReferenceMarkerNumeric"),c.consume(ee),c.exit("characterReferenceMarkerNumeric"),Q;return c.enter("characterReferenceValue"),H=31,q=vt,F(ee)}function Q(ee){if(ee===88||ee===120)return c.enter("characterReferenceMarkerHexadecimal"),c.consume(ee),c.exit("characterReferenceMarkerHexadecimal"),c.enter("characterReferenceValue"),H=6,q=zw,F;return c.enter("characterReferenceValue"),H=7,q=lu,F(ee)}function F(ee){if(ee===59&&D){let te=c.exit("characterReferenceValue");if(q===vt&&!To(N.sliceSerialize(te)))return E(ee);return c.enter("characterReferenceMarker"),c.consume(ee),c.exit("characterReferenceMarker"),c.exit("characterReference"),v}if(q(ee)&&D++<H)return c.consume(ee),F;return E(ee)}}var su={partial:!0,tokenize:d3};function d3(c,v,E){let N=this;return D;function D(q){if(q===null)return E(q);return c.enter("lineEnding"),c.consume(q),c.exit("lineEnding"),H}function H(q){return N.parser.lazy[N.now().line]?E(q):v(q)}}var Pc={concrete:!0,name:"codeFenced",tokenize:m3};function m3(c,v,E){let N=this,D={partial:!0,tokenize:ye},H=0,q=0,Y;return I;function I(he){return Q(he)}function Q(he){let ge=N.events[N.events.length-1];return H=ge&&ge[1].type==="linePrefix"?ge[2].sliceSerialize(ge[1],!0).length:0,Y=he,c.enter("codeFenced"),c.enter("codeFencedFence"),c.enter("codeFencedFenceSequence"),F(he)}function F(he){if(he===Y)return q++,c.consume(he),F;if(q<3)return E(he);return c.exit("codeFencedFenceSequence"),Oe(he)?_e(c,ee,"whitespace")(he):ee(he)}function ee(he){if(he===null||Te(he))return c.exit("codeFencedFence"),N.interrupt?v(he):c.check(su,ce,pe)(he);return c.enter("codeFencedFenceInfo"),c.enter("chunkString",{contentType:"string"}),te(he)}function te(he){if(he===null||Te(he))return c.exit("chunkString"),c.exit("codeFencedFenceInfo"),ee(he);if(Oe(he))return c.exit("chunkString"),c.exit("codeFencedFenceInfo"),_e(c,ne,"whitespace")(he);if(he===96&&he===Y)return E(he);return c.consume(he),te}function ne(he){if(he===null||Te(he))return ee(he);return c.enter("codeFencedFenceMeta"),c.enter("chunkString",{contentType:"string"}),ie(he)}function ie(he){if(he===null||Te(he))return c.exit("chunkString"),c.exit("codeFencedFenceMeta"),ee(he);if(he===96&&he===Y)return E(he);return c.consume(he),ie}function ce(he){return c.attempt(D,pe,me)(he)}function me(he){return c.enter("lineEnding"),c.consume(he),c.exit("lineEnding"),re}function re(he){return H>0&&Oe(he)?_e(c,oe,"linePrefix",H+1)(he):oe(he)}function oe(he){if(he===null||Te(he))return c.check(su,ce,pe)(he);return c.enter("codeFlowValue"),le(he)}function le(he){if(he===null||Te(he))return c.exit("codeFlowValue"),oe(he);return c.consume(he),le}function pe(he){return c.exit("codeFenced"),v(he)}function ye(he,ge,xe){let ze=0;return ue;function ue(Me){return he.enter("lineEnding"),he.consume(Me),he.exit("lineEnding"),Re}function Re(Me){return he.enter("codeFencedFence"),Oe(Me)?_e(he,Ee,"linePrefix",N.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Me):Ee(Me)}function Ee(Me){if(Me===Y)return he.enter("codeFencedFenceSequence"),Se(Me);return xe(Me)}function Se(Me){if(Me===Y)return ze++,he.consume(Me),Se;if(ze>=q)return he.exit("codeFencedFenceSequence"),Oe(Me)?_e(he,Ae,"whitespace")(Me):Ae(Me);return xe(Me)}function Ae(Me){if(Me===null||Te(Me))return he.exit("codeFencedFence"),ge(Me);return xe(Me)}}}var cu={name:"codeIndented",tokenize:h3},p3={partial:!0,tokenize:g3};function h3(c,v,E){return N;function N(Y){return c.enter("codeIndented"),fh(c,D,E,"linePrefix",4,4)(Y)}function D(Y){if(Y===null)return q(Y);if(Te(Y))return c.attempt(p3,D,q)(Y);return c.enter("codeFlowValue"),H(Y)}function H(Y){if(Y===null||Te(Y))return c.exit("codeFlowValue"),D(Y);return c.consume(Y),H}function q(Y){return c.exit("codeIndented"),v(Y)}}function g3(c,v,E){let N=this;return D;function D(q){if(N.parser.lazy[N.now().line])return E(q);if(Te(q))return c.enter("lineEnding"),c.consume(q),c.exit("lineEnding"),D;return fh(c,v,H,"linePrefix",4,4)(q)}function H(q){return Te(q)?D(q):E(q)}}var mh={name:"codeText",previous:v3,resolve:y3,tokenize:b3};function y3(c){let v=c.length-4,E=3,N,D;if((c[E][1].type==="lineEnding"||c[E][1].type==="space")&&(c[v][1].type==="lineEnding"||c[v][1].type==="space")){N=E;while(++N<v)if(c[N][1].type==="codeTextData"){c[E][1].type="codeTextPadding",c[v][1].type="codeTextPadding",E+=2,v-=2;break}}N=E-1,v++;while(++N<=v)if(D===void 0){if(N!==v&&c[N][1].type!=="lineEnding")D=N}else if(N===v||c[N][1].type==="lineEnding"){if(c[D][1].type="codeTextData",N!==D+2)c[D][1].end=c[N-1][1].end,c.splice(D+2,N-D-2),v-=N-D-2,N=D+2;D=void 0}return c}function v3(c){return c!==96||this.events[this.events.length-1][1].type==="characterEscape"}function b3(c,v,E){let N=this,D=0,H,q;return Y;function Y(te){return c.enter("codeText"),c.enter("codeTextSequence"),I(te)}function I(te){if(te===96)return c.consume(te),D++,I;return c.exit("codeTextSequence"),Q(te)}function Q(te){if(te===null)return E(te);if(te===32)return c.enter("space"),c.consume(te),c.exit("space"),Q;if(te===96)return q=c.enter("codeTextSequence"),H=0,ee(te);if(Te(te))return c.enter("lineEnding"),c.consume(te),c.exit("lineEnding"),Q;return c.enter("codeTextData"),F(te)}function F(te){if(te===null||te===32||te===96||Te(te))return c.exit("codeTextData"),Q(te);return c.consume(te),F}function ee(te){if(te===96)return c.consume(te),H++,ee;if(H===D)return c.exit("codeTextSequence"),c.exit("codeText"),v(te);return q.type="codeTextData",F(te)}}class ph{constructor(c){this.left=c?[...c]:[],this.right=[]}get(c){if(c<0||c>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+c+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");if(c<this.left.length)return this.left[c];return this.right[this.right.length-c+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(c,v){let E=v===null||v===void 0?Number.POSITIVE_INFINITY:v;if(E<this.left.length)return this.left.slice(c,E);if(c>this.left.length)return this.right.slice(this.right.length-E+this.left.length,this.right.length-c+this.left.length).reverse();return this.left.slice(c).concat(this.right.slice(this.right.length-E+this.left.length).reverse())}splice(c,v,E){let N=v||0;this.setCursor(Math.trunc(c));let D=this.right.splice(this.right.length-N,Number.POSITIVE_INFINITY);if(E)fu(this.left,E);return D.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(c){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(c)}pushMany(c){this.setCursor(Number.POSITIVE_INFINITY),fu(this.left,c)}unshift(c){this.setCursor(0),this.right.push(c)}unshiftMany(c){this.setCursor(0),fu(this.right,c.reverse())}setCursor(c){if(c===this.left.length||c>this.left.length&&this.right.length===0||c<0&&this.left.length===0)return;if(c<this.left.length){let v=this.left.splice(c,Number.POSITIVE_INFINITY);fu(this.right,v.reverse())}else{let v=this.right.splice(this.left.length+this.right.length-c,Number.POSITIVE_INFINITY);fu(this.left,v.reverse())}}}function fu(c,v){let E=0;if(v.length<1e4)c.push(...v);else while(E<v.length)c.push(...v.slice(E,E+1e4)),E+=1e4}function Qc(c){let v={},E=-1,N,D,H,q,Y,I,Q,F=new ph(c);while(++E<F.length){while(E in v)E=v[E];if(N=F.get(E),E&&N[1].type==="chunkFlow"&&F.get(E-1)[1].type==="listItemPrefix"){if(I=N[1]._tokenizer.events,H=0,H<I.length&&I[H][1].type==="lineEndingBlank")H+=2;if(H<I.length&&I[H][1].type==="content")while(++H<I.length){if(I[H][1].type==="content")break;if(I[H][1].type==="chunkText")I[H][1]._isInFirstContentOfListItem=!0,H++}}if(N[0]==="enter"){if(N[1].contentType)Object.assign(v,x3(F,E)),E=v[E],Q=!0}else if(N[1]._container){H=E,D=void 0;while(H--)if(q=F.get(H),q[1].type==="lineEnding"||q[1].type==="lineEndingBlank"){if(q[0]==="enter"){if(D)F.get(D)[1].type="lineEndingBlank";q[1].type="lineEnding",D=H}}else if(q[1].type==="linePrefix"||q[1].type==="listItemIndent");else break;if(D)N[1].end={...F.get(D)[1].start},Y=F.slice(D,E),Y.unshift(N),F.splice(D,E-D+1,Y)}}return Dt(c,0,Number.POSITIVE_INFINITY,F.slice(0)),!Q}function x3(c,v){let E=c.get(v)[1],N=c.get(v)[2],D=v-1,H=[],q=E._tokenizer;if(!q){if(q=N.parser[E.contentType](E.start),E._contentTypeTextTrailing)q._contentTypeTextTrailing=!0}let Y=q.events,I=[],Q={},F,ee,te=-1,ne=E,ie=0,ce=0,me=[ce];while(ne){while(c.get(++D)[1]!==ne);if(H.push(D),!ne._tokenizer){if(F=N.sliceStream(ne),!ne.next)F.push(null);if(ee)q.defineSkip(ne.start);if(ne._isInFirstContentOfListItem)q._gfmTasklistFirstContentOfListItem=!0;if(q.write(F),ne._isInFirstContentOfListItem)q._gfmTasklistFirstContentOfListItem=void 0}ee=ne,ne=ne.next}ne=E;while(++te<Y.length)if(Y[te][0]==="exit"&&Y[te-1][0]==="enter"&&Y[te][1].type===Y[te-1][1].type&&Y[te][1].start.line!==Y[te][1].end.line)ce=te+1,me.push(ce),ne._tokenizer=void 0,ne.previous=void 0,ne=ne.next;if(q.events=[],ne)ne._tokenizer=void 0,ne.previous=void 0;else me.pop();te=me.length;while(te--){let re=Y.slice(me[te],me[te+1]),oe=H.pop();I.push([oe,oe+re.length-1]),c.splice(oe,2,re)}I.reverse(),te=-1;while(++te<I.length)Q[ie+I[te][0]]=ie+I[te][1],ie+=I[te][1]-I[te][0]-1;return Q}var hh={resolve:S3,tokenize:k3},w3={partial:!0,tokenize:E3};function S3(c){return Qc(c),c}function k3(c,v){let E;return N;function N(Y){return c.enter("content"),E=c.enter("chunkContent",{contentType:"content"}),D(Y)}function D(Y){if(Y===null)return H(Y);if(Te(Y))return c.check(w3,q,H)(Y);return c.consume(Y),D}function H(Y){return c.exit("chunkContent"),c.exit("content"),v(Y)}function q(Y){return c.consume(Y),c.exit("chunkContent"),E.next=c.enter("chunkContent",{contentType:"content",previous:E}),E=E.next,D}}function E3(c,v,E){let N=this;return D;function D(q){return c.exit("chunkContent"),c.enter("lineEnding"),c.consume(q),c.exit("lineEnding"),_e(c,H,"linePrefix")}function H(q){if(q===null||Te(q))return E(q);let Y=N.events[N.events.length-1];if(!N.parser.constructs.disable.null.includes("codeIndented")&&Y&&Y[1].type==="linePrefix"&&Y[2].sliceSerialize(Y[1],!0).length>=4)return v(q);return c.interrupt(N.parser.constructs.flow,E,v)(q)}}function Xc(c,v,E,N,D,H,q,Y,I){let Q=I||Number.POSITIVE_INFINITY,F=0;return ee;function ee(re){if(re===60)return c.enter(N),c.enter(D),c.enter(H),c.consume(re),c.exit(H),te;if(re===null||re===32||re===41||li(re))return E(re);return c.enter(N),c.enter(q),c.enter(Y),c.enter("chunkString",{contentType:"string"}),ce(re)}function te(re){if(re===62)return c.enter(H),c.consume(re),c.exit(H),c.exit(D),c.exit(N),v;return c.enter(Y),c.enter("chunkString",{contentType:"string"}),ne(re)}function ne(re){if(re===62)return c.exit("chunkString"),c.exit(Y),te(re);if(re===null||re===60||Te(re))return E(re);return c.consume(re),re===92?ie:ne}function ie(re){if(re===60||re===62||re===92)return c.consume(re),ne;return ne(re)}function ce(re){if(!F&&(re===null||re===41||qe(re)))return c.exit("chunkString"),c.exit(Y),c.exit(q),c.exit(N),v(re);if(F<Q&&re===40)return c.consume(re),F++,ce;if(re===41)return c.consume(re),F--,ce;if(re===null||re===32||re===40||li(re))return E(re);return c.consume(re),re===92?me:ce}function me(re){if(re===40||re===41||re===92)return c.consume(re),ce;return ce(re)}}function Fc(c,v,E,N,D,H){let q=this,Y=0,I;return Q;function Q(ne){return c.enter(N),c.enter(D),c.consume(ne),c.exit(D),c.enter(H),F}function F(ne){if(Y>999||ne===null||ne===91||ne===93&&!I||ne===94&&!Y&&"_hiddenFootnoteSupport"in q.parser.constructs)return E(ne);if(ne===93)return c.exit(H),c.enter(D),c.consume(ne),c.exit(D),c.exit(N),v;if(Te(ne))return c.enter("lineEnding"),c.consume(ne),c.exit("lineEnding"),F;return c.enter("chunkString",{contentType:"string"}),ee(ne)}function ee(ne){if(ne===null||ne===91||ne===93||Te(ne)||Y++>999)return c.exit("chunkString"),F(ne);if(c.consume(ne),!I)I=!Oe(ne);return ne===92?te:ee}function te(ne){if(ne===91||ne===92||ne===93)return c.consume(ne),Y++,ee;return ee(ne)}}function Zc(c,v,E,N,D,H){let q;return Y;function Y(te){if(te===34||te===39||te===40)return c.enter(N),c.enter(D),c.consume(te),c.exit(D),q=te===40?41:te,I;return E(te)}function I(te){if(te===q)return c.enter(D),c.consume(te),c.exit(D),c.exit(N),v;return c.enter(H),Q(te)}function Q(te){if(te===q)return c.exit(H),I(q);if(te===null)return E(te);if(Te(te))return c.enter("lineEnding"),c.consume(te),c.exit("lineEnding"),_e(c,Q,"linePrefix");return c.enter("chunkString",{contentType:"string"}),F(te)}function F(te){if(te===q||te===null||Te(te))return c.exit("chunkString"),Q(te);return c.consume(te),te===92?ee:F}function ee(te){if(te===q||te===92)return c.consume(te),F;return F(te)}}function si(c,v){let E;return N;function N(D){if(Te(D))return c.enter("lineEnding"),c.consume(D),c.exit("lineEnding"),E=!0,N;if(Oe(D))return _e(c,N,E?"linePrefix":"lineSuffix")(D);return v(D)}}var gh={name:"definition",tokenize:C3},T3={partial:!0,tokenize:N3};function C3(c,v,E){let N=this,D;return H;function H(ne){return c.enter("definition"),q(ne)}function q(ne){return Fc.call(N,c,Y,E,"definitionLabel","definitionLabelMarker","definitionLabelString")(ne)}function Y(ne){if(D=Qt(N.sliceSerialize(N.events[N.events.length-1][1]).slice(1,-1)),ne===58)return c.enter("definitionMarker"),c.consume(ne),c.exit("definitionMarker"),I;return E(ne)}function I(ne){return qe(ne)?si(c,Q)(ne):Q(ne)}function Q(ne){return Xc(c,F,E,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(ne)}function F(ne){return c.attempt(T3,ee,ee)(ne)}function ee(ne){return Oe(ne)?_e(c,te,"whitespace")(ne):te(ne)}function te(ne){if(ne===null||Te(ne))return c.exit("definition"),N.parser.defined.push(D),v(ne);return E(ne)}}function N3(c,v,E){return N;function N(Y){return qe(Y)?si(c,D)(Y):E(Y)}function D(Y){return Zc(c,H,E,"definitionTitle","definitionTitleMarker","definitionTitleString")(Y)}function H(Y){return Oe(Y)?_e(c,q,"whitespace")(Y):q(Y)}function q(Y){return Y===null||Te(Y)?v(Y):E(Y)}}var yh={name:"hardBreakEscape",tokenize:A3};function A3(c,v,E){return N;function N(H){return c.enter("hardBreakEscape"),c.consume(H),D}function D(H){if(Te(H))return c.exit("hardBreakEscape"),v(H);return E(H)}}var vh={name:"headingAtx",resolve:z3,tokenize:R3};function z3(c,v){let E=c.length-2,N=3;if(c[N][1].type==="whitespace")N+=2;if(E-2>N&&c[E][1].type==="whitespace")E-=2;if(c[E][1].type==="atxHeadingSequence"&&(N===E-1||E-4>N&&c[E-2][1].type==="whitespace"))E-=N+1===E?2:4;if(E>N){let D={type:"atxHeadingText",start:c[N][1].start,end:c[E][1].end},H={type:"chunkText",start:c[N][1].start,end:c[E][1].end,contentType:"text"};Dt(c,N,E-N+1,[["enter",D,v],["enter",H,v],["exit",H,v],["exit",D,v]])}return c}function R3(c,v,E){let N=0;return D;function D(F){return c.enter("atxHeading"),H(F)}function H(F){return c.enter("atxHeadingSequence"),q(F)}function q(F){if(F===35&&N++<6)return c.consume(F),q;if(F===null||qe(F))return c.exit("atxHeadingSequence"),Y(F);return E(F)}function Y(F){if(F===35)return c.enter("atxHeadingSequence"),I(F);if(F===null||Te(F))return c.exit("atxHeading"),v(F);if(Oe(F))return _e(c,Y,"whitespace")(F);return c.enter("atxHeadingText"),Q(F)}function I(F){if(F===35)return c.consume(F),I;return c.exit("atxHeadingSequence"),Y(F)}function Q(F){if(F===null||F===35||qe(F))return c.exit("atxHeadingText"),Y(F);return c.consume(F),Q}}var Uw=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],bh=["pre","script","style","textarea"];var xh={concrete:!0,name:"htmlFlow",resolveTo:M3,tokenize:_3},O3={partial:!0,tokenize:D3};function M3(c){let v=c.length;while(v--)if(c[v][0]==="enter"&&c[v][1].type==="htmlFlow")break;if(v>1&&c[v-2][1].type==="linePrefix")c[v][1].start=c[v-2][1].start,c[v+1][1].start=c[v-2][1].start,c.splice(v-2,2);return c}function _3(c,v,E){let N=this,D,H,q,Y,I;return Q;function Q(de){return F(de)}function F(de){return c.enter("htmlFlow"),c.enter("htmlFlowData"),c.consume(de),ee}function ee(de){if(de===33)return c.consume(de),te;if(de===47)return c.consume(de),H=!0,ce;if(de===63)return c.consume(de),D=3,N.interrupt?v:fe;if(zt(de))return c.consume(de),q=String.fromCharCode(de),me;return E(de)}function te(de){if(de===45)return c.consume(de),D=2,ne;if(de===91)return c.consume(de),D=5,Y=0,ie;if(zt(de))return c.consume(de),D=4,N.interrupt?v:fe;return E(de)}function ne(de){if(de===45)return c.consume(de),N.interrupt?v:fe;return E(de)}function ie(de){if(de==="CDATA[".charCodeAt(Y++)){if(c.consume(de),Y===6)return N.interrupt?v:Ee;return ie}return E(de)}function ce(de){if(zt(de))return c.consume(de),q=String.fromCharCode(de),me;return E(de)}function me(de){if(de===null||de===47||de===62||qe(de)){let sn=de===47,dr=q.toLowerCase();if(!sn&&!H&&bh.includes(dr))return D=1,N.interrupt?v(de):Ee(de);if(Uw.includes(q.toLowerCase())){if(D=6,sn)return c.consume(de),re;return N.interrupt?v(de):Ee(de)}return D=7,N.interrupt&&!N.parser.lazy[N.now().line]?E(de):H?oe(de):le(de)}if(de===45||vt(de))return c.consume(de),q+=String.fromCharCode(de),me;return E(de)}function re(de){if(de===62)return c.consume(de),N.interrupt?v:Ee;return E(de)}function oe(de){if(Oe(de))return c.consume(de),oe;return ue(de)}function le(de){if(de===47)return c.consume(de),ue;if(de===58||de===95||zt(de))return c.consume(de),pe;if(Oe(de))return c.consume(de),le;return ue(de)}function pe(de){if(de===45||de===46||de===58||de===95||vt(de))return c.consume(de),pe;return ye(de)}function ye(de){if(de===61)return c.consume(de),he;if(Oe(de))return c.consume(de),ye;return le(de)}function he(de){if(de===null||de===60||de===61||de===62||de===96)return E(de);if(de===34||de===39)return c.consume(de),I=de,ge;if(Oe(de))return c.consume(de),he;return xe(de)}function ge(de){if(de===I)return c.consume(de),I=null,ze;if(de===null||Te(de))return E(de);return c.consume(de),ge}function xe(de){if(de===null||de===34||de===39||de===47||de===60||de===61||de===62||de===96||qe(de))return ye(de);return c.consume(de),xe}function ze(de){if(de===47||de===62||Oe(de))return le(de);return E(de)}function ue(de){if(de===62)return c.consume(de),Re;return E(de)}function Re(de){if(de===null||Te(de))return Ee(de);if(Oe(de))return c.consume(de),Re;return E(de)}function Ee(de){if(de===45&&D===2)return c.consume(de),Be;if(de===60&&D===1)return c.consume(de),it;if(de===62&&D===4)return c.consume(de),Ct;if(de===63&&D===3)return c.consume(de),fe;if(de===93&&D===5)return c.consume(de),ot;if(Te(de)&&(D===6||D===7))return c.exit("htmlFlowData"),c.check(O3,Ft,Se)(de);if(de===null||Te(de))return c.exit("htmlFlowData"),Se(de);return c.consume(de),Ee}function Se(de){return c.check(su,Ae,Ft)(de)}function Ae(de){return c.enter("lineEnding"),c.consume(de),c.exit("lineEnding"),Me}function Me(de){if(de===null||Te(de))return Se(de);return c.enter("htmlFlowData"),Ee(de)}function Be(de){if(de===45)return c.consume(de),fe;return Ee(de)}function it(de){if(de===47)return c.consume(de),q="",bt;return Ee(de)}function bt(de){if(de===62){let sn=q.toLowerCase();if(bh.includes(sn))return c.consume(de),Ct;return Ee(de)}if(zt(de)&&q.length<8)return c.consume(de),q+=String.fromCharCode(de),bt;return Ee(de)}function ot(de){if(de===93)return c.consume(de),fe;return Ee(de)}function fe(de){if(de===62)return c.consume(de),Ct;if(de===45&&D===2)return c.consume(de),fe;return Ee(de)}function Ct(de){if(de===null||Te(de))return c.exit("htmlFlowData"),Ft(de);return c.consume(de),Ct}function Ft(de){return c.exit("htmlFlow"),v(de)}}function D3(c,v,E){return N;function N(D){return c.enter("lineEnding"),c.consume(D),c.exit("lineEnding"),c.attempt(cr,v,E)}}var wh={name:"htmlText",tokenize:L3};function L3(c,v,E){let N=this,D,H,q;return Y;function Y(fe){return c.enter("htmlText"),c.enter("htmlTextData"),c.consume(fe),I}function I(fe){if(fe===33)return c.consume(fe),Q;if(fe===47)return c.consume(fe),ye;if(fe===63)return c.consume(fe),le;if(zt(fe))return c.consume(fe),xe;return E(fe)}function Q(fe){if(fe===45)return c.consume(fe),F;if(fe===91)return c.consume(fe),H=0,ie;if(zt(fe))return c.consume(fe),oe;return E(fe)}function F(fe){if(fe===45)return c.consume(fe),ne;return E(fe)}function ee(fe){if(fe===null)return E(fe);if(fe===45)return c.consume(fe),te;if(Te(fe))return q=ee,it(fe);return c.consume(fe),ee}function te(fe){if(fe===45)return c.consume(fe),ne;return ee(fe)}function ne(fe){return fe===62?Be(fe):fe===45?te(fe):ee(fe)}function ie(fe){if(fe==="CDATA[".charCodeAt(H++))return c.consume(fe),H===6?ce:ie;return E(fe)}function ce(fe){if(fe===null)return E(fe);if(fe===93)return c.consume(fe),me;if(Te(fe))return q=ce,it(fe);return c.consume(fe),ce}function me(fe){if(fe===93)return c.consume(fe),re;return ce(fe)}function re(fe){if(fe===62)return Be(fe);if(fe===93)return c.consume(fe),re;return ce(fe)}function oe(fe){if(fe===null||fe===62)return Be(fe);if(Te(fe))return q=oe,it(fe);return c.consume(fe),oe}function le(fe){if(fe===null)return E(fe);if(fe===63)return c.consume(fe),pe;if(Te(fe))return q=le,it(fe);return c.consume(fe),le}function pe(fe){return fe===62?Be(fe):le(fe)}function ye(fe){if(zt(fe))return c.consume(fe),he;return E(fe)}function he(fe){if(fe===45||vt(fe))return c.consume(fe),he;return ge(fe)}function ge(fe){if(Te(fe))return q=ge,it(fe);if(Oe(fe))return c.consume(fe),ge;return Be(fe)}function xe(fe){if(fe===45||vt(fe))return c.consume(fe),xe;if(fe===47||fe===62||qe(fe))return ze(fe);return E(fe)}function ze(fe){if(fe===47)return c.consume(fe),Be;if(fe===58||fe===95||zt(fe))return c.consume(fe),ue;if(Te(fe))return q=ze,it(fe);if(Oe(fe))return c.consume(fe),ze;return Be(fe)}function ue(fe){if(fe===45||fe===46||fe===58||fe===95||vt(fe))return c.consume(fe),ue;return Re(fe)}function Re(fe){if(fe===61)return c.consume(fe),Ee;if(Te(fe))return q=Re,it(fe);if(Oe(fe))return c.consume(fe),Re;return ze(fe)}function Ee(fe){if(fe===null||fe===60||fe===61||fe===62||fe===96)return E(fe);if(fe===34||fe===39)return c.consume(fe),D=fe,Se;if(Te(fe))return q=Ee,it(fe);if(Oe(fe))return c.consume(fe),Ee;return c.consume(fe),Ae}function Se(fe){if(fe===D)return c.consume(fe),D=void 0,Me;if(fe===null)return E(fe);if(Te(fe))return q=Se,it(fe);return c.consume(fe),Se}function Ae(fe){if(fe===null||fe===34||fe===39||fe===60||fe===61||fe===96)return E(fe);if(fe===47||fe===62||qe(fe))return ze(fe);return c.consume(fe),Ae}function Me(fe){if(fe===47||fe===62||qe(fe))return ze(fe);return E(fe)}function Be(fe){if(fe===62)return c.consume(fe),c.exit("htmlTextData"),c.exit("htmlText"),v;return E(fe)}function it(fe){return c.exit("htmlTextData"),c.enter("lineEnding"),c.consume(fe),c.exit("lineEnding"),bt}function bt(fe){return Oe(fe)?_e(c,ot,"linePrefix",N.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(fe):ot(fe)}function ot(fe){return c.enter("htmlTextData"),q(fe)}}var ci={name:"labelEnd",resolveAll:V3,resolveTo:q3,tokenize:j3},U3={tokenize:Y3},H3={tokenize:I3},B3={tokenize:G3};function V3(c){let v=-1,E=[];while(++v<c.length){let N=c[v][1];if(E.push(c[v]),N.type==="labelImage"||N.type==="labelLink"||N.type==="labelEnd"){let D=N.type==="labelImage"?4:2;N.type="data",v+=D}}if(c.length!==E.length)Dt(c,0,c.length,E);return c}function q3(c,v){let E=c.length,N=0,D,H,q;while(E--){let F=c[E][1];if(D){if(F.type==="link"||F.type==="labelLink"&&F._inactive)break;if(c[E][0]==="enter"&&F.type==="labelLink")F._inactive=!0}else if(H){if(c[E][0]==="enter"&&(F.type==="labelImage"||F.type==="labelLink")&&!F._balanced){if(D=E,F.type!=="labelLink"){N=2;break}}}else if(F.type==="labelEnd")H=E}let Y={type:c[D][1].type==="labelLink"?"link":"image",start:{...c[D][1].start},end:{...c[c.length-1][1].end}},I={type:"label",start:{...c[D][1].start},end:{...c[H][1].end}},Q={type:"labelText",start:{...c[D+N+2][1].end},end:{...c[H-2][1].start}};return q=[["enter",Y,v],["enter",I,v]],q=$t(q,c.slice(D+1,D+N+3)),q=$t(q,[["enter",Q,v]]),q=$t(q,xa(v.parser.constructs.insideSpan.null,c.slice(D+N+4,H-3),v)),q=$t(q,[["exit",Q,v],c[H-2],c[H-1],["exit",I,v]]),q=$t(q,c.slice(H+1)),q=$t(q,[["exit",Y,v]]),Dt(c,D,c.length,q),c}function j3(c,v,E){let N=this,D=N._labelStarts,H,q;if(D){while(D.length>0&&D[D.length-1]._balanced)D.pop();H=D[D.length-1]}return Y;function Y(te){if(!H)return E(te);if(H._inactive)return ee(te);return q=N.parser.defined.includes(Qt(N.sliceSerialize({start:H.end,end:N.now()}))),c.enter("labelEnd"),c.enter("labelMarker"),c.consume(te),c.exit("labelMarker"),c.exit("labelEnd"),I}function I(te){if(te===40)return c.attempt(U3,F,q?F:ee)(te);if(te===91)return c.attempt(H3,F,q?Q:ee)(te);return q?F(te):ee(te)}function Q(te){return c.attempt(B3,F,ee)(te)}function F(te){return D.pop(),v(te)}function ee(te){return H._balanced=!0,E(te)}}function Y3(c,v,E){return N;function N(ee){return c.enter("resource"),c.enter("resourceMarker"),c.consume(ee),c.exit("resourceMarker"),D}function D(ee){return qe(ee)?si(c,H)(ee):H(ee)}function H(ee){if(ee===41)return F(ee);return Xc(c,q,Y,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(ee)}function q(ee){return qe(ee)?si(c,I)(ee):F(ee)}function Y(ee){return E(ee)}function I(ee){if(ee===34||ee===39||ee===40)return Zc(c,Q,E,"resourceTitle","resourceTitleMarker","resourceTitleString")(ee);return F(ee)}function Q(ee){return qe(ee)?si(c,F)(ee):F(ee)}function F(ee){if(ee===41)return c.enter("resourceMarker"),c.consume(ee),c.exit("resourceMarker"),c.exit("resource"),v;return E(ee)}}function I3(c,v,E){let N=this;return D;function D(Y){return Fc.call(N,c,H,q,"reference","referenceMarker","referenceString")(Y)}function H(Y){return N.parser.defined.includes(Qt(N.sliceSerialize(N.events[N.events.length-1][1]).slice(1,-1)))?v(Y):E(Y)}function q(Y){return E(Y)}}function G3(c,v,E){return N;function N(H){return c.enter("reference"),c.enter("referenceMarker"),c.consume(H),c.exit("referenceMarker"),D}function D(H){if(H===93)return c.enter("referenceMarker"),c.consume(H),c.exit("referenceMarker"),c.exit("reference"),v;return E(H)}}var Sh={name:"labelStartImage",resolveAll:ci.resolveAll,tokenize:P3};function P3(c,v,E){let N=this,D;return H;function H(I){return c.enter("labelImage"),c.enter("labelImageMarker"),c.consume(I),c.exit("labelImageMarker"),q}function q(I){if(I===91)return c.enter("labelMarker"),c.consume(I),c.exit("labelMarker"),D=c.exit("labelImage"),Y;return E(I)}function Y(I){if(I===94&&"_hiddenFootnoteSupport"in N.parser.constructs)return E(I);return N._labelStarts=N._labelStarts||[],N._labelStarts.push(D),v(I)}}var kh={name:"labelStartLink",resolveAll:ci.resolveAll,tokenize:Q3};function Q3(c,v,E){let N=this,D;return H;function H(Y){return c.enter("labelLink"),c.enter("labelMarker"),c.consume(Y),c.exit("labelMarker"),D=c.exit("labelLink"),q}function q(Y){if(Y===94&&"_hiddenFootnoteSupport"in N.parser.constructs)return E(Y);return N._labelStarts=N._labelStarts||[],N._labelStarts.push(D),v(Y)}}var du={name:"lineEnding",tokenize:X3};function X3(c,v){return E;function E(N){return c.enter("lineEnding"),c.consume(N),c.exit("lineEnding"),_e(c,v,"linePrefix")}}var fi={name:"thematicBreak",tokenize:F3};function F3(c,v,E){let N=0,D;return H;function H(Q){return c.enter("thematicBreak"),q(Q)}function q(Q){return D=Q,Y(Q)}function Y(Q){if(Q===D)return c.enter("thematicBreakSequence"),I(Q);if(N>=3&&(Q===null||Te(Q)))return c.exit("thematicBreak"),v(Q);return E(Q)}function I(Q){if(Q===D)return c.consume(Q),N++,I;return c.exit("thematicBreakSequence"),Oe(Q)?_e(c,Y,"whitespace")(Q):Y(Q)}}var Xt={continuation:{tokenize:W3},exit:e4,name:"list",tokenize:J3},Z3={partial:!0,tokenize:t4},K3={partial:!0,tokenize:$3};function J3(c,v,E){let N=this,D=N.events[N.events.length-1],H=D&&D[1].type==="linePrefix"?D[2].sliceSerialize(D[1],!0).length:0,q=0;return Y;function Y(ne){let ie=N.containerState.type||(ne===42||ne===43||ne===45?"listUnordered":"listOrdered");if(ie==="listUnordered"?!N.containerState.marker||ne===N.containerState.marker:lu(ne)){if(!N.containerState.type)N.containerState.type=ie,c.enter(ie,{_container:!0});if(ie==="listUnordered")return c.enter("listItemPrefix"),ne===42||ne===45?c.check(fi,E,Q)(ne):Q(ne);if(!N.interrupt||ne===49)return c.enter("listItemPrefix"),c.enter("listItemValue"),I(ne)}return E(ne)}function I(ne){if(lu(ne)&&++q<10)return c.consume(ne),I;if((!N.interrupt||q<2)&&(N.containerState.marker?ne===N.containerState.marker:ne===41||ne===46))return c.exit("listItemValue"),Q(ne);return E(ne)}function Q(ne){return c.enter("listItemMarker"),c.consume(ne),c.exit("listItemMarker"),N.containerState.marker=N.containerState.marker||ne,c.check(cr,N.interrupt?E:F,c.attempt(Z3,te,ee))}function F(ne){return N.containerState.initialBlankLine=!0,H++,te(ne)}function ee(ne){if(Oe(ne))return c.enter("listItemPrefixWhitespace"),c.consume(ne),c.exit("listItemPrefixWhitespace"),te;return E(ne)}function te(ne){return N.containerState.size=H+N.sliceSerialize(c.exit("listItemPrefix"),!0).length,v(ne)}}function W3(c,v,E){let N=this;return N.containerState._closeFlow=void 0,c.check(cr,D,H);function D(Y){return N.containerState.furtherBlankLines=N.containerState.furtherBlankLines||N.containerState.initialBlankLine,_e(c,v,"listItemIndent",N.containerState.size+1)(Y)}function H(Y){if(N.containerState.furtherBlankLines||!Oe(Y))return N.containerState.furtherBlankLines=void 0,N.containerState.initialBlankLine=void 0,q(Y);return N.containerState.furtherBlankLines=void 0,N.containerState.initialBlankLine=void 0,c.attempt(K3,v,q)(Y)}function q(Y){return N.containerState._closeFlow=!0,N.interrupt=void 0,_e(c,c.attempt(Xt,v,E),"linePrefix",N.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Y)}}function $3(c,v,E){let N=this;return _e(c,D,"listItemIndent",N.containerState.size+1);function D(H){let q=N.events[N.events.length-1];return q&&q[1].type==="listItemIndent"&&q[2].sliceSerialize(q[1],!0).length===N.containerState.size?v(H):E(H)}}function e4(c){c.exit(this.containerState.type)}function t4(c,v,E){let N=this;return _e(c,D,"listItemPrefixWhitespace",N.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function D(H){let q=N.events[N.events.length-1];return!Oe(H)&&q&&q[1].type==="listItemPrefixWhitespace"?v(H):E(H)}}var Kc={name:"setextUnderline",resolveTo:n4,tokenize:r4};function n4(c,v){let E=new ba,N=c.length,D,H,q;while(N--)if(c[N][0]==="enter"){if(c[N][1].type==="content"){D=N;break}if(c[N][1].type==="paragraph")H=N}else{if(c[N][1].type==="content")E.add(N,1,[]);if(!q&&c[N][1].type==="definition")q=N}let Y={type:"setextHeading",start:{...c[D][1].start},end:{...c[c.length-1][1].end}};if(c[H][1].type="setextHeadingText",q)E.add(H,0,[["enter",Y,v]]),E.add(q+1,0,[["exit",c[D][1],v]]),c[D][1].end={...c[q][1].end};else c[D][1]=Y;return E.add(c.length,0,[["exit",Y,v]]),E.consume(c),c}function r4(c,v,E){let N=this,D;return H;function H(Q){let F=N.events.length,ee;while(F--)if(N.events[F][1].type!=="lineEnding"&&N.events[F][1].type!=="linePrefix"&&N.events[F][1].type!=="content"){ee=N.events[F][1].type==="paragraph";break}if(!N.parser.lazy[N.now().line]&&(N.interrupt||ee))return c.enter("setextHeadingLine"),D=Q,q(Q);return E(Q)}function q(Q){return c.enter("setextHeadingLineSequence"),Y(Q)}function Y(Q){if(Q===D)return c.consume(Q),Y;return c.exit("setextHeadingLineSequence"),Oe(Q)?_e(c,I,"lineSuffix")(Q):I(Q)}function I(Q){if(Q===null||Te(Q))return c.exit("setextHeadingLine"),v(Q);return E(Q)}}var Hw={tokenize:a4};function a4(c){let v=this,E=c.attempt(cr,N,c.attempt(this.parser.constructs.flowInitial,D,_e(c,c.attempt(this.parser.constructs.flow,D,c.attempt(hh,D)),"linePrefix")));return E;function N(H){if(H===null){c.consume(H);return}return c.enter("lineEndingBlank"),c.consume(H),c.exit("lineEndingBlank"),v.currentConstruct=void 0,E}function D(H){if(H===null){c.consume(H);return}return c.enter("lineEnding"),c.consume(H),c.exit("lineEnding"),v.currentConstruct=void 0,E}}var Bw={resolveAll:Yw()},Vw=jw("string"),qw=jw("text");function jw(c){return{resolveAll:Yw(c==="text"?i4:void 0),tokenize:v};function v(E){let N=this,D=this.parser.constructs[c],H=E.attempt(D,q,Y);return q;function q(F){return Q(F)?H(F):Y(F)}function Y(F){if(F===null){E.consume(F);return}return E.enter("data"),E.consume(F),I}function I(F){if(Q(F))return E.exit("data"),H(F);return E.consume(F),I}function Q(F){if(F===null)return!0;let ee=D[F],te=-1;if(ee)while(++te<ee.length){let ne=ee[te];if(!ne.previous||ne.previous.call(N,N.previous))return!0}return!1}}}function Yw(c){return v;function v(E,N){let D=-1,H;while(++D<=E.length)if(H===void 0){if(E[D]&&E[D][1].type==="data")H=D,D++}else if(!E[D]||E[D][1].type!=="data"){if(D!==H+2)E[H][1].end=E[D-1][1].end,E.splice(H+2,D-H-2),D=H+2;H=void 0}return c?c(E,N):E}}function i4(c,v){let E=new ba,N=0;while(++N<=c.length)if((N===c.length||c[N][1].type==="lineEnding")&&c[N-1][1].type==="data"){let D=c[N-1][1],H=v.sliceStream(D),q=H.length,Y=-1,I=0,Q;while(q--){let F=H[q];if(typeof F==="string"){Y=F.length;while(F.charCodeAt(Y-1)===32)I++,Y--;if(Y)break;Y=-1}else if(F===-2)Q=!0,I++;else if(F===-1);else{q++;break}}if(v._contentTypeTextTrailing&&N===c.length)I=0;if(I){let F={type:N===c.length||Q||I<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:q?Y:D.start._bufferIndex+Y,_index:D.start._index+q,line:D.end.line,column:D.end.column-I,offset:D.end.offset-I},end:{...D.end}};if(D.end={...F.start},D.start.offset===D.end.offset)Object.assign(D,F);else E.add(N,0,[["enter",F,v],["exit",F,v]])}N++}return E.consume(c),c}var o4={[42]:Xt,[43]:Xt,[45]:Xt,[48]:Xt,[49]:Xt,[50]:Xt,[51]:Xt,[52]:Xt,[53]:Xt,[54]:Xt,[55]:Xt,[56]:Xt,[57]:Xt,[62]:Yc},l4={[91]:gh},u4={[-2]:cu,[-1]:cu,[32]:cu},s4={[35]:vh,[42]:fi,[45]:[Kc,fi],[60]:xh,[61]:Kc,[95]:fi,[96]:Pc,[126]:Pc},c4={[38]:Gc,[92]:Ic},f4={[-5]:du,[-4]:du,[-3]:du,[33]:Sh,[38]:Gc,[42]:uu,[60]:[dh,wh],[91]:kh,[92]:[yh,Ic],[93]:ci,[95]:uu,[96]:mh},d4={null:[uu,Bw]},m4={null:[42,95]},p4={null:[]};function Iw(c,v,E){let N={_bufferIndex:-1,_index:0,line:E&&E.line||1,column:E&&E.column||1,offset:E&&E.offset||0},D={},H=[],q=[],Y=[],I=!0,Q={attempt:ze(ge),check:ze(xe),consume:pe,enter:ye,exit:he,interrupt:ze(xe,{interrupt:!0})},F={code:null,containerState:{},defineSkip:re,events:[],now:me,parser:c,previous:null,sliceSerialize:ie,sliceStream:ce,write:ne},ee=v.tokenize.call(F,Q),te;if(v.resolveAll)H.push(v);return F;function ne(Se){if(q=$t(q,Se),oe(),q[q.length-1]!==null)return[];return ue(v,0),F.events=xa(H,F.events,F),F.events}function ie(Se,Ae){return g4(ce(Se),Ae)}function ce(Se){return h4(q,Se)}function me(){let{_bufferIndex:Se,_index:Ae,line:Me,column:Be,offset:it}=N;return{_bufferIndex:Se,_index:Ae,line:Me,column:Be,offset:it}}function re(Se){D[Se.line]=Se.column,Ee()}function oe(){while(N._index<q.length){let Se=q[N._index];if(typeof Se==="string"){let Ae=N._index;if(N._bufferIndex<0)N._bufferIndex=0;while(N._index===Ae&&N._bufferIndex<Se.length)le(Se.charCodeAt(N._bufferIndex))}else le(Se)}}function le(Se){I=void 0,te=Se,ee=ee(Se)}function pe(Se){if(Te(Se))N.line++,N.column=1,N.offset+=Se===-3?2:1,Ee();else if(Se!==-1)N.column++,N.offset++;if(N._bufferIndex<0)N._index++;else if(N._bufferIndex++,N._bufferIndex===q[N._index].length)N._bufferIndex=-1,N._index++;F.previous=Se,I=!0}function ye(Se,Ae){let Me=Ae||{};return Me.type=Se,Me.start=me(),F.events.push(["enter",Me,F]),Y.push(Me),Me}function he(Se){let Ae=Y.pop();return Ae.end=me(),F.events.push(["exit",Ae,F]),Ae}function ge(Se,Ae){ue(Se,Ae.from)}function xe(Se,Ae){Ae.restore()}function ze(Se,Ae){return Me;function Me(Be,it,bt){let ot,fe,Ct,Ft;return Array.isArray(Be)?sn(Be):("tokenize"in Be)?sn([Be]):de(Be);function de(wt){return mr;function mr(It){let pr=It!==null&&wt[It],wn=It!==null&&wt.null,Uo=[...Array.isArray(pr)?pr:pr?[pr]:[],...Array.isArray(wn)?wn:wn?[wn]:[]];return sn(Uo)(It)}}function sn(wt){if(ot=wt,fe=0,wt.length===0)return bt;return dr(wt[fe])}function dr(wt){return mr;function mr(It){if(Ft=Re(),Ct=wt,!wt.partial)F.currentConstruct=wt;if(wt.name&&F.parser.constructs.disable.null.includes(wt.name))return Vr(It);return wt.tokenize.call(Ae?Object.assign(Object.create(F),Ae):F,Q,Lo,Vr)(It)}}function Lo(wt){return I=!0,Se(Ct,Ft),it}function Vr(wt){if(I=!0,Ft.restore(),++fe<ot.length)return dr(ot[fe]);return bt}}}function ue(Se,Ae){if(Se.resolveAll&&!H.includes(Se))H.push(Se);if(Se.resolve)Dt(F.events,Ae,F.events.length-Ae,Se.resolve(F.events.slice(Ae),F));if(Se.resolveTo)F.events=Se.resolveTo(F.events,F)}function Re(){let Se=me(),{previous:Ae,currentConstruct:Me}=F,Be=F.events.length,it=Array.from(Y);return{from:Be,restore:bt};function bt(){N=Se,F.previous=Ae,F.currentConstruct=Me,F.events.length=Be,Y=it,Ee()}}function Ee(){if(N.line in D&&N.column<2)N.column=D[N.line],N.offset+=D[N.line]-1}}function h4(c,v){let E=v.start._index,N=v.start._bufferIndex,D=v.end._index,H=v.end._bufferIndex,q;if(E===D)q=[c[E].slice(N,H)];else{if(q=c.slice(E,D),N>-1){let Y=q[0];if(typeof Y==="string")q[0]=Y.slice(N);else q.shift()}if(H>0)q.push(c[D].slice(0,H))}return q}function g4(c,v){let E=-1,N=[],D;while(++E<c.length){let H=c[E],q;if(typeof H==="string")q=H;else switch(H){case-5:{q="\r";break}case-4:{q=`
12
+ `;break}case-3:{q=`\r
13
+ `;break}case-2:{q=v?" ":"\t";break}case-1:{if(!v&&D)continue;q=" ";break}default:q=String.fromCharCode(H)}D=H===-2,N.push(q)}return N.join("")}function Th(c){let N={constructs:qc([Eh,...(c||{}).extensions||[]]),content:D(Ow),defined:[],document:D(Dw),flow:D(Hw),lazy:{},string:D(Vw),text:D(qw)};return N;function D(H){return q;function q(Y){return Iw(N,H,Y)}}}function Ch(c){while(!Qc(c));return c}var Gw=/[\0\t\n\r]/g;function Nh(){let c=1,v="",E=!0,N;return D;function D(H,q,Y){H=v+(typeof H==="string"?H.toString():new TextDecoder(q||void 0).decode(H));let I=[],Q=0;if(v="",E){if(H.charCodeAt(0)===65279)Q++;E=void 0}while(Q<H.length){Gw.lastIndex=Q;let F=Gw.exec(H),ee=F&&F.index!==void 0?F.index:H.length,te=H.charCodeAt(ee);if(!F){v=H.slice(Q);break}if(te===10&&Q===ee&&N)I.push(-3),N=void 0;else{if(N)I.push(-5),N=void 0;if(Q<ee)I.push(H.slice(Q,ee)),c+=ee-Q;switch(te){case 0:{I.push(65533),c++;break}case 9:{let ne=Math.ceil(c/4)*4;I.push(-2);while(c++<ne)I.push(-1);break}case 10:{I.push(-4),c=1;break}default:N=!0,c=1}}Q=ee+1}if(Y){if(N)I.push(-5);if(v)I.push(v);I.push(null)}return I}}var y4=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Pw(c){return c.replace(y4,v4)}function v4(c,v,E){if(v)return v;if(E.charCodeAt(0)===35){let D=E.charCodeAt(1),H=D===120||D===88;return jc(E.slice(H?2:1),H?16:10)}return To(E)||c}var Xw={}.hasOwnProperty;function Ah(c,v,E){if(v&&typeof v==="object")E=v,v=void 0;return b4(E)(Ch(Th(E).document().write(Nh()(c,v,!0))))}function b4(c){let v={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:H(qg),autolinkProtocol:ze,autolinkEmail:ze,atxHeading:H(Ce),blockQuote:H(It),characterEscape:ze,characterReference:ze,codeFenced:H(pr),codeFencedFenceInfo:q,codeFencedFenceMeta:q,codeIndented:H(pr,q),codeText:H(wn,q),codeTextData:ze,data:ze,codeFlowValue:ze,definition:H(Uo),definitionDestinationString:q,definitionLabelString:q,definitionTitleString:q,emphasis:H(Ho),hardBreakEscape:H(lt),hardBreakTrailing:H(lt),htmlFlow:H(Vg,q),htmlFlowData:ze,htmlText:H(Vg,q),htmlTextData:ze,image:H(v2),label:q,link:H(qg),listItem:H(b2),listItemValue:te,listOrdered:H(jg,ee),listUnordered:H(jg),paragraph:H(x2),reference:de,referenceString:q,resourceDestinationString:q,resourceTitleString:q,setextHeading:H(Ce),strong:H(w2),thematicBreak:H(k2)},exit:{atxHeading:I(),atxHeadingSequence:ye,autolink:I(),autolinkEmail:mr,autolinkProtocol:wt,blockQuote:I(),characterEscapeValue:ue,characterReferenceMarkerHexadecimal:dr,characterReferenceMarkerNumeric:dr,characterReferenceValue:Lo,characterReference:Vr,codeFenced:I(me),codeFencedFence:ce,codeFencedFenceInfo:ne,codeFencedFenceMeta:ie,codeFlowValue:ue,codeIndented:I(re),codeText:I(Me),codeTextData:ue,data:ue,definition:I(),definitionDestinationString:pe,definitionLabelString:oe,definitionTitleString:le,emphasis:I(),hardBreakEscape:I(Ee),hardBreakTrailing:I(Ee),htmlFlow:I(Se),htmlFlowData:ue,htmlText:I(Ae),htmlTextData:ue,image:I(it),label:ot,labelText:bt,lineEnding:Re,link:I(Be),listItem:I(),listOrdered:I(),listUnordered:I(),paragraph:I(),referenceString:sn,resourceDestinationString:fe,resourceTitleString:Ct,resource:Ft,setextHeading:I(xe),setextHeadingLineSequence:ge,setextHeadingText:he,strong:I(),thematicBreak:I()}};Fw(v,(c||{}).mdastExtensions||[]);let E={};return N;function N(be){let ke={type:"root",children:[]},Ue={stack:[ke],tokenStack:[],config:v,enter:Y,exit:Q,buffer:q,resume:F,data:E},Ge=[],nt=-1;while(++nt<be.length)if(be[nt][1].type==="listOrdered"||be[nt][1].type==="listUnordered")if(be[nt][0]==="enter")Ge.push(nt);else{let Un=Ge.pop();nt=D(be,Un,nt)}nt=-1;while(++nt<be.length){let Un=v[be[nt][0]];if(Xw.call(Un,be[nt][1].type))Un[be[nt][1].type].call(Object.assign({sliceSerialize:be[nt][2].sliceSerialize},Ue),be[nt][1])}if(Ue.tokenStack.length>0){let Un=Ue.tokenStack[Ue.tokenStack.length-1];(Un[1]||Qw).call(Ue,void 0,Un[0])}ke.position={start:wa(be.length>0?be[0][1].start:{line:1,column:1,offset:0}),end:wa(be.length>0?be[be.length-2][1].end:{line:1,column:1,offset:0})},nt=-1;while(++nt<v.transforms.length)ke=v.transforms[nt](ke)||ke;return ke}function D(be,ke,Ue){let Ge=ke-1,nt=-1,Un=!1,ka,hr,Bo,Vo;while(++Ge<=Ue){let cn=be[Ge];switch(cn[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{if(cn[0]==="enter")nt++;else nt--;Vo=void 0;break}case"lineEndingBlank":{if(cn[0]==="enter"){if(ka&&!Vo&&!nt&&!Bo)Bo=Ge;Vo=void 0}break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Vo=void 0}if(!nt&&cn[0]==="enter"&&cn[1].type==="listItemPrefix"||nt===-1&&cn[0]==="exit"&&(cn[1].type==="listUnordered"||cn[1].type==="listOrdered")){if(ka){let vi=Ge;hr=void 0;while(vi--){let gr=be[vi];if(gr[1].type==="lineEnding"||gr[1].type==="lineEndingBlank"){if(gr[0]==="exit")continue;if(hr)be[hr][1].type="lineEndingBlank",Un=!0;gr[1].type="lineEnding",hr=vi}else if(gr[1].type==="linePrefix"||gr[1].type==="blockQuotePrefix"||gr[1].type==="blockQuotePrefixWhitespace"||gr[1].type==="blockQuoteMarker"||gr[1].type==="listItemIndent");else break}if(Bo&&(!hr||Bo<hr))ka._spread=!0;ka.end=Object.assign({},hr?be[hr][1].start:cn[1].end),be.splice(hr||Ge,0,["exit",ka,cn[2]]),Ge++,Ue++}if(cn[1].type==="listItemPrefix"){let vi={type:"listItem",_spread:!1,start:Object.assign({},cn[1].start),end:void 0};ka=vi,be.splice(Ge,0,["enter",vi,cn[2]]),Ge++,Ue++,Bo=void 0,Vo=!0}}}return be[ke][1]._spread=Un,Ue}function H(be,ke){return Ue;function Ue(Ge){if(Y.call(this,be(Ge),Ge),ke)ke.call(this,Ge)}}function q(){this.stack.push({type:"fragment",children:[]})}function Y(be,ke,Ue){this.stack[this.stack.length-1].children.push(be),this.stack.push(be),this.tokenStack.push([ke,Ue||void 0]),be.position={start:wa(ke.start),end:void 0}}function I(be){return ke;function ke(Ue){if(be)be.call(this,Ue);Q.call(this,Ue)}}function Q(be,ke){let Ue=this.stack.pop(),Ge=this.tokenStack.pop();if(!Ge)throw Error("Cannot close `"+be.type+"` ("+ya({start:be.start,end:be.end})+"): it’s not open");else if(Ge[0].type!==be.type)if(ke)ke.call(this,be,Ge[0]);else(Ge[1]||Qw).call(this,be,Ge[0]);Ue.position.end=wa(be.end)}function F(){return oi(this.stack.pop())}function ee(){this.data.expectingFirstListItemValue=!0}function te(be){if(this.data.expectingFirstListItemValue){let ke=this.stack[this.stack.length-2];ke.start=Number.parseInt(this.sliceSerialize(be),10),this.data.expectingFirstListItemValue=void 0}}function ne(){let be=this.resume(),ke=this.stack[this.stack.length-1];ke.lang=be}function ie(){let be=this.resume(),ke=this.stack[this.stack.length-1];ke.meta=be}function ce(){if(this.data.flowCodeInside)return;this.buffer(),this.data.flowCodeInside=!0}function me(){let be=this.resume(),ke=this.stack[this.stack.length-1];ke.value=be.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function re(){let be=this.resume(),ke=this.stack[this.stack.length-1];ke.value=be.replace(/(\r?\n|\r)$/g,"")}function oe(be){let ke=this.resume(),Ue=this.stack[this.stack.length-1];Ue.label=ke,Ue.identifier=Qt(this.sliceSerialize(be)).toLowerCase()}function le(){let be=this.resume(),ke=this.stack[this.stack.length-1];ke.title=be}function pe(){let be=this.resume(),ke=this.stack[this.stack.length-1];ke.url=be}function ye(be){let ke=this.stack[this.stack.length-1];if(!ke.depth){let Ue=this.sliceSerialize(be).length;ke.depth=Ue}}function he(){this.data.setextHeadingSlurpLineEnding=!0}function ge(be){let ke=this.stack[this.stack.length-1];ke.depth=this.sliceSerialize(be).codePointAt(0)===61?1:2}function xe(){this.data.setextHeadingSlurpLineEnding=void 0}function ze(be){let Ue=this.stack[this.stack.length-1].children,Ge=Ue[Ue.length-1];if(!Ge||Ge.type!=="text")Ge=S2(),Ge.position={start:wa(be.start),end:void 0},Ue.push(Ge);this.stack.push(Ge)}function ue(be){let ke=this.stack.pop();ke.value+=this.sliceSerialize(be),ke.position.end=wa(be.end)}function Re(be){let ke=this.stack[this.stack.length-1];if(this.data.atHardBreak){let Ue=ke.children[ke.children.length-1];Ue.position.end=wa(be.end),this.data.atHardBreak=void 0;return}if(!this.data.setextHeadingSlurpLineEnding&&v.canContainEols.includes(ke.type))ze.call(this,be),ue.call(this,be)}function Ee(){this.data.atHardBreak=!0}function Se(){let be=this.resume(),ke=this.stack[this.stack.length-1];ke.value=be}function Ae(){let be=this.resume(),ke=this.stack[this.stack.length-1];ke.value=be}function Me(){let be=this.resume(),ke=this.stack[this.stack.length-1];ke.value=be}function Be(){let be=this.stack[this.stack.length-1];if(this.data.inReference){let ke=this.data.referenceType||"shortcut";be.type+="Reference",be.referenceType=ke,delete be.url,delete be.title}else delete be.identifier,delete be.label;this.data.referenceType=void 0}function it(){let be=this.stack[this.stack.length-1];if(this.data.inReference){let ke=this.data.referenceType||"shortcut";be.type+="Reference",be.referenceType=ke,delete be.url,delete be.title}else delete be.identifier,delete be.label;this.data.referenceType=void 0}function bt(be){let ke=this.sliceSerialize(be),Ue=this.stack[this.stack.length-2];Ue.label=Pw(ke),Ue.identifier=Qt(ke).toLowerCase()}function ot(){let be=this.stack[this.stack.length-1],ke=this.resume(),Ue=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ue.type==="link"){let Ge=be.children;Ue.children=Ge}else Ue.alt=ke}function fe(){let be=this.resume(),ke=this.stack[this.stack.length-1];ke.url=be}function Ct(){let be=this.resume(),ke=this.stack[this.stack.length-1];ke.title=be}function Ft(){this.data.inReference=void 0}function de(){this.data.referenceType="collapsed"}function sn(be){let ke=this.resume(),Ue=this.stack[this.stack.length-1];Ue.label=ke,Ue.identifier=Qt(this.sliceSerialize(be)).toLowerCase(),this.data.referenceType="full"}function dr(be){this.data.characterReferenceType=be.type}function Lo(be){let ke=this.sliceSerialize(be),Ue=this.data.characterReferenceType,Ge;if(Ue)Ge=jc(ke,Ue==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0;else Ge=To(ke);let nt=this.stack[this.stack.length-1];nt.value+=Ge}function Vr(be){let ke=this.stack.pop();ke.position.end=wa(be.end)}function wt(be){ue.call(this,be);let ke=this.stack[this.stack.length-1];ke.url=this.sliceSerialize(be)}function mr(be){ue.call(this,be);let ke=this.stack[this.stack.length-1];ke.url="mailto:"+this.sliceSerialize(be)}function It(){return{type:"blockquote",children:[]}}function pr(){return{type:"code",lang:null,meta:null,value:""}}function wn(){return{type:"inlineCode",value:""}}function Uo(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ho(){return{type:"emphasis",children:[]}}function Ce(){return{type:"heading",depth:0,children:[]}}function lt(){return{type:"break"}}function Vg(){return{type:"html",value:""}}function v2(){return{type:"image",title:null,url:"",alt:null}}function qg(){return{type:"link",title:null,url:"",children:[]}}function jg(be){return{type:"list",ordered:be.type==="listOrdered",start:null,spread:be._spread,children:[]}}function b2(be){return{type:"listItem",spread:be._spread,checked:null,children:[]}}function x2(){return{type:"paragraph",children:[]}}function w2(){return{type:"strong",children:[]}}function S2(){return{type:"text",value:""}}function k2(){return{type:"thematicBreak"}}}function wa(c){return{line:c.line,column:c.column,offset:c.offset}}function Fw(c,v){let E=-1;while(++E<v.length){let N=v[E];if(Array.isArray(N))Fw(c,N);else x4(c,N)}}function x4(c,v){let E;for(E in v)if(Xw.call(v,E))switch(E){case"canContainEols":{let N=v[E];if(N)c[E].push(...N);break}case"transforms":{let N=v[E];if(N)c[E].push(...N);break}case"enter":case"exit":{let N=v[E];if(N)Object.assign(c[E],N);break}}}function Qw(c,v){if(c)throw Error("Cannot close `"+c.type+"` ("+ya({start:c.start,end:c.end})+"): a different token (`"+v.type+"`, "+ya({start:v.start,end:v.end})+") is open");else throw Error("Cannot close document, a token (`"+v.type+"`, "+ya({start:v.start,end:v.end})+") is still open")}function Jc(c){let v=this;v.parser=E;function E(N){return Ah(N,{...v.data("settings"),...c,extensions:v.data("micromarkExtensions")||[],mdastExtensions:v.data("fromMarkdownExtensions")||[]})}}var Wc=-1,No=0,di=1,Ao=2,mu=3,pu=4,hu=5,gu=6,$c=7,ef=8;var{defineProperty:w4}=Object,Kw=typeof self==="object"?self:globalThis,Zw=(c,v)=>{switch(c){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw TypeError("unable to deserialize "+c)}return new Kw[c](v)},S4=(c,v)=>{let E=(D,H)=>(c.set(H,D),D),N=(D)=>{if(c.has(D))return c.get(D);let[H,q]=v[D];switch(H){case No:case Wc:return E(q,D);case di:{let Y=E([],D);for(let I of q)Y.push(N(I));return Y}case Ao:{let Y=E({},D);for(let[I,Q]of q){let F=N(I),ee=N(Q);if(F==="__proto__")w4(Y,F,{value:ee,configurable:!0,enumerable:!0,writable:!0});else Y[F]=ee}return Y}case mu:return E(new Date(q),D);case pu:{let{source:Y,flags:I}=q;return E(new RegExp(Y,I),D)}case hu:{let Y=E(new Map,D);for(let[I,Q]of q)Y.set(N(I),N(Q));return Y}case gu:{let Y=E(new Set,D);for(let I of q)Y.add(N(I));return Y}case $c:{let{name:Y,message:I}=q;return E(typeof Kw[Y]==="function"?Zw(Y,I):Error(I),D)}case ef:return E(BigInt(q),D);case"BigInt":return E(Object(BigInt(q)),D);case"ArrayBuffer":return E(new Uint8Array(q).buffer,q);case"DataView":{let{buffer:Y}=new Uint8Array(q);return E(new DataView(Y),q)}case"-0":return-0}return E(Zw(H,q),D)};return N},zh=(c)=>S4(new Map,c)(0);var mi="",{toString:k4}={},{keys:E4,is:T4}=Object,yu=(c)=>{let v=typeof c;if(v!=="object"||!c)return[No,v];let E=k4.call(c).slice(8,-1);switch(E){case"Array":return[di,mi];case"Object":return[Ao,mi];case"Date":return[mu,mi];case"RegExp":return[pu,mi];case"Map":return[hu,mi];case"Set":return[gu,mi];case"DataView":return[di,E]}if(E.includes("Array"))return[di,E];if(c instanceof Error)return[$c,c.name||"Error"];return[Ao,E]},tf=([c,v])=>c===No&&(v==="function"||v==="symbol"),C4=(c,v,E,N)=>{let D=(q,Y)=>{let I=N.push(q)-1;return E.set(Y,I),I},H=(q)=>{if(E.has(q))return E.get(q);let[Y,I]=yu(q);switch(Y){case No:{let F=q;switch(I){case"bigint":Y=ef,F=q.toString();break;case"number":if(!q&&T4(q,-0))return N.push(["-0"])-1;break;case"function":case"symbol":if(c)throw TypeError("unable to serialize "+I);F=null;break;case"undefined":return D([Wc],q)}return D([Y,F],q)}case di:{if(I){let te=q;if(I==="DataView")te=new Uint8Array(q.buffer);else if(I==="ArrayBuffer")te=new Uint8Array(q);return D([I,[...te]],q)}let F=[],ee=D([Y,F],q);for(let te of q)F.push(H(te));return ee}case Ao:{if(I)switch(I){case"BigInt":return D([I,q.toString()],q);case"Boolean":case"Number":case"String":return D([I,q.valueOf()],q)}if(v&&"toJSON"in q)return H(q.toJSON());let F=[],ee=D([Y,F],q);for(let te of E4(q))if(c||!tf(yu(q[te])))F.push([H(te),H(q[te])]);return ee}case mu:return D([Y,isNaN(q.getTime())?mi:q.toISOString()],q);case pu:{let{source:F,flags:ee}=q;return D([Y,{source:F,flags:ee}],q)}case hu:{let F=[],ee=D([Y,F],q);for(let[te,ne]of q)if(c||!(tf(yu(te))||tf(yu(ne))))F.push([H(te),H(ne)]);return ee}case gu:{let F=[],ee=D([Y,F],q);for(let te of q)if(c||!tf(yu(te)))F.push(H(te));return ee}}let{message:Q}=q;return D([Y,{name:I,message:Q}],q)};return H},Rh=(c,{json:v,lossy:E}={})=>{let N=[];return C4(!(v||E),!!v,new Map,N)(c),N};var zo=typeof structuredClone==="function"?(c,v)=>v&&(("json"in v)||("lossy"in v))?zh(Rh(c,v)):structuredClone(c):(c,v)=>zh(Rh(c,v));function N4(c,v){let E=[{type:"text",value:"↩"}];if(v>1)E.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(v)}]});return E}function A4(c,v){return"Back to reference "+(c+1)+(v>1?"-"+v:"")}function Jw(c){let v=typeof c.options.clobberPrefix==="string"?c.options.clobberPrefix:"user-content-",E=c.options.footnoteBackContent||N4,N=c.options.footnoteBackLabel||A4,D=c.options.footnoteLabel||"Footnotes",H=c.options.footnoteLabelTagName||"h2",q=c.options.footnoteLabelProperties||{className:["sr-only"]},Y=[],I=-1;while(++I<c.footnoteOrder.length){let Q=c.footnoteById.get(c.footnoteOrder[I]);if(!Q)continue;let F=c.all(Q),ee=String(Q.identifier).toUpperCase(),te=Ln(ee.toLowerCase()),ne=0,ie=[],ce=c.footnoteCounts.get(ee);while(ce!==void 0&&++ne<=ce){if(ie.length>0)ie.push({type:"text",value:" "});let oe=typeof E==="string"?E:E(I,ne);if(typeof oe==="string")oe={type:"text",value:oe};ie.push({type:"element",tagName:"a",properties:{href:"#"+v+"fnref-"+te+(ne>1?"-"+ne:""),dataFootnoteBackref:"",ariaLabel:typeof N==="string"?N:N(I,ne),className:["data-footnote-backref"]},children:Array.isArray(oe)?oe:[oe]})}let me=F[F.length-1];if(me&&me.type==="element"&&me.tagName==="p"){let oe=me.children[me.children.length-1];if(oe&&oe.type==="text")oe.value+=" ";else me.children.push({type:"text",value:" "});me.children.push(...ie)}else F.push(...ie);let re={type:"element",tagName:"li",properties:{id:v+"fn-"+te},children:c.wrap(F,!0)};c.patch(Q,re),Y.push(re)}if(Y.length===0)return;return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:H,properties:{...zo(q),id:"footnote-label"},children:[{type:"text",value:D}]},{type:"text",value:`
14
+ `},{type:"element",tagName:"ol",properties:{},children:c.wrap(Y,!0)},{type:"text",value:`
15
+ `}]}}var Sa=function(c){if(c===null||c===void 0)return M4;if(typeof c==="function")return nf(c);if(typeof c==="object")return Array.isArray(c)?z4(c):R4(c);if(typeof c==="string")return O4(c);throw Error("Expected function, string, or object as test")};function z4(c){let v=[],E=-1;while(++E<c.length)v[E]=Sa(c[E]);return nf(N);function N(...D){let H=-1;while(++H<v.length)if(v[H].apply(this,D))return!0;return!1}}function R4(c){let v=c;return nf(E);function E(N){let D=N,H;for(H in c)if(D[H]!==v[H])return!1;return!0}}function O4(c){return nf(v);function v(E){return E&&E.type===c}}function nf(c){return v;function v(E,N,D){return Boolean(_4(E)&&c.call(this,E,typeof N==="number"?N:void 0,D||void 0))}}function M4(){return!0}function _4(c){return c!==null&&typeof c==="object"&&"type"in c}function Ww(c){return c}var $w=[],rf=!0,pi=!1,af="skip";function vu(c,v,E,N){let D;if(typeof v==="function"&&typeof E!=="function")N=E,E=v;else D=v;let H=Sa(D),q=N?-1:1;Y(c,void 0,[])();function Y(I,Q,F){let ee=I&&typeof I==="object"?I:{};if(typeof ee.type==="string"){let ne=typeof ee.tagName==="string"?ee.tagName:typeof ee.name==="string"?ee.name:void 0;Object.defineProperty(te,"name",{value:"node ("+Ww(I.type+(ne?"<"+ne+">":""))+")"})}return te;function te(){let ne=$w,ie,ce,me;if(!v||H(I,Q,F[F.length-1]||void 0)){if(ne=D4(E(I,F)),ne[0]===pi)return ne}if("children"in I&&I.children){let re=I;if(re.children&&ne[0]!==af){ce=(N?re.children.length:-1)+q,me=F.concat(re);while(ce>-1&&ce<re.children.length){let oe=re.children[ce];if(ie=Y(oe,ce,me)(),ie[0]===pi)return ie;ce=typeof ie[1]==="number"?ie[1]:ce+q}}}return ne}}}function D4(c){if(Array.isArray(c))return c;if(typeof c==="number")return[rf,c];return c===null||c===void 0?$w:[c]}function hi(c,v,E,N){let D,H,q;if(typeof v==="function"&&typeof E!=="function")H=void 0,q=v,D=E;else H=v,q=E,D=N;vu(c,H,Y,D);function Y(I,Q){let F=Q[Q.length-1],ee=F?F.children.indexOf(I):void 0;return q(I,ee,F)}}function eS(c,v){let E={type:"element",tagName:"blockquote",properties:{},children:c.wrap(c.all(v),!0)};return c.patch(v,E),c.applyData(v,E)}function tS(c,v){let E={type:"element",tagName:"br",properties:{},children:[]};return c.patch(v,E),[c.applyData(v,E),{type:"text",value:`
16
+ `}]}function nS(c,v){let E=v.value?v.value+`
17
+ `:"",N={},D=v.lang?v.lang.split(/\s+/):[];if(D.length>0)N.className=["language-"+D[0]];let H={type:"element",tagName:"code",properties:N,children:[{type:"text",value:E}]};if(v.meta)H.data={meta:v.meta};return c.patch(v,H),H=c.applyData(v,H),H={type:"element",tagName:"pre",properties:{},children:[H]},c.patch(v,H),H}function rS(c,v){let E={type:"element",tagName:"del",properties:{},children:c.all(v)};return c.patch(v,E),c.applyData(v,E)}function aS(c,v){let E={type:"element",tagName:"em",properties:{},children:c.all(v)};return c.patch(v,E),c.applyData(v,E)}function iS(c,v){let E=typeof c.options.clobberPrefix==="string"?c.options.clobberPrefix:"user-content-",N=String(v.identifier).toUpperCase(),D=Ln(N.toLowerCase()),H=c.footnoteOrder.indexOf(N),q,Y=c.footnoteCounts.get(N);if(Y===void 0)Y=0,c.footnoteOrder.push(N),q=c.footnoteOrder.length;else q=H+1;Y+=1,c.footnoteCounts.set(N,Y);let I={type:"element",tagName:"a",properties:{href:"#"+E+"fn-"+D,id:E+"fnref-"+D+(Y>1?"-"+Y:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(q)}]};c.patch(v,I);let Q={type:"element",tagName:"sup",properties:{},children:[I]};return c.patch(v,Q),c.applyData(v,Q)}function oS(c,v){let E={type:"element",tagName:"h"+v.depth,properties:{},children:c.all(v)};return c.patch(v,E),c.applyData(v,E)}function lS(c,v){if(c.options.allowDangerousHtml){let E={type:"raw",value:v.value};return c.patch(v,E),c.applyData(v,E)}return}function of(c,v){let E=v.referenceType,N="]";if(E==="collapsed")N+="[]";else if(E==="full")N+="["+(v.label||v.identifier)+"]";if(v.type==="imageReference")return[{type:"text",value:"!["+v.alt+N}];let D=c.all(v),H=D[0];if(H&&H.type==="text")H.value="["+H.value;else D.unshift({type:"text",value:"["});let q=D[D.length-1];if(q&&q.type==="text")q.value+=N;else D.push({type:"text",value:N});return D}function uS(c,v){let E=String(v.identifier).toUpperCase(),N=c.definitionById.get(E);if(!N)return of(c,v);let D={src:Ln(N.url||""),alt:v.alt};if(N.title!==null&&N.title!==void 0)D.title=N.title;let H={type:"element",tagName:"img",properties:D,children:[]};return c.patch(v,H),c.applyData(v,H)}function sS(c,v){let E={src:Ln(v.url)};if(v.alt!==null&&v.alt!==void 0)E.alt=v.alt;if(v.title!==null&&v.title!==void 0)E.title=v.title;let N={type:"element",tagName:"img",properties:E,children:[]};return c.patch(v,N),c.applyData(v,N)}function cS(c,v){let E={type:"text",value:v.value.replace(/\r?\n|\r/g," ")};c.patch(v,E);let N={type:"element",tagName:"code",properties:{},children:[E]};return c.patch(v,N),c.applyData(v,N)}function fS(c,v){let E=String(v.identifier).toUpperCase(),N=c.definitionById.get(E);if(!N)return of(c,v);let D={href:Ln(N.url||"")};if(N.title!==null&&N.title!==void 0)D.title=N.title;let H={type:"element",tagName:"a",properties:D,children:c.all(v)};return c.patch(v,H),c.applyData(v,H)}function dS(c,v){let E={href:Ln(v.url)};if(v.title!==null&&v.title!==void 0)E.title=v.title;let N={type:"element",tagName:"a",properties:E,children:c.all(v)};return c.patch(v,N),c.applyData(v,N)}function mS(c,v,E){let N=c.all(v),D=E?L4(E):pS(v),H={},q=[];if(typeof v.checked==="boolean"){let F=N[0],ee;if(F&&F.type==="element"&&F.tagName==="p")ee=F;else ee={type:"element",tagName:"p",properties:{},children:[]},N.unshift(ee);if(ee.children.length>0)ee.children.unshift({type:"text",value:" "});ee.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:v.checked,disabled:!0},children:[]}),H.className=["task-list-item"]}let Y=-1;while(++Y<N.length){let F=N[Y];if(D||Y!==0||F.type!=="element"||F.tagName!=="p")q.push({type:"text",value:`
18
+ `});if(F.type==="element"&&F.tagName==="p"&&!D)q.push(...F.children);else q.push(F)}let I=N[N.length-1];if(I&&(D||I.type!=="element"||I.tagName!=="p"))q.push({type:"text",value:`
19
+ `});let Q={type:"element",tagName:"li",properties:H,children:q};return c.patch(v,Q),c.applyData(v,Q)}function L4(c){let v=!1;if(c.type==="list"){v=c.spread||!1;let E=c.children,N=-1;while(!v&&++N<E.length)v=pS(E[N])}return v}function pS(c){let v=c.spread;return v===null||v===void 0?c.children.length>1:v}function hS(c,v){let E={},N=c.all(v),D=-1;if(typeof v.start==="number"&&v.start!==1)E.start=v.start;while(++D<N.length){let q=N[D];if(q.type==="element"&&q.tagName==="li"&&q.properties&&Array.isArray(q.properties.className)&&q.properties.className.includes("task-list-item")){E.className=["contains-task-list"];break}}let H={type:"element",tagName:v.ordered?"ol":"ul",properties:E,children:c.wrap(N,!0)};return c.patch(v,H),c.applyData(v,H)}function gS(c,v){let E={type:"element",tagName:"p",properties:{},children:c.all(v)};return c.patch(v,E),c.applyData(v,E)}function yS(c,v){let E={type:"root",children:c.wrap(c.all(v))};return c.patch(v,E),c.applyData(v,E)}function vS(c,v){let E={type:"element",tagName:"strong",properties:{},children:c.all(v)};return c.patch(v,E),c.applyData(v,E)}function bS(c,v){let E=c.all(v),N=E.shift(),D=[];if(N){let q={type:"element",tagName:"thead",properties:{},children:c.wrap([N],!0)};c.patch(v.children[0],q),D.push(q)}if(E.length>0){let q={type:"element",tagName:"tbody",properties:{},children:c.wrap(E,!0)},Y=Eo(v.children[1]),I=Vc(v.children[v.children.length-1]);if(Y&&I)q.position={start:Y,end:I};D.push(q)}let H={type:"element",tagName:"table",properties:{},children:c.wrap(D,!0)};return c.patch(v,H),c.applyData(v,H)}function xS(c,v,E){let N=E?E.children:void 0,H=(N?N.indexOf(v):1)===0?"th":"td",q=E&&E.type==="table"?E.align:void 0,Y=q?q.length:v.children.length,I=-1,Q=[];while(++I<Y){let ee=v.children[I],te={},ne=q?q[I]:void 0;if(ne)te.align=ne;let ie={type:"element",tagName:H,properties:te,children:[]};if(ee)ie.children=c.all(ee),c.patch(ee,ie),ie=c.applyData(ee,ie);Q.push(ie)}let F={type:"element",tagName:"tr",properties:{},children:c.wrap(Q,!0)};return c.patch(v,F),c.applyData(v,F)}function wS(c,v){let E={type:"element",tagName:"td",properties:{},children:c.all(v)};return c.patch(v,E),c.applyData(v,E)}function kS(c){let v=String(c),E=/\r?\n|\r/g,N=E.exec(v),D=0,H=[];while(N)H.push(SS(v.slice(D,N.index),D>0,!0),N[0]),D=N.index+N[0].length,N=E.exec(v);return H.push(SS(v.slice(D),D>0,!1)),H.join("")}function SS(c,v,E){let N=0,D=c.length;if(v){let H=c.codePointAt(N);while(H===9||H===32)N++,H=c.codePointAt(N)}if(E){let H=c.codePointAt(D-1);while(H===9||H===32)D--,H=c.codePointAt(D-1)}return D>N?c.slice(N,D):""}function ES(c,v){let E={type:"text",value:kS(String(v.value))};return c.patch(v,E),c.applyData(v,E)}function TS(c,v){let E={type:"element",tagName:"hr",properties:{},children:[]};return c.patch(v,E),c.applyData(v,E)}var CS={blockquote:eS,break:tS,code:nS,delete:rS,emphasis:aS,footnoteReference:iS,heading:oS,html:lS,imageReference:uS,image:sS,inlineCode:cS,linkReference:fS,link:dS,listItem:mS,list:hS,paragraph:gS,root:yS,strong:vS,table:bS,tableCell:wS,tableRow:xS,text:ES,thematicBreak:TS,toml:lf,yaml:lf,definition:lf,footnoteDefinition:lf};function lf(){return}var Oh={}.hasOwnProperty,U4={};function AS(c,v){let E=v||U4,N=new Map,D=new Map,H=new Map,q={...CS,...E.handlers},Y={all:Q,applyData:B4,definitionById:N,footnoteById:D,footnoteCounts:H,footnoteOrder:[],handlers:q,one:I,options:E,patch:H4,wrap:q4};return hi(c,function(F){if(F.type==="definition"||F.type==="footnoteDefinition"){let ee=F.type==="definition"?N:D,te=String(F.identifier).toUpperCase();if(!ee.has(te))ee.set(te,F)}}),Y;function I(F,ee){let te=F.type,ne=Y.handlers[te];if(Oh.call(Y.handlers,te)&&ne)return ne(Y,F,ee);if(Y.options.passThrough&&Y.options.passThrough.includes(te)){if("children"in F){let{children:ce,...me}=F,re=zo(me);return re.children=Y.all(F),re}return zo(F)}return(Y.options.unknownHandler||V4)(Y,F,ee)}function Q(F){let ee=[];if("children"in F){let te=F.children,ne=-1;while(++ne<te.length){let ie=Y.one(te[ne],F);if(ie){if(ne&&te[ne-1].type==="break"){if(!Array.isArray(ie)&&ie.type==="text")ie.value=NS(ie.value);if(!Array.isArray(ie)&&ie.type==="element"){let ce=ie.children[0];if(ce&&ce.type==="text")ce.value=NS(ce.value)}}if(Array.isArray(ie))ee.push(...ie);else ee.push(ie)}}}return ee}}function H4(c,v){if(c.position)v.position=ih(c)}function B4(c,v){let E=v;if(c&&c.data){let N=c.data.hName,D=c.data.hChildren,H=c.data.hProperties;if(typeof N==="string")if(E.type==="element")E.tagName=N;else{let q="children"in E?E.children:[E];E={type:"element",tagName:N,properties:{},children:q}}if(E.type==="element"&&H)Object.assign(E.properties,zo(H));if("children"in E&&E.children&&D!==null&&D!==void 0)E.children=D}return E}function V4(c,v){let E=v.data||{},N="value"in v&&!(Oh.call(E,"hProperties")||Oh.call(E,"hChildren"))?{type:"text",value:v.value}:{type:"element",tagName:"div",properties:{},children:c.all(v)};return c.patch(v,N),c.applyData(v,N)}function q4(c,v){let E=[],N=-1;if(v)E.push({type:"text",value:`
20
+ `});while(++N<c.length){if(N)E.push({type:"text",value:`
21
+ `});E.push(c[N])}if(v&&c.length>0)E.push({type:"text",value:`
22
+ `});return E}function NS(c){let v=0,E=c.charCodeAt(v);while(E===9||E===32)v++,E=c.charCodeAt(v);return c.slice(v)}function uf(c,v){let E=AS(c,v),N=E.one(c,void 0),D=Jw(E),H=Array.isArray(N)?{type:"root",children:N}:N||{type:"root",children:[]};if(D)ft("children"in H),H.children.push({type:"text",value:`
23
+ `},D);return H}function sf(c,v){if(c&&"run"in c)return async function(E,N){let D=uf(E,{file:N,...v});await c.run(D,N)};return function(E,N){return uf(E,{file:N,...c||v})}}function Mh(c){if(c)throw c}var df=Ig(HS(),1);function bu(c){if(typeof c!=="object"||c===null)return!1;let v=Object.getPrototypeOf(c);return(v===null||v===Object.prototype||Object.getPrototypeOf(v)===null)&&!(Symbol.toStringTag in c)&&!(Symbol.iterator in c)}function _h(){let c=[],v={run:E,use:N};return v;function E(...D){let H=-1,q=D.pop();if(typeof q!=="function")throw TypeError("Expected function as last argument, not "+q);Y(null,...D);function Y(I,...Q){let F=c[++H],ee=-1;if(I){q(I);return}while(++ee<D.length)if(Q[ee]===null||Q[ee]===void 0)Q[ee]=D[ee];if(D=Q,F)BS(F,Y)(...Q);else q(null,...Q)}}function N(D){if(typeof D!=="function")throw TypeError("Expected `middelware` to be a function, not "+D);return c.push(D),v}}function BS(c,v){let E;return N;function N(...q){let Y=c.length>q.length,I;if(Y)q.push(D);try{I=c.apply(this,q)}catch(Q){let F=Q;if(Y&&E)throw F;return D(F)}if(!Y)if(I&&I.then&&typeof I.then==="function")I.then(H,D);else if(I instanceof Error)D(I);else H(I)}function D(q,...Y){if(!E)E=!0,v(q,...Y)}function H(q){D(null,q)}}var Xn={basename:j4,dirname:Y4,extname:I4,join:G4,sep:"/"};function j4(c,v){if(v!==void 0&&typeof v!=="string")throw TypeError('"ext" argument must be a string');xu(c);let E=0,N=-1,D=c.length,H;if(v===void 0||v.length===0||v.length>c.length){while(D--)if(c.codePointAt(D)===47){if(H){E=D+1;break}}else if(N<0)H=!0,N=D+1;return N<0?"":c.slice(E,N)}if(v===c)return"";let q=-1,Y=v.length-1;while(D--)if(c.codePointAt(D)===47){if(H){E=D+1;break}}else{if(q<0)H=!0,q=D+1;if(Y>-1)if(c.codePointAt(D)===v.codePointAt(Y--)){if(Y<0)N=D}else Y=-1,N=q}if(E===N)N=q;else if(N<0)N=c.length;return c.slice(E,N)}function Y4(c){if(xu(c),c.length===0)return".";let v=-1,E=c.length,N;while(--E)if(c.codePointAt(E)===47){if(N){v=E;break}}else if(!N)N=!0;return v<0?c.codePointAt(0)===47?"/":".":v===1&&c.codePointAt(0)===47?"//":c.slice(0,v)}function I4(c){xu(c);let v=c.length,E=-1,N=0,D=-1,H=0,q;while(v--){let Y=c.codePointAt(v);if(Y===47){if(q){N=v+1;break}continue}if(E<0)q=!0,E=v+1;if(Y===46){if(D<0)D=v;else if(H!==1)H=1}else if(D>-1)H=-1}if(D<0||E<0||H===0||H===1&&D===E-1&&D===N+1)return"";return c.slice(D,E)}function G4(...c){let v=-1,E;while(++v<c.length)if(xu(c[v]),c[v])E=E===void 0?c[v]:E+"/"+c[v];return E===void 0?".":P4(E)}function P4(c){xu(c);let v=c.codePointAt(0)===47,E=Q4(c,!v);if(E.length===0&&!v)E=".";if(E.length>0&&c.codePointAt(c.length-1)===47)E+="/";return v?"/"+E:E}function Q4(c,v){let E="",N=0,D=-1,H=0,q=-1,Y,I;while(++q<=c.length){if(q<c.length)Y=c.codePointAt(q);else if(Y===47)break;else Y=47;if(Y===47){if(D===q-1||H===1);else if(D!==q-1&&H===2){if(E.length<2||N!==2||E.codePointAt(E.length-1)!==46||E.codePointAt(E.length-2)!==46){if(E.length>2){if(I=E.lastIndexOf("/"),I!==E.length-1){if(I<0)E="",N=0;else E=E.slice(0,I),N=E.length-1-E.lastIndexOf("/");D=q,H=0;continue}}else if(E.length>0){E="",N=0,D=q,H=0;continue}}if(v)E=E.length>0?E+"/..":"..",N=2}else{if(E.length>0)E+="/"+c.slice(D+1,q);else E=c.slice(D+1,q);N=q-D-1}D=q,H=0}else if(Y===46&&H>-1)H++;else H=-1}return E}function xu(c){if(typeof c!=="string")throw TypeError("Path must be a string. Received "+JSON.stringify(c))}var VS={cwd:X4};function X4(){return"/"}function Ro(c){return Boolean(c!==null&&typeof c==="object"&&"href"in c&&c.href&&"protocol"in c&&c.protocol&&c.auth===void 0)}function qS(c){if(typeof c==="string")c=new URL(c);else if(!Ro(c)){let v=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+c+"`");throw v.code="ERR_INVALID_ARG_TYPE",v}if(c.protocol!=="file:"){let v=TypeError("The URL must be of scheme file");throw v.code="ERR_INVALID_URL_SCHEME",v}return F4(c)}function F4(c){if(c.hostname!==""){let N=TypeError('File URL host must be "localhost" or empty on darwin');throw N.code="ERR_INVALID_FILE_URL_HOST",N}let v=c.pathname,E=-1;while(++E<v.length)if(v.codePointAt(E)===37&&v.codePointAt(E+1)===50){let N=v.codePointAt(E+2);if(N===70||N===102){let D=TypeError("File URL path must not include encoded / characters");throw D.code="ERR_INVALID_FILE_URL_PATH",D}}return decodeURIComponent(v)}var Dh=["history","path","basename","stem","extname","dirname"];class Oo{constructor(c){let v;if(!c)v={};else if(Ro(c))v={path:c};else if(typeof c==="string"||Z4(c))v={value:c};else v=c;this.cwd="cwd"in v?"":VS.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let E=-1;while(++E<Dh.length){let D=Dh[E];if(D in v&&v[D]!==void 0&&v[D]!==null)this[D]=D==="history"?[...v[D]]:v[D]}let N;for(N in v)if(!Dh.includes(N))this[N]=v[N]}get basename(){return typeof this.path==="string"?Xn.basename(this.path):void 0}set basename(c){Uh(c,"basename"),Lh(c,"basename"),this.path=Xn.join(this.dirname||"",c)}get dirname(){return typeof this.path==="string"?Xn.dirname(this.path):void 0}set dirname(c){jS(this.basename,"dirname"),this.path=Xn.join(c||"",this.basename)}get extname(){return typeof this.path==="string"?Xn.extname(this.path):void 0}set extname(c){if(Lh(c,"extname"),jS(this.dirname,"extname"),c){if(c.codePointAt(0)!==46)throw Error("`extname` must start with `.`");if(c.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=Xn.join(this.dirname,this.stem+(c||""))}get path(){return this.history[this.history.length-1]}set path(c){if(Ro(c))c=qS(c);if(Uh(c,"path"),this.path!==c)this.history.push(c)}get stem(){return typeof this.path==="string"?Xn.basename(this.path,this.extname):void 0}set stem(c){Uh(c,"stem"),Lh(c,"stem"),this.path=Xn.join(this.dirname||"",c+(this.extname||""))}fail(c,v,E){let N=this.message(c,v,E);throw N.fatal=!0,N}info(c,v,E){let N=this.message(c,v,E);return N.fatal=void 0,N}message(c,v,E){let N=new Tt(c,v,E);if(this.path)N.name=this.path+":"+N.name,N.file=this.path;return N.fatal=!1,this.messages.push(N),N}toString(c){if(this.value===void 0)return"";if(typeof this.value==="string")return this.value;return new TextDecoder(c||void 0).decode(this.value)}}function Lh(c,v){if(c&&c.includes(Xn.sep))throw Error("`"+v+"` cannot be a path: did not expect `"+Xn.sep+"`")}function Uh(c,v){if(!c)throw Error("`"+v+"` cannot be empty")}function jS(c,v){if(!c)throw Error("Setting `"+v+"` requires `path` to be set too")}function Z4(c){return Boolean(c&&typeof c==="object"&&"byteLength"in c&&"byteOffset"in c)}var YS=function(c){let N=this.constructor.prototype,D=N[c],H=function(){return D.apply(H,arguments)};return Object.setPrototypeOf(H,N),H};var K4={}.hasOwnProperty;class qh extends YS{constructor(){super("copy");this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=_h()}copy(){let c=new qh,v=-1;while(++v<this.attachers.length){let E=this.attachers[v];c.use(...E)}return c.data(df.default(!0,{},this.namespace)),c}data(c,v){if(typeof c==="string"){if(arguments.length===2)return Vh("data",this.frozen),this.namespace[c]=v,this;return K4.call(this.namespace,c)&&this.namespace[c]||void 0}if(c)return Vh("data",this.frozen),this.namespace=c,this;return this.namespace}freeze(){if(this.frozen)return this;let c=this;while(++this.freezeIndex<this.attachers.length){let[v,...E]=this.attachers[this.freezeIndex];if(E[0]===!1)continue;if(E[0]===!0)E[0]=void 0;let N=v.call(c,...E);if(typeof N==="function")this.transformers.use(N)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(c){this.freeze();let v=ff(c),E=this.parser||this.Parser;return Hh("parse",E),E(String(v),v)}process(c,v){let E=this;return this.freeze(),Hh("process",this.parser||this.Parser),Bh("process",this.compiler||this.Compiler),v?N(void 0,v):new Promise(N);function N(D,H){let q=ff(c),Y=E.parse(q);E.run(Y,q,function(Q,F,ee){if(Q||!F||!ee)return I(Q);let te=F,ne=E.stringify(te,ee);if(W4(ne))ee.value=ne;else ee.result=ne;I(Q,ee)});function I(Q,F){if(Q||!F)H(Q);else if(D)D(F);else ft(v,"`done` is defined if `resolve` is not"),v(void 0,F)}}}processSync(c){let v=!1,E;return this.freeze(),Hh("processSync",this.parser||this.Parser),Bh("processSync",this.compiler||this.Compiler),this.process(c,N),GS("processSync","process",v),ft(E,"we either bailed on an error or have a tree"),E;function N(D,H){v=!0,Mh(D),E=H}}run(c,v,E){IS(c),this.freeze();let N=this.transformers;if(!E&&typeof v==="function")E=v,v=void 0;return E?D(void 0,E):new Promise(D);function D(H,q){ft(typeof v!=="function","`file` can’t be a `done` anymore, we checked");let Y=ff(v);N.run(c,Y,I);function I(Q,F,ee){let te=F||c;if(Q)q(Q);else if(H)H(te);else ft(E,"`done` is defined if `resolve` is not"),E(void 0,te,ee)}}}runSync(c,v){let E=!1,N;return this.run(c,v,D),GS("runSync","run",E),ft(N,"we either bailed on an error or have a tree"),N;function D(H,q){Mh(H),N=q,E=!0}}stringify(c,v){this.freeze();let E=ff(v),N=this.compiler||this.Compiler;return Bh("stringify",N),IS(c),N(c,E)}use(c,...v){let E=this.attachers,N=this.namespace;if(Vh("use",this.frozen),c===null||c===void 0);else if(typeof c==="function")Y(c,v);else if(typeof c==="object")if(Array.isArray(c))q(c);else H(c);else throw TypeError("Expected usable value, not `"+c+"`");return this;function D(I){if(typeof I==="function")Y(I,[]);else if(typeof I==="object")if(Array.isArray(I)){let[Q,...F]=I;Y(Q,F)}else H(I);else throw TypeError("Expected usable value, not `"+I+"`")}function H(I){if(!("plugins"in I)&&!("settings"in I))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");if(q(I.plugins),I.settings)N.settings=df.default(!0,N.settings,I.settings)}function q(I){let Q=-1;if(I===null||I===void 0);else if(Array.isArray(I))while(++Q<I.length){let F=I[Q];D(F)}else throw TypeError("Expected a list of plugins, not `"+I+"`")}function Y(I,Q){let F=-1,ee=-1;while(++F<E.length)if(E[F][0]===I){ee=F;break}if(ee===-1)E.push([I,...Q]);else if(Q.length>0){let[te,...ne]=Q,ie=E[ee][1];if(bu(ie)&&bu(te))te=df.default(!0,ie,te);E[ee]=[I,te,...ne]}}}}var jh=new qh().freeze();function Hh(c,v){if(typeof v!=="function")throw TypeError("Cannot `"+c+"` without `parser`")}function Bh(c,v){if(typeof v!=="function")throw TypeError("Cannot `"+c+"` without `compiler`")}function Vh(c,v){if(v)throw Error("Cannot call `"+c+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function IS(c){if(!bu(c)||typeof c.type!=="string")throw TypeError("Expected node, got `"+c+"`")}function GS(c,v,E){if(!E)throw Error("`"+c+"` finished async. Use `"+v+"` instead")}function ff(c){return J4(c)?c:new Oo(c)}function J4(c){return Boolean(c&&typeof c==="object"&&"message"in c&&"messages"in c)}function W4(c){return typeof c==="string"||$4(c)}function $4(c){return Boolean(c&&typeof c==="object"&&"byteLength"in c&&"byteOffset"in c)}var ez="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",PS=[],QS={allowDangerousHtml:!0},tz=/^(https?|ircs?|mailto|xmpp)$/i,nz=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function W(c){let v=rz(c),E=az(c);return iz(v.runSync(v.parse(E),E),c)}function rz(c){let v=c.rehypePlugins||PS,E=c.remarkPlugins||PS,N=c.remarkRehypeOptions?{...c.remarkRehypeOptions,...QS}:QS;return jh().use(Jc).use(E).use(sf,N).use(v)}function az(c){let v=c.children||"",E=new Oo;if(typeof v==="string")E.value=v;else _c("Unexpected value `"+v+"` for `children` prop, expected `string`");return E}function iz(c,v){let{allowedElements:E,allowElement:N,components:D,disallowedElements:H,skipHtml:q,unwrapDisallowed:Y}=v,I=v.urlTransform||mf;for(let F of nz)if(Object.hasOwn(v,F.from))_c("Unexpected `"+F.from+"` prop, "+(F.to?"use `"+F.to+"` instead":"remove it")+" (see <"+ez+"#"+F.id+"> for more info)");if(E&&H)_c("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other");return hi(c,Q),uh(c,{Fragment:h,components:D,ignoreInvalidStyle:!0,jsx:e,jsxs:n,passKeys:!0,passNode:!0});function Q(F,ee,te){if(F.type==="raw"&&te&&typeof ee==="number"){if(q)te.children.splice(ee,1);else te.children[ee]={type:"text",value:F.value};return ee}if(F.type==="element"){let ne;for(ne in ou)if(Object.hasOwn(ou,ne)&&Object.hasOwn(F.properties,ne)){let ie=F.properties[ne],ce=ou[ne];if(ce===null||ce.includes(F.tagName))F.properties[ne]=I(String(ie||""),ne,F)}}if(F.type==="element"){let ne=E?!E.includes(F.tagName):H?H.includes(F.tagName):!1;if(!ne&&N&&typeof ee==="number")ne=!N(F,ee,te);if(ne&&te&&typeof ee==="number"){if(Y&&F.children)te.children.splice(ee,1,...F.children);else te.children.splice(ee,1);return ee}}}}function mf(c){let v=c.indexOf(":"),E=c.indexOf("?"),N=c.indexOf("#"),D=c.indexOf("/");if(v===-1||D!==-1&&v>D||E!==-1&&v>E||N!==-1&&v>N||tz.test(c.slice(0,v)))return c;return""}function Yh(c,v){let E=String(c);if(typeof v!=="string")throw TypeError("Expected character");let N=0,D=E.indexOf(v);while(D!==-1)N++,D=E.indexOf(v,D+v.length);return N}function Ih(c){if(typeof c!=="string")throw TypeError("Expected a string");return c.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Gh(c,v,E){let D=Sa((E||{}).ignore||[]),H=oz(v),q=-1;while(++q<H.length)vu(c,"text",Y);function Y(Q,F){let ee=-1,te;while(++ee<F.length){let ne=F[ee],ie=te?te.children:void 0;if(D(ne,ie?ie.indexOf(ne):void 0,te))return;te=ne}if(te)return I(Q,F)}function I(Q,F){let ee=F[F.length-1],te=H[q][0],ne=H[q][1],ie=0,me=ee.children.indexOf(Q),re=!1,oe=[];te.lastIndex=0;let le=te.exec(Q.value);while(le){let pe=le.index,ye={index:le.index,input:le.input,stack:[...F,Q]},he=ne(...le,ye);if(typeof he==="string")he=he.length>0?{type:"text",value:he}:void 0;if(he===!1)te.lastIndex=pe+1;else{if(ie!==pe)oe.push({type:"text",value:Q.value.slice(ie,pe)});if(Array.isArray(he))oe.push(...he);else if(he)oe.push(he);ie=pe+le[0].length,re=!0}if(!te.global)break;le=te.exec(Q.value)}if(re){if(ie<Q.value.length)oe.push({type:"text",value:Q.value.slice(ie)});ee.children.splice(me,1,...oe)}else oe=[Q];return me+oe.length}}function oz(c){let v=[];if(!Array.isArray(c))throw TypeError("Expected find and replace tuple or list of tuples");let E=!c[0]||Array.isArray(c[0])?c:[c],N=-1;while(++N<E.length){let D=E[N];v.push([lz(D[0]),uz(D[1])])}return v}function lz(c){return typeof c==="string"?new RegExp(Ih(c),"g"):c}function uz(c){return typeof c==="function"?c:function(){return c}}var Ph="phrasing",Qh=["autolink","link","image","label"];function Fh(){return{transforms:[pz],enter:{literalAutolink:sz,literalAutolinkEmail:Xh,literalAutolinkHttp:Xh,literalAutolinkWww:Xh},exit:{literalAutolink:mz,literalAutolinkEmail:dz,literalAutolinkHttp:cz,literalAutolinkWww:fz}}}function Zh(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ph,notInConstruct:Qh},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ph,notInConstruct:Qh},{character:":",before:"[ps]",after:"\\/",inConstruct:Ph,notInConstruct:Qh}]}}function sz(c){this.enter({type:"link",title:null,url:"",children:[]},c)}function Xh(c){this.config.enter.autolinkProtocol.call(this,c)}function cz(c){this.config.exit.autolinkProtocol.call(this,c)}function fz(c){this.config.exit.data.call(this,c);let v=this.stack[this.stack.length-1];ft(v.type==="link"),v.url="http://"+this.sliceSerialize(c)}function dz(c){this.config.exit.autolinkEmail.call(this,c)}function mz(c){this.exit(c)}function pz(c){Gh(c,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,hz],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,gz]],{ignore:["link","linkReference"]})}function hz(c,v,E,N,D){let H="";if(!XS(D))return!1;if(/^w/i.test(v))E=v+E,v="",H="http://";if(!yz(E))return!1;let q=vz(E+N);if(!q[0])return!1;let Y={type:"link",title:null,url:H+v+q[0],children:[{type:"text",value:v+q[0]}]};if(q[1])return[Y,{type:"text",value:q[1]}];return Y}function gz(c,v,E,N){if(!XS(N,!0)||/[-\d_]$/.test(E))return!1;return{type:"link",title:null,url:"mailto:"+v+"@"+E,children:[{type:"text",value:v+"@"+E}]}}function yz(c){let v=c.split(".");if(v.length<2||v[v.length-1]&&(/_/.test(v[v.length-1])||!/[a-zA-Z\d]/.test(v[v.length-1]))||v[v.length-2]&&(/_/.test(v[v.length-2])||!/[a-zA-Z\d]/.test(v[v.length-2])))return!1;return!0}function vz(c){let v=/[!"&'),.:;<>?\]}]+$/.exec(c);if(!v)return[c,void 0];c=c.slice(0,v.index);let E=v[0],N=E.indexOf(")"),D=Yh(c,"("),H=Yh(c,")");while(N!==-1&&D>H)c+=E.slice(0,N+1),E=E.slice(N+1),N=E.indexOf(")"),H++;return[c,E]}function XS(c,v){let E=c.input.charCodeAt(c.index-1);return(c.index===0||sr(E)||ui(E))&&(!v||E!==47)}FS.peek=Nz;function bz(){this.buffer()}function xz(c){this.enter({type:"footnoteReference",identifier:"",label:""},c)}function wz(){this.buffer()}function Sz(c){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},c)}function kz(c){let v=this.resume(),E=this.stack[this.stack.length-1];ft(E.type==="footnoteReference"),E.identifier=Qt(this.sliceSerialize(c)).toLowerCase(),E.label=v}function Ez(c){this.exit(c)}function Tz(c){let v=this.resume(),E=this.stack[this.stack.length-1];ft(E.type==="footnoteDefinition"),E.identifier=Qt(this.sliceSerialize(c)).toLowerCase(),E.label=v}function Cz(c){this.exit(c)}function Nz(){return"["}function FS(c,v,E,N){let D=E.createTracker(N),H=D.move("[^"),q=E.enter("footnoteReference"),Y=E.enter("reference");return H+=D.move(E.safe(E.associationId(c),{after:"]",before:H})),Y(),q(),H+=D.move("]"),H}function Kh(){return{enter:{gfmFootnoteCallString:bz,gfmFootnoteCall:xz,gfmFootnoteDefinitionLabelString:wz,gfmFootnoteDefinition:Sz},exit:{gfmFootnoteCallString:kz,gfmFootnoteCall:Ez,gfmFootnoteDefinitionLabelString:Tz,gfmFootnoteDefinition:Cz}}}function Jh(c){let v=!1;if(c&&c.firstLineBlank)v=!0;return{handlers:{footnoteDefinition:E,footnoteReference:FS},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function E(N,D,H,q){let Y=H.createTracker(q),I=Y.move("[^"),Q=H.enter("footnoteDefinition"),F=H.enter("label");if(I+=Y.move(H.safe(H.associationId(N),{before:I,after:"]"})),F(),I+=Y.move("]:"),N.children&&N.children.length>0)Y.shift(4),I+=Y.move((v?`
24
+ `:" ")+H.indentLines(H.containerFlow(N,Y.current()),v?ZS:Az));return Q(),I}}function Az(c,v,E){return v===0?c:ZS(c,v,E)}function ZS(c,v,E){return(E?"":" ")+c}var zz=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];eg.attention=Mz;eg.peek=_z;function Wh(){return{canContainEols:["delete"],enter:{strikethrough:Rz},exit:{strikethrough:Oz}}}function $h(){return{handlers:{delete:eg},unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:zz}]}}function Rz(c){this.enter({type:"delete",children:[],position:void 0},c)}function Oz(c){this.exit(c)}function eg(c,v,E,N){let D=E.createTracker(N),H=E.stack.includes("strikethrough")?"~":"~~",q=E.enter("strikethrough"),Y=D.move(H);return Y+=E.containerPhrasing(c,{...D.current(),before:Y,after:"~"}),Y+=D.move(H),q(),Y}function Mz(){return{construct:"strikethrough",markers:["~"],sizes:[2,1]}}function _z(){return"~"}function Dz(c){return c.length}function JS(c,v){let E=v||{},N=(E.align||[]).concat(),D=E.stringLength||Dz,H=[],q=[],Y=[],I=[],Q=0,F=-1;while(++F<c.length){let ce=[],me=[],re=-1;if(c[F].length>Q)Q=c[F].length;while(++re<c[F].length){let oe=Lz(c[F][re]);if(E.alignDelimiters!==!1){let le=D(oe);if(me[re]=le,I[re]===void 0||le>I[re])I[re]=le}ce.push(oe)}q[F]=ce,Y[F]=me}let ee=-1;if(typeof N==="object"&&"length"in N)while(++ee<Q)H[ee]=KS(N[ee]);else{let ce=KS(N);while(++ee<Q)H[ee]=ce}ee=-1;let te=[],ne=[];while(++ee<Q){let ce=H[ee],me="",re="";if(ce===99)me=":",re=":";else if(ce===108)me=":";else if(ce===114)re=":";let oe=E.alignDelimiters===!1?1:Math.max(1,I[ee]-me.length-re.length),le=me+"-".repeat(oe)+re;if(E.alignDelimiters!==!1){if(oe=me.length+oe+re.length,oe>I[ee])I[ee]=oe;ne[ee]=oe}te[ee]=le}q.splice(1,0,te),Y.splice(1,0,ne),F=-1;let ie=[];while(++F<q.length){let ce=q[F],me=Y[F];ee=-1;let re=[];while(++ee<Q){let oe=ce[ee]||"",le="",pe="";if(E.alignDelimiters!==!1){let ye=I[ee]-(me[ee]||0),he=H[ee];if(he===114)le=" ".repeat(ye);else if(he===99)if(ye%2)le=" ".repeat(ye/2+0.5),pe=" ".repeat(ye/2-0.5);else le=" ".repeat(ye/2),pe=le;else pe=" ".repeat(ye)}if(E.delimiterStart!==!1&&!ee)re.push("|");if(E.padding!==!1&&!(E.alignDelimiters===!1&&oe==="")&&(E.delimiterStart!==!1||ee))re.push(" ");if(E.alignDelimiters!==!1)re.push(le);if(re.push(oe),E.alignDelimiters!==!1)re.push(pe);if(E.padding!==!1)re.push(" ");if(E.delimiterEnd!==!1||ee!==Q-1)re.push("|")}ie.push(E.delimiterEnd===!1?re.join("").replace(/ +$/,""):re.join(""))}return ie.join(`
25
+ `)}function Lz(c){return c===null||c===void 0?"":String(c)}function KS(c){let v=typeof c==="string"?c.codePointAt(0):0;return v===67||v===99?99:v===76||v===108?108:v===82||v===114?114:0}function WS(c,v,E,N){let D=E.enter("blockquote"),H=E.createTracker(N);H.move("> "),H.shift(2);let q=E.indentLines(E.containerFlow(c,H.current()),Uz);return D(),q}function Uz(c,v,E){return">"+(E?"":" ")+c}function ek(c,v){return $S(c,v.inConstruct,!0)&&!$S(c,v.notInConstruct,!1)}function $S(c,v,E){if(typeof v==="string")v=[v];if(!v||v.length===0)return E;let N=-1;while(++N<v.length)if(c.includes(v[N]))return!0;return!1}function tg(c,v,E,N){let D=-1;while(++D<E.unsafe.length){let H=E.unsafe[D];if(H.character===`
26
+ `&&!H.before&&!H.after&&ek(E.stack,H))return/[\t ]/.test(N.before)?"":" "}return"\\\n"}function tk(c,v){let E=String(c),N=E.indexOf(v),D=N,H=0,q=0;if(typeof v!=="string")throw TypeError("Expected substring");while(N!==-1){if(N===D){if(++H>q)q=H}else H=1;D=N+v.length,N=E.indexOf(v,D)}return q}function nk(c,v){return Boolean(v.options.fences===!1&&c.value&&!c.lang&&/[^\n\r ]/.test(c.value)&&!/^[\t ]*(?:[\n\r]|$)|(?:^|[\n\r])[\t ]*$/.test(c.value))}function rk(c){let v=c.options.fence||"`";if(v!=="`"&&v!=="~")throw Error("Cannot serialize code with `"+v+"` for `options.fence`, expected `` ` `` or `~`");return v}function ak(c,v,E,N){let D=rk(E),H=c.value||"";if(nk(c,E)){let ee=E.enter("codeIndented"),te=E.indentLines(H,Hz);return ee(),te}let q=E.createTracker(N),Y=D.repeat(Math.max(tk(H,D)+1,3)),I=E.enter("codeFenced"),Q=D==="`"?"GraveAccent":"Tilde",F=q.move(Y);if(c.lang){let ee=E.enter(`codeFencedLang${Q}`);F+=q.move(E.safe(c.lang,{before:F,after:" ",encode:["`"],...q.current()})),ee()}if(c.lang&&c.meta){let ee=E.enter(`codeFencedMeta${Q}`);F+=q.move(" "),F+=q.move(E.safe(c.meta,{before:F,after:`
27
+ `,encode:["`"],...q.current()})),ee()}if(F+=q.move(`
28
+ `),H)F+=q.move(H+`
29
+ `);return F+=q.move(Y),I(),F}function Hz(c,v,E){return(E?"":" ")+c}function Mo(c){let v=c.options.quote||'"';if(v!=='"'&&v!=="'")throw Error("Cannot serialize title with `"+v+"` for `options.quote`, expected `\"`, or `'`");return v}function ik(c,v,E,N){let D=Mo(E),H=D==='"'?"Quote":"Apostrophe",q=E.enter("definition"),Y=E.enter("label"),I=E.createTracker(N),Q=I.move("[");if(Q+=I.move(E.safe(E.associationId(c),{before:Q,after:"]",...I.current()})),Q+=I.move("]: "),Y(),!c.url||/[\0- \u007F]/.test(c.url))Y=E.enter("destinationLiteral"),Q+=I.move("<"),Q+=I.move(E.safe(c.url,{before:Q,after:">",...I.current()})),Q+=I.move(">");else Y=E.enter("destinationRaw"),Q+=I.move(E.safe(c.url,{before:Q,after:c.title?" ":`
30
+ `,...I.current()}));if(Y(),c.title)Y=E.enter(`title${H}`),Q+=I.move(" "+D),Q+=I.move(E.safe(c.title,{before:Q,after:D,...I.current()})),Q+=I.move(D),Y();return q(),Q}function ok(c){let v=c.options.emphasis||"*";if(v!=="*"&&v!=="_")throw Error("Cannot serialize emphasis with `"+v+"` for `options.emphasis`, expected `*`, or `_`");return v}pf.attention=Bz;pf.peek=Vz;function pf(c,v,E,N){let D=E.enter("phrasing"),H=E.containerPhrasing({type:"root",children:[c]},N);return D(),H}function Bz(c,v){return{construct:"emphasis",markers:ok(v)==="*"?["*","_"]:["_","*"],sizes:[1]}}function Vz(c,v,E){return E.options.emphasis||"*"}function lk(c){return"&#x"+c.toString(16).toUpperCase()+";"}function uk(c,v){let E=!1;return hi(c,function(N){if("value"in N&&/\r?\n|\r/.test(N.value)||N.type==="break")return E=!0,pi}),Boolean((!c.depth||c.depth<3)&&oi(c)&&(v.options.setext||E))}function sk(c,v,E,N){let D=Math.max(Math.min(6,c.depth||1),1),H=E.createTracker(N);if(uk(c,E)){let ee=E.enter("headingSetext"),te=E.enter("phrasing"),ne=E.containerPhrasing(c,{...H.current(),before:`
31
+ `,after:`
32
+ `});return te(),ee(),ne+`
33
+ `+(D===1?"=":"-").repeat(ne.length-(Math.max(ne.lastIndexOf("\r"),ne.lastIndexOf(`
34
+ `))+1))}let q="#".repeat(D),Y=E.enter("headingAtx"),I=E.enter("phrasing");H.move(q+" ");let Q=E.containerPhrasing(c,{before:"# ",after:`
35
+ `,...H.current()}),F=Q.charCodeAt(0);if(F===9||F===32)Q=lk(F)+Q.slice(1);if(Q=Q?q+" "+Q:q,E.options.closeAtx)Q+=" "+q;return I(),Y(),Q}ng.peek=qz;function ng(c){return c.value||""}function qz(){return"<"}rg.peek=jz;function rg(c,v,E,N){let D=Mo(E),H=D==='"'?"Quote":"Apostrophe",q=E.enter("image"),Y=E.enter("label"),I=E.createTracker(N),Q=I.move("![");if(Q+=I.move(E.safe(c.alt,{before:Q,after:"]",...I.current()})),Q+=I.move("]("),Y(),!c.url&&c.title||/[\0- \u007F]/.test(c.url))Y=E.enter("destinationLiteral"),Q+=I.move("<"),Q+=I.move(E.safe(c.url,{before:Q,after:">",...I.current()})),Q+=I.move(">");else Y=E.enter("destinationRaw"),Q+=I.move(E.safe(c.url,{before:Q,after:c.title?" ":")",...I.current()}));if(Y(),c.title)Y=E.enter(`title${H}`),Q+=I.move(" "+D),Q+=I.move(E.safe(c.title,{before:Q,after:D,...I.current()})),Q+=I.move(D),Y();return Q+=I.move(")"),q(),Q}function jz(){return"!"}ag.peek=Yz;function ag(c,v,E,N){let D=c.referenceType,H=E.enter("imageReference"),q=E.enter("label"),Y=E.createTracker(N),I=Y.move("!["),Q=E.safe(c.alt,{before:I,after:"]",...Y.current()});I+=Y.move(Q+"]["),q();let F=E.stack;E.stack=F.filter(function(te){return te!=="phrasing"}),q=E.enter("reference");let ee=E.safe(E.associationId(c),{before:I,after:"]",...Y.current()});if(q(),E.stack=F,H(),D==="full"||!Q||Q!==ee)I+=Y.move(ee+"]");else if(D==="shortcut")I=I.slice(0,-1);else I+=Y.move("]");return I}function Yz(){return"!"}ig.peek=Iz;function ig(c,v,E){let N=c.value||"",D="`",H=-1;while(new RegExp("(^|[^`])"+D+"([^`]|$)").test(N))D+="`";if(/[^\n\r ]/.test(N)&&(/^[\n\r ]/.test(N)&&/[\n\r ]$/.test(N)||/^`|`$/.test(N)))N=" "+N+" ";while(++H<E.unsafe.length){let q=E.unsafe[H],Y=E.compilePattern(q);if(!q.atBreak)continue;let I;while(I=Y.exec(N)){let Q=I.index;if(N.charCodeAt(Q)===10&&N.charCodeAt(Q-1)===13)Q--;N=N.slice(0,Q)+" "+N.slice(I.index+1)}}return D+N+D}function Iz(){return"`"}function og(c,v){let E=oi(c);return Boolean(!v.options.resourceLink&&c.url&&!c.title&&c.children&&c.children.length===1&&c.children[0].type==="text"&&(E===c.url||"mailto:"+E===c.url)&&/^[a-z][+\-.a-z]+:/i.test(c.url)&&!/[\0- <>\u007F]/.test(c.url))}lg.peek=Gz;function lg(c,v,E,N){let D=Mo(E),H=D==='"'?"Quote":"Apostrophe",q=E.createTracker(N);if(og(c,E)){let F=E.stack;E.stack=F.filter(function(ne){return ne!=="phrasing"});let ee=E.enter("autolink"),te=q.move("<");return te+=q.move(E.containerPhrasing(c,{before:te,after:">",...q.current()})),te+=q.move(">"),ee(),E.stack=F,te}let Y=E.enter("link"),I=E.enter("label"),Q=q.move("[");if(Q+=q.move(E.containerPhrasing(c,{before:Q,after:"](",...q.current()})),Q+=q.move("]("),I(),!c.url&&c.title||/[\0- \u007F]/.test(c.url))I=E.enter("destinationLiteral"),Q+=q.move("<"),Q+=q.move(E.safe(c.url,{before:Q,after:">",...q.current()})),Q+=q.move(">");else I=E.enter("destinationRaw"),Q+=q.move(E.safe(c.url,{before:Q,after:c.title?" ":")",...q.current()}));if(I(),c.title)I=E.enter(`title${H}`),Q+=q.move(" "+D),Q+=q.move(E.safe(c.title,{before:Q,after:D,...q.current()})),Q+=q.move(D),I();return Q+=q.move(")"),Y(),Q}function Gz(c,v,E){return og(c,E)?"<":"["}ug.peek=Pz;function ug(c,v,E,N){let D=c.referenceType,H=E.enter("linkReference"),q=E.enter("label"),Y=E.createTracker(N),I=Y.move("["),Q=E.containerPhrasing(c,{before:I,after:"]",...Y.current()});I+=Y.move(Q+"]["),q();let F=E.stack;E.stack=F.filter(function(te){return te!=="phrasing"}),q=E.enter("reference");let ee=E.safe(E.associationId(c),{before:I,after:"]",...Y.current()});if(q(),E.stack=F,H(),D==="full"||!Q||Q!==ee)I+=Y.move(ee+"]");else if(D==="shortcut")I=I.slice(0,-1);else I+=Y.move("]");return I}function Pz(){return"["}function _o(c){let v=c.options.bullet||"*";if(v!=="*"&&v!=="+"&&v!=="-")throw Error("Cannot serialize items with `"+v+"` for `options.bullet`, expected `*`, `+`, or `-`");return v}function ck(c){let v=_o(c),E=c.options.bulletOther;if(!E)return v==="*"?"-":"*";if(E!=="*"&&E!=="+"&&E!=="-")throw Error("Cannot serialize items with `"+E+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(E===v)throw Error("Expected `bullet` (`"+v+"`) and `bulletOther` (`"+E+"`) to be different");return E}function fk(c){let v=c.options.bulletOrdered||".";if(v!=="."&&v!==")")throw Error("Cannot serialize items with `"+v+"` for `options.bulletOrdered`, expected `.` or `)`");return v}function hf(c){let v=c.options.rule||"*";if(v!=="*"&&v!=="-"&&v!=="_")throw Error("Cannot serialize rules with `"+v+"` for `options.rule`, expected `*`, `-`, or `_`");return v}function dk(c,v,E,N){let D=E.enter("list"),H=E.bulletCurrent,q=c.ordered?fk(E):_o(E),Y=c.ordered?q==="."?")":".":ck(E),I=v&&E.bulletLastUsed?q===E.bulletLastUsed:!1;if(!c.ordered){let F=c.children?c.children[0]:void 0;if((q==="*"||q==="-")&&F&&(!F.children||!F.children[0])&&E.stack[E.stack.length-1]==="list"&&E.stack[E.stack.length-2]==="listItem"&&E.stack[E.stack.length-3]==="list"&&E.stack[E.stack.length-4]==="listItem"&&E.indexStack[E.indexStack.length-1]===0&&E.indexStack[E.indexStack.length-2]===0&&E.indexStack[E.indexStack.length-3]===0)I=!0;if(hf(E)===q&&F){let ee=-1;while(++ee<c.children.length){let te=c.children[ee];if(te&&te.type==="listItem"&&te.children&&te.children[0]&&te.children[0].type==="thematicBreak"){I=!0;break}}}}if(I)q=Y;E.bulletCurrent=q;let Q=E.containerFlow(c,N);return E.bulletLastUsed=q,E.bulletCurrent=H,D(),Q}function mk(c){let v=c.options.listItemIndent||"one";if(v!=="tab"&&v!=="one"&&v!=="mixed")throw Error("Cannot serialize items with `"+v+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return v}function pk(c,v,E,N){let D=mk(E),H=E.bulletCurrent||_o(E);if(v&&v.type==="list"&&v.ordered)H=(typeof v.start==="number"&&v.start>-1?v.start:1)+(E.options.incrementListMarker===!1?0:v.children.indexOf(c))+H;let q=H.length+1;if(D==="tab"||D==="mixed"&&(v&&v.type==="list"&&v.spread||c.spread))q=Math.ceil(q/4)*4;let Y=E.createTracker(N);Y.move(H+" ".repeat(q-H.length)),Y.shift(q);let I=E.enter("listItem"),Q=E.indentLines(E.containerFlow(c,Y.current()),F);return I(),Q;function F(ee,te,ne){if(te)return(ne?"":" ".repeat(q))+ee;return(ne?H:H+" ".repeat(q-H.length))+ee}}function hk(c,v,E,N){let D=E.enter("paragraph"),H=E.enter("phrasing"),q=E.containerPhrasing(c,N);return H(),D(),q}var sg=Sa(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function gk(c,v,E,N){if(!c.children.some(function(Y){return sg(Y)}))return E.containerFlow(c,N);let H=E.enter("phrasing"),q=E.containerPhrasing(c,N);return H(),q}function yk(c){let v=c.options.strong||"*";if(v!=="*"&&v!=="_")throw Error("Cannot serialize strong with `"+v+"` for `options.strong`, expected `*`, or `_`");return v}gf.attention=Qz;gf.peek=Xz;function gf(c,v,E,N){let D=E.enter("phrasing"),H=E.containerPhrasing({type:"root",children:[c]},N);return D(),H}function Qz(c,v){return{construct:"strong",markers:yk(v)==="*"?["*","_"]:["_","*"],sizes:[2]}}function Xz(c,v,E){return E.options.strong||"*"}function vk(c,v,E,N){return E.safe(c.value,N)}function bk(c){let v=c.options.ruleRepetition||3;if(v<3)throw Error("Cannot serialize rules with repetition `"+v+"` for `options.ruleRepetition`, expected `3` or more");return v}function xk(c,v,E){let N=(hf(E)+(E.options.ruleSpaces?" ":"")).repeat(bk(E));return E.options.ruleSpaces?N.slice(0,-1):N}var wu={blockquote:WS,break:tg,code:ak,definition:ik,emphasis:pf,hardBreak:tg,heading:sk,html:ng,image:rg,imageReference:ag,inlineCode:ig,link:lg,linkReference:ug,list:dk,listItem:pk,paragraph:hk,root:gk,strong:gf,text:vk,thematicBreak:xk};function fg(){return{enter:{table:Fz,tableData:wk,tableHeader:wk,tableRow:Kz},exit:{codeText:Jz,table:Zz,tableData:cg,tableHeader:cg,tableRow:cg}}}function Fz(c){let v=c._align;ft(v,"expected `_align` on table"),this.enter({type:"table",align:v.map(function(E){return E==="none"?null:E}),children:[]},c),this.data.inTable=!0}function Zz(c){this.exit(c),this.data.inTable=void 0}function Kz(c){this.enter({type:"tableRow",children:[]},c)}function cg(c){this.exit(c)}function wk(c){this.enter({type:"tableCell",children:[]},c)}function Jz(c){let v=this.resume();if(this.data.inTable)v=v.replace(/\\([\\|])/g,Wz);let E=this.stack[this.stack.length-1];ft(E.type==="inlineCode"),E.value=v,this.exit(c)}function Wz(c,v){return v==="|"?v:c}function dg(c){let v=c||{},{tableCellPadding:E,tablePipeAlign:N,stringLength:D}=v,H=E?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
36
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:te,table:q,tableCell:I,tableRow:Y}};function q(ne,ie,ce,me){return Q(F(ne,ce,me),ne.align)}function Y(ne,ie,ce,me){let re=ee(ne,ce,me),oe=Q([re]);return oe.slice(0,oe.indexOf(`
37
+ `))}function I(ne,ie,ce,me){let re=ce.enter("tableCell"),oe=ce.enter("phrasing"),le=ce.containerPhrasing(ne,{...me,before:H,after:H});return oe(),re(),le}function Q(ne,ie){return JS(ne,{align:ie,alignDelimiters:N,padding:E,stringLength:D})}function F(ne,ie,ce){let me=ne.children,re=-1,oe=[],le=ie.enter("table");while(++re<me.length)oe[re]=ee(me[re],ie,ce);return le(),oe}function ee(ne,ie,ce){let me=ne.children,re=-1,oe=[],le=ie.enter("tableRow");while(++re<me.length)oe[re]=I(me[re],ne,ie,ce);return le(),oe}function te(ne,ie,ce){let me=wu.inlineCode(ne,ie,ce);if(ce.stack.includes("tableCell"))me=me.replace(/\|/g,"\\$&");return me}}function mg(){return{exit:{taskListCheckValueChecked:Sk,taskListCheckValueUnchecked:Sk,paragraph:$z}}}function pg(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:eR}}}function Sk(c){let v=this.stack[this.stack.length-2];ft(v.type==="listItem"),v.checked=c.type==="taskListCheckValueChecked"}function $z(c){let v=this.stack[this.stack.length-2];if(v&&v.type==="listItem"&&typeof v.checked==="boolean"){let E=this.stack[this.stack.length-1];ft(E.type==="paragraph");let N=E.children[0];if(N&&N.type==="text"){let D=v.children,H=-1,q;while(++H<D.length){let Y=D[H];if(Y.type==="paragraph"){q=Y;break}}if(q===E){if(N.value=N.value.slice(1),N.value.length===0)E.children.shift();else if(E.position&&N.position&&typeof N.position.start.offset==="number")N.position.start.column++,N.position.start.offset++,E.position.start=Object.assign({},N.position.start)}}}this.exit(c)}function eR(c,v,E,N){let D=c.children[0],H=typeof c.checked==="boolean"&&D&&D.type==="paragraph",q="["+(c.checked?"x":" ")+"] ",Y=E.createTracker(N);if(H)Y.move(q);let I=wu.listItem(c,v,E,{...N,...Y.current()});if(H)I=I.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,Q);return I;function Q(F){return F+q}}function hg(){return[Fh(),Kh(),Wh(),fg(),mg()]}function gg(c){return{extensions:[Zh(),Jh(c),$h(),dg(c),pg()]}}var tR={tokenize:oR,partial:!0},kk={tokenize:lR,partial:!0},Ek={tokenize:uR,partial:!0},Tk={tokenize:sR,partial:!0},nR={tokenize:cR,partial:!0},Ck={name:"wwwAutolink",tokenize:aR,previous:Ak},Nk={name:"protocolAutolink",tokenize:iR,previous:zk},Br={name:"emailAutolink",tokenize:rR,previous:Rk},fr={};function vg(){return{text:fr}}var gi=48;while(gi<123)if(fr[gi]=Br,gi++,gi===58)gi=65;else if(gi===91)gi=97;fr[43]=Br;fr[45]=Br;fr[46]=Br;fr[95]=Br;fr[72]=[Br,Nk];fr[104]=[Br,Nk];fr[87]=[Br,Ck];fr[119]=[Br,Ck];function rR(c,v,E){let N=this,D,H;return q;function q(ee){if(!yg(ee)||!Rk.call(N,N.previous)||bg(N.events))return E(ee);return c.enter("literalAutolink"),c.enter("literalAutolinkEmail"),Y(ee)}function Y(ee){if(yg(ee))return c.consume(ee),Y;if(ee===64)return c.consume(ee),I;return E(ee)}function I(ee){if(ee===46)return c.check(nR,F,Q)(ee);if(ee===45||ee===95||vt(ee))return H=!0,c.consume(ee),I;return F(ee)}function Q(ee){return c.consume(ee),D=!0,I}function F(ee){if(H&&D&&zt(N.previous))return c.exit("literalAutolinkEmail"),c.exit("literalAutolink"),v(ee);return E(ee)}}function aR(c,v,E){let N=this;return D;function D(q){if(q!==87&&q!==119||!Ak.call(N,N.previous)||bg(N.events))return E(q);return c.enter("literalAutolink"),c.enter("literalAutolinkWww"),c.check(tR,c.attempt(kk,c.attempt(Ek,H),E),E)(q)}function H(q){return c.exit("literalAutolinkWww"),c.exit("literalAutolink"),v(q)}}function iR(c,v,E){let N=this,D="",H=!1;return q;function q(ee){if((ee===72||ee===104)&&zk.call(N,N.previous)&&!bg(N.events))return c.enter("literalAutolink"),c.enter("literalAutolinkHttp"),D+=String.fromCodePoint(ee),c.consume(ee),Y;return E(ee)}function Y(ee){if(zt(ee)&&D.length<5)return D+=String.fromCodePoint(ee),c.consume(ee),Y;if(ee===58){let te=D.toLowerCase();if(te==="http"||te==="https")return c.consume(ee),I}return E(ee)}function I(ee){if(ee===47){if(c.consume(ee),H)return Q;return H=!0,I}return E(ee)}function Q(ee){return ee===null||li(ee)||qe(ee)||sr(ee)||ui(ee)?E(ee):c.attempt(kk,c.attempt(Ek,F),E)(ee)}function F(ee){return c.exit("literalAutolinkHttp"),c.exit("literalAutolink"),v(ee)}}function oR(c,v,E){let N=0;return D;function D(q){if((q===87||q===119)&&N<3)return N++,c.consume(q),D;if(q===46&&N===3)return c.consume(q),H;return E(q)}function H(q){return q===null?E(q):v(q)}}function lR(c,v,E){let N,D,H;return q;function q(Q){if(Q===46||Q===95)return c.check(Tk,I,Y)(Q);if(Q===null||qe(Q)||sr(Q)||Q!==45&&ui(Q))return I(Q);return H=!0,c.consume(Q),q}function Y(Q){if(Q===95)N=!0;else D=N,N=void 0;return c.consume(Q),q}function I(Q){if(D||N||!H)return E(Q);return v(Q)}}function uR(c,v){let E=0,N=0;return D;function D(q){if(q===40)return E++,c.consume(q),D;if(q===41&&N<E)return H(q);if(q===33||q===34||q===38||q===39||q===41||q===42||q===44||q===46||q===58||q===59||q===60||q===63||q===93||q===95||q===126)return c.check(Tk,v,H)(q);if(q===null||qe(q)||sr(q))return v(q);return c.consume(q),D}function H(q){if(q===41)N++;return c.consume(q),D}}function sR(c,v,E){return N;function N(Y){if(Y===33||Y===34||Y===39||Y===41||Y===42||Y===44||Y===46||Y===58||Y===59||Y===63||Y===95||Y===126)return c.consume(Y),N;if(Y===38)return c.consume(Y),H;if(Y===93)return c.consume(Y),D;if(Y===60||Y===null||qe(Y)||sr(Y))return v(Y);return E(Y)}function D(Y){if(Y===null||Y===40||Y===91||qe(Y)||sr(Y))return v(Y);return N(Y)}function H(Y){return zt(Y)?q(Y):E(Y)}function q(Y){if(Y===59)return c.consume(Y),N;if(zt(Y))return c.consume(Y),q;return E(Y)}}function cR(c,v,E){return N;function N(H){return c.consume(H),D}function D(H){return vt(H)?E(H):v(H)}}function Ak(c){return c===null||c===40||c===42||c===95||c===91||c===93||c===126||qe(c)}function zk(c){return!zt(c)}function Rk(c){return!(c===47||yg(c))}function yg(c){return c===43||c===45||c===46||c===95||vt(c)}function bg(c){let v=c.length,E=!1;while(v--){let N=c[v][1];if((N.type==="labelLink"||N.type==="labelImage")&&!N._balanced){E=!0;break}if(N._gfmAutolinkLiteralWalkedInto){E=!1;break}}if(c.length>0&&!E)c[c.length-1][1]._gfmAutolinkLiteralWalkedInto=!0;return E}var fR={tokenize:vR,partial:!0};function xg(){return{document:{[91]:{name:"gfmFootnoteDefinition",tokenize:hR,continuation:{tokenize:gR},exit:yR}},text:{[91]:{name:"gfmFootnoteCall",tokenize:pR},[93]:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:dR,resolveTo:mR}}}}function dR(c,v,E){let N=this,D=N.events.length,H=N.parser.gfmFootnotes||(N.parser.gfmFootnotes=[]),q;while(D--){let I=N.events[D][1];if(I.type==="labelImage"){q=I;break}if(I.type==="gfmFootnoteCall"||I.type==="labelLink"||I.type==="label"||I.type==="image"||I.type==="link")break}return Y;function Y(I){if(!q||!q._balanced)return E(I);let Q=Qt(N.sliceSerialize({start:q.end,end:N.now()}));if(Q.codePointAt(0)!==94||!H.includes(Q.slice(1)))return E(I);return c.enter("gfmFootnoteCallLabelMarker"),c.consume(I),c.exit("gfmFootnoteCallLabelMarker"),v(I)}}function mR(c,v){let E=c.length,N;while(E--)if(c[E][1].type==="labelImage"&&c[E][0]==="enter"){N=c[E][1];break}c[E+1][1].type="data",c[E+3][1].type="gfmFootnoteCallLabelMarker";let D={type:"gfmFootnoteCall",start:Object.assign({},c[E+3][1].start),end:Object.assign({},c[c.length-1][1].end)},H={type:"gfmFootnoteCallMarker",start:Object.assign({},c[E+3][1].end),end:Object.assign({},c[E+3][1].end)};H.end.column++,H.end.offset++,H.end._bufferIndex++;let q={type:"gfmFootnoteCallString",start:Object.assign({},H.end),end:Object.assign({},c[c.length-1][1].start)},Y={type:"chunkString",contentType:"string",start:Object.assign({},q.start),end:Object.assign({},q.end)},I=[c[E+1],c[E+2],["enter",D,v],c[E+3],c[E+4],["enter",H,v],["exit",H,v],["enter",q,v],["enter",Y,v],["exit",Y,v],["exit",q,v],c[c.length-2],c[c.length-1],["exit",D,v]];return c.splice(E,c.length-E+1,...I),c}function pR(c,v,E){let N=this,D=N.parser.gfmFootnotes||(N.parser.gfmFootnotes=[]),H=0,q;return Y;function Y(ee){return c.enter("gfmFootnoteCall"),c.enter("gfmFootnoteCallLabelMarker"),c.consume(ee),c.exit("gfmFootnoteCallLabelMarker"),I}function I(ee){if(ee!==94)return E(ee);return c.enter("gfmFootnoteCallMarker"),c.consume(ee),c.exit("gfmFootnoteCallMarker"),c.enter("gfmFootnoteCallString"),c.enter("chunkString").contentType="string",Q}function Q(ee){if(H>999||ee===93&&!q||ee===null||ee===91||qe(ee))return E(ee);if(ee===93){c.exit("chunkString");let te=c.exit("gfmFootnoteCallString");if(!D.includes(Qt(N.sliceSerialize(te))))return E(ee);return c.enter("gfmFootnoteCallLabelMarker"),c.consume(ee),c.exit("gfmFootnoteCallLabelMarker"),c.exit("gfmFootnoteCall"),v}if(!qe(ee))q=!0;return H++,c.consume(ee),ee===92?F:Q}function F(ee){if(ee===91||ee===92||ee===93)return c.consume(ee),H++,Q;return Q(ee)}}function hR(c,v,E){let N=this,D=N.parser.gfmFootnotes||(N.parser.gfmFootnotes=[]),H,q=0,Y;return I;function I(ie){return c.enter("gfmFootnoteDefinition")._container=!0,c.enter("gfmFootnoteDefinitionLabel"),c.enter("gfmFootnoteDefinitionLabelMarker"),c.consume(ie),c.exit("gfmFootnoteDefinitionLabelMarker"),Q}function Q(ie){if(ie===94)return c.enter("gfmFootnoteDefinitionMarker"),c.consume(ie),c.exit("gfmFootnoteDefinitionMarker"),c.enter("gfmFootnoteDefinitionLabelString"),c.enter("chunkString").contentType="string",F;return E(ie)}function F(ie){if(q>999||ie===93&&!Y||ie===null||ie===91||qe(ie))return E(ie);if(ie===93){c.exit("chunkString");let ce=c.exit("gfmFootnoteDefinitionLabelString");return H=Qt(N.sliceSerialize(ce)),c.enter("gfmFootnoteDefinitionLabelMarker"),c.consume(ie),c.exit("gfmFootnoteDefinitionLabelMarker"),c.exit("gfmFootnoteDefinitionLabel"),te}if(!qe(ie))Y=!0;return q++,c.consume(ie),ie===92?ee:F}function ee(ie){if(ie===91||ie===92||ie===93)return c.consume(ie),q++,F;return F(ie)}function te(ie){if(ie===58){if(c.enter("definitionMarker"),c.consume(ie),c.exit("definitionMarker"),!D.includes(H))D.push(H);return _e(c,ne,"gfmFootnoteDefinitionWhitespace")}return E(ie)}function ne(ie){return v(ie)}}function gR(c,v,E){return c.check(cr,v,c.attempt(fR,v,E))}function yR(c){c.exit("gfmFootnoteDefinition")}function vR(c,v,E){let N=this;return _e(c,D,"gfmFootnoteDefinitionIndent",5);function D(H){let q=N.events[N.events.length-1];return q&&q[1].type==="gfmFootnoteDefinitionIndent"&&q[2].sliceSerialize(q[1],!0).length===4?v(H):E(H)}}function wg(c){let E=(c||{}).singleTilde,N={name:"strikethrough",tokenize:H,resolveAll:D};if(E===null||E===void 0)E=!0;return{text:{[126]:N},insideSpan:{null:[N]},attentionMarkers:{null:[126]}};function D(q,Y){let I=-1;while(++I<q.length)if(q[I][0]==="enter"&&q[I][1].type==="strikethroughSequenceTemporary"&&q[I][1]._close){let Q=I;while(Q--)if(q[Q][0]==="exit"&&q[Q][1].type==="strikethroughSequenceTemporary"&&q[Q][1]._open&&q[I][1].end.offset-q[I][1].start.offset===q[Q][1].end.offset-q[Q][1].start.offset){q[I][1].type="strikethroughSequence",q[Q][1].type="strikethroughSequence";let F={type:"strikethrough",start:Object.assign({},q[Q][1].start),end:Object.assign({},q[I][1].end)},ee={type:"strikethroughText",start:Object.assign({},q[Q][1].end),end:Object.assign({},q[I][1].start)},te=[["enter",F,Y],["enter",q[Q][1],Y],["exit",q[Q][1],Y],["enter",ee,Y]],ne=Y.parser.constructs.insideSpan.null;if(ne)Dt(te,te.length,0,xa(ne,q.slice(Q+1,I),Y));Dt(te,te.length,0,[["exit",ee,Y],["enter",q[I][1],Y],["exit",q[I][1],Y],["exit",F,Y]]),Dt(q,Q-1,I-Q+3,te),I=Q+te.length-2;break}}I=-1;while(++I<q.length)if(q[I][1].type==="strikethroughSequenceTemporary")q[I][1].type="data";return q}function H(q,Y,I){let Q=this.previous,F=this.events,ee=0;return te;function te(ie){if(Q===126&&F[F.length-1][1].type!=="characterEscape")return I(ie);return q.enter("strikethroughSequenceTemporary"),ne(ie)}function ne(ie){let ce=Co(Q);if(ie===126){if(ee>1)return I(ie);return q.consume(ie),ee++,ne}if(ee<2&&!E)return I(ie);let me=q.exit("strikethroughSequenceTemporary"),re=Co(ie);return me._open=!re||re===2&&Boolean(ce),me._close=!ce||ce===2&&Boolean(re),Y(ie)}}}class Sg{constructor(){this.map=[],this.index=new Map}add(c,v,E){bR(this,c,v,E)}consume(c){if(this.map.sort(function(D,H){return D[0]-H[0]}),this.map.length===0)return;let v=this.map.length,E=[];while(v>0)v-=1,E.push(c.slice(this.map[v][0]+this.map[v][1]),this.map[v][2]),c.length=this.map[v][0];E.push(c.slice()),c.length=0;let N=E.pop();while(N){for(let D of N)c.push(D);N=E.pop()}this.map.length=0,this.index.clear()}}function bR(c,v,E,N){if(E===0&&N.length===0)return;let D=c.index.get(v);if(D){D[1]+=E,D[2].push(...N);return}let H=[v,E,N];c.map.push(H),c.index.set(v,H)}function Ok(c,v){let E=!1,N=[];while(v<c.length){let D=c[v];if(E){if(D[0]==="enter"){if(D[1].type==="tableContent")N.push(c[v+1][1].type==="tableDelimiterMarker"?"left":"none")}else if(D[1].type==="tableContent"){if(c[v-1][1].type==="tableDelimiterMarker"){let H=N.length-1;N[H]=N[H]==="left"?"center":"right"}}else if(D[1].type==="tableDelimiterRow")break}else if(D[0]==="enter"&&D[1].type==="tableDelimiterRow")E=!0;v+=1}return N}function kg(){return{flow:{null:{name:"table",tokenize:xR,resolveAll:wR}}}}function xR(c,v,E){let N=this,D=0,H=0,q;return Y;function Y(ue){let Re=N.events.length-1;while(Re>-1){let{type:Ae}=N.events[Re][1];if(Ae==="lineEnding"||Ae==="linePrefix")Re--;else break}let Ee=Re>-1?N.events[Re][1].type:null,Se=Ee==="tableHead"||Ee==="tableRow"?he:I;if(Se===he&&N.parser.lazy[N.now().line])return E(ue);return Se(ue)}function I(ue){return c.enter("tableHead"),c.enter("tableRow"),Q(ue)}function Q(ue){if(ue===124)return F(ue);return q=!0,H+=1,F(ue)}function F(ue){if(ue===null)return E(ue);if(Te(ue)){if(H>1)return H=0,N.interrupt=!0,c.exit("tableRow"),c.enter("lineEnding"),c.consume(ue),c.exit("lineEnding"),ne;return E(ue)}if(Oe(ue))return _e(c,F,"whitespace")(ue);if(H+=1,q)q=!1,D+=1;if(ue===124)return c.enter("tableCellDivider"),c.consume(ue),c.exit("tableCellDivider"),q=!0,F;return c.enter("data"),ee(ue)}function ee(ue){if(ue===null||ue===124||qe(ue))return c.exit("data"),F(ue);return c.consume(ue),ue===92?te:ee}function te(ue){if(ue===92||ue===124)return c.consume(ue),ee;return ee(ue)}function ne(ue){if(N.interrupt=!1,N.parser.lazy[N.now().line])return E(ue);if(c.enter("tableDelimiterRow"),q=!1,Oe(ue))return _e(c,ie,"linePrefix",N.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ue);return ie(ue)}function ie(ue){if(ue===45||ue===58)return me(ue);if(ue===124)return q=!0,c.enter("tableCellDivider"),c.consume(ue),c.exit("tableCellDivider"),ce;return ye(ue)}function ce(ue){if(Oe(ue))return _e(c,me,"whitespace")(ue);return me(ue)}function me(ue){if(ue===58)return H+=1,q=!0,c.enter("tableDelimiterMarker"),c.consume(ue),c.exit("tableDelimiterMarker"),re;if(ue===45)return H+=1,re(ue);if(ue===null||Te(ue))return pe(ue);return ye(ue)}function re(ue){if(ue===45)return c.enter("tableDelimiterFiller"),oe(ue);return ye(ue)}function oe(ue){if(ue===45)return c.consume(ue),oe;if(ue===58)return q=!0,c.exit("tableDelimiterFiller"),c.enter("tableDelimiterMarker"),c.consume(ue),c.exit("tableDelimiterMarker"),le;return c.exit("tableDelimiterFiller"),le(ue)}function le(ue){if(Oe(ue))return _e(c,pe,"whitespace")(ue);return pe(ue)}function pe(ue){if(ue===124)return ie(ue);if(ue===null||Te(ue)){if(!q||D!==H)return ye(ue);return c.exit("tableDelimiterRow"),c.exit("tableHead"),v(ue)}return ye(ue)}function ye(ue){return E(ue)}function he(ue){return c.enter("tableRow"),ge(ue)}function ge(ue){if(ue===124)return c.enter("tableCellDivider"),c.consume(ue),c.exit("tableCellDivider"),ge;if(ue===null||Te(ue))return c.exit("tableRow"),v(ue);if(Oe(ue))return _e(c,ge,"whitespace")(ue);return c.enter("data"),xe(ue)}function xe(ue){if(ue===null||ue===124||qe(ue))return c.exit("data"),ge(ue);return c.consume(ue),ue===92?ze:xe}function ze(ue){if(ue===92||ue===124)return c.consume(ue),xe;return xe(ue)}}function wR(c,v){let E=-1,N=!0,D=0,H=[0,0,0,0],q=[0,0,0,0],Y=!1,I=0,Q,F,ee,te=new Sg;while(++E<c.length){let ne=c[E],ie=ne[1];if(ne[0]==="enter"){if(ie.type==="tableHead"){if(Y=!1,I!==0)Mk(te,v,I,Q,F),F=void 0,I=0;Q={type:"table",start:Object.assign({},ie.start),end:Object.assign({},ie.end)},te.add(E,0,[["enter",Q,v]])}else if(ie.type==="tableRow"||ie.type==="tableDelimiterRow"){if(N=!0,ee=void 0,H=[0,0,0,0],q=[0,E+1,0,0],Y)Y=!1,F={type:"tableBody",start:Object.assign({},ie.start),end:Object.assign({},ie.end)},te.add(E,0,[["enter",F,v]]);D=ie.type==="tableDelimiterRow"?2:F?3:1}else if(D&&(ie.type==="data"||ie.type==="tableDelimiterMarker"||ie.type==="tableDelimiterFiller")){if(N=!1,q[2]===0){if(H[1]!==0)q[0]=q[1],ee=yf(te,v,H,D,void 0,ee),H=[0,0,0,0];q[2]=E}}else if(ie.type==="tableCellDivider")if(N)N=!1;else{if(H[1]!==0)q[0]=q[1],ee=yf(te,v,H,D,void 0,ee);H=q,q=[H[1],E,0,0]}}else if(ie.type==="tableHead")Y=!0,I=E;else if(ie.type==="tableRow"||ie.type==="tableDelimiterRow"){if(I=E,H[1]!==0)q[0]=q[1],ee=yf(te,v,H,D,E,ee);else if(q[1]!==0)ee=yf(te,v,q,D,E,ee);D=0}else if(D&&(ie.type==="data"||ie.type==="tableDelimiterMarker"||ie.type==="tableDelimiterFiller"))q[3]=E}if(I!==0)Mk(te,v,I,Q,F);te.consume(v.events),E=-1;while(++E<v.events.length){let ne=v.events[E];if(ne[0]==="enter"&&ne[1].type==="table")ne[1]._align=Ok(v.events,E)}return c}function yf(c,v,E,N,D,H){let q=N===1?"tableHeader":N===2?"tableDelimiter":"tableData",Y="tableContent";if(E[0]!==0)H.end=Object.assign({},Do(v.events,E[0])),c.add(E[0],0,[["exit",H,v]]);let I=Do(v.events,E[1]);if(H={type:q,start:Object.assign({},I),end:Object.assign({},I)},c.add(E[1],0,[["enter",H,v]]),E[2]!==0){let Q=Do(v.events,E[2]),F=Do(v.events,E[3]),ee={type:"tableContent",start:Object.assign({},Q),end:Object.assign({},F)};if(c.add(E[2],0,[["enter",ee,v]]),N!==2){let te=v.events[E[2]],ne=v.events[E[3]];if(te[1].end=Object.assign({},ne[1].end),te[1].type="chunkText",te[1].contentType="text",E[3]>E[2]+1){let ie=E[2]+1,ce=E[3]-E[2]-1;c.add(ie,ce,[])}}c.add(E[3]+1,0,[["exit",ee,v]])}if(D!==void 0)H.end=Object.assign({},Do(v.events,D)),c.add(D,0,[["exit",H,v]]),H=void 0;return H}function Mk(c,v,E,N,D){let H=[],q=Do(v.events,E);if(D)D.end=Object.assign({},q),H.push(["exit",D,v]);N.end=Object.assign({},q),H.push(["exit",N,v]),c.add(E+1,0,H)}function Do(c,v){let E=c[v],N=E[0]==="enter"?"start":"end";return E[1][N]}var SR={name:"tasklistCheck",tokenize:kR};function Eg(){return{text:{[91]:SR}}}function kR(c,v,E){let N=this;return D;function D(I){if(N.previous!==null||!N._gfmTasklistFirstContentOfListItem)return E(I);return c.enter("taskListCheck"),c.enter("taskListCheckMarker"),c.consume(I),c.exit("taskListCheckMarker"),H}function H(I){if(qe(I))return c.enter("taskListCheckValueUnchecked"),c.consume(I),c.exit("taskListCheckValueUnchecked"),q;if(I===88||I===120)return c.enter("taskListCheckValueChecked"),c.consume(I),c.exit("taskListCheckValueChecked"),q;return E(I)}function q(I){if(I===93)return c.enter("taskListCheckMarker"),c.consume(I),c.exit("taskListCheckMarker"),c.exit("taskListCheck"),Y;return E(I)}function Y(I){if(Te(I))return v(I);if(Oe(I))return c.check({tokenize:ER},v,E)(I);return E(I)}}function ER(c,v,E){return _e(c,N,"whitespace");function N(D){return D===null?E(D):v(D)}}function _k(c){return qc([vg(),xg(),wg(c),kg(),Eg()])}var TR={};function B(c){let v=this,E=c||TR,N=v.data(),D=N.micromarkExtensions||(N.micromarkExtensions=[]),H=N.fromMarkdownExtensions||(N.fromMarkdownExtensions=[]),q=N.toMarkdownExtensions||(N.toMarkdownExtensions=[]);D.push(_k(E)),H.push(hg()),q.push(gg(E))}var Dk=(c)=>c.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),CR=(c)=>new RegExp(c?`^${Dk(c)}:thread\\.[0-9a-f-]{36}$`:"(?!)"),Lk=(c,v)=>v!==void 0&&new RegExp(`\\]\\(${Dk(v)}:thread\\.[0-9a-f-]{36}\\)`).test(c);function NR({children:c}){let[v,E]=i(!1),N=(D)=>{if(typeof D==="string")return D;if(Array.isArray(D))return D.map(N).join("");if(D&&typeof D==="object"&&"props"in D)return N(D.props.children);return""};return n("div",{className:"code-block",children:[e("pre",{children:c}),e("button",{type:"button",className:"icon-button code-copy","aria-label":t("Copy"),onClick:()=>{navigator.clipboard?.writeText(N(c)).then(()=>{E(!0),setTimeout(()=>E(!1),1400)}).catch(()=>{return})},children:e(Ne,{name:v?"check":"copy",size:16})})]})}var yi=b(function({source:v}){let E=CR(yr(ri)?.app?.surface);return e("div",{className:"prose",children:e(W,{remarkPlugins:[B],urlTransform:(N)=>E.test(N)?N:mf(N),components:{a:({href:N,children:D})=>N&&E.test(N)?e("a",{className:"thread-link",href:u("room",N),children:D}):N&&/^https?:\/\//.test(N)?e("a",{href:N,target:"_blank",rel:"noreferrer noopener",children:D}):e("span",{children:D}),img:({alt:N})=>e("span",{children:N}),pre:NR,table:({children:N})=>e("div",{className:"table-wrap",children:e("table",{children:N})})},children:v})})});var AR={approved:r("Approved"),declined:r("Declined"),answered:r("Answered"),expired:r("Expired"),cancelled:r("Cancelled"),withdrawn:r("Withdrawn")};function zR(c){let{frame:v,outcome:E}=c;if(!E)return"";if(v.kind==="approval"&&v.wording){if(E==="approved")return v.wording.approved;if(E==="declined")return v.wording.declined}let N=t(AR[E]);return c.note?`${N}: ${c.note}`:N}function Cg(c){let v=yo(),[E,N]=i(!1),D=c.refused??0;return a(()=>{if(D>0)N(!1)},[D]),{sent:E,send:(q)=>{if(!v.send(q))return y(t("Not connected right now. Try again when the connection is back."),"danger"),!1;return N(!0),!0}}}function Tg(c){let v=c.text?.trim();return[...c.choices,...v?[v]:[]].join(", ")}function Ng({open:c,children:v}){return e("div",{className:"collapse","data-open":c,children:e("div",{className:"collapse-inner",inert:!c,children:v})})}function RR({room:c,stamp:v}){let E=Vx(c);return e("span",{className:"wax-seal","data-stamp":v?"true":void 0,style:E,"aria-hidden":"true",children:n("svg",{viewBox:"0 0 40 40","aria-hidden":"true",focusable:"false",children:[e("path",{className:"seal-body",d:"M37.4 21.9Q36.3 23.7 36.6 25.9Q37.0 28.2 35.0 29.3Q33.0 30.4 32.4 32.5Q31.7 34.6 29.5 34.9Q27.3 35.2 25.7 36.6Q24.1 37.9 22.0 37.4Q20.0 37.0 18.0 37.4Q15.9 37.9 14.3 36.6Q12.6 35.3 10.6 34.8Q8.6 34.4 7.8 32.4Q7.0 30.4 5.1 29.2Q3.2 28.1 3.2 26.0Q3.2 23.8 2.4 21.9Q1.6 20.0 2.6 18.1Q3.6 16.3 3.4 14.1Q3.1 11.8 4.7 10.5Q6.4 9.2 7.4 7.3Q8.3 5.3 10.5 5.0Q12.7 4.8 14.2 3.1Q15.8 1.4 17.9 2.4Q20.0 3.4 22.1 2.4Q24.2 1.5 25.8 3.2Q27.3 4.8 29.4 5.2Q31.5 5.6 32.3 7.6Q33.1 9.6 34.9 10.8Q36.7 12.0 36.8 14.1Q36.8 16.2 37.7 18.1Q38.6 20.0 37.4 21.9Z"}),e("circle",{className:"seal-ring",cx:"20",cy:"20",r:"12.5"}),e("path",{className:"seal-mark",d:"M13.5 20.5l4.6 4.6 8.6-9.6"})]})})}function Ag(c){let{card:v}=c,E="late"in v.frame&&v.frame.late,{timeZone:N}=c,D=[v.by,v.closedAt?T(v.closedAt,N):void 0].filter(Boolean),H=Qn()==="camelot"&&v.frame.kind==="approval"&&v.outcome==="approved",q=o(v.outcome==="approved");return n("article",{className:`prompt prompt-${c.tone}`,"data-ended":v.outcome?"true":void 0,"data-sealed":H?"true":void 0,"aria-label":c.title,children:[n("header",{className:"prompt-head",children:[e("span",{className:"prompt-icon",children:e(Ne,{name:c.icon,size:18})}),e("strong",{children:c.title}),E&&!v.outcome?e("span",{className:"badge badge-warn",children:t("Late")}):null,v.outcome?n("span",{className:"prompt-outcome","data-outcome":v.outcome,children:[e(Ne,{name:v.outcome==="approved"||v.outcome==="answered"?"check":"close",size:14}),zR(v)]}):null]}),v.outcome&&D.length>0?e("p",{className:"prompt-meta",children:D.join(" · ")}):null,c.children,H?e(RR,{room:v.room,stamp:!q.current}):null]})}function OR({card:c,timeZone:v,frame:E}){let{sent:N,send:D}=Cg(c),H=E.purpose==="turn-timeout",q=(I)=>D({type:"approval",prompt:E.id,approved:I}),{approval:Y}=E;return n(Ag,{card:c,timeZone:v,tone:H?"timeout":"action",icon:H?"timer":"shield",title:E.title,children:[e(yi,{source:E.message}),Y?n("details",{className:"prompt-details",children:[e("summary",{children:t("Details")}),n("dl",{className:"facts",children:[n("div",{children:[e("dt",{children:t("Tool")}),e("dd",{children:Y.tool})]}),n("div",{children:[e("dt",{children:t("Action")}),e("dd",{children:Y.action})]})]}),Object.keys(Y.input).length?e("pre",{className:"prompt-input",children:JSON.stringify(Y.input,null,2)}):null,Y.files?.length?e("ul",{className:"prompt-files",children:Y.files.map((I)=>n("li",{children:[e(Ne,{name:"file",size:14}),e("code",{children:I.path}),I.bytes===void 0?null:n("span",{className:"meta",children:[I.bytes," B"]})]},I.path))}):null,Y.truncated?e("p",{className:"hint",children:t("Long values are cut here; the action runs with the full text.")}):null]}):null,Y?.copy&&!c.outcome?e(MR,{copy:Y.copy}):null,E.speakerOnly?e("p",{className:"hint",children:t("Only the person this turn answers can approve it.")}):null,E.approvers?.length?e("p",{className:"hint",children:t("{names} can approve this, and so can an owner.",{names:E.approvers.join(", ")})}):null,E.late&&!c.outcome?e("p",{className:"hint",children:t("The turn stopped waiting. Your answer starts a new turn in this room.")}):null,n(Ng,{open:!c.outcome,children:[n("div",{className:"actions",children:[e("button",{type:"button",className:"secondary",disabled:N,onClick:()=>q(!1),children:E.wording?.decline??(H?t("Stop turn"):t("Decline"))}),e("button",{type:"button",disabled:N,onClick:()=>q(!0),children:E.wording?.approve??(H?t("Continue"):t("Approve"))})]}),E.wording?.footer?e("p",{className:"hint",children:E.wording.footer}):null]})]})}function MR({copy:c}){let[v,E]=i(!1);return n("button",{type:"button",className:"secondary copy-action",onClick:()=>{navigator.clipboard?.writeText(c.text).then(()=>{E(!0),setTimeout(()=>E(!1),1400)}).catch(()=>{return})},children:[e(Ne,{name:v?"check":"copy",size:16}),v?t("Copied"):c.label?t("Copy {label}",{label:c.label}):t("Copy")]})}var vf={choices:[],other:!1,text:""};function Uk(c,v){let E=v.text.trim();if(c.options.length===0)return E?{choices:[],text:E}:void 0;let N=v.choices;if(v.other&&!E)return;if(N.length===0&&!v.other)return;return{choices:N,...v.other?{text:E}:{}}}function Hk(c){let{question:v,pick:E,onChange:N}=c,[D,H]=i();if(v.options.length===0)return n("fieldset",{className:"field",disabled:c.disabled,children:[n("legend",{children:[v.header?`${v.header} · `:"",v.question]}),e("textarea",{rows:2,value:E.text,onChange:(I)=>N({...E,text:I.target.value}),"aria-label":v.question})]});let q=(I)=>{let Q=E.choices.includes(I.label);if(v.multi)N({...E,choices:Q?E.choices.filter((F)=>F!==I.label):[...E.choices,I.label]});else N({choices:[I.label],other:!1,text:E.text});H(I.label)},Y=v.options.find((I)=>I.label===D)?.preview;return n("fieldset",{className:"field",disabled:c.disabled,children:[n("legend",{children:[v.header?`${v.header} · `:"",v.question]}),n("div",{className:"options",children:[v.options.map((I)=>n("label",{className:"option","data-checked":E.choices.includes(I.label),children:[e("input",{type:v.multi?"checkbox":"radio",name:c.name,checked:E.choices.includes(I.label),onChange:()=>q(I)}),n("span",{children:[e("strong",{children:I.label}),I.description?e("span",{className:"meta",children:I.description}):null]})]},I.label)),v.allowOther?n("label",{className:"option","data-checked":E.other,children:[e("input",{type:v.multi?"checkbox":"radio",name:c.name,checked:E.other,onChange:()=>N(v.multi?{...E,other:!E.other}:{choices:[],other:!0,text:E.text})}),e("span",{children:e("strong",{children:t("Other")})})]}):null]}),E.other?e("input",{type:"text",value:E.text,placeholder:t("Your answer"),"aria-label":t("Your answer"),onChange:(I)=>N({...E,text:I.target.value})}):null,Y?e("pre",{className:"option-preview",children:Y}):null]})}function _R({card:c,timeZone:v,frame:E}){let{sent:N,send:D}=Cg(c),[H,q]=i(vf),[Y,I]=i(),Q={question:E.question,options:E.options,multi:E.multi,allowOther:E.allowOther},F=Uk(Q,H),ee=c.answer?.kind==="ask"?c.answer.answer:Y;return n(Ag,{card:c,timeZone:v,tone:"ask",icon:"sparkle",title:E.title,children:[n(Ng,{open:!c.outcome,children:[e(Hk,{name:E.id,question:Q,pick:H,onChange:q,disabled:N}),n("div",{className:"actions",children:[e("button",{type:"button",className:"secondary",disabled:N,onClick:()=>D({type:"cancel",prompt:E.id}),children:t("Cancel")}),e("button",{type:"button",disabled:N||!F,onClick:()=>{if(F&&D({type:"answer",prompt:E.id,answer:F}))I(F)},children:t("Send answer")})]})]}),c.outcome==="answered"&&ee?e("p",{className:"prompt-answer",children:Tg(ee)}):null]})}function DR({card:c,timeZone:v,frame:E}){let{sent:N,send:D}=Cg(c),[H,q]=i(),[Y,I]=i(()=>E.questions.map(()=>vf)),[Q,F]=i(""),ee=E.questions.map((ie,ce)=>Uk(ie,Y[ce]??vf)),te=c.answer?.kind==="questionnaire"?c.answer:void 0,ne=te?[...te.answers.map((ie)=>ie?Tg(ie):"—"),...te.note?[te.note]:[]]:H;return n(Ag,{card:c,timeZone:v,tone:"ask",icon:"sparkle",title:E.title,children:[n(Ng,{open:!c.outcome,children:[E.questions.map((ie,ce)=>e(Hk,{name:`${E.id}-${ce}`,question:ie,pick:Y[ce]??vf,onChange:(me)=>I((re)=>re.map((oe,le)=>le===ce?me:oe)),disabled:N},ce)),E.questions.some((ie)=>ie.options.length>0)?n("label",{children:[t("Add a note"),e("textarea",{rows:2,value:Q,disabled:N,onChange:(ie)=>F(ie.target.value)})]}):null,n("div",{className:"actions",children:[e("button",{type:"button",className:"secondary",disabled:N,onClick:()=>D({type:"cancel",prompt:E.id}),children:t("Cancel")}),e("button",{type:"button",disabled:N||ee.every((ie)=>!ie),onClick:()=>{let ie=Q.trim();if(D({type:"answers",prompt:E.id,answers:ee.map((me)=>me??null),...ie?{note:ie}:{}}))q(ee.map((me)=>me?Tg(me):"—"))},children:t("Send answers")})]})]}),c.outcome==="answered"&&ne?e("ul",{className:"prompt-answer",children:ne.map((ie,ce)=>e("li",{children:ie},ce))}):null]})}var Bk=b(function({card:v,timeZone:E}){let{frame:N}=v;switch(N.kind){case"approval":return e(OR,{card:v,timeZone:E,frame:N});case"ask":return e(_R,{card:v,timeZone:E,frame:N});case"questionnaire":return e(DR,{card:v,timeZone:E,frame:N})}});var LR=4000,UR=r("(long text attached)"),HR="message.txt";function Vk(c,v=80){let N=(c.split(`
38
+ `).find((D)=>D.trim()!=="")??"").trim().replace(/\s+/g," ");return N.length>v?`${N.slice(0,v-1)}…`:N}function qk(c){for(let v=1;;v+=1){let E=`pasted-text-${v}.txt`;if(!c.includes(E))return E}}var BR=(c,v)=>new File([v],c,{type:"text/plain"});function jk(c,v,E){if(c.files.length>0)return{kind:"files",files:[...c.files]};if(c.text.length<LR)return{kind:"insert"};return E&&v>=E.perMessage?{kind:"full"}:{kind:"text",text:c.text}}function Yk(c,v,E){let N={accepted:[],tooLarge:[],full:[]};for(let D of c)if(E&&D.size>E.maxBytes)N.tooLarge.push(D);else if(E&&v+N.accepted.length>=E.perMessage)N.full.push(D);else N.accepted.push(D);return N}function Ik(c,v,E){let N=c.trim();if(N.length<=Lp)return{ok:!0,text:N};if(E&&v>=E.perMessage)return{ok:!1,reason:"full"};return{ok:!0,text:UR,overflow:N}}function Gk(c,v){return zg(c,v).length<=Lp}function zg(c,v){if(c==="")return v;return`${c}${c.endsWith(`
39
+ `)?"":`
40
+ `}${v}`}var Rg=(c)=>c.filter((v)=>!v.failed).length;async function Pk(c,v,E){let N=[],D=[],H=async(q,Y)=>{let I=await E.upload(BR(q,Y));D.push(I.id),N.push(I)};try{for(let q of c){if(q.failed)continue;if(q.upload)N.push(q.upload);else if(q.text!==void 0)await H(q.name,q.text)}if(v!==void 0)await H(HR,v)}catch(q){throw await Promise.all(D.map((Y)=>E.discard(Y).catch(()=>{return}))),q}return N}var VR=()=>typeof matchMedia==="function"&&matchMedia("(pointer: coarse)").matches;function Qk(c){let[v,E]=i(""),[N,D]=i([]),H=o([]),q=(ue)=>{H.current=ue(H.current),D(H.current)},[Y,I]=i(!1),Q=o(!1),F=o(null),ee=o(null),te=o(0),ne=P(),{limits:ie}=c;a(()=>{let ue=F.current;if(!ue)return;ue.style.height="auto",ue.style.height=`${Math.min(ue.scrollHeight,200)}px`},[v]);let ce=(ue)=>{if(Q.current)return;let Re=Yk(ue,Rg(H.current),ie);for(let Ee of Re.tooLarge)y(t("{name} is over the {limit} limit.",{name:Ee.name,limit:k(ie?.maxBytes??0)}),"danger");if(Re.full.length>0)y(t("A message carries up to {count} files. Remove one to add more.",{count:ie?.perMessage??0}),"danger");for(let Ee of Re.accepted){te.current+=1;let Se=te.current;q((Ae)=>[...Ae,{key:Se,name:Ee.name,size:Ee.size}]),s.upload(Ee).then((Ae)=>q((Me)=>Me.map((Be)=>Be.key===Se?{...Be,upload:Ae}:Be)),(Ae)=>q((Me)=>Me.map((Be)=>Be.key===Se?{...Be,failed:d(Ae)}:Be)))}},me=(ue)=>{if(Q.current)return;te.current+=1;let Re=te.current;q((Ee)=>[...Ee,{key:Re,name:qk(Ee.map((Se)=>Se.name)),size:new TextEncoder().encode(ue).length,text:ue}])};a(()=>{if(!c.incoming?.length)return;ce(c.incoming),c.onIncomingTaken?.()},[c.incoming]);let re=N.filter((ue)=>ue.upload),oe=N.filter((ue)=>ue.text!==void 0),le=N.some((ue)=>!ue.upload&&!ue.failed&&ue.text===void 0),pe=!Y&&!le&&(v.trim()!==""||re.length>0||oe.length>0),ye=async()=>{if(!pe||Q.current)return;let ue=Ik(v,Rg(N),ie);if(!ue.ok){y(t("This message is too long to send as text, and its files take every slot. Remove one file."),"danger");return}Q.current=!0,I(!0);try{let Re=await Pk(N,ue.overflow,{upload:s.upload,discard:s.discardUpload});c.onSend(ue.overflow!==void 0?t(ue.text):ue.text,Re),E(""),q(()=>[])}catch(Re){y(d(Re),"danger")}finally{Q.current=!1,I(!1),F.current?.focus()}},he=(ue)=>{if(Q.current)return;if(q((Re)=>Re.filter((Ee)=>Ee.key!==ue.key)),ue.upload)s.discardUpload(ue.upload.id).catch(()=>{return})},ge=(ue)=>{if(ue.key==="Enter"&&!ue.shiftKey&&!Ec(ue.nativeEvent)&&!VR())ue.preventDefault(),ye()},xe=(ue)=>{if(Q.current){ue.preventDefault();return}let Re=jk({files:[...ue.clipboardData.files],text:ue.clipboardData.getData("text/plain")},H.current.length,ie);switch(Re.kind){case"insert":return;case"files":ue.preventDefault(),ce(Re.files);return;case"text":ue.preventDefault(),me(Re.text);return;case"full":ue.preventDefault(),y(t("A message carries up to {count} files, so this long text cannot be added as one. Remove a file first.",{count:ie?.perMessage??0}),"danger");return}},ze=(ue)=>{if(ue.text===void 0||Q.current)return;if(!Gk(v,ue.text)){y(t("It is too long to put back into the message box."),"danger");return}E((Re)=>zg(Re,ue.text??"")),q((Re)=>Re.filter((Ee)=>Ee.key!==ue.key)),F.current?.focus()};return n("form",{className:"composer",onSubmit:(ue)=>{ue.preventDefault(),ye()},children:[N.length?e("ul",{className:"attached",children:N.map((ue)=>n("li",{className:"attached-chip","data-kind":ue.text===void 0?"file":"text","data-state":ue.failed?"failed":ue.upload||ue.text!==void 0?"ready":"uploading",title:ue.failed,children:[ue.text===void 0?n(h,{children:[e(Ne,{name:"file",size:14}),n("span",{className:"chip-body",children:[e("span",{className:"chip-name",children:ue.name}),e("span",{className:"meta",children:k(ue.size)})]})]}):n("button",{type:"button",className:"chip-take",disabled:Y,"aria-label":t("Put {name} back into the message",{name:ue.name}),onClick:()=>ze(ue),children:[e(Ne,{name:"file",size:14}),n("span",{className:"chip-body",children:[n("span",{className:"chip-name",children:[ue.name," · ",k(ue.size)]}),e("span",{className:"meta",children:Vk(ue.text)})]})]}),e("button",{type:"button",className:"icon-button","aria-label":t("Remove {name}",{name:ue.name}),disabled:Y,onClick:()=>he(ue),children:e(Ne,{name:"close",size:14})})]},ue.key))}):null,n("div",{className:"composer-row",children:[e("input",{ref:ee,id:ne,type:"file",multiple:!0,hidden:!0,onChange:(ue)=>{ce([...ue.target.files??[]]),ue.target.value=""}}),e("button",{type:"button",className:"icon-button composer-attach","aria-label":t("Attach a file"),disabled:Y,onClick:()=>ee.current?.click(),children:e(Ne,{name:"attach"})}),e("textarea",{ref:F,rows:1,value:v,placeholder:t("Message {name}",{name:c.name}),"aria-label":t("Message {name}",{name:c.name}),enterKeyHint:"send",readOnly:Y,onChange:(ue)=>E(ue.target.value),onKeyDown:ge,onPaste:xe}),c.stoppable?e("button",{type:"button",className:"icon-button composer-stop","aria-label":t("Stop"),onClick:c.onStop,children:e(Ne,{name:"stop",size:18})}):null,e("button",{type:"submit",className:"composer-send","aria-label":t("Send"),disabled:!pe,children:e(Ne,{name:"send",size:20})})]})]})}function U(c){let[v,E]=i(!1),[N,D]=i(),H=()=>{if(v)return;D(void 0),c.onClose()};return e(R,{open:c.open,title:c.title,onClose:H,...c.restoreFocus?{restoreFocus:c.restoreFocus}:{},children:n("div",{className:"stack",children:[e("div",{className:"prose",children:c.children}),N?e(l,{message:N}):null,n("div",{className:"actions",children:[e("button",{type:"button",className:"secondary",disabled:v,onClick:H,children:c.cancelLabel??t("Cancel")}),e("button",{type:"button",className:c.tone==="danger"?"danger":c.tone==="yolo"?"yolo-action":"",disabled:v,onClick:async()=>{E(!0),D(void 0);try{await c.onConfirm(),c.onClose()}catch(q){D(d(q))}finally{E(!1)}},children:c.confirmLabel})]})]})})}var qR=(c)=>c==="sleepy"?"idle":c;function Xk(c,v){let E={};for(let[N,D]of Object.entries(c))E[N]=qR(D);for(let N of v){let D=N.agent;if(!N.typing||D===void 0||!(D in E))continue;let H=E[D];if(H==="waiting"||H==="error")continue;E[D]="speaking"}return E}function Og(c,v){if(c==="speaking")return"happy";return(v?.STATE_EXPRESSION??jR)[c]}var jR={idle:"neutral",thinking:"thinking",working:"determined",waiting:"curious",done:"proud",error:"apologetic",sleepy:"sleepy"};function Mg(c,v){return`s${c}${v.toLowerCase().replace(/[^a-z0-9]/g,"")}`.slice(0,16)}function _g(c,v,E,N,D){return c.composeSvg(v,{frame:"shield",look:E,expr:Og(N,c),state:"idle",still:!0,size:256,uid:D})}function Fk(c){let v=c.delayMs??300,E=c.timers??{set:(q,Y)=>setTimeout(q,Y),clear:(q)=>clearTimeout(q)},N=new Map,D=new Map,H=(q)=>{let Y=D.get(q);if(Y===void 0)return;E.clear(Y),D.delete(q)};return{seed(q,Y){H(q),N.set(q,Og(Y))},update(q,Y){let I=Og(Y);if(!N.has(q)){N.set(q,I);return}if(H(q),N.get(q)===I)return;D.set(q,E.set(()=>{D.delete(q),N.set(q,I),c.setAvatar(q,Y)},v))},forget(q){H(q),N.delete(q)},dispose(){for(let q of[...D.keys()])H(q);N.clear()}}}var YR={idle:r("idle"),thinking:r("thinking"),working:r("working"),waiting:r("waiting"),speaking:r("speaking"),done:r("done"),error:r("error")},IR=()=>({table:t("Round table"),seat:(c,v)=>t("{name} ({state})",{name:c,state:t(YR[v])})}),GR=10;function PR(c){return Pe((v)=>{let E=v.order.map((D)=>v.rooms[D]?.view).filter((D)=>D!==void 0&&D.kind==="agent");return[...c?c.map((D)=>E.find((H)=>H.name===D)).filter((D)=>D!==void 0):E].sort((D,H)=>Number(H.home)-Number(D.home))},c?.join(`
41
+ `)??"")}function QR(c){return Pe((v)=>Object.values(v.rooms).filter((E)=>c?E.key===c:E.view?.kind==="group").map((E)=>({typing:E.typing,...E.agent===void 0?{}:{agent:E.agent}})),c??"")}function X(c){let{variant:v="full",onHandle:E}=c,N=vo(),D=Qn(),H=xo(),q=wo(),Y=PR(c.members),I=Yx(Y.map((Ee)=>Ee.key)),Q=QR(c.groupRoom),F=L("(orientation: portrait)"),ee=v==="full"&&(c.list===!0||F&&Y.length>GR),te=_(()=>Xk(Object.fromEntries(Y.map((Ee)=>[Ee.name,I[Ee.key]??"idle"])),Q),[Y,I,Q]),ne=o(te);ne.current=te;let ie=_(()=>{if(!N)return[];return Y.map((Ee,Se)=>{let Ae=q[Ee.name]??Ee.character??ni(N,Ee);return{id:Ee.name,name:Ee.displayName,color:N.accentOf(Ae,H.look),avatarSvg:_g(N,Ae,H.look,ne.current[Ee.name]??"idle",Mg(Se,Ee.name))}})},[N,Y,q,H.look]),ce=o(ie);ce.current=ie;let me=o(Y);me.current=Y;let re=o({look:D,scheme:H.scheme});re.current={look:D,scheme:H.scheme};let oe=o(null),le=o(void 0),[pe,ye]=i(0),he=o(void 0),ge=o(()=>{return});ge.current=(Ee)=>{let Se=Y.find((Ae)=>Ae.name===Ee);if(!N||!Se)return;return q[Ee]??Se.character??ni(N,Se)};let xe=o(H);xe.current=H;let ze=o(N);ze.current=N;let ue=o(E);ue.current=E;let Re=N!==void 0&&ie.length>0;if(a(()=>{let Ee=oe.current;if(!Re||!Ee)return;let Se=!0,Ae,Me=Fk({setAvatar:(Be,it)=>{let bt=ge.current(Be),ot=ze.current,fe=me.current.findIndex((Ct)=>Ct.name===Be);if(!bt||!ot||fe<0)return;Ae?.setAvatar(Be,_g(ot,bt,xe.current.look,it,Mg(fe,Be)))}});return he.current=Me,(async()=>{let{mountRoundTable:Be}=await (M("x0j9g57j"),import("./chunk-entry-x0j9g57j.js")),it=ce.current.map((ot)=>({...ot,state:ne.current[ot.id]??"idle"})),bt=await Be(Ee,{theme:re.current.look,scheme:re.current.scheme,seats:it,onSeatClick:({id:ot})=>{let fe=me.current.find((Ct)=>Ct.name===ot);if(fe)Wl("room",fe.key)},reducedMotion:"auto",lowPower:"auto",variant:v,listBelow:ee,labels:IR()});if(!Se){bt.dispose();return}Ae=bt,le.current=bt;for(let ot of it)Me.seed(ot.id,ot.state??"idle");ue.current?.(bt),ye((ot)=>ot+1)})(),()=>{Se=!1,Me.dispose(),he.current=void 0,le.current=void 0,ue.current?.(void 0),Ae?.dispose()}},[Re,v,ee]),a(()=>{let Ee=le.current;if(!Ee||ie.length===0)return;let Se=ne.current;Ee.setSeats(ie.map((Ae)=>({...Ae,state:Se[Ae.id]??"idle"})));for(let Ae of ie)he.current?.seed(Ae.id,Se[Ae.id]??"idle")},[ie,pe]),a(()=>{let Ee=le.current;if(Ee)Ee.setTheme(D,H.scheme)},[D,H.scheme,pe]),a(()=>{let Ee=le.current;if(!Ee)return;for(let Se of ce.current){let Ae=te[Se.id]??"idle";Ee.setState(Se.id,Ae),he.current?.update(Se.id,Ae)}},[te,pe]),Y.length===0)return e("p",{className:"table-empty",children:t("No agents are seated yet.")});return e("section",{className:"table-host",ref:oe,"aria-label":t("Round table")})}var Zk=(c,v)=>v?qf(c,v):c;function Kk(c){let v=Pe((Q)=>Q.rooms[c.roomKey]?.view),E=Qn(),N=L("(max-width: 719px)"),[D,H]=i(!1);if(!v||v.kind!=="group")return null;let q=v.members??[],Y=()=>H(!1),I=e(X,{members:q,groupRoom:c.roomKey,variant:"full",list:!0});return n(h,{children:[n("button",{type:"button",className:"icon-button group-table-button","aria-label":t("Table"),"aria-expanded":D,"aria-haspopup":"dialog",onClick:()=>H((Q)=>!Q),children:[e(Ne,{name:"table"}),e("span",{className:"group-table-label",children:t("Table")})]}),E==="camelot"?Zk(e("div",{className:"group-strip",children:e(X,{members:q,groupRoom:c.roomKey,variant:"compact"})}),c.slot):null,N?e(R,{open:D,title:t("Round table"),onClose:Y,children:e("div",{className:"group-table-body",children:I})}):D?Zk(n("aside",{className:"group-table-panel","aria-label":t("Round table"),children:[n("header",{children:[e("h2",{children:t("Round table")}),e("button",{type:"button",className:"icon-button","aria-label":t("Close"),onClick:Y,children:e(Ne,{name:"close"})})]}),e("div",{className:"group-table-body",children:I})]}),c.slot):null]})}var XR=/^Yolo mode approved: ([\s\S]*)$/;function FR(c){if(c==="Conversation started over")return{icon:"reset",text:t("Conversation started over")};let v=XR.exec(c);if(v)return{icon:"bolt",text:t("Yolo mode approved: {action}",{action:v[1]??""})};return{icon:"list",text:c}}function ZR({files:c}){if(c.length===0)return null;return e("ul",{className:"files",children:c.map((v)=>v.type.startsWith("image/")?e("li",{children:e("a",{href:kc(v),target:"_blank",rel:"noreferrer noopener",children:e("img",{src:kc(v),alt:v.name,loading:"lazy",decoding:"async",className:"file-image"})})},v.id):e("li",{children:n("a",{className:"file-chip",href:kc(v),download:v.name,children:[e(Ne,{name:"file",size:16}),e("span",{children:v.name})]})},v.id))})}var Jk=b(function(v){let{message:E}=v,N=yr(ri)?.app?.surface;if(E.kind==="system"){let H=FR(E.text),q=Lk(E.text,N);return n("li",{className:"line","data-enter":v.enter||void 0,children:[e(Ne,{name:q?"conversations":H.icon,size:14}),q?e(yi,{source:E.text}):e("span",{children:H.text})]})}let D=E.kind==="owner";return n("li",{className:"message","data-mine":D||void 0,"data-header":v.header||void 0,"data-enter":v.enter||void 0,children:[D?null:e("span",{className:"message-avatar",children:v.header?e(w,{spec:v.character,name:E.agent??E.author,size:32,live:!1}):null}),n("div",{className:"message-main",children:[v.header?n("div",{className:"message-meta",children:[e("strong",{children:E.author}),e("time",{dateTime:E.at,children:Qx(E.at,v.timeZone)})]}):null,n("div",{className:"bubble",children:[E.text?e(yi,{source:E.text}):null,e(ZR,{files:E.files})]})]})]})}),Wk=b(function(v){let{message:E}=v;return n("li",{className:"message","data-header":"true","data-live":"true",children:[e("span",{className:"message-avatar",children:e(w,{spec:v.character,name:E.agent??E.author,size:32,live:!1})}),n("div",{className:"message-main",children:[e("div",{className:"message-meta",children:e("strong",{children:E.author})}),e("div",{className:"bubble",children:e(yi,{source:E.text})})]})]})}),KR=1e4,$k=b(function(v){let{pending:E}=v,N=yo(),D=Pe((I)=>I.connection!=="open"),[H,q]=i(!1);a(()=>{if(E.failed)return;let I=setTimeout(()=>q(!0),KR);return()=>clearTimeout(I)},[E.failed]);let Y=Boolean(E.failed)||H;return e("li",{className:"message","data-mine":"true","data-header":"true","data-pending":E.failed?"failed":"sending",children:n("div",{className:"message-main",children:[n("div",{className:"bubble",children:[E.text?e(yi,{source:E.text}):null,E.files.length?e("ul",{className:"files",children:E.files.map((I)=>e("li",{children:n("span",{className:"file-chip",children:[e(Ne,{name:"file",size:16}),e("span",{children:I.name})]})},I.id))}):null]}),Y?n("div",{className:"message-meta pending-actions",children:[e("span",{className:"failure-text",children:E.failed?t("Not sent"):t("Not sent yet")}),e("button",{type:"button",className:"link-button",onClick:()=>N.retry(E),children:t("Try again")}),e("button",{type:"button",className:"link-button",onClick:()=>gt.dispatch({type:"pending_dropped",id:E.id}),children:t("Discard")})]}):e("div",{className:"message-meta pending-actions",children:e("span",{className:"pending-note",children:D?t("Waiting to send…"):t("Sending…")})})]})})});var Su=(c,v)=>s.setMode(c,v).then(()=>{return},(E)=>y(d(E),"danger"));function e2(c){let{mode:v}=c,[E,N]=i(),D=async(H)=>{N(H),await Su(c.room,{[H]:!1}),N(void 0)};return e("div",{className:"mode-banner","data-open":Boolean(v),children:e("div",{className:"mode-banner-inner",children:n("div",{className:"mode-lines",children:[v?.yolo?n("div",{className:"mode-line","data-mode":"yolo",title:t("Yolo mode is on: held actions are approved without asking."),children:[e(Ne,{name:"bolt",size:16}),n("span",{children:[t("Yolo mode on"),c.approved>0?` · ${t("{count} approved",{count:c.approved})}`:""]}),e("button",{type:"button",className:"link-button",disabled:E==="yolo",onClick:()=>D("yolo"),children:t("Turn off")})]}):null,v?.longRunning?n("div",{className:"mode-line","data-mode":"long",title:t("Long-running mode is on: turns go on past their time limit."),children:[e(Ne,{name:"timer",size:16}),e("span",{children:t("Long-running on")}),e("button",{type:"button",className:"link-button",disabled:E==="longRunning",onClick:()=>D("longRunning"),children:t("Turn off")})]}):null]})})})}var JR=["M2 15V1M2 5L8 1M2 9L8 5","M2 15V1L8 5V15","M2 15V1M2 4H5L8 7L5 10H2","M2 15V1M2 5L8 1M2 10L8 6","M2 15V1H5L8 4L5 7H2M5 7L8 15","M7 2L3 8L7 14"];function WR(){return n("span",{className:"candle-runes","aria-hidden":"true",children:[n("svg",{className:"candle",viewBox:"0 0 12 22","aria-hidden":"true",focusable:"false",children:[e("path",{className:"candle-flame",d:"M6 1C8.4 4.2 8.8 6.4 6 9C3.2 6.4 3.6 4.2 6 1Z"}),e("path",{className:"candle-wick",d:"M6 8.6V10.4"}),e("rect",{className:"candle-wax",x:"3.5",y:"10.4",width:"5",height:"10.6",rx:"1"})]}),e("span",{className:"runes",children:JR.map((c,v)=>e("svg",{className:"rune","aria-hidden":"true",viewBox:"0 0 10 16",focusable:"false","data-rune":v,children:e("path",{d:c})},v))})]})}function t2(c){let[v,E]=i(!1),{text:N,tools:D}=c.progress,H=Qn()==="camelot";return n("div",{className:"progress","aria-live":"off",children:[n("div",{className:"progress-head",children:[H?e(WR,{}):null,e("span",{className:"progress-bar","aria-hidden":"true"}),e("span",{className:"progress-label",children:t("{name} is working…",{name:c.name})})]}),D.length?e("ul",{className:"chips",children:D.map((q)=>n("li",{className:"chip","data-status":q.status,children:[e("span",{className:"chip-dot","aria-hidden":"true"}),e("span",{children:q.tool}),q.preview?e("span",{className:"chip-preview",children:q.preview}):null]},q.id))}):null,N?e("button",{type:"button",className:"progress-text","data-expanded":v,"aria-expanded":v,"aria-label":t("Show the whole stream"),onClick:()=>E((q)=>!q),children:n("span",{className:"progress-flow",children:[N,e("span",{className:"caret","aria-hidden":"true"})]})}):null]})}function Dg(c){return e("button",{type:"button",id:c.id,role:"switch","aria-checked":c.checked,"aria-label":c.label,"aria-busy":c.busy||void 0,disabled:c.disabled||c.busy,className:"switch",onClick:()=>c.onChange(!c.checked),children:e("span",{className:"switch-thumb"})})}var n2="room-menu-yolo",r2="room-menu-long";function a2(c){let[v,E]=i(!1),N=c.mode??{yolo:!1,longRunning:!1},D=async(H)=>{E(!0),await Su(c.room,{longRunning:H}),E(!1)};return e(R,{open:c.open,title:t("Room menu"),onClose:c.onClose,children:n("ul",{className:"menu",children:[c.readOnly?e("li",{children:c.parent?n("a",{className:"menu-item menu-link",href:u("room",c.parent),onClick:c.onClose,children:[e("span",{className:"menu-icon",children:e(Ne,{name:"rooms"})}),n("span",{className:"menu-text",children:[e("strong",{children:t("Open the parent room")}),e("span",{className:"meta",children:t("Reply to the agent that started this thread.")})]}),e(Ne,{name:"chevron",size:16})]}):e("p",{className:"meta",children:t("A thread has no settings.")})}):null,c.readOnly?null:e("li",{children:n("label",{className:"menu-item menu-toggle",htmlFor:n2,children:[e("span",{className:"menu-icon","data-tone":"yolo",children:e(Ne,{name:"bolt"})}),n("span",{className:"menu-text",children:[e("strong",{children:t("Yolo mode")}),e("span",{className:"meta",children:t("Approve held actions in this room without asking. Risky ones still ask.")})]}),e(Dg,{id:n2,checked:N.yolo,label:t("Yolo mode"),onChange:(H)=>{if(H)c.onAskYolo();else E(!0),Su(c.room,{yolo:!1}).then(()=>E(!1))},busy:v})]})}),c.readOnly?null:e("li",{children:n("label",{className:"menu-item menu-toggle",htmlFor:r2,children:[e("span",{className:"menu-icon","data-tone":"long",children:e(Ne,{name:"timer"})}),n("span",{className:"menu-text",children:[e("strong",{children:t("Long-running mode")}),e("span",{className:"meta",children:t("Let turns go on past their time limit, up to the host's cap. Questions still wait for you.")})]}),e(Dg,{id:r2,checked:N.longRunning,label:t("Long-running mode"),onChange:D,busy:v})]})}),c.agent?e("li",{children:n("a",{className:"menu-item menu-link",href:u("agent",c.agent),onClick:c.onClose,children:[e("span",{className:"menu-icon",children:e(Ne,{name:"profile"})}),n("span",{className:"menu-text",children:[e("strong",{children:t("Profile")}),e("span",{className:"meta",children:t("Name, prompt, model and picture")})]}),e(Ne,{name:"chevron",size:16})]})}):null,c.readOnly?null:e("li",{children:n("button",{type:"button",className:"menu-item menu-link",onClick:c.onAskStartOver,children:[e("span",{className:"menu-icon","data-tone":"danger",children:e(Ne,{name:"reset"})}),n("span",{className:"menu-text",children:[e("strong",{children:t("Start over")}),e("span",{className:"meta",children:t("Archive this conversation and begin a new one. Memory stays.")})]})]})})]})})}var $R=300000,i2=lx;function eO(c){let v=o(!0),E=o(0),[N,D]=i(!1),H=A(()=>{let I=c.current;if(!I)return;if(I.scrollHeight!==E.current){E.current=I.scrollHeight;return}v.current=I.scrollHeight-I.scrollTop-I.clientHeight<96,D(!v.current)},[c]),q=A(()=>{let I=c.current;if(!I)return;if(E.current=I.scrollHeight,v.current)I.scrollTo({top:I.scrollHeight});else D(!0)},[c]),Y=A((I)=>{let Q=c.current;if(!Q)return;v.current=!0,E.current=Q.scrollHeight,Q.scrollTo({top:Q.scrollHeight,behavior:I&&!Kl()?"smooth":"auto"}),D(!1)},[c]);return{away:N,onScroll:H,onGrow:q,toEnd:Y}}function Lg({roomKey:c}){let v=yo(),E=g(),{now:N}=S(),D=Pe((Ce)=>Ce.rooms[c]),H=Pe((Ce)=>Ce.listed),q=Pe((Ce)=>Ce.connects),Y=Pe((Ce)=>Ce.connection==="open"),I=Pe((Ce)=>Ce.limits),Q=Pe((Ce)=>({rooms:Ce.rooms,cards:Ce.cards,cardOrder:Ce.cardOrder})),F=wo(),ee=So(c),te=D?.view,ne=te?.parent?Q.rooms[te.parent]?.view:void 0,ie=te?.character??ne?.character,ce=O(ie),[me,re]=i(),[oe,le]=i(!1),[pe,ye]=i(!1),[he,ge]=i(!1),[xe,ze]=i(null),[ue,Re]=i(),[Ee,Se]=i(),Ae=o(null),Me=o(null),Be=o(null),{away:it,onScroll:bt,onGrow:ot,toEnd:fe}=eO(Me),Ct=o(void 0),Ft=o(void 0);a(()=>(v.focus(c),()=>v.focus(void 0)),[v,c]),a(()=>{let Ce=!0;return s.messages(c,void 0,i2).then((lt)=>{if(!Ce)return;gt.dispatch({type:"history_loaded",room:c,messages:lt.messages,more:lt.more,cards:lt.cards,older:!1}),re(void 0),le(!0)},(lt)=>{if(Ce)re(d(lt))}),()=>{Ce=!1}},[c,q]);let de=_(()=>px(Q,c),[Q,c]);if(oe&&Ct.current===void 0)Ct.current=D?.messages.at(-1)?.id??0;Cu(()=>{if(oe)fe(!1)},[oe]),Cu(()=>{let Ce=Me.current;if(Ce&&Ft.current!==void 0)Ce.scrollTop+=Ce.scrollHeight-Ft.current,Ft.current=void 0},[D?.messages[0]?.id]),a(()=>{let Ce=Be.current;if(!Ce||typeof ResizeObserver>"u")return;let lt=new ResizeObserver(ot);return lt.observe(Ce),()=>lt.disconnect()},[ot]);let sn=async()=>{let Ce=D?.messages[0];if(!Ce||pe)return;ye(!0),Ft.current=Me.current?.scrollHeight;try{let lt=await s.messages(c,Ce.id,i2);gt.dispatch({type:"history_loaded",room:c,messages:lt.messages,more:lt.more,cards:lt.cards,older:!0})}catch(lt){Ft.current=void 0,y(d(lt),"danger")}finally{ye(!1)}},dr=(Ce,lt)=>!lt||lt.kind!==Ce.kind||lt.author!==Ce.author||Date.parse(Ce.at)-Date.parse(lt.at)>$R,Lo=tO(de,E.timeZone,N,dr),[Vr,wt]=i(!1),mr=H&&!te;if(a(()=>{if(!mr||Vr)return;let Ce=!0;return s.rooms().then((lt)=>{if(gt.dispatch({type:"rooms_loaded",rooms:lt.rooms}),Ce)wt(!0)},()=>{if(Ce)wt(!0)}),()=>{Ce=!1}},[mr,Vr]),mr&&Vr)return e("section",{className:"room",children:n("div",{className:"page",children:[e(m,{children:t("This room is not available.")}),e("a",{className:"back",href:u("rooms"),children:t("Back to rooms")})]})});let It=te?.displayName??c,pr=[...D?.messages??[]].reverse().find((Ce)=>Ce.kind==="agent"),wn=D?.mode,Uo=te?.kind==="agent"?te.name:void 0,Ho=te?.kind==="thread"?te.parent:void 0;return n("section",{className:"room",style:ce,onDragOver:(Ce)=>{if(Ce.dataTransfer.types.includes("Files"))Ce.preventDefault()},onDrop:(Ce)=>{if(!Ce.dataTransfer.files.length)return;Ce.preventDefault(),Se([...Ce.dataTransfer.files])},children:[n("header",{className:"room-head",children:[e("a",{className:"icon-button room-back",href:u("rooms"),"aria-label":t("Back to rooms"),children:e(Ne,{name:"back"})}),te?.kind==="group"?e(Oc,{size:36,members:(te.members??[]).map((Ce)=>({name:Ce,spec:F[Ce]}))}):e(w,{spec:ie,name:ne?.name??te?.name??It,size:44,state:ee,label:It}),n("div",{className:"room-title",children:[e("h1",{children:It}),e("span",{className:"room-status","data-working":D?.typing||void 0,children:te?.kind==="thread"?te.closed?t("Thread · finished"):D?.typing?t("Working…"):t("Thread · read-only"):te?.readOnly?t("Read-only"):D?.typing?t("Working…"):te?.kind==="group"?t("Group"):te?.home?t("Home"):t("Idle")})]}),te?.kind==="group"?e(Kk,{roomKey:c,slot:xe}):null,e("button",{ref:Ae,type:"button",className:"icon-button","aria-label":t("Room menu"),"aria-haspopup":"dialog",onClick:()=>ge(!0),children:e(Ne,{name:"menu"})})]}),e("div",{className:"room-table-slot",ref:ze}),!Y?n("div",{className:"offline-banner",role:"status",children:[e("span",{className:"spinner","aria-hidden":"true"}),t("Reconnecting… messages wait here until it is back.")]}):null,e(e2,{room:c,mode:wn&&(wn.yolo||wn.longRunning)?wn:void 0,approved:D?.autoApproved??0}),e("div",{className:"room-scroll",ref:Me,onScroll:bt,children:n("div",{className:"room-content",ref:Be,children:[me?e(l,{message:me}):null,!oe&&!me?e(p,{}):null,D?.more?e("button",{type:"button",className:"secondary older",disabled:pe,onClick:sn,children:pe?t("Loading…"):t("Load earlier messages")}):null,oe&&de.length===0?e(m,{children:t("No messages yet. Say hello.")}):null,e("ol",{className:"messages",children:Lo.map((Ce)=>{switch(Ce.item.kind){case"message":return e(nO,{day:Ce.day,children:e(Jk,{message:Ce.item.message,character:Ce.item.message.agent?F[Ce.item.message.agent]:void 0,header:Ce.header,enter:Ct.current!==void 0&&Ce.item.message.id>Ct.current,timeZone:E.timeZone})},`m${Ce.item.message.id}`);case"card":return e("li",{className:"slot","data-enter":!0,children:e(Bk,{card:Ce.item.card,timeZone:E.timeZone})},`c${Ce.item.id}`);case"pending":return e($k,{pending:Ce.item.pending},`p${Ce.item.pending.id}`);case"live":return e(Wk,{message:Ce.item.message,character:Ce.item.message.agent?F[Ce.item.message.agent]:void 0},`l${Ce.item.message.live}`);default:return null}})}),D?.typing?e(t2,{name:pr?.author??It,progress:D.progress}):null]})}),it?n("button",{type:"button",className:"to-end",onClick:()=>fe(!0),children:[e(Ne,{name:"send",size:16,style:{transform:"rotate(180deg)"}}),t("Latest")]}):null,te?.readOnly?n("p",{className:"room-note",children:[t("This is a dispatch thread. It shows what was sent and answered; reply in its parent room.")," ",Ho?e("a",{href:u("room",Ho),children:t("Open the parent room")}):null]}):e(Qk,{name:It,limits:I,stoppable:Boolean(D?.stoppable),onSend:(Ce,lt)=>{v.say(c,Ce,lt),fe(!0)},onStop:()=>v.send({type:"stop",room:c}),...Ee?{incoming:Ee,onIncomingTaken:()=>Se(void 0)}:{}},c),e(a2,{open:he,room:c,mode:wn,agent:Uo,readOnly:te?.readOnly??!1,parent:Ho,onClose:()=>ge(!1),onAskYolo:()=>{ge(!1),Re("yolo")},onAskStartOver:()=>{ge(!1),Re("start-over")}}),n(U,{open:ue==="yolo",title:t("Turn on yolo mode?"),confirmLabel:t("Turn on yolo mode"),tone:"yolo",restoreFocus:()=>Ae.current,onClose:()=>Re(void 0),onConfirm:async()=>{await s.setMode(c,{yolo:!0})},children:[e("p",{children:t("In this room, the agent's held actions are approved for you, without a card, as soon as they come up.")}),e("p",{children:t("Risky classes still ask: running as another user, deleting files, force pushes, disk, service and firewall changes, and anything that names its own approvers. The host can add more.")}),e("p",{children:t("Every approval it makes is written into the conversation, and a banner stays up while yolo mode is on.")})]}),e(U,{open:ue==="start-over",title:t("Start over {name}?",{name:It}),confirmLabel:t("Start over"),tone:"danger",restoreFocus:()=>Ae.current,onClose:()=>Re(void 0),onConfirm:async()=>{await s.startRoomOver(c)},children:e("p",{children:t("The current conversation is archived and the next message begins a new one. Long-term memory is kept. A turn that is running finishes first.")})})]})}function tO(c,v,E,N){return _(()=>{let D,H;return c.map((q)=>{if(q.kind!=="message")return{item:q,header:!0,day:void 0};let Y=Fx(q.message.at,v),I=Y!==H?Xx(q.message.at,E,v):void 0;H=Y;let Q=N(q.message,D)||I!==void 0;return D=q.message,{item:q,header:Q,day:I}})},[c,v,E])}function nO(c){return n(h,{children:[c.day?e("li",{className:"day","aria-hidden":"true",children:e("span",{children:c.day})}):null,c.children]})}function rO(c,v){let E=c.replace(/!?\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/(^|\s)([-*+]|\d+\.)\s/g,"$1").replace(/[*_`#>~]+/g,"").replace(/\s+/g," ").trim();if(E)return E.slice(0,140);return v?vc(v,"{count} file","{count} files"):""}function aO(c){let v=wo();return e(Oc,{size:c.size,members:c.members.map((E)=>({name:E,spec:v[E]}))})}function iO(c){let v=So(c.view.key);return e(w,{spec:c.view.character,name:c.view.name,size:c.size,state:v,live:Ix(v)})}function oO(c){return c.view.kind==="group"?e(aO,{members:c.view.members??[],size:c.size}):e(iO,{view:c.view,size:c.size})}var o2=()=>n("span",{className:"typing",role:"img","aria-label":t("Working"),children:[e("i",{}),e("i",{}),e("i",{})]}),l2=({count:c})=>e("span",{className:"badge badge-warn",children:vc(c,"{count} card waiting","{count} cards waiting")}),lO=b(function(v){let{view:E}=v,N=O(E.character);return n("li",{children:[n("a",{className:"room-row",href:u("room",E.key),"data-home":E.home||void 0,"aria-current":v.active?"page":void 0,style:N,children:[e(oO,{view:E,size:E.home?52:44}),n("span",{className:"room-row-main",children:[n("span",{className:"room-row-top",children:[e("strong",{children:E.displayName}),E.home?e("span",{className:"badge badge-accent",children:t("Home")}):null,E.kind==="group"?e("span",{className:"badge",children:t("Group")}):null,e("span",{className:"room-row-time",children:v.at?C(v.at,v.now,v.timeZone):""})]}),n("span",{className:"room-row-preview",children:[v.typing?e(o2,{}):null,e("span",{children:v.preview||t("No messages yet")})]}),n("span",{className:"room-row-badges",children:[v.waiting?e(l2,{count:v.waiting}):null,v.yolo?n("span",{className:"badge badge-yolo",children:[e(Ne,{name:"bolt",size:12}),t("Yolo")]}):null,v.longRunning?n("span",{className:"badge badge-long",children:[e(Ne,{name:"timer",size:12}),t("Long-running")]}):null]})]}),e(Ne,{name:"chevron",size:16,className:"room-row-chevron"})]}),v.threads]})}),uO=b(function(v){let{view:E}=v;return e("li",{children:n("a",{className:"thread-row",href:u("room",E.key),"data-closed":E.closed||void 0,"aria-current":v.active?"page":void 0,children:[e(Ne,{name:"conversations",size:16,className:"thread-row-icon"}),e("span",{className:"thread-row-title",children:E.displayName}),v.typing?e(o2,{}):null,v.waiting?e(l2,{count:v.waiting}):null,e("span",{className:"room-row-time",children:v.at?C(v.at,v.now,v.timeZone):""})]})})});function Hg(c){return Pe((E)=>c.map((N)=>{let D=E.rooms[N],H=dx(E,N);return{key:N,view:D?.view,typing:D?.typing??!1,yolo:D?.mode.yolo??!1,longRunning:D?.mode.longRunning??!1,waiting:Sc(E,N),preview:H?rO(H.text,H.files.length):"",at:H?.at}}),c.join(",")).flatMap((E)=>E.view?[{...E,view:E.view}]:[])}function u2(c){let{now:v}=S(),{timeZone:E}=g(),N=Hg(c.open),D=Hg(c.closed);if(N.length===0&&D.length===0)return null;let H=({key:q,...Y})=>e(uO,{...Y,active:q===c.active,now:v,timeZone:E},q);return n("div",{className:"thread-group",children:[N.length?e("ul",{className:"thread-list","aria-label":t("Dispatch threads"),children:N.map(H)}):null,D.length?n("details",{className:"thread-closed",...D.some((q)=>q.key===c.active)?{open:!0}:{},children:[e("summary",{children:vc(D.length,"{count} finished thread","{count} finished threads")}),e("ul",{className:"thread-list",children:D.map(H)})]}):null]})}function Ug(c){let{now:v}=S(),{timeZone:E}=g(),N=Hg(c.rooms);if(N.length===0)return null;return n("section",{className:"stack",children:[e("h2",{className:"section-title",children:c.title}),e("ul",{className:"room-list",children:N.map(({key:D,...H})=>{let q=c.threads[D];return e(lO,{...H,active:D===c.active,now:v,timeZone:E,...q?{threads:e(u2,{open:q.open,closed:q.closed,active:c.active})}:{}},D)})})]})}function bf(c){let v=Pe((Y)=>{let I={home:[],agents:[],groups:[]},Q={},F=new Set(Y.order.filter((te)=>Y.rooms[te]?.view?.kind!=="thread")),ee={open:[],closed:[]};for(let te of Y.order){let ne=Y.rooms[te]?.view;if(!ne)continue;if(ne.kind==="thread"){let ie=ne.parent&&F.has(ne.parent)?ne.parent:void 0,ce=ee;if(ie)ce=Q[ie]??{open:[],closed:[]},Q[ie]=ce;(ne.closed?ce.closed:ce.open).push(te)}else if(ne.home)I.home.push(te);else if(ne.kind==="agent")I.agents.push(te);else I.groups.push(te)}return JSON.stringify({listed:Y.listed,groups:I,threads:Q,orphans:ee})}),{listed:E,groups:N,threads:D,orphans:H}=_(()=>JSON.parse(v),[v]),q=Object.values(N).every((Y)=>Y.length===0)&&H.open.length+H.closed.length===0;return n("div",{className:"page","data-column":c.active?"":void 0,children:[n("header",{className:"page-head",children:[e("h1",{children:t("Rooms")}),n("button",{type:"button",className:"secondary search-button",onClick:c.onSearch,children:[e(Ne,{name:"search",size:16}),e("span",{children:t("Find a room")}),e("kbd",{children:"⌘K"})]})]}),E&&q?e(m,{children:t("No rooms yet. Rooms appear when the team has an agent.")}):null,!E?n("div",{className:"stack","aria-busy":"true",children:[e("div",{className:"skeleton"}),e("div",{className:"skeleton"}),e("div",{className:"skeleton"})]}):null,e(Ug,{title:t("Home"),rooms:N.home,threads:D,active:c.active}),e(Ug,{title:t("Agents"),rooms:N.agents,threads:D,active:c.active}),e(Ug,{title:t("Groups"),rooms:N.groups,threads:D,active:c.active}),H.open.length+H.closed.length>0?n("section",{className:"stack",children:[e("h2",{className:"section-title",children:t("Dispatch threads")}),e(u2,{open:H.open,closed:H.closed,active:c.active})]}):null]})}function x(c,v){let{version:E}=S(),[N,D]=i({data:void 0,error:void 0,subject:v});return a(()=>{let H=!0;return c().then((q)=>{if(H)D({data:q,error:void 0,subject:v})},(q)=>{if(H)D((Y)=>({data:Y.subject===v?Y.data:void 0,error:d(q),subject:v}))}),()=>{H=!1}},[v,E]),N.subject===v?{data:N.data,error:N.error}:{data:void 0,error:void 0}}var sO={mon:r("Mon"),tue:r("Tue"),wed:r("Wed"),thu:r("Thu"),fri:r("Fri"),sat:r("Sat"),sun:r("Sun")};function cO(c){if(typeof c!=="object"||c===null)return"";let v=c,E=typeof v.time==="string"?v.time:"";switch(v.kind){case"once":return t("Once on {date} at {time}",{date:String(v.date??""),time:E});case"every":return Number(v.everyDays)===1?t("Every day at {time}",{time:E}):t("Every {count} days at {time}",{count:Number(v.everyDays),time:E});case"weekly":{let N=Array.isArray(v.weekdays)?v.weekdays.map((D)=>t(sO[String(D)]??String(D))).join(t(", ")):"";return t("{days} at {time}",{days:N,time:E})}default:return""}}function s2(){let{timeZone:c}=g(),[v,E]=i(0),[N,D]=i(),{data:H,error:q}=x(()=>s.schedules(),`schedules:${v}`);return n("div",{className:"page",children:[e("header",{className:"page-head",children:e("h1",{children:t("Schedules")})}),q?e(l,{message:q}):null,!H&&!q?e(p,{}):null,H&&H.schedules.length===0?e(m,{children:t("Nothing is scheduled. Ask an agent to remind you or to run something later.")}):null,e("ul",{className:"schedule-list",children:H?.schedules.map((Y)=>n("li",{className:"card schedule",children:[n("div",{className:"schedule-main",children:[n("div",{className:"card-head",children:[e("strong",{children:Y.title}),Y.lastStatus?e(f,{children:Y.lastStatus}):null]}),n("p",{className:"meta",children:[cO(Y.recurrence)," ·"," ",t("next {when}",{when:T(Y.nextRun,c)})]}),e("p",{className:"schedule-prompt",children:Y.prompt}),n("p",{className:"meta",children:[Y.room?e("a",{href:u("room",Y.room),children:Y.label}):Y.label," ","· ",t("set by {name}",{name:Y.createdBy})]})]}),e("button",{type:"button",className:"icon-button danger-icon","aria-label":t("Cancel {title}",{title:Y.title}),onClick:()=>D(Y),children:e(Ne,{name:"trash"})})]},Y.id))}),e(U,{open:N!==void 0,title:t("Cancel this schedule?"),confirmLabel:t("Cancel schedule"),tone:"danger",onClose:()=>D(void 0),onConfirm:async()=>{if(!N)return;await s.cancelSchedule(N.id),E((Y)=>Y+1),y(t("Schedule cancelled."))},children:e("p",{children:t("“{title}” will not run again. Runs that already happened stay in the conversation.",{title:N?.title??""})})})]})}var Bg=()=>typeof navigator<"u"&&("serviceWorker"in navigator)&&typeof window<"u"&&("PushManager"in window)&&("Notification"in window),xf=()=>navigator.serviceWorker.ready;async function fO(c){let v=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(c));return Array.from(new Uint8Array(v),(E)=>E.toString(16).padStart(2,"0")).join("")}var dO=(c)=>Uint8Array.from(atob(c.replaceAll("-","+").replaceAll("_","/")),(v)=>v.charCodeAt(0)),mO=(c,v)=>{if(!c||c.byteLength!==v.byteLength)return!1;return new Uint8Array(c).every((N,D)=>N===v[D])};function pO(){let c=navigator.userAgent,v=/Edg\//.test(c)?"Edge":/Firefox\//.test(c)?"Firefox":/Chrome\//.test(c)?"Chrome":/Safari\//.test(c)?"Safari":"Browser",E=/iPhone|iPad/.test(c)?"iOS":/Android/.test(c)?"Android":/Mac OS X/.test(c)?"macOS":/Windows/.test(c)?"Windows":/Linux/.test(c)?"Linux":"";return E?`${v} on ${E}`:v}async function c2(){if(!Bg())return"unsupported";if(Notification.permission==="denied")return"blocked";return await(await xf()).pushManager.getSubscription()&&Notification.permission==="granted"?"on":"off"}async function f2(){if(!Bg())return;let c=await(await xf()).pushManager.getSubscription();return c?fO(c.endpoint):void 0}async function d2(){if(await Notification.requestPermission()!=="granted")throw Error("permission");let{key:v}=await s.pushKey(),E=dO(v),{pushManager:N}=await xf(),D=await N.getSubscription();if(D&&!mO(D.options.applicationServerKey,E))await D.unsubscribe(),D=null;let q=(D??await N.subscribe({userVisibleOnly:!0,applicationServerKey:E})).toJSON();if(!q.endpoint||!q.keys?.p256dh||!q.keys.auth)throw Error("subscription");await s.addPushDevice({endpoint:q.endpoint,keys:{p256dh:q.keys.p256dh,auth:q.keys.auth},label:pO()})}async function wf(){if(!Bg())return;let c=await(await xf()).pushManager.getSubscription();if(!c)return;await s.removePushEndpoint(c.endpoint),await c.unsubscribe()}var Sf;if(typeof window<"u")window.addEventListener("beforeinstallprompt",(c)=>{c.preventDefault(),Sf=c});var hO=()=>typeof matchMedia==="function"&&(matchMedia("(display-mode: standalone)").matches||navigator.standalone===!0),gO=[{value:"system",label:r("System"),icon:"system"},{value:"light",label:r("Light"),icon:"sun"},{value:"dark",label:r("Dark"),icon:"moon"}],m2=[{value:"modern",label:r("Modern"),hint:r("Plain and neutral, with round avatars.")},{value:"camelot",label:r("Camelot"),hint:r("Parchment by day, night castle by night, gold rules, shield avatars and wax seals.")}];function yO({enabled:c,quietHours:v}){let[E,N]=i(),[D,H]=i([]),[q,Y]=i(),[I,Q]=i(!1),F=A(async()=>{N(await c2()),Y(await f2()),H((await s.pushDevices()).devices)},[]);if(a(()=>{if(c)F().catch(()=>N("unsupported"))},[c,F]),!c)return null;let ee=async(te)=>{Q(!0);try{await te()}catch(ne){y(ne instanceof Error&&ne.message==="permission"?t("Notifications were not allowed. Allow them in the browser's site settings."):d(ne),"danger")}finally{await F().catch(()=>{return}),Q(!1)}};return n("section",{className:"card stack",children:[e("h2",{children:t("Notifications")}),e("p",{className:"meta",children:E==="unsupported"?t("This browser cannot get push notifications. On iPhone and iPad, install the app from Share, Add to Home Screen, and open it from there."):E==="blocked"?t("Notifications are blocked for this site. Allow them in the browser's site settings."):t("Get a notification on this device when a card waits for you or an agent reports on its own, while the app is not open.")}),v?e("p",{className:"meta",children:t("Quiet hours, {start} to {end} ({zone}): no notification for an agent's report or a notice. A card waiting for you still notifies. The server sets the hours.",{start:v.start,end:v.end,zone:v.timeZone})}):null,E==="off"||E==="on"?e("div",{className:"actions",children:e("button",{type:"button",className:E==="on"?"secondary":void 0,disabled:I,onClick:()=>ee(E==="on"?wf:d2),children:E==="on"?t("Turn off on this device"):t("Turn on for this device")})}):null,D.length>0?e("ul",{className:"stack",children:D.map((te)=>n("li",{className:"card-head",children:[n("span",{children:[te.label??t("Device"),te.id===q?` (${t("this device")})`:""]}),e("button",{type:"button",className:"secondary",disabled:I,onClick:()=>ee(async()=>{if(te.id===q)await wf();else await s.removePushDevice(te.id)}),children:t("Remove")})]},te.id))}):null]})}function p2(){let{preference:c}=bo(),v=Qn(),E=g().look??"modern",N=Pe((Q)=>Q.principal),[D,H]=i(),[q,Y]=i(Sf!==void 0);a(()=>{s.session().then(H,()=>{return});let Q=()=>Y(!0);return window.addEventListener("beforeinstallprompt",Q),()=>window.removeEventListener("beforeinstallprompt",Q)},[]);let I=hO();return n("div",{className:"page",children:[e("header",{className:"page-head",children:e("h1",{children:t("Settings")})}),n("section",{className:"card stack",children:[e("h2",{children:t("Appearance")}),n("fieldset",{className:"segmented segmented-wide",children:[e("legend",{className:"visually-hidden",children:t("Color scheme")}),gO.map((Q)=>n("label",{"data-checked":c===Q.value,children:[e("input",{type:"radio",name:"theme",checked:c===Q.value,onChange:(F)=>{let ee=F.target.getBoundingClientRect();Ac(Q.value,{x:ee.left+ee.width/2,y:ee.top+ee.height/2})}}),e(Ne,{name:Q.icon,size:18}),t(Q.label)]},Q.value))]}),n("fieldset",{className:"segmented segmented-wide",children:[e("legend",{className:"visually-hidden",children:t("Look")}),m2.map((Q)=>n("label",{"data-checked":v===Q.value,children:[e("input",{type:"radio",name:"look",checked:v===Q.value,onChange:()=>zx(Q.value===E?void 0:Q.value)}),n("span",{className:"look-swatch","data-swatch":Q.value,"aria-hidden":"true",children:[e("i",{}),e("i",{}),e("i",{})]}),t(Q.label)]},Q.value))]}),e("p",{className:"meta",children:t(m2.find((Q)=>Q.value===v)?.hint??"")})]}),n("section",{className:"card stack",children:[e("h2",{children:t("Install")}),I?e("p",{className:"meta",children:t("This page is installed on this device.")}):q?n(h,{children:[e("p",{className:"meta",children:t("Install it to open from your home screen or dock, in its own window.")}),e("div",{className:"actions",children:n("button",{type:"button",onClick:async()=>{await Sf?.prompt(),Sf=void 0,Y(!1)},children:[e(Ne,{name:"download",size:16}),t("Install the app")]})})]}):e("p",{className:"meta",children:t("To install it, use your browser's Install option, or on iPhone and iPad, Share and then Add to Home Screen.")})]}),e(yO,{enabled:D?.push===!0,quietHours:D?.quietHours}),n("section",{className:"card stack",children:[e("h2",{children:t("Account")}),e("p",{className:"meta",children:N?t("Signed in as {name}.",{name:N.name}):D?t("Signed in as {name}.",{name:D.principal.name}):""}),D?.auth==="password"?e("form",{method:"post",action:"auth/logout",onSubmit:(Q)=>{Q.preventDefault();let F=Q.currentTarget;wf().catch(()=>{return}).finally(()=>F.submit())},children:e("div",{className:"actions",children:n("button",{type:"submit",className:"secondary",children:[e(Ne,{name:"logout",size:16}),t("Log out")]})})}):null]})]})}var vO=Hn(()=>(M("c1c0ccda"),import("./chunk-overview-c1c0ccda.js")).then((c)=>({default:c.OverviewPage}))),bO=Hn(()=>(M("sfsgmsdm"),import("./chunk-conversations-sfsgmsdm.js")).then((c)=>({default:c.ConversationsPage}))),xO=Hn(()=>(M("wjqk37f5"),import("./chunk-transcript-wjqk37f5.js")).then((c)=>({default:c.TranscriptPage}))),wO=Hn(()=>(M("v60aswry"),import("./chunk-notes-v60aswry.js")).then((c)=>({default:c.NotesPage}))),SO=Hn(()=>(M("r8rwbc5y"),import("./chunk-skills-r8rwbc5y.js")).then((c)=>({default:c.SkillsPage}))),kO=Hn(()=>(M("pk0fh4y6"),import("./chunk-connectors-pk0fh4y6.js")).then((c)=>({default:c.ConnectorsPage}))),EO=Hn(()=>(M("pmr7zrgm"),import("./chunk-table-pmr7zrgm.js")).then((c)=>({default:c.TablePage}))),TO={overview:r("Overview"),conversations:r("Conversations"),notes:r("Notes"),skills:r("Skills"),connectors:r("Connectors"),rooms:r("Rooms"),schedules:r("Schedules"),table:r("Round table"),settings:r("Settings"),more:r("More")};function g2(){let[c,v]=i(),[E,N]=i();if(a(()=>{s.config().then(async(H)=>{await yc(H.locale).catch((q)=>console.warn("the built-in wording failed to load",q)),X1(H),Rc(H.look),tx(H.mountPath,H.panes[0]),document.documentElement.lang=H.locale??"en",v(H),document.title=H.title}).catch((H)=>N(d(H)))},[]),!c)return e("div",{className:"page",children:E?e(l,{message:E}):e(p,{})});let D=e(AO,{config:c});return e(ri.Provider,{value:c,children:c.app&&c.panes.includes("rooms")?e(vx,{protocol:c.app.protocol,children:D}):D})}function CO(){a(()=>{let c=window.visualViewport,v=document.documentElement,E=()=>{v.style.setProperty("--app-height",`${c?.height??window.innerHeight}px`),v.style.setProperty("--app-top",`${c?.offsetTop??0}px`)};return E(),c?.addEventListener("resize",E),c?.addEventListener("scroll",E),window.addEventListener("resize",E),()=>{c?.removeEventListener("resize",E),c?.removeEventListener("scroll",E),window.removeEventListener("resize",E)}},[])}function NO(c,v){let E=Pe((D)=>D.revision),N=Pe((D)=>D.connects);a(()=>{if(!c)return;let D=!0;return s.rooms().then((H)=>{if(D)gt.dispatch({type:"rooms_loaded",rooms:H.rooms})},()=>{return}),()=>{D=!1}},[c,E,N,v])}function h2(){let{resolved:c}=bo();return e("button",{type:"button",className:"icon-button","aria-label":c==="dark"?t("Switch to light"):t("Switch to dark"),onClick:(v)=>{let E=v.currentTarget.getBoundingClientRect();Ac(c==="dark"?"light":"dark",{x:E.left+E.width/2,y:E.top+E.height/2})},children:e(Ne,{name:c==="dark"?"sun":"moon"})})}function AO({config:c}){let v=Hx(),E=rx(),D=c.app!==void 0&&c.panes.includes("rooms"),[H,q]=i(!1),Y=L("(min-width: 1024px)"),I=o(null);CO(),NO(D,v.version);let Q=Pe((ge)=>ge.connection),F=Pe((ge)=>ge.forbidden),ee=Pe((ge)=>ge.cardOrder.filter((xe)=>!ge.cards[xe]?.outcome).length);a(()=>{document.title=ee?`(${ee}) ${c.title}`:c.title},[ee,c.title]),a(()=>{if(!D)return;let ge=(xe)=>{if((xe.metaKey||xe.ctrlKey)&&xe.key.toLowerCase()==="k")xe.preventDefault(),q((ze)=>!ze)};return window.addEventListener("keydown",ge),()=>window.removeEventListener("keydown",ge)},[D]);let te=_(()=>[...c.panes.map((ge)=>({pane:ge,label:t(TO[ge]),icon:tu[ge]})),...D?[{pane:"settings",label:t("Settings"),icon:tu.settings}]:[]],[c.panes,D]),ne=c.panes[0]??"conversations",ce=((ge)=>c.panes.includes(ge)||D&&["room","agent","settings","more"].includes(ge)||ge==="more")(E.pane)?E.pane:ne,me=D&&(ce==="room"||ce==="agent")&&Boolean(E.key),re=ce==="room"||ce==="agent"?"rooms":ce;a(()=>{I.current?.scrollTo(0,0)},[ce,E.key]);let oe=(()=>{let ge=te.slice(0,3);return te.length>4?[...ge,{pane:"more",label:t("More"),icon:tu.more}]:te})(),le=te.filter((ge)=>!oe.some((xe)=>xe.pane===ge.pane)),pe=(()=>{if(F)return e("div",{className:"page",children:e(l,{message:t("This account is not an owner of this host, so the app stays closed. Reload the page to try again.")})});switch(ce){case"rooms":return e(bf,{onSearch:()=>q(!0)});case"room":if(!E.key)return e(bf,{onSearch:()=>q(!0)});return Y?n("div",{className:"split",children:[e("div",{className:"split-list",children:e(bf,{onSearch:()=>q(!0),active:E.key})}),e("div",{className:"split-detail",children:e(Lg,{roomKey:E.key},E.key)})]}):e(Lg,{roomKey:E.key},E.key);case"agent":return E.key?e(Gx,{name:E.key},E.key):null;case"schedules":return e(s2,{});case"table":return e(EO,{});case"settings":return e(p2,{});case"more":return e(Px,{items:le});case"overview":return e(ku,{children:e(vO,{})});case"conversations":return e(ku,{children:E.key?e(xO,{conversationKey:E.key},E.key):e(bO,{})});case"notes":return e(ku,{children:e(wO,{})});case"skills":return e(ku,{children:e(SO,{})});case"connectors":return e(ku,{children:e(kO,{})});default:return null}})(),ye=D?Q==="open":v.connected,he=e("span",{className:"live-chip","data-on":ye||void 0,title:ye?t("Receiving live updates"):t("Reconnecting"),children:ye?t("Live"):t("Reconnecting…")});return n(Pp.Provider,{value:v,children:[n("div",{className:"app","data-fill":me||void 0,children:[n("aside",{className:"rail",children:[n("div",{className:"brand",children:[e(Dp,{}),e("h1",{children:c.title})]}),e("nav",{className:"rail-nav","aria-label":t("Panes"),children:te.map((ge)=>n("a",{className:"rail-link",href:u(ge.pane),"aria-current":ge.pane===re?"page":void 0,children:[e(Ne,{name:ge.icon}),ge.label,ge.pane==="rooms"&&ee?e("span",{className:"tab-badge",children:ee}):null]},ge.pane))}),n("div",{className:"rail-foot",children:[he,D?e("button",{type:"button",className:"icon-button","aria-label":t("Find a room"),onClick:()=>q(!0),children:e(Ne,{name:"search"})}):null,e(h2,{})]})]}),n("div",{className:"stage",ref:I,"data-fill":me||void 0,children:[n("header",{className:"topbar",children:[n("div",{className:"brand",children:[e(Dp,{}),e("h1",{children:c.title})]}),n("div",{className:"topbar-end",children:[he,e(h2,{})]})]}),e("main",{className:"route",children:e(Zl,{resetKey:`${ce}/${E.key??""}`,children:e(jo,{fallback:e("div",{className:"page",children:e(p,{})}),children:pe})})},Y&&ce==="room"?"room":`${ce}/${E.key??""}`)]}),e("nav",{className:"tabbar","aria-label":t("Panes"),children:oe.map((ge)=>n("a",{className:"tab",href:u(ge.pane),"aria-current":ge.pane===re||ge.pane==="more"&&le.some((xe)=>xe.pane===re)?"page":void 0,children:[e(Ne,{name:ge.icon,size:22}),e("span",{children:ge.label}),ge.pane==="rooms"&&ee?e("span",{className:"tab-badge",children:ee}):null]},ge.pane))})]}),e(_x,{}),D?e(Rx,{open:H,onClose:()=>q(!1),pages:te}):null]})}function ku({children:c}){return e("div",{className:"page",children:c})}Cx();Rc(void 0);Nc().catch((c)=>console.warn("the character kit failed to load",c));if(typeof document.startViewTransition!=="function")document.documentElement.classList.add("no-vt");var y2=document.getElementById("root");if(!y2)throw Error("the page has no #root");yc(Z1()).catch((c)=>console.warn("the built-in wording failed to load",c)).finally(()=>Rp(y2).render(e(Cf,{children:e(Zl,{children:e(g2,{})})})));if("serviceWorker"in navigator){let c=new URL("./",document.baseURI);navigator.serviceWorker.register(new URL("sw.js",c),{scope:c.href}).catch((v)=>console.warn("service worker failed",v)),navigator.serviceWorker.addEventListener("message",(v)=>{let E=v.data;if(typeof E!=="object"||E===null||E.type!=="roundtable:open")return;let N=URL.parse(String(E.url),c);if(N&&N.origin===window.location.origin)if(N.pathname===window.location.pathname&&N.search===window.location.search)window.location.hash=N.hash;else window.location.assign(N)})}export{M,K,b,A,J,a,P,_,o,i,t,r,h,e,n,u,ae,w,R,p,l,m,f,y,Z,s,d,g,S,L,O,U,C,T,k,j,z,G,se,V,W,B,X,x};