veslx 0.0.27 → 0.1.0

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 (86) hide show
  1. package/bin/lib/build.ts +3 -0
  2. package/bin/lib/serve.ts +4 -4
  3. package/bin/veslx.ts +1 -1
  4. package/dist/assets/README-DVMP1xaW.js +7 -0
  5. package/dist/assets/SLIDES-DjNLQtEU.js +10 -0
  6. package/dist/assets/index-CBkKcH4y.js +469 -0
  7. package/dist/assets/index-PspMxLnH.css +1 -0
  8. package/dist/assets/index-UZKwazVi.js +1 -0
  9. package/dist/index.html +2 -2
  10. package/dist/raw/.veslx.json +61 -0
  11. package/dist/raw/README.md +33 -0
  12. package/dist/raw/test-post/Chart.tsx +16 -0
  13. package/dist/raw/test-post/README.mdx +21 -0
  14. package/dist/raw/test-slides/Counter.tsx +25 -0
  15. package/dist/raw/test-slides/SLIDES.mdx +27 -0
  16. package/index.html +17 -0
  17. package/package.json +4 -7
  18. package/plugin/src/plugin.ts +38 -0
  19. package/src/components/slides-renderer.tsx +130 -0
  20. package/src/hooks/use-mdx-content.ts +108 -0
  21. package/src/pages/post.tsx +15 -13
  22. package/src/pages/slides.tsx +21 -34
  23. package/src/vite-env.d.ts +21 -0
  24. package/vite.config.ts +1 -19
  25. package/dist/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  26. package/dist/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  27. package/dist/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  28. package/dist/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  29. package/dist/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  30. package/dist/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  31. package/dist/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  32. package/dist/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  33. package/dist/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  34. package/dist/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  35. package/dist/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  36. package/dist/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  37. package/dist/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  38. package/dist/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  39. package/dist/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  40. package/dist/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  41. package/dist/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  42. package/dist/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  43. package/dist/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  44. package/dist/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  45. package/dist/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  46. package/dist/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  47. package/dist/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  48. package/dist/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  49. package/dist/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  50. package/dist/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  51. package/dist/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  52. package/dist/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  53. package/dist/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  54. package/dist/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  55. package/dist/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  56. package/dist/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  57. package/dist/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  58. package/dist/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  59. package/dist/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  60. package/dist/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  61. package/dist/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  62. package/dist/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  63. package/dist/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  64. package/dist/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  65. package/dist/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  66. package/dist/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  67. package/dist/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  68. package/dist/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  69. package/dist/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  70. package/dist/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  71. package/dist/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  72. package/dist/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  73. package/dist/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  74. package/dist/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  75. package/dist/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  76. package/dist/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  77. package/dist/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  78. package/dist/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  79. package/dist/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  80. package/dist/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  81. package/dist/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  82. package/dist/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  83. package/dist/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  84. package/dist/assets/index-C75KddSa.css +0 -1
  85. package/dist/assets/index-DsHb4M_F.js +0 -542
  86. package/src/components/runtime-mdx.tsx +0 -82
@@ -0,0 +1,469 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/README-DVMP1xaW.js","assets/index-UZKwazVi.js","assets/SLIDES-DjNLQtEU.js"])))=>i.map(i=>d[i]);
2
+ var G9=Object.defineProperty;var r3=e=>{throw TypeError(e)};var F9=(e,t,r)=>t in e?G9(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Gt=(e,t,r)=>F9(e,typeof t!="symbol"?t+"":t,r),Ud=(e,t,r)=>t.has(e)||r3("Cannot "+r);var me=(e,t,r)=>(Ud(e,t,"read from private field"),r?r.call(e):t.get(e)),An=(e,t,r)=>t.has(e)?r3("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),zt=(e,t,r,i)=>(Ud(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),Pa=(e,t,r)=>(Ud(e,t,"access private method"),r);function Y9(e,t){for(var r=0;r<t.length;r++){const i=t[r];if(typeof i!="string"&&!Array.isArray(i)){for(const l in i)if(l!=="default"&&!(l in e)){const s=Object.getOwnPropertyDescriptor(i,l);s&&Object.defineProperty(e,l,s.get?s:{enumerable:!0,get:()=>i[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))i(l);new MutationObserver(l=>{for(const s of l)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&i(c)}).observe(document,{childList:!0,subtree:!0});function r(l){const s={};return l.integrity&&(s.integrity=l.integrity),l.referrerPolicy&&(s.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?s.credentials="include":l.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(l){if(l.ep)return;l.ep=!0;const s=r(l);fetch(l.href,s)}})();function d6(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Gd={exports:{}},W0={};/**
3
+ * @license React
4
+ * react-jsx-runtime.production.js
5
+ *
6
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */var a3;function P9(){if(a3)return W0;a3=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(i,l,s){var c=null;if(s!==void 0&&(c=""+s),l.key!==void 0&&(c=""+l.key),"key"in l){s={};for(var f in l)f!=="key"&&(s[f]=l[f])}else s=l;return l=s.ref,{$$typeof:e,type:i,key:c,ref:l!==void 0?l:null,props:s}}return W0.Fragment=t,W0.jsx=r,W0.jsxs=r,W0}var i3;function V9(){return i3||(i3=1,Gd.exports=P9()),Gd.exports}var k=V9(),Fd={exports:{}},He={};/**
11
+ * @license React
12
+ * react.production.js
13
+ *
14
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
15
+ *
16
+ * This source code is licensed under the MIT license found in the
17
+ * LICENSE file in the root directory of this source tree.
18
+ */var l3;function I9(){if(l3)return He;l3=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),b=Symbol.iterator;function w(B){return B===null||typeof B!="object"?null:(B=b&&B[b]||B["@@iterator"],typeof B=="function"?B:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,T={};function N(B,W,ie){this.props=B,this.context=W,this.refs=T,this.updater=ie||E}N.prototype.isReactComponent={},N.prototype.setState=function(B,W){if(typeof B!="object"&&typeof B!="function"&&B!=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,B,W,"setState")},N.prototype.forceUpdate=function(B){this.updater.enqueueForceUpdate(this,B,"forceUpdate")};function O(){}O.prototype=N.prototype;function R(B,W,ie){this.props=B,this.context=W,this.refs=T,this.updater=ie||E}var H=R.prototype=new O;H.constructor=R,A(H,N.prototype),H.isPureReactComponent=!0;var F=Array.isArray;function I(){}var G={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function te(B,W,ie){var se=ie.ref;return{$$typeof:e,type:B,key:W,ref:se!==void 0?se:null,props:ie}}function de(B,W){return te(B.type,W,B.props)}function ce(B){return typeof B=="object"&&B!==null&&B.$$typeof===e}function he(B){var W={"=":"=0",":":"=2"};return"$"+B.replace(/[=:]/g,function(ie){return W[ie]})}var De=/\/+/g;function we(B,W){return typeof B=="object"&&B!==null&&B.key!=null?he(""+B.key):W.toString(36)}function Ce(B){switch(B.status){case"fulfilled":return B.value;case"rejected":throw B.reason;default:switch(typeof B.status=="string"?B.then(I,I):(B.status="pending",B.then(function(W){B.status==="pending"&&(B.status="fulfilled",B.value=W)},function(W){B.status==="pending"&&(B.status="rejected",B.reason=W)})),B.status){case"fulfilled":return B.value;case"rejected":throw B.reason}}throw B}function Y(B,W,ie,se,Se){var ke=typeof B;(ke==="undefined"||ke==="boolean")&&(B=null);var ge=!1;if(B===null)ge=!0;else switch(ke){case"bigint":case"string":case"number":ge=!0;break;case"object":switch(B.$$typeof){case e:case t:ge=!0;break;case g:return ge=B._init,Y(ge(B._payload),W,ie,se,Se)}}if(ge)return Se=Se(B),ge=se===""?"."+we(B,0):se,F(Se)?(ie="",ge!=null&&(ie=ge.replace(De,"$&/")+"/"),Y(Se,W,ie,"",function(Ze){return Ze})):Se!=null&&(ce(Se)&&(Se=de(Se,ie+(Se.key==null||B&&B.key===Se.key?"":(""+Se.key).replace(De,"$&/")+"/")+ge)),W.push(Se)),1;ge=0;var _e=se===""?".":se+":";if(F(B))for(var Oe=0;Oe<B.length;Oe++)se=B[Oe],ke=_e+we(se,Oe),ge+=Y(se,W,ie,ke,Se);else if(Oe=w(B),typeof Oe=="function")for(B=Oe.call(B),Oe=0;!(se=B.next()).done;)se=se.value,ke=_e+we(se,Oe++),ge+=Y(se,W,ie,ke,Se);else if(ke==="object"){if(typeof B.then=="function")return Y(Ce(B),W,ie,se,Se);throw W=String(B),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(B).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.")}return ge}function ne(B,W,ie){if(B==null)return B;var se=[],Se=0;return Y(B,se,"","",function(ke){return W.call(ie,ke,Se++)}),se}function Q(B){if(B._status===-1){var W=B._result;W=W(),W.then(function(ie){(B._status===0||B._status===-1)&&(B._status=1,B._result=ie)},function(ie){(B._status===0||B._status===-1)&&(B._status=2,B._result=ie)}),B._status===-1&&(B._status=0,B._result=W)}if(B._status===1)return B._result.default;throw B._result}var le=typeof reportError=="function"?reportError:function(B){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var W=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof B=="object"&&B!==null&&typeof B.message=="string"?String(B.message):String(B),error:B});if(!window.dispatchEvent(W))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",B);return}console.error(B)},be={map:ne,forEach:function(B,W,ie){ne(B,function(){W.apply(this,arguments)},ie)},count:function(B){var W=0;return ne(B,function(){W++}),W},toArray:function(B){return ne(B,function(W){return W})||[]},only:function(B){if(!ce(B))throw Error("React.Children.only expected to receive a single React element child.");return B}};return He.Activity=v,He.Children=be,He.Component=N,He.Fragment=r,He.Profiler=l,He.PureComponent=R,He.StrictMode=i,He.Suspense=d,He.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=G,He.__COMPILER_RUNTIME={__proto__:null,c:function(B){return G.H.useMemoCache(B)}},He.cache=function(B){return function(){return B.apply(null,arguments)}},He.cacheSignal=function(){return null},He.cloneElement=function(B,W,ie){if(B==null)throw Error("The argument must be a React element, but you passed "+B+".");var se=A({},B.props),Se=B.key;if(W!=null)for(ke in W.key!==void 0&&(Se=""+W.key),W)!V.call(W,ke)||ke==="key"||ke==="__self"||ke==="__source"||ke==="ref"&&W.ref===void 0||(se[ke]=W[ke]);var ke=arguments.length-2;if(ke===1)se.children=ie;else if(1<ke){for(var ge=Array(ke),_e=0;_e<ke;_e++)ge[_e]=arguments[_e+2];se.children=ge}return te(B.type,Se,se)},He.createContext=function(B){return B={$$typeof:c,_currentValue:B,_currentValue2:B,_threadCount:0,Provider:null,Consumer:null},B.Provider=B,B.Consumer={$$typeof:s,_context:B},B},He.createElement=function(B,W,ie){var se,Se={},ke=null;if(W!=null)for(se in W.key!==void 0&&(ke=""+W.key),W)V.call(W,se)&&se!=="key"&&se!=="__self"&&se!=="__source"&&(Se[se]=W[se]);var ge=arguments.length-2;if(ge===1)Se.children=ie;else if(1<ge){for(var _e=Array(ge),Oe=0;Oe<ge;Oe++)_e[Oe]=arguments[Oe+2];Se.children=_e}if(B&&B.defaultProps)for(se in ge=B.defaultProps,ge)Se[se]===void 0&&(Se[se]=ge[se]);return te(B,ke,Se)},He.createRef=function(){return{current:null}},He.forwardRef=function(B){return{$$typeof:f,render:B}},He.isValidElement=ce,He.lazy=function(B){return{$$typeof:g,_payload:{_status:-1,_result:B},_init:Q}},He.memo=function(B,W){return{$$typeof:h,type:B,compare:W===void 0?null:W}},He.startTransition=function(B){var W=G.T,ie={};G.T=ie;try{var se=B(),Se=G.S;Se!==null&&Se(ie,se),typeof se=="object"&&se!==null&&typeof se.then=="function"&&se.then(I,le)}catch(ke){le(ke)}finally{W!==null&&ie.types!==null&&(W.types=ie.types),G.T=W}},He.unstable_useCacheRefresh=function(){return G.H.useCacheRefresh()},He.use=function(B){return G.H.use(B)},He.useActionState=function(B,W,ie){return G.H.useActionState(B,W,ie)},He.useCallback=function(B,W){return G.H.useCallback(B,W)},He.useContext=function(B){return G.H.useContext(B)},He.useDebugValue=function(){},He.useDeferredValue=function(B,W){return G.H.useDeferredValue(B,W)},He.useEffect=function(B,W){return G.H.useEffect(B,W)},He.useEffectEvent=function(B){return G.H.useEffectEvent(B)},He.useId=function(){return G.H.useId()},He.useImperativeHandle=function(B,W,ie){return G.H.useImperativeHandle(B,W,ie)},He.useInsertionEffect=function(B,W){return G.H.useInsertionEffect(B,W)},He.useLayoutEffect=function(B,W){return G.H.useLayoutEffect(B,W)},He.useMemo=function(B,W){return G.H.useMemo(B,W)},He.useOptimistic=function(B,W){return G.H.useOptimistic(B,W)},He.useReducer=function(B,W,ie){return G.H.useReducer(B,W,ie)},He.useRef=function(B){return G.H.useRef(B)},He.useState=function(B){return G.H.useState(B)},He.useSyncExternalStore=function(B,W,ie){return G.H.useSyncExternalStore(B,W,ie)},He.useTransition=function(){return G.H.useTransition()},He.version="19.2.1",He}var o3;function nh(){return o3||(o3=1,Fd.exports=I9()),Fd.exports}var M=nh();const Ka=d6(M),rh=Y9({__proto__:null,default:Ka},[M]);var Yd={exports:{}},J0={},Pd={exports:{}},Vd={};/**
19
+ * @license React
20
+ * scheduler.production.js
21
+ *
22
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
23
+ *
24
+ * This source code is licensed under the MIT license found in the
25
+ * LICENSE file in the root directory of this source tree.
26
+ */var s3;function X9(){return s3||(s3=1,(function(e){function t(Y,ne){var Q=Y.length;Y.push(ne);e:for(;0<Q;){var le=Q-1>>>1,be=Y[le];if(0<l(be,ne))Y[le]=ne,Y[Q]=be,Q=le;else break e}}function r(Y){return Y.length===0?null:Y[0]}function i(Y){if(Y.length===0)return null;var ne=Y[0],Q=Y.pop();if(Q!==ne){Y[0]=Q;e:for(var le=0,be=Y.length,B=be>>>1;le<B;){var W=2*(le+1)-1,ie=Y[W],se=W+1,Se=Y[se];if(0>l(ie,Q))se<be&&0>l(Se,ie)?(Y[le]=Se,Y[se]=Q,le=se):(Y[le]=ie,Y[W]=Q,le=W);else if(se<be&&0>l(Se,Q))Y[le]=Se,Y[se]=Q,le=se;else break e}}return ne}function l(Y,ne){var Q=Y.sortIndex-ne.sortIndex;return Q!==0?Q:Y.id-ne.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var d=[],h=[],g=1,v=null,b=3,w=!1,E=!1,A=!1,T=!1,N=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function H(Y){for(var ne=r(h);ne!==null;){if(ne.callback===null)i(h);else if(ne.startTime<=Y)i(h),ne.sortIndex=ne.expirationTime,t(d,ne);else break;ne=r(h)}}function F(Y){if(A=!1,H(Y),!E)if(r(d)!==null)E=!0,I||(I=!0,he());else{var ne=r(h);ne!==null&&Ce(F,ne.startTime-Y)}}var I=!1,G=-1,V=5,te=-1;function de(){return T?!0:!(e.unstable_now()-te<V)}function ce(){if(T=!1,I){var Y=e.unstable_now();te=Y;var ne=!0;try{e:{E=!1,A&&(A=!1,O(G),G=-1),w=!0;var Q=b;try{t:{for(H(Y),v=r(d);v!==null&&!(v.expirationTime>Y&&de());){var le=v.callback;if(typeof le=="function"){v.callback=null,b=v.priorityLevel;var be=le(v.expirationTime<=Y);if(Y=e.unstable_now(),typeof be=="function"){v.callback=be,H(Y),ne=!0;break t}v===r(d)&&i(d),H(Y)}else i(d);v=r(d)}if(v!==null)ne=!0;else{var B=r(h);B!==null&&Ce(F,B.startTime-Y),ne=!1}}break e}finally{v=null,b=Q,w=!1}ne=void 0}}finally{ne?he():I=!1}}}var he;if(typeof R=="function")he=function(){R(ce)};else if(typeof MessageChannel<"u"){var De=new MessageChannel,we=De.port2;De.port1.onmessage=ce,he=function(){we.postMessage(null)}}else he=function(){N(ce,0)};function Ce(Y,ne){G=N(function(){Y(e.unstable_now())},ne)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(Y){Y.callback=null},e.unstable_forceFrameRate=function(Y){0>Y||125<Y?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<Y?Math.floor(1e3/Y):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(Y){switch(b){case 1:case 2:case 3:var ne=3;break;default:ne=b}var Q=b;b=ne;try{return Y()}finally{b=Q}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(Y,ne){switch(Y){case 1:case 2:case 3:case 4:case 5:break;default:Y=3}var Q=b;b=Y;try{return ne()}finally{b=Q}},e.unstable_scheduleCallback=function(Y,ne,Q){var le=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?le+Q:le):Q=le,Y){case 1:var be=-1;break;case 2:be=250;break;case 5:be=1073741823;break;case 4:be=1e4;break;default:be=5e3}return be=Q+be,Y={id:g++,callback:ne,priorityLevel:Y,startTime:Q,expirationTime:be,sortIndex:-1},Q>le?(Y.sortIndex=Q,t(h,Y),r(d)===null&&Y===r(h)&&(A?(O(G),G=-1):A=!0,Ce(F,Q-le))):(Y.sortIndex=be,t(d,Y),E||w||(E=!0,I||(I=!0,he()))),Y},e.unstable_shouldYield=de,e.unstable_wrapCallback=function(Y){var ne=b;return function(){var Q=b;b=ne;try{return Y.apply(this,arguments)}finally{b=Q}}}})(Vd)),Vd}var u3;function $9(){return u3||(u3=1,Pd.exports=X9()),Pd.exports}var Id={exports:{}},nn={};/**
27
+ * @license React
28
+ * react-dom.production.js
29
+ *
30
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
31
+ *
32
+ * This source code is licensed under the MIT license found in the
33
+ * LICENSE file in the root directory of this source tree.
34
+ */var c3;function K9(){if(c3)return nn;c3=1;var e=nh();function t(d){var h="https://react.dev/errors/"+d;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)h+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+d+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},l=Symbol.for("react.portal");function s(d,h,g){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:v==null?null:""+v,children:d,containerInfo:h,implementation:g}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(d,h){if(d==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return nn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,nn.createPortal=function(d,h){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return s(d,h,null,g)},nn.flushSync=function(d){var h=c.T,g=i.p;try{if(c.T=null,i.p=2,d)return d()}finally{c.T=h,i.p=g,i.d.f()}},nn.preconnect=function(d,h){typeof d=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(d,h))},nn.prefetchDNS=function(d){typeof d=="string"&&i.d.D(d)},nn.preinit=function(d,h){if(typeof d=="string"&&h&&typeof h.as=="string"){var g=h.as,v=f(g,h.crossOrigin),b=typeof h.integrity=="string"?h.integrity:void 0,w=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;g==="style"?i.d.S(d,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:v,integrity:b,fetchPriority:w}):g==="script"&&i.d.X(d,{crossOrigin:v,integrity:b,fetchPriority:w,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},nn.preinitModule=function(d,h){if(typeof d=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var g=f(h.as,h.crossOrigin);i.d.M(d,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(d)},nn.preload=function(d,h){if(typeof d=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var g=h.as,v=f(g,h.crossOrigin);i.d.L(d,g,{crossOrigin:v,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},nn.preloadModule=function(d,h){if(typeof d=="string")if(h){var g=f(h.as,h.crossOrigin);i.d.m(d,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(d)},nn.requestFormReset=function(d){i.d.r(d)},nn.unstable_batchedUpdates=function(d,h){return d(h)},nn.useFormState=function(d,h,g){return c.H.useFormState(d,h,g)},nn.useFormStatus=function(){return c.H.useHostTransitionStatus()},nn.version="19.2.1",nn}var f3;function h6(){if(f3)return Id.exports;f3=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Id.exports=K9(),Id.exports}/**
35
+ * @license React
36
+ * react-dom-client.production.js
37
+ *
38
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
39
+ *
40
+ * This source code is licensed under the MIT license found in the
41
+ * LICENSE file in the root directory of this source tree.
42
+ */var d3;function Q9(){if(d3)return J0;d3=1;var e=$9(),t=nh(),r=h6();function i(n){var a="https://react.dev/errors/"+n;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)a+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+n+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function s(n){var a=n,o=n;if(n.alternate)for(;a.return;)a=a.return;else{n=a;do a=n,(a.flags&4098)!==0&&(o=a.return),n=a.return;while(n)}return a.tag===3?o:null}function c(n){if(n.tag===13){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function f(n){if(n.tag===31){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function d(n){if(s(n)!==n)throw Error(i(188))}function h(n){var a=n.alternate;if(!a){if(a=s(n),a===null)throw Error(i(188));return a!==n?null:n}for(var o=n,u=a;;){var m=o.return;if(m===null)break;var p=m.alternate;if(p===null){if(u=m.return,u!==null){o=u;continue}break}if(m.child===p.child){for(p=m.child;p;){if(p===o)return d(m),n;if(p===u)return d(m),a;p=p.sibling}throw Error(i(188))}if(o.return!==u.return)o=m,u=p;else{for(var S=!1,z=m.child;z;){if(z===o){S=!0,o=m,u=p;break}if(z===u){S=!0,u=m,o=p;break}z=z.sibling}if(!S){for(z=p.child;z;){if(z===o){S=!0,o=p,u=m;break}if(z===u){S=!0,u=p,o=m;break}z=z.sibling}if(!S)throw Error(i(189))}}if(o.alternate!==u)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?n:a}function g(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n;for(n=n.child;n!==null;){if(a=g(n),a!==null)return a;n=n.sibling}return null}var v=Object.assign,b=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),R=Symbol.for("react.context"),H=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),de=Symbol.for("react.memo_cache_sentinel"),ce=Symbol.iterator;function he(n){return n===null||typeof n!="object"?null:(n=ce&&n[ce]||n["@@iterator"],typeof n=="function"?n:null)}var De=Symbol.for("react.client.reference");function we(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===De?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case A:return"Fragment";case N:return"Profiler";case T:return"StrictMode";case F:return"Suspense";case I:return"SuspenseList";case te:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case E:return"Portal";case R:return n.displayName||"Context";case O:return(n._context.displayName||"Context")+".Consumer";case H:var a=n.render;return n=n.displayName,n||(n=a.displayName||a.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case G:return a=n.displayName||null,a!==null?a:we(n.type)||"Memo";case V:a=n._payload,n=n._init;try{return we(n(a))}catch{}}return null}var Ce=Array.isArray,Y=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},le=[],be=-1;function B(n){return{current:n}}function W(n){0>be||(n.current=le[be],le[be]=null,be--)}function ie(n,a){be++,le[be]=n.current,n.current=a}var se=B(null),Se=B(null),ke=B(null),ge=B(null);function _e(n,a){switch(ie(ke,a),ie(Se,n),ie(se,null),a.nodeType){case 9:case 11:n=(n=a.documentElement)&&(n=n.namespaceURI)?T2(n):0;break;default:if(n=a.tagName,a=a.namespaceURI)a=T2(a),n=C2(a,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}W(se),ie(se,n)}function Oe(){W(se),W(Se),W(ke)}function Ze(n){n.memoizedState!==null&&ie(ge,n);var a=se.current,o=C2(a,n.type);a!==o&&(ie(Se,n),ie(se,o))}function Ye(n){Se.current===n&&(W(se),W(Se)),ge.current===n&&(W(ge),$0._currentValue=Q)}var ye,Pe;function Ke(n){if(ye===void 0)try{throw Error()}catch(o){var a=o.stack.trim().match(/\n( *(at )?)/);ye=a&&a[1]||"",Pe=-1<o.stack.indexOf(`
43
+ at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
44
+ `+ye+n+Pe}var vt=!1;function qt(n,a){if(!n||vt)return"";vt=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(a){var ae=function(){throw Error()};if(Object.defineProperty(ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ae,[])}catch(J){var Z=J}Reflect.construct(n,[],ae)}else{try{ae.call()}catch(J){Z=J}n.call(ae.prototype)}}else{try{throw Error()}catch(J){Z=J}(ae=n())&&typeof ae.catch=="function"&&ae.catch(function(){})}}catch(J){if(J&&Z&&typeof J.stack=="string")return[J.stack,Z.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=u.DetermineComponentFrameRoot(),S=p[0],z=p[1];if(S&&z){var _=S.split(`
45
+ `),K=z.split(`
46
+ `);for(m=u=0;u<_.length&&!_[u].includes("DetermineComponentFrameRoot");)u++;for(;m<K.length&&!K[m].includes("DetermineComponentFrameRoot");)m++;if(u===_.length||m===K.length)for(u=_.length-1,m=K.length-1;1<=u&&0<=m&&_[u]!==K[m];)m--;for(;1<=u&&0<=m;u--,m--)if(_[u]!==K[m]){if(u!==1||m!==1)do if(u--,m--,0>m||_[u]!==K[m]){var ee=`
47
+ `+_[u].replace(" at new "," at ");return n.displayName&&ee.includes("<anonymous>")&&(ee=ee.replace("<anonymous>",n.displayName)),ee}while(1<=u&&0<=m);break}}}finally{vt=!1,Error.prepareStackTrace=o}return(o=n?n.displayName||n.name:"")?Ke(o):""}function $t(n,a){switch(n.tag){case 26:case 27:case 5:return Ke(n.type);case 16:return Ke("Lazy");case 13:return n.child!==a&&a!==null?Ke("Suspense Fallback"):Ke("Suspense");case 19:return Ke("SuspenseList");case 0:case 15:return qt(n.type,!1);case 11:return qt(n.type.render,!1);case 1:return qt(n.type,!0);case 31:return Ke("Activity");default:return""}}function Kt(n){try{var a="",o=null;do a+=$t(n,o),o=n,n=n.return;while(n);return a}catch(u){return`
48
+ Error generating stack: `+u.message+`
49
+ `+u.stack}}var Mt=Object.prototype.hasOwnProperty,lr=e.unstable_scheduleCallback,_r=e.unstable_cancelCallback,n0=e.unstable_shouldYield,r0=e.unstable_requestPaint,tn=e.unstable_now,Fo=e.unstable_getCurrentPriorityLevel,Yo=e.unstable_ImmediatePriority,a0=e.unstable_UserBlockingPriority,Vi=e.unstable_NormalPriority,i0=e.unstable_LowPriority,Hr=e.unstable_IdlePriority,l0=e.log,o0=e.unstable_setDisableYieldValue,gr=null,ln=null;function vr(n){if(typeof l0=="function"&&o0(n),ln&&typeof ln.setStrictMode=="function")try{ln.setStrictMode(gr,n)}catch{}}var on=Math.clz32?Math.clz32:Po,Ec=Math.log,Tc=Math.LN2;function Po(n){return n>>>=0,n===0?32:31-(Ec(n)/Tc|0)|0}var Ii=256,di=262144,hi=4194304;function yr(n){var a=n&42;if(a!==0)return a;switch(n&-n){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return n&261888;case 262144:case 524288:case 1048576:case 2097152:return n&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function Xi(n,a,o){var u=n.pendingLanes;if(u===0)return 0;var m=0,p=n.suspendedLanes,S=n.pingedLanes;n=n.warmLanes;var z=u&134217727;return z!==0?(u=z&~p,u!==0?m=yr(u):(S&=z,S!==0?m=yr(S):o||(o=z&~n,o!==0&&(m=yr(o))))):(z=u&~p,z!==0?m=yr(z):S!==0?m=yr(S):o||(o=u&~n,o!==0&&(m=yr(o)))),m===0?0:a!==0&&a!==m&&(a&p)===0&&(p=m&-m,o=a&-a,p>=o||p===32&&(o&4194048)!==0)?a:m}function ba(n,a){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&a)===0}function Vo(n,a){switch(n){case 1:case 2:case 4:case 8:case 64:return a+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 a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Io(){var n=hi;return hi<<=1,(hi&62914560)===0&&(hi=4194304),n}function Cc(n){for(var a=[],o=0;31>o;o++)a.push(n);return a}function s0(n,a){n.pendingLanes|=a,a!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function N8(n,a,o,u,m,p){var S=n.pendingLanes;n.pendingLanes=o,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=o,n.entangledLanes&=o,n.errorRecoveryDisabledLanes&=o,n.shellSuspendCounter=0;var z=n.entanglements,_=n.expirationTimes,K=n.hiddenUpdates;for(o=S&~o;0<o;){var ee=31-on(o),ae=1<<ee;z[ee]=0,_[ee]=-1;var Z=K[ee];if(Z!==null)for(K[ee]=null,ee=0;ee<Z.length;ee++){var J=Z[ee];J!==null&&(J.lane&=-536870913)}o&=~ae}u!==0&&sm(n,u,0),p!==0&&m===0&&n.tag!==0&&(n.suspendedLanes|=p&~(S&~a))}function sm(n,a,o){n.pendingLanes|=a,n.suspendedLanes&=~a;var u=31-on(a);n.entangledLanes|=a,n.entanglements[u]=n.entanglements[u]|1073741824|o&261930}function um(n,a){var o=n.entangledLanes|=a;for(n=n.entanglements;o;){var u=31-on(o),m=1<<u;m&a|n[u]&a&&(n[u]|=a),o&=~m}}function cm(n,a){var o=a&-a;return o=(o&42)!==0?1:kc(o),(o&(n.suspendedLanes|a))!==0?0:o}function kc(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function Nc(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function fm(){var n=ne.p;return n!==0?n:(n=window.event,n===void 0?32:Q2(n.type))}function dm(n,a){var o=ne.p;try{return ne.p=n,a()}finally{ne.p=o}}var xa=Math.random().toString(36).slice(2),Qt="__reactFiber$"+xa,gn="__reactProps$"+xa,$i="__reactContainer$"+xa,zc="__reactEvents$"+xa,z8="__reactListeners$"+xa,D8="__reactHandles$"+xa,hm="__reactResources$"+xa,u0="__reactMarker$"+xa;function Dc(n){delete n[Qt],delete n[gn],delete n[zc],delete n[z8],delete n[D8]}function Ki(n){var a=n[Qt];if(a)return a;for(var o=n.parentNode;o;){if(a=o[$i]||o[Qt]){if(o=a.alternate,a.child!==null||o!==null&&o.child!==null)for(n=L2(n);n!==null;){if(o=n[Qt])return o;n=L2(n)}return a}n=o,o=n.parentNode}return null}function Qi(n){if(n=n[Qt]||n[$i]){var a=n.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return n}return null}function c0(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n.stateNode;throw Error(i(33))}function Zi(n){var a=n[hm];return a||(a=n[hm]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Vt(n){n[u0]=!0}var mm=new Set,pm={};function mi(n,a){Wi(n,a),Wi(n+"Capture",a)}function Wi(n,a){for(pm[n]=a,n=0;n<a.length;n++)mm.add(a[n])}var O8=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]*$"),gm={},vm={};function R8(n){return Mt.call(vm,n)?!0:Mt.call(gm,n)?!1:O8.test(n)?vm[n]=!0:(gm[n]=!0,!1)}function Xo(n,a,o){if(R8(a))if(o===null)n.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":n.removeAttribute(a);return;case"boolean":var u=a.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){n.removeAttribute(a);return}}n.setAttribute(a,""+o)}}function $o(n,a,o){if(o===null)n.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttribute(a,""+o)}}function qr(n,a,o,u){if(u===null)n.removeAttribute(o);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(o);return}n.setAttributeNS(a,o,""+u)}}function Yn(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function ym(n){var a=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function L8(n,a,o){var u=Object.getOwnPropertyDescriptor(n.constructor.prototype,a);if(!n.hasOwnProperty(a)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var m=u.get,p=u.set;return Object.defineProperty(n,a,{configurable:!0,get:function(){return m.call(this)},set:function(S){o=""+S,p.call(this,S)}}),Object.defineProperty(n,a,{enumerable:u.enumerable}),{getValue:function(){return o},setValue:function(S){o=""+S},stopTracking:function(){n._valueTracker=null,delete n[a]}}}}function Oc(n){if(!n._valueTracker){var a=ym(n)?"checked":"value";n._valueTracker=L8(n,a,""+n[a])}}function bm(n){if(!n)return!1;var a=n._valueTracker;if(!a)return!0;var o=a.getValue(),u="";return n&&(u=ym(n)?n.checked?"true":"false":n.value),n=u,n!==o?(a.setValue(n),!0):!1}function Ko(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var j8=/[\n"\\]/g;function Pn(n){return n.replace(j8,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Rc(n,a,o,u,m,p,S,z){n.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?n.type=S:n.removeAttribute("type"),a!=null?S==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+Yn(a)):n.value!==""+Yn(a)&&(n.value=""+Yn(a)):S!=="submit"&&S!=="reset"||n.removeAttribute("value"),a!=null?Lc(n,S,Yn(a)):o!=null?Lc(n,S,Yn(o)):u!=null&&n.removeAttribute("value"),m==null&&p!=null&&(n.defaultChecked=!!p),m!=null&&(n.checked=m&&typeof m!="function"&&typeof m!="symbol"),z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"?n.name=""+Yn(z):n.removeAttribute("name")}function xm(n,a,o,u,m,p,S,z){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(n.type=p),a!=null||o!=null){if(!(p!=="submit"&&p!=="reset"||a!=null)){Oc(n);return}o=o!=null?""+Yn(o):"",a=a!=null?""+Yn(a):o,z||a===n.value||(n.value=a),n.defaultValue=a}u=u??m,u=typeof u!="function"&&typeof u!="symbol"&&!!u,n.checked=z?n.checked:!!u,n.defaultChecked=!!u,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(n.name=S),Oc(n)}function Lc(n,a,o){a==="number"&&Ko(n.ownerDocument)===n||n.defaultValue===""+o||(n.defaultValue=""+o)}function Ji(n,a,o,u){if(n=n.options,a){a={};for(var m=0;m<o.length;m++)a["$"+o[m]]=!0;for(o=0;o<n.length;o++)m=a.hasOwnProperty("$"+n[o].value),n[o].selected!==m&&(n[o].selected=m),m&&u&&(n[o].defaultSelected=!0)}else{for(o=""+Yn(o),a=null,m=0;m<n.length;m++){if(n[m].value===o){n[m].selected=!0,u&&(n[m].defaultSelected=!0);return}a!==null||n[m].disabled||(a=n[m])}a!==null&&(a.selected=!0)}}function wm(n,a,o){if(a!=null&&(a=""+Yn(a),a!==n.value&&(n.value=a),o==null)){n.defaultValue!==a&&(n.defaultValue=a);return}n.defaultValue=o!=null?""+Yn(o):""}function Sm(n,a,o,u){if(a==null){if(u!=null){if(o!=null)throw Error(i(92));if(Ce(u)){if(1<u.length)throw Error(i(93));u=u[0]}o=u}o==null&&(o=""),a=o}o=Yn(a),n.defaultValue=o,u=n.textContent,u===o&&u!==""&&u!==null&&(n.value=u),Oc(n)}function el(n,a){if(a){var o=n.firstChild;if(o&&o===n.lastChild&&o.nodeType===3){o.nodeValue=a;return}}n.textContent=a}var B8=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 Am(n,a,o){var u=a.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?u?n.setProperty(a,""):a==="float"?n.cssFloat="":n[a]="":u?n.setProperty(a,o):typeof o!="number"||o===0||B8.has(a)?a==="float"?n.cssFloat=o:n[a]=(""+o).trim():n[a]=o+"px"}function Mm(n,a,o){if(a!=null&&typeof a!="object")throw Error(i(62));if(n=n.style,o!=null){for(var u in o)!o.hasOwnProperty(u)||a!=null&&a.hasOwnProperty(u)||(u.indexOf("--")===0?n.setProperty(u,""):u==="float"?n.cssFloat="":n[u]="");for(var m in a)u=a[m],a.hasOwnProperty(m)&&o[m]!==u&&Am(n,m,u)}else for(var p in a)a.hasOwnProperty(p)&&Am(n,p,a[p])}function jc(n){if(n.indexOf("-")===-1)return!1;switch(n){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 _8=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),H8=/^[\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 Qo(n){return H8.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}function Ur(){}var Bc=null;function _c(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var tl=null,nl=null;function Em(n){var a=Qi(n);if(a&&(n=a.stateNode)){var o=n[gn]||null;e:switch(n=a.stateNode,a.type){case"input":if(Rc(n,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),a=o.name,o.type==="radio"&&a!=null){for(o=n;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+Pn(""+a)+'"][type="radio"]'),a=0;a<o.length;a++){var u=o[a];if(u!==n&&u.form===n.form){var m=u[gn]||null;if(!m)throw Error(i(90));Rc(u,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(a=0;a<o.length;a++)u=o[a],u.form===n.form&&bm(u)}break e;case"textarea":wm(n,o.value,o.defaultValue);break e;case"select":a=o.value,a!=null&&Ji(n,!!o.multiple,a,!1)}}}var Hc=!1;function Tm(n,a,o){if(Hc)return n(a,o);Hc=!0;try{var u=n(a);return u}finally{if(Hc=!1,(tl!==null||nl!==null)&&(_s(),tl&&(a=tl,n=nl,nl=tl=null,Em(a),n)))for(a=0;a<n.length;a++)Em(n[a])}}function f0(n,a){var o=n.stateNode;if(o===null)return null;var u=o[gn]||null;if(u===null)return null;o=u[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(n=n.type,u=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!u;break e;default:n=!1}if(n)return null;if(o&&typeof o!="function")throw Error(i(231,a,typeof o));return o}var Gr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qc=!1;if(Gr)try{var d0={};Object.defineProperty(d0,"passive",{get:function(){qc=!0}}),window.addEventListener("test",d0,d0),window.removeEventListener("test",d0,d0)}catch{qc=!1}var wa=null,Uc=null,Zo=null;function Cm(){if(Zo)return Zo;var n,a=Uc,o=a.length,u,m="value"in wa?wa.value:wa.textContent,p=m.length;for(n=0;n<o&&a[n]===m[n];n++);var S=o-n;for(u=1;u<=S&&a[o-u]===m[p-u];u++);return Zo=m.slice(n,1<u?1-u:void 0)}function Wo(n){var a=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&a===13&&(n=13)):n=a,n===10&&(n=13),32<=n||n===13?n:0}function Jo(){return!0}function km(){return!1}function vn(n){function a(o,u,m,p,S){this._reactName=o,this._targetInst=m,this.type=u,this.nativeEvent=p,this.target=S,this.currentTarget=null;for(var z in n)n.hasOwnProperty(z)&&(o=n[z],this[z]=o?o(p):p[z]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?Jo:km,this.isPropagationStopped=km,this}return v(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Jo)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Jo)},persist:function(){},isPersistent:Jo}),a}var pi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},es=vn(pi),h0=v({},pi,{view:0,detail:0}),q8=vn(h0),Gc,Fc,m0,ts=v({},h0,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Pc,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==m0&&(m0&&n.type==="mousemove"?(Gc=n.screenX-m0.screenX,Fc=n.screenY-m0.screenY):Fc=Gc=0,m0=n),Gc)},movementY:function(n){return"movementY"in n?n.movementY:Fc}}),Nm=vn(ts),U8=v({},ts,{dataTransfer:0}),G8=vn(U8),F8=v({},h0,{relatedTarget:0}),Yc=vn(F8),Y8=v({},pi,{animationName:0,elapsedTime:0,pseudoElement:0}),P8=vn(Y8),V8=v({},pi,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),I8=vn(V8),X8=v({},pi,{data:0}),zm=vn(X8),$8={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},K8={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"},Q8={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Z8(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=Q8[n])?!!a[n]:!1}function Pc(){return Z8}var W8=v({},h0,{key:function(n){if(n.key){var a=$8[n.key]||n.key;if(a!=="Unidentified")return a}return n.type==="keypress"?(n=Wo(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?K8[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Pc,charCode:function(n){return n.type==="keypress"?Wo(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Wo(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),J8=vn(W8),ey=v({},ts,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Dm=vn(ey),ty=v({},h0,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Pc}),ny=vn(ty),ry=v({},pi,{propertyName:0,elapsedTime:0,pseudoElement:0}),ay=vn(ry),iy=v({},ts,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),ly=vn(iy),oy=v({},pi,{newState:0,oldState:0}),sy=vn(oy),uy=[9,13,27,32],Vc=Gr&&"CompositionEvent"in window,p0=null;Gr&&"documentMode"in document&&(p0=document.documentMode);var cy=Gr&&"TextEvent"in window&&!p0,Om=Gr&&(!Vc||p0&&8<p0&&11>=p0),Rm=" ",Lm=!1;function jm(n,a){switch(n){case"keyup":return uy.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Bm(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var rl=!1;function fy(n,a){switch(n){case"compositionend":return Bm(a);case"keypress":return a.which!==32?null:(Lm=!0,Rm);case"textInput":return n=a.data,n===Rm&&Lm?null:n;default:return null}}function dy(n,a){if(rl)return n==="compositionend"||!Vc&&jm(n,a)?(n=Cm(),Zo=Uc=wa=null,rl=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Om&&a.locale!=="ko"?null:a.data;default:return null}}var hy={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function _m(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!hy[n.type]:a==="textarea"}function Hm(n,a,o,u){tl?nl?nl.push(u):nl=[u]:tl=u,a=Ps(a,"onChange"),0<a.length&&(o=new es("onChange","change",null,o,u),n.push({event:o,listeners:a}))}var g0=null,v0=null;function my(n){x2(n,0)}function ns(n){var a=c0(n);if(bm(a))return n}function qm(n,a){if(n==="change")return a}var Um=!1;if(Gr){var Ic;if(Gr){var Xc="oninput"in document;if(!Xc){var Gm=document.createElement("div");Gm.setAttribute("oninput","return;"),Xc=typeof Gm.oninput=="function"}Ic=Xc}else Ic=!1;Um=Ic&&(!document.documentMode||9<document.documentMode)}function Fm(){g0&&(g0.detachEvent("onpropertychange",Ym),v0=g0=null)}function Ym(n){if(n.propertyName==="value"&&ns(v0)){var a=[];Hm(a,v0,n,_c(n)),Tm(my,a)}}function py(n,a,o){n==="focusin"?(Fm(),g0=a,v0=o,g0.attachEvent("onpropertychange",Ym)):n==="focusout"&&Fm()}function gy(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return ns(v0)}function vy(n,a){if(n==="click")return ns(a)}function yy(n,a){if(n==="input"||n==="change")return ns(a)}function by(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var Dn=typeof Object.is=="function"?Object.is:by;function y0(n,a){if(Dn(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var o=Object.keys(n),u=Object.keys(a);if(o.length!==u.length)return!1;for(u=0;u<o.length;u++){var m=o[u];if(!Mt.call(a,m)||!Dn(n[m],a[m]))return!1}return!0}function Pm(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Vm(n,a){var o=Pm(n);n=0;for(var u;o;){if(o.nodeType===3){if(u=n+o.textContent.length,n<=a&&u>=a)return{node:o,offset:a-n};n=u}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Pm(o)}}function Im(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?Im(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function Xm(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var a=Ko(n.document);a instanceof n.HTMLIFrameElement;){try{var o=typeof a.contentWindow.location.href=="string"}catch{o=!1}if(o)n=a.contentWindow;else break;a=Ko(n.document)}return a}function $c(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}var xy=Gr&&"documentMode"in document&&11>=document.documentMode,al=null,Kc=null,b0=null,Qc=!1;function $m(n,a,o){var u=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Qc||al==null||al!==Ko(u)||(u=al,"selectionStart"in u&&$c(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),b0&&y0(b0,u)||(b0=u,u=Ps(Kc,"onSelect"),0<u.length&&(a=new es("onSelect","select",null,a,o),n.push({event:a,listeners:u}),a.target=al)))}function gi(n,a){var o={};return o[n.toLowerCase()]=a.toLowerCase(),o["Webkit"+n]="webkit"+a,o["Moz"+n]="moz"+a,o}var il={animationend:gi("Animation","AnimationEnd"),animationiteration:gi("Animation","AnimationIteration"),animationstart:gi("Animation","AnimationStart"),transitionrun:gi("Transition","TransitionRun"),transitionstart:gi("Transition","TransitionStart"),transitioncancel:gi("Transition","TransitionCancel"),transitionend:gi("Transition","TransitionEnd")},Zc={},Km={};Gr&&(Km=document.createElement("div").style,"AnimationEvent"in window||(delete il.animationend.animation,delete il.animationiteration.animation,delete il.animationstart.animation),"TransitionEvent"in window||delete il.transitionend.transition);function vi(n){if(Zc[n])return Zc[n];if(!il[n])return n;var a=il[n],o;for(o in a)if(a.hasOwnProperty(o)&&o in Km)return Zc[n]=a[o];return n}var Qm=vi("animationend"),Zm=vi("animationiteration"),Wm=vi("animationstart"),wy=vi("transitionrun"),Sy=vi("transitionstart"),Ay=vi("transitioncancel"),Jm=vi("transitionend"),e4=new Map,Wc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Wc.push("scrollEnd");function or(n,a){e4.set(n,a),mi(a,[n])}var rs=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)},Vn=[],ll=0,Jc=0;function as(){for(var n=ll,a=Jc=ll=0;a<n;){var o=Vn[a];Vn[a++]=null;var u=Vn[a];Vn[a++]=null;var m=Vn[a];Vn[a++]=null;var p=Vn[a];if(Vn[a++]=null,u!==null&&m!==null){var S=u.pending;S===null?m.next=m:(m.next=S.next,S.next=m),u.pending=m}p!==0&&t4(o,m,p)}}function is(n,a,o,u){Vn[ll++]=n,Vn[ll++]=a,Vn[ll++]=o,Vn[ll++]=u,Jc|=u,n.lanes|=u,n=n.alternate,n!==null&&(n.lanes|=u)}function ef(n,a,o,u){return is(n,a,o,u),ls(n)}function yi(n,a){return is(n,null,null,a),ls(n)}function t4(n,a,o){n.lanes|=o;var u=n.alternate;u!==null&&(u.lanes|=o);for(var m=!1,p=n.return;p!==null;)p.childLanes|=o,u=p.alternate,u!==null&&(u.childLanes|=o),p.tag===22&&(n=p.stateNode,n===null||n._visibility&1||(m=!0)),n=p,p=p.return;return n.tag===3?(p=n.stateNode,m&&a!==null&&(m=31-on(o),n=p.hiddenUpdates,u=n[m],u===null?n[m]=[a]:u.push(a),a.lane=o|536870912),p):null}function ls(n){if(50<G0)throw G0=0,cd=null,Error(i(185));for(var a=n.return;a!==null;)n=a,a=n.return;return n.tag===3?n.stateNode:null}var ol={};function My(n,a,o,u){this.tag=n,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function On(n,a,o,u){return new My(n,a,o,u)}function tf(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Fr(n,a){var o=n.alternate;return o===null?(o=On(n.tag,a,n.key,n.mode),o.elementType=n.elementType,o.type=n.type,o.stateNode=n.stateNode,o.alternate=n,n.alternate=o):(o.pendingProps=a,o.type=n.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=n.flags&65011712,o.childLanes=n.childLanes,o.lanes=n.lanes,o.child=n.child,o.memoizedProps=n.memoizedProps,o.memoizedState=n.memoizedState,o.updateQueue=n.updateQueue,a=n.dependencies,o.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},o.sibling=n.sibling,o.index=n.index,o.ref=n.ref,o.refCleanup=n.refCleanup,o}function n4(n,a){n.flags&=65011714;var o=n.alternate;return o===null?(n.childLanes=0,n.lanes=a,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=o.childLanes,n.lanes=o.lanes,n.child=o.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=o.memoizedProps,n.memoizedState=o.memoizedState,n.updateQueue=o.updateQueue,n.type=o.type,a=o.dependencies,n.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),n}function os(n,a,o,u,m,p){var S=0;if(u=n,typeof n=="function")tf(n)&&(S=1);else if(typeof n=="string")S=N9(n,o,se.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case te:return n=On(31,o,a,m),n.elementType=te,n.lanes=p,n;case A:return bi(o.children,m,p,a);case T:S=8,m|=24;break;case N:return n=On(12,o,a,m|2),n.elementType=N,n.lanes=p,n;case F:return n=On(13,o,a,m),n.elementType=F,n.lanes=p,n;case I:return n=On(19,o,a,m),n.elementType=I,n.lanes=p,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case R:S=10;break e;case O:S=9;break e;case H:S=11;break e;case G:S=14;break e;case V:S=16,u=null;break e}S=29,o=Error(i(130,n===null?"null":typeof n,"")),u=null}return a=On(S,o,a,m),a.elementType=n,a.type=u,a.lanes=p,a}function bi(n,a,o,u){return n=On(7,n,u,a),n.lanes=o,n}function nf(n,a,o){return n=On(6,n,null,a),n.lanes=o,n}function r4(n){var a=On(18,null,null,0);return a.stateNode=n,a}function rf(n,a,o){return a=On(4,n.children!==null?n.children:[],n.key,a),a.lanes=o,a.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},a}var a4=new WeakMap;function In(n,a){if(typeof n=="object"&&n!==null){var o=a4.get(n);return o!==void 0?o:(a={value:n,source:a,stack:Kt(a)},a4.set(n,a),a)}return{value:n,source:a,stack:Kt(a)}}var sl=[],ul=0,ss=null,x0=0,Xn=[],$n=0,Sa=null,br=1,xr="";function Yr(n,a){sl[ul++]=x0,sl[ul++]=ss,ss=n,x0=a}function i4(n,a,o){Xn[$n++]=br,Xn[$n++]=xr,Xn[$n++]=Sa,Sa=n;var u=br;n=xr;var m=32-on(u)-1;u&=~(1<<m),o+=1;var p=32-on(a)+m;if(30<p){var S=m-m%5;p=(u&(1<<S)-1).toString(32),u>>=S,m-=S,br=1<<32-on(a)+m|o<<m|u,xr=p+n}else br=1<<p|o<<m|u,xr=n}function af(n){n.return!==null&&(Yr(n,1),i4(n,1,0))}function lf(n){for(;n===ss;)ss=sl[--ul],sl[ul]=null,x0=sl[--ul],sl[ul]=null;for(;n===Sa;)Sa=Xn[--$n],Xn[$n]=null,xr=Xn[--$n],Xn[$n]=null,br=Xn[--$n],Xn[$n]=null}function l4(n,a){Xn[$n++]=br,Xn[$n++]=xr,Xn[$n++]=Sa,br=a.id,xr=a.overflow,Sa=n}var Zt=null,mt=null,Qe=!1,Aa=null,Kn=!1,of=Error(i(519));function Ma(n){var a=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw w0(In(a,n)),of}function o4(n){var a=n.stateNode,o=n.type,u=n.memoizedProps;switch(a[Qt]=n,a[gn]=u,o){case"dialog":Ie("cancel",a),Ie("close",a);break;case"iframe":case"object":case"embed":Ie("load",a);break;case"video":case"audio":for(o=0;o<Y0.length;o++)Ie(Y0[o],a);break;case"source":Ie("error",a);break;case"img":case"image":case"link":Ie("error",a),Ie("load",a);break;case"details":Ie("toggle",a);break;case"input":Ie("invalid",a),xm(a,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":Ie("invalid",a);break;case"textarea":Ie("invalid",a),Sm(a,u.value,u.defaultValue,u.children)}o=u.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||a.textContent===""+o||u.suppressHydrationWarning===!0||M2(a.textContent,o)?(u.popover!=null&&(Ie("beforetoggle",a),Ie("toggle",a)),u.onScroll!=null&&Ie("scroll",a),u.onScrollEnd!=null&&Ie("scrollend",a),u.onClick!=null&&(a.onclick=Ur),a=!0):a=!1,a||Ma(n,!0)}function s4(n){for(Zt=n.return;Zt;)switch(Zt.tag){case 5:case 31:case 13:Kn=!1;return;case 27:case 3:Kn=!0;return;default:Zt=Zt.return}}function cl(n){if(n!==Zt)return!1;if(!Qe)return s4(n),Qe=!0,!1;var a=n.tag,o;if((o=a!==3&&a!==27)&&((o=a===5)&&(o=n.type,o=!(o!=="form"&&o!=="button")||Ed(n.type,n.memoizedProps)),o=!o),o&&mt&&Ma(n),s4(n),a===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(i(317));mt=R2(n)}else if(a===31){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(i(317));mt=R2(n)}else a===27?(a=mt,Ha(n.type)?(n=zd,zd=null,mt=n):mt=a):mt=Zt?Zn(n.stateNode.nextSibling):null;return!0}function xi(){mt=Zt=null,Qe=!1}function sf(){var n=Aa;return n!==null&&(wn===null?wn=n:wn.push.apply(wn,n),Aa=null),n}function w0(n){Aa===null?Aa=[n]:Aa.push(n)}var uf=B(null),wi=null,Pr=null;function Ea(n,a,o){ie(uf,a._currentValue),a._currentValue=o}function Vr(n){n._currentValue=uf.current,W(uf)}function cf(n,a,o){for(;n!==null;){var u=n.alternate;if((n.childLanes&a)!==a?(n.childLanes|=a,u!==null&&(u.childLanes|=a)):u!==null&&(u.childLanes&a)!==a&&(u.childLanes|=a),n===o)break;n=n.return}}function ff(n,a,o,u){var m=n.child;for(m!==null&&(m.return=n);m!==null;){var p=m.dependencies;if(p!==null){var S=m.child;p=p.firstContext;e:for(;p!==null;){var z=p;p=m;for(var _=0;_<a.length;_++)if(z.context===a[_]){p.lanes|=o,z=p.alternate,z!==null&&(z.lanes|=o),cf(p.return,o,n),u||(S=null);break e}p=z.next}}else if(m.tag===18){if(S=m.return,S===null)throw Error(i(341));S.lanes|=o,p=S.alternate,p!==null&&(p.lanes|=o),cf(S,o,n),S=null}else S=m.child;if(S!==null)S.return=m;else for(S=m;S!==null;){if(S===n){S=null;break}if(m=S.sibling,m!==null){m.return=S.return,S=m;break}S=S.return}m=S}}function fl(n,a,o,u){n=null;for(var m=a,p=!1;m!==null;){if(!p){if((m.flags&524288)!==0)p=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var S=m.alternate;if(S===null)throw Error(i(387));if(S=S.memoizedProps,S!==null){var z=m.type;Dn(m.pendingProps.value,S.value)||(n!==null?n.push(z):n=[z])}}else if(m===ge.current){if(S=m.alternate,S===null)throw Error(i(387));S.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(n!==null?n.push($0):n=[$0])}m=m.return}n!==null&&ff(a,n,o,u),a.flags|=262144}function us(n){for(n=n.firstContext;n!==null;){if(!Dn(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function Si(n){wi=n,Pr=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Wt(n){return u4(wi,n)}function cs(n,a){return wi===null&&Si(n),u4(n,a)}function u4(n,a){var o=a._currentValue;if(a={context:a,memoizedValue:o,next:null},Pr===null){if(n===null)throw Error(i(308));Pr=a,n.dependencies={lanes:0,firstContext:a},n.flags|=524288}else Pr=Pr.next=a;return o}var Ey=typeof AbortController<"u"?AbortController:function(){var n=[],a=this.signal={aborted:!1,addEventListener:function(o,u){n.push(u)}};this.abort=function(){a.aborted=!0,n.forEach(function(o){return o()})}},Ty=e.unstable_scheduleCallback,Cy=e.unstable_NormalPriority,Ot={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function df(){return{controller:new Ey,data:new Map,refCount:0}}function S0(n){n.refCount--,n.refCount===0&&Ty(Cy,function(){n.controller.abort()})}var A0=null,hf=0,dl=0,hl=null;function ky(n,a){if(A0===null){var o=A0=[];hf=0,dl=gd(),hl={status:"pending",value:void 0,then:function(u){o.push(u)}}}return hf++,a.then(c4,c4),a}function c4(){if(--hf===0&&A0!==null){hl!==null&&(hl.status="fulfilled");var n=A0;A0=null,dl=0,hl=null;for(var a=0;a<n.length;a++)(0,n[a])()}}function Ny(n,a){var o=[],u={status:"pending",value:null,reason:null,then:function(m){o.push(m)}};return n.then(function(){u.status="fulfilled",u.value=a;for(var m=0;m<o.length;m++)(0,o[m])(a)},function(m){for(u.status="rejected",u.reason=m,m=0;m<o.length;m++)(0,o[m])(void 0)}),u}var f4=Y.S;Y.S=function(n,a){$p=tn(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&ky(n,a),f4!==null&&f4(n,a)};var Ai=B(null);function mf(){var n=Ai.current;return n!==null?n:ft.pooledCache}function fs(n,a){a===null?ie(Ai,Ai.current):ie(Ai,a.pool)}function d4(){var n=mf();return n===null?null:{parent:Ot._currentValue,pool:n}}var ml=Error(i(460)),pf=Error(i(474)),ds=Error(i(542)),hs={then:function(){}};function h4(n){return n=n.status,n==="fulfilled"||n==="rejected"}function m4(n,a,o){switch(o=n[o],o===void 0?n.push(a):o!==a&&(a.then(Ur,Ur),a=o),a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,g4(n),n;default:if(typeof a.status=="string")a.then(Ur,Ur);else{if(n=ft,n!==null&&100<n.shellSuspendCounter)throw Error(i(482));n=a,n.status="pending",n.then(function(u){if(a.status==="pending"){var m=a;m.status="fulfilled",m.value=u}},function(u){if(a.status==="pending"){var m=a;m.status="rejected",m.reason=u}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,g4(n),n}throw Ei=a,ml}}function Mi(n){try{var a=n._init;return a(n._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(Ei=o,ml):o}}var Ei=null;function p4(){if(Ei===null)throw Error(i(459));var n=Ei;return Ei=null,n}function g4(n){if(n===ml||n===ds)throw Error(i(483))}var pl=null,M0=0;function ms(n){var a=M0;return M0+=1,pl===null&&(pl=[]),m4(pl,n,a)}function E0(n,a){a=a.props.ref,n.ref=a!==void 0?a:null}function ps(n,a){throw a.$$typeof===b?Error(i(525)):(n=Object.prototype.toString.call(a),Error(i(31,n==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":n)))}function v4(n){function a(P,q){if(n){var X=P.deletions;X===null?(P.deletions=[q],P.flags|=16):X.push(q)}}function o(P,q){if(!n)return null;for(;q!==null;)a(P,q),q=q.sibling;return null}function u(P){for(var q=new Map;P!==null;)P.key!==null?q.set(P.key,P):q.set(P.index,P),P=P.sibling;return q}function m(P,q){return P=Fr(P,q),P.index=0,P.sibling=null,P}function p(P,q,X){return P.index=X,n?(X=P.alternate,X!==null?(X=X.index,X<q?(P.flags|=67108866,q):X):(P.flags|=67108866,q)):(P.flags|=1048576,q)}function S(P){return n&&P.alternate===null&&(P.flags|=67108866),P}function z(P,q,X,re){return q===null||q.tag!==6?(q=nf(X,P.mode,re),q.return=P,q):(q=m(q,X),q.return=P,q)}function _(P,q,X,re){var ze=X.type;return ze===A?ee(P,q,X.props.children,re,X.key):q!==null&&(q.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===V&&Mi(ze)===q.type)?(q=m(q,X.props),E0(q,X),q.return=P,q):(q=os(X.type,X.key,X.props,null,P.mode,re),E0(q,X),q.return=P,q)}function K(P,q,X,re){return q===null||q.tag!==4||q.stateNode.containerInfo!==X.containerInfo||q.stateNode.implementation!==X.implementation?(q=rf(X,P.mode,re),q.return=P,q):(q=m(q,X.children||[]),q.return=P,q)}function ee(P,q,X,re,ze){return q===null||q.tag!==7?(q=bi(X,P.mode,re,ze),q.return=P,q):(q=m(q,X),q.return=P,q)}function ae(P,q,X){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return q=nf(""+q,P.mode,X),q.return=P,q;if(typeof q=="object"&&q!==null){switch(q.$$typeof){case w:return X=os(q.type,q.key,q.props,null,P.mode,X),E0(X,q),X.return=P,X;case E:return q=rf(q,P.mode,X),q.return=P,q;case V:return q=Mi(q),ae(P,q,X)}if(Ce(q)||he(q))return q=bi(q,P.mode,X,null),q.return=P,q;if(typeof q.then=="function")return ae(P,ms(q),X);if(q.$$typeof===R)return ae(P,cs(P,q),X);ps(P,q)}return null}function Z(P,q,X,re){var ze=q!==null?q.key:null;if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return ze!==null?null:z(P,q,""+X,re);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case w:return X.key===ze?_(P,q,X,re):null;case E:return X.key===ze?K(P,q,X,re):null;case V:return X=Mi(X),Z(P,q,X,re)}if(Ce(X)||he(X))return ze!==null?null:ee(P,q,X,re,null);if(typeof X.then=="function")return Z(P,q,ms(X),re);if(X.$$typeof===R)return Z(P,q,cs(P,X),re);ps(P,X)}return null}function J(P,q,X,re,ze){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return P=P.get(X)||null,z(q,P,""+re,ze);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case w:return P=P.get(re.key===null?X:re.key)||null,_(q,P,re,ze);case E:return P=P.get(re.key===null?X:re.key)||null,K(q,P,re,ze);case V:return re=Mi(re),J(P,q,X,re,ze)}if(Ce(re)||he(re))return P=P.get(X)||null,ee(q,P,re,ze,null);if(typeof re.then=="function")return J(P,q,X,ms(re),ze);if(re.$$typeof===R)return J(P,q,X,cs(q,re),ze);ps(q,re)}return null}function Ae(P,q,X,re){for(var ze=null,et=null,Te=q,Ue=q=0,$e=null;Te!==null&&Ue<X.length;Ue++){Te.index>Ue?($e=Te,Te=null):$e=Te.sibling;var tt=Z(P,Te,X[Ue],re);if(tt===null){Te===null&&(Te=$e);break}n&&Te&&tt.alternate===null&&a(P,Te),q=p(tt,q,Ue),et===null?ze=tt:et.sibling=tt,et=tt,Te=$e}if(Ue===X.length)return o(P,Te),Qe&&Yr(P,Ue),ze;if(Te===null){for(;Ue<X.length;Ue++)Te=ae(P,X[Ue],re),Te!==null&&(q=p(Te,q,Ue),et===null?ze=Te:et.sibling=Te,et=Te);return Qe&&Yr(P,Ue),ze}for(Te=u(Te);Ue<X.length;Ue++)$e=J(Te,P,Ue,X[Ue],re),$e!==null&&(n&&$e.alternate!==null&&Te.delete($e.key===null?Ue:$e.key),q=p($e,q,Ue),et===null?ze=$e:et.sibling=$e,et=$e);return n&&Te.forEach(function(Ya){return a(P,Ya)}),Qe&&Yr(P,Ue),ze}function je(P,q,X,re){if(X==null)throw Error(i(151));for(var ze=null,et=null,Te=q,Ue=q=0,$e=null,tt=X.next();Te!==null&&!tt.done;Ue++,tt=X.next()){Te.index>Ue?($e=Te,Te=null):$e=Te.sibling;var Ya=Z(P,Te,tt.value,re);if(Ya===null){Te===null&&(Te=$e);break}n&&Te&&Ya.alternate===null&&a(P,Te),q=p(Ya,q,Ue),et===null?ze=Ya:et.sibling=Ya,et=Ya,Te=$e}if(tt.done)return o(P,Te),Qe&&Yr(P,Ue),ze;if(Te===null){for(;!tt.done;Ue++,tt=X.next())tt=ae(P,tt.value,re),tt!==null&&(q=p(tt,q,Ue),et===null?ze=tt:et.sibling=tt,et=tt);return Qe&&Yr(P,Ue),ze}for(Te=u(Te);!tt.done;Ue++,tt=X.next())tt=J(Te,P,Ue,tt.value,re),tt!==null&&(n&&tt.alternate!==null&&Te.delete(tt.key===null?Ue:tt.key),q=p(tt,q,Ue),et===null?ze=tt:et.sibling=tt,et=tt);return n&&Te.forEach(function(U9){return a(P,U9)}),Qe&&Yr(P,Ue),ze}function ut(P,q,X,re){if(typeof X=="object"&&X!==null&&X.type===A&&X.key===null&&(X=X.props.children),typeof X=="object"&&X!==null){switch(X.$$typeof){case w:e:{for(var ze=X.key;q!==null;){if(q.key===ze){if(ze=X.type,ze===A){if(q.tag===7){o(P,q.sibling),re=m(q,X.props.children),re.return=P,P=re;break e}}else if(q.elementType===ze||typeof ze=="object"&&ze!==null&&ze.$$typeof===V&&Mi(ze)===q.type){o(P,q.sibling),re=m(q,X.props),E0(re,X),re.return=P,P=re;break e}o(P,q);break}else a(P,q);q=q.sibling}X.type===A?(re=bi(X.props.children,P.mode,re,X.key),re.return=P,P=re):(re=os(X.type,X.key,X.props,null,P.mode,re),E0(re,X),re.return=P,P=re)}return S(P);case E:e:{for(ze=X.key;q!==null;){if(q.key===ze)if(q.tag===4&&q.stateNode.containerInfo===X.containerInfo&&q.stateNode.implementation===X.implementation){o(P,q.sibling),re=m(q,X.children||[]),re.return=P,P=re;break e}else{o(P,q);break}else a(P,q);q=q.sibling}re=rf(X,P.mode,re),re.return=P,P=re}return S(P);case V:return X=Mi(X),ut(P,q,X,re)}if(Ce(X))return Ae(P,q,X,re);if(he(X)){if(ze=he(X),typeof ze!="function")throw Error(i(150));return X=ze.call(X),je(P,q,X,re)}if(typeof X.then=="function")return ut(P,q,ms(X),re);if(X.$$typeof===R)return ut(P,q,cs(P,X),re);ps(P,X)}return typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint"?(X=""+X,q!==null&&q.tag===6?(o(P,q.sibling),re=m(q,X),re.return=P,P=re):(o(P,q),re=nf(X,P.mode,re),re.return=P,P=re),S(P)):o(P,q)}return function(P,q,X,re){try{M0=0;var ze=ut(P,q,X,re);return pl=null,ze}catch(Te){if(Te===ml||Te===ds)throw Te;var et=On(29,Te,null,P.mode);return et.lanes=re,et.return=P,et}finally{}}}var Ti=v4(!0),y4=v4(!1),Ta=!1;function gf(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vf(n,a){n=n.updateQueue,a.updateQueue===n&&(a.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Ca(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function ka(n,a,o){var u=n.updateQueue;if(u===null)return null;if(u=u.shared,(rt&2)!==0){var m=u.pending;return m===null?a.next=a:(a.next=m.next,m.next=a),u.pending=a,a=ls(n),t4(n,null,o),a}return is(n,u,a,o),ls(n)}function T0(n,a,o){if(a=a.updateQueue,a!==null&&(a=a.shared,(o&4194048)!==0)){var u=a.lanes;u&=n.pendingLanes,o|=u,a.lanes=o,um(n,o)}}function yf(n,a){var o=n.updateQueue,u=n.alternate;if(u!==null&&(u=u.updateQueue,o===u)){var m=null,p=null;if(o=o.firstBaseUpdate,o!==null){do{var S={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};p===null?m=p=S:p=p.next=S,o=o.next}while(o!==null);p===null?m=p=a:p=p.next=a}else m=p=a;o={baseState:u.baseState,firstBaseUpdate:m,lastBaseUpdate:p,shared:u.shared,callbacks:u.callbacks},n.updateQueue=o;return}n=o.lastBaseUpdate,n===null?o.firstBaseUpdate=a:n.next=a,o.lastBaseUpdate=a}var bf=!1;function C0(){if(bf){var n=hl;if(n!==null)throw n}}function k0(n,a,o,u){bf=!1;var m=n.updateQueue;Ta=!1;var p=m.firstBaseUpdate,S=m.lastBaseUpdate,z=m.shared.pending;if(z!==null){m.shared.pending=null;var _=z,K=_.next;_.next=null,S===null?p=K:S.next=K,S=_;var ee=n.alternate;ee!==null&&(ee=ee.updateQueue,z=ee.lastBaseUpdate,z!==S&&(z===null?ee.firstBaseUpdate=K:z.next=K,ee.lastBaseUpdate=_))}if(p!==null){var ae=m.baseState;S=0,ee=K=_=null,z=p;do{var Z=z.lane&-536870913,J=Z!==z.lane;if(J?(Xe&Z)===Z:(u&Z)===Z){Z!==0&&Z===dl&&(bf=!0),ee!==null&&(ee=ee.next={lane:0,tag:z.tag,payload:z.payload,callback:null,next:null});e:{var Ae=n,je=z;Z=a;var ut=o;switch(je.tag){case 1:if(Ae=je.payload,typeof Ae=="function"){ae=Ae.call(ut,ae,Z);break e}ae=Ae;break e;case 3:Ae.flags=Ae.flags&-65537|128;case 0:if(Ae=je.payload,Z=typeof Ae=="function"?Ae.call(ut,ae,Z):Ae,Z==null)break e;ae=v({},ae,Z);break e;case 2:Ta=!0}}Z=z.callback,Z!==null&&(n.flags|=64,J&&(n.flags|=8192),J=m.callbacks,J===null?m.callbacks=[Z]:J.push(Z))}else J={lane:Z,tag:z.tag,payload:z.payload,callback:z.callback,next:null},ee===null?(K=ee=J,_=ae):ee=ee.next=J,S|=Z;if(z=z.next,z===null){if(z=m.shared.pending,z===null)break;J=z,z=J.next,J.next=null,m.lastBaseUpdate=J,m.shared.pending=null}}while(!0);ee===null&&(_=ae),m.baseState=_,m.firstBaseUpdate=K,m.lastBaseUpdate=ee,p===null&&(m.shared.lanes=0),Ra|=S,n.lanes=S,n.memoizedState=ae}}function b4(n,a){if(typeof n!="function")throw Error(i(191,n));n.call(a)}function x4(n,a){var o=n.callbacks;if(o!==null)for(n.callbacks=null,n=0;n<o.length;n++)b4(o[n],a)}var gl=B(null),gs=B(0);function w4(n,a){n=ea,ie(gs,n),ie(gl,a),ea=n|a.baseLanes}function xf(){ie(gs,ea),ie(gl,gl.current)}function wf(){ea=gs.current,W(gl),W(gs)}var Rn=B(null),Qn=null;function Na(n){var a=n.alternate;ie(kt,kt.current&1),ie(Rn,n),Qn===null&&(a===null||gl.current!==null||a.memoizedState!==null)&&(Qn=n)}function Sf(n){ie(kt,kt.current),ie(Rn,n),Qn===null&&(Qn=n)}function S4(n){n.tag===22?(ie(kt,kt.current),ie(Rn,n),Qn===null&&(Qn=n)):za()}function za(){ie(kt,kt.current),ie(Rn,Rn.current)}function Ln(n){W(Rn),Qn===n&&(Qn=null),W(kt)}var kt=B(0);function vs(n){for(var a=n;a!==null;){if(a.tag===13){var o=a.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||kd(o)||Nd(o)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Ir=0,qe=null,ot=null,Rt=null,ys=!1,vl=!1,Ci=!1,bs=0,N0=0,yl=null,zy=0;function Et(){throw Error(i(321))}function Af(n,a){if(a===null)return!1;for(var o=0;o<a.length&&o<n.length;o++)if(!Dn(n[o],a[o]))return!1;return!0}function Mf(n,a,o,u,m,p){return Ir=p,qe=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,Y.H=n===null||n.memoizedState===null?ip:qf,Ci=!1,p=o(u,m),Ci=!1,vl&&(p=M4(a,o,u,m)),A4(n),p}function A4(n){Y.H=O0;var a=ot!==null&&ot.next!==null;if(Ir=0,Rt=ot=qe=null,ys=!1,N0=0,yl=null,a)throw Error(i(300));n===null||Lt||(n=n.dependencies,n!==null&&us(n)&&(Lt=!0))}function M4(n,a,o,u){qe=n;var m=0;do{if(vl&&(yl=null),N0=0,vl=!1,25<=m)throw Error(i(301));if(m+=1,Rt=ot=null,n.updateQueue!=null){var p=n.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}Y.H=lp,p=a(o,u)}while(vl);return p}function Dy(){var n=Y.H,a=n.useState()[0];return a=typeof a.then=="function"?z0(a):a,n=n.useState()[0],(ot!==null?ot.memoizedState:null)!==n&&(qe.flags|=1024),a}function Ef(){var n=bs!==0;return bs=0,n}function Tf(n,a,o){a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~o}function Cf(n){if(ys){for(n=n.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}ys=!1}Ir=0,Rt=ot=qe=null,vl=!1,N0=bs=0,yl=null}function sn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Rt===null?qe.memoizedState=Rt=n:Rt=Rt.next=n,Rt}function Nt(){if(ot===null){var n=qe.alternate;n=n!==null?n.memoizedState:null}else n=ot.next;var a=Rt===null?qe.memoizedState:Rt.next;if(a!==null)Rt=a,ot=n;else{if(n===null)throw qe.alternate===null?Error(i(467)):Error(i(310));ot=n,n={memoizedState:ot.memoizedState,baseState:ot.baseState,baseQueue:ot.baseQueue,queue:ot.queue,next:null},Rt===null?qe.memoizedState=Rt=n:Rt=Rt.next=n}return Rt}function xs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function z0(n){var a=N0;return N0+=1,yl===null&&(yl=[]),n=m4(yl,n,a),a=qe,(Rt===null?a.memoizedState:Rt.next)===null&&(a=a.alternate,Y.H=a===null||a.memoizedState===null?ip:qf),n}function ws(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return z0(n);if(n.$$typeof===R)return Wt(n)}throw Error(i(438,String(n)))}function kf(n){var a=null,o=qe.updateQueue;if(o!==null&&(a=o.memoCache),a==null){var u=qe.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(a={data:u.data.map(function(m){return m.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),o===null&&(o=xs(),qe.updateQueue=o),o.memoCache=a,o=a.data[a.index],o===void 0)for(o=a.data[a.index]=Array(n),u=0;u<n;u++)o[u]=de;return a.index++,o}function Xr(n,a){return typeof a=="function"?a(n):a}function Ss(n){var a=Nt();return Nf(a,ot,n)}function Nf(n,a,o){var u=n.queue;if(u===null)throw Error(i(311));u.lastRenderedReducer=o;var m=n.baseQueue,p=u.pending;if(p!==null){if(m!==null){var S=m.next;m.next=p.next,p.next=S}a.baseQueue=m=p,u.pending=null}if(p=n.baseState,m===null)n.memoizedState=p;else{a=m.next;var z=S=null,_=null,K=a,ee=!1;do{var ae=K.lane&-536870913;if(ae!==K.lane?(Xe&ae)===ae:(Ir&ae)===ae){var Z=K.revertLane;if(Z===0)_!==null&&(_=_.next={lane:0,revertLane:0,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),ae===dl&&(ee=!0);else if((Ir&Z)===Z){K=K.next,Z===dl&&(ee=!0);continue}else ae={lane:0,revertLane:K.revertLane,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},_===null?(z=_=ae,S=p):_=_.next=ae,qe.lanes|=Z,Ra|=Z;ae=K.action,Ci&&o(p,ae),p=K.hasEagerState?K.eagerState:o(p,ae)}else Z={lane:ae,revertLane:K.revertLane,gesture:K.gesture,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},_===null?(z=_=Z,S=p):_=_.next=Z,qe.lanes|=ae,Ra|=ae;K=K.next}while(K!==null&&K!==a);if(_===null?S=p:_.next=z,!Dn(p,n.memoizedState)&&(Lt=!0,ee&&(o=hl,o!==null)))throw o;n.memoizedState=p,n.baseState=S,n.baseQueue=_,u.lastRenderedState=p}return m===null&&(u.lanes=0),[n.memoizedState,u.dispatch]}function zf(n){var a=Nt(),o=a.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=n;var u=o.dispatch,m=o.pending,p=a.memoizedState;if(m!==null){o.pending=null;var S=m=m.next;do p=n(p,S.action),S=S.next;while(S!==m);Dn(p,a.memoizedState)||(Lt=!0),a.memoizedState=p,a.baseQueue===null&&(a.baseState=p),o.lastRenderedState=p}return[p,u]}function E4(n,a,o){var u=qe,m=Nt(),p=Qe;if(p){if(o===void 0)throw Error(i(407));o=o()}else o=a();var S=!Dn((ot||m).memoizedState,o);if(S&&(m.memoizedState=o,Lt=!0),m=m.queue,Rf(k4.bind(null,u,m,n),[n]),m.getSnapshot!==a||S||Rt!==null&&Rt.memoizedState.tag&1){if(u.flags|=2048,bl(9,{destroy:void 0},C4.bind(null,u,m,o,a),null),ft===null)throw Error(i(349));p||(Ir&127)!==0||T4(u,a,o)}return o}function T4(n,a,o){n.flags|=16384,n={getSnapshot:a,value:o},a=qe.updateQueue,a===null?(a=xs(),qe.updateQueue=a,a.stores=[n]):(o=a.stores,o===null?a.stores=[n]:o.push(n))}function C4(n,a,o,u){a.value=o,a.getSnapshot=u,N4(a)&&z4(n)}function k4(n,a,o){return o(function(){N4(a)&&z4(n)})}function N4(n){var a=n.getSnapshot;n=n.value;try{var o=a();return!Dn(n,o)}catch{return!0}}function z4(n){var a=yi(n,2);a!==null&&Sn(a,n,2)}function Df(n){var a=sn();if(typeof n=="function"){var o=n;if(n=o(),Ci){vr(!0);try{o()}finally{vr(!1)}}}return a.memoizedState=a.baseState=n,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xr,lastRenderedState:n},a}function D4(n,a,o,u){return n.baseState=o,Nf(n,ot,typeof u=="function"?u:Xr)}function Oy(n,a,o,u,m){if(Es(n))throw Error(i(485));if(n=a.action,n!==null){var p={payload:m,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(S){p.listeners.push(S)}};Y.T!==null?o(!0):p.isTransition=!1,u(p),o=a.pending,o===null?(p.next=a.pending=p,O4(a,p)):(p.next=o.next,a.pending=o.next=p)}}function O4(n,a){var o=a.action,u=a.payload,m=n.state;if(a.isTransition){var p=Y.T,S={};Y.T=S;try{var z=o(m,u),_=Y.S;_!==null&&_(S,z),R4(n,a,z)}catch(K){Of(n,a,K)}finally{p!==null&&S.types!==null&&(p.types=S.types),Y.T=p}}else try{p=o(m,u),R4(n,a,p)}catch(K){Of(n,a,K)}}function R4(n,a,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(u){L4(n,a,u)},function(u){return Of(n,a,u)}):L4(n,a,o)}function L4(n,a,o){a.status="fulfilled",a.value=o,j4(a),n.state=o,a=n.pending,a!==null&&(o=a.next,o===a?n.pending=null:(o=o.next,a.next=o,O4(n,o)))}function Of(n,a,o){var u=n.pending;if(n.pending=null,u!==null){u=u.next;do a.status="rejected",a.reason=o,j4(a),a=a.next;while(a!==u)}n.action=null}function j4(n){n=n.listeners;for(var a=0;a<n.length;a++)(0,n[a])()}function B4(n,a){return a}function _4(n,a){if(Qe){var o=ft.formState;if(o!==null){e:{var u=qe;if(Qe){if(mt){t:{for(var m=mt,p=Kn;m.nodeType!==8;){if(!p){m=null;break t}if(m=Zn(m.nextSibling),m===null){m=null;break t}}p=m.data,m=p==="F!"||p==="F"?m:null}if(m){mt=Zn(m.nextSibling),u=m.data==="F!";break e}}Ma(u)}u=!1}u&&(a=o[0])}}return o=sn(),o.memoizedState=o.baseState=a,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:B4,lastRenderedState:a},o.queue=u,o=np.bind(null,qe,u),u.dispatch=o,u=Df(!1),p=Hf.bind(null,qe,!1,u.queue),u=sn(),m={state:a,dispatch:null,action:n,pending:null},u.queue=m,o=Oy.bind(null,qe,m,p,o),m.dispatch=o,u.memoizedState=n,[a,o,!1]}function H4(n){var a=Nt();return q4(a,ot,n)}function q4(n,a,o){if(a=Nf(n,a,B4)[0],n=Ss(Xr)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var u=z0(a)}catch(S){throw S===ml?ds:S}else u=a;a=Nt();var m=a.queue,p=m.dispatch;return o!==a.memoizedState&&(qe.flags|=2048,bl(9,{destroy:void 0},Ry.bind(null,m,o),null)),[u,p,n]}function Ry(n,a){n.action=a}function U4(n){var a=Nt(),o=ot;if(o!==null)return q4(a,o,n);Nt(),a=a.memoizedState,o=Nt();var u=o.queue.dispatch;return o.memoizedState=n,[a,u,!1]}function bl(n,a,o,u){return n={tag:n,create:o,deps:u,inst:a,next:null},a=qe.updateQueue,a===null&&(a=xs(),qe.updateQueue=a),o=a.lastEffect,o===null?a.lastEffect=n.next=n:(u=o.next,o.next=n,n.next=u,a.lastEffect=n),n}function G4(){return Nt().memoizedState}function As(n,a,o,u){var m=sn();qe.flags|=n,m.memoizedState=bl(1|a,{destroy:void 0},o,u===void 0?null:u)}function Ms(n,a,o,u){var m=Nt();u=u===void 0?null:u;var p=m.memoizedState.inst;ot!==null&&u!==null&&Af(u,ot.memoizedState.deps)?m.memoizedState=bl(a,p,o,u):(qe.flags|=n,m.memoizedState=bl(1|a,p,o,u))}function F4(n,a){As(8390656,8,n,a)}function Rf(n,a){Ms(2048,8,n,a)}function Ly(n){qe.flags|=4;var a=qe.updateQueue;if(a===null)a=xs(),qe.updateQueue=a,a.events=[n];else{var o=a.events;o===null?a.events=[n]:o.push(n)}}function Y4(n){var a=Nt().memoizedState;return Ly({ref:a,nextImpl:n}),function(){if((rt&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}function P4(n,a){return Ms(4,2,n,a)}function V4(n,a){return Ms(4,4,n,a)}function I4(n,a){if(typeof a=="function"){n=n();var o=a(n);return function(){typeof o=="function"?o():a(null)}}if(a!=null)return n=n(),a.current=n,function(){a.current=null}}function X4(n,a,o){o=o!=null?o.concat([n]):null,Ms(4,4,I4.bind(null,a,n),o)}function Lf(){}function $4(n,a){var o=Nt();a=a===void 0?null:a;var u=o.memoizedState;return a!==null&&Af(a,u[1])?u[0]:(o.memoizedState=[n,a],n)}function K4(n,a){var o=Nt();a=a===void 0?null:a;var u=o.memoizedState;if(a!==null&&Af(a,u[1]))return u[0];if(u=n(),Ci){vr(!0);try{n()}finally{vr(!1)}}return o.memoizedState=[u,a],u}function jf(n,a,o){return o===void 0||(Ir&1073741824)!==0&&(Xe&261930)===0?n.memoizedState=a:(n.memoizedState=o,n=Qp(),qe.lanes|=n,Ra|=n,o)}function Q4(n,a,o,u){return Dn(o,a)?o:gl.current!==null?(n=jf(n,o,u),Dn(n,a)||(Lt=!0),n):(Ir&42)===0||(Ir&1073741824)!==0&&(Xe&261930)===0?(Lt=!0,n.memoizedState=o):(n=Qp(),qe.lanes|=n,Ra|=n,a)}function Z4(n,a,o,u,m){var p=ne.p;ne.p=p!==0&&8>p?p:8;var S=Y.T,z={};Y.T=z,Hf(n,!1,a,o);try{var _=m(),K=Y.S;if(K!==null&&K(z,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var ee=Ny(_,u);D0(n,a,ee,_n(n))}else D0(n,a,u,_n(n))}catch(ae){D0(n,a,{then:function(){},status:"rejected",reason:ae},_n())}finally{ne.p=p,S!==null&&z.types!==null&&(S.types=z.types),Y.T=S}}function jy(){}function Bf(n,a,o,u){if(n.tag!==5)throw Error(i(476));var m=W4(n).queue;Z4(n,m,a,Q,o===null?jy:function(){return J4(n),o(u)})}function W4(n){var a=n.memoizedState;if(a!==null)return a;a={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xr,lastRenderedState:Q},next:null};var o={};return a.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xr,lastRenderedState:o},next:null},n.memoizedState=a,n=n.alternate,n!==null&&(n.memoizedState=a),a}function J4(n){var a=W4(n);a.next===null&&(a=n.alternate.memoizedState),D0(n,a.next.queue,{},_n())}function _f(){return Wt($0)}function ep(){return Nt().memoizedState}function tp(){return Nt().memoizedState}function By(n){for(var a=n.return;a!==null;){switch(a.tag){case 24:case 3:var o=_n();n=Ca(o);var u=ka(a,n,o);u!==null&&(Sn(u,a,o),T0(u,a,o)),a={cache:df()},n.payload=a;return}a=a.return}}function _y(n,a,o){var u=_n();o={lane:u,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Es(n)?rp(a,o):(o=ef(n,a,o,u),o!==null&&(Sn(o,n,u),ap(o,a,u)))}function np(n,a,o){var u=_n();D0(n,a,o,u)}function D0(n,a,o,u){var m={lane:u,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(Es(n))rp(a,m);else{var p=n.alternate;if(n.lanes===0&&(p===null||p.lanes===0)&&(p=a.lastRenderedReducer,p!==null))try{var S=a.lastRenderedState,z=p(S,o);if(m.hasEagerState=!0,m.eagerState=z,Dn(z,S))return is(n,a,m,0),ft===null&&as(),!1}catch{}finally{}if(o=ef(n,a,m,u),o!==null)return Sn(o,n,u),ap(o,a,u),!0}return!1}function Hf(n,a,o,u){if(u={lane:2,revertLane:gd(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Es(n)){if(a)throw Error(i(479))}else a=ef(n,o,u,2),a!==null&&Sn(a,n,2)}function Es(n){var a=n.alternate;return n===qe||a!==null&&a===qe}function rp(n,a){vl=ys=!0;var o=n.pending;o===null?a.next=a:(a.next=o.next,o.next=a),n.pending=a}function ap(n,a,o){if((o&4194048)!==0){var u=a.lanes;u&=n.pendingLanes,o|=u,a.lanes=o,um(n,o)}}var O0={readContext:Wt,use:ws,useCallback:Et,useContext:Et,useEffect:Et,useImperativeHandle:Et,useLayoutEffect:Et,useInsertionEffect:Et,useMemo:Et,useReducer:Et,useRef:Et,useState:Et,useDebugValue:Et,useDeferredValue:Et,useTransition:Et,useSyncExternalStore:Et,useId:Et,useHostTransitionStatus:Et,useFormState:Et,useActionState:Et,useOptimistic:Et,useMemoCache:Et,useCacheRefresh:Et};O0.useEffectEvent=Et;var ip={readContext:Wt,use:ws,useCallback:function(n,a){return sn().memoizedState=[n,a===void 0?null:a],n},useContext:Wt,useEffect:F4,useImperativeHandle:function(n,a,o){o=o!=null?o.concat([n]):null,As(4194308,4,I4.bind(null,a,n),o)},useLayoutEffect:function(n,a){return As(4194308,4,n,a)},useInsertionEffect:function(n,a){As(4,2,n,a)},useMemo:function(n,a){var o=sn();a=a===void 0?null:a;var u=n();if(Ci){vr(!0);try{n()}finally{vr(!1)}}return o.memoizedState=[u,a],u},useReducer:function(n,a,o){var u=sn();if(o!==void 0){var m=o(a);if(Ci){vr(!0);try{o(a)}finally{vr(!1)}}}else m=a;return u.memoizedState=u.baseState=m,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:m},u.queue=n,n=n.dispatch=_y.bind(null,qe,n),[u.memoizedState,n]},useRef:function(n){var a=sn();return n={current:n},a.memoizedState=n},useState:function(n){n=Df(n);var a=n.queue,o=np.bind(null,qe,a);return a.dispatch=o,[n.memoizedState,o]},useDebugValue:Lf,useDeferredValue:function(n,a){var o=sn();return jf(o,n,a)},useTransition:function(){var n=Df(!1);return n=Z4.bind(null,qe,n.queue,!0,!1),sn().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,a,o){var u=qe,m=sn();if(Qe){if(o===void 0)throw Error(i(407));o=o()}else{if(o=a(),ft===null)throw Error(i(349));(Xe&127)!==0||T4(u,a,o)}m.memoizedState=o;var p={value:o,getSnapshot:a};return m.queue=p,F4(k4.bind(null,u,p,n),[n]),u.flags|=2048,bl(9,{destroy:void 0},C4.bind(null,u,p,o,a),null),o},useId:function(){var n=sn(),a=ft.identifierPrefix;if(Qe){var o=xr,u=br;o=(u&~(1<<32-on(u)-1)).toString(32)+o,a="_"+a+"R_"+o,o=bs++,0<o&&(a+="H"+o.toString(32)),a+="_"}else o=zy++,a="_"+a+"r_"+o.toString(32)+"_";return n.memoizedState=a},useHostTransitionStatus:_f,useFormState:_4,useActionState:_4,useOptimistic:function(n){var a=sn();a.memoizedState=a.baseState=n;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=o,a=Hf.bind(null,qe,!0,o),o.dispatch=a,[n,a]},useMemoCache:kf,useCacheRefresh:function(){return sn().memoizedState=By.bind(null,qe)},useEffectEvent:function(n){var a=sn(),o={impl:n};return a.memoizedState=o,function(){if((rt&2)!==0)throw Error(i(440));return o.impl.apply(void 0,arguments)}}},qf={readContext:Wt,use:ws,useCallback:$4,useContext:Wt,useEffect:Rf,useImperativeHandle:X4,useInsertionEffect:P4,useLayoutEffect:V4,useMemo:K4,useReducer:Ss,useRef:G4,useState:function(){return Ss(Xr)},useDebugValue:Lf,useDeferredValue:function(n,a){var o=Nt();return Q4(o,ot.memoizedState,n,a)},useTransition:function(){var n=Ss(Xr)[0],a=Nt().memoizedState;return[typeof n=="boolean"?n:z0(n),a]},useSyncExternalStore:E4,useId:ep,useHostTransitionStatus:_f,useFormState:H4,useActionState:H4,useOptimistic:function(n,a){var o=Nt();return D4(o,ot,n,a)},useMemoCache:kf,useCacheRefresh:tp};qf.useEffectEvent=Y4;var lp={readContext:Wt,use:ws,useCallback:$4,useContext:Wt,useEffect:Rf,useImperativeHandle:X4,useInsertionEffect:P4,useLayoutEffect:V4,useMemo:K4,useReducer:zf,useRef:G4,useState:function(){return zf(Xr)},useDebugValue:Lf,useDeferredValue:function(n,a){var o=Nt();return ot===null?jf(o,n,a):Q4(o,ot.memoizedState,n,a)},useTransition:function(){var n=zf(Xr)[0],a=Nt().memoizedState;return[typeof n=="boolean"?n:z0(n),a]},useSyncExternalStore:E4,useId:ep,useHostTransitionStatus:_f,useFormState:U4,useActionState:U4,useOptimistic:function(n,a){var o=Nt();return ot!==null?D4(o,ot,n,a):(o.baseState=n,[n,o.queue.dispatch])},useMemoCache:kf,useCacheRefresh:tp};lp.useEffectEvent=Y4;function Uf(n,a,o,u){a=n.memoizedState,o=o(u,a),o=o==null?a:v({},a,o),n.memoizedState=o,n.lanes===0&&(n.updateQueue.baseState=o)}var Gf={enqueueSetState:function(n,a,o){n=n._reactInternals;var u=_n(),m=Ca(u);m.payload=a,o!=null&&(m.callback=o),a=ka(n,m,u),a!==null&&(Sn(a,n,u),T0(a,n,u))},enqueueReplaceState:function(n,a,o){n=n._reactInternals;var u=_n(),m=Ca(u);m.tag=1,m.payload=a,o!=null&&(m.callback=o),a=ka(n,m,u),a!==null&&(Sn(a,n,u),T0(a,n,u))},enqueueForceUpdate:function(n,a){n=n._reactInternals;var o=_n(),u=Ca(o);u.tag=2,a!=null&&(u.callback=a),a=ka(n,u,o),a!==null&&(Sn(a,n,o),T0(a,n,o))}};function op(n,a,o,u,m,p,S){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(u,p,S):a.prototype&&a.prototype.isPureReactComponent?!y0(o,u)||!y0(m,p):!0}function sp(n,a,o,u){n=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(o,u),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(o,u),a.state!==n&&Gf.enqueueReplaceState(a,a.state,null)}function ki(n,a){var o=a;if("ref"in a){o={};for(var u in a)u!=="ref"&&(o[u]=a[u])}if(n=n.defaultProps){o===a&&(o=v({},o));for(var m in n)o[m]===void 0&&(o[m]=n[m])}return o}function up(n){rs(n)}function cp(n){console.error(n)}function fp(n){rs(n)}function Ts(n,a){try{var o=n.onUncaughtError;o(a.value,{componentStack:a.stack})}catch(u){setTimeout(function(){throw u})}}function dp(n,a,o){try{var u=n.onCaughtError;u(o.value,{componentStack:o.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function Ff(n,a,o){return o=Ca(o),o.tag=3,o.payload={element:null},o.callback=function(){Ts(n,a)},o}function hp(n){return n=Ca(n),n.tag=3,n}function mp(n,a,o,u){var m=o.type.getDerivedStateFromError;if(typeof m=="function"){var p=u.value;n.payload=function(){return m(p)},n.callback=function(){dp(a,o,u)}}var S=o.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(n.callback=function(){dp(a,o,u),typeof m!="function"&&(La===null?La=new Set([this]):La.add(this));var z=u.stack;this.componentDidCatch(u.value,{componentStack:z!==null?z:""})})}function Hy(n,a,o,u,m){if(o.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(a=o.alternate,a!==null&&fl(a,o,m,!0),o=Rn.current,o!==null){switch(o.tag){case 31:case 13:return Qn===null?Hs():o.alternate===null&&Tt===0&&(Tt=3),o.flags&=-257,o.flags|=65536,o.lanes=m,u===hs?o.flags|=16384:(a=o.updateQueue,a===null?o.updateQueue=new Set([u]):a.add(u),hd(n,u,m)),!1;case 22:return o.flags|=65536,u===hs?o.flags|=16384:(a=o.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([u])},o.updateQueue=a):(o=a.retryQueue,o===null?a.retryQueue=new Set([u]):o.add(u)),hd(n,u,m)),!1}throw Error(i(435,o.tag))}return hd(n,u,m),Hs(),!1}if(Qe)return a=Rn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=m,u!==of&&(n=Error(i(422),{cause:u}),w0(In(n,o)))):(u!==of&&(a=Error(i(423),{cause:u}),w0(In(a,o))),n=n.current.alternate,n.flags|=65536,m&=-m,n.lanes|=m,u=In(u,o),m=Ff(n.stateNode,u,m),yf(n,m),Tt!==4&&(Tt=2)),!1;var p=Error(i(520),{cause:u});if(p=In(p,o),U0===null?U0=[p]:U0.push(p),Tt!==4&&(Tt=2),a===null)return!0;u=In(u,o),o=a;do{switch(o.tag){case 3:return o.flags|=65536,n=m&-m,o.lanes|=n,n=Ff(o.stateNode,u,n),yf(o,n),!1;case 1:if(a=o.type,p=o.stateNode,(o.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(La===null||!La.has(p))))return o.flags|=65536,m&=-m,o.lanes|=m,m=hp(m),mp(m,n,o,u),yf(o,m),!1}o=o.return}while(o!==null);return!1}var Yf=Error(i(461)),Lt=!1;function Jt(n,a,o,u){a.child=n===null?y4(a,null,o,u):Ti(a,n.child,o,u)}function pp(n,a,o,u,m){o=o.render;var p=a.ref;if("ref"in u){var S={};for(var z in u)z!=="ref"&&(S[z]=u[z])}else S=u;return Si(a),u=Mf(n,a,o,S,p,m),z=Ef(),n!==null&&!Lt?(Tf(n,a,m),$r(n,a,m)):(Qe&&z&&af(a),a.flags|=1,Jt(n,a,u,m),a.child)}function gp(n,a,o,u,m){if(n===null){var p=o.type;return typeof p=="function"&&!tf(p)&&p.defaultProps===void 0&&o.compare===null?(a.tag=15,a.type=p,vp(n,a,p,u,m)):(n=os(o.type,null,u,a,a.mode,m),n.ref=a.ref,n.return=a,a.child=n)}if(p=n.child,!Zf(n,m)){var S=p.memoizedProps;if(o=o.compare,o=o!==null?o:y0,o(S,u)&&n.ref===a.ref)return $r(n,a,m)}return a.flags|=1,n=Fr(p,u),n.ref=a.ref,n.return=a,a.child=n}function vp(n,a,o,u,m){if(n!==null){var p=n.memoizedProps;if(y0(p,u)&&n.ref===a.ref)if(Lt=!1,a.pendingProps=u=p,Zf(n,m))(n.flags&131072)!==0&&(Lt=!0);else return a.lanes=n.lanes,$r(n,a,m)}return Pf(n,a,o,u,m)}function yp(n,a,o,u){var m=u.children,p=n!==null?n.memoizedState:null;if(n===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((a.flags&128)!==0){if(p=p!==null?p.baseLanes|o:o,n!==null){for(u=a.child=n.child,m=0;u!==null;)m=m|u.lanes|u.childLanes,u=u.sibling;u=m&~p}else u=0,a.child=null;return bp(n,a,p,o,u)}if((o&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},n!==null&&fs(a,p!==null?p.cachePool:null),p!==null?w4(a,p):xf(),S4(a);else return u=a.lanes=536870912,bp(n,a,p!==null?p.baseLanes|o:o,o,u)}else p!==null?(fs(a,p.cachePool),w4(a,p),za(),a.memoizedState=null):(n!==null&&fs(a,null),xf(),za());return Jt(n,a,m,o),a.child}function R0(n,a){return n!==null&&n.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function bp(n,a,o,u,m){var p=mf();return p=p===null?null:{parent:Ot._currentValue,pool:p},a.memoizedState={baseLanes:o,cachePool:p},n!==null&&fs(a,null),xf(),S4(a),n!==null&&fl(n,a,u,!0),a.childLanes=m,null}function Cs(n,a){return a=Ns({mode:a.mode,children:a.children},n.mode),a.ref=n.ref,n.child=a,a.return=n,a}function xp(n,a,o){return Ti(a,n.child,null,o),n=Cs(a,a.pendingProps),n.flags|=2,Ln(a),a.memoizedState=null,n}function qy(n,a,o){var u=a.pendingProps,m=(a.flags&128)!==0;if(a.flags&=-129,n===null){if(Qe){if(u.mode==="hidden")return n=Cs(a,u),a.lanes=536870912,R0(null,n);if(Sf(a),(n=mt)?(n=O2(n,Kn),n=n!==null&&n.data==="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:Sa!==null?{id:br,overflow:xr}:null,retryLane:536870912,hydrationErrors:null},o=r4(n),o.return=a,a.child=o,Zt=a,mt=null)):n=null,n===null)throw Ma(a);return a.lanes=536870912,null}return Cs(a,u)}var p=n.memoizedState;if(p!==null){var S=p.dehydrated;if(Sf(a),m)if(a.flags&256)a.flags&=-257,a=xp(n,a,o);else if(a.memoizedState!==null)a.child=n.child,a.flags|=128,a=null;else throw Error(i(558));else if(Lt||fl(n,a,o,!1),m=(o&n.childLanes)!==0,Lt||m){if(u=ft,u!==null&&(S=cm(u,o),S!==0&&S!==p.retryLane))throw p.retryLane=S,yi(n,S),Sn(u,n,S),Yf;Hs(),a=xp(n,a,o)}else n=p.treeContext,mt=Zn(S.nextSibling),Zt=a,Qe=!0,Aa=null,Kn=!1,n!==null&&l4(a,n),a=Cs(a,u),a.flags|=4096;return a}return n=Fr(n.child,{mode:u.mode,children:u.children}),n.ref=a.ref,a.child=n,n.return=a,n}function ks(n,a){var o=a.ref;if(o===null)n!==null&&n.ref!==null&&(a.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(i(284));(n===null||n.ref!==o)&&(a.flags|=4194816)}}function Pf(n,a,o,u,m){return Si(a),o=Mf(n,a,o,u,void 0,m),u=Ef(),n!==null&&!Lt?(Tf(n,a,m),$r(n,a,m)):(Qe&&u&&af(a),a.flags|=1,Jt(n,a,o,m),a.child)}function wp(n,a,o,u,m,p){return Si(a),a.updateQueue=null,o=M4(a,u,o,m),A4(n),u=Ef(),n!==null&&!Lt?(Tf(n,a,p),$r(n,a,p)):(Qe&&u&&af(a),a.flags|=1,Jt(n,a,o,p),a.child)}function Sp(n,a,o,u,m){if(Si(a),a.stateNode===null){var p=ol,S=o.contextType;typeof S=="object"&&S!==null&&(p=Wt(S)),p=new o(u,p),a.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=Gf,a.stateNode=p,p._reactInternals=a,p=a.stateNode,p.props=u,p.state=a.memoizedState,p.refs={},gf(a),S=o.contextType,p.context=typeof S=="object"&&S!==null?Wt(S):ol,p.state=a.memoizedState,S=o.getDerivedStateFromProps,typeof S=="function"&&(Uf(a,o,S,u),p.state=a.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(S=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),S!==p.state&&Gf.enqueueReplaceState(p,p.state,null),k0(a,u,p,m),C0(),p.state=a.memoizedState),typeof p.componentDidMount=="function"&&(a.flags|=4194308),u=!0}else if(n===null){p=a.stateNode;var z=a.memoizedProps,_=ki(o,z);p.props=_;var K=p.context,ee=o.contextType;S=ol,typeof ee=="object"&&ee!==null&&(S=Wt(ee));var ae=o.getDerivedStateFromProps;ee=typeof ae=="function"||typeof p.getSnapshotBeforeUpdate=="function",z=a.pendingProps!==z,ee||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(z||K!==S)&&sp(a,p,u,S),Ta=!1;var Z=a.memoizedState;p.state=Z,k0(a,u,p,m),C0(),K=a.memoizedState,z||Z!==K||Ta?(typeof ae=="function"&&(Uf(a,o,ae,u),K=a.memoizedState),(_=Ta||op(a,o,_,u,Z,K,S))?(ee||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(a.flags|=4194308)):(typeof p.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=u,a.memoizedState=K),p.props=u,p.state=K,p.context=S,u=_):(typeof p.componentDidMount=="function"&&(a.flags|=4194308),u=!1)}else{p=a.stateNode,vf(n,a),S=a.memoizedProps,ee=ki(o,S),p.props=ee,ae=a.pendingProps,Z=p.context,K=o.contextType,_=ol,typeof K=="object"&&K!==null&&(_=Wt(K)),z=o.getDerivedStateFromProps,(K=typeof z=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(S!==ae||Z!==_)&&sp(a,p,u,_),Ta=!1,Z=a.memoizedState,p.state=Z,k0(a,u,p,m),C0();var J=a.memoizedState;S!==ae||Z!==J||Ta||n!==null&&n.dependencies!==null&&us(n.dependencies)?(typeof z=="function"&&(Uf(a,o,z,u),J=a.memoizedState),(ee=Ta||op(a,o,ee,u,Z,J,_)||n!==null&&n.dependencies!==null&&us(n.dependencies))?(K||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(u,J,_),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(u,J,_)),typeof p.componentDidUpdate=="function"&&(a.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof p.componentDidUpdate!="function"||S===n.memoizedProps&&Z===n.memoizedState||(a.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||S===n.memoizedProps&&Z===n.memoizedState||(a.flags|=1024),a.memoizedProps=u,a.memoizedState=J),p.props=u,p.state=J,p.context=_,u=ee):(typeof p.componentDidUpdate!="function"||S===n.memoizedProps&&Z===n.memoizedState||(a.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||S===n.memoizedProps&&Z===n.memoizedState||(a.flags|=1024),u=!1)}return p=u,ks(n,a),u=(a.flags&128)!==0,p||u?(p=a.stateNode,o=u&&typeof o.getDerivedStateFromError!="function"?null:p.render(),a.flags|=1,n!==null&&u?(a.child=Ti(a,n.child,null,m),a.child=Ti(a,null,o,m)):Jt(n,a,o,m),a.memoizedState=p.state,n=a.child):n=$r(n,a,m),n}function Ap(n,a,o,u){return xi(),a.flags|=256,Jt(n,a,o,u),a.child}var Vf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function If(n){return{baseLanes:n,cachePool:d4()}}function Xf(n,a,o){return n=n!==null?n.childLanes&~o:0,a&&(n|=Bn),n}function Mp(n,a,o){var u=a.pendingProps,m=!1,p=(a.flags&128)!==0,S;if((S=p)||(S=n!==null&&n.memoizedState===null?!1:(kt.current&2)!==0),S&&(m=!0,a.flags&=-129),S=(a.flags&32)!==0,a.flags&=-33,n===null){if(Qe){if(m?Na(a):za(),(n=mt)?(n=O2(n,Kn),n=n!==null&&n.data!=="&"?n:null,n!==null&&(a.memoizedState={dehydrated:n,treeContext:Sa!==null?{id:br,overflow:xr}:null,retryLane:536870912,hydrationErrors:null},o=r4(n),o.return=a,a.child=o,Zt=a,mt=null)):n=null,n===null)throw Ma(a);return Nd(n)?a.lanes=32:a.lanes=536870912,null}var z=u.children;return u=u.fallback,m?(za(),m=a.mode,z=Ns({mode:"hidden",children:z},m),u=bi(u,m,o,null),z.return=a,u.return=a,z.sibling=u,a.child=z,u=a.child,u.memoizedState=If(o),u.childLanes=Xf(n,S,o),a.memoizedState=Vf,R0(null,u)):(Na(a),$f(a,z))}var _=n.memoizedState;if(_!==null&&(z=_.dehydrated,z!==null)){if(p)a.flags&256?(Na(a),a.flags&=-257,a=Kf(n,a,o)):a.memoizedState!==null?(za(),a.child=n.child,a.flags|=128,a=null):(za(),z=u.fallback,m=a.mode,u=Ns({mode:"visible",children:u.children},m),z=bi(z,m,o,null),z.flags|=2,u.return=a,z.return=a,u.sibling=z,a.child=u,Ti(a,n.child,null,o),u=a.child,u.memoizedState=If(o),u.childLanes=Xf(n,S,o),a.memoizedState=Vf,a=R0(null,u));else if(Na(a),Nd(z)){if(S=z.nextSibling&&z.nextSibling.dataset,S)var K=S.dgst;S=K,u=Error(i(419)),u.stack="",u.digest=S,w0({value:u,source:null,stack:null}),a=Kf(n,a,o)}else if(Lt||fl(n,a,o,!1),S=(o&n.childLanes)!==0,Lt||S){if(S=ft,S!==null&&(u=cm(S,o),u!==0&&u!==_.retryLane))throw _.retryLane=u,yi(n,u),Sn(S,n,u),Yf;kd(z)||Hs(),a=Kf(n,a,o)}else kd(z)?(a.flags|=192,a.child=n.child,a=null):(n=_.treeContext,mt=Zn(z.nextSibling),Zt=a,Qe=!0,Aa=null,Kn=!1,n!==null&&l4(a,n),a=$f(a,u.children),a.flags|=4096);return a}return m?(za(),z=u.fallback,m=a.mode,_=n.child,K=_.sibling,u=Fr(_,{mode:"hidden",children:u.children}),u.subtreeFlags=_.subtreeFlags&65011712,K!==null?z=Fr(K,z):(z=bi(z,m,o,null),z.flags|=2),z.return=a,u.return=a,u.sibling=z,a.child=u,R0(null,u),u=a.child,z=n.child.memoizedState,z===null?z=If(o):(m=z.cachePool,m!==null?(_=Ot._currentValue,m=m.parent!==_?{parent:_,pool:_}:m):m=d4(),z={baseLanes:z.baseLanes|o,cachePool:m}),u.memoizedState=z,u.childLanes=Xf(n,S,o),a.memoizedState=Vf,R0(n.child,u)):(Na(a),o=n.child,n=o.sibling,o=Fr(o,{mode:"visible",children:u.children}),o.return=a,o.sibling=null,n!==null&&(S=a.deletions,S===null?(a.deletions=[n],a.flags|=16):S.push(n)),a.child=o,a.memoizedState=null,o)}function $f(n,a){return a=Ns({mode:"visible",children:a},n.mode),a.return=n,n.child=a}function Ns(n,a){return n=On(22,n,null,a),n.lanes=0,n}function Kf(n,a,o){return Ti(a,n.child,null,o),n=$f(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function Ep(n,a,o){n.lanes|=a;var u=n.alternate;u!==null&&(u.lanes|=a),cf(n.return,a,o)}function Qf(n,a,o,u,m,p){var S=n.memoizedState;S===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:u,tail:o,tailMode:m,treeForkCount:p}:(S.isBackwards=a,S.rendering=null,S.renderingStartTime=0,S.last=u,S.tail=o,S.tailMode=m,S.treeForkCount=p)}function Tp(n,a,o){var u=a.pendingProps,m=u.revealOrder,p=u.tail;u=u.children;var S=kt.current,z=(S&2)!==0;if(z?(S=S&1|2,a.flags|=128):S&=1,ie(kt,S),Jt(n,a,u,o),u=Qe?x0:0,!z&&n!==null&&(n.flags&128)!==0)e:for(n=a.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Ep(n,o,a);else if(n.tag===19)Ep(n,o,a);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===a)break e;for(;n.sibling===null;){if(n.return===null||n.return===a)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}switch(m){case"forwards":for(o=a.child,m=null;o!==null;)n=o.alternate,n!==null&&vs(n)===null&&(m=o),o=o.sibling;o=m,o===null?(m=a.child,a.child=null):(m=o.sibling,o.sibling=null),Qf(a,!1,m,o,p,u);break;case"backwards":case"unstable_legacy-backwards":for(o=null,m=a.child,a.child=null;m!==null;){if(n=m.alternate,n!==null&&vs(n)===null){a.child=m;break}n=m.sibling,m.sibling=o,o=m,m=n}Qf(a,!0,o,null,p,u);break;case"together":Qf(a,!1,null,null,void 0,u);break;default:a.memoizedState=null}return a.child}function $r(n,a,o){if(n!==null&&(a.dependencies=n.dependencies),Ra|=a.lanes,(o&a.childLanes)===0)if(n!==null){if(fl(n,a,o,!1),(o&a.childLanes)===0)return null}else return null;if(n!==null&&a.child!==n.child)throw Error(i(153));if(a.child!==null){for(n=a.child,o=Fr(n,n.pendingProps),a.child=o,o.return=a;n.sibling!==null;)n=n.sibling,o=o.sibling=Fr(n,n.pendingProps),o.return=a;o.sibling=null}return a.child}function Zf(n,a){return(n.lanes&a)!==0?!0:(n=n.dependencies,!!(n!==null&&us(n)))}function Uy(n,a,o){switch(a.tag){case 3:_e(a,a.stateNode.containerInfo),Ea(a,Ot,n.memoizedState.cache),xi();break;case 27:case 5:Ze(a);break;case 4:_e(a,a.stateNode.containerInfo);break;case 10:Ea(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Sf(a),null;break;case 13:var u=a.memoizedState;if(u!==null)return u.dehydrated!==null?(Na(a),a.flags|=128,null):(o&a.child.childLanes)!==0?Mp(n,a,o):(Na(a),n=$r(n,a,o),n!==null?n.sibling:null);Na(a);break;case 19:var m=(n.flags&128)!==0;if(u=(o&a.childLanes)!==0,u||(fl(n,a,o,!1),u=(o&a.childLanes)!==0),m){if(u)return Tp(n,a,o);a.flags|=128}if(m=a.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),ie(kt,kt.current),u)break;return null;case 22:return a.lanes=0,yp(n,a,o,a.pendingProps);case 24:Ea(a,Ot,n.memoizedState.cache)}return $r(n,a,o)}function Cp(n,a,o){if(n!==null)if(n.memoizedProps!==a.pendingProps)Lt=!0;else{if(!Zf(n,o)&&(a.flags&128)===0)return Lt=!1,Uy(n,a,o);Lt=(n.flags&131072)!==0}else Lt=!1,Qe&&(a.flags&1048576)!==0&&i4(a,x0,a.index);switch(a.lanes=0,a.tag){case 16:e:{var u=a.pendingProps;if(n=Mi(a.elementType),a.type=n,typeof n=="function")tf(n)?(u=ki(n,u),a.tag=1,a=Sp(null,a,n,u,o)):(a.tag=0,a=Pf(null,a,n,u,o));else{if(n!=null){var m=n.$$typeof;if(m===H){a.tag=11,a=pp(null,a,n,u,o);break e}else if(m===G){a.tag=14,a=gp(null,a,n,u,o);break e}}throw a=we(n)||n,Error(i(306,a,""))}}return a;case 0:return Pf(n,a,a.type,a.pendingProps,o);case 1:return u=a.type,m=ki(u,a.pendingProps),Sp(n,a,u,m,o);case 3:e:{if(_e(a,a.stateNode.containerInfo),n===null)throw Error(i(387));u=a.pendingProps;var p=a.memoizedState;m=p.element,vf(n,a),k0(a,u,null,o);var S=a.memoizedState;if(u=S.cache,Ea(a,Ot,u),u!==p.cache&&ff(a,[Ot],o,!0),C0(),u=S.element,p.isDehydrated)if(p={element:u,isDehydrated:!1,cache:S.cache},a.updateQueue.baseState=p,a.memoizedState=p,a.flags&256){a=Ap(n,a,u,o);break e}else if(u!==m){m=In(Error(i(424)),a),w0(m),a=Ap(n,a,u,o);break e}else{switch(n=a.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(mt=Zn(n.firstChild),Zt=a,Qe=!0,Aa=null,Kn=!0,o=y4(a,null,u,o),a.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(xi(),u===m){a=$r(n,a,o);break e}Jt(n,a,u,o)}a=a.child}return a;case 26:return ks(n,a),n===null?(o=H2(a.type,null,a.pendingProps,null))?a.memoizedState=o:Qe||(o=a.type,n=a.pendingProps,u=Vs(ke.current).createElement(o),u[Qt]=a,u[gn]=n,en(u,o,n),Vt(u),a.stateNode=u):a.memoizedState=H2(a.type,n.memoizedProps,a.pendingProps,n.memoizedState),null;case 27:return Ze(a),n===null&&Qe&&(u=a.stateNode=j2(a.type,a.pendingProps,ke.current),Zt=a,Kn=!0,m=mt,Ha(a.type)?(zd=m,mt=Zn(u.firstChild)):mt=m),Jt(n,a,a.pendingProps.children,o),ks(n,a),n===null&&(a.flags|=4194304),a.child;case 5:return n===null&&Qe&&((m=u=mt)&&(u=g9(u,a.type,a.pendingProps,Kn),u!==null?(a.stateNode=u,Zt=a,mt=Zn(u.firstChild),Kn=!1,m=!0):m=!1),m||Ma(a)),Ze(a),m=a.type,p=a.pendingProps,S=n!==null?n.memoizedProps:null,u=p.children,Ed(m,p)?u=null:S!==null&&Ed(m,S)&&(a.flags|=32),a.memoizedState!==null&&(m=Mf(n,a,Dy,null,null,o),$0._currentValue=m),ks(n,a),Jt(n,a,u,o),a.child;case 6:return n===null&&Qe&&((n=o=mt)&&(o=v9(o,a.pendingProps,Kn),o!==null?(a.stateNode=o,Zt=a,mt=null,n=!0):n=!1),n||Ma(a)),null;case 13:return Mp(n,a,o);case 4:return _e(a,a.stateNode.containerInfo),u=a.pendingProps,n===null?a.child=Ti(a,null,u,o):Jt(n,a,u,o),a.child;case 11:return pp(n,a,a.type,a.pendingProps,o);case 7:return Jt(n,a,a.pendingProps,o),a.child;case 8:return Jt(n,a,a.pendingProps.children,o),a.child;case 12:return Jt(n,a,a.pendingProps.children,o),a.child;case 10:return u=a.pendingProps,Ea(a,a.type,u.value),Jt(n,a,u.children,o),a.child;case 9:return m=a.type._context,u=a.pendingProps.children,Si(a),m=Wt(m),u=u(m),a.flags|=1,Jt(n,a,u,o),a.child;case 14:return gp(n,a,a.type,a.pendingProps,o);case 15:return vp(n,a,a.type,a.pendingProps,o);case 19:return Tp(n,a,o);case 31:return qy(n,a,o);case 22:return yp(n,a,o,a.pendingProps);case 24:return Si(a),u=Wt(Ot),n===null?(m=mf(),m===null&&(m=ft,p=df(),m.pooledCache=p,p.refCount++,p!==null&&(m.pooledCacheLanes|=o),m=p),a.memoizedState={parent:u,cache:m},gf(a),Ea(a,Ot,m)):((n.lanes&o)!==0&&(vf(n,a),k0(a,null,null,o),C0()),m=n.memoizedState,p=a.memoizedState,m.parent!==u?(m={parent:u,cache:u},a.memoizedState=m,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=m),Ea(a,Ot,u)):(u=p.cache,Ea(a,Ot,u),u!==m.cache&&ff(a,[Ot],o,!0))),Jt(n,a,a.pendingProps.children,o),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}function Kr(n){n.flags|=4}function Wf(n,a,o,u,m){if((a=(n.mode&32)!==0)&&(a=!1),a){if(n.flags|=16777216,(m&335544128)===m)if(n.stateNode.complete)n.flags|=8192;else if(e2())n.flags|=8192;else throw Ei=hs,pf}else n.flags&=-16777217}function kp(n,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!Y2(a))if(e2())n.flags|=8192;else throw Ei=hs,pf}function zs(n,a){a!==null&&(n.flags|=4),n.flags&16384&&(a=n.tag!==22?Io():536870912,n.lanes|=a,Al|=a)}function L0(n,a){if(!Qe)switch(n.tailMode){case"hidden":a=n.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?n.tail=null:o.sibling=null;break;case"collapsed":o=n.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?a||n.tail===null?n.tail=null:n.tail.sibling=null:u.sibling=null}}function pt(n){var a=n.alternate!==null&&n.alternate.child===n.child,o=0,u=0;if(a)for(var m=n.child;m!==null;)o|=m.lanes|m.childLanes,u|=m.subtreeFlags&65011712,u|=m.flags&65011712,m.return=n,m=m.sibling;else for(m=n.child;m!==null;)o|=m.lanes|m.childLanes,u|=m.subtreeFlags,u|=m.flags,m.return=n,m=m.sibling;return n.subtreeFlags|=u,n.childLanes=o,a}function Gy(n,a,o){var u=a.pendingProps;switch(lf(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pt(a),null;case 1:return pt(a),null;case 3:return o=a.stateNode,u=null,n!==null&&(u=n.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),Vr(Ot),Oe(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(n===null||n.child===null)&&(cl(a)?Kr(a):n===null||n.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,sf())),pt(a),null;case 26:var m=a.type,p=a.memoizedState;return n===null?(Kr(a),p!==null?(pt(a),kp(a,p)):(pt(a),Wf(a,m,null,u,o))):p?p!==n.memoizedState?(Kr(a),pt(a),kp(a,p)):(pt(a),a.flags&=-16777217):(n=n.memoizedProps,n!==u&&Kr(a),pt(a),Wf(a,m,n,u,o)),null;case 27:if(Ye(a),o=ke.current,m=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==u&&Kr(a);else{if(!u){if(a.stateNode===null)throw Error(i(166));return pt(a),null}n=se.current,cl(a)?o4(a):(n=j2(m,u,o),a.stateNode=n,Kr(a))}return pt(a),null;case 5:if(Ye(a),m=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==u&&Kr(a);else{if(!u){if(a.stateNode===null)throw Error(i(166));return pt(a),null}if(p=se.current,cl(a))o4(a);else{var S=Vs(ke.current);switch(p){case 1:p=S.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:p=S.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":p=S.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":p=S.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":p=S.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof u.is=="string"?S.createElement("select",{is:u.is}):S.createElement("select"),u.multiple?p.multiple=!0:u.size&&(p.size=u.size);break;default:p=typeof u.is=="string"?S.createElement(m,{is:u.is}):S.createElement(m)}}p[Qt]=a,p[gn]=u;e:for(S=a.child;S!==null;){if(S.tag===5||S.tag===6)p.appendChild(S.stateNode);else if(S.tag!==4&&S.tag!==27&&S.child!==null){S.child.return=S,S=S.child;continue}if(S===a)break e;for(;S.sibling===null;){if(S.return===null||S.return===a)break e;S=S.return}S.sibling.return=S.return,S=S.sibling}a.stateNode=p;e:switch(en(p,m,u),m){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&Kr(a)}}return pt(a),Wf(a,a.type,n===null?null:n.memoizedProps,a.pendingProps,o),null;case 6:if(n&&a.stateNode!=null)n.memoizedProps!==u&&Kr(a);else{if(typeof u!="string"&&a.stateNode===null)throw Error(i(166));if(n=ke.current,cl(a)){if(n=a.stateNode,o=a.memoizedProps,u=null,m=Zt,m!==null)switch(m.tag){case 27:case 5:u=m.memoizedProps}n[Qt]=a,n=!!(n.nodeValue===o||u!==null&&u.suppressHydrationWarning===!0||M2(n.nodeValue,o)),n||Ma(a,!0)}else n=Vs(n).createTextNode(u),n[Qt]=a,a.stateNode=n}return pt(a),null;case 31:if(o=a.memoizedState,n===null||n.memoizedState!==null){if(u=cl(a),o!==null){if(n===null){if(!u)throw Error(i(318));if(n=a.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(i(557));n[Qt]=a}else xi(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;pt(a),n=!1}else o=sf(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=o),n=!0;if(!n)return a.flags&256?(Ln(a),a):(Ln(a),null);if((a.flags&128)!==0)throw Error(i(558))}return pt(a),null;case 13:if(u=a.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(m=cl(a),u!==null&&u.dehydrated!==null){if(n===null){if(!m)throw Error(i(318));if(m=a.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(i(317));m[Qt]=a}else xi(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;pt(a),m=!1}else m=sf(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=m),m=!0;if(!m)return a.flags&256?(Ln(a),a):(Ln(a),null)}return Ln(a),(a.flags&128)!==0?(a.lanes=o,a):(o=u!==null,n=n!==null&&n.memoizedState!==null,o&&(u=a.child,m=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(m=u.alternate.memoizedState.cachePool.pool),p=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(p=u.memoizedState.cachePool.pool),p!==m&&(u.flags|=2048)),o!==n&&o&&(a.child.flags|=8192),zs(a,a.updateQueue),pt(a),null);case 4:return Oe(),n===null&&xd(a.stateNode.containerInfo),pt(a),null;case 10:return Vr(a.type),pt(a),null;case 19:if(W(kt),u=a.memoizedState,u===null)return pt(a),null;if(m=(a.flags&128)!==0,p=u.rendering,p===null)if(m)L0(u,!1);else{if(Tt!==0||n!==null&&(n.flags&128)!==0)for(n=a.child;n!==null;){if(p=vs(n),p!==null){for(a.flags|=128,L0(u,!1),n=p.updateQueue,a.updateQueue=n,zs(a,n),a.subtreeFlags=0,n=o,o=a.child;o!==null;)n4(o,n),o=o.sibling;return ie(kt,kt.current&1|2),Qe&&Yr(a,u.treeForkCount),a.child}n=n.sibling}u.tail!==null&&tn()>js&&(a.flags|=128,m=!0,L0(u,!1),a.lanes=4194304)}else{if(!m)if(n=vs(p),n!==null){if(a.flags|=128,m=!0,n=n.updateQueue,a.updateQueue=n,zs(a,n),L0(u,!0),u.tail===null&&u.tailMode==="hidden"&&!p.alternate&&!Qe)return pt(a),null}else 2*tn()-u.renderingStartTime>js&&o!==536870912&&(a.flags|=128,m=!0,L0(u,!1),a.lanes=4194304);u.isBackwards?(p.sibling=a.child,a.child=p):(n=u.last,n!==null?n.sibling=p:a.child=p,u.last=p)}return u.tail!==null?(n=u.tail,u.rendering=n,u.tail=n.sibling,u.renderingStartTime=tn(),n.sibling=null,o=kt.current,ie(kt,m?o&1|2:o&1),Qe&&Yr(a,u.treeForkCount),n):(pt(a),null);case 22:case 23:return Ln(a),wf(),u=a.memoizedState!==null,n!==null?n.memoizedState!==null!==u&&(a.flags|=8192):u&&(a.flags|=8192),u?(o&536870912)!==0&&(a.flags&128)===0&&(pt(a),a.subtreeFlags&6&&(a.flags|=8192)):pt(a),o=a.updateQueue,o!==null&&zs(a,o.retryQueue),o=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==o&&(a.flags|=2048),n!==null&&W(Ai),null;case 24:return o=null,n!==null&&(o=n.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),Vr(Ot),pt(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function Fy(n,a){switch(lf(a),a.tag){case 1:return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 3:return Vr(Ot),Oe(),n=a.flags,(n&65536)!==0&&(n&128)===0?(a.flags=n&-65537|128,a):null;case 26:case 27:case 5:return Ye(a),null;case 31:if(a.memoizedState!==null){if(Ln(a),a.alternate===null)throw Error(i(340));xi()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 13:if(Ln(a),n=a.memoizedState,n!==null&&n.dehydrated!==null){if(a.alternate===null)throw Error(i(340));xi()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return W(kt),null;case 4:return Oe(),null;case 10:return Vr(a.type),null;case 22:case 23:return Ln(a),wf(),n!==null&&W(Ai),n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 24:return Vr(Ot),null;case 25:return null;default:return null}}function Np(n,a){switch(lf(a),a.tag){case 3:Vr(Ot),Oe();break;case 26:case 27:case 5:Ye(a);break;case 4:Oe();break;case 31:a.memoizedState!==null&&Ln(a);break;case 13:Ln(a);break;case 19:W(kt);break;case 10:Vr(a.type);break;case 22:case 23:Ln(a),wf(),n!==null&&W(Ai);break;case 24:Vr(Ot)}}function j0(n,a){try{var o=a.updateQueue,u=o!==null?o.lastEffect:null;if(u!==null){var m=u.next;o=m;do{if((o.tag&n)===n){u=void 0;var p=o.create,S=o.inst;u=p(),S.destroy=u}o=o.next}while(o!==m)}}catch(z){it(a,a.return,z)}}function Da(n,a,o){try{var u=a.updateQueue,m=u!==null?u.lastEffect:null;if(m!==null){var p=m.next;u=p;do{if((u.tag&n)===n){var S=u.inst,z=S.destroy;if(z!==void 0){S.destroy=void 0,m=a;var _=o,K=z;try{K()}catch(ee){it(m,_,ee)}}}u=u.next}while(u!==p)}}catch(ee){it(a,a.return,ee)}}function zp(n){var a=n.updateQueue;if(a!==null){var o=n.stateNode;try{x4(a,o)}catch(u){it(n,n.return,u)}}}function Dp(n,a,o){o.props=ki(n.type,n.memoizedProps),o.state=n.memoizedState;try{o.componentWillUnmount()}catch(u){it(n,a,u)}}function B0(n,a){try{var o=n.ref;if(o!==null){switch(n.tag){case 26:case 27:case 5:var u=n.stateNode;break;case 30:u=n.stateNode;break;default:u=n.stateNode}typeof o=="function"?n.refCleanup=o(u):o.current=u}}catch(m){it(n,a,m)}}function wr(n,a){var o=n.ref,u=n.refCleanup;if(o!==null)if(typeof u=="function")try{u()}catch(m){it(n,a,m)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(m){it(n,a,m)}else o.current=null}function Op(n){var a=n.type,o=n.memoizedProps,u=n.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":o.autoFocus&&u.focus();break e;case"img":o.src?u.src=o.src:o.srcSet&&(u.srcset=o.srcSet)}}catch(m){it(n,n.return,m)}}function Jf(n,a,o){try{var u=n.stateNode;c9(u,n.type,o,a),u[gn]=a}catch(m){it(n,n.return,m)}}function Rp(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&Ha(n.type)||n.tag===4}function ed(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Rp(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&Ha(n.type)||n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function td(n,a,o){var u=n.tag;if(u===5||u===6)n=n.stateNode,a?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(n,a):(a=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,a.appendChild(n),o=o._reactRootContainer,o!=null||a.onclick!==null||(a.onclick=Ur));else if(u!==4&&(u===27&&Ha(n.type)&&(o=n.stateNode,a=null),n=n.child,n!==null))for(td(n,a,o),n=n.sibling;n!==null;)td(n,a,o),n=n.sibling}function Ds(n,a,o){var u=n.tag;if(u===5||u===6)n=n.stateNode,a?o.insertBefore(n,a):o.appendChild(n);else if(u!==4&&(u===27&&Ha(n.type)&&(o=n.stateNode),n=n.child,n!==null))for(Ds(n,a,o),n=n.sibling;n!==null;)Ds(n,a,o),n=n.sibling}function Lp(n){var a=n.stateNode,o=n.memoizedProps;try{for(var u=n.type,m=a.attributes;m.length;)a.removeAttributeNode(m[0]);en(a,u,o),a[Qt]=n,a[gn]=o}catch(p){it(n,n.return,p)}}var Qr=!1,jt=!1,nd=!1,jp=typeof WeakSet=="function"?WeakSet:Set,It=null;function Yy(n,a){if(n=n.containerInfo,Ad=Ws,n=Xm(n),$c(n)){if("selectionStart"in n)var o={start:n.selectionStart,end:n.selectionEnd};else e:{o=(o=n.ownerDocument)&&o.defaultView||window;var u=o.getSelection&&o.getSelection();if(u&&u.rangeCount!==0){o=u.anchorNode;var m=u.anchorOffset,p=u.focusNode;u=u.focusOffset;try{o.nodeType,p.nodeType}catch{o=null;break e}var S=0,z=-1,_=-1,K=0,ee=0,ae=n,Z=null;t:for(;;){for(var J;ae!==o||m!==0&&ae.nodeType!==3||(z=S+m),ae!==p||u!==0&&ae.nodeType!==3||(_=S+u),ae.nodeType===3&&(S+=ae.nodeValue.length),(J=ae.firstChild)!==null;)Z=ae,ae=J;for(;;){if(ae===n)break t;if(Z===o&&++K===m&&(z=S),Z===p&&++ee===u&&(_=S),(J=ae.nextSibling)!==null)break;ae=Z,Z=ae.parentNode}ae=J}o=z===-1||_===-1?null:{start:z,end:_}}else o=null}o=o||{start:0,end:0}}else o=null;for(Md={focusedElem:n,selectionRange:o},Ws=!1,It=a;It!==null;)if(a=It,n=a.child,(a.subtreeFlags&1028)!==0&&n!==null)n.return=a,It=n;else for(;It!==null;){switch(a=It,p=a.alternate,n=a.flags,a.tag){case 0:if((n&4)!==0&&(n=a.updateQueue,n=n!==null?n.events:null,n!==null))for(o=0;o<n.length;o++)m=n[o],m.ref.impl=m.nextImpl;break;case 11:case 15:break;case 1:if((n&1024)!==0&&p!==null){n=void 0,o=a,m=p.memoizedProps,p=p.memoizedState,u=o.stateNode;try{var Ae=ki(o.type,m);n=u.getSnapshotBeforeUpdate(Ae,p),u.__reactInternalSnapshotBeforeUpdate=n}catch(je){it(o,o.return,je)}}break;case 3:if((n&1024)!==0){if(n=a.stateNode.containerInfo,o=n.nodeType,o===9)Cd(n);else if(o===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Cd(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(i(163))}if(n=a.sibling,n!==null){n.return=a.return,It=n;break}It=a.return}}function Bp(n,a,o){var u=o.flags;switch(o.tag){case 0:case 11:case 15:Wr(n,o),u&4&&j0(5,o);break;case 1:if(Wr(n,o),u&4)if(n=o.stateNode,a===null)try{n.componentDidMount()}catch(S){it(o,o.return,S)}else{var m=ki(o.type,a.memoizedProps);a=a.memoizedState;try{n.componentDidUpdate(m,a,n.__reactInternalSnapshotBeforeUpdate)}catch(S){it(o,o.return,S)}}u&64&&zp(o),u&512&&B0(o,o.return);break;case 3:if(Wr(n,o),u&64&&(n=o.updateQueue,n!==null)){if(a=null,o.child!==null)switch(o.child.tag){case 27:case 5:a=o.child.stateNode;break;case 1:a=o.child.stateNode}try{x4(n,a)}catch(S){it(o,o.return,S)}}break;case 27:a===null&&u&4&&Lp(o);case 26:case 5:Wr(n,o),a===null&&u&4&&Op(o),u&512&&B0(o,o.return);break;case 12:Wr(n,o);break;case 31:Wr(n,o),u&4&&qp(n,o);break;case 13:Wr(n,o),u&4&&Up(n,o),u&64&&(n=o.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(o=Wy.bind(null,o),y9(n,o))));break;case 22:if(u=o.memoizedState!==null||Qr,!u){a=a!==null&&a.memoizedState!==null||jt,m=Qr;var p=jt;Qr=u,(jt=a)&&!p?Jr(n,o,(o.subtreeFlags&8772)!==0):Wr(n,o),Qr=m,jt=p}break;case 30:break;default:Wr(n,o)}}function _p(n){var a=n.alternate;a!==null&&(n.alternate=null,_p(a)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(a=n.stateNode,a!==null&&Dc(a)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var yt=null,yn=!1;function Zr(n,a,o){for(o=o.child;o!==null;)Hp(n,a,o),o=o.sibling}function Hp(n,a,o){if(ln&&typeof ln.onCommitFiberUnmount=="function")try{ln.onCommitFiberUnmount(gr,o)}catch{}switch(o.tag){case 26:jt||wr(o,a),Zr(n,a,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:jt||wr(o,a);var u=yt,m=yn;Ha(o.type)&&(yt=o.stateNode,yn=!1),Zr(n,a,o),V0(o.stateNode),yt=u,yn=m;break;case 5:jt||wr(o,a);case 6:if(u=yt,m=yn,yt=null,Zr(n,a,o),yt=u,yn=m,yt!==null)if(yn)try{(yt.nodeType===9?yt.body:yt.nodeName==="HTML"?yt.ownerDocument.body:yt).removeChild(o.stateNode)}catch(p){it(o,a,p)}else try{yt.removeChild(o.stateNode)}catch(p){it(o,a,p)}break;case 18:yt!==null&&(yn?(n=yt,z2(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,o.stateNode),Dl(n)):z2(yt,o.stateNode));break;case 4:u=yt,m=yn,yt=o.stateNode.containerInfo,yn=!0,Zr(n,a,o),yt=u,yn=m;break;case 0:case 11:case 14:case 15:Da(2,o,a),jt||Da(4,o,a),Zr(n,a,o);break;case 1:jt||(wr(o,a),u=o.stateNode,typeof u.componentWillUnmount=="function"&&Dp(o,a,u)),Zr(n,a,o);break;case 21:Zr(n,a,o);break;case 22:jt=(u=jt)||o.memoizedState!==null,Zr(n,a,o),jt=u;break;default:Zr(n,a,o)}}function qp(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null))){n=n.dehydrated;try{Dl(n)}catch(o){it(a,a.return,o)}}}function Up(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Dl(n)}catch(o){it(a,a.return,o)}}function Py(n){switch(n.tag){case 31:case 13:case 19:var a=n.stateNode;return a===null&&(a=n.stateNode=new jp),a;case 22:return n=n.stateNode,a=n._retryCache,a===null&&(a=n._retryCache=new jp),a;default:throw Error(i(435,n.tag))}}function Os(n,a){var o=Py(n);a.forEach(function(u){if(!o.has(u)){o.add(u);var m=Jy.bind(null,n,u);u.then(m,m)}})}function bn(n,a){var o=a.deletions;if(o!==null)for(var u=0;u<o.length;u++){var m=o[u],p=n,S=a,z=S;e:for(;z!==null;){switch(z.tag){case 27:if(Ha(z.type)){yt=z.stateNode,yn=!1;break e}break;case 5:yt=z.stateNode,yn=!1;break e;case 3:case 4:yt=z.stateNode.containerInfo,yn=!0;break e}z=z.return}if(yt===null)throw Error(i(160));Hp(p,S,m),yt=null,yn=!1,p=m.alternate,p!==null&&(p.return=null),m.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)Gp(a,n),a=a.sibling}var sr=null;function Gp(n,a){var o=n.alternate,u=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:bn(a,n),xn(n),u&4&&(Da(3,n,n.return),j0(3,n),Da(5,n,n.return));break;case 1:bn(a,n),xn(n),u&512&&(jt||o===null||wr(o,o.return)),u&64&&Qr&&(n=n.updateQueue,n!==null&&(u=n.callbacks,u!==null&&(o=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=o===null?u:o.concat(u))));break;case 26:var m=sr;if(bn(a,n),xn(n),u&512&&(jt||o===null||wr(o,o.return)),u&4){var p=o!==null?o.memoizedState:null;if(u=n.memoizedState,o===null)if(u===null)if(n.stateNode===null){e:{u=n.type,o=n.memoizedProps,m=m.ownerDocument||m;t:switch(u){case"title":p=m.getElementsByTagName("title")[0],(!p||p[u0]||p[Qt]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=m.createElement(u),m.head.insertBefore(p,m.querySelector("head > title"))),en(p,u,o),p[Qt]=n,Vt(p),u=p;break e;case"link":var S=G2("link","href",m).get(u+(o.href||""));if(S){for(var z=0;z<S.length;z++)if(p=S[z],p.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&p.getAttribute("rel")===(o.rel==null?null:o.rel)&&p.getAttribute("title")===(o.title==null?null:o.title)&&p.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){S.splice(z,1);break t}}p=m.createElement(u),en(p,u,o),m.head.appendChild(p);break;case"meta":if(S=G2("meta","content",m).get(u+(o.content||""))){for(z=0;z<S.length;z++)if(p=S[z],p.getAttribute("content")===(o.content==null?null:""+o.content)&&p.getAttribute("name")===(o.name==null?null:o.name)&&p.getAttribute("property")===(o.property==null?null:o.property)&&p.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&p.getAttribute("charset")===(o.charSet==null?null:o.charSet)){S.splice(z,1);break t}}p=m.createElement(u),en(p,u,o),m.head.appendChild(p);break;default:throw Error(i(468,u))}p[Qt]=n,Vt(p),u=p}n.stateNode=u}else F2(m,n.type,n.stateNode);else n.stateNode=U2(m,u,n.memoizedProps);else p!==u?(p===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):p.count--,u===null?F2(m,n.type,n.stateNode):U2(m,u,n.memoizedProps)):u===null&&n.stateNode!==null&&Jf(n,n.memoizedProps,o.memoizedProps)}break;case 27:bn(a,n),xn(n),u&512&&(jt||o===null||wr(o,o.return)),o!==null&&u&4&&Jf(n,n.memoizedProps,o.memoizedProps);break;case 5:if(bn(a,n),xn(n),u&512&&(jt||o===null||wr(o,o.return)),n.flags&32){m=n.stateNode;try{el(m,"")}catch(Ae){it(n,n.return,Ae)}}u&4&&n.stateNode!=null&&(m=n.memoizedProps,Jf(n,m,o!==null?o.memoizedProps:m)),u&1024&&(nd=!0);break;case 6:if(bn(a,n),xn(n),u&4){if(n.stateNode===null)throw Error(i(162));u=n.memoizedProps,o=n.stateNode;try{o.nodeValue=u}catch(Ae){it(n,n.return,Ae)}}break;case 3:if($s=null,m=sr,sr=Is(a.containerInfo),bn(a,n),sr=m,xn(n),u&4&&o!==null&&o.memoizedState.isDehydrated)try{Dl(a.containerInfo)}catch(Ae){it(n,n.return,Ae)}nd&&(nd=!1,Fp(n));break;case 4:u=sr,sr=Is(n.stateNode.containerInfo),bn(a,n),xn(n),sr=u;break;case 12:bn(a,n),xn(n);break;case 31:bn(a,n),xn(n),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,Os(n,u)));break;case 13:bn(a,n),xn(n),n.child.flags&8192&&n.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(Ls=tn()),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,Os(n,u)));break;case 22:m=n.memoizedState!==null;var _=o!==null&&o.memoizedState!==null,K=Qr,ee=jt;if(Qr=K||m,jt=ee||_,bn(a,n),jt=ee,Qr=K,xn(n),u&8192)e:for(a=n.stateNode,a._visibility=m?a._visibility&-2:a._visibility|1,m&&(o===null||_||Qr||jt||Ni(n)),o=null,a=n;;){if(a.tag===5||a.tag===26){if(o===null){_=o=a;try{if(p=_.stateNode,m)S=p.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{z=_.stateNode;var ae=_.memoizedProps.style,Z=ae!=null&&ae.hasOwnProperty("display")?ae.display:null;z.style.display=Z==null||typeof Z=="boolean"?"":(""+Z).trim()}}catch(Ae){it(_,_.return,Ae)}}}else if(a.tag===6){if(o===null){_=a;try{_.stateNode.nodeValue=m?"":_.memoizedProps}catch(Ae){it(_,_.return,Ae)}}}else if(a.tag===18){if(o===null){_=a;try{var J=_.stateNode;m?D2(J,!0):D2(_.stateNode,!1)}catch(Ae){it(_,_.return,Ae)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===n)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break e;for(;a.sibling===null;){if(a.return===null||a.return===n)break e;o===a&&(o=null),a=a.return}o===a&&(o=null),a.sibling.return=a.return,a=a.sibling}u&4&&(u=n.updateQueue,u!==null&&(o=u.retryQueue,o!==null&&(u.retryQueue=null,Os(n,o))));break;case 19:bn(a,n),xn(n),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,Os(n,u)));break;case 30:break;case 21:break;default:bn(a,n),xn(n)}}function xn(n){var a=n.flags;if(a&2){try{for(var o,u=n.return;u!==null;){if(Rp(u)){o=u;break}u=u.return}if(o==null)throw Error(i(160));switch(o.tag){case 27:var m=o.stateNode,p=ed(n);Ds(n,p,m);break;case 5:var S=o.stateNode;o.flags&32&&(el(S,""),o.flags&=-33);var z=ed(n);Ds(n,z,S);break;case 3:case 4:var _=o.stateNode.containerInfo,K=ed(n);td(n,K,_);break;default:throw Error(i(161))}}catch(ee){it(n,n.return,ee)}n.flags&=-3}a&4096&&(n.flags&=-4097)}function Fp(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var a=n;Fp(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),n=n.sibling}}function Wr(n,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)Bp(n,a.alternate,a),a=a.sibling}function Ni(n){for(n=n.child;n!==null;){var a=n;switch(a.tag){case 0:case 11:case 14:case 15:Da(4,a,a.return),Ni(a);break;case 1:wr(a,a.return);var o=a.stateNode;typeof o.componentWillUnmount=="function"&&Dp(a,a.return,o),Ni(a);break;case 27:V0(a.stateNode);case 26:case 5:wr(a,a.return),Ni(a);break;case 22:a.memoizedState===null&&Ni(a);break;case 30:Ni(a);break;default:Ni(a)}n=n.sibling}}function Jr(n,a,o){for(o=o&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var u=a.alternate,m=n,p=a,S=p.flags;switch(p.tag){case 0:case 11:case 15:Jr(m,p,o),j0(4,p);break;case 1:if(Jr(m,p,o),u=p,m=u.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(K){it(u,u.return,K)}if(u=p,m=u.updateQueue,m!==null){var z=u.stateNode;try{var _=m.shared.hiddenCallbacks;if(_!==null)for(m.shared.hiddenCallbacks=null,m=0;m<_.length;m++)b4(_[m],z)}catch(K){it(u,u.return,K)}}o&&S&64&&zp(p),B0(p,p.return);break;case 27:Lp(p);case 26:case 5:Jr(m,p,o),o&&u===null&&S&4&&Op(p),B0(p,p.return);break;case 12:Jr(m,p,o);break;case 31:Jr(m,p,o),o&&S&4&&qp(m,p);break;case 13:Jr(m,p,o),o&&S&4&&Up(m,p);break;case 22:p.memoizedState===null&&Jr(m,p,o),B0(p,p.return);break;case 30:break;default:Jr(m,p,o)}a=a.sibling}}function rd(n,a){var o=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),n=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==o&&(n!=null&&n.refCount++,o!=null&&S0(o))}function ad(n,a){n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&S0(n))}function ur(n,a,o,u){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Yp(n,a,o,u),a=a.sibling}function Yp(n,a,o,u){var m=a.flags;switch(a.tag){case 0:case 11:case 15:ur(n,a,o,u),m&2048&&j0(9,a);break;case 1:ur(n,a,o,u);break;case 3:ur(n,a,o,u),m&2048&&(n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&S0(n)));break;case 12:if(m&2048){ur(n,a,o,u),n=a.stateNode;try{var p=a.memoizedProps,S=p.id,z=p.onPostCommit;typeof z=="function"&&z(S,a.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(_){it(a,a.return,_)}}else ur(n,a,o,u);break;case 31:ur(n,a,o,u);break;case 13:ur(n,a,o,u);break;case 23:break;case 22:p=a.stateNode,S=a.alternate,a.memoizedState!==null?p._visibility&2?ur(n,a,o,u):_0(n,a):p._visibility&2?ur(n,a,o,u):(p._visibility|=2,xl(n,a,o,u,(a.subtreeFlags&10256)!==0||!1)),m&2048&&rd(S,a);break;case 24:ur(n,a,o,u),m&2048&&ad(a.alternate,a);break;default:ur(n,a,o,u)}}function xl(n,a,o,u,m){for(m=m&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var p=n,S=a,z=o,_=u,K=S.flags;switch(S.tag){case 0:case 11:case 15:xl(p,S,z,_,m),j0(8,S);break;case 23:break;case 22:var ee=S.stateNode;S.memoizedState!==null?ee._visibility&2?xl(p,S,z,_,m):_0(p,S):(ee._visibility|=2,xl(p,S,z,_,m)),m&&K&2048&&rd(S.alternate,S);break;case 24:xl(p,S,z,_,m),m&&K&2048&&ad(S.alternate,S);break;default:xl(p,S,z,_,m)}a=a.sibling}}function _0(n,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var o=n,u=a,m=u.flags;switch(u.tag){case 22:_0(o,u),m&2048&&rd(u.alternate,u);break;case 24:_0(o,u),m&2048&&ad(u.alternate,u);break;default:_0(o,u)}a=a.sibling}}var H0=8192;function wl(n,a,o){if(n.subtreeFlags&H0)for(n=n.child;n!==null;)Pp(n,a,o),n=n.sibling}function Pp(n,a,o){switch(n.tag){case 26:wl(n,a,o),n.flags&H0&&n.memoizedState!==null&&z9(o,sr,n.memoizedState,n.memoizedProps);break;case 5:wl(n,a,o);break;case 3:case 4:var u=sr;sr=Is(n.stateNode.containerInfo),wl(n,a,o),sr=u;break;case 22:n.memoizedState===null&&(u=n.alternate,u!==null&&u.memoizedState!==null?(u=H0,H0=16777216,wl(n,a,o),H0=u):wl(n,a,o));break;default:wl(n,a,o)}}function Vp(n){var a=n.alternate;if(a!==null&&(n=a.child,n!==null)){a.child=null;do a=n.sibling,n.sibling=null,n=a;while(n!==null)}}function q0(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var u=a[o];It=u,Xp(u,n)}Vp(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Ip(n),n=n.sibling}function Ip(n){switch(n.tag){case 0:case 11:case 15:q0(n),n.flags&2048&&Da(9,n,n.return);break;case 3:q0(n);break;case 12:q0(n);break;case 22:var a=n.stateNode;n.memoizedState!==null&&a._visibility&2&&(n.return===null||n.return.tag!==13)?(a._visibility&=-3,Rs(n)):q0(n);break;default:q0(n)}}function Rs(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var u=a[o];It=u,Xp(u,n)}Vp(n)}for(n=n.child;n!==null;){switch(a=n,a.tag){case 0:case 11:case 15:Da(8,a,a.return),Rs(a);break;case 22:o=a.stateNode,o._visibility&2&&(o._visibility&=-3,Rs(a));break;default:Rs(a)}n=n.sibling}}function Xp(n,a){for(;It!==null;){var o=It;switch(o.tag){case 0:case 11:case 15:Da(8,o,a);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var u=o.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:S0(o.memoizedState.cache)}if(u=o.child,u!==null)u.return=o,It=u;else e:for(o=n;It!==null;){u=It;var m=u.sibling,p=u.return;if(_p(u),u===o){It=null;break e}if(m!==null){m.return=p,It=m;break e}It=p}}}var Vy={getCacheForType:function(n){var a=Wt(Ot),o=a.data.get(n);return o===void 0&&(o=n(),a.data.set(n,o)),o},cacheSignal:function(){return Wt(Ot).controller.signal}},Iy=typeof WeakMap=="function"?WeakMap:Map,rt=0,ft=null,Ve=null,Xe=0,at=0,jn=null,Oa=!1,Sl=!1,id=!1,ea=0,Tt=0,Ra=0,zi=0,ld=0,Bn=0,Al=0,U0=null,wn=null,od=!1,Ls=0,$p=0,js=1/0,Bs=null,La=null,Ut=0,ja=null,Ml=null,ta=0,sd=0,ud=null,Kp=null,G0=0,cd=null;function _n(){return(rt&2)!==0&&Xe!==0?Xe&-Xe:Y.T!==null?gd():fm()}function Qp(){if(Bn===0)if((Xe&536870912)===0||Qe){var n=di;di<<=1,(di&3932160)===0&&(di=262144),Bn=n}else Bn=536870912;return n=Rn.current,n!==null&&(n.flags|=32),Bn}function Sn(n,a,o){(n===ft&&(at===2||at===9)||n.cancelPendingCommit!==null)&&(El(n,0),Ba(n,Xe,Bn,!1)),s0(n,o),((rt&2)===0||n!==ft)&&(n===ft&&((rt&2)===0&&(zi|=o),Tt===4&&Ba(n,Xe,Bn,!1)),Sr(n))}function Zp(n,a,o){if((rt&6)!==0)throw Error(i(327));var u=!o&&(a&127)===0&&(a&n.expiredLanes)===0||ba(n,a),m=u?Ky(n,a):dd(n,a,!0),p=u;do{if(m===0){Sl&&!u&&Ba(n,a,0,!1);break}else{if(o=n.current.alternate,p&&!Xy(o)){m=dd(n,a,!1),p=!1;continue}if(m===2){if(p=a,n.errorRecoveryDisabledLanes&p)var S=0;else S=n.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){a=S;e:{var z=n;m=U0;var _=z.current.memoizedState.isDehydrated;if(_&&(El(z,S).flags|=256),S=dd(z,S,!1),S!==2){if(id&&!_){z.errorRecoveryDisabledLanes|=p,zi|=p,m=4;break e}p=wn,wn=m,p!==null&&(wn===null?wn=p:wn.push.apply(wn,p))}m=S}if(p=!1,m!==2)continue}}if(m===1){El(n,0),Ba(n,a,0,!0);break}e:{switch(u=n,p=m,p){case 0:case 1:throw Error(i(345));case 4:if((a&4194048)!==a)break;case 6:Ba(u,a,Bn,!Oa);break e;case 2:wn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(m=Ls+300-tn(),10<m)){if(Ba(u,a,Bn,!Oa),Xi(u,0,!0)!==0)break e;ta=a,u.timeoutHandle=k2(Wp.bind(null,u,o,wn,Bs,od,a,Bn,zi,Al,Oa,p,"Throttled",-0,0),m);break e}Wp(u,o,wn,Bs,od,a,Bn,zi,Al,Oa,p,null,-0,0)}}break}while(!0);Sr(n)}function Wp(n,a,o,u,m,p,S,z,_,K,ee,ae,Z,J){if(n.timeoutHandle=-1,ae=a.subtreeFlags,ae&8192||(ae&16785408)===16785408){ae={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ur},Pp(a,p,ae);var Ae=(p&62914560)===p?Ls-tn():(p&4194048)===p?$p-tn():0;if(Ae=D9(ae,Ae),Ae!==null){ta=p,n.cancelPendingCommit=Ae(l2.bind(null,n,a,p,o,u,m,S,z,_,ee,ae,null,Z,J)),Ba(n,p,S,!K);return}}l2(n,a,p,o,u,m,S,z,_)}function Xy(n){for(var a=n;;){var o=a.tag;if((o===0||o===11||o===15)&&a.flags&16384&&(o=a.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var u=0;u<o.length;u++){var m=o[u],p=m.getSnapshot;m=m.value;try{if(!Dn(p(),m))return!1}catch{return!1}}if(o=a.child,a.subtreeFlags&16384&&o!==null)o.return=a,a=o;else{if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Ba(n,a,o,u){a&=~ld,a&=~zi,n.suspendedLanes|=a,n.pingedLanes&=~a,u&&(n.warmLanes|=a),u=n.expirationTimes;for(var m=a;0<m;){var p=31-on(m),S=1<<p;u[p]=-1,m&=~S}o!==0&&sm(n,o,a)}function _s(){return(rt&6)===0?(F0(0),!1):!0}function fd(){if(Ve!==null){if(at===0)var n=Ve.return;else n=Ve,Pr=wi=null,Cf(n),pl=null,M0=0,n=Ve;for(;n!==null;)Np(n.alternate,n),n=n.return;Ve=null}}function El(n,a){var o=n.timeoutHandle;o!==-1&&(n.timeoutHandle=-1,h9(o)),o=n.cancelPendingCommit,o!==null&&(n.cancelPendingCommit=null,o()),ta=0,fd(),ft=n,Ve=o=Fr(n.current,null),Xe=a,at=0,jn=null,Oa=!1,Sl=ba(n,a),id=!1,Al=Bn=ld=zi=Ra=Tt=0,wn=U0=null,od=!1,(a&8)!==0&&(a|=a&32);var u=n.entangledLanes;if(u!==0)for(n=n.entanglements,u&=a;0<u;){var m=31-on(u),p=1<<m;a|=n[m],u&=~p}return ea=a,as(),o}function Jp(n,a){qe=null,Y.H=O0,a===ml||a===ds?(a=p4(),at=3):a===pf?(a=p4(),at=4):at=a===Yf?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,jn=a,Ve===null&&(Tt=1,Ts(n,In(a,n.current)))}function e2(){var n=Rn.current;return n===null?!0:(Xe&4194048)===Xe?Qn===null:(Xe&62914560)===Xe||(Xe&536870912)!==0?n===Qn:!1}function t2(){var n=Y.H;return Y.H=O0,n===null?O0:n}function n2(){var n=Y.A;return Y.A=Vy,n}function Hs(){Tt=4,Oa||(Xe&4194048)!==Xe&&Rn.current!==null||(Sl=!0),(Ra&134217727)===0&&(zi&134217727)===0||ft===null||Ba(ft,Xe,Bn,!1)}function dd(n,a,o){var u=rt;rt|=2;var m=t2(),p=n2();(ft!==n||Xe!==a)&&(Bs=null,El(n,a)),a=!1;var S=Tt;e:do try{if(at!==0&&Ve!==null){var z=Ve,_=jn;switch(at){case 8:fd(),S=6;break e;case 3:case 2:case 9:case 6:Rn.current===null&&(a=!0);var K=at;if(at=0,jn=null,Tl(n,z,_,K),o&&Sl){S=0;break e}break;default:K=at,at=0,jn=null,Tl(n,z,_,K)}}$y(),S=Tt;break}catch(ee){Jp(n,ee)}while(!0);return a&&n.shellSuspendCounter++,Pr=wi=null,rt=u,Y.H=m,Y.A=p,Ve===null&&(ft=null,Xe=0,as()),S}function $y(){for(;Ve!==null;)r2(Ve)}function Ky(n,a){var o=rt;rt|=2;var u=t2(),m=n2();ft!==n||Xe!==a?(Bs=null,js=tn()+500,El(n,a)):Sl=ba(n,a);e:do try{if(at!==0&&Ve!==null){a=Ve;var p=jn;t:switch(at){case 1:at=0,jn=null,Tl(n,a,p,1);break;case 2:case 9:if(h4(p)){at=0,jn=null,a2(a);break}a=function(){at!==2&&at!==9||ft!==n||(at=7),Sr(n)},p.then(a,a);break e;case 3:at=7;break e;case 4:at=5;break e;case 7:h4(p)?(at=0,jn=null,a2(a)):(at=0,jn=null,Tl(n,a,p,7));break;case 5:var S=null;switch(Ve.tag){case 26:S=Ve.memoizedState;case 5:case 27:var z=Ve;if(S?Y2(S):z.stateNode.complete){at=0,jn=null;var _=z.sibling;if(_!==null)Ve=_;else{var K=z.return;K!==null?(Ve=K,qs(K)):Ve=null}break t}}at=0,jn=null,Tl(n,a,p,5);break;case 6:at=0,jn=null,Tl(n,a,p,6);break;case 8:fd(),Tt=6;break e;default:throw Error(i(462))}}Qy();break}catch(ee){Jp(n,ee)}while(!0);return Pr=wi=null,Y.H=u,Y.A=m,rt=o,Ve!==null?0:(ft=null,Xe=0,as(),Tt)}function Qy(){for(;Ve!==null&&!n0();)r2(Ve)}function r2(n){var a=Cp(n.alternate,n,ea);n.memoizedProps=n.pendingProps,a===null?qs(n):Ve=a}function a2(n){var a=n,o=a.alternate;switch(a.tag){case 15:case 0:a=wp(o,a,a.pendingProps,a.type,void 0,Xe);break;case 11:a=wp(o,a,a.pendingProps,a.type.render,a.ref,Xe);break;case 5:Cf(a);default:Np(o,a),a=Ve=n4(a,ea),a=Cp(o,a,ea)}n.memoizedProps=n.pendingProps,a===null?qs(n):Ve=a}function Tl(n,a,o,u){Pr=wi=null,Cf(a),pl=null,M0=0;var m=a.return;try{if(Hy(n,m,a,o,Xe)){Tt=1,Ts(n,In(o,n.current)),Ve=null;return}}catch(p){if(m!==null)throw Ve=m,p;Tt=1,Ts(n,In(o,n.current)),Ve=null;return}a.flags&32768?(Qe||u===1?n=!0:Sl||(Xe&536870912)!==0?n=!1:(Oa=n=!0,(u===2||u===9||u===3||u===6)&&(u=Rn.current,u!==null&&u.tag===13&&(u.flags|=16384))),i2(a,n)):qs(a)}function qs(n){var a=n;do{if((a.flags&32768)!==0){i2(a,Oa);return}n=a.return;var o=Gy(a.alternate,a,ea);if(o!==null){Ve=o;return}if(a=a.sibling,a!==null){Ve=a;return}Ve=a=n}while(a!==null);Tt===0&&(Tt=5)}function i2(n,a){do{var o=Fy(n.alternate,n);if(o!==null){o.flags&=32767,Ve=o;return}if(o=n.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!a&&(n=n.sibling,n!==null)){Ve=n;return}Ve=n=o}while(n!==null);Tt=6,Ve=null}function l2(n,a,o,u,m,p,S,z,_){n.cancelPendingCommit=null;do Us();while(Ut!==0);if((rt&6)!==0)throw Error(i(327));if(a!==null){if(a===n.current)throw Error(i(177));if(p=a.lanes|a.childLanes,p|=Jc,N8(n,o,p,S,z,_),n===ft&&(Ve=ft=null,Xe=0),Ml=a,ja=n,ta=o,sd=p,ud=m,Kp=u,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,e9(Vi,function(){return f2(),null})):(n.callbackNode=null,n.callbackPriority=0),u=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||u){u=Y.T,Y.T=null,m=ne.p,ne.p=2,S=rt,rt|=4;try{Yy(n,a,o)}finally{rt=S,ne.p=m,Y.T=u}}Ut=1,o2(),s2(),u2()}}function o2(){if(Ut===1){Ut=0;var n=ja,a=Ml,o=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||o){o=Y.T,Y.T=null;var u=ne.p;ne.p=2;var m=rt;rt|=4;try{Gp(a,n);var p=Md,S=Xm(n.containerInfo),z=p.focusedElem,_=p.selectionRange;if(S!==z&&z&&z.ownerDocument&&Im(z.ownerDocument.documentElement,z)){if(_!==null&&$c(z)){var K=_.start,ee=_.end;if(ee===void 0&&(ee=K),"selectionStart"in z)z.selectionStart=K,z.selectionEnd=Math.min(ee,z.value.length);else{var ae=z.ownerDocument||document,Z=ae&&ae.defaultView||window;if(Z.getSelection){var J=Z.getSelection(),Ae=z.textContent.length,je=Math.min(_.start,Ae),ut=_.end===void 0?je:Math.min(_.end,Ae);!J.extend&&je>ut&&(S=ut,ut=je,je=S);var P=Vm(z,je),q=Vm(z,ut);if(P&&q&&(J.rangeCount!==1||J.anchorNode!==P.node||J.anchorOffset!==P.offset||J.focusNode!==q.node||J.focusOffset!==q.offset)){var X=ae.createRange();X.setStart(P.node,P.offset),J.removeAllRanges(),je>ut?(J.addRange(X),J.extend(q.node,q.offset)):(X.setEnd(q.node,q.offset),J.addRange(X))}}}}for(ae=[],J=z;J=J.parentNode;)J.nodeType===1&&ae.push({element:J,left:J.scrollLeft,top:J.scrollTop});for(typeof z.focus=="function"&&z.focus(),z=0;z<ae.length;z++){var re=ae[z];re.element.scrollLeft=re.left,re.element.scrollTop=re.top}}Ws=!!Ad,Md=Ad=null}finally{rt=m,ne.p=u,Y.T=o}}n.current=a,Ut=2}}function s2(){if(Ut===2){Ut=0;var n=ja,a=Ml,o=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||o){o=Y.T,Y.T=null;var u=ne.p;ne.p=2;var m=rt;rt|=4;try{Bp(n,a.alternate,a)}finally{rt=m,ne.p=u,Y.T=o}}Ut=3}}function u2(){if(Ut===4||Ut===3){Ut=0,r0();var n=ja,a=Ml,o=ta,u=Kp;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Ut=5:(Ut=0,Ml=ja=null,c2(n,n.pendingLanes));var m=n.pendingLanes;if(m===0&&(La=null),Nc(o),a=a.stateNode,ln&&typeof ln.onCommitFiberRoot=="function")try{ln.onCommitFiberRoot(gr,a,void 0,(a.current.flags&128)===128)}catch{}if(u!==null){a=Y.T,m=ne.p,ne.p=2,Y.T=null;try{for(var p=n.onRecoverableError,S=0;S<u.length;S++){var z=u[S];p(z.value,{componentStack:z.stack})}}finally{Y.T=a,ne.p=m}}(ta&3)!==0&&Us(),Sr(n),m=n.pendingLanes,(o&261930)!==0&&(m&42)!==0?n===cd?G0++:(G0=0,cd=n):G0=0,F0(0)}}function c2(n,a){(n.pooledCacheLanes&=a)===0&&(a=n.pooledCache,a!=null&&(n.pooledCache=null,S0(a)))}function Us(){return o2(),s2(),u2(),f2()}function f2(){if(Ut!==5)return!1;var n=ja,a=sd;sd=0;var o=Nc(ta),u=Y.T,m=ne.p;try{ne.p=32>o?32:o,Y.T=null,o=ud,ud=null;var p=ja,S=ta;if(Ut=0,Ml=ja=null,ta=0,(rt&6)!==0)throw Error(i(331));var z=rt;if(rt|=4,Ip(p.current),Yp(p,p.current,S,o),rt=z,F0(0,!1),ln&&typeof ln.onPostCommitFiberRoot=="function")try{ln.onPostCommitFiberRoot(gr,p)}catch{}return!0}finally{ne.p=m,Y.T=u,c2(n,a)}}function d2(n,a,o){a=In(o,a),a=Ff(n.stateNode,a,2),n=ka(n,a,2),n!==null&&(s0(n,2),Sr(n))}function it(n,a,o){if(n.tag===3)d2(n,n,o);else for(;a!==null;){if(a.tag===3){d2(a,n,o);break}else if(a.tag===1){var u=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(La===null||!La.has(u))){n=In(o,n),o=hp(2),u=ka(a,o,2),u!==null&&(mp(o,u,a,n),s0(u,2),Sr(u));break}}a=a.return}}function hd(n,a,o){var u=n.pingCache;if(u===null){u=n.pingCache=new Iy;var m=new Set;u.set(a,m)}else m=u.get(a),m===void 0&&(m=new Set,u.set(a,m));m.has(o)||(id=!0,m.add(o),n=Zy.bind(null,n,a,o),a.then(n,n))}function Zy(n,a,o){var u=n.pingCache;u!==null&&u.delete(a),n.pingedLanes|=n.suspendedLanes&o,n.warmLanes&=~o,ft===n&&(Xe&o)===o&&(Tt===4||Tt===3&&(Xe&62914560)===Xe&&300>tn()-Ls?(rt&2)===0&&El(n,0):ld|=o,Al===Xe&&(Al=0)),Sr(n)}function h2(n,a){a===0&&(a=Io()),n=yi(n,a),n!==null&&(s0(n,a),Sr(n))}function Wy(n){var a=n.memoizedState,o=0;a!==null&&(o=a.retryLane),h2(n,o)}function Jy(n,a){var o=0;switch(n.tag){case 31:case 13:var u=n.stateNode,m=n.memoizedState;m!==null&&(o=m.retryLane);break;case 19:u=n.stateNode;break;case 22:u=n.stateNode._retryCache;break;default:throw Error(i(314))}u!==null&&u.delete(a),h2(n,o)}function e9(n,a){return lr(n,a)}var Gs=null,Cl=null,md=!1,Fs=!1,pd=!1,_a=0;function Sr(n){n!==Cl&&n.next===null&&(Cl===null?Gs=Cl=n:Cl=Cl.next=n),Fs=!0,md||(md=!0,n9())}function F0(n,a){if(!pd&&Fs){pd=!0;do for(var o=!1,u=Gs;u!==null;){if(n!==0){var m=u.pendingLanes;if(m===0)var p=0;else{var S=u.suspendedLanes,z=u.pingedLanes;p=(1<<31-on(42|n)+1)-1,p&=m&~(S&~z),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(o=!0,v2(u,p))}else p=Xe,p=Xi(u,u===ft?p:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(p&3)===0||ba(u,p)||(o=!0,v2(u,p));u=u.next}while(o);pd=!1}}function t9(){m2()}function m2(){Fs=md=!1;var n=0;_a!==0&&d9()&&(n=_a);for(var a=tn(),o=null,u=Gs;u!==null;){var m=u.next,p=p2(u,a);p===0?(u.next=null,o===null?Gs=m:o.next=m,m===null&&(Cl=o)):(o=u,(n!==0||(p&3)!==0)&&(Fs=!0)),u=m}Ut!==0&&Ut!==5||F0(n),_a!==0&&(_a=0)}function p2(n,a){for(var o=n.suspendedLanes,u=n.pingedLanes,m=n.expirationTimes,p=n.pendingLanes&-62914561;0<p;){var S=31-on(p),z=1<<S,_=m[S];_===-1?((z&o)===0||(z&u)!==0)&&(m[S]=Vo(z,a)):_<=a&&(n.expiredLanes|=z),p&=~z}if(a=ft,o=Xe,o=Xi(n,n===a?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),u=n.callbackNode,o===0||n===a&&(at===2||at===9)||n.cancelPendingCommit!==null)return u!==null&&u!==null&&_r(u),n.callbackNode=null,n.callbackPriority=0;if((o&3)===0||ba(n,o)){if(a=o&-o,a===n.callbackPriority)return a;switch(u!==null&&_r(u),Nc(o)){case 2:case 8:o=a0;break;case 32:o=Vi;break;case 268435456:o=Hr;break;default:o=Vi}return u=g2.bind(null,n),o=lr(o,u),n.callbackPriority=a,n.callbackNode=o,a}return u!==null&&u!==null&&_r(u),n.callbackPriority=2,n.callbackNode=null,2}function g2(n,a){if(Ut!==0&&Ut!==5)return n.callbackNode=null,n.callbackPriority=0,null;var o=n.callbackNode;if(Us()&&n.callbackNode!==o)return null;var u=Xe;return u=Xi(n,n===ft?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),u===0?null:(Zp(n,u,a),p2(n,tn()),n.callbackNode!=null&&n.callbackNode===o?g2.bind(null,n):null)}function v2(n,a){if(Us())return null;Zp(n,a,!0)}function n9(){m9(function(){(rt&6)!==0?lr(Yo,t9):m2()})}function gd(){if(_a===0){var n=dl;n===0&&(n=Ii,Ii<<=1,(Ii&261888)===0&&(Ii=256)),_a=n}return _a}function y2(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Qo(""+n)}function b2(n,a){var o=a.ownerDocument.createElement("input");return o.name=a.name,o.value=a.value,n.id&&o.setAttribute("form",n.id),a.parentNode.insertBefore(o,a),n=new FormData(n),o.parentNode.removeChild(o),n}function r9(n,a,o,u,m){if(a==="submit"&&o&&o.stateNode===m){var p=y2((m[gn]||null).action),S=u.submitter;S&&(a=(a=S[gn]||null)?y2(a.formAction):S.getAttribute("formAction"),a!==null&&(p=a,S=null));var z=new es("action","action",null,u,m);n.push({event:z,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(_a!==0){var _=S?b2(m,S):new FormData(m);Bf(o,{pending:!0,data:_,method:m.method,action:p},null,_)}}else typeof p=="function"&&(z.preventDefault(),_=S?b2(m,S):new FormData(m),Bf(o,{pending:!0,data:_,method:m.method,action:p},p,_))},currentTarget:m}]})}}for(var vd=0;vd<Wc.length;vd++){var yd=Wc[vd],a9=yd.toLowerCase(),i9=yd[0].toUpperCase()+yd.slice(1);or(a9,"on"+i9)}or(Qm,"onAnimationEnd"),or(Zm,"onAnimationIteration"),or(Wm,"onAnimationStart"),or("dblclick","onDoubleClick"),or("focusin","onFocus"),or("focusout","onBlur"),or(wy,"onTransitionRun"),or(Sy,"onTransitionStart"),or(Ay,"onTransitionCancel"),or(Jm,"onTransitionEnd"),Wi("onMouseEnter",["mouseout","mouseover"]),Wi("onMouseLeave",["mouseout","mouseover"]),Wi("onPointerEnter",["pointerout","pointerover"]),Wi("onPointerLeave",["pointerout","pointerover"]),mi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),mi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),mi("onBeforeInput",["compositionend","keypress","textInput","paste"]),mi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),mi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),mi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Y0="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(" "),l9=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Y0));function x2(n,a){a=(a&4)!==0;for(var o=0;o<n.length;o++){var u=n[o],m=u.event;u=u.listeners;e:{var p=void 0;if(a)for(var S=u.length-1;0<=S;S--){var z=u[S],_=z.instance,K=z.currentTarget;if(z=z.listener,_!==p&&m.isPropagationStopped())break e;p=z,m.currentTarget=K;try{p(m)}catch(ee){rs(ee)}m.currentTarget=null,p=_}else for(S=0;S<u.length;S++){if(z=u[S],_=z.instance,K=z.currentTarget,z=z.listener,_!==p&&m.isPropagationStopped())break e;p=z,m.currentTarget=K;try{p(m)}catch(ee){rs(ee)}m.currentTarget=null,p=_}}}}function Ie(n,a){var o=a[zc];o===void 0&&(o=a[zc]=new Set);var u=n+"__bubble";o.has(u)||(w2(a,n,2,!1),o.add(u))}function bd(n,a,o){var u=0;a&&(u|=4),w2(o,n,u,a)}var Ys="_reactListening"+Math.random().toString(36).slice(2);function xd(n){if(!n[Ys]){n[Ys]=!0,mm.forEach(function(o){o!=="selectionchange"&&(l9.has(o)||bd(o,!1,n),bd(o,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[Ys]||(a[Ys]=!0,bd("selectionchange",!1,a))}}function w2(n,a,o,u){switch(Q2(a)){case 2:var m=L9;break;case 8:m=j9;break;default:m=jd}o=m.bind(null,a,o,n),m=void 0,!qc||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(m=!0),u?m!==void 0?n.addEventListener(a,o,{capture:!0,passive:m}):n.addEventListener(a,o,!0):m!==void 0?n.addEventListener(a,o,{passive:m}):n.addEventListener(a,o,!1)}function wd(n,a,o,u,m){var p=u;if((a&1)===0&&(a&2)===0&&u!==null)e:for(;;){if(u===null)return;var S=u.tag;if(S===3||S===4){var z=u.stateNode.containerInfo;if(z===m)break;if(S===4)for(S=u.return;S!==null;){var _=S.tag;if((_===3||_===4)&&S.stateNode.containerInfo===m)return;S=S.return}for(;z!==null;){if(S=Ki(z),S===null)return;if(_=S.tag,_===5||_===6||_===26||_===27){u=p=S;continue e}z=z.parentNode}}u=u.return}Tm(function(){var K=p,ee=_c(o),ae=[];e:{var Z=e4.get(n);if(Z!==void 0){var J=es,Ae=n;switch(n){case"keypress":if(Wo(o)===0)break e;case"keydown":case"keyup":J=J8;break;case"focusin":Ae="focus",J=Yc;break;case"focusout":Ae="blur",J=Yc;break;case"beforeblur":case"afterblur":J=Yc;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":J=Nm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":J=G8;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":J=ny;break;case Qm:case Zm:case Wm:J=P8;break;case Jm:J=ay;break;case"scroll":case"scrollend":J=q8;break;case"wheel":J=ly;break;case"copy":case"cut":case"paste":J=I8;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":J=Dm;break;case"toggle":case"beforetoggle":J=sy}var je=(a&4)!==0,ut=!je&&(n==="scroll"||n==="scrollend"),P=je?Z!==null?Z+"Capture":null:Z;je=[];for(var q=K,X;q!==null;){var re=q;if(X=re.stateNode,re=re.tag,re!==5&&re!==26&&re!==27||X===null||P===null||(re=f0(q,P),re!=null&&je.push(P0(q,re,X))),ut)break;q=q.return}0<je.length&&(Z=new J(Z,Ae,null,o,ee),ae.push({event:Z,listeners:je}))}}if((a&7)===0){e:{if(Z=n==="mouseover"||n==="pointerover",J=n==="mouseout"||n==="pointerout",Z&&o!==Bc&&(Ae=o.relatedTarget||o.fromElement)&&(Ki(Ae)||Ae[$i]))break e;if((J||Z)&&(Z=ee.window===ee?ee:(Z=ee.ownerDocument)?Z.defaultView||Z.parentWindow:window,J?(Ae=o.relatedTarget||o.toElement,J=K,Ae=Ae?Ki(Ae):null,Ae!==null&&(ut=s(Ae),je=Ae.tag,Ae!==ut||je!==5&&je!==27&&je!==6)&&(Ae=null)):(J=null,Ae=K),J!==Ae)){if(je=Nm,re="onMouseLeave",P="onMouseEnter",q="mouse",(n==="pointerout"||n==="pointerover")&&(je=Dm,re="onPointerLeave",P="onPointerEnter",q="pointer"),ut=J==null?Z:c0(J),X=Ae==null?Z:c0(Ae),Z=new je(re,q+"leave",J,o,ee),Z.target=ut,Z.relatedTarget=X,re=null,Ki(ee)===K&&(je=new je(P,q+"enter",Ae,o,ee),je.target=X,je.relatedTarget=ut,re=je),ut=re,J&&Ae)t:{for(je=o9,P=J,q=Ae,X=0,re=P;re;re=je(re))X++;re=0;for(var ze=q;ze;ze=je(ze))re++;for(;0<X-re;)P=je(P),X--;for(;0<re-X;)q=je(q),re--;for(;X--;){if(P===q||q!==null&&P===q.alternate){je=P;break t}P=je(P),q=je(q)}je=null}else je=null;J!==null&&S2(ae,Z,J,je,!1),Ae!==null&&ut!==null&&S2(ae,ut,Ae,je,!0)}}e:{if(Z=K?c0(K):window,J=Z.nodeName&&Z.nodeName.toLowerCase(),J==="select"||J==="input"&&Z.type==="file")var et=qm;else if(_m(Z))if(Um)et=yy;else{et=gy;var Te=py}else J=Z.nodeName,!J||J.toLowerCase()!=="input"||Z.type!=="checkbox"&&Z.type!=="radio"?K&&jc(K.elementType)&&(et=qm):et=vy;if(et&&(et=et(n,K))){Hm(ae,et,o,ee);break e}Te&&Te(n,Z,K),n==="focusout"&&K&&Z.type==="number"&&K.memoizedProps.value!=null&&Lc(Z,"number",Z.value)}switch(Te=K?c0(K):window,n){case"focusin":(_m(Te)||Te.contentEditable==="true")&&(al=Te,Kc=K,b0=null);break;case"focusout":b0=Kc=al=null;break;case"mousedown":Qc=!0;break;case"contextmenu":case"mouseup":case"dragend":Qc=!1,$m(ae,o,ee);break;case"selectionchange":if(xy)break;case"keydown":case"keyup":$m(ae,o,ee)}var Ue;if(Vc)e:{switch(n){case"compositionstart":var $e="onCompositionStart";break e;case"compositionend":$e="onCompositionEnd";break e;case"compositionupdate":$e="onCompositionUpdate";break e}$e=void 0}else rl?jm(n,o)&&($e="onCompositionEnd"):n==="keydown"&&o.keyCode===229&&($e="onCompositionStart");$e&&(Om&&o.locale!=="ko"&&(rl||$e!=="onCompositionStart"?$e==="onCompositionEnd"&&rl&&(Ue=Cm()):(wa=ee,Uc="value"in wa?wa.value:wa.textContent,rl=!0)),Te=Ps(K,$e),0<Te.length&&($e=new zm($e,n,null,o,ee),ae.push({event:$e,listeners:Te}),Ue?$e.data=Ue:(Ue=Bm(o),Ue!==null&&($e.data=Ue)))),(Ue=cy?fy(n,o):dy(n,o))&&($e=Ps(K,"onBeforeInput"),0<$e.length&&(Te=new zm("onBeforeInput","beforeinput",null,o,ee),ae.push({event:Te,listeners:$e}),Te.data=Ue)),r9(ae,n,K,o,ee)}x2(ae,a)})}function P0(n,a,o){return{instance:n,listener:a,currentTarget:o}}function Ps(n,a){for(var o=a+"Capture",u=[];n!==null;){var m=n,p=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||p===null||(m=f0(n,o),m!=null&&u.unshift(P0(n,m,p)),m=f0(n,a),m!=null&&u.push(P0(n,m,p))),n.tag===3)return u;n=n.return}return[]}function o9(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function S2(n,a,o,u,m){for(var p=a._reactName,S=[];o!==null&&o!==u;){var z=o,_=z.alternate,K=z.stateNode;if(z=z.tag,_!==null&&_===u)break;z!==5&&z!==26&&z!==27||K===null||(_=K,m?(K=f0(o,p),K!=null&&S.unshift(P0(o,K,_))):m||(K=f0(o,p),K!=null&&S.push(P0(o,K,_)))),o=o.return}S.length!==0&&n.push({event:a,listeners:S})}var s9=/\r\n?/g,u9=/\u0000|\uFFFD/g;function A2(n){return(typeof n=="string"?n:""+n).replace(s9,`
50
+ `).replace(u9,"")}function M2(n,a){return a=A2(a),A2(n)===a}function st(n,a,o,u,m,p){switch(o){case"children":typeof u=="string"?a==="body"||a==="textarea"&&u===""||el(n,u):(typeof u=="number"||typeof u=="bigint")&&a!=="body"&&el(n,""+u);break;case"className":$o(n,"class",u);break;case"tabIndex":$o(n,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":$o(n,o,u);break;case"style":Mm(n,u,p);break;case"data":if(a!=="object"){$o(n,"data",u);break}case"src":case"href":if(u===""&&(a!=="a"||o!=="href")){n.removeAttribute(o);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(o);break}u=Qo(""+u),n.setAttribute(o,u);break;case"action":case"formAction":if(typeof u=="function"){n.setAttribute(o,"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 p=="function"&&(o==="formAction"?(a!=="input"&&st(n,a,"name",m.name,m,null),st(n,a,"formEncType",m.formEncType,m,null),st(n,a,"formMethod",m.formMethod,m,null),st(n,a,"formTarget",m.formTarget,m,null)):(st(n,a,"encType",m.encType,m,null),st(n,a,"method",m.method,m,null),st(n,a,"target",m.target,m,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(o);break}u=Qo(""+u),n.setAttribute(o,u);break;case"onClick":u!=null&&(n.onclick=Ur);break;case"onScroll":u!=null&&Ie("scroll",n);break;case"onScrollEnd":u!=null&&Ie("scrollend",n);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(i(61));if(o=u.__html,o!=null){if(m.children!=null)throw Error(i(60));n.innerHTML=o}}break;case"multiple":n.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":n.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){n.removeAttribute("xlink:href");break}o=Qo(""+u),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(o,""+u):n.removeAttribute(o);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(o,""):n.removeAttribute(o);break;case"capture":case"download":u===!0?n.setAttribute(o,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(o,u):n.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?n.setAttribute(o,u):n.removeAttribute(o);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?n.removeAttribute(o):n.setAttribute(o,u);break;case"popover":Ie("beforetoggle",n),Ie("toggle",n),Xo(n,"popover",u);break;case"xlinkActuate":qr(n,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":qr(n,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":qr(n,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":qr(n,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":qr(n,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":qr(n,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":qr(n,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":qr(n,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":qr(n,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":Xo(n,"is",u);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=_8.get(o)||o,Xo(n,o,u))}}function Sd(n,a,o,u,m,p){switch(o){case"style":Mm(n,u,p);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(i(61));if(o=u.__html,o!=null){if(m.children!=null)throw Error(i(60));n.innerHTML=o}}break;case"children":typeof u=="string"?el(n,u):(typeof u=="number"||typeof u=="bigint")&&el(n,""+u);break;case"onScroll":u!=null&&Ie("scroll",n);break;case"onScrollEnd":u!=null&&Ie("scrollend",n);break;case"onClick":u!=null&&(n.onclick=Ur);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!pm.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(m=o.endsWith("Capture"),a=o.slice(2,m?o.length-7:void 0),p=n[gn]||null,p=p!=null?p[o]:null,typeof p=="function"&&n.removeEventListener(a,p,m),typeof u=="function")){typeof p!="function"&&p!==null&&(o in n?n[o]=null:n.hasAttribute(o)&&n.removeAttribute(o)),n.addEventListener(a,u,m);break e}o in n?n[o]=u:u===!0?n.setAttribute(o,""):Xo(n,o,u)}}}function en(n,a,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ie("error",n),Ie("load",n);var u=!1,m=!1,p;for(p in o)if(o.hasOwnProperty(p)){var S=o[p];if(S!=null)switch(p){case"src":u=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:st(n,a,p,S,o,null)}}m&&st(n,a,"srcSet",o.srcSet,o,null),u&&st(n,a,"src",o.src,o,null);return;case"input":Ie("invalid",n);var z=p=S=m=null,_=null,K=null;for(u in o)if(o.hasOwnProperty(u)){var ee=o[u];if(ee!=null)switch(u){case"name":m=ee;break;case"type":S=ee;break;case"checked":_=ee;break;case"defaultChecked":K=ee;break;case"value":p=ee;break;case"defaultValue":z=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(i(137,a));break;default:st(n,a,u,ee,o,null)}}xm(n,p,z,_,K,S,m,!1);return;case"select":Ie("invalid",n),u=S=p=null;for(m in o)if(o.hasOwnProperty(m)&&(z=o[m],z!=null))switch(m){case"value":p=z;break;case"defaultValue":S=z;break;case"multiple":u=z;default:st(n,a,m,z,o,null)}a=p,o=S,n.multiple=!!u,a!=null?Ji(n,!!u,a,!1):o!=null&&Ji(n,!!u,o,!0);return;case"textarea":Ie("invalid",n),p=m=u=null;for(S in o)if(o.hasOwnProperty(S)&&(z=o[S],z!=null))switch(S){case"value":u=z;break;case"defaultValue":m=z;break;case"children":p=z;break;case"dangerouslySetInnerHTML":if(z!=null)throw Error(i(91));break;default:st(n,a,S,z,o,null)}Sm(n,u,m,p);return;case"option":for(_ in o)if(o.hasOwnProperty(_)&&(u=o[_],u!=null))switch(_){case"selected":n.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:st(n,a,_,u,o,null)}return;case"dialog":Ie("beforetoggle",n),Ie("toggle",n),Ie("cancel",n),Ie("close",n);break;case"iframe":case"object":Ie("load",n);break;case"video":case"audio":for(u=0;u<Y0.length;u++)Ie(Y0[u],n);break;case"image":Ie("error",n),Ie("load",n);break;case"details":Ie("toggle",n);break;case"embed":case"source":case"link":Ie("error",n),Ie("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(K in o)if(o.hasOwnProperty(K)&&(u=o[K],u!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:st(n,a,K,u,o,null)}return;default:if(jc(a)){for(ee in o)o.hasOwnProperty(ee)&&(u=o[ee],u!==void 0&&Sd(n,a,ee,u,o,void 0));return}}for(z in o)o.hasOwnProperty(z)&&(u=o[z],u!=null&&st(n,a,z,u,o,null))}function c9(n,a,o,u){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,p=null,S=null,z=null,_=null,K=null,ee=null;for(J in o){var ae=o[J];if(o.hasOwnProperty(J)&&ae!=null)switch(J){case"checked":break;case"value":break;case"defaultValue":_=ae;default:u.hasOwnProperty(J)||st(n,a,J,null,u,ae)}}for(var Z in u){var J=u[Z];if(ae=o[Z],u.hasOwnProperty(Z)&&(J!=null||ae!=null))switch(Z){case"type":p=J;break;case"name":m=J;break;case"checked":K=J;break;case"defaultChecked":ee=J;break;case"value":S=J;break;case"defaultValue":z=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(i(137,a));break;default:J!==ae&&st(n,a,Z,J,u,ae)}}Rc(n,S,z,_,K,ee,p,m);return;case"select":J=S=z=Z=null;for(p in o)if(_=o[p],o.hasOwnProperty(p)&&_!=null)switch(p){case"value":break;case"multiple":J=_;default:u.hasOwnProperty(p)||st(n,a,p,null,u,_)}for(m in u)if(p=u[m],_=o[m],u.hasOwnProperty(m)&&(p!=null||_!=null))switch(m){case"value":Z=p;break;case"defaultValue":z=p;break;case"multiple":S=p;default:p!==_&&st(n,a,m,p,u,_)}a=z,o=S,u=J,Z!=null?Ji(n,!!o,Z,!1):!!u!=!!o&&(a!=null?Ji(n,!!o,a,!0):Ji(n,!!o,o?[]:"",!1));return;case"textarea":J=Z=null;for(z in o)if(m=o[z],o.hasOwnProperty(z)&&m!=null&&!u.hasOwnProperty(z))switch(z){case"value":break;case"children":break;default:st(n,a,z,null,u,m)}for(S in u)if(m=u[S],p=o[S],u.hasOwnProperty(S)&&(m!=null||p!=null))switch(S){case"value":Z=m;break;case"defaultValue":J=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(i(91));break;default:m!==p&&st(n,a,S,m,u,p)}wm(n,Z,J);return;case"option":for(var Ae in o)if(Z=o[Ae],o.hasOwnProperty(Ae)&&Z!=null&&!u.hasOwnProperty(Ae))switch(Ae){case"selected":n.selected=!1;break;default:st(n,a,Ae,null,u,Z)}for(_ in u)if(Z=u[_],J=o[_],u.hasOwnProperty(_)&&Z!==J&&(Z!=null||J!=null))switch(_){case"selected":n.selected=Z&&typeof Z!="function"&&typeof Z!="symbol";break;default:st(n,a,_,Z,u,J)}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 je in o)Z=o[je],o.hasOwnProperty(je)&&Z!=null&&!u.hasOwnProperty(je)&&st(n,a,je,null,u,Z);for(K in u)if(Z=u[K],J=o[K],u.hasOwnProperty(K)&&Z!==J&&(Z!=null||J!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(i(137,a));break;default:st(n,a,K,Z,u,J)}return;default:if(jc(a)){for(var ut in o)Z=o[ut],o.hasOwnProperty(ut)&&Z!==void 0&&!u.hasOwnProperty(ut)&&Sd(n,a,ut,void 0,u,Z);for(ee in u)Z=u[ee],J=o[ee],!u.hasOwnProperty(ee)||Z===J||Z===void 0&&J===void 0||Sd(n,a,ee,Z,u,J);return}}for(var P in o)Z=o[P],o.hasOwnProperty(P)&&Z!=null&&!u.hasOwnProperty(P)&&st(n,a,P,null,u,Z);for(ae in u)Z=u[ae],J=o[ae],!u.hasOwnProperty(ae)||Z===J||Z==null&&J==null||st(n,a,ae,Z,u,J)}function E2(n){switch(n){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function f9(){if(typeof performance.getEntriesByType=="function"){for(var n=0,a=0,o=performance.getEntriesByType("resource"),u=0;u<o.length;u++){var m=o[u],p=m.transferSize,S=m.initiatorType,z=m.duration;if(p&&z&&E2(S)){for(S=0,z=m.responseEnd,u+=1;u<o.length;u++){var _=o[u],K=_.startTime;if(K>z)break;var ee=_.transferSize,ae=_.initiatorType;ee&&E2(ae)&&(_=_.responseEnd,S+=ee*(_<z?1:(z-K)/(_-K)))}if(--u,a+=8*(p+S)/(m.duration/1e3),n++,10<n)break}}if(0<n)return a/n/1e6}return navigator.connection&&(n=navigator.connection.downlink,typeof n=="number")?n:5}var Ad=null,Md=null;function Vs(n){return n.nodeType===9?n:n.ownerDocument}function T2(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function C2(n,a){if(n===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&a==="foreignObject"?0:n}function Ed(n,a){return n==="textarea"||n==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Td=null;function d9(){var n=window.event;return n&&n.type==="popstate"?n===Td?!1:(Td=n,!0):(Td=null,!1)}var k2=typeof setTimeout=="function"?setTimeout:void 0,h9=typeof clearTimeout=="function"?clearTimeout:void 0,N2=typeof Promise=="function"?Promise:void 0,m9=typeof queueMicrotask=="function"?queueMicrotask:typeof N2<"u"?function(n){return N2.resolve(null).then(n).catch(p9)}:k2;function p9(n){setTimeout(function(){throw n})}function Ha(n){return n==="head"}function z2(n,a){var o=a,u=0;do{var m=o.nextSibling;if(n.removeChild(o),m&&m.nodeType===8)if(o=m.data,o==="/$"||o==="/&"){if(u===0){n.removeChild(m),Dl(a);return}u--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")u++;else if(o==="html")V0(n.ownerDocument.documentElement);else if(o==="head"){o=n.ownerDocument.head,V0(o);for(var p=o.firstChild;p;){var S=p.nextSibling,z=p.nodeName;p[u0]||z==="SCRIPT"||z==="STYLE"||z==="LINK"&&p.rel.toLowerCase()==="stylesheet"||o.removeChild(p),p=S}}else o==="body"&&V0(n.ownerDocument.body);o=m}while(o);Dl(a)}function D2(n,a){var o=n;n=0;do{var u=o.nextSibling;if(o.nodeType===1?a?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(a?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),u&&u.nodeType===8)if(o=u.data,o==="/$"){if(n===0)break;n--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||n++;o=u}while(o)}function Cd(n){var a=n.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var o=a;switch(a=a.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":Cd(o),Dc(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}n.removeChild(o)}}function g9(n,a,o,u){for(;n.nodeType===1;){var m=o;if(n.nodeName.toLowerCase()!==a.toLowerCase()){if(!u&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(u){if(!n[u0])switch(a){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(p=n.getAttribute("rel"),p==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(p!==m.rel||n.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||n.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||n.getAttribute("title")!==(m.title==null?null:m.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(p=n.getAttribute("src"),(p!==(m.src==null?null:m.src)||n.getAttribute("type")!==(m.type==null?null:m.type)||n.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&p&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(a==="input"&&n.type==="hidden"){var p=m.name==null?null:""+m.name;if(m.type==="hidden"&&n.getAttribute("name")===p)return n}else return n;if(n=Zn(n.nextSibling),n===null)break}return null}function v9(n,a,o){if(a==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!o||(n=Zn(n.nextSibling),n===null))return null;return n}function O2(n,a){for(;n.nodeType!==8;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!a||(n=Zn(n.nextSibling),n===null))return null;return n}function kd(n){return n.data==="$?"||n.data==="$~"}function Nd(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState!=="loading"}function y9(n,a){var o=n.ownerDocument;if(n.data==="$~")n._reactRetry=a;else if(n.data!=="$?"||o.readyState!=="loading")a();else{var u=function(){a(),o.removeEventListener("DOMContentLoaded",u)};o.addEventListener("DOMContentLoaded",u),n._reactRetry=u}}function Zn(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===1||a===3)break;if(a===8){if(a=n.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return n}var zd=null;function R2(n){n=n.nextSibling;for(var a=0;n;){if(n.nodeType===8){var o=n.data;if(o==="/$"||o==="/&"){if(a===0)return Zn(n.nextSibling);a--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||a++}n=n.nextSibling}return null}function L2(n){n=n.previousSibling;for(var a=0;n;){if(n.nodeType===8){var o=n.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(a===0)return n;a--}else o!=="/$"&&o!=="/&"||a++}n=n.previousSibling}return null}function j2(n,a,o){switch(a=Vs(o),n){case"html":if(n=a.documentElement,!n)throw Error(i(452));return n;case"head":if(n=a.head,!n)throw Error(i(453));return n;case"body":if(n=a.body,!n)throw Error(i(454));return n;default:throw Error(i(451))}}function V0(n){for(var a=n.attributes;a.length;)n.removeAttributeNode(a[0]);Dc(n)}var Wn=new Map,B2=new Set;function Is(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var na=ne.d;ne.d={f:b9,r:x9,D:w9,C:S9,L:A9,m:M9,X:T9,S:E9,M:C9};function b9(){var n=na.f(),a=_s();return n||a}function x9(n){var a=Qi(n);a!==null&&a.tag===5&&a.type==="form"?J4(a):na.r(n)}var kl=typeof document>"u"?null:document;function _2(n,a,o){var u=kl;if(u&&typeof a=="string"&&a){var m=Pn(a);m='link[rel="'+n+'"][href="'+m+'"]',typeof o=="string"&&(m+='[crossorigin="'+o+'"]'),B2.has(m)||(B2.add(m),n={rel:n,crossOrigin:o,href:a},u.querySelector(m)===null&&(a=u.createElement("link"),en(a,"link",n),Vt(a),u.head.appendChild(a)))}}function w9(n){na.D(n),_2("dns-prefetch",n,null)}function S9(n,a){na.C(n,a),_2("preconnect",n,a)}function A9(n,a,o){na.L(n,a,o);var u=kl;if(u&&n&&a){var m='link[rel="preload"][as="'+Pn(a)+'"]';a==="image"&&o&&o.imageSrcSet?(m+='[imagesrcset="'+Pn(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(m+='[imagesizes="'+Pn(o.imageSizes)+'"]')):m+='[href="'+Pn(n)+'"]';var p=m;switch(a){case"style":p=Nl(n);break;case"script":p=zl(n)}Wn.has(p)||(n=v({rel:"preload",href:a==="image"&&o&&o.imageSrcSet?void 0:n,as:a},o),Wn.set(p,n),u.querySelector(m)!==null||a==="style"&&u.querySelector(I0(p))||a==="script"&&u.querySelector(X0(p))||(a=u.createElement("link"),en(a,"link",n),Vt(a),u.head.appendChild(a)))}}function M9(n,a){na.m(n,a);var o=kl;if(o&&n){var u=a&&typeof a.as=="string"?a.as:"script",m='link[rel="modulepreload"][as="'+Pn(u)+'"][href="'+Pn(n)+'"]',p=m;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=zl(n)}if(!Wn.has(p)&&(n=v({rel:"modulepreload",href:n},a),Wn.set(p,n),o.querySelector(m)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(X0(p)))return}u=o.createElement("link"),en(u,"link",n),Vt(u),o.head.appendChild(u)}}}function E9(n,a,o){na.S(n,a,o);var u=kl;if(u&&n){var m=Zi(u).hoistableStyles,p=Nl(n);a=a||"default";var S=m.get(p);if(!S){var z={loading:0,preload:null};if(S=u.querySelector(I0(p)))z.loading=5;else{n=v({rel:"stylesheet",href:n,"data-precedence":a},o),(o=Wn.get(p))&&Dd(n,o);var _=S=u.createElement("link");Vt(_),en(_,"link",n),_._p=new Promise(function(K,ee){_.onload=K,_.onerror=ee}),_.addEventListener("load",function(){z.loading|=1}),_.addEventListener("error",function(){z.loading|=2}),z.loading|=4,Xs(S,a,u)}S={type:"stylesheet",instance:S,count:1,state:z},m.set(p,S)}}}function T9(n,a){na.X(n,a);var o=kl;if(o&&n){var u=Zi(o).hoistableScripts,m=zl(n),p=u.get(m);p||(p=o.querySelector(X0(m)),p||(n=v({src:n,async:!0},a),(a=Wn.get(m))&&Od(n,a),p=o.createElement("script"),Vt(p),en(p,"link",n),o.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},u.set(m,p))}}function C9(n,a){na.M(n,a);var o=kl;if(o&&n){var u=Zi(o).hoistableScripts,m=zl(n),p=u.get(m);p||(p=o.querySelector(X0(m)),p||(n=v({src:n,async:!0,type:"module"},a),(a=Wn.get(m))&&Od(n,a),p=o.createElement("script"),Vt(p),en(p,"link",n),o.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},u.set(m,p))}}function H2(n,a,o,u){var m=(m=ke.current)?Is(m):null;if(!m)throw Error(i(446));switch(n){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(a=Nl(o.href),o=Zi(m).hoistableStyles,u=o.get(a),u||(u={type:"style",instance:null,count:0,state:null},o.set(a,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){n=Nl(o.href);var p=Zi(m).hoistableStyles,S=p.get(n);if(S||(m=m.ownerDocument||m,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(n,S),(p=m.querySelector(I0(n)))&&!p._p&&(S.instance=p,S.state.loading=5),Wn.has(n)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},Wn.set(n,o),p||k9(m,n,o,S.state))),a&&u===null)throw Error(i(528,""));return S}if(a&&u!==null)throw Error(i(529,""));return null;case"script":return a=o.async,o=o.src,typeof o=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=zl(o),o=Zi(m).hoistableScripts,u=o.get(a),u||(u={type:"script",instance:null,count:0,state:null},o.set(a,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,n))}}function Nl(n){return'href="'+Pn(n)+'"'}function I0(n){return'link[rel="stylesheet"]['+n+"]"}function q2(n){return v({},n,{"data-precedence":n.precedence,precedence:null})}function k9(n,a,o,u){n.querySelector('link[rel="preload"][as="style"]['+a+"]")?u.loading=1:(a=n.createElement("link"),u.preload=a,a.addEventListener("load",function(){return u.loading|=1}),a.addEventListener("error",function(){return u.loading|=2}),en(a,"link",o),Vt(a),n.head.appendChild(a))}function zl(n){return'[src="'+Pn(n)+'"]'}function X0(n){return"script[async]"+n}function U2(n,a,o){if(a.count++,a.instance===null)switch(a.type){case"style":var u=n.querySelector('style[data-href~="'+Pn(o.href)+'"]');if(u)return a.instance=u,Vt(u),u;var m=v({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return u=(n.ownerDocument||n).createElement("style"),Vt(u),en(u,"style",m),Xs(u,o.precedence,n),a.instance=u;case"stylesheet":m=Nl(o.href);var p=n.querySelector(I0(m));if(p)return a.state.loading|=4,a.instance=p,Vt(p),p;u=q2(o),(m=Wn.get(m))&&Dd(u,m),p=(n.ownerDocument||n).createElement("link"),Vt(p);var S=p;return S._p=new Promise(function(z,_){S.onload=z,S.onerror=_}),en(p,"link",u),a.state.loading|=4,Xs(p,o.precedence,n),a.instance=p;case"script":return p=zl(o.src),(m=n.querySelector(X0(p)))?(a.instance=m,Vt(m),m):(u=o,(m=Wn.get(p))&&(u=v({},o),Od(u,m)),n=n.ownerDocument||n,m=n.createElement("script"),Vt(m),en(m,"link",u),n.head.appendChild(m),a.instance=m);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(u=a.instance,a.state.loading|=4,Xs(u,o.precedence,n));return a.instance}function Xs(n,a,o){for(var u=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=u.length?u[u.length-1]:null,p=m,S=0;S<u.length;S++){var z=u[S];if(z.dataset.precedence===a)p=z;else if(p!==m)break}p?p.parentNode.insertBefore(n,p.nextSibling):(a=o.nodeType===9?o.head:o,a.insertBefore(n,a.firstChild))}function Dd(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.title==null&&(n.title=a.title)}function Od(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.integrity==null&&(n.integrity=a.integrity)}var $s=null;function G2(n,a,o){if($s===null){var u=new Map,m=$s=new Map;m.set(o,u)}else m=$s,u=m.get(o),u||(u=new Map,m.set(o,u));if(u.has(n))return u;for(u.set(n,null),o=o.getElementsByTagName(n),m=0;m<o.length;m++){var p=o[m];if(!(p[u0]||p[Qt]||n==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var S=p.getAttribute(a)||"";S=n+S;var z=u.get(S);z?z.push(p):u.set(S,[p])}}return u}function F2(n,a,o){n=n.ownerDocument||n,n.head.insertBefore(o,a==="title"?n.querySelector("head > title"):null)}function N9(n,a,o){if(o===1||a.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return n=a.disabled,typeof a.precedence=="string"&&n==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function Y2(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}function z9(n,a,o,u){if(o.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var m=Nl(u.href),p=a.querySelector(I0(m));if(p){a=p._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(n.count++,n=Ks.bind(n),a.then(n,n)),o.state.loading|=4,o.instance=p,Vt(p);return}p=a.ownerDocument||a,u=q2(u),(m=Wn.get(m))&&Dd(u,m),p=p.createElement("link"),Vt(p);var S=p;S._p=new Promise(function(z,_){S.onload=z,S.onerror=_}),en(p,"link",u),o.instance=p}n.stylesheets===null&&(n.stylesheets=new Map),n.stylesheets.set(o,a),(a=o.state.preload)&&(o.state.loading&3)===0&&(n.count++,o=Ks.bind(n),a.addEventListener("load",o),a.addEventListener("error",o))}}var Rd=0;function D9(n,a){return n.stylesheets&&n.count===0&&Zs(n,n.stylesheets),0<n.count||0<n.imgCount?function(o){var u=setTimeout(function(){if(n.stylesheets&&Zs(n,n.stylesheets),n.unsuspend){var p=n.unsuspend;n.unsuspend=null,p()}},6e4+a);0<n.imgBytes&&Rd===0&&(Rd=62500*f9());var m=setTimeout(function(){if(n.waitingForImages=!1,n.count===0&&(n.stylesheets&&Zs(n,n.stylesheets),n.unsuspend)){var p=n.unsuspend;n.unsuspend=null,p()}},(n.imgBytes>Rd?50:800)+a);return n.unsuspend=o,function(){n.unsuspend=null,clearTimeout(u),clearTimeout(m)}}:null}function Ks(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zs(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Qs=null;function Zs(n,a){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Qs=new Map,a.forEach(O9,n),Qs=null,Ks.call(n))}function O9(n,a){if(!(a.state.loading&4)){var o=Qs.get(n);if(o)var u=o.get(null);else{o=new Map,Qs.set(n,o);for(var m=n.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<m.length;p++){var S=m[p];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(o.set(S.dataset.precedence,S),u=S)}u&&o.set(null,u)}m=a.instance,S=m.getAttribute("data-precedence"),p=o.get(S)||u,p===u&&o.set(null,m),o.set(S,m),this.count++,u=Ks.bind(this),m.addEventListener("load",u),m.addEventListener("error",u),p?p.parentNode.insertBefore(m,p.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(m,n.firstChild)),a.state.loading|=4}}var $0={$$typeof:R,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function R9(n,a,o,u,m,p,S,z,_){this.tag=1,this.containerInfo=n,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=Cc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cc(0),this.hiddenUpdates=Cc(null),this.identifierPrefix=u,this.onUncaughtError=m,this.onCaughtError=p,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function P2(n,a,o,u,m,p,S,z,_,K,ee,ae){return n=new R9(n,a,o,S,_,K,ee,ae,z),a=1,p===!0&&(a|=24),p=On(3,null,null,a),n.current=p,p.stateNode=n,a=df(),a.refCount++,n.pooledCache=a,a.refCount++,p.memoizedState={element:u,isDehydrated:o,cache:a},gf(p),n}function V2(n){return n?(n=ol,n):ol}function I2(n,a,o,u,m,p){m=V2(m),u.context===null?u.context=m:u.pendingContext=m,u=Ca(a),u.payload={element:o},p=p===void 0?null:p,p!==null&&(u.callback=p),o=ka(n,u,a),o!==null&&(Sn(o,n,a),T0(o,n,a))}function X2(n,a){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var o=n.retryLane;n.retryLane=o!==0&&o<a?o:a}}function Ld(n,a){X2(n,a),(n=n.alternate)&&X2(n,a)}function $2(n){if(n.tag===13||n.tag===31){var a=yi(n,67108864);a!==null&&Sn(a,n,67108864),Ld(n,67108864)}}function K2(n){if(n.tag===13||n.tag===31){var a=_n();a=kc(a);var o=yi(n,a);o!==null&&Sn(o,n,a),Ld(n,a)}}var Ws=!0;function L9(n,a,o,u){var m=Y.T;Y.T=null;var p=ne.p;try{ne.p=2,jd(n,a,o,u)}finally{ne.p=p,Y.T=m}}function j9(n,a,o,u){var m=Y.T;Y.T=null;var p=ne.p;try{ne.p=8,jd(n,a,o,u)}finally{ne.p=p,Y.T=m}}function jd(n,a,o,u){if(Ws){var m=Bd(u);if(m===null)wd(n,a,u,Js,o),Z2(n,u);else if(_9(m,n,a,o,u))u.stopPropagation();else if(Z2(n,u),a&4&&-1<B9.indexOf(n)){for(;m!==null;){var p=Qi(m);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var S=yr(p.pendingLanes);if(S!==0){var z=p;for(z.pendingLanes|=2,z.entangledLanes|=2;S;){var _=1<<31-on(S);z.entanglements[1]|=_,S&=~_}Sr(p),(rt&6)===0&&(js=tn()+500,F0(0))}}break;case 31:case 13:z=yi(p,2),z!==null&&Sn(z,p,2),_s(),Ld(p,2)}if(p=Bd(u),p===null&&wd(n,a,u,Js,o),p===m)break;m=p}m!==null&&u.stopPropagation()}else wd(n,a,u,null,o)}}function Bd(n){return n=_c(n),_d(n)}var Js=null;function _d(n){if(Js=null,n=Ki(n),n!==null){var a=s(n);if(a===null)n=null;else{var o=a.tag;if(o===13){if(n=c(a),n!==null)return n;n=null}else if(o===31){if(n=f(a),n!==null)return n;n=null}else if(o===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null)}}return Js=n,null}function Q2(n){switch(n){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Fo()){case Yo:return 2;case a0:return 8;case Vi:case i0:return 32;case Hr:return 268435456;default:return 32}default:return 32}}var Hd=!1,qa=null,Ua=null,Ga=null,K0=new Map,Q0=new Map,Fa=[],B9="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 Z2(n,a){switch(n){case"focusin":case"focusout":qa=null;break;case"dragenter":case"dragleave":Ua=null;break;case"mouseover":case"mouseout":Ga=null;break;case"pointerover":case"pointerout":K0.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Q0.delete(a.pointerId)}}function Z0(n,a,o,u,m,p){return n===null||n.nativeEvent!==p?(n={blockedOn:a,domEventName:o,eventSystemFlags:u,nativeEvent:p,targetContainers:[m]},a!==null&&(a=Qi(a),a!==null&&$2(a)),n):(n.eventSystemFlags|=u,a=n.targetContainers,m!==null&&a.indexOf(m)===-1&&a.push(m),n)}function _9(n,a,o,u,m){switch(a){case"focusin":return qa=Z0(qa,n,a,o,u,m),!0;case"dragenter":return Ua=Z0(Ua,n,a,o,u,m),!0;case"mouseover":return Ga=Z0(Ga,n,a,o,u,m),!0;case"pointerover":var p=m.pointerId;return K0.set(p,Z0(K0.get(p)||null,n,a,o,u,m)),!0;case"gotpointercapture":return p=m.pointerId,Q0.set(p,Z0(Q0.get(p)||null,n,a,o,u,m)),!0}return!1}function W2(n){var a=Ki(n.target);if(a!==null){var o=s(a);if(o!==null){if(a=o.tag,a===13){if(a=c(o),a!==null){n.blockedOn=a,dm(n.priority,function(){K2(o)});return}}else if(a===31){if(a=f(o),a!==null){n.blockedOn=a,dm(n.priority,function(){K2(o)});return}}else if(a===3&&o.stateNode.current.memoizedState.isDehydrated){n.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}n.blockedOn=null}function eu(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var o=Bd(n.nativeEvent);if(o===null){o=n.nativeEvent;var u=new o.constructor(o.type,o);Bc=u,o.target.dispatchEvent(u),Bc=null}else return a=Qi(o),a!==null&&$2(a),n.blockedOn=o,!1;a.shift()}return!0}function J2(n,a,o){eu(n)&&o.delete(a)}function H9(){Hd=!1,qa!==null&&eu(qa)&&(qa=null),Ua!==null&&eu(Ua)&&(Ua=null),Ga!==null&&eu(Ga)&&(Ga=null),K0.forEach(J2),Q0.forEach(J2)}function tu(n,a){n.blockedOn===a&&(n.blockedOn=null,Hd||(Hd=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,H9)))}var nu=null;function e3(n){nu!==n&&(nu=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){nu===n&&(nu=null);for(var a=0;a<n.length;a+=3){var o=n[a],u=n[a+1],m=n[a+2];if(typeof u!="function"){if(_d(u||o)===null)continue;break}var p=Qi(o);p!==null&&(n.splice(a,3),a-=3,Bf(p,{pending:!0,data:m,method:o.method,action:u},u,m))}}))}function Dl(n){function a(_){return tu(_,n)}qa!==null&&tu(qa,n),Ua!==null&&tu(Ua,n),Ga!==null&&tu(Ga,n),K0.forEach(a),Q0.forEach(a);for(var o=0;o<Fa.length;o++){var u=Fa[o];u.blockedOn===n&&(u.blockedOn=null)}for(;0<Fa.length&&(o=Fa[0],o.blockedOn===null);)W2(o),o.blockedOn===null&&Fa.shift();if(o=(n.ownerDocument||n).$$reactFormReplay,o!=null)for(u=0;u<o.length;u+=3){var m=o[u],p=o[u+1],S=m[gn]||null;if(typeof p=="function")S||e3(o);else if(S){var z=null;if(p&&p.hasAttribute("formAction")){if(m=p,S=p[gn]||null)z=S.formAction;else if(_d(m)!==null)continue}else z=S.action;typeof z=="function"?o[u+1]=z:(o.splice(u,3),u-=3),e3(o)}}}function t3(){function n(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(S){return m=S})},focusReset:"manual",scroll:"manual"})}function a(){m!==null&&(m(),m=null),u||setTimeout(o,20)}function o(){if(!u&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,m=null;return navigation.addEventListener("navigate",n),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(o,100),function(){u=!0,navigation.removeEventListener("navigate",n),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),m!==null&&(m(),m=null)}}}function qd(n){this._internalRoot=n}ru.prototype.render=qd.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(i(409));var o=a.current,u=_n();I2(o,u,n,a,null,null)},ru.prototype.unmount=qd.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;I2(n.current,2,null,n,null,null),_s(),a[$i]=null}};function ru(n){this._internalRoot=n}ru.prototype.unstable_scheduleHydration=function(n){if(n){var a=fm();n={blockedOn:null,target:n,priority:a};for(var o=0;o<Fa.length&&a!==0&&a<Fa[o].priority;o++);Fa.splice(o,0,n),o===0&&W2(n)}};var n3=t.version;if(n3!=="19.2.1")throw Error(i(527,n3,"19.2.1"));ne.findDOMNode=function(n){var a=n._reactInternals;if(a===void 0)throw typeof n.render=="function"?Error(i(188)):(n=Object.keys(n).join(","),Error(i(268,n)));return n=h(a),n=n!==null?g(n):null,n=n===null?null:n.stateNode,n};var q9={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:Y,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var au=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!au.isDisabled&&au.supportsFiber)try{gr=au.inject(q9),ln=au}catch{}}return J0.createRoot=function(n,a){if(!l(n))throw Error(i(299));var o=!1,u="",m=up,p=cp,S=fp;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(m=a.onUncaughtError),a.onCaughtError!==void 0&&(p=a.onCaughtError),a.onRecoverableError!==void 0&&(S=a.onRecoverableError)),a=P2(n,1,!1,null,null,o,u,null,m,p,S,t3),n[$i]=a.current,xd(n),new qd(a)},J0.hydrateRoot=function(n,a,o){if(!l(n))throw Error(i(299));var u=!1,m="",p=up,S=cp,z=fp,_=null;return o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(m=o.identifierPrefix),o.onUncaughtError!==void 0&&(p=o.onUncaughtError),o.onCaughtError!==void 0&&(S=o.onCaughtError),o.onRecoverableError!==void 0&&(z=o.onRecoverableError),o.formState!==void 0&&(_=o.formState)),a=P2(n,1,!0,a,o??null,u,m,_,p,S,z,t3),a.context=V2(null),o=a.current,u=_n(),u=kc(u),m=Ca(u),m.callback=null,ka(o,m,u),o=u,a.current.lanes=o,s0(a,o),Sr(a),n[$i]=a.current,xd(n),new ru(a)},J0.version="19.2.1",J0}var h3;function Z9(){if(h3)return Yd.exports;h3=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Yd.exports=Q9(),Yd.exports}var W9=Z9();/**
51
+ * react-router v7.10.1
52
+ *
53
+ * Copyright (c) Remix Software Inc.
54
+ *
55
+ * This source code is licensed under the MIT license found in the
56
+ * LICENSE.md file in the root directory of this source tree.
57
+ *
58
+ * @license MIT
59
+ */var m3="popstate";function J9(e={}){function t(i,l){let{pathname:s,search:c,hash:f}=i.location;return N1("",{pathname:s,search:c,hash:f},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function r(i,l){return typeof l=="string"?l:mo(l)}return tb(t,r,null,e)}function At(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function rr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function eb(){return Math.random().toString(36).substring(2,10)}function p3(e,t){return{usr:e.state,key:e.key,idx:t}}function N1(e,t,r=null,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?$l(t):t,state:r,key:t&&t.key||i||eb()}}function mo({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function $l(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let i=e.indexOf("?");i>=0&&(t.search=e.substring(i),e=e.substring(0,i)),e&&(t.pathname=e)}return t}function tb(e,t,r,i={}){let{window:l=document.defaultView,v5Compat:s=!1}=i,c=l.history,f="POP",d=null,h=g();h==null&&(h=0,c.replaceState({...c.state,idx:h},""));function g(){return(c.state||{idx:null}).idx}function v(){f="POP";let T=g(),N=T==null?null:T-h;h=T,d&&d({action:f,location:A.location,delta:N})}function b(T,N){f="PUSH";let O=N1(A.location,T,N);h=g()+1;let R=p3(O,h),H=A.createHref(O);try{c.pushState(R,"",H)}catch(F){if(F instanceof DOMException&&F.name==="DataCloneError")throw F;l.location.assign(H)}s&&d&&d({action:f,location:A.location,delta:1})}function w(T,N){f="REPLACE";let O=N1(A.location,T,N);h=g();let R=p3(O,h),H=A.createHref(O);c.replaceState(R,"",H),s&&d&&d({action:f,location:A.location,delta:0})}function E(T){return nb(T)}let A={get action(){return f},get location(){return e(l,c)},listen(T){if(d)throw new Error("A history only accepts one active listener");return l.addEventListener(m3,v),d=T,()=>{l.removeEventListener(m3,v),d=null}},createHref(T){return t(l,T)},createURL:E,encodeLocation(T){let N=E(T);return{pathname:N.pathname,search:N.search,hash:N.hash}},push:b,replace:w,go(T){return c.go(T)}};return A}function nb(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),At(r,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:mo(e);return i=i.replace(/ $/,"%20"),!t&&i.startsWith("//")&&(i=r+i),new URL(i,r)}function m6(e,t,r="/"){return rb(e,t,r,!1)}function rb(e,t,r,i){let l=typeof t=="string"?$l(t):t,s=fa(l.pathname||"/",r);if(s==null)return null;let c=p6(e);ab(c);let f=null;for(let d=0;f==null&&d<c.length;++d){let h=pb(s);f=hb(c[d],h,i)}return f}function p6(e,t=[],r=[],i="",l=!1){let s=(c,f,d=l,h)=>{let g={relativePath:h===void 0?c.path||"":h,caseSensitive:c.caseSensitive===!0,childrenIndex:f,route:c};if(g.relativePath.startsWith("/")){if(!g.relativePath.startsWith(i)&&d)return;At(g.relativePath.startsWith(i),`Absolute route path "${g.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),g.relativePath=g.relativePath.slice(i.length)}let v=sa([i,g.relativePath]),b=r.concat(g);c.children&&c.children.length>0&&(At(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),p6(c.children,t,b,v,d)),!(c.path==null&&!c.index)&&t.push({path:v,score:fb(v,c.index),routesMeta:b})};return e.forEach((c,f)=>{var d;if(c.path===""||!((d=c.path)!=null&&d.includes("?")))s(c,f);else for(let h of g6(c.path))s(c,f,!0,h)}),t}function g6(e){let t=e.split("/");if(t.length===0)return[];let[r,...i]=t,l=r.endsWith("?"),s=r.replace(/\?$/,"");if(i.length===0)return l?[s,""]:[s];let c=g6(i.join("/")),f=[];return f.push(...c.map(d=>d===""?s:[s,d].join("/"))),l&&f.push(...c),f.map(d=>e.startsWith("/")&&d===""?"/":d)}function ab(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:db(t.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}var ib=/^:[\w-]+$/,lb=3,ob=2,sb=1,ub=10,cb=-2,g3=e=>e==="*";function fb(e,t){let r=e.split("/"),i=r.length;return r.some(g3)&&(i+=cb),t&&(i+=ob),r.filter(l=>!g3(l)).reduce((l,s)=>l+(ib.test(s)?lb:s===""?sb:ub),i)}function db(e,t){return e.length===t.length&&e.slice(0,-1).every((i,l)=>i===t[l])?e[e.length-1]-t[t.length-1]:0}function hb(e,t,r=!1){let{routesMeta:i}=e,l={},s="/",c=[];for(let f=0;f<i.length;++f){let d=i[f],h=f===i.length-1,g=s==="/"?t:t.slice(s.length)||"/",v=Lu({path:d.relativePath,caseSensitive:d.caseSensitive,end:h},g),b=d.route;if(!v&&h&&r&&!i[i.length-1].route.index&&(v=Lu({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},g)),!v)return null;Object.assign(l,v.params),c.push({params:l,pathname:sa([s,v.pathname]),pathnameBase:xb(sa([s,v.pathnameBase])),route:b}),v.pathnameBase!=="/"&&(s=sa([s,v.pathnameBase]))}return c}function Lu(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,i]=mb(e.path,e.caseSensitive,e.end),l=t.match(r);if(!l)return null;let s=l[0],c=s.replace(/(.)\/+$/,"$1"),f=l.slice(1);return{params:i.reduce((h,{paramName:g,isOptional:v},b)=>{if(g==="*"){let E=f[b]||"";c=s.slice(0,s.length-E.length).replace(/(.)\/+$/,"$1")}const w=f[b];return v&&!w?h[g]=void 0:h[g]=(w||"").replace(/%2F/g,"/"),h},{}),pathname:s,pathnameBase:c,pattern:e}}function mb(e,t=!1,r=!0){rr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let i=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,f,d)=>(i.push({paramName:f,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(i.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),i]}function pb(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return rr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function fa(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,i=e.charAt(r);return i&&i!=="/"?null:e.slice(r)||"/"}var gb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vb=e=>gb.test(e);function yb(e,t="/"){let{pathname:r,search:i="",hash:l=""}=typeof e=="string"?$l(e):e,s;if(r)if(vb(r))s=r;else{if(r.includes("//")){let c=r;r=r.replace(/\/\/+/g,"/"),rr(!1,`Pathnames cannot have embedded double slashes - normalizing ${c} -> ${r}`)}r.startsWith("/")?s=v3(r.substring(1),"/"):s=v3(r,t)}else s=t;return{pathname:s,search:wb(i),hash:Sb(l)}}function v3(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?r.length>1&&r.pop():l!=="."&&r.push(l)}),r.length>1?r.join("/"):"/"}function Xd(e,t,r,i){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function bb(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function v6(e){let t=bb(e);return t.map((r,i)=>i===t.length-1?r.pathname:r.pathnameBase)}function y6(e,t,r,i=!1){let l;typeof e=="string"?l=$l(e):(l={...e},At(!l.pathname||!l.pathname.includes("?"),Xd("?","pathname","search",l)),At(!l.pathname||!l.pathname.includes("#"),Xd("#","pathname","hash",l)),At(!l.search||!l.search.includes("#"),Xd("#","search","hash",l)));let s=e===""||l.pathname==="",c=s?"/":l.pathname,f;if(c==null)f=r;else{let v=t.length-1;if(!i&&c.startsWith("..")){let b=c.split("/");for(;b[0]==="..";)b.shift(),v-=1;l.pathname=b.join("/")}f=v>=0?t[v]:"/"}let d=yb(l,f),h=c&&c!=="/"&&c.endsWith("/"),g=(s||c===".")&&r.endsWith("/");return!d.pathname.endsWith("/")&&(h||g)&&(d.pathname+="/"),d}var sa=e=>e.join("/").replace(/\/\/+/g,"/"),xb=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),wb=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Sb=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Ab(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Mb(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var b6=["POST","PUT","PATCH","DELETE"];new Set(b6);var Eb=["GET",...b6];new Set(Eb);var Kl=M.createContext(null);Kl.displayName="DataRouter";var nc=M.createContext(null);nc.displayName="DataRouterState";M.createContext(!1);var x6=M.createContext({isTransitioning:!1});x6.displayName="ViewTransition";var Tb=M.createContext(new Map);Tb.displayName="Fetchers";var Cb=M.createContext(null);Cb.displayName="Await";var mr=M.createContext(null);mr.displayName="Navigation";var No=M.createContext(null);No.displayName="Location";var Or=M.createContext({outlet:null,matches:[],isDataRoute:!1});Or.displayName="Route";var ah=M.createContext(null);ah.displayName="RouteError";function kb(e,{relative:t}={}){At(zo(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=M.useContext(mr),{hash:l,pathname:s,search:c}=Do(e,{relative:t}),f=s;return r!=="/"&&(f=s==="/"?r:sa([r,s])),i.createHref({pathname:f,search:c,hash:l})}function zo(){return M.useContext(No)!=null}function ci(){return At(zo(),"useLocation() may be used only in the context of a <Router> component."),M.useContext(No).location}var w6="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function S6(e){M.useContext(mr).static||M.useLayoutEffect(e)}function A6(){let{isDataRoute:e}=M.useContext(Or);return e?Gb():Nb()}function Nb(){At(zo(),"useNavigate() may be used only in the context of a <Router> component.");let e=M.useContext(Kl),{basename:t,navigator:r}=M.useContext(mr),{matches:i}=M.useContext(Or),{pathname:l}=ci(),s=JSON.stringify(v6(i)),c=M.useRef(!1);return S6(()=>{c.current=!0}),M.useCallback((d,h={})=>{if(rr(c.current,w6),!c.current)return;if(typeof d=="number"){r.go(d);return}let g=y6(d,JSON.parse(s),l,h.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:sa([t,g.pathname])),(h.replace?r.replace:r.push)(g,h.state,h)},[t,r,s,l,e])}M.createContext(null);function ih(){let{matches:e}=M.useContext(Or),t=e[e.length-1];return t?t.params:{}}function Do(e,{relative:t}={}){let{matches:r}=M.useContext(Or),{pathname:i}=ci(),l=JSON.stringify(v6(r));return M.useMemo(()=>y6(e,JSON.parse(l),i,t==="path"),[e,l,i,t])}function zb(e,t){return M6(e,t)}function M6(e,t,r,i,l){var O;At(zo(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=M.useContext(mr),{matches:c}=M.useContext(Or),f=c[c.length-1],d=f?f.params:{},h=f?f.pathname:"/",g=f?f.pathnameBase:"/",v=f&&f.route;{let R=v&&v.path||"";E6(h,!v||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${R}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
60
+
61
+ Please change the parent <Route path="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let b=ci(),w;if(t){let R=typeof t=="string"?$l(t):t;At(g==="/"||((O=R.pathname)==null?void 0:O.startsWith(g)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${R.pathname}" was given in the \`location\` prop.`),w=R}else w=b;let E=w.pathname||"/",A=E;if(g!=="/"){let R=g.replace(/^\//,"").split("/");A="/"+E.replace(/^\//,"").split("/").slice(R.length).join("/")}let T=m6(e,{pathname:A});rr(v||T!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),rr(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${w.pathname}${w.search}${w.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let N=jb(T&&T.map(R=>Object.assign({},R,{params:Object.assign({},d,R.params),pathname:sa([g,s.encodeLocation?s.encodeLocation(R.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?g:sa([g,s.encodeLocation?s.encodeLocation(R.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathnameBase])})),c,r,i,l);return t&&N?M.createElement(No.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},N):N}function Db(){let e=Ub(),t=Ab(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:i},s={padding:"2px 4px",backgroundColor:i},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=M.createElement(M.Fragment,null,M.createElement("p",null,"💿 Hey developer 👋"),M.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",M.createElement("code",{style:s},"ErrorBoundary")," or"," ",M.createElement("code",{style:s},"errorElement")," prop on your route.")),M.createElement(M.Fragment,null,M.createElement("h2",null,"Unexpected Application Error!"),M.createElement("h3",{style:{fontStyle:"italic"}},t),r?M.createElement("pre",{style:l},r):null,c)}var Ob=M.createElement(Db,null),Rb=class extends M.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?M.createElement(Or.Provider,{value:this.props.routeContext},M.createElement(ah.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Lb({routeContext:e,match:t,children:r}){let i=M.useContext(Kl);return i&&i.static&&i.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=t.route.id),M.createElement(Or.Provider,{value:e},r)}function jb(e,t=[],r=null,i=null,l=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let s=e,c=r==null?void 0:r.errors;if(c!=null){let g=s.findIndex(v=>v.route.id&&(c==null?void 0:c[v.route.id])!==void 0);At(g>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),s=s.slice(0,Math.min(s.length,g+1))}let f=!1,d=-1;if(r)for(let g=0;g<s.length;g++){let v=s[g];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(d=g),v.route.id){let{loaderData:b,errors:w}=r,E=v.route.loader&&!b.hasOwnProperty(v.route.id)&&(!w||w[v.route.id]===void 0);if(v.route.lazy||E){f=!0,d>=0?s=s.slice(0,d+1):s=[s[0]];break}}}let h=r&&i?(g,v)=>{var b,w;i(g,{location:r.location,params:((w=(b=r.matches)==null?void 0:b[0])==null?void 0:w.params)??{},unstable_pattern:Mb(r.matches),errorInfo:v})}:void 0;return s.reduceRight((g,v,b)=>{let w,E=!1,A=null,T=null;r&&(w=c&&v.route.id?c[v.route.id]:void 0,A=v.route.errorElement||Ob,f&&(d<0&&b===0?(E6("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),E=!0,T=null):d===b&&(E=!0,T=v.route.hydrateFallbackElement||null)));let N=t.concat(s.slice(0,b+1)),O=()=>{let R;return w?R=A:E?R=T:v.route.Component?R=M.createElement(v.route.Component,null):v.route.element?R=v.route.element:R=g,M.createElement(Lb,{match:v,routeContext:{outlet:g,matches:N,isDataRoute:r!=null},children:R})};return r&&(v.route.ErrorBoundary||v.route.errorElement||b===0)?M.createElement(Rb,{location:r.location,revalidation:r.revalidation,component:A,error:w,children:O(),routeContext:{outlet:null,matches:N,isDataRoute:!0},onError:h}):O()},null)}function lh(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Bb(e){let t=M.useContext(Kl);return At(t,lh(e)),t}function _b(e){let t=M.useContext(nc);return At(t,lh(e)),t}function Hb(e){let t=M.useContext(Or);return At(t,lh(e)),t}function oh(e){let t=Hb(e),r=t.matches[t.matches.length-1];return At(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function qb(){return oh("useRouteId")}function Ub(){var i;let e=M.useContext(ah),t=_b("useRouteError"),r=oh("useRouteError");return e!==void 0?e:(i=t.errors)==null?void 0:i[r]}function Gb(){let{router:e}=Bb("useNavigate"),t=oh("useNavigate"),r=M.useRef(!1);return S6(()=>{r.current=!0}),M.useCallback(async(l,s={})=>{rr(r.current,w6),r.current&&(typeof l=="number"?await e.navigate(l):await e.navigate(l,{fromRouteId:t,...s}))},[e,t])}var y3={};function E6(e,t,r){!t&&!y3[e]&&(y3[e]=!0,rr(!1,r))}M.memo(Fb);function Fb({routes:e,future:t,state:r,unstable_onError:i}){return M6(e,void 0,r,i,t)}function Mu(e){At(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Yb({basename:e="/",children:t=null,location:r,navigationType:i="POP",navigator:l,static:s=!1,unstable_useTransitions:c}){At(!zo(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=e.replace(/^\/*/,"/"),d=M.useMemo(()=>({basename:f,navigator:l,static:s,unstable_useTransitions:c,future:{}}),[f,l,s,c]);typeof r=="string"&&(r=$l(r));let{pathname:h="/",search:g="",hash:v="",state:b=null,key:w="default"}=r,E=M.useMemo(()=>{let A=fa(h,f);return A==null?null:{location:{pathname:A,search:g,hash:v,state:b,key:w},navigationType:i}},[f,h,g,v,b,w,i]);return rr(E!=null,`<Router basename="${f}"> is not able to match the URL "${h}${g}${v}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:M.createElement(mr.Provider,{value:d},M.createElement(No.Provider,{children:t,value:E}))}function Pb({children:e,location:t}){return zb(z1(e),t)}function z1(e,t=[]){let r=[];return M.Children.forEach(e,(i,l)=>{if(!M.isValidElement(i))return;let s=[...t,l];if(i.type===M.Fragment){r.push.apply(r,z1(i.props.children,s));return}At(i.type===Mu,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),At(!i.props.index||!i.props.children,"An index route cannot have child routes.");let c={id:i.props.id||s.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(c.children=z1(i.props.children,s)),r.push(c)}),r}var Eu="get",Tu="application/x-www-form-urlencoded";function rc(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function Vb(e){return rc(e)&&e.tagName.toLowerCase()==="button"}function Ib(e){return rc(e)&&e.tagName.toLowerCase()==="form"}function Xb(e){return rc(e)&&e.tagName.toLowerCase()==="input"}function $b(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Kb(e,t){return e.button===0&&(!t||t==="_self")&&!$b(e)}function D1(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let i=e[r];return t.concat(Array.isArray(i)?i.map(l=>[r,l]):[[r,i]])},[]))}function Qb(e,t){let r=D1(e);return t&&t.forEach((i,l)=>{r.has(l)||t.getAll(l).forEach(s=>{r.append(l,s)})}),r}var iu=null;function Zb(){if(iu===null)try{new FormData(document.createElement("form"),0),iu=!1}catch{iu=!0}return iu}var Wb=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function $d(e){return e!=null&&!Wb.has(e)?(rr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Tu}"`),null):e}function Jb(e,t){let r,i,l,s,c;if(Ib(e)){let f=e.getAttribute("action");i=f?fa(f,t):null,r=e.getAttribute("method")||Eu,l=$d(e.getAttribute("enctype"))||Tu,s=new FormData(e)}else if(Vb(e)||Xb(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||f.getAttribute("action");if(i=d?fa(d,t):null,r=e.getAttribute("formmethod")||f.getAttribute("method")||Eu,l=$d(e.getAttribute("formenctype"))||$d(f.getAttribute("enctype"))||Tu,s=new FormData(f,e),!Zb()){let{name:h,type:g,value:v}=e;if(g==="image"){let b=h?`${h}.`:"";s.append(`${b}x`,"0"),s.append(`${b}y`,"0")}else h&&s.append(h,v)}}else{if(rc(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Eu,i=null,l=Tu,c=e}return s&&l==="text/plain"&&(c=s,s=void 0),{action:i,method:r.toLowerCase(),encType:l,formData:s,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function sh(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ex(e,t,r){let i=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return i.pathname==="/"?i.pathname=`_root.${r}`:t&&fa(i.pathname,t)==="/"?i.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${r}`,i}async function tx(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function nx(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function rx(e,t,r){let i=await Promise.all(e.map(async l=>{let s=t.routes[l.route.id];if(s){let c=await tx(s,r);return c.links?c.links():[]}return[]}));return ox(i.flat(1).filter(nx).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}function b3(e,t,r,i,l,s){let c=(d,h)=>r[h]?d.route.id!==r[h].route.id:!0,f=(d,h)=>{var g;return r[h].pathname!==d.pathname||((g=r[h].route.path)==null?void 0:g.endsWith("*"))&&r[h].params["*"]!==d.params["*"]};return s==="assets"?t.filter((d,h)=>c(d,h)||f(d,h)):s==="data"?t.filter((d,h)=>{var v;let g=i.routes[d.route.id];if(!g||!g.hasLoader)return!1;if(c(d,h)||f(d,h))return!0;if(d.route.shouldRevalidate){let b=d.route.shouldRevalidate({currentUrl:new URL(l.pathname+l.search+l.hash,window.origin),currentParams:((v=r[0])==null?void 0:v.params)||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function ax(e,t,{includeHydrateFallback:r}={}){return ix(e.map(i=>{let l=t.routes[i.route.id];if(!l)return[];let s=[l.module];return l.clientActionModule&&(s=s.concat(l.clientActionModule)),l.clientLoaderModule&&(s=s.concat(l.clientLoaderModule)),r&&l.hydrateFallbackModule&&(s=s.concat(l.hydrateFallbackModule)),l.imports&&(s=s.concat(l.imports)),s}).flat(1))}function ix(e){return[...new Set(e)]}function lx(e){let t={},r=Object.keys(e).sort();for(let i of r)t[i]=e[i];return t}function ox(e,t){let r=new Set;return new Set(t),e.reduce((i,l)=>{let s=JSON.stringify(lx(l));return r.has(s)||(r.add(s),i.push({key:s,link:l})),i},[])}function T6(){let e=M.useContext(Kl);return sh(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function sx(){let e=M.useContext(nc);return sh(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var uh=M.createContext(void 0);uh.displayName="FrameworkContext";function C6(){let e=M.useContext(uh);return sh(e,"You must render this element inside a <HydratedRouter> element"),e}function ux(e,t){let r=M.useContext(uh),[i,l]=M.useState(!1),[s,c]=M.useState(!1),{onFocus:f,onBlur:d,onMouseEnter:h,onMouseLeave:g,onTouchStart:v}=t,b=M.useRef(null);M.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let A=N=>{N.forEach(O=>{c(O.isIntersecting)})},T=new IntersectionObserver(A,{threshold:.5});return b.current&&T.observe(b.current),()=>{T.disconnect()}}},[e]),M.useEffect(()=>{if(i){let A=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(A)}}},[i]);let w=()=>{l(!0)},E=()=>{l(!1),c(!1)};return r?e!=="intent"?[s,b,{}]:[s,b,{onFocus:eo(f,w),onBlur:eo(d,E),onMouseEnter:eo(h,w),onMouseLeave:eo(g,E),onTouchStart:eo(v,w)}]:[!1,b,{}]}function eo(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function cx({page:e,...t}){let{router:r}=T6(),i=M.useMemo(()=>m6(r.routes,e,r.basename),[r.routes,e,r.basename]);return i?M.createElement(dx,{page:e,matches:i,...t}):null}function fx(e){let{manifest:t,routeModules:r}=C6(),[i,l]=M.useState([]);return M.useEffect(()=>{let s=!1;return rx(e,t,r).then(c=>{s||l(c)}),()=>{s=!0}},[e,t,r]),i}function dx({page:e,matches:t,...r}){let i=ci(),{manifest:l,routeModules:s}=C6(),{basename:c}=T6(),{loaderData:f,matches:d}=sx(),h=M.useMemo(()=>b3(e,t,d,l,i,"data"),[e,t,d,l,i]),g=M.useMemo(()=>b3(e,t,d,l,i,"assets"),[e,t,d,l,i]),v=M.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let E=new Set,A=!1;if(t.forEach(N=>{var R;let O=l.routes[N.route.id];!O||!O.hasLoader||(!h.some(H=>H.route.id===N.route.id)&&N.route.id in f&&((R=s[N.route.id])!=null&&R.shouldRevalidate)||O.hasClientLoader?A=!0:E.add(N.route.id))}),E.size===0)return[];let T=ex(e,c,"data");return A&&E.size>0&&T.searchParams.set("_routes",t.filter(N=>E.has(N.route.id)).map(N=>N.route.id).join(",")),[T.pathname+T.search]},[c,f,i,l,h,t,e,s]),b=M.useMemo(()=>ax(g,l),[g,l]),w=fx(g);return M.createElement(M.Fragment,null,v.map(E=>M.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...r})),b.map(E=>M.createElement("link",{key:E,rel:"modulepreload",href:E,...r})),w.map(({key:E,link:A})=>M.createElement("link",{key:E,nonce:r.nonce,...A})))}function hx(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var k6=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{k6&&(window.__reactRouterVersion="7.10.1")}catch{}function mx({basename:e,children:t,unstable_useTransitions:r,window:i}){let l=M.useRef();l.current==null&&(l.current=J9({window:i,v5Compat:!0}));let s=l.current,[c,f]=M.useState({action:s.action,location:s.location}),d=M.useCallback(h=>{r===!1?f(h):M.startTransition(()=>f(h))},[r]);return M.useLayoutEffect(()=>s.listen(d),[s,d]),M.createElement(Yb,{basename:e,children:t,location:c.location,navigationType:c.action,navigator:s,unstable_useTransitions:r===!0})}var N6=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pl=M.forwardRef(function({onClick:t,discover:r="render",prefetch:i="none",relative:l,reloadDocument:s,replace:c,state:f,target:d,to:h,preventScrollReset:g,viewTransition:v,...b},w){let{basename:E,unstable_useTransitions:A}=M.useContext(mr),T=typeof h=="string"&&N6.test(h),N,O=!1;if(typeof h=="string"&&T&&(N=h,k6))try{let de=new URL(window.location.href),ce=h.startsWith("//")?new URL(de.protocol+h):new URL(h),he=fa(ce.pathname,E);ce.origin===de.origin&&he!=null?h=he+ce.search+ce.hash:O=!0}catch{rr(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let R=kb(h,{relative:l}),[H,F,I]=ux(i,b),G=yx(h,{replace:c,state:f,target:d,preventScrollReset:g,relative:l,viewTransition:v,unstable_useTransitions:A});function V(de){t&&t(de),de.defaultPrevented||G(de)}let te=M.createElement("a",{...b,...I,href:N||R,onClick:O||s?t:V,ref:hx(w,F),target:d,"data-discover":!T&&r==="render"?"true":void 0});return H&&!T?M.createElement(M.Fragment,null,te,M.createElement(cx,{page:R})):te});Pl.displayName="Link";var px=M.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:i="",end:l=!1,style:s,to:c,viewTransition:f,children:d,...h},g){let v=Do(c,{relative:h.relative}),b=ci(),w=M.useContext(nc),{navigator:E,basename:A}=M.useContext(mr),T=w!=null&&Mx(v)&&f===!0,N=E.encodeLocation?E.encodeLocation(v).pathname:v.pathname,O=b.pathname,R=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;r||(O=O.toLowerCase(),R=R?R.toLowerCase():null,N=N.toLowerCase()),R&&A&&(R=fa(R,A)||R);const H=N!=="/"&&N.endsWith("/")?N.length-1:N.length;let F=O===N||!l&&O.startsWith(N)&&O.charAt(H)==="/",I=R!=null&&(R===N||!l&&R.startsWith(N)&&R.charAt(N.length)==="/"),G={isActive:F,isPending:I,isTransitioning:T},V=F?t:void 0,te;typeof i=="function"?te=i(G):te=[i,F?"active":null,I?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let de=typeof s=="function"?s(G):s;return M.createElement(Pl,{...h,"aria-current":V,className:te,ref:g,style:de,to:c,viewTransition:f},typeof d=="function"?d(G):d)});px.displayName="NavLink";var gx=M.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:i,replace:l,state:s,method:c=Eu,action:f,onSubmit:d,relative:h,preventScrollReset:g,viewTransition:v,...b},w)=>{let{unstable_useTransitions:E}=M.useContext(mr),A=Sx(),T=Ax(f,{relative:h}),N=c.toLowerCase()==="get"?"get":"post",O=typeof f=="string"&&N6.test(f),R=H=>{if(d&&d(H),H.defaultPrevented)return;H.preventDefault();let F=H.nativeEvent.submitter,I=(F==null?void 0:F.getAttribute("formmethod"))||c,G=()=>A(F||H.currentTarget,{fetcherKey:t,method:I,navigate:r,replace:l,state:s,relative:h,preventScrollReset:g,viewTransition:v});E&&r!==!1?M.startTransition(()=>G()):G()};return M.createElement("form",{ref:w,method:N,action:T,onSubmit:i?d:R,...b,"data-discover":!O&&e==="render"?"true":void 0})});gx.displayName="Form";function vx(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function z6(e){let t=M.useContext(Kl);return At(t,vx(e)),t}function yx(e,{target:t,replace:r,state:i,preventScrollReset:l,relative:s,viewTransition:c,unstable_useTransitions:f}={}){let d=A6(),h=ci(),g=Do(e,{relative:s});return M.useCallback(v=>{if(Kb(v,t)){v.preventDefault();let b=r!==void 0?r:mo(h)===mo(g),w=()=>d(e,{replace:b,state:i,preventScrollReset:l,relative:s,viewTransition:c});f?M.startTransition(()=>w()):w()}},[h,d,g,r,i,t,e,l,s,c,f])}function bx(e){rr(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=M.useRef(D1(e)),r=M.useRef(!1),i=ci(),l=M.useMemo(()=>Qb(i.search,r.current?null:t.current),[i.search]),s=A6(),c=M.useCallback((f,d)=>{const h=D1(typeof f=="function"?f(new URLSearchParams(l)):f);r.current=!0,s("?"+h,d)},[s,l]);return[l,c]}var xx=0,wx=()=>`__${String(++xx)}__`;function Sx(){let{router:e}=z6("useSubmit"),{basename:t}=M.useContext(mr),r=qb(),i=e.fetch,l=e.navigate;return M.useCallback(async(s,c={})=>{let{action:f,method:d,encType:h,formData:g,body:v}=Jb(s,t);if(c.navigate===!1){let b=c.fetcherKey||wx();await i(b,r,c.action||f,{preventScrollReset:c.preventScrollReset,formData:g,body:v,formMethod:c.method||d,formEncType:c.encType||h,flushSync:c.flushSync})}else await l(c.action||f,{preventScrollReset:c.preventScrollReset,formData:g,body:v,formMethod:c.method||d,formEncType:c.encType||h,replace:c.replace,state:c.state,fromRouteId:r,flushSync:c.flushSync,viewTransition:c.viewTransition})},[i,l,t,r])}function Ax(e,{relative:t}={}){let{basename:r}=M.useContext(mr),i=M.useContext(Or);At(i,"useFormAction must be used inside a RouteContext");let[l]=i.matches.slice(-1),s={...Do(e||".",{relative:t})},c=ci();if(e==null){s.search=c.search;let f=new URLSearchParams(s.search),d=f.getAll("index");if(d.some(g=>g==="")){f.delete("index"),d.filter(v=>v).forEach(v=>f.append("index",v));let g=f.toString();s.search=g?`?${g}`:""}}return(!e||e===".")&&l.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(s.pathname=s.pathname==="/"?r:sa([r,s.pathname])),mo(s)}function Mx(e,{relative:t}={}){let r=M.useContext(x6);At(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=z6("useViewTransitionState"),l=Do(e,{relative:t});if(!r.isTransitioning)return!1;let s=fa(r.currentLocation.pathname,i)||r.currentLocation.pathname,c=fa(r.nextLocation.pathname,i)||r.nextLocation.pathname;return Lu(l.pathname,c)!=null||Lu(l.pathname,s)!=null}var ac=h6();const Ex=d6(ac);var Tx=(e,t,r,i,l,s,c,f)=>{let d=document.documentElement,h=["light","dark"];function g(w){(Array.isArray(e)?e:[e]).forEach(E=>{let A=E==="class",T=A&&s?l.map(N=>s[N]||N):l;A?(d.classList.remove(...T),d.classList.add(s&&s[w]?s[w]:w)):d.setAttribute(E,w)}),v(w)}function v(w){f&&h.includes(w)&&(d.style.colorScheme=w)}function b(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(i)g(i);else try{let w=localStorage.getItem(t)||r,E=c&&w==="system"?b():w;g(E)}catch{}},x3=["light","dark"],D6="(prefers-color-scheme: dark)",Cx=typeof window>"u",ch=M.createContext(void 0),kx={setTheme:e=>{},themes:[]},O6=()=>{var e;return(e=M.useContext(ch))!=null?e:kx},Nx=e=>M.useContext(ch)?M.createElement(M.Fragment,null,e.children):M.createElement(Dx,{...e}),zx=["light","dark"],Dx=({forcedTheme:e,disableTransitionOnChange:t=!1,enableSystem:r=!0,enableColorScheme:i=!0,storageKey:l="theme",themes:s=zx,defaultTheme:c=r?"system":"light",attribute:f="data-theme",value:d,children:h,nonce:g,scriptProps:v})=>{let[b,w]=M.useState(()=>Rx(l,c)),[E,A]=M.useState(()=>b==="system"?Kd():b),T=d?Object.values(d):s,N=M.useCallback(F=>{let I=F;if(!I)return;F==="system"&&r&&(I=Kd());let G=d?d[I]:I,V=t?Lx(g):null,te=document.documentElement,de=ce=>{ce==="class"?(te.classList.remove(...T),G&&te.classList.add(G)):ce.startsWith("data-")&&(G?te.setAttribute(ce,G):te.removeAttribute(ce))};if(Array.isArray(f)?f.forEach(de):de(f),i){let ce=x3.includes(c)?c:null,he=x3.includes(I)?I:ce;te.style.colorScheme=he}V==null||V()},[g]),O=M.useCallback(F=>{let I=typeof F=="function"?F(b):F;w(I);try{localStorage.setItem(l,I)}catch{}},[b]),R=M.useCallback(F=>{let I=Kd(F);A(I),b==="system"&&r&&!e&&N("system")},[b,e]);M.useEffect(()=>{let F=window.matchMedia(D6);return F.addListener(R),R(F),()=>F.removeListener(R)},[R]),M.useEffect(()=>{let F=I=>{I.key===l&&(I.newValue?w(I.newValue):O(c))};return window.addEventListener("storage",F),()=>window.removeEventListener("storage",F)},[O]),M.useEffect(()=>{N(e??b)},[e,b]);let H=M.useMemo(()=>({theme:b,setTheme:O,forcedTheme:e,resolvedTheme:b==="system"?E:b,themes:r?[...s,"system"]:s,systemTheme:r?E:void 0}),[b,O,e,E,r,s]);return M.createElement(ch.Provider,{value:H},M.createElement(Ox,{forcedTheme:e,storageKey:l,attribute:f,enableSystem:r,enableColorScheme:i,defaultTheme:c,value:d,themes:s,nonce:g,scriptProps:v}),h)},Ox=M.memo(({forcedTheme:e,storageKey:t,attribute:r,enableSystem:i,enableColorScheme:l,defaultTheme:s,value:c,themes:f,nonce:d,scriptProps:h})=>{let g=JSON.stringify([r,t,s,e,f,c,i,l]).slice(1,-1);return M.createElement("script",{...h,suppressHydrationWarning:!0,nonce:typeof window>"u"?d:"",dangerouslySetInnerHTML:{__html:`(${Tx.toString()})(${g})`}})}),Rx=(e,t)=>{if(Cx)return;let r;try{r=localStorage.getItem(e)||void 0}catch{}return r||t},Lx=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},Kd=e=>(e||(e=window.matchMedia(D6)),e.matches?"dark":"light");function jx({children:e,...t}){return k.jsx(Nx,{...t,children:e})}async function Bx(e,t){const r=t==="."?[]:t.split("/").filter(Boolean);let i=null,l=e;for(let s=0;s<r.length;s++){const c=r[s];if(s===r.length-1){const h=l.children.find(g=>g.type==="file"&&g.name===c);if(h){i=h;break}}const d=l.children.find(h=>h.type==="directory"&&h.name===c);if(!d)throw new Error(`Path not found: ${t}`);l=d}return{directory:l,file:i}}function O1(e){return e.children.find(r=>r.type==="file"&&["README.md","Readme.md","readme.md","README.mdx","Readme.mdx","readme.mdx"].includes(r.name))||null}function R6(e){return e.children.find(r=>r.type==="file"&&["SLIDES.md","Slides.md","slides.md","SLIDES.mdx","Slides.mdx","slides.mdx"].includes(r.name))||null}function fh(e="."){const[t,r]=M.useState(null),[i,l]=M.useState(null),[s,c]=M.useState(!0),[f,d]=M.useState(null);return M.useEffect(()=>(c(!0),d(null),(async()=>{try{const h=await fetch("/raw/.veslx.json");if(!h.ok){h.status===404?d({type:"config_not_found",message:".veslx.json not found"}):d({type:"fetch_error",message:`Failed to fetch: ${h.status} ${h.statusText}`});return}let g;try{g=await h.json()}catch{d({type:"parse_error",message:"Failed to parse .veslx.json"});return}let v;try{v=await Bx(g,e)}catch{d({type:"path_not_found",message:`Path not found: ${e}`,status:404});return}v.directory.children.sort((b,w)=>{let E,A;if(b.children){const T=O1(b);T&&T.frontmatter&&T.frontmatter.date&&(E=new Date(T.frontmatter.date))}if(w.children){const T=O1(w);T&&T.frontmatter&&T.frontmatter.date&&(A=new Date(T.frontmatter.date))}return E&&A?A.getTime()-E.getTime():0}),r(v.directory),l(v.file)}catch(h){d({type:"fetch_error",message:h.message||"Unknown error"})}finally{c(!1)}})(),()=>{}),[e]),{directory:t,file:i,loading:s,error:f}}function L6(e){const[t,r]=M.useState(null),[i,l]=M.useState(null),[s,c]=M.useState(!0),[f,d]=M.useState(null);return M.useEffect(()=>{const h=new AbortController;return c(!0),d(null),(async()=>{try{const g=await fetch(`/raw/${e}`,{signal:h.signal});if(!g.ok)throw new Error(`Failed to fetch: ${g.status} ${g.statusText}`);const v=await g.blob();r(v);try{const b=await v.text();l(b)}catch{l(null)}}catch(g){if(g instanceof Error&&g.name==="AbortError")return;d(g instanceof Error?g.message:"Unknown error")}finally{c(!1)}})(),()=>h.abort()},[e]),{blob:t,content:i,loading:s,error:f}}function j6(){const[e,t]=M.useState(!1);return M.useEffect(()=>{let r;const i=async()=>{const s=await(await fetch("/raw/.running")).text();t(s==="")};return i(),r=setInterval(i,1e3),()=>{clearInterval(r)}},[]),e}function dh(){return k.jsx("main",{className:"min-h-screen flex items-center justify-center bg-background",children:k.jsxs("div",{className:"flex flex-col items-center gap-6 animate-fade-in",children:[k.jsxs("div",{className:"flex items-center gap-3",children:[k.jsx("div",{className:"w-1.5 h-1.5 bg-primary/60 rounded-full animate-pulse"}),k.jsx("div",{className:"w-1.5 h-1.5 bg-primary/40 rounded-full animate-pulse",style:{animationDelay:"150ms"}}),k.jsx("div",{className:"w-1.5 h-1.5 bg-primary/20 rounded-full animate-pulse",style:{animationDelay:"300ms"}})]}),k.jsx("p",{className:"font-mono text-xs text-muted-foreground/50 tracking-widest uppercase",children:"loading"})]})})}function B6(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t<l;t++)e[t]&&(r=B6(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function _6(){for(var e,t,r=0,i="",l=arguments.length;r<l;r++)(e=arguments[r])&&(t=B6(e))&&(i&&(i+=" "),i+=t);return i}const _x=(e,t)=>{const r=new Array(e.length+t.length);for(let i=0;i<e.length;i++)r[i]=e[i];for(let i=0;i<t.length;i++)r[e.length+i]=t[i];return r},Hx=(e,t)=>({classGroupId:e,validator:t}),H6=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),ju="-",w3=[],qx="arbitrary..",Ux=e=>{const t=Fx(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:c=>{if(c.startsWith("[")&&c.endsWith("]"))return Gx(c);const f=c.split(ju),d=f[0]===""&&f.length>1?1:0;return q6(f,d,t)},getConflictingClassGroupIds:(c,f)=>{if(f){const d=i[c],h=r[c];return d?h?_x(h,d):d:h||w3}return r[c]||w3}}},q6=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const l=e[t],s=r.nextPart.get(l);if(s){const h=q6(e,t+1,s);if(h)return h}const c=r.validators;if(c===null)return;const f=t===0?e.join(ju):e.slice(t).join(ju),d=c.length;for(let h=0;h<d;h++){const g=c[h];if(g.validator(f))return g.classGroupId}},Gx=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),i=t.slice(0,r);return i?qx+i:void 0})(),Fx=e=>{const{theme:t,classGroups:r}=e;return Yx(r,t)},Yx=(e,t)=>{const r=H6();for(const i in e){const l=e[i];hh(l,r,i,t)}return r},hh=(e,t,r,i)=>{const l=e.length;for(let s=0;s<l;s++){const c=e[s];Px(c,t,r,i)}},Px=(e,t,r,i)=>{if(typeof e=="string"){Vx(e,t,r);return}if(typeof e=="function"){Ix(e,t,r,i);return}Xx(e,t,r,i)},Vx=(e,t,r)=>{const i=e===""?t:U6(t,e);i.classGroupId=r},Ix=(e,t,r,i)=>{if($x(e)){hh(e(i),t,r,i);return}t.validators===null&&(t.validators=[]),t.validators.push(Hx(r,e))},Xx=(e,t,r,i)=>{const l=Object.entries(e),s=l.length;for(let c=0;c<s;c++){const[f,d]=l[c];hh(d,U6(t,f),r,i)}},U6=(e,t)=>{let r=e;const i=t.split(ju),l=i.length;for(let s=0;s<l;s++){const c=i[s];let f=r.nextPart.get(c);f||(f=H6(),r.nextPart.set(c,f)),r=f}return r},$x=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Kx=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),i=Object.create(null);const l=(s,c)=>{r[s]=c,t++,t>e&&(t=0,i=r,r=Object.create(null))};return{get(s){let c=r[s];if(c!==void 0)return c;if((c=i[s])!==void 0)return l(s,c),c},set(s,c){s in r?r[s]=c:l(s,c)}}},R1="!",S3=":",Qx=[],A3=(e,t,r,i,l)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:i,isExternal:l}),Zx=e=>{const{prefix:t,experimentalParseClassName:r}=e;let i=l=>{const s=[];let c=0,f=0,d=0,h;const g=l.length;for(let A=0;A<g;A++){const T=l[A];if(c===0&&f===0){if(T===S3){s.push(l.slice(d,A)),d=A+1;continue}if(T==="/"){h=A;continue}}T==="["?c++:T==="]"?c--:T==="("?f++:T===")"&&f--}const v=s.length===0?l:l.slice(d);let b=v,w=!1;v.endsWith(R1)?(b=v.slice(0,-1),w=!0):v.startsWith(R1)&&(b=v.slice(1),w=!0);const E=h&&h>d?h-d:void 0;return A3(s,w,b,E)};if(t){const l=t+S3,s=i;i=c=>c.startsWith(l)?s(c.slice(l.length)):A3(Qx,!1,c,void 0,!0)}if(r){const l=i;i=s=>r({className:s,parseClassName:l})}return i},Wx=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,i)=>{t.set(r,1e6+i)}),r=>{const i=[];let l=[];for(let s=0;s<r.length;s++){const c=r[s],f=c[0]==="[",d=t.has(c);f||d?(l.length>0&&(l.sort(),i.push(...l),l=[]),i.push(c)):l.push(c)}return l.length>0&&(l.sort(),i.push(...l)),i}},Jx=e=>({cache:Kx(e.cacheSize),parseClassName:Zx(e),sortModifiers:Wx(e),...Ux(e)}),ew=/\s+/,tw=(e,t)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:l,sortModifiers:s}=t,c=[],f=e.trim().split(ew);let d="";for(let h=f.length-1;h>=0;h-=1){const g=f[h],{isExternal:v,modifiers:b,hasImportantModifier:w,baseClassName:E,maybePostfixModifierPosition:A}=r(g);if(v){d=g+(d.length>0?" "+d:d);continue}let T=!!A,N=i(T?E.substring(0,A):E);if(!N){if(!T){d=g+(d.length>0?" "+d:d);continue}if(N=i(E),!N){d=g+(d.length>0?" "+d:d);continue}T=!1}const O=b.length===0?"":b.length===1?b[0]:s(b).join(":"),R=w?O+R1:O,H=R+N;if(c.indexOf(H)>-1)continue;c.push(H);const F=l(N,T);for(let I=0;I<F.length;++I){const G=F[I];c.push(R+G)}d=g+(d.length>0?" "+d:d)}return d},nw=(...e)=>{let t=0,r,i,l="";for(;t<e.length;)(r=e[t++])&&(i=G6(r))&&(l&&(l+=" "),l+=i);return l},G6=e=>{if(typeof e=="string")return e;let t,r="";for(let i=0;i<e.length;i++)e[i]&&(t=G6(e[i]))&&(r&&(r+=" "),r+=t);return r},rw=(e,...t)=>{let r,i,l,s;const c=d=>{const h=t.reduce((g,v)=>v(g),e());return r=Jx(h),i=r.cache.get,l=r.cache.set,s=f,f(d)},f=d=>{const h=i(d);if(h)return h;const g=tw(d,r);return l(d,g),g};return s=c,(...d)=>s(nw(...d))},aw=[],Ft=e=>{const t=r=>r[e]||aw;return t.isThemeGetter=!0,t},F6=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Y6=/^\((?:(\w[\w-]*):)?(.+)\)$/i,iw=/^\d+\/\d+$/,lw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,ow=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,sw=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,uw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,cw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ol=e=>iw.test(e),Fe=e=>!!e&&!Number.isNaN(Number(e)),Va=e=>!!e&&Number.isInteger(Number(e)),Qd=e=>e.endsWith("%")&&Fe(e.slice(0,-1)),ra=e=>lw.test(e),fw=()=>!0,dw=e=>ow.test(e)&&!sw.test(e),P6=()=>!1,hw=e=>uw.test(e),mw=e=>cw.test(e),pw=e=>!Me(e)&&!Ee(e),gw=e=>Ql(e,X6,P6),Me=e=>F6.test(e),Di=e=>Ql(e,$6,dw),Zd=e=>Ql(e,ww,Fe),M3=e=>Ql(e,V6,P6),vw=e=>Ql(e,I6,mw),lu=e=>Ql(e,K6,hw),Ee=e=>Y6.test(e),to=e=>Zl(e,$6),yw=e=>Zl(e,Sw),E3=e=>Zl(e,V6),bw=e=>Zl(e,X6),xw=e=>Zl(e,I6),ou=e=>Zl(e,K6,!0),Ql=(e,t,r)=>{const i=F6.exec(e);return i?i[1]?t(i[1]):r(i[2]):!1},Zl=(e,t,r=!1)=>{const i=Y6.exec(e);return i?i[1]?t(i[1]):r:!1},V6=e=>e==="position"||e==="percentage",I6=e=>e==="image"||e==="url",X6=e=>e==="length"||e==="size"||e==="bg-size",$6=e=>e==="length",ww=e=>e==="number",Sw=e=>e==="family-name",K6=e=>e==="shadow",Aw=()=>{const e=Ft("color"),t=Ft("font"),r=Ft("text"),i=Ft("font-weight"),l=Ft("tracking"),s=Ft("leading"),c=Ft("breakpoint"),f=Ft("container"),d=Ft("spacing"),h=Ft("radius"),g=Ft("shadow"),v=Ft("inset-shadow"),b=Ft("text-shadow"),w=Ft("drop-shadow"),E=Ft("blur"),A=Ft("perspective"),T=Ft("aspect"),N=Ft("ease"),O=Ft("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],F=()=>[...H(),Ee,Me],I=()=>["auto","hidden","clip","visible","scroll"],G=()=>["auto","contain","none"],V=()=>[Ee,Me,d],te=()=>[Ol,"full","auto",...V()],de=()=>[Va,"none","subgrid",Ee,Me],ce=()=>["auto",{span:["full",Va,Ee,Me]},Va,Ee,Me],he=()=>[Va,"auto",Ee,Me],De=()=>["auto","min","max","fr",Ee,Me],we=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Ce=()=>["start","end","center","stretch","center-safe","end-safe"],Y=()=>["auto",...V()],ne=()=>[Ol,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...V()],Q=()=>[e,Ee,Me],le=()=>[...H(),E3,M3,{position:[Ee,Me]}],be=()=>["no-repeat",{repeat:["","x","y","space","round"]}],B=()=>["auto","cover","contain",bw,gw,{size:[Ee,Me]}],W=()=>[Qd,to,Di],ie=()=>["","none","full",h,Ee,Me],se=()=>["",Fe,to,Di],Se=()=>["solid","dashed","dotted","double"],ke=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ge=()=>[Fe,Qd,E3,M3],_e=()=>["","none",E,Ee,Me],Oe=()=>["none",Fe,Ee,Me],Ze=()=>["none",Fe,Ee,Me],Ye=()=>[Fe,Ee,Me],ye=()=>[Ol,"full",...V()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ra],breakpoint:[ra],color:[fw],container:[ra],"drop-shadow":[ra],ease:["in","out","in-out"],font:[pw],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ra],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ra],shadow:[ra],spacing:["px",Fe],text:[ra],"text-shadow":[ra],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ol,Me,Ee,T]}],container:["container"],columns:[{columns:[Fe,Me,Ee,f]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:F()}],overflow:[{overflow:I()}],"overflow-x":[{"overflow-x":I()}],"overflow-y":[{"overflow-y":I()}],overscroll:[{overscroll:G()}],"overscroll-x":[{"overscroll-x":G()}],"overscroll-y":[{"overscroll-y":G()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:te()}],"inset-x":[{"inset-x":te()}],"inset-y":[{"inset-y":te()}],start:[{start:te()}],end:[{end:te()}],top:[{top:te()}],right:[{right:te()}],bottom:[{bottom:te()}],left:[{left:te()}],visibility:["visible","invisible","collapse"],z:[{z:[Va,"auto",Ee,Me]}],basis:[{basis:[Ol,"full","auto",f,...V()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Fe,Ol,"auto","initial","none",Me]}],grow:[{grow:["",Fe,Ee,Me]}],shrink:[{shrink:["",Fe,Ee,Me]}],order:[{order:[Va,"first","last","none",Ee,Me]}],"grid-cols":[{"grid-cols":de()}],"col-start-end":[{col:ce()}],"col-start":[{"col-start":he()}],"col-end":[{"col-end":he()}],"grid-rows":[{"grid-rows":de()}],"row-start-end":[{row:ce()}],"row-start":[{"row-start":he()}],"row-end":[{"row-end":he()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":De()}],"auto-rows":[{"auto-rows":De()}],gap:[{gap:V()}],"gap-x":[{"gap-x":V()}],"gap-y":[{"gap-y":V()}],"justify-content":[{justify:[...we(),"normal"]}],"justify-items":[{"justify-items":[...Ce(),"normal"]}],"justify-self":[{"justify-self":["auto",...Ce()]}],"align-content":[{content:["normal",...we()]}],"align-items":[{items:[...Ce(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Ce(),{baseline:["","last"]}]}],"place-content":[{"place-content":we()}],"place-items":[{"place-items":[...Ce(),"baseline"]}],"place-self":[{"place-self":["auto",...Ce()]}],p:[{p:V()}],px:[{px:V()}],py:[{py:V()}],ps:[{ps:V()}],pe:[{pe:V()}],pt:[{pt:V()}],pr:[{pr:V()}],pb:[{pb:V()}],pl:[{pl:V()}],m:[{m:Y()}],mx:[{mx:Y()}],my:[{my:Y()}],ms:[{ms:Y()}],me:[{me:Y()}],mt:[{mt:Y()}],mr:[{mr:Y()}],mb:[{mb:Y()}],ml:[{ml:Y()}],"space-x":[{"space-x":V()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":V()}],"space-y-reverse":["space-y-reverse"],size:[{size:ne()}],w:[{w:[f,"screen",...ne()]}],"min-w":[{"min-w":[f,"screen","none",...ne()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[c]},...ne()]}],h:[{h:["screen","lh",...ne()]}],"min-h":[{"min-h":["screen","lh","none",...ne()]}],"max-h":[{"max-h":["screen","lh",...ne()]}],"font-size":[{text:["base",r,to,Di]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,Ee,Zd]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Qd,Me]}],"font-family":[{font:[yw,Me,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[l,Ee,Me]}],"line-clamp":[{"line-clamp":[Fe,"none",Ee,Zd]}],leading:[{leading:[s,...V()]}],"list-image":[{"list-image":["none",Ee,Me]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ee,Me]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Q()}],"text-color":[{text:Q()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Se(),"wavy"]}],"text-decoration-thickness":[{decoration:[Fe,"from-font","auto",Ee,Di]}],"text-decoration-color":[{decoration:Q()}],"underline-offset":[{"underline-offset":[Fe,"auto",Ee,Me]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ee,Me]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Ee,Me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:le()}],"bg-repeat":[{bg:be()}],"bg-size":[{bg:B()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Va,Ee,Me],radial:["",Ee,Me],conic:[Va,Ee,Me]},xw,vw]}],"bg-color":[{bg:Q()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:Q()}],"gradient-via":[{via:Q()}],"gradient-to":[{to:Q()}],rounded:[{rounded:ie()}],"rounded-s":[{"rounded-s":ie()}],"rounded-e":[{"rounded-e":ie()}],"rounded-t":[{"rounded-t":ie()}],"rounded-r":[{"rounded-r":ie()}],"rounded-b":[{"rounded-b":ie()}],"rounded-l":[{"rounded-l":ie()}],"rounded-ss":[{"rounded-ss":ie()}],"rounded-se":[{"rounded-se":ie()}],"rounded-ee":[{"rounded-ee":ie()}],"rounded-es":[{"rounded-es":ie()}],"rounded-tl":[{"rounded-tl":ie()}],"rounded-tr":[{"rounded-tr":ie()}],"rounded-br":[{"rounded-br":ie()}],"rounded-bl":[{"rounded-bl":ie()}],"border-w":[{border:se()}],"border-w-x":[{"border-x":se()}],"border-w-y":[{"border-y":se()}],"border-w-s":[{"border-s":se()}],"border-w-e":[{"border-e":se()}],"border-w-t":[{"border-t":se()}],"border-w-r":[{"border-r":se()}],"border-w-b":[{"border-b":se()}],"border-w-l":[{"border-l":se()}],"divide-x":[{"divide-x":se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":se()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Se(),"hidden","none"]}],"divide-style":[{divide:[...Se(),"hidden","none"]}],"border-color":[{border:Q()}],"border-color-x":[{"border-x":Q()}],"border-color-y":[{"border-y":Q()}],"border-color-s":[{"border-s":Q()}],"border-color-e":[{"border-e":Q()}],"border-color-t":[{"border-t":Q()}],"border-color-r":[{"border-r":Q()}],"border-color-b":[{"border-b":Q()}],"border-color-l":[{"border-l":Q()}],"divide-color":[{divide:Q()}],"outline-style":[{outline:[...Se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Fe,Ee,Me]}],"outline-w":[{outline:["",Fe,to,Di]}],"outline-color":[{outline:Q()}],shadow:[{shadow:["","none",g,ou,lu]}],"shadow-color":[{shadow:Q()}],"inset-shadow":[{"inset-shadow":["none",v,ou,lu]}],"inset-shadow-color":[{"inset-shadow":Q()}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Q()}],"ring-offset-w":[{"ring-offset":[Fe,Di]}],"ring-offset-color":[{"ring-offset":Q()}],"inset-ring-w":[{"inset-ring":se()}],"inset-ring-color":[{"inset-ring":Q()}],"text-shadow":[{"text-shadow":["none",b,ou,lu]}],"text-shadow-color":[{"text-shadow":Q()}],opacity:[{opacity:[Fe,Ee,Me]}],"mix-blend":[{"mix-blend":[...ke(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ke()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Fe]}],"mask-image-linear-from-pos":[{"mask-linear-from":ge()}],"mask-image-linear-to-pos":[{"mask-linear-to":ge()}],"mask-image-linear-from-color":[{"mask-linear-from":Q()}],"mask-image-linear-to-color":[{"mask-linear-to":Q()}],"mask-image-t-from-pos":[{"mask-t-from":ge()}],"mask-image-t-to-pos":[{"mask-t-to":ge()}],"mask-image-t-from-color":[{"mask-t-from":Q()}],"mask-image-t-to-color":[{"mask-t-to":Q()}],"mask-image-r-from-pos":[{"mask-r-from":ge()}],"mask-image-r-to-pos":[{"mask-r-to":ge()}],"mask-image-r-from-color":[{"mask-r-from":Q()}],"mask-image-r-to-color":[{"mask-r-to":Q()}],"mask-image-b-from-pos":[{"mask-b-from":ge()}],"mask-image-b-to-pos":[{"mask-b-to":ge()}],"mask-image-b-from-color":[{"mask-b-from":Q()}],"mask-image-b-to-color":[{"mask-b-to":Q()}],"mask-image-l-from-pos":[{"mask-l-from":ge()}],"mask-image-l-to-pos":[{"mask-l-to":ge()}],"mask-image-l-from-color":[{"mask-l-from":Q()}],"mask-image-l-to-color":[{"mask-l-to":Q()}],"mask-image-x-from-pos":[{"mask-x-from":ge()}],"mask-image-x-to-pos":[{"mask-x-to":ge()}],"mask-image-x-from-color":[{"mask-x-from":Q()}],"mask-image-x-to-color":[{"mask-x-to":Q()}],"mask-image-y-from-pos":[{"mask-y-from":ge()}],"mask-image-y-to-pos":[{"mask-y-to":ge()}],"mask-image-y-from-color":[{"mask-y-from":Q()}],"mask-image-y-to-color":[{"mask-y-to":Q()}],"mask-image-radial":[{"mask-radial":[Ee,Me]}],"mask-image-radial-from-pos":[{"mask-radial-from":ge()}],"mask-image-radial-to-pos":[{"mask-radial-to":ge()}],"mask-image-radial-from-color":[{"mask-radial-from":Q()}],"mask-image-radial-to-color":[{"mask-radial-to":Q()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":H()}],"mask-image-conic-pos":[{"mask-conic":[Fe]}],"mask-image-conic-from-pos":[{"mask-conic-from":ge()}],"mask-image-conic-to-pos":[{"mask-conic-to":ge()}],"mask-image-conic-from-color":[{"mask-conic-from":Q()}],"mask-image-conic-to-color":[{"mask-conic-to":Q()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:le()}],"mask-repeat":[{mask:be()}],"mask-size":[{mask:B()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ee,Me]}],filter:[{filter:["","none",Ee,Me]}],blur:[{blur:_e()}],brightness:[{brightness:[Fe,Ee,Me]}],contrast:[{contrast:[Fe,Ee,Me]}],"drop-shadow":[{"drop-shadow":["","none",w,ou,lu]}],"drop-shadow-color":[{"drop-shadow":Q()}],grayscale:[{grayscale:["",Fe,Ee,Me]}],"hue-rotate":[{"hue-rotate":[Fe,Ee,Me]}],invert:[{invert:["",Fe,Ee,Me]}],saturate:[{saturate:[Fe,Ee,Me]}],sepia:[{sepia:["",Fe,Ee,Me]}],"backdrop-filter":[{"backdrop-filter":["","none",Ee,Me]}],"backdrop-blur":[{"backdrop-blur":_e()}],"backdrop-brightness":[{"backdrop-brightness":[Fe,Ee,Me]}],"backdrop-contrast":[{"backdrop-contrast":[Fe,Ee,Me]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Fe,Ee,Me]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Fe,Ee,Me]}],"backdrop-invert":[{"backdrop-invert":["",Fe,Ee,Me]}],"backdrop-opacity":[{"backdrop-opacity":[Fe,Ee,Me]}],"backdrop-saturate":[{"backdrop-saturate":[Fe,Ee,Me]}],"backdrop-sepia":[{"backdrop-sepia":["",Fe,Ee,Me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":V()}],"border-spacing-x":[{"border-spacing-x":V()}],"border-spacing-y":[{"border-spacing-y":V()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ee,Me]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Fe,"initial",Ee,Me]}],ease:[{ease:["linear","initial",N,Ee,Me]}],delay:[{delay:[Fe,Ee,Me]}],animate:[{animate:["none",O,Ee,Me]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[A,Ee,Me]}],"perspective-origin":[{"perspective-origin":F()}],rotate:[{rotate:Oe()}],"rotate-x":[{"rotate-x":Oe()}],"rotate-y":[{"rotate-y":Oe()}],"rotate-z":[{"rotate-z":Oe()}],scale:[{scale:Ze()}],"scale-x":[{"scale-x":Ze()}],"scale-y":[{"scale-y":Ze()}],"scale-z":[{"scale-z":Ze()}],"scale-3d":["scale-3d"],skew:[{skew:Ye()}],"skew-x":[{"skew-x":Ye()}],"skew-y":[{"skew-y":Ye()}],transform:[{transform:[Ee,Me,"","none","gpu","cpu"]}],"transform-origin":[{origin:F()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ye()}],"translate-x":[{"translate-x":ye()}],"translate-y":[{"translate-y":ye()}],"translate-z":[{"translate-z":ye()}],"translate-none":["translate-none"],accent:[{accent:Q()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Q()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Ee,Me]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Ee,Me]}],fill:[{fill:["none",...Q()]}],"stroke-w":[{stroke:[Fe,to,Di,Zd]}],stroke:[{stroke:["none",...Q()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Mw=rw(Aw);function ct(...e){return Mw(_6(e))}const Q6=6048e5,Ew=864e5,T3=Symbol.for("constructDateFrom");function ni(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&T3 in e?e[T3](t):e instanceof Date?new e.constructor(t):new Date(t)}function pr(e,t){return ni(t||e,e)}let Tw={};function ic(){return Tw}function po(e,t){var f,d,h,g;const r=ic(),i=(t==null?void 0:t.weekStartsOn)??((d=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:d.weekStartsOn)??r.weekStartsOn??((g=(h=r.locale)==null?void 0:h.options)==null?void 0:g.weekStartsOn)??0,l=pr(e,t==null?void 0:t.in),s=l.getDay(),c=(s<i?7:0)+s-i;return l.setDate(l.getDate()-c),l.setHours(0,0,0,0),l}function Bu(e,t){return po(e,{...t,weekStartsOn:1})}function Z6(e,t){const r=pr(e,t==null?void 0:t.in),i=r.getFullYear(),l=ni(r,0);l.setFullYear(i+1,0,4),l.setHours(0,0,0,0);const s=Bu(l),c=ni(r,0);c.setFullYear(i,0,4),c.setHours(0,0,0,0);const f=Bu(c);return r.getTime()>=s.getTime()?i+1:r.getTime()>=f.getTime()?i:i-1}function C3(e){const t=pr(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function Cw(e,...t){const r=ni.bind(null,t.find(i=>typeof i=="object"));return t.map(r)}function k3(e,t){const r=pr(e,t==null?void 0:t.in);return r.setHours(0,0,0,0),r}function kw(e,t,r){const[i,l]=Cw(r==null?void 0:r.in,e,t),s=k3(i),c=k3(l),f=+s-C3(s),d=+c-C3(c);return Math.round((f-d)/Ew)}function Nw(e,t){const r=Z6(e,t),i=ni(e,0);return i.setFullYear(r,0,4),i.setHours(0,0,0,0),Bu(i)}function zw(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Dw(e){return!(!zw(e)&&typeof e!="number"||isNaN(+pr(e)))}function Ow(e,t){const r=pr(e,t==null?void 0:t.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}const Rw={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Lw=(e,t,r)=>{let i;const l=Rw[e];return typeof l=="string"?i=l:t===1?i=l.one:i=l.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function Wd(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const jw={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Bw={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},_w={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Hw={date:Wd({formats:jw,defaultWidth:"full"}),time:Wd({formats:Bw,defaultWidth:"full"}),dateTime:Wd({formats:_w,defaultWidth:"full"})},qw={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Uw=(e,t,r,i)=>qw[e];function no(e){return(t,r)=>{const i=r!=null&&r.context?String(r.context):"standalone";let l;if(i==="formatting"&&e.formattingValues){const c=e.defaultFormattingWidth||e.defaultWidth,f=r!=null&&r.width?String(r.width):c;l=e.formattingValues[f]||e.formattingValues[c]}else{const c=e.defaultWidth,f=r!=null&&r.width?String(r.width):e.defaultWidth;l=e.values[f]||e.values[c]}const s=e.argumentCallback?e.argumentCallback(t):t;return l[s]}}const Gw={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Fw={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Yw={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Pw={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Vw={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Iw={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Xw=(e,t)=>{const r=Number(e),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},$w={ordinalNumber:Xw,era:no({values:Gw,defaultWidth:"wide"}),quarter:no({values:Fw,defaultWidth:"wide",argumentCallback:e=>e-1}),month:no({values:Yw,defaultWidth:"wide"}),day:no({values:Pw,defaultWidth:"wide"}),dayPeriod:no({values:Vw,defaultWidth:"wide",formattingValues:Iw,defaultFormattingWidth:"wide"})};function ro(e){return(t,r={})=>{const i=r.width,l=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],s=t.match(l);if(!s)return null;const c=s[0],f=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(f)?Qw(f,v=>v.test(c)):Kw(f,v=>v.test(c));let h;h=e.valueCallback?e.valueCallback(d):d,h=r.valueCallback?r.valueCallback(h):h;const g=t.slice(c.length);return{value:h,rest:g}}}function Kw(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function Qw(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function Zw(e){return(t,r={})=>{const i=t.match(e.matchPattern);if(!i)return null;const l=i[0],s=t.match(e.parsePattern);if(!s)return null;let c=e.valueCallback?e.valueCallback(s[0]):s[0];c=r.valueCallback?r.valueCallback(c):c;const f=t.slice(l.length);return{value:c,rest:f}}}const Ww=/^(\d+)(th|st|nd|rd)?/i,Jw=/\d+/i,eS={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},tS={any:[/^b/i,/^(a|c)/i]},nS={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},rS={any:[/1/i,/2/i,/3/i,/4/i]},aS={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},iS={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},lS={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},oS={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},sS={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},uS={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},cS={ordinalNumber:Zw({matchPattern:Ww,parsePattern:Jw,valueCallback:e=>parseInt(e,10)}),era:ro({matchPatterns:eS,defaultMatchWidth:"wide",parsePatterns:tS,defaultParseWidth:"any"}),quarter:ro({matchPatterns:nS,defaultMatchWidth:"wide",parsePatterns:rS,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ro({matchPatterns:aS,defaultMatchWidth:"wide",parsePatterns:iS,defaultParseWidth:"any"}),day:ro({matchPatterns:lS,defaultMatchWidth:"wide",parsePatterns:oS,defaultParseWidth:"any"}),dayPeriod:ro({matchPatterns:sS,defaultMatchWidth:"any",parsePatterns:uS,defaultParseWidth:"any"})},fS={code:"en-US",formatDistance:Lw,formatLong:Hw,formatRelative:Uw,localize:$w,match:cS,options:{weekStartsOn:0,firstWeekContainsDate:1}};function dS(e,t){const r=pr(e,t==null?void 0:t.in);return kw(r,Ow(r))+1}function hS(e,t){const r=pr(e,t==null?void 0:t.in),i=+Bu(r)-+Nw(r);return Math.round(i/Q6)+1}function W6(e,t){var g,v,b,w;const r=pr(e,t==null?void 0:t.in),i=r.getFullYear(),l=ic(),s=(t==null?void 0:t.firstWeekContainsDate)??((v=(g=t==null?void 0:t.locale)==null?void 0:g.options)==null?void 0:v.firstWeekContainsDate)??l.firstWeekContainsDate??((w=(b=l.locale)==null?void 0:b.options)==null?void 0:w.firstWeekContainsDate)??1,c=ni((t==null?void 0:t.in)||e,0);c.setFullYear(i+1,0,s),c.setHours(0,0,0,0);const f=po(c,t),d=ni((t==null?void 0:t.in)||e,0);d.setFullYear(i,0,s),d.setHours(0,0,0,0);const h=po(d,t);return+r>=+f?i+1:+r>=+h?i:i-1}function mS(e,t){var f,d,h,g;const r=ic(),i=(t==null?void 0:t.firstWeekContainsDate)??((d=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:d.firstWeekContainsDate)??r.firstWeekContainsDate??((g=(h=r.locale)==null?void 0:h.options)==null?void 0:g.firstWeekContainsDate)??1,l=W6(e,t),s=ni((t==null?void 0:t.in)||e,0);return s.setFullYear(l,0,i),s.setHours(0,0,0,0),po(s,t)}function pS(e,t){const r=pr(e,t==null?void 0:t.in),i=+po(r,t)-+mS(r,t);return Math.round(i/Q6)+1}function lt(e,t){const r=e<0?"-":"",i=Math.abs(e).toString().padStart(t,"0");return r+i}const Ia={y(e,t){const r=e.getFullYear(),i=r>0?r:1-r;return lt(t==="yy"?i%100:i,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):lt(r+1,2)},d(e,t){return lt(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return lt(e.getHours()%12||12,t.length)},H(e,t){return lt(e.getHours(),t.length)},m(e,t){return lt(e.getMinutes(),t.length)},s(e,t){return lt(e.getSeconds(),t.length)},S(e,t){const r=t.length,i=e.getMilliseconds(),l=Math.trunc(i*Math.pow(10,r-3));return lt(l,t.length)}},Rl={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},N3={G:function(e,t,r){const i=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const i=e.getFullYear(),l=i>0?i:1-i;return r.ordinalNumber(l,{unit:"year"})}return Ia.y(e,t)},Y:function(e,t,r,i){const l=W6(e,i),s=l>0?l:1-l;if(t==="YY"){const c=s%100;return lt(c,2)}return t==="Yo"?r.ordinalNumber(s,{unit:"year"}):lt(s,t.length)},R:function(e,t){const r=Z6(e);return lt(r,t.length)},u:function(e,t){const r=e.getFullYear();return lt(r,t.length)},Q:function(e,t,r){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return lt(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(e,t,r){const i=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return lt(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(e,t,r){const i=e.getMonth();switch(t){case"M":case"MM":return Ia.M(e,t);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(e,t,r){const i=e.getMonth();switch(t){case"L":return String(i+1);case"LL":return lt(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(e,t,r,i){const l=pS(e,i);return t==="wo"?r.ordinalNumber(l,{unit:"week"}):lt(l,t.length)},I:function(e,t,r){const i=hS(e);return t==="Io"?r.ordinalNumber(i,{unit:"week"}):lt(i,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):Ia.d(e,t)},D:function(e,t,r){const i=dS(e);return t==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):lt(i,t.length)},E:function(e,t,r){const i=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(e,t,r,i){const l=e.getDay(),s=(l-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return lt(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(l,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(l,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(l,{width:"short",context:"formatting"});case"eeee":default:return r.day(l,{width:"wide",context:"formatting"})}},c:function(e,t,r,i){const l=e.getDay(),s=(l-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return lt(s,t.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(l,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(l,{width:"narrow",context:"standalone"});case"cccccc":return r.day(l,{width:"short",context:"standalone"});case"cccc":default:return r.day(l,{width:"wide",context:"standalone"})}},i:function(e,t,r){const i=e.getDay(),l=i===0?7:i;switch(t){case"i":return String(l);case"ii":return lt(l,t.length);case"io":return r.ordinalNumber(l,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(e,t,r){const l=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(l,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(l,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(l,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(l,{width:"wide",context:"formatting"})}},b:function(e,t,r){const i=e.getHours();let l;switch(i===12?l=Rl.noon:i===0?l=Rl.midnight:l=i/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(l,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(l,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(l,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(l,{width:"wide",context:"formatting"})}},B:function(e,t,r){const i=e.getHours();let l;switch(i>=17?l=Rl.evening:i>=12?l=Rl.afternoon:i>=4?l=Rl.morning:l=Rl.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(l,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(l,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(l,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let i=e.getHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return Ia.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):Ia.H(e,t)},K:function(e,t,r){const i=e.getHours()%12;return t==="Ko"?r.ordinalNumber(i,{unit:"hour"}):lt(i,t.length)},k:function(e,t,r){let i=e.getHours();return i===0&&(i=24),t==="ko"?r.ordinalNumber(i,{unit:"hour"}):lt(i,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ia.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Ia.s(e,t)},S:function(e,t){return Ia.S(e,t)},X:function(e,t,r){const i=e.getTimezoneOffset();if(i===0)return"Z";switch(t){case"X":return D3(i);case"XXXX":case"XX":return Li(i);case"XXXXX":case"XXX":default:return Li(i,":")}},x:function(e,t,r){const i=e.getTimezoneOffset();switch(t){case"x":return D3(i);case"xxxx":case"xx":return Li(i);case"xxxxx":case"xxx":default:return Li(i,":")}},O:function(e,t,r){const i=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+z3(i,":");case"OOOO":default:return"GMT"+Li(i,":")}},z:function(e,t,r){const i=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+z3(i,":");case"zzzz":default:return"GMT"+Li(i,":")}},t:function(e,t,r){const i=Math.trunc(+e/1e3);return lt(i,t.length)},T:function(e,t,r){return lt(+e,t.length)}};function z3(e,t=""){const r=e>0?"-":"+",i=Math.abs(e),l=Math.trunc(i/60),s=i%60;return s===0?r+String(l):r+String(l)+t+lt(s,2)}function D3(e,t){return e%60===0?(e>0?"-":"+")+lt(Math.abs(e)/60,2):Li(e,t)}function Li(e,t=""){const r=e>0?"-":"+",i=Math.abs(e),l=lt(Math.trunc(i/60),2),s=lt(i%60,2);return r+l+t+s}const O3=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},J6=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},gS=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],i=r[1],l=r[2];if(!l)return O3(e,t);let s;switch(i){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",O3(i,t)).replace("{{time}}",J6(l,t))},vS={p:J6,P:gS},yS=/^D+$/,bS=/^Y+$/,xS=["D","DD","YY","YYYY"];function wS(e){return yS.test(e)}function SS(e){return bS.test(e)}function AS(e,t,r){const i=MS(e,t,r);if(console.warn(i),xS.includes(e))throw new RangeError(i)}function MS(e,t,r){const i=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${i} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const ES=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,TS=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,CS=/^'([^]*?)'?$/,kS=/''/g,NS=/[a-zA-Z]/;function zS(e,t,r){var g,v,b,w;const i=ic(),l=i.locale??fS,s=i.firstWeekContainsDate??((v=(g=i.locale)==null?void 0:g.options)==null?void 0:v.firstWeekContainsDate)??1,c=i.weekStartsOn??((w=(b=i.locale)==null?void 0:b.options)==null?void 0:w.weekStartsOn)??0,f=pr(e,r==null?void 0:r.in);if(!Dw(f))throw new RangeError("Invalid time value");let d=t.match(TS).map(E=>{const A=E[0];if(A==="p"||A==="P"){const T=vS[A];return T(E,l.formatLong)}return E}).join("").match(ES).map(E=>{if(E==="''")return{isToken:!1,value:"'"};const A=E[0];if(A==="'")return{isToken:!1,value:DS(E)};if(N3[A])return{isToken:!0,value:E};if(A.match(NS))throw new RangeError("Format string contains an unescaped latin alphabet character `"+A+"`");return{isToken:!1,value:E}});l.localize.preprocessor&&(d=l.localize.preprocessor(f,d));const h={firstWeekContainsDate:s,weekStartsOn:c,locale:l};return d.map(E=>{if(!E.isToken)return E.value;const A=E.value;(SS(A)||wS(A))&&AS(A,t,String(e));const T=N3[A[0]];return T(f,A,l.localize,h)}).join("")}function DS(e){const t=e.match(CS);return t?t[1].replace(kS,"'"):e}function eg(e){return zS(new Date(e),"dd MMM, yy")}/**
62
+ * @license lucide-react v0.554.0 - ISC
63
+ *
64
+ * This source code is licensed under the ISC license.
65
+ * See the LICENSE file in the root directory of this source tree.
66
+ */const OS=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),RS=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,r,i)=>i?i.toUpperCase():r.toLowerCase()),R3=e=>{const t=RS(e);return t.charAt(0).toUpperCase()+t.slice(1)},tg=(...e)=>e.filter((t,r,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===r).join(" ").trim(),LS=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
67
+ * @license lucide-react v0.554.0 - ISC
68
+ *
69
+ * This source code is licensed under the ISC license.
70
+ * See the LICENSE file in the root directory of this source tree.
71
+ */var jS={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
72
+ * @license lucide-react v0.554.0 - ISC
73
+ *
74
+ * This source code is licensed under the ISC license.
75
+ * See the LICENSE file in the root directory of this source tree.
76
+ */const BS=M.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:l="",children:s,iconNode:c,...f},d)=>M.createElement("svg",{ref:d,...jS,width:t,height:t,stroke:e,strokeWidth:i?Number(r)*24/Number(t):r,className:tg("lucide",l),...!s&&!LS(f)&&{"aria-hidden":"true"},...f},[...c.map(([h,g])=>M.createElement(h,g)),...Array.isArray(s)?s:[s]]));/**
77
+ * @license lucide-react v0.554.0 - ISC
78
+ *
79
+ * This source code is licensed under the ISC license.
80
+ * See the LICENSE file in the root directory of this source tree.
81
+ */const Nn=(e,t)=>{const r=M.forwardRef(({className:i,...l},s)=>M.createElement(BS,{ref:s,iconNode:t,className:tg(`lucide-${OS(R3(e))}`,`lucide-${e}`,i),...l}));return r.displayName=R3(e),r};/**
82
+ * @license lucide-react v0.554.0 - ISC
83
+ *
84
+ * This source code is licensed under the ISC license.
85
+ * See the LICENSE file in the root directory of this source tree.
86
+ */const _S=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],HS=Nn("arrow-left",_S);/**
87
+ * @license lucide-react v0.554.0 - ISC
88
+ *
89
+ * This source code is licensed under the ISC license.
90
+ * See the LICENSE file in the root directory of this source tree.
91
+ */const qS=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],ng=Nn("arrow-right",qS);/**
92
+ * @license lucide-react v0.554.0 - ISC
93
+ *
94
+ * This source code is licensed under the ISC license.
95
+ * See the LICENSE file in the root directory of this source tree.
96
+ */const US=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],GS=Nn("check",US);/**
97
+ * @license lucide-react v0.554.0 - ISC
98
+ *
99
+ * This source code is licensed under the ISC license.
100
+ * See the LICENSE file in the root directory of this source tree.
101
+ */const FS=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],YS=Nn("chevron-down",FS);/**
102
+ * @license lucide-react v0.554.0 - ISC
103
+ *
104
+ * This source code is licensed under the ISC license.
105
+ * See the LICENSE file in the root directory of this source tree.
106
+ */const PS=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],VS=Nn("chevron-left",PS);/**
107
+ * @license lucide-react v0.554.0 - ISC
108
+ *
109
+ * This source code is licensed under the ISC license.
110
+ * See the LICENSE file in the root directory of this source tree.
111
+ */const IS=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],rg=Nn("chevron-right",IS);/**
112
+ * @license lucide-react v0.554.0 - ISC
113
+ *
114
+ * This source code is licensed under the ISC license.
115
+ * See the LICENSE file in the root directory of this source tree.
116
+ */const XS=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],$S=Nn("chevron-up",XS);/**
117
+ * @license lucide-react v0.554.0 - ISC
118
+ *
119
+ * This source code is licensed under the ISC license.
120
+ * See the LICENSE file in the root directory of this source tree.
121
+ */const KS=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],QS=Nn("circle",KS);/**
122
+ * @license lucide-react v0.554.0 - ISC
123
+ *
124
+ * This source code is licensed under the ISC license.
125
+ * See the LICENSE file in the root directory of this source tree.
126
+ */const ZS=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],ag=Nn("image",ZS);/**
127
+ * @license lucide-react v0.554.0 - ISC
128
+ *
129
+ * This source code is licensed under the ISC license.
130
+ * See the LICENSE file in the root directory of this source tree.
131
+ */const WS=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],L3=Nn("monitor",WS);/**
132
+ * @license lucide-react v0.554.0 - ISC
133
+ *
134
+ * This source code is licensed under the ISC license.
135
+ * See the LICENSE file in the root directory of this source tree.
136
+ */const JS=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],j3=Nn("moon",JS);/**
137
+ * @license lucide-react v0.554.0 - ISC
138
+ *
139
+ * This source code is licensed under the ISC license.
140
+ * See the LICENSE file in the root directory of this source tree.
141
+ */const eA=[["path",{d:"M2 3h20",key:"91anmk"}],["path",{d:"M21 3v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V3",key:"2k9sn8"}],["path",{d:"m7 21 5-5 5 5",key:"bip4we"}]],tA=Nn("presentation",eA);/**
142
+ * @license lucide-react v0.554.0 - ISC
143
+ *
144
+ * This source code is licensed under the ISC license.
145
+ * See the LICENSE file in the root directory of this source tree.
146
+ */const nA=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],B3=Nn("sun",nA);/**
147
+ * @license lucide-react v0.554.0 - ISC
148
+ *
149
+ * This source code is licensed under the ISC license.
150
+ * See the LICENSE file in the root directory of this source tree.
151
+ */const rA=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],aA=Nn("x",rA);function iA({directory:e}){const t=e.children.filter(l=>l.type==="directory");if(t.length===0)return k.jsx("div",{className:"py-24 text-center",children:k.jsx("p",{className:"text-muted-foreground font-mono text-sm tracking-wide",children:"no entries"})});let r=t.map(l=>{const s=O1(l),c=R6(l);return{...l,readme:s,slides:c}});r=r.filter(l=>{var s,c;return((c=(s=l.readme)==null?void 0:s.frontmatter)==null?void 0:c.visibility)!=="hidden"}),r=r.sort((l,s)=>{var d,h,g,v,b,w;let c=(h=(d=l.readme)==null?void 0:d.frontmatter)!=null&&h.date?new Date(l.readme.frontmatter.date):null,f=(v=(g=s.readme)==null?void 0:g.frontmatter)!=null&&v.date?new Date(s.readme.frontmatter.date):null;return!c&&l.slides&&(c=(b=l.slides.frontmatter)!=null&&b.date?new Date(l.slides.frontmatter.date):null),!f&&s.slides&&(f=(w=s.slides.frontmatter)!=null&&w.date?new Date(s.slides.frontmatter.date):null),c&&f?f.getTime()-c.getTime():c?-1:f?1:l.name.localeCompare(s.name)});const i={};return r.forEach(l=>{var f,d,h;let s=(d=(f=l.readme)==null?void 0:f.frontmatter)!=null&&d.date?new Date(l.readme.frontmatter.date):null;!s&&l.slides&&(s=(h=l.slides.frontmatter)!=null&&h.date?new Date(l.slides.frontmatter.date):null);const c=s?`${s.getFullYear()}-${s.getMonth()+1}`:"unknown";i[c]||(i[c]=[]),i[c].push(l)}),k.jsx("div",{className:"space-y-8",children:Object.entries(i).sort(([l],[s])=>l==="unknown"?1:s==="unknown"?-1:s.localeCompare(l)).map(([l,s])=>{const[c,f]=l.split("-"),d=l==="unknown"?"Unknown Date":new Date(parseInt(c),parseInt(f)-1).toLocaleDateString("en-US",{year:"numeric",month:"long"});return k.jsxs("div",{children:[k.jsx("h2",{className:"text-xs font-mono uppercase tracking-wider text-muted-foreground mb-3",children:d}),k.jsx("div",{className:"space-y-1",children:s.map(h=>{var E;let g=(E=h.readme)==null?void 0:E.frontmatter;!h.readme&&h.slides&&(g=h.slides.frontmatter);const v=(g==null?void 0:g.title)||h.name,b=g==null?void 0:g.description,w=g!=null&&g.date?new Date(g.date):null;return k.jsx(Pl,{to:h.slides&&!h.readme?`/${h.slides.path}`:`/${h.readme.path}`,className:ct("group block py-3 px-3 -mx-3 rounded-md","transition-colors duration-150"),children:k.jsxs("article",{className:"flex items-start gap-4",children:[k.jsx("time",{dateTime:w==null?void 0:w.toISOString(),className:"font-mono text-xs text-muted-foreground tabular-nums w-20 flex-shrink-0 pt-0.5",children:w?eg(w):k.jsx("span",{className:"text-muted-foreground/30",children:"—"})}),k.jsxs("div",{className:"flex-1 min-w-0",children:[k.jsxs("h3",{className:ct("text-sm font-medium text-foreground","group-hover:underline","flex items-center gap-2"),children:[k.jsx("span",{children:v}),k.jsx(ng,{className:"h-3 w-3 opacity-0 -translate-x-1 group-hover:opacity-100 group-hover:translate-x-0 transition-all duration-200 text-primary"})]}),b&&k.jsx("p",{className:"text-sm text-muted-foreground line-clamp-1 mt-0.5",children:b})]})]})},h.path)})})]},l)})})}function lA({error:e,path:t}){const r="min-h-screen bg-background container mx-auto max-w-[var(--content-width)] py-24 px-[var(--page-padding)]";switch(e.type){case"config_not_found":return k.jsx("main",{className:r,children:k.jsxs("div",{className:"text-center space-y-4",children:[k.jsx("h1",{className:"text-2xl font-semibold tracking-tight",children:"Setup Required"}),k.jsxs("p",{className:"text-muted-foreground",children:["Could not find ",k.jsx("code",{className:"font-mono text-sm bg-muted px-2 py-1",children:".veslx.json"})]}),k.jsx("p",{className:"text-muted-foreground/70 text-sm",children:"Run the veslx build script to generate the directory index."})]})});case"path_not_found":return k.jsx("main",{className:r,children:k.jsxs("div",{className:"text-center space-y-4",children:[k.jsx("h1",{className:"font-mono text-6xl tracking-tighter text-muted-foreground/30",children:"404"}),k.jsx("p",{className:"text-lg text-foreground",children:"Page not found"}),k.jsx("p",{className:"text-muted-foreground text-sm",children:k.jsx("code",{className:"font-mono bg-muted px-2 py-1",children:t})})]})});case"parse_error":return k.jsx("main",{className:r,children:k.jsxs("div",{className:"text-center space-y-4",children:[k.jsx("h1",{className:"text-2xl font-semibold text-destructive",children:"Configuration Error"}),k.jsxs("p",{className:"text-muted-foreground",children:["Failed to parse ",k.jsx("code",{className:"font-mono text-sm bg-muted px-2 py-1",children:".veslx.json"})]})]})});case"fetch_error":default:return k.jsx("main",{className:r,children:k.jsxs("div",{className:"text-center space-y-4",children:[k.jsx("h1",{className:"text-2xl font-semibold text-destructive",children:"Error"}),k.jsx("p",{className:"text-muted-foreground",children:e.message})]})})}}function mh(){const e=j6();return k.jsx(k.Fragment,{children:e&&k.jsx("div",{className:"sticky top-0 z-50 px-[var(--page-padding)] py-2 bg-red-500 text-primary-foreground font-mono text-xs text-center tracking-wide",children:k.jsxs("span",{className:"inline-flex items-center gap-3",children:[k.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-current animate-pulse"}),k.jsx("span",{className:"uppercase tracking-widest",children:"simulation running"}),k.jsx("span",{className:"text-primary-foreground/60",children:"Page will auto-refresh on completion"})]})})})}function We(e,t,{checkForDefaultPrevented:r=!0}={}){return function(l){if(e==null||e(l),r===!1||!l.defaultPrevented)return t==null?void 0:t(l)}}function _3(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Gi(...e){return t=>{let r=!1;const i=e.map(l=>{const s=_3(l,t);return!r&&typeof s=="function"&&(r=!0),s});if(r)return()=>{for(let l=0;l<i.length;l++){const s=i[l];typeof s=="function"?s():_3(e[l],null)}}}}function kn(...e){return M.useCallback(Gi(...e),e)}function Oo(e,t=[]){let r=[];function i(s,c){const f=M.createContext(c),d=r.length;r=[...r,c];const h=v=>{var N;const{scope:b,children:w,...E}=v,A=((N=b==null?void 0:b[e])==null?void 0:N[d])||f,T=M.useMemo(()=>E,Object.values(E));return k.jsx(A.Provider,{value:T,children:w})};h.displayName=s+"Provider";function g(v,b){var A;const w=((A=b==null?void 0:b[e])==null?void 0:A[d])||f,E=M.useContext(w);if(E)return E;if(c!==void 0)return c;throw new Error(`\`${v}\` must be used within \`${s}\``)}return[h,g]}const l=()=>{const s=r.map(c=>M.createContext(c));return function(f){const d=(f==null?void 0:f[e])||s;return M.useMemo(()=>({[`__scope${e}`]:{...f,[e]:d}}),[f,d])}};return l.scopeName=e,[i,oA(l,...t)]}function oA(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const i=e.map(l=>({useScope:l(),scopeName:l.scopeName}));return function(s){const c=i.reduce((f,{useScope:d,scopeName:h})=>{const v=d(s)[`__scope${h}`];return{...f,...v}},{});return M.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return r.scopeName=t.scopeName,r}var ri=globalThis!=null&&globalThis.document?M.useLayoutEffect:()=>{},sA=rh[" useInsertionEffect ".trim().toString()]||ri;function ig({prop:e,defaultProp:t,onChange:r=()=>{},caller:i}){const[l,s,c]=uA({defaultProp:t,onChange:r}),f=e!==void 0,d=f?e:l;{const g=M.useRef(e!==void 0);M.useEffect(()=>{const v=g.current;v!==f&&console.warn(`${i} is changing from ${v?"controlled":"uncontrolled"} to ${f?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),g.current=f},[f,i])}const h=M.useCallback(g=>{var v;if(f){const b=cA(g)?g(e):g;b!==e&&((v=c.current)==null||v.call(c,b))}else s(g)},[f,e,s,c]);return[d,h]}function uA({defaultProp:e,onChange:t}){const[r,i]=M.useState(e),l=M.useRef(r),s=M.useRef(t);return sA(()=>{s.current=t},[t]),M.useEffect(()=>{var c;l.current!==r&&((c=s.current)==null||c.call(s,r),l.current=r)},[r,l]),[r,i,s]}function cA(e){return typeof e=="function"}function fA(e){const t=dA(e),r=M.forwardRef((i,l)=>{const{children:s,...c}=i,f=M.Children.toArray(s),d=f.find(mA);if(d){const h=d.props.children,g=f.map(v=>v===d?M.Children.count(h)>1?M.Children.only(null):M.isValidElement(h)?h.props.children:null:v);return k.jsx(t,{...c,ref:l,children:M.isValidElement(h)?M.cloneElement(h,void 0,g):null})}return k.jsx(t,{...c,ref:l,children:s})});return r.displayName=`${e}.Slot`,r}function dA(e){const t=M.forwardRef((r,i)=>{const{children:l,...s}=r;if(M.isValidElement(l)){const c=gA(l),f=pA(s,l.props);return l.type!==M.Fragment&&(f.ref=i?Gi(i,c):c),M.cloneElement(l,f)}return M.Children.count(l)>1?M.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var hA=Symbol("radix.slottable");function mA(e){return M.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===hA}function pA(e,t){const r={...t};for(const i in t){const l=e[i],s=t[i];/^on[A-Z]/.test(i)?l&&s?r[i]=(...f)=>{const d=s(...f);return l(...f),d}:l&&(r[i]=l):i==="style"?r[i]={...l,...s}:i==="className"&&(r[i]=[l,s].filter(Boolean).join(" "))}return{...e,...r}}function gA(e){var i,l;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(l=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:l.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var vA=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],hn=vA.reduce((e,t)=>{const r=fA(`Primitive.${t}`),i=M.forwardRef((l,s)=>{const{asChild:c,...f}=l,d=c?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),k.jsx(d,{...f,ref:s})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function lg(e,t){e&&ac.flushSync(()=>e.dispatchEvent(t))}function H3(e){const t=yA(e),r=M.forwardRef((i,l)=>{const{children:s,...c}=i,f=M.Children.toArray(s),d=f.find(xA);if(d){const h=d.props.children,g=f.map(v=>v===d?M.Children.count(h)>1?M.Children.only(null):M.isValidElement(h)?h.props.children:null:v);return k.jsx(t,{...c,ref:l,children:M.isValidElement(h)?M.cloneElement(h,void 0,g):null})}return k.jsx(t,{...c,ref:l,children:s})});return r.displayName=`${e}.Slot`,r}function yA(e){const t=M.forwardRef((r,i)=>{const{children:l,...s}=r;if(M.isValidElement(l)){const c=SA(l),f=wA(s,l.props);return l.type!==M.Fragment&&(f.ref=i?Gi(i,c):c),M.cloneElement(l,f)}return M.Children.count(l)>1?M.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var bA=Symbol("radix.slottable");function xA(e){return M.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===bA}function wA(e,t){const r={...t};for(const i in t){const l=e[i],s=t[i];/^on[A-Z]/.test(i)?l&&s?r[i]=(...f)=>{const d=s(...f);return l(...f),d}:l&&(r[i]=l):i==="style"?r[i]={...l,...s}:i==="className"&&(r[i]=[l,s].filter(Boolean).join(" "))}return{...e,...r}}function SA(e){var i,l;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(l=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:l.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function og(e){const t=e+"CollectionProvider",[r,i]=Oo(t),[l,s]=r(t,{collectionRef:{current:null},itemMap:new Map}),c=A=>{const{scope:T,children:N}=A,O=Ka.useRef(null),R=Ka.useRef(new Map).current;return k.jsx(l,{scope:T,itemMap:R,collectionRef:O,children:N})};c.displayName=t;const f=e+"CollectionSlot",d=H3(f),h=Ka.forwardRef((A,T)=>{const{scope:N,children:O}=A,R=s(f,N),H=kn(T,R.collectionRef);return k.jsx(d,{ref:H,children:O})});h.displayName=f;const g=e+"CollectionItemSlot",v="data-radix-collection-item",b=H3(g),w=Ka.forwardRef((A,T)=>{const{scope:N,children:O,...R}=A,H=Ka.useRef(null),F=kn(T,H),I=s(g,N);return Ka.useEffect(()=>(I.itemMap.set(H,{ref:H,...R}),()=>void I.itemMap.delete(H))),k.jsx(b,{[v]:"",ref:F,children:O})});w.displayName=g;function E(A){const T=s(e+"CollectionConsumer",A);return Ka.useCallback(()=>{const O=T.collectionRef.current;if(!O)return[];const R=Array.from(O.querySelectorAll(`[${v}]`));return Array.from(T.itemMap.values()).sort((I,G)=>R.indexOf(I.ref.current)-R.indexOf(G.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:c,Slot:h,ItemSlot:w},E,i]}var AA=M.createContext(void 0);function sg(e){const t=M.useContext(AA);return e||t||"ltr"}function da(e){const t=M.useRef(e);return M.useEffect(()=>{t.current=e}),M.useMemo(()=>(...r)=>{var i;return(i=t.current)==null?void 0:i.call(t,...r)},[])}function MA(e,t=globalThis==null?void 0:globalThis.document){const r=da(e);M.useEffect(()=>{const i=l=>{l.key==="Escape"&&r(l)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[r,t])}var EA="DismissableLayer",L1="dismissableLayer.update",TA="dismissableLayer.pointerDownOutside",CA="dismissableLayer.focusOutside",q3,ug=M.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),cg=M.forwardRef((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:l,onFocusOutside:s,onInteractOutside:c,onDismiss:f,...d}=e,h=M.useContext(ug),[g,v]=M.useState(null),b=(g==null?void 0:g.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,w]=M.useState({}),E=kn(t,G=>v(G)),A=Array.from(h.layers),[T]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),N=A.indexOf(T),O=g?A.indexOf(g):-1,R=h.layersWithOutsidePointerEventsDisabled.size>0,H=O>=N,F=zA(G=>{const V=G.target,te=[...h.branches].some(de=>de.contains(V));!H||te||(l==null||l(G),c==null||c(G),G.defaultPrevented||f==null||f())},b),I=DA(G=>{const V=G.target;[...h.branches].some(de=>de.contains(V))||(s==null||s(G),c==null||c(G),G.defaultPrevented||f==null||f())},b);return MA(G=>{O===h.layers.size-1&&(i==null||i(G),!G.defaultPrevented&&f&&(G.preventDefault(),f()))},b),M.useEffect(()=>{if(g)return r&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(q3=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(g)),h.layers.add(g),U3(),()=>{r&&h.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=q3)}},[g,b,r,h]),M.useEffect(()=>()=>{g&&(h.layers.delete(g),h.layersWithOutsidePointerEventsDisabled.delete(g),U3())},[g,h]),M.useEffect(()=>{const G=()=>w({});return document.addEventListener(L1,G),()=>document.removeEventListener(L1,G)},[]),k.jsx(hn.div,{...d,ref:E,style:{pointerEvents:R?H?"auto":"none":void 0,...e.style},onFocusCapture:We(e.onFocusCapture,I.onFocusCapture),onBlurCapture:We(e.onBlurCapture,I.onBlurCapture),onPointerDownCapture:We(e.onPointerDownCapture,F.onPointerDownCapture)})});cg.displayName=EA;var kA="DismissableLayerBranch",NA=M.forwardRef((e,t)=>{const r=M.useContext(ug),i=M.useRef(null),l=kn(t,i);return M.useEffect(()=>{const s=i.current;if(s)return r.branches.add(s),()=>{r.branches.delete(s)}},[r.branches]),k.jsx(hn.div,{...e,ref:l})});NA.displayName=kA;function zA(e,t=globalThis==null?void 0:globalThis.document){const r=da(e),i=M.useRef(!1),l=M.useRef(()=>{});return M.useEffect(()=>{const s=f=>{if(f.target&&!i.current){let d=function(){fg(TA,r,h,{discrete:!0})};const h={originalEvent:f};f.pointerType==="touch"?(t.removeEventListener("click",l.current),l.current=d,t.addEventListener("click",l.current,{once:!0})):d()}else t.removeEventListener("click",l.current);i.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",s),t.removeEventListener("click",l.current)}},[t,r]),{onPointerDownCapture:()=>i.current=!0}}function DA(e,t=globalThis==null?void 0:globalThis.document){const r=da(e),i=M.useRef(!1);return M.useEffect(()=>{const l=s=>{s.target&&!i.current&&fg(CA,r,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",l),()=>t.removeEventListener("focusin",l)},[t,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function U3(){const e=new CustomEvent(L1);document.dispatchEvent(e)}function fg(e,t,r,{discrete:i}){const l=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&l.addEventListener(e,t,{once:!0}),i?lg(l,s):l.dispatchEvent(s)}var Jd=0;function OA(){M.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??G3()),document.body.insertAdjacentElement("beforeend",e[1]??G3()),Jd++,()=>{Jd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Jd--}},[])}function G3(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var e1="focusScope.autoFocusOnMount",t1="focusScope.autoFocusOnUnmount",F3={bubbles:!1,cancelable:!0},RA="FocusScope",dg=M.forwardRef((e,t)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:l,onUnmountAutoFocus:s,...c}=e,[f,d]=M.useState(null),h=da(l),g=da(s),v=M.useRef(null),b=kn(t,A=>d(A)),w=M.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;M.useEffect(()=>{if(i){let A=function(R){if(w.paused||!f)return;const H=R.target;f.contains(H)?v.current=H:Qa(v.current,{select:!0})},T=function(R){if(w.paused||!f)return;const H=R.relatedTarget;H!==null&&(f.contains(H)||Qa(v.current,{select:!0}))},N=function(R){if(document.activeElement===document.body)for(const F of R)F.removedNodes.length>0&&Qa(f)};document.addEventListener("focusin",A),document.addEventListener("focusout",T);const O=new MutationObserver(N);return f&&O.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",A),document.removeEventListener("focusout",T),O.disconnect()}}},[i,f,w.paused]),M.useEffect(()=>{if(f){P3.add(w);const A=document.activeElement;if(!f.contains(A)){const N=new CustomEvent(e1,F3);f.addEventListener(e1,h),f.dispatchEvent(N),N.defaultPrevented||(LA(qA(hg(f)),{select:!0}),document.activeElement===A&&Qa(f))}return()=>{f.removeEventListener(e1,h),setTimeout(()=>{const N=new CustomEvent(t1,F3);f.addEventListener(t1,g),f.dispatchEvent(N),N.defaultPrevented||Qa(A??document.body,{select:!0}),f.removeEventListener(t1,g),P3.remove(w)},0)}}},[f,h,g,w]);const E=M.useCallback(A=>{if(!r&&!i||w.paused)return;const T=A.key==="Tab"&&!A.altKey&&!A.ctrlKey&&!A.metaKey,N=document.activeElement;if(T&&N){const O=A.currentTarget,[R,H]=jA(O);R&&H?!A.shiftKey&&N===H?(A.preventDefault(),r&&Qa(R,{select:!0})):A.shiftKey&&N===R&&(A.preventDefault(),r&&Qa(H,{select:!0})):N===O&&A.preventDefault()}},[r,i,w.paused]);return k.jsx(hn.div,{tabIndex:-1,...c,ref:b,onKeyDown:E})});dg.displayName=RA;function LA(e,{select:t=!1}={}){const r=document.activeElement;for(const i of e)if(Qa(i,{select:t}),document.activeElement!==r)return}function jA(e){const t=hg(e),r=Y3(t,e),i=Y3(t.reverse(),e);return[r,i]}function hg(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const l=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||l?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Y3(e,t){for(const r of e)if(!BA(r,{upTo:t}))return r}function BA(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function _A(e){return e instanceof HTMLInputElement&&"select"in e}function Qa(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&_A(e)&&t&&e.select()}}var P3=HA();function HA(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=V3(e,t),e.unshift(t)},remove(t){var r;e=V3(e,t),(r=e[0])==null||r.resume()}}}function V3(e,t){const r=[...e],i=r.indexOf(t);return i!==-1&&r.splice(i,1),r}function qA(e){return e.filter(t=>t.tagName!=="A")}var UA=rh[" useId ".trim().toString()]||(()=>{}),GA=0;function j1(e){const[t,r]=M.useState(UA());return ri(()=>{r(i=>i??String(GA++))},[e]),t?`radix-${t}`:""}const FA=["top","right","bottom","left"],ai=Math.min,Hn=Math.max,_u=Math.round,su=Math.floor,Nr=e=>({x:e,y:e}),YA={left:"right",right:"left",bottom:"top",top:"bottom"},PA={start:"end",end:"start"};function B1(e,t,r){return Hn(e,ai(t,r))}function ha(e,t){return typeof e=="function"?e(t):e}function ma(e){return e.split("-")[0]}function Wl(e){return e.split("-")[1]}function ph(e){return e==="x"?"y":"x"}function gh(e){return e==="y"?"height":"width"}const VA=new Set(["top","bottom"]);function Tr(e){return VA.has(ma(e))?"y":"x"}function vh(e){return ph(Tr(e))}function IA(e,t,r){r===void 0&&(r=!1);const i=Wl(e),l=vh(e),s=gh(l);let c=l==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(c=Hu(c)),[c,Hu(c)]}function XA(e){const t=Hu(e);return[_1(e),t,_1(t)]}function _1(e){return e.replace(/start|end/g,t=>PA[t])}const I3=["left","right"],X3=["right","left"],$A=["top","bottom"],KA=["bottom","top"];function QA(e,t,r){switch(e){case"top":case"bottom":return r?t?X3:I3:t?I3:X3;case"left":case"right":return t?$A:KA;default:return[]}}function ZA(e,t,r,i){const l=Wl(e);let s=QA(ma(e),r==="start",i);return l&&(s=s.map(c=>c+"-"+l),t&&(s=s.concat(s.map(_1)))),s}function Hu(e){return e.replace(/left|right|bottom|top/g,t=>YA[t])}function WA(e){return{top:0,right:0,bottom:0,left:0,...e}}function mg(e){return typeof e!="number"?WA(e):{top:e,right:e,bottom:e,left:e}}function qu(e){const{x:t,y:r,width:i,height:l}=e;return{width:i,height:l,top:r,left:t,right:t+i,bottom:r+l,x:t,y:r}}function $3(e,t,r){let{reference:i,floating:l}=e;const s=Tr(t),c=vh(t),f=gh(c),d=ma(t),h=s==="y",g=i.x+i.width/2-l.width/2,v=i.y+i.height/2-l.height/2,b=i[f]/2-l[f]/2;let w;switch(d){case"top":w={x:g,y:i.y-l.height};break;case"bottom":w={x:g,y:i.y+i.height};break;case"right":w={x:i.x+i.width,y:v};break;case"left":w={x:i.x-l.width,y:v};break;default:w={x:i.x,y:i.y}}switch(Wl(t)){case"start":w[c]-=b*(r&&h?-1:1);break;case"end":w[c]+=b*(r&&h?-1:1);break}return w}const JA=async(e,t,r)=>{const{placement:i="bottom",strategy:l="absolute",middleware:s=[],platform:c}=r,f=s.filter(Boolean),d=await(c.isRTL==null?void 0:c.isRTL(t));let h=await c.getElementRects({reference:e,floating:t,strategy:l}),{x:g,y:v}=$3(h,i,d),b=i,w={},E=0;for(let A=0;A<f.length;A++){const{name:T,fn:N}=f[A],{x:O,y:R,data:H,reset:F}=await N({x:g,y:v,initialPlacement:i,placement:b,strategy:l,middlewareData:w,rects:h,platform:c,elements:{reference:e,floating:t}});g=O??g,v=R??v,w={...w,[T]:{...w[T],...H}},F&&E<=50&&(E++,typeof F=="object"&&(F.placement&&(b=F.placement),F.rects&&(h=F.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:l}):F.rects),{x:g,y:v}=$3(h,b,d)),A=-1)}return{x:g,y:v,placement:b,strategy:l,middlewareData:w}};async function go(e,t){var r;t===void 0&&(t={});const{x:i,y:l,platform:s,rects:c,elements:f,strategy:d}=e,{boundary:h="clippingAncestors",rootBoundary:g="viewport",elementContext:v="floating",altBoundary:b=!1,padding:w=0}=ha(t,e),E=mg(w),T=f[b?v==="floating"?"reference":"floating":v],N=qu(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(T)))==null||r?T:T.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(f.floating)),boundary:h,rootBoundary:g,strategy:d})),O=v==="floating"?{x:i,y:l,width:c.floating.width,height:c.floating.height}:c.reference,R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f.floating)),H=await(s.isElement==null?void 0:s.isElement(R))?await(s.getScale==null?void 0:s.getScale(R))||{x:1,y:1}:{x:1,y:1},F=qu(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:O,offsetParent:R,strategy:d}):O);return{top:(N.top-F.top+E.top)/H.y,bottom:(F.bottom-N.bottom+E.bottom)/H.y,left:(N.left-F.left+E.left)/H.x,right:(F.right-N.right+E.right)/H.x}}const eM=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:i,placement:l,rects:s,platform:c,elements:f,middlewareData:d}=t,{element:h,padding:g=0}=ha(e,t)||{};if(h==null)return{};const v=mg(g),b={x:r,y:i},w=vh(l),E=gh(w),A=await c.getDimensions(h),T=w==="y",N=T?"top":"left",O=T?"bottom":"right",R=T?"clientHeight":"clientWidth",H=s.reference[E]+s.reference[w]-b[w]-s.floating[E],F=b[w]-s.reference[w],I=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h));let G=I?I[R]:0;(!G||!await(c.isElement==null?void 0:c.isElement(I)))&&(G=f.floating[R]||s.floating[E]);const V=H/2-F/2,te=G/2-A[E]/2-1,de=ai(v[N],te),ce=ai(v[O],te),he=de,De=G-A[E]-ce,we=G/2-A[E]/2+V,Ce=B1(he,we,De),Y=!d.arrow&&Wl(l)!=null&&we!==Ce&&s.reference[E]/2-(we<he?de:ce)-A[E]/2<0,ne=Y?we<he?we-he:we-De:0;return{[w]:b[w]+ne,data:{[w]:Ce,centerOffset:we-Ce-ne,...Y&&{alignmentOffset:ne}},reset:Y}}}),tM=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,i;const{placement:l,middlewareData:s,rects:c,initialPlacement:f,platform:d,elements:h}=t,{mainAxis:g=!0,crossAxis:v=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:A=!0,...T}=ha(e,t);if((r=s.arrow)!=null&&r.alignmentOffset)return{};const N=ma(l),O=Tr(f),R=ma(f)===f,H=await(d.isRTL==null?void 0:d.isRTL(h.floating)),F=b||(R||!A?[Hu(f)]:XA(f)),I=E!=="none";!b&&I&&F.push(...ZA(f,A,E,H));const G=[f,...F],V=await go(t,T),te=[];let de=((i=s.flip)==null?void 0:i.overflows)||[];if(g&&te.push(V[N]),v){const we=IA(l,c,H);te.push(V[we[0]],V[we[1]])}if(de=[...de,{placement:l,overflows:te}],!te.every(we=>we<=0)){var ce,he;const we=(((ce=s.flip)==null?void 0:ce.index)||0)+1,Ce=G[we];if(Ce&&(!(v==="alignment"?O!==Tr(Ce):!1)||de.every(Q=>Tr(Q.placement)===O?Q.overflows[0]>0:!0)))return{data:{index:we,overflows:de},reset:{placement:Ce}};let Y=(he=de.filter(ne=>ne.overflows[0]<=0).sort((ne,Q)=>ne.overflows[1]-Q.overflows[1])[0])==null?void 0:he.placement;if(!Y)switch(w){case"bestFit":{var De;const ne=(De=de.filter(Q=>{if(I){const le=Tr(Q.placement);return le===O||le==="y"}return!0}).map(Q=>[Q.placement,Q.overflows.filter(le=>le>0).reduce((le,be)=>le+be,0)]).sort((Q,le)=>Q[1]-le[1])[0])==null?void 0:De[0];ne&&(Y=ne);break}case"initialPlacement":Y=f;break}if(l!==Y)return{reset:{placement:Y}}}return{}}}};function K3(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Q3(e){return FA.some(t=>e[t]>=0)}const nM=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:i="referenceHidden",...l}=ha(e,t);switch(i){case"referenceHidden":{const s=await go(t,{...l,elementContext:"reference"}),c=K3(s,r.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:Q3(c)}}}case"escaped":{const s=await go(t,{...l,altBoundary:!0}),c=K3(s,r.floating);return{data:{escapedOffsets:c,escaped:Q3(c)}}}default:return{}}}}},pg=new Set(["left","top"]);async function rM(e,t){const{placement:r,platform:i,elements:l}=e,s=await(i.isRTL==null?void 0:i.isRTL(l.floating)),c=ma(r),f=Wl(r),d=Tr(r)==="y",h=pg.has(c)?-1:1,g=s&&d?-1:1,v=ha(t,e);let{mainAxis:b,crossAxis:w,alignmentAxis:E}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:v.mainAxis||0,crossAxis:v.crossAxis||0,alignmentAxis:v.alignmentAxis};return f&&typeof E=="number"&&(w=f==="end"?E*-1:E),d?{x:w*g,y:b*h}:{x:b*h,y:w*g}}const aM=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,i;const{x:l,y:s,placement:c,middlewareData:f}=t,d=await rM(t,e);return c===((r=f.offset)==null?void 0:r.placement)&&(i=f.arrow)!=null&&i.alignmentOffset?{}:{x:l+d.x,y:s+d.y,data:{...d,placement:c}}}}},iM=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:i,placement:l}=t,{mainAxis:s=!0,crossAxis:c=!1,limiter:f={fn:T=>{let{x:N,y:O}=T;return{x:N,y:O}}},...d}=ha(e,t),h={x:r,y:i},g=await go(t,d),v=Tr(ma(l)),b=ph(v);let w=h[b],E=h[v];if(s){const T=b==="y"?"top":"left",N=b==="y"?"bottom":"right",O=w+g[T],R=w-g[N];w=B1(O,w,R)}if(c){const T=v==="y"?"top":"left",N=v==="y"?"bottom":"right",O=E+g[T],R=E-g[N];E=B1(O,E,R)}const A=f.fn({...t,[b]:w,[v]:E});return{...A,data:{x:A.x-r,y:A.y-i,enabled:{[b]:s,[v]:c}}}}}},lM=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:i,placement:l,rects:s,middlewareData:c}=t,{offset:f=0,mainAxis:d=!0,crossAxis:h=!0}=ha(e,t),g={x:r,y:i},v=Tr(l),b=ph(v);let w=g[b],E=g[v];const A=ha(f,t),T=typeof A=="number"?{mainAxis:A,crossAxis:0}:{mainAxis:0,crossAxis:0,...A};if(d){const R=b==="y"?"height":"width",H=s.reference[b]-s.floating[R]+T.mainAxis,F=s.reference[b]+s.reference[R]-T.mainAxis;w<H?w=H:w>F&&(w=F)}if(h){var N,O;const R=b==="y"?"width":"height",H=pg.has(ma(l)),F=s.reference[v]-s.floating[R]+(H&&((N=c.offset)==null?void 0:N[v])||0)+(H?0:T.crossAxis),I=s.reference[v]+s.reference[R]+(H?0:((O=c.offset)==null?void 0:O[v])||0)-(H?T.crossAxis:0);E<F?E=F:E>I&&(E=I)}return{[b]:w,[v]:E}}}},oM=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r,i;const{placement:l,rects:s,platform:c,elements:f}=t,{apply:d=()=>{},...h}=ha(e,t),g=await go(t,h),v=ma(l),b=Wl(l),w=Tr(l)==="y",{width:E,height:A}=s.floating;let T,N;v==="top"||v==="bottom"?(T=v,N=b===(await(c.isRTL==null?void 0:c.isRTL(f.floating))?"start":"end")?"left":"right"):(N=v,T=b==="end"?"top":"bottom");const O=A-g.top-g.bottom,R=E-g.left-g.right,H=ai(A-g[T],O),F=ai(E-g[N],R),I=!t.middlewareData.shift;let G=H,V=F;if((r=t.middlewareData.shift)!=null&&r.enabled.x&&(V=R),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(G=O),I&&!b){const de=Hn(g.left,0),ce=Hn(g.right,0),he=Hn(g.top,0),De=Hn(g.bottom,0);w?V=E-2*(de!==0||ce!==0?de+ce:Hn(g.left,g.right)):G=A-2*(he!==0||De!==0?he+De:Hn(g.top,g.bottom))}await d({...t,availableWidth:V,availableHeight:G});const te=await c.getDimensions(f.floating);return E!==te.width||A!==te.height?{reset:{rects:!0}}:{}}}};function lc(){return typeof window<"u"}function Jl(e){return gg(e)?(e.nodeName||"").toLowerCase():"#document"}function Un(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Rr(e){var t;return(t=(gg(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function gg(e){return lc()?e instanceof Node||e instanceof Un(e).Node:!1}function dr(e){return lc()?e instanceof Element||e instanceof Un(e).Element:!1}function Dr(e){return lc()?e instanceof HTMLElement||e instanceof Un(e).HTMLElement:!1}function Z3(e){return!lc()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Un(e).ShadowRoot}const sM=new Set(["inline","contents"]);function Ro(e){const{overflow:t,overflowX:r,overflowY:i,display:l}=hr(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&!sM.has(l)}const uM=new Set(["table","td","th"]);function cM(e){return uM.has(Jl(e))}const fM=[":popover-open",":modal"];function oc(e){return fM.some(t=>{try{return e.matches(t)}catch{return!1}})}const dM=["transform","translate","scale","rotate","perspective"],hM=["transform","translate","scale","rotate","perspective","filter"],mM=["paint","layout","strict","content"];function yh(e){const t=bh(),r=dr(e)?hr(e):e;return dM.some(i=>r[i]?r[i]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||hM.some(i=>(r.willChange||"").includes(i))||mM.some(i=>(r.contain||"").includes(i))}function pM(e){let t=ii(e);for(;Dr(t)&&!Vl(t);){if(yh(t))return t;if(oc(t))return null;t=ii(t)}return null}function bh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const gM=new Set(["html","body","#document"]);function Vl(e){return gM.has(Jl(e))}function hr(e){return Un(e).getComputedStyle(e)}function sc(e){return dr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ii(e){if(Jl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Z3(e)&&e.host||Rr(e);return Z3(t)?t.host:t}function vg(e){const t=ii(e);return Vl(t)?e.ownerDocument?e.ownerDocument.body:e.body:Dr(t)&&Ro(t)?t:vg(t)}function vo(e,t,r){var i;t===void 0&&(t=[]),r===void 0&&(r=!0);const l=vg(e),s=l===((i=e.ownerDocument)==null?void 0:i.body),c=Un(l);if(s){const f=H1(c);return t.concat(c,c.visualViewport||[],Ro(l)?l:[],f&&r?vo(f):[])}return t.concat(l,vo(l,[],r))}function H1(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function yg(e){const t=hr(e);let r=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const l=Dr(e),s=l?e.offsetWidth:r,c=l?e.offsetHeight:i,f=_u(r)!==s||_u(i)!==c;return f&&(r=s,i=c),{width:r,height:i,$:f}}function xh(e){return dr(e)?e:e.contextElement}function Gl(e){const t=xh(e);if(!Dr(t))return Nr(1);const r=t.getBoundingClientRect(),{width:i,height:l,$:s}=yg(t);let c=(s?_u(r.width):r.width)/i,f=(s?_u(r.height):r.height)/l;return(!c||!Number.isFinite(c))&&(c=1),(!f||!Number.isFinite(f))&&(f=1),{x:c,y:f}}const vM=Nr(0);function bg(e){const t=Un(e);return!bh()||!t.visualViewport?vM:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function yM(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Un(e)?!1:t}function Hi(e,t,r,i){t===void 0&&(t=!1),r===void 0&&(r=!1);const l=e.getBoundingClientRect(),s=xh(e);let c=Nr(1);t&&(i?dr(i)&&(c=Gl(i)):c=Gl(e));const f=yM(s,r,i)?bg(s):Nr(0);let d=(l.left+f.x)/c.x,h=(l.top+f.y)/c.y,g=l.width/c.x,v=l.height/c.y;if(s){const b=Un(s),w=i&&dr(i)?Un(i):i;let E=b,A=H1(E);for(;A&&i&&w!==E;){const T=Gl(A),N=A.getBoundingClientRect(),O=hr(A),R=N.left+(A.clientLeft+parseFloat(O.paddingLeft))*T.x,H=N.top+(A.clientTop+parseFloat(O.paddingTop))*T.y;d*=T.x,h*=T.y,g*=T.x,v*=T.y,d+=R,h+=H,E=Un(A),A=H1(E)}}return qu({width:g,height:v,x:d,y:h})}function uc(e,t){const r=sc(e).scrollLeft;return t?t.left+r:Hi(Rr(e)).left+r}function xg(e,t){const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-uc(e,r),l=r.top+t.scrollTop;return{x:i,y:l}}function bM(e){let{elements:t,rect:r,offsetParent:i,strategy:l}=e;const s=l==="fixed",c=Rr(i),f=t?oc(t.floating):!1;if(i===c||f&&s)return r;let d={scrollLeft:0,scrollTop:0},h=Nr(1);const g=Nr(0),v=Dr(i);if((v||!v&&!s)&&((Jl(i)!=="body"||Ro(c))&&(d=sc(i)),Dr(i))){const w=Hi(i);h=Gl(i),g.x=w.x+i.clientLeft,g.y=w.y+i.clientTop}const b=c&&!v&&!s?xg(c,d):Nr(0);return{width:r.width*h.x,height:r.height*h.y,x:r.x*h.x-d.scrollLeft*h.x+g.x+b.x,y:r.y*h.y-d.scrollTop*h.y+g.y+b.y}}function xM(e){return Array.from(e.getClientRects())}function wM(e){const t=Rr(e),r=sc(e),i=e.ownerDocument.body,l=Hn(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),s=Hn(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let c=-r.scrollLeft+uc(e);const f=-r.scrollTop;return hr(i).direction==="rtl"&&(c+=Hn(t.clientWidth,i.clientWidth)-l),{width:l,height:s,x:c,y:f}}const W3=25;function SM(e,t){const r=Un(e),i=Rr(e),l=r.visualViewport;let s=i.clientWidth,c=i.clientHeight,f=0,d=0;if(l){s=l.width,c=l.height;const g=bh();(!g||g&&t==="fixed")&&(f=l.offsetLeft,d=l.offsetTop)}const h=uc(i);if(h<=0){const g=i.ownerDocument,v=g.body,b=getComputedStyle(v),w=g.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,E=Math.abs(i.clientWidth-v.clientWidth-w);E<=W3&&(s-=E)}else h<=W3&&(s+=h);return{width:s,height:c,x:f,y:d}}const AM=new Set(["absolute","fixed"]);function MM(e,t){const r=Hi(e,!0,t==="fixed"),i=r.top+e.clientTop,l=r.left+e.clientLeft,s=Dr(e)?Gl(e):Nr(1),c=e.clientWidth*s.x,f=e.clientHeight*s.y,d=l*s.x,h=i*s.y;return{width:c,height:f,x:d,y:h}}function J3(e,t,r){let i;if(t==="viewport")i=SM(e,r);else if(t==="document")i=wM(Rr(e));else if(dr(t))i=MM(t,r);else{const l=bg(e);i={x:t.x-l.x,y:t.y-l.y,width:t.width,height:t.height}}return qu(i)}function wg(e,t){const r=ii(e);return r===t||!dr(r)||Vl(r)?!1:hr(r).position==="fixed"||wg(r,t)}function EM(e,t){const r=t.get(e);if(r)return r;let i=vo(e,[],!1).filter(f=>dr(f)&&Jl(f)!=="body"),l=null;const s=hr(e).position==="fixed";let c=s?ii(e):e;for(;dr(c)&&!Vl(c);){const f=hr(c),d=yh(c);!d&&f.position==="fixed"&&(l=null),(s?!d&&!l:!d&&f.position==="static"&&!!l&&AM.has(l.position)||Ro(c)&&!d&&wg(e,c))?i=i.filter(g=>g!==c):l=f,c=ii(c)}return t.set(e,i),i}function TM(e){let{element:t,boundary:r,rootBoundary:i,strategy:l}=e;const c=[...r==="clippingAncestors"?oc(t)?[]:EM(t,this._c):[].concat(r),i],f=c[0],d=c.reduce((h,g)=>{const v=J3(t,g,l);return h.top=Hn(v.top,h.top),h.right=ai(v.right,h.right),h.bottom=ai(v.bottom,h.bottom),h.left=Hn(v.left,h.left),h},J3(t,f,l));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function CM(e){const{width:t,height:r}=yg(e);return{width:t,height:r}}function kM(e,t,r){const i=Dr(t),l=Rr(t),s=r==="fixed",c=Hi(e,!0,s,t);let f={scrollLeft:0,scrollTop:0};const d=Nr(0);function h(){d.x=uc(l)}if(i||!i&&!s)if((Jl(t)!=="body"||Ro(l))&&(f=sc(t)),i){const w=Hi(t,!0,s,t);d.x=w.x+t.clientLeft,d.y=w.y+t.clientTop}else l&&h();s&&!i&&l&&h();const g=l&&!i&&!s?xg(l,f):Nr(0),v=c.left+f.scrollLeft-d.x-g.x,b=c.top+f.scrollTop-d.y-g.y;return{x:v,y:b,width:c.width,height:c.height}}function n1(e){return hr(e).position==="static"}function e5(e,t){if(!Dr(e)||hr(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Rr(e)===r&&(r=r.ownerDocument.body),r}function Sg(e,t){const r=Un(e);if(oc(e))return r;if(!Dr(e)){let l=ii(e);for(;l&&!Vl(l);){if(dr(l)&&!n1(l))return l;l=ii(l)}return r}let i=e5(e,t);for(;i&&cM(i)&&n1(i);)i=e5(i,t);return i&&Vl(i)&&n1(i)&&!yh(i)?r:i||pM(e)||r}const NM=async function(e){const t=this.getOffsetParent||Sg,r=this.getDimensions,i=await r(e.floating);return{reference:kM(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function zM(e){return hr(e).direction==="rtl"}const DM={convertOffsetParentRelativeRectToViewportRelativeRect:bM,getDocumentElement:Rr,getClippingRect:TM,getOffsetParent:Sg,getElementRects:NM,getClientRects:xM,getDimensions:CM,getScale:Gl,isElement:dr,isRTL:zM};function Ag(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function OM(e,t){let r=null,i;const l=Rr(e);function s(){var f;clearTimeout(i),(f=r)==null||f.disconnect(),r=null}function c(f,d){f===void 0&&(f=!1),d===void 0&&(d=1),s();const h=e.getBoundingClientRect(),{left:g,top:v,width:b,height:w}=h;if(f||t(),!b||!w)return;const E=su(v),A=su(l.clientWidth-(g+b)),T=su(l.clientHeight-(v+w)),N=su(g),R={rootMargin:-E+"px "+-A+"px "+-T+"px "+-N+"px",threshold:Hn(0,ai(1,d))||1};let H=!0;function F(I){const G=I[0].intersectionRatio;if(G!==d){if(!H)return c();G?c(!1,G):i=setTimeout(()=>{c(!1,1e-7)},1e3)}G===1&&!Ag(h,e.getBoundingClientRect())&&c(),H=!1}try{r=new IntersectionObserver(F,{...R,root:l.ownerDocument})}catch{r=new IntersectionObserver(F,R)}r.observe(e)}return c(!0),s}function RM(e,t,r,i){i===void 0&&(i={});const{ancestorScroll:l=!0,ancestorResize:s=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:d=!1}=i,h=xh(e),g=l||s?[...h?vo(h):[],...vo(t)]:[];g.forEach(N=>{l&&N.addEventListener("scroll",r,{passive:!0}),s&&N.addEventListener("resize",r)});const v=h&&f?OM(h,r):null;let b=-1,w=null;c&&(w=new ResizeObserver(N=>{let[O]=N;O&&O.target===h&&w&&(w.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var R;(R=w)==null||R.observe(t)})),r()}),h&&!d&&w.observe(h),w.observe(t));let E,A=d?Hi(e):null;d&&T();function T(){const N=Hi(e);A&&!Ag(A,N)&&r(),A=N,E=requestAnimationFrame(T)}return r(),()=>{var N;g.forEach(O=>{l&&O.removeEventListener("scroll",r),s&&O.removeEventListener("resize",r)}),v==null||v(),(N=w)==null||N.disconnect(),w=null,d&&cancelAnimationFrame(E)}}const LM=aM,jM=iM,BM=tM,_M=oM,HM=nM,t5=eM,qM=lM,UM=(e,t,r)=>{const i=new Map,l={platform:DM,...r},s={...l.platform,_c:i};return JA(e,t,{...l,platform:s})};var GM=typeof document<"u",FM=function(){},Cu=GM?M.useLayoutEffect:FM;function Uu(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,i,l;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(i=r;i--!==0;)if(!Uu(e[i],t[i]))return!1;return!0}if(l=Object.keys(e),r=l.length,r!==Object.keys(t).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(t,l[i]))return!1;for(i=r;i--!==0;){const s=l[i];if(!(s==="_owner"&&e.$$typeof)&&!Uu(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Mg(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function n5(e,t){const r=Mg(e);return Math.round(t*r)/r}function r1(e){const t=M.useRef(e);return Cu(()=>{t.current=e}),t}function YM(e){e===void 0&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:i=[],platform:l,elements:{reference:s,floating:c}={},transform:f=!0,whileElementsMounted:d,open:h}=e,[g,v]=M.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[b,w]=M.useState(i);Uu(b,i)||w(i);const[E,A]=M.useState(null),[T,N]=M.useState(null),O=M.useCallback(Q=>{Q!==I.current&&(I.current=Q,A(Q))},[]),R=M.useCallback(Q=>{Q!==G.current&&(G.current=Q,N(Q))},[]),H=s||E,F=c||T,I=M.useRef(null),G=M.useRef(null),V=M.useRef(g),te=d!=null,de=r1(d),ce=r1(l),he=r1(h),De=M.useCallback(()=>{if(!I.current||!G.current)return;const Q={placement:t,strategy:r,middleware:b};ce.current&&(Q.platform=ce.current),UM(I.current,G.current,Q).then(le=>{const be={...le,isPositioned:he.current!==!1};we.current&&!Uu(V.current,be)&&(V.current=be,ac.flushSync(()=>{v(be)}))})},[b,t,r,ce,he]);Cu(()=>{h===!1&&V.current.isPositioned&&(V.current.isPositioned=!1,v(Q=>({...Q,isPositioned:!1})))},[h]);const we=M.useRef(!1);Cu(()=>(we.current=!0,()=>{we.current=!1}),[]),Cu(()=>{if(H&&(I.current=H),F&&(G.current=F),H&&F){if(de.current)return de.current(H,F,De);De()}},[H,F,De,de,te]);const Ce=M.useMemo(()=>({reference:I,floating:G,setReference:O,setFloating:R}),[O,R]),Y=M.useMemo(()=>({reference:H,floating:F}),[H,F]),ne=M.useMemo(()=>{const Q={position:r,left:0,top:0};if(!Y.floating)return Q;const le=n5(Y.floating,g.x),be=n5(Y.floating,g.y);return f?{...Q,transform:"translate("+le+"px, "+be+"px)",...Mg(Y.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:le,top:be}},[r,f,Y.floating,g.x,g.y]);return M.useMemo(()=>({...g,update:De,refs:Ce,elements:Y,floatingStyles:ne}),[g,De,Ce,Y,ne])}const PM=e=>{function t(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:i,padding:l}=typeof e=="function"?e(r):e;return i&&t(i)?i.current!=null?t5({element:i.current,padding:l}).fn(r):{}:i?t5({element:i,padding:l}).fn(r):{}}}},VM=(e,t)=>({...LM(e),options:[e,t]}),IM=(e,t)=>({...jM(e),options:[e,t]}),XM=(e,t)=>({...qM(e),options:[e,t]}),$M=(e,t)=>({...BM(e),options:[e,t]}),KM=(e,t)=>({..._M(e),options:[e,t]}),QM=(e,t)=>({...HM(e),options:[e,t]}),ZM=(e,t)=>({...PM(e),options:[e,t]});var WM="Arrow",Eg=M.forwardRef((e,t)=>{const{children:r,width:i=10,height:l=5,...s}=e;return k.jsx(hn.svg,{...s,ref:t,width:i,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:k.jsx("polygon",{points:"0,0 30,0 15,10"})})});Eg.displayName=WM;var JM=Eg;function eE(e){const[t,r]=M.useState(void 0);return ri(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const s=l[0];let c,f;if("borderBoxSize"in s){const d=s.borderBoxSize,h=Array.isArray(d)?d[0]:d;c=h.inlineSize,f=h.blockSize}else c=e.offsetWidth,f=e.offsetHeight;r({width:c,height:f})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else r(void 0)},[e]),t}var wh="Popper",[Tg,Cg]=Oo(wh),[tE,kg]=Tg(wh),Ng=e=>{const{__scopePopper:t,children:r}=e,[i,l]=M.useState(null);return k.jsx(tE,{scope:t,anchor:i,onAnchorChange:l,children:r})};Ng.displayName=wh;var zg="PopperAnchor",Dg=M.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:i,...l}=e,s=kg(zg,r),c=M.useRef(null),f=kn(t,c),d=M.useRef(null);return M.useEffect(()=>{const h=d.current;d.current=(i==null?void 0:i.current)||c.current,h!==d.current&&s.onAnchorChange(d.current)}),i?null:k.jsx(hn.div,{...l,ref:f})});Dg.displayName=zg;var Sh="PopperContent",[nE,rE]=Tg(Sh),Og=M.forwardRef((e,t)=>{var ge,_e,Oe,Ze,Ye,ye;const{__scopePopper:r,side:i="bottom",sideOffset:l=0,align:s="center",alignOffset:c=0,arrowPadding:f=0,avoidCollisions:d=!0,collisionBoundary:h=[],collisionPadding:g=0,sticky:v="partial",hideWhenDetached:b=!1,updatePositionStrategy:w="optimized",onPlaced:E,...A}=e,T=kg(Sh,r),[N,O]=M.useState(null),R=kn(t,Pe=>O(Pe)),[H,F]=M.useState(null),I=eE(H),G=(I==null?void 0:I.width)??0,V=(I==null?void 0:I.height)??0,te=i+(s!=="center"?"-"+s:""),de=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},ce=Array.isArray(h)?h:[h],he=ce.length>0,De={padding:de,boundary:ce.filter(iE),altBoundary:he},{refs:we,floatingStyles:Ce,placement:Y,isPositioned:ne,middlewareData:Q}=YM({strategy:"fixed",placement:te,whileElementsMounted:(...Pe)=>RM(...Pe,{animationFrame:w==="always"}),elements:{reference:T.anchor},middleware:[VM({mainAxis:l+V,alignmentAxis:c}),d&&IM({mainAxis:!0,crossAxis:!1,limiter:v==="partial"?XM():void 0,...De}),d&&$M({...De}),KM({...De,apply:({elements:Pe,rects:Ke,availableWidth:vt,availableHeight:qt})=>{const{width:$t,height:Kt}=Ke.reference,Mt=Pe.floating.style;Mt.setProperty("--radix-popper-available-width",`${vt}px`),Mt.setProperty("--radix-popper-available-height",`${qt}px`),Mt.setProperty("--radix-popper-anchor-width",`${$t}px`),Mt.setProperty("--radix-popper-anchor-height",`${Kt}px`)}}),H&&ZM({element:H,padding:f}),lE({arrowWidth:G,arrowHeight:V}),b&&QM({strategy:"referenceHidden",...De})]}),[le,be]=jg(Y),B=da(E);ri(()=>{ne&&(B==null||B())},[ne,B]);const W=(ge=Q.arrow)==null?void 0:ge.x,ie=(_e=Q.arrow)==null?void 0:_e.y,se=((Oe=Q.arrow)==null?void 0:Oe.centerOffset)!==0,[Se,ke]=M.useState();return ri(()=>{N&&ke(window.getComputedStyle(N).zIndex)},[N]),k.jsx("div",{ref:we.setFloating,"data-radix-popper-content-wrapper":"",style:{...Ce,transform:ne?Ce.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Se,"--radix-popper-transform-origin":[(Ze=Q.transformOrigin)==null?void 0:Ze.x,(Ye=Q.transformOrigin)==null?void 0:Ye.y].join(" "),...((ye=Q.hide)==null?void 0:ye.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:k.jsx(nE,{scope:r,placedSide:le,onArrowChange:F,arrowX:W,arrowY:ie,shouldHideArrow:se,children:k.jsx(hn.div,{"data-side":le,"data-align":be,...A,ref:R,style:{...A.style,animation:ne?void 0:"none"}})})})});Og.displayName=Sh;var Rg="PopperArrow",aE={top:"bottom",right:"left",bottom:"top",left:"right"},Lg=M.forwardRef(function(t,r){const{__scopePopper:i,...l}=t,s=rE(Rg,i),c=aE[s.placedSide];return k.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:k.jsx(JM,{...l,ref:r,style:{...l.style,display:"block"}})})});Lg.displayName=Rg;function iE(e){return e!==null}var lE=e=>({name:"transformOrigin",options:e,fn(t){var T,N,O;const{placement:r,rects:i,middlewareData:l}=t,c=((T=l.arrow)==null?void 0:T.centerOffset)!==0,f=c?0:e.arrowWidth,d=c?0:e.arrowHeight,[h,g]=jg(r),v={start:"0%",center:"50%",end:"100%"}[g],b=(((N=l.arrow)==null?void 0:N.x)??0)+f/2,w=(((O=l.arrow)==null?void 0:O.y)??0)+d/2;let E="",A="";return h==="bottom"?(E=c?v:`${b}px`,A=`${-d}px`):h==="top"?(E=c?v:`${b}px`,A=`${i.floating.height+d}px`):h==="right"?(E=`${-d}px`,A=c?v:`${w}px`):h==="left"&&(E=`${i.floating.width+d}px`,A=c?v:`${w}px`),{data:{x:E,y:A}}}});function jg(e){const[t,r="center"]=e.split("-");return[t,r]}var oE=Ng,sE=Dg,uE=Og,cE=Lg,fE="Portal",Bg=M.forwardRef((e,t)=>{var f;const{container:r,...i}=e,[l,s]=M.useState(!1);ri(()=>s(!0),[]);const c=r||l&&((f=globalThis==null?void 0:globalThis.document)==null?void 0:f.body);return c?Ex.createPortal(k.jsx(hn.div,{...i,ref:t}),c):null});Bg.displayName=fE;function dE(e,t){return M.useReducer((r,i)=>t[r][i]??r,e)}var Lo=e=>{const{present:t,children:r}=e,i=hE(t),l=typeof r=="function"?r({present:i.isPresent}):M.Children.only(r),s=kn(i.ref,mE(l));return typeof r=="function"||i.isPresent?M.cloneElement(l,{ref:s}):null};Lo.displayName="Presence";function hE(e){const[t,r]=M.useState(),i=M.useRef(null),l=M.useRef(e),s=M.useRef("none"),c=e?"mounted":"unmounted",[f,d]=dE(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return M.useEffect(()=>{const h=uu(i.current);s.current=f==="mounted"?h:"none"},[f]),ri(()=>{const h=i.current,g=l.current;if(g!==e){const b=s.current,w=uu(h);e?d("MOUNT"):w==="none"||(h==null?void 0:h.display)==="none"?d("UNMOUNT"):d(g&&b!==w?"ANIMATION_OUT":"UNMOUNT"),l.current=e}},[e,d]),ri(()=>{if(t){let h;const g=t.ownerDocument.defaultView??window,v=w=>{const A=uu(i.current).includes(CSS.escape(w.animationName));if(w.target===t&&A&&(d("ANIMATION_END"),!l.current)){const T=t.style.animationFillMode;t.style.animationFillMode="forwards",h=g.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=T)})}},b=w=>{w.target===t&&(s.current=uu(i.current))};return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",v),t.addEventListener("animationend",v),()=>{g.clearTimeout(h),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",v),t.removeEventListener("animationend",v)}}else d("ANIMATION_END")},[t,d]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:M.useCallback(h=>{i.current=h?getComputedStyle(h):null,r(h)},[])}}function uu(e){return(e==null?void 0:e.animationName)||"none"}function mE(e){var i,l;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(l=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:l.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var a1="rovingFocusGroup.onEntryFocus",pE={bubbles:!1,cancelable:!0},jo="RovingFocusGroup",[q1,_g,gE]=og(jo),[vE,Hg]=Oo(jo,[gE]),[yE,bE]=vE(jo),qg=M.forwardRef((e,t)=>k.jsx(q1.Provider,{scope:e.__scopeRovingFocusGroup,children:k.jsx(q1.Slot,{scope:e.__scopeRovingFocusGroup,children:k.jsx(xE,{...e,ref:t})})}));qg.displayName=jo;var xE=M.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:i,loop:l=!1,dir:s,currentTabStopId:c,defaultCurrentTabStopId:f,onCurrentTabStopIdChange:d,onEntryFocus:h,preventScrollOnEntryFocus:g=!1,...v}=e,b=M.useRef(null),w=kn(t,b),E=sg(s),[A,T]=ig({prop:c,defaultProp:f??null,onChange:d,caller:jo}),[N,O]=M.useState(!1),R=da(h),H=_g(r),F=M.useRef(!1),[I,G]=M.useState(0);return M.useEffect(()=>{const V=b.current;if(V)return V.addEventListener(a1,R),()=>V.removeEventListener(a1,R)},[R]),k.jsx(yE,{scope:r,orientation:i,dir:E,loop:l,currentTabStopId:A,onItemFocus:M.useCallback(V=>T(V),[T]),onItemShiftTab:M.useCallback(()=>O(!0),[]),onFocusableItemAdd:M.useCallback(()=>G(V=>V+1),[]),onFocusableItemRemove:M.useCallback(()=>G(V=>V-1),[]),children:k.jsx(hn.div,{tabIndex:N||I===0?-1:0,"data-orientation":i,...v,ref:w,style:{outline:"none",...e.style},onMouseDown:We(e.onMouseDown,()=>{F.current=!0}),onFocus:We(e.onFocus,V=>{const te=!F.current;if(V.target===V.currentTarget&&te&&!N){const de=new CustomEvent(a1,pE);if(V.currentTarget.dispatchEvent(de),!de.defaultPrevented){const ce=H().filter(Y=>Y.focusable),he=ce.find(Y=>Y.active),De=ce.find(Y=>Y.id===A),Ce=[he,De,...ce].filter(Boolean).map(Y=>Y.ref.current);Fg(Ce,g)}}F.current=!1}),onBlur:We(e.onBlur,()=>O(!1))})})}),Ug="RovingFocusGroupItem",Gg=M.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:i=!0,active:l=!1,tabStopId:s,children:c,...f}=e,d=j1(),h=s||d,g=bE(Ug,r),v=g.currentTabStopId===h,b=_g(r),{onFocusableItemAdd:w,onFocusableItemRemove:E,currentTabStopId:A}=g;return M.useEffect(()=>{if(i)return w(),()=>E()},[i,w,E]),k.jsx(q1.ItemSlot,{scope:r,id:h,focusable:i,active:l,children:k.jsx(hn.span,{tabIndex:v?0:-1,"data-orientation":g.orientation,...f,ref:t,onMouseDown:We(e.onMouseDown,T=>{i?g.onItemFocus(h):T.preventDefault()}),onFocus:We(e.onFocus,()=>g.onItemFocus(h)),onKeyDown:We(e.onKeyDown,T=>{if(T.key==="Tab"&&T.shiftKey){g.onItemShiftTab();return}if(T.target!==T.currentTarget)return;const N=AE(T,g.orientation,g.dir);if(N!==void 0){if(T.metaKey||T.ctrlKey||T.altKey||T.shiftKey)return;T.preventDefault();let R=b().filter(H=>H.focusable).map(H=>H.ref.current);if(N==="last")R.reverse();else if(N==="prev"||N==="next"){N==="prev"&&R.reverse();const H=R.indexOf(T.currentTarget);R=g.loop?ME(R,H+1):R.slice(H+1)}setTimeout(()=>Fg(R))}}),children:typeof c=="function"?c({isCurrentTabStop:v,hasTabStop:A!=null}):c})})});Gg.displayName=Ug;var wE={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function SE(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function AE(e,t,r){const i=SE(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return wE[i]}function Fg(e,t=!1){const r=document.activeElement;for(const i of e)if(i===r||(i.focus({preventScroll:t}),document.activeElement!==r))return}function ME(e,t){return e.map((r,i)=>e[(t+i)%e.length])}var EE=qg,TE=Gg;function CE(e){const t=kE(e),r=M.forwardRef((i,l)=>{const{children:s,...c}=i,f=M.Children.toArray(s),d=f.find(zE);if(d){const h=d.props.children,g=f.map(v=>v===d?M.Children.count(h)>1?M.Children.only(null):M.isValidElement(h)?h.props.children:null:v);return k.jsx(t,{...c,ref:l,children:M.isValidElement(h)?M.cloneElement(h,void 0,g):null})}return k.jsx(t,{...c,ref:l,children:s})});return r.displayName=`${e}.Slot`,r}function kE(e){const t=M.forwardRef((r,i)=>{const{children:l,...s}=r;if(M.isValidElement(l)){const c=OE(l),f=DE(s,l.props);return l.type!==M.Fragment&&(f.ref=i?Gi(i,c):c),M.cloneElement(l,f)}return M.Children.count(l)>1?M.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var NE=Symbol("radix.slottable");function zE(e){return M.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===NE}function DE(e,t){const r={...t};for(const i in t){const l=e[i],s=t[i];/^on[A-Z]/.test(i)?l&&s?r[i]=(...f)=>{const d=s(...f);return l(...f),d}:l&&(r[i]=l):i==="style"?r[i]={...l,...s}:i==="className"&&(r[i]=[l,s].filter(Boolean).join(" "))}return{...e,...r}}function OE(e){var i,l;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(l=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:l.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var RE=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Ll=new WeakMap,cu=new WeakMap,fu={},i1=0,Yg=function(e){return e&&(e.host||Yg(e.parentNode))},LE=function(e,t){return t.map(function(r){if(e.contains(r))return r;var i=Yg(r);return i&&e.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},jE=function(e,t,r,i){var l=LE(t,Array.isArray(e)?e:[e]);fu[r]||(fu[r]=new WeakMap);var s=fu[r],c=[],f=new Set,d=new Set(l),h=function(v){!v||f.has(v)||(f.add(v),h(v.parentNode))};l.forEach(h);var g=function(v){!v||d.has(v)||Array.prototype.forEach.call(v.children,function(b){if(f.has(b))g(b);else try{var w=b.getAttribute(i),E=w!==null&&w!=="false",A=(Ll.get(b)||0)+1,T=(s.get(b)||0)+1;Ll.set(b,A),s.set(b,T),c.push(b),A===1&&E&&cu.set(b,!0),T===1&&b.setAttribute(r,"true"),E||b.setAttribute(i,"true")}catch(N){console.error("aria-hidden: cannot operate on ",b,N)}})};return g(t),f.clear(),i1++,function(){c.forEach(function(v){var b=Ll.get(v)-1,w=s.get(v)-1;Ll.set(v,b),s.set(v,w),b||(cu.has(v)||v.removeAttribute(i),cu.delete(v)),w||v.removeAttribute(r)}),i1--,i1||(Ll=new WeakMap,Ll=new WeakMap,cu=new WeakMap,fu={})}},BE=function(e,t,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),l=RE(e);return l?(i.push.apply(i,Array.from(l.querySelectorAll("[aria-live], script"))),jE(i,l,r,"aria-hidden")):function(){return null}},Er=function(){return Er=Object.assign||function(t){for(var r,i=1,l=arguments.length;i<l;i++){r=arguments[i];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},Er.apply(this,arguments)};function Pg(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,i=Object.getOwnPropertySymbols(e);l<i.length;l++)t.indexOf(i[l])<0&&Object.prototype.propertyIsEnumerable.call(e,i[l])&&(r[i[l]]=e[i[l]]);return r}function _E(e,t,r){if(r||arguments.length===2)for(var i=0,l=t.length,s;i<l;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}var ku="right-scroll-bar-position",Nu="width-before-scroll-bar",HE="with-scroll-bars-hidden",qE="--removed-body-scroll-bar-size";function l1(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function UE(e,t){var r=M.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(i){var l=r.value;l!==i&&(r.value=i,r.callback(i,l))}}}})[0];return r.callback=t,r.facade}var GE=typeof window<"u"?M.useLayoutEffect:M.useEffect,r5=new WeakMap;function FE(e,t){var r=UE(null,function(i){return e.forEach(function(l){return l1(l,i)})});return GE(function(){var i=r5.get(r);if(i){var l=new Set(i),s=new Set(e),c=r.current;l.forEach(function(f){s.has(f)||l1(f,null)}),s.forEach(function(f){l.has(f)||l1(f,c)})}r5.set(r,e)},[e]),r}function YE(e){return e}function PE(e,t){t===void 0&&(t=YE);var r=[],i=!1,l={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(s){var c=t(s,i);return r.push(c),function(){r=r.filter(function(f){return f!==c})}},assignSyncMedium:function(s){for(i=!0;r.length;){var c=r;r=[],c.forEach(s)}r={push:function(f){return s(f)},filter:function(){return r}}},assignMedium:function(s){i=!0;var c=[];if(r.length){var f=r;r=[],f.forEach(s),c=r}var d=function(){var g=c;c=[],g.forEach(s)},h=function(){return Promise.resolve().then(d)};h(),r={push:function(g){c.push(g),h()},filter:function(g){return c=c.filter(g),r}}}};return l}function VE(e){e===void 0&&(e={});var t=PE(null);return t.options=Er({async:!0,ssr:!1},e),t}var Vg=function(e){var t=e.sideCar,r=Pg(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return M.createElement(i,Er({},r))};Vg.isSideCarExport=!0;function IE(e,t){return e.useMedium(t),Vg}var Ig=VE(),o1=function(){},cc=M.forwardRef(function(e,t){var r=M.useRef(null),i=M.useState({onScrollCapture:o1,onWheelCapture:o1,onTouchMoveCapture:o1}),l=i[0],s=i[1],c=e.forwardProps,f=e.children,d=e.className,h=e.removeScrollBar,g=e.enabled,v=e.shards,b=e.sideCar,w=e.noRelative,E=e.noIsolation,A=e.inert,T=e.allowPinchZoom,N=e.as,O=N===void 0?"div":N,R=e.gapMode,H=Pg(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),F=b,I=FE([r,t]),G=Er(Er({},H),l);return M.createElement(M.Fragment,null,g&&M.createElement(F,{sideCar:Ig,removeScrollBar:h,shards:v,noRelative:w,noIsolation:E,inert:A,setCallbacks:s,allowPinchZoom:!!T,lockRef:r,gapMode:R}),c?M.cloneElement(M.Children.only(f),Er(Er({},G),{ref:I})):M.createElement(O,Er({},G,{className:d,ref:I}),f))});cc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};cc.classNames={fullWidth:Nu,zeroRight:ku};var XE=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function $E(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=XE();return t&&e.setAttribute("nonce",t),e}function KE(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function QE(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ZE=function(){var e=0,t=null;return{add:function(r){e==0&&(t=$E())&&(KE(t,r),QE(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},WE=function(){var e=ZE();return function(t,r){M.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Xg=function(){var e=WE(),t=function(r){var i=r.styles,l=r.dynamic;return e(i,l),null};return t},JE={left:0,top:0,right:0,gap:0},s1=function(e){return parseInt(e||"",10)||0},eT=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],l=t[e==="padding"?"paddingRight":"marginRight"];return[s1(r),s1(i),s1(l)]},tT=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return JE;var t=eT(e),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-r+t[2]-t[0])}},nT=Xg(),Fl="data-scroll-locked",rT=function(e,t,r,i){var l=e.left,s=e.top,c=e.right,f=e.gap;return r===void 0&&(r="margin"),`
152
+ .`.concat(HE,` {
153
+ overflow: hidden `).concat(i,`;
154
+ padding-right: `).concat(f,"px ").concat(i,`;
155
+ }
156
+ body[`).concat(Fl,`] {
157
+ overflow: hidden `).concat(i,`;
158
+ overscroll-behavior: contain;
159
+ `).concat([t&&"position: relative ".concat(i,";"),r==="margin"&&`
160
+ padding-left: `.concat(l,`px;
161
+ padding-top: `).concat(s,`px;
162
+ padding-right: `).concat(c,`px;
163
+ margin-left:0;
164
+ margin-top:0;
165
+ margin-right: `).concat(f,"px ").concat(i,`;
166
+ `),r==="padding"&&"padding-right: ".concat(f,"px ").concat(i,";")].filter(Boolean).join(""),`
167
+ }
168
+
169
+ .`).concat(ku,` {
170
+ right: `).concat(f,"px ").concat(i,`;
171
+ }
172
+
173
+ .`).concat(Nu,` {
174
+ margin-right: `).concat(f,"px ").concat(i,`;
175
+ }
176
+
177
+ .`).concat(ku," .").concat(ku,` {
178
+ right: 0 `).concat(i,`;
179
+ }
180
+
181
+ .`).concat(Nu," .").concat(Nu,` {
182
+ margin-right: 0 `).concat(i,`;
183
+ }
184
+
185
+ body[`).concat(Fl,`] {
186
+ `).concat(qE,": ").concat(f,`px;
187
+ }
188
+ `)},a5=function(){var e=parseInt(document.body.getAttribute(Fl)||"0",10);return isFinite(e)?e:0},aT=function(){M.useEffect(function(){return document.body.setAttribute(Fl,(a5()+1).toString()),function(){var e=a5()-1;e<=0?document.body.removeAttribute(Fl):document.body.setAttribute(Fl,e.toString())}},[])},iT=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,l=i===void 0?"margin":i;aT();var s=M.useMemo(function(){return tT(l)},[l]);return M.createElement(nT,{styles:rT(s,!t,l,r?"":"!important")})},U1=!1;if(typeof window<"u")try{var du=Object.defineProperty({},"passive",{get:function(){return U1=!0,!0}});window.addEventListener("test",du,du),window.removeEventListener("test",du,du)}catch{U1=!1}var jl=U1?{passive:!1}:!1,lT=function(e){return e.tagName==="TEXTAREA"},$g=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!lT(e)&&r[t]==="visible")},oT=function(e){return $g(e,"overflowY")},sT=function(e){return $g(e,"overflowX")},i5=function(e,t){var r=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var l=Kg(e,i);if(l){var s=Qg(e,i),c=s[1],f=s[2];if(c>f)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},uT=function(e){var t=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[t,r,i]},cT=function(e){var t=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[t,r,i]},Kg=function(e,t){return e==="v"?oT(t):sT(t)},Qg=function(e,t){return e==="v"?uT(t):cT(t)},fT=function(e,t){return e==="h"&&t==="rtl"?-1:1},dT=function(e,t,r,i,l){var s=fT(e,window.getComputedStyle(t).direction),c=s*i,f=r.target,d=t.contains(f),h=!1,g=c>0,v=0,b=0;do{if(!f)break;var w=Qg(e,f),E=w[0],A=w[1],T=w[2],N=A-T-s*E;(E||N)&&Kg(e,f)&&(v+=N,b+=E);var O=f.parentNode;f=O&&O.nodeType===Node.DOCUMENT_FRAGMENT_NODE?O.host:O}while(!d&&f!==document.body||d&&(t.contains(f)||t===f));return(g&&Math.abs(v)<1||!g&&Math.abs(b)<1)&&(h=!0),h},hu=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},l5=function(e){return[e.deltaX,e.deltaY]},o5=function(e){return e&&"current"in e?e.current:e},hT=function(e,t){return e[0]===t[0]&&e[1]===t[1]},mT=function(e){return`
189
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
190
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
191
+ `)},pT=0,Bl=[];function gT(e){var t=M.useRef([]),r=M.useRef([0,0]),i=M.useRef(),l=M.useState(pT++)[0],s=M.useState(Xg)[0],c=M.useRef(e);M.useEffect(function(){c.current=e},[e]),M.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(l));var A=_E([e.lockRef.current],(e.shards||[]).map(o5),!0).filter(Boolean);return A.forEach(function(T){return T.classList.add("allow-interactivity-".concat(l))}),function(){document.body.classList.remove("block-interactivity-".concat(l)),A.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(l))})}}},[e.inert,e.lockRef.current,e.shards]);var f=M.useCallback(function(A,T){if("touches"in A&&A.touches.length===2||A.type==="wheel"&&A.ctrlKey)return!c.current.allowPinchZoom;var N=hu(A),O=r.current,R="deltaX"in A?A.deltaX:O[0]-N[0],H="deltaY"in A?A.deltaY:O[1]-N[1],F,I=A.target,G=Math.abs(R)>Math.abs(H)?"h":"v";if("touches"in A&&G==="h"&&I.type==="range")return!1;var V=window.getSelection(),te=V&&V.anchorNode,de=te?te===I||te.contains(I):!1;if(de)return!1;var ce=i5(G,I);if(!ce)return!0;if(ce?F=G:(F=G==="v"?"h":"v",ce=i5(G,I)),!ce)return!1;if(!i.current&&"changedTouches"in A&&(R||H)&&(i.current=F),!F)return!0;var he=i.current||F;return dT(he,T,A,he==="h"?R:H)},[]),d=M.useCallback(function(A){var T=A;if(!(!Bl.length||Bl[Bl.length-1]!==s)){var N="deltaY"in T?l5(T):hu(T),O=t.current.filter(function(F){return F.name===T.type&&(F.target===T.target||T.target===F.shadowParent)&&hT(F.delta,N)})[0];if(O&&O.should){T.cancelable&&T.preventDefault();return}if(!O){var R=(c.current.shards||[]).map(o5).filter(Boolean).filter(function(F){return F.contains(T.target)}),H=R.length>0?f(T,R[0]):!c.current.noIsolation;H&&T.cancelable&&T.preventDefault()}}},[]),h=M.useCallback(function(A,T,N,O){var R={name:A,delta:T,target:N,should:O,shadowParent:vT(N)};t.current.push(R),setTimeout(function(){t.current=t.current.filter(function(H){return H!==R})},1)},[]),g=M.useCallback(function(A){r.current=hu(A),i.current=void 0},[]),v=M.useCallback(function(A){h(A.type,l5(A),A.target,f(A,e.lockRef.current))},[]),b=M.useCallback(function(A){h(A.type,hu(A),A.target,f(A,e.lockRef.current))},[]);M.useEffect(function(){return Bl.push(s),e.setCallbacks({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:b}),document.addEventListener("wheel",d,jl),document.addEventListener("touchmove",d,jl),document.addEventListener("touchstart",g,jl),function(){Bl=Bl.filter(function(A){return A!==s}),document.removeEventListener("wheel",d,jl),document.removeEventListener("touchmove",d,jl),document.removeEventListener("touchstart",g,jl)}},[]);var w=e.removeScrollBar,E=e.inert;return M.createElement(M.Fragment,null,E?M.createElement(s,{styles:mT(l)}):null,w?M.createElement(iT,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function vT(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const yT=IE(Ig,gT);var Zg=M.forwardRef(function(e,t){return M.createElement(cc,Er({},e,{ref:t,sideCar:yT}))});Zg.classNames=cc.classNames;var G1=["Enter"," "],bT=["ArrowDown","PageUp","Home"],Wg=["ArrowUp","PageDown","End"],xT=[...bT,...Wg],wT={ltr:[...G1,"ArrowRight"],rtl:[...G1,"ArrowLeft"]},ST={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Bo="Menu",[yo,AT,MT]=og(Bo),[Fi,Jg]=Oo(Bo,[MT,Cg,Hg]),fc=Cg(),ev=Hg(),[ET,Yi]=Fi(Bo),[TT,_o]=Fi(Bo),tv=e=>{const{__scopeMenu:t,open:r=!1,children:i,dir:l,onOpenChange:s,modal:c=!0}=e,f=fc(t),[d,h]=M.useState(null),g=M.useRef(!1),v=da(s),b=sg(l);return M.useEffect(()=>{const w=()=>{g.current=!0,document.addEventListener("pointerdown",E,{capture:!0,once:!0}),document.addEventListener("pointermove",E,{capture:!0,once:!0})},E=()=>g.current=!1;return document.addEventListener("keydown",w,{capture:!0}),()=>{document.removeEventListener("keydown",w,{capture:!0}),document.removeEventListener("pointerdown",E,{capture:!0}),document.removeEventListener("pointermove",E,{capture:!0})}},[]),k.jsx(oE,{...f,children:k.jsx(ET,{scope:t,open:r,onOpenChange:v,content:d,onContentChange:h,children:k.jsx(TT,{scope:t,onClose:M.useCallback(()=>v(!1),[v]),isUsingKeyboardRef:g,dir:b,modal:c,children:i})})})};tv.displayName=Bo;var CT="MenuAnchor",Ah=M.forwardRef((e,t)=>{const{__scopeMenu:r,...i}=e,l=fc(r);return k.jsx(sE,{...l,...i,ref:t})});Ah.displayName=CT;var Mh="MenuPortal",[kT,nv]=Fi(Mh,{forceMount:void 0}),rv=e=>{const{__scopeMenu:t,forceMount:r,children:i,container:l}=e,s=Yi(Mh,t);return k.jsx(kT,{scope:t,forceMount:r,children:k.jsx(Lo,{present:r||s.open,children:k.jsx(Bg,{asChild:!0,container:l,children:i})})})};rv.displayName=Mh;var nr="MenuContent",[NT,Eh]=Fi(nr),av=M.forwardRef((e,t)=>{const r=nv(nr,e.__scopeMenu),{forceMount:i=r.forceMount,...l}=e,s=Yi(nr,e.__scopeMenu),c=_o(nr,e.__scopeMenu);return k.jsx(yo.Provider,{scope:e.__scopeMenu,children:k.jsx(Lo,{present:i||s.open,children:k.jsx(yo.Slot,{scope:e.__scopeMenu,children:c.modal?k.jsx(zT,{...l,ref:t}):k.jsx(DT,{...l,ref:t})})})})}),zT=M.forwardRef((e,t)=>{const r=Yi(nr,e.__scopeMenu),i=M.useRef(null),l=kn(t,i);return M.useEffect(()=>{const s=i.current;if(s)return BE(s)},[]),k.jsx(Th,{...e,ref:l,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:We(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),DT=M.forwardRef((e,t)=>{const r=Yi(nr,e.__scopeMenu);return k.jsx(Th,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),OT=CE("MenuContent.ScrollLock"),Th=M.forwardRef((e,t)=>{const{__scopeMenu:r,loop:i=!1,trapFocus:l,onOpenAutoFocus:s,onCloseAutoFocus:c,disableOutsidePointerEvents:f,onEntryFocus:d,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:v,onInteractOutside:b,onDismiss:w,disableOutsideScroll:E,...A}=e,T=Yi(nr,r),N=_o(nr,r),O=fc(r),R=ev(r),H=AT(r),[F,I]=M.useState(null),G=M.useRef(null),V=kn(t,G,T.onContentChange),te=M.useRef(0),de=M.useRef(""),ce=M.useRef(0),he=M.useRef(null),De=M.useRef("right"),we=M.useRef(0),Ce=E?Zg:M.Fragment,Y=E?{as:OT,allowPinchZoom:!0}:void 0,ne=le=>{var ge,_e;const be=de.current+le,B=H().filter(Oe=>!Oe.disabled),W=document.activeElement,ie=(ge=B.find(Oe=>Oe.ref.current===W))==null?void 0:ge.textValue,se=B.map(Oe=>Oe.textValue),Se=PT(se,be,ie),ke=(_e=B.find(Oe=>Oe.textValue===Se))==null?void 0:_e.ref.current;(function Oe(Ze){de.current=Ze,window.clearTimeout(te.current),Ze!==""&&(te.current=window.setTimeout(()=>Oe(""),1e3))})(be),ke&&setTimeout(()=>ke.focus())};M.useEffect(()=>()=>window.clearTimeout(te.current),[]),OA();const Q=M.useCallback(le=>{var B,W;return De.current===((B=he.current)==null?void 0:B.side)&&IT(le,(W=he.current)==null?void 0:W.area)},[]);return k.jsx(NT,{scope:r,searchRef:de,onItemEnter:M.useCallback(le=>{Q(le)&&le.preventDefault()},[Q]),onItemLeave:M.useCallback(le=>{var be;Q(le)||((be=G.current)==null||be.focus(),I(null))},[Q]),onTriggerLeave:M.useCallback(le=>{Q(le)&&le.preventDefault()},[Q]),pointerGraceTimerRef:ce,onPointerGraceIntentChange:M.useCallback(le=>{he.current=le},[]),children:k.jsx(Ce,{...Y,children:k.jsx(dg,{asChild:!0,trapped:l,onMountAutoFocus:We(s,le=>{var be;le.preventDefault(),(be=G.current)==null||be.focus({preventScroll:!0})}),onUnmountAutoFocus:c,children:k.jsx(cg,{asChild:!0,disableOutsidePointerEvents:f,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:v,onInteractOutside:b,onDismiss:w,children:k.jsx(EE,{asChild:!0,...R,dir:N.dir,orientation:"vertical",loop:i,currentTabStopId:F,onCurrentTabStopIdChange:I,onEntryFocus:We(d,le=>{N.isUsingKeyboardRef.current||le.preventDefault()}),preventScrollOnEntryFocus:!0,children:k.jsx(uE,{role:"menu","aria-orientation":"vertical","data-state":xv(T.open),"data-radix-menu-content":"",dir:N.dir,...O,...A,ref:V,style:{outline:"none",...A.style},onKeyDown:We(A.onKeyDown,le=>{const B=le.target.closest("[data-radix-menu-content]")===le.currentTarget,W=le.ctrlKey||le.altKey||le.metaKey,ie=le.key.length===1;B&&(le.key==="Tab"&&le.preventDefault(),!W&&ie&&ne(le.key));const se=G.current;if(le.target!==se||!xT.includes(le.key))return;le.preventDefault();const ke=H().filter(ge=>!ge.disabled).map(ge=>ge.ref.current);Wg.includes(le.key)&&ke.reverse(),FT(ke)}),onBlur:We(e.onBlur,le=>{le.currentTarget.contains(le.target)||(window.clearTimeout(te.current),de.current="")}),onPointerMove:We(e.onPointerMove,bo(le=>{const be=le.target,B=we.current!==le.clientX;if(le.currentTarget.contains(be)&&B){const W=le.clientX>we.current?"right":"left";De.current=W,we.current=le.clientX}}))})})})})})})});av.displayName=nr;var RT="MenuGroup",Ch=M.forwardRef((e,t)=>{const{__scopeMenu:r,...i}=e;return k.jsx(hn.div,{role:"group",...i,ref:t})});Ch.displayName=RT;var LT="MenuLabel",iv=M.forwardRef((e,t)=>{const{__scopeMenu:r,...i}=e;return k.jsx(hn.div,{...i,ref:t})});iv.displayName=LT;var Gu="MenuItem",s5="menu.itemSelect",dc=M.forwardRef((e,t)=>{const{disabled:r=!1,onSelect:i,...l}=e,s=M.useRef(null),c=_o(Gu,e.__scopeMenu),f=Eh(Gu,e.__scopeMenu),d=kn(t,s),h=M.useRef(!1),g=()=>{const v=s.current;if(!r&&v){const b=new CustomEvent(s5,{bubbles:!0,cancelable:!0});v.addEventListener(s5,w=>i==null?void 0:i(w),{once:!0}),lg(v,b),b.defaultPrevented?h.current=!1:c.onClose()}};return k.jsx(lv,{...l,ref:d,disabled:r,onClick:We(e.onClick,g),onPointerDown:v=>{var b;(b=e.onPointerDown)==null||b.call(e,v),h.current=!0},onPointerUp:We(e.onPointerUp,v=>{var b;h.current||(b=v.currentTarget)==null||b.click()}),onKeyDown:We(e.onKeyDown,v=>{const b=f.searchRef.current!=="";r||b&&v.key===" "||G1.includes(v.key)&&(v.currentTarget.click(),v.preventDefault())})})});dc.displayName=Gu;var lv=M.forwardRef((e,t)=>{const{__scopeMenu:r,disabled:i=!1,textValue:l,...s}=e,c=Eh(Gu,r),f=ev(r),d=M.useRef(null),h=kn(t,d),[g,v]=M.useState(!1),[b,w]=M.useState("");return M.useEffect(()=>{const E=d.current;E&&w((E.textContent??"").trim())},[s.children]),k.jsx(yo.ItemSlot,{scope:r,disabled:i,textValue:l??b,children:k.jsx(TE,{asChild:!0,...f,focusable:!i,children:k.jsx(hn.div,{role:"menuitem","data-highlighted":g?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...s,ref:h,onPointerMove:We(e.onPointerMove,bo(E=>{i?c.onItemLeave(E):(c.onItemEnter(E),E.defaultPrevented||E.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:We(e.onPointerLeave,bo(E=>c.onItemLeave(E))),onFocus:We(e.onFocus,()=>v(!0)),onBlur:We(e.onBlur,()=>v(!1))})})})}),jT="MenuCheckboxItem",ov=M.forwardRef((e,t)=>{const{checked:r=!1,onCheckedChange:i,...l}=e;return k.jsx(dv,{scope:e.__scopeMenu,checked:r,children:k.jsx(dc,{role:"menuitemcheckbox","aria-checked":Fu(r)?"mixed":r,...l,ref:t,"data-state":Nh(r),onSelect:We(l.onSelect,()=>i==null?void 0:i(Fu(r)?!0:!r),{checkForDefaultPrevented:!1})})})});ov.displayName=jT;var sv="MenuRadioGroup",[BT,_T]=Fi(sv,{value:void 0,onValueChange:()=>{}}),uv=M.forwardRef((e,t)=>{const{value:r,onValueChange:i,...l}=e,s=da(i);return k.jsx(BT,{scope:e.__scopeMenu,value:r,onValueChange:s,children:k.jsx(Ch,{...l,ref:t})})});uv.displayName=sv;var cv="MenuRadioItem",fv=M.forwardRef((e,t)=>{const{value:r,...i}=e,l=_T(cv,e.__scopeMenu),s=r===l.value;return k.jsx(dv,{scope:e.__scopeMenu,checked:s,children:k.jsx(dc,{role:"menuitemradio","aria-checked":s,...i,ref:t,"data-state":Nh(s),onSelect:We(i.onSelect,()=>{var c;return(c=l.onValueChange)==null?void 0:c.call(l,r)},{checkForDefaultPrevented:!1})})})});fv.displayName=cv;var kh="MenuItemIndicator",[dv,HT]=Fi(kh,{checked:!1}),hv=M.forwardRef((e,t)=>{const{__scopeMenu:r,forceMount:i,...l}=e,s=HT(kh,r);return k.jsx(Lo,{present:i||Fu(s.checked)||s.checked===!0,children:k.jsx(hn.span,{...l,ref:t,"data-state":Nh(s.checked)})})});hv.displayName=kh;var qT="MenuSeparator",mv=M.forwardRef((e,t)=>{const{__scopeMenu:r,...i}=e;return k.jsx(hn.div,{role:"separator","aria-orientation":"horizontal",...i,ref:t})});mv.displayName=qT;var UT="MenuArrow",pv=M.forwardRef((e,t)=>{const{__scopeMenu:r,...i}=e,l=fc(r);return k.jsx(cE,{...l,...i,ref:t})});pv.displayName=UT;var GT="MenuSub",[WR,gv]=Fi(GT),lo="MenuSubTrigger",vv=M.forwardRef((e,t)=>{const r=Yi(lo,e.__scopeMenu),i=_o(lo,e.__scopeMenu),l=gv(lo,e.__scopeMenu),s=Eh(lo,e.__scopeMenu),c=M.useRef(null),{pointerGraceTimerRef:f,onPointerGraceIntentChange:d}=s,h={__scopeMenu:e.__scopeMenu},g=M.useCallback(()=>{c.current&&window.clearTimeout(c.current),c.current=null},[]);return M.useEffect(()=>g,[g]),M.useEffect(()=>{const v=f.current;return()=>{window.clearTimeout(v),d(null)}},[f,d]),k.jsx(Ah,{asChild:!0,...h,children:k.jsx(lv,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":l.contentId,"data-state":xv(r.open),...e,ref:Gi(t,l.onTriggerChange),onClick:v=>{var b;(b=e.onClick)==null||b.call(e,v),!(e.disabled||v.defaultPrevented)&&(v.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:We(e.onPointerMove,bo(v=>{s.onItemEnter(v),!v.defaultPrevented&&!e.disabled&&!r.open&&!c.current&&(s.onPointerGraceIntentChange(null),c.current=window.setTimeout(()=>{r.onOpenChange(!0),g()},100))})),onPointerLeave:We(e.onPointerLeave,bo(v=>{var w,E;g();const b=(w=r.content)==null?void 0:w.getBoundingClientRect();if(b){const A=(E=r.content)==null?void 0:E.dataset.side,T=A==="right",N=T?-5:5,O=b[T?"left":"right"],R=b[T?"right":"left"];s.onPointerGraceIntentChange({area:[{x:v.clientX+N,y:v.clientY},{x:O,y:b.top},{x:R,y:b.top},{x:R,y:b.bottom},{x:O,y:b.bottom}],side:A}),window.clearTimeout(f.current),f.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(v),v.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:We(e.onKeyDown,v=>{var w;const b=s.searchRef.current!=="";e.disabled||b&&v.key===" "||wT[i.dir].includes(v.key)&&(r.onOpenChange(!0),(w=r.content)==null||w.focus(),v.preventDefault())})})})});vv.displayName=lo;var yv="MenuSubContent",bv=M.forwardRef((e,t)=>{const r=nv(nr,e.__scopeMenu),{forceMount:i=r.forceMount,...l}=e,s=Yi(nr,e.__scopeMenu),c=_o(nr,e.__scopeMenu),f=gv(yv,e.__scopeMenu),d=M.useRef(null),h=kn(t,d);return k.jsx(yo.Provider,{scope:e.__scopeMenu,children:k.jsx(Lo,{present:i||s.open,children:k.jsx(yo.Slot,{scope:e.__scopeMenu,children:k.jsx(Th,{id:f.contentId,"aria-labelledby":f.triggerId,...l,ref:h,align:"start",side:c.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:g=>{var v;c.isUsingKeyboardRef.current&&((v=d.current)==null||v.focus()),g.preventDefault()},onCloseAutoFocus:g=>g.preventDefault(),onFocusOutside:We(e.onFocusOutside,g=>{g.target!==f.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:We(e.onEscapeKeyDown,g=>{c.onClose(),g.preventDefault()}),onKeyDown:We(e.onKeyDown,g=>{var w;const v=g.currentTarget.contains(g.target),b=ST[c.dir].includes(g.key);v&&b&&(s.onOpenChange(!1),(w=f.trigger)==null||w.focus(),g.preventDefault())})})})})})});bv.displayName=yv;function xv(e){return e?"open":"closed"}function Fu(e){return e==="indeterminate"}function Nh(e){return Fu(e)?"indeterminate":e?"checked":"unchecked"}function FT(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function YT(e,t){return e.map((r,i)=>e[(t+i)%e.length])}function PT(e,t,r){const l=t.length>1&&Array.from(t).every(h=>h===t[0])?t[0]:t,s=r?e.indexOf(r):-1;let c=YT(e,Math.max(s,0));l.length===1&&(c=c.filter(h=>h!==r));const d=c.find(h=>h.toLowerCase().startsWith(l.toLowerCase()));return d!==r?d:void 0}function VT(e,t){const{x:r,y:i}=e;let l=!1;for(let s=0,c=t.length-1;s<t.length;c=s++){const f=t[s],d=t[c],h=f.x,g=f.y,v=d.x,b=d.y;g>i!=b>i&&r<(v-h)*(i-g)/(b-g)+h&&(l=!l)}return l}function IT(e,t){if(!t)return!1;const r={x:e.clientX,y:e.clientY};return VT(r,t)}function bo(e){return t=>t.pointerType==="mouse"?e(t):void 0}var XT=tv,$T=Ah,KT=rv,QT=av,ZT=Ch,WT=iv,JT=dc,eC=ov,tC=uv,nC=fv,rC=hv,aC=mv,iC=pv,lC=vv,oC=bv,hc="DropdownMenu",[sC]=Oo(hc,[Jg]),mn=Jg(),[uC,wv]=sC(hc),Sv=e=>{const{__scopeDropdownMenu:t,children:r,dir:i,open:l,defaultOpen:s,onOpenChange:c,modal:f=!0}=e,d=mn(t),h=M.useRef(null),[g,v]=ig({prop:l,defaultProp:s??!1,onChange:c,caller:hc});return k.jsx(uC,{scope:t,triggerId:j1(),triggerRef:h,contentId:j1(),open:g,onOpenChange:v,onOpenToggle:M.useCallback(()=>v(b=>!b),[v]),modal:f,children:k.jsx(XT,{...d,open:g,onOpenChange:v,dir:i,modal:f,children:r})})};Sv.displayName=hc;var Av="DropdownMenuTrigger",Mv=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,disabled:i=!1,...l}=e,s=wv(Av,r),c=mn(r);return k.jsx($T,{asChild:!0,...c,children:k.jsx(hn.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...l,ref:Gi(t,s.triggerRef),onPointerDown:We(e.onPointerDown,f=>{!i&&f.button===0&&f.ctrlKey===!1&&(s.onOpenToggle(),s.open||f.preventDefault())}),onKeyDown:We(e.onKeyDown,f=>{i||(["Enter"," "].includes(f.key)&&s.onOpenToggle(),f.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(f.key)&&f.preventDefault())})})})});Mv.displayName=Av;var cC="DropdownMenuPortal",Ev=e=>{const{__scopeDropdownMenu:t,...r}=e,i=mn(t);return k.jsx(KT,{...i,...r})};Ev.displayName=cC;var Tv="DropdownMenuContent",Cv=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,l=wv(Tv,r),s=mn(r),c=M.useRef(!1);return k.jsx(QT,{id:l.contentId,"aria-labelledby":l.triggerId,...s,...i,ref:t,onCloseAutoFocus:We(e.onCloseAutoFocus,f=>{var d;c.current||(d=l.triggerRef.current)==null||d.focus(),c.current=!1,f.preventDefault()}),onInteractOutside:We(e.onInteractOutside,f=>{const d=f.detail.originalEvent,h=d.button===0&&d.ctrlKey===!0,g=d.button===2||h;(!l.modal||g)&&(c.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Cv.displayName=Tv;var fC="DropdownMenuGroup",dC=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,l=mn(r);return k.jsx(ZT,{...l,...i,ref:t})});dC.displayName=fC;var hC="DropdownMenuLabel",kv=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,l=mn(r);return k.jsx(WT,{...l,...i,ref:t})});kv.displayName=hC;var mC="DropdownMenuItem",Nv=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,l=mn(r);return k.jsx(JT,{...l,...i,ref:t})});Nv.displayName=mC;var pC="DropdownMenuCheckboxItem",zv=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,l=mn(r);return k.jsx(eC,{...l,...i,ref:t})});zv.displayName=pC;var gC="DropdownMenuRadioGroup",Dv=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,l=mn(r);return k.jsx(tC,{...l,...i,ref:t})});Dv.displayName=gC;var vC="DropdownMenuRadioItem",Ov=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,l=mn(r);return k.jsx(nC,{...l,...i,ref:t})});Ov.displayName=vC;var yC="DropdownMenuItemIndicator",Rv=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,l=mn(r);return k.jsx(rC,{...l,...i,ref:t})});Rv.displayName=yC;var bC="DropdownMenuSeparator",Lv=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,l=mn(r);return k.jsx(aC,{...l,...i,ref:t})});Lv.displayName=bC;var xC="DropdownMenuArrow",wC=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,l=mn(r);return k.jsx(iC,{...l,...i,ref:t})});wC.displayName=xC;var SC="DropdownMenuSubTrigger",jv=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,l=mn(r);return k.jsx(lC,{...l,...i,ref:t})});jv.displayName=SC;var AC="DropdownMenuSubContent",Bv=M.forwardRef((e,t)=>{const{__scopeDropdownMenu:r,...i}=e,l=mn(r);return k.jsx(oC,{...l,...i,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Bv.displayName=AC;var MC=Sv,EC=Mv,TC=Ev,_v=Cv,Hv=kv,qv=Nv,Uv=zv,CC=Dv,Gv=Ov,Fv=Rv,Yv=Lv,Pv=jv,Vv=Bv;const kC=MC,NC=EC,zC=CC,DC=M.forwardRef(({className:e,inset:t,children:r,...i},l)=>k.jsxs(Pv,{ref:l,className:ct("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...i,children:[r,k.jsx(rg,{className:"ml-auto"})]}));DC.displayName=Pv.displayName;const OC=M.forwardRef(({className:e,...t},r)=>k.jsx(Vv,{ref:r,className:ct("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",e),...t}));OC.displayName=Vv.displayName;const Iv=M.forwardRef(({className:e,sideOffset:t=4,...r},i)=>k.jsx(TC,{children:k.jsx(_v,{ref:i,sideOffset:t,className:ct("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",e),...r})}));Iv.displayName=_v.displayName;const RC=M.forwardRef(({className:e,inset:t,...r},i)=>k.jsx(qv,{ref:i,className:ct("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...r}));RC.displayName=qv.displayName;const LC=M.forwardRef(({className:e,children:t,checked:r,...i},l)=>k.jsxs(Uv,{ref:l,className:ct("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...i,children:[k.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:k.jsx(Fv,{children:k.jsx(GS,{className:"h-4 w-4"})})}),t]}));LC.displayName=Uv.displayName;const zu=M.forwardRef(({className:e,children:t,...r},i)=>k.jsxs(Gv,{ref:i,className:ct("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[k.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:k.jsx(Fv,{children:k.jsx(QS,{className:"h-2 w-2 fill-current"})})}),t]}));zu.displayName=Gv.displayName;const jC=M.forwardRef(({className:e,inset:t,...r},i)=>k.jsx(Hv,{ref:i,className:ct("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));jC.displayName=Hv.displayName;const BC=M.forwardRef(({className:e,...t},r)=>k.jsx(Yv,{ref:r,className:ct("-mx-1 my-1 h-px bg-muted",e),...t}));BC.displayName=Yv.displayName;function _C(){const{theme:e,setTheme:t}=O6();return k.jsxs(kC,{children:[k.jsx(NC,{asChild:!0,children:k.jsxs("button",{className:"relative p-2 text-muted-foreground/70 hover:text-foreground transition-colors duration-300","aria-label":"Toggle theme",children:[k.jsx(B3,{className:`h-4 w-4 transition-all duration-300 ${e==="light"?"scale-100 rotate-0":"scale-0 -rotate-90 absolute top-2 left-2"}`}),k.jsx(j3,{className:`h-4 w-4 transition-all duration-300 ${e==="dark"?"scale-100 rotate-0":"scale-0 rotate-90 absolute top-2 left-2"}`}),k.jsx(L3,{className:`h-4 w-4 transition-all duration-300 ${e==="system"||!e?"scale-100":"scale-0 absolute top-2 left-2"}`})]})}),k.jsx(Iv,{align:"end",children:k.jsxs(zC,{value:e,onValueChange:t,children:[k.jsxs(zu,{value:"light",children:[k.jsx(B3,{className:"mr-2 h-4 w-4"}),"Light"]}),k.jsxs(zu,{value:"dark",children:[k.jsx(j3,{className:"mr-2 h-4 w-4"}),"Dark"]}),k.jsxs(zu,{value:"system",children:[k.jsx(L3,{className:"mr-2 h-4 w-4"}),"System"]})]})})]})}const HC="#181717",qC=M.forwardRef(function({title:t="GitHub",color:r="currentColor",size:i=24,...l},s){return r==="default"&&(r=HC),k.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:i,height:i,fill:r,viewBox:"0 0 24 24",ref:s,...l,children:[k.jsx("title",{children:t}),k.jsx("path",{d:"M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"})]})});function zh({slideControls:e}={}){return k.jsx("header",{className:"print:hidden fixed top-0 left-0 right-0 z-40",children:k.jsxs("div",{className:"mx-auto w-full px-[var(--page-padding)] flex items-center gap-8 py-4",children:[k.jsx("nav",{className:"flex items-center gap-1",children:k.jsx(Pl,{to:"/",className:"rounded-lg font-mono py-1.5 text-sm font-medium text-muted-foreground hover:underline",children:"pl"})}),k.jsx("div",{className:"flex-1"}),e&&k.jsxs("nav",{className:"flex items-center gap-1",children:[k.jsx("button",{onClick:e.onPrevious,className:"p-1.5 text-muted-foreground/70 hover:text-foreground transition-colors duration-200",title:"Previous slide (↑)",children:k.jsx($S,{className:"h-4 w-4"})}),k.jsxs("span",{className:"font-mono text-xs text-muted-foreground/70 tabular-nums min-w-[3ch] text-center",children:[e.current+1,"/",e.total]}),k.jsx("button",{onClick:e.onNext,className:"p-1.5 text-muted-foreground/70 hover:text-foreground transition-colors duration-200",title:"Next slide (↓)",children:k.jsx(YS,{className:"h-4 w-4"})})]}),k.jsxs("nav",{className:"flex items-center gap-2",children:[k.jsx(Pl,{to:"https://github.com/eoinmurray/pinglab",target:"_blank",className:"text-muted-foreground/70 hover:text-foreground transition-colors duration-300","aria-label":"GitHub",children:k.jsx(qC,{className:"h-4 w-4"})}),k.jsx(_C,{})]})]})})}function UC(){const{"*":e="."}=ih(),{directory:t,loading:r,error:i}=fh(e);return i?k.jsx(lA,{error:i,path:e}):r?k.jsx(dh,{}):k.jsxs("div",{className:"flex min-h-screen flex-col bg-background noise-overlay",children:[k.jsx(mh,{}),k.jsx(zh,{}),k.jsxs("main",{className:"flex-1 mx-auto w-full max-w-[var(--content-width)] px-[var(--page-padding)]",children:[k.jsx("title",{children:`Pinglab ${e}`}),k.jsx("main",{className:"flex flex-col gap-6 mb-32 mt-32",children:t&&k.jsx("div",{className:"animate-fade-in",children:k.jsx(iA,{directory:t})})})]})]})}function Xv({title:e,date:t,description:r,slides:i}){return k.jsx("div",{children:e&&k.jsxs("header",{className:"not-prose flex flex-col gap-2 mb-8 pt-4",children:[k.jsx("h1",{className:"text-2xl md:text-3xl font-semibold tracking-tight text-foreground mb-3",children:e}),k.jsxs("div",{className:"flex flex-wrap items-center gap-3 text-muted-foreground",children:[t&&k.jsx("time",{className:"font-mono text-xs bg-muted px-2 py-0.5 rounded",children:eg(new Date(t))}),i&&k.jsxs(Pl,{to:`/${i.path}`,className:"font-mono text-xs px-2 py-0.5 rounded flex items-center gap-1",children:[k.jsx(tA,{className:"h-3.5 w-3.5"}),k.jsx("span",{children:"slides"})]})]}),r&&k.jsx("div",{className:"flex flex-wrap text-sm items-center gap-3 text-muted-foreground",children:r})]})})}const GC="modulepreload",FC=function(e){return"/"+e},u5={},$v=function(t,r,i){let l=Promise.resolve();if(r&&r.length>0){let c=function(h){return Promise.all(h.map(g=>Promise.resolve(g).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const f=document.querySelector("meta[property=csp-nonce]"),d=(f==null?void 0:f.nonce)||(f==null?void 0:f.getAttribute("nonce"));l=c(r.map(h=>{if(h=FC(h),h in u5)return;u5[h]=!0;const g=h.endsWith(".css"),v=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${v}`))return;const b=document.createElement("link");if(b.rel=g?"stylesheet":GC,g||(b.as="script"),b.crossOrigin="",b.href=h,d&&b.setAttribute("nonce",d),document.head.appendChild(b),g)return new Promise((w,E)=>{b.addEventListener("load",w),b.addEventListener("error",()=>E(Error(`Unable to preload CSS for ${h}`)))})}))}function s(c){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=c,window.dispatchEvent(f),!f.defaultPrevented)throw c}return l.then(c=>{for(const f of c||[])f.status==="rejected"&&s(f.reason);return t().catch(s)})},c5=Object.assign({"/test-content/test-post/README.mdx":()=>$v(()=>import("./README-DVMP1xaW.js"),__vite__mapDeps([0,1]))}),f5=Object.assign({"/test-content/test-slides/SLIDES.mdx":()=>$v(()=>import("./SLIDES-DjNLQtEU.js"),__vite__mapDeps([2,1]))});function YC(e){const[t,r]=M.useState(null),[i,l]=M.useState(void 0),[s,c]=M.useState(!0),[f,d]=M.useState(null);return M.useEffect(()=>{let h=!1;c(!0),d(null);const g=Object.keys(c5).find(b=>b.endsWith(`/${e}/README.mdx`)),v=g?c5[g]:null;if(!v){d(new Error(`MDX module not found for path: ${e}`)),c(!1);return}return v().then(b=>{h||(r(()=>b.default),l(b.frontmatter),c(!1))}).catch(b=>{h||(d(b),c(!1))}),()=>{h=!0}},[e]),{Content:t,frontmatter:i,loading:s,error:f}}function PC(e){const[t,r]=M.useState(null),[i,l]=M.useState(void 0),[s,c]=M.useState(!0),[f,d]=M.useState(null);return M.useEffect(()=>{let h=!1;c(!0),d(null);const g=Object.keys(f5).find(b=>b.endsWith(`/${e}/SLIDES.mdx`)),v=g?f5[g]:null;if(!v){d(new Error(`Slides module not found for path: ${e}`)),c(!1);return}return v().then(b=>{h||(r(()=>b.default),l(b.frontmatter),c(!1))}).catch(b=>{h||(d(b),c(!1))}),()=>{h=!0}},[e]),{Content:t,frontmatter:i,loading:s,error:f}}const Kv="data-fullscreen-active";function VC({images:e,selectedIndex:t,onClose:r,onPrevious:i,onNext:l,showNavigation:s=!0}){const c=e[t];return ac.createPortal(k.jsxs("div",{className:"fixed inset-0 z-[9999] bg-background",onClick:r,[Kv]:"true",style:{top:0,left:0,right:0,bottom:0},children:[k.jsxs("div",{className:"fixed top-0 left-0 right-0 z-10 flex items-center justify-between px-4 py-3 bg-background/80 backdrop-blur-sm",onClick:f=>f.stopPropagation(),children:[k.jsxs("div",{className:"font-mono text-xs text-muted-foreground tabular-nums",children:[String(t+1).padStart(2,"0")," / ",String(e.length).padStart(2,"0")]}),k.jsx("button",{onClick:r,className:"p-2 text-muted-foreground hover:text-foreground transition-colors","aria-label":"Close",children:k.jsx(aA,{className:"h-5 w-5"})})]}),s&&t>0&&k.jsx("button",{onClick:f=>{f.stopPropagation(),i()},className:"fixed left-4 top-1/2 -translate-y-1/2 z-10 p-2 text-muted-foreground hover:text-foreground transition-colors","aria-label":"Previous image",children:k.jsx(VS,{className:"h-8 w-8"})}),s&&t<e.length-1&&k.jsx("button",{onClick:f=>{f.stopPropagation(),l()},className:"fixed right-4 top-1/2 -translate-y-1/2 z-10 p-2 text-muted-foreground hover:text-foreground transition-colors","aria-label":"Next image",children:k.jsx(rg,{className:"h-8 w-8"})}),k.jsx("div",{className:"fixed inset-0 flex items-center justify-center p-16",children:k.jsx("img",{src:c.src,alt:c.label,className:"max-w-full max-h-full object-contain",onClick:f=>f.stopPropagation()})}),k.jsx("div",{className:"fixed bottom-0 left-0 right-0 z-10 p-4 text-center bg-background/80 backdrop-blur-sm",onClick:f=>f.stopPropagation(),children:k.jsx("span",{className:"font-mono text-xs text-muted-foreground",children:c.label})})]}),document.body)}const Qv=(e,t,r)=>{const i=e instanceof RegExp?d5(e,r):e,l=t instanceof RegExp?d5(t,r):t,s=i!==null&&l!=null&&IC(i,l,r);return s&&{start:s[0],end:s[1],pre:r.slice(0,s[0]),body:r.slice(s[0]+i.length,s[1]),post:r.slice(s[1]+l.length)}},d5=(e,t)=>{const r=t.match(e);return r?r[0]:null},IC=(e,t,r)=>{let i,l,s,c,f,d=r.indexOf(e),h=r.indexOf(t,d+1),g=d;if(d>=0&&h>0){if(e===t)return[d,h];for(i=[],s=r.length;g>=0&&!f;){if(g===d)i.push(g),d=r.indexOf(e,g+1);else if(i.length===1){const v=i.pop();v!==void 0&&(f=[v,h])}else l=i.pop(),l!==void 0&&l<s&&(s=l,c=h),h=r.indexOf(t,g+1);g=d<h&&d>=0?d:h}i.length&&c!==void 0&&(f=[s,c])}return f},Zv="\0SLASH"+Math.random()+"\0",Wv="\0OPEN"+Math.random()+"\0",Dh="\0CLOSE"+Math.random()+"\0",Jv="\0COMMA"+Math.random()+"\0",e7="\0PERIOD"+Math.random()+"\0",XC=new RegExp(Zv,"g"),$C=new RegExp(Wv,"g"),KC=new RegExp(Dh,"g"),QC=new RegExp(Jv,"g"),ZC=new RegExp(e7,"g"),WC=/\\\\/g,JC=/\\{/g,ek=/\\}/g,tk=/\\,/g,nk=/\\./g;function u1(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function rk(e){return e.replace(WC,Zv).replace(JC,Wv).replace(ek,Dh).replace(tk,Jv).replace(nk,e7)}function ak(e){return e.replace(XC,"\\").replace($C,"{").replace(KC,"}").replace(QC,",").replace(ZC,".")}function t7(e){if(!e)return[""];const t=[],r=Qv("{","}",e);if(!r)return e.split(",");const{pre:i,body:l,post:s}=r,c=i.split(",");c[c.length-1]+="{"+l+"}";const f=t7(s);return s.length&&(c[c.length-1]+=f.shift(),c.push.apply(c,f)),t.push.apply(t,c),t}function ik(e){return e?(e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),oo(rk(e),!0).map(ak)):[]}function lk(e){return"{"+e+"}"}function ok(e){return/^-?0\d/.test(e)}function sk(e,t){return e<=t}function uk(e,t){return e>=t}function oo(e,t){const r=[],i=Qv("{","}",e);if(!i)return[e];const l=i.pre,s=i.post.length?oo(i.post,!1):[""];if(/\$$/.test(i.pre))for(let c=0;c<s.length;c++){const f=l+"{"+i.body+"}"+s[c];r.push(f)}else{const c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),f=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),d=c||f,h=i.body.indexOf(",")>=0;if(!d&&!h)return i.post.match(/,(?!,).*\}/)?(e=i.pre+"{"+i.body+Dh+i.post,oo(e)):[e];let g;if(d)g=i.body.split(/\.\./);else if(g=t7(i.body),g.length===1&&g[0]!==void 0&&(g=oo(g[0],!1).map(lk),g.length===1))return s.map(b=>i.pre+g[0]+b);let v;if(d&&g[0]!==void 0&&g[1]!==void 0){const b=u1(g[0]),w=u1(g[1]),E=Math.max(g[0].length,g[1].length);let A=g.length===3&&g[2]!==void 0?Math.abs(u1(g[2])):1,T=sk;w<b&&(A*=-1,T=uk);const O=g.some(ok);v=[];for(let R=b;T(R,w);R+=A){let H;if(f)H=String.fromCharCode(R),H==="\\"&&(H="");else if(H=String(R),O){const F=E-H.length;if(F>0){const I=new Array(F+1).join("0");R<0?H="-"+I+H.slice(1):H=I+H}}v.push(H)}}else{v=[];for(let b=0;b<g.length;b++)v.push.apply(v,oo(g[b],!1))}for(let b=0;b<v.length;b++)for(let w=0;w<s.length;w++){const E=l+v[b]+s[w];(!t||d||E)&&r.push(E)}}return r}const ck=1024*64,Yu=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>ck)throw new TypeError("pattern is too long")},fk={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},ao=e=>e.replace(/[[\]\\-]/g,"\\$&"),dk=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),h5=e=>e.join(""),hk=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const i=[],l=[];let s=r+1,c=!1,f=!1,d=!1,h=!1,g=r,v="";e:for(;s<e.length;){const A=e.charAt(s);if((A==="!"||A==="^")&&s===r+1){h=!0,s++;continue}if(A==="]"&&c&&!d){g=s+1;break}if(c=!0,A==="\\"&&!d){d=!0,s++;continue}if(A==="["&&!d){for(const[T,[N,O,R]]of Object.entries(fk))if(e.startsWith(T,s)){if(v)return["$.",!1,e.length-r,!0];s+=T.length,R?l.push(N):i.push(N),f=f||O;continue e}}if(d=!1,v){A>v?i.push(ao(v)+"-"+ao(A)):A===v&&i.push(ao(A)),v="",s++;continue}if(e.startsWith("-]",s+1)){i.push(ao(A+"-")),s+=2;continue}if(e.startsWith("-",s+1)){v=A,s+=2;continue}i.push(ao(A)),s++}if(g<s)return["",!1,0,!1];if(!i.length&&!l.length)return["$.",!1,e.length-r,!0];if(l.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!h){const A=i[0].length===2?i[0].slice(-1):i[0];return[dk(A),!1,g-r,!1]}const b="["+(h?"^":"")+h5(i)+"]",w="["+(h?"":"^")+h5(l)+"]";return[i.length&&l.length?"("+b+"|"+w+")":i.length?b:w,f,g-r,!0]},so=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!0}={})=>r?t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"):t?e.replace(/\[([^\/\\{}])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\{}])\]/g,"$1$2").replace(/\\([^\/{}])/g,"$1"),mk=new Set(["!","?","+","*","@"]),m5=e=>mk.has(e),pk="(?!(?:^|/)\\.\\.?(?:$|/))",mu="(?!\\.)",gk=new Set(["[","."]),vk=new Set(["..","."]),yk=new Set("().*{}+?[]^$\\!"),bk=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Oh="[^/]",p5=Oh+"*?",g5=Oh+"+?";var Yt,Xt,la,gt,Bt,Za,ji,Wa,Ar,Bi,ko,Ui,n7,ti,Du,F1,r7;const cn=class cn{constructor(t,r,i={}){An(this,Ui);Gt(this,"type");An(this,Yt);An(this,Xt);An(this,la,!1);An(this,gt,[]);An(this,Bt);An(this,Za);An(this,ji);An(this,Wa,!1);An(this,Ar);An(this,Bi);An(this,ko,!1);this.type=t,t&&zt(this,Xt,!0),zt(this,Bt,r),zt(this,Yt,me(this,Bt)?me(me(this,Bt),Yt):this),zt(this,Ar,me(this,Yt)===this?i:me(me(this,Yt),Ar)),zt(this,ji,me(this,Yt)===this?[]:me(me(this,Yt),ji)),t==="!"&&!me(me(this,Yt),Wa)&&me(this,ji).push(this),zt(this,Za,me(this,Bt)?me(me(this,Bt),gt).length:0)}get hasMagic(){if(me(this,Xt)!==void 0)return me(this,Xt);for(const t of me(this,gt))if(typeof t!="string"&&(t.type||t.hasMagic))return zt(this,Xt,!0);return me(this,Xt)}toString(){return me(this,Bi)!==void 0?me(this,Bi):this.type?zt(this,Bi,this.type+"("+me(this,gt).map(t=>String(t)).join("|")+")"):zt(this,Bi,me(this,gt).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof cn&&me(r,Bt)===this))throw new Error("invalid part: "+r);me(this,gt).push(r)}}toJSON(){var r;const t=this.type===null?me(this,gt).slice().map(i=>typeof i=="string"?i:i.toJSON()):[this.type,...me(this,gt).map(i=>i.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===me(this,Yt)||me(me(this,Yt),Wa)&&((r=me(this,Bt))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(me(this,Yt)===this)return!0;if(!((r=me(this,Bt))!=null&&r.isStart()))return!1;if(me(this,Za)===0)return!0;const t=me(this,Bt);for(let i=0;i<me(this,Za);i++){const l=me(t,gt)[i];if(!(l instanceof cn&&l.type==="!"))return!1}return!0}isEnd(){var r,i,l;if(me(this,Yt)===this||((r=me(this,Bt))==null?void 0:r.type)==="!")return!0;if(!((i=me(this,Bt))!=null&&i.isEnd()))return!1;if(!this.type)return(l=me(this,Bt))==null?void 0:l.isEnd();const t=me(this,Bt)?me(me(this,Bt),gt).length:0;return me(this,Za)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new cn(this.type,t);for(const i of me(this,gt))r.copyIn(i);return r}static fromGlob(t,r={}){var l;const i=new cn(null,void 0,r);return Pa(l=cn,ti,Du).call(l,t,i,0,r),i}toMMPattern(){if(this!==me(this,Yt))return me(this,Yt).toMMPattern();const t=this.toString(),[r,i,l,s]=this.toRegExpSource();if(!(l||me(this,Xt)||me(this,Ar).nocase&&!me(this,Ar).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;const f=(me(this,Ar).nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,f),{_src:r,_glob:t})}get options(){return me(this,Ar)}toRegExpSource(t){var d;const r=t??!!me(this,Ar).dot;if(me(this,Yt)===this&&Pa(this,Ui,n7).call(this),!this.type){const h=this.isStart()&&this.isEnd()&&!me(this,gt).some(E=>typeof E!="string"),g=me(this,gt).map(E=>{var R;const[A,T,N,O]=typeof E=="string"?Pa(R=cn,ti,r7).call(R,E,me(this,Xt),h):E.toRegExpSource(t);return zt(this,Xt,me(this,Xt)||N),zt(this,la,me(this,la)||O),A}).join("");let v="";if(this.isStart()&&typeof me(this,gt)[0]=="string"&&!(me(this,gt).length===1&&vk.has(me(this,gt)[0]))){const A=gk,T=r&&A.has(g.charAt(0))||g.startsWith("\\.")&&A.has(g.charAt(2))||g.startsWith("\\.\\.")&&A.has(g.charAt(4)),N=!r&&!t&&A.has(g.charAt(0));v=T?pk:N?mu:""}let b="";return this.isEnd()&&me(me(this,Yt),Wa)&&((d=me(this,Bt))==null?void 0:d.type)==="!"&&(b="(?:$|\\/)"),[v+g+b,so(g),zt(this,Xt,!!me(this,Xt)),me(this,la)]}const i=this.type==="*"||this.type==="+",l=this.type==="!"?"(?:(?!(?:":"(?:";let s=Pa(this,Ui,F1).call(this,r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){const h=this.toString();return zt(this,gt,[h]),this.type=null,zt(this,Xt,void 0),[h,so(this.toString()),!1,!1]}let c=!i||t||r||!mu?"":Pa(this,Ui,F1).call(this,!0);c===s&&(c=""),c&&(s=`(?:${s})(?:${c})*?`);let f="";if(this.type==="!"&&me(this,ko))f=(this.isStart()&&!r?mu:"")+g5;else{const h=this.type==="!"?"))"+(this.isStart()&&!r&&!t?mu:"")+p5+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&c?")":this.type==="*"&&c?")?":`)${this.type}`;f=l+s+h}return[f,so(s),zt(this,Xt,!!me(this,Xt)),me(this,la)]}};Yt=new WeakMap,Xt=new WeakMap,la=new WeakMap,gt=new WeakMap,Bt=new WeakMap,Za=new WeakMap,ji=new WeakMap,Wa=new WeakMap,Ar=new WeakMap,Bi=new WeakMap,ko=new WeakMap,Ui=new WeakSet,n7=function(){if(this!==me(this,Yt))throw new Error("should only call on root");if(me(this,Wa))return this;this.toString(),zt(this,Wa,!0);let t;for(;t=me(this,ji).pop();){if(t.type!=="!")continue;let r=t,i=me(r,Bt);for(;i;){for(let l=me(r,Za)+1;!i.type&&l<me(i,gt).length;l++)for(const s of me(t,gt)){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(me(i,gt)[l])}r=i,i=me(r,Bt)}}return this},ti=new WeakSet,Du=function(t,r,i,l){var w,E;let s=!1,c=!1,f=-1,d=!1;if(r.type===null){let A=i,T="";for(;A<t.length;){const N=t.charAt(A++);if(s||N==="\\"){s=!s,T+=N;continue}if(c){A===f+1?(N==="^"||N==="!")&&(d=!0):N==="]"&&!(A===f+2&&d)&&(c=!1),T+=N;continue}else if(N==="["){c=!0,f=A,d=!1,T+=N;continue}if(!l.noext&&m5(N)&&t.charAt(A)==="("){r.push(T),T="";const O=new cn(N,r);A=Pa(w=cn,ti,Du).call(w,t,O,A,l),r.push(O);continue}T+=N}return r.push(T),A}let h=i+1,g=new cn(null,r);const v=[];let b="";for(;h<t.length;){const A=t.charAt(h++);if(s||A==="\\"){s=!s,b+=A;continue}if(c){h===f+1?(A==="^"||A==="!")&&(d=!0):A==="]"&&!(h===f+2&&d)&&(c=!1),b+=A;continue}else if(A==="["){c=!0,f=h,d=!1,b+=A;continue}if(m5(A)&&t.charAt(h)==="("){g.push(b),b="";const T=new cn(A,g);g.push(T),h=Pa(E=cn,ti,Du).call(E,t,T,h,l);continue}if(A==="|"){g.push(b),b="",v.push(g),g=new cn(null,r);continue}if(A===")")return b===""&&me(r,gt).length===0&&zt(r,ko,!0),g.push(b),b="",r.push(...v,g),h;b+=A}return r.type=null,zt(r,Xt,void 0),zt(r,gt,[t.substring(i-1)]),h},F1=function(t){return me(this,gt).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[i,l,s,c]=r.toRegExpSource(t);return zt(this,la,me(this,la)||c),i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},r7=function(t,r,i=!1){let l=!1,s="",c=!1;for(let f=0;f<t.length;f++){const d=t.charAt(f);if(l){l=!1,s+=(yk.has(d)?"\\":"")+d;continue}if(d==="\\"){f===t.length-1?s+="\\\\":l=!0;continue}if(d==="["){const[h,g,v,b]=hk(t,f);if(v){s+=h,c=c||g,f+=v-1,r=r||b;continue}}if(d==="*"){s+=i&&t==="*"?g5:p5,r=!0;continue}if(d==="?"){s+=Oh,r=!0;continue}s+=bk(d)}return[s,so(t),!!r,c]},An(cn,ti);let Pu=cn;const xk=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!1}={})=>r?t?e.replace(/[?*()[\]{}]/g,"[$&]"):e.replace(/[?*()[\]\\{}]/g,"\\$&"):t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&");var c1={};const an=(e,t,r={})=>(Yu(t),!r.nocomment&&t.charAt(0)==="#"?!1:new mc(t,r).match(e)),wk=/^\*+([^+@!?\*\[\(]*)$/,Sk=e=>t=>!t.startsWith(".")&&t.endsWith(e),Ak=e=>t=>t.endsWith(e),Mk=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),Ek=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),Tk=/^\*+\.\*+$/,Ck=e=>!e.startsWith(".")&&e.includes("."),kk=e=>e!=="."&&e!==".."&&e.includes("."),Nk=/^\.\*+$/,zk=e=>e!=="."&&e!==".."&&e.startsWith("."),Dk=/^\*+$/,Ok=e=>e.length!==0&&!e.startsWith("."),Rk=e=>e.length!==0&&e!=="."&&e!=="..",Lk=/^\?+([^+@!?\*\[\(]*)?$/,jk=([e,t=""])=>{const r=a7([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},Bk=([e,t=""])=>{const r=i7([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},_k=([e,t=""])=>{const r=i7([e]);return t?i=>r(i)&&i.endsWith(t):r},Hk=([e,t=""])=>{const r=a7([e]);return t?i=>r(i)&&i.endsWith(t):r},a7=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},i7=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},l7=typeof process=="object"&&process?typeof c1=="object"&&c1&&c1.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",v5={win32:{sep:"\\"},posix:{sep:"/"}},qk=l7==="win32"?v5.win32.sep:v5.posix.sep;an.sep=qk;const er=Symbol("globstar **");an.GLOBSTAR=er;const Uk="[^/]",Gk=Uk+"*?",Fk="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Yk="(?:(?!(?:\\/|^)\\.).)*?",Pk=(e,t={})=>r=>an(r,e,t);an.filter=Pk;const Jn=(e,t={})=>Object.assign({},e,t),Vk=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return an;const t=an;return Object.assign((i,l,s={})=>t(i,l,Jn(e,s)),{Minimatch:class extends t.Minimatch{constructor(l,s={}){super(l,Jn(e,s))}static defaults(l){return t.defaults(Jn(e,l)).Minimatch}},AST:class extends t.AST{constructor(l,s,c={}){super(l,s,Jn(e,c))}static fromGlob(l,s={}){return t.AST.fromGlob(l,Jn(e,s))}},unescape:(i,l={})=>t.unescape(i,Jn(e,l)),escape:(i,l={})=>t.escape(i,Jn(e,l)),filter:(i,l={})=>t.filter(i,Jn(e,l)),defaults:i=>t.defaults(Jn(e,i)),makeRe:(i,l={})=>t.makeRe(i,Jn(e,l)),braceExpand:(i,l={})=>t.braceExpand(i,Jn(e,l)),match:(i,l,s={})=>t.match(i,l,Jn(e,s)),sep:t.sep,GLOBSTAR:er})};an.defaults=Vk;const o7=(e,t={})=>(Yu(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:ik(e));an.braceExpand=o7;const Ik=(e,t={})=>new mc(e,t).makeRe();an.makeRe=Ik;const Xk=(e,t,r={})=>{const i=new mc(t,r);return e=e.filter(l=>i.match(l)),i.options.nonull&&!e.length&&e.push(t),e};an.match=Xk;const y5=/[?*]|[+@!]\(.*?\)|\[|\]/,$k=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class mc{constructor(t,r={}){Gt(this,"options");Gt(this,"set");Gt(this,"pattern");Gt(this,"windowsPathsNoEscape");Gt(this,"nonegate");Gt(this,"negate");Gt(this,"comment");Gt(this,"empty");Gt(this,"preserveMultipleSlashes");Gt(this,"partial");Gt(this,"globSet");Gt(this,"globParts");Gt(this,"nocase");Gt(this,"isWindows");Gt(this,"platform");Gt(this,"windowsNoMagicRoot");Gt(this,"regexp");Yu(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||l7,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){const t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);const i=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let l=this.globParts.map((s,c,f)=>{if(this.isWindows&&this.windowsNoMagicRoot){const d=s[0]===""&&s[1]===""&&(s[2]==="?"||!y5.test(s[2]))&&!y5.test(s[3]),h=/^[a-z]:/i.test(s[0]);if(d)return[...s.slice(0,4),...s.slice(4).map(g=>this.parse(g))];if(h)return[s[0],...s.slice(1).map(g=>this.parse(g))]}return s.map(d=>this.parse(d))});if(this.debug(this.pattern,l),this.set=l.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){const c=this.set[s];c[0]===""&&c[1]===""&&this.globParts[s][2]==="?"&&typeof c[3]=="string"&&/^[a-z]:$/i.test(c[3])&&(c[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let i=0;i<t.length;i++)for(let l=0;l<t[i].length;l++)t[i][l]==="**"&&(t[i][l]="*");const{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let l=i;for(;r[l+1]==="**";)l++;l!==i&&r.splice(i,l-i)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((i,l)=>{const s=i[i.length-1];return l==="**"&&s==="**"?i:l===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(i.pop(),i):(i.push(l),i)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let l=1;l<t.length-1;l++){const s=t[l];l===1&&s===""&&t[0]===""||(s==="."||s==="")&&(r=!0,t.splice(l,1),l--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let i=0;for(;(i=t.indexOf("..",i+1))!==-1;){const l=t[i-1];l&&l!=="."&&l!==".."&&l!=="**"&&(r=!0,t.splice(i-1,2),i-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let i of t){let l=-1;for(;(l=i.indexOf("**",l+1))!==-1;){let c=l;for(;i[c+1]==="**";)c++;c>l&&i.splice(l+1,c-l);let f=i[l+1];const d=i[l+2],h=i[l+3];if(f!==".."||!d||d==="."||d===".."||!h||h==="."||h==="..")continue;r=!0,i.splice(l,1);const g=i.slice(0);g[l]="**",t.push(g),l--}if(!this.preserveMultipleSlashes){for(let c=1;c<i.length-1;c++){const f=i[c];c===1&&f===""&&i[0]===""||(f==="."||f==="")&&(r=!0,i.splice(c,1),c--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(r=!0,i.pop())}let s=0;for(;(s=i.indexOf("..",s+1))!==-1;){const c=i[s-1];if(c&&c!=="."&&c!==".."&&c!=="**"){r=!0;const d=s===1&&i[s+1]==="**"?["."]:[];i.splice(s-1,2,...d),i.length===0&&i.push(""),s-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let i=r+1;i<t.length;i++){const l=this.partsMatch(t[r],t[i],!this.preserveMultipleSlashes);if(l){t[r]=[],t[i]=l;break}}return t.filter(r=>r.length)}partsMatch(t,r,i=!1){let l=0,s=0,c=[],f="";for(;l<t.length&&s<r.length;)if(t[l]===r[s])c.push(f==="b"?r[s]:t[l]),l++,s++;else if(i&&t[l]==="**"&&r[s]===t[l+1])c.push(t[l]),l++;else if(i&&r[s]==="**"&&t[l]===r[s+1])c.push(r[s]),s++;else if(t[l]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(f==="b")return!1;f="a",c.push(t[l]),l++,s++}else if(r[s]==="*"&&t[l]&&(this.options.dot||!t[l].startsWith("."))&&t[l]!=="**"){if(f==="a")return!1;f="b",c.push(r[s]),l++,s++}else return!1;return t.length===r.length&&c}parseNegate(){if(this.nonegate)return;const t=this.pattern;let r=!1,i=0;for(let l=0;l<t.length&&t.charAt(l)==="!";l++)r=!r,i++;i&&(this.pattern=t.slice(i)),this.negate=r}matchOne(t,r,i=!1){const l=this.options;if(this.isWindows){const A=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),T=!A&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),N=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),O=!N&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),R=T?3:A?0:void 0,H=O?3:N?0:void 0;if(typeof R=="number"&&typeof H=="number"){const[F,I]=[t[R],r[H]];F.toLowerCase()===I.toLowerCase()&&(r[H]=F,H>R?r=r.slice(H):R>H&&(t=t.slice(R)))}}const{optimizationLevel:s=1}=this.options;s>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var c=0,f=0,d=t.length,h=r.length;c<d&&f<h;c++,f++){this.debug("matchOne loop");var g=r[f],v=t[c];if(this.debug(r,g,v),g===!1)return!1;if(g===er){this.debug("GLOBSTAR",[r,g,v]);var b=c,w=f+1;if(w===h){for(this.debug("** at the end");c<d;c++)if(t[c]==="."||t[c]===".."||!l.dot&&t[c].charAt(0)===".")return!1;return!0}for(;b<d;){var E=t[b];if(this.debug(`
192
+ globstar while`,t,b,r,w,E),this.matchOne(t.slice(b),r.slice(w),i))return this.debug("globstar found match!",b,d,E),!0;if(E==="."||E===".."||!l.dot&&E.charAt(0)==="."){this.debug("dot detected!",t,b,r,w);break}this.debug("globstar swallow a segment, and continue"),b++}return!!(i&&(this.debug(`
193
+ >>> no match, partial?`,t,b,r,w),b===d))}let A;if(typeof g=="string"?(A=v===g,this.debug("string match",g,v,A)):(A=g.test(v),this.debug("pattern match",g,v,A)),!A)return!1}if(c===d&&f===h)return!0;if(c===d)return i;if(f===h)return c===d-1&&t[c]==="";throw new Error("wtf?")}braceExpand(){return o7(this.pattern,this.options)}parse(t){Yu(t);const r=this.options;if(t==="**")return er;if(t==="")return"";let i,l=null;(i=t.match(Dk))?l=r.dot?Rk:Ok:(i=t.match(wk))?l=(r.nocase?r.dot?Ek:Mk:r.dot?Ak:Sk)(i[1]):(i=t.match(Lk))?l=(r.nocase?r.dot?Bk:jk:r.dot?_k:Hk)(i):(i=t.match(Tk))?l=r.dot?kk:Ck:(i=t.match(Nk))&&(l=zk);const s=Pu.fromGlob(t,this.options).toMMPattern();return l&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:l}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const r=this.options,i=r.noglobstar?Gk:r.dot?Fk:Yk,l=new Set(r.nocase?["i"]:[]);let s=t.map(d=>{const h=d.map(v=>{if(v instanceof RegExp)for(const b of v.flags.split(""))l.add(b);return typeof v=="string"?$k(v):v===er?er:v._src});h.forEach((v,b)=>{const w=h[b+1],E=h[b-1];v!==er||E===er||(E===void 0?w!==void 0&&w!==er?h[b+1]="(?:\\/|"+i+"\\/)?"+w:h[b]=i:w===void 0?h[b-1]=E+"(?:\\/|\\/"+i+")?":w!==er&&(h[b-1]=E+"(?:\\/|\\/"+i+"\\/)"+w,h[b+1]=er))});const g=h.filter(v=>v!==er);if(this.partial&&g.length>=1){const v=[];for(let b=1;b<=g.length;b++)v.push(g.slice(0,b).join("/"));return"(?:"+v.join("|")+")"}return g.join("/")}).join("|");const[c,f]=t.length>1?["(?:",")"]:["",""];s="^"+c+s+f+"$",this.partial&&(s="^(?:\\/|"+c+s.slice(1,-1)+f+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...l].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;const i=this.options;this.isWindows&&(t=t.split("\\").join("/"));const l=this.slashSplit(t);this.debug(this.pattern,"split",l);const s=this.set;this.debug(this.pattern,"set",s);let c=l[l.length-1];if(!c)for(let f=l.length-2;!c&&f>=0;f--)c=l[f];for(let f=0;f<s.length;f++){const d=s[f];let h=l;if(i.matchBase&&d.length===1&&(h=[c]),this.matchOne(h,d,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(t){return an.defaults(t).Minimatch}}an.AST=Pu;an.Minimatch=mc;an.escape=xk;an.unescape=so;function Kk(e){e.sort((t,r)=>{const i=f=>(f.match(/\d+/g)||[]).map(Number),l=i(t),s=i(r),c=Math.max(l.length,s.length);for(let f=0;f<c;f++){const d=(l[f]??0)-(s[f]??0);if(d!==0)return d}return t.localeCompare(r)})}function Qk(e,t){const r=new Map;e.forEach(l=>{if(l.endsWith("_light.png")){const s=l.replace("_light.png",""),c=r.get(s)||{};c.light=l,r.set(s,c)}else if(l.endsWith("_dark.png")){const s=l.replace("_dark.png",""),c=r.get(s)||{};c.dark=l,r.set(s,c)}else r.set(l,{original:l})});const i=[];return r.forEach((l,s)=>{if(l.original)i.push(l.original);else{const c=t==="dark",f=c?l.dark:l.light,d=c?l.light:l.dark;i.push(f||d||s)}}),i}function Zk({path:e,globs:t=null,limit:r,page:i=0}){const{resolvedTheme:l}=O6();let s=e;const{directory:c}=fh(s),f=M.useMemo(()=>{if(!c)return[];let h=c.children.filter(v=>!!v.name.match(/\.(png|jpeg|gif|svg|webp)$/i)&&v.type==="file").map(v=>v.path);t&&t.length>0&&(h=h.filter(v=>t.some(b=>an(v.split("/").pop()||"",b)))),Kk(h);let g=Qk(h,l);return r&&(g=g.slice(i*r,(i+1)*r)),g},[c,t,l,r,i]);return{paths:f,isLoading:!c,isEmpty:c!==void 0&&f.length===0}}function Wk(e,t={}){const{enabled:r=!0,ignoreModifiers:i=!0}=t;M.useEffect(()=>{const l=s=>{if((typeof r=="function"?r():r)&&!(i&&(s.metaKey||s.ctrlKey||s.altKey)&&!e.some(d=>{const h=d.modifiers||{};return h.meta||h.ctrl||h.alt})))for(const f of e){const d=Array.isArray(f.key)?f.key:[f.key],h=f.modifiers||{};if(d.includes(s.key)&&!(h.meta!==void 0&&h.meta!==s.metaKey)&&!(h.ctrl!==void 0&&h.ctrl!==s.ctrlKey)&&!(h.alt!==void 0&&h.alt!==s.altKey)&&!(h.shift!==void 0&&h.shift!==s.shiftKey)&&!(i&&!f.modifiers&&(s.metaKey||s.ctrlKey||s.altKey))){f.preventDefault!==!1&&s.preventDefault(),f.action();return}}};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[e,r,i])}function Jk(e){const[t,r]=M.useState(null),i=M.useCallback(f=>{r(f)},[]),l=M.useCallback(()=>{r(null)},[]),s=M.useCallback(()=>{r(f=>f!==null&&f>0?f-1:f)},[]),c=M.useCallback(()=>{r(f=>f!==null&&f<e-1?f+1:f)},[e]);return Wk([{key:"Escape",action:l},{key:"ArrowLeft",action:s},{key:"ArrowRight",action:c}],{enabled:()=>t!==null}),{selectedIndex:t,open:i,close:l,goToPrevious:s,goToNext:c,isOpen:t!==null}}function eN({className:e,wrapperClassName:t,...r}){const[i,l]=M.useState(!0),[s,c]=M.useState(!1);return k.jsxs("div",{className:ct("relative",t),children:[i&&!s&&k.jsx("div",{className:"absolute inset-0 bg-muted/30 animate-pulse flex items-center justify-center",children:k.jsx("div",{className:"w-8 h-8 border border-border/50 rounded-sm"})}),s&&k.jsx("div",{className:"absolute inset-0 bg-muted/20 flex items-center justify-center",children:k.jsxs("div",{className:"text-center",children:[k.jsx(ag,{className:"h-5 w-5 text-muted-foreground/40 mx-auto"}),k.jsx("span",{className:"text-xs text-muted-foreground/40 mt-1.5 block font-mono",children:"failed"})]})}),k.jsx("img",{...r,className:ct(e,"transition-opacity duration-500 ease-out-expo",i&&"opacity-0",s&&"opacity-0"),onLoad:f=>{var d;l(!1),(d=r.onLoad)==null||d.call(r,f)},onError:f=>{var d;l(!1),c(!0),(d=r.onError)==null||d.call(r,f)}})]})}class En{constructor(t,r,i){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=r,this.end=i}static range(t,r){return r?!t||!t.loc||!r.loc||t.loc.lexer!==r.loc.lexer?null:new En(t.loc.lexer,t.loc.start,r.loc.end):t&&t.loc}}class Gn{constructor(t,r){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=r}range(t,r){return new Gn(r,En.range(this,t))}}class fe{constructor(t,r){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var i="KaTeX parse error: "+t,l,s,c=r&&r.loc;if(c&&c.start<=c.end){var f=c.lexer.input;l=c.start,s=c.end,l===f.length?i+=" at end of input: ":i+=" at position "+(l+1)+": ";var d=f.slice(l,s).replace(/[^]/g,"$&̲"),h;l>15?h="…"+f.slice(l-15,l):h=f.slice(0,l);var g;s+15<f.length?g=f.slice(s,s+15)+"…":g=f.slice(s),i+=h+d+g}var v=new Error(i);return v.name="ParseError",v.__proto__=fe.prototype,v.position=l,l!=null&&s!=null&&(v.length=s-l),v.rawMessage=t,v}}fe.prototype.__proto__=Error.prototype;var tN=function(t,r){return t===void 0?r:t},nN=/([A-Z])/g,rN=function(t){return t.replace(nN,"-$1").toLowerCase()},aN={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},iN=/[&><"']/g;function lN(e){return String(e).replace(iN,t=>aN[t])}var s7=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},oN=function(t){var r=s7(t);return r.type==="mathord"||r.type==="textord"||r.type==="atom"},sN=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},uN=function(t){var r=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(t);return r?r[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1])?null:r[1].toLowerCase():"_relative"},nt={deflt:tN,escape:lN,hyphenate:rN,getBaseElem:s7,isCharacterBox:oN,protocolFromUrl:uN},Ou={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function cN(e){if(e.default)return e.default;var t=e.type,r=Array.isArray(t)?t[0]:t;if(typeof r!="string")return r.enum[0];switch(r){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class Rh{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var r in Ou)if(Ou.hasOwnProperty(r)){var i=Ou[r];this[r]=t[r]!==void 0?i.processor?i.processor(t[r]):t[r]:cN(i)}}reportNonstrict(t,r,i){var l=this.strict;if(typeof l=="function"&&(l=l(t,r,i)),!(!l||l==="ignore")){if(l===!0||l==="error")throw new fe("LaTeX-incompatible input and strict mode is set to 'error': "+(r+" ["+t+"]"),i);l==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+l+"': "+r+" ["+t+"]"))}}useStrictBehavior(t,r,i){var l=this.strict;if(typeof l=="function")try{l=l(t,r,i)}catch{l="error"}return!l||l==="ignore"?!1:l===!0||l==="error"?!0:l==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(r+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+l+"': "+r+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var r=nt.protocolFromUrl(t.url);if(r==null)return!1;t.protocol=r}var i=typeof this.trust=="function"?this.trust(t):this.trust;return!!i}}class Xa{constructor(t,r,i){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=r,this.cramped=i}sup(){return Mr[fN[this.id]]}sub(){return Mr[dN[this.id]]}fracNum(){return Mr[hN[this.id]]}fracDen(){return Mr[mN[this.id]]}cramp(){return Mr[pN[this.id]]}text(){return Mr[gN[this.id]]}isTight(){return this.size>=2}}var Lh=0,Vu=1,Yl=2,ua=3,xo=4,tr=5,Il=6,dn=7,Mr=[new Xa(Lh,0,!1),new Xa(Vu,0,!0),new Xa(Yl,1,!1),new Xa(ua,1,!0),new Xa(xo,2,!1),new Xa(tr,2,!0),new Xa(Il,3,!1),new Xa(dn,3,!0)],fN=[xo,tr,xo,tr,Il,dn,Il,dn],dN=[tr,tr,tr,tr,dn,dn,dn,dn],hN=[Yl,ua,xo,tr,Il,dn,Il,dn],mN=[ua,ua,tr,tr,dn,dn,dn,dn],pN=[Vu,Vu,ua,ua,tr,tr,dn,dn],gN=[Lh,Vu,Yl,ua,Yl,ua,Yl,ua],Le={DISPLAY:Mr[Lh],TEXT:Mr[Yl],SCRIPT:Mr[xo],SCRIPTSCRIPT:Mr[Il]},Y1=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function vN(e){for(var t=0;t<Y1.length;t++)for(var r=Y1[t],i=0;i<r.blocks.length;i++){var l=r.blocks[i];if(e>=l[0]&&e<=l[1])return r.name}return null}var Ru=[];Y1.forEach(e=>e.blocks.forEach(t=>Ru.push(...t)));function u7(e){for(var t=0;t<Ru.length;t+=2)if(e>=Ru[t]&&e<=Ru[t+1])return!0;return!1}var _l=80,yN=function(t,r){return"M95,"+(622+t+r)+`
194
+ c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
195
+ c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
196
+ c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
197
+ s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
198
+ c69,-144,104.5,-217.7,106.5,-221
199
+ l`+t/2.075+" -"+t+`
200
+ c5.3,-9.3,12,-14,20,-14
201
+ H400000v`+(40+t)+`H845.2724
202
+ s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
203
+ c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
204
+ M`+(834+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},bN=function(t,r){return"M263,"+(601+t+r)+`c0.7,0,18,39.7,52,119
205
+ c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
206
+ c340,-704.7,510.7,-1060.3,512,-1067
207
+ l`+t/2.084+" -"+t+`
208
+ c4.7,-7.3,11,-11,19,-11
209
+ H40000v`+(40+t)+`H1012.3
210
+ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
211
+ c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
212
+ s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
213
+ c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
214
+ M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},xN=function(t,r){return"M983 "+(10+t+r)+`
215
+ l`+t/3.13+" -"+t+`
216
+ c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+`
217
+ H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
218
+ s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
219
+ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
220
+ c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
221
+ c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
222
+ c53.7,-170.3,84.5,-266.8,92.5,-289.5z
223
+ M`+(1001+t)+" "+r+"h400000v"+(40+t)+"h-400000z"},wN=function(t,r){return"M424,"+(2398+t+r)+`
224
+ c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
225
+ c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
226
+ s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
227
+ s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
228
+ l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000
229
+ v`+(40+t)+`H1014.6
230
+ s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
231
+ c-2,6,-10,9,-24,9
232
+ c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+r+`
233
+ h400000v`+(40+t)+"h-400000z"},SN=function(t,r){return"M473,"+(2713+t+r)+`
234
+ c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+`
235
+ c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7
236
+ s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
237
+ c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
238
+ c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
239
+ s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
240
+ 606zM`+(1001+t)+" "+r+"h400000v"+(40+t)+"H1017.7z"},AN=function(t){var r=t/2;return"M400000 "+t+" H0 L"+r+" 0 l65 45 L145 "+(t-80)+" H400000z"},MN=function(t,r,i){var l=i-54-r-t;return"M702 "+(t+r)+"H400000"+(40+t)+`
241
+ H742v`+l+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
242
+ h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
243
+ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
244
+ 219 661 l218 661zM702 `+r+"H400000v"+(40+t)+"H742z"},EN=function(t,r,i){r=1e3*r;var l="";switch(t){case"sqrtMain":l=yN(r,_l);break;case"sqrtSize1":l=bN(r,_l);break;case"sqrtSize2":l=xN(r,_l);break;case"sqrtSize3":l=wN(r,_l);break;case"sqrtSize4":l=SN(r,_l);break;case"sqrtTall":l=MN(r,_l,i)}return l},TN=function(t,r){switch(t){case"⎜":return"M291 0 H417 V"+r+" H291z M291 0 H417 V"+r+" H291z";case"∣":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z";case"∥":return"M145 0 H188 V"+r+" H145z M145 0 H188 V"+r+" H145z"+("M367 0 H410 V"+r+" H367z M367 0 H410 V"+r+" H367z");case"⎟":return"M457 0 H583 V"+r+" H457z M457 0 H583 V"+r+" H457z";case"⎢":return"M319 0 H403 V"+r+" H319z M319 0 H403 V"+r+" H319z";case"⎥":return"M263 0 H347 V"+r+" H263z M263 0 H347 V"+r+" H263z";case"⎪":return"M384 0 H504 V"+r+" H384z M384 0 H504 V"+r+" H384z";case"⏐":return"M312 0 H355 V"+r+" H312z M312 0 H355 V"+r+" H312z";case"‖":return"M257 0 H300 V"+r+" H257z M257 0 H300 V"+r+" H257z"+("M478 0 H521 V"+r+" H478z M478 0 H521 V"+r+" H478z");default:return""}},b5={doubleleftarrow:`M262 157
245
+ l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
246
+ 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
247
+ 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
248
+ c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
249
+ 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
250
+ -86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
251
+ -2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
252
+ m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
253
+ -10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
254
+ 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
255
+ -33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
256
+ -17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
257
+ -13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
258
+ c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
259
+ -107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
260
+ 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
261
+ -5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
262
+ c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
263
+ 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
264
+ 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
265
+ l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
266
+ -45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
267
+ 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
268
+ 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
269
+ 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
270
+ -331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
271
+ H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
272
+ 435 0h399565z`,leftgroupunder:`M400000 262
273
+ H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
274
+ 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
275
+ -3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
276
+ -18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
277
+ -196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
278
+ 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
279
+ -4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
280
+ -10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
281
+ m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
282
+ 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
283
+ 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
284
+ -152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
285
+ 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
286
+ -2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
287
+ v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
288
+ -83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
289
+ -68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
290
+ 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
291
+ M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
292
+ M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
293
+ -.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
294
+ c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
295
+ 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
296
+ M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
297
+ c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
298
+ -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
299
+ 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
300
+ 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
301
+ c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
302
+ 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
303
+ 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
304
+ -5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
305
+ -320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
306
+ m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
307
+ 60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
308
+ -451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
309
+ m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
310
+ c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
311
+ -480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
312
+ m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
313
+ 85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
314
+ -707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
315
+ m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
316
+ c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
317
+ -16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
318
+ 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
319
+ 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
320
+ -40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
321
+ -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
322
+ 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
323
+ -6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
324
+ s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
325
+ c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
326
+ 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
327
+ -174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
328
+ 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
329
+ 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
330
+ -3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
331
+ -10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
332
+ 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
333
+ -18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
334
+ 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
335
+ m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
336
+ 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
337
+ -7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
338
+ -27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
339
+ 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
340
+ 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
341
+ -64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
342
+ m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
343
+ 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
344
+ -13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
345
+ 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
346
+ M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
347
+ 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
348
+ -52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
349
+ -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
350
+ 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
351
+ -70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
352
+ -40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
353
+ -37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
354
+ 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
355
+ c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
356
+ 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
357
+ 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
358
+ -19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
359
+ 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
360
+ -2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
361
+ 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
362
+ 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
363
+ -68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
364
+ -8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
365
+ 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
366
+ c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
367
+ 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
368
+ -11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
369
+ 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
370
+ 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
371
+ -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
372
+ -11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
373
+ 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
374
+ 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
375
+ -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
376
+ 3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
377
+ 10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
378
+ -1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
379
+ -7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
380
+ H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
381
+ c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
382
+ c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
383
+ -11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
384
+ -11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
385
+ -11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
386
+ -5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
387
+ -11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
388
+ -11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
389
+ -11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
390
+ c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
391
+ c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
392
+ s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
393
+ 121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
394
+ s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
395
+ c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
396
+ M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
397
+ -27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
398
+ 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
399
+ -84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
400
+ -119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
401
+ -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
402
+ 151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
403
+ c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
404
+ c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
405
+ c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
406
+ c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
407
+ M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
408
+ c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
409
+ -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
410
+ c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
411
+ M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
412
+ c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
413
+ 1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
414
+ -152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
415
+ M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
416
+ c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
417
+ -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
418
+ c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
419
+ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},CN=function(t,r){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v1759 h347 v-84
420
+ H403z M403 1759 V0 H319 V1759 v`+r+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v1759 H0 v84 H347z
421
+ M347 1759 V0 H263 V1759 v`+r+" v1759 h84z";case"vert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
422
+ c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
423
+ c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+" v585 h43z";case"doublevert":return"M145 15 v585 v"+r+` v585 c2.667,10,9.667,15,21,15
424
+ c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
425
+ c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+r+` v585 h43z
426
+ M367 15 v585 v`+r+` v585 c2.667,10,9.667,15,21,15
427
+ c10,0,16.667,-5,20,-15 v-585 v`+-r+` v-585 c-2.667,-10,-9.667,-15,-21,-15
428
+ c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+r+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+r+` v1715 h263 v84 H319z
429
+ MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+r+` v1799 H0 v-84 H319z
430
+ MM319 602 V0 H403 V602 v`+r+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+r+` v602 h84z
431
+ M403 1759 V0 H319 V1759 v`+r+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+r+` v602 h84z
432
+ M347 1759 V0 h-84 V1759 v`+r+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
433
+ c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
434
+ -36,557 l0,`+(r+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
435
+ 949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
436
+ c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
437
+ -544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
438
+ l0,-`+(r+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
439
+ -210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
440
+ 63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
441
+ c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(r+9)+`
442
+ c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
443
+ c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
444
+ c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
445
+ c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
446
+ l0,-`+(r+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
447
+ -470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class Ho{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return this.classes.includes(t)}toNode(){for(var t=document.createDocumentFragment(),r=0;r<this.children.length;r++)t.appendChild(this.children[r].toNode());return t}toMarkup(){for(var t="",r=0;r<this.children.length;r++)t+=this.children[r].toMarkup();return t}toText(){var t=r=>r.toText();return this.children.map(t).join("")}}var Cr={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},pu={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},x5={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function kN(e,t){Cr[e]=t}function jh(e,t,r){if(!Cr[t])throw new Error("Font metrics not found for font: "+t+".");var i=e.charCodeAt(0),l=Cr[t][i];if(!l&&e[0]in x5&&(i=x5[e[0]].charCodeAt(0),l=Cr[t][i]),!l&&r==="text"&&u7(i)&&(l=Cr[t][77]),l)return{depth:l[0],height:l[1],italic:l[2],skew:l[3],width:l[4]}}var f1={};function NN(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!f1[t]){var r=f1[t]={cssEmPerMu:pu.quad[t]/18};for(var i in pu)pu.hasOwnProperty(i)&&(r[i]=pu[i][t])}return f1[t]}var zN=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],w5=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],S5=function(t,r){return r.size<2?t:zN[t-1][r.size-1]};class ia{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||ia.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=w5[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var r={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var i in t)t.hasOwnProperty(i)&&(r[i]=t[i]);return new ia(r)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:S5(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:w5[t-1]})}havingBaseStyle(t){t=t||this.style.text();var r=S5(ia.BASESIZE,t);return this.size===r&&this.textSize===ia.BASESIZE&&this.style===t?this:this.extend({style:t,size:r})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==ia.BASESIZE?["sizing","reset-size"+this.size,"size"+ia.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=NN(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}ia.BASESIZE=6;var P1={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},DN={ex:!0,em:!0,mu:!0},c7=function(t){return typeof t!="string"&&(t=t.unit),t in P1||t in DN||t==="ex"},wt=function(t,r){var i;if(t.unit in P1)i=P1[t.unit]/r.fontMetrics().ptPerEm/r.sizeMultiplier;else if(t.unit==="mu")i=r.fontMetrics().cssEmPerMu;else{var l;if(r.style.isTight()?l=r.havingStyle(r.style.text()):l=r,t.unit==="ex")i=l.fontMetrics().xHeight;else if(t.unit==="em")i=l.fontMetrics().quad;else throw new fe("Invalid unit: '"+t.unit+"'");l!==r&&(i*=l.sizeMultiplier/r.sizeMultiplier)}return Math.min(t.number*i,r.maxSize)},pe=function(t){return+t.toFixed(4)+"em"},li=function(t){return t.filter(r=>r).join(" ")},f7=function(t,r,i){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=i||{},r){r.style.isTight()&&this.classes.push("mtight");var l=r.getColor();l&&(this.style.color=l)}},d7=function(t){var r=document.createElement(t);r.className=li(this.classes);for(var i in this.style)this.style.hasOwnProperty(i)&&(r.style[i]=this.style[i]);for(var l in this.attributes)this.attributes.hasOwnProperty(l)&&r.setAttribute(l,this.attributes[l]);for(var s=0;s<this.children.length;s++)r.appendChild(this.children[s].toNode());return r},ON=/[\s"'>/=\x00-\x1f]/,h7=function(t){var r="<"+t;this.classes.length&&(r+=' class="'+nt.escape(li(this.classes))+'"');var i="";for(var l in this.style)this.style.hasOwnProperty(l)&&(i+=nt.hyphenate(l)+":"+this.style[l]+";");i&&(r+=' style="'+nt.escape(i)+'"');for(var s in this.attributes)if(this.attributes.hasOwnProperty(s)){if(ON.test(s))throw new fe("Invalid attribute name '"+s+"'");r+=" "+s+'="'+nt.escape(this.attributes[s])+'"'}r+=">";for(var c=0;c<this.children.length;c++)r+=this.children[c].toMarkup();return r+="</"+t+">",r};class qo{constructor(t,r,i,l){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,f7.call(this,t,i,l),this.children=r||[]}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return d7.call(this,"span")}toMarkup(){return h7.call(this,"span")}}class Bh{constructor(t,r,i,l){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,f7.call(this,r,l),this.children=i||[],this.setAttribute("href",t)}setAttribute(t,r){this.attributes[t]=r}hasClass(t){return this.classes.includes(t)}toNode(){return d7.call(this,"a")}toMarkup(){return h7.call(this,"a")}}class RN{constructor(t,r,i){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=r,this.src=t,this.classes=["mord"],this.style=i}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var r in this.style)this.style.hasOwnProperty(r)&&(t.style[r]=this.style[r]);return t}toMarkup(){var t='<img src="'+nt.escape(this.src)+'"'+(' alt="'+nt.escape(this.alt)+'"'),r="";for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=nt.hyphenate(i)+":"+this.style[i]+";");return r&&(t+=' style="'+nt.escape(r)+'"'),t+="'/>",t}}var LN={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class ar{constructor(t,r,i,l,s,c,f,d){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=t,this.height=r||0,this.depth=i||0,this.italic=l||0,this.skew=s||0,this.width=c||0,this.classes=f||[],this.style=d||{},this.maxFontSize=0;var h=vN(this.text.charCodeAt(0));h&&this.classes.push(h+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=LN[this.text])}hasClass(t){return this.classes.includes(t)}toNode(){var t=document.createTextNode(this.text),r=null;this.italic>0&&(r=document.createElement("span"),r.style.marginRight=pe(this.italic)),this.classes.length>0&&(r=r||document.createElement("span"),r.className=li(this.classes));for(var i in this.style)this.style.hasOwnProperty(i)&&(r=r||document.createElement("span"),r.style[i]=this.style[i]);return r?(r.appendChild(t),r):t}toMarkup(){var t=!1,r="<span";this.classes.length&&(t=!0,r+=' class="',r+=nt.escape(li(this.classes)),r+='"');var i="";this.italic>0&&(i+="margin-right:"+this.italic+"em;");for(var l in this.style)this.style.hasOwnProperty(l)&&(i+=nt.hyphenate(l)+":"+this.style[l]+";");i&&(t=!0,r+=' style="'+nt.escape(i)+'"');var s=nt.escape(this.text);return t?(r+=">",r+=s,r+="</span>",r):s}}class pa{constructor(t,r){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=r||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"svg");for(var i in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,i)&&r.setAttribute(i,this.attributes[i]);for(var l=0;l<this.children.length;l++)r.appendChild(this.children[l].toNode());return r}toMarkup(){var t='<svg xmlns="http://www.w3.org/2000/svg"';for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="'+nt.escape(this.attributes[r])+'"');t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</svg>",t}}class oi{constructor(t,r){this.pathName=void 0,this.alternate=void 0,this.pathName=t,this.alternate=r}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"path");return this.alternate?r.setAttribute("d",this.alternate):r.setAttribute("d",b5[this.pathName]),r}toMarkup(){return this.alternate?'<path d="'+nt.escape(this.alternate)+'"/>':'<path d="'+nt.escape(b5[this.pathName])+'"/>'}}class V1{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",r=document.createElementNS(t,"line");for(var i in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,i)&&r.setAttribute(i,this.attributes[i]);return r}toMarkup(){var t="<line";for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="'+nt.escape(this.attributes[r])+'"');return t+="/>",t}}function A5(e){if(e instanceof ar)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function jN(e){if(e instanceof qo)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var BN={bin:1,close:1,inner:1,open:1,punct:1,rel:1},_N={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},ht={math:{},text:{}};function y(e,t,r,i,l,s){ht[e][l]={font:t,group:r,replace:i},s&&i&&(ht[e][i]=ht[e][l])}var x="math",oe="text",C="main",L="ams",bt="accent-token",xe="bin",pn="close",e0="inner",Re="mathord",Ht="op-token",Fn="open",pc="punct",j="rel",ya="spacing",U="textord";y(x,C,j,"≡","\\equiv",!0);y(x,C,j,"≺","\\prec",!0);y(x,C,j,"≻","\\succ",!0);y(x,C,j,"∼","\\sim",!0);y(x,C,j,"⊥","\\perp");y(x,C,j,"⪯","\\preceq",!0);y(x,C,j,"⪰","\\succeq",!0);y(x,C,j,"≃","\\simeq",!0);y(x,C,j,"∣","\\mid",!0);y(x,C,j,"≪","\\ll",!0);y(x,C,j,"≫","\\gg",!0);y(x,C,j,"≍","\\asymp",!0);y(x,C,j,"∥","\\parallel");y(x,C,j,"⋈","\\bowtie",!0);y(x,C,j,"⌣","\\smile",!0);y(x,C,j,"⊑","\\sqsubseteq",!0);y(x,C,j,"⊒","\\sqsupseteq",!0);y(x,C,j,"≐","\\doteq",!0);y(x,C,j,"⌢","\\frown",!0);y(x,C,j,"∋","\\ni",!0);y(x,C,j,"∝","\\propto",!0);y(x,C,j,"⊢","\\vdash",!0);y(x,C,j,"⊣","\\dashv",!0);y(x,C,j,"∋","\\owns");y(x,C,pc,".","\\ldotp");y(x,C,pc,"⋅","\\cdotp");y(x,C,U,"#","\\#");y(oe,C,U,"#","\\#");y(x,C,U,"&","\\&");y(oe,C,U,"&","\\&");y(x,C,U,"ℵ","\\aleph",!0);y(x,C,U,"∀","\\forall",!0);y(x,C,U,"ℏ","\\hbar",!0);y(x,C,U,"∃","\\exists",!0);y(x,C,U,"∇","\\nabla",!0);y(x,C,U,"♭","\\flat",!0);y(x,C,U,"ℓ","\\ell",!0);y(x,C,U,"♮","\\natural",!0);y(x,C,U,"♣","\\clubsuit",!0);y(x,C,U,"℘","\\wp",!0);y(x,C,U,"♯","\\sharp",!0);y(x,C,U,"♢","\\diamondsuit",!0);y(x,C,U,"ℜ","\\Re",!0);y(x,C,U,"♡","\\heartsuit",!0);y(x,C,U,"ℑ","\\Im",!0);y(x,C,U,"♠","\\spadesuit",!0);y(x,C,U,"§","\\S",!0);y(oe,C,U,"§","\\S");y(x,C,U,"¶","\\P",!0);y(oe,C,U,"¶","\\P");y(x,C,U,"†","\\dag");y(oe,C,U,"†","\\dag");y(oe,C,U,"†","\\textdagger");y(x,C,U,"‡","\\ddag");y(oe,C,U,"‡","\\ddag");y(oe,C,U,"‡","\\textdaggerdbl");y(x,C,pn,"⎱","\\rmoustache",!0);y(x,C,Fn,"⎰","\\lmoustache",!0);y(x,C,pn,"⟯","\\rgroup",!0);y(x,C,Fn,"⟮","\\lgroup",!0);y(x,C,xe,"∓","\\mp",!0);y(x,C,xe,"⊖","\\ominus",!0);y(x,C,xe,"⊎","\\uplus",!0);y(x,C,xe,"⊓","\\sqcap",!0);y(x,C,xe,"∗","\\ast");y(x,C,xe,"⊔","\\sqcup",!0);y(x,C,xe,"◯","\\bigcirc",!0);y(x,C,xe,"∙","\\bullet",!0);y(x,C,xe,"‡","\\ddagger");y(x,C,xe,"≀","\\wr",!0);y(x,C,xe,"⨿","\\amalg");y(x,C,xe,"&","\\And");y(x,C,j,"⟵","\\longleftarrow",!0);y(x,C,j,"⇐","\\Leftarrow",!0);y(x,C,j,"⟸","\\Longleftarrow",!0);y(x,C,j,"⟶","\\longrightarrow",!0);y(x,C,j,"⇒","\\Rightarrow",!0);y(x,C,j,"⟹","\\Longrightarrow",!0);y(x,C,j,"↔","\\leftrightarrow",!0);y(x,C,j,"⟷","\\longleftrightarrow",!0);y(x,C,j,"⇔","\\Leftrightarrow",!0);y(x,C,j,"⟺","\\Longleftrightarrow",!0);y(x,C,j,"↦","\\mapsto",!0);y(x,C,j,"⟼","\\longmapsto",!0);y(x,C,j,"↗","\\nearrow",!0);y(x,C,j,"↩","\\hookleftarrow",!0);y(x,C,j,"↪","\\hookrightarrow",!0);y(x,C,j,"↘","\\searrow",!0);y(x,C,j,"↼","\\leftharpoonup",!0);y(x,C,j,"⇀","\\rightharpoonup",!0);y(x,C,j,"↙","\\swarrow",!0);y(x,C,j,"↽","\\leftharpoondown",!0);y(x,C,j,"⇁","\\rightharpoondown",!0);y(x,C,j,"↖","\\nwarrow",!0);y(x,C,j,"⇌","\\rightleftharpoons",!0);y(x,L,j,"≮","\\nless",!0);y(x,L,j,"","\\@nleqslant");y(x,L,j,"","\\@nleqq");y(x,L,j,"⪇","\\lneq",!0);y(x,L,j,"≨","\\lneqq",!0);y(x,L,j,"","\\@lvertneqq");y(x,L,j,"⋦","\\lnsim",!0);y(x,L,j,"⪉","\\lnapprox",!0);y(x,L,j,"⊀","\\nprec",!0);y(x,L,j,"⋠","\\npreceq",!0);y(x,L,j,"⋨","\\precnsim",!0);y(x,L,j,"⪹","\\precnapprox",!0);y(x,L,j,"≁","\\nsim",!0);y(x,L,j,"","\\@nshortmid");y(x,L,j,"∤","\\nmid",!0);y(x,L,j,"⊬","\\nvdash",!0);y(x,L,j,"⊭","\\nvDash",!0);y(x,L,j,"⋪","\\ntriangleleft");y(x,L,j,"⋬","\\ntrianglelefteq",!0);y(x,L,j,"⊊","\\subsetneq",!0);y(x,L,j,"","\\@varsubsetneq");y(x,L,j,"⫋","\\subsetneqq",!0);y(x,L,j,"","\\@varsubsetneqq");y(x,L,j,"≯","\\ngtr",!0);y(x,L,j,"","\\@ngeqslant");y(x,L,j,"","\\@ngeqq");y(x,L,j,"⪈","\\gneq",!0);y(x,L,j,"≩","\\gneqq",!0);y(x,L,j,"","\\@gvertneqq");y(x,L,j,"⋧","\\gnsim",!0);y(x,L,j,"⪊","\\gnapprox",!0);y(x,L,j,"⊁","\\nsucc",!0);y(x,L,j,"⋡","\\nsucceq",!0);y(x,L,j,"⋩","\\succnsim",!0);y(x,L,j,"⪺","\\succnapprox",!0);y(x,L,j,"≆","\\ncong",!0);y(x,L,j,"","\\@nshortparallel");y(x,L,j,"∦","\\nparallel",!0);y(x,L,j,"⊯","\\nVDash",!0);y(x,L,j,"⋫","\\ntriangleright");y(x,L,j,"⋭","\\ntrianglerighteq",!0);y(x,L,j,"","\\@nsupseteqq");y(x,L,j,"⊋","\\supsetneq",!0);y(x,L,j,"","\\@varsupsetneq");y(x,L,j,"⫌","\\supsetneqq",!0);y(x,L,j,"","\\@varsupsetneqq");y(x,L,j,"⊮","\\nVdash",!0);y(x,L,j,"⪵","\\precneqq",!0);y(x,L,j,"⪶","\\succneqq",!0);y(x,L,j,"","\\@nsubseteqq");y(x,L,xe,"⊴","\\unlhd");y(x,L,xe,"⊵","\\unrhd");y(x,L,j,"↚","\\nleftarrow",!0);y(x,L,j,"↛","\\nrightarrow",!0);y(x,L,j,"⇍","\\nLeftarrow",!0);y(x,L,j,"⇏","\\nRightarrow",!0);y(x,L,j,"↮","\\nleftrightarrow",!0);y(x,L,j,"⇎","\\nLeftrightarrow",!0);y(x,L,j,"△","\\vartriangle");y(x,L,U,"ℏ","\\hslash");y(x,L,U,"▽","\\triangledown");y(x,L,U,"◊","\\lozenge");y(x,L,U,"Ⓢ","\\circledS");y(x,L,U,"®","\\circledR");y(oe,L,U,"®","\\circledR");y(x,L,U,"∡","\\measuredangle",!0);y(x,L,U,"∄","\\nexists");y(x,L,U,"℧","\\mho");y(x,L,U,"Ⅎ","\\Finv",!0);y(x,L,U,"⅁","\\Game",!0);y(x,L,U,"‵","\\backprime");y(x,L,U,"▲","\\blacktriangle");y(x,L,U,"▼","\\blacktriangledown");y(x,L,U,"■","\\blacksquare");y(x,L,U,"⧫","\\blacklozenge");y(x,L,U,"★","\\bigstar");y(x,L,U,"∢","\\sphericalangle",!0);y(x,L,U,"∁","\\complement",!0);y(x,L,U,"ð","\\eth",!0);y(oe,C,U,"ð","ð");y(x,L,U,"╱","\\diagup");y(x,L,U,"╲","\\diagdown");y(x,L,U,"□","\\square");y(x,L,U,"□","\\Box");y(x,L,U,"◊","\\Diamond");y(x,L,U,"¥","\\yen",!0);y(oe,L,U,"¥","\\yen",!0);y(x,L,U,"✓","\\checkmark",!0);y(oe,L,U,"✓","\\checkmark");y(x,L,U,"ℶ","\\beth",!0);y(x,L,U,"ℸ","\\daleth",!0);y(x,L,U,"ℷ","\\gimel",!0);y(x,L,U,"ϝ","\\digamma",!0);y(x,L,U,"ϰ","\\varkappa");y(x,L,Fn,"┌","\\@ulcorner",!0);y(x,L,pn,"┐","\\@urcorner",!0);y(x,L,Fn,"└","\\@llcorner",!0);y(x,L,pn,"┘","\\@lrcorner",!0);y(x,L,j,"≦","\\leqq",!0);y(x,L,j,"⩽","\\leqslant",!0);y(x,L,j,"⪕","\\eqslantless",!0);y(x,L,j,"≲","\\lesssim",!0);y(x,L,j,"⪅","\\lessapprox",!0);y(x,L,j,"≊","\\approxeq",!0);y(x,L,xe,"⋖","\\lessdot");y(x,L,j,"⋘","\\lll",!0);y(x,L,j,"≶","\\lessgtr",!0);y(x,L,j,"⋚","\\lesseqgtr",!0);y(x,L,j,"⪋","\\lesseqqgtr",!0);y(x,L,j,"≑","\\doteqdot");y(x,L,j,"≓","\\risingdotseq",!0);y(x,L,j,"≒","\\fallingdotseq",!0);y(x,L,j,"∽","\\backsim",!0);y(x,L,j,"⋍","\\backsimeq",!0);y(x,L,j,"⫅","\\subseteqq",!0);y(x,L,j,"⋐","\\Subset",!0);y(x,L,j,"⊏","\\sqsubset",!0);y(x,L,j,"≼","\\preccurlyeq",!0);y(x,L,j,"⋞","\\curlyeqprec",!0);y(x,L,j,"≾","\\precsim",!0);y(x,L,j,"⪷","\\precapprox",!0);y(x,L,j,"⊲","\\vartriangleleft");y(x,L,j,"⊴","\\trianglelefteq");y(x,L,j,"⊨","\\vDash",!0);y(x,L,j,"⊪","\\Vvdash",!0);y(x,L,j,"⌣","\\smallsmile");y(x,L,j,"⌢","\\smallfrown");y(x,L,j,"≏","\\bumpeq",!0);y(x,L,j,"≎","\\Bumpeq",!0);y(x,L,j,"≧","\\geqq",!0);y(x,L,j,"⩾","\\geqslant",!0);y(x,L,j,"⪖","\\eqslantgtr",!0);y(x,L,j,"≳","\\gtrsim",!0);y(x,L,j,"⪆","\\gtrapprox",!0);y(x,L,xe,"⋗","\\gtrdot");y(x,L,j,"⋙","\\ggg",!0);y(x,L,j,"≷","\\gtrless",!0);y(x,L,j,"⋛","\\gtreqless",!0);y(x,L,j,"⪌","\\gtreqqless",!0);y(x,L,j,"≖","\\eqcirc",!0);y(x,L,j,"≗","\\circeq",!0);y(x,L,j,"≜","\\triangleq",!0);y(x,L,j,"∼","\\thicksim");y(x,L,j,"≈","\\thickapprox");y(x,L,j,"⫆","\\supseteqq",!0);y(x,L,j,"⋑","\\Supset",!0);y(x,L,j,"⊐","\\sqsupset",!0);y(x,L,j,"≽","\\succcurlyeq",!0);y(x,L,j,"⋟","\\curlyeqsucc",!0);y(x,L,j,"≿","\\succsim",!0);y(x,L,j,"⪸","\\succapprox",!0);y(x,L,j,"⊳","\\vartriangleright");y(x,L,j,"⊵","\\trianglerighteq");y(x,L,j,"⊩","\\Vdash",!0);y(x,L,j,"∣","\\shortmid");y(x,L,j,"∥","\\shortparallel");y(x,L,j,"≬","\\between",!0);y(x,L,j,"⋔","\\pitchfork",!0);y(x,L,j,"∝","\\varpropto");y(x,L,j,"◀","\\blacktriangleleft");y(x,L,j,"∴","\\therefore",!0);y(x,L,j,"∍","\\backepsilon");y(x,L,j,"▶","\\blacktriangleright");y(x,L,j,"∵","\\because",!0);y(x,L,j,"⋘","\\llless");y(x,L,j,"⋙","\\gggtr");y(x,L,xe,"⊲","\\lhd");y(x,L,xe,"⊳","\\rhd");y(x,L,j,"≂","\\eqsim",!0);y(x,C,j,"⋈","\\Join");y(x,L,j,"≑","\\Doteq",!0);y(x,L,xe,"∔","\\dotplus",!0);y(x,L,xe,"∖","\\smallsetminus");y(x,L,xe,"⋒","\\Cap",!0);y(x,L,xe,"⋓","\\Cup",!0);y(x,L,xe,"⩞","\\doublebarwedge",!0);y(x,L,xe,"⊟","\\boxminus",!0);y(x,L,xe,"⊞","\\boxplus",!0);y(x,L,xe,"⋇","\\divideontimes",!0);y(x,L,xe,"⋉","\\ltimes",!0);y(x,L,xe,"⋊","\\rtimes",!0);y(x,L,xe,"⋋","\\leftthreetimes",!0);y(x,L,xe,"⋌","\\rightthreetimes",!0);y(x,L,xe,"⋏","\\curlywedge",!0);y(x,L,xe,"⋎","\\curlyvee",!0);y(x,L,xe,"⊝","\\circleddash",!0);y(x,L,xe,"⊛","\\circledast",!0);y(x,L,xe,"⋅","\\centerdot");y(x,L,xe,"⊺","\\intercal",!0);y(x,L,xe,"⋒","\\doublecap");y(x,L,xe,"⋓","\\doublecup");y(x,L,xe,"⊠","\\boxtimes",!0);y(x,L,j,"⇢","\\dashrightarrow",!0);y(x,L,j,"⇠","\\dashleftarrow",!0);y(x,L,j,"⇇","\\leftleftarrows",!0);y(x,L,j,"⇆","\\leftrightarrows",!0);y(x,L,j,"⇚","\\Lleftarrow",!0);y(x,L,j,"↞","\\twoheadleftarrow",!0);y(x,L,j,"↢","\\leftarrowtail",!0);y(x,L,j,"↫","\\looparrowleft",!0);y(x,L,j,"⇋","\\leftrightharpoons",!0);y(x,L,j,"↶","\\curvearrowleft",!0);y(x,L,j,"↺","\\circlearrowleft",!0);y(x,L,j,"↰","\\Lsh",!0);y(x,L,j,"⇈","\\upuparrows",!0);y(x,L,j,"↿","\\upharpoonleft",!0);y(x,L,j,"⇃","\\downharpoonleft",!0);y(x,C,j,"⊶","\\origof",!0);y(x,C,j,"⊷","\\imageof",!0);y(x,L,j,"⊸","\\multimap",!0);y(x,L,j,"↭","\\leftrightsquigarrow",!0);y(x,L,j,"⇉","\\rightrightarrows",!0);y(x,L,j,"⇄","\\rightleftarrows",!0);y(x,L,j,"↠","\\twoheadrightarrow",!0);y(x,L,j,"↣","\\rightarrowtail",!0);y(x,L,j,"↬","\\looparrowright",!0);y(x,L,j,"↷","\\curvearrowright",!0);y(x,L,j,"↻","\\circlearrowright",!0);y(x,L,j,"↱","\\Rsh",!0);y(x,L,j,"⇊","\\downdownarrows",!0);y(x,L,j,"↾","\\upharpoonright",!0);y(x,L,j,"⇂","\\downharpoonright",!0);y(x,L,j,"⇝","\\rightsquigarrow",!0);y(x,L,j,"⇝","\\leadsto");y(x,L,j,"⇛","\\Rrightarrow",!0);y(x,L,j,"↾","\\restriction");y(x,C,U,"‘","`");y(x,C,U,"$","\\$");y(oe,C,U,"$","\\$");y(oe,C,U,"$","\\textdollar");y(x,C,U,"%","\\%");y(oe,C,U,"%","\\%");y(x,C,U,"_","\\_");y(oe,C,U,"_","\\_");y(oe,C,U,"_","\\textunderscore");y(x,C,U,"∠","\\angle",!0);y(x,C,U,"∞","\\infty",!0);y(x,C,U,"′","\\prime");y(x,C,U,"△","\\triangle");y(x,C,U,"Γ","\\Gamma",!0);y(x,C,U,"Δ","\\Delta",!0);y(x,C,U,"Θ","\\Theta",!0);y(x,C,U,"Λ","\\Lambda",!0);y(x,C,U,"Ξ","\\Xi",!0);y(x,C,U,"Π","\\Pi",!0);y(x,C,U,"Σ","\\Sigma",!0);y(x,C,U,"Υ","\\Upsilon",!0);y(x,C,U,"Φ","\\Phi",!0);y(x,C,U,"Ψ","\\Psi",!0);y(x,C,U,"Ω","\\Omega",!0);y(x,C,U,"A","Α");y(x,C,U,"B","Β");y(x,C,U,"E","Ε");y(x,C,U,"Z","Ζ");y(x,C,U,"H","Η");y(x,C,U,"I","Ι");y(x,C,U,"K","Κ");y(x,C,U,"M","Μ");y(x,C,U,"N","Ν");y(x,C,U,"O","Ο");y(x,C,U,"P","Ρ");y(x,C,U,"T","Τ");y(x,C,U,"X","Χ");y(x,C,U,"¬","\\neg",!0);y(x,C,U,"¬","\\lnot");y(x,C,U,"⊤","\\top");y(x,C,U,"⊥","\\bot");y(x,C,U,"∅","\\emptyset");y(x,L,U,"∅","\\varnothing");y(x,C,Re,"α","\\alpha",!0);y(x,C,Re,"β","\\beta",!0);y(x,C,Re,"γ","\\gamma",!0);y(x,C,Re,"δ","\\delta",!0);y(x,C,Re,"ϵ","\\epsilon",!0);y(x,C,Re,"ζ","\\zeta",!0);y(x,C,Re,"η","\\eta",!0);y(x,C,Re,"θ","\\theta",!0);y(x,C,Re,"ι","\\iota",!0);y(x,C,Re,"κ","\\kappa",!0);y(x,C,Re,"λ","\\lambda",!0);y(x,C,Re,"μ","\\mu",!0);y(x,C,Re,"ν","\\nu",!0);y(x,C,Re,"ξ","\\xi",!0);y(x,C,Re,"ο","\\omicron",!0);y(x,C,Re,"π","\\pi",!0);y(x,C,Re,"ρ","\\rho",!0);y(x,C,Re,"σ","\\sigma",!0);y(x,C,Re,"τ","\\tau",!0);y(x,C,Re,"υ","\\upsilon",!0);y(x,C,Re,"ϕ","\\phi",!0);y(x,C,Re,"χ","\\chi",!0);y(x,C,Re,"ψ","\\psi",!0);y(x,C,Re,"ω","\\omega",!0);y(x,C,Re,"ε","\\varepsilon",!0);y(x,C,Re,"ϑ","\\vartheta",!0);y(x,C,Re,"ϖ","\\varpi",!0);y(x,C,Re,"ϱ","\\varrho",!0);y(x,C,Re,"ς","\\varsigma",!0);y(x,C,Re,"φ","\\varphi",!0);y(x,C,xe,"∗","*",!0);y(x,C,xe,"+","+");y(x,C,xe,"−","-",!0);y(x,C,xe,"⋅","\\cdot",!0);y(x,C,xe,"∘","\\circ",!0);y(x,C,xe,"÷","\\div",!0);y(x,C,xe,"±","\\pm",!0);y(x,C,xe,"×","\\times",!0);y(x,C,xe,"∩","\\cap",!0);y(x,C,xe,"∪","\\cup",!0);y(x,C,xe,"∖","\\setminus",!0);y(x,C,xe,"∧","\\land");y(x,C,xe,"∨","\\lor");y(x,C,xe,"∧","\\wedge",!0);y(x,C,xe,"∨","\\vee",!0);y(x,C,U,"√","\\surd");y(x,C,Fn,"⟨","\\langle",!0);y(x,C,Fn,"∣","\\lvert");y(x,C,Fn,"∥","\\lVert");y(x,C,pn,"?","?");y(x,C,pn,"!","!");y(x,C,pn,"⟩","\\rangle",!0);y(x,C,pn,"∣","\\rvert");y(x,C,pn,"∥","\\rVert");y(x,C,j,"=","=");y(x,C,j,":",":");y(x,C,j,"≈","\\approx",!0);y(x,C,j,"≅","\\cong",!0);y(x,C,j,"≥","\\ge");y(x,C,j,"≥","\\geq",!0);y(x,C,j,"←","\\gets");y(x,C,j,">","\\gt",!0);y(x,C,j,"∈","\\in",!0);y(x,C,j,"","\\@not");y(x,C,j,"⊂","\\subset",!0);y(x,C,j,"⊃","\\supset",!0);y(x,C,j,"⊆","\\subseteq",!0);y(x,C,j,"⊇","\\supseteq",!0);y(x,L,j,"⊈","\\nsubseteq",!0);y(x,L,j,"⊉","\\nsupseteq",!0);y(x,C,j,"⊨","\\models");y(x,C,j,"←","\\leftarrow",!0);y(x,C,j,"≤","\\le");y(x,C,j,"≤","\\leq",!0);y(x,C,j,"<","\\lt",!0);y(x,C,j,"→","\\rightarrow",!0);y(x,C,j,"→","\\to");y(x,L,j,"≱","\\ngeq",!0);y(x,L,j,"≰","\\nleq",!0);y(x,C,ya," ","\\ ");y(x,C,ya," ","\\space");y(x,C,ya," ","\\nobreakspace");y(oe,C,ya," ","\\ ");y(oe,C,ya," "," ");y(oe,C,ya," ","\\space");y(oe,C,ya," ","\\nobreakspace");y(x,C,ya,null,"\\nobreak");y(x,C,ya,null,"\\allowbreak");y(x,C,pc,",",",");y(x,C,pc,";",";");y(x,L,xe,"⊼","\\barwedge",!0);y(x,L,xe,"⊻","\\veebar",!0);y(x,C,xe,"⊙","\\odot",!0);y(x,C,xe,"⊕","\\oplus",!0);y(x,C,xe,"⊗","\\otimes",!0);y(x,C,U,"∂","\\partial",!0);y(x,C,xe,"⊘","\\oslash",!0);y(x,L,xe,"⊚","\\circledcirc",!0);y(x,L,xe,"⊡","\\boxdot",!0);y(x,C,xe,"△","\\bigtriangleup");y(x,C,xe,"▽","\\bigtriangledown");y(x,C,xe,"†","\\dagger");y(x,C,xe,"⋄","\\diamond");y(x,C,xe,"⋆","\\star");y(x,C,xe,"◃","\\triangleleft");y(x,C,xe,"▹","\\triangleright");y(x,C,Fn,"{","\\{");y(oe,C,U,"{","\\{");y(oe,C,U,"{","\\textbraceleft");y(x,C,pn,"}","\\}");y(oe,C,U,"}","\\}");y(oe,C,U,"}","\\textbraceright");y(x,C,Fn,"{","\\lbrace");y(x,C,pn,"}","\\rbrace");y(x,C,Fn,"[","\\lbrack",!0);y(oe,C,U,"[","\\lbrack",!0);y(x,C,pn,"]","\\rbrack",!0);y(oe,C,U,"]","\\rbrack",!0);y(x,C,Fn,"(","\\lparen",!0);y(x,C,pn,")","\\rparen",!0);y(oe,C,U,"<","\\textless",!0);y(oe,C,U,">","\\textgreater",!0);y(x,C,Fn,"⌊","\\lfloor",!0);y(x,C,pn,"⌋","\\rfloor",!0);y(x,C,Fn,"⌈","\\lceil",!0);y(x,C,pn,"⌉","\\rceil",!0);y(x,C,U,"\\","\\backslash");y(x,C,U,"∣","|");y(x,C,U,"∣","\\vert");y(oe,C,U,"|","\\textbar",!0);y(x,C,U,"∥","\\|");y(x,C,U,"∥","\\Vert");y(oe,C,U,"∥","\\textbardbl");y(oe,C,U,"~","\\textasciitilde");y(oe,C,U,"\\","\\textbackslash");y(oe,C,U,"^","\\textasciicircum");y(x,C,j,"↑","\\uparrow",!0);y(x,C,j,"⇑","\\Uparrow",!0);y(x,C,j,"↓","\\downarrow",!0);y(x,C,j,"⇓","\\Downarrow",!0);y(x,C,j,"↕","\\updownarrow",!0);y(x,C,j,"⇕","\\Updownarrow",!0);y(x,C,Ht,"∐","\\coprod");y(x,C,Ht,"⋁","\\bigvee");y(x,C,Ht,"⋀","\\bigwedge");y(x,C,Ht,"⨄","\\biguplus");y(x,C,Ht,"⋂","\\bigcap");y(x,C,Ht,"⋃","\\bigcup");y(x,C,Ht,"∫","\\int");y(x,C,Ht,"∫","\\intop");y(x,C,Ht,"∬","\\iint");y(x,C,Ht,"∭","\\iiint");y(x,C,Ht,"∏","\\prod");y(x,C,Ht,"∑","\\sum");y(x,C,Ht,"⨂","\\bigotimes");y(x,C,Ht,"⨁","\\bigoplus");y(x,C,Ht,"⨀","\\bigodot");y(x,C,Ht,"∮","\\oint");y(x,C,Ht,"∯","\\oiint");y(x,C,Ht,"∰","\\oiiint");y(x,C,Ht,"⨆","\\bigsqcup");y(x,C,Ht,"∫","\\smallint");y(oe,C,e0,"…","\\textellipsis");y(x,C,e0,"…","\\mathellipsis");y(oe,C,e0,"…","\\ldots",!0);y(x,C,e0,"…","\\ldots",!0);y(x,C,e0,"⋯","\\@cdots",!0);y(x,C,e0,"⋱","\\ddots",!0);y(x,C,U,"⋮","\\varvdots");y(oe,C,U,"⋮","\\varvdots");y(x,C,bt,"ˊ","\\acute");y(x,C,bt,"ˋ","\\grave");y(x,C,bt,"¨","\\ddot");y(x,C,bt,"~","\\tilde");y(x,C,bt,"ˉ","\\bar");y(x,C,bt,"˘","\\breve");y(x,C,bt,"ˇ","\\check");y(x,C,bt,"^","\\hat");y(x,C,bt,"⃗","\\vec");y(x,C,bt,"˙","\\dot");y(x,C,bt,"˚","\\mathring");y(x,C,Re,"","\\@imath");y(x,C,Re,"","\\@jmath");y(x,C,U,"ı","ı");y(x,C,U,"ȷ","ȷ");y(oe,C,U,"ı","\\i",!0);y(oe,C,U,"ȷ","\\j",!0);y(oe,C,U,"ß","\\ss",!0);y(oe,C,U,"æ","\\ae",!0);y(oe,C,U,"œ","\\oe",!0);y(oe,C,U,"ø","\\o",!0);y(oe,C,U,"Æ","\\AE",!0);y(oe,C,U,"Œ","\\OE",!0);y(oe,C,U,"Ø","\\O",!0);y(oe,C,bt,"ˊ","\\'");y(oe,C,bt,"ˋ","\\`");y(oe,C,bt,"ˆ","\\^");y(oe,C,bt,"˜","\\~");y(oe,C,bt,"ˉ","\\=");y(oe,C,bt,"˘","\\u");y(oe,C,bt,"˙","\\.");y(oe,C,bt,"¸","\\c");y(oe,C,bt,"˚","\\r");y(oe,C,bt,"ˇ","\\v");y(oe,C,bt,"¨",'\\"');y(oe,C,bt,"˝","\\H");y(oe,C,bt,"◯","\\textcircled");var m7={"--":!0,"---":!0,"``":!0,"''":!0};y(oe,C,U,"–","--",!0);y(oe,C,U,"–","\\textendash");y(oe,C,U,"—","---",!0);y(oe,C,U,"—","\\textemdash");y(oe,C,U,"‘","`",!0);y(oe,C,U,"‘","\\textquoteleft");y(oe,C,U,"’","'",!0);y(oe,C,U,"’","\\textquoteright");y(oe,C,U,"“","``",!0);y(oe,C,U,"“","\\textquotedblleft");y(oe,C,U,"”","''",!0);y(oe,C,U,"”","\\textquotedblright");y(x,C,U,"°","\\degree",!0);y(oe,C,U,"°","\\degree");y(oe,C,U,"°","\\textdegree",!0);y(x,C,U,"£","\\pounds");y(x,C,U,"£","\\mathsterling",!0);y(oe,C,U,"£","\\pounds");y(oe,C,U,"£","\\textsterling",!0);y(x,L,U,"✠","\\maltese");y(oe,L,U,"✠","\\maltese");var M5='0123456789/@."';for(var d1=0;d1<M5.length;d1++){var E5=M5.charAt(d1);y(x,C,U,E5,E5)}var T5='0123456789!@*()-=+";:?/.,';for(var h1=0;h1<T5.length;h1++){var C5=T5.charAt(h1);y(oe,C,U,C5,C5)}var Iu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var m1=0;m1<Iu.length;m1++){var gu=Iu.charAt(m1);y(x,C,Re,gu,gu),y(oe,C,U,gu,gu)}y(x,L,U,"C","ℂ");y(oe,L,U,"C","ℂ");y(x,L,U,"H","ℍ");y(oe,L,U,"H","ℍ");y(x,L,U,"N","ℕ");y(oe,L,U,"N","ℕ");y(x,L,U,"P","ℙ");y(oe,L,U,"P","ℙ");y(x,L,U,"Q","ℚ");y(oe,L,U,"Q","ℚ");y(x,L,U,"R","ℝ");y(oe,L,U,"R","ℝ");y(x,L,U,"Z","ℤ");y(oe,L,U,"Z","ℤ");y(x,C,Re,"h","ℎ");y(oe,C,Re,"h","ℎ");var Be="";for(var un=0;un<Iu.length;un++){var Ct=Iu.charAt(un);Be=String.fromCharCode(55349,56320+un),y(x,C,Re,Ct,Be),y(oe,C,U,Ct,Be),Be=String.fromCharCode(55349,56372+un),y(x,C,Re,Ct,Be),y(oe,C,U,Ct,Be),Be=String.fromCharCode(55349,56424+un),y(x,C,Re,Ct,Be),y(oe,C,U,Ct,Be),Be=String.fromCharCode(55349,56580+un),y(x,C,Re,Ct,Be),y(oe,C,U,Ct,Be),Be=String.fromCharCode(55349,56684+un),y(x,C,Re,Ct,Be),y(oe,C,U,Ct,Be),Be=String.fromCharCode(55349,56736+un),y(x,C,Re,Ct,Be),y(oe,C,U,Ct,Be),Be=String.fromCharCode(55349,56788+un),y(x,C,Re,Ct,Be),y(oe,C,U,Ct,Be),Be=String.fromCharCode(55349,56840+un),y(x,C,Re,Ct,Be),y(oe,C,U,Ct,Be),Be=String.fromCharCode(55349,56944+un),y(x,C,Re,Ct,Be),y(oe,C,U,Ct,Be),un<26&&(Be=String.fromCharCode(55349,56632+un),y(x,C,Re,Ct,Be),y(oe,C,U,Ct,Be),Be=String.fromCharCode(55349,56476+un),y(x,C,Re,Ct,Be),y(oe,C,U,Ct,Be))}Be="𝕜";y(x,C,Re,"k",Be);y(oe,C,U,"k",Be);for(var Oi=0;Oi<10;Oi++){var $a=Oi.toString();Be=String.fromCharCode(55349,57294+Oi),y(x,C,Re,$a,Be),y(oe,C,U,$a,Be),Be=String.fromCharCode(55349,57314+Oi),y(x,C,Re,$a,Be),y(oe,C,U,$a,Be),Be=String.fromCharCode(55349,57324+Oi),y(x,C,Re,$a,Be),y(oe,C,U,$a,Be),Be=String.fromCharCode(55349,57334+Oi),y(x,C,Re,$a,Be),y(oe,C,U,$a,Be)}var I1="ÐÞþ";for(var p1=0;p1<I1.length;p1++){var vu=I1.charAt(p1);y(x,C,Re,vu,vu),y(oe,C,U,vu,vu)}var yu=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],k5=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],HN=function(t,r){var i=t.charCodeAt(0),l=t.charCodeAt(1),s=(i-55296)*1024+(l-56320)+65536,c=r==="math"?0:1;if(119808<=s&&s<120484){var f=Math.floor((s-119808)/26);return[yu[f][2],yu[f][c]]}else if(120782<=s&&s<=120831){var d=Math.floor((s-120782)/10);return[k5[d][2],k5[d][c]]}else{if(s===120485||s===120486)return[yu[0][2],yu[0][c]];if(120486<s&&s<120782)return["",""];throw new fe("Unsupported character: "+t)}},gc=function(t,r,i){return ht[i][t]&&ht[i][t].replace&&(t=ht[i][t].replace),{value:t,metrics:jh(t,r,i)}},cr=function(t,r,i,l,s){var c=gc(t,r,i),f=c.metrics;t=c.value;var d;if(f){var h=f.italic;(i==="text"||l&&l.font==="mathit")&&(h=0),d=new ar(t,f.height,f.depth,h,f.skew,f.width,s)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+t+"' in style '"+r+"' and mode '"+i+"'")),d=new ar(t,0,0,0,0,0,s);if(l){d.maxFontSize=l.sizeMultiplier,l.style.isTight()&&d.classes.push("mtight");var g=l.getColor();g&&(d.style.color=g)}return d},qN=function(t,r,i,l){return l===void 0&&(l=[]),i.font==="boldsymbol"&&gc(t,"Main-Bold",r).metrics?cr(t,"Main-Bold",r,i,l.concat(["mathbf"])):t==="\\"||ht[r][t].font==="main"?cr(t,"Main-Regular",r,i,l):cr(t,"AMS-Regular",r,i,l.concat(["amsrm"]))},UN=function(t,r,i,l,s){return s!=="textord"&&gc(t,"Math-BoldItalic",r).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},GN=function(t,r,i){var l=t.mode,s=t.text,c=["mord"],f=l==="math"||l==="text"&&r.font,d=f?r.font:r.fontFamily,h="",g="";if(s.charCodeAt(0)===55349&&([h,g]=HN(s,l)),h.length>0)return cr(s,h,l,r,c.concat(g));if(d){var v,b;if(d==="boldsymbol"){var w=UN(s,l,r,c,i);v=w.fontName,b=[w.fontClass]}else f?(v=v7[d].fontName,b=[d]):(v=bu(d,r.fontWeight,r.fontShape),b=[d,r.fontWeight,r.fontShape]);if(gc(s,v,l).metrics)return cr(s,v,l,r,c.concat(b));if(m7.hasOwnProperty(s)&&v.slice(0,10)==="Typewriter"){for(var E=[],A=0;A<s.length;A++)E.push(cr(s[A],v,l,r,c.concat(b)));return g7(E)}}if(i==="mathord")return cr(s,"Math-Italic",l,r,c.concat(["mathnormal"]));if(i==="textord"){var T=ht[l][s]&&ht[l][s].font;if(T==="ams"){var N=bu("amsrm",r.fontWeight,r.fontShape);return cr(s,N,l,r,c.concat("amsrm",r.fontWeight,r.fontShape))}else if(T==="main"||!T){var O=bu("textrm",r.fontWeight,r.fontShape);return cr(s,O,l,r,c.concat(r.fontWeight,r.fontShape))}else{var R=bu(T,r.fontWeight,r.fontShape);return cr(s,R,l,r,c.concat(R,r.fontWeight,r.fontShape))}}else throw new Error("unexpected type: "+i+" in makeOrd")},FN=(e,t)=>{if(li(e.classes)!==li(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var r=e.classes[0];if(r==="mbin"||r==="mord")return!1}for(var i in e.style)if(e.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;for(var l in t.style)if(t.style.hasOwnProperty(l)&&e.style[l]!==t.style[l])return!1;return!0},YN=e=>{for(var t=0;t<e.length-1;t++){var r=e[t],i=e[t+1];r instanceof ar&&i instanceof ar&&FN(r,i)&&(r.text+=i.text,r.height=Math.max(r.height,i.height),r.depth=Math.max(r.depth,i.depth),r.italic=i.italic,e.splice(t+1,1),t--)}return e},_h=function(t){for(var r=0,i=0,l=0,s=0;s<t.children.length;s++){var c=t.children[s];c.height>r&&(r=c.height),c.depth>i&&(i=c.depth),c.maxFontSize>l&&(l=c.maxFontSize)}t.height=r,t.depth=i,t.maxFontSize=l},Mn=function(t,r,i,l){var s=new qo(t,r,i,l);return _h(s),s},p7=(e,t,r,i)=>new qo(e,t,r,i),PN=function(t,r,i){var l=Mn([t],[],r);return l.height=Math.max(i||r.fontMetrics().defaultRuleThickness,r.minRuleThickness),l.style.borderBottomWidth=pe(l.height),l.maxFontSize=1,l},VN=function(t,r,i,l){var s=new Bh(t,r,i,l);return _h(s),s},g7=function(t){var r=new Ho(t);return _h(r),r},IN=function(t,r){return t instanceof Ho?Mn([],[t],r):t},XN=function(t){if(t.positionType==="individualShift"){for(var r=t.children,i=[r[0]],l=-r[0].shift-r[0].elem.depth,s=l,c=1;c<r.length;c++){var f=-r[c].shift-s-r[c].elem.depth,d=f-(r[c-1].elem.height+r[c-1].elem.depth);s=s+f,i.push({type:"kern",size:d}),i.push(r[c])}return{children:i,depth:l}}var h;if(t.positionType==="top"){for(var g=t.positionData,v=0;v<t.children.length;v++){var b=t.children[v];g-=b.type==="kern"?b.size:b.elem.height+b.elem.depth}h=g}else if(t.positionType==="bottom")h=-t.positionData;else{var w=t.children[0];if(w.type!=="elem")throw new Error('First child must have type "elem".');if(t.positionType==="shift")h=-w.elem.depth-t.positionData;else if(t.positionType==="firstBaseline")h=-w.elem.depth;else throw new Error("Invalid positionType "+t.positionType+".")}return{children:t.children,depth:h}},$N=function(t,r){for(var{children:i,depth:l}=XN(t),s=0,c=0;c<i.length;c++){var f=i[c];if(f.type==="elem"){var d=f.elem;s=Math.max(s,d.maxFontSize,d.height)}}s+=2;var h=Mn(["pstrut"],[]);h.style.height=pe(s);for(var g=[],v=l,b=l,w=l,E=0;E<i.length;E++){var A=i[E];if(A.type==="kern")w+=A.size;else{var T=A.elem,N=A.wrapperClasses||[],O=A.wrapperStyle||{},R=Mn(N,[h,T],void 0,O);R.style.top=pe(-s-w-T.depth),A.marginLeft&&(R.style.marginLeft=A.marginLeft),A.marginRight&&(R.style.marginRight=A.marginRight),g.push(R),w+=T.height+T.depth}v=Math.min(v,w),b=Math.max(b,w)}var H=Mn(["vlist"],g);H.style.height=pe(b);var F;if(v<0){var I=Mn([],[]),G=Mn(["vlist"],[I]);G.style.height=pe(-v);var V=Mn(["vlist-s"],[new ar("​")]);F=[Mn(["vlist-r"],[H,V]),Mn(["vlist-r"],[G])]}else F=[Mn(["vlist-r"],[H])];var te=Mn(["vlist-t"],F);return F.length===2&&te.classes.push("vlist-t2"),te.height=b,te.depth=-v,te},KN=(e,t)=>{var r=Mn(["mspace"],[],t),i=wt(e,t);return r.style.marginRight=pe(i),r},bu=function(t,r,i){var l="";switch(t){case"amsrm":l="AMS";break;case"textrm":l="Main";break;case"textsf":l="SansSerif";break;case"texttt":l="Typewriter";break;default:l=t}var s;return r==="textbf"&&i==="textit"?s="BoldItalic":r==="textbf"?s="Bold":r==="textit"?s="Italic":s="Regular",l+"-"+s},v7={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},y7={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},QN=function(t,r){var[i,l,s]=y7[t],c=new oi(i),f=new pa([c],{width:pe(l),height:pe(s),style:"width:"+pe(l),viewBox:"0 0 "+1e3*l+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),d=p7(["overlay"],[f],r);return d.height=s,d.style.height=pe(s),d.style.width=pe(l),d},$={fontMap:v7,makeSymbol:cr,mathsym:qN,makeSpan:Mn,makeSvgSpan:p7,makeLineSpan:PN,makeAnchor:VN,makeFragment:g7,wrapFragment:IN,makeVList:$N,makeOrd:GN,makeGlue:KN,staticSvg:QN,svgData:y7,tryCombineChars:YN},xt={number:3,unit:"mu"},Ri={number:4,unit:"mu"},aa={number:5,unit:"mu"},ZN={mord:{mop:xt,mbin:Ri,mrel:aa,minner:xt},mop:{mord:xt,mop:xt,mrel:aa,minner:xt},mbin:{mord:Ri,mop:Ri,mopen:Ri,minner:Ri},mrel:{mord:aa,mop:aa,mopen:aa,minner:aa},mopen:{},mclose:{mop:xt,mbin:Ri,mrel:aa,minner:xt},mpunct:{mord:xt,mop:xt,mrel:aa,mopen:xt,mclose:xt,mpunct:xt,minner:xt},minner:{mord:xt,mop:xt,mbin:Ri,mrel:aa,mopen:xt,mpunct:xt,minner:xt}},WN={mord:{mop:xt},mop:{mord:xt,mop:xt},mbin:{},mrel:{},mopen:{},mclose:{mop:xt},mpunct:{},minner:{mop:xt}},b7={},Xu={},$u={};function ve(e){for(var{type:t,names:r,props:i,handler:l,htmlBuilder:s,mathmlBuilder:c}=e,f={type:t,numArgs:i.numArgs,argTypes:i.argTypes,allowedInArgument:!!i.allowedInArgument,allowedInText:!!i.allowedInText,allowedInMath:i.allowedInMath===void 0?!0:i.allowedInMath,numOptionalArgs:i.numOptionalArgs||0,infix:!!i.infix,primitive:!!i.primitive,handler:l},d=0;d<r.length;++d)b7[r[d]]=f;t&&(s&&(Xu[t]=s),c&&($u[t]=c))}function Pi(e){var{type:t,htmlBuilder:r,mathmlBuilder:i}=e;ve({type:t,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:r,mathmlBuilder:i})}var Ku=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},Dt=function(t){return t.type==="ordgroup"?t.body:[t]},ga=$.makeSpan,JN=["leftmost","mbin","mopen","mrel","mop","mpunct"],ez=["rightmost","mrel","mclose","mpunct"],tz={display:Le.DISPLAY,text:Le.TEXT,script:Le.SCRIPT,scriptscript:Le.SCRIPTSCRIPT},nz={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Pt=function(t,r,i,l){l===void 0&&(l=[null,null]);for(var s=[],c=0;c<t.length;c++){var f=Je(t[c],r);if(f instanceof Ho){var d=f.children;s.push(...d)}else s.push(f)}if($.tryCombineChars(s),!i)return s;var h=r;if(t.length===1){var g=t[0];g.type==="sizing"?h=r.havingSize(g.size):g.type==="styling"&&(h=r.havingStyle(tz[g.style]))}var v=ga([l[0]||"leftmost"],[],r),b=ga([l[1]||"rightmost"],[],r),w=i==="root";return N5(s,(E,A)=>{var T=A.classes[0],N=E.classes[0];T==="mbin"&&ez.includes(N)?A.classes[0]="mord":N==="mbin"&&JN.includes(T)&&(E.classes[0]="mord")},{node:v},b,w),N5(s,(E,A)=>{var T=X1(A),N=X1(E),O=T&&N?E.hasClass("mtight")?WN[T][N]:ZN[T][N]:null;if(O)return $.makeGlue(O,h)},{node:v},b,w),s},N5=function e(t,r,i,l,s){l&&t.push(l);for(var c=0;c<t.length;c++){var f=t[c],d=x7(f);if(d){e(d.children,r,i,null,s);continue}var h=!f.hasClass("mspace");if(h){var g=r(f,i.node);g&&(i.insertAfter?i.insertAfter(g):(t.unshift(g),c++))}h?i.node=f:s&&f.hasClass("newline")&&(i.node=ga(["leftmost"])),i.insertAfter=(v=>b=>{t.splice(v+1,0,b),c++})(c)}l&&t.pop()},x7=function(t){return t instanceof Ho||t instanceof Bh||t instanceof qo&&t.hasClass("enclosing")?t:null},rz=function e(t,r){var i=x7(t);if(i){var l=i.children;if(l.length){if(r==="right")return e(l[l.length-1],"right");if(r==="left")return e(l[0],"left")}}return t},X1=function(t,r){return t?(r&&(t=rz(t,r)),nz[t.classes[0]]||null):null},wo=function(t,r){var i=["nulldelimiter"].concat(t.baseSizingClasses());return ga(r.concat(i))},Je=function(t,r,i){if(!t)return ga();if(Xu[t.type]){var l=Xu[t.type](t,r);if(i&&r.size!==i.size){l=ga(r.sizingClasses(i),[l],r);var s=r.sizeMultiplier/i.sizeMultiplier;l.height*=s,l.depth*=s}return l}else throw new fe("Got group of unknown type: '"+t.type+"'")};function xu(e,t){var r=ga(["base"],e,t),i=ga(["strut"]);return i.style.height=pe(r.height+r.depth),r.depth&&(i.style.verticalAlign=pe(-r.depth)),r.children.unshift(i),r}function $1(e,t){var r=null;e.length===1&&e[0].type==="tag"&&(r=e[0].tag,e=e[0].body);var i=Pt(e,t,"root"),l;i.length===2&&i[1].hasClass("tag")&&(l=i.pop());for(var s=[],c=[],f=0;f<i.length;f++)if(c.push(i[f]),i[f].hasClass("mbin")||i[f].hasClass("mrel")||i[f].hasClass("allowbreak")){for(var d=!1;f<i.length-1&&i[f+1].hasClass("mspace")&&!i[f+1].hasClass("newline");)f++,c.push(i[f]),i[f].hasClass("nobreak")&&(d=!0);d||(s.push(xu(c,t)),c=[])}else i[f].hasClass("newline")&&(c.pop(),c.length>0&&(s.push(xu(c,t)),c=[]),s.push(i[f]));c.length>0&&s.push(xu(c,t));var h;r?(h=xu(Pt(r,t,!0)),h.classes=["tag"],s.push(h)):l&&s.push(l);var g=ga(["katex-html"],s);if(g.setAttribute("aria-hidden","true"),h){var v=h.children[0];v.style.height=pe(g.height+g.depth),g.depth&&(v.style.verticalAlign=pe(-g.depth))}return g}function w7(e){return new Ho(e)}class qn{constructor(t,r,i){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=r||[],this.classes=i||[]}setAttribute(t,r){this.attributes[t]=r}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);this.classes.length>0&&(t.className=li(this.classes));for(var i=0;i<this.children.length;i++)if(this.children[i]instanceof kr&&this.children[i+1]instanceof kr){for(var l=this.children[i].toText()+this.children[++i].toText();this.children[i+1]instanceof kr;)l+=this.children[++i].toText();t.appendChild(new kr(l).toNode())}else t.appendChild(this.children[i].toNode());return t}toMarkup(){var t="<"+this.type;for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&(t+=" "+r+'="',t+=nt.escape(this.attributes[r]),t+='"');this.classes.length>0&&(t+=' class ="'+nt.escape(li(this.classes))+'"'),t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</"+this.type+">",t}toText(){return this.children.map(t=>t.toText()).join("")}}class kr{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return nt.escape(this.toText())}toText(){return this.text}}class az{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",pe(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+pe(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var ue={MathNode:qn,TextNode:kr,SpaceNode:az,newDocumentFragment:w7},ir=function(t,r,i){return ht[r][t]&&ht[r][t].replace&&t.charCodeAt(0)!==55349&&!(m7.hasOwnProperty(t)&&i&&(i.fontFamily&&i.fontFamily.slice(4,6)==="tt"||i.font&&i.font.slice(4,6)==="tt"))&&(t=ht[r][t].replace),new ue.TextNode(t)},Hh=function(t){return t.length===1?t[0]:new ue.MathNode("mrow",t)},qh=function(t,r){if(r.fontFamily==="texttt")return"monospace";if(r.fontFamily==="textsf")return r.fontShape==="textit"&&r.fontWeight==="textbf"?"sans-serif-bold-italic":r.fontShape==="textit"?"sans-serif-italic":r.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(r.fontShape==="textit"&&r.fontWeight==="textbf")return"bold-italic";if(r.fontShape==="textit")return"italic";if(r.fontWeight==="textbf")return"bold";var i=r.font;if(!i||i==="mathnormal")return null;var l=t.mode;if(i==="mathit")return"italic";if(i==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(i==="mathbf")return"bold";if(i==="mathbb")return"double-struck";if(i==="mathsfit")return"sans-serif-italic";if(i==="mathfrak")return"fraktur";if(i==="mathscr"||i==="mathcal")return"script";if(i==="mathsf")return"sans-serif";if(i==="mathtt")return"monospace";var s=t.text;if(["\\imath","\\jmath"].includes(s))return null;ht[l][s]&&ht[l][s].replace&&(s=ht[l][s].replace);var c=$.fontMap[i].fontName;return jh(s,c,l)?$.fontMap[i].variant:null};function g1(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof kr&&t.text==="."}else if(e.type==="mo"&&e.children.length===1&&e.getAttribute("separator")==="true"&&e.getAttribute("lspace")==="0em"&&e.getAttribute("rspace")==="0em"){var r=e.children[0];return r instanceof kr&&r.text===","}else return!1}var zn=function(t,r,i){if(t.length===1){var l=dt(t[0],r);return i&&l instanceof qn&&l.type==="mo"&&(l.setAttribute("lspace","0em"),l.setAttribute("rspace","0em")),[l]}for(var s=[],c,f=0;f<t.length;f++){var d=dt(t[f],r);if(d instanceof qn&&c instanceof qn){if(d.type==="mtext"&&c.type==="mtext"&&d.getAttribute("mathvariant")===c.getAttribute("mathvariant")){c.children.push(...d.children);continue}else if(d.type==="mn"&&c.type==="mn"){c.children.push(...d.children);continue}else if(g1(d)&&c.type==="mn"){c.children.push(...d.children);continue}else if(d.type==="mn"&&g1(c))d.children=[...c.children,...d.children],s.pop();else if((d.type==="msup"||d.type==="msub")&&d.children.length>=1&&(c.type==="mn"||g1(c))){var h=d.children[0];h instanceof qn&&h.type==="mn"&&(h.children=[...c.children,...h.children],s.pop())}else if(c.type==="mi"&&c.children.length===1){var g=c.children[0];if(g instanceof kr&&g.text==="̸"&&(d.type==="mo"||d.type==="mi"||d.type==="mn")){var v=d.children[0];v instanceof kr&&v.text.length>0&&(v.text=v.text.slice(0,1)+"̸"+v.text.slice(1),s.pop())}}}s.push(d),c=d}return s},si=function(t,r,i){return Hh(zn(t,r,i))},dt=function(t,r){if(!t)return new ue.MathNode("mrow");if($u[t.type]){var i=$u[t.type](t,r);return i}else throw new fe("Got group of unknown type: '"+t.type+"'")};function z5(e,t,r,i,l){var s=zn(e,r),c;s.length===1&&s[0]instanceof qn&&["mrow","mtable"].includes(s[0].type)?c=s[0]:c=new ue.MathNode("mrow",s);var f=new ue.MathNode("annotation",[new ue.TextNode(t)]);f.setAttribute("encoding","application/x-tex");var d=new ue.MathNode("semantics",[c,f]),h=new ue.MathNode("math",[d]);h.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),i&&h.setAttribute("display","block");var g=l?"katex":"katex-mathml";return $.makeSpan([g],[h])}var S7=function(t){return new ia({style:t.displayMode?Le.DISPLAY:Le.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},A7=function(t,r){if(r.displayMode){var i=["katex-display"];r.leqno&&i.push("leqno"),r.fleqn&&i.push("fleqn"),t=$.makeSpan(i,[t])}return t},iz=function(t,r,i){var l=S7(i),s;if(i.output==="mathml")return z5(t,r,l,i.displayMode,!0);if(i.output==="html"){var c=$1(t,l);s=$.makeSpan(["katex"],[c])}else{var f=z5(t,r,l,i.displayMode,!1),d=$1(t,l);s=$.makeSpan(["katex"],[f,d])}return A7(s,i)},lz=function(t,r,i){var l=S7(i),s=$1(t,l),c=$.makeSpan(["katex"],[s]);return A7(c,i)},oz={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},sz=function(t){var r=new ue.MathNode("mo",[new ue.TextNode(oz[t.replace(/^\\/,"")])]);return r.setAttribute("stretchy","true"),r},uz={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},cz=function(t){return t.type==="ordgroup"?t.body.length:1},fz=function(t,r){function i(){var f=4e5,d=t.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(d)){var h=t,g=cz(h.base),v,b,w;if(g>5)d==="widehat"||d==="widecheck"?(v=420,f=2364,w=.42,b=d+"4"):(v=312,f=2340,w=.34,b="tilde4");else{var E=[1,1,2,2,3,3][g];d==="widehat"||d==="widecheck"?(f=[0,1062,2364,2364,2364][E],v=[0,239,300,360,420][E],w=[0,.24,.3,.3,.36,.42][E],b=d+E):(f=[0,600,1033,2339,2340][E],v=[0,260,286,306,312][E],w=[0,.26,.286,.3,.306,.34][E],b="tilde"+E)}var A=new oi(b),T=new pa([A],{width:"100%",height:pe(w),viewBox:"0 0 "+f+" "+v,preserveAspectRatio:"none"});return{span:$.makeSvgSpan([],[T],r),minWidth:0,height:w}}else{var N=[],O=uz[d],[R,H,F]=O,I=F/1e3,G=R.length,V,te;if(G===1){var de=O[3];V=["hide-tail"],te=[de]}else if(G===2)V=["halfarrow-left","halfarrow-right"],te=["xMinYMin","xMaxYMin"];else if(G===3)V=["brace-left","brace-center","brace-right"],te=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
448
+ `+G+" children.");for(var ce=0;ce<G;ce++){var he=new oi(R[ce]),De=new pa([he],{width:"400em",height:pe(I),viewBox:"0 0 "+f+" "+F,preserveAspectRatio:te[ce]+" slice"}),we=$.makeSvgSpan([V[ce]],[De],r);if(G===1)return{span:we,minWidth:H,height:I};we.style.height=pe(I),N.push(we)}return{span:$.makeSpan(["stretchy"],N,r),minWidth:H,height:I}}}var{span:l,minWidth:s,height:c}=i();return l.height=c,l.style.height=pe(c),s>0&&(l.style.minWidth=pe(s)),l},dz=function(t,r,i,l,s){var c,f=t.height+t.depth+i+l;if(/fbox|color|angl/.test(r)){if(c=$.makeSpan(["stretchy",r],[],s),r==="fbox"){var d=s.color&&s.getColor();d&&(c.style.borderColor=d)}}else{var h=[];/^[bx]cancel$/.test(r)&&h.push(new V1({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(r)&&h.push(new V1({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var g=new pa(h,{width:"100%",height:pe(f)});c=$.makeSvgSpan([],[g],s)}return c.height=f,c.style.height=pe(f),c},va={encloseSpan:dz,mathMLnode:sz,svgSpan:fz};function Ge(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function Uh(e){var t=vc(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function vc(e){return e&&(e.type==="atom"||_N.hasOwnProperty(e.type))?e:null}var Gh=(e,t)=>{var r,i,l;e&&e.type==="supsub"?(i=Ge(e.base,"accent"),r=i.base,e.base=r,l=jN(Je(e,t)),e.base=i):(i=Ge(e,"accent"),r=i.base);var s=Je(r,t.havingCrampedStyle()),c=i.isShifty&&nt.isCharacterBox(r),f=0;if(c){var d=nt.getBaseElem(r),h=Je(d,t.havingCrampedStyle());f=A5(h).skew}var g=i.label==="\\c",v=g?s.height+s.depth:Math.min(s.height,t.fontMetrics().xHeight),b;if(i.isStretchy)b=va.svgSpan(i,t),b=$.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:b,wrapperClasses:["svg-align"],wrapperStyle:f>0?{width:"calc(100% - "+pe(2*f)+")",marginLeft:pe(2*f)}:void 0}]},t);else{var w,E;i.label==="\\vec"?(w=$.staticSvg("vec",t),E=$.svgData.vec[1]):(w=$.makeOrd({mode:i.mode,text:i.label},t,"textord"),w=A5(w),w.italic=0,E=w.width,g&&(v+=w.depth)),b=$.makeSpan(["accent-body"],[w]);var A=i.label==="\\textcircled";A&&(b.classes.push("accent-full"),v=s.height);var T=f;A||(T-=E/2),b.style.left=pe(T),i.label==="\\textcircled"&&(b.style.top=".2em"),b=$.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-v},{type:"elem",elem:b}]},t)}var N=$.makeSpan(["mord","accent"],[b],t);return l?(l.children[0]=N,l.height=Math.max(N.height,l.height),l.classes[0]="mord",l):N},M7=(e,t)=>{var r=e.isStretchy?va.mathMLnode(e.label):new ue.MathNode("mo",[ir(e.label,e.mode)]),i=new ue.MathNode("mover",[dt(e.base,t),r]);return i.setAttribute("accent","true"),i},hz=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));ve({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var r=Ku(t[0]),i=!hz.test(e.funcName),l=!i||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:i,isShifty:l,base:r}},htmlBuilder:Gh,mathmlBuilder:M7});ve({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var r=t[0],i=e.parser.mode;return i==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),i="text"),{type:"accent",mode:i,label:e.funcName,isStretchy:!1,isShifty:!0,base:r}},htmlBuilder:Gh,mathmlBuilder:M7});ve({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:i}=e,l=t[0];return{type:"accentUnder",mode:r.mode,label:i,base:l}},htmlBuilder:(e,t)=>{var r=Je(e.base,t),i=va.svgSpan(e,t),l=e.label==="\\utilde"?.12:0,s=$.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:l},{type:"elem",elem:r}]},t);return $.makeSpan(["mord","accentunder"],[s],t)},mathmlBuilder:(e,t)=>{var r=va.mathMLnode(e.label),i=new ue.MathNode("munder",[dt(e.base,t),r]);return i.setAttribute("accentunder","true"),i}});var wu=e=>{var t=new ue.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};ve({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:i,funcName:l}=e;return{type:"xArrow",mode:i.mode,label:l,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,i=t.havingStyle(r.sup()),l=$.wrapFragment(Je(e.body,i,t),t),s=e.label.slice(0,2)==="\\x"?"x":"cd";l.classes.push(s+"-arrow-pad");var c;e.below&&(i=t.havingStyle(r.sub()),c=$.wrapFragment(Je(e.below,i,t),t),c.classes.push(s+"-arrow-pad"));var f=va.svgSpan(e,t),d=-t.fontMetrics().axisHeight+.5*f.height,h=-t.fontMetrics().axisHeight-.5*f.height-.111;(l.depth>.25||e.label==="\\xleftequilibrium")&&(h-=l.depth);var g;if(c){var v=-t.fontMetrics().axisHeight+c.height+.5*f.height+.111;g=$.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:h},{type:"elem",elem:f,shift:d},{type:"elem",elem:c,shift:v}]},t)}else g=$.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:h},{type:"elem",elem:f,shift:d}]},t);return g.children[0].children[0].children[1].classes.push("svg-align"),$.makeSpan(["mrel","x-arrow"],[g],t)},mathmlBuilder(e,t){var r=va.mathMLnode(e.label);r.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var i;if(e.body){var l=wu(dt(e.body,t));if(e.below){var s=wu(dt(e.below,t));i=new ue.MathNode("munderover",[r,s,l])}else i=new ue.MathNode("mover",[r,l])}else if(e.below){var c=wu(dt(e.below,t));i=new ue.MathNode("munder",[r,c])}else i=wu(),i=new ue.MathNode("mover",[r,i]);return i}});var mz=$.makeSpan;function E7(e,t){var r=Pt(e.body,t,!0);return mz([e.mclass],r,t)}function T7(e,t){var r,i=zn(e.body,t);return e.mclass==="minner"?r=new ue.MathNode("mpadded",i):e.mclass==="mord"?e.isCharacterBox?(r=i[0],r.type="mi"):r=new ue.MathNode("mi",i):(e.isCharacterBox?(r=i[0],r.type="mo"):r=new ue.MathNode("mo",i),e.mclass==="mbin"?(r.attributes.lspace="0.22em",r.attributes.rspace="0.22em"):e.mclass==="mpunct"?(r.attributes.lspace="0em",r.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(r.attributes.lspace="0em",r.attributes.rspace="0em"):e.mclass==="minner"&&(r.attributes.lspace="0.0556em",r.attributes.width="+0.1111em")),r}ve({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:r,funcName:i}=e,l=t[0];return{type:"mclass",mode:r.mode,mclass:"m"+i.slice(5),body:Dt(l),isCharacterBox:nt.isCharacterBox(l)}},htmlBuilder:E7,mathmlBuilder:T7});var yc=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};ve({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:r}=e;return{type:"mclass",mode:r.mode,mclass:yc(t[0]),body:Dt(t[1]),isCharacterBox:nt.isCharacterBox(t[1])}}});ve({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:r,funcName:i}=e,l=t[1],s=t[0],c;i!=="\\stackrel"?c=yc(l):c="mrel";var f={type:"op",mode:l.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:i!=="\\stackrel",body:Dt(l)},d={type:"supsub",mode:s.mode,base:f,sup:i==="\\underset"?null:s,sub:i==="\\underset"?s:null};return{type:"mclass",mode:r.mode,mclass:c,body:[d],isCharacterBox:nt.isCharacterBox(d)}},htmlBuilder:E7,mathmlBuilder:T7});ve({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"pmb",mode:r.mode,mclass:yc(t[0]),body:Dt(t[0])}},htmlBuilder(e,t){var r=Pt(e.body,t,!0),i=$.makeSpan([e.mclass],r,t);return i.style.textShadow="0.02em 0.01em 0.04px",i},mathmlBuilder(e,t){var r=zn(e.body,t),i=new ue.MathNode("mstyle",r);return i.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),i}});var pz={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},D5=()=>({type:"styling",body:[],mode:"math",style:"display"}),O5=e=>e.type==="textord"&&e.text==="@",gz=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function vz(e,t,r){var i=pz[e];switch(i){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r.callFunction(i,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var l=r.callFunction("\\\\cdleft",[t[0]],[]),s={type:"atom",text:i,mode:"math",family:"rel"},c=r.callFunction("\\Big",[s],[]),f=r.callFunction("\\\\cdright",[t[1]],[]),d={type:"ordgroup",mode:"math",body:[l,c,f]};return r.callFunction("\\\\cdparent",[d],[])}case"\\\\cdlongequal":return r.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var h={type:"textord",text:"\\Vert",mode:"math"};return r.callFunction("\\Big",[h],[])}default:return{type:"textord",text:" ",mode:"math"}}}function yz(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var r=e.fetch().text;if(r==="&"||r==="\\\\")e.consume();else if(r==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new fe("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var i=[],l=[i],s=0;s<t.length;s++){for(var c=t[s],f=D5(),d=0;d<c.length;d++)if(!O5(c[d]))f.body.push(c[d]);else{i.push(f),d+=1;var h=Uh(c[d]).text,g=new Array(2);if(g[0]={type:"ordgroup",mode:"math",body:[]},g[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(h)>-1))if("<>AV".indexOf(h)>-1)for(var v=0;v<2;v++){for(var b=!0,w=d+1;w<c.length;w++){if(gz(c[w],h)){b=!1,d=w;break}if(O5(c[w]))throw new fe("Missing a "+h+" character to complete a CD arrow.",c[w]);g[v].body.push(c[w])}if(b)throw new fe("Missing a "+h+" character to complete a CD arrow.",c[d])}else throw new fe('Expected one of "<>AV=|." after @',c[d]);var E=vz(h,g,e),A={type:"styling",body:[E],mode:"math",style:"display"};i.push(A),f=D5()}s%2===0?i.push(f):i.shift(),i=[],l.push(i)}e.gullet.endGroup(),e.gullet.endGroup();var T=new Array(l[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:l,arraystretch:1,addJot:!0,rowGaps:[null],cols:T,colSeparationType:"CD",hLinesBeforeRow:new Array(l.length+1).fill([])}}ve({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:i}=e;return{type:"cdlabel",mode:r.mode,side:i.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),i=$.wrapFragment(Je(e.label,r,t),t);return i.classes.push("cd-label-"+e.side),i.style.bottom=pe(.8-i.depth),i.height=0,i.depth=0,i},mathmlBuilder(e,t){var r=new ue.MathNode("mrow",[dt(e.label,t)]);return r=new ue.MathNode("mpadded",[r]),r.setAttribute("width","0"),e.side==="left"&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),r=new ue.MathNode("mstyle",[r]),r.setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}});ve({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:r}=e;return{type:"cdlabelparent",mode:r.mode,fragment:t[0]}},htmlBuilder(e,t){var r=$.wrapFragment(Je(e.fragment,t),t);return r.classes.push("cd-vert-arrow"),r},mathmlBuilder(e,t){return new ue.MathNode("mrow",[dt(e.fragment,t)])}});ve({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:r}=e,i=Ge(t[0],"ordgroup"),l=i.body,s="",c=0;c<l.length;c++){var f=Ge(l[c],"textord");s+=f.text}var d=parseInt(s),h;if(isNaN(d))throw new fe("\\@char has non-numeric argument "+s);if(d<0||d>=1114111)throw new fe("\\@char with invalid code point "+s);return d<=65535?h=String.fromCharCode(d):(d-=65536,h=String.fromCharCode((d>>10)+55296,(d&1023)+56320)),{type:"textord",mode:r.mode,text:h}}});var C7=(e,t)=>{var r=Pt(e.body,t.withColor(e.color),!1);return $.makeFragment(r)},k7=(e,t)=>{var r=zn(e.body,t.withColor(e.color)),i=new ue.MathNode("mstyle",r);return i.setAttribute("mathcolor",e.color),i};ve({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:r}=e,i=Ge(t[0],"color-token").color,l=t[1];return{type:"color",mode:r.mode,color:i,body:Dt(l)}},htmlBuilder:C7,mathmlBuilder:k7});ve({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:r,breakOnTokenText:i}=e,l=Ge(t[0],"color-token").color;r.gullet.macros.set("\\current@color",l);var s=r.parseExpression(!0,i);return{type:"color",mode:r.mode,color:l,body:s}},htmlBuilder:C7,mathmlBuilder:k7});ve({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var{parser:i}=e,l=i.gullet.future().text==="["?i.parseSizeGroup(!0):null,s=!i.settings.displayMode||!i.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:i.mode,newLine:s,size:l&&Ge(l,"size").value}},htmlBuilder(e,t){var r=$.makeSpan(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size&&(r.style.marginTop=pe(wt(e.size,t)))),r},mathmlBuilder(e,t){var r=new ue.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size&&r.setAttribute("height",pe(wt(e.size,t)))),r}});var K1={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},N7=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new fe("Expected a control sequence",e);return t},bz=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},z7=(e,t,r,i)=>{var l=e.gullet.macros.get(r.text);l==null&&(r.noexpand=!0,l={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,l,i)};ve({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:r}=e;t.consumeSpaces();var i=t.fetch();if(K1[i.text])return(r==="\\global"||r==="\\\\globallong")&&(i.text=K1[i.text]),Ge(t.parseFunction(),"internal");throw new fe("Invalid token after macro prefix",i)}});ve({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,i=t.gullet.popToken(),l=i.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(l))throw new fe("Expected a control sequence",i);for(var s=0,c,f=[[]];t.gullet.future().text!=="{";)if(i=t.gullet.popToken(),i.text==="#"){if(t.gullet.future().text==="{"){c=t.gullet.future(),f[s].push("{");break}if(i=t.gullet.popToken(),!/^[1-9]$/.test(i.text))throw new fe('Invalid argument number "'+i.text+'"');if(parseInt(i.text)!==s+1)throw new fe('Argument number "'+i.text+'" out of order');s++,f.push([])}else{if(i.text==="EOF")throw new fe("Expected a macro definition");f[s].push(i.text)}var{tokens:d}=t.gullet.consumeArg();return c&&d.unshift(c),(r==="\\edef"||r==="\\xdef")&&(d=t.gullet.expandTokens(d),d.reverse()),t.gullet.macros.set(l,{tokens:d,numArgs:s,delimiters:f},r===K1[r]),{type:"internal",mode:t.mode}}});ve({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,i=N7(t.gullet.popToken());t.gullet.consumeSpaces();var l=bz(t);return z7(t,i,l,r==="\\\\globallet"),{type:"internal",mode:t.mode}}});ve({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:r}=e,i=N7(t.gullet.popToken()),l=t.gullet.popToken(),s=t.gullet.popToken();return z7(t,i,s,r==="\\\\globalfuture"),t.gullet.pushToken(s),t.gullet.pushToken(l),{type:"internal",mode:t.mode}}});var uo=function(t,r,i){var l=ht.math[t]&&ht.math[t].replace,s=jh(l||t,r,i);if(!s)throw new Error("Unsupported symbol "+t+" and font size "+r+".");return s},Fh=function(t,r,i,l){var s=i.havingBaseStyle(r),c=$.makeSpan(l.concat(s.sizingClasses(i)),[t],i),f=s.sizeMultiplier/i.sizeMultiplier;return c.height*=f,c.depth*=f,c.maxFontSize=s.sizeMultiplier,c},D7=function(t,r,i){var l=r.havingBaseStyle(i),s=(1-r.sizeMultiplier/l.sizeMultiplier)*r.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=pe(s),t.height-=s,t.depth+=s},xz=function(t,r,i,l,s,c){var f=$.makeSymbol(t,"Main-Regular",s,l),d=Fh(f,r,l,c);return i&&D7(d,l,r),d},wz=function(t,r,i,l){return $.makeSymbol(t,"Size"+r+"-Regular",i,l)},O7=function(t,r,i,l,s,c){var f=wz(t,r,s,l),d=Fh($.makeSpan(["delimsizing","size"+r],[f],l),Le.TEXT,l,c);return i&&D7(d,l,Le.TEXT),d},v1=function(t,r,i){var l;r==="Size1-Regular"?l="delim-size1":l="delim-size4";var s=$.makeSpan(["delimsizinginner",l],[$.makeSpan([],[$.makeSymbol(t,r,i)])]);return{type:"elem",elem:s}},y1=function(t,r,i){var l=Cr["Size4-Regular"][t.charCodeAt(0)]?Cr["Size4-Regular"][t.charCodeAt(0)][4]:Cr["Size1-Regular"][t.charCodeAt(0)][4],s=new oi("inner",TN(t,Math.round(1e3*r))),c=new pa([s],{width:pe(l),height:pe(r),style:"width:"+pe(l),viewBox:"0 0 "+1e3*l+" "+Math.round(1e3*r),preserveAspectRatio:"xMinYMin"}),f=$.makeSvgSpan([],[c],i);return f.height=r,f.style.height=pe(r),f.style.width=pe(l),{type:"elem",elem:f}},Q1=.008,Su={type:"kern",size:-1*Q1},Sz=["|","\\lvert","\\rvert","\\vert"],Az=["\\|","\\lVert","\\rVert","\\Vert"],R7=function(t,r,i,l,s,c){var f,d,h,g,v="",b=0;f=h=g=t,d=null;var w="Size1-Regular";t==="\\uparrow"?h=g="⏐":t==="\\Uparrow"?h=g="‖":t==="\\downarrow"?f=h="⏐":t==="\\Downarrow"?f=h="‖":t==="\\updownarrow"?(f="\\uparrow",h="⏐",g="\\downarrow"):t==="\\Updownarrow"?(f="\\Uparrow",h="‖",g="\\Downarrow"):Sz.includes(t)?(h="∣",v="vert",b=333):Az.includes(t)?(h="∥",v="doublevert",b=556):t==="["||t==="\\lbrack"?(f="⎡",h="⎢",g="⎣",w="Size4-Regular",v="lbrack",b=667):t==="]"||t==="\\rbrack"?(f="⎤",h="⎥",g="⎦",w="Size4-Regular",v="rbrack",b=667):t==="\\lfloor"||t==="⌊"?(h=f="⎢",g="⎣",w="Size4-Regular",v="lfloor",b=667):t==="\\lceil"||t==="⌈"?(f="⎡",h=g="⎢",w="Size4-Regular",v="lceil",b=667):t==="\\rfloor"||t==="⌋"?(h=f="⎥",g="⎦",w="Size4-Regular",v="rfloor",b=667):t==="\\rceil"||t==="⌉"?(f="⎤",h=g="⎥",w="Size4-Regular",v="rceil",b=667):t==="("||t==="\\lparen"?(f="⎛",h="⎜",g="⎝",w="Size4-Regular",v="lparen",b=875):t===")"||t==="\\rparen"?(f="⎞",h="⎟",g="⎠",w="Size4-Regular",v="rparen",b=875):t==="\\{"||t==="\\lbrace"?(f="⎧",d="⎨",g="⎩",h="⎪",w="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(f="⎫",d="⎬",g="⎭",h="⎪",w="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(f="⎧",g="⎩",h="⎪",w="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(f="⎫",g="⎭",h="⎪",w="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(f="⎧",g="⎭",h="⎪",w="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(f="⎫",g="⎩",h="⎪",w="Size4-Regular");var E=uo(f,w,s),A=E.height+E.depth,T=uo(h,w,s),N=T.height+T.depth,O=uo(g,w,s),R=O.height+O.depth,H=0,F=1;if(d!==null){var I=uo(d,w,s);H=I.height+I.depth,F=2}var G=A+R+H,V=Math.max(0,Math.ceil((r-G)/(F*N))),te=G+V*F*N,de=l.fontMetrics().axisHeight;i&&(de*=l.sizeMultiplier);var ce=te/2-de,he=[];if(v.length>0){var De=te-A-R,we=Math.round(te*1e3),Ce=CN(v,Math.round(De*1e3)),Y=new oi(v,Ce),ne=(b/1e3).toFixed(3)+"em",Q=(we/1e3).toFixed(3)+"em",le=new pa([Y],{width:ne,height:Q,viewBox:"0 0 "+b+" "+we}),be=$.makeSvgSpan([],[le],l);be.height=we/1e3,be.style.width=ne,be.style.height=Q,he.push({type:"elem",elem:be})}else{if(he.push(v1(g,w,s)),he.push(Su),d===null){var B=te-A-R+2*Q1;he.push(y1(h,B,l))}else{var W=(te-A-R-H)/2+2*Q1;he.push(y1(h,W,l)),he.push(Su),he.push(v1(d,w,s)),he.push(Su),he.push(y1(h,W,l))}he.push(Su),he.push(v1(f,w,s))}var ie=l.havingBaseStyle(Le.TEXT),se=$.makeVList({positionType:"bottom",positionData:ce,children:he},ie);return Fh($.makeSpan(["delimsizing","mult"],[se],ie),Le.TEXT,l,c)},b1=80,x1=.08,w1=function(t,r,i,l,s){var c=EN(t,l,i),f=new oi(t,c),d=new pa([f],{width:"400em",height:pe(r),viewBox:"0 0 400000 "+i,preserveAspectRatio:"xMinYMin slice"});return $.makeSvgSpan(["hide-tail"],[d],s)},Mz=function(t,r){var i=r.havingBaseSizing(),l=_7("\\surd",t*i.sizeMultiplier,B7,i),s=i.sizeMultiplier,c=Math.max(0,r.minRuleThickness-r.fontMetrics().sqrtRuleThickness),f,d=0,h=0,g=0,v;return l.type==="small"?(g=1e3+1e3*c+b1,t<1?s=1:t<1.4&&(s=.7),d=(1+c+x1)/s,h=(1+c)/s,f=w1("sqrtMain",d,g,c,r),f.style.minWidth="0.853em",v=.833/s):l.type==="large"?(g=(1e3+b1)*fo[l.size],h=(fo[l.size]+c)/s,d=(fo[l.size]+c+x1)/s,f=w1("sqrtSize"+l.size,d,g,c,r),f.style.minWidth="1.02em",v=1/s):(d=t+c+x1,h=t+c,g=Math.floor(1e3*t+c)+b1,f=w1("sqrtTall",d,g,c,r),f.style.minWidth="0.742em",v=1.056),f.height=h,f.style.height=pe(d),{span:f,advanceWidth:v,ruleWidth:(r.fontMetrics().sqrtRuleThickness+c)*s}},L7=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],Ez=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],j7=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],fo=[0,1.2,1.8,2.4,3],Tz=function(t,r,i,l,s){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),L7.includes(t)||j7.includes(t))return O7(t,r,!1,i,l,s);if(Ez.includes(t))return R7(t,fo[r],!1,i,l,s);throw new fe("Illegal delimiter: '"+t+"'")},Cz=[{type:"small",style:Le.SCRIPTSCRIPT},{type:"small",style:Le.SCRIPT},{type:"small",style:Le.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],kz=[{type:"small",style:Le.SCRIPTSCRIPT},{type:"small",style:Le.SCRIPT},{type:"small",style:Le.TEXT},{type:"stack"}],B7=[{type:"small",style:Le.SCRIPTSCRIPT},{type:"small",style:Le.SCRIPT},{type:"small",style:Le.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Nz=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},_7=function(t,r,i,l){for(var s=Math.min(2,3-l.style.size),c=s;c<i.length&&i[c].type!=="stack";c++){var f=uo(t,Nz(i[c]),"math"),d=f.height+f.depth;if(i[c].type==="small"){var h=l.havingBaseStyle(i[c].style);d*=h.sizeMultiplier}if(d>r)return i[c]}return i[i.length-1]},H7=function(t,r,i,l,s,c){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var f;j7.includes(t)?f=Cz:L7.includes(t)?f=B7:f=kz;var d=_7(t,r,f,l);return d.type==="small"?xz(t,d.style,i,l,s,c):d.type==="large"?O7(t,d.size,i,l,s,c):R7(t,r,i,l,s,c)},zz=function(t,r,i,l,s,c){var f=l.fontMetrics().axisHeight*l.sizeMultiplier,d=901,h=5/l.fontMetrics().ptPerEm,g=Math.max(r-f,i+f),v=Math.max(g/500*d,2*g-h);return H7(t,v,!0,l,s,c)},ca={sqrtImage:Mz,sizedDelim:Tz,sizeToMaxHeight:fo,customSizedDelim:H7,leftRightDelim:zz},R5={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Dz=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function bc(e,t){var r=vc(e);if(r&&Dz.includes(r.text))return r;throw r?new fe("Invalid delimiter '"+r.text+"' after '"+t.funcName+"'",e):new fe("Invalid delimiter type '"+e.type+"'",e)}ve({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var r=bc(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:R5[e.funcName].size,mclass:R5[e.funcName].mclass,delim:r.text}},htmlBuilder:(e,t)=>e.delim==="."?$.makeSpan([e.mclass]):ca.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(ir(e.delim,e.mode));var r=new ue.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?r.setAttribute("fence","true"):r.setAttribute("fence","false"),r.setAttribute("stretchy","true");var i=pe(ca.sizeToMaxHeight[e.size]);return r.setAttribute("minsize",i),r.setAttribute("maxsize",i),r}});function L5(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}ve({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&typeof r!="string")throw new fe("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:bc(t[0],e).text,color:r}}});ve({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=bc(t[0],e),i=e.parser;++i.leftrightDepth;var l=i.parseExpression(!1);--i.leftrightDepth,i.expect("\\right",!1);var s=Ge(i.parseFunction(),"leftright-right");return{type:"leftright",mode:i.mode,body:l,left:r.text,right:s.delim,rightColor:s.color}},htmlBuilder:(e,t)=>{L5(e);for(var r=Pt(e.body,t,!0,["mopen","mclose"]),i=0,l=0,s=!1,c=0;c<r.length;c++)r[c].isMiddle?s=!0:(i=Math.max(r[c].height,i),l=Math.max(r[c].depth,l));i*=t.sizeMultiplier,l*=t.sizeMultiplier;var f;if(e.left==="."?f=wo(t,["mopen"]):f=ca.leftRightDelim(e.left,i,l,t,e.mode,["mopen"]),r.unshift(f),s)for(var d=1;d<r.length;d++){var h=r[d],g=h.isMiddle;g&&(r[d]=ca.leftRightDelim(g.delim,i,l,g.options,e.mode,[]))}var v;if(e.right===".")v=wo(t,["mclose"]);else{var b=e.rightColor?t.withColor(e.rightColor):t;v=ca.leftRightDelim(e.right,i,l,b,e.mode,["mclose"])}return r.push(v),$.makeSpan(["minner"],r,t)},mathmlBuilder:(e,t)=>{L5(e);var r=zn(e.body,t);if(e.left!=="."){var i=new ue.MathNode("mo",[ir(e.left,e.mode)]);i.setAttribute("fence","true"),r.unshift(i)}if(e.right!=="."){var l=new ue.MathNode("mo",[ir(e.right,e.mode)]);l.setAttribute("fence","true"),e.rightColor&&l.setAttribute("mathcolor",e.rightColor),r.push(l)}return Hh(r)}});ve({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=bc(t[0],e);if(!e.parser.leftrightDepth)throw new fe("\\middle without preceding \\left",r);return{type:"middle",mode:e.parser.mode,delim:r.text}},htmlBuilder:(e,t)=>{var r;if(e.delim===".")r=wo(t,[]);else{r=ca.sizedDelim(e.delim,1,t,e.mode,[]);var i={delim:e.delim,options:t};r.isMiddle=i}return r},mathmlBuilder:(e,t)=>{var r=e.delim==="\\vert"||e.delim==="|"?ir("|","text"):ir(e.delim,e.mode),i=new ue.MathNode("mo",[r]);return i.setAttribute("fence","true"),i.setAttribute("lspace","0.05em"),i.setAttribute("rspace","0.05em"),i}});var Yh=(e,t)=>{var r=$.wrapFragment(Je(e.body,t),t),i=e.label.slice(1),l=t.sizeMultiplier,s,c=0,f=nt.isCharacterBox(e.body);if(i==="sout")s=$.makeSpan(["stretchy","sout"]),s.height=t.fontMetrics().defaultRuleThickness/l,c=-.5*t.fontMetrics().xHeight;else if(i==="phase"){var d=wt({number:.6,unit:"pt"},t),h=wt({number:.35,unit:"ex"},t),g=t.havingBaseSizing();l=l/g.sizeMultiplier;var v=r.height+r.depth+d+h;r.style.paddingLeft=pe(v/2+d);var b=Math.floor(1e3*v*l),w=AN(b),E=new pa([new oi("phase",w)],{width:"400em",height:pe(b/1e3),viewBox:"0 0 400000 "+b,preserveAspectRatio:"xMinYMin slice"});s=$.makeSvgSpan(["hide-tail"],[E],t),s.style.height=pe(v),c=r.depth+d+h}else{/cancel/.test(i)?f||r.classes.push("cancel-pad"):i==="angl"?r.classes.push("anglpad"):r.classes.push("boxpad");var A=0,T=0,N=0;/box/.test(i)?(N=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),A=t.fontMetrics().fboxsep+(i==="colorbox"?0:N),T=A):i==="angl"?(N=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),A=4*N,T=Math.max(0,.25-r.depth)):(A=f?.2:0,T=A),s=va.encloseSpan(r,i,A,T,t),/fbox|boxed|fcolorbox/.test(i)?(s.style.borderStyle="solid",s.style.borderWidth=pe(N)):i==="angl"&&N!==.049&&(s.style.borderTopWidth=pe(N),s.style.borderRightWidth=pe(N)),c=r.depth+T,e.backgroundColor&&(s.style.backgroundColor=e.backgroundColor,e.borderColor&&(s.style.borderColor=e.borderColor))}var O;if(e.backgroundColor)O=$.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:c},{type:"elem",elem:r,shift:0}]},t);else{var R=/cancel|phase/.test(i)?["svg-align"]:[];O=$.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:0},{type:"elem",elem:s,shift:c,wrapperClasses:R}]},t)}return/cancel/.test(i)&&(O.height=r.height,O.depth=r.depth),/cancel/.test(i)&&!f?$.makeSpan(["mord","cancel-lap"],[O],t):$.makeSpan(["mord"],[O],t)},Ph=(e,t)=>{var r=0,i=new ue.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[dt(e.body,t)]);switch(e.label){case"\\cancel":i.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":i.setAttribute("notation","downdiagonalstrike");break;case"\\phase":i.setAttribute("notation","phasorangle");break;case"\\sout":i.setAttribute("notation","horizontalstrike");break;case"\\fbox":i.setAttribute("notation","box");break;case"\\angl":i.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(r=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,i.setAttribute("width","+"+2*r+"pt"),i.setAttribute("height","+"+2*r+"pt"),i.setAttribute("lspace",r+"pt"),i.setAttribute("voffset",r+"pt"),e.label==="\\fcolorbox"){var l=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);i.setAttribute("style","border: "+l+"em solid "+String(e.borderColor))}break;case"\\xcancel":i.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&i.setAttribute("mathbackground",e.backgroundColor),i};ve({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,r){var{parser:i,funcName:l}=e,s=Ge(t[0],"color-token").color,c=t[1];return{type:"enclose",mode:i.mode,label:l,backgroundColor:s,body:c}},htmlBuilder:Yh,mathmlBuilder:Ph});ve({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,r){var{parser:i,funcName:l}=e,s=Ge(t[0],"color-token").color,c=Ge(t[1],"color-token").color,f=t[2];return{type:"enclose",mode:i.mode,label:l,backgroundColor:c,borderColor:s,body:f}},htmlBuilder:Yh,mathmlBuilder:Ph});ve({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\fbox",body:t[0]}}});ve({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:i}=e,l=t[0];return{type:"enclose",mode:r.mode,label:i,body:l}},htmlBuilder:Yh,mathmlBuilder:Ph});ve({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"enclose",mode:r.mode,label:"\\angl",body:t[0]}}});var q7={};function Lr(e){for(var{type:t,names:r,props:i,handler:l,htmlBuilder:s,mathmlBuilder:c}=e,f={type:t,numArgs:i.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:l},d=0;d<r.length;++d)q7[r[d]]=f;s&&(Xu[t]=s),c&&($u[t]=c)}var U7={};function D(e,t){U7[e]=t}function j5(e){var t=[];e.consumeSpaces();var r=e.fetch().text;for(r==="\\relax"&&(e.consume(),e.consumeSpaces(),r=e.fetch().text);r==="\\hline"||r==="\\hdashline";)e.consume(),t.push(r==="\\hdashline"),e.consumeSpaces(),r=e.fetch().text;return t}var xc=e=>{var t=e.parser.settings;if(!t.displayMode)throw new fe("{"+e.envName+"} can be used only in display mode.")};function Vh(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function fi(e,t,r){var{hskipBeforeAndAfter:i,addJot:l,cols:s,arraystretch:c,colSeparationType:f,autoTag:d,singleRow:h,emptySingleRow:g,maxNumCols:v,leqno:b}=t;if(e.gullet.beginGroup(),h||e.gullet.macros.set("\\cr","\\\\\\relax"),!c){var w=e.gullet.expandMacroAsText("\\arraystretch");if(w==null)c=1;else if(c=parseFloat(w),!c||c<0)throw new fe("Invalid \\arraystretch: "+w)}e.gullet.beginGroup();var E=[],A=[E],T=[],N=[],O=d!=null?[]:void 0;function R(){d&&e.gullet.macros.set("\\@eqnsw","1",!0)}function H(){O&&(e.gullet.macros.get("\\df@tag")?(O.push(e.subparse([new Gn("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):O.push(!!d&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(R(),N.push(j5(e));;){var F=e.parseExpression(!1,h?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),F={type:"ordgroup",mode:e.mode,body:F},r&&(F={type:"styling",mode:e.mode,style:r,body:[F]}),E.push(F);var I=e.fetch().text;if(I==="&"){if(v&&E.length===v){if(h||f)throw new fe("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(I==="\\end"){H(),E.length===1&&F.type==="styling"&&F.body[0].body.length===0&&(A.length>1||!g)&&A.pop(),N.length<A.length+1&&N.push([]);break}else if(I==="\\\\"){e.consume();var G=void 0;e.gullet.future().text!==" "&&(G=e.parseSizeGroup(!0)),T.push(G?G.value:null),H(),N.push(j5(e)),E=[],A.push(E),R()}else throw new fe("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:l,arraystretch:c,body:A,cols:s,rowGaps:T,hskipBeforeAndAfter:i,hLinesBeforeRow:N,colSeparationType:f,tags:O,leqno:b}}function Ih(e){return e.slice(0,1)==="d"?"display":"text"}var jr=function(t,r){var i,l,s=t.body.length,c=t.hLinesBeforeRow,f=0,d=new Array(s),h=[],g=Math.max(r.fontMetrics().arrayRuleWidth,r.minRuleThickness),v=1/r.fontMetrics().ptPerEm,b=5*v;if(t.colSeparationType&&t.colSeparationType==="small"){var w=r.havingStyle(Le.SCRIPT).sizeMultiplier;b=.2778*(w/r.sizeMultiplier)}var E=t.colSeparationType==="CD"?wt({number:3,unit:"ex"},r):12*v,A=3*v,T=t.arraystretch*E,N=.7*T,O=.3*T,R=0;function H(Kt){for(var Mt=0;Mt<Kt.length;++Mt)Mt>0&&(R+=.25),h.push({pos:R,isDashed:Kt[Mt]})}for(H(c[0]),i=0;i<t.body.length;++i){var F=t.body[i],I=N,G=O;f<F.length&&(f=F.length);var V=new Array(F.length);for(l=0;l<F.length;++l){var te=Je(F[l],r);G<te.depth&&(G=te.depth),I<te.height&&(I=te.height),V[l]=te}var de=t.rowGaps[i],ce=0;de&&(ce=wt(de,r),ce>0&&(ce+=O,G<ce&&(G=ce),ce=0)),t.addJot&&(G+=A),V.height=I,V.depth=G,R+=I,V.pos=R,R+=G+ce,d[i]=V,H(c[i+1])}var he=R/2+r.fontMetrics().axisHeight,De=t.cols||[],we=[],Ce,Y,ne=[];if(t.tags&&t.tags.some(Kt=>Kt))for(i=0;i<s;++i){var Q=d[i],le=Q.pos-he,be=t.tags[i],B=void 0;be===!0?B=$.makeSpan(["eqn-num"],[],r):be===!1?B=$.makeSpan([],[],r):B=$.makeSpan([],Pt(be,r,!0),r),B.depth=Q.depth,B.height=Q.height,ne.push({type:"elem",elem:B,shift:le})}for(l=0,Y=0;l<f||Y<De.length;++l,++Y){for(var W=De[Y]||{},ie=!0;W.type==="separator";){if(ie||(Ce=$.makeSpan(["arraycolsep"],[]),Ce.style.width=pe(r.fontMetrics().doubleRuleSep),we.push(Ce)),W.separator==="|"||W.separator===":"){var se=W.separator==="|"?"solid":"dashed",Se=$.makeSpan(["vertical-separator"],[],r);Se.style.height=pe(R),Se.style.borderRightWidth=pe(g),Se.style.borderRightStyle=se,Se.style.margin="0 "+pe(-g/2);var ke=R-he;ke&&(Se.style.verticalAlign=pe(-ke)),we.push(Se)}else throw new fe("Invalid separator type: "+W.separator);Y++,W=De[Y]||{},ie=!1}if(!(l>=f)){var ge=void 0;(l>0||t.hskipBeforeAndAfter)&&(ge=nt.deflt(W.pregap,b),ge!==0&&(Ce=$.makeSpan(["arraycolsep"],[]),Ce.style.width=pe(ge),we.push(Ce)));var _e=[];for(i=0;i<s;++i){var Oe=d[i],Ze=Oe[l];if(Ze){var Ye=Oe.pos-he;Ze.depth=Oe.depth,Ze.height=Oe.height,_e.push({type:"elem",elem:Ze,shift:Ye})}}_e=$.makeVList({positionType:"individualShift",children:_e},r),_e=$.makeSpan(["col-align-"+(W.align||"c")],[_e]),we.push(_e),(l<f-1||t.hskipBeforeAndAfter)&&(ge=nt.deflt(W.postgap,b),ge!==0&&(Ce=$.makeSpan(["arraycolsep"],[]),Ce.style.width=pe(ge),we.push(Ce)))}}if(d=$.makeSpan(["mtable"],we),h.length>0){for(var ye=$.makeLineSpan("hline",r,g),Pe=$.makeLineSpan("hdashline",r,g),Ke=[{type:"elem",elem:d,shift:0}];h.length>0;){var vt=h.pop(),qt=vt.pos-he;vt.isDashed?Ke.push({type:"elem",elem:Pe,shift:qt}):Ke.push({type:"elem",elem:ye,shift:qt})}d=$.makeVList({positionType:"individualShift",children:Ke},r)}if(ne.length===0)return $.makeSpan(["mord"],[d],r);var $t=$.makeVList({positionType:"individualShift",children:ne},r);return $t=$.makeSpan(["tag"],[$t],r),$.makeFragment([d,$t])},Oz={c:"center ",l:"left ",r:"right "},Br=function(t,r){for(var i=[],l=new ue.MathNode("mtd",[],["mtr-glue"]),s=new ue.MathNode("mtd",[],["mml-eqn-num"]),c=0;c<t.body.length;c++){for(var f=t.body[c],d=[],h=0;h<f.length;h++)d.push(new ue.MathNode("mtd",[dt(f[h],r)]));t.tags&&t.tags[c]&&(d.unshift(l),d.push(l),t.leqno?d.unshift(s):d.push(s)),i.push(new ue.MathNode("mtr",d))}var g=new ue.MathNode("mtable",i),v=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);g.setAttribute("rowspacing",pe(v));var b="",w="";if(t.cols&&t.cols.length>0){var E=t.cols,A="",T=!1,N=0,O=E.length;E[0].type==="separator"&&(b+="top ",N=1),E[E.length-1].type==="separator"&&(b+="bottom ",O-=1);for(var R=N;R<O;R++)E[R].type==="align"?(w+=Oz[E[R].align],T&&(A+="none "),T=!0):E[R].type==="separator"&&T&&(A+=E[R].separator==="|"?"solid ":"dashed ",T=!1);g.setAttribute("columnalign",w.trim()),/[sd]/.test(A)&&g.setAttribute("columnlines",A.trim())}if(t.colSeparationType==="align"){for(var H=t.cols||[],F="",I=1;I<H.length;I++)F+=I%2?"0em ":"1em ";g.setAttribute("columnspacing",F.trim())}else t.colSeparationType==="alignat"||t.colSeparationType==="gather"?g.setAttribute("columnspacing","0em"):t.colSeparationType==="small"?g.setAttribute("columnspacing","0.2778em"):t.colSeparationType==="CD"?g.setAttribute("columnspacing","0.5em"):g.setAttribute("columnspacing","1em");var G="",V=t.hLinesBeforeRow;b+=V[0].length>0?"left ":"",b+=V[V.length-1].length>0?"right ":"";for(var te=1;te<V.length-1;te++)G+=V[te].length===0?"none ":V[te][0]?"dashed ":"solid ";return/[sd]/.test(G)&&g.setAttribute("rowlines",G.trim()),b!==""&&(g=new ue.MathNode("menclose",[g]),g.setAttribute("notation",b.trim())),t.arraystretch&&t.arraystretch<1&&(g=new ue.MathNode("mstyle",[g]),g.setAttribute("scriptlevel","1")),g},G7=function(t,r){t.envName.indexOf("ed")===-1&&xc(t);var i=[],l=t.envName.indexOf("at")>-1?"alignat":"align",s=t.envName==="split",c=fi(t.parser,{cols:i,addJot:!0,autoTag:s?void 0:Vh(t.envName),emptySingleRow:!0,colSeparationType:l,maxNumCols:s?2:void 0,leqno:t.parser.settings.leqno},"display"),f,d=0,h={type:"ordgroup",mode:t.mode,body:[]};if(r[0]&&r[0].type==="ordgroup"){for(var g="",v=0;v<r[0].body.length;v++){var b=Ge(r[0].body[v],"textord");g+=b.text}f=Number(g),d=f*2}var w=!d;c.body.forEach(function(N){for(var O=1;O<N.length;O+=2){var R=Ge(N[O],"styling"),H=Ge(R.body[0],"ordgroup");H.body.unshift(h)}if(w)d<N.length&&(d=N.length);else{var F=N.length/2;if(f<F)throw new fe("Too many math in a row: "+("expected "+f+", but got "+F),N[0])}});for(var E=0;E<d;++E){var A="r",T=0;E%2===1?A="l":E>0&&w&&(T=1),i[E]={type:"align",align:A,pregap:T,postgap:0}}return c.colSeparationType=w?"align":"alignat",c};Lr({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var r=vc(t[0]),i=r?[t[0]]:Ge(t[0],"ordgroup").body,l=i.map(function(c){var f=Uh(c),d=f.text;if("lcr".indexOf(d)!==-1)return{type:"align",align:d};if(d==="|")return{type:"separator",separator:"|"};if(d===":")return{type:"separator",separator:":"};throw new fe("Unknown column alignment: "+d,c)}),s={cols:l,hskipBeforeAndAfter:!0,maxNumCols:l.length};return fi(e.parser,s,Ih(e.envName))},htmlBuilder:jr,mathmlBuilder:Br});Lr({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],r="c",i={hskipBeforeAndAfter:!1,cols:[{type:"align",align:r}]};if(e.envName.charAt(e.envName.length-1)==="*"){var l=e.parser;if(l.consumeSpaces(),l.fetch().text==="["){if(l.consume(),l.consumeSpaces(),r=l.fetch().text,"lcr".indexOf(r)===-1)throw new fe("Expected l or c or r",l.nextToken);l.consume(),l.consumeSpaces(),l.expect("]"),l.consume(),i.cols=[{type:"align",align:r}]}}var s=fi(e.parser,i,Ih(e.envName)),c=Math.max(0,...s.body.map(f=>f.length));return s.cols=new Array(c).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[s],left:t[0],right:t[1],rightColor:void 0}:s},htmlBuilder:jr,mathmlBuilder:Br});Lr({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},r=fi(e.parser,t,"script");return r.colSeparationType="small",r},htmlBuilder:jr,mathmlBuilder:Br});Lr({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var r=vc(t[0]),i=r?[t[0]]:Ge(t[0],"ordgroup").body,l=i.map(function(c){var f=Uh(c),d=f.text;if("lc".indexOf(d)!==-1)return{type:"align",align:d};throw new fe("Unknown column alignment: "+d,c)});if(l.length>1)throw new fe("{subarray} can contain only one column");var s={cols:l,hskipBeforeAndAfter:!1,arraystretch:.5};if(s=fi(e.parser,s,"script"),s.body.length>0&&s.body[0].length>1)throw new fe("{subarray} can contain only one column");return s},htmlBuilder:jr,mathmlBuilder:Br});Lr({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},r=fi(e.parser,t,Ih(e.envName));return{type:"leftright",mode:e.mode,body:[r],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:jr,mathmlBuilder:Br});Lr({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:G7,htmlBuilder:jr,mathmlBuilder:Br});Lr({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){["gather","gather*"].includes(e.envName)&&xc(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Vh(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return fi(e.parser,t,"display")},htmlBuilder:jr,mathmlBuilder:Br});Lr({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:G7,htmlBuilder:jr,mathmlBuilder:Br});Lr({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){xc(e);var t={autoTag:Vh(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return fi(e.parser,t,"display")},htmlBuilder:jr,mathmlBuilder:Br});Lr({type:"array",names:["CD"],props:{numArgs:0},handler(e){return xc(e),yz(e.parser)},htmlBuilder:jr,mathmlBuilder:Br});D("\\nonumber","\\gdef\\@eqnsw{0}");D("\\notag","\\nonumber");ve({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new fe(e.funcName+" valid only within array environment")}});var B5=q7;ve({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:r,funcName:i}=e,l=t[0];if(l.type!=="ordgroup")throw new fe("Invalid environment name",l);for(var s="",c=0;c<l.body.length;++c)s+=Ge(l.body[c],"textord").text;if(i==="\\begin"){if(!B5.hasOwnProperty(s))throw new fe("No such environment: "+s,l);var f=B5[s],{args:d,optArgs:h}=r.parseArguments("\\begin{"+s+"}",f),g={mode:r.mode,envName:s,parser:r},v=f.handler(g,d,h);r.expect("\\end",!1);var b=r.nextToken,w=Ge(r.parseFunction(),"environment");if(w.name!==s)throw new fe("Mismatch: \\begin{"+s+"} matched by \\end{"+w.name+"}",b);return v}return{type:"environment",mode:r.mode,name:s,nameGroup:l}}});var F7=(e,t)=>{var r=e.font,i=t.withFont(r);return Je(e.body,i)},Y7=(e,t)=>{var r=e.font,i=t.withFont(r);return dt(e.body,i)},_5={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};ve({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:i}=e,l=Ku(t[0]),s=i;return s in _5&&(s=_5[s]),{type:"font",mode:r.mode,font:s.slice(1),body:l}},htmlBuilder:F7,mathmlBuilder:Y7});ve({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:r}=e,i=t[0],l=nt.isCharacterBox(i);return{type:"mclass",mode:r.mode,mclass:yc(i),body:[{type:"font",mode:r.mode,font:"boldsymbol",body:i}],isCharacterBox:l}}});ve({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:i,breakOnTokenText:l}=e,{mode:s}=r,c=r.parseExpression(!0,l),f="math"+i.slice(1);return{type:"font",mode:s,font:f,body:{type:"ordgroup",mode:r.mode,body:c}}},htmlBuilder:F7,mathmlBuilder:Y7});var P7=(e,t)=>{var r=t;return e==="display"?r=r.id>=Le.SCRIPT.id?r.text():Le.DISPLAY:e==="text"&&r.size===Le.DISPLAY.size?r=Le.TEXT:e==="script"?r=Le.SCRIPT:e==="scriptscript"&&(r=Le.SCRIPTSCRIPT),r},Xh=(e,t)=>{var r=P7(e.size,t.style),i=r.fracNum(),l=r.fracDen(),s;s=t.havingStyle(i);var c=Je(e.numer,s,t);if(e.continued){var f=8.5/t.fontMetrics().ptPerEm,d=3.5/t.fontMetrics().ptPerEm;c.height=c.height<f?f:c.height,c.depth=c.depth<d?d:c.depth}s=t.havingStyle(l);var h=Je(e.denom,s,t),g,v,b;e.hasBarLine?(e.barSize?(v=wt(e.barSize,t),g=$.makeLineSpan("frac-line",t,v)):g=$.makeLineSpan("frac-line",t),v=g.height,b=g.height):(g=null,v=0,b=t.fontMetrics().defaultRuleThickness);var w,E,A;r.size===Le.DISPLAY.size||e.size==="display"?(w=t.fontMetrics().num1,v>0?E=3*b:E=7*b,A=t.fontMetrics().denom1):(v>0?(w=t.fontMetrics().num2,E=b):(w=t.fontMetrics().num3,E=3*b),A=t.fontMetrics().denom2);var T;if(g){var O=t.fontMetrics().axisHeight;w-c.depth-(O+.5*v)<E&&(w+=E-(w-c.depth-(O+.5*v))),O-.5*v-(h.height-A)<E&&(A+=E-(O-.5*v-(h.height-A)));var R=-(O-.5*v);T=$.makeVList({positionType:"individualShift",children:[{type:"elem",elem:h,shift:A},{type:"elem",elem:g,shift:R},{type:"elem",elem:c,shift:-w}]},t)}else{var N=w-c.depth-(h.height-A);N<E&&(w+=.5*(E-N),A+=.5*(E-N)),T=$.makeVList({positionType:"individualShift",children:[{type:"elem",elem:h,shift:A},{type:"elem",elem:c,shift:-w}]},t)}s=t.havingStyle(r),T.height*=s.sizeMultiplier/t.sizeMultiplier,T.depth*=s.sizeMultiplier/t.sizeMultiplier;var H;r.size===Le.DISPLAY.size?H=t.fontMetrics().delim1:r.size===Le.SCRIPTSCRIPT.size?H=t.havingStyle(Le.SCRIPT).fontMetrics().delim2:H=t.fontMetrics().delim2;var F,I;return e.leftDelim==null?F=wo(t,["mopen"]):F=ca.customSizedDelim(e.leftDelim,H,!0,t.havingStyle(r),e.mode,["mopen"]),e.continued?I=$.makeSpan([]):e.rightDelim==null?I=wo(t,["mclose"]):I=ca.customSizedDelim(e.rightDelim,H,!0,t.havingStyle(r),e.mode,["mclose"]),$.makeSpan(["mord"].concat(s.sizingClasses(t)),[F,$.makeSpan(["mfrac"],[T]),I],t)},$h=(e,t)=>{var r=new ue.MathNode("mfrac",[dt(e.numer,t),dt(e.denom,t)]);if(!e.hasBarLine)r.setAttribute("linethickness","0px");else if(e.barSize){var i=wt(e.barSize,t);r.setAttribute("linethickness",pe(i))}var l=P7(e.size,t.style);if(l.size!==t.style.size){r=new ue.MathNode("mstyle",[r]);var s=l.size===Le.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",s),r.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var c=[];if(e.leftDelim!=null){var f=new ue.MathNode("mo",[new ue.TextNode(e.leftDelim.replace("\\",""))]);f.setAttribute("fence","true"),c.push(f)}if(c.push(r),e.rightDelim!=null){var d=new ue.MathNode("mo",[new ue.TextNode(e.rightDelim.replace("\\",""))]);d.setAttribute("fence","true"),c.push(d)}return Hh(c)}return r};ve({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:r,funcName:i}=e,l=t[0],s=t[1],c,f=null,d=null,h="auto";switch(i){case"\\dfrac":case"\\frac":case"\\tfrac":c=!0;break;case"\\\\atopfrac":c=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":c=!1,f="(",d=")";break;case"\\\\bracefrac":c=!1,f="\\{",d="\\}";break;case"\\\\brackfrac":c=!1,f="[",d="]";break;default:throw new Error("Unrecognized genfrac command")}switch(i){case"\\dfrac":case"\\dbinom":h="display";break;case"\\tfrac":case"\\tbinom":h="text";break}return{type:"genfrac",mode:r.mode,continued:!1,numer:l,denom:s,hasBarLine:c,leftDelim:f,rightDelim:d,size:h,barSize:null}},htmlBuilder:Xh,mathmlBuilder:$h});ve({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:r,funcName:i}=e,l=t[0],s=t[1];return{type:"genfrac",mode:r.mode,continued:!0,numer:l,denom:s,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});ve({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:r,token:i}=e,l;switch(r){case"\\over":l="\\frac";break;case"\\choose":l="\\binom";break;case"\\atop":l="\\\\atopfrac";break;case"\\brace":l="\\\\bracefrac";break;case"\\brack":l="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:l,token:i}}});var H5=["display","text","script","scriptscript"],q5=function(t){var r=null;return t.length>0&&(r=t,r=r==="."?null:r),r};ve({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:r}=e,i=t[4],l=t[5],s=Ku(t[0]),c=s.type==="atom"&&s.family==="open"?q5(s.text):null,f=Ku(t[1]),d=f.type==="atom"&&f.family==="close"?q5(f.text):null,h=Ge(t[2],"size"),g,v=null;h.isBlank?g=!0:(v=h.value,g=v.number>0);var b="auto",w=t[3];if(w.type==="ordgroup"){if(w.body.length>0){var E=Ge(w.body[0],"textord");b=H5[Number(E.text)]}}else w=Ge(w,"textord"),b=H5[Number(w.text)];return{type:"genfrac",mode:r.mode,numer:i,denom:l,continued:!1,hasBarLine:g,barSize:v,leftDelim:c,rightDelim:d,size:b}},htmlBuilder:Xh,mathmlBuilder:$h});ve({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:r,funcName:i,token:l}=e;return{type:"infix",mode:r.mode,replaceWith:"\\\\abovefrac",size:Ge(t[0],"size").value,token:l}}});ve({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:r,funcName:i}=e,l=t[0],s=sN(Ge(t[1],"infix").size),c=t[2],f=s.number>0;return{type:"genfrac",mode:r.mode,numer:l,denom:c,continued:!1,hasBarLine:f,barSize:s,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Xh,mathmlBuilder:$h});var V7=(e,t)=>{var r=t.style,i,l;e.type==="supsub"?(i=e.sup?Je(e.sup,t.havingStyle(r.sup()),t):Je(e.sub,t.havingStyle(r.sub()),t),l=Ge(e.base,"horizBrace")):l=Ge(e,"horizBrace");var s=Je(l.base,t.havingBaseStyle(Le.DISPLAY)),c=va.svgSpan(l,t),f;if(l.isOver?(f=$.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:c}]},t),f.children[0].children[0].children[1].classes.push("svg-align")):(f=$.makeVList({positionType:"bottom",positionData:s.depth+.1+c.height,children:[{type:"elem",elem:c},{type:"kern",size:.1},{type:"elem",elem:s}]},t),f.children[0].children[0].children[0].classes.push("svg-align")),i){var d=$.makeSpan(["mord",l.isOver?"mover":"munder"],[f],t);l.isOver?f=$.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:d},{type:"kern",size:.2},{type:"elem",elem:i}]},t):f=$.makeVList({positionType:"bottom",positionData:d.depth+.2+i.height+i.depth,children:[{type:"elem",elem:i},{type:"kern",size:.2},{type:"elem",elem:d}]},t)}return $.makeSpan(["mord",l.isOver?"mover":"munder"],[f],t)},Rz=(e,t)=>{var r=va.mathMLnode(e.label);return new ue.MathNode(e.isOver?"mover":"munder",[dt(e.base,t),r])};ve({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:r,funcName:i}=e;return{type:"horizBrace",mode:r.mode,label:i,isOver:/^\\over/.test(i),base:t[0]}},htmlBuilder:V7,mathmlBuilder:Rz});ve({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,i=t[1],l=Ge(t[0],"url").url;return r.settings.isTrusted({command:"\\href",url:l})?{type:"href",mode:r.mode,href:l,body:Dt(i)}:r.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=Pt(e.body,t,!1);return $.makeAnchor(e.href,[],r,t)},mathmlBuilder:(e,t)=>{var r=si(e.body,t);return r instanceof qn||(r=new qn("mrow",[r])),r.setAttribute("href",e.href),r}});ve({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,i=Ge(t[0],"url").url;if(!r.settings.isTrusted({command:"\\url",url:i}))return r.formatUnsupportedCmd("\\url");for(var l=[],s=0;s<i.length;s++){var c=i[s];c==="~"&&(c="\\textasciitilde"),l.push({type:"textord",mode:"text",text:c})}var f={type:"text",mode:r.mode,font:"\\texttt",body:l};return{type:"href",mode:r.mode,href:i,body:Dt(f)}}});ve({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:r}=e;return{type:"hbox",mode:r.mode,body:Dt(t[0])}},htmlBuilder(e,t){var r=Pt(e.body,t,!1);return $.makeFragment(r)},mathmlBuilder(e,t){return new ue.MathNode("mrow",zn(e.body,t))}});ve({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:i,token:l}=e,s=Ge(t[0],"raw").string,c=t[1];r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var f,d={};switch(i){case"\\htmlClass":d.class=s,f={command:"\\htmlClass",class:s};break;case"\\htmlId":d.id=s,f={command:"\\htmlId",id:s};break;case"\\htmlStyle":d.style=s,f={command:"\\htmlStyle",style:s};break;case"\\htmlData":{for(var h=s.split(","),g=0;g<h.length;g++){var v=h[g],b=v.indexOf("=");if(b<0)throw new fe("\\htmlData key/value '"+v+"' missing equals sign");var w=v.slice(0,b),E=v.slice(b+1);d["data-"+w.trim()]=E}f={command:"\\htmlData",attributes:d};break}default:throw new Error("Unrecognized html command")}return r.settings.isTrusted(f)?{type:"html",mode:r.mode,attributes:d,body:Dt(c)}:r.formatUnsupportedCmd(i)},htmlBuilder:(e,t)=>{var r=Pt(e.body,t,!1),i=["enclosing"];e.attributes.class&&i.push(...e.attributes.class.trim().split(/\s+/));var l=$.makeSpan(i,r,t);for(var s in e.attributes)s!=="class"&&e.attributes.hasOwnProperty(s)&&l.setAttribute(s,e.attributes[s]);return l},mathmlBuilder:(e,t)=>si(e.body,t)});ve({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"htmlmathml",mode:r.mode,html:Dt(t[0]),mathml:Dt(t[1])}},htmlBuilder:(e,t)=>{var r=Pt(e.html,t,!1);return $.makeFragment(r)},mathmlBuilder:(e,t)=>si(e.mathml,t)});var S1=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!r)throw new fe("Invalid size: '"+t+"' in \\includegraphics");var i={number:+(r[1]+r[2]),unit:r[3]};if(!c7(i))throw new fe("Invalid unit: '"+i.unit+"' in \\includegraphics.");return i};ve({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,r)=>{var{parser:i}=e,l={number:0,unit:"em"},s={number:.9,unit:"em"},c={number:0,unit:"em"},f="";if(r[0])for(var d=Ge(r[0],"raw").string,h=d.split(","),g=0;g<h.length;g++){var v=h[g].split("=");if(v.length===2){var b=v[1].trim();switch(v[0].trim()){case"alt":f=b;break;case"width":l=S1(b);break;case"height":s=S1(b);break;case"totalheight":c=S1(b);break;default:throw new fe("Invalid key: '"+v[0]+"' in \\includegraphics.")}}}var w=Ge(t[0],"url").url;return f===""&&(f=w,f=f.replace(/^.*[\\/]/,""),f=f.substring(0,f.lastIndexOf("."))),i.settings.isTrusted({command:"\\includegraphics",url:w})?{type:"includegraphics",mode:i.mode,alt:f,width:l,height:s,totalheight:c,src:w}:i.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var r=wt(e.height,t),i=0;e.totalheight.number>0&&(i=wt(e.totalheight,t)-r);var l=0;e.width.number>0&&(l=wt(e.width,t));var s={height:pe(r+i)};l>0&&(s.width=pe(l)),i>0&&(s.verticalAlign=pe(-i));var c=new RN(e.src,e.alt,s);return c.height=r,c.depth=i,c},mathmlBuilder:(e,t)=>{var r=new ue.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);var i=wt(e.height,t),l=0;if(e.totalheight.number>0&&(l=wt(e.totalheight,t)-i,r.setAttribute("valign",pe(-l))),r.setAttribute("height",pe(i+l)),e.width.number>0){var s=wt(e.width,t);r.setAttribute("width",pe(s))}return r.setAttribute("src",e.src),r}});ve({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:i}=e,l=Ge(t[0],"size");if(r.settings.strict){var s=i[1]==="m",c=l.value.unit==="mu";s?(c||r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" supports only mu units, "+("not "+l.value.unit+" units")),r.mode!=="math"&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" works only in math mode")):c&&r.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" doesn't support mu units")}return{type:"kern",mode:r.mode,dimension:l.value}},htmlBuilder(e,t){return $.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var r=wt(e.dimension,t);return new ue.SpaceNode(r)}});ve({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r,funcName:i}=e,l=t[0];return{type:"lap",mode:r.mode,alignment:i.slice(5),body:l}},htmlBuilder:(e,t)=>{var r;e.alignment==="clap"?(r=$.makeSpan([],[Je(e.body,t)]),r=$.makeSpan(["inner"],[r],t)):r=$.makeSpan(["inner"],[Je(e.body,t)]);var i=$.makeSpan(["fix"],[]),l=$.makeSpan([e.alignment],[r,i],t),s=$.makeSpan(["strut"]);return s.style.height=pe(l.height+l.depth),l.depth&&(s.style.verticalAlign=pe(-l.depth)),l.children.unshift(s),l=$.makeSpan(["thinbox"],[l],t),$.makeSpan(["mord","vbox"],[l],t)},mathmlBuilder:(e,t)=>{var r=new ue.MathNode("mpadded",[dt(e.body,t)]);if(e.alignment!=="rlap"){var i=e.alignment==="llap"?"-1":"-0.5";r.setAttribute("lspace",i+"width")}return r.setAttribute("width","0px"),r}});ve({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:r,parser:i}=e,l=i.mode;i.switchMode("math");var s=r==="\\("?"\\)":"$",c=i.parseExpression(!1,s);return i.expect(s),i.switchMode(l),{type:"styling",mode:i.mode,style:"text",body:c}}});ve({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new fe("Mismatched "+e.funcName)}});var U5=(e,t)=>{switch(t.style.size){case Le.DISPLAY.size:return e.display;case Le.TEXT.size:return e.text;case Le.SCRIPT.size:return e.script;case Le.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};ve({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:r}=e;return{type:"mathchoice",mode:r.mode,display:Dt(t[0]),text:Dt(t[1]),script:Dt(t[2]),scriptscript:Dt(t[3])}},htmlBuilder:(e,t)=>{var r=U5(e,t),i=Pt(r,t,!1);return $.makeFragment(i)},mathmlBuilder:(e,t)=>{var r=U5(e,t);return si(r,t)}});var I7=(e,t,r,i,l,s,c)=>{e=$.makeSpan([],[e]);var f=r&&nt.isCharacterBox(r),d,h;if(t){var g=Je(t,i.havingStyle(l.sup()),i);h={elem:g,kern:Math.max(i.fontMetrics().bigOpSpacing1,i.fontMetrics().bigOpSpacing3-g.depth)}}if(r){var v=Je(r,i.havingStyle(l.sub()),i);d={elem:v,kern:Math.max(i.fontMetrics().bigOpSpacing2,i.fontMetrics().bigOpSpacing4-v.height)}}var b;if(h&&d){var w=i.fontMetrics().bigOpSpacing5+d.elem.height+d.elem.depth+d.kern+e.depth+c;b=$.makeVList({positionType:"bottom",positionData:w,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:d.elem,marginLeft:pe(-s)},{type:"kern",size:d.kern},{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:pe(s)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]},i)}else if(d){var E=e.height-c;b=$.makeVList({positionType:"top",positionData:E,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:d.elem,marginLeft:pe(-s)},{type:"kern",size:d.kern},{type:"elem",elem:e}]},i)}else if(h){var A=e.depth+c;b=$.makeVList({positionType:"bottom",positionData:A,children:[{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:pe(s)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]},i)}else return e;var T=[b];if(d&&s!==0&&!f){var N=$.makeSpan(["mspace"],[],i);N.style.marginRight=pe(s),T.unshift(N)}return $.makeSpan(["mop","op-limits"],T,i)},X7=["\\smallint"],t0=(e,t)=>{var r,i,l=!1,s;e.type==="supsub"?(r=e.sup,i=e.sub,s=Ge(e.base,"op"),l=!0):s=Ge(e,"op");var c=t.style,f=!1;c.size===Le.DISPLAY.size&&s.symbol&&!X7.includes(s.name)&&(f=!0);var d;if(s.symbol){var h=f?"Size2-Regular":"Size1-Regular",g="";if((s.name==="\\oiint"||s.name==="\\oiiint")&&(g=s.name.slice(1),s.name=g==="oiint"?"\\iint":"\\iiint"),d=$.makeSymbol(s.name,h,"math",t,["mop","op-symbol",f?"large-op":"small-op"]),g.length>0){var v=d.italic,b=$.staticSvg(g+"Size"+(f?"2":"1"),t);d=$.makeVList({positionType:"individualShift",children:[{type:"elem",elem:d,shift:0},{type:"elem",elem:b,shift:f?.08:0}]},t),s.name="\\"+g,d.classes.unshift("mop"),d.italic=v}}else if(s.body){var w=Pt(s.body,t,!0);w.length===1&&w[0]instanceof ar?(d=w[0],d.classes[0]="mop"):d=$.makeSpan(["mop"],w,t)}else{for(var E=[],A=1;A<s.name.length;A++)E.push($.mathsym(s.name[A],s.mode,t));d=$.makeSpan(["mop"],E,t)}var T=0,N=0;return(d instanceof ar||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift&&(T=(d.height-d.depth)/2-t.fontMetrics().axisHeight,N=d.italic),l?I7(d,r,i,t,c,N,T):(T&&(d.style.position="relative",d.style.top=pe(T)),d)},Uo=(e,t)=>{var r;if(e.symbol)r=new qn("mo",[ir(e.name,e.mode)]),X7.includes(e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new qn("mo",zn(e.body,t));else{r=new qn("mi",[new kr(e.name.slice(1))]);var i=new qn("mo",[ir("⁡","text")]);e.parentIsSupSub?r=new qn("mrow",[r,i]):r=w7([r,i])}return r},Lz={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};ve({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:r,funcName:i}=e,l=i;return l.length===1&&(l=Lz[l]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:l}},htmlBuilder:t0,mathmlBuilder:Uo});ve({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:r}=e,i=t[0];return{type:"op",mode:r.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Dt(i)}},htmlBuilder:t0,mathmlBuilder:Uo});var jz={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};ve({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:t0,mathmlBuilder:Uo});ve({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:r}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:r}},htmlBuilder:t0,mathmlBuilder:Uo});ve({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:r}=e,i=r;return i.length===1&&(i=jz[i]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:t0,mathmlBuilder:Uo});var $7=(e,t)=>{var r,i,l=!1,s;e.type==="supsub"?(r=e.sup,i=e.sub,s=Ge(e.base,"operatorname"),l=!0):s=Ge(e,"operatorname");var c;if(s.body.length>0){for(var f=s.body.map(v=>{var b=v.text;return typeof b=="string"?{type:"textord",mode:v.mode,text:b}:v}),d=Pt(f,t.withFont("mathrm"),!0),h=0;h<d.length;h++){var g=d[h];g instanceof ar&&(g.text=g.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}c=$.makeSpan(["mop"],d,t)}else c=$.makeSpan(["mop"],[],t);return l?I7(c,r,i,t,t.style,0,0):c},Bz=(e,t)=>{for(var r=zn(e.body,t.withFont("mathrm")),i=!0,l=0;l<r.length;l++){var s=r[l];if(!(s instanceof ue.SpaceNode))if(s instanceof ue.MathNode)switch(s.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var c=s.children[0];s.children.length===1&&c instanceof ue.TextNode?c.text=c.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):i=!1;break}default:i=!1}else i=!1}if(i){var f=r.map(g=>g.toText()).join("");r=[new ue.TextNode(f)]}var d=new ue.MathNode("mi",r);d.setAttribute("mathvariant","normal");var h=new ue.MathNode("mo",[ir("⁡","text")]);return e.parentIsSupSub?new ue.MathNode("mrow",[d,h]):ue.newDocumentFragment([d,h])};ve({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:r,funcName:i}=e,l=t[0];return{type:"operatorname",mode:r.mode,body:Dt(l),alwaysHandleSupSub:i==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:$7,mathmlBuilder:Bz});D("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Pi({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?$.makeFragment(Pt(e.body,t,!1)):$.makeSpan(["mord"],Pt(e.body,t,!0),t)},mathmlBuilder(e,t){return si(e.body,t,!0)}});ve({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:r}=e,i=t[0];return{type:"overline",mode:r.mode,body:i}},htmlBuilder(e,t){var r=Je(e.body,t.havingCrampedStyle()),i=$.makeLineSpan("overline-line",t),l=t.fontMetrics().defaultRuleThickness,s=$.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:3*l},{type:"elem",elem:i},{type:"kern",size:l}]},t);return $.makeSpan(["mord","overline"],[s],t)},mathmlBuilder(e,t){var r=new ue.MathNode("mo",[new ue.TextNode("‾")]);r.setAttribute("stretchy","true");var i=new ue.MathNode("mover",[dt(e.body,t),r]);return i.setAttribute("accent","true"),i}});ve({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,i=t[0];return{type:"phantom",mode:r.mode,body:Dt(i)}},htmlBuilder:(e,t)=>{var r=Pt(e.body,t.withPhantom(),!1);return $.makeFragment(r)},mathmlBuilder:(e,t)=>{var r=zn(e.body,t);return new ue.MathNode("mphantom",r)}});ve({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,i=t[0];return{type:"hphantom",mode:r.mode,body:i}},htmlBuilder:(e,t)=>{var r=$.makeSpan([],[Je(e.body,t.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(var i=0;i<r.children.length;i++)r.children[i].height=0,r.children[i].depth=0;return r=$.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t),$.makeSpan(["mord"],[r],t)},mathmlBuilder:(e,t)=>{var r=zn(Dt(e.body),t),i=new ue.MathNode("mphantom",r),l=new ue.MathNode("mpadded",[i]);return l.setAttribute("height","0px"),l.setAttribute("depth","0px"),l}});ve({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:r}=e,i=t[0];return{type:"vphantom",mode:r.mode,body:i}},htmlBuilder:(e,t)=>{var r=$.makeSpan(["inner"],[Je(e.body,t.withPhantom())]),i=$.makeSpan(["fix"],[]);return $.makeSpan(["mord","rlap"],[r,i],t)},mathmlBuilder:(e,t)=>{var r=zn(Dt(e.body),t),i=new ue.MathNode("mphantom",r),l=new ue.MathNode("mpadded",[i]);return l.setAttribute("width","0px"),l}});ve({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:r}=e,i=Ge(t[0],"size").value,l=t[1];return{type:"raisebox",mode:r.mode,dy:i,body:l}},htmlBuilder(e,t){var r=Je(e.body,t),i=wt(e.dy,t);return $.makeVList({positionType:"shift",positionData:-i,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){var r=new ue.MathNode("mpadded",[dt(e.body,t)]),i=e.dy.number+e.dy.unit;return r.setAttribute("voffset",i),r}});ve({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});ve({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,r){var{parser:i}=e,l=r[0],s=Ge(t[0],"size"),c=Ge(t[1],"size");return{type:"rule",mode:i.mode,shift:l&&Ge(l,"size").value,width:s.value,height:c.value}},htmlBuilder(e,t){var r=$.makeSpan(["mord","rule"],[],t),i=wt(e.width,t),l=wt(e.height,t),s=e.shift?wt(e.shift,t):0;return r.style.borderRightWidth=pe(i),r.style.borderTopWidth=pe(l),r.style.bottom=pe(s),r.width=i,r.height=l+s,r.depth=-s,r.maxFontSize=l*1.125*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=wt(e.width,t),i=wt(e.height,t),l=e.shift?wt(e.shift,t):0,s=t.color&&t.getColor()||"black",c=new ue.MathNode("mspace");c.setAttribute("mathbackground",s),c.setAttribute("width",pe(r)),c.setAttribute("height",pe(i));var f=new ue.MathNode("mpadded",[c]);return l>=0?f.setAttribute("height",pe(l)):(f.setAttribute("height",pe(l)),f.setAttribute("depth",pe(-l))),f.setAttribute("voffset",pe(l)),f}});function K7(e,t,r){for(var i=Pt(e,t,!1),l=t.sizeMultiplier/r.sizeMultiplier,s=0;s<i.length;s++){var c=i[s].classes.indexOf("sizing");c<0?Array.prototype.push.apply(i[s].classes,t.sizingClasses(r)):i[s].classes[c+1]==="reset-size"+t.size&&(i[s].classes[c+1]="reset-size"+r.size),i[s].height*=l,i[s].depth*=l}return $.makeFragment(i)}var G5=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],_z=(e,t)=>{var r=t.havingSize(e.size);return K7(e.body,r,t)};ve({type:"sizing",names:G5,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:r,funcName:i,parser:l}=e,s=l.parseExpression(!1,r);return{type:"sizing",mode:l.mode,size:G5.indexOf(i)+1,body:s}},htmlBuilder:_z,mathmlBuilder:(e,t)=>{var r=t.havingSize(e.size),i=zn(e.body,r),l=new ue.MathNode("mstyle",i);return l.setAttribute("mathsize",pe(r.sizeMultiplier)),l}});ve({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{var{parser:i}=e,l=!1,s=!1,c=r[0]&&Ge(r[0],"ordgroup");if(c)for(var f="",d=0;d<c.body.length;++d){var h=c.body[d];if(f=h.text,f==="t")l=!0;else if(f==="b")s=!0;else{l=!1,s=!1;break}}else l=!0,s=!0;var g=t[0];return{type:"smash",mode:i.mode,body:g,smashHeight:l,smashDepth:s}},htmlBuilder:(e,t)=>{var r=$.makeSpan([],[Je(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0,r.children))for(var i=0;i<r.children.length;i++)r.children[i].height=0;if(e.smashDepth&&(r.depth=0,r.children))for(var l=0;l<r.children.length;l++)r.children[l].depth=0;var s=$.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r}]},t);return $.makeSpan(["mord"],[s],t)},mathmlBuilder:(e,t)=>{var r=new ue.MathNode("mpadded",[dt(e.body,t)]);return e.smashHeight&&r.setAttribute("height","0px"),e.smashDepth&&r.setAttribute("depth","0px"),r}});ve({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:i}=e,l=r[0],s=t[0];return{type:"sqrt",mode:i.mode,body:s,index:l}},htmlBuilder(e,t){var r=Je(e.body,t.havingCrampedStyle());r.height===0&&(r.height=t.fontMetrics().xHeight),r=$.wrapFragment(r,t);var i=t.fontMetrics(),l=i.defaultRuleThickness,s=l;t.style.id<Le.TEXT.id&&(s=t.fontMetrics().xHeight);var c=l+s/4,f=r.height+r.depth+c+l,{span:d,ruleWidth:h,advanceWidth:g}=ca.sqrtImage(f,t),v=d.height-h;v>r.height+r.depth+c&&(c=(c+v-r.height-r.depth)/2);var b=d.height-r.height-c-h;r.style.paddingLeft=pe(g);var w=$.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+b)},{type:"elem",elem:d},{type:"kern",size:h}]},t);if(e.index){var E=t.havingStyle(Le.SCRIPTSCRIPT),A=Je(e.index,E,t),T=.6*(w.height-w.depth),N=$.makeVList({positionType:"shift",positionData:-T,children:[{type:"elem",elem:A}]},t),O=$.makeSpan(["root"],[N]);return $.makeSpan(["mord","sqrt"],[O,w],t)}else return $.makeSpan(["mord","sqrt"],[w],t)},mathmlBuilder(e,t){var{body:r,index:i}=e;return i?new ue.MathNode("mroot",[dt(r,t),dt(i,t)]):new ue.MathNode("msqrt",[dt(r,t)])}});var F5={display:Le.DISPLAY,text:Le.TEXT,script:Le.SCRIPT,scriptscript:Le.SCRIPTSCRIPT};ve({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:r,funcName:i,parser:l}=e,s=l.parseExpression(!0,r),c=i.slice(1,i.length-5);return{type:"styling",mode:l.mode,style:c,body:s}},htmlBuilder(e,t){var r=F5[e.style],i=t.havingStyle(r).withFont("");return K7(e.body,i,t)},mathmlBuilder(e,t){var r=F5[e.style],i=t.havingStyle(r),l=zn(e.body,i),s=new ue.MathNode("mstyle",l),c={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},f=c[e.style];return s.setAttribute("scriptlevel",f[0]),s.setAttribute("displaystyle",f[1]),s}});var Hz=function(t,r){var i=t.base;if(i)if(i.type==="op"){var l=i.limits&&(r.style.size===Le.DISPLAY.size||i.alwaysHandleSupSub);return l?t0:null}else if(i.type==="operatorname"){var s=i.alwaysHandleSupSub&&(r.style.size===Le.DISPLAY.size||i.limits);return s?$7:null}else{if(i.type==="accent")return nt.isCharacterBox(i.base)?Gh:null;if(i.type==="horizBrace"){var c=!t.sub;return c===i.isOver?V7:null}else return null}else return null};Pi({type:"supsub",htmlBuilder(e,t){var r=Hz(e,t);if(r)return r(e,t);var{base:i,sup:l,sub:s}=e,c=Je(i,t),f,d,h=t.fontMetrics(),g=0,v=0,b=i&&nt.isCharacterBox(i);if(l){var w=t.havingStyle(t.style.sup());f=Je(l,w,t),b||(g=c.height-w.fontMetrics().supDrop*w.sizeMultiplier/t.sizeMultiplier)}if(s){var E=t.havingStyle(t.style.sub());d=Je(s,E,t),b||(v=c.depth+E.fontMetrics().subDrop*E.sizeMultiplier/t.sizeMultiplier)}var A;t.style===Le.DISPLAY?A=h.sup1:t.style.cramped?A=h.sup3:A=h.sup2;var T=t.sizeMultiplier,N=pe(.5/h.ptPerEm/T),O=null;if(d){var R=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(c instanceof ar||R)&&(O=pe(-c.italic))}var H;if(f&&d){g=Math.max(g,A,f.depth+.25*h.xHeight),v=Math.max(v,h.sub2);var F=h.defaultRuleThickness,I=4*F;if(g-f.depth-(d.height-v)<I){v=I-(g-f.depth)+d.height;var G=.8*h.xHeight-(g-f.depth);G>0&&(g+=G,v-=G)}var V=[{type:"elem",elem:d,shift:v,marginRight:N,marginLeft:O},{type:"elem",elem:f,shift:-g,marginRight:N}];H=$.makeVList({positionType:"individualShift",children:V},t)}else if(d){v=Math.max(v,h.sub1,d.height-.8*h.xHeight);var te=[{type:"elem",elem:d,marginLeft:O,marginRight:N}];H=$.makeVList({positionType:"shift",positionData:v,children:te},t)}else if(f)g=Math.max(g,A,f.depth+.25*h.xHeight),H=$.makeVList({positionType:"shift",positionData:-g,children:[{type:"elem",elem:f,marginRight:N}]},t);else throw new Error("supsub must have either sup or sub.");var de=X1(c,"right")||"mord";return $.makeSpan([de],[c,$.makeSpan(["msupsub"],[H])],t)},mathmlBuilder(e,t){var r=!1,i,l;e.base&&e.base.type==="horizBrace"&&(l=!!e.sup,l===e.base.isOver&&(r=!0,i=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var s=[dt(e.base,t)];e.sub&&s.push(dt(e.sub,t)),e.sup&&s.push(dt(e.sup,t));var c;if(r)c=i?"mover":"munder";else if(e.sub)if(e.sup){var h=e.base;h&&h.type==="op"&&h.limits&&t.style===Le.DISPLAY||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(t.style===Le.DISPLAY||h.limits)?c="munderover":c="msubsup"}else{var d=e.base;d&&d.type==="op"&&d.limits&&(t.style===Le.DISPLAY||d.alwaysHandleSupSub)||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(d.limits||t.style===Le.DISPLAY)?c="munder":c="msub"}else{var f=e.base;f&&f.type==="op"&&f.limits&&(t.style===Le.DISPLAY||f.alwaysHandleSupSub)||f&&f.type==="operatorname"&&f.alwaysHandleSupSub&&(f.limits||t.style===Le.DISPLAY)?c="mover":c="msup"}return new ue.MathNode(c,s)}});Pi({type:"atom",htmlBuilder(e,t){return $.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var r=new ue.MathNode("mo",[ir(e.text,e.mode)]);if(e.family==="bin"){var i=qh(e,t);i==="bold-italic"&&r.setAttribute("mathvariant",i)}else e.family==="punct"?r.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&r.setAttribute("stretchy","false");return r}});var Q7={mi:"italic",mn:"normal",mtext:"normal"};Pi({type:"mathord",htmlBuilder(e,t){return $.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var r=new ue.MathNode("mi",[ir(e.text,e.mode,t)]),i=qh(e,t)||"italic";return i!==Q7[r.type]&&r.setAttribute("mathvariant",i),r}});Pi({type:"textord",htmlBuilder(e,t){return $.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var r=ir(e.text,e.mode,t),i=qh(e,t)||"normal",l;return e.mode==="text"?l=new ue.MathNode("mtext",[r]):/[0-9]/.test(e.text)?l=new ue.MathNode("mn",[r]):e.text==="\\prime"?l=new ue.MathNode("mo",[r]):l=new ue.MathNode("mi",[r]),i!==Q7[l.type]&&l.setAttribute("mathvariant",i),l}});var A1={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},M1={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Pi({type:"spacing",htmlBuilder(e,t){if(M1.hasOwnProperty(e.text)){var r=M1[e.text].className||"";if(e.mode==="text"){var i=$.makeOrd(e,t,"textord");return i.classes.push(r),i}else return $.makeSpan(["mspace",r],[$.mathsym(e.text,e.mode,t)],t)}else{if(A1.hasOwnProperty(e.text))return $.makeSpan(["mspace",A1[e.text]],[],t);throw new fe('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var r;if(M1.hasOwnProperty(e.text))r=new ue.MathNode("mtext",[new ue.TextNode(" ")]);else{if(A1.hasOwnProperty(e.text))return new ue.MathNode("mspace");throw new fe('Unknown type of space "'+e.text+'"')}return r}});var Y5=()=>{var e=new ue.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};Pi({type:"tag",mathmlBuilder(e,t){var r=new ue.MathNode("mtable",[new ue.MathNode("mtr",[Y5(),new ue.MathNode("mtd",[si(e.body,t)]),Y5(),new ue.MathNode("mtd",[si(e.tag,t)])])]);return r.setAttribute("width","100%"),r}});var P5={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},V5={"\\textbf":"textbf","\\textmd":"textmd"},qz={"\\textit":"textit","\\textup":"textup"},I5=(e,t)=>{var r=e.font;if(r){if(P5[r])return t.withTextFontFamily(P5[r]);if(V5[r])return t.withTextFontWeight(V5[r]);if(r==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(qz[r])};ve({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:r,funcName:i}=e,l=t[0];return{type:"text",mode:r.mode,body:Dt(l),font:i}},htmlBuilder(e,t){var r=I5(e,t),i=Pt(e.body,r,!0);return $.makeSpan(["mord","text"],i,r)},mathmlBuilder(e,t){var r=I5(e,t);return si(e.body,r)}});ve({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:r}=e;return{type:"underline",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Je(e.body,t),i=$.makeLineSpan("underline-line",t),l=t.fontMetrics().defaultRuleThickness,s=$.makeVList({positionType:"top",positionData:r.height,children:[{type:"kern",size:l},{type:"elem",elem:i},{type:"kern",size:3*l},{type:"elem",elem:r}]},t);return $.makeSpan(["mord","underline"],[s],t)},mathmlBuilder(e,t){var r=new ue.MathNode("mo",[new ue.TextNode("‾")]);r.setAttribute("stretchy","true");var i=new ue.MathNode("munder",[dt(e.body,t),r]);return i.setAttribute("accentunder","true"),i}});ve({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:r}=e;return{type:"vcenter",mode:r.mode,body:t[0]}},htmlBuilder(e,t){var r=Je(e.body,t),i=t.fontMetrics().axisHeight,l=.5*(r.height-i-(r.depth+i));return $.makeVList({positionType:"shift",positionData:l,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){return new ue.MathNode("mpadded",[dt(e.body,t)],["vcenter"])}});ve({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new fe("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var r=X5(e),i=[],l=t.havingStyle(t.style.text()),s=0;s<r.length;s++){var c=r[s];c==="~"&&(c="\\textasciitilde"),i.push($.makeSymbol(c,"Typewriter-Regular",e.mode,l,["mord","texttt"]))}return $.makeSpan(["mord","text"].concat(l.sizingClasses(t)),$.tryCombineChars(i),l)},mathmlBuilder(e,t){var r=new ue.TextNode(X5(e)),i=new ue.MathNode("mtext",[r]);return i.setAttribute("mathvariant","monospace"),i}});var X5=e=>e.body.replace(/ /g,e.star?"␣":" "),Ja=b7,Z7=`[ \r
449
+ ]`,Uz="\\\\[a-zA-Z@]+",Gz="\\\\[^\uD800-\uDFFF]",Fz="("+Uz+")"+Z7+"*",Yz=`\\\\(
450
+ |[ \r ]+
451
+ ?)[ \r ]*`,Z1="[̀-ͯ]",Pz=new RegExp(Z1+"+$"),Vz="("+Z7+"+)|"+(Yz+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(Z1+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Z1+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Fz)+("|"+Gz+")");class $5{constructor(t,r){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=r,this.tokenRegex=new RegExp(Vz,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,r){this.catcodes[t]=r}lex(){var t=this.input,r=this.tokenRegex.lastIndex;if(r===t.length)return new Gn("EOF",new En(this,r,r));var i=this.tokenRegex.exec(t);if(i===null||i.index!==r)throw new fe("Unexpected character: '"+t[r]+"'",new Gn(t[r],new En(this,r,r+1)));var l=i[6]||i[3]||(i[2]?"\\ ":" ");if(this.catcodes[l]===14){var s=t.indexOf(`
452
+ `,this.tokenRegex.lastIndex);return s===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=s+1,this.lex()}return new Gn(l,new En(this,r,this.tokenRegex.lastIndex))}}class Iz{constructor(t,r){t===void 0&&(t={}),r===void 0&&(r={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=r,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new fe("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var r in t)t.hasOwnProperty(r)&&(t[r]==null?delete this.current[r]:this.current[r]=t[r])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,r,i){if(i===void 0&&(i=!1),i){for(var l=0;l<this.undefStack.length;l++)delete this.undefStack[l][t];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][t]=r)}else{var s=this.undefStack[this.undefStack.length-1];s&&!s.hasOwnProperty(t)&&(s[t]=this.current[t])}r==null?delete this.current[t]:this.current[t]=r}}var Xz=U7;D("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});D("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});D("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});D("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});D("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var r=e.future();return t[0].length===1&&t[0][0].text===r.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});D("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");D("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var K5={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};D("\\char",function(e){var t=e.popToken(),r,i="";if(t.text==="'")r=8,t=e.popToken();else if(t.text==='"')r=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")i=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new fe("\\char` missing argument");i=t.text.charCodeAt(0)}else r=10;if(r){if(i=K5[t.text],i==null||i>=r)throw new fe("Invalid base-"+r+" digit "+t.text);for(var l;(l=K5[e.future().text])!=null&&l<r;)i*=r,i+=l,e.popToken()}return"\\@char{"+i+"}"});var Kh=(e,t,r,i)=>{var l=e.consumeArg().tokens;if(l.length!==1)throw new fe("\\newcommand's first argument must be a macro name");var s=l[0].text,c=e.isDefined(s);if(c&&!t)throw new fe("\\newcommand{"+s+"} attempting to redefine "+(s+"; use \\renewcommand"));if(!c&&!r)throw new fe("\\renewcommand{"+s+"} when command "+s+" does not yet exist; use \\newcommand");var f=0;if(l=e.consumeArg().tokens,l.length===1&&l[0].text==="["){for(var d="",h=e.expandNextToken();h.text!=="]"&&h.text!=="EOF";)d+=h.text,h=e.expandNextToken();if(!d.match(/^\s*[0-9]+\s*$/))throw new fe("Invalid number of arguments: "+d);f=parseInt(d),l=e.consumeArg().tokens}return c&&i||e.macros.set(s,{tokens:l,numArgs:f}),""};D("\\newcommand",e=>Kh(e,!1,!0,!1));D("\\renewcommand",e=>Kh(e,!0,!1,!1));D("\\providecommand",e=>Kh(e,!0,!0,!0));D("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(r=>r.text).join("")),""});D("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(r=>r.text).join("")),""});D("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),Ja[r],ht.math[r],ht.text[r]),""});D("\\bgroup","{");D("\\egroup","}");D("~","\\nobreakspace");D("\\lq","`");D("\\rq","'");D("\\aa","\\r a");D("\\AA","\\r A");D("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");D("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");D("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");D("ℬ","\\mathscr{B}");D("ℰ","\\mathscr{E}");D("ℱ","\\mathscr{F}");D("ℋ","\\mathscr{H}");D("ℐ","\\mathscr{I}");D("ℒ","\\mathscr{L}");D("ℳ","\\mathscr{M}");D("ℛ","\\mathscr{R}");D("ℭ","\\mathfrak{C}");D("ℌ","\\mathfrak{H}");D("ℨ","\\mathfrak{Z}");D("\\Bbbk","\\Bbb{k}");D("·","\\cdotp");D("\\llap","\\mathllap{\\textrm{#1}}");D("\\rlap","\\mathrlap{\\textrm{#1}}");D("\\clap","\\mathclap{\\textrm{#1}}");D("\\mathstrut","\\vphantom{(}");D("\\underbar","\\underline{\\text{#1}}");D("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');D("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");D("\\ne","\\neq");D("≠","\\neq");D("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");D("∉","\\notin");D("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");D("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");D("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");D("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");D("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");D("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");D("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");D("⟂","\\perp");D("‼","\\mathclose{!\\mkern-0.8mu!}");D("∌","\\notni");D("⌜","\\ulcorner");D("⌝","\\urcorner");D("⌞","\\llcorner");D("⌟","\\lrcorner");D("©","\\copyright");D("®","\\textregistered");D("️","\\textregistered");D("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');D("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');D("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');D("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');D("\\vdots","{\\varvdots\\rule{0pt}{15pt}}");D("⋮","\\vdots");D("\\varGamma","\\mathit{\\Gamma}");D("\\varDelta","\\mathit{\\Delta}");D("\\varTheta","\\mathit{\\Theta}");D("\\varLambda","\\mathit{\\Lambda}");D("\\varXi","\\mathit{\\Xi}");D("\\varPi","\\mathit{\\Pi}");D("\\varSigma","\\mathit{\\Sigma}");D("\\varUpsilon","\\mathit{\\Upsilon}");D("\\varPhi","\\mathit{\\Phi}");D("\\varPsi","\\mathit{\\Psi}");D("\\varOmega","\\mathit{\\Omega}");D("\\substack","\\begin{subarray}{c}#1\\end{subarray}");D("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");D("\\boxed","\\fbox{$\\displaystyle{#1}$}");D("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");D("\\implies","\\DOTSB\\;\\Longrightarrow\\;");D("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");D("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}");D("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Q5={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};D("\\dots",function(e){var t="\\dotso",r=e.expandAfterFuture().text;return r in Q5?t=Q5[r]:(r.slice(0,4)==="\\not"||r in ht.math&&["bin","rel"].includes(ht.math[r].group))&&(t="\\dotsb"),t});var Qh={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};D("\\dotso",function(e){var t=e.future().text;return t in Qh?"\\ldots\\,":"\\ldots"});D("\\dotsc",function(e){var t=e.future().text;return t in Qh&&t!==","?"\\ldots\\,":"\\ldots"});D("\\cdots",function(e){var t=e.future().text;return t in Qh?"\\@cdots\\,":"\\@cdots"});D("\\dotsb","\\cdots");D("\\dotsm","\\cdots");D("\\dotsi","\\!\\cdots");D("\\dotsx","\\ldots\\,");D("\\DOTSI","\\relax");D("\\DOTSB","\\relax");D("\\DOTSX","\\relax");D("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");D("\\,","\\tmspace+{3mu}{.1667em}");D("\\thinspace","\\,");D("\\>","\\mskip{4mu}");D("\\:","\\tmspace+{4mu}{.2222em}");D("\\medspace","\\:");D("\\;","\\tmspace+{5mu}{.2777em}");D("\\thickspace","\\;");D("\\!","\\tmspace-{3mu}{.1667em}");D("\\negthinspace","\\!");D("\\negmedspace","\\tmspace-{4mu}{.2222em}");D("\\negthickspace","\\tmspace-{5mu}{.277em}");D("\\enspace","\\kern.5em ");D("\\enskip","\\hskip.5em\\relax");D("\\quad","\\hskip1em\\relax");D("\\qquad","\\hskip2em\\relax");D("\\tag","\\@ifstar\\tag@literal\\tag@paren");D("\\tag@paren","\\tag@literal{({#1})}");D("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new fe("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});D("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");D("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");D("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");D("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");D("\\newline","\\\\\\relax");D("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var W7=pe(Cr["Main-Regular"][84][1]-.7*Cr["Main-Regular"][65][1]);D("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+W7+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");D("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+W7+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");D("\\hspace","\\@ifstar\\@hspacer\\@hspace");D("\\@hspace","\\hskip #1\\relax");D("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");D("\\ordinarycolon",":");D("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");D("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');D("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');D("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');D("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');D("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');D("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');D("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');D("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');D("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');D("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');D("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');D("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');D("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');D("∷","\\dblcolon");D("∹","\\eqcolon");D("≔","\\coloneqq");D("≕","\\eqqcolon");D("⩴","\\Coloneqq");D("\\ratio","\\vcentcolon");D("\\coloncolon","\\dblcolon");D("\\colonequals","\\coloneqq");D("\\coloncolonequals","\\Coloneqq");D("\\equalscolon","\\eqqcolon");D("\\equalscoloncolon","\\Eqqcolon");D("\\colonminus","\\coloneq");D("\\coloncolonminus","\\Coloneq");D("\\minuscolon","\\eqcolon");D("\\minuscoloncolon","\\Eqcolon");D("\\coloncolonapprox","\\Colonapprox");D("\\coloncolonsim","\\Colonsim");D("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");D("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");D("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");D("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");D("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");D("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");D("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");D("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");D("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");D("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");D("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");D("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");D("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");D("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");D("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");D("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");D("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");D("\\nleqq","\\html@mathml{\\@nleqq}{≰}");D("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");D("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");D("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");D("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");D("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");D("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");D("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");D("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");D("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");D("\\imath","\\html@mathml{\\@imath}{ı}");D("\\jmath","\\html@mathml{\\@jmath}{ȷ}");D("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");D("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");D("⟦","\\llbracket");D("⟧","\\rrbracket");D("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");D("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");D("⦃","\\lBrace");D("⦄","\\rBrace");D("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");D("⦵","\\minuso");D("\\darr","\\downarrow");D("\\dArr","\\Downarrow");D("\\Darr","\\Downarrow");D("\\lang","\\langle");D("\\rang","\\rangle");D("\\uarr","\\uparrow");D("\\uArr","\\Uparrow");D("\\Uarr","\\Uparrow");D("\\N","\\mathbb{N}");D("\\R","\\mathbb{R}");D("\\Z","\\mathbb{Z}");D("\\alef","\\aleph");D("\\alefsym","\\aleph");D("\\Alpha","\\mathrm{A}");D("\\Beta","\\mathrm{B}");D("\\bull","\\bullet");D("\\Chi","\\mathrm{X}");D("\\clubs","\\clubsuit");D("\\cnums","\\mathbb{C}");D("\\Complex","\\mathbb{C}");D("\\Dagger","\\ddagger");D("\\diamonds","\\diamondsuit");D("\\empty","\\emptyset");D("\\Epsilon","\\mathrm{E}");D("\\Eta","\\mathrm{H}");D("\\exist","\\exists");D("\\harr","\\leftrightarrow");D("\\hArr","\\Leftrightarrow");D("\\Harr","\\Leftrightarrow");D("\\hearts","\\heartsuit");D("\\image","\\Im");D("\\infin","\\infty");D("\\Iota","\\mathrm{I}");D("\\isin","\\in");D("\\Kappa","\\mathrm{K}");D("\\larr","\\leftarrow");D("\\lArr","\\Leftarrow");D("\\Larr","\\Leftarrow");D("\\lrarr","\\leftrightarrow");D("\\lrArr","\\Leftrightarrow");D("\\Lrarr","\\Leftrightarrow");D("\\Mu","\\mathrm{M}");D("\\natnums","\\mathbb{N}");D("\\Nu","\\mathrm{N}");D("\\Omicron","\\mathrm{O}");D("\\plusmn","\\pm");D("\\rarr","\\rightarrow");D("\\rArr","\\Rightarrow");D("\\Rarr","\\Rightarrow");D("\\real","\\Re");D("\\reals","\\mathbb{R}");D("\\Reals","\\mathbb{R}");D("\\Rho","\\mathrm{P}");D("\\sdot","\\cdot");D("\\sect","\\S");D("\\spades","\\spadesuit");D("\\sub","\\subset");D("\\sube","\\subseteq");D("\\supe","\\supseteq");D("\\Tau","\\mathrm{T}");D("\\thetasym","\\vartheta");D("\\weierp","\\wp");D("\\Zeta","\\mathrm{Z}");D("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");D("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");D("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");D("\\bra","\\mathinner{\\langle{#1}|}");D("\\ket","\\mathinner{|{#1}\\rangle}");D("\\braket","\\mathinner{\\langle{#1}\\rangle}");D("\\Bra","\\left\\langle#1\\right|");D("\\Ket","\\left|#1\\right\\rangle");var J7=e=>t=>{var r=t.consumeArg().tokens,i=t.consumeArg().tokens,l=t.consumeArg().tokens,s=t.consumeArg().tokens,c=t.macros.get("|"),f=t.macros.get("\\|");t.macros.beginGroup();var d=v=>b=>{e&&(b.macros.set("|",c),l.length&&b.macros.set("\\|",f));var w=v;if(!v&&l.length){var E=b.future();E.text==="|"&&(b.popToken(),w=!0)}return{tokens:w?l:i,numArgs:0}};t.macros.set("|",d(!1)),l.length&&t.macros.set("\\|",d(!0));var h=t.consumeArg().tokens,g=t.expandTokens([...s,...h,...r]);return t.macros.endGroup(),{tokens:g.reverse(),numArgs:0}};D("\\bra@ket",J7(!1));D("\\bra@set",J7(!0));D("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");D("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");D("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");D("\\angln","{\\angl n}");D("\\blue","\\textcolor{##6495ed}{#1}");D("\\orange","\\textcolor{##ffa500}{#1}");D("\\pink","\\textcolor{##ff00af}{#1}");D("\\red","\\textcolor{##df0030}{#1}");D("\\green","\\textcolor{##28ae7b}{#1}");D("\\gray","\\textcolor{gray}{#1}");D("\\purple","\\textcolor{##9d38bd}{#1}");D("\\blueA","\\textcolor{##ccfaff}{#1}");D("\\blueB","\\textcolor{##80f6ff}{#1}");D("\\blueC","\\textcolor{##63d9ea}{#1}");D("\\blueD","\\textcolor{##11accd}{#1}");D("\\blueE","\\textcolor{##0c7f99}{#1}");D("\\tealA","\\textcolor{##94fff5}{#1}");D("\\tealB","\\textcolor{##26edd5}{#1}");D("\\tealC","\\textcolor{##01d1c1}{#1}");D("\\tealD","\\textcolor{##01a995}{#1}");D("\\tealE","\\textcolor{##208170}{#1}");D("\\greenA","\\textcolor{##b6ffb0}{#1}");D("\\greenB","\\textcolor{##8af281}{#1}");D("\\greenC","\\textcolor{##74cf70}{#1}");D("\\greenD","\\textcolor{##1fab54}{#1}");D("\\greenE","\\textcolor{##0d923f}{#1}");D("\\goldA","\\textcolor{##ffd0a9}{#1}");D("\\goldB","\\textcolor{##ffbb71}{#1}");D("\\goldC","\\textcolor{##ff9c39}{#1}");D("\\goldD","\\textcolor{##e07d10}{#1}");D("\\goldE","\\textcolor{##a75a05}{#1}");D("\\redA","\\textcolor{##fca9a9}{#1}");D("\\redB","\\textcolor{##ff8482}{#1}");D("\\redC","\\textcolor{##f9685d}{#1}");D("\\redD","\\textcolor{##e84d39}{#1}");D("\\redE","\\textcolor{##bc2612}{#1}");D("\\maroonA","\\textcolor{##ffbde0}{#1}");D("\\maroonB","\\textcolor{##ff92c6}{#1}");D("\\maroonC","\\textcolor{##ed5fa6}{#1}");D("\\maroonD","\\textcolor{##ca337c}{#1}");D("\\maroonE","\\textcolor{##9e034e}{#1}");D("\\purpleA","\\textcolor{##ddd7ff}{#1}");D("\\purpleB","\\textcolor{##c6b9fc}{#1}");D("\\purpleC","\\textcolor{##aa87ff}{#1}");D("\\purpleD","\\textcolor{##7854ab}{#1}");D("\\purpleE","\\textcolor{##543b78}{#1}");D("\\mintA","\\textcolor{##f5f9e8}{#1}");D("\\mintB","\\textcolor{##edf2df}{#1}");D("\\mintC","\\textcolor{##e0e5cc}{#1}");D("\\grayA","\\textcolor{##f6f7f7}{#1}");D("\\grayB","\\textcolor{##f0f1f2}{#1}");D("\\grayC","\\textcolor{##e3e5e6}{#1}");D("\\grayD","\\textcolor{##d6d8da}{#1}");D("\\grayE","\\textcolor{##babec2}{#1}");D("\\grayF","\\textcolor{##888d93}{#1}");D("\\grayG","\\textcolor{##626569}{#1}");D("\\grayH","\\textcolor{##3b3e40}{#1}");D("\\grayI","\\textcolor{##21242c}{#1}");D("\\kaBlue","\\textcolor{##314453}{#1}");D("\\kaGreen","\\textcolor{##71B307}{#1}");var e8={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class $z{constructor(t,r,i){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=r,this.expansionCount=0,this.feed(t),this.macros=new Iz(Xz,r.macros),this.mode=i,this.stack=[]}feed(t){this.lexer=new $5(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var r,i,l;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;r=this.popToken(),{tokens:l,end:i}=this.consumeArg(["]"])}else({tokens:l,start:r,end:i}=this.consumeArg());return this.pushToken(new Gn("EOF",i.loc)),this.pushTokens(l),new Gn("",En.range(r,i))}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var r=[],i=t&&t.length>0;i||this.consumeSpaces();var l=this.future(),s,c=0,f=0;do{if(s=this.popToken(),r.push(s),s.text==="{")++c;else if(s.text==="}"){if(--c,c===-1)throw new fe("Extra }",s)}else if(s.text==="EOF")throw new fe("Unexpected end of input in a macro argument, expected '"+(t&&i?t[f]:"}")+"'",s);if(t&&i)if((c===0||c===1&&t[f]==="{")&&s.text===t[f]){if(++f,f===t.length){r.splice(-f,f);break}}else f=0}while(c!==0||i);return l.text==="{"&&r[r.length-1].text==="}"&&(r.pop(),r.shift()),r.reverse(),{tokens:r,start:l,end:s}}consumeArgs(t,r){if(r){if(r.length!==t+1)throw new fe("The length of delimiters doesn't match the number of args!");for(var i=r[0],l=0;l<i.length;l++){var s=this.popToken();if(i[l]!==s.text)throw new fe("Use of the macro doesn't match its definition",s)}}for(var c=[],f=0;f<t;f++)c.push(this.consumeArg(r&&r[f+1]).tokens);return c}countExpansion(t){if(this.expansionCount+=t,this.expansionCount>this.settings.maxExpand)throw new fe("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var r=this.popToken(),i=r.text,l=r.noexpand?null:this._getExpansion(i);if(l==null||t&&l.unexpandable){if(t&&l==null&&i[0]==="\\"&&!this.isDefined(i))throw new fe("Undefined control sequence: "+i);return this.pushToken(r),!1}this.countExpansion(1);var s=l.tokens,c=this.consumeArgs(l.numArgs,l.delimiters);if(l.numArgs){s=s.slice();for(var f=s.length-1;f>=0;--f){var d=s[f];if(d.text==="#"){if(f===0)throw new fe("Incomplete placeholder at end of macro body",d);if(d=s[--f],d.text==="#")s.splice(f+1,1);else if(/^[1-9]$/.test(d.text))s.splice(f,2,...c[+d.text-1]);else throw new fe("Not a valid argument number",d)}}}return this.pushTokens(s),s.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new Gn(t)]):void 0}expandTokens(t){var r=[],i=this.stack.length;for(this.pushTokens(t);this.stack.length>i;)if(this.expandOnce(!0)===!1){var l=this.stack.pop();l.treatAsRelax&&(l.noexpand=!1,l.treatAsRelax=!1),r.push(l)}return this.countExpansion(r.length),r}expandMacroAsText(t){var r=this.expandMacro(t);return r&&r.map(i=>i.text).join("")}_getExpansion(t){var r=this.macros.get(t);if(r==null)return r;if(t.length===1){var i=this.lexer.catcodes[t];if(i!=null&&i!==13)return}var l=typeof r=="function"?r(this):r;if(typeof l=="string"){var s=0;if(l.indexOf("#")!==-1)for(var c=l.replace(/##/g,"");c.indexOf("#"+(s+1))!==-1;)++s;for(var f=new $5(l,this.settings),d=[],h=f.lex();h.text!=="EOF";)d.push(h),h=f.lex();d.reverse();var g={tokens:d,numArgs:s};return g}return l}isDefined(t){return this.macros.has(t)||Ja.hasOwnProperty(t)||ht.math.hasOwnProperty(t)||ht.text.hasOwnProperty(t)||e8.hasOwnProperty(t)}isExpandable(t){var r=this.macros.get(t);return r!=null?typeof r=="string"||typeof r=="function"||!r.unexpandable:Ja.hasOwnProperty(t)&&!Ja[t].primitive}}var Z5=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Au=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),E1={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},W5={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class wc{constructor(t,r){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new $z(t,r,this.mode),this.settings=r,this.leftrightDepth=0}expect(t,r){if(r===void 0&&(r=!0),this.fetch().text!==t)throw new fe("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());r&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var r=this.nextToken;this.consume(),this.gullet.pushToken(new Gn("}")),this.gullet.pushTokens(t);var i=this.parseExpression(!1);return this.expect("}"),this.nextToken=r,i}parseExpression(t,r){for(var i=[];;){this.mode==="math"&&this.consumeSpaces();var l=this.fetch();if(wc.endOfExpression.indexOf(l.text)!==-1||r&&l.text===r||t&&Ja[l.text]&&Ja[l.text].infix)break;var s=this.parseAtom(r);if(s){if(s.type==="internal")continue}else break;i.push(s)}return this.mode==="text"&&this.formLigatures(i),this.handleInfixNodes(i)}handleInfixNodes(t){for(var r=-1,i,l=0;l<t.length;l++)if(t[l].type==="infix"){if(r!==-1)throw new fe("only one infix operator per group",t[l].token);r=l,i=t[l].replaceWith}if(r!==-1&&i){var s,c,f=t.slice(0,r),d=t.slice(r+1);f.length===1&&f[0].type==="ordgroup"?s=f[0]:s={type:"ordgroup",mode:this.mode,body:f},d.length===1&&d[0].type==="ordgroup"?c=d[0]:c={type:"ordgroup",mode:this.mode,body:d};var h;return i==="\\\\abovefrac"?h=this.callFunction(i,[s,t[r],c],[]):h=this.callFunction(i,[s,c],[]),[h]}else return t}handleSupSubscript(t){var r=this.fetch(),i=r.text;this.consume(),this.consumeSpaces();var l;do{var s;l=this.parseGroup(t)}while(((s=l)==null?void 0:s.type)==="internal");if(!l)throw new fe("Expected group after '"+i+"'",r);return l}formatUnsupportedCmd(t){for(var r=[],i=0;i<t.length;i++)r.push({type:"textord",mode:"text",text:t[i]});var l={type:"text",mode:this.mode,body:r},s={type:"color",mode:this.mode,color:this.settings.errorColor,body:[l]};return s}parseAtom(t){var r=this.parseGroup("atom",t);if((r==null?void 0:r.type)==="internal"||this.mode==="text")return r;for(var i,l;;){this.consumeSpaces();var s=this.fetch();if(s.text==="\\limits"||s.text==="\\nolimits"){if(r&&r.type==="op"){var c=s.text==="\\limits";r.limits=c,r.alwaysHandleSupSub=!0}else if(r&&r.type==="operatorname")r.alwaysHandleSupSub&&(r.limits=s.text==="\\limits");else throw new fe("Limit controls must follow a math operator",s);this.consume()}else if(s.text==="^"){if(i)throw new fe("Double superscript",s);i=this.handleSupSubscript("superscript")}else if(s.text==="_"){if(l)throw new fe("Double subscript",s);l=this.handleSupSubscript("subscript")}else if(s.text==="'"){if(i)throw new fe("Double superscript",s);var f={type:"textord",mode:this.mode,text:"\\prime"},d=[f];for(this.consume();this.fetch().text==="'";)d.push(f),this.consume();this.fetch().text==="^"&&d.push(this.handleSupSubscript("superscript")),i={type:"ordgroup",mode:this.mode,body:d}}else if(Au[s.text]){var h=Z5.test(s.text),g=[];for(g.push(new Gn(Au[s.text])),this.consume();;){var v=this.fetch().text;if(!Au[v]||Z5.test(v)!==h)break;g.unshift(new Gn(Au[v])),this.consume()}var b=this.subparse(g);h?l={type:"ordgroup",mode:"math",body:b}:i={type:"ordgroup",mode:"math",body:b}}else break}return i||l?{type:"supsub",mode:this.mode,base:r,sup:i,sub:l}:r}parseFunction(t,r){var i=this.fetch(),l=i.text,s=Ja[l];if(!s)return null;if(this.consume(),r&&r!=="atom"&&!s.allowedInArgument)throw new fe("Got function '"+l+"' with no arguments"+(r?" as "+r:""),i);if(this.mode==="text"&&!s.allowedInText)throw new fe("Can't use function '"+l+"' in text mode",i);if(this.mode==="math"&&s.allowedInMath===!1)throw new fe("Can't use function '"+l+"' in math mode",i);var{args:c,optArgs:f}=this.parseArguments(l,s);return this.callFunction(l,c,f,i,t)}callFunction(t,r,i,l,s){var c={funcName:t,parser:this,token:l,breakOnTokenText:s},f=Ja[t];if(f&&f.handler)return f.handler(c,r,i);throw new fe("No function handler for "+t)}parseArguments(t,r){var i=r.numArgs+r.numOptionalArgs;if(i===0)return{args:[],optArgs:[]};for(var l=[],s=[],c=0;c<i;c++){var f=r.argTypes&&r.argTypes[c],d=c<r.numOptionalArgs;(r.primitive&&f==null||r.type==="sqrt"&&c===1&&s[0]==null)&&(f="primitive");var h=this.parseGroupOfType("argument to '"+t+"'",f,d);if(d)s.push(h);else if(h!=null)l.push(h);else throw new fe("Null argument, please report this as a bug")}return{args:l,optArgs:s}}parseGroupOfType(t,r,i){switch(r){case"color":return this.parseColorGroup(i);case"size":return this.parseSizeGroup(i);case"url":return this.parseUrlGroup(i);case"math":case"text":return this.parseArgumentGroup(i,r);case"hbox":{var l=this.parseArgumentGroup(i,"text");return l!=null?{type:"styling",mode:l.mode,body:[l],style:"text"}:null}case"raw":{var s=this.parseStringGroup("raw",i);return s!=null?{type:"raw",mode:"text",string:s.text}:null}case"primitive":{if(i)throw new fe("A primitive argument cannot be optional");var c=this.parseGroup(t);if(c==null)throw new fe("Expected group as "+t,this.fetch());return c}case"original":case null:case void 0:return this.parseArgumentGroup(i);default:throw new fe("Unknown group type as "+t,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(t,r){var i=this.gullet.scanArgument(r);if(i==null)return null;for(var l="",s;(s=this.fetch()).text!=="EOF";)l+=s.text,this.consume();return this.consume(),i.text=l,i}parseRegexGroup(t,r){for(var i=this.fetch(),l=i,s="",c;(c=this.fetch()).text!=="EOF"&&t.test(s+c.text);)l=c,s+=l.text,this.consume();if(s==="")throw new fe("Invalid "+r+": '"+i.text+"'",i);return i.range(l,s)}parseColorGroup(t){var r=this.parseStringGroup("color",t);if(r==null)return null;var i=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(r.text);if(!i)throw new fe("Invalid color: '"+r.text+"'",r);var l=i[0];return/^[0-9a-f]{6}$/i.test(l)&&(l="#"+l),{type:"color-token",mode:this.mode,color:l}}parseSizeGroup(t){var r,i=!1;if(this.gullet.consumeSpaces(),!t&&this.gullet.future().text!=="{"?r=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):r=this.parseStringGroup("size",t),!r)return null;!t&&r.text.length===0&&(r.text="0pt",i=!0);var l=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(r.text);if(!l)throw new fe("Invalid size: '"+r.text+"'",r);var s={number:+(l[1]+l[2]),unit:l[3]};if(!c7(s))throw new fe("Invalid unit: '"+s.unit+"'",r);return{type:"size",mode:this.mode,value:s,isBlank:i}}parseUrlGroup(t){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var r=this.parseStringGroup("url",t);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),r==null)return null;var i=r.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:i}}parseArgumentGroup(t,r){var i=this.gullet.scanArgument(t);if(i==null)return null;var l=this.mode;r&&this.switchMode(r),this.gullet.beginGroup();var s=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var c={type:"ordgroup",mode:this.mode,loc:i.loc,body:s};return r&&this.switchMode(l),c}parseGroup(t,r){var i=this.fetch(),l=i.text,s;if(l==="{"||l==="\\begingroup"){this.consume();var c=l==="{"?"}":"\\endgroup";this.gullet.beginGroup();var f=this.parseExpression(!1,c),d=this.fetch();this.expect(c),this.gullet.endGroup(),s={type:"ordgroup",mode:this.mode,loc:En.range(i,d),body:f,semisimple:l==="\\begingroup"||void 0}}else if(s=this.parseFunction(r,t)||this.parseSymbol(),s==null&&l[0]==="\\"&&!e8.hasOwnProperty(l)){if(this.settings.throwOnError)throw new fe("Undefined control sequence: "+l,i);s=this.formatUnsupportedCmd(l),this.consume()}return s}formLigatures(t){for(var r=t.length-1,i=0;i<r;++i){var l=t[i],s=l.text;s==="-"&&t[i+1].text==="-"&&(i+1<r&&t[i+2].text==="-"?(t.splice(i,3,{type:"textord",mode:"text",loc:En.range(l,t[i+2]),text:"---"}),r-=2):(t.splice(i,2,{type:"textord",mode:"text",loc:En.range(l,t[i+1]),text:"--"}),r-=1)),(s==="'"||s==="`")&&t[i+1].text===s&&(t.splice(i,2,{type:"textord",mode:"text",loc:En.range(l,t[i+1]),text:s+s}),r-=1)}}parseSymbol(){var t=this.fetch(),r=t.text;if(/^\\verb[^a-zA-Z]/.test(r)){this.consume();var i=r.slice(5),l=i.charAt(0)==="*";if(l&&(i=i.slice(1)),i.length<2||i.charAt(0)!==i.slice(-1))throw new fe(`\\verb assertion failed --
453
+ please report what input caused this bug`);return i=i.slice(1,-1),{type:"verb",mode:"text",body:i,star:l}}W5.hasOwnProperty(r[0])&&!ht[this.mode][r[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+r[0]+'" used in math mode',t),r=W5[r[0]]+r.slice(1));var s=Pz.exec(r);s&&(r=r.substring(0,s.index),r==="i"?r="ı":r==="j"&&(r="ȷ"));var c;if(ht[this.mode][r]){this.settings.strict&&this.mode==="math"&&I1.indexOf(r)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+r[0]+'" used in math mode',t);var f=ht[this.mode][r].group,d=En.range(t),h;if(BN.hasOwnProperty(f)){var g=f;h={type:"atom",mode:this.mode,family:g,loc:d,text:r}}else h={type:f,mode:this.mode,loc:d,text:r};c=h}else if(r.charCodeAt(0)>=128)this.settings.strict&&(u7(r.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+r[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+r[0]+'"'+(" ("+r.charCodeAt(0)+")"),t)),c={type:"textord",mode:"text",loc:En.range(t),text:r};else return null;if(this.consume(),s)for(var v=0;v<s[0].length;v++){var b=s[0][v];if(!E1[b])throw new fe("Unknown accent ' "+b+"'",t);var w=E1[b][this.mode]||E1[b].text;if(!w)throw new fe("Accent "+b+" unsupported in "+this.mode+" mode",t);c={type:"accent",mode:this.mode,loc:En.range(t),label:w,isStretchy:!1,isShifty:!0,base:c}}return c}}wc.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var Zh=function(t,r){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var i=new wc(t,r);delete i.gullet.macros.current["\\df@tag"];var l=i.parse();if(delete i.gullet.macros.current["\\current@color"],delete i.gullet.macros.current["\\color"],i.gullet.macros.get("\\df@tag")){if(!r.displayMode)throw new fe("\\tag works only in display equations");l=[{type:"tag",mode:"text",body:l,tag:i.subparse([new Gn("\\df@tag")])}]}return l},t8=function(t,r,i){r.textContent="";var l=Wh(t,i).toNode();r.appendChild(l)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),t8=function(){throw new fe("KaTeX doesn't work in quirks mode.")});var Kz=function(t,r){var i=Wh(t,r).toMarkup();return i},Qz=function(t,r){var i=new Rh(r);return Zh(t,i)},n8=function(t,r,i){if(i.throwOnError||!(t instanceof fe))throw t;var l=$.makeSpan(["katex-error"],[new ar(r)]);return l.setAttribute("title",t.toString()),l.setAttribute("style","color:"+i.errorColor),l},Wh=function(t,r){var i=new Rh(r);try{var l=Zh(t,i);return iz(l,t,i)}catch(s){return n8(s,t,i)}},Zz=function(t,r){var i=new Rh(r);try{var l=Zh(t,i);return lz(l,t,i)}catch(s){return n8(s,t,i)}},Wz="0.16.27",Jz={Span:qo,Anchor:Bh,SymbolNode:ar,SvgNode:pa,PathNode:oi,LineNode:V1},eD={version:Wz,render:t8,renderToString:Kz,ParseError:fe,SETTINGS_SCHEMA:Ou,__parse:Qz,__renderToDomTree:Wh,__renderToHTMLTree:Zz,__setFontMetrics:kN,__defineSymbol:y,__defineFunction:ve,__defineMacro:D,__domTree:Jz};function W1(e){const t=[];let r=0;const i=/\$\$([^$]+)\$\$|\$([^$]+)\$/g;let l,s=0;for(;(l=i.exec(e))!==null;){l.index>r&&t.push(e.slice(r,l.index));const c=l[1]!==void 0,f=l[1]||l[2];try{const d=eD.renderToString(f,{displayMode:c,throwOnError:!1});t.push(k.jsx("span",{dangerouslySetInnerHTML:{__html:d}},s++))}catch{t.push(l[0])}r=l.index+l[0].length}return r<e.length&&t.push(e.slice(r)),t.length===1&&typeof t[0]=="string"?t[0]:k.jsx(k.Fragment,{children:t})}function tD({title:e,subtitle:t}){return!e&&!t?null:k.jsxs("div",{className:"mx-auto max-w-md",children:[e&&k.jsx("h3",{className:"text-sm md:text-base font-medium tracking-tight text-foreground text-left",children:W1(e)}),t&&k.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed text-left mt-1",children:W1(t)})]})}function nD({caption:e,label:t}){return!e&&!t?null:k.jsx("div",{className:"mx-auto max-w-md",children:k.jsxs("div",{className:"text-sm text-muted-foreground leading-relaxed text-left",children:[t&&k.jsx("span",{className:"font-medium text-foreground",children:t}),t&&e&&k.jsx("span",{className:"mx-1",children:"—"}),e&&W1(e)]})})}function rD(e){return Object.prototype.toString.call(e)==="[object Object]"}function J5(e){return rD(e)||Array.isArray(e)}function aD(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Jh(e,t){const r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;const l=JSON.stringify(Object.keys(e.breakpoints||{})),s=JSON.stringify(Object.keys(t.breakpoints||{}));return l!==s?!1:r.every(c=>{const f=e[c],d=t[c];return typeof f=="function"?`${f}`==`${d}`:!J5(f)||!J5(d)?f===d:Jh(f,d)})}function e6(e){return e.concat().sort((t,r)=>t.name>r.name?1:-1).map(t=>t.options)}function iD(e,t){if(e.length!==t.length)return!1;const r=e6(e),i=e6(t);return r.every((l,s)=>{const c=i[s];return Jh(l,c)})}function em(e){return typeof e=="number"}function J1(e){return typeof e=="string"}function Sc(e){return typeof e=="boolean"}function t6(e){return Object.prototype.toString.call(e)==="[object Object]"}function St(e){return Math.abs(e)}function tm(e){return Math.sign(e)}function ho(e,t){return St(e-t)}function lD(e,t){if(e===0||t===0||St(e)<=St(t))return 0;const r=ho(St(e),St(t));return St(r/e)}function oD(e){return Math.round(e*100)/100}function So(e){return Ao(e).map(Number)}function fr(e){return e[Go(e)]}function Go(e){return Math.max(0,e.length-1)}function nm(e,t){return t===Go(e)}function n6(e,t=0){return Array.from(Array(e),(r,i)=>t+i)}function Ao(e){return Object.keys(e)}function r8(e,t){return[e,t].reduce((r,i)=>(Ao(i).forEach(l=>{const s=r[l],c=i[l],f=t6(s)&&t6(c);r[l]=f?r8(s,c):c}),r),{})}function eh(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function sD(e,t){const r={start:i,center:l,end:s};function i(){return 0}function l(d){return s(d)/2}function s(d){return t-d}function c(d,h){return J1(e)?r[e](d):e(t,d,h)}return{measure:c}}function Mo(){let e=[];function t(l,s,c,f={passive:!0}){let d;if("addEventListener"in l)l.addEventListener(s,c,f),d=()=>l.removeEventListener(s,c,f);else{const h=l;h.addListener(c),d=()=>h.removeListener(c)}return e.push(d),i}function r(){e=e.filter(l=>l())}const i={add:t,clear:r};return i}function uD(e,t,r,i){const l=Mo(),s=1e3/60;let c=null,f=0,d=0;function h(){l.add(e,"visibilitychange",()=>{e.hidden&&E()})}function g(){w(),l.clear()}function v(T){if(!d)return;c||(c=T,r(),r());const N=T-c;for(c=T,f+=N;f>=s;)r(),f-=s;const O=f/s;i(O),d&&(d=t.requestAnimationFrame(v))}function b(){d||(d=t.requestAnimationFrame(v))}function w(){t.cancelAnimationFrame(d),c=null,f=0,d=0}function E(){c=null,f=0}return{init:h,destroy:g,start:b,stop:w,update:r,render:i}}function cD(e,t){const r=t==="rtl",i=e==="y",l=i?"y":"x",s=i?"x":"y",c=!i&&r?-1:1,f=g(),d=v();function h(E){const{height:A,width:T}=E;return i?A:T}function g(){return i?"top":r?"right":"left"}function v(){return i?"bottom":r?"left":"right"}function b(E){return E*c}return{scroll:l,cross:s,startEdge:f,endEdge:d,measureSize:h,direction:b}}function qi(e=0,t=0){const r=St(e-t);function i(h){return h<e}function l(h){return h>t}function s(h){return i(h)||l(h)}function c(h){return s(h)?i(h)?e:t:h}function f(h){return r?h-r*Math.ceil((h-t)/r):h}return{length:r,max:t,min:e,constrain:c,reachedAny:s,reachedMax:l,reachedMin:i,removeOffset:f}}function a8(e,t,r){const{constrain:i}=qi(0,e),l=e+1;let s=c(t);function c(b){return r?St((l+b)%l):i(b)}function f(){return s}function d(b){return s=c(b),v}function h(b){return g().set(f()+b)}function g(){return a8(e,f(),r)}const v={get:f,set:d,add:h,clone:g};return v}function fD(e,t,r,i,l,s,c,f,d,h,g,v,b,w,E,A,T,N,O){const{cross:R,direction:H}=e,F=["INPUT","SELECT","TEXTAREA"],I={passive:!1},G=Mo(),V=Mo(),te=qi(50,225).constrain(w.measure(20)),de={mouse:300,touch:400},ce={mouse:500,touch:600},he=E?43:25;let De=!1,we=0,Ce=0,Y=!1,ne=!1,Q=!1,le=!1;function be(ye){if(!O)return;function Pe(vt){(Sc(O)||O(ye,vt))&&ke(vt)}const Ke=t;G.add(Ke,"dragstart",vt=>vt.preventDefault(),I).add(Ke,"touchmove",()=>{},I).add(Ke,"touchend",()=>{}).add(Ke,"touchstart",Pe).add(Ke,"mousedown",Pe).add(Ke,"touchcancel",_e).add(Ke,"contextmenu",_e).add(Ke,"click",Oe,!0)}function B(){G.clear(),V.clear()}function W(){const ye=le?r:t;V.add(ye,"touchmove",ge,I).add(ye,"touchend",_e).add(ye,"mousemove",ge,I).add(ye,"mouseup",_e)}function ie(ye){const Pe=ye.nodeName||"";return F.includes(Pe)}function se(){return(E?ce:de)[le?"mouse":"touch"]}function Se(ye,Pe){const Ke=v.add(tm(ye)*-1),vt=g.byDistance(ye,!E).distance;return E||St(ye)<te?vt:T&&Pe?vt*.5:g.byIndex(Ke.get(),0).distance}function ke(ye){const Pe=eh(ye,i);le=Pe,Q=E&&Pe&&!ye.buttons&&De,De=ho(l.get(),c.get())>=2,!(Pe&&ye.button!==0)&&(ie(ye.target)||(Y=!0,s.pointerDown(ye),h.useFriction(0).useDuration(0),l.set(c),W(),we=s.readPoint(ye),Ce=s.readPoint(ye,R),b.emit("pointerDown")))}function ge(ye){if(!eh(ye,i)&&ye.touches.length>=2)return _e(ye);const Ke=s.readPoint(ye),vt=s.readPoint(ye,R),qt=ho(Ke,we),$t=ho(vt,Ce);if(!ne&&!le&&(!ye.cancelable||(ne=qt>$t,!ne)))return _e(ye);const Kt=s.pointerMove(ye);qt>A&&(Q=!0),h.useFriction(.3).useDuration(.75),f.start(),l.add(H(Kt)),ye.preventDefault()}function _e(ye){const Ke=g.byDistance(0,!1).index!==v.get(),vt=s.pointerUp(ye)*se(),qt=Se(H(vt),Ke),$t=lD(vt,qt),Kt=he-10*$t,Mt=N+$t/50;ne=!1,Y=!1,V.clear(),h.useDuration(Kt).useFriction(Mt),d.distance(qt,!E),le=!1,b.emit("pointerUp")}function Oe(ye){Q&&(ye.stopPropagation(),ye.preventDefault(),Q=!1)}function Ze(){return Y}return{init:be,destroy:B,pointerDown:Ze}}function dD(e,t){let i,l;function s(v){return v.timeStamp}function c(v,b){const E=`client${(b||e.scroll)==="x"?"X":"Y"}`;return(eh(v,t)?v:v.touches[0])[E]}function f(v){return i=v,l=v,c(v)}function d(v){const b=c(v)-c(l),w=s(v)-s(i)>170;return l=v,w&&(i=v),b}function h(v){if(!i||!l)return 0;const b=c(l)-c(i),w=s(v)-s(i),E=s(v)-s(l)>170,A=b/w;return w&&!E&&St(A)>.1?A:0}return{pointerDown:f,pointerMove:d,pointerUp:h,readPoint:c}}function hD(){function e(r){const{offsetTop:i,offsetLeft:l,offsetWidth:s,offsetHeight:c}=r;return{top:i,right:l+s,bottom:i+c,left:l,width:s,height:c}}return{measure:e}}function mD(e){function t(i){return e*(i/100)}return{measure:t}}function pD(e,t,r,i,l,s,c){const f=[e].concat(i);let d,h,g=[],v=!1;function b(T){return l.measureSize(c.measure(T))}function w(T){if(!s)return;h=b(e),g=i.map(b);function N(O){for(const R of O){if(v)return;const H=R.target===e,F=i.indexOf(R.target),I=H?h:g[F],G=b(H?e:i[F]);if(St(G-I)>=.5){T.reInit(),t.emit("resize");break}}}d=new ResizeObserver(O=>{(Sc(s)||s(T,O))&&N(O)}),r.requestAnimationFrame(()=>{f.forEach(O=>d.observe(O))})}function E(){v=!0,d&&d.disconnect()}return{init:w,destroy:E}}function gD(e,t,r,i,l,s){let c=0,f=0,d=l,h=s,g=e.get(),v=0;function b(){const I=i.get()-e.get(),G=!d;let V=0;return G?(c=0,r.set(i),e.set(i),V=I):(r.set(e),c+=I/d,c*=h,g+=c,e.add(c),V=g-v),f=tm(V),v=g,F}function w(){const I=i.get()-t.get();return St(I)<.001}function E(){return d}function A(){return f}function T(){return c}function N(){return R(l)}function O(){return H(s)}function R(I){return d=I,F}function H(I){return h=I,F}const F={direction:A,duration:E,velocity:T,seek:b,settled:w,useBaseFriction:O,useBaseDuration:N,useFriction:H,useDuration:R};return F}function vD(e,t,r,i,l){const s=l.measure(10),c=l.measure(50),f=qi(.1,.99);let d=!1;function h(){return!(d||!e.reachedAny(r.get())||!e.reachedAny(t.get()))}function g(w){if(!h())return;const E=e.reachedMin(t.get())?"min":"max",A=St(e[E]-t.get()),T=r.get()-t.get(),N=f.constrain(A/c);r.subtract(T*N),!w&&St(T)<s&&(r.set(e.constrain(r.get())),i.useDuration(25).useBaseFriction())}function v(w){d=!w}return{shouldConstrain:h,constrain:g,toggleActive:v}}function yD(e,t,r,i,l){const s=qi(-t+e,0),c=v(),f=g(),d=b();function h(E,A){return ho(E,A)<=1}function g(){const E=c[0],A=fr(c),T=c.lastIndexOf(E),N=c.indexOf(A)+1;return qi(T,N)}function v(){return r.map((E,A)=>{const{min:T,max:N}=s,O=s.constrain(E),R=!A,H=nm(r,A);return R?N:H||h(T,O)?T:h(N,O)?N:O}).map(E=>parseFloat(E.toFixed(3)))}function b(){if(t<=e+l)return[s.max];if(i==="keepSnaps")return c;const{min:E,max:A}=f;return c.slice(E,A)}return{snapsContained:d,scrollContainLimit:f}}function bD(e,t,r){const i=t[0],l=r?i-e:fr(t);return{limit:qi(l,i)}}function xD(e,t,r,i){const s=t.min+.1,c=t.max+.1,{reachedMin:f,reachedMax:d}=qi(s,c);function h(b){return b===1?d(r.get()):b===-1?f(r.get()):!1}function g(b){if(!h(b))return;const w=e*(b*-1);i.forEach(E=>E.add(w))}return{loop:g}}function wD(e){const{max:t,length:r}=e;function i(s){const c=s-t;return r?c/-r:0}return{get:i}}function SD(e,t,r,i,l){const{startEdge:s,endEdge:c}=e,{groupSlides:f}=l,d=v().map(t.measure),h=b(),g=w();function v(){return f(i).map(A=>fr(A)[c]-A[0][s]).map(St)}function b(){return i.map(A=>r[s]-A[s]).map(A=>-St(A))}function w(){return f(h).map(A=>A[0]).map((A,T)=>A+d[T])}return{snaps:h,snapsAligned:g}}function AD(e,t,r,i,l,s){const{groupSlides:c}=l,{min:f,max:d}=i,h=g();function g(){const b=c(s),w=!e||t==="keepSnaps";return r.length===1?[s]:w?b:b.slice(f,d).map((E,A,T)=>{const N=!A,O=nm(T,A);if(N){const R=fr(T[0])+1;return n6(R)}if(O){const R=Go(s)-fr(T)[0]+1;return n6(R,fr(T)[0])}return E})}return{slideRegistry:h}}function MD(e,t,r,i,l){const{reachedAny:s,removeOffset:c,constrain:f}=i;function d(E){return E.concat().sort((A,T)=>St(A)-St(T))[0]}function h(E){const A=e?c(E):f(E),T=t.map((O,R)=>({diff:g(O-A,0),index:R})).sort((O,R)=>St(O.diff)-St(R.diff)),{index:N}=T[0];return{index:N,distance:A}}function g(E,A){const T=[E,E+r,E-r];if(!e)return E;if(!A)return d(T);const N=T.filter(O=>tm(O)===A);return N.length?d(N):fr(T)-r}function v(E,A){const T=t[E]-l.get(),N=g(T,A);return{index:E,distance:N}}function b(E,A){const T=l.get()+E,{index:N,distance:O}=h(T),R=!e&&s(T);if(!A||R)return{index:N,distance:E};const H=t[N]-O,F=E+g(H,0);return{index:N,distance:F}}return{byDistance:b,byIndex:v,shortcut:g}}function ED(e,t,r,i,l,s,c){function f(v){const b=v.distance,w=v.index!==t.get();s.add(b),b&&(i.duration()?e.start():(e.update(),e.render(1),e.update())),w&&(r.set(t.get()),t.set(v.index),c.emit("select"))}function d(v,b){const w=l.byDistance(v,b);f(w)}function h(v,b){const w=t.clone().set(v),E=l.byIndex(w.get(),b);f(E)}return{distance:d,index:h}}function TD(e,t,r,i,l,s,c,f){const d={passive:!0,capture:!0};let h=0;function g(w){if(!f)return;function E(A){if(new Date().getTime()-h>10)return;c.emit("slideFocusStart"),e.scrollLeft=0;const O=r.findIndex(R=>R.includes(A));em(O)&&(l.useDuration(0),i.index(O,0),c.emit("slideFocus"))}s.add(document,"keydown",v,!1),t.forEach((A,T)=>{s.add(A,"focus",N=>{(Sc(f)||f(w,N))&&E(T)},d)})}function v(w){w.code==="Tab"&&(h=new Date().getTime())}return{init:g}}function co(e){let t=e;function r(){return t}function i(d){t=c(d)}function l(d){t+=c(d)}function s(d){t-=c(d)}function c(d){return em(d)?d:d.get()}return{get:r,set:i,add:l,subtract:s}}function i8(e,t){const r=e.scroll==="x"?c:f,i=t.style;let l=null,s=!1;function c(b){return`translate3d(${b}px,0px,0px)`}function f(b){return`translate3d(0px,${b}px,0px)`}function d(b){if(s)return;const w=oD(e.direction(b));w!==l&&(i.transform=r(w),l=w)}function h(b){s=!b}function g(){s||(i.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:g,to:d,toggleActive:h}}function CD(e,t,r,i,l,s,c,f,d){const g=So(l),v=So(l).reverse(),b=N().concat(O());function w(G,V){return G.reduce((te,de)=>te-l[de],V)}function E(G,V){return G.reduce((te,de)=>w(te,V)>0?te.concat([de]):te,[])}function A(G){return s.map((V,te)=>({start:V-i[te]+.5+G,end:V+t-.5+G}))}function T(G,V,te){const de=A(V);return G.map(ce=>{const he=te?0:-r,De=te?r:0,we=te?"end":"start",Ce=de[ce][we];return{index:ce,loopPoint:Ce,slideLocation:co(-1),translate:i8(e,d[ce]),target:()=>f.get()>Ce?he:De}})}function N(){const G=c[0],V=E(v,G);return T(V,r,!1)}function O(){const G=t-c[0]-1,V=E(g,G);return T(V,-r,!0)}function R(){return b.every(({index:G})=>{const V=g.filter(te=>te!==G);return w(V,t)<=.1})}function H(){b.forEach(G=>{const{target:V,translate:te,slideLocation:de}=G,ce=V();ce!==de.get()&&(te.to(ce),de.set(ce))})}function F(){b.forEach(G=>G.translate.clear())}return{canLoop:R,clear:F,loop:H,loopPoints:b}}function kD(e,t,r){let i,l=!1;function s(d){if(!r)return;function h(g){for(const v of g)if(v.type==="childList"){d.reInit(),t.emit("slidesChanged");break}}i=new MutationObserver(g=>{l||(Sc(r)||r(d,g))&&h(g)}),i.observe(e,{childList:!0})}function c(){i&&i.disconnect(),l=!0}return{init:s,destroy:c}}function ND(e,t,r,i){const l={};let s=null,c=null,f,d=!1;function h(){f=new IntersectionObserver(E=>{d||(E.forEach(A=>{const T=t.indexOf(A.target);l[T]=A}),s=null,c=null,r.emit("slidesInView"))},{root:e.parentElement,threshold:i}),t.forEach(E=>f.observe(E))}function g(){f&&f.disconnect(),d=!0}function v(E){return Ao(l).reduce((A,T)=>{const N=parseInt(T),{isIntersecting:O}=l[N];return(E&&O||!E&&!O)&&A.push(N),A},[])}function b(E=!0){if(E&&s)return s;if(!E&&c)return c;const A=v(E);return E&&(s=A),E||(c=A),A}return{init:h,destroy:g,get:b}}function zD(e,t,r,i,l,s){const{measureSize:c,startEdge:f,endEdge:d}=e,h=r[0]&&l,g=E(),v=A(),b=r.map(c),w=T();function E(){if(!h)return 0;const O=r[0];return St(t[f]-O[f])}function A(){if(!h)return 0;const O=s.getComputedStyle(fr(i));return parseFloat(O.getPropertyValue(`margin-${d}`))}function T(){return r.map((O,R,H)=>{const F=!R,I=nm(H,R);return F?b[R]+g:I?b[R]+v:H[R+1][f]-O[f]}).map(St)}return{slideSizes:b,slideSizesWithGaps:w,startGap:g,endGap:v}}function DD(e,t,r,i,l,s,c,f,d){const{startEdge:h,endEdge:g,direction:v}=e,b=em(r);function w(N,O){return So(N).filter(R=>R%O===0).map(R=>N.slice(R,R+O))}function E(N){return N.length?So(N).reduce((O,R,H)=>{const F=fr(O)||0,I=F===0,G=R===Go(N),V=l[h]-s[F][h],te=l[h]-s[R][g],de=!i&&I?v(c):0,ce=!i&&G?v(f):0,he=St(te-ce-(V+de));return H&&he>t+d&&O.push(R),G&&O.push(N.length),O},[]).map((O,R,H)=>{const F=Math.max(H[R-1]||0);return N.slice(F,O)}):[]}function A(N){return b?w(N,r):E(N)}return{groupSlides:A}}function OD(e,t,r,i,l,s,c){const{align:f,axis:d,direction:h,startIndex:g,loop:v,duration:b,dragFree:w,dragThreshold:E,inViewThreshold:A,slidesToScroll:T,skipSnaps:N,containScroll:O,watchResize:R,watchSlides:H,watchDrag:F,watchFocus:I}=s,G=2,V=hD(),te=V.measure(t),de=r.map(V.measure),ce=cD(d,h),he=ce.measureSize(te),De=mD(he),we=sD(f,he),Ce=!v&&!!O,Y=v||!!O,{slideSizes:ne,slideSizesWithGaps:Q,startGap:le,endGap:be}=zD(ce,te,de,r,Y,l),B=DD(ce,he,T,v,te,de,le,be,G),{snaps:W,snapsAligned:ie}=SD(ce,we,te,de,B),se=-fr(W)+fr(Q),{snapsContained:Se,scrollContainLimit:ke}=yD(he,se,ie,O,G),ge=Ce?Se:ie,{limit:_e}=bD(se,ge,v),Oe=a8(Go(ge),g,v),Ze=Oe.clone(),Ye=So(r),ye=({dragHandler:Hr,scrollBody:l0,scrollBounds:o0,options:{loop:gr}})=>{gr||o0.constrain(Hr.pointerDown()),l0.seek()},Pe=({scrollBody:Hr,translate:l0,location:o0,offsetLocation:gr,previousLocation:ln,scrollLooper:vr,slideLooper:on,dragHandler:Ec,animation:Tc,eventHandler:Po,scrollBounds:Ii,options:{loop:di}},hi)=>{const yr=Hr.settled(),Xi=!Ii.shouldConstrain(),ba=di?yr:yr&&Xi,Vo=ba&&!Ec.pointerDown();Vo&&Tc.stop();const Io=o0.get()*hi+ln.get()*(1-hi);gr.set(Io),di&&(vr.loop(Hr.direction()),on.loop()),l0.to(gr.get()),Vo&&Po.emit("settle"),ba||Po.emit("scroll")},Ke=uD(i,l,()=>ye(i0),Hr=>Pe(i0,Hr)),vt=.68,qt=ge[Oe.get()],$t=co(qt),Kt=co(qt),Mt=co(qt),lr=co(qt),_r=gD($t,Mt,Kt,lr,b,vt),n0=MD(v,ge,se,_e,lr),r0=ED(Ke,Oe,Ze,_r,n0,lr,c),tn=wD(_e),Fo=Mo(),Yo=ND(t,r,c,A),{slideRegistry:a0}=AD(Ce,O,ge,ke,B,Ye),Vi=TD(e,r,a0,r0,_r,Fo,c,I),i0={ownerDocument:i,ownerWindow:l,eventHandler:c,containerRect:te,slideRects:de,animation:Ke,axis:ce,dragHandler:fD(ce,e,i,l,lr,dD(ce,l),$t,Ke,r0,_r,n0,Oe,c,De,w,E,N,vt,F),eventStore:Fo,percentOfView:De,index:Oe,indexPrevious:Ze,limit:_e,location:$t,offsetLocation:Mt,previousLocation:Kt,options:s,resizeHandler:pD(t,c,l,r,ce,R,V),scrollBody:_r,scrollBounds:vD(_e,Mt,lr,_r,De),scrollLooper:xD(se,_e,Mt,[$t,Mt,Kt,lr]),scrollProgress:tn,scrollSnapList:ge.map(tn.get),scrollSnaps:ge,scrollTarget:n0,scrollTo:r0,slideLooper:CD(ce,he,se,ne,Q,W,ge,Mt,r),slideFocus:Vi,slidesHandler:kD(t,c,H),slidesInView:Yo,slideIndexes:Ye,slideRegistry:a0,slidesToScroll:B,target:lr,translate:i8(ce,t)};return i0}function RD(){let e={},t;function r(h){t=h}function i(h){return e[h]||[]}function l(h){return i(h).forEach(g=>g(t,h)),d}function s(h,g){return e[h]=i(h).concat([g]),d}function c(h,g){return e[h]=i(h).filter(v=>v!==g),d}function f(){e={}}const d={init:r,emit:l,off:c,on:s,clear:f};return d}const LD={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function jD(e){function t(s,c){return r8(s,c||{})}function r(s){const c=s.breakpoints||{},f=Ao(c).filter(d=>e.matchMedia(d).matches).map(d=>c[d]).reduce((d,h)=>t(d,h),{});return t(s,f)}function i(s){return s.map(c=>Ao(c.breakpoints||{})).reduce((c,f)=>c.concat(f),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:r,optionsMediaQueries:i}}function BD(e){let t=[];function r(s,c){return t=c.filter(({options:f})=>e.optionsAtMedia(f).active!==!1),t.forEach(f=>f.init(s,e)),c.reduce((f,d)=>Object.assign(f,{[d.name]:d}),{})}function i(){t=t.filter(s=>s.destroy())}return{init:r,destroy:i}}function Qu(e,t,r){const i=e.ownerDocument,l=i.defaultView,s=jD(l),c=BD(s),f=Mo(),d=RD(),{mergeOptions:h,optionsAtMedia:g,optionsMediaQueries:v}=s,{on:b,off:w,emit:E}=d,A=ce;let T=!1,N,O=h(LD,Qu.globalOptions),R=h(O),H=[],F,I,G;function V(){const{container:Ye,slides:ye}=R;I=(J1(Ye)?e.querySelector(Ye):Ye)||e.children[0];const Ke=J1(ye)?I.querySelectorAll(ye):ye;G=[].slice.call(Ke||I.children)}function te(Ye){const ye=OD(e,I,G,i,l,Ye,d);if(Ye.loop&&!ye.slideLooper.canLoop()){const Pe=Object.assign({},Ye,{loop:!1});return te(Pe)}return ye}function de(Ye,ye){T||(O=h(O,Ye),R=g(O),H=ye||H,V(),N=te(R),v([O,...H.map(({options:Pe})=>Pe)]).forEach(Pe=>f.add(Pe,"change",ce)),R.active&&(N.translate.to(N.location.get()),N.animation.init(),N.slidesInView.init(),N.slideFocus.init(Ze),N.eventHandler.init(Ze),N.resizeHandler.init(Ze),N.slidesHandler.init(Ze),N.options.loop&&N.slideLooper.loop(),I.offsetParent&&G.length&&N.dragHandler.init(Ze),F=c.init(Ze,H)))}function ce(Ye,ye){const Pe=B();he(),de(h({startIndex:Pe},Ye),ye),d.emit("reInit")}function he(){N.dragHandler.destroy(),N.eventStore.clear(),N.translate.clear(),N.slideLooper.clear(),N.resizeHandler.destroy(),N.slidesHandler.destroy(),N.slidesInView.destroy(),N.animation.destroy(),c.destroy(),f.clear()}function De(){T||(T=!0,f.clear(),he(),d.emit("destroy"),d.clear())}function we(Ye,ye,Pe){!R.active||T||(N.scrollBody.useBaseFriction().useDuration(ye===!0?0:R.duration),N.scrollTo.index(Ye,Pe||0))}function Ce(Ye){const ye=N.index.add(1).get();we(ye,Ye,-1)}function Y(Ye){const ye=N.index.add(-1).get();we(ye,Ye,1)}function ne(){return N.index.add(1).get()!==B()}function Q(){return N.index.add(-1).get()!==B()}function le(){return N.scrollSnapList}function be(){return N.scrollProgress.get(N.offsetLocation.get())}function B(){return N.index.get()}function W(){return N.indexPrevious.get()}function ie(){return N.slidesInView.get()}function se(){return N.slidesInView.get(!1)}function Se(){return F}function ke(){return N}function ge(){return e}function _e(){return I}function Oe(){return G}const Ze={canScrollNext:ne,canScrollPrev:Q,containerNode:_e,internalEngine:ke,destroy:De,off:w,on:b,emit:E,plugins:Se,previousScrollSnap:W,reInit:A,rootNode:ge,scrollNext:Ce,scrollPrev:Y,scrollProgress:be,scrollSnapList:le,scrollTo:we,selectedScrollSnap:B,slideNodes:Oe,slidesInView:ie,slidesNotInView:se};return de(t,r),setTimeout(()=>d.emit("init"),0),Ze}Qu.globalOptions=void 0;function rm(e={},t=[]){const r=M.useRef(e),i=M.useRef(t),[l,s]=M.useState(),[c,f]=M.useState(),d=M.useCallback(()=>{l&&l.reInit(r.current,i.current)},[l]);return M.useEffect(()=>{Jh(r.current,e)||(r.current=e,d())},[e,d]),M.useEffect(()=>{iD(i.current,t)||(i.current=t,d())},[t,d]),M.useEffect(()=>{if(aD()&&c){Qu.globalOptions=rm.globalOptions;const h=Qu(c,r.current,i.current);return s(h),()=>h.destroy()}else s(void 0)},[c,s]),[f,l]}rm.globalOptions=void 0;var _D=Symbol.for("react.lazy"),Zu=rh[" use ".trim().toString()];function HD(e){return typeof e=="object"&&e!==null&&"then"in e}function l8(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===_D&&"_payload"in e&&HD(e._payload)}function qD(e){const t=GD(e),r=M.forwardRef((i,l)=>{let{children:s,...c}=i;l8(s)&&typeof Zu=="function"&&(s=Zu(s._payload));const f=M.Children.toArray(s),d=f.find(YD);if(d){const h=d.props.children,g=f.map(v=>v===d?M.Children.count(h)>1?M.Children.only(null):M.isValidElement(h)?h.props.children:null:v);return k.jsx(t,{...c,ref:l,children:M.isValidElement(h)?M.cloneElement(h,void 0,g):null})}return k.jsx(t,{...c,ref:l,children:s})});return r.displayName=`${e}.Slot`,r}var UD=qD("Slot");function GD(e){const t=M.forwardRef((r,i)=>{let{children:l,...s}=r;if(l8(l)&&typeof Zu=="function"&&(l=Zu(l._payload)),M.isValidElement(l)){const c=VD(l),f=PD(s,l.props);return l.type!==M.Fragment&&(f.ref=i?Gi(i,c):c),M.cloneElement(l,f)}return M.Children.count(l)>1?M.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var FD=Symbol("radix.slottable");function YD(e){return M.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===FD}function PD(e,t){const r={...t};for(const i in t){const l=e[i],s=t[i];/^on[A-Z]/.test(i)?l&&s?r[i]=(...f)=>{const d=s(...f);return l(...f),d}:l&&(r[i]=l):i==="style"?r[i]={...l,...s}:i==="className"&&(r[i]=[l,s].filter(Boolean).join(" "))}return{...e,...r}}function VD(e){var i,l;let t=(i=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:i.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(l=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:l.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const r6=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,a6=_6,ID=(e,t)=>r=>{var i;if((t==null?void 0:t.variants)==null)return a6(e,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:l,defaultVariants:s}=t,c=Object.keys(l).map(h=>{const g=r==null?void 0:r[h],v=s==null?void 0:s[h];if(g===null)return null;const b=r6(g)||r6(v);return l[h][b]}),f=r&&Object.entries(r).reduce((h,g)=>{let[v,b]=g;return b===void 0||(h[v]=b),h},{}),d=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((h,g)=>{let{class:v,className:b,...w}=g;return Object.entries(w).every(E=>{let[A,T]=E;return Array.isArray(T)?T.includes({...s,...f}[A]):{...s,...f}[A]===T})?[...h,v,b]:h},[]);return a6(e,c,d,r==null?void 0:r.class,r==null?void 0:r.className)},XD=ID("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),am=M.forwardRef(({className:e,variant:t,size:r,asChild:i=!1,...l},s)=>{const c=i?UD:"button";return k.jsx(c,{className:ct(XD({variant:t,size:r,className:e})),ref:s,...l})});am.displayName="Button";const o8=M.createContext(null);function Ac(){const e=M.useContext(o8);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const s8=M.forwardRef(({orientation:e="horizontal",opts:t,setApi:r,plugins:i,className:l,children:s,...c},f)=>{const[d,h]=rm({...t,axis:e==="horizontal"?"x":"y"},i),[g,v]=M.useState(!1),[b,w]=M.useState(!1),E=M.useCallback(O=>{O&&(v(O.canScrollPrev()),w(O.canScrollNext()))},[]),A=M.useCallback(()=>{h==null||h.scrollPrev()},[h]),T=M.useCallback(()=>{h==null||h.scrollNext()},[h]),N=M.useCallback(O=>{O.key==="ArrowLeft"?(O.preventDefault(),A()):O.key==="ArrowRight"&&(O.preventDefault(),T())},[A,T]);return M.useEffect(()=>{!h||!r||r(h)},[h,r]),M.useEffect(()=>{if(h)return E(h),h.on("reInit",E),h.on("select",E),()=>{h==null||h.off("select",E)}},[h,E]),k.jsx(o8.Provider,{value:{carouselRef:d,api:h,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:A,scrollNext:T,canScrollPrev:g,canScrollNext:b},children:k.jsx("div",{ref:f,onKeyDownCapture:N,className:ct("relative",l),role:"region","aria-roledescription":"carousel",...c,children:s})})});s8.displayName="Carousel";const u8=M.forwardRef(({className:e,...t},r)=>{const{carouselRef:i,orientation:l}=Ac();return k.jsx("div",{ref:i,className:"overflow-hidden",children:k.jsx("div",{ref:r,className:ct("flex",l==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});u8.displayName="CarouselContent";const c8=M.forwardRef(({className:e,...t},r)=>{const{orientation:i}=Ac();return k.jsx("div",{ref:r,role:"group","aria-roledescription":"slide",className:ct("min-w-0 shrink-0 grow-0 basis-full",i==="horizontal"?"pl-4":"pt-4",e),...t})});c8.displayName="CarouselItem";const f8=M.forwardRef(({className:e,variant:t="outline",size:r="icon",...i},l)=>{const{orientation:s,scrollPrev:c,canScrollPrev:f}=Ac();return k.jsxs(am,{ref:l,variant:t,size:r,className:ct("absolute h-8 w-8 rounded-full",s==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!f,onClick:c,...i,children:[k.jsx(HS,{className:"h-4 w-4"}),k.jsx("span",{className:"sr-only",children:"Previous slide"})]})});f8.displayName="CarouselPrevious";const d8=M.forwardRef(({className:e,variant:t="outline",size:r="icon",...i},l)=>{const{orientation:s,scrollNext:c,canScrollNext:f}=Ac();return k.jsxs(am,{ref:l,variant:t,size:r,className:ct("absolute h-8 w-8 rounded-full",s==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!f,onClick:c,...i,children:[k.jsx(ng,{className:"h-4 w-4"}),k.jsx("span",{className:"sr-only",children:"Next slide"})]})});d8.displayName="CarouselNext";function $D(e){return(e.split("/").pop()||e).replace(/\.(png|jpg|jpeg|gif|svg|webp)$/i,"").replace(/[_-]/g," ").replace(/\s+/g," ").trim()}function KD(e){return`/raw/${e}`}function QD({path:e,globs:t=null,caption:r,captionLabel:i,title:l,subtitle:s,limit:c=null,page:f=0}){const{paths:d,isLoading:h,isEmpty:g}=Zk({path:e,globs:t,limit:c,page:f}),v=Jk(d.length),b=M.useMemo(()=>d.map(w=>({src:KD(w),label:$D(w)})),[d]);return h?k.jsx("div",{className:"not-prose py-4 md:py-6",children:k.jsx("div",{className:"grid grid-cols-3 gap-2 sm:gap-4 max-w-[var(--gallery-width)] mx-auto",children:[...Array(3)].map((w,E)=>k.jsx("div",{className:"aspect-[4/3] bg-muted/30 animate-pulse",style:{animationDelay:`${E*100}ms`}},E))})}):g?k.jsx("div",{className:"not-prose py-16 text-center",children:k.jsxs("div",{className:"inline-flex items-center gap-3 text-muted-foreground/60",children:[k.jsx(ag,{className:"h-4 w-4"}),k.jsx("span",{className:"font-mono text-sm tracking-wide",children:"no image(s) found"})]})}):k.jsxs(k.Fragment,{children:[k.jsxs("div",{className:"rounded-lg not-prose flex flex-col gap-0 relative p-4 -mx-[calc((var(--gallery-width)-var(--content-width))/2+var(--page-padding))]",children:[k.jsx(tD,{title:l,subtitle:s}),k.jsxs(s8,{children:[k.jsx(u8,{children:b.map((w,E)=>k.jsx(c8,{className:"mx-auto md:basis-1/2 lg:basis-1/3 cursor-pointer transition-transform duration-700 ease-out-expo hover:scale-[1.02]",onClick:()=>v.open(E),children:k.jsx(eN,{src:w.src,alt:w.label})},E))}),b.length>3&&k.jsxs(k.Fragment,{children:[k.jsx(f8,{}),k.jsx(d8,{})]})]}),k.jsx(nD,{caption:r,label:i})]}),v.isOpen&&v.selectedIndex!==null&&k.jsx(VC,{images:b,selectedIndex:v.selectedIndex,onClose:v.close,onPrevious:v.goToPrevious,onNext:v.goToNext})]})}/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */function h8(e){return typeof e>"u"||e===null}function ZD(e){return typeof e=="object"&&e!==null}function WD(e){return Array.isArray(e)?e:h8(e)?[]:[e]}function JD(e,t){var r,i,l,s;if(t)for(s=Object.keys(t),r=0,i=s.length;r<i;r+=1)l=s[r],e[l]=t[l];return e}function eO(e,t){var r="",i;for(i=0;i<t;i+=1)r+=e;return r}function tO(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var nO=h8,rO=ZD,aO=WD,iO=eO,lO=tO,oO=JD,fn={isNothing:nO,isObject:rO,toArray:aO,repeat:iO,isNegativeZero:lO,extend:oO};function m8(e,t){var r="",i=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
454
+
455
+ `+e.mark.snippet),i+" "+r):i}function Eo(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=m8(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Eo.prototype=Object.create(Error.prototype);Eo.prototype.constructor=Eo;Eo.prototype.toString=function(t){return this.name+": "+m8(this,t)};var oa=Eo;function T1(e,t,r,i,l){var s="",c="",f=Math.floor(l/2)-1;return i-t>f&&(s=" ... ",t=i-f+s.length),r-i>f&&(c=" ...",r=i+f-c.length),{str:s+e.slice(t,r).replace(/\t/g,"→")+c,pos:i-t+s.length}}function C1(e,t){return fn.repeat(" ",t-e.length)+e}function sO(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,i=[0],l=[],s,c=-1;s=r.exec(e.buffer);)l.push(s.index),i.push(s.index+s[0].length),e.position<=s.index&&c<0&&(c=i.length-2);c<0&&(c=i.length-1);var f="",d,h,g=Math.min(e.line+t.linesAfter,l.length).toString().length,v=t.maxLength-(t.indent+g+3);for(d=1;d<=t.linesBefore&&!(c-d<0);d++)h=T1(e.buffer,i[c-d],l[c-d],e.position-(i[c]-i[c-d]),v),f=fn.repeat(" ",t.indent)+C1((e.line-d+1).toString(),g)+" | "+h.str+`
456
+ `+f;for(h=T1(e.buffer,i[c],l[c],e.position,v),f+=fn.repeat(" ",t.indent)+C1((e.line+1).toString(),g)+" | "+h.str+`
457
+ `,f+=fn.repeat("-",t.indent+g+3+h.pos)+`^
458
+ `,d=1;d<=t.linesAfter&&!(c+d>=l.length);d++)h=T1(e.buffer,i[c+d],l[c+d],e.position-(i[c]-i[c+d]),v),f+=fn.repeat(" ",t.indent)+C1((e.line+d+1).toString(),g)+" | "+h.str+`
459
+ `;return f.replace(/\n$/,"")}var uO=sO,cO=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],fO=["scalar","sequence","mapping"];function dO(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(i){t[String(i)]=r})}),t}function hO(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(cO.indexOf(r)===-1)throw new oa('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=dO(t.styleAliases||null),fO.indexOf(this.kind)===-1)throw new oa('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var rn=hO;function i6(e,t){var r=[];return e[t].forEach(function(i){var l=r.length;r.forEach(function(s,c){s.tag===i.tag&&s.kind===i.kind&&s.multi===i.multi&&(l=c)}),r[l]=i}),r}function mO(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function i(l){l.multi?(e.multi[l.kind].push(l),e.multi.fallback.push(l)):e[l.kind][l.tag]=e.fallback[l.tag]=l}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(i);return e}function th(e){return this.extend(e)}th.prototype.extend=function(t){var r=[],i=[];if(t instanceof rn)i.push(t);else if(Array.isArray(t))i=i.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(i=i.concat(t.explicit));else throw new oa("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof rn))throw new oa("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new oa("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new oa("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),i.forEach(function(s){if(!(s instanceof rn))throw new oa("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var l=Object.create(th.prototype);return l.implicit=(this.implicit||[]).concat(r),l.explicit=(this.explicit||[]).concat(i),l.compiledImplicit=i6(l,"implicit"),l.compiledExplicit=i6(l,"explicit"),l.compiledTypeMap=mO(l.compiledImplicit,l.compiledExplicit),l};var pO=th,gO=new rn("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),vO=new rn("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),yO=new rn("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),bO=new pO({explicit:[gO,vO,yO]});function xO(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function wO(){return null}function SO(e){return e===null}var AO=new rn("tag:yaml.org,2002:null",{kind:"scalar",resolve:xO,construct:wO,predicate:SO,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function MO(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function EO(e){return e==="true"||e==="True"||e==="TRUE"}function TO(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var CO=new rn("tag:yaml.org,2002:bool",{kind:"scalar",resolve:MO,construct:EO,predicate:TO,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function kO(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function NO(e){return 48<=e&&e<=55}function zO(e){return 48<=e&&e<=57}function DO(e){if(e===null)return!1;var t=e.length,r=0,i=!1,l;if(!t)return!1;if(l=e[r],(l==="-"||l==="+")&&(l=e[++r]),l==="0"){if(r+1===t)return!0;if(l=e[++r],l==="b"){for(r++;r<t;r++)if(l=e[r],l!=="_"){if(l!=="0"&&l!=="1")return!1;i=!0}return i&&l!=="_"}if(l==="x"){for(r++;r<t;r++)if(l=e[r],l!=="_"){if(!kO(e.charCodeAt(r)))return!1;i=!0}return i&&l!=="_"}if(l==="o"){for(r++;r<t;r++)if(l=e[r],l!=="_"){if(!NO(e.charCodeAt(r)))return!1;i=!0}return i&&l!=="_"}}if(l==="_")return!1;for(;r<t;r++)if(l=e[r],l!=="_"){if(!zO(e.charCodeAt(r)))return!1;i=!0}return!(!i||l==="_")}function OO(e){var t=e,r=1,i;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),i=t[0],(i==="-"||i==="+")&&(i==="-"&&(r=-1),t=t.slice(1),i=t[0]),t==="0")return 0;if(i==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function RO(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!fn.isNegativeZero(e)}var LO=new rn("tag:yaml.org,2002:int",{kind:"scalar",resolve:DO,construct:OO,predicate:RO,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),jO=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function BO(e){return!(e===null||!jO.test(e)||e[e.length-1]==="_")}function _O(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var HO=/^[-+]?[0-9]+e/;function qO(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(fn.isNegativeZero(e))return"-0.0";return r=e.toString(10),HO.test(r)?r.replace("e",".e"):r}function UO(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||fn.isNegativeZero(e))}var GO=new rn("tag:yaml.org,2002:float",{kind:"scalar",resolve:BO,construct:_O,predicate:UO,represent:qO,defaultStyle:"lowercase"}),FO=bO.extend({implicit:[AO,CO,LO,GO]}),YO=FO,p8=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),g8=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function PO(e){return e===null?!1:p8.exec(e)!==null||g8.exec(e)!==null}function VO(e){var t,r,i,l,s,c,f,d=0,h=null,g,v,b;if(t=p8.exec(e),t===null&&(t=g8.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],i=+t[2]-1,l=+t[3],!t[4])return new Date(Date.UTC(r,i,l));if(s=+t[4],c=+t[5],f=+t[6],t[7]){for(d=t[7].slice(0,3);d.length<3;)d+="0";d=+d}return t[9]&&(g=+t[10],v=+(t[11]||0),h=(g*60+v)*6e4,t[9]==="-"&&(h=-h)),b=new Date(Date.UTC(r,i,l,s,c,f,d)),h&&b.setTime(b.getTime()-h),b}function IO(e){return e.toISOString()}var XO=new rn("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:PO,construct:VO,instanceOf:Date,represent:IO});function $O(e){return e==="<<"||e===null}var KO=new rn("tag:yaml.org,2002:merge",{kind:"scalar",resolve:$O}),im=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
460
+ \r`;function QO(e){if(e===null)return!1;var t,r,i=0,l=e.length,s=im;for(r=0;r<l;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;i+=6}return i%8===0}function ZO(e){var t,r,i=e.replace(/[\r\n=]/g,""),l=i.length,s=im,c=0,f=[];for(t=0;t<l;t++)t%4===0&&t&&(f.push(c>>16&255),f.push(c>>8&255),f.push(c&255)),c=c<<6|s.indexOf(i.charAt(t));return r=l%4*6,r===0?(f.push(c>>16&255),f.push(c>>8&255),f.push(c&255)):r===18?(f.push(c>>10&255),f.push(c>>2&255)):r===12&&f.push(c>>4&255),new Uint8Array(f)}function WO(e){var t="",r=0,i,l,s=e.length,c=im;for(i=0;i<s;i++)i%3===0&&i&&(t+=c[r>>18&63],t+=c[r>>12&63],t+=c[r>>6&63],t+=c[r&63]),r=(r<<8)+e[i];return l=s%3,l===0?(t+=c[r>>18&63],t+=c[r>>12&63],t+=c[r>>6&63],t+=c[r&63]):l===2?(t+=c[r>>10&63],t+=c[r>>4&63],t+=c[r<<2&63],t+=c[64]):l===1&&(t+=c[r>>2&63],t+=c[r<<4&63],t+=c[64],t+=c[64]),t}function JO(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var eR=new rn("tag:yaml.org,2002:binary",{kind:"scalar",resolve:QO,construct:ZO,predicate:JO,represent:WO}),tR=Object.prototype.hasOwnProperty,nR=Object.prototype.toString;function rR(e){if(e===null)return!0;var t=[],r,i,l,s,c,f=e;for(r=0,i=f.length;r<i;r+=1){if(l=f[r],c=!1,nR.call(l)!=="[object Object]")return!1;for(s in l)if(tR.call(l,s))if(!c)c=!0;else return!1;if(!c)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function aR(e){return e!==null?e:[]}var iR=new rn("tag:yaml.org,2002:omap",{kind:"sequence",resolve:rR,construct:aR}),lR=Object.prototype.toString;function oR(e){if(e===null)return!0;var t,r,i,l,s,c=e;for(s=new Array(c.length),t=0,r=c.length;t<r;t+=1){if(i=c[t],lR.call(i)!=="[object Object]"||(l=Object.keys(i),l.length!==1))return!1;s[t]=[l[0],i[l[0]]]}return!0}function sR(e){if(e===null)return[];var t,r,i,l,s,c=e;for(s=new Array(c.length),t=0,r=c.length;t<r;t+=1)i=c[t],l=Object.keys(i),s[t]=[l[0],i[l[0]]];return s}var uR=new rn("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:oR,construct:sR}),cR=Object.prototype.hasOwnProperty;function fR(e){if(e===null)return!0;var t,r=e;for(t in r)if(cR.call(r,t)&&r[t]!==null)return!1;return!0}function dR(e){return e!==null?e:{}}var hR=new rn("tag:yaml.org,2002:set",{kind:"mapping",resolve:fR,construct:dR}),mR=YO.extend({implicit:[XO,KO],explicit:[eR,iR,uR,hR]}),ui=Object.prototype.hasOwnProperty,Wu=1,v8=2,y8=3,Ju=4,k1=1,pR=2,l6=3,gR=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,vR=/[\x85\u2028\u2029]/,yR=/[,\[\]\{\}]/,b8=/^(?:!|!!|![a-z\-]+!)$/i,x8=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function o6(e){return Object.prototype.toString.call(e)}function zr(e){return e===10||e===13}function _i(e){return e===9||e===32}function Tn(e){return e===9||e===32||e===10||e===13}function ql(e){return e===44||e===91||e===93||e===123||e===125}function bR(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function xR(e){return e===120?2:e===117?4:e===85?8:0}function wR(e){return 48<=e&&e<=57?e-48:-1}function s6(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
461
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function SR(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function w8(e,t,r){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}var S8=new Array(256),A8=new Array(256);for(var Hl=0;Hl<256;Hl++)S8[Hl]=s6(Hl)?1:0,A8[Hl]=s6(Hl);function AR(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||mR,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function M8(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=uO(r),new oa(t,r)}function Ne(e,t){throw M8(e,t)}function ec(e,t){e.onWarning&&e.onWarning.call(null,M8(e,t))}var u6={YAML:function(t,r,i){var l,s,c;t.version!==null&&Ne(t,"duplication of %YAML directive"),i.length!==1&&Ne(t,"YAML directive accepts exactly one argument"),l=/^([0-9]+)\.([0-9]+)$/.exec(i[0]),l===null&&Ne(t,"ill-formed argument of the YAML directive"),s=parseInt(l[1],10),c=parseInt(l[2],10),s!==1&&Ne(t,"unacceptable YAML version of the document"),t.version=i[0],t.checkLineBreaks=c<2,c!==1&&c!==2&&ec(t,"unsupported YAML version of the document")},TAG:function(t,r,i){var l,s;i.length!==2&&Ne(t,"TAG directive accepts exactly two arguments"),l=i[0],s=i[1],b8.test(l)||Ne(t,"ill-formed tag handle (first argument) of the TAG directive"),ui.call(t.tagMap,l)&&Ne(t,'there is a previously declared suffix for "'+l+'" tag handle'),x8.test(s)||Ne(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{Ne(t,"tag prefix is malformed: "+s)}t.tagMap[l]=s}};function ei(e,t,r,i){var l,s,c,f;if(t<r){if(f=e.input.slice(t,r),i)for(l=0,s=f.length;l<s;l+=1)c=f.charCodeAt(l),c===9||32<=c&&c<=1114111||Ne(e,"expected valid JSON character");else gR.test(f)&&Ne(e,"the stream contains non-printable characters");e.result+=f}}function c6(e,t,r,i){var l,s,c,f;for(fn.isObject(r)||Ne(e,"cannot merge mappings; the provided source object is unacceptable"),l=Object.keys(r),c=0,f=l.length;c<f;c+=1)s=l[c],ui.call(t,s)||(w8(t,s,r[s]),i[s]=!0)}function Ul(e,t,r,i,l,s,c,f,d){var h,g;if(Array.isArray(l))for(l=Array.prototype.slice.call(l),h=0,g=l.length;h<g;h+=1)Array.isArray(l[h])&&Ne(e,"nested arrays are not supported inside keys"),typeof l=="object"&&o6(l[h])==="[object Object]"&&(l[h]="[object Object]");if(typeof l=="object"&&o6(l)==="[object Object]"&&(l="[object Object]"),l=String(l),t===null&&(t={}),i==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(h=0,g=s.length;h<g;h+=1)c6(e,t,s[h],r);else c6(e,t,s,r);else!e.json&&!ui.call(r,l)&&ui.call(t,l)&&(e.line=c||e.line,e.lineStart=f||e.lineStart,e.position=d||e.position,Ne(e,"duplicated mapping key")),w8(t,l,s),delete r[l];return t}function lm(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):Ne(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function _t(e,t,r){for(var i=0,l=e.input.charCodeAt(e.position);l!==0;){for(;_i(l);)l===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),l=e.input.charCodeAt(++e.position);if(t&&l===35)do l=e.input.charCodeAt(++e.position);while(l!==10&&l!==13&&l!==0);if(zr(l))for(lm(e),l=e.input.charCodeAt(e.position),i++,e.lineIndent=0;l===32;)e.lineIndent++,l=e.input.charCodeAt(++e.position);else break}return r!==-1&&i!==0&&e.lineIndent<r&&ec(e,"deficient indentation"),i}function Mc(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||Tn(r)))}function om(e,t){t===1?e.result+=" ":t>1&&(e.result+=fn.repeat(`
462
+ `,t-1))}function MR(e,t,r){var i,l,s,c,f,d,h,g,v=e.kind,b=e.result,w;if(w=e.input.charCodeAt(e.position),Tn(w)||ql(w)||w===35||w===38||w===42||w===33||w===124||w===62||w===39||w===34||w===37||w===64||w===96||(w===63||w===45)&&(l=e.input.charCodeAt(e.position+1),Tn(l)||r&&ql(l)))return!1;for(e.kind="scalar",e.result="",s=c=e.position,f=!1;w!==0;){if(w===58){if(l=e.input.charCodeAt(e.position+1),Tn(l)||r&&ql(l))break}else if(w===35){if(i=e.input.charCodeAt(e.position-1),Tn(i))break}else{if(e.position===e.lineStart&&Mc(e)||r&&ql(w))break;if(zr(w))if(d=e.line,h=e.lineStart,g=e.lineIndent,_t(e,!1,-1),e.lineIndent>=t){f=!0,w=e.input.charCodeAt(e.position);continue}else{e.position=c,e.line=d,e.lineStart=h,e.lineIndent=g;break}}f&&(ei(e,s,c,!1),om(e,e.line-d),s=c=e.position,f=!1),_i(w)||(c=e.position+1),w=e.input.charCodeAt(++e.position)}return ei(e,s,c,!1),e.result?!0:(e.kind=v,e.result=b,!1)}function ER(e,t){var r,i,l;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,i=l=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(ei(e,i,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)i=e.position,e.position++,l=e.position;else return!0;else zr(r)?(ei(e,i,l,!0),om(e,_t(e,!1,t)),i=l=e.position):e.position===e.lineStart&&Mc(e)?Ne(e,"unexpected end of the document within a single quoted scalar"):(e.position++,l=e.position);Ne(e,"unexpected end of the stream within a single quoted scalar")}function TR(e,t){var r,i,l,s,c,f;if(f=e.input.charCodeAt(e.position),f!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(f=e.input.charCodeAt(e.position))!==0;){if(f===34)return ei(e,r,e.position,!0),e.position++,!0;if(f===92){if(ei(e,r,e.position,!0),f=e.input.charCodeAt(++e.position),zr(f))_t(e,!1,t);else if(f<256&&S8[f])e.result+=A8[f],e.position++;else if((c=xR(f))>0){for(l=c,s=0;l>0;l--)f=e.input.charCodeAt(++e.position),(c=bR(f))>=0?s=(s<<4)+c:Ne(e,"expected hexadecimal character");e.result+=SR(s),e.position++}else Ne(e,"unknown escape sequence");r=i=e.position}else zr(f)?(ei(e,r,i,!0),om(e,_t(e,!1,t)),r=i=e.position):e.position===e.lineStart&&Mc(e)?Ne(e,"unexpected end of the document within a double quoted scalar"):(e.position++,i=e.position)}Ne(e,"unexpected end of the stream within a double quoted scalar")}function CR(e,t){var r=!0,i,l,s,c=e.tag,f,d=e.anchor,h,g,v,b,w,E=Object.create(null),A,T,N,O;if(O=e.input.charCodeAt(e.position),O===91)g=93,w=!1,f=[];else if(O===123)g=125,w=!0,f={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=f),O=e.input.charCodeAt(++e.position);O!==0;){if(_t(e,!0,t),O=e.input.charCodeAt(e.position),O===g)return e.position++,e.tag=c,e.anchor=d,e.kind=w?"mapping":"sequence",e.result=f,!0;r?O===44&&Ne(e,"expected the node content, but found ','"):Ne(e,"missed comma between flow collection entries"),T=A=N=null,v=b=!1,O===63&&(h=e.input.charCodeAt(e.position+1),Tn(h)&&(v=b=!0,e.position++,_t(e,!0,t))),i=e.line,l=e.lineStart,s=e.position,Xl(e,t,Wu,!1,!0),T=e.tag,A=e.result,_t(e,!0,t),O=e.input.charCodeAt(e.position),(b||e.line===i)&&O===58&&(v=!0,O=e.input.charCodeAt(++e.position),_t(e,!0,t),Xl(e,t,Wu,!1,!0),N=e.result),w?Ul(e,f,E,T,A,N,i,l,s):v?f.push(Ul(e,null,E,T,A,N,i,l,s)):f.push(A),_t(e,!0,t),O=e.input.charCodeAt(e.position),O===44?(r=!0,O=e.input.charCodeAt(++e.position)):r=!1}Ne(e,"unexpected end of the stream within a flow collection")}function kR(e,t){var r,i,l=k1,s=!1,c=!1,f=t,d=0,h=!1,g,v;if(v=e.input.charCodeAt(e.position),v===124)i=!1;else if(v===62)i=!0;else return!1;for(e.kind="scalar",e.result="";v!==0;)if(v=e.input.charCodeAt(++e.position),v===43||v===45)k1===l?l=v===43?l6:pR:Ne(e,"repeat of a chomping mode identifier");else if((g=wR(v))>=0)g===0?Ne(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):c?Ne(e,"repeat of an indentation width identifier"):(f=t+g-1,c=!0);else break;if(_i(v)){do v=e.input.charCodeAt(++e.position);while(_i(v));if(v===35)do v=e.input.charCodeAt(++e.position);while(!zr(v)&&v!==0)}for(;v!==0;){for(lm(e),e.lineIndent=0,v=e.input.charCodeAt(e.position);(!c||e.lineIndent<f)&&v===32;)e.lineIndent++,v=e.input.charCodeAt(++e.position);if(!c&&e.lineIndent>f&&(f=e.lineIndent),zr(v)){d++;continue}if(e.lineIndent<f){l===l6?e.result+=fn.repeat(`
463
+ `,s?1+d:d):l===k1&&s&&(e.result+=`
464
+ `);break}for(i?_i(v)?(h=!0,e.result+=fn.repeat(`
465
+ `,s?1+d:d)):h?(h=!1,e.result+=fn.repeat(`
466
+ `,d+1)):d===0?s&&(e.result+=" "):e.result+=fn.repeat(`
467
+ `,d):e.result+=fn.repeat(`
468
+ `,s?1+d:d),s=!0,c=!0,d=0,r=e.position;!zr(v)&&v!==0;)v=e.input.charCodeAt(++e.position);ei(e,r,e.position,!1)}return!0}function f6(e,t){var r,i=e.tag,l=e.anchor,s=[],c,f=!1,d;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),d=e.input.charCodeAt(e.position);d!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Ne(e,"tab characters must not be used in indentation")),!(d!==45||(c=e.input.charCodeAt(e.position+1),!Tn(c))));){if(f=!0,e.position++,_t(e,!0,-1)&&e.lineIndent<=t){s.push(null),d=e.input.charCodeAt(e.position);continue}if(r=e.line,Xl(e,t,y8,!1,!0),s.push(e.result),_t(e,!0,-1),d=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&d!==0)Ne(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return f?(e.tag=i,e.anchor=l,e.kind="sequence",e.result=s,!0):!1}function NR(e,t,r){var i,l,s,c,f,d,h=e.tag,g=e.anchor,v={},b=Object.create(null),w=null,E=null,A=null,T=!1,N=!1,O;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=v),O=e.input.charCodeAt(e.position);O!==0;){if(!T&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Ne(e,"tab characters must not be used in indentation")),i=e.input.charCodeAt(e.position+1),s=e.line,(O===63||O===58)&&Tn(i))O===63?(T&&(Ul(e,v,b,w,E,null,c,f,d),w=E=A=null),N=!0,T=!0,l=!0):T?(T=!1,l=!0):Ne(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,O=i;else{if(c=e.line,f=e.lineStart,d=e.position,!Xl(e,r,v8,!1,!0))break;if(e.line===s){for(O=e.input.charCodeAt(e.position);_i(O);)O=e.input.charCodeAt(++e.position);if(O===58)O=e.input.charCodeAt(++e.position),Tn(O)||Ne(e,"a whitespace character is expected after the key-value separator within a block mapping"),T&&(Ul(e,v,b,w,E,null,c,f,d),w=E=A=null),N=!0,T=!1,l=!1,w=e.tag,E=e.result;else if(N)Ne(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=h,e.anchor=g,!0}else if(N)Ne(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=h,e.anchor=g,!0}if((e.line===s||e.lineIndent>t)&&(T&&(c=e.line,f=e.lineStart,d=e.position),Xl(e,t,Ju,!0,l)&&(T?E=e.result:A=e.result),T||(Ul(e,v,b,w,E,A,c,f,d),w=E=A=null),_t(e,!0,-1),O=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&O!==0)Ne(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return T&&Ul(e,v,b,w,E,null,c,f,d),N&&(e.tag=h,e.anchor=g,e.kind="mapping",e.result=v),N}function zR(e){var t,r=!1,i=!1,l,s,c;if(c=e.input.charCodeAt(e.position),c!==33)return!1;if(e.tag!==null&&Ne(e,"duplication of a tag property"),c=e.input.charCodeAt(++e.position),c===60?(r=!0,c=e.input.charCodeAt(++e.position)):c===33?(i=!0,l="!!",c=e.input.charCodeAt(++e.position)):l="!",t=e.position,r){do c=e.input.charCodeAt(++e.position);while(c!==0&&c!==62);e.position<e.length?(s=e.input.slice(t,e.position),c=e.input.charCodeAt(++e.position)):Ne(e,"unexpected end of the stream within a verbatim tag")}else{for(;c!==0&&!Tn(c);)c===33&&(i?Ne(e,"tag suffix cannot contain exclamation marks"):(l=e.input.slice(t-1,e.position+1),b8.test(l)||Ne(e,"named tag handle cannot contain such characters"),i=!0,t=e.position+1)),c=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),yR.test(s)&&Ne(e,"tag suffix cannot contain flow indicator characters")}s&&!x8.test(s)&&Ne(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{Ne(e,"tag name is malformed: "+s)}return r?e.tag=s:ui.call(e.tagMap,l)?e.tag=e.tagMap[l]+s:l==="!"?e.tag="!"+s:l==="!!"?e.tag="tag:yaml.org,2002:"+s:Ne(e,'undeclared tag handle "'+l+'"'),!0}function DR(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&Ne(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Tn(r)&&!ql(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Ne(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function OR(e){var t,r,i;if(i=e.input.charCodeAt(e.position),i!==42)return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;i!==0&&!Tn(i)&&!ql(i);)i=e.input.charCodeAt(++e.position);return e.position===t&&Ne(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),ui.call(e.anchorMap,r)||Ne(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],_t(e,!0,-1),!0}function Xl(e,t,r,i,l){var s,c,f,d=1,h=!1,g=!1,v,b,w,E,A,T;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=c=f=Ju===r||y8===r,i&&_t(e,!0,-1)&&(h=!0,e.lineIndent>t?d=1:e.lineIndent===t?d=0:e.lineIndent<t&&(d=-1)),d===1)for(;zR(e)||DR(e);)_t(e,!0,-1)?(h=!0,f=s,e.lineIndent>t?d=1:e.lineIndent===t?d=0:e.lineIndent<t&&(d=-1)):f=!1;if(f&&(f=h||l),(d===1||Ju===r)&&(Wu===r||v8===r?A=t:A=t+1,T=e.position-e.lineStart,d===1?f&&(f6(e,T)||NR(e,T,A))||CR(e,A)?g=!0:(c&&kR(e,A)||ER(e,A)||TR(e,A)?g=!0:OR(e)?(g=!0,(e.tag!==null||e.anchor!==null)&&Ne(e,"alias node should not have any properties")):MR(e,A,Wu===r)&&(g=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):d===0&&(g=f&&f6(e,T))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Ne(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),v=0,b=e.implicitTypes.length;v<b;v+=1)if(E=e.implicitTypes[v],E.resolve(e.result)){e.result=E.construct(e.result),e.tag=E.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(ui.call(e.typeMap[e.kind||"fallback"],e.tag))E=e.typeMap[e.kind||"fallback"][e.tag];else for(E=null,w=e.typeMap.multi[e.kind||"fallback"],v=0,b=w.length;v<b;v+=1)if(e.tag.slice(0,w[v].tag.length)===w[v].tag){E=w[v];break}E||Ne(e,"unknown tag !<"+e.tag+">"),e.result!==null&&E.kind!==e.kind&&Ne(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+E.kind+'", not "'+e.kind+'"'),E.resolve(e.result,e.tag)?(e.result=E.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Ne(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||g}function RR(e){var t=e.position,r,i,l,s=!1,c;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(c=e.input.charCodeAt(e.position))!==0&&(_t(e,!0,-1),c=e.input.charCodeAt(e.position),!(e.lineIndent>0||c!==37));){for(s=!0,c=e.input.charCodeAt(++e.position),r=e.position;c!==0&&!Tn(c);)c=e.input.charCodeAt(++e.position);for(i=e.input.slice(r,e.position),l=[],i.length<1&&Ne(e,"directive name must not be less than one character in length");c!==0;){for(;_i(c);)c=e.input.charCodeAt(++e.position);if(c===35){do c=e.input.charCodeAt(++e.position);while(c!==0&&!zr(c));break}if(zr(c))break;for(r=e.position;c!==0&&!Tn(c);)c=e.input.charCodeAt(++e.position);l.push(e.input.slice(r,e.position))}c!==0&&lm(e),ui.call(u6,i)?u6[i](e,i,l):ec(e,'unknown document directive "'+i+'"')}if(_t(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,_t(e,!0,-1)):s&&Ne(e,"directives end mark is expected"),Xl(e,e.lineIndent-1,Ju,!1,!0),_t(e,!0,-1),e.checkLineBreaks&&vR.test(e.input.slice(t,e.position))&&ec(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Mc(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,_t(e,!0,-1));return}if(e.position<e.length-1)Ne(e,"end of the stream or a document separator is expected");else return}function LR(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
469
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new AR(e,t),i=e.indexOf("\0");for(i!==-1&&(r.position=i,Ne(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)RR(r);return r.documents}function jR(e,t){var r=LR(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new oa("expected a single document in the stream, but found more")}}var BR=jR,_R={load:BR},HR=_R.load;function E8(e,t){if(!t||t===".")return e;const r=t.startsWith(".")?t.slice(1):t;if(!r)return e;const i=[];let l="",s=0;for(;s<r.length;){const f=r[s];if(f===".")l&&(i.push({type:"key",value:l}),l=""),s++;else if(f==="["){l&&(i.push({type:"key",value:l}),l="");const d=r.indexOf("]",s);if(d===-1)return;const h=r.slice(s+1,d);if(h==="")i.push({type:"all",value:0});else{const g=parseInt(h,10);if(isNaN(g))return;i.push({type:"index",value:g})}s=d+1}else l+=f,s++}l&&i.push({type:"key",value:l});let c=e;for(const f of i){if(c==null)return;if(f.type==="key"){if(typeof c!="object"||Array.isArray(c))return;c=c[f.value]}else if(f.type==="index"){if(!Array.isArray(c))return;c=c[f.value]}else if(f.type==="all"&&!Array.isArray(c))return}return c}function Cn(e){return e===null?"null":Array.isArray(e)?"array":typeof e=="object"?"object":typeof e=="boolean"?"boolean":typeof e=="number"?"number":"string"}function qR(e){if(Math.abs(e)<1e-4&&e!==0||Math.abs(e)>=1e4)return e.toExponential(1);if(Number.isInteger(e))return e.toString();const t=e.toString();return t.length>6?e.toPrecision(4):t}function To(e){return e===null?"null":typeof e=="boolean"?e?"true":"false":typeof e=="number"?qR(e):Array.isArray(e)?`[${e.length}]`:typeof e=="object"?"{...}":String(e)}function T8(e,t){if(t.endsWith(".yaml")||t.endsWith(".yml"))try{return HR(e)}catch{return null}if(t.endsWith(".json"))try{return JSON.parse(e)}catch{return null}return null}function UR(e){const r=(e.startsWith(".")?e.slice(1):e).split(".");return r[r.length-1].replace(/\[\d+\]/g,"")}function GR(e,t){const r={};for(const i of t){const l=E8(e,i);if(l===void 0)continue;const s=i.startsWith(".")?i.slice(1):i;let c;if(s.includes("["))c=s.replace(/\[\]/g,"").replace(/\[(\d+)\]/g,"_$1");else{const f=s.split(".");c=f[f.length-1]}r[c]=l}return r}function C8({entries:e}){return e.length===0?null:k.jsx("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(180px,1fr))] gap-x-6 gap-y-px",children:e.map(([t,r])=>{const i=Cn(r);return k.jsxs("div",{className:"flex items-baseline justify-between gap-2 py-1 group hover:bg-muted/30 -mx-1.5 px-1.5 rounded-sm transition-colors",children:[k.jsx("span",{className:"text-[11px] text-muted-foreground font-mono truncate",children:t}),k.jsx("span",{className:ct("text-[11px] font-mono tabular-nums font-medium shrink-0",i==="number"&&"text-foreground",i==="string"&&"text-amber-600 dark:text-amber-500",i==="boolean"&&"text-cyan-600 dark:text-cyan-500",i==="null"&&"text-muted-foreground/50"),children:i==="string"?`"${To(r)}"`:To(r)})]},t)})})}function tc({name:e,data:t,depth:r=0}){const[i,l]=M.useState(!1),s=Object.entries(t),c=s.filter(([,d])=>{const h=Cn(d);return h!=="object"&&h!=="array"}),f=s.filter(([,d])=>{const h=Cn(d);return h==="object"||h==="array"});return k.jsxs("div",{className:ct(r===0&&"mb-4 last:mb-0"),children:[k.jsxs("button",{onClick:()=>l(!i),className:ct("flex items-center gap-2 w-full text-left group mb-1.5",r===0&&"pb-1 border-b border-border/50"),children:[k.jsx("span",{className:ct("text-[10px] text-muted-foreground/60 transition-transform duration-150 select-none",i&&"-rotate-90"),children:i?"+":"-"}),k.jsx("span",{className:ct("font-mono text-[11px] uppercase tracking-widest",r===0?"text-foreground/80 font-semibold":"text-muted-foreground/70"),children:e.replace(/_/g," ")}),k.jsx("span",{className:"text-[9px] font-mono text-muted-foreground/40 ml-auto",children:s.length})]}),!i&&k.jsxs("div",{className:ct(r>0&&"pl-3 ml-1 border-l border-border/40"),children:[c.length>0&&k.jsx("div",{className:ct(f.length>0&&"mb-3"),children:k.jsx(C8,{entries:c})}),f.map(([d,h])=>{if(Cn(h)==="array"){const v=h;return k.jsxs("div",{className:"mb-2 last:mb-0",children:[k.jsxs("div",{className:"text-[10px] font-mono text-muted-foreground/60 uppercase tracking-wider mb-1",children:[d," [",v.length,"]"]}),k.jsx("div",{className:"pl-3 ml-1 border-l border-border/40",children:v.map((b,w)=>Cn(b)==="object"?k.jsx(tc,{name:`${w}`,data:b,depth:r+1},w):k.jsxs("div",{className:"text-[11px] font-mono text-foreground py-0.5",children:["[",w,"] ",To(b)]},w))})]},d)}return k.jsx(tc,{name:d,data:h,depth:r+1},d)})]})]})}function Co(e,t=0){const r=Object.entries(e);let i=0;for(const[,l]of r){const s=Cn(l);if(s==="object")i+=28+Co(l,t+1);else if(s==="array"){const c=l;i+=28;for(const f of c)Cn(f)==="object"?i+=24+Co(f,t+1):i+=24}else i+=24}return i}function FR(e,t){if(t<=1)return[e];const r=e.map(([,d])=>{const h=Cn(d);if(h==="object")return 28+Co(d);if(h==="array"){const g=d;let v=28;for(const b of g)Cn(b)==="object"?v+=24+Co(b):v+=24;return v}return 24}),l=r.reduce((d,h)=>d+h,0)/t,s=[];let c=[],f=0;for(let d=0;d<e.length;d++){const h=e[d],g=r[d];f>=l&&s.length<t-1&&c.length>0&&(s.push(c),c=[],f=0),c.push(h),f+=g}return c.length>0&&s.push(c),s}function YR({path:e,keys:t}){const{content:r,loading:i,error:l}=L6(e),s=M.useMemo(()=>{if(!r)return null;const A=T8(r,e);return A?t&&t.length>0?GR(A,t):A:null},[r,e,t]);if(i)return k.jsx("div",{className:"my-6 p-4 rounded border border-border/50 bg-card/30",children:k.jsxs("div",{className:"flex items-center gap-2 text-muted-foreground/60",children:[k.jsx("div",{className:"w-3 h-3 border border-current border-t-transparent rounded-full animate-spin"}),k.jsx("span",{className:"text-[11px] font-mono",children:"loading parameters..."})]})});if(l)return k.jsx("div",{className:"my-6 p-3 rounded border border-destructive/30 bg-destructive/5",children:k.jsx("p",{className:"text-[11px] font-mono text-destructive",children:l})});if(!s)return k.jsx("div",{className:"my-6 p-3 rounded border border-border/50 bg-card/30",children:k.jsx("p",{className:"text-[11px] font-mono text-muted-foreground",children:"unable to parse config"})});const c=Object.entries(s),f=c.filter(([,A])=>{const T=Cn(A);return T!=="object"&&T!=="array"}),d=c.filter(([,A])=>{const T=Cn(A);return T==="object"||T==="array"}),h=Co(s),g=500,v=h>g?Math.min(Math.ceil(h/g),3):1,b=v>1&&d.length>1,w=b?FR(d,v):[d];e.split("/").pop();const E=([A,T])=>{if(Cn(T)==="array"){const O=T;return k.jsxs("div",{className:"mb-4 last:mb-0",children:[k.jsxs("div",{className:"text-[11px] font-mono text-foreground/80 uppercase tracking-widest font-semibold mb-1.5 pb-1 border-b border-border/50",children:[A.replace(/_/g," ")," [",O.length,"]"]}),k.jsx("div",{className:"pl-3 ml-1 border-l border-border/40",children:O.map((R,H)=>Cn(R)==="object"?k.jsx(tc,{name:`${H}`,data:R,depth:1},H):k.jsxs("div",{className:"text-[11px] font-mono text-foreground py-0.5",children:["[",H,"] ",To(R)]},H))})]},A)}return k.jsx(tc,{name:A,data:T,depth:0},A)};return k.jsx("div",{className:"my-6 not-prose",children:k.jsxs("div",{className:"rounded border border-border/60 bg-card/20 p-3 overflow-hidden",children:[f.length>0&&k.jsx("div",{className:ct(d.length>0&&"mb-4 pb-3 border-b border-border/30"),children:k.jsx(C8,{entries:f})}),b?k.jsx("div",{className:"grid gap-6",style:{gridTemplateColumns:`repeat(${w.length}, 1fr)`},children:w.map((A,T)=>k.jsx("div",{className:ct(T>0&&"border-l border-border/30 pl-6"),children:A.map(E)},T))}):d.map(E)]})})}function PR({path:e,keyPath:t,label:r,unit:i}){const{content:l,loading:s,error:c}=L6(e),{value:f,displayLabel:d}=M.useMemo(()=>{if(!l)return{value:void 0,displayLabel:""};const v=T8(l,e);if(!v)return{value:void 0,displayLabel:""};const b=E8(v,t),w=r||UR(t);return{value:b,displayLabel:w}},[l,e,t,r]);if(s)return k.jsx("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded-md bg-muted/50 border border-border/50",children:k.jsx("span",{className:"w-2 h-2 border border-muted-foreground/40 border-t-transparent rounded-full animate-spin"})});if(c||f===void 0)return k.jsx("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded-md bg-destructive/10 border border-destructive/30",children:k.jsx("span",{className:"text-[10px] font-mono text-destructive",children:"—"})});const h=Cn(f),g=To(f);return k.jsxs("span",{className:"inline-flex items-center gap-1.5 px-2 py-0.5 rounded-md font-mono text-[11px]",children:[k.jsx("span",{className:"text-muted-foreground",children:d}),k.jsx("span",{className:"text-muted-foreground/40",children:"="}),k.jsx("span",{className:ct("font-medium tabular-nums",h==="number"&&"text-foreground",h==="string"&&"text-amber-600 dark:text-amber-500",h==="boolean"&&"text-cyan-600 dark:text-cyan-500",h==="null"&&"text-muted-foreground/50",h==="array"&&"text-purple-600 dark:text-purple-400",h==="object"&&"text-purple-600 dark:text-purple-400"),children:h==="string"?`"${g}"`:g}),i&&k.jsx("span",{className:"text-muted-foreground/60",children:i})]})}function io(e){return(e==null?void 0:e.toString().toLowerCase().replace(/[^a-z0-9\s-]/g,"").replace(/\s+/g,"-"))??""}const k8={Gallery:QD,ParameterTable:YR,ParameterBadge:PR,h1:e=>{const t=io(e.children);return k.jsx("h1",{id:t,className:"text-2xl font-semibold tracking-tight mt-12 mb-4 first:mt-0",...e})},h2:e=>{const t=io(e.children);return k.jsx("h2",{id:t,className:"text-xl font-semibold tracking-tight mt-10 mb-3 pb-2 border-b border-border",...e})},h3:e=>{const t=io(e.children);return k.jsx("h3",{id:t,className:"text-lg font-medium tracking-tight mt-8 mb-2",...e})},h4:e=>{const t=io(e.children);return k.jsx("h4",{id:t,className:"text-base font-medium mt-6 mb-2",...e})},h5:e=>{const t=io(e.children);return k.jsx("h5",{id:t,className:"text-sm font-medium mt-4 mb-1",...e})},pre:e=>k.jsx("pre",{className:"not-prose w-full overflow-x-auto p-4 text-sm bg-muted/50 border border-border rounded-md font-mono my-6",...e}),code:e=>{var r;return(r=e.className)!=null&&r.includes("language-")?k.jsx("code",{...e}):k.jsx("code",{className:"font-mono text-[0.85em] bg-muted px-1.5 py-0.5 rounded text-primary",...e})},blockquote:e=>k.jsx("blockquote",{className:"border-l-2 border-primary pl-4 my-6 text-muted-foreground",...e}),ul:e=>k.jsx("ul",{className:"my-4 ml-6 list-disc marker:text-muted-foreground",...e}),ol:e=>k.jsx("ol",{className:"my-4 ml-6 list-decimal marker:text-muted-foreground",...e}),li:e=>k.jsx("li",{className:"mt-1.5",...e}),a:e=>k.jsx("a",{className:"text-primary hover:underline underline-offset-2",...e}),table:e=>k.jsx("div",{className:"not-prose my-6 overflow-x-auto border border-border rounded-md",children:k.jsx("table",{className:"w-full text-sm border-collapse",...e})}),thead:e=>k.jsx("thead",{className:"bg-muted/50",...e}),tbody:e=>k.jsx("tbody",{...e}),tr:e=>k.jsx("tr",{className:"border-b border-border last:border-b-0",...e}),th:e=>k.jsx("th",{className:"px-4 py-3 text-left text-xs font-medium text-muted-foreground uppercase tracking-wider",...e}),td:e=>k.jsx("td",{className:"px-4 py-3 align-top",...e}),hr:e=>k.jsx("hr",{className:"my-8 border-t border-border",...e}),p:e=>k.jsx("p",{className:"leading-relaxed mb-4 last:mb-0",...e}),strong:e=>k.jsx("strong",{className:"font-semibold",...e}),em:e=>k.jsx("em",{className:"italic",...e})};function VR(){const{path:e="."}=ih(),t=`${e}/README.mdx`,{directory:r,loading:i}=fh(t),{Content:l,frontmatter:s,loading:c,error:f}=YC(e),d=j6();let h=null;return r&&(h=R6(r)),i||c?k.jsx(dh,{}):f?k.jsx("main",{className:"min-h-screen bg-background container mx-auto max-w-4xl py-12",children:k.jsx("p",{className:"text-center text-red-600",children:f.message})}):k.jsxs("div",{className:"flex min-h-screen flex-col bg-background noise-overlay",children:[k.jsx("title",{children:s==null?void 0:s.title}),k.jsx(mh,{}),k.jsx(zh,{}),k.jsxs("main",{className:"flex-1 mx-auto w-full max-w-[var(--content-width)] px-[var(--page-padding)]",children:[d&&k.jsx("div",{className:"sticky top-0 z-50 px-[var(--page-padding)] py-2 bg-red-500 text-primary-foreground font-mono text-xs text-center tracking-wide",children:k.jsxs("span",{className:"inline-flex items-center gap-3",children:[k.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-current animate-pulse"}),k.jsx("span",{className:"uppercase tracking-widest",children:"simulation running"}),k.jsx("span",{className:"text-primary-foreground/60",children:"Page will auto-refresh on completion"})]})}),l&&k.jsxs("article",{className:"my-24 prose dark:prose-invert prose-headings:tracking-tight prose-p:leading-relaxed prose-a:text-primary prose-a:no-underline hover:prose-a:underline max-w-[var(--prose-width)] animate-fade-in",children:[k.jsx(Xv,{title:s==null?void 0:s.title,date:s==null?void 0:s.date,description:s==null?void 0:s.description,slides:h}),k.jsx(l,{components:k8})]})]})]})}function IR({Content:e,frontmatter:t}){return{slides:M.useMemo(()=>{if(!e)return[];const l={...k8,hr:()=>k.jsx("hr",{"data-slide-break":"true"})};return XR(k.jsx(e,{components:l}))},[e]),frontmatter:t}}function XR(e){var i;const t=[[]];function r(l){var s;if(l){if(Array.isArray(l)){l.forEach(r);return}if(M.isValidElement(l)){if(l.type==="hr"||l.props&&l.props["data-slide-break"]==="true"){t.push([]);return}const c=l.type;if(typeof c=="function"&&c.name==="SlideBreak"){t.push([]);return}if((s=l.props)!=null&&s.children){const f=M.Children.toArray(l.props.children);f.some(h=>M.isValidElement(h)&&(h.type==="hr"||h.props&&h.props["data-slide-break"]==="true"))?f.forEach(h=>{M.isValidElement(h)&&(h.type==="hr"||h.props&&h.props["data-slide-break"]==="true")?t.push([]):t[t.length-1].push(h)}):t[t.length-1].push(l);return}}t[t.length-1].push(l)}}return M.isValidElement(e)&&((i=e.props)!=null&&i.children)?M.Children.toArray(e.props.children).forEach(r):r(e),t.filter(l=>l.length>0)}function $R({children:e}){return k.jsx("div",{className:"slide-content prose dark:prose-invert prose-headings:tracking-tight prose-p:leading-relaxed max-w-xl",children:e})}function KR(){const{path:e="."}=ih(),[t,r]=bx(),{Content:i,frontmatter:l,loading:s,error:c}=PC(e),{slides:f}=IR({Content:i,frontmatter:l}),d=f.length+1,h=Math.max(0,Math.min(parseInt(t.get("slide")||"0",10),d-1)),[g,v]=M.useState(h),b=M.useRef([]),w=M.useCallback(T=>{const N=Math.max(0,Math.min(T,d-1)),O=b.current[N];if(O){const R=O.getBoundingClientRect().top+window.scrollY;window.scrollTo({top:R,behavior:"smooth"})}},[d]),E=M.useCallback(()=>{w(g-1)},[g,w]),A=M.useCallback(()=>{w(g+1)},[g,w]);return M.useEffect(()=>{const T=N=>{N.key==="ArrowUp"||N.key==="k"?(N.preventDefault(),E()):(N.key==="ArrowDown"||N.key==="j")&&(N.preventDefault(),A())};return window.addEventListener("keydown",T),()=>window.removeEventListener("keydown",T)},[E,A]),M.useEffect(()=>{let T=null;const N=setTimeout(()=>{T=new IntersectionObserver(O=>{for(const R of O)if(R.isIntersecting){const H=b.current.findIndex(F=>F===R.target);H!==-1&&(v(H),r(H>0?{slide:String(H)}:{},{replace:!0}))}},{threshold:.5}),b.current.forEach(O=>{O&&T.observe(O)})},100);return()=>{clearTimeout(N),T==null||T.disconnect()}},[f.length,r]),s?k.jsx(dh,{}):c?k.jsx("main",{className:"min-h-screen bg-background container mx-auto max-w-4xl py-12",children:k.jsx("p",{className:"text-center text-red-600",children:c.message})}):f.length===0?k.jsx("div",{className:"flex items-center justify-center p-12 text-muted-foreground font-mono text-sm",children:'no slides found — use "---" to separate slides'}):k.jsxs("main",{className:"slides-container",children:[k.jsx("title",{children:l==null?void 0:l.title}),k.jsx(mh,{}),k.jsx(zh,{slideControls:{current:g,total:d,onPrevious:E,onNext:A}}),k.jsxs("div",{[Kv]:"true",children:[k.jsx("div",{ref:T=>{b.current[0]=T},className:"slide-page max-w-xl min-h-[50vh] sm:min-h-[70vh] md:min-h-screen flex items-center justify-center py-8 sm:py-12 md:py-16 px-4 mx-auto",children:k.jsx(Xv,{title:l==null?void 0:l.title,date:l==null?void 0:l.date,description:l==null?void 0:l.description})}),k.jsx("hr",{className:"print:hidden"}),f.map((T,N)=>k.jsxs("div",{children:[k.jsx("div",{ref:O=>{b.current[N+1]=O},className:"slide-page min-h-[50vh] sm:min-h-[70vh] md:min-h-screen flex items-center justify-center py-8 sm:py-12 md:py-16 px-4 mx-auto",children:k.jsx($R,{children:T})}),N<f.length-1&&k.jsx("hr",{className:"print:hidden"})]},N))]})]})}function QR(){return k.jsx(jx,{attribute:"class",defaultTheme:"system",enableSystem:!0,children:k.jsx(mx,{children:k.jsxs(Pb,{children:[k.jsx(Mu,{path:":path/SLIDES.mdx",element:k.jsx(KR,{})}),k.jsx(Mu,{path:":path/README.mdx",element:k.jsx(VR,{})}),k.jsx(Mu,{path:"/*",element:k.jsx(UC,{})})]})})})}W9.createRoot(document.getElementById("root")).render(k.jsx(M.StrictMode,{children:k.jsx(QR,{})}));export{Ka as R,k as j,M as r};