PageSourceSearch

https://jin.imajin.ai/_next/static/chunks/79740-32169317494e2b89.js

js imajin.ai collected 2026-10-05 14:38:01 UTC 697,590 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[79740],{1520:(e,t,n)=>{"use strict";function r(e){return e&&"object"==typeof e?"position"in e||"type"in e?l(e.position):"start"in e||"end"in e?l(e):"line"in e||"column"in e?i(e):"":""}function i(e){return o(e&&e.line)+":"+o(e&&e.column)}function l(e){return i(e&&e.start)+"-"+i(e&&e.end)}function o(e){return e&&"number"==typeof e?e:1}n.d(t,{L:()=>r})},2446:()=>{!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism)},3736:(e,t,n)=>{"use strict";n.d(t,{d:()=>i});let r={};function i(e,t){let n=t||r;return l(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function l(e,t,n){var r;if((r=e)&&"object"==typeof r){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return o(e.children,t,n)}return Array.isArray(e)?o(e,t,n):""}function o(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=l(e[i],t,n);return r.join("")}},4596:(e,t,n)=>{"use strict";n.d(t,{Qg:()=>o,bL:()=>s});var r=n(25118),i=n(11064),l=n(32846),o=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),a=r.forwardRef((e,t)=>(0,l.jsx)(i.sG.span,{...e,ref:t,style:{...o,...e.style}}));a.displayName="VisuallyHidden";var s=a},4686:(e,t,n)=>{"use strict";n.d(t,{BM:()=>a,CW:()=>r,Ee:()=>d,HP:()=>c,JQ:()=>o,Ny:()=>h,On:()=>f,cx:()=>l,es:()=>p,lV:()=>i,ok:()=>s,ol:()=>u});let r=g(/[A-Za-z]/),i=g(/[\dA-Za-z]/),l=g(/[#-'*+\--9=?A-Z^-~]/);function o(e){return null!==e&&(e<32||127===e)}let a=g(/\d/),s=g(/[\dA-Fa-f]/),u=g(/[!-/:-@[-`{-~]/);function c(e){return null!==e&&e<-2}function d(e){return null!==e&&(e<0||32===e)}function f(e){return -2===e||-1===e||32===e}let p=g(/\p{P}|\p{S}/u),h=g(/\s/);function g(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}},4853:()=>{Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01
1])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python},5449:(e,t,n)=>{"use strict";n.d(t,{Eq:()=>u});var r=new WeakMap,i=new WeakMap,l={},o=0,a=function(e){return e&&(e.host||a(e.parentNode))},s=function(e,t,n,s){var u=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=a(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});l[n]||(l[n]=new WeakMap);var c=l[n],d=[],f=new Set,p=new Set(u),h=function(e){!e||f.has(e)||(f.add(e),h(e.parentNode))};u.forEach(h);var g=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))g(e);else try{var t=e.getAttribute(s),l=null!==t&&"false"!==t,o=(r.get(e)||0)+1,a=(c.get(e)||0)+1;r.set(e,o),c.set(e,a),d.push(e),1===o&&l&&i.set(e,!0),1===a&&e.setAttribute(n,"true"),l||e.setAttribute(s,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return g(t),f.clear(),o++,function(){d.forEach(function(e){var t=r.get(e)-1,l=c.get(e)-1;r.set(e,t),c.set(e,l),t||(i.has(e)||e.removeAttribute(s),i.delete(e)),l||e.removeAttribute(n)}),--o||(r=new WeakMap,r=new WeakMap,i=new WeakMap,l={})}},u=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),s(r,i,n,"aria-hidden")):function(){return null}}},5865:(e,t,n)=>{"use strict";n.d(t,{C:()=>o});var r=n(25118),i=n(59439),l=n(48914),o=e=>{let{present:t,children:n}=e,o=function(e){var t,n;let[i,o]=r.useState(),s=r.useRef(null),u=r.useRef(e),c=r.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>{let r=n[e][t];return null!=r?r:e},t));return r.useEffect(()=>{let e=a(s.current);c.current="mounted"===d?e:"none"},[d]),(0,l.N)(()=>{let t=s.current,n=u.current;if(n!==e){let r=c.current,i=a(t);e?f("MOUNT"):"none"===i||(null==t?void 0:t.display)==="none"?f("UNMOUNT"):n&&r!==i?f("ANIMATION_OUT"):f("UNMOUNT"),u.current=e}},[e,f]),(0,l.N)(()=>{if(i){var e;let t,n=null!=(e=i.ownerDocument.defaultView)?e:window,r=e=>{let r=a(s.current).includes(CSS.escape(e.animationName));if(e.target===i&&r&&(f("ANIMATION_END"),!u.current)){let e=i.style.animationFillMode;i.style.animationFillMode="forwards",t=n.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=e)})}},l=e=>{e.target===i&&(c.current=a(s.current))};return i.addEventListener("animationstart",l),i.addEventListener("animationcancel",r),i.addEventListener("animationend",r),()=>{n.clearTimeout(t),i.removeEventListener("animationstart",l),i.removeEventListener("animationcancel",r),i.removeEventListener("animationend",r)}}f("ANIMATION_END")},[i,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{s.current=e?getComputedStyle(e):null,o(e)},[])}}(t),s="function"==typeof n?n({present:o.isPresent}):r.Children.only(n),u=(0,i.s)(o.ref,function(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,i=r&&"isReactWarning"in r&&r.isReactWarning;return i?e.ref:(i=(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get)&&"isReactWarning"in r&&r.isReactWarning)?e.props.ref:e.props.ref||e.ref}(s));return"function"==typeof n||o.isPresent?r.cloneElement(s,{ref:u}):null};function a(e){return(null==e?void 0:e.animationName)||"none"}o.displayName="Presence"},6165:(e,t,n)=>{"use strict";let r;n.d(t,{Mz:()=>eZ,i3:()=>eG,UC:()=>eq,bL:()=>e$,Bk:()=>eL});var i=n(25118);let l=["top","right","bottom","left"],o=Math.min,a=Math.max,s=Math.round,u=Math.floor,c=e=>({x:e,y:e}
1),d={left:"right",right:"left",bottom:"top",top:"bottom"};function f(e,t){return"function"==typeof e?e(t):e}function p(e){return e.split("-")[0]}function h(e){return e.split("-")[1]}function g(e){return"x"===e?"y":"x"}function m(e){return"y"===e?"height":"width"}function y(e){let t=e[0];return"t"===t||"b"===t?"y":"x"}function v(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}let x=["left","right"],b=["right","left"],_=["top","bottom"],C=["bottom","top"];function w(e){let t=p(e);return d[t]+e.slice(t.length)}function k(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function E(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function S(e,t,n){let r,{reference:i,floating:l}=e,o=y(t),a=g(y(t)),s=m(a),u=p(t),c="y"===o,d=i.x+i.width/2-l.width/2,f=i.y+i.height/2-l.height/2,v=i[s]/2-l[s]/2;switch(u){case"top":r={x:d,y:i.y-l.height};break;case"bottom":r={x:d,y:i.y+i.height};break;case"right":r={x:i.x+i.width,y:f};break;case"left":r={x:i.x-l.width,y:f};break;default:r={x:i.x,y:i.y}}switch(h(t)){case"start":r[a]-=v*(n&&c?-1:1);break;case"end":r[a]+=v*(n&&c?-1:1)}return r}async function T(e,t){var n;void 0===t&&(t={});let{x:r,y:i,platform:l,rects:o,elements:a,strategy:s}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=f(t,e),g=k(h),m=a[p?"floating"===d?"reference":"floating":d],y=E(await l.getClippingRect({element:null==(n=await (null==l.isElement?void 0:l.isElement(m)))||n?m:m.contextElement||await (null==l.getDocumentElement?void 0:l.getDocumentElement(a.floating)),boundary:u,rootBoundary:c,strategy:s})),v="floating"===d?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,x=await (null==l.getOffsetParent?void 0:l.getOffsetParent(a.floating)),b=await (null==l.isElement?void 0:l.isElement(x))&&await (null==l.getScale?void 0:l.getScale(x))||{x:1,y:1},_=E(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:x,strategy:s}):v);return{top:(y.top-_.top+g.top)/b.y,bottom:(_.bottom-y.bottom+g.bottom)/b.y,left:(y.left-_.left+g.left)/b.x,right:(_.right-y.right+g.right)/b.x}}let A=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:l=[],platform:o}=n,a=o.detectOverflow?o:{...o,detectOverflow:T},s=await (null==o.isRTL?void 0:o.isRTL(t)),u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:d}=S(u,r,s),f=r,p=0,h={};for(let n=0;n<l.length;n++){let g=l[n];if(!g)continue;let{name:m,fn:y}=g,{x:v,y:x,data:b,reset:_}=await y({x:c,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:h,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=v?v:c,d=null!=x?x:d,h[m]={...h[m],...b},_&&p<50&&(p++,"object"==typeof _&&(_.placement&&(f=_.placement),_.rects&&(u=!0===_.rects?await o.getElementRects({reference:e,floating:t,strategy:i}):_.rects),{x:c,y:d}=S(u,f,s)),n=-1)}return{x:c,y:d,placement:f,strategy:i,middlewareData:h}};function N(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function I(e){return l.some(t=>e[t]>=0)}let L=new Set(["left","top"]);async function P(e,t){let{placement:n,platform:r,elements:i}=e,l=await (null==r.isRTL?void 0:r.isRTL(i.floating)),o=p(n),a=h(n),s="y"===y(n),u=L.has(o)?-1:1,c=l&&s?-1:1,d=f(t,e),{mainAxis:g,crossAxis:m,alignmentAxis:v}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&"number"==typeof v&&(m="end"===a?-1*v:v),s?{x:m*c,y:g*u}:{x:g*u,y:m*c}}function F(){return"undefined"!=typeof window}function M(e){return D(e)?(e.nodeName||"").toLowerCase():"#document"}function O(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function R(e){var t;return null==(t=(D(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function D(e){return!!F()&&(e instanceof Node||e instanceof O(e).Node)}function V(e){return!!F()&&(e instanceof Element||e instanceof O(e).Element)}function H(e){return!!F()&&(e instanceof HTMLElement||e instanceof O(e).HTMLElement)}function B(e){return!!F()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof O(e).ShadowRoot)}function j(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=q(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==i&&"contents"!==i}function z(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}let J=/transform|translate|scale|rotate|perspective|filter/,U=/paint|layout|strict|content/,W=e=>!!e&&"none"!==e;function K(e){let t=V(e)?q(e):e;return W(t.transform)||W(t.translate)||W(t.scale)||W(t.rotate)||W(t.perspective)||!$()&&(W(t.backdropFilter)||W(t.filter))||J.test(t.willChange||"")||U.test(t.contain||"")}function $(){return null==r&&(r="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),r}function Z(e){return/^(html|body|#document)$/.test(M(e))}function q(e){return O(e).getComputedStyle(e)}function G(e){return V(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Y(e){if("html"===M(e))return e;let t=e.assignedSlot||e.parentNode||B(e)&&e.host||R(e);return B(t)?t.host:t}
1function X(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);let i=function e(t){let n=Y(t);return Z(n)?t.ownerDocument?t.ownerDocument.body:t.body:H(n)&&j(n)?n:e(n)}(e),l=i===(null==(r=e.ownerDocument)?void 0:r.body),o=O(i);if(!l)return t.concat(i,X(i,[],n));{let e=Q(o);return t.concat(o,o.visualViewport||[],j(i)?i:[],e&&n?X(e):[])}}function Q(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ee(e){let t=q(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=H(e),l=i?e.offsetWidth:n,o=i?e.offsetHeight:r,a=s(n)!==l||s(r)!==o;return a&&(n=l,r=o),{width:n,height:r,$:a}}function et(e){return V(e)?e:e.contextElement}function en(e){let t=et(e);if(!H(t))return c(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:l}=ee(t),o=(l?s(n.width):n.width)/r,a=(l?s(n.height):n.height)/i;return o&&Number.isFinite(o)||(o=1),a&&Number.isFinite(a)||(a=1),{x:o,y:a}}let er=c(0);function ei(e){let t=O(e);return $()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:er}function el(e,t,n,r){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let l=e.getBoundingClientRect(),o=et(e),a=c(1);t&&(r?V(r)&&(a=en(r)):a=en(e));let s=(void 0===(i=n)&&(i=!1),r&&(!i||r===O(o))&&i)?ei(o):c(0),u=(l.left+s.x)/a.x,d=(l.top+s.y)/a.y,f=l.width/a.x,p=l.height/a.y;if(o){let e=O(o),t=r&&V(r)?O(r):r,n=e,i=Q(n);for(;i&&r&&t!==n;){let e=en(i),t=i.getBoundingClientRect(),r=q(i),l=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;u*=e.x,d*=e.y,f*=e.x,p*=e.y,u+=l,d+=o,i=Q(n=O(i))}}return E({width:f,height:p,x:u,y:d})}function eo(e,t){let n=G(e).scrollLeft;return t?t.left+n:el(R(e)).left+n}function ea(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-eo(e,n),y:n.top+t.scrollTop}}
1function es(e,t,n){let r;if("viewport"===t)r=function(e,t){let n=O(e),r=R(e),i=n.visualViewport,l=r.clientWidth,o=r.clientHeight,a=0,s=0;if(i){l=i.width,o=i.height;let e=$();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,s=i.offsetTop)}let u=eo(r);if(u<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=25&&(l-=o)}else u<=25&&(l+=u);return{width:l,height:o,x:a,y:s}}(e,n);else if("document"===t)r=function(e){let t=R(e),n=G(e),r=e.ownerDocument.body,i=a(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=a(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+eo(e),s=-n.scrollTop;return"rtl"===q(r).direction&&(o+=a(t.clientWidth,r.clientWidth)-i),{width:i,height:l,x:o,y:s}}(R(e));else if(V(t))r=function(e,t){let n=el(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,l=H(e)?en(e):c(1),o=e.clientWidth*l.x,a=e.clientHeight*l.y;return{width:o,height:a,x:i*l.x,y:r*l.y}}(t,n);else{let n=ei(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return E(r)}function eu(e){return"static"===q(e).position}function ec(e,t){if(!H(e)||"fixed"===q(e).position)return null;if(t)return t(e);let n=e.offsetParent;return R(e)===n&&(n=n.ownerDocument.body),n}function ed(e,t){var n;let r=O(e);if(z(e))return r;if(!H(e)){let t=Y(e);for(;t&&!Z(t);){if(V(t)&&!eu(t))return t;t=Y(t)}return r}let i=ec(e,t);for(;i&&(n=i,/^(table|td|th)$/.test(M(n)))&&eu(i);)i=ec(i,t);return i&&Z(i)&&eu(i)&&!K(i)?r:i||function(e){let t=Y(e);for(;H(t)&&!Z(t);){if(K(t))return t;if(z(t))break;t=Y(t)}return null}(e)||r}let ef=async function(e){let t=this.getOffsetParent||ed,n=this.getDimensions,r=await n(e.floating);return{reference:function(e,t,n){let r=H(t),i=R(t),l="fixed"===n,o=el(e,!0,l,t),a={scrollLeft:0,scrollTop:0},s=c(0);if(r||!r&&!l)if(("body"!==M(t)||j(i))&&(a=G(t)),r){let e=el(t,!0,l,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else i&&(s.x=eo(i));l&&!r&&i&&(s.x=eo(i));let u=!i||r||l?c(0):ea(i,a);return{x:o.left+a.scrollLeft-s.x-u.x,y:o.top+a.scrollTop-s.y-u.y,width:o.width,height:o.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},ep={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,l="fixed"===i,o=R(r),a=!!t&&z(t.floating);if(r===o||a&&l)return n;let s={scrollLeft:0,scrollTop:0},u=c(1),d=c(0),f=H(r);if((f||!f&&!l)&&(("body"!==M(r)||j(o))&&(s=G(r)),f)){let e=el(r);u=en(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let p=!o||f||l?c(0):ea(o,s);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-s.scrollLeft*u.x+d.x+p.x,y:n.y*u.y-s.scrollTop*u.y+d.y+p.y}},getDocumentElement:R,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,l=[..."clippingAncestors"===n?z(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=X(e,[],!1).filter(e=>V(e)&&"body"!==M(e)),i=null,l="fixed"===q(e).position,o=l?Y(e):e;for(;V(o)&&!Z(o);){let t=q(o),n=K(o);n||"fixed"!==t.position||(i=null),(l?n||i:!(!n&&"static"===t.position&&i&&("absolute"===i.position||"fixed"===i.position)||j(o)&&!n&&function e(t,n){let r=Y(t);return!(r===n||!V(r)||Z(r))&&("fixed"===q(r).position||e(r,n))}(e,o)))?i=t:r=r.filter(e=>e!==o),o=Y(o)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=es(t,l[0],i),u=s.top,c=s.right,d=s.bottom,f=s.left;for(let e=1;e<l.length;e++){let n=es(t,l[e],i);u=a(n.top,u),c=o(n.right,c),d=o(n.bottom,d),f=a(n.left,f)}return{width:c-f,height:d-u,x:f,y:u}},getOffsetParent:ed,getElementRects:ef,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=ee(e);return{width:t,height:n}},getScale:en,isElement:V,isRTL:function(e){return"rtl"===q(e).direction}};function eh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let eg=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:i,rects:l,platform:s,elements:u,middlewareData:c}=t,{element:d,padding:p=0}=f(e,t)||{};if(null==d)return{};let v=k(p),x={x:n,y:r},b=g(y(i)),_=m(b),C=await s.getDimensions(d),w="y"===b,E=w?"clientHeight":"clientWidth",S=l.reference[_]+l.reference[b]-x[b]-l.floating[_],T=x[b]-l.reference[b],A=await (null==s.getOffsetParent?void 0:s.getOffsetParent(d)),N=A?A[E]:0;N&&await (null==s.isElement?void 0:s.isElement(A))||(N=u.floating[E]||l.floating[_]);
1let I=N/2-C[_]/2-1,L=o(v[w?"top":"left"],I),P=o(v[w?"bottom":"right"],I),F=N-C[_]-P,M=N/2-C[_]/2+(S/2-T/2),O=a(L,o(M,F)),R=!c.arrow&&null!=h(i)&&M!==O&&l.reference[_]/2-(M<L?L:P)-C[_]/2<0,D=R?M<L?M-L:M-F:0;return{[b]:x[b]+D,data:{[b]:O,centerOffset:M-O-D,...R&&{alignmentOffset:D}},reset:R}}});var em=n(48123),ey="undefined"!=typeof document?i.useLayoutEffect:function(){};function ev(e,t){let n,r,i;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!ev(e[r],t[r]))return!1;return!0}if((n=(i=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){let n=i[r];if(("_owner"!==n||!e.$$typeof)&&!ev(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ex(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function eb(e,t){let n=ex(e);return Math.round(t*n)/n}function e_(e){let t=i.useRef(e);return ey(()=>{t.current=e}),t}var eC=n(11064),ew=n(32846),ek=i.forwardRef((e,t)=>{let{children:n,width:r=10,height:i=5,...l}=e;return(0,ew.jsx)(eC.sG.svg,{...l,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,ew.jsx)("polygon",{points:"0,0 30,0 15,10"})})});ek.displayName="Arrow";var eE=n(59439),eS=n(11215),eT=n(29646),eA=n(48914),eN="Popper",[eI,eL]=(0,eS.A)(eN),[eP,eF]=eI(eN),eM=e=>{let{__scopePopper:t,children:n}=e,[r,l]=i.useState(null);return(0,ew.jsx)(eP,{scope:t,anchor:r,onAnchorChange:l,children:n})};eM.displayName=eN;var eO="PopperAnchor",eR=i.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...l}=e,o=eF(eO,n),a=i.useRef(null),s=(0,eE.s)(t,a),u=i.useRef(null);return i.useEffect(()=>{let e=u.current;u.current=(null==r?void 0:r.current)||a.current,e!==u.current&&o.onAnchorChange(u.current)}),r?null:(0,ew.jsx)(eC.sG.div,{...l,ref:s})});eR.displayName=eO;var eD="PopperContent",[eV,eH]=eI(eD),eB=i.forwardRef((e,t)=>{var n,r,l,s,c,d,k,E;let{__scopePopper:S,side:T="bottom",sideOffset:F=0,align:M="center",alignOffset:O=0,arrowPadding:D=0,avoidCollisions:V=!0,collisionBoundary:H=[],collisionPadding:B=0,sticky:j="partial",hideWhenDetached:z=!1,updatePositionStrategy:J="optimized",onPlaced:U,...W}=e,K=eF(eD,S),[$,Z]=i.useState(null),q=(0,eE.s)(t,e=>Z(e)),[G,Y]=i.useState(null),Q=function(e){let[t,n]=i.useState(void 0);return(0,eA.N)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,i;if(!Array.isArray(t)||!t.length)return;let l=t[0];if("borderBoxSize"in l){let e=l.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,i=t.blockSize}else r=e.offsetWidth,i=e.offsetHeight;n({width:r,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(G),ee=null!=(k=null==Q?void 0:Q.width)?k:0,en=null!=(E=null==Q?void 0:Q.height)?E:0,er="number"==typeof B?B:{top:0,right:0,bottom:0,left:0,...B},ei=Array.isArray(H)?H:[H],eo=ei.length>0,ea={padding:er,boundary:ei.filter(eU),altBoundary:eo},{refs:es,floatingStyles:eu,placement:ec,isPositioned:ed,middlewareData:ef}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:l,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:u,open:c}=e,[d,f]=i.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=i.useState(r);ev(p,r)||h(r);let[g,m]=i.useState(null),[y,v]=i.useState(null),x=i.useCallback(e=>{e!==w.current&&(w.current=e,m(e))},[]),b=i.useCallback(e=>{e!==k.current&&(k.current=e,v(e))},[]),_=o||g,C=a||y,w=i.useRef(null),k=i.useRef(null),E=i.useRef(d),S=null!=u,T=e_(u),N=e_(l),I=e_(c),L=i.useCallback(()=>{if(!w.current||!k.current)return;let e={placement:t,strategy:n,middleware:p};N.current&&(e.platform=N.current),((e,t,n)=>{let r=new Map,i={platform:ep,...n},l={...i.platform,_c:r};return A(e,t,{...i,platform:l})})(w.current,k.current,e).then(e=>{let t={...e,isPositioned:!1!==I.current};P.current&&!ev(E.current,t)&&(E.current=t,em.flushSync(()=>{f(t)}))})},[p,t,n,N,I]);ey(()=>{!1===c&&E.current.isPositioned&&(E.current.isPositioned=!1,f(e=>({...e,isPositioned:!1})))},[c]);let P=i.useRef(!1);ey(()=>(P.current=!0,()=>{P.current=!1}),[]),ey(()=>
1{if(_&&(w.current=_),C&&(k.current=C),_&&C){if(T.current)return T.current(_,C,L);L()}},[_,C,L,T,S]);let F=i.useMemo(()=>({reference:w,floating:k,setReference:x,setFloating:b}),[x,b]),M=i.useMemo(()=>({reference:_,floating:C}),[_,C]),O=i.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=eb(M.floating,d.x),r=eb(M.floating,d.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...ex(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,M.floating,d.x,d.y]);return i.useMemo(()=>({...d,update:L,refs:F,elements:M,floatingStyles:O}),[d,L,F,M,O])}({strategy:"fixed",placement:T+("center"!==M?"-"+M:""),whileElementsMounted:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e,t,n,r){let i;void 0===r&&(r={});let{ancestorScroll:l=!0,ancestorResize:s=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:f=!1}=r,p=et(e),h=l||s?[...p?X(p):[],...t?X(t):[]]:[];h.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});let g=p&&d?function(e,t){let n,r=null,i=R(e);function l(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return!function s(c,d){void 0===c&&(c=!1),void 0===d&&(d=1),l();let f=e.getBoundingClientRect(),{left:p,top:h,width:g,height:m}=f;if(c||t(),!g||!m)return;let y=u(h),v=u(i.clientWidth-(p+g)),x={rootMargin:-y+"px "+-v+"px "+-u(i.clientHeight-(h+m))+"px "+-u(p)+"px",threshold:a(0,o(1,d))||1},b=!0;function _(t){let r=t[0].intersectionRatio;if(r!==d){if(!b)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||eh(f,e.getBoundingClientRect())||s(),b=!1}try{r=new IntersectionObserver(_,{...x,root:i.ownerDocument})}catch(e){r=new IntersectionObserver(_,x)}r.observe(e)}(!0),l}(p,n):null,m=-1,y=null;c&&(y=new ResizeObserver(e=>{let[r]=e;r&&r.target===p&&y&&t&&(y.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var e;null==(e=y)||e.observe(t)})),n()}),p&&!f&&y.observe(p),t&&y.observe(t));let v=f?el(e):null;return f&&function t(){let r=el(e);v&&!eh(v,r)&&n(),v=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;h.forEach(e=>{l&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==g||g(),null==(e=y)||e.disconnect(),y=null,f&&cancelAnimationFrame(i)}}(...t,{animationFrame:"always"===J})},elements:{reference:K.anchor},middleware:[((e,t)=>{let n=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:i,y:l,placement:o,middlewareData:a}=t,s=await P(t,e);return o===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:i+s.x,y:l+s.y,data:{...s,placement:o}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({mainAxis:F+en,alignmentAxis:O}),V&&((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:r,placement:i,platform:l}=t,{mainAxis:s=!0,crossAxis:u=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...d}=f(e,t),h={x:n,y:r},m=await l.detectOverflow(t,d),v=y(p(i)),x=g(v),b=h[x],_=h[v];if(s){let e="y"===x?"top":"left",t="y"===x?"bottom":"right",n=b+m[e],r=b-m[t];b=a(n,o(b,r))}if(u){let e="y"===v?"top":"left",t="y"===v?"bottom":"right",n=_+m[e],r=_-m[t];_=a(n,o(_,r))}let C=c.fn({...t,[x]:b,[v]:_});return{...C,data:{x:C.x-n,y:C.y-r,enabled:{[x]:s,[v]:u}}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({mainAxis:!0,crossAxis:!1,limiter:"partial"===j?((e,t)=>({fn:function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:l,middlewareData:o}=t,{offset:a=0,mainAxis:s=!0,crossAxis:u=!0}=f(e,t),c={x:n,y:r},d=y(i),h=g(d),m=c[h],v=c[d],x=f(a,t),b="number"==typeof x?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(s){let e="y"===h?"height":"width",t=l.reference[h]-l.floating[e]+b.mainAxis,n=l.reference[h]+l.reference[e]-b.mainAxis;m<t?m=t:m>n&&(m=n)}if(u){var _,C;let e="y"===h?"width":"height",t=L.has(p(i)),n=l.reference[d]-l.floating[e]+(t&&(null==(_=o.offset)?void 0:_[d])||0)+(t?0:b.crossAxis),r=l.reference[d]+l.reference[e]+(t?0:(null==(C=o.offset)?void 0:C[d])||0)-(t?b.crossAxis:0);v<n?v=n:v>r&&(v=r)}return{[h]:m,[d]:v}}}}(e).fn,options:[e,t]}))():void 0,...ea}),V&&((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r,i,l,o;let{placement:a,middlewareData:s,rects:u,initialPlacement:c,platform:d,elements:k}=t,{mainAxis:E=!0,crossAxis:S=!0,fallbackPlacements:T,fallbackStrategy:A="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:I=!0,...L}=f(e,t);if(null!=(n=s.arrow)&&n.alignmentOffset)return{};let P=p(a),F=y(c),M=p(c)===c,O=await (null==d.isRTL?void 0:d.isRTL(k.floating)),R=T||(M||!I?[w(c)]:function(e){let t=w(e);return[v(e),t,v(t)]}(c)),D="none"!==N;!T&&D&&R.push(...function(e,t,n,r){let i=h(e),l=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?b:x;return t?x:b;
1case"left":case"right":return t?_:C;default:return[]}}(p(e),"start"===n,r);return i&&(l=l.map(e=>e+"-"+i),t&&(l=l.concat(l.map(v)))),l}(c,I,N,O));let V=[c,...R],H=await d.detectOverflow(t,L),B=[],j=(null==(r=s.flip)?void 0:r.overflows)||[];if(E&&B.push(H[P]),S){let e=function(e,t,n){void 0===n&&(n=!1);let r=h(e),i=g(y(e)),l=m(i),o="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[l]>t.floating[l]&&(o=w(o)),[o,w(o)]}(a,u,O);B.push(H[e[0]],H[e[1]])}if(j=[...j,{placement:a,overflows:B}],!B.every(e=>e<=0)){let e=((null==(i=s.flip)?void 0:i.index)||0)+1,t=V[e];if(t&&("alignment"!==S||F===y(t)||j.every(e=>y(e.placement)!==F||e.overflows[0]>0)))return{data:{index:e,overflows:j},reset:{placement:t}};let n=null==(l=j.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:l.placement;if(!n)switch(A){case"bestFit":{let e=null==(o=j.filter(e=>{if(D){let t=y(e.placement);return t===F||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:o[0];e&&(n=e);break}case"initialPlacement":n=c}if(a!==n)return{reset:{placement:n}}}return{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({...ea}),((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;let i,l,{placement:s,rects:u,platform:c,elements:d}=t,{apply:g=()=>{},...m}=f(e,t),v=await c.detectOverflow(t,m),x=p(s),b=h(s),_="y"===y(s),{width:C,height:w}=u.floating;"top"===x||"bottom"===x?(i=x,l=b===(await (null==c.isRTL?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(l=x,i="end"===b?"top":"bottom");let k=w-v.top-v.bottom,E=C-v.left-v.right,S=o(w-v[i],k),T=o(C-v[l],E),A=!t.middlewareData.shift,N=S,I=T;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(I=E),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(N=k),A&&!b){let e=a(v.left,0),t=a(v.right,0),n=a(v.top,0),r=a(v.bottom,0);_?I=C-2*(0!==e||0!==t?e+t:a(v.left,v.right)):N=w-2*(0!==n||0!==r?n+r:a(v.top,v.bottom))}await g({...t,availableWidth:I,availableHeight:N});let L=await c.getDimensions(d.floating);return C!==L.width||w!==L.height?{reset:{rects:!0}}:{}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({...ea,apply:e=>{let{elements:t,rects:n,availableWidth:r,availableHeight:i}=e,{width:l,height:o}=n.reference,a=t.floating.style;a.setProperty("--radix-popper-available-width","".concat(r,"px")),a.setProperty("--radix-popper-available-height","".concat(i,"px")),a.setProperty("--radix-popper-anchor-width","".concat(l,"px")),a.setProperty("--radix-popper-anchor-height","".concat(o,"px"))}}),G&&((e,t)=>{let n=(e=>({name:"arrow",options:e,fn(t){let{element:n,padding:r}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?eg({element:n.current,padding:r}).fn(t):{}:n?eg({element:n,padding:r}).fn(t):{}}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}})({element:G,padding:D}),eW({arrowWidth:ee,arrowHeight:en}),z&&((e,t)=>{let n=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i="referenceHidden",...l}=f(e,t);switch(i){case"referenceHidden":{let e=N(await r.detectOverflow(t,{...l,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:I(e)}}}case"escaped":{let e=N(await r.detectOverflow(t,{...l,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:I(e)}}}default:return{}}}}}(e);return{name:n.name,fn:n.fn,options:[e,t]}})({strategy:"referenceHidden",...ea})]}),[ek,eS]=eK(ec),eN=(0,eT.c)(U);(0,eA.N)(()=>{ed&&(null==eN||eN())},[ed,eN]);let eI=null==(n=ef.arrow)?void 0:n.x,eL=null==(r=ef.arrow)?void 0:r.y,eP=(null==(l=ef.arrow)?void 0:l.centerOffset)!==0,[eM,eO]=i.useState();return(0,eA.N)(()=>{$&&eO(window.getComputedStyle($).zIndex)},[$]),(0,ew.jsx)("div",{ref:es.setFloating,"data-radix-popper-content-wrapper":"",style:{...eu,transform:ed?eu.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:eM,"--radix-popper-transform-origin":[null==(s=ef.transformOrigin)?void 0:s.x,null==(c=ef.transformOrigin)?void 0:c.y].join(" "),...(null==(d=ef.hide)?void 0:d.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,ew.jsx)(eV,{scope:S,placedSide:ek,onArrowChange:Y,arrowX:eI,arrowY:eL,shouldHideArrow:eP,children:(0,ew.jsx)(eC.sG.div,{"data-side":ek,"data-align":eS,...W,ref:q,style:{...W.style,animation:ed?void 0:"none"}})})})});eB.displayName=eD;var ej="PopperArrow",ez={top:"bottom",right:"left",bottom:"top",left:"r
1ight"},eJ=i.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,i=eH(ej,n),l=ez[i.placedSide];return(0,ew.jsx)("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:(0,ew.jsx)(ek,{...r,ref:t,style:{...r.style,display:"block"}})})});function eU(e){return null!==e}eJ.displayName=ej;var eW=e=>({name:"transformOrigin",options:e,fn(t){var n,r,i,l,o;let{placement:a,rects:s,middlewareData:u}=t,c=(null==(n=u.arrow)?void 0:n.centerOffset)!==0,d=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[p,h]=eK(a),g={start:"0%",center:"50%",end:"100%"}[h],m=(null!=(l=null==(r=u.arrow)?void 0:r.x)?l:0)+d/2,y=(null!=(o=null==(i=u.arrow)?void 0:i.y)?o:0)+f/2,v="",x="";return"bottom"===p?(v=c?g:"".concat(m,"px"),x="".concat(-f,"px")):"top"===p?(v=c?g:"".concat(m,"px"),x="".concat(s.floating.height+f,"px")):"right"===p?(v="".concat(-f,"px"),x=c?g:"".concat(y,"px")):"left"===p&&(v="".concat(s.floating.width+f,"px"),x=c?g:"".concat(y,"px")),{data:{x:v,y:x}}}});function eK(e){let[t,n="center"]=e.split("-");return[t,n]}var e$=eM,eZ=eR,eq=eB,eG=eJ},7988:()=>{Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean},9756:(e,t,n)=>{"use strict";n.d(t,{d:()=>s});var r=n(25118),i=n(43113),l=n(70237),o=n(19735),a=n(48387);let s=()=>{let e=(0,o.qM)(l.NN),t=(0,o.X3)(a.yr),n=(0,a.Bd)();return r.createElement(i.gx,{"aria-label":n("toolbar.link","Create link"),title:n("toolbar.link","Create link"),onClick:t=>{e()}},t("link"))}},10665:(e,t,n)=>{"use strict";n.d(t,{N:()=>i});var r=n(4686);function i(e,t,n,i){let l=i?i-1:1/0,o=0;return function(i){return(0,r.On)(i)?(e.enter(n),function i(a){return(0,r.On)(a)&&o++<l?(e.consume(a),i):(e.exit(n),t(a))}(i)):t(i)}}}
1,11064:(e,t,n)=>{"use strict";n.d(t,{hO:()=>s,sG:()=>a});var r=n(25118),i=n(48123),l=n(78465),o=n(32846),a=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=(0,l.TL)(`Primitive.${t}`),i=r.forwardRef((e,r)=>{let{asChild:i,...l}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,o.jsx)(i?n:t,{...l,ref:r})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function s(e,t){e&&i.flushSync(()=>e.dispatchEvent(t))}},11215:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(25118),i=n(32846);function l(e,t=[]){let n=[],o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let i=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return o.scopeName=e,[function(t,l){let o=r.createContext(l),a=n.length;n=[...n,l];let s=t=>{let{scope:n,children:l,...s}=t,u=n?.[e]?.[a]||o,c=r.useMemo(()=>s,Object.values(s));return(0,i.jsx)(u.Provider,{value:c,children:l})};return s.displayName=t+"Provider",[s,function(n,i){let s=i?.[e]?.[a]||o,u=r.useContext(s);if(u)return u;if(void 0!==l)return l;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(o,...t)]}},12021:(e,t,n)=>{"use strict";n.d(t,{A:()=>W});var r,i,l=n(87024),o=n(25118),a="right-scroll-bar-position",s="width-before-scroll-bar";function u(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var c="undefined"!=typeof window?o.useLayoutEffect:o.useEffect,d=new WeakMap;function f(e){return e}var p=function(e){void 0===e&&(e={});var t,n,r,i=(void 0===t&&(t=f),n=[],r=!1,{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var l=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(l)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}});return i.options=(0,l.Cl)({async:!0,ssr:!1},e),i}(),h=function(){},g=o.forwardRef(function(e,t){var n,r,i,a,s=o.useRef(null),f=o.useState({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:h}),g=f[0],m=f[1],y=e.forwardProps,v=e.children,x=e.className,b=e.removeScrollBar,_=e.enabled,C=e.shards,w=e.sideCar,k=e.noRelative,E=e.noIsolation,S=e.inert,T=e.allowPinchZoom,A=e.as,N=e.gapMode,I=(0,l.Tt)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=(n=[s,t],r=function(e){return n.forEach(function(t){return u(t,e)})},(i=(0,o.useState)(function(){return{value:null,callback:r,facade:{get current(){return i.value},set current(value){var e=i.value;e!==value&&(i.value=value,i.callback(value,e))}}}})[0]).callback=r,a=i.facade,c(function(){var e=d.get(a);if(e){var t=new Set(e),r=new Set(n),i=a.current;t.forEach(function(e){r.has(e)||u(e,null)}),r.forEach(function(e){t.has(e)||u(e,i)})}d.set(a,n)},[n]),a),P=(0,l.Cl)((0,l.Cl)({},I),g);return o.createElement(o.Fragment,null,_&&o.createElement(w,{sideCar:p,removeScrollBar:b,shards:C,noRelative:k,noIsolation:E,inert:S,setCallbacks:m,allowPinchZoom:!!T,lockRef:s,gapMode:N}),y?o.cloneElement(o.Children.only(v),(0,l.Cl)((0,l.Cl)({},P),{ref:L})):o.createElement(void 0===A?"div":A,(0,l.Cl)({},P,{className:x,ref:L}),v))});g.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},g.classNames={fullWidth:s,zeroRight:a};var m=function(e){var t=e.sideCar,n=(0,l.Tt)(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return o.createElement(r,(0,l.Cl)({},n))};
1m.isSideCarExport=!0;var y=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=i||n.nc;return t&&e.setAttribute("nonce",t),e}())){var l,o;(l=t).styleSheet?l.styleSheet.cssText=r:l.appendChild(document.createTextNode(r)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},v=function(){var e=y();return function(t,n){o.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},x=function(){var e=v();return function(t){return e(t.styles,t.dynamic),null}},b={left:0,top:0,right:0,gap:0},_=function(e){return parseInt(e||"",10)||0},C=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],i=t["padding"===e?"paddingRight":"marginRight"];return[_(n),_(r),_(i)]},w=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return b;var t=C(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},k=x(),E="data-scroll-locked",S=function(e,t,n,r){var i=e.left,l=e.top,o=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(u,"px ").concat(r,";\n  }\n  body[").concat(E,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(i,"px;\n    padding-top: ").concat(l,"px;\n    padding-right: ").concat(o,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(u,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(a," {\n    right: ").concat(u,"px ").concat(r,";\n  }\n  \n  .").concat(s," {\n    margin-right: ").concat(u,"px ").concat(r,";\n  }\n  \n  .").concat(a," .").concat(a," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(s," .").concat(s," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(E,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n  }\n")},T=function(){var e=parseInt(document.body.getAttribute(E)||"0",10);return isFinite(e)?e:0},A=function(){o.useEffect(function(){return document.body.setAttribute(E,(T()+1).toString()),function(){var e=T()-1;e<=0?document.body.removeAttribute(E):document.body.setAttribute(E,e.toString())}},[])},N=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=void 0===r?"margin":r;A();var l=o.useMemo(function(){return w(i)},[i]);return o.createElement(k,{styles:S(l,!t,i,n?"":"!important")})},I=!1;if("undefined"!=typeof window)try{var L=Object.defineProperty({},"passive",{get:function(){return I=!0,!0}});window.addEventListener("test",L,L),window.removeEventListener("test",L,L)}catch(e){I=!1}var P=!!I&&{passive:!1},F=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},M=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),O(e,r)){var i=R(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},O=function(e,t){return"v"===e?F(t,"overflowY"):F(t,"overflowX")},R=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},D=function(e,t,n,r,i){var l,o=(l=window.getComputedStyle(t).direction,"h"===e&&"rtl"===l?-1:1),a=o*r,s=n.target,u=t.contains(s),c=!1,d=a>0,f=0,p=0;do{if(!s)break;var h=R(e,s),g=h[0],m=h[1]-h[2]-o*g;(g||m)&&O(e,s)&&(f+=m,p+=g);var y=s.parentNode;s=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return d&&(i&&1>Math.abs(f)||!i&&a>f)?c=!0:!d&&(i&&1>Math.abs(p)||!i&&-a>p)&&(c=!0),c},V=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},H=function(e){return[e.deltaX,e.deltaY]},B=function(e){return e&&"current"in e?e.current:e},j=0,z=[];let J=(r=function(e){var t=o.useRef([]),n=o.useRef([0,0]),r=o.useRef(),i=o.useState(j++)[0],a=o.useState(x)[0],s=o.useRef(e);o.useEffect(function(){s.current=e},[e]),o.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,l.fX)([e.lockRef.current],(e.shards||[]).map(B),!0).filter(
1Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var u=o.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var i,l=V(e),o=n.current,a="deltaX"in e?e.deltaX:o[0]-l[0],u="deltaY"in e?e.deltaY:o[1]-l[1],c=e.target,d=Math.abs(a)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===c||p.contains(c)))return!1;var h=M(d,c);if(!h)return!0;if(h?i=d:(i="v"===d?"h":"v",h=M(d,c)),!h)return!1;if(!r.current&&"changedTouches"in e&&(a||u)&&(r.current=i),!i)return!0;var g=r.current||i;return D(g,t,e,"h"===g?a:u,!0)},[]),c=o.useCallback(function(e){if(z.length&&z[z.length-1]===a){var n="deltaY"in e?H(e):V(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var i=(s.current.shards||[]).map(B).filter(Boolean).filter(function(t){return t.contains(e.target)});(i.length>0?u(e,i[0]):!s.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),d=o.useCallback(function(e,n,r,i){var l={name:e,delta:n,target:r,should:i,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(l),setTimeout(function(){t.current=t.current.filter(function(e){return e!==l})},1)},[]),f=o.useCallback(function(e){n.current=V(e),r.current=void 0},[]),p=o.useCallback(function(t){d(t.type,H(t),t.target,u(t,e.lockRef.current))},[]),h=o.useCallback(function(t){d(t.type,V(t),t.target,u(t,e.lockRef.current))},[]);o.useEffect(function(){return z.push(a),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",c,P),document.addEventListener("touchmove",c,P),document.addEventListener("touchstart",f,P),function(){z=z.filter(function(e){return e!==a}),document.removeEventListener("wheel",c,P),document.removeEventListener("touchmove",c,P),document.removeEventListener("touchstart",f,P)}},[]);var g=e.removeScrollBar,m=e.inert;return o.createElement(o.Fragment,null,m?o.createElement(a,{styles:"\n  .block-interactivity-".concat(i," {pointer-events: none;}\n  .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,g?o.createElement(N,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},p.useMedium(r),m);var U=o.forwardRef(function(e,t){return o.createElement(g,(0,l.Cl)({},e,{ref:t,sideCar:J}))});U.classNames=g.classNames;let W=U},16508:e=>{"use strict";var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g;function u(e){return e?e.replace(s,""):""}e.exports=function(e,s){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];s=s||{};var c=1,d=1;function f(e){var t=e.match(n);t&&(c+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function p(){var e={line:c,column:d};return function(t){return t.position=new h(e),m(r),t}}function h(e){this.start=e,this.end={line:c,column:d},this.source=s.source}function g(t){var n=Error(s.source+":"+c+":"+d+": "+t);if(n.reason=t,n.filename=s.source,n.line=c,n.column=d,n.source=e,s.silent);else throw n}function m(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function y(e){var t;for(e=e||[];t=v();)!1!==t&&e.push(t);return e}function v(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return g("End of comment missing");var r=e.slice(2,n-2);return d+=2,f(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}h.prototype.content=e,m(r);var x,b=[];for(y(b);x=function(){var e=p(),n=m(i);if(n){if(v(),!m(l))return g("property missing ':'");var r=m(o),s=e({type:"declaration",property:u(n[0].replace(t,"")),value:r?u(r[0].replace(t,"")):""});return m(a),s}}();)!1!==x&&(b.push(x),y(b));return b}},17917:()=>{Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CA
1SE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}},17946:(e,t,n)=>{"use strict";n.d(t,{G:()=>s});var r=n(87693);let i={testNode:"blockquote",visitNode({actions:e}){e.addAndStepInto((0,r.xi)())}},l={testLexicalNode:r.jd,visitLexicalNode:({actions:e})=>{e.addAndStepInto("blockquote")}};var o=n(39303),a=n(48387);let s=(0,o.Z)({init(e){e.pubIn({[a.$0]:"quote",[a.R1]:i,[a.q]:r.dJ,[a.iI]:l})}})},18191:(e,t,n)=>{"use strict";n.d(t,{Bt:()=>g,HE:()=>d,OV:()=>_,Pe:()=>m,Sd:()=>u,ZB:()=>c,_X:()=>f,cj:()=>y,eu:()=>p,mB:()=>h,xj:()=>v,zD:()=>x});var r=n(58030);function i(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let n of(r.append("code",e),t))r.append("v",n);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let l="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,o=l&&"documentMode"in document?document.documentMode:null,a=(l&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),l&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent));function s(...e){let t=[];for(let n of e)if(n&&"string"==typeof n)for(let[e]of n.matchAll(/\S+/g))t.push(e);return t}function u(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}function c(e,...t){let n=s(...t);n.length>0&&e.classList.add(...n)}function d(e,...t){let n=s(...t);n.length>0&&e.classList.remove(...n)}function f(e){return e?e.getAdjacentCaret():null}function p(e,t){let n=e;for(;null!=n;){if(n instanceof t)return n;n=n.getParent()}return null}function h(e){let t=g(e,e=>(0,r.ff4)(e)&&!e.isInline());return(0,r.ff4)(t)||i(4,e.__key),t}l&&"InputEvent"in window&&!o&&new window.InputEvent("input"),l&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),l&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&window.MSStream,l&&/Android/.test(navigator.userAgent),l&&/^(?=.*Chrome).*/i.test(navigator.userAgent),l&&/AppleWeb
1Kit\/[\d.]+/.test(navigator.userAgent);let g=(e,t)=>{let n=e;for(;n!==(0,r.NiT)()&&null!=n;){if(t(n))return n;n=n.getParent()}return null};function m(e){let t,n=(0,r.vJq)()||(0,r.S1w)();if((0,r.I2P)(n))t=(0,r.Ave)(n.focus,"next");else{if(null!=n){let e=n.getNodes(),i=e[e.length-1];i&&(t=(0,r.IlV)(i,"next"))}t=t||(0,r.uwZ)((0,r.NiT)(),"previous").getFlipped().insert((0,r.lJ7)())}let l=function(e,t,n){let l=(0,r.Csq)(t,"next");for(let e=l;e;e=(0,r.k1Q)(e,void 0))l=e;return(0,r.rN)(l)&&i(283),l.insert(e.isInline()?(0,r.lJ7)().append(e):e),(0,r.Csq)((0,r.IlV)(e.getLatest(),"next"),t.direction)}(e,t),o=(0,r.erb)(l),a=(0,r.cmH)(o)?(0,r.lSZ)(o):l;return(0,r.xQ8)((0,r.sWS)(a)),e.getLatest()}function y(e,t){let n=t();return e.replace(n),n.append(e),n}function v(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name}function x(e,t){let n=[];for(let r=0;r<e.length;r++){let i=t(e[r]);null!==i&&n.push(i)}return n}let b=!(a||!l)&&void 0;function _(e){let t=1;if(function(){if(void 0===b){let e=document.createElement("div");e.style.cssText="position: absolute; opacity: 0; width: 100px; left: -1000px;",document.body.appendChild(e);let t=e.getBoundingClientRect();e.style.setProperty("zoom","2"),b=e.getBoundingClientRect().width===t.width,document.body.removeChild(e)}return b}())for(;e;)t*=Number(window.getComputedStyle(e).getPropertyValue("zoom")),e=e.parentElement;return t}},19527:()=>{!function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,r={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[r,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:r.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:r.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:r.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism)},19735:(e,t,n)=>{"use strict";let r;n.d(t,{EY:()=>w,HN:()=>g,LO:()=>v,Mx:()=>p,SQ:()=>E,Tj:()=>C,X3:()=>x,Zb:()=>y,fh:()=>h,pb:()=>k,qM:()=>_,rc:()=>m,uX:()=>b});var i=n(25118);n(32846);var l=Object.defineProperty,o=(e,t,n)=>((e,t,n)=>t in e?l(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);class a{constructor(e=new Map){this.map=e}clone(){return new a(new Map(this.map))}increment(e){let t=this.map.get(e)??0;this.map.set(e,t+1)}
1decrement(e,t){let n=this.map.get(e);void 0!==n&&(n-=1,this.map.set(e,n),0===n&&t())}}class s{constructor(){o(this,"map",new Map)}getOrCreate(e){let t=this.map.get(e);return void 0===t&&(t=new Set,this.map.set(e,t)),t}get(e){return this.map.get(e)}use(e,t){let n=this.get(e);void 0!==n&&t(n)}delete(e){return this.map.delete(e)}}function u(){}let c="cell";function d(e,t){return e===t}let f=new Map;class p{constructor(e={}){for(let t of(o(this,"subscriptions",new s),o(this,"singletonSubscriptions",new Map),o(this,"graph",new s),o(this,"state",new Map),o(this,"distinctNodes",new Map),o(this,"executionMaps",new Map),o(this,"definitionRegistry",new Set),o(this,"combinedCells",[]),Object.getOwnPropertySymbols(e)))this.state.set(t,e[t])}cellInstance(e,t=!0,n=Symbol()){return this.state.has(n)||this.state.set(n,e),!1===t||this.distinctNodes.has(n)||this.distinctNodes.set(n,!0===t?d:t),n}signalInstance(e=!0,t=Symbol()){return!1!==e&&this.distinctNodes.set(t,!0===e?d:e),t}sub(e,t){this.register(e);let n=this.subscriptions.getOrCreate(e);return n.add(t),()=>n.delete(t)}singletonSub(e,t){return this.register(e),void 0===t?this.singletonSubscriptions.delete(e):this.singletonSubscriptions.set(e,t),()=>this.singletonSubscriptions.delete(e)}resetSingletonSubs(){this.singletonSubscriptions.clear()}subMultiple(e,t){let n=this.signalInstance();return this.connect({map:e=>(...t)=>{e(t)},sink:n,sources:e}),this.sub(n,t)}pubIn(e){var t;let n=Reflect.ownKeys(e),r=this.getExecutionMap(n),i=r.refCount.clone(),l=r.participatingNodes.slice(),o=new Map(this.state),a=e=>{this.graph.use(e,t=>{for(let{sources:n,sink:r}of t)n.has(e)&&i.decrement(r,()=>{l.splice(l.indexOf(r),1),a(r)})})};for(;;){let n=l.shift();if(void 0===n)break;let i=!1,s=e=>{let t=this.distinctNodes.get(n);if(null!=t&&t(o.get(n),e)){i=!1;return}i=!0,o.set(n,e),this.state.has(n)&&this.state.set(n,e)};if(Object.prototype.hasOwnProperty.call(e,n)?s(e[n]):r.projections.use(n,e=>{for(let t of e){let e=[...Array.from(t.sources),...Array.from(t.pulls)].map(e=>o.get(e));t.map(s)(...e)}}),i){let e=o.get(n);this.inContext(()=>{this.subscriptions.use(n,t=>{for(let n of t)n(e)})}),null==(t=this.singletonSubscriptions.get(n))||t(e)}else a(n)}}connect({sources:e,pulls:t=[],map:n,sink:r}){let i={map:n,pulls:new Set(t),sink:this.register(r),sources:new Set(e)};for(let n of[...e,...t])this.register(n),this.graph.getOrCreate(n).add(i);this.executionMaps.clear()}pub(e,t){this.pubIn({[e]:t})}pipe(e,...t){return this.combineOperators(...t)(e)}transformer(...e){return t=>{var n;let r;return n=this.signalInstance(),r=n,this.link(this.pipe(r,...e),t),n}}link(e,t){this.connect({map:e=>t=>{e(t)},sink:t,sources:[e]})}combine(...e){var t,n;return n=t=this.signalInstance(),this.connect({map:e=>(...t)=>{e(t)},sink:n,sources:e}),t}combineCells(...e){let t=this.combinedCells.find(t=>e.length===t.sources.length&&e.every((e,n)=>e===t.sources[n]));if(t)return t.cell;let n=this.cellInstance(e.map(e=>this.getValue(e)),!0);return this.connect({map:e=>(...t)=>{e(t)},sink:n,sources:e}),this.combinedCells.push({sources:e,cell:n}),n}getValue(e){return this.register(e),this.state.get(e)}getValues(e){return e.map(e=>this.getValue(e))}register(e){var t,n;let r=f.get(e);return void 0===r||this.definitionRegistry.has(e)?e:(this.definitionRegistry.add(e),n=t=r.type===c?this.cellInstance(r.initial,r.distinct,e):this.signalInstance(r.distinct,e),this.inContext(()=>{r.init(this,n)}),t)}inContext(e){let t=r;r=this;let n=e();return r=t,n}changeWith(e,t,n){this.connect({sources:[t],pulls:[e],sink:e,map:e=>(t,r)=>{e(n(r,t))}})}calculateExecutionMap(e){let t=[],n=new Set,r=new s,i=new a,l=new s,o=(e,a=0)=>{i.increment(e),n.has(e)||(this.register(e),r.use(e,e=>{a=Math.max(...Array.from(e).map(e=>t.indexOf(e)))+1}),this.graph.use(e,t=>{for(let n of t)n.sources.has(e)?(l.getOrCreate(n.sink).add(n),o(n.sink,a)):r.getOrCreate(n.sink).add(e)}),n.add(e),t.splice(a,0,e))};return e.forEach(o),{participatingNodes:t,pendingPulls:r,projections:l,refCount:i}}getExecutionMap(e){let t=e;if(1===e.length){t=e[0];let n=this.executionMaps.get(t);if(void 0!==n)return n}else for(let[t,n]of this.executionMaps.entries())if(Array.isArray(t)&&t.length===e.length&&t.every(t=>e.includes(t)))return n;let n=this.calculateExecutionMap(e);return this.executionMaps.set(t,n),n}combineOperators(...e){return t=>{for(let n of e)t=n(t,this);return t}}}function h(e,t=u,n=!0){var r,i;return i=r=Symbol(),f.set(i,{type:c,distinct:n,initial:e,init:t}),r}function g(e=u,t=!1){var n,r;return r=n=Symbol(),f.set(r,{type:"signal",distinct:t,init:e}),n}function m(e=u){var t,n;return n=t=Symbol(),f.set(n,{type:"signal",distinct:!1,init:e}),t}let y=i.createContext(null);function v(){let e=i.useContext(y);if(null===e)throw Error("useRealm must be used within a RealmContextProvider");return e}function x(e){let t=v();t.register(e);let n=i.useCallback(n=>t.sub(e,n),[t,e]);return i.useSyncExternalStore(n,()=>t.getValue(e),()=>t.getValue(e))}function b(...e){let t=v();return x(i.useMemo(()=>t.combineCells.apply(t,e),[t,...e]))}function _(e){let t=v();return t.register(e),i.useCallback(n=>{t.pub(e,n)},[t,e])}function C(e){return(t,n)=>{let r=n.signalInstance();return n.connect({map:t=>n=>{t(e(n))},sink:r,sources:[t]}),r}}function w(...e){return(t,n)=>{let r=n.signalInstance();return n.connect({map:e=>(...t)=>{e(t)},pulls:e,sink:r,sources:[t]}),r}}function k(e){return(t,n)=>{let r=n.signalInstance();return n.connect({map:t=>n=>{e(n)&&t(n)},sink:r,sources:[t]}),r}}function E(e,t){return(n,r)=>{let i=r.signalInstance();return r.connect({map:n=>r=>{n(t=e(t,r))},sink:i,sources:[n]}),i}}}
1,22229:(e,t,n)=>{"use strict";var r=n(44362);function i(){}function l(){}l.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,l,o){if(o!==r){var a=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:l,resetWarningCache:i};return n.PropTypes=n,n}},22804:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=l(e,function(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=l(t,n));return t}(n)))}return e}function l(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=(function(){return i}).apply(t,[]))||(e.exports=n)}()},24271:()=>{Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var i={};i[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:r},Prism.languages.insertBefore("markup","cdata",i)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml},25427:(e,t,n)=>{"use strict";n.d(t,{dc:()=>l,VG:()=>o});var r=n(88413);let i=[],l=!1;function o(e,t,n,o){let a;"function"==typeof t&&"function"!=typeof n?(o=n,n=t):a=t;let s=(0,r.C)(a),u=o?-1:1;(function e(r,a,c){let d=r&&"object"==typeof r?r:{};if("string"==typeof d.type){let e="string"==typeof d.tagName?d.tagName:"string"==typeof d.name?d.name:void 0;
1Object.defineProperty(f,"name",{value:"node ("+r.type+(e?"<"+e+">":"")+")"})}return f;function f(){var d;let f,p,h,g=i;if((!t||s(r,a,c[c.length-1]||void 0))&&(g=Array.isArray(d=n(r,c))?d:"number"==typeof d?[!0,d]:null==d?i:[d])[0]===l)return g;if("children"in r&&r.children&&r.children&&"skip"!==g[0])for(p=(o?r.children.length:-1)+u,h=c.concat(r);p>-1&&p<r.children.length;){if((f=e(r.children[p],p,h)())[0]===l)return f;p="number"==typeof f[1]?f[1]:p+u}return g}})(e,void 0,[])()}},27430:(e,t,n)=>{"use strict";n(84154)},27812:()=>{!function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return t.source});e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return n})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism)},29646:(e,t,n)=>{"use strict";n.d(t,{c:()=>i});var r=n(25118);function i(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},30815:(e,t,n)=>{"use strict";n.d(t,{n:()=>d});var r=n(25118),i=n(59439),l=n(11064),o=n(29646),a=n(32846),s="focusScope.autoFocusOnMount",u="focusScope.autoFocusOnUnmount",c={bubbles:!1,cancelable:!0},d=r.forwardRef((e,t)=>{let{loop:n=!1,trapped:d=!1,onMountAutoFocus:m,onUnmountAutoFocus:y,...v}=e,[x,b]=r.useState(null),_=(0,o.c)(m),C=(0,o.c)(y),w=r.useRef(null),k=(0,i.s)(t,e=>b(e)),E=r.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;r.useEffect(()=>{if(d){let e=function(e){if(E.paused||!x)return;let t=e.target;x.contains(t)?w.current=t:h(w.current,{select:!0})},t=function(e){if(E.paused||!x)return;let t=e.relatedTarget;null!==t&&(x.contains(t)||h(w.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&h(x)});return x&&n.observe(x,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[d,x,E.paused]),r.useEffect(()=>{if(x){g.add(E);let e=document.activeElement;if(!x.contains(e)){let t=new CustomEvent(s,c);x.addEventListener(s,_),x.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=document.activeElement;for(let r of e)if(h(r,{select:t}),document.activeElement!==n)return}(f(x).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&h(x))}return()=>{x.removeEventListener(s,_),setTimeout(()=>{let t=new CustomEvent(u,c);x.addEventListener(u,C),x.dispatchEvent(t),t.defaultPrevented||h(null!=e?e:document.body,{select:!0}),x.removeEventListener(u,C),g.remove(E)},0)}}},[x,_,C,E]);let S=r.useCallback(e=>{if(!n&&!d||E.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,r=document.activeElement;if(t&&r){let t=e.currentTarget,[i,l]=function(e){let t=f(e);return[p(t,e),p(t.reverse(),e)]}(t);i&&l?e.shiftKey||r!==l?e.shiftKey&&r===i&&(e.preventDefault(),n&&h(l,{select:!0})):(e.preventDefault(),n&&h(i,{select:!0})):r===t&&e.preventDefault()}},[n,d,E.paused]);return(0,a.jsx)(l.sG.div,{tabIndex:-1,...v,ref:k,onKeyDown:S})});function f(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function p(e,t){for(let n of e)if(!function(e,t){let{upTo:n}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===n||e!==n);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function h(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}d.displayName="FocusScope";var g=function(){let e=[];return{add(t){let n=e[0];t!==n&&(null==n||n.pause()),(e=m(e,t)).unshift(t)},remove(t){var n;null==(n=(e=m(e,t))[0])||n.resume()}}}();function m(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}},33140:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(25118),i=n(48123),l=n(11064),o=n(48914),a=n(32846),s=r.forwardRef((e,t)=>
1{var n,s;let{container:u,...c}=e,[d,f]=r.useState(!1);(0,o.N)(()=>f(!0),[]);let p=u||d&&(null==(s=globalThis)||null==(n=s.document)?void 0:n.body);return p?i.createPortal((0,a.jsx)(l.sG.div,{...c,ref:t}),p):null});s.displayName="Portal"},33543:(e,t,n)=>{"use strict";n.d(t,{o:()=>i});var r=n(1520);class i extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let i="",l={},o=!1;if(t&&(l="line"in t&&"column"in t||"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?i=e:!l.cause&&e&&(o=!0,i=e.message,l.cause=e),!l.ruleId&&!l.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?l.ruleId=n:(l.source=n.slice(0,e),l.ruleId=n.slice(e+1))}if(!l.place&&l.ancestors&&l.ancestors){let e=l.ancestors[l.ancestors.length-1];e&&(l.place=e.position)}let a=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=(0,r.L)(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&"string"==typeof l.cause.stack?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}i.prototype.file="",i.prototype.name="",i.prototype.reason="",i.prototype.message="",i.prototype.stack="",i.prototype.column=void 0,i.prototype.line=void 0,i.prototype.ancestors=void 0,i.prototype.cause=void 0,i.prototype.fatal=void 0,i.prototype.place=void 0,i.prototype.ruleId=void 0,i.prototype.source=void 0},35101:(e,t,n)=>{"use strict";function r(e,t,n){let r=[],i=-1;for(;++i<e.length;){let l=e[i].resolveAll;l&&!r.includes(l)&&(t=l(t,n),r.push(l))}return t}n.d(t,{W:()=>r})},35242:(e,t,n)=>{"use strict";n.d(t,{C:()=>i});let r={bold:"_bold_1tncs_10",italic:"_italic_1tncs_14",underline:"_underline_1tncs_18",strikethrough:"_strikethrough_1tncs_34",underlineStrikethrough:"_underlineStrikethrough_1tncs_38",subscript:"_subscript_1tncs_42",superscript:"_superscript_1tncs_47",code:"_code_1tncs_52",nestedListItem:"_nestedListItem_1tncs_59",listitem:"_listitem_1tncs_69",listItemChecked:"_listItemChecked_1tncs_73",listItemUnchecked:"_listItemUnchecked_1tncs_74",admonitionDanger:"_admonitionDanger_1tncs_151",admonitionInfo:"_admonitionInfo_1tncs_152",admonitionNote:"_admonitionNote_1tncs_153",admonitionTip:"_admonitionTip_1tncs_154",admonitionCaution:"_admonitionCaution_1tncs_155"},i={text:{bold:r.bold,italic:r.italic,underline:r.underline,code:r.code,strikethrough:r.strikethrough,subscript:r.subscript,superscript:r.superscript,underlineStrikethrough:r.underlineStrikethrough},list:{listitem:r.listitem,listitemChecked:r.listItemChecked,listitemUnchecked:r.listItemUnchecked,nested:{listitem:r.nestedListItem}},admonition:{danger:r.admonitionDanger,info:r.admonitionInfo,note:r.admonitionNote,tip:r.admonitionTip,caution:r.admonitionCaution}}},35932:(e,t,n)=>{"use strict";n.d(t,{Y:()=>ex});var r={};n.r(r),n.d(r,{attentionMarkers:()=>ef,contentInitial:()=>eo,disable:()=>ep,document:()=>el,flow:()=>es,flowInitial:()=>ea,insideSpan:()=>ed,string:()=>eu,text:()=>ec});var i=n(3736),l=n(39461);class o{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?1/0:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),1/0);return n&&a(this.left,n),r.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),a(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),a(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length))if(e<this.left.length){let t=this.left.splice(e,1/0);a(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);a(this.left,t.reverse())}}}function a(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function s(e){let t,n,r,i,a,s,u,c={},d=-1,f=new o(e);for(;++d<f.length;){for(;d in c;)d=c[d];if(t=f.get(d),d&&"chunkFlow"===t[1].type&&"listItemPrefix"===f.get(d-1)[1].type&&((r=0)<(s=t[1]._tokenizer.events).length&&"lineEndingBlank"===s[r][1].type&&(r+=2),r<s.length&&"content"===s[r][1].type))for(;++r<s.length&&"content"!==s[r][1].type;)"chunkText"===s[r][1].type&&(s[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(c,function(e,t){let n,r,i=e.get(t)[1],l=e.get(t)[2],o=t-1,a=[],s=i._tokenizer;!s&&(s=l.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(s._c
1ontentTypeTextTrailing=!0));let u=s.events,c=[],d={},f=-1,p=i,h=0,g=0,m=[0];for(;p;){for(;e.get(++o)[1]!==p;);a.push(o),!p._tokenizer&&(n=l.sliceStream(p),p.next||n.push(null),r&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(n),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),r=p,p=p.next}for(p=i;++f<u.length;)"exit"===u[f][0]&&"enter"===u[f-1][0]&&u[f][1].type===u[f-1][1].type&&u[f][1].start.line!==u[f][1].end.line&&(g=f+1,m.push(g),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):m.pop(),f=m.length;f--;){let t=u.slice(m[f],m[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)d[h+c[f][0]]=h+c[f][1],h+=c[f][1]-c[f][0]-1;return d}(f,d)),d=c[d],u=!0);else if(t[1]._container){for(r=d,n=void 0;r--;)if("lineEnding"===(i=f.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(f.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;n&&(t[1].end={...f.get(n)[1].start},(a=f.slice(n,d)).unshift(t),f.splice(n,d-n+1,a))}}return(0,l.m)(e,0,1/0,f.slice(0)),!u}let u={}.hasOwnProperty;var c=n(10665),d=n(4686);let f={tokenize:function(e){let t,n=e.attempt(this.parser.constructs.contentInitial,function(t){return null===t?void e.consume(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,c.N)(e,n,"linePrefix"))},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return(0,d.HP)(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},p={tokenize:function(e){let t,n,r,i=this,o=[],a=0;return s;function s(t){if(a<o.length){let n=o[a];return i.containerState=n[1],e.attempt(n[0].continuation,u,c)(t)}return c(t)}function u(e){if(a++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&b();let r=i.events.length,o=r;for(;o--;)if("exit"===i.events[o][0]&&"chunkFlow"===i.events[o][1].type){n=i.events[o][1].end;break}x(a);let s=r;for(;s<i.events.length;)i.events[s][1].end={...n},s++;return(0,l.m)(i.events,o+1,0,i.events.slice(r)),i.events.length=s,c(e)}return s(e)}function c(n){if(a===o.length){if(!t)return g(n);if(t.currentConstruct&&t.currentConstruct.concrete)return y(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(h,f,p)(n)}function f(e){return t&&b(),x(a),g(e)}function p(e){return i.parser.lazy[i.now().line]=a!==o.length,r=i.now().offset,y(e)}function g(t){return i.containerState={},e.attempt(h,m,y)(t)}function m(e){return a++,o.push([i.currentConstruct,i.containerState]),g(e)}function y(r){if(null===r){t&&b(),x(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){v(e.exit("chunkFlow"),!0),x(0),e.consume(n);return}return(0,d.HP)(n)?(e.consume(n),v(e.exit("chunkFlow")),a=0,i.interrupt=void 0,s):(e.consume(n),t)}(r)}function v(e,o){let s=i.sliceStream(e);if(o&&s.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(s),i.parser.lazy[e.start.line]){let e,n,o=t.events.length;for(;o--;)if(t.events[o][1].start.offset<r&&(!t.events[o][1].end||t.events[o][1].end.offset>r))return;let s=i.events.length,u=s;for(;u--;)if("exit"===i.events[u][0]&&"chunkFlow"===i.events[u][1].type){if(e){n=i.events[u][1].end;break}e=!0}for(x(a),o=s;o<i.events.length;)i.events[o][1].end={...n},o++;(0,l.m)(i.events,u+1,0,i.events.slice(s)),i.events.length=o}}function x(t){let n=o.length;for(;n-- >t;){let t=o[n];i.containerState=t[1],t[0].exit.call(i,e)}o.length=t}function b(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},h={tokenize:function(e,t,n){return(0,c.N)(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},g={partial:!0,tokenize:function(e,t,n){return function(t){return(0,d.On)(t)?(0,c.N)(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||(0,d.HP)(e)?t(e):n(e)}}},m={resolve:function(e){return s(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):(0,d.HP)(t)?e.check(y,l,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function l(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},y={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),
1(0,c.N)(e,i,"linePrefix")};function i(i){if(null===i||(0,d.HP)(i))return n(i);let l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},v={tokenize:function(e){let t=this,n=e.attempt(g,function(r){return null===r?void e.consume(r):(e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n)},e.attempt(this.parser.constructs.flowInitial,r,(0,c.N)(e,e.attempt(this.parser.constructs.flow,r,e.attempt(m,r)),"linePrefix")));return n;function r(r){return null===r?void e.consume(r):(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n)}}},x={resolveAll:w()},b=C("string"),_=C("text");function C(e){return{resolveAll:w("text"===e?k:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,l,o);return l;function l(e){return s(e)?i(e):o(e)}function o(e){return null===e?void t.consume(e):(t.enter("data"),t.consume(e),a)}function a(e){return s(e)?(t.exit("data"),i(e)):(t.consume(e),a)}function s(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function w(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function k(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r,i=e[n-1][1],l=t.sliceStream(i),o=l.length,a=-1,s=0;for(;o--;){let e=l[o];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)s++,a--;if(a)break;a=-1}else if(-2===e)r=!0,s++;else if(-1===e);else{o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let l={type:n===e.length||r||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?a:i.start._bufferIndex+a,_index:i.start._index+o,line:i.end.line,column:i.end.column-s,offset:i.end.offset-s},end:{...i.end}};i.end={...l.start},i.start.offset===i.end.offset?Object.assign(i,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}let E={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(l){var o;return e.enter("thematicBreak"),r=o=l,function l(o){return o===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),(0,d.On)(n)?(0,c.N)(e,l,"whitespace")(n):l(n))}(o)):i>=3&&(null===o||(0,d.HP)(o))?(e.exit("thematicBreak"),t(o)):n(o)}(o)}}},S={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(g,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,(0,c.N)(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!(0,d.On)(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine
1=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(A,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,(0,c.N)(e,e.attempt(S,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],l=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:(0,d.BM)(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(E,n,a)(t):a(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return(0,d.BM)(i)&&++o<10?(e.consume(i),t):(!r.interrupt||o<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),a(i)):n(i)}(t)}return n(t)};function a(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(g,r.interrupt?n:s,e.attempt(T,c,u))}
1function s(e){return r.containerState.initialBlankLine=!0,l++,c(e)}function u(t){return(0,d.On)(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),c):n(t)}function c(n){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},T={partial:!0,tokenize:function(e,t,n){let r=this;return(0,c.N)(e,function(e){let i=r.events[r.events.length-1];return!(0,d.On)(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},A={partial:!0,tokenize:function(e,t,n){let r=this;return(0,c.N)(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},N={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return(0,d.On)(t)?(0,c.N)(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(N,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return(0,d.On)(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function I(e,t,n,r,i,l,o,a,s){let u=s||1/0,c=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(l),e.consume(t),e.exit(l),f):null===t||32===t||41===t||(0,d.JQ)(t)?n(t):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),g(t))};function f(n){return 62===n?(e.enter(l),e.consume(n),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(a),f(t)):null===t||60===t||(0,d.HP)(t)?n(t):(e.consume(t),92===t?h:p)}function h(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function g(i){return!c&&(null===i||41===i||(0,d.Ee)(i))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(i)):c<u&&40===i?(e.consume(i),c++,g):41===i?(e.consume(i),c--,g):null===i||32===i||40===i||(0,d.JQ)(i)?n(i):(e.consume(i),92===i?m:g)}function m(t){return 40===t||41===t||92===t?(e.consume(t),g):g(t)}}function L(e,t,n,r,i,l){let o,a=this,s=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(l),u};function u(f){return s>999||null===f||91===f||93===f&&!o||94===f&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(f):93===f?(e.exit(l),e.enter(i),e.consume(f),e.exit(i),e.exit(r),t):(0,d.HP)(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(t){return null===t||91===t||93===t||(0,d.HP)(t)||s++>999?(e.exit("chunkString"),u(t)):(e.consume(t),o||(o=!(0,d.On)(t)),92===t?f:c)}function f(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}}function P(e,t,n,r,i,l){let o;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=40===t?41:t,a):n(t)};function a(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(l),s(n))}function s(t){return t===o?(e.exit(l),a(o)):null===t?n(t):(0,d.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),(0,c.N)(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(t))}function u(t){return t===o||null===t||(0,d.HP)(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?f:u)}function f(t){return t===o||92===t?(e.consume(t),u):u(t)}}function F(e,t){let n;return function r(i){return(0,d.HP)(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):(0,d.On)(i)?(0,c.N)(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function M(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let O={partial:!0,tokenize:function(e,t,n){return function(t){return(0,d.Ee)(t)?F(e,r)(t):n(t)};function r(t){return P(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return(0,d.On)(t)?(0,c.N)(e,l,"whitespace")(t):l(t)}function l(e){return null===e||(0,d.HP)(e)?t(e):n(e)}}},R={name:"codeIndented",tokenize:function(e,t,n){let r=this;
1return function(t){return e.enter("codeIndented"),(0,c.N)(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?l(n):(0,d.HP)(n)?e.attempt(D,t,l)(n):(e.enter("codeFlowValue"),function n(r){return null===r||(0,d.HP)(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function l(n){return e.exit("codeIndented"),t(n)}}},D={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):(0,d.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):(0,c.N)(e,l,"linePrefix",5)(t)}function l(e){let l=r.events[r.events.length-1];return l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?t(e):(0,d.HP)(e)?i(e):n(e)}}},V={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,l=e.length;for(;l--;)if("enter"===e[l][0]){if("content"===e[l][1].type){n=l;break}"paragraph"===e[l][1].type&&(r=l)}else"content"===e[l][1].type&&e.splice(l,1),i||"definition"!==e[l][1].type||(i=l);let o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",o,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=o,e.push(["exit",o,t]),e},tokenize:function(e,t,n){let r,i=this;return function(t){var o;let a,s=i.events.length;for(;s--;)if("lineEnding"!==i.events[s][1].type&&"linePrefix"!==i.events[s][1].type&&"content"!==i.events[s][1].type){a="paragraph"===i.events[s][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||a)?(e.enter("setextHeadingLine"),r=t,o=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),(0,d.On)(n)?(0,c.N)(e,l,"lineSuffix")(n):l(n))}(o)):n(t)};function l(r){return null===r||(0,d.HP)(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},H=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],B=["pre","script","style","textarea"],j={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(g,t,n)}}},z={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return(0,d.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},J={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},U={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r,i=this,l={partial:!0,tokenize:function(e,t,n){let l=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),(0,d.On)(t)?(0,c.N)(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(l++,e.consume(i),t):l>=a?(e.exit("codeFencedFenceSequence"),(0,d.On)(i)?(0,c.N)(e,u,"whitespace")(i):u(i)):n(i)}(t)):n(t)}function u(r){return null===r||(0,d.HP)(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},o=0,a=0;return function(t){var l=t;let u=i.events[i.events.length-1];return o=u&&"linePrefix"===u[1].type?u[2].sliceSerialize(u[1],!0).length:0,r=l,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(a++,e.consume(i),t):a<3?n(i):(e.exit("codeFencedFenceSequence"),(0,d.On)(i)?(0,c.N)(e,s,"whitespace")(i):s(i))}(l)};function s(l){return null===l||(0,d.HP)(l)?(e.exit("codeFencedFence"),i.interrupt?t(l):e.check(J,f,m)(l)):(e.enter("co
1deFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||(0,d.HP)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),s(i)):(0,d.On)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),(0,c.N)(e,u,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(l))}function u(t){return null===t||(0,d.HP)(t)?s(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||(0,d.HP)(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),s(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function f(t){return e.attempt(l,m,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h}function h(t){return o>0&&(0,d.On)(t)?(0,c.N)(e,g,"linePrefix",o+1)(t):g(t)}function g(t){return null===t||(0,d.HP)(t)?e.check(J,f,m)(t):(e.enter("codeFlowValue"),function t(n){return null===n||(0,d.HP)(n)?(e.exit("codeFlowValue"),g(n)):(e.consume(n),t)}(t))}function m(n){return e.exit("codeFenced"),t(n)}}};var W=n(67012);let K={name:"characterReference",tokenize:function(e,t,n){let r,i,l=this,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),r=31,i=d.lV,u(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=d.ok,u):(e.enter("characterReferenceValue"),r=7,i=d.BM,u(t))}function u(a){if(59===a&&o){let r=e.exit("characterReferenceValue");return i!==d.lV||(0,W.s)(l.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return i(a)&&o++<r?(e.consume(a),u):n(a)}}},$={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return(0,d.ol)(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},Z={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),(0,c.N)(e,t,"linePrefix")}}};var q=n(35101);let G={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&(0,l.m)(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,o,a=e.length,s=0;for(;a--;)if(n=e[a][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[a][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[a][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=a,"labelLink"!==n.type)){s=2;break}}else"labelEnd"===n.type&&(i=a);let u={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},d={type:"labelText",start:{...e[r+s+2][1].end},end:{...e[i-2][1].start}};return o=[["enter",u,t],["enter",c,t]],o=(0,l.V)(o,e.slice(r+1,r+s+3)),o=(0,l.V)(o,[["enter",d,t]]),o=(0,l.V)(o,(0,q.W)(t.parser.constructs.insideSpan.null,e.slice(r+s+4,i-3),t)),o=(0,l.V)(o,[["exit",d,t],e[i-2],e[i-1],["exit",c,t]]),o=(0,l.V)(o,e.slice(i+1)),o=(0,l.V)(o,[["exit",u,t]]),(0,l.m)(e,r,e.length,o),e},tokenize:function(e,t,n){let r,i,l=this,o=l.events.length;for(;o--;)if(("labelImage"===l.events[o][1].type||"labelLink"===l.events[o][1].type)&&!l.events[o][1]._balanced){r=l.events[o][1];break}return function(t){return r?r._inactive?c(t):(i=l.parser.defined.includes(M(l.sliceSerialize({start:r.end,end:l.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a):n(t)};function a(t){return 40===t?e.attempt(Y,u,i?u:c)(t):91===t?e.attempt(X,u,i?s:c)(t):i?u(t):c(t)}function s(t){return e.attempt(Q,u,c)(t)}function u(e){return t(e)}function c(e){return r._balanced=!0,n(e)}}},Y={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return(0,d.Ee)(t)?F(e,i)(t):i(t)}function i(t){return 41===t?u(t):I(e,l,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function l(t){return(0,d.Ee)(t)?F(e,a)(t):u(t)}function o(e){return n(e)}function a(t){return 34===t||39===t||40===t?P(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):u(t)}function s(t){return(0,d.Ee)(t)?F(e,u)(t):u(t)}function u(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},X={tokenize:function(e,t,n){let r=this;return function(t){return L.call(r,e,i,l,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(M(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function l(e){return n(e)}}},Q={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},ee={name:"labelStartImage",resolveAll:G.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),l):n(t)}function l(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};var et=n(79941);let en={name:"attention",resolveAll:function(e,t){let n,r,i,o,a,s,u,c,d=-1;for(;++d<e.length;)if("enter"===e[d][0]&&"attentionSequence"===e[d][1].type&&e[d][1]._close){for(n=d;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[
1n][1]).charCodeAt(0)===t.sliceSerialize(e[d][1]).charCodeAt(0)){if((e[n][1]._close||e[d][1]._open)&&(e[d][1].end.offset-e[d][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[d][1].end.offset-e[d][1].start.offset)%3))continue;s=e[n][1].end.offset-e[n][1].start.offset>1&&e[d][1].end.offset-e[d][1].start.offset>1?2:1;let f={...e[n][1].end},p={...e[d][1].start};er(f,-s),er(p,s),o={type:s>1?"strongSequence":"emphasisSequence",start:f,end:{...e[n][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[d][1].start},end:p},i={type:s>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[d][1].start}},r={type:s>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[n][1].end={...o.start},e[d][1].start={...a.end},u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=(0,l.V)(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=(0,l.V)(u,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=(0,l.V)(u,(0,q.W)(t.parser.constructs.insideSpan.null,e.slice(n+1,d),t)),u=(0,l.V)(u,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[d][1].end.offset-e[d][1].start.offset?(c=2,u=(0,l.V)(u,[["enter",e[d][1],t],["exit",e[d][1],t]])):c=0,(0,l.m)(e,n-1,d-n+3,u),d=n+u.length-c-2;break}}for(d=-1;++d<e.length;)"attentionSequence"===e[d][1].type&&(e[d][1].type="data");return e},tokenize:function(e,t){let n,r=this.parser.constructs.attentionMarkers.null,i=this.previous,l=(0,et.S)(i);return function(o){return n=o,e.enter("attentionSequence"),function o(a){if(a===n)return e.consume(a),o;let s=e.exit("attentionSequence"),u=(0,et.S)(a),c=!u||2===u&&l||r.includes(a),d=!l||2===l&&u||r.includes(i);return s._open=!!(42===n?c:c&&(l||!d)),s._close=!!(42===n?d:d&&(u||!c)),t(a)}(o)}}};function er(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let ei={name:"labelStartLink",resolveAll:G.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},el={42:S,43:S,45:S,48:S,49:S,50:S,51:S,52:S,53:S,54:S,55:S,56:S,57:S,62:N},eo={91:{name:"definition",tokenize:function(e,t,n){let r,i=this;return function(t){var r;return e.enter("definition"),r=t,L.call(i,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(r)};function l(t){return(r=M(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):n(t)}function o(t){return(0,d.Ee)(t)?F(e,a)(t):a(t)}function a(t){return I(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(O,u,u)(t)}function u(t){return(0,d.On)(t)?(0,c.N)(e,f,"whitespace")(t):f(t)}function f(l){return null===l||(0,d.HP)(l)?(e.exit("definition"),i.parser.defined.push(r),t(l)):n(l)}}}},ea={[-2]:R,[-1]:R,32:R},es={35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,o=3;return"whitespace"===e[3][1].type&&(o+=2),i-2>o&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4),i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},(0,l.m)(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){var l;return e.enter("atxHeading"),l=i,e.enter("atxHeadingSequence"),function i(l){return 35===l&&r++<6?(e.consume(l),i):null===l||(0,d.Ee)(l)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||(0,d.HP)(r)?(e.exit("atxHeading"),t(r)):(0,d.On)(r)?(0,c.N)(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||(0,d.Ee)(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(l)):n(l)}(l)}}},42:E,45:[V,E],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let r,i,l,o,a,s=this;return function(t){var n;return n=t,e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(n),u};function u(o){return 33===o?(e.consume(o),c):47===o?(e.consume(o),i=!0,h):63===o?(e.consume(o),r=3,s.interrupt?t:F):(0,d.CW)(o)?(e.consume(o),l=String.fromCharCode(o),g):n(o)}function c(i){return 45===i?(e.consume(i),r=2,f):91===i?(e.consume(i),r=5,o=0,p):(0,d.CW)(i)?(e.consume(i),r=4,s.interrupt?t:F):n(i)}function f(r){return 45===r?(e.consume(r),s.interrupt?t:F):n(r)}function p(r){let i="CDATA[";return r===i.charCodeAt(o++)?(e.consume(r),o===i.length)?s.interrupt?t:E:p:n(r)}function h(t){return(0,d.CW)(t)?(e.consume(t),l=String.fromCharCode(t),g):n(t)}function g(o){if(null===o||47===o||62===o||(0,d.Ee)(o)){let a=47===o,u=l.toLowerCase();return!a&&!i&&B.includes(u)?(r=1,s.interrupt?t(o):E(o)):H.includes(l.toLowerCase())?(r=6,a)?(e.consume(o),m):s.interrupt?t(o):E(o):(r=7,s.interrupt&&!s.parser.lazy[s.now().line]?n(o):i?function t(n){return(0,d.On)(n)?(e.consume(n),t):w(n)}(o):y(o))}return 45===o||(0,d.lV)(o)?(e.consume(o),l+=String.fromCharCode(o),g):n(o)}function m(r){return 62===r?(e.consume(r),s.interrupt?t:E):n(r)}function y(t){return 47===t?(e.consume(t),w):58===t||95===t||(0,d.CW)(t)?(e.consume(t),v):(0,d.On)(t)?(e.consume(t),y):w(t)}function v(t){return 45===t||46===t||58===t||95===t||(0,d.lV)(t)?(e.consume(t),v):x(t)}function x(t){return 61===t?(e.consume(t),b):(0,d.On)(t)?(e.consume(t),x):y(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,_):(0,d.On)(t)?(e.consume(t),b):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||(0,d.Ee)(n)?x(n):(e.consume(n),t)}(t)}function _(t){return t===a?(e.consume(t),a=null,C):null===t||(0,d.HP)(t)?n(t):(e.consume(t),_)}function C(e){return 47===e||62===e||(0,d.On)(e)?y(e):n(e)}function w(t){return 62===t?(e.consume(t),k):n(t)}function k(t){return null===t||(0,d.HP)(t)?E(t):(0,d.On)(t)?(e.consume(t),k):n(t)}function E(t){return 45===t&&2===r?(e.consume(t),N):60===t&&1===r?(e.consume(t),I):62===t&&4===r?(e.consume(t),M):63===t&&3===r?(e.consume(t),F):93===t&&5===r?(e.consume(t),P):(0,d.HP)(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(j,O,S)(t)):null===t||(0,d.HP)(t)?(e.exit("htmlFlowData"),S(t)):(e.consume(t),E)}function S(t){return e.check(z,T,O)(t)}function T(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),A}function A(t){return null===t||(0,d.HP)(t)?S(t):(e.enter("htmlFlowData"),E(t))}function N(t){return 45===t?(e.consume(t),F):E(t)}function I(t){return 47===t?(e.consume(t),l="",L):E(t)}function L(t){if(62===t){let n=l.toLowerCase();return B.includes(n)?(e.consume(t),M):E(t)}return(0,d.CW)(t)&&l.length<8?(e.consume(t),l+=String.fromCharCode(t),L):E(t)}function P(t){return 93===t?(e.consume(t),F):E(t)}function F(t){return 62===t?(e.consume(t),M):45===t&&2===r?(e.consume(t),F):E(t)}function M(t){return null===t||(0,d.HP)(t)?(e.exit("htmlFlowData"),O(t)):(e.consume(t),M)}function O(n){return e.exit("htmlFlow"),t(n)}}},61:V,95:E,96:U,126:U},eu={38:K,92:$}
1,ec={[-5]:Z,[-4]:Z,[-3]:Z,33:ee,38:K,42:en,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return(0,d.CW)(t)?(e.consume(t),l):64===t?n(t):a(t)}function l(t){return 43===t||45===t||46===t||(0,d.lV)(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,o):(43===n||45===n||46===n||(0,d.lV)(n))&&r++<32?(e.consume(n),t):(r=0,a(n))}(t)):a(t)}function o(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||(0,d.JQ)(r)?n(r):(e.consume(r),o)}function a(t){return 64===t?(e.consume(t),s):(0,d.cx)(t)?(e.consume(t),a):n(t)}function s(i){return(0,d.lV)(i)?function i(l){return 46===l?(e.consume(l),r=0,s):62===l?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(l),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(l){if((45===l||(0,d.lV)(l))&&r++<63){let n=45===l?t:i;return e.consume(l),n}return n(l)}(l)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,l,o=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),C):63===t?(e.consume(t),b):(0,d.CW)(t)?(e.consume(t),k):n(t)}function s(t){return 45===t?(e.consume(t),u):91===t?(e.consume(t),i=0,g):(0,d.CW)(t)?(e.consume(t),x):n(t)}function u(t){return 45===t?(e.consume(t),h):n(t)}function f(t){return null===t?n(t):45===t?(e.consume(t),p):(0,d.HP)(t)?(l=f,P(t)):(e.consume(t),f)}function p(t){return 45===t?(e.consume(t),h):f(t)}function h(e){return 62===e?L(e):45===e?p(e):f(e)}function g(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?m:g):n(t)}function m(t){return null===t?n(t):93===t?(e.consume(t),y):(0,d.HP)(t)?(l=m,P(t)):(e.consume(t),m)}function y(t){return 93===t?(e.consume(t),v):m(t)}function v(t){return 62===t?L(t):93===t?(e.consume(t),v):m(t)}function x(t){return null===t||62===t?L(t):(0,d.HP)(t)?(l=x,P(t)):(e.consume(t),x)}function b(t){return null===t?n(t):63===t?(e.consume(t),_):(0,d.HP)(t)?(l=b,P(t)):(e.consume(t),b)}function _(e){return 62===e?L(e):b(e)}function C(t){return(0,d.CW)(t)?(e.consume(t),w):n(t)}function w(t){return 45===t||(0,d.lV)(t)?(e.consume(t),w):function t(n){return(0,d.HP)(n)?(l=t,P(n)):(0,d.On)(n)?(e.consume(n),t):L(n)}(t)}function k(t){return 45===t||(0,d.lV)(t)?(e.consume(t),k):47===t||62===t||(0,d.Ee)(t)?E(t):n(t)}function E(t){return 47===t?(e.consume(t),L):58===t||95===t||(0,d.CW)(t)?(e.consume(t),S):(0,d.HP)(t)?(l=E,P(t)):(0,d.On)(t)?(e.consume(t),E):L(t)}function S(t){return 45===t||46===t||58===t||95===t||(0,d.lV)(t)?(e.consume(t),S):function t(n){return 61===n?(e.consume(n),T):(0,d.HP)(n)?(l=t,P(n)):(0,d.On)(n)?(e.consume(n),t):E(n)}(t)}function T(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,A):(0,d.HP)(t)?(l=T,P(t)):(0,d.On)(t)?(e.consume(t),T):(e.consume(t),N)}function A(t){return t===r?(e.consume(t),r=void 0,I):null===t?n(t):(0,d.HP)(t)?(l=A,P(t)):(e.consume(t),A)}function N(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||(0,d.Ee)(t)?E(t):(e.consume(t),N)}function I(e){return 47===e||62===e||(0,d.Ee)(e)?E(e):n(e)}function L(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function P(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),F}function F(t){return(0,d.On)(t)?(0,c.N)(e,M,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):M(t)}function M(t){return e.enter("htmlTextData"),l(t)}}}],91:ei,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return(0,d.HP)(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},$],93:G,95:en,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,l=0;
1return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),l++,t):(e.exit("codeTextSequence"),o(n))}(t)};function o(s){return null===s?n(s):32===s?(e.enter("space"),e.consume(s),e.exit("space"),o):96===s?(i=e.enter("codeTextSequence"),r=0,function n(o){return 96===o?(e.consume(o),r++,n):r===l?(e.exit("codeTextSequence"),e.exit("codeText"),t(o)):(i.type="codeTextData",a(o))}(s)):(0,d.HP)(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):(e.enter("codeTextData"),a(s))}function a(t){return null===t||32===t||96===t||(0,d.HP)(t)?(e.exit("codeTextData"),o(t)):(e.consume(t),a)}}}},ed={null:[en,x]},ef={null:[42,95]},ep={null:[]},eh=/[\0\t\n\r]/g;var eg=n(64702),em=n(64749),ey=n(1520);let ev={}.hasOwnProperty;function ex(e,t,n){let o,a,c,h;return t&&"object"==typeof t&&(n=t,t=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(v),autolinkProtocol:c,autolinkEmail:c,atxHeading:r(g),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:c,characterReference:c,codeFenced:r(h),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:r(h,l),codeText:r(function(){return{type:"inlineCode",value:""}},l),codeTextData:c,data:c,codeFlowValue:c,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(y,l),htmlFlowData:c,htmlText:r(y,l),htmlTextData:c,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:l,link:r(v),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(x,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(x),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:r(g),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:a(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];t.depth||(t.depth=this.sliceSerialize(e).length)},autolink:a(),autolinkEmail:function(e){d.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){d.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:a(),characterEscapeValue:d,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){let t,n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=(0,eg.C)(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=(0,W.s)(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=eb(e.end)},codeFenced:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:d,codeIndented:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:d,data:d,definition:a(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=M(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:a(),hardBreakEscape:a(f),hardBreakTrailing:a(f),htmlFlow:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:d,htmlText:a(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:d,image:a(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,"link"===n.type?n.children=e.children:n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=(0,em.s)(t),n.identifier=M(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=eb(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.t
1ype)&&(c.call(this,e),d.call(this,e))},link:a(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=M(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:a(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:a(),thematicBreak:a()}};!function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(ev.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}}(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},i={stack:[r],tokenStack:[],config:t,enter:o,exit:s,buffer:l,resume:u,data:n},a=[],c=-1;for(;++c<e.length;)("listOrdered"===e[c][1].type||"listUnordered"===e[c][1].type)&&("enter"===e[c][0]?a.push(c):c=function(e,t,n){let r,i,l,o,a=t-1,s=-1,u=!1;for(;++a<=n;){let t=e[a];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,o=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||o||s||l||(l=a),o=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:o=void 0}if(!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let o=a;for(i=void 0;o--;){let t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",u=!0),t[1].type="lineEnding",i=o}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}l&&(!i||l<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||a,0,["exit",r,t[2]]),a++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(a,0,["enter",i,t[2]]),a++,n++,l=void 0,o=!0}}}return e[t][1]._spread=u,n}(e,a.pop(),c));for(c=-1;++c<e.length;){let n=t[e[c][0]];ev.call(n,e[c][1].type)&&n[e[c][1].type].call(Object.assign({sliceSerialize:e[c][2].sliceSerialize},i),e[c][1])}if(i.tokenStack.length>0){let e=i.tokenStack[i.tokenStack.length-1];(e[1]||e_).call(i,void 0,e[0])}for(r.position={start:eb(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:eb(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c<t.transforms.length;)r=t.transforms[c](r)||r;return r};function r(e,t){return function(n){o.call(this,e(n),n),t&&t.call(this,n)}}function l(){this.stack.push({type:"fragment",children:[]})}function o(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:eb(t.start),end:void 0}}function a(e){return function(t){e&&e.call(this,t),s.call(this,t)}}function s(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||e_).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+(0,ey.L)({start:e.start,end:e.end})+"): it’s not open");n.position.end=eb(e.end)}function u(){return(0,i.d)(this.stack.pop())}function c(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:eb(e.start),end:void 0},t.push(n)),this.stack.push(n)}function d(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=eb(e.end)}function f(){this.data.atHardBreak=!0}function p(e){this.data.characterReferenceType=e.type}function h(){return{type:"code",lang:null,meta:null,value:""}}function g(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function y(){return{type:"html",value:""}}function v(){return{type:"link",title:null,url:"",children:[]}}function x(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(n)(function(e){for(;!s(e););return e}((function(e){let t={constructs:function(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let r,i=(u.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];if(o)for(r in o){u.call(i,r)||(i[r]=[]);let e=o[r];!function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);(0,l.m)(e,0,0,r)}(i[r],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}([r,...(e||{}).extensions||[]]),content:n(f),defined:[],document:n(p),flow:n(v),lazy:{},string:n(b),text:n(_)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,c
1olumn:n&&n.column||1,offset:n&&n.offset||0},i={},o=[],a=[],s=[],u={attempt:m(function(e,t){y(e,t.from)}),check:m(g),consume:function(e){(0,d.HP)(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,v()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=h(),c.events.push(["enter",n,c]),s.push(n),n},exit:function(e){let t=s.pop();return t.end=h(),c.events.push(["exit",t,c]),t},interrupt:m(g,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,v()},events:[],now:h,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let l,o=e[r];if("string"==typeof o)l=o;else switch(o){case -5:l="\r";break;case -4:l="\n";break;case -3:l="\r\n";break;case -2:l=t?" ":"	";break;case -1:if(!t&&n)continue;l=" ";break;default:l=String.fromCharCode(o)}n=-2===o,i.push(l)}return i.join("")}(p(e),t)},sliceStream:p,write:function(e){return(a=(0,l.V)(a,e),function(){let e;for(;r._index<a.length;){let n=a[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),f=f(t)}else f=f(n)}}(),null!==a[a.length-1])?[]:(y(t,0),c.events=(0,q.W)(o,c.events,c),c.events)}},f=t.tokenize.call(c,u);return t.resolveAll&&o.push(t),c;function p(e){return function(e,t){let n,r=t.start._index,i=t.start._bufferIndex,l=t.end._index,o=t.end._bufferIndex;if(r===l)n=[e[r].slice(i,o)];else{if(n=e.slice(r,l),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}o>0&&n.push(e[l].slice(0,o))}return n}(a,e)}function h(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:l}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:l}}function g(e,t){t.restore()}function m(e,t){return function(n,i,l){var o;let a,d,f,p;return Array.isArray(n)?g(n):"tokenize"in n?g([n]):(o=n,function(e){let t=null!==e&&o[e],n=null!==e&&o.null;return g([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(n)?n:n?[n]:[]])(e)});function g(e){return(a=e,d=0,0===e.length)?l:m(e[d])}function m(e){return function(n){return(p=function(){let e=h(),t=c.previous,n=c.currentConstruct,i=c.events.length,l=Array.from(s);return{from:i,restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=i,s=l,v()}}}(),f=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name))?x(n):e.tokenize.call(t?Object.assign(Object.create(c),t):c,u,y,x)(n)}}function y(t){return e(f,p),i}function x(e){return(p.restore(),++d<a.length)?m(a[d]):l}}}function y(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&(0,l.m)(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function v(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(n).document().write((a=1,c="",h=!0,function(e,t,n){let r,i,l,s,u,d=[];for(e=c+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),l=0,c="",h&&(65279===e.charCodeAt(0)&&l++,h=void 0);l<e.length;){if(eh.lastIndex=l,s=(r=eh.exec(e))&&void 0!==r.index?r.index:e.length,u=e.charCodeAt(s),!r){c=e.slice(l);break}if(10===u&&l===s&&o)d.push(-3),o=void 0;else switch(o&&(d.push(-5),o=void 0),l<s&&(d.push(e.slice(l,s)),a+=s-l),u){case 0:d.push(65533),a++;break;case 9:for(i=4*Math.ceil(a/4),d.push(-2);a++<i;)d.push(-1);break;case 10:d.push(-4),a=1;break;default:o=!0,a=1}l=s+1}return n&&(o&&d.push(-5),c&&d.push(c),d.push(null)),d})(e,t,!0))))}function eb(e){return{line:e.line,column:e.column,offset:e.offset}}function e_(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+(0,ey.L)({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+(0,ey.L)({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+(0,ey.L)({start:t.start,end:t.end})+") is still open")}},35933:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};
1Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,i.default)(e),l="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:i}=e;l?t(r,i,e):i&&((n=n||{})[r]=i)}),n};let i=r(n(16508))},36292:()=>{!function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism)},36389:(e,t,n)=>{"use strict";n.d(t,{UU:()=>d,jD:()=>c,ni:()=>u});let r=/[$_\p{ID_Start}]/u,i=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,l=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,o=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,a=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,s={};function u(e){return!!e&&r.test(String.fromCodePoint(e))}function c(e,t){let n=(t||s).jsx?l:i;return!!e&&n.test(String.fromCodePoint(e))}function d(e,t){return((t||s).jsx?a:o).test(e)}},36407:(e,t,n)=>{"use strict";n.d(t,{OO:()=>h,xO:()=>g});var r=n(87693),i=n(19735),l=n(58030),o=n(39303),a=n(83630),s=n(48387);let u={testLexicalNode:r.Pi,visitLexicalNode:({lexicalNode:e,actions:t})=>{let n=parseInt(e.getTag()[1],10);t.addAndStepInto("heading",{depth:n})}},c={testNode:"heading",visitNode:function({mdastNode:e,actions:t}){t.addAndStepInto((0,r.fi)(`h${e.depth}`))}},d=["Digit0","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6"],f=[1,2,3,4,5,6],p={Digit1:1,Digit2:2,Digit3:3,Digit4:4,Digit5:5,Digit6:6},h=(0,i.fh)(f,e=>{e.pub(s.Jl,t=>t.registerCommand(l.R18,n=>{let{code:i,ctrlKey:o,metaKey:u,altKey:c}=n;return!!(d.includes(i)&&(0,a.oQ)(u,o))&&!!c&&(n.preventDefault(),t.update(()=>{if("Digit0"===i)e.pub(s.vR,()=>(0,l.lJ7)());else{let t=e.getValue(h),n=p[i];t.includes(n)&&e.pub(s.vR,()=>(0,r.fi)(`h${n}`))}}),!0)},l.AcJ))}),g=(0,o.Z)({init(e){e.pubIn({[s.$0]:"headings",[s.R1]:c,[s.q]:r.jL,[s.iI]:u})},update(e,t){e.pub(h,(null==t?void 0:t.allowedHeadingLevels)??f)}})},37922:(e,t,n)=>{"use strict";n.d(t,{B:()=>s});var r,i=n(25118),l=n(48914),o=(r||(r=n.t(i,2)))[" useId ".trim().toString()]||(()=>void 0),a=0;function s(e){let[t,n]=i.useState(o());return(0,l.N)(()=>{e||n(e=>e??String(a++))},[e]),e||(t?`radix-${t}`:"")}},38459:(e,t,n)=>{e.exports=n(22229)()},38892:()=>{Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source)+"|"+/(?:\d+(?:_\d+)*(?
1:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript},39303:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o,g:()=>a});var r=n(25118),i=n(19735),l=n(60194);function o(e){return function(t){return{init:n=>{var r;return null==(r=e.init)?void 0:r.call(e,n,t)},postInit:n=>{var r;return null==(r=e.postInit)?void 0:r.call(e,n,t)},update:n=>{var r;return null==(r=e.update)?void 0:r.call(e,n,t)}}}}function a({children:e,plugins:t}){let n=r.useMemo(()=>(0,l.Mi)(new i.Mx,e=>{var n,r;for(let r of t)null==(n=r.init)||n.call(r,e);for(let n of t)null==(r=n.postInit)||r.call(n,e)}),[]);return r.useEffect(()=>{var e;
1for(let r of t)null==(e=r.update)||e.call(r,n)}),r.createElement(i.Zb.Provider,{value:n},e)}},39461:(e,t,n)=>{"use strict";function r(e,t,n,r){let i,l=e.length,o=0;if(t=t<0?-t>l?0:l+t:t>l?l:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);o<r.length;)(i=r.slice(o,o+1e4)).unshift(t,0),e.splice(...i),o+=1e4,t+=1e4}function i(e,t){return e.length>0?(r(e,e.length,0,t),e):t}n.d(t,{V:()=>i,m:()=>r})},40170:(e,t,n)=>{"use strict";n.d(t,{i:()=>a});var r,i=n(25118),l=n(48914),o=(r||(r=n.t(i,2)))[" useInsertionEffect ".trim().toString()]||l.N;function a({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){let[l,a,s]=function({defaultProp:e,onChange:t}){let[n,r]=i.useState(e),l=i.useRef(n),a=i.useRef(t);return o(()=>{a.current=t},[t]),i.useEffect(()=>{l.current!==n&&(a.current?.(n),l.current=n)},[n,l]),[n,r,a]}({defaultProp:t,onChange:n}),u=void 0!==e,c=u?e:l;{let t=i.useRef(void 0!==e);i.useEffect(()=>{let e=t.current;if(e!==u){let t=u?"controlled":"uncontrolled";console.warn(`${r} is changing from ${e?"controlled":"uncontrolled"} to ${t}. 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.`)}t.current=u},[u,r])}return[c,i.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&s.current?.(n)}else a(t)},[u,e,a,s])]}Symbol("RADIX:SYNC_STATE")},40195:(e,t,n)=>{"use strict";function r(e,t,n){if(!t.has(e))throw TypeError("attempted to "+n+" private field on non-instance");return t.get(e)}function i(e,t){var n=r(e,t,"get");return n.get?n.get.call(e):n.value}function l(e,t,n){var i=r(e,t,"set");if(i.set)i.set.call(e,n);else{if(!i.writable)throw TypeError("attempted to set read only private field");i.value=n}return n}n.d(t,{N:()=>f});var o,a=n(25118),s=n(11215),u=n(59439),c=n(78465),d=n(32846);function f(e){let t=e+"CollectionProvider",[n,r]=(0,s.A)(t),[i,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=e=>{let{scope:t,children:n}=e,r=a.useRef(null),l=a.useRef(new Map).current;return(0,d.jsx)(i,{scope:t,itemMap:l,collectionRef:r,children:n})};o.displayName=t;let f=e+"CollectionSlot",p=(0,c.TL)(f),h=a.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=l(f,n),o=(0,u.s)(t,i.collectionRef);return(0,d.jsx)(p,{ref:o,children:r})});h.displayName=f;let g=e+"CollectionItemSlot",m="data-radix-collection-item",y=(0,c.TL)(g),v=a.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=a.useRef(null),s=(0,u.s)(t,o),c=l(g,n);return a.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,d.jsx)(y,{...{[m]:""},ref:s,children:r})});return v.displayName=g,[{Provider:o,Slot:h,ItemSlot:v},function(t){let n=l(e+"CollectionConsumer",t);return a.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(m,"]")));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},r]}var p=new WeakMap;function h(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let n=function(e,t){let n=e.length,r=g(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}(e,t);return -1===n?void 0:e[n]}function g(e){return e!=e||0===e?0:Math.trunc(e)}o=new WeakMap,class e extends Map{set(e,t){return p.get(this)&&(this.has(e)?i(this,o)[i(this,o).indexOf(e)]=e:i(this,o).push(e)),super.set(e,t),this}insert(e,t,n){let r,l=this.has(t),a=i(this,o).length,s=g(e),u=s>=0?s:a+s,c=u<0||u>=a?-1:u;if(c===this.size||l&&c===this.size-1||-1===c)return this.set(t,n),this;let d=this.size+ +!l;s<0&&u++;let f=[...i(this,o)],p=!1;for(let e=u;e<d;e++)if(u===e){let i=f[e];f[e]===t&&(i=f[e+1]),l&&this.delete(t),r=this.get(i),this.set(t,n)}else{p||f[e-1]!==t||(p=!0);let n=f[p?e:e-1],i=r;r=this.get(n),this.delete(n),this.set(n,i)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=i(this,o).indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=i(this,o).indexOf(e);return -1===r?this:this.insert(r,t,n)}after(e){let t=i(this,o).indexOf(e);if(-1!==(t=-1===t||t===this.size-1?-1:t+1))return this.entryAt(t)}setAfter(e,t,n){let r=i(this,o).indexOf(e);return -1===r?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return l(this,o,[]),super.clear()}delete(e){let t=super.delete(e);return t&&i(this,o).splice(i(this,o).indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(e){let t=h(i(this,o),e);if(void 0!==t)return this.get(t)}entryAt(e){let t=h(i(this,o),e);if(void 0!==t)return[t,this.get(t)]}indexOf(e){return i(this,o).indexOf(e)}keyAt(e){return h(i(this,o),e)}from(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}
1}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return -1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,i]=t,l=0,o=null!=i?i:this.at(0);for(let e of this)o=0===l&&1===t.length?e:Reflect.apply(r,this,[o,e,l,this]),l++;return o}reduceRight(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let[r,i]=t,l=null!=i?i:this.at(-1);for(let e=this.size-1;e>=0;e--){let n=this.at(e);l=e===this.size-1&&1===t.length?n:Reflect.apply(r,this,[l,n,e,this])}return l}toSorted(t){return new e([...this.entries()].sort(t))}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];let i=[...this.entries()];return i.splice(...n),new e(i)}slice(t,n){let r=new e,i=this.size-1;if(void 0===t)return r;t<0&&(t+=this.size),void 0!==n&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}constructor(e){super(e),function(e,t,n){if(t.has(e))throw TypeError("Cannot initialize the same private elements twice on an object");t.set(e,n)}(this,o,{writable:!0,value:void 0}),l(this,o,[...super.keys()]),p.set(this,!0)}}},40225:(e,t,n)=>{"use strict";function r(e,t){return i(e,t.inConstruct,!0)&&!i(e,t.notInConstruct,!1)}function i(e,t,n){if("string"==typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}n.d(t,{q:()=>r})},43113:(e,t,n)=>{"use strict";n.d(t,{gx:()=>ey,bL:()=>em,wv:()=>e_,fp:()=>eb,hf:()=>ex});var r,i=n(25118),l=n(92701),o=n(11215),a=n(40195),s=n(59439),u=n(37922),c=n(11064),d=n(29646),f=n(40170),p=n(66584),h=n(32846),g="rovingFocusGroup.onEntryFocus",m={bubbles:!1,cancelable:!0},y="RovingFocusGroup",[v,x,b]=(0,a.N)(y),[_,C]=(0,o.A)(y,[b]),[w,k]=_(y),E=i.forwardRef((e,t)=>(0,h.jsx)(v.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(v.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,h.jsx)(S,{...e,ref:t})})}));E.displayName=y;var S=i.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:a,currentTabStopId:u,defaultCurrentTabStopId:v,onCurrentTabStopIdChange:b,onEntryFocus:_,preventScrollOnEntryFocus:C=!1,...k}=e,E=i.useRef(null),S=(0,s.s)(t,E),T=(0,p.jH)(a),[A,N]=(0,f.i)({prop:u,defaultProp:null!=v?v:null,onChange:b,caller:y}),[L,P]=i.useState(!1),F=(0,d.c)(_),M=x(n),O=i.useRef(!1),[R,D]=i.useState(0);return i.useEffect(()=>{let e=E.current;if(e)return e.addEventListener(g,F),()=>e.removeEventListener(g,F)},[F]),(0,h.jsx)(w,{scope:n,orientation:r,dir:T,loop:o,currentTabStopId:A,onItemFocus:i.useCallback(e=>N(e),[N]),onItemShiftTab:i.useCallback(()=>P(!0),[]),onFocusableItemAdd:i.useCallback(()=>D(e=>e+1),[]),onFocusableItemRemove:i.useCallback(()=>D(e=>e-1),[]),children:(0,h.jsx)(c.sG.div,{tabIndex:L||0===R?-1:0,"data-orientation":r,...k,ref:S,style:{outline:"none",...e.style},onMouseDown:(0,l.mK)(e.onMouseDown,()=>{O.current=!0}),onFocus:(0,l.mK)(e.onFocus,e=>{let t=!O.current;if(e.target===e.currentTarget&&t&&!L){let t=new CustomEvent(g,m);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=M().filter(e=>e.focusable);I([e.find(e=>e.active),e.find(e=>e.id===A),...e].filter(Boolean).map(e=>e.ref.current),C)}}O.current=!1}),onBlur:(0,l.mK)(e.onBlur,()=>P(!1))})})}),T="RovingFocusGroupItem",A=i.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:a,children:s,...d}=e,f=(0,u.B)(),p=a||f,g=k(T,n),m=g.currentTabStopId===p,y=x(n),{onFocusableItemAdd:b,onFocusableItemRemove:_,currentTabStopId:C}=g;return i.useEffect(()=>{if(r)return b(),()=>_()},[r,b,_]),(0,h.jsx)(v.ItemSlot,{scope:n,id:p,focusable:r,active:o,children:(0,h.jsx)(c.sG.span,{tabIndex:m?0:-1,"data-orientation":g.orientation,...d,ref:t,onMouseDown:(0,l.mK)(e.onMouseDown,e=>{r?g.onItemFocus(p):e.preventDefault()}),onFocus:(0,l.mK)(e.onFocus,()=>g.onItemFocus(p)),onKeyDown:(0,l.mK)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void g.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let i=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(i))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(i)))return N[i]}(e,g.orientation,g.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=y().filter(e=>
1e.focusable).map(e=>e.ref.current);if("last"===t)n.reverse();else if("prev"===t||"next"===t){"prev"===t&&n.reverse();let r=n.indexOf(e.currentTarget);n=g.loop?function(e,t){return e.map((n,r)=>e[(t+r)%e.length])}(n,r+1):n.slice(r+1)}setTimeout(()=>I(n))}}),children:"function"==typeof s?s({isCurrentTabStop:m,hasTabStop:null!=C}):s})})});A.displayName=T;var N={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function I(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var L="horizontal",P=["horizontal","vertical"],F=i.forwardRef((e,t)=>{var n;let{decorative:r,orientation:i=L,...l}=e,o=(n=i,P.includes(n))?i:L;return(0,h.jsx)(c.sG.div,{"data-orientation":o,...r?{role:"none"}:{"aria-orientation":"vertical"===o?o:void 0,role:"separator"},...l,ref:t})});F.displayName="Separator";var M="Toggle",O=i.forwardRef((e,t)=>{let{pressed:n,defaultPressed:r,onPressedChange:i,...o}=e,[a,s]=(0,f.i)({prop:n,onChange:i,defaultProp:null!=r&&r,caller:M});return(0,h.jsx)(c.sG.button,{type:"button","aria-pressed":a,"data-state":a?"on":"off","data-disabled":e.disabled?"":void 0,...o,ref:t,onClick:(0,l.mK)(e.onClick,()=>{e.disabled||s(!a)})})});O.displayName=M;var R="ToggleGroup",[D,V]=(0,o.A)(R,[C]),H=C(),B=i.forwardRef((e,t)=>{let{type:n,...r}=e;if("single"===n)return(0,h.jsx)(J,{...r,ref:t});if("multiple"===n)return(0,h.jsx)(U,{...r,ref:t});throw Error("Missing prop `type` expected on `".concat(R,"`"))});B.displayName=R;var[j,z]=D(R),J=i.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:l=()=>{},...o}=e,[a,s]=(0,f.i)({prop:n,defaultProp:null!=r?r:"",onChange:l,caller:R});return(0,h.jsx)(j,{scope:e.__scopeToggleGroup,type:"single",value:i.useMemo(()=>a?[a]:[],[a]),onItemActivate:s,onItemDeactivate:i.useCallback(()=>s(""),[s]),children:(0,h.jsx)($,{...o,ref:t})})}),U=i.forwardRef((e,t)=>{let{value:n,defaultValue:r,onValueChange:l=()=>{},...o}=e,[a,s]=(0,f.i)({prop:n,defaultProp:null!=r?r:[],onChange:l,caller:R}),u=i.useCallback(e=>s(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[s]),c=i.useCallback(e=>s(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[s]);return(0,h.jsx)(j,{scope:e.__scopeToggleGroup,type:"multiple",value:a,onItemActivate:u,onItemDeactivate:c,children:(0,h.jsx)($,{...o,ref:t})})});B.displayName=R;var[W,K]=D(R),$=i.forwardRef((e,t)=>{let{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:i=!0,orientation:l,dir:o,loop:a=!0,...s}=e,u=H(n),d=(0,p.jH)(o),f={role:"group",dir:d,...s};return(0,h.jsx)(W,{scope:n,rovingFocus:i,disabled:r,children:i?(0,h.jsx)(E,{asChild:!0,...u,orientation:l,dir:d,loop:a,children:(0,h.jsx)(c.sG.div,{...f,ref:t})}):(0,h.jsx)(c.sG.div,{...f,ref:t})})}),Z="ToggleGroupItem",q=i.forwardRef((e,t)=>{let n=z(Z,e.__scopeToggleGroup),r=K(Z,e.__scopeToggleGroup),l=H(e.__scopeToggleGroup),o=n.value.includes(e.value),a=r.disabled||e.disabled,s={...e,pressed:o,disabled:a},u=i.useRef(null);return r.rovingFocus?(0,h.jsx)(A,{asChild:!0,...l,focusable:!a,active:o,ref:u,children:(0,h.jsx)(G,{...s,ref:t})}):(0,h.jsx)(G,{...s,ref:t})});q.displayName=Z;var G=i.forwardRef((e,t)=>{let{__scopeToggleGroup:n,value:r,...i}=e,l=z(Z,n),o={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},a="single"===l.type?o:void 0;return(0,h.jsx)(O,{...a,...i,ref:t,onPressedChange:e=>{e?l.onItemActivate(r):l.onItemDeactivate(r)}})}),Y="Toolbar",[X,Q]=(0,o.A)(Y,[C,V]),ee=C(),et=V(),[en,er]=X(Y),ei=i.forwardRef((e,t)=>{let{__scopeToolbar:n,orientation:r="horizontal",dir:i,loop:l=!0,...o}=e,a=ee(n),s=(0,p.jH)(i);return(0,h.jsx)(en,{scope:n,orientation:r,dir:s,children:(0,h.jsx)(E,{asChild:!0,...a,orientation:r,dir:s,loop:l,children:(0,h.jsx)(c.sG.div,{role:"toolbar","aria-orientation":r,dir:s,...o,ref:t})})})});ei.displayName=Y;var el="ToolbarSeparator",eo=i.forwardRef((e,t)=>{let{__scopeToolbar:n,...r}=e,i=er(el,n);return(0,h.jsx)(F,{orientation:"horizontal"===i.orientation?"vertical":"horizontal",...r,ref:t})});eo.displayName=el;var ea=i.forwardRef((e,t)=>
1{let{__scopeToolbar:n,...r}=e,i=ee(n);return(0,h.jsx)(A,{asChild:!0,...i,focusable:!e.disabled,children:(0,h.jsx)(c.sG.button,{type:"button",...r,ref:t})})});ea.displayName="ToolbarButton",i.forwardRef((e,t)=>{let{__scopeToolbar:n,...r}=e,i=ee(n);return(0,h.jsx)(A,{asChild:!0,...i,focusable:!0,children:(0,h.jsx)(c.sG.a,{...r,ref:t,onKeyDown:(0,l.mK)(e.onKeyDown,e=>{" "===e.key&&e.currentTarget.click()})})})}).displayName="ToolbarLink";var es="ToolbarToggleGroup",eu=i.forwardRef((e,t)=>{let{__scopeToolbar:n,...r}=e,i=er(es,n),l=et(n);return(0,h.jsx)(B,{"data-orientation":i.orientation,dir:i.dir,...l,...r,ref:t,rovingFocus:!1})});eu.displayName=es;var ec=i.forwardRef((e,t)=>{let{__scopeToolbar:n,...r}=e,i=et(n),l={__scopeToolbar:e.__scopeToolbar};return(0,h.jsx)(ea,{asChild:!0,...l,children:(0,h.jsx)(q,{...i,...r,ref:t})})});ec.displayName="ToolbarToggleItem";var ed=n(22804),ef=n(69194),ep=n(64621),eh=n(48387);function eg(e,t){return i.forwardRef((n,r)=>{let l=ed(t.className,n.className);return i.createElement(e,{...t,...n,className:l,ref:r})})}let em=({readOnly:e,children:t,className:n})=>i.createElement(ei,{className:ed("mdxeditor-toolbar",ef.Ay.toolbarRoot,{[ef.Ay.readOnlyToolbarRoot]:e},n),...e?{tabIndex:-1}:{}},t),ey=(r=eg(ea,{className:ef.Ay.toolbarButton,"data-toolbar-item":!0}),({title:e,children:t,...n})=>i.createElement(r,{...n},i.createElement(ep.I,{title:e},t))),ev=eg(ec,{className:ef.Ay.toolbarToggleItem,"data-toolbar-item":!0});eg(eu,{type:"single",className:ef.Ay.toolbarToggleSingleGroup});let ex=i.forwardRef(({on:e,title:t,children:n,disabled:r,...l},o)=>i.createElement(eu,{type:"single",className:ef.Ay.toolbarToggleSingleGroup,...l,value:e?"on":"off",ref:o},i.createElement(ev,{"aria-label":t,value:"on",disabled:r},i.createElement(ep.I,{title:t},n)))),eb=({value:e,onChange:t,className:n,ggClassName:r,items:l,disabled:o})=>{let a=(0,eh.Bd)();return i.createElement("div",{className:ed(ef.Ay.toolbarGroupOfGroups,r)},i.createElement(eu,{"aria-label":a("toolbar.toggleGroup","toggle group"),type:"single",className:ed(ef.Ay.toolbarToggleSingleGroup,n),onValueChange:t,value:e||"",disabled:o,onFocus:e=>{e.preventDefault()}},l.map((e,t)=>i.createElement(ev,{key:t,"aria-label":e.title,value:e.value},i.createElement(ep.I,{title:e.title},e.contents)))))},e_=eo},43298:()=>{!function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,function(){return t}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),l=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+l+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+l+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+l+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"}
1,list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(t){["url","bold","italic","strike","code-snippet"].forEach(function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])})}),e.hooks.add("after-tokenize",function(e){("markdown"===e.language||"md"===e.language)&&function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var i=t[n];
1if("code"!==i.type){e(i.content);continue}var l=i.content[1],o=i.content[3];if(l&&o&&"code-language"===l.type&&"code-block"===o.type&&"string"==typeof l.content){var a=l.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),s="language-"+(a=(/[a-z][\w-]*/i.exec(a)||[""])[0].toLowerCase());o.alias?"string"==typeof o.alias?o.alias=[o.alias,s]:o.alias.push(s):o.alias=[s]}}}(e.tokens)}),e.hooks.add("wrap",function(t){if("code-block"===t.type){for(var n,r="",i=0,l=t.classes.length;i<l;i++){var u=t.classes[i],c=/language-(.+)/.exec(u);if(c){r=c[1];break}}var d=e.languages[r];if(d){t.content=e.highlight((n=t.content.replace(o,"")).replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(e,t){if("#"===(t=t.toLowerCase())[0])return s("x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)));var n=a[t];return n||e}),d,r)}else if(r&&"none"!==r&&e.plugins.autoloader){var f="md-"+new Date().valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=f,e.plugins.autoloader.loadLanguages(r,function(){var t=document.getElementById(f);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[r],r))})}}});var o=RegExp(e.languages.markup.tag.pattern.source,"gi"),a={amp:"&",lt:"<",gt:">",quot:'"'},s=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism)},44362:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},44435:()=>{Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}},44696:(e,t,n)=>{"use strict";n.d(t,{DF:()=>o,Gu:()=>i,Mx:()=>l});var r=n(25118);let i=(0,r.createContext)(null);function l(e,t){let n=null;return null!=e&&(n=e[1]),{getTheme:function(){return null!=t?t:null!=n?n.getTheme():null}}}function o(){let e=(0,r.useContext)(i);return null==e&&function(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let e of(r.append("code",8),t))r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${8}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(8),e}},45767:(e,t,n)=>{"use strict";n.d(t,{Nq:()=>N,SH:()=>A,Zq:()=>I});var r=n(48387),i=n(79622);let l={testNode:"list",visitNode:function({mdastNode:e,lexicalParent:t,actions:n}){let r=e.children.some(e=>"boolean"==typeof e.checked)?"check":e.ordered?"number":"bullet",l=(0,i.DE)(r);if((0,i.Mz)(t)){let e=(0,i.i)();e.append(l),t.insertAfter(e)}else t.append(l);n.visitChildren(e,l)}},o={testNode:"listItem",visitNode({mdastNode:e,actions:t,lexicalParent:n}){let r="check"===n.getListType()?e.checked??!1:void 0;t.addAndStepInto((0,i.i)(r))}},a={testLexicalNode:i.HY,visitLexicalNode:({lexicalNode:e,actions:t})=>{t.addAndStepInto("list",{ordered:"number"===e.getListType(),spread:!1})}};var s=n(58030);let u={testLexicalNode:i.Mz,visitLexicalNode:({lexicalNode:e,mdastParent:t,actions:n})=>{let r=e.getChildren(),l=r[0];if(1===r.length&&(0,i.HY)(l)){let r=t.children.at(-1);r?n.visitChildren(e,r):n.visitChildren(l,t)}else{let r=e.getParent(),i=n.appendToParent(t,{type:"listItem",checked:"check"===r.getListType()?!!e.getChecked():void 0,spread:!1,children:[]}),l=null;for(let t of e.getChildren())(0,s.kFe)(t)||(0,s.wH$)(t)||t.isInline()&&((0,s.ff4)(t)||(0,s.Cyw)(t))?(l??(l=n.appendToParent(i,{type:"paragraph",children:[]})),n.visit(t,l)):(l=null,n.visit(t,i))}}};var c=n(44696),d=n(18191),f=n(25118);function p({maxIndent:e}){let[t]=(0,c.DF)();return(0,f.useEffect)(()=>(0,d.Sd)(t.registerCommand(s.OXk,e=>{let n=(0,s.vJq)();if(!(0,s.I2P)(n))return!1;e.preventDefault();let r=!function(e){let t=e.getNodes();if((0,d.zD)(t,e=>(0,s.y68)(e)&&e.canIndent()?e:null).length>0)return!0;let n=e.anchor,r=e.focus,i=r.isBefore(n)?r:n,l=i.getNode(),o=(0,d.mB)(l);
1if(o.canIndent()){let e=o.getKey(),t=(0,s.uTE)();if(t.anchor.set(e,0,"element"),t.focus.set(e,0,"element"),(t=(0,s.CaD)(t)).anchor.is(i))return!0}return!1}(n)?s.YW5:e.shiftKey?s.sik:s.PiT;return t.dispatchCommand(r,void 0)},s.jZM),t.registerCommand(s.PiT,()=>{if(null==e)return!1;let t=(0,s.vJq)();return!!(0,s.I2P)(t)&&Math.max(...t.getNodes().map(e=>(0,d.mB)(e).getIndent()))+1>=e},s.da8)),[t,e]),null}function h(){let[e]=(0,c.DF)();return(0,f.useEffect)(()=>(0,i.GO)(e),[e]),null}function g({hasStrictIndent:e=!1}){let[t]=(0,c.DF)();return(0,f.useEffect)(()=>{if(!t.hasNodes([i.v5,i.YW]))throw Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[t]),(0,f.useEffect)(()=>{if(e)return(0,i.Js)(t)},[t,e]),(0,f.useEffect)(()=>(0,i.cz)(t),[t]),null}var m=n(10665),y=n(4686);let v={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return(0,y.Ee)(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),l):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),l):n(t)}function l(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(t)}function o(r){return(0,y.HP)(r)?t(r):(0,y.On)(r)?e.check({tokenize:x},t,n)(r):n(r)}}};function x(e,t,n){return(0,m.N)(e,function(e){return null===e?n(e):t(e)},"whitespace")}var b=n(99149),_=n(73309);function C(e){let t=this.stack[this.stack.length-2];(0,b.ok)("listItem"===t.type),t.checked="taskListCheckValueChecked"===e.type}function w(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];(0,b.ok)("paragraph"===e.type);let n=e.children[0];if(n&&"text"===n.type){let r,i=t.children,l=-1;for(;++l<i.length;){let e=i[l];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function k(e,t,n,r){let i=e.children[0],l="boolean"==typeof e.checked&&i&&"paragraph"===i.type,o="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);l&&a.move(o);let s=_.p.listItem(e,t,n,{...r,...a.current()});return l&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+o})),s}var E=n(19735),S=n(39303);let T=new Map([["number",i.x],["bullet",i.q7],["check",i.mJ],["",i.uS]]),A=(0,E.fh)("",e=>{e.sub(e.pipe(r.cj,(0,E.EY)(r.Cp)),([t,n])=>{if(!t||!n)return;let r=t.anchor.getNode(),l="root"===r.getKey()?r:(0,d.Bt)(r,e=>{let t=e.getParent();return null!==t&&(0,s.IqF)(t)});l??(l=r.getTopLevelElementOrThrow());let o=l.getKey();if(null!==n.getElementByKey(o))if((0,i.HY)(l)){let t=(0,d.eu)(r,i.v5),n=t?t.getListType():l.getListType();e.pub(A,n)}else e.pub(A,"")})}),N=(0,E.HN)(e=>{e.sub(e.pipe(N,(0,E.EY)(r.Cp)),([e,t])=>
1{null==t||t.dispatchCommand(T.get(e),void 0)})}),I=(0,S.Z)({init(e){var t;null==(t=e.getValue(r.u0))||t.registerCommand(s.PiT,()=>!function(e){let t=(0,s.vJq)();if(!(0,s.I2P)(t))return!1;let n=function(e){let t=e.getNodes();return new Set(0===t.length?[e.anchor.getNode().getParentOrThrow(),e.focus.getNode().getParentOrThrow()]:t.map(e=>(0,s.ff4)(e)?e:e.getParentOrThrow()))}(t),r=0;for(let e of n)if((0,i.HY)(e))r=Math.max((0,i.g2)(e)+1,r);else if((0,i.Mz)(e)){let t=e.getParent();if((null==t?void 0:t.getChildren().length)===1){let e=t.getParent();if((0,i.Mz)(e)&&1===e.getChildren().length)return!1}if(!(0,i.HY)(t))throw Error("ListMaxIndentLevelPlugin: A ListItemNode must have a ListNode for a parent.");r=Math.max((0,i.g2)(t)+1,r)}return r<=7}(7),s.da8),e.pubIn({[r.$0]:"lists",[r.C2]:{exit:{taskListCheckValueChecked:C,taskListCheckValueUnchecked:C,paragraph:w}},[r.cx]:{text:{91:v}},[r.R1]:[l,o],[r.q]:[i.YW,i.v5],[r.iI]:[a,u],[r.lN]:{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:k}},[r.aC]:[p,g,h],[r.Id]:[p,g,h]})}})},46503:(e,t,n)=>{"use strict";n.d(t,{Kq:()=>U,UC:()=>Z,ZL:()=>$,bL:()=>W,i3:()=>q,l9:()=>K});var r=n(25118),i=n(92701),l=n(59439),o=n(11215),a=n(53921),s=n(37922),u=n(6165),c=n(33140),d=n(5865),f=n(11064),p=n(78465),h=n(40170),g=n(4596),m=n(32846),[y,v]=(0,o.A)("Tooltip",[u.Bk]),x=(0,u.Bk)(),b="TooltipProvider",_="tooltip.open",[C,w]=y(b),k=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:i=300,disableHoverableContent:l=!1,children:o}=e,a=r.useRef(!0),s=r.useRef(!1),u=r.useRef(0);return r.useEffect(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),(0,m.jsx)(C,{scope:t,isOpenDelayedRef:a,delayDuration:n,onOpen:r.useCallback(()=>{window.clearTimeout(u.current),a.current=!1},[]),onClose:r.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>a.current=!0,i)},[i]),isPointerInTransitRef:s,onPointerInTransitChange:r.useCallback(e=>{s.current=e},[]),disableHoverableContent:l,children:o})};k.displayName=b;var E="Tooltip",[S,T]=y(E),A=e=>{let{__scopeTooltip:t,children:n,open:i,defaultOpen:l,onOpenChange:o,disableHoverableContent:a,delayDuration:c}=e,d=w(E,e.__scopeTooltip),f=x(t),[p,g]=r.useState(null),y=(0,s.B)(),v=r.useRef(0),b=null!=a?a:d.disableHoverableContent,C=null!=c?c:d.delayDuration,k=r.useRef(!1),[T,A]=(0,h.i)({prop:i,defaultProp:null!=l&&l,onChange:e=>{e?(d.onOpen(),document.dispatchEvent(new CustomEvent(_))):d.onClose(),null==o||o(e)},caller:E}),N=r.useMemo(()=>T?k.current?"delayed-open":"instant-open":"closed",[T]),I=r.useCallback(()=>{window.clearTimeout(v.current),v.current=0,k.current=!1,A(!0)},[A]),L=r.useCallback(()=>{window.clearTimeout(v.current),v.current=0,A(!1)},[A]),P=r.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>{k.current=!0,A(!0),v.current=0},C)},[C,A]);return r.useEffect(()=>()=>{v.current&&(window.clearTimeout(v.current),v.current=0)},[]),(0,m.jsx)(u.bL,{...f,children:(0,m.jsx)(S,{scope:t,contentId:y,open:T,stateAttribute:N,trigger:p,onTriggerChange:g,onTriggerEnter:r.useCallback(()=>{d.isOpenDelayedRef.current?P():I()},[d.isOpenDelayedRef,P,I]),onTriggerLeave:r.useCallback(()=>{b?L():(window.clearTimeout(v.current),v.current=0)},[L,b]),onOpen:I,onClose:L,disableHoverableContent:b,children:n})})};A.displayName=E;var N="TooltipTrigger",I=r.forwardRef((e,t)=>{let{__scopeTooltip:n,...o}=e,a=T(N,n),s=w(N,n),c=x(n),d=r.useRef(null),p=(0,l.s)(t,d,a.onTriggerChange),h=r.useRef(!1),g=r.useRef(!1),y=r.useCallback(()=>h.current=!1,[]);return r.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),(0,m.jsx)(u.Mz,{asChild:!0,...c,children:(0,m.jsx)(f.sG.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...o,ref:p,onPointerMove:(0,i.mK)(e.onPointerMove,e=>{"touch"!==e.pointerType&&(g.current||s.isPointerInTransitRef.current||(a.onTriggerEnter(),g.current=!0))}),onPointerLeave:(0,i.mK)(e.onPointerLeave,()=>{a.onTriggerLeave(),g.current=!1}),onPointerDown:(0,i.mK)(e.onPointerDown,()=>{a.open&&a.onClose(),h.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:(0,i.mK)(e.onFocus,()=>{h.current||a.onOpen()}),onBlur:(0,i.mK)(e.onBlur,a.onClose),onClick:(0,i.mK)(e.onClick,a.onClose)})})});I.displayName=N;var L="TooltipPortal",[P,F]=y(L,{forceMount:void 0}),M=e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,l=T(L,t);
1return(0,m.jsx)(P,{scope:t,forceMount:n,children:(0,m.jsx)(d.C,{present:n||l.open,children:(0,m.jsx)(c.Z,{asChild:!0,container:i,children:r})})})};M.displayName=L;var O="TooltipContent",R=r.forwardRef((e,t)=>{let n=F(O,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...l}=e,o=T(O,e.__scopeTooltip);return(0,m.jsx)(d.C,{present:r||o.open,children:o.disableHoverableContent?(0,m.jsx)(j,{side:i,...l,ref:t}):(0,m.jsx)(D,{side:i,...l,ref:t})})}),D=r.forwardRef((e,t)=>{let n=T(O,e.__scopeTooltip),i=w(O,e.__scopeTooltip),o=r.useRef(null),a=(0,l.s)(t,o),[s,u]=r.useState(null),{trigger:c,onClose:d}=n,f=o.current,{onPointerInTransitChange:p}=i,h=r.useCallback(()=>{u(null),p(!1)},[p]),g=r.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=function(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),l=Math.abs(t.left-e.x);switch(Math.min(n,r,i,l)){case l:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw Error("unreachable")}}(r,n.getBoundingClientRect());u(function(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:1*!!(e.y>t.y)),function(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return(n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y)?t:t.concat(n)}(t)}([...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,i),...function(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}(t.getBoundingClientRect())])),p(!0)},[p]);return r.useEffect(()=>()=>h(),[h]),r.useEffect(()=>{if(c&&f){let e=e=>g(e,f),t=e=>g(e,c);return c.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{c.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}},[c,f,g,h]),r.useEffect(()=>{if(s){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=(null==c?void 0:c.contains(t))||(null==f?void 0:f.contains(t)),i=!function(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,l=t.length-1;e<t.length;l=e++){let o=t[e],a=t[l],s=o.x,u=o.y,c=a.x,d=a.y;u>r!=d>r&&n<(c-s)*(r-u)/(d-u)+s&&(i=!i)}return i}(n,s);r?h():i&&(h(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[c,f,s,d,h]),(0,m.jsx)(j,{...e,ref:a})}),[V,H]=y(E,{isInside:!1}),B=(0,p.Dc)("TooltipContent"),j=r.forwardRef((e,t)=>{let{__scopeTooltip:n,children:i,"aria-label":l,onEscapeKeyDown:o,onPointerDownOutside:s,...c}=e,d=T(O,n),f=x(n),{onClose:p}=d;return r.useEffect(()=>(document.addEventListener(_,p),()=>document.removeEventListener(_,p)),[p]),r.useEffect(()=>{if(d.trigger){let e=e=>{let t=e.target;(null==t?void 0:t.contains(d.trigger))&&p()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[d.trigger,p]),(0,m.jsx)(a.qW,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:p,children:(0,m.jsxs)(u.UC,{"data-state":d.stateAttribute,...f,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[(0,m.jsx)(B,{children:i}),(0,m.jsx)(V,{scope:n,isInside:!0,children:(0,m.jsx)(g.bL,{id:d.contentId,role:"tooltip",children:l||i})})]})})});R.displayName=O;var z="TooltipArrow",J=r.forwardRef((e,t)=>
1{let{__scopeTooltip:n,...r}=e,i=x(n);return H(z,n).isInside?null:(0,m.jsx)(u.i3,{...i,...r,ref:t})});J.displayName=z;var U=k,W=A,K=I,$=M,Z=R,q=J},48387:(e,t,n)=>{"use strict";n.d(t,{w8:()=>nC,Cc:()=>tD,Cp:()=>tH,TI:()=>nJ,$0:()=>nU,O2:()=>nP,aC:()=>nA,iI:()=>nc,R1:()=>na,q:()=>no,C2:()=>nu,Id:()=>nM,cx:()=>ns,dH:()=>nO,lN:()=>nd,IZ:()=>nI,C_:()=>tq,sF:()=>nL,Wd:()=>nn,GS:()=>nT,X2:()=>tB,Xz:()=>nl,N2:()=>nm,vR:()=>nH,LH:()=>n$,Z4:()=>nE,Jl:()=>nk,X3:()=>nV,PI:()=>tK,cj:()=>tG,Nn:()=>nR,xZ:()=>nr,mF:()=>ni,yY:()=>nF,IJ:()=>t8,M9:()=>nD,yr:()=>n_,p3:()=>nB,HU:()=>nh,X_:()=>ne,nK:()=>t6,oF:()=>tX,Bn:()=>nz,M0:()=>tJ,pc:()=>tz,u0:()=>tV,Sv:()=>np,J2:()=>tj,dY:()=>t7,Jf:()=>t4,Me:()=>nN,Bd:()=>nZ,n$:()=>nj});var r=n(39303),i=n(18191),l=n(58030);function o(e){e.undoStack=[],e.redoStack=[],e.current=null}function a(){return{current:null,redoStack:[],undoStack:[]}}var s=n(87693),u=n(84302),c=n(19735),d=n(39461),f=n(79941),p=n(35101);let h=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function g(e){this.enter({type:"delete",children:[]},e)}function m(e){this.exit(e)}function y(e,t,n,r){let i=n.createTracker(r),l=n.enter("strikethrough"),o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),l(),o}y.peek=function(){return"~"},b.peek=function(){return"="};var v={canContainEols:["highlight"],enter:{highlight:function(e){this.enter({type:"highlight",children:[]},e)}},exit:{highlight:function(e){this.exit(e)}}},x={unsafe:[{character:"=",inConstruct:"phrasing",notInConstruct:["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"]}],handlers:{highlight:b}};function b(e,t,n,r){let i=n.createTracker(r),l=n.enter("highlight"),o=i.move("==");return o+=i.move(n.containerPhrasing(e,{before:o,after:"=",...i.current()})),o+=i.move("=="),l(),o}function _(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}var C=n(99149);let w=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","
1sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],k={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function E(e){let t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}function S(e){let t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function T(e){return function(e){let t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}(e)||E(e)}var A=n(67012);let N=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"],I=/["&'<>`]/g,L=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,P=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,F=/[|\\{}()[\]^$+*?.]/g,M=new WeakMap;function O(e){return"&#x"+e.toString(16).toUpperCase()+";"}var R=n(1520),D=n(33543);function V(e){let t=0,n=e.stack.length;for(;--n>-1;){let r=e.stack[n];if("blockquote"===r||"listItem"===r)break;"mdxJsxFlowElement"===r&&t++}return t}function H(e){return"  ".repeat(e)}function B(){return"<"}var j=Object.prototype.hasOwnProperty;function z(e,t,n){for(n of e.keys())if(J(n,t))return n}function J(e,t){var n,r,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&J(e[r],t[r]););return -1===r}if(n===Set){if(e.size!==t.size)return!1;for(r of e)if((i=r)&&"object"==typeof i&&!(i=z(t,i))||!t.has(i))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(r of e)if((i=r[0])&&"object"==typeof i&&!(i=z(t,i))||!J(r[1],t.get(i)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return -1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return -1===r}if(!n||"object"==typeof e){for(n in r=0,e)if(j.call(e,n)&&++r&&!j.call(t,n)||!(n in t)||!J(e[n],t[n]))return!1;return Object.keys(t).length===r}}return e!=e&&t!=t}var U=n(37811);let W,K,$,Z,q=!0;void 0!==U&&({FORCE_COLOR:W,NODE_DISABLE_COLORS:K,NO_COLOR:$,TERM:Z}=U.env||{},q=U.stdout&&U.stdout.isTTY);
1let G={enabled:!K&&null==$&&"dumb"!==Z&&(null!=W&&"0"!==W||q),reset:X(0,0),bold:X(1,22),dim:X(2,22),italic:X(3,23),underline:X(4,24),inverse:X(7,27),hidden:X(8,28),strikethrough:X(9,29),black:X(30,39),red:X(31,39),green:X(32,39),yellow:X(33,39),blue:X(34,39),magenta:X(35,39),cyan:X(36,39),white:X(37,39),gray:X(90,39),grey:X(90,39),bgBlack:X(40,49),bgRed:X(41,49),bgGreen:X(42,49),bgYellow:X(43,49),bgBlue:X(44,49),bgMagenta:X(45,49),bgCyan:X(46,49),bgWhite:X(47,49)};function Y(e,t){let n=0,r,i="",l="";for(;n<e.length;n++)i+=(r=e[n]).open,l+=r.close,~t.indexOf(r.close)&&(t=t.replace(r.rgx,r.close+r.open));return i+t+l}function X(e,t){let n={open:`\x1b[${e}m`,close:`\x1b[${t}m`,rgx:RegExp(`\\x1b\\[${t}m`,"g")};return function(t){let r;return void 0!==this&&void 0!==this.has?(~this.has.indexOf(e)||(this.has.push(e),this.keys.push(n)),void 0===t?this:G.enabled?Y(this.keys,t+""):t+""):void 0===t?((r={has:[e],keys:[n]}).reset=G.reset.bind(r),r.bold=G.bold.bind(r),r.dim=G.dim.bind(r),r.italic=G.italic.bind(r),r.underline=G.underline.bind(r),r.inverse=G.inverse.bind(r),r.hidden=G.hidden.bind(r),r.strikethrough=G.strikethrough.bind(r),r.black=G.black.bind(r),r.red=G.red.bind(r),r.green=G.green.bind(r),r.yellow=G.yellow.bind(r),r.blue=G.blue.bind(r),r.magenta=G.magenta.bind(r),r.cyan=G.cyan.bind(r),r.white=G.white.bind(r),r.gray=G.gray.bind(r),r.grey=G.grey.bind(r),r.bgBlack=G.bgBlack.bind(r),r.bgRed=G.bgRed.bind(r),r.bgGreen=G.bgGreen.bind(r),r.bgYellow=G.bgYellow.bind(r),r.bgBlue=G.bgBlue.bind(r),r.bgMagenta=G.bgMagenta.bind(r),r.bgCyan=G.bgCyan.bind(r),r.bgWhite=G.bgWhite.bind(r),r):G.enabled?Y([n],t+""):t+""}}function Q(){}Q.prototype={diff:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.callback;"function"==typeof r&&(i=r,r={}),this.options=r;var l=this;function o(e){return i?(setTimeout(function(){i(void 0,e)},0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var a=(t=this.removeEmpty(this.tokenize(t))).length,s=e.length,u=1,c=a+s;r.maxEditLength&&(c=Math.min(c,r.maxEditLength));var d=null!=(n=r.timeout)?n:1/0,f=Date.now()+d,p=[{oldPos:-1,lastComponent:void 0}],h=this.extractCommon(p[0],t,e,0);if(p[0].oldPos+1>=s&&h+1>=a)return o([{value:this.join(t),count:t.length}]);var g=-1/0,m=1/0;function y(){for(var n=Math.max(g,-u);n<=Math.min(m,u);n+=2){var r=void 0,i=p[n-1],c=p[n+1];i&&(p[n-1]=void 0);var d=!1;if(c){var f=c.oldPos-n;d=c&&0<=f&&f<a}var y=i&&i.oldPos+1<s;if(!d&&!y){p[n]=void 0;continue}if(r=!y||d&&i.oldPos+1<c.oldPos?l.addToPath(c,!0,void 0,0):l.addToPath(i,void 0,!0,1),h=l.extractCommon(r,t,e,n),r.oldPos+1>=s&&h+1>=a)return o(function(e,t,n,r,i){for(var l,o=[];t;)o.push(t),l=t.previousComponent,delete t.previousComponent,t=l;o.reverse();for(var a=0,s=o.length,u=0,c=0;a<s;a++){var d=o[a];if(d.removed){if(d.value=e.join(r.slice(c,c+d.count)),c+=d.count,a&&o[a-1].added){var f=o[a-1];o[a-1]=o[a],o[a]=f}}else{if(!d.added&&i){var p=n.slice(u,u+d.count);p=p.map(function(e,t){var n=r[c+t];return n.length>e.length?n:e}),d.value=e.join(p)}else d.value=e.join(n.slice(u,u+d.count));u+=d.count,d.added||(c+=d.count)}}var h=o[s-1];return s>1&&"string"==typeof h.value&&(h.added||h.removed)&&e.equals("",h.value)&&(o[s-2].value+=h.value,o.pop()),o}(l,r.lastComponent,t,e,l.useLongestToken));p[n]=r,r.oldPos+1>=s&&(m=Math.min(m,n-1)),h+1>=a&&(g=Math.max(g,n+1))}u++}if(i)!function e(){setTimeout(function(){if(u>c||Date.now()>f)return i();y()||e()},0)}();else for(;u<=c&&Date.now()<=f;){var v=y();if(v)return v}},addToPath:function(e,t,n,r){var i=e.lastComponent;return i&&i.added===t&&i.removed===n?{oldPos:e.oldPos+r,lastComponent:{count:i.count+1,added:t,removed:n,previousComponent:i.previousComponent}}:{oldPos:e.oldPos+r,lastComponent:{count:1,added:t,removed:n,previousComponent:i}}},extractCommon:function(e,t,n,r){for(var i=t.length,l=n.length,o=e.oldPos,a=o-r,s=0;a+1<i&&o+1<l&&this.equals(t[a+1],n[o+1]);)a++,o++,s++;return s&&(e.lastComponent={count:s,previousComponent:e.lastComponent}),e.oldPos=o,a},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};var ee=new Q,et=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,en=/\S/,er=new Q;er.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!en.test(e)&&!en.test(t)},er.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&et.test(t[n])&&et.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};var ei=new Q;function el(e){return(el="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}ei.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,"\n"));var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var i=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t},new Q().tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)},new Q().tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var eo=Object.prototype.toString,ea=new Q;ea.useLongestToken=!0,ea.tokenize=ei.tokenize,ea.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,i=void 0===r?function(e,t){return void 0===t?n:t}:r;return"string"==typeof e?e:JSON.stringify(function e(t,n,r,i,l){for(n=n||[],r=r||[],i&&(t=i(l,t)),o=0;o<n.length;o+=1)if(n[o]===t)return r[o];if("[object Array]"===eo.call(t)){for(n.push(t),a=Array(t.length),r.push(a),o=0;o<t.length;o+=1)a[o]=e(t[o],n,r,i,l);return n.pop(),r.pop(),a}if(t&&t.toJSON&&(t=t.toJSON()),"object"===el(t)&&null!==t){n.push(t),a={},r.push(a);var o,a,s,u=[];for(s in t)t.hasOwnProperty(s)&&u.push(s);for(u.sort(),o=0;o<u.length;o+=1)a[s=u[o]]=e(t[s],n,r,i,s);n.pop(),r.pop()}else a=t;return a}(e,null,null,i),i,"  ")},ea.equals=function(e,t){return Q.prototype.equals.call(ea,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};var es=new Q;es.tokenize=function(e){return e.slice()},es.join=es.removeEmpty=function(e){return e};G.red,G.grey,G.green,G.dim().italic,G.dim("→"),G.dim("\xb7"),G.dim("↵");function eu(e){let t=(e=e.replace(/\r?\n/g,"\n")).match(/^[ \t]*(?=\S)/gm),n=0,r=1/0,i=(t||[]).length;for(;n<i;n++)r=Math.min(r,t[n].length);return i&&r?e.replace(RegExp(`^[ \\t]{${r}}`,"gm"),""):e}
1class ec extends Error{constructor(e={}){super(e.message),this.name="Assertion",this.code="ERR_ASSERTION",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor),this.details=e.details||!1,this.generated=!!e.generated,this.operator=e.operator,this.expects=e.expects,this.actual=e.actual}}function ed(e,t,n,r,i,l,o){if(e)return;if(o instanceof Error)throw o;let a=i&&i(t,n);throw new ec({actual:t,expects:n,operator:r,message:o||l,details:a,generated:!o})}function ef(e,t){ed(!e,!0,!1,"not",!1,"Expected value to be falsey",t)}ef.ok=ef,ef.equal=function(e,t,n){ed(!J(e,t),e,t,"not.equal",!1,"Expected values not to be deeply equal",n)},ef.type=function(e,t,n){let r=typeof e;ed(r!==t,r,t,"not.type",!1,`Expected "${r}" not to be "${t}"`,n)},ef.instance=function(e,t,n){let r="`"+(t.name||t.constructor.name)+"`";ed(!(e instanceof t),e,t,"not.instance",!1,`Expected value not to be an instance of ${r}`,n)},ef.snapshot=function(e,t,n){ed((e=eu(e))!==(t=eu(t)),e,t,"not.snapshot",!1,"Expected value not to match snapshot",n)},ef.fixture=function(e,t,n){ed((e=eu(e))!==(t=eu(t)),e,t,"not.fixture",!1,"Expected value not to match fixture",n)},ef.match=function(e,t,n){"string"==typeof t?ed(!e.includes(t),e,t,"not.match",!1,`Expected value not to include "${t}" substring`,n):ed(!t.test(e),e,t,"not.match",!1,`Expected value not to match \`${String(t)}\` pattern`,n)},ef.throws=function(e,t,n){n||"string"!=typeof t||(n=t,t=null);try{e()}catch(e){"function"==typeof t?ed(!t(e),!0,!1,"not.throws",!1,"Expected function not to throw matching exception",n):t instanceof RegExp?ed(!t.test(e.message),!0,!1,"not.throws",!1,`Expected function not to throw exception matching \`${String(t)}\` pattern`,n):t||ed(!1,!0,!1,"not.throws",!1,"Expected function not to throw",n)}};let ep={eof:null,exclamationMark:33,dash:45,equalsTo:61,greaterThan:62},eh={data:"data",lineEnding:"lineEnding",linePrefix:"linePrefix",characterEscape:"characterEscape"},eg={attentionSideAfter:2};var em="highlightSequenceTemporary",ey="highlightSequence",ev=n(36389),ex=n(10665),eb=n(4686);let e_={}.hasOwnProperty,eC=Symbol("continue"),ew=Symbol("exit"),ek=Symbol("skip");function eE(e){return Array.isArray(e)?e:"number"==typeof e?[eC,e]:[e]}function eS(e){return!!(e&&"object"==typeof e&&"type"in e&&"string"==typeof e.type&&e.type.length>0)}function eT(e){return/^\s*$/.test(e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\/\/[^\r\n]*(\r\n|\n|\r)/g,""))}function eA(e){let t=e||{},n=t.loc||{},r=t.range||[void 0,void 0],i=eN(n.start,r[0]||t.start),l=eN(n.end,r[1]||t.end);if(i&&l)return{start:i,end:l}}function eN(e,t){if(e&&"object"==typeof e){let n="line"in e?eI(e.line):void 0,r="column"in e?eI(e.column):void 0;if(n&&void 0!==r)return{line:n,column:r+1,offset:eI(t)}}}function eI(e){return"number"==typeof e&&e>-1?e:void 0}let eL="https://github.com/micromark/micromark-extension-mdx-expression/tree/main/packages/micromark-extension-mdx-expression",eP="#unexpected-type-in-code-expected-an-object-spread-spread";function eF(e,t,n,r,i,l,o,a,s,u,c){let d,f,p=this,h=this.events.length+3,g=0;return function(t){return e.enter(n),e.enter(r),e.consume(t),e.exit(r),d=p.now(),m};function m(c){if(null===c){if(f)throw f;let e=new D.o("Unexpected end of file in expression, expected a corresponding closing brace for `{`",{place:p.now(),ruleId:"unexpected-eof",source:"micromark-extension-mdx-expression"});throw e.url=eL+"#unexpected-end-of-file-in-expression-expected-a-corresponding-closing-brace-for-",e}if((0,eb.HP)(c))return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),v;if(125===c&&0===g){let g=l?eM.call(p,l,o,i,h,d,u||!1,s||!1):{type:"ok",estree:void 0};if("ok"===g.type){e.enter(r),e.consume(c),e.exit(r);let i=e.exit(n);return a&&g.estree&&Object.assign(i,{estree:g.estree}),t}return f=g.message,e.enter(i),e.consume(c),y}return e.enter(i),y(c)}function y(t){return 125===t&&0===g||null===t||(0,eb.HP)(t)?(e.exit(i),m(t)):(123!==t||l?125===t&&(g-=1):g+=1,e.consume(t),y)}function v(t){let n=p.now();if(n.line!==d.line&&!c&&p.parser.lazy[n.line]){let e=new D.o("Unexpected lazy line in expression in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",{place:p.now(),ruleId:"unex
1pected-lazy",source:"micromark-extension-mdx-expression"});throw e.url=eL+"#unexpected-lazy-line-in-expression-in-container-expected-line-to-be-prefixed",e}return(0,eb.On)(t)?(0,ex.N)(e,m,"linePrefix",3)(t):m(t)}}function eM(e,t,n,r,i,l,o){let a=function(e,t){let n,r,i=t.prefix||"",l=t.suffix||"",o=Object.assign({},t.acornOptions),a=[],s=[],u=o.onComment,c=o.onToken,d=!1,f=Object.assign({},o,{onComment:a,preserveParens:!0});c&&(f.onToken=s);let p=function(e,t){let n={value:"",stops:[]},r=-1;for(;++r<e.length;){let i=e[r];if("enter"===i[0]){let e=i[1].type;if("lineEnding"===e||t.includes(e)){let e=i[2].sliceStream(i[1]);for(;e.length>0&&-1===e[0];)e.shift();let t=function(e){let t,n=-1,r=[];for(;++n<e.length;){let i,l=e[n];if("string"==typeof l)i=l;else switch(l){case -5:i="\r";break;case -4:i="\n";break;case -3:i="\r\n";break;case -2:i="	";break;case -1:if(t)continue;i=" ";break;default:i=String.fromCharCode(l)}t=-2===l,r.push(i)}return r.join("")}(e);n.stops.push([n.value.length,i[1].start]),n.value+=t,n.stops.push([n.value.length,i[1].end])}}}return n}(e,t.tokenTypes),h=p.value,g=i+h+l,m=t.expression&&eT(h);if(m&&!t.allowEmpty)throw new D.o("Unexpected empty expression",{place:b(0),ruleId:"unexpected-empty-expression",source:"micromark-extension-mdx-expression"});try{n=t.expression&&!m?t.acorn.parseExpressionAt(g,0,f):t.acorn.parse(g,f)}catch(t){let e=b(t.pos);t.message=String(t.message).replace(/ \(\d+:\d+\)$/,""),t.pos=e.offset,t.loc={line:e.line,column:e.column-1},r=t,d=t.raisedAt>=i.length+h.length||"Unterminated comment"===t.message}if(n&&t.expression&&!m)if(eT(g.slice(n.end,g.length-l.length)))n={type:"Program",start:0,end:i.length+h.length,body:[{type:"ExpressionStatement",expression:n,start:0,end:i.length+h.length}],sourceType:"module",comments:[]};else{let e=b(n.end),t=Error("Unexpected content after expression");t.pos=e.offset,t.loc={line:e.line,column:e.column-1},r=t,n=void 0}if(n){var y,v;let e,t;if(n.comments=a,y=n,"function"==typeof(v=function(e,t,n,r){let i=r[r.length-1],l=t;"ParenthesizedExpression"===e.type&&i&&l&&("number"==typeof n&&(i=i[l],l=n),i[l]=e.expression),x(e)})?e=v:v,(function n(r,i,l,o){return eS(r)&&(a.displayName="node ("+r.type+")"),a;function a(){let a=e?eE(e(r,i,l,o)):[];if(a[0]===ew)return a;if(a[0]!==ek){let e;for(e in r)if(e_.call(r,e)&&r[e]&&"object"==typeof r[e]&&"data"!==e&&"position"!==e){let t=o.concat(r),i=r[e];if(Array.isArray(i)){let r=0;for(;r>-1&&r<i.length;){let l=i[r];if(eS(l)){let i=n(l,e,r,t)();if(i[0]===ew)return i;r="number"==typeof i[1]?i[1]:r+1}else r++}}else if(eS(i)){let r=n(i,e,void 0,t)();if(r[0]===ew)return r}}}return t?eE(t(r,i,l,o)):a}})(y,void 0,void 0,[])(),Array.isArray(u))u.push(...a);else if("function"==typeof u)for(let e of a)u("Block"===e.type,e.value,e.start,e.end,e.loc.start,e.loc.end);for(let e of s)e.end<=i.length||e.start-i.length>=h.length||(x(e),Array.isArray(c)?c.push(e):c(e))}return{estree:n,error:r,swallow:d};function x(e){let t=b(e.start),n=b(e.end);e.start=t.offset,e.end=n.offset,e.loc={start:{line:t.line,column:t.column-1,offset:t.offset},end:{line:n.line,column:n.column-1,offset:n.offset}},e.range=[e.start,e.end]}function b(e){let n=e-i.length;n<0?n=0:n>h.length&&(n=h.length);let r=function(e,t){let n=0;for(;n<e.length&&e[n][0]<=t;)n+=1;if(0===n)return;let[r,i]=e[n-1],l=t-r;return{line:i.line,column:i.column+l,offset:i.offset+l}}(p.stops,n);return r||(r={line:t.start.line,column:t.start.column,offset:t.start.offset}),r}}(this.events.slice(r),{acorn:e,tokenTypes:[n],acornOptions:t,start:i,expression:!0,allowEmpty:l,prefix:o?"({":"",suffix:o?"})":""}),s=a.estree;if(o&&s){let e=s.body[0];if("ExpressionStatement"!==e.type||"ObjectExpression"!==e.expression.type){let t=eA(e),n=new D.o("Unexpected `"+e.type+"` in code: expected an object spread (`{...spread}`)",{place:t.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw n.url=eL+eP,n}if(e.expression.properties[1]){let t=eA(e.expression.properties[1]),n=new D.o("Unexpected extra content in spread: only a single spread is supported",{place:t.start,ruleId:"spread-extra",source:"micromark-extension-mdx-expression"});throw n.url=eL+"#unexpected-extra-content-in-spread-only-a-single-spread-is-supported",n}if(e.expression.properties[0]&&"SpreadElement"!==e.expression.properties[0].type){let t=eA(e.expression.properties[0]),n=new D.o("Unexpected `"+e.expression.properties[0].type+"` in code: only spread elements are supported",{place:t.start,ruleId:"non-spread",source:"micromark-extension-mdx-expression"});throw n.url=eL+eP,n}}
1if(a.error){let e=new D.o("Could not parse expression with acorn",{cause:a.error,place:{line:a.error.loc.line,column:a.error.loc.column+1,offset:a.error.pos},ruleId:"acorn",source:"micromark-extension-mdx-expression"});return e.url=eL+"#could-not-parse-expression-with-acorn",{type:"nok",message:e}}return{type:"ok",estree:s}}let eO="https://github.com/micromark/micromark-extension-mdx-jsx";function eR(e,t,n,r,i,l,o,a,s,u,c,d,f,p,h,g,m,y,v,x,b,_,C,w,k,E,S,T,A,N,I,L){let P,F,M=this;return function(t){return e.enter(a),e.enter(s),e.consume(t),e.exit(s),O};function O(e){return(0,eb.Ee)(e)?n(e):(P=R,ei(e))}function R(t){return 47===t?(e.enter(u),e.consume(t),e.exit(u),P=V,ei):62===t?er(t):null!==t&&t>=0&&(0,ev.ni)(t)?(e.enter(d),e.enter(f),e.consume(t),H):void eo(t,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(33===t?" (note: to create a comment in MDX, use `{/* text */}`)":""))}function V(t){return 62===t?er(t):null!==t&&t>=0&&(0,ev.ni)(t)?(e.enter(d),e.enter(f),e.consume(t),H):void eo(t,"before name","a character that can start a name, such as a letter, `$`, or `_`"+(42===t||47===t?" (note: JS comments in JSX tags are not supported in MDX)":""))}function H(t){return null!==t&&t>=0&&(0,ev.jD)(t,{jsx:!0})?(e.consume(t),H):46===t||47===t||58===t||62===t||123===t||(0,eb.Ee)(t)||(0,eb.Ny)(t)?(e.exit(f),P=B,ei(t)):void eo(t,"in name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(64===t?" (note: to create a link in MDX, use `[text](url)`)":""))}function B(t){return 46===t?(e.enter(p),e.consume(t),e.exit(p),P=j,ei):58===t?(e.enter(g),e.consume(t),e.exit(g),P=U,ei):47===t||62===t||123===t||null!==t&&t>=0&&(0,ev.ni)(t)?(e.exit(d),$(t)):void eo(t,"after name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function j(t){if(null!==t&&t>=0&&(0,ev.ni)(t))return e.enter(h),e.consume(t),z;eo(t,"before member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function z(t){return null!==t&&t>=0&&(0,ev.jD)(t,{jsx:!0})?(e.consume(t),z):46===t||47===t||62===t||123===t||(0,eb.Ee)(t)||(0,eb.Ny)(t)?(e.exit(h),P=J,ei(t)):void eo(t,"in member name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag"+(64===t?" (note: to create a link in MDX, use `[text](url)`)":""))}function J(t){return 46===t?(e.enter(p),e.consume(t),e.exit(p),P=j,ei):47===t||62===t||123===t||null!==t&&t>=0&&(0,ev.ni)(t)?(e.exit(d),$(t)):void eo(t,"after member name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function U(t){if(null!==t&&t>=0&&(0,ev.ni)(t))return e.enter(m),e.consume(t),W;eo(t,"before local name","a character that can start a name, such as a letter, `$`, or `_`"+(43===t||null!==t&&t>46&&t<58?" (note: to create a link in MDX, use `[text](url)`)":""))}function W(t){return null!==t&&t>=0&&(0,ev.jD)(t,{jsx:!0})?(e.consume(t),W):47===t||62===t||123===t||(0,eb.Ee)(t)||(0,eb.Ny)(t)?(e.exit(m),P=K,ei(t)):void eo(t,"in local name","a name character such as letters, digits, `$`, or `_`; whitespace before attributes; or the end of the tag")}function K(t){if(47===t||62===t||123===t||null!==t&&t>=0&&(0,ev.ni)(t))return e.exit(d),$(t);eo(t,"after local name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function $(t){return 47===t?(e.enter(c),e.consume(t),e.exit(c),P=en,ei):62===t?er(t):123===t?eF.call(M,e,Z,y,v,x,r,i,l,!0,!1,o)(t):null!==t&&t>=0&&(0,ev.ni)(t)?(e.enter(b),e.enter(_),e.enter(C),e.consume(t),q):void eo(t,"before attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; whitespace before attributes; or the end of the tag")}function Z(e){return P=$,ei(e)}function q(t){return null!==t&&t>=0&&(0,ev.jD)(t,{jsx:!0})?(e.consume(t),q):47===t||58===t||61===t||62===t||123===t||(0,eb.Ee)(t)||(0,eb.Ny)(t)?(e.exit(C),P=G,ei(t)):void eo(t,"in attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function G(t){return 58===t?(e.enter(w),e.consume(t),e.exit(w),P=Y,ei):61===t?(e.exit(_),e.enter(E),e.consume(t),e.exit(E),P=ee,ei):47===t||62===t||123===t||(0,eb.Ee)(t)||(0,eb.Ny)(t)||null!==t&&t>=0&&(0,ev.ni)(t)?(e.exit(_),e.exit(b),P=$,ei(t)):void eo(t,"after attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function Y(t){if(null!==t&&t>=0&&(0,ev.ni)(t))return e.enter(k),e.consume(t),X;eo(t,"before local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function X(t){return null!==t&&t>=0&&(0,ev.jD)(t,{jsx:!0})?(e.consume(t),X):47===t||61===t||62===t||123===t||(0,eb.Ee)(t)||(0,eb.Ny)(t)?(e.exit(k),e.exit(_),P=Q,ei(t)):void eo(t,"in local attribute name","an attribute name character such as letters, digits, `$`, or `_`; `=` to initialize a value; whitespace before attributes; or the end of the tag")}function Q(t){return 61===t?(e.enter(E),e.consume(t),e.exit(E),P=ee,ei):47===t||62===t||123===t||null!==t&&t>=0&&(0,ev.ni)(t)?(e.exit(b),$(t)):void eo(t,"after local attribute name","a character that can start an attribute name, such as a letter, `$`, or `_`; `=` to initialize a value; or the end of the tag")}function ee(t){return 34===t||39===t?(e.enter(S),e.enter(T),e.consume(t),e.exit(T),F=t,function t(n){return(null===n&&eo(n,"in attribute value","a corresponding closing quote `"+String.fromCodePoint(F)+"`"),n===F)?(e.enter(T),e.consume(n),e.exit(T),e.exit(S),e.exit(b),F=void 0,P=$,ei):(0,eb.HP)(n)?(P=t,ei(n)):(e.enter(A),function n(r){return null===r||r===F||(0,eb.HP)(r)?(e.exit(A),t(r)):(e.consume(r),n)}(n))}):123===t?eF.call(M,e,et,N,I,L,r,i,l,!1,!1,o)(t):void eo(t,"before attribute value","a character that can start an attribute value, such as `\"`, `'`, or `{`"+(60===t?" (note: to use an element or fragment as a prop value in MDX, use `{<element />}`)":""))}function et(t){return e.exit(b),P=$,ei(t)}function en(e){if(62===e)return er(e);eo(e,"after self-closing slash","`>` to end the tag"+(42===e||47===e?" (note: JS comments in JSX tags are not supported in MDX)":""))}function er(n){return e.enter(s),e.consume(n),e.exit(s),e.exit(a),t}function ei(t){return(0,eb.HP)(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),el):(0,eb.On)(t)||(0,eb.Ny)(t)?(e.enter("esWhitespace"),function t(n){return(0,eb.HP)(n)?(e.exit("esWhitespace"),ei(n)):(0,eb.On)(n)||(0,eb.Ny)(n)?(e.consume(n),t):(e.exit("esWhitespace"),P(n))}(t)):P(t)}function el(e){if(!o&&M.parser.lazy[M.now().line]){let e=new D.o("Unexpected lazy line in container, expected line to be prefixed with `>` when in a block quote, whitespace when in a list, etc",M.now(),"micromark-extension-mdx-jsx:unexpected-lazy");throw e.url=eO+"#unexpected-lazy-line-in-container-expected-line-to-be",e}return ei(e)}function eo(e,t,n){let r=new D.o("Unexpected "+(null===e?"end of file":"character `"+(96===e?"` ` `":String.fromCodePoint(e))+"` (U+"+e.toString(16).toUpperCase().padStart(4,"0")+")")+" "+t+", expected "+n,M.now(),"micromark-extension-mdx-jsx:unexpected-"+(null===e?"eof":"character"));throw r.url=eO+(null===e?"#unexpected-end-of-file-at-expected-expect":"#unexpected-character-at-ex
1pected-expect"),r}}let eD={}.hasOwnProperty,eV={}.hasOwnProperty;var eH=n(73309),eB=n(53632),ej=n(93475);let ez=[function(e,t,n,r){if("code"===t.type&&(0,eB.m)(t,r)&&("list"===e.type||e.type===t.type&&(0,eB.m)(e,r)))return!1;if("spread"in n&&"boolean"==typeof n.spread){if("paragraph"===e.type&&(e.type===t.type||"definition"===t.type||"heading"===t.type&&(0,ej.f)(t,r)))return;return+!!n.spread}}],eJ=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"],eU=[{character:"	",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"	",before:"[\\r\\n]",inConstruct:"phrasing"},{character:"	",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"\r",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:"\n",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde","codeFencedMetaGraveAccent","codeFencedMetaTilde","destinationLiteral","headingAtx"]},{character:" ",after:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",before:"[\\r\\n]",inConstruct:"phrasing"},{character:" ",inConstruct:["codeFencedLangGraveAccent","codeFencedLangTilde"]},{character:"!",after:"\\[",inConstruct:"phrasing",notInConstruct:eJ},{character:'"',inConstruct:"titleQuote"},{atBreak:!0,character:"#"},{character:"#",inConstruct:"headingAtx",after:"(?:[\r\n]|$)"},{character:"&",after:"[#A-Za-z]",inConstruct:"phrasing"},{character:"'",inConstruct:"titleApostrophe"},{character:"(",inConstruct:"destinationRaw"},{before:"\\]",character:"(",inConstruct:"phrasing",notInConstruct:eJ},{atBreak:!0,before:"\\d+",character:")"},{character:")",inConstruct:"destinationRaw"},{atBreak:!0,character:"*",after:"(?:[ 	\r\n*])"},{character:"*",inConstruct:"phrasing",notInConstruct:eJ},{atBreak:!0,character:"+",after:"(?:[ 	\r\n])"},{atBreak:!0,character:"-",after:"(?:[ 	\r\n-])"},{atBreak:!0,before:"\\d+",character:".",after:"(?:[ 	\r\n]|$)"},{atBreak:!0,character:"<",after:"[!/?A-Za-z]"},{character:"<",after:"[!/?A-Za-z]",inConstruct:"phrasing",notInConstruct:eJ},{character:"<",inConstruct:"destinationLiteral"},{atBreak:!0,character:"="},{atBreak:!0,character:">"},{character:">",inConstruct:"destinationLiteral"},{atBreak:!0,character:"["},{character:"[",inConstruct:"phrasing",notInConstruct:eJ},{character:"[",inConstruct:["label","reference"]},{character:"\\",after:"[\\r\\n]",inConstruct:"phrasing"},{character:"]",inConstruct:["label","reference"]},{atBreak:!0,character:"_"},{character:"_",inConstruct:"phrasing",notInConstruct:eJ},{atBreak:!0,character:"`"},{character:"`",inConstruct:["codeFencedLangGraveAccent","codeFencedMetaGraveAccent"]},{character:"`",inConstruct:"phrasing",notInConstruct:eJ},{atBreak:!0,character:"~"}];var eW=n(64749);function eK(e){return e.label||!e.identifier?e.label||"":(0,eW.s)(e.identifier)}function e$(e){if(!e._compiled){let t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}var eZ=n(78182);let eq=/\r?\n|\r/g;function eG(e,t){let n,r=[],i=0,l=0;for(;n=eq.exec(e);)o(e.slice(i,n.index)),r.push(n[0]),i=n.index+n[0].length,l++;return o(e.slice(i)),r.join("");function o(e){r.push(t(e,l,!e))}}var eY=n(40225);function eX(e,t){return e-t}function eQ(e,t){let n,r=/\\(?=[!-/:-@[-`{-~])/g,i=[],l=[],o=e+t,a=-1,s=0;for(;n=r.exec(o);)i.push(n.index);for(;++a<i.length;)s!==i[a]&&l.push(e.slice(s,i[a])),l.push("\\"),s=i[a];return l.push(e.slice(s)),l.join("")}function e0(e){let t=e||{},n=t.now||{},r=t.lineShift||0,i=n.line||1,l=n.column||1;return{move:function(e){let t=e||"",n=t.split(/\r?\n|\r/g),o=n[n.length-1];return i+=n.length-1,l=1===n.length?l+o.length:1+o.length+r,t},current:function(){return{now:{line:i,column:l},lineShift:r}},shift:function(e){r+=e}}}function e1(e,t){let n={associationId:eK,containerPhrasing:e3,containerFlow:e8,createTracker:e0,compilePattern:e$,enter:function(e){return n.stack.push(e),function(){n.stack.pop()}},handlers:{...eH.p},handle:void 0,indentLines:eG,indexStack:[],join:[...ez],options:{},safe:e7,stack:[],unsafe:[...eU]};!function e(t,n){var r,i,l,o;let a,s=-1;if(n.extensions)for(;++s<n.extensions.length;)e(t,n.extensions[s]);for(a in n)if(eV.call(n,a))switch(a){case"extensions":break;case"unsafe":case"join":r=t[a],(i=n[a])&&r.push(...i);break;case"handlers":l=t[a],(o=n[a])&&Object.assign(l,o);break;default:t.options[a]=n[a]}return t}(n,t||{}),n.options.tightDefinitions&&n.join.push(e9),n.handle=function(e,t){let n=t||{};
1function r(t,...n){let i=r.invalid,l=r.handlers;if(t&&eD.call(t,e)){let n=String(t[e]);i=eD.call(l,n)?l[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}("type",{invalid:e2,unknown:e5,handlers:n.handlers});let r=n.handle(e,void 0,n,{before:"\n",after:"\n",now:{line:1,column:1},lineShift:0});return r&&10!==r.charCodeAt(r.length-1)&&13!==r.charCodeAt(r.length-1)&&(r+="\n"),r}function e2(e){throw Error("Cannot handle value `"+e+"`, expected node")}function e5(e){throw Error("Cannot handle unknown node `"+e.type+"`")}function e9(e,t){if("definition"===e.type&&e.type===t.type)return 0}function e3(e,t){return function(e,t,n){let r,i=t.indexStack,l=e.children||[],o=[],a=-1,s=n.before;i.push(-1);let u=t.createTracker(n);for(;++a<l.length;){let c,d=l[a];if(i[i.length-1]=a,a+1<l.length){let n=t.handle.handlers[l[a+1].type];n&&n.peek&&(n=n.peek),c=n?n(l[a+1],e,t,{before:"",after:"",...u.current()}).charAt(0):""}else c=n.after;o.length>0&&("\r"===s||"\n"===s)&&"html"===d.type&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),s=" ",(u=t.createTracker(n)).move(o.join("")));let f=t.handle(d,e,t,{...u.current(),after:c,before:s});r&&r===f.slice(0,1)&&(f=(0,eZ.T)(r.charCodeAt(0))+f.slice(1));let p=t.attentionEncodeSurroundingInfo;t.attentionEncodeSurroundingInfo=void 0,r=void 0,p&&(o.length>0&&p.before&&s===o[o.length-1].slice(-1)&&(o[o.length-1]=o[o.length-1].slice(0,-1)+(0,eZ.T)(s.charCodeAt(0))),p.after&&(r=c)),u.move(f),o.push(f),s=f.slice(-1)}return i.pop(),o.join("")}(e,this,t)}function e8(e,t){return function(e,t,n){let r=t.indexStack,i=e.children||[],l=t.createTracker(n),o=[],a=-1;for(r.push(-1);++a<i.length;){let n=i[a];r[r.length-1]=a,o.push(l.move(t.handle(n,e,t,{before:"\n",after:"\n",...l.current()}))),"list"!==n.type&&(t.bulletLastUsed=void 0),a<i.length-1&&o.push(l.move(function(e,t,n,r){let i=r.join.length;for(;i--;){let l=r.join[i](e,t,n,r);if(!0===l||1===l)break;if("number"==typeof l)return"\n".repeat(1+l);if(!1===l)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}(n,i[a+1],e,t)))}return r.pop(),o.join("")}(e,this,t)}function e7(e,t){return function(e,t,n){let r=(n.before||"")+(t||"")+(n.after||""),i=[],l=[],o={},a=-1;for(;++a<e.unsafe.length;){let t,n=e.unsafe[a];if(!(0,eY.q)(e.stack,n))continue;let l=e.compilePattern(n);for(;t=l.exec(r);){let e="before"in n||!!n.atBreak,r="after"in n,l=t.index+(e?t[1].length:0);i.includes(l)?(o[l].before&&!e&&(o[l].before=!1),o[l].after&&!r&&(o[l].after=!1)):(i.push(l),o[l]={before:e,after:r})}}i.sort(eX);let s=n.before?n.before.length:0,u=r.length-(n.after?n.after.length:0);for(a=-1;++a<i.length;){let e=i[a];!(e<s)&&!(e>=u)&&(!(e+1<u)||i[a+1]!==e+1||!o[e].after||o[e+1].before||o[e+1].after)&&(i[a-1]!==e-1||!o[e].before||o[e-1].before||o[e-1].after)&&(s!==e&&l.push(eQ(r.slice(s,e),"\\")),s=e,!/[!-/:-@[-`{-~]/.test(r.charAt(e))||n.encode&&n.encode.includes(r.charAt(e))?(l.push((0,eZ.T)(r.charCodeAt(e))),s++):l.push("\\"))}return l.push(eQ(r.slice(s,u),n.after)),l.join("")}(this,e,t)}let e4=["mdxJsxTextElement","mdxJsxFlowElement"];function e6(e){return e4.includes(e.type)&&te.includes(e.name.toLowerCase())}let te=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","input","ins","kbd","label","legend","li","link","main","map","mark","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function tt(e){let t={};return e.split(";").filter(e=>""!==e.trim()).forEach(e=>{let[n,r]=e.split(":").map(e=>e.trim());t[n]=r}),t}let tn=/\s+$/,tr=/^\s+/;var ti=n(35932);function tl(e){return e.children instanceof Array}
1class to extends Error{constructor(e,t){super(e),this.name="MarkdownParseError",this.cause=t}}class ta extends Error{constructor(e){super(e),this.name="UnrecognizedMarkdownConstructError"}}var ts=n(60194),tu=Object.defineProperty,tc=(e,t,n)=>(((e,t,n)=>t in e?tu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),n);let td="generic-html";class tf extends l.fGB{constructor(e,t,n,r){super(r),tc(this,"__tag"),tc(this,"__nodeType"),tc(this,"__attributes"),this.__tag=e,this.__nodeType=t,this.__attributes=n}static getType(){return td}static clone(e){return new tf(e.__tag,e.__nodeType,e.__attributes,e.__key)}getTag(){return this.__tag}getNodeType(){return this.__nodeType}getAttributes(){return this.__attributes}updateAttributes(e){this.getWritable().__attributes=e}getStyle(){var e;return null==(e=this.__attributes.find(e=>"style"===e.name))?void 0:e.value}createDOM(){let e=this.__tag,t=document.createElement(e);return this.__attributes.forEach(e=>{t.setAttribute(e.name,e.value)}),t}updateDOM(){return!1}static importDOM(){return{}}exportDOM(e){let{element:t}=super.exportDOM(e);return{element:t}}static importJSON(e){let t=tp(e.tag,e.mdxType,e.attributes);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{...super.exportJSON(),tag:this.getTag(),attributes:this.__attributes,mdxType:this.__nodeType,type:td,version:1}}extractWithChild(){return!0}isInline(){return"mdxJsxTextElement"===this.__nodeType}}function tp(e,t,n){return(0,l.pTq)(new tf(e,t,n))}let th={testLexicalNode:function(e){return e instanceof tf},visitLexicalNode({actions:e,lexicalNode:t}){e.addAndStepInto("mdxJsxTextElement",{name:t.getTag(),type:t.getNodeType(),attributes:t.getAttributes()})},priority:-100},tg={testLexicalNode:l.wH$,visitLexicalNode:({mdastParent:e,actions:t})=>{t.appendToParent(e,{type:"text",value:"\n"})}},tm={testLexicalNode:l.bSg,visitLexicalNode:({actions:e})=>{e.addAndStepInto("paragraph")}},ty={testLexicalNode:l.hVZ,visitLexicalNode:({actions:e})=>{e.addAndStepInto("root")}};var tv=n(69662);function tx(e){return"text"===e.type}let tb=["u","span","sub","sup"],t_={shouldJoin:(e,t)=>["text","emphasis","strong","highlight"].includes(e.type)?e.type===t.type:!!("mdxJsxTextElement"===e.type&&"mdxJsxTextElement"===t.type&&tb.includes(t.name))&&e.name===t.name&&JSON.stringify(e.attributes)===JSON.stringify(t.attributes),join:(e,t)=>tx(e)&&tx(t)?{type:"text",value:e.value+t.value}:{...e,children:[...e.children,...t.children]},testLexicalNode:l.kFe,visitLexicalNode:({lexicalNode:e,mdastParent:t,actions:n})=>{let r=e.getPreviousSibling(),i=(0,l.kFe)(r)?r.getFormat():0,o=e.getTextContent(),a=e.getFormat(),s=e.getStyle(),u=t;if(s&&(u=n.appendToParent(u,{type:"mdxJsxTextElement",name:"span",children:[],attributes:[{type:"mdxJsxAttribute",name:"style",value:s}]})),i&a&tv.Ig&&(u=n.appendToParent(u,{type:"mdxJsxTextElement",name:"u",children:[],attributes:[]})),i&a&tv.o4&&(u=n.appendToParent(u,{type:"mdxJsxTextElement",name:"sup",children:[],attributes:[]})),i&a&tv.Te&&(u=n.appendToParent(u,{type:"mdxJsxTextElement",name:"sub",children:[],attributes:[]})),i&a&tv.S3&&(u=n.appendToParent(u,{type:"emphasis",children:[]})),i&a&tv.FA&&(u=n.appendToParent(u,{type:"strong",children:[]})),i&a&tv.J6&&(u=n.appendToParent(u,{type:"delete",children:[]})),i&a&tv.sM&&(u=n.appendToParent(u,{type:"highlight",children:[]})),a&tv.Ig&&!(i&tv.Ig)&&(u=n.appendToParent(u,{type:"mdxJsxTextElement",name:"u",children:[],attributes:[]})),a&tv.o4&&!(i&tv.o4)&&(u=n.appendToParent(u,{type:"mdxJsxTextElement",name:"sup",children:[],attributes:[]})),a&tv.Te&&!(i&tv.Te)&&(u=n.appendToParent(u,{type:"mdxJsxTextElement",name:"sub",children:[],attributes:[]})),a&tv.S3&&!(i&tv.S3)&&(u=n.appendToParent(u,{type:"emphasis",children:[]})),a&tv.FA&&!(i&tv.FA)&&(u=n.appendToParent(u,{type:"strong",children:[]})),a&tv.J6&&!(i&tv.J6)&&(u=n.appendToParent(u,{type:"delete",children:[]})),a&tv.sM&&!(i&tv.sM)&&(u=n.appendToParent(u,{type:"highlight",children:[]})),a&tv.jG)return void n.appendToParent(u,{type:"inlineCode",value:o});n.appendToParent(u,{type:"text",value:o})}},tC={testNode:"break",visitNode:function({lexicalParent:e}){e.append((0,l.WKo)())}};function tw(e,t){return[{testNode:t=>"mdxJsxTextElement"===t.type&&t.name===e,visitNode({actions:e,mdastNode:n,lexicalParent:r}){e.addFormatting(t),e.visitChildren(n,r)}},{testNode:t=>"html"===t.type&&t.value===`<${e}>`,visitNode({actions:e,mdastParent:n}){e.addFormatting(t,n)}},{testNode:t=>"html"===t.type&&t.value===`</${e}>`,visitNode({actions:e,mdastParent:n}){e.removeFormatting(t,n)}}]}let tk=[{testNode:"emphasis",visitNode({mdastNode:e,actions:t,lexicalParent:n}
1){t.addFormatting(tv.S3),t.visitChildren(e,n)}},{testNode:"strong",visitNode({mdastNode:e,actions:t,lexicalParent:n}){t.addFormatting(tv.FA),t.visitChildren(e,n)}},...tw("u",tv.Ig),...tw("code",tv.jG),{testNode:"inlineCode",visitNode({mdastNode:e,actions:t}){t.addAndStepInto((0,l.sTu)(e.value).setFormat(t.getParentFormatting()|tv.jG))}},{testNode:"delete",visitNode({mdastNode:e,actions:t,lexicalParent:n}){t.addFormatting(tv.J6),t.visitChildren(e,n)}},{testNode:"highlight",visitNode({mdastNode:e,actions:t,lexicalParent:n}){t.addFormatting(tv.sM),t.visitChildren(e,n)}},...tw("sup",tv.o4),...tw("sub",tv.Te)],tE={testNode:e6,visitNode:function({mdastNode:e,actions:t,lexicalParent:n}){"span"===e.name&&1===e.attributes.length&&"mdxJsxAttribute"===e.attributes[0].type&&"style"===e.attributes[0].name?(t.addStyle(e.attributes[0].value,e),t.visitChildren(e,n)):t.addAndStepInto(tp(e.name,e.type,e.attributes))},priority:-100},tS=["listitem","admonition"],tT={testNode:"paragraph",visitNode:function({mdastNode:e,lexicalParent:t,actions:n}){tS.includes(t.getType())?n.visitChildren(e,t):n.addAndStepInto((0,l.lJ7)())}},tA={testNode:"root",visitNode({actions:e,mdastNode:t,lexicalParent:n}){e.visitChildren(t,n)}},tN={testNode:"text",visitNode({mdastNode:e,actions:t}){let n=(0,l.sTu)(e.value);n.setFormat(t.getParentFormatting());let r=t.getParentStyle();""!==r&&n.setStyle(r),t.addAndStepInto(n)}};var tI=n(44696),tL=n(25118);function tP({delay:e,externalHistoryState:t}){let[n]=(0,tI.DF)();return function(e,t,n=1e3){let r=(0,tL.useMemo)(()=>t||a(),[t]);(0,tL.useEffect)(()=>(function(e,t,n){let r,a,s=(r=Date.now(),a=0,(t,i,o,s,u,c)=>{let d=Date.now();if(c.has(l.n0X))return a=0,r=d,2;let f=function(e,t,n,r,i){if(null===e||0===n.size&&0===r.size&&!i)return 0;let o=t._selection,a=e._selection;if(i)return 1;if(!((0,l.I2P)(o)&&(0,l.I2P)(a)&&a.isCollapsed()&&o.isCollapsed()))return 0;let s=function(e,t,n){let r=e._nodeMap,i=[];for(let e of t){let t=r.get(e);void 0!==t&&i.push(t)}for(let[e,t]of n){if(!t)continue;let n=r.get(e);void 0===n||(0,l.hVZ)(n)||i.push(n)}return i}(t,n,r);if(0===s.length)return 0;if(s.length>1){let n=t._nodeMap,r=n.get(o.anchor.key),i=n.get(a.anchor.key);return r&&i&&!e._nodeMap.has(r.__key)&&(0,l.kFe)(r)&&1===r.__text.length&&1===o.anchor.offset?2:0}let u=s[0],c=e._nodeMap.get(u.__key);if(!(0,l.kFe)(c)||!(0,l.kFe)(u)||c.__mode!==u.__mode)return 0;let d=c.__text,f=u.__text;if(d===f)return 0;let p=o.anchor,h=a.anchor;if(p.key!==h.key||"text"!==p.type)return 0;let g=p.offset,m=h.offset,y=f.length-d.length;return 1===y&&m===g-1?2:-1===y&&m===g+1?3:4*(-1===y&&m===g)}(t,i,s,u,e.isComposing()),p=(()=>{let p=null===o||o.editor===e,h=c.has(l.bMH);if(!h&&p&&c.has(l.T40))return 0;if(null===t)return 1;let g=i._selection;return s.size>0||u.size>0?!1===h&&0!==f&&f===a&&d<r+n&&p||1===s.size&&function(e,t,n){let r=t._nodeMap.get(e),i=n._nodeMap.get(e),o=t._selection,a=n._selection;return!((0,l.I2P)(o)&&(0,l.I2P)(a)&&"element"===o.anchor.type&&"element"===o.focus.type&&"text"===a.anchor.type&&"text"===a.focus.type||!(0,l.kFe)(r)||!(0,l.kFe)(i)||r.__parent!==i.__parent)&&JSON.stringify(t.read(()=>r.exportJSON()))===JSON.stringify(n.read(()=>i.exportJSON()))}(Array.from(s)[0],t,i)?0:1:2*(null===g)})();return r=d,a=f,p});return(0,i.Sd)(e.registerCommand(l.ZKf,()=>((function(e,t){let n=t.redoStack,r=t.undoStack;if(0!==r.length){let i=t.current,o=r.pop();null!==i&&(n.push(i),e.dispatchCommand(l.WWb,!0)),0===r.length&&e.dispatchCommand(l.KfJ,!1),t.current=o||null,o&&o.editor.setEditorState(o.editorState,{tag:l.n0X})}})(e,t),!0),l.jZM),e.registerCommand(l.V30,()=>((function(e,t){let n=t.redoStack,r=t.undoStack;if(0!==n.length){let i=t.current;null!==i&&(r.push(i),e.dispatchCommand(l.KfJ,!0));let o=n.pop();0===n.length&&e.dispatchCommand(l.WWb,!1),t.current=o||null,o&&o.editor.setEditorState(o.editorState,{tag:l.n0X})}})(e,t),!0),l.jZM),e.registerCommand(l.SKc,()=>(o(t),!1),l.jZM),e.registerCommand(l.t5V,()=>(o(t),e.dispatchCommand(l.WWb,!1),e.dispatchCommand(l.KfJ,!1),!0),l.jZM),e.registerUpdateListener(({editorState:n,prevEditorState:r,dirtyLeaves:i,dirtyElements:o,tags:a})=>{let u=t.current,c=t.redoStack,d=t.undoStack,f=null===u?null:u.editorState;if(null!==u&&n===f)return;let p=s(r,n,u,i,o,a);if(1===p)0!==c.length&&(t.redoStack=[],e.dispatchCommand(l.WWb,!1)),null!==u&&(d.push({...u}),e.dispatchCommand(l.KfJ,!0));else if(2===p)return;t.current={editor:e,editorState:n}}))})(e,r,n),[n,e,r])}(n,t,e),null}let tF=()=>tL.createElement(tP,{externalHistoryState:(0,c.X3)(nD)}),tM=(e,t,n)=>{return function(t){return e.enter("comment"),e.consume(t),r};function r(t){return t===ep.exclamationMark?(e.consume(t),i):n(t)}function i(t){return t===ep.dash?(e.consume(t),l):n(t)}function l(t){return t===ep.dash?(e.consume(t),o):n(t)}function o(t){return t===ep.greaterThan?n(t):(0,eb.HP)(t)?u(t):(e.enter(eh.data),t===ep.dash)?(e.consume(t),a):s(t)}function a(e){return e===ep.greaterThan?n(e):s(e)}function s(t){return t===ep.eof?n(t):t===ep.dash?(e.consume(t),d):(0,eb.HP)(t)?(e.exit(eh.data),u(t)):(e.consume(t),s)}function u(t){return e.enter(eh.lineEnding),e.consume(t),e.exit(eh.lineEnding),(0,ex.N)(e,c,eh.linePrefix)}function c(t){return(0,eb.HP)(t)?u(t):(e.enter(eh.data),s(t))}function d(t){return t===ep.dash?(e.consume(t),f):s(t)}function f(n){return n===ep.greaterThan?(e.exit(eh.data),e.enter("commentEnd"),e.consume(n),e.exit("commentEnd"),e.exit("comment"),t(n)):n===ep.dash?(e.consume(n),f):s(n)}},tO={flow:{60:{tokenize:tM,concrete:!0}},text:{60:{tokenize:tM}}};var tR=n(35242);let tD=(0,l.guI)("NESTED_EDITOR_UPDATED_COMMAND"),tV=(0,c.fh)(null),tH=(0,c.fh)(null),tB=(0,c.fh)(""),tj=(0,c.fh)(!0),tz=(0,c.fh)(!1,e=>{e.sub(e.pipe(tz,(0,c.EY)(tV)),([e,t])=>{null==t||t.setEditable(!e)})}),tJ=(0,c.fh)(""),tU=(0,c.fh)(!1),tW=(0,c.fh)(!1),tK=(0,c.fh)(0),t$=(0,c.fh)(null),tZ=(0,c.HN)(e=>{e.link(e.pipe(t$,(0,c.pb)(e=>null!==e)),tZ)}),tq=(0,c.HN)(e=>{e.sub(e.pipe(tq,(0,c.EY)(tH)),([e,t])=>
1{null==t||t.dispatchCommand(l.mB,e)})}),tG=(0,c.fh)(null,e=>{e.sub(e.pipe(tG,(0,c.EY)(tH)),([t,n])=>{if(!t||!n)return;let r=t.anchor.getNode(),o="root"===r.getKey()?r:(0,i.Bt)(r,e=>{let t=e.getParent();return null!==t&&(0,l.IqF)(t)});o??(o=r.getTopLevelElementOrThrow());let a=o.getKey();if(null!==n.getElementByKey(a)){let t=(0,s.Pi)(o)?o.getTag():o.getType();e.pub(nV,t)}})}),tY=(0,c.fh)(""),tX=(0,c.fh)(""),tQ=(0,c.fh)(!1),t0=(0,c.HN)(e=>{e.link(tX,t0),e.sub(tY,t=>{e.pubIn({[tQ]:!0,[tX]:t})})}),t1=(0,c.HN)(e=>{e.link(e.pipe(t0,(0,c.EY)(nf),(0,c.pb)(([,e])=>!e),(0,c.Tj)(([e])=>e)),t1)},!0),t2=(0,c.fh)([]),t5=(0,c.fh)([]),t9=(0,c.fh)([]),t3=(0,c.fh)([]),t8=(0,c.fh)([]),t7=(0,c.fh)([]),t4=(0,c.fh)({}),t6=(0,c.fh)(!1),ne=(0,c.fh)([]),nt=(0,c.fh)([]),nn=(0,c.fh)([]),nr=(0,c.fh)(null),ni=(0,c.fh)(null),nl=(0,c.fh)(null),no=nC(t5),na=nC(t2),ns=nC(t9),nu=nC(t3),nc=nC(t8),nd=nC(t7),nf=(0,c.fh)(!1),np=(0,c.HN)(e=>{e.sub(e.pipe(np,(0,c.EY)(tX,tV,tW),(0,c.pb)(([e,t])=>e.trim()!==t.trim())),([t,,n,r])=>{e.pub(nf,!0),null==n||n.update(()=>{(0,l.NiT)().clear(),nS(e,(0,l.NiT)(),t),r?n.focus():(0,l.n1P)(null)},{onUpdate:()=>{e.pub(nf,!1)}})})}),nh=(0,c.HN)(e=>{e.sub(e.pipe(nh,(0,c.EY)(tH,tW)),([t,n,r])=>{null==n||n.update(()=>{let i=(0,l.vJq)();if(null!==i){let n={children:[],append(e){this.children.push(e)},getType:()=>i.getNodes()[0].getType()};nS(e,n,t),(0,l.H2A)(n.children)}r?n.focus():(0,l.n1P)(null)})})});function ng(){return(0,c.SQ)((e,[t,n])=>(e.forEach(e=>{if(!e)throw Error("You have a subscription that does not return a teardown");e()}),n?t.map(e=>e(n)):[]),[])}let nm=(0,c.fh)(null),ny=(0,c.fh)([],e=>{e.pipe(e.combine(ny,tH),ng())}),nv=(0,c.fh)([],e=>{e.pipe(e.combine(nv,tV),ng())}),nx=(0,c.fh)(null,ts.lQ,(e,t)=>!!(e&&t&&e.editorRef===t.editorRef)),nb=(0,c.HN)(),n_=(0,c.fh)(e=>{throw Error(`No icon component for ${e}`)});function nC(e,t){return(0,c.HN)((n,r)=>{n.changeWith(e,r,(e,t)=>{Array.isArray(t)||(t=[t]);let n=e;for(let r of t)e.includes(r)||(n=[...n,r]);return n}),null==t||t(n,r)})}function nw(e){let t=(0,l.vJq)();(0,l.I2P)(t)&&e.pubIn({[tG]:t,[tK]:t.format})}let nk=nC(nv,(e,t)=>{e.pub(t,[t=>t.registerCommand(l.MvL,(t,n)=>(e.pubIn({[tH]:n,[tW]:!0}),null===n._parentEditor&&n.getEditorState().read(()=>{e.pub(nx,{rootNode:(0,l.NiT)(),editorType:"lexical",editorRef:n})}),nw(e),!1),l.da8),t=>t.registerUpdateListener(({dirtyElements:n,dirtyLeaves:r,editorState:i})=>{let o;null===e.getValue(t$)&&(0!==n.size||0!==r.size)&&(i.read(()=>{(0,l.NiT)().getLastChild()instanceof l.Kp7&&t.update(()=>{(0,l.NiT)().append((0,l.lJ7)())},{discrete:!0}),o=function({root:e,toMarkdownOptions:t,toMarkdownExtensions:n,visitors:r,jsxComponentDescriptors:i,jsxIsAvailable:o}){return e1(function({root:e,visitors:t,jsxComponentDescriptors:n,jsxIsAvailable:r,addImportStatements:i=!0}){let o=null,a=new Set,s=new Map;function u(e,t){a.add(e),t&&s.set(e,{...t})}function c(e,n){if(null===o)return o=n;if(!(e.children instanceof Array))throw Error("Attempting to append children to a non-parent");let r=e.children,i=r.at(-1);if(i){let e=t.find(e=>{var t;return null==(t=e.shouldJoin)?void 0:t.call(e,i,n)});if(e){let t=e.join(i,n);return r.splice(r.length-1,1,t),t}}return r.push(n),n}
1function d(e,t){e.getChildren().forEach(e=>{f(e,t)})}function f(e,n,r=null){var i;let o=t.find((t,n)=>{var i;return(null==r||!r.has(n))&&(null==(i=t.testLexicalNode)?void 0:i.call(t,e))});if(!o)throw Error(`no lexical visitor found for ${e.getType()}`,{cause:e});null==(i=o.visitLexicalNode)||i.call(o,{lexicalNode:e,mdastParent:n,actions:{addAndStepInto(t,r={},i=!0){let o={type:t,...r,...i?{children:[]}:{}};c(n,o),(0,l.ff4)(e)&&i&&d(e,o)},appendToParent:c,visitChildren:d,visit:f,registerReferredComponent:u,nextVisitor(){f(e,n,(r??new Set).add(t.indexOf(o)))}}})}if(t=t.sort((e,t)=>(t.priority??0)-(e.priority??0)),f(e,null),null===o)throw Error("traversal ended with no root element");let p=new Map,h=new Map;for(let e of a){let t=n.find(t=>t.name===e)??s.get(e)??n.find(e=>"*"===e.name);if(!t)throw Error(`Component ${e} is used but not imported`);if(t.source)if(t.defaultExport)h.set(e,t.source);else{let{source:n}=t,r=p.get(n);r?r.push(e):p.set(n,[e])}}if(!i){for(let[e,t]of p.entries()){let n=t.filter(e=>s.has(e));n.length>0?p.set(e,n):p.delete(e)}for(let e of h.keys())s.has(e)||h.delete(e)}let g=Array.from(p).map(([e,t])=>({type:"mdxjsEsm",value:`import { ${t.join(", ")} } from '${e}'`}));g.push(...Array.from(h).map(([e,t])=>({type:"mdxjsEsm",value:`import ${e} from '${t}'`})));let m=o,y=m.children.find(e=>"yaml"===e.type);return y?m.children.splice(m.children.indexOf(y)+1,0,...g):m.children.unshift(...g),function e(t,n){if("strong"===t.type||"emphasis"===t.type){let r=t.children.at(-1);if((null==r?void 0:r.type)==="text"){let i=tn.exec(r.value);if(i){r.value=r.value.replace(tn,"");let l=n.at(-1);l&&(l.children.splice(l.children.indexOf(t)+1,0,{type:"text",value:i[0]}),e(l,n.slice(0,-1)))}}let i=t.children.at(0);if((null==i?void 0:i.type)==="text"){let r=tr.exec(i.value);if(r){i.value=i.value.replace(tr,"");let l=n.at(-1);l&&(l.children.splice(l.children.indexOf(t),0,{type:"text",value:r[0]}),e(l,n.slice(0,-1)))}}}"children"in t&&t.children.length>0&&t.children.forEach(r=>{e(r,[...n,t])})}(m,[]),function e(t){if("children"in t&&t.children.length>0){if(e6(t)&&1===t.children.length){let e=t.children[0];"mdxJsxTextElement"===e.type&&"span"===e.name&&(e.attributes.forEach(e=>{if("mdxJsxAttribute"===e.type){let n=t.attributes.find(t=>"mdxJsxAttribute"===t.type&&t.name===e.name);if(n)if("className"===e.name){let t=new Set([...n.value.split(" "),...e.value.split(" ")]);n.value=Array.from(t).join(" ")}else"style"===e.name&&(n.value=function(e,t){let n=tt(e),r=tt(t);return Object.entries({...n,...r}).map(([e,t])=>`${e}: ${t}`).join("; ")}(n.value,e.value));else t.attributes.push(e)}}),t.children=e.children)}t.children.forEach(t=>{e(t)})}}(m),r||function e(t){if(Object.hasOwn(t,"children")){let n=[];t.children.forEach(t=>{"mdxJsxTextElement"===t.type&&"u"===t.name?n.push({type:"html",value:"<u>"},...t.children,{type:"html",value:"</u>"}):(n.push(t),e(t))}),t.children=n}}(m),m}({root:e,visitors:r,jsxComponentDescriptors:i,jsxIsAvailable:o}),{extensions:n,...t})+"\n"}({root:(0,l.NiT)(),visitors:e.getValue(t8),jsxComponentDescriptors:e.getValue(ne),toMarkdownExtensions:e.getValue(t7),toMarkdownOptions:e.getValue(t4),jsxIsAvailable:e.getValue(t6)})}),e.pub(tX,o.trim()),e.pub(tQ,!1))}),t=>t.registerCommand(l.$7r,()=>(e.pub(tW,!0),!1),l.da8)])}),nE=nC(ny,(e,t)=>{e.pub(t,[t=>t.registerUpdateListener(({editorState:t})=>{t.read(()=>{nw(e)})}),t=>t.registerCommand(l.I2H,t=>{var n;let r=e.getValue(tV);return r&&((null==(n=r.getRootElement())?void 0:n.contains(t.relatedTarget))||e.pubIn({[tW]:!1,[nb]:t})),!1},l.da8)])});function nS(e,t,n){try{!function({root:e,markdown:t,visitors:n,syntaxExtensions:r,mdastExtensions:i,...l}){var o;let a;try{a=(0,ti.Y)(t,{extensions:r,mdastExtensions:i})}catch(e){if(e instanceof Error)throw new to(`Error parsing markdown: ${e.message}`,e);throw new to(`Error parsing markdown: ${e}`,e)}0===a.children.length&&a.children.push({type:"paragraph",children:[]}),(null==(o=a.children.at(-1))?void 0:o.type)!=="paragraph"&&a.children.push({type:"paragraph",children:[]}),function({root:e,mdastRoot:t,visitors:n,...r}){let i=new WeakMap,l=new WeakMap,o=function(e){let t=new Map;return"root"!==e.type?{importDeclarations:{}}:(e.children.filter(e=>"mdxjsEsm"===e.type).filter(e=>
1e.value.startsWith("import ")).forEach(e=>{var n,r;((null==(r=null==(n=e.data)?void 0:n.estree)?void 0:r.body)??[]).forEach(e=>{"ImportDeclaration"===e.type&&e.specifiers.forEach(n=>{t.set(n.local.name,{source:`${e.source.value}`,defaultExport:"ImportDefaultSpecifier"===n.type})})})}),{importDeclarations:Object.fromEntries(t.entries())})}(t);function a(e,t){if(!tl(e))throw Error("Attempting to visit children of a non-parent");e.children.forEach(n=>{s(n,t,e)})}function s(e,t,u,c=null){let d=n.find((t,n)=>(null==c||!c.has(n))&&("string"==typeof t.testNode?t.testNode===e.type:t.testNode(e,r)));if(!d)try{throw new ta(`Unsupported markdown syntax: ${e1(e)}`)}catch(t){throw new ta(`Parsing of the following markdown structure failed: ${JSON.stringify({type:e.type,name:"name"in e?e.name:"N/A"})}`)}d.visitNode({mdastNode:e,lexicalParent:t,mdastParent:u,descriptors:r,metaData:o,actions:{visitChildren:a,nextVisitor(){s(e,t,u,(c??new Set).add(n.indexOf(d)))},addAndStepInto(n){t.append(n),tl(e)&&a(e,n)},addFormatting(t,n){!n&&tl(e)&&(n=e),n&&i.set(n,t|(i.get(u)??0))},removeFormatting(t,n){!n&&tl(e)&&(n=e),n&&i.set(n,t^(i.get(u)??0))},getParentFormatting:()=>i.get(u)??0,addStyle(t,n){!n&&tl(e)&&(n=e),n&&l.set(n,t)},getParentStyle:()=>l.get(u)??""}})}n=n.sort((e,t)=>(t.priority??0)-(e.priority??0)),s(t,e,null)}({root:e,mdastRoot:a,visitors:n,...l})}({root:t,visitors:e.getValue(t2),mdastExtensions:e.getValue(t3),markdown:n,syntaxExtensions:e.getValue(t9),jsxComponentDescriptors:e.getValue(ne),directiveDescriptors:e.getValue(nt),codeBlockEditorDescriptors:e.getValue(nn)}),e.pub(t$,null)}catch(t){if(t instanceof to||t instanceof ta)e.pubIn({[tX]:n,[t$]:{error:t.message,source:n}});else throw t}}let nT=(0,c.fh)([]),nA=nC(nT),nN=(0,c.fh)([]),nI=nC(nN),nL=(0,c.fh)([]),nP=nC(nL),nF=(0,c.fh)([]);nC(nF);let nM=nC((0,c.fh)([])),nO=nC((0,c.fh)([])),nR=(0,c.fh)(!1,e=>{e.link(e.pipe(tH,(0,c.Tj)(e=>{var t,n;return["td","th"].includes((null==(n=null==(t=null==e?void 0:e.getRootElement())?void 0:t.parentNode)?void 0:n.nodeName.toLowerCase())??"")})),nR)}),nD=(0,c.fh)(a()),nV=(0,c.fh)("");(0,c.HN)();let nH=(0,c.HN)(e=>{e.sub(e.pipe(nH,(0,c.EY)(tH)),([e,t])=>{null==t||t.update(()=>{let n=(0,l.vJq)();(0,l.I2P)(n)&&((0,u.zI)(n,e),setTimeout(()=>{t.focus()}))})})}),nB=(0,c.HN)(e=>{e.sub(e.pipe(nB,(0,c.EY)(tH)),([e,t])=>{null==t||t.focus(()=>{t.getEditorState().read(()=>{let n=(0,l.vJq)();(0,l.I2P)(n)&&(t.update(()=>{let t=e();t.isInline()?((0,l.H2A)([t]),(0,l.IqF)(t.getParentOrThrow())&&(0,i.cj)(t,l.lJ7).selectEnd()):(0,i.Pe)(t),setTimeout(()=>{"select"in t&&"function"==typeof t.select&&t.select()})}),setTimeout(()=>{t.dispatchCommand(tD,void 0)}))})},{defaultSelection:"rootEnd"})})}),nj=(0,c.fh)("rich-text",e=>{function t(){return(0,c.SQ)((e,t)=>({current:e.next,next:t}),{current:"rich-text",next:"rich-text"})}e.sub(e.pipe(nj,t(),(0,c.EY)(nz)),([{current:t},n])=>{("source"===t||"diff"===t)&&e.pub(np,n)}),e.sub(e.pipe(nj,t(),(0,c.pb)(e=>"rich-text"===e.current),(0,c.EY)(tH)),([,e])=>{null==e||e.dispatchCommand(tD,void 0)})}),nz=(0,c.fh)("",e=>{e.link(tX,nz),e.link(nz,t0)},!0),nJ=(0,c.fh)([]),nU=nC(nJ),nW=(0,c.fh)(()=>{throw Error("No translation function provided")}),nK=(0,c.fh)(tR.C),n$=(0,r.Z)({init(e,t){let n=(null==t?void 0:t.initialMarkdown)??"";e.register(nk),e.register(nE),e.register(t0),e.register(nz),e.pubIn({[tY]:(null==t?void 0:t.trim)?n.trim():n,[n_]:null==t?void 0:t.iconComponentFor,[na]:[tA,tT,tN,tC,...tk],[no]:[l.fD3,l.Ey8,tf],[nc]:[ty,tm,t_,tg,th],[tB]:null==t?void 0:t.contentEditableClassName,[tj]:null==t?void 0:t.spellCheck,[t4]:null==t?void 0:t.toMarkdownOptions,[tU]:null==t?void 0:t.autoFocus,[tJ]:null==t?void 0:t.placeholder,[tz]:null==t?void 0:t.readOnly,[nW]:null==t?void 0:t.translation,[nu]:[{canContainEols:["delete"],enter:{strikethrough:g},exit:{strikethrough:m}},v],[ns]:[function(e){let t,n={name:"strikethrough",tokenize:function(e,n,r){let i=this.previous,l=this.events,o=0;return function(a){return 126===i&&"characterEscape"!==l[l.length-1][1].type?r(a):(e.enter("strikethroughSequenceTemporary"),function l(a){let s=(0,f.S)(i);if(126===a)return o>1?r(a):(e.consume(a),o++,l);if(o<2&&!t)return r(a);let u=e.exit("strikethroughSequenceTemporary"),c=(0,f.S)(a);return u._open=!c||2===c&&!!s,u._close=!s||2===s&&!!c,n(a)}
1(a))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},l={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",l,t]],a=t.parser.constructs.insideSpan.null;a&&(0,d.m)(o,o.length,0,(0,p.W)(a,e.slice(r+1,n),t)),(0,d.m)(o,o.length,0,[["exit",l,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),(0,d.m)(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}(),function(){let e={name:"highlight",tokenize:function(e,t,n){let r=this.previous,i=this.events,l=0;return function(o){return(ed(o===ep.equalsTo,!1,!0,"ok",!1,"Expected value to be truthy","expected `=`"),r===ep.equalsTo&&i[i.length-1][1].type!==eh.characterEscape)?n(o):(e.enter(em),function i(o){let a=(0,f.S)(r);if(o===ep.equalsTo)return l>1?n(o):(e.consume(o),l++,i);if(l<2)return n(o);let s=e.exit(em),u=(0,f.S)(o);return s._open=!u||u===eg.attentionSideAfter&&!!a,s._close=!a||a===eg.attentionSideAfter&&!!u,t(o)}(o))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&e[n][1].type===em&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&e[r][1].type===em&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type=ey,e[r][1].type=ey;let i={type:"highlight",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},l={type:"highlightText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",l,t]],a=t.parser.constructs.insideSpan.null;a&&(0,d.m)(o,o.length,0,(0,p.W)(a,e.slice(r+1,n),t)),(0,d.m)(o,o.length,0,[["exit",l,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),(0,d.m)(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)e[n][1].type===em&&(e[n][1].type=eh.data);return e}};return{text:{[ep.equalsTo]:e},insideSpan:{null:[e]},attentionMarkers:{null:[ep.equalsTo]}}}()],[nd]:[function(e){let t={},n=t.quote||'"',r=t.quoteSmart||!1,i=t.tightSelfClosing||!1,l=t.printWidth||1/0,o='"'===n?"'":'"';if('"'!==n&&"'"!==n)throw Error("Cannot serialize attribute values with `"+n+"` for `options.quote`, expected `\"`, or `'`");return a.peek=B,{handlers:{mdxJsxFlowElement:a,mdxJsxTextElement:a},unsafe:[{character:"<",inConstruct:["phrasing"]},{atBreak:!0,character:"<"}],fences:!0,resourceLink:!0};function a(e,t,a,s){let u="mdxJsxFlowElement"===e.type,c=!!e.name&&(!e.children||0===e.children.length),d=H(V(a)),f=a.createTracker(s),p=a.createTracker(s),h=[],g=(u?d:"")+"<"+(e.name||""),m=a.enter(e.type);if(f.move(g),p.move(g),e.attributes&&e.attributes.length>0){if(!e.name)throw Error("Cannot serialize fragment w/ attributes");let t=-1;for(;++t<e.attributes.length;){let i,l=e.attributes[t];if("mdxJsxExpressionAttribute"===l.type)i="{"+(l.value||"")+"}";else{if(!l.name)throw Error("Cannot serialize attribute w/o name");let e=l.value,t=l.name,a="";if(null==e);else if("object"==typeof e)a="{"+(e.value||"")+"}";else{let t=r&&_(e,n)>_(e,o)?o:n;a=t+function(e,t){var n=e,r=Object.assign({format:O},t);if(n=n.replace(r.subset?function(e){let t=M.get(e);return t||(t=function(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(F,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(e),M.set(e,t)),t}(r.subset):I,i),r.subset||r.escapeOnly)return n;return n.replace(L,function(e,t,n){return r.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,n.charCodeAt(t+2),r)}).replace(P,i);
1function i(e,t,n){return r.format(e.charCodeAt(0),n.charCodeAt(t+1),r)}}(e,{subset:[t]})+t}i=t+(a?"=":"")+a}h.push(i)}}let y=!1,v=h.join(" ");u&&(/\r?\n|\r/.test(v)||f.current().now.column+v.length+(c?i?2:3:1)>l)&&(y=!0);let x=f,b=g;if(y){x=p;let e=-1;for(;++e<h.length;)h[e]=d+"  "+h[e];b+=x.move("\n"+h.join("\n")+"\n"+d)}else v&&(b+=x.move(" "+v));return c&&(b+=x.move((i||y?"":" ")+"/")),b+=x.move(">"),e.children&&e.children.length>0&&("mdxJsxTextElement"===e.type?b+=x.move(a.containerPhrasing(e,{...x.current(),before:">",after:"<"})):(x.shift(2),b+=x.move("\n"),b+=x.move(function(e,t,n){let r=t.indexStack,i=e.children,l=t.createTracker(n),o=H(V(t)),a=[],s=-1;for(r.push(-1);++s<i.length;){let n=i[s];r[r.length-1]=s;let u={before:"\n",after:"\n",...l.current()},c=t.handle(n,e,t,u),d="mdxJsxFlowElement"===n.type?c:t.indentLines(c,function(e,t,n){return(n?"":o)+e});a.push(l.move(d)),"list"!==n.type&&(t.bulletLastUsed=void 0),s<i.length-1&&a.push(l.move("\n\n"))}return r.pop(),a.join("")}(e,a,x.current())),b+=x.move("\n"))),c||(b+=x.move((u?d:"")+"</"+(e.name||"")+">")),m(),b}}(),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:h}],handlers:{delete:y}},x],[nK]:(null==t?void 0:t.lexicalTheme)??tR.C}),e.singletonSub(tZ,null==t?void 0:t.onError),e.singletonSub(t1,n=>{null==t||t.onChange(n,e.getValue(tQ))}),e.singletonSub(nb,null==t?void 0:t.onBlur),(null==t?void 0:t.suppressHtmlProcessing)||e.pubIn({[nu]:[function(){return{canContainEols:["mdxJsxTextElement"],enter:{mdxJsxFlowTag:r,mdxJsxFlowTagClosingMarker:i,mdxJsxFlowTagAttribute:d,mdxJsxFlowTagExpressionAttribute:f,mdxJsxFlowTagAttributeValueLiteral:e,mdxJsxFlowTagAttributeValueExpression:e,mdxJsxFlowTagSelfClosingMarker:o,mdxJsxTextTag:r,mdxJsxTextTagClosingMarker:i,mdxJsxTextTagAttribute:d,mdxJsxTextTagExpressionAttribute:f,mdxJsxTextTagAttributeValueLiteral:e,mdxJsxTextTagAttributeValueExpression:e,mdxJsxTextTagSelfClosingMarker:o},exit:{mdxJsxFlowTagClosingMarker:a,mdxJsxFlowTagNamePrimary:s,mdxJsxFlowTagNameMember:u,mdxJsxFlowTagNameLocal:c,mdxJsxFlowTagExpressionAttribute:p,mdxJsxFlowTagExpressionAttributeValue:n,mdxJsxFlowTagAttributeNamePrimary:h,mdxJsxFlowTagAttributeNameLocal:g,mdxJsxFlowTagAttributeValueLiteral:m,mdxJsxFlowTagAttributeValueLiteralValue:n,mdxJsxFlowTagAttributeValueExpression:y,mdxJsxFlowTagAttributeValueExpressionValue:n,mdxJsxFlowTagSelfClosingMarker:v,mdxJsxFlowTag:x,mdxJsxTextTagClosingMarker:a,mdxJsxTextTagNamePrimary:s,mdxJsxTextTagNameMember:u,mdxJsxTextTagNameLocal:c,mdxJsxTextTagExpressionAttribute:p,mdxJsxTextTagExpressionAttributeValue:n,mdxJsxTextTagAttributeNamePrimary:h,mdxJsxTextTagAttributeNameLocal:g,mdxJsxTextTagAttributeValueLiteral:m,mdxJsxTextTagAttributeValueLiteralValue:n,mdxJsxTextTagAttributeValueExpression:y,mdxJsxTextTagAttributeValueExpressionValue:n,mdxJsxTextTagSelfClosingMarker:v,mdxJsxTextTag:x}};function e(){this.buffer()}function t(e){return{line:e.line,column:e.column,offset:e.offset}}function n(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}function r(e){let t={name:void 0,attributes:[],close:!1,selfClosing:!1,start:e.start,end:e.end};this.data.mdxJsxTagStack||(this.data.mdxJsxTagStack=[]),this.data.mdxJsxTag=t,this.buffer()}function i(e){let t=this.data.mdxJsxTagStack;if((0,C.ok)(t,"expected `mdxJsxTagStack`"),0===t.length)throw new D.o("Unexpected closing slash `/` in tag, expected an open tag first",{start:e.start,end:e.end},"mdast-util-mdx-jsx:unexpected-closing-slash")}function l(e){let t=this.data.mdxJsxTag;if((0,C.ok)(t,"expected `mdxJsxTag`"),t.close)throw new D.o("Unexpected attribute in closing tag, expected the end of the tag",{start:e.start,end:e.end},"mdast-util-mdx-jsx:unexpected-attribute")}function o(e){let t=this.data.mdxJsxTag;if((0,C.ok)(t,"expected `mdxJsxTag`"),t.close)throw new D.o("Unexpected self-closing slash `/` in closing tag, expected the end of the tag",{start:e.start,end:e.end},"mdast-util-mdx-jsx:unexpected-self-closing-slash")}function a(){let e=this.data.mdxJsxTag;(0,C.ok)(e,"expected `mdxJsxTag`"),e.close=!0}function s(e){let t=this.data.mdxJsxTag;(0,C.ok)(t,"expected `mdxJsxTag`"),t.name=this.sliceSerialize(e)}function u(e){let t=this.data.mdxJsxTag;(0,C.ok)(t,"expected `mdxJsxTag`"),t.name+="."+this.sliceSerialize(e)}function c(e){let t=this.data.mdxJsxTag;(0,C.ok)(t,"expected `mdxJsxTag`"),t.name+=":"+this.sliceSerialize(e)}function d(e){let n=this.data.mdxJsxTag;(0,C.ok)(n,"expected `mdxJsxTag`"),l.call(this,e),n.attributes.push({type:"mdxJsxAttribute",name:"",value:null,position:{start:t(e.start),end:void 0}})}function f(e){let n=this.data.mdxJsxTag;(0,C.ok)(n,"expected `mdxJsxTag`"),l.call(this,e),n.attributes.push({type:"mdxJsxExpressionAttribute",value:"",position:{start:t(e.start),end:void 0}}),this.buffer()}function p(e){let n=this.data.mdxJsxTag;(0,C.ok)(n,"expected `mdxJsxTag`");let r=n.attributes[n.attributes.length-1];(0,C.ok)("mdxJsxExpressionAttribute"===r.type);let i=e.estree;r.value=this.resume(),(0,C.ok)(void 0!==r.position),r.position.end=t(e.end),i&&(r.data={estree:i})}function h(e){let n=this.data.mdxJsxTag;(0,C.ok)(n,"expected `mdxJsxTag`");let r=n.attributes[n.attributes.length-1];(0,C.ok)("mdxJsxAttribute"===r.type),r.name=this.sliceSerialize(e),(0,C.ok)(void 0!==r.position),r.position.end=t(e.end)}function g(e){let n=this.data.mdxJsxTag;(0,C.ok)(n,"expected `mdxJsxTag`");let r=n.attributes[n.attributes.length-1];(0,C.ok)("mdxJsxAttribute"===r.type),r.name+=":"+this.sliceSerialize(e),(0,C.ok)(void 0!==r.position),r.position.end=t(e.end)}function m(e){let n=this.data.mdxJsxTag;(0,C.ok)(n,"expected `mdxJsxTag`");let r=n.attributes[n.attributes.length-1];r.value=function(e,t){let n,r,i,l=t||{},o="string"==typeof l.additional?l.additional.charCodeAt(0):l.additional,a=[],s=0,u=-1,c="";l.position&&("start"in l.position||"indent"in l.position?(r=l.position.indent,n=l.position.start):n=l.position);let d=(n?n.line:0)||1,f=(n?n.column:0)||1,p=m();for(s--;++s<=e.length;)if(10===i&&(f=(r?r[u]:0)||1),38===(i=e.charCodeAt(s))){let t,n=e.charCodeAt(s+1);if(9===n||10===n||12===n||32===n||38===n||60===n||Number.isNaN(n)||o&&n===o){c+=String.fromCharCode(i),f++;continue}let r=s+1,u=r,d=r;if(35===n){d=++u;let n=e.charCodeAt(d);88===n||120===n?(t="hexadecimal",d=++u):t="decimal"}else t="named";let x="",b="",_="",C="named"===t?T:"decimal"===t?E:S;for(d--;++d<=e.length;){let n=e.charCodeAt(d);if(!C(n))break;_+=String.fromCharCode(n),"named"===t&&w.includes(_)&&(x=_,b=(0,A.s)(_))}let N=59===e.charCodeAt(d);if(N){d++;let e="named"===t&&(0,A.s)(_);e&&(x=_,b=e)}let I=1+d-r,L="";if(N||!1!==l.nonTerminated)if(_)if("named"===t){if(N&&!b)y(5,1);else if(x!==_&&(I=1+(d=u+x.length)-u,N=!1),!N){let t=x?1:3;if(l.attribute){let n=e.charCodeAt(d);61===n?(y(t,I),b=""):T(n)?b="":y(t,I)}else y(t,I)}L=b}else{var h,g;N||y(2,I);let e=Number.parseInt(_,"hexadecimal"===t?16:10);if((h=e)>=55296&&h<=57343||h>1114111)y(7,I),L=String.fromCharCode(65533);else if(e in k)y(6,I),L=k[e];else{let t="";((g=e)>=1&&g<=8||11===g||g>=13&&g<=31||g>=127&&g<=159||g>=64976&&g<=65007||(65535&g)==65535||(65535&g)==65534)&&y(6,I),e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10|55296),e=56320|1023&e),L=t+String.fromCharCode(e)}}else"named"!==t&&y(4,I);if(L){v(),p=m(),s=d-1,f+=d-r+1,a.push(L);let t=m();t.offset++,l.reference&&l.reference.call(l.referenceContext||void 0,L,{start:p,end:t},e.slice(r-1,d)),p=t}else _=e.slice(r-1,d),c+=_,f+=_.length,s=d-1}else 10===i&&(d++,u++,f=0),Number.isNaN(i)?v():(c+=String.fromCharCode(i),f++);return a.join("");function m(){return{line:d,column:f,offset:s+((n?n.offset:0)||0)}}function y(e,t){let n;l.warning&&(n=m(),n.column+=t,n.offset+=t,l.warning.call(l.warningContext||void 0,N[e],n,e))}function v(){c&&(a.push(c),l.text&&l.text.call(l.textContext||void 0,c,{start:p,end:m()}),c="")}}(this.resume(),{nonTerminated:!1}),(0,C.ok)(void 0!==r.position),r.position.end=t(e.end)}function y(e){let n=this.data.mdxJsxTag;(0,C.ok)(n,"expected `mdxJsxTag`");let r=n.attributes[n.attributes.length-1];(0,C.ok)("mdxJsxAttribute"===r.type);let i={type:"mdxJsxAttributeValueExpression",value:this.resume()},l=e.estree;l&&(i.data={estree:l}),r.value=i,(0,C.ok)(void 0!==r.position),r.position.end=t(e.end)}function v(){let e=this.data.mdxJsxTag;(0,C.ok)(e,"expected `mdxJsxTag`"),e.selfClosing=!0}function x(e){let t=this.data.mdxJsxTag;(0,C.ok)(t,"expected `mdxJsxTag`");let n=this.data.mdxJsxTagStack;(0,C.ok)(n,"expected `mdxJsxTagStack`");let r=n[n.length-1];if(t.close&&r.name!==t.name)throw new D.o("Unexpected closing tag `"+I(t)+"`, expected corresponding closing tag for `"+I(r)+"` ("+(0,R.L)(r)+")",{start:e.start,end:e.end},"mdast-util-mdx-jsx:end-tag-mismatch");this.resume(),t.close?n.pop():this.enter({type:"mdxJsxTextTag"===e.type?"mdxJsxTextElement":"mdxJsxFlowElement",name:t.name||null,attributes:t.attributes,children:[]},e,b),t.selfClosing||t.close?this.exit(e,_):n.push(t)}function b(e,t){let n=this.data.mdxJsxTagStack;(0,C.ok)(n,"expected `mdxJsxTagStack`");let r=n[n.length-1];(0,C.ok)(r,"expected `mdxJsxTag`");let i=e?" before the end of `"+e.type+"`":"",l=e?{start:e.start,end:e.end}:void 0;throw new D.o("Expected a closing tag for `"+I(r)+"` ("+(0,R.L)({start:t.start,end:t.end})+")"+i,l,"mdast-util-mdx-jsx:end-tag-mismatch")}function _(e,t){let n=this.data.mdxJsxTag;throw(0,C.ok)(n,"expected `mdxJsxTag`"),new D.o("Expected the closing tag `"+I(n)+"` either after the end of `"+t.type+"` ("+(0,R.L)(t.end)+") or another opening tag after the start of `"+t.type+"` ("+(0,R.L)(t.start)+")",{start:e.start,end:e.end},"mdast-util-mdx-jsx:end-tag-mismatch")}function I(e){return"<"+(e.close?"/":"")+(e.name||"")+">"}}
1(),{canContainEols:["comment"],enter:{comment(e){this.buffer()}},exit:{comment(e){this.resume()}}}],[ns]:[function(e){var t,n,r,i;let l,o={},a=o.acorn;if(a){if(!a.parse||!a.parseExpressionAt)throw Error("Expected a proper `acorn` instance passed in as `options.acorn`");l=Object.assign({ecmaVersion:2024,sourceType:"module"},o.acornOptions,{locations:!0})}else if(o.acornOptions||o.addResult)throw Error("Expected an `acorn` instance passed in as `options.acorn`");return{flow:{60:(t=a||void 0,n={acornOptions:l,addResult:o.addResult||void 0},{concrete:!0,name:"mdxJsxFlowTag",tokenize:function(e,r,i){let l=this;return function(e){return o(e)};function o(r){return eR.call(l,e,a,i,t,n.acornOptions,n.addResult,!1,"mdxJsxFlowTag","mdxJsxFlowTagMarker","mdxJsxFlowTagClosingMarker","mdxJsxFlowTagSelfClosingMarker","mdxJsxFlowTagName","mdxJsxFlowTagNamePrimary","mdxJsxFlowTagNameMemberMarker","mdxJsxFlowTagNameMember","mdxJsxFlowTagNamePrefixMarker","mdxJsxFlowTagNameLocal","mdxJsxFlowTagExpressionAttribute","mdxJsxFlowTagExpressionAttributeMarker","mdxJsxFlowTagExpressionAttributeValue","mdxJsxFlowTagAttribute","mdxJsxFlowTagAttributeName","mdxJsxFlowTagAttributeNamePrimary","mdxJsxFlowTagAttributeNamePrefixMarker","mdxJsxFlowTagAttributeNameLocal","mdxJsxFlowTagAttributeInitializerMarker","mdxJsxFlowTagAttributeValueLiteral","mdxJsxFlowTagAttributeValueLiteralMarker","mdxJsxFlowTagAttributeValueLiteralValue","mdxJsxFlowTagAttributeValueExpression","mdxJsxFlowTagAttributeValueExpressionMarker","mdxJsxFlowTagAttributeValueExpressionValue")(r)}function a(t){return(0,eb.On)(t)?(0,ex.N)(e,s,"whitespace")(t):s(t)}function s(t){let n,a=l.parser.constructs.flow[123];for(let e of Array.isArray(a)?a:a?[a]:[])if("mdxFlowExpression"===e.name){n=e;break}return 60===t?o(t):123===t&&n?e.attempt(n,s,i)(t):null===t||(0,eb.HP)(t)?r(t):i(t)}}})},text:{60:(r=a||void 0,i={acornOptions:l,addResult:o.addResult||void 0},{name:"mdxJsxTextTag",tokenize:function(e,t,n){return eR.call(this,e,t,n,r,i.acornOptions,i.addResult,!0,"mdxJsxTextTag","mdxJsxTextTagMarker","mdxJsxTextTagClosingMarker","mdxJsxTextTagSelfClosingMarker","mdxJsxTextTagName","mdxJsxTextTagNamePrimary","mdxJsxTextTagNameMemberMarker","mdxJsxTextTagNameMember","mdxJsxTextTagNamePrefixMarker","mdxJsxTextTagNameLocal","mdxJsxTextTagExpressionAttribute","mdxJsxTextTagExpressionAttributeMarker","mdxJsxTextTagExpressionAttributeValue","mdxJsxTextTagAttribute","mdxJsxTextTagAttributeName","mdxJsxTextTagAttributeNamePrimary","mdxJsxTextTagAttributeNamePrefixMarker","mdxJsxTextTagAttributeNameLocal","mdxJsxTextTagAttributeInitializerMarker","mdxJsxTextTagAttributeValueLiteral","mdxJsxTextTagAttributeValueLiteralMarker","mdxJsxTextTagAttributeValueLiteralValue","mdxJsxTextTagAttributeValueExpression","mdxJsxTextTagAttributeValueExpressionMarker","mdxJsxTextTagAttributeValueExpressionValue")}})}}}(),{disable:{null:["autolink","codeIndented","htmlFlow","htmlText"]}},tO],[na]:tE}),(null==t?void 0:t.suppressSharedHistory)||e.pub(nA,tF)},postInit(e,t){let n=(0,l.ieJ)({editable:(null==t?void 0:t.readOnly)!==!0,namespace:(null==t?void 0:t.lexicalEditorNamespace)??"MDXEditor",nodes:[...e.getValue(t5),...(null==t?void 0:t.additionalLexicalNodes)??[]],onError:e=>{throw e},theme:e.getValue(nK)});(null==t?void 0:t.editorState)!==null&&n.update(()=>{let r=(null==t?void 0:t.initialMarkdown.trim())??"";nS(e,(0,l.NiT)(),r);let i=null==t?void 0:t.autoFocus;if(i){if(!0===i)return void setTimeout(()=>{n.focus(ts.lQ,{defaultSelection:"rootStart"})});setTimeout(()=>{n.focus(ts.lQ,{defaultSelection:i.defaultSelection??"rootStart"})})}}),e.pub(tV,n),e.pub(tH,n)},update(e,t){e.pubIn({[tB]:null==t?void 0:t.contentEditableClassName,[tj]:null==t?void 0:t.spellCheck,[t4]:null==t?void 0:t.toMarkdownOptions,[tU]:null==t?void 0:t.autoFocus,[tJ]:null==t?void 0:t.placeholder,[tz]:null==t?void 0:t.readOnly}),e.singletonSub(t1,n=>{null==t||t.onChange(n,e.getValue(tQ))}),e.singletonSub(nb,null==t?void 0:t.onBlur),e.singletonSub(tZ,null==t?void 0:t.onError)}});function nZ(){return(0,c.X3)(nW)}},48914:(e,t,n)=>{"use strict";n.d(t,{N:()=>i});var r=n(25118),i=globalThis?.document?r.useLayoutEffect:()=>{}},52517:()=>{!function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,function(){return t});t=t.replace(/<self>/g,function(){return/[^\s\S]/.source}),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}
1],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(Prism)},53632:(e,t,n)=>{"use strict";function r(e,t){return!!(!1===t.options.fences&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}n.d(t,{m:()=>r})},53921:(e,t,n)=>{"use strict";n.d(t,{qW:()=>f});var r,i=n(25118),l=n(92701),o=n(11064),a=n(59439),s=n(29646),u=n(32846),c="dismissableLayer.update",d=i.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),f=i.forwardRef((e,t)=>{var n,f;let{disableOutsidePointerEvents:g=!1,onEscapeKeyDown:m,onPointerDownOutside:y,onFocusOutside:v,onInteractOutside:x,onDismiss:b,..._}=e,C=i.useContext(d),[w,k]=i.useState(null),E=null!=(f=null==w?void 0:w.ownerDocument)?f:null==(n=globalThis)?void 0:n.document,[,S]=i.useState({}),T=(0,a.s)(t,e=>k(e)),A=Array.from(C.layers),[N]=[...C.layersWithOutsidePointerEventsDisabled].slice(-1),I=A.indexOf(N),L=w?A.indexOf(w):-1,P=C.layersWithOutsidePointerEventsDisabled.size>0,F=L>=I,M=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,s.c)(e),l=i.useRef(!1),o=i.useRef(()=>{});return i.useEffect(()=>{let e=e=>{if(e.target&&!l.current){let t=function(){h("dismissableLayer.pointerDownOutside",r,i,{discrete:!0})},i={originalEvent:e};"touch"===e.pointerType?(n.removeEventListener("click",o.current),o.current=t,n.addEventListener("click",o.current,{once:!0})):t()}else n.removeEventListener("click",o.current);l.current=!1},t=window.setTimeout(()=>{n.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(t),n.removeEventListener("pointerdown",e),n.removeEventListener("click",o.current)}},[n,r]),{onPointerDownCapture:()=>l.current=!0}}(e=>{let t=e.target,n=[...C.branches].some(e=>e.contains(t));F&&!n&&(null==y||y(e),null==x||x(e),e.defaultPrevented||null==b||b())},E),O=function(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==(t=globalThis)?void 0:t.document,r=(0,s.c)(e),l=i.useRef(!1);return i.useEffect(()=>{let e=e=>{e.target&&!l.current&&h("dismissableLayer.focusOutside",r,{originalEvent:e},{discrete:!1})};return n.addEventListener("focusin",e),()=>n.removeEventListener("focusin",e)},[n,r]),{onFocusCapture:()=>l.current=!0,onBlurCapture:()=>l.current=!1}}(e=>{let t=e.target;![...C.branches].some(e=>e.contains(t))&&(null==v||v(e),null==x||x(e),e.defaultPrevented||null==b||b())},E);return!function(e,t=globalThis?.document){let n=(0,s.c)(e);i.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{L===C.layers.size-1&&(null==m||m(e),!e.defaultPrevented&&b&&(e.preventDefault(),b()))},E),i.useEffect(()=>{if(w)return g&&(0===C.layersWithOutsidePointerEventsDisabled.size&&(r=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),C.layersWithOutsidePointerEventsDisabled.add(w)),C.layers.add(w),p(),()=>{g&&1===C.layersWithOutsidePointerEventsDisabled.size&&(E.body.style.pointerEvents=r)}},[w,E,g,C]),i.useEffect(()=>()=>{w&&(C.layers.delete(w),C.layersWithOutsidePointerEventsDisabled.delete(w),p())},[w,C]),i.useEffect(()=>{let e=()=>S({});return document.addEventListener(c,e),()=>document.removeEventListener(c,e)},[]),(0,u.jsx)(o.sG.div,{..._,ref:T,style:{pointerEvents:P?F?"auto":"none":void 0,...e.style},onFocusCapture:(0,l.mK)(e.onFocusCapture,O.onFocusCapture),onBlurCapture:(0,l.mK)(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:(0,l.mK)(e.onPointerDownCapture,M.onPointerDownCapture)})});function p(){let e=new CustomEvent(c);document.dispatchEvent(e)}function h(e,t,n,r){let{discrete:i}=r,l=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&l.addEventListener(e,t,{once:!0}),i?(0,o.hO)(l,a):l.dispatchEvent(a)}f.displayName="DismissableLayer",i.forwardRef((e,t)=>
1{let n=i.useContext(d),r=i.useRef(null),l=(0,a.s)(t,r);return i.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,u.jsx)(o.sG.div,{...e,ref:l})}).displayName="DismissableLayerBranch"},55797:(e,t,n)=>{"use strict";n.d(t,{I:()=>u});var r=n(25118),i=n(45767),l=n(43113),o=n(19735),a=n(48387);let s={bullet:"format_list_bulleted",number:"format_list_numbered",check:"format_list_checked"},u=({options:e=["bullet","number","check"]})=>{let[t,n,u]=(0,o.uX)(i.SH,a.yr,a.Nn),c=(0,o.qM)(i.Nq),d=(0,a.Bd)(),f={bullet:d("toolbar.bulletedList","Bulleted list"),number:d("toolbar.numberedList","Numbered list"),check:d("toolbar.checkList","Check list")},p=e.map(e=>({value:e,title:f[e],contents:n(s[e])}));return r.createElement(l.fp,{value:t||"",items:p,onChange:c,disabled:u})}},56507:()=>{Prism.languages.objectivec=Prism.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete Prism.languages.objectivec["class-name"],Prism.languages.objc=Prism.languages.objectivec},57358:(e,t,n)=>{"use strict";n.d(t,{r:()=>e_});var r=n(25118),i=n(58030),l=n(79622),o=n(87693),a=n(18191);n(95379),n(44435),n(38892),n(24271),n(43298),n(7988),n(2446),n(56507),n(17917),n(76486),n(4853),n(52517),n(78726),n(36292),n(19527),n(27812);let s="data-language",u="data-highlight-language",c="data-theme";class d extends i.fGB{static getType(){return"code"}static clone(e){return new d(e.__language,e.__key)}constructor(e,t){super(t),this.__language=e||void 0,this.__isSyntaxHighlightSupported=!1,this.__theme=void 0}afterCloneFrom(e){super.afterCloneFrom(e),this.__language=e.__language,this.__theme=e.__theme,this.__isSyntaxHighlightSupported=e.__isSyntaxHighlightSupported}createDOM(e){let t=document.createElement("code");(0,a.ZB)(t,e.theme.code),t.setAttribute("spellcheck","false");let n=this.getLanguage();n&&(t.setAttribute(s,n),this.getIsSyntaxHighlightSupported()&&t.setAttribute(u,n));let r=this.getTheme();r&&t.setAttribute(c,r);let i=this.getStyle();return i&&t.setAttribute("style",i),t}updateDOM(e,t,n){let r=this.__language,i=e.__language;r?r!==i&&t.setAttribute(s,r):i&&t.removeAttribute(s);let l=this.__isSyntaxHighlightSupported;e.__isSyntaxHighlightSupported&&i?l&&r?r!==i&&t.setAttribute(u,r):t.removeAttribute(u):l&&r&&t.setAttribute(u,r);let o=this.__theme,a=e.__theme;o?o!==a&&t.setAttribute(c,o):a&&t.removeAttribute(c);let d=this.__style,f=e.__style;return d?d!==f&&t.setAttribute("style",d):f&&t.removeAttribute("style"),!1}exportDOM(e){let t=document.createElement("pre");(0,a.ZB)(t,e._config.theme.code),t.setAttribute("spellcheck","false");let n=this.getLanguage();n&&(t.setAttribute(s,n),this.getIsSyntaxHighlightSupported()&&t.setAttribute(u,n));let r=this.getTheme();r&&t.setAttribute(c,r);let i=this.getStyle();return i&&t.setAttribute("style",i),{element:t}}static importDOM(){return{code:e=>null!=e.textContent&&(/\r?\n/.test(e.textContent)||function e(t,n){for(let r of t.childNodes){if((0,i.sby)(r)&&r.tagName===n)return!0;e(r,n)}return!1}(e,"BR"))?{conversion:h,priority:1}:null,div:()=>({conversion:g,priority:1}),pre:()=>({conversion:h,priority:0}),table:e=>x(e)?{conversion:m,priority:3}:null,td:e=>{let t=e.closest("table");return e.classList.contains("js-file-line")||t&&x(t)?{conversion:y,priority:3}:null},tr:e=>{let t=e.closest("table");return t&&x(t)?{conversion:y,priority:3}:null}}}static importJSON(e){return f().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setLanguage(e.language).setTheme(e.theme)}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),theme:this.getTheme()}}insertNewAfter(e,t=!0){let n=this.getChildren(),r=n.length;if(r>=2&&"\n"===n[r-1].getTextContent()&&"\n"===n[r-2].getTextContent()&&e.isCollapsed()&&e.anchor.key===this.__key&&e.anchor.offset===r){n[r-1].remove(),n[r-2].remove();let e=(0,i.lJ7)();return this.insertAfter(e,t),e}let{anchor:l,focus:o}=e,s=(l.isBefore(o)?l:o).getNode();if((0,i.kFe)(s)){let e=function(e){let t=e;for(let n=(0,i.IlV)(e,"previous");n&&(w(n.origin)||(0,i.MK6)(n.origin));n=(0,a._X)(n))t=n.origin;return t}(s),t=[];for(;;)if((0,i.MK6)(e))t.push((0,i.ev7)()),e=e.getNextSibling();else{if(!w(e))break;{let n=0,r=e.getTextContent(),i=e.getTextContentSize();for(;n<i&&" "===r[n];)n++;if(0!==n&&t.push(C(" ".repeat(n))),n!==i)break;e=e.getNextSibling()}}let n=s.splitText(l.offset)[0],r=+(0!==l.offset),o=n.getIndexWithinParent()+r,u=s.getParentOrThrow(),c=[(0,i.WKo)(),...t];u.splice(o,0,c);let d=t[t.length-1];d?d.select():0===l.offset?n.selectPrevious():n.getNextSibling().selectNext(0,0)}if(p(s)){let{offset:t}=e.anchor;s.splice(t,0,[(0,i.WKo)()]),s.select(t+1,t+1)}return null}canIndent(){return!1}collapseAtStart(){let e=(0,i.lJ7)();
1return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}setLanguage(e){let t=this.getWritable();return t.__language=e||void 0,t}getLanguage(){return this.getLatest().__language}setIsSyntaxHighlightSupported(e){let t=this.getWritable();return t.__isSyntaxHighlightSupported=e,t}getIsSyntaxHighlightSupported(){return this.getLatest().__isSyntaxHighlightSupported}setTheme(e){let t=this.getWritable();return t.__theme=e||void 0,t}getTheme(){return this.getLatest().__theme}}function f(e,t){return(0,i.phO)(d).setLanguage(e).setTheme(t)}function p(e){return e instanceof d}function h(e){return{node:f(e.getAttribute(s))}}function g(e){let t=v(e);return t||function(e){let t=e.parentElement;for(;null!==t;){if(v(t))return!0;t=t.parentElement}return!1}(e)?{node:t?f():null}:{node:null}}function m(){return{node:f()}}function y(){return{node:null}}function v(e){return null!==e.style.fontFamily.match("monospace")}function x(e){return e.classList.contains("js-file-line-container")}class b extends i.Ey8{constructor(e="",t,n){super(e,n),this.__highlightType=t}static getType(){return"code-highlight"}static clone(e){return new b(e.__text,e.__highlightType||void 0,e.__key)}getHighlightType(){return this.getLatest().__highlightType}setHighlightType(e){let t=this.getWritable();return t.__highlightType=e||void 0,t}canHaveFormat(){return!1}createDOM(e){let t=super.createDOM(e),n=_(e.theme,this.__highlightType);return(0,a.ZB)(t,n),t}updateDOM(e,t,n){let r=super.updateDOM(e,t,n),i=_(n.theme,e.__highlightType),l=_(n.theme,this.__highlightType);return i!==l&&(i&&(0,a.HE)(t,i),l&&(0,a.ZB)(t,l)),r}static importJSON(e){return C().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHighlightType(e.highlightType)}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType()}}setFormat(e){return this}isParentRequired(){return!0}createParentElementNode(){return f()}}function _(e,t){return t&&e&&e.codeHighlight&&e.codeHighlight[t]}function C(e="",t){return(0,i.pTq)(new b(e,t))}function w(e){return e instanceof b}!function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach(function(n){var r=t[n],i=[];/^\w+$/.test(n)||i.push(/\w+/.exec(n)[0]),"diff"===n&&i.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:i,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}}),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(Prism),globalThis.Prism||window.Prism;var k=n(84662);function E(e,t){let n={};for(let r of e){let e=t(r);e&&(n[e]?n[e].push(r):n[e]=[r])}return n}let S=/[!-/:-@[-`{-~\s]/;function T(e,t,n){let r=n.length;for(let i=t;i>=r;i--){let t=i-r;if(A(e,t,n,0,r)&&" "!==e[t+r])return t}return -1}function A(e,t,n,r,i){for(let l=0;l<i;l++)if(e[t+l]!==n[r+l])return!1;return!0}let N=e=>(t,n,r,i)=>{let l=e(r);l.append(...n),t.replace(l),i||l.select(0,0)},I=e=>(t,n,r,i)=>{let o=t.getPreviousSibling(),a=t.getNextSibling(),s=(0,l.i)("check"===e?"x"===r[3]:void 0);if((0,l.HY)(a)&&a.getListType()===e){let e=a.getFirstChild();null!==e?e.insertBefore(s):a.append(s),t.remove()}else if((0,l.HY)(o)&&o.getListType()===e)o.append(s),t.remove();else{let n=(0,l.DE)(e,"number"===e?Number(r[2]):void 0);n.append(s),t.replace(n)}s.append(...n),i||s.select(0,0);let u=function(e){let t=e.match(/\t/g),n=e.match(/ /g),r=0;return t&&(r+=t.length),n&&(r+=Math.floor(n.length/4)),r}(r[1]);u&&s.setIndent(u)},L=(e,t,n)=>{let r=[],i=e.getChildren(),o=0;for(let a of i)if((0,l.Mz)(a)){if(1===a.getChildrenSize()){let e=a.getFirstChild();if((0,l.HY)(e)){r.push(L(e,t,n+1));continue}}let i=" ".repeat(4*n),s=e.getListType(),u="number"===s?`${e.getStart()+o}. `:"check"===s?`- [${a.getChecked()?"x":" "}] `:"- ";r.push(i+u+t(a)),o++}return r.join("\n")},P={dependencies:[o.jL],export:(e,t)=>{if(!(0,o.Pi)(e))return null;let n=Number(e.getTag().slice(1));return"#".repeat(n)+" "+t(e)},regExp:/^(#{1,6})\s/,replace:N(e=>{let t="h"+e[1].length;return(0,o.fi)(t)}),type:"element"},F={dependencies:[o.dJ],export:(e,t)=>{if(!(0,o.jd)(e))return null;let n=t(e).split("\n"),r=[];for(let e of n)r.push("> "+e);return r.join("\n")},regExp:/^>\s/,replace:(e,t,n,r)=>{if(r){let n=e.getPreviousSibling();if((0,o.jd)(n))return n.splice(n.getChildrenSize(),0,[(0,i.WKo)(),...t]),void e.remove()}let l=(0,o.xi)();l.append(...t),e.replace(l),r||l.select(0,0)},type:"element"},M={dependencies:[d],export:e=>{if(!p(e))return null;let t=e.getTextContent();return"```"+(e.getLanguage()||"")+(t?"\n"+t:"")+"\n```"},regExpEnd:{optional:!0,regExp:/[ \t]*```$/},regExpStart:/^[ \t]*```([\w-]+)?/,replace:(e,t,n,r,l,o)=>{let a,s;if(!t&&l){if(1===l.length)r?(a=f(),s=n[1]+l[0]):(a=f(n[1]),s=l[0].startsWith(" ")?l[0].slice(1):l[0]);else{if(a=f(n[1]),0===l[0].trim().length)for(;l.length>0&&!l[0].length;)l.shift();else l[0]=l[0].startsWith(" ")?l[0].slice(1):l[0];for(;l.length>0&&!l[l.length-1].length;)l.pop();s=l.join("\n")}let t=(0,i.sTu)(s);a.append(t),e.append(a)}else t&&N(e=>f(e?e[1]:void 0))(e,t,n,o)},type:"multiline-element"},O={dependencies:[l.v5,l.YW],export:(e,t)=>(0,l.HY)(e)?L(e,t,0):null,regExp:/^(\s*)[-*+]\s/,replace:I("bullet"),type:"element"},R={dependencies:[l.v5,l.YW],export:(e,t)=>(0,l.HY)(e)?L(e,t,0):null,regExp:/^(\s*)(?:-\s)?\s?(\[(\s|x)?\])\s/i,replace:I("check"),type:"element"},D={dependencies:[l.v5,l.YW],export:(e,t)=>(0,l.HY)(e)?L(e,t,0):null,regExp:/^(\s*)(\d{1,})\.\s/,replace:I("number"),type:"element"},V={format:["code"],tag:"`",type:"text-format"},H={format:["bold","italic"],tag:"***",type:"text-format"},B={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},j={format:["bold"],tag:"**",type:"text-format"},z={format:["bold"],intraword:!1,tag:"__",type:"text-format"},J={format:["italic"],tag:"*",type:"text-format"},U={format:["italic"],intraword:!1,tag:"_",type:"text-format"},W={dependencies:[k.Db],export:(e,t,n)=>{if(!(0,k.FJ)(e)||(0,k.iK)(e))return null;let r=e.getTitle(),i=t(e);return r?`[${i}](${e.getURL()} "${r}")`:`[${i}](${e.getURL()})`},importRegExp:/(?:\[(.*?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))/,regExp:/(?:\[(.*?)\])(?:\((?:([^()\s]+)(?:\s"((?:[^"]*\\")*[^"]*)"\s*)?)\))$/,replace:(e,t)=>{let[,n,r,l]=t,o=(0,k.zA)(r,{title:l}),a=n.split("[").length-1,s=n.split("]").length-1,u=n,c="";if(a<s)return;if(a>s){let e=n.split("[");c="["+e[0],u=e.slice(1).join("[")}let d=(0,i.sTu)(u);return d.setFormat(e.getFormat()),o.append(d),e.replace(o),c&&o.insertBefore((0,i.sTu)(c)),d},trigger:")",type:"text-match"},K=[P,F,O,D,M,V,H,B,j,z,{format:["highlight"],tag:"==",type:"text-format"},J,U,{format:["strikethrough"],tag:"~~",type:"text-format"},W];var $=n(44696);function Z(e,t){return e.getEditorState().read(()=>{let e=(0,i.nsf)(t);return null!==e&&e.isSelected()})}var q=n(32846);function G({nodeKey:e}){let[t]=(0,$.DF)(),[n,l,o]=function(e){let[t]=(0,$.DF)(),[n,l]=(0,r.useState)(()=>Z(t,e));return(0,r.useEffect)(()=>{let n=!0,r=t.registerUpdateListener(()=>{n&&l(Z(t,e))});return()=>{n=!1,r()}},[t,e]),[n,(0,r.useCallback)(n=>{t.update(()=>{let t=(0,i.vJq)();(0,i.RTZ)(t)||(t=(0,i.rUs)(),(0,i.n1P)(t)),(0,i.RTZ)(t)&&(n?t.add(e):t.delete(e))})},[t,e]),(0,r.useCallback)(()=>{t.update(()=>{let e=(0,i.vJq)();(0,i.RTZ)(e)&&e.clear()})},[t])]}(e);return(0,r.useEffect)(()=>(0,a.Sd)(t.registerCommand(i.d8p,r=>{let i=t.getElementByKey(e);return r.target===i&&(r.shiftKey||o(),l(!n),!0)},i.AcJ)),[o,t,n,e,l]),(0,r.useEffect)(()=>{let r=t.getElementByKey(e),i=t._config.theme.hrSelected??"selected";null!==r&&(n?(0,a.ZB)(r,i):(0,a.HE)(r,i))},[t,n,e]),null}(0,i.guI)("INSERT_HORIZONTAL_RULE_COMMAND");class Y extends i.Kp7{static getType(){return"horizontalrule"}static clone(e){return new Y(e.__key)}static importJSON(e){return Q().updateFromJSON(e)}static importDOM(){return{hr:()=>({conversion:X,priority:0})}}exportDOM(){return{element:document.createElement("hr")}}createDOM(e){let t=document.createElement("hr");return(0,a.ZB)(t,e.theme.hr),t}getTextContent(){return"\n"}isInline(){return!1}updateDOM(){return!1}decorate(){return(0,q.jsx)(G,{nodeKey:this.__key})}}function X(){return{node:Q()}}function Q(){return(0,i.pTq)(new Y)}function ee(e){return e instanceof Y}let et=[{dependencies:[Y],export:e=>ee(e)?"***":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(e,t,n,r)=>{let i=Q();r||null!=e.getNextSibling()?e.replace(i):e.insertBefore(i),i.selectNext()},type:"element"},...K];function en({transformers:e=et}){let[t]=(0,$.DF)();return(0,r.useEffect)(()=>(function(e,t=K){let n=function(e){let t=E(e,e=>e.type);return{element:t.element||[],multilineElement:t["multiline-element"]||[],textFormat:t["text-format"]||[],textMatch:t["text-match"]||[]}}(t),r=E(n.textFormat,({tag:e})=>e[e.length-1]),l=E(n.textMatch,({trigger:e})=>e);for(let n of t){let t=n.type;if("element"===t||"text-match"===t||"multiline-element"===t)for(let t of n.dependencies)e.hasNode(t)||function(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let e of(r.append("code",173),t))r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${173}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(173,t.getType())}return e.registerUpdateListener(({tags:t,dirtyLeaves:o,editorState:a,prevEditorState:s})=>{if(t.has(i.Ng_)||t.has(i.n0X)||e.isComposing())return;let u=a.read(i.vJq),c=s.read(i.vJq);if(!(0,i.I2P)(c)||!(0,i.I2P)(u)||!u.isCollapsed()||u.is(c))return;let d=u.anchor.key,f=u.anchor.offset,h=a._nodeMap.get(d);(0,i.kFe)(h)&&o.has(d)&&(1===f||!(f>
1c.anchor.offset+1))&&e.update(()=>{var e;if(!(0,i.kFe)(h)||h.hasFormat("code"))return;let t=h.getParent();null===t||p(t)||function(e,t,n,r){let l=e.getParent();if(!(0,i.IqF)(l)||e.getFirstChild()!==t)return!1;let o=t.getTextContent();if(" "!==o[n-1])return!1;for(let{regExp:i,replace:l}of r){let r=o.match(i);if(r&&r[0].length===(r[0].endsWith(" ")?n:n-1)){let i=t.getNextSiblings(),[o,a]=t.splitText(n);if(!1!==l(e,a?[a,...i]:i,r,!1))return o.remove(),!0}}return!1}(t,h,e=u.anchor.offset,n.element)||function(e,t,n,r){let l=e.getParent();if(!(0,i.IqF)(l)||e.getFirstChild()!==t)return!1;let o=t.getTextContent();if(" "!==o[n-1])return!1;for(let{regExpStart:i,replace:l,regExpEnd:a}of r){if(a&&!("optional"in a)||a&&"optional"in a&&!a.optional)continue;let r=o.match(i);if(r&&r[0].length===(r[0].endsWith(" ")?n:n-1)){let i=t.getNextSiblings(),[o,a]=t.splitText(n);if(!1!==l(e,a?[a,...i]:i,r,null,null,!1))return o.remove(),!0}}return!1}(t,h,e,n.multilineElement)||function(e,t,n){let r=e.getTextContent(),i=n[r[t-1]];if(null==i)return!1;for(let n of(t<r.length&&(r=r.slice(0,t)),i)){let t;if(!n.replace||!n.regExp)continue;let i=r.match(n.regExp);if(null===i)continue;let l=i.index||0,o=l+i[0].length;return 0===l?[t]=e.splitText(o):[,t]=e.splitText(l,o),t.selectNext(0,0),n.replace(t,i),!0}return!1}(h,e,l)||function(e,t,n){let r=e.getTextContent(),l=t-1,o=r[l],a=n[o];if(a)for(let t of a){let{tag:n}=t,a=n.length,s=l-a+1;if(a>1&&!A(r,s,n,0,a)||" "===r[s-1])continue;let u=r[l+1];if(!1===t.intraword&&u&&!S.test(u))continue;let c=e,d=T(r,s,n),f=c;for(;d<0&&(f=f.getPreviousSibling())&&!(0,i.wH$)(f);)if((0,i.kFe)(f)){if(f.hasFormat("code"))continue;let e=f.getTextContent();c=f,d=T(e,e.length,n)}if(d<0||c===e&&d+a===s)continue;let p=c.getTextContent();if(d>0&&p[d-1]===o)continue;let h=p[d-1];if(!1===t.intraword&&h&&!S.test(h))continue;let g=e.getTextContent(),m=g.slice(0,s)+g.slice(l+1);e.setTextContent(m);let y=c===e?m:p;c.setTextContent(y.slice(0,d)+y.slice(d+a));let v=(0,i.vJq)(),x=(0,i.uTE)();(0,i.n1P)(x);let b=l-a*(c===e?2:1)+1;for(let n of(x.anchor.set(c.__key,d,"text"),x.focus.set(e.__key,b,"text"),t.format))x.hasFormat(n)||x.formatText(n);for(let e of(x.anchor.set(x.focus.key,x.focus.offset,x.focus.type),t.format))x.hasFormat(e)&&x.toggleFormat(e);return(0,i.I2P)(v)&&(x.format=v.format),!0}}(h,e,r)})})})(t,e),[t,e]),null}var er=n(39303),ei=n(19735);let el={testLexicalNode:function(e){return e instanceof eh},visitLexicalNode:({lexicalNode:e,actions:t})=>{t.addAndStepInto("code",{value:e.getCode(),lang:e.getLanguage(),meta:e.getMeta()})}},eo={testNode:(e,{codeBlockEditorDescriptors:t})=>"code"===e.type&&void 0!==t.find(t=>t.match(e.lang,e.meta)),visitNode({mdastNode:e,actions:t}){t.addAndStepInto(ev({code:e.value,language:e.lang,meta:e.meta}))}};var ea=n(48387);let es=(0,ei.fh)(""),eu=(0,ei.HN)(e=>{e.link(e.pipe(eu,(0,ei.EY)(es),(0,ei.Tj)(([e,t])=>()=>ev({language:t,...e}))),ea.p3)});(0,ea.w8)(ea.Wd),(0,er.Z)({update(e,t){e.pub(es,(null==t?void 0:t.defaultCodeBlockLanguage)??"")},init(e,t){e.pubIn({[ea.$0]:"codeblock",[ea.Wd]:(null==t?void 0:t.codeBlockEditorDescriptors)??[],[ea.R1]:eo,[ea.q]:eh,[ea.iI]:el})}});var ec=n(60194);function ed(){let e=ec.lQ;return{publish:()=>{e()},subscribe:t=>{e=t}}}var ef=Object.defineProperty,ep=(e,t,n)=>(((e,t,n)=>t in e?ef(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n),n);class eh extends i.Kp7{constructor(e,t,n,r){super(r),ep(this,"__code"),ep(this,"__meta"),ep(this,"__language"),ep(this,"__focusEmitter",ed()),ep(this,"setCode",e=>{e!==this.__code&&(this.getWritable().__code=e)}),ep(this,"setMeta",e=>{e!==this.__meta&&(this.getWritable().__meta=e)}),ep(this,"setLanguage",e=>{e!==this.__language&&(this.getWritable().__language=e)}),ep(this,"select",()=>{this.__focusEmitter.publish()}),this.__code=e,this.__meta=n,this.__language=t}static getType(){return"codeblock"}static clone(e){return new eh(e.__code,e.__language,e.__meta,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__code=e.__code,this.__meta=e.__meta,this.__language=e.__language,this.__focusEmitter=ed()}
1static importJSON(e){let{code:t,meta:n,language:r}=e;return ev({code:t,language:r,meta:n})}static importDOM(){return{pre:()=>({conversion:ex,priority:3})}}exportJSON(){return{code:this.getCode(),language:this.getLanguage(),meta:this.getMeta(),type:"codeblock",version:1}}createDOM(e,t){return document.createElement("div")}updateDOM(){return!1}getCode(){return this.__code}getMeta(){return this.__meta}getLanguage(){return this.__language}decorate(e){return r.createElement(ey,{parentEditor:e,code:this.getCode(),meta:this.getMeta(),language:this.getLanguage(),codeBlockNode:this,nodeKey:this.getKey(),focusEmitter:this.__focusEmitter})}isInline(){return!1}}let eg=r.createContext(null),em=({parentEditor:e,lexicalNode:t,children:n})=>{let i=r.useMemo(()=>({lexicalNode:t,parentEditor:e,setCode:n=>{e.update(()=>{t.setCode(n),setTimeout(()=>{e.dispatchCommand(ea.Cc,void 0)},0)})},setLanguage:n=>{e.update(()=>{t.setLanguage(n)})},setMeta:n=>{e.update(()=>{t.setMeta(n)})}}),[t,e]);return r.createElement(eg.Provider,{value:i},n)},ey=e=>{let t=(0,ei.X3)(ea.Wd),n=(0,ei.X3)(es),i=t.sort((e,t)=>t.priority-e.priority).find(t=>t.match(e.language||"",e.meta||""));if(i??(i=t.find(t=>t.match(n||"",e.meta||""))),!i)throw Error(`No CodeBlockEditor registered for language=${e.language} meta=${e.meta}`);let l=i.Editor,{codeBlockNode:o,parentEditor:a,...s}=e;return r.createElement(em,{parentEditor:e.parentEditor,lexicalNode:e.codeBlockNode},r.createElement(l,{...s}))};function ev(e){let{code:t="",language:n="",meta:r=""}=e;return new eh(t,n,r)}function ex(e){let t=e.textContent,n=e.getAttribute("class")??"",r=e.getAttribute("data-language")??"",i=/language-(\w+)/.exec(n);return{node:ev({code:t,language:i?i[1]:r,meta:e.getAttribute("data-meta")??""})}}var eb=n(36407);let e_=(0,er.Z)({init(e){let t=e.getValue(ea.TI),n=t.includes("headings")?e.getValue(eb.OO):[],i=function(e,t){let n=[H,B,j,z,V,J,U];if(e.includes("headings")){let e,r=Math.min(...t),i=Math.max(...t),l=RegExp(`^(#{${r},${i}})\\s`),a={dependencies:[o.jL],export:(e,t)=>{if(!(0,o.Pi)(e))return null;let n=Number(e.getTag().slice(1));return"#".repeat(n)+" "+t(e)},regExp:l,replace:(e=e=>{let t=`h${e[1].length}`;return(0,o.fi)(t)},(t,n,r)=>{let i=e(r);i.append(...n),t.replace(i),i.select(0,0)}),type:"element"};n.push(a)}if(e.includes("thematicBreak")&&n.push(eC),e.includes("quote")&&n.push(F),e.includes("link")&&n.push(W),e.includes("lists")&&n.push(D,O,R),e.includes("codeblock")){let e={...M,dependencies:[eh],replace:(e,t,n)=>{let r=ev({code:"",language:n[1]??"",meta:""});e.selectPrevious(),e.replace(r),setTimeout(()=>{r.select()},80)}};n.push(e)}return n}(t,n),l=i.filter(e=>!ew.has(e));e.pubIn({[ea.aC]:()=>r.createElement(en,{transformers:i}),[ea.Id]:()=>r.createElement(en,{transformers:i}),[ea.dH]:()=>r.createElement(en,{transformers:l})})}}),eC={dependencies:[Y],export:e=>ee(e)?"***":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(e,t,n,r)=>{let i=Q();r||null!=e.getNextSibling()?e.replace(i):e.insertBefore(i),i.selectNext()},type:"element"},ew=new Set([D,O,R])},58030:(e,t,n)=>{"use strict";function r(e,...t){let n=new URL("https://lexical.dev/docs/error"),i=new URLSearchParams;for(let n of(i.append("code",e),t))i.append("v",n);throw n.search=i.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}n.d(t,{$7r:()=>e4,$ey:()=>eA,A7V:()=>rn,AX0:()=>eD,AcJ:()=>rs,Ave:()=>i7,B$P:()=>r7,BEs:()=>iA,CaD:()=>j,Cku:()=>nt,Csq:()=>la,Cyw:()=>nQ,Ey8:()=>tz,FEN:()=>ek,GMe:()=>nH,H2A:()=>n_,HYn:()=>e5,Huu:()=>ez,I2H:()=>e6,I2P:()=>t7,IlV:()=>iK,IqF:()=>is,JM3:()=>eO,Jvg:()=>ry,K8K:()=>ix,KfJ:()=>e7,Kp7:()=>nX,LYZ:()=>rb,MK6:()=>t1,MvL:()=>eb,Ng_:()=>n6,NiT:()=>rj,OXk:()=>eK,PiT:()=>eZ,Q$N:()=>eU,R18:()=>eM,RTZ:()=>t6,RTo:()=>ej,Rb_:()=>rE,S1w:()=>ng,SKc:()=>e9,Sr4:()=>eG,T40:()=>n7,TJt:()=>i1,TgX:()=>eX,UDz:()=>eH,V30:()=>eF,VSO:()=>e2,WKo:()=>tF,WWb:()=>e8,WgU:()=>ru,WuB:()=>ew,XKQ:()=>eE,YW5:()=>e$,Z$U:()=>rx,ZKf:()=>eP,_On:()=>ib,a9V:()=>i_,bM3:()=>eS,bMH:()=>n8,bSg:()=>ro,bbF:()=>eB,cmH:()=>iz,d8p:()=>eC,da8:()=>rc,dxY:()=>iN,e1k:()=>r5,erb:()=>iG,ev7:()=>t0,fD3:()=>rr,fGB:()=>nq,fUS:()=>eY,ff4:()=>nG,fwY:()=>n4,gCZ:()=>eJ,guI:()=>ex,hVZ:()=>n1,hi0:()=>eN,i0_:()=>ik,ieJ:()=>rf,jG6:()=>rN,jZM:()=>ra,k1Q:()=>ld,kBm:()=>tN,kFe:()=>tY,lJ7:()=>rl,lSZ:()=>ll,mB:()=>eL,mWO:()=>iQ,n0X:()=>n3,n1P:()=>rJ,nYP:()=>im,nsf:()=>rO,oqR:()=>e_,pGK:()=>lo,pTq:()=>ic,peL:()=>ig,phO:()=>
1iP,rN:()=>iB,rUs:()=>nf,riq:()=>eQ,sTu:()=>tG,sWS:()=>i0,sby:()=>iy,scG:()=>rC,sik:()=>eq,t5V:()=>e3,u5G:()=>e1,uTE:()=>nd,uwZ:()=>iq,vAA:()=>iv,vJq:()=>nh,viC:()=>eI,w$Z:()=>eW,w3H:()=>iC,wH$:()=>tM,waI:()=>eT,wp6:()=>i4,xL4:()=>rV,xQ8:()=>i6,y68:()=>nu});let i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,l=i&&"documentMode"in document?document.documentMode:null,o=i&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),a=i&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),s=!(!i||!("InputEvent"in window)||l)&&"getTargetRanges"in new window.InputEvent("input"),u=i&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),c=i&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,d=i&&/Android/.test(navigator.userAgent),f=i&&/^(?=.*Chrome).*/i.test(navigator.userAgent),p=i&&d&&f,h=i&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!f;function g(...e){let t=[];for(let n of e)if(n&&"string"==typeof n)for(let[e]of n.matchAll(/\S+/g))t.push(e);return t}let m=u||c||h?"\xa0":"​",y=a?"\xa0":m,v={bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},x={directionless:1,unmergeable:2},b={center:2,end:6,justify:4,left:1,right:3,start:5},_={2:"center",6:"end",4:"justify",1:"left",3:"right",5:"start"},C={normal:0,segmented:2,token:1},w={0:"normal",2:"segmented",1:"token"},k="$config",E=!1,S=0;function T(e){S=e.timeStamp}function A(e,t,n){let r="BR"===e.nodeName,i=t.__lexicalLineBreak;return i&&(e===i||r&&e.previousSibling===i)||r&&void 0!==rD(e,n)}function N(e,t,n){E=!0;let r=performance.now()-S>100;try{nK(e,()=>{let i=nh()||e.getEditorState().read(()=>{let e=nh();return null!==e?e.clone():null}),l=new Map,o=e.getRootElement(),s=e._editorState,u=e._blockCursorElement,c=!1,d="";for(let n=0;n<t.length;n++){let f=t[n],p=f.type,h=f.target,g=function(e,t,n,r){var i;for(let l=e;l&&(i=l,!0!==i.__lexicalUnmanaged);l=ir(l)){let e=rD(l,t);if(void 0!==e){let t=rO(e,n);if(t)return nQ(t)||!iy(l)?void 0:[l,t]}else if(l===r)return[r,rz(n)]}}(h,e,s,o);if(!g)continue;let[m,y]=g;if("characterData"===p)r&&tY(y)&&rS(h)&&function(e,t,n){if(t7(e)){let t=e.anchor.getNode();if(t.is(n)&&e.format!==t.getFormat())return!1}return rS(t)&&n.isAttached()}(i,h,y)&&function(e,t,n){let r=ig(ia(n)),i=null,l=null;null!==r&&r.anchorNode===e&&(i=r.anchorOffset,l=r.focusOffset);let o=e.nodeValue;null!==o&&rG(t,o,i,l,!1)}(h,y,e);else if("childList"===p){c=!0;let t=f.addedNodes;for(let n=0;n<t.length;n++){let r=t[n],i=rR(r),l=r.parentNode;if(null!=l&&r!==u&&null===i&&!A(r,l,e)){if(a){let e=(iy(r)?r.innerText:null)||r.nodeValue;e&&(d+=e)}l.removeChild(r)}}let n=f.removedNodes,r=n.length;if(r>0){let t=0;for(let i=0;i<r;i++){let r=n[i];(A(r,h,e)||u===r)&&(h.appendChild(r),t++)}r!==t&&l.set(m,y)}}}if(l.size>0)for(let[t,n]of l)n.reconcileObservedMutation(t,e);let f=n.takeRecords();if(f.length>0){for(let t=0;t<f.length;t++){let n=f[t],r=n.addedNodes,i=n.target;for(let t=0;t<r.length;t++){let n=r[t],l=n.parentNode;null==l||"BR"!==n.nodeName||A(n,i,e)||l.removeChild(n)}}n.takeRecords()}null!==i&&(c&&rJ(i),a&&r4(e)&&i.insertRawText(d))})}finally{E=!1}}function I(e){let t=e._observer;null!==t&&N(e,t.takeRecords(),t)}function L(e){0===S&&ia(e).addEventListener("textInput",T,!0),e._observer=new MutationObserver((t,n)=>{N(e,t,n)})}class P{constructor(e,t,n,r=new Map,i){this.node=e,this.sharedNodeState=t,this.unknownState=n,this.knownState=r;let{sharedConfigMap:l}=this.sharedNodeState,o=void 0!==i?i:function(e,t,n){let r=n.size;if(t)for(let i in t){let t=e.get(i);t&&n.has(t)||r++}return r}(l,n,r);this.size=o}getValue(e){let t=this.knownState.get(e);if(void 0!==t)return t;this.sharedNodeState.sharedConfigMap.set(e.key,e);let n=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){let t=this.unknownState[e.key];void 0!==t&&(n=e.parse(t)),this.updateFromKnown(e,n)}return n}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){let e={...this.unknownState},t={};for(let[t,n]of this.knownState)t.isEqual(n,t.defaultValue)?delete e[t.key]:e[t.key]=t.unparse(n);for(let n of this.sharedNodeState.flatKeys)n in e&&(t[n]=e[n],delete e[n]);return M(e)&&(t.$=e),t}getWritable(e){if(this.node===e)return this;let{sharedNodeState:t,unknownState:n}=this,r=new Map(this.knownState);return new P(e,t,function(e,t,n){let r;if(n)for(let[i,l]of Object.entries(n)){let n=e.get(i);n?t.has(n)||t.set(n,n.parse(l)):(r=r||{})[i]=l}return r}(t.sharedConfigMap,r,n),r,this.size)}updateFromKnown(e,t){let n=e.key;this.sharedNodeState.sharedConfigMap.set(n,e);let{knownState:r,unknownState:i}=this;r.has(e)||i&&n in i||(i&&(delete i[n],this.unknownState=M(i)),this.size++),r.set(e,t)}updateFromUnknown(e,t){let n=this.sharedNodeState.sharedConfigMap.get(e);n?this.updateFromKnown(n,n.parse(t)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=t)}updateFromJSON(e){let{knownState:t}=this;for(let e of t.keys())t.set(e,e.defaultValue);if(this.size=t.size,this.unknownState=void 0,e)for(let[t,n]of Object.entries(e))this.updateFromUnknown(t,n)}}function F(e){return e.__state?e.__state.sharedNodeState:rm(ik(),e.getType()).sharedNodeState}function M(e){if(e)for(let t in e)return e}function O(e,t,n){for(let[r,i]of t.knownState){if(e.has(r.key))continue;e.add(r.key);let t=n?n.getValue(r):r.defaultValue;
1if(t!==i&&!r.isEqual(t,i))return!0}return!1}function R(e,t,n){let{unknownState:r}=t,i=n?n.unknownState:void 0;if(r){for(let[t,n]of Object.entries(r))if(!e.has(t)&&(e.add(t),n!==(i?i[t]:void 0)))return!0}return!1}function D(e,t){let n=e.__state;return n&&n.node===e?n.getWritable(t):n}function V(e,t){let n=e.__mode,r=e.__format,i=e.__style,l=t.__mode,o=t.__format,a=t.__style,s=e.__state,u=t.__state;return(null===n||n===l)&&(null===r||r===o)&&(null===i||i===a)&&(null===e.__state||s===u||function(e,t){if(e===t)return!0;if(e&&t&&e.size!==t.size)return!1;let n=new Set;return!(e&&O(n,e,t)||t&&O(n,t,e)||e&&R(n,e,t)||t&&R(n,t,e))}(s,u))}function H(e,t){let n=e.mergeWithSibling(t),r=nM()._normalizedNodes;return r.add(e.__key),r.add(t.__key),n}function B(e){let t,n,r=e;if(""!==r.__text||!r.isSimpleText()||r.isUnmergeable()){for(;null!==(t=r.getPreviousSibling())&&tY(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){V(t,r)&&(r=H(t,r));break}t.remove()}for(;null!==(n=r.getNextSibling())&&tY(n)&&n.isSimpleText()&&!n.isUnmergeable();){if(""!==n.__text){V(r,n)&&(r=H(r,n));break}n.remove()}}else r.remove()}function j(e){return z(e.anchor),z(e.focus),e}function z(e){for(;"element"===e.type;){let t,n,r=e.getNode(),i=e.offset;if(i===r.getChildrenSize()?(t=r.getChildAtIndex(i-1),n=!0):(t=r.getChildAtIndex(i),n=!1),tY(t)){e.set(t.__key,n?t.getTextContentSize():0,"text",!0);break}if(!nG(t))break;e.set(t.__key,n?t.getChildrenSize():0,"element",!0)}}let J,U,W,K,$,Z,q,G,Y,X,Q="",ee=null,et="",en="",er=!1,ei=!1;function el(e,t){let n=q.get(e);if(null!==t){let n=ev(e);n.parentNode===t&&t.removeChild(n)}if(G.has(e)||U._keyToDOMMap.delete(e),nG(n)){let e=eg(n,q);eo(e,0,e.length-1,null)}void 0!==n&&r3(X,W,K,n,"destroyed")}function eo(e,t,n,r){let i=t;for(;i<=n;++i){let t=e[i];void 0!==t&&el(t,r)}}function ea(e,t){e.setProperty("text-align",t)}function es(e,t){let n=J.theme.indent;if("string"==typeof n){let r=e.classList.contains(n);t>0&&!r?e.classList.add(n):t<1&&r&&e.classList.remove(n)}let r=getComputedStyle(e).getPropertyValue("--lexical-indent-base-value")||"40px";e.style.setProperty("padding-inline-start",0===t?"":`calc(${t} * ${r})`)}function eu(e,t){let n=e.style;0===t?ea(n,""):1===t?ea(n,"left"):2===t?ea(n,"center"):3===t?ea(n,"right"):4===t?ea(n,"justify"):5===t?ea(n,"start"):6===t&&ea(n,"end")}function ec(e,t){let n=function(e){let t=e.__dir;if(null!==t)return t;if(n1(e))return null;let n=e.getParentOrThrow();return n1(n)&&null===n.__dir?"auto":null}(t);null!==n?e.dir=n:e.removeAttribute("dir")}function ed(e,t){let n=G.get(e);void 0===n&&r(60);let i=n.createDOM(J,U);if(function(e,t,n){let r=n._keyToDOMMap;t[`__lexicalKey_${n._key}`]=e,r.set(e,t)}(e,i,U),tY(n)?i.setAttribute("data-lexical-text","true"):nQ(n)&&i.setAttribute("data-lexical-decorator","true"),nG(n)){let e=n.__indent,t=n.__size;ec(i,n),0!==e&&es(i,e),0!==t&&ef(eg(n,G),n,0,t-1,n.getDOMSlot(i));let r=n.__format;0!==r&&eu(i,r),n.isInline()||eh(null,n,i),ie(n)&&(Q+="\n\n",en+="\n\n")}else{let t=n.getTextContent();if(nQ(n)){let t=n.decorate(U,J);null!==t&&em(e,t),i.contentEditable="false"}Q+=t,en+=t}return null!==t&&t.insertChild(i),r3(X,W,K,n,"created"),i}function ef(e,t,n,r,i){let l=Q;Q="";let o=n;for(;o<=r;++o){ed(e[o],i);let t=G.get(e[o]);null!==t&&tY(t)&&(null===ee&&(ee=t.getFormat()),""===et&&(et=t.getStyle()))}ie(t)&&(Q+="\n\n"),i.element.__lexicalTextContent=Q,Q=l+Q}function ep(e,t){if(e){let n=e.__last;if(n){let e=t.get(n);if(e)return tM(e)?"line-break":nQ(e)&&e.isInline()?"decorator":null}return"empty"}return null}function eh(e,t,n){let r=ep(e,q),i=ep(t,G);r!==i&&t.getDOMSlot(n).setManagedLineBreak(i)}function eg(e,t){let n=[],i=e.__first;for(;null!==i;){let e=t.get(i);void 0===e&&r(101),n.push(i),i=e.__next}return n}function em(e,t){let n=U._pendingDecorators,r=U._decorators;if(null===n){if(r[e]===t)return;n=rH(U)}n[e]=t}function ey(e){let t=e.nextSibling;return null!==t&&t===U._blockCursorElement&&(t=t.nextSibling),t}function ev(e){let t=Y.get(e);return void 0===t&&r(75,e),t}function ex(e){return{type:e}}let eb=ex("SELECTION_CHANGE_COMMAND"),e_=ex("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),eC=ex("CLICK_COMMAND"),ew=ex("DELETE_CHARACTER_COMMAND"),ek=ex("INSERT_LINE_BREAK_COMMAND"),eE=ex("INSERT_PARAGRAPH_COMMAND"),eS=ex("CONTROLLED_TEXT_INSERTION_COMMAND"),eT=ex("PASTE_COMMAND"),eA=ex("REMOVE_TEXT_COMMAND"),eN=ex("DELETE_WORD_COMMAND"),eI=ex("DELETE_LINE_COMMAND"),eL=ex("FORMAT_TEXT_COMMAND"),eP=ex("UNDO_COMMAND"),eF=ex("REDO_COMMAND"),eM=ex("KEYDOWN_COMMAND"),eO=ex("KEY_ARROW_RIGHT_COMMAND"),eR=ex("MOVE_TO_END"),eD=ex("KEY_ARROW_LEFT_COMMAND"),eV=ex("MOVE_TO_START"),eH=ex("KEY_ARROW_UP_COMMAND"),eB=ex("KEY_ARROW_DOWN_COMMAND"),ej=ex("KEY_ENTER_COMMAND"),ez=ex("KEY_SPACE_COMMAND"),eJ=ex("KEY_BACKSPACE_COMMAND"),eU=ex("KEY_ESCAPE_COMMAND"),eW=ex("KEY_DELETE_COMMAND"),eK=ex("KEY_TAB_COMMAND"),e$=ex("INSERT_TAB_COMMAND"),eZ=ex("INDENT_CONTENT_COMMAND"),eq=ex("OUTDENT_CONTENT_COMMAND"),eG=ex("DROP_COMMAND"),eY=ex("FORMAT_ELEMENT_COMMAND"),eX=ex("DRAGSTART_COMMAND"),eQ=ex("DRAGOVER_COMMAND"),e0=ex("DRAGEND_COMMAND"),e1=ex("COPY_COMMAND"),e2=ex("CUT_COMMAND"),e5=ex("SELECT_ALL_COMMAND"),e9=ex("CLEAR_EDITOR_COMMAND"),e3=ex("CLEAR_HISTORY_COMMAND"),e8=ex("CAN_REDO_COMMAND"),e7=ex("CAN_UNDO_COMMAND"),e4=ex("FOCUS_COMMAND"),e6=ex("BLUR_COMMAND"),te=ex("KEY_MODIFIER_COMMAND"),tt=Object.freeze({}),tn=[["keydown",function(e,t){if((tr=e.timeStamp,ti=e.key,!(t.isComposing()||r6(t,eM,e)))&&null!=e.key){if(tf&&r2(e))return nK(t,()=>{tC(t,tp)}),tf=!1,void(tp="");if(rQ(e,"ArrowRight",{shiftKey:"any"}))r6(t,eO,e);else if(rQ(e,"ArrowRight",r0))r6(t,eR,e);else if(rQ(e,"ArrowLeft",{shiftKey:"any"}))r6(t,eD,e);else if(rQ(e,"ArrowLeft",r0))r6(t,eV,e);else if(rQ(e,"ArrowUp",{altKey:"any",shiftKey:"any"}))r6(t,eH,e);else if(rQ(e,"ArrowDown",{altKey:"any",shiftKey:"any"}))r6(t,eB,e);else if(rQ(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0}))tc=!0,r6(t,ej,e);else if(" "===e.key)r6(t,ez,e);else if(o&&rQ(e,"o",{ctrlKey:!0}))e.preventDefault(),tc=!0,r6(t,ek,!0);else if(rQ(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"}))tc=!1,r6(t,ej,e);else if(rQ(e,"Backspace",{shiftKey:"any"})||o&&rQ(e,"h",{ctrlKey:!0}))r2(e)?r6(t,eJ,e):(e.preventDefault(),r6(t,ew,!0));else if("Escape"===e.key)r6(t,eU,e);else if(rQ(e,"Delete",{})||o&&rQ(e,"d",{ctrlKey:!0}))"Delete"!==e.key?(e.preventDefault(),r6(t,ew,!1)):r6(t,eW,e);else if(rQ(e,"Backspace",r1))e.preventDefault(),r6(t,eN,!0);else if(rQ(e,"Delete",r1))e.preventDefault(),r6(t,eN,!1);else if(o&&rQ(e,"Backspace",{metaKey:!0}))e.preventDefault(),r6(t,eI,!0);
1else if(o&&(rQ(e,"Delete",{metaKey:!0})||rQ(e,"k",{ctrlKey:!0})))e.preventDefault(),r6(t,eI,!1);else if(rQ(e,"b",r0))e.preventDefault(),r6(t,eL,"bold");else if(rQ(e,"u",r0))e.preventDefault(),r6(t,eL,"underline");else if(rQ(e,"i",r0))e.preventDefault(),r6(t,eL,"italic");else if(rQ(e,"Tab",{shiftKey:"any"}))r6(t,eK,e);else if(rQ(e,"z",r0))e.preventDefault(),r6(t,eP,void 0);else if(o?rQ(e,"z",{metaKey:!0,shiftKey:!0}):rQ(e,"y",{ctrlKey:!0})||rQ(e,"z",{ctrlKey:!0,shiftKey:!0}))e.preventDefault(),r6(t,eF,void 0);else{let n=t._editorState._selection;null===n||t7(n)?rQ(e,"a",r0)&&(e.preventDefault(),r6(t,e5,e)):rQ(e,"c",r0)?(e.preventDefault(),r6(t,e1,e)):rQ(e,"x",r0)?(e.preventDefault(),r6(t,e2,e)):rQ(e,"a",r0)&&(e.preventDefault(),r6(t,e5,e))}(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)&&r6(t,te,e)}}],["pointerdown",function(e,t){let n=e.target,r=e.pointerType;iv(n)&&"touch"!==r&&"pen"!==r&&0===e.button&&nK(t,()=>{nQ(rV(n))||(tu=!0)})}],["compositionstart",function(e,t){nK(t,()=>{let n=nh();if(t7(n)&&!t.isComposing()){let r=n.anchor,i=n.anchor.getNode();rF(r.key),(e.timeStamp<tr+30||"element"===r.type||!n.isCollapsed()||i.getFormat()!==n.format||tY(i)&&i.getStyle()!==n.style)&&r6(t,eS,y)}})}],["compositionend",function(e,t){a?td=!0:!c&&(u||h)?(tf=!0,tp=e.data):nK(t,()=>{tC(t,e.data)})}],["input",function(e,t){e.stopPropagation(),nK(t,()=>{if(iy(e.target)&&nQ(rV(e.target)))return;let n=nh(),r=e.data,i=t_(e);if(null!=r&&t7(n)&&tm(n,i,r,e.timeStamp,!1)){td&&(tC(t,r),td=!1);let i=n.anchor.getNode(),l=ig(ia(t));if(null===l)return;let o=n.isBackward(),d=o?n.anchor.offset:n.focus.offset,f=o?n.focus.offset:n.anchor.offset;s&&!n.isCollapsed()&&tY(i)&&null!==l.anchorNode&&i.getTextContent().slice(0,d)+r+i.getTextContent().slice(d+f)===rZ(l.anchorNode)||r6(t,eS,r);let p=r.length;a&&p>1&&"insertCompositionText"===e.inputType&&!t.isComposing()&&(n.anchor.offset-=p),u||c||h||!t.isComposing()||(tr=0,rF(null))}else rq(!1,t,null!==r?r:void 0),td&&(tC(t,r||void 0),td=!1);nL(),I(nM())},{event:e}),to=null}],["click",function(e,t){nK(t,()=>{let n=nh(),r=ig(ia(t)),i=ng();if(r){if(t7(n)){let t=n.anchor,l=t.getNode();if("element"===t.type&&0===t.offset&&n.isCollapsed()&&!n1(l)&&1===rj().getChildrenSize()&&l.getTopLevelElementOrThrow().isEmpty()&&null!==i&&n.is(i))r.removeAllRanges(),n.dirty=!0;else if(3===e.detail&&!n.isCollapsed()&&l!==n.focus.getNode()){let e=function(e,t){let n=e;for(;n!==rj()&&null!=n;){if(t(n))return n;n=n.getParent()}return null}(l,e=>nG(e)&&!e.isInline());nG(e)&&e.select(0)}}else if("touch"===e.pointerType||"pen"===e.pointerType){let n=r.anchorNode;(iy(n)||rS(n))&&rJ(np(i,r,t,e))}}r6(t,eC,e)})}],["cut",tt],["copy",tt],["dragstart",tt],["dragover",tt],["dragend",tt],["paste",tt],["focus",tt],["blur",tt],["drop",tt]];s&&tn.push(["beforeinput",(e,t)=>(function(e,t){let n=e.inputType,i=t_(e);"deleteCompositionText"===n||a&&r4(t)||"insertCompositionText"!==n&&nK(t,()=>{var l;let o=nh();if("deleteContentBackward"===n){if(null===o){let e=ng();if(!t7(e))return;rJ(e.clone())}if(t7(o)){let n=o.anchor.key===o.focus.key;if(l=e.timeStamp,"MediaLast"===ti&&l<tr+30&&t.isComposing()&&n){if(rF(null),tr=0,setTimeout(()=>{nK(t,()=>{rF(null)})},30),t7(o)){let e=o.anchor.getNode();e.markDirty(),tY(e)||r(142),tb(o,e)}}else{rF(null),e.preventDefault();let r=o.anchor.getNode(),i=r.getTextContent(),l=r.canInsertTextAfter(),a=0===o.anchor.offset&&o.focus.offset===i.length,s=p&&n&&!a&&l;if(s&&o.isCollapsed()&&(s=!nQ(r7(o.anchor,!0))),!s){r6(t,ew,!0);let e=nh();p&&t7(e)&&e.isCollapsed()&&(th=e,setTimeout(()=>th=null))}}return}}if(!t7(o))return;let a=e.data;null!==to&&rq(!1,t,to),o.dirty&&null===to||!o.isCollapsed()||n1(o.anchor.getNode())||null===i||o.applyDOMRange(i),to=null;let s=o.anchor,u=o.focus,d=s.getNode(),f=u.getNode();if("insertText"!==n&&"insertTranspose"!==n)switch(e.preventDefault(),n){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":r6(t,eS,e);break;case"insertFromComposition":rF(null),r6(t,eS,e);break;case"insertLineBreak":rF(null),r6(t,ek,!1);break;case"insertParagraph":rF(null),tc&&!c?(tc=!1,r6(t,ek,!1)):r6(t,eE,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":r6(t,eT,e);break;case"deleteByComposition":(d!==f||nG(d)||nG(f)||!rk(d)||!rk(f))&&r6(t,eA,e);break;case"deleteByDrag":case"deleteByCut":r6(t,eA,e);break;case"deleteContent":r6(t,ew,!1);break;case"deleteWordBackward":r6(t,eN,!0);break;
1case"deleteWordForward":r6(t,eN,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":r6(t,eI,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":r6(t,eI,!1);break;case"formatStrikeThrough":r6(t,eL,"strikethrough");break;case"formatBold":r6(t,eL,"bold");break;case"formatItalic":r6(t,eL,"italic");break;case"formatUnderline":r6(t,eL,"underline");break;case"historyUndo":r6(t,eP,void 0);break;case"historyRedo":r6(t,eF,void 0)}else{if("\n"===a)e.preventDefault(),r6(t,ek,!1);else if("\n\n"===a)e.preventDefault(),r6(t,eE,void 0);else if(null==a&&e.dataTransfer){let t=e.dataTransfer.getData("text/plain");e.preventDefault(),o.insertRawText(t)}else null!=a&&tm(o,i,a,e.timeStamp,!0)?(e.preventDefault(),r6(t,eS,a)):to=a;tl=e.timeStamp}})})(e,t)]);let tr=0,ti=null,tl=0,to=null,ta=new WeakMap,ts=!1,tu=!1,tc=!1,td=!1,tf=!1,tp="",th=null,tg=[0,"",0,"root",0];function tm(e,t,n,r,i){let l=e.anchor,o=e.focus,a=l.getNode(),u=nM(),c=ig(ia(u)),d=null!==c?c.anchorNode:null,f=l.key,p=u.getElementByKey(f),h=n.length;return f!==o.key||!tY(a)||(!i&&(!s||tl<r+50)||a.isDirty()&&h<2||rW(n))&&l.offset!==o.offset&&!a.isComposing()||rE(a)||a.isDirty()&&h>1||(i||!s)&&null!==p&&!a.isComposing()&&d!==rT(p)||null!==c&&null!==t&&(!t.collapsed||t.startContainer!==c.anchorNode||t.startOffset!==c.anchorOffset)||a.getFormat()!==e.format||a.getStyle()!==e.style||function(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;let n=e.anchor.offset,r=t.getParentOrThrow(),i=rk(t);return 0===n?!t.canInsertTextBefore()||!r.canInsertTextBefore()&&!t.isComposing()||i||function(e){let t=e.getPreviousSibling();return(tY(t)||nG(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):n===t.getTextContentSize()&&(!t.canInsertTextAfter()||!r.canInsertTextAfter()&&!t.isComposing()||i)}(e,a)}function ty(e,t){return rS(e)&&null!==e.nodeValue&&0!==t&&t!==e.nodeValue.length}function tv(e,t,n){let{anchorNode:i,anchorOffset:l,focusNode:o,focusOffset:a}=e;ts&&(ts=!1,ty(i,l)&&ty(o,a)&&!th)||nK(t,()=>{if(!n)return void rJ(null);if(!rb(t,i,o))return;let s=nh();if(th&&t7(s)&&s.isCollapsed()){let e=s.anchor,t=th.anchor;(e.key===t.key&&e.offset===t.offset+1||1===e.offset&&t.getNode().is(e.getNode().getPreviousSibling()))&&rJ(s=th.clone())}if(th=null,t7(s)){let n=s.anchor,i=n.getNode();if(s.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(s.dirty=!0);let l=ia(t).event,o=l?l.timeStamp:performance.now(),[a,c,d,f,p]=tg,h=rj(),g=!1===t.isComposing()&&""===h.getTextContent();if(o<p+200&&n.offset===d&&n.key===f)tx(s,a,c);else if("text"===n.type)tY(i)||r(141),tb(s,i);else if("element"===n.type&&!g){var u;nG(i)||r(259);let e=n.getNode();e.isEmpty()?tx(s,(u=e).getTextFormat(),u.getTextStyle()):tx(s,0,"")}}else{let e=n.key,t=s.focus.key,r=s.getNodes(),i=r.length,o=s.isBackward(),u=o?a:l,c=o?l:a,d=o?t:e,f=o?e:t,p=2047,h=!1;for(let e=0;e<i;e++){let t=r[e],n=t.getTextContentSize();if(tY(t)&&0!==n&&(0!==e||t.__key!==d||u!==n)&&(e!==i-1||t.__key!==f||0!==c)&&(h=!0,0==(p&=t.getFormat())))break}s.format=h?p:0}}r6(t,eb,void 0)})}function tx(e,t,n){e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}function tb(e,t){tx(e,t.getFormat(),t.getStyle())}function t_(e){if(!e.getTargetRanges)return null;let t=e.getTargetRanges();return 0===t.length?null:t[0]}function tC(e,t){let n=e._compositionKey;if(rF(null),null!==n&&null!=t){if(""===t){let t=rO(n),r=rT(e.getElementByKey(n));return void(null!==r&&null!==r.nodeValue&&tY(t)&&rG(t,r.nodeValue,null,null,!0))}if("\n"===t[t.length-1]){let t=nh();if(t7(t)){let n=t.focus;return t.anchor.set(n.key,n.offset,n.type),void r6(e,ej,null)}}}rq(!0,e,t)}function tw(e){let t=e.__lexicalEventHandles;return void 0===t&&(e.__lexicalEventHandles=t=[]),t}let tk=new Map;function tE(e){let t=function(e){let t=io(e);return t?t.getSelection():null}(e.target);if(null===t)return;let n=rC(t.anchorNode);if(null===n)return;tu&&(tu=!1,nK(n,()=>{let r=ng(),i=t.anchorNode;(iy(i)||rS(i))&&rJ(np(r,t,n,e))}));let r=rK(n),i=r[r.length-1],l=i._key,o=tk.get(l),a=o||i;a!==n&&tv(t,a,!1),tv(t,n,!0),n!==i?tk.set(l,n):o&&tk.delete(l)}function tS(e){e._lexicalHandled=!0}function tT(e){return!0===e._lexicalHandled}function tA(e,t,n){nL();let r=e.__key,i=e.getParent();if(null===i)return;let l=function(e){let t=nh();if(!t7(t)||!nG(e))return t;let{anchor:n,focus:r}=t,i=n.getNode(),l=r.getNode();return il(i,e)&&n.set(e.__key,0,"element"),il(l,e)&&r.set(e.__key,0,"element"),t}(e),o=!1;if(t7(l)&&t){let t=l.anchor,n=l.focus;t.key===r&&(nv(t,e,i,e.getPreviousSibling(),e.getNextSibling()),o=!0),n.key===r&&(nv(n,e,i,e.getPreviousSibling(),e.getNextSibling()),o=!0)}else t6(l)&&t&&e.isSelected()&&e.selectPrevious();if(t7(l)&&t&&!o){let t=e.getIndexWithinParent();rL(e),nm(l,i,t,-1)}else rL(e);n||is(i)||i.canBeEmpty()||!i.isEmpty()||tA(i,t),t&&l&&n1(i)&&i.isEmpty()&&i.selectEnd()}function tN(e){return e}class tI{static getType(){let{ownNodeType:e}=iL(this);return void 0===e&&r(64,this.name),e}static clone(e){r(65,this.name)}$config(){return{}}config(e,t){let n=t.extends||Object.getPrototypeOf(this.constructor);return Object.assign(t,{extends:n,type:e}),{[e]:t}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),rI(this,e)}getType(){return this.__type}isInline(){r(137,this.constructor.name)}isAttached(){let e=this.__key;for(;null!==e;){if("root"===e)return!0;let t=rO(e);if(null===t)break;e=t.__parent}return!1}isSelected(e){let t=e||nh();if(null==t)return!1;let n=t.getNodes().some(e=>e.__key===this.__key);if(tY(this))return n;if(t7(t)&&"element"===t.anchor.type&&"element"===t.focus.type){if(t.isCollapsed())return!1;let e=this.getParent();if(nQ(this)&&this.isInline()&&e){let n=t.isBackward()?t.focus:t.anchor;if(e.is(n.getNode())&&n.offset===e.getChildrenSize()&&this.is(e.getLastChild()))return!1}}return n}getKey(){return this.__key}getIndexWithinParent(){let e=this.getParent();if(null===e)return -1;let t=e.getFirstChild(),n=0;for(;null!==t;){if(this.is(t))return n;n++,t=t.getNextSibling()}return -1}getParent(){let e=this.getLatest().__parent;return null===e?null:rO(e)}getParentOrThrow(){let e=this.getParent();return null===e&&r(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){let t=e.getParent();if(is(t))return nG(e)||e===this&&nQ(e)||r(194),e;e=t}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return null===e&&r(67,this.__key),e}getParents(){let e=[],t=this.getParent();for(;null!==t;)e.push(t),t=t.getParent();return e}getParentKeys(){let e=[],t=this.getParent();for(;null!==t;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){let e=this.getLatest().__prev;return null===e?null:rO(e)}getPreviousSiblings(){let e=[],t=this.getParent();if(null===t)return e;let n=t.getFirstChild();for(;null!==n&&!n.is(this);)e.push(n),n=n.getNextSibling();return e}getNextSibling(){let e=this.getLatest().__next;return null===e?null:rO(e)}getNextSiblings(){let e=[],t=this.getNextSibling();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){let t=nG(this)?this:this.getParent(),n=nG(e)?e:e.getParent(),r=t&&n?i8(t,n):null;return r?r.commonAncestor:null}is(e){return null!=e&&this.__key===e.__key}isBefore(e){let t=i8(this,e);return null!==t&&("descendant"===t.type||("branch"===t.type?-1===i9(t):("same"!==t.type&&"ancestor"!==t.type&&r(279),!1)))}isParentOf(e){let t=i8(this,e);return null!==t&&"ancestor"===t.type}getNodesBetween(e){let t=this.isBefore(e),n=[],i=new Set,l=this;for(;null!==l;){let o=l.__key;
1if(i.has(o)||(i.add(o),n.push(l)),l===e)break;let a=nG(l)?t?l.getFirstChild():l.getLastChild():null;if(null!==a){l=a;continue}let s=t?l.getNextSibling():l.getPreviousSibling();if(null!==s){l=s;continue}let u=l.getParentOrThrow();if(i.has(u.__key)||n.push(u),u===e)break;let c=null,d=u;do{if(null===d&&r(68),c=t?d.getNextSibling():d.getPreviousSibling(),null===(d=d.getParent()))break;null!==c||i.has(d.__key)||n.push(d)}while(null===c);l=c}return t||n.reverse(),n}isDirty(){let e=nM()._dirtyLeaves;return null!==e&&e.has(this.__key)}getLatest(){let e=rO(this.__key);return null===e&&r(113),e}getWritable(){nL();let e=nF(),t=nM(),n=e._nodeMap,r=this.__key,i=this.getLatest(),l=t._cloneNotNeeded,o=nh();if(null!==o&&o.setCachedNodes(null),l.has(r))return rP(i),i;let a=iA(i);return l.add(r),rP(a),n.set(r,a),a}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){r(70)}updateDOM(e,t,n){r(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){let e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){r(18,this.name)}updateFromJSON(e){return function(e,t){let n=e.getWritable(),r=t.$,i=r;for(let e of F(n).flatKeys)e in t&&(void 0!==i&&i!==r||(i={...r}),i[e]=t[e]);return(n.__state||i)&&(function(e){let t=e.getWritable(),n=t.__state?t.__state.getWritable(t):new P(t,F(t));return t.__state=n,n})(e).updateFromJSON(i),n}(this,e)}static transform(){return null}remove(e){tA(this,!0,e)}replace(e,t){nL();let n=nh();null!==n&&(n=n.clone()),id(this,e);let i=this.getLatest(),l=this.__key,o=e.__key,a=e.getWritable(),s=this.getParentOrThrow().getWritable(),u=s.__size;rL(a);let c=i.getPreviousSibling(),d=i.getNextSibling(),f=i.__prev,p=i.__next,h=i.__parent;if((tA(i,!1,!0),null===c)?s.__first=o:c.getWritable().__next=o,(a.__prev=f,null===d)?s.__last=o:d.getWritable().__prev=o,a.__next=p,a.__parent=h,s.__size=u,t&&(nG(this)&&nG(a)||r(139),this.getChildren().forEac
1h(e=>{a.append(e)})),t7(n)){rJ(n);let e=n.anchor,t=n.focus;e.key===l&&t3(e,a),t.key===l&&t3(t,a)}return rM()===l&&rF(o),a}insertAfter(e,t=!0){nL(),id(this,e);let n=this.getWritable(),r=e.getWritable(),i=r.getParent(),l=nh(),o=!1,a=!1;if(null!==i){let t=e.getIndexWithinParent();if(rL(r),t7(l)){let e=i.__key,n=l.anchor,r=l.focus;o="element"===n.type&&n.key===e&&n.offset===t+1,a="element"===r.type&&r.key===e&&r.offset===t+1}}let s=this.getNextSibling(),u=this.getParentOrThrow().getWritable(),c=r.__key,d=n.__next;if(null===s?u.__last=c:s.getWritable().__prev=c,u.__size++,n.__next=c,r.__next=d,r.__prev=n.__key,r.__parent=n.__parent,t&&t7(l)){let e=this.getIndexWithinParent();nm(l,u,e+1);let t=u.__key;o&&l.anchor.set(t,e+2,"element"),a&&l.focus.set(t,e+2,"element")}return e}insertBefore(e,t=!0){nL(),id(this,e);let n=this.getWritable(),r=e.getWritable(),i=r.__key;rL(r);let l=this.getPreviousSibling(),o=this.getParentOrThrow().getWritable(),a=n.__prev,s=this.getIndexWithinParent();null===l?o.__first=i:l.getWritable().__next=i,o.__size++,n.__prev=i,r.__prev=a,r.__next=n.__key,r.__parent=n.__parent;let u=nh();return t&&t7(u)&&nm(u,this.getParentOrThrow(),s),e}isParentRequired(){return!1}createParentElementNode(){return rl()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){nL();let n=this.getPreviousSibling(),r=this.getParentOrThrow();if(null===n)return r.select(0,0);if(nG(n))return n.select();
1if(!tY(n)){let e=n.getIndexWithinParent()+1;return r.select(e,e)}return n.select(e,t)}selectNext(e,t){nL();let n=this.getNextSibling(),r=this.getParentOrThrow();if(null===n)return r.select();if(nG(n))return n.select(0,0);if(!tY(n)){let e=n.getIndexWithinParent();return r.select(e,e)}return n.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}}class tL extends tI{static getType(){return"linebreak"}static clone(e){return new tL(e.__key)}constructor(e){super(e)}getTextContent(){return"\n"}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>(function(e){let t=e.parentElement;if(null!==t&&i_(t)){let n=t.firstChild;if(n===e||n.nextSibling===e&&tO(n)){let n=t.lastChild;if(n===e||n.previousSibling===e&&tO(n))return!0}}return!1})(e)||function(e){let t=e.parentElement;if(null!==t&&i_(t)){let n=t.firstChild;if(n===e||n.nextSibling===e&&tO(n))return!1;let r=t.lastChild;if(r===e||r.previousSibling===e&&tO(r))return!0}return!1}(e)?null:{conversion:tP,priority:0}}}static importJSON(e){return tF().updateFromJSON(e)}}function tP(e){return{node:tF()}}function tF(){return ic(new tL)}function tM(e){return e instanceof tL}function tO(e){return rS(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function tR(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function tD(e,t){return 1&t?"strong":2&t?"em":"span"}function tV(e,t,n,r,i){let l=r.classList,o=r9(i,"base");void 0!==o&&l.add(...o);let a=!1,s=8&t&&4&t;for(let e in void 0!==(o=r9(i,"underlineStrikethrough"))&&(8&n&&4&n?(a=!0,s||l.add(...o)):s&&l.remove(...o)),v){let r=v[e];if(void 0!==(o=r9(i,e)))if(n&r){if(a&&("underline"===e||"strikethrough"===e)){t&r&&l.remove(...o);continue}t&r&&(!s||"underline"!==e)&&"strikethrough"!==e||l.add(...o)}else t&r&&l.remove(...o)}}function tH(e,t,n){let r=t.firstChild,i=n.isComposing(),l=e+(i?m:"");if(null==r)t.textContent=l;else{let e=r.nodeValue;if(e!==l)if(i||a){let[t,n,i]=function(e,t){let n=e.length,r=t.length,i=0,l=0;for(;i<n&&i<r&&e[i]===t[i];)i++;for(;l+i<n&&l+i<r&&e[n-l-1]===t[r-l-1];)l++;return[i,n-i-l,t.slice(i,r-l)]}(e,l);0!==n&&r.deleteData(t,n),r.insertData(t,i)}else r.nodeValue=l}}function tB(e,t,n,r,i,l){tH(i,e,t);let o=l.theme.text;void 0!==o&&tV(0,0,r,e,o)}function tj(e,t){let n=document.createElement(t);return n.appendChild(e),n}class tz extends tI{static getType(){return"text"}static clone(e){return new tz(e.__text,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__text=e.__text,this.__format=e.__format,this.__style=e.__style,this.__mode=e.__mode,this.__detail=e.__detail}constructor(e="",t){super(t),this.__text=e,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){return w[this.getLatest().__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===rM()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){let t=v[e];return!!(this.getFormat()&t)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return rA(this.getLatest().__format,e,t)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,t){let n=this.__format,r=tR(0,n),i=tD(0,n),l=null===r?i:r,o=document.createElement(l),a=o;this.hasFormat("code")&&o.setAttribute("spellcheck","false"),null!==r&&(a=document.createElement(i),o.appendChild(a)),tB(a,this,0,n,this.__text,e);let s=this.__style;return""!==s&&(o.style.cssText=s),o}updateDOM(e,t,n){let i=this.__text,l=e.__format,o=this.__format,a=tR(0,l),s=tR(0,o),u=tD(0,l),c=tD(0,o);if((null===a?u:a)!==(null===s?c:s))return!0;if(a===s&&u!==c){let e=t.firstChild;null==e&&r(48);let l=document.createElement(c);return tB(l,this,0,o,i,n),t.replaceChild(l,e),!1}let d=t;null!==s&&null!==a&&null==(d=t.firstChild)&&r(49),tH(i,d,this);let f=n.theme.text;void 0!==f&&l!==o&&tV(0,l,o,d,f);let p=e.__style,h=this.__style;return p!==h&&(t.style.cssText=h),!1}static importDOM(){return{"#text":()=>({conversion:tK,priority:0}),b:()=>({conversion:tU,priority:0}),code:()=>({conversion:tq,priority:0}),em:()=>({conversion:tq,priority:0}),i:()=>({conversion:tq,priority:0}),mark:()=>({conversion:tq,priority:0}),s:()=>({conversion:tq,priority:0}),span:()=>({conversion:tJ,priority:0}),strong:()=>({conversion:tq,priority:0}),sub:()=>({conversion:tq,priority:0}),sup:()=>({conversion:tq,priority:0}),u:()=>({conversion:tq,priority:0})}}static importJSON(e){return tG().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTextContent(e.text).setFormat(e.format).setDetail(e.detail).setMode(e.mode).setStyle(e.style)}
1exportDOM(e){let{element:t}=super.exportDOM(e);return iy(t)||r(132),t.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?t.style.textTransform="lowercase":this.hasFormat("uppercase")?t.style.textTransform="uppercase":this.hasFormat("capitalize")&&(t.style.textTransform="capitalize"),this.hasFormat("bold")&&(t=tj(t,"b")),this.hasFormat("italic")&&(t=tj(t,"i")),this.hasFormat("strikethrough")&&(t=tj(t,"s")),this.hasFormat("underline")&&(t=tj(t,"u")),{element:t}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(e,t){}setFormat(e){let t=this.getWritable();return t.__format="string"==typeof e?v[e]:e,t}setDetail(e){let t=this.getWritable();return t.__detail="string"==typeof e?x[e]:e,t}setStyle(e){let t=this.getWritable();return t.__style=e,t}toggleFormat(e){let t=rA(this.getFormat(),e,null);return this.setFormat(t)}toggleDirectionless(){let e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){let e=this.getWritable();return e.__detail^=2,e}setMode(e){let t=C[e];if(this.__mode===t)return this;let n=this.getWritable();return n.__mode=t,n}setTextContent(e){if(this.__text===e)return this;let t=this.getWritable();return t.__text=e,t}select(e,t){nL();let n=e,r=t,i=nh(),l=this.getTextContent(),o=this.__key;if("string"==typeof l){let e=l.length;void 0===n&&(n=e),void 0===r&&(r=e)}else n=0,r=0;if(!t7(i))return nc(o,n,o,r,"text","text");{let e=rM();e!==i.anchor.key&&e!==i.focus.key||rF(o),i.setTextNodeRange(this,n,this,r)}return i}selectStart(){return this.select(0,0)}selectEnd(){let e=this.getTextContentSize();return this.select(e,e)}spliceText(e,t,n,r){let i=this.getWritable(),l=i.__text,o=n.length,a=e;a<0&&(a=o+a)<0&&(a=0);let s=nh();if(r&&t7(s)){let t=e+o;s.setTextNodeRange(i,t,i,t)}return i.__text=l.slice(0,a)+n+l.slice(a+t),i}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){let t;nL();let n=this.getLatest(),r=n.getTextContent();if(""===r)return[];let i=n.__key,l=rM(),o=r.length;e.sort((e,t)=>e-t),e.push(o);let a=[],s=e.length;for(let t=0,n=0;t<o&&n<=s;n++){let i=e[n];i>t&&(a.push(r.slice(t,i)),t=i)}let u=a.length;if(1===u)return[n];let c=a[0],d=n.getParent(),f=n.getFormat(),p=n.getStyle(),h=n.__detail,g=!1,m=null,y=null,v=nh();if(t7(v)){let[e,t]=v.isBackward()?[v.focus,v.anchor]:[v.anchor,v.focus];"text"===e.type&&e.key===i&&(m=e),"text"===t.type&&t.key===i&&(y=t)}n.isSegmented()?((t=tG(c)).__format=f,t.__style=p,t.__detail=h,t.__state=D(n,t),g=!0):t=n.setTextContent(c);let x=[t];for(let e=1;e<u;e++){let t=tG(a[e]);t.__format=f,t.__style=p,t.__detail=h,t.__state=D(n,t);let r=t.__key;l===i&&rF(r),x.push(t)}let b=m?m.offset:null,_=y?y.offset:null,C=0;for(let e of x){if(!m&&!y)break;let t=C+e.getTextContentSize();if(null!==m&&null!==b&&b<=t&&b>=C&&(m.set(e.getKey(),b-C,"text"),b<t&&(m=null)),null!==y&&null!==_&&_<=t&&_>=C){y.set(e.getKey(),_-C,"text");break}C=t}if(null!==d){let e=this.getPreviousSibling(),t=this.getNextSibling();null!==e&&rP(e),null!==t&&rP(t);let n=d.getWritable(),r=this.getIndexWithinParent();g?(n.splice(r,0,x),this.remove()):n.splice(r,1,x),t7(v)&&nm(v,d,r,u-1)}return x}mergeWithSibling(e){let t=e===this.getPreviousSibling();t||e===this.getNextSibling()||r(50);let n=this.__key,i=e.__key,l=this.__text,o=l.length;rM()===i&&rF(n);let a=nh();if(t7(a)){let r=a.anchor,l=a.focus;null!==r&&r.key===i&&nx(r,t,n,e,o),null!==l&&l.key===i&&nx(l,t,n,e,o)}let s=e.__text,u=t?s+l:l+s;this.setTextContent(u);let c=this.getWritable();return e.remove(),c}isTextEntity(){return!1}}function tJ(e){return{forChild:tX(e.style),node:null}}function tU(e){let t="normal"===e.style.fontWeight;return{forChild:tX(e.style,t?void 0:"bold"),node:null}}let tW=new WeakMap;function tK(e){null===e.parentElement&&r(129);let t=e.textContent||"";if(null!==function(e){let t,n=e.parentNode,r=[e];for(;null!==n&&void 0===(t=tW.get(n))&&!function(e){if(!iy(e))return!1;if("PRE"===e.nodeName)return!0;let t=e.style.whiteSpace;return"string"==typeof t&&t.startsWith("pre")}(n);)r.push(n),n=n.parentNode;let i=void 0===t?n:t;for(let e=0;e<r.length;e++)tW.set(r[e],i);return i}(e)){let e=t.split(/(\r?\n|\t)/),n=[],r=e.length;for(let t=0;t<r;t++){let r=e[t];"\n"===r||"\r\n"===r?n.push(tF()):"	"===r?n.push(t0()):""!==r&&n.push(tG(r))}return{node:n}}if(""===(t=t.replace(/\r/g,"").replace(/[ \t\n]+/g," ")))return{node:null};if(" "===t[0]){let n=e,r=!0;for(;null!==n&&null!==(n=t$(n,!1));){let e=n.textContent||"";if(e.length>
10){/[ \t\n]$/.test(e)&&(t=t.slice(1)),r=!1;break}}r&&(t=t.slice(1))}if(" "===t[t.length-1]){let n=e,r=!0;for(;null!==n&&null!==(n=t$(n,!0));)if((n.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){r=!1;break}r&&(t=t.slice(0,t.length-1))}return""===t?{node:null}:{node:tG(t)}}function t$(e,t){let n=e;for(;;){let e;for(;null===(e=t?n.nextSibling:n.previousSibling);){let e=n.parentElement;if(null===e)return null;n=e}if(iy(n=e)){let e=n.style.display;if(""===e&&!ib(n)||""!==e&&!e.startsWith("inline"))return null}let r=n;for(;null!==(r=t?n.firstChild:n.lastChild);)n=r;if(rS(n))return n;if("BR"===n.nodeName)return null}}let tZ={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function tq(e){let t=tZ[e.nodeName.toLowerCase()];return void 0===t?{node:null}:{forChild:tX(e.style,t),node:null}}function tG(e=""){return ic(new tz(e))}function tY(e){return e instanceof tz}function tX(e,t){let n=e.fontWeight,r=e.textDecoration.split(" "),i="700"===n||"bold"===n,l=r.includes("line-through"),o="italic"===e.fontStyle,a=r.includes("underline"),s=e.verticalAlign;return e=>(tY(e)&&(i&&!e.hasFormat("bold")&&e.toggleFormat("bold"),l&&!e.hasFormat("strikethrough")&&e.toggleFormat("strikethrough"),o&&!e.hasFormat("italic")&&e.toggleFormat("italic"),a&&!e.hasFormat("underline")&&e.toggleFormat("underline"),"sub"!==s||e.hasFormat("subscript")||e.toggleFormat("subscript"),"super"!==s||e.hasFormat("superscript")||e.toggleFormat("superscript"),t&&!e.hasFormat(t)&&e.toggleFormat(t)),e)}class tQ extends tz{static getType(){return"tab"}static clone(e){return new tQ(e.__key)}constructor(e){super("	",e),this.__detail=2}static importDOM(){return null}createDOM(e){let t=super.createDOM(e),n=r9(e.theme,"tab");return void 0!==n&&t.classList.add(...n),t}static importJSON(e){return t0().updateFromJSON(e)}setTextContent(e){return"	"!==e&&""!==e&&r(126),super.setTextContent("	")}spliceText(e,t,n,i){return""===n&&0===t||"	"===n&&1===t||r(286),this}setDetail(e){return 2!==e&&r(127),this}setMode(e){return"normal"!==e&&r(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function t0(){return ic(new tQ)}function t1(e){return e instanceof tQ}class t2{constructor(e,t,n){this._selection=null,this.key=e,this.offset=t,this.type=n}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){return this.key===e.key?this.offset<e.offset:0>i5(ll(i7(this,"next")),ll(i7(e,"next")))}getNode(){let e=rO(this.key);return null===e&&r(20),e}set(e,t,n,r){let i=this._selection,l=this.key;r&&this.key===e&&this.offset===t&&this.type===n||(this.key=e,this.offset=t,this.type=n,nI()||(rM()===l&&rF(e),null!==i&&(i.setCachedNodes(null),i.dirty=!0)))}}function t5(e,t,n){return new t2(e,t,n)}function t9(e,t){let n=t.__key,r=e.offset,i="element";if(tY(t)){i="text";let e=t.getTextContentSize();r>e&&(r=e)}else if(!nG(t)){let e=t.getNextSibling();if(tY(e))n=e.__key,r=0,i="text";else{let e=t.getParent();e&&(n=e.__key,r=t.getIndexWithinParent()+1)}}e.set(n,r,i)}function t3(e,t){if(nG(t)){let n=t.getLastDescendant();nG(n)||tY(n)?t9(e,n):t9(e,t)}else t9(e,t)}class t8{constructor(e){this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!t6(e))return!1;let t=this._nodes,n=e._nodes;return t.size===n.size&&Array.from(t).every(e=>n.has(e))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new t8(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){let t,n=this.getNodes(),r=n.length,i=n[r-1];if(tY(i))t=i.select();else{let e=i.getIndexWithinParent()+1;t=i.getParentOrThrow().select(e,e)}t.insertNodes(e);for(let e=0;e<r;e++)n[e].remove()}getNodes(){let e=this._cachedNodes;if(null!==e)return e;let t=this._nodes,n=[];for(let e of t){let t=rO(e);null!==t&&n.push(t)}return nI()||(this._cachedNodes=n),n}getTextContent(){let e=this.getNodes(),t="";for(let n=0;n<e.length;n++)t+=e[n].getTextContent();return t}deleteNodes(){let e=this.getNodes();if((nh()||ng())===this&&e[0]){let t=iK(e[0],"next");i6(i1(t,t))}for(let t of e)t.remove()}}function t7(e){return e instanceof t4}class t4{constructor(e,t,n,r){this.anchor=e,this.focus=t,e._selection=this,t._selection=this,this._cachedNodes=null,this.format=n,this.style=r,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!t7(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){let e=this._cachedNodes;if(null!==e)return e;let t=function(e){let t=[],[n,r]=e.getTextSlices();
1n&&t.push(n.caret.origin);let i=new Set,l=new Set;for(let n of e)if(iz(n)){let{origin:e}=n;0===t.length?i.add(e):(l.add(e),t.push(e))}else{let{origin:e}=n;nG(e)&&l.has(e)||t.push(e)}if(r&&t.push(r.caret.origin),ij(e.focus)&&nG(e.focus.origin)&&null===e.focus.getNodeAtCaret())for(let n=iq(e.focus.origin,"previous");iz(n)&&i.has(n.origin)&&!n.origin.isEmpty()&&n.origin.is(t[t.length-1]);n=iG(n))i.delete(n.origin),t.pop();for(;t.length>1;){let e=t[t.length-1];if(!nG(e)||l.has(e)||e.isEmpty()||i.has(e))break;t.pop()}if(0===t.length&&e.isCollapsed()){let n=ll(e.anchor),r=ll(e.anchor.getFlipped()),i=e=>iB(e)?e.origin:e.getNodeAtCaret(),l=i(n)||i(r)||(e.anchor.getNodeAtCaret()?n.origin:r.origin);t.push(l)}return t}(ls(lt(this),"next"));return nI()||(this._cachedNodes=t),t}setTextNodeRange(e,t,n,r){this.anchor.set(e.__key,t,"text"),this.focus.set(n.__key,r,"text")}getTextContent(){let e=this.getNodes();if(0===e.length)return"";let t=e[0],n=e[e.length-1],r=this.anchor,i=this.focus,l=r.isBefore(i),[o,a]=nt(this),s="",u=!0;for(let c=0;c<e.length;c++){let d=e[c];if(nG(d)&&!d.isInline())u||(s+="\n"),u=!d.isEmpty();else if(u=!1,tY(d)){let e=d.getTextContent();d===t?d===n?"element"===r.type&&"element"===i.type&&i.offset!==r.offset||(e=o<a?e.slice(o,a):e.slice(a,o)):e=l?e.slice(o):e.slice(a):d===n&&(e=l?e.slice(0,a):e.slice(0,o)),s+=e}else!nQ(d)&&!tM(d)||d===n&&this.isCollapsed()||(s+=d.getTextContent())}return s}applyDOMRange(e){let t=nM(),n=t.getEditorState()._selection,r=ns(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,n);if(null===r)return;let[i,l]=r;this.anchor.set(i.key,i.offset,i.type,!0),this.focus.set(l.key,l.offset,l.type,!0),j(this)}clone(){let e=this.anchor,t=this.focus;return new t4(t5(e.key,e.offset,e.type),t5(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=rA(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){let t=v[e];return!!(this.format&t)}insertRawText(e){let t=e.split(/(\r?\n|\t)/),n=[],r=t.length;for(let e=0;e<r;e++){let r=t[e];"\n"===r||"\r\n"===r?n.push(tF()):"	"===r?n.push(t0()):n.push(tG(r))}this.insertNodes(n)}insertText(e){let t=this.anchor,n=this.focus,i=this.format,l=this.style,o=t,a=n;!this.isCollapsed()&&n.isBefore(t)&&(o=n,a=t),"element"===o.type&&function(e,t,n,r){let i=e.getNode(),l=i.getChildAtIndex(e.offset),o=tG();if(o.setFormat(n),o.setStyle(r),ro(l))l.splice(0,0,[o]);else{let e=n1(i)?rl().append(o):o;null===l?i.append(e):l.insertBefore(e)}e.is(t)&&t.set(o.__key,0,"text"),e.set(o.__key,0,"text")}(o,a,i,l),"element"===a.type&&i4(a,ll(i7(a,"next")));let s=o.offset,u=a.offset,c=this.getNodes(),d=c.length,f=c[0];tY(f)||r(26);let p=f.getTextContent().length,h=f.getParentOrThrow(),g=c[d-1];if(1===d&&"element"===a.type&&(u=p,a.set(o.key,u,"text")),this.isCollapsed()&&s===p&&(rE(f)||!f.canInsertTextAfter()||!h.canInsertTextAfter()&&null===f.getNextSibling())){let t=f.getNextSibling();if(tY(t)&&t.canInsertTextBefore()&&!rE(t)||((t=tG()).setFormat(i),t.setStyle(l),h.canInsertTextAfter()?f.insertAfter(t):h.insertAfter(t)),t.select(0,0),f=t,""!==e)return void this.insertText(e)}else if(this.isCollapsed()&&0===s&&(rE(f)||!f.canInsertTextBefore()||!h.canInsertTextBefore()&&null===f.getPreviousSibling())){let t=f.getPreviousSibling();if(tY(t)&&!rE(t)||((t=tG()).setFormat(i),h.canInsertTextBefore()?f.insertBefore(t):h.insertBefore(t)),t.select(),f=t,""!==e)return void this.insertText(e)}else if(f.isSegmented()&&s!==p){let e=tG(f.getTextContent());e.setFormat(i),f.replace(e),f=e}else if(!this.isCollapsed()&&""!==e){let t=g.getParent();if(!h.canInsertTextBefore()||!h.canInsertTextAfter()||nG(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(""),na(this.anchor,this.focus,null),void this.insertText(e)}if(1===d){if(rk(f)){let t=tG(e);return t.select(),void f.replace(t)}let t=f.getFormat(),n=f.getStyle();if(s!==u||t===i&&n===l){if(t1(f)){let t=tG(e);return t.setFormat(i),t.setStyle(l),t.select(),void f.replace(t)}}else{if(""!==f.getTextContent()){let t=tG(e);if(t.setFormat(i),t.setStyle(l),t.select(),0===s)f.insertBefore(t,!1);else{let[e]=f.splitText(s);e.insertAfter(t,!1)}return void(t.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length))}f.setFormat(i),f.setStyle(l)}let r=u-s;""===(f=f.spliceText(s,r,e,!0)).getTextContent()?f.remove():"text"===this.anchor.type&&(f.isComposing()?this.anchor.offset-=e.length:(this.format=t,this.style=n))}else{let t=new Set([...f.getParentKeys(),...g.getParentKeys()]),n=nG(f)?f:f.getParentOrThrow(),r=nG(g)?g:g.getParentOrThrow(),i=g;if(!n.is(r)&&r.isInline())do i=r,r=r.getParentOrThrow();while(r.isInline());if("text"===a.type&&(0!==u||""===g.getTextContent())||"element"===a.type&&g.getIndexWithinParent()<u)if(tY(g)&&!rk(g)&&u!==g.getTextContentSize()){if(g.isSegmented()){let e=tG(g.getTextContent());g.replace(e),g=e}n1(a.getNode())||"text"!==a.type||(g=g.spliceText(0,u,"")),t.add(g.__key)}else{let e=g.getParentOrThrow();e.canBeEmpty()||1!==e.getChildrenSize()?g.remove():e.remove()}else t.add(g.__key);let l=r.getChildren(),o=new Set(c),h=n.is(r),m=n.isInline()&&null===f.getNextSibling()?n:f;for(let e=l.length-1;e>=0;e--){let t=l[e];if(t.is(f)||nG(t)&&t.isParentOf(f))break;t.isAttached()&&(!o.has(t)||t.is(i)?h||m.insertAfter(t,!1):t.remove())}if(!h){let e=r,n=null;for(;null!==e;){let r=e.getChildren(),i=r.length;(0===i||r[i-1].is(n))&&(t.delete(e.__key),n=e),e=e.getParent()}}if(rk(f))if(s===p)f.select();else{let t=tG(e);t.select(),f.replace(t)}else""===(f=f.spliceText(s,p-s,e,!0)).getTextContent()?f.remove():f.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length);for(let e=1;e<d;e++){let n=c[e],r=n.__key;t.has(r)||n.remove()}}}removeText(){let e=nh()===this;le(this,function(e,t="removeEmptySlices"){let n,i;if(e.isCollapsed())return e;
1let l="root",o="next",a=t,s=ls(e,o),u=lr(s.anchor,l),c=lr(s.focus.getFlipped(),l),d=new Set,f=[];for(let e of s.iterNodeCarets(l))if(iz(e))d.add(e.origin.getKey());else if(ij(e)){let{origin:t}=e;nG(t)&&!d.has(t.getKey())||f.push(t)}for(let e of f)e.remove();for(let e of s.getTextSlices()){if(!e)continue;let{origin:t}=e.caret,n=t.getTextContentSize(),r=ln(iK(t,o)),i=t.getMode();if(Math.abs(e.distance)===n&&"removeEmptySlices"===a||"token"===i&&0!==e.distance)r.remove();else if(0!==e.distance){a="removeEmptySlices";let t=e.removeTextSlice(),n=e.caret.origin;if("segmented"===i){let e=t.origin,n=tG(e.getTextContent()).setStyle(e.getStyle()).setFormat(e.getFormat());r.replaceOrInsert(n),t=i$(n,o,t.offset)}n.is(u[0].origin)&&(u[0]=t),n.is(c[0].origin)&&(c[0]=t.getFlipped())}}for(let e of u)if(li(e)){n=ll(e);break}for(let e of c)if(li(e)){i=ll(e);break}let p=function(e,t,n){let r;if(!e||!t)return null;let i=e.getParentAtCaret(),l=t.getParentAtCaret();if(!i||!l)return null;let o=i.getParents().reverse();o.push(i);let a=l.getParents().reverse();a.push(l);let s=Math.min(o.length,a.length);for(r=0;r<s&&o[r]===a[r];r++);let u=(e,t)=>{let n;for(let i=r;i<e.length;i++){let r=e[i];if(is(r))return;!n&&t(r)&&(n=r)}return n},c=u(o,iC),d=c&&u(a,e=>n.has(e.getKey())&&iC(e));return c&&d?[c,d]:null}(n,i,d);if(p){let[e,t]=p;iq(e,"previous").splice(0,t.getChildren()),t.remove()}let h=[n,i,...u,...c].find(li);if(h)return i0(la(ll(h),e.direction));r(269,JSON.stringify(u.map(e=>e.origin.__key)))}(lt(this))),e&&nh()!==this&&rJ(this)}formatText(e,t=null){if(this.isCollapsed())return this.toggleFormat(e),void rF(null);let n=this.getNodes(),r=[];for(let e of n)tY(e)&&r.push(e);let i=t=>{n.forEach(n=>{if(nG(n)){let r=n.getFormatFlags(e,t);n.setTextFormat(r)}})},l=r.length;if(0===l)return this.toggleFormat(e),rF(null),void i(t);let o=this.anchor,a=this.focus,s=this.isBackward(),u=s?a:o,c=s?o:a,d=0,f=r[0],p="element"===u.type?0:u.offset;if("text"===u.type&&p===f.getTextContentSize()&&(d=1,f=r[1],p=0),null==f)return;let h=f.getFormatFlags(e,t);i(h);let g=l-1,m=r[g],y="text"===c.type?c.offset:m.getTextContentSize();if(f.is(m)){if(p===y)return;if(rE(f)||0===p&&y===f.getTextContentSize())f.setFormat(h);else{let e=f.splitText(p,y),t=0===p?e[0]:e[1];t.setFormat(h),"text"===u.type&&u.set(t.__key,0,"text"),"text"===c.type&&c.set(t.__key,y-p,"text")}return void(this.format=h)}0===p||rE(f)||([,f]=f.splitText(p),p=0),f.setFormat(h);let v=m.getFormatFlags(e,h);y>0&&(y===m.getTextContentSize()||rE(m)||([m]=m.splitText(y)),m.setFormat(v));for(let t=d+1;t<g;t++){let n=r[t],i=n.getFormatFlags(e,v);n.setFormat(i)}"text"===u.type&&u.set(f.__key,p,"text"),"text"===c.type&&c.set(m.__key,y,"text"),this.format=h|v}insertNodes(e){var t;if(0===e.length)return;if(this.isCollapsed()||this.removeText(),"root"===this.anchor.key){this.insertParagraph();let t=nh();return t7(t)||r(134),t.insertNodes(e)}let n=(this.isBackward()?this.focus:this.anchor).getNode(),i=iw(n,iC),l=e[e.length-1];if(nG(i)&&"__language"in i){if("__language"in e[0])this.insertText(e[0].getTextContent());else{let t=nC(this);i.splice(t,0,e),l.selectEnd()}return}if(!e.some(e=>(nG(e)||nQ(e))&&!e.isInline())){nG(i)||r(211,n.constructor.name,n.getType());let t=nC(this);return i.splice(t,0,e),void l.selectEnd()}let o=function(e){let t=rl(),n=null;for(let r=0;r<e.length;r++){let i=e[r],l=tM(i);if(l||nQ(i)&&i.isInline()||nG(i)&&i.isInline()||tY(i)||i.isParentRequired()){if(null===n&&(n=i.createParentElementNode(),t.append(n),l))continue;null!==n&&n.append(i)}else t.append(i),n=null}return t}(e),a=o.getLastDescendant(),s=o.getChildren(),u=nG(i)&&i.isEmpty()?null:this.insertParagraph(),c=s[s.length-1],d=s[0];nG(t=d)&&iC(t)&&!t.isEmpty()&&nG(i)&&(!i.isEmpty()||i.canMergeWhenEmpty())&&(nG(i)||r(211,n.constructor.name,n.getType()),i.append(...d.getChildren()),d=s[1]),d&&(null===i&&r(212,n.constructor.name,n.getType()),function(e,t,n){let i=t.getParentOrThrow().getLastChild(),l=t,o=[t];for(;l!==i;)l.getNextSibling()||r(140),o.push(l=l.getNextSibling());let a=e;for(let e of o)a=a.insertAfter(e)}(i,d));let f=iw(a,iC);u&&nG(f)&&(u.canMergeWhenEmpty()||iC(c))&&(f.append(...u.getChildren()),u.remove()),nG(i)&&i.isEmpty()&&i.remove(),a.selectEnd();let p=nG(i)?i.getLastChild():null;tM(p)&&f!==i&&p.remove()}insertParagraph(){if("root"===this.anchor.key){let e=rl();return rj().splice(this.anchor.offset,0,[e]),e.select(),e}let e=nC(this),t=iw(this.anchor.getNode(),iC);nG(t)||r(213);let n=t.getChildAtIndex(e),i=n?[n,...n.getNextSiblings()]:[],l=t.insertNewAfter(this,!1);return l?(l.append(...i),l.selectStart(),l):null}insertLineBreak(e){let t=tF();if(this.insertNodes([t]),e){let e=t.getParentOrThrow(),n=t.getIndexWithinParent();e.select(n,n)}}extract(){let e=this.getNodes(),t=e.length,n=t-1,r=this.anchor,i=this.focus,l=e[0],o=e[n],[a,s]=nt(this);if(0===t)return[];if(1===t){if(tY(l)&&!this.isCollapsed()){let e=a>s?s:a,t=l.splitText(e,a>s?a:s),n=0===e?t[0]:t[1];return null!=n?[n]:[]}return[l]}let u=r.isBefore(i);if(tY(l)){let t=u?a:s;t===l.getTextContentSize()?e.shift():0!==t&&([,l]=l.splitText(t),e[0]=l)}
1if(tY(o)){let t=o.getTextContent().length,r=u?s:a;0===r?e.pop():r!==t&&([o]=o.splitText(r),e[n]=o)}return e}modify(e,t,n){var r;if(nw(this,e,t,n))return;let i="move"===e,l=nM(),o=ig(ia(l));if(!o)return;let a=l._blockCursorElement,s=l._rootElement,u=this.focus.getNode();if(null===s||null===a||!nG(u)||u.isInline()||u.canBeEmpty()||ih(a,l,s),this.dirty){let e=it(l,this.anchor.key),t=it(l,this.focus.key);"text"===this.anchor.type&&(e=rT(e)),"text"===this.focus.type&&(t=rT(t)),e&&t&&nb(o,e,this.anchor.offset,t,this.focus.offset)}if(r=t?"backward":"forward",o.modify(e,r,n),o.rangeCount>0){let e=o.getRangeAt(0),n=this.anchor.getNode(),r=n1(n)?n:function(e){let t=e.getParentOrThrow();for(;null!==t&&!is(t);)t=t.getParentOrThrow();return t}(n);if(this.applyDOMRange(e),this.dirty=!0,!i){let n=this.getNodes(),i=[],l=!1;for(let e=0;e<n.length;e++){let t=n[e];il(t,r)?i.push(t):l=!0}if(l&&i.length>0)if(t){let e=i[0];nG(e)?e.selectStart():e.getParentOrThrow().selectStart()}else{let e=i[i.length-1];nG(e)?e.selectEnd():e.getParentOrThrow().selectEnd()}o.anchorNode===e.startContainer&&o.anchorOffset===e.startOffset||function(e){let t=e.focus,n=e.anchor,r=n.key,i=n.offset,l=n.type;n.set(t.key,t.offset,t.type,!0),t.set(r,i,l,!0)}(this)}}"lineboundary"===n&&nw(this,e,t,n,"decorators")}forwardDeletion(e,t,n){if(!n&&("element"===e.type&&nG(t)&&e.offset===t.getChildrenSize()||"text"===e.type&&e.offset===t.getTextContentSize())){let e=t.getParent(),n=t.getNextSibling()||(null===e?null:e.getNextSibling());if(nG(n)&&n.isShadowRoot())return!0}return!1}deleteCharacter(e){let t=this.isCollapsed();if(this.isCollapsed()){let t=this.anchor,n=t.getNode();if(this.forwardDeletion(t,n,e))return;let r=iQ(i7(t,e?"previous":"next"));if(r.getTextSlices().every(e=>null===e||0===e.distance)){let e={type:"initial"};for(let t of r.iterNodeCarets("shadowRoot"))if(iz(t))if(t.origin.isInline());else{if(t.origin.isShadowRoot()){if("merge-block"===e.type)break;if(nG(r.anchor.origin)&&r.anchor.origin.isEmpty()){let e=ll(t);le(this,i1(e,e)),r.anchor.origin.remove()}return}"merge-next-block"!==e.type&&"merge-block"!==e.type||(e={block:e.block,caret:t,type:"merge-block"})}else{if("merge-block"===e.type)break;if(ij(t)){if(nG(t.origin)){if(t.origin.isInline()){if(!t.origin.isParentOf(r.anchor.origin))break}else e={block:t.origin,type:"merge-next-block"};continue}if(nQ(t.origin)){if(t.origin.isIsolated());else if("merge-next-block"===e.type&&(t.origin.isKeyboardSelectable()||!t.origin.isInline())&&nG(r.anchor.origin)&&r.anchor.origin.isEmpty()){r.anchor.origin.remove();let e=nf();e.add(t.origin.getKey()),rJ(e)}else t.origin.remove();return}break}}if("merge-block"===e.type){let{caret:t,block:n}=e;return le(this,i1(!t.origin.isEmpty()&&n.isEmpty()?ln(iK(n,t.direction)):r.anchor,t)),this.removeText()}}let i=this.focus;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&0===t.offset&&nn(this,t.getNode()))return}else{let r="text"===i.type?i.getNode():null;if(n="text"===t.type?t.getNode():null,null!==r&&r.isSegmented()){let t=i.offset,l=r.getTextContentSize();if(r.is(n)||e&&t!==l||!e&&0!==t)return void ni(r,e,t)}else if(null!==n&&n.isSegmented()){let i=t.offset,l=n.getTextContentSize();if(n.is(r)||e&&0!==i||!e&&i!==l)return void ni(n,e,i)}!function(e,t){let n=e.anchor,r=e.focus,i=n.getNode();if(i===r.getNode()&&"text"===n.type&&"text"===r.type){var l;let e=n.offset,o=r.offset,a=e<o,s=a?e:o,u=a?o:e,c=u-1;s===c||rW(l=i.getTextContent().slice(s,u))||nr(l)||(t?r.set(r.key,c,r.type):n.set(n.key,c,n.type))}}(this,e)}}if(this.removeText(),e&&!t&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset){let e=this.anchor.getNode();e.isEmpty()&&n1(e.getParent())&&null===e.getPreviousSibling()&&nn(this,e)}}deleteLine(e){this.isCollapsed()&&this.modify("extend",e,"lineboundary"),this.isCollapsed()?this.deleteCharacter(e):this.removeText()}deleteWord(e){if(this.isCollapsed()){let t=this.anchor,n=t.getNode();if(this.forwardDeletion(t,n,e))return;this.modify("extend",e,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function t6(e){return e instanceof t8}function ne(e){let t=e.offset;if("text"===e.type)return t;let n=e.getNode();return t===n.getChildrenSize()?n.getTextContent().length:0}function nt(e){let t=e.getStartEndPoints();if(null===t)return[0,0];let[n,r]=t;return"element"===n.type&&"element"===r.type&&n.key===r.key&&n.offset===r.offset?[0,0]:[ne(n),ne(r)]}function nn(e,t){for(let n=t;n;
1n=n.getParent()){if(nG(n)){if(n.collapseAtStart(e))return!0;if(is(n))break}if(n.getPreviousSibling())break}return!1}let nr=(()=>{try{let e=RegExp("\\p{Emoji}","u"),t=e.test.bind(e);if(t("❤️")&&t("#️⃣")&&t("\uD83D\uDC4D"))return t}catch(e){}return()=>!1})();function ni(e,t,n){let r=e.getTextContent().split(/(?=\s)/g),i=r.length,l=0,o=0;for(let e=0;e<i;e++){let a=e===i-1;if(o=l,l+=r[e].length,t&&l===n||l>n||a){r.splice(e,1),a&&(o=void 0);break}}let a=r.join("").trim();""===a?e.remove():(e.setTextContent(a),e.select(o,o))}function nl(e,t,n,i){let l,o=t;if(iy(e)){let a=!1,s=e.childNodes,u=s.length,c=i._blockCursorElement;o===u&&(a=!0,o=u-1);let d=s[o],f=!1;if(d===c)d=s[o+1],f=!0;else if(null!==c){let n=c.parentNode;e===n&&t>Array.prototype.indexOf.call(n.children,c)&&o--}if(tY(l=rU(d)))o=iZ(l,a?"next":"previous");else{let s=rU(e);if(null===s)return null;if(nG(s)){let u=i.getElementByKey(s.getKey());null===u&&r(214);let c=s.getDOMSlot(u);[s,o]=c.resolveChildIndex(s,u,e,t),nG(s)||r(215),a&&o>=s.getChildrenSize()&&(o=Math.max(0,s.getChildrenSize()-1));let d=s.getChildAtIndex(o);if(nG(d)&&function(e,t,n){let r=e.getParent();return null===n||null===r||!r.canBeEmpty()||r!==n.getNode()}(d,0,n)){let e=a?d.getLastDescendant():d.getFirstDescendant();s=null===e||nG(d=e)?d:d.getParentOrThrow(),o=0}tY(d)?(l=d,s=null,o=iZ(d,a?"next":"previous")):d!==s&&a&&!f&&(nG(s)||r(216),o=Math.min(s.getChildrenSize(),o+1))}else{let n=s.getIndexWithinParent();o=0===t&&nQ(s)&&rU(e)===s?n:n+1,s=s.getParentOrThrow()}if(nG(s))return t5(s.__key,o,"element")}}else l=rU(e);return tY(l)?t5(l.__key,iZ(l,o,"clamp"),"text"):null}function no(e,t,n){let r=e.offset,i=e.getNode();if(0===r){let r=i.getPreviousSibling(),l=i.getParent();if(t){if((n||!t)&&null===r&&nG(l)&&l.isInline()){let t=l.getPreviousSibling();tY(t)&&e.set(t.__key,t.getTextContent().length,"text")}}else nG(r)&&!n&&r.isInline()?e.set(r.__key,r.getChildrenSize(),"element"):tY(r)&&e.set(r.__key,r.getTextContent().length,"text")}else if(r===i.getTextContent().length){let r=i.getNextSibling(),l=i.getParent();if(t&&nG(r)&&r.isInline())e.set(r.__key,0,"element");else if((n||t)&&null===r&&nG(l)&&l.isInline()&&!l.canInsertTextAfter()){let t=l.getNextSibling();tY(t)&&e.set(t.__key,0,"text")}}}function na(e,t,n){if("text"===e.type&&"text"===t.type){let r=e.isBefore(t),i=e.is(t);no(e,r,i),no(t,!r,i),i&&t.set(e.key,e.offset,e.type);let l=nM();if(l.isComposing()&&l._compositionKey!==e.key&&t7(n)){let r=n.anchor,i=n.focus;e.set(r.key,r.offset,r.type,!0),t.set(i.key,i.offset,i.type,!0)}}}function ns(e,t,n,r,i,l){if(null===e||null===n||!rb(i,e,n))return null;let o=nl(e,t,t7(l)?l.anchor:null,i);if(null===o)return null;let a=nl(n,r,t7(l)?l.focus:null,i);if(null===a)return null;if("element"===o.type&&"element"===a.type){let t=rU(e),r=rU(n);if(nQ(t)&&nQ(r))return null}return na(o,a,l),[o,a]}function nu(e){return nG(e)&&!e.isInline()}function nc(e,t,n,r,i,l){let o=nF(),a=new t4(t5(e,t,i),t5(n,r,l),0,"");return a.dirty=!0,o._selection=a,a}function nd(){return new t4(t5("root",0,"element"),t5("root",0,"element"),0,"")}function nf(){return new t8(new Set)}function np(e,t,n,r){let i,l,o,a,s=n._window;if(null===s)return null;let u=r||s.event,c=u?u.type:void 0,d="selectionchange"===c,f=!E&&(d||"beforeinput"===c||"compositionstart"===c||"compositionend"===c||"click"===c&&u&&3===u.detail||"drop"===c||void 0===c);if(t7(e)&&!f)return e.clone();if(null===t)return null;if(i=t.anchorNode,l=t.focusNode,o=t.anchorOffset,a=t.focusOffset,d&&t7(e)&&!rb(n,i,l))return e.clone();let p=ns(i,o,l,a,n,e);if(null===p)return null;let[h,g]=p;return new t4(h,g,t7(e)?e.format:0,t7(e)?e.style:"")}function nh(){return nF()._selection}function ng(){return nM()._editorState._selection}function nm(e,t,n,r=1){let i=e.anchor,l=e.focus,o=i.getNode(),a=l.getNode();if(!t.is(o)&&!t.is(a))return;let s=t.__key;if(e.isCollapsed()){let t=i.offset;if(n<=t&&r>0||n<t&&r<0){let n=Math.max(0,t+r);i.set(s,n,"element"),l.set(s,n,"element"),ny(e)}}else{let o=e.isBackward(),a=o?l:i,u=a.getNode(),c=o?i:l,d=c.getNode();if(t.is(u)){let e=a.offset;(n<=e&&r>0||n<e&&r<0)&&a.set(s,Math.max(0,e+r),"element")}if(t.is(d)){let e=c.offset;(n<=e&&r>0||n<e&&r<0)&&c.set(s,Math.max(0,e+r),"element")}}ny(e)}function ny(e){let t=e.anchor,n=t.offset,r=e.focus,i=r.offset,l=t.getNode(),o=r.getNode();if(e.isCollapsed()){if(!nG(l))return;let e=l.getChildrenSize(),i=n>=e,o=i?l.getChildAtIndex(e-1):l.getChildAtIndex(n);if(tY(o)){let e=0;i&&(e=o.getTextContentSize()),t.set(o.__key,e,"text"),r.set(o.__key,e,"text")}}else{if(nG(l)){let e=l.getChildrenSize(),r=n>=e,i=r?l.getChildAtIndex(e-1):l.getChildAtIndex(n);if(tY(i)){let e=0;r&&(e=i.getTextContentSize()),t.set(i.__key,e,"text")}}if(nG(o)){let e=o.getChildrenSize(),t=i>=e,n=t?o.getChildAtIndex(e-1):o.getChildAtIndex(i);if(tY(n)){let e=0;t&&(e=n.getTextContentSize()),r.set(n.__key,e,"text")}}}}function nv(e,t,n,r,i){let l=null,o=0,a=null;null!==r?(l=r.__key,tY(r)?(o=r.getTextContentSize(),a="text"):nG(r)&&(o=r.getChildrenSize(),a="element")):null!==i&&(l=i.__key,tY(i)?a="text":nG(i)&&(a="element")),null!==l&&null!==a?e.set(l,o,a):(-1===(o=t.getIndexWithinParent())&&(o=n.getChildrenSize()),e.set(n.__key,o,"element"))}function nx(e,t,n,r,i){"text"===e.type?e.set(n,e.offset+(t?0:i),"text"):e.offset>r.getIndexWithinParent()&&e.set(e.key,e.offset-1,"element")}function nb(e,t,n,r,i){try{e.setBaseAndExtent(t,n,r,i)}catch(e){}}function n_(e){let t=nh()||ng();
1null===t&&(t=rj().selectEnd()),t.insertNodes(e)}function nC(e){let t=e;e.isCollapsed()||t.removeText();let n=nh();t7(n)&&(t=n),t7(t)||r(161);let i=t.anchor,l=i.getNode(),o=i.offset;for(;!iC(l);){let e=l;if([l,o]=function(e,t){let n=e.getParent();if(!n){let e=rl();return rj().append(e),e.select(),[rj(),0]}if(tY(e)){let r=e.splitText(t);if(0===r.length)return[n,e.getIndexWithinParent()];let i=+(0!==t);return[n,r[0].getIndexWithinParent()+i]}if(!nG(e)||0===t)return[n,e.getIndexWithinParent()];let r=e.getChildAtIndex(t);if(r){let n=new t4(t5(e.__key,t,"element"),t5(e.__key,t,"element"),0,""),i=e.insertNewAfter(n);i&&i.append(r,...r.getNextSiblings())}return[n,e.getIndexWithinParent()+1]}(l,o),e.is(l))break}return o}function nw(e,t,n,r,i="decorators-and-blocks"){if("move"===t&&"character"===r&&!e.isCollapsed()){let[t,r]=n===e.isBackward()?[e.focus,e.anchor]:[e.anchor,e.focus];return r.set(t.key,t.offset,t.type),!0}let l=i7(e.focus,n?"previous":"next"),o="lineboundary"===r,a="move"===t,s=l,u="decorators-and-blocks"===i;if(!lo(s)){for(let e of s){u=!1;let{origin:t}=e;if(!nQ(t)||t.isIsolated()||(s=e,!o||!t.isInline()))break}if(u)for(let e of iQ(l).iterNodeCarets("extend"===t?"shadowRoot":"root")){if(iz(e))e.origin.isInline()||(s=e);else{if(nG(e.origin))continue;nQ(e.origin)&&!e.origin.isInline()&&(s=e)}break}}if(s===l)return!1;if(a&&!o&&nQ(s.origin)&&s.origin.isKeyboardSelectable()){let e=nf();return e.add(s.origin.getKey()),rJ(e),!0}return s=ll(s),a&&i4(e.anchor,s),i4(e.focus,s),u||!o}let nk=null,nE=null,nS=!1,nT=!1,nA=0,nN={characterData:!0,childList:!0,subtree:!0};function nI(){return nS||null!==nk&&nk._readOnly}function nL(){nS&&r(13)}function nP(){nA>99&&r(14)}function nF(){return null===nk&&r(195,nO()),nk}function nM(){return null===nE&&r(196,nO()),nE}function nO(){let e=0,t=new Set,n=rp.version;if("undefined"!=typeof window)for(let r of document.querySelectorAll("[contenteditable]")){let i=rw(r);if(r_(i))e++;else if(i){let e=String(i.constructor.version||"<0.17.1");e===n&&(e+=" (separately built, likely a bundler configuration issue)"),t.add(e)}}let r=` Detected on the page: ${e} compatible editor(s) with version ${n}`;return t.size&&(r+=` and incompatible editors with versions ${Array.from(t).join(", ")}`),r}function nR(e,t,n){let r=t.__type,i=rm(e,r),l=n.get(r);void 0===l&&(l=Array.from(i.transforms),n.set(r,l));let o=l.length;for(let e=0;e<o&&(l[e](t),t.isAttached());e++);}function nD(e,t){return void 0!==e&&e.__key!==t&&e.isAttached()}function nV(e,t){if(!t)return;let n=e._updateTags,r=t;for(let e of(Array.isArray(t)||(r=[t]),r))n.add(e)}function nH(e){return nB(e,nM()._nodes)}function nB(e,t){let n=e.type,i=t.get(n);void 0===i&&r(17,n);let l=i.klass;e.type!==l.getType()&&r(18,l.name);let o=l.importJSON(e),a=e.children;if(nG(o)&&Array.isArray(a))for(let e=0;e<a.length;e++){let n=nB(a[e],t);o.append(n)}return o}function nj(e,t,n){let r=nk,i=nS,l=nE;nk=t,nS=!0,nE=e;try{return n()}finally{nk=r,nS=i,nE=l}}function nz(e,t){let n=e._pendingEditorState,i=e._rootElement,l=e._headless||null===i;if(null===n)return;let o=e._editorState,a=o._selection,s=n._selection,u=0!==e._dirtyType,c=nk,d=nS,f=nE,p=e._updating,h=e._observer,m=null;if(e._pendingEditorState=null,e._editorState=n,!l&&u&&null!==h){nE=e,nk=n,nS=!1,e._updating=!0;try{let t=e._dirtyType,i=e._dirtyElements,l=e._dirtyLeaves;h.disconnect(),m=function(e,t,n,i,l,o){Q="",en="",er=2===i,U=n,J=n._config,W=n._nodes,K=U._listeners.mutation,$=l,Z=o,q=e._nodeMap,G=t._nodeMap,ei=t._readOnly,Y=new Map(n._keyToDOMMap);let a=new Map;return X=a,function e(t,n){let i=q.get(t),l=G.get(t);void 0!==i&&void 0!==l||r(61);let o=er||Z.has(t)||$.has(t),a=it(U,t);if(i===l&&!o){if(nG(i)){let e=a.__lexicalTextContent;void 0!==e&&(Q+=e,en+=e)}else{let e=i.getTextContent();en+=e,Q+=e}return a}if(i!==l&&o&&r3(X,W,K,l,"updated"),l.updateDOM(i,a,J)){let e=ed(t,null);return null===n&&r(62),n.replaceChild(e,a),el(t,null),e}if(nG(i)&&nG(l)){let t=l.__indent;(er||t!==i.__indent)&&es(a,t);let n=l.__format;if((er||n!==i.__format)&&eu(a,n),o&&(function(t,n,i){ee=null,et="",function(t,n,i){let l=Q,o=t.__size,a=n.__size;Q="";let s=i.element;
1if(1===o&&1===a){let r=t.__first,i=n.__first;if(r===i)e(r,s);else{let e=ev(r),t=ed(i,null);try{s.replaceChild(t,e)}catch(n){if("object"==typeof n&&null!=n)throw Error(`${n.toString()} Parent: ${s.tagName}, new child: {tag: ${t.tagName} key: ${i}}, old child: {tag: ${e.tagName}, key: ${r}}.`);throw n}el(r,null)}let l=G.get(i);tY(l)&&(null===ee&&(ee=l.getFormat()),""===et&&(et=l.getStyle()))}else{let l=eg(t,q),u=eg(n,G);if(l.length!==o&&r(227),u.length!==a&&r(228),0===o)0!==a&&ef(u,n,0,a-1,i);else if(0===a){if(0!==o){let e=null==i.after&&null==i.before&&null==i.element.__lexicalLineBreak;eo(l,0,o-1,e?null:s),e&&(s.textContent="")}}else!function(t,n,r,i,l,o){let a=i-1,s=l-1,u,c,d=o.getFirstChild(),f=0,p=0;for(;f<=a&&p<=s;){let t=n[f],i=r[p];if(t===i)d=ey(e(i,o.element)),f++,p++;else{void 0===u&&(u=new Set(n)),void 0===c&&(c=new Set(r));let l=c.has(t),a=u.has(i);if(l)if(a){let t=it(U,i);t===d?d=ey(e(i,o.element)):(o.withBefore(d).insertChild(t),e(i,o.element)),f++,p++}else ed(i,o.withBefore(d)),p++;else d=ey(ev(t)),el(t,o.element),f++}let l=G.get(i);null!==l&&tY(l)&&(null===ee&&(ee=l.getFormat()),""===et&&(et=l.getStyle()))}let h=f>a,g=p>s;if(h&&!g){let e=r[s+1],n=void 0===e?null:U.getElementByKey(e);ef(r,t,p,s,o.withBefore(n))}else g&&!h&&eo(n,f,a,o.element)}(n,l,u,o,a,i)}ie(n)&&(Q+="\n\n"),s.__lexicalTextContent=Q,Q=l+Q}(t,n,n.getDOMSlot(i)),null==ee||ee===n.__textFormat||ei||n.setTextFormat(ee),""===et||et===n.__textStyle||ei||n.setTextStyle(et)}(i,l,a),n1(l)||l.isInline()||eh(i,l,a)),ie(l)&&(Q+="\n\n",en+="\n\n"),(er||l.__dir!==i.__dir)&&(ec(a,l),n1(l)&&!er))for(let e of l.getChildren())nG(e)&&ec(it(U,e.getKey()),e)}else{let e=l.getTextContent();if(nQ(l)){let e=l.decorate(U,J);null!==e&&em(t,e)}Q+=e,en+=e}if(!ei&&n1(l)&&l.__cachedText!==en){let e=l.getWritable();e.__cachedText=en,l=e}return a}("root",null),U=void 0,W=void 0,$=void 0,Z=void 0,q=void 0,G=void 0,J=void 0,Y=void 0,X=void 0,a}(o,n,e,t,i,l)}catch(t){if(t instanceof Error&&e._onError(t),nT)throw t;return rd(e,null,i,n),L(e),e._dirtyType=2,nT=!0,nz(e,o),void(nT=!1)}finally{h.observe(i,nN),e._updating=p,nk=c,nS=d,nE=f}}n._readOnly||(n._readOnly=!0);let y=e._dirtyLeaves,v=e._dirtyElements,x=e._normalizedNodes,b=e._updateTags,_=e._deferred;u&&(e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements=new Map,e._normalizedNodes=new Set,e._updateTags=new Set),function(e,t){let n,r=e._decorators,i=e._pendingDecorators||r,l=t._nodeMap;for(n in i)l.has(n)||(i===r&&(i=rH(e)),delete i[n])}(e,n);let C=l?null:ig(ia(e));if(e._editable&&null!==C&&(u||null===s||s.dirty)&&null!==i&&!b.has(rt)){nE=e,nk=n;try{if(null!==h&&h.disconnect(),u||null===s||s.dirty){let t=e._blockCursorElement;null!==t&&ih(t,e,i),function(e,t,n,r,i,l,o){let a=r.anchorNode,s=r.focusNode,u=r.anchorOffset,c=r.focusOffset,d=document.activeElement;if(i.has(n6)&&d!==l||null!==d&&rx(d))return;if(!t7(t))return null!==e&&rb(n,a,s)&&r.removeAllRanges();let f=t.anchor,p=t.focus,h=f.key,g=p.key,m=it(n,h),y=it(n,g),v=f.offset,x=p.offset,b=t.format,_=t.style,C=t.isCollapsed(),w=m,k=y,E=!1;if("text"===f.type){w=rT(m);let e=f.getNode();E=e.getFormat()!==b||e.getStyle()!==_}else t7(e)&&"text"===e.anchor.type&&(E=!0);if("text"===p.type&&(k=rT(y)),null!==w&&null!==k&&(C&&(null===e||E||t7(e)&&(e.format!==b||e.style!==_))&&(tg=[b,_,v,h,performance.now()]),u!==v||c!==x||a!==w||s!==k||"Range"===r.type&&C||(null!==d&&l.contains(d)||l.focus({preventScroll:!0}),"element"===f.type))){if(nb(r,w,v,k,x),!i.has(re)&&t.isCollapsed()&&null!==l&&l===document.activeElement){let e=t7(t)&&"element"===t.anchor.type?w.childNodes[v]||null:r.rangeCount>0?r.getRangeAt(0):null;if(null!==e){let t;if(e instanceof Text){let n=document.createRange();n.selectNode(e),t=n.getBoundingClientRect()}else t=e.getBoundingClientRect();!function(e,t,n){let r=ii(n),i=io(r);if(null===r||null===i)return;let{top:l,bottom:o}=t,a=0,s=0,u=n;for(;null!==u;){let t=u===r.body;if(t)a=0,s=ia(e).innerHeight;else{let e=u.getBoundingClientRect();a=e.top,s=e.bottom}let n=0;if(l<a?n=-(a-l):o>s&&(n=o-s),0!==n)if(t)i.scrollBy(0,n);else{let e=u.scrollTop;u.scrollTop+=n;let t=u.scrollTop-e;l-=t,o-=t}if(t)break;u=ir(u)}}(n,t,l)}}ts=!0}}(a,s,e,C,b,i)}!function(e,t,n){let r=e._blockCursorElement;if(t7(n)&&n.isCollapsed()&&"element"===n.anchor.type&&t.contains(document.activeElement)){let i=n.anchor,l=i.getNode(),o=i.offset,a=!1,s=null;if(o===l.getChildrenSize())ip(l.getChildAtIndex(o-1))&&(a=!0);else{let t=l.getChildAtIndex(o);if(null!==t&&ip(t)){let n=t.getPreviousSibling();(null===n||ip(n))&&(a=!0,s=e.getElementByKey(t.__key))}}if(a){let n=e.getElementByKey(l.__key);return null===r&&(e._blockCursorElement=r=function(e){let t=e.theme,n=document.createElement("div");n.contentEditable="false",n.setAttribute("data-lexical-cursor","true");let r=t.blockCursor;return void 0!==r&&("string"==typeof r&&(r=t.blockCursor=g(r)),void 0!==r&&n.classList.add(...r)),n}(e._config)),t.style.caretColor="transparent",null===s?n.appendChild(r):n.insertBefore(r,
1s)}}null!==r&&ih(r,e,t)}(e,i,s)}finally{null!==h&&h.observe(i,nN),nE=f,nk=c}}null!==m&&function(e,t,n,r,i){let l=Array.from(e._listeners.mutation),o=l.length;for(let e=0;e<o;e++){let[o,a]=l[e];for(let e of a){let l=t.get(e);void 0!==l&&o(l,{dirtyLeaves:r,prevEditorState:i,updateTags:n})}}}(e,m,b,y,o),t7(s)||null===s||null!==a&&a.is(s)||e.dispatchCommand(eb,void 0);let w=e._pendingDecorators;null!==w&&(e._decorators=w,e._pendingDecorators=null,nJ("decorator",e,!0,w)),function(e,t,n){let r=rB(t),i=rB(n);r!==i&&nJ("textcontent",e,!0,i)}(e,t||o,n),nJ("update",e,!0,{dirtyElements:v,dirtyLeaves:y,editorState:n,mutatedNodes:m,normalizedNodes:x,prevEditorState:t||o,tags:b}),function(e,t){if(e._deferred=[],0!==t.length){let n=e._updating;e._updating=!0;try{for(let e=0;e<t.length;e++)t[e]()}finally{e._updating=n}}}(e,_),function(e){let t=e._updates;if(0!==t.length){let n=t.shift();if(n){let[t,r]=n;nW(e,t,r)}}}(e)}function nJ(e,t,n,...r){let i=t._updating;t._updating=n;try{let n=Array.from(t._listeners[e]);for(let e=0;e<n.length;e++)n[e].apply(null,r)}finally{t._updating=i}}function nU(e,t){let n=e._updates,i=t||!1;for(;0!==n.length;){let t=n.shift();if(t){let n,[l,o]=t,a=e._pendingEditorState;void 0!==o&&(n=o.onUpdate,o.skipTransforms&&(i=!0),o.discrete&&(null===a&&r(191),a._flushSync=!0),n&&e._deferred.push(n),nV(e,o.tag)),null==a?nW(e,l,o):l()}}return i}function nW(e,t,n){let i=e._updateTags,l,o=!1,a=!1;void 0!==n&&(l=n.onUpdate,nV(e,n.tag),o=n.skipTransforms||!1,a=n.discrete||!1),l&&e._deferred.push(l);let s=e._editorState,u=e._pendingEditorState,c=!1;(null===u||u._readOnly)&&(u=e._pendingEditorState=n2(u||s),c=!0),u._flushSync=a;let d=nk,f=nS,p=nE,h=e._updating;nk=u,nS=!1,e._updating=!0,nE=e;let g=e._headless||null===e.getRootElement();rh=null;try{c&&(g?null!==s._selection&&(u._selection=s._selection.clone()):u._selection=function(e,t){let n=e.getEditorState()._selection,r=ig(ia(e));return t7(n)||null==n?np(n,r,e,t):n.clone()}(e,n&&n.event||null));let i=e._compositionKey;t(),o=nU(e,o),function(e,t){let n=t.getEditorState()._selection,r=e._selection;if(t7(r)){let e,t=r.anchor,i=r.focus;if("text"===t.type&&(e=t.getNode()).selectionTransform(n,r),"text"===i.type){let t=i.getNode();e!==t&&t.selectionTransform(n,r)}}}(u,e),0!==e._dirtyType&&(o?function(e,t){let n=t._dirtyLeaves,r=e._nodeMap;for(let e of n){let t=r.get(e);tY(t)&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&B(t)}}(u,e):function(e,t){let n=t._dirtyLeaves,r=t._dirtyElements,i=e._nodeMap,l=rM(),o=new Map,a=n,s=a.size,u=r,c=u.size;for(;s>0||c>0;){if(s>0){for(let e of(t._dirtyLeaves=new Set,a)){let r=i.get(e);tY(r)&&r.isAttached()&&r.isSimpleText()&&!r.isUnmergeable()&&B(r),void 0!==r&&nD(r,l)&&nR(t,r,o),n.add(e)}if((s=(a=t._dirtyLeaves).size)>0){nA++;continue}}for(let e of(t._dirtyLeaves=new Set,t._dirtyElements=new Map,u.delete("root")&&u.set("root",!0),u)){let n=e[0],a=e[1];if(r.set(n,a),!a)continue;let s=i.get(n);void 0!==s&&nD(s,l)&&nR(t,s,o)}s=(a=t._dirtyLeaves).size,c=(u=t._dirtyElements).size,nA++}t._dirtyLeaves=n,t._dirtyElements=r}(u,e),nU(e),function(e,t,n,r){let i=e._nodeMap,l=t._nodeMap,o=[];for(let[e]of r){let t=l.get(e);void 0!==t&&(t.isAttached()||(nG(t)&&function e(t,n,r,i,l,o){let a=t.getFirstChild();for(;null!==a;){let t=a.__key;a.__parent===n&&(nG(a)&&e(a,t,r,i,l,o),r.has(t)||o.delete(t),l.push(t)),a=a.getNextSibling()}}(t,e,i,l,o,r),i.has(e)||r.delete(e),o.push(e)))}for(let e of o)l.delete(e);for(let e of n){let t=l.get(e);void 0===t||t.isAttached()||(i.has(e)||n.delete(e),l.delete(e))}}(s,u,e._dirtyLeaves,e._dirtyElements)),i!==e._compositionKey&&(u._flushSync=!0);let l=u._selection;if(t7(l)){let e=u._nodeMap,t=l.anchor.key,n=l.focus.key;void 0!==e.get(t)&&void 0!==e.get(n)||r(19)}else t6(l)&&0===l._nodes.size&&(u._selection=null)}catch(t){return t instanceof Error&&e._onError(t),e._pendingEditorState=s,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void nz(e)}finally{nk=d,nS=f,nE=p,e._updating=h,nA=0}0!==e._dirtyType||e._deferred.length>0||function(e,t){let n=t.getEditorState()._selection,r=e._selection;if(null!==r){if(r.dirty||!r.is(n))return!0}else if(null!==n)return!0;return!1}(u,e)?u._flushSync?(u._flushSync=!1,nz(e)):c&&rv(()=>{nz(e)}):(u._flushSync=!1,c&&(i.clear(),e._deferred=[],e._pendingEditorState=null))}function nK(e,t,n){nE===e&&void 0===n?t():nW(e,t,n)}class n${constructor(e,t,n){this.element=e,this.before=t||null,this.after=n||null}withBefore(e){return new n$(this.element,e,this.after)}withAfter(e){return new n$(this.element,this.before,e)}withElement(e){return this.element===e?this:new n$(e,this.before,this.after)}insertChild(e){let t=this.before||this.getManagedLineBreak();return null!==t&&t.parentElement!==this.element&&r(222),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&r(223),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&r(224),this.element.replaceChild(e,t),this}getFirstChild(){let e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){null===e?this.removeManagedLineBreak():this.insertManagedLineBreak("decorator"===e&&(c||u))}removeManagedLineBreak(){let e=this.getManagedLineBreak();if(e){let t=this.element,n="IMG"===e.nodeName?e.nextSibling:null;n&&t.removeChild(n),t.removeChild(e),t.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){let t=this.getManagedLineBreak();if(t){if(e===("IMG"===t.nodeName))return;this.removeManagedLineBreak()}let n=this.element,r=this.before,i=document.createElement("br");if(n.insertBefore(i,r),e){let e=document.createElement("img");e.setAttribute("data-lexical-linebreak","true"),e.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",e.alt="",n.insertBefore(e,i),n.__lexicalLineBreak=e}else n.__lexicalLineBreak=i}getFirstChildOffset(){let e=0;for(let t=this.after;null!==t;t=t.previousSibling)e++;return e}resolveChildIndex(e,t,n,r){if(n===this.element){let t=this.getFirstChildOffset();return[e,Math.min(t+e.getChildrenSize(),Math.max(t,r))]}let i=nZ(t,n);i.push(r);let l=nZ(t,this.element),o=e.getIndexWithinParent();for(let e=0;e<l.length;e++){let t=i[e],n=l[e];
1if(void 0===t||t<n)break;if(t>n){o+=1;break}}return[e.getParentOrThrow(),o]}}function nZ(e,t){let n=[],i=t;for(;i!==e&&null!==i;i=i.parentNode){let e=0;for(let t=i.previousSibling;null!==t;t=t.previousSibling)e++;n.push(e)}return i!==e&&r(225),n.reverse()}class nq extends tI{constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(e){super.afterCloneFrom(e),this.__key===e.__key&&(this.__first=e.__first,this.__last=e.__last,this.__size=e.__size),this.__indent=e.__indent,this.__format=e.__format,this.__style=e.__style,this.__dir=e.__dir,this.__textFormat=e.__textFormat,this.__textStyle=e.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){return _[this.getFormat()]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){let e=[],t=this.getFirstChild();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getChildrenKeys(){let e=[],t=this.getFirstChild();for(;null!==t;)e.push(t.__key),t=t.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return 0===this.getChildrenSize()}isDirty(){let e=nM()._dirtyElements;return null!==e&&e.has(this.__key)}isLastChild(){let e=this.getLatest(),t=this.getParentOrThrow().getLastChild();return null!==t&&t.is(e)}getAllTextNodes(){let e=[],t=this.getFirstChild();for(;null!==t;){if(tY(t)&&e.push(t),nG(t)){let n=t.getAllTextNodes();e.push(...n)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;nG(e);){let t=e.getFirstChild();if(null===t)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;nG(e);){let t=e.getLastChild();if(null===t)break;e=t}return e}getDescendantByIndex(e){let t=this.getChildren(),n=t.length;if(e>=n){let e=t[n-1];return nG(e)&&e.getLastDescendant()||e||null}let r=t[e];return nG(r)&&r.getFirstDescendant()||r||null}getFirstChild(){let e=this.getLatest().__first;return null===e?null:rO(e)}getFirstChildOrThrow(){let e=this.getFirstChild();return null===e&&r(45,this.__key),e}getLastChild(){let e=this.getLatest().__last;return null===e?null:rO(e)}getLastChildOrThrow(){let e=this.getLastChild();return null===e&&r(96,this.__key),e}getChildAtIndex(e){let t,n,r=this.getChildrenSize();if(e<r/2){for(t=this.getFirstChild(),n=0;null!==t&&n<=e;){if(n===e)return t;t=t.getNextSibling(),n++}return null}for(t=this.getLastChild(),n=r-1;null!==t&&n>=e;){if(n===e)return t;t=t.getPreviousSibling(),n--}return null}getTextContent(){let e="",t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){let i=t[r];e+=i.getTextContent(),nG(i)&&r!==n-1&&!i.isInline()&&(e+="\n\n")}return e}getTextContentSize(){let e=0,t=this.getChildren(),n=t.length;for(let r=0;r<n;r++){let i=t[r];e+=i.getTextContentSize(),nG(i)&&r!==n-1&&!i.isInline()&&(e+=2)}return e}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(e){if(""!==e){let t=b[e];return!!(this.getFormat()&t)}return!1}hasTextFormat(e){let t=v[e];return!!(this.getTextFormat()&t)}getFormatFlags(e,t){return rA(this.getLatest().__textFormat,e,t)}getTextStyle(){return this.getLatest().__textStyle}select(e,t){nL();let n=nh(),r=e,i=t,l=this.getChildrenSize();if(!this.canBeEmpty()){if(0===e&&0===t){let e=this.getFirstChild();if(tY(e)||nG(e))return e.select(0,0)}else if((void 0===e||e===l)&&(void 0===t||t===l)){let e=this.getLastChild();if(tY(e)||nG(e))return e.select()}}void 0===r&&(r=l),void 0===i&&(i=l);let o=this.__key;return t7(n)?(n.anchor.set(o,r,"element"),n.focus.set(o,i,"element"),n.dirty=!0,n):nc(o,r,o,i,"element","element")}selectStart(){let e=this.getFirstDescendant();return e?e.selectStart():this.select()}selectEnd(){let e=this.getLastDescendant();return e?e.selectEnd():this.select()}clear(){let e=this.getWritable();
1return this.getChildren().forEach(e=>e.remove()),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){let t=this.getWritable();return t.__dir=e,t}setFormat(e){return this.getWritable().__format=""!==e?b[e]:0,this}setStyle(e){return this.getWritable().__style=e||"",this}setTextFormat(e){let t=this.getWritable();return t.__textFormat=e,t}setTextStyle(e){let t=this.getWritable();return t.__textStyle=e,t}setIndent(e){return this.getWritable().__indent=e,this}splice(e,t,n){let i=n.length,l=this.getChildrenSize(),o=this.getWritable();e+t<=l||r(226,String(e),String(t),String(l));let a=o.__key,s=[],u=[],c=this.getChildAtIndex(e+t),d=null,f=l-t+i;if(0!==e)if(e===l)d=this.getLastChild();else{let t=this.getChildAtIndex(e);null!==t&&(d=t.getPreviousSibling())}if(t>0){let e=null===d?this.getFirstChild():d.getNextSibling();for(let n=0;n<t;n++){null===e&&r(100);let t=e.getNextSibling(),n=e.__key;rL(e.getWritable()),u.push(n),e=t}}let p=d;for(let e=0;e<i;e++){let t=n[e];null!==p&&t.is(p)&&(d=p=p.getPreviousSibling());let i=t.getWritable();i.__parent===a&&f--,rL(i);let l=t.__key;if(null===p)o.__first=l,i.__prev=null;else{let e=p.getWritable();e.__next=l,i.__prev=e.__key}t.__key===a&&r(76),i.__parent=a,s.push(l),p=t}if(e+t===l)null!==p&&(p.getWritable().__next=null,o.__last=p.__key);else if(null!==c){let e=c.getWritable();if(null!==p){let t=p.getWritable();e.__prev=p.__key,t.__next=c.__key}else e.__prev=null}if(o.__size=f,u.length){let e=nh();if(t7(e)){let t=new Set(u),n=new Set(s),{anchor:r,focus:i}=e;nY(r,t,n)&&nv(r,r.getNode(),this,d,c),nY(i,t,n)&&nv(i,i.getNode(),this,d,c),0!==f||this.canBeEmpty()||is(this)||this.remove()}}return o}getDOMSlot(e){return new n$(e)}exportDOM(e){let{element:t}=super.exportDOM(e);if(iy(t)){let e=this.getIndent();e>0&&(t.style.paddingInlineStart=40*e+"px");let n=this.getDirection();n&&(t.dir=n)}return{element:t}}exportJSON(){let e={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},t=this.getTextFormat(),n=this.getTextStyle();return 0!==t&&(e.textFormat=t),""!==n&&(e.textStyle=n),e}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format).setIndent(e.indent).setDirection(e.direction).setTextFormat(e.textFormat||0).setTextStyle(e.textStyle||"")}insertNewAfter(e,t){return null}canIndent(){return!0}collapseAtStart(e){return!1}excludeFromCopy(e){return!1}canReplaceWith(e){return!0}canInsertAfter(e){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(e){return!1}extractWithChild(e,t,n){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(e,t){let n=this.getDOMSlot(e),r=n.getFirstChild();for(let e=this.getFirstChild();e;e=e.getNextSibling()){let i=t.getElementByKey(e.getKey());null!==i&&(null==r?(n.insertChild(i),r=i):r!==i&&n.replaceChild(i,r),r=r.nextSibling)}}}function nG(e){return e instanceof nq}function nY(e,t,n){let r=e.getNode();for(;r;){let e=r.__key;if(t.has(e)&&!n.has(e))return!0;r=r.getParent()}return!1}class nX extends tI{decorate(e,t){r(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function nQ(e){return e instanceof nX}class n0 extends nq{static getType(){return"root"}static clone(){return new n0}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){r(51)}getTextContent(){let e=this.__cachedText;return(nI()||0===nM()._dirtyType)&&null!==e?e:super.getTextContent()}remove(){r(52)}replace(e){r(53)}insertBefore(e){r(54)}insertAfter(e){r(55)}updateDOM(e,t){return!1}splice(e,t,n){for(let e of n)nG(e)||nQ(e)||r(282);return super.splice(e,t,n)}static importJSON(e){return rj().updateFromJSON(e)}collapseAtStart(){return!0}}function n1(e){return e instanceof n0}function n2(e){return new n9(new Map(e._nodeMap))}function n5(){return new n9(new Map([["root",new n0]]))}class n9{constructor(e,t){this._nodeMap=e,this._selection=t||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return 1===this._nodeMap.size&&null===this._selection}read(e,t){return nj(t&&t.editor||null,this,e)}clone(e){let t=new n9(this._nodeMap,void 0===e?this._selection:e);return t._readOnly=!0,t}toJSON(){return nj(null,this,()=>({root:function e(t){let n=t.exportJSON(),i=t.constructor;if(n.type!==i.getType()&&r(130,i.name),nG(t)){let l=n.children;Array.isArray(l)||r(59,i.name);let o=t.getChildren();for(let t=0;t<o.length;t++){let n=e(o[t]);l.push(n)}}return n}(rj())}))}}let n3="historic",n8="history-push",n7="history-merge",n4="paste",n6="collaboration",re="skip-scroll-into-view",rt="skip-dom-selection";class rn extends nq{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class rr extends nq{static getType(){return"paragraph"}static clone(e){return new rr(e.__key)}createDOM(e){let t=document.createElement("p"),n=r9(e.theme,"paragraph");return void 0!==n&&t.classList.add(...n),t}updateDOM(e,t,n){return!1}static importDOM(){return{p:e=>({conversion:ri,priority:0})}}exportDOM(e){let{element:t}=super.exportDOM(e);if(iy(t)){this.isEmpty()&&t.append(document.createElement("br"));let e=this.getFormatType();e&&(t.style.textAlign=e)}return{element:t}}static importJSON(e){return rl().updateFromJSON(e)}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle()}}
1insertNewAfter(e,t){let n=rl();n.setTextFormat(e.format),n.setTextStyle(e.style);let r=this.getDirection();return n.setDirection(r),n.setFormat(this.getFormatType()),n.setStyle(this.getStyle()),this.insertAfter(n,t),n}collapseAtStart(){let e=this.getChildren();if(0===e.length||tY(e[0])&&""===e[0].getTextContent().trim()){if(null!==this.getNextSibling())return this.selectNext(),this.remove(),!0;if(null!==this.getPreviousSibling())return this.selectPrevious(),this.remove(),!0}return!1}}function ri(e){let t=rl();return e.style&&(t.setFormat(e.style.textAlign),iN(e,t)),{node:t}}function rl(){return ic(new rr)}function ro(e){return e instanceof rr}let ra=0,rs=1,ru=3,rc=4;function rd(e,t,n,r){let i=e._keyToDOMMap;i.clear(),e._editorState=n5(),e._pendingEditorState=r,e._compositionKey=null,e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,e._updateTags=new Set,e._updates=[],e._blockCursorElement=null;let l=e._observer;null!==l&&(l.disconnect(),e._observer=null),null!==t&&(t.textContent=""),null!==n&&(n.textContent="",i.set("root",n))}function rf(e){let t,n=e||{},r=nE,i=n.theme||{},l=void 0===e?r:n.parentEditor||null,o=n.disableEvents||!1,a=n5(),s=n.namespace||(null!==l?l._config.namespace:r$()),u=n.editorState,c=[n0,tz,tL,tQ,rr,rn,...n.nodes||[]],{onError:d,html:f}=n,p=void 0===n.editable||n.editable;if(void 0===e&&null!==r)t=r._nodes;else{t=new Map;for(let e=0;e<c.length;e++){let n=c[e],r=null,i=null;if("function"!=typeof n){let e=n;n=e.replace,r=e.with,i=e.withKlass||null}let{ownNodeConfig:l}=iL(n),o=n.getType(),a=n.transform(),s=new Set;l&&l.$transform&&s.add(l.$transform),null!==a&&s.add(a),t.set(o,{exportDOM:f&&f.export?f.export.get(n):void 0,klass:n,replace:r,replaceWithKlass:i,sharedNodeState:function(e){let t=new Map,n=new Set;for(let r="function"==typeof e?e:e.replace;r.prototype&&void 0!==r.prototype.getType;r=Object.getPrototypeOf(r)){let{ownNodeConfig:e}=iL(r);if(e&&e.stateConfigs)for(let r of e.stateConfigs){let e;"stateConfig"in r?(e=r.stateConfig,r.flat&&n.add(e.key)):e=r,t.set(e.key,e)}}return{flatKeys:n,sharedConfigMap:t}}(c[e]),transforms:s})}}let h=new rp(a,l,t,{disableEvents:o,namespace:s,theme:i},d||console.error,function(e,t){let n=new Map,r=new Set,i=e=>{Object.keys(e).forEach(t=>{let r=n.get(t);void 0===r&&(r=[],n.set(t,r)),r.push(e[t])})};return e.forEach(e=>{let t=e.klass.importDOM;if(null==t||r.has(t))return;r.add(t);let n=t.call(e.klass);null!==n&&i(n)}),t&&i(t),n}(t,f?f.import:void 0),p,e);return void 0!==u&&(h._pendingEditorState=u,h._dirtyType=2),h}class rp{constructor(e,t,n,r,i,l,o,a){this._createEditorArgs=a,this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=r,this._nodes=n,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=r$(),this._onError=i,this._htmlConversions=l,this._editable=o,this._headless=null!==t&&t._headless,this._window=null,this._blockCursorElement=null}isComposing(){return null!=this._compositionKey}registerUpdateListener(e){let t=this._listeners.update;return t.add(e),()=>{t.delete(e)}}registerEditableListener(e){let t=this._listeners.editable;return t.add(e),()=>{t.delete(e)}}registerDecoratorListener(e){let t=this._listeners.decorator;return t.add(e),()=>{t.delete(e)}}registerTextContentListener(e){let t=this._listeners.textcontent;return t.add(e),()=>{t.delete(e)}}registerRootListener(e){let t=this._listeners.root;return e(this._rootElement,null),t.add(e),()=>{e(null,this._rootElement),t.delete(e)}}registerCommand(e,t,n){void 0===n&&r(35);let i=this._commands;i.has(e)||i.set(e,[new Set,new Set,new Set,new Set,new Set]);let l=i.get(e);void 0===l&&r(36,String(e));let o=l[n];return o.add(t),()=>{o.delete(t),l.every(e=>0===e.size)&&i.delete(e)}}registerMutationListener(e,t,n){let r=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,i=this._listeners.mutation,l=i.get(t);void 0===l&&(l=new Set,i.set(t,l)),l.add(r);let o=n&&n.skipInitialization;return void 0!==o&&o||this.initializeMutationListener(t,r),()=>{l.delete(r),0===l.size&&i.delete(t)}}getRegisteredNode(e){let t=this._nodes.get(e.getType());return void 0===t&&r(37,e.name),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){let n=this._editorState,r=iT(n).get(t.getType());if(!r)return;let i=new Map;for(let e of r.keys())i.set(e,"created");i.size>0&&e(i,{dirtyLeaves:new Set,prevEditorState:n,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,t){let n=this.getRegisteredNode(e);return n.transforms.add(t),n}registerNodeTransform(e,t){let n=this.registerNodeTransformToKlass(e,t),r=[n],i=n.replaceWithKlass;if(null!=i){let e=this.registerNodeTransformToKlass(i,t);r.push(e)}return function(e,t){let n=iT(e.getEditorState()),r=[];for(let e of t){let t=n.get(e);t&&r.push(t)}0!==r.length&&e.update(()=>{for(let e of r)for(let t of e.keys()){let e=rO(t);e&&e.markDirty()}},null===e._pendingEditorState?{tag:n7}:void 0)}(this,r.map(e=>e.klass.getType())),()=>
1{r.forEach(e=>e.transforms.delete(t))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,t){return r6(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){let t=this._rootElement;if(e!==t){let n=r9(this._config.theme,"root"),i=this._pendingEditorState||this._editorState;if(this._rootElement=e,rd(this,t,e,i),null!==t&&(this._config.disableEvents||function(e){let t=e.ownerDocument,n=ta.get(t);if(void 0===n)return;let i=n-1;i>=0||r(164),ta.set(t,i),0===i&&t.removeEventListener("selectionchange",tE);let l=rw(e);r_(l)?(!function(e){if(null!==e._parentEditor){let t=rK(e),n=t[t.length-1]._key;tk.get(n)===e&&tk.delete(n)}else tk.delete(e._key)}(l),e.__lexicalEditor=null):l&&r(198);let o=tw(e);for(let e=0;e<o.length;e++)o[e]();e.__lexicalEventHandles=[]}(t),null!=n&&t.classList.remove(...n)),null!==e){let t=io(e),r=e.style;r.userSelect="text",r.whiteSpace="pre-wrap",r.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=t,this._dirtyType=2,L(this),this._updateTags.add(n7),nz(this),this._config.disableEvents||function(e,t){let n=e.ownerDocument,r=ta.get(n);(void 0===r||r<1)&&n.addEventListener("selectionchange",tE),ta.set(n,(r||0)+1),e.__lexicalEditor=t;let i=tw(e);for(let n=0;n<tn.length;n++){let[r,l]=tn[n],o="function"==typeof l?e=>{tT(e)||(tS(e),(t.isEditable()||"click"===r)&&l(e,t))}:e=>{if(tT(e))return;tS(e);let n=t.isEditable();switch(r){case"cut":return n&&r6(t,e2,e);case"copy":return r6(t,e1,e);case"paste":return n&&r6(t,eT,e);case"dragstart":return n&&r6(t,eX,e);case"dragover":return n&&r6(t,eQ,e);case"dragend":return n&&r6(t,e0,e);case"focus":return n&&r6(t,e4,e);case"blur":return n&&r6(t,e6,e);case"drop":return n&&r6(t,eG,e)}};e.addEventListener(r,o),i.push(()=>{e.removeEventListener(r,o)})}}(e,this),null!=n&&e.classList.add(...n)}else this._window=null,this._updateTags.add(n7),nz(this);nJ("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&r(38);let n=e;n._readOnly&&((n=n2(e))._selection=e._selection?e._selection.clone():null),I(this);let i=this._pendingEditorState,l=this._updateTags,o=void 0!==t?t.tag:null;null===i||i.isEmpty()||(null!=o&&l.add(o),nz(this)),this._pendingEditorState=n,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=o&&l.add(o),this._updating||nz(this)}parseEditorState(e,t){return function(e,t,n){let r=n5(),i=nk,l=nS,o=nE,a=t._dirtyElements,s=t._dirtyLeaves,u=t._cloneNotNeeded,c=t._dirtyType;t._dirtyElements=new Map,t._dirtyLeaves=new Set,t._cloneNotNeeded=new Set,t._dirtyType=0,nk=r,nS=!1,nE=t,rh=null;try{let i=t._nodes;nB(e.root,i),n&&n(),r._readOnly=!0}catch(e){e instanceof Error&&t._onError(e)}finally{t._dirtyElements=a,t._dirtyLeaves=s,t._cloneNotNeeded=u,t._dirtyType=c,nk=i,nS=l,nE=o}return r}("string"==typeof e?JSON.parse(e):e,this,t)}read(e){return nz(this),this.getEditorState().read(e,{editor:this})}update(e,t){this._updating?this._updates.push([e,t]):nW(this,e,t)}focus(e,t={}){let n=this._rootElement;null!==n&&(n.setAttribute("autocapitalize","off"),nK(this,()=>{var r,i;let l=nh(),o=rj();null!==l?l.dirty||rJ(l.clone()):0!==o.getChildrenSize()&&("rootStart"===t.defaultSelection?o.selectStart():o.selectEnd()),r="focus",nL(),nM()._updateTags.add(r),i=()=>{n.removeAttribute("autocapitalize"),e&&e()},nL(),nM()._deferred.push(i)}),null===this._pendingEditorState&&n.removeAttribute("autocapitalize"))}blur(){let e=this._rootElement;null!==e&&e.blur();let t=ig(this._window);null!==t&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,nJ("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}rp.version="0.35.0+prod.esm";let rh=null,rg=1;function rm(e,t){let n=ry(e,t);return void 0===n&&r(30,t),n}function ry(e,t){return e._nodes.get(t)}let rv="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function rx(e){let t=document.activeElement;if(!iy(t))return!1;let n=t.nodeName;return nQ(rV(e))&&("INPUT"===n||"TEXTAREA"===n||"true"===t.contentEditable&&null==rw(t))}function rb(e,t,n){let r=e.getRootElement();try{return null!==r&&r.contains(t)&&r.contains(n)&&null!==t&&!rx(t)&&rC(t)===e}catch(e){return!1}}function r_(e){return e instanceof rp}function rC(e){let t=e;for(;null!=t;){let e=rw(t);if(r_(e))return e;t=ir(t)}return null}function rw(e){return e?e.__lexicalEditor:null}function rk(e){return t1(e)||e.isToken()}function rE(e){return rk(e)||e.isSegmented()}
1function rS(e){return iv(e)&&3===e.nodeType}function rT(e){let t=e;for(;null!=t;){if(rS(t))return t;t=t.firstChild}return null}function rA(e,t,n){let r=v[t];if(null!==n&&(e&r)==(n&r))return e;let i=e^r;return"subscript"===t?i&=~v.superscript:"superscript"===t?i&=~v.subscript:"lowercase"===t?(i&=~v.uppercase,i&=~v.capitalize):"uppercase"===t?(i&=~v.lowercase,i&=~v.capitalize):"capitalize"===t&&(i&=~v.lowercase,i&=~v.uppercase),i}function rN(e){return tY(e)||tM(e)||nQ(e)}function rI(e,t){let n=function(){let e=rh;return rh=null,e}();if(null!=(t=t||n&&n.__key))return void(e.__key=t);nL(),nP();let r=nM(),i=nF(),l=""+rg++;i._nodeMap.set(l,e),nG(e)?r._dirtyElements.set(l,!0):r._dirtyLeaves.add(l),r._cloneNotNeeded.add(l),r._dirtyType=1,e.__key=l}function rL(e){let t=e.getParent();if(null!==t){let n=e.getWritable(),r=t.getWritable(),i=e.getPreviousSibling(),l=e.getNextSibling(),o=null!==l?l.__key:null,a=null!==i?i.__key:null,s=null!==i?i.getWritable():null,u=null!==l?l.getWritable():null;null===i&&(r.__first=o),null===l&&(r.__last=a),null!==s&&(s.__next=o),null!==u&&(u.__prev=a),n.__prev=null,n.__next=null,n.__parent=null,r.__size--}}function rP(e){nP();let t=e.getLatest(),n=t.__parent,r=nF(),i=nM(),l=r._nodeMap,o=i._dirtyElements;null!==n&&function(e,t,n){let r=e;for(;null!==r;){if(n.has(r))return;let e=t.get(r);if(void 0===e)break;n.set(r,!1),r=e.__parent}}(n,l,o);let a=t.__key;i._dirtyType=1,nG(e)?o.set(a,!0):i._dirtyLeaves.add(a)}function rF(e){nL();let t=nM(),n=t._compositionKey;if(e!==n){if(t._compositionKey=e,null!==n){let e=rO(n);null!==e&&e.getWritable()}if(null!==e){let t=rO(e);null!==t&&t.getWritable()}}}function rM(){return nI()?null:nM()._compositionKey}function rO(e,t){let n=(t||nF())._nodeMap.get(e);return void 0===n?null:n}function rR(e,t){let n=rD(e,nM());return void 0!==n?rO(n,t):null}function rD(e,t){return e[`__lexicalKey_${t._key}`]}function rV(e,t){let n=e;for(;null!=n;){let e=rR(n,t);if(null!==e)return e;n=ir(n)}return null}function rH(e){let t=Object.assign({},e._decorators);return e._pendingDecorators=t,t}function rB(e){return e.read(()=>rj().getTextContent())}function rj(){return rz(nF())}function rz(e){return e._nodeMap.get("root")}function rJ(e){nL();let t=nF();null!==e&&(e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function rU(e){let t=nM(),n=function(e,t){let n=e;for(;null!=n;){let e=rD(n,t);if(void 0!==e)return e;n=ir(n)}return null}(e,t);return null===n?e===t.getRootElement()?rO("root"):null:rO(n)}function rW(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function rK(e){let t=[],n=e;for(;null!==n;)t.push(n),n=n._parentEditor;return t}function r$(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function rZ(e){return rS(e)?e.nodeValue:null}function rq(e,t,n){let r=ig(ia(t));if(null===r)return;let i=r.anchorNode,{anchorOffset:l,focusOffset:o}=r;if(null!==i){let t=rZ(i),r=rV(i);if(null!==t&&tY(r)){if(t===m&&n){let e=n.length;t=n,l=e,o=e}null!==t&&rG(r,t,l,o,e)}}}function rG(e,t,n,r,i){let l=e;if(l.isAttached()&&(i||!l.isDirty())){let o=l.isComposing(),a=t;(o||i)&&t[t.length-1]===m&&(a=t.slice(0,-1));let s=l.getTextContent();if(i||a!==s){if(""===a){if(rF(null),u||c||h)l.remove();else{let e=nM();setTimeout(()=>{e.update(()=>{l.isAttached()&&l.remove()})},20)}return}let t=l.getParent(),i=ng(),s=l.getTextContentSize(),d=rM(),f=l.getKey();if(l.isToken()||null!==d&&f===d&&!o||t7(i)&&(null!==t&&!t.canInsertTextBefore()&&0===i.anchor.offset||i.anchor.key===e.__key&&0===i.anchor.offset&&!l.canInsertTextBefore()&&!o||i.focus.key===e.__key&&i.focus.offset===s&&!l.canInsertTextAfter()&&!o))return void l.markDirty();let p=nh();if(!t7(p)||null===n||null===r)return void rY(l,a,p);if(p.setTextNodeRange(l,n,l,r),l.isSegmented()){let e=tG(l.getTextContent());l.replace(e),l=e}rY(l,a,p)}}}function rY(e,t,n){if(e.setTextContent(t),t7(n)){let t=e.getKey();for(let r of["anchor","focus"]){let i=n[r];"text"===i.type&&i.key===t&&(i.offset=iZ(e,i.offset,"clamp"))}}}function rX(e,t,n){let r=t[n]||!1;return"any"===r||r===e[n]}function rQ(e,t,n){return rX(e,n,"altKey")&&rX(e,n,"ctrlKey")&&rX(e,n,"shiftKey")&&rX(e,n,"metaKey")&&e.key.toLowerCase()===t.toLowerCase()}let r0={ctrlKey:!o,metaKey:o},r1={altKey:o,ctrlKey:!o};function r2(e){return"Backspace"===e.key}function r5(e){let t=rj();if(t7(e)){let t=e.anchor,n=e.focus,r=t.getNode().getTopLevelElementOrThrow().getParentOrThrow();return t.set(r.getKey(),0,"element"),n.set(r.getKey(),r.getChildrenSize(),"element"),j(e),e}{let e=t.select(0,t.getChildrenSize());return rJ(j(e)),e}}
1function r9(e,t){void 0===e.__lexicalClassNameCache&&(e.__lexicalClassNameCache={});let n=e.__lexicalClassNameCache,r=n[t];if(void 0!==r)return r;let i=e[t];if("string"==typeof i){let e=g(i);return n[t]=e,e}return i}function r3(e,t,n,i,l){if(0===n.size)return;let o=i.__type,a=i.__key,s=t.get(o);void 0===s&&r(33,o);let u=s.klass,c=e.get(u);void 0===c&&(c=new Map,e.set(u,c));let d=c.get(a),f="destroyed"===d&&"created"===l;(void 0===d||f)&&c.set(a,f?"updated":l)}function r8(e,t,n){let r=e.getParent(),i=n,l=e;return null!==r&&(t&&0===n?(i=l.getIndexWithinParent(),l=r):t||n!==l.getChildrenSize()||(i=l.getIndexWithinParent()+1,l=r)),l.getChildAtIndex(t?i-1:i)}function r7(e,t){let n=e.offset;if("element"===e.type)return r8(e.getNode(),t,n);{let r=e.getNode();if(t&&0===n||!t&&n===r.getTextContentSize()){let e=t?r.getPreviousSibling():r.getNextSibling();return null===e?r8(r.getParentOrThrow(),t,r.getIndexWithinParent()+ +!t):e}}return null}function r4(e){let t=ia(e).event,n=t&&t.inputType;return"insertFromPaste"===n||"insertFromPasteAsQuotation"===n}function r6(e,t,n){return function(e,t,n){let r=rK(e);for(let i=4;i>=0;i--)for(let l=0;l<r.length;l++){let o=r[l],a=o._commands.get(t);if(void 0!==a){let t=a[i];if(void 0!==t){let r=Array.from(t),i=r.length,l=!1;if(nK(o,()=>{for(let t=0;t<i;t++)if(r[t](n,e))return void(l=!0)}),l)return l}}}return!1}(e,t,n)}function ie(e){return!n1(e)&&!e.isLastChild()&&!e.isInline()}function it(e,t){let n=e._keyToDOMMap.get(t);return void 0===n&&r(75,t),n}function ir(e){let t=e.assignedSlot||e.parentElement;return ix(t)?t.host:t}function ii(e){return iv(e)&&9===e.nodeType?e:iy(e)?e.ownerDocument:null}function il(e,t){let n=e.getParent();for(;null!==n;){if(n.is(t))return!0;n=n.getParent()}return!1}function io(e){let t=ii(e);return t?t.defaultView:null}function ia(e){let t=e._window;return null===t&&r(78),t}function is(e){return n1(e)||nG(e)&&e.isShadowRoot()}function iu(e){let t=e.constructor.clone(e);return rI(t,null),t.afterCloneFrom(e),t}function ic(e){let t=nM(),n=e.getType(),i=ry(t,n);void 0===i&&r(200,e.constructor.name,n);let{replace:l,replaceWithKlass:o}=i;if(null!==l){let t=l(e),i=t.constructor;return null!==o?t instanceof o||r(201,o.name,o.getType(),i.name,i.getType(),e.constructor.name,n):t instanceof e.constructor&&i!==e.constructor||r(202,i.name,i.getType(),e.constructor.name,n),t.__key===e.__key&&r(203,e.constructor.name,n,i.name,i.getType()),t}return e}function id(e,t){!n1(e.getParent())||nG(t)||nQ(t)||r(99)}function ip(e){return(nQ(e)||nG(e)&&!e.canBeEmpty())&&!e.isInline()}function ih(e,t,n){n.style.removeProperty("caret-color"),t._blockCursorElement=null;let r=e.parentElement;null!==r&&r.removeChild(e)}function ig(e){return i?(e||window).getSelection():null}function im(e){return iy(e)&&"A"===e.tagName}function iy(e){return iv(e)&&1===e.nodeType}function iv(e){return"object"==typeof e&&null!==e&&"nodeType"in e&&"number"==typeof e.nodeType}function ix(e){return iv(e)&&11===e.nodeType}function ib(e){let t=RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return null!==e.nodeName.match(t)}function i_(e){let t=RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return null!==e.nodeName.match(t)}function iC(e){if(nQ(e)&&!e.isInline())return!0;if(!nG(e)||is(e))return!1;let t=e.getFirstChild(),n=null===t||tM(t)||tY(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&n}function iw(e,t){let n=e;for(;null!==n&&null!==n.getParent()&&!t(n);)n=n.getParentOrThrow();return t(n)?n:null}function ik(){return nM()}let iE=new WeakMap,iS=new Map;function iT(e){if(!e._readOnly&&e.isEmpty())return iS;e._readOnly||r(192);let t=iE.get(e);return t||(t=function(e){let t=new Map;for(let[n,r]of e._nodeMap){let e=r.__type,i=t.get(e);i||(i=new Map,t.set(e,i)),i.set(n,r)}return t}(e),iE.set(e,t)),t}function iA(e){let t=e.constructor.clone(e);return t.afterCloneFrom(e),t}function iN(e,t){let n=Math.round((parseInt(e.style.paddingInlineStart,10)||0)/40);t.setIndent(n)}function iI(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&e[t]!==tI[t]}function iL(e){let t=k in e.prototype?e.prototype[k]():void 0,n=e===nX||e===nq||e===tI,r=!n&&iI(e,"getType")?e.getType():void 0,i,l=r;if(t)if(r)i=t[r];else for(let[e,n]of Object.entries(t))l=e,i=n;if(!n&&l&&(iI(e,"getType")||(e.getType=()=>l),iI(e,"clone")||(e.clone=t=>(rh=t,new e)),iI(e,"importJSON")||(e.importJSON=i&&i.$importJSON||(t=>(new e).updateFromJSON(t))),!iI(e,"importDOM")&&i)){let{importDOM:t}=i;t&&(e.importDOM=()=>t)}return{ownNodeConfig:i,ownNodeType:l}}function iP(e){let t=ik();return nL(),new(t.resolveRegisteredNodeAfterReplacements(t.getRegisteredNode(e))).klass}let iF={next:"previous",previous:"next"};class iM{constructor(e){this.origin=e}[Symbol.iterator](){return i2({hasNext:ij,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return iK(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return iK(this.origin,this.direction)}remove(){let e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,t){let n=this.getNodeAtCaret();return e.is(this.origin)||e.is(n)||(null===n?this.insert(e):n.replace(e,t)),this}splice(e,t,n="next"){let i=n===this.direction?t:Array.from(t).reverse(),l=this,o=this.getParentAtCaret(),a=new Map;for(let t=l.getAdjacentCaret();null!==t&&a.size<e;t=t.getAdjacentCaret()){let e=t.origin.getWritable();a.set(e.getKey(),e)}for(let e of i){if(a.size>0){let t=l.getNodeAtCaret();if(t)if(a.delete(t.getKey()),a.delete(e.getKey()),t.is(e)||l.origin.is(e));else{let n=e.getParent();n&&n.is(o)&&e.remove(),t.replace(e)}else null===t&&r(263,Array.from(a).join(" "))}else l.insert(e);l=iK(e,this.direction)}for(let e of a.values())e.remove();return this}}class iO extends iM{type="child";getLatest(){let e=this.origin.getLatest();return e===this.origin?this:iq(e,this.direction)}getParentCaret(e="root"){return iK(iD(this.getParentAtCaret(),e),this.direction)}getFlipped(){let e=iF[this.direction];return iK(this.getNodeAtCaret(),e)||iq(this.origin,e)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(e){return e instanceof iO&&this.direction===e.direction&&this.origin.is(e.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}}let iR={root:n1,shadowRoot:is};function iD(e,t="root"){return iR[t](e)?null:e}class iV extends iM{type="sibling";getLatest(){let e=this.origin.getLatest();return e===this.origin?this:iK(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return nG(this.origin)?iq(this.origin,this.direction):null}getParentCaret(e="root"){return iK(iD(this.getParentAtCaret(),e),this.direction)}getFlipped(){let e=iF[this.direction];return iK(this.getNodeAtCaret(),e)||iq(this.origin.getParentOrThrow(),e)}isSamePointCaret(e){return e instanceof iV&&this.direction===e.direction&&this.origin.is(e.origin)}isSameNodeCaret(e){return(e instanceof iV||e instanceof iH)&&this.direction===e.direction&&this.origin.is(e.origin)}}class iH extends iM{type="text";constructor(e,t){super(e),this.offset=t}getLatest(){let e=this.origin.getLatest();return e===this.origin?this:i$(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e="root"){return iK(iD(this.getParentAtCaret(),e),this.direction)}getFlipped(){return i$(this.origin,iF[this.direction],this.offset)}isSamePointCaret(e){return e instanceof iH&&this.direction===e.direction&&this.origin.is(e.origin)&&this.offset===e.offset}isSameNodeCaret(e){return(e instanceof iV||e instanceof iH)&&this.direction===e.direction&&this.origin.is(e.origin)}getSiblingCaret(){return iK(this.origin,this.direction)}}function iB(e){return e instanceof iH}function ij(e){return e instanceof iV}function iz(e){return e instanceof iO}let iJ={next:class extends iH{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends iH{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},iU={next:class extends iV{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends iV{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},iW={next:class extends iO{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends iO{direction="previous";getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function iK(e,t){return e?new iU[t](e):null}function i$(e,t,n){return e?new iJ[t](e,iZ(e,n)):null}function iZ(e,t,n="error"){let r=e.getTextContentSize(),i="next"===t?r:"previous"===t?0:t;return(i<0||i>r)&&("clamp"!==n&&function(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let e of(r.append("code",284),t))r.append("v",e);n.search=r.toString(),console.warn(`Minified Lexical warning #${284}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}
1(284,String(t),String(r),e.getKey()),i=i<0?0:r),i}function iq(e,t){return nG(e)?new iW[t](e):null}function iG(e){var t;return e&&((t=e.getAdjacentCaret())&&t.getChildCaret()||t)}class iY{type="node-caret-range";constructor(e,t,n){this.anchor=e,this.focus=t,this.direction=n}getLatest(){let e=this.anchor.getLatest(),t=this.focus.getLatest();return e===this.anchor&&t===this.focus?this:new iY(e,t,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){let e=e=>{let t=this[e].getLatest();return iB(t)?function(e,t){let{direction:n,origin:r}=e;return new iX(e,iZ(r,"focus"===t?iF[n]:n)-e.offset)}(t,e):null},t=e("anchor"),n=e("focus");if(t&&n){let{caret:e}=t,{caret:r}=n;if(e.isSameNodeCaret(r))return[new iX(e,r.offset-e.offset),null]}return[t,n]}iterNodeCarets(e="root"){let t=iB(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),n=this.focus.getLatest(),r=iB(n),i=t=>t.isSameNodeCaret(n)?null:iG(t)||t.getParentCaret(e);return i2({hasNext:e=>null!==e&&!(r&&n.isSameNodeCaret(e)),initial:t.isSameNodeCaret(n)?null:i(t),map:e=>e,step:i})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class iX{type="slice";constructor(e,t){this.caret=e,this.distance=t}getSliceIndices(){let{distance:e,caret:{offset:t}}=this,n=t+e;return n<t?[n,t]:[t,n]}getTextContent(){let[e,t]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,t)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){let{caret:{origin:e,direction:t}}=this,[n,r]=this.getSliceIndices(),i=e.getTextContent();return i$(e.setTextContent(i.slice(0,n)+i.slice(r)),t,n)}}function iQ(e){return i1(e,iK(rj(),e.direction))}function i0(e){return i1(e,e)}function i1(e,t){return e.direction!==t.direction&&r(265),new iY(e,t,e.direction)}function i2(e){let{initial:t,hasNext:n,step:r,map:i}=e,l=t;return{[Symbol.iterator](){return this},next(){if(!n(l))return{done:!0,value:void 0};let e={done:!1,value:i(l)};return l=r(l),e}}}function i5(e,t){let n=i8(e.origin,t.origin);switch(null===n&&r(275,e.origin.getKey(),t.origin.getKey()),n.type){case"same":{let n="text"===e.type,r="text"===t.type;return n&&r?Math.sign(e.offset-t.offset):e.type===t.type?0:n?-1:r?1:"child"===e.type?-1:1}case"ancestor":return"child"===e.type?-1:1;case"descendant":return"child"===t.type?1:-1;case"branch":return i9(n)}}function i9(e){let{a:t,b:n}=e,r=t.__key,i=n.__key,l=t,o=n;for(;l&&o;l=l.getNextSibling(),o=o.getNextSibling()){if(l.__key===i)return -1;if(o.__key===r)return 1}return null===l?1:-1}function i3(e){return nG(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function i8(e,t){if(e.is(t))return{commonAncestor:e,type:"same"};let n=new Map;for(let[t,r]=i3(e);t;r=t,t=t.getParent())n.set(t,r);for(let[i,l]=i3(t);i;l=i,i=i.getParent()){let o=n.get(i);if(void 0!==o)return null===o?(i.is(e)||r(276),{commonAncestor:i,type:"ancestor"}):null===l?(i.is(t)||r(277),{commonAncestor:i,type:"descendant"}):((nG(o)||o.is(e))&&(nG(l)||l.is(t))&&i.is(o.getParent())&&i.is(l.getParent())||r(278),{a:o,b:l,commonAncestor:i,type:"branch"})}return null}function i7(e,t){let{type:n,key:i,offset:l}=e,o=function(e){let t=rO(e);return null===t&&r(63,e),t}(e.key);return"text"===n?(tY(o)||r(266,o.getType(),i),i$(o,t,l)):(nG(o)||r(267,o.getType(),i),function(e,t,n){let r=iq(e,"next");for(let e=0;e<t;e++){let e=r.getAdjacentCaret();if(null===e)break;r=e}return la(r,n)}(o,e.offset,t))}function i4(e,t){let{origin:n,direction:i}=t,l="next"===i;iB(t)?e.set(n.getKey(),t.offset,"text"):ij(t)?tY(n)?e.set(n.getKey(),iZ(n,i),"text"):e.set(n.getParentOrThrow().getKey(),n.getIndexWithinParent()+ +!!l,"element"):(iz(t)&&nG(n)||r(268),e.set(n.getKey(),l?0:n.getChildrenSize(),"element"))}function i6(e){let t=nh(),n=t7(t)?t:nd();return le(n,e),rJ(n),n}function le(e,t){i4(e.anchor,t.anchor),i4(e.focus,t.focus)}function lt(e){let{anchor:t,focus:n}=e,r=i7(t,"next"),i=i7(n,"next"),l=0>=i5(r,i)?"next":"previous";return i1(la(r,l),la(i,l))}function ln(e){let{direction:t,origin:n}=e,r=iK(n,iF[t]).getNodeAtCaret();return r?iK(r,t):iq(n.getParentOrThrow(),t)}function lr(e,t="root"){let n=[e];for(let r=iz(e)?e.getParentCaret(t):e.getSiblingCaret();null!==r;
1r=r.getParentCaret(t))n.push(ln(r));return n}function li(e){return!!e&&e.origin.isAttached()}function ll(e){let t=function(e){let t=e;for(;iz(t);){let e=iG(t);if(!iz(e))break;t=e}return t}(e.getLatest()),{direction:n}=t;if(tY(t.origin))return iB(t)?t:i$(t.origin,n,n);let r=t.getAdjacentCaret();return ij(r)&&tY(r.origin)?i$(r.origin,n,iF[n]):t}function lo(e){return iB(e)&&e.offset!==iZ(e.origin,e.direction)}function la(e,t){return e.direction===t?e:e.getFlipped()}function ls(e,t){return e.direction===t?e:i1(la(e.focus,t),la(e.anchor,t))}function lu(e){let{origin:t,offset:n,direction:i}=e;if(n===iZ(t,i))return e.getSiblingCaret();if(n===iZ(t,iF[i]))return ln(e.getSiblingCaret());let[l]=t.splitText(n);return tY(l)||r(281),la(iK(l,"next"),i)}function lc(e,t){return!0}function ld(e,{$copyElementNode:t=iu,$splitTextPointCaretNext:n=lu,rootMode:r="shadowRoot",$shouldSplit:i=lc}={}){if(iB(e))return n(e);let l=e.getParentCaret(r);if(l){let{origin:n}=l;if(iz(e)&&(!n.canBeEmpty()||!i(n,"first")))return ln(l);let r=function(e){let t=[];for(let n=e.getAdjacentCaret();n;n=n.getAdjacentCaret())t.push(n.origin);return t}(e);(r.length>0||n.canBeEmpty()&&i(n,"last"))&&l.insert(t(n).splice(0,0,r))}return l}},58530:(e,t,n)=>{"use strict";n.d(t,{p:()=>c});var r=n(48387),i=n(19735),l=n(25118),o=n(69662),a=n(43113),s=n(69194);let u=({format:e,addTitle:t,removeTitle:n,icon:o,formatName:s})=>{let[u,c]=(0,i.uX)(r.PI,r.yr),d=(0,i.qM)(r.C_),f=(u&e)!=0;return l.createElement(a.hf,{title:f?n:t,on:f,onValueChange:()=>{d(s)}},c(o))},c=({options:e})=>{let t=(0,r.Bd)(),n=void 0===e;return l.createElement("div",{className:s.Ay.toolbarGroupOfGroups},n||e.includes("Bold")?l.createElement(u,{format:o.FA,addTitle:t("toolbar.bold","Bold"),removeTitle:t("toolbar.removeBold","Remove bold"),icon:"format_bold",formatName:"bold"}):null,n||e.includes("Italic")?l.createElement(u,{format:o.S3,addTitle:t("toolbar.italic","Italic"),removeTitle:t("toolbar.removeItalic","Remove italic"),icon:"format_italic",formatName:"italic"}):null,n||e.includes("Underline")?l.createElement(u,{format:o.Ig,addTitle:t("toolbar.underline","Underline"),removeTitle:t("toolbar.removeUnderline","Remove underline"),icon:"format_underlined",formatName:"underline"}):null)}},59439:(e,t,n)=>{"use strict";n.d(t,{s:()=>o,t:()=>l});var r=n(25118);function i(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function l(...e){return t=>{let n=!1,r=e.map(e=>{let r=i(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():i(e[t],null)}}}}function o(...e){return r.useCallback(l(...e),e)}},60194:(e,t,n)=>{"use strict";function r(e,t){return t(e),e}function i(){}n.d(t,{Mi:()=>r,lQ:()=>i})},60957:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},o=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),l=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!l)return!1;for(r in e);return void 0===r||t.call(e,r)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;else if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,u,c,d=arguments[0],f=1,p=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<p;++f)if(t=arguments[f],null!=t)for(n in t)r=s(d,n),d!==(i=s(t,n))&&(h&&i&&(o(i)||(u=l(i)))?(u?(u=!1,c=r&&l(r)?r:[]):c=r&&o(r)?r:{},a(d,{name:n,newValue:e(h,c,i)})):void 0!==i&&a(d,{name:n,newValue:i}));return d}},62405:(e,t,n)=>{"use strict";n.d(t,{F7:()=>d});var r=n(39303),i=n(19735),l=n(25118),o=n(48387),a=n(43113);let s=(0,i.fh)(()=>null),u=(0,i.fh)(""),c=()=>"This is an empty toolbar. Pass `{toolbarContents: () => { return <>toolbar components</> }}` to the toolbarPlugin to customize it.",d=(0,r.Z)({init(e,t){let n=(null==t?void 0:t.toolbarPosition)==="bottom"?o.O2:o.IZ;e.pubIn({[s]:(null==t?void 0:t.toolbarContents)??c,[u]:(null==t?void 0:t.toolbarClassName)??"",[n]:()=>{let[e,t,n]=(0,i.uX)(s,o.pc,u);return l.createElement(a.bL,{className:n,readOnly:t},e())}})},update(e,t){e.pub(s,(null==t?void 0:t.toolbarContents)??c),e.pub(u,(null==t?void 0:t.toolbarClassName)??"")}})}
1,64204:(e,t,n)=>{"use strict";n.d(t,{oz:()=>e7,a:()=>e4,cj:()=>e6,Lv:()=>tr});var r={};n.r(r),n.d(r,{boolean:()=>p,booleanish:()=>h,commaOrSpaceSeparated:()=>x,commaSeparated:()=>v,number:()=>m,overloadedBoolean:()=>g,spaceSeparated:()=>y});var i=n(99149),l=n(36389);let o=/[ \t\n\f\r]/g;function a(e){return""===e.replace(o,"")}class s{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function u(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new s(n,r,t)}function c(e){return e.toLowerCase()}s.prototype.normal={},s.prototype.property={},s.prototype.space=void 0;class d{constructor(e,t){this.attribute=t,this.property=e}}d.prototype.attribute="",d.prototype.booleanish=!1,d.prototype.boolean=!1,d.prototype.commaOrSpaceSeparated=!1,d.prototype.commaSeparated=!1,d.prototype.defined=!1,d.prototype.mustUseProperty=!1,d.prototype.number=!1,d.prototype.overloadedBoolean=!1,d.prototype.property="",d.prototype.spaceSeparated=!1,d.prototype.space=void 0;let f=0,p=b(),h=b(),g=b(),m=b(),y=b(),v=b(),x=b();function b(){return 2**++f}let _=Object.keys(r);class C extends d{constructor(e,t,n,i){let l=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",i),"number"==typeof n)for(;++l<_.length;){let e=_[l];!function(e,t,n){n&&(e[t]=n)}(this,_[l],(n&r[e])===r[e])}}}function w(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let l=new C(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[c(r)]=r,n[c(l.attribute)]=r}return new s(t,n,e.space)}C.prototype.defined=!0;let k=w({properties:{ariaActiveDescendant:null,ariaAtomic:h,ariaAutoComplete:null,ariaBusy:h,ariaChecked:h,ariaColCount:m,ariaColIndex:m,ariaColSpan:m,ariaControls:y,ariaCurrent:null,ariaDescribedBy:y,ariaDetails:null,ariaDisabled:h,ariaDropEffect:y,ariaErrorMessage:null,ariaExpanded:h,ariaFlowTo:y,ariaGrabbed:h,ariaHasPopup:null,ariaHidden:h,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:y,ariaLevel:m,ariaLive:null,ariaModal:h,ariaMultiLine:h,ariaMultiSelectable:h,ariaOrientation:null,ariaOwns:y,ariaPlaceholder:null,ariaPosInSet:m,ariaPressed:h,ariaReadOnly:h,ariaRelevant:null,ariaRequired:h,ariaRoleDescription:y,ariaRowCount:m,ariaRowIndex:m,ariaRowSpan:m,ariaSelected:h,ariaSetSize:m,ariaSort:null,ariaValueMax:m,ariaValueMin:m,ariaValueNow:m,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function E(e,t){return t in e?e[t]:t}function S(e,t){return E(e,t.toLowerCase())}let T=w({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:v,acceptCharset:y,accessKey:y,action:null,allow:null,allowFullScreen:p,allowPaymentRequest:p,allowUserMedia:p,alt:null,as:null,async:p,autoCapitalize:null,autoComplete:y,autoFocus:p,autoPlay:p,blocking:y,capture:null,charSet:null,checked:p,cite:null,className:y,cols:m,colSpan:null,content:null,contentEditable:h,controls:p,controlsList:y,coords:m|v,crossOrigin:null,data:null,dateTime:null,decoding:null,default:p,defer:p,dir:null,dirName:null,disabled:p,download:g,draggable:h,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:p,formTarget:null,headers:y,height:m,hidden:g,high:m,href:null,hrefLang:null,htmlFor:y,httpEquiv:y,id:null,imageSizes:null,imageSrcSet:null,inert:p,inputMode:null,integrity:null,is:null,isMap:p,itemId:null,itemProp:y,itemRef:y,itemScope:p,itemType:y,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:p,low:m,manifest:null,max:null,maxLength:m,media:null,method:null,min:null,minLength:m,multiple:p,muted:p,name:null,nonce:null,noModule:p,noValidate:p,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:p,optimum:m,pattern:null,ping:y,placeholder:null,playsInl
1ine:p,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:p,referrerPolicy:null,rel:y,required:p,reversed:p,rows:m,rowSpan:m,sandbox:y,scope:null,scoped:p,seamless:p,selected:p,shadowRootClonable:p,shadowRootDelegatesFocus:p,shadowRootMode:null,shape:null,size:m,sizes:null,slot:null,span:m,spellCheck:h,src:null,srcDoc:null,srcLang:null,srcSet:null,start:m,step:null,style:null,tabIndex:m,target:null,title:null,translate:null,type:null,typeMustMatch:p,useMap:null,value:h,width:m,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:y,axis:null,background:null,bgColor:null,border:m,borderColor:null,bottomMargin:m,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:p,declare:p,event:null,face:null,frame:null,frameBorder:null,hSpace:m,leftMargin:m,link:null,longDesc:null,lowSrc:null,marginHeight:m,marginWidth:m,noResize:p,noHref:p,noShade:p,noWrap:p,object:null,profile:null,prompt:null,rev:null,rightMargin:m,rules:null,scheme:null,scrolling:h,standby:null,summary:null,text:null,topMargin:m,valueType:null,version:null,vAlign:null,vLink:null,vSpace:m,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:p,disableRemotePlayback:p,prefix:null,property:null,results:m,security:null,unselectable:null},space:"html",transform:S}),A=w({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav
1-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:x,accentHeight:m,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:m,amplitude:m,arabicForm:null,ascent:m,attributeName:null,attributeType:null,azimuth:m,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:m,by:null,calcMode:null,capHeight:m,className:y,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:m,diffuseConstant:m,direction:null,display:null,dur:null,divisor:m,dominantBaseline:null,download:p,dx:null,dy:null,edgeMode:null,editable:null,elevation:m,enableBackground:null,end:null,event:null,exponent:m,externalResourcesRequired:null,fill:null,fillOpacity:m,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:v,g2:v,glyphName:v,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:m,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:m,horizOriginX:m,horizOriginY:m,id:null,ideographic:m,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:m,k:m,k1:m,k2:m,k3:m,k4:m,kernelMatrix:x,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:m,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:m,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
1Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:m,overlineThickness:m,paintOrder:null,panose1:null,path:null,pathLength:m,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:y,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:m,pointsAtY:m,pointsAtZ:m,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:x,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:x,rev:x,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:x,requiredFeatures:x,requiredFonts:x,requiredFormats:x,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:m,specularExponent:m,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:m,strikethroughThickness:m,string:null,stroke:null,strokeDashArray:x,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:m,strokeOpacity:m,strokeWidth:null,style:null,surfaceScale:m,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:x,tabIndex:m,tableValues:null,target:null,targetX:m,targetY:m,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:x,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:m,underlineThickness:m,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:m,values:null,vAlphabetic:m,vMathematical:m,vectorEffect:null,vHanging:m,vIdeographic:m,version:null,vertAdvY:m,vertOriginX:m,vertOriginY:m,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:m,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:E}),N=w({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),I=w({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:S}),L=w({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),P=u([k,T,N,I,L],"html"),F=u([k,A,N,I,L],"svg"),M=/[A-Z]/g,O=/-[a-z]/g,R=/^data[-\w.:]+$/i;function D(e){return"-"+e.toLowerCase()}function V(e){return e.charAt(1).toUpperCase()}let H={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var B=n(95130);let j=J("end"),z=J("start");function J(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}var U=n(33543);let W={}.hasOwnProperty,K=new Map,$=/[A-Z]/g,Z=new Set(["table","tbody","thead","tfoot","tr"]),q=new Set(["td","th"]),G="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Y(e,t,n){return"element"===t.type?function(e,t,n){let r=e.schema;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(e.schema=F),e.ancestors.push(t);let i=et(e,t.tagName,!1),l=function(e,t){let n,r,i={};for(r in t.properties)if("children"!==r&&W.call(t.properties,r)){let l=function(e,t,n){let r=function(e,t){let n=c(t),r=t,i=d;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&R.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(O,V);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!O.test(e)){let n=e.replace(M,D);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=C}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e,t){let n={};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return B(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new U.o("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});
1throw t.file=e.filePath||void 0,t.url=G+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t,n={};for(t in e)W.call(e,t)&&(n[function(e){let t=e.replace($,er);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?H[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(l){let[r,o]=l;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof o&&q.has(t.tagName)?n=o:i[r]=o}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(e,t),o=ee(e,t);return Z.has(t.tagName)&&(o=o.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&a(e.value):a(e))})),X(e,l,i,t),Q(l,o),e.ancestors.pop(),e.schema=r,e.create(t,i,l,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return(0,i.ok)("ExpressionStatement"===n.type),e.evaluater.evaluateExpression(n.expression)}en(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){let r=e.schema;"svg"===t.name&&"html"===r.space&&(e.schema=F),e.ancestors.push(t);let l=null===t.name?e.Fragment:et(e,t.name,!0),o=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type)if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];(0,i.ok)("ExpressionStatement"===t.type);let l=t.expression;(0,i.ok)("ObjectExpression"===l.type);let o=l.properties[0];(0,i.ok)("SpreadElement"===o.type),Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else en(e,t.position);else{let l,o=r.name;if(r.value&&"object"==typeof r.value)if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];(0,i.ok)("ExpressionStatement"===t.type),l=e.evaluater.evaluateExpression(t.expression)}else en(e,t.position);else l=null===r.value||r.value;n[o]=l}return n}(e,t),a=ee(e,t);return X(e,o,l,t),Q(o,a),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);en(e,t.position)}(e,t):"root"===t.type?function(e,t,n){let r={};return Q(r,ee(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?t.value:void 0}function X(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Q(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function ee(e,t){let n=[],r=-1,i=e.passKeys?new Map:K;for(;++r<t.children.length;){let l,o=t.children[r];if(e.passKeys){let e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){let t=i.get(e)||0;l=e+"-"+t,i.set(e,t+1)}}let a=Y(e,o,l);void 0!==a&&n.push(a)}return n}function et(e,t,n){let r;if(n)if(t.includes(".")){let e,n=t.split("."),o=-1;for(;++o<n.length;){let t=(0,l.UU)(n[o])?{type:"Identifier",name:n[o]}:{type:"Literal",value:n[o]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(o&&"Literal"===t.type),optional:!1}:t}(0,i.ok)(e,"always a result"),r=e}else r=(0,l.UU)(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return W.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);en(e)}function en(e,t){let n=new U.o("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=G+"#cannot-handle-mdx-estrees-without-createevaluater",n}function er(e){return"-"+e.toLowerCase()}let ei={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var el=n(32846),eo=n(25118),ea=n(35932);function es(e){let t=this;t.parser=function(n){return(0,ea.Y)(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}let eu="object"==typeof self?self:globalThis,ec=e=>((e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[l,o]=t[i];switch(l){case 0:case -1:return n(o,i);case 1:{let e=n([],i);
1for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(new eu[e](t),i)}case 8:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new eu[l](o),i)};return r})(new Map,e)(0),{toString:ed}={},{keys:ef}=Object,ep=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=ed.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},eh=([e,t])=>0===e&&("function"===t||"symbol"===t),eg=(e,{json:t,lossy:n}={})=>{let r=[];return((e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},l=r=>{if(n.has(r))return n.get(r);let[o,a]=ep(r);switch(o){case 0:{let t=r;switch(a){case"bigint":o=8,t=r.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+a);t=null;break;case"undefined":return i([-1],r)}return i([o,t],r)}case 1:{if(a){let e=r;return"DataView"===a?e=new Uint8Array(r.buffer):"ArrayBuffer"===a&&(e=new Uint8Array(r)),i([a,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(l(t));return t}case 2:{if(a)switch(a){case"BigInt":return i([a,r.toString()],r);case"Boolean":case"Number":case"String":return i([a,r.valueOf()],r)}if(t&&"toJSON"in r)return l(r.toJSON());let n=[],s=i([o,n],r);for(let t of ef(r))(e||!eh(ep(r[t])))&&n.push([l(t),l(r[t])]);return s}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);
1for(let[n,i]of r)(e||!(eh(ep(n))||eh(ep(i))))&&t.push([l(n),l(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!eh(ep(n)))&&t.push(l(n));return n}}let{message:s}=r;return i([o,{name:a,message:s}],r)};return l})(!(t||n),!!t,new Map,r)(e),r},em="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?ec(eg(e,t)):structuredClone(e):(e,t)=>ec(eg(e,t));var ey=n(4686);function ev(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let l=e.charCodeAt(n),o="";if(37===l&&(0,ey.lV)(e.charCodeAt(n+1))&&(0,ey.lV)(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){let t=e.charCodeAt(n+1);l<56320&&t>56319&&t<57344?(o=String.fromCharCode(l,t),i=1):o="�"}else o=String.fromCharCode(l);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function ex(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function eb(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}var e_=n(94852);function eC(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),l=i[0];l&&"text"===l.type?l.value="["+l.value:i.unshift({type:"text",value:"["});let o=i[i.length-1];return o&&"text"===o.type?o.value+=r:i.push({type:"text",value:r}),i}function ew(e){let t=e.spread;return null==t?e.children.length>1:t}function ek(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let eE={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l={type:"element",tagName:"pre",properties:{},children:[l=e.applyData(t,l)]},e.patch(t,l),l},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n,r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),l=ev(i.toLowerCase()),o=e.footnoteOrder.indexOf(i),a=e.footnoteCounts.get(i);void 0===a?(a=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=o+1,a+=1,e.footnoteCounts.set(i,a);let s={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+l,id:r+"fnref-"+l+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,s);let u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return eC(e,t);let i={src:ev(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,l),e.applyData(t,l)},image:function(e,t){let n={src:ev(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return eC(e,t);let i={href:ev(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let l={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)},link:function(e,t){let n={href:ev(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=ew(n[r])}return t}(n):ew(t),l={},o=[];if("boolean"==typeof t.checked){let e,n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let a=-1;for(;++a<r.length;){let e=r[a];(i||0!==a||"element"!==e.type||"p"!==e.tagName)&&o.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?o.push(e):o.push(...e.children)}let s=r[r.length-1];s&&(i||"element"!==s.type||"p"!==s.tagName)&&o.push({type:"text",value:"\n"});let u={type:"element",tagName:"li",properties:l,children:o};
1return e.patch(t,u),e.applyData(t,u)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,l),e.applyData(t,l)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=z(t.children[1]),o=j(t.children[t.children.length-1]);l&&o&&(r.position={start:l,end:o}),i.push(r)}let l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",l=n&&"table"===n.type?n.align:void 0,o=l?l.length:t.children.length,a=-1,s=[];for(;++a<o;){let n=t.children[a],r={},o=l?l[a]:void 0;o&&(r.align=o);let u={type:"element",tagName:i,properties:r,children:[]};n&&(u.children=e.all(n),e.patch(n,u),u=e.applyData(n,u)),s.push(u)}let u={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,u),e.applyData(t,u)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,l=[];for(;r;)l.push(ek(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(ek(t.slice(i),i>0,!1)),l.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:eS,yaml:eS,definition:eS,footnoteDefinition:eS};function eS(){}let eT={}.hasOwnProperty,eA={};function eN(e,t){e.position&&(t.position=function(e){let t=z(e),n=j(e);if(t&&n)return{start:t,end:n}}(e))}function eI(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,em(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function eL(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function eP(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function eF(e,t){let n=function(e,t){let n=t||eA,r=new Map,i=new Map,l={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=l.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=eP(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=eP(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:eI,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...eE,...n.handlers},one:function(e,t){let n=e.type,r=l.handlers[n];if(eT.call(l.handlers,n)&&r)return r(l,e,t);if(l.options.passThrough&&l.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=em(n);return r.children=l.all(e),r}return em(e)}return(l.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(eT.call(n,"hProperties")||eT.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(l,e,t)},options:n,patch:eN,wrap:eL};return(0,e_.YR)(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),l}(e,t),r=n.one(e,void 0),l=function(e){let t="string"==typeof e.o
1ptions.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||ex,r=e.options.footnoteBackLabel||eb,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[],s=-1;for(;++s<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[s]);if(!i)continue;let l=e.all(i),o=String(i.identifier).toUpperCase(),u=ev(o.toLowerCase()),c=0,d=[],f=e.footnoteCounts.get(o);for(;void 0!==f&&++c<=f;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,c);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(c>1?"-"+c:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(s,c),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let p=l[l.length-1];if(p&&"element"===p.type&&"p"===p.tagName){let e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else l.push(...d);let h={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(l,!0)};e.patch(i,h),a.push(h)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...em(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)}
1,{type:"text",value:"\n"}]}}(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return l&&((0,i.ok)("children"in o),o.children.push({type:"text",value:"\n"},l)),o}function eM(e,t){return e&&"run"in e?async function(n,r){let i=eF(n,{file:r,...t});await e.run(i,r)}:function(n,r){return eF(n,{file:r,...e||t})}}function eO(e){if(e)throw e}var eR=n(60957);function eD(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let eV={basename:function(e,t){let n;if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');eH(e);let r=0,i=-1,l=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;l--;)if(47===e.codePointAt(l)){if(n){r=l+1;break}}else i<0&&(n=!0,i=l+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let o=-1,a=t.length-1;for(;l--;)if(47===e.codePointAt(l)){if(n){r=l+1;break}}else o<0&&(n=!0,o=l+1),a>-1&&(e.codePointAt(l)===t.codePointAt(a--)?a<0&&(i=l):(a=-1,i=o));return r===i?i=o:i<0&&(i=e.length),e.slice(r,i)},dirname:function(e){let t;if(eH(e),0===e.length)return".";let n=-1,r=e.length;for(;--r;)if(47===e.codePointAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.codePointAt(0)?"/":".":1===n&&47===e.codePointAt(0)?"//":e.slice(0,n)},extname:function(e){let t;eH(e);let n=e.length,r=-1,i=0,l=-1,o=0;for(;n--;){let a=e.codePointAt(n);if(47===a){if(t){i=n+1;break}continue}r<0&&(t=!0,r=n+1),46===a?l<0?l=n:1!==o&&(o=1):l>-1&&(o=-1)}return l<0||r<0||0===o||1===o&&l===r-1&&l===i+1?"":e.slice(l,r)},join:function(...e){let t,n=-1;for(;++n<e.length;)eH(e[n]),e[n]&&(t=void 0===t?e[n]:t+"/"+e[n]);return void 0===t?".":function(e){eH(e);let t=47===e.codePointAt(0),n=function(e,t){let n,r,i="",l=0,o=-1,a=0,s=-1;for(;++s<=e.length;){if(s<e.length)n=e.codePointAt(s);else if(47===n)break;else n=47;if(47===n){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(i.length<2||2!==l||46!==i.codePointAt(i.length-1)||46!==i.codePointAt(i.length-2)){if(i.length>2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",l=0):l=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),o=s,a=0;continue}}else if(i.length>0){i="",l=0,o=s,a=0;continue}}t&&(i=i.length>0?i+"/..":"..",l=2)}else i.length>0?i+="/"+e.slice(o+1,s):i=e.slice(o+1,s),l=s-o-1;o=s,a=0}else 46===n&&a>-1?a++:a=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(t)},sep:"/"};function eH(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let eB={cwd:function(){return"/"}};function ej(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let ez=["history","path","basename","stem","extname","dirname"];class eJ{constructor(e){let t,n;t=e?ej(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":eB.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<ez.length;){let e=ez[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)ez.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?eV.basename(this.path):void 0}set basename(e){eW(e,"basename"),eU(e,"basename"),this.path=eV.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?eV.dirname(this.path):void 0}set dirname(e){eK(this.basename,"dirname"),this.path=eV.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?eV.extname(this.path):void 0}set extname(e){if(eU(e,"extname"),eK(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=eV.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){ej(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!ej(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),eW(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?eV.basename(this.path,this.extname):void 0}set stem(e){eW(e,"stem"),eU(e,"stem"),this.path=eV.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new U.o(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function eU(e,t){if(e&&e.includes(eV.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+eV.sep+"`")}function eW(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function eK(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let e$=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},eZ={}.hasOwnProperty;class eq extends e${constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);!function i(l,...o){let a=e[++n],s=-1;if(l)return void r(l);for(;++s<t.length;)(null===o[s]||void 0===o[s])&&(o[s]=t[s]);t=o,a?(function(e,t){let n;return function(...t){let l,o=e.length>t.length;o&&t.push(r);try{l=e.apply(this,t)}catch(e){if(o&&n)throw e;return r(e)}o||(l&&l.then&&"function"==typeof l.then?l.then(i,r):l instanceof Error?r(l):i(l))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(a,i)(...o):r(null,...o)}(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new eq,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data(eR(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(eQ("data",this.frozen),this.namespace[e]=t,this):eZ.call(this.namespace,e)&&this.namespace[e]||void 0:e?(eQ("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=1/0,this}parse(e){this.freeze();let t=e2(e),n=this.parser||this.Parser;return eY("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),eY("process",this.parser||this.Parser),eX("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,l){let o=e2(e),a=n.parse(o);function s(e,n){e||!n?l(e):r?r(n):((0,i.ok)(t,"`done` is defined if `resolve` is not"),t(void 0,n))}n.run(a,o,function(e,t,r){var i,l;if(e||!t||!r)return s(e);let o=n.stringify(t,r);"string"==typeof(i=o)||(l=i)&&"object"==typeof l&&"byteLength"in l&&"byteOffset"in l?r.value=o:r.result=
1o,s(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),eY("processSync",this.parser||this.Parser),eX("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,eO(e),t=r}),e1("processSync","process",n),(0,i.ok)(t,"we either bailed on an error or have a tree"),t}run(e,t,n){e0(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?l(void 0,n):new Promise(l);function l(l,o){(0,i.ok)("function"!=typeof t,"`file` can’t be a `done` anymore, we checked");let a=e2(t);r.run(e,a,function(t,r,a){let s=r||e;t?o(t):l?l(s):((0,i.ok)(n,"`done` is defined if `resolve` is not"),n(void 0,s,a))})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){eO(e),n=t,r=!0}),e1("runSync","run",r),(0,i.ok)(n,"we either bailed on an error or have a tree"),n}stringify(e,t){this.freeze();let n=e2(t),r=this.compiler||this.Compiler;return eX("stringify",r),e0(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(eQ("use",this.frozen),null==e);else if("function"==typeof e)o(e,t);else if("object"==typeof e)Array.isArray(e)?l(e):i(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");l(e.plugins),e.settings&&(r.settings=eR(!0,r.settings,e.settings))}function l(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;){var n=e[t];if("function"==typeof n)o(n,[]);else if("object"==typeof n)if(Array.isArray(n)){let[e,...t]=n;o(e,t)}else i(n);else throw TypeError("Expected usable value, not `"+n+"`")}else throw TypeError("Expected a list of plugins, not `"+e+"`")}function o(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...l]=t,o=n[i][1];eD(o)&&eD(r)&&(r=eR(!0,o,r)),n[i]=[e,r,...l]}}}}let eG=new eq().freeze();function eY(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function eX(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function eQ(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function e0(e){if(!eD(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function e1(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function e2(e){var t;return(t=e)&&"object"==typeof t&&"message"in t&&"messages"in t?e:new eJ(e)}let e5=[],e9={allowDangerousHtml:!0},e3=/^(https?|ircs?|mailto|xmpp)$/i,e8=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function e7(e){let t=te(e),n=tt(e);return tn(t.runSync(t.parse(n),n),e)}async function e4(e){let t=te(e),n=tt(e);return tn(await t.run(t.parse(n),n),e)}function e6(e){let t=te(e),[n,r]=(0,eo.useState)(void 0),[i,l]=(0,eo.useState)(void 0);if((0,eo.useEffect)(function(){let n=!1,i=tt(e);return t.run(t.parse(i),i,function(e,t){n||(r(e),l(t))}),function(){n=!0}},[e.children,e.rehypePlugins,e.remarkPlugins,e.remarkRehypeOptions]),n)throw n;return i?tn(i,e):e.fallback}function te(e){let t=e.rehypePlugins||e5,n=e.remarkPlugins||e5,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...e9}:e9;return eG().use(es).use(n).use(eM,r).use(t)}function tt(e){let t=e.children||"",n=new eJ;return"string"==typeof t?n.value=t:(0,i.HB)("Unexpected value `"+t+"` for `children` prop, expected `string`"),n}function tn(e,t){let n=t.allowedElements,r=t.allowElement,l=t.components,o=t.disallowedElements,a=t.skipHtml,s=t.unwrapDisallowed,u=t.urlTransform||tr;for(let e of e8)Object.hasOwn(t,e.from)&&(0,i.HB)("Unexpected `"+e.from+"` prop, "+(e.to?"use `"+e.to+"` instead":"remove it")+" (see <https://github.com/remarkjs/react-markdown/blob/main/changelog.md#"+e.id+"> for more info)");return n&&o&&(0,i.HB)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other"),(0,e_.YR)(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return a?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in ei)if(Object.hasOwn(ei,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=ei[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=u(String(n||""),t,e))}}if("element"===e.type){let l=n?!n.includes(e.tagName):!!o&&o.includes(e.tagName);if(!l&&r&&"number"==typeof t&&(l=!r(e,t,i)),l&&i&&"number"==typeof t)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),function(e,t){var n,r,i,l;let o;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let a=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=a,r=t.jsxDEV,o=function(e,t,i,l){let o=Array.isArray(i.children),a=z(e);return r(t,i,l,o,{columnNumber:a?a.column-1:void 0,fileName:n,lineNumber:a?a.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");
1if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");i=t.jsx,l=t.jsxs,o=function(e,t,n,r){let o=Array.isArray(n.children)?l:i;return r?o(t,n,r):o(t,n)}}let s={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:a,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?F:P,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},u=Y(s,e,void 0);return u&&"string"!=typeof u?u:s.create(e,s.Fragment,{children:u||void 0},void 0)}(e,{Fragment:el.Fragment,components:l,ignoreInvalidStyle:!0,jsx:el.jsx,jsxs:el.jsxs,passKeys:!0,passNode:!0})}function tr(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return -1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||e3.test(e.slice(0,t))?e:""}},64621:(e,t,n)=>{"use strict";n.d(t,{I:()=>u});var r=n(46503),i=n(22804),l=n(25118),o=n(69194),a=n(19735),s=n(48387);let u=l.forwardRef(({title:e,children:t},n)=>{let u=(0,a.X3)(s.xZ);return l.createElement(r.Kq,{delayDuration:100},l.createElement(r.bL,null,l.createElement(r.l9,{ref:n,asChild:!0},l.createElement("span",{className:o.Ay.tooltipTrigger},t)),l.createElement(r.ZL,{container:null==u?void 0:u.current},l.createElement(r.UC,{className:i(o.Ay.tooltipContent),sideOffset:10},e))))})},64702:(e,t,n)=>{"use strict";function r(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}n.d(t,{C:()=>r})},64749:(e,t,n)=>{"use strict";n.d(t,{s:()=>o});var r=n(67012),i=n(64702);let l=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function o(e){return e.replace(l,a)}function a(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return(0,i.C)(n.slice(t?2:1),t?16:10)}return(0,r.s)(n)||e}},66584:(e,t,n)=>{"use strict";n.d(t,{jH:()=>l});var r=n(25118);n(32846);var i=r.createContext(void 0);function l(e){let t=r.useContext(i);return e||t||"ltr"}},67012:(e,t,n)=>{"use strict";n.d(t,{s:()=>i});let r=document.createElement("i");function i(e){let t="&"+e+";";r.innerHTML=t;let n=r.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}},67234:()=>{},67781:(e,t,n)=>{"use strict";n.d(t,{_:()=>eR});var r=n(87693),i=n(19735),l=n(58030),o=n(25118),a=n(48387),s=n(36407),u=n(48123);function c(e,[t,n]){return Math.min(n,Math.max(t,e))}var d=n(92701),f=n(40195),p=n(59439),h=n(11215),g=n(66584),m=n(53921),y=n(69652),v=n(30815),x=n(37922),b=n(6165),_=n(33140),C=n(11064),w=n(78465),k=n(29646),E=n(40170),S=n(48914),T=n(4596),A=n(5449),N=n(12021),I=n(32846),L=[" ","Enter","ArrowUp","ArrowDown"],P=[" ","Enter"],F="Select",[M,O,R]=(0,f.N)(F),[D,V]=(0,h.A)(F,[R,b.Bk]),H=(0,b.Bk)(),[B,j]=D(F),[z,J]=D(F),U=e=>{let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:l,value:a,defaultValue:s,onValueChange:u,dir:c,name:d,autoComplete:f,disabled:p,required:h,form:m}=e,y=H(t),[v,_]=o.useState(null),[C,w]=o.useState(null),[k,S]=o.useState(!1),T=(0,g.jH)(c),[A,N]=(0,E.i)({prop:r,defaultProp:null!=i&&i,onChange:l,caller:F}),[L,P]=(0,E.i)({prop:a,defaultProp:s,onChange:u,caller:F}),O=o.useRef(null),R=!v||m||!!v.closest("form"),[D,V]=o.useState(new Set),j=Array.from(D).map(e=>e.props.value).join(";");return(0,I.jsx)(b.bL,{...y,children:(0,I.jsxs)(B,{required:h,scope:t,trigger:v,onTriggerChange:_,valueNode:C,onValueNodeChange:w,valueNodeHasChildren:k,onValueNodeHasChildrenChange:S,contentId:(0,x.B)(),value:L,onValueChange:P,open:A,onOpenChange:N,dir:T,triggerPointerDownPosRef:O,disabled:p,children:[(0,I.jsx)(M.Provider,{scope:t,children:(0,I.jsx)(z,{scope:e.__scopeSelect,onNativeOptionAdd:o.useCallback(e=>{V(t=>new Set(t).add(e))},[]),onNativeOptionRemove:o.useCallback(e=>{V(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),R?(0,I.jsxs)(eE,{"aria-hidden":!0,required:h,tabIndex:-1,name:d,autoComplete:f,value:L,onChange:e=>P(e.target.value),disabled:p,form:m,children:[void 0===L?(0,I.jsx)("option",{value:""}):null,Array.from(D)]},j):null]})})};U.displayName=F;var W="SelectTrigger",K=o.forwardRef((e,t)=>
1{let{__scopeSelect:n,disabled:r=!1,...i}=e,l=H(n),a=j(W,n),s=a.disabled||r,u=(0,p.s)(t,a.onTriggerChange),c=O(n),f=o.useRef("touch"),[h,g,m]=eT(e=>{let t=c().filter(e=>!e.disabled),n=t.find(e=>e.value===a.value),r=eA(t,e,n);void 0!==r&&a.onValueChange(r.value)}),y=e=>{s||(a.onOpenChange(!0),m()),e&&(a.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return(0,I.jsx)(b.Mz,{asChild:!0,...l,children:(0,I.jsx)(C.sG.button,{type:"button",role:"combobox","aria-controls":a.contentId,"aria-expanded":a.open,"aria-required":a.required,"aria-autocomplete":"none",dir:a.dir,"data-state":a.open?"open":"closed",disabled:s,"data-disabled":s?"":void 0,"data-placeholder":eS(a.value)?"":void 0,...i,ref:u,onClick:(0,d.mK)(i.onClick,e=>{e.currentTarget.focus(),"mouse"!==f.current&&y(e)}),onPointerDown:(0,d.mK)(i.onPointerDown,e=>{f.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(y(e),e.preventDefault())}),onKeyDown:(0,d.mK)(i.onKeyDown,e=>{let t=""!==h.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||g(e.key),(!t||" "!==e.key)&&L.includes(e.key)&&(y(),e.preventDefault())})})})});K.displayName=W;var $="SelectValue",Z=o.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,children:l,placeholder:o="",...a}=e,s=j($,n),{onValueNodeHasChildrenChange:u}=s,c=void 0!==l,d=(0,p.s)(t,s.onValueNodeChange);return(0,S.N)(()=>{u(c)},[u,c]),(0,I.jsx)(C.sG.span,{...a,ref:d,style:{pointerEvents:"none"},children:eS(s.value)?(0,I.jsx)(I.Fragment,{children:o}):l})});Z.displayName=$;var q=o.forwardRef((e,t)=>{let{__scopeSelect:n,children:r,...i}=e;return(0,I.jsx)(C.sG.span,{"aria-hidden":!0,...i,ref:t,children:r||"▼"})});q.displayName="SelectIcon";var G=e=>(0,I.jsx)(_.Z,{asChild:!0,...e});G.displayName="SelectPortal";var Y="SelectContent",X=o.forwardRef((e,t)=>{let n=j(Y,e.__scopeSelect),[r,i]=o.useState();return((0,S.N)(()=>{i(new DocumentFragment)},[]),n.open)?(0,I.jsx)(en,{...e,ref:t}):r?u.createPortal((0,I.jsx)(Q,{scope:e.__scopeSelect,children:(0,I.jsx)(M.Slot,{scope:e.__scopeSelect,children:(0,I.jsx)("div",{children:e.children})})}),r):null});X.displayName=Y;var[Q,ee]=D(Y),et=(0,w.TL)("SelectContent.RemoveScroll"),en=o.forwardRef((e,t)=>{let{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:l,onPointerDownOutside:a,side:s,sideOffset:u,align:c,alignOffset:f,arrowPadding:h,collisionBoundary:g,collisionPadding:x,sticky:b,hideWhenDetached:_,avoidCollisions:C,...w}=e,k=j(Y,n),[E,S]=o.useState(null),[T,L]=o.useState(null),P=(0,p.s)(t,e=>S(e)),[F,M]=o.useState(null),[R,D]=o.useState(null),V=O(n),[H,B]=o.useState(!1),z=o.useRef(!1);o.useEffect(()=>{if(E)return(0,A.Eq)(E)},[E]),(0,y.Oh)();let J=o.useCallback(e=>{let[t,...n]=V().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&T&&(T.scrollTop=0),n===r&&T&&(T.scrollTop=T.scrollHeight),null==n||n.focus(),document.activeElement!==i))return},[V,T]),U=o.useCallback(()=>J([F,E]),[J,F,E]);o.useEffect(()=>{H&&U()},[H,U]);let{onOpenChange:W,triggerPointerDownPosRef:K}=k;o.useEffect(()=>{if(E){let e={x:0,y:0},t=t=>{var n,r,i,l;e={x:Math.abs(Math.round(t.pageX)-(null!=(i=null==(n=K.current)?void 0:n.x)?i:0)),y:Math.abs(Math.round(t.pageY)-(null!=(l=null==(r=K.current)?void 0:r.y)?l:0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():E.contains(n.target)||W(!1),document.removeEventListener("pointermove",t),K.current=null};return null!==K.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[E,W,K]),o.useEffect(()=>{let e=()=>W(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[W]);let[$,Z]=eT(e=>{let t=V().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=eA(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),q=o.useCallback((e,t,n)=>{let r=!z.current&&!n;(void 0!==k.value&&k.value===t||r)&&(M(e),r&&(z.current=!0))},[k.value]),G=o.useCallback(()=>null==E?void 0:E.focus(),[E]),X=o.useCallback((e,t,n)=>{let r=!z.current&&!n;(void 0!==k.value&&k.value===t||r)&&D(e)},[k.value]),ee="popper"===r?ei:er,en=ee===ei?{side:s,sideOffset:u,align:c,alignOffset:f,arrowPadding:h,collisionBoundary:g,collisionPadding:x,sticky:b,hideWhenDetached:_,avoidCollisions:C}:{};return(0,I.jsx)(Q,{scope:n,content:E,viewport:T,onViewportChange:L,itemRefCallback:q,selectedItem:F,onItemLeave:G,itemTextRefCallback:X,focusSelectedItem:U,selectedItemText:R,position:r,isPositioned:H,searchRef:$,children:(0,I.jsx)(N.A,{as:et,allowPinchZoom:!0,children:(0,I.jsx)(v.n,{asChild:!0,trapped:k.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:(0,d.mK)(i,e=>{var t;
1null==(t=k.trigger)||t.focus({preventScroll:!0}),e.preventDefault()}),children:(0,I.jsx)(m.qW,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:a,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>k.onOpenChange(!1),children:(0,I.jsx)(ee,{role:"listbox",id:k.contentId,"data-state":k.open?"open":"closed",dir:k.dir,onContextMenu:e=>e.preventDefault(),...w,...en,onPlaced:()=>B(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...w.style},onKeyDown:(0,d.mK)(w.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||Z(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=V().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>J(t)),e.preventDefault()}})})})})})})});en.displayName="SelectContentImpl";var er=o.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:r,...i}=e,l=j(Y,n),a=ee(Y,n),[s,u]=o.useState(null),[d,f]=o.useState(null),h=(0,p.s)(t,e=>f(e)),g=O(n),m=o.useRef(!1),y=o.useRef(!0),{viewport:v,selectedItem:x,selectedItemText:b,focusSelectedItem:_}=a,w=o.useCallback(()=>{if(l.trigger&&l.valueNode&&s&&d&&v&&x&&b){let e=l.trigger.getBoundingClientRect(),t=d.getBoundingClientRect(),n=l.valueNode.getBoundingClientRect(),i=b.getBoundingClientRect();if("rtl"!==l.dir){let r=i.left-t.left,l=n.left-r,o=e.left-l,a=e.width+o,u=Math.max(a,t.width),d=c(l,[10,Math.max(10,window.innerWidth-10-u)]);s.style.minWidth=a+"px",s.style.left=d+"px"}else{let r=t.right-i.right,l=window.innerWidth-n.right-r,o=window.innerWidth-e.right-l,a=e.width+o,u=Math.max(a,t.width),d=c(l,[10,Math.max(10,window.innerWidth-10-u)]);s.style.minWidth=a+"px",s.style.right=d+"px"}let o=g(),a=window.innerHeight-20,u=v.scrollHeight,f=window.getComputedStyle(d),p=parseInt(f.borderTopWidth,10),h=parseInt(f.paddingTop,10),y=parseInt(f.borderBottomWidth,10),_=p+h+u+parseInt(f.paddingBottom,10)+y,C=Math.min(5*x.offsetHeight,_),w=window.getComputedStyle(v),k=parseInt(w.paddingTop,10),E=parseInt(w.paddingBottom,10),S=e.top+e.height/2-10,T=x.offsetHeight/2,A=p+h+(x.offsetTop+T);if(A<=S){let e=o.length>0&&x===o[o.length-1].ref.current;s.style.bottom="0px";let t=Math.max(a-S,T+(e?E:0)+(d.clientHeight-v.offsetTop-v.offsetHeight)+y);s.style.height=A+t+"px"}else{let e=o.length>0&&x===o[0].ref.current;s.style.top="0px";let t=Math.max(S,p+v.offsetTop+(e?k:0)+T);s.style.height=t+(_-A)+"px",v.scrollTop=A-S+v.offsetTop}s.style.margin="".concat(10,"px 0"),s.style.minHeight=C+"px",s.style.maxHeight=a+"px",null==r||r(),requestAnimationFrame(()=>m.current=!0)}},[g,l.trigger,l.valueNode,s,d,v,x,b,l.dir,r]);(0,S.N)(()=>w(),[w]);let[k,E]=o.useState();(0,S.N)(()=>{d&&E(window.getComputedStyle(d).zIndex)},[d]);let T=o.useCallback(e=>{e&&!0===y.current&&(w(),null==_||_(),y.current=!1)},[w,_]);return(0,I.jsx)(el,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:m,onScrollButtonChange:T,children:(0,I.jsx)("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:(0,I.jsx)(C.sG.div,{...i,ref:h,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});er.displayName="SelectItemAlignedPosition";var ei=o.forwardRef((e,t)=>{let{__scopeSelect:n,align:r="start",collisionPadding:i=10,...l}=e,o=H(n);return(0,I.jsx)(b.UC,{...o,...l,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...l.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});ei.displayName="SelectPopperPosition";var[el,eo]=D(Y,{}),ea="SelectViewport",es=o.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:r,...i}=e,l=ee(ea,n),a=eo(ea,n),s=(0,p.s)(t,l.onViewportChange),u=o.useRef(0);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),(0,I.jsx)(M.Slot,{scope:n,children:(0,I.jsx)(C.sG.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:s,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:(0,d.mK)(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=a;if((null==r?void 0:r.current)&&n){let e=Math.abs(u.current-t.scrollTop);if(e>0){let r=window.innerHeight-20,i=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));
1if(i<r){let l=i+e,o=Math.min(r,l),a=l-o;n.style.height=o+"px","0px"===n.style.bottom&&(t.scrollTop=a>0?a:0,n.style.justifyContent="flex-end")}}}u.current=t.scrollTop})})})]})});es.displayName=ea;var eu="SelectGroup",[ec,ed]=D(eu);o.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=(0,x.B)();return(0,I.jsx)(ec,{scope:n,id:i,children:(0,I.jsx)(C.sG.div,{role:"group","aria-labelledby":i,...r,ref:t})})}).displayName=eu;var ef="SelectLabel";o.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=ed(ef,n);return(0,I.jsx)(C.sG.div,{id:i.id,...r,ref:t})}).displayName=ef;var ep="SelectItem",[eh,eg]=D(ep),em=o.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,disabled:i=!1,textValue:l,...a}=e,s=j(ep,n),u=ee(ep,n),c=s.value===r,[f,h]=o.useState(null!=l?l:""),[g,m]=o.useState(!1),y=(0,p.s)(t,e=>{var t;return null==(t=u.itemRefCallback)?void 0:t.call(u,e,r,i)}),v=(0,x.B)(),b=o.useRef("touch"),_=()=>{i||(s.onValueChange(r),s.onOpenChange(!1))};if(""===r)throw Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return(0,I.jsx)(eh,{scope:n,value:r,disabled:i,textId:v,isSelected:c,onItemTextChange:o.useCallback(e=>{h(t=>{var n;return t||(null!=(n=null==e?void 0:e.textContent)?n:"").trim()})},[]),children:(0,I.jsx)(M.ItemSlot,{scope:n,value:r,disabled:i,textValue:f,children:(0,I.jsx)(C.sG.div,{role:"option","aria-labelledby":v,"data-highlighted":g?"":void 0,"aria-selected":c&&g,"data-state":c?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...a,ref:y,onFocus:(0,d.mK)(a.onFocus,()=>m(!0)),onBlur:(0,d.mK)(a.onBlur,()=>m(!1)),onClick:(0,d.mK)(a.onClick,()=>{"mouse"!==b.current&&_()}),onPointerUp:(0,d.mK)(a.onPointerUp,()=>{"mouse"===b.current&&_()}),onPointerDown:(0,d.mK)(a.onPointerDown,e=>{b.current=e.pointerType}),onPointerMove:(0,d.mK)(a.onPointerMove,e=>{if(b.current=e.pointerType,i){var t;null==(t=u.onItemLeave)||t.call(u)}else"mouse"===b.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:(0,d.mK)(a.onPointerLeave,e=>{if(e.currentTarget===document.activeElement){var t;null==(t=u.onItemLeave)||t.call(u)}}),onKeyDown:(0,d.mK)(a.onKeyDown,e=>{var t;((null==(t=u.searchRef)?void 0:t.current)===""||" "!==e.key)&&(P.includes(e.key)&&_()," "===e.key&&e.preventDefault())})})})})});em.displayName=ep;var ey="SelectItemText",ev=o.forwardRef((e,t)=>{let{__scopeSelect:n,className:r,style:i,...l}
1=e,a=j(ey,n),s=ee(ey,n),c=eg(ey,n),d=J(ey,n),[f,h]=o.useState(null),g=(0,p.s)(t,e=>h(e),c.onItemTextChange,e=>{var t;return null==(t=s.itemTextRefCallback)?void 0:t.call(s,e,c.value,c.disabled)}),m=null==f?void 0:f.textContent,y=o.useMemo(()=>(0,I.jsx)("option",{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:v,onNativeOptionRemove:x}=d;return(0,S.N)(()=>(v(y),()=>x(y)),[v,x,y]),(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(C.sG.span,{id:c.textId,...l,ref:g}),c.isSelected&&a.valueNode&&!a.valueNodeHasChildren?u.createPortal(l.children,a.valueNode):null]})});ev.displayName=ey;var ex="SelectItemIndicator";o.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return eg(ex,n).isSelected?(0,I.jsx)(C.sG.span,{"aria-hidden":!0,...r,ref:t}):null}).displayName=ex;var eb="SelectScrollUpButton";o.forwardRef((e,t)=>{let n=ee(eb,e.__scopeSelect),r=eo(eb,e.__scopeSelect),[i,l]=o.useState(!1),a=(0,p.s)(t,r.onScrollButtonChange);return(0,S.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){l(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),i?(0,I.jsx)(eC,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null}).displayName=eb;var e_="SelectScrollDownButton";o.forwardRef((e,t)=>{let n=ee(e_,e.__scopeSelect),r=eo(e_,e.__scopeSelect),[i,l]=o.useState(!1),a=(0,p.s)(t,r.onScrollButtonChange);return(0,S.N)(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;l(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),i?(0,I.jsx)(eC,{...e,ref:a,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null}).displayName=e_;var eC=o.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:r,...i}=e,l=ee("SelectScrollButton",n),a=o.useRef(null),s=O(n),u=o.useCallback(()=>{null!==a.current&&(window.clearInterval(a.current),a.current=null)},[]);return o.useEffect(()=>()=>u(),[u]),(0,S.N)(()=>{var e;let t=s().find(e=>e.ref.current===document.activeElement);null==t||null==(e=t.ref.current)||e.scrollIntoView({block:"nearest"})},[s]),(0,I.jsx)(C.sG.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:(0,d.mK)(i.onPointerDown,()=>{null===a.current&&(a.current=window.setInterval(r,50))}),onPointerMove:(0,d.mK)(i.onPointerMove,()=>{var e;null==(e=l.onItemLeave)||e.call(l),null===a.current&&(a.current=window.setInterval(r,50))}),onPointerLeave:(0,d.mK)(i.onPointerLeave,()=>{u()})})}),ew=o.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e;return(0,I.jsx)(C.sG.div,{"aria-hidden":!0,...r,ref:t})});ew.displayName="SelectSeparator";var ek="SelectArrow";o.forwardRef((e,t)=>{let{__scopeSelect:n,...r}=e,i=H(n),l=j(ek,n),o=ee(ek,n);return l.open&&"popper"===o.position?(0,I.jsx)(b.i3,{...i,...r,ref:t}):null}).displayName=ek;var eE=o.forwardRef((e,t)=>{let{__scopeSelect:n,value:r,...i}=e,l=o.useRef(null),a=(0,p.s)(t,l),s=function(e){let t=o.useRef({value:e,previous:e});return o.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(r);return o.useEffect(()=>{let e=l.current;if(!e)return;let t=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(s!==r&&t){let n=new Event("change",{bubbles:!0});t.call(e,r),e.dispatchEvent(n)}},[s,r]),(0,I.jsx)(C.sG.select,{...i,style:{...T.Qg,...i.style},ref:a,defaultValue:r})});function eS(e){return""===e||void 0===e}function eT(e){let t=(0,k.c)(e),n=o.useRef(""),r=o.useRef(0),i=o.useCallback(e=>{let i=n.current+e;t(i),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout(()=>e(""),1e3))}(i)},[t]),l=o.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return o.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,l]}function eA(e,t,n){var r,i;let l=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=n?e.indexOf(n):-1,a=(r=e,i=Math.max(o,0),r.map((e,t)=>r[(i+t)%r.length]));1===l.length&&(a=a.filter(e=>e!==n));let s=a.find(e=>e.textValue.toLowerCase().startsWith(l.toLowerCase()));return s!==n?s:void 0}eE.displayName="SelectBubbleInput";var eN=n(22804),eI=n(69194),eL=n(64621);let eP=o.forwardRef(({children:e,className:t,...n},r)=>o.createElement(em,{...n,ref:r,className:eN(t,eI.Ay.selectItem)},o.createElement(ev,null,e))),eF=({title:e,placeholder:t,className:n})=>{let[r,l]=(0,i.uX)(a.pc,a.yr);return o.createElement(eL.I,{title:e},o.createElement(K,{"aria-label":t,className:eN(eI.Ay.selectTrigger,n),"data-toolbar-item":!0,disabled:r},o.createElement(Z,{placeholder:t}),o.createElement(q,{className:eI.Ay.selectDropdownArrow},l("arrow_drop_down"))))},eM=({children:e,className:t=eI.Ay.selectContainer})=>
1{let n=(0,i.X3)(a.xZ);return o.createElement(G,{container:null==n?void 0:n.current},o.createElement(X,{className:eN(t,"mdxeditor-select-content"),onCloseAutoFocus:e=>{e.preventDefault()},position:"popper"},o.createElement(es,{"data-editor-dropdown":!0,style:{maxHeight:"var(--radix-select-content-available-height)"}},e)))},eO=e=>o.createElement(U,{value:e.value||"",onValueChange:e.onChange,disabled:e.disabled},o.createElement(eF,{title:e.triggerTitle,placeholder:e.placeholder}),o.createElement(eM,null,e.items.map((e,t)=>"separator"===e?o.createElement(ew,{key:t}):o.createElement(eP,{key:t,value:e.value},e.label)))),eR=()=>{let e=(0,i.qM)(a.vR),t=(0,i.X3)(a.X3),n=(0,i.X3)(a.TI),u=n.includes("quote"),c=n.includes("headings"),d=(0,a.Bd)();if(!u&&!c)return null;let f=[{label:d("toolbar.blockTypes.paragraph","Paragraph"),value:"paragraph"}];if(u&&f.push({label:d("toolbar.blockTypes.quote","Quote"),value:"quote"}),c){let e=(0,i.X3)(s.OO);f.push(...e.map(e=>({label:d("toolbar.blockTypes.heading","Heading {{level}}",{level:e}),value:`h${e}`})))}return o.createElement(eO,{value:t,onChange:t=>{switch(t){case"quote":e(()=>(0,r.xi)());break;case"paragraph":e(()=>(0,l.lJ7)());break;case"":break;default:if(t.startsWith("h"))e(()=>(0,r.fi)(t));else throw Error(`Unknown block type: ${t}`)}},triggerTitle:d("toolbar.blockTypeSelect.selectBlockTypeTooltip","Select block type"),placeholder:d("toolbar.blockTypeSelect.placeholder","Block type"),items:f})}},69194:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>r});let r={editorRoot:"_editorRoot_1e2ox_53",editorWrapper:"_editorWrapper_1e2ox_155",toolbarRoot:"_toolbarRoot_1e2ox_162",readOnlyToolbarRoot:"_readOnlyToolbarRoot_1e2ox_189",toolbarToggleItem:"_toolbarToggleItem_1e2ox_208",toolbarGroupOfGroups:"_toolbarGroupOfGroups_1e2ox_219",toolbarToggleSingleGroup:"_toolbarToggleSingleGroup_1e2ox_224",toolbarButton:"_toolbarButton_1e2ox_239",activeToolbarButton:"_activeToolbarButton_1e2ox_275",toolbarButtonDropdownContainer:"_toolbarButtonDropdownContainer_1e2ox_286",selectContainer:"_selectContainer_1e2ox_288",selectItem:"_selectItem_1e2ox_301",toolbarButtonSelectTrigger:"_toolbarButtonSelectTrigger_1e2ox_307",selectTrigger:"_selectTrigger_1e2ox_308",selectDropdownArrow:"_selectDropdownArrow_1e2ox_374",contentEditable:"_contentEditable_1e2ox_380",codeMirrorWrapper:"_codeMirrorWrapper_1e2ox_392",sandPackWrapper:"_sandPackWrapper_1e2ox_401",codeMirrorToolbar:"_codeMirrorToolbar_1e2ox_409",propertyPanelTitle:"_propertyPanelTitle_1e2ox_431",propertyEditorTable:"_propertyEditorTable_1e2ox_439",iconButton:"_iconButton_1e2ox_457",readOnlyColumnCell:"_readOnlyColumnCell_1e2ox_462",buttonsFooter:"_buttonsFooter_1e2ox_475",propertyEditorInput:"_propertyEditorInput_1e2ox_481",primaryButton:"_primaryButton_1e2ox_507",secondaryButton:"_secondaryButton_1e2ox_508",smallButton:"_smallButton_1e2ox_523",dialogForm:"_dialogForm_1e2ox_535",linkDialogEditForm:"_linkDialogEditForm_1e2ox_541",linkDialogInputContainer:"_linkDialogInputContainer_1e2ox_549",linkDialogInputWrapper:"_linkDialogInputWrapper_1e2ox_555",linkDialogInput:"_linkDialogInput_1e2ox_549",linkDialogAnchor:"_linkDialogAnchor_1e2ox_587",linkDialogPopoverContent:"_linkDialogPopoverContent_1e2ox_601",tableColumnEditorPopoverContent:"_tableColumnEditorPopoverContent_1e2ox_602",dialogContent:"_dialogContent_1e2ox_603",largeDialogContent:"_largeDialogContent_1e2ox_615",dialogTitle:"_dialogTitle_1e2ox_625",dialogCloseButton:"_dialogCloseButton_1e2ox_631",popoverContent:"_popoverContent_1e2ox_638",popoverArrow:"_popoverArrow_1e2ox_650",linkDialogPreviewAnchor:"_linkDialogPreviewAnchor_1e2ox_654",tooltipTrigger:"_tooltipTrigger_1e2ox_677",tooltipContent:"_tooltipContent_1e2ox_681",actionButton:"_actionButton_1e2ox_695",primaryActionButton:"_primaryActionButton_1e2ox_702",tableEditor:"_tableEditor_1e2ox_714",toolCell:"_toolCell_1e2ox_725",tableColumnEditorTrigger:"_tableColumnEditorTrigger_1e2ox_744",addRowButton:"_addRowButton_1e2ox_746",addColumnButton:"_addColumnButton_1e2ox_747",tableColumnEditorToolbar:"_tableColumnEditorToolbar_1e2ox_789",toggleGroupRoot:"_toggleGroupRoot_1e2ox_802",tableToolsColumn:"_tableToolsColumn_1e2ox_820",leftAlignedCell:"_leftAlignedCell_1e2ox_829",rightAlignedCell:"_rightAlignedCell_1e2ox_833",centeredCell:"_centeredCell_1e2ox_837",dialogOverlay:"_dialogOverlay_1e2ox_870",focusedImage:"_focusedImage_1e2ox_916",imageWrapper:"_imageWrapper_1e2ox_920",editImageToolbar:"_editImageToolbar_1e2ox_933",editImageButton:"_editImageButton_1e2ox_937",inline
1Editor:"_inlineEditor_1e2ox_943",blockEditor:"_blockEditor_1e2ox_952",nestedEditor:"_nestedEditor_1e2ox_961",genericComponentName:"_genericComponentName_1e2ox_980",diffSourceToggleWrapper:"_diffSourceToggleWrapper_1e2ox_986",ggDiffSourceToggle:"_ggDiffSourceToggle_1e2ox_994",diffSourceToggle:"_diffSourceToggle_1e2ox_986",selectWithLabel:"_selectWithLabel_1e2ox_1012",toolbarTitleMode:"_toolbarTitleMode_1e2ox_1027",imageControlWrapperResizing:"_imageControlWrapperResizing_1e2ox_1032",imageResizer:"_imageResizer_1e2ox_1036",imageResizerN:"_imageResizerN_1e2ox_1045",imageResizerNe:"_imageResizerNe_1e2ox_1051",imageResizerE:"_imageResizerE_1e2ox_1057",imageResizerSe:"_imageResizerSe_1e2ox_1063",imageResizerS:"_imageResizerS_1e2ox_1063",imageResizerSw:"_imageResizerSw_1e2ox_1075",imageResizerW:"_imageResizerW_1e2ox_1081",imageResizerNw:"_imageResizerNw_1e2ox_1087",imagePlaceholder:"_imagePlaceholder_1e2ox_1093",imageDimensionsContainer:"_imageDimensionsContainer_1e2ox_1101",placeholder:"_placeholder_1e2ox_1106",rootContentEditableWrapper:"_rootContentEditableWrapper_1e2ox_1119",downshiftInputWrapper:"_downshiftInputWrapper_1e2ox_1129",downshiftInput:"_downshiftInput_1e2ox_1129",downshiftAutocompleteContainer:"_downshiftAutocompleteContainer_1e2ox_1160",textInput:"_textInput_1e2ox_1206",multiFieldForm:"_multiFieldForm_1e2ox_1214",formField:"_formField_1e2ox_1220",markdownParseError:"_markdownParseError_1e2ox_1231",popupContainer:"_popupContainer_1e2ox_1240",inputSizer:"_inputSizer_1e2ox_1245"}},69652:(e,t,n)=>{"use strict";n.d(t,{Oh:()=>l});var r=n(25118),i=0;function l(){r.useEffect(()=>{var e,t;let n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=n[0])?e:o()),document.body.insertAdjacentElement("beforeend",null!=(t=n[1])?t:o()),i++,()=>{1===i&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),i--}},[])}function o(){let 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}},69662:(e,t,n)=>{"use strict";n.d(t,{FA:()=>r,Ig:()=>o,J6:()=>l,S3:()=>i,Te:()=>s,jG:()=>a,o4:()=>u,sM:()=>c});let r=1,i=2,l=4,o=8,a=16,s=32,u=64,c=128},70237:(e,t,n)=>{"use strict";n.d(t,{py:()=>t9,A:()=>t4,Mi:()=>nr,_5:()=>t2,zr:()=>t6,WK:()=>t1,NN:()=>t7,XI:()=>t8,sm:()=>nn,_F:()=>t3,uQ:()=>t5});var r=n(84662),i=n(19735),l=n(58030),o=n(39303),a=n(83630),s=n(89225),u=n(48387),c=n(25118),d=n(92701),f=n(59439),p=n(11215),h=n(53921),g=n(69652),m=n(30815),y=n(37922),v=n(6165),x=n(33140),b=n(5865),_=n(11064),C=n(78465),w=n(40170),k=n(5449),E=n(12021),S=n(32846),T="Popover",[A,N]=(0,p.A)(T,[v.Bk]),I=(0,v.Bk)(),[L,P]=A(T),F=e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:l,modal:o=!1}=e,a=I(t),s=c.useRef(null),[u,d]=c.useState(!1),[f,p]=(0,w.i)({prop:r,defaultProp:null!=i&&i,onChange:l,caller:T});return(0,S.jsx)(v.bL,{...a,children:(0,S.jsx)(L,{scope:t,contentId:(0,y.B)(),triggerRef:s,open:f,onOpenChange:p,onOpenToggle:c.useCallback(()=>p(e=>!e),[p]),hasCustomAnchor:u,onCustomAnchorAdd:c.useCallback(()=>d(!0),[]),onCustomAnchorRemove:c.useCallback(()=>d(!1),[]),modal:o,children:n})})};F.displayName=T;var M="PopoverAnchor",O=c.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=P(M,n),l=I(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:a}=i;return c.useEffect(()=>(o(),()=>a()),[o,a]),(0,S.jsx)(v.Mz,{...l,...r,ref:t})});O.displayName=M;var R="PopoverTrigger";c.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=P(R,n),l=I(n),o=(0,f.s)(t,i.triggerRef),a=(0,S.jsx)(_.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":q(i.open),...r,ref:o,onClick:(0,d.mK)(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?a:(0,S.jsx)(v.Mz,{asChild:!0,...l,children:a})}).displayName=R;var D="PopoverPortal",[V,H]=A(D,{forceMount:void 0}),B=e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,l=P(D,t);return(0,S.jsx)(V,{scope:t,forceMount:n,children:(0,S.jsx)(b.C,{present:n||l.open,children:(0,S.jsx)(x.Z,{asChild:!0,container:i,children:r})})})};B.displayName=D;var j="PopoverContent",z=c.forwardRef((e,t)=>
1{let n=H(j,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,l=P(j,e.__scopePopover);return(0,S.jsx)(b.C,{present:r||l.open,children:l.modal?(0,S.jsx)(U,{...i,ref:t}):(0,S.jsx)(W,{...i,ref:t})})});z.displayName=j;var J=(0,C.TL)("PopoverContent.RemoveScroll"),U=c.forwardRef((e,t)=>{let n=P(j,e.__scopePopover),r=c.useRef(null),i=(0,f.s)(t,r),l=c.useRef(!1);return c.useEffect(()=>{let e=r.current;if(e)return(0,k.Eq)(e)},[]),(0,S.jsx)(E.A,{as:J,allowPinchZoom:!0,children:(0,S.jsx)(K,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,d.mK)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),l.current||null==(t=n.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,d.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;l.current=2===t.button||n},{checkForDefaultPrevented:!1}),onFocusOutside:(0,d.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),W=c.forwardRef((e,t)=>{let n=P(j,e.__scopePopover),r=c.useRef(!1),i=c.useRef(!1);return(0,S.jsx)(K,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var l,o;null==(l=e.onCloseAutoFocus)||l.call(e,t),t.defaultPrevented||(r.current||null==(o=n.triggerRef.current)||o.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{var l,o;null==(l=e.onInteractOutside)||l.call(e,t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(i.current=!0));let a=t.target;(null==(o=n.triggerRef.current)?void 0:o.contains(a))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&i.current&&t.preventDefault()}})}),K=c.forwardRef((e,t)=>{let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:l,disableOutsidePointerEvents:o,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:u,onInteractOutside:c,...d}=e,f=P(j,n),p=I(n);return(0,g.Oh)(),(0,S.jsx)(m.n,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:l,children:(0,S.jsx)(h.qW,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:c,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:u,onDismiss:()=>f.onOpenChange(!1),children:(0,S.jsx)(v.UC,{"data-state":q(f.open),role:"dialog",id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),$="PopoverClose";c.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=P($,n);return(0,S.jsx)(_.sG.button,{type:"button",...r,ref:t,onClick:(0,d.mK)(e.onClick,()=>i.onOpenChange(!1))})}).displayName=$;var Z=c.forwardRef((e,t)=>{let{__scopePopover:n,...r}=e,i=I(n);return(0,S.jsx)(v.i3,{...i,...r,ref:t})});function q(e){return e?"open":"closed"}Z.displayName="PopoverArrow";var G=n(46503);function Y(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}function X(){return(X=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(null,arguments)}var Q=n(38459),ee=n.n(Q);n(27430);let et=e=>"object"==typeof e&&null!=e&&1===e.nodeType,en=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,er=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n=getComputedStyle(e,null);return en(n.overflowY,t)||en(n.overflowX,t)||(e=>{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},ei=(e,t,n,r,i,l,o,a)=>l<e&&o>t||l>e&&o<t?0:l<=e&&a<=n||o>=t&&a>=n?l-e-r:o>t&&a<n||l<e&&a>n?o-t+i:0,el=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t};var eo=n(87024),ea=0;function es(){}function eu(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function ec(e,t){var n;function r(){n&&clearTimeout(n)}function i(){for(var i=arguments.length,l=Array(i),o=0;o<i;o++)l[o]=arguments[o];r(),n=setTimeout(function(){n=null,e.apply(void 0,l)},t)}return i.cancel=r,i}function ed(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.some(function(t){return t&&t.apply(void 0,[e].concat(r)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault})}}function ef(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach(function(t){"function"==typeof t?t(e):t&&(t.current=e)})}}function ep(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=void 0!==t[r]?t[r]:e[r],n},{})}function eh(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function eg(e,t,n,r,i){if(void 0===i&&(i=!0),0===n)return -1;var l=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:l+1);var o=t+e;o<0?o=i?l:0:o>l&&(o=i?0:l);var a=em(e,o,n,r,i);return -1===a?t>=n?-1:t:a}function em(e,t,n,r,i){var l=r(t);if(!l||!l.hasAttribute("disabled"))return t;if(e>0){for(var o=t+1;o<n;o++)if(!r(o).hasAttribute("disabled"))return o}else for(var a=t-1;a>=0;a--)if(!r(a).hasAttribute("disabled"))return a;return i?e>0?em(1,0,n,r,!1):em(-1,n-1,n,r,!1):-1}function ey(e,t,n,r){return void 0===r&&(r=!0),t.some(function(t){return t&&(eu(t,e,n)||r&&eu(t,n.document.activeElement,n))})}var ev=ec(function(e){eb(e).textContent=""},500);function ex(e,t){var n=eb(t);e&&(n.textContent=e,ev(t))}function eb(e){void 0===e&&(e=document);var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t)),t}var e_=["isInitialMount","highlightedIndex","items","environment"],eC={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""},ew=ec(function(e,t){ex(e(),t)},200),ek="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?c.useLayoutEffect:c.useEffect;function eE(e){var t=e.id,n=void 0===t?"downshift-"+String(ea++):t,r=e.labelId,i=e.menuId,l=e.getItemId,o=e.toggleButtonId,a=e.inputId;return(0,c.useRef)({labelId:r||n+"-label",menuId:i||n+"-menu",getItemId:l||function(e){return n+"-item-"+e},toggleButtonId:o||n+"-toggle-button",inputId:a||n+"-input"}).current}function eS(e,t,n,r){var i,l;if(void 0===e){if(void 0===t)throw Error(r);i=n[t],l=t}else l=void 0===t?n.indexOf(e):t,i=e;return[i,l]}function eT(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function eA(e){var t=(0,c.useRef)(e);return t.current=e,t}
1function eN(e,t,n){var r=(0,c.useRef)(),i=(0,c.useRef)(),l=(0,c.useCallback)(function(t,n){i.current=n;var r=e(t=ep(t,n.props),n);return n.props.stateReducer(t,X({},n,{changes:r}))},[e]),o=(0,c.useReducer)(l,t),a=o[0],s=o[1],u=eA(n),d=(0,c.useCallback)(function(e){return s(X({props:u.current},e))},[u]),f=i.current;return(0,c.useEffect)(function(){var e,t,n,i;f&&r.current&&r.current!==a&&(e=ep(r.current,f.props),t=f.props,n=f.type,i={},Object.keys(e).forEach(function(t){var n,r,l,o,s,u,c;n=t,r=f,l=e,o=a,s=r.props,u=r.type,s[c="on"+eT(n)+"Change"]&&void 0!==o[n]&&o[n]!==l[n]&&s[c](X({type:u},o)),a[t]!==e[t]&&(i[t]=a[t])}),t.onStateChange&&Object.keys(i).length&&t.onStateChange(X({type:n},i))),r.current=a},[a,n,f]),[a,d]}var eI={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""},scrollIntoView:function(e,t){e&&((e,t)=>{var n,r,i,l,o,a;if("undefined"==typeof document)return[];let{scrollMode:s,block:u,inline:c,boundary:d,skipOverflowHiddenElements:f}=t,p="function"==typeof d?d:e=>e!==d;if(!et(e))throw TypeError("Invalid target");let h=document.scrollingElement||document.documentElement,g=[],m=e;for(;et(m)&&p(m);){if((m=el(m))===h){g.push(m);break}null!=m&&m===document.body&&er(m)&&!er(document.documentElement)||null!=m&&er(m,f)&&g.push(m)}let y=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,v=null!=(l=null==(i=window.visualViewport)?void 0:i.height)?l:innerHeight,x=null!=(o=window.scrollX)?o:pageXOffset,b=null!=(a=window.scrollY)?a:pageYOffset,{height:_,width:C,top:w,right:k,bottom:E,left:S}=e.getBoundingClientRect(),T="start"===u||"nearest"===u?w:"end"===u?E:w+_/2,A="center"===c?S+C/2:"end"===c?k:S,N=[];for(let e=0;e<g.length;e++){let t=g[e],{height:n,width:r,top:i,right:l,bottom:o,left:a}=t.getBoundingClientRect();if("if-needed"===s&&w>=0&&S>=0&&E<=v&&k<=y&&w>=i&&E<=o&&S>=a&&k<=l)break;let d=getComputedStyle(t),f=parseInt(d.borderLeftWidth,10),p=parseInt(d.borderTopWidth,10),m=parseInt(d.borderRightWidth,10),I=parseInt(d.borderBottomWidth,10),L=0,P=0,F="offsetWidth"in t?t.offsetWidth-t.clientWidth-f-m:0,M="offsetHeight"in t?t.offsetHeight-t.clientHeight-p-I:0,O="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,R="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(h===t)L="start"===u?T:"end"===u?T-v:"nearest"===u?ei(b,b+v,v,p,I,b+T,b+T+_,_):T-v/2,P="start"===c?A:"center"===c?A-y/2:"end"===c?A-y:ei(x,x+y,y,f,m,x+A,x+A+C,C),L=Math.max(0,L+b),P=Math.max(0,P+x);else{L="start"===u?T-i-p:"end"===u?T-o+I+M:"nearest"===u?ei(i,o,n,p,I+M,T,T+_,_):T-(i+n/2)+M/2,P="start"===c?A-a-f:"center"===c?A-(a+r/2)+F/2:"end"===c?A-l+m+F:ei(a,l,r,f,m+F,A,A+C,C);let{scrollLeft:e,scrollTop:s}=t;L=Math.max(0,Math.min(s+L/R,t.scrollHeight-n/R+M)),P=Math.max(0,Math.min(e+P/O,t.scrollWidth-r/O+F)),T+=s-L,A+=e-P}N.push({el:t,top:L,left:P})}return N})(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}
1).forEach(function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r})},environment:"undefined"==typeof window?{}:window};function eL(e,t,n){void 0===n&&(n=eC);var r=e["default"+eT(t)];return void 0!==r?r:n[t]}function eP(e,t,n){void 0===n&&(n=eC);var r=e[t];if(void 0!==r)return r;var i=e["initial"+eT(t)];return void 0!==i?i:eL(e,t,n)}function eF(e){var t=eP(e,"selectedItem"),n=eP(e,"isOpen"),r=eP(e,"highlightedIndex"),i=eP(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.indexOf(t):r,isOpen:n,selectedItem:t,inputValue:i}}function eM(e,t,n){var r=e.items,i=e.initialHighlightedIndex,l=e.defaultHighlightedIndex,o=t.selectedItem,a=t.highlightedIndex;return 0===r.length?-1:void 0!==i&&a===i?i:void 0!==l?l:o?r.indexOf(o):0===n?-1:n<0?r.length-1:0}function eO(e,t,n,r){var i=(0,c.useRef)({isMouseDown:!1,isTouchMove:!1});return(0,c.useEffect)(function(){if((null==n?void 0:n.addEventListener)!=null){var l=function(){i.current.isMouseDown=!0},o=function(l){i.current.isMouseDown=!1,e&&!ey(l.target,t.map(function(e){return e.current}),n)&&r()},a=function(){i.current.isTouchMove=!1},s=function(){i.current.isTouchMove=!0},u=function(l){!e||i.current.isTouchMove||ey(l.target,t.map(function(e){return e.current}),n,!1)||r()};return n.addEventListener("mousedown",l),n.addEventListener("mouseup",o),n.addEventListener("touchstart",a),n.addEventListener("touchmove",s),n.addEventListener("touchend",u),function(){n.removeEventListener("mousedown",l),n.removeEventListener("mouseup",o),n.removeEventListener("touchstart",a),n.removeEventListener("touchmove",s),n.removeEventListener("touchend",u)}}},[e,n]),i}var eR=function(){return es};function eD(e,t,n){var r=n.isInitialMount,i=n.highlightedIndex,l=n.items,o=n.environment,a=Y(n,e_);(0,c.useEffect)(function(){r||ew(function(){return e(X({highlightedIndex:i,highlightedItem:l[i],resultCount:l.length},a))},o.document)},t)}function eV(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,l=e.menuElement,o=e.scrollIntoView,a=(0,c.useRef)(!0);return ek(function(){!(t<0)&&n&&Object.keys(r.current).length&&(!1===a.current?a.current=!0:o(i(t),l))},[t]),a}function eH(e,t,n){void 0===n&&(n=!0);var r,i=(null==(r=e.items)?void 0:r.length)&&t>=0;return X({isOpen:!1,highlightedIndex:-1},i&&X({selectedItem:e.items[t],isOpen:eL(e,"isOpen"),highlightedIndex:eL(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function eB(e,t,n){var r,i=t.type,l=t.props;switch(i){case n.ItemMouseMove:r={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:r={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:eM(l,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:eM(l,e,0)};break;case n.FunctionCloseMenu:r={isOpen:!1};break;case n.FunctionSetHighlightedIndex:r={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:r={inputValue:t.inputValue};break;case n.FunctionReset:r={highlightedIndex:eL(l,"highlightedIndex"),isOpen:eL(l,"isOpen"),selectedItem:eL(l,"selectedItem"),inputValue:eL(l,"inputValue")};break;default:throw Error("Reducer called without proper action type.")}return X({},e,r)}ee().array.isRequired,ee().func,ee().func,ee().func,ee().number,ee().number,ee().number,ee().bool,ee().bool,ee().bool,ee().any,ee().any,ee().any,ee().string,ee().string,ee().string,ee().func,ee().string,ee().func,ee().func,ee().func,ee().func,ee().func,ee().shape({addEventListener:ee().func,removeEventListener:ee().func,document:ee().shape({getElementById:ee().func,activeElement:ee().any,body:ee().any})});var ej=(0,eo.Cl)((0,eo.Cl)({},eI),{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(1===n?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}}),ez=Object.freeze({__proto__:null,ToggleButtonClick:0,ToggleButtonKeyDownArrowDown:1,ToggleButtonKeyDownArrowUp:2,ToggleButtonKeyDownCharacter:3,ToggleButtonKeyDownEscape:4,ToggleButtonKeyDown
1Home:5,ToggleButtonKeyDownEnd:6,ToggleButtonKeyDownEnter:7,ToggleButtonKeyDownSpaceButton:8,ToggleButtonKeyDownPageUp:9,ToggleButtonKeyDownPageDown:10,ToggleButtonBlur:11,MenuMouseLeave:12,ItemMouseMove:13,ItemClick:14,FunctionToggleMenu:15,FunctionOpenMenu:16,FunctionCloseMenu:17,FunctionSetHighlightedIndex:18,FunctionSelectItem:19,FunctionSetInputValue:20,FunctionReset:21});var eJ=Object.freeze({__proto__:null,InputKeyDownArrowDown:0,InputKeyDownArrowUp:1,InputKeyDownEscape:2,InputKeyDownHome:3,InputKeyDownEnd:4,InputKeyDownPageUp:5,InputKeyDownPageDown:6,InputKeyDownEnter:7,InputChange:8,InputBlur:9,InputFocus:10,MenuMouseLeave:11,ItemMouseMove:12,ItemClick:13,ToggleButtonClick:14,FunctionToggleMenu:15,FunctionOpenMenu:16,FunctionCloseMenu:17,FunctionSetHighlightedIndex:18,FunctionSelectItem:19,FunctionSetInputValue:20,FunctionReset:21,ControlledPropUpdatedSelectedItem:22});ee().array.isRequired,ee().func,ee().func,ee().func,ee().func,ee().number,ee().number,ee().number,ee().bool,ee().bool,ee().bool,ee().any,ee().any,ee().any,ee().string,ee().string,ee().string,ee().string,ee().string,ee().string,ee().func,ee().string,ee().string,ee().func,ee().func,ee().func,ee().func,ee().func,ee().func,ee().shape({addEventListener:ee().func,removeEventListener:ee().func,document:ee().shape({getElementById:ee().func,activeElement:ee().any,body:ee().any})});var eU=X({},eI,{selectedItemChanged:function(e,t){return e!==t},getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}});function eW(e,t){var n,r,i=t.type,l=t.props,o=t.altKey;switch(i){case 13:r={isOpen:eL(l,"isOpen"),highlightedIndex:eL(l,"highlightedIndex"),selectedItem:l.items[t.index],inputValue:l.itemToString(l.items[t.index])};break;case 0:r=e.isOpen?{highlightedIndex:eg(1,e.highlightedIndex,l.items.length,t.getItemNodeFromIndex,!0)}:{highlightedIndex:o&&null==e.selectedItem?-1:eM(l,e,1,t.getItemNodeFromIndex),isOpen:l.items.length>=0};break;case 1:r=e.isOpen?o?eH(l,e.highlightedIndex):{highlightedIndex:eg(-1,e.highlightedIndex,l.items.length,t.getItemNodeFromIndex,!0)}:{highlightedIndex:eM(l,e,-1,t.getItemNodeFromIndex),isOpen:l.items.length>=0};break;case 7:r=eH(l,e.highlightedIndex);break;case 2:r=X({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case 5:r={highlightedIndex:eg(-10,e.highlightedIndex,l.items.length,t.getItemNodeFromIndex,!1)};break;case 6:r={highlightedIndex:eg(10,e.highlightedIndex,l.items.length,t.getItemNodeFromIndex,!1)};break;case 3:r={highlightedIndex:em(1,0,l.items.length,t.getItemNodeFromIndex,!1)};break;case 4:r={highlightedIndex:em(-1,l.items.length-1,l.items.length,t.getItemNodeFromIndex,!1)};break;case 9:r=X({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&(null==(n=l.items)?void 0:n.length)&&t.selectItem&&{selectedItem:l.items[e.highlightedIndex],inputValue:l.itemToString(l.items[e.highlightedIndex])});break;case 8:r={isOpen:!0,highlightedIndex:eL(l,"highlightedIndex"),inputValue:t.inputValue};break;case 10:r={isOpen:!0,highlightedIndex:eM(l,e,0)};break;case 19:r={selectedItem:t.selectedItem,inputValue:l.itemToString(t.selectedItem)};break;case 22:r={inputValue:t.inputValue};break;default:return eB(e,t,eJ)}return X({},e,r)}var eK=["onMouseLeave","refKey","ref"],e$=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],eZ=["onClick","onPress","refKey","ref"],eq=["onKeyDown","onChange","onInput","onFocus","onBlur","onChangeText","refKey","ref"];function eG(e){void 0===e&&(e={});var t,n,r,i,l,o,a,s=X({},eU,e),u=s.initialIsOpen,d=s.defaultIsOpen,f=s.items,p=s.scrollIntoView,h=s.environment,g=s.getA11yStatusMessage,m=s.getA11ySelectionMessage,y=s.itemToString,v=(n=(t=eF(s)).selectedItem,""===(r=t.inputValue)&&n&&void 0===s.defaultInputValue&&void 0===s.initialInputValue&&void 0===s.inputValue&&(r=s.itemToString(n)),X({},t,{inputValue:r})),x=(i=(0,c.useRef)(),o=(l=eN(eW,v,s))[0],a=l[1],(0,c.useEffect)(function(){void 0!==s.selectedItem&&(s.selectedItemChanged(i.current,s.selectedItem)&&a({type:22,inputValue:s.itemToString(s.selectedItem)}),i.current=o.selectedItem===i.current?s.selectedItem:o.selectedItem)},[o.selectedItem,s.selectedItem]),[ep(o,s),a]),b=x[0],_=x[1],C=b.isOpen,w=b.highlightedIndex,k=b.selectedItem,E=b.inputValue,S=(0,c.useRef)(null),T=(0,c.useRef)({}),A=(0,c.useRef)(null),N=(0,c.useRef)(null),I=(0,c.useRef)(!0),L=eE(s),P=(0,c.useRef)(),F=eA({
1state:b,props:s}),M=(0,c.useCallback)(function(e){return T.current[L.getItemId(e)]},[L]);eD(g,[C,w,E,f],X({isInitialMount:I.current,previousResultCount:P.current,items:f,environment:h,itemToString:y},b)),eD(m,[k],X({isInitialMount:I.current,previousResultCount:P.current,items:f,environment:h,itemToString:y},b));var O=eV({menuElement:S.current,highlightedIndex:w,isOpen:C,itemRefs:T,scrollIntoView:p,getItemNodeFromIndex:M});I.current,(0,c.useEffect)(function(){(u||d||C)&&A.current&&A.current.focus()},[]),(0,c.useEffect)(function(){I.current||(P.current=f.length)});var R=eO(C,[A,S,N],h,function(){_({type:9,selectItem:!1})}),D=eR("getInputProps","getMenuProps");(0,c.useEffect)(function(){return I.current=!1,function(){I.current=!0}},[]),(0,c.useEffect)(function(){var e,t;C?(null==(e=h.document)?void 0:e.activeElement)!==A.current&&(null==A||null==(t=A.current)||t.focus()):T.current={}},[C,h]);var V=(0,c.useMemo)(function(){return{ArrowDown:function(e){e.preventDefault(),_({type:0,altKey:e.altKey,getItemNodeFromIndex:M})},ArrowUp:function(e){e.preventDefault(),_({type:1,altKey:e.altKey,getItemNodeFromIndex:M})},Home:function(e){F.current.state.isOpen&&(e.preventDefault(),_({type:3,getItemNodeFromIndex:M}))},End:function(e){F.current.state.isOpen&&(e.preventDefault(),_({type:4,getItemNodeFromIndex:M}))},Escape:function(e){var t=F.current.state;(t.isOpen||t.inputValue||t.selectedItem||t.highlightedIndex>-1)&&(e.preventDefault(),_({type:2}))},Enter:function(e){F.current.state.isOpen&&229!==e.which&&(e.preventDefault(),_({type:7,getItemNodeFromIndex:M}))},PageUp:function(e){F.current.state.isOpen&&(e.preventDefault(),_({type:5,getItemNodeFromIndex:M}))},PageDown:function(e){F.current.state.isOpen&&(e.preventDefault(),_({type:6,getItemNodeFromIndex:M}))}}},[_,F,M]),H=(0,c.useCallback)(function(e){return X({id:L.labelId,htmlFor:L.inputId},e)},[L]),B=(0,c.useCallback)(function(e,t){var n,r=void 0===e?{}:e,i=r.onMouseLeave,l=r.refKey,o=void 0===l?"ref":l,a=r.ref,s=Y(r,eK),u=(void 0===t?{}:t).suppressRefError;return D("getMenuProps",void 0!==u&&u,o,S),X(((n={})[o]=ef(a,function(e){S.current=e}),n.id=L.menuId,n.role="listbox",n["aria-labelledby"]=s&&s["aria-label"]?void 0:""+L.labelId,n.onMouseLeave=ed(i,function(){_({type:11})}),n),s)},[_,D,L]),j=(0,c.useCallback)(function(e){var t,n,r=void 0===e?{}:e,i=r.item,l=r.index,o=r.refKey,a=r.ref,s=r.onMouseMove,u=r.onMouseDown,c=r.onClick;r.onPress;var d=r.disabled,f=Y(r,e$),p=F.current,h=p.props,g=p.state,m=eS(i,l,h.items,"Pass either item or index to getItemProps!")[1];return X(((t={})[void 0===o?"ref":o]=ef(a,function(e){e&&(T.current[L.getItemId(m)]=e)}),t.disabled=d,t.role="option",t["aria-selected"]=""+(m===g.highlightedIndex),t.id=L.getItemId(m),t),!d&&((n={}).onClick=ed(c,function(){_({type:13,index:m})}),n),{onMouseMove:ed(s,function(){m!==g.highlightedIndex&&(O.current=!1,_({type:12,index:m,disabled:d}))}),onMouseDown:ed(u,function(e){return e.preventDefault()})},f)},[_,F,O,L]),z=(0,c.useCallback)(function(e){var t,n=void 0===e?{}:e,r=n.onClick;n.onPress;var i=n.refKey,l=n.ref,o=Y(n,eZ),a=F.current.state;return X(((t={})[void 0===i?"ref":i]=ef(l,function(e){N.current=e}),t["aria-controls"]=L.menuId,t["aria-expanded"]=a.isOpen,t.id=L.toggleButtonId,t.tabIndex=-1,t),!o.disabled&&X({},{onClick:ed(r,function(){_({type:14})})}),o)},[_,F,L]),J=(0,c.useCallback)(function(e,t){var n,r,i=void 0===e?{}:e,l=i.onKeyDown,o=i.onChange,a=i.onInput,s=i.onFocus,u=i.onBlur;i.onChangeText;var c=i.refKey,d=void 0===c?"ref":c,f=i.ref,p=Y(i,eq),g=(void 0===t?{}:t).suppressRefError;D("getInputProps",void 0!==g&&g,d,A);var m=F.current.state,y={};return p.disabled||((r={}).onChange=ed(o,a,function(e){_({type:8,inputValue:e.target.value})}),r.onKeyDown=ed(l,function(e){var t=eh(e);t&&V[t]&&V[t](e)}),r.onBlur=ed(u,function(e){m.isOpen&&!R.current.isMouseDown&&_({type:9,selectItem:null!==e.relatedTarget||h.document.activeElement===h.document.body})}),r.onFocus=ed(s,function(){m.isOpen||_({type:10})}),y=r),X(((n={})[d]=ef(f,function(e){A.current=e}),n["aria-activedescendant"]=m.isOpen&&m.highlightedIndex>-1?L.getItemId(m.highlightedIndex):"",n["aria-autocomplete"]="list",n["aria-controls"]=L.menuId,n["aria-expanded"]=m.isOpen,n["aria-labelledby"]=p&&p["aria-label"]?void 0:""+L.labelId,n.autoComplete="off",n.id=L.inputId,n.role="combobox",n.value=m.inputValue,n),y,p)},[D,F,L,V,_,R,h]),U=(0,c.useCallback)(function(){_({type:15})},[_]),W=(0,c.useCallback)(function(){_({type:17})},[_]),K=(0,c.useCallback)(function(){_({type:16})},[_]),$=(0,c.useCallback)(function(e){_({type:18,highlightedIndex:e})},[_]),Z=(0,c.useCallback)(function(e){_({type:19,selectedItem:e})},[_]);return{getItemProps:j,getLabelProps:H,getMenuProps:B,getInputProps:J,getToggleButtonProps:z,toggleMenu:U,openMenu:K,closeMenu:W,setHighlightedIndex:$,setInputValue:(0,c.useCallback)(function(e){_({type:20,inputValue:e})}
1,[_]),selectItem:Z,reset:(0,c.useCallback)(function(){_({type:21})},[_]),highlightedIndex:w,isOpen:C,selectedItem:k,inputValue:E}}eG.stateChangeTypes=eJ;ee().array,ee().array,ee().array,ee().func,ee().func,ee().func,ee().number,ee().number,ee().number,ee().func,ee().func,ee().string,ee().string,ee().shape({addEventListener:ee().func,removeEventListener:ee().func,document:ee().shape({getElementById:ee().func,activeElement:ee().any,body:ee().any})});var eY={itemToString:eI.itemToString,stateReducer:eI.stateReducer,environment:eI.environment,getA11yRemovalMessage:function(e){var t=e.removedSelectedItem;return(0,e.itemToString)(t)+" has been removed."},keyNavigationNext:"ArrowRight",keyNavigationPrevious:"ArrowLeft"},eX=Object.freeze({__proto__:null,SelectedItemClick:0,SelectedItemKeyDownDelete:1,SelectedItemKeyDownBackspace:2,SelectedItemKeyDownNavigationNext:3,SelectedItemKeyDownNavigationPrevious:4,DropdownKeyDownNavigationPrevious:5,DropdownKeyDownBackspace:6,DropdownClick:7,FunctionAddSelectedItem:8,FunctionRemoveSelectedItem:9,FunctionSetSelectedItems:10,FunctionSetActiveIndex:11,FunctionReset:12});var eQ=e=>e instanceof Date,e0=e=>null==e,e1=e=>!e0(e)&&!Array.isArray(e)&&"object"==typeof e&&!eQ(e),e2=e=>e1(e)&&e.target?"checkbox"===e.target.type?e.target.checked:e.target.value:e,e5=(e,t)=>t.split(".").some((t,n,r)=>!isNaN(Number(t))&&e.has(r.slice(0,n).join("."))),e9="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function e3(e){if(e instanceof Date)return new Date(e);let t="undefined"!=typeof FileList&&e instanceof FileList;if(e9&&(e instanceof Blob||t))return e;let n=Array.isArray(e);if(!n&&!(e1(e)&&(e=>{let t=e.constructor&&e.constructor.prototype;return e1(t)&&t.hasOwnProperty("isPrototypeOf")})(e)))return e;let r=n?[]:Object.create(Object.getPrototypeOf(e));for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e3(e[t]));return r}var e8=e=>/^\w*$/.test(e),e7=e=>void 0===e,e4=e=>Array.isArray(e)?e.filter(Boolean):[],e6=e=>e4(e.replace(/["|']|\]/g,"").split(/\.|\[/)),te=(e,t,n)=>{if(!t||!e1(e))return n;let r=(e8(t)?[t]:e6(t)).reduce((e,t)=>e0(e)?e:e[t],e);return e7(r)||r===e?e7(e[t])?n:e[t]:r},tt=e=>"function"==typeof e,tn=(e,t,n)=>{let r=-1,i=e8(t)?[t]:e6(t),l=i.length,o=l-1;for(;++r<l;){let t=i[r],l=n;if(r!==o){let n=e[t];l=e1(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=l,e=e[t]}};let tr={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},ti={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},tl={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},to="form",ta="root",ts=c.createContext(null);ts.displayName="HookFormControlContext";let tu=()=>c.useContext(ts);var tc=(e,t,n,r=!0)=>{let i={defaultValues:t._defaultValues};for(let l in e)Object.defineProperty(i,l,{get:()=>(t._proxyFormState[l]!==ti.all&&(t._proxyFormState[l]=!r||ti.all),n&&(n[l]=!0),e[l])});return i};let td="undefined"!=typeof window?c.useLayoutEffect:c.useEffect;var tf=e=>"string"==typeof e,tp=(e,t,n,r,i)=>tf(e)?(r&&t.watch.add(e),te(n,e,i)):Array.isArray(e)?e.map(e=>(r&&t.watch.add(e),te(n,e))):(r&&(t.watchAll=!0),n),th=e=>e0(e)||"object"!=typeof e;function tg(e,t,n=new WeakSet){if(th(e)||th(t))return Object.is(e,t);if(eQ(e)&&eQ(t))return Object.is(e.getTime(),t.getTime());let r=Object.keys(e),i=Object.keys(t);if(r.length!==i.length)return!1;if(n.has(e)||n.has(t))return!0;for(let l of(n.add(e),n.add(t),r)){let r=e[l];if(!i.includes(l))return!1;if("ref"!==l){let e=t[l];if(eQ(r)&&eQ(e)||(e1(r)||Array.isArray(r))&&(e1(e)||Array.isArray(e))?!tg(r,e,n):!Object.is(r,e))return!1}}return!0}let tm=e=>e.render(function(e){let t=tu(),{name:n,disabled:r,control:i=t,shouldUnregister:l,defaultValue:o,exact:a=!0}=e,s=e5(i._names.array,n),u=c.useMemo(()=>
1te(i._formValues,n,te(i._defaultValues,n,o)),[i,n,o]),d=function(e){let t=tu(),{control:n=t,name:r,defaultValue:i,disabled:l,exact:o,compute:a}=e||{},s=c.useRef(i),u=c.useRef(a),d=c.useRef(void 0),f=c.useRef(n),p=c.useRef(r);u.current=a;let[h,g]=c.useState(()=>{let e=n._getWatch(r,s.current);return u.current?u.current(e):e}),m=c.useCallback(e=>{let t=tp(r,n._names,e||n._formValues,!1,s.current);return u.current?u.current(t):t},[n._formValues,n._names,r]),y=c.useCallback(e=>{if(!l){let t=tp(r,n._names,e||n._formValues,!1,s.current);if(u.current){let e=u.current(t);tg(e,d.current)||(g(e),d.current=e)}else g(t)}},[n._formValues,n._names,l,r]);td(()=>(f.current===n&&tg(p.current,r)||(f.current=n,p.current=r,y()),n._subscribe({name:r,formState:{values:!0},exact:o,callback:e=>{y(e.values)}})),[n,o,r,y]),c.useEffect(()=>n._removeUnmounted());let v=f.current!==n,x=p.current,b=c.useMemo(()=>{if(l)return null;let e=!v&&!tg(x,r);return v||e?m():null},[l,v,r,x,m]);return null!==b?b:h}({control:i,name:n,defaultValue:u,exact:a}),f=function(e){let t=tu(),{control:n=t,disabled:r,name:i,exact:l}=e||{},[o,a]=c.useState(n._formState),s=c.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return td(()=>n._subscribe({name:i,formState:s.current,exact:l,callback:e=>{r||a({...n._formState,...e})}}),[i,r,l]),c.useEffect(()=>{s.current.isValid&&n._setValid(!0)},[n]),c.useMemo(()=>tc(o,n,s.current,!1),[o,n])}({control:i,name:n,exact:a}),p=c.useRef(e),h=c.useRef(void 0),g=c.useRef(i.register(n,{...e.rules,value:d,..."boolean"==typeof e.disabled?{disabled:e.disabled}:{}}));p.current=e;let m=c.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!te(f.errors,n)},isDirty:{enumerable:!0,get:()=>!!te(f.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!te(f.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!te(f.validatingFields,n)},error:{enumerable:!0,get:()=>te(f.errors,n)}}),[f,n]),y=c.useCallback(e=>g.current.onChange({target:{value:e2(e),name:n},type:tr.CHANGE}),[n]),v=c.useCallback(()=>g.current.onBlur({target:{value:te(i._formValues,n),name:n},type:tr.BLUR}),[n,i._formValues]),x=c.useCallback(e=>{let t=te(i._fields,n);t&&t._f&&e&&(t._f.ref={focus:()=>tt(e.focus)&&e.focus(),select:()=>tt(e.select)&&e.select(),setCustomValidity:t=>tt(e.setCustomValidity)&&e.setCustomValidity(t),reportValidity:()=>tt(e.reportValidity)&&e.reportValidity()})},[i._fields,n]),b=c.useMemo(()=>({name:n,value:d,..."boolean"==typeof r||f.disabled?{disabled:f.disabled||r}:{},onChange:y,onBlur:v,ref:x}),[n,r,f.disabled,y,v,x,d]);return c.useEffect(()=>{let e=i._options.shouldUnregister||l,t=h.current;t&&t!==n&&!s&&i.unregister(t),i.register(n,{...p.current.rules,..."boolean"==typeof p.current.disabled?{disabled:p.current.disabled}:{}});let r=(e,t)=>{let n=te(i._fields,e);n&&n._f&&(n._f.mount=t)};if(r(n,!0),e){let e=e3(te(i._options.defaultValues,n,p.current.defaultValue));tn(i._defaultValues,n,e),e7(te(i._formValues,n))&&tn(i._formValues,n,e)}return s||i.register(n),h.current=n,()=>{(s?e&&!i._state.action:e)?i.unregister(n):r(n,!1)}},[n,i,s,l]),c.useEffect(()=>{i._setDisabledField({disabled:r,name:n})},[r,n,i]),c.useMemo(()=>({field:b,formState:f,fieldState:m}),[b,f,m])}(e));c.createContext(null).displayName="HookFormContext";var ty=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},tv=e=>Array.isArray(e)?e:[e],tx=()=>{let e=[];return{get observers(){return e},next:t=>{for(let n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}},tb=e=>e1(e)&&!Object.keys(e).length,t_=e=>{if(!e9)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},tC=e=>t_(e)&&e.isConnected;function tw(e,t){let n=Array.isArray(t)?t:e8(t)?[t]:e6(t),r=1===n.length?e:function(e,t){let n=t.slice(0,-1).length,r=0;for(;r<n;)e=e7(e)?r++:e[t[r++]];return e}(e,n),i=n.length-1,l=n[i];return r&&delete r[l],0!==i&&(e1(r)&&tb(r)||Array.isArray(r)&&function(e){for(let t in e)if(e.hasOwnProperty(t)&&!e7(e[t]))return!1;return!0}(r))&&tw(e,n.slice(0,-1)),e}function tk(e){return Array.isArray(e)||e1(e)&&!(e=>{for(let t in e)if(tt(e[t]))return!0;return!1})(e)}function tE(e,t={}){for(let n in e){let r=e[n];tk(r)?(t[n]=Array.isArray(r)?[]:{},tE(r,t[n])):e7(r)||(t[n]=!0)}return t}function tS(e,t,n){for(let r in n||(n=tE(t)),e){let i=e[r];if(tk(i))e7(t)||th(n[r])?n[r]=tE(i,Array.isArray(i)?[]:{}):tS(i,e0(t)?{}:t[r],n[r]);else{let e=t[r];n[r]=!tg(i,e)}}return n}let tT={value:!1,isValid:!1},tA={value:!0,isValid:!0};var tN=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!e7(e[0].attributes.value)?e7(e[0].value)||""===e[0].value?tA:{value:e[0].value,isValid:!0}:tA:tT}return tT},tI=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>e7(e)?e:t?""===e?NaN:e?+e:e:n&&tf(e)?new Date(e):r?r(e):e;let tL={isValid:!1,value:null};var tP=e=>Array.isArray(e)?e.reduce((e,t)=>
1t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,tL):tL;function tF(e){let t=e.ref;return"file"===t.type?t.files:"radio"===t.type?tP(e.refs).value:"select-multiple"===t.type?[...t.selectedOptions].map(({value:e})=>e):"checkbox"===t.type?tN(e.refs).value:tI(e7(t.value)?e.ref.value:t.value,e)}var tM=e=>e7(e)?e:e instanceof RegExp?e.source:e1(e)?e.value instanceof RegExp?e.value.source:e.value:e,tO=e=>({isOnSubmit:!e||e===ti.onSubmit,isOnBlur:e===ti.onBlur,isOnChange:e===ti.onChange,isOnAll:e===ti.all,isOnTouch:e===ti.onTouched});let tR="AsyncFunction";var tD=e=>!!e&&!!e.validate&&!!(tt(e.validate)&&e.validate.constructor.name===tR||e1(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===tR)),tV=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))));let tH=(e,t,n,r)=>{for(let i of n||Object.keys(e)){let n=te(e,i);if(n){let{_f:e,...l}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r)return!0;else if(e.ref&&t(e.ref,e.name)&&!r)return!0;else if(tH(l,t))break}else if(e1(l)&&tH(l,t))break}}};function tB(e,t,n){let r=te(e,n);if(r||e8(n))return{error:r,name:n};let i=n.split(".");for(;i.length;){let r=i.join("."),l=te(t,r),o=te(e,r);if(l&&!Array.isArray(l)&&n!==r)break;if(o&&o.type)return{name:r,error:o};if(o&&o.root&&o.root.type)return{name:`${r}.root`,error:o.root};i.pop()}return{name:n}}var tj=(e,t,n)=>{let r=tv(te(e,n));return tn(r,ta,t[n]),tn(e,n,r),e};function tz(e,t,n="validate"){if(tf(e)||Array.isArray(e)&&e.every(tf)||"boolean"==typeof e&&!e)return{type:n,message:tf(e)?e:"",ref:t}}var tJ=e=>!e1(e)||e instanceof RegExp?{value:e,message:""}:e,tU=async(e,t,n,r,i,l)=>{let{ref:o,refs:a,required:s,maxLength:u,minLength:c,min:d,max:f,pattern:p,validate:h,name:g,valueAsNumber:m,mount:y}=e._f,v=te(n,g);if(!y||t.has(g))return{};let x=a?a[0]:o,b=e=>{i&&x.reportValidity&&(x.setCustomValidity("boolean"==typeof e?"":e||""),x.reportValidity())},_={},C="radio"===o.type,w="checkbox"===o.type,k=(m||"file"===o.type)&&e7(o.value)&&e7(v)||t_(o)&&""===o.value||""===v||Array.isArray(v)&&!v.length,E=ty.bind(null,g,r,_),S=(e,t,n,r=tl.maxLength,i=tl.minLength)=>{let l=e?t:n;_[g]={type:e?r:i,message:l,ref:o,...E(e?r:i,l)}};if(l?!Array.isArray(v)||!v.length:s&&(!(C||w)&&(k||e0(v))||"boolean"==typeof v&&!v||w&&!tN(a).isValid||C&&!tP(a).isValid)){let{value:e,message:t}=tf(s)?{value:!!s,message:s}:tJ(s);if(e&&(_[g]={type:tl.required,message:t,ref:x,...E(tl.required,t)},!r))return b(t),_}if(!k&&(!e0(d)||!e0(f))){let e,t,n=tJ(f),i=tJ(d);if(e0(v)||isNaN(v)){let r=o.valueAsDate||new Date(v),l=e=>new Date(new Date().toDateString()+" "+e),a="time"==o.type,s="week"==o.type;tf(n.value)&&v&&(e=a?l(v)>l(n.value):s?v>n.value:r>new Date(n.value)),tf(i.value)&&v&&(t=a?l(v)<l(i.value):s?v<i.value:r<new Date(i.value))}else{let r=o.valueAsNumber||(v?+v:v);e0(n.value)||(e=r>n.value),e0(i.value)||(t=r<i.value)}if((e||t)&&(S(!!e,n.message,i.message,tl.max,tl.min),!r))return b(_[g].message),_}if((u||c)&&!k&&(tf(v)||l&&Array.isArray(v))){let e=tJ(u),t=tJ(c),n=!e0(e.value)&&v.length>+e.value,i=!e0(t.value)&&v.length<+t.value;if((n||i)&&(S(n,e.message,t.message),!r))return b(_[g].message),_}if(p&&!k&&tf(v)){let{value:e,message:t}=tJ(p);if(e instanceof RegExp&&!v.match(e)&&(_[g]={type:tl.pattern,message:t,ref:o,...E(tl.pattern,t)},!r))return b(t),_}if(h){if(tt(h)){let e=tz(await h(v,n),x);if(e&&(_[g]={...e,...E(tl.validate,e.message)},!r))return b(e.message),_}else if(e1(h)){let e={};for(let t in h){if(!tb(e)&&!r)break;let i=tz(await h[t](v,n),x,t);i&&(e={...i,...E(t,i.message)},b(i.message),r&&(_[g]=e))}if(!tb(e)&&(_[g]={ref:x,...e},!r))return _}}return b(!0),_};let tW={mode:ti.onSubmit,reValidateMode:ti.onChange,shouldFocusError:!0};var tK=n(69194);let t$=e=>e.suggestions.length>0?c.createElement(tZ,{...e}):c.createElement("input",{className:tK.Ay.textInput,size:40,autoFocus:!0,...e.register(e.inputName)}),tZ=({autofocus:e,suggestions:t,control:n,inputName:r,placeholder:l,initialInputValue:o,setValue:a})=>{let[s,d]=c.useState(t.slice(0,20)),f=(0,i.X3)(u.yr),p=t.length>0,{isOpen:h,getToggleButtonProps:g,getMenuProps:m,getInputProps:y,highlightedIndex:v,getItemProps:x,selectedItem:b}=eG({initialInputValue:o,onInputValueChange({inputValue:e=""}){a(r,e),e=e.toLowerCase()||"";let n=[];for(let r of t)if(r.toLowerCase().includes(e)&&(n.push(r),n.length>=20))break;d(n)},items:s,itemToString:e=>e??""}),_=h&&s.length>0;return c.createElement("div",{className:tK.Ay.downshiftAutocompleteContainer},c.createElement("div",{"data-visible-dropdown":_,className:tK.Ay.downshiftInputWrapper},c.createElement(tm,{name:r,control:n,render:({field:t})=>{let n=y();return c.createElement("input",{...n,name:t.name,placeholder:l,className:tK.Ay.downshiftInput,size:30,"data-editor-dialog":!0,autoFocus:e})}}),p&&c.createElement("button",{"aria-label":"toggle menu",type:"button",...g()},f("arrow_drop_down"))),c.createElement("div",{className:tK.Ay.downshiftAutocompleteContainer},c.createElement("ul",{...m(),"data-visible":_},s.map((e,t)=>c.createElement("li",{"data-selected":b===e,"data-highlighted":v===t,key:`${e}${t}`,...x({item:e,index:t})},e)))))};var tq=n(22804);function tG({url:e,title:t,text:n,onSubmit:r,onCancel:i,linkAutocompleteSuggestions:l,showLinkTitleField:o,showAnchorTextField:a}){let{register:s,handleSubmit:d,control:f,setValue:p,reset:h}=function(e={}){let t=c.useRef(void 0),n=c.useRef(void 0),[r,i]=c.useState({isDirty:!1,isValidating:!1,isLoading:tt(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:tt(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!tt(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{let{formControl:n,...i}=function(e={}){let t,n={...tW,...e},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:tt(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},i={},l=(e1(n.defaultValues)||e1(n.values))&&e3(n.defaultValues||n.values)||{},o=n.shouldUnregister?{}:e3(l),a={action:!1,mount:!1,watch:!1,keepIsValid:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set},u=0,c={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={...c},f={...d},p={array:tx(),state:tx()},h=n.criteriaMode===ti.all,g=async e=>{if(!a.keepIsValid&&!n.disabled&&(d.isValid||f.isValid||e)){let e;n.resolver?(e=tb((await b()).errors),m()):e=await w({fields:i,onlyCheckValid:!0,eventType:tr.VALID}),e!==r.isValid&&p.state.next({isValid:e})}},m=(e,t)=>
1{!n.disabled&&(d.isValidating||d.validatingFields||f.isValidating||f.validatingFields)&&((e||Array.from(s.mount)).forEach(e=>{e&&(t?tn(r.validatingFields,e,t):tw(r.validatingFields,e))}),p.state.next({validatingFields:r.validatingFields,isValidating:!tb(r.validatingFields)}))},y=e=>{let t=tS(l,o),n=e.substring(0,e.search(/\.\d+(\.|$)/))||e;tn(r.dirtyFields,n,te(t,n))},v=(e,t,n,r)=>{let s=te(i,e);if(s){let i=te(o,e,e7(n)?te(l,e):n);e7(i)||r&&r.defaultChecked||t?tn(o,e,t?i:tF(s._f)):S(e,i),a.mount&&!a.action&&g()}},x=(e,t,i,o,a)=>{let s=!1,u=!1,c={name:e};if(!n.disabled){if(!i||o){(d.isDirty||f.isDirty)&&(u=r.isDirty,r.isDirty=c.isDirty=k(),s=u!==c.isDirty);let n=tg(te(l,e),t);u=!!te(r.dirtyFields,e),n?tw(r.dirtyFields,e):tn(r.dirtyFields,e,!0),c.dirtyFields=r.dirtyFields,s=s||(d.dirtyFields||f.dirtyFields)&&!n!==u}if(i){let t=te(r.touchedFields,e);t||(tn(r.touchedFields,e,i),c.touchedFields=r.touchedFields,s=s||(d.touchedFields||f.touchedFields)&&t!==i)}s&&a&&p.state.next(c)}return s?c:{}},b=async e=>(m(e,!0),await n.resolver(o,n.context,((e,t,n,r)=>{let i={};for(let n of e){let e=te(t,n);e&&tn(i,n,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}})(e||s.mount,i,n.criteriaMode,n.shouldUseNativeValidation))),_=async e=>{let{errors:t}=await b(e);if(m(e),e)for(let n of e){let e=te(t,n);e?tn(r.errors,n,e):tw(r.errors,n)}else r.errors=t;return t},C=async({name:t,eventType:n})=>{if(e.validate){let i=await e.validate({formValues:o,formState:r,name:t,eventType:n});if(e1(i))for(let e in i)i[e]&&O(`${to}.${e}`,{message:tf(i.message)?i.message:"",type:tl.validate});else tf(i)||!i?O(to,{message:i||"",type:tl.validate}):M(to);return i}return!0},w=async({fields:t,onlyCheckValid:i,name:l,eventType:a,context:u={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(u.runRootValidation=!0,!await C({name:l,eventType:a}))&&(u.valid=!1,i))return u.valid;for(let l in t){let c=t[l];if(c){let{_f:t,...f}=c;if(t){let l=s.array.has(t.name),a=c._f&&tD(c._f);a&&d.validatingFields&&m([t.name],!0);let f=await tU(c,s.disabled,o,h,n.shouldUseNativeValidation&&!i,l);if(a&&d.validatingFields&&m([t.name]),f[t.name]&&(u.valid=!1,i)||(i||(te(f,t.name)?l?tj(r.errors,f,t.name):tn(r.errors,t.name,f[t.name]):tw(r.errors,t.name)),e.shouldUseNativeValidation&&f[t.name]))break}tb(f)||await w({context:u,onlyCheckValid:i,fields:f,name:l,eventType:a})}}return u.valid},k=(e,t)=>!n.disabled&&(e&&t&&tn(o,e,t),!tg(P(),l)),E=(e,t,n)=>tp(e,s,{...a.mount?o:e7(t)?l:tf(e)?{[e]:t}:t},n,t),S=(e,t,n={})=>{let r=te(i,e),l=t;if(r){let n=r._f;n&&(n.disabled||tn(o,e,tI(t,n)),l=t_(n.ref)&&e0(t)?"":t,"select-multiple"===n.ref.type?[...n.ref.options].forEach(e=>e.selected=l.includes(e.value)):n.refs?"checkbox"===n.ref.type?n.refs.forEach(e=>{e.defaultChecked&&e.disabled||(Array.isArray(l)?e.checked=!!l.find(t=>t===e.value):e.checked=l===e.value||!!l)}):n.refs.forEach(e=>e.checked=e.value===l):"file"===n.ref.type?n.ref.value="":(n.ref.value=l,n.ref.type||p.state.next({name:e,values:e3(o)})))}(n.shouldDirty||n.shouldTouch)&&x(e,l,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&L(e)},T=(e,t,n)=>{for(let r in t){if(!t.hasOwnProperty(r))return;let l=t[r],o=e+"."+r,a=te(i,o);(s.array.has(e)||e1(l)||a&&!a._f)&&!eQ(l)?T(o,l,n):S(o,l,n)}},A=(e,t,n={})=>{let l=te(i,e),u=s.array.has(e),c=e3(t);tn(o,e,c),u?(p.array.next({name:e,values:e3(o)}),(d.isDirty||d.dirtyFields||f.isDirty||f.dirtyFields)&&n.shouldDirty&&(y(e),p.state.next({name:e,dirtyFields:r.dirtyFields,isDirty:k(e,c)}))):!l||l._f||e0(c)?S(e,c,n):T(e,c,n),tV(e,s)?p.state.next({...r,name:e,values:e3(o)}):p.state.next({name:a.mount?e:void 0,values:e3(o)})},N=async l=>{a.mount=!0;let c=l.target,y=c.name,v=!0,_=te(i,y),k=e=>{v=Number.isNaN(e)||eQ(e)&&isNaN(e.getTime())||tg(e,te(o,y,e))},E=tO(n.mode),S=tO(n.reValidateMode);if(_){let a,R,D,V=c.type?tF(_._f):e2(l),H=l.type===tr.BLUR||l.type===tr.FOCUS_OUT,B=!((D=_._f).mount&&(D.required||D.min||D.max||D.maxLength||D.minLength||D.pattern||D.validate))&&!e.validate&&!n.resolver&&!te(r.errors,y)&&!_._f.deps||(T=H,A=te(r.touchedFields,y),N=r.isSubmitted,I=S,!(P=E).isOnAll&&(!N&&P.isOnTouch?!(A||T):(N?I.isOnBlur:P.isOnBlur)?!T:(N?!I.isOnChange:!P.isOnChange)||T)),j=tV(y,s,H);tn(o,y,V),H?c&&c.readOnly||(_._f.onBlur&&_._f.onBlur(l),t&&t(0)):_._f.onChange&&_._f.onChange(l);let z=x(y,V,H),J=!tb(z)||j;if(H||p.state.next({name:y,type:l.type,values:e3(o)}),B)return(d.isValid||f.isValid)&&("onBlur"===n.mode?H&&g():H||g()),J&&p.state.next({name:y,...j?{}:z});if(!n.resolver&&e.validate&&await C({name:y,eventType:l.type}),!H&&j&&p.state.next({...r}),n.resolver){let{errors:e}=await b([y]);if(m([y]),k(V),v){let t=tB(r.errors,i,y),n=tB(e,i,t.name||y);a=n.error,y=n.name,R=tb(e)}}else m([y],!0),a=(await tU(_,s.disabled,o,h,n.shouldUseNativeValidation))[y],m([y]),k(V),v&&(a?R=!1:(d.isValid||f.isValid)&&(R=await w({fields:i,onlyCheckValid:!0,name:y,eventType:l.type})));if(v){_._f.deps&&(!Array.isArray(_._f.deps)||_._f.deps.length>0)&&L(_._f.deps);var T,A,N,I,P,F=y,M=R,O=a;let e=te(r.errors,F),i=(d.isValid||f.isValid)&&"boolean"==typeof M&&r.isValid!==M;if(n.delayError&&O){let e;e=()=>{tn(r.errors,F,O),p.state.next({errors:r.errors})},(t=t=>{clearTimeout(u),u=setTimeout(e,t)})(n.delayError)}else clearTimeout(u),t=null,O?tn(r.errors,F,O):tw(r.errors,F);if((O?!tg(e,O):e)||!tb(z)||i){let e={...z,...i&&"boolean"==typeof M?{isValid:M}:{},errors:r.errors,name:F};r={...r,...e},p.state.next(e)}}}},I=(e,t)=>{if(te(r.errors,t)&&e.focus)return e.focus(),1},L=async(e,t={})=>{let l,o,a=tv(e);if(n.resolver){let t=await _(e7(e)?e:a);l=tb(t),o=e?!a.some(e=>te(t,e)):l}else e?((o=(await Promise.all(a.map(async e=>{let t=te(i,e);return await w({fields:t&&t._f?{[e]:t}:t,eventType:tr.TRIGGER})}))).every(Boolean))||r.isValid)&&g():o=l=await w({fields:i,name:e,eventType:tr.TRIGGER});return p.state.next({...!tf(e)||(d.isValid||f.isValid)&&l!==r.isValid?{}:{name:e},...n.resolver||!e?{isValid:l}:{},errors:r.errors}),t.shouldFocus&&!o&&tH(i,I,e?a:s.mount),o},P=(e,t)=>{let n={...a.mount?o:l};return t&&(n=function e(t,n){let r={};for(let i in t)if(t.hasOwnProperty(i)){let l=t[i],o=n[i];if(l&&e1(l)&&o){let t=e(l,o);e1(t)&&(r[i]=t)}else t[i]&&(r[i]=o)}return r}(t.dirtyFields?r.dirtyFields:r.touchedFields,n)),e7(e)?n:tf(e)?te(n,e):e.map(e=>te(n,e))},F=(e,t)=>({invalid:!!te((t||r).errors,e),isDirty:!!te((t||r).dirtyFields,e),error:te((t||r).errors,e),isValidating:!!te(r.validatingFields,e),isTouched:!!te((t||r).touchedFields,e)}),M=e=>{let t=e?tv(e):void 0;
1null==t||t.forEach(e=>tw(r.errors,e)),t?t.forEach(e=>{p.state.next({name:e,errors:r.errors})}):p.state.next({errors:{}})},O=(e,t,n)=>{let l=(te(i,e,{_f:{}})._f||{}).ref,{ref:o,message:a,type:s,...u}=te(r.errors,e)||{};tn(r.errors,e,{...u,...t,ref:l}),p.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&l&&l.focus&&l.focus()},R=e=>p.state.subscribe({next:t=>{let n,i,a;n=e.name,i=t.name,a=e.exact,(!n||!i||n===i||tv(n).some(e=>e&&(a?e===i:e.startsWith(i)||i.startsWith(e))))&&((e,t,n,r)=>{n(e);let{name:i,...l}=e;return tb(l)||Object.keys(l).length>=Object.keys(t).length||Object.keys(l).find(e=>t[e]===(!r||ti.all))})(t,e.formState||d,U,e.reRenderRoot)&&e.callback({values:{...o},...r,...t,defaultValues:l})}}).unsubscribe,D=(e,t={})=>{for(let a of e?tv(e):s.mount)s.mount.delete(a),s.array.delete(a),t.keepValue||(tw(i,a),tw(o,a)),t.keepError||tw(r.errors,a),t.keepDirty||tw(r.dirtyFields,a),t.keepTouched||tw(r.touchedFields,a),t.keepIsValidating||tw(r.validatingFields,a),n.shouldUnregister||t.keepDefaultValue||tw(l,a);p.state.next({values:e3(o)}),p.state.next({...r,...!t.keepDirty?{}:{isDirty:k()}}),t.keepIsValid||g()},V=({disabled:e,name:t})=>{if("boolean"==typeof e&&a.mount||e||s.disabled.has(t)){let n=s.disabled.has(t);e?s.disabled.add(t):s.disabled.delete(t),!!e!==n&&a.mount&&!a.action&&g()}},H=(e,t={})=>{let r=te(i,e),o="boolean"==typeof t.disabled||"boolean"==typeof n.disabled,u=!s.registerName.has(e)&&r&&!r._f.mount;return(tn(i,e,{...r||{},_f:{...r&&r._f?r._f:{ref:{name:e}},name:e,mount:!0,...t}}),s.mount.add(e),r&&!u)?V({disabled:"boolean"==typeof t.disabled?t.disabled:n.disabled,name:e}):v(e,!0,t.value),{...o?{disabled:t.disabled||n.disabled}:{},...n.progressive?{required:!!t.required,min:tM(t.min),max:tM(t.max),minLength:tM(t.minLength),maxLength:tM(t.maxLength),pattern:tM(t.pattern)}:{},name:e,onChange:N,onBlur:N,ref:o=>{if(o){let n;s.registerName.add(e),H(e,t),s.registerName.delete(e),r=te(i,e);let a=e7(o.value)&&o.querySelectorAll&&o.querySelectorAll("input,select,textarea")[0]||o,u="radio"===(n=a).type||"checkbox"===n.type,c=r._f.refs||[];(u?c.find(e=>e===a):a===r._f.ref)||(tn(i,e,{_f:{...r._f,...u?{refs:[...c.filter(tC),a,...Array.isArray(te(l,e))?[{}
1]:[]],ref:{type:a.type,name:e}}:{ref:a}}}),v(e,!1,void 0,a))}else(r=te(i,e,{}))._f&&(r._f.mount=!1),(n.shouldUnregister||t.shouldUnregister)&&!(e5(s.array,e)&&a.action)&&s.unMount.add(e)}}},B=()=>n.shouldFocusError&&tH(i,I,s.mount),j=(e,t)=>async l=>{let a;l&&(l.preventDefault&&l.preventDefault(),l.persist&&l.persist());let u=e3(o);if(p.state.next({isSubmitting:!0}),n.resolver){let{errors:e,values:t}=await b();m(),r.errors=e,u=e3(t)}else await w({fields:i,eventType:tr.SUBMIT});if(s.disabled.size)for(let e of s.disabled)tw(u,e);if(tw(r.errors,ta),tb(r.errors)){p.state.next({errors:{}});try{await e(u,l)}catch(e){a=e}}else t&&await t({...r.errors},l),B(),setTimeout(B);if(p.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:tb(r.errors)&&!a,submitCount:r.submitCount+1,errors:r.errors}),a)throw a},z=(e,t={})=>{let u=e?e3(e):l,c=e3(u),f=tb(e),h=f?l:c;if(t.keepDefaultValues||(l=u),!t.keepValues){if(t.keepDirtyValues)for(let e of Array.from(new Set([...s.mount,...Object.keys(tS(l,o))]))){let t=te(r.dirtyFields,e),n=te(o,e),i=te(h,e);t&&!e7(n)?tn(h,e,n):t||e7(i)||A(e,i)}else{if(e9&&e7(e))for(let e of s.mount){let t=te(i,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(t_(e)){let t=e.closest("form");if(t){t.reset();break}}}}if(t.keepFieldsRef)for(let e of s.mount)A(e,te(h,e));else i={}}o=n.shouldUnregister?t.keepDefaultValues?e3(l):{}:e3(h),p.array.next({values:{...h}}),p.state.next({values:{...h}})}s={mount:t.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!d.isValid||!!t.keepIsValid||!!t.keepDirtyValues||!n.shouldUnregister&&!tb(h),a.watch=!!n.shouldUnregister,a.keepIsValid=!!t.keepIsValid,a.action=!1,t.keepErrors||(r.errors={}),p.state.next({submitCount:t.keepSubmitCount?r.submitCount:0,isDirty:!f&&(t.keepDirty?r.isDirty:!!(t.keepDefaultValues&&!tg(e,l))),isSubmitted:!!t.keepIsSubmitted&&r.isSubmitted,dirtyFields:f?{}:t.keepDirtyValues?t.keepDefaultValues&&o?tS(l,o):r.dirtyFields:t.keepDefaultValues&&e?tS(l,e):t.keepDirty?r.dirtyFields:{},touchedFields:t.keepTouched?r.touchedFields:{},errors:t.keepErrors?r.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&r.isSubmitSuccessful,isSubmitting:!1,defaultValues:l})},J=(e,t)=>z(tt(e)?e(o):e,{...n.resetOptions,...t}),U=e=>{r={...r,...e}},W={control:{register:H,unregister:D,getFieldState:F,handleSubmit:j,setError:O,_subscribe:R,_runSchema:b,_updateIsValidating:m,_focusError:B,_getWatch:E,_getDirty:k,_setValid:g,_setFieldArray:(e,t=[],l,s,u=!0,c=!0)=>{if(s&&l&&!n.disabled){if(a.action=!0,c&&Array.isArray(te(i,e))){let t=l(te(i,e),s.argA,s.argB);u&&tn(i,e,t)}if(c&&Array.isArray(te(r.errors,e))){let t,n=l(te(r.errors,e),s.argA,s.argB);u&&tn(r.errors,e,n),e4(te(t=r.errors,e)).length||tw(t,e)}if((d.touchedFields||f.touchedFields)&&c&&Array.isArray(te(r.touchedFields,e))){let t=l(te(r.touchedFields,e),s.argA,s.argB);u&&tn(r.touchedFields,e,t)}(d.dirtyFields||f.dirtyFields)&&y(e),p.state.next({name:e,isDirty:k(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else tn(o,e,t)},_setDisabledField:V,_setErrors:e=>{r.errors=e,p.state.next({errors:r.errors,isValid:!1})},_getFieldArray:e=>e4(te(a.mount?o:l,e,n.shouldUnregister?te(l,e,[]):[])),_reset:z,_resetDefaultValues:()=>tt(n.defaultValues)&&n.defaultValues().then(e=>{J(e,n.resetOptions),p.state.next({isLoading:!1})}),_removeUnmounted:()=>{for(let e of s.unMount){let t=te(i,e);t&&(t._f.refs?t._f.refs.every(e=>!tC(e)):!tC(t._f.ref))&&D(e)}s.unMount=new Set},_disableForm:e=>{"boolean"==typeof e&&(p.state.next({disabled:e}),tH(i,(t,n)=>{let r=te(i,n);r&&(t.disabled=r._f.disabled||e,Array.isArray(r._f.refs)&&r._f.refs.forEach(t=>{t.disabled=r._f.disabled||e}))},0,!1))},_subjects:p,_proxyFormState:d,get _fields(){return i},get _formValues(){return o},get _state(){return a},set _state(value){a=value},get _defaultValues(){return l},get _names(){return s},set _names(value){s=value},get _formState(){return r},get _options(){return n},set _options(value){n={...n,...value}}},subscribe:e=>(a.mount=!0,f={...f,...e.formState},R({...e,formState:{...c,...e.formState}})),trigger:L,register:H,handleSubmit:j,watch:(e,t)=>tt(e)?p.state.subscribe({next:n=>"values"in n&&e(E(void 0,t),n)}):E(e,t,!0),setValue:A,getValues:P,reset:J,resetField:(e,t={})=>{te(i,e)&&(e7(t.defaultValue)?A(e,e3(te(l,e))):(A(e,t.defaultValue),tn(l,e,e3(t.defaultValue))),t.keepTouched||tw(r.touchedFields,e),t.keepDirty||(tw(r.dirtyFields,e),r.isDirty=t.defaultValue?k(e,e3(te(l,e))):k()),!t.keepError&&(tw(r.errors,e),d.isValid&&g()),p.state.next({...r}))},clearErrors:M,unregister:D,setError:O,setFocus:(e,t={})=>{let n=te(i,e),r=n&&n._f;if(r){let e=r.refs?r.refs[0]:r.ref;e.focus&&setTimeout(()=>{e.focus(),t.shouldSelect&&tt(e.select)&&e.select()})}},getFieldState:F};return{...W,formControl:W}}(e);t.current={...i,formState:r}}let l=t.current.control;return l._options=e,td(()=>{let e=l._subscribe({formState:l._proxyFormState,callback:()=>i({...l._formState}
1),reRenderRoot:!0});return i(e=>({...e,isReady:!0})),l._formState.isReady=!0,e},[l]),c.useEffect(()=>l._disableForm(e.disabled),[l,e.disabled]),c.useEffect(()=>{e.mode&&(l._options.mode=e.mode),e.reValidateMode&&(l._options.reValidateMode=e.reValidateMode)},[l,e.mode,e.reValidateMode]),c.useEffect(()=>{e.errors&&(l._setErrors(e.errors),l._focusError())},[l,e.errors]),c.useEffect(()=>{e.shouldUnregister&&l._subjects.state.next({values:l._getWatch()})},[l,e.shouldUnregister]),c.useEffect(()=>{if(l._proxyFormState.isDirty){let e=l._getDirty();e!==r.isDirty&&l._subjects.state.next({isDirty:e})}},[l,r.isDirty]),c.useEffect(()=>{var t;e.values&&!tg(e.values,n.current)?(l._reset(e.values,{keepFieldsRef:!0,...l._options.resetOptions}),(null==(t=l._options.resetOptions)?void 0:t.keepIsValid)||l._setValid(),n.current=e.values,i(e=>({...e}))):l._resetDefaultValues()},[l,e.values]),c.useEffect(()=>{l._state.mount||(l._setValid(),l._state.mount=!0),l._state.watch&&(l._state.watch=!1,l._subjects.state.next({...l._formState})),l._removeUnmounted()}),t.current.formState=c.useMemo(()=>tc(r,l),[l,r]),t.current}({values:{url:e,title:t,text:n}}),g=(0,u.Bd)();return c.createElement("form",{onSubmit:e=>{d(r)(e),e.stopPropagation(),e.preventDefault()},onReset:e=>{e.stopPropagation(),i()},onKeyDown:e=>{"Escape"===e.key&&(e.stopPropagation(),i())},className:tq(tK.Ay.multiFieldForm,tK.Ay.linkDialogEditForm)},c.createElement("div",{className:tK.Ay.formField}
1,c.createElement("label",{htmlFor:"link-url"},g("createLink.url","URL")),c.createElement(t$,{register:s,initialInputValue:e,inputName:"url",suggestions:l,setValue:p,control:f,placeholder:g("createLink.urlPlaceholder","Select or paste an URL"),autofocus:!0})),a?c.createElement("div",{className:tK.Ay.formField},c.createElement("label",{htmlFor:"link-text",title:g("createLink.textTooltip","The text to be displayed for the link")},g("createLink.text","Anchor text")),c.createElement("input",{id:"link-text",className:tK.Ay.textInput,size:40,...s("text")})):null,o?c.createElement("div",{className:tK.Ay.formField},c.createElement("label",{htmlFor:"link-title",title:g("createLink.titleTooltip","The link's title attribute, shown on hover")},g("createLink.title","Link title")),c.createElement("input",{id:"link-title",className:tK.Ay.textInput,size:40,...s("title")})):null,c.createElement("div",{style:{display:"flex",justifyContent:"flex-end",gap:"var(--spacing-2)"}},c.createElement("button",{type:"submit",title:g("createLink.saveTooltip","Set URL"),"aria-label":g("createLink.saveTooltip","Set URL"),className:tq(tK.Ay.primaryButton)},g("dialogControls.save","Save")),c.createElement("button",{type:"reset",title:g("createLink.cancelTooltip","Cancel change"),"aria-label":g("createLink.cancelTooltip","Cancel change"),className:tq(tK.Ay.secondaryButton)},g("dialogControls.cancel","Cancel"))))}(0,l.guI)();let tY=()=>{let[e,t,n,r,l,o,a]=(0,i.uX)(u.xZ,u.Cp,u.yr,t2,t4,t6,nn),s=(0,i.qM)(t1),d=(0,i.qM)(t5),f=(0,i.qM)(t9),p=(0,i.qM)(t3),h=(0,i.qM)(t8);c.useEffect(()=>{let e=()=>{null==t||t.getEditorState().read(()=>{s(!0)})};return window.addEventListener("resize",e),window.addEventListener("scroll",e),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e)}},[t,s]);let[g,m]=c.useState(!1),y=(0,u.Bd)();if("inactive"===r.type)return null;let v=r.rectangle,x="preview"===r.type&&r.url.startsWith("http");return c.createElement(F,{open:!0},c.createElement(O,{"data-visible":"edit"===r.type,className:tK.Ay.linkDialogAnchor,style:{to
1p:`${v.top}px`,left:`${v.left}px`,width:`${v.width}px`,height:`${v.height}px`}}),c.createElement(B,{container:null==e?void 0:e.current},c.createElement(z,{className:tq(tK.Ay.linkDialogPopoverContent),sideOffset:5,onOpenAutoFocus:e=>{e.preventDefault()},key:r.linkNodeKey},"edit"===r.type&&c.createElement(tG,{url:r.url,title:r.title,text:r.text,onSubmit:d,onCancel:f.bind(null),linkAutocompleteSuggestions:l,showLinkTitleField:a,showAnchorTextField:r.withAnchorText}),"preview"===r.type&&c.createElement(c.Fragment,null,c.createElement("a",{className:tK.Ay.linkDialogPreviewAnchor,href:r.url,...x?{target:"_blank",rel:"noreferrer"}:{},onClick:e=>{null!==o&&(e.preventDefault(),o(r.url))},title:x?y("linkPreview.open","Open {{url}} in new window",{url:r.url}):r.url},c.createElement("span",null,r.url),x&&n("open_in_new")),c.createElement(tX,{onClick:()=>{p()},title:y("linkPreview.edit","Edit link URL"),"aria-label":y("linkPreview.edit","Edit link URL")},n("edit")),c.createElement(G.Kq,null,c.createElement(G.bL,{open:g},c.createElement(G.l9,{asChild:!0},c.createElement(tX,{title:y("linkPreview.copyToClipboard","Copy to clipboard"),"aria-label":y("linkPreview.copyToClipboard","Copy to clipboard"),onClick:()=>{window.navigator.clipboard.writeText(r.url).then(()=>{m(!0),setTimeout(()=>{m(!1)},1e3)})}},n(g?"check":"content_copy"))),c.createElement(G.ZL,{container:null==e?void 0:e.current},c.createElement(G.UC,{className:tq(tK.Ay.tooltipContent),sideOffset:5},y("linkPreview.copied","Copied!"),c.createElement(G.i3,null))))),c.createElement(tX,{title:y("linkPreview.remove","Remove link"),"aria-label":y("linkPreview.remove","Remove link"),onClick:()=>{h()}},n("link_off"))),c.createElement(Z,{className:tK.Ay.popoverArrow}))))},tX=c.forwardRef(({className:e,...t},n)=>c.createElement("button",{className:tq(tK.Ay.actionButton,e),ref:n,...t}));var tQ=n(18191);function t0(e){if(!e)return null;let t=(0,s.OL)(e);if(null===t)return null;let n=t.getParent();return(0,r.FJ)(n)?n:(0,r.FJ)(t)?t:null}let t1=(0,i.HN)(),t2=(0,i.fh)({type:"inactive"},e=>{e.pub(u.Z4,t=>t.registerCommand(l.Q$N,()=>"preview"===e.getValue(t2).type&&(e.pub(t2,{type:"inactive"}),!0),l.AcJ)),e.sub(e.pipe(u.n$),t=>{"rich-text"!==t&&e.pub(t2,{type:"inactive"})}),e.pub(u.Z4,t=>t.registerCommand(l.R18,t=>{if("k"===t.key&&(a.sY?t.metaKey:t.ctrlKey)&&!e.getValue(u.pc)){let n=(0,l.vJq)();if((0,l.I2P)(n))return e.pub(t7),t.stopPropagation(),t.preventDefault(),!0}return!1},l.WgU)),e.sub(e.pipe(t3,(0,i.EY)(t2,u.Cp)),([,t,n])=>{if("preview"===t.type)setTimeout(()=>{null==n||n.getEditorState().read(()=>{let n=(0,l.nsf)(t.linkNodeKey),i=!!(0,r.FJ)(n)&&n.getTextContent().length>0&&1>=n.getChildrenSize(),o=i&&n?n.getTextContent():"";e.pub(t2,{type:"edit",initialUrl:t.url,url:t.url,title:t.title,text:o,withAnchorText:i,linkNodeKey:t.linkNodeKey,rectangle:t.rectangle})})});else throw Error("Cannot switch to edit mode when not in preview mode")}),e.sub(e.pipe(t5,(0,i.EY)(u.Cp,t2,u.cj)),([t,n,i,o])=>{var a,s,u;let c=(null==(a=t.text)?void 0:a.trim())??"",d=(null==(s=t.url)?void 0:s.trim())??"",f=(null==(u=t.title)?void 0:u.trim())??"";if(""!==d){if(null==o?void 0:o.isCollapsed()){let e=c||f||d;null==n||n.update(()=>{let t=t0(o);if(t)if((0,r.iK)(t)){let e=(0,r.zA)(d,{title:f});e.append((0,l.sTu)(c)),t.replace(e),e.select()}else t.setURL(d),t.setTitle(f),nt(t.getFirstChild(),c);else{let t=(0,r.zA)(d,{title:f});t.append((0,l.sTu)(e)),(0,l.H2A)([t]),t.select()}},{discrete:!0})}else null==n||n.update(()=>{nt(null==o?void 0:o.anchor.getNode(),c)}),null==n||n.dispatchCommand(r.yW,{url:d,title:f});e.pub(t2,{type:"preview",linkNodeKey:i.linkNodeKey,rectangle:i.rectangle,title:f,url:d})}else"edit"===i.type&&""!==i.initialUrl&&(null==n||n.dispatchCommand(r.yW,null)),e.pub(t2,{type:"inactive"})}),e.link(e.pipe(t9,(0,i.EY)(t2,u.Cp),(0,i.Tj)(([,e,t])=>{if("edit"===e.type)return(null==t||t.focus(),""===e.initialUrl)?{type:"inactive"}:{type:"preview",url:e.initialUrl,linkNodeKey:e.linkNodeKey,rectangle:e.rectangle};throw Error("Cannot cancel edit when not in edit mode")})),t2),e.link(e.pipe(e.combine(u.cj,t1),(0,i.EY)(u.Cp,t2,u.pc),(0,i.Tj)(([[e],t,n,r])=>
1{if(!(0,l.I2P)(e)||!t||r)return{type:"inactive"};{let n=t0(e);if(!e.isCollapsed()||!n)return{type:"inactive"};{let e=(0,s.eo)(t);return e?{type:"preview",url:n.getURL(),linkNodeKey:n.getKey(),title:n.getTitle(),rectangle:e}:{type:"inactive"}}}})),t2)}),t5=(0,i.HN)(),t9=(0,i.rc)();(0,i.rc)();let t3=(0,i.rc)(),t8=(0,i.rc)(e=>{e.sub(e.pipe(t8,(0,i.EY)(u.Cp)),([,e])=>{null==e||e.dispatchCommand(r.yW,null)})}),t7=(0,i.rc)(e=>{e.sub(e.pipe(t7,(0,i.EY)(u.cj,u.Cp),(0,i.pb)(([,e])=>(0,l.I2P)(e))),([,t,n])=>{null==n||n.focus(()=>{setTimeout(()=>{n.getEditorState().read(()=>{let r=t0(t),i=(0,s.eo)(n),l=(null==r?void 0:r.getURL())??"",o=(null==r?void 0:r.getURL())??"",a=(null==r?void 0:r.getTitle())??"",u=(null==r?void 0:r.getKey())??"",c=r?r.getTextContent().length>0&&1>=r.getChildrenSize():!!(null==t?void 0:t.isCollapsed()),d=c&&r?r.getTextContent():"";e.pub(t2,{type:"edit",initialUrl:l,url:o,title:a,text:d,withAnchorText:c,linkNodeKey:u,rectangle:i})})})})})}),t4=(0,i.fh)([]),t6=(0,i.fh)(null),ne=(0,i.fh)(null,e=>{e.pub(u.Z4,t=>{function n(n){let[i,o]=e.getValues([u.pc,ne]);i&&null!==o&&t.update(()=>{let e=(0,l.xL4)(n.target);if(null!==e){let t=(0,tQ.Bt)(e,e=>e instanceof r.Db);
1null!==t&&o(n,t,t.getURL())}})}return t.registerRootListener((e,t)=>{e&&e.addEventListener("click",n),t&&t.removeEventListener("click",n)})})});function nt(e,t){(0,l.kFe)(e)&&t&&(e.setTextContent(t),e.selectStart())}let nn=(0,i.fh)(!0),nr=(0,o.Z)({init(e,t){e.pub(u.aC,(null==t?void 0:t.LinkDialog)??tY),e.pub(t6,(null==t?void 0:t.onClickLinkCallback)??null),e.pub(ne,(null==t?void 0:t.onReadOnlyClickLinkCallback)??null),e.pub(nn,(null==t?void 0:t.showLinkTitleField)??!0)},update(e,t={}){e.pub(t4,t.linkAutocompleteSuggestions??[])}})},71882:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,l=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var u;return(void 0===t&&(t={}),!(u=e)||i.test(u)||n.test(u))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(o,s):e.replace(l,s)).replace(r,a))}},72741:(e,t,n)=>{"use strict";n.d(t,{R:()=>J});var r=n(19735),i=n(25118),l=n(48387),o=n(39303),a=n(44696),s=n(32846),u=n(58030);function c(e){return()=>(function(e){if(!function(e,t=!0){if(e)return!1;let n=(0,u.NiT)().getTextContent();return t&&(n=n.trim()),""===n}(e,!1))return!1;let t=(0,u.NiT)().getChildren(),n=t.length;if(n>1)return!1;for(let e=0;e<n;e++){let n=t[e];if((0,u.Cyw)(n))return!1;if((0,u.ff4)(n)){if(!(0,u.bSg)(n)||0!==n.__indent)return!1;let t=n.getChildren(),r=t.length;for(let n=0;n<r;n++){let n=t[e];if(!(0,u.kFe)(n))return!1}}}return!0})(e)}var d=n(18191);let f="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?i.useLayoutEffect:i.useEffect,p=(0,i.forwardRef)(function({editor:e,ariaActiveDescendant:t,ariaAutoComplete:n,ariaControls:r,ariaDescribedBy:l,ariaErrorMessage:o,ariaExpanded:a,ariaInvalid:u,ariaLabel:c,ariaLabelledBy:d,ariaMultiline:p,ariaOwns:h,ariaRequired:g,autoCapitalize:m,className:y,id:v,role:x="textbox",spellCheck:b=!0,style:_,tabIndex:C,"data-testid":w,...k},E){let[S,T]=(0,i.useState)(e.isEditable()),A=(0,i.useCallback)(t=>{t&&t.ownerDocument&&t.ownerDocument.defaultView?e.setRootElement(t):e.setRootElement(null)},[e]),N=(0,i.useMemo)(()=>(function(...e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}})(E,A),[A,E]);return f(()=>(T(e.isEditable()),e.registerEditableListener(e=>{T(e)})),[e]),(0,s.jsx)("div",{"aria-activedescendant":S?t:void 0,"aria-autocomplete":S?n:"none","aria-controls":S?r:void 0,"aria-describedby":l,...null!=o?{"aria-errormessage":o}:{},"aria-expanded":S&&"combobox"===x?!!a:void 0,...null!=u?{"aria-invalid":u}:{},"aria-label":c,"aria-labelledby":d,"aria-multiline":p,"aria-owns":S?h:void 0,"aria-readonly":!S||void 0,"aria-required":g,autoCapitalize:m,className:y,contentEditable:S,"data-testid":w,id:v,ref:N,role:x,spellCheck:b,style:_,tabIndex:C,...k})});function h(e){return e.getEditorState().read(c(e.isComposing()))}let g=(0,i.forwardRef)(function(e,t){let{placeholder:n,...r}=e,[i]=(0,a.DF)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(p,{editor:i,...r,ref:t}),null!=n&&(0,s.jsx)(m,{editor:i,content:n})]})});function m({content:e,editor:t}){let n=function(e){let[t,n]=(0,i.useState)(()=>h(e));return f(()=>{function t(){n(h(e))}return t(),(0,d.Sd)(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),[r,l]=(0,i.useState)(t.isEditable());if((0,i.useLayoutEffect)(()=>(l(t.isEditable()),t.registerEditableListener(e=>{l(e)})),[t]),!n)return null;let o=null;return"function"==typeof e?o=e(r):null!==e&&(o=e),null===o?null:(0,s.jsx)("div",{"aria-hidden":!0,children:o})}function y(e,t){return(y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var v={error:null},x=function(e){function t(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state=v,t.resetErrorBoundary=function(){for(var e,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];null==t.props.onReset||(e=t.props).onReset.apply(e,r),t.reset()},t}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,y(t,e),t.getDerivedStateFromError=function(e){return{error:e}};var n=t.prototype;return n.reset=function(){this.setState(v)},n.componentDidCatch=function(e,t){var n,r;null==(n=(r=this.props).onError)||n.call(r,e,t)},n.componentDidUpdate=function(e,t){var n,r,i,l,o=this.state.error,a=this.props.resetKeys;null!==o&&null!==t.error&&(void 0===(i=e.resetKeys)&&(i=[]),void 0===(l=a)&&(l=[]),i.length!==l.length||i.some(function(e,t){return!Object.is(e,l[t])}))&&(null==(n=(r=this.props).onResetKeysChange)||n.call(r,e.resetKeys,a),this.reset())},n.render=function(){var e=this.state.error,t=this.props,n=t.fallbackRender,r=t.FallbackComponent,l=t.fallback;if(null!==e){var o={error:e,resetErrorBoundary:this.resetErrorBoundary};if(i.isValidElement(l))return l;if("function"==typeof n)return n(o);if(r)return i.createElement(r,o);throw Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(i.Component);function b({children:e,onError:t}){return(0,s.jsx)(x,{fallback:(0,s.jsx)("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:e})}let _="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?i.useLayoutEffect:i.useEffect;function C(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>
1e.registerEditableListener(t)}}var w=n(48123),k=n(87693);let E="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?i.useLayoutEffect:i.useEffect;function S(e){return e.getEditorState().read(c(e.isComposing()))}function T({contentEditable:e,placeholder:t=null,ErrorBoundary:n}){var r;let[l]=(0,a.DF)(),o=function(e,t){let[n,r]=(0,i.useState)(()=>e.getDecorators());return E(()=>e.registerDecoratorListener(e=>{(0,w.flushSync)(()=>{r(e)})}),[e]),(0,i.useEffect)(()=>{r(e.getDecorators())},[e]),(0,i.useMemo)(()=>{let r=[],l=Object.keys(n);for(let o=0;o<l.length;o++){let a=l[o],u=(0,s.jsx)(t,{onError:t=>e._onError(t),children:(0,s.jsx)(i.Suspense,{fallback:null,children:n[a]})}),c=e.getElementByKey(a);null!==c&&r.push((0,w.createPortal)(u,c,a))}return r},[t,n,e])}(l,n);return E(()=>(0,d.Sd)((0,k.ZI)(r),function(e){let t=window.location.origin,n=n=>{if(n.origin!==t)return;let r=e.getRootElement();if(document.activeElement!==r)return;let i=n.data;if("string"==typeof i){let t;try{t=JSON.parse(i)}catch(e){return}if(t&&"nuanria_messaging"===t.protocol&&"request"===t.type){let r=t.payload;if(r&&"makeChanges"===r.functionId){let t=r.args;if(t){let[r,i,l,o,a,s]=t;e.update(()=>{let e=(0,u.vJq)();if((0,u.I2P)(e)){let t=e.anchor,s=t.getNode(),c=0,d=0;if((0,u.kFe)(s)&&r>=0&&i>=0&&(c=r,d=r+i,e.setTextNodeRange(s,c,s,d)),c===d&&""===l||(e.insertRawText(l),s=t.getNode()),(0,u.kFe)(s)){c=o,d=o+a;let t=s.getTextContentSize();c=c>t?t:c,d=d>t?t:d,e.setTextNodeRange(s,c,s,d)}n.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}}(r)),[r=l]),(0,s.jsxs)(s.Fragment,{children:[e,(0,s.jsx)(A,{content:t}),o]})}function A({content:e}){let[t]=(0,a.DF)(),n=function(e){let[t,n]=(0,i.useState)(()=>S(e));return E(()=>{function t(){n(S(e))}return t(),(0,d.Sd)(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),r=function(){let[e]=(0,a.DF)(),t=(0,i.useMemo)(()=>C(e),[e,C]),[n,r]=(0,i.useState)(()=>t.initialValueFn()),l=(0,i.useRef)(n);return _(()=>{let{initialValueFn:e,subscribe:n}=t,i=e();return l.current!==i&&(l.current=i,r(i)),n(e=>{l.current=e,r(e)})},[t,C]),n}();return n?"function"==typeof e?e(r):e:null}var N=n(22804);let I={undo:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M7.202 18.5V17H14.3788C15.4224 17 16.3205 16.6554 17.073 15.9663C17.8257 15.2773 18.202 14.4263 18.202 13.4135C18.202 12.4007 17.8257 11.5512 17.073 10.8652C16.3205 10.1794 15.4224 9.8365 14.3788 9.8365H7.35775L10.1402 12.6193L9.0865 13.673L4.5 9.0865L9.0865 4.5L10.1402 5.55375L7.35775 8.3365H14.3788C15.8416 8.3365 17.0945 8.82467 18.1375 9.801C19.1805 10.7773 19.702 11.9815 19.702 13.4135C19.702 14.8455 19.1805 16.0513 18.1375 17.0308C17.0945 18.0103 15.8416 18.5 14.3788 18.5H7.202Z",fill:"currentColor"})),redo:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M9.6211 18.5C8.15827 18.5 6.90535 18.0103 5.86235 17.0308C4.81935 16.0513 4.29785 14.8455 4.29785 13.4135C4.29785 11.9815 4.81935 10.7773 5.86235 9.801C6.90535 8.82467 8.15827 8.3365 9.6211 8.3365H16.6421L13.8596 5.55375L14.9134 4.5L19.4999 9.0865L14.9134 13.673L13.8596 12.6193L16.6421 9.8365H9.6211C8.57744 9.8365 7.67935 10.1794 6.92685 10.8652C6.17418 11.5512 5.79785 12.4007 5.79785 13.4135C5.79785 14.4263 6.17418 15.2773 6.92685 15.9663C7.67935 16.6554 8.57744 17 9.6211 17H16.7979V18.5H9.6211Z",fill:"currentColor"})),format_bold:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M7.33838 18.625V5.375H12.1999C13.219 5.375 14.1405 5.69233 14.9644 6.327C15.788 6.9615 16.1999 7.816 16.1999 8.8905C16.1999 9.63783 16.0194 10.2471 15.6584 10.7182C15.2975 11.1894 14.9088 11.5314 14.4921 11.7442C15.005 11.9211 15.4947 12.2708 15.9614 12.7933C16.428 13.3158 16.6614 14.0193 16.6614 14.9038C16.6614 16.1819 16.1902 17.1217 15.2479 17.723C14.3055 18.3243 13.3562 18.625 12.3999 18.625H7.33838ZM9.48838 16.6328H12.3191C13.1063 16.6328 13.6627 16.4142 13.9884 15.977C14.314 15.5398 14.4769 15.1206 14.4769 14.7192C14.4769 14.3179 14.314 13.8987 13.9884 13.4615C13.6627 13.0243 13.0909 12.8058 12.2729 12.8058H9.48838V16.6328ZM9.48838 10.875H12.0826C12.6903 10.875 13.172 10.7013 13.5279 10.3538C13.8835 10.0064 14.0614 9.59042 14.0614 9.10575C14.0614 8.59042 13.8733 8.16925 13.4971 7.84225C13.1208 7.51542 12.6595 7.352 12.1134 7.352H9.48838V10.875Z",fill:"currentColor"})),format_italic:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M5.39404 18.625V16.8173H9.21129L12.4518 7.18275H8.63454V5.375H17.7883V7.18275H14.2785L11.0383 16.8173H14.5478V18.625H5.39404Z",fill:"currentColor"})),format_underlined:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M5.34619 22.125V20.625H18.6537V22.125H5.34619ZM11.9999 18.5287C10.4448 18.5287 9.23102 18.0566 8.35869 17.1125C7.48619 16.1683 7.04994 14.9032 7.04994 13.3172V5.41345H8.90369V13.4095C8.90369 14.4198 9.17228 15.2295 9.70944 15.8385C10.2466 16.4475 11.0101 16.752 11.9999 16.752C12.9898 16.752 13.7533 16.4475 14.2904 15.8385C14.8276 15.2295 15.0962 14.4198 15.0962 13.4095V5.41345H16.9499V13.3172C16.9499 14.9032 16.5137 16.1683 15.6412 17.1125C14.7689 18.0566 13.5551 18.5287 11.9999 18.5287Z",fill:"currentColor"})),format_highlight:i.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round",strokeLinejoin:"round"},i.createElement("path",{d:"m9 11-6 6v3h9l3-3"}),i.createElement("path",{d:"m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4"})),code:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M7.99994 17.6537L2.34619 11.9999L7.99994 6.34619L9.06919 7.41544L4.46919 12.0154L9.05369 16.5999L7.99994 17.6537ZM15.9999 17.6537L14.9307 16.5844L19.5307 11.9844L14.9462 7.39994L15.9999 6.34619L21.6537 11.9999L15.9999 17.6537Z",fill:"currentColor"})),strikeThrough:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M12.15 19.6923C10.9732 19.6923 9.9315 19.359 9.025 18.6923C8.11867 18.0256 7.45525 17.1128 7.03475 15.9538L8.6385 15.2635C8.91667 16.0444 9.3545 16.6867 9.952 17.1905C10.5493 17.6944 11.2923 17.9463 12.1808 17.9463C12.9578 17.9463 13.6744 17.7508 14.3307 17.3598C14.9872 16.9686 15.3155 16.3487 15.3155 15.5C15.3155 15.123 15.2555 14.7968 15.1355 14.5213C15.0157 14.2456 14.8462 13.9885 14.627 13.75H16.677C16.7987 13.9705 16.8932 14.2256 16.9605 14.5153C17.0278 14.8051 17.0615 15.1334 17.0615 15.5C17.0615 16.8372 16.5747 17.8702 15.601 18.599C14.6272 19.3279 13.4768 19.6923 12.15 19.6923ZM2.25 11.75V10.25H21.75V11.75H2.25ZM12.05 4.19629C13.0475 4.19629 13.9123 4.42704 14.6443 4.88854C15.3763 5.35004 15.9673 6.05896 16.4173 7.01529L14.823 7.73079C14.6218 7.26029 14.2978 6.84462 13.851 6.48379C13.4042 6.12279 12.8141 5.94229 12.0808 5.94229C11.2244 5.94229 10.5392 6.16221 10.025 6.60204C9.51083 7.04171 9.264 7.59104 9.2845 8.25004H7.5385C7.50133 7.16421 7.89783 6.21712 8.728 5.40879C9.558 4.60046 10.6653 4.19629 12.05 4.19629Z",fill:"currentColor"})),superscript:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M16.6924 8V6.2115C16.6924 5.95383 16.7786 5.73875 16.9511 5.56625C17.1235 5.39392 17.3385 5.30775 17.5961 5.30775H19.5001V4.38475H16.6924V3.5H19.4809C19.7385 3.5 19.9536 3.58625 20.1261 3.75875C20.2985 3.93108 20.3846 4.14617 20.3846 4.404V5.2885C20.3846 5.54617 20.2985 5.76125 20.1261 5.93375C19.9536 6.10608 19.7385 6.19225 19.4809 6.19225H17.5771V7.1155H20.3846V8H16.6924ZM4.44238 18.5L8.84638 11.6287L4.77713 5.30775H6.74438L9.95963 10.404H10.0214L13.2501 5.30775H15.2329L11.1194 
111.6287L15.5579 18.5H13.5751L10.0214 12.9308H9.95963L6.42513 18.5H4.44238Z",fill:"currentColor"})),subscript:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M16.6924 20.5V18.7115C16.6924 18.4538 16.7786 18.2387 16.9511 18.0662C17.1235 17.8939 17.3385 17.8077 17.5961 17.8077H19.5001V16.8845H16.6924V16H19.4809C19.7385 16 19.9536 16.0863 20.1261 16.2587C20.2985 16.4311 20.3846 16.6461 20.3846 16.9038V17.7885C20.3846 18.0462 20.2985 18.2612 20.1261 18.4337C19.9536 18.6061 19.7385 18.6923 19.4809 18.6923H17.5771V19.6152H20.3846V20.5H16.6924ZM4.44238 18.6923L8.84638 11.8212L4.77713 5.5H6.74438L9.95963 10.5962H10.0214L13.2501 5.5H15.2329L11.1194 11.8212L15.5579 18.6923H13.5751L10.0214 13.123H9.95963L6.42513 18.6923H4.44238Z",fill:"currentColor"})),format_list_bulleted:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M9.30775 18.75V17.25H20.5V18.75H9.30775ZM9.30775 12.75V11.25H20.5V12.75H9.30775ZM9.30775 6.75005V5.25005H20.5V6.75005H9.30775ZM5.1635 19.6635C4.706 19.6635 4.31442 19.5006 3.98875 19.1748C3.66292 18.8491 3.5 18.4575 3.5 18C3.5 17.5425 3.66292 17.151 3.98875 16.8253C4.31442 16.4995 4.706 16.3365 5.1635 16.3365C5.621 16.3365 6.01258 16.4995 6.33825 16.8253C6.66408 17.151 6.827 17.5425 6.827 18C6.827 18.4575 6.66408 18.8491 6.33825 19.1748C6.
101258 19.5006 5.621 19.6635 5.1635 19.6635ZM5.1635 13.6635C4.706 13.6635 4.31442 13.5006 3.98875 13.1748C3.66292 12.8491 3.5 12.4575 3.5 12C3.5 11.5425 3.66292 11.151 3.98875 10.8253C4.31442 10.4995 4.706 10.3365 5.1635 10.3365C5.621 10.3365 6.01258 10.4995 6.33825 10.8253C6.66408 11.151 6.827 11.5425 6.827 12C6.827 12.4575 6.66408 12.8491 6.33825 13.1748C6.01258 13.5006 5.621 13.6635 5.1635 13.6635ZM5.1635 7.66355C4.706 7.66355 4.31442 7.50063 3.98875 7.1748C3.66292 6.84913 3.5 6.45755 3.5 6.00005C3.5 5.54255 3.66292 5.15096 3.98875 4.8253C4.31442 4.49946 4.706 4.33655 5.1635 4.33655C5.621 4.33655 6.01258 4.49946 6.33825 4.8253C6.66408 5.15096 6.827 5.54255 6.827 6.00005C6.827 6.45755 6.66408 6.84913 6.33825 7.1748C6.01258 7.50063 5.621 7.66355 5.1635 7.66355Z",fill:"currentColor"})),format_list_numbered:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M3.5 21.5V20.3078H6V19.25H4.5V18.0577H6V17H3.5V15.8077H6.34625C6.58592 15.8077 6.78683 15.8888 6.949 16.051C7.11117 16.2132 7.19225 16.4141 7.19225 16.6538V17.8462C7.19225 18.0859 7.11117 18.2868 6.949 18.449C6.78683 18.6112 6.58592 18.6923 6.34625 18.6923C6.58592 18.6923 6.78683 18.7733 6.949 18.9355C7.11117 19.0977 7.19225 19.2987 7.19225 19.5385V20.6538C7.19225 20.8936 7.11117 21.0946 6.949 21.2568C6.78683 21.4189 6.58592 21.5 6.34625 21.5H3.5ZM3.5 14.8463V12.25C3.5 12.0103 3.58108 11.8093 3.74325 11.647C3.90542 11.4848 4.10642 11.4038 4.34625 11.4038H6V10.3462H3.5V9.15375H6.34625C6.58592 9.15375 6.78683 9.23483 6.949 9.397C7.11117 9.55933 7.19225 9.76033 7.19225 10V11.75C7.19225 11.9897 7.11117 12.1907 6.949 12.353C6.78683 12.5152 6.58592 12.5963 6.34625 12.5963H4.69225V13.6538H7.19225V14.8463H3.5ZM5 8.19225V3.69225H3.5V2.5H6.19225V8.19225H5ZM9.30775 18.75V17.25H20.5V18.75H9.30775ZM9.30775 12.75V11.25H20.5V12.75H9.30775ZM9.30775 6.75V5.25H20.5V6.75H9.30775Z",fill:"currentColor"})),format_list_checked:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M5.69425 18.452L2.5 15.2578L3.54425 14.2135L5.66925 16.3385L9.91925 12.0885L10.9635 13.1578L5.69425 18.452ZM5.69425 10.8365L2.5 7.64227L3.54425 6.59802L5.66925 8.72302L9.91925 4.47302L10.9635 5.54227L5.69425 10.8365ZM13.0095 16.5578V15.0578H21.5095V16.5578H13.0095ZM13.0095 8.94227V7.44227H21.5095V8.94227H13.0095Z",fill:"currentColor"})),link:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M10.8077 16.5385H7.0385C5.78283 16.5385 4.7125 16.096 3.8275 15.211C2.9425 14.3262 2.5 13.256 2.5 12.0005C2.5 10.745 2.9425 9.67471 3.8275 8.78955C4.7125 7.90421 5.78283 7.46155 7.0385 7.46155H10.8077V8.96155H7.0385C6.19867 8.96155 5.48233 9.25805 4.8895 9.85105C4.2965 10.444 4 11.1604 4 12C4 12.8397 4.2965 13.556 4.8895 14.149C5.48233 14.742 6.19867 15.0385 7.0385 15.0385H10.8077V16.5385ZM8.25 12.75V11.25H15.75V12.75H8.25ZM13.1923 16.5385V15.0385H16.9615C17.8013 15.0385 18.5177 14.742 19.1105 14.149C19.7035 13.556 20 12.8397 20 12C20 11.1604 19.7035 10.444 19.1105 9.85105C18.5177 9.25805 17.8013 8.96155 16.9615 8.96155H13.1923V7.46155H16.9615C18.2172 7.46155 19.2875 7.90405 20.1725 8.78905C21.0575 9.67388 21.5 10.744 21.5 11.9995C21.5 13.255 21.0575 14.3254 20.1725 15.2105C19.2875 16.0959 18.2172 16.5385 16.9615 16.5385H13.1923Z",fill:"currentColor"})),add_photo:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M5.11537 20.5C4.6182 20.5 4.19262 20.323 3.83862 19.969C3.48462 19.615 3.30762 19.1894 3.30762 18.6922V5.30773C3.30762 4.81056 3.48462 4.38498 3.83862 4.03098C4.19262 3.67698 4.6182 3.49998 5.11537 3.49998H13.8076V4.99998H5.11537C5.02553 4.99998 4.95178 5.02881 4.89412 5.08648C4.83645 5.14415 4.80762 5.2179 4.80762 5.30773V18.6922C4.80762 18.7821 4.83645 18.8558 4.89412 18.9135C4.95178 18.9711 5.02553 19 5.11537 19H18.4999C18.5895 19 18.6633 18.9711 18.7211 18.9135C18.7788 18.8558 18.8076 18.7821 18.8076 18.6922V9.99998H20.3076V18.6922C20.3076 19.1894 20.1306 19.615 19.7766 19.969C19.4226 20.323 18.997 20.5 18.4999 20.5H5.11537ZM17.1921 8.61523V6.61523H15.1921V5.11548H17.1921V3.11548H18.6921V5.11548H20.6921V6.61523H18.6921V8.61523H17.1921ZM6.55762 16.75H17.1344L13.8459 12.3655L11.0384 16.0192L9.03837 13.4615L6.55762 16.75Z",fill:"currentColor"})),table:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M3.5 18.6923V5.30775C3.5 4.81058 3.677 4.385 4.031 4.031C4.385 3.677 4.81058 3.5 5.30775 3.5H18.6923C19.1894 3.5 19.615 3.677 19.969 4.031C20.323 4.385 20.5 4.81058 20.5 5.30775V18.6923C20.5 19.1894 20.323 19.615 19.969 19.969C19.615 20.323 19.1894 20.5 18.6923 20.5H5.30775C4.81058 20.5 4.385 20.323 4.031 19.969C3.677 19.615 3.5 19.1894 3.5 18.6923ZM5 9.077H19V5.30775C19 5.21792 18.9712 5.14417 18.9135 5.0865C18.8558 5.02883 18.7821 5 18.6923 5H5.30775C5.21792 5 5.14417 5.02883 5.0865 5.0865C5.02883 5.14417 5 5.21792 5 5.30775V9.077ZM10.1615 14.0385H13.8385V10.577H10.1615V14.0385ZM10.1615 19H13.8385V15.5385H10.1615V19ZM5 14.0385H8.6615V10.577H5V14.0385ZM15.3385 14.0385H19V10.577H15.3385V14.0385ZM5.30775 19H8.661
15V15.5385H5V18.6923C5 18.7821 5.02883 18.8558 5.0865 18.9135C5.14417 18.9712 5.21792 19 5.30775 19ZM15.3385 19H18.6923C18.7821 19 18.8558 18.9712 18.9135 18.9135C18.9712 18.8558 19 18.7821 19 18.6923V15.5385H15.3385V19Z",fill:"currentColor"})),horizontal_rule:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M4.5 12.75V11.25H19.5V12.75H4.5Z",fill:"currentColor"})),frontmatter:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M4.5 8.75V7.25H8.5V8.75H4.5Z",fill:"currentColor"}),i.createElement("path",{d:"M4.5 14.75V13.25H8.5V14.75H4.5Z",fill:"currentColor"}),i.createElement("path",{d:"M9.5 8.75V7.25H13.5V8.75H9.5Z",fill:"currentColor"}),i.createElement("path",{d:"M9.5 14.75V13.25H13.5V14.75H9.5Z",fill:"currentColor"}),i.createElement("path",{d:"M14.5 8.75V7.25H18.5V8.75H14.5Z",fill:"currentColor"}),i.createElement("path",{d:"M14.5 14.75V13.25H18.5V14.75H14.5Z",fill:"currentColor"})),frame_source:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M8.6 15.2443L5.35575 12L8.6 8.75575L9.64425 9.825L7.46925 12L9.64425 14.175L8.6 15.2443ZM15.4 15.2443L14.3558 14.175L16.5307 12L14.3558 9.825L15.4 8.75575L18.6443 12L15.4 15.2443ZM5.30775 20.5C4.80258 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V15H5V18.6923C5 18.7692 5.03208 18.8398 5.09625 18.9038C5.16025 18.9679 5.23075 19 5.30775 19H9V20.5H5.30775ZM15 20.5V19H18.6923C18.7692 19 18.8398 18.9679 18.9038 18.9038C18.9679 18.8398 19 18.7692 19 18.6923V15H20.5V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H15ZM3.5 9V5.30775C3.5 4.80258 3.675 4.375 4.025 4.025C4.375 3.675 4.80258 3.5 5.30775 3.5H9V5H5.30775C5.23075 5 5.16025 5.03208 5.09625 5.09625C5.03208 5.16025 5 5.23075 5 5.30775V9H3.5ZM19 9V5.30775C19 5.23075 18.9679 5.16025 18.9038 5.09625C18.8398 5.03208 18.7692 5 18.6923 5H15V3.5H18.6923C19.1974 3.5 19.625 3.675 19.975 4.025C20.325 4.375 20.5 4.80258 20.5 5.30775V9H19Z",fill:"currentColor"})),arrow_drop_down:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M11.9999 14.6537L7.59619 10.25H16.4037L11.9999 14.6537Z",fill:"currentColor"})),admonition:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M12.0001 21.4C11.7654 21.4 11.5385 21.3548 11.3193 21.2645C11.1002 21.174 10.9002 21.0435 10.7193 20.873L3.1271 13.2807C2.9566 13.0999 2.8261 12.8999 2.7356 12.6807C2.64526 12.4616 2.6001 12.2346 2.6001 12C2.6001 11.7653 2.64526 11.5358 2.7356 11.3115C2.8261 11.0871 2.9566 10.8897 3.1271 10.7192L10.7193 3.12698C10.9002 2.94614 11.1002 2.81314 11.3193 2.72798C11.5385 2.64264 11.7654 2.59998 12.0001 2.59998C12.2348 2.59998 12.4643 2.64264 12.6886 2.72798C12.9129 2.81314 13.1103 2.94614 13.2808 3.12698L20.8731 10.7192C21.0539 10.8897 21.1869 11.0871 21.2721 11.3115C21.3574 11.5358 21.4001 11.7653 21.4001 12C21.4001 12.2346 21.3574 12.4616 21.2721 12.6807C21.1869 12.8999 21.0539 13.0999 20.8731 13.2807L13.2808 20.873C13.1103 21.0435 12.9129 21.174 12.6886 21.2645C12.4643 21.3548 12.2348 21.4 12.0001 21.4ZM12.2213 19.8037L19.8039 12.2212C19.8552 12.1699 19.8808 12.0961 19.8808 12C19.8808 11.9038 19.8552 11.8301 19.8039 11.7787L12.2213 4.19623C12.17 4.14489 12.0963 4.11923 12.0001 4.11923C11.9039 4.11923 11.8302 4.14489 11.7788 4.19623L4.19635 11.7787C4.14501 11.8301 4.11935 11.9038 4.11935 12C4.11935 12.0961 4.14501 12.1699 4.19635 12.2212L11.7788 19.8037C11.8302 19.8551 11.9039 19.8807 12.0001 19.8807C12.0963 19.8807 12.17 19.8551 12.2213 19.8037ZM11.2501 13.0865H12.7501V7.47123H11.2501V13.0865ZM12.0001 15.702C12.2258 15.702 12.4168 15.6237 12.5731 15.4672C12.7296 15.3109 12.8078 15.1199 12.8078 14.8942C12.8078 14.6686 12.7296 14.4776 12.5731 14.3212C12.4168 14.1647 12.2258 14.0865 12.0001 14.0865C11.7744 14.0865 11.5834 14.1647 11.4271 14.3212C11.2706 14.4776 11.1923 14.6686 11.1923 14.8942C11.1923 15.1199 11.2706 15.3109 11.4271 15.4672C11.5834 15.6237 11.7744 15.702 12.0001 15.702Z",fill:"currentColor"})),sandpack:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M12.9999 22.5C12.4947 22.5 12.0671 22.325 11.7171 21.975C11.3671 21.625 11.1921 21.1974 11.1921 20.6922V7.30775C11.1921 6.80258 11.3671 6.375 11.7171 6.025C12.0671 5.675 12.4947 5.5 12.9999 5.5H16.3844C16.8895 5.5 17.3171 5.675 17.6671 6.025C18.0171 6.375 18.1921 6.80258 18.1921 7.30775V20.6922C18.1921 21.1974 18.0171 21.625 17.6671 21.975C17.3171 22.325 16.8895 22.5 16.3844 22.5H12.9999ZM12.6921 7.30775V20.6922C12.6921 20.7692 12.7242 20.8398 12.7884 20.9038C12.8524 20.9679 12.9229 21 12.9999 21H16.3844C16.4614 21 16.5319 20.9679 16.5959 20.9038C16.66 20.8398 16.6921 20.7692 16.6921 20.6922V7.30775C16.6921 7.23075 16.66 7.16025 16.5959 7.09625C16.5319 7.03208 16.4614 7 16.3844 7H12.9999C12.9229 7 12.8524 7.03208 12.7884 7.09625C12.7242 7.16025 12.6921 7.23075 12.6921 7.30775ZM6.61537 18.5C6.1102 18.5 5.
168262 18.325 5.33262 17.975C4.98262 17.625 4.80762 17.1974 4.80762 16.6923V3.30775C4.80762 2.80258 4.98262 2.375 5.33262 2.025C5.68262 1.675 6.1102 1.5 6.61537 1.5H9.99987C10.505 1.5 10.9326 1.675 11.2826 2.025C11.6326 2.375 11.8076 2.80258 11.8076 3.30775V16.6923C11.8076 17.1974 11.6326 17.625 11.2826 17.975C10.9326 18.325 10.505 18.5 9.99987 18.5H6.61537ZM6.30762 3.30775V16.6923C6.30762 16.7692 6.3397 16.8398 6.40387 16.9038C6.46787 16.9679 6.53837 17 6.61537 17H9.99987C10.0769 17 10.1474 16.9679 10.2114 16.9038C10.2755 16.8398 10.3076 16.7692 10.3076 16.6923V3.30775C10.3076 3.23075 10.2755 3.16025 10.2114 3.09625C10.1474 3.03208 10.0769 3 9.99987 3H6.61537C6.53837 3 6.46787 3.03208 6.40387 3.09625C6.3397 3.16025 6.30762 3.23075 6.30762 3.30775Z",fill:"currentColor"})),rich_text:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M5.30775 20.5C4.80258 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V5.30775C3.5 4.80258 3.675 4.375 4.025 4.025C4.375 3.675 4.80258 3.5 5.30775 3.5H18.6923C19.1974 3.5 19.625 3.675 19.975 4.025C20.325 4.375 20.5 4.80258 20.5 5.30775V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H5.30775ZM5.30775 19H18.6923C18.7692 19 18.8398 18.9679 18.9038 18.9038C18.9679 18.8398 19 18.7692 19 18.6923V5.30775C19 5.23075 18.9679 5.16025 18.9038 5.09625C18.8398 5.03208 18.7692 5 18.6923 5H5.30775C5.23075 5 5.16025 5.03208 5.09625 5.09625C5.03208 5.16025 5 5.23075 5 5.30775V18.6923C5 18.7692 5.03208 18.8398 5.09625 18.9038C5.16025 18.9679 5.23075 19 5.30775 19ZM6.75 17H17.3268L14 12.3655L11.2308 16.0192L9 13.4615L6.75 17Z",fill:"currentColor"}),i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 12V6.5H9.1925C9.5925 6.5 9.9425 6.65 10.2425 6.95C10.5425 7.25 10.6925 7.6 10.6925 8V8.6925C10.6925 9.03733 10.605 9.32675 10.43 9.56075C10.255 9.79458 10.0168 9.97817 9.7155 10.1115L10.6155 12H9.404L8.504 10.1925H7.1925V12H6ZM9.1925 9H7.1925V7.6925H9.1925C9.26933 7.6925 9.33983 7.7245 9.404 7.7885C9.468 7.85267 9.5 7.92317 9.5 8V8.6925C9.5 8.76933 9.468 8.83983 9.404 8.904C9.33983 8.968 9.26933 9 9.1925 9Z",fill:"currentColor"}),i.createElement("path",{d:"M12.5 7H17.5V8.25H12.5V7Z",fill:"currentColor"}),i.createElement("path",{d:"M12.5 9.25H17.5V10.5H12.5V9.25Z",fill:"currentColor"})),difference:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.30775 20.5C4.80258 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V5.30775C3.5 4.80258 3.675 4.375 4.025 4.025C4.375 3.675 4.80258 3.5 5.30775 3.5H18.6923C19.1974 3.5 19.625 3.675 19.975 4.025C20.325 4.375 20.5 4.80258 20.5 5.30775V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H5.30775ZM18.6923 19H5.30775C5.23075 19 5.16025 18.9679 5.09625 18.9038C5.03208 18.8398 5 18.7692 5 18.6923V5.30775C5 5.23075 5.03208 5.16025 5.09625 5.09625C5.16025 5.03208 5.23075 5 5.30775 5H18.6923C18.7692 5 18.8398 5.03208 18.9038 5.09625C18.9679 5.16025 19 5.23075 19 5.30775V18.6923C19 18.7692 18.9679 18.8398 18.9038 18.9038C18.8398 18.9679 18.7692 19 18.6923 19Z",fill:"currentColor"}),i.createElement("rect",{x:"9",y:"10",width:"5.5",height:"1.5",fill:"currentColor"}),i.createElement("rect",{x:"9",y:"15",width:"5.5",height:"1.5",fill:"currentColor"}),i.createElement("rect",{x:"11",y:"8",width:"1.5",height:"5.5",fill:"currentColor"})),markdown:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.30775 20.5C4.80258 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V5.30775C3.5 4.80258 3.675 4.375 4.025 4.025C4.375 3.675 4.80258 3.5 5.30775 3.5H18.6923C19.1974 3.5 19.625 3.675 19.975 4.025C20.325 4.375 20.5 4.80258 20.5 5.30775V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H5.30775ZM18.6923 19H5.30775C5.23075 19 5.16025 18.9679 5.09625 18.9038C5.03208 18.8398 5 18.7692 5 18.6923V5.30775C5 5.23075 5.03208 5.16025 5.09625 5.09625C5.16025 5.03208 5.23075 5 5.30775 5H18.6923C18.7692 5 18.8398 5.03208 18.9038 5.09625C18.9679 5.16025 19 5.23075 19 5.30775V18.6923C19 18.7692 18.9679 18.8398 18.9038 18.9038C18.8398 18.9679 18.7692 19 18.6923 19Z",fill:"currentColor"}),i.createElement("path",{d:"M13 15H11.5V11L9.5 14L7.5 11V15H6V8H7.5L9.5 11L11.5 8H13V15Z",fill:"currentColor"}),i.createElement("path",{d:"M15.9921 15.5833L13.2886 12.8797L14.0546 12.1137L15.4504 13.5016V7.99597L16.5336 7.99993V13.5016L17.9296 12.1137L18.6954 12.8797L15.9921 15.5833Z",fill:"currentColor"})),open_in_new:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M5.30775 20.5C4.80258 20.5 4.375 20.325 4.025 19.975C3.675 19.625 3.5 19.1974 3.5 18.6923V5.30775C3.5 4.80258 3.675 4.375 4.025 4.025C4.375 3.675 4.80258 3.5 5.30775 3.5H11.6152V5H5.30775C5.23075 5 5.16025 5.03208 5.09625 5.09625C5.03208 5.16025 5 5.23075 5 5.30775V18.6923C5 18.7692 5.03208 18.8398 5.09625 18.9038C5.16025 18.9679 5.23075 19 5.30775 19H18.6923C18.7692 19 18.8398 18.9679 18.9038 18.9038C18.9679 18.8398 19 18.7692 19 18.6923V12.3848H20.5V18.6923C20.5 19.1974 20.325 19.625 19.975 19.975C19.625 20.325 19.1974 20.5 18.6923 20.5H5.30775ZM9.71925 15.3345L8.6655 14.2808L17.9462 5H14V3.5H20.5V10H19V6.05375L9.71925 15.3345Z",fill:"currentColor"})),link_off:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M18.8843 16.1038L17.7498 14.9385C18.4228 14.7552 18.9661 14.3946 19.3796 13.8568C19.7931 13.319 19.9998 12.7 19.9998 12C19.9998 11.1604 19.705 10.444 19.1153 9.85105C18.5255 9.25805 17.8139 8.96155 16.9806 8.96155H13.1728V7.46155H16.9806C18.2293 7.46155 19.2947 7.90422 20.1768 8.78955C21.0588 9.67472 21.4998 10.7449 21.4998 12C21.4998 12.8859 21.262 13.6951 20.7863 14.4278C20.3107 15.1606 19.6767 15.7193 18.8843 16.1038ZM15.5806 12.75L14.0806 11.25H15.7306V12.75H15.5806ZM20.1461 22.2538L1.74609 3.8538L2.79984 2.80005L21.1998 21.2L20.1461 22.2538ZM10.8268 16.5386H7.03834C5.78318 16.5386 4.71301 16.0959 3.82784 15.2105C2.94251 14.3254 2.49984 13.2552 2.49984 12C2.49984 10.8885 2.85784 9.91322 3.57384 9.07405C4.28984 8.23505 5.18826 7.72838 6.26909 7.55405H6.49984L7.90759 8.96155H7.03834C6.19851 8.96155 5.48218 9.25805 4.88934 9.85105C4.29634 10.444 3.99984 11.1604 3.99984 12C3.99984 12.8397 4.29634 13.556 4.88934 14.149C5.48218 14.742 6.19851 15.0385 7.03834 15.0385H10.8268V16.5386ZM8.26909 12.75V11.25H10.2113L11.6863 12.75H8.26909Z",fill:"currentColor"})),edit:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M5 19H6.2615L16.498 8.7635L15.2365 7.502L5 17.7385V19ZM3.5 20.5V17.1155L16.6905 3.93075C16.8417 3.79342 17.0086 3.68733 17.1913 3.6125C17.3741 3.5375 17.5658 3.5 17.7663 3.5C17.9668 3.5 18.1609 3.53558 18.3488 3.60675C18.5367 3.67792 18.7032 3.79108 18.848 3.94625L20.0693 5.
118275C20.2244 5.32758 20.335 5.49425 20.401 5.68275C20.467 5.87125 20.5 6.05975 20.5 6.24825C20.5 6.44942 20.4657 6.64133 20.397 6.824C20.3283 7.00683 20.2191 7.17383 20.0693 7.325L6.8845 20.5H3.5ZM15.8562 8.14375L15.2365 7.502L16.498 8.7635L15.8562 8.14375Z",fill:"currentColor"})),content_copy:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M9.05775 17.5C8.55258 17.5 8.125 17.325 7.775 16.975C7.425 16.625 7.25 16.1974 7.25 15.6923V4.30775C7.25 3.80258 7.425 3.375 7.775 3.025C8.125 2.675 8.55258 2.5 9.05775 2.5H17.4423C17.9474 2.5 18.375 2.675 18.725 3.025C19.075 3.375 19.25 3.80258 19.25 4.30775V15.6923C19.25 16.1974 19.075 16.625 18.725 16.975C18.375 17.325 17.9474 17.5 17.4423 17.5H9.05775ZM9.05775 16H17.4423C17.5192 16 17.5898 15.9679 17.6538 15.9038C17.7179 15.8398 17.75 15.7692 17.75 15.6923V4.30775C17.75 4.23075 17.7179 4.16025 17.6538 4.09625C17.5898 4.03208 17.5192 4 17.4423 4H9.05775C8.98075 4 8.91025 4.03208 8.84625 4.09625C8.78208 4.16025 8.75 4.23075 8.75 4.30775V15.6923C8.75 15.7692 8.78208 15.8398 8.84625 15.9038C8.91025 15.9679 8.98075 16 9.05775 16ZM5.55775 21C5.05258 21 4.625 20.825 4.275 20.475C3.925 20.125 3.75 19.6974 3.75 19.1923V6.30775H5.25V19.1923C5.25 19.2693 5.28208 19.3398 5.34625 19.4038C5.41025 19.4679 5.48075 19.5 5.55775 19.5H15.4423V21H5.55775Z",fill:"currentColor"})),more_horiz:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M6.23096 13.5C5.81846 13.5 5.46537 13.3531 5.17171 13.0592C4.87787 12.7656 4.73096 12.4125 4.73096 12C4.73096 11.5875 4.87787 11.2344 5.17171 10.9408C5.46537 10.6469 5.81846 10.5 6.23096 10.5C6.64346 10.5 6.99662 10.6469 7.29046 10.9408C7.58412 11.2344 7.73096 11.5875 7.73096 12C7.73096 12.4125 7.58412 12.7656 7.29046 13.0592C6.99662 13.3531 6.64346 13.5 6.23096 13.5ZM12.0002 13.5C11.5877 13.5 11.2346 13.3531 10.941 13.0592C10.6471 12.7656 10.5002 12.4125 10.5002 12C10.5002 11.5875 10.6471 11.2344 10.941 10.9408C11.2346 10.6469 11.5877 10.5 12.0002 10.5C12.4127 10.5 12.7658 10.6469 13.0595 10.9408C13.3533 11.2344 13.5002 11.5875 13.5002 12C13.5002 12.4125 13.3533 12.7656 13.0595 13.0592C12.7658 13.3531 12.4127 13.5 12.0002 13.5ZM17.7695 13.5C17.357 13.5 17.0038 13.3531 16.71 13.0592C16.4163 12.7656 16.2695 12.4125 16.2695 12C16.2695 11.5875 16.4163 11.2344 16.71 10.9408C17.0038 10.6469 17.357 10.5 17.7695 10.5C18.182 10.5 18.535 10.6469 18.8287 10.9408C19.1225 11.2344 19.2695 11.5875 19.2695 12C19.2695 12.4125 19.1225 12.7656 18.8287 13.0592C18.535 13.3531 18.182 13.5 17.7695 13.5Z",fill:"currentColor"})),more_vert:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M12 19.2692C11.5875 19.2692 11.2344 19.1223 10.9408 18.8285C10.6469 18.5348 10.5 18.1817 10.5 17.7692C10.5 17.3567 10.6469 17.0035 10.9408 16.7097C11.2344 16.416 11.5875 16.2692 12 16.2692C12.4125 16.2692 12.7656 16.416 13.0592 16.7097C13.3531 17.0035 13.5 17.3567 13.5 17.7692C13.5 18.1817 13.3531 18.5348 13.0592 18.8285C12.7656 19.1223 12.4125 19.2692 12 19.2692ZM12 13.5C11.5875 13.5 11.2344 13.353 10.9408 13.0592C10.6469 12.7655 10.5 12.4125 10.5 12C10.5 11.5875 10.6469 11.2344 10.9408 10.9407C11.2344 10.6469 11.5875 10.5 12 10.5C12.4125 10.5 12.7656 10.6469 13.0592 10.9407C13.3531 11.2344 13.5 11.5875 13.5 12C13.5 12.4125 13.3531 12.7655 13.0592 13.0592C12.7656 13.353 12.4125 13.5 12 13.5ZM12 7.73071C11.5875 7.73071 11.2344 7.58388 10.9408 7.29021C10.6469 6.99638 10.5 6.64321 10.5 6.23071C10.5 5.81821 10.6469 5.46513 10.9408 5.17146C11.2344 4.87763 11.5875 4.73071 12 4.73071C12.4125 4.73071 12.7656 4.87763 13.0592 5.17146C13.3531 5.46513 13.5 5.81821 13.5 6.23071C13.5 6.64321 13.3531 6.99638 13.0592 7.29021C12.7656 7.58388 12.4125 7.73071 12 7.73071Z",fill:"currentColor"})),close:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M6.39994 18.6538L5.34619 17.6L10.9462 12L5.34619 6.4L6.39994 5.34625L11.9999 10.9463L17.5999 5.34625L18.6537 6.4L13.0537 12L18.6537 17.6L17.5999 18.6538L11.9999 13.0538L6.39994 18.6538Z",fill:"currentColor"})),settings:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M9.69225 21.5L9.3115 18.4538C9.04367 18.3641 8.769 18.2385 8.4875 18.077C8.20617 17.9153 7.95459 17.7422 7.73275 17.5577L4.9115 18.75L2.604 14.75L5.04425 12.9058C5.02125 12.7571 5.00492 12.6077 4.99525 12.4578C4.98559 12.3078 4.98075 12.1583 4.98075 12.0095C4.98075 11.8673 4.98559 11.7228 4.99525 11.576C5.00492 11.4292 5.02125 11.2686 5.04425 11.0943L2.604 9.25L4.9115 5.26925L7.723 6.452C7.96417 6.261 8.22159 6.08633 8.49525 5.928C8.76892 5.76967 9.03784 5.64242 9.302 5.54625L9.69225 2.5H14.3078L14.6885 5.55575C14.9885 5.66475 15.2599 5.792 15.5028 5.9375C15.7458 6.083 15.991 6.2545 16.2385 6.452L19.0885 5.26925L21.396 9.25L18.9173 11.123C18.9531 11.2845 18.9727 11.4355 18.976 11.576C18.9792 11.7163 18.9808 11.8577 18.9808 12C18.9808 12.1358 18.9775 12.274 18.971 12.4145C18.9647 12.5548 18.9417 12.7154 18.902 12.8963L21.3615 14.75L19.0538 18.75L16.2385 17.548C15.99
11 17.7455 15.7384 17.9202 15.4808 18.072C15.2231 18.224 14.959 18.3481 14.6885 18.4443L14.3078 21.5H9.69225ZM11 20H12.9655L13.325 17.3212C13.8353 17.1879 14.3017 16.9985 14.724 16.753C15.1465 16.5073 15.5539 16.1916 15.9463 15.8057L18.4308 16.85L19.4155 15.15L17.2463 13.5155C17.3296 13.2565 17.3863 13.0026 17.4163 12.7537C17.4464 12.5051 17.4615 12.2538 17.4615 12C17.4615 11.7397 17.4464 11.4884 17.4163 11.2463C17.3863 11.0039 17.3296 10.7564 17.2463 10.5038L19.4345 8.85L18.45 7.15L15.9365 8.2095C15.6018 7.85183 15.2009 7.53583 14.7338 7.2615C14.2664 6.98717 13.7937 6.79292 13.3155 6.67875L13 4H11.0155L10.6845 6.66925C10.1743 6.78975 9.70325 6.97433 9.27125 7.223C8.83909 7.47183 8.42684 7.79233 8.0345 8.1845L5.55 7.15L4.5655 8.85L6.725 10.4595C6.64167 10.6968 6.58334 10.9437 6.55 11.2C6.51667 11.4563 6.5 11.7262 6.5 12.0095C6.5 12.2698 6.51667 12.525 6.55 12.775C6.58334 13.025 6.6385 13.2718 6.7155 13.5155L4.5655 15.15L5.55 16.85L8.025 15.8C8.4045 16.1897 8.81025 16.5089 9.24225 16.7578C9.67442 17.0064 10.152 17.1974 10.675 17.3307L11 20ZM12.0115 15C12.8435 15 13.5515 14.708 14.1355 14.124C14.7195 13.54 15.0115 12.832 15.0115 12C15.0115 11.168 14.7195 10.46 14.1355 9.876C13.5515 9.292 12.8435 9 12.0115 9C11.1692 9 10.4586 9.292 9.87975 9.876C9.30092 10.46 9.0115 11.168 9.0115 12C9.0115 12.832 9.30092 13.54 9.87975 14.124C10.4586 14.708 11.1692 15 12.0115 15Z",fill:"currentColor"})),delete_big:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M7.30775 20.5C6.80908 20.5 6.38308 20.3234 6.02975 19.9702C5.67658 19.6169 5.5 19.1909 5.5 18.6922V5.99998H4.5V4.49998H9V3.61548H15V4.49998H19.5V5.99998H18.5V18.6922C18.5 19.1974 18.325 19.625 17.975 19.975C17.625 20.325 17.1974 20.5 16.6923 20.5H7.30775ZM17 5.99998H7V18.6922C7 18.7821 7.02883 18.8558 7.0865 18.9135C7.14417 18.9711 7.21792 19 7.30775 19H16.6923C16.7692 19 16.8398 18.9679 16.9038 18.9037C16.9679 18.8397 17 18.7692 17 18.6922V5.99998ZM9.404 17H10.9037V7.99998H9.404V17ZM13.0962 17H14.596V7.99998H13.0962V17Z",fill:"currentColor"})),delete_small:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M7.30775 20.5C6.80908 20.5 6.38308 20.3234 6.02975 19.9702C5.67658 19.6169 5.5 19.1909 5.5 18.6922V5.99998H4.5V4.49998H9V3.61548H15V4.49998H19.5V5.99998H18.5V18.6922C18.5 19.1974 18.325 19.625 17.975 19.975C17.625 20.325 17.1974 20.5 16.6923 20.5H7.30775ZM17 5.99998H7V18.6922C7 18.7821 7.02883 18.8558 7.0865 18.9135C7.14417 18.9711 7.21792 19 7.30775 19H16.6923C16.7692 19 16.8398 18.9679 16.9038 18.9037C16.9679 18.8397 17 18.7692 17 18.6922V5.99998ZM9.404 17H10.9037V7.99998H9.404V17ZM13.0962 17H14.596V7.99998H13.0962V17Z",fill:"currentColor"})),format_align_center:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M3.5 20.5V19H20.5V20.5H3.5ZM7.5 16.625V15.125H16.5V16.625H7.5ZM3.5 12.75V11.25H20.5V12.75H3.5ZM7.5 8.875V7.375H16.5V8.875H7.5ZM3.5 5V3.5H20.5V5H3.5Z",fill:"currentColor"})),format_align_left:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M3.5 20.5V19H20.5V20.5H3.5ZM3.5 16.625V15.125H14.5V16.625H3.5ZM3.5 12.75V11.25H20.5V12.75H3.5ZM3.5 8.875V7.375H14.5V8.875H3.5ZM3.5 5V3.5H20.5V5H3.5Z",fill:"currentColor"})),format_align_right:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M3.5 5V3.5H20.5V5H3.5ZM9.5 8.875V7.375H20.5V8.875H9.5ZM3.5 12.75V11.25H20.5V12.75H3.5ZM9.5 16.625V15.125H20.5V16.625H9.5ZM3.5 20.5V19H20.5V20.5H3.5Z",fill:"currentColor"})),add_row:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.025 10.2077C4.375 9.85775 4.80258 9.68275 5.30775 9.68275H6.5V11.1827H5.30775C5.21792 11.1827 5.14417 11.2116 5.0865 11.2693C5.02883 11.3269 5 11.4007 5 11.4905V16.1923C5 16.2821 5.02883 16.3558 5.0865 16.4135C5.14417 16.4712 5.21792 16.5 5.30775 16.5H18.6923C18.7821 16.5 18.8558 16.4712 18.9135 16.4135C18.9712 16.3558 19 16.2821 19 16.1923V11.4905C19 11.4007 18.9712 11.3269 18.9135 11.2693C18.8558 11.2116 18.7821 11.1827 18.6923 11.1827H17.6923V9.68275H18.6923C19.1974 9.68275 19.625 9.85775 19.975 10.2077C20.325 10.5577 20.5 10.9853 20.5 11.4905V16.1923C20.5 16.6974 20.325 17.125 19.975 17.475C19.625 17.825 19.1974 18 18.6923 18H5.30775C4.80258 18 4.375 17.825 4.025 17.475C3.675 17.125 3.5 16.6974 3.5 16.1923V11.4905C3.5 10.9853 3.675 10.5577 4.025 10.2077Z",fill:"currentColor"}),i.createElement("path",{d:"M11.3848 9.68275V7.5H12.8848V9.68275H15V11.1827H12.8848V13.2307H11.3848V11.1827H9.26925V9.68275H11.3848Z",fill:"currentColor"})),add_column:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.70775 4.025C9.35775 4.375 9.18275 4.80258 9.18275 5.30775V6.5H10.6827V5.30775C10.6827 5.21792 10.7116 5.14417 10.7693 5.0865C10.8269 5.02883 10.9007 5 10.9905 5H15.6923C15.7821 5 15.8558 5.02883 15.9135 5.0865C15.9712 5.14417 16 5.21792 16 5.30775V18.6923C16 18.7821 15.9712 18.8558 15.9135 18.9135C15.8558 18.9712 15.7821 19 15.6923 19H10.9905C10.9007 19 10.8269 18.9712 10.7693 18.9135C10.7116 18.8558 10.6827 18.7821 10.6827 18.6923V17.6923H9.18275V18.6923C9.18275 19.1974 9.35775 19.625 9.70775 19.975C10.0577 20.325 10.4853 20.5 10.9905 20.5H15.6923C16.1974 20.5 16.625 20.325 16.975 19.975C17.325 19.625 17.5 19.1974 17.5 18.6923V5.30775C17.5 4.80258 17.325 4.375 16.975 4.025C16.625 3.675 16.1974 3.5 15.6923 3.5H10.9905C10.4853 3.5 10.0577 3.675 9.70775 4.025Z",fill:"currentColor"}),i.createElement("path",{d:"M9.18275 11.3848H7V12.8848H9.18275V15H10.6827V12.8848H12.7307V11.3848H10.6827V9.26925H9.18275V11.3848Z",fill:"currentColor"})),insert_col_left:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M13.0001 20.1152H8.67713H8.75388H8.69238H13.0001ZM7.19238 19.8075C7.19238 20.3127 7.36738 20.7402 7.71738 21.0902C8.06738 21.4402 8.49497 21.6152 9.00013 21.6152H12.6924C13.1975 21.6152 13.6251 21.4402 13.9751 21.0902C14.3251 20.7402 14.5001 20.3127 14.5001 19.8075V10.423H13.0001V19.8075C13.0001 19.8973 12.9713 19.9711 12.9136 20.0287C12.856 20.0864 12.7822 20.1152 12.6924 20.1152H9.00013C8.9103 20.1152 8.83655 20.0864 8.77888 20.0287C8.72122 19.9711 8.69238 19.8973 8.69238 19.8075V4.69223C8.26422 4.74357 7.90722 4.93299 7.62138 5.26048C7.33538 5.58798 7.19238 5.97548 7.19238 6.42298V19.8075ZM13.0001 2.49998V4.61523H10.8846V6.11523H13.0001V8.23073H14.5001V6.11523H16.6154V4.61523H14.5001V2.49998H13.0001Z",fill:"currentColor"})),insert_row_above:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M20.1152 9.99987V14.3229V14.2461V14.3076V9.99987ZM19.8075 15.8076C20.3127 15.8076 20.7402 15.6326 21.0902 15.2826C21.4402 14.9326 21.6152 14.505 21.6152 13.9999V10.3076C21.6152 9.80245 21.4402 9.37487 21.0902 9.02487C20.7402 8.67487 20.3127 8.49987 19.8075 8.49987H10.423V9.99987H19.8075C19.8973 9.99987 19.9711 10.0287 20.0287 10.0864C20.0864 10.144 20.1152 10.2178 20.1152 10.3076V13.9999C20.1152 14.0897 20.0864 14.1635 20.0287 14.2211C19.9711 14.2788 19.8973 14.3076 19.8075 14.3076H4.69223C4.74357 14.7358 4.93299 15.0928 5.26048 15.3786C5.58798 15.6646 5.97548 15.8076 6.42298 15.8076H19.8075ZM2.49998 9.99987H4.61523V12.1154H6.11523V9.99987H8.23073V8.49987H6.11523V6.38462H4.61523V8.49987H2.49998V9.99987Z",fill:"currentColor"})),insert_row_below:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M20.1152 14.1924V9.86939V9.94614V9.88464V14.1924ZM19.8075 8.38464C20.3127 8.38464 20.7402 8.55964 21.0902 8.90964C21.4402 9.25964 21.6152 9.68723 21.6152 10.1924V13.8846C21.6152 14.3898 21.4402 14.8174 21.0902 15.1674C20.7402 15.5174 20.3127 15.6924 19.8075 15.6924H10.423V14.1924H19.8075C19.8973 14.1924 19.9711 14.1636 20.0287 14.1059C20.0864 14.0482 20.1152 13.9745 20.1152 13.8846V10.1924C20.1152 10.1026 20.0864 10.0288 20.0287 9.97114C19.9711 9.91348 19.8973 9.88464 19.8075 9.88464H4.69223C4.74357 9.45648 4.93299 9.09948 5.26048 8.81364C5.58798 8.52764 5.97548 8.38464 6.42298 8.38464H19.8075ZM2.49998 14.1924H4.61523V12.0769H6.11523V14.1924H8.23073V15.6924H6.11523V1
17.8076H4.61523V15.6924H2.49998V14.1924Z",fill:"currentColor"})),insert_col_right:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M10.8075 20.1152H15.1305H15.0537H15.1152H10.8075ZM16.6152 19.8075C16.6152 20.3127 16.4402 20.7402 16.0902 21.0902C15.7402 21.4402 15.3127 21.6152 14.8075 21.6152H11.1152C10.6101 21.6152 10.1825 21.4402 9.83248 21.0902C9.48248 20.7402 9.30748 20.3127 9.30748 19.8075V10.423H10.8075V19.8075C10.8075 19.8973 10.8363 19.9711 10.894 20.0287C10.9517 20.0864 11.0254 20.1152 11.1152 20.1152H14.8075C14.8973 20.1152 14.9711 20.0864 15.0287 20.0287C15.0864 19.9711 15.1152 19.8973 15.1152 19.8075V4.69223C15.5434 4.74357 15.9004 4.93299 16.1862 5.26048C16.4722 5.58798 16.6152 5.97548 16.6152 6.42298V19.8075ZM10.8075 2.49998V4.61523H12.923V6.11523H10.8075V8.23073H9.30748V6.11523H7.19223V4.61523H9.30748V2.49998H10.8075Z",fill:"currentColor"})),check:i.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M9.54983 17.6537L4.21533 12.3192L5.28433 11.25L9.54983 15.5155L18.7153 6.34998L19.7843 7.41923L9.54983 17.6537Z",fill:"currentColor"}))};var L=n(35242),P=n(69194),F=n(60194),M=n(89225);let O=({children:e})=>{let t=(0,r.X3)(l.u0),n=i.useMemo(()=>[t,(0,a.Mx)(null,L.C)],[t]);return i.createElement(a.Gu.Provider,{value:n},e)},R=()=>{let e=(0,l.Bd)(),t=(0,r.qM)(l.Xz),n=(0,r.qM)(l.N2),[o,a,s,u,c,d,f]=(0,r.uX)(l.X2,l.J2,l.GS,l.Me,l.yY,l.M0,l.sF);return i.createElement(i.Fragment,null,u.map((e,t)=>i.createElement(e,{key:t})),i.createElement(B,{wrappers:c},i.createElement("div",{className:N(P.Ay.rootContentEditableWrapper,"mdxeditor-root-contenteditable")},i.createElement(T,{contentEditable:i.createElement("div",{ref:e=>{n(e),t(e?{current:e}:null)}},i.createElement(g,{className:N(P.Ay.contentEditable,o),ariaLabel:e("contentArea.editableMarkdown","editable markdown"),spellCheck:a})),placeholder:i.createElement("div",{className:N(P.Ay.contentEditable,P.Ay.placeholder,o)},i.createElement("p",null,d)),ErrorBoundary:b}))),s.map((e,t)=>i.createElement(e,{key:t})),f.map((e,t)=>i.createElement(e,{key:t})))},D={listItemIndent:"one"},V=e=>I[e];function H(e,t,n={}){let r=t;for(let[e,t]of Object.entries(n))r=r.replaceAll(`{{${e}}}`,String(t));return r}let B=({wrappers:e,children:t})=>{if(0===e.length)return i.createElement(i.Fragment,null,t);let n=e[0];return i.createElement(n,null,i.createElement(B,{wrappers:e.slice(1)},t))},j=({children:e,className:t,overlayContainer:n})=>{let o=i.useRef(null),a=i.useRef(null),s=(0,r.qM)(l.xZ),u=(0,r.qM)(l.mF);return i.useEffect(()=>{let e=document.createElement("div");return e.classList.add("mdxeditor-popup-container",P.Ay.editorRoot,P.Ay.popupContainer,...(t??"").trim().split(" ").filter(Boolean)),(n??document.body).appendChild(e),o.current=e,s(o),u(a),()=>{e.remove()}},[t,o,n,s,u]),i.createElement("div",{className:N("mdxeditor",P.Ay.editorRoot,P.Ay.editorWrapper,t),ref:a},e)},z=({mdxRef:e})=>{let t=(0,r.LO)();return i.useImperativeHandle(e,()=>({getMarkdown:()=>{let e=t.getValue(l.n$);return"source"===e||"diff"===e?t.getValue(l.Bn):t.getValue(l.oF)},setMarkdown:e=>{t.pub(l.Sv,e)},insertMarkdown:e=>{t.pub(l.HU,e)},focus:(e,n)=>{var r;null==(r=t.getValue(l.u0))||r.focus(e,n)},getContentEditableHTML:()=>{var e;return(null==(e=t.getValue(l.Xz))?void 0:e.current.innerHTML)??""},getSelectionMarkdown:()=>{let e=t.getValue(l.n$);if("source"===e||"diff"===e)return"";let n=t.getValue(l.Cp);return n?(t.getValue(l.IJ),t.getValue(l.dY),t.getValue(l.Jf),t.getValue(l.X_),t.getValue(l.nK),(0,M.kI)(n)):""}}),[t]),null},J=i.forwardRef((e,t)=>i.createElement(o.g,{plugins:[(0,l.LH)({contentEditableClassName:e.contentEditableClassName??"",spellCheck:e.spellCheck??!0,initialMarkdown:e.markdown,onChange:e.onChange??F.lQ,onBlur:e.onBlur??F.lQ,toMarkdownOptions:e.toMarkdownOptions??D,autoFocus:e.autoFocus??!1,placeholder:e.placeholder??"",readOnly:!!e.readOnly,iconComponentFor:e.iconComponentFor??V,suppressHtmlProcessing:e.suppressHtmlProcessing??!1,onError:e.onError??F.lQ,translation:e.translation??H,trim:e.trim??!0,lexicalTheme:e.lexicalTheme,..."editorState"in e?{editorState:e.editorState}:{},suppressSharedHistory:e.suppressSharedHistory??!1,additionalLexicalNodes:e.additionalLexicalNodes??[],lexicalEditorNamespace:e.lexicalEditorNamespace??"MDXEditor"}),...e.plugins??[]]},i.createElement(j,{className:e.className,overlayContainer:e.overlayContainer},i.createElement(O,null,i.createElement(R,null))),i.createElement(z,{mdxRef:t})))},73309:(e,t,n)=>{"use strict";function r(e,t,n){return">"+(n?"":" ")+e}n.d(t,{p:()=>S});var i=n(40225);function l(e,t,n,r){let l=-1;for(;++l<n.unsafe.length;)if("\n"===n.unsafe[l].character&&(0,i.q)(n.stack,n.unsafe[l]))return/[ \t]/.test(r.before)?"":" ";return"\\\n"}var o=n(53632);function a(e,t,n){return(n?"":"    ")+e}function s(e){let t=e.options.quote||'"';if('"'!==t&&"'"!==t)throw Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}var u=n(78182),c=n(79941);function d(e,t,n){let r=(0,c.S)(e),i=(0,c.S)(t);return void 0===r?void 0===i?"_"===n?{inside:!0,outside:!0}:{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!0}:1===r?void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!0}:{inside:!1,outside:!1}:void 0===i?{inside:!1,outside:!1}:1===i?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function f(e,t,n,r){let i=function(e){let t=e.options.emphasis||"*";if("*"!==t&&"_"!==t)throw Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}(n),l=n.enter("emphasis"),o=n.createTracker(r),a=o.move(i),s=o.move(n.containerPhrasing(e,{after:i,before:a,...o.current()})),c=s.charCodeAt(0),f=d(r.before.charCodeAt(r.before.length-1),c,i);f.inside&&(s=(0,u.T)(c)+s.slice(1));let p=s.charCodeAt(s.length-1),h=d(r.after.charCodeAt(0),p,i);h.inside&&(s=s.slice(0,-1)+(0,u.T)(p));let g=o.move(i);return l(),n.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},a+s+g}f.peek=function(e,t,n){return n.options.emphasis||"*"};var p=n(93475);function h(e){return e.value||""}function g(e,t,n,r){let i=s(n),l='"'===i?"Quote":"Apostrophe",o=n.enter("image"),a=n.enter("label"),u=n.createTracker(r),c=u.move("![");return c+=u.move(n.safe(e.alt,{before:c,after:"]",...u.current()})),c+=u.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(n.safe(e.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(a=n.enter("destinationRaw"),c+=u.move(n.safe(e.url,{before:c,after:e.title?" ":")",...u.current()}))),a(),e.title&&(a=n.enter(`title${l}`),c+=u.move(" "+i),c+=u.move(n.safe(e.title,{before:c,after:i,...u.current()})),c+=u.move(i),a()),c+=u.move(")"),o(),c}function m(e,t,n,r){let i=e.referenceType,l=n.enter("imageReference"),o=n.enter("label"),a=n.createTracker(r),s=a.move("!["),u=n.safe(e.alt,{before:s,after:"]",...a.current()});s+=a.move(u+"]["),o();let c=n.stack;n.stack=[],o=n.enter("reference");let d=n.safe(n.associationId(e),{before:s,after:"]",...a.current()});return o(),n.stack=c,l(),"full"!==i&&u&&u===d?"shortcut"===i?s=s.slice(0,-1):s+=a.move("]"):s+=a.move(d+"]"),s}function y(e,t,n){let r=e.value||"",i="`",l=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++l<n.unsafe.length;){let e,t=n.unsafe[l],i=n.compilePattern(t);if(t.atBreak)for(;e=i.exec(r);){let t=e.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(e.index+1)}}return i+r+i}h.peek=function(){return"<"},g.peek=function(){return"!"},m.peek=function(){return"!"},y.peek=function(){return"`"};var v=n(3736);function x(e,t){let n=(0,v.d)(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&1===e.children.length&&"text"===e.children[0].type&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}function b(e,t,n,r){let i,l,o=s(n),a='"'===o?"Quote":"Apostrophe",u=n.createTracker(r);if(x(e,n)){let t=n.stack;n.stack=[],i=n.enter("autolink");let r=u.move("<");return r+=u.move(n.containerPhrasing(e,{before:r,after:">",...u.current()})),r+=u.move(">"),i(),n.stack=t,r}i=n.enter("link"),l=n.enter("label");let c=u.move("[");return c+=u.move(n.containerPhrasing(e,{before:c,after:"](",...u.current()})),c+=u.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(n.safe(e.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(l=n.enter("destinationRaw"),c+=u.move(n.safe(e.url,{before:c,after:e.title?" ":")",...u.current()}))),l(),e.title&&(l=n.enter(`title${a}`),c+=u.move(" "+o),c+=u.move(n.safe(e.title,{before:c,after:o,...u.current()})),c+=u.move(o),l()),c+=u.move(")"),i(),c}function _(e,t,n,r){let i=e.referenceType,l=n.enter("linkReference"),o=n.enter("label"),a=n.createTracker(r),s=a.move("["),u=n.containerPhrasing(e,{before:s,after:"]",...a.current()});s+=a.move(u+"]["),o();let c=n.stack;n.stack=[],o=n.enter("reference");let d=n.safe(n.associationId(e),{before:s,after:"]",...a.current()});return o(),n.stack=c,l(),"full"!==i&&u&&u===d?"shortcut"===i?s=s.slice(0,-1):s+=a.move("]"):s+=a.move(d+"]"),s}function C(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function w(e){let t=e.options.rule||"*";if("*"!==t&&"-"!==t&&"_"!==t)throw Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}b.peek=function(e,t,n){return x(e,n)?"<":"["},_.peek=function(){return"["};let k=(0,n(88413).C)(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function E(e,t,n,r){let i=function(e){let t=e.options.strong||"*";if("*"!==t&&"_"!==t)throw Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}(n),l=n.enter("strong"),o=n.createTracker(r),a=o.move(i+i),s=o.move(n.containerPhrasing(e,{after:i,before:a,...o.current()})),c=s.charCodeAt(0),f=d(r.before.charCodeAt(r.before.length-1),c,i);f.inside&&(s=(0,u.T)(c)+s.slice(1));let p=s.charCodeAt(s.length-1),h=d(r.after.charCodeAt(0),p,i);h.inside&&(s=s.slice(0,-1)+(0,u.T)(p));let g=o.move(i+i);return l(),n.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},a+s+g}E.peek=function(e,t,n){return n.options.strong||"*"};let S={blockquote:function(e,t,n,i){let l=n.enter("blockquote"),o=n.createTracker(i);o.move("> "),o.shift(2);let a=n.indentLines(n.containerFlow(e,o.current()),r);return l(),a},break:l,code:function(e,t,n,r){let i=function(e){let t=e.options.fence||"`";if("`"!==t&&"~"!==t)throw Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}(n),l=e.value||"",s="`"===i?"GraveAccent":"Tilde";
1if((0,o.m)(e,n)){let e=n.enter("codeIndented"),t=n.indentLines(l,a);return e(),t}let u=n.createTracker(r),c=i.repeat(Math.max(function(e,t){let n=String(e),r=n.indexOf(t),i=r,l=0,o=0;if("string"!=typeof t)throw TypeError("Expected substring");for(;-1!==r;)r===i?++l>o&&(o=l):l=1,i=r+t.length,r=n.indexOf(t,i);return o}(l,i)+1,3)),d=n.enter("codeFenced"),f=u.move(c);if(e.lang){let t=n.enter(`codeFencedLang${s}`);f+=u.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...u.current()})),t()}if(e.lang&&e.meta){let t=n.enter(`codeFencedMeta${s}`);f+=u.move(" "),f+=u.move(n.safe(e.meta,{before:f,after:"\n",encode:["`"],...u.current()})),t()}return f+=u.move("\n"),l&&(f+=u.move(l+"\n")),f+=u.move(c),d(),f},definition:function(e,t,n,r){let i=s(n),l='"'===i?"Quote":"Apostrophe",o=n.enter("definition"),a=n.enter("label"),u=n.createTracker(r),c=u.move("[");return c+=u.move(n.safe(n.associationId(e),{before:c,after:"]",...u.current()})),c+=u.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=u.move("<"),c+=u.move(n.safe(e.url,{before:c,after:">",...u.current()})),c+=u.move(">")):(a=n.enter("destinationRaw"),c+=u.move(n.safe(e.url,{before:c,after:e.title?" ":"\n",...u.current()}))),a(),e.title&&(a=n.enter(`title${l}`),c+=u.move(" "+i),c+=u.move(n.safe(e.title,{before:c,after:i,...u.current()})),c+=u.move(i),a()),o(),c},emphasis:f,hardBreak:l,heading:function(e,t,n,r){let i=Math.max(Math.min(6,e.depth||1),1),l=n.createTracker(r);if((0,p.f)(e,n)){let t=n.enter("headingSetext"),r=n.enter("phrasing"),o=n.containerPhrasing(e,{...l.current(),before:"\n",after:"\n"});return r(),t(),o+"\n"+(1===i?"=":"-").repeat(o.length-(Math.max(o.lastIndexOf("\r"),o.lastIndexOf("\n"))+1))}let o="#".repeat(i),a=n.enter("headingAtx"),s=n.enter("phrasing");l.move(o+" ");let c=n.containerPhrasing(e,{before:"# ",after:"\n",...l.current()});return/^[\t ]/.test(c)&&(c=(0,u.T)(c.charCodeAt(0))+c.slice(1)),c=c?o+" "+c:o,n.options.closeAtx&&(c+=" "+o),s(),a(),c},html:h,image:g,imageReference:m,inlineCode:y,link:b,linkReference:_,list:function(e,t,n,r){let i=n.enter("list"),l=n.bulletCurrent,o=e.ordered?function(e){let t=e.options.bulletOrdered||".";if("."!==t&&")"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}(n):C(n),a=e.ordered?"."===o?")":".":function(e){let t=C(e),n=e.options.bulletOther;if(!n)return"*"===t?"-":"*";if("*"!==n&&"+"!==n&&"-"!==n)throw Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}(n),s=!!t&&!!n.bulletLastUsed&&o===n.bulletLastUsed;if(!e.ordered){let t=e.children?e.children[0]:void 0;if("*"!==o&&"-"!==o||!t||t.children&&t.children[0]||"list"!==n.stack[n.stack.length-1]||"listItem"!==n.stack[n.stack.length-2]||"list"!==n.stack[n.stack.length-3]||"listItem"!==n.stack[n.stack.length-4]||0!==n.indexStack[n.indexStack.length-1]||0!==n.indexStack[n.indexStack.length-2]||0!==n.indexStack[n.indexStack.length-3]||(s=!0),w(n)===o&&t){let t=-1;for(;++t<e.children.length;){let n=e.children[t];if(n&&"listItem"===n.type&&n.children&&n.children[0]&&"thematicBreak"===n.children[0].type){s=!0;break}}}}s&&(o=a),n.bulletCurrent=o;let u=n.containerFlow(e,r);return n.bulletLastUsed=o,n.bulletCurrent=l,i(),u},listItem:function(e,t,n,r){let i=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),l=n.bulletCurrent||C(n);t&&"list"===t.type&&t.ordered&&(l=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+l);let o=l.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(o=4*Math.ceil(o/4));let a=n.createTracker(r);a.move(l+" ".repeat(o-l.length)),a.shift(o);let s=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,a.current()),function(e,t,n){return t?(n?"":" ".repeat(o))+e:(n?l:l+" ".repeat(o-l.length))+e});return s(),u},paragraph:function(e,t,n,r){let i=n.enter("paragraph"),l=n.enter("phrasing"),o=n.containerPhrasing(e,r);return l(),i(),o},root:function(e,t,n,r){return(e.children.some(function(e){return k(e)})?n.containerPhrasing:n.containerFlow).call(n,e,r)},strong:E,text:function(e,t,n,r){return n.safe(e.value,r)},thematicBreak:function(e,t,n){let r=(w(n)+(n.options.ruleSpaces?" ":"")).repeat(function(e){let t=e.options.ruleRepetition||3;if(t<3)throw Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}(n));return n.options.ruleSpaces?r.slice(0,-1):r}}},76486:()=>{!function(e){var t=e.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}
1],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};t.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:t},boolean:t.boolean,variable:t.variable}}(Prism)},78182:(e,t,n)=>{"use strict";function r(e){return"&#x"+e.toString(16).toUpperCase()+";"}n.d(t,{T:()=>r})},78465:(e,t,n)=>{"use strict";n.d(t,{Dc:()=>s,TL:()=>o});var r=n(25118),i=n(59439),l=n(32846);function o(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...l}=e;if(r.isValidElement(n)){var o;let e,a,s=(o=n,(a=(e=Object.getOwnPropertyDescriptor(o.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.ref:(a=(e=Object.getOwnPropertyDescriptor(o,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?o.props.ref:o.props.ref||o.ref),u=function(e,t){let n={...t};for(let r in t){let i=e[r],l=t[r];/^on[A-Z]/.test(r)?i&&l?n[r]=(...e)=>{let t=l(...e);return i(...e),t}:i&&(n[r]=i):"style"===r?n[r]={...i,...l}:"className"===r&&(n[r]=[i,l].filter(Boolean).join(" "))}return{...e,...n}}(l,n.props);return n.type!==r.Fragment&&(u.ref=t?(0,i.t)(t,s):s),r.cloneElement(n,u)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:i,...o}=e,a=r.Children.toArray(i),s=a.find(u);if(s){let e=s.props.children,i=a.map(t=>t!==s?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,l.jsx)(t,{...o,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,i):null})}return(0,l.jsx)(t,{...o,ref:n,children:i})});return n.displayName=`${e}.Slot`,n}var a=Symbol("radix.slottable");function s(e){let t=({children:e})=>(0,l.jsx)(l.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=a,t}function u(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===a}},78726:()=>{Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]
1*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ 	]*")+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach(function(e){e.inside.interpolation.inside=Prism.languages.swift})},79622:(e,t,n)=>{"use strict";n.d(t,{DE:()=>T,GO:()=>I,HY:()=>A,Js:()=>j,Mz:()=>_,YW:()=>v,cz:()=>B,g2:()=>a,i:()=>b,mJ:()=>N,q7:()=>D,uS:()=>H,v5:()=>C,x:()=>V});var r=n(18191),i=n(58030),l=n(84302);function o(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let n of(r.append("code",e),t))r.append("v",n);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function a(e){let t=1,n=e.getParent();for(;null!=n;){if(_(n)){let e=n.getParent();if(A(e)){t++,n=e.getParent();continue}o(40)}break}return t}function s(e){let t=e.getParent();A(t)||o(40);let n=t;for(;null!==n;)A(n=n.getParent())&&(t=n);return t}function u(e){return _(e)&&A(e.getFirstChild())}function c(e){return b().append(e)}function d(e,t){return _(e)&&(0===t.length||1===t.length&&e.is(t[0])&&0===e.getChildrenSize())}function f(e){let t=(0,i.vJq)();if(null!==t){let n=t.getNodes();if((0,i.I2P)(t)){let r=t.getStartEndPoints();null===r&&o(143);let[l]=r,a=l.getNode(),s=a.getParent();if((0,i.IqF)(a)){let e=a.getFirstChild();if(e)n=e.selectStart().getNodes();else{let e=(0,i.lJ7)();a.append(e),n=e.select().getNodes()}}else if(d(a,n)){let t=T(e);if((0,i.IqF)(s)){a.replace(t);let e=b();(0,i.ff4)(a)&&(e.setFormat(a.getFormatType()),e.setIndent(a.getIndent())),t.append(e)}else if(_(a)){let e=a.getParentOrThrow();p(t,e.getChildren()),e.replace(t)}return}}let r=new Set;for(let t=0;t<n.length;t++){let l=n[t];if((0,i.ff4)(l)&&l.isEmpty()&&!_(l)&&!r.has(l.getKey())){h(l,e);continue}let o=(0,i.jG6)(l)?l.getParent():_(l)&&l.isEmpty()?l:null;for(;null!=o;){let t=o.getKey();if(A(o)){if(!r.has(t)){let n=T(e);p(n,o.getChildren()),o.replace(n),r.add(t)}break}{let n=o.getParent();if((0,i.IqF)(n)&&!r.has(t)){r.add(t),h(o,e);break}o=n}}}}}function p(e,t){e.splice(e.getChildrenSize(),0,t)}function h(e,t){let n;if(A(e))return e;let r=e.getPreviousSibling(),i=e.getNextSibling(),l=b();
1if(p(l,e.getChildren()),A(r)&&t===r.getListType())r.append(l),A(i)&&t===i.getListType()&&(p(r,i.getChildren()),i.remove()),n=r;else if(A(i)&&t===i.getListType())i.getFirstChildOrThrow().insertBefore(l),n=i;else{let r=T(t);r.append(l),e.replace(r),n=r}return l.setFormat(e.getFormatType()),l.setIndent(e.getIndent()),e.remove(),n}function g(e,t){let n=e.getLastChild(),r=t.getFirstChild();n&&r&&u(n)&&u(r)&&(g(n.getFirstChild(),r.getFirstChild()),r.remove());let i=t.getChildren();i.length>0&&e.append(...i),t.remove()}function m(e){let t="check"!==e.getListType(),n=e.getStart();for(let r of e.getChildren())_(r)&&(r.getValue()!==n&&r.setValue(n),t&&null!=r.getLatest().__checked&&r.setChecked(void 0),A(r.getFirstChild())||n++)}function y(...e){let t=[];for(let n of e)if(n&&"string"==typeof n)for(let[e]of n.matchAll(/\S+/g))t.push(e);return t}class v extends i.fGB{$config(){return this.config("listitem",{$transform:e=>{if(null==e.__checked)return;let t=e.getParent();A(t)&&"check"!==t.getListType()&&null!=e.getChecked()&&e.setChecked(void 0)},extends:i.fGB,importDOM:(0,i.kBm)({li:()=>({conversion:x,priority:0})})})}constructor(e=1,t,n){super(n),this.__value=void 0===e?1:e,this.__checked=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__value=e.__value,this.__checked=e.__checked}createDOM(e){let t=document.createElement("li");return this.updateListItemDOM(null,t,e),t}updateListItemDOM(e,t,n){let i=this.getParent();A(i)&&"check"===i.getListType()&&(A(this.getFirstChild())?(t.removeAttribute("role"),t.removeAttribute("tabIndex"),t.removeAttribute("aria-checked")):(t.setAttribute("role","checkbox"),t.setAttribute("tabIndex","-1"),e&&this.__checked===e.__checked||t.setAttribute("aria-checked",this.getChecked()?"true":"false"))),t.value=this.__value,function(e,t,n){let i,l=[],o=[],a=t.list,s=a?a.listitem:void 0;if(a&&a.nested&&(i=a.nested.listitem),void 0!==s&&l.push(...y(s)),a){let e=n.getParent(),t=A(e)&&"check"===e.getListType(),r=n.getChecked();t&&!r||o.push(a.listitemUnchecked),t&&r||o.push(a.listitemChecked),t&&l.push(r?a.listitemChecked:a.listitemUnchecked)}if(void 0!==i){let e=y(i);n.getChildren().some(e=>A(e))?l.push(...e):o.push(...e)}o.length>0&&(0,r.HE)(e,...o),l.length>0&&(0,r.ZB)(e,...l)}(t,n.theme,this);let o=e?e.__style:"",a=this.__style;o!==a&&(""===a?t.removeAttribute("style"):t.style.cssText=a),function(e,t,n){let r=(0,l.Wh)(t.__textStyle);for(let t in r)e.style.setProperty(`--listitem-marker-${t}`,r[t]);if(n)for(let t in(0,l.Wh)(n.__textStyle))t in r||e.style.removeProperty(`--listitem-marker-${t}`)}(t,this,e)}updateDOM(e,t,n){return this.updateListItemDOM(e,t,n),!1}updateFromJSON(e){return super.updateFromJSON(e).setValue(e.value).setChecked(e.checked)}exportDOM(e){let t=this.createDOM(e._config),n=this.getFormatType();n&&(t.style.textAlign=n);let r=this.getDirection();return r&&(t.dir=r),{element:t}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...e){for(let t=0;t<e.length;t++){let n=e[t];if((0,i.ff4)(n)&&this.canMergeWith(n)){let e=n.getChildren();this.append(...e),n.remove()}else super.append(n)}return this}replace(e,t){if(_(e))return super.replace(e);this.setIndent(0);let n=this.getParentOrThrow();if(!A(n))return e;if(n.__first===this.getKey())n.insertBefore(e);else if(n.__last===this.getKey())n.insertAfter(e);else{let t=T(n.getListType()),r=this.getNextSibling();for(;r;){let e=r;r=r.getNextSibling(),t.append(e)}n.insertAfter(e),e.insertAfter(t)}
1return t&&((0,i.ff4)(e)||o(139),this.getChildren().forEach(t=>{e.append(t)})),this.remove(),0===n.getChildrenSize()&&n.remove(),e}insertAfter(e,t=!0){let n=this.getParentOrThrow();if(A(n)||o(39),_(e))return super.insertAfter(e,t);let r=this.getNextSiblings();if(n.insertAfter(e,t),0!==r.length){let i=T(n.getListType());r.forEach(e=>i.append(e)),e.insertAfter(i,t)}return e}remove(e){let t=this.getPreviousSibling(),n=this.getNextSibling();super.remove(e),t&&n&&u(t)&&u(n)&&(g(t.getFirstChild(),n.getFirstChild()),n.remove())}insertNewAfter(e,t=!0){let n=b().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(n,t),n}collapseAtStart(e){let t=(0,i.lJ7)();this.getChildren().forEach(e=>t.append(e));let n=this.getParentOrThrow(),r=n.getParentOrThrow(),l=_(r);if(1===n.getChildrenSize())if(l)n.remove(),r.select();else{n.insertBefore(t),n.remove();let r=e.anchor,i=e.focus,l=t.getKey();"element"===r.type&&r.getNode().is(this)&&r.set(l,r.offset,"element"),"element"===i.type&&i.getNode().is(this)&&i.set(l,i.offset,"element")}else n.insertBefore(t),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(e){let t=this.getWritable();return t.__value=e,t}getChecked(){let e,t=this.getLatest(),n=this.getParent();return A(n)&&(e=n.getListType()),"check"===e?!!t.__checked:void 0}setChecked(e){let t=this.getWritable();return t.__checked=e,t}toggleChecked(){let e=this.getWritable();return e.setChecked(!e.__checked)}getIndent(){let e=this.getParent();if(null===e||!this.isAttached())return this.getLatest().__indent;let t=e.getParentOrThrow(),n=0;for(;_(t);)t=t.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(e){"number"!=typeof e&&o(117),(e=Math.floor(e))>=0||o(199);let t=this.getIndent();for(;t!==e;)t<e?(function(e){let t=new Set;if(u(e)||t.has(e.getKey()))return;let n=e.getParent(),r=e.getNextSibling(),i=e.getPreviousSibling();if(u(r)&&u(i)){let n=i.getFirstChild();if(A(n)){n.append(e);let i=r.getFirstChild();A(i)&&(p(n,i.getChildren()),r.remove(),t.add(r.getKey()))}}else if(u(r)){let t=r.getFirstChild();if(A(t)){let n=t.getFirstChild();null!==n&&n.insertBefore(e)}}else if(u(i)){let t=i.getFirstChild();A(t)&&t.append(e)}else if(A(n)){let t=b().setTextFormat(e.getTextFormat()).setTextStyle(e.getTextStyle()),l=T(n.getListType()).setTextFormat(n.getTextFormat()).setTextStyle(n.getTextStyle());t.append(l),l.append(e),i?i.insertAfter(t):r?r.insertBefore(t):n.append(t)}}(this),t++):(function(e){if(u(e))return;let t=e.getParent(),n=t?t.getParent():void 0;if(A(n?n.getParent():void 0)&&_(n)&&A(t)){let r=t?t.getFirstChild():void 0,i=t?t.getLastChild():void 0;if(e.is(r))n.insertBefore(e),t.isEmpty()&&n.remove();else if(e.is(i))n.insertAfter(e),t.isEmpty()&&n.remove();else{let r=t.getListType(),i=b(),l=T(r);
1i.append(l),e.getPreviousSiblings().forEach(e=>l.append(e));let o=b(),a=T(r);o.append(a),p(a,e.getNextSiblings()),n.insertBefore(i),n.insertAfter(o),n.replace(e)}}}(this),t--);return this}canInsertAfter(e){return _(e)}canReplaceWith(e){return _(e)}canMergeWith(e){return _(e)||(0,i.bSg)(e)}extractWithChild(e,t){if(!(0,i.I2P)(t))return!1;let n=t.anchor.getNode(),r=t.focus.getNode();return this.isParentOf(n)&&this.isParentOf(r)&&this.getTextContent().length===t.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return T("bullet")}canMergeWhenEmpty(){return!0}}function x(e){if(e.classList.contains("task-list-item")){for(let n of e.children)if("INPUT"===n.tagName){var t;return"checkbox"!==(t=n).getAttribute("type")?{node:null}:{node:b(t.hasAttribute("checked"))}}}let n=e.getAttribute("aria-checked");return{node:b("true"===n||"false"!==n&&void 0)}}function b(e){return(0,i.pTq)(new v(void 0,e))}function _(e){return e instanceof v}class C extends i.fGB{$config(){return this.config("list",{$transform:e=>{!function(e){let t=e.getNextSibling();A(t)&&e.getListType()===t.getListType()&&g(e,t)}(e),m(e)},extends:i.fGB,importDOM:(0,i.kBm)({ol:()=>({conversion:E,priority:0}),ul:()=>({conversion:E,priority:0})})})}constructor(e="number",t=1,n){super(n);let r=S[e]||e;this.__listType=r,this.__tag="number"===r?"ol":"ul",this.__start=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__listType=e.__listType,this.__tag=e.__tag,this.__start=e.__start}getTag(){return this.getLatest().__tag}setListType(e){let t=this.getWritable();return t.__listType=e,t.__tag="number"===e?"ol":"ul",t}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(e){let t=this.getWritable();return t.__start=e,t}createDOM(e,t){let n=this.__tag,r=document.createElement(n);return 1!==this.__start&&r.setAttribute("start",String(this.__start)),r.__lexicalListType=this.__listType,w(r,e.theme,this),r}updateDOM(e,t,n){return e.__tag!==this.__tag||(w(t,n.theme,this),!1)}updateFromJSON(e){return super.updateFromJSON(e).setListType(e.listType).setStart(e.start)}exportDOM(e){let t=this.createDOM(e._config,e);return(0,i.sby)(t)&&(1!==this.__start&&t.setAttribute("start",String(this.__start)),"check"===this.__listType&&t.setAttribute("__lexicalListType","check")),{element:t}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(e,t,n){let r=n;for(let e=0;e<n.length;e++){let t=n[e];_(t)||(r===n&&(r=[...n]),r[e]=b().append(!(0,i.ff4)(t)||A(t)||t.isInline()?t:(0,i.sTu)(t.getTextContent())))}return super.splice(e,t,r)}extractWithChild(e){return _(e)}}function w(e,t,n){let i=[],l=[],o=t.list;if(void 0!==o){let e,t=o[`${n.__tag}Depth`]||[],r=a(n)-1,s=r%t.length,u=t[s],c=o[n.__tag],d=o.nested,f=o.checklist;if(void 0!==d&&d.list&&(e=d.list),void 0!==c&&i.push(c),void 0!==f&&"check"===n.__listType&&i.push(f),void 0!==u){i.push(...y(u));for(let e=0;e<t.length;e++)e!==s&&l.push(n.__tag+e)}if(void 0!==e){let t=y(e);r>1?i.push(...t):l.push(...t)}}l.length>0&&(0,r.HE)(e,...l),i.length>0&&(0,r.ZB)(e,...i)}function k(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];if(_(r)){t.push(r);let e=r.getChildren();e.length>1&&e.forEach(e=>{A(e)&&t.push(c(e))})}else t.push(c(r))}return t}function E(e){let t=e.nodeName.toLowerCase(),n=null;return"ol"===t?n=T("number",e.start):"ul"===t&&(n=!function(e){if("check"===e.getAttribute("__lexicallisttype")||e.classList.contains("contains-task-list"))return!0;for(let t of e.childNodes)if((0,i.sby)(t)&&t.hasAttribute("aria-checked"))return!0;return!1}(e)?T("bullet"):T("check")),{after:k,node:n}}let S={ol:"number",ul:"bullet"};function T(e="number",t=1){return(0,i.pTq)(new C(e,t))}function A(e){return e instanceof C}let N=(0,i.guI)("INSERT_CHECK_LIST_COMMAND");function I(e){return(0,r.Sd)(e.registerCommand(N,()=>(f("check"),!0),i.AcJ),e.registerCommand(i.bbF,t=>O(t,e,!1),i.AcJ),e.registerCommand(i.UDz,t=>O(t,e,!0),i.AcJ),e.registerCommand(i.Q$N,()=>{if(null!=M()){let t=e.getRootElement();return null!=t&&t.focus(),!0}return!1},i.AcJ),e.registerCommand(i.Huu,t=>{let n=M();return!(null==n||!e.isEditable())&&(e.update(()=>{let e=(0,i.xL4)(n);_(e)&&(t.preventDefault(),e.toggleChecked())}),!0)},i.AcJ),e.registerCommand(i.AX0,t=>e.getEditorState().read(()=>{let n=(0,i.vJq)();if((0,i.I2P)(n)&&n.isCollapsed()){let{anchor:l}=n,o="element"===l.type;if(o||0===l.offset){let n=l.getNode(),a=(0,r.Bt)(n,e=>(0,i.ff4)(e)&&!e.isInline());if(_(a)){let r=a.getParent();if(A(r)&&"check"===r.getListType()&&(o||a.getFirstDescendant()===n)){let n=e.getElementByKey(a.__key);if(null!=n&&document.activeElement!==n)return n.focus(),t.preventDefault(),!0}}}}return!1}),i.AcJ),e.registerRootListener((e,t)=>
1{null!==e&&(e.addEventListener("click",P),e.addEventListener("pointerdown",F)),null!==t&&(t.removeEventListener("click",P),t.removeEventListener("pointerdown",F))}))}function L(e,t){let n=e.target;if(!(0,i.sby)(n))return;let l=n.firstChild;if((0,i.sby)(l)&&("UL"===l.tagName||"OL"===l.tagName))return;let o=n.parentNode;if(!o||"check"!==o.__lexicalListType)return;let a=n.getBoundingClientRect(),s=(0,r.OV)(n),u=e.clientX/s,c=parseFloat((window.getComputedStyle?window.getComputedStyle(n,"::before"):{width:"0px"}).width),d=32*("touch"===e.pointerType);("rtl"===n.dir?u<a.right+d&&u>a.right-c-d:u>a.left-d&&u<a.left+c+d)&&t()}function P(e){L(e,()=>{if((0,i.sby)(e.target)){let t=e.target,n=(0,i.scG)(t);null!=n&&n.isEditable()&&n.update(()=>{let e=(0,i.xL4)(t);_(e)&&(t.focus(),e.toggleChecked())})}})}function F(e){L(e,()=>{e.preventDefault()})}function M(){let e=document.activeElement;return(0,i.sby)(e)&&"LI"===e.tagName&&null!=e.parentNode&&"check"===e.parentNode.__lexicalListType?e:null}function O(e,t,n){let r=M();return null!=r&&t.update(()=>{let l=(0,i.xL4)(r);if(!_(l))return;let o=function(e,t){let n=t?e.getPreviousSibling():e.getNextSibling(),r=e;for(;null==n&&_(r);)null!=(r=r.getParentOrThrow().getParent())&&(n=t?r.getPreviousSibling():r.getNextSibling());for(;_(n);){let e=t?n.getLastChild():n.getFirstChild();if(!A(e))return n;n=t?e.getLastChild():e.getFirstChild()}return null}(l,n);if(null!=o){o.selectStart();let n=t.getElementByKey(o.__key);null!=n&&(e.preventDefault(),setTimeout(()=>{n.focus()},0))}}),!1}let R=(0,i.guI)("UPDATE_LIST_START_COMMAND"),D=(0,i.guI)("INSERT_UNORDERED_LIST_COMMAND"),V=(0,i.guI)("INSERT_ORDERED_LIST_COMMAND"),H=(0,i.guI)("REMOVE_LIST_COMMAND");function B(e){return(0,r.Sd)(e.registerCommand(V,()=>(f("number"),!0),i.AcJ),e.registerCommand(R,e=>{let{listNodeKey:t,newStart:n}=e,r=(0,i.nsf)(t);return!!A(r)&&("number"===r.getListType()&&(r.setStart(n),m(r)),!0)},i.AcJ),e.registerCommand(D,()=>(f("bullet"),!0),i.AcJ),e.registerCommand(H,()=>((function(){let e=(0,i.vJq)();if((0,i.I2P)(e)){let t=new Set,n=e.getNodes(),l=e.anchor.getNode();if(d(l,n))t.add(s(l));else for(let e=0;e<n.length;e++){let l=n[e];if((0,i.jG6)(l)){let e=(0,r.eu)(l,v);null!=e&&t.add(s(e))}}for(let n of t){let t=n;for(let r of function e(t){let n=[],r=t.getChildren().filter(_);for(let t=0;t<r.length;t++){let i=r[t],l=i.getFirstChild();A(l)?n=n.concat(e(l)):n.push(i)}return n}(n)){let n=(0,i.lJ7)().setTextStyle(e.style).setTextFormat(e.format);p(n,r.getChildren()),t.insertAfter(n),t=n,r.__key===e.anchor.key&&(0,i.wp6)(e.anchor,(0,i.lSZ)((0,i.uwZ)(n,"next"))),r.__key===e.focus.key&&(0,i.wp6)(e.focus,(0,i.lSZ)((0,i.uwZ)(n,"next"))),r.remove()}n.remove()}}})(),!0),i.AcJ),e.registerCommand(i.XKQ,()=>(function(){let e,t=(0,i.vJq)();if(!(0,i.I2P)(t)||!t.isCollapsed())return!1;let n=t.anchor.getNode();if(!_(n)||0!==n.getChildrenSize())return!1;let r=s(n),l=n.getParent();A(l)||o(40);let a=l.getParent();if((0,i.IqF)(a))e=(0,i.lJ7)(),r.insertAfter(e);else{if(!_(a))return!1;e=b(),a.insertAfter(e)}e.setTextStyle(t.style).setTextFormat(t.format).select();let u=n.getNextSiblings();if(u.length>0){let t=T(l.getListType());if(_(e)){let n=b();n.append(t),e.insertAfter(n)}else e.insertAfter(t);t.append(...u)}return function(e){let t=e;for(;null==t.getNextSibling()&&null==t.getPreviousSibling();){let e=t.getParent();if(null==e||!_(e)&&!A(e))break;t=e}t.remove()}(n),!0})(),i.AcJ),e.registerNodeTransform(v,e=>{let t=e.getFirstChild();if(t){if((0,i.kFe)(t)){let n=t.getStyle(),r=t.getFormat();e.getTextStyle()!==n&&e.setTextStyle(n),e.getTextFormat()!==r&&e.setTextFormat(r)}}else{let t=(0,i.vJq)();(0,i.I2P)(t)&&(t.style!==e.getTextStyle()||t.format!==e.getTextFormat())&&t.isCollapsed()&&e.is(t.anchor.getNode())&&e.setTextStyle(t.style).setTextFormat(t.format)}}),e.registerNodeTransform(i.Ey8,e=>{let t=e.getParent();if(_(t)&&e.is(t.getFirstChild())){let n=e.getStyle(),r=e.getFormat();n===t.getTextStyle()&&r===t.getTextFormat()||t.setTextStyle(n).setTextFormat(r)}}))}function j(e){let t=e=>{let t=e.getParent();if(A(e.getFirstChild())||!A(t))return;let n=(0,r.Bt)(e,e=>_(e)&&A(e.getParent())&&_(e.getPreviousSibling()));if(null===n&&e.getIndent()>0)e.setIndent(0);else if(_(n)){let r=n.getPreviousSibling();if(_(r)){let n=(function(e){let t=e,n=t.getFirstChild();for(;A(n);){let e=n.getLastChild();if(!_(e))break;n=(t=e).getFirstChild()}return t})(r).getParent();if(A(n)){let r=a(n);r+1<a(t)&&e.setIndent(r)}}}};return e.registerNodeTransform(C,e=>{let n=[e];for(;n.length>0;){let e=n.shift();if(A(e)){for(let r of e.getChildren())if(_(r)){t(r);let e=r.getFirstChild();A(e)&&n.push(e)}}}})}},79941:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});var r=n(4686);function i(e){return null===e||(0,r.Ee)(e)||(0,r.Ny)(e)?1:(0,r.es)(e)?2:void 0}},83630:(e,t,n)=>{"use strict";n.d(t,{oQ:()=>i,sY:()=>r});let r="undefined"!=typeof window&&void 0!==window.document.createElement&&(()=>{var e;let t=null==(e=navigator.userAgentData)?void 0:e.platform;return t?/mac/i.test(t):/Mac|iPod|iPhone|iPad/.test(navigator.userAgent)})();function i(e,t){return r?e:t}},84154:(e,t)=>
1{"use strict";var n=60103,r=60106,i=60107,l=60108,o=60114,a=60109,s=60110,u=60112,c=60113,d=60120,f=60115,p=60116;if("function"==typeof Symbol&&Symbol.for){var h=Symbol.for;n=h("react.element"),r=h("react.portal"),i=h("react.fragment"),l=h("react.strict_mode"),o=h("react.profiler"),a=h("react.provider"),s=h("react.context"),u=h("react.forward_ref"),c=h("react.suspense"),d=h("react.suspense_list"),f=h("react.memo"),p=h("react.lazy"),h("react.block"),h("react.server.block"),h("react.fundamental"),h("react.debug_trace_mode"),h("react.legacy_hidden")}},84302:(e,t,n)=>{"use strict";n.d(t,{Cb:()=>y,Nx:()=>d,Rk:()=>x,SD:()=>c,Wh:()=>o,Xg:()=>f,dt:()=>u,zI:()=>h});var r=n(58030);let i=new Map;function l(e){let t={};if(!e)return t;for(let n of e.split(";"))if(""!==n){let[e,r]=n.split(/:([^]+)/);e&&r&&(t[e.trim()]=r.trim())}return t}function o(e){let t=i.get(e);return void 0===t&&(t=l(e),i.set(e,t)),t}function a(e){let t=(0,r.i0_)().getElementByKey(e.getKey());if(null===t)return null;let n=t.ownerDocument.defaultView;return null===n?null:n.getComputedStyle(t)}function s(e){return a((0,r.hVZ)(e)?e:e.getParentOrThrow())}function u(e){let t=s(e);return null!==t&&"rtl"===t.direction}function c(e,t){let n=e.getStartEndPoints();if(t.isSelected(e)&&!(0,r.Rb_)(t)&&null!==n){let[i,l]=n,o=e.isBackward(),a=i.getNode(),s=l.getNode(),u=t.is(a),c=t.is(s);if(u||c){let[n,i]=(0,r.Cku)(e),l=a.is(s),u=t.is(o?s:a),c=t.is(o?a:s),d,f=0;l?(f=n>i?i:n,d=n>i?n:i):u?(f=o?i:n,d=void 0):c&&(f=0,d=o?n:i),t.__text=t.__text.slice(f,d)}}return t}function d(e){if("text"===e.type)return e.offset===e.getNode().getTextContentSize();let t=e.getNode();return(0,r.ff4)(t)||function(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let e of(r.append("code",177),t))r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${177}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(177),e.offset===t.getChildrenSize()}function f(e){let t=e.getStyle(),n=l(t);i.set(t,n)}function p(e,t){let n=e.getFormatType(),r=e.getIndent();n!==t.getFormatType()&&t.setFormat(n),r!==t.getIndent()&&t.setIndent(r)}function h(e,t,n=p){if(null===e)return;let i=e.getStartEndPoints(),l=new Map,o=null;if(i){let[e,t]=i;(o=(0,r.uTE)()).anchor.set(e.key,e.offset,e.type),o.focus.set(t.key,t.offset,t.type);let n=b(e.getNode(),r.w3H),a=b(t.getNode(),r.w3H);(0,r.ff4)(n)&&l.set(n.getKey(),n),(0,r.ff4)(a)&&l.set(a.getKey(),a)}for(let t of e.getNodes())if((0,r.ff4)(t)&&(0,r.w3H)(t))l.set(t.getKey(),t);else if(null===i){let e=b(t,r.w3H);(0,r.ff4)(e)&&l.set(e.getKey(),e)}for(let[e,r]of l){let i=t();n(r,i),r.replace(i,!0),o&&(e===o.anchor.key&&o.anchor.set(i.getKey(),o.anchor.offset,o.anchor.type),e===o.focus.key&&o.focus.set(i.getKey(),o.focus.offset,o.focus.type))}o&&e.is((0,r.vJq)())&&(0,r.n1P)(o)}function g(e){let t=m(e);return null!==t&&"vertical-rl"===t.writingMode}function m(e){let t=e.anchor.getNode();return(0,r.ff4)(t)?a(t):s(t)}function y(e,t){let n=g(e)?!t:t;v(e)&&(n=!n);let i=(0,r.Ave)(e.focus,n?"previous":"next");if((0,r.pGK)(i))return!1;for(let e of(0,r.mWO)(i)){if((0,r.cmH)(e))return!e.origin.isInline();if(!(0,r.ff4)(e.origin)){if((0,r.Cyw)(e.origin))return!0;break}}return!1}function v(e){let t=m(e);return null!==t&&"rtl"===t.direction}function x(e,t,n){let r,i=v(e);r=g(e)||i?!n:n,e.modify(t?"extend":"move",r,"character")}function b(e,t){let n=e;for(;null!==n&&null!==n.getParent()&&!t(n);)n=n.getParentOrThrow();return t(n)?n:null}},84662:(e,t,n)=>{"use strict";n.d(t,{Db:()=>o,FJ:()=>u,Yh:()=>d,hx:()=>g,iK:()=>f,k_:()=>c,yW:()=>p,zA:()=>s});var r=n(18191),i=n(58030);let l=new Set(["http:","https:","mailto:","sms:","tel:"]);class o extends i.fGB{static getType(){return"link"}static clone(e){return new o(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}constructor(e="",t={},n){super(n);let{target:r=null,rel:i=null,title:l=null}=t;this.__url=e,this.__target=r,this.__rel=i,this.__title=l}createDOM(e){let t=document.createElement("a");return this.updateLinkDOM(null,t,e),(0,r.ZB)(t,e.theme.link),t}updateLinkDOM(e,t,n){if((0,i.nYP)(t))for(let n of(e&&e.__url===this.__url||(t.href=this.sanitizeUrl(this.__url)),["target","rel","title"])){let r=`__${n}`,i=this[r];e&&e[r]===i||(i?t[n]=i:t.removeAttribute(n))}}updateDOM(e,t,n){return this.updateLinkDOM(e,t,n),!1}static importDOM(){return{a:e=>({conversion:a,priority:1})}}static importJSON(e){return s().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setURL(e.url).setRel(e.rel||null).setTarget(e.target||null).setTitle(e.title||null)}sanitizeUrl(e){e=v(e);try{let t=new URL(v(e));if(!l.has(t.protocol))return"about:blank"}catch(e){}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(e){let t=this.getWritable();return t.__url=e,t}getTarget(){return this.getLatest().__target}setTarget(e){let t=this.getWritable();return t.__target=e,t}getRel(){return this.getLatest().__rel}setRel(e){let t=this.getWritable();return t.__rel=e,t}getTitle(){return this.getLatest().__title}setTitle(e){let t=this.getWritable();return t.__title=e,t}insertNewAfter(e,t=!0){let n=s(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(n,t),n}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,t,n){if(!(0,i.I2P)(t))return!1;let r=t.anchor.getNode(),l=t.focus.getNode();return this.isParentOf(r)&&this.isParentOf(l)&&t.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}}function a(e){let t=null;if((0,i.nYP)(e)){let n=e.textContent;(null!==n&&""!==n||e.children.length>0)&&(t=s(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function s(e="",t){return(0,i.pTq)(new o(e,t))}function u(e){return e instanceof o}class c extends o{constructor(e="",t={},n){super(e,t,n),this.__isUnlinked=void 0!==t.isUnlinked&&null!==t.isUnlinked&&t.isUnlinked}static getType(){return"autolink"}static clone(e){return new c(e.__url,{isUnlinked:e.__isUnlinked,rel:e.__rel,target:e.__target,title:e.__title},e.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(e){let t=this.getWritable();return t.__isUnlinked=e,t}createDOM(e){return this.__isUnlinked?document.createElement("span"):super.createDOM(e)}updateDOM(e,t,n){return super.updateDOM(e,t,n)||e.__isUnlinked!==this.__isUnlinked}static importJSON(e){return d().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setIsUnlinked(e.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(e,t=!0){let n=this.getParentOrThrow().insertNewAfter(e,t);if((0,i.ff4)(n)){let e=d(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return n.append(e),e}return null}}function d(e="",t){return(0,i.pTq)(new c(e,t))}function f(e){return e instanceof c}let p=(0,i.guI)("TOGGLE_LINK_COMMAND");function h(e,t){if("element"===e.type){let n=e.getNode();return(0,i.ff4)(n)||function(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let e of(r.append("code",252),t))r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${252}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(252),n.getChildren()[e.offset+t]||null}return null}function g(e,t={}){let{target:n,title:l}=t,o=void 0===t.rel?"noreferrer":t.rel,a=(0,i.vJq)();if(null===a||!(0,i.I2P)(a)&&!(0,i.RTZ)(a))return;if((0,i.RTZ)(a)){let t=a.getNodes();if(0===t.length)return;return void t.forEach(t=>{if(null===e){let e=(0,r.Bt)(t,e=>!f(e)&&u(e));e&&(e.insertBefore(t),0===e.getChildren().length&&e.remove())}else{let i=(0,r.Bt)(t,e=>!f(e)&&u(e));if(i)i.setURL(e),void 0!==n&&i.setTarget(n),void 0!==o&&i.setRel(o);else{let r=s(e,{rel:o,target:n});t.insertBefore(r),r.append(t)}}})}let c=a.extract();
1if(null===e)return void c.forEach(e=>{let t=(0,r.Bt)(e,e=>!f(e)&&u(e));if(t){let e=t.getChildren();for(let n=0;n<e.length;n++)t.insertBefore(e[n]);t.remove()}});let d=new Set,p=t=>{d.has(t.getKey())||(d.add(t.getKey()),t.setURL(e),void 0!==n&&t.setTarget(n),void 0!==o&&t.setRel(o),void 0!==l&&t.setTitle(l))};if(1===c.length){let e=m(c[0],u);if(null!==e)return p(e)}!function(e){let t=(0,i.vJq)();if(!(0,i.I2P)(t))return e();let n=(0,i.CaD)(t),r=n.isBackward(),l=h(n.anchor,r?-1:0),o=h(n.focus,r?0:-1);if(e(),l||o){let e=(0,i.vJq)();if((0,i.I2P)(e)){let t=e.clone();if(l){let e=l.getParent();e&&t.anchor.set(e.getKey(),l.getIndexWithinParent()+ +!!r,"element")}if(o){let e=o.getParent();e&&t.focus.set(e.getKey(),o.getIndexWithinParent()+ +!r,"element")}(0,i.n1P)((0,i.CaD)(t))}}}(()=>{let t=null;for(let r of c){if(!r.isAttached())continue;let a=m(r,u);if(a){p(a);continue}if((0,i.ff4)(r)){if(!r.isInline())continue;if(u(r)){if(!(f(r)||null!==t&&t.getParentOrThrow().isParentOf(r))){p(r),t=r;continue}for(let e of r.getChildren())r.insertBefore(e);r.remove();continue}}let c=r.getPreviousSibling();u(c)&&c.is(t)?c.append(r):(t=s(e,{rel:o,target:n,title:l}),r.insertAfter(t),t.append(r))}})}function m(e,t){let n=e;for(;null!==n&&null!==n.getParent()&&!t(n);)n=n.getParentOrThrow();return t(n)?n:null}let y=/^\+?[0-9\s()-]{5,}$/;function v(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes("@")?`mailto:${e}`:y.test(e)?`tel:${e}`:`https://${e}`}},87024:(e,t,n)=>{"use strict";n.d(t,{Cl:()=>r,Tt:()=>i,fX:()=>l});var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function i(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}Object.create;function l(e,t,n){if(n||2==arguments.length)for(var r,i=0,l=t.length;i<l;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,"function"==typeof SuppressedError&&SuppressedError},87693:(e,t,n)=>{"use strict";n.d(t,{fi:()=>I,xi:()=>k,Pi:()=>L,jd:()=>E,jL:()=>S,dJ:()=>w,ZI:()=>R});var r=n(84302),i=n(58030);let l=new Set(["STYLE","SCRIPT"]);var o=n(18191);function a(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let n of(r.append("code",e),t))r.append("v",n);throw n.search=r.toString(),Error(`Minified Lexical error #${e}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function s(e,t,n){let o=e.getData("application/x-lexical-editor");if(o)try{let e=JSON.parse(o);if(e.namespace===n._config.namespace&&Array.isArray(e.nodes))return u(n,function(e){let t=[];for(let n=0;n<e.length;n++){let l=e[n],o=(0,i.GMe)(l);(0,i.kFe)(o)&&(0,r.Xg)(o),t.push(o)}return t}(e.nodes),t)}catch(e){}let a=e.getData("text/html"),s=e.getData("text/plain");if(a&&s!==a)try{let e=(new DOMParser).parseFromString(window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:e=>e}).createHTML(a):a,"text/html");return u(n,function(e,t){let n=t.body?t.body.childNodes:[],r=[],o=[];for(let t=0;t<n.length;t++){let a=n[t];if(!l.has(a.nodeName)){let t=function e(t,n,r,o,a=new Map,s){let u=[];if(l.has(t.nodeName))return u;let c=null,d=function(e,t){let{nodeName:n}=e,r=t._htmlConversions.get(n.toLowerCase()),i=null;if(void 0!==r)for(let t of r){let n=t(e);null!==n&&(null===i||(i.priority||0)<=(n.priority||0))&&(i=n)}return null!==i?i.conversion:null}(t,n),f=d?d(t):null,p=null;if(null!==f){p=f.after;let e=f.node;if(null!==(c=Array.isArray(e)?e[e.length-1]:e)){for(let[,e]of a)if(!(c=e(c,s)))break;c&&u.push(...Array.isArray(e)?e:[c])}null!=f.forChild&&a.set(t.nodeName,f.forChild)}let h=t.childNodes,g=[],m=(null==c||!(0,i.IqF)(c))&&(null!=c&&(0,i.y68)(c)||o);for(let t=0;t<h.length;t++)g.push(...e(h[t],n,r,m,new Map(a),c));return null!=p&&(g=p(g)),(0,i.a9V)(t)&&(g=function(e,t,n){let r=e.style.textAlign,l=[],o=[];for(let e=0;e<t.length;e++){let a=t[e];if((0,i.y68)(a))r&&!a.getFormat()&&a.setFormat(r),l.push(a);else if(o.push(a),e===t.length-1||e<t.length-1&&(0,i.y68)(t[e+1])){let e=n();e.setFormat(r),e.append(...o),l.push(e),o=[]}}return l}(t,g,m?()=>{let e=new i.A7V;return r.push(e),e}:i.lJ7)),null==c?g.length>0?u=u.concat(g):(0,i.a9V)(t)&&null!=t.nextSibling&&null!=t.previousSibling&&(0,i._On)(t.nextSibling)&&(0,i._On)(t.previousSibling)&&(u=u.concat((0,i.WKo)())):(0,i.ff4)(c)&&c.append(...g),u}
1(a,e,o,!1);null!==t&&(r=r.concat(t))}}return function(e){for(let t of e)t.getNextSibling()instanceof i.A7V&&t.insertAfter((0,i.WKo)());for(let t of e){for(let e of t.getChildren())t.insertBefore(e);t.remove()}}(o),r}(n,e),t)}catch(e){}let c=s||e.getData("text/uri-list");if(null!=c)if((0,i.I2P)(t)){let e=c.split(/(\r?\n|\t)/);""===e[e.length-1]&&e.pop();for(let t=0;t<e.length;t++){let n=(0,i.vJq)();if((0,i.I2P)(n)){let r=e[t];"\n"===r||"\r\n"===r?n.insertParagraph():"	"===r?n.insertNodes([(0,i.ev7)()]):n.insertText(r)}}}else t.insertRawText(c)}function u(e,t,n){e.dispatchCommand(i.oqR,{nodes:t,selection:n})||(n.insertNodes(t),function(e){if((0,i.I2P)(e)&&e.isCollapsed()){let t=e.anchor,n=null,r=(0,i.Ave)(t,"previous");if(r)if((0,i.rN)(r))n=r.origin;else for(let e of(0,i.TJt)(r,(0,i.uwZ)((0,i.NiT)(),"next").getFlipped())){if((0,i.kFe)(e.origin)){n=e.origin;break}if((0,i.ff4)(e.origin)&&!e.origin.isInline())break}if(n&&(0,i.kFe)(n)){let t=n.getFormat(),r=n.getStyle();e.format===t&&e.style===r||(e.format=t,e.style=r,e.dirty=!0)}}}(n))}let c=null;async function d(e,t,n){if(null!==c)return!1;if(null!==t)return new Promise((r,i)=>{e.update(()=>{r(f(e,t,n))})});let r=e.getRootElement(),l=e._window||window,a=window.document,s=(0,i.peL)(l);if(null===r||null===s)return!1;let u=a.createElement("span");u.style.cssText="position: fixed; top: -1000px;",u.append(a.createTextNode("#")),r.append(u);let d=new Range;return d.setStart(u,0),d.setEnd(u,1),s.removeAllRanges(),s.addRange(d),new Promise((t,r)=>{let l=e.registerCommand(i.u5G,r=>((0,o.xj)(r,ClipboardEvent)&&(l(),null!==c&&(window.clearTimeout(c),c=null),t(f(e,r,n))),!0),i.da8);c=window.setTimeout(()=>{l(),c=null,t(!1)},50),a.execCommand("copy"),u.remove()})}function f(e,t,n){if(void 0===n){let t=(0,i.peL)(e._window);if(!t)return!1;let r=t.anchorNode,l=t.focusNode;if(null!==r&&null!==l&&!(0,i.LYZ)(e,r,l))return!1;let o=(0,i.vJq)();if(null===o)return!1;n=function(e=(0,i.vJq)()){let t={"text/plain":e?e.getTextContent():""};if(e){let n=(0,i.i0_)();for(let[r,i]of p){let l=i(n,e);null!==l&&(t[r]=l)}}return t}(o)}t.preventDefault();let r=t.clipboardData;return null!==r&&(function(e,t){for(let n in t){let r=t[n];void 0!==r&&e.setData(n,r)}}(r,n),!0)}let p=[["text/html",function(e,t=(0,i.vJq)()){return null==t&&a(166),(0,i.I2P)(t)&&t.isCollapsed()||0===t.getNodes().length?"":function(e,t){if("undefined"==typeof document||"undefined"==typeof window&&void 0===global.window)throw Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");let n=document.createElement("div"),l=(0,i.NiT)().getChildren();for(let o=0;o<l.length;o++)!function e(t,n,l,o=null){let a=null===o||n.isSelected(o),s=(0,i.ff4)(n)&&n.excludeFromCopy("html"),u=n;if(null!==o){let e=(0,i.BEs)(n);u=e=(0,i.kFe)(e)&&null!==o?(0,r.SD)(o,e):e}let c=(0,i.ff4)(u)?u.getChildren():[],d=(0,i.Jvg)(t,u.getType()),{element:f,after:p}=d&&void 0!==d.exportDOM?d.exportDOM(t,u):u.exportDOM(t);if(!f)return!1;let h=document.createDocumentFragment();for(let r=0;r<c.length;r++){let l=c[r],s=e(t,l,h,o);!a&&(0,i.ff4)(n)&&s&&n.extractWithChild(l,o,"html")&&(a=!0)}if(a&&!s){if(((0,i.sby)(f)||(0,i.K8K)(f))&&f.append(h),l.append(f),p){let e=p.call(u,f);e&&((0,i.K8K)(f)?f.replaceChildren(e):f.replaceWith(e))}}else l.append(h);return a}(e,l[o],n,t);return n.innerHTML}(e,t)}],["application/x-lexical-editor",function(e,t=(0,i.vJq)()){return null==t&&a(166),(0,i.I2P)(t)&&t.isCollapsed()||0===t.getNodes().length?null:JSON.stringify(function(e,t){let n=[],l=(0,i.NiT)().getChildren();for(let o=0;o<l.length;o++)!function e(t,n,l,o=[]){let s=null===n||l.isSelected(n),u=(0,i.ff4)(l)&&l.excludeFromCopy("html"),c=l;if(null!==n){let e=(0,i.BEs)(l);c=e=(0,i.kFe)(e)&&null!==n?(0,r.SD)(n,e):e}let d=(0,i.ff4)(c)?c.getChildren():[],f=function(e){let t=e.exportJSON(),n=e.constructor;return t.type!==n.getType()&&a(58,n.name),(0,i.ff4)(e)&&(Array.isArray(t.children)||a(59,n.name)),t}(c);if((0,i.kFe)(c)){let e=c.__text;e.length>0?f.text=e:s=!1}for(let r=0;r<d.length;r++){let o=d[r],a=e(t,n,o,f.children);!s&&(0,i.ff4)(l)&&a&&l.extractWithChild(o,n,"clone")&&(s=!0)}if(s&&!u)o.push(f);else if(Array.isArray(f.children))for(let e=0;e<f.children.length;e++){let t=f.children[e];o.push(t)}return s}(e,t,l[o],n);return{namespace:e._config.namespace,nodes:n}}(e,t))}]];function h(e,t){if(void 0!==document.caretRangeFromPoint){let n=document.caretRangeFromPoint(e,t);return null===n?null:{node:n.startContainer,offset:n.startOffset}}if("undefined"!==document.caretPositionFromPoint){let n=document.caretPositionFromPoint(e,t);return null===n?null:{node:n.offsetNode,offset:n.offset}}return null}let g="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,m=g&&"documentMode"in document?document.documentMode:null,y=!(!g||!("InputEvent"in window)||m)&&"getTargetRanges"in new window.InputEvent("input"),v=g&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),x=g&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,b=g&&/^(?=.*Chrome).*/i.test(navigator.userAgent),_=g&&/AppleWeb
1Kit\/[\d.]+/.test(navigator.userAgent)&&!b,C=(0,i.guI)("DRAG_DROP_PASTE_FILE");class w extends i.fGB{static getType(){return"quote"}static clone(e){return new w(e.__key)}createDOM(e){let t=document.createElement("blockquote");return(0,o.ZB)(t,e.theme.quote),t}updateDOM(e,t){return!1}static importDOM(){return{blockquote:e=>({conversion:N,priority:0})}}exportDOM(e){let{element:t}=super.exportDOM(e);if((0,i.sby)(t)){this.isEmpty()&&t.append(document.createElement("br"));let e=this.getFormatType();e&&(t.style.textAlign=e);let n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){return k().updateFromJSON(e)}insertNewAfter(e,t){let n=(0,i.lJ7)(),r=this.getDirection();return n.setDirection(r),this.insertAfter(n,t),n}collapseAtStart(){let e=(0,i.lJ7)();return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}canMergeWhenEmpty(){return!0}}function k(){return(0,i.pTq)(new w)}function E(e){return e instanceof w}class S extends i.fGB{static getType(){return"heading"}static clone(e){return new S(e.__tag,e.__key)}constructor(e,t){super(t),this.__tag=e}getTag(){return this.__tag}setTag(e){let t=this.getWritable();return this.__tag=e,t}createDOM(e){let t=this.__tag,n=document.createElement(t),r=e.theme.heading;if(void 0!==r){let e=r[t];(0,o.ZB)(n,e)}return n}updateDOM(e,t,n){return e.__tag!==this.__tag}static importDOM(){return{h1:e=>({conversion:A,priority:0}),h2:e=>({conversion:A,priority:0}),h3:e=>({conversion:A,priority:0}),h4:e=>({conversion:A,priority:0}),h5:e=>({conversion:A,priority:0}),h6:e=>({conversion:A,priority:0}),p:e=>{let t=e.firstChild;return null!==t&&T(t)?{conversion:()=>({node:null}),priority:3}:null},span:e=>T(e)?{conversion:e=>({node:I("h1")}),priority:3}:null}}exportDOM(e){let{element:t}=super.exportDOM(e);if((0,i.sby)(t)){this.isEmpty()&&t.append(document.createElement("br"));let e=this.getFormatType();e&&(t.style.textAlign=e);let n=this.getDirection();n&&(t.dir=n)}return{element:t}}static importJSON(e){return I(e.tag).updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTag(e.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(e,t=!0){let n=e?e.anchor.offset:0,r=this.getLastDescendant(),l=r&&(!e||e.anchor.key!==r.getKey()||n!==r.getTextContentSize())&&e?I(this.getTag()):(0,i.lJ7)(),o=this.getDirection();if(l.setDirection(o),this.insertAfter(l,t),0===n&&!this.isEmpty()&&e){let e=(0,i.lJ7)();e.select(),this.replace(e,!0)}return l}collapseAtStart(){let e=this.isEmpty()?(0,i.lJ7)():I(this.getTag());
1return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}extractWithChild(){return!0}}function T(e){return"span"===e.nodeName.toLowerCase()&&"26pt"===e.style.fontSize}function A(e){let t=e.nodeName.toLowerCase(),n=null;return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t||(n=I(t),null!==e.style&&((0,i.dxY)(e,n),n.setFormat(e.style.textAlign))),{node:n}}function N(e){let t=k();return null!==e.style&&(t.setFormat(e.style.textAlign),(0,i.dxY)(e,t)),{node:t}}function I(e="h1"){return(0,i.pTq)(new S(e))}function L(e){return e instanceof S}function P(e){let t=null;if((0,o.xj)(e,DragEvent)?t=e.dataTransfer:(0,o.xj)(e,ClipboardEvent)&&(t=e.clipboardData),null===t)return[!1,[],!1];let n=t.types,r=n.includes("Files"),i=n.includes("text/html")||n.includes("text/plain");return[r,Array.from(t.files),i]}function F(e){let t=(0,i.vJq)();if(!(0,i.I2P)(t))return!1;let n=new Set,r=t.getNodes();for(let t=0;t<r.length;t++){let l=r[t],a=l.getKey();if(n.has(a))continue;let s=(0,o.Bt)(l,e=>(0,i.ff4)(e)&&!e.isInline());if(null===s)continue;let u=s.getKey();s.canIndent()&&!n.has(u)&&(n.add(u),e(s))}return n.size>0}function M(e){let t=(0,i.xL4)(e);return(0,i.Cyw)(t)}function O(e){for(let t of["lowercase","uppercase","capitalize"])e.hasFormat(t)&&e.toggleFormat(t)}function R(e){return(0,o.Sd)(e.registerCommand(i.d8p,e=>{let t=(0,i.vJq)();return!!(0,i.RTZ)(t)&&(t.clear(),!0)},i.jZM),e.registerCommand(i.WuB,e=>{let t=(0,i.vJq)();return(0,i.I2P)(t)?(t.deleteCharacter(e),!0):!!(0,i.RTZ)(t)&&(t.deleteNodes(),!0)},i.jZM),e.registerCommand(i.hi0,e=>{let t=(0,i.vJq)();return!!(0,i.I2P)(t)&&(t.deleteWord(e),!0)},i.jZM),e.registerCommand(i.viC,e=>{let t=(0,i.vJq)();return!!(0,i.I2P)(t)&&(t.deleteLine(e),!0)},i.jZM),e.registerCommand(i.bM3,t=>{let n=(0,i.vJq)();if("string"==typeof t)null!==n&&n.insertText(t);else{if(null===n)return!1;let r=t.dataTransfer;if(null!=r)s(r,n,e);else if((0,i.I2P)(n)){let e=t.data;return e&&n.insertText(e),!0}}return!0},i.jZM),e.registerCommand(i.$ey,()=>{let e=(0,i.vJq)();return!!(0,i.I2P)(e)&&(e.removeText(),!0)},i.jZM),e.registerCommand(i.mB,e=>{let t=(0,i.vJq)();return!!(0,i.I2P)(t)&&(t.formatText(e),!0)},i.jZM),e.registerCommand(i.fUS,e=>{let t=(0,i.vJq)();if(!(0,i.I2P)(t)&&!(0,i.RTZ)(t))return!1;for(let n of t.getNodes()){let t=(0,o.Bt)(n,e=>(0,i.ff4)(e)&&!e.isInline());null!==t&&t.setFormat(e)}return!0},i.jZM),e.registerCommand(i.FEN,e=>{let t=(0,i.vJq)();return!!(0,i.I2P)(t)&&(t.insertLineBreak(e),!0)},i.jZM),e.registerCommand(i.XKQ,()=>{let e=(0,i.vJq)();return!!(0,i.I2P)(e)&&(e.insertParagraph(),!0)},i.jZM),e.registerCommand(i.YW5,()=>((0,i.H2A)([(0,i.ev7)()]),!0),i.jZM),e.registerCommand(i.PiT,()=>F(e=>{let t=e.getIndent();e.setIndent(t+1)}),i.jZM),e.registerCommand(i.sik,()=>F(e=>{let t=e.getIndent();t>0&&e.setIndent(Math.max(0,t-1))}),i.jZM),e.registerCommand(i.UDz,e=>{let t=(0,i.vJq)();if((0,i.RTZ)(t)){let e=t.getNodes();if(e.length>0)return e[0].selectPrevious(),!0}else if((0,i.I2P)(t)){let n=(0,i.B$P)(t.focus,!0);if(!e.shiftKey&&(0,i.Cyw)(n)&&!n.isIsolated()&&!n.isInline())return n.selectPrevious(),e.preventDefault(),!0}return!1},i.jZM),e.registerCommand(i.bbF,e=>{let t=(0,i.vJq)();if((0,i.RTZ)(t)){let e=t.getNodes();if(e.length>0)return e[0].selectNext(0,0),!0}else if((0,i.I2P)(t)){if(function(e){let t=e.focus;return"root"===t.key&&t.offset===(0,i.NiT)().getChildrenSize()}(t))return e.preventDefault(),!0;let n=(0,i.B$P)(t.focus,!1);if(!e.shiftKey&&(0,i.Cyw)(n)&&!n.isIsolated()&&!n.isInline())return n.selectNext(),e.preventDefault(),!0}return!1},i.jZM),e.registerCommand(i.AX0,e=>{let t=(0,i.vJq)();if((0,i.RTZ)(t)){let n=t.getNodes();if(n.length>0)return e.preventDefault(),(0,r.dt)(n[0])?n[0].selectNext(0,0):n[0].selectPrevious(),!0}if(!(0,i.I2P)(t))return!1;if((0,r.Cb)(t,!0)){let n=e.shiftKey;return e.preventDefault(),(0,r.Rk)(t,n,!0),!0}return!1},i.jZM),e.registerCommand(i.JM3,e=>{let t=(0,i.vJq)();if((0,i.RTZ)(t)){let n=t.getNodes();if(n.length>0)return e.preventDefault(),(0,r.dt)(n[0])?n[0].selectPrevious():n[0].selectNext(0,0),!0}if(!(0,i.I2P)(t))return!1;let n=e.shiftKey;return!!(0,r.Cb)(t,!1)&&(e.preventDefault(),(0,r.Rk)(t,n,!1),!0)},i.jZM),e.registerCommand(i.gCZ,t=>{if(M(t.target))return!1;let n=(0,i.vJq)();if((0,i.I2P)(n)){if(function(e){if(!e.isCollapsed())return!1;let{anchor:t}=e;if(0!==t.offset)return!1;let n=t.getNode();if((0,i.hVZ)(n))return!1;let r=(0,o.mB)(n);return r.getIndent()>0&&(r.is(n)||n.is(r.getFirstDescendant()))}(n))return t.preventDefault(),e.dispatchCommand(i.sik,void 0);if(x&&"ko-KR"===navigator.language)return!1}else if(!(0,i.RTZ)(n))return!1;return t.preventDefault(),e.dispatchCommand(i.WuB,!0)},i.jZM),e.registerCommand(i.w$Z,t=>{if(M(t.target))return!1;let n=(0,i.vJq)();return!(!(0,i.I2P)(n)&&!(0,i.RTZ)(n))&&(t.preventDefault(),e.dispatchCommand(i.WuB,!1))},i.jZM),e.registerCommand(i.RTo,t=>{let n=(0,i.vJq)();if(!(0,i.I2P)(n))return!1;if(O(n),null!==t){if((x||v||_)&&y)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(i.FEN,!1)}return e.dispatchCommand(i.XKQ,void 0)},i.jZM),e.registerCommand(i.Q$N,()=>{let t=(0,i.vJq)();return!!(0,i.I2P)(t)&&(e.blur(),!0)},i.jZM),e.registerCommand(i.Sr4,t=>{let[,n]=P(t);if(n.length>0){let r=h(t.clientX,t.clientY);if(null!==r){let{offset:t,node:l}=r,o=(0,i.xL4)(l);if(null!==o){let e=(0,i.uTE)();if((0,i.kFe)(o))e.anchor.set(o.getKey(),t,"text"),e.focus.set(o.getKey(),t,"text");else{let t=o.getParentOrThrow().getKey(),n=o.getIndexWithinParent()+1;e.anchor.set(t,n,"element"),e.focus.set(t,n,"element")}let n=(0,i.CaD)(e);(0,i.n1P)(n)}e.dispatchCommand(C,n)}return t.preventDefault(),!0}let r=(0,i.vJq)();return!!(0,i.I2P)(r)},i.jZM),e.registerCommand(i.TgX,e=>{let[t]=P(e),n=(0,i.vJq)();return!(t&&!(0,i.I2P)(n))},i.jZM),e.registerCommand(i.riq,e=>{let[t]=P(e),n=(0,i.vJq)();if(t&&!(0,i.I2P)(n))return!1;let r=h(e.clientX,e.clientY);if(null!==r){let t=(0,i.xL4)(r.node);(0,i.Cyw)(t)&&e.preventDefault()}return!0},i.jZM),e.registerCommand(i.HYn,()=>((0,i.e1k)(),!0),i.jZM),e.registerCommand(i.u5G,t=>(d(e,(0,o.xj)(t,ClipboardEvent)?t:null),!0),i.jZM),e.registerCommand(i.VSO,t=>((async function(e,t){await d(t,(0,o.xj)(e,ClipboardEvent)?e:null),t.update(()=>{let e=(0,i.vJq)();
1(0,i.I2P)(e)?e.removeText():(0,i.RTZ)(e)&&e.getNodes().forEach(e=>e.remove())})})(t,e),!0),i.jZM),e.registerCommand(i.waI,t=>{let[,n,r]=P(t);return n.length>0&&!r?(e.dispatchCommand(C,n),!0):!((0,i.vAA)(t.target)&&(0,i.Z$U)(t.target))&&null!==(0,i.vJq)()&&(t.preventDefault(),e.update(()=>{let n=(0,i.vJq)(),r=(0,o.xj)(t,InputEvent)||(0,o.xj)(t,KeyboardEvent)?null:t.clipboardData;null!=r&&null!==n&&s(r,n,e)},{tag:i.fwY}),!0)},i.jZM),e.registerCommand(i.Huu,e=>{let t=(0,i.vJq)();return(0,i.I2P)(t)&&O(t),!1},i.jZM),e.registerCommand(i.OXk,e=>{let t=(0,i.vJq)();return(0,i.I2P)(t)&&O(t),!1},i.jZM))}},88413:(e,t,n)=>{"use strict";n.d(t,{C:()=>r});let r=function(e){var t,n;if(null==e)return l;if("function"==typeof e)return i(e);if("object"==typeof e){return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=r(e[n]);return i(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):(t=e,i(function(e){let n;for(n in t)if(e[n]!==t[n])return!1;return!0}))}if("string"==typeof e){return n=e,i(function(e){return e&&e.type===n})}throw Error("Expected function, string, or object as test")};function i(e){return function(t,n,r){return!!(function(e){return null!==e&&"object"==typeof e&&"type"in e}(t)&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function l(){return!0}},89225:(e,t,n)=>{"use strict";n.d(t,{OL:()=>s,eo:()=>d,kI:()=>f});var r=n(58030),i=n(84662),l=n(87693),o=n(79622),a=n(84302);function s(e){try{let t=e.anchor,n=e.focus,r=e.anchor.getNode(),i=e.focus.getNode();if(r===i)return r;if(e.isBackward())return(0,a.Nx)(n)?r:i;return(0,a.Nx)(t)?r:i}catch{return null}}let u=["transform","perspective","filter","backdrop-filter","contain","container-type"],c=["layout","paint","strict","content"];function d(e){let t=(0,r.vJq)(),n=window.getSelection(),i=document.activeElement,l=e.getRootElement();if(null!==t&&null!==n&&null!==l&&l.contains(n.anchorNode)&&e.isEditable()){let e,t=n.getRangeAt(0);if(n.isCollapsed){let t=n.anchorNode;(null==t?void 0:t.nodeType)==3&&(t=t.parentNode),(e=t.getBoundingClientRect()).width=0}else if(n.anchorNode===l){let t=l;for(;null!=t.firstElementChild;)t=t.firstElementChild;e=t.getBoundingClientRect()}else e=t.getBoundingClientRect();let r=function(e){let t=null==e?void 0:e.parentElement;for(;t;){let e=window.getComputedStyle(t),n=e.willChange.split(",").map(e=>e.trim()).some(e=>u.includes(e));if("none"!==e.transform||"none"!==e.perspective||"none"!==e.filter||"none"!==e.backdropFilter||c.includes(e.contain)||"normal"!==e.containerType||"auto"===e.contentVisibility||n)return t;t=t.parentElement}return null}(l);if(r){let t=r.getBoundingClientRect();return{top:Math.round(e.top-t.top),left:Math.round(e.left-t.left),width:Math.round(e.width),height:Math.round(e.height)}}return{top:Math.round(e.top),left:Math.round(e.left),width:Math.round(e.width),height:Math.round(e.height)}}return null==i||i.className,null}function f(e,t){let n="";return e.getEditorState().read(()=>{let e=(0,r.vJq)();if(!e||!(0,r.I2P)(e)||e.isCollapsed())return;let t=e.getNodes();if(0===t.length)return;let a=new Set;t.forEach(e=>{let t=e;for(;t;){if((0,l.Pi)(t)||(0,o.Mz)(t)||"paragraph"===t.getType()||"quote"===t.getType()){(0,r.ff4)(t)&&a.add(t);break}t=t.getParent()}}),n=(a.size>0?Array.from(a):t).map(e=>(function e(t){if((0,l.Pi)(t)){let n=parseInt(t.getTag().replace("h","")),r=t.getChildren().map(t=>e(t)).join("");return"#".repeat(n)+" "+r+"\n\n"}if((0,o.Mz)(t)){let n=t.getParent();return(n&&(0,o.HY)(n)&&"number"===n.getListType()?"1. ":"- ")+t.getChildren().map(t=>e(t)).join("")+"\n"}if((0,o.HY)(t))return t.getChildren().map(t=>e(t)).join("")+"\n";if((0,r.kFe)(t)){let e=t.getTextContent(),n=t.getFormat();return 16&n?`\`${e}\``:(1&n&&(e=`**${e}**`),2&n&&(e=`*${e}*`),4&n&&(e=`~~${e}~~`),e)}if((0,i.FJ)(t)){let n=t.getURL(),r=t.getTitle(),i=t.getChildren().map(t=>e(t)).join("");return r?`[${i}](${n} "${r}")`:`[${i}](${n})`}else if((0,r.ff4)(t))return t.getChildren().map(t=>e(t)).join("");return t.getTextContent()})(e)).join("")}),n.trim()}},92701:(e,t,n)=>{"use strict";function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}n.d(t,{mK:()=>r}),"undefined"!=typeof window&&window.document&&window.document.createElement},93475:(e,t,n)=>{"use strict";n.d(t,{f:()=>o});var r=n(94852),i=n(25427),l=n(3736);function o(e,t){let n=!1;return(0,r.YR)(e,function(e){if("value"in e&&/\r?\n|\r/.test(e.value)||"break"===e.type)return n=!0,i.dc}),!!((!e.depth||e.depth<3)&&(0,l.d)(e)&&(t.options.setext||n))}},94160:(e,t,n)=>{"use strict";n.d(t,{O:()=>T});var r=n(25118),i=n(84662);let l={testNode:"link",visitNode({mdastNode:e,actions:t}){t.addAndStepInto((0,i.zA)(e.url,{title:e.title}))}},o={testLexicalNode:i.FJ,visitLexicalNode:({lexicalNode:e,actions:t})=>{t.addAndStepInto("link",{url:e.getURL(),title:e.getTitle()})}};var a=n(44696),s=n(18191),u=n(58030);function c({validateUrl:e,attributes:t}){let[n]=(0,a.DF)();return(0,r.useEffect)(()=>
1{if(!n.hasNodes([i.Db]))throw Error("LinkPlugin: LinkNode not registered on editor");return(0,s.Sd)(n.registerCommand(i.yW,n=>{if(null===n)return(0,i.hx)(n),!0;if("string"==typeof n)return!(void 0!==e&&!e(n))&&((0,i.hx)(n,t),!0);{let{url:e,target:r,rel:l,title:o}=n;return(0,i.hx)(e,{...t,rel:l,target:r,title:o}),!0}},u.AcJ),void 0!==e?n.registerCommand(u.waI,r=>{let l=(0,u.vJq)();if(!(0,u.I2P)(l)||l.isCollapsed()||!(0,s.xj)(r,ClipboardEvent)||null===r.clipboardData)return!1;let o=r.clipboardData.getData("text");return!!e(o)&&!l.getNodes().some(e=>(0,u.ff4)(e))&&(n.dispatchCommand(i.yW,{...t,url:o}),r.preventDefault(),!0)},u.AcJ):()=>{})},[n,e,t]),null}function d(e,t=e=>e){return n=>{let r=e.exec(n);return null===r?null:{index:r.index,length:r[0].length,text:r[0],url:t(r[0])}}}function f(e,t){for(let n=0;n<t.length;n++){let r=t[n](e);if(r)return r}return null}let p=/[.,;\s]/;function h(e){return p.test(e)}function g(e){return h(e[e.length-1])}function m(e){let t=e.getPreviousSibling();return(0,u.ff4)(t)&&(t=t.getLastDescendant()),null===t||(0,u.wH$)(t)||(0,u.kFe)(t)&&g(t.getTextContent())}function y(e){let t=e.getNextSibling();return(0,u.ff4)(t)&&(t=t.getFirstDescendant()),null===t||(0,u.wH$)(t)||(0,u.kFe)(t)&&h(t.getTextContent()[0])}function v(e,t,n){let r=e.getChildren(),i=r.length;for(let t=0;t<i;t++){let i=r[t];if(!(0,u.kFe)(i)||!i.isSimpleText())return x(e),void n(null,e.getURL())}let l=e.getTextContent(),o=f(l,t);if(null===o||o.text!==l||!m(e)||!y(e))return x(e),void n(null,e.getURL());let a=e.getURL();if(a!==o.url&&(e.setURL(o.url),n(o.url,a)),o.attributes){let t=e.getRel();t!==o.attributes.rel&&(e.setRel(o.attributes.rel||null),n(o.attributes.rel||null,t));let r=e.getTarget();r!==o.attributes.target&&(e.setTarget(o.attributes.target||null),n(o.attributes.target||null,r))}}function x(e){let t=e.getChildren();for(let n=t.length-1;n>=0;n--)e.insertAfter(t[n]);return e.remove(),t.map(e=>e.getLatest())}function b({matchers:e,onChange:t}){let[n]=(0,a.DF)();return(0,r.useEffect)(()=>{n.hasNodes([i.k_])||function(e,...t){let n=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;for(let e of(r.append("code",77),t))r.append("v",e);throw n.search=r.toString(),Error(`Minified Lexical error #${77}; visit ${n.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(77);let r=(e,n)=>{t&&t(e,n)};return(0,s.Sd)(n.registerNodeTransform(u.Ey8,t=>{let n=t.getParentOrThrow(),l=t.getPreviousSibling();if((0,i.iK)(n)&&!n.getIsUnlinked())v(n,e,r);else if(!(0,i.FJ)(n)){t.isSimpleText()&&(h(t.getTextContent()[0])||!(0,i.iK)(l))&&function(e,t,n){let r=[...e],l=r.map(e=>e.getTextContent()).join(""),o,a=l,s=0;for(;(o=f(a,t))&&null!==o;){var c,d,p;let e=o.index,t=e+o.length;if(c=s+e,d=s+t,p=r,(c>0?h(l[c-1]):m(p[0]))&&(d<l.length?h(l[d]):y(p[p.length-1]))){let[l,,a,c]=function(e,t,n){let r=[],i=[],l=[],o=0,a=0,s=[...e];for(;s.length>0;){let e=s[0],u=e.getTextContent().length,c=a;a+u<=t?(r.push(e),o+=u):c>=n?l.push(e):i.push(e),a+=u,s.shift()}return[o,r,i,l]}(r,s+e,s+t),d=function(e,t,n,r){let l=(0,i.Yh)(r.url,r.attributes);if(1===e.length){let i,o=e[0];0===t?[i,o]=o.splitText(n):[,i,o]=o.splitText(t,n);let a=(0,u.sTu)(r.text);return a.setFormat(i.getFormat()),a.setDetail(i.getDetail()),a.setStyle(i.getStyle()),l.append(a),i.replace(l),o}if(e.length>1){let r,i=e[0],o,a=i.getTextContent().length;0===t?o=i:[,o]=i.splitText(t);let s=[];for(let t=1;t<e.length;t++){let i=e[t],l=i.getTextContent().length,o=a;if(o<n)if(a+l<=n)s.push(i);else{let[e,t]=i.splitText(n-o);s.push(e),r=t}a+=l}let c=(0,u.vJq)(),d=c?c.getNodes().find(u.kFe):void 0,f=(0,u.sTu)(o.getTextContent());return f.setFormat(o.getFormat()),f.setDetail(o.getDetail()),f.setStyle(o.getStyle()),l.append(f,...s),d&&d===o&&((0,u.I2P)(c)?f.select(c.anchor.offset,c.focus.offset):(0,u.RTZ)(c)&&f.select(0,f.getTextContent().length)),o.replace(l),r}}(a,s+e-l,s+t-l,o);r=d?[d,...c]:c,n(o.url,null),s=0}else s+=t;a=a.substring(t)}}(function(e){let t=[e],n=e.getNextSibling();for(;null!==n&&(0,u.kFe)(n)&&n.isSimpleText()&&(t.push(n),!/[\s]/.test(n.getTextContent()));)n=n.getNextSibling();return t}(t),e,r);var o=t,a=e,s=r;let n=o.getPreviousSibling(),c=o.getNextSibling(),d=o.getTextContent();!(0,i.iK)(n)||n.getIsUnlinked()||h(d[0])&&!(n.isEmailURI()?/^\.[a-zA-Z]{2,}/.test(d):/^\.[a-zA-Z0-9]{1,}/.test(d))||(n.append(o),v(n,a,s),s(null,n.getURL())),!(0,i.iK)(c)||c.getIsUnlinked()||g(d
1)||(x(c),v(c,a,s),s(null,c.getURL()))}}),n.registerCommand(i.yW,e=>{let t=(0,u.vJq)();return null===e&&!!(0,u.I2P)(t)&&(t.extract().forEach(e=>{let t=e.getParent();(0,i.iK)(t)&&(t.setIsUnlinked(!t.getIsUnlinked()),t.markDirty())}),!1)},u.AcJ))},[n,e,t]),null}let _=[d(/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,e=>e.startsWith("http")?e:`https://${e}`),d(/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/,e=>`mailto:${e}`)],C=()=>r.createElement(b,{matchers:_});var w=n(19735),k=n(39303),E=n(48387);let S=(0,w.fh)(!1),T=(0,k.Z)({init(e,t){let n=!!(null==t?void 0:t.disableAutoLink),a=(null==t?void 0:t.validateUrl)?{validateUrl:t.validateUrl}:{},s=()=>r.createElement(r.Fragment,null,r.createElement(c,{...a}),n?null:r.createElement(C,null));e.pubIn({[E.$0]:"link",[E.R1]:l,[E.q]:[i.Db,i.k_],[E.iI]:o,[S]:n,[E.Id]:s,[E.dH]:s,[E.aC]:s})}})},94852:(e,t,n)=>{"use strict";n.d(t,{YR:()=>i});var r=n(25427);function i(e,t,n,i){let l,o,a;"function"==typeof t&&"function"!=typeof n?(o=void 0,a=t,l=n):(o=t,a=n,l=i),(0,r.VG)(e,o,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return a(e,r,n)},l)}},95130:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(35933)),i=n(71882);function l(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}l.default=l,e.exports=l},95379:(e,t,n)=>{var r=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof l?new l(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,l;switch(n=n||{},i.util.type(t)){case"Object":if(n[l=i.util.objId(t)])return n[l];for(var o in r={},n[l]=r,t)t.hasOwnProperty(o)&&(r[o]=e(t[o],n));return r;case"Array":if(n[l=i.util.objId(t)])return n[l];return r=[],n[l]=r,t.forEach(function(t,i){r[i]=e(t,n)}),r;default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if(document.currentScript&&"SCRIPT"===document.currentScript.tagName&&1)return document.currentScript;try{throw Error()}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r="no-"+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var l=(r=r||i.languages)[e],o={};for(var a in l)if(l.hasOwnProperty(a)){if(a==t)for(var s in n)n.hasOwnProperty(s)&&(o[s]=n[s]);n.hasOwnProperty(a)||(o[a]=l[a])}var u=r[e];return r[e]=o,i.languages.DFS(i.languages,function(t,n){n===u&&t!=e&&(this[t]=o)}),o},DFS:function e(t,n,r,l){l=l||{};var o=i.util.objId;for(var a in t)if(t.hasOwnProperty(a)){n.call(t,a,t[a],r||a);var s=t[a],u=i.util.type(s);"Object"!==u||l[o(s)]?"Array"!==u||l[o(s)]||(l[o(s)]=!0,e(s,n,a,l)):(l[o(s)]=!0,e(s,n,null,l))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};i.hooks.run("before-highlightall",r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run("before-all-elements-highlight",r);for(var l,o=0;l=r.elements[o++];)i.highlightElement(l,!0===t,r.callback)},highlightElement:function(t,n,r){var l=i.util.getLanguage(t),o=i.languages[l];i.util.setLanguage(t,l);var a=t.parentElement;a&&"pre"===a.nodeName.toLowerCase()&&i.util.setLanguage(a,l);var s=t.textContent,u={element:t,language:l,grammar:o,code:s};function c(e){u.highlightedCode=e,i.hooks.run("before-insert",u),u.element.innerHTML=u.highlightedCode,i.hooks.run("after-highlight",u),i.hooks.run("complete",u),r&&r.call(u.element)}if(i.hooks.run("before-sanity-check",u),(a=u.element.parentElement)&&"pre"===a.nodeName.toLowerCase()&&!a.hasAttribute("tabindex")&&a.setAttribute("tabindex","0"),!u.code){i.hooks.run("complete",u),r&&r.call(u.element);return}if(i.hooks.run("before-highlight",u),!u.grammar)return void c(i.util.encode(u.code));if(n&&e.Worker){var d=new Worker(i.filename);d.onmessage=function(e){c(e.data)},d.postMessage(JSON.stringify({language:u.language,code:u.code,immediateClose:!0}))}else c(i.highlight(u.code,u.grammar,u.language))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(i.hooks.run("before-tokenize",r),!r.grammar)throw Error('The language "'+r.language+'" has no grammar.');return r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run("after-tokenize",r),l.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var u=new a;return s(u,u.head,e),function e(t,n,r,a,u,c){for(var d in r)if(r.hasOwnProperty(d)&&r[d]){var f=r[d];f=Array.isArray(f)?f:[f];for(var p=0;p<f.length;++p){if(c&&c.cause==d+","+p)return;var h=f[p],g=h.inside,m=!!h.lookbehind,y=!!h.greedy,v=h.alias;if(y&&!h.pattern.global){var x=h.pattern.toString().match(/[imsuy]*$/)[0];h.pattern=RegExp(h.pattern.source,x+"g")}for(var b=h.pattern||h,_=a.next,C=u;_!==n.tail&&(!c||!(C>
1=c.reach));C+=_.value.length,_=_.next){var w,k=_.value;if(n.length>t.length)return;if(!(k instanceof l)){var E=1;if(y){if(!(w=o(b,C,t,m))||w.index>=t.length)break;var S=w.index,T=w.index+w[0].length,A=C;for(A+=_.value.length;S>=A;)A+=(_=_.next).value.length;if(A-=_.value.length,C=A,_.value instanceof l)continue;for(var N=_;N!==n.tail&&(A<T||"string"==typeof N.value);N=N.next)E++,A+=N.value.length;E--,k=t.slice(C,A),w.index-=C}else if(!(w=o(b,0,k,m)))continue;var S=w.index,I=w[0],L=k.slice(0,S),P=k.slice(S+I.length),F=C+k.length;c&&F>c.reach&&(c.reach=F);var M=_.prev;if(L&&(M=s(n,M,L),C+=L.length),function(e,t,n){for(var r=t.next,i=0;i<n&&r!==e.tail;i++)r=r.next;t.next=r,r.prev=t,e.length-=i}(n,M,E),_=s(n,M,new l(d,g?i.tokenize(I,g):I,v,I)),P&&s(n,_,P),E>1){var O={cause:d+","+p,reach:F};e(t,n,r,_.prev,C,O),c&&O.reach>c.reach&&(c.reach=O.reach)}}}}}}(e,u,t,u.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(u)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(n&&n.length)for(var r,l=0;r=n[l++];)r(t)}},Token:l};function l(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function o(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var l=i[1].length;i.index+=l,i[0]=i[0].slice(l)}return i}function a(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function s(e,t,n){var r=t.next,i={value:n,prev:t,next:r};return t.next=i,r.prev=i,e.length++,i}if(e.Prism=i,l.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var r="";return t.forEach(function(t){r+=e(t,n)}),r}var l={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},o=t.alias;o&&(Array.isArray(o)?Array.prototype.push.apply(l.classes,o):l.classes.push(o)),i.hooks.run("wrap",l);var a="";for(var s in l.attributes)a+=" "+s+'="'+(l.attributes[s]||"").replace(/"/g,"&quot;")+'"';return"<"+l.tag+' class="'+l.classes.join(" ")+'"'+a+">"+l.content+"</"+l.tag+">"},!e.document)return e.addEventListener&&(i.disableWorkerMessageHandler||e.addEventListener("message",function(t){var n=JSON.parse(t.data),r=n.language,l=n.code,o=n.immediateClose;e.postMessage(i.highlight(l,i.languages[r],r)),o&&e.close()},!1)),i;var u=i.util.currentScript();function c(){i.manual||i.highlightAll()}if(u&&(i.filename=u.src,u.hasAttribute("data-manual")&&(i.manual=!0)),!i.manual){var d=document.readyState;"loading"===d||"interactive"===d&&u&&u.defer?document.addEventListener("DOMContentLoaded",c):window.requestAnimationFrame?window.requestAnimationFrame(c):window.setTimeout(c,16)}return i}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});e.exports&&(e.exports=r),void 0!==n.g&&(n.g.Prism=r),r.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},r.languages.markup.tag.inside["attr-value"].inside.entity=r.languages.markup.entity,r.languages.markup.doctype.inside["internal-subset"].inside=r.languages.markup,r.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Object.defineProperty(r.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:r.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};i["language-"+t]={pattern:/[\s\S]+/,inside:r.languages[t]};var l={};l[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:i},r.languages.insertBefore("markup","cdata",l)}}),Object.defineProperty(r.languages.markup.tag,"addAttribute",{value:function(e,t){r.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\
1s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:r.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),r.languages.html=r.languages.markup,r.languages.mathml=r.languages.markup,r.languages.svg=r.languages.markup,r.languages.xml=r.languages.extend("markup",{}),r.languages.ssml=r.languages.xml,r.languages.atom=r.languages.xml,r.languages.rss=r.languages.xml,function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(r),r.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},r.languages.javascript=r.languages.extend("clike",{"class-name":[r.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source)+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),r.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,r.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}
1/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:r.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:r.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:r.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:r.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:r.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),r.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:r.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),r.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),r.languages.markup&&(r.languages.markup.tag.addInlined("script","javascript"),r.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),r.languages.js=r.languages.javascript,function(){if(void 0!==r&&"undefined"!=typeof document){Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var e={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},t="data-src-status",n="loading",i="loaded",l="pre[data-src]:not(["+t+'="'+i+'"]):not(['+t+'="'+n+'"])';r.hooks.add("before-highlightall",function(e){e.selector+=", "+l}),r.hooks.add("before-sanity-check",function(o){var a=o.element;if(a.matches(l)){o.code="",a.setAttribute(t,n);var s,u,c,d,f=a.appendChild(document.createElement("CODE"));f.textContent="Loading…";var p=a.getAttribute("data-src"),h=o.language;if("none"===h){var g=(/\.(\w+)$/.exec(p)||[,"none"])[1];h=e[g]||g}r.util.setLanguage(f,h),r.util.setLanguage(a,h);var m=r.plugins.autoloader;m&&m.loadLanguages(h),s=p,u=function(e){a.setAttribute(t,i);var n=function(e){var t=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(e||"");if(t){var n=Number(t[1]),r=t[2],i=t[3];return r?i?[n,Number(i)]:[n,void 0]:[n,n]}}(a.getAttribute("data-range"));if(n){var l=e.split(/\r\n?|\n/g),o=n[0],s=null==n[1]?l.length:n[1];o<0&&(o+=l.length),o=Math.max(0,Math.min(o-1,l.length)),s<0&&(s+=l.length),s=Math.max(0,Math.min(s,l.length)),e=l.slice(o,s).join("\n"),a.hasAttribute("data-start")||a.setAttribute("data-start",String(o+1))}f.textContent=e,r.highlightElement(f)},c=function(e){a.setAttribute(t,"failed"),f.textContent=e},(d=new XMLHttpRequest).open("GET",s,!0),d.onreadystatechange=function(){var e;4==d.readyState&&(d.status<400&&d.responseText?u(d.responseText):d.status>=400?c((e=d.status,"✖ Error "+e+" while fetching file: "+d.statusText)):c("✖ Error: File does not exist or is empty"))},d.send(null)}}),r.plugins.fileHighlight={highlight:function(e){for(var t,n=(e||document).querySelectorAll(l),i=0;t=n[i++];)r.highlightElement(t)}};var o=!1;r.fileHighlight=function(){o||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),o=!0),r.plugins.fileHighlight.highlight.apply(this,arguments)}}}()}
1,99149:(e,t,n)=>{"use strict";function r(){}function i(){}n.d(t,{HB:()=>i,ok:()=>r})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.