@tryghost/koenig-lexical 0.0.39 → 0.0.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- (function(G,re){typeof exports=="object"&&typeof module<"u"?re(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],re):(G=typeof globalThis<"u"?globalThis:G||self,re(G["@tryghost/koenig-lexical"]={},G.React,G.ReactDOM))})(this,function(G,re,Je){"use strict";var g0=Object.defineProperty;var h0=(G,re,Je)=>re in G?g0(G,re,{enumerable:!0,configurable:!0,writable:!0,value:Je}):G[re]=Je;var Ne=(G,re,Je)=>(h0(G,typeof re!="symbol"?re+"":re,Je),Je);var __vite_style__=document.createElement("style");__vite_style__.innerHTML=`.koenig-lexical *,.koenig-lexical :before,.koenig-lexical :after{box-sizing:border-box;max-width:revert;max-height:revert;min-width:revert;min-height:revert;border-width:0;border-style:solid;border-color:currentColor}.koenig-lexical :before,.koenig-lexical :after{--tw-content: ""}.koenig-lexical html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif}.koenig-lexical body{margin:0;line-height:inherit}.koenig-lexical hr{height:0;color:inherit;border-top-width:1px}.koenig-lexical abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.koenig-lexical h1,.koenig-lexical h2,.koenig-lexical h3,.koenig-lexical h4,.koenig-lexical h5,.koenig-lexical h6{font-size:inherit;font-weight:inherit}.koenig-lexical a{color:inherit;text-decoration:inherit}.koenig-lexical b,.koenig-lexical strong{font-weight:bolder}.koenig-lexical code,.koenig-lexical kbd,.koenig-lexical samp,.koenig-lexical pre{font-family:Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:1em}.koenig-lexical small{font-size:80%}.koenig-lexical sub,.koenig-lexical sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.koenig-lexical sub{bottom:-.25em}.koenig-lexical sup{top:-.5em}.koenig-lexical table{text-indent:0;border-color:inherit;border-collapse:collapse}.koenig-lexical button,.koenig-lexical input,.koenig-lexical optgroup,.koenig-lexical select,.koenig-lexical textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}.koenig-lexical button,.koenig-lexical select{text-transform:none}.koenig-lexical button,.koenig-lexical [type=button],.koenig-lexical [type=reset],.koenig-lexical [type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}.koenig-lexical :-moz-focusring{outline:none}.koenig-lexical :-moz-ui-invalid{box-shadow:none}.koenig-lexical progress{vertical-align:baseline}.koenig-lexical ::-webkit-inner-spin-button,.koenig-lexical ::-webkit-outer-spin-button{height:auto}.koenig-lexical [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.koenig-lexical ::-webkit-search-decoration{-webkit-appearance:none}.koenig-lexical ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.koenig-lexical summary{display:list-item}.koenig-lexical blockquote,.koenig-lexical dl,.koenig-lexical dd,.koenig-lexical h1,.koenig-lexical h2,.koenig-lexical h3,.koenig-lexical h4,.koenig-lexical h5,.koenig-lexical h6,.koenig-lexical hr,.koenig-lexical figure,.koenig-lexical p,.koenig-lexical pre{margin:0}.koenig-lexical fieldset{margin:0;padding:0}.koenig-lexical legend{padding:0}.koenig-lexical ol,.koenig-lexical ul,.koenig-lexical menu{list-style:none;margin:0;padding:0}.koenig-lexical textarea{resize:vertical}.koenig-lexical input::-moz-placeholder,.koenig-lexical textarea::-moz-placeholder{opacity:1;color:#aeb7c1}.koenig-lexical input::placeholder,.koenig-lexical textarea::placeholder{opacity:1;color:#aeb7c1}.koenig-lexical img,.koenig-lexical svg,.koenig-lexical video,.koenig-lexical canvas,.koenig-lexical audio,.koenig-lexical iframe,.koenig-lexical embed,.koenig-lexical object{display:block;vertical-align:middle}.koenig-lexical img,.koenig-lexical video{max-width:100%;height:auto}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(20 184 255 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(20 184 255 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 480px){.container{max-width:480px}}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.koenig-lexical{position:relative}.koenig-lexical>*{font-size:1.7rem;font-weight:300;letter-spacing:.1px;color:var(--grey-900);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-moz-font-feature-settings:"liga" on}.koenig-lexical [contenteditable]{outline:none}.koenig-lexical ::-moz-selection{background:var(--grey-300)}.koenig-lexical ::selection{background:var(--grey-300)}.koenig-lexical .kg-prose :where(p,h1,h2,h3,h4,h5,h6,blockquote,aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.6rem 0 0;min-width:100%;max-width:100%}.koenig-lexical .kg-prose :where(h1,h2,h3,h4,h5,h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-family:Inter,-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;font-weight:700;color:var(--black)}.koenig-lexical .kg-prose :where(h1 strong,h2 strong,h3 strong,h4 strong,h5 strong,h6 strong):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-weight:800}.koenig-lexical .kg-prose :where(h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:4.4rem;line-height:1.15em;letter-spacing:-.015em}.koenig-lexical .kg-prose :where(h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:3.2rem;line-height:1.2em;letter-spacing:-.014em}.koenig-lexical .kg-prose :where(h3):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.5rem;line-height:1.3em;letter-spacing:-.013em}.koenig-lexical .kg-prose :where(h4):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.2rem;line-height:1.35em;letter-spacing:-.011em}.koenig-lexical .kg-prose :where(h5):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2rem;line-height:1.35em;font-weight:700;letter-spacing:-.011em}.koenig-lexical .kg-prose :where(h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:1.85rem;line-height:1.4em;font-weight:700;letter-spacing:-.008em}.koenig-lexical .kg-prose :where(p + h1,p + h2,p + h3,p + h4,p + h5,p + h6,blockquote + h1,blockquote + h2,blockquote + h3,blockquote + h4,blockquote + h5,blockquote + h6,aside + h1,aside + h2,aside + h3,aside + h4,aside + h5,aside + h6,ul + h1,ul + h2,ul + h3,ul + h4,ul + h5,ul + h6,ol + h1,ol + h2,ol + h3,ol + h4,ol + h5,ol + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:4.8rem 0 0}.koenig-lexical .kg-prose :where(h1 + h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.4rem 0 0}.koenig-lexical .kg-prose :where(h2 + h1,h3 + h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1rem 0 0}.koenig-lexical .kg-prose :where(h4 + h1,h5 + h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h6 + h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.6rem 0 0}.koenig-lexical .kg-prose :where(div + h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:4.8rem 0 0}.koenig-lexical .kg-prose :where(h1 + h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.6rem 0 0}.koenig-lexical .kg-prose :where(h2 + h2,h3 + h2,h4 + h2,.koenig-react__editor h5 + h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h6 + h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.4rem 0 0}.koenig-lexical .kg-prose :where(div + h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:4.8rem 0 0}.koenig-lexical .kg-prose :where(h1 + h3,h2 + h3,h1 + h4,h2 + h4,h1 + h5,h2 + h5,h1 + h6,h2 + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.2rem 0 0}.koenig-lexical .kg-prose :where(h3 + h4):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h3 + h3,h4 + h3,h5 + h3,h4 + h4,h5 + h4,h3 + h5,h4 + h5,h5 + h5,h3 + h6,h4 + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h5 + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.4rem 0 0}.koenig-lexical .kg-prose :where(h6 + h3,h6 + h4,h6 + h5,h6 + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.4rem 0 0}.koenig-lexical .kg-prose :where(div + h3,div + h4,div + h5,div + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:4.8rem 0 0}.koenig-lexical .kg-prose :where(h1:first-child,h2:first-child,h3:first-child,h4:first-child,.koenig-react__editor h5:first-child,h6:first-child):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin-top:0rem}@media (max-width: 500px){.koenig-lexical .kg-prose :where(h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:3.2rem}.koenig-lexical .kg-prose :where(h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.8rem}.koenig-lexical .kg-prose :where(h3):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.4rem}.koenig-lexical .kg-prose :where(h4):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.3rem}.koenig-lexical .kg-prose :where(h5):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2rem}.koenig-lexical .kg-prose :where(h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:1.9rem}}.koenig-lexical .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-family:georgia,serif;font-weight:400;line-height:1.6em;font-size:2rem}.koenig-lexical .kg-prose :where(p strong,blockquote strong,aside strong,ul strong,ol strong):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-weight:700}.koenig-lexical .kg-prose :where(h1 + p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1rem 0 0}.koenig-lexical .kg-prose :where(h2 + p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h3 + p,h4 + p,h5 + p,h6 + p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(p + p,blockquote + p,aside + p,ul + p,ol + p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0}.koenig-lexical .kg-prose :where(div + p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(div + figure):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(p:first-child):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin-top:0rem}@media (max-width: 500px){.koenig-lexical .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:1.8rem}}.koenig-lexical .kg-prose :where(ul,ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.6rem 0 0;padding:0;min-width:100%;max-width:100%}.koenig-lexical .kg-prose :where(ul li):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){display:list-item;list-style-type:disc;margin:1rem 0 0 2.4rem;padding:0 0 0 .6rem;line-height:3.2rem}.koenig-lexical .kg-prose :where(ul li:first-child):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:0 0 0 2.4rem}.koenig-lexical .kg-prose :where(ol li):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){display:list-item;list-style-type:decimal;margin:1rem 0 0 2.2rem;padding:0 0 0 .8rem;line-height:3.2rem}.koenig-lexical .kg-prose :where(ol li:first-child):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:0 0 0 2.2rem}.koenig-lexical .kg-prose :where(p + ul,p + ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3rem 0 0}.koenig-lexical .kg-prose :where(ul + ul,ul + ol,ol + ul,ol + ol,blockquote + ul,blockquote + ol,aside + ul,aside + ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3rem 0 0}.koenig-lexical .kg-prose :where(h1 + ul,h1 + ol,h2 + ul,h2 + ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h3 + ul,h3 + ol,h4 + ul,h4 + ol,h5 + ul,h5 + ol,h6 + ul,h6 + ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.2rem 0 0}.koenig-lexical .kg-prose :where(div + ul,div + ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(ul ul,ul ol,ol ul,ol ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1rem 0 2rem}.koenig-lexical .kg-prose :where(ul:first-child,ol:first-child):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin-top:0rem}.koenig-lexical .kg-prose :where(a):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){color:var(--kg-accent-color, #ff0095);text-decoration:underline}.koenig-lexical .kg-prose :where(blockquote p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:0}.koenig-lexical .kg-prose :where(blockquote):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){border-left:.25rem solid var(--kg-accent-color, #ff0095);padding-left:2rem;font-style:italic}.koenig-lexical .kg-prose :where(h1 + blockquote,h2 + blockquote):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h3 + blockquote,h4 + blockquote,.koenig-react__editor h5 + blockquote,h6 + blockquote):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.4rem 0 0}.koenig-lexical .kg-prose :where(p + blockquote,blockquote + blockquote):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0}.koenig-lexical .kg-prose :where(div + blockquote):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(aside p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:0}.koenig-lexical .kg-prose :where(aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0;padding:1rem 6rem 1.25rem;font-style:italic;text-align:center;font-size:2.4rem;color:var(--midgrey-l1)}.koenig-lexical .kg-prose :where(h1 + aside,h2 + aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h3 + aside,h4 + aside,h5 + aside,h6 + aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.4rem 0 0}.koenig-lexical .kg-prose :where(p + aside,blockquote + aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0}@media (max-width: 800px){.koenig-lexical .kg-prose :where(aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){padding-left:6rem;padding-right:6rem}}@media (max-width: 500px){.koenig-lexical .kg-prose :where(aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.2rem}}.koenig-lexical .kg-prose :where(div + aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(div):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){line-height:0;min-width:100%}.koenig-lexical .kg-prose :where(div + div):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0}.koenig-lexical .kg-prose :where(p + div,blockquote + div,aside + div,ul + div,ol + div):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0}.koenig-lexical .kg-prose :where(h1 + div):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(h2 + div,h3 + div,h4 + div,h5 + div,h6 + div):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.6rem 0 0}.koenig-lexical .kg-prose :where(hr):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.6rem 0}.koenig-lexical .kg-prose code{font-family:Consolas,Liberation Mono,Menlo,Courier,monospace;background:var(--grey-100);border:1px solid var(--grey-200);border-radius:2px;color:var(--grey-900);font-size:.8em;line-height:1em;padding:.4rem .4rem .2rem;vertical-align:middle;white-space:pre-wrap}.koenig-lexical .pointer-events-none{pointer-events:none}.koenig-lexical .visible{visibility:visible}.koenig-lexical .static{position:static}.koenig-lexical .fixed{position:fixed}.koenig-lexical .absolute{position:absolute}.koenig-lexical .relative{position:relative}.koenig-lexical .inset-0{top:0px;right:0px;bottom:0px;left:0px}.koenig-lexical .inset-8{top:3.2rem;right:3.2rem;bottom:3.2rem;left:3.2rem}.koenig-lexical .bottom-0{bottom:0px}.koenig-lexical .right-0{right:0px}.koenig-lexical .top-\\[-44px\\]{top:-44px}.koenig-lexical .left-1\\/2{left:50%}.koenig-lexical .top-0{top:0px}.koenig-lexical .left-0{left:0px}.koenig-lexical .top-\\[-2px\\]{top:-2px}.koenig-lexical .left-\\[-66px\\]{left:-66px}.koenig-lexical .left-\\[-16px\\]{left:-16px}.koenig-lexical .top-\\[-6px\\]{top:-6px}.koenig-lexical .left-\\[55\\%\\]{left:55%}.koenig-lexical .top-6{top:2.4rem}.koenig-lexical .right-6{right:2.4rem}.koenig-lexical .top-1\\/2{top:50%}.koenig-lexical .left-4{left:1.6rem}.koenig-lexical .bottom-4{bottom:1.6rem}.koenig-lexical .right-\\[-100\\%\\]{right:-100%}.koenig-lexical .top-4{top:1.6rem}.koenig-lexical .top-\\[5px\\]{top:5px}.koenig-lexical .left-\\[6px\\]{left:6px}.koenig-lexical .right-\\[6px\\]{right:6px}.koenig-lexical .top-\\[2px\\]{top:2px}.koenig-lexical .left-\\[22px\\]{left:22px}.koenig-lexical .left-\\[2px\\]{left:2px}.koenig-lexical .bottom-1{bottom:.4rem}.koenig-lexical .left-6{left:2.4rem}.koenig-lexical .z-\\[9999999\\]{z-index:9999999}.koenig-lexical .z-\\[1000\\]{z-index:1000}.koenig-lexical .z-40{z-index:40}.koenig-lexical .z-10{z-index:10}.koenig-lexical .m-0{margin:0}.koenig-lexical .m-3{margin:1.2rem}.koenig-lexical .m-2{margin:.8rem}.koenig-lexical .m-\\[1rem\\]{margin:1rem}.koenig-lexical .mx-1{margin-left:.4rem;margin-right:.4rem}.koenig-lexical .mx-\\[calc\\(50\\%-\\(50vw-var\\(--kg-breakout-adjustment\\)\\)-\\.8rem\\)\\]{margin-left:calc(50% - (50vw - var(--kg-breakout-adjustment)) - .8rem);margin-right:calc(50% - (50vw - var(--kg-breakout-adjustment)) - .8rem)}.koenig-lexical .mx-2{margin-left:.8rem;margin-right:.8rem}.koenig-lexical .mx-auto{margin-left:auto;margin-right:auto}.koenig-lexical .mb-4{margin-bottom:1.6rem}.koenig-lexical .mt-20{margin-top:8rem}.koenig-lexical .mb-3{margin-bottom:1.2rem}.koenig-lexical .mb-2{margin-bottom:.8rem}.koenig-lexical .ml-4{margin-left:1.6rem}.koenig-lexical .mt-4{margin-top:1.6rem}.koenig-lexical .mr-3{margin-right:1.2rem}.koenig-lexical .ml-\\[66px\\]{margin-left:66px}.koenig-lexical .mt-\\[2px\\]{margin-top:2px}.koenig-lexical .mt-auto{margin-top:auto}.koenig-lexical .mr-2{margin-right:.8rem}.koenig-lexical .mb-\\[1px\\]{margin-bottom:1px}.koenig-lexical .mr-4{margin-right:1.6rem}.koenig-lexical .ml-1{margin-left:.4rem}.koenig-lexical .mt-1{margin-top:.4rem}.koenig-lexical .mt-2{margin-top:.8rem}.koenig-lexical .mt-\\[1px\\]{margin-top:1px}.koenig-lexical .-mt-4{margin-top:-1.6rem}.koenig-lexical .mb-12{margin-bottom:4.8rem}.koenig-lexical .mt-6{margin-top:2.4rem}.koenig-lexical .mt-12{margin-top:4.8rem}.koenig-lexical .mt-3{margin-top:1.2rem}.koenig-lexical .mt-8{margin-top:3.2rem}.koenig-lexical .mt-10{margin-top:4rem}.koenig-lexical .ml-2{margin-left:.8rem}.koenig-lexical .mb-1{margin-bottom:.4rem}.koenig-lexical .mr-6{margin-right:2.4rem}.koenig-lexical .mb-6{margin-bottom:2.4rem}.koenig-lexical .mr-1{margin-right:.4rem}.koenig-lexical .block{display:block}.koenig-lexical .inline-block{display:inline-block}.koenig-lexical .flex{display:flex}.koenig-lexical .hidden{display:none}.koenig-lexical .h-9{height:3.6rem}.koenig-lexical .h-5{height:2rem}.koenig-lexical .h-7{height:2.8rem}.koenig-lexical .h-4{height:1.6rem}.koenig-lexical .h-\\[1px\\]{height:1px}.koenig-lexical .h-32{height:12.8rem}.koenig-lexical .h-20{height:8rem}.koenig-lexical .h-14{height:5.6rem}.koenig-lexical .h-6{height:2.4rem}.koenig-lexical .h-16{height:6.4rem}.koenig-lexical .h-\\[1\\.4rem\\]{height:1.4rem}.koenig-lexical .h-1{height:.4rem}.koenig-lexical .h-10{height:4rem}.koenig-lexical .h-11{height:4.4rem}.koenig-lexical .h-12{height:4.8rem}.koenig-lexical .h-8{height:3.2rem}.koenig-lexical .h-full{height:100%}.koenig-lexical .h-\\[96px\\]{height:96px}.koenig-lexical .h-\\[64px\\]{height:64px}.koenig-lexical .h-\\[40px\\]{height:40px}.koenig-lexical .h-3{height:1.2rem}.koenig-lexical .h-\\[324px\\]{height:324px}.koenig-lexical .h-\\[100vh\\]{height:100vh}.koenig-lexical .h-\\[22px\\]{height:22px}.koenig-lexical .h-\\[18px\\]{height:18px}.koenig-lexical .max-h-\\[376px\\]{max-height:376px}.koenig-lexical .min-h-\\[120px\\]{min-height:120px}.koenig-lexical .min-h-\\[40vh\\]{min-height:40vh}.koenig-lexical .min-h-\\[60vh\\]{min-height:60vh}.koenig-lexical .min-h-\\[80vh\\]{min-height:80vh}.koenig-lexical .w-9{width:3.6rem}.koenig-lexical .w-px{width:1px}.koenig-lexical .w-7{width:2.8rem}.koenig-lexical .w-4{width:1.6rem}.koenig-lexical .w-\\[312px\\]{width:312px}.koenig-lexical .w-full{width:100%}.koenig-lexical .w-32{width:12.8rem}.koenig-lexical .w-\\[calc\\(65vw\\+2px-var\\(--kg-breakout-adjustment\\)\\)\\]{width:calc(65vw + 2px - var(--kg-breakout-adjustment))}.koenig-lexical .w-20{width:8rem}.koenig-lexical .w-14{width:5.6rem}.koenig-lexical .w-6{width:2.4rem}.koenig-lexical .w-16{width:6.4rem}.koenig-lexical .w-\\[1\\.4rem\\]{width:1.4rem}.koenig-lexical .w-\\[80px\\]{width:80px}.koenig-lexical .w-\\[60\\%\\]{width:60%}.koenig-lexical .w-\\[740px\\]{width:740px}.koenig-lexical .w-5{width:2rem}.koenig-lexical .w-\\[764px\\]{width:764px}.koenig-lexical .w-\\[1170px\\]{width:1170px}.koenig-lexical .w-8{width:3.2rem}.koenig-lexical .w-\\[max-content\\]{width:-moz-max-content;width:max-content}.koenig-lexical .w-auto{width:auto}.koenig-lexical .w-\\[440px\\]{width:440px}.koenig-lexical .w-0{width:0px}.koenig-lexical .w-\\[42px\\]{width:42px}.koenig-lexical .w-3{width:1.2rem}.koenig-lexical .w-\\[18px\\]{width:18px}.koenig-lexical .w-\\[400px\\]{width:400px}.koenig-lexical .min-w-\\[calc\\(100\\%\\+3\\.6rem\\)\\]{min-width:calc(100% + 3.6rem)}.koenig-lexical .min-w-full{min-width:100%}.koenig-lexical .min-w-\\[33\\%\\]{min-width:33%}.koenig-lexical .min-w-\\[auto\\]{min-width:auto}.koenig-lexical .max-w-\\[740px\\]{max-width:740px}.koenig-lexical .max-w-\\[1172px\\]{max-width:1172px}.koenig-lexical .max-w-fit{max-width:-moz-fit-content;max-width:fit-content}.koenig-lexical .max-w-\\[96px\\]{max-width:96px}.koenig-lexical .max-w-\\[550px\\]{max-width:550px}.koenig-lexical .max-w-sm{max-width:38.4rem}.koenig-lexical .shrink-0{flex-shrink:0}.koenig-lexical .flex-grow,.koenig-lexical .grow{flex-grow:1}.koenig-lexical .basis-0{flex-basis:0px}.koenig-lexical .-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.koenig-lexical .translate-x-\\[calc\\(50vw-50\\%\\+\\.8rem-var\\(--kg-breakout-adjustment\\)\\)\\]{--tw-translate-x: calc(50vw - 50% + .8rem - var(--kg-breakout-adjustment));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.koenig-lexical .-translate-y-2{--tw-translate-y: -.8rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.koenig-lexical .cursor-pointer{cursor:pointer}.koenig-lexical .cursor-text{cursor:text}.koenig-lexical .cursor-zoom-out{cursor:zoom-out}.koenig-lexical .cursor-zoom-in{cursor:zoom-in}.koenig-lexical .resize-none{resize:none}.koenig-lexical .resize{resize:both}.koenig-lexical .\\!list-none{list-style-type:none!important}.koenig-lexical .flex-row{flex-direction:row}.koenig-lexical .flex-col{flex-direction:column}.koenig-lexical .items-start{align-items:flex-start}.koenig-lexical .items-end{align-items:flex-end}.koenig-lexical .items-center{align-items:center}.koenig-lexical .justify-start{justify-content:flex-start}.koenig-lexical .justify-end{justify-content:flex-end}.koenig-lexical .justify-center{justify-content:center}.koenig-lexical .justify-between{justify-content:space-between}.koenig-lexical .justify-evenly{justify-content:space-evenly}.koenig-lexical .gap-2{gap:.8rem}.koenig-lexical .overflow-auto{overflow:auto}.koenig-lexical .\\!overflow-auto{overflow:auto!important}.koenig-lexical .overflow-hidden{overflow:hidden}.koenig-lexical .overflow-y-auto{overflow-y:auto}.koenig-lexical .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.koenig-lexical .whitespace-pre{white-space:pre}.koenig-lexical .rounded{border-radius:.4rem}.koenig-lexical .rounded-full{border-radius:9999px}.koenig-lexical .rounded-lg{border-radius:.8rem}.koenig-lexical .rounded-sm{border-radius:.2rem}.koenig-lexical .rounded-md{border-radius:.6rem}.koenig-lexical .rounded-r-\\[\\.3rem\\]{border-top-right-radius:.3rem;border-bottom-right-radius:.3rem}.koenig-lexical .border{border-width:1px}.koenig-lexical .border-0{border-width:0px}.koenig-lexical .border-2{border-width:2px}.koenig-lexical .border-t{border-top-width:1px}.koenig-lexical .border-grey{--tw-border-opacity: 1;border-color:rgb(171 180 190 / var(--tw-border-opacity))}.koenig-lexical .border-transparent{border-color:transparent}.koenig-lexical .border-grey-300{--tw-border-opacity: 1;border-color:rgb(221 225 229 / var(--tw-border-opacity))}.koenig-lexical .border-green{--tw-border-opacity: 1;border-color:rgb(48 207 67 / var(--tw-border-opacity))}.koenig-lexical .border-grey-100{--tw-border-opacity: 1;border-color:rgb(244 245 246 / var(--tw-border-opacity))}.koenig-lexical .border-grey\\/20{border-color:#abb4be33}.koenig-lexical .border-grey\\/30{border-color:#abb4be4d}.koenig-lexical .border-grey\\/50{border-color:#abb4be80}.koenig-lexical .border-grey\\/40{border-color:#abb4be66}.koenig-lexical .border-grey\\/60{border-color:#abb4be99}.koenig-lexical .border-grey-200{--tw-border-opacity: 1;border-color:rgb(235 238 240 / var(--tw-border-opacity))}.koenig-lexical .border-t-grey-300{--tw-border-opacity: 1;border-top-color:rgb(221 225 229 / var(--tw-border-opacity))}.koenig-lexical .bg-black{--tw-bg-opacity: 1;background-color:rgb(21 23 26 / var(--tw-bg-opacity))}.koenig-lexical .bg-grey-900{--tw-bg-opacity: 1;background-color:rgb(57 64 71 / var(--tw-bg-opacity))}.koenig-lexical .bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.koenig-lexical .bg-grey-50{--tw-bg-opacity: 1;background-color:rgb(250 250 251 / var(--tw-bg-opacity))}.koenig-lexical .bg-green{--tw-bg-opacity: 1;background-color:rgb(48 207 67 / var(--tw-bg-opacity))}.koenig-lexical .bg-grey-100{--tw-bg-opacity: 1;background-color:rgb(244 245 246 / var(--tw-bg-opacity))}.koenig-lexical .bg-purple{--tw-bg-opacity: 1;background-color:rgb(142 66 255 / var(--tw-bg-opacity))}.koenig-lexical .bg-transparent{background-color:transparent}.koenig-lexical .bg-grey\\/30{background-color:#abb4be4d}.koenig-lexical .bg-grey-300{--tw-bg-opacity: 1;background-color:rgb(221 225 229 / var(--tw-bg-opacity))}.koenig-lexical .bg-grey\\/10{background-color:#abb4be1a}.koenig-lexical .bg-blue\\/10{background-color:#14b8ff1a}.koenig-lexical .bg-green\\/10{background-color:#30cf431a}.koenig-lexical .bg-yellow\\/10{background-color:#ffb41f1a}.koenig-lexical .bg-red\\/10{background-color:#f50b231a}.koenig-lexical .bg-pink\\/10{background-color:#fb2d8d1a}.koenig-lexical .bg-purple\\/10{background-color:#8e42ff1a}.koenig-lexical .bg-grey-200{--tw-bg-opacity: 1;background-color:rgb(235 238 240 / var(--tw-bg-opacity))}.koenig-lexical .bg-pink{--tw-bg-opacity: 1;background-color:rgb(251 45 141 / var(--tw-bg-opacity))}.koenig-lexical .bg-white\\/50{background-color:#ffffff80}.koenig-lexical .bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.koenig-lexical .from-black\\/5{--tw-gradient-from: rgb(21 23 26 / .05);--tw-gradient-to: rgb(21 23 26 / 0);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.koenig-lexical .via-black\\/5{--tw-gradient-to: rgb(21 23 26 / 0);--tw-gradient-stops: var(--tw-gradient-from), rgb(21 23 26 / .05), var(--tw-gradient-to)}.koenig-lexical .to-black\\/30{--tw-gradient-to: rgb(21 23 26 / .3)}.koenig-lexical .bg-clip-padding{background-clip:padding-box}.koenig-lexical .fill-white{fill:#fff}.koenig-lexical .fill-green{fill:#30cf43}.koenig-lexical .fill-black{fill:#15171a}.koenig-lexical .fill-grey-900{fill:#394047}.koenig-lexical .fill-red{fill:#f50b23}.koenig-lexical .stroke-grey-800{stroke:#626d79}.koenig-lexical .stroke-2{stroke-width:2}.koenig-lexical .stroke-\\[1\\.2px\\]{stroke-width:1.2px}.koenig-lexical .stroke-\\[3px\\]{stroke-width:3px}.koenig-lexical .object-contain{-o-object-fit:contain;object-fit:contain}.koenig-lexical .p-0{padding:0}.koenig-lexical .p-20{padding:8rem}.koenig-lexical .p-2{padding:.8rem}.koenig-lexical .p-4{padding:1.6rem}.koenig-lexical .p-5{padding:2rem}.koenig-lexical .p-3{padding:1.2rem}.koenig-lexical .\\!p-4{padding:1.6rem!important}.koenig-lexical .p-\\[1rem\\]{padding:1rem}.koenig-lexical .px-1{padding-left:.4rem;padding-right:.4rem}.koenig-lexical .py-0{padding-top:0;padding-bottom:0}.koenig-lexical .px-4{padding-left:1.6rem;padding-right:1.6rem}.koenig-lexical .py-2{padding-top:.8rem;padding-bottom:.8rem}.koenig-lexical .px-3{padding-left:1.2rem;padding-right:1.2rem}.koenig-lexical .px-9{padding-left:3.6rem;padding-right:3.6rem}.koenig-lexical .py-\\[1rem\\]{padding-top:1rem;padding-bottom:1rem}.koenig-lexical .px-5{padding-left:2rem;padding-right:2rem}.koenig-lexical .py-5{padding-top:2rem;padding-bottom:2rem}.koenig-lexical .px-7{padding-left:2.8rem;padding-right:2.8rem}.koenig-lexical .px-2{padding-left:.8rem;padding-right:.8rem}.koenig-lexical .py-1{padding-top:.4rem;padding-bottom:.4rem}.koenig-lexical .py-\\[14vmin\\]{padding-top:14vmin;padding-bottom:14vmin}.koenig-lexical .py-\\[12vmin\\]{padding-top:12vmin;padding-bottom:12vmin}.koenig-lexical .py-\\[18vmin\\]{padding-top:18vmin;padding-bottom:18vmin}.koenig-lexical .py-4{padding-top:1.6rem;padding-bottom:1.6rem}.koenig-lexical .px-6{padding-left:2.4rem;padding-right:2.4rem}.koenig-lexical .py-10{padding-top:4rem;padding-bottom:4rem}.koenig-lexical .px-20{padding-left:8rem;padding-right:8rem}.koenig-lexical .py-\\[15vmin\\]{padding-top:15vmin;padding-bottom:15vmin}.koenig-lexical .pt-0{padding-top:0}.koenig-lexical .pt-3{padding-top:1.2rem}.koenig-lexical .pb-6{padding-bottom:2.4rem}.koenig-lexical .pt-1{padding-top:.4rem}.koenig-lexical .pb-7{padding-bottom:2.8rem}.koenig-lexical .pb-1{padding-bottom:.4rem}.koenig-lexical .pr-8{padding-right:3.2rem}.koenig-lexical .pl-10{padding-left:4rem}.koenig-lexical .pb-10{padding-bottom:4rem}.koenig-lexical .pb-16{padding-bottom:6.4rem}.koenig-lexical .pb-4{padding-bottom:1.6rem}.koenig-lexical .pr-1{padding-right:.4rem}.koenig-lexical .text-left{text-align:left}.koenig-lexical .text-center{text-align:center}.koenig-lexical .font-sans{font-family:Inter,-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif}.koenig-lexical .font-mono{font-family:Consolas,Liberation Mono,Menlo,Courier,monospace}.koenig-lexical .font-serif{font-family:Georgia,serif}.koenig-lexical .text-xl{font-size:2rem}.koenig-lexical .text-md{font-size:1.5rem}.koenig-lexical .text-sm{font-size:1.4rem}.koenig-lexical .text-xs{font-size:1.2rem}.koenig-lexical .text-\\[1\\.3rem\\]{font-size:1.3rem}.koenig-lexical .text-\\[1\\.7rem\\]{font-size:1.7rem}.koenig-lexical .text-\\[1\\.1rem\\]{font-size:1.1rem}.koenig-lexical .text-lg{font-size:1.8rem}.koenig-lexical .text-\\[1\\.5rem\\]{font-size:1.5rem}.koenig-lexical .text-\\[1\\.6rem\\]{font-size:1.6rem}.koenig-lexical .text-6xl{font-size:6rem;line-height:1}.koenig-lexical .text-7xl{font-size:7.2rem;line-height:1}.koenig-lexical .text-8xl{font-size:9.6rem;line-height:1}.koenig-lexical .text-2xl{font-size:2.4rem}.koenig-lexical .text-\\[2\\.7rem\\]{font-size:2.7rem}.koenig-lexical .text-3xl{font-size:3rem}.koenig-lexical .text-5xl{font-size:4.8rem;line-height:1.15}.koenig-lexical .font-bold{font-weight:700}.koenig-lexical .font-normal{font-weight:400}.koenig-lexical .font-medium{font-weight:500}.koenig-lexical .font-semibold{font-weight:600}.koenig-lexical .font-extrabold{font-weight:800}.koenig-lexical .uppercase{text-transform:uppercase}.koenig-lexical .italic{font-style:italic}.koenig-lexical .leading-\\[1\\.333em\\]{line-height:1.333em}.koenig-lexical .leading-7{line-height:1.75rem}.koenig-lexical .leading-8{line-height:2rem}.koenig-lexical .leading-\\[1\\.6rem\\]{line-height:1.6rem}.koenig-lexical .leading-9{line-height:2.25rem}.koenig-lexical .leading-\\[4rem\\]{line-height:4rem}.koenig-lexical .leading-\\[4\\.4rem\\]{line-height:4.4rem}.koenig-lexical .leading-\\[4\\.8rem\\]{line-height:4.8rem}.koenig-lexical .leading-tight{line-height:1.25}.koenig-lexical .leading-none{line-height:1}.koenig-lexical .leading-snug{line-height:1.375}.koenig-lexical .leading-relaxed{line-height:1.625}.koenig-lexical .leading-6{line-height:1.5rem}.koenig-lexical .tracking-\\[\\.06rem\\]{letter-spacing:.06rem}.koenig-lexical .tracking-\\[\\.02rem\\]{letter-spacing:.02rem}.koenig-lexical .tracking-wide{letter-spacing:.025em}.koenig-lexical .tracking-normal{letter-spacing:0em}.koenig-lexical .tracking-tight{letter-spacing:-.025em}.koenig-lexical .text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.koenig-lexical .text-grey{--tw-text-opacity: 1;color:rgb(171 180 190 / var(--tw-text-opacity))}.koenig-lexical .text-grey-800{--tw-text-opacity: 1;color:rgb(98 109 121 / var(--tw-text-opacity))}.koenig-lexical .text-grey-900{--tw-text-opacity: 1;color:rgb(57 64 71 / var(--tw-text-opacity))}.koenig-lexical .text-grey-700{--tw-text-opacity: 1;color:rgb(124 139 154 / var(--tw-text-opacity))}.koenig-lexical .text-grey-500{--tw-text-opacity: 1;color:rgb(174 183 193 / var(--tw-text-opacity))}.koenig-lexical .text-black{--tw-text-opacity: 1;color:rgb(21 23 26 / var(--tw-text-opacity))}.koenig-lexical .text-grey-600{--tw-text-opacity: 1;color:rgb(149 161 173 / var(--tw-text-opacity))}.koenig-lexical .text-green{--tw-text-opacity: 1;color:rgb(48 207 67 / var(--tw-text-opacity))}.koenig-lexical .text-grey-400{--tw-text-opacity: 1;color:rgb(206 212 217 / var(--tw-text-opacity))}.koenig-lexical .text-grey-300{--tw-text-opacity: 1;color:rgb(221 225 229 / var(--tw-text-opacity))}.koenig-lexical .underline{text-decoration-line:underline}.koenig-lexical .caret-grey-800{caret-color:#626d79}.koenig-lexical .opacity-80{opacity:.8}.koenig-lexical .opacity-100{opacity:1}.koenig-lexical .opacity-50{opacity:.5}.koenig-lexical .opacity-40{opacity:.4}.koenig-lexical .opacity-60{opacity:.6}.koenig-lexical .opacity-0{opacity:0}.koenig-lexical .opacity-90{opacity:.9}.koenig-lexical .shadow{--tw-shadow: 0 0 1px rgba(0,0,0,.05), 0 5px 18px rgba(0,0,0,.08);--tw-shadow-colored: 0 0 1px var(--tw-shadow-color), 0 5px 18px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .shadow-\\[0_0_0_2px_\\#30cf43\\]{--tw-shadow: 0 0 0 2px #30cf43;--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .shadow-\\[0_0_0_2px\\]{--tw-shadow: 0 0 0 2px;--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .shadow-xl{--tw-shadow: 0 2.8px 2.2px rgba(0, 0, 0, .02), 0 6.7px 5.3px rgba(0, 0, 0, .028), 0 12.5px 10px rgba(0, 0, 0, .035), 0 22.3px 17.9px rgba(0, 0, 0, .042), 0 41.8px 33.4px rgba(0, 0, 0, .05), 0 100px 80px rgba(0, 0, 0, .07);--tw-shadow-colored: 0 2.8px 2.2px var(--tw-shadow-color), 0 6.7px 5.3px var(--tw-shadow-color), 0 12.5px 10px var(--tw-shadow-color), 0 22.3px 17.9px var(--tw-shadow-color), 0 41.8px 33.4px var(--tw-shadow-color), 0 100px 80px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .shadow-green{--tw-shadow-color: #30CF43;--tw-shadow: var(--tw-shadow-colored)}.koenig-lexical .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.koenig-lexical .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.koenig-lexical .duration-100{transition-duration:.1s}.koenig-lexical .duration-75{transition-duration:75ms}.koenig-lexical .ease-linear{transition-timing-function:linear}.koenig-lexical .ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.koenig-lexical .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.koenig-lexical .line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.koenig-lexical .line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}:root{--grey-100: #F4F5F6;--grey-200: #EBEEF0;--grey-300: #DDE1E5;--grey-500: #AEB7C1;--grey-900: #394047;--black: #15171A;--kg-breakout-adjustment: 0px}@font-face{font-family:Inter,sans-serif;src:url(./assets/fonts/Inter.ttf) format("truetype-variations");font-weight:100 900}.koenig-lexical .selection\\:bg-grey-800 *::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(98 109 121 / var(--tw-bg-opacity))}.koenig-lexical .selection\\:bg-grey-800 *::selection{--tw-bg-opacity: 1;background-color:rgb(98 109 121 / var(--tw-bg-opacity))}.koenig-lexical .selection\\:bg-grey-800::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(98 109 121 / var(--tw-bg-opacity))}.koenig-lexical .selection\\:bg-grey-800::selection{--tw-bg-opacity: 1;background-color:rgb(98 109 121 / var(--tw-bg-opacity))}.koenig-lexical .before\\:mr-2:before{content:var(--tw-content);margin-right:.8rem}.koenig-lexical .before\\:flex-1:before{content:var(--tw-content);flex:1 1 0%}.koenig-lexical .before\\:border-t:before{content:var(--tw-content);border-top-width:1px}.koenig-lexical .before\\:border-grey-300:before{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(221 225 229 / var(--tw-border-opacity))}.koenig-lexical .before\\:pb-\\[62\\.5\\%\\]:before{content:var(--tw-content);padding-bottom:62.5%}.koenig-lexical .before\\:pb-\\[12\\.5\\%\\]:before{content:var(--tw-content);padding-bottom:12.5%}.koenig-lexical .before\\:content-\\[\\'\\'\\]:before{--tw-content: "";content:var(--tw-content)}.koenig-lexical .after\\:absolute:after{content:var(--tw-content);position:absolute}.koenig-lexical .after\\:top-\\[36px\\]:after{content:var(--tw-content);top:36px}.koenig-lexical .after\\:left-\\[calc\\(50\\%-8px\\)\\]:after{content:var(--tw-content);left:calc(50% - 8px)}.koenig-lexical .after\\:ml-2:after{content:var(--tw-content);margin-left:.8rem}.koenig-lexical .after\\:block:after{content:var(--tw-content);display:block}.koenig-lexical .after\\:w-0:after{content:var(--tw-content);width:0px}.koenig-lexical .after\\:flex-1:after{content:var(--tw-content);flex:1 1 0%}.koenig-lexical .after\\:border-x-8:after{content:var(--tw-content);border-left-width:8px;border-right-width:8px}.koenig-lexical .after\\:border-t-8:after{content:var(--tw-content);border-top-width:8px}.koenig-lexical .after\\:border-t:after{content:var(--tw-content);border-top-width:1px}.koenig-lexical .after\\:border-grey-300:after{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(221 225 229 / var(--tw-border-opacity))}.koenig-lexical .after\\:border-x-transparent:after{content:var(--tw-content);border-left-color:transparent;border-right-color:transparent}.koenig-lexical .after\\:border-t-black:after{content:var(--tw-content);--tw-border-opacity: 1;border-top-color:rgb(21 23 26 / var(--tw-border-opacity))}.koenig-lexical .after\\:pb-4:after{content:var(--tw-content);padding-bottom:1.6rem}.koenig-lexical .first\\:m-0:first-child{margin:0}.koenig-lexical .first-of-type\\:mt-8:first-of-type{margin-top:3.2rem}.koenig-lexical .first-of-type\\:mr-3:first-of-type{margin-right:1.2rem}.koenig-lexical .last-of-type\\:mr-0:last-of-type{margin-right:0}.koenig-lexical .hover\\:border-grey-900:hover{--tw-border-opacity: 1;border-color:rgb(57 64 71 / var(--tw-border-opacity))}.koenig-lexical .hover\\:bg-grey-100:hover{--tw-bg-opacity: 1;background-color:rgb(244 245 246 / var(--tw-bg-opacity))}.koenig-lexical .hover\\:bg-grey-500\\/20:hover{background-color:#aeb7c133}.koenig-lexical .hover\\:fill-grey-800:hover{fill:#626d79}.koenig-lexical .hover\\:opacity-100:hover{opacity:1}.koenig-lexical .hover\\:shadow-\\[0_0_0_1px_\\#30cf43\\]:hover{--tw-shadow: 0 0 0 1px #30cf43;--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .hover\\:shadow-\\[0_0_0_1px\\]:hover{--tw-shadow: 0 0 0 1px;--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .hover\\:shadow-green:hover{--tw-shadow-color: #30CF43;--tw-shadow: var(--tw-shadow-colored)}.koenig-lexical .focus\\:border-grey-400:focus{--tw-border-opacity: 1;border-color:rgb(206 212 217 / var(--tw-border-opacity))}.koenig-lexical .focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.koenig-lexical .group:hover .group-hover\\:scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.koenig-lexical .group:hover .group-hover\\:stroke-grey-900{stroke:#394047}.koenig-lexical .group:hover .group-hover\\:text-grey-800{--tw-text-opacity: 1;color:rgb(98 109 121 / var(--tw-text-opacity))}.koenig-lexical .group:hover .group-hover\\:opacity-100{opacity:1}@media (min-width: 640px){.koenig-lexical .sm\\:min-w-\\[calc\\(100\\%\\+10rem\\)\\]{min-width:calc(100% + 10rem)}}@media (min-width: 768px){.koenig-lexical .md\\:h-9{height:3.6rem}.koenig-lexical .md\\:w-9{width:3.6rem}}@media (min-width: 1024px){.koenig-lexical .lg\\:mx-\\[calc\\(50\\%-50vw\\+\\(var\\(--kg-breakout-adjustment\\)\\/2\\)\\)\\]{margin-left:calc(50% - 50vw + (var(--kg-breakout-adjustment) / 2));margin-right:calc(50% - 50vw + (var(--kg-breakout-adjustment) / 2))}.koenig-lexical .lg\\:w-\\[calc\\(100vw-var\\(--kg-breakout-adjustment\\)\\)\\]{width:calc(100vw - var(--kg-breakout-adjustment))}.koenig-lexical .lg\\:min-w-\\[calc\\(100\\%\\+18rem\\)\\]{min-width:calc(100% + 18rem)}}
2
- `;document.head.appendChild(__vite_style__);const yo=t=>t&&typeof t=="object"&&"default"in t?t:{default:t};function Yc(t){if(t&&t.__esModule)return t;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const x=Yc(re),S=yo(re),Vc=yo(Je),f0="",ko=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M7.412 6.217h1.176c1.276 0 2.236-.773 2.236-1.608 0-.835-.96-1.609-2.236-1.609H5.765v3.217h1.647zM5.765 13H9.47C10.875 13 12 11.92 12 10.609s-1.124-2.392-2.53-2.392H5.766V13zm-2 0V3H3c-.552 0-1-.448-1-1s.448-1 1-1h5.588c2.297 0 4.236 1.563 4.236 3.609 0 .877-.357 1.666-.945 2.28C13.15 7.665 14 9.037 14 10.61 14 13.043 11.963 15 9.47 15H3c-.552 0-1-.448-1-1s.448-1 1-1h.765z",fillRule:"nonzero"})),Co=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M12.15 3L6.104 13h.811c.552 0 1 .448 1 1s-.448 1-1 1H2c-.552 0-1-.448-1-1s.448-1 1-1h1.767L9.813 3H9c-.552 0-1-.448-1-1s.448-1 1-1h4.915c.552 0 1 .448 1 1s-.448 1-1 1H12.15z",fillRule:"nonzero"})),No=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M4 7h8V2c0-.552.448-1 1-1s1 .448 1 1v5.897c.003.034.005.068.005.103 0 .035-.002.07-.005.103V14c0 .552-.448 1-1 1s-1-.448-1-1V9H4v5c0 .552-.448 1-1 1s-1-.448-1-1V2c0-.552.448-1 1-1s1 .448 1 1v5z",fillRule:"nonzero"})),Eo=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M6 8h4V5.483c0-.552.448-1 1-1s1 .448 1 1V13c0 .552-.448 1-1 1s-1-.448-1-1v-3H6v3c0 .552-.448 1-1 1s-1-.448-1-1V5.483c0-.552.448-1 1-1s1 .448 1 1V8z",fillRule:"nonzero"})),jr=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M6.4 11.688c.4-.382 1.032-.369 1.415.03.382.399.368 1.032-.03 1.414l-1.055 1.01c-1.209 1.21-3.17 1.21-4.38 0l-.494-.494c-1.208-1.209-1.208-3.17.001-4.377L5.07 6.058c1.21-1.21 3.17-1.21 4.38 0 .39.39.39 1.024 0 1.414-.391.39-1.024.39-1.415 0-.428-.428-1.122-.428-1.551 0l-3.213 3.213c-.427.427-.427 1.122 0 1.55l.494.494c.428.428 1.123.428 1.566-.015l1.07-1.026zm3.037-7.212c-.398.383-1.03.372-1.414-.025-.384-.398-.373-1.03.025-1.414l1.222-1.18c1.21-1.209 3.169-1.209 4.379 0l.493.494c1.21 1.209 1.21 3.17.013 4.366l-3.237 3.357c-1.21 1.21-3.17 1.21-4.38 0-.39-.391-.389-1.025.002-1.415.39-.39 1.024-.39 1.414.001.428.429 1.121.429 1.537.013l3.238-3.358c.428-.427.428-1.121 0-1.55l-.494-.493c-.429-.429-1.123-.429-1.563.012L9.437 4.476z",fillRule:"nonzero"})),To=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M4 8h2c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1H3c-.552 0-1-.448-1-1V5.082c0-1.176.906-2.12 2.538-2.969.49-.255 1.094-.065 1.349.425.255.49.065 1.094-.425 1.349-.578.3-.993.589-1.24.847-.168.174-.222.286-.222.348V8zm9 0c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1h-3c-.552 0-1-.448-1-1V5.082c0-1.176.906-2.12 2.538-2.969.49-.255 1.094-.065 1.349.425.255.49.065 1.094-.425 1.349-.578.3-.993.589-1.24.847-.168.174-.222.286-.222.348V8h2z",fillRule:"nonzero"})),So=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fillRule:"evenodd"},x.createElement("path",{d:"M2 3c-.552 0-1-.448-1-1s.448-1 1-1h12c.552 0 1 .448 1 1s-.448 1-1 1H2zM2 15c-.552 0-1-.448-1-1s.448-1 1-1h12c.552 0 1 .448 1 1s-.448 1-1 1H2z",fillRule:"nonzero",opacity:.6}),x.createElement("path",{d:"M2 5h12c.552 0 1 .448 1 1v4.001c0 .552-.448 1-1 1H2c-.552 0-1-.448-1-1V6c0-.552.448-1 1-1z",fillRule:"nonzero"}))),bo=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fillRule:"evenodd"},x.createElement("path",{d:"M6 3c-.552 0-1-.448-1-1s.448-1 1-1h4c.552 0 1 .448 1 1s-.448 1-1 1H6zM6 15c-.552 0-1-.448-1-1s.448-1 1-1h4c.552 0 1 .448 1 1s-.448 1-1 1H6z",fillRule:"nonzero",opacity:.6}),x.createElement("path",{d:"M2 5h12c.552 0 1 .448 1 1v4.001c0 .552-.448 1-1 1H2c-.552 0-1-.448-1-1V6c0-.552.448-1 1-1z",fillRule:"nonzero"}))),Ro=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fillRule:"evenodd"},x.createElement("path",{d:"M0 2c0-.552.448-1 1-1s1 .448 1 1v12c0 .552-.448 1-1 1s-1-.448-1-1V2zM14 2c0-.552.448-1 1-1s1 .448 1 1v12c0 .552-.448 1-1 1s-1-.448-1-1V2z",fillRule:"nonzero",opacity:.6}),x.createElement("path",{d:"M10.626 7L9.312 5.691c-.391-.39-.393-1.023-.003-1.414s1.023-.392 1.414-.003l3.029 3.017c.39.389.392 1.02.005 1.412l-3.029 3.059c-.388.392-1.022.395-1.414.007-.392-.389-.396-1.022-.007-1.414L10.648 9H5.415l1.342 1.355c.388.392.385 1.025-.007 1.414-.393.388-1.026.385-1.415-.007L2.307 8.703c-.388-.392-.386-1.023.005-1.412L5.34 4.274c.391-.39 1.025-.388 1.414.003.39.391.389 1.025-.002 1.414L5.438 7h5.188z",fillRule:"nonzero"}))),Oo=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fillRule:"evenodd"},x.createElement("path",{d:"M2 9h5c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1H2c-.552 0-1-.448-1-1v-4c0-.552.448-1 1-1zM9 1h5c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1H9c-.552 0-1-.448-1-1V2c0-.552.448-1 1-1zM4.5 5.772l1.15-1.175c.192-.198.509-.201.706-.008.198.193.201.51.008.707L4.382 7.322c-.091.109-.229.178-.382.178-.13 0-.26-.05-.357-.148L1.61 5.298c-.194-.196-.193-.513.004-.707.196-.194.512-.193.707.004L3.5 5.785V3c0-.828.672-1.5 1.5-1.5h1c.276 0 .5.224.5.5s-.224.5-.5.5H5c-.276 0-.5.224-.5.5v2.772zm7 4.456l-1.15 1.175c-.192.198-.509.201-.706.008-.198-.193-.201-.51-.008-.707l1.982-2.026c.091-.109.229-.178.382-.178.13 0 .26.05.357.148l2.032 2.054c.194.196.193.513-.004.707-.196.194-.512.193-.707-.004l-1.178-1.19V13c0 .828-.672 1.5-1.5 1.5h-1c-.276 0-.5-.224-.5-.5s.224-.5.5-.5h1c.276 0 .5-.224.5-.5v-2.772z",fillRule:"nonzero"}))),$o=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M9 7h5c.552 0 1 .448 1 1s-.448 1-1 1H9v5c0 .552-.448 1-1 1s-1-.448-1-1V9H2c-.552 0-1-.448-1-1s.448-1 1-1h5V2c0-.552.448-1 1-1s1 .448 1 1v5z",fillRule:"nonzero"})),Jn=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3V13H8.78579L13 8.78579V3H3ZM1.52721 1.52721C1.86477 1.18964 2.32261 1 2.8 1H13.2C13.6774 1 14.1352 1.18964 14.4728 1.52721C14.8104 1.86477 15 2.32261 15 2.8V8.8688C14.9999 9.34585 14.8104 9.80357 14.4732 10.141L10.1412 14.473C9.8038 14.8102 9.34607 14.9999 8.86901 15H2.8C2.32261 15 1.86477 14.8104 1.52721 14.4728C1.18964 14.1352 1 13.6774 1 13.2V2.8C1 2.32261 1.18964 1.86477 1.52721 1.52721Z"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 10H14C14.5523 10 15 9.55228 15 9C15 8.44772 14.5523 8 14 8H9.84602C9.35643 8 8.88688 8.19449 8.54069 8.54069C8.19449 8.88688 8 9.35643 8 9.84602V14C8 14.5523 8.44772 15 9 15C9.55228 15 10 14.5523 10 14V10Z"})),Mo=t=>x.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{d:"M12 1.5v21M1.5 12h21",strokeLinecap:"round",strokeLinejoin:"round"}))),Ao=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{d:"M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667z",fill:"#30cf43"}),x.createElement("path",{d:"M23.778 12.111c0 3.111-1.556 4.667-4.667 4.667-3.111 0-4.667-1.556-4.667-4.667C14.444 9 16 7.444 19.111 7.444c3.111 0 4.667 1.556 4.667 4.667zM19.111 5.5c.778 0 1.167-.389 1.167-1.167v-.777c0-.45-.195-.786-.584-1.01-.388-.225-.777-.225-1.166 0-.39.224-.584.56-.584 1.01v.777c0 .778.39 1.167 1.167 1.167zM12.788 7.435c.55.552 1.1.554 1.653.004.552-.55.553-1.1.003-1.653l-.549-.55c-.55-.552-1.101-.554-1.653-.004-.553.55-.554 1.101-.005 1.654l.55.55zM10.556 13.278h.777c.778 0 1.167-.39 1.167-1.167 0-.778-.389-1.167-1.167-1.167h-.777c-.778 0-1.167.39-1.167 1.167 0 .778.389 1.167 1.167 1.167zM25.434 16.787c-.549-.512-1.089-.502-1.62.029-.53.53-.54 1.07-.028 1.62l.549.55c.55.55 1.1.55 1.65 0 .55-.55.55-1.1 0-1.65l-.55-.549zM25.722 12.111c0 .778.39 1.167 1.167 1.167h.778c.777 0 1.166-.39 1.166-1.167 0-.778-.389-1.167-1.166-1.167h-.778c-.322 0-.597.114-.825.342-.228.228-.342.503-.342.825zM24.61 7.779c.323 0 .598-.114.824-.344l.551-.549c.55-.55.55-1.1 0-1.65-.55-.55-1.1-.55-1.65 0l-.55.55c-.366.368-.45.792-.251 1.271.198.48.557.72 1.076.722zM21.911 22.356c-.771 0-1.522.12-2.254.364-.127.042-.21.126-.25.254-.039.127-.018.244.063.35 1.283 1.689 2.07 3.583 2.362 5.684.02.142.103.214.247.214h4.906c.836 0 1.492-.343 1.967-1.031-.737-3.89-3.084-5.835-7.042-5.835h.001zM9.644 19.968c-2.518-.004-4.758.783-6.72 2.362-.1.08-.149.183-.146.31v4.2c.004 1.588.8 2.382 2.388 2.382H19.83c.122 0 .222-.046.3-.14.077-.093.105-.2.082-.319-1.083-5.863-4.606-8.795-10.568-8.795z",fill:"#FFF"}))),Gc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{d:"M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667z",fill:"#fb2d8d",fillRule:"nonzero"}),x.createElement("path",{stroke:"#FFF",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",d:"M8 20v-8l4 4 4-4v8M22 12.07v7.916M19.5 17.5l2.48 2.525L24.5 17.5"}))),Zc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{fill:"#FFF",d:"M2 4h28v24H2z"}),x.createElement("path",{d:"M32 6c0-2.667-1.333-4-4-4H4c-1.105 0-2.047.39-2.828 1.172C.39 3.952 0 4.895 0 6v20c0 2.667 1.333 4 4 4h24c2.667 0 4-1.333 4-4V6zM4 6.667c0-.594.274-1.005.823-1.232.549-.227 1.033-.131 1.453.289.42.42.516.904.29 1.453-.228.549-.639.823-1.233.823C4.444 8 4 7.556 4 6.667zm4 0c0-.594.274-1.005.823-1.232.549-.227 1.033-.131 1.453.289.42.42.516.904.29 1.453-.228.549-.639.823-1.233.823C8.444 8 8 7.556 8 6.667zm4 0c0-.594.274-1.005.823-1.232.549-.227 1.033-.131 1.453.289.42.42.516.904.29 1.453-.228.549-.639.823-1.233.823C12.444 8 12 7.556 12 6.667zM29.333 26c0 .889-.444 1.333-1.333 1.333H4c-.889 0-1.333-.444-1.333-1.333V12c0-.184.065-.341.195-.471.13-.13.287-.196.471-.196h25.334c.444 0 .666.223.666.667v14z",fill:"#14b8ff"}),x.createElement("path",{d:"M10.333 16c0 .667.334 1 1 1 .223 0 .334.111.334.333v5.334c0 .666.333 1 1 1 .666 0 1-.334 1-1v-5.334c0-.092.032-.17.097-.235.065-.065.144-.098.236-.098.667 0 1-.333 1-1s-.333-1-1-1h-2.667c-.276 0-.512.098-.707.293-.195.195-.293.43-.293.707zM5.333 23.667c.667 0 1-.334 1-1v-1.334c0-.128.056-.224.167-.288.111-.064.222-.064.333 0 .111.064.167.16.167.288v1.334c0 .666.333 1 1 1s1-.334 1-1V16c0-.385-.167-.674-.5-.866-.333-.192-.667-.192-1 0-.333.192-.5.481-.5.866v2.667c0 .222-.111.333-.333.333-.223 0-.334-.111-.334-.333V16c0-.385-.166-.674-.5-.866-.333-.192-.666-.192-1 0-.333.192-.5.481-.5.866v6.667c0 .666.334 1 1 1zM23.667 21.333c.001 1.554.78 2.332 2.333 2.334h1.333c.667 0 1-.334 1-1 0-.667-.333-1-1-1H26c-.222 0-.333-.111-.333-.334V16c0-.385-.167-.674-.5-.866-.334-.192-.667-.192-1 0-.334.192-.5.481-.5.866v5.333zM17.333 23.667c.667 0 1-.334 1-1v-2.78c0-.039.02-.063.056-.073.037-.01.066 0 .086.034.207.301.493.452.858.452.366 0 .652-.15.859-.452.02-.033.048-.045.085-.034.038.01.056.034.056.073v2.78c0 .666.334 1 1 1 .667 0 1-.334 1-1V16c-.001-.506-.246-.827-.734-.962s-.863.014-1.124.447l-.856 1.428c-.065.108-.16.161-.286.161-.125 0-.22-.053-.285-.16l-.856-1.429c-.262-.433-.636-.582-1.125-.447-.488.135-.732.456-.734.962v6.667c0 .666.334 1 1 1z",fill:"#14b8ff"}))),Jc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{fill:"#FFF",fillRule:"nonzero",d:"M1 2h25v24H1z"}),x.createElement("path",{d:"M27.333 24.667v-22C27.333.889 26.444 0 24.667 0h-22C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v22c0 1.777.889 2.666 2.667 2.666h22c1.777 0 2.666-.889 2.666-2.666z",fill:"#ffb41f"}),x.createElement("path",{d:"M19.113 12.933c-.126-.603-.497-.911-1.112-.925-.616-.014-1 .277-1.154.873l-2.123 4.667c-.051.112-.137.176-.26.192-.121.017-.221-.023-.3-.117l-1.467-1.752c-.34-.462-.796-.67-1.368-.625-.571.044-.99.32-1.254.829L6.76 21.6c-.133.222-.136.446-.008.671.128.226.321.338.58.338H22c.236 0 .42-.097.552-.293.132-.195.154-.402.067-.621l-3.506-8.762zM10.667 8c0 1.778-.89 2.667-2.667 2.667-1.778 0-2.667-.89-2.667-2.667 0-1.778.89-2.667 2.667-2.667 1.778 0 2.667.89 2.667 2.667z",fill:"#FFF"}),x.createElement("path",{d:"M30.667 8c-.369 0-.683.13-.943.39-.26.26-.39.575-.39.943v19.334c0 .444-.223.666-.667.666H9.333c-.889 0-1.333.445-1.333 1.334S8.444 32 9.333 32h20C31.111 32 32 31.111 32 29.333v-20C32 8.444 31.556 8 30.667 8z",fill:"#ffb41f"}))),Do=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("rect",{fill:"#30cf43",width:32,height:32,rx:2.5}),x.createElement("rect",{fill:"#FFF",x:3,y:15,width:26,height:2,rx:1}),x.createElement("rect",{fill:"#FFF",x:3,y:3,width:26,height:7,rx:1.5}),x.createElement("rect",{fill:"#FFF",x:3,y:22,width:26,height:7,rx:1.5}))),Xc=t=>x.createElement("svg",{width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667Z",fill:"#FB2D8D"}),x.createElement("path",{d:"M15.998-.01v18.674c-.054.558.175.951.687 1.18.525.2.965.084 1.322-.35l2.689-2.683a.404.404 0 0 1 .294-.122c.116 0 .214.041.295.122l2.69 2.684c.245.274.552.417.92.428.139 0 .273-.026.401-.078.512-.23.741-.623.687-1.18V-.062l-9.985.05v.002Z",fill:"#fff"})),qc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fillRule:"nonzero",fill:"none"},x.createElement("path",{d:"M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667z",fill:"#14b8ff"}),x.createElement("path",{d:"M23.312 9.5H8.687c-1.233 0-2 .767-2 2v9c0 1.233.767 2 2 2h14.625c1.234 0 2-.767 2-2v-9c0-1.233-.766-2-2-2zM8.56 11.25h14.882c.1.004.118.022.121.122v9.256c-.004.116-.029.122-.178.122H8.56c-.1-.004-.118-.022-.121-.122v-9.256c.003-.1.022-.118.121-.122z",fill:"#FFF"}),x.createElement("path",{d:"M18.123 13.887c.3-.325.79-.37 1.144-.123l.092.075 2.86 2.643c.355.329.377.882.049 1.237-.301.325-.791.37-1.144.123l-.093-.074-2.86-2.644c-.355-.328-.376-.882-.048-1.237zM12.64 13.839c.356-.328.91-.307 1.237.048.301.326.308.818.033 1.15l-.081.087-2.86 2.644c-.355.328-.908.306-1.237-.049-.3-.325-.307-.818-.033-1.15l.082-.087 2.86-2.643z",fill:"#FFF"}),x.createElement("path",{d:"M23.663 10.04c.398-.274.943-.174 1.217.224.252.364.189.853-.13 1.143l-.093.074-7.135 4.92c-.925.638-1.935.676-2.87.112l-.174-.112-7.135-4.92c-.398-.275-.498-.82-.223-1.217.251-.365.73-.48 1.114-.285l.103.061 7.135 4.92c.346.24.613.263.944.072l.113-.072 7.134-4.92z",fill:"#FFF"}))),Qc=t=>x.createElement("svg",{width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("rect",{width:32,height:32,rx:3,fill:"#FFB41F"}),x.createElement("g",{clipPath:"url(#clip0)",fill:"#fff"},x.createElement("path",{d:"M14.536 15.568l2.68 8.931a.83.83 0 001.382.349l1.365-1.365 3.522 3.522a.83.83 0 001.174 0l2.348-2.348a.83.83 0 000-1.174l-3.522-3.522L24.85 18.6a.829.829 0 00-.348-1.382l-8.932-2.68a.83.83 0 00-1.034 1.03z"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.86 4.255A11.25 11.25 0 0126.47 14.447a.75.75 0 01-1.496.106 9.75 9.75 0 10-10.421 10.42.75.75 0 01-.107 1.496 11.25 11.25 0 01-1.588-22.214z"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.305 8.785a6.75 6.75 0 018.203 3.934.75.75 0 11-1.39.562 5.25 5.25 0 10-6.837 6.835.75.75 0 11-.562 1.39 6.75 6.75 0 01.586-12.72z"})),x.createElement("clipPath",{id:"clip0"},x.createElement("path",{fill:"#fff",transform:"translate(4 4)",d:"M0 0h24v24H0z"}))),ed=t=>x.createElement("svg",{width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M30 0H2a2 2 0 00-2 2v28a2 2 0 002 2h28a2 2 0 002-2V2a2 2 0 00-2-2z",fill:"#30CF43"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.999 9.001c4.007-.06 7.962 2.737 10.366 5.425l.004.004a2.517 2.517 0 010 3.337l-.003.004c-2.349 2.628-6.294 5.49-10.367 5.428-4.073.061-8.018-2.8-10.365-5.429l-.003-.003a2.517 2.517 0 010-3.337l.003-.004C8.036 11.738 11.991 8.94 16 9.001h-.001zm-8.872 6.756a.517.517 0 000 .683c2.208 2.472 5.645 4.814 8.855 4.759h.034c3.209.055 6.647-2.287 8.857-4.759a.518.518 0 000-.683c-2.257-2.522-5.705-4.81-8.857-4.756h-.034c-3.152-.054-6.6 2.234-8.855 4.756z",fill:"#fff"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 18a2 2 0 100-4 2 2 0 000 4zm0 2a4 4 0 100-8 4 4 0 000 8z",fill:"#fff"})),td=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M29 0H3C1.34315 0 0 1.34315 0 3V29C0 30.6569 1.34315 32 3 32H29C30.6569 32 32 30.6569 32 29V3C32 1.34315 30.6569 0 29 0Z",fill:"#FB2D8D"}),x.createElement("path",{d:"M13.5361 15.568L16.2161 24.499C16.2573 24.6366 16.3335 24.7612 16.4372 24.8605C16.541 24.9599 16.6688 25.0306 16.808 25.0658C16.9473 25.101 17.0933 25.0994 17.2318 25.0612C17.3703 25.023 17.4965 24.9496 17.5981 24.848L18.9631 23.483L22.4851 27.005C22.5622 27.0821 22.6537 27.1433 22.7544 27.185C22.8551 27.2267 22.9631 27.2482 23.0721 27.2482C23.1811 27.2482 23.2891 27.2267 23.3898 27.185C23.4905 27.1433 23.582 27.0821 23.6591 27.005L26.0071 24.657C26.0842 24.5799 26.1454 24.4884 26.1871 24.3877C26.2288 24.287 26.2503 24.179 26.2503 24.07C26.2503 23.961 26.2288 23.853 26.1871 23.7523C26.1454 23.6516 26.0842 23.5601 26.0071 23.483L22.4851 19.961L23.8501 18.6C23.952 18.4986 24.0257 18.3725 24.0641 18.234C24.1025 18.0955 24.1043 17.9494 24.0692 17.81C24.0341 17.6707 23.9634 17.5428 23.8639 17.439C23.7645 17.3352 23.6398 17.2591 23.5021 17.218L14.5701 14.538C14.4269 14.4952 14.2748 14.4918 14.1298 14.5282C13.9848 14.5647 13.8524 14.6396 13.7464 14.7451C13.6405 14.8506 13.5651 14.9828 13.5281 15.1276C13.491 15.2725 13.4938 15.4246 13.5361 15.568Z",fill:"white"}),x.createElement("path",{d:"M12.2871 23.75C12.7013 23.75 13.0371 23.4142 13.0371 23C13.0371 22.5858 12.7013 22.25 12.2871 22.25V23.75ZM25.75 17.2496C25.75 17.6638 26.0858 17.9996 26.5 17.9996C26.9142 17.9996 27.25 17.6638 27.25 17.2496H25.75ZM8.5 9.75H23.5V8.25H8.5V9.75ZM6.25 20V12H4.75V20H6.25ZM12.2871 22.25H10.75V23.75H12.2871V22.25ZM10.75 22.25H8.5V23.75H10.75V22.25ZM25.75 12V16H27.25V12H25.75ZM25.75 16V17.2496H27.25V16H25.75ZM4.75 20C4.75 22.0711 6.42893 23.75 8.5 23.75V22.25C7.25736 22.25 6.25 21.2426 6.25 20H4.75ZM23.5 9.75C24.7426 9.75 25.75 10.7574 25.75 12H27.25C27.25 9.92893 25.5711 8.25 23.5 8.25V9.75ZM8.5 8.25C6.42893 8.25 4.75 9.92893 4.75 12H6.25C6.25 10.7574 7.25736 9.75 8.5 9.75V8.25Z",fill:"white"})),nd=t=>x.createElement("svg",{width:28,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("rect",{width:28,height:28,rx:3,fill:"#14B8FF"}),x.createElement("g",{fill:"#fff"},x.createElement("path",{d:"M20 11.75a2.242 2.242 0 0 0-1.993-2.225 9.414 9.414 0 0 0-.257 2.225c-.003.749.083 1.496.257 2.224A2.243 2.243 0 0 0 20 11.75ZM13.75 18.433 9.41 17.05l1.973 4.856a1.746 1.746 0 0 0 3.367-.636c.003-.23-.04-.457-.126-.67l-.874-2.167Z"}),x.createElement("path",{d:"M19.25 5c-.27 0-.537.048-.79.139L7.046 8.778A2.864 2.864 0 0 0 5 11.75a2.857 2.857 0 0 0 2.025 2.965l11.437 3.646c.253.091.52.138.788.139 2.138 0 3.75-2.902 3.75-6.75S21.388 5 19.25 5Zm0 12C18.188 17 17 14.755 17 11.75s1.188-5.25 2.25-5.25 2.25 2.245 2.25 5.25S20.312 17 19.25 17Z"})),x.createElement("clipPath",null,x.createElement("path",{fill:"#fff",transform:"translate(5 5)",d:"M0 0h18v18H0z"}))),rd=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M29 0H3C1.34315 0 0 1.34315 0 3V29C0 30.6569 1.34315 32 3 32H29C30.6569 32 32 30.6569 32 29V3C32 1.34315 30.6569 0 29 0Z",fill:"#FFB41F"}),x.createElement("path",{d:"M5.5 7.75H26.5",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M5.5 24.25H26.5",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M19 19.75V13.75C19 13.3522 19.158 12.9706 19.4393 12.6893C19.7206 12.408 20.1022 12.25 20.5 12.25H22",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M19 16.75H21.25",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M16 19.75V12.25",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M12.25 16.75H13V18.25C13 18.6478 12.842 19.0294 12.5607 19.3107C12.2794 19.592 11.8978 19.75 11.5 19.75C11.1022 19.75 10.7206 19.592 10.4393 19.3107C10.158 19.0294 10 18.6478 10 18.25V13.75C10 13.3522 10.158 12.9706 10.4393 12.6893C10.7206 12.408 11.1022 12.25 11.5 12.25H13",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),id=t=>x.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("rect",{width:28,height:28,rx:3,fill:"#ffb41f"}),x.createElement("rect",{x:2,y:8,width:15,height:4,rx:1.5,fill:"white"}),x.createElement("rect",{x:2,y:15,width:24,height:2,rx:1,fill:"white"}),x.createElement("rect",{x:2,y:19,width:24,height:2,rx:1,fill:"white"}),x.createElement("path",{d:"M20 9L22.5 11.5L25 9",stroke:"white",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),od=t=>x.createElement("svg",{width:28,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("rect",{width:28,height:28,rx:3,fill:"#30CF43"}),x.createElement("path",{d:"M12.07 20.77a.998.998 0 0 1-1.445-.894v-6.752a.999.999 0 0 1 1.444-.894l6.754 3.377a.997.997 0 0 1 0 1.785L12.07 20.77Z",fill:"#fff",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("rect",{x:3,y:2,width:4,height:4,rx:1,fill:"#fff"}),x.createElement("rect",{x:9,y:2,width:4,height:4,rx:1,fill:"#fff"}),x.createElement("rect",{x:15,y:2,width:4,height:4,rx:1,fill:"#fff"}),x.createElement("rect",{x:21,y:2,width:4,height:4,rx:1,fill:"#fff"})),ld=t=>x.createElement("svg",{width:28,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("rect",{width:28,height:28,rx:3,fill:"#FB2D8D"}),x.createElement("path",{d:"M9 21c1.105 0 2-.933 2-2.084s-.895-2.084-2-2.084-2 .933-2 2.084C7 20.066 7.895 21 9 21ZM19 18.916c1.105 0 2-.933 2-2.084s-.895-2.084-2-2.084-2 .933-2 2.084c0 1.15.895 2.084 2 2.084Z",fill:"#fff",stroke:"#fff",strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M21 16.834v-7.75c0-.317-.07-.63-.203-.914a2.07 2.07 0 0 0-.566-.729 1.965 1.965 0 0 0-.816-.396 1.922 1.922 0 0 0-.9.017l-6 1.042a1.995 1.995 0 0 0-1.091.74A2.14 2.14 0 0 0 11 10.124v8.792",stroke:"#fff",strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),sd=t=>x.createElement("svg",{width:28,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("rect",{width:28,height:28,rx:3,fill:"#14B8FF"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.229 6.653a2.625 2.625 0 0 0-2.882.605l-.01.01-6.761 6.761a4.312 4.312 0 1 0 6.098 6.099l8.233-8.234a.75.75 0 1 1 1.06 1.06l-8.232 8.234a5.812 5.812 0 1 1-8.22-8.22l6.758-6.757a4.124 4.124 0 1 1 5.833 5.833l-6.767 6.77a2.437 2.437 0 0 1-3.447-3.446l.01-.01 6.761-6.764a.75.75 0 1 1 1.061 1.06l-6.757 6.76a.937.937 0 0 0 1.326 1.325l6.765-6.769a2.626 2.626 0 0 0-.83-4.317Z",fill:"#fff"})),ad=t=>x.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("rect",{width:28,height:28,rx:3,fill:"#3BCD4C"}),x.createElement("path",{d:"M17.0141 11.3454C17.0775 11.3165 17.1182 11.2532 17.1182 11.1835C17.1182 11.1137 17.0775 11.0504 17.0141 11.0215L10.0678 7.85488C9.9758 7.814 9.87078 7.814 9.77877 7.85488L7.06135 9.03382C6.99572 9.06178 6.95312 9.12623 6.95312 9.19757C6.95312 9.2689 6.99572 9.33335 7.06135 9.36131L14.3871 12.414C14.4784 12.4523 14.5816 12.4508 14.6718 12.4098L17.0141 11.3454Z",fill:"white"}),x.createElement("path",{d:"M21.3502 9.37202C21.4141 9.34329 21.4552 9.27975 21.4552 9.2097C21.4552 9.13965 21.4141 9.07612 21.3502 9.04738L14.4716 6.05943C14.29 5.98019 14.0837 5.98019 13.9021 6.05943L11.6097 7.05613C11.5454 7.08468 11.5039 7.14844 11.5039 7.2188C11.5039 7.28917 11.5454 7.35293 11.6097 7.38148L18.5153 10.5296C18.609 10.5722 18.7165 10.5722 18.8101 10.5296L21.3502 9.37202Z",fill:"white"}),x.createElement("path",{d:"M6.24633 10.1777C6.19138 10.1549 6.12865 10.161 6.07916 10.194C6.02966 10.2271 5.99996 10.2827 6 10.3422V18.2773C5.99998 18.5646 6.17266 18.8238 6.43783 18.9344L13.76 21.9864C13.8149 22.0093 13.8777 22.0031 13.9271 21.9701C13.9766 21.937 14.0063 21.8815 14.0063 21.8219V13.5309C14.0062 13.459 13.963 13.3942 13.8967 13.3664L6.24633 10.1777Z",fill:"white"}),x.createElement("path",{d:"M15.0781 21.7899C15.0784 21.8502 15.1092 21.9063 15.1599 21.939C15.2105 21.9718 15.2743 21.9767 15.3294 21.9522L21.9582 18.9394C22.2122 18.8238 22.3753 18.5705 22.3754 18.2915V10.3578C22.3754 10.2973 22.3447 10.241 22.2939 10.2082C22.2431 10.1753 22.1791 10.1706 22.124 10.1955L15.1849 13.3507C15.1211 13.3792 15.0801 13.4425 15.0803 13.5124L15.0781 21.7899Z",fill:"white"})),cd=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M29.5 0H2.5C1.11929 0 0 1.11929 0 2.5V29.5C0 30.8807 1.11929 32 2.5 32H29.5C30.8807 32 32 30.8807 32 29.5V2.5C32 1.11929 30.8807 0 29.5 0Z",fill:"#FB2D8D"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 10C6 8.89543 6.89543 8 8 8H24C25.1046 8 26 8.89543 26 10V15C26 16.1046 25.1046 17 24 17H8C6.89543 17 6 16.1046 6 15V10ZM6 24C6 23.4477 6.44772 23 7 23H25C25.5523 23 26 23.4477 26 24C26 24.5523 25.5523 25 25 25H7C6.44772 25 6 24.5523 6 24ZM7 19C6.44772 19 6 19.4477 6 20C6 20.5523 6.44772 21 7 21H25C25.5523 21 26 20.5523 26 20C26 19.4477 25.5523 19 25 19H7Z",fill:"white"})),dd=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{d:"M31.252 8.488c-.366-1.37-1.448-2.452-2.824-2.823C25.941 5 15.958 5 15.958 5s-9.977 0-12.47.665c-1.37.366-2.452 1.447-2.823 2.823C0 10.976 0 16.17 0 16.17s0 5.194.665 7.682c.366 1.372 1.447 2.453 2.823 2.823 2.493.666 12.47.666 12.47.666s9.983 0 12.47-.666c1.372-.365 2.453-1.447 2.824-2.823.665-2.488.665-7.682.665-7.682s0-5.194-.665-7.682",fill:"#D9252A"}),x.createElement("path",{fill:"#FFFFFE",d:"M12.77 20.958l8.291-4.788-8.291-4.788v9.576"}))),ud=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M10.063 29.002c12.076 0 18.68-10.005 18.68-18.68 0-.285 0-.567-.019-.85C30.01 8.545 31.12 7.393 32 6.076c-1.198.53-2.47.879-3.77 1.032 1.37-.82 2.395-2.11 2.886-3.63-1.29.764-2.7 1.303-4.17 1.593-2.035-2.164-5.268-2.694-7.887-1.292-2.62 1.401-3.973 4.386-3.3 7.28-5.28-.265-10.198-2.758-13.532-6.86-1.742 3-.852 6.838 2.033 8.764-1.045-.03-2.067-.313-2.98-.822v.084c0 3.125 2.204 5.817 5.267 6.435-.966.264-1.98.303-2.964.113.86 2.675 3.325 4.507 6.133 4.56-2.324 1.827-5.196 2.818-8.153 2.815-.522 0-1.044-.032-1.563-.094 3.002 1.927 6.496 2.949 10.063 2.944",fill:"#1DA1F2",fillRule:"nonzero"})),Yr=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 122.43 122.41",...t},x.createElement("path",{d:"M83.86 54.15v34.13H38.57V54.15H0v68.26h122.43V54.15H83.86zM38.57 0h45.3v34.13h-45.3z"})),gd=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{d:"M31.886 25.508c0 3.522-2.855 6.377-6.377 6.377H6.377C2.857 31.885 0 29.03 0 25.508V6.378C0 2.854 2.857 0 6.377 0H25.51c3.522 0 6.377 2.855 6.377 6.377v19.131",fill:"#0FB7FF"}),x.createElement("path",{d:"M25.998 10.58c.175-.982.17-1.992-.436-2.755-.846-1.07-2.646-1.11-3.88-.921-1.003.153-4.397 1.651-5.552 5.236 2.046-.156 3.118.148 2.921 2.4-.082.943-.558 1.976-1.09 2.966-.614 1.141-1.765 3.382-3.274 1.767-1.36-1.454-1.257-4.235-1.568-6.086-.173-1.04-.356-2.334-.697-3.402-.293-.92-.966-2.027-1.788-2.267-.884-.26-1.976.146-2.618.523-2.042 1.2-3.598 2.908-5.365 4.317v.132c.35.335.444.884.96.959 1.216.179 2.375-1.134 3.184.232.492.834.645 1.749.96 2.648.42 1.198.746 2.503 1.09 3.88.583 2.334 1.299 5.82 3.316 6.675 1.029.437 2.575-.148 3.358-.612 2.122-1.255 3.775-3.075 5.19-4.927 3.234-4.382 5.019-9.347 5.289-10.765",fill:"#FFFFFE"}))),hd=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M31.976 10.886c-.007-.039-.014-.078-.024-.116l-.022-.066c-.01-.034-.022-.068-.035-.1l-.03-.067c-.015-.031-.03-.062-.048-.092-.012-.022-.026-.042-.039-.063-.018-.029-.037-.057-.058-.084-.015-.02-.03-.04-.047-.059-.022-.026-.045-.05-.068-.075l-.055-.053c-.025-.023-.051-.045-.078-.065-.021-.016-.041-.033-.063-.047-.008-.006-.014-.013-.023-.018L16.762.231c-.461-.308-1.063-.308-1.525 0L.612 9.981l-.022.017c-.022.015-.042.031-.063.047-.027.021-.053.043-.078.065-.019.017-.037.035-.055.054-.024.024-.046.048-.068.074-.017.02-.032.039-.047.06-.02.028-.04.055-.058.084l-.04.064c-.017.03-.032.06-.046.09-.01.022-.022.045-.03.067-.014.033-.026.067-.036.1l-.022.065c-.01.038-.017.076-.024.115-.004.02-.008.04-.01.06-.009.06-.013.119-.013.18v9.751c0 .06.004.121.013.18.003.022.009.039.013.06.007.038.013.077.026.116l.021.067c.011.034.022.069.035.1.009.022.021.043.03.065.014.03.03.06.047.092.012.021.026.043.04.062.018.03.038.056.06.082.014.022.03.04.047.06.022.026.043.051.069.074.017.018.034.04.056.052l.077.066c.021.017.043.03.06.046.009.005.014.013.022.017l14.621 9.755c.231.155.496.233.763.232.267-.002.532-.078.763-.232l14.625-9.75.022-.016c.022-.015.042-.031.063-.047.027-.021.053-.043.078-.066l.055-.053c.024-.024.047-.049.068-.075.017-.02.032-.039.047-.06.02-.026.04-.054.058-.083.014-.02.027-.042.04-.063.017-.03.032-.06.047-.092l.03-.066c.014-.033.025-.067.035-.1.008-.023.016-.045.022-.067.01-.038.017-.077.024-.116.004-.02.009-.039.01-.06.009-.059.013-.118.013-.179v-9.75c0-.06-.005-.12-.012-.18-.004-.02-.01-.038-.014-.06h.002zM16 19.253L11.137 16 16 12.747 20.863 16 16 19.253zm-1.375-8.895l-5.962 3.988-4.812-3.22 10.774-7.182v6.414zM6.19 16l-3.44 2.3V13.7l3.44 2.3zm2.473 1.655l5.962 3.987v6.414L3.85 20.873l4.812-3.219v.001zm8.712 3.986l5.961-3.987 4.813 3.22-10.774 7.181v-6.414zm8.434-5.64l3.44-2.302v4.602L25.81 16zm-2.473-1.655l-5.961-3.987V3.944l10.774 7.183-4.813 3.219z",fill:"#000",fillRule:"nonzero"})),fd=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M16 .053C7.19.053.047 7.194.047 16.003c0 8.81 7.142 15.951 15.951 15.951 8.81 0 15.951-7.14 15.951-15.95C31.95 7.194 24.81.054 16 .054V.053zm7.314 23.005c-.285.469-.899.618-1.367.33-3.745-2.288-8.46-2.806-14.013-1.537-.535.122-1.068-.213-1.19-.749-.122-.535.212-1.068.748-1.19 6.076-1.389 11.288-.79 15.493 1.779.468.287.617.899.33 1.367zm1.953-4.343c-.36.585-1.126.77-1.71.41-4.288-2.636-10.824-3.4-15.896-1.86-.657.199-1.352-.172-1.552-.828-.198-.658.173-1.351.83-1.551 5.793-1.758 12.994-.907 17.918 2.12.585.36.77 1.125.41 1.709zm.167-4.523c-5.14-3.054-13.623-3.334-18.531-1.845-.788.24-1.622-.205-1.86-.994-.24-.788.205-1.621.994-1.86 5.634-1.711 15.001-1.38 20.92 2.133.71.42.943 1.336.522 2.044-.42.71-1.337.943-2.044.522z",fill:"#1ED760",fillRule:"nonzero"})),pd=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M15.924 9.922c-.236 0-.43.194-.434.433l-.177 8.866.178 3.218c.003.235.197.43.433.43s.43-.195.433-.433v.004l.193-3.219-.193-8.867c-.003-.238-.197-.432-.433-.432zm12.14 5.102c-.54 0-1.054.11-1.522.306C26.228 11.783 23.254 9 19.625 9c-.887 0-1.753.175-2.517.47-.298.115-.377.234-.38.463v12.492c.004.242.19.442.426.466l10.91.006c2.174 0 3.936-1.762 3.936-3.936s-1.762-3.937-3.936-3.937zM10.886 22.56v-.002l.226-3.338-.226-7.276c-.006-.181-.148-.323-.325-.323-.176 0-.319.142-.324.323l-.202 7.276.202 3.34c.005.178.148.32.324.32.177 0 .318-.142.325-.321v.001zm-2.952.32c.144 0 .262-.117.27-.267l.264-3.394-.265-6.497c-.007-.15-.125-.267-.27-.267-.144 0-.263.117-.269.267l-.234 6.497.234 3.395c.006.149.125.266.27.266zm5.297-10.868c-.209 0-.375.166-.38.377l-.169 6.832.17 3.287c.004.21.17.375.379.375.207 0 .373-.166.378-.377v.002l.19-3.287-.19-6.832c-.005-.211-.17-.377-.378-.377zM2.802 22.657c.083 0 .15-.066.16-.156l.34-3.286-.34-3.41c-.01-.091-.077-.157-.16-.157-.084 0-.152.066-.16.157l-.299 3.41.299 3.285c.008.091.076.157.16.157zm2.546.188c.113 0 .206-.092.214-.212l.302-3.418-.302-3.25c-.008-.12-.1-.211-.214-.211-.116 0-.208.09-.216.212l-.266 3.25.266 3.417c.008.12.1.212.216.212zm6.543.03c.191 0 .346-.154.351-.35v.003l.209-3.309-.209-7.09c-.005-.196-.16-.35-.351-.35-.193 0-.348.154-.352.35l-.185 7.09.185 3.308c.004.194.159.348.352.348zm2.69.013c.22 0 .401-.181.405-.404v.002-.002l.172-3.263-.172-8.13c-.004-.223-.186-.405-.406-.405-.22 0-.403.182-.406.405l-.153 8.127.153 3.268c.003.22.186.402.406.402zm-5.338-.016c.16 0 .29-.129.296-.294l.246-3.36-.246-7.039c-.006-.165-.137-.294-.296-.294-.162 0-.292.13-.297.295l-.218 7.038.218 3.361c.005.164.135.293.297.293zM4.07 15.527c-.1 0-.18.08-.188.185L3.6 19.215l.282 3.39c.008.104.089.184.188.184.098 0 .178-.08.187-.184l.32-3.39-.32-3.504c-.009-.104-.09-.184-.187-.184zm2.565-1.837c-.129 0-.235.105-.242.24l-.25 5.287.25 3.417c.007.133.113.239.242.239s.235-.106.243-.24v.001l.283-3.417-.283-5.288c-.008-.134-.114-.24-.243-.24zm-4.957 2.65c-.01-.076-.066-.129-.133-.129-.068 0-.124.055-.133.13l-.315 2.873.315 2.81c.01.076.065.13.133.13.067 0 .122-.053.133-.129l.358-2.81-.358-2.874zm-1.316.972c-.067 0-.12.052-.128.125L0 19.214l.234 1.747c.009.074.061.125.128.125.065 0 .117-.05.128-.124l.277-1.748-.277-1.778c-.01-.073-.063-.124-.128-.124z",fill:"#EE7C25",fillRule:"evenodd"})),md=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M32 16C32 24.8361 24.8361 32 16 32C7.16394 32 0 24.8361 0 16C0 7.16394 7.16394 0 16 0C24.8379 0 32 7.16394 32 16Z",fill:"#2081E2"}),x.createElement("path",{d:"M7.89371 16.5376L7.96274 16.4291L12.125 9.91784C12.1858 9.82251 12.3288 9.83236 12.3748 9.93592C13.0702 11.4943 13.6702 13.4324 13.3891 14.639C13.2691 15.1354 12.9403 15.8078 12.5704 16.4291C12.5228 16.5196 12.4702 16.6083 12.4143 16.6938C12.388 16.7333 12.3436 16.7563 12.2959 16.7563H8.01534C7.90027 16.7563 7.83288 16.6313 7.89371 16.5376Z",fill:"white"}),x.createElement("path",{d:"M26.4461 17.7475V18.7782C26.4461 18.8374 26.4099 18.89 26.3573 18.913C26.0351 19.0511 24.9321 19.5574 24.4734 20.1952C23.303 21.8242 22.4088 24.1536 20.4098 24.1536H12.0706C9.11495 24.1536 6.71985 21.7503 6.71985 18.7848V18.6894C6.71985 18.6105 6.78394 18.5464 6.86286 18.5464H11.5117C11.6037 18.5464 11.6711 18.6319 11.6629 18.7223C11.63 19.0248 11.6859 19.3338 11.8289 19.6149C12.1051 20.1755 12.6772 20.5256 13.2952 20.5256H15.5966V18.7289H13.3215C13.2048 18.7289 13.1358 18.5941 13.2032 18.4987C13.2278 18.4609 13.2558 18.4215 13.2854 18.3771C13.5007 18.0714 13.8081 17.5963 14.1139 17.0555C14.3227 16.6905 14.5248 16.3009 14.6876 15.9097C14.7205 15.839 14.7468 15.7666 14.7731 15.696C14.8174 15.571 14.8635 15.4543 14.8964 15.3376C14.9293 15.239 14.9555 15.1354 14.9818 15.0384C15.0591 14.7064 15.092 14.3546 15.092 13.9897C15.092 13.8467 15.0854 13.697 15.0723 13.554C15.0657 13.3979 15.046 13.2417 15.0262 13.0855C15.0131 12.9474 14.9884 12.811 14.9621 12.668C14.9293 12.4592 14.8832 12.2521 14.8306 12.0433L14.8125 11.9644C14.7731 11.8214 14.7402 11.685 14.6942 11.542C14.5643 11.0932 14.4147 10.6559 14.2569 10.2466C14.1994 10.0839 14.1336 9.92771 14.0678 9.77155C13.9709 9.53647 13.8722 9.32278 13.7818 9.12057C13.7358 9.02851 13.6964 8.94467 13.6569 8.85919C13.6125 8.7622 13.5665 8.66521 13.5205 8.57318C13.4876 8.50249 13.4498 8.43673 13.4235 8.37097L13.1424 7.85151C13.1029 7.78083 13.1687 7.69699 13.2459 7.71836L15.0049 8.19507H15.0098C15.0131 8.19507 15.0147 8.19673 15.0164 8.19673L15.2481 8.26083L15.503 8.33318L15.5966 8.35945V7.31398C15.5966 6.80931 16.001 6.39999 16.5008 6.39999C16.7506 6.39999 16.9775 6.50191 17.1402 6.66793C17.303 6.83398 17.4049 7.06083 17.4049 7.31398V8.86579L17.5923 8.91836C17.6071 8.92332 17.6219 8.92988 17.635 8.93974C17.6811 8.97427 17.7468 9.02521 17.8306 9.08771C17.8964 9.14028 17.9671 9.20441 18.0526 9.27017C18.2219 9.40659 18.4241 9.58249 18.646 9.7847C18.7052 9.83564 18.7627 9.88825 18.8153 9.94086C19.1014 10.2072 19.4219 10.5195 19.7277 10.8647C19.8131 10.9617 19.897 11.0603 19.9824 11.1639C20.0679 11.2691 20.1583 11.3726 20.2372 11.4762C20.3408 11.6143 20.4526 11.7573 20.5496 11.9069C20.5956 11.9776 20.6482 12.0499 20.6926 12.1206C20.8175 12.3096 20.9277 12.5053 21.0329 12.7009C21.0773 12.7913 21.1233 12.8899 21.1627 12.9869C21.2794 13.2483 21.3715 13.5146 21.4307 13.7809C21.4487 13.8384 21.4619 13.9009 21.4685 13.9568V13.9699C21.4882 14.0488 21.4948 14.1327 21.5014 14.2181C21.5277 14.491 21.5145 14.7639 21.4553 15.0384C21.4307 15.1552 21.3978 15.2653 21.3583 15.382C21.3189 15.4938 21.2794 15.6105 21.2285 15.7206C21.1299 15.9491 21.0131 16.1776 20.875 16.3913C20.8307 16.4702 20.7781 16.5541 20.7254 16.633C20.6679 16.7168 20.6087 16.7957 20.5561 16.873C20.4838 16.9716 20.4066 17.0752 20.3277 17.1672C20.257 17.2642 20.1846 17.3612 20.1057 17.4467C19.9956 17.5765 19.8904 17.6998 19.7802 17.8182C19.7145 17.8954 19.6438 17.9744 19.5715 18.045C19.5008 18.1239 19.4285 18.1946 19.3627 18.2604C19.2526 18.3705 19.1605 18.456 19.0832 18.5267L18.9024 18.6927C18.8761 18.7157 18.8416 18.7289 18.8054 18.7289H17.4049V20.5256H19.1671C19.5616 20.5256 19.9364 20.3859 20.2389 20.1294C20.3424 20.039 20.7945 19.6478 21.3287 19.0577C21.3468 19.0379 21.3699 19.0231 21.3962 19.0166L26.2636 17.6094C26.354 17.5831 26.4461 17.6522 26.4461 17.7475Z",fill:"white"})),xd=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("rect",{fill:"#fb2d8d",width:32,height:32,rx:2.5}),x.createElement("path",{d:"M12 16c0 1.333-.667 2-2 2s-2-.667-2-2 .667-2 2-2 2 .667 2 2zM18 16c0 1.333-.667 2-2 2s-2-.667-2-2 .667-2 2-2 2 .667 2 2zM24 16c0 1.333-.667 2-2 2s-2-.667-2-2 .667-2 2-2 2 .667 2 2z",fill:"#FFF"}))),_d=t=>x.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{"data-selector":"bg",d:"M2 24h13l9-9V2a2 2 0 00-2-2H2a2 2 0 00-2 2v20a2 2 0 002 2z",fill:"#F0F6F9"}),x.createElement("rect",{"data-selector":"block",x:5.25,y:4.5,width:13.5,height:4.5,rx:1,fill:"#738A94"}),x.createElement("path",{"data-selector":"fold",d:"M15 16v8l9-9h-8a1 1 0 00-1 1z",fill:"#DAE8F1"}),x.createElement("rect",{"data-selector":"line",x:5.25,y:11.25,width:8.25,height:1.5,rx:.75,fill:"#738A94"})),Vr=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",...t},x.createElement("g",{strokeLinecap:"round",strokeWidth:2,fill:"none",stroke:"currentColor",strokeLinejoin:"round",className:"nc-icon-wrapper"},x.createElement("circle",{cx:18,cy:16,r:4}),x.createElement("path",{"data-cap":"butt",d:"M20.849 33.164 33 20l13 13M2 38l12-11 10 9"}),x.createElement("path",{d:"M2 6h44v36H2z"}))),vd=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",...t},x.createElement("g",{strokeLinecap:"round",strokeWidth:2,fill:"none",stroke:"currentColor",strokeLinejoin:"round",className:"nc-icon-wrapper"},x.createElement("path",{d:"M3 9h42v36H3zm7-6h28"}),x.createElement("path",{d:"m10 38 7-10 5 4 8-11 9 17H10z"}),x.createElement("circle",{cx:17,cy:19,r:3})));var Lo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wd(t){var e=t.default;if(typeof e=="function"){var n=function(){return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var Xn={exports:{}},qn={};/**
1
+ (function(V,re){typeof exports=="object"&&typeof module<"u"?re(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],re):(V=typeof globalThis<"u"?globalThis:V||self,re(V["@tryghost/koenig-lexical"]={},V.React,V.ReactDOM))})(this,function(V,re,Je){"use strict";var g0=Object.defineProperty;var h0=(V,re,Je)=>re in V?g0(V,re,{enumerable:!0,configurable:!0,writable:!0,value:Je}):V[re]=Je;var Ne=(V,re,Je)=>(h0(V,typeof re!="symbol"?re+"":re,Je),Je);var __vite_style__=document.createElement("style");__vite_style__.innerHTML=`.koenig-lexical *,.koenig-lexical :before,.koenig-lexical :after{box-sizing:border-box;max-width:revert;max-height:revert;min-width:revert;min-height:revert;border-width:0;border-style:solid;border-color:currentColor}.koenig-lexical :before,.koenig-lexical :after{--tw-content: ""}.koenig-lexical html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif}.koenig-lexical body{margin:0;line-height:inherit}.koenig-lexical hr{height:0;color:inherit;border-top-width:1px}.koenig-lexical abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.koenig-lexical h1,.koenig-lexical h2,.koenig-lexical h3,.koenig-lexical h4,.koenig-lexical h5,.koenig-lexical h6{font-size:inherit;font-weight:inherit}.koenig-lexical a{color:inherit;text-decoration:inherit}.koenig-lexical b,.koenig-lexical strong{font-weight:bolder}.koenig-lexical code,.koenig-lexical kbd,.koenig-lexical samp,.koenig-lexical pre{font-family:Consolas,Liberation Mono,Menlo,Courier,monospace;font-size:1em}.koenig-lexical small{font-size:80%}.koenig-lexical sub,.koenig-lexical sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.koenig-lexical sub{bottom:-.25em}.koenig-lexical sup{top:-.5em}.koenig-lexical table{text-indent:0;border-color:inherit;border-collapse:collapse}.koenig-lexical button,.koenig-lexical input,.koenig-lexical optgroup,.koenig-lexical select,.koenig-lexical textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}.koenig-lexical button,.koenig-lexical select{text-transform:none}.koenig-lexical button,.koenig-lexical [type=button],.koenig-lexical [type=reset],.koenig-lexical [type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}.koenig-lexical :-moz-focusring{outline:none}.koenig-lexical :-moz-ui-invalid{box-shadow:none}.koenig-lexical progress{vertical-align:baseline}.koenig-lexical ::-webkit-inner-spin-button,.koenig-lexical ::-webkit-outer-spin-button{height:auto}.koenig-lexical [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.koenig-lexical ::-webkit-search-decoration{-webkit-appearance:none}.koenig-lexical ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.koenig-lexical summary{display:list-item}.koenig-lexical blockquote,.koenig-lexical dl,.koenig-lexical dd,.koenig-lexical h1,.koenig-lexical h2,.koenig-lexical h3,.koenig-lexical h4,.koenig-lexical h5,.koenig-lexical h6,.koenig-lexical hr,.koenig-lexical figure,.koenig-lexical p,.koenig-lexical pre{margin:0}.koenig-lexical fieldset{margin:0;padding:0}.koenig-lexical legend{padding:0}.koenig-lexical ol,.koenig-lexical ul,.koenig-lexical menu{list-style:none;margin:0;padding:0}.koenig-lexical textarea{resize:vertical}.koenig-lexical input::-moz-placeholder,.koenig-lexical textarea::-moz-placeholder{opacity:1;color:#aeb7c1}.koenig-lexical input::placeholder,.koenig-lexical textarea::placeholder{opacity:1;color:#aeb7c1}.koenig-lexical img,.koenig-lexical svg,.koenig-lexical video,.koenig-lexical canvas,.koenig-lexical audio,.koenig-lexical iframe,.koenig-lexical embed,.koenig-lexical object{display:block;vertical-align:middle}.koenig-lexical img,.koenig-lexical video{max-width:100%;height:auto}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(20 184 255 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(20 184 255 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 480px){.container{max-width:480px}}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.koenig-lexical{position:relative}.koenig-lexical>*{font-size:1.7rem;font-weight:300;letter-spacing:.1px;color:var(--grey-900);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-moz-font-feature-settings:"liga" on}.koenig-lexical [contenteditable]{outline:none}.koenig-lexical ::-moz-selection{background:var(--grey-300)}.koenig-lexical ::selection{background:var(--grey-300)}.koenig-lexical .kg-prose :where(p,h1,h2,h3,h4,h5,h6,blockquote,aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.6rem 0 0;min-width:100%;max-width:100%}.koenig-lexical .kg-prose :where(h1,h2,h3,h4,h5,h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-family:Inter,-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;font-weight:700;color:var(--black)}.koenig-lexical .kg-prose :where(h1 strong,h2 strong,h3 strong,h4 strong,h5 strong,h6 strong):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-weight:800}.koenig-lexical .kg-prose :where(h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:4.4rem;line-height:1.15em;letter-spacing:-.015em}.koenig-lexical .kg-prose :where(h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:3.2rem;line-height:1.2em;letter-spacing:-.014em}.koenig-lexical .kg-prose :where(h3):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.5rem;line-height:1.3em;letter-spacing:-.013em}.koenig-lexical .kg-prose :where(h4):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.2rem;line-height:1.35em;letter-spacing:-.011em}.koenig-lexical .kg-prose :where(h5):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2rem;line-height:1.35em;font-weight:700;letter-spacing:-.011em}.koenig-lexical .kg-prose :where(h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:1.85rem;line-height:1.4em;font-weight:700;letter-spacing:-.008em}.koenig-lexical .kg-prose :where(p + h1,p + h2,p + h3,p + h4,p + h5,p + h6,blockquote + h1,blockquote + h2,blockquote + h3,blockquote + h4,blockquote + h5,blockquote + h6,aside + h1,aside + h2,aside + h3,aside + h4,aside + h5,aside + h6,ul + h1,ul + h2,ul + h3,ul + h4,ul + h5,ul + h6,ol + h1,ol + h2,ol + h3,ol + h4,ol + h5,ol + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:4.8rem 0 0}.koenig-lexical .kg-prose :where(h1 + h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.4rem 0 0}.koenig-lexical .kg-prose :where(h2 + h1,h3 + h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1rem 0 0}.koenig-lexical .kg-prose :where(h4 + h1,h5 + h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h6 + h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.6rem 0 0}.koenig-lexical .kg-prose :where(div + h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:4.8rem 0 0}.koenig-lexical .kg-prose :where(h1 + h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.6rem 0 0}.koenig-lexical .kg-prose :where(h2 + h2,h3 + h2,h4 + h2,.koenig-react__editor h5 + h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h6 + h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.4rem 0 0}.koenig-lexical .kg-prose :where(div + h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:4.8rem 0 0}.koenig-lexical .kg-prose :where(h1 + h3,h2 + h3,h1 + h4,h2 + h4,h1 + h5,h2 + h5,h1 + h6,h2 + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.2rem 0 0}.koenig-lexical .kg-prose :where(h3 + h4):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h3 + h3,h4 + h3,h5 + h3,h4 + h4,h5 + h4,h3 + h5,h4 + h5,h5 + h5,h3 + h6,h4 + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h5 + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.4rem 0 0}.koenig-lexical .kg-prose :where(h6 + h3,h6 + h4,h6 + h5,h6 + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.4rem 0 0}.koenig-lexical .kg-prose :where(div + h3,div + h4,div + h5,div + h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:4.8rem 0 0}.koenig-lexical .kg-prose :where(h1:first-child,h2:first-child,h3:first-child,h4:first-child,.koenig-react__editor h5:first-child,h6:first-child):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin-top:0rem}@media (max-width: 500px){.koenig-lexical .kg-prose :where(h1):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:3.2rem}.koenig-lexical .kg-prose :where(h2):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.8rem}.koenig-lexical .kg-prose :where(h3):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.4rem}.koenig-lexical .kg-prose :where(h4):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.3rem}.koenig-lexical .kg-prose :where(h5):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2rem}.koenig-lexical .kg-prose :where(h6):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:1.9rem}}.koenig-lexical .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-family:georgia,serif;font-weight:400;line-height:1.6em;font-size:2rem}.koenig-lexical .kg-prose :where(p strong,blockquote strong,aside strong,ul strong,ol strong):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-weight:700}.koenig-lexical .kg-prose :where(h1 + p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1rem 0 0}.koenig-lexical .kg-prose :where(h2 + p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h3 + p,h4 + p,h5 + p,h6 + p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(p + p,blockquote + p,aside + p,ul + p,ol + p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0}.koenig-lexical .kg-prose :where(div + p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(div + figure):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(p:first-child):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin-top:0rem}@media (max-width: 500px){.koenig-lexical .kg-prose :where(p,blockquote,aside,ul,ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:1.8rem}}.koenig-lexical .kg-prose :where(ul,ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.6rem 0 0;padding:0;min-width:100%;max-width:100%}.koenig-lexical .kg-prose :where(ul li):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){display:list-item;list-style-type:disc;margin:1rem 0 0 2.4rem;padding:0 0 0 .6rem;line-height:3.2rem}.koenig-lexical .kg-prose :where(ul li:first-child):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:0 0 0 2.4rem}.koenig-lexical .kg-prose :where(ol li):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){display:list-item;list-style-type:decimal;margin:1rem 0 0 2.2rem;padding:0 0 0 .8rem;line-height:3.2rem}.koenig-lexical .kg-prose :where(ol li:first-child):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:0 0 0 2.2rem}.koenig-lexical .kg-prose :where(p + ul,p + ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3rem 0 0}.koenig-lexical .kg-prose :where(ul + ul,ul + ol,ol + ul,ol + ol,blockquote + ul,blockquote + ol,aside + ul,aside + ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3rem 0 0}.koenig-lexical .kg-prose :where(h1 + ul,h1 + ol,h2 + ul,h2 + ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h3 + ul,h3 + ol,h4 + ul,h4 + ol,h5 + ul,h5 + ol,h6 + ul,h6 + ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.2rem 0 0}.koenig-lexical .kg-prose :where(div + ul,div + ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(ul ul,ul ol,ol ul,ol ol):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1rem 0 2rem}.koenig-lexical .kg-prose :where(ul:first-child,ol:first-child):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin-top:0rem}.koenig-lexical .kg-prose :where(a):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){color:var(--kg-accent-color, #ff0095);text-decoration:underline}.koenig-lexical .kg-prose :where(blockquote p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:0}.koenig-lexical .kg-prose :where(blockquote):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){border-left:.25rem solid var(--kg-accent-color, #ff0095);padding-left:2rem;font-style:italic}.koenig-lexical .kg-prose :where(h1 + blockquote,h2 + blockquote):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h3 + blockquote,h4 + blockquote,.koenig-react__editor h5 + blockquote,h6 + blockquote):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.4rem 0 0}.koenig-lexical .kg-prose :where(p + blockquote,blockquote + blockquote):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0}.koenig-lexical .kg-prose :where(div + blockquote):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(aside p):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:0}.koenig-lexical .kg-prose :where(aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0;padding:1rem 6rem 1.25rem;font-style:italic;text-align:center;font-size:2.4rem;color:var(--midgrey-l1)}.koenig-lexical .kg-prose :where(h1 + aside,h2 + aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.8rem 0 0}.koenig-lexical .kg-prose :where(h3 + aside,h4 + aside,h5 + aside,h6 + aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:.4rem 0 0}.koenig-lexical .kg-prose :where(p + aside,blockquote + aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0}@media (max-width: 800px){.koenig-lexical .kg-prose :where(aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){padding-left:6rem;padding-right:6rem}}@media (max-width: 500px){.koenig-lexical .kg-prose :where(aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){font-size:2.2rem}}.koenig-lexical .kg-prose :where(div + aside):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(div):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){line-height:0;min-width:100%}.koenig-lexical .kg-prose :where(div + div):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0}.koenig-lexical .kg-prose :where(p + div,blockquote + div,aside + div,ul + div,ol + div):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:3.2rem 0 0}.koenig-lexical .kg-prose :where(h1 + div):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:2.8rem 0 0}.koenig-lexical .kg-prose :where(h2 + div,h3 + div,h4 + div,h5 + div,h6 + div):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.6rem 0 0}.koenig-lexical .kg-prose :where(hr):not(:where(.not-kg-prose,[class~="not-kg-prose"] *)){margin:1.6rem 0}.koenig-lexical .kg-prose code{font-family:Consolas,Liberation Mono,Menlo,Courier,monospace;background:var(--grey-100);border:1px solid var(--grey-200);border-radius:2px;color:var(--grey-900);font-size:.8em;line-height:1em;padding:.4rem .4rem .2rem;vertical-align:middle;white-space:pre-wrap}.koenig-lexical .pointer-events-none{pointer-events:none}.koenig-lexical .visible{visibility:visible}.koenig-lexical .static{position:static}.koenig-lexical .fixed{position:fixed}.koenig-lexical .absolute{position:absolute}.koenig-lexical .relative{position:relative}.koenig-lexical .inset-0{top:0px;right:0px;bottom:0px;left:0px}.koenig-lexical .inset-8{top:3.2rem;right:3.2rem;bottom:3.2rem;left:3.2rem}.koenig-lexical .bottom-0{bottom:0px}.koenig-lexical .right-0{right:0px}.koenig-lexical .top-\\[-44px\\]{top:-44px}.koenig-lexical .left-1\\/2{left:50%}.koenig-lexical .top-0{top:0px}.koenig-lexical .left-0{left:0px}.koenig-lexical .top-\\[-2px\\]{top:-2px}.koenig-lexical .left-\\[-66px\\]{left:-66px}.koenig-lexical .left-\\[-16px\\]{left:-16px}.koenig-lexical .top-\\[-6px\\]{top:-6px}.koenig-lexical .left-\\[55\\%\\]{left:55%}.koenig-lexical .top-6{top:2.4rem}.koenig-lexical .right-6{right:2.4rem}.koenig-lexical .top-1\\/2{top:50%}.koenig-lexical .left-4{left:1.6rem}.koenig-lexical .bottom-4{bottom:1.6rem}.koenig-lexical .right-\\[-100\\%\\]{right:-100%}.koenig-lexical .top-4{top:1.6rem}.koenig-lexical .top-\\[5px\\]{top:5px}.koenig-lexical .left-\\[6px\\]{left:6px}.koenig-lexical .right-\\[6px\\]{right:6px}.koenig-lexical .top-\\[2px\\]{top:2px}.koenig-lexical .left-\\[22px\\]{left:22px}.koenig-lexical .left-\\[2px\\]{left:2px}.koenig-lexical .bottom-1{bottom:.4rem}.koenig-lexical .left-6{left:2.4rem}.koenig-lexical .z-\\[9999999\\]{z-index:9999999}.koenig-lexical .z-\\[1000\\]{z-index:1000}.koenig-lexical .z-40{z-index:40}.koenig-lexical .z-10{z-index:10}.koenig-lexical .m-0{margin:0}.koenig-lexical .m-3{margin:1.2rem}.koenig-lexical .m-2{margin:.8rem}.koenig-lexical .m-\\[1rem\\]{margin:1rem}.koenig-lexical .mx-1{margin-left:.4rem;margin-right:.4rem}.koenig-lexical .mx-\\[calc\\(50\\%-\\(50vw-var\\(--kg-breakout-adjustment\\)\\)-\\.8rem\\)\\]{margin-left:calc(50% - (50vw - var(--kg-breakout-adjustment)) - .8rem);margin-right:calc(50% - (50vw - var(--kg-breakout-adjustment)) - .8rem)}.koenig-lexical .mx-2{margin-left:.8rem;margin-right:.8rem}.koenig-lexical .mx-auto{margin-left:auto;margin-right:auto}.koenig-lexical .mb-4{margin-bottom:1.6rem}.koenig-lexical .mt-20{margin-top:8rem}.koenig-lexical .mb-3{margin-bottom:1.2rem}.koenig-lexical .mb-2{margin-bottom:.8rem}.koenig-lexical .ml-4{margin-left:1.6rem}.koenig-lexical .mt-4{margin-top:1.6rem}.koenig-lexical .mr-3{margin-right:1.2rem}.koenig-lexical .ml-\\[66px\\]{margin-left:66px}.koenig-lexical .mt-\\[2px\\]{margin-top:2px}.koenig-lexical .mt-auto{margin-top:auto}.koenig-lexical .mr-2{margin-right:.8rem}.koenig-lexical .mb-\\[1px\\]{margin-bottom:1px}.koenig-lexical .mr-4{margin-right:1.6rem}.koenig-lexical .ml-1{margin-left:.4rem}.koenig-lexical .mt-1{margin-top:.4rem}.koenig-lexical .mt-2{margin-top:.8rem}.koenig-lexical .mt-\\[1px\\]{margin-top:1px}.koenig-lexical .-mt-4{margin-top:-1.6rem}.koenig-lexical .mb-12{margin-bottom:4.8rem}.koenig-lexical .mt-6{margin-top:2.4rem}.koenig-lexical .mt-12{margin-top:4.8rem}.koenig-lexical .mt-3{margin-top:1.2rem}.koenig-lexical .mt-8{margin-top:3.2rem}.koenig-lexical .mt-10{margin-top:4rem}.koenig-lexical .ml-2{margin-left:.8rem}.koenig-lexical .mb-1{margin-bottom:.4rem}.koenig-lexical .mr-6{margin-right:2.4rem}.koenig-lexical .mb-6{margin-bottom:2.4rem}.koenig-lexical .mr-1{margin-right:.4rem}.koenig-lexical .block{display:block}.koenig-lexical .inline-block{display:inline-block}.koenig-lexical .flex{display:flex}.koenig-lexical .hidden{display:none}.koenig-lexical .h-9{height:3.6rem}.koenig-lexical .h-5{height:2rem}.koenig-lexical .h-7{height:2.8rem}.koenig-lexical .h-4{height:1.6rem}.koenig-lexical .h-\\[1px\\]{height:1px}.koenig-lexical .h-32{height:12.8rem}.koenig-lexical .h-20{height:8rem}.koenig-lexical .h-14{height:5.6rem}.koenig-lexical .h-6{height:2.4rem}.koenig-lexical .h-16{height:6.4rem}.koenig-lexical .h-\\[1\\.4rem\\]{height:1.4rem}.koenig-lexical .h-1{height:.4rem}.koenig-lexical .h-10{height:4rem}.koenig-lexical .h-11{height:4.4rem}.koenig-lexical .h-12{height:4.8rem}.koenig-lexical .h-8{height:3.2rem}.koenig-lexical .h-full{height:100%}.koenig-lexical .h-\\[96px\\]{height:96px}.koenig-lexical .h-\\[64px\\]{height:64px}.koenig-lexical .h-\\[40px\\]{height:40px}.koenig-lexical .h-3{height:1.2rem}.koenig-lexical .h-\\[324px\\]{height:324px}.koenig-lexical .h-\\[100vh\\]{height:100vh}.koenig-lexical .h-\\[22px\\]{height:22px}.koenig-lexical .h-\\[18px\\]{height:18px}.koenig-lexical .max-h-\\[376px\\]{max-height:376px}.koenig-lexical .min-h-\\[120px\\]{min-height:120px}.koenig-lexical .min-h-\\[40vh\\]{min-height:40vh}.koenig-lexical .min-h-\\[60vh\\]{min-height:60vh}.koenig-lexical .min-h-\\[80vh\\]{min-height:80vh}.koenig-lexical .w-9{width:3.6rem}.koenig-lexical .w-px{width:1px}.koenig-lexical .w-7{width:2.8rem}.koenig-lexical .w-4{width:1.6rem}.koenig-lexical .w-\\[312px\\]{width:312px}.koenig-lexical .w-full{width:100%}.koenig-lexical .w-32{width:12.8rem}.koenig-lexical .w-\\[calc\\(65vw\\+2px-var\\(--kg-breakout-adjustment\\)\\)\\]{width:calc(65vw + 2px - var(--kg-breakout-adjustment))}.koenig-lexical .w-20{width:8rem}.koenig-lexical .w-14{width:5.6rem}.koenig-lexical .w-6{width:2.4rem}.koenig-lexical .w-16{width:6.4rem}.koenig-lexical .w-\\[1\\.4rem\\]{width:1.4rem}.koenig-lexical .w-\\[80px\\]{width:80px}.koenig-lexical .w-\\[60\\%\\]{width:60%}.koenig-lexical .w-\\[740px\\]{width:740px}.koenig-lexical .w-5{width:2rem}.koenig-lexical .w-\\[764px\\]{width:764px}.koenig-lexical .w-\\[1170px\\]{width:1170px}.koenig-lexical .w-8{width:3.2rem}.koenig-lexical .w-\\[max-content\\]{width:-moz-max-content;width:max-content}.koenig-lexical .w-auto{width:auto}.koenig-lexical .w-\\[440px\\]{width:440px}.koenig-lexical .w-0{width:0px}.koenig-lexical .w-\\[42px\\]{width:42px}.koenig-lexical .w-3{width:1.2rem}.koenig-lexical .w-\\[18px\\]{width:18px}.koenig-lexical .w-\\[400px\\]{width:400px}.koenig-lexical .min-w-\\[calc\\(100\\%\\+3\\.6rem\\)\\]{min-width:calc(100% + 3.6rem)}.koenig-lexical .min-w-full{min-width:100%}.koenig-lexical .min-w-\\[33\\%\\]{min-width:33%}.koenig-lexical .min-w-\\[auto\\]{min-width:auto}.koenig-lexical .max-w-\\[740px\\]{max-width:740px}.koenig-lexical .max-w-\\[1172px\\]{max-width:1172px}.koenig-lexical .max-w-fit{max-width:-moz-fit-content;max-width:fit-content}.koenig-lexical .max-w-\\[96px\\]{max-width:96px}.koenig-lexical .max-w-\\[550px\\]{max-width:550px}.koenig-lexical .max-w-sm{max-width:38.4rem}.koenig-lexical .shrink-0{flex-shrink:0}.koenig-lexical .flex-grow,.koenig-lexical .grow{flex-grow:1}.koenig-lexical .basis-0{flex-basis:0px}.koenig-lexical .-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.koenig-lexical .translate-x-\\[calc\\(50vw-50\\%\\+\\.8rem-var\\(--kg-breakout-adjustment\\)\\)\\]{--tw-translate-x: calc(50vw - 50% + .8rem - var(--kg-breakout-adjustment));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.koenig-lexical .-translate-y-2{--tw-translate-y: -.8rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.koenig-lexical .cursor-pointer{cursor:pointer}.koenig-lexical .cursor-text{cursor:text}.koenig-lexical .cursor-zoom-out{cursor:zoom-out}.koenig-lexical .cursor-zoom-in{cursor:zoom-in}.koenig-lexical .resize-none{resize:none}.koenig-lexical .resize{resize:both}.koenig-lexical .\\!list-none{list-style-type:none!important}.koenig-lexical .flex-row{flex-direction:row}.koenig-lexical .flex-col{flex-direction:column}.koenig-lexical .items-start{align-items:flex-start}.koenig-lexical .items-end{align-items:flex-end}.koenig-lexical .items-center{align-items:center}.koenig-lexical .justify-start{justify-content:flex-start}.koenig-lexical .justify-end{justify-content:flex-end}.koenig-lexical .justify-center{justify-content:center}.koenig-lexical .justify-between{justify-content:space-between}.koenig-lexical .justify-evenly{justify-content:space-evenly}.koenig-lexical .gap-2{gap:.8rem}.koenig-lexical .overflow-auto{overflow:auto}.koenig-lexical .\\!overflow-auto{overflow:auto!important}.koenig-lexical .overflow-hidden{overflow:hidden}.koenig-lexical .overflow-y-auto{overflow-y:auto}.koenig-lexical .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.koenig-lexical .whitespace-pre{white-space:pre}.koenig-lexical .rounded{border-radius:.4rem}.koenig-lexical .rounded-full{border-radius:9999px}.koenig-lexical .rounded-lg{border-radius:.8rem}.koenig-lexical .rounded-sm{border-radius:.2rem}.koenig-lexical .rounded-md{border-radius:.6rem}.koenig-lexical .rounded-r-\\[\\.3rem\\]{border-top-right-radius:.3rem;border-bottom-right-radius:.3rem}.koenig-lexical .border{border-width:1px}.koenig-lexical .border-0{border-width:0px}.koenig-lexical .border-2{border-width:2px}.koenig-lexical .border-t{border-top-width:1px}.koenig-lexical .border-grey{--tw-border-opacity: 1;border-color:rgb(171 180 190 / var(--tw-border-opacity))}.koenig-lexical .border-transparent{border-color:transparent}.koenig-lexical .border-grey-300{--tw-border-opacity: 1;border-color:rgb(221 225 229 / var(--tw-border-opacity))}.koenig-lexical .border-green{--tw-border-opacity: 1;border-color:rgb(48 207 67 / var(--tw-border-opacity))}.koenig-lexical .border-grey-100{--tw-border-opacity: 1;border-color:rgb(244 245 246 / var(--tw-border-opacity))}.koenig-lexical .border-grey\\/20{border-color:#abb4be33}.koenig-lexical .border-grey\\/30{border-color:#abb4be4d}.koenig-lexical .border-grey\\/50{border-color:#abb4be80}.koenig-lexical .border-grey\\/40{border-color:#abb4be66}.koenig-lexical .border-grey\\/60{border-color:#abb4be99}.koenig-lexical .border-grey-200{--tw-border-opacity: 1;border-color:rgb(235 238 240 / var(--tw-border-opacity))}.koenig-lexical .border-t-grey-300{--tw-border-opacity: 1;border-top-color:rgb(221 225 229 / var(--tw-border-opacity))}.koenig-lexical .bg-black{--tw-bg-opacity: 1;background-color:rgb(21 23 26 / var(--tw-bg-opacity))}.koenig-lexical .bg-grey-900{--tw-bg-opacity: 1;background-color:rgb(57 64 71 / var(--tw-bg-opacity))}.koenig-lexical .bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.koenig-lexical .bg-grey-50{--tw-bg-opacity: 1;background-color:rgb(250 250 251 / var(--tw-bg-opacity))}.koenig-lexical .bg-green{--tw-bg-opacity: 1;background-color:rgb(48 207 67 / var(--tw-bg-opacity))}.koenig-lexical .bg-grey-100{--tw-bg-opacity: 1;background-color:rgb(244 245 246 / var(--tw-bg-opacity))}.koenig-lexical .bg-purple{--tw-bg-opacity: 1;background-color:rgb(142 66 255 / var(--tw-bg-opacity))}.koenig-lexical .bg-transparent{background-color:transparent}.koenig-lexical .bg-grey\\/30{background-color:#abb4be4d}.koenig-lexical .bg-grey-300{--tw-bg-opacity: 1;background-color:rgb(221 225 229 / var(--tw-bg-opacity))}.koenig-lexical .bg-grey\\/10{background-color:#abb4be1a}.koenig-lexical .bg-blue\\/10{background-color:#14b8ff1a}.koenig-lexical .bg-green\\/10{background-color:#30cf431a}.koenig-lexical .bg-yellow\\/10{background-color:#ffb41f1a}.koenig-lexical .bg-red\\/10{background-color:#f50b231a}.koenig-lexical .bg-pink\\/10{background-color:#fb2d8d1a}.koenig-lexical .bg-purple\\/10{background-color:#8e42ff1a}.koenig-lexical .bg-grey-200{--tw-bg-opacity: 1;background-color:rgb(235 238 240 / var(--tw-bg-opacity))}.koenig-lexical .bg-pink{--tw-bg-opacity: 1;background-color:rgb(251 45 141 / var(--tw-bg-opacity))}.koenig-lexical .bg-white\\/50{background-color:#ffffff80}.koenig-lexical .bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.koenig-lexical .from-black\\/5{--tw-gradient-from: rgb(21 23 26 / .05);--tw-gradient-to: rgb(21 23 26 / 0);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.koenig-lexical .via-black\\/5{--tw-gradient-to: rgb(21 23 26 / 0);--tw-gradient-stops: var(--tw-gradient-from), rgb(21 23 26 / .05), var(--tw-gradient-to)}.koenig-lexical .to-black\\/30{--tw-gradient-to: rgb(21 23 26 / .3)}.koenig-lexical .bg-clip-padding{background-clip:padding-box}.koenig-lexical .fill-white{fill:#fff}.koenig-lexical .fill-green{fill:#30cf43}.koenig-lexical .fill-black{fill:#15171a}.koenig-lexical .fill-grey-900{fill:#394047}.koenig-lexical .fill-red{fill:#f50b23}.koenig-lexical .stroke-grey-800{stroke:#626d79}.koenig-lexical .stroke-2{stroke-width:2}.koenig-lexical .stroke-\\[1\\.2px\\]{stroke-width:1.2px}.koenig-lexical .stroke-\\[3px\\]{stroke-width:3px}.koenig-lexical .object-contain{-o-object-fit:contain;object-fit:contain}.koenig-lexical .p-0{padding:0}.koenig-lexical .p-20{padding:8rem}.koenig-lexical .p-2{padding:.8rem}.koenig-lexical .p-4{padding:1.6rem}.koenig-lexical .p-5{padding:2rem}.koenig-lexical .p-3{padding:1.2rem}.koenig-lexical .\\!p-4{padding:1.6rem!important}.koenig-lexical .p-\\[1rem\\]{padding:1rem}.koenig-lexical .px-1{padding-left:.4rem;padding-right:.4rem}.koenig-lexical .py-0{padding-top:0;padding-bottom:0}.koenig-lexical .px-4{padding-left:1.6rem;padding-right:1.6rem}.koenig-lexical .py-2{padding-top:.8rem;padding-bottom:.8rem}.koenig-lexical .px-3{padding-left:1.2rem;padding-right:1.2rem}.koenig-lexical .px-9{padding-left:3.6rem;padding-right:3.6rem}.koenig-lexical .py-\\[1rem\\]{padding-top:1rem;padding-bottom:1rem}.koenig-lexical .px-5{padding-left:2rem;padding-right:2rem}.koenig-lexical .py-5{padding-top:2rem;padding-bottom:2rem}.koenig-lexical .px-7{padding-left:2.8rem;padding-right:2.8rem}.koenig-lexical .px-2{padding-left:.8rem;padding-right:.8rem}.koenig-lexical .py-1{padding-top:.4rem;padding-bottom:.4rem}.koenig-lexical .py-\\[14vmin\\]{padding-top:14vmin;padding-bottom:14vmin}.koenig-lexical .py-\\[12vmin\\]{padding-top:12vmin;padding-bottom:12vmin}.koenig-lexical .py-\\[18vmin\\]{padding-top:18vmin;padding-bottom:18vmin}.koenig-lexical .py-4{padding-top:1.6rem;padding-bottom:1.6rem}.koenig-lexical .px-6{padding-left:2.4rem;padding-right:2.4rem}.koenig-lexical .py-10{padding-top:4rem;padding-bottom:4rem}.koenig-lexical .px-20{padding-left:8rem;padding-right:8rem}.koenig-lexical .py-\\[15vmin\\]{padding-top:15vmin;padding-bottom:15vmin}.koenig-lexical .pt-0{padding-top:0}.koenig-lexical .pt-3{padding-top:1.2rem}.koenig-lexical .pb-6{padding-bottom:2.4rem}.koenig-lexical .pt-1{padding-top:.4rem}.koenig-lexical .pb-7{padding-bottom:2.8rem}.koenig-lexical .pb-1{padding-bottom:.4rem}.koenig-lexical .pr-8{padding-right:3.2rem}.koenig-lexical .pl-10{padding-left:4rem}.koenig-lexical .pb-10{padding-bottom:4rem}.koenig-lexical .pb-16{padding-bottom:6.4rem}.koenig-lexical .pb-4{padding-bottom:1.6rem}.koenig-lexical .pr-1{padding-right:.4rem}.koenig-lexical .text-left{text-align:left}.koenig-lexical .text-center{text-align:center}.koenig-lexical .font-sans{font-family:Inter,-apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif}.koenig-lexical .font-mono{font-family:Consolas,Liberation Mono,Menlo,Courier,monospace}.koenig-lexical .font-serif{font-family:Georgia,serif}.koenig-lexical .text-xl{font-size:2rem}.koenig-lexical .text-md{font-size:1.5rem}.koenig-lexical .text-sm{font-size:1.4rem}.koenig-lexical .text-xs{font-size:1.2rem}.koenig-lexical .text-\\[1\\.3rem\\]{font-size:1.3rem}.koenig-lexical .text-\\[1\\.7rem\\]{font-size:1.7rem}.koenig-lexical .text-\\[1\\.1rem\\]{font-size:1.1rem}.koenig-lexical .text-lg{font-size:1.8rem}.koenig-lexical .text-\\[1\\.5rem\\]{font-size:1.5rem}.koenig-lexical .text-\\[1\\.6rem\\]{font-size:1.6rem}.koenig-lexical .text-6xl{font-size:6rem;line-height:1}.koenig-lexical .text-7xl{font-size:7.2rem;line-height:1}.koenig-lexical .text-8xl{font-size:9.6rem;line-height:1}.koenig-lexical .text-2xl{font-size:2.4rem}.koenig-lexical .text-\\[2\\.7rem\\]{font-size:2.7rem}.koenig-lexical .text-3xl{font-size:3rem}.koenig-lexical .text-5xl{font-size:4.8rem;line-height:1.15}.koenig-lexical .font-bold{font-weight:700}.koenig-lexical .font-normal{font-weight:400}.koenig-lexical .font-medium{font-weight:500}.koenig-lexical .font-semibold{font-weight:600}.koenig-lexical .font-extrabold{font-weight:800}.koenig-lexical .uppercase{text-transform:uppercase}.koenig-lexical .italic{font-style:italic}.koenig-lexical .leading-\\[1\\.333em\\]{line-height:1.333em}.koenig-lexical .leading-7{line-height:1.75rem}.koenig-lexical .leading-8{line-height:2rem}.koenig-lexical .leading-\\[1\\.6rem\\]{line-height:1.6rem}.koenig-lexical .leading-9{line-height:2.25rem}.koenig-lexical .leading-\\[4rem\\]{line-height:4rem}.koenig-lexical .leading-\\[4\\.4rem\\]{line-height:4.4rem}.koenig-lexical .leading-\\[4\\.8rem\\]{line-height:4.8rem}.koenig-lexical .leading-tight{line-height:1.25}.koenig-lexical .leading-none{line-height:1}.koenig-lexical .leading-snug{line-height:1.375}.koenig-lexical .leading-relaxed{line-height:1.625}.koenig-lexical .leading-6{line-height:1.5rem}.koenig-lexical .tracking-\\[\\.06rem\\]{letter-spacing:.06rem}.koenig-lexical .tracking-\\[\\.02rem\\]{letter-spacing:.02rem}.koenig-lexical .tracking-wide{letter-spacing:.025em}.koenig-lexical .tracking-normal{letter-spacing:0em}.koenig-lexical .tracking-tight{letter-spacing:-.025em}.koenig-lexical .text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.koenig-lexical .text-grey{--tw-text-opacity: 1;color:rgb(171 180 190 / var(--tw-text-opacity))}.koenig-lexical .text-grey-800{--tw-text-opacity: 1;color:rgb(98 109 121 / var(--tw-text-opacity))}.koenig-lexical .text-grey-900{--tw-text-opacity: 1;color:rgb(57 64 71 / var(--tw-text-opacity))}.koenig-lexical .text-grey-700{--tw-text-opacity: 1;color:rgb(124 139 154 / var(--tw-text-opacity))}.koenig-lexical .text-grey-500{--tw-text-opacity: 1;color:rgb(174 183 193 / var(--tw-text-opacity))}.koenig-lexical .text-black{--tw-text-opacity: 1;color:rgb(21 23 26 / var(--tw-text-opacity))}.koenig-lexical .text-grey-600{--tw-text-opacity: 1;color:rgb(149 161 173 / var(--tw-text-opacity))}.koenig-lexical .text-green{--tw-text-opacity: 1;color:rgb(48 207 67 / var(--tw-text-opacity))}.koenig-lexical .text-grey-400{--tw-text-opacity: 1;color:rgb(206 212 217 / var(--tw-text-opacity))}.koenig-lexical .text-grey-300{--tw-text-opacity: 1;color:rgb(221 225 229 / var(--tw-text-opacity))}.koenig-lexical .underline{text-decoration-line:underline}.koenig-lexical .caret-grey-800{caret-color:#626d79}.koenig-lexical .opacity-80{opacity:.8}.koenig-lexical .opacity-100{opacity:1}.koenig-lexical .opacity-50{opacity:.5}.koenig-lexical .opacity-40{opacity:.4}.koenig-lexical .opacity-60{opacity:.6}.koenig-lexical .opacity-0{opacity:0}.koenig-lexical .opacity-90{opacity:.9}.koenig-lexical .shadow{--tw-shadow: 0 0 1px rgba(0,0,0,.05), 0 5px 18px rgba(0,0,0,.08);--tw-shadow-colored: 0 0 1px var(--tw-shadow-color), 0 5px 18px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .shadow-\\[0_0_0_2px_\\#30cf43\\]{--tw-shadow: 0 0 0 2px #30cf43;--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .shadow-\\[0_0_0_2px\\]{--tw-shadow: 0 0 0 2px;--tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .shadow-xl{--tw-shadow: 0 2.8px 2.2px rgba(0, 0, 0, .02), 0 6.7px 5.3px rgba(0, 0, 0, .028), 0 12.5px 10px rgba(0, 0, 0, .035), 0 22.3px 17.9px rgba(0, 0, 0, .042), 0 41.8px 33.4px rgba(0, 0, 0, .05), 0 100px 80px rgba(0, 0, 0, .07);--tw-shadow-colored: 0 2.8px 2.2px var(--tw-shadow-color), 0 6.7px 5.3px var(--tw-shadow-color), 0 12.5px 10px var(--tw-shadow-color), 0 22.3px 17.9px var(--tw-shadow-color), 0 41.8px 33.4px var(--tw-shadow-color), 0 100px 80px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .shadow-green{--tw-shadow-color: #30CF43;--tw-shadow: var(--tw-shadow-colored)}.koenig-lexical .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.koenig-lexical .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.koenig-lexical .duration-100{transition-duration:.1s}.koenig-lexical .duration-75{transition-duration:75ms}.koenig-lexical .ease-linear{transition-timing-function:linear}.koenig-lexical .ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.koenig-lexical .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.koenig-lexical .line-clamp-1{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.koenig-lexical .line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}:root{--grey-100: #F4F5F6;--grey-200: #EBEEF0;--grey-300: #DDE1E5;--grey-500: #AEB7C1;--grey-900: #394047;--black: #15171A;--kg-breakout-adjustment: 0px}@font-face{font-family:Inter,sans-serif;src:url(./assets/fonts/Inter.ttf) format("truetype-variations");font-weight:100 900}.koenig-lexical .selection\\:bg-grey-800 *::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(98 109 121 / var(--tw-bg-opacity))}.koenig-lexical .selection\\:bg-grey-800 *::selection{--tw-bg-opacity: 1;background-color:rgb(98 109 121 / var(--tw-bg-opacity))}.koenig-lexical .selection\\:bg-grey-800::-moz-selection{--tw-bg-opacity: 1;background-color:rgb(98 109 121 / var(--tw-bg-opacity))}.koenig-lexical .selection\\:bg-grey-800::selection{--tw-bg-opacity: 1;background-color:rgb(98 109 121 / var(--tw-bg-opacity))}.koenig-lexical .before\\:mr-2:before{content:var(--tw-content);margin-right:.8rem}.koenig-lexical .before\\:flex-1:before{content:var(--tw-content);flex:1 1 0%}.koenig-lexical .before\\:border-t:before{content:var(--tw-content);border-top-width:1px}.koenig-lexical .before\\:border-grey-300:before{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(221 225 229 / var(--tw-border-opacity))}.koenig-lexical .before\\:pb-\\[62\\.5\\%\\]:before{content:var(--tw-content);padding-bottom:62.5%}.koenig-lexical .before\\:pb-\\[12\\.5\\%\\]:before{content:var(--tw-content);padding-bottom:12.5%}.koenig-lexical .before\\:content-\\[\\'\\'\\]:before{--tw-content: "";content:var(--tw-content)}.koenig-lexical .after\\:absolute:after{content:var(--tw-content);position:absolute}.koenig-lexical .after\\:top-\\[36px\\]:after{content:var(--tw-content);top:36px}.koenig-lexical .after\\:left-\\[calc\\(50\\%-8px\\)\\]:after{content:var(--tw-content);left:calc(50% - 8px)}.koenig-lexical .after\\:ml-2:after{content:var(--tw-content);margin-left:.8rem}.koenig-lexical .after\\:block:after{content:var(--tw-content);display:block}.koenig-lexical .after\\:w-0:after{content:var(--tw-content);width:0px}.koenig-lexical .after\\:flex-1:after{content:var(--tw-content);flex:1 1 0%}.koenig-lexical .after\\:border-x-8:after{content:var(--tw-content);border-left-width:8px;border-right-width:8px}.koenig-lexical .after\\:border-t-8:after{content:var(--tw-content);border-top-width:8px}.koenig-lexical .after\\:border-t:after{content:var(--tw-content);border-top-width:1px}.koenig-lexical .after\\:border-grey-300:after{content:var(--tw-content);--tw-border-opacity: 1;border-color:rgb(221 225 229 / var(--tw-border-opacity))}.koenig-lexical .after\\:border-x-transparent:after{content:var(--tw-content);border-left-color:transparent;border-right-color:transparent}.koenig-lexical .after\\:border-t-black:after{content:var(--tw-content);--tw-border-opacity: 1;border-top-color:rgb(21 23 26 / var(--tw-border-opacity))}.koenig-lexical .after\\:pb-4:after{content:var(--tw-content);padding-bottom:1.6rem}.koenig-lexical .first\\:m-0:first-child{margin:0}.koenig-lexical .first-of-type\\:mt-8:first-of-type{margin-top:3.2rem}.koenig-lexical .first-of-type\\:mr-3:first-of-type{margin-right:1.2rem}.koenig-lexical .last-of-type\\:mr-0:last-of-type{margin-right:0}.koenig-lexical .hover\\:border-grey-900:hover{--tw-border-opacity: 1;border-color:rgb(57 64 71 / var(--tw-border-opacity))}.koenig-lexical .hover\\:bg-grey-100:hover{--tw-bg-opacity: 1;background-color:rgb(244 245 246 / var(--tw-bg-opacity))}.koenig-lexical .hover\\:bg-grey-500\\/20:hover{background-color:#aeb7c133}.koenig-lexical .hover\\:fill-grey-800:hover{fill:#626d79}.koenig-lexical .hover\\:opacity-100:hover{opacity:1}.koenig-lexical .hover\\:shadow-\\[0_0_0_1px_\\#30cf43\\]:hover{--tw-shadow: 0 0 0 1px #30cf43;--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .hover\\:shadow-\\[0_0_0_1px\\]:hover{--tw-shadow: 0 0 0 1px;--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.koenig-lexical .hover\\:shadow-green:hover{--tw-shadow-color: #30CF43;--tw-shadow: var(--tw-shadow-colored)}.koenig-lexical .focus\\:border-grey-400:focus{--tw-border-opacity: 1;border-color:rgb(206 212 217 / var(--tw-border-opacity))}.koenig-lexical .focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.koenig-lexical .group:hover .group-hover\\:scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.koenig-lexical .group:hover .group-hover\\:stroke-grey-900{stroke:#394047}.koenig-lexical .group:hover .group-hover\\:text-grey-800{--tw-text-opacity: 1;color:rgb(98 109 121 / var(--tw-text-opacity))}.koenig-lexical .group:hover .group-hover\\:opacity-100{opacity:1}@media (min-width: 640px){.koenig-lexical .sm\\:min-w-\\[calc\\(100\\%\\+10rem\\)\\]{min-width:calc(100% + 10rem)}}@media (min-width: 768px){.koenig-lexical .md\\:h-9{height:3.6rem}.koenig-lexical .md\\:w-9{width:3.6rem}}@media (min-width: 1024px){.koenig-lexical .lg\\:mx-\\[calc\\(50\\%-50vw\\+\\(var\\(--kg-breakout-adjustment\\)\\/2\\)\\)\\]{margin-left:calc(50% - 50vw + (var(--kg-breakout-adjustment) / 2));margin-right:calc(50% - 50vw + (var(--kg-breakout-adjustment) / 2))}.koenig-lexical .lg\\:w-\\[calc\\(100vw-var\\(--kg-breakout-adjustment\\)\\)\\]{width:calc(100vw - var(--kg-breakout-adjustment))}.koenig-lexical .lg\\:min-w-\\[calc\\(100\\%\\+18rem\\)\\]{min-width:calc(100% + 18rem)}}
2
+ `;document.head.appendChild(__vite_style__);const ko=t=>t&&typeof t=="object"&&"default"in t?t:{default:t};function Yc(t){if(t&&t.__esModule)return t;const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const n in t)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:()=>t[n]})}}return e.default=t,Object.freeze(e)}const x=Yc(re),S=ko(re),Vc=ko(Je),f0="",Co=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M7.412 6.217h1.176c1.276 0 2.236-.773 2.236-1.608 0-.835-.96-1.609-2.236-1.609H5.765v3.217h1.647zM5.765 13H9.47C10.875 13 12 11.92 12 10.609s-1.124-2.392-2.53-2.392H5.766V13zm-2 0V3H3c-.552 0-1-.448-1-1s.448-1 1-1h5.588c2.297 0 4.236 1.563 4.236 3.609 0 .877-.357 1.666-.945 2.28C13.15 7.665 14 9.037 14 10.61 14 13.043 11.963 15 9.47 15H3c-.552 0-1-.448-1-1s.448-1 1-1h.765z",fillRule:"nonzero"})),No=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M12.15 3L6.104 13h.811c.552 0 1 .448 1 1s-.448 1-1 1H2c-.552 0-1-.448-1-1s.448-1 1-1h1.767L9.813 3H9c-.552 0-1-.448-1-1s.448-1 1-1h4.915c.552 0 1 .448 1 1s-.448 1-1 1H12.15z",fillRule:"nonzero"})),Eo=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M4 7h8V2c0-.552.448-1 1-1s1 .448 1 1v5.897c.003.034.005.068.005.103 0 .035-.002.07-.005.103V14c0 .552-.448 1-1 1s-1-.448-1-1V9H4v5c0 .552-.448 1-1 1s-1-.448-1-1V2c0-.552.448-1 1-1s1 .448 1 1v5z",fillRule:"nonzero"})),To=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M6 8h4V5.483c0-.552.448-1 1-1s1 .448 1 1V13c0 .552-.448 1-1 1s-1-.448-1-1v-3H6v3c0 .552-.448 1-1 1s-1-.448-1-1V5.483c0-.552.448-1 1-1s1 .448 1 1V8z",fillRule:"nonzero"})),jr=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M6.4 11.688c.4-.382 1.032-.369 1.415.03.382.399.368 1.032-.03 1.414l-1.055 1.01c-1.209 1.21-3.17 1.21-4.38 0l-.494-.494c-1.208-1.209-1.208-3.17.001-4.377L5.07 6.058c1.21-1.21 3.17-1.21 4.38 0 .39.39.39 1.024 0 1.414-.391.39-1.024.39-1.415 0-.428-.428-1.122-.428-1.551 0l-3.213 3.213c-.427.427-.427 1.122 0 1.55l.494.494c.428.428 1.123.428 1.566-.015l1.07-1.026zm3.037-7.212c-.398.383-1.03.372-1.414-.025-.384-.398-.373-1.03.025-1.414l1.222-1.18c1.21-1.209 3.169-1.209 4.379 0l.493.494c1.21 1.209 1.21 3.17.013 4.366l-3.237 3.357c-1.21 1.21-3.17 1.21-4.38 0-.39-.391-.389-1.025.002-1.415.39-.39 1.024-.39 1.414.001.428.429 1.121.429 1.537.013l3.238-3.358c.428-.427.428-1.121 0-1.55l-.494-.493c-.429-.429-1.123-.429-1.563.012L9.437 4.476z",fillRule:"nonzero"})),So=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M4 8h2c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1H3c-.552 0-1-.448-1-1V5.082c0-1.176.906-2.12 2.538-2.969.49-.255 1.094-.065 1.349.425.255.49.065 1.094-.425 1.349-.578.3-.993.589-1.24.847-.168.174-.222.286-.222.348V8zm9 0c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1h-3c-.552 0-1-.448-1-1V5.082c0-1.176.906-2.12 2.538-2.969.49-.255 1.094-.065 1.349.425.255.49.065 1.094-.425 1.349-.578.3-.993.589-1.24.847-.168.174-.222.286-.222.348V8h2z",fillRule:"nonzero"})),bo=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fillRule:"evenodd"},x.createElement("path",{d:"M2 3c-.552 0-1-.448-1-1s.448-1 1-1h12c.552 0 1 .448 1 1s-.448 1-1 1H2zM2 15c-.552 0-1-.448-1-1s.448-1 1-1h12c.552 0 1 .448 1 1s-.448 1-1 1H2z",fillRule:"nonzero",opacity:.6}),x.createElement("path",{d:"M2 5h12c.552 0 1 .448 1 1v4.001c0 .552-.448 1-1 1H2c-.552 0-1-.448-1-1V6c0-.552.448-1 1-1z",fillRule:"nonzero"}))),Ro=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fillRule:"evenodd"},x.createElement("path",{d:"M6 3c-.552 0-1-.448-1-1s.448-1 1-1h4c.552 0 1 .448 1 1s-.448 1-1 1H6zM6 15c-.552 0-1-.448-1-1s.448-1 1-1h4c.552 0 1 .448 1 1s-.448 1-1 1H6z",fillRule:"nonzero",opacity:.6}),x.createElement("path",{d:"M2 5h12c.552 0 1 .448 1 1v4.001c0 .552-.448 1-1 1H2c-.552 0-1-.448-1-1V6c0-.552.448-1 1-1z",fillRule:"nonzero"}))),Oo=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fillRule:"evenodd"},x.createElement("path",{d:"M0 2c0-.552.448-1 1-1s1 .448 1 1v12c0 .552-.448 1-1 1s-1-.448-1-1V2zM14 2c0-.552.448-1 1-1s1 .448 1 1v12c0 .552-.448 1-1 1s-1-.448-1-1V2z",fillRule:"nonzero",opacity:.6}),x.createElement("path",{d:"M10.626 7L9.312 5.691c-.391-.39-.393-1.023-.003-1.414s1.023-.392 1.414-.003l3.029 3.017c.39.389.392 1.02.005 1.412l-3.029 3.059c-.388.392-1.022.395-1.414.007-.392-.389-.396-1.022-.007-1.414L10.648 9H5.415l1.342 1.355c.388.392.385 1.025-.007 1.414-.393.388-1.026.385-1.415-.007L2.307 8.703c-.388-.392-.386-1.023.005-1.412L5.34 4.274c.391-.39 1.025-.388 1.414.003.39.391.389 1.025-.002 1.414L5.438 7h5.188z",fillRule:"nonzero"}))),$o=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fillRule:"evenodd"},x.createElement("path",{d:"M2 9h5c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1H2c-.552 0-1-.448-1-1v-4c0-.552.448-1 1-1zM9 1h5c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1H9c-.552 0-1-.448-1-1V2c0-.552.448-1 1-1zM4.5 5.772l1.15-1.175c.192-.198.509-.201.706-.008.198.193.201.51.008.707L4.382 7.322c-.091.109-.229.178-.382.178-.13 0-.26-.05-.357-.148L1.61 5.298c-.194-.196-.193-.513.004-.707.196-.194.512-.193.707.004L3.5 5.785V3c0-.828.672-1.5 1.5-1.5h1c.276 0 .5.224.5.5s-.224.5-.5.5H5c-.276 0-.5.224-.5.5v2.772zm7 4.456l-1.15 1.175c-.192.198-.509.201-.706.008-.198-.193-.201-.51-.008-.707l1.982-2.026c.091-.109.229-.178.382-.178.13 0 .26.05.357.148l2.032 2.054c.194.196.193.513-.004.707-.196.194-.512.193-.707-.004l-1.178-1.19V13c0 .828-.672 1.5-1.5 1.5h-1c-.276 0-.5-.224-.5-.5s.224-.5.5-.5h1c.276 0 .5-.224.5-.5v-2.772z",fillRule:"nonzero"}))),Mo=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M9 7h5c.552 0 1 .448 1 1s-.448 1-1 1H9v5c0 .552-.448 1-1 1s-1-.448-1-1V9H2c-.552 0-1-.448-1-1s.448-1 1-1h5V2c0-.552.448-1 1-1s1 .448 1 1v5z",fillRule:"nonzero"})),Jn=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 3V13H8.78579L13 8.78579V3H3ZM1.52721 1.52721C1.86477 1.18964 2.32261 1 2.8 1H13.2C13.6774 1 14.1352 1.18964 14.4728 1.52721C14.8104 1.86477 15 2.32261 15 2.8V8.8688C14.9999 9.34585 14.8104 9.80357 14.4732 10.141L10.1412 14.473C9.8038 14.8102 9.34607 14.9999 8.86901 15H2.8C2.32261 15 1.86477 14.8104 1.52721 14.4728C1.18964 14.1352 1 13.6774 1 13.2V2.8C1 2.32261 1.18964 1.86477 1.52721 1.52721Z"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10 10H14C14.5523 10 15 9.55228 15 9C15 8.44772 14.5523 8 14 8H9.84602C9.35643 8 8.88688 8.19449 8.54069 8.54069C8.19449 8.88688 8 9.35643 8 9.84602V14C8 14.5523 8.44772 15 9 15C9.55228 15 10 14.5523 10 14V10Z"})),Ao=t=>x.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{d:"M12 1.5v21M1.5 12h21",strokeLinecap:"round",strokeLinejoin:"round"}))),Do=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{d:"M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667z",fill:"#30cf43"}),x.createElement("path",{d:"M23.778 12.111c0 3.111-1.556 4.667-4.667 4.667-3.111 0-4.667-1.556-4.667-4.667C14.444 9 16 7.444 19.111 7.444c3.111 0 4.667 1.556 4.667 4.667zM19.111 5.5c.778 0 1.167-.389 1.167-1.167v-.777c0-.45-.195-.786-.584-1.01-.388-.225-.777-.225-1.166 0-.39.224-.584.56-.584 1.01v.777c0 .778.39 1.167 1.167 1.167zM12.788 7.435c.55.552 1.1.554 1.653.004.552-.55.553-1.1.003-1.653l-.549-.55c-.55-.552-1.101-.554-1.653-.004-.553.55-.554 1.101-.005 1.654l.55.55zM10.556 13.278h.777c.778 0 1.167-.39 1.167-1.167 0-.778-.389-1.167-1.167-1.167h-.777c-.778 0-1.167.39-1.167 1.167 0 .778.389 1.167 1.167 1.167zM25.434 16.787c-.549-.512-1.089-.502-1.62.029-.53.53-.54 1.07-.028 1.62l.549.55c.55.55 1.1.55 1.65 0 .55-.55.55-1.1 0-1.65l-.55-.549zM25.722 12.111c0 .778.39 1.167 1.167 1.167h.778c.777 0 1.166-.39 1.166-1.167 0-.778-.389-1.167-1.166-1.167h-.778c-.322 0-.597.114-.825.342-.228.228-.342.503-.342.825zM24.61 7.779c.323 0 .598-.114.824-.344l.551-.549c.55-.55.55-1.1 0-1.65-.55-.55-1.1-.55-1.65 0l-.55.55c-.366.368-.45.792-.251 1.271.198.48.557.72 1.076.722zM21.911 22.356c-.771 0-1.522.12-2.254.364-.127.042-.21.126-.25.254-.039.127-.018.244.063.35 1.283 1.689 2.07 3.583 2.362 5.684.02.142.103.214.247.214h4.906c.836 0 1.492-.343 1.967-1.031-.737-3.89-3.084-5.835-7.042-5.835h.001zM9.644 19.968c-2.518-.004-4.758.783-6.72 2.362-.1.08-.149.183-.146.31v4.2c.004 1.588.8 2.382 2.388 2.382H19.83c.122 0 .222-.046.3-.14.077-.093.105-.2.082-.319-1.083-5.863-4.606-8.795-10.568-8.795z",fill:"#FFF"}))),Gc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{d:"M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667z",fill:"#fb2d8d",fillRule:"nonzero"}),x.createElement("path",{stroke:"#FFF",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",d:"M8 20v-8l4 4 4-4v8M22 12.07v7.916M19.5 17.5l2.48 2.525L24.5 17.5"}))),Zc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{fill:"#FFF",d:"M2 4h28v24H2z"}),x.createElement("path",{d:"M32 6c0-2.667-1.333-4-4-4H4c-1.105 0-2.047.39-2.828 1.172C.39 3.952 0 4.895 0 6v20c0 2.667 1.333 4 4 4h24c2.667 0 4-1.333 4-4V6zM4 6.667c0-.594.274-1.005.823-1.232.549-.227 1.033-.131 1.453.289.42.42.516.904.29 1.453-.228.549-.639.823-1.233.823C4.444 8 4 7.556 4 6.667zm4 0c0-.594.274-1.005.823-1.232.549-.227 1.033-.131 1.453.289.42.42.516.904.29 1.453-.228.549-.639.823-1.233.823C8.444 8 8 7.556 8 6.667zm4 0c0-.594.274-1.005.823-1.232.549-.227 1.033-.131 1.453.289.42.42.516.904.29 1.453-.228.549-.639.823-1.233.823C12.444 8 12 7.556 12 6.667zM29.333 26c0 .889-.444 1.333-1.333 1.333H4c-.889 0-1.333-.444-1.333-1.333V12c0-.184.065-.341.195-.471.13-.13.287-.196.471-.196h25.334c.444 0 .666.223.666.667v14z",fill:"#14b8ff"}),x.createElement("path",{d:"M10.333 16c0 .667.334 1 1 1 .223 0 .334.111.334.333v5.334c0 .666.333 1 1 1 .666 0 1-.334 1-1v-5.334c0-.092.032-.17.097-.235.065-.065.144-.098.236-.098.667 0 1-.333 1-1s-.333-1-1-1h-2.667c-.276 0-.512.098-.707.293-.195.195-.293.43-.293.707zM5.333 23.667c.667 0 1-.334 1-1v-1.334c0-.128.056-.224.167-.288.111-.064.222-.064.333 0 .111.064.167.16.167.288v1.334c0 .666.333 1 1 1s1-.334 1-1V16c0-.385-.167-.674-.5-.866-.333-.192-.667-.192-1 0-.333.192-.5.481-.5.866v2.667c0 .222-.111.333-.333.333-.223 0-.334-.111-.334-.333V16c0-.385-.166-.674-.5-.866-.333-.192-.666-.192-1 0-.333.192-.5.481-.5.866v6.667c0 .666.334 1 1 1zM23.667 21.333c.001 1.554.78 2.332 2.333 2.334h1.333c.667 0 1-.334 1-1 0-.667-.333-1-1-1H26c-.222 0-.333-.111-.333-.334V16c0-.385-.167-.674-.5-.866-.334-.192-.667-.192-1 0-.334.192-.5.481-.5.866v5.333zM17.333 23.667c.667 0 1-.334 1-1v-2.78c0-.039.02-.063.056-.073.037-.01.066 0 .086.034.207.301.493.452.858.452.366 0 .652-.15.859-.452.02-.033.048-.045.085-.034.038.01.056.034.056.073v2.78c0 .666.334 1 1 1 .667 0 1-.334 1-1V16c-.001-.506-.246-.827-.734-.962s-.863.014-1.124.447l-.856 1.428c-.065.108-.16.161-.286.161-.125 0-.22-.053-.285-.16l-.856-1.429c-.262-.433-.636-.582-1.125-.447-.488.135-.732.456-.734.962v6.667c0 .666.334 1 1 1z",fill:"#14b8ff"}))),Jc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{fill:"#FFF",fillRule:"nonzero",d:"M1 2h25v24H1z"}),x.createElement("path",{d:"M27.333 24.667v-22C27.333.889 26.444 0 24.667 0h-22C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v22c0 1.777.889 2.666 2.667 2.666h22c1.777 0 2.666-.889 2.666-2.666z",fill:"#ffb41f"}),x.createElement("path",{d:"M19.113 12.933c-.126-.603-.497-.911-1.112-.925-.616-.014-1 .277-1.154.873l-2.123 4.667c-.051.112-.137.176-.26.192-.121.017-.221-.023-.3-.117l-1.467-1.752c-.34-.462-.796-.67-1.368-.625-.571.044-.99.32-1.254.829L6.76 21.6c-.133.222-.136.446-.008.671.128.226.321.338.58.338H22c.236 0 .42-.097.552-.293.132-.195.154-.402.067-.621l-3.506-8.762zM10.667 8c0 1.778-.89 2.667-2.667 2.667-1.778 0-2.667-.89-2.667-2.667 0-1.778.89-2.667 2.667-2.667 1.778 0 2.667.89 2.667 2.667z",fill:"#FFF"}),x.createElement("path",{d:"M30.667 8c-.369 0-.683.13-.943.39-.26.26-.39.575-.39.943v19.334c0 .444-.223.666-.667.666H9.333c-.889 0-1.333.445-1.333 1.334S8.444 32 9.333 32h20C31.111 32 32 31.111 32 29.333v-20C32 8.444 31.556 8 30.667 8z",fill:"#ffb41f"}))),Lo=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("rect",{fill:"#30cf43",width:32,height:32,rx:2.5}),x.createElement("rect",{fill:"#FFF",x:3,y:15,width:26,height:2,rx:1}),x.createElement("rect",{fill:"#FFF",x:3,y:3,width:26,height:7,rx:1.5}),x.createElement("rect",{fill:"#FFF",x:3,y:22,width:26,height:7,rx:1.5}))),Xc=t=>x.createElement("svg",{width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667Z",fill:"#FB2D8D"}),x.createElement("path",{d:"M15.998-.01v18.674c-.054.558.175.951.687 1.18.525.2.965.084 1.322-.35l2.689-2.683a.404.404 0 0 1 .294-.122c.116 0 .214.041.295.122l2.69 2.684c.245.274.552.417.92.428.139 0 .273-.026.401-.078.512-.23.741-.623.687-1.18V-.062l-9.985.05v.002Z",fill:"#fff"})),qc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fillRule:"nonzero",fill:"none"},x.createElement("path",{d:"M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667z",fill:"#14b8ff"}),x.createElement("path",{d:"M23.312 9.5H8.687c-1.233 0-2 .767-2 2v9c0 1.233.767 2 2 2h14.625c1.234 0 2-.767 2-2v-9c0-1.233-.766-2-2-2zM8.56 11.25h14.882c.1.004.118.022.121.122v9.256c-.004.116-.029.122-.178.122H8.56c-.1-.004-.118-.022-.121-.122v-9.256c.003-.1.022-.118.121-.122z",fill:"#FFF"}),x.createElement("path",{d:"M18.123 13.887c.3-.325.79-.37 1.144-.123l.092.075 2.86 2.643c.355.329.377.882.049 1.237-.301.325-.791.37-1.144.123l-.093-.074-2.86-2.644c-.355-.328-.376-.882-.048-1.237zM12.64 13.839c.356-.328.91-.307 1.237.048.301.326.308.818.033 1.15l-.081.087-2.86 2.644c-.355.328-.908.306-1.237-.049-.3-.325-.307-.818-.033-1.15l.082-.087 2.86-2.643z",fill:"#FFF"}),x.createElement("path",{d:"M23.663 10.04c.398-.274.943-.174 1.217.224.252.364.189.853-.13 1.143l-.093.074-7.135 4.92c-.925.638-1.935.676-2.87.112l-.174-.112-7.135-4.92c-.398-.275-.498-.82-.223-1.217.251-.365.73-.48 1.114-.285l.103.061 7.135 4.92c.346.24.613.263.944.072l.113-.072 7.134-4.92z",fill:"#FFF"}))),Qc=t=>x.createElement("svg",{width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("rect",{width:32,height:32,rx:3,fill:"#FFB41F"}),x.createElement("g",{clipPath:"url(#clip0)",fill:"#fff"},x.createElement("path",{d:"M14.536 15.568l2.68 8.931a.83.83 0 001.382.349l1.365-1.365 3.522 3.522a.83.83 0 001.174 0l2.348-2.348a.83.83 0 000-1.174l-3.522-3.522L24.85 18.6a.829.829 0 00-.348-1.382l-8.932-2.68a.83.83 0 00-1.034 1.03z"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.86 4.255A11.25 11.25 0 0126.47 14.447a.75.75 0 01-1.496.106 9.75 9.75 0 10-10.421 10.42.75.75 0 01-.107 1.496 11.25 11.25 0 01-1.588-22.214z"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.305 8.785a6.75 6.75 0 018.203 3.934.75.75 0 11-1.39.562 5.25 5.25 0 10-6.837 6.835.75.75 0 11-.562 1.39 6.75 6.75 0 01.586-12.72z"})),x.createElement("clipPath",{id:"clip0"},x.createElement("path",{fill:"#fff",transform:"translate(4 4)",d:"M0 0h24v24H0z"}))),ed=t=>x.createElement("svg",{width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M30 0H2a2 2 0 00-2 2v28a2 2 0 002 2h28a2 2 0 002-2V2a2 2 0 00-2-2z",fill:"#30CF43"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.999 9.001c4.007-.06 7.962 2.737 10.366 5.425l.004.004a2.517 2.517 0 010 3.337l-.003.004c-2.349 2.628-6.294 5.49-10.367 5.428-4.073.061-8.018-2.8-10.365-5.429l-.003-.003a2.517 2.517 0 010-3.337l.003-.004C8.036 11.738 11.991 8.94 16 9.001h-.001zm-8.872 6.756a.517.517 0 000 .683c2.208 2.472 5.645 4.814 8.855 4.759h.034c3.209.055 6.647-2.287 8.857-4.759a.518.518 0 000-.683c-2.257-2.522-5.705-4.81-8.857-4.756h-.034c-3.152-.054-6.6 2.234-8.855 4.756z",fill:"#fff"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16 18a2 2 0 100-4 2 2 0 000 4zm0 2a4 4 0 100-8 4 4 0 000 8z",fill:"#fff"})),td=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M29 0H3C1.34315 0 0 1.34315 0 3V29C0 30.6569 1.34315 32 3 32H29C30.6569 32 32 30.6569 32 29V3C32 1.34315 30.6569 0 29 0Z",fill:"#FB2D8D"}),x.createElement("path",{d:"M13.5361 15.568L16.2161 24.499C16.2573 24.6366 16.3335 24.7612 16.4372 24.8605C16.541 24.9599 16.6688 25.0306 16.808 25.0658C16.9473 25.101 17.0933 25.0994 17.2318 25.0612C17.3703 25.023 17.4965 24.9496 17.5981 24.848L18.9631 23.483L22.4851 27.005C22.5622 27.0821 22.6537 27.1433 22.7544 27.185C22.8551 27.2267 22.9631 27.2482 23.0721 27.2482C23.1811 27.2482 23.2891 27.2267 23.3898 27.185C23.4905 27.1433 23.582 27.0821 23.6591 27.005L26.0071 24.657C26.0842 24.5799 26.1454 24.4884 26.1871 24.3877C26.2288 24.287 26.2503 24.179 26.2503 24.07C26.2503 23.961 26.2288 23.853 26.1871 23.7523C26.1454 23.6516 26.0842 23.5601 26.0071 23.483L22.4851 19.961L23.8501 18.6C23.952 18.4986 24.0257 18.3725 24.0641 18.234C24.1025 18.0955 24.1043 17.9494 24.0692 17.81C24.0341 17.6707 23.9634 17.5428 23.8639 17.439C23.7645 17.3352 23.6398 17.2591 23.5021 17.218L14.5701 14.538C14.4269 14.4952 14.2748 14.4918 14.1298 14.5282C13.9848 14.5647 13.8524 14.6396 13.7464 14.7451C13.6405 14.8506 13.5651 14.9828 13.5281 15.1276C13.491 15.2725 13.4938 15.4246 13.5361 15.568Z",fill:"white"}),x.createElement("path",{d:"M12.2871 23.75C12.7013 23.75 13.0371 23.4142 13.0371 23C13.0371 22.5858 12.7013 22.25 12.2871 22.25V23.75ZM25.75 17.2496C25.75 17.6638 26.0858 17.9996 26.5 17.9996C26.9142 17.9996 27.25 17.6638 27.25 17.2496H25.75ZM8.5 9.75H23.5V8.25H8.5V9.75ZM6.25 20V12H4.75V20H6.25ZM12.2871 22.25H10.75V23.75H12.2871V22.25ZM10.75 22.25H8.5V23.75H10.75V22.25ZM25.75 12V16H27.25V12H25.75ZM25.75 16V17.2496H27.25V16H25.75ZM4.75 20C4.75 22.0711 6.42893 23.75 8.5 23.75V22.25C7.25736 22.25 6.25 21.2426 6.25 20H4.75ZM23.5 9.75C24.7426 9.75 25.75 10.7574 25.75 12H27.25C27.25 9.92893 25.5711 8.25 23.5 8.25V9.75ZM8.5 8.25C6.42893 8.25 4.75 9.92893 4.75 12H6.25C6.25 10.7574 7.25736 9.75 8.5 9.75V8.25Z",fill:"white"})),nd=t=>x.createElement("svg",{width:28,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("rect",{width:28,height:28,rx:3,fill:"#14B8FF"}),x.createElement("g",{fill:"#fff"},x.createElement("path",{d:"M20 11.75a2.242 2.242 0 0 0-1.993-2.225 9.414 9.414 0 0 0-.257 2.225c-.003.749.083 1.496.257 2.224A2.243 2.243 0 0 0 20 11.75ZM13.75 18.433 9.41 17.05l1.973 4.856a1.746 1.746 0 0 0 3.367-.636c.003-.23-.04-.457-.126-.67l-.874-2.167Z"}),x.createElement("path",{d:"M19.25 5c-.27 0-.537.048-.79.139L7.046 8.778A2.864 2.864 0 0 0 5 11.75a2.857 2.857 0 0 0 2.025 2.965l11.437 3.646c.253.091.52.138.788.139 2.138 0 3.75-2.902 3.75-6.75S21.388 5 19.25 5Zm0 12C18.188 17 17 14.755 17 11.75s1.188-5.25 2.25-5.25 2.25 2.245 2.25 5.25S20.312 17 19.25 17Z"})),x.createElement("clipPath",null,x.createElement("path",{fill:"#fff",transform:"translate(5 5)",d:"M0 0h18v18H0z"}))),rd=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M29 0H3C1.34315 0 0 1.34315 0 3V29C0 30.6569 1.34315 32 3 32H29C30.6569 32 32 30.6569 32 29V3C32 1.34315 30.6569 0 29 0Z",fill:"#FFB41F"}),x.createElement("path",{d:"M5.5 7.75H26.5",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M5.5 24.25H26.5",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M19 19.75V13.75C19 13.3522 19.158 12.9706 19.4393 12.6893C19.7206 12.408 20.1022 12.25 20.5 12.25H22",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M19 16.75H21.25",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M16 19.75V12.25",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M12.25 16.75H13V18.25C13 18.6478 12.842 19.0294 12.5607 19.3107C12.2794 19.592 11.8978 19.75 11.5 19.75C11.1022 19.75 10.7206 19.592 10.4393 19.3107C10.158 19.0294 10 18.6478 10 18.25V13.75C10 13.3522 10.158 12.9706 10.4393 12.6893C10.7206 12.408 11.1022 12.25 11.5 12.25H13",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),id=t=>x.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("rect",{width:28,height:28,rx:3,fill:"#ffb41f"}),x.createElement("rect",{x:2,y:8,width:15,height:4,rx:1.5,fill:"white"}),x.createElement("rect",{x:2,y:15,width:24,height:2,rx:1,fill:"white"}),x.createElement("rect",{x:2,y:19,width:24,height:2,rx:1,fill:"white"}),x.createElement("path",{d:"M20 9L22.5 11.5L25 9",stroke:"white",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})),od=t=>x.createElement("svg",{width:28,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("rect",{width:28,height:28,rx:3,fill:"#30CF43"}),x.createElement("path",{d:"M12.07 20.77a.998.998 0 0 1-1.445-.894v-6.752a.999.999 0 0 1 1.444-.894l6.754 3.377a.997.997 0 0 1 0 1.785L12.07 20.77Z",fill:"#fff",stroke:"#fff",strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("rect",{x:3,y:2,width:4,height:4,rx:1,fill:"#fff"}),x.createElement("rect",{x:9,y:2,width:4,height:4,rx:1,fill:"#fff"}),x.createElement("rect",{x:15,y:2,width:4,height:4,rx:1,fill:"#fff"}),x.createElement("rect",{x:21,y:2,width:4,height:4,rx:1,fill:"#fff"})),ld=t=>x.createElement("svg",{width:28,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("rect",{width:28,height:28,rx:3,fill:"#FB2D8D"}),x.createElement("path",{d:"M9 21c1.105 0 2-.933 2-2.084s-.895-2.084-2-2.084-2 .933-2 2.084C7 20.066 7.895 21 9 21ZM19 18.916c1.105 0 2-.933 2-2.084s-.895-2.084-2-2.084-2 .933-2 2.084c0 1.15.895 2.084 2 2.084Z",fill:"#fff",stroke:"#fff",strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),x.createElement("path",{d:"M21 16.834v-7.75c0-.317-.07-.63-.203-.914a2.07 2.07 0 0 0-.566-.729 1.965 1.965 0 0 0-.816-.396 1.922 1.922 0 0 0-.9.017l-6 1.042a1.995 1.995 0 0 0-1.091.74A2.14 2.14 0 0 0 11 10.124v8.792",stroke:"#fff",strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),sd=t=>x.createElement("svg",{width:28,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("rect",{width:28,height:28,rx:3,fill:"#14B8FF"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.229 6.653a2.625 2.625 0 0 0-2.882.605l-.01.01-6.761 6.761a4.312 4.312 0 1 0 6.098 6.099l8.233-8.234a.75.75 0 1 1 1.06 1.06l-8.232 8.234a5.812 5.812 0 1 1-8.22-8.22l6.758-6.757a4.124 4.124 0 1 1 5.833 5.833l-6.767 6.77a2.437 2.437 0 0 1-3.447-3.446l.01-.01 6.761-6.764a.75.75 0 1 1 1.061 1.06l-6.757 6.76a.937.937 0 0 0 1.326 1.325l6.765-6.769a2.626 2.626 0 0 0-.83-4.317Z",fill:"#fff"})),ad=t=>x.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("rect",{width:28,height:28,rx:3,fill:"#3BCD4C"}),x.createElement("path",{d:"M17.0141 11.3454C17.0775 11.3165 17.1182 11.2532 17.1182 11.1835C17.1182 11.1137 17.0775 11.0504 17.0141 11.0215L10.0678 7.85488C9.9758 7.814 9.87078 7.814 9.77877 7.85488L7.06135 9.03382C6.99572 9.06178 6.95312 9.12623 6.95312 9.19757C6.95312 9.2689 6.99572 9.33335 7.06135 9.36131L14.3871 12.414C14.4784 12.4523 14.5816 12.4508 14.6718 12.4098L17.0141 11.3454Z",fill:"white"}),x.createElement("path",{d:"M21.3502 9.37202C21.4141 9.34329 21.4552 9.27975 21.4552 9.2097C21.4552 9.13965 21.4141 9.07612 21.3502 9.04738L14.4716 6.05943C14.29 5.98019 14.0837 5.98019 13.9021 6.05943L11.6097 7.05613C11.5454 7.08468 11.5039 7.14844 11.5039 7.2188C11.5039 7.28917 11.5454 7.35293 11.6097 7.38148L18.5153 10.5296C18.609 10.5722 18.7165 10.5722 18.8101 10.5296L21.3502 9.37202Z",fill:"white"}),x.createElement("path",{d:"M6.24633 10.1777C6.19138 10.1549 6.12865 10.161 6.07916 10.194C6.02966 10.2271 5.99996 10.2827 6 10.3422V18.2773C5.99998 18.5646 6.17266 18.8238 6.43783 18.9344L13.76 21.9864C13.8149 22.0093 13.8777 22.0031 13.9271 21.9701C13.9766 21.937 14.0063 21.8815 14.0063 21.8219V13.5309C14.0062 13.459 13.963 13.3942 13.8967 13.3664L6.24633 10.1777Z",fill:"white"}),x.createElement("path",{d:"M15.0781 21.7899C15.0784 21.8502 15.1092 21.9063 15.1599 21.939C15.2105 21.9718 15.2743 21.9767 15.3294 21.9522L21.9582 18.9394C22.2122 18.8238 22.3753 18.5705 22.3754 18.2915V10.3578C22.3754 10.2973 22.3447 10.241 22.2939 10.2082C22.2431 10.1753 22.1791 10.1706 22.124 10.1955L15.1849 13.3507C15.1211 13.3792 15.0801 13.4425 15.0803 13.5124L15.0781 21.7899Z",fill:"white"})),cd=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M29.5 0H2.5C1.11929 0 0 1.11929 0 2.5V29.5C0 30.8807 1.11929 32 2.5 32H29.5C30.8807 32 32 30.8807 32 29.5V2.5C32 1.11929 30.8807 0 29.5 0Z",fill:"#FB2D8D"}),x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 10C6 8.89543 6.89543 8 8 8H24C25.1046 8 26 8.89543 26 10V15C26 16.1046 25.1046 17 24 17H8C6.89543 17 6 16.1046 6 15V10ZM6 24C6 23.4477 6.44772 23 7 23H25C25.5523 23 26 23.4477 26 24C26 24.5523 25.5523 25 25 25H7C6.44772 25 6 24.5523 6 24ZM7 19C6.44772 19 6 19.4477 6 20C6 20.5523 6.44772 21 7 21H25C25.5523 21 26 20.5523 26 20C26 19.4477 25.5523 19 25 19H7Z",fill:"white"})),dd=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{d:"M31.252 8.488c-.366-1.37-1.448-2.452-2.824-2.823C25.941 5 15.958 5 15.958 5s-9.977 0-12.47.665c-1.37.366-2.452 1.447-2.823 2.823C0 10.976 0 16.17 0 16.17s0 5.194.665 7.682c.366 1.372 1.447 2.453 2.823 2.823 2.493.666 12.47.666 12.47.666s9.983 0 12.47-.666c1.372-.365 2.453-1.447 2.824-2.823.665-2.488.665-7.682.665-7.682s0-5.194-.665-7.682",fill:"#D9252A"}),x.createElement("path",{fill:"#FFFFFE",d:"M12.77 20.958l8.291-4.788-8.291-4.788v9.576"}))),ud=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M10.063 29.002c12.076 0 18.68-10.005 18.68-18.68 0-.285 0-.567-.019-.85C30.01 8.545 31.12 7.393 32 6.076c-1.198.53-2.47.879-3.77 1.032 1.37-.82 2.395-2.11 2.886-3.63-1.29.764-2.7 1.303-4.17 1.593-2.035-2.164-5.268-2.694-7.887-1.292-2.62 1.401-3.973 4.386-3.3 7.28-5.28-.265-10.198-2.758-13.532-6.86-1.742 3-.852 6.838 2.033 8.764-1.045-.03-2.067-.313-2.98-.822v.084c0 3.125 2.204 5.817 5.267 6.435-.966.264-1.98.303-2.964.113.86 2.675 3.325 4.507 6.133 4.56-2.324 1.827-5.196 2.818-8.153 2.815-.522 0-1.044-.032-1.563-.094 3.002 1.927 6.496 2.949 10.063 2.944",fill:"#1DA1F2",fillRule:"nonzero"})),Yr=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 122.43 122.41",...t},x.createElement("path",{d:"M83.86 54.15v34.13H38.57V54.15H0v68.26h122.43V54.15H83.86zM38.57 0h45.3v34.13h-45.3z"})),gd=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{d:"M31.886 25.508c0 3.522-2.855 6.377-6.377 6.377H6.377C2.857 31.885 0 29.03 0 25.508V6.378C0 2.854 2.857 0 6.377 0H25.51c3.522 0 6.377 2.855 6.377 6.377v19.131",fill:"#0FB7FF"}),x.createElement("path",{d:"M25.998 10.58c.175-.982.17-1.992-.436-2.755-.846-1.07-2.646-1.11-3.88-.921-1.003.153-4.397 1.651-5.552 5.236 2.046-.156 3.118.148 2.921 2.4-.082.943-.558 1.976-1.09 2.966-.614 1.141-1.765 3.382-3.274 1.767-1.36-1.454-1.257-4.235-1.568-6.086-.173-1.04-.356-2.334-.697-3.402-.293-.92-.966-2.027-1.788-2.267-.884-.26-1.976.146-2.618.523-2.042 1.2-3.598 2.908-5.365 4.317v.132c.35.335.444.884.96.959 1.216.179 2.375-1.134 3.184.232.492.834.645 1.749.96 2.648.42 1.198.746 2.503 1.09 3.88.583 2.334 1.299 5.82 3.316 6.675 1.029.437 2.575-.148 3.358-.612 2.122-1.255 3.775-3.075 5.19-4.927 3.234-4.382 5.019-9.347 5.289-10.765",fill:"#FFFFFE"}))),hd=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M31.976 10.886c-.007-.039-.014-.078-.024-.116l-.022-.066c-.01-.034-.022-.068-.035-.1l-.03-.067c-.015-.031-.03-.062-.048-.092-.012-.022-.026-.042-.039-.063-.018-.029-.037-.057-.058-.084-.015-.02-.03-.04-.047-.059-.022-.026-.045-.05-.068-.075l-.055-.053c-.025-.023-.051-.045-.078-.065-.021-.016-.041-.033-.063-.047-.008-.006-.014-.013-.023-.018L16.762.231c-.461-.308-1.063-.308-1.525 0L.612 9.981l-.022.017c-.022.015-.042.031-.063.047-.027.021-.053.043-.078.065-.019.017-.037.035-.055.054-.024.024-.046.048-.068.074-.017.02-.032.039-.047.06-.02.028-.04.055-.058.084l-.04.064c-.017.03-.032.06-.046.09-.01.022-.022.045-.03.067-.014.033-.026.067-.036.1l-.022.065c-.01.038-.017.076-.024.115-.004.02-.008.04-.01.06-.009.06-.013.119-.013.18v9.751c0 .06.004.121.013.18.003.022.009.039.013.06.007.038.013.077.026.116l.021.067c.011.034.022.069.035.1.009.022.021.043.03.065.014.03.03.06.047.092.012.021.026.043.04.062.018.03.038.056.06.082.014.022.03.04.047.06.022.026.043.051.069.074.017.018.034.04.056.052l.077.066c.021.017.043.03.06.046.009.005.014.013.022.017l14.621 9.755c.231.155.496.233.763.232.267-.002.532-.078.763-.232l14.625-9.75.022-.016c.022-.015.042-.031.063-.047.027-.021.053-.043.078-.066l.055-.053c.024-.024.047-.049.068-.075.017-.02.032-.039.047-.06.02-.026.04-.054.058-.083.014-.02.027-.042.04-.063.017-.03.032-.06.047-.092l.03-.066c.014-.033.025-.067.035-.1.008-.023.016-.045.022-.067.01-.038.017-.077.024-.116.004-.02.009-.039.01-.06.009-.059.013-.118.013-.179v-9.75c0-.06-.005-.12-.012-.18-.004-.02-.01-.038-.014-.06h.002zM16 19.253L11.137 16 16 12.747 20.863 16 16 19.253zm-1.375-8.895l-5.962 3.988-4.812-3.22 10.774-7.182v6.414zM6.19 16l-3.44 2.3V13.7l3.44 2.3zm2.473 1.655l5.962 3.987v6.414L3.85 20.873l4.812-3.219v.001zm8.712 3.986l5.961-3.987 4.813 3.22-10.774 7.181v-6.414zm8.434-5.64l3.44-2.302v4.602L25.81 16zm-2.473-1.655l-5.961-3.987V3.944l10.774 7.183-4.813 3.219z",fill:"#000",fillRule:"nonzero"})),fd=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M16 .053C7.19.053.047 7.194.047 16.003c0 8.81 7.142 15.951 15.951 15.951 8.81 0 15.951-7.14 15.951-15.95C31.95 7.194 24.81.054 16 .054V.053zm7.314 23.005c-.285.469-.899.618-1.367.33-3.745-2.288-8.46-2.806-14.013-1.537-.535.122-1.068-.213-1.19-.749-.122-.535.212-1.068.748-1.19 6.076-1.389 11.288-.79 15.493 1.779.468.287.617.899.33 1.367zm1.953-4.343c-.36.585-1.126.77-1.71.41-4.288-2.636-10.824-3.4-15.896-1.86-.657.199-1.352-.172-1.552-.828-.198-.658.173-1.351.83-1.551 5.793-1.758 12.994-.907 17.918 2.12.585.36.77 1.125.41 1.709zm.167-4.523c-5.14-3.054-13.623-3.334-18.531-1.845-.788.24-1.622-.205-1.86-.994-.24-.788.205-1.621.994-1.86 5.634-1.711 15.001-1.38 20.92 2.133.71.42.943 1.336.522 2.044-.42.71-1.337.943-2.044.522z",fill:"#1ED760",fillRule:"nonzero"})),pd=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M15.924 9.922c-.236 0-.43.194-.434.433l-.177 8.866.178 3.218c.003.235.197.43.433.43s.43-.195.433-.433v.004l.193-3.219-.193-8.867c-.003-.238-.197-.432-.433-.432zm12.14 5.102c-.54 0-1.054.11-1.522.306C26.228 11.783 23.254 9 19.625 9c-.887 0-1.753.175-2.517.47-.298.115-.377.234-.38.463v12.492c.004.242.19.442.426.466l10.91.006c2.174 0 3.936-1.762 3.936-3.936s-1.762-3.937-3.936-3.937zM10.886 22.56v-.002l.226-3.338-.226-7.276c-.006-.181-.148-.323-.325-.323-.176 0-.319.142-.324.323l-.202 7.276.202 3.34c.005.178.148.32.324.32.177 0 .318-.142.325-.321v.001zm-2.952.32c.144 0 .262-.117.27-.267l.264-3.394-.265-6.497c-.007-.15-.125-.267-.27-.267-.144 0-.263.117-.269.267l-.234 6.497.234 3.395c.006.149.125.266.27.266zm5.297-10.868c-.209 0-.375.166-.38.377l-.169 6.832.17 3.287c.004.21.17.375.379.375.207 0 .373-.166.378-.377v.002l.19-3.287-.19-6.832c-.005-.211-.17-.377-.378-.377zM2.802 22.657c.083 0 .15-.066.16-.156l.34-3.286-.34-3.41c-.01-.091-.077-.157-.16-.157-.084 0-.152.066-.16.157l-.299 3.41.299 3.285c.008.091.076.157.16.157zm2.546.188c.113 0 .206-.092.214-.212l.302-3.418-.302-3.25c-.008-.12-.1-.211-.214-.211-.116 0-.208.09-.216.212l-.266 3.25.266 3.417c.008.12.1.212.216.212zm6.543.03c.191 0 .346-.154.351-.35v.003l.209-3.309-.209-7.09c-.005-.196-.16-.35-.351-.35-.193 0-.348.154-.352.35l-.185 7.09.185 3.308c.004.194.159.348.352.348zm2.69.013c.22 0 .401-.181.405-.404v.002-.002l.172-3.263-.172-8.13c-.004-.223-.186-.405-.406-.405-.22 0-.403.182-.406.405l-.153 8.127.153 3.268c.003.22.186.402.406.402zm-5.338-.016c.16 0 .29-.129.296-.294l.246-3.36-.246-7.039c-.006-.165-.137-.294-.296-.294-.162 0-.292.13-.297.295l-.218 7.038.218 3.361c.005.164.135.293.297.293zM4.07 15.527c-.1 0-.18.08-.188.185L3.6 19.215l.282 3.39c.008.104.089.184.188.184.098 0 .178-.08.187-.184l.32-3.39-.32-3.504c-.009-.104-.09-.184-.187-.184zm2.565-1.837c-.129 0-.235.105-.242.24l-.25 5.287.25 3.417c.007.133.113.239.242.239s.235-.106.243-.24v.001l.283-3.417-.283-5.288c-.008-.134-.114-.24-.243-.24zm-4.957 2.65c-.01-.076-.066-.129-.133-.129-.068 0-.124.055-.133.13l-.315 2.873.315 2.81c.01.076.065.13.133.13.067 0 .122-.053.133-.129l.358-2.81-.358-2.874zm-1.316.972c-.067 0-.12.052-.128.125L0 19.214l.234 1.747c.009.074.061.125.128.125.065 0 .117-.05.128-.124l.277-1.748-.277-1.778c-.01-.073-.063-.124-.128-.124z",fill:"#EE7C25",fillRule:"evenodd"})),md=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{d:"M32 16C32 24.8361 24.8361 32 16 32C7.16394 32 0 24.8361 0 16C0 7.16394 7.16394 0 16 0C24.8379 0 32 7.16394 32 16Z",fill:"#2081E2"}),x.createElement("path",{d:"M7.89371 16.5376L7.96274 16.4291L12.125 9.91784C12.1858 9.82251 12.3288 9.83236 12.3748 9.93592C13.0702 11.4943 13.6702 13.4324 13.3891 14.639C13.2691 15.1354 12.9403 15.8078 12.5704 16.4291C12.5228 16.5196 12.4702 16.6083 12.4143 16.6938C12.388 16.7333 12.3436 16.7563 12.2959 16.7563H8.01534C7.90027 16.7563 7.83288 16.6313 7.89371 16.5376Z",fill:"white"}),x.createElement("path",{d:"M26.4461 17.7475V18.7782C26.4461 18.8374 26.4099 18.89 26.3573 18.913C26.0351 19.0511 24.9321 19.5574 24.4734 20.1952C23.303 21.8242 22.4088 24.1536 20.4098 24.1536H12.0706C9.11495 24.1536 6.71985 21.7503 6.71985 18.7848V18.6894C6.71985 18.6105 6.78394 18.5464 6.86286 18.5464H11.5117C11.6037 18.5464 11.6711 18.6319 11.6629 18.7223C11.63 19.0248 11.6859 19.3338 11.8289 19.6149C12.1051 20.1755 12.6772 20.5256 13.2952 20.5256H15.5966V18.7289H13.3215C13.2048 18.7289 13.1358 18.5941 13.2032 18.4987C13.2278 18.4609 13.2558 18.4215 13.2854 18.3771C13.5007 18.0714 13.8081 17.5963 14.1139 17.0555C14.3227 16.6905 14.5248 16.3009 14.6876 15.9097C14.7205 15.839 14.7468 15.7666 14.7731 15.696C14.8174 15.571 14.8635 15.4543 14.8964 15.3376C14.9293 15.239 14.9555 15.1354 14.9818 15.0384C15.0591 14.7064 15.092 14.3546 15.092 13.9897C15.092 13.8467 15.0854 13.697 15.0723 13.554C15.0657 13.3979 15.046 13.2417 15.0262 13.0855C15.0131 12.9474 14.9884 12.811 14.9621 12.668C14.9293 12.4592 14.8832 12.2521 14.8306 12.0433L14.8125 11.9644C14.7731 11.8214 14.7402 11.685 14.6942 11.542C14.5643 11.0932 14.4147 10.6559 14.2569 10.2466C14.1994 10.0839 14.1336 9.92771 14.0678 9.77155C13.9709 9.53647 13.8722 9.32278 13.7818 9.12057C13.7358 9.02851 13.6964 8.94467 13.6569 8.85919C13.6125 8.7622 13.5665 8.66521 13.5205 8.57318C13.4876 8.50249 13.4498 8.43673 13.4235 8.37097L13.1424 7.85151C13.1029 7.78083 13.1687 7.69699 13.2459 7.71836L15.0049 8.19507H15.0098C15.0131 8.19507 15.0147 8.19673 15.0164 8.19673L15.2481 8.26083L15.503 8.33318L15.5966 8.35945V7.31398C15.5966 6.80931 16.001 6.39999 16.5008 6.39999C16.7506 6.39999 16.9775 6.50191 17.1402 6.66793C17.303 6.83398 17.4049 7.06083 17.4049 7.31398V8.86579L17.5923 8.91836C17.6071 8.92332 17.6219 8.92988 17.635 8.93974C17.6811 8.97427 17.7468 9.02521 17.8306 9.08771C17.8964 9.14028 17.9671 9.20441 18.0526 9.27017C18.2219 9.40659 18.4241 9.58249 18.646 9.7847C18.7052 9.83564 18.7627 9.88825 18.8153 9.94086C19.1014 10.2072 19.4219 10.5195 19.7277 10.8647C19.8131 10.9617 19.897 11.0603 19.9824 11.1639C20.0679 11.2691 20.1583 11.3726 20.2372 11.4762C20.3408 11.6143 20.4526 11.7573 20.5496 11.9069C20.5956 11.9776 20.6482 12.0499 20.6926 12.1206C20.8175 12.3096 20.9277 12.5053 21.0329 12.7009C21.0773 12.7913 21.1233 12.8899 21.1627 12.9869C21.2794 13.2483 21.3715 13.5146 21.4307 13.7809C21.4487 13.8384 21.4619 13.9009 21.4685 13.9568V13.9699C21.4882 14.0488 21.4948 14.1327 21.5014 14.2181C21.5277 14.491 21.5145 14.7639 21.4553 15.0384C21.4307 15.1552 21.3978 15.2653 21.3583 15.382C21.3189 15.4938 21.2794 15.6105 21.2285 15.7206C21.1299 15.9491 21.0131 16.1776 20.875 16.3913C20.8307 16.4702 20.7781 16.5541 20.7254 16.633C20.6679 16.7168 20.6087 16.7957 20.5561 16.873C20.4838 16.9716 20.4066 17.0752 20.3277 17.1672C20.257 17.2642 20.1846 17.3612 20.1057 17.4467C19.9956 17.5765 19.8904 17.6998 19.7802 17.8182C19.7145 17.8954 19.6438 17.9744 19.5715 18.045C19.5008 18.1239 19.4285 18.1946 19.3627 18.2604C19.2526 18.3705 19.1605 18.456 19.0832 18.5267L18.9024 18.6927C18.8761 18.7157 18.8416 18.7289 18.8054 18.7289H17.4049V20.5256H19.1671C19.5616 20.5256 19.9364 20.3859 20.2389 20.1294C20.3424 20.039 20.7945 19.6478 21.3287 19.0577C21.3468 19.0379 21.3699 19.0231 21.3962 19.0166L26.2636 17.6094C26.354 17.5831 26.4461 17.6522 26.4461 17.7475Z",fill:"white"})),xd=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("rect",{fill:"#fb2d8d",width:32,height:32,rx:2.5}),x.createElement("path",{d:"M12 16c0 1.333-.667 2-2 2s-2-.667-2-2 .667-2 2-2 2 .667 2 2zM18 16c0 1.333-.667 2-2 2s-2-.667-2-2 .667-2 2-2 2 .667 2 2zM24 16c0 1.333-.667 2-2 2s-2-.667-2-2 .667-2 2-2 2 .667 2 2z",fill:"#FFF"}))),_d=t=>x.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{"data-selector":"bg",d:"M2 24h13l9-9V2a2 2 0 00-2-2H2a2 2 0 00-2 2v20a2 2 0 002 2z",fill:"#F0F6F9"}),x.createElement("rect",{"data-selector":"block",x:5.25,y:4.5,width:13.5,height:4.5,rx:1,fill:"#738A94"}),x.createElement("path",{"data-selector":"fold",d:"M15 16v8l9-9h-8a1 1 0 00-1 1z",fill:"#DAE8F1"}),x.createElement("rect",{"data-selector":"line",x:5.25,y:11.25,width:8.25,height:1.5,rx:.75,fill:"#738A94"})),Vr=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",...t},x.createElement("g",{strokeLinecap:"round",strokeWidth:2,fill:"none",stroke:"currentColor",strokeLinejoin:"round",className:"nc-icon-wrapper"},x.createElement("circle",{cx:18,cy:16,r:4}),x.createElement("path",{"data-cap":"butt",d:"M20.849 33.164 33 20l13 13M2 38l12-11 10 9"}),x.createElement("path",{d:"M2 6h44v36H2z"}))),vd=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",...t},x.createElement("g",{strokeLinecap:"round",strokeWidth:2,fill:"none",stroke:"currentColor",strokeLinejoin:"round",className:"nc-icon-wrapper"},x.createElement("path",{d:"M3 9h42v36H3zm7-6h28"}),x.createElement("path",{d:"m10 38 7-10 5 4 8-11 9 17H10z"}),x.createElement("circle",{cx:17,cy:19,r:3})));var Io=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wd(t){var e=t.default;if(typeof e=="function"){var n=function(){return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}),n}var Xn={exports:{}},qn={};/**
3
3
  * @license React
4
4
  * react-jsx-runtime.production.min.js
5
5
  *
@@ -7,49 +7,49 @@
7
7
  *
8
8
  * This source code is licensed under the MIT license found in the
9
9
  * LICENSE file in the root directory of this source tree.
10
- */var yd=S.default,kd=Symbol.for("react.element"),Cd=Symbol.for("react.fragment"),Nd=Object.prototype.hasOwnProperty,Ed=yd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Td={key:!0,ref:!0,__self:!0,__source:!0};function Io(t,e,n){var r,i={},o=null,l=null;n!==void 0&&(o=""+n),e.key!==void 0&&(o=""+e.key),e.ref!==void 0&&(l=e.ref);for(r in e)Nd.call(e,r)&&!Td.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)i[r]===void 0&&(i[r]=e[r]);return{$$typeof:kd,type:t,key:o,ref:l,props:i,_owner:Ed.current}}qn.Fragment=Cd,qn.jsx=Io,qn.jsxs=Io,function(t){t.exports=qn}(Xn);const Pt=Xn.exports.Fragment,h=Xn.exports.jsx,B=Xn.exports.jsxs,Sd=Object.freeze(Object.defineProperty({__proto__:null,Fragment:Pt,jsx:h,jsxs:B},Symbol.toStringTag,{value:"Module"})),bd=()=>{return B("div",{className:"koenig-lexical",children:[h(t,{label:"Text toolbar"}),h(e,{}),h(t,{label:"Image toolbar"}),h(n,{}),h(t,{label:"Gallery toolbar"}),h(r,{}),h(t,{label:"Plus menu"}),h(l,{}),h(t,{label:"Card menu"}),h(s,{}),h(t,{label:"Divider card"}),h("div",{className:"relative max-w-[740px]",children:h(u,{})}),h(t,{label:"Code block"}),h("div",{className:"relative max-w-[740px]",children:h(g,{})}),h(t,{label:"Image card"}),h("div",{className:"relative max-w-[740px]",children:h(m,{})}),h(t,{label:"Gallery card"}),h("div",{className:"relative max-w-[1172px]",children:h(C,{})})]});function t({label:E}){return h("h3",{className:"mb-4 mt-20 text-xl font-bold first-of-type:mt-8",children:E})}function e(){return h("div",{className:"max-w-fit",children:B("ul",{className:"m-0 flex items-center justify-evenly rounded bg-black px-1 py-0 font-sans text-md font-normal text-white",children:[h(i,{label:"Format text as bold",Icon:ko}),h(i,{label:"Format text as italics",Icon:Co}),h(i,{label:"Toggle heading 1",Icon:No}),h(i,{label:"Toggle heading 2",Icon:Eo}),h(o,{}),h(i,{label:"Toggle blockquote",Icon:To}),h(i,{label:"Insert link",Icon:jr}),h(o,{}),h(i,{label:"Save as snippet",Icon:Jn})]})})}function n(){return h("div",{className:"max-w-fit",children:B("ul",{className:"m-0 flex items-center justify-evenly rounded bg-black px-1 py-0 font-sans text-md font-normal text-white",children:[h(i,{label:"Set image to regular",Icon:So}),h(i,{label:"Set image to wide",Icon:bo}),h(i,{label:"Set image to full",Icon:Ro}),h(o,{}),h(i,{label:"Insert link",Icon:jr}),h(i,{label:"Replace image",Icon:Oo}),h(o,{}),h(i,{label:"Save as snippet",Icon:Jn})]})})}function r(){return h("div",{className:"max-w-fit",children:B("ul",{className:"m-0 flex items-center justify-evenly rounded bg-black px-1 py-0 font-sans text-md font-normal text-white",children:[h(i,{label:"Add image",Icon:$o}),h(o,{}),h(i,{label:"Save as snippet",Icon:Jn})]})})}function i({label:E,Icon:p,...v}){return h("li",{className:"m-0 flex p-0 first:m-0",...v,children:h("div",{type:"button",className:"flex h-9 w-9 items-center justify-center",children:h(p,{className:"fill-white"})})})}function o(){return h("li",{className:"m-0 mx-1 h-5 w-px bg-grey-900"})}function l(){return h("button",{type:"button","aria-label":"Add a card",className:"group relative flex h-7 w-7 cursor-pointer items-center justify-center rounded-full border border-grey bg-white transition-all ease-linear hover:border-grey-900 md:h-9 md:w-9",children:h(Mo,{className:"h-4 w-4 stroke-grey-800 stroke-2 group-hover:stroke-grey-900"})})}function s(){return B("div",{className:"z-[9999999] m-0 mb-3 max-h-[376px] w-[312px] flex-col overflow-y-auto rounded-lg bg-white bg-clip-padding p-0 pt-0 text-sm shadow",children:[h(a,{label:"Primary"}),h(c,{label:"Image",desc:"Upload, or embed with /image [url]",Icon:Ao}),h(c,{label:"Markdown",desc:"Insert a Markdown editor card",Icon:Gc}),h(c,{label:"HTML",desc:"Insert a raw HTML card",Icon:Zc}),h(c,{label:"Gallery",desc:"Create an image gallery",Icon:Jc}),h(c,{label:"Divider",desc:"Insert a dividing line",Icon:Do}),h(c,{label:"Bookmark",desc:"Embed a link as a visual bookmark",Icon:Xc}),h(c,{label:"Email content",desc:"Only visible when delivered by email",Icon:qc}),h(c,{label:"Email call to action",desc:"Target free or paid members with a CTA",Icon:Qc}),h(c,{label:"Public preview",desc:"Attract signups with a public intro",Icon:ed}),h(c,{label:"Button",desc:"Add a button to your post",Icon:td}),h(c,{label:"Callout",desc:"Info boxes that stand out",Icon:nd}),h(c,{label:"GIF",desc:"Search and embed gifs",Icon:rd}),h(c,{label:"Toggle",desc:"Add collapsible content",Icon:id}),h(c,{label:"Video",desc:"Upload and play a video",Icon:od}),h(c,{label:"Audio",desc:"Upload and play an audio file",Icon:ld}),h(c,{label:"File",desc:"Upload a downloadable file",Icon:sd}),h(c,{label:"Product",desc:"Add a product recommendation",Icon:ad}),h(c,{label:"Header",desc:"Add a bold section header",Icon:cd}),h(a,{label:"Embed"}),h(c,{label:"YouTube",desc:"/youtube [video url]",Icon:dd}),h(c,{label:"Twitter",desc:"/twitter [tweet url]",Icon:ud}),h(c,{label:"Unsplash",desc:"/unsplash [search-term or url]",Icon:Yr}),h(c,{label:"Vimeo",desc:"/vimeo [video url]",Icon:gd}),h(c,{label:"CodePen",desc:"/codepen [pen url]",Icon:hd}),h(c,{label:"Spotify",desc:"/spotify [track or playlist url]",Icon:fd}),h(c,{label:"SoundCloud",desc:"/soundcloud [track or playlist url]",Icon:pd}),h(c,{label:"NFT",desc:"/nft [opensea url]",Icon:md}),h(c,{label:"Other...",desc:"/embed [url]",Icon:xd}),h(a,{label:"Snippets"}),h(d,{label:"A random snippet",Icon:_d})]})}function a({label:E,...p}){return h("div",{className:"mb-2 flex shrink-0 flex-col justify-center px-4 pt-3 text-xs font-medium uppercase tracking-[.06rem] text-grey",style:{minWidth:"calc(100% - 3.2rem)"},...p,children:E})}function c({label:E,desc:p,Icon:v,...T}){return B("div",{className:"flex cursor-pointer flex-row items-center border border-transparent px-4 py-2 text-grey-800 hover:bg-grey-100",...T,children:[h("div",{className:"flex items-center",children:h(v,{className:"h-7 w-7"})}),B("div",{className:"flex flex-col",children:[h("div",{className:"m-0 ml-4 truncate text-[1.3rem] font-normal leading-[1.333em] tracking-[.02rem] text-grey-900",children:E}),h("div",{className:"m-0 ml-4 truncate text-xs font-normal leading-[1.333em] tracking-[.02rem] text-grey",children:p})]})]})}function d({label:E,Icon:p,...v}){return B("div",{className:"flex cursor-pointer flex-row items-center border border-transparent px-4 py-2 text-grey-800 hover:bg-grey-100",...v,children:[h("div",{className:"flex items-center",children:h(p,{className:"h-7 w-7"})}),h("div",{className:"flex flex-col",children:h("div",{className:"m-0 ml-4 truncate text-[1.3rem] font-normal leading-[1.333em] tracking-[.02rem] text-grey-900",children:E})})]})}function u(){return h("div",{children:h("hr",{className:"block h-[1px] border-0 border-t border-grey-300"})})}function g(){return B("div",{className:"border-2 border-green",children:[h("div",{className:"rounded bg-grey-50 px-3 py-2",children:h("textarea",{className:"w-full resize-none bg-grey-50 font-mono text-[1.7rem]"})}),h(_,{placeholder:"Type caption for code block (optional)"})]})}function m(){const[E,p]=re.useState(!1),[v,T]=re.useState(!1),N=()=>{p(!E)},k=R=>{R.stopPropagation(),T(!v)};return E?B("div",{className:`border border-transparent ${E?"shadow-[0_0_0_2px_#30cf43]":"hover:shadow-[0_0_0_1px_#30cf43]"}`,onClick:N,children:[h(f,{desc:"Click to select an image",Icon:Vr}),h(_,{placeholder:"Type caption for image (optional)"}),h("button",{className:`absolute bottom-0 right-0 m-3 cursor-pointer rounded border px-1 text-[1.3rem] font-normal leading-7 tracking-wide transition-all duration-100 ${v?"border-green bg-green text-white":"border-grey text-grey"} `,onClick:R=>k(R),children:"Alt"})]}):h("div",{className:`border border-transparent ${E?"shadow-[0_0_0_2px_#30cf43]":"hover:shadow-[0_0_0_1px_#30cf43]"}`,onClick:N,children:h(f,{desc:"Click to select an image",Icon:Vr})})}function f({desc:E,Icon:p,...v}){return B("div",{className:"relative",children:[h("figure",{className:"cursor-pointer border border-transparent",...v,children:h("div",{className:"h-100 relative flex items-center justify-center border border-grey-100 bg-grey-50 before:pb-[62.5%]",children:B("button",{className:"group flex flex-col items-center justify-center p-20",children:[h(p,{className:"h-32 w-32 opacity-80 transition-all ease-linear group-hover:scale-105 group-hover:opacity-100"}),h("p",{className:"mt-4 text-sm font-normal text-grey-700 group-hover:text-grey-800",children:E})]})})}),h("form",{children:h("input",{type:"file",accept:"image/*",name:"image",hidden:!0})})]})}function _({placeholder:E}){return h("input",{className:"not-kg-prose w-full p-2 text-center font-sans text-sm font-normal tracking-wide text-grey-900",placeholder:E})}function C(){return B("div",{className:"border-2 border-green",children:[h(f,{desc:"Click to select up to 9 images",Icon:vd}),h(_,{placeholder:"Type caption for gallery (optional)"})]})}};var Po={},Qn={},Fo=S.default;let zo=Fo.createContext(null);Qn.LexicalComposerContext=zo,Qn.createLexicalComposerContext=function(t,e){let n=null;return t!=null&&(n=t[1]),{getTheme:function(){return e!=null?e:n!=null?n.getTheme():null}}},Qn.useLexicalComposerContext=function(){let t=Fo.useContext(zo);if(t==null)throw Error("Minified Lexical error #8; visit https://lexical.dev/docs/error?code=8 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");return t};var ie=Qn,b={};let Bo={},Ho={},cn={},dn={},Gr={},Ft={},Zr={},Jr={},un={},gn={},ot={},Xr={},qr={},Ko={},Wo={},Uo={},jo={},Yo={},Vo={},er={},Go={},Zo={},Jo={},Xo={},qo={},Qo={},el={},tl={},nl={},Qr={},ei={},rl={},il={},ol={};function A(t){throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?code=${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let Ee=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Rd=Ee&&"documentMode"in document?document.documentMode:null,be=Ee&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),mt=Ee&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Od=Ee&&"InputEvent"in window&&!Rd?"getTargetRanges"in new window.InputEvent("input"):!1,ti=Ee&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),ni=Ee&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,tr=ti||ni?"\xA0":"\u200B",$d=mt?"\xA0":tr,Md=/^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]/,Ad=/^[^\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]/,xt={bold:1,code:16,italic:2,strikethrough:4,subscript:32,superscript:64,underline:8},Dd={directionless:1,unmergeable:2},ll={center:2,justify:4,left:1,right:3},Ld={2:"center",4:"justify",1:"left",3:"right"},Id={normal:0,segmented:2,token:1},Pd={0:"normal",2:"segmented",1:"token"},ri=!1,ii=0;function Fd(t){ii=t.timeStamp}function oi(t,e,n){return e.__lexicalLineBreak===t||t[`__lexicalKey_${n._key}`]!==void 0}function zd(t){return t.getEditorState().read(()=>{let e=Z();return e!==null?e.clone():null})}function sl(t,e,n){ri=!0;let r=100<performance.now()-ii;try{$e(t,()=>{let i=Z()||zd(t);var o=new Map,l=t.getRootElement(),s=t._editorState;let a=!1,c="";for(var d=0;d<e.length;d++){var u=e[d],g=u.type,m=u.target,f=hn(m,s);if(!(f===null&&m!==l||ee(f))){if(g==="characterData"){if(u=r&&L(f))e:{u=i,g=m;var _=f;if(H(u)){var C=u.anchor.getNode();if(C.is(_)&&u.format!==C.getFormat()){u=!1;break e}}u=g.nodeType===3&&_.isAttached()}u&&(_=Ee?window.getSelection():null,g=u=null,_!==null&&_.anchorNode===m&&(u=_.anchorOffset,g=_.focusOffset),m=m.nodeValue,m!==null&&ai(f,m,u,g,!1))}else if(g==="childList"){for(a=!0,g=u.addedNodes,_=0;_<g.length;_++){C=g[_];var E=fl(C),p=C.parentNode;p==null||E!==null||C.nodeName==="BR"&&oi(C,p,t)||(mt&&(E=C.innerText||C.nodeValue)&&(c+=E),p.removeChild(C))}if(u=u.removedNodes,g=u.length,0<g){for(_=0,C=0;C<g;C++)p=u[C],p.nodeName==="BR"&&oi(p,m,t)&&(m.appendChild(p),_++);g!==_&&(m===l&&(f=s._nodeMap.get("root")),o.set(m,f))}}}}if(0<o.size)for(let[v,T]of o)if(O(T))for(o=T.__children,l=v.firstChild,s=0;s<o.length;s++)d=t.getElementByKey(o[s]),d!==null&&(l==null?(v.appendChild(d),l=d):l!==d&&v.replaceChild(d,l),l=l.nextSibling);else L(T)&&T.markDirty();if(o=n.takeRecords(),0<o.length){for(l=0;l<o.length;l++)for(d=o[l],s=d.addedNodes,d=d.target,f=0;f<s.length;f++)m=s[f],u=m.parentNode,u==null||m.nodeName!=="BR"||oi(m,d,t)||u.removeChild(m);n.takeRecords()}i!==null&&(a&&(i.dirty=!0,_t(i)),mt&&kl(t)&&i.insertRawText(c))})}finally{ri=!1}}function al(t){let e=t._observer;if(e!==null){let n=e.takeRecords();sl(t,n,e)}}function cl(t){ii===0&&sr(t).addEventListener("textInput",Fd,!0),t._observer=new MutationObserver((e,n)=>{sl(t,e,n)})}let Bd=1,Hd=typeof queueMicrotask=="function"?queueMicrotask:t=>{Promise.resolve().then(t)};function nr(t,e,n){let r=t.getRootElement();try{var i;if(i=r!==null&&r.contains(e)&&r.contains(n)&&e!==null){let o=document.activeElement,l=o!==null?o.nodeName:null;i=!ee(hn(e))||l!=="INPUT"&&l!=="TEXTAREA"}return i&&dl(e)===t}catch{return!1}}function dl(t){for(;t!=null;){let e=t.__lexicalEditor;if(e!=null)return e;t=t.parentNode}return null}function li(t){return t.isToken()||t.isSegmented()}function rr(t){for(;t!=null;){if(t.nodeType===3)return t;t=t.firstChild}return null}function ul(t,e,n){return e=xt[e],t&e&&(n===null||(n&e)===0)?t^e:n===null||n&e?t|e:t}function gl(t){return L(t)||Rn(t)||ee(t)}function hl(t,e){if(e!=null)t.__key=e;else{Re(),99<Tn&&A(14),e=oe();var n=Ye(),r=""+Bd++;n._nodeMap.set(r,t),O(t)?e._dirtyElements.set(r,!0):e._dirtyLeaves.add(r),e._cloneNotNeeded.add(r),e._dirtyType=1,t.__key=r}}function ir(t){var e=t.getParent();if(e!==null){e=e.getWritable().__children;let n=e.indexOf(t.__key);n===-1&&A(31),Bt(t),e.splice(n,1)}}function zt(t){99<Tn&&A(14);var e=t.getLatest(),n=e.__parent,r=Ye();let i=oe(),o=r._nodeMap;if(r=i._dirtyElements,n!==null)e:for(;n!==null;){if(r.has(n))break e;let l=o.get(n);if(l===void 0)break;r.set(n,!1),n=l.__parent}e=e.__key,i._dirtyType=1,O(t)?r.set(e,!0):i._dirtyLeaves.add(e)}function Bt(t){let e=t.getPreviousSibling();t=t.getNextSibling(),e!==null&&zt(e),t!==null&&zt(t)}function he(t){Re();var e=oe();let n=e._compositionKey;t!==n&&(e._compositionKey=t,n!==null&&(e=q(n),e!==null&&e.getWritable()),t!==null&&(t=q(t),t!==null&&t.getWritable()))}function lt(){return ae?null:oe()._compositionKey}function q(t,e){return t=(e||Ye())._nodeMap.get(t),t===void 0?null:t}function fl(t,e){let n=oe();return t=t[`__lexicalKey_${n._key}`],t!==void 0?q(t,e):null}function hn(t,e){for(;t!=null;){let n=fl(t,e);if(n!==null)return n;t=t.parentNode}return null}function pl(t){let e=Object.assign({},t._decorators);return t._pendingDecorators=e}function ml(t){return t.read(()=>st().getTextContent())}function Kd(t,e){$e(t,()=>{var n=Ye();if(!n.isEmpty())if(e==="root")st().markDirty();else{n=n._nodeMap;for(let[,r]of n)r.markDirty()}},t._pendingEditorState===null?{tag:"history-merge"}:void 0)}function st(){return Ye()._nodeMap.get("root")}function _t(t){let e=Ye();t!==null&&(t.dirty=!0,t._cachedNodes=null),e._selection=t}function Ht(t){var e=oe(),n;e:{for(n=t;n!=null;){let r=n[`__lexicalKey_${e._key}`];if(r!==void 0){n=r;break e}n=n.parentNode}n=null}return n===null?(e=e.getRootElement(),t===e?q("root"):null):q(n)}function xl(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function si(t){let e=[];for(;t!==null;)e.push(t),t=t._parentEditor;return e}function _l(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function vl(t,e){var n=Ee?window.getSelection():null;if(n!==null){var r=n.anchorNode,{anchorOffset:i,focusOffset:o}=n;if(r!==null&&r.nodeType===3&&(n=hn(r),L(n))){if(r=r.nodeValue,r===tr&&e){let l=e.length;r=e,o=i=l}r!==null&&ai(n,r,i,o,t)}}}function ai(t,e,n,r,i){let o=t;if(o.isAttached()&&(i||!o.isDirty())){var l=o.isComposing();if(t=e,(l||i)&&e[e.length-1]===tr&&(t=e.slice(0,-1)),e=o.getTextContent(),i||t!==e)if(t==="")if(he(null),ti||ni)o.remove();else{let s=oe();setTimeout(()=>{s.update(()=>{o.isAttached()&&o.remove()})},20)}else i=o.getParent(),e=En(),o.isToken()||lt()!==null&&!l||i!==null&&H(e)&&!i.canInsertTextBefore()&&e.anchor.offset===0?o.markDirty():(l=Z(),H(l)&&n!==null&&r!==null&&(l.setTextNodeRange(o,n,o,r),o.isSegmented()&&(n=o.getTextContent(),n=fe(n),o.replace(n),o=n)),o.setTextContent(t))}}function Wd(t,e){if(e.isSegmented())return!0;if(!t.isCollapsed())return!1;t=t.anchor.offset;let n=e.getParentOrThrow(),r=e.isToken();return t===0?((t=!e.canInsertTextBefore()||!n.canInsertTextBefore()||r)||(e=e.getPreviousSibling(),t=(L(e)||O(e)&&e.isInline())&&!e.canInsertTextAfter()),t):t===e.getTextContentSize()?!e.canInsertTextAfter()||!n.canInsertTextAfter()||r:!1}function wl(t,e){let n=t.anchor,r=t.focus,i=n.getNode();var o=Ee?window.getSelection():null;o=o!==null?o.anchorNode:null;let l=n.key,s=oe().getElementByKey(l),a=e.length;return l!==r.key||!L(i)||(2>a||xl(e))&&n.offset!==r.offset&&!i.isComposing()||li(i)||i.isDirty()&&1<a||s!==null&&!i.isComposing()&&o!==rr(s)||i.getFormat()!==t.format||Wd(t,i)}function fn(t,e){var n=t[e];return typeof n=="string"?(n=n.split(" "),t[e]=n):n}function ci(t,e,n,r,i){n.size!==0&&(n=r.__key,e=e.get(r.__type),e===void 0&&A(33),e=e.klass,r=t.get(e),r===void 0&&(r=new Map,t.set(e,r)),r.has(n)||r.set(n,i))}function yl(t,e,n){let r=t.getParent(),i=n;return r!==null&&(e&&n===0?(i=t.getIndexWithinParent(),t=r):e||n!==t.getChildrenSize()||(i=t.getIndexWithinParent()+1,t=r)),t.getChildAtIndex(e?i-1:i)}function di(t,e){var n=t.offset;return t.type==="element"?(t=t.getNode(),yl(t,e,n)):(t=t.getNode(),e&&n===0||!e&&n===t.getTextContentSize()?(n=e?t.getPreviousSibling():t.getNextSibling(),n===null?yl(t.getParentOrThrow(),e,t.getIndexWithinParent()+(e?0:1)):n):null)}function kl(t){return t=(t=sr(t).event)&&t.inputType,t==="insertFromPaste"||t==="insertFromPasteAsQuotation"}function ui(t){return!Me(t)&&!t.isLastChild()&&!t.isInline()}function or(t,e){return t=t._keyToDOMMap.get(e),t===void 0&&A(75),t}function Ud(t,e=0){if(e!==0&&A(1),e=Z(),!H(e)||!O(t))return e;let{anchor:n,focus:r}=e,i=n.getNode(),o=r.getNode();return lr(i,t)&&n.set(t.__key,0,"element"),lr(o,t)&&r.set(t.__key,0,"element"),e}function lr(t,e){for(t=t.getParent();t!==null;){if(t.is(e))return!0;t=t.getParent()}return!1}function sr(t){return t=t._window,t===null&&A(78),t}function Cl(t){for(t=t.getParentOrThrow();t!==null&&!at(t);)t=t.getParentOrThrow();return t}function at(t){return Me(t)||O(t)&&t.isShadowRoot()}function ar(t){var e=oe();let n=t.constructor.getType();return e=e._nodes.get(n),e===void 0&&A(97),e=e.replace,e!==null?(e=e(t),e instanceof t.constructor||A(98),e):t}function gi(t,e){if(t=t.getParent(),Me(t)&&!O(e)&&!ee(e))throw Error("Only element or decorator nodes can be inserted in to the root node")}function Nl(t,e,n,r,i){t=t.__children;let o=t.length;for(let l=0;l<o;l++){let s=t[l],a=r.get(s);a!==void 0&&a.__parent===e&&(O(a)&&Nl(a,s,n,r,i),n.has(s)||i.delete(s),r.delete(s))}}function jd(t,e,n,r){t=t._nodeMap,e=e._nodeMap;for(let i of n){let o=e.get(i);o===void 0||o.isAttached()||(t.has(i)||n.delete(i),e.delete(i))}for(let[i]of r)n=e.get(i),n===void 0||n.isAttached()||(O(n)&&Nl(n,i,t,e,r),t.has(i)||r.delete(i),e.delete(i))}function El(t,e){let n=t.__mode,r=t.__format;t=t.__style;let i=e.__mode,o=e.__format;return e=e.__style,(n===null||n===i)&&(r===null||r===o)&&(t===null||t===e)}function Tl(t,e){let n=t.mergeWithSibling(e),r=oe()._normalizedNodes;return r.add(t.__key),r.add(e.__key),n}function Sl(t){if(t.__text===""&&t.isSimpleText()&&!t.isUnmergeable())t.remove();else{for(var e;(e=t.getPreviousSibling())!==null&&L(e)&&e.isSimpleText()&&!e.isUnmergeable();)if(e.__text==="")e.remove();else{El(e,t)&&(t=Tl(e,t));break}for(var n;(n=t.getNextSibling())!==null&&L(n)&&n.isSimpleText()&&!n.isUnmergeable();)if(n.__text==="")n.remove();else{El(t,n)&&Tl(t,n);break}}}function bl(t){return Rl(t.anchor),Rl(t.focus),t}function Rl(t){for(;t.type==="element";){var e=t.getNode(),n=t.offset;if(n===e.getChildrenSize()?(e=e.getChildAtIndex(n-1),n=!0):(e=e.getChildAtIndex(n),n=!1),L(e)){t.set(e.__key,n?e.getTextContentSize():0,"text");break}else if(!O(e))break;t.set(e.__key,n?e.getChildrenSize():0,"element")}}let ue="",Te="",Xe="",vt,Se,pn,Ol=!1,hi=!1,cr,dr=null,fi,pi,mn,Kt,mi,xn;function ur(t,e){let n=mn.get(t);if(e!==null){let r=vi(t);e.removeChild(r)}Kt.has(t)||Se._keyToDOMMap.delete(t),O(n)&&(t=n.__children,xi(t,0,t.length-1,null)),n!==void 0&&ci(xn,pn,cr,n,"destroyed")}function xi(t,e,n,r){for(;e<=n;++e){let i=t[e];i!==void 0&&ur(i,r)}}function _n(t,e){t.setProperty("text-align",e)}function $l(t,e){t.style.setProperty("padding-inline-start",e===0?"":20*e+"px")}function Ml(t,e){t=t.style,e===0?_n(t,""):e===1?_n(t,"left"):e===2?_n(t,"center"):e===3?_n(t,"right"):e===4&&_n(t,"justify")}function gr(t,e,n){let r=Kt.get(t);r===void 0&&A(60);let i=r.createDOM(vt,Se);var o=Se._keyToDOMMap;if(i["__lexicalKey_"+Se._key]=t,o.set(t,i),L(r)?i.setAttribute("data-lexical-text","true"):ee(r)&&i.setAttribute("data-lexical-decorator","true"),O(r)){t=r.__indent,t!==0&&$l(i,t),t=r.__children;var l=t.length;if(l!==0){o=t,--l;let s=Te;Te="",_i(o,0,l,i,null),Ll(r,i),Te=s}o=r.__format,o!==0&&Ml(i,o),r.isInline()||Dl(null,t,i),ui(r)&&(ue+=`
10
+ */var yd=S.default,kd=Symbol.for("react.element"),Cd=Symbol.for("react.fragment"),Nd=Object.prototype.hasOwnProperty,Ed=yd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Td={key:!0,ref:!0,__self:!0,__source:!0};function Po(t,e,n){var r,i={},o=null,l=null;n!==void 0&&(o=""+n),e.key!==void 0&&(o=""+e.key),e.ref!==void 0&&(l=e.ref);for(r in e)Nd.call(e,r)&&!Td.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)i[r]===void 0&&(i[r]=e[r]);return{$$typeof:kd,type:t,key:o,ref:l,props:i,_owner:Ed.current}}qn.Fragment=Cd,qn.jsx=Po,qn.jsxs=Po,function(t){t.exports=qn}(Xn);const Pt=Xn.exports.Fragment,h=Xn.exports.jsx,B=Xn.exports.jsxs,Sd=Object.freeze(Object.defineProperty({__proto__:null,Fragment:Pt,jsx:h,jsxs:B},Symbol.toStringTag,{value:"Module"})),bd=()=>{return B("div",{className:"koenig-lexical",children:[h(t,{label:"Text toolbar"}),h(e,{}),h(t,{label:"Image toolbar"}),h(n,{}),h(t,{label:"Gallery toolbar"}),h(r,{}),h(t,{label:"Plus menu"}),h(l,{}),h(t,{label:"Card menu"}),h(s,{}),h(t,{label:"Divider card"}),h("div",{className:"relative max-w-[740px]",children:h(u,{})}),h(t,{label:"Code block"}),h("div",{className:"relative max-w-[740px]",children:h(g,{})}),h(t,{label:"Image card"}),h("div",{className:"relative max-w-[740px]",children:h(m,{})}),h(t,{label:"Gallery card"}),h("div",{className:"relative max-w-[1172px]",children:h(C,{})})]});function t({label:E}){return h("h3",{className:"mb-4 mt-20 text-xl font-bold first-of-type:mt-8",children:E})}function e(){return h("div",{className:"max-w-fit",children:B("ul",{className:"m-0 flex items-center justify-evenly rounded bg-black px-1 py-0 font-sans text-md font-normal text-white",children:[h(i,{label:"Format text as bold",Icon:Co}),h(i,{label:"Format text as italics",Icon:No}),h(i,{label:"Toggle heading 1",Icon:Eo}),h(i,{label:"Toggle heading 2",Icon:To}),h(o,{}),h(i,{label:"Toggle blockquote",Icon:So}),h(i,{label:"Insert link",Icon:jr}),h(o,{}),h(i,{label:"Save as snippet",Icon:Jn})]})})}function n(){return h("div",{className:"max-w-fit",children:B("ul",{className:"m-0 flex items-center justify-evenly rounded bg-black px-1 py-0 font-sans text-md font-normal text-white",children:[h(i,{label:"Set image to regular",Icon:bo}),h(i,{label:"Set image to wide",Icon:Ro}),h(i,{label:"Set image to full",Icon:Oo}),h(o,{}),h(i,{label:"Insert link",Icon:jr}),h(i,{label:"Replace image",Icon:$o}),h(o,{}),h(i,{label:"Save as snippet",Icon:Jn})]})})}function r(){return h("div",{className:"max-w-fit",children:B("ul",{className:"m-0 flex items-center justify-evenly rounded bg-black px-1 py-0 font-sans text-md font-normal text-white",children:[h(i,{label:"Add image",Icon:Mo}),h(o,{}),h(i,{label:"Save as snippet",Icon:Jn})]})})}function i({label:E,Icon:p,...w}){return h("li",{className:"m-0 flex p-0 first:m-0",...w,children:h("div",{type:"button",className:"flex h-9 w-9 items-center justify-center",children:h(p,{className:"fill-white"})})})}function o(){return h("li",{className:"m-0 mx-1 h-5 w-px bg-grey-900"})}function l(){return h("button",{type:"button","aria-label":"Add a card",className:"group relative flex h-7 w-7 cursor-pointer items-center justify-center rounded-full border border-grey bg-white transition-all ease-linear hover:border-grey-900 md:h-9 md:w-9",children:h(Ao,{className:"h-4 w-4 stroke-grey-800 stroke-2 group-hover:stroke-grey-900"})})}function s(){return B("div",{className:"z-[9999999] m-0 mb-3 max-h-[376px] w-[312px] flex-col overflow-y-auto rounded-lg bg-white bg-clip-padding p-0 pt-0 text-sm shadow",children:[h(a,{label:"Primary"}),h(c,{label:"Image",desc:"Upload, or embed with /image [url]",Icon:Do}),h(c,{label:"Markdown",desc:"Insert a Markdown editor card",Icon:Gc}),h(c,{label:"HTML",desc:"Insert a raw HTML card",Icon:Zc}),h(c,{label:"Gallery",desc:"Create an image gallery",Icon:Jc}),h(c,{label:"Divider",desc:"Insert a dividing line",Icon:Lo}),h(c,{label:"Bookmark",desc:"Embed a link as a visual bookmark",Icon:Xc}),h(c,{label:"Email content",desc:"Only visible when delivered by email",Icon:qc}),h(c,{label:"Email call to action",desc:"Target free or paid members with a CTA",Icon:Qc}),h(c,{label:"Public preview",desc:"Attract signups with a public intro",Icon:ed}),h(c,{label:"Button",desc:"Add a button to your post",Icon:td}),h(c,{label:"Callout",desc:"Info boxes that stand out",Icon:nd}),h(c,{label:"GIF",desc:"Search and embed gifs",Icon:rd}),h(c,{label:"Toggle",desc:"Add collapsible content",Icon:id}),h(c,{label:"Video",desc:"Upload and play a video",Icon:od}),h(c,{label:"Audio",desc:"Upload and play an audio file",Icon:ld}),h(c,{label:"File",desc:"Upload a downloadable file",Icon:sd}),h(c,{label:"Product",desc:"Add a product recommendation",Icon:ad}),h(c,{label:"Header",desc:"Add a bold section header",Icon:cd}),h(a,{label:"Embed"}),h(c,{label:"YouTube",desc:"/youtube [video url]",Icon:dd}),h(c,{label:"Twitter",desc:"/twitter [tweet url]",Icon:ud}),h(c,{label:"Unsplash",desc:"/unsplash [search-term or url]",Icon:Yr}),h(c,{label:"Vimeo",desc:"/vimeo [video url]",Icon:gd}),h(c,{label:"CodePen",desc:"/codepen [pen url]",Icon:hd}),h(c,{label:"Spotify",desc:"/spotify [track or playlist url]",Icon:fd}),h(c,{label:"SoundCloud",desc:"/soundcloud [track or playlist url]",Icon:pd}),h(c,{label:"NFT",desc:"/nft [opensea url]",Icon:md}),h(c,{label:"Other...",desc:"/embed [url]",Icon:xd}),h(a,{label:"Snippets"}),h(d,{label:"A random snippet",Icon:_d})]})}function a({label:E,...p}){return h("div",{className:"mb-2 flex shrink-0 flex-col justify-center px-4 pt-3 text-xs font-medium uppercase tracking-[.06rem] text-grey",style:{minWidth:"calc(100% - 3.2rem)"},...p,children:E})}function c({label:E,desc:p,Icon:w,...T}){return B("div",{className:"flex cursor-pointer flex-row items-center border border-transparent px-4 py-2 text-grey-800 hover:bg-grey-100",...T,children:[h("div",{className:"flex items-center",children:h(w,{className:"h-7 w-7"})}),B("div",{className:"flex flex-col",children:[h("div",{className:"m-0 ml-4 truncate text-[1.3rem] font-normal leading-[1.333em] tracking-[.02rem] text-grey-900",children:E}),h("div",{className:"m-0 ml-4 truncate text-xs font-normal leading-[1.333em] tracking-[.02rem] text-grey",children:p})]})]})}function d({label:E,Icon:p,...w}){return B("div",{className:"flex cursor-pointer flex-row items-center border border-transparent px-4 py-2 text-grey-800 hover:bg-grey-100",...w,children:[h("div",{className:"flex items-center",children:h(p,{className:"h-7 w-7"})}),h("div",{className:"flex flex-col",children:h("div",{className:"m-0 ml-4 truncate text-[1.3rem] font-normal leading-[1.333em] tracking-[.02rem] text-grey-900",children:E})})]})}function u(){return h("div",{children:h("hr",{className:"block h-[1px] border-0 border-t border-grey-300"})})}function g(){return B("div",{className:"border-2 border-green",children:[h("div",{className:"rounded bg-grey-50 px-3 py-2",children:h("textarea",{className:"w-full resize-none bg-grey-50 font-mono text-[1.7rem]"})}),h(_,{placeholder:"Type caption for code block (optional)"})]})}function m(){const[E,p]=re.useState(!1),[w,T]=re.useState(!1),N=()=>{p(!E)},k=R=>{R.stopPropagation(),T(!w)};return E?B("div",{className:`border border-transparent ${E?"shadow-[0_0_0_2px_#30cf43]":"hover:shadow-[0_0_0_1px_#30cf43]"}`,onClick:N,children:[h(f,{desc:"Click to select an image",Icon:Vr}),h(_,{placeholder:"Type caption for image (optional)"}),h("button",{className:`absolute bottom-0 right-0 m-3 cursor-pointer rounded border px-1 text-[1.3rem] font-normal leading-7 tracking-wide transition-all duration-100 ${w?"border-green bg-green text-white":"border-grey text-grey"} `,onClick:R=>k(R),children:"Alt"})]}):h("div",{className:`border border-transparent ${E?"shadow-[0_0_0_2px_#30cf43]":"hover:shadow-[0_0_0_1px_#30cf43]"}`,onClick:N,children:h(f,{desc:"Click to select an image",Icon:Vr})})}function f({desc:E,Icon:p,...w}){return B("div",{className:"relative",children:[h("figure",{className:"cursor-pointer border border-transparent",...w,children:h("div",{className:"h-100 relative flex items-center justify-center border border-grey-100 bg-grey-50 before:pb-[62.5%]",children:B("button",{className:"group flex flex-col items-center justify-center p-20",children:[h(p,{className:"h-32 w-32 opacity-80 transition-all ease-linear group-hover:scale-105 group-hover:opacity-100"}),h("p",{className:"mt-4 text-sm font-normal text-grey-700 group-hover:text-grey-800",children:E})]})})}),h("form",{children:h("input",{type:"file",accept:"image/*",name:"image",hidden:!0})})]})}function _({placeholder:E}){return h("input",{className:"not-kg-prose w-full p-2 text-center font-sans text-sm font-normal tracking-wide text-grey-900",placeholder:E})}function C(){return B("div",{className:"border-2 border-green",children:[h(f,{desc:"Click to select up to 9 images",Icon:vd}),h(_,{placeholder:"Type caption for gallery (optional)"})]})}};var Fo={},Qn={},zo=S.default;let Bo=zo.createContext(null);Qn.LexicalComposerContext=Bo,Qn.createLexicalComposerContext=function(t,e){let n=null;return t!=null&&(n=t[1]),{getTheme:function(){return e!=null?e:n!=null?n.getTheme():null}}},Qn.useLexicalComposerContext=function(){let t=zo.useContext(Bo);if(t==null)throw Error("Minified Lexical error #8; visit https://lexical.dev/docs/error?code=8 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");return t};var ie=Qn,b={};let Ho={},Ko={},cn={},dn={},Gr={},Ft={},Zr={},Jr={},un={},gn={},ot={},Xr={},qr={},Wo={},Uo={},jo={},Yo={},Vo={},Go={},er={},Zo={},Jo={},Xo={},qo={},Qo={},el={},tl={},nl={},rl={},Qr={},ei={},il={},ol={},ll={};function A(t){throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?code=${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let Ee=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Rd=Ee&&"documentMode"in document?document.documentMode:null,be=Ee&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),mt=Ee&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Od=Ee&&"InputEvent"in window&&!Rd?"getTargetRanges"in new window.InputEvent("input"):!1,ti=Ee&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),ni=Ee&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,tr=ti||ni?"\xA0":"\u200B",$d=mt?"\xA0":tr,Md=/^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]/,Ad=/^[^\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]/,xt={bold:1,code:16,italic:2,strikethrough:4,subscript:32,superscript:64,underline:8},Dd={directionless:1,unmergeable:2},sl={center:2,justify:4,left:1,right:3},Ld={2:"center",4:"justify",1:"left",3:"right"},Id={normal:0,segmented:2,token:1},Pd={0:"normal",2:"segmented",1:"token"},ri=!1,ii=0;function Fd(t){ii=t.timeStamp}function oi(t,e,n){return e.__lexicalLineBreak===t||t[`__lexicalKey_${n._key}`]!==void 0}function zd(t){return t.getEditorState().read(()=>{let e=Z();return e!==null?e.clone():null})}function al(t,e,n){ri=!0;let r=100<performance.now()-ii;try{$e(t,()=>{let i=Z()||zd(t);var o=new Map,l=t.getRootElement(),s=t._editorState;let a=!1,c="";for(var d=0;d<e.length;d++){var u=e[d],g=u.type,m=u.target,f=hn(m,s);if(!(f===null&&m!==l||ee(f))){if(g==="characterData"){if(u=r&&L(f))e:{u=i,g=m;var _=f;if(H(u)){var C=u.anchor.getNode();if(C.is(_)&&u.format!==C.getFormat()){u=!1;break e}}u=g.nodeType===3&&_.isAttached()}u&&(_=Ee?window.getSelection():null,g=u=null,_!==null&&_.anchorNode===m&&(u=_.anchorOffset,g=_.focusOffset),m=m.nodeValue,m!==null&&ai(f,m,u,g,!1))}else if(g==="childList"){for(a=!0,g=u.addedNodes,_=0;_<g.length;_++){C=g[_];var E=pl(C),p=C.parentNode;p==null||E!==null||C.nodeName==="BR"&&oi(C,p,t)||(mt&&(E=C.innerText||C.nodeValue)&&(c+=E),p.removeChild(C))}if(u=u.removedNodes,g=u.length,0<g){for(_=0,C=0;C<g;C++)p=u[C],p.nodeName==="BR"&&oi(p,m,t)&&(m.appendChild(p),_++);g!==_&&(m===l&&(f=s._nodeMap.get("root")),o.set(m,f))}}}}if(0<o.size)for(let[w,T]of o)if(O(T))for(o=T.__children,l=w.firstChild,s=0;s<o.length;s++)d=t.getElementByKey(o[s]),d!==null&&(l==null?(w.appendChild(d),l=d):l!==d&&w.replaceChild(d,l),l=l.nextSibling);else L(T)&&T.markDirty();if(o=n.takeRecords(),0<o.length){for(l=0;l<o.length;l++)for(d=o[l],s=d.addedNodes,d=d.target,f=0;f<s.length;f++)m=s[f],u=m.parentNode,u==null||m.nodeName!=="BR"||oi(m,d,t)||u.removeChild(m);n.takeRecords()}i!==null&&(a&&(i.dirty=!0,_t(i)),mt&&Cl(t)&&i.insertRawText(c))})}finally{ri=!1}}function cl(t){let e=t._observer;if(e!==null){let n=e.takeRecords();al(t,n,e)}}function dl(t){ii===0&&sr(t).addEventListener("textInput",Fd,!0),t._observer=new MutationObserver((e,n)=>{al(t,e,n)})}let Bd=1,Hd=typeof queueMicrotask=="function"?queueMicrotask:t=>{Promise.resolve().then(t)};function nr(t,e,n){let r=t.getRootElement();try{var i;if(i=r!==null&&r.contains(e)&&r.contains(n)&&e!==null){let o=document.activeElement,l=o!==null?o.nodeName:null;i=!ee(hn(e))||l!=="INPUT"&&l!=="TEXTAREA"}return i&&ul(e)===t}catch{return!1}}function ul(t){for(;t!=null;){let e=t.__lexicalEditor;if(e!=null)return e;t=t.parentNode}return null}function li(t){return t.isToken()||t.isSegmented()}function rr(t){for(;t!=null;){if(t.nodeType===3)return t;t=t.firstChild}return null}function gl(t,e,n){return e=xt[e],t&e&&(n===null||(n&e)===0)?t^e:n===null||n&e?t|e:t}function hl(t){return L(t)||Rn(t)||ee(t)}function fl(t,e){if(e!=null)t.__key=e;else{Re(),99<Tn&&A(14),e=oe();var n=Ve(),r=""+Bd++;n._nodeMap.set(r,t),O(t)?e._dirtyElements.set(r,!0):e._dirtyLeaves.add(r),e._cloneNotNeeded.add(r),e._dirtyType=1,t.__key=r}}function ir(t){var e=t.getParent();if(e!==null){e=e.getWritable().__children;let n=e.indexOf(t.__key);n===-1&&A(31),Bt(t),e.splice(n,1)}}function zt(t){99<Tn&&A(14);var e=t.getLatest(),n=e.__parent,r=Ve();let i=oe(),o=r._nodeMap;if(r=i._dirtyElements,n!==null)e:for(;n!==null;){if(r.has(n))break e;let l=o.get(n);if(l===void 0)break;r.set(n,!1),n=l.__parent}e=e.__key,i._dirtyType=1,O(t)?r.set(e,!0):i._dirtyLeaves.add(e)}function Bt(t){let e=t.getPreviousSibling();t=t.getNextSibling(),e!==null&&zt(e),t!==null&&zt(t)}function he(t){Re();var e=oe();let n=e._compositionKey;t!==n&&(e._compositionKey=t,n!==null&&(e=q(n),e!==null&&e.getWritable()),t!==null&&(t=q(t),t!==null&&t.getWritable()))}function lt(){return ae?null:oe()._compositionKey}function q(t,e){return t=(e||Ve())._nodeMap.get(t),t===void 0?null:t}function pl(t,e){let n=oe();return t=t[`__lexicalKey_${n._key}`],t!==void 0?q(t,e):null}function hn(t,e){for(;t!=null;){let n=pl(t,e);if(n!==null)return n;t=t.parentNode}return null}function ml(t){let e=Object.assign({},t._decorators);return t._pendingDecorators=e}function xl(t){return t.read(()=>st().getTextContent())}function Kd(t,e){$e(t,()=>{var n=Ve();if(!n.isEmpty())if(e==="root")st().markDirty();else{n=n._nodeMap;for(let[,r]of n)r.markDirty()}},t._pendingEditorState===null?{tag:"history-merge"}:void 0)}function st(){return Ve()._nodeMap.get("root")}function _t(t){let e=Ve();t!==null&&(t.dirty=!0,t._cachedNodes=null),e._selection=t}function Ht(t){var e=oe(),n;e:{for(n=t;n!=null;){let r=n[`__lexicalKey_${e._key}`];if(r!==void 0){n=r;break e}n=n.parentNode}n=null}return n===null?(e=e.getRootElement(),t===e?q("root"):null):q(n)}function _l(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function si(t){let e=[];for(;t!==null;)e.push(t),t=t._parentEditor;return e}function vl(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function wl(t,e){var n=Ee?window.getSelection():null;if(n!==null){var r=n.anchorNode,{anchorOffset:i,focusOffset:o}=n;if(r!==null&&r.nodeType===3&&(n=hn(r),L(n))){if(r=r.nodeValue,r===tr&&e){let l=e.length;r=e,o=i=l}r!==null&&ai(n,r,i,o,t)}}}function ai(t,e,n,r,i){let o=t;if(o.isAttached()&&(i||!o.isDirty())){var l=o.isComposing();if(t=e,(l||i)&&e[e.length-1]===tr&&(t=e.slice(0,-1)),e=o.getTextContent(),i||t!==e)if(t==="")if(he(null),ti||ni)o.remove();else{let s=oe();setTimeout(()=>{s.update(()=>{o.isAttached()&&o.remove()})},20)}else i=o.getParent(),e=En(),o.isToken()||lt()!==null&&!l||i!==null&&H(e)&&!i.canInsertTextBefore()&&e.anchor.offset===0?o.markDirty():(l=Z(),H(l)&&n!==null&&r!==null&&(l.setTextNodeRange(o,n,o,r),o.isSegmented()&&(n=o.getTextContent(),n=fe(n),o.replace(n),o=n)),o.setTextContent(t))}}function Wd(t,e){if(e.isSegmented())return!0;if(!t.isCollapsed())return!1;t=t.anchor.offset;let n=e.getParentOrThrow(),r=e.isToken();return t===0?((t=!e.canInsertTextBefore()||!n.canInsertTextBefore()||r)||(e=e.getPreviousSibling(),t=(L(e)||O(e)&&e.isInline())&&!e.canInsertTextAfter()),t):t===e.getTextContentSize()?!e.canInsertTextAfter()||!n.canInsertTextAfter()||r:!1}function yl(t,e){let n=t.anchor,r=t.focus,i=n.getNode();var o=Ee?window.getSelection():null;o=o!==null?o.anchorNode:null;let l=n.key,s=oe().getElementByKey(l),a=e.length;return l!==r.key||!L(i)||(2>a||_l(e))&&n.offset!==r.offset&&!i.isComposing()||li(i)||i.isDirty()&&1<a||s!==null&&!i.isComposing()&&o!==rr(s)||i.getFormat()!==t.format||Wd(t,i)}function fn(t,e){var n=t[e];return typeof n=="string"?(n=n.split(" "),t[e]=n):n}function ci(t,e,n,r,i){n.size!==0&&(n=r.__key,e=e.get(r.__type),e===void 0&&A(33),e=e.klass,r=t.get(e),r===void 0&&(r=new Map,t.set(e,r)),r.has(n)||r.set(n,i))}function kl(t,e,n){let r=t.getParent(),i=n;return r!==null&&(e&&n===0?(i=t.getIndexWithinParent(),t=r):e||n!==t.getChildrenSize()||(i=t.getIndexWithinParent()+1,t=r)),t.getChildAtIndex(e?i-1:i)}function di(t,e){var n=t.offset;return t.type==="element"?(t=t.getNode(),kl(t,e,n)):(t=t.getNode(),e&&n===0||!e&&n===t.getTextContentSize()?(n=e?t.getPreviousSibling():t.getNextSibling(),n===null?kl(t.getParentOrThrow(),e,t.getIndexWithinParent()+(e?0:1)):n):null)}function Cl(t){return t=(t=sr(t).event)&&t.inputType,t==="insertFromPaste"||t==="insertFromPasteAsQuotation"}function ui(t){return!Me(t)&&!t.isLastChild()&&!t.isInline()}function or(t,e){return t=t._keyToDOMMap.get(e),t===void 0&&A(75),t}function Ud(t,e=0){if(e!==0&&A(1),e=Z(),!H(e)||!O(t))return e;let{anchor:n,focus:r}=e,i=n.getNode(),o=r.getNode();return lr(i,t)&&n.set(t.__key,0,"element"),lr(o,t)&&r.set(t.__key,0,"element"),e}function lr(t,e){for(t=t.getParent();t!==null;){if(t.is(e))return!0;t=t.getParent()}return!1}function sr(t){return t=t._window,t===null&&A(78),t}function Nl(t){for(t=t.getParentOrThrow();t!==null&&!at(t);)t=t.getParentOrThrow();return t}function at(t){return Me(t)||O(t)&&t.isShadowRoot()}function ar(t){var e=oe();let n=t.constructor.getType();return e=e._nodes.get(n),e===void 0&&A(97),e=e.replace,e!==null?(e=e(t),e instanceof t.constructor||A(98),e):t}function gi(t,e){if(t=t.getParent(),Me(t)&&!O(e)&&!ee(e))throw Error("Only element or decorator nodes can be inserted in to the root node")}function El(t,e,n,r,i){t=t.__children;let o=t.length;for(let l=0;l<o;l++){let s=t[l],a=r.get(s);a!==void 0&&a.__parent===e&&(O(a)&&El(a,s,n,r,i),n.has(s)||i.delete(s),r.delete(s))}}function jd(t,e,n,r){t=t._nodeMap,e=e._nodeMap;for(let i of n){let o=e.get(i);o===void 0||o.isAttached()||(t.has(i)||n.delete(i),e.delete(i))}for(let[i]of r)n=e.get(i),n===void 0||n.isAttached()||(O(n)&&El(n,i,t,e,r),t.has(i)||r.delete(i),e.delete(i))}function Tl(t,e){let n=t.__mode,r=t.__format;t=t.__style;let i=e.__mode,o=e.__format;return e=e.__style,(n===null||n===i)&&(r===null||r===o)&&(t===null||t===e)}function Sl(t,e){let n=t.mergeWithSibling(e),r=oe()._normalizedNodes;return r.add(t.__key),r.add(e.__key),n}function bl(t){if(t.__text===""&&t.isSimpleText()&&!t.isUnmergeable())t.remove();else{for(var e;(e=t.getPreviousSibling())!==null&&L(e)&&e.isSimpleText()&&!e.isUnmergeable();)if(e.__text==="")e.remove();else{Tl(e,t)&&(t=Sl(e,t));break}for(var n;(n=t.getNextSibling())!==null&&L(n)&&n.isSimpleText()&&!n.isUnmergeable();)if(n.__text==="")n.remove();else{Tl(t,n)&&Sl(t,n);break}}}function Rl(t){return Ol(t.anchor),Ol(t.focus),t}function Ol(t){for(;t.type==="element";){var e=t.getNode(),n=t.offset;if(n===e.getChildrenSize()?(e=e.getChildAtIndex(n-1),n=!0):(e=e.getChildAtIndex(n),n=!1),L(e)){t.set(e.__key,n?e.getTextContentSize():0,"text");break}else if(!O(e))break;t.set(e.__key,n?e.getChildrenSize():0,"element")}}let ue="",Te="",Xe="",vt,Se,pn,$l=!1,hi=!1,cr,dr=null,fi,pi,mn,Kt,mi,xn;function ur(t,e){let n=mn.get(t);if(e!==null){let r=vi(t);e.removeChild(r)}Kt.has(t)||Se._keyToDOMMap.delete(t),O(n)&&(t=n.__children,xi(t,0,t.length-1,null)),n!==void 0&&ci(xn,pn,cr,n,"destroyed")}function xi(t,e,n,r){for(;e<=n;++e){let i=t[e];i!==void 0&&ur(i,r)}}function _n(t,e){t.setProperty("text-align",e)}function Ml(t,e){t.style.setProperty("padding-inline-start",e===0?"":20*e+"px")}function Al(t,e){t=t.style,e===0?_n(t,""):e===1?_n(t,"left"):e===2?_n(t,"center"):e===3?_n(t,"right"):e===4&&_n(t,"justify")}function gr(t,e,n){let r=Kt.get(t);r===void 0&&A(60);let i=r.createDOM(vt,Se);var o=Se._keyToDOMMap;if(i["__lexicalKey_"+Se._key]=t,o.set(t,i),L(r)?i.setAttribute("data-lexical-text","true"):ee(r)&&i.setAttribute("data-lexical-decorator","true"),O(r)){t=r.__indent,t!==0&&Ml(i,t),t=r.__children;var l=t.length;if(l!==0){o=t,--l;let s=Te;Te="",_i(o,0,l,i,null),Il(r,i),Te=s}o=r.__format,o!==0&&Al(i,o),r.isInline()||Ll(null,t,i),ui(r)&&(ue+=`
11
11
 
12
12
  `,Xe+=`
13
13
 
14
- `)}else o=r.getTextContent(),ee(r)?(l=r.decorate(Se,vt),l!==null&&Il(t,l),i.contentEditable="false"):L(r)&&(r.isDirectionless()||(Te+=o)),ue+=o,Xe+=o;return e!==null&&(n!=null?e.insertBefore(i,n):(n=e.__lexicalLineBreak,n!=null?e.insertBefore(i,n):e.appendChild(i))),ci(xn,pn,cr,r,"created"),i}function _i(t,e,n,r,i){let o=ue;for(ue="";e<=n;++e)gr(t[e],r,i);r.__lexicalTextContent=ue,ue=o+ue}function Al(t,e){return t=e.get(t[t.length-1]),Rn(t)||ee(t)&&t.isInline()}function Dl(t,e,n){t=t!==null&&(t.length===0||Al(t,mn)),e=e!==null&&(e.length===0||Al(e,Kt)),t?e||(e=n.__lexicalLineBreak,e!=null&&n.removeChild(e),n.__lexicalLineBreak=null):e&&(e=document.createElement("br"),n.__lexicalLineBreak=e,n.appendChild(e))}function Ll(t,e){var n=e.__lexicalDir;if(e.__lexicalDirTextContent!==Te||n!==dr){let o=Te==="";if(o)var r=dr;else r=Te,r=Md.test(r)?"rtl":Ad.test(r)?"ltr":null;if(r!==n){let l=e.classList,s=vt.theme;var i=n!==null?s[n]:void 0;let a=r!==null?s[r]:void 0;i!==void 0&&(typeof i=="string"&&(i=i.split(" "),i=s[n]=i),l.remove(...i)),r===null||o&&r==="ltr"?e.removeAttribute("dir"):(a!==void 0&&(typeof a=="string"&&(n=a.split(" "),a=s[r]=n),a!==void 0&&l.add(...a)),e.dir=r),hi||(t.getWritable().__dir=r)}dr=r,e.__lexicalDirTextContent=Te,e.__lexicalDir=r}}function vn(t,e){var n=mn.get(t),r=Kt.get(t);n!==void 0&&r!==void 0||A(61);var i=Ol||pi.has(t)||fi.has(t);let o=or(Se,t);if(n===r&&!i)return O(n)?(r=o.__lexicalTextContent,r!==void 0&&(ue+=r,Xe+=r),r=o.__lexicalDirTextContent,r!==void 0&&(Te+=r)):(r=n.getTextContent(),L(n)&&!n.isDirectionless()&&(Te+=r),Xe+=r,ue+=r),o;if(n!==r&&i&&ci(xn,pn,cr,r,"updated"),r.updateDOM(n,o,vt))return r=gr(t,null,null),e===null&&A(62),e.replaceChild(r,o),ur(t,null),r;if(O(n)&&O(r)){if(t=r.__indent,t!==n.__indent&&$l(o,t),t=r.__format,t!==n.__format&&Ml(o,t),t=n.__children,n=r.__children,t!==n||i){var l=t,s=n;i=r,e=Te,Te="";let m=ue;ue="";var a=l.length,c=s.length;if(a===1&&c===1){var d=l[0];if(s=s[0],d===s)vn(d,o);else{var u=vi(d);s=gr(s,null,null),o.replaceChild(s,u),ur(d,null)}}else if(a===0)c!==0&&_i(s,0,c-1,o,null);else if(c===0)a!==0&&(d=o.__lexicalLineBreak==null,xi(l,0,a-1,d?null:o),d&&(o.textContent=""));else{let f=a-1;a=c-1;let _=o.firstChild,C=0;for(c=0;C<=f&&c<=a;){var g=l[C];let E=s[c];if(g===E)_=vn(E,o).nextSibling,C++,c++;else{d===void 0&&(d=new Set(l)),u===void 0&&(u=new Set(s));let p=u.has(g),v=d.has(E);p?(v?(g=or(Se,E),g===_?_=vn(E,o).nextSibling:(_!=null?o.insertBefore(g,_):o.appendChild(g),vn(E,o)),C++):gr(E,o,_),c++):(_=vi(g).nextSibling,ur(g,o),C++)}}d=C>f,u=c>a,d&&!u?(d=s[a+1],d=d===void 0?null:Se.getElementByKey(d),_i(s,c,a,o,d)):u&&!d&&xi(l,C,f,o)}ui(i)&&(ue+=`
14
+ `)}else o=r.getTextContent(),ee(r)?(l=r.decorate(Se,vt),l!==null&&Pl(t,l),i.contentEditable="false"):L(r)&&(r.isDirectionless()||(Te+=o)),ue+=o,Xe+=o;return e!==null&&(n!=null?e.insertBefore(i,n):(n=e.__lexicalLineBreak,n!=null?e.insertBefore(i,n):e.appendChild(i))),ci(xn,pn,cr,r,"created"),i}function _i(t,e,n,r,i){let o=ue;for(ue="";e<=n;++e)gr(t[e],r,i);r.__lexicalTextContent=ue,ue=o+ue}function Dl(t,e){return t=e.get(t[t.length-1]),Rn(t)||ee(t)&&t.isInline()}function Ll(t,e,n){t=t!==null&&(t.length===0||Dl(t,mn)),e=e!==null&&(e.length===0||Dl(e,Kt)),t?e||(e=n.__lexicalLineBreak,e!=null&&n.removeChild(e),n.__lexicalLineBreak=null):e&&(e=document.createElement("br"),n.__lexicalLineBreak=e,n.appendChild(e))}function Il(t,e){var n=e.__lexicalDir;if(e.__lexicalDirTextContent!==Te||n!==dr){let o=Te==="";if(o)var r=dr;else r=Te,r=Md.test(r)?"rtl":Ad.test(r)?"ltr":null;if(r!==n){let l=e.classList,s=vt.theme;var i=n!==null?s[n]:void 0;let a=r!==null?s[r]:void 0;i!==void 0&&(typeof i=="string"&&(i=i.split(" "),i=s[n]=i),l.remove(...i)),r===null||o&&r==="ltr"?e.removeAttribute("dir"):(a!==void 0&&(typeof a=="string"&&(n=a.split(" "),a=s[r]=n),a!==void 0&&l.add(...a)),e.dir=r),hi||(t.getWritable().__dir=r)}dr=r,e.__lexicalDirTextContent=Te,e.__lexicalDir=r}}function vn(t,e){var n=mn.get(t),r=Kt.get(t);n!==void 0&&r!==void 0||A(61);var i=$l||pi.has(t)||fi.has(t);let o=or(Se,t);if(n===r&&!i)return O(n)?(r=o.__lexicalTextContent,r!==void 0&&(ue+=r,Xe+=r),r=o.__lexicalDirTextContent,r!==void 0&&(Te+=r)):(r=n.getTextContent(),L(n)&&!n.isDirectionless()&&(Te+=r),Xe+=r,ue+=r),o;if(n!==r&&i&&ci(xn,pn,cr,r,"updated"),r.updateDOM(n,o,vt))return r=gr(t,null,null),e===null&&A(62),e.replaceChild(r,o),ur(t,null),r;if(O(n)&&O(r)){if(t=r.__indent,t!==n.__indent&&Ml(o,t),t=r.__format,t!==n.__format&&Al(o,t),t=n.__children,n=r.__children,t!==n||i){var l=t,s=n;i=r,e=Te,Te="";let m=ue;ue="";var a=l.length,c=s.length;if(a===1&&c===1){var d=l[0];if(s=s[0],d===s)vn(d,o);else{var u=vi(d);s=gr(s,null,null),o.replaceChild(s,u),ur(d,null)}}else if(a===0)c!==0&&_i(s,0,c-1,o,null);else if(c===0)a!==0&&(d=o.__lexicalLineBreak==null,xi(l,0,a-1,d?null:o),d&&(o.textContent=""));else{let f=a-1;a=c-1;let _=o.firstChild,C=0;for(c=0;C<=f&&c<=a;){var g=l[C];let E=s[c];if(g===E)_=vn(E,o).nextSibling,C++,c++;else{d===void 0&&(d=new Set(l)),u===void 0&&(u=new Set(s));let p=u.has(g),w=d.has(E);p?(w?(g=or(Se,E),g===_?_=vn(E,o).nextSibling:(_!=null?o.insertBefore(g,_):o.appendChild(g),vn(E,o)),C++):gr(E,o,_),c++):(_=vi(g).nextSibling,ur(g,o),C++)}}d=C>f,u=c>a,d&&!u?(d=s[a+1],d=d===void 0?null:Se.getElementByKey(d),_i(s,c,a,o,d)):u&&!d&&xi(l,C,f,o)}ui(i)&&(ue+=`
15
15
 
16
- `),o.__lexicalTextContent=ue,ue=m+ue,Ll(i,o),Te=e,Me(r)||r.isInline()||Dl(t,n,o)}ui(r)&&(ue+=`
16
+ `),o.__lexicalTextContent=ue,ue=m+ue,Il(i,o),Te=e,Me(r)||r.isInline()||Ll(t,n,o)}ui(r)&&(ue+=`
17
17
 
18
18
  `,Xe+=`
19
19
 
20
- `)}else n=r.getTextContent(),ee(r)?(i=r.decorate(Se,vt),i!==null&&Il(t,i)):L(r)&&!r.isDirectionless()&&(Te+=n),ue+=n,Xe+=n;return!hi&&Me(r)&&r.__cachedText!==Xe&&(r=r.getWritable(),r.__cachedText=Xe),o}function Il(t,e){let n=Se._pendingDecorators,r=Se._decorators;if(n===null){if(r[t]===e)return;n=pl(Se)}n[t]=e}function vi(t){return t=mi.get(t),t===void 0&&A(75),t}let qe=Object.freeze({}),wi=[["keydown",eu],["mousedown",Vd],["compositionstart",qd],["compositionend",Qd],["input",Xd],["click",Yd],["cut",qe],["copy",qe],["dragstart",qe],["dragover",qe],["dragend",qe],["paste",qe],["focus",qe],["blur",qe],["drop",qe]];Od&&wi.push(["beforeinput",(t,e)=>Jd(t,e)]);let wn=0,Pl=0,yn=0,yi=!1,ki=!1,kn=!1,Cn=!1,Fl=[0,0,"root",0];function zl(t,e){return t!==null&&t.nodeValue!==null&&t.nodeType===3&&e!==0&&e!==t.nodeValue.length}function Bl(t,e,n){let{anchorNode:r,anchorOffset:i,focusNode:o,focusOffset:l}=t;yi&&(yi=!1,zl(r,i)&&zl(o,l))||$e(e,()=>{if(!n)_t(null);else if(nr(e,r,o)){var s=Z();if(H(s)){var a=s.anchor,c=a.getNode();if(s.isCollapsed()){t.type==="Range"&&t.anchorNode===t.focusNode&&(s.dirty=!0);var d=sr(e).event;d=d?d.timeStamp:performance.now();let[u,g,m,f]=Fl;d<f+200&&a.offset===g&&a.key===m?s.format=u:a.type==="text"?s.format=c.getFormat():a.type==="element"&&(s.format=0)}else{a=127,c=!1,d=s.getNodes();let u=d.length;for(let g=0;g<u;g++){let m=d[g];if(L(m)&&(c=!0,a&=m.getFormat(),a===0))break}s.format=c?a:0}}M(e,Bo,void 0)}})}function Yd(t,e){$e(e,()=>{let n=Z(),r=Ee?window.getSelection():null,i=En();if(H(n)){let o=n.anchor,l=o.getNode();r&&o.type==="element"&&o.offset===0&&n.isCollapsed()&&!Me(l)&&st().getChildrenSize()===1&&l.getTopLevelElementOrThrow().isEmpty()&&i!==null&&n.is(i)&&(r.removeAllRanges(),n.dirty=!0)}M(e,Ho,t)})}function Vd(t,e){let n=t.target;n instanceof Node&&$e(e,()=>{ee(hn(n))||(ki=!0)})}function Gd(t,e){e.getTargetRanges&&(e=e.getTargetRanges()[0])&&t.applyDOMRange(e)}function Zd(t,e){return t!==e||O(t)||O(e)||!t.isToken()||!e.isToken()}function Jd(t,e){let n=t.inputType;n==="deleteCompositionText"||mt&&kl(e)||n!=="insertCompositionText"&&$e(e,()=>{let r=Z();if(n==="deleteContentBackward"){if(r===null){var i=En();if(!H(i))return;_t(i.clone())}if(H(r)){Pl===229&&t.timeStamp<wn+30&&e.isComposing()&&r.anchor.key===r.focus.key?(he(null),wn=0,setTimeout(()=>{$e(e,()=>{he(null)})},30),H(r)&&(i=r.anchor.getNode(),i.markDirty(),r.format=i.getFormat())):(t.preventDefault(),M(e,cn,!0));return}}if(H(r)){i=t.data,r.dirty||!r.isCollapsed()||Me(r.anchor.getNode())||Gd(r,t);var o=r.focus,l=r.anchor.getNode();if(o=o.getNode(),n==="insertText"||n==="insertTranspose")i===`
20
+ `)}else n=r.getTextContent(),ee(r)?(i=r.decorate(Se,vt),i!==null&&Pl(t,i)):L(r)&&!r.isDirectionless()&&(Te+=n),ue+=n,Xe+=n;return!hi&&Me(r)&&r.__cachedText!==Xe&&(r=r.getWritable(),r.__cachedText=Xe),o}function Pl(t,e){let n=Se._pendingDecorators,r=Se._decorators;if(n===null){if(r[t]===e)return;n=ml(Se)}n[t]=e}function vi(t){return t=mi.get(t),t===void 0&&A(75),t}let qe=Object.freeze({}),wi=[["keydown",eu],["mousedown",Vd],["compositionstart",qd],["compositionend",Qd],["input",Xd],["click",Yd],["cut",qe],["copy",qe],["dragstart",qe],["dragover",qe],["dragend",qe],["paste",qe],["focus",qe],["blur",qe],["drop",qe]];Od&&wi.push(["beforeinput",(t,e)=>Jd(t,e)]);let wn=0,Fl=0,yn=0,yi=!1,ki=!1,kn=!1,Cn=!1,zl=[0,0,"root",0];function Bl(t,e){return t!==null&&t.nodeValue!==null&&t.nodeType===3&&e!==0&&e!==t.nodeValue.length}function Hl(t,e,n){let{anchorNode:r,anchorOffset:i,focusNode:o,focusOffset:l}=t;yi&&(yi=!1,Bl(r,i)&&Bl(o,l))||$e(e,()=>{if(!n)_t(null);else if(nr(e,r,o)){var s=Z();if(H(s)){var a=s.anchor,c=a.getNode();if(s.isCollapsed()){t.type==="Range"&&t.anchorNode===t.focusNode&&(s.dirty=!0);var d=sr(e).event;d=d?d.timeStamp:performance.now();let[u,g,m,f]=zl;d<f+200&&a.offset===g&&a.key===m?s.format=u:a.type==="text"?s.format=c.getFormat():a.type==="element"&&(s.format=0)}else{a=127,c=!1,d=s.getNodes();let u=d.length;for(let g=0;g<u;g++){let m=d[g];if(L(m)&&(c=!0,a&=m.getFormat(),a===0))break}s.format=c?a:0}}M(e,Ho,void 0)}})}function Yd(t,e){$e(e,()=>{let n=Z(),r=Ee?window.getSelection():null,i=En();if(H(n)){let o=n.anchor,l=o.getNode();r&&o.type==="element"&&o.offset===0&&n.isCollapsed()&&!Me(l)&&st().getChildrenSize()===1&&l.getTopLevelElementOrThrow().isEmpty()&&i!==null&&n.is(i)&&(r.removeAllRanges(),n.dirty=!0)}M(e,Ko,t)})}function Vd(t,e){let n=t.target;n instanceof Node&&$e(e,()=>{ee(hn(n))||(ki=!0)})}function Gd(t,e){e.getTargetRanges&&(e=e.getTargetRanges()[0])&&t.applyDOMRange(e)}function Zd(t,e){return t!==e||O(t)||O(e)||!t.isToken()||!e.isToken()}function Jd(t,e){let n=t.inputType;n==="deleteCompositionText"||mt&&Cl(e)||n!=="insertCompositionText"&&$e(e,()=>{let r=Z();if(n==="deleteContentBackward"){if(r===null){var i=En();if(!H(i))return;_t(i.clone())}if(H(r)){Fl===229&&t.timeStamp<wn+30&&e.isComposing()&&r.anchor.key===r.focus.key?(he(null),wn=0,setTimeout(()=>{$e(e,()=>{he(null)})},30),H(r)&&(i=r.anchor.getNode(),i.markDirty(),r.format=i.getFormat())):(t.preventDefault(),M(e,cn,!0));return}}if(H(r)){i=t.data,r.dirty||!r.isCollapsed()||Me(r.anchor.getNode())||Gd(r,t);var o=r.focus,l=r.anchor.getNode();if(o=o.getNode(),n==="insertText"||n==="insertTranspose")i===`
21
21
  `?(t.preventDefault(),M(e,dn,!1)):i===`
22
22
 
23
- `?(t.preventDefault(),M(e,Gr,void 0)):i==null&&t.dataTransfer?(i=t.dataTransfer.getData("text/plain"),t.preventDefault(),r.insertRawText(i)):i!=null&&wl(r,i)&&(t.preventDefault(),M(e,Ft,i));else switch(t.preventDefault(),n){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":M(e,Ft,t);break;case"insertFromComposition":he(null),M(e,Ft,t);break;case"insertLineBreak":he(null),M(e,dn,!1);break;case"insertParagraph":he(null),kn?(kn=!1,M(e,dn,!1)):M(e,Gr,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":M(e,Zr,t);break;case"deleteByComposition":Zd(l,o)&&M(e,Jr,void 0);break;case"deleteByDrag":case"deleteByCut":M(e,Jr,void 0);break;case"deleteContent":M(e,cn,!1);break;case"deleteWordBackward":M(e,un,!0);break;case"deleteWordForward":M(e,un,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":M(e,gn,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":M(e,gn,!1);break;case"formatStrikeThrough":M(e,ot,"strikethrough");break;case"formatBold":M(e,ot,"bold");break;case"formatItalic":M(e,ot,"italic");break;case"formatUnderline":M(e,ot,"underline");break;case"historyUndo":M(e,Xr,void 0);break;case"historyRedo":M(e,qr,void 0)}}})}function Xd(t,e){t.stopPropagation(),$e(e,()=>{var n=Z(),r=t.data;r!=null&&H(n)&&wl(n,r)?(Cn&&(Ci(e,r),Cn=!1),M(e,Ft,r),r=r.length,mt&&1<r&&t.inputType==="insertCompositionText"&&!e.isComposing()&&(n.anchor.offset-=r),ti||ni||!e.isComposing()||(wn=0,he(null))):(vl(!1),Cn&&(Ci(e,r||void 0),Cn=!1)),Re(),n=oe(),al(n)})}function qd(t,e){$e(e,()=>{let n=Z();if(H(n)&&!e.isComposing()){let r=n.anchor;he(r.key),(t.timeStamp<wn+30||r.type==="element"||!n.isCollapsed()||n.anchor.getNode().getFormat()!==n.format)&&M(e,Ft,$d)}})}function Ci(t,e){var n=t._compositionKey;if(he(null),n!==null&&e!=null){if(e===""){e=q(n),t=rr(t.getElementByKey(n)),t!==null&&t.nodeValue!==null&&L(e)&&ai(e,t.nodeValue,null,null,!0);return}if(e[e.length-1]===`
24
- `&&(n=Z(),H(n))){e=n.focus,n.anchor.set(e.key,e.offset,e.type),M(t,er,null);return}}vl(!0,e)}function Qd(t,e){mt?Cn=!0:$e(e,()=>{Ci(e,t.data)})}function eu(t,e){if(wn=t.timeStamp,Pl=t.keyCode,!e.isComposing()){var{keyCode:n,shiftKey:r,ctrlKey:i,metaKey:o,altKey:l}=t;if(n!==39||i||o||l)if(n!==39||l||r||!i&&!o)if(n!==37||i||o||l)if(n!==37||l||r||!i&&!o)if(n!==38||i||o)if(n!==40||i||o)if(n===13&&r)kn=!0,M(e,er,t);else if(n===32)M(e,Go,t);else if(be&&i&&n===79)t.preventDefault(),kn=!0,M(e,dn,!0);else if(n!==13||r){var s=be?l||o?!1:n===8||n===72&&i:i||l||o?!1:n===8;s?n===8?M(e,Zo,t):(t.preventDefault(),M(e,cn,!0)):n===27?M(e,Jo,t):(s=be?r||l||o?!1:n===46||n===68&&i:i||l||o?!1:n===46,s?n===46?M(e,Xo,t):(t.preventDefault(),M(e,cn,!1)):n===8&&(be?l:i)?(t.preventDefault(),M(e,un,!0)):n===46&&(be?l:i)?(t.preventDefault(),M(e,un,!1)):be&&o&&n===8?(t.preventDefault(),M(e,gn,!0)):be&&o&&n===46?(t.preventDefault(),M(e,gn,!1)):n===66&&!l&&(be?o:i)?(t.preventDefault(),M(e,ot,"bold")):n===85&&!l&&(be?o:i)?(t.preventDefault(),M(e,ot,"underline")):n===73&&!l&&(be?o:i)?(t.preventDefault(),M(e,ot,"italic")):n!==9||l||i||o?n===90&&!r&&(be?o:i)?(t.preventDefault(),M(e,Xr,void 0)):(s=be?n===90&&o&&r:n===89&&i||n===90&&i&&r,s?(t.preventDefault(),M(e,qr,void 0)):Nn(e._editorState._selection)&&(s=r?!1:n===67?be?o:i:!1,s?(t.preventDefault(),M(e,Qr,t)):(s=r?!1:n===88?be?o:i:!1,s&&(t.preventDefault(),M(e,ei,t))))):M(e,qo,t))}else kn=!1,M(e,er,t);else M(e,Vo,t);else M(e,Yo,t);else M(e,jo,t);else M(e,Uo,t);else M(e,Wo,t);else M(e,Ko,t);(i||r||l||o)&&M(e,ol,t)}}function Hl(t){let e=t.__lexicalEventHandles;return e===void 0&&(e=[],t.__lexicalEventHandles=e),e}let Wt=new Map;function Kl(){let t=Ee?window.getSelection():null;if(t!==null){var e=dl(t.anchorNode);if(e!==null){ki&&(ki=!1,$e(e,()=>{var l=En(),s=t.anchorNode;s!==null&&(s=s.nodeType,s===1||s===3)&&(l=Ql(l,t,e),_t(l))}));var n=si(e);n=n[n.length-1];var r=n._key,i=Wt.get(r),o=i||n;o!==e&&Bl(t,o,!1),Bl(t,e,!0),e!==n?Wt.set(r,e):i&&Wt.delete(r)}}}function tu(t,e){yn===0&&t.ownerDocument.addEventListener("selectionchange",Kl),yn++,t.__lexicalEditor=e;let n=Hl(t);for(let r=0;r<wi.length;r++){let[i,o]=wi[r],l=typeof o=="function"?s=>{s._lexicalHandled!==!0&&(s._lexicalHandled=!0,e.isEditable()&&o(s,e))}:s=>{if(s._lexicalHandled!==!0&&(s._lexicalHandled=!0,e.isEditable()))switch(i){case"cut":return M(e,ei,s);case"copy":return M(e,Qr,s);case"paste":return M(e,Zr,s);case"dragstart":return M(e,el,s);case"dragover":return M(e,tl,s);case"dragend":return M(e,nl,s);case"focus":return M(e,rl,s);case"blur":return M(e,il,s);case"drop":return M(e,Qo,s)}};t.addEventListener(i,l),n.push(()=>{t.removeEventListener(i,l)})}}class je{constructor(e,n,r){this._selection=null,this.key=e,this.offset=n,this.type=r}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){let n=this.getNode(),r=e.getNode(),i=this.offset;if(e=e.offset,O(n)){var o=n.getDescendantByIndex(i);n=o!=null?o:n}return O(r)&&(o=r.getDescendantByIndex(e),r=o!=null?o:r),n===r?i<e:n.isBefore(r)}getNode(){let e=q(this.key);return e===null&&A(20),e}set(e,n,r){let i=this._selection,o=this.key;this.key=e,this.offset=n,this.type=r,ae||(lt()===o&&he(e),i!==null&&(i._cachedNodes=null,i.dirty=!0))}}function Ni(t,e){let n=e.__key,r=t.offset,i="element";if(L(e))i="text",e=e.getTextContentSize(),r>e&&(r=e);else if(!O(e)){var o=e.getNextSibling();L(o)?(n=o.__key,r=0):(o=e.getParent())&&(n=o.__key,r=e.getIndexWithinParent()+1)}t.set(n,r,i)}function Wl(t,e){if(O(e)){let n=e.getLastDescendant();O(n)||L(n)?Ni(t,n):Ni(t,e)}else Ni(t,e)}function Ul(t,e,n){let r=t.getNode(),i=r.getChildAtIndex(t.offset),o=fe(),l=Me(r)?Gt().append(o):o;o.setFormat(n),i===null?r.append(l):i.insertBefore(l),t.is(e)&&e.set(o.__key,0,"text"),t.set(o.__key,0,"text")}function ct(t,e,n,r){t.key=e,t.offset=n,t.type=r}class hr{constructor(e){this.dirty=!1,this._nodes=e,this._cachedNodes=null}is(e){if(!Nn(e))return!1;let n=this._nodes,r=e._nodes;return n.size===r.size&&Array.from(n).every(i=>r.has(i))}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 hr(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(){}insertText(){}insertNodes(e,n){let r=this.getNodes(),i=r.length;var o=r[i-1];if(L(o))o=o.select();else{let l=o.getIndexWithinParent()+1;o=o.getParentOrThrow().select(l,l)}for(o.insertNodes(e,n),e=0;e<i;e++)r[e].remove();return!0}getNodes(){var e=this._cachedNodes;if(e!==null)return e;var n=this._nodes;e=[];for(let r of n)n=q(r),n!==null&&e.push(n);return ae||(this._cachedNodes=e),e}getTextContent(){let e=this.getNodes(),n="";for(let r=0;r<e.length;r++)n+=e[r].getTextContent();return n}}function H(t){return t instanceof wt}class fr{constructor(e,n,r){this.gridKey=e,this.anchor=n,this.focus=r,this.dirty=!1,this._cachedNodes=null,n._selection=this,r._selection=this}is(e){return Ei(e)?this.gridKey===e.gridKey&&this.anchor.is(e.anchor)&&this.focus.is(e.focus):!1}set(e,n,r){this.dirty=!0,this.gridKey=e,this.anchor.key=n,this.focus.key=r,this._cachedNodes=null}clone(){return new fr(this.gridKey,this.anchor,this.focus)}isCollapsed(){return!1}isBackward(){return this.focus.isBefore(this.anchor)}getCharacterOffsets(){return pr(this)}extract(){return this.getNodes()}insertRawText(){}insertText(){}insertNodes(e,n){let r=this.focus.getNode();return bl(r.select(0,r.getChildrenSize())).insertNodes(e,n)}getShape(){var e=q(this.anchor.key);e===null&&A(21);var n=e.getIndexWithinParent();e=e.getParentOrThrow().getIndexWithinParent();var r=q(this.focus.key);r===null&&A(22);var i=r.getIndexWithinParent();let o=r.getParentOrThrow().getIndexWithinParent();return r=Math.min(n,i),n=Math.max(n,i),i=Math.min(e,o),e=Math.max(e,o),{fromX:Math.min(r,n),fromY:Math.min(i,e),toX:Math.max(r,n),toY:Math.max(i,e)}}getNodes(){var e=this._cachedNodes;if(e!==null)return e;e=new Set;let{fromX:n,fromY:r,toX:i,toY:o}=this.getShape();var l=q(this.gridKey);hs(l)||A(23),e.add(l),l=l.getChildren();for(let c=r;c<=o;c++){var s=l[c];e.add(s),ps(s)||A(24),s=s.getChildren();for(let d=n;d<=i;d++){var a=s[d];for(us(a)||A(25),e.add(a),a=a.getChildren();0<a.length;){let u=a.shift();e.add(u),O(u)&&a.unshift(...u.getChildren())}}}return e=Array.from(e),ae||(this._cachedNodes=e),e}getTextContent(){let e=this.getNodes(),n="";for(let r=0;r<e.length;r++)n+=e[r].getTextContent();return n}}function Ei(t){return t instanceof fr}class wt{constructor(e,n,r){this.anchor=e,this.focus=n,this.dirty=!1,this.format=r,this._cachedNodes=null,e._selection=this,n._selection=this}is(e){return H(e)?this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format:!1}isBackward(){return this.focus.isBefore(this.anchor)}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){var e=this._cachedNodes;if(e!==null)return e;var n=this.anchor,r=this.focus;e=n.getNode();let i=r.getNode();return O(e)&&(n=e.getDescendantByIndex(n.offset),e=n!=null?n:e),O(i)&&(r=i.getDescendantByIndex(r.offset),i=r!=null?r:i),e=e.is(i)?O(e)&&0<e.getChildrenSize()?[]:[e]:e.getNodesBetween(i),ae||(this._cachedNodes=e),e}setTextNodeRange(e,n,r,i){ct(this.anchor,e.__key,n,"text"),ct(this.focus,r.__key,i,"text"),this._cachedNodes=null,this.dirty=!0}getTextContent(){let e=this.getNodes();if(e.length===0)return"";let n=e[0],r=e[e.length-1],i=this.anchor.isBefore(this.focus),[o,l]=pr(this),s="",a=!0;for(let c=0;c<e.length;c++){let d=e[c];if(O(d)&&!d.isInline())a||(s+=`
25
- `),a=!d.isEmpty();else if(a=!1,L(d)){let u=d.getTextContent();d===n?u=d===r?o<l?u.slice(o,l):u.slice(l,o):i?u.slice(o):u.slice(l):d===r&&(u=i?u.slice(0,l):u.slice(0,o)),s+=u}else!ee(d)&&!Rn(d)||d===r&&this.isCollapsed()||(s+=d.getTextContent())}return s}applyDOMRange(e){let n=oe(),r=n.getEditorState()._selection;if(e=Jl(e.startContainer,e.startOffset,e.endContainer,e.endOffset,n,r),e!==null){var[i,o]=e;ct(this.anchor,i.key,i.offset,i.type),ct(this.focus,o.key,o.offset,o.type),this._cachedNodes=null}}clone(){let e=this.anchor,n=this.focus;return new wt(new je(e.key,e.offset,e.type),new je(n.key,n.offset,n.type),this.format)}toggleFormat(e){this.format=ul(this.format,e,null),this.dirty=!0}hasFormat(e){return(this.format&xt[e])!==0}insertRawText(e){let n=e.split(/\r?\n/);if(n.length===1)this.insertText(e);else{e=[];let r=n.length;for(let i=0;i<r;i++){let o=n[i];o!==""&&e.push(fe(o)),i!==r-1&&e.push(bn())}this.insertNodes(e)}}insertText(e){var n=this.anchor,r=this.focus,i=this.isCollapsed()||n.isBefore(r),o=this.format;i&&n.type==="element"?Ul(n,r,o):i||r.type!=="element"||Ul(r,n,o);var l=this.getNodes(),s=l.length,a=i?r:n;r=(i?n:r).offset;var c=a.offset;n=l[0],L(n)||A(26),i=n.getTextContent().length;var d=n.getParentOrThrow(),u=l[s-1];if(this.isCollapsed()&&r===i&&(n.isSegmented()||n.isToken()||!n.canInsertTextAfter()||!d.canInsertTextAfter()&&n.getNextSibling()===null)){var g=n.getNextSibling();if((!L(g)||li(g))&&(g=fe(),g.setFormat(o),d.canInsertTextAfter()?n.insertAfter(g):d.insertAfter(g)),g.select(0,0),n=g,e!==""){this.insertText(e);return}}else if(this.isCollapsed()&&r===0&&(n.isSegmented()||n.isToken()||!n.canInsertTextBefore()||!d.canInsertTextBefore()&&n.getPreviousSibling()===null)){if(g=n.getPreviousSibling(),(!L(g)||li(g))&&(g=fe(),g.setFormat(o),d.canInsertTextBefore()?n.insertBefore(g):d.insertBefore(g)),g.select(),n=g,e!==""){this.insertText(e);return}}else if(n.isSegmented()&&r!==i)d=fe(n.getTextContent()),d.setFormat(o),n.replace(d),n=d;else if(!(this.isCollapsed()||e===""||(g=u.getParent(),d.canInsertTextBefore()&&d.canInsertTextAfter()&&(!O(g)||g.canInsertTextBefore()&&g.canInsertTextAfter())))){this.insertText(""),Zl(this.anchor,this.focus,null),this.insertText(e);return}if(s===1)if(n.isToken())e=fe(e),e.select(),n.replace(e);else{if(l=n.getFormat(),r===c&&l!==o)if(n.getTextContent()==="")n.setFormat(o);else{l=fe(e),l.setFormat(o),l.select(),r===0?n.insertBefore(l):([s]=n.splitText(r),s.insertAfter(l)),l.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length);return}n=n.spliceText(r,c-r,e,!0),n.getTextContent()===""?n.remove():this.anchor.type==="text"&&(n.isComposing()?this.anchor.offset-=e.length:this.format=l)}else{o=new Set([...n.getParentKeys(),...u.getParentKeys()]);var m=O(n)?n:n.getParentOrThrow();if(d=O(u)?u:u.getParentOrThrow(),g=u,!m.is(d)&&d.isInline())do g=d,d=d.getParentOrThrow();while(d.isInline());a.type==="text"&&(c!==0||u.getTextContent()==="")||a.type==="element"&&u.getIndexWithinParent()<c?L(u)&&!u.isToken()&&c!==u.getTextContentSize()?(u.isSegmented()&&(a=fe(u.getTextContent()),u.replace(a),u=a),u=u.spliceText(0,c,""),o.add(u.__key)):(a=u.getParentOrThrow(),a.canBeEmpty()||a.getChildrenSize()!==1?u.remove():a.remove()):o.add(u.__key),a=d.getChildren(),c=new Set(l),u=m.is(d),m=m.isInline()&&n.getNextSibling()===null?m:n;for(let f=a.length-1;0<=f;f--){let _=a[f];if(_.is(n)||O(_)&&_.isParentOf(n))break;_.isAttached()&&(!c.has(_)||_.is(g)?u||m.insertAfter(_):_.remove())}if(!u)for(a=d,c=null;a!==null;)u=a.getChildren(),d=u.length,(d===0||u[d-1].is(c))&&(o.delete(a.__key),c=a),a=a.getParent();for(n.isToken()?r===i?n.select():(e=fe(e),e.select(),n.replace(e)):(n=n.spliceText(r,i-r,e,!0),n.getTextContent()===""?n.remove():n.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length)),e=1;e<s;e++)n=l[e],o.has(n.__key)||n.remove()}}removeText(){this.insertText("")}formatText(e){if(this.isCollapsed())this.toggleFormat(e),he(null);else{var n=this.getNodes(),r=[];for(var i of n)L(i)&&r.push(i);var o=r.length;if(o===0)this.toggleFormat(e),he(null);else{i=this.anchor;var l=this.focus,s=this.isBackward();n=s?l:i,i=s?i:l;var a=0,c=r[0];if(l=n.type==="element"?0:n.offset,n.type==="text"&&l===c.getTextContentSize()&&(a=1,c=r[1],l=0),c!=null){s=c.getFormatFlags(e,null);var d=o-1,u=r[d];if(o=i.type==="text"?i.offset:u.getTextContentSize(),c.is(u))l!==o&&(l===0&&o===c.getTextContentSize()?c.setFormat(s):(e=c.splitText(l,o),e=l===0?e[0]:e[1],e.setFormat(s),n.type==="text"&&n.set(e.__key,0,"text"),i.type==="text"&&i.set(e.__key,o-l,"text")),this.format=s);else{l!==0&&([,c]=c.splitText(l),l=0),c.setFormat(s);var g=u.getFormatFlags(e,s);for(0<o&&(o!==u.getTextContentSize()&&([u]=u.splitText(o)),u.setFormat(g)),a+=1;a<d;a++){let m=r[a];if(!m.isToken()){let f=m.getFormatFlags(e,g);m.setFormat(f)}}n.type==="text"&&n.set(c.__key,l,"text"),i.type==="text"&&i.set(u.__key,o,"text"),this.format=s|g}}}}}insertNodes(e,n){if(!this.isCollapsed()){var r=this.isBackward()?this.anchor:this.focus,i=r.getNode().getNextSibling();if(i=i?i.getKey():null,r=(r=r.getNode().getPreviousSibling())?r.getKey():null,this.removeText(),this.isCollapsed()&&this.focus.type==="element"){if(this.focus.key===i&&this.focus.offset===0){var o=fe();this.focus.getNode().insertBefore(o)}else this.focus.key===r&&this.focus.offset===this.focus.getNode().getChildrenSize()&&(o=fe(),this.focus.getNode().insertAfter(o));o&&(this.focus.set(o.__key,0,"text"),this.anchor.set(o.__key,0,"text"))}}i=this.anchor,r=i.offset;var l=i.getNode();o=l,i.type==="element"&&(o=i.getNode(),i=o.getChildAtIndex(r-1),o=i===null?o:i),i=[];var s=l.getNextSiblings(),a=at(l)?null:l.getTopLevelElementOrThrow();if(L(l))if(o=l.getTextContent().length,r===0&&o!==0)o=l.getPreviousSibling(),o=o!==null?o:l.getParentOrThrow(),i.push(l);else if(r===o)o=l;else{if(l.isToken())return!1;[o,l]=l.splitText(r),i.push(l)}l=o,i.push(...s),s=e[0];var c=!1,d=null;for(let f=0;f<e.length;f++){var u=e[f];if(ee(o)||!O(u)||u.isInline())c&&!ee(u)&&at(o.getParent())&&A(28);else{if(u.is(s)){if(O(o)&&o.isEmpty()&&o.canReplaceWith(u)){o.replace(u),o=u,c=!0;continue}var g=u.getFirstDescendant();if(gl(g)){for(g=g.getParentOrThrow();g.isInline();)g=g.getParentOrThrow();if(d=g.getChildren(),c=d.length,O(o))for(var m=0;m<c;m++)o.append(d[m]);else{for(m=c-1;0<=m;m--)o.insertAfter(d[m]);o=o.getParentOrThrow()}if(d=d[c-1],g.remove(),c=!0,g.is(u))continue}}L(o)&&(a===null&&A(27),o=a)}c=!1,O(o)&&!o.isInline()?(d=u,ee(u)&&!u.isInline()?o=o.insertAfter(u):O(u)?(u.canBeEmpty()||!u.isEmpty())&&(Me(o)?(g=o.getChildAtIndex(r),g!==null?g.insertBefore(u):o.append(u),o=u):o=o.insertAfter(u)):(g=o.getFirstChild(),g!==null?g.insertBefore(u):o.append(u),o=u)):!O(u)||O(u)&&u.isInline()||ee(o)&&!o.isInline()?(d=u,o=o.insertAfter(u)):(u=o.getParentOrThrow(),Rn(o)&&o.remove(),o=u,f--)}if(n&&(L(l)?l.select():(e=o.getPreviousSibling(),L(e)?e.select():(e=o.getIndexWithinParent(),o.getParentOrThrow().select(e,e)))),O(o)){if(e=L(d)?d:O(d)&&d.isInline()?d.getLastDescendant():o.getLastDescendant(),n||(e===null?o.select():L(e)?e.select():e.selectNext()),i.length!==0)for(n=o,e=i.length-1;0<=e;e--)r=i[e],a=r.getParentOrThrow(),!O(o)||Xl(r)||ee(r)&&(!r.isInline()||r.isIsolated())?O(o)||Xl(r)?O(r)&&!r.canInsertAfter(o)?(l=a.constructor.clone(a),O(l)||A(29),l.append(r),o.insertAfter(l)):o.insertAfter(r):(o.insertBefore(r),o=r):(n===o?o.append(r):o.insertBefore(r),o=r),a.isEmpty()&&!a.canBeEmpty()&&a.remove()}else n||(L(o)?o.select():(n=o.getParentOrThrow(),e=o.getIndexWithinParent()+1,n.select(e,e)));return!0}insertParagraph(){this.isCollapsed()||this.removeText();var e=this.anchor,n=e.offset,r=[];if(e.type==="text"){var i=e.getNode(),o=i.getNextSiblings().reverse(),l=i.getParentOrThrow(),s=l.isInline(),a=s?l.getTextContentSize():i.getTextContentSize();n===0?o.push(i):(s&&(r=l.getNextSiblings()),n===a||s&&n===i.getTextContentSize()||([,i]=i.splitText(n),o.push(i)))}else{if(l=e.getNode(),at(l)){o=Gt(),r=l.getChildAtIndex(n),o.select(),r!==null?r.insertBefore(o):l.append(o);return}o=l.getChildren().slice(n).reverse()}if(i=o.length,n===0&&0<i&&l.isInline()){if(r=l.getParentOrThrow(),o=r.insertNewAfter(this),O(o))for(r=r.getChildren(),l=0;l<r.length;l++)o.append(r[l])}else if(s=l.insertNewAfter(this),s===null)this.insertLineBreak();else if(O(s))if(a=l.getFirstChild(),n===0&&(l.is(e.getNode())||a&&a.is(e.getNode()))&&0<i)l.insertBefore(s);else{if(l=null,n=r.length,e=s.getParentOrThrow(),0<n)for(a=0;a<n;a++)e.append(r[a]);if(i!==0)for(r=0;r<i;r++)n=o[r],l===null?s.append(n):l.insertBefore(n),l=n;s.canBeEmpty()||s.getChildrenSize()!==0?s.selectStart():(s.selectPrevious(),s.remove())}}insertLineBreak(e){let n=bn();var r=this.anchor;r.type==="element"&&(r=r.getNode(),Me(r)&&this.insertParagraph()),e?this.insertNodes([n],!0):this.insertNodes([n])&&n.selectNext(0,0)}getCharacterOffsets(){return pr(this)}extract(){var e=this.getNodes(),n=e.length,r=n-1,i=this.anchor;let o=this.focus;var l=e[0];let s=e[r],[a,c]=pr(this);return n===0?[]:n===1?L(l)&&!this.isCollapsed()?(e=a>c?c:a,r=l.splitText(e,a>c?a:c),e=e===0?r[0]:r[1],e!=null?[e]:[]):[l]:(n=i.isBefore(o),L(l)&&(i=n?a:c,i===l.getTextContentSize()?e.shift():i!==0&&([,l]=l.splitText(i),e[0]=l)),L(s)&&(l=s.getTextContent().length,n=n?c:a,n===0?e.pop():n!==l&&([s]=s.splitText(n),e[r]=s)),e)}modify(e,n,r){var i=this.focus,o=this.anchor,l=e==="move",s=di(i,n);if(ee(s)&&!s.isIsolated())l&&s.isKeyboardSelectable()?(n=Ti(),n.add(s.__key),_t(n)):(e=n?s.getPreviousSibling():s.getNextSibling(),L(e)?(s=e.__key,n=n?e.getTextContent().length:0,i.set(s,n,"text"),l&&o.set(s,n,"text")):(r=s.getParentOrThrow(),O(e)?(r=e.__key,s=n?e.getChildrenSize():0):(s=s.getIndexWithinParent(),r=r.__key,n||s++),i.set(r,s,"element"),l&&o.set(r,s,"element")));else if((i=Ee?window.getSelection():null)&&(i.modify(e,n?"backward":"forward",r),0<i.rangeCount&&(o=i.getRangeAt(0),s=this.anchor.getNode(),s=Me(s)?s:Cl(s),this.applyDOMRange(o),this.dirty=!0,!l))){l=this.getNodes(),e=[],r=!1;for(let a=0;a<l.length;a++){let c=l[a];lr(c,s)?e.push(c):r=!0}r&&0<e.length&&(n?(n=e[0],O(n)?n.selectStart():n.getParentOrThrow().selectStart()):(n=e[e.length-1],O(n)?n.selectEnd():n.getParentOrThrow().selectEnd())),(i.anchorNode!==o.startContainer||i.anchorOffset!==o.startOffset)&&(n=this.focus,l=this.anchor,i=l.key,o=l.offset,s=l.type,ct(l,n.key,n.offset,n.type),ct(n,i,o,s),this._cachedNodes=null)}}deleteCharacter(e){if(this.isCollapsed()){var n=this.anchor,r=this.focus,i=n.getNode();if(!e&&(n.type==="element"&&O(i)&&n.offset===i.getChildrenSize()||n.type==="text"&&n.offset===i.getTextContentSize())){var o=i.getNextSibling()||i.getParentOrThrow().getNextSibling();if(O(o)&&!o.canExtractContents())return}if(o=di(r,e),ee(o)&&!o.isIsolated()){o.isKeyboardSelectable()&&O(i)&&i.getChildrenSize()===0?(i.remove(),e=Ti(),e.add(o.__key),_t(e)):o.remove();return}if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&n.offset===0&&(n.type==="element"?n.getNode():n.getNode().getParentOrThrow()).collapseAtStart(this))return}else{if(o=r.type==="text"?r.getNode():null,i=n.type==="text"?n.getNode():null,o!==null&&o.isSegmented()){if(n=r.offset,r=o.getTextContentSize(),o.is(i)||e&&n!==r||!e&&n!==0){Yl(o,e,n);return}}else if(i!==null&&i.isSegmented()&&(n=n.offset,r=i.getTextContentSize(),i.is(o)||e&&n!==0||!e&&n!==r)){Yl(i,e,n);return}if(i=this.anchor,o=this.focus,n=i.getNode(),r=o.getNode(),n===r&&i.type==="text"&&o.type==="text"){var l=i.offset,s=o.offset;let a=l<s;r=a?l:s,s=a?s:l,l=s-1,r!==l&&(n=n.getTextContent().slice(r,s),xl(n)||(e?o.offset=l:i.offset=l))}}}this.removeText()}deleteLine(e){this.isCollapsed()&&(this.anchor.type==="text"&&this.modify("extend",e,"lineboundary"),(e?this.focus:this.anchor).offset===0&&this.modify("extend",e,"character")),this.removeText()}deleteWord(e){this.isCollapsed()&&this.modify("extend",e,"word"),this.removeText()}}function Nn(t){return t instanceof hr}function jl(t){let e=t.offset;return t.type==="text"?e:(t=t.getNode(),e===t.getChildrenSize()?t.getTextContent().length:0)}function pr(t){let e=t.anchor;return t=t.focus,e.type==="element"&&t.type==="element"&&e.key===t.key&&e.offset===t.offset?[0,0]:[jl(e),jl(t)]}function Yl(t,e,n){let r=t.getTextContent().split(/(?=\s)/g),i=r.length,o=0,l=0;for(let s=0;s<i;s++){let a=r[s],c=s===i-1;if(l=o,o+=a.length,e&&o===n||o>n||c){r.splice(s,1),c&&(l=void 0);break}}e=r.join("").trim(),e===""?t.remove():(t.setTextContent(e),t.select(l,l))}function Vl(t,e,n){var r=e;if(t.nodeType===1){let l=!1;var i=t.childNodes,o=i.length;if(r===o&&(l=!0,r=o-1),i=Ht(i[r]),L(i))r=l?i.getTextContentSize():0;else{if(o=Ht(t),o===null)return null;if(O(o)?(t=o.getChildAtIndex(r),(e=O(t))&&(e=t.getParent(),e=n===null||e===null||!e.canBeEmpty()||e!==n.getNode()),e&&(n=l?t.getLastDescendant():t.getFirstDescendant(),n===null?(o=t,r=0):(t=n,o=t.getParentOrThrow())),L(t)?(i=t,o=null,r=l?t.getTextContentSize():0):t!==o&&l&&r++):(r=o.getIndexWithinParent(),r=e===0&&ee(o)&&Ht(t)===o?r:r+1,o=o.getParentOrThrow()),O(o))return new je(o.__key,r,"element")}}else i=Ht(t);return L(i)?new je(i.__key,r,"text"):null}function Gl(t,e,n){var r=t.offset,i=t.getNode();r===0?(r=i.getPreviousSibling(),i=i.getParent(),e?(n||!e)&&r===null&&O(i)&&i.isInline()&&(e=i.getPreviousSibling(),L(e)&&(t.key=e.__key,t.offset=e.getTextContent().length)):O(r)&&!n&&r.isInline()?(t.key=r.__key,t.offset=r.getChildrenSize(),t.type="element"):L(r)&&(t.key=r.__key,t.offset=r.getTextContent().length)):r===i.getTextContent().length&&(r=i.getNextSibling(),i=i.getParent(),e&&O(r)&&r.isInline()?(t.key=r.__key,t.offset=0,t.type="element"):(n||e)&&r===null&&O(i)&&i.isInline()&&!i.canInsertTextAfter()&&(e=i.getNextSibling(),L(e)&&(t.key=e.__key,t.offset=0)))}function Zl(t,e,n){if(t.type==="text"&&e.type==="text"){var r=t.isBefore(e);let i=t.is(e);Gl(t,r,i),Gl(e,!r,i),i&&(e.key=t.key,e.offset=t.offset,e.type=t.type),r=oe(),r.isComposing()&&r._compositionKey!==t.key&&H(n)&&(r=n.anchor,n=n.focus,ct(t,r.key,r.offset,r.type),ct(e,n.key,n.offset,n.type))}}function Jl(t,e,n,r,i,o){return t===null||n===null||!nr(i,t,n)||(e=Vl(t,e,H(o)?o.anchor:null),e===null)||(r=Vl(n,r,H(o)?o.focus:null),r===null||e.type==="element"&&r.type==="element"&&(t=Ht(t),n=Ht(n),ee(t)&&ee(n)))?null:(Zl(e,r,o),[e,r])}function Xl(t){return O(t)&&!t.isInline()}function ql(t,e,n,r,i,o){let l=Ye();return t=new wt(new je(t,e,i),new je(n,r,o),0),t.dirty=!0,l._selection=t}function Ti(){return new hr(new Set)}function nu(t){let e=t.getEditorState()._selection,n=Ee?window.getSelection():null;return Nn(e)||Ei(e)?e.clone():Ql(e,n,t)}function Ql(t,e,n){var r=n._window;if(r===null)return null;var i=r.event,o=i?i.type:void 0;r=o==="selectionchange",i=!ri&&(r||o==="beforeinput"||o==="compositionstart"||o==="compositionend"||o==="click"&&i&&i.detail===3||o==="drop"||o===void 0);let l;if(!H(t)||i){if(e===null)return null;if(i=e.anchorNode,o=e.focusNode,l=e.anchorOffset,e=e.focusOffset,r&&H(t)&&!nr(n,i,o))return t.clone()}else return t.clone();if(n=Jl(i,l,o,e,n,t),n===null)return null;let[s,a]=n;return new wt(s,a,H(t)?t.format:0)}function Z(){return Ye()._selection}function En(){return oe()._editorState._selection}function mr(t,e,n,r=1){var i=t.anchor,o=t.focus,l=i.getNode(),s=o.getNode();if(e.is(l)||e.is(s))if(l=e.__key,t.isCollapsed())e=i.offset,n<=e&&(n=Math.max(0,e+r),i.set(l,n,"element"),o.set(l,n,"element"),es(t));else{var a=t.isBackward();s=a?o:i;var c=s.getNode();i=a?i:o,o=i.getNode(),e.is(c)&&(c=s.offset,n<=c&&s.set(l,Math.max(0,c+r),"element")),e.is(o)&&(e=i.offset,n<=e&&i.set(l,Math.max(0,e+r),"element")),es(t)}}function es(t){var e=t.anchor,n=e.offset;let r=t.focus;var i=r.offset,o=e.getNode(),l=r.getNode();if(t.isCollapsed())O(o)&&(l=o.getChildrenSize(),l=(i=n>=l)?o.getChildAtIndex(l-1):o.getChildAtIndex(n),L(l)&&(n=0,i&&(n=l.getTextContentSize()),e.set(l.__key,n,"text"),r.set(l.__key,n,"text")));else{if(O(o)){let s=o.getChildrenSize();n=(t=n>=s)?o.getChildAtIndex(s-1):o.getChildAtIndex(n),L(n)&&(o=0,t&&(o=n.getTextContentSize()),e.set(n.__key,o,"text"))}O(l)&&(n=l.getChildrenSize(),i=(e=i>=n)?l.getChildAtIndex(n-1):l.getChildAtIndex(i),L(i)&&(l=0,e&&(l=i.getTextContentSize()),r.set(i.__key,l,"text")))}}function ru(t,e){if(e=e.getEditorState()._selection,t=t._selection,H(t)){var n=t.anchor;let r=t.focus,i;n.type==="text"&&(i=n.getNode(),i.selectionTransform(e,t)),r.type==="text"&&(n=r.getNode(),i!==n&&n.selectionTransform(e,t))}}function xr(t,e,n,r,i){let o=null,l=0,s=null;r!==null?(o=r.__key,L(r)?(l=r.getTextContentSize(),s="text"):O(r)&&(l=r.getChildrenSize(),s="element")):i!==null&&(o=i.__key,L(i)?s="text":O(i)&&(s="element")),o!==null&&s!==null?t.set(o,l,s):(l=e.getIndexWithinParent(),l===-1&&(l=n.getChildrenSize()),t.set(n.__key,l,"element"))}function ts(t,e,n,r,i){t.type==="text"?(t.key=n,e||(t.offset+=i)):t.offset>r.getIndexWithinParent()&&--t.offset}let ye=null,ge=null,ae=!1,Si=!1,Tn=0;function Re(){ae&&A(13)}function Ye(){return ye===null&&A(15),ye}function oe(){return ge===null&&A(16),ge}function ns(t,e,n){var r=e.__type;let i=t._nodes.get(r);for(i===void 0&&A(30),t=n.get(r),t===void 0&&(t=Array.from(i.transforms),n.set(r,t)),n=t.length,r=0;r<n&&(t[r](e),e.isAttached());r++);}function iu(t,e){e=e._dirtyLeaves,t=t._nodeMap;for(let n of e)e=t.get(n),L(e)&&e.isAttached()&&e.isSimpleText()&&!e.isUnmergeable()&&Sl(e)}function ou(t,e){let n=e._dirtyLeaves,r=e._dirtyElements;t=t._nodeMap;let i=lt(),o=new Map;var l=n;let s=l.size;for(var a=r,c=a.size;0<s||0<c;){if(0<s){e._dirtyLeaves=new Set;for(let d of l)l=t.get(d),L(l)&&l.isAttached()&&l.isSimpleText()&&!l.isUnmergeable()&&Sl(l),l!==void 0&&l!==void 0&&l.__key!==i&&l.isAttached()&&ns(e,l,o),n.add(d);if(l=e._dirtyLeaves,s=l.size,0<s){Tn++;continue}}e._dirtyLeaves=new Set,e._dirtyElements=new Map;for(let d of a)a=d[0],c=d[1],(a==="root"||c)&&(l=t.get(a),l!==void 0&&l!==void 0&&l.__key!==i&&l.isAttached()&&ns(e,l,o),r.set(a,c));l=e._dirtyLeaves,s=l.size,a=e._dirtyElements,c=a.size,Tn++}e._dirtyLeaves=n,e._dirtyElements=r}function bi(t,e){var n=e.get(t.type);if(n===void 0&&A(17),n=n.klass,t.type!==n.getType()&&A(18),n=n.importJSON(t),t=t.children,O(n)&&Array.isArray(t))for(let r=0;r<t.length;r++){let i=bi(t[r],e);n.append(i)}return n}function rs(t,e){let n=ye,r=ae,i=ge;ye=t,ae=!0,ge=null;try{return e()}finally{ye=n,ae=r,ge=i}}function yt(t){var e=t._pendingEditorState,n=t._rootElement,r=t._headless;if((n!==null||r)&&e!==null){var i=t._editorState,o=i._selection,l=e._selection,s=t._dirtyType!==0,a=ye,c=ae,d=ge,u=t._updating,g=t._observer,m=null;if(t._pendingEditorState=null,t._editorState=e,!r&&s&&g!==null){ge=t,ye=e,ae=!1,t._updating=!0;try{var f=t._dirtyType,_=t._dirtyElements,C=t._dirtyLeaves;g.disconnect(),Te=Xe=ue="",Ol=f===2,dr=null,Se=t,vt=t._config,pn=t._nodes,cr=Se._listeners.mutation,fi=_,pi=C,mn=i._nodeMap,Kt=e._nodeMap,hi=e._readOnly,mi=new Map(t._keyToDOMMap);var E=new Map;xn=E,vn("root",null),xn=mi=vt=Kt=mn=pi=fi=pn=Se=void 0,m=E}catch(X){if(X instanceof Error&&t._onError(X),Si)throw X;cs(t,null,n,e),cl(t),t._dirtyType=2,Si=!0,yt(t),Si=!1;return}finally{g.observe(n,{characterData:!0,childList:!0,subtree:!0}),t._updating=u,ye=a,ae=c,ge=d}}e._readOnly||(e._readOnly=!0),u=t._dirtyLeaves,g=t._dirtyElements,E=t._normalizedNodes,f=t._updateTags,c=t._deferred,s&&(t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements=new Map,t._normalizedNodes=new Set,t._updateTags=new Set),C=t._decorators,_=t._pendingDecorators||C;var p=e._nodeMap;for(se in _)p.has(se)||(_===C&&(_=pl(t)),delete _[se]);if(r=r?null:Ee?window.getSelection():null,t._editable&&r!==null&&(s||l===null||l.dirty)){ge=t,ye=e;try{e:{let X=r.anchorNode,we=r.focusNode,sn=r.anchorOffset,Fe=r.focusOffset,an=document.activeElement;if(!f.has("collaboration")||an===n)if(H(l)){var v=l.anchor,T=l.focus,N=v.key,k=T.key,R=or(t,N),I=or(t,k),$=v.offset,U=T.offset,P=l.format,K=l.isCollapsed();s=R,k=I;var se=!1;if(v.type==="text"&&(s=rr(R),se=v.getNode().getFormat()!==P),T.type==="text"&&(k=rr(I)),s!==null&&k!==null){if(K&&(o===null||se||H(o)&&o.format!==P)){var ne=performance.now();Fl=[P,$,N,ne]}if(sn===$&&Fe===U&&X===s&&we===k&&(r.type!=="Range"||!K)&&(n===null||an!==null&&n.contains(an)||n.focus({preventScroll:!0}),v.type!=="element"))break e;try{if(r.setBaseAndExtent(s,$,k,U),!f.has("skip-scroll-into-view")&&l.isCollapsed()&&n!==null&&n===an){let He=l instanceof wt&&l.anchor.type==="element"?s.childNodes[$]||null:0<r.rangeCount?r.getRangeAt(0):null;if(He!==null){let $t=He.getBoundingClientRect(),Mt=n.ownerDocument,At=Mt.defaultView;if(At!==null)for(var{top:Oe,bottom:Ce}=$t,Pe,V;n!==null;){let Dt=n===Mt.body;if(Dt)Pe=0,V=sr(t).innerHeight;else{let pt=n.getBoundingClientRect();Pe=pt.top,V=pt.bottom}if(o=0,Oe<Pe?o=-(Pe-Oe):Ce>V&&(o=Ce-V),o!==0)if(Dt)At.scrollBy(0,o);else{let pt=n.scrollTop;n.scrollTop+=o;let It=n.scrollTop-pt;Oe-=It,Ce-=It}if(Dt)break;let Lt=n.assignedSlot||n.parentElement;n=Lt!==null&&Lt.nodeType===11?Lt.host:Lt}}}yi=!0}catch{}}}else o!==null&&nr(t,X,we)&&r.removeAllRanges()}}finally{ge=d,ye=a}}if(m!==null)for(a=m,d=Array.from(t._listeners.mutation),m=d.length,Pe=0;Pe<m;Pe++){let[X,we]=d[Pe];V=a.get(we),V!==void 0&&X(V,{dirtyLeaves:u,updateTags:f})}if(a=t._pendingDecorators,a!==null&&(t._decorators=a,t._pendingDecorators=null,Sn("decorator",t,!0,a)),a=ml(i),d=ml(e),a!==d&&Sn("textcontent",t,!0,d),Sn("update",t,!0,{dirtyElements:g,dirtyLeaves:u,editorState:e,normalizedNodes:E,prevEditorState:i,tags:f}),t._deferred=[],c.length!==0){e=t._updating,t._updating=!0;try{for(i=0;i<c.length;i++)c[i]()}finally{t._updating=e}}if(e=t._updates,e.length!==0&&(e=e.shift())){let[X,we]=e;os(t,X,we)}}}function Sn(t,e,n,...r){let i=e._updating;e._updating=n;try{let o=Array.from(e._listeners[t]);for(t=0;t<o.length;t++)o[t].apply(null,r)}finally{e._updating=i}}function M(t,e,n){if(t._updating===!1||ge!==t){let o=!1;return t.update(()=>{o=M(t,e,n)}),o}let r=si(t);for(let o=4;0<=o;o--)for(let l=0;l<r.length;l++){var i=r[l]._commands.get(e);if(i!==void 0&&(i=i[o],i!==void 0)){i=Array.from(i);let s=i.length;for(let a=0;a<s;a++)if(i[a](n,t)===!0)return!0}}return!1}function is(t,e){let n=t._updates;for(e=e||!1;n.length!==0;){var r=n.shift();if(r){let[i,o]=r,l;o!==void 0&&(r=o.onUpdate,l=o.tag,o.skipTransforms&&(e=!0),r&&t._deferred.push(r),l&&t._updateTags.add(l)),i()}}return e}function os(t,e,n){let r=t._updateTags;var i,o=i=!1;if(n!==void 0){var l=n.onUpdate;i=n.tag,i!=null&&r.add(i),i=n.skipTransforms||!1,o=n.discrete||!1}l&&t._deferred.push(l),n=t._editorState,l=t._pendingEditorState;let s=!1;(l===null||l._readOnly)&&(l=t._pendingEditorState=new vr(new Map((l||n)._nodeMap)),s=!0),l._flushSync=o,o=ye;let a=ae,c=ge,d=t._updating;ye=l,ae=!1,t._updating=!0,ge=t;try{s&&(t._headless?n._selection!=null&&(l._selection=n._selection.clone()):l._selection=nu(t));let u=t._compositionKey;e(),i=is(t,i),ru(l,t),t._dirtyType!==0&&(i?iu(l,t):ou(l,t),is(t),jd(n,l,t._dirtyLeaves,t._dirtyElements)),u!==t._compositionKey&&(l._flushSync=!0);let g=l._selection;if(H(g)){let m=l._nodeMap,f=g.focus.key;m.get(g.anchor.key)!==void 0&&m.get(f)!==void 0||A(19)}else Nn(g)&&g._nodes.size===0&&(l._selection=null)}catch(u){u instanceof Error&&t._onError(u),t._pendingEditorState=n,t._dirtyType=2,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),yt(t);return}finally{ye=o,ae=a,ge=c,t._updating=d,Tn=0}t._dirtyType!==0||lu(l,t)?l._flushSync?(l._flushSync=!1,yt(t)):s&&Hd(()=>{yt(t)}):(l._flushSync=!1,s&&(r.clear(),t._deferred=[],t._pendingEditorState=null))}function $e(t,e,n){t._updating?t._updates.push([e,n]):os(t,e,n)}function Ri(t,e,n){Re();var r=t.__key;let i=t.getParent();if(i!==null){var o=Ud(t),l=!1;if(H(o)&&e){var s=o.anchor;let a=o.focus;s.key===r&&(xr(s,t,i,t.getPreviousSibling(),t.getNextSibling()),l=!0),a.key===r&&(xr(a,t,i,t.getPreviousSibling(),t.getNextSibling()),l=!0)}s=i.getWritable().__children,r=s.indexOf(r),r===-1&&A(31),Bt(t),s.splice(r,1),t.getWritable().__parent=null,H(o)&&e&&!l&&mr(o,i,r,-1),n||at(i)||i.canBeEmpty()||!i.isEmpty()||Ri(i,e),Me(i)&&i.isEmpty()&&i.selectEnd()}}function ls(t){return t=q(t),t===null&&A(63),t}class _r{static getType(){A(64)}static clone(){A(65)}constructor(e){this.__type=this.constructor.getType(),this.__parent=null,hl(this,e)}getType(){return this.__type}isAttached(){for(var e=this.__key;e!==null;){if(e==="root")return!0;if(e=q(e),e===null)break;e=e.__parent}return!1}isSelected(){let e=Z();if(e==null)return!1;let n=e.getNodes().some(r=>r.__key===this.__key);return L(this)?n:H(e)&&e.anchor.type==="element"&&e.focus.type==="element"&&e.anchor.key===e.focus.key&&e.anchor.offset===e.focus.offset?!1:n}getKey(){return this.__key}getIndexWithinParent(){let e=this.getParent();return e===null?-1:e.__children.indexOf(this.__key)}getParent(){let e=this.getLatest().__parent;return e===null?null:q(e)}getParentOrThrow(){let e=this.getParent();return e===null&&A(66),e}getTopLevelElement(){let e=this;for(;e!==null;){let n=e.getParent();if(at(n))return e;e=n}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return e===null&&A(67),e}getParents(){let e=[],n=this.getParent();for(;n!==null;)e.push(n),n=n.getParent();return e}getParentKeys(){let e=[],n=this.getParent();for(;n!==null;)e.push(n.__key),n=n.getParent();return e}getPreviousSibling(){var e=this.getParent();if(e===null)return null;e=e.__children;let n=e.indexOf(this.__key);return 0>=n?null:q(e[n-1])}getPreviousSiblings(){var e=this.getParent();if(e===null)return[];e=e.__children;let n=e.indexOf(this.__key);return e.slice(0,n).map(r=>ls(r))}getNextSibling(){var e=this.getParent();if(e===null)return null;e=e.__children;let n=e.length,r=e.indexOf(this.__key);return r>=n-1?null:q(e[r+1])}getNextSiblings(){var e=this.getParent();if(e===null)return[];e=e.__children;let n=e.indexOf(this.__key);return e.slice(n+1).map(r=>ls(r))}getCommonAncestor(e){let n=this.getParents();var r=e.getParents();O(this)&&n.unshift(this),O(e)&&r.unshift(e),e=n.length;var i=r.length;if(e===0||i===0||n[e-1]!==r[i-1])return null;for(r=new Set(r),i=0;i<e;i++){let o=n[i];if(r.has(o))return o}return null}is(e){return e==null?!1:this.__key===e.__key}isBefore(e){if(e.isParentOf(this))return!0;if(this.isParentOf(e))return!1;var n=this.getCommonAncestor(e);let r=this;for(;;){var i=r.getParentOrThrow();if(i===n){i=i.__children.indexOf(r.__key);break}r=i}for(r=e;;){if(e=r.getParentOrThrow(),e===n){n=e.__children.indexOf(r.__key);break}r=e}return i<n}isParentOf(e){let n=this.__key;if(n===e.__key)return!1;for(;e!==null;){if(e.__key===n)return!0;e=e.getParent()}return!1}getNodesBetween(e){let n=this.isBefore(e),r=[],i=new Set;for(var o=this;;){var l=o.__key;if(i.has(l)||(i.add(l),r.push(o)),o===e)break;if(l=O(o)?n?o.getFirstChild():o.getLastChild():null,l!==null)o=l;else if(l=n?o.getNextSibling():o.getPreviousSibling(),l!==null)o=l;else{if(o=o.getParentOrThrow(),i.has(o.__key)||r.push(o),o===e)break;l=o;do l===null&&A(68),o=n?l.getNextSibling():l.getPreviousSibling(),l=l.getParent(),l!==null&&(o!==null||i.has(l.__key)||r.push(l));while(o===null)}}return n||r.reverse(),r}isDirty(){let e=oe()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){let e=q(this.__key);return e===null&&A(69),e}getWritable(){Re();var e=Ye(),n=oe();e=e._nodeMap;let r=this.__key,i=this.getLatest(),o=i.__parent;n=n._cloneNotNeeded;var l=Z();return l!==null&&(l._cachedNodes=null),n.has(r)?(zt(i),i):(l=i.constructor.clone(i),l.__parent=o,O(i)&&O(l)?(l.__children=Array.from(i.__children),l.__indent=i.__indent,l.__format=i.__format,l.__dir=i.__dir):L(i)&&L(l)&&(l.__format=i.__format,l.__style=i.__style,l.__mode=i.__mode,l.__detail=i.__detail),n.add(r),l.__key=r,zt(l),e.set(r,l),l)}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(){A(70)}updateDOM(){A(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){A(72)}static importJSON(){A(18)}remove(e){Ri(this,!0,e)}replace(e){Re(),gi(this,e);let n=this.__key;e=e.getWritable(),ir(e);var r=this.getParentOrThrow(),i=r.getWritable().__children;let o=i.indexOf(this.__key),l=e.__key;return o===-1&&A(31),i.splice(o,0,l),e.__parent=r.__key,Ri(this,!1),Bt(e),i=Z(),H(i)&&(r=i.anchor,i=i.focus,r.key===n&&Wl(r,e),i.key===n&&Wl(i,e)),lt()===n&&he(l),e}insertAfter(e){Re(),gi(this,e);var n=this.getWritable(),r=e.getWritable(),i=r.getParent();let o=Z();var l=e.getIndexWithinParent(),s=!1,a=!1;i!==null&&(ir(r),H(o)&&(a=i.__key,s=o.anchor,i=o.focus,s=s.type==="element"&&s.key===a&&s.offset===l+1,a=i.type==="element"&&i.key===a&&i.offset===l+1)),l=this.getParentOrThrow().getWritable(),i=r.__key,r.__parent=n.__parent;let c=l.__children;return n=c.indexOf(n.__key),n===-1&&A(31),c.splice(n+1,0,i),Bt(r),H(o)&&(mr(o,l,n+1),r=l.__key,s&&o.anchor.set(r,n+2,"element"),a&&o.focus.set(r,n+2,"element")),e}insertBefore(e){Re(),gi(this,e);var n=this.getWritable(),r=e.getWritable();ir(r);let i=this.getParentOrThrow().getWritable(),o=r.__key;r.__parent=n.__parent;let l=i.__children;return n=l.indexOf(n.__key),n===-1&&A(31),l.splice(n,0,o),Bt(r),r=Z(),H(r)&&mr(r,i,n),e}selectPrevious(e,n){Re();let r=this.getPreviousSibling(),i=this.getParentOrThrow();return r===null?i.select(0,0):O(r)?r.select():L(r)?r.select(e,n):(e=r.getIndexWithinParent()+1,i.select(e,e))}selectNext(e,n){Re();let r=this.getNextSibling(),i=this.getParentOrThrow();return r===null?i.select():O(r)?r.select(0,0):L(r)?r.select(e,n):(e=r.getIndexWithinParent(),i.select(e,e))}markDirty(){this.getWritable()}}class ss extends _r{constructor(e){super(e)}decorate(){A(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function ee(t){return t instanceof ss}class kt extends _r{constructor(e){super(e),this.__children=[],this.__indent=this.__format=0,this.__dir=null}getFormat(){return this.getLatest().__format}getFormatType(){let e=this.getFormat();return Ld[e]||""}getIndent(){return this.getLatest().__indent}getChildren(){let e=this.getLatest().__children,n=[];for(let r=0;r<e.length;r++){let i=q(e[r]);i!==null&&n.push(i)}return n}getChildrenKeys(){return this.getLatest().__children}getChildrenSize(){return this.getLatest().__children.length}isEmpty(){return this.getChildrenSize()===0}isDirty(){let e=oe()._dirtyElements;return e!==null&&e.has(this.__key)}isLastChild(){let e=this.getLatest();return e.getParentOrThrow().getLastChild()===e}getAllTextNodes(){let e=[],n=this.getLatest().__children;for(let i=0;i<n.length;i++){var r=q(n[i]);L(r)?e.push(r):O(r)&&(r=r.getAllTextNodes(),e.push(...r))}return e}getFirstDescendant(){let e=this.getFirstChild();for(;e!==null;){if(O(e)){let n=e.getFirstChild();if(n!==null){e=n;continue}}break}return e}getLastDescendant(){let e=this.getLastChild();for(;e!==null;){if(O(e)){let n=e.getLastChild();if(n!==null){e=n;continue}}break}return e}getDescendantByIndex(e){let n=this.getChildren(),r=n.length;return e>=r?(e=n[r-1],O(e)&&e.getLastDescendant()||e||null):(e=n[e],O(e)&&e.getFirstDescendant()||e||null)}getFirstChild(){let e=this.getLatest().__children;return e.length===0?null:q(e[0])}getFirstChildOrThrow(){let e=this.getFirstChild();return e===null&&A(45),e}getLastChild(){let e=this.getLatest().__children,n=e.length;return n===0?null:q(e[n-1])}getLastChildOrThrow(){let e=this.getLastChild();return e===null&&A(96),e}getChildAtIndex(e){return e=this.getLatest().__children[e],e===void 0?null:q(e)}getTextContent(){let e="",n=this.getChildren(),r=n.length;for(let i=0;i<r;i++){let o=n[i];e+=o.getTextContent(),O(o)&&i!==r-1&&!o.isInline()&&(e+=`
23
+ `?(t.preventDefault(),M(e,Gr,void 0)):i==null&&t.dataTransfer?(i=t.dataTransfer.getData("text/plain"),t.preventDefault(),r.insertRawText(i)):i!=null&&yl(r,i)&&(t.preventDefault(),M(e,Ft,i));else switch(t.preventDefault(),n){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":M(e,Ft,t);break;case"insertFromComposition":he(null),M(e,Ft,t);break;case"insertLineBreak":he(null),M(e,dn,!1);break;case"insertParagraph":he(null),kn?(kn=!1,M(e,dn,!1)):M(e,Gr,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":M(e,Zr,t);break;case"deleteByComposition":Zd(l,o)&&M(e,Jr,void 0);break;case"deleteByDrag":case"deleteByCut":M(e,Jr,void 0);break;case"deleteContent":M(e,cn,!1);break;case"deleteWordBackward":M(e,un,!0);break;case"deleteWordForward":M(e,un,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":M(e,gn,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":M(e,gn,!1);break;case"formatStrikeThrough":M(e,ot,"strikethrough");break;case"formatBold":M(e,ot,"bold");break;case"formatItalic":M(e,ot,"italic");break;case"formatUnderline":M(e,ot,"underline");break;case"historyUndo":M(e,Xr,void 0);break;case"historyRedo":M(e,qr,void 0)}}})}function Xd(t,e){t.stopPropagation(),$e(e,()=>{var n=Z(),r=t.data;r!=null&&H(n)&&yl(n,r)?(Cn&&(Ci(e,r),Cn=!1),M(e,Ft,r),r=r.length,mt&&1<r&&t.inputType==="insertCompositionText"&&!e.isComposing()&&(n.anchor.offset-=r),ti||ni||!e.isComposing()||(wn=0,he(null))):(wl(!1),Cn&&(Ci(e,r||void 0),Cn=!1)),Re(),n=oe(),cl(n)})}function qd(t,e){$e(e,()=>{let n=Z();if(H(n)&&!e.isComposing()){let r=n.anchor;he(r.key),(t.timeStamp<wn+30||r.type==="element"||!n.isCollapsed()||n.anchor.getNode().getFormat()!==n.format)&&M(e,Ft,$d)}})}function Ci(t,e){var n=t._compositionKey;if(he(null),n!==null&&e!=null){if(e===""){e=q(n),t=rr(t.getElementByKey(n)),t!==null&&t.nodeValue!==null&&L(e)&&ai(e,t.nodeValue,null,null,!0);return}if(e[e.length-1]===`
24
+ `&&(n=Z(),H(n))){e=n.focus,n.anchor.set(e.key,e.offset,e.type),M(t,er,null);return}}wl(!0,e)}function Qd(t,e){mt?Cn=!0:$e(e,()=>{Ci(e,t.data)})}function eu(t,e){if(wn=t.timeStamp,Fl=t.keyCode,!e.isComposing()){var{keyCode:n,shiftKey:r,ctrlKey:i,metaKey:o,altKey:l}=t;if(n!==39||i||o||l)if(n!==39||l||r||!i&&!o)if(n!==37||i||o||l)if(n!==37||l||r||!i&&!o)if(n!==38||i||o)if(n!==40||i||o)if(n===13&&r)kn=!0,M(e,er,t);else if(n===32)M(e,Zo,t);else if(be&&i&&n===79)t.preventDefault(),kn=!0,M(e,dn,!0);else if(n!==13||r){var s=be?l||o?!1:n===8||n===72&&i:i||l||o?!1:n===8;s?n===8?M(e,Jo,t):(t.preventDefault(),M(e,cn,!0)):n===27?M(e,Xo,t):(s=be?r||l||o?!1:n===46||n===68&&i:i||l||o?!1:n===46,s?n===46?M(e,qo,t):(t.preventDefault(),M(e,cn,!1)):n===8&&(be?l:i)?(t.preventDefault(),M(e,un,!0)):n===46&&(be?l:i)?(t.preventDefault(),M(e,un,!1)):be&&o&&n===8?(t.preventDefault(),M(e,gn,!0)):be&&o&&n===46?(t.preventDefault(),M(e,gn,!1)):n===66&&!l&&(be?o:i)?(t.preventDefault(),M(e,ot,"bold")):n===85&&!l&&(be?o:i)?(t.preventDefault(),M(e,ot,"underline")):n===73&&!l&&(be?o:i)?(t.preventDefault(),M(e,ot,"italic")):n!==9||l||i||o?n===90&&!r&&(be?o:i)?(t.preventDefault(),M(e,Xr,void 0)):(s=be?n===90&&o&&r:n===89&&i||n===90&&i&&r,s?(t.preventDefault(),M(e,qr,void 0)):Nn(e._editorState._selection)&&(s=r?!1:n===67?be?o:i:!1,s?(t.preventDefault(),M(e,Qr,t)):(s=r?!1:n===88?be?o:i:!1,s&&(t.preventDefault(),M(e,ei,t))))):M(e,Qo,t))}else kn=!1,M(e,er,t);else M(e,Go,t);else M(e,Vo,t);else M(e,Yo,t);else M(e,jo,t);else M(e,Uo,t);else M(e,Wo,t);(i||r||l||o)&&M(e,ll,t)}}function Kl(t){let e=t.__lexicalEventHandles;return e===void 0&&(e=[],t.__lexicalEventHandles=e),e}let Wt=new Map;function Wl(){let t=Ee?window.getSelection():null;if(t!==null){var e=ul(t.anchorNode);if(e!==null){ki&&(ki=!1,$e(e,()=>{var l=En(),s=t.anchorNode;s!==null&&(s=s.nodeType,s===1||s===3)&&(l=es(l,t,e),_t(l))}));var n=si(e);n=n[n.length-1];var r=n._key,i=Wt.get(r),o=i||n;o!==e&&Hl(t,o,!1),Hl(t,e,!0),e!==n?Wt.set(r,e):i&&Wt.delete(r)}}}function tu(t,e){yn===0&&t.ownerDocument.addEventListener("selectionchange",Wl),yn++,t.__lexicalEditor=e;let n=Kl(t);for(let r=0;r<wi.length;r++){let[i,o]=wi[r],l=typeof o=="function"?s=>{s._lexicalHandled!==!0&&(s._lexicalHandled=!0,e.isEditable()&&o(s,e))}:s=>{if(s._lexicalHandled!==!0&&(s._lexicalHandled=!0,e.isEditable()))switch(i){case"cut":return M(e,ei,s);case"copy":return M(e,Qr,s);case"paste":return M(e,Zr,s);case"dragstart":return M(e,tl,s);case"dragover":return M(e,nl,s);case"dragend":return M(e,rl,s);case"focus":return M(e,il,s);case"blur":return M(e,ol,s);case"drop":return M(e,el,s)}};t.addEventListener(i,l),n.push(()=>{t.removeEventListener(i,l)})}}class Ye{constructor(e,n,r){this._selection=null,this.key=e,this.offset=n,this.type=r}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){let n=this.getNode(),r=e.getNode(),i=this.offset;if(e=e.offset,O(n)){var o=n.getDescendantByIndex(i);n=o!=null?o:n}return O(r)&&(o=r.getDescendantByIndex(e),r=o!=null?o:r),n===r?i<e:n.isBefore(r)}getNode(){let e=q(this.key);return e===null&&A(20),e}set(e,n,r){let i=this._selection,o=this.key;this.key=e,this.offset=n,this.type=r,ae||(lt()===o&&he(e),i!==null&&(i._cachedNodes=null,i.dirty=!0))}}function Ni(t,e){let n=e.__key,r=t.offset,i="element";if(L(e))i="text",e=e.getTextContentSize(),r>e&&(r=e);else if(!O(e)){var o=e.getNextSibling();L(o)?(n=o.__key,r=0):(o=e.getParent())&&(n=o.__key,r=e.getIndexWithinParent()+1)}t.set(n,r,i)}function Ul(t,e){if(O(e)){let n=e.getLastDescendant();O(n)||L(n)?Ni(t,n):Ni(t,e)}else Ni(t,e)}function jl(t,e,n){let r=t.getNode(),i=r.getChildAtIndex(t.offset),o=fe(),l=Me(r)?Gt().append(o):o;o.setFormat(n),i===null?r.append(l):i.insertBefore(l),t.is(e)&&e.set(o.__key,0,"text"),t.set(o.__key,0,"text")}function ct(t,e,n,r){t.key=e,t.offset=n,t.type=r}class hr{constructor(e){this.dirty=!1,this._nodes=e,this._cachedNodes=null}is(e){if(!Nn(e))return!1;let n=this._nodes,r=e._nodes;return n.size===r.size&&Array.from(n).every(i=>r.has(i))}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 hr(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(){}insertText(){}insertNodes(e,n){let r=this.getNodes(),i=r.length;var o=r[i-1];if(L(o))o=o.select();else{let l=o.getIndexWithinParent()+1;o=o.getParentOrThrow().select(l,l)}for(o.insertNodes(e,n),e=0;e<i;e++)r[e].remove();return!0}getNodes(){var e=this._cachedNodes;if(e!==null)return e;var n=this._nodes;e=[];for(let r of n)n=q(r),n!==null&&e.push(n);return ae||(this._cachedNodes=e),e}getTextContent(){let e=this.getNodes(),n="";for(let r=0;r<e.length;r++)n+=e[r].getTextContent();return n}}function H(t){return t instanceof wt}class fr{constructor(e,n,r){this.gridKey=e,this.anchor=n,this.focus=r,this.dirty=!1,this._cachedNodes=null,n._selection=this,r._selection=this}is(e){return Ei(e)?this.gridKey===e.gridKey&&this.anchor.is(e.anchor)&&this.focus.is(e.focus):!1}set(e,n,r){this.dirty=!0,this.gridKey=e,this.anchor.key=n,this.focus.key=r,this._cachedNodes=null}clone(){return new fr(this.gridKey,this.anchor,this.focus)}isCollapsed(){return!1}isBackward(){return this.focus.isBefore(this.anchor)}getCharacterOffsets(){return pr(this)}extract(){return this.getNodes()}insertRawText(){}insertText(){}insertNodes(e,n){let r=this.focus.getNode();return Rl(r.select(0,r.getChildrenSize())).insertNodes(e,n)}getShape(){var e=q(this.anchor.key);e===null&&A(21);var n=e.getIndexWithinParent();e=e.getParentOrThrow().getIndexWithinParent();var r=q(this.focus.key);r===null&&A(22);var i=r.getIndexWithinParent();let o=r.getParentOrThrow().getIndexWithinParent();return r=Math.min(n,i),n=Math.max(n,i),i=Math.min(e,o),e=Math.max(e,o),{fromX:Math.min(r,n),fromY:Math.min(i,e),toX:Math.max(r,n),toY:Math.max(i,e)}}getNodes(){var e=this._cachedNodes;if(e!==null)return e;e=new Set;let{fromX:n,fromY:r,toX:i,toY:o}=this.getShape();var l=q(this.gridKey);fs(l)||A(23),e.add(l),l=l.getChildren();for(let c=r;c<=o;c++){var s=l[c];e.add(s),ms(s)||A(24),s=s.getChildren();for(let d=n;d<=i;d++){var a=s[d];for(gs(a)||A(25),e.add(a),a=a.getChildren();0<a.length;){let u=a.shift();e.add(u),O(u)&&a.unshift(...u.getChildren())}}}return e=Array.from(e),ae||(this._cachedNodes=e),e}getTextContent(){let e=this.getNodes(),n="";for(let r=0;r<e.length;r++)n+=e[r].getTextContent();return n}}function Ei(t){return t instanceof fr}class wt{constructor(e,n,r){this.anchor=e,this.focus=n,this.dirty=!1,this.format=r,this._cachedNodes=null,e._selection=this,n._selection=this}is(e){return H(e)?this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format:!1}isBackward(){return this.focus.isBefore(this.anchor)}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){var e=this._cachedNodes;if(e!==null)return e;var n=this.anchor,r=this.focus;e=n.getNode();let i=r.getNode();return O(e)&&(n=e.getDescendantByIndex(n.offset),e=n!=null?n:e),O(i)&&(r=i.getDescendantByIndex(r.offset),i=r!=null?r:i),e=e.is(i)?O(e)&&0<e.getChildrenSize()?[]:[e]:e.getNodesBetween(i),ae||(this._cachedNodes=e),e}setTextNodeRange(e,n,r,i){ct(this.anchor,e.__key,n,"text"),ct(this.focus,r.__key,i,"text"),this._cachedNodes=null,this.dirty=!0}getTextContent(){let e=this.getNodes();if(e.length===0)return"";let n=e[0],r=e[e.length-1],i=this.anchor.isBefore(this.focus),[o,l]=pr(this),s="",a=!0;for(let c=0;c<e.length;c++){let d=e[c];if(O(d)&&!d.isInline())a||(s+=`
25
+ `),a=!d.isEmpty();else if(a=!1,L(d)){let u=d.getTextContent();d===n?u=d===r?o<l?u.slice(o,l):u.slice(l,o):i?u.slice(o):u.slice(l):d===r&&(u=i?u.slice(0,l):u.slice(0,o)),s+=u}else!ee(d)&&!Rn(d)||d===r&&this.isCollapsed()||(s+=d.getTextContent())}return s}applyDOMRange(e){let n=oe(),r=n.getEditorState()._selection;if(e=Xl(e.startContainer,e.startOffset,e.endContainer,e.endOffset,n,r),e!==null){var[i,o]=e;ct(this.anchor,i.key,i.offset,i.type),ct(this.focus,o.key,o.offset,o.type),this._cachedNodes=null}}clone(){let e=this.anchor,n=this.focus;return new wt(new Ye(e.key,e.offset,e.type),new Ye(n.key,n.offset,n.type),this.format)}toggleFormat(e){this.format=gl(this.format,e,null),this.dirty=!0}hasFormat(e){return(this.format&xt[e])!==0}insertRawText(e){let n=e.split(/\r?\n/);if(n.length===1)this.insertText(e);else{e=[];let r=n.length;for(let i=0;i<r;i++){let o=n[i];o!==""&&e.push(fe(o)),i!==r-1&&e.push(bn())}this.insertNodes(e)}}insertText(e){var n=this.anchor,r=this.focus,i=this.isCollapsed()||n.isBefore(r),o=this.format;i&&n.type==="element"?jl(n,r,o):i||r.type!=="element"||jl(r,n,o);var l=this.getNodes(),s=l.length,a=i?r:n;r=(i?n:r).offset;var c=a.offset;n=l[0],L(n)||A(26),i=n.getTextContent().length;var d=n.getParentOrThrow(),u=l[s-1];if(this.isCollapsed()&&r===i&&(n.isSegmented()||n.isToken()||!n.canInsertTextAfter()||!d.canInsertTextAfter()&&n.getNextSibling()===null)){var g=n.getNextSibling();if((!L(g)||li(g))&&(g=fe(),g.setFormat(o),d.canInsertTextAfter()?n.insertAfter(g):d.insertAfter(g)),g.select(0,0),n=g,e!==""){this.insertText(e);return}}else if(this.isCollapsed()&&r===0&&(n.isSegmented()||n.isToken()||!n.canInsertTextBefore()||!d.canInsertTextBefore()&&n.getPreviousSibling()===null)){if(g=n.getPreviousSibling(),(!L(g)||li(g))&&(g=fe(),g.setFormat(o),d.canInsertTextBefore()?n.insertBefore(g):d.insertBefore(g)),g.select(),n=g,e!==""){this.insertText(e);return}}else if(n.isSegmented()&&r!==i)d=fe(n.getTextContent()),d.setFormat(o),n.replace(d),n=d;else if(!(this.isCollapsed()||e===""||(g=u.getParent(),d.canInsertTextBefore()&&d.canInsertTextAfter()&&(!O(g)||g.canInsertTextBefore()&&g.canInsertTextAfter())))){this.insertText(""),Jl(this.anchor,this.focus,null),this.insertText(e);return}if(s===1)if(n.isToken())e=fe(e),e.select(),n.replace(e);else{if(l=n.getFormat(),r===c&&l!==o)if(n.getTextContent()==="")n.setFormat(o);else{l=fe(e),l.setFormat(o),l.select(),r===0?n.insertBefore(l):([s]=n.splitText(r),s.insertAfter(l)),l.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length);return}n=n.spliceText(r,c-r,e,!0),n.getTextContent()===""?n.remove():this.anchor.type==="text"&&(n.isComposing()?this.anchor.offset-=e.length:this.format=l)}else{o=new Set([...n.getParentKeys(),...u.getParentKeys()]);var m=O(n)?n:n.getParentOrThrow();if(d=O(u)?u:u.getParentOrThrow(),g=u,!m.is(d)&&d.isInline())do g=d,d=d.getParentOrThrow();while(d.isInline());a.type==="text"&&(c!==0||u.getTextContent()==="")||a.type==="element"&&u.getIndexWithinParent()<c?L(u)&&!u.isToken()&&c!==u.getTextContentSize()?(u.isSegmented()&&(a=fe(u.getTextContent()),u.replace(a),u=a),u=u.spliceText(0,c,""),o.add(u.__key)):(a=u.getParentOrThrow(),a.canBeEmpty()||a.getChildrenSize()!==1?u.remove():a.remove()):o.add(u.__key),a=d.getChildren(),c=new Set(l),u=m.is(d),m=m.isInline()&&n.getNextSibling()===null?m:n;for(let f=a.length-1;0<=f;f--){let _=a[f];if(_.is(n)||O(_)&&_.isParentOf(n))break;_.isAttached()&&(!c.has(_)||_.is(g)?u||m.insertAfter(_):_.remove())}if(!u)for(a=d,c=null;a!==null;)u=a.getChildren(),d=u.length,(d===0||u[d-1].is(c))&&(o.delete(a.__key),c=a),a=a.getParent();for(n.isToken()?r===i?n.select():(e=fe(e),e.select(),n.replace(e)):(n=n.spliceText(r,i-r,e,!0),n.getTextContent()===""?n.remove():n.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length)),e=1;e<s;e++)n=l[e],o.has(n.__key)||n.remove()}}removeText(){this.insertText("")}formatText(e){if(this.isCollapsed())this.toggleFormat(e),he(null);else{var n=this.getNodes(),r=[];for(var i of n)L(i)&&r.push(i);var o=r.length;if(o===0)this.toggleFormat(e),he(null);else{i=this.anchor;var l=this.focus,s=this.isBackward();n=s?l:i,i=s?i:l;var a=0,c=r[0];if(l=n.type==="element"?0:n.offset,n.type==="text"&&l===c.getTextContentSize()&&(a=1,c=r[1],l=0),c!=null){s=c.getFormatFlags(e,null);var d=o-1,u=r[d];if(o=i.type==="text"?i.offset:u.getTextContentSize(),c.is(u))l!==o&&(l===0&&o===c.getTextContentSize()?c.setFormat(s):(e=c.splitText(l,o),e=l===0?e[0]:e[1],e.setFormat(s),n.type==="text"&&n.set(e.__key,0,"text"),i.type==="text"&&i.set(e.__key,o-l,"text")),this.format=s);else{l!==0&&([,c]=c.splitText(l),l=0),c.setFormat(s);var g=u.getFormatFlags(e,s);for(0<o&&(o!==u.getTextContentSize()&&([u]=u.splitText(o)),u.setFormat(g)),a+=1;a<d;a++){let m=r[a];if(!m.isToken()){let f=m.getFormatFlags(e,g);m.setFormat(f)}}n.type==="text"&&n.set(c.__key,l,"text"),i.type==="text"&&i.set(u.__key,o,"text"),this.format=s|g}}}}}insertNodes(e,n){if(!this.isCollapsed()){var r=this.isBackward()?this.anchor:this.focus,i=r.getNode().getNextSibling();if(i=i?i.getKey():null,r=(r=r.getNode().getPreviousSibling())?r.getKey():null,this.removeText(),this.isCollapsed()&&this.focus.type==="element"){if(this.focus.key===i&&this.focus.offset===0){var o=fe();this.focus.getNode().insertBefore(o)}else this.focus.key===r&&this.focus.offset===this.focus.getNode().getChildrenSize()&&(o=fe(),this.focus.getNode().insertAfter(o));o&&(this.focus.set(o.__key,0,"text"),this.anchor.set(o.__key,0,"text"))}}i=this.anchor,r=i.offset;var l=i.getNode();o=l,i.type==="element"&&(o=i.getNode(),i=o.getChildAtIndex(r-1),o=i===null?o:i),i=[];var s=l.getNextSiblings(),a=at(l)?null:l.getTopLevelElementOrThrow();if(L(l))if(o=l.getTextContent().length,r===0&&o!==0)o=l.getPreviousSibling(),o=o!==null?o:l.getParentOrThrow(),i.push(l);else if(r===o)o=l;else{if(l.isToken())return!1;[o,l]=l.splitText(r),i.push(l)}l=o,i.push(...s),s=e[0];var c=!1,d=null;for(let f=0;f<e.length;f++){var u=e[f];if(ee(o)||!O(u)||u.isInline())c&&!ee(u)&&at(o.getParent())&&A(28);else{if(u.is(s)){if(O(o)&&o.isEmpty()&&o.canReplaceWith(u)){o.replace(u),o=u,c=!0;continue}var g=u.getFirstDescendant();if(hl(g)){for(g=g.getParentOrThrow();g.isInline();)g=g.getParentOrThrow();if(d=g.getChildren(),c=d.length,O(o))for(var m=0;m<c;m++)o.append(d[m]);else{for(m=c-1;0<=m;m--)o.insertAfter(d[m]);o=o.getParentOrThrow()}if(d=d[c-1],g.remove(),c=!0,g.is(u))continue}}L(o)&&(a===null&&A(27),o=a)}c=!1,O(o)&&!o.isInline()?(d=u,ee(u)&&!u.isInline()?o=o.insertAfter(u):O(u)?(u.canBeEmpty()||!u.isEmpty())&&(Me(o)?(g=o.getChildAtIndex(r),g!==null?g.insertBefore(u):o.append(u),o=u):o=o.insertAfter(u)):(g=o.getFirstChild(),g!==null?g.insertBefore(u):o.append(u),o=u)):!O(u)||O(u)&&u.isInline()||ee(o)&&!o.isInline()?(d=u,o=o.insertAfter(u)):(u=o.getParentOrThrow(),Rn(o)&&o.remove(),o=u,f--)}if(n&&(L(l)?l.select():(e=o.getPreviousSibling(),L(e)?e.select():(e=o.getIndexWithinParent(),o.getParentOrThrow().select(e,e)))),O(o)){if(e=L(d)?d:O(d)&&d.isInline()?d.getLastDescendant():o.getLastDescendant(),n||(e===null?o.select():L(e)?e.select():e.selectNext()),i.length!==0)for(n=o,e=i.length-1;0<=e;e--)r=i[e],a=r.getParentOrThrow(),!O(o)||ql(r)||ee(r)&&(!r.isInline()||r.isIsolated())?O(o)||ql(r)?O(r)&&!r.canInsertAfter(o)?(l=a.constructor.clone(a),O(l)||A(29),l.append(r),o.insertAfter(l)):o.insertAfter(r):(o.insertBefore(r),o=r):(n===o?o.append(r):o.insertBefore(r),o=r),a.isEmpty()&&!a.canBeEmpty()&&a.remove()}else n||(L(o)?o.select():(n=o.getParentOrThrow(),e=o.getIndexWithinParent()+1,n.select(e,e)));return!0}insertParagraph(){this.isCollapsed()||this.removeText();var e=this.anchor,n=e.offset,r=[];if(e.type==="text"){var i=e.getNode(),o=i.getNextSiblings().reverse(),l=i.getParentOrThrow(),s=l.isInline(),a=s?l.getTextContentSize():i.getTextContentSize();n===0?o.push(i):(s&&(r=l.getNextSiblings()),n===a||s&&n===i.getTextContentSize()||([,i]=i.splitText(n),o.push(i)))}else{if(l=e.getNode(),at(l)){o=Gt(),r=l.getChildAtIndex(n),o.select(),r!==null?r.insertBefore(o):l.append(o);return}o=l.getChildren().slice(n).reverse()}if(i=o.length,n===0&&0<i&&l.isInline()){if(r=l.getParentOrThrow(),o=r.insertNewAfter(this),O(o))for(r=r.getChildren(),l=0;l<r.length;l++)o.append(r[l])}else if(s=l.insertNewAfter(this),s===null)this.insertLineBreak();else if(O(s))if(a=l.getFirstChild(),n===0&&(l.is(e.getNode())||a&&a.is(e.getNode()))&&0<i)l.insertBefore(s);else{if(l=null,n=r.length,e=s.getParentOrThrow(),0<n)for(a=0;a<n;a++)e.append(r[a]);if(i!==0)for(r=0;r<i;r++)n=o[r],l===null?s.append(n):l.insertBefore(n),l=n;s.canBeEmpty()||s.getChildrenSize()!==0?s.selectStart():(s.selectPrevious(),s.remove())}}insertLineBreak(e){let n=bn();var r=this.anchor;r.type==="element"&&(r=r.getNode(),Me(r)&&this.insertParagraph()),e?this.insertNodes([n],!0):this.insertNodes([n])&&n.selectNext(0,0)}getCharacterOffsets(){return pr(this)}extract(){var e=this.getNodes(),n=e.length,r=n-1,i=this.anchor;let o=this.focus;var l=e[0];let s=e[r],[a,c]=pr(this);return n===0?[]:n===1?L(l)&&!this.isCollapsed()?(e=a>c?c:a,r=l.splitText(e,a>c?a:c),e=e===0?r[0]:r[1],e!=null?[e]:[]):[l]:(n=i.isBefore(o),L(l)&&(i=n?a:c,i===l.getTextContentSize()?e.shift():i!==0&&([,l]=l.splitText(i),e[0]=l)),L(s)&&(l=s.getTextContent().length,n=n?c:a,n===0?e.pop():n!==l&&([s]=s.splitText(n),e[r]=s)),e)}modify(e,n,r){var i=this.focus,o=this.anchor,l=e==="move",s=di(i,n);if(ee(s)&&!s.isIsolated())l&&s.isKeyboardSelectable()?(n=Ti(),n.add(s.__key),_t(n)):(e=n?s.getPreviousSibling():s.getNextSibling(),L(e)?(s=e.__key,n=n?e.getTextContent().length:0,i.set(s,n,"text"),l&&o.set(s,n,"text")):(r=s.getParentOrThrow(),O(e)?(r=e.__key,s=n?e.getChildrenSize():0):(s=s.getIndexWithinParent(),r=r.__key,n||s++),i.set(r,s,"element"),l&&o.set(r,s,"element")));else if((i=Ee?window.getSelection():null)&&(i.modify(e,n?"backward":"forward",r),0<i.rangeCount&&(o=i.getRangeAt(0),s=this.anchor.getNode(),s=Me(s)?s:Nl(s),this.applyDOMRange(o),this.dirty=!0,!l))){l=this.getNodes(),e=[],r=!1;for(let a=0;a<l.length;a++){let c=l[a];lr(c,s)?e.push(c):r=!0}r&&0<e.length&&(n?(n=e[0],O(n)?n.selectStart():n.getParentOrThrow().selectStart()):(n=e[e.length-1],O(n)?n.selectEnd():n.getParentOrThrow().selectEnd())),(i.anchorNode!==o.startContainer||i.anchorOffset!==o.startOffset)&&(n=this.focus,l=this.anchor,i=l.key,o=l.offset,s=l.type,ct(l,n.key,n.offset,n.type),ct(n,i,o,s),this._cachedNodes=null)}}deleteCharacter(e){if(this.isCollapsed()){var n=this.anchor,r=this.focus,i=n.getNode();if(!e&&(n.type==="element"&&O(i)&&n.offset===i.getChildrenSize()||n.type==="text"&&n.offset===i.getTextContentSize())){var o=i.getNextSibling()||i.getParentOrThrow().getNextSibling();if(O(o)&&!o.canExtractContents())return}if(o=di(r,e),ee(o)&&!o.isIsolated()){o.isKeyboardSelectable()&&O(i)&&i.getChildrenSize()===0?(i.remove(),e=Ti(),e.add(o.__key),_t(e)):o.remove();return}if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&n.offset===0&&(n.type==="element"?n.getNode():n.getNode().getParentOrThrow()).collapseAtStart(this))return}else{if(o=r.type==="text"?r.getNode():null,i=n.type==="text"?n.getNode():null,o!==null&&o.isSegmented()){if(n=r.offset,r=o.getTextContentSize(),o.is(i)||e&&n!==r||!e&&n!==0){Vl(o,e,n);return}}else if(i!==null&&i.isSegmented()&&(n=n.offset,r=i.getTextContentSize(),i.is(o)||e&&n!==0||!e&&n!==r)){Vl(i,e,n);return}if(i=this.anchor,o=this.focus,n=i.getNode(),r=o.getNode(),n===r&&i.type==="text"&&o.type==="text"){var l=i.offset,s=o.offset;let a=l<s;r=a?l:s,s=a?s:l,l=s-1,r!==l&&(n=n.getTextContent().slice(r,s),_l(n)||(e?o.offset=l:i.offset=l))}}}this.removeText()}deleteLine(e){this.isCollapsed()&&(this.anchor.type==="text"&&this.modify("extend",e,"lineboundary"),(e?this.focus:this.anchor).offset===0&&this.modify("extend",e,"character")),this.removeText()}deleteWord(e){this.isCollapsed()&&this.modify("extend",e,"word"),this.removeText()}}function Nn(t){return t instanceof hr}function Yl(t){let e=t.offset;return t.type==="text"?e:(t=t.getNode(),e===t.getChildrenSize()?t.getTextContent().length:0)}function pr(t){let e=t.anchor;return t=t.focus,e.type==="element"&&t.type==="element"&&e.key===t.key&&e.offset===t.offset?[0,0]:[Yl(e),Yl(t)]}function Vl(t,e,n){let r=t.getTextContent().split(/(?=\s)/g),i=r.length,o=0,l=0;for(let s=0;s<i;s++){let a=r[s],c=s===i-1;if(l=o,o+=a.length,e&&o===n||o>n||c){r.splice(s,1),c&&(l=void 0);break}}e=r.join("").trim(),e===""?t.remove():(t.setTextContent(e),t.select(l,l))}function Gl(t,e,n){var r=e;if(t.nodeType===1){let l=!1;var i=t.childNodes,o=i.length;if(r===o&&(l=!0,r=o-1),i=Ht(i[r]),L(i))r=l?i.getTextContentSize():0;else{if(o=Ht(t),o===null)return null;if(O(o)?(t=o.getChildAtIndex(r),(e=O(t))&&(e=t.getParent(),e=n===null||e===null||!e.canBeEmpty()||e!==n.getNode()),e&&(n=l?t.getLastDescendant():t.getFirstDescendant(),n===null?(o=t,r=0):(t=n,o=t.getParentOrThrow())),L(t)?(i=t,o=null,r=l?t.getTextContentSize():0):t!==o&&l&&r++):(r=o.getIndexWithinParent(),r=e===0&&ee(o)&&Ht(t)===o?r:r+1,o=o.getParentOrThrow()),O(o))return new Ye(o.__key,r,"element")}}else i=Ht(t);return L(i)?new Ye(i.__key,r,"text"):null}function Zl(t,e,n){var r=t.offset,i=t.getNode();r===0?(r=i.getPreviousSibling(),i=i.getParent(),e?(n||!e)&&r===null&&O(i)&&i.isInline()&&(e=i.getPreviousSibling(),L(e)&&(t.key=e.__key,t.offset=e.getTextContent().length)):O(r)&&!n&&r.isInline()?(t.key=r.__key,t.offset=r.getChildrenSize(),t.type="element"):L(r)&&(t.key=r.__key,t.offset=r.getTextContent().length)):r===i.getTextContent().length&&(r=i.getNextSibling(),i=i.getParent(),e&&O(r)&&r.isInline()?(t.key=r.__key,t.offset=0,t.type="element"):(n||e)&&r===null&&O(i)&&i.isInline()&&!i.canInsertTextAfter()&&(e=i.getNextSibling(),L(e)&&(t.key=e.__key,t.offset=0)))}function Jl(t,e,n){if(t.type==="text"&&e.type==="text"){var r=t.isBefore(e);let i=t.is(e);Zl(t,r,i),Zl(e,!r,i),i&&(e.key=t.key,e.offset=t.offset,e.type=t.type),r=oe(),r.isComposing()&&r._compositionKey!==t.key&&H(n)&&(r=n.anchor,n=n.focus,ct(t,r.key,r.offset,r.type),ct(e,n.key,n.offset,n.type))}}function Xl(t,e,n,r,i,o){return t===null||n===null||!nr(i,t,n)||(e=Gl(t,e,H(o)?o.anchor:null),e===null)||(r=Gl(n,r,H(o)?o.focus:null),r===null||e.type==="element"&&r.type==="element"&&(t=Ht(t),n=Ht(n),ee(t)&&ee(n)))?null:(Jl(e,r,o),[e,r])}function ql(t){return O(t)&&!t.isInline()}function Ql(t,e,n,r,i,o){let l=Ve();return t=new wt(new Ye(t,e,i),new Ye(n,r,o),0),t.dirty=!0,l._selection=t}function Ti(){return new hr(new Set)}function nu(t){let e=t.getEditorState()._selection,n=Ee?window.getSelection():null;return Nn(e)||Ei(e)?e.clone():es(e,n,t)}function es(t,e,n){var r=n._window;if(r===null)return null;var i=r.event,o=i?i.type:void 0;r=o==="selectionchange",i=!ri&&(r||o==="beforeinput"||o==="compositionstart"||o==="compositionend"||o==="click"&&i&&i.detail===3||o==="drop"||o===void 0);let l;if(!H(t)||i){if(e===null)return null;if(i=e.anchorNode,o=e.focusNode,l=e.anchorOffset,e=e.focusOffset,r&&H(t)&&!nr(n,i,o))return t.clone()}else return t.clone();if(n=Xl(i,l,o,e,n,t),n===null)return null;let[s,a]=n;return new wt(s,a,H(t)?t.format:0)}function Z(){return Ve()._selection}function En(){return oe()._editorState._selection}function mr(t,e,n,r=1){var i=t.anchor,o=t.focus,l=i.getNode(),s=o.getNode();if(e.is(l)||e.is(s))if(l=e.__key,t.isCollapsed())e=i.offset,n<=e&&(n=Math.max(0,e+r),i.set(l,n,"element"),o.set(l,n,"element"),ts(t));else{var a=t.isBackward();s=a?o:i;var c=s.getNode();i=a?i:o,o=i.getNode(),e.is(c)&&(c=s.offset,n<=c&&s.set(l,Math.max(0,c+r),"element")),e.is(o)&&(e=i.offset,n<=e&&i.set(l,Math.max(0,e+r),"element")),ts(t)}}function ts(t){var e=t.anchor,n=e.offset;let r=t.focus;var i=r.offset,o=e.getNode(),l=r.getNode();if(t.isCollapsed())O(o)&&(l=o.getChildrenSize(),l=(i=n>=l)?o.getChildAtIndex(l-1):o.getChildAtIndex(n),L(l)&&(n=0,i&&(n=l.getTextContentSize()),e.set(l.__key,n,"text"),r.set(l.__key,n,"text")));else{if(O(o)){let s=o.getChildrenSize();n=(t=n>=s)?o.getChildAtIndex(s-1):o.getChildAtIndex(n),L(n)&&(o=0,t&&(o=n.getTextContentSize()),e.set(n.__key,o,"text"))}O(l)&&(n=l.getChildrenSize(),i=(e=i>=n)?l.getChildAtIndex(n-1):l.getChildAtIndex(i),L(i)&&(l=0,e&&(l=i.getTextContentSize()),r.set(i.__key,l,"text")))}}function ru(t,e){if(e=e.getEditorState()._selection,t=t._selection,H(t)){var n=t.anchor;let r=t.focus,i;n.type==="text"&&(i=n.getNode(),i.selectionTransform(e,t)),r.type==="text"&&(n=r.getNode(),i!==n&&n.selectionTransform(e,t))}}function xr(t,e,n,r,i){let o=null,l=0,s=null;r!==null?(o=r.__key,L(r)?(l=r.getTextContentSize(),s="text"):O(r)&&(l=r.getChildrenSize(),s="element")):i!==null&&(o=i.__key,L(i)?s="text":O(i)&&(s="element")),o!==null&&s!==null?t.set(o,l,s):(l=e.getIndexWithinParent(),l===-1&&(l=n.getChildrenSize()),t.set(n.__key,l,"element"))}function ns(t,e,n,r,i){t.type==="text"?(t.key=n,e||(t.offset+=i)):t.offset>r.getIndexWithinParent()&&--t.offset}let ye=null,ge=null,ae=!1,Si=!1,Tn=0;function Re(){ae&&A(13)}function Ve(){return ye===null&&A(15),ye}function oe(){return ge===null&&A(16),ge}function rs(t,e,n){var r=e.__type;let i=t._nodes.get(r);for(i===void 0&&A(30),t=n.get(r),t===void 0&&(t=Array.from(i.transforms),n.set(r,t)),n=t.length,r=0;r<n&&(t[r](e),e.isAttached());r++);}function iu(t,e){e=e._dirtyLeaves,t=t._nodeMap;for(let n of e)e=t.get(n),L(e)&&e.isAttached()&&e.isSimpleText()&&!e.isUnmergeable()&&bl(e)}function ou(t,e){let n=e._dirtyLeaves,r=e._dirtyElements;t=t._nodeMap;let i=lt(),o=new Map;var l=n;let s=l.size;for(var a=r,c=a.size;0<s||0<c;){if(0<s){e._dirtyLeaves=new Set;for(let d of l)l=t.get(d),L(l)&&l.isAttached()&&l.isSimpleText()&&!l.isUnmergeable()&&bl(l),l!==void 0&&l!==void 0&&l.__key!==i&&l.isAttached()&&rs(e,l,o),n.add(d);if(l=e._dirtyLeaves,s=l.size,0<s){Tn++;continue}}e._dirtyLeaves=new Set,e._dirtyElements=new Map;for(let d of a)a=d[0],c=d[1],(a==="root"||c)&&(l=t.get(a),l!==void 0&&l!==void 0&&l.__key!==i&&l.isAttached()&&rs(e,l,o),r.set(a,c));l=e._dirtyLeaves,s=l.size,a=e._dirtyElements,c=a.size,Tn++}e._dirtyLeaves=n,e._dirtyElements=r}function bi(t,e){var n=e.get(t.type);if(n===void 0&&A(17),n=n.klass,t.type!==n.getType()&&A(18),n=n.importJSON(t),t=t.children,O(n)&&Array.isArray(t))for(let r=0;r<t.length;r++){let i=bi(t[r],e);n.append(i)}return n}function is(t,e){let n=ye,r=ae,i=ge;ye=t,ae=!0,ge=null;try{return e()}finally{ye=n,ae=r,ge=i}}function yt(t){var e=t._pendingEditorState,n=t._rootElement,r=t._headless;if((n!==null||r)&&e!==null){var i=t._editorState,o=i._selection,l=e._selection,s=t._dirtyType!==0,a=ye,c=ae,d=ge,u=t._updating,g=t._observer,m=null;if(t._pendingEditorState=null,t._editorState=e,!r&&s&&g!==null){ge=t,ye=e,ae=!1,t._updating=!0;try{var f=t._dirtyType,_=t._dirtyElements,C=t._dirtyLeaves;g.disconnect(),Te=Xe=ue="",$l=f===2,dr=null,Se=t,vt=t._config,pn=t._nodes,cr=Se._listeners.mutation,fi=_,pi=C,mn=i._nodeMap,Kt=e._nodeMap,hi=e._readOnly,mi=new Map(t._keyToDOMMap);var E=new Map;xn=E,vn("root",null),xn=mi=vt=Kt=mn=pi=fi=pn=Se=void 0,m=E}catch(X){if(X instanceof Error&&t._onError(X),Si)throw X;ds(t,null,n,e),dl(t),t._dirtyType=2,Si=!0,yt(t),Si=!1;return}finally{g.observe(n,{characterData:!0,childList:!0,subtree:!0}),t._updating=u,ye=a,ae=c,ge=d}}e._readOnly||(e._readOnly=!0),u=t._dirtyLeaves,g=t._dirtyElements,E=t._normalizedNodes,f=t._updateTags,c=t._deferred,s&&(t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements=new Map,t._normalizedNodes=new Set,t._updateTags=new Set),C=t._decorators,_=t._pendingDecorators||C;var p=e._nodeMap;for(se in _)p.has(se)||(_===C&&(_=ml(t)),delete _[se]);if(r=r?null:Ee?window.getSelection():null,t._editable&&r!==null&&(s||l===null||l.dirty)){ge=t,ye=e;try{e:{let X=r.anchorNode,we=r.focusNode,sn=r.anchorOffset,Fe=r.focusOffset,an=document.activeElement;if(!f.has("collaboration")||an===n)if(H(l)){var w=l.anchor,T=l.focus,N=w.key,k=T.key,R=or(t,N),I=or(t,k),$=w.offset,U=T.offset,P=l.format,K=l.isCollapsed();s=R,k=I;var se=!1;if(w.type==="text"&&(s=rr(R),se=w.getNode().getFormat()!==P),T.type==="text"&&(k=rr(I)),s!==null&&k!==null){if(K&&(o===null||se||H(o)&&o.format!==P)){var ne=performance.now();zl=[P,$,N,ne]}if(sn===$&&Fe===U&&X===s&&we===k&&(r.type!=="Range"||!K)&&(n===null||an!==null&&n.contains(an)||n.focus({preventScroll:!0}),w.type!=="element"))break e;try{if(r.setBaseAndExtent(s,$,k,U),!f.has("skip-scroll-into-view")&&l.isCollapsed()&&n!==null&&n===an){let Ke=l instanceof wt&&l.anchor.type==="element"?s.childNodes[$]||null:0<r.rangeCount?r.getRangeAt(0):null;if(Ke!==null){let $t=Ke.getBoundingClientRect(),Mt=n.ownerDocument,At=Mt.defaultView;if(At!==null)for(var{top:Oe,bottom:Ce}=$t,Pe,G;n!==null;){let Dt=n===Mt.body;if(Dt)Pe=0,G=sr(t).innerHeight;else{let pt=n.getBoundingClientRect();Pe=pt.top,G=pt.bottom}if(o=0,Oe<Pe?o=-(Pe-Oe):Ce>G&&(o=Ce-G),o!==0)if(Dt)At.scrollBy(0,o);else{let pt=n.scrollTop;n.scrollTop+=o;let It=n.scrollTop-pt;Oe-=It,Ce-=It}if(Dt)break;let Lt=n.assignedSlot||n.parentElement;n=Lt!==null&&Lt.nodeType===11?Lt.host:Lt}}}yi=!0}catch{}}}else o!==null&&nr(t,X,we)&&r.removeAllRanges()}}finally{ge=d,ye=a}}if(m!==null)for(a=m,d=Array.from(t._listeners.mutation),m=d.length,Pe=0;Pe<m;Pe++){let[X,we]=d[Pe];G=a.get(we),G!==void 0&&X(G,{dirtyLeaves:u,updateTags:f})}if(a=t._pendingDecorators,a!==null&&(t._decorators=a,t._pendingDecorators=null,Sn("decorator",t,!0,a)),a=xl(i),d=xl(e),a!==d&&Sn("textcontent",t,!0,d),Sn("update",t,!0,{dirtyElements:g,dirtyLeaves:u,editorState:e,normalizedNodes:E,prevEditorState:i,tags:f}),t._deferred=[],c.length!==0){e=t._updating,t._updating=!0;try{for(i=0;i<c.length;i++)c[i]()}finally{t._updating=e}}if(e=t._updates,e.length!==0&&(e=e.shift())){let[X,we]=e;ls(t,X,we)}}}function Sn(t,e,n,...r){let i=e._updating;e._updating=n;try{let o=Array.from(e._listeners[t]);for(t=0;t<o.length;t++)o[t].apply(null,r)}finally{e._updating=i}}function M(t,e,n){if(t._updating===!1||ge!==t){let o=!1;return t.update(()=>{o=M(t,e,n)}),o}let r=si(t);for(let o=4;0<=o;o--)for(let l=0;l<r.length;l++){var i=r[l]._commands.get(e);if(i!==void 0&&(i=i[o],i!==void 0)){i=Array.from(i);let s=i.length;for(let a=0;a<s;a++)if(i[a](n,t)===!0)return!0}}return!1}function os(t,e){let n=t._updates;for(e=e||!1;n.length!==0;){var r=n.shift();if(r){let[i,o]=r,l;o!==void 0&&(r=o.onUpdate,l=o.tag,o.skipTransforms&&(e=!0),r&&t._deferred.push(r),l&&t._updateTags.add(l)),i()}}return e}function ls(t,e,n){let r=t._updateTags;var i,o=i=!1;if(n!==void 0){var l=n.onUpdate;i=n.tag,i!=null&&r.add(i),i=n.skipTransforms||!1,o=n.discrete||!1}l&&t._deferred.push(l),n=t._editorState,l=t._pendingEditorState;let s=!1;(l===null||l._readOnly)&&(l=t._pendingEditorState=new vr(new Map((l||n)._nodeMap)),s=!0),l._flushSync=o,o=ye;let a=ae,c=ge,d=t._updating;ye=l,ae=!1,t._updating=!0,ge=t;try{s&&(t._headless?n._selection!=null&&(l._selection=n._selection.clone()):l._selection=nu(t));let u=t._compositionKey;e(),i=os(t,i),ru(l,t),t._dirtyType!==0&&(i?iu(l,t):ou(l,t),os(t),jd(n,l,t._dirtyLeaves,t._dirtyElements)),u!==t._compositionKey&&(l._flushSync=!0);let g=l._selection;if(H(g)){let m=l._nodeMap,f=g.focus.key;m.get(g.anchor.key)!==void 0&&m.get(f)!==void 0||A(19)}else Nn(g)&&g._nodes.size===0&&(l._selection=null)}catch(u){u instanceof Error&&t._onError(u),t._pendingEditorState=n,t._dirtyType=2,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),yt(t);return}finally{ye=o,ae=a,ge=c,t._updating=d,Tn=0}t._dirtyType!==0||lu(l,t)?l._flushSync?(l._flushSync=!1,yt(t)):s&&Hd(()=>{yt(t)}):(l._flushSync=!1,s&&(r.clear(),t._deferred=[],t._pendingEditorState=null))}function $e(t,e,n){t._updating?t._updates.push([e,n]):ls(t,e,n)}function Ri(t,e,n){Re();var r=t.__key;let i=t.getParent();if(i!==null){var o=Ud(t),l=!1;if(H(o)&&e){var s=o.anchor;let a=o.focus;s.key===r&&(xr(s,t,i,t.getPreviousSibling(),t.getNextSibling()),l=!0),a.key===r&&(xr(a,t,i,t.getPreviousSibling(),t.getNextSibling()),l=!0)}s=i.getWritable().__children,r=s.indexOf(r),r===-1&&A(31),Bt(t),s.splice(r,1),t.getWritable().__parent=null,H(o)&&e&&!l&&mr(o,i,r,-1),n||at(i)||i.canBeEmpty()||!i.isEmpty()||Ri(i,e),Me(i)&&i.isEmpty()&&i.selectEnd()}}function ss(t){return t=q(t),t===null&&A(63),t}class _r{static getType(){A(64)}static clone(){A(65)}constructor(e){this.__type=this.constructor.getType(),this.__parent=null,fl(this,e)}getType(){return this.__type}isAttached(){for(var e=this.__key;e!==null;){if(e==="root")return!0;if(e=q(e),e===null)break;e=e.__parent}return!1}isSelected(){let e=Z();if(e==null)return!1;let n=e.getNodes().some(r=>r.__key===this.__key);return L(this)?n:H(e)&&e.anchor.type==="element"&&e.focus.type==="element"&&e.anchor.key===e.focus.key&&e.anchor.offset===e.focus.offset?!1:n}getKey(){return this.__key}getIndexWithinParent(){let e=this.getParent();return e===null?-1:e.__children.indexOf(this.__key)}getParent(){let e=this.getLatest().__parent;return e===null?null:q(e)}getParentOrThrow(){let e=this.getParent();return e===null&&A(66),e}getTopLevelElement(){let e=this;for(;e!==null;){let n=e.getParent();if(at(n))return e;e=n}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return e===null&&A(67),e}getParents(){let e=[],n=this.getParent();for(;n!==null;)e.push(n),n=n.getParent();return e}getParentKeys(){let e=[],n=this.getParent();for(;n!==null;)e.push(n.__key),n=n.getParent();return e}getPreviousSibling(){var e=this.getParent();if(e===null)return null;e=e.__children;let n=e.indexOf(this.__key);return 0>=n?null:q(e[n-1])}getPreviousSiblings(){var e=this.getParent();if(e===null)return[];e=e.__children;let n=e.indexOf(this.__key);return e.slice(0,n).map(r=>ss(r))}getNextSibling(){var e=this.getParent();if(e===null)return null;e=e.__children;let n=e.length,r=e.indexOf(this.__key);return r>=n-1?null:q(e[r+1])}getNextSiblings(){var e=this.getParent();if(e===null)return[];e=e.__children;let n=e.indexOf(this.__key);return e.slice(n+1).map(r=>ss(r))}getCommonAncestor(e){let n=this.getParents();var r=e.getParents();O(this)&&n.unshift(this),O(e)&&r.unshift(e),e=n.length;var i=r.length;if(e===0||i===0||n[e-1]!==r[i-1])return null;for(r=new Set(r),i=0;i<e;i++){let o=n[i];if(r.has(o))return o}return null}is(e){return e==null?!1:this.__key===e.__key}isBefore(e){if(e.isParentOf(this))return!0;if(this.isParentOf(e))return!1;var n=this.getCommonAncestor(e);let r=this;for(;;){var i=r.getParentOrThrow();if(i===n){i=i.__children.indexOf(r.__key);break}r=i}for(r=e;;){if(e=r.getParentOrThrow(),e===n){n=e.__children.indexOf(r.__key);break}r=e}return i<n}isParentOf(e){let n=this.__key;if(n===e.__key)return!1;for(;e!==null;){if(e.__key===n)return!0;e=e.getParent()}return!1}getNodesBetween(e){let n=this.isBefore(e),r=[],i=new Set;for(var o=this;;){var l=o.__key;if(i.has(l)||(i.add(l),r.push(o)),o===e)break;if(l=O(o)?n?o.getFirstChild():o.getLastChild():null,l!==null)o=l;else if(l=n?o.getNextSibling():o.getPreviousSibling(),l!==null)o=l;else{if(o=o.getParentOrThrow(),i.has(o.__key)||r.push(o),o===e)break;l=o;do l===null&&A(68),o=n?l.getNextSibling():l.getPreviousSibling(),l=l.getParent(),l!==null&&(o!==null||i.has(l.__key)||r.push(l));while(o===null)}}return n||r.reverse(),r}isDirty(){let e=oe()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){let e=q(this.__key);return e===null&&A(69),e}getWritable(){Re();var e=Ve(),n=oe();e=e._nodeMap;let r=this.__key,i=this.getLatest(),o=i.__parent;n=n._cloneNotNeeded;var l=Z();return l!==null&&(l._cachedNodes=null),n.has(r)?(zt(i),i):(l=i.constructor.clone(i),l.__parent=o,O(i)&&O(l)?(l.__children=Array.from(i.__children),l.__indent=i.__indent,l.__format=i.__format,l.__dir=i.__dir):L(i)&&L(l)&&(l.__format=i.__format,l.__style=i.__style,l.__mode=i.__mode,l.__detail=i.__detail),n.add(r),l.__key=r,zt(l),e.set(r,l),l)}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(){A(70)}updateDOM(){A(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){A(72)}static importJSON(){A(18)}remove(e){Ri(this,!0,e)}replace(e){Re(),gi(this,e);let n=this.__key;e=e.getWritable(),ir(e);var r=this.getParentOrThrow(),i=r.getWritable().__children;let o=i.indexOf(this.__key),l=e.__key;return o===-1&&A(31),i.splice(o,0,l),e.__parent=r.__key,Ri(this,!1),Bt(e),i=Z(),H(i)&&(r=i.anchor,i=i.focus,r.key===n&&Ul(r,e),i.key===n&&Ul(i,e)),lt()===n&&he(l),e}insertAfter(e){Re(),gi(this,e);var n=this.getWritable(),r=e.getWritable(),i=r.getParent();let o=Z();var l=e.getIndexWithinParent(),s=!1,a=!1;i!==null&&(ir(r),H(o)&&(a=i.__key,s=o.anchor,i=o.focus,s=s.type==="element"&&s.key===a&&s.offset===l+1,a=i.type==="element"&&i.key===a&&i.offset===l+1)),l=this.getParentOrThrow().getWritable(),i=r.__key,r.__parent=n.__parent;let c=l.__children;return n=c.indexOf(n.__key),n===-1&&A(31),c.splice(n+1,0,i),Bt(r),H(o)&&(mr(o,l,n+1),r=l.__key,s&&o.anchor.set(r,n+2,"element"),a&&o.focus.set(r,n+2,"element")),e}insertBefore(e){Re(),gi(this,e);var n=this.getWritable(),r=e.getWritable();ir(r);let i=this.getParentOrThrow().getWritable(),o=r.__key;r.__parent=n.__parent;let l=i.__children;return n=l.indexOf(n.__key),n===-1&&A(31),l.splice(n,0,o),Bt(r),r=Z(),H(r)&&mr(r,i,n),e}selectPrevious(e,n){Re();let r=this.getPreviousSibling(),i=this.getParentOrThrow();return r===null?i.select(0,0):O(r)?r.select():L(r)?r.select(e,n):(e=r.getIndexWithinParent()+1,i.select(e,e))}selectNext(e,n){Re();let r=this.getNextSibling(),i=this.getParentOrThrow();return r===null?i.select():O(r)?r.select(0,0):L(r)?r.select(e,n):(e=r.getIndexWithinParent(),i.select(e,e))}markDirty(){this.getWritable()}}class as extends _r{constructor(e){super(e)}decorate(){A(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function ee(t){return t instanceof as}class kt extends _r{constructor(e){super(e),this.__children=[],this.__indent=this.__format=0,this.__dir=null}getFormat(){return this.getLatest().__format}getFormatType(){let e=this.getFormat();return Ld[e]||""}getIndent(){return this.getLatest().__indent}getChildren(){let e=this.getLatest().__children,n=[];for(let r=0;r<e.length;r++){let i=q(e[r]);i!==null&&n.push(i)}return n}getChildrenKeys(){return this.getLatest().__children}getChildrenSize(){return this.getLatest().__children.length}isEmpty(){return this.getChildrenSize()===0}isDirty(){let e=oe()._dirtyElements;return e!==null&&e.has(this.__key)}isLastChild(){let e=this.getLatest();return e.getParentOrThrow().getLastChild()===e}getAllTextNodes(){let e=[],n=this.getLatest().__children;for(let i=0;i<n.length;i++){var r=q(n[i]);L(r)?e.push(r):O(r)&&(r=r.getAllTextNodes(),e.push(...r))}return e}getFirstDescendant(){let e=this.getFirstChild();for(;e!==null;){if(O(e)){let n=e.getFirstChild();if(n!==null){e=n;continue}}break}return e}getLastDescendant(){let e=this.getLastChild();for(;e!==null;){if(O(e)){let n=e.getLastChild();if(n!==null){e=n;continue}}break}return e}getDescendantByIndex(e){let n=this.getChildren(),r=n.length;return e>=r?(e=n[r-1],O(e)&&e.getLastDescendant()||e||null):(e=n[e],O(e)&&e.getFirstDescendant()||e||null)}getFirstChild(){let e=this.getLatest().__children;return e.length===0?null:q(e[0])}getFirstChildOrThrow(){let e=this.getFirstChild();return e===null&&A(45),e}getLastChild(){let e=this.getLatest().__children,n=e.length;return n===0?null:q(e[n-1])}getLastChildOrThrow(){let e=this.getLastChild();return e===null&&A(96),e}getChildAtIndex(e){return e=this.getLatest().__children[e],e===void 0?null:q(e)}getTextContent(){let e="",n=this.getChildren(),r=n.length;for(let i=0;i<r;i++){let o=n[i];e+=o.getTextContent(),O(o)&&i!==r-1&&!o.isInline()&&(e+=`
26
26
 
27
- `)}return e}getDirection(){return this.getLatest().__dir}hasFormat(e){return e!==""?(e=ll[e],(this.getFormat()&e)!==0):!1}select(e,n){Re();let r=Z();var i=this.getChildrenSize();if(e===void 0&&(e=i),n===void 0&&(n=i),i=this.__key,H(r))r.anchor.set(i,e,"element"),r.focus.set(i,n,"element"),r.dirty=!0;else return ql(i,e,i,n,"element","element");return r}selectStart(){let e=this.getFirstDescendant();return O(e)||L(e)?e.select(0,0):e!==null?e.selectPrevious():this.select(0,0)}selectEnd(){let e=this.getLastDescendant();return O(e)||L(e)?e.select():e!==null?e.selectNext():this.select()}clear(){let e=this.getWritable();return this.getChildren().forEach(n=>n.remove()),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){let n=this.getWritable();return n.__dir=e,n}setFormat(e){return this.getWritable().__format=e!==""?ll[e]:0,this}setIndent(e){return this.getWritable().__indent=e,this}splice(e,n,r){let i=this.getWritable();var o=i.__key;let l=i.__children,s=r.length;var a=[];for(let c=0;c<s;c++){let d=r[c],u=d.getWritable();d.__key===o&&A(76),ir(u),u.__parent=o,a.push(u.__key)}if((r=this.getChildAtIndex(e-1))&&zt(r),(o=this.getChildAtIndex(e+n))&&zt(o),e===l.length?(l.push(...a),e=[]):e=l.splice(e,n,...a),e.length&&(n=Z(),H(n))){let c=new Set(e),d=new Set(a);a=m=>{for(m=m.getNode();m;){const f=m.__key;if(c.has(f)&&!d.has(f))return!0;m=m.getParent()}return!1};let{anchor:u,focus:g}=n;for(a(u)&&xr(u,u.getNode(),this,r,o),a(g)&&xr(g,g.getNode(),this,r,o),a=e.length,n=0;n<a;n++)r=q(e[n]),r!=null&&(r.getWritable().__parent=null);l.length!==0||this.canBeEmpty()||at(this)||this.remove()}return i}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"element",version:1}}insertNewAfter(){return null}canInsertTab(){return!1}canIndent(){return!0}collapseAtStart(){return!1}excludeFromCopy(){return!1}canExtractContents(){return!0}canReplaceWith(){return!0}canInsertAfter(){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(){return!1}extractWithChild(){return!1}}function O(t){return t instanceof kt}class Ut extends kt{static getType(){return"root"}static clone(){return new Ut}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){A(51)}getTextContent(){let e=this.__cachedText;return!ae&&oe()._dirtyType!==0||e===null?super.getTextContent():e}remove(){A(52)}replace(){A(53)}insertBefore(){A(54)}insertAfter(){A(55)}updateDOM(){return!1}append(...e){for(let n=0;n<e.length;n++){let r=e[n];O(r)||ee(r)||A(56)}return super.append(...e)}static importJSON(e){let n=st();return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"root",version:1}}collapseAtStart(){return!0}}function Me(t){return t instanceof Ut}function lu(t,e){if(e=e.getEditorState()._selection,t=t._selection,t!==null){if(t.dirty||!t.is(e))return!0}else if(e!==null)return!0;return!1}function Oi(){return new vr(new Map([["root",new Ut]]))}function as(t){let e=t.exportJSON();e.type!==t.constructor.getType()&&A(58);let n=e.children;if(O(t)){Array.isArray(n)||A(59),t=t.getChildren();for(let r=0;r<t.length;r++){let i=as(t[r]);n.push(i)}}return e}class vr{constructor(e,n){this._nodeMap=e,this._selection=n||null,this._readOnly=this._flushSync=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(e){return rs(this,e)}clone(e){return e=new vr(this._nodeMap,e===void 0?this._selection:e),e._readOnly=!0,e}toJSON(){return rs(this,()=>({root:as(st())}))}}class jt extends _r{static getType(){return"linebreak"}static clone(e){return new jt(e.__key)}constructor(e){super(e)}getTextContent(){return`
28
- `}createDOM(){return document.createElement("br")}updateDOM(){return!1}static importDOM(){return{br:e=>{let n=e.parentElement;return n!=null&&n.firstChild===e&&n.lastChild===e?null:{conversion:su,priority:0}}}}static importJSON(){return bn()}exportJSON(){return{type:"linebreak",version:1}}}function su(){return{node:bn()}}function bn(){return ar(new jt)}function Rn(t){return t instanceof jt}function $i(t,e){return e&16?"code":e&32?"sub":e&64?"sup":null}function Mi(t,e){return e&1?"strong":e&2?"em":"span"}function Ai(t,e,n,r,i){t=r.classList,r=fn(i,"base"),r!==void 0&&t.add(...r),r=fn(i,"underlineStrikethrough");let o=!1,l=e&8&&e&4;var s=n&8&&n&4;r!==void 0&&(s?(o=!0,l||t.add(...r)):l&&t.remove(...r));for(let a in xt)s=xt[a],r=fn(i,a),r!==void 0&&(n&s?!o||a!=="underline"&&a!=="strikethrough"?((e&s)===0||l&&a==="underline"||a==="strikethrough")&&t.add(...r):e&s&&t.remove(...r):e&s&&t.remove(...r))}function Di(t,e,n){let r=e.firstChild;if(n=n.isComposing(),t+=n?tr:"",r==null)e.textContent=t;else if(e=r.nodeValue,e!==t)if(n||mt){n=e.length;let i=t.length,o=0,l=0;for(;o<n&&o<i&&e[o]===t[o];)o++;for(;l+o<n&&l+o<i&&e[n-l-1]===t[i-l-1];)l++;t=[o,n-o-l,t.slice(o,i-l)];let[s,a,c]=t;a!==0&&r.deleteData(s,a),r.insertData(s,c)}else r.nodeValue=t}class Yt extends _r{static getType(){return"text"}static clone(e){return new Yt(e.__text,e.__key)}constructor(e,n){super(n),this.__text=e,this.__format=0,this.__style="",this.__detail=this.__mode=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){let e=this.getLatest();return Pd[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===lt()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return(this.getLatest().__detail&1)!==0}isUnmergeable(){return(this.getLatest().__detail&2)!==0}hasFormat(e){return e=xt[e],(this.getFormat()&e)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(e,n){let r=this.getLatest().__format;return ul(r,e,n)}createDOM(e){var n=this.__format,r=$i(this,n);let i=Mi(this,n),o=document.createElement(r===null?i:r),l=o;return r!==null&&(l=document.createElement(i),o.appendChild(l)),r=l,Di(this.__text,r,this),e=e.theme.text,e!==void 0&&Ai(i,0,n,r,e),n=this.__style,n!==""&&(o.style.cssText=n),o}updateDOM(e,n,r){let i=this.__text;var o=e.__format,l=this.__format,s=$i(this,o);let a=$i(this,l);var c=Mi(this,o);let d=Mi(this,l);return(s===null?c:s)!==(a===null?d:a)?!0:s===a&&c!==d?(o=n.firstChild,o==null&&A(48),e=s=document.createElement(d),Di(i,e,this),r=r.theme.text,r!==void 0&&Ai(d,0,l,e,r),n.replaceChild(s,o),!1):(c=n,a!==null&&s!==null&&(c=n.firstChild,c==null&&A(49)),Di(i,c,this),r=r.theme.text,r!==void 0&&o!==l&&Ai(d,o,l,c,r),l=this.__style,e.__style!==l&&(n.style.cssText=l),!1)}static importDOM(){return{"#text":()=>({conversion:du,priority:0}),b:()=>({conversion:cu,priority:0}),code:()=>({conversion:On,priority:0}),em:()=>({conversion:On,priority:0}),i:()=>({conversion:On,priority:0}),span:()=>({conversion:au,priority:0}),strong:()=>({conversion:On,priority:0}),u:()=>({conversion:On,priority:0})}}static importJSON(e){let n=fe(e.text);return n.setFormat(e.format),n.setDetail(e.detail),n.setMode(e.mode),n.setStyle(e.style),n}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),type:"text",version:1}}selectionTransform(){}setFormat(e){let n=this.getWritable();return n.__format=typeof e=="string"?xt[e]:e,n}setDetail(e){let n=this.getWritable();return n.__detail=typeof e=="string"?Dd[e]:e,n}setStyle(e){let n=this.getWritable();return n.__style=e,n}toggleFormat(e){return e=xt[e],this.setFormat(this.getFormat()^e)}toggleDirectionless(){let e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){let e=this.getWritable();return e.__detail^=2,e}setMode(e){e=Id[e];let n=this.getWritable();return n.__mode=e,n}setTextContent(e){let n=this.getWritable();return n.__text=e,n}select(e,n){Re();let r=Z();var i=this.getTextContent();let o=this.__key;if(typeof i=="string"?(i=i.length,e===void 0&&(e=i),n===void 0&&(n=i)):n=e=0,H(r))i=lt(),i!==r.anchor.key&&i!==r.focus.key||he(o),r.setTextNodeRange(this,e,this,n);else return ql(o,e,o,n,"text","text");return r}spliceText(e,n,r,i){let o=this.getWritable(),l=o.__text,s=r.length,a=e;0>a&&(a=s+a,0>a&&(a=0));let c=Z();return i&&H(c)&&(e+=s,c.setTextNodeRange(o,e,o,e)),n=l.slice(0,a)+r+l.slice(a+n),o.__text=n,o}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){Re();var n=this.getLatest(),r=n.getTextContent(),i=n.__key,o=lt(),l=new Set(e);e=[];for(var s=r.length,a="",c=0;c<s;c++)a!==""&&l.has(c)&&(e.push(a),a=""),a+=r[c];if(a!==""&&e.push(a),l=e.length,l===0)return[];if(e[0]===r)return[n];var d=e[0];r=n.getParentOrThrow(),c=r.__key;let u=n.getFormat(),g=n.getStyle(),m=n.__detail;s=!1,n.isSegmented()?(a=fe(d),a.__parent=c,a.__format=u,a.__style=g,a.__detail=m,s=!0):(a=n.getWritable(),a.__text=d),n=Z(),a=[a],d=d.length;for(let C=1;C<l;C++){var f=e[C],_=f.length;f=fe(f).getWritable(),f.__format=u,f.__style=g,f.__detail=m;let E=f.__key;if(_=d+_,H(n)){let p=n.anchor,v=n.focus;p.key===i&&p.type==="text"&&p.offset>d&&p.offset<=_&&(p.key=E,p.offset-=d,n.dirty=!0),v.key===i&&v.type==="text"&&v.offset>d&&v.offset<=_&&(v.key=E,v.offset-=d,n.dirty=!0)}o===i&&he(E),d=_,f.__parent=c,a.push(f)}return Bt(this),o=r.getWritable().__children,i=o.indexOf(i),e=a.map(C=>C.__key),s?(o.splice(i,0,...e),this.remove()):o.splice(i,1,...e),H(n)&&mr(n,r,i,l-1),a}mergeWithSibling(e){var n=e===this.getPreviousSibling();n||e===this.getNextSibling()||A(50);var r=this.__key;let i=e.__key,o=this.__text,l=o.length;lt()===i&&he(r);let s=Z();if(H(s)){let a=s.anchor,c=s.focus;a!==null&&a.key===i&&(ts(a,n,r,e,l),s.dirty=!0),c!==null&&c.key===i&&(ts(c,n,r,e,l),s.dirty=!0)}return r=e.__text,this.setTextContent(n?r+o:o+r),n=this.getWritable(),e.remove(),n}isTextEntity(){return!1}}function au(t){let e=t.style.fontWeight==="700",n=t.style.textDecoration==="line-through",r=t.style.fontStyle==="italic",i=t.style.textDecoration==="underline",o=t.style.verticalAlign;return{forChild:l=>(L(l)&&(e&&l.toggleFormat("bold"),n&&l.toggleFormat("strikethrough"),r&&l.toggleFormat("italic"),i&&l.toggleFormat("underline"),o==="sub"&&l.toggleFormat("subscript"),o==="super"&&l.toggleFormat("superscript")),l),node:null}}function cu(t){let e=t.style.fontWeight==="normal";return{forChild:n=>(L(n)&&!e&&n.toggleFormat("bold"),n),node:null}}function du(t,e,n){return t=t.textContent||"",!n&&/\n/.test(t)&&(t=t.replace(/\r?\n/gm," "),t.trim().length===0)?{node:null}:{node:fe(t)}}let uu={code:"code",em:"italic",i:"italic",strong:"bold",u:"underline"};function On(t){let e=uu[t.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:n=>(L(n)&&n.toggleFormat(e),n),node:null}}function fe(t=""){return ar(new Yt(t))}function L(t){return t instanceof Yt}class Vt extends kt{static getType(){return"paragraph"}static clone(e){return new Vt(e.__key)}createDOM(e){let n=document.createElement("p");return e=fn(e.theme,"paragraph"),e!==void 0&&n.classList.add(...e),n}updateDOM(){return!1}static importDOM(){return{p:()=>({conversion:gu,priority:0})}}exportDOM(e){if({element:e}=super.exportDOM(e),e&&this.isEmpty()&&e.append(document.createElement("br")),e){var n=this.getFormatType();e.style.textAlign=n,(n=this.getDirection())&&(e.dir=n),n=this.getIndent(),0<n&&(e.style.textIndent=`${20*n}px`)}return{element:e}}static importJSON(e){let n=Gt();return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),type:"paragraph",version:1}}insertNewAfter(){let e=Gt(),n=this.getDirection();return e.setDirection(n),this.insertAfter(e),e}collapseAtStart(){let e=this.getChildren();if(e.length===0||L(e[0])&&e[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function gu(){return{node:Gt()}}function Gt(){return ar(new Vt)}function cs(t,e,n,r){let i=t._keyToDOMMap;i.clear(),t._editorState=Oi(),t._pendingEditorState=r,t._compositionKey=null,t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),t._normalizedNodes=new Set,t._updateTags=new Set,t._updates=[],r=t._observer,r!==null&&(r.disconnect(),t._observer=null),e!==null&&(e.textContent=""),n!==null&&(n.textContent="",i.set("root",n))}function hu(t){let e=new Map,n=new Set;return t.forEach(r=>{if(r=r.klass.importDOM!=null?r.klass.importDOM.bind(r.klass):null,r!=null&&!n.has(r)){n.add(r);var i=r();i!==null&&Object.keys(i).forEach(o=>{let l=e.get(o);l===void 0&&(l=[],e.set(o,l)),l.push(i[o])})}}),e}class fu{constructor(e,n,r,i,o,l){this._parentEditor=n,this._rootElement=null,this._editorState=e,this._compositionKey=this._pendingEditorState=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=i,this._nodes=r,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=_l(),this._onError=o,this._htmlConversions=l,this._editable=!0,this._headless=!1,this._window=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){let n=this._listeners.update;return n.add(e),()=>{n.delete(e)}}registerEditableListener(e){let n=this._listeners.editable;return n.add(e),()=>{n.delete(e)}}registerDecoratorListener(e){let n=this._listeners.decorator;return n.add(e),()=>{n.delete(e)}}registerTextContentListener(e){let n=this._listeners.textcontent;return n.add(e),()=>{n.delete(e)}}registerRootListener(e){let n=this._listeners.root;return e(this._rootElement,null),n.add(e),()=>{e(null,this._rootElement),n.delete(e)}}registerCommand(e,n,r){r===void 0&&A(35);let i=this._commands;i.has(e)||i.set(e,[new Set,new Set,new Set,new Set,new Set]);let o=i.get(e);o===void 0&&A(36);let l=o[r];return l.add(n),()=>{l.delete(n),o.every(s=>s.size===0)&&i.delete(e)}}registerMutationListener(e,n){this._nodes.get(e.getType())===void 0&&A(37);let r=this._listeners.mutation;return r.set(n,e),()=>{r.delete(n)}}registerNodeTransform(e,n){e=e.getType();let r=this._nodes.get(e);r===void 0&&A(37);let i=r.transforms;return i.add(n),Kd(this,e),()=>{i.delete(n)}}hasNodes(e){for(let n=0;n<e.length;n++){let r=e[n].getType();if(!this._nodes.has(r))return!1}return!0}dispatchCommand(e,n){return M(this,e,n)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){let n=this._rootElement;if(e!==n){let o=fn(this._config.theme,"root");var r=this._pendingEditorState||this._editorState;if(this._rootElement=e,cs(this,n,e,r),n!==null){if(!this._config.disableEvents){if(yn!==0&&(yn--,yn===0&&n.ownerDocument.removeEventListener("selectionchange",Kl)),r=n.__lexicalEditor,r!=null){if(r._parentEditor!==null){var i=si(r);i=i[i.length-1]._key,Wt.get(i)===r&&Wt.delete(i)}else Wt.delete(r._key);n.__lexicalEditor=null}for(r=Hl(n),i=0;i<r.length;i++)r[i]();n.__lexicalEventHandles=[]}o!=null&&n.classList.remove(...o)}e!==null?(r=(r=e.ownerDocument)&&r.defaultView||null,i=e.style,i.userSelect="text",i.whiteSpace="pre-wrap",i.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=r,this._dirtyType=2,cl(this),this._updateTags.add("history-merge"),yt(this),this._config.disableEvents||tu(e,this),o!=null&&e.classList.add(...o)):this._window=null,Sn("root",this,!1,e,n)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&A(38),al(this);let r=this._pendingEditorState,i=this._updateTags;n=n!==void 0?n.tag:null,r===null||r.isEmpty()||(n!=null&&i.add(n),yt(this)),this._pendingEditorState=e,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,n!=null&&i.add(n),yt(this)}parseEditorState(e,n){e=typeof e=="string"?JSON.parse(e):e;let r=Oi(),i=ye,o=ae,l=ge,s=this._dirtyElements,a=this._dirtyLeaves,c=this._cloneNotNeeded,d=this._dirtyType;this._dirtyElements=new Map,this._dirtyLeaves=new Set,this._cloneNotNeeded=new Set,this._dirtyType=0,ye=r,ae=!1,ge=this;try{bi(e.root,this._nodes),n&&n(),r._readOnly=!0}finally{this._dirtyElements=s,this._dirtyLeaves=a,this._cloneNotNeeded=c,this._dirtyType=d,ye=i,ae=o,ge=l}return r}update(e,n){$e(this,e,n)}focus(e,n={}){let r=this._rootElement;r!==null&&(r.setAttribute("autocapitalize","off"),$e(this,()=>{let i=Z(),o=st();i!==null?i.dirty=!0:o.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?o.selectStart():o.selectEnd())},{onUpdate:()=>{r.removeAttribute("autocapitalize"),e&&e()}}),this._pendingEditorState===null&&r.removeAttribute("autocapitalize"))}blur(){var e=this._rootElement;e!==null&&e.blur(),e=Ee?window.getSelection():null,e!==null&&e.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Sn("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}class ds extends kt{constructor(e,n){super(n),this.__colSpan=e}exportJSON(){return{...super.exportJSON(),colSpan:this.__colSpan}}}function us(t){return t instanceof ds}class gs extends kt{}function hs(t){return t instanceof gs}class fs extends kt{}function ps(t){return t instanceof fs}b.$addUpdateTag=function(t){Re(),oe()._updateTags.add(t)},b.$applyNodeReplacement=ar,b.$copyNode=function(t){return t=t.constructor.clone(t),hl(t,null),t},b.$createLineBreakNode=bn,b.$createNodeSelection=Ti,b.$createParagraphNode=Gt,b.$createRangeSelection=function(){let t=new je("root",0,"element"),e=new je("root",0,"element");return new wt(t,e,0)},b.$createTextNode=fe,b.$getDecoratorNode=di,b.$getNearestNodeFromDOMNode=hn,b.$getNearestRootOrShadowRoot=Cl,b.$getNodeByKey=q,b.$getPreviousSelection=En,b.$getRoot=st,b.$getSelection=Z,b.$getTextContent=function(){let t=Z();return t===null?"":t.getTextContent()},b.$hasAncestor=lr,b.$insertNodes=function(t,e){let n=Z();return n===null&&(n=st().selectEnd()),n.insertNodes(t,e)},b.$isDecoratorNode=ee,b.$isElementNode=O,b.$isInlineElementOrDecoratorNode=function(t){return O(t)&&t.isInline()||ee(t)&&t.isInline()},b.$isLeafNode=gl,b.$isLineBreakNode=Rn,b.$isNodeSelection=Nn,b.$isParagraphNode=function(t){return t instanceof Vt},b.$isRangeSelection=H,b.$isRootNode=Me,b.$isRootOrShadowRoot=at,b.$isTextNode=L,b.$nodesOfType=function(t){var e=Ye();let n=e._readOnly,r=t.getType();e=e._nodeMap;let i=[];for(let[,o]of e)o instanceof t&&o.__type===r&&(n||o.isAttached())&&i.push(o);return i},b.$normalizeSelection__EXPERIMENTAL=bl,b.$parseSerializedNode=function(t){return bi(t,oe()._nodes)},b.$setCompositionKey=he,b.$setSelection=_t,b.BLUR_COMMAND=il,b.CAN_REDO_COMMAND={},b.CAN_UNDO_COMMAND={},b.CLEAR_EDITOR_COMMAND={},b.CLEAR_HISTORY_COMMAND={},b.CLICK_COMMAND=Ho,b.COMMAND_PRIORITY_CRITICAL=4,b.COMMAND_PRIORITY_EDITOR=0,b.COMMAND_PRIORITY_HIGH=3,b.COMMAND_PRIORITY_LOW=1,b.COMMAND_PRIORITY_NORMAL=2,b.CONTROLLED_TEXT_INSERTION_COMMAND=Ft,b.COPY_COMMAND=Qr,b.CUT_COMMAND=ei,b.DELETE_CHARACTER_COMMAND=cn,b.DELETE_LINE_COMMAND=gn,b.DELETE_WORD_COMMAND=un,b.DEPRECATED_$createGridSelection=function(){let t=new je("root",0,"element"),e=new je("root",0,"element");return new fr("root",t,e)},b.DEPRECATED_$isGridCellNode=us,b.DEPRECATED_$isGridNode=hs,b.DEPRECATED_$isGridRowNode=ps,b.DEPRECATED_$isGridSelection=Ei,b.DEPRECATED_GridCellNode=ds,b.DEPRECATED_GridNode=gs,b.DEPRECATED_GridRowNode=fs,b.DRAGEND_COMMAND=nl,b.DRAGOVER_COMMAND=tl,b.DRAGSTART_COMMAND=el,b.DROP_COMMAND=Qo,b.DecoratorNode=ss,b.ElementNode=kt,b.FOCUS_COMMAND=rl,b.FORMAT_ELEMENT_COMMAND={},b.FORMAT_TEXT_COMMAND=ot,b.INDENT_CONTENT_COMMAND={},b.INSERT_LINE_BREAK_COMMAND=dn,b.INSERT_PARAGRAPH_COMMAND=Gr,b.KEY_ARROW_DOWN_COMMAND=Vo,b.KEY_ARROW_LEFT_COMMAND=Uo,b.KEY_ARROW_RIGHT_COMMAND=Ko,b.KEY_ARROW_UP_COMMAND=Yo,b.KEY_BACKSPACE_COMMAND=Zo,b.KEY_DELETE_COMMAND=Xo,b.KEY_ENTER_COMMAND=er,b.KEY_ESCAPE_COMMAND=Jo,b.KEY_MODIFIER_COMMAND=ol,b.KEY_SPACE_COMMAND=Go,b.KEY_TAB_COMMAND=qo,b.LineBreakNode=jt,b.MOVE_TO_END=Wo,b.MOVE_TO_START=jo,b.OUTDENT_CONTENT_COMMAND={},b.PASTE_COMMAND=Zr,b.ParagraphNode=Vt,b.REDO_COMMAND=qr,b.REMOVE_TEXT_COMMAND=Jr,b.RootNode=Ut,b.SELECTION_CHANGE_COMMAND=Bo,b.TextNode=Yt,b.UNDO_COMMAND=Xr,b.VERSION="0.6.3",b.createCommand=function(){return{}},b.createEditor=function(t){var e=t||{},n=ge,r=e.theme||{};let i=t===void 0?n:e.parentEditor||null,o=e.disableEvents||!1,l=Oi(),s=e.namespace||(i!==null?i._config.namespace:_l()),a=e.editorState,c=[Ut,Yt,jt,Vt,...e.nodes||[]],d=e.onError;if(e=e.editable!==void 0?e.editable:!0,t===void 0&&n!==null)t=n._nodes;else for(t=new Map,n=0;n<c.length;n++){let g=c[n];var u=null;typeof g!="function"&&(u=g,g=u.replace,u=u.with);let m=g.getType();t.set(m,{klass:g,replace:u,transforms:new Set})}return r=new fu(l,i,t,{disableEvents:o,namespace:s,theme:r},d||console.error,hu(t),e),a!==void 0&&(r._pendingEditorState=a,r._dirtyType=2),r};var w=b,ms=ie,$n=w,wr=S.default,pu=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?wr.useLayoutEffect:wr.useEffect;let yr={tag:"history-merge"};function mu(t,e){if(e!==null){if(e===void 0)t.update(()=>{var n=$n.$getRoot();if(n.isEmpty()){let r=$n.$createParagraphNode();n.append(r),n=document.activeElement,($n.$getSelection()!==null||n!==null&&n===t.getRootElement())&&r.select()}},yr);else if(e!==null)switch(typeof e){case"string":let n=t.parseEditorState(e);t.setEditorState(n,yr);break;case"object":t.setEditorState(e,yr);break;case"function":t.update(()=>{$n.$getRoot().isEmpty()&&e(t)},yr)}}}Po.LexicalComposer=function({initialConfig:t,children:e}){let n=wr.useMemo(()=>{const{theme:r,namespace:i,editor__DEPRECATED:o,nodes:l,onError:s,editorState:a}=t,c=ms.createLexicalComposerContext(null,r);let d=o||null;if(d===null){const u=$n.createEditor({editable:!1,namespace:i,nodes:l,onError:g=>s(g,u),theme:r});mu(u,a),d=u}return[d,c]},[]);return pu(()=>{let r=t.editable,[i]=n;i.setEditable(r!==void 0?r:!0)},[]),wr.createElement(ms.LexicalComposerContext.Provider,{value:n},e)};var xu=Po,pe={},ke={},ce=w;function xs(t){throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?code=${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function _s(t,e){for(let n of e)if(t.type.startsWith(n))return!0;return!1}function vs(t,e){for(;t!==ce.$getRoot()&&t!=null;){if(e(t))return t;t=t.getParent()}return null}function ws(t,e,n,r,i){var o=n._nodes.get(t.__type);o===void 0&&xs(5);for(var l in t){var s=t[l];if(s!=null&&typeof s=="object"&&(s=s.editorState,s!=null)){var a=ce.createEditor({namespace:s.namespace});a._nodes=n._nodes,a._parentEditor=n._parentEditor,a._pendingEditorState=ys(a,s),t[l]=a}}if(o=o.klass,l=t.__key,t.__key=void 0,o=o.clone(t),t.__key=l,l=o.__key,i._nodeMap.set(l,o),o.__parent=r,ce.$isElementNode(o)){for(r=t.__children,s=0;s<r.length;s++)a=e.get(r[s]),a!==void 0&&(a=ws(a,e,n,l,i).__key,o.__children.push(a));o.__indent=t.__indent,o.__format=t.__format,o.__dir=t.__dir}else ce.$isTextNode(o)&&(o.__format=t.__format,o.__style=t.__style,o.__mode=t.__mode,o.__detail=t.__detail);return o}function _u(t,e){let n=e._editorState.constructor,r=new Map,i=new n(r),o=new Map(t._nodeMap),l=o.get("root");t=e._updating;try{e._updating=!1,e.update(()=>{let s=e._dirtyElements,a=e._dirtyLeaves,c=e._dirtyType;e._dirtyElements=new Map,e._dirtyLeaves=new Set,e._dirtyType=0;try{ws(l,o,e,null,i)}finally{e._dirtyElements=s,e._dirtyLeaves=a,e._dirtyType=c}})}finally{e._updating=t}return i._readOnly=!0,i}function ys(t,e){return e=typeof e=="string"?JSON.parse(e):e,_u(e,t)}function ks(t,e){let n=t.getChildAtIndex(e);n==null&&(n=t);let r=l=>{const s=l.getParentOrThrow(),a=ce.$isRootOrShadowRoot(s),c=l!==n||a?ce.$copyNode(l):l;if(a)return l.insertAfter(c),[l,c,c];const[d,u,g]=r(s);return l=l.getNextSiblings(),g.append(c,...l),[d,u,c]},[i,o]=r(n);return[i,o]}ke.$dfs=function(t,e){let n=[];t=(t||ce.$getRoot()).getLatest(),e=e||(ce.$isElementNode(t)?t.getLastDescendant():t);for(var r=t,i=0;(r=r.getParent())!==null;)i++;for(r=i;t!==null&&!t.is(e);)if(n.push({depth:r,node:t}),ce.$isElementNode(t)&&0<t.getChildrenSize())t=t.getFirstChild(),r++;else for(i=null;i===null&&t!==null;)i=t.getNextSibling(),i===null?(t=t.getParent(),r--):t=i;return t!==null&&t.is(e)&&n.push({depth:r,node:t}),n},ke.$findMatchingParent=vs,ke.$getNearestBlockElementAncestorOrThrow=function(t){return t=vs(t,e=>ce.$isElementNode(e)&&!e.isInline()),ce.$isElementNode(t)||xs(4),t},ke.$getNearestNodeOfType=function(t,e){for(;t!=null;){if(t instanceof e)return t;t=t.getParent()}return null},ke.$insertNodeToNearestRoot=function(t){var e=ce.$getSelection();if(ce.$isRangeSelection(e)){var{focus:n}=e;e=n.getNode(),n=n.offset;let r,i;ce.$isTextNode(e)?(r=e.getParentOrThrow(),i=e.getIndexWithinParent(),0<n&&(i+=1,e.splitText(n))):(r=e,i=n),[,e]=ks(r,i),e.insertBefore(t),e.selectStart()}else ce.$isNodeSelection(e)||ce.DEPRECATED_$isGridSelection(e)?(e=e.getNodes(),e[e.length-1].getTopLevelElementOrThrow().insertAfter(t)):ce.$getRoot().append(t),e=ce.$createParagraphNode(),t.insertAfter(e),e.select();return t.getLatest()},ke.$restoreEditorState=function(t,e){let n=new Map(e._nodeMap),r=t._pendingEditorState;r&&(r._nodeMap=n),t._dirtyType=2,t=e._selection,ce.$setSelection(t===null?null:t.clone())},ke.$splitNode=ks,ke.$wrapNodeInElement=function(t,e){return e=e(),t.replace(e),e.append(t),e},ke.addClassNamesToElement=function(t,...e){e.forEach(n=>{typeof n=="string"&&(n=n.split(" ").filter(r=>r!==""),t.classList.add(...n))})},ke.isMimeType=_s,ke.mediaFileReader=function(t,e){let n=t[Symbol.iterator]();return new Promise((r,i)=>{let o=[],l=()=>{const{done:s,value:a}=n.next();if(s)return r(o);const c=new FileReader;c.addEventListener("error",i),c.addEventListener("load",()=>{const d=c.result;typeof d=="string"&&o.push({file:a,result:d}),l()}),_s(a,e)?c.readAsDataURL(a):l()};l()})},ke.mergeRegister=function(...t){return()=>{t.forEach(e=>e())}},ke.registerNestedElementResolver=function(t,e,n,r){return t.registerNodeTransform(e,i=>{e:{for(var o=i.getChildren(),l=0;l<o.length;l++)if(o[l]instanceof e){o=null;break e}for(o=i;o!==null;)if(l=o,o=o.getParent(),o instanceof e){o={child:l,parent:o};break e}o=null}if(o!==null){const{child:s,parent:a}=o;if(s.is(i)){if(r(a,i),i=s.getNextSiblings(),o=i.length,a.insertAfter(s),o!==0){l=n(a),s.insertAfter(l);for(let c=0;c<o;c++)l.append(i[c])}a.canBeEmpty()||a.getChildrenSize()!==0||a.remove()}}})},ke.removeClassNamesFromElement=function(t,...e){e.forEach(n=>{typeof n=="string"&&t.classList.remove(...n.split(" "))})},ke.unstable_convertLegacyJSONEditorState=ys;var me=ke,j=w,Mn=me;function An(t){throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?code=${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Cs(t){let e=1;for(t=t.getParent();t!=null;){if(J(t)){if(t=t.getParent(),W(t)){e++,t=t.getParent();continue}An(40)}break}return e}function Li(t){t=t.getParent(),W(t)||An(40);let e=t;for(;e!==null;)e=e.getParent(),W(e)&&(t=e);return t}function Ns(t){let e=[];t=t.getChildren().filter(J);for(let n=0;n<t.length;n++){let r=t[n],i=r.getFirstChild();W(i)?e=e.concat(Ns(i)):e.push(r)}return e}function Zt(t){return J(t)&&W(t.getFirstChild())}function vu(t){for(;t.getNextSibling()==null&&t.getPreviousSibling()==null;){let e=t.getParent();if(e==null||!J(t)&&!W(t))break;t=e}t.remove()}function Es(t){return ze().append(t)}function Ts(t,e){return J(t)&&(e.length===0||e.length===1&&t.is(e[0])&&t.getChildrenSize()===0)}function Ct(t,e){t.splice(t.getChildrenSize(),0,e)}function Ss(t,e){if(W(t))return t;let n=t.getPreviousSibling(),r=t.getNextSibling(),i=ze();return i.setFormat(t.getFormatType()),i.setIndent(t.getIndent()),Ct(i,t.getChildren()),W(n)&&e===n.getListType()?(n.append(i),t.remove(),W(r)&&e===r.getListType()&&(Ct(n,r.getChildren()),r.remove()),n):W(r)&&e===r.getListType()?(r.getFirstChildOrThrow().insertBefore(i),t.remove(),r):(e=De(e),e.append(i),t.replace(e),Ae(e),e)}function Ae(t,e){if(t=e||t.getChildren(),t!==void 0)for(e=0;e<t.length;e++){let o=t[e];if(J(o)){let l=o.getValue();var n=o,r=n.getParent(),i=1;for(r!=null&&(W(r)?i=r.getStart():An(44)),n=n.getPreviousSiblings(),r=0;r<n.length;r++){let s=n[r];J(s)&&!W(s.getFirstChild())&&i++}l!==i&&o.setValue(i)}}}function bs(t){let e=new Set;t.forEach(n=>{if(!Zt(n)&&!e.has(n.getKey())){var r=n.getParent(),i=n.getNextSibling(),o=n.getPreviousSibling();if(Zt(i)&&Zt(o))o=o.getFirstChild(),W(o)&&(o.append(n),n=i.getFirstChild(),W(n)&&(n=n.getChildren(),Ct(o,n),i.remove(),e.add(i.getKey())),Ae(o));else if(Zt(i))i=i.getFirstChild(),W(i)&&(o=i.getFirstChild(),o!==null&&o.insertBefore(n),Ae(i));else if(Zt(o))i=o.getFirstChild(),W(i)&&(i.append(n),Ae(i));else if(W(r)){let l=ze(),s=De(r.getListType());l.append(s),s.append(n),o?o.insertAfter(l):i?i.insertBefore(l):r.append(l)}W(r)&&Ae(r)}})}function Rs(t){t.forEach(e=>{if(!Zt(e)){var n=e.getParent(),r=n?n.getParent():void 0,i=r?r.getParent():void 0;if(W(i)&&J(r)&&W(n)){var o=n?n.getFirstChild():void 0,l=n?n.getLastChild():void 0;if(e.is(o))r.insertBefore(e),n.isEmpty()&&r.remove();else if(e.is(l))r.insertAfter(e),n.isEmpty()&&r.remove();else{var s=n.getListType();o=ze();let a=De(s);o.append(a),e.getPreviousSiblings().forEach(c=>a.append(c)),l=ze(),s=De(s),l.append(s),Ct(s,e.getNextSiblings()),r.insertBefore(o),r.insertAfter(l),r.replace(e)}Ae(n),Ae(i)}}})}function Os(t){var e=j.$getSelection();if(j.$isRangeSelection(e)){var n=e.getNodes(),r=[];if(n.length===0&&n.push(e.anchor.getNode()),n.length===1){e:{for(n=n[0];n!==null;){if(J(n))break e;n=n.getParent()}n=null}n!==null&&(r=[n])}else{for(r=new Set,e=0;e<n.length;e++){let i=n[e];J(i)&&r.add(i)}r=Array.from(r)}0<r.length&&(t==="indent"?bs(r):Rs(r))}}class Nt extends j.ElementNode{static getType(){return"listitem"}static clone(e){return new Nt(e.__value,e.__checked,e.__key)}constructor(e,n,r){super(r),this.__value=e===void 0?1:e,this.__checked=n}createDOM(e){let n=document.createElement("li"),r=this.getParent();return W(r)&&(Ae(r),Ms(n,this,null,r)),n.value=this.__value,$s(n,e.theme,this),n}updateDOM(e,n,r){let i=this.getParent();return W(i)&&(Ae(i),Ms(n,this,e,i)),n.value=this.__value,$s(n,r.theme,this),!1}static importDOM(){return{li:()=>({conversion:wu,priority:0})}}static importJSON(e){let n=new Nt(e.value,e.checked);return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),type:"listitem",value:this.getValue(),version:1}}append(...e){for(let n=0;n<e.length;n++){let r=e[n];if(j.$isElementNode(r)&&this.canMergeWith(r)){let i=r.getChildren();this.append(...i),r.remove()}else super.append(r)}return this}replace(e){if(J(e))return super.replace(e);let n=this.getParentOrThrow();if(W(n)){var r=n.__children;let o=r.length;var i=r.indexOf(this.__key);if(i===0)n.insertBefore(e);else if(i===o-1)n.insertAfter(e);else{r=De(n.getListType());let l=n.getChildren();for(i+=1;i<o;i++)r.append(l[i]);n.insertAfter(e),e.insertAfter(r)}this.remove(),o===1&&n.remove()}return e}insertAfter(e){var n=this.getParentOrThrow();W(n)||An(39);var r=this.getNextSiblings();if(J(e))return n=super.insertAfter(e),e=e.getParentOrThrow(),W(e)&&Ae(e),n;if(W(e)&&e.getListType()===n.getListType()){for(n=e,e=e.getChildren(),r=e.length-1;0<=r;r--)n=e[r],this.insertAfter(n);return n}if(n.insertAfter(e),r.length!==0){let i=De(n.getListType());r.forEach(o=>i.append(o)),e.insertAfter(i)}return e}remove(e){let n=this.getNextSibling();super.remove(e),n!==null&&(e=n.getParent(),W(e)&&Ae(e))}insertNewAfter(){let e=ze(this.__checked==null?void 0:!1);return this.insertAfter(e),e}collapseAtStart(e){let n=j.$createParagraphNode();this.getChildren().forEach(l=>n.append(l));var r=this.getParentOrThrow(),i=r.getParentOrThrow();let o=J(i);return r.getChildrenSize()===1?o?(r.remove(),i.select()):(r.replace(n),r=e.anchor,e=e.focus,i=n.getKey(),r.type==="element"&&r.getNode().is(this)&&r.set(i,r.offset,"element"),e.type==="element"&&e.getNode().is(this)&&e.set(i,e.offset,"element")):(r.insertBefore(n),this.remove()),!0}getValue(){return this.getLatest().__value}setValue(e){this.getWritable().__value=e}getChecked(){return this.getLatest().__checked}setChecked(e){this.getWritable().__checked=e}toggleChecked(){this.setChecked(!this.__checked)}getIndent(){var e=this.getParent();if(e===null)return this.getLatest().__indent;e=e.getParentOrThrow();let n=0;for(;J(e);)e=e.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(e){let n=this.getIndent();for(;n!==e;)n<e?(bs([this]),n++):(Rs([this]),n--);return this}canIndent(){return!1}insertBefore(e){if(J(e)){let n=this.getParentOrThrow();if(W(n)){let r=this.getNextSiblings();Ae(n,r)}}return super.insertBefore(e)}canInsertAfter(e){return J(e)}canReplaceWith(e){return J(e)}canMergeWith(e){return j.$isParagraphNode(e)||J(e)}extractWithChild(e,n){if(!j.$isRangeSelection(n))return!1;e=n.anchor.getNode();let r=n.focus.getNode();return this.isParentOf(e)&&this.isParentOf(r)&&this.getTextContent().length===n.getTextContent().length}}function $s(t,e,n){let r=[],i=[];var o=(e=e.list)?e.listitem:void 0;if(e&&e.nested)var l=e.nested.listitem;if(o!==void 0&&(o=o.split(" "),r.push(...o)),e){o=n.getParent(),o=W(o)&&o.getListType()==="check";let s=n.getChecked();o&&!s||i.push(e.listitemUnchecked),o&&s||i.push(e.listitemChecked),o&&r.push(s?e.listitemChecked:e.listitemUnchecked)}l!==void 0&&(l=l.split(" "),n.getChildren().some(s=>W(s))?r.push(...l):i.push(...l)),0<i.length&&Mn.removeClassNamesFromElement(t,...i),0<r.length&&Mn.addClassNamesToElement(t,...r)}function Ms(t,e,n,r){r.getListType()==="check"?W(e.getFirstChild())?(t.removeAttribute("role"),t.removeAttribute("tabIndex"),t.removeAttribute("aria-checked")):(t.setAttribute("role","checkbox"),t.setAttribute("tabIndex","-1"),n&&e.__checked===n.__checked||t.setAttribute("aria-checked",e.getChecked()?"true":"false")):e.getChecked()!=null&&e.setChecked(void 0)}function wu(){return{node:ze()}}function ze(t){return j.$applyNodeReplacement(new Nt(void 0,t))}function J(t){return t instanceof Nt}class Dn extends j.ElementNode{static getType(){return"list"}static clone(e){return new Dn(e.__listType||Ls[e.__tag],e.__start,e.__key)}constructor(e,n,r){super(r),this.__listType=e=Ls[e]||e,this.__tag=e==="number"?"ol":"ul",this.__start=n}getTag(){return this.__tag}getListType(){return this.__listType}getStart(){return this.__start}createDOM(e){let n=document.createElement(this.__tag);return this.__start!==1&&n.setAttribute("start",String(this.__start)),n.__lexicalListType=this.__listType,As(n,e.theme,this),n}updateDOM(e,n,r){return e.__tag!==this.__tag?!0:(As(n,r.theme,this),!1)}static importDOM(){return{ol:()=>({conversion:Ds,priority:0}),ul:()=>({conversion:Ds,priority:0})}}static importJSON(e){let n=De(e.listType,e.start);return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag(),type:"list",version:1}}canBeEmpty(){return!1}canIndent(){return!1}append(...e){for(let r=0;r<e.length;r++){var n=e[r];if(J(n))super.append(n);else{let i=ze();W(n)||j.$isElementNode(n)&&(n=j.$createTextNode(n.getTextContent())),i.append(n),super.append(i)}}return this}extractWithChild(e){return J(e)}}function As(t,e,n){let r=[],i=[];var o=e.list;if(o!==void 0){let s=o[`${n.__tag}Depth`]||[];e=Cs(n)-1;let a=e%s.length;var l=s[a];let c=o[n.__tag],d;if(o=o.nested,o!==void 0&&o.list&&(d=o.list),c!==void 0&&r.push(c),l!==void 0)for(l=l.split(" "),r.push(...l),l=0;l<s.length;l++)l!==a&&i.push(n.__tag+l);d!==void 0&&(n=d.split(" "),1<e?r.push(...n):i.push(...n))}0<i.length&&Mn.removeClassNamesFromElement(t,...i),0<r.length&&Mn.addClassNamesToElement(t,...r)}function yu(t){let e=[];for(let n=0;n<t.length;n++){let r=t[n];J(r)?(e.push(r),r.getChildren().forEach(i=>{W(i)&&e.push(Es(i))})):e.push(Es(r))}return e}function Ds(t){t=t.nodeName.toLowerCase();let e=null;return t==="ol"?e=De("number"):t==="ul"&&(e=De("bullet")),{after:yu,node:e}}let Ls={ol:"number",ul:"bullet"};function De(t,e=1){return j.$applyNodeReplacement(new Dn(t,e))}function W(t){return t instanceof Dn}let ku=j.createCommand("INSERT_UNORDERED_LIST_COMMAND"),Cu=j.createCommand("INSERT_ORDERED_LIST_COMMAND"),Nu=j.createCommand("INSERT_CHECK_LIST_COMMAND"),Eu=j.createCommand("REMOVE_LIST_COMMAND");pe.$createListItemNode=ze,pe.$createListNode=De,pe.$getListDepth=Cs,pe.$handleListInsertParagraph=function(){var t=j.$getSelection();if(!j.$isRangeSelection(t)||!t.isCollapsed()||(t=t.anchor.getNode(),!J(t)||t.getTextContent()!==""))return!1;var e=Li(t),n=t.getParent();W(n)||An(40);let r=n.getParent(),i;if(j.$isRootOrShadowRoot(r))i=j.$createParagraphNode(),e.insertAfter(i);else if(J(r))i=ze(),r.insertAfter(i);else return!1;if(i.select(),e=t.getNextSiblings(),0<e.length){let o=De(n.getListType());j.$isParagraphNode(i)?i.insertAfter(o):(n=ze(),n.append(o),i.insertAfter(n)),e.forEach(l=>{l.remove(),o.append(l)})}return vu(t),!0},pe.$isListItemNode=J,pe.$isListNode=W,pe.INSERT_CHECK_LIST_COMMAND=Nu,pe.INSERT_ORDERED_LIST_COMMAND=Cu,pe.INSERT_UNORDERED_LIST_COMMAND=ku,pe.ListItemNode=Nt,pe.ListNode=Dn,pe.REMOVE_LIST_COMMAND=Eu,pe.indentList=function(){Os("indent")},pe.insertList=function(t,e){t.update(()=>{var n=j.$getSelection();if(j.$isRangeSelection(n)||j.DEPRECATED_$isGridSelection(n)){var r=n.getNodes();n=n.anchor.getNode();var i=n.getParent();if(Ts(n,r))r=De(e),j.$isRootOrShadowRoot(i)?(n.replace(r),i=ze(),j.$isElementNode(n)&&(i.setFormat(n.getFormatType()),i.setIndent(n.getIndent())),r.append(i)):J(n)&&(n=n.getParentOrThrow(),Ct(r,n.getChildren()),n.replace(r));else for(n=new Set,i=0;i<r.length;i++){var o=r[i];if(j.$isElementNode(o)&&o.isEmpty()&&!n.has(o.getKey()))Ss(o,e);else if(j.$isLeafNode(o))for(o=o.getParent();o!=null;){let s=o.getKey();if(W(o)){if(!n.has(s)){var l=De(e);Ct(l,o.getChildren()),o.replace(l),Ae(l),n.add(s)}break}else{if(l=o.getParent(),j.$isRootOrShadowRoot(l)&&!n.has(s)){n.add(s),Ss(o,e);break}o=l}}}}})},pe.outdentList=function(){Os("outdent")},pe.removeList=function(t){t.update(()=>{let e=j.$getSelection();if(j.$isRangeSelection(e)){var n=new Set,r=e.getNodes(),i=e.anchor.getNode();if(Ts(i,r))n.add(Li(i));else for(i=0;i<r.length;i++){var o=r[i];j.$isLeafNode(o)&&(o=Mn.$getNearestNodeOfType(o,Nt),o!=null&&n.add(Li(o)))}for(let l of n){n=l,r=Ns(l);for(let s of r)r=j.$createParagraphNode(),Ct(r,s.getChildren()),n.insertAfter(r),n=r,s.__key===e.anchor.key&&e.anchor.set(r.getKey(),0,"element"),s.__key===e.focus.key&&e.focus.set(r.getKey(),0,"element"),s.remove();l.remove()}}})};var Qe=pe,Ve={},et={},Ii={},de={},F=w;let kr=new Map;function Tu(t){return{nodeMap:t.getNodes().map(e=>{const n=e.getKey();return e=Nr(e),[n,e]}),range:[t.gridKey]}}function Is(t){for(;t!=null;){if(t.nodeType===Node.TEXT_NODE)return t;t=t.firstChild}return null}function Ps(t){let e=t.parentNode;if(e==null)throw Error("Should never happen");return[e,Array.from(e.childNodes).indexOf(t)]}function Fs(t){let e={};t=t.split(";");for(let n of t)if(n!==""){let[r,i]=n.split(/:([^]+)/);e[r.trim()]=i.trim()}return e}function Pi(t){let e=kr.get(t);return e===void 0&&(e=Fs(t),kr.set(t,e)),e}function Su(t){let e="";for(let n in t)n&&(e+=`${n}: ${t[n]};`);return e}function bu(t){for(;t!==null&&!F.$isRootOrShadowRoot(t);){let e=t.getLatest(),n=t.getParent();e.__children.length===0&&t.remove(!0),t=n}}function Cr(t,e,n,r,i=null){if(e.length!==0){var o=e[0],l=new Map,s=[];o=F.$isElementNode(o)?o:o.getParentOrThrow(),o.isInline()&&(o=o.getParentOrThrow());for(var a=!1;o!==null;){var c=o.getPreviousSibling();if(c!==null){o=c,a=!0;break}if(o=o.getParentOrThrow(),F.$isRootOrShadowRoot(o))break}c=new Set;for(var d=0;d<n;d++){var u=e[d];F.$isElementNode(u)&&u.getChildrenSize()===0&&c.add(u.getKey())}var g=new Set;for(d=0;d<n;d++){u=e[d];var m=u.getParent();if(m!==null&&m.isInline()&&(m=m.getParent()),m!==null&&F.$isLeafNode(u)&&!g.has(u.getKey())){if(u=m.getKey(),l.get(u)===void 0){let f=r();f.setFormat(m.getFormatType()),f.setIndent(m.getIndent()),s.push(f),l.set(u,f),m.getChildren().forEach(_=>{f.append(_),g.add(_.getKey()),F.$isElementNode(_)&&_.getChildrenKeys().forEach(C=>g.add(C))}),bu(m)}}else c.has(u.getKey())&&(m=r(),m.setFormat(u.getFormatType()),m.setIndent(u.getIndent()),s.push(m),u.remove(!0))}if(i!==null)for(e=0;e<s.length;e++)i.append(s[e]);if(e=null,F.$isRootOrShadowRoot(o))if(a)if(i!==null)o.insertAfter(i);else for(i=s.length-1;0<=i;i--)o.insertAfter(s[i]);else if(a=o.getFirstChild(),F.$isElementNode(a)&&(o=a),a===null)if(i)o.append(i);else for(i=0;i<s.length;i++)a=s[i],o.append(a),e=a;else if(i!==null)a.insertBefore(i);else for(o=0;o<s.length;o++)i=s[o],a.insertBefore(i),e=i;else if(i)o.insertAfter(i);else for(i=s.length-1;0<=i;i--)a=s[i],o.insertAfter(a),e=a;s=F.$getPreviousSelection(),F.$isRangeSelection(s)&&s.anchor.getNode().isAttached()&&s.focus.getNode().isAttached()?F.$setSelection(s.clone()):e!==null?e.selectEnd():t.dirty=!0}}function zs(t,e,n,r){t.modify(e?"extend":"move",n,r)}function Bs(t){return t=t.anchor.getNode(),(F.$isRootNode(t)?t:t.getParentOrThrow()).getDirection()==="rtl"}function Hs(t,e,n,r,i,o){for(var l=e;t!==null;){for(e=t.getParent();e!==null&&e.excludeFromCopy("clone");)e=e.getParent();if(e===null)break;if(!F.$isElementNode(t)||!t.excludeFromCopy("clone")){let s=t.getKey(),a=o.get(s),c=a===void 0;if(c&&(a=Nr(t),o.set(s,a)),!F.$isTextNode(a)||a.isSegmented()||a.isToken()?F.$isElementNode(a)&&(a.__children=a.__children.slice(r?l:0,r?void 0:(l||0)+1)):a.__text=a.__text.slice(r?l:0,r?n:l),F.$isRootNode(e)){c&&i.push(s);break}}l=o.get(e.getKey()),l=F.$isElementNode(l)?l.__children.indexOf(t.getKey()):t.getIndexWithinParent(),t=e}}function Nr(t){t=t.getLatest();let e=t.constructor.clone(t);return e.__parent=t.__parent,F.$isElementNode(t)&&F.$isElementNode(e)?(e.__children=Array.from(t.__children),e.__format=t.__format,e.__indent=t.__indent,e.__dir=t.__dir,e):(F.$isTextNode(t)&&F.$isTextNode(e)&&(e.__format=t.__format,e.__style=t.__style,e.__mode=t.__mode,e.__detail=t.__detail),e)}function Ln(t,e){var n=Pi(t.getStyle());e=Object.entries(e).reduce((r,[i,o])=>(o===null?delete r[i]:r[i]=o,r),{...n}),n=Su(e),t.setStyle(n),kr.set(n,e)}de.$addNodeStyle=function(t){t=t.getStyle();let e=Fs(t);kr.set(t,e)},de.$cloneContents=function(t){var e={nodeMap:[],range:[]};if(F.$isRangeSelection(t)){var n=t.anchor,r=t.focus;let[c,d]=t.getCharacterOffsets();if(e=t.getNodes(),e.length===0||e.length===1&&F.$isElementNode(e[0])&&e[0].excludeFromCopy("clone"))e={nodeMap:[],range:[]};else{t=e.length;var i=e[0],o=i.getParent();if(o!==null&&(!o.canBeEmpty()||F.$isRootNode(o))){var l=o.__children;if(l.length===t){for(var s=!0,a=0;a<l.length;a++)if(l[a]!==e[a].__key){s=!1;break}s&&(t++,e.push(o))}}for(o=e[t-1],n=n.isBefore(r),r=new Map,l=[],s=F.$isTextNode(i)&&t===1,Hs(i,n?c:d,s?n?d:c:void 0,!0,l,r),i=0;i<t;i++){a=e[i];let u=a.getKey();if(!(r.has(u)||F.$isElementNode(a)&&a.excludeFromCopy("clone"))){let g=Nr(a);F.$isRootNode(a.getParent())&&l.push(a.getKey()),u!=="root"&&r.set(u,g)}}Hs(o,s?void 0:n?d:c,void 0,!1,l,r),e={nodeMap:Array.from(r.entries()),range:l}}}else if(F.DEPRECATED_$isGridSelection(t))e=Tu(t);else if(F.$isNodeSelection(t))throw Error("Minified Lexical error #1; visit https://lexical.dev/docs/error?code=1 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");return e},de.$cloneWithProperties=Nr,de.$getSelectionStyleValueForProperty=function(t,e,n=""){let r=null,i=t.getNodes();var o=t.anchor,l=t.focus,s=t.isBackward();for(t=s?l.offset:o.offset,o=s?l.getNode():o.getNode(),l=0;l<i.length;l++){var a=i[l];if((l===0||t!==0||!a.is(o))&&F.$isTextNode(a)){s=e;var c=n;if(a=a.getStyle(),a=Pi(a),s=a!==null&&a[s]||c,r===null)r=s;else if(r!==s){r="";break}}}return r===null?n:r},de.$isAtNodeEnd=function(t){return t.type==="text"?t.offset===t.getNode().getTextContentSize():t.offset===t.getNode().getChildrenSize()},de.$isParentElementRTL=Bs,de.$moveCaretSelection=zs,de.$moveCharacter=function(t,e,n){let r=Bs(t);zs(t,e,n?!r:r,"character")},de.$patchStyleText=function(t,e){var n=t.getNodes();let r=n.length-1,i=n[0],o=n[r];if(!t.isCollapsed()){var l=t.anchor,s=t.focus,a=i.getTextContent().length,c=s.offset,d=l.offset,u=l.isBefore(s),g=u?d:c;t=u?c:d;var m=u?l.type:s.type,f=u?s.type:l.type;if(l=u?s.key:l.key,F.$isTextNode(i)&&g===a&&(s=i.getNextSibling(),F.$isTextNode(s)&&(g=d=0,i=s)),i.is(o))F.$isTextNode(i)&&(g=m==="element"?0:d>c?c:d,t=f==="element"?a:d>c?d:c,g!==t&&(g===0&&t===a?(Ln(i,e),i.select(g,t)):(n=i.splitText(g,t),n=g===0?n[0]:n[1],Ln(n,e),n.select(0,t-g))));else for(F.$isTextNode(i)&&g<i.getTextContentSize()&&(g!==0&&(i=i.splitText(g)[1]),Ln(i,e)),F.$isTextNode(o)&&(g=o.getTextContent().length,o.__key!==l&&t!==0&&(t=g),t!==g&&([o]=o.splitText(t)),t!==0&&Ln(o,e)),t=1;t<r;t++)g=n[t],a=g.getKey(),F.$isTextNode(g)&&a!==i.getKey()&&a!==o.getKey()&&!g.isToken()&&Ln(g,e)}},de.$selectAll=function(t){let e=t.anchor;t=t.focus;var n=e.getNode().getTopLevelElementOrThrow().getParentOrThrow();let r=n.getFirstDescendant();n=n.getLastDescendant();let i="element",o="element",l=0;F.$isTextNode(r)?i="text":F.$isElementNode(r)||r===null||(r=r.getParentOrThrow()),F.$isTextNode(n)?(o="text",l=n.getTextContentSize()):F.$isElementNode(n)||n===null||(n=n.getParentOrThrow()),r&&n&&(e.set(r.getKey(),0,i),t.set(n.getKey(),l,o))},de.$shouldOverrideDefaultCharacterSelection=function(t,e){return t=F.$getDecoratorNode(t.focus,e),F.$isDecoratorNode(t)&&!t.isIsolated()},de.$sliceSelectedTextNodeContent=function(t,e){if(e.isSelected()&&!e.isSegmented()&&!e.isToken()&&(F.$isRangeSelection(t)||F.DEPRECATED_$isGridSelection(t))){var n=t.anchor.getNode(),r=t.focus.getNode(),i=e.is(n),o=e.is(r);if(i||o){i=t.isBackward();let[l,s]=t.getCharacterOffsets();t=n.is(r),o=e.is(i?r:n),r=e.is(i?n:r),n=0;let a;t?(n=l>s?s:l,a=l>s?l:s):o?(n=i?s:l,a=void 0):r&&(i=i?l:s,n=0,a=i),e.__text=e.__text.slice(n,a)}}return e},de.$wrapNodes=function(t,e,n=null){var r=t.getNodes();let i=r.length;var o=t.anchor;if(i===0||i===1&&o.type==="element"&&o.getNode().getChildrenSize()===0){t=o.type==="text"?o.getNode().getParentOrThrow():o.getNode(),r=t.getChildren();let s=e();s.setFormat(t.getFormatType()),s.setIndent(t.getIndent()),r.forEach(a=>s.append(a)),n&&(s=n.append(s)),t.replace(s)}else{o=null;var l=[];for(let s=0;s<i;s++){let a=r[s];F.$isRootOrShadowRoot(a)?(Cr(t,l,l.length,e,n),l=[],o=a):o===null||o!==null&&F.$hasAncestor(a,o)?l.push(a):(Cr(t,l,l.length,e,n),l=[a])}Cr(t,l,l.length,e,n)}},de.$wrapNodesImpl=Cr,de.createDOMRange=function(t,e,n,r,i){let o=e.getKey(),l=r.getKey(),s=document.createRange(),a=t.getElementByKey(o);if(t=t.getElementByKey(l),F.$isTextNode(e)&&(a=Is(a)),F.$isTextNode(r)&&(t=Is(t)),e===void 0||r===void 0||a===null||t===null)return null;a.nodeName==="BR"&&([a,n]=Ps(a)),t.nodeName==="BR"&&([t,i]=Ps(t)),e=a.firstChild,a===t&&e!=null&&e.nodeName==="BR"&&n===0&&i===0&&(i=1);try{s.setStart(a,n),s.setEnd(t,i)}catch{return null}return!s.collapsed||n===i&&o===l||(s.setStart(t,i),s.setEnd(a,n)),s},de.createRectsFromDOMRange=function(t,e){var n=t.getRootElement();if(n===null)return[];t=n.getBoundingClientRect(),n=getComputedStyle(n),n=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),e=Array.from(e.getClientRects());let r=e.length,i;for(let o=0;o<r;o++){let l=e[o],s=l.width+n===t.width;i&&i.top===l.top&&i.left===l.left&&i.width===l.width&&i.height===l.height||s?(e.splice(o--,1),r--):i=l}return e},de.getStyleObjectFromCSS=Pi,de.trimTextContentFromAnchor=function(t,e,n){let r=e.getNode();if(F.$isElementNode(r)){var i=r.getDescendantByIndex(e.offset);i!==null&&(r=i)}for(;0<n&&r!==null;){var o=r.getPreviousSibling(),l=0;if(o===null){i=r.getParentOrThrow();for(var s=i.getPreviousSibling();s===null;){if(i=i.getParent(),i===null){o=null;break}s=i.getPreviousSibling()}i!==null&&(l=i.isInline()?0:2,o=F.$isElementNode(s)?s.getLastDescendant():s)}let a=r.getTextContent();a===""&&F.$isElementNode(r)&&!r.isInline()&&(a=`
27
+ `)}return e}getDirection(){return this.getLatest().__dir}hasFormat(e){return e!==""?(e=sl[e],(this.getFormat()&e)!==0):!1}select(e,n){Re();let r=Z();var i=this.getChildrenSize();if(e===void 0&&(e=i),n===void 0&&(n=i),i=this.__key,H(r))r.anchor.set(i,e,"element"),r.focus.set(i,n,"element"),r.dirty=!0;else return Ql(i,e,i,n,"element","element");return r}selectStart(){let e=this.getFirstDescendant();return O(e)||L(e)?e.select(0,0):e!==null?e.selectPrevious():this.select(0,0)}selectEnd(){let e=this.getLastDescendant();return O(e)||L(e)?e.select():e!==null?e.selectNext():this.select()}clear(){let e=this.getWritable();return this.getChildren().forEach(n=>n.remove()),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){let n=this.getWritable();return n.__dir=e,n}setFormat(e){return this.getWritable().__format=e!==""?sl[e]:0,this}setIndent(e){return this.getWritable().__indent=e,this}splice(e,n,r){let i=this.getWritable();var o=i.__key;let l=i.__children,s=r.length;var a=[];for(let c=0;c<s;c++){let d=r[c],u=d.getWritable();d.__key===o&&A(76),ir(u),u.__parent=o,a.push(u.__key)}if((r=this.getChildAtIndex(e-1))&&zt(r),(o=this.getChildAtIndex(e+n))&&zt(o),e===l.length?(l.push(...a),e=[]):e=l.splice(e,n,...a),e.length&&(n=Z(),H(n))){let c=new Set(e),d=new Set(a);a=m=>{for(m=m.getNode();m;){const f=m.__key;if(c.has(f)&&!d.has(f))return!0;m=m.getParent()}return!1};let{anchor:u,focus:g}=n;for(a(u)&&xr(u,u.getNode(),this,r,o),a(g)&&xr(g,g.getNode(),this,r,o),a=e.length,n=0;n<a;n++)r=q(e[n]),r!=null&&(r.getWritable().__parent=null);l.length!==0||this.canBeEmpty()||at(this)||this.remove()}return i}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"element",version:1}}insertNewAfter(){return null}canInsertTab(){return!1}canIndent(){return!0}collapseAtStart(){return!1}excludeFromCopy(){return!1}canExtractContents(){return!0}canReplaceWith(){return!0}canInsertAfter(){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(){return!1}extractWithChild(){return!1}}function O(t){return t instanceof kt}class Ut extends kt{static getType(){return"root"}static clone(){return new Ut}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){A(51)}getTextContent(){let e=this.__cachedText;return!ae&&oe()._dirtyType!==0||e===null?super.getTextContent():e}remove(){A(52)}replace(){A(53)}insertBefore(){A(54)}insertAfter(){A(55)}updateDOM(){return!1}append(...e){for(let n=0;n<e.length;n++){let r=e[n];O(r)||ee(r)||A(56)}return super.append(...e)}static importJSON(e){let n=st();return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"root",version:1}}collapseAtStart(){return!0}}function Me(t){return t instanceof Ut}function lu(t,e){if(e=e.getEditorState()._selection,t=t._selection,t!==null){if(t.dirty||!t.is(e))return!0}else if(e!==null)return!0;return!1}function Oi(){return new vr(new Map([["root",new Ut]]))}function cs(t){let e=t.exportJSON();e.type!==t.constructor.getType()&&A(58);let n=e.children;if(O(t)){Array.isArray(n)||A(59),t=t.getChildren();for(let r=0;r<t.length;r++){let i=cs(t[r]);n.push(i)}}return e}class vr{constructor(e,n){this._nodeMap=e,this._selection=n||null,this._readOnly=this._flushSync=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(e){return is(this,e)}clone(e){return e=new vr(this._nodeMap,e===void 0?this._selection:e),e._readOnly=!0,e}toJSON(){return is(this,()=>({root:cs(st())}))}}class jt extends _r{static getType(){return"linebreak"}static clone(e){return new jt(e.__key)}constructor(e){super(e)}getTextContent(){return`
28
+ `}createDOM(){return document.createElement("br")}updateDOM(){return!1}static importDOM(){return{br:e=>{let n=e.parentElement;return n!=null&&n.firstChild===e&&n.lastChild===e?null:{conversion:su,priority:0}}}}static importJSON(){return bn()}exportJSON(){return{type:"linebreak",version:1}}}function su(){return{node:bn()}}function bn(){return ar(new jt)}function Rn(t){return t instanceof jt}function $i(t,e){return e&16?"code":e&32?"sub":e&64?"sup":null}function Mi(t,e){return e&1?"strong":e&2?"em":"span"}function Ai(t,e,n,r,i){t=r.classList,r=fn(i,"base"),r!==void 0&&t.add(...r),r=fn(i,"underlineStrikethrough");let o=!1,l=e&8&&e&4;var s=n&8&&n&4;r!==void 0&&(s?(o=!0,l||t.add(...r)):l&&t.remove(...r));for(let a in xt)s=xt[a],r=fn(i,a),r!==void 0&&(n&s?!o||a!=="underline"&&a!=="strikethrough"?((e&s)===0||l&&a==="underline"||a==="strikethrough")&&t.add(...r):e&s&&t.remove(...r):e&s&&t.remove(...r))}function Di(t,e,n){let r=e.firstChild;if(n=n.isComposing(),t+=n?tr:"",r==null)e.textContent=t;else if(e=r.nodeValue,e!==t)if(n||mt){n=e.length;let i=t.length,o=0,l=0;for(;o<n&&o<i&&e[o]===t[o];)o++;for(;l+o<n&&l+o<i&&e[n-l-1]===t[i-l-1];)l++;t=[o,n-o-l,t.slice(o,i-l)];let[s,a,c]=t;a!==0&&r.deleteData(s,a),r.insertData(s,c)}else r.nodeValue=t}class Yt extends _r{static getType(){return"text"}static clone(e){return new Yt(e.__text,e.__key)}constructor(e,n){super(n),this.__text=e,this.__format=0,this.__style="",this.__detail=this.__mode=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){let e=this.getLatest();return Pd[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===lt()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return(this.getLatest().__detail&1)!==0}isUnmergeable(){return(this.getLatest().__detail&2)!==0}hasFormat(e){return e=xt[e],(this.getFormat()&e)!==0}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(e,n){let r=this.getLatest().__format;return gl(r,e,n)}createDOM(e){var n=this.__format,r=$i(this,n);let i=Mi(this,n),o=document.createElement(r===null?i:r),l=o;return r!==null&&(l=document.createElement(i),o.appendChild(l)),r=l,Di(this.__text,r,this),e=e.theme.text,e!==void 0&&Ai(i,0,n,r,e),n=this.__style,n!==""&&(o.style.cssText=n),o}updateDOM(e,n,r){let i=this.__text;var o=e.__format,l=this.__format,s=$i(this,o);let a=$i(this,l);var c=Mi(this,o);let d=Mi(this,l);return(s===null?c:s)!==(a===null?d:a)?!0:s===a&&c!==d?(o=n.firstChild,o==null&&A(48),e=s=document.createElement(d),Di(i,e,this),r=r.theme.text,r!==void 0&&Ai(d,0,l,e,r),n.replaceChild(s,o),!1):(c=n,a!==null&&s!==null&&(c=n.firstChild,c==null&&A(49)),Di(i,c,this),r=r.theme.text,r!==void 0&&o!==l&&Ai(d,o,l,c,r),l=this.__style,e.__style!==l&&(n.style.cssText=l),!1)}static importDOM(){return{"#text":()=>({conversion:du,priority:0}),b:()=>({conversion:cu,priority:0}),code:()=>({conversion:On,priority:0}),em:()=>({conversion:On,priority:0}),i:()=>({conversion:On,priority:0}),span:()=>({conversion:au,priority:0}),strong:()=>({conversion:On,priority:0}),u:()=>({conversion:On,priority:0})}}static importJSON(e){let n=fe(e.text);return n.setFormat(e.format),n.setDetail(e.detail),n.setMode(e.mode),n.setStyle(e.style),n}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),type:"text",version:1}}selectionTransform(){}setFormat(e){let n=this.getWritable();return n.__format=typeof e=="string"?xt[e]:e,n}setDetail(e){let n=this.getWritable();return n.__detail=typeof e=="string"?Dd[e]:e,n}setStyle(e){let n=this.getWritable();return n.__style=e,n}toggleFormat(e){return e=xt[e],this.setFormat(this.getFormat()^e)}toggleDirectionless(){let e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){let e=this.getWritable();return e.__detail^=2,e}setMode(e){e=Id[e];let n=this.getWritable();return n.__mode=e,n}setTextContent(e){let n=this.getWritable();return n.__text=e,n}select(e,n){Re();let r=Z();var i=this.getTextContent();let o=this.__key;if(typeof i=="string"?(i=i.length,e===void 0&&(e=i),n===void 0&&(n=i)):n=e=0,H(r))i=lt(),i!==r.anchor.key&&i!==r.focus.key||he(o),r.setTextNodeRange(this,e,this,n);else return Ql(o,e,o,n,"text","text");return r}spliceText(e,n,r,i){let o=this.getWritable(),l=o.__text,s=r.length,a=e;0>a&&(a=s+a,0>a&&(a=0));let c=Z();return i&&H(c)&&(e+=s,c.setTextNodeRange(o,e,o,e)),n=l.slice(0,a)+r+l.slice(a+n),o.__text=n,o}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){Re();var n=this.getLatest(),r=n.getTextContent(),i=n.__key,o=lt(),l=new Set(e);e=[];for(var s=r.length,a="",c=0;c<s;c++)a!==""&&l.has(c)&&(e.push(a),a=""),a+=r[c];if(a!==""&&e.push(a),l=e.length,l===0)return[];if(e[0]===r)return[n];var d=e[0];r=n.getParentOrThrow(),c=r.__key;let u=n.getFormat(),g=n.getStyle(),m=n.__detail;s=!1,n.isSegmented()?(a=fe(d),a.__parent=c,a.__format=u,a.__style=g,a.__detail=m,s=!0):(a=n.getWritable(),a.__text=d),n=Z(),a=[a],d=d.length;for(let C=1;C<l;C++){var f=e[C],_=f.length;f=fe(f).getWritable(),f.__format=u,f.__style=g,f.__detail=m;let E=f.__key;if(_=d+_,H(n)){let p=n.anchor,w=n.focus;p.key===i&&p.type==="text"&&p.offset>d&&p.offset<=_&&(p.key=E,p.offset-=d,n.dirty=!0),w.key===i&&w.type==="text"&&w.offset>d&&w.offset<=_&&(w.key=E,w.offset-=d,n.dirty=!0)}o===i&&he(E),d=_,f.__parent=c,a.push(f)}return Bt(this),o=r.getWritable().__children,i=o.indexOf(i),e=a.map(C=>C.__key),s?(o.splice(i,0,...e),this.remove()):o.splice(i,1,...e),H(n)&&mr(n,r,i,l-1),a}mergeWithSibling(e){var n=e===this.getPreviousSibling();n||e===this.getNextSibling()||A(50);var r=this.__key;let i=e.__key,o=this.__text,l=o.length;lt()===i&&he(r);let s=Z();if(H(s)){let a=s.anchor,c=s.focus;a!==null&&a.key===i&&(ns(a,n,r,e,l),s.dirty=!0),c!==null&&c.key===i&&(ns(c,n,r,e,l),s.dirty=!0)}return r=e.__text,this.setTextContent(n?r+o:o+r),n=this.getWritable(),e.remove(),n}isTextEntity(){return!1}}function au(t){let e=t.style.fontWeight==="700",n=t.style.textDecoration==="line-through",r=t.style.fontStyle==="italic",i=t.style.textDecoration==="underline",o=t.style.verticalAlign;return{forChild:l=>(L(l)&&(e&&l.toggleFormat("bold"),n&&l.toggleFormat("strikethrough"),r&&l.toggleFormat("italic"),i&&l.toggleFormat("underline"),o==="sub"&&l.toggleFormat("subscript"),o==="super"&&l.toggleFormat("superscript")),l),node:null}}function cu(t){let e=t.style.fontWeight==="normal";return{forChild:n=>(L(n)&&!e&&n.toggleFormat("bold"),n),node:null}}function du(t,e,n){return t=t.textContent||"",!n&&/\n/.test(t)&&(t=t.replace(/\r?\n/gm," "),t.trim().length===0)?{node:null}:{node:fe(t)}}let uu={code:"code",em:"italic",i:"italic",strong:"bold",u:"underline"};function On(t){let e=uu[t.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:n=>(L(n)&&n.toggleFormat(e),n),node:null}}function fe(t=""){return ar(new Yt(t))}function L(t){return t instanceof Yt}class Vt extends kt{static getType(){return"paragraph"}static clone(e){return new Vt(e.__key)}createDOM(e){let n=document.createElement("p");return e=fn(e.theme,"paragraph"),e!==void 0&&n.classList.add(...e),n}updateDOM(){return!1}static importDOM(){return{p:()=>({conversion:gu,priority:0})}}exportDOM(e){if({element:e}=super.exportDOM(e),e&&this.isEmpty()&&e.append(document.createElement("br")),e){var n=this.getFormatType();e.style.textAlign=n,(n=this.getDirection())&&(e.dir=n),n=this.getIndent(),0<n&&(e.style.textIndent=`${20*n}px`)}return{element:e}}static importJSON(e){let n=Gt();return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),type:"paragraph",version:1}}insertNewAfter(){let e=Gt(),n=this.getDirection();return e.setDirection(n),this.insertAfter(e),e}collapseAtStart(){let e=this.getChildren();if(e.length===0||L(e[0])&&e[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function gu(){return{node:Gt()}}function Gt(){return ar(new Vt)}function ds(t,e,n,r){let i=t._keyToDOMMap;i.clear(),t._editorState=Oi(),t._pendingEditorState=r,t._compositionKey=null,t._dirtyType=0,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),t._normalizedNodes=new Set,t._updateTags=new Set,t._updates=[],r=t._observer,r!==null&&(r.disconnect(),t._observer=null),e!==null&&(e.textContent=""),n!==null&&(n.textContent="",i.set("root",n))}function hu(t){let e=new Map,n=new Set;return t.forEach(r=>{if(r=r.klass.importDOM!=null?r.klass.importDOM.bind(r.klass):null,r!=null&&!n.has(r)){n.add(r);var i=r();i!==null&&Object.keys(i).forEach(o=>{let l=e.get(o);l===void 0&&(l=[],e.set(o,l)),l.push(i[o])})}}),e}class fu{constructor(e,n,r,i,o,l){this._parentEditor=n,this._rootElement=null,this._editorState=e,this._compositionKey=this._pendingEditorState=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=i,this._nodes=r,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=vl(),this._onError=o,this._htmlConversions=l,this._editable=!0,this._headless=!1,this._window=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){let n=this._listeners.update;return n.add(e),()=>{n.delete(e)}}registerEditableListener(e){let n=this._listeners.editable;return n.add(e),()=>{n.delete(e)}}registerDecoratorListener(e){let n=this._listeners.decorator;return n.add(e),()=>{n.delete(e)}}registerTextContentListener(e){let n=this._listeners.textcontent;return n.add(e),()=>{n.delete(e)}}registerRootListener(e){let n=this._listeners.root;return e(this._rootElement,null),n.add(e),()=>{e(null,this._rootElement),n.delete(e)}}registerCommand(e,n,r){r===void 0&&A(35);let i=this._commands;i.has(e)||i.set(e,[new Set,new Set,new Set,new Set,new Set]);let o=i.get(e);o===void 0&&A(36);let l=o[r];return l.add(n),()=>{l.delete(n),o.every(s=>s.size===0)&&i.delete(e)}}registerMutationListener(e,n){this._nodes.get(e.getType())===void 0&&A(37);let r=this._listeners.mutation;return r.set(n,e),()=>{r.delete(n)}}registerNodeTransform(e,n){e=e.getType();let r=this._nodes.get(e);r===void 0&&A(37);let i=r.transforms;return i.add(n),Kd(this,e),()=>{i.delete(n)}}hasNodes(e){for(let n=0;n<e.length;n++){let r=e[n].getType();if(!this._nodes.has(r))return!1}return!0}dispatchCommand(e,n){return M(this,e,n)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){let n=this._rootElement;if(e!==n){let o=fn(this._config.theme,"root");var r=this._pendingEditorState||this._editorState;if(this._rootElement=e,ds(this,n,e,r),n!==null){if(!this._config.disableEvents){if(yn!==0&&(yn--,yn===0&&n.ownerDocument.removeEventListener("selectionchange",Wl)),r=n.__lexicalEditor,r!=null){if(r._parentEditor!==null){var i=si(r);i=i[i.length-1]._key,Wt.get(i)===r&&Wt.delete(i)}else Wt.delete(r._key);n.__lexicalEditor=null}for(r=Kl(n),i=0;i<r.length;i++)r[i]();n.__lexicalEventHandles=[]}o!=null&&n.classList.remove(...o)}e!==null?(r=(r=e.ownerDocument)&&r.defaultView||null,i=e.style,i.userSelect="text",i.whiteSpace="pre-wrap",i.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=r,this._dirtyType=2,dl(this),this._updateTags.add("history-merge"),yt(this),this._config.disableEvents||tu(e,this),o!=null&&e.classList.add(...o)):this._window=null,Sn("root",this,!1,e,n)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&A(38),cl(this);let r=this._pendingEditorState,i=this._updateTags;n=n!==void 0?n.tag:null,r===null||r.isEmpty()||(n!=null&&i.add(n),yt(this)),this._pendingEditorState=e,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,n!=null&&i.add(n),yt(this)}parseEditorState(e,n){e=typeof e=="string"?JSON.parse(e):e;let r=Oi(),i=ye,o=ae,l=ge,s=this._dirtyElements,a=this._dirtyLeaves,c=this._cloneNotNeeded,d=this._dirtyType;this._dirtyElements=new Map,this._dirtyLeaves=new Set,this._cloneNotNeeded=new Set,this._dirtyType=0,ye=r,ae=!1,ge=this;try{bi(e.root,this._nodes),n&&n(),r._readOnly=!0}finally{this._dirtyElements=s,this._dirtyLeaves=a,this._cloneNotNeeded=c,this._dirtyType=d,ye=i,ae=o,ge=l}return r}update(e,n){$e(this,e,n)}focus(e,n={}){let r=this._rootElement;r!==null&&(r.setAttribute("autocapitalize","off"),$e(this,()=>{let i=Z(),o=st();i!==null?i.dirty=!0:o.getChildrenSize()!==0&&(n.defaultSelection==="rootStart"?o.selectStart():o.selectEnd())},{onUpdate:()=>{r.removeAttribute("autocapitalize"),e&&e()}}),this._pendingEditorState===null&&r.removeAttribute("autocapitalize"))}blur(){var e=this._rootElement;e!==null&&e.blur(),e=Ee?window.getSelection():null,e!==null&&e.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,Sn("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}class us extends kt{constructor(e,n){super(n),this.__colSpan=e}exportJSON(){return{...super.exportJSON(),colSpan:this.__colSpan}}}function gs(t){return t instanceof us}class hs extends kt{}function fs(t){return t instanceof hs}class ps extends kt{}function ms(t){return t instanceof ps}b.$addUpdateTag=function(t){Re(),oe()._updateTags.add(t)},b.$applyNodeReplacement=ar,b.$copyNode=function(t){return t=t.constructor.clone(t),fl(t,null),t},b.$createLineBreakNode=bn,b.$createNodeSelection=Ti,b.$createParagraphNode=Gt,b.$createRangeSelection=function(){let t=new Ye("root",0,"element"),e=new Ye("root",0,"element");return new wt(t,e,0)},b.$createTextNode=fe,b.$getDecoratorNode=di,b.$getNearestNodeFromDOMNode=hn,b.$getNearestRootOrShadowRoot=Nl,b.$getNodeByKey=q,b.$getPreviousSelection=En,b.$getRoot=st,b.$getSelection=Z,b.$getTextContent=function(){let t=Z();return t===null?"":t.getTextContent()},b.$hasAncestor=lr,b.$insertNodes=function(t,e){let n=Z();return n===null&&(n=st().selectEnd()),n.insertNodes(t,e)},b.$isDecoratorNode=ee,b.$isElementNode=O,b.$isInlineElementOrDecoratorNode=function(t){return O(t)&&t.isInline()||ee(t)&&t.isInline()},b.$isLeafNode=hl,b.$isLineBreakNode=Rn,b.$isNodeSelection=Nn,b.$isParagraphNode=function(t){return t instanceof Vt},b.$isRangeSelection=H,b.$isRootNode=Me,b.$isRootOrShadowRoot=at,b.$isTextNode=L,b.$nodesOfType=function(t){var e=Ve();let n=e._readOnly,r=t.getType();e=e._nodeMap;let i=[];for(let[,o]of e)o instanceof t&&o.__type===r&&(n||o.isAttached())&&i.push(o);return i},b.$normalizeSelection__EXPERIMENTAL=Rl,b.$parseSerializedNode=function(t){return bi(t,oe()._nodes)},b.$setCompositionKey=he,b.$setSelection=_t,b.BLUR_COMMAND=ol,b.CAN_REDO_COMMAND={},b.CAN_UNDO_COMMAND={},b.CLEAR_EDITOR_COMMAND={},b.CLEAR_HISTORY_COMMAND={},b.CLICK_COMMAND=Ko,b.COMMAND_PRIORITY_CRITICAL=4,b.COMMAND_PRIORITY_EDITOR=0,b.COMMAND_PRIORITY_HIGH=3,b.COMMAND_PRIORITY_LOW=1,b.COMMAND_PRIORITY_NORMAL=2,b.CONTROLLED_TEXT_INSERTION_COMMAND=Ft,b.COPY_COMMAND=Qr,b.CUT_COMMAND=ei,b.DELETE_CHARACTER_COMMAND=cn,b.DELETE_LINE_COMMAND=gn,b.DELETE_WORD_COMMAND=un,b.DEPRECATED_$createGridSelection=function(){let t=new Ye("root",0,"element"),e=new Ye("root",0,"element");return new fr("root",t,e)},b.DEPRECATED_$isGridCellNode=gs,b.DEPRECATED_$isGridNode=fs,b.DEPRECATED_$isGridRowNode=ms,b.DEPRECATED_$isGridSelection=Ei,b.DEPRECATED_GridCellNode=us,b.DEPRECATED_GridNode=hs,b.DEPRECATED_GridRowNode=ps,b.DRAGEND_COMMAND=rl,b.DRAGOVER_COMMAND=nl,b.DRAGSTART_COMMAND=tl,b.DROP_COMMAND=el,b.DecoratorNode=as,b.ElementNode=kt,b.FOCUS_COMMAND=il,b.FORMAT_ELEMENT_COMMAND={},b.FORMAT_TEXT_COMMAND=ot,b.INDENT_CONTENT_COMMAND={},b.INSERT_LINE_BREAK_COMMAND=dn,b.INSERT_PARAGRAPH_COMMAND=Gr,b.KEY_ARROW_DOWN_COMMAND=Go,b.KEY_ARROW_LEFT_COMMAND=jo,b.KEY_ARROW_RIGHT_COMMAND=Wo,b.KEY_ARROW_UP_COMMAND=Vo,b.KEY_BACKSPACE_COMMAND=Jo,b.KEY_DELETE_COMMAND=qo,b.KEY_ENTER_COMMAND=er,b.KEY_ESCAPE_COMMAND=Xo,b.KEY_MODIFIER_COMMAND=ll,b.KEY_SPACE_COMMAND=Zo,b.KEY_TAB_COMMAND=Qo,b.LineBreakNode=jt,b.MOVE_TO_END=Uo,b.MOVE_TO_START=Yo,b.OUTDENT_CONTENT_COMMAND={},b.PASTE_COMMAND=Zr,b.ParagraphNode=Vt,b.REDO_COMMAND=qr,b.REMOVE_TEXT_COMMAND=Jr,b.RootNode=Ut,b.SELECTION_CHANGE_COMMAND=Ho,b.TextNode=Yt,b.UNDO_COMMAND=Xr,b.VERSION="0.6.3",b.createCommand=function(){return{}},b.createEditor=function(t){var e=t||{},n=ge,r=e.theme||{};let i=t===void 0?n:e.parentEditor||null,o=e.disableEvents||!1,l=Oi(),s=e.namespace||(i!==null?i._config.namespace:vl()),a=e.editorState,c=[Ut,Yt,jt,Vt,...e.nodes||[]],d=e.onError;if(e=e.editable!==void 0?e.editable:!0,t===void 0&&n!==null)t=n._nodes;else for(t=new Map,n=0;n<c.length;n++){let g=c[n];var u=null;typeof g!="function"&&(u=g,g=u.replace,u=u.with);let m=g.getType();t.set(m,{klass:g,replace:u,transforms:new Set})}return r=new fu(l,i,t,{disableEvents:o,namespace:s,theme:r},d||console.error,hu(t),e),a!==void 0&&(r._pendingEditorState=a,r._dirtyType=2),r};var v=b,xs=ie,$n=v,wr=S.default,pu=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?wr.useLayoutEffect:wr.useEffect;let yr={tag:"history-merge"};function mu(t,e){if(e!==null){if(e===void 0)t.update(()=>{var n=$n.$getRoot();if(n.isEmpty()){let r=$n.$createParagraphNode();n.append(r),n=document.activeElement,($n.$getSelection()!==null||n!==null&&n===t.getRootElement())&&r.select()}},yr);else if(e!==null)switch(typeof e){case"string":let n=t.parseEditorState(e);t.setEditorState(n,yr);break;case"object":t.setEditorState(e,yr);break;case"function":t.update(()=>{$n.$getRoot().isEmpty()&&e(t)},yr)}}}Fo.LexicalComposer=function({initialConfig:t,children:e}){let n=wr.useMemo(()=>{const{theme:r,namespace:i,editor__DEPRECATED:o,nodes:l,onError:s,editorState:a}=t,c=xs.createLexicalComposerContext(null,r);let d=o||null;if(d===null){const u=$n.createEditor({editable:!1,namespace:i,nodes:l,onError:g=>s(g,u),theme:r});mu(u,a),d=u}return[d,c]},[]);return pu(()=>{let r=t.editable,[i]=n;i.setEditable(r!==void 0?r:!0)},[]),wr.createElement(xs.LexicalComposerContext.Provider,{value:n},e)};var xu=Fo,pe={},ke={},ce=v;function _s(t){throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?code=${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function vs(t,e){for(let n of e)if(t.type.startsWith(n))return!0;return!1}function ws(t,e){for(;t!==ce.$getRoot()&&t!=null;){if(e(t))return t;t=t.getParent()}return null}function ys(t,e,n,r,i){var o=n._nodes.get(t.__type);o===void 0&&_s(5);for(var l in t){var s=t[l];if(s!=null&&typeof s=="object"&&(s=s.editorState,s!=null)){var a=ce.createEditor({namespace:s.namespace});a._nodes=n._nodes,a._parentEditor=n._parentEditor,a._pendingEditorState=ks(a,s),t[l]=a}}if(o=o.klass,l=t.__key,t.__key=void 0,o=o.clone(t),t.__key=l,l=o.__key,i._nodeMap.set(l,o),o.__parent=r,ce.$isElementNode(o)){for(r=t.__children,s=0;s<r.length;s++)a=e.get(r[s]),a!==void 0&&(a=ys(a,e,n,l,i).__key,o.__children.push(a));o.__indent=t.__indent,o.__format=t.__format,o.__dir=t.__dir}else ce.$isTextNode(o)&&(o.__format=t.__format,o.__style=t.__style,o.__mode=t.__mode,o.__detail=t.__detail);return o}function _u(t,e){let n=e._editorState.constructor,r=new Map,i=new n(r),o=new Map(t._nodeMap),l=o.get("root");t=e._updating;try{e._updating=!1,e.update(()=>{let s=e._dirtyElements,a=e._dirtyLeaves,c=e._dirtyType;e._dirtyElements=new Map,e._dirtyLeaves=new Set,e._dirtyType=0;try{ys(l,o,e,null,i)}finally{e._dirtyElements=s,e._dirtyLeaves=a,e._dirtyType=c}})}finally{e._updating=t}return i._readOnly=!0,i}function ks(t,e){return e=typeof e=="string"?JSON.parse(e):e,_u(e,t)}function Cs(t,e){let n=t.getChildAtIndex(e);n==null&&(n=t);let r=l=>{const s=l.getParentOrThrow(),a=ce.$isRootOrShadowRoot(s),c=l!==n||a?ce.$copyNode(l):l;if(a)return l.insertAfter(c),[l,c,c];const[d,u,g]=r(s);return l=l.getNextSiblings(),g.append(c,...l),[d,u,c]},[i,o]=r(n);return[i,o]}ke.$dfs=function(t,e){let n=[];t=(t||ce.$getRoot()).getLatest(),e=e||(ce.$isElementNode(t)?t.getLastDescendant():t);for(var r=t,i=0;(r=r.getParent())!==null;)i++;for(r=i;t!==null&&!t.is(e);)if(n.push({depth:r,node:t}),ce.$isElementNode(t)&&0<t.getChildrenSize())t=t.getFirstChild(),r++;else for(i=null;i===null&&t!==null;)i=t.getNextSibling(),i===null?(t=t.getParent(),r--):t=i;return t!==null&&t.is(e)&&n.push({depth:r,node:t}),n},ke.$findMatchingParent=ws,ke.$getNearestBlockElementAncestorOrThrow=function(t){return t=ws(t,e=>ce.$isElementNode(e)&&!e.isInline()),ce.$isElementNode(t)||_s(4),t},ke.$getNearestNodeOfType=function(t,e){for(;t!=null;){if(t instanceof e)return t;t=t.getParent()}return null},ke.$insertNodeToNearestRoot=function(t){var e=ce.$getSelection();if(ce.$isRangeSelection(e)){var{focus:n}=e;e=n.getNode(),n=n.offset;let r,i;ce.$isTextNode(e)?(r=e.getParentOrThrow(),i=e.getIndexWithinParent(),0<n&&(i+=1,e.splitText(n))):(r=e,i=n),[,e]=Cs(r,i),e.insertBefore(t),e.selectStart()}else ce.$isNodeSelection(e)||ce.DEPRECATED_$isGridSelection(e)?(e=e.getNodes(),e[e.length-1].getTopLevelElementOrThrow().insertAfter(t)):ce.$getRoot().append(t),e=ce.$createParagraphNode(),t.insertAfter(e),e.select();return t.getLatest()},ke.$restoreEditorState=function(t,e){let n=new Map(e._nodeMap),r=t._pendingEditorState;r&&(r._nodeMap=n),t._dirtyType=2,t=e._selection,ce.$setSelection(t===null?null:t.clone())},ke.$splitNode=Cs,ke.$wrapNodeInElement=function(t,e){return e=e(),t.replace(e),e.append(t),e},ke.addClassNamesToElement=function(t,...e){e.forEach(n=>{typeof n=="string"&&(n=n.split(" ").filter(r=>r!==""),t.classList.add(...n))})},ke.isMimeType=vs,ke.mediaFileReader=function(t,e){let n=t[Symbol.iterator]();return new Promise((r,i)=>{let o=[],l=()=>{const{done:s,value:a}=n.next();if(s)return r(o);const c=new FileReader;c.addEventListener("error",i),c.addEventListener("load",()=>{const d=c.result;typeof d=="string"&&o.push({file:a,result:d}),l()}),vs(a,e)?c.readAsDataURL(a):l()};l()})},ke.mergeRegister=function(...t){return()=>{t.forEach(e=>e())}},ke.registerNestedElementResolver=function(t,e,n,r){return t.registerNodeTransform(e,i=>{e:{for(var o=i.getChildren(),l=0;l<o.length;l++)if(o[l]instanceof e){o=null;break e}for(o=i;o!==null;)if(l=o,o=o.getParent(),o instanceof e){o={child:l,parent:o};break e}o=null}if(o!==null){const{child:s,parent:a}=o;if(s.is(i)){if(r(a,i),i=s.getNextSiblings(),o=i.length,a.insertAfter(s),o!==0){l=n(a),s.insertAfter(l);for(let c=0;c<o;c++)l.append(i[c])}a.canBeEmpty()||a.getChildrenSize()!==0||a.remove()}}})},ke.removeClassNamesFromElement=function(t,...e){e.forEach(n=>{typeof n=="string"&&t.classList.remove(...n.split(" "))})},ke.unstable_convertLegacyJSONEditorState=ks;var me=ke,j=v,Mn=me;function An(t){throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?code=${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Ns(t){let e=1;for(t=t.getParent();t!=null;){if(J(t)){if(t=t.getParent(),W(t)){e++,t=t.getParent();continue}An(40)}break}return e}function Li(t){t=t.getParent(),W(t)||An(40);let e=t;for(;e!==null;)e=e.getParent(),W(e)&&(t=e);return t}function Es(t){let e=[];t=t.getChildren().filter(J);for(let n=0;n<t.length;n++){let r=t[n],i=r.getFirstChild();W(i)?e=e.concat(Es(i)):e.push(r)}return e}function Zt(t){return J(t)&&W(t.getFirstChild())}function vu(t){for(;t.getNextSibling()==null&&t.getPreviousSibling()==null;){let e=t.getParent();if(e==null||!J(t)&&!W(t))break;t=e}t.remove()}function Ts(t){return ze().append(t)}function Ss(t,e){return J(t)&&(e.length===0||e.length===1&&t.is(e[0])&&t.getChildrenSize()===0)}function Ct(t,e){t.splice(t.getChildrenSize(),0,e)}function bs(t,e){if(W(t))return t;let n=t.getPreviousSibling(),r=t.getNextSibling(),i=ze();return i.setFormat(t.getFormatType()),i.setIndent(t.getIndent()),Ct(i,t.getChildren()),W(n)&&e===n.getListType()?(n.append(i),t.remove(),W(r)&&e===r.getListType()&&(Ct(n,r.getChildren()),r.remove()),n):W(r)&&e===r.getListType()?(r.getFirstChildOrThrow().insertBefore(i),t.remove(),r):(e=De(e),e.append(i),t.replace(e),Ae(e),e)}function Ae(t,e){if(t=e||t.getChildren(),t!==void 0)for(e=0;e<t.length;e++){let o=t[e];if(J(o)){let l=o.getValue();var n=o,r=n.getParent(),i=1;for(r!=null&&(W(r)?i=r.getStart():An(44)),n=n.getPreviousSiblings(),r=0;r<n.length;r++){let s=n[r];J(s)&&!W(s.getFirstChild())&&i++}l!==i&&o.setValue(i)}}}function Rs(t){let e=new Set;t.forEach(n=>{if(!Zt(n)&&!e.has(n.getKey())){var r=n.getParent(),i=n.getNextSibling(),o=n.getPreviousSibling();if(Zt(i)&&Zt(o))o=o.getFirstChild(),W(o)&&(o.append(n),n=i.getFirstChild(),W(n)&&(n=n.getChildren(),Ct(o,n),i.remove(),e.add(i.getKey())),Ae(o));else if(Zt(i))i=i.getFirstChild(),W(i)&&(o=i.getFirstChild(),o!==null&&o.insertBefore(n),Ae(i));else if(Zt(o))i=o.getFirstChild(),W(i)&&(i.append(n),Ae(i));else if(W(r)){let l=ze(),s=De(r.getListType());l.append(s),s.append(n),o?o.insertAfter(l):i?i.insertBefore(l):r.append(l)}W(r)&&Ae(r)}})}function Os(t){t.forEach(e=>{if(!Zt(e)){var n=e.getParent(),r=n?n.getParent():void 0,i=r?r.getParent():void 0;if(W(i)&&J(r)&&W(n)){var o=n?n.getFirstChild():void 0,l=n?n.getLastChild():void 0;if(e.is(o))r.insertBefore(e),n.isEmpty()&&r.remove();else if(e.is(l))r.insertAfter(e),n.isEmpty()&&r.remove();else{var s=n.getListType();o=ze();let a=De(s);o.append(a),e.getPreviousSiblings().forEach(c=>a.append(c)),l=ze(),s=De(s),l.append(s),Ct(s,e.getNextSiblings()),r.insertBefore(o),r.insertAfter(l),r.replace(e)}Ae(n),Ae(i)}}})}function $s(t){var e=j.$getSelection();if(j.$isRangeSelection(e)){var n=e.getNodes(),r=[];if(n.length===0&&n.push(e.anchor.getNode()),n.length===1){e:{for(n=n[0];n!==null;){if(J(n))break e;n=n.getParent()}n=null}n!==null&&(r=[n])}else{for(r=new Set,e=0;e<n.length;e++){let i=n[e];J(i)&&r.add(i)}r=Array.from(r)}0<r.length&&(t==="indent"?Rs(r):Os(r))}}class Nt extends j.ElementNode{static getType(){return"listitem"}static clone(e){return new Nt(e.__value,e.__checked,e.__key)}constructor(e,n,r){super(r),this.__value=e===void 0?1:e,this.__checked=n}createDOM(e){let n=document.createElement("li"),r=this.getParent();return W(r)&&(Ae(r),As(n,this,null,r)),n.value=this.__value,Ms(n,e.theme,this),n}updateDOM(e,n,r){let i=this.getParent();return W(i)&&(Ae(i),As(n,this,e,i)),n.value=this.__value,Ms(n,r.theme,this),!1}static importDOM(){return{li:()=>({conversion:wu,priority:0})}}static importJSON(e){let n=new Nt(e.value,e.checked);return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),type:"listitem",value:this.getValue(),version:1}}append(...e){for(let n=0;n<e.length;n++){let r=e[n];if(j.$isElementNode(r)&&this.canMergeWith(r)){let i=r.getChildren();this.append(...i),r.remove()}else super.append(r)}return this}replace(e){if(J(e))return super.replace(e);let n=this.getParentOrThrow();if(W(n)){var r=n.__children;let o=r.length;var i=r.indexOf(this.__key);if(i===0)n.insertBefore(e);else if(i===o-1)n.insertAfter(e);else{r=De(n.getListType());let l=n.getChildren();for(i+=1;i<o;i++)r.append(l[i]);n.insertAfter(e),e.insertAfter(r)}this.remove(),o===1&&n.remove()}return e}insertAfter(e){var n=this.getParentOrThrow();W(n)||An(39);var r=this.getNextSiblings();if(J(e))return n=super.insertAfter(e),e=e.getParentOrThrow(),W(e)&&Ae(e),n;if(W(e)&&e.getListType()===n.getListType()){for(n=e,e=e.getChildren(),r=e.length-1;0<=r;r--)n=e[r],this.insertAfter(n);return n}if(n.insertAfter(e),r.length!==0){let i=De(n.getListType());r.forEach(o=>i.append(o)),e.insertAfter(i)}return e}remove(e){let n=this.getNextSibling();super.remove(e),n!==null&&(e=n.getParent(),W(e)&&Ae(e))}insertNewAfter(){let e=ze(this.__checked==null?void 0:!1);return this.insertAfter(e),e}collapseAtStart(e){let n=j.$createParagraphNode();this.getChildren().forEach(l=>n.append(l));var r=this.getParentOrThrow(),i=r.getParentOrThrow();let o=J(i);return r.getChildrenSize()===1?o?(r.remove(),i.select()):(r.replace(n),r=e.anchor,e=e.focus,i=n.getKey(),r.type==="element"&&r.getNode().is(this)&&r.set(i,r.offset,"element"),e.type==="element"&&e.getNode().is(this)&&e.set(i,e.offset,"element")):(r.insertBefore(n),this.remove()),!0}getValue(){return this.getLatest().__value}setValue(e){this.getWritable().__value=e}getChecked(){return this.getLatest().__checked}setChecked(e){this.getWritable().__checked=e}toggleChecked(){this.setChecked(!this.__checked)}getIndent(){var e=this.getParent();if(e===null)return this.getLatest().__indent;e=e.getParentOrThrow();let n=0;for(;J(e);)e=e.getParentOrThrow().getParentOrThrow(),n++;return n}setIndent(e){let n=this.getIndent();for(;n!==e;)n<e?(Rs([this]),n++):(Os([this]),n--);return this}canIndent(){return!1}insertBefore(e){if(J(e)){let n=this.getParentOrThrow();if(W(n)){let r=this.getNextSiblings();Ae(n,r)}}return super.insertBefore(e)}canInsertAfter(e){return J(e)}canReplaceWith(e){return J(e)}canMergeWith(e){return j.$isParagraphNode(e)||J(e)}extractWithChild(e,n){if(!j.$isRangeSelection(n))return!1;e=n.anchor.getNode();let r=n.focus.getNode();return this.isParentOf(e)&&this.isParentOf(r)&&this.getTextContent().length===n.getTextContent().length}}function Ms(t,e,n){let r=[],i=[];var o=(e=e.list)?e.listitem:void 0;if(e&&e.nested)var l=e.nested.listitem;if(o!==void 0&&(o=o.split(" "),r.push(...o)),e){o=n.getParent(),o=W(o)&&o.getListType()==="check";let s=n.getChecked();o&&!s||i.push(e.listitemUnchecked),o&&s||i.push(e.listitemChecked),o&&r.push(s?e.listitemChecked:e.listitemUnchecked)}l!==void 0&&(l=l.split(" "),n.getChildren().some(s=>W(s))?r.push(...l):i.push(...l)),0<i.length&&Mn.removeClassNamesFromElement(t,...i),0<r.length&&Mn.addClassNamesToElement(t,...r)}function As(t,e,n,r){r.getListType()==="check"?W(e.getFirstChild())?(t.removeAttribute("role"),t.removeAttribute("tabIndex"),t.removeAttribute("aria-checked")):(t.setAttribute("role","checkbox"),t.setAttribute("tabIndex","-1"),n&&e.__checked===n.__checked||t.setAttribute("aria-checked",e.getChecked()?"true":"false")):e.getChecked()!=null&&e.setChecked(void 0)}function wu(){return{node:ze()}}function ze(t){return j.$applyNodeReplacement(new Nt(void 0,t))}function J(t){return t instanceof Nt}class Dn extends j.ElementNode{static getType(){return"list"}static clone(e){return new Dn(e.__listType||Is[e.__tag],e.__start,e.__key)}constructor(e,n,r){super(r),this.__listType=e=Is[e]||e,this.__tag=e==="number"?"ol":"ul",this.__start=n}getTag(){return this.__tag}getListType(){return this.__listType}getStart(){return this.__start}createDOM(e){let n=document.createElement(this.__tag);return this.__start!==1&&n.setAttribute("start",String(this.__start)),n.__lexicalListType=this.__listType,Ds(n,e.theme,this),n}updateDOM(e,n,r){return e.__tag!==this.__tag?!0:(Ds(n,r.theme,this),!1)}static importDOM(){return{ol:()=>({conversion:Ls,priority:0}),ul:()=>({conversion:Ls,priority:0})}}static importJSON(e){let n=De(e.listType,e.start);return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag(),type:"list",version:1}}canBeEmpty(){return!1}canIndent(){return!1}append(...e){for(let r=0;r<e.length;r++){var n=e[r];if(J(n))super.append(n);else{let i=ze();W(n)||j.$isElementNode(n)&&(n=j.$createTextNode(n.getTextContent())),i.append(n),super.append(i)}}return this}extractWithChild(e){return J(e)}}function Ds(t,e,n){let r=[],i=[];var o=e.list;if(o!==void 0){let s=o[`${n.__tag}Depth`]||[];e=Ns(n)-1;let a=e%s.length;var l=s[a];let c=o[n.__tag],d;if(o=o.nested,o!==void 0&&o.list&&(d=o.list),c!==void 0&&r.push(c),l!==void 0)for(l=l.split(" "),r.push(...l),l=0;l<s.length;l++)l!==a&&i.push(n.__tag+l);d!==void 0&&(n=d.split(" "),1<e?r.push(...n):i.push(...n))}0<i.length&&Mn.removeClassNamesFromElement(t,...i),0<r.length&&Mn.addClassNamesToElement(t,...r)}function yu(t){let e=[];for(let n=0;n<t.length;n++){let r=t[n];J(r)?(e.push(r),r.getChildren().forEach(i=>{W(i)&&e.push(Ts(i))})):e.push(Ts(r))}return e}function Ls(t){t=t.nodeName.toLowerCase();let e=null;return t==="ol"?e=De("number"):t==="ul"&&(e=De("bullet")),{after:yu,node:e}}let Is={ol:"number",ul:"bullet"};function De(t,e=1){return j.$applyNodeReplacement(new Dn(t,e))}function W(t){return t instanceof Dn}let ku=j.createCommand("INSERT_UNORDERED_LIST_COMMAND"),Cu=j.createCommand("INSERT_ORDERED_LIST_COMMAND"),Nu=j.createCommand("INSERT_CHECK_LIST_COMMAND"),Eu=j.createCommand("REMOVE_LIST_COMMAND");pe.$createListItemNode=ze,pe.$createListNode=De,pe.$getListDepth=Ns,pe.$handleListInsertParagraph=function(){var t=j.$getSelection();if(!j.$isRangeSelection(t)||!t.isCollapsed()||(t=t.anchor.getNode(),!J(t)||t.getTextContent()!==""))return!1;var e=Li(t),n=t.getParent();W(n)||An(40);let r=n.getParent(),i;if(j.$isRootOrShadowRoot(r))i=j.$createParagraphNode(),e.insertAfter(i);else if(J(r))i=ze(),r.insertAfter(i);else return!1;if(i.select(),e=t.getNextSiblings(),0<e.length){let o=De(n.getListType());j.$isParagraphNode(i)?i.insertAfter(o):(n=ze(),n.append(o),i.insertAfter(n)),e.forEach(l=>{l.remove(),o.append(l)})}return vu(t),!0},pe.$isListItemNode=J,pe.$isListNode=W,pe.INSERT_CHECK_LIST_COMMAND=Nu,pe.INSERT_ORDERED_LIST_COMMAND=Cu,pe.INSERT_UNORDERED_LIST_COMMAND=ku,pe.ListItemNode=Nt,pe.ListNode=Dn,pe.REMOVE_LIST_COMMAND=Eu,pe.indentList=function(){$s("indent")},pe.insertList=function(t,e){t.update(()=>{var n=j.$getSelection();if(j.$isRangeSelection(n)||j.DEPRECATED_$isGridSelection(n)){var r=n.getNodes();n=n.anchor.getNode();var i=n.getParent();if(Ss(n,r))r=De(e),j.$isRootOrShadowRoot(i)?(n.replace(r),i=ze(),j.$isElementNode(n)&&(i.setFormat(n.getFormatType()),i.setIndent(n.getIndent())),r.append(i)):J(n)&&(n=n.getParentOrThrow(),Ct(r,n.getChildren()),n.replace(r));else for(n=new Set,i=0;i<r.length;i++){var o=r[i];if(j.$isElementNode(o)&&o.isEmpty()&&!n.has(o.getKey()))bs(o,e);else if(j.$isLeafNode(o))for(o=o.getParent();o!=null;){let s=o.getKey();if(W(o)){if(!n.has(s)){var l=De(e);Ct(l,o.getChildren()),o.replace(l),Ae(l),n.add(s)}break}else{if(l=o.getParent(),j.$isRootOrShadowRoot(l)&&!n.has(s)){n.add(s),bs(o,e);break}o=l}}}}})},pe.outdentList=function(){$s("outdent")},pe.removeList=function(t){t.update(()=>{let e=j.$getSelection();if(j.$isRangeSelection(e)){var n=new Set,r=e.getNodes(),i=e.anchor.getNode();if(Ss(i,r))n.add(Li(i));else for(i=0;i<r.length;i++){var o=r[i];j.$isLeafNode(o)&&(o=Mn.$getNearestNodeOfType(o,Nt),o!=null&&n.add(Li(o)))}for(let l of n){n=l,r=Es(l);for(let s of r)r=j.$createParagraphNode(),Ct(r,s.getChildren()),n.insertAfter(r),n=r,s.__key===e.anchor.key&&e.anchor.set(r.getKey(),0,"element"),s.__key===e.focus.key&&e.focus.set(r.getKey(),0,"element"),s.remove();l.remove()}}})};var Qe=pe,Ge={},et={},Ii={},de={},F=v;let kr=new Map;function Tu(t){return{nodeMap:t.getNodes().map(e=>{const n=e.getKey();return e=Nr(e),[n,e]}),range:[t.gridKey]}}function Ps(t){for(;t!=null;){if(t.nodeType===Node.TEXT_NODE)return t;t=t.firstChild}return null}function Fs(t){let e=t.parentNode;if(e==null)throw Error("Should never happen");return[e,Array.from(e.childNodes).indexOf(t)]}function zs(t){let e={};t=t.split(";");for(let n of t)if(n!==""){let[r,i]=n.split(/:([^]+)/);e[r.trim()]=i.trim()}return e}function Pi(t){let e=kr.get(t);return e===void 0&&(e=zs(t),kr.set(t,e)),e}function Su(t){let e="";for(let n in t)n&&(e+=`${n}: ${t[n]};`);return e}function bu(t){for(;t!==null&&!F.$isRootOrShadowRoot(t);){let e=t.getLatest(),n=t.getParent();e.__children.length===0&&t.remove(!0),t=n}}function Cr(t,e,n,r,i=null){if(e.length!==0){var o=e[0],l=new Map,s=[];o=F.$isElementNode(o)?o:o.getParentOrThrow(),o.isInline()&&(o=o.getParentOrThrow());for(var a=!1;o!==null;){var c=o.getPreviousSibling();if(c!==null){o=c,a=!0;break}if(o=o.getParentOrThrow(),F.$isRootOrShadowRoot(o))break}c=new Set;for(var d=0;d<n;d++){var u=e[d];F.$isElementNode(u)&&u.getChildrenSize()===0&&c.add(u.getKey())}var g=new Set;for(d=0;d<n;d++){u=e[d];var m=u.getParent();if(m!==null&&m.isInline()&&(m=m.getParent()),m!==null&&F.$isLeafNode(u)&&!g.has(u.getKey())){if(u=m.getKey(),l.get(u)===void 0){let f=r();f.setFormat(m.getFormatType()),f.setIndent(m.getIndent()),s.push(f),l.set(u,f),m.getChildren().forEach(_=>{f.append(_),g.add(_.getKey()),F.$isElementNode(_)&&_.getChildrenKeys().forEach(C=>g.add(C))}),bu(m)}}else c.has(u.getKey())&&(m=r(),m.setFormat(u.getFormatType()),m.setIndent(u.getIndent()),s.push(m),u.remove(!0))}if(i!==null)for(e=0;e<s.length;e++)i.append(s[e]);if(e=null,F.$isRootOrShadowRoot(o))if(a)if(i!==null)o.insertAfter(i);else for(i=s.length-1;0<=i;i--)o.insertAfter(s[i]);else if(a=o.getFirstChild(),F.$isElementNode(a)&&(o=a),a===null)if(i)o.append(i);else for(i=0;i<s.length;i++)a=s[i],o.append(a),e=a;else if(i!==null)a.insertBefore(i);else for(o=0;o<s.length;o++)i=s[o],a.insertBefore(i),e=i;else if(i)o.insertAfter(i);else for(i=s.length-1;0<=i;i--)a=s[i],o.insertAfter(a),e=a;s=F.$getPreviousSelection(),F.$isRangeSelection(s)&&s.anchor.getNode().isAttached()&&s.focus.getNode().isAttached()?F.$setSelection(s.clone()):e!==null?e.selectEnd():t.dirty=!0}}function Bs(t,e,n,r){t.modify(e?"extend":"move",n,r)}function Hs(t){return t=t.anchor.getNode(),(F.$isRootNode(t)?t:t.getParentOrThrow()).getDirection()==="rtl"}function Ks(t,e,n,r,i,o){for(var l=e;t!==null;){for(e=t.getParent();e!==null&&e.excludeFromCopy("clone");)e=e.getParent();if(e===null)break;if(!F.$isElementNode(t)||!t.excludeFromCopy("clone")){let s=t.getKey(),a=o.get(s),c=a===void 0;if(c&&(a=Nr(t),o.set(s,a)),!F.$isTextNode(a)||a.isSegmented()||a.isToken()?F.$isElementNode(a)&&(a.__children=a.__children.slice(r?l:0,r?void 0:(l||0)+1)):a.__text=a.__text.slice(r?l:0,r?n:l),F.$isRootNode(e)){c&&i.push(s);break}}l=o.get(e.getKey()),l=F.$isElementNode(l)?l.__children.indexOf(t.getKey()):t.getIndexWithinParent(),t=e}}function Nr(t){t=t.getLatest();let e=t.constructor.clone(t);return e.__parent=t.__parent,F.$isElementNode(t)&&F.$isElementNode(e)?(e.__children=Array.from(t.__children),e.__format=t.__format,e.__indent=t.__indent,e.__dir=t.__dir,e):(F.$isTextNode(t)&&F.$isTextNode(e)&&(e.__format=t.__format,e.__style=t.__style,e.__mode=t.__mode,e.__detail=t.__detail),e)}function Ln(t,e){var n=Pi(t.getStyle());e=Object.entries(e).reduce((r,[i,o])=>(o===null?delete r[i]:r[i]=o,r),{...n}),n=Su(e),t.setStyle(n),kr.set(n,e)}de.$addNodeStyle=function(t){t=t.getStyle();let e=zs(t);kr.set(t,e)},de.$cloneContents=function(t){var e={nodeMap:[],range:[]};if(F.$isRangeSelection(t)){var n=t.anchor,r=t.focus;let[c,d]=t.getCharacterOffsets();if(e=t.getNodes(),e.length===0||e.length===1&&F.$isElementNode(e[0])&&e[0].excludeFromCopy("clone"))e={nodeMap:[],range:[]};else{t=e.length;var i=e[0],o=i.getParent();if(o!==null&&(!o.canBeEmpty()||F.$isRootNode(o))){var l=o.__children;if(l.length===t){for(var s=!0,a=0;a<l.length;a++)if(l[a]!==e[a].__key){s=!1;break}s&&(t++,e.push(o))}}for(o=e[t-1],n=n.isBefore(r),r=new Map,l=[],s=F.$isTextNode(i)&&t===1,Ks(i,n?c:d,s?n?d:c:void 0,!0,l,r),i=0;i<t;i++){a=e[i];let u=a.getKey();if(!(r.has(u)||F.$isElementNode(a)&&a.excludeFromCopy("clone"))){let g=Nr(a);F.$isRootNode(a.getParent())&&l.push(a.getKey()),u!=="root"&&r.set(u,g)}}Ks(o,s?void 0:n?d:c,void 0,!1,l,r),e={nodeMap:Array.from(r.entries()),range:l}}}else if(F.DEPRECATED_$isGridSelection(t))e=Tu(t);else if(F.$isNodeSelection(t))throw Error("Minified Lexical error #1; visit https://lexical.dev/docs/error?code=1 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");return e},de.$cloneWithProperties=Nr,de.$getSelectionStyleValueForProperty=function(t,e,n=""){let r=null,i=t.getNodes();var o=t.anchor,l=t.focus,s=t.isBackward();for(t=s?l.offset:o.offset,o=s?l.getNode():o.getNode(),l=0;l<i.length;l++){var a=i[l];if((l===0||t!==0||!a.is(o))&&F.$isTextNode(a)){s=e;var c=n;if(a=a.getStyle(),a=Pi(a),s=a!==null&&a[s]||c,r===null)r=s;else if(r!==s){r="";break}}}return r===null?n:r},de.$isAtNodeEnd=function(t){return t.type==="text"?t.offset===t.getNode().getTextContentSize():t.offset===t.getNode().getChildrenSize()},de.$isParentElementRTL=Hs,de.$moveCaretSelection=Bs,de.$moveCharacter=function(t,e,n){let r=Hs(t);Bs(t,e,n?!r:r,"character")},de.$patchStyleText=function(t,e){var n=t.getNodes();let r=n.length-1,i=n[0],o=n[r];if(!t.isCollapsed()){var l=t.anchor,s=t.focus,a=i.getTextContent().length,c=s.offset,d=l.offset,u=l.isBefore(s),g=u?d:c;t=u?c:d;var m=u?l.type:s.type,f=u?s.type:l.type;if(l=u?s.key:l.key,F.$isTextNode(i)&&g===a&&(s=i.getNextSibling(),F.$isTextNode(s)&&(g=d=0,i=s)),i.is(o))F.$isTextNode(i)&&(g=m==="element"?0:d>c?c:d,t=f==="element"?a:d>c?d:c,g!==t&&(g===0&&t===a?(Ln(i,e),i.select(g,t)):(n=i.splitText(g,t),n=g===0?n[0]:n[1],Ln(n,e),n.select(0,t-g))));else for(F.$isTextNode(i)&&g<i.getTextContentSize()&&(g!==0&&(i=i.splitText(g)[1]),Ln(i,e)),F.$isTextNode(o)&&(g=o.getTextContent().length,o.__key!==l&&t!==0&&(t=g),t!==g&&([o]=o.splitText(t)),t!==0&&Ln(o,e)),t=1;t<r;t++)g=n[t],a=g.getKey(),F.$isTextNode(g)&&a!==i.getKey()&&a!==o.getKey()&&!g.isToken()&&Ln(g,e)}},de.$selectAll=function(t){let e=t.anchor;t=t.focus;var n=e.getNode().getTopLevelElementOrThrow().getParentOrThrow();let r=n.getFirstDescendant();n=n.getLastDescendant();let i="element",o="element",l=0;F.$isTextNode(r)?i="text":F.$isElementNode(r)||r===null||(r=r.getParentOrThrow()),F.$isTextNode(n)?(o="text",l=n.getTextContentSize()):F.$isElementNode(n)||n===null||(n=n.getParentOrThrow()),r&&n&&(e.set(r.getKey(),0,i),t.set(n.getKey(),l,o))},de.$shouldOverrideDefaultCharacterSelection=function(t,e){return t=F.$getDecoratorNode(t.focus,e),F.$isDecoratorNode(t)&&!t.isIsolated()},de.$sliceSelectedTextNodeContent=function(t,e){if(e.isSelected()&&!e.isSegmented()&&!e.isToken()&&(F.$isRangeSelection(t)||F.DEPRECATED_$isGridSelection(t))){var n=t.anchor.getNode(),r=t.focus.getNode(),i=e.is(n),o=e.is(r);if(i||o){i=t.isBackward();let[l,s]=t.getCharacterOffsets();t=n.is(r),o=e.is(i?r:n),r=e.is(i?n:r),n=0;let a;t?(n=l>s?s:l,a=l>s?l:s):o?(n=i?s:l,a=void 0):r&&(i=i?l:s,n=0,a=i),e.__text=e.__text.slice(n,a)}}return e},de.$wrapNodes=function(t,e,n=null){var r=t.getNodes();let i=r.length;var o=t.anchor;if(i===0||i===1&&o.type==="element"&&o.getNode().getChildrenSize()===0){t=o.type==="text"?o.getNode().getParentOrThrow():o.getNode(),r=t.getChildren();let s=e();s.setFormat(t.getFormatType()),s.setIndent(t.getIndent()),r.forEach(a=>s.append(a)),n&&(s=n.append(s)),t.replace(s)}else{o=null;var l=[];for(let s=0;s<i;s++){let a=r[s];F.$isRootOrShadowRoot(a)?(Cr(t,l,l.length,e,n),l=[],o=a):o===null||o!==null&&F.$hasAncestor(a,o)?l.push(a):(Cr(t,l,l.length,e,n),l=[a])}Cr(t,l,l.length,e,n)}},de.$wrapNodesImpl=Cr,de.createDOMRange=function(t,e,n,r,i){let o=e.getKey(),l=r.getKey(),s=document.createRange(),a=t.getElementByKey(o);if(t=t.getElementByKey(l),F.$isTextNode(e)&&(a=Ps(a)),F.$isTextNode(r)&&(t=Ps(t)),e===void 0||r===void 0||a===null||t===null)return null;a.nodeName==="BR"&&([a,n]=Fs(a)),t.nodeName==="BR"&&([t,i]=Fs(t)),e=a.firstChild,a===t&&e!=null&&e.nodeName==="BR"&&n===0&&i===0&&(i=1);try{s.setStart(a,n),s.setEnd(t,i)}catch{return null}return!s.collapsed||n===i&&o===l||(s.setStart(t,i),s.setEnd(a,n)),s},de.createRectsFromDOMRange=function(t,e){var n=t.getRootElement();if(n===null)return[];t=n.getBoundingClientRect(),n=getComputedStyle(n),n=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight),e=Array.from(e.getClientRects());let r=e.length,i;for(let o=0;o<r;o++){let l=e[o],s=l.width+n===t.width;i&&i.top===l.top&&i.left===l.left&&i.width===l.width&&i.height===l.height||s?(e.splice(o--,1),r--):i=l}return e},de.getStyleObjectFromCSS=Pi,de.trimTextContentFromAnchor=function(t,e,n){let r=e.getNode();if(F.$isElementNode(r)){var i=r.getDescendantByIndex(e.offset);i!==null&&(r=i)}for(;0<n&&r!==null;){var o=r.getPreviousSibling(),l=0;if(o===null){i=r.getParentOrThrow();for(var s=i.getPreviousSibling();s===null;){if(i=i.getParent(),i===null){o=null;break}s=i.getPreviousSibling()}i!==null&&(l=i.isInline()?0:2,o=F.$isElementNode(s)?s.getLastDescendant():s)}let a=r.getTextContent();a===""&&F.$isElementNode(r)&&!r.isInline()&&(a=`
29
29
 
30
- `),i=a.length,s=i-n;let c=a.slice(0,s);if(!F.$isTextNode(r)||n>=i)s=r.getParent(),r.remove(),s!=null&&s.getChildrenSize()===0&&s.remove(),n-=i+l,r=o;else{let d=r.getKey();o=t.getEditorState().read(()=>{const u=F.$getNodeByKey(d);return F.$isTextNode(u)&&u.isSimpleText()?u.getTextContent():null}),o!==null&&o!==a?(n=F.$getPreviousSelection(),i=r,r.isSimpleText()?r.setTextContent(o):(i=F.$createTextNode(o),r.replace(i)),F.$isRangeSelection(n)&&n.isCollapsed()&&(n=n.anchor.offset,i.select(n,n))):r.isSimpleText()?(o=e.key===d,l=e.offset,l<n&&(l=i),n=o?l-n:0,i=o?l:s,o&&n===0?([n]=r.splitText(n,i),n.remove()):([,n]=r.splitText(n,i),n.remove())):(n=F.$createTextNode(c),r.replace(n)),n=0}}};var Ge=de,Ks=Ge,Jt=w;function Ws(t,e,n,r=null){let i=r!=null?e.isSelected():!0,o=Jt.$isElementNode(e)&&e.excludeFromCopy("html");var l=e;r!==null&&(l=Ks.$cloneWithProperties(e),l=Jt.$isTextNode(l)&&r!=null?Ks.$sliceSelectedTextNodeContent(r,l):l);let s=Jt.$isElementNode(l)?l.getChildren():[],{element:a,after:c}=l.exportDOM(t);if(!a)return!1;let d=new DocumentFragment;for(let u=0;u<s.length;u++){let g=s[u],m=Ws(t,g,d,r);!i&&Jt.$isElementNode(e)&&m&&e.extractWithChild(g,r,"html")&&(i=!0)}return i&&!o?(a.append(d),n.append(a),c&&(t=c.call(l,a))&&a.replaceWith(t)):n.append(d),i}let Us=new Set(["STYLE"]);function js(t,e,n=new Map,r,i=!1){let o=[];if(Us.has(t.nodeName))return o;let l=null;var{nodeName:s}=t,a=e._htmlConversions.get(s.toLowerCase());if(s=null,a!==void 0)for(c of a)a=c(t),a!==null&&(s===null||s.priority<a.priority)&&(s=a);var c=(c=s!==null?s.conversion:null)?c(t,void 0,i):null;if(s=null,c!==null){if(s=c.after,l=c.node,l!==null){for(var[,d]of n)if(l=d(l,r),!l)break;l&&o.push(l)}c.forChild!=null&&n.set(t.nodeName,c.forChild)}for(t=t.childNodes,r=[],d=0;d<t.length;d++)r.push(...js(t[d],e,new Map(n),l,i||(c&&c.preformatted)===!0));return s!=null&&(r=s(r)),l==null?o=o.concat(r):Jt.$isElementNode(l)&&l.append(...r),o}Ii.$generateHtmlFromNodes=function(t,e){if(typeof document>"u"||typeof window>"u")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"),r=Jt.$getRoot().getChildren();for(let i=0;i<r.length;i++)Ws(t,r[i],n,e);return n.innerHTML},Ii.$generateNodesFromDOM=function(t,e){let n=[];e=e.body?Array.from(e.body.childNodes):[];let r=e.length;for(let o=0;o<r;o++){var i=e[o];Us.has(i.nodeName)||(i=js(i,t),i!==null&&(n=n.concat(i)))}return n};var Ru=Ii,Ys=Ru,Vs=Qe,Fi=Ge,In=me,z=w;function tt(t){throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?code=${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Gs(t){let e=z.$getSelection();if(e==null)throw Error("Expected valid LexicalSelection");return z.$isRangeSelection(e)&&e.isCollapsed()||e.getNodes().length===0?"":Ys.$generateHtmlFromNodes(t,e)}function Zs(t){let e=z.$getSelection();if(e==null)throw Error("Expected valid LexicalSelection");return z.$isRangeSelection(e)&&e.isCollapsed()||e.getNodes().length===0?null:JSON.stringify(Xs(t,e))}function zi(t,e,n){(z.DEPRECATED_$isGridSelection(n)||In.$findMatchingParent(n.anchor.getNode(),r=>z.DEPRECATED_$isGridCellNode(r))!==null&&In.$findMatchingParent(n.focus.getNode(),r=>z.DEPRECATED_$isGridCellNode(r))!==null)&&e.length===1&&z.DEPRECATED_$isGridNode(e[0])?$u(e,n,!1,t):Ou(e,n)}function Ou(t,e){let n=[],r=null,i=null;for(let o=0;o<t.length;o++){let l=t[o];if(Vs.$isListItemNode(l)){i==null&&(i=Vs.$createListNode("bullet"),n.push(i)),i.append(l);continue}else i!=null&&(i=null);let s=z.$isLineBreakNode(l);if(s||z.$isDecoratorNode(l)&&l.isInline()||z.$isElementNode(l)&&l.isInline()||z.$isTextNode(l)){if(r===null&&(r=z.$createParagraphNode(),n.push(r),s))continue;r!==null&&r.append(l)}else n.push(l),r=null}z.$isRangeSelection(e)?e.insertNodes(n):z.DEPRECATED_$isGridSelection(e)&&(t=e.anchor.getNode(),z.DEPRECATED_$isGridCellNode(t)||tt(41),t.append(...n))}function $u(t,e,n,r){t.length===1&&z.DEPRECATED_$isGridNode(t[0])||tt(42);var i=t[0];t=i.getChildren(),n=i.getFirstChildOrThrow().getChildrenSize();var o=i.getChildrenSize(),l=In.$findMatchingParent(e.anchor.getNode(),m=>z.DEPRECATED_$isGridCellNode(m));e=(i=l&&In.$findMatchingParent(l,m=>z.DEPRECATED_$isGridRowNode(m)))&&In.$findMatchingParent(i,m=>z.DEPRECATED_$isGridNode(m)),z.DEPRECATED_$isGridCellNode(l)&&z.DEPRECATED_$isGridRowNode(i)&&z.DEPRECATED_$isGridNode(e)||tt(43);var s=i.getIndexWithinParent(),a=Math.min(e.getChildrenSize()-1,s+o-1);o=l.getIndexWithinParent(),l=Math.min(i.getChildrenSize()-1,o+n-1),n=Math.min(o,l),i=Math.min(s,a),o=Math.max(o,l),s=Math.max(s,a),a=e.getChildren(),l=0;let c,d;for(let m=i;m<=s;m++){var u=a[m];z.DEPRECATED_$isGridRowNode(u)||tt(24);var g=t[l];z.DEPRECATED_$isGridRowNode(g)||tt(24),u=u.getChildren(),g=g.getChildren();let f=0;for(let _=n;_<=o;_++){let C=u[_];z.DEPRECATED_$isGridCellNode(C)||tt(25);let E=g[f];z.DEPRECATED_$isGridCellNode(E)||tt(25),m===i&&_===n?c=C.getKey():m===s&&_===o&&(d=C.getKey());let p=C.getChildren();E.getChildren().forEach(v=>{z.$isTextNode(v)&&z.$createParagraphNode().append(v),C.append(v)}),p.forEach(v=>v.remove()),f++}l++}c&&d&&(t=z.DEPRECATED_$createGridSelection(),t.set(e.getKey(),c,d),z.$setSelection(t),r.dispatchCommand(z.SELECTION_CHANGE_COMMAND,void 0))}function Js(t,e,n,r=[]){let i=e!=null?n.isSelected():!0,o=z.$isElementNode(n)&&n.excludeFromCopy("html");var l=n;if(e!==null){var s=Fi.$cloneWithProperties(n);l=s=z.$isTextNode(s)&&e!=null?Fi.$sliceSelectedTextNodeContent(e,s):s}let a=z.$isElementNode(l)?l.getChildren():[];var c=l;s=c.exportJSON(),s.type!==c.constructor.getType()&&tt(58);var d=s.children;for(z.$isElementNode(c)&&(Array.isArray(d)||tt(59)),z.$isTextNode(l)&&(s.text=l.__text),l=0;l<a.length;l++)c=a[l],d=Js(t,e,c,s.children),!i&&z.$isElementNode(n)&&d&&n.extractWithChild(c,e,"clone")&&(i=!0);if(i&&!o)r.push(s);else if(Array.isArray(s.children))for(t=0;t<s.children.length;t++)r.push(s.children[t]);return i}function Xs(t,e){let n=[],r=z.$getRoot().getChildren();for(let i=0;i<r.length;i++)Js(t,e,r[i],n);return{namespace:t._config.namespace,nodes:n}}function qs(t){let e=[];for(let n=0;n<t.length;n++){let r=z.$parseSerializedNode(t[n]);z.$isTextNode(r)&&Fi.$addNodeStyle(r),e.push(r)}return e}let Xt=null;function Qs(t,e){if(e.preventDefault(),e=e.clipboardData,e===null)return!1;let n=z.$getSelection(),r=Gs(t);t=Zs(t);let i="";return n!==null&&(i=n.getTextContent()),r!==null&&e.setData("text/html",r),t!==null&&e.setData("application/x-lexical-editor",t),e.setData("text/plain",i),!0}et.$generateJSONFromSelectedNodes=Xs,et.$generateNodesFromSerializedNodes=qs,et.$getHtmlContent=Gs,et.$getLexicalContent=Zs,et.$insertDataTransferForPlainText=function(t,e){t=t.getData("text/plain"),t!=null&&e.insertRawText(t)},et.$insertDataTransferForRichText=function(t,e,n){var r=t.getData("application/x-lexical-editor");if(r)try{let o=JSON.parse(r);if(o.namespace===n._config.namespace&&Array.isArray(o.nodes)){let l=qs(o.nodes);return zi(n,l,e)}}catch{}if(r=t.getData("text/html"))try{var i=new DOMParser().parseFromString(r,"text/html");let o=Ys.$generateNodesFromDOM(n,i);return zi(n,o,e)}catch{}if(t=t.getData("text/plain"),t!=null)if(z.$isRangeSelection(e))for(t=t.split(/\r?\n/),n=t.length,i=0;i<n;i++)e.insertText(t[i]),i<n-1&&e.insertParagraph();else e.insertRawText(t)},et.$insertGeneratedNodes=zi,et.copyToClipboard__EXPERIMENTAL=async function(t,e){if(Xt!==null)return!1;if(e!==null)return new Promise(o=>{t.update(()=>{o(Qs(t,e))})});var n=t.getRootElement();let r=document.getSelection();if(n===null||r===null)return!1;let i=document.createElement("span");return i.style.cssText="position: fixed; top: -1000px;",i.append(document.createTextNode("#")),n.append(i),n=new Range,n.setStart(i,0),n.setEnd(i,1),r.removeAllRanges(),r.addRange(n),new Promise(o=>{let l=t.registerCommand(z.COPY_COMMAND,s=>(s instanceof ClipboardEvent&&(l(),Xt!==null&&(window.clearTimeout(Xt),Xt=null),o(Qs(t,s))),!0),z.COMMAND_PRIORITY_CRITICAL);Xt=window.setTimeout(()=>{l(),Xt=null,o(!1)},50),document.execCommand("copy"),i.remove()})};var Mu=et,Er=Mu,Tr=Ge,qt=me,y=w;let Qt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Au=Qt&&"documentMode"in document?document.documentMode:null;Qt&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Qt&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);let Du=Qt&&"InputEvent"in window&&!Au?"getTargetRanges"in new window.InputEvent("input"):!1,Lu=Qt&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Iu=Qt&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Bi=y.createCommand("DRAG_DROP_PASTE_FILE");class Pn extends y.ElementNode{static getType(){return"quote"}static clone(e){return new Pn(e.__key)}constructor(e){super(e)}createDOM(e){let n=document.createElement("blockquote");return qt.addClassNamesToElement(n,e.theme.quote),n}updateDOM(){return!1}static importDOM(){return{blockquote:()=>({conversion:Pu,priority:0})}}static importJSON(e){let n=Hi();return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),type:"quote"}}insertNewAfter(){let e=y.$createParagraphNode(),n=this.getDirection();return e.setDirection(n),this.insertAfter(e),e}collapseAtStart(){let e=y.$createParagraphNode();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}}function Hi(){return y.$applyNodeReplacement(new Pn)}class Fn extends y.ElementNode{static getType(){return"heading"}static clone(e){return new Fn(e.__tag,e.__key)}constructor(e,n){super(n),this.__tag=e}getTag(){return this.__tag}createDOM(e){let n=this.__tag,r=document.createElement(n);return e=e.theme.heading,e!==void 0&&qt.addClassNamesToElement(r,e[n]),r}updateDOM(){return!1}static importDOM(){return{h1:()=>({conversion:en,priority:0}),h2:()=>({conversion:en,priority:0}),h3:()=>({conversion:en,priority:0}),h4:()=>({conversion:en,priority:0}),h5:()=>({conversion:en,priority:0}),h6:()=>({conversion:en,priority:0}),p:e=>(e=e.firstChild,e!==null&&ea(e)?{conversion:()=>({node:null}),priority:3}:null),span:e=>ea(e)?{conversion:()=>({node:Sr("h1")}),priority:3}:null}}static importJSON(e){let n=Sr(e.tag);return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),tag:this.getTag(),type:"heading",version:1}}insertNewAfter(){let e=y.$createParagraphNode(),n=this.getDirection();return e.setDirection(n),this.insertAfter(e),e}collapseAtStart(){let e=y.$createParagraphNode();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}extractWithChild(){return!0}}function ea(t){return t.nodeName.toLowerCase()==="span"?t.style.fontSize==="26pt":!1}function en(t){t=t.nodeName.toLowerCase();let e=null;return(t==="h1"||t==="h2"||t==="h3"||t==="h4"||t==="h5"||t==="h6")&&(e=Sr(t)),{node:e}}function Pu(){return{node:Hi()}}function Sr(t){return y.$applyNodeReplacement(new Fn(t))}function Fu(t,e){t.preventDefault(),e.update(()=>{let n=y.$getSelection(),r=t instanceof InputEvent||t instanceof KeyboardEvent?null:t.clipboardData;r!=null&&(y.$isRangeSelection(n)||y.DEPRECATED_$isGridSelection(n))&&Er.$insertDataTransferForRichText(r,n,e)},{tag:"paste"})}async function zu(t,e){await Er.copyToClipboard__EXPERIMENTAL(e,t instanceof ClipboardEvent?t:null),e.update(()=>{let n=y.$getSelection();y.$isRangeSelection(n)?n.removeText():y.$isNodeSelection(n)&&n.getNodes().forEach(r=>r.remove())})}function zn(t){let e=null;if(t instanceof DragEvent?e=t.dataTransfer:t instanceof ClipboardEvent&&(e=t.clipboardData),e===null)return[!1,[],!1];var n=e.types;return t=n.includes("Files"),n=n.includes("text/html")||n.includes("text/plain"),[t,Array.from(e.files),n]}function ta(t,e){var n=y.$getSelection();if(y.$isRangeSelection(n)){var r=new Set;n=n.getNodes();for(let i=0;i<n.length;i++){let o=n[i],l=o.getKey();if(r.has(l))continue;let s=qt.$getNearestBlockElementAncestorOrThrow(o),a=s.getKey();s.canInsertTab()?(t(o),r.add(l)):s.canIndent()&&!r.has(a)&&(r.add(a),e(s))}}}function br(t){return t=y.$getNearestNodeFromDOMNode(t),y.$isDecoratorNode(t)}Ve.$createHeadingNode=Sr,Ve.$createQuoteNode=Hi,Ve.$isHeadingNode=function(t){return t instanceof Fn},Ve.$isQuoteNode=function(t){return t instanceof Pn},Ve.DRAG_DROP_PASTE=Bi,Ve.HeadingNode=Fn,Ve.QuoteNode=Pn,Ve.eventFiles=zn,Ve.registerRichText=function(t){return qt.mergeRegister(t.registerCommand(y.CLICK_COMMAND,()=>{const e=y.$getSelection();return y.$isNodeSelection(e)?(e.clear(),!0):!1},0),t.registerCommand(y.DELETE_CHARACTER_COMMAND,e=>{const n=y.$getSelection();return y.$isRangeSelection(n)?(n.deleteCharacter(e),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.DELETE_WORD_COMMAND,e=>{const n=y.$getSelection();return y.$isRangeSelection(n)?(n.deleteWord(e),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.DELETE_LINE_COMMAND,e=>{const n=y.$getSelection();return y.$isRangeSelection(n)?(n.deleteLine(e),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.CONTROLLED_TEXT_INSERTION_COMMAND,e=>{const n=y.$getSelection();if(typeof e=="string")y.$isRangeSelection(n)?n.insertText(e):y.DEPRECATED_$isGridSelection(n);else{if(!y.$isRangeSelection(n)&&!y.DEPRECATED_$isGridSelection(n))return!1;const r=e.dataTransfer;r!=null?Er.$insertDataTransferForRichText(r,n,t):y.$isRangeSelection(n)&&(e=e.data)&&n.insertText(e)}return!0},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.REMOVE_TEXT_COMMAND,()=>{const e=y.$getSelection();return y.$isRangeSelection(e)?(e.removeText(),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.FORMAT_TEXT_COMMAND,e=>{const n=y.$getSelection();return y.$isRangeSelection(n)?(n.formatText(e),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.FORMAT_ELEMENT_COMMAND,e=>{var n=y.$getSelection();if(!y.$isRangeSelection(n)&&!y.$isNodeSelection(n))return!1;n=n.getNodes();for(const r of n)qt.$getNearestBlockElementAncestorOrThrow(r).setFormat(e);return!0},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.INSERT_LINE_BREAK_COMMAND,e=>{const n=y.$getSelection();return y.$isRangeSelection(n)?(n.insertLineBreak(e),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.INSERT_PARAGRAPH_COMMAND,()=>{const e=y.$getSelection();return y.$isRangeSelection(e)?(e.insertParagraph(),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.INDENT_CONTENT_COMMAND,()=>(ta(()=>{t.dispatchCommand(y.CONTROLLED_TEXT_INSERTION_COMMAND," ")},e=>{const n=e.getIndent();n!==10&&e.setIndent(n+1)}),!0),y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.OUTDENT_CONTENT_COMMAND,()=>(ta(e=>{y.$isTextNode(e)&&(e=e.getTextContent(),e[e.length-1]===" "&&t.dispatchCommand(y.DELETE_CHARACTER_COMMAND,!0))},e=>{const n=e.getIndent();n!==0&&e.setIndent(n-1)}),!0),y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_ARROW_UP_COMMAND,e=>{const n=y.$getSelection();return y.$isNodeSelection(n)&&!br(e.target)&&(e=n.getNodes(),0<e.length)?(e[0].selectPrevious(),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_ARROW_DOWN_COMMAND,()=>{var e=y.$getSelection();return y.$isNodeSelection(e)&&(e=e.getNodes(),0<e.length)?(e[0].selectNext(0,0),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_ARROW_LEFT_COMMAND,e=>{const n=y.$getSelection();if(y.$isNodeSelection(n)){var r=n.getNodes();if(0<r.length)return e.preventDefault(),r[0].selectPrevious(),!0}return y.$isRangeSelection(n)&&Tr.$shouldOverrideDefaultCharacterSelection(n,!0)?(r=e.shiftKey,e.preventDefault(),Tr.$moveCharacter(n,r,!0),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_ARROW_RIGHT_COMMAND,e=>{const n=y.$getSelection();if(y.$isNodeSelection(n)&&!br(e.target)){var r=n.getNodes();if(0<r.length)return e.preventDefault(),r[0].selectNext(0,0),!0}return y.$isRangeSelection(n)?(r=e.shiftKey,Tr.$shouldOverrideDefaultCharacterSelection(n,!1)?(e.preventDefault(),Tr.$moveCharacter(n,r,!1),!0):!1):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_BACKSPACE_COMMAND,e=>{if(br(e.target))return!1;const n=y.$getSelection();if(!y.$isRangeSelection(n))return!1;e.preventDefault(),{anchor:e}=n;const r=e.getNode();return n.isCollapsed()&&e.offset===0&&!y.$isRootNode(r)&&0<qt.$getNearestBlockElementAncestorOrThrow(r).getIndent()?t.dispatchCommand(y.OUTDENT_CONTENT_COMMAND,void 0):t.dispatchCommand(y.DELETE_CHARACTER_COMMAND,!0)},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_DELETE_COMMAND,e=>{if(br(e.target))return!1;const n=y.$getSelection();return y.$isRangeSelection(n)?(e.preventDefault(),t.dispatchCommand(y.DELETE_CHARACTER_COMMAND,!1)):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_ENTER_COMMAND,e=>{const n=y.$getSelection();if(!y.$isRangeSelection(n))return!1;if(e!==null){if((Iu||Lu)&&Du)return!1;if(e.preventDefault(),e.shiftKey)return t.dispatchCommand(y.INSERT_LINE_BREAK_COMMAND,!1)}return t.dispatchCommand(y.INSERT_PARAGRAPH_COMMAND,void 0)},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_TAB_COMMAND,e=>{const n=y.$getSelection();return y.$isRangeSelection(n)?(e.preventDefault(),t.dispatchCommand(e.shiftKey?y.OUTDENT_CONTENT_COMMAND:y.INDENT_CONTENT_COMMAND,void 0)):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_ESCAPE_COMMAND,()=>{const e=y.$getSelection();return y.$isRangeSelection(e)?(t.blur(),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.DROP_COMMAND,e=>{const[,n]=zn(e);if(0<n.length){var r=e.clientX,i=e.clientY;if(r=typeof document.caretRangeFromPoint<"u"?document.caretRangeFromPoint(r,i):document.caretPositionFromPoint!=="undefined"?document.caretPositionFromPoint(r,i):null,r!==null){const{startOffset:o,endOffset:l,startContainer:s,endContainer:a}=r;if(r=y.$getNearestNodeFromDOMNode(s),i=y.$getNearestNodeFromDOMNode(a),r!==null&&i!==null){const c=y.$createRangeSelection();y.$isTextNode(r)?c.anchor.set(r.getKey(),o,"text"):c.anchor.set(r.getParentOrThrow().getKey(),r.getIndexWithinParent()+1,"element"),y.$isTextNode(i)?c.focus.set(i.getKey(),l,"text"):c.focus.set(i.getParentOrThrow().getKey(),i.getIndexWithinParent()+1,"element"),r=y.$normalizeSelection__EXPERIMENTAL(c),y.$setSelection(r)}t.dispatchCommand(Bi,n)}return e.preventDefault(),!0}return e=y.$getSelection(),!!y.$isRangeSelection(e)},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.DRAGSTART_COMMAND,e=>{const[n]=zn(e),r=y.$getSelection();return n&&!y.$isRangeSelection(r)?!1:(e.preventDefault(),!0)},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.DRAGOVER_COMMAND,e=>{const[n]=zn(e),r=y.$getSelection();return n&&!y.$isRangeSelection(r)?!1:(e.preventDefault(),!0)},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.COPY_COMMAND,e=>(Er.copyToClipboard__EXPERIMENTAL(t,e instanceof ClipboardEvent?e:null),!0),y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.CUT_COMMAND,e=>(zu(e,t),!0),y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.PASTE_COMMAND,e=>{const[,n,r]=zn(e);if(0<n.length&&!r)return t.dispatchCommand(Bi,n),!0;const i=y.$getSelection();return y.$isRangeSelection(i)||y.DEPRECATED_$isGridSelection(i)?(Fu(e,t),!0):!1},y.COMMAND_PRIORITY_EDITOR))};var nt=Ve,rt={},Bu=me,dt=w;class tn extends dt.ElementNode{static getType(){return"link"}static clone(e){return new tn(e.__url,{rel:e.__rel,target:e.__target},e.__key)}constructor(e,n={},r){super(r);let{target:i=null,rel:o=null}=n;this.__url=e,this.__target=i,this.__rel=o}createDOM(e){let n=document.createElement("a");return n.href=this.__url,this.__target!==null&&(n.target=this.__target),this.__rel!==null&&(n.rel=this.__rel),Bu.addClassNamesToElement(n,e.theme.link),n}updateDOM(e,n){let r=this.__url,i=this.__target,o=this.__rel;return r!==e.__url&&(n.href=r),i!==e.__target&&(i?n.target=i:n.removeAttribute("target")),o!==e.__rel&&(o?n.rel=o:n.removeAttribute("rel")),!1}static importDOM(){return{a:()=>({conversion:Hu,priority:1})}}static importJSON(e){let n=Bn(e.url,{rel:e.rel,target:e.target});return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),type:"link",url:this.getURL(),version:1}}getURL(){return this.getLatest().__url}setURL(e){this.getWritable().__url=e}getTarget(){return this.getLatest().__target}setTarget(e){this.getWritable().__target=e}getRel(){return this.getLatest().__rel}setRel(e){this.getWritable().__rel=e}insertNewAfter(e){if(e=this.getParentOrThrow().insertNewAfter(e),dt.$isElementNode(e)){let n=Bn(this.__url,{rel:this.__rel,target:this.__target});return e.append(n),n}return null}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,n){if(!dt.$isRangeSelection(n))return!1;e=n.anchor.getNode();let r=n.focus.getNode();return this.isParentOf(e)&&this.isParentOf(r)&&0<n.getTextContent().length}}function Hu(t){let e=null;if(t instanceof HTMLAnchorElement){let n=t.textContent;n!==null&&n!==""&&(e=Bn(t.getAttribute("href")||"",{rel:t.getAttribute("rel"),target:t.getAttribute("target")}))}return{node:e}}function Bn(t,e){return new tn(t,e)}function Et(t){return t instanceof tn}class Hn extends tn{static getType(){return"autolink"}static clone(e){return new Hn(e.__url,{rel:e.__rel,target:e.__target},e.__key)}static importJSON(e){let n=Ki(e.url,{rel:e.rel,target:e.target});return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),type:"autolink",version:1}}insertNewAfter(e){if(e=this.getParentOrThrow().insertNewAfter(e),dt.$isElementNode(e)){let n=Ki(this.__url,{rel:this._rel,target:this.__target});return e.append(n),n}return null}}function Ki(t,e){return new Hn(t,e)}let Ku=dt.createCommand("TOGGLE_LINK_COMMAND");function Wu(t){return Uu(t,e=>Et(e))}function Uu(t,e){for(;t!==null&&(t=t.getParent())!==null&&!e(t););return t}rt.$createAutoLinkNode=Ki,rt.$createLinkNode=Bn,rt.$isAutoLinkNode=function(t){return t instanceof Hn},rt.$isLinkNode=Et,rt.AutoLinkNode=Hn,rt.LinkNode=tn,rt.TOGGLE_LINK_COMMAND=Ku,rt.toggleLink=function(t,e={}){let{target:n}=e,r=e.rel===void 0?"noopener":e.rel;if(e=dt.$getSelection(),dt.$isRangeSelection(e))if(e=e.extract(),t===null)e.forEach(o=>{if(o=o.getParent(),Et(o)){let l=o.getChildren();for(let s=0;s<l.length;s++)o.insertBefore(l[s]);o.remove()}});else{if(e.length===1){var i=e[0];if(i=Et(i)?i:Wu(i),i!==null){i.setURL(t),n!==void 0&&i.setTarget(n),r!==null&&i.setRel(r);return}}let o=null,l=null;e.forEach(s=>{var a=s.getParent();if(a!==l&&a!==null&&(!dt.$isElementNode(s)||s.isInline()))if(Et(a))l=a,a.setURL(t),n!==void 0&&a.setTarget(n),r!==null&&l.setRel(r);else if(a.is(o)||(o=a,l=Bn(t,{rel:r,target:n}),Et(a)?s.getPreviousSibling()===null?a.insertBefore(l):a.insertAfter(l):s.insertBefore(l)),Et(s)){if(!s.is(l)){if(l!==null){a=s.getChildren();for(let c=0;c<a.length;c++)l.append(a[c])}s.remove()}}else l!==null&&l.append(s)})}};var Wi=rt;class Rr extends w.ElementNode{static getType(){return"aside"}static clone(e){return new Rr(e.__key)}createDOM(e){const n=document.createElement("aside");return me.addClassNamesToElement(n,e.theme.aside),n}updateDOM(e,n){return!1}static importDOM(){return{aside:e=>({conversion:ju,priority:0})}}static importJSON(e){const n=Ui();return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),type:"aside"}}insertNewAfter(){const e=w.$createParagraphNode(),n=this.getDirection();return e.setDirection(n),this.insertNewAfter(e),e}collapseAtStart(){const e=w.$createParagraphNode();return this.getChildren().forEach(r=>e.append(r)),this.replace(e),!0}}function ju(){return{node:Ui}}function Ui(){return new Rr}var na={},Yu=ie,Tt=w,Or=S.default;function ra(t,e){return t.getEditorState().read(()=>{let n=Tt.$getNodeByKey(e);return n===null?!1:n.isSelected()})}na.useLexicalNodeSelection=function(t){let[e]=Yu.useLexicalComposerContext(),[n,r]=Or.useState(()=>ra(e,t));Or.useEffect(()=>e.registerUpdateListener(()=>{r(ra(e,t))}),[e,t]);let i=Or.useCallback(l=>{e.update(()=>{let s=Tt.$getSelection();Tt.$isNodeSelection(s)||(s=Tt.$createNodeSelection(),Tt.$setSelection(s)),l?s.add(t):s.delete(t)})},[e,t]),o=Or.useCallback(()=>{e.update(()=>{const l=Tt.$getSelection();Tt.$isNodeSelection(l)&&l.clear()})},[e]);return[n,i,o]};var ia=na;const oa=S.default.createContext({});var xe={exports:{}},Vu="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Gu=Vu,Zu=Gu;function la(){}function sa(){}sa.resetWarningCache=la;var Ju=function(){function t(r,i,o,l,s,a){if(a!==Zu){var c=new 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 c.name="Invariant Violation",c}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:sa,resetWarningCache:la};return n.PropTypes=n,n};xe.exports=Ju();const ji=S.default.forwardRef(({isSelected:t,cardWidth:e,cardType:n,children:r,...i},o)=>h("div",{className:`relative border border-transparent caret-grey-800 ${t?"shadow-[0_0_0_2px] shadow-green":"hover:shadow-[0_0_0_1px] hover:shadow-green"} ${e==="wide"?"mx-[calc(50%-(50vw-var(--kg-breakout-adjustment))-.8rem)] w-[calc(65vw+2px-var(--kg-breakout-adjustment))] min-w-[calc(100%+3.6rem)] sm:min-w-[calc(100%+10rem)] lg:min-w-[calc(100%+18rem)] translate-x-[calc(50vw-50%+.8rem-var(--kg-breakout-adjustment))]":e==="full"?"lg:mx-[calc(50%-50vw+(var(--kg-breakout-adjustment)/2))] lg:w-[calc(100vw-var(--kg-breakout-adjustment))]":""}`,ref:o,"data-kg-card":n,"data-kg-card-selected":t,...i,children:r}));ji.propTypes={isSelected:xe.exports.bool,cardWidth:xe.exports.oneOf(["regular","wide","full"])},ji.defaultProps={cardWidth:"regular"};const Yi=({nodeKey:t,children:e,width:n})=>{const[r]=ie.useLexicalComposerContext(),[i,o,l]=ia.useLexicalNodeSelection(t),[s,a]=S.default.useState(null),[c,d]=S.default.useState(null),[u,g]=S.default.useState(n||"regular"),m=S.default.useRef(null);return S.default.useLayoutEffect(()=>{r.getEditorState().read(()=>{const f=w.$getNodeByKey(t);d(f.getType())})},[]),S.default.useEffect(()=>me.mergeRegister(r.registerUpdateListener(({editorState:f})=>{a(f.read(()=>w.$getSelection()))}),r.registerCommand(w.CLICK_COMMAND,f=>(m.current.contains(f.target)?(l(),o(!0)):i&&o(!1),!1),w.COMMAND_PRIORITY_LOW),r.registerCommand(w.KEY_ENTER_COMMAND,f=>{const _=w.$getSelection();if(i&&w.$isNodeSelection(_)&&_.getNodes().length===1){f.preventDefault();const C=w.$getNodeByKey(t),E=w.$createParagraphNode();return C.getTopLevelElementOrThrow().insertAfter(E),E.select(),!0}return!1},w.COMMAND_PRIORITY_EDITOR),r.registerCommand(w.KEY_BACKSPACE_COMMAND,f=>{const _=w.$getSelection();if(i&&w.$isNodeSelection(_)&&_.getNodes().length===1){f.preventDefault();const C=w.$getNodeByKey(t);if(C.getType()==="image"&&f.target.matches("input"))return r.update(()=>{const v=C.getCaption();C.setCaption(v.slice(0,-1))}),!1;const E=C.getPreviousSibling(),p=C.getNextSibling();if(E)if(E.selectEnd)E.selectEnd();else if(w.$isDecoratorNode(E)){const v=w.$createNodeSelection();v.add(E.getKey()),w.$setSelection(v)}else C.selectPrevious();else if(p)if(p.selectStart)p.selectStart();else if(w.$isDecoratorNode(p)){const v=w.$createNodeSelection();v.add(p.getKey()),w.$setSelection(v)}else C.selectNext();return C.remove(),!0}return!1},w.COMMAND_PRIORITY_EDITOR),r.registerCommand(w.KEY_DELETE_COMMAND,f=>{const _=w.$getSelection();if(i&&w.$isNodeSelection(_)&&_.getNodes().length===1){f.preventDefault();const C=w.$getNodeByKey(t),E=C.getNextSibling();if(E)if(E.selectStart)E.selectStart();else if(w.$isDecoratorNode(E)){const p=w.$createNodeSelection();p.add(E.getKey()),w.$setSelection(p)}else C.selectNext();else{const p=w.$createParagraphNode();C.getTopLevelElementOrThrow().insertAfter(p),p.select()}return C.remove(),!0}return!1},w.COMMAND_PRIORITY_EDITOR)),[r,i,o,l,t]),h(oa.Provider,{value:{isSelected:i,cardWidth:u,setCardWidth:g,selection:s,cardContainerRef:m},children:h(ji,{isSelected:i,cardType:c,ref:m,cardWidth:u,children:e})})};function Xu(){return h("hr",{className:"block h-[1px] border-0 border-t border-grey-300"})}const aa=w.createCommand(),vo=class extends w.DecoratorNode{static getType(){return"horizontalrule"}static clone(e){return new vo(e.__key)}static importJSON(e){return Vi()}exportJSON(){return{type:"horizontalrule",version:1}}createDOM(){return document.createElement("div")}getTextContent(){return`
31
- `}isInline(){return!1}updateDOM(){return!1}decorate(){return h(Yi,{nodeKey:this.getKey(),className:"inline-block",children:h(Xu,{})})}};let St=vo;Ne(St,"kgMenu",{label:"Divider",desc:"Insert a dividing line",Icon:Do,insertCommand:aa,matches:["divider","horizontal-rule","hr"]});function Vi(){return new St}function qu(t){return t instanceof St}const Qu=({el:t,value:e})=>{re.useEffect(()=>{const n=t.current;if(n){n.style.height="0px";const r=n.scrollHeight;n.style.height=`${r}px`}},[t,e])};function ca({code:t,language:e,updateCode:n,updateLanguage:r}){const i=S.default.useRef(null);return Qu({el:i,value:t}),h("code",{children:h("textarea",{ref:i,autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",tabIndex:"0",autoFocus:!0,className:"min-h-170 w-full bg-grey-50 p-3 text-grey-900",value:t,onChange:n})})}ca.propTypes={code:xe.exports.string},w.createCommand();function eg({code:t,language:e,nodeKey:n,editor:r}){return h(ca,{code:t,updateCode:l=>{r.update(()=>{w.$getNodeByKey(n).setCode(l.target.value)})},language:e,updateLanguage:l=>{r.update(()=>{w.$getNodeByKey(n).setLanguage(l.target.value)})}})}class nn extends w.DecoratorNode{constructor(n,r,i){super(i);Ne(this,"__code","");Ne(this,"__language","");this.__language=n,this.__code=r}static getType(){return"codeblock"}static clone(n){return new nn(n.__key,n.__code)}static importJSON(n){return da()}exportJSON(){return{type:"codeblock",version:1,code:this.__code,language:this.__language}}createDOM(n){return document.createElement("div")}updateDOM(){return!1}getCode(){return this.getLatest().__code}setCode(n){const r=this.getWritable();r.__code=n}getLanguage(){return this.getLatest().__language}setLanguage(n){const r=this.getWritable();r.__language=n}getTextContent(){return this.getLatest().__code}decorate(n,r){return h(Yi,{nodeKey:this.getKey(),children:h(eg,{code:this.__code,language:this.__language,nodeKey:this.getKey(),editor:n})})}isInline(){return!1}}function da(t,e){return new nn(t,e)}function tg(t){return t instanceof nn}class ng extends w.DecoratorNode{}class rg{constructor(e){this.NodeClass=e}get DOMConversionMap(){const e=this;return{img:()=>({conversion(n){if(n.tagName==="IMG"){const{alt:r,src:i,title:o,width:l,height:s}=n;return{node:new e.NodeClass({altText:r,src:i,title:o,width:l,height:s})}}return null},priority:1})}}}const ua=function(t,e){const n=Object.values(e).map(i=>{let{width:o}=i;return o}).sort((i,o)=>i-o),r=n.filter(i=>i<=t.width);return t.width>r[r.length-1]&&t.width<n[n.length-1]&&r.push(t.width),r},$r=function(t){const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:"").replace(/\/$/,""),r=t.replace(n,"");return/^(\/.*|__GHOST_URL__)\/?content\/images\//.test(r)},ig=function(t){return/images\.unsplash\.com/.test(t)},og=function(t){let{src:e,width:n,options:r}=t;if(!r.imageOptimization||r.imageOptimization.srcsets===!1||!n||!r.imageOptimization.contentImageSizes||$r(e,r.siteUrl)&&r.canTransformImage&&!r.canTransformImage(e))return;const i=ua({width:n},r.imageOptimization.contentImageSizes);if($r(e,r.siteUrl)){const[,o,l]=e.match(/(.*\/content\/images)\/(.*)/),s=[];if(i.forEach(a=>{a===n?s.push(`${e} ${a}w`):a<=n&&s.push(`${o}/size/w${a}/${l} ${a}w`)}),s.length)return s.join(", ")}if(ig(e)){const o=new URL(e),l=[];return i.forEach(s=>{o.searchParams.set("w",s),l.push(`${o.href} ${s}w`)}),l.join(", ")}},lg=function(t,e,n){if(!t||!["IMG","SOURCE"].includes(t.tagName)||!t.getAttribute("src")||!e)return;const{src:r,width:i}=e,o=og({src:r,width:i,options:n});o&&t.setAttribute("srcset",o)},ga=function(t){let{width:e,height:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{width:r,height:i}=t,o=r/i;if(e){const l=Math.round(e/o);return{width:e,height:l}}if(n)return{width:Math.round(n*o),height:n}};function sg(t){var a;let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!e.createDocument){let c=typeof window<"u"&&window.document;if(!c)throw new Error("renderImageNodeToDOM() must be passed a `createDocument` function as an option when used in a non-browser environment");e.createDocument=function(){return c}}const n=e.createDocument();if(!t.getSrc()||t.getSrc().trim()==="")return n.createTextNode("");const r=n.createElement("figure");let i="kg-card kg-image-card";t.getCardWidth()!=="regular"&&(i+=` kg-width-${t.getCardWidth()}`),r.setAttribute("class",i);const o=n.createElement("img");o.setAttribute("src",t.getSrc()),o.setAttribute("alt",t.getAltText()),o.setAttribute("loading","lazy"),t.getTitle()&&o.setAttribute("title",t.getTitle()),t.getImgWidth()&&t.getImgHeight()&&(o.setAttribute("width",t.getImgWidth()),o.setAttribute("height",t.getImgHeight()));const{canTransformImage:l}=e,{defaultMaxWidth:s}=e.imageOptimization||{};if(s&&t.getImgWidth()>s&&$r(t.getSrc(),e.siteUrl)&&l&&l(t.getSrc())){const c={width:t.getImgWidth(),height:t.getImgHeight()},{width:d,height:u}=ga(c,{width:s});o.setAttribute("width",d),o.setAttribute("height",u)}if(e.target!=="email"){const c={src:t.getSrc(),width:t.getImgWidth(),height:t.getImgHeight()};lg(o,c,e),o.getAttribute("srcset")&&t.getImgWidth()&&t.getImgWidth()>=720&&((!t.getCardWidth()||t.getCardWidth()==="regular")&&o.setAttribute("sizes","(min-width: 720px) 720px"),t.getCardWidth()==="wide"&&t.getImgWidth()>=1200&&o.setAttribute("sizes","(min-width: 1200px) 1200px"))}if(e.target==="email"&&t.getImgWidth()&&t.getImgHeight()){let c={width:t.getImgWidth(),height:t.getImgHeight()};if(t.getImgWidth()>=600&&(c=ga(c,{width:600})),o.setAttribute("width",c.width),o.setAttribute("height",c.height),$r(t.getSrc(),e.siteUrl)&&((a=e.canTransformImage)==null?void 0:a.call(e,t.getSrc()))){const u=ua(t,e.imageOptimization.contentImageSizes).find(g=>g>=1200);if(!(!u||u===t.getImgWidth())){const[,g,m]=t.getSrc().match(/(.*\/content\/images)\/(.*)/);o.setAttribute("src",`${g}/size/w${u}/${m}`)}}}if(r.appendChild(o),t.getCaption()){const c=n.createElement("figcaption");c.innerHTML=t.getCaption(),r.appendChild(c)}return r}const Mr=w.createCommand();w.createCommand();class Gi extends ng{constructor(){let{src:n,caption:r,title:i,altText:o,cardWidth:l,width:s,height:a}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=arguments.length>1?arguments[1]:void 0;super(c);Ne(this,"__src");Ne(this,"__caption");Ne(this,"__title");Ne(this,"__altText");Ne(this,"__cardWidth");Ne(this,"__width");Ne(this,"__height");this.__src=n||"",this.__title=i||"",this.__caption=r||"",this.__altText=o||"",this.__width=s||null,this.__height=a||null,this.__cardWidth=l||"regular"}static getType(){return"image"}static clone(n){return new this(n.getDataset(),n.__key)}static get urlTransformMap(){return{src:"url",caption:"html"}}getDataset(){return{src:this.__src,caption:this.__caption,title:this.__title,altText:this.__altText,width:this.__width,height:this.__height,cardWidth:this.__cardWidth}}static importJSON(n){const{src:r,caption:i,title:o,altText:l,width:s,height:a,cardWidth:c}=n;return new this({src:r,caption:i,title:o,altText:l,width:s,height:a,cardWidth:c})}exportJSON(){const r=this.getSrc().startsWith("data:");return{type:"image",src:r?"<base64String>":this.getSrc(),width:this.getImgWidth(),height:this.getImgHeight(),title:this.getTitle(),altText:this.getAltText(),caption:this.getCaption(),cardWidth:this.getCardWidth()}}static importDOM(){return new rg(this).DOMConversionMap}exportDOM(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return{element:sg(this,n)}}createDOM(){return document.createElement("div")}updateDOM(){return!1}isInline(){return!1}getSrc(){return this.__src}setSrc(n){const r=this.getWritable();return r.__src=n}getTitle(){return this.__title}setTitle(n){const r=this.getWritable();return r.__title=n}setCardWidth(n){const r=this.getWritable();return r.__cardWidth=n}getCardWidth(){return this.__cardWidth}getImgWidth(){return this.__width}setImgWidth(n){const r=this.getWritable();return r.__width=n}getImgHeight(){return this.__height}setImgHeight(n){const r=this.getWritable();return r.__height=n}getCaption(){return this.__caption}setCaption(n){const r=this.getWritable();return r.__caption=n}getAltText(){return this.__altText}setAltText(n){const r=this.getWritable();return r.__altText=n}decorate(){return""}}Ne(Gi,"extensionTypes",["gif","jpg","jpeg","png","svg","svgz","webp"]),Ne(Gi,"mimeTypes",["image/gif","image/jpg","image/jpeg","image/png","image/svg+xml","image/webp"]);const Ar=S.default.createContext({});function ag({value:t,placeholder:e,onChange:n}){return h("input",{onChange:i=>{n(i.target.value)},className:"not-kg-prose w-full px-9 text-center font-sans text-sm font-normal leading-8 tracking-wide text-grey-900",placeholder:e,value:t})}function cg({value:t,placeholder:e,onChange:n}){return h("input",{onChange:i=>{n(i.target.value)},className:"not-kg-prose w-full px-9 text-center font-sans text-sm font-normal leading-8 tracking-wide text-grey-900",placeholder:e,value:t})}function dg({isEditingAlt:t,onClick:e}){return h("button",{name:"alt-toggle-button",className:`absolute bottom-0 right-0 m-2 cursor-pointer rounded border px-1 font-sans text-[1.3rem] font-normal leading-7 tracking-wide transition-all duration-100 ${t?"border-green bg-green text-white":"border-grey text-grey"} `,onClick:e,children:"Alt"})}function ug({altText:t,altTextPlaceholder:e,setAltText:n,caption:r,captionPlaceholder:i,setCaption:o,isSelected:l}){const[s,a]=S.default.useState(!1),c=d=>{d.stopPropagation(),a(!s)};if(S.default.useEffect(()=>{l||a(!1)},[l,a]),l||r)return B("figcaption",{className:"flex w-full p-2",children:[s?h(cg,{value:t,placeholder:e,onChange:n}):h(ag,{value:r,placeholder:i,onChange:o}),n&&h(dg,{isEditingAlt:s,onClick:c})]})}const gg=({text:t})=>h("span",{"data-kg-card-drag-text":!0,className:"text-sm font-sans font-bold text-grey-800 transition-all group-hover:text-grey-800",children:t});function hg({desc:t,Icon:e,filePicker:n,size:r,handleDrag:i,handleDrop:o,isDraggedOver:l,...s}){return h("div",{onDragEnter:i,onDragLeave:i,onDragOver:i,onDrop:o,className:"border border-transparent",...s,"data-testid":"media-placeholder",children:h("div",{className:`h-100 relative flex items-center justify-center border border-grey/20 bg-grey-50 ${r==="xsmall"?"before:pb-[12.5%]":"before:pb-[62.5%]"}`,children:l?h(gg,{text:"Drop it like it's hot \u{1F525}"}):B("button",{onClick:n,name:"placeholder-button",className:`group flex cursor-pointer items-center justify-center ${r==="xsmall"?"p-4":"p-20 flex-col"}`,children:[h(e,{className:`opacity-80 transition-all ease-linear group-hover:scale-105 group-hover:opacity-100 ${r==="large"?"h-20 w-20 text-grey":r==="small"?"h-14 w-14 text-grey":r==="xsmall"?"w-6 h-6 mr-3 text-grey-700":"h-16 w-16 text-grey"}`}),h("p",{className:`font-sans text-sm font-normal text-grey-700 transition-all group-hover:text-grey-800 ${r==="xsmall"?"":"mt-4"}`,children:t})]})})})}function Dr({fileInputRef:t}){t.current.click()}function ha({onFileChange:t,fileInputRef:e}){return h("form",{onChange:t,children:h("input",{name:"image-input",type:"file",accept:"image/*",ref:e,hidden:!0})})}function fg({src:t,alt:e,previewSrc:n,progress:r}){const i={width:`${r==null?void 0:r.toFixed(0)}%`};return B("div",{children:[h("img",{className:`mx-auto ${n?"opacity-40":""}`,src:n||t,alt:e||`upload in progress, ${r} `}),n&&r&&!t?h("div",{className:"absolute inset-0 flex items-center min-w-full bg-white/50 justify-center overflow-hidden",children:h("div",{className:"not-kg-prose bg-grey-200 rounded-full shadow w-[60%]",children:h("div",{className:"bg-green rounded-full text-xs leading-none py-1 text-center text-white",style:i})})}):h(Pt,{})]})}function pg({onFileChange:t,setFileInputRef:e,handleDrag:n,handleDrop:r,isDraggedOver:i}){const o=S.default.useRef(null);return B(Pt,{children:[h(hg,{handleDrag:n,handleDrop:r,filePicker:()=>Dr({fileInputRef:o}),desc:"Click to select an image",Icon:Vr,isDraggedOver:i}),h(ha,{filePicker:()=>Dr({fileInputRef:o}),onFileChange:t,fileInputRef:s=>{o.current=s,e(o)}})]})}const mg=({src:t,altText:e,previewSrc:n,uploadProgress:r,onFileChange:i,setFileInputRef:o,handleDrag:l,handleDrop:s,isDraggedOver:a})=>n||t?h(fg,{src:t,alt:e,previewSrc:n,progress:r}):h(pg,{handleDrag:l,onFileChange:i,setFileInputRef:o,handleDrop:s,isDraggedOver:a});function fa({isSelected:t,src:e,onFileChange:n,caption:r,setCaption:i,altText:o,setAltText:l,setFigureRef:s,fileInputRef:a,handleDrag:c,handleDrop:d,isDraggedOver:u,cardWidth:g,previewSrc:m,uploadProgress:f}){const _=S.default.useRef(null);return S.default.useEffect(()=>{s&&s(_)},[_,s]),h(Pt,{children:B("figure",{"data-kg-card-width":g,ref:_,children:[h(mg,{src:e,altText:o,previewSrc:m,uploadProgress:f,onFileChange:n,setFileInputRef:E=>{a&&(a.current=E.current)},handleDrag:c,handleDrop:d,isDraggedOver:u}),h(ug,{altText:o||"",setAltText:l,altTextPlaceholder:"Type alt text for image (optional)",caption:r||"",setCaption:i,captionPlaceholder:"Type caption for image (optional)",isSelected:t})]})})}fa.propTypes={isSelected:xe.exports.bool,setAltText:xe.exports.func,caption:xe.exports.string,altText:xe.exports.string,setCaption:xe.exports.func,src:xe.exports.string,isDraggedOver:xe.exports.bool,previewSrc:xe.exports.string,uploadProgress:xe.exports.number};const xg={bold:ko,italic:Co,headingOne:No,headingTwo:Eo,quote:To,quoteOne:t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 8.00011H6C6.26522 8.00011 6.51957 8.10546 6.70711 8.293C6.89464 8.48054 7 8.73489 7 9.00011V13.0001C7 13.2653 6.89464 13.5197 6.70711 13.7072C6.51957 13.8947 6.26522 14.0001 6 14.0001H3C2.73478 14.0001 2.48043 13.8947 2.29289 13.7072C2.10536 13.5197 2 13.2653 2 13.0001V5.08211C2 3.90611 2.906 2.96211 4.538 2.11311C4.65448 2.05244 4.78177 2.0153 4.91261 2.00383C5.04344 1.99235 5.17525 2.00675 5.30052 2.04622C5.42579 2.08568 5.54205 2.14944 5.64268 2.23383C5.74331 2.31823 5.82633 2.42162 5.887 2.53811C5.94767 2.65459 5.9848 2.78188 5.99628 2.91271C6.00776 3.04355 5.99335 3.17536 5.95389 3.30063C5.91442 3.42589 5.85067 3.54216 5.76627 3.64279C5.68187 3.74342 5.57848 3.82644 5.462 3.88711C4.884 4.18711 4.469 4.47611 4.222 4.73411C4.054 4.90811 4 5.02011 4 5.08211V8.00011ZM13 8.00011C13.2652 8.00011 13.5196 8.10546 13.7071 8.293C13.8946 8.48054 14 8.73489 14 9.00011V9.5366C13.6143 9.60243 13.2536 9.7523 12.937 9.9445L12.9298 9.9489L12.4315 10.2608C11.9856 10.5357 11.5 11.0479 11.5 11.8252C11.5 12.5688 11.9611 13.2015 12.6323 13.4311V14.0001H10C9.73478 14.0001 9.48043 13.8947 9.29289 13.7072C9.10536 13.5197 9 13.2653 9 13.0001V5.08211C9 3.90611 9.906 2.96211 11.538 2.11311C11.6545 2.05244 11.7818 2.0153 11.9126 2.00383C12.0434 1.99235 12.1753 2.00675 12.3005 2.04622C12.4258 2.08568 12.5421 2.14944 12.6427 2.23383C12.7433 2.31823 12.8263 2.42162 12.887 2.53811C12.9477 2.65459 12.9848 2.78188 12.9963 2.91271C13.0078 3.04355 12.9934 3.17536 12.9539 3.30063C12.9144 3.42589 12.8507 3.54216 12.7663 3.64279C12.6819 3.74342 12.5785 3.82644 12.462 3.88711C11.884 4.18711 11.469 4.47611 11.222 4.73411C11.054 4.90811 11 5.02011 11 5.08211V8.00011H13ZM14.5428 15.4344C14.1182 15.4344 13.8823 15.1783 13.8823 14.7267V11.96H13.8722L13.6397 12.1082C13.4274 12.2329 13.3229 12.2734 13.1948 12.2734C12.9354 12.2734 12.75 12.0846 12.75 11.8252C12.75 11.6297 12.8646 11.4612 13.0904 11.323L13.5858 11.013C13.8688 10.8411 14.1587 10.7501 14.4249 10.7501C14.8933 10.7501 15.2 11.0635 15.2 11.5488V14.7267C15.2 15.1817 14.9641 15.4344 14.5428 15.4344Z"})),quoteTwo:t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 8.00015H6C6.26522 8.00015 6.51957 8.1055 6.70711 8.29304C6.89464 8.48058 7 8.73493 7 9.00015V13.0001C7 13.2654 6.89464 13.5197 6.70711 13.7073C6.51957 13.8948 6.26522 14.0001 6 14.0001H3C2.73478 14.0001 2.48043 13.8948 2.29289 13.7073C2.10536 13.5197 2 13.2654 2 13.0001V5.08215C2 3.90615 2.906 2.96215 4.538 2.11315C4.65448 2.05248 4.78177 2.01534 4.91261 2.00387C5.04344 1.99239 5.17525 2.00679 5.30052 2.04626C5.42579 2.08572 5.54205 2.14948 5.64268 2.23387C5.74331 2.31827 5.82633 2.42166 5.887 2.53815C5.94767 2.65463 5.9848 2.78192 5.99628 2.91275C6.00776 3.04359 5.99335 3.1754 5.95389 3.30067C5.91442 3.42593 5.85067 3.5422 5.76627 3.64283C5.68187 3.74346 5.57848 3.82648 5.462 3.88715C4.884 4.18715 4.469 4.47615 4.222 4.73415C4.054 4.90815 4 5.02015 4 5.08215V8.00015ZM13 8.00015C13.2652 8.00015 13.5196 8.1055 13.7071 8.29304C13.8946 8.48058 14 8.73493 14 9.00015V9.51812C13.4378 9.57694 12.9087 9.77735 12.4803 10.0918C11.9785 10.4601 11.5 11.0848 11.5 11.9043C11.5 12.3632 11.6772 12.8135 12.0264 13.1451C12.0604 13.1774 12.0955 13.208 12.1312 13.2369C11.9419 13.4409 11.7509 13.6922 11.6323 14.0001H10C9.73478 14.0001 9.48043 13.8948 9.29289 13.7073C9.10536 13.5197 9 13.2654 9 13.0001V5.08215C9 3.90615 9.906 2.96215 11.538 2.11315C11.6545 2.05248 11.7818 2.01534 11.9126 2.00387C12.0434 1.99239 12.1753 2.00679 12.3005 2.04626C12.4258 2.08572 12.5421 2.14948 12.6427 2.23387C12.7433 2.31827 12.8263 2.42166 12.887 2.53815C12.9477 2.65463 12.9848 2.78192 12.9963 2.91275C13.0078 3.04359 12.9934 3.1754 12.9539 3.30067C12.9144 3.42593 12.8507 3.5422 12.7663 3.64283C12.6819 3.74346 12.5785 3.82648 12.462 3.88715C11.884 4.18715 11.469 4.47615 11.222 4.73415C11.054 4.90815 11 5.02015 11 5.08215V8.00015H13ZM13.2256 15.1428C12.8903 15.1428 12.6626 14.9404 12.6626 14.6432C12.6626 14.4218 12.7891 14.2257 13.1591 13.8779L14.1616 12.907C14.4937 12.5876 14.6391 12.3789 14.6391 12.1607C14.6391 11.9045 14.4526 11.7337 14.1806 11.7337C13.9687 11.7337 13.8169 11.8255 13.6556 12.0532C13.4785 12.2872 13.3457 12.3694 13.1402 12.3694C12.8524 12.3694 12.65 12.1765 12.65 11.9045C12.65 11.2973 13.371 10.7502 14.247 10.7502C15.1546 10.7502 15.825 11.2973 15.825 12.0373C15.825 12.4959 15.5879 12.926 15.0787 13.3908L14.2881 14.1245V14.172H15.4203C15.765 14.172 15.98 14.3585 15.98 14.6621C15.98 14.9626 15.7713 15.1428 15.4203 15.1428H13.2256Z"})),link:jr,imageRegular:So,imageWide:bo,imageFull:Ro,imageReplace:Oo,add:$o,edit:t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},x.createElement("path",{d:"M16.19 3.51a.51.51 0 0 0-.71 0L4.07 14.92a.5.5 0 0 0 0 .71l4.28 4.28a.48.48 0 0 0 .7 0L20.47 8.5a.51.51 0 0 0 0-.71ZM3 16.71a.51.51 0 0 0-.47-.13.48.48 0 0 0-.36.33L0 23.33a.49.49 0 0 0 .12.51.5.5 0 0 0 .54.16l6.42-2.14a.52.52 0 0 0 .33-.36.49.49 0 0 0-.14-.5ZM23 1a3.6 3.6 0 0 0-5 0l-.71.71a.5.5 0 0 0 0 .71l4.28 4.28a.51.51 0 0 0 .7 0L23 6a3.53 3.53 0 0 0 0-5Z"})),snippet:Jn};function pa({children:t,...e}){return h("ul",{className:"m-0 relative flex items-center justify-evenly rounded bg-black px-1 py-0 font-sans text-md font-normal text-white after:absolute after:top-[36px] after:left-[calc(50%-8px)] after:w-0 after:border-t-8 after:border-t-black after:border-x-8 after:border-x-transparent",...e,children:t})}function Ke({label:t,isActive:e,onClick:n,icon:r,...i}){const o=xg[r];return h("li",{className:"m-0 flex p-0 first:m-0",...i,children:h("button",{type:"button",className:"flex h-9 w-9 items-center justify-center",onClick:n,"aria-label":t,"data-kg-active":e,children:h(o,{className:e?"fill-green":"fill-white"})})})}function Zi(){return h("li",{className:"m-0 mx-1 h-5 w-px bg-grey-900"})}function _g({isVisible:t,children:e,...n}){if(t)return h("div",{className:"not-kg-prose absolute top-[-44px] left-1/2 -translate-x-1/2 z-[1000]",...n,children:e})}async function ma(t){const e=new Image;return e.src=t,new Promise((n,r)=>{e.onload=()=>{n({width:e.naturalWidth,height:e.naturalHeight})},e.onerror=r})}const Ji=async(t,e,n,r)=>{if(!t)return;let i=URL.createObjectURL(t[0]);i&&await n.update(()=>{w.$getNodeByKey(e).setPreviewSrc(i)});const{width:o,height:l}=await ma(i),s=await r.imageUploader(t);await n.update(()=>{const a=w.$getNodeByKey(e);a.setImgWidth(o),a.setImgHeight(l),a.setSrc(s.src)})};function vg({nodeKey:t,src:e,altText:n,caption:r,triggerFileDialog:i,previewSrc:o}){const[l]=ie.useLexicalComposerContext(),[s,a]=S.default.useState(!1),{imageUploader:c}=S.default.useContext(Ar),{isSelected:d,cardWidth:u,setCardWidth:g}=S.default.useContext(oa),m=S.default.useRef(),f=S.default.useRef(),_=async k=>{const R=k.target.files;return await Ji(R,t,l,c)},C=k=>{l.update(()=>{w.$getNodeByKey(t).setCaption(k)})},E=k=>{l.update(()=>{w.$getNodeByKey(t).setAltText(k)})};S.default.useEffect(()=>{if(!i)return;const k=setTimeout(()=>{Dr({fileInputRef:m}),l.update(()=>{w.$getNodeByKey(t).setTriggerFileDialog(!1)})});return()=>{clearTimeout(k)}});const p=k=>{l.update(()=>{w.$getNodeByKey(t).setCardWidth(k),g(k)})},v=k=>{k.preventDefault(),k.stopPropagation(),k.type==="dragenter"||k.type==="dragover"?a(!0):k.type==="dragleave"&&a(!1)},T=async k=>{if(k.preventDefault(),k.stopPropagation(),k.dataTransfer.files&&k.dataTransfer.files[0]){const R=k.dataTransfer.files;R&&(a(!1),await Ji(R,t,l,c))}},N=(c==null?void 0:c.uploadProgress)||0;return B(Pt,{children:[h(fa,{isSelected:d,fileInputRef:m,onFileChange:_,src:e,altText:n,setAltText:E,caption:r,setCaption:C,handleDrag:v,handleDrop:T,isDraggedOver:s,cardWidth:u,previewSrc:o,uploadProgress:N}),B(_g,{isVisible:e&&d,"data-kg-card-toolbar":"image",children:[h(ha,{onFileChange:_,fileInputRef:f}),B(pa,{children:[h(Ke,{label:"Regular",icon:"imageRegular",isActive:u==="regular",onClick:()=>p("regular")}),h(Ke,{label:"Wide",icon:"imageWide",isActive:u==="wide",onClick:()=>p("wide")}),h(Ke,{label:"Full",icon:"imageFull",isActive:u==="full",onClick:()=>p("full")}),h(Zi,{}),h(Ke,{label:"Link",icon:"link",isActive:!1}),h(Ke,{label:"Replace",icon:"imageReplace",isActive:!1,onClick:()=>Dr({fileInputRef:f})}),h(Zi,{}),h(Ke,{label:"Snippet",icon:"snippet",isActive:!1})]})]})]})}class rn extends Gi{constructor(n={},r){super(n,r);Ne(this,"__triggerFileDialog",!1);Ne(this,"__previewSrc",null);const{previewSrc:i,triggerFileDialog:o}=n;this.__previewSrc=i||"",this.__triggerFileDialog=!n.src&&o||!1}getDataset(){const n=super.getDataset();return n.__previewSrc=this.__previewSrc,n.__triggerFileDialog=this.__triggerFileDialog,n}getPreviewSrc(){return this.__previewSrc}setPreviewSrc(n){const r=this.getWritable();return r.__previewSrc=n}setTriggerFileDialog(n){const r=this.getWritable();return r.__triggerFileDialog=n}createDOM(){return document.createElement("div")}decorate(){return h(Yi,{nodeKey:this.getKey(),width:this.__cardWidth,children:h(vg,{nodeKey:this.getKey(),src:this.__src,altText:this.__altText,caption:this.__caption,triggerFileDialog:this.__triggerFileDialog,previewSrc:this.getPreviewSrc()})})}}Ne(rn,"kgMenu",[{label:"Image",desc:"Upload, or embed with /image [url]",Icon:Ao,insertCommand:Mr,insertParams:{triggerFileDialog:!0},matches:["image","img"],queryParams:["src"]},{section:"Embed",label:"Unsplash",desc:"/unsplash [search term or url]",Icon:Yr,insertCommand:Mr,insertParams:{triggerFileDialog:!1,triggerFileSelector:"unsplash"},matches:["unsplash","uns"],queryParams:["src"]}]);const xa=t=>new rn(t);function wg(t){return t instanceof rn}const _a=[nt.HeadingNode,Qe.ListNode,Qe.ListItemNode,nt.QuoteNode,Rr,Wi.LinkNode,nn,St,rn],yg={paragraph:void 0,heading:{h1:void 0,h2:void 0,h3:void 0,h4:void 0,h5:void 0,h6:void 0},quote:void 0,aside:void 0,list:{nested:{listitem:"!list-none"},ol:void 0,ul:void 0,listitem:void 0},link:void 0,text:{bold:void 0,italic:"italic",overflowed:void 0,hashtag:void 0,underline:void 0,strikethrough:void 0,underlinestrikethrough:void 0,code:void 0},code:void 0};function kg(t){console.error(t)}const Cg={namespace:"KoenigEditor",theme:yg},Ng=({initialEditorState:t,nodes:e=[..._a],onError:n=kg,imageUploadFunction:r,children:i})=>{const o=S.default.useMemo(()=>Object.assign({},Cg,{nodes:e,editorState:t,onError:n}),[t,e,n]),l=S.default.useRef(null),s=r||function(){console.error("requires imageUploadFunction to be passed to KoenigComposer component, eg <KoenigComposer imageUploadFunction={function} />")};return h(xu.LexicalComposer,{initialConfig:o,children:h(Ar.Provider,{value:{imageUploader:s,editorContainerRef:l},children:i})})};var va={},ut={},Le=w;function Xi(t,e=!0){return t?!1:(t=wa(),e&&(t=t.trim()),t==="")}function wa(){return Le.$getRoot().getTextContent()}function ya(t,e){if(!e||!Xi(t,!1)||(t=Le.$getRoot().getChildren(),e=t.length,1<e))return!1;for(let r=0;r<e;r++){var n=t[r];if(Le.$isElementNode(n)){if(n.__type!=="paragraph"||n.__indent!==0)return!1;n=n.getChildren();let i=n.length;for(let o=0;o<i;o++)if(!Le.$isTextNode(n[r]))return!1}}return!0}ut.$canShowPlaceholder=ya,ut.$canShowPlaceholderCurry=function(t,e){return()=>ya(t,e)},ut.$findTextIntersectionFromCharacters=function(t,e){var n=t.getFirstChild();t=0;e:for(;n!==null;){if(Le.$isElementNode(n)){var r=n.getFirstChild();if(r!==null){n=r;continue}}else if(Le.$isTextNode(n)){if(r=n.getTextContentSize(),t+r>e)return{node:n,offset:e-t};t+=r}if(r=n.getNextSibling(),r!==null)n=r;else{for(n=n.getParent();n!==null;){if(r=n.getNextSibling(),r!==null){n=r;continue e}n=n.getParent()}break}}return null},ut.$isRootTextContentEmpty=Xi,ut.$isRootTextContentEmptyCurry=function(t,e){return()=>Xi(t,e)},ut.$rootTextContent=wa,ut.registerLexicalTextEntity=function(t,e,n,r){let i=l=>{const s=Le.$createTextNode(l.getTextContent());s.setFormat(l.getFormat()),l.replace(s)},o=t.registerNodeTransform(Le.TextNode,l=>{if(l.isSimpleText()){var s=l.getPreviousSibling(),a=l.getTextContent(),c=l;if(Le.$isTextNode(s)){var d=s.getTextContent(),u=e(d+a);if(s instanceof n){if(u===null||s.getLatest().__mode!==0){i(s);return}if(u=u.end-d.length,0<u){c=a.slice(0,u),c=d+c,s.select(),s.setTextContent(c),u===a.length?l.remove():(s=a.slice(u),l.setTextContent(s));return}}else if(u===null||u.start<d.length)return}for(;;){if(l=e(a),a=u=l===null?"":a.slice(l.end),u===""){if(d=c.getNextSibling(),Le.$isTextNode(d)){if(u=c.getTextContent()+d.getTextContent(),u=e(u),u===null){d instanceof n?i(d):d.markDirty();break}else if(u.start!==0)break}}else if(d=e(u),d!==null&&d.start===0)break;if(l===null)break;if(l.start===0&&Le.$isTextNode(s)&&s.isTextEntity())continue;let g;if(l.start===0?[g,c]=c.splitText(l.end):[,g,c]=c.splitText(l.start,l.end),l=r(g),g.replace(l),c==null)break}}});return t=t.registerNodeTransform(n,l=>{var s=l.getTextContent();const a=e(s);a===null||a.start!==0?i(l):s.length>a.end?l.splitText(a.end):(s=l.getPreviousSibling(),Le.$isTextNode(s)&&s.isTextEntity()&&(i(s),i(l)),s=l.getNextSibling(),Le.$isTextNode(s)&&s.isTextEntity()&&(i(s),l instanceof n&&i(l)))}),[o,t]};var Eg=ut,ka={},Lr=w;ka.registerDragonSupport=function(t){let e=window.location.origin,n=r=>{if(r.origin===e){var i=t.getRootElement();if(document.activeElement===i&&(i=r.data,typeof i=="string")){try{var o=JSON.parse(i)}catch{return}if(o&&o.protocol==="nuanria_messaging"&&o.type==="request"&&(o=o.payload)&&o.functionId==="makeChanges"&&(o=o.args)){const[l,s,a,c,d]=o;t.update(()=>{const u=Lr.$getSelection();if(Lr.$isRangeSelection(u)){var g=u.anchor;let m=g.getNode(),f=0,_=0;Lr.$isTextNode(m)&&0<=l&&0<=s&&(f=l,_=l+s,u.setTextNodeRange(m,f,m,_)),(f!==_||a!=="")&&(u.insertRawText(a),m=g.getNode()),Lr.$isTextNode(m)&&(f=c,_=c+d,g=m.getTextContentSize(),f=f>g?g:f,_=_>g?g:_,u.setTextNodeRange(m,f,m,_)),r.stopImmediatePropagation()}})}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}};var Tg=ka,Sg=ie,We=S.default,bg=Eg,Ca=me,Na=Vc.default,Rg=Tg,Og=nt,qi=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?We.useLayoutEffect:We.useEffect;function Ea(t){return t.getEditorState().read(bg.$canShowPlaceholderCurry(t.isComposing(),t.isEditable()))}function $g(t){let[e,n]=We.useState(()=>Ea(t));return qi(()=>{function r(){let i=Ea(t);n(i)}return r(),Ca.mergeRegister(t.registerUpdateListener(()=>{r()}),t.registerEditableListener(()=>{r()}))},[t]),e}function Mg(t,e){let[n,r]=We.useState(()=>t.getDecorators());return qi(()=>t.registerDecoratorListener(i=>{Na.flushSync(()=>{r(i)})}),[t]),We.useEffect(()=>{r(t.getDecorators())},[t]),We.useMemo(()=>{let i=[],o=Object.keys(n);for(let s=0;s<o.length;s++){var l=o[s];let a=We.createElement(e,{onError:c=>t._onError(c)},We.createElement(We.Suspense,{fallback:null},n[l]));l=t.getElementByKey(l),l!==null&&i.push(Na.createPortal(a,l))}return i},[e,n,t])}function Ag(t){qi(()=>Ca.mergeRegister(Og.registerRichText(t),Rg.registerDragonSupport(t)),[t])}va.RichTextPlugin=function({contentEditable:t,placeholder:e,ErrorBoundary:n}){let[r]=Sg.useLexicalComposerContext(),i=$g(r);return n=Mg(r,n),Ag(r),We.createElement(We.Fragment,null,t,i&&e,n)};var Dg=va,Lg=wd(Sd).jsx,Ir=S.default;function Qi(t,e){return Qi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Qi(t,e)}function Ig(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Qi(t,e)}function Pg(t,e){return t===void 0&&(t=[]),e===void 0&&(e=[]),t.length!==e.length||t.some(function(n,r){return!Object.is(n,e[r])})}var Ta={error:null},Fg=function(t){function e(){for(var r,i=arguments.length,o=Array(i),l=0;l<i;l++)o[l]=arguments[l];return r=t.call.apply(t,[this].concat(o))||this,r.state=Ta,r.resetErrorBoundary=function(){for(var s,a=arguments.length,c=Array(a),d=0;d<a;d++)c[d]=arguments[d];r.props.onReset==null||(s=r.props).onReset.apply(s,c),r.reset()},r}Ig(e,t),e.getDerivedStateFromError=function(r){return{error:r}};var n=e.prototype;return n.reset=function(){this.setState(Ta)},n.componentDidCatch=function(r,i){var o,l;(o=(l=this.props).onError)==null||o.call(l,r,i)},n.componentDidUpdate=function(r,i){var o=this.props.resetKeys;if(this.state.error!==null&&i.error!==null&&Pg(r.resetKeys,o)){var l,s;(l=(s=this.props).onResetKeysChange)==null||l.call(s,r.resetKeys,o),this.reset()}},n.render=function(){var r=this.state.error,i=this.props,o=i.fallbackRender,l=i.FallbackComponent;if(i=i.fallback,r!==null){if(r={error:r,resetErrorBoundary:this.resetErrorBoundary},Ir.isValidElement(i))return i;if(typeof o=="function")return o(r);if(l)return Ir.createElement(l,r);throw Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},e}(Ir.Component),zg=function({children:t,onError:e}){return Ir.createElement(Fg,{fallback:Lg("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:e},t)},Bg=zg,Sa={},Hg=ie,Kn=S.default,Kg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?Kn.useLayoutEffect:Kn.useEffect;Sa.ContentEditable=function({ariaActiveDescendantID:t,ariaAutoComplete:e,ariaControls:n,ariaDescribedBy:r,ariaExpanded:i,ariaLabel:o,ariaLabelledBy:l,ariaMultiline:s,ariaOwneeID:a,ariaRequired:c,autoCapitalize:d,autoComplete:u,autoCorrect:g,className:m,id:f,role:_="textbox",spellCheck:C=!0,style:E,tabIndex:p,testid:v}){let[T]=Hg.useLexicalComposerContext(),[N,k]=Kn.useState(!1),R=Kn.useCallback(I=>{T.setRootElement(I)},[T]);return Kg(()=>(k(T.isEditable()),T.registerEditableListener(I=>{k(I)})),[T]),Kn.createElement("div",{"aria-activedescendant":N?t:null,"aria-autocomplete":N?e:null,"aria-controls":N?n:null,"aria-describedby":r,"aria-expanded":N&&_==="combobox"?!!i:null,"aria-label":o,"aria-labelledby":l,"aria-multiline":s,"aria-owns":N?a:null,"aria-required":c,autoCapitalize:d!==void 0?String(d):void 0,autoComplete:u,autoCorrect:g!==void 0?String(g):void 0,className:m,contentEditable:N,"data-testid":v,id:f,ref:R,role:N?_:void 0,spellCheck:C,style:E,tabIndex:p})};var Wg=Sa,eo={},to={},Ug=me,Q=w;function jg(t,e,n,r,i){if(t===null||n.size===0&&r.size===0&&!i)return 0;var o=e._selection,l=t._selection;if(i)return 1;if(!(Q.$isRangeSelection(o)&&Q.$isRangeSelection(l)&&l.isCollapsed()&&o.isCollapsed()))return 0;i=e._nodeMap;let s=[];for(let a of n)n=i.get(a),n!==void 0&&s.push(n);for(let[a,c]of r)c&&(r=i.get(a),r===void 0||Q.$isRootNode(r)||s.push(r));return s.length===0?0:1<s.length?(r=e._nodeMap,e=r.get(o.anchor.key),l=r.get(l.anchor.key),e&&l&&!t._nodeMap.has(e.__key)&&Q.$isTextNode(e)&&e.__text.length===1&&o.anchor.offset===1?2:0):(e=s[0],t=t._nodeMap.get(e.__key),!Q.$isTextNode(t)||!Q.$isTextNode(e)||t.__mode!==e.__mode||(t=t.__text,e=e.__text,t===e)||(o=o.anchor,l=l.anchor,o.key!==l.key||o.type!=="text")?0:(o=o.offset,l=l.offset,t=e.length-t.length,t===1&&l===o-1?2:t===-1&&l===o+1?3:t===-1&&l===o?4:0))}function Yg(t,e){let n=Date.now(),r=0;return(i,o,l,s,a,c)=>{let d=Date.now();if(c.has("historic"))return r=0,n=d,2;let u=jg(i,o,s,a,t.isComposing()),g=(()=>{var m=l===null||l.editor===t,f=c.has("history-push");if(!f&&m&&c.has("history-merge"))return 0;if(i===null)return 1;const _=o._selection,C=i._selection;return 0<s.size||0<a.size?f===!1&&u!==0&&u===r&&d<n+e&&m||s.size===1&&(f=Array.from(s)[0],m=i._nodeMap.get(f),f=o._nodeMap.get(f),m=Q.$isTextNode(m)&&Q.$isTextNode(f)?m.__type===f.__type&&m.__text===f.__text&&m.__mode===f.__mode&&m.__detail===f.__detail&&m.__style===f.__style&&m.__format===f.__format&&m.__parent===f.__parent:!1,m)?0:1:C===null&&_!==null?0:2})();return n=d,r=u,g}}to.createEmptyHistoryState=function(){return{current:null,redoStack:[],undoStack:[]}},to.registerHistory=function(t,e,n){let r=Yg(t,n);n=({editorState:l,prevEditorState:s,dirtyLeaves:a,dirtyElements:c,tags:d})=>{const u=e.current,g=e.redoStack,m=e.undoStack,f=u===null?null:u.editorState;if(u===null||l!==f){if(a=r(s,l,u,a,c,d),a===1)g.length!==0&&(e.redoStack=[]),u!==null&&(m.push({...u,undoSelection:s.read(Q.$getSelection)}),t.dispatchCommand(Q.CAN_UNDO_COMMAND,!0));else if(a===2)return;e.current={editor:t,editorState:l}}};let i=Ug.mergeRegister(t.registerCommand(Q.UNDO_COMMAND,()=>{let l=e.redoStack,s=e.undoStack;if(s.length!==0){let a=e.current,c=s.pop();a!==null&&(l.push(a),t.dispatchCommand(Q.CAN_REDO_COMMAND,!0)),s.length===0&&t.dispatchCommand(Q.CAN_UNDO_COMMAND,!1),e.current=c||null,c&&c.editor.setEditorState(c.editorState.clone(c.undoSelection),{tag:"historic"})}return!0},Q.COMMAND_PRIORITY_EDITOR),t.registerCommand(Q.REDO_COMMAND,()=>{let l=e.redoStack;var s=e.undoStack;if(l.length!==0){let a=e.current;a!==null&&(s.push(a),t.dispatchCommand(Q.CAN_UNDO_COMMAND,!0)),s=l.pop(),l.length===0&&t.dispatchCommand(Q.CAN_REDO_COMMAND,!1),e.current=s||null,s&&s.editor.setEditorState(s.editorState,{tag:"historic"})}return!0},Q.COMMAND_PRIORITY_EDITOR),t.registerCommand(Q.CLEAR_EDITOR_COMMAND,()=>(e.undoStack=[],e.redoStack=[],e.current=null,!1),Q.COMMAND_PRIORITY_EDITOR),t.registerCommand(Q.CLEAR_HISTORY_COMMAND,()=>(e.undoStack=[],e.redoStack=[],e.current=null,t.dispatchCommand(Q.CAN_REDO_COMMAND,!1),t.dispatchCommand(Q.CAN_UNDO_COMMAND,!1),!0),Q.COMMAND_PRIORITY_EDITOR),t.registerUpdateListener(n)),o=t.registerUpdateListener(n);return()=>{i(),o()}};var Vg=to,Gg=ie,no=Vg,ba=S.default;function Zg(t,e,n=1e3){let r=ba.useMemo(()=>e||no.createEmptyHistoryState(),[e]);ba.useEffect(()=>no.registerHistory(t,r,n),[n,t,r])}eo.createEmptyHistoryState=no.createEmptyHistoryState,eo.HistoryPlugin=function({externalHistoryState:t}){let[e]=Gg.useLexicalComposerContext();return Zg(e,t),null};var Jg=eo,Ra={},Xg=ie,Oa=S.default,qg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?Oa.useLayoutEffect:Oa.useEffect;Ra.OnChangePlugin=function({ignoreHistoryMergeTagChange:t=!0,ignoreSelectionChange:e=!1,onChange:n}){let[r]=Xg.useLexicalComposerContext();return qg(()=>{if(n)return r.registerUpdateListener(({editorState:i,dirtyElements:o,dirtyLeaves:l,prevEditorState:s,tags:a})=>{e&&o.size===0&&l.size===0||t&&a.has("history-merge")||s.isEmpty()||n(i,r)})},[r,t,e,n]),null};var Qg=Ra,$a={},Ue=Qe,e1=ie,Ma=S.default,t1=me,it=w;function n1(t){Ma.useEffect(()=>t1.mergeRegister(t.registerCommand(it.INDENT_CONTENT_COMMAND,()=>(Ue.indentList(),!1),it.COMMAND_PRIORITY_LOW),t.registerCommand(it.OUTDENT_CONTENT_COMMAND,()=>(Ue.outdentList(),!1),it.COMMAND_PRIORITY_LOW),t.registerCommand(Ue.INSERT_ORDERED_LIST_COMMAND,()=>(Ue.insertList(t,"number"),!0),it.COMMAND_PRIORITY_LOW),t.registerCommand(Ue.INSERT_UNORDERED_LIST_COMMAND,()=>(Ue.insertList(t,"bullet"),!0),it.COMMAND_PRIORITY_LOW),t.registerCommand(Ue.REMOVE_LIST_COMMAND,()=>(Ue.removeList(t),!0),it.COMMAND_PRIORITY_LOW),t.registerCommand(it.INSERT_PARAGRAPH_COMMAND,()=>!!Ue.$handleListInsertParagraph(),it.COMMAND_PRIORITY_LOW)),[t])}$a.ListPlugin=function(){let[t]=e1.useLexicalComposerContext();return Ma.useEffect(()=>{if(!t.hasNodes([Ue.ListNode,Ue.ListItemNode]))throw Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[t]),n1(t),null};var r1=$a;const Aa=10;function Da(t){var i;let[e]=t.getNodes();w.$isTextNode(e)&&(e=e.getParent());const n=e.getIndexWithinParent(),r=(i=e.getTopLevelElement())==null?void 0:i.getIndexWithinParent();return n===0&&r===0&&t.anchor.offset===0&&t.focus.offset===0}function Ze(t){const e=w.$createNodeSelection();e.add(t.getKey()),w.$setSelection(e)}function La(t){t.nodeType===Node.TEXT_NODE&&(t=t.parentNode);const e="[data-lexical-editor] > *";return t.closest(e)}function i1({editor:t,containerElem:e,cursorDidExitAtTop:n}){return S.default.useEffect(()=>{const r=i=>{e.current.contains(i.target)||t.update(()=>{const o=w.$getSelection();w.$isNodeSelection(o)&&w.$setSelection(null)})};return window.addEventListener("mousedown",r),()=>{window.removeEventListener("mousedown",r)}},[t,e]),S.default.useEffect(()=>me.mergeRegister(t.registerCommand(w.KEY_ARROW_UP_COMMAND,r=>{const i=w.$getSelection();if(w.$isNodeSelection(i)){const l=i.getNodes()[0].getPreviousSibling();if(!l)return i.clear(),n==null||n(),!0;if(w.$isDecoratorNode(l))return Ze(l),!0}if(w.$isRangeSelection(i)&&i.isCollapsed){const o=i.anchor.getNode().getTopLevelElement(),l=window.getSelection();if(n&&Da(i))return n(),!0;const s=(o==null?void 0:o.getTextContent().trim())===""&&i.anchor.offset===0,a=i.anchor.offset===0&&i.focus.offset===0;if(s||a){const c=o.getPreviousSibling();if(w.$isDecoratorNode(c))return Ze(c),!0}else{const d=l.getRangeAt(0).cloneRange().getClientRects();if(d.length>0){const u=d[1]||d[0],m=La(l.anchorNode).getBoundingClientRect();if(Math.abs(u.top-m.top)<=Aa){const _=o.getPreviousSibling();if(w.$isDecoratorNode(_))return Ze(_),!0}}}}return!1},w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_ARROW_DOWN_COMMAND,()=>{const r=w.$getSelection();if(w.$isNodeSelection(r)){const o=r.getNodes()[0].getNextSibling();if(w.$isDecoratorNode(o))return Ze(o),!0}if(w.$isRangeSelection(r)&&r.isCollapsed){const i=r.anchor.getNode().getTopLevelElement(),o=window.getSelection(),l=La(o.anchorNode),s=(i==null?void 0:i.getTextContent().trim())===""&&r.anchor.offset===0,a=o.rangeCount!==0&&o.anchorNode===l&&o.anchorOffset===l.children.length-1&&o.focusOffset===l.children.length-1;if(s||a){const c=i.getNextSibling();if(w.$isDecoratorNode(c))return Ze(c),!0}else{const d=o.getRangeAt(0).cloneRange().getClientRects();if(d.length>0){const u=d[0],g=l.getBoundingClientRect();if(Math.abs(u.bottom-g.bottom)<Aa){const m=i.getNextSibling();if(w.$isDecoratorNode(m))return Ze(m),!0}}}}return!1},w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_ARROW_LEFT_COMMAND,r=>{const i=w.$getSelection();if(n){if(w.$isNodeSelection(i)&&!i.getNodes()[0].getPreviousSibling())return r.preventDefault(),i.clear(),n==null||n(),!0;if(i.isCollapsed&&Da(i))return r.preventDefault(),n(),!0}if(!w.$isNodeSelection(i))return!1;const s=i.getNodes()[0].getTopLevelElement().getPreviousSibling();return w.$isDecoratorNode(s)?(r.preventDefault(),Ze(s),!0):!1},w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_ARROW_RIGHT_COMMAND,r=>{const i=w.$getSelection();if(!w.$isNodeSelection(i))return!1;const o=i.getNodes(),a=o[o.length-1].getTopLevelElement().getNextSibling();return w.$isDecoratorNode(a)?(r.preventDefault(),Ze(a),!0):!1},w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_BACKSPACE_COMMAND,r=>{const i=w.$getSelection();if(w.$isNodeSelection(i))return!1;if(w.$isRangeSelection(i)&&i.isCollapsed){const l=i.anchor.getNode(),s=l.getTopLevelElement(),a=s.getPreviousSibling(),c=i.anchor.offset===0&&i.focus.offset===0;if(c&&Qe.$isListItemNode(l)&&l.getIndent()===0&&l.isEmpty())return r.preventDefault(),t.dispatchCommand(w.INSERT_PARAGRAPH_COMMAND),!0;if(w.$isParagraphNode(l)&&l.isEmpty()&&w.$isDecoratorNode(a))return s.remove(),Ze(a),!0;if(c&&Qe.$isListItemNode(l.getParent())){const d=l.getParent();if(d.getIndent()===0){r.preventDefault();const u=w.$createParagraphNode();return u.append(...d.getChildren()),d.replace(u),!0}}if(c&&w.$isDecoratorNode(a))return r.preventDefault(),a.remove(),!0}return!1},w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_DELETE_COMMAND,r=>{const i=w.$getSelection();if(w.$isNodeSelection(i))return!1;if(w.$isRangeSelection(i)&&i.isCollapsed){const o=i.anchor,l=o.getNode(),s=l.getTopLevelElement(),a=s.getNextSibling();if((s==null?void 0:s.getTextContent().trim())===""&&i.anchor.offset===0&&w.$isDecoratorNode(a))return r.preventDefault(),s.remove(),Ze(a),!0;if((o.type==="element"&&w.$isElementNode(l)&&o.offset===l.getChildrenSize()||o.type==="text"&&o.offset===l.getTextContentSize())&&w.$isDecoratorNode(a))return r.preventDefault(),a.remove(),!0}return!1},w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_TAB_COMMAND,r=>{if(r.shiftKey){const i=w.$getSelection();if(w.$isNodeSelection(i))return r.preventDefault(),i.clear(),n(),!0;let o;if(i.isCollapsed){const s=i.anchor.getNode();o=w.$isTextNode(s)?[s.getParent()]:[s]}else o=i.getNodes();return o.some(s=>s.getIndent&&s.getIndent()>0)?!1:(r.preventDefault(),n(),!0)}},w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.PASTE_COMMAND,r=>{var a;const i=(a=r==null?void 0:r.clipboardData)==null?void 0:a.getData("text"),o=i==null?void 0:i.match(/^(https?:\/\/[^\s]+)$/),l=w.$getSelection(),s=l.getTextContent();if(o&&s.length>0){const c=o[1];if(w.$isRangeSelection(l)){const d=l.extract()[0],u=Wi.$createLinkNode(c),g=w.$createTextNode(s);g.setFormat(d.getFormat()),u.append(g),d.replace(u)}return!0}},w.COMMAND_PRIORITY_HIGH))),null}function Ia({containerElem:t=document.querySelector(".koenig-editor"),cursorDidExitAtTop:e}){const[n]=ie.useLexicalComposerContext();return i1({editor:n,containerElem:t,cursorDidExitAtTop:e})}var te={},le={},Pa={exports:{}};(function(t){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
30
+ `),i=a.length,s=i-n;let c=a.slice(0,s);if(!F.$isTextNode(r)||n>=i)s=r.getParent(),r.remove(),s!=null&&s.getChildrenSize()===0&&s.remove(),n-=i+l,r=o;else{let d=r.getKey();o=t.getEditorState().read(()=>{const u=F.$getNodeByKey(d);return F.$isTextNode(u)&&u.isSimpleText()?u.getTextContent():null}),o!==null&&o!==a?(n=F.$getPreviousSelection(),i=r,r.isSimpleText()?r.setTextContent(o):(i=F.$createTextNode(o),r.replace(i)),F.$isRangeSelection(n)&&n.isCollapsed()&&(n=n.anchor.offset,i.select(n,n))):r.isSimpleText()?(o=e.key===d,l=e.offset,l<n&&(l=i),n=o?l-n:0,i=o?l:s,o&&n===0?([n]=r.splitText(n,i),n.remove()):([,n]=r.splitText(n,i),n.remove())):(n=F.$createTextNode(c),r.replace(n)),n=0}}};var Ze=de,Ws=Ze,Jt=v;function Us(t,e,n,r=null){let i=r!=null?e.isSelected():!0,o=Jt.$isElementNode(e)&&e.excludeFromCopy("html");var l=e;r!==null&&(l=Ws.$cloneWithProperties(e),l=Jt.$isTextNode(l)&&r!=null?Ws.$sliceSelectedTextNodeContent(r,l):l);let s=Jt.$isElementNode(l)?l.getChildren():[],{element:a,after:c}=l.exportDOM(t);if(!a)return!1;let d=new DocumentFragment;for(let u=0;u<s.length;u++){let g=s[u],m=Us(t,g,d,r);!i&&Jt.$isElementNode(e)&&m&&e.extractWithChild(g,r,"html")&&(i=!0)}return i&&!o?(a.append(d),n.append(a),c&&(t=c.call(l,a))&&a.replaceWith(t)):n.append(d),i}let js=new Set(["STYLE"]);function Ys(t,e,n=new Map,r,i=!1){let o=[];if(js.has(t.nodeName))return o;let l=null;var{nodeName:s}=t,a=e._htmlConversions.get(s.toLowerCase());if(s=null,a!==void 0)for(c of a)a=c(t),a!==null&&(s===null||s.priority<a.priority)&&(s=a);var c=(c=s!==null?s.conversion:null)?c(t,void 0,i):null;if(s=null,c!==null){if(s=c.after,l=c.node,l!==null){for(var[,d]of n)if(l=d(l,r),!l)break;l&&o.push(l)}c.forChild!=null&&n.set(t.nodeName,c.forChild)}for(t=t.childNodes,r=[],d=0;d<t.length;d++)r.push(...Ys(t[d],e,new Map(n),l,i||(c&&c.preformatted)===!0));return s!=null&&(r=s(r)),l==null?o=o.concat(r):Jt.$isElementNode(l)&&l.append(...r),o}Ii.$generateHtmlFromNodes=function(t,e){if(typeof document>"u"||typeof window>"u")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"),r=Jt.$getRoot().getChildren();for(let i=0;i<r.length;i++)Us(t,r[i],n,e);return n.innerHTML},Ii.$generateNodesFromDOM=function(t,e){let n=[];e=e.body?Array.from(e.body.childNodes):[];let r=e.length;for(let o=0;o<r;o++){var i=e[o];js.has(i.nodeName)||(i=Ys(i,t),i!==null&&(n=n.concat(i)))}return n};var Ru=Ii,Vs=Ru,Gs=Qe,Fi=Ze,In=me,z=v;function tt(t){throw Error(`Minified Lexical error #${t}; visit https://lexical.dev/docs/error?code=${t} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function Zs(t){let e=z.$getSelection();if(e==null)throw Error("Expected valid LexicalSelection");return z.$isRangeSelection(e)&&e.isCollapsed()||e.getNodes().length===0?"":Vs.$generateHtmlFromNodes(t,e)}function Js(t){let e=z.$getSelection();if(e==null)throw Error("Expected valid LexicalSelection");return z.$isRangeSelection(e)&&e.isCollapsed()||e.getNodes().length===0?null:JSON.stringify(qs(t,e))}function zi(t,e,n){(z.DEPRECATED_$isGridSelection(n)||In.$findMatchingParent(n.anchor.getNode(),r=>z.DEPRECATED_$isGridCellNode(r))!==null&&In.$findMatchingParent(n.focus.getNode(),r=>z.DEPRECATED_$isGridCellNode(r))!==null)&&e.length===1&&z.DEPRECATED_$isGridNode(e[0])?$u(e,n,!1,t):Ou(e,n)}function Ou(t,e){let n=[],r=null,i=null;for(let o=0;o<t.length;o++){let l=t[o];if(Gs.$isListItemNode(l)){i==null&&(i=Gs.$createListNode("bullet"),n.push(i)),i.append(l);continue}else i!=null&&(i=null);let s=z.$isLineBreakNode(l);if(s||z.$isDecoratorNode(l)&&l.isInline()||z.$isElementNode(l)&&l.isInline()||z.$isTextNode(l)){if(r===null&&(r=z.$createParagraphNode(),n.push(r),s))continue;r!==null&&r.append(l)}else n.push(l),r=null}z.$isRangeSelection(e)?e.insertNodes(n):z.DEPRECATED_$isGridSelection(e)&&(t=e.anchor.getNode(),z.DEPRECATED_$isGridCellNode(t)||tt(41),t.append(...n))}function $u(t,e,n,r){t.length===1&&z.DEPRECATED_$isGridNode(t[0])||tt(42);var i=t[0];t=i.getChildren(),n=i.getFirstChildOrThrow().getChildrenSize();var o=i.getChildrenSize(),l=In.$findMatchingParent(e.anchor.getNode(),m=>z.DEPRECATED_$isGridCellNode(m));e=(i=l&&In.$findMatchingParent(l,m=>z.DEPRECATED_$isGridRowNode(m)))&&In.$findMatchingParent(i,m=>z.DEPRECATED_$isGridNode(m)),z.DEPRECATED_$isGridCellNode(l)&&z.DEPRECATED_$isGridRowNode(i)&&z.DEPRECATED_$isGridNode(e)||tt(43);var s=i.getIndexWithinParent(),a=Math.min(e.getChildrenSize()-1,s+o-1);o=l.getIndexWithinParent(),l=Math.min(i.getChildrenSize()-1,o+n-1),n=Math.min(o,l),i=Math.min(s,a),o=Math.max(o,l),s=Math.max(s,a),a=e.getChildren(),l=0;let c,d;for(let m=i;m<=s;m++){var u=a[m];z.DEPRECATED_$isGridRowNode(u)||tt(24);var g=t[l];z.DEPRECATED_$isGridRowNode(g)||tt(24),u=u.getChildren(),g=g.getChildren();let f=0;for(let _=n;_<=o;_++){let C=u[_];z.DEPRECATED_$isGridCellNode(C)||tt(25);let E=g[f];z.DEPRECATED_$isGridCellNode(E)||tt(25),m===i&&_===n?c=C.getKey():m===s&&_===o&&(d=C.getKey());let p=C.getChildren();E.getChildren().forEach(w=>{z.$isTextNode(w)&&z.$createParagraphNode().append(w),C.append(w)}),p.forEach(w=>w.remove()),f++}l++}c&&d&&(t=z.DEPRECATED_$createGridSelection(),t.set(e.getKey(),c,d),z.$setSelection(t),r.dispatchCommand(z.SELECTION_CHANGE_COMMAND,void 0))}function Xs(t,e,n,r=[]){let i=e!=null?n.isSelected():!0,o=z.$isElementNode(n)&&n.excludeFromCopy("html");var l=n;if(e!==null){var s=Fi.$cloneWithProperties(n);l=s=z.$isTextNode(s)&&e!=null?Fi.$sliceSelectedTextNodeContent(e,s):s}let a=z.$isElementNode(l)?l.getChildren():[];var c=l;s=c.exportJSON(),s.type!==c.constructor.getType()&&tt(58);var d=s.children;for(z.$isElementNode(c)&&(Array.isArray(d)||tt(59)),z.$isTextNode(l)&&(s.text=l.__text),l=0;l<a.length;l++)c=a[l],d=Xs(t,e,c,s.children),!i&&z.$isElementNode(n)&&d&&n.extractWithChild(c,e,"clone")&&(i=!0);if(i&&!o)r.push(s);else if(Array.isArray(s.children))for(t=0;t<s.children.length;t++)r.push(s.children[t]);return i}function qs(t,e){let n=[],r=z.$getRoot().getChildren();for(let i=0;i<r.length;i++)Xs(t,e,r[i],n);return{namespace:t._config.namespace,nodes:n}}function Qs(t){let e=[];for(let n=0;n<t.length;n++){let r=z.$parseSerializedNode(t[n]);z.$isTextNode(r)&&Fi.$addNodeStyle(r),e.push(r)}return e}let Xt=null;function ea(t,e){if(e.preventDefault(),e=e.clipboardData,e===null)return!1;let n=z.$getSelection(),r=Zs(t);t=Js(t);let i="";return n!==null&&(i=n.getTextContent()),r!==null&&e.setData("text/html",r),t!==null&&e.setData("application/x-lexical-editor",t),e.setData("text/plain",i),!0}et.$generateJSONFromSelectedNodes=qs,et.$generateNodesFromSerializedNodes=Qs,et.$getHtmlContent=Zs,et.$getLexicalContent=Js,et.$insertDataTransferForPlainText=function(t,e){t=t.getData("text/plain"),t!=null&&e.insertRawText(t)},et.$insertDataTransferForRichText=function(t,e,n){var r=t.getData("application/x-lexical-editor");if(r)try{let o=JSON.parse(r);if(o.namespace===n._config.namespace&&Array.isArray(o.nodes)){let l=Qs(o.nodes);return zi(n,l,e)}}catch{}if(r=t.getData("text/html"))try{var i=new DOMParser().parseFromString(r,"text/html");let o=Vs.$generateNodesFromDOM(n,i);return zi(n,o,e)}catch{}if(t=t.getData("text/plain"),t!=null)if(z.$isRangeSelection(e))for(t=t.split(/\r?\n/),n=t.length,i=0;i<n;i++)e.insertText(t[i]),i<n-1&&e.insertParagraph();else e.insertRawText(t)},et.$insertGeneratedNodes=zi,et.copyToClipboard__EXPERIMENTAL=async function(t,e){if(Xt!==null)return!1;if(e!==null)return new Promise(o=>{t.update(()=>{o(ea(t,e))})});var n=t.getRootElement();let r=document.getSelection();if(n===null||r===null)return!1;let i=document.createElement("span");return i.style.cssText="position: fixed; top: -1000px;",i.append(document.createTextNode("#")),n.append(i),n=new Range,n.setStart(i,0),n.setEnd(i,1),r.removeAllRanges(),r.addRange(n),new Promise(o=>{let l=t.registerCommand(z.COPY_COMMAND,s=>(s instanceof ClipboardEvent&&(l(),Xt!==null&&(window.clearTimeout(Xt),Xt=null),o(ea(t,s))),!0),z.COMMAND_PRIORITY_CRITICAL);Xt=window.setTimeout(()=>{l(),Xt=null,o(!1)},50),document.execCommand("copy"),i.remove()})};var Mu=et,Er=Mu,Tr=Ze,qt=me,y=v;let Qt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Au=Qt&&"documentMode"in document?document.documentMode:null;Qt&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Qt&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);let Du=Qt&&"InputEvent"in window&&!Au?"getTargetRanges"in new window.InputEvent("input"):!1,Lu=Qt&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Iu=Qt&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Bi=y.createCommand("DRAG_DROP_PASTE_FILE");class Pn extends y.ElementNode{static getType(){return"quote"}static clone(e){return new Pn(e.__key)}constructor(e){super(e)}createDOM(e){let n=document.createElement("blockquote");return qt.addClassNamesToElement(n,e.theme.quote),n}updateDOM(){return!1}static importDOM(){return{blockquote:()=>({conversion:Pu,priority:0})}}static importJSON(e){let n=Hi();return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),type:"quote"}}insertNewAfter(){let e=y.$createParagraphNode(),n=this.getDirection();return e.setDirection(n),this.insertAfter(e),e}collapseAtStart(){let e=y.$createParagraphNode();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}}function Hi(){return y.$applyNodeReplacement(new Pn)}class Fn extends y.ElementNode{static getType(){return"heading"}static clone(e){return new Fn(e.__tag,e.__key)}constructor(e,n){super(n),this.__tag=e}getTag(){return this.__tag}createDOM(e){let n=this.__tag,r=document.createElement(n);return e=e.theme.heading,e!==void 0&&qt.addClassNamesToElement(r,e[n]),r}updateDOM(){return!1}static importDOM(){return{h1:()=>({conversion:en,priority:0}),h2:()=>({conversion:en,priority:0}),h3:()=>({conversion:en,priority:0}),h4:()=>({conversion:en,priority:0}),h5:()=>({conversion:en,priority:0}),h6:()=>({conversion:en,priority:0}),p:e=>(e=e.firstChild,e!==null&&ta(e)?{conversion:()=>({node:null}),priority:3}:null),span:e=>ta(e)?{conversion:()=>({node:Sr("h1")}),priority:3}:null}}static importJSON(e){let n=Sr(e.tag);return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),tag:this.getTag(),type:"heading",version:1}}insertNewAfter(){let e=y.$createParagraphNode(),n=this.getDirection();return e.setDirection(n),this.insertAfter(e),e}collapseAtStart(){let e=y.$createParagraphNode();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}extractWithChild(){return!0}}function ta(t){return t.nodeName.toLowerCase()==="span"?t.style.fontSize==="26pt":!1}function en(t){t=t.nodeName.toLowerCase();let e=null;return(t==="h1"||t==="h2"||t==="h3"||t==="h4"||t==="h5"||t==="h6")&&(e=Sr(t)),{node:e}}function Pu(){return{node:Hi()}}function Sr(t){return y.$applyNodeReplacement(new Fn(t))}function Fu(t,e){t.preventDefault(),e.update(()=>{let n=y.$getSelection(),r=t instanceof InputEvent||t instanceof KeyboardEvent?null:t.clipboardData;r!=null&&(y.$isRangeSelection(n)||y.DEPRECATED_$isGridSelection(n))&&Er.$insertDataTransferForRichText(r,n,e)},{tag:"paste"})}async function zu(t,e){await Er.copyToClipboard__EXPERIMENTAL(e,t instanceof ClipboardEvent?t:null),e.update(()=>{let n=y.$getSelection();y.$isRangeSelection(n)?n.removeText():y.$isNodeSelection(n)&&n.getNodes().forEach(r=>r.remove())})}function zn(t){let e=null;if(t instanceof DragEvent?e=t.dataTransfer:t instanceof ClipboardEvent&&(e=t.clipboardData),e===null)return[!1,[],!1];var n=e.types;return t=n.includes("Files"),n=n.includes("text/html")||n.includes("text/plain"),[t,Array.from(e.files),n]}function na(t,e){var n=y.$getSelection();if(y.$isRangeSelection(n)){var r=new Set;n=n.getNodes();for(let i=0;i<n.length;i++){let o=n[i],l=o.getKey();if(r.has(l))continue;let s=qt.$getNearestBlockElementAncestorOrThrow(o),a=s.getKey();s.canInsertTab()?(t(o),r.add(l)):s.canIndent()&&!r.has(a)&&(r.add(a),e(s))}}}function br(t){return t=y.$getNearestNodeFromDOMNode(t),y.$isDecoratorNode(t)}Ge.$createHeadingNode=Sr,Ge.$createQuoteNode=Hi,Ge.$isHeadingNode=function(t){return t instanceof Fn},Ge.$isQuoteNode=function(t){return t instanceof Pn},Ge.DRAG_DROP_PASTE=Bi,Ge.HeadingNode=Fn,Ge.QuoteNode=Pn,Ge.eventFiles=zn,Ge.registerRichText=function(t){return qt.mergeRegister(t.registerCommand(y.CLICK_COMMAND,()=>{const e=y.$getSelection();return y.$isNodeSelection(e)?(e.clear(),!0):!1},0),t.registerCommand(y.DELETE_CHARACTER_COMMAND,e=>{const n=y.$getSelection();return y.$isRangeSelection(n)?(n.deleteCharacter(e),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.DELETE_WORD_COMMAND,e=>{const n=y.$getSelection();return y.$isRangeSelection(n)?(n.deleteWord(e),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.DELETE_LINE_COMMAND,e=>{const n=y.$getSelection();return y.$isRangeSelection(n)?(n.deleteLine(e),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.CONTROLLED_TEXT_INSERTION_COMMAND,e=>{const n=y.$getSelection();if(typeof e=="string")y.$isRangeSelection(n)?n.insertText(e):y.DEPRECATED_$isGridSelection(n);else{if(!y.$isRangeSelection(n)&&!y.DEPRECATED_$isGridSelection(n))return!1;const r=e.dataTransfer;r!=null?Er.$insertDataTransferForRichText(r,n,t):y.$isRangeSelection(n)&&(e=e.data)&&n.insertText(e)}return!0},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.REMOVE_TEXT_COMMAND,()=>{const e=y.$getSelection();return y.$isRangeSelection(e)?(e.removeText(),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.FORMAT_TEXT_COMMAND,e=>{const n=y.$getSelection();return y.$isRangeSelection(n)?(n.formatText(e),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.FORMAT_ELEMENT_COMMAND,e=>{var n=y.$getSelection();if(!y.$isRangeSelection(n)&&!y.$isNodeSelection(n))return!1;n=n.getNodes();for(const r of n)qt.$getNearestBlockElementAncestorOrThrow(r).setFormat(e);return!0},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.INSERT_LINE_BREAK_COMMAND,e=>{const n=y.$getSelection();return y.$isRangeSelection(n)?(n.insertLineBreak(e),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.INSERT_PARAGRAPH_COMMAND,()=>{const e=y.$getSelection();return y.$isRangeSelection(e)?(e.insertParagraph(),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.INDENT_CONTENT_COMMAND,()=>(na(()=>{t.dispatchCommand(y.CONTROLLED_TEXT_INSERTION_COMMAND," ")},e=>{const n=e.getIndent();n!==10&&e.setIndent(n+1)}),!0),y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.OUTDENT_CONTENT_COMMAND,()=>(na(e=>{y.$isTextNode(e)&&(e=e.getTextContent(),e[e.length-1]===" "&&t.dispatchCommand(y.DELETE_CHARACTER_COMMAND,!0))},e=>{const n=e.getIndent();n!==0&&e.setIndent(n-1)}),!0),y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_ARROW_UP_COMMAND,e=>{const n=y.$getSelection();return y.$isNodeSelection(n)&&!br(e.target)&&(e=n.getNodes(),0<e.length)?(e[0].selectPrevious(),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_ARROW_DOWN_COMMAND,()=>{var e=y.$getSelection();return y.$isNodeSelection(e)&&(e=e.getNodes(),0<e.length)?(e[0].selectNext(0,0),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_ARROW_LEFT_COMMAND,e=>{const n=y.$getSelection();if(y.$isNodeSelection(n)){var r=n.getNodes();if(0<r.length)return e.preventDefault(),r[0].selectPrevious(),!0}return y.$isRangeSelection(n)&&Tr.$shouldOverrideDefaultCharacterSelection(n,!0)?(r=e.shiftKey,e.preventDefault(),Tr.$moveCharacter(n,r,!0),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_ARROW_RIGHT_COMMAND,e=>{const n=y.$getSelection();if(y.$isNodeSelection(n)&&!br(e.target)){var r=n.getNodes();if(0<r.length)return e.preventDefault(),r[0].selectNext(0,0),!0}return y.$isRangeSelection(n)?(r=e.shiftKey,Tr.$shouldOverrideDefaultCharacterSelection(n,!1)?(e.preventDefault(),Tr.$moveCharacter(n,r,!1),!0):!1):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_BACKSPACE_COMMAND,e=>{if(br(e.target))return!1;const n=y.$getSelection();if(!y.$isRangeSelection(n))return!1;e.preventDefault(),{anchor:e}=n;const r=e.getNode();return n.isCollapsed()&&e.offset===0&&!y.$isRootNode(r)&&0<qt.$getNearestBlockElementAncestorOrThrow(r).getIndent()?t.dispatchCommand(y.OUTDENT_CONTENT_COMMAND,void 0):t.dispatchCommand(y.DELETE_CHARACTER_COMMAND,!0)},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_DELETE_COMMAND,e=>{if(br(e.target))return!1;const n=y.$getSelection();return y.$isRangeSelection(n)?(e.preventDefault(),t.dispatchCommand(y.DELETE_CHARACTER_COMMAND,!1)):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_ENTER_COMMAND,e=>{const n=y.$getSelection();if(!y.$isRangeSelection(n))return!1;if(e!==null){if((Iu||Lu)&&Du)return!1;if(e.preventDefault(),e.shiftKey)return t.dispatchCommand(y.INSERT_LINE_BREAK_COMMAND,!1)}return t.dispatchCommand(y.INSERT_PARAGRAPH_COMMAND,void 0)},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_TAB_COMMAND,e=>{const n=y.$getSelection();return y.$isRangeSelection(n)?(e.preventDefault(),t.dispatchCommand(e.shiftKey?y.OUTDENT_CONTENT_COMMAND:y.INDENT_CONTENT_COMMAND,void 0)):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_ESCAPE_COMMAND,()=>{const e=y.$getSelection();return y.$isRangeSelection(e)?(t.blur(),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.DROP_COMMAND,e=>{const[,n]=zn(e);if(0<n.length){var r=e.clientX,i=e.clientY;if(r=typeof document.caretRangeFromPoint<"u"?document.caretRangeFromPoint(r,i):document.caretPositionFromPoint!=="undefined"?document.caretPositionFromPoint(r,i):null,r!==null){const{startOffset:o,endOffset:l,startContainer:s,endContainer:a}=r;if(r=y.$getNearestNodeFromDOMNode(s),i=y.$getNearestNodeFromDOMNode(a),r!==null&&i!==null){const c=y.$createRangeSelection();y.$isTextNode(r)?c.anchor.set(r.getKey(),o,"text"):c.anchor.set(r.getParentOrThrow().getKey(),r.getIndexWithinParent()+1,"element"),y.$isTextNode(i)?c.focus.set(i.getKey(),l,"text"):c.focus.set(i.getParentOrThrow().getKey(),i.getIndexWithinParent()+1,"element"),r=y.$normalizeSelection__EXPERIMENTAL(c),y.$setSelection(r)}t.dispatchCommand(Bi,n)}return e.preventDefault(),!0}return e=y.$getSelection(),!!y.$isRangeSelection(e)},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.DRAGSTART_COMMAND,e=>{const[n]=zn(e),r=y.$getSelection();return n&&!y.$isRangeSelection(r)?!1:(e.preventDefault(),!0)},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.DRAGOVER_COMMAND,e=>{const[n]=zn(e),r=y.$getSelection();return n&&!y.$isRangeSelection(r)?!1:(e.preventDefault(),!0)},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.COPY_COMMAND,e=>(Er.copyToClipboard__EXPERIMENTAL(t,e instanceof ClipboardEvent?e:null),!0),y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.CUT_COMMAND,e=>(zu(e,t),!0),y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.PASTE_COMMAND,e=>{const[,n,r]=zn(e);if(0<n.length&&!r)return t.dispatchCommand(Bi,n),!0;const i=y.$getSelection();return y.$isRangeSelection(i)||y.DEPRECATED_$isGridSelection(i)?(Fu(e,t),!0):!1},y.COMMAND_PRIORITY_EDITOR))};var nt=Ge,rt={},Bu=me,dt=v;class tn extends dt.ElementNode{static getType(){return"link"}static clone(e){return new tn(e.__url,{rel:e.__rel,target:e.__target},e.__key)}constructor(e,n={},r){super(r);let{target:i=null,rel:o=null}=n;this.__url=e,this.__target=i,this.__rel=o}createDOM(e){let n=document.createElement("a");return n.href=this.__url,this.__target!==null&&(n.target=this.__target),this.__rel!==null&&(n.rel=this.__rel),Bu.addClassNamesToElement(n,e.theme.link),n}updateDOM(e,n){let r=this.__url,i=this.__target,o=this.__rel;return r!==e.__url&&(n.href=r),i!==e.__target&&(i?n.target=i:n.removeAttribute("target")),o!==e.__rel&&(o?n.rel=o:n.removeAttribute("rel")),!1}static importDOM(){return{a:()=>({conversion:Hu,priority:1})}}static importJSON(e){let n=Bn(e.url,{rel:e.rel,target:e.target});return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),type:"link",url:this.getURL(),version:1}}getURL(){return this.getLatest().__url}setURL(e){this.getWritable().__url=e}getTarget(){return this.getLatest().__target}setTarget(e){this.getWritable().__target=e}getRel(){return this.getLatest().__rel}setRel(e){this.getWritable().__rel=e}insertNewAfter(e){if(e=this.getParentOrThrow().insertNewAfter(e),dt.$isElementNode(e)){let n=Bn(this.__url,{rel:this.__rel,target:this.__target});return e.append(n),n}return null}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,n){if(!dt.$isRangeSelection(n))return!1;e=n.anchor.getNode();let r=n.focus.getNode();return this.isParentOf(e)&&this.isParentOf(r)&&0<n.getTextContent().length}}function Hu(t){let e=null;if(t instanceof HTMLAnchorElement){let n=t.textContent;n!==null&&n!==""&&(e=Bn(t.getAttribute("href")||"",{rel:t.getAttribute("rel"),target:t.getAttribute("target")}))}return{node:e}}function Bn(t,e){return new tn(t,e)}function Et(t){return t instanceof tn}class Hn extends tn{static getType(){return"autolink"}static clone(e){return new Hn(e.__url,{rel:e.__rel,target:e.__target},e.__key)}static importJSON(e){let n=Ki(e.url,{rel:e.rel,target:e.target});return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),type:"autolink",version:1}}insertNewAfter(e){if(e=this.getParentOrThrow().insertNewAfter(e),dt.$isElementNode(e)){let n=Ki(this.__url,{rel:this._rel,target:this.__target});return e.append(n),n}return null}}function Ki(t,e){return new Hn(t,e)}let Ku=dt.createCommand("TOGGLE_LINK_COMMAND");function Wu(t){return Uu(t,e=>Et(e))}function Uu(t,e){for(;t!==null&&(t=t.getParent())!==null&&!e(t););return t}rt.$createAutoLinkNode=Ki,rt.$createLinkNode=Bn,rt.$isAutoLinkNode=function(t){return t instanceof Hn},rt.$isLinkNode=Et,rt.AutoLinkNode=Hn,rt.LinkNode=tn,rt.TOGGLE_LINK_COMMAND=Ku,rt.toggleLink=function(t,e={}){let{target:n}=e,r=e.rel===void 0?"noopener":e.rel;if(e=dt.$getSelection(),dt.$isRangeSelection(e))if(e=e.extract(),t===null)e.forEach(o=>{if(o=o.getParent(),Et(o)){let l=o.getChildren();for(let s=0;s<l.length;s++)o.insertBefore(l[s]);o.remove()}});else{if(e.length===1){var i=e[0];if(i=Et(i)?i:Wu(i),i!==null){i.setURL(t),n!==void 0&&i.setTarget(n),r!==null&&i.setRel(r);return}}let o=null,l=null;e.forEach(s=>{var a=s.getParent();if(a!==l&&a!==null&&(!dt.$isElementNode(s)||s.isInline()))if(Et(a))l=a,a.setURL(t),n!==void 0&&a.setTarget(n),r!==null&&l.setRel(r);else if(a.is(o)||(o=a,l=Bn(t,{rel:r,target:n}),Et(a)?s.getPreviousSibling()===null?a.insertBefore(l):a.insertAfter(l):s.insertBefore(l)),Et(s)){if(!s.is(l)){if(l!==null){a=s.getChildren();for(let c=0;c<a.length;c++)l.append(a[c])}s.remove()}}else l!==null&&l.append(s)})}};var Wi=rt;class Rr extends v.ElementNode{static getType(){return"aside"}static clone(e){return new Rr(e.__key)}createDOM(e){const n=document.createElement("aside");return me.addClassNamesToElement(n,e.theme.aside),n}updateDOM(e,n){return!1}static importDOM(){return{aside:e=>({conversion:ju,priority:0})}}static importJSON(e){const n=Ui();return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),type:"aside"}}insertNewAfter(){const e=v.$createParagraphNode(),n=this.getDirection();return e.setDirection(n),this.insertNewAfter(e),e}collapseAtStart(){const e=v.$createParagraphNode();return this.getChildren().forEach(r=>e.append(r)),this.replace(e),!0}}function ju(){return{node:Ui}}function Ui(){return new Rr}var ra={},Yu=ie,Tt=v,Or=S.default;function ia(t,e){return t.getEditorState().read(()=>{let n=Tt.$getNodeByKey(e);return n===null?!1:n.isSelected()})}ra.useLexicalNodeSelection=function(t){let[e]=Yu.useLexicalComposerContext(),[n,r]=Or.useState(()=>ia(e,t));Or.useEffect(()=>e.registerUpdateListener(()=>{r(ia(e,t))}),[e,t]);let i=Or.useCallback(l=>{e.update(()=>{let s=Tt.$getSelection();Tt.$isNodeSelection(s)||(s=Tt.$createNodeSelection(),Tt.$setSelection(s)),l?s.add(t):s.delete(t)})},[e,t]),o=Or.useCallback(()=>{e.update(()=>{const l=Tt.$getSelection();Tt.$isNodeSelection(l)&&l.clear()})},[e]);return[n,i,o]};var oa=ra;const la=S.default.createContext({});var xe={exports:{}},Vu="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Gu=Vu,Zu=Gu;function sa(){}function aa(){}aa.resetWarningCache=sa;var Ju=function(){function t(r,i,o,l,s,a){if(a!==Zu){var c=new 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 c.name="Invariant Violation",c}}t.isRequired=t;function e(){return t}var n={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:aa,resetWarningCache:sa};return n.PropTypes=n,n};xe.exports=Ju();const ji=S.default.forwardRef(({isSelected:t,cardWidth:e,cardType:n,children:r,...i},o)=>h("div",{className:`relative border border-transparent caret-grey-800 ${t?"shadow-[0_0_0_2px] shadow-green":"hover:shadow-[0_0_0_1px] hover:shadow-green"} ${e==="wide"?"mx-[calc(50%-(50vw-var(--kg-breakout-adjustment))-.8rem)] w-[calc(65vw+2px-var(--kg-breakout-adjustment))] min-w-[calc(100%+3.6rem)] sm:min-w-[calc(100%+10rem)] lg:min-w-[calc(100%+18rem)] translate-x-[calc(50vw-50%+.8rem-var(--kg-breakout-adjustment))]":e==="full"?"lg:mx-[calc(50%-50vw+(var(--kg-breakout-adjustment)/2))] lg:w-[calc(100vw-var(--kg-breakout-adjustment))]":""}`,ref:o,"data-kg-card":n,"data-kg-card-selected":t,...i,children:r}));ji.propTypes={isSelected:xe.exports.bool,cardWidth:xe.exports.oneOf(["regular","wide","full"])},ji.defaultProps={cardWidth:"regular"};const Yi=({nodeKey:t,children:e,width:n})=>{const[r]=ie.useLexicalComposerContext(),[i,o,l]=oa.useLexicalNodeSelection(t),[s,a]=S.default.useState(null),[c,d]=S.default.useState(null),[u,g]=S.default.useState(n||"regular"),m=S.default.useRef(null);return S.default.useLayoutEffect(()=>{r.getEditorState().read(()=>{const f=v.$getNodeByKey(t);d(f.getType())})},[]),S.default.useEffect(()=>me.mergeRegister(r.registerUpdateListener(({editorState:f})=>{a(f.read(()=>v.$getSelection()))}),r.registerCommand(v.CLICK_COMMAND,f=>(m.current.contains(f.target)?(l(),o(!0)):i&&o(!1),!1),v.COMMAND_PRIORITY_LOW),r.registerCommand(v.KEY_ENTER_COMMAND,f=>{const _=v.$getSelection();if(i&&v.$isNodeSelection(_)&&_.getNodes().length===1){f.preventDefault();const C=v.$getNodeByKey(t),E=v.$createParagraphNode();return C.getTopLevelElementOrThrow().insertAfter(E),E.select(),!0}return!1},v.COMMAND_PRIORITY_EDITOR),r.registerCommand(v.KEY_BACKSPACE_COMMAND,f=>{const _=v.$getSelection();if(i&&v.$isNodeSelection(_)&&_.getNodes().length===1){f.preventDefault();const C=v.$getNodeByKey(t);if(C.getType()==="image"&&f.target.matches("input"))return r.update(()=>{const w=C.getCaption();C.setCaption(w.slice(0,-1))}),!1;const E=C.getPreviousSibling(),p=C.getNextSibling();if(E)if(E.selectEnd)E.selectEnd();else if(v.$isDecoratorNode(E)){const w=v.$createNodeSelection();w.add(E.getKey()),v.$setSelection(w)}else C.selectPrevious();else if(p)if(p.selectStart)p.selectStart();else if(v.$isDecoratorNode(p)){const w=v.$createNodeSelection();w.add(p.getKey()),v.$setSelection(w)}else C.selectNext();return C.remove(),!0}return!1},v.COMMAND_PRIORITY_EDITOR),r.registerCommand(v.KEY_DELETE_COMMAND,f=>{const _=v.$getSelection();if(i&&v.$isNodeSelection(_)&&_.getNodes().length===1){f.preventDefault();const C=v.$getNodeByKey(t),E=C.getNextSibling();if(E)if(E.selectStart)E.selectStart();else if(v.$isDecoratorNode(E)){const p=v.$createNodeSelection();p.add(E.getKey()),v.$setSelection(p)}else C.selectNext();else{const p=v.$createParagraphNode();C.getTopLevelElementOrThrow().insertAfter(p),p.select()}return C.remove(),!0}return!1},v.COMMAND_PRIORITY_EDITOR)),[r,i,o,l,t]),h(la.Provider,{value:{isSelected:i,cardWidth:u,setCardWidth:g,selection:s,cardContainerRef:m},children:h(ji,{isSelected:i,cardType:c,ref:m,cardWidth:u,children:e})})};function Xu(){return h("hr",{className:"block h-[1px] border-0 border-t border-grey-300"})}const ca=v.createCommand(),wo=class extends v.DecoratorNode{static getType(){return"horizontalrule"}static clone(e){return new wo(e.__key)}static importJSON(e){return Vi()}exportJSON(){return{type:"horizontalrule",version:1}}createDOM(){return document.createElement("div")}getTextContent(){return`
31
+ `}isInline(){return!1}updateDOM(){return!1}decorate(){return h(Yi,{nodeKey:this.getKey(),className:"inline-block",children:h(Xu,{})})}};let St=wo;Ne(St,"kgMenu",{label:"Divider",desc:"Insert a dividing line",Icon:Lo,insertCommand:ca,matches:["divider","horizontal-rule","hr"]});function Vi(){return new St}function qu(t){return t instanceof St}const Qu=({el:t,value:e})=>{re.useEffect(()=>{const n=t.current;if(n){n.style.height="0px";const r=n.scrollHeight;n.style.height=`${r}px`}},[t,e])};function da({code:t,language:e,updateCode:n,updateLanguage:r}){const i=S.default.useRef(null);return Qu({el:i,value:t}),h("code",{children:h("textarea",{ref:i,autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",tabIndex:"0",autoFocus:!0,className:"min-h-170 w-full bg-grey-50 p-3 text-grey-900",value:t,onChange:n})})}da.propTypes={code:xe.exports.string},v.createCommand();function eg({code:t,language:e,nodeKey:n,editor:r}){return h(da,{code:t,updateCode:l=>{r.update(()=>{v.$getNodeByKey(n).setCode(l.target.value)})},language:e,updateLanguage:l=>{r.update(()=>{v.$getNodeByKey(n).setLanguage(l.target.value)})}})}class nn extends v.DecoratorNode{constructor(n,r,i){super(i);Ne(this,"__code","");Ne(this,"__language","");this.__language=n,this.__code=r}static getType(){return"codeblock"}static clone(n){return new nn(n.__key,n.__code)}static importJSON(n){return ua()}exportJSON(){return{type:"codeblock",version:1,code:this.__code,language:this.__language}}createDOM(n){return document.createElement("div")}updateDOM(){return!1}getCode(){return this.getLatest().__code}setCode(n){const r=this.getWritable();r.__code=n}getLanguage(){return this.getLatest().__language}setLanguage(n){const r=this.getWritable();r.__language=n}getTextContent(){return this.getLatest().__code}decorate(n,r){return h(Yi,{nodeKey:this.getKey(),children:h(eg,{code:this.__code,language:this.__language,nodeKey:this.getKey(),editor:n})})}isInline(){return!1}}function ua(t,e){return new nn(t,e)}function tg(t){return t instanceof nn}class ng extends v.DecoratorNode{}class rg{constructor(e){this.NodeClass=e}get DOMConversionMap(){const e=this;return{img:()=>({conversion(n){if(n.tagName==="IMG"){const{alt:r,src:i,title:o,width:l,height:s}=n;return{node:new e.NodeClass({altText:r,src:i,title:o,width:l,height:s})}}return null},priority:1})}}}const ga=function(t,e){const n=Object.values(e).map(i=>{let{width:o}=i;return o}).sort((i,o)=>i-o),r=n.filter(i=>i<=t.width);return t.width>r[r.length-1]&&t.width<n[n.length-1]&&r.push(t.width),r},$r=function(t){const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:"").replace(/\/$/,""),r=t.replace(n,"");return/^(\/.*|__GHOST_URL__)\/?content\/images\//.test(r)},ig=function(t){return/images\.unsplash\.com/.test(t)},og=function(t){let{src:e,width:n,options:r}=t;if(!r.imageOptimization||r.imageOptimization.srcsets===!1||!n||!r.imageOptimization.contentImageSizes||$r(e,r.siteUrl)&&r.canTransformImage&&!r.canTransformImage(e))return;const i=ga({width:n},r.imageOptimization.contentImageSizes);if($r(e,r.siteUrl)){const[,o,l]=e.match(/(.*\/content\/images)\/(.*)/),s=[];if(i.forEach(a=>{a===n?s.push(`${e} ${a}w`):a<=n&&s.push(`${o}/size/w${a}/${l} ${a}w`)}),s.length)return s.join(", ")}if(ig(e)){const o=new URL(e),l=[];return i.forEach(s=>{o.searchParams.set("w",s),l.push(`${o.href} ${s}w`)}),l.join(", ")}},lg=function(t,e,n){if(!t||!["IMG","SOURCE"].includes(t.tagName)||!t.getAttribute("src")||!e)return;const{src:r,width:i}=e,o=og({src:r,width:i,options:n});o&&t.setAttribute("srcset",o)},ha=function(t){let{width:e,height:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{width:r,height:i}=t,o=r/i;if(e){const l=Math.round(e/o);return{width:e,height:l}}if(n)return{width:Math.round(n*o),height:n}};function sg(t){var a;let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!e.createDocument){let c=typeof window<"u"&&window.document;if(!c)throw new Error("renderImageNodeToDOM() must be passed a `createDocument` function as an option when used in a non-browser environment");e.createDocument=function(){return c}}const n=e.createDocument();if(!t.getSrc()||t.getSrc().trim()==="")return n.createTextNode("");const r=n.createElement("figure");let i="kg-card kg-image-card";t.getCardWidth()!=="regular"&&(i+=` kg-width-${t.getCardWidth()}`),r.setAttribute("class",i);const o=n.createElement("img");o.setAttribute("src",t.getSrc()),o.setAttribute("alt",t.getAltText()),o.setAttribute("loading","lazy"),t.getTitle()&&o.setAttribute("title",t.getTitle()),t.getImgWidth()&&t.getImgHeight()&&(o.setAttribute("width",t.getImgWidth()),o.setAttribute("height",t.getImgHeight()));const{canTransformImage:l}=e,{defaultMaxWidth:s}=e.imageOptimization||{};if(s&&t.getImgWidth()>s&&$r(t.getSrc(),e.siteUrl)&&l&&l(t.getSrc())){const c={width:t.getImgWidth(),height:t.getImgHeight()},{width:d,height:u}=ha(c,{width:s});o.setAttribute("width",d),o.setAttribute("height",u)}if(e.target!=="email"){const c={src:t.getSrc(),width:t.getImgWidth(),height:t.getImgHeight()};lg(o,c,e),o.getAttribute("srcset")&&t.getImgWidth()&&t.getImgWidth()>=720&&((!t.getCardWidth()||t.getCardWidth()==="regular")&&o.setAttribute("sizes","(min-width: 720px) 720px"),t.getCardWidth()==="wide"&&t.getImgWidth()>=1200&&o.setAttribute("sizes","(min-width: 1200px) 1200px"))}if(e.target==="email"&&t.getImgWidth()&&t.getImgHeight()){let c={width:t.getImgWidth(),height:t.getImgHeight()};if(t.getImgWidth()>=600&&(c=ha(c,{width:600})),o.setAttribute("width",c.width),o.setAttribute("height",c.height),$r(t.getSrc(),e.siteUrl)&&((a=e.canTransformImage)==null?void 0:a.call(e,t.getSrc()))){const u=ga(t,e.imageOptimization.contentImageSizes).find(g=>g>=1200);if(!(!u||u===t.getImgWidth())){const[,g,m]=t.getSrc().match(/(.*\/content\/images)\/(.*)/);o.setAttribute("src",`${g}/size/w${u}/${m}`)}}}if(r.appendChild(o),t.getCaption()){const c=n.createElement("figcaption");c.innerHTML=t.getCaption(),r.appendChild(c)}return r}const Mr=v.createCommand();v.createCommand();class Gi extends ng{constructor(){let{src:n,caption:r,title:i,altText:o,cardWidth:l,width:s,height:a}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=arguments.length>1?arguments[1]:void 0;super(c);Ne(this,"__src");Ne(this,"__caption");Ne(this,"__title");Ne(this,"__altText");Ne(this,"__cardWidth");Ne(this,"__width");Ne(this,"__height");this.__src=n||"",this.__title=i||"",this.__caption=r||"",this.__altText=o||"",this.__width=s||null,this.__height=a||null,this.__cardWidth=l||"regular"}static getType(){return"image"}static clone(n){return new this(n.getDataset(),n.__key)}static get urlTransformMap(){return{src:"url",caption:"html"}}getDataset(){return{src:this.__src,caption:this.__caption,title:this.__title,altText:this.__altText,width:this.__width,height:this.__height,cardWidth:this.__cardWidth}}static importJSON(n){const{src:r,caption:i,title:o,altText:l,width:s,height:a,cardWidth:c}=n;return new this({src:r,caption:i,title:o,altText:l,width:s,height:a,cardWidth:c})}exportJSON(){const r=this.getSrc().startsWith("data:");return{type:"image",src:r?"<base64String>":this.getSrc(),width:this.getImgWidth(),height:this.getImgHeight(),title:this.getTitle(),altText:this.getAltText(),caption:this.getCaption(),cardWidth:this.getCardWidth()}}static importDOM(){return new rg(this).DOMConversionMap}exportDOM(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return{element:sg(this,n)}}createDOM(){return document.createElement("div")}updateDOM(){return!1}isInline(){return!1}getSrc(){return this.__src}setSrc(n){const r=this.getWritable();return r.__src=n}getTitle(){return this.__title}setTitle(n){const r=this.getWritable();return r.__title=n}setCardWidth(n){const r=this.getWritable();return r.__cardWidth=n}getCardWidth(){return this.__cardWidth}getImgWidth(){return this.__width}setImgWidth(n){const r=this.getWritable();return r.__width=n}getImgHeight(){return this.__height}setImgHeight(n){const r=this.getWritable();return r.__height=n}getCaption(){return this.__caption}setCaption(n){const r=this.getWritable();return r.__caption=n}getAltText(){return this.__altText}setAltText(n){const r=this.getWritable();return r.__altText=n}decorate(){return""}}Ne(Gi,"extensionTypes",["gif","jpg","jpeg","png","svg","svgz","webp"]),Ne(Gi,"mimeTypes",["image/gif","image/jpg","image/jpeg","image/png","image/svg+xml","image/webp"]);const Ar=S.default.createContext({});function ag({value:t,placeholder:e,onChange:n}){return h("input",{onChange:i=>{n(i.target.value)},className:"not-kg-prose w-full px-9 text-center font-sans text-sm font-normal leading-8 tracking-wide text-grey-900",placeholder:e,value:t})}function cg({value:t,placeholder:e,onChange:n}){return h("input",{onChange:i=>{n(i.target.value)},className:"not-kg-prose w-full px-9 text-center font-sans text-sm font-normal leading-8 tracking-wide text-grey-900",placeholder:e,value:t})}function dg({isEditingAlt:t,onClick:e}){return h("button",{name:"alt-toggle-button",className:`absolute bottom-0 right-0 m-2 cursor-pointer rounded border px-1 font-sans text-[1.3rem] font-normal leading-7 tracking-wide transition-all duration-100 ${t?"border-green bg-green text-white":"border-grey text-grey"} `,onClick:e,children:"Alt"})}function ug({altText:t,altTextPlaceholder:e,setAltText:n,caption:r,captionPlaceholder:i,setCaption:o,isSelected:l}){const[s,a]=S.default.useState(!1),c=d=>{d.stopPropagation(),a(!s)};if(S.default.useEffect(()=>{l||a(!1)},[l,a]),l||r)return B("figcaption",{className:"flex w-full p-2",children:[s?h(cg,{value:t,placeholder:e,onChange:n}):h(ag,{value:r,placeholder:i,onChange:o}),n&&h(dg,{isEditingAlt:s,onClick:c})]})}const gg=({text:t})=>h("span",{"data-kg-card-drag-text":!0,className:"text-sm font-sans font-bold text-grey-800 transition-all group-hover:text-grey-800",children:t});function hg({desc:t,Icon:e,filePicker:n,size:r,handleDrag:i,handleDrop:o,isDraggedOver:l,...s}){return h("div",{onDragEnter:i,onDragLeave:i,onDragOver:i,onDrop:o,className:"border border-transparent",...s,"data-testid":"media-placeholder",children:h("div",{className:`h-100 relative flex items-center justify-center border border-grey/20 bg-grey-50 ${r==="xsmall"?"before:pb-[12.5%]":"before:pb-[62.5%]"}`,children:l?h(gg,{text:"Drop it like it's hot \u{1F525}"}):B("button",{onClick:n,name:"placeholder-button",className:`group flex cursor-pointer items-center justify-center ${r==="xsmall"?"p-4":"p-20 flex-col"}`,children:[h(e,{className:`opacity-80 transition-all ease-linear group-hover:scale-105 group-hover:opacity-100 ${r==="large"?"h-20 w-20 text-grey":r==="small"?"h-14 w-14 text-grey":r==="xsmall"?"w-6 h-6 mr-3 text-grey-700":"h-16 w-16 text-grey"}`}),h("p",{className:`font-sans text-sm font-normal text-grey-700 transition-all group-hover:text-grey-800 ${r==="xsmall"?"":"mt-4"}`,children:t})]})})})}function Dr({fileInputRef:t}){t.current.click()}function fa({onFileChange:t,fileInputRef:e}){return h("form",{onChange:t,children:h("input",{name:"image-input",type:"file",accept:"image/*",ref:e,hidden:!0})})}function fg({src:t,alt:e,previewSrc:n,progress:r}){const i={width:`${r==null?void 0:r.toFixed(0)}%`};return B("div",{children:[h("img",{className:`mx-auto ${n?"opacity-40":""}`,src:n||t,alt:e||`upload in progress, ${r} `}),n&&r&&!t?h("div",{className:"absolute inset-0 flex items-center min-w-full bg-white/50 justify-center overflow-hidden",children:h("div",{className:"not-kg-prose bg-grey-200 rounded-full shadow w-[60%]",children:h("div",{className:"bg-green rounded-full text-xs leading-none py-1 text-center text-white",style:i})})}):h(Pt,{})]})}function pg({onFileChange:t,setFileInputRef:e,handleDrag:n,handleDrop:r,isDraggedOver:i}){const o=S.default.useRef(null);return B(Pt,{children:[h(hg,{handleDrag:n,handleDrop:r,filePicker:()=>Dr({fileInputRef:o}),desc:"Click to select an image",Icon:Vr,isDraggedOver:i}),h(fa,{filePicker:()=>Dr({fileInputRef:o}),onFileChange:t,fileInputRef:s=>{o.current=s,e(o)}})]})}const mg=({src:t,altText:e,previewSrc:n,uploadProgress:r,onFileChange:i,setFileInputRef:o,handleDrag:l,handleDrop:s,isDraggedOver:a})=>n||t?h(fg,{src:t,alt:e,previewSrc:n,progress:r}):h(pg,{handleDrag:l,onFileChange:i,setFileInputRef:o,handleDrop:s,isDraggedOver:a});function pa({isSelected:t,src:e,onFileChange:n,caption:r,setCaption:i,altText:o,setAltText:l,setFigureRef:s,fileInputRef:a,handleDrag:c,handleDrop:d,isDraggedOver:u,cardWidth:g,previewSrc:m,uploadProgress:f}){const _=S.default.useRef(null);return S.default.useEffect(()=>{s&&s(_)},[_,s]),h(Pt,{children:B("figure",{"data-kg-card-width":g,ref:_,children:[h(mg,{src:e,altText:o,previewSrc:m,uploadProgress:f,onFileChange:n,setFileInputRef:E=>{a&&(a.current=E.current)},handleDrag:c,handleDrop:d,isDraggedOver:u}),h(ug,{altText:o||"",setAltText:l,altTextPlaceholder:"Type alt text for image (optional)",caption:r||"",setCaption:i,captionPlaceholder:"Type caption for image (optional)",isSelected:t})]})})}pa.propTypes={isSelected:xe.exports.bool,setAltText:xe.exports.func,caption:xe.exports.string,altText:xe.exports.string,setCaption:xe.exports.func,src:xe.exports.string,isDraggedOver:xe.exports.bool,previewSrc:xe.exports.string,uploadProgress:xe.exports.number};const xg={bold:Co,italic:No,headingOne:Eo,headingTwo:To,quote:So,quoteOne:t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 8.00011H6C6.26522 8.00011 6.51957 8.10546 6.70711 8.293C6.89464 8.48054 7 8.73489 7 9.00011V13.0001C7 13.2653 6.89464 13.5197 6.70711 13.7072C6.51957 13.8947 6.26522 14.0001 6 14.0001H3C2.73478 14.0001 2.48043 13.8947 2.29289 13.7072C2.10536 13.5197 2 13.2653 2 13.0001V5.08211C2 3.90611 2.906 2.96211 4.538 2.11311C4.65448 2.05244 4.78177 2.0153 4.91261 2.00383C5.04344 1.99235 5.17525 2.00675 5.30052 2.04622C5.42579 2.08568 5.54205 2.14944 5.64268 2.23383C5.74331 2.31823 5.82633 2.42162 5.887 2.53811C5.94767 2.65459 5.9848 2.78188 5.99628 2.91271C6.00776 3.04355 5.99335 3.17536 5.95389 3.30063C5.91442 3.42589 5.85067 3.54216 5.76627 3.64279C5.68187 3.74342 5.57848 3.82644 5.462 3.88711C4.884 4.18711 4.469 4.47611 4.222 4.73411C4.054 4.90811 4 5.02011 4 5.08211V8.00011ZM13 8.00011C13.2652 8.00011 13.5196 8.10546 13.7071 8.293C13.8946 8.48054 14 8.73489 14 9.00011V9.5366C13.6143 9.60243 13.2536 9.7523 12.937 9.9445L12.9298 9.9489L12.4315 10.2608C11.9856 10.5357 11.5 11.0479 11.5 11.8252C11.5 12.5688 11.9611 13.2015 12.6323 13.4311V14.0001H10C9.73478 14.0001 9.48043 13.8947 9.29289 13.7072C9.10536 13.5197 9 13.2653 9 13.0001V5.08211C9 3.90611 9.906 2.96211 11.538 2.11311C11.6545 2.05244 11.7818 2.0153 11.9126 2.00383C12.0434 1.99235 12.1753 2.00675 12.3005 2.04622C12.4258 2.08568 12.5421 2.14944 12.6427 2.23383C12.7433 2.31823 12.8263 2.42162 12.887 2.53811C12.9477 2.65459 12.9848 2.78188 12.9963 2.91271C13.0078 3.04355 12.9934 3.17536 12.9539 3.30063C12.9144 3.42589 12.8507 3.54216 12.7663 3.64279C12.6819 3.74342 12.5785 3.82644 12.462 3.88711C11.884 4.18711 11.469 4.47611 11.222 4.73411C11.054 4.90811 11 5.02011 11 5.08211V8.00011H13ZM14.5428 15.4344C14.1182 15.4344 13.8823 15.1783 13.8823 14.7267V11.96H13.8722L13.6397 12.1082C13.4274 12.2329 13.3229 12.2734 13.1948 12.2734C12.9354 12.2734 12.75 12.0846 12.75 11.8252C12.75 11.6297 12.8646 11.4612 13.0904 11.323L13.5858 11.013C13.8688 10.8411 14.1587 10.7501 14.4249 10.7501C14.8933 10.7501 15.2 11.0635 15.2 11.5488V14.7267C15.2 15.1817 14.9641 15.4344 14.5428 15.4344Z"})),quoteTwo:t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},x.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4 8.00015H6C6.26522 8.00015 6.51957 8.1055 6.70711 8.29304C6.89464 8.48058 7 8.73493 7 9.00015V13.0001C7 13.2654 6.89464 13.5197 6.70711 13.7073C6.51957 13.8948 6.26522 14.0001 6 14.0001H3C2.73478 14.0001 2.48043 13.8948 2.29289 13.7073C2.10536 13.5197 2 13.2654 2 13.0001V5.08215C2 3.90615 2.906 2.96215 4.538 2.11315C4.65448 2.05248 4.78177 2.01534 4.91261 2.00387C5.04344 1.99239 5.17525 2.00679 5.30052 2.04626C5.42579 2.08572 5.54205 2.14948 5.64268 2.23387C5.74331 2.31827 5.82633 2.42166 5.887 2.53815C5.94767 2.65463 5.9848 2.78192 5.99628 2.91275C6.00776 3.04359 5.99335 3.1754 5.95389 3.30067C5.91442 3.42593 5.85067 3.5422 5.76627 3.64283C5.68187 3.74346 5.57848 3.82648 5.462 3.88715C4.884 4.18715 4.469 4.47615 4.222 4.73415C4.054 4.90815 4 5.02015 4 5.08215V8.00015ZM13 8.00015C13.2652 8.00015 13.5196 8.1055 13.7071 8.29304C13.8946 8.48058 14 8.73493 14 9.00015V9.51812C13.4378 9.57694 12.9087 9.77735 12.4803 10.0918C11.9785 10.4601 11.5 11.0848 11.5 11.9043C11.5 12.3632 11.6772 12.8135 12.0264 13.1451C12.0604 13.1774 12.0955 13.208 12.1312 13.2369C11.9419 13.4409 11.7509 13.6922 11.6323 14.0001H10C9.73478 14.0001 9.48043 13.8948 9.29289 13.7073C9.10536 13.5197 9 13.2654 9 13.0001V5.08215C9 3.90615 9.906 2.96215 11.538 2.11315C11.6545 2.05248 11.7818 2.01534 11.9126 2.00387C12.0434 1.99239 12.1753 2.00679 12.3005 2.04626C12.4258 2.08572 12.5421 2.14948 12.6427 2.23387C12.7433 2.31827 12.8263 2.42166 12.887 2.53815C12.9477 2.65463 12.9848 2.78192 12.9963 2.91275C13.0078 3.04359 12.9934 3.1754 12.9539 3.30067C12.9144 3.42593 12.8507 3.5422 12.7663 3.64283C12.6819 3.74346 12.5785 3.82648 12.462 3.88715C11.884 4.18715 11.469 4.47615 11.222 4.73415C11.054 4.90815 11 5.02015 11 5.08215V8.00015H13ZM13.2256 15.1428C12.8903 15.1428 12.6626 14.9404 12.6626 14.6432C12.6626 14.4218 12.7891 14.2257 13.1591 13.8779L14.1616 12.907C14.4937 12.5876 14.6391 12.3789 14.6391 12.1607C14.6391 11.9045 14.4526 11.7337 14.1806 11.7337C13.9687 11.7337 13.8169 11.8255 13.6556 12.0532C13.4785 12.2872 13.3457 12.3694 13.1402 12.3694C12.8524 12.3694 12.65 12.1765 12.65 11.9045C12.65 11.2973 13.371 10.7502 14.247 10.7502C15.1546 10.7502 15.825 11.2973 15.825 12.0373C15.825 12.4959 15.5879 12.926 15.0787 13.3908L14.2881 14.1245V14.172H15.4203C15.765 14.172 15.98 14.3585 15.98 14.6621C15.98 14.9626 15.7713 15.1428 15.4203 15.1428H13.2256Z"})),link:jr,imageRegular:bo,imageWide:Ro,imageFull:Oo,imageReplace:$o,add:Mo,edit:t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},x.createElement("path",{d:"M16.19 3.51a.51.51 0 0 0-.71 0L4.07 14.92a.5.5 0 0 0 0 .71l4.28 4.28a.48.48 0 0 0 .7 0L20.47 8.5a.51.51 0 0 0 0-.71ZM3 16.71a.51.51 0 0 0-.47-.13.48.48 0 0 0-.36.33L0 23.33a.49.49 0 0 0 .12.51.5.5 0 0 0 .54.16l6.42-2.14a.52.52 0 0 0 .33-.36.49.49 0 0 0-.14-.5ZM23 1a3.6 3.6 0 0 0-5 0l-.71.71a.5.5 0 0 0 0 .71l4.28 4.28a.51.51 0 0 0 .7 0L23 6a3.53 3.53 0 0 0 0-5Z"})),snippet:Jn};function ma({children:t,...e}){return h("ul",{className:"m-0 relative flex items-center justify-evenly rounded bg-black px-1 py-0 font-sans text-md font-normal text-white after:absolute after:top-[36px] after:left-[calc(50%-8px)] after:w-0 after:border-t-8 after:border-t-black after:border-x-8 after:border-x-transparent",...e,children:t})}function We({label:t,isActive:e,onClick:n,icon:r,...i}){const o=xg[r];return h("li",{className:"m-0 flex p-0 first:m-0",...i,children:h("button",{type:"button",className:"flex h-9 w-9 items-center justify-center",onClick:n,"aria-label":t,"data-kg-active":e,children:h(o,{className:e?"fill-green":"fill-white"})})})}function Zi(){return h("li",{className:"m-0 mx-1 h-5 w-px bg-grey-900"})}function _g({isVisible:t,children:e,...n}){if(t)return h("div",{className:"not-kg-prose absolute top-[-44px] left-1/2 -translate-x-1/2 z-[1000]",...n,children:e})}async function xa(t){const e=new Image;return e.src=t,new Promise((n,r)=>{e.onload=()=>{n({width:e.naturalWidth,height:e.naturalHeight})},e.onerror=r})}const Ji=async(t,e,n,r)=>{if(!t)return;let i=URL.createObjectURL(t[0]);i&&await n.update(()=>{v.$getNodeByKey(e).setPreviewSrc(i)});const{width:o,height:l}=await xa(i),s=await r.imageUploader(t);await n.update(()=>{const a=v.$getNodeByKey(e);a.setImgWidth(o),a.setImgHeight(l),a.setSrc(s.src)})};function vg({nodeKey:t,src:e,altText:n,caption:r,triggerFileDialog:i,previewSrc:o}){const[l]=ie.useLexicalComposerContext(),[s,a]=S.default.useState(!1),{imageUploader:c}=S.default.useContext(Ar),{isSelected:d,cardWidth:u,setCardWidth:g}=S.default.useContext(la),m=S.default.useRef(),f=S.default.useRef(),_=async k=>{const R=k.target.files;return await Ji(R,t,l,c)},C=k=>{l.update(()=>{v.$getNodeByKey(t).setCaption(k)})},E=k=>{l.update(()=>{v.$getNodeByKey(t).setAltText(k)})};S.default.useEffect(()=>{if(!i)return;const k=setTimeout(()=>{Dr({fileInputRef:m}),l.update(()=>{v.$getNodeByKey(t).setTriggerFileDialog(!1)})});return()=>{clearTimeout(k)}});const p=k=>{l.update(()=>{v.$getNodeByKey(t).setCardWidth(k),g(k)})},w=k=>{k.preventDefault(),k.stopPropagation(),k.type==="dragenter"||k.type==="dragover"?a(!0):k.type==="dragleave"&&a(!1)},T=async k=>{if(k.preventDefault(),k.stopPropagation(),k.dataTransfer.files&&k.dataTransfer.files[0]){const R=k.dataTransfer.files;R&&(a(!1),await Ji(R,t,l,c))}},N=(c==null?void 0:c.uploadProgress)||0;return B(Pt,{children:[h(pa,{isSelected:d,fileInputRef:m,onFileChange:_,src:e,altText:n,setAltText:E,caption:r,setCaption:C,handleDrag:w,handleDrop:T,isDraggedOver:s,cardWidth:u,previewSrc:o,uploadProgress:N}),B(_g,{isVisible:e&&d,"data-kg-card-toolbar":"image",children:[h(fa,{onFileChange:_,fileInputRef:f}),B(ma,{children:[h(We,{label:"Regular",icon:"imageRegular",isActive:u==="regular",onClick:()=>p("regular")}),h(We,{label:"Wide",icon:"imageWide",isActive:u==="wide",onClick:()=>p("wide")}),h(We,{label:"Full",icon:"imageFull",isActive:u==="full",onClick:()=>p("full")}),h(Zi,{}),h(We,{label:"Link",icon:"link",isActive:!1}),h(We,{label:"Replace",icon:"imageReplace",isActive:!1,onClick:()=>Dr({fileInputRef:f})}),h(Zi,{}),h(We,{label:"Snippet",icon:"snippet",isActive:!1})]})]})]})}class rn extends Gi{constructor(n={},r){super(n,r);Ne(this,"__triggerFileDialog",!1);Ne(this,"__previewSrc",null);const{previewSrc:i,triggerFileDialog:o}=n;this.__previewSrc=i||"",this.__triggerFileDialog=!n.src&&o||!1}getDataset(){const n=super.getDataset();return n.__previewSrc=this.__previewSrc,n.__triggerFileDialog=this.__triggerFileDialog,n}getPreviewSrc(){return this.__previewSrc}setPreviewSrc(n){const r=this.getWritable();return r.__previewSrc=n}setTriggerFileDialog(n){const r=this.getWritable();return r.__triggerFileDialog=n}createDOM(){return document.createElement("div")}decorate(){return h(Yi,{nodeKey:this.getKey(),width:this.__cardWidth,children:h(vg,{nodeKey:this.getKey(),src:this.__src,altText:this.__altText,caption:this.__caption,triggerFileDialog:this.__triggerFileDialog,previewSrc:this.getPreviewSrc()})})}}Ne(rn,"kgMenu",[{label:"Image",desc:"Upload, or embed with /image [url]",Icon:Do,insertCommand:Mr,insertParams:{triggerFileDialog:!0},matches:["image","img"],queryParams:["src"]},{section:"Embed",label:"Unsplash",desc:"/unsplash [search term or url]",Icon:Yr,insertCommand:Mr,insertParams:{triggerFileDialog:!1,triggerFileSelector:"unsplash"},matches:["unsplash","uns"],queryParams:["src"]}]);const _a=t=>new rn(t);function wg(t){return t instanceof rn}const va=[nt.HeadingNode,Qe.ListNode,Qe.ListItemNode,nt.QuoteNode,Rr,Wi.LinkNode,nn,St,rn],yg={paragraph:void 0,heading:{h1:void 0,h2:void 0,h3:void 0,h4:void 0,h5:void 0,h6:void 0},quote:void 0,aside:void 0,list:{nested:{listitem:"!list-none"},ol:void 0,ul:void 0,listitem:void 0},link:void 0,text:{bold:void 0,italic:"italic",overflowed:void 0,hashtag:void 0,underline:void 0,strikethrough:void 0,underlinestrikethrough:void 0,code:void 0},code:void 0};function kg(t){console.error(t)}const Cg={namespace:"KoenigEditor",theme:yg},Ng=({initialEditorState:t,nodes:e=[...va],onError:n=kg,imageUploadFunction:r,children:i})=>{const o=S.default.useMemo(()=>Object.assign({},Cg,{nodes:e,editorState:t,onError:n}),[t,e,n]),l=S.default.useRef(null),s=r||function(){console.error("requires imageUploadFunction to be passed to KoenigComposer component, eg <KoenigComposer imageUploadFunction={function} />")};return h(xu.LexicalComposer,{initialConfig:o,children:h(Ar.Provider,{value:{imageUploader:s,editorContainerRef:l},children:i})})};var wa={},ut={},Le=v;function Xi(t,e=!0){return t?!1:(t=ya(),e&&(t=t.trim()),t==="")}function ya(){return Le.$getRoot().getTextContent()}function ka(t,e){if(!e||!Xi(t,!1)||(t=Le.$getRoot().getChildren(),e=t.length,1<e))return!1;for(let r=0;r<e;r++){var n=t[r];if(Le.$isElementNode(n)){if(n.__type!=="paragraph"||n.__indent!==0)return!1;n=n.getChildren();let i=n.length;for(let o=0;o<i;o++)if(!Le.$isTextNode(n[r]))return!1}}return!0}ut.$canShowPlaceholder=ka,ut.$canShowPlaceholderCurry=function(t,e){return()=>ka(t,e)},ut.$findTextIntersectionFromCharacters=function(t,e){var n=t.getFirstChild();t=0;e:for(;n!==null;){if(Le.$isElementNode(n)){var r=n.getFirstChild();if(r!==null){n=r;continue}}else if(Le.$isTextNode(n)){if(r=n.getTextContentSize(),t+r>e)return{node:n,offset:e-t};t+=r}if(r=n.getNextSibling(),r!==null)n=r;else{for(n=n.getParent();n!==null;){if(r=n.getNextSibling(),r!==null){n=r;continue e}n=n.getParent()}break}}return null},ut.$isRootTextContentEmpty=Xi,ut.$isRootTextContentEmptyCurry=function(t,e){return()=>Xi(t,e)},ut.$rootTextContent=ya,ut.registerLexicalTextEntity=function(t,e,n,r){let i=l=>{const s=Le.$createTextNode(l.getTextContent());s.setFormat(l.getFormat()),l.replace(s)},o=t.registerNodeTransform(Le.TextNode,l=>{if(l.isSimpleText()){var s=l.getPreviousSibling(),a=l.getTextContent(),c=l;if(Le.$isTextNode(s)){var d=s.getTextContent(),u=e(d+a);if(s instanceof n){if(u===null||s.getLatest().__mode!==0){i(s);return}if(u=u.end-d.length,0<u){c=a.slice(0,u),c=d+c,s.select(),s.setTextContent(c),u===a.length?l.remove():(s=a.slice(u),l.setTextContent(s));return}}else if(u===null||u.start<d.length)return}for(;;){if(l=e(a),a=u=l===null?"":a.slice(l.end),u===""){if(d=c.getNextSibling(),Le.$isTextNode(d)){if(u=c.getTextContent()+d.getTextContent(),u=e(u),u===null){d instanceof n?i(d):d.markDirty();break}else if(u.start!==0)break}}else if(d=e(u),d!==null&&d.start===0)break;if(l===null)break;if(l.start===0&&Le.$isTextNode(s)&&s.isTextEntity())continue;let g;if(l.start===0?[g,c]=c.splitText(l.end):[,g,c]=c.splitText(l.start,l.end),l=r(g),g.replace(l),c==null)break}}});return t=t.registerNodeTransform(n,l=>{var s=l.getTextContent();const a=e(s);a===null||a.start!==0?i(l):s.length>a.end?l.splitText(a.end):(s=l.getPreviousSibling(),Le.$isTextNode(s)&&s.isTextEntity()&&(i(s),i(l)),s=l.getNextSibling(),Le.$isTextNode(s)&&s.isTextEntity()&&(i(s),l instanceof n&&i(l)))}),[o,t]};var Eg=ut,Ca={},Lr=v;Ca.registerDragonSupport=function(t){let e=window.location.origin,n=r=>{if(r.origin===e){var i=t.getRootElement();if(document.activeElement===i&&(i=r.data,typeof i=="string")){try{var o=JSON.parse(i)}catch{return}if(o&&o.protocol==="nuanria_messaging"&&o.type==="request"&&(o=o.payload)&&o.functionId==="makeChanges"&&(o=o.args)){const[l,s,a,c,d]=o;t.update(()=>{const u=Lr.$getSelection();if(Lr.$isRangeSelection(u)){var g=u.anchor;let m=g.getNode(),f=0,_=0;Lr.$isTextNode(m)&&0<=l&&0<=s&&(f=l,_=l+s,u.setTextNodeRange(m,f,m,_)),(f!==_||a!=="")&&(u.insertRawText(a),m=g.getNode()),Lr.$isTextNode(m)&&(f=c,_=c+d,g=m.getTextContentSize(),f=f>g?g:f,_=_>g?g:_,u.setTextNodeRange(m,f,m,_)),r.stopImmediatePropagation()}})}}}};return window.addEventListener("message",n,!0),()=>{window.removeEventListener("message",n,!0)}};var Tg=Ca,Sg=ie,Ue=S.default,bg=Eg,Na=me,Ea=Vc.default,Rg=Tg,Og=nt,qi=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?Ue.useLayoutEffect:Ue.useEffect;function Ta(t){return t.getEditorState().read(bg.$canShowPlaceholderCurry(t.isComposing(),t.isEditable()))}function $g(t){let[e,n]=Ue.useState(()=>Ta(t));return qi(()=>{function r(){let i=Ta(t);n(i)}return r(),Na.mergeRegister(t.registerUpdateListener(()=>{r()}),t.registerEditableListener(()=>{r()}))},[t]),e}function Mg(t,e){let[n,r]=Ue.useState(()=>t.getDecorators());return qi(()=>t.registerDecoratorListener(i=>{Ea.flushSync(()=>{r(i)})}),[t]),Ue.useEffect(()=>{r(t.getDecorators())},[t]),Ue.useMemo(()=>{let i=[],o=Object.keys(n);for(let s=0;s<o.length;s++){var l=o[s];let a=Ue.createElement(e,{onError:c=>t._onError(c)},Ue.createElement(Ue.Suspense,{fallback:null},n[l]));l=t.getElementByKey(l),l!==null&&i.push(Ea.createPortal(a,l))}return i},[e,n,t])}function Ag(t){qi(()=>Na.mergeRegister(Og.registerRichText(t),Rg.registerDragonSupport(t)),[t])}wa.RichTextPlugin=function({contentEditable:t,placeholder:e,ErrorBoundary:n}){let[r]=Sg.useLexicalComposerContext(),i=$g(r);return n=Mg(r,n),Ag(r),Ue.createElement(Ue.Fragment,null,t,i&&e,n)};var Dg=wa,Lg=wd(Sd).jsx,Ir=S.default;function Qi(t,e){return Qi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Qi(t,e)}function Ig(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Qi(t,e)}function Pg(t,e){return t===void 0&&(t=[]),e===void 0&&(e=[]),t.length!==e.length||t.some(function(n,r){return!Object.is(n,e[r])})}var Sa={error:null},Fg=function(t){function e(){for(var r,i=arguments.length,o=Array(i),l=0;l<i;l++)o[l]=arguments[l];return r=t.call.apply(t,[this].concat(o))||this,r.state=Sa,r.resetErrorBoundary=function(){for(var s,a=arguments.length,c=Array(a),d=0;d<a;d++)c[d]=arguments[d];r.props.onReset==null||(s=r.props).onReset.apply(s,c),r.reset()},r}Ig(e,t),e.getDerivedStateFromError=function(r){return{error:r}};var n=e.prototype;return n.reset=function(){this.setState(Sa)},n.componentDidCatch=function(r,i){var o,l;(o=(l=this.props).onError)==null||o.call(l,r,i)},n.componentDidUpdate=function(r,i){var o=this.props.resetKeys;if(this.state.error!==null&&i.error!==null&&Pg(r.resetKeys,o)){var l,s;(l=(s=this.props).onResetKeysChange)==null||l.call(s,r.resetKeys,o),this.reset()}},n.render=function(){var r=this.state.error,i=this.props,o=i.fallbackRender,l=i.FallbackComponent;if(i=i.fallback,r!==null){if(r={error:r,resetErrorBoundary:this.resetErrorBoundary},Ir.isValidElement(i))return i;if(typeof o=="function")return o(r);if(l)return Ir.createElement(l,r);throw Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},e}(Ir.Component),zg=function({children:t,onError:e}){return Ir.createElement(Fg,{fallback:Lg("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:e},t)},Bg=zg,ba={},Hg=ie,Kn=S.default,Kg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?Kn.useLayoutEffect:Kn.useEffect;ba.ContentEditable=function({ariaActiveDescendantID:t,ariaAutoComplete:e,ariaControls:n,ariaDescribedBy:r,ariaExpanded:i,ariaLabel:o,ariaLabelledBy:l,ariaMultiline:s,ariaOwneeID:a,ariaRequired:c,autoCapitalize:d,autoComplete:u,autoCorrect:g,className:m,id:f,role:_="textbox",spellCheck:C=!0,style:E,tabIndex:p,testid:w}){let[T]=Hg.useLexicalComposerContext(),[N,k]=Kn.useState(!1),R=Kn.useCallback(I=>{T.setRootElement(I)},[T]);return Kg(()=>(k(T.isEditable()),T.registerEditableListener(I=>{k(I)})),[T]),Kn.createElement("div",{"aria-activedescendant":N?t:null,"aria-autocomplete":N?e:null,"aria-controls":N?n:null,"aria-describedby":r,"aria-expanded":N&&_==="combobox"?!!i:null,"aria-label":o,"aria-labelledby":l,"aria-multiline":s,"aria-owns":N?a:null,"aria-required":c,autoCapitalize:d!==void 0?String(d):void 0,autoComplete:u,autoCorrect:g!==void 0?String(g):void 0,className:m,contentEditable:N,"data-testid":w,id:f,ref:R,role:N?_:void 0,spellCheck:C,style:E,tabIndex:p})};var Wg=ba,eo={},to={},Ug=me,Q=v;function jg(t,e,n,r,i){if(t===null||n.size===0&&r.size===0&&!i)return 0;var o=e._selection,l=t._selection;if(i)return 1;if(!(Q.$isRangeSelection(o)&&Q.$isRangeSelection(l)&&l.isCollapsed()&&o.isCollapsed()))return 0;i=e._nodeMap;let s=[];for(let a of n)n=i.get(a),n!==void 0&&s.push(n);for(let[a,c]of r)c&&(r=i.get(a),r===void 0||Q.$isRootNode(r)||s.push(r));return s.length===0?0:1<s.length?(r=e._nodeMap,e=r.get(o.anchor.key),l=r.get(l.anchor.key),e&&l&&!t._nodeMap.has(e.__key)&&Q.$isTextNode(e)&&e.__text.length===1&&o.anchor.offset===1?2:0):(e=s[0],t=t._nodeMap.get(e.__key),!Q.$isTextNode(t)||!Q.$isTextNode(e)||t.__mode!==e.__mode||(t=t.__text,e=e.__text,t===e)||(o=o.anchor,l=l.anchor,o.key!==l.key||o.type!=="text")?0:(o=o.offset,l=l.offset,t=e.length-t.length,t===1&&l===o-1?2:t===-1&&l===o+1?3:t===-1&&l===o?4:0))}function Yg(t,e){let n=Date.now(),r=0;return(i,o,l,s,a,c)=>{let d=Date.now();if(c.has("historic"))return r=0,n=d,2;let u=jg(i,o,s,a,t.isComposing()),g=(()=>{var m=l===null||l.editor===t,f=c.has("history-push");if(!f&&m&&c.has("history-merge"))return 0;if(i===null)return 1;const _=o._selection,C=i._selection;return 0<s.size||0<a.size?f===!1&&u!==0&&u===r&&d<n+e&&m||s.size===1&&(f=Array.from(s)[0],m=i._nodeMap.get(f),f=o._nodeMap.get(f),m=Q.$isTextNode(m)&&Q.$isTextNode(f)?m.__type===f.__type&&m.__text===f.__text&&m.__mode===f.__mode&&m.__detail===f.__detail&&m.__style===f.__style&&m.__format===f.__format&&m.__parent===f.__parent:!1,m)?0:1:C===null&&_!==null?0:2})();return n=d,r=u,g}}to.createEmptyHistoryState=function(){return{current:null,redoStack:[],undoStack:[]}},to.registerHistory=function(t,e,n){let r=Yg(t,n);n=({editorState:l,prevEditorState:s,dirtyLeaves:a,dirtyElements:c,tags:d})=>{const u=e.current,g=e.redoStack,m=e.undoStack,f=u===null?null:u.editorState;if(u===null||l!==f){if(a=r(s,l,u,a,c,d),a===1)g.length!==0&&(e.redoStack=[]),u!==null&&(m.push({...u,undoSelection:s.read(Q.$getSelection)}),t.dispatchCommand(Q.CAN_UNDO_COMMAND,!0));else if(a===2)return;e.current={editor:t,editorState:l}}};let i=Ug.mergeRegister(t.registerCommand(Q.UNDO_COMMAND,()=>{let l=e.redoStack,s=e.undoStack;if(s.length!==0){let a=e.current,c=s.pop();a!==null&&(l.push(a),t.dispatchCommand(Q.CAN_REDO_COMMAND,!0)),s.length===0&&t.dispatchCommand(Q.CAN_UNDO_COMMAND,!1),e.current=c||null,c&&c.editor.setEditorState(c.editorState.clone(c.undoSelection),{tag:"historic"})}return!0},Q.COMMAND_PRIORITY_EDITOR),t.registerCommand(Q.REDO_COMMAND,()=>{let l=e.redoStack;var s=e.undoStack;if(l.length!==0){let a=e.current;a!==null&&(s.push(a),t.dispatchCommand(Q.CAN_UNDO_COMMAND,!0)),s=l.pop(),l.length===0&&t.dispatchCommand(Q.CAN_REDO_COMMAND,!1),e.current=s||null,s&&s.editor.setEditorState(s.editorState,{tag:"historic"})}return!0},Q.COMMAND_PRIORITY_EDITOR),t.registerCommand(Q.CLEAR_EDITOR_COMMAND,()=>(e.undoStack=[],e.redoStack=[],e.current=null,!1),Q.COMMAND_PRIORITY_EDITOR),t.registerCommand(Q.CLEAR_HISTORY_COMMAND,()=>(e.undoStack=[],e.redoStack=[],e.current=null,t.dispatchCommand(Q.CAN_REDO_COMMAND,!1),t.dispatchCommand(Q.CAN_UNDO_COMMAND,!1),!0),Q.COMMAND_PRIORITY_EDITOR),t.registerUpdateListener(n)),o=t.registerUpdateListener(n);return()=>{i(),o()}};var Vg=to,Gg=ie,no=Vg,Ra=S.default;function Zg(t,e,n=1e3){let r=Ra.useMemo(()=>e||no.createEmptyHistoryState(),[e]);Ra.useEffect(()=>no.registerHistory(t,r,n),[n,t,r])}eo.createEmptyHistoryState=no.createEmptyHistoryState,eo.HistoryPlugin=function({externalHistoryState:t}){let[e]=Gg.useLexicalComposerContext();return Zg(e,t),null};var Jg=eo,Oa={},Xg=ie,$a=S.default,qg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?$a.useLayoutEffect:$a.useEffect;Oa.OnChangePlugin=function({ignoreHistoryMergeTagChange:t=!0,ignoreSelectionChange:e=!1,onChange:n}){let[r]=Xg.useLexicalComposerContext();return qg(()=>{if(n)return r.registerUpdateListener(({editorState:i,dirtyElements:o,dirtyLeaves:l,prevEditorState:s,tags:a})=>{e&&o.size===0&&l.size===0||t&&a.has("history-merge")||s.isEmpty()||n(i,r)})},[r,t,e,n]),null};var Qg=Oa,Ma={},je=Qe,e1=ie,Aa=S.default,t1=me,it=v;function n1(t){Aa.useEffect(()=>t1.mergeRegister(t.registerCommand(it.INDENT_CONTENT_COMMAND,()=>(je.indentList(),!1),it.COMMAND_PRIORITY_LOW),t.registerCommand(it.OUTDENT_CONTENT_COMMAND,()=>(je.outdentList(),!1),it.COMMAND_PRIORITY_LOW),t.registerCommand(je.INSERT_ORDERED_LIST_COMMAND,()=>(je.insertList(t,"number"),!0),it.COMMAND_PRIORITY_LOW),t.registerCommand(je.INSERT_UNORDERED_LIST_COMMAND,()=>(je.insertList(t,"bullet"),!0),it.COMMAND_PRIORITY_LOW),t.registerCommand(je.REMOVE_LIST_COMMAND,()=>(je.removeList(t),!0),it.COMMAND_PRIORITY_LOW),t.registerCommand(it.INSERT_PARAGRAPH_COMMAND,()=>!!je.$handleListInsertParagraph(),it.COMMAND_PRIORITY_LOW)),[t])}Ma.ListPlugin=function(){let[t]=e1.useLexicalComposerContext();return Aa.useEffect(()=>{if(!t.hasNodes([je.ListNode,je.ListItemNode]))throw Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[t]),n1(t),null};var r1=Ma;function ro(t){var i;let[e]=t.getNodes();v.$isTextNode(e)&&(e=e.getParent());const n=e.getIndexWithinParent(),r=(i=e.getTopLevelElement())==null?void 0:i.getIndexWithinParent();return n===0&&r===0&&t.anchor.offset===0&&t.focus.offset===0}function Be(t){const e=v.$createNodeSelection();e.add(t.getKey()),v.$setSelection(e)}const Da=10;function La(t){t.nodeType===Node.TEXT_NODE&&(t=t.parentNode);const e="[data-lexical-editor] > *";return t.closest(e)}function i1({editor:t,containerElem:e,cursorDidExitAtTop:n}){return S.default.useEffect(()=>{const r=i=>{e.current.contains(i.target)||t.update(()=>{const o=v.$getSelection();v.$isNodeSelection(o)&&v.$setSelection(null)})};return window.addEventListener("mousedown",r),()=>{window.removeEventListener("mousedown",r)}},[t,e]),S.default.useEffect(()=>me.mergeRegister(t.registerCommand(v.KEY_ARROW_UP_COMMAND,r=>{const i=v.$getSelection();if(v.$isNodeSelection(i)){const l=i.getNodes()[0].getPreviousSibling();if(!l)return i.clear(),n==null||n(),!0;if(v.$isDecoratorNode(l))return Be(l),!0}if(v.$isRangeSelection(i)&&i.isCollapsed){const o=i.anchor.getNode().getTopLevelElement(),l=window.getSelection();if(n&&ro(i))return n(),!0;const s=(o==null?void 0:o.getTextContent().trim())===""&&i.anchor.offset===0,a=i.anchor.offset===0&&i.focus.offset===0;if(s||a){const c=o.getPreviousSibling();if(v.$isDecoratorNode(c))return Be(c),!0}else{const d=l.getRangeAt(0).cloneRange().getClientRects();if(d.length>0){const u=d[1]||d[0],m=La(l.anchorNode).getBoundingClientRect();if(Math.abs(u.top-m.top)<=Da){const _=o.getPreviousSibling();if(v.$isDecoratorNode(_))return Be(_),!0}}}}return!1},v.COMMAND_PRIORITY_HIGH),t.registerCommand(v.KEY_ARROW_DOWN_COMMAND,()=>{const r=v.$getSelection();if(v.$isNodeSelection(r)){const o=r.getNodes()[0].getNextSibling();if(v.$isDecoratorNode(o))return Be(o),!0}if(v.$isRangeSelection(r)&&r.isCollapsed){const i=r.anchor.getNode().getTopLevelElement(),o=window.getSelection(),l=La(o.anchorNode),s=(i==null?void 0:i.getTextContent().trim())===""&&r.anchor.offset===0,a=o.rangeCount!==0&&o.anchorNode===l&&o.anchorOffset===l.children.length-1&&o.focusOffset===l.children.length-1;if(s||a){const c=i.getNextSibling();if(v.$isDecoratorNode(c))return Be(c),!0}else{const d=o.getRangeAt(0).cloneRange().getClientRects();if(d.length>0){const u=d[0],g=l.getBoundingClientRect();if(Math.abs(u.bottom-g.bottom)<Da){const m=i.getNextSibling();if(v.$isDecoratorNode(m))return Be(m),!0}}}}return!1},v.COMMAND_PRIORITY_HIGH),t.registerCommand(v.KEY_ARROW_LEFT_COMMAND,r=>{const i=v.$getSelection();if(n){if(v.$isNodeSelection(i)&&!i.getNodes()[0].getPreviousSibling())return r.preventDefault(),i.clear(),n==null||n(),!0;if(i.isCollapsed&&ro(i))return r.preventDefault(),n(),!0}if(!v.$isNodeSelection(i))return!1;const s=i.getNodes()[0].getTopLevelElement().getPreviousSibling();return v.$isDecoratorNode(s)?(r.preventDefault(),Be(s),!0):!1},v.COMMAND_PRIORITY_HIGH),t.registerCommand(v.KEY_ARROW_RIGHT_COMMAND,r=>{const i=v.$getSelection();if(!v.$isNodeSelection(i))return!1;const o=i.getNodes(),a=o[o.length-1].getTopLevelElement().getNextSibling();return v.$isDecoratorNode(a)?(r.preventDefault(),Be(a),!0):!1},v.COMMAND_PRIORITY_HIGH),t.registerCommand(v.KEY_BACKSPACE_COMMAND,r=>{const i=v.$getSelection();if(v.$isNodeSelection(i))return!1;if(v.$isRangeSelection(i)&&i.isCollapsed){const l=i.anchor.getNode(),s=l.getTopLevelElement(),a=s.getPreviousSibling(),c=i.anchor.offset===0&&i.focus.offset===0;if(c&&Qe.$isListItemNode(l)&&l.getIndent()===0&&l.isEmpty())return r.preventDefault(),t.dispatchCommand(v.INSERT_PARAGRAPH_COMMAND),!0;if(v.$isParagraphNode(l)&&l.isEmpty()&&v.$isDecoratorNode(a))return s.remove(),Be(a),!0;if(c&&Qe.$isListItemNode(l.getParent())){const d=l.getParent();if(d.getIndent()===0){r.preventDefault();const u=v.$createParagraphNode();return u.append(...d.getChildren()),d.replace(u),!0}}if(c&&v.$isDecoratorNode(a))return r.preventDefault(),a.remove(),!0}return!1},v.COMMAND_PRIORITY_HIGH),t.registerCommand(v.KEY_DELETE_COMMAND,r=>{const i=v.$getSelection();if(v.$isNodeSelection(i))return!1;if(v.$isRangeSelection(i)&&i.isCollapsed){const o=i.anchor,l=o.getNode(),s=l.getTopLevelElement(),a=s.getNextSibling();if((s==null?void 0:s.getTextContent().trim())===""&&i.anchor.offset===0&&v.$isDecoratorNode(a))return r.preventDefault(),s.remove(),Be(a),!0;if((o.type==="element"&&v.$isElementNode(l)&&o.offset===l.getChildrenSize()||o.type==="text"&&o.offset===l.getTextContentSize())&&v.$isDecoratorNode(a))return r.preventDefault(),a.remove(),!0}return!1},v.COMMAND_PRIORITY_HIGH),t.registerCommand(v.KEY_TAB_COMMAND,r=>{if(r.shiftKey&&n){const i=v.$getSelection();if(v.$isNodeSelection(i))return r.preventDefault(),i.clear(),n(),!0;let o;if(i.isCollapsed){const s=i.anchor.getNode();o=v.$isTextNode(s)?[s.getParent()]:[s]}else o=i.getNodes();return o.some(s=>s.getIndent&&s.getIndent()>0)?!1:(r.preventDefault(),n(),!0)}},v.COMMAND_PRIORITY_HIGH),t.registerCommand(v.PASTE_COMMAND,r=>{var a;const i=(a=r==null?void 0:r.clipboardData)==null?void 0:a.getData("text"),o=i==null?void 0:i.match(/^(https?:\/\/[^\s]+)$/),l=v.$getSelection(),s=l.getTextContent();if(o&&s.length>0){const c=o[1];if(v.$isRangeSelection(l)){const d=l.extract()[0],u=Wi.$createLinkNode(c),g=v.$createTextNode(s);g.setFormat(d.getFormat()),u.append(g),d.replace(u)}return!0}},v.COMMAND_PRIORITY_HIGH))),null}function Ia({containerElem:t=document.querySelector(".koenig-editor"),cursorDidExitAtTop:e}){const[n]=ie.useLexicalComposerContext();return i1({editor:n,containerElem:t,cursorDidExitAtTop:e})}var te={},le={},Pa={exports:{}};(function(t){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/**
32
32
  * Prism: Lightweight, robust, elegant syntax highlighting
33
33
  *
34
34
  * @license MIT <https://opensource.org/licenses/MIT>
35
35
  * @author Lea Verou <https://lea.verou.me>
36
36
  * @namespace
37
37
  * @public
38
- */var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,l={},s={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function p(v){return v instanceof a?new a(v.type,p(v.content),v.alias):Array.isArray(v)?v.map(p):v.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(p){return Object.prototype.toString.call(p).slice(8,-1)},objId:function(p){return p.__id||Object.defineProperty(p,"__id",{value:++o}),p.__id},clone:function p(v,T){T=T||{};var N,k;switch(s.util.type(v)){case"Object":if(k=s.util.objId(v),T[k])return T[k];N={},T[k]=N;for(var R in v)v.hasOwnProperty(R)&&(N[R]=p(v[R],T));return N;case"Array":return k=s.util.objId(v),T[k]?T[k]:(N=[],T[k]=N,v.forEach(function(I,$){N[$]=p(I,T)}),N);default:return v}},getLanguage:function(p){for(;p;){var v=i.exec(p.className);if(v)return v[1].toLowerCase();p=p.parentElement}return"none"},setLanguage:function(p,v){p.className=p.className.replace(RegExp(i,"gi"),""),p.classList.add("language-"+v)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(N){var p=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(N.stack)||[])[1];if(p){var v=document.getElementsByTagName("script");for(var T in v)if(v[T].src==p)return v[T]}return null}},isActive:function(p,v,T){for(var N="no-"+v;p;){var k=p.classList;if(k.contains(v))return!0;if(k.contains(N))return!1;p=p.parentElement}return!!T}},languages:{plain:l,plaintext:l,text:l,txt:l,extend:function(p,v){var T=s.util.clone(s.languages[p]);for(var N in v)T[N]=v[N];return T},insertBefore:function(p,v,T,N){N=N||s.languages;var k=N[p],R={};for(var I in k)if(k.hasOwnProperty(I)){if(I==v)for(var $ in T)T.hasOwnProperty($)&&(R[$]=T[$]);T.hasOwnProperty(I)||(R[I]=k[I])}var U=N[p];return N[p]=R,s.languages.DFS(s.languages,function(P,K){K===U&&P!=p&&(this[P]=R)}),R},DFS:function p(v,T,N,k){k=k||{};var R=s.util.objId;for(var I in v)if(v.hasOwnProperty(I)){T.call(v,I,v[I],N||I);var $=v[I],U=s.util.type($);U==="Object"&&!k[R($)]?(k[R($)]=!0,p($,T,null,k)):U==="Array"&&!k[R($)]&&(k[R($)]=!0,p($,T,I,k))}}},plugins:{},highlightAll:function(p,v){s.highlightAllUnder(document,p,v)},highlightAllUnder:function(p,v,T){var N={callback:T,container:p,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",N),N.elements=Array.prototype.slice.apply(N.container.querySelectorAll(N.selector)),s.hooks.run("before-all-elements-highlight",N);for(var k=0,R;R=N.elements[k++];)s.highlightElement(R,v===!0,N.callback)},highlightElement:function(p,v,T){var N=s.util.getLanguage(p),k=s.languages[N];s.util.setLanguage(p,N);var R=p.parentElement;R&&R.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(R,N);var I=p.textContent,$={element:p,language:N,grammar:k,code:I};function U(K){$.highlightedCode=K,s.hooks.run("before-insert",$),$.element.innerHTML=$.highlightedCode,s.hooks.run("after-highlight",$),s.hooks.run("complete",$),T&&T.call($.element)}if(s.hooks.run("before-sanity-check",$),R=$.element.parentElement,R&&R.nodeName.toLowerCase()==="pre"&&!R.hasAttribute("tabindex")&&R.setAttribute("tabindex","0"),!$.code){s.hooks.run("complete",$),T&&T.call($.element);return}if(s.hooks.run("before-highlight",$),!$.grammar){U(s.util.encode($.code));return}if(v&&r.Worker){var P=new Worker(s.filename);P.onmessage=function(K){U(K.data)},P.postMessage(JSON.stringify({language:$.language,code:$.code,immediateClose:!0}))}else U(s.highlight($.code,$.grammar,$.language))},highlight:function(p,v,T){var N={code:p,grammar:v,language:T};if(s.hooks.run("before-tokenize",N),!N.grammar)throw new Error('The language "'+N.language+'" has no grammar.');return N.tokens=s.tokenize(N.code,N.grammar),s.hooks.run("after-tokenize",N),a.stringify(s.util.encode(N.tokens),N.language)},tokenize:function(p,v){var T=v.rest;if(T){for(var N in T)v[N]=T[N];delete v.rest}var k=new u;return g(k,k.head,p),d(p,k,v,k.head,0),f(k)},hooks:{all:{},add:function(p,v){var T=s.hooks.all;T[p]=T[p]||[],T[p].push(v)},run:function(p,v){var T=s.hooks.all[p];if(!(!T||!T.length))for(var N=0,k;k=T[N++];)k(v)}},Token:a};r.Prism=s;function a(p,v,T,N){this.type=p,this.content=v,this.alias=T,this.length=(N||"").length|0}a.stringify=function p(v,T){if(typeof v=="string")return v;if(Array.isArray(v)){var N="";return v.forEach(function(U){N+=p(U,T)}),N}var k={type:v.type,content:p(v.content,T),tag:"span",classes:["token",v.type],attributes:{},language:T},R=v.alias;R&&(Array.isArray(R)?Array.prototype.push.apply(k.classes,R):k.classes.push(R)),s.hooks.run("wrap",k);var I="";for(var $ in k.attributes)I+=" "+$+'="'+(k.attributes[$]||"").replace(/"/g,"&quot;")+'"';return"<"+k.tag+' class="'+k.classes.join(" ")+'"'+I+">"+k.content+"</"+k.tag+">"};function c(p,v,T,N){p.lastIndex=v;var k=p.exec(T);if(k&&N&&k[1]){var R=k[1].length;k.index+=R,k[0]=k[0].slice(R)}return k}function d(p,v,T,N,k,R){for(var I in T)if(!(!T.hasOwnProperty(I)||!T[I])){var $=T[I];$=Array.isArray($)?$:[$];for(var U=0;U<$.length;++U){if(R&&R.cause==I+","+U)return;var P=$[U],K=P.inside,se=!!P.lookbehind,ne=!!P.greedy,Oe=P.alias;if(ne&&!P.pattern.global){var Ce=P.pattern.toString().match(/[imsuy]*$/)[0];P.pattern=RegExp(P.pattern.source,Ce+"g")}for(var Pe=P.pattern||P,V=N.next,X=k;V!==v.tail&&!(R&&X>=R.reach);X+=V.value.length,V=V.next){var we=V.value;if(v.length>p.length)return;if(!(we instanceof a)){var sn=1,Fe;if(ne){if(Fe=c(Pe,X,p,se),!Fe||Fe.index>=p.length)break;var Mt=Fe.index,an=Fe.index+Fe[0].length,He=X;for(He+=V.value.length;Mt>=He;)V=V.next,He+=V.value.length;if(He-=V.value.length,X=He,V.value instanceof a)continue;for(var $t=V;$t!==v.tail&&(He<an||typeof $t.value=="string");$t=$t.next)sn++,He+=$t.value.length;sn--,we=p.slice(X,He),Fe.index-=X}else if(Fe=c(Pe,0,we,se),!Fe)continue;var Mt=Fe.index,At=Fe[0],Dt=we.slice(0,Mt),Lt=we.slice(Mt+At.length),pt=X+we.length;R&&pt>R.reach&&(R.reach=pt);var It=V.prev;Dt&&(It=g(v,It,Dt),X+=Dt.length),m(v,It,sn);var u0=new a(I,K?s.tokenize(At,K):At,Oe,At);if(V=g(v,It,u0),Lt&&g(v,V,Lt),sn>1){var wo={cause:I+","+U,reach:pt};d(p,v,T,V.prev,X,wo),R&&wo.reach>R.reach&&(R.reach=wo.reach)}}}}}}function u(){var p={value:null,prev:null,next:null},v={value:null,prev:p,next:null};p.next=v,this.head=p,this.tail=v,this.length=0}function g(p,v,T){var N=v.next,k={value:T,prev:v,next:N};return v.next=k,N.prev=k,p.length++,k}function m(p,v,T){for(var N=v.next,k=0;k<T&&N!==p.tail;k++)N=N.next;v.next=N,N.prev=v,p.length-=k}function f(p){for(var v=[],T=p.head.next;T!==p.tail;)v.push(T.value),T=T.next;return v}if(!r.document)return r.addEventListener&&(s.disableWorkerMessageHandler||r.addEventListener("message",function(p){var v=JSON.parse(p.data),T=v.language,N=v.code,k=v.immediateClose;r.postMessage(s.highlight(N,s.languages[T],T)),k&&r.close()},!1)),s;var _=s.util.currentScript();_&&(s.filename=_.src,_.hasAttribute("data-manual")&&(s.manual=!0));function C(){s.manual||s.highlightAll()}if(!s.manual){var E=document.readyState;E==="loading"||E==="interactive"&&_&&_.defer?document.addEventListener("DOMContentLoaded",C):window.requestAnimationFrame?window.requestAnimationFrame(C):window.setTimeout(C,16)}return s}(e);t.exports&&(t.exports=n),typeof Lo<"u"&&(Lo.Prism=n),n.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]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&amp;/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,o){var l={};l["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[o]},l.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:l}};s["language-"+o]={pattern:/[\s\S]+/,inside:n.languages[o]};var a={};a[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:s},n.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\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:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.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\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,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:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var o=r.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(n),n.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:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.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}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.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:n.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:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.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:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.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:n.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"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.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")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading\u2026",i=function(_,C){return"\u2716 Error "+_+" while fetching file: "+C},o="\u2716 Error: File does not exist or is empty",l={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},s="data-src-status",a="loading",c="loaded",d="failed",u="pre[data-src]:not(["+s+'="'+c+'"]):not(['+s+'="'+a+'"])';function g(_,C,E){var p=new XMLHttpRequest;p.open("GET",_,!0),p.onreadystatechange=function(){p.readyState==4&&(p.status<400&&p.responseText?C(p.responseText):p.status>=400?E(i(p.status,p.statusText)):E(o))},p.send(null)}function m(_){var C=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(_||"");if(C){var E=Number(C[1]),p=C[2],v=C[3];return p?v?[E,Number(v)]:[E,void 0]:[E,E]}}n.hooks.add("before-highlightall",function(_){_.selector+=", "+u}),n.hooks.add("before-sanity-check",function(_){var C=_.element;if(C.matches(u)){_.code="",C.setAttribute(s,a);var E=C.appendChild(document.createElement("CODE"));E.textContent=r;var p=C.getAttribute("data-src"),v=_.language;if(v==="none"){var T=(/\.(\w+)$/.exec(p)||[,"none"])[1];v=l[T]||T}n.util.setLanguage(E,v),n.util.setLanguage(C,v);var N=n.plugins.autoloader;N&&N.loadLanguages(v),g(p,function(k){C.setAttribute(s,c);var R=m(C.getAttribute("data-range"));if(R){var I=k.split(/\r\n?|\n/g),$=R[0],U=R[1]==null?I.length:R[1];$<0&&($+=I.length),$=Math.max(0,Math.min($-1,I.length)),U<0&&(U+=I.length),U=Math.max(0,Math.min(U,I.length)),k=I.slice($,U).join(`
39
- `),C.hasAttribute("data-start")||C.setAttribute("data-start",String($+1))}E.textContent=k,n.highlightElement(E)},function(k){C.setAttribute(s,d),E.textContent=k})}}),n.plugins.fileHighlight={highlight:function(C){for(var E=(C||document).querySelectorAll(u),p=0,v;v=E[p++];)n.highlightElement(v)}};var f=!1;n.fileHighlight=function(){f||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),f=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(Pa),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:/[{}[\];(),.:]/},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+)*(?:\.(?:\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,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(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&amp;/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i["language-"+n]={pattern:/[\s\S]+/,inside:Prism.languages[n]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:i},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\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:[e,"language-"+e],inside:Prism.languages[e]},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,function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(d){return d=d.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+d+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.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:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+o+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+o+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:t.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"},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(d){["url","bold","italic","strike","code-snippet"].forEach(function(u){d!==u&&(t.languages.markdown[d].inside.content.inside[u]=t.languages.markdown[u])})}),t.hooks.add("after-tokenize",function(d){if(d.language!=="markdown"&&d.language!=="md")return;function u(g){if(!(!g||typeof g=="string"))for(var m=0,f=g.length;m<f;m++){var _=g[m];if(_.type!=="code"){u(_.content);continue}var C=_.content[1],E=_.content[3];if(C&&E&&C.type==="code-language"&&E.type==="code-block"&&typeof C.content=="string"){var p=C.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");p=(/[a-z][\w-]*/i.exec(p)||[""])[0].toLowerCase();var v="language-"+p;E.alias?typeof E.alias=="string"?E.alias=[E.alias,v]:E.alias.push(v):E.alias=[v]}}}u(d.tokens)}),t.hooks.add("wrap",function(d){if(d.type==="code-block"){for(var u="",g=0,m=d.classes.length;g<m;g++){var f=d.classes[g],_=/language-(.+)/.exec(f);if(_){u=_[1];break}}var C=t.languages[u];if(C)d.content=t.highlight(c(d.content),C,u);else if(u&&u!=="none"&&t.plugins.autoloader){var E="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);d.attributes.id=E,t.plugins.autoloader.loadLanguages(u,function(){var p=document.getElementById(E);p&&(p.innerHTML=t.highlight(p.textContent,t.languages[u],u))})}}});var l=RegExp(t.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},a=String.fromCodePoint||String.fromCharCode;function c(d){var u=d.replace(l,"");return u=u.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(g,m){if(m=m.toLowerCase(),m[0]==="#"){var f;return m[1]==="x"?f=parseInt(m.slice(2),16):f=Number(m.slice(1)),a(f)}else{var _=s[m];return _||g}}),u}t.languages.md=t.languages.markdown}(Prism),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,function(t){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.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\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,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:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism),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,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?|CASE|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:/[;[\]()`,.]/},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])+|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,function(t){for(var e=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)e=e.replace(/<self>/g,function(){return e});e=e.replace(/<self>/g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+e),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],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:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string}(Prism),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:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,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(t){t.inside.interpolation.inside=Prism.languages.swift});var on=Pa.exports,Wn=me,D=w;let Fa={c:"C",clike:"C-like",css:"CSS",html:"HTML",js:"JavaScript",markdown:"Markdown",objc:"Objective-C",plain:"Plain Text",py:"Python",rust:"Rust",sql:"SQL",swift:"Swift",xml:"XML"},za={javascript:"js",md:"markdown",plaintext:"plain",python:"py",text:"plain"};function Ba(t){return za[t]||t}class bt extends D.TextNode{constructor(e,n,r){super(e,r),this.__highlightType=n}static getType(){return"code-highlight"}static clone(e){return new bt(e.__text,e.__highlightType||void 0,e.__key)}getHighlightType(){return this.getLatest().__highlightType}createDOM(e){let n=super.createDOM(e);return e=ro(e.theme,this.__highlightType),Wn.addClassNamesToElement(n,e),n}updateDOM(e,n,r){let i=super.updateDOM(e,n,r);return e=ro(r.theme,e.__highlightType),r=ro(r.theme,this.__highlightType),e!==r&&(e&&Wn.removeClassNamesFromElement(n,e),r&&Wn.addClassNamesToElement(n,r)),i}static importJSON(e){let n=Rt(e.text,e.highlightType);return n.setFormat(e.format),n.setDetail(e.detail),n.setMode(e.mode),n.setStyle(e.style),n}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType(),type:"code-highlight",version:1}}setFormat(){return this}}function ro(t,e){return e&&t&&t.codeHighlight&&t.codeHighlight[e]}function Rt(t,e){return D.$applyNodeReplacement(new bt(t,e))}function _e(t){return t instanceof bt}function Un(t){let e=null,n=t.getPreviousSiblings();for(n.push(t);0<n.length&&(t=n.pop(),_e(t)&&(e=t),!D.$isLineBreakNode(t)););return e}function io(t){let e=null,n=t.getNextSiblings();for(n.unshift(t);0<n.length&&(t=n.shift(),_e(t)&&(e=t),!D.$isLineBreakNode(t)););return e}let Ha=t=>t!=null&&on.languages.hasOwnProperty(t)?t:void 0;function Ka(t,e){for(let n of t.childNodes){if(n instanceof HTMLElement&&n.tagName===e)return!0;Ka(n,e)}return!1}class gt extends D.ElementNode{static getType(){return"code"}static clone(e){return new gt(e.__language,e.__key)}constructor(e,n){super(n),this.__language=Ha(e)}createDOM(e){let n=document.createElement("code");return Wn.addClassNamesToElement(n,e.theme.code),n.setAttribute("spellcheck","false"),(e=this.getLanguage())&&n.setAttribute("data-highlight-language",e),n}updateDOM(e,n){let r=this.__language;return e=e.__language,r?r!==e&&n.setAttribute("data-highlight-language",r):e&&n.removeAttribute("data-highlight-language"),!1}static importDOM(){return{code:e=>e.textContent!=null&&(/\r?\n/.test(e.textContent)||Ka(e,"BR"))?{conversion:Wa,priority:1}:null,div:()=>({conversion:o1,priority:1}),pre:()=>({conversion:Wa,priority:0}),table:e=>oo(e)?{conversion:l1,priority:4}:null,td:e=>{let n=e.closest("table");return e.classList.contains("js-file-line")?{conversion:s1,priority:4}:n&&oo(n)?{conversion:Ua,priority:4}:null},tr:e=>(e=e.closest("table"))&&oo(e)?{conversion:Ua,priority:4}:null}}static importJSON(e){let n=jn(e.language);return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),type:"code",version:1}}insertNewAfter(e){var n=this.getChildren(),r=n.length;if(2<=r&&n[r-1].getTextContent()===`
38
+ */var n=function(r){var i=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,o=0,l={},s={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function p(w){return w instanceof a?new a(w.type,p(w.content),w.alias):Array.isArray(w)?w.map(p):w.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(p){return Object.prototype.toString.call(p).slice(8,-1)},objId:function(p){return p.__id||Object.defineProperty(p,"__id",{value:++o}),p.__id},clone:function p(w,T){T=T||{};var N,k;switch(s.util.type(w)){case"Object":if(k=s.util.objId(w),T[k])return T[k];N={},T[k]=N;for(var R in w)w.hasOwnProperty(R)&&(N[R]=p(w[R],T));return N;case"Array":return k=s.util.objId(w),T[k]?T[k]:(N=[],T[k]=N,w.forEach(function(I,$){N[$]=p(I,T)}),N);default:return w}},getLanguage:function(p){for(;p;){var w=i.exec(p.className);if(w)return w[1].toLowerCase();p=p.parentElement}return"none"},setLanguage:function(p,w){p.className=p.className.replace(RegExp(i,"gi"),""),p.classList.add("language-"+w)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(N){var p=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(N.stack)||[])[1];if(p){var w=document.getElementsByTagName("script");for(var T in w)if(w[T].src==p)return w[T]}return null}},isActive:function(p,w,T){for(var N="no-"+w;p;){var k=p.classList;if(k.contains(w))return!0;if(k.contains(N))return!1;p=p.parentElement}return!!T}},languages:{plain:l,plaintext:l,text:l,txt:l,extend:function(p,w){var T=s.util.clone(s.languages[p]);for(var N in w)T[N]=w[N];return T},insertBefore:function(p,w,T,N){N=N||s.languages;var k=N[p],R={};for(var I in k)if(k.hasOwnProperty(I)){if(I==w)for(var $ in T)T.hasOwnProperty($)&&(R[$]=T[$]);T.hasOwnProperty(I)||(R[I]=k[I])}var U=N[p];return N[p]=R,s.languages.DFS(s.languages,function(P,K){K===U&&P!=p&&(this[P]=R)}),R},DFS:function p(w,T,N,k){k=k||{};var R=s.util.objId;for(var I in w)if(w.hasOwnProperty(I)){T.call(w,I,w[I],N||I);var $=w[I],U=s.util.type($);U==="Object"&&!k[R($)]?(k[R($)]=!0,p($,T,null,k)):U==="Array"&&!k[R($)]&&(k[R($)]=!0,p($,T,I,k))}}},plugins:{},highlightAll:function(p,w){s.highlightAllUnder(document,p,w)},highlightAllUnder:function(p,w,T){var N={callback:T,container:p,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",N),N.elements=Array.prototype.slice.apply(N.container.querySelectorAll(N.selector)),s.hooks.run("before-all-elements-highlight",N);for(var k=0,R;R=N.elements[k++];)s.highlightElement(R,w===!0,N.callback)},highlightElement:function(p,w,T){var N=s.util.getLanguage(p),k=s.languages[N];s.util.setLanguage(p,N);var R=p.parentElement;R&&R.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(R,N);var I=p.textContent,$={element:p,language:N,grammar:k,code:I};function U(K){$.highlightedCode=K,s.hooks.run("before-insert",$),$.element.innerHTML=$.highlightedCode,s.hooks.run("after-highlight",$),s.hooks.run("complete",$),T&&T.call($.element)}if(s.hooks.run("before-sanity-check",$),R=$.element.parentElement,R&&R.nodeName.toLowerCase()==="pre"&&!R.hasAttribute("tabindex")&&R.setAttribute("tabindex","0"),!$.code){s.hooks.run("complete",$),T&&T.call($.element);return}if(s.hooks.run("before-highlight",$),!$.grammar){U(s.util.encode($.code));return}if(w&&r.Worker){var P=new Worker(s.filename);P.onmessage=function(K){U(K.data)},P.postMessage(JSON.stringify({language:$.language,code:$.code,immediateClose:!0}))}else U(s.highlight($.code,$.grammar,$.language))},highlight:function(p,w,T){var N={code:p,grammar:w,language:T};if(s.hooks.run("before-tokenize",N),!N.grammar)throw new Error('The language "'+N.language+'" has no grammar.');return N.tokens=s.tokenize(N.code,N.grammar),s.hooks.run("after-tokenize",N),a.stringify(s.util.encode(N.tokens),N.language)},tokenize:function(p,w){var T=w.rest;if(T){for(var N in T)w[N]=T[N];delete w.rest}var k=new u;return g(k,k.head,p),d(p,k,w,k.head,0),f(k)},hooks:{all:{},add:function(p,w){var T=s.hooks.all;T[p]=T[p]||[],T[p].push(w)},run:function(p,w){var T=s.hooks.all[p];if(!(!T||!T.length))for(var N=0,k;k=T[N++];)k(w)}},Token:a};r.Prism=s;function a(p,w,T,N){this.type=p,this.content=w,this.alias=T,this.length=(N||"").length|0}a.stringify=function p(w,T){if(typeof w=="string")return w;if(Array.isArray(w)){var N="";return w.forEach(function(U){N+=p(U,T)}),N}var k={type:w.type,content:p(w.content,T),tag:"span",classes:["token",w.type],attributes:{},language:T},R=w.alias;R&&(Array.isArray(R)?Array.prototype.push.apply(k.classes,R):k.classes.push(R)),s.hooks.run("wrap",k);var I="";for(var $ in k.attributes)I+=" "+$+'="'+(k.attributes[$]||"").replace(/"/g,"&quot;")+'"';return"<"+k.tag+' class="'+k.classes.join(" ")+'"'+I+">"+k.content+"</"+k.tag+">"};function c(p,w,T,N){p.lastIndex=w;var k=p.exec(T);if(k&&N&&k[1]){var R=k[1].length;k.index+=R,k[0]=k[0].slice(R)}return k}function d(p,w,T,N,k,R){for(var I in T)if(!(!T.hasOwnProperty(I)||!T[I])){var $=T[I];$=Array.isArray($)?$:[$];for(var U=0;U<$.length;++U){if(R&&R.cause==I+","+U)return;var P=$[U],K=P.inside,se=!!P.lookbehind,ne=!!P.greedy,Oe=P.alias;if(ne&&!P.pattern.global){var Ce=P.pattern.toString().match(/[imsuy]*$/)[0];P.pattern=RegExp(P.pattern.source,Ce+"g")}for(var Pe=P.pattern||P,G=N.next,X=k;G!==w.tail&&!(R&&X>=R.reach);X+=G.value.length,G=G.next){var we=G.value;if(w.length>p.length)return;if(!(we instanceof a)){var sn=1,Fe;if(ne){if(Fe=c(Pe,X,p,se),!Fe||Fe.index>=p.length)break;var Mt=Fe.index,an=Fe.index+Fe[0].length,Ke=X;for(Ke+=G.value.length;Mt>=Ke;)G=G.next,Ke+=G.value.length;if(Ke-=G.value.length,X=Ke,G.value instanceof a)continue;for(var $t=G;$t!==w.tail&&(Ke<an||typeof $t.value=="string");$t=$t.next)sn++,Ke+=$t.value.length;sn--,we=p.slice(X,Ke),Fe.index-=X}else if(Fe=c(Pe,0,we,se),!Fe)continue;var Mt=Fe.index,At=Fe[0],Dt=we.slice(0,Mt),Lt=we.slice(Mt+At.length),pt=X+we.length;R&&pt>R.reach&&(R.reach=pt);var It=G.prev;Dt&&(It=g(w,It,Dt),X+=Dt.length),m(w,It,sn);var u0=new a(I,K?s.tokenize(At,K):At,Oe,At);if(G=g(w,It,u0),Lt&&g(w,G,Lt),sn>1){var yo={cause:I+","+U,reach:pt};d(p,w,T,G.prev,X,yo),R&&yo.reach>R.reach&&(R.reach=yo.reach)}}}}}}function u(){var p={value:null,prev:null,next:null},w={value:null,prev:p,next:null};p.next=w,this.head=p,this.tail=w,this.length=0}function g(p,w,T){var N=w.next,k={value:T,prev:w,next:N};return w.next=k,N.prev=k,p.length++,k}function m(p,w,T){for(var N=w.next,k=0;k<T&&N!==p.tail;k++)N=N.next;w.next=N,N.prev=w,p.length-=k}function f(p){for(var w=[],T=p.head.next;T!==p.tail;)w.push(T.value),T=T.next;return w}if(!r.document)return r.addEventListener&&(s.disableWorkerMessageHandler||r.addEventListener("message",function(p){var w=JSON.parse(p.data),T=w.language,N=w.code,k=w.immediateClose;r.postMessage(s.highlight(N,s.languages[T],T)),k&&r.close()},!1)),s;var _=s.util.currentScript();_&&(s.filename=_.src,_.hasAttribute("data-manual")&&(s.manual=!0));function C(){s.manual||s.highlightAll()}if(!s.manual){var E=document.readyState;E==="loading"||E==="interactive"&&_&&_.defer?document.addEventListener("DOMContentLoaded",C):window.requestAnimationFrame?window.requestAnimationFrame(C):window.setTimeout(C,16)}return s}(e);t.exports&&(t.exports=n),typeof Io<"u"&&(Io.Prism=n),n.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]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&amp;/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(i,o){var l={};l["language-"+o]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[o]},l.cdata=/^<!\[CDATA\[|\]\]>$/i;var s={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:l}};s["language-"+o]={pattern:/[\s\S]+/,inside:n.languages[o]};var a={};a[i]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return i}),"i"),lookbehind:!0,greedy:!0,inside:s},n.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,i){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\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:[i,"language-"+i],inside:n.languages[i]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var i=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+i.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\\((?:"+i.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+i.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+i.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:i,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:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var o=r.languages.markup;o&&(o.tag.addInlined("style","css"),o.tag.addAttribute("style","css"))}(n),n.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:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.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}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,n.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:n.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:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.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:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.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:n.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"}}),n.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.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")),n.languages.js=n.languages.javascript,function(){if(typeof n>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading\u2026",i=function(_,C){return"\u2716 Error "+_+" while fetching file: "+C},o="\u2716 Error: File does not exist or is empty",l={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},s="data-src-status",a="loading",c="loaded",d="failed",u="pre[data-src]:not(["+s+'="'+c+'"]):not(['+s+'="'+a+'"])';function g(_,C,E){var p=new XMLHttpRequest;p.open("GET",_,!0),p.onreadystatechange=function(){p.readyState==4&&(p.status<400&&p.responseText?C(p.responseText):p.status>=400?E(i(p.status,p.statusText)):E(o))},p.send(null)}function m(_){var C=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(_||"");if(C){var E=Number(C[1]),p=C[2],w=C[3];return p?w?[E,Number(w)]:[E,void 0]:[E,E]}}n.hooks.add("before-highlightall",function(_){_.selector+=", "+u}),n.hooks.add("before-sanity-check",function(_){var C=_.element;if(C.matches(u)){_.code="",C.setAttribute(s,a);var E=C.appendChild(document.createElement("CODE"));E.textContent=r;var p=C.getAttribute("data-src"),w=_.language;if(w==="none"){var T=(/\.(\w+)$/.exec(p)||[,"none"])[1];w=l[T]||T}n.util.setLanguage(E,w),n.util.setLanguage(C,w);var N=n.plugins.autoloader;N&&N.loadLanguages(w),g(p,function(k){C.setAttribute(s,c);var R=m(C.getAttribute("data-range"));if(R){var I=k.split(/\r\n?|\n/g),$=R[0],U=R[1]==null?I.length:R[1];$<0&&($+=I.length),$=Math.max(0,Math.min($-1,I.length)),U<0&&(U+=I.length),U=Math.max(0,Math.min(U,I.length)),k=I.slice($,U).join(`
39
+ `),C.hasAttribute("data-start")||C.setAttribute("data-start",String($+1))}E.textContent=k,n.highlightElement(E)},function(k){C.setAttribute(s,d),E.textContent=k})}}),n.plugins.fileHighlight={highlight:function(C){for(var E=(C||document).querySelectorAll(u),p=0,w;w=E[p++];)n.highlightElement(w)}};var f=!1;n.fileHighlight=function(){f||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),f=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(Pa),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:/[{}[\];(),.:]/},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+)*(?:\.(?:\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,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(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&amp;/,"&"))}),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r["language-"+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:r}};i["language-"+n]={pattern:/[\s\S]+/,inside:Prism.languages[n]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:i},Prism.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(t,e){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\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:[e,"language-"+e],inside:Prism.languages[e]},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,function(t){var e=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(d){return d=d.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+d+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,i=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return r}),o=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.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:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+i+o+"(?:"+i+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+i+o+")(?:"+i+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+i+")"+o+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+i+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:t.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"},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(d){["url","bold","italic","strike","code-snippet"].forEach(function(u){d!==u&&(t.languages.markdown[d].inside.content.inside[u]=t.languages.markdown[u])})}),t.hooks.add("after-tokenize",function(d){if(d.language!=="markdown"&&d.language!=="md")return;function u(g){if(!(!g||typeof g=="string"))for(var m=0,f=g.length;m<f;m++){var _=g[m];if(_.type!=="code"){u(_.content);continue}var C=_.content[1],E=_.content[3];if(C&&E&&C.type==="code-language"&&E.type==="code-block"&&typeof C.content=="string"){var p=C.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");p=(/[a-z][\w-]*/i.exec(p)||[""])[0].toLowerCase();var w="language-"+p;E.alias?typeof E.alias=="string"?E.alias=[E.alias,w]:E.alias.push(w):E.alias=[w]}}}u(d.tokens)}),t.hooks.add("wrap",function(d){if(d.type==="code-block"){for(var u="",g=0,m=d.classes.length;g<m;g++){var f=d.classes[g],_=/language-(.+)/.exec(f);if(_){u=_[1];break}}var C=t.languages[u];if(C)d.content=t.highlight(c(d.content),C,u);else if(u&&u!=="none"&&t.plugins.autoloader){var E="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);d.attributes.id=E,t.plugins.autoloader.loadLanguages(u,function(){var p=document.getElementById(E);p&&(p.innerHTML=t.highlight(p.textContent,t.languages[u],u))})}}});var l=RegExp(t.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},a=String.fromCodePoint||String.fromCharCode;function c(d){var u=d.replace(l,"");return u=u.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(g,m){if(m=m.toLowerCase(),m[0]==="#"){var f;return m[1]==="x"?f=parseInt(m.slice(2),16):f=Number(m.slice(1)),a(f)}else{var _=s[m];return _||g}}),u}t.languages.md=t.languages.markdown}(Prism),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,function(t){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.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\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,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:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism),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,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?|CASE|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:/[;[\]()`,.]/},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])+|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,function(t){for(var e=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)e=e.replace(/<self>/g,function(){return e});e=e.replace(/<self>/g,function(){return/[^\s\S]/.source}),t.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+e),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],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:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},t.languages.rust["closure-params"].inside.rest=t.languages.rust,t.languages.rust.attribute.inside.string=t.languages.rust.string}(Prism),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:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,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(t){t.inside.interpolation.inside=Prism.languages.swift});var on=Pa.exports,Wn=me,D=v;let Fa={c:"C",clike:"C-like",css:"CSS",html:"HTML",js:"JavaScript",markdown:"Markdown",objc:"Objective-C",plain:"Plain Text",py:"Python",rust:"Rust",sql:"SQL",swift:"Swift",xml:"XML"},za={javascript:"js",md:"markdown",plaintext:"plain",python:"py",text:"plain"};function Ba(t){return za[t]||t}class bt extends D.TextNode{constructor(e,n,r){super(e,r),this.__highlightType=n}static getType(){return"code-highlight"}static clone(e){return new bt(e.__text,e.__highlightType||void 0,e.__key)}getHighlightType(){return this.getLatest().__highlightType}createDOM(e){let n=super.createDOM(e);return e=io(e.theme,this.__highlightType),Wn.addClassNamesToElement(n,e),n}updateDOM(e,n,r){let i=super.updateDOM(e,n,r);return e=io(r.theme,e.__highlightType),r=io(r.theme,this.__highlightType),e!==r&&(e&&Wn.removeClassNamesFromElement(n,e),r&&Wn.addClassNamesToElement(n,r)),i}static importJSON(e){let n=Rt(e.text,e.highlightType);return n.setFormat(e.format),n.setDetail(e.detail),n.setMode(e.mode),n.setStyle(e.style),n}exportJSON(){return{...super.exportJSON(),highlightType:this.getHighlightType(),type:"code-highlight",version:1}}setFormat(){return this}}function io(t,e){return e&&t&&t.codeHighlight&&t.codeHighlight[e]}function Rt(t,e){return D.$applyNodeReplacement(new bt(t,e))}function _e(t){return t instanceof bt}function Un(t){let e=null,n=t.getPreviousSiblings();for(n.push(t);0<n.length&&(t=n.pop(),_e(t)&&(e=t),!D.$isLineBreakNode(t)););return e}function oo(t){let e=null,n=t.getNextSiblings();for(n.unshift(t);0<n.length&&(t=n.shift(),_e(t)&&(e=t),!D.$isLineBreakNode(t)););return e}let Ha=t=>t!=null&&on.languages.hasOwnProperty(t)?t:void 0;function Ka(t,e){for(let n of t.childNodes){if(n instanceof HTMLElement&&n.tagName===e)return!0;Ka(n,e)}return!1}class gt extends D.ElementNode{static getType(){return"code"}static clone(e){return new gt(e.__language,e.__key)}constructor(e,n){super(n),this.__language=Ha(e)}createDOM(e){let n=document.createElement("code");return Wn.addClassNamesToElement(n,e.theme.code),n.setAttribute("spellcheck","false"),(e=this.getLanguage())&&n.setAttribute("data-highlight-language",e),n}updateDOM(e,n){let r=this.__language;return e=e.__language,r?r!==e&&n.setAttribute("data-highlight-language",r):e&&n.removeAttribute("data-highlight-language"),!1}static importDOM(){return{code:e=>e.textContent!=null&&(/\r?\n/.test(e.textContent)||Ka(e,"BR"))?{conversion:Wa,priority:1}:null,div:()=>({conversion:o1,priority:1}),pre:()=>({conversion:Wa,priority:0}),table:e=>lo(e)?{conversion:l1,priority:4}:null,td:e=>{let n=e.closest("table");return e.classList.contains("js-file-line")?{conversion:s1,priority:4}:n&&lo(n)?{conversion:Ua,priority:4}:null},tr:e=>(e=e.closest("table"))&&lo(e)?{conversion:Ua,priority:4}:null}}static importJSON(e){let n=jn(e.language);return n.setFormat(e.format),n.setIndent(e.indent),n.setDirection(e.direction),n}exportJSON(){return{...super.exportJSON(),language:this.getLanguage(),type:"code",version:1}}insertNewAfter(e){var n=this.getChildren(),r=n.length;if(2<=r&&n[r-1].getTextContent()===`
40
40
  `&&n[r-2].getTextContent()===`
41
- `&&e.isCollapsed()&&e.anchor.key===this.__key&&e.anchor.offset===r)return n[r-1].remove(),n[r-2].remove(),e=D.$createParagraphNode(),this.insertAfter(e),e;n=e.anchor.getNode();var i=Un(n);if(i!=null){for(r=0,i=i.getTextContent();r<i.length&&/[\t ]/.test(i[r]);)r+=1;if(0<r)return r=i.substring(0,r),r=Rt(r),n.insertAfter(r),e.insertNodes([D.$createLineBreakNode()]),r.select(),r}return null}canInsertTab(){let e=D.$getSelection();return!!(D.$isRangeSelection(e)&&e.isCollapsed())}canIndent(){return!1}collapseAtStart(){let e=D.$createParagraphNode();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}setLanguage(e){this.getWritable().__language=Ha(e)}getLanguage(){return this.getLatest().__language}}function jn(t){return D.$applyNodeReplacement(new gt(t))}function Pr(t){return t instanceof gt}function Wa(){return{node:jn(),preformatted:!0}}function o1(t){let e=t.style.fontFamily.match("monospace")!==null;return e||a1(t)?{after:n=>{let r=t.parentNode;return r!=null&&t!==r.lastChild&&n.push(D.$createLineBreakNode()),n},node:e?jn():null,preformatted:e}:{node:null}}function l1(){return{node:jn(),preformatted:!0}}function Ua(){return{node:null}}function s1(t){return{after:e=>(t.parentNode&&t.parentNode.nextSibling&&e.push(D.$createLineBreakNode()),e),node:null}}function a1(t){for(t=t.parentElement;t!==null;){if(t.style.fontFamily.match("monospace")!==null)return!0;t=t.parentElement}return!1}function oo(t){return t.classList.contains("js-file-line-container")}let ja={tokenize(t,e){return on.tokenize(t,on.languages[e||""]||on.languages.javascript)}};function Fr(t,e){var n=t.length;let r=-1;if(e)for(e=0;e<n;e++){let i=t[e];if(i!==" "&&i!==" "){r=e;break}}else for(--n;-1<n;n--)if(e=t[n],e!==" "&&e!==" "){r=n;break}return r}function Ya(t){let e=null,n=-1;var r=t.getPreviousSiblings();for(r.push(t);0<r.length;){var i=r.pop();if(_e(i)){var o=i.getTextContent();o=Fr(o,!0),o!==-1&&(e=i,n=o)}if(D.$isLineBreakNode(i))break}if(e===null)for(t=t.getNextSiblings();0<t.length;){if(r=t.shift(),_e(r)&&(i=r.getTextContent(),i=Fr(i,!0),i!==-1)){e=r,n=i;break}if(D.$isLineBreakNode(r))break}return{node:e,offset:n}}function Va(t){let e=null,n=-1;var r=t.getNextSiblings();for(r.unshift(t);0<r.length;){var i=r.shift();if(_e(i)){var o=i.getTextContent();o=Fr(o,!1),o!==-1&&(e=i,n=o+1)}if(D.$isLineBreakNode(i))break}if(e===null)for(t=t.getPreviousSiblings();0<t.length;){if(r=t.pop(),_e(r)&&(i=r.getTextContent(),i=Fr(i,!1),i!==-1)){e=r,n=i+1;break}if(D.$isLineBreakNode(r))break}return{node:e,offset:n}}function Ga(t,e,n){let r=t.getParent();Pr(r)?Za(r,e,n):_e(t)&&t.replace(D.$createTextNode(t.__text))}let lo=new Set;function Za(t,e,n){let r=t.getKey();lo.has(r)||(lo.add(r),t.getLanguage()===void 0&&t.setLanguage("javascript"),e.update(()=>{c1(r,()=>{var i=D.$getNodeByKey(r);if(!Pr(i)||!i.isAttached())return!1;var o=i.getTextContent();o=n.tokenize(o,i.getLanguage()||"javascript"),o=Ja(o);var l=i.getChildren();for(i=0;i<l.length&&Xa(l[i],o[i]);)i++;var s=l.length;let a=o.length,c=Math.min(s,a)-i,d=0;for(;d<c;)if(d++,!Xa(l[s-d],o[a-d])){d--;break}l=i,s-=d,o=o.slice(i,a-d);let{from:u,to:g,nodesForReplacement:m}={from:l,nodesForReplacement:o,to:s};return u!==g||m.length?(t.splice(u,g-u,m),!0):!1})},{onUpdate:()=>{lo.delete(r)},skipTransforms:!0}))}function Ja(t){let e=[];return t.forEach(n=>{if(typeof n=="string"){n=n.split(`
42
- `);for(var r=0;r<n.length;r++){let i=n[r];i.length&&e.push(Rt(i)),r<n.length-1&&e.push(D.$createLineBreakNode())}}else({content:r}=n),typeof r=="string"?e.push(Rt(r,n.type)):Array.isArray(r)&&r.length===1&&typeof r[0]=="string"?e.push(Rt(r[0],n.type)):Array.isArray(r)&&e.push(...Ja(r))}),e}function c1(t,e){if(t=D.$getNodeByKey(t),Pr(t)&&t.isAttached()){var n=D.$getSelection();if(D.$isRangeSelection(n)){n=n.anchor;var r=n.offset,i=n.type==="element"&&D.$isLineBreakNode(t.getChildAtIndex(n.offset-1)),o=0;if(!i){let l=n.getNode();o=r+l.getPreviousSiblings().reduce((s,a)=>s+a.getTextContentSize(),0)}e()&&(i?n.getNode().select(r,r):t.getChildren().some(l=>{let s=D.$isTextNode(l);if(s||D.$isLineBreakNode(l)){let a=l.getTextContentSize();if(s&&a>=o)return l.select(o,o),!0;o-=a}return!1}))}else e()}}function Xa(t,e){return _e(t)&&_e(e)?t.__text===e.__text&&t.__highlightType===e.__highlightType:!!(D.$isLineBreakNode(t)&&D.$isLineBreakNode(e))}function qa(t){var e=D.$getSelection();if(!D.$isRangeSelection(e)||e.isCollapsed())return!1;e=e.getNodes();for(var n=0;n<e.length;n++){var r=e[n];if(!_e(r)&&!D.$isLineBreakNode(r))return!1}for(n=Un(e[0]),n!=null&&Qa(n,t),n=1;n<e.length;n++)r=e[n],D.$isLineBreakNode(e[n-1])&&_e(r)&&Qa(r,t);return!0}function Qa(t,e){let n=t.getTextContent();e===D.INDENT_CONTENT_COMMAND?0<n.length&&/\s/.test(n[0])?t.setTextContent(" "+n):(e=Rt(" "),t.insertBefore(e)):n.indexOf(" ")===0&&(n.length===1?t.remove():t.setTextContent(n.substring(1)))}function ec(t,e){let n=D.$getSelection();if(!D.$isRangeSelection(n))return!1;let{anchor:r,focus:i}=n,o=r.offset,l=i.offset,s=r.getNode(),a=i.getNode();var c=t===D.KEY_ARROW_UP_COMMAND;if(!_e(s)||!_e(a))return!1;if(!e.altKey){if(n.isCollapsed()){if(t=s.getParentOrThrow(),c&&o===0&&s.getPreviousSibling()===null){if(t.getPreviousSibling()===null)return t.selectPrevious(),e.preventDefault(),!0}else if(!c&&o===s.getTextContentSize()&&s.getNextSibling()===null&&t.getNextSibling()===null)return t.selectNext(),e.preventDefault(),!0}return!1}var d=Un(s);let u=io(a);if(d==null||u==null)return!1;let g=d.getNodesBetween(u);for(let f=0;f<g.length;f++){let _=g[f];if(!_e(_)&&!D.$isLineBreakNode(_))return!1}if(e.preventDefault(),e.stopPropagation(),e=c?d.getPreviousSibling():u.getNextSibling(),!D.$isLineBreakNode(e)||(d=c?e.getPreviousSibling():e.getNextSibling(),d==null))return!0;c=c?Un(d):io(d);let m=c!=null?c:d;return e.remove(),g.forEach(f=>f.remove()),t===D.KEY_ARROW_UP_COMMAND?(g.forEach(f=>m.insertBefore(f)),m.insertBefore(e)):(m.insertAfter(e),m=e,g.forEach(f=>{m.insertAfter(f),m=f})),n.setTextNodeRange(s,o,a,l),!0}function tc(t,e){let n=D.$getSelection();if(!D.$isRangeSelection(n))return!1;let{anchor:r,focus:i}=n,o=r.getNode(),l=i.getNode();if(t=t===D.MOVE_TO_START,!_e(o)||!_e(l))return!1;let s,a;return t?{node:s,offset:a}=Ya(l):{node:s,offset:a}=Va(l),s!==null&&a!==-1&&n.setTextNodeRange(s,a,s,a),e.preventDefault(),e.stopPropagation(),!0}le.$createCodeHighlightNode=Rt,le.$createCodeNode=jn,le.$isCodeHighlightNode=_e,le.$isCodeNode=Pr,le.CODE_LANGUAGE_FRIENDLY_NAME_MAP=Fa,le.CODE_LANGUAGE_MAP=za,le.CodeHighlightNode=bt,le.CodeNode=gt,le.DEFAULT_CODE_LANGUAGE="javascript",le.PrismTokenizer=ja,le.getCodeLanguages=()=>Object.keys(on.languages).filter(t=>typeof on.languages[t]!="function").sort(),le.getDefaultCodeLanguage=()=>"javascript",le.getEndOfCodeInLine=Va,le.getFirstCodeHighlightNodeOfLine=Un,le.getLanguageFriendlyName=function(t){return t=Ba(t),Fa[t]||t},le.getLastCodeHighlightNodeOfLine=io,le.getStartOfCodeInLine=Ya,le.normalizeCodeLang=Ba,le.registerCodeHighlighting=function(t,e){if(!t.hasNodes([gt,bt]))throw Error("CodeHighlightPlugin: CodeNode or CodeHighlightNode not registered on editor");return e==null&&(e=ja),Wn.mergeRegister(t.registerMutationListener(gt,n=>{t.update(()=>{for(let[o,l]of n)if(l!=="destroyed"){var r=D.$getNodeByKey(o);if(r!==null)e:{var i=r;if(r=t.getElementByKey(i.getKey()),r===null)break e;i=i.getChildren();let s=i.length;if(s===r.__cachedChildrenLength)break e;r.__cachedChildrenLength=s;let a="1",c=1;for(let d=0;d<s;d++)D.$isLineBreakNode(i[d])&&(a+=`
43
- `+ ++c);r.setAttribute("data-gutter",a)}}})}),t.registerNodeTransform(gt,n=>Za(n,t,e)),t.registerNodeTransform(D.TextNode,n=>Ga(n,t,e)),t.registerNodeTransform(bt,n=>Ga(n,t,e)),t.registerCommand(D.INDENT_CONTENT_COMMAND,()=>qa(D.INDENT_CONTENT_COMMAND),D.COMMAND_PRIORITY_LOW),t.registerCommand(D.OUTDENT_CONTENT_COMMAND,()=>qa(D.OUTDENT_CONTENT_COMMAND),D.COMMAND_PRIORITY_LOW),t.registerCommand(D.KEY_ARROW_UP_COMMAND,n=>ec(D.KEY_ARROW_UP_COMMAND,n),D.COMMAND_PRIORITY_LOW),t.registerCommand(D.KEY_ARROW_DOWN_COMMAND,n=>ec(D.KEY_ARROW_DOWN_COMMAND,n),D.COMMAND_PRIORITY_LOW),t.registerCommand(D.MOVE_TO_END,n=>tc(D.MOVE_TO_END,n),D.COMMAND_PRIORITY_LOW),t.registerCommand(D.MOVE_TO_START,n=>tc(D.MOVE_TO_START,n),D.COMMAND_PRIORITY_LOW))};var d1=le,Y=w,Yn=d1,ve=Qe,ht=nt,u1=me,so=Wi;function ao(t,e){let n={};for(let r of t)t=e(r),n[t]?n[t].push(r):n[t]=[r];return n}function co(t){return t=ao(t,e=>e.type),{element:t.element||[],textFormat:t["text-format"]||[],textMatch:t["text-match"]||[]}}let zr=/[!-/:-@[-`{-~\s]/;function g1(t){let e=co(t),n=e.textFormat.filter(r=>r.format.length===1);return()=>{let r=[];var i=Y.$getRoot().getChildren();for(let o of i)i=h1(o,e.element,n,e.textMatch),i!=null&&r.push(i);return r.join(`
41
+ `&&e.isCollapsed()&&e.anchor.key===this.__key&&e.anchor.offset===r)return n[r-1].remove(),n[r-2].remove(),e=D.$createParagraphNode(),this.insertAfter(e),e;n=e.anchor.getNode();var i=Un(n);if(i!=null){for(r=0,i=i.getTextContent();r<i.length&&/[\t ]/.test(i[r]);)r+=1;if(0<r)return r=i.substring(0,r),r=Rt(r),n.insertAfter(r),e.insertNodes([D.$createLineBreakNode()]),r.select(),r}return null}canInsertTab(){let e=D.$getSelection();return!!(D.$isRangeSelection(e)&&e.isCollapsed())}canIndent(){return!1}collapseAtStart(){let e=D.$createParagraphNode();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}setLanguage(e){this.getWritable().__language=Ha(e)}getLanguage(){return this.getLatest().__language}}function jn(t){return D.$applyNodeReplacement(new gt(t))}function Pr(t){return t instanceof gt}function Wa(){return{node:jn(),preformatted:!0}}function o1(t){let e=t.style.fontFamily.match("monospace")!==null;return e||a1(t)?{after:n=>{let r=t.parentNode;return r!=null&&t!==r.lastChild&&n.push(D.$createLineBreakNode()),n},node:e?jn():null,preformatted:e}:{node:null}}function l1(){return{node:jn(),preformatted:!0}}function Ua(){return{node:null}}function s1(t){return{after:e=>(t.parentNode&&t.parentNode.nextSibling&&e.push(D.$createLineBreakNode()),e),node:null}}function a1(t){for(t=t.parentElement;t!==null;){if(t.style.fontFamily.match("monospace")!==null)return!0;t=t.parentElement}return!1}function lo(t){return t.classList.contains("js-file-line-container")}let ja={tokenize(t,e){return on.tokenize(t,on.languages[e||""]||on.languages.javascript)}};function Fr(t,e){var n=t.length;let r=-1;if(e)for(e=0;e<n;e++){let i=t[e];if(i!==" "&&i!==" "){r=e;break}}else for(--n;-1<n;n--)if(e=t[n],e!==" "&&e!==" "){r=n;break}return r}function Ya(t){let e=null,n=-1;var r=t.getPreviousSiblings();for(r.push(t);0<r.length;){var i=r.pop();if(_e(i)){var o=i.getTextContent();o=Fr(o,!0),o!==-1&&(e=i,n=o)}if(D.$isLineBreakNode(i))break}if(e===null)for(t=t.getNextSiblings();0<t.length;){if(r=t.shift(),_e(r)&&(i=r.getTextContent(),i=Fr(i,!0),i!==-1)){e=r,n=i;break}if(D.$isLineBreakNode(r))break}return{node:e,offset:n}}function Va(t){let e=null,n=-1;var r=t.getNextSiblings();for(r.unshift(t);0<r.length;){var i=r.shift();if(_e(i)){var o=i.getTextContent();o=Fr(o,!1),o!==-1&&(e=i,n=o+1)}if(D.$isLineBreakNode(i))break}if(e===null)for(t=t.getPreviousSiblings();0<t.length;){if(r=t.pop(),_e(r)&&(i=r.getTextContent(),i=Fr(i,!1),i!==-1)){e=r,n=i+1;break}if(D.$isLineBreakNode(r))break}return{node:e,offset:n}}function Ga(t,e,n){let r=t.getParent();Pr(r)?Za(r,e,n):_e(t)&&t.replace(D.$createTextNode(t.__text))}let so=new Set;function Za(t,e,n){let r=t.getKey();so.has(r)||(so.add(r),t.getLanguage()===void 0&&t.setLanguage("javascript"),e.update(()=>{c1(r,()=>{var i=D.$getNodeByKey(r);if(!Pr(i)||!i.isAttached())return!1;var o=i.getTextContent();o=n.tokenize(o,i.getLanguage()||"javascript"),o=Ja(o);var l=i.getChildren();for(i=0;i<l.length&&Xa(l[i],o[i]);)i++;var s=l.length;let a=o.length,c=Math.min(s,a)-i,d=0;for(;d<c;)if(d++,!Xa(l[s-d],o[a-d])){d--;break}l=i,s-=d,o=o.slice(i,a-d);let{from:u,to:g,nodesForReplacement:m}={from:l,nodesForReplacement:o,to:s};return u!==g||m.length?(t.splice(u,g-u,m),!0):!1})},{onUpdate:()=>{so.delete(r)},skipTransforms:!0}))}function Ja(t){let e=[];return t.forEach(n=>{if(typeof n=="string"){n=n.split(`
42
+ `);for(var r=0;r<n.length;r++){let i=n[r];i.length&&e.push(Rt(i)),r<n.length-1&&e.push(D.$createLineBreakNode())}}else({content:r}=n),typeof r=="string"?e.push(Rt(r,n.type)):Array.isArray(r)&&r.length===1&&typeof r[0]=="string"?e.push(Rt(r[0],n.type)):Array.isArray(r)&&e.push(...Ja(r))}),e}function c1(t,e){if(t=D.$getNodeByKey(t),Pr(t)&&t.isAttached()){var n=D.$getSelection();if(D.$isRangeSelection(n)){n=n.anchor;var r=n.offset,i=n.type==="element"&&D.$isLineBreakNode(t.getChildAtIndex(n.offset-1)),o=0;if(!i){let l=n.getNode();o=r+l.getPreviousSiblings().reduce((s,a)=>s+a.getTextContentSize(),0)}e()&&(i?n.getNode().select(r,r):t.getChildren().some(l=>{let s=D.$isTextNode(l);if(s||D.$isLineBreakNode(l)){let a=l.getTextContentSize();if(s&&a>=o)return l.select(o,o),!0;o-=a}return!1}))}else e()}}function Xa(t,e){return _e(t)&&_e(e)?t.__text===e.__text&&t.__highlightType===e.__highlightType:!!(D.$isLineBreakNode(t)&&D.$isLineBreakNode(e))}function qa(t){var e=D.$getSelection();if(!D.$isRangeSelection(e)||e.isCollapsed())return!1;e=e.getNodes();for(var n=0;n<e.length;n++){var r=e[n];if(!_e(r)&&!D.$isLineBreakNode(r))return!1}for(n=Un(e[0]),n!=null&&Qa(n,t),n=1;n<e.length;n++)r=e[n],D.$isLineBreakNode(e[n-1])&&_e(r)&&Qa(r,t);return!0}function Qa(t,e){let n=t.getTextContent();e===D.INDENT_CONTENT_COMMAND?0<n.length&&/\s/.test(n[0])?t.setTextContent(" "+n):(e=Rt(" "),t.insertBefore(e)):n.indexOf(" ")===0&&(n.length===1?t.remove():t.setTextContent(n.substring(1)))}function ec(t,e){let n=D.$getSelection();if(!D.$isRangeSelection(n))return!1;let{anchor:r,focus:i}=n,o=r.offset,l=i.offset,s=r.getNode(),a=i.getNode();var c=t===D.KEY_ARROW_UP_COMMAND;if(!_e(s)||!_e(a))return!1;if(!e.altKey){if(n.isCollapsed()){if(t=s.getParentOrThrow(),c&&o===0&&s.getPreviousSibling()===null){if(t.getPreviousSibling()===null)return t.selectPrevious(),e.preventDefault(),!0}else if(!c&&o===s.getTextContentSize()&&s.getNextSibling()===null&&t.getNextSibling()===null)return t.selectNext(),e.preventDefault(),!0}return!1}var d=Un(s);let u=oo(a);if(d==null||u==null)return!1;let g=d.getNodesBetween(u);for(let f=0;f<g.length;f++){let _=g[f];if(!_e(_)&&!D.$isLineBreakNode(_))return!1}if(e.preventDefault(),e.stopPropagation(),e=c?d.getPreviousSibling():u.getNextSibling(),!D.$isLineBreakNode(e)||(d=c?e.getPreviousSibling():e.getNextSibling(),d==null))return!0;c=c?Un(d):oo(d);let m=c!=null?c:d;return e.remove(),g.forEach(f=>f.remove()),t===D.KEY_ARROW_UP_COMMAND?(g.forEach(f=>m.insertBefore(f)),m.insertBefore(e)):(m.insertAfter(e),m=e,g.forEach(f=>{m.insertAfter(f),m=f})),n.setTextNodeRange(s,o,a,l),!0}function tc(t,e){let n=D.$getSelection();if(!D.$isRangeSelection(n))return!1;let{anchor:r,focus:i}=n,o=r.getNode(),l=i.getNode();if(t=t===D.MOVE_TO_START,!_e(o)||!_e(l))return!1;let s,a;return t?{node:s,offset:a}=Ya(l):{node:s,offset:a}=Va(l),s!==null&&a!==-1&&n.setTextNodeRange(s,a,s,a),e.preventDefault(),e.stopPropagation(),!0}le.$createCodeHighlightNode=Rt,le.$createCodeNode=jn,le.$isCodeHighlightNode=_e,le.$isCodeNode=Pr,le.CODE_LANGUAGE_FRIENDLY_NAME_MAP=Fa,le.CODE_LANGUAGE_MAP=za,le.CodeHighlightNode=bt,le.CodeNode=gt,le.DEFAULT_CODE_LANGUAGE="javascript",le.PrismTokenizer=ja,le.getCodeLanguages=()=>Object.keys(on.languages).filter(t=>typeof on.languages[t]!="function").sort(),le.getDefaultCodeLanguage=()=>"javascript",le.getEndOfCodeInLine=Va,le.getFirstCodeHighlightNodeOfLine=Un,le.getLanguageFriendlyName=function(t){return t=Ba(t),Fa[t]||t},le.getLastCodeHighlightNodeOfLine=oo,le.getStartOfCodeInLine=Ya,le.normalizeCodeLang=Ba,le.registerCodeHighlighting=function(t,e){if(!t.hasNodes([gt,bt]))throw Error("CodeHighlightPlugin: CodeNode or CodeHighlightNode not registered on editor");return e==null&&(e=ja),Wn.mergeRegister(t.registerMutationListener(gt,n=>{t.update(()=>{for(let[o,l]of n)if(l!=="destroyed"){var r=D.$getNodeByKey(o);if(r!==null)e:{var i=r;if(r=t.getElementByKey(i.getKey()),r===null)break e;i=i.getChildren();let s=i.length;if(s===r.__cachedChildrenLength)break e;r.__cachedChildrenLength=s;let a="1",c=1;for(let d=0;d<s;d++)D.$isLineBreakNode(i[d])&&(a+=`
43
+ `+ ++c);r.setAttribute("data-gutter",a)}}})}),t.registerNodeTransform(gt,n=>Za(n,t,e)),t.registerNodeTransform(D.TextNode,n=>Ga(n,t,e)),t.registerNodeTransform(bt,n=>Ga(n,t,e)),t.registerCommand(D.INDENT_CONTENT_COMMAND,()=>qa(D.INDENT_CONTENT_COMMAND),D.COMMAND_PRIORITY_LOW),t.registerCommand(D.OUTDENT_CONTENT_COMMAND,()=>qa(D.OUTDENT_CONTENT_COMMAND),D.COMMAND_PRIORITY_LOW),t.registerCommand(D.KEY_ARROW_UP_COMMAND,n=>ec(D.KEY_ARROW_UP_COMMAND,n),D.COMMAND_PRIORITY_LOW),t.registerCommand(D.KEY_ARROW_DOWN_COMMAND,n=>ec(D.KEY_ARROW_DOWN_COMMAND,n),D.COMMAND_PRIORITY_LOW),t.registerCommand(D.MOVE_TO_END,n=>tc(D.MOVE_TO_END,n),D.COMMAND_PRIORITY_LOW),t.registerCommand(D.MOVE_TO_START,n=>tc(D.MOVE_TO_START,n),D.COMMAND_PRIORITY_LOW))};var d1=le,Y=v,Yn=d1,ve=Qe,ht=nt,u1=me,ao=Wi;function co(t,e){let n={};for(let r of t)t=e(r),n[t]?n[t].push(r):n[t]=[r];return n}function uo(t){return t=co(t,e=>e.type),{element:t.element||[],textFormat:t["text-format"]||[],textMatch:t["text-match"]||[]}}let zr=/[!-/:-@[-`{-~\s]/;function g1(t){let e=uo(t),n=e.textFormat.filter(r=>r.format.length===1);return()=>{let r=[];var i=Y.$getRoot().getChildren();for(let o of i)i=h1(o,e.element,n,e.textMatch),i!=null&&r.push(i);return r.join(`
44
44
 
45
45
  `)}}function h1(t,e,n,r){for(let i of e)if(e=i.export(t,o=>Br(o,n,r)),e!=null)return e;return Y.$isElementNode(t)?Br(t,n,r):null}function Br(t,e,n){let r=[];t=t.getChildren();e:for(let i of t){for(let o of n)if(t=o.export(i,l=>Br(l,e,n),(l,s)=>nc(l,s,e)),t!=null){r.push(t);continue e}Y.$isLineBreakNode(i)?r.push(`
46
- `):Y.$isTextNode(i)?r.push(nc(i,i.getTextContent(),e)):Y.$isElementNode(i)&&r.push(Br(i,e,n))}return r.join("")}function nc(t,e,n){let r=e.trim(),i=r,o=new Set;for(let s of n){n=s.format[0];let a=s.tag;if(uo(t,n)&&!o.has(n)){o.add(n);var l=rc(t,!0);uo(l,n)||(i=a+i),l=rc(t,!1),uo(l,n)||(i+=a)}}return e.replace(r,i)}function rc(t,e){let n=e?t.getPreviousSibling():t.getNextSibling();for(n||(t=t.getParentOrThrow(),t.isInline()&&(n=e?t.getPreviousSibling():t.getNextSibling()));n;){if(Y.$isElementNode(n)){if(!n.isInline())break;if(t=e?n.getLastDescendant():n.getFirstDescendant(),Y.$isTextNode(t))return t;n=e?n.getPreviousSibling():n.getNextSibling()}if(Y.$isTextNode(n))return n;if(!Y.$isElementNode(n))break}return null}function uo(t,e){return Y.$isTextNode(t)&&t.hasFormat(e)}let ln=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",f1=ln&&"documentMode"in document?document.documentMode:null;ln&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),ln&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),ln&&"InputEvent"in window&&!f1&&"getTargetRanges"in new window.InputEvent("input");let ic=ln&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),oc=ln&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,p1=/^\s{0,3}$/,lc=/^```(\w{1,10})?\s?$/;function m1(t){let e=co(t),n=_1(e.textFormat);return r=>{var i=r.split(`
46
+ `):Y.$isTextNode(i)?r.push(nc(i,i.getTextContent(),e)):Y.$isElementNode(i)&&r.push(Br(i,e,n))}return r.join("")}function nc(t,e,n){let r=e.trim(),i=r,o=new Set;for(let s of n){n=s.format[0];let a=s.tag;if(go(t,n)&&!o.has(n)){o.add(n);var l=rc(t,!0);go(l,n)||(i=a+i),l=rc(t,!1),go(l,n)||(i+=a)}}return e.replace(r,i)}function rc(t,e){let n=e?t.getPreviousSibling():t.getNextSibling();for(n||(t=t.getParentOrThrow(),t.isInline()&&(n=e?t.getPreviousSibling():t.getNextSibling()));n;){if(Y.$isElementNode(n)){if(!n.isInline())break;if(t=e?n.getLastDescendant():n.getFirstDescendant(),Y.$isTextNode(t))return t;n=e?n.getPreviousSibling():n.getNextSibling()}if(Y.$isTextNode(n))return n;if(!Y.$isElementNode(n))break}return null}function go(t,e){return Y.$isTextNode(t)&&t.hasFormat(e)}let ln=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",f1=ln&&"documentMode"in document?document.documentMode:null;ln&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),ln&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),ln&&"InputEvent"in window&&!f1&&"getTargetRanges"in new window.InputEvent("input");let ic=ln&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),oc=ln&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,p1=/^\s{0,3}$/,lc=/^```(\w{1,10})?\s?$/;function m1(t){let e=uo(t),n=_1(e.textFormat);return r=>{var i=r.split(`
47
47
  `),o=i.length;r=Y.$getRoot(),r.clear();for(let f=0;f<o;f++){var l=i[f];e:{var s=i,a=f,c=r,d=s[a].match(lc);if(d){for(var u=a,g=s.length;++u<g;)if(s[u].match(lc)){d=Yn.$createCodeNode(d[1]),s=Y.$createTextNode(s.slice(a+1,u).join(`
48
- `)),d.append(s),c.append(d),c=[d,u];break e}}c=[null,a]}let[_,C]=c;if(_!=null)f=C;else{c=l,g=r;var m=e.element;u=n,s=e.textMatch,a=c.trim(),d=Y.$createTextNode(a),l=Y.$createParagraphNode(),l.append(d),g.append(l);for(let{regExp:E,replace:p}of m)if(g=c.match(E)){d.setTextContent(c.slice(g[0].length)),p(l,[d],g,!0);break}Hr(d,u,s),l.isAttached()&&0<a.length&&(c=l.getPreviousSibling(),Y.$isParagraphNode(c)||ht.$isQuoteNode(c)||ve.$isListNode(c))&&(u=c,ve.$isListNode(c)&&(c=c.getLastDescendant(),u=c==null?null:u1.$findMatchingParent(c,ve.$isListItemNode)),u!=null&&0<u.getTextContentSize()&&(u.splice(u.getChildrenSize(),0,[Y.$createLineBreakNode(),...l.getChildren()]),l.remove()))}}i=r.getChildren();for(let f of i)i=f,Y.$isParagraphNode(i)?(o=i.getFirstChild(),i=o==null||i.getChildrenSize()===1&&Y.$isTextNode(o)&&p1.test(o.getTextContent())):i=!1,i&&f.remove();r.selectEnd()}}function Hr(t,e,n){var r=t.getTextContent();let i=x1(r,e);if(i){var o,l;if(i[0]===r)var s=t;else{r=i.index||0;let a=r+i[0].length;r===0?[s,o]=t.splitText(a):[l,s,o]=t.splitText(r,a)}if(s.setTextContent(i[2]),t=e.transformersByTag[i[1]])for(let a of t.format)s.hasFormat(a)||s.toggleFormat(a);s.hasFormat("code")||Hr(s,e,n),l&&Hr(l,e,n),o&&Hr(o,e,n)}else sc(t,n)}function sc(t,e){e:for(;t;){for(let n of e){let r=t.getTextContent().match(n.importRegExp);if(!r)continue;let i=r.index||0,o=i+r[0].length,l,s,a;i===0?[l,t]=t.splitText(o):[s,l,a]=t.splitText(i,o),s&&sc(s,e),a&&(t=a),n.replace(l,r);continue e}break}}function x1(t,e){var n=t.match(e.openTagsRegExp);if(n==null)return null;for(let o of n){var r=o.replace(/^\s/,"");if(n=e.fullMatchRegExpByTag[r],n!=null&&(n=t.match(n),r=e.transformersByTag[r],n!=null&&r!=null)){if(r.intraword!==!1)return n;var{index:i=0}=n;if(r=t[i-1],i=t[i+n[0].length],!(r&&!zr.test(r)||i&&!zr.test(i)))return n}}return null}function _1(t){let e={},n={},r=[];for(let i of t){({tag:t}=i),e[t]=i;let o=t.replace(/(\*|\^)/g,"\\$1");r.push(o),n[t]=ic||oc?new RegExp(`(${o})(?![${o}\\s])(.*?[^${o}\\s])${o}(?!${o})`):new RegExp(`(?<![\\\\${o}])(${o})((\\\\${o})?.*?[^${o}\\s](\\\\${o})?)((?<!\\\\)|(?<=\\\\\\\\))(${o})(?![\\\\${o}])`)}return{fullMatchRegExpByTag:n,openTagsRegExp:new RegExp((ic||oc?"":"(?<![\\\\])")+"("+r.join("|")+")","g"),transformersByTag:e}}function ac(t,e,n){let r=n.length;for(;e>=r;e--){let i=e-r;if(cc(t,i,n,0,r)&&t[i+r]!==" ")return i}return-1}function cc(t,e,n,r,i){for(let o=0;o<i;o++)if(t[e+o]!==n[r+o])return!1;return!0}let dc=t=>(e,n,r)=>{r=t(r),r.append(...n),e.replace(r),r.select(0,0)},go=t=>(e,n,r)=>{var i=e.getPreviousSibling();const o=ve.$createListItemNode(t==="check"?r[3]==="x":void 0);ve.$isListNode(i)&&i.getListType()===t?(i.append(o),e.remove()):(i=ve.$createListNode(t,t==="number"?Number(r[2]):void 0),i.append(o),e.replace(i)),o.append(...n),o.select(0,0),(e=Math.floor(r[1].length/4))&&o.setIndent(e)},Kr=(t,e,n)=>{const r=[];var i=t.getChildren();let o=0;for(const s of i)if(ve.$isListItemNode(s)){if(s.getChildrenSize()===1&&(i=s.getFirstChild(),ve.$isListNode(i))){r.push(Kr(i,e,n+1));continue}i=" ".repeat(4*n);var l=t.getListType();l=l==="number"?`${t.getStart()+o}. `:l==="check"?`- [${s.getChecked()?"x":" "}] `:"- ",r.push(i+l+e(s)),o++}return r.join(`
48
+ `)),d.append(s),c.append(d),c=[d,u];break e}}c=[null,a]}let[_,C]=c;if(_!=null)f=C;else{c=l,g=r;var m=e.element;u=n,s=e.textMatch,a=c.trim(),d=Y.$createTextNode(a),l=Y.$createParagraphNode(),l.append(d),g.append(l);for(let{regExp:E,replace:p}of m)if(g=c.match(E)){d.setTextContent(c.slice(g[0].length)),p(l,[d],g,!0);break}Hr(d,u,s),l.isAttached()&&0<a.length&&(c=l.getPreviousSibling(),Y.$isParagraphNode(c)||ht.$isQuoteNode(c)||ve.$isListNode(c))&&(u=c,ve.$isListNode(c)&&(c=c.getLastDescendant(),u=c==null?null:u1.$findMatchingParent(c,ve.$isListItemNode)),u!=null&&0<u.getTextContentSize()&&(u.splice(u.getChildrenSize(),0,[Y.$createLineBreakNode(),...l.getChildren()]),l.remove()))}}i=r.getChildren();for(let f of i)i=f,Y.$isParagraphNode(i)?(o=i.getFirstChild(),i=o==null||i.getChildrenSize()===1&&Y.$isTextNode(o)&&p1.test(o.getTextContent())):i=!1,i&&f.remove();r.selectEnd()}}function Hr(t,e,n){var r=t.getTextContent();let i=x1(r,e);if(i){var o,l;if(i[0]===r)var s=t;else{r=i.index||0;let a=r+i[0].length;r===0?[s,o]=t.splitText(a):[l,s,o]=t.splitText(r,a)}if(s.setTextContent(i[2]),t=e.transformersByTag[i[1]])for(let a of t.format)s.hasFormat(a)||s.toggleFormat(a);s.hasFormat("code")||Hr(s,e,n),l&&Hr(l,e,n),o&&Hr(o,e,n)}else sc(t,n)}function sc(t,e){e:for(;t;){for(let n of e){let r=t.getTextContent().match(n.importRegExp);if(!r)continue;let i=r.index||0,o=i+r[0].length,l,s,a;i===0?[l,t]=t.splitText(o):[s,l,a]=t.splitText(i,o),s&&sc(s,e),a&&(t=a),n.replace(l,r);continue e}break}}function x1(t,e){var n=t.match(e.openTagsRegExp);if(n==null)return null;for(let o of n){var r=o.replace(/^\s/,"");if(n=e.fullMatchRegExpByTag[r],n!=null&&(n=t.match(n),r=e.transformersByTag[r],n!=null&&r!=null)){if(r.intraword!==!1)return n;var{index:i=0}=n;if(r=t[i-1],i=t[i+n[0].length],!(r&&!zr.test(r)||i&&!zr.test(i)))return n}}return null}function _1(t){let e={},n={},r=[];for(let i of t){({tag:t}=i),e[t]=i;let o=t.replace(/(\*|\^)/g,"\\$1");r.push(o),n[t]=ic||oc?new RegExp(`(${o})(?![${o}\\s])(.*?[^${o}\\s])${o}(?!${o})`):new RegExp(`(?<![\\\\${o}])(${o})((\\\\${o})?.*?[^${o}\\s](\\\\${o})?)((?<!\\\\)|(?<=\\\\\\\\))(${o})(?![\\\\${o}])`)}return{fullMatchRegExpByTag:n,openTagsRegExp:new RegExp((ic||oc?"":"(?<![\\\\])")+"("+r.join("|")+")","g"),transformersByTag:e}}function ac(t,e,n){let r=n.length;for(;e>=r;e--){let i=e-r;if(cc(t,i,n,0,r)&&t[i+r]!==" ")return i}return-1}function cc(t,e,n,r,i){for(let o=0;o<i;o++)if(t[e+o]!==n[r+o])return!1;return!0}let dc=t=>(e,n,r)=>{r=t(r),r.append(...n),e.replace(r),r.select(0,0)},ho=t=>(e,n,r)=>{var i=e.getPreviousSibling();const o=ve.$createListItemNode(t==="check"?r[3]==="x":void 0);ve.$isListNode(i)&&i.getListType()===t?(i.append(o),e.remove()):(i=ve.$createListNode(t,t==="number"?Number(r[2]):void 0),i.append(o),e.replace(i)),o.append(...n),o.select(0,0),(e=Math.floor(r[1].length/4))&&o.setIndent(e)},Kr=(t,e,n)=>{const r=[];var i=t.getChildren();let o=0;for(const s of i)if(ve.$isListItemNode(s)){if(s.getChildrenSize()===1&&(i=s.getFirstChild(),ve.$isListNode(i))){r.push(Kr(i,e,n+1));continue}i=" ".repeat(4*n);var l=t.getListType();l=l==="number"?`${t.getStart()+o}. `:l==="check"?`- [${s.getChecked()?"x":" "}] `:"- ",r.push(i+l+e(s)),o++}return r.join(`
49
49
  `)},uc={dependencies:[ht.HeadingNode],export:(t,e)=>{if(!ht.$isHeadingNode(t))return null;const n=Number(t.getTag().slice(1));return"#".repeat(n)+" "+e(t)},regExp:/^(#{1,6})\s/,replace:dc(t=>ht.$createHeadingNode("h"+t[1].length)),type:"element"},gc={dependencies:[ht.QuoteNode],export:(t,e)=>{if(!ht.$isQuoteNode(t))return null;t=e(t).split(`
50
50
  `),e=[];for(const n of t)e.push("> "+n);return e.join(`
51
51
  `)},regExp:/^>\s/,replace:(t,e,n,r)=>{if(r&&(n=t.getPreviousSibling(),ht.$isQuoteNode(n))){n.splice(n.getChildrenSize(),0,[Y.$createLineBreakNode(),...e]),n.select(0,0),t.remove();return}n=ht.$createQuoteNode(),n.append(...e),t.replace(n),n.select(0,0)},type:"element"},hc={dependencies:[Yn.CodeNode],export:t=>{if(!Yn.$isCodeNode(t))return null;const e=t.getTextContent();return"```"+(t.getLanguage()||"")+(e?`
52
- `+e:"")+"\n```"},regExp:/^```(\w{1,10})?\s/,replace:dc(t=>Yn.$createCodeNode(t?t[1]:void 0)),type:"element"},fc={dependencies:[ve.ListNode,ve.ListItemNode],export:(t,e)=>ve.$isListNode(t)?Kr(t,e,0):null,regExp:/^(\s*)[-*+]\s/,replace:go("bullet"),type:"element"},v1={dependencies:[ve.ListNode,ve.ListItemNode],export:(t,e)=>ve.$isListNode(t)?Kr(t,e,0):null,regExp:/^(\s*)(?:-\s)?\s?(\[(\s|x)?\])\s/i,replace:go("check"),type:"element"},pc={dependencies:[ve.ListNode,ve.ListItemNode],export:(t,e)=>ve.$isListNode(t)?Kr(t,e,0):null,regExp:/^(\s*)(\d{1,})\.\s/,replace:go("number"),type:"element"},mc={format:["code"],tag:"`",type:"text-format"},xc={format:["bold","italic"],tag:"***",type:"text-format"},_c={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},vc={format:["bold"],tag:"**",type:"text-format"},wc={format:["bold"],intraword:!1,tag:"__",type:"text-format"},yc={format:["strikethrough"],tag:"~~",type:"text-format"},kc={format:["italic"],tag:"*",type:"text-format"},Cc={format:["italic"],intraword:!1,tag:"_",type:"text-format"},Nc={dependencies:[so.LinkNode],export:(t,e,n)=>{if(!so.$isLinkNode(t))return null;e=`[${t.getTextContent()}](${t.getURL()})`;const r=t.getFirstChild();return t.getChildrenSize()===1&&Y.$isTextNode(r)?n(r,e):e},importRegExp:/(?:\[([^[]+)\])(?:\(([^()]+)\))/,regExp:/(?:\[([^[]+)\])(?:\(([^()]+)\))$/,replace:(t,e)=>{const[,n,r]=e;e=so.$createLinkNode(r);const i=Y.$createTextNode(n);i.setFormat(t.getFormat()),e.append(i),t.replace(e)},trigger:")",type:"text-match"},Ec=[uc,gc,hc,fc,pc],Tc=[mc,xc,_c,vc,wc,kc,Cc,yc],Sc=[Nc],Wr=[...Ec,...Tc,...Sc];te.$convertFromMarkdownString=function(t,e=Wr){return m1(e)(t)},te.$convertToMarkdownString=function(t=Wr){return g1(t)()},te.BOLD_ITALIC_STAR=xc,te.BOLD_ITALIC_UNDERSCORE=_c,te.BOLD_STAR=vc,te.BOLD_UNDERSCORE=wc,te.CHECK_LIST=v1,te.CODE=hc,te.ELEMENT_TRANSFORMERS=Ec,te.HEADING=uc,te.INLINE_CODE=mc,te.ITALIC_STAR=kc,te.ITALIC_UNDERSCORE=Cc,te.LINK=Nc,te.ORDERED_LIST=pc,te.QUOTE=gc,te.STRIKETHROUGH=yc,te.TEXT_FORMAT_TRANSFORMERS=Tc,te.TEXT_MATCH_TRANSFORMERS=Sc,te.TRANSFORMERS=Wr,te.UNORDERED_LIST=fc,te.registerMarkdownShortcuts=function(t,e=Wr){let n=co(e),r=ao(n.textFormat,({tag:o})=>o[o.length-1]),i=ao(n.textMatch,({trigger:o})=>o);for(let o of e)if(e=o.type,(e==="element"||e==="text-match")&&!t.hasNodes(o.dependencies))throw Error("Minified Lexical error #79; visit https://lexical.dev/docs/error?code=79 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");return t.registerUpdateListener(({tags:o,dirtyLeaves:l,editorState:s,prevEditorState:a})=>{if(!o.has("historic")){var c=s.read(Y.$getSelection);if(o=a.read(Y.$getSelection),Y.$isRangeSelection(o)&&Y.$isRangeSelection(c)&&c.isCollapsed()){a=c.anchor.key;var d=c.anchor.offset,u=s._nodeMap.get(a);Y.$isTextNode(u)&&l.has(a)&&(d===1||d===o.anchor.offset+1)&&t.update(()=>{if(!u.hasFormat("code")){var g=u.getParent();if(g!==null&&!Yn.$isCodeNode(g)){var m=c.anchor.offset;e:{var f=n.element,_=g.getParent();if(Y.$isRootOrShadowRoot(_)&&g.getFirstChild()===u&&(_=u.getTextContent(),_[m-1]===" ")){for(let{regExp:N,replace:k}of f)if((f=_.match(N))&&f[0].length===m){_=u.getNextSiblings();let[R,I]=u.splitText(m);R.remove(),_=I?[I,..._]:_,k(g,_,f,!1),g=!0;break e}}g=!1}if(!g){e:{if(f=u.getTextContent(),g=i[f[m-1]],g!=null){m<f.length&&(f=f.slice(0,m));for(E of g)if(g=f.match(E.regExp),g!==null){f=g.index||0,_=f+g[0].length;var C=void 0;f===0?[C]=u.splitText(_):[,C]=u.splitText(f,_),C.selectNext(0,0),E.replace(C,g);var E=!0;break e}}E=!1}if(!E)e:{_=u.getTextContent(),--m;var p=_[m];if(E=r[p])for(let N of E){var{tag:v}=N;E=v.length;let k=m-E+1;if(!(1<E&&!cc(_,k,v,0,E)||_[k-1]===" ")&&(C=_[m+1],N.intraword!==!1||!C||zr.test(C))){g=C=u,f=ac(_,k,v);for(var T=g;0>f&&(T=T.getPreviousSibling())&&!Y.$isLineBreakNode(T);)Y.$isTextNode(T)&&(f=T.getTextContent(),g=T,f=ac(f,f.length,v));if(!(0>f||g===C&&f+E===k||(v=g.getTextContent(),0<f&&v[f-1]===p||(T=v[f-1],N.intraword===!1&&T&&!zr.test(T))))){_=C.getTextContent(),_=_.slice(0,k)+_.slice(m+1),C.setTextContent(_),_=g===C?_:v,g.setTextContent(_.slice(0,f)+_.slice(f+E)),_=Y.$getSelection(),p=Y.$createRangeSelection(),Y.$setSelection(p),m=m-E*(g===C?2:1)+1,p.anchor.set(g.__key,f,"text"),p.focus.set(C.__key,m,"text");for(let R of N.format)p.hasFormat(R)||p.formatText(R);p.anchor.set(p.focus.key,p.focus.offset,p.focus.type);for(let R of N.format)p.hasFormat(R)&&p.toggleFormat(R);Y.$isRangeSelection(_)&&(p.format=_.format);break e}}}}}}}})}}})};var Ot=te,ho={},Vn={},w1=ie,y1=ia,k1=me,Be=w,Gn=S.default;let C1=Be.createCommand("INSERT_HORIZONTAL_RULE_COMMAND");function N1({nodeKey:t}){let[e]=w1.useLexicalComposerContext(),n=Gn.useRef(null),[r,i,o]=y1.useLexicalNodeSelection(t),l=Gn.useCallback(s=>(r&&Be.$isNodeSelection(Be.$getSelection())&&(s.preventDefault(),s=Be.$getNodeByKey(t),bc(s)&&s.remove(),i(!1)),!1),[r,t,i]);return Gn.useEffect(()=>k1.mergeRegister(e.registerCommand(Be.CLICK_COMMAND,s=>s.target===n.current?(s.shiftKey||o(),i(!r),!0):!1,Be.COMMAND_PRIORITY_LOW),e.registerCommand(Be.KEY_DELETE_COMMAND,l,Be.COMMAND_PRIORITY_LOW),e.registerCommand(Be.KEY_BACKSPACE_COMMAND,l,Be.COMMAND_PRIORITY_LOW)),[o,e,r,l,i]),Gn.createElement("hr",{ref:n,className:r?"selected":void 0})}class Zn extends Be.DecoratorNode{static getType(){return"horizontalrule"}static clone(e){return new Zn(e.__key)}static importJSON(){return fo()}static importDOM(){return{hr:()=>({conversion:E1,priority:0})}}exportJSON(){return{type:"horizontalrule",version:1}}exportDOM(){return{element:document.createElement("hr")}}createDOM(){let e=document.createElement("div");return e.style.display="contents",e}getTextContent(){return`
53
- `}isInline(){return!1}updateDOM(){return!1}decorate(){return Gn.createElement(N1,{nodeKey:this.__key})}}function E1(){return{node:fo()}}function fo(){return Be.$applyNodeReplacement(new Zn)}function bc(t){return t instanceof Zn}Vn.$createHorizontalRuleNode=fo,Vn.$isHorizontalRuleNode=bc,Vn.HorizontalRuleNode=Zn,Vn.INSERT_HORIZONTAL_RULE_COMMAND=C1;var T1=Vn,Rc=Ot,S1=ie,po=T1,b1=S.default;let Oc=[{dependencies:[po.HorizontalRuleNode],export:t=>po.$isHorizontalRuleNode(t)?"***":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(t,e,n,r)=>{e=po.$createHorizontalRuleNode(),r||t.getNextSibling()!=null?t.replace(e):t.insertBefore(e),e.selectNext()},type:"element"},...Rc.TRANSFORMERS];ho.DEFAULT_TRANSFORMERS=Oc,ho.MarkdownShortcutPlugin=function({transformers:t=Oc}){let[e]=S1.useLexicalComposerContext();return b1.useEffect(()=>Rc.registerMarkdownShortcuts(e,t),[e,t]),null};var R1=ho;const $c={dependencies:[St],export:t=>qu(t)?"---":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(t,e,n,r)=>{const i=Vi();r||t.getNextSibling()!=null?t.replace(i):t.insertBefore(i),i.selectNext()},type:"element"},Mc={dependencies:[nn],export:t=>{if(!tg(t))return null;const e=t.getTextContent();return"```"+(t.getLanguage()||"")+(e?`
54
- `+e:"")+"\n```"},regExp:/^```(\w{1,10})?\s/,replace:(t,e,n)=>{const r=n[1]||"",i=e[1],o=da(i,r);t.replace(o)},type:"element"},O1={dependencies:[rn],export:t=>{if(wg(t)){const{src:e,alt:n}=t.dataset;return`![${n}](${e})`}else return null},regExp:/^image! $/,replace:(t,e,n)=>{const o=xa({altText:"",src:""});t.replace(o)},type:"element"},Ac=[Ot.HEADING,Ot.QUOTE,Ot.UNORDERED_LIST,Ot.ORDERED_LIST,$c,Mc,O1],Dc=[...Ac,...Ot.TEXT_FORMAT_TRANSFORMERS,...Ot.TEXT_MATCH_TRANSFORMERS];function Lc({transformers:t=Dc}={}){return R1.MarkdownShortcutPlugin({transformers:t})}function Ur(t){const e=t.anchor,n=t.focus,r=t.anchor.getNode(),i=t.focus.getNode();return r===i?r:t.isBackward()?Ge.$isAtNodeEnd(n)?r:i:Ge.$isAtNodeEnd(e)?i:r}function $1({onClick:t}){return h("div",{className:"absolute top-[-2px] left-[-66px]","data-kg-plus-button":!0,children:h("button",{type:"button","aria-label":"Add a card",className:"group relative flex h-7 w-7 cursor-pointer items-center justify-center rounded-full border border-grey transition-all ease-linear hover:border-grey-900 md:h-9 md:w-9",onClick:t,children:h(Mo,{className:"h-4 w-4 stroke-grey-800 stroke-2 group-hover:stroke-grey-900"})})})}function M1({children:t}){return h("div",{className:"absolute left-[-16px]","data-kg-plus-menu":!0,children:t})}const A1=({label:t,children:e,...n})=>B("li",{role:"separator",className:"text-grey flex shrink-0 flex-col justify-center text-[1.1rem] font-semibold uppercase tracking-wide",...n,children:[h("span",{className:"mb-2 block px-4 pt-3",style:{minWidth:"calc(100% - 3.2rem)"},children:t}),h("ul",{role:"menu",children:e})]}),D1=({label:t,desc:e,isSelected:n,onClick:r,Icon:i,...o})=>h("li",{role:"presentation",children:B("button",{type:"button",role:"menuitem",className:`text-grey-800 hover:bg-grey-100 flex w-full cursor-pointer flex-row items-center border border-transparent px-4 py-[1rem] text-left ${n?"bg-grey-100":""}`,onMouseDown:s=>{s.preventDefault()},onClick:r,"data-kg-card-menu-item":t,"data-kg-cardmenu-selected":n,...o,children:[h("div",{className:"flex items-center",children:h(i,{className:"h-7 w-7"})}),B("div",{className:"flex flex-col",children:[h("div",{className:"text-grey-900 m-0 ml-4 truncate text-[1.3rem] font-medium leading-[1.6rem] tracking-[.02rem]",children:t}),h("div",{className:"text-grey m-0 ml-4 truncate text-xs font-normal leading-[1.6rem] tracking-[.02rem]",children:e})]})]})}),L1=({label:t,isSelected:e,Icon:n,...r})=>h("li",{role:"presentation",children:B("button",{type:"button",role:"menuitem",className:`text-grey-800 hover:bg-grey-100 flex w-full cursor-pointer flex-row items-center border border-transparent px-4 py-[1rem] ${e?"bg-grey-100":""}`,"data-kg-cardmenu-selected":e,...r,children:[h("div",{className:"flex items-center",children:h(n,{className:"h-7 w-7"})}),h("div",{className:"flex flex-col",children:h("div",{className:"text-grey-900 m-0 ml-4 truncate text-[1.3rem] font-medium leading-[1.6rem] tracking-[.02rem]",children:t})})]})}),Ic=({menu:t=new Map,insert:e=()=>{},selectedItemIndex:n})=>{const r=[];let i=0;for(const[o,l]of t){const s=[];l.forEach(a=>{const c=i===n,d=u=>{u.preventDefault(),e==null||e(a.insertCommand,{insertParams:a.insertParams,queryParams:a.queryParams})};!a.type||a.type==="card"?s.push(h(D1,{label:a.label,desc:a.desc,Icon:a.Icon,isSelected:c,onClick:d,"data-kg-cardmenu-idx":i},i)):a.type==="snippet"&&s.push(h(L1,{label:a.label,Icon:a.Icon,isSelected:c,onClick:d,"data-kg-cardmenu-idx":i},i)),i=i+1}),r.push(h(A1,{label:o,children:s},o))}return h("ul",{role:"menu",className:"not-kg-prose z-[9999999] m-0 mb-3 max-h-[376px] w-[312px] flex-col overflow-y-auto rounded-lg bg-white bg-clip-padding p-0 pt-0 font-sans text-sm shadow after:block after:pb-4",children:r})};function mo(t){const e=t._nodes,n=[];for(const[r,{klass:i}]of e)!i.kgMenu||n.push([r,i]);return n}function Pc(t,{query:e}={}){const n=new Map;e=e==null?void 0:e.toLowerCase();let r=-1;function i(o){if(e&&(!o.matches||!o.matches.find(s=>s.startsWith(e))))return;const l=o.section||"Primary";n.has(l)?n.get(l).push(o):n.set(l,[o]),r=r+1}for(const[o,l]of t)Array.isArray(l.kgMenu)?l.kgMenu.forEach(s=>i({nodeType:o,...s})):i({nodeType:o,...l.kgMenu});return{menu:n,maxItemIndex:r}}function I1(t){var U;const[e,n]=S.default.useState(!1),[r,i]=S.default.useState(!1),[o,l]=S.default.useState(0),[s,a]=S.default.useState(null),[c,d]=S.default.useState({}),u=S.default.useRef(null);function g(P){const K=P.getBoundingClientRect(),se=P.parentNode.getBoundingClientRect();return K.top-se.top}function m(P){const K=new Range;return K.setStart(P,0),K.setEnd(P,0),K}const f=S.default.useCallback(()=>{!s||(document.getSelection().removeAllRanges(),document.getSelection().addRange(s))},[s]),_=S.default.useCallback(P=>{const K=m(P);a(K),n(!0)},[n,a]),C=S.default.useCallback(()=>{n(!1),i(!1),a(null)},[n,i,a]),E=S.default.useCallback(P=>{P==null||P.preventDefault(),f(),i(!0)},[f,i]),p=S.default.useCallback(({resetCursor:P=!1}={})=>{P&&f(),i(!1)},[f,i]),v=S.default.useCallback(()=>{t.getEditorState().read(()=>{if(t.isComposing())return;const P=w.$getSelection();if(!w.$isRangeSelection(P)||!P.type==="text"||!P.isCollapsed()){C();return}const K=Ur(P);if(!w.$isParagraphNode(K)||K.getTextContent()!==""){C();return}const ne=window.getSelection().anchorNode,Oe=t.getRootElement();if((ne==null?void 0:ne.tagName)!=="P"||!Oe.contains(ne)){C();return}l(g(ne)),_(ne)})},[t,_,C]),T=S.default.useCallback((P,{insertParams:K={}}={})=>{const se={...K};t.dispatchCommand(P,se),p()},[t,p]);S.default.useEffect(()=>t.registerUpdateListener(()=>{v()},[t,v]));const N=S.default.useCallback(()=>{var P;if(e){const K=window.getSelection();if(r&&((P=u.current)==null?void 0:P.contains(K.anchorNode)))return;t.getRootElement().contains(K.anchorNode)||C()}},[t,e,r,C]);S.default.useEffect(()=>(document.addEventListener("selectionchange",N),()=>{document.removeEventListener("selectionchange",N)}),[N]);const k=S.default.useCallback(P=>{if(r)return;const K=t.getRootElement();let{pageX:se,pageY:ne}=P,Oe=K.getBoundingClientRect();se<Oe.left&&(se=se+40);const Ce=document.elementFromPoint(se,ne);K.contains(Ce)&&((Ce==null?void 0:Ce.tagName)==="P"&&Ce.textContent===""?(l(g(Ce)),_(Ce)):v())},[t,r,l,_,v]);S.default.useEffect(()=>(window.addEventListener("mousemove",k),()=>{window.removeEventListener("mousemove",k)}),[k]);const R=S.default.useCallback(P=>{var K;if(r&&!((K=u.current)!=null&&K.contains(P.target)))return p()},[r,p]);S.default.useEffect(()=>(window.addEventListener("mousedown",R),()=>{window.removeEventListener("mousedown",R)}),[R]);const I=S.default.useCallback(P=>{if(r){if(P.key==="Escape"){p({resetCursor:!0});return}["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(P.key)&&p()}},[r,p]);S.default.useEffect(()=>(window.addEventListener("keydown",I),()=>{window.removeEventListener("keydown",I)})),S.default.useEffect(()=>{const P=mo(t);d(Pc(P,{insert:T}))},[t,T,d]);const $={top:`${o}px`};return((U=c.menu)==null?void 0:U.size)===0?null:e?B("div",{className:"absolute",style:$,ref:u,"data-kg-plus-container":!0,children:[e&&h($1,{onClick:E}),r&&h(M1,{children:h(Ic,{menu:c.menu,insert:T})})]}):null}function Fc(){const[t]=ie.useLexicalComposerContext();return I1(t)}function P1({children:t}){return h("div",{"data-kg-slash-menu":!0,children:t})}function F1(t){var T;const[e,n]=S.default.useState(!1),[r,i]=S.default.useState(0),[o,l]=S.default.useState(""),[s,a]=S.default.useState([]),[c,d]=S.default.useState({}),[u,g]=S.default.useState(0),m=S.default.useRef(null),f=S.default.useRef(null);function _(N){const k=N.getBoundingClientRect(),R=N.parentNode.getBoundingClientRect();return k.bottom-R.top}function C(){!m.current||(document.getSelection().removeAllRanges(),document.getSelection().addRange(m.current))}const E=S.default.useCallback(()=>{n(!0)},[n]),p=S.default.useCallback(({resetCursor:N=!1}={})=>{N&&C(),n(!1),l(""),a([]),m.current=null},[n]),v=S.default.useCallback((N,{insertParams:k={},queryParams:R={}}={})=>{const I={...k};for(let $=0;$<R.length;$++)if(s[$]){const U=R[$],P=s[$];I[U]=P}t.update(()=>{const $=w.$getSelection();$.modify("extend",!0,"lineboundary"),$.deleteCharacter(!0),t.dispatchCommand(N,I)}),p()},[t,s,p]);return S.default.useEffect(()=>t.registerUpdateListener(()=>{t.getEditorState().read(()=>{if(t.isComposing())return;const N=w.$getSelection();if(!w.$isRangeSelection(N)||!N.type==="text"||!N.isCollapsed()){p();return}const k=Ur(N).getTopLevelElement();if(!k||!w.$isParagraphNode(k)||!k.getTextContent().startsWith("/")){p();return}const R=window.getSelection(),I=R.anchorNode,$=t.getRootElement();if((I==null?void 0:I.nodeType)!==Node.TEXT_NODE||!$.contains(I)){p();return}m.current=R.getRangeAt(0);const U=k.getTextContent().slice(1),[P,...K]=U.split(" ");l(P),a(K)})}),[t,p,l,a]),S.default.useEffect(()=>{if(e)return;const N=k=>{const{key:R,isComposing:I,shiftKey:$,ctrlKey:U,metaKey:P,altKey:K}=k;R!=="/"||I||$||U||P||K||!t.getRootElement().matches(":focus")||t.getEditorState().read(()=>{const ne=w.$getSelection(),Oe=Ur(ne).getTopLevelElement();if(!Oe||!w.$isParagraphNode(Oe))return;const Ce=Oe.getTextContentSize(),Pe=ne.isCollapsed()&&Oe.getTextContent()==="",V=!ne.isCollapsed()&&(ne.anchor.offset===0&&ne.focus.offset===Ce||ne.anchor.offset===Ce&&ne.focus.offset===0);if(Pe||V){const X=window.getSelection();let we;X.anchorNode.nodeType===Node.TEXT_NODE?we=X.anchorNode.parentNode.closest("p"):we=X.anchorNode,i(_(we)),E()}})};return window.addEventListener("keypress",N),()=>{window.removeEventListener("keypress",N)}},[t,e,i,E]),S.default.useEffect(()=>{if(!e)return;const N=k=>{if(k.key==="Escape"){p({resetCursor:!0});return}};return window.addEventListener("keydown",N),()=>{window.removeEventListener("keydown",N)}},[e,p]),S.default.useEffect(()=>{if(!e)return;const N=k=>{var R;(R=f.current)!=null&&R.contains(k.target)||p()};return window.addEventListener("mousedown",N),()=>{window.removeEventListener("mousedown",N)}},[e,p]),S.default.useEffect(()=>{if(!e)return;const N=I=>(g(u===0?c.maxItemIndex:u-1),I.preventDefault(),!0),k=I=>(u===c.maxItemIndex?g(0):g(u+1),I.preventDefault(),!0),R=I=>{var $;return($=document.querySelector(`[data-kg-slash-menu] [data-kg-cardmenu-idx="${u}"]`))==null||$.click(),I.preventDefault(),!0};return me.mergeRegister(t.registerCommand(w.KEY_ARROW_DOWN_COMMAND,k,w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_ARROW_UP_COMMAND,N,w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_ARROW_RIGHT_COMMAND,k,w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_ARROW_LEFT_COMMAND,N,w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_ENTER_COMMAND,R,w.COMMAND_PRIORITY_HIGH))},[t,e,c,u]),S.default.useEffect(()=>{const N=mo(t);d(Pc(N,{insert:v,query:o})),g(0)},[t,o,v,d,g]),((T=c.menu)==null?void 0:T.size)===0?null:e?h("div",{className:"absolute",style:{top:`${r}px`},ref:f,"data-kg-slash-container":!0,children:h(P1,{children:h(Ic,{menu:c.menu,selectedItemIndex:u,insert:v})})}):null}function z1(){const[t]=ie.useLexicalComposerContext();return F1(t)}const B1=10;function H1(t,e,n,r={}){r=Object.assign({verticalGap:B1,controlOpacity:!1},r);const i=n.parentElement;if(t===null||!i){r.controlOpacity&&(e.style.opacity="0"),e.style.top="-10000px",e.style.left="-10000px";return}const o=e.getBoundingClientRect(),l=n.getBoundingClientRect(),s=i.getBoundingClientRect();let a=t.top-o.height-r.verticalGap,c=t.left+t.width/2-o.width/2;c<s.left&&(c=s.left),c+o.width>s.right&&(c=s.right-o.width),a-=l.top,c-=l.left,r.controlOpacity&&(e.style.opacity="1"),e.style.top=`${a}px`,e.style.left=`${c}px`}function K1(t,e){const n=t.getRangeAt(0);let r;if(t.anchorNode===e){let i=e;for(;i.firstElementChild!=null;)i=i.firstElementChild;r=i.getBoundingClientRect()}else r=n.getBoundingClientRect();return r}function zc(t){const n=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY,r=n!=="visible"&&n!=="hidden";if(t){if(r&&t.scrollHeight>=t.clientHeight)return t}else return null;return zc(t.parentNode)||document.body}const W1={bullet:"Bulleted List",check:"Check List",code:"Code Block",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",h6:"Heading 6",number:"Numbered List",paragraph:"Normal",quote:"Quote",aside:"Aside"};function U1({isText:t,editor:e,anchorElem:n,blockType:r,isBold:i,isItalic:o}){const[l,s]=S.default.useState(!1),a=S.default.useRef(null),c=()=>{r!=="paragraph"&&e.update(()=>{const f=w.$getSelection();w.$isRangeSelection(f)&&Ge.$wrapNodes(f,()=>w.$createParagraphNode())})},d=f=>{r!==f&&e.update(()=>{const _=w.$getSelection();w.$isRangeSelection(_)&&Ge.$wrapNodes(_,()=>nt.$createHeadingNode(f))})},u=()=>{e.update(()=>{const f=w.$getSelection();w.$isRangeSelection(f)&&(r==="quote"?Ge.$wrapNodes(f,()=>Ui()):r==="aside"?Ge.$wrapNodes(f,()=>w.$createParagraphNode()):Ge.$wrapNodes(f,()=>nt.$createQuoteNode()))})},g=S.default.useCallback(()=>{const f=a.current;if(!f)return;const _=w.$getSelection(),C=window.getSelection(),E=e.getRootElement();if(_!==null&&C!==null&&!C.isCollapsed&&E!==null&&E.contains(C.anchorNode)){const p=K1(C,E);l||H1(p,f,n)}},[e,n,l]),m=S.default.useCallback(()=>{t!==!1&&(a.current.style.opacity="1")},[t]);return S.default.useEffect(()=>(e.getEditorState().read(()=>{g()}),document.addEventListener("mouseup",m),()=>{document.removeEventListener("mouseup",m)}),[m,e,g]),S.default.useEffect(()=>{e.getEditorState().read(()=>{g()});const f=_=>{_.key==="Shift"&&m()};return document.addEventListener("keyup",f),()=>{document.removeEventListener("keyup",f)}},[m,e,g]),S.default.useEffect(()=>{const f=zc(n),_=()=>{e.getEditorState().read(()=>{g()})};return window.addEventListener("resize",_),f&&f.addEventListener("scroll",_),()=>{window.removeEventListener("resize",_),f&&f.removeEventListener("scroll",_)}},[e,g,n]),S.default.useEffect(()=>(e.getEditorState().read(()=>{g()}),me.mergeRegister(e.registerUpdateListener(({editorState:f})=>{f.read(()=>{g()})}),e.registerCommand(w.SELECTION_CHANGE_COMMAND,()=>(g(),!1),w.COMMAND_PRIORITY_LOW))),[e,g]),h("div",{className:"absolute",ref:a,"data-kg-floating-toolbar":!0,style:{opacity:0},children:B(pa,{children:[h(Ke,{label:"Format text as bold",isActive:i,icon:"bold",onClick:()=>{s(!0),e.dispatchCommand(w.FORMAT_TEXT_COMMAND,"bold")},"data-kg-toolbar-button":"bold"}),h(Ke,{label:"Format text as italics",isActive:o,icon:"italic",onClick:()=>{s(!0),e.dispatchCommand(w.FORMAT_TEXT_COMMAND,"italic")},"data-kg-toolbar-button":"italic"}),h(Ke,{label:"Toggle heading 1",isActive:r==="h2",icon:"headingOne",onClick:()=>{r==="h2"?c():d("h2"),s(!0)},"data-kg-toolbar-button":"h2"}),h(Ke,{label:"Toggle heading 2",isActive:r==="h3",icon:"headingTwo",onClick:()=>{r==="h3"?c():d("h3"),s(!0)},"data-kg-toolbar-button":"h3"}),h(Zi,{}),h(Ke,{label:"Toggle blockquote",isActive:r==="quote"||r==="aside",icon:r==="aside"?"quoteOne":"quoteTwo",onClick:()=>{u(),s(!0)},"data-kg-toolbar-button":"quote"})]})})}function j1(t,e){const[n,r]=S.default.useState(!1),[i,o]=S.default.useState(!1),[l,s]=S.default.useState(!1),[a,c]=S.default.useState("paragraph"),d=S.default.useCallback(()=>{t.getEditorState().read(()=>{if(t.isComposing())return;const u=w.$getSelection(),g=window.getSelection(),m=t.getRootElement();if(g!==null&&(!w.$isRangeSelection(u)||m===null||!m.contains(g.anchorNode))){r(!1);return}if(!w.$isRangeSelection(u))return;const f=Ur(u),_=f.getKey()==="root"?f:f.getTopLevelElementOrThrow(),C=_.getKey(),E=t.getElementByKey(C);if(o(u.hasFormat("bold")),s(u.hasFormat("italic")),E!==null)if(Qe.$isListNode(_)){const p=me.$getNearestNodeOfType(f,Qe.ListNode),v=p?p.getListType():_.getListType();c(v)}else{const p=nt.$isHeadingNode(_)?_.getTag():_.getType();p in W1&&c(p)}u.getTextContent()!==""?r(w.$isTextNode(f)):r(!1)})},[t]);if(re.useEffect(()=>(document.addEventListener("selectionchange",d),()=>{document.removeEventListener("selectionchange",d)}),[d]),re.useEffect(()=>t.registerUpdateListener(()=>{d()}),[t,d]),!!n)return Je.createPortal(h(U1,{isText:n,editor:t,anchorElem:e,blockType:a,isBold:i,isItalic:l}),e)}function Bc({anchorElem:t=document.body}){const[e]=ie.useLexicalComposerContext();return j1(e,t)}const Y1=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",strokeWidth:1.5,viewBox:"0 0 24 24",...t},x.createElement("title",null,"kg-search"),x.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M1.472 13.357a9.063 9.063 0 1 0 16.682-7.09 9.063 9.063 0 1 0-16.682 7.09Zm14.749 2.863 7.029 7.03"})),V1=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",strokeWidth:1.5,viewBox:"0 0 24 24",...t},x.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M.75 23.249l22.5-22.5M23.25 23.249L.75.749"})),G1=t=>x.createElement("svg",{viewBox:"0 0 32 32",...t},x.createElement("title",null,"unsplash-heart"),x.createElement("path",{d:"M17.4 29c-.8.8-2 .8-2.8 0L2.3 16.2C-.8 13.1-.8 8 2.3 4.8c3.1-3.1 8.2-3.1 11.3 0L16 7.6l2.3-2.8c3.1-3.1 8.2-3.1 11.3 0 3.1 3.1 3.1 8.2 0 11.4L17.4 29z"})),Z1=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},x.createElement("title",null,"download"),x.createElement("path",{d:"M20 5.5l-8 8-8-8m-3.5 13h23",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,fill:"none"})),J1=[{id:1,imgUrl:"https://images.unsplash.com/photo-1574948495680-f67aab1ec3ed?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8c2VhcmNofDMyMXx8c3VtbWVyfGVufDB8fHx8MTY2OTEwNDUwNw&ixlib=rb-4.0.3&q=80&w=1200",caption:"Caption 1"},{id:2,imgUrl:"https://images.unsplash.com/photo-1595905710073-c5bf3611d945?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8c2VhcmNofDIzfHxzZWElMjBncmVlbnxlbnwwfHx8fDE2NjkxMDU3MTA&ixlib=rb-4.0.3&q=80&w=1200",caption:"Caption 2"},{id:3,imgUrl:"https://images.unsplash.com/photo-1526676537331-7747bf8278fc?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8c2VhcmNofDEyfHxhdGhsZXRpY3MlMjB0cmFja3xlbnwwfHx8fDE2NjkxMDU1MTA&ixlib=rb-4.0.3&q=80&w=1200",caption:"Caption 3"},{id:4,imgUrl:"https://images.unsplash.com/photo-1600185365483-26d7a4cc7519?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8c2VhcmNofDE0MHx8cnVubmluZ3xlbnwwfHx8fDE2NjkxMDM3MTE&ixlib=rb-4.0.3&q=80&w=1200",caption:"Caption 4"},{id:5,imgUrl:"https://images.unsplash.com/photo-1668584054035-f5ba7d426401?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8YWxsfDI3Mnx8fHx8fDJ8fDE2NjkxMDUxNTA&ixlib=rb-4.0.3&q=80&w=1200",caption:"Caption 5"},{id:6,imgUrl:"https://images.unsplash.com/photo-1668656690938-bbb5ec240ad1?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8YWxsfDMwNHx8fHx8fDJ8fDE2NjkxMDUyMTQ&ixlib=rb-4.0.3&q=80&w=1200",caption:"Caption 6"},{id:7,imgUrl:"https://images.unsplash.com/photo-1668952410266-e86775275752?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8YWxsfDExN3x8fHx8fDJ8fDE2NjkxMDQ2Nzk&ixlib=rb-4.0.3&q=80&w=1200",caption:"Caption 7"},{id:8,imgUrl:"https://images.unsplash.com/photo-1597305877032-0668b3c6413a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8c2VhcmNofDR8fHBsYW50fGVufDB8fHx8MTY2OTEwNjIwOA&ixlib=rb-4.0.3&q=80&w=1200",caption:"Caption 8"},{id:9,imgUrl:"https://images.unsplash.com/photo-1591087068118-0e6b440716c8?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8c2VhcmNofDE4OXx8b3JhbmdlfGVufDB8fHx8MTY2OTEwNTM4NQ&ixlib=rb-4.0.3&q=80&w=1200",caption:"Caption 9"},{id:10,imgUrl:"https://images.unsplash.com/photo-1483921020237-2ff51e8e4b22?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=3570&q=80",caption:"Caption 10"}],X1=(t,e)=>{const n=t.length,r=[];let i=0;for(;i<n;){const o=Math.ceil((n-i)/e--);r.push(t.slice(i,i+=o))}return r};function Hc({toggle:t,insertImage:e,zoomedUrl:n,closeModal:r}){const[i,o]=S.default.useState(n||null),l=s=>{o(s)};return B(Pt,{children:[h("div",{className:"bg-black opacity-60 inset-0 h-[100vh] absolute"}),B("div",{"data-kg-modal":"unsplash",className:"bg-white inset-8 rounded z-40 overflow-hidden absolute shadow-xl",children:[h("button",{className:"absolute top-6 right-6 cursor-pointer",children:h(V1,{"data-kg-modal-close-button":!0,onClick:()=>r(),className:"w-4 h-4 text-grey-400 stroke-2"})}),B("div",{className:"flex flex-col h-full",children:[B("header",{className:"flex shrink-0 justify-between py-10 px-20 items-center",children:[B("h1",{className:"flex items-center gap-2 text-black text-3xl font-bold font-sans",children:[h(Yr,{className:"mb-1"}),"Unsplash"]}),B("div",{className:"relative w-full max-w-sm",children:[h(Y1,{className:"absolute top-1/2 left-4 w-4 h-4 -translate-y-2 text-grey-700"}),h("input",{className:"pr-8 pl-10 border border-grey-300 rounded-full font-sans text-md font-normal text-black h-10 w-full focus:border-grey-400 focus-visible:outline-none",placeholder:"Search free high-resolution photos"})]})]}),h("div",{className:"relative h-full overflow-hidden",children:h("div",{className:`overflow-auto w-full h-full px-20 flex justify-center ${i?"pb-10":""}`,children:i?h(Kc,{imgUrl:i,setZoomedImg:o,selectImg:l,insertImage:e}):h(q1,{selectImg:l,insertImage:e,dataset:J1})})})]})]})]})}function q1({insertImage:t,selectImg:e,dataset:n}){return X1(n,3).map((i,o)=>h("div",{"data-kg-unsplash-gallery":!0,className:"flex flex-col justify-start mr-6 grow basis-0 last-of-type:mr-0",children:i.map(l=>h(Wc,{imgUrl:l.imgUrl,caption:l.caption,selectImg:e,insertImage:t},l.id))},o))}function Kc({imgUrl:t,setZoomedImg:e,insertImage:n,selectImg:r}){return h("div",{"data-kg-unsplash-zoomed":!0,onClick:()=>e(null),className:"flex justify-center grow basis-0 h-full",children:h(Wc,{zoomed:"true",imgUrl:t,insertImage:n,selectImg:r})})}function Wc({imgUrl:t,zoomed:e,insertImage:n,selectImg:r}){return B("div",{"data-kg-unsplash-gallery-item":!0,onClick:()=>r(t),className:`relative block mb-6 bg-grey-100 ${e?"cursor-zoom-out w-[max-content] h-full":"cursor-zoom-in w-full"}`,children:[h("img",{src:t,alt:"Unsplash",className:`${e?"object-contain w-auto h-full":""}`}),B("div",{className:"absolute inset-0 flex flex-col justify-between p-5 transition-all ease-in-out bg-gradient-to-b from-black/5 via-black/5 to-black/30 opacity-0 hover:opacity-100",children:[B("div",{className:"flex items-center justify-end",children:[h(xo,{icon:"heart",label:"127"}),h(xo,{icon:"download"})]}),B("div",{className:"flex items-center justify-between",children:[B("div",{className:"flex items-center",children:[h("img",{className:"w-8 h-8 rounded-full mr-2",src:"https://images.unsplash.com/profile-1562493255799-d28c159b565e?auto=format&fit=crop&w=32&h=32&q=60&crop=faces&bg=fff",alt:"author"}),h("div",{className:"mr-2 font-sans text-white text-sm font-medium truncate",children:"Richard de Ruijter"})]}),h(xo,{"data-kg-unsplash-insert-button":!0,onClick:()=>{n({src:t})},label:"Insert image"})]})]})]})}const Q1={heart:G1,download:Z1};function xo({icon:t,label:e,...n}){const r=Q1[t];return B("button",{type:"button",className:"flex items-center shrink-0 h-8 py-2 px-3 font-sans text-sm text-grey-700 font-medium leading-6 bg-white rounded-md opacity-90 transition-all ease-in-out hover:opacity-100 first-of-type:mr-3 cursor-pointer",...n,children:[t&&h(r,{className:`w-4 h-4 fill-red stroke-[3px] ${e&&"mr-1"}`}),e&&h("span",{children:e})]})}Hc.propTypes={selectImg:xe.exports.func,insertImage:xe.exports.func,zoomedUrl:xe.exports.string},Kc.propTypes={imgUrl:xe.exports.string};const e0=({service:t,container:e,nodeKey:n,handleModalClose:r})=>{const[i]=ie.useLexicalComposerContext(),o=e||document.querySelector(".koenig-lexical"),l=()=>{n&&i.update(()=>{w.$getNodeByKey(n).remove()}),r(!1)},s=async c=>{const{height:d,width:u}=await ma(c.src);c.src&&(i.update(()=>{const g=w.$getNodeByKey(n);g.setSrc(c.src),g.setImgHeight(d),g.setImgWidth(u);const m=w.$createNodeSelection();m.add(g.getKey()),w.$setSelection(m)}),r(!1))};if(!o)return null;const a=()=>{if(t==="unsplash")return h(Hc,{closeModal:l,insertImage:s})};return Je.createPortal(h(a,{}),o)},t0=()=>{const[t]=ie.useLexicalComposerContext(),{imageUploader:e}=S.default.useContext(Ar),[n,r]=S.default.useState(null),[i,o]=S.default.useState(null),[l,s]=S.default.useState(!1),a=S.default.useCallback(async(c,d)=>{if((c==null?void 0:c.length)>0)return await Ji(c,d,t,e)},[e,t]);return S.default.useEffect(()=>{if(!t.hasNodes([rn])){console.error("ImagePlugin: ImageNode not registered");return}return me.mergeRegister(t.registerCommand(Mr,async c=>{const d=w.$getSelection();if(!w.$isRangeSelection(d))return!1;if(d.focus.getNode()!==null){const g=xa(c);if((c==null?void 0:c.triggerFileSelector)==="unsplash"&&(o(g.getKey()),s(!0),r("unsplash")),!c.src){const E=g.getKey();a(c,E)}const m=d.focus.getNode(),f=w.$isParagraphNode(m)&&m.getTextContent()==="",_=m.getTopLevelElementOrThrow().getNextSibling();!f&&!_&&d.insertParagraph(),d.focus.getNode().getTopLevelElementOrThrow().insertBefore(g);const C=w.$createNodeSelection();C.add(g.getKey()),w.$setSelection(C)}return!0},w.COMMAND_PRIORITY_HIGH))},[t,e,a]),l&&n?h(e0,{service:n,nodeKey:i,handleModalClose:s}):null};function n0(t,e){const n=t.type;return Object.keys(e).find(i=>e[i].includes(n))}function r0(t,e){const n=t[Symbol.iterator]();return new Promise((r,i)=>{const o=[];let l;const s=()=>{const{done:a,value:c}=n.next();if(a)return r({processed:o,node:l});const d=new FileReader;d.addEventListener("error",i),d.addEventListener("load",()=>{typeof d.result=="string"&&o.push(c),s()});const u=n0(c,e);u?(d.readAsDataURL(c),l=u):(console.error("unsupported file type"),s())};s()})}async function i0(t){const e=mo(t);let n={};for(const[r,i]of e)r&&i.mimeTypes&&(n[r]=i.mimeTypes);return{acceptableMimeTypes:n}}function o0(){const[t]=ie.useLexicalComposerContext(),e=S.default.useCallback(i=>{i.preventDefault(),i.stopPropagation()},[]),n=S.default.useCallback(async i=>{i.preventDefault(),i.stopPropagation(),i.dataTransfer.files&&t.dispatchCommand(nt.DRAG_DROP_PASTE,i.dataTransfer.files)},[t]);S.default.useEffect(()=>{const i=document.querySelector(".gh-koenig-editor")||document;return i.addEventListener("dragover",e),i.addEventListener("drop",n),()=>{i.removeEventListener("dragover",e),i.removeEventListener("drop",n)}},[n,e]);const r=S.default.useCallback(async i=>{const{acceptableMimeTypes:o}=await i0(t),{processed:l,node:s}=await r0(i,o);l.length&&s==="image"&&t.dispatchCommand(Mr,l)},[t]);return S.default.useEffect(()=>t.registerCommand(nt.DRAG_DROP_PASTE,async i=>{try{return await r(i)}catch(o){console.error(o)}},w.COMMAND_PRIORITY_LOW),[t,r]),null}const l0=()=>{const[t]=ie.useLexicalComposerContext();return re.useEffect(()=>{if(!t.hasNodes([])){console.error("HorizontalRulePlugin: HorizontalRuleNode not registered");return}return t.registerCommand(aa,()=>{const e=w.$getSelection();if(!w.$isRangeSelection(e))return!1;if(e.focus.getNode()!==null){const r=Vi(),i=e.focus.getNode();w.$isParagraphNode(i)&&i.getTextContent()!==""&&e.insertParagraph(),e.focus.getNode().getTopLevelElementOrThrow().insertBefore(r)}return!0},w.COMMAND_PRIORITY_EDITOR)},[t]),null};function s0(){return h("div",{className:"pointer-events-none absolute top-0 left-0 min-w-full cursor-text font-serif text-xl text-grey-500",children:"Begin writing your post..."})}var ft={},Ie=w;function _o(t,e=!0){return t?!1:(t=Uc(),e&&(t=t.trim()),t==="")}function Uc(){return Ie.$getRoot().getTextContent()}function jc(t,e){if(!e||!_o(t,!1)||(t=Ie.$getRoot().getChildren(),e=t.length,1<e))return!1;for(let r=0;r<e;r++){var n=t[r];if(Ie.$isElementNode(n)){if(n.__type!=="paragraph"||n.__indent!==0)return!1;n=n.getChildren();let i=n.length;for(let o=0;o<i;o++)if(!Ie.$isTextNode(n[r]))return!1}}return!0}ft.$canShowPlaceholder=jc,ft.$canShowPlaceholderCurry=function(t,e){return()=>jc(t,e)},ft.$findTextIntersectionFromCharacters=function(t,e){var n=t.getFirstChild();t=0;e:for(;n!==null;){if(Ie.$isElementNode(n)){var r=n.getFirstChild();if(r!==null){n=r;continue}}else if(Ie.$isTextNode(n)){if(r=n.getTextContentSize(),t+r>e)return{node:n,offset:e-t};t+=r}if(r=n.getNextSibling(),r!==null)n=r;else{for(n=n.getParent();n!==null;){if(r=n.getNextSibling(),r!==null){n=r;continue e}n=n.getParent()}break}}return null},ft.$isRootTextContentEmpty=_o,ft.$isRootTextContentEmptyCurry=function(t,e){return()=>_o(t,e)},ft.$rootTextContent=Uc,ft.registerLexicalTextEntity=function(t,e,n,r){let i=l=>{const s=Ie.$createTextNode(l.getTextContent());s.setFormat(l.getFormat()),l.replace(s)},o=t.registerNodeTransform(Ie.TextNode,l=>{if(l.isSimpleText()){var s=l.getPreviousSibling(),a=l.getTextContent(),c=l;if(Ie.$isTextNode(s)){var d=s.getTextContent(),u=e(d+a);if(s instanceof n){if(u===null||s.getLatest().__mode!==0){i(s);return}if(u=u.end-d.length,0<u){c=a.slice(0,u),c=d+c,s.select(),s.setTextContent(c),u===a.length?l.remove():(s=a.slice(u),l.setTextContent(s));return}}else if(u===null||u.start<d.length)return}for(;;){if(l=e(a),a=u=l===null?"":a.slice(l.end),u===""){if(d=c.getNextSibling(),Ie.$isTextNode(d)){if(u=c.getTextContent()+d.getTextContent(),u=e(u),u===null){d instanceof n?i(d):d.markDirty();break}else if(u.start!==0)break}}else if(d=e(u),d!==null&&d.start===0)break;if(l===null)break;if(l.start===0&&Ie.$isTextNode(s)&&s.isTextEntity())continue;let g;if(l.start===0?[g,c]=c.splitText(l.end):[,g,c]=c.splitText(l.start,l.end),l=r(g),g.replace(l),c==null)break}}});return t=t.registerNodeTransform(n,l=>{var s=l.getTextContent();const a=e(s);a===null||a.start!==0?i(l):s.length>a.end?l.splitText(a.end):(s=l.getPreviousSibling(),Ie.$isTextNode(s)&&s.isTextEntity()&&(i(s),i(l)),s=l.getNextSibling(),Ie.$isTextNode(s)&&s.isTextEntity()&&(i(s),l instanceof n&&i(l)))}),[o,t]};var a0=ft;const c0=({registerAPI:t})=>{const[e]=ie.useLexicalComposerContext();S.default.useEffect(()=>t?(t({editorInstance:e,editorIsEmpty(){let r;return e.update(()=>{r=a0.$canShowPlaceholder(!1,!0)}),r},focusEditor({position:r="bottom"}={}){const i={defaultSelection:r==="top"?"rootStart":null};e.focus(()=>{},i)},blurEditor(){e.blur()},insertParagraphAtTop({focus:r=!0}={}){e.update(()=>{const i=w.$createParagraphNode(),[o]=w.$getRoot().getChildren();o.insertBefore(i),r&&i.selectStart()})}}),()=>{t==null||t(null)}):void 0,[e,t])},d0=({onChange:t,markdownTransformers:e,registerAPI:n,cursorDidExitAtTop:r})=>{const i=S.default.useCallback(c=>{const d=c.toJSON();t==null||t(d)},[t]),{editorContainerRef:o}=S.default.useContext(Ar),[l,s]=S.default.useState(null),a=c=>{c!==null&&s(c)};return B("div",{className:"koenig-lexical",ref:o,children:[h(Dg.RichTextPlugin,{contentEditable:h("div",{ref:a,children:h(Wg.ContentEditable,{className:"kg-prose"})}),placeholder:h(s0,{}),ErrorBoundary:Bg}),h(Qg.OnChangePlugin,{onChange:i}),h(Jg.HistoryPlugin,{})," ",h(r1.ListPlugin,{})," ",h(Ia,{containerElem:o,cursorDidExitAtTop:r}),h(Lc,{transformers:e}),h(Fc,{}),h(z1,{}),l&&h(Bc,{anchorElem:l}),h(t0,{}),h(o0,{}),h(l0,{}),h(c0,{registerAPI:n})]})};G.CODE_BLOCK_TRANSFORMER=Mc,G.DEFAULT_NODES=_a,G.DEFAULT_TRANSFORMERS=Dc,G.DesignSandbox=bd,G.ELEMENT_TRANSFORMERS=Ac,G.FloatingFormatToolbarPlugin=Bc,G.HR_TRANSFORMER=$c,G.KoenigBehaviourPlugin=Ia,G.KoenigComposer=Ng,G.KoenigEditor=d0,G.MarkdownShortcutPlugin=Lc,G.PlusCardMenuPlugin=Fc,Object.defineProperties(G,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
52
+ `+e:"")+"\n```"},regExp:/^```(\w{1,10})?\s/,replace:dc(t=>Yn.$createCodeNode(t?t[1]:void 0)),type:"element"},fc={dependencies:[ve.ListNode,ve.ListItemNode],export:(t,e)=>ve.$isListNode(t)?Kr(t,e,0):null,regExp:/^(\s*)[-*+]\s/,replace:ho("bullet"),type:"element"},v1={dependencies:[ve.ListNode,ve.ListItemNode],export:(t,e)=>ve.$isListNode(t)?Kr(t,e,0):null,regExp:/^(\s*)(?:-\s)?\s?(\[(\s|x)?\])\s/i,replace:ho("check"),type:"element"},pc={dependencies:[ve.ListNode,ve.ListItemNode],export:(t,e)=>ve.$isListNode(t)?Kr(t,e,0):null,regExp:/^(\s*)(\d{1,})\.\s/,replace:ho("number"),type:"element"},mc={format:["code"],tag:"`",type:"text-format"},xc={format:["bold","italic"],tag:"***",type:"text-format"},_c={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},vc={format:["bold"],tag:"**",type:"text-format"},wc={format:["bold"],intraword:!1,tag:"__",type:"text-format"},yc={format:["strikethrough"],tag:"~~",type:"text-format"},kc={format:["italic"],tag:"*",type:"text-format"},Cc={format:["italic"],intraword:!1,tag:"_",type:"text-format"},Nc={dependencies:[ao.LinkNode],export:(t,e,n)=>{if(!ao.$isLinkNode(t))return null;e=`[${t.getTextContent()}](${t.getURL()})`;const r=t.getFirstChild();return t.getChildrenSize()===1&&Y.$isTextNode(r)?n(r,e):e},importRegExp:/(?:\[([^[]+)\])(?:\(([^()]+)\))/,regExp:/(?:\[([^[]+)\])(?:\(([^()]+)\))$/,replace:(t,e)=>{const[,n,r]=e;e=ao.$createLinkNode(r);const i=Y.$createTextNode(n);i.setFormat(t.getFormat()),e.append(i),t.replace(e)},trigger:")",type:"text-match"},Ec=[uc,gc,hc,fc,pc],Tc=[mc,xc,_c,vc,wc,kc,Cc,yc],Sc=[Nc],Wr=[...Ec,...Tc,...Sc];te.$convertFromMarkdownString=function(t,e=Wr){return m1(e)(t)},te.$convertToMarkdownString=function(t=Wr){return g1(t)()},te.BOLD_ITALIC_STAR=xc,te.BOLD_ITALIC_UNDERSCORE=_c,te.BOLD_STAR=vc,te.BOLD_UNDERSCORE=wc,te.CHECK_LIST=v1,te.CODE=hc,te.ELEMENT_TRANSFORMERS=Ec,te.HEADING=uc,te.INLINE_CODE=mc,te.ITALIC_STAR=kc,te.ITALIC_UNDERSCORE=Cc,te.LINK=Nc,te.ORDERED_LIST=pc,te.QUOTE=gc,te.STRIKETHROUGH=yc,te.TEXT_FORMAT_TRANSFORMERS=Tc,te.TEXT_MATCH_TRANSFORMERS=Sc,te.TRANSFORMERS=Wr,te.UNORDERED_LIST=fc,te.registerMarkdownShortcuts=function(t,e=Wr){let n=uo(e),r=co(n.textFormat,({tag:o})=>o[o.length-1]),i=co(n.textMatch,({trigger:o})=>o);for(let o of e)if(e=o.type,(e==="element"||e==="text-match")&&!t.hasNodes(o.dependencies))throw Error("Minified Lexical error #79; visit https://lexical.dev/docs/error?code=79 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");return t.registerUpdateListener(({tags:o,dirtyLeaves:l,editorState:s,prevEditorState:a})=>{if(!o.has("historic")){var c=s.read(Y.$getSelection);if(o=a.read(Y.$getSelection),Y.$isRangeSelection(o)&&Y.$isRangeSelection(c)&&c.isCollapsed()){a=c.anchor.key;var d=c.anchor.offset,u=s._nodeMap.get(a);Y.$isTextNode(u)&&l.has(a)&&(d===1||d===o.anchor.offset+1)&&t.update(()=>{if(!u.hasFormat("code")){var g=u.getParent();if(g!==null&&!Yn.$isCodeNode(g)){var m=c.anchor.offset;e:{var f=n.element,_=g.getParent();if(Y.$isRootOrShadowRoot(_)&&g.getFirstChild()===u&&(_=u.getTextContent(),_[m-1]===" ")){for(let{regExp:N,replace:k}of f)if((f=_.match(N))&&f[0].length===m){_=u.getNextSiblings();let[R,I]=u.splitText(m);R.remove(),_=I?[I,..._]:_,k(g,_,f,!1),g=!0;break e}}g=!1}if(!g){e:{if(f=u.getTextContent(),g=i[f[m-1]],g!=null){m<f.length&&(f=f.slice(0,m));for(E of g)if(g=f.match(E.regExp),g!==null){f=g.index||0,_=f+g[0].length;var C=void 0;f===0?[C]=u.splitText(_):[,C]=u.splitText(f,_),C.selectNext(0,0),E.replace(C,g);var E=!0;break e}}E=!1}if(!E)e:{_=u.getTextContent(),--m;var p=_[m];if(E=r[p])for(let N of E){var{tag:w}=N;E=w.length;let k=m-E+1;if(!(1<E&&!cc(_,k,w,0,E)||_[k-1]===" ")&&(C=_[m+1],N.intraword!==!1||!C||zr.test(C))){g=C=u,f=ac(_,k,w);for(var T=g;0>f&&(T=T.getPreviousSibling())&&!Y.$isLineBreakNode(T);)Y.$isTextNode(T)&&(f=T.getTextContent(),g=T,f=ac(f,f.length,w));if(!(0>f||g===C&&f+E===k||(w=g.getTextContent(),0<f&&w[f-1]===p||(T=w[f-1],N.intraword===!1&&T&&!zr.test(T))))){_=C.getTextContent(),_=_.slice(0,k)+_.slice(m+1),C.setTextContent(_),_=g===C?_:w,g.setTextContent(_.slice(0,f)+_.slice(f+E)),_=Y.$getSelection(),p=Y.$createRangeSelection(),Y.$setSelection(p),m=m-E*(g===C?2:1)+1,p.anchor.set(g.__key,f,"text"),p.focus.set(C.__key,m,"text");for(let R of N.format)p.hasFormat(R)||p.formatText(R);p.anchor.set(p.focus.key,p.focus.offset,p.focus.type);for(let R of N.format)p.hasFormat(R)&&p.toggleFormat(R);Y.$isRangeSelection(_)&&(p.format=_.format);break e}}}}}}}})}}})};var Ot=te,fo={},Vn={},w1=ie,y1=oa,k1=me,He=v,Gn=S.default;let C1=He.createCommand("INSERT_HORIZONTAL_RULE_COMMAND");function N1({nodeKey:t}){let[e]=w1.useLexicalComposerContext(),n=Gn.useRef(null),[r,i,o]=y1.useLexicalNodeSelection(t),l=Gn.useCallback(s=>(r&&He.$isNodeSelection(He.$getSelection())&&(s.preventDefault(),s=He.$getNodeByKey(t),bc(s)&&s.remove(),i(!1)),!1),[r,t,i]);return Gn.useEffect(()=>k1.mergeRegister(e.registerCommand(He.CLICK_COMMAND,s=>s.target===n.current?(s.shiftKey||o(),i(!r),!0):!1,He.COMMAND_PRIORITY_LOW),e.registerCommand(He.KEY_DELETE_COMMAND,l,He.COMMAND_PRIORITY_LOW),e.registerCommand(He.KEY_BACKSPACE_COMMAND,l,He.COMMAND_PRIORITY_LOW)),[o,e,r,l,i]),Gn.createElement("hr",{ref:n,className:r?"selected":void 0})}class Zn extends He.DecoratorNode{static getType(){return"horizontalrule"}static clone(e){return new Zn(e.__key)}static importJSON(){return po()}static importDOM(){return{hr:()=>({conversion:E1,priority:0})}}exportJSON(){return{type:"horizontalrule",version:1}}exportDOM(){return{element:document.createElement("hr")}}createDOM(){let e=document.createElement("div");return e.style.display="contents",e}getTextContent(){return`
53
+ `}isInline(){return!1}updateDOM(){return!1}decorate(){return Gn.createElement(N1,{nodeKey:this.__key})}}function E1(){return{node:po()}}function po(){return He.$applyNodeReplacement(new Zn)}function bc(t){return t instanceof Zn}Vn.$createHorizontalRuleNode=po,Vn.$isHorizontalRuleNode=bc,Vn.HorizontalRuleNode=Zn,Vn.INSERT_HORIZONTAL_RULE_COMMAND=C1;var T1=Vn,Rc=Ot,S1=ie,mo=T1,b1=S.default;let Oc=[{dependencies:[mo.HorizontalRuleNode],export:t=>mo.$isHorizontalRuleNode(t)?"***":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(t,e,n,r)=>{e=mo.$createHorizontalRuleNode(),r||t.getNextSibling()!=null?t.replace(e):t.insertBefore(e),e.selectNext()},type:"element"},...Rc.TRANSFORMERS];fo.DEFAULT_TRANSFORMERS=Oc,fo.MarkdownShortcutPlugin=function({transformers:t=Oc}){let[e]=S1.useLexicalComposerContext();return b1.useEffect(()=>Rc.registerMarkdownShortcuts(e,t),[e,t]),null};var R1=fo;const $c={dependencies:[St],export:t=>qu(t)?"---":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(t,e,n,r)=>{const i=Vi();r||t.getNextSibling()!=null?t.replace(i):t.insertBefore(i),i.selectNext()},type:"element"},Mc={dependencies:[nn],export:t=>{if(!tg(t))return null;const e=t.getTextContent();return"```"+(t.getLanguage()||"")+(e?`
54
+ `+e:"")+"\n```"},regExp:/^```(\w{1,10})?\s/,replace:(t,e,n)=>{const r=n[1]||"",i=e[1],o=ua(i,r);t.replace(o)},type:"element"},O1={dependencies:[rn],export:t=>{if(wg(t)){const{src:e,alt:n}=t.dataset;return`![${n}](${e})`}else return null},regExp:/^image! $/,replace:(t,e,n)=>{const o=_a({altText:"",src:""});t.replace(o)},type:"element"},Ac=[Ot.HEADING,Ot.QUOTE,Ot.UNORDERED_LIST,Ot.ORDERED_LIST,$c,Mc,O1],Dc=[...Ac,...Ot.TEXT_FORMAT_TRANSFORMERS,...Ot.TEXT_MATCH_TRANSFORMERS];function Lc({transformers:t=Dc}={}){return R1.MarkdownShortcutPlugin({transformers:t})}function Ur(t){const e=t.anchor,n=t.focus,r=t.anchor.getNode(),i=t.focus.getNode();return r===i?r:t.isBackward()?Ze.$isAtNodeEnd(n)?r:i:Ze.$isAtNodeEnd(e)?i:r}function $1({onClick:t}){return h("div",{className:"absolute top-[-2px] left-[-66px]","data-kg-plus-button":!0,children:h("button",{type:"button","aria-label":"Add a card",className:"group relative flex h-7 w-7 cursor-pointer items-center justify-center rounded-full border border-grey transition-all ease-linear hover:border-grey-900 md:h-9 md:w-9",onClick:t,children:h(Ao,{className:"h-4 w-4 stroke-grey-800 stroke-2 group-hover:stroke-grey-900"})})})}function M1({children:t}){return h("div",{className:"absolute left-[-16px]","data-kg-plus-menu":!0,children:t})}const A1=({label:t,children:e,...n})=>B("li",{role:"separator",className:"text-grey flex shrink-0 flex-col justify-center text-[1.1rem] font-semibold uppercase tracking-wide",...n,children:[h("span",{className:"mb-2 block px-4 pt-3",style:{minWidth:"calc(100% - 3.2rem)"},children:t}),h("ul",{role:"menu",children:e})]}),D1=({label:t,desc:e,isSelected:n,onClick:r,Icon:i,...o})=>h("li",{role:"presentation",children:B("button",{type:"button",role:"menuitem",className:`text-grey-800 hover:bg-grey-100 flex w-full cursor-pointer flex-row items-center border border-transparent px-4 py-[1rem] text-left ${n?"bg-grey-100":""}`,onMouseDown:s=>{s.preventDefault()},onClick:r,"data-kg-card-menu-item":t,"data-kg-cardmenu-selected":n,...o,children:[h("div",{className:"flex items-center",children:h(i,{className:"h-7 w-7"})}),B("div",{className:"flex flex-col",children:[h("div",{className:"text-grey-900 m-0 ml-4 truncate text-[1.3rem] font-medium leading-[1.6rem] tracking-[.02rem]",children:t}),h("div",{className:"text-grey m-0 ml-4 truncate text-xs font-normal leading-[1.6rem] tracking-[.02rem]",children:e})]})]})}),L1=({label:t,isSelected:e,Icon:n,...r})=>h("li",{role:"presentation",children:B("button",{type:"button",role:"menuitem",className:`text-grey-800 hover:bg-grey-100 flex w-full cursor-pointer flex-row items-center border border-transparent px-4 py-[1rem] ${e?"bg-grey-100":""}`,"data-kg-cardmenu-selected":e,...r,children:[h("div",{className:"flex items-center",children:h(n,{className:"h-7 w-7"})}),h("div",{className:"flex flex-col",children:h("div",{className:"text-grey-900 m-0 ml-4 truncate text-[1.3rem] font-medium leading-[1.6rem] tracking-[.02rem]",children:t})})]})}),Ic=({menu:t=new Map,insert:e=()=>{},selectedItemIndex:n})=>{const r=[];let i=0;for(const[o,l]of t){const s=[];l.forEach(a=>{const c=i===n,d=u=>{u.preventDefault(),e==null||e(a.insertCommand,{insertParams:a.insertParams,queryParams:a.queryParams})};!a.type||a.type==="card"?s.push(h(D1,{label:a.label,desc:a.desc,Icon:a.Icon,isSelected:c,onClick:d,"data-kg-cardmenu-idx":i},i)):a.type==="snippet"&&s.push(h(L1,{label:a.label,Icon:a.Icon,isSelected:c,onClick:d,"data-kg-cardmenu-idx":i},i)),i=i+1}),r.push(h(A1,{label:o,children:s},o))}return h("ul",{role:"menu",className:"not-kg-prose z-[9999999] m-0 mb-3 max-h-[376px] w-[312px] flex-col overflow-y-auto rounded-lg bg-white bg-clip-padding p-0 pt-0 font-sans text-sm shadow after:block after:pb-4",children:r})};function xo(t){const e=t._nodes,n=[];for(const[r,{klass:i}]of e)!i.kgMenu||n.push([r,i]);return n}function Pc(t,{query:e}={}){const n=new Map;e=e==null?void 0:e.toLowerCase();let r=-1;function i(o){if(e&&(!o.matches||!o.matches.find(s=>s.startsWith(e))))return;const l=o.section||"Primary";n.has(l)?n.get(l).push(o):n.set(l,[o]),r=r+1}for(const[o,l]of t)Array.isArray(l.kgMenu)?l.kgMenu.forEach(s=>i({nodeType:o,...s})):i({nodeType:o,...l.kgMenu});return{menu:n,maxItemIndex:r}}function I1(t){var U;const[e,n]=S.default.useState(!1),[r,i]=S.default.useState(!1),[o,l]=S.default.useState(0),[s,a]=S.default.useState(null),[c,d]=S.default.useState({}),u=S.default.useRef(null);function g(P){const K=P.getBoundingClientRect(),se=P.parentNode.getBoundingClientRect();return K.top-se.top}function m(P){const K=new Range;return K.setStart(P,0),K.setEnd(P,0),K}const f=S.default.useCallback(()=>{!s||(document.getSelection().removeAllRanges(),document.getSelection().addRange(s))},[s]),_=S.default.useCallback(P=>{const K=m(P);a(K),n(!0)},[n,a]),C=S.default.useCallback(()=>{n(!1),i(!1),a(null)},[n,i,a]),E=S.default.useCallback(P=>{P==null||P.preventDefault(),f(),i(!0)},[f,i]),p=S.default.useCallback(({resetCursor:P=!1}={})=>{P&&f(),i(!1)},[f,i]),w=S.default.useCallback(()=>{t.getEditorState().read(()=>{if(t.isComposing())return;const P=v.$getSelection();if(!v.$isRangeSelection(P)||!P.type==="text"||!P.isCollapsed()){C();return}const K=Ur(P);if(!v.$isParagraphNode(K)||K.getTextContent()!==""){C();return}const ne=window.getSelection().anchorNode,Oe=t.getRootElement();if((ne==null?void 0:ne.tagName)!=="P"||!Oe.contains(ne)){C();return}l(g(ne)),_(ne)})},[t,_,C]),T=S.default.useCallback((P,{insertParams:K={}}={})=>{const se={...K};t.dispatchCommand(P,se),p()},[t,p]);S.default.useEffect(()=>t.registerUpdateListener(()=>{w()},[t,w]));const N=S.default.useCallback(()=>{var P;if(e){const K=window.getSelection();if(r&&((P=u.current)==null?void 0:P.contains(K.anchorNode)))return;t.getRootElement().contains(K.anchorNode)||C()}},[t,e,r,C]);S.default.useEffect(()=>(document.addEventListener("selectionchange",N),()=>{document.removeEventListener("selectionchange",N)}),[N]);const k=S.default.useCallback(P=>{if(r)return;const K=t.getRootElement();let{pageX:se,pageY:ne}=P,Oe=K.getBoundingClientRect();se<Oe.left&&(se=se+40);const Ce=document.elementFromPoint(se,ne);K.contains(Ce)&&((Ce==null?void 0:Ce.tagName)==="P"&&Ce.textContent===""?(l(g(Ce)),_(Ce)):w())},[t,r,l,_,w]);S.default.useEffect(()=>(window.addEventListener("mousemove",k),()=>{window.removeEventListener("mousemove",k)}),[k]);const R=S.default.useCallback(P=>{var K;if(r&&!((K=u.current)!=null&&K.contains(P.target)))return p()},[r,p]);S.default.useEffect(()=>(window.addEventListener("mousedown",R),()=>{window.removeEventListener("mousedown",R)}),[R]);const I=S.default.useCallback(P=>{if(r){if(P.key==="Escape"){p({resetCursor:!0});return}["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(P.key)&&p()}},[r,p]);S.default.useEffect(()=>(window.addEventListener("keydown",I),()=>{window.removeEventListener("keydown",I)})),S.default.useEffect(()=>{const P=xo(t);d(Pc(P,{insert:T}))},[t,T,d]);const $={top:`${o}px`};return((U=c.menu)==null?void 0:U.size)===0?null:e?B("div",{className:"absolute",style:$,ref:u,"data-kg-plus-container":!0,children:[e&&h($1,{onClick:E}),r&&h(M1,{children:h(Ic,{menu:c.menu,insert:T})})]}):null}function Fc(){const[t]=ie.useLexicalComposerContext();return I1(t)}function P1({children:t}){return h("div",{"data-kg-slash-menu":!0,children:t})}function F1(t){var T;const[e,n]=S.default.useState(!1),[r,i]=S.default.useState(0),[o,l]=S.default.useState(""),[s,a]=S.default.useState([]),[c,d]=S.default.useState({}),[u,g]=S.default.useState(0),m=S.default.useRef(null),f=S.default.useRef(null);function _(N){const k=N.getBoundingClientRect(),R=N.parentNode.getBoundingClientRect();return k.bottom-R.top}function C(){!m.current||(document.getSelection().removeAllRanges(),document.getSelection().addRange(m.current))}const E=S.default.useCallback(()=>{n(!0)},[n]),p=S.default.useCallback(({resetCursor:N=!1}={})=>{N&&C(),n(!1),l(""),a([]),m.current=null},[n]),w=S.default.useCallback((N,{insertParams:k={},queryParams:R={}}={})=>{const I={...k};for(let $=0;$<R.length;$++)if(s[$]){const U=R[$],P=s[$];I[U]=P}t.update(()=>{const $=v.$getSelection();$.modify("extend",!0,"lineboundary"),$.deleteCharacter(!0),t.dispatchCommand(N,I)}),p()},[t,s,p]);return S.default.useEffect(()=>t.registerUpdateListener(()=>{t.getEditorState().read(()=>{if(t.isComposing())return;const N=v.$getSelection();if(!v.$isRangeSelection(N)||!N.type==="text"||!N.isCollapsed()){p();return}const k=Ur(N).getTopLevelElement();if(!k||!v.$isParagraphNode(k)||!k.getTextContent().startsWith("/")){p();return}const R=window.getSelection(),I=R.anchorNode,$=t.getRootElement();if((I==null?void 0:I.nodeType)!==Node.TEXT_NODE||!$.contains(I)){p();return}m.current=R.getRangeAt(0);const U=k.getTextContent().slice(1),[P,...K]=U.split(" ");l(P),a(K)})}),[t,p,l,a]),S.default.useEffect(()=>{if(e)return;const N=k=>{const{key:R,isComposing:I,shiftKey:$,ctrlKey:U,metaKey:P,altKey:K}=k;R!=="/"||I||$||U||P||K||!t.getRootElement().matches(":focus")||t.getEditorState().read(()=>{const ne=v.$getSelection(),Oe=Ur(ne).getTopLevelElement();if(!Oe||!v.$isParagraphNode(Oe))return;const Ce=Oe.getTextContentSize(),Pe=ne.isCollapsed()&&Oe.getTextContent()==="",G=!ne.isCollapsed()&&(ne.anchor.offset===0&&ne.focus.offset===Ce||ne.anchor.offset===Ce&&ne.focus.offset===0);if(Pe||G){const X=window.getSelection();let we;X.anchorNode.nodeType===Node.TEXT_NODE?we=X.anchorNode.parentNode.closest("p"):we=X.anchorNode,i(_(we)),E()}})};return window.addEventListener("keypress",N),()=>{window.removeEventListener("keypress",N)}},[t,e,i,E]),S.default.useEffect(()=>{if(!e)return;const N=k=>{if(k.key==="Escape"){p({resetCursor:!0});return}};return window.addEventListener("keydown",N),()=>{window.removeEventListener("keydown",N)}},[e,p]),S.default.useEffect(()=>{if(!e)return;const N=k=>{var R;(R=f.current)!=null&&R.contains(k.target)||p()};return window.addEventListener("mousedown",N),()=>{window.removeEventListener("mousedown",N)}},[e,p]),S.default.useEffect(()=>{if(!e)return;const N=I=>(g(u===0?c.maxItemIndex:u-1),I.preventDefault(),!0),k=I=>(u===c.maxItemIndex?g(0):g(u+1),I.preventDefault(),!0),R=I=>{var $;return($=document.querySelector(`[data-kg-slash-menu] [data-kg-cardmenu-idx="${u}"]`))==null||$.click(),I.preventDefault(),!0};return me.mergeRegister(t.registerCommand(v.KEY_ARROW_DOWN_COMMAND,k,v.COMMAND_PRIORITY_HIGH),t.registerCommand(v.KEY_ARROW_UP_COMMAND,N,v.COMMAND_PRIORITY_HIGH),t.registerCommand(v.KEY_ARROW_RIGHT_COMMAND,k,v.COMMAND_PRIORITY_HIGH),t.registerCommand(v.KEY_ARROW_LEFT_COMMAND,N,v.COMMAND_PRIORITY_HIGH),t.registerCommand(v.KEY_ENTER_COMMAND,R,v.COMMAND_PRIORITY_HIGH))},[t,e,c,u]),S.default.useEffect(()=>{const N=xo(t);d(Pc(N,{insert:w,query:o})),g(0)},[t,o,w,d,g]),((T=c.menu)==null?void 0:T.size)===0?null:e?h("div",{className:"absolute",style:{top:`${r}px`},ref:f,"data-kg-slash-container":!0,children:h(P1,{children:h(Ic,{menu:c.menu,selectedItemIndex:u,insert:w})})}):null}function z1(){const[t]=ie.useLexicalComposerContext();return F1(t)}const B1=10;function H1(t,e,n,r={}){r=Object.assign({verticalGap:B1,controlOpacity:!1},r);const i=n.parentElement;if(t===null||!i){r.controlOpacity&&(e.style.opacity="0"),e.style.top="-10000px",e.style.left="-10000px";return}const o=e.getBoundingClientRect(),l=n.getBoundingClientRect(),s=i.getBoundingClientRect();let a=t.top-o.height-r.verticalGap,c=t.left+t.width/2-o.width/2;c<s.left&&(c=s.left),c+o.width>s.right&&(c=s.right-o.width),a-=l.top,c-=l.left,r.controlOpacity&&(e.style.opacity="1"),e.style.top=`${a}px`,e.style.left=`${c}px`}function K1(t,e){const n=t.getRangeAt(0);let r;if(t.anchorNode===e){let i=e;for(;i.firstElementChild!=null;)i=i.firstElementChild;r=i.getBoundingClientRect()}else r=n.getBoundingClientRect();return r}function zc(t){const n=t instanceof HTMLElement&&window.getComputedStyle(t).overflowY,r=n!=="visible"&&n!=="hidden";if(t){if(r&&t.scrollHeight>=t.clientHeight)return t}else return null;return zc(t.parentNode)||document.body}const W1={bullet:"Bulleted List",check:"Check List",code:"Code Block",h1:"Heading 1",h2:"Heading 2",h3:"Heading 3",h4:"Heading 4",h5:"Heading 5",h6:"Heading 6",number:"Numbered List",paragraph:"Normal",quote:"Quote",aside:"Aside"};function U1({isText:t,editor:e,anchorElem:n,blockType:r,isBold:i,isItalic:o}){const[l,s]=S.default.useState(!1),a=S.default.useRef(null),c=()=>{r!=="paragraph"&&e.update(()=>{const f=v.$getSelection();v.$isRangeSelection(f)&&Ze.$wrapNodes(f,()=>v.$createParagraphNode())})},d=f=>{r!==f&&e.update(()=>{const _=v.$getSelection();v.$isRangeSelection(_)&&Ze.$wrapNodes(_,()=>nt.$createHeadingNode(f))})},u=()=>{e.update(()=>{const f=v.$getSelection();v.$isRangeSelection(f)&&(r==="quote"?Ze.$wrapNodes(f,()=>Ui()):r==="aside"?Ze.$wrapNodes(f,()=>v.$createParagraphNode()):Ze.$wrapNodes(f,()=>nt.$createQuoteNode()))})},g=S.default.useCallback(()=>{const f=a.current;if(!f)return;const _=v.$getSelection(),C=window.getSelection(),E=e.getRootElement();if(_!==null&&C!==null&&!C.isCollapsed&&E!==null&&E.contains(C.anchorNode)){const p=K1(C,E);l||H1(p,f,n)}},[e,n,l]),m=S.default.useCallback(()=>{t!==!1&&(a.current.style.opacity="1")},[t]);return S.default.useEffect(()=>(e.getEditorState().read(()=>{g()}),document.addEventListener("mouseup",m),()=>{document.removeEventListener("mouseup",m)}),[m,e,g]),S.default.useEffect(()=>{e.getEditorState().read(()=>{g()});const f=_=>{_.key==="Shift"&&m()};return document.addEventListener("keyup",f),()=>{document.removeEventListener("keyup",f)}},[m,e,g]),S.default.useEffect(()=>{const f=zc(n),_=()=>{e.getEditorState().read(()=>{g()})};return window.addEventListener("resize",_),f&&f.addEventListener("scroll",_),()=>{window.removeEventListener("resize",_),f&&f.removeEventListener("scroll",_)}},[e,g,n]),S.default.useEffect(()=>(e.getEditorState().read(()=>{g()}),me.mergeRegister(e.registerUpdateListener(({editorState:f})=>{f.read(()=>{g()})}),e.registerCommand(v.SELECTION_CHANGE_COMMAND,()=>(g(),!1),v.COMMAND_PRIORITY_LOW))),[e,g]),h("div",{className:"absolute",ref:a,"data-kg-floating-toolbar":!0,style:{opacity:0},children:B(ma,{children:[h(We,{label:"Format text as bold",isActive:i,icon:"bold",onClick:()=>{s(!0),e.dispatchCommand(v.FORMAT_TEXT_COMMAND,"bold")},"data-kg-toolbar-button":"bold"}),h(We,{label:"Format text as italics",isActive:o,icon:"italic",onClick:()=>{s(!0),e.dispatchCommand(v.FORMAT_TEXT_COMMAND,"italic")},"data-kg-toolbar-button":"italic"}),h(We,{label:"Toggle heading 1",isActive:r==="h2",icon:"headingOne",onClick:()=>{r==="h2"?c():d("h2"),s(!0)},"data-kg-toolbar-button":"h2"}),h(We,{label:"Toggle heading 2",isActive:r==="h3",icon:"headingTwo",onClick:()=>{r==="h3"?c():d("h3"),s(!0)},"data-kg-toolbar-button":"h3"}),h(Zi,{}),h(We,{label:"Toggle blockquote",isActive:r==="quote"||r==="aside",icon:r==="aside"?"quoteOne":"quoteTwo",onClick:()=>{u(),s(!0)},"data-kg-toolbar-button":"quote"})]})})}function j1(t,e){const[n,r]=S.default.useState(!1),[i,o]=S.default.useState(!1),[l,s]=S.default.useState(!1),[a,c]=S.default.useState("paragraph"),d=S.default.useCallback(()=>{t.getEditorState().read(()=>{if(t.isComposing())return;const u=v.$getSelection(),g=window.getSelection(),m=t.getRootElement();if(g!==null&&(!v.$isRangeSelection(u)||m===null||!m.contains(g.anchorNode))){r(!1);return}if(!v.$isRangeSelection(u))return;const f=Ur(u),_=f.getKey()==="root"?f:f.getTopLevelElementOrThrow(),C=_.getKey(),E=t.getElementByKey(C);if(o(u.hasFormat("bold")),s(u.hasFormat("italic")),E!==null)if(Qe.$isListNode(_)){const p=me.$getNearestNodeOfType(f,Qe.ListNode),w=p?p.getListType():_.getListType();c(w)}else{const p=nt.$isHeadingNode(_)?_.getTag():_.getType();p in W1&&c(p)}u.getTextContent()!==""?r(v.$isTextNode(f)):r(!1)})},[t]);if(re.useEffect(()=>(document.addEventListener("selectionchange",d),()=>{document.removeEventListener("selectionchange",d)}),[d]),re.useEffect(()=>t.registerUpdateListener(()=>{d()}),[t,d]),!!n)return Je.createPortal(h(U1,{isText:n,editor:t,anchorElem:e,blockType:a,isBold:i,isItalic:l}),e)}function Bc({anchorElem:t=document.body}){const[e]=ie.useLexicalComposerContext();return j1(e,t)}const Y1=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",strokeWidth:1.5,viewBox:"0 0 24 24",...t},x.createElement("title",null,"kg-search"),x.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M1.472 13.357a9.063 9.063 0 1 0 16.682-7.09 9.063 9.063 0 1 0-16.682 7.09Zm14.749 2.863 7.029 7.03"})),V1=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",strokeWidth:1.5,viewBox:"0 0 24 24",...t},x.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",d:"M.75 23.249l22.5-22.5M23.25 23.249L.75.749"})),G1=t=>x.createElement("svg",{viewBox:"0 0 32 32",...t},x.createElement("title",null,"unsplash-heart"),x.createElement("path",{d:"M17.4 29c-.8.8-2 .8-2.8 0L2.3 16.2C-.8 13.1-.8 8 2.3 4.8c3.1-3.1 8.2-3.1 11.3 0L16 7.6l2.3-2.8c3.1-3.1 8.2-3.1 11.3 0 3.1 3.1 3.1 8.2 0 11.4L17.4 29z"})),Z1=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",...t},x.createElement("title",null,"download"),x.createElement("path",{d:"M20 5.5l-8 8-8-8m-3.5 13h23",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeMiterlimit:10,fill:"none"})),J1=[{id:1,imgUrl:"https://images.unsplash.com/photo-1574948495680-f67aab1ec3ed?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8c2VhcmNofDMyMXx8c3VtbWVyfGVufDB8fHx8MTY2OTEwNDUwNw&ixlib=rb-4.0.3&q=80&w=1200",caption:"Caption 1"},{id:2,imgUrl:"https://images.unsplash.com/photo-1595905710073-c5bf3611d945?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8c2VhcmNofDIzfHxzZWElMjBncmVlbnxlbnwwfHx8fDE2NjkxMDU3MTA&ixlib=rb-4.0.3&q=80&w=1200",caption:"Caption 2"},{id:3,imgUrl:"https://images.unsplash.com/photo-1526676537331-7747bf8278fc?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8c2VhcmNofDEyfHxhdGhsZXRpY3MlMjB0cmFja3xlbnwwfHx8fDE2NjkxMDU1MTA&ixlib=rb-4.0.3&q=80&w=1200",caption:"Caption 3"},{id:4,imgUrl:"https://images.unsplash.com/photo-1600185365483-26d7a4cc7519?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8c2VhcmNofDE0MHx8cnVubmluZ3xlbnwwfHx8fDE2NjkxMDM3MTE&ixlib=rb-4.0.3&q=80&w=1200",caption:"Caption 4"},{id:5,imgUrl:"https://images.unsplash.com/photo-1668584054035-f5ba7d426401?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8YWxsfDI3Mnx8fHx8fDJ8fDE2NjkxMDUxNTA&ixlib=rb-4.0.3&q=80&w=1200",caption:"Caption 5"},{id:6,imgUrl:"https://images.unsplash.com/photo-1668656690938-bbb5ec240ad1?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8YWxsfDMwNHx8fHx8fDJ8fDE2NjkxMDUyMTQ&ixlib=rb-4.0.3&q=80&w=1200",caption:"Caption 6"},{id:7,imgUrl:"https://images.unsplash.com/photo-1668952410266-e86775275752?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8YWxsfDExN3x8fHx8fDJ8fDE2NjkxMDQ2Nzk&ixlib=rb-4.0.3&q=80&w=1200",caption:"Caption 7"},{id:8,imgUrl:"https://images.unsplash.com/photo-1597305877032-0668b3c6413a?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8c2VhcmNofDR8fHBsYW50fGVufDB8fHx8MTY2OTEwNjIwOA&ixlib=rb-4.0.3&q=80&w=1200",caption:"Caption 8"},{id:9,imgUrl:"https://images.unsplash.com/photo-1591087068118-0e6b440716c8?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwxMTc3M3wwfDF8c2VhcmNofDE4OXx8b3JhbmdlfGVufDB8fHx8MTY2OTEwNTM4NQ&ixlib=rb-4.0.3&q=80&w=1200",caption:"Caption 9"},{id:10,imgUrl:"https://images.unsplash.com/photo-1483921020237-2ff51e8e4b22?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=3570&q=80",caption:"Caption 10"}],X1=(t,e)=>{const n=t.length,r=[];let i=0;for(;i<n;){const o=Math.ceil((n-i)/e--);r.push(t.slice(i,i+=o))}return r};function Hc({toggle:t,insertImage:e,zoomedUrl:n,closeModal:r}){const[i,o]=S.default.useState(n||null),l=s=>{o(s)};return B(Pt,{children:[h("div",{className:"bg-black opacity-60 inset-0 h-[100vh] absolute"}),B("div",{"data-kg-modal":"unsplash",className:"bg-white inset-8 rounded z-40 overflow-hidden absolute shadow-xl",children:[h("button",{className:"absolute top-6 right-6 cursor-pointer",children:h(V1,{"data-kg-modal-close-button":!0,onClick:()=>r(),className:"w-4 h-4 text-grey-400 stroke-2"})}),B("div",{className:"flex flex-col h-full",children:[B("header",{className:"flex shrink-0 justify-between py-10 px-20 items-center",children:[B("h1",{className:"flex items-center gap-2 text-black text-3xl font-bold font-sans",children:[h(Yr,{className:"mb-1"}),"Unsplash"]}),B("div",{className:"relative w-full max-w-sm",children:[h(Y1,{className:"absolute top-1/2 left-4 w-4 h-4 -translate-y-2 text-grey-700"}),h("input",{className:"pr-8 pl-10 border border-grey-300 rounded-full font-sans text-md font-normal text-black h-10 w-full focus:border-grey-400 focus-visible:outline-none",placeholder:"Search free high-resolution photos"})]})]}),h("div",{className:"relative h-full overflow-hidden",children:h("div",{className:`overflow-auto w-full h-full px-20 flex justify-center ${i?"pb-10":""}`,children:i?h(Kc,{imgUrl:i,setZoomedImg:o,selectImg:l,insertImage:e}):h(q1,{selectImg:l,insertImage:e,dataset:J1})})})]})]})]})}function q1({insertImage:t,selectImg:e,dataset:n}){return X1(n,3).map((i,o)=>h("div",{"data-kg-unsplash-gallery":!0,className:"flex flex-col justify-start mr-6 grow basis-0 last-of-type:mr-0",children:i.map(l=>h(Wc,{imgUrl:l.imgUrl,caption:l.caption,selectImg:e,insertImage:t},l.id))},o))}function Kc({imgUrl:t,setZoomedImg:e,insertImage:n,selectImg:r}){return h("div",{"data-kg-unsplash-zoomed":!0,onClick:()=>e(null),className:"flex justify-center grow basis-0 h-full",children:h(Wc,{zoomed:"true",imgUrl:t,insertImage:n,selectImg:r})})}function Wc({imgUrl:t,zoomed:e,insertImage:n,selectImg:r}){return B("div",{"data-kg-unsplash-gallery-item":!0,onClick:()=>r(t),className:`relative block mb-6 bg-grey-100 ${e?"cursor-zoom-out w-[max-content] h-full":"cursor-zoom-in w-full"}`,children:[h("img",{src:t,alt:"Unsplash",className:`${e?"object-contain w-auto h-full":""}`}),B("div",{className:"absolute inset-0 flex flex-col justify-between p-5 transition-all ease-in-out bg-gradient-to-b from-black/5 via-black/5 to-black/30 opacity-0 hover:opacity-100",children:[B("div",{className:"flex items-center justify-end",children:[h(_o,{icon:"heart",label:"127"}),h(_o,{icon:"download"})]}),B("div",{className:"flex items-center justify-between",children:[B("div",{className:"flex items-center",children:[h("img",{className:"w-8 h-8 rounded-full mr-2",src:"https://images.unsplash.com/profile-1562493255799-d28c159b565e?auto=format&fit=crop&w=32&h=32&q=60&crop=faces&bg=fff",alt:"author"}),h("div",{className:"mr-2 font-sans text-white text-sm font-medium truncate",children:"Richard de Ruijter"})]}),h(_o,{"data-kg-unsplash-insert-button":!0,onClick:()=>{n({src:t})},label:"Insert image"})]})]})]})}const Q1={heart:G1,download:Z1};function _o({icon:t,label:e,...n}){const r=Q1[t];return B("button",{type:"button",className:"flex items-center shrink-0 h-8 py-2 px-3 font-sans text-sm text-grey-700 font-medium leading-6 bg-white rounded-md opacity-90 transition-all ease-in-out hover:opacity-100 first-of-type:mr-3 cursor-pointer",...n,children:[t&&h(r,{className:`w-4 h-4 fill-red stroke-[3px] ${e&&"mr-1"}`}),e&&h("span",{children:e})]})}Hc.propTypes={selectImg:xe.exports.func,insertImage:xe.exports.func,zoomedUrl:xe.exports.string},Kc.propTypes={imgUrl:xe.exports.string};const e0=({service:t,container:e,nodeKey:n,handleModalClose:r})=>{const[i]=ie.useLexicalComposerContext(),o=e||document.querySelector(".koenig-lexical"),l=()=>{n&&i.update(()=>{v.$getNodeByKey(n).remove()}),r(!1)},s=async c=>{const{height:d,width:u}=await xa(c.src);c.src&&(i.update(()=>{const g=v.$getNodeByKey(n);g.setSrc(c.src),g.setImgHeight(d),g.setImgWidth(u);const m=v.$createNodeSelection();m.add(g.getKey()),v.$setSelection(m)}),r(!1))};if(!o)return null;const a=()=>{if(t==="unsplash")return h(Hc,{closeModal:l,insertImage:s})};return Je.createPortal(h(a,{}),o)},t0=()=>{const[t]=ie.useLexicalComposerContext(),{imageUploader:e}=S.default.useContext(Ar),[n,r]=S.default.useState(null),[i,o]=S.default.useState(null),[l,s]=S.default.useState(!1),a=S.default.useCallback(async(c,d)=>{if((c==null?void 0:c.length)>0)return await Ji(c,d,t,e)},[e,t]);return S.default.useEffect(()=>{if(!t.hasNodes([rn])){console.error("ImagePlugin: ImageNode not registered");return}return me.mergeRegister(t.registerCommand(Mr,async c=>{const d=v.$getSelection();if(!v.$isRangeSelection(d))return!1;if(d.focus.getNode()!==null){const g=_a(c);if((c==null?void 0:c.triggerFileSelector)==="unsplash"&&(o(g.getKey()),s(!0),r("unsplash")),!c.src){const E=g.getKey();a(c,E)}const m=d.focus.getNode(),f=v.$isParagraphNode(m)&&m.getTextContent()==="",_=m.getTopLevelElementOrThrow().getNextSibling();!f&&!_&&d.insertParagraph(),d.focus.getNode().getTopLevelElementOrThrow().insertBefore(g);const C=v.$createNodeSelection();C.add(g.getKey()),v.$setSelection(C)}return!0},v.COMMAND_PRIORITY_HIGH))},[t,e,a]),l&&n?h(e0,{service:n,nodeKey:i,handleModalClose:s}):null};function n0(t,e){const n=t.type;return Object.keys(e).find(i=>e[i].includes(n))}function r0(t,e){const n=t[Symbol.iterator]();return new Promise((r,i)=>{const o=[];let l;const s=()=>{const{done:a,value:c}=n.next();if(a)return r({processed:o,node:l});const d=new FileReader;d.addEventListener("error",i),d.addEventListener("load",()=>{typeof d.result=="string"&&o.push(c),s()});const u=n0(c,e);u?(d.readAsDataURL(c),l=u):(console.error("unsupported file type"),s())};s()})}async function i0(t){const e=xo(t);let n={};for(const[r,i]of e)r&&i.mimeTypes&&(n[r]=i.mimeTypes);return{acceptableMimeTypes:n}}function o0(){const[t]=ie.useLexicalComposerContext(),e=S.default.useCallback(i=>{i.preventDefault(),i.stopPropagation()},[]),n=S.default.useCallback(async i=>{i.preventDefault(),i.stopPropagation(),i.dataTransfer.files&&t.dispatchCommand(nt.DRAG_DROP_PASTE,i.dataTransfer.files)},[t]);S.default.useEffect(()=>{const i=document.querySelector(".gh-koenig-editor")||document;return i.addEventListener("dragover",e),i.addEventListener("drop",n),()=>{i.removeEventListener("dragover",e),i.removeEventListener("drop",n)}},[n,e]);const r=S.default.useCallback(async i=>{const{acceptableMimeTypes:o}=await i0(t),{processed:l,node:s}=await r0(i,o);l.length&&s==="image"&&t.dispatchCommand(Mr,l)},[t]);return S.default.useEffect(()=>t.registerCommand(nt.DRAG_DROP_PASTE,async i=>{try{return await r(i)}catch(o){console.error(o)}},v.COMMAND_PRIORITY_LOW),[t,r]),null}const l0=()=>{const[t]=ie.useLexicalComposerContext();return re.useEffect(()=>{if(!t.hasNodes([])){console.error("HorizontalRulePlugin: HorizontalRuleNode not registered");return}return t.registerCommand(ca,()=>{const e=v.$getSelection();if(!v.$isRangeSelection(e))return!1;if(e.focus.getNode()!==null){const r=Vi(),i=e.focus.getNode();v.$isParagraphNode(i)&&i.getTextContent()!==""&&e.insertParagraph(),e.focus.getNode().getTopLevelElementOrThrow().insertBefore(r)}return!0},v.COMMAND_PRIORITY_EDITOR)},[t]),null};function s0(){return h("div",{className:"pointer-events-none absolute top-0 left-0 min-w-full cursor-text font-serif text-xl text-grey-500",children:"Begin writing your post..."})}var ft={},Ie=v;function vo(t,e=!0){return t?!1:(t=Uc(),e&&(t=t.trim()),t==="")}function Uc(){return Ie.$getRoot().getTextContent()}function jc(t,e){if(!e||!vo(t,!1)||(t=Ie.$getRoot().getChildren(),e=t.length,1<e))return!1;for(let r=0;r<e;r++){var n=t[r];if(Ie.$isElementNode(n)){if(n.__type!=="paragraph"||n.__indent!==0)return!1;n=n.getChildren();let i=n.length;for(let o=0;o<i;o++)if(!Ie.$isTextNode(n[r]))return!1}}return!0}ft.$canShowPlaceholder=jc,ft.$canShowPlaceholderCurry=function(t,e){return()=>jc(t,e)},ft.$findTextIntersectionFromCharacters=function(t,e){var n=t.getFirstChild();t=0;e:for(;n!==null;){if(Ie.$isElementNode(n)){var r=n.getFirstChild();if(r!==null){n=r;continue}}else if(Ie.$isTextNode(n)){if(r=n.getTextContentSize(),t+r>e)return{node:n,offset:e-t};t+=r}if(r=n.getNextSibling(),r!==null)n=r;else{for(n=n.getParent();n!==null;){if(r=n.getNextSibling(),r!==null){n=r;continue e}n=n.getParent()}break}}return null},ft.$isRootTextContentEmpty=vo,ft.$isRootTextContentEmptyCurry=function(t,e){return()=>vo(t,e)},ft.$rootTextContent=Uc,ft.registerLexicalTextEntity=function(t,e,n,r){let i=l=>{const s=Ie.$createTextNode(l.getTextContent());s.setFormat(l.getFormat()),l.replace(s)},o=t.registerNodeTransform(Ie.TextNode,l=>{if(l.isSimpleText()){var s=l.getPreviousSibling(),a=l.getTextContent(),c=l;if(Ie.$isTextNode(s)){var d=s.getTextContent(),u=e(d+a);if(s instanceof n){if(u===null||s.getLatest().__mode!==0){i(s);return}if(u=u.end-d.length,0<u){c=a.slice(0,u),c=d+c,s.select(),s.setTextContent(c),u===a.length?l.remove():(s=a.slice(u),l.setTextContent(s));return}}else if(u===null||u.start<d.length)return}for(;;){if(l=e(a),a=u=l===null?"":a.slice(l.end),u===""){if(d=c.getNextSibling(),Ie.$isTextNode(d)){if(u=c.getTextContent()+d.getTextContent(),u=e(u),u===null){d instanceof n?i(d):d.markDirty();break}else if(u.start!==0)break}}else if(d=e(u),d!==null&&d.start===0)break;if(l===null)break;if(l.start===0&&Ie.$isTextNode(s)&&s.isTextEntity())continue;let g;if(l.start===0?[g,c]=c.splitText(l.end):[,g,c]=c.splitText(l.start,l.end),l=r(g),g.replace(l),c==null)break}}});return t=t.registerNodeTransform(n,l=>{var s=l.getTextContent();const a=e(s);a===null||a.start!==0?i(l):s.length>a.end?l.splitText(a.end):(s=l.getPreviousSibling(),Ie.$isTextNode(s)&&s.isTextEntity()&&(i(s),i(l)),s=l.getNextSibling(),Ie.$isTextNode(s)&&s.isTextEntity()&&(i(s),l instanceof n&&i(l)))}),[o,t]};var a0=ft;const c0=({registerAPI:t})=>{const[e]=ie.useLexicalComposerContext();S.default.useEffect(()=>t?(t({editorInstance:e,editorIsEmpty(){let r;return e.update(()=>{r=a0.$canShowPlaceholder(!1,!0)}),r},focusEditor({position:r="bottom"}={}){const i={defaultSelection:r==="top"?"rootStart":null};e.focus(()=>{},i),r==="top"&&e.update(()=>{const l=v.$getRoot().getFirstChild();v.$isDecoratorNode(l)&&(Be(l),e.getRootElement().focus())})},blurEditor(){e.blur()},insertParagraphAtTop({focus:r=!0}={}){e.update(()=>{const i=v.$createParagraphNode(),[o]=v.$getRoot().getChildren();o.insertBefore(i),r&&i.selectStart()})}}),()=>{t==null||t(null)}):void 0,[e,t])},d0=({onChange:t,markdownTransformers:e,registerAPI:n,cursorDidExitAtTop:r})=>{const i=S.default.useCallback(c=>{const d=c.toJSON();t==null||t(d)},[t]),{editorContainerRef:o}=S.default.useContext(Ar),[l,s]=S.default.useState(null),a=c=>{c!==null&&s(c)};return B("div",{className:"koenig-lexical",ref:o,children:[h(Dg.RichTextPlugin,{contentEditable:h("div",{ref:a,children:h(Wg.ContentEditable,{className:"kg-prose"})}),placeholder:h(s0,{}),ErrorBoundary:Bg}),h(Qg.OnChangePlugin,{onChange:i}),h(Jg.HistoryPlugin,{})," ",h(r1.ListPlugin,{})," ",h(Ia,{containerElem:o,cursorDidExitAtTop:r}),h(Lc,{transformers:e}),h(Fc,{}),h(z1,{}),l&&h(Bc,{anchorElem:l}),h(t0,{}),h(o0,{}),h(l0,{}),h(c0,{registerAPI:n})]})};V.$isAtStartOfDocument=ro,V.$selectDecoratorNode=Be,V.CODE_BLOCK_TRANSFORMER=Mc,V.DEFAULT_NODES=va,V.DEFAULT_TRANSFORMERS=Dc,V.DesignSandbox=bd,V.ELEMENT_TRANSFORMERS=Ac,V.FloatingFormatToolbarPlugin=Bc,V.HR_TRANSFORMER=$c,V.KoenigBehaviourPlugin=Ia,V.KoenigComposer=Ng,V.KoenigEditor=d0,V.MarkdownShortcutPlugin=Lc,V.PlusCardMenuPlugin=Fc,Object.defineProperties(V,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
55
55
  //# sourceMappingURL=koenig-lexical.umd.js.map