@tryghost/koenig-lexical 0.0.23 → 0.0.25
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,te){typeof exports=="object"&&typeof module<"u"?te(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],te):(G=typeof globalThis<"u"?globalThis:G||self,te(G["@tryghost/koenig-lexical"]={},G.React,G.ReactDOM))})(this,function(G,te,Ke){"use strict";var tg=Object.defineProperty;var ng=(G,te,Ke)=>te in G?tg(G,te,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):G[te]=Ke;var je=(G,te,Ke)=>(ng(G,typeof te!="symbol"?te+"":te,Ke),Ke);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([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([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 h1 strong,.koenig-lexical .kg-prose h2 strong,.koenig-lexical .kg-prose h3 strong,.koenig-lexical .kg-prose h4 strong,.koenig-lexical .kg-prose h5 strong,.koenig-lexical .kg-prose h6 strong{font-weight:800}.koenig-lexical .kg-prose :where(h1):not(:where([class~="not-kg-prose"] *)){font-size:4.4rem;line-height:1.15em;letter-spacing:-.015em}.koenig-lexical .kg-prose :where(h2):not(:where([class~="not-kg-prose"] *)){font-size:3.2rem;line-height:1.2em;letter-spacing:-.014em}.koenig-lexical .kg-prose :where(h3):not(:where([class~="not-kg-prose"] *)){font-size:2.5rem;line-height:1.3em;letter-spacing:-.013em}.koenig-lexical .kg-prose :where(h4):not(:where([class~="not-kg-prose"] *)){font-size:2.2rem;line-height:1.35em;letter-spacing:-.011em}.koenig-lexical .kg-prose :where(h5):not(:where([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([class~="not-kg-prose"] *)){font-size:1.85rem;line-height:1.4em;font-weight:700;letter-spacing:-.008em}.koenig-lexical .kg-prose p+h1,.koenig-lexical .kg-prose p+h2,.koenig-lexical .kg-prose p+h3,.koenig-lexical .kg-prose p+h4,.koenig-lexical .kg-prose p+h5,.koenig-lexical .kg-prose p+h6,.koenig-lexical .kg-prose blockquote+h1,.koenig-lexical .kg-prose blockquote+h2,.koenig-lexical .kg-prose blockquote+h3,.koenig-lexical .kg-prose blockquote+h4,.koenig-lexical .kg-prose blockquote+h5,.koenig-lexical .kg-prose blockquote+h6,.koenig-lexical .kg-prose aside+h1,.koenig-lexical .kg-prose aside+h2,.koenig-lexical .kg-prose aside+h3,.koenig-lexical .kg-prose aside+h4,.koenig-lexical .kg-prose aside+h5,.koenig-lexical .kg-prose aside+h6,.koenig-lexical .kg-prose ul+h1,.koenig-lexical .kg-prose ul+h2,.koenig-lexical .kg-prose ul+h3,.koenig-lexical .kg-prose ul+h4,.koenig-lexical .kg-prose ul+h5,.koenig-lexical .kg-prose ul+h6,.koenig-lexical .kg-prose ol+h1,.koenig-lexical .kg-prose ol+h2,.koenig-lexical .kg-prose ol+h3,.koenig-lexical .kg-prose ol+h4,.koenig-lexical .kg-prose ol+h5,.koenig-lexical .kg-prose ol+h6{margin:4.8rem 0 0}.koenig-lexical .kg-prose h1+h1{margin:1.4rem 0 0}.koenig-lexical .kg-prose h2+h1,.koenig-lexical .kg-prose h3+h1{margin:1rem 0 0}.koenig-lexical .kg-prose h4+h1,.koenig-lexical .kg-prose h5+h1{margin:.8rem 0 0}.koenig-lexical .kg-prose h6+h1{margin:.6rem 0 0}.koenig-lexical .kg-prose div+h1{margin:4.8rem 0 0}.koenig-lexical .kg-prose h1+h2{margin:1.6rem 0 0}.koenig-lexical .kg-prose h2+h2,.koenig-lexical .kg-prose h3+h2,.koenig-lexical .kg-prose h4+h2,.koenig-lexical .kg-prose .koenig-react__editor h5+h2{margin:.8rem 0 0}.koenig-lexical .kg-prose h6+h2{margin:.4rem 0 0}.koenig-lexical .kg-prose div+h2{margin:4.8rem 0 0}.koenig-lexical .kg-prose h1+h3,.koenig-lexical .kg-prose h2+h3,.koenig-lexical .kg-prose h1+h4,.koenig-lexical .kg-prose h2+h4,.koenig-lexical .kg-prose h1+h5,.koenig-lexical .kg-prose h2+h5,.koenig-lexical .kg-prose h1+h6,.koenig-lexical .kg-prose h2+h6{margin:1.2rem 0 0}.koenig-lexical .kg-prose h3+h4{margin:.8rem 0 0}.koenig-lexical .kg-prose h3+h3,.koenig-lexical .kg-prose h4+h3,.koenig-lexical .kg-prose h5+h3,.koenig-lexical .kg-prose h4+h4,.koenig-lexical .kg-prose h5+h4,.koenig-lexical .kg-prose h3+h5,.koenig-lexical .kg-prose h4+h5,.koenig-lexical .kg-prose h5+h5,.koenig-lexical .kg-prose h3+h6,.koenig-lexical .kg-prose h4+h6{margin:.8rem 0 0}.koenig-lexical .kg-prose h5+h6{margin:.4rem 0 0}.koenig-lexical .kg-prose h6+h3,.koenig-lexical .kg-prose h6+h4,.koenig-lexical .kg-prose h6+h5,.koenig-lexical .kg-prose h6+h6{margin:.4rem 0 0}.koenig-lexical .kg-prose div+h3,.koenig-lexical .kg-prose div+h4,.koenig-lexical .kg-prose div+h5,.koenig-lexical .kg-prose div+h6{margin:4.8rem 0 0}.koenig-lexical .kg-prose h1:first-child,.koenig-lexical .kg-prose h2:first-child,.koenig-lexical .kg-prose h3:first-child,.koenig-lexical .kg-prose h4:first-child,.koenig-lexical .kg-prose .koenig-react__editor h5:first-child,.koenig-lexical .kg-prose h6:first-child{margin-top:0rem}@media (max-width: 500px){.koenig-lexical .kg-prose :where(h1):not(:where([class~="not-kg-prose"] *)){font-size:3.2rem}.koenig-lexical .kg-prose :where(h2):not(:where([class~="not-kg-prose"] *)){font-size:2.8rem}.koenig-lexical .kg-prose :where(h3):not(:where([class~="not-kg-prose"] *)){font-size:2.4rem}.koenig-lexical .kg-prose :where(h4):not(:where([class~="not-kg-prose"] *)){font-size:2.3rem}.koenig-lexical .kg-prose :where(h5):not(:where([class~="not-kg-prose"] *)){font-size:2rem}.koenig-lexical .kg-prose :where(h6):not(:where([class~="not-kg-prose"] *)){font-size:1.9rem}}.koenig-lexical .kg-prose :where(p,blockquote,aside,ul,ol):not(:where([class~="not-kg-prose"] *)){font-family:georgia,serif;font-weight:400;line-height:1.6em;font-size:2rem}.koenig-lexical .kg-prose p strong,.koenig-lexical .kg-prose blockquote strong,.koenig-lexical .kg-prose aside strong,.koenig-lexical .kg-prose ul strong,.koenig-lexical .kg-prose ol strong{font-weight:700}.koenig-lexical .kg-prose h1+p{margin:1rem 0 0}.koenig-lexical .kg-prose h2+p{margin:.8rem 0 0}.koenig-lexical .kg-prose h3+p,.koenig-lexical .kg-prose h4+p,.koenig-lexical .kg-prose h5+p,.koenig-lexical .kg-prose h6+p{margin:.8rem 0 0}.koenig-lexical .kg-prose p+p,.koenig-lexical .kg-prose blockquote+p,.koenig-lexical .kg-prose aside+p,.koenig-lexical .kg-prose ul+p,.koenig-lexical .kg-prose ol+p{margin:3.2rem 0 0}.koenig-lexical .kg-prose div+p{margin:2.8rem 0 0}.koenig-lexical .kg-prose div+figure{margin:2.8rem 0 0}.koenig-lexical .kg-prose p:first-child{margin-top:0rem}@media (max-width: 500px){.koenig-lexical .kg-prose :where(p,blockquote,aside,ul,ol):not(:where([class~="not-kg-prose"] *)){font-size:1.8rem}}.koenig-lexical .kg-prose ul,.koenig-lexical .kg-prose ol{margin:1.6rem 0 0;padding:0;min-width:100%;max-width:100%}.koenig-lexical .kg-prose ul li{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 ul li:first-child{margin:0 0 0 2.4rem}.koenig-lexical .kg-prose ol li{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 ol li:first-child{margin:0 0 0 2.2rem}.koenig-lexical .kg-prose p+ul,.koenig-lexical .kg-prose p+ol{margin:3rem 0 0}.koenig-lexical .kg-prose ul+ul,.koenig-lexical .kg-prose ul+ol,.koenig-lexical .kg-prose ol+ul,.koenig-lexical .kg-prose ol+ol,.koenig-lexical .kg-prose blockquote+ul,.koenig-lexical .kg-prose blockquote+ol,.koenig-lexical .kg-prose aside+ul,.koenig-lexical .kg-prose aside+ol{margin:3rem 0 0}.koenig-lexical .kg-prose h1+ul,.koenig-lexical .kg-prose h1+ol,.koenig-lexical .kg-prose h2+ul,.koenig-lexical .kg-prose h2+ol{margin:.8rem 0 0}.koenig-lexical .kg-prose h3+ul,.koenig-lexical .kg-prose h3+ol,.koenig-lexical .kg-prose h4+ul,.koenig-lexical .kg-prose h4+ol,.koenig-lexical .kg-prose h5+ul,.koenig-lexical .kg-prose h5+ol,.koenig-lexical .kg-prose h6+ul,.koenig-lexical .kg-prose h6+ol{margin:1.2rem 0 0}.koenig-lexical .kg-prose div+ul,.koenig-lexical .kg-prose div+ol{margin:2.8rem 0 0}.koenig-lexical .kg-prose ul ul,.koenig-lexical .kg-prose ul ol,.koenig-lexical .kg-prose ol ul,.koenig-lexical .kg-prose ol ol{margin:1rem 0 2rem}.koenig-lexical .kg-prose ul:first-child,.koenig-lexical .kg-prose ol:first-child{margin-top:0rem}.koenig-lexical .kg-prose a{color:var(--kg-accent-color, #ff0095);text-decoration:underline}.koenig-lexical .kg-prose blockquote p{margin:0}.koenig-lexical .kg-prose blockquote{border-left:.25rem solid var(--kg-accent-color, #ff0095);padding-left:2rem;font-style:italic}.koenig-lexical .kg-prose h1+blockquote,.koenig-lexical .kg-prose h2+blockquote{margin:.8rem 0 0}.koenig-lexical .kg-prose h3+blockquote,.koenig-lexical .kg-prose h4+blockquote,.koenig-lexical .kg-prose .koenig-react__editor h5+blockquote,.koenig-lexical .kg-prose h6+blockquote{margin:.4rem 0 0}.koenig-lexical .kg-prose p+blockquote,.koenig-lexical .kg-prose blockquote+blockquote{margin:3.2rem 0 0}.koenig-lexical .kg-prose div+blockquote{margin:2.8rem 0 0}.koenig-lexical .kg-prose aside p{margin:0}.koenig-lexical .kg-prose aside{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 h1+aside,.koenig-lexical .kg-prose h2+aside{margin:.8rem 0 0}.koenig-lexical .kg-prose h3+aside,.koenig-lexical .kg-prose h4+aside,.koenig-lexical .kg-prose h5+aside,.koenig-lexical .kg-prose h6+aside{margin:.4rem 0 0}.koenig-lexical .kg-prose p+aside,.koenig-lexical .kg-prose blockquote+aside{margin:3.2rem 0 0}@media (max-width: 800px){.koenig-lexical .kg-prose aside{padding-left:6rem;padding-right:6rem}}@media (max-width: 500px){.koenig-lexical .kg-prose aside{font-size:2.2rem}}.koenig-lexical .kg-prose div+aside{margin:2.8rem 0 0}.koenig-lexical .kg-prose div{line-height:0;min-width:100%}.koenig-lexical .kg-prose div+div{margin:3.2rem 0 0}.koenig-lexical .kg-prose p+div,.koenig-lexical .kg-prose blockquote+div,.koenig-lexical .kg-prose aside+div,.koenig-lexical .kg-prose ul+div,.koenig-lexical .kg-prose ol+div{margin:3.2rem 0 0}.koenig-lexical .kg-prose h1+div{margin:2.8rem 0 0}.koenig-lexical .kg-prose h2+div,.koenig-lexical .kg-prose h3+div,.koenig-lexical .kg-prose h4+div,.koenig-lexical .kg-prose h5+div,.koenig-lexical .kg-prose h6+div{margin:1.6rem 0 0}.koenig-lexical .kg-prose hr{margin:1.6rem 0}.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 .bottom-0{bottom:0px}.koenig-lexical .right-0{right:0px}.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 .bottom-4{bottom:1.6rem}.koenig-lexical .right-6{right:2.4rem}.koenig-lexical .right-\\[-100\\%\\]{right:-100%}.koenig-lexical .bottom-1{bottom:.4rem}.koenig-lexical .left-6{left:2.4rem}.koenig-lexical .z-\\[9999999\\]{z-index:9999999}.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-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 .ml-\\[66px\\]{margin-left:66px}.koenig-lexical .mt-\\[2px\\]{margin-top:2px}.koenig-lexical .mt-1{margin-top:.4rem}.koenig-lexical .mt-2{margin-top:.8rem}.koenig-lexical .mr-2{margin-right:.8rem}.koenig-lexical .ml-1{margin-left:.4rem}.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 .ml-2{margin-left:.8rem}.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-10{height:4rem}.koenig-lexical .h-8{height:3.2rem}.koenig-lexical .h-3{height:1.2rem}.koenig-lexical .h-full{height:100%}.koenig-lexical .h-6{height:2.4rem}.koenig-lexical .max-h-\\[376px\\]{max-height:376px}.koenig-lexical .min-h-\\[120px\\]{min-height:120px}.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-5{width:2rem}.koenig-lexical .w-\\[740px\\]{width:740px}.koenig-lexical .w-\\[764px\\]{width:764px}.koenig-lexical .w-\\[1170px\\]{width:1170px}.koenig-lexical .w-8{width:3.2rem}.koenig-lexical .w-\\[440px\\]{width:440px}.koenig-lexical .w-0{width:0px}.koenig-lexical .w-\\[400px\\]{width:400px}.koenig-lexical .w-6{width:2.4rem}.koenig-lexical .min-w-full{min-width:100%}.koenig-lexical .min-w-\\[33\\%\\]{min-width:33%}.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 .shrink-0{flex-shrink:0}.koenig-lexical .flex-grow,.koenig-lexical .grow{flex-grow:1}.koenig-lexical .transform{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 .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-center{justify-content:center}.koenig-lexical .justify-between{justify-content:space-between}.koenig-lexical .justify-evenly{justify-content:space-evenly}.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-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\\/40{border-color:#abb4be66}.koenig-lexical .border-grey\\/60{border-color:#abb4be99}.koenig-lexical .border-grey\\/30{border-color:#abb4be4d}.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-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-transparent{background-color:transparent}.koenig-lexical .bg-clip-padding{background-clip:padding-box}.koenig-lexical .fill-white{fill:#fff}.koenig-lexical .fill-green{fill:#30cf43}.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 .p-0{padding:0}.koenig-lexical .p-20{padding:8rem}.koenig-lexical .p-2{padding:.8rem}.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-4{padding-top:1.6rem;padding-bottom:1.6rem}.koenig-lexical .px-6{padding-left:2.4rem;padding-right:2.4rem}.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 .pt-\\[15vmin\\]{padding-top:15vmin}.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-\\[1\\.5rem\\]{font-size:1.5rem}.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 .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-relaxed{line-height:1.625}.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-0{opacity:0}.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-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 .ease-linear{transition-timing-function:linear}.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-200: #EBEEF0;--grey-300: #DDE1E5;--grey-500: #AEB7C1;--grey-900: #394047;--black: #15171A}@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\\: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 .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\\: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 .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: 768px){.koenig-lexical .md\\:h-9{height:3.6rem}.koenig-lexical .md\\:w-9{width:3.6rem}}
|
|
2
|
-
`;document.head.appendChild(__vite_style__);const eo=t=>t&&typeof t=="object"&&"default"in t?t:{default:t};function cc(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=cc(te),b=eo(te),dc=eo(Ke),rg="",to=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...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",role:"img",...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"})),ro=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),io=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),Ar=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),oo=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),lo=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"}))),so=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"}))),ao=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"}))),co=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"}))),uo=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),In=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),go=t=>x.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{d:"M12 1.5v21M1.5 12h21",strokeLinecap:"round",strokeLinejoin:"round"}))),ho=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"}))),uc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"}))),gc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"}))),hc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"}))),fo=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...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}))),fc=t=>x.createElement("svg",{width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),pc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"}))),mc=t=>x.createElement("svg",{width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"}))),xc=t=>x.createElement("svg",{width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),_c=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),vc=t=>x.createElement("svg",{width:28,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"}))),yc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),kc=t=>x.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),Cc=t=>x.createElement("svg",{width:28,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),wc=t=>x.createElement("svg",{width:28,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),Ec=t=>x.createElement("svg",{width:28,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),Nc=t=>x.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),Tc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),Sc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"}))),bc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),Mc=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 122.43 122.41",role:"img",...t},x.createElement("path",{d:"M83.86 54.15v34.13H38.57V54.15H0v68.26h122.43V54.15H83.86zM38.57 0h45.3v34.13h-45.3z"})),Oc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"}))),Rc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),Ac=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),$c=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),Lc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),Dc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"}))),Ic=t=>x.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),$r=t=>x.createElement("svg",{width:134,height:135,viewBox:"0 0 134 135",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("g",{stroke:"#9BAEB8",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},x.createElement("path",{d:"M35.434 9.16C44.87 3.994 55.694 1.055 67.2 1.055c36.583 0 66.284 29.702 66.284 66.285 0 36.582-29.7 66.283-66.284 66.283-36.583 0-66.284-29.7-66.284-66.283 0-12.22 3.314-23.672 9.092-33.506"}),x.createElement("path",{d:"M24.01 4.886c9.846 0 17.84 7.995 17.84 17.84 0 9.847-7.994 17.84-17.84 17.84S6.17 32.574 6.17 22.727c0-9.845 7.994-17.84 17.84-17.84z",strokeWidth:1.5}),x.createElement("path",{d:"M1.598 75.68l7.01-7.938 20.384-7.729 8.021 11.196M26.982 86.606l27.881-41.571 14.692-2.025 12.243-12.246 20.94 32.006M97.117 54.063l13.125-15.386 10.226 16.892 12.617 6.481"}),x.createElement("path",{d:"M81.701 31.513l-4.567 16.414L63.2 50.168l-8.044-4.799M28.906 60.426l-10.052 9.4-16.46 9.75M110.264 39.466l-4.352 14.397-6.813 3.335M4.29 72.954h9.06M1.77 76.146H7.9M6.913 69.892H18.4M58.786 47.145h18.592M61.472 44.198h16.672M71.52 41.148h7.179M74.902 38.194h4.88M77.288 35.303h2.957M11.085 66.873h10.481M18.863 63.852h6.291M63.273 50.268l12.045 9.34 10.39 3.407 4.629 7.316M97.506 54.106h7.31M100.008 50.933h6.486M102.467 47.848h4.952M105.283 44.777h3.354M3.216 83.405s13.854-.669 27.219 4.988c13.364 5.657 23.471 12.137 23.471 12.137M47.563 95.954S64.39 84.025 90.549 82.267c26.158-1.76 41.03.652 41.03.652"}),x.createElement("g",{strokeWidth:1.5},x.createElement("path",{d:"M106.484 88.541V58.202M106.348 58.407s-3.325 5.105-6.446 6.446M106.348 63.752s-3.325 5.104-6.446 6.445M106.316 68.586s-4.334 5.96-8.403 7.526M106.291 74.127s-5.09 5.96-9.869 7.526M106.558 58.407s3.325 5.105 6.446 6.446M106.558 63.752s3.325 5.104 6.446 6.445M106.59 68.586s4.334 5.96 8.403 7.526M106.614 74.127s5.09 5.96 9.87 7.526M84.635 106.582V77.526M84.504 77.723s-3.184 4.888-6.172 6.173M84.504 82.841s-3.184 4.888-6.172 6.173M84.474 87.47s-4.151 5.709-8.047 7.209M84.45 92.777S79.577 98.485 75 99.985M84.706 77.723s3.183 4.888 6.173 6.173M84.706 82.841s3.183 4.888 6.173 6.173M84.737 87.47s4.15 5.709 8.047 7.209M84.76 92.777s4.875 5.708 9.452 7.208M25.956 118.764V98.566M25.829 98.758s-3.11 4.774-6.028 6.028M25.829 103.756s-3.11 4.774-6.028 6.028M25.799 108.277s-2.5 3.438-5.416 5.623M25.776 113.459s-1.13 1.323-2.805 2.849M26.025 98.758s3.11 4.774 6.028 6.028M26.025 103.756s3.11 4.774 6.028 6.028M26.055 108.277s4.053 5.574 7.858 7.039M26.078 113.459s4.76 5.574 9.23 7.039M66.765 133.543v-30.074M104.85 121.098V109.88M104.722 110.072s-3.11 4.774-6.028 6.028M104.722 115.07s-3.11 4.774-6.028 6.028M104.692 119.591s-4.053 5.575-7.858 7.04M104.919 110.072s3.109 4.774 6.028 6.028M104.919 115.07s1.436 2.205 3.272 4.012M104.949 119.591s.39.538 1.044 1.324M66.583 103.744s-4.448 6.828-8.623 8.623M66.583 110.894s-4.448 6.828-8.623 8.622M66.54 117.36s-5.798 7.975-11.24 10.07M66.508 124.773s-4.13 4.837-8.978 7.966M66.865 103.744s4.447 6.828 8.622 8.623M66.865 110.894s4.447 6.828 8.622 8.622M66.907 117.36s5.798 7.975 11.241 10.07M66.94 124.773s3.968 4.647 8.69 7.778M60.7 88.912V77.016M60.617 76.178s-2.04 3.134-3.957 3.957M60.617 80.423s-2.04 3.133-3.957 3.957M60.598 84.355s-2.66 3.658-5.158 4.62M60.746 76.178s2.041 3.134 3.957 3.957M60.746 80.423s2.041 3.133 3.957 3.957M60.766 84.355s.89 1.98 2.86 3.408M39.394 98.072V75.388M39.292 75.542s-2.485 3.816-4.819 4.819M39.292 79.538s-2.485 3.816-4.819 4.819M39.268 83.152s-3.24 4.456-6.282 5.627M39.25 87.295s-3.806 4.456-7.379 5.627M39.45 75.542s2.485 3.816 4.819 4.819M39.45 79.538s2.485 3.816 4.819 4.819M39.474 83.152s3.24 4.456 6.282 5.627M39.491 87.295s3.807 4.456 7.38 5.627"})),x.createElement("g",{opacity:.6},x.createElement("path",{d:"M15.347 88.073h3.286M15.347 102.314h3.286M7.747 95.674h3.285M33.102 102.426h1.588M23.803 95.785h3.286M47.46 117.496h3.286M47.46 102.537h3.286M39.86 125.097h3.286M54.32 125.097h.964M54.32 109.673h.964M39.86 110.138h3.286M63.517 102.648h.964M55.916 96.008h3.286M79.574 117.72h3.285M71.973 96.12h1.643M95.63 88.63h3.286M95.63 117.83h3.286M95.63 102.871h3.286M88.03 125.431h3.285M88.03 110.472h3.285M111.686 88.741h3.286M111.686 102.983h3.286M104.086 96.342h3.286M104.086 110.583h3.286M127.743 88.853h2.102M120.142 96.453h3.287"})))),Pc=t=>x.createElement("svg",{width:142,height:133,viewBox:"0 0 142 133",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("title",null,"gallery-placeholder"),x.createElement("g",{stroke:"#9BAEB8",fill:"none",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round"},x.createElement("path",{d:"M116.564 6.731a6.215 6.215 0 0 0-6.831-5.532L6.731 12.025a6.216 6.216 0 0 0-5.532 6.831l11.244 106.98a6.217 6.217 0 0 0 6.831 5.532l103.002-10.826a6.215 6.215 0 0 0 5.532-6.831L116.564 6.73z"}),x.createElement("path",{d:"M109.22 13.398a4.003 4.003 0 0 0-4.397-3.561L13.33 19.453a4.005 4.005 0 0 0-3.562 4.398l9.19 87.44 99.453-10.453-9.191-87.44zM17.168 94.25l32.55-3.42M84.1 87.216l32.52-3.418"}),x.createElement("g",{strokeWidth:1.5},x.createElement("path",{d:"M59.043 98.59c-9.3 1.04-6.382-12-19.314-16.619l52.269-5.493c-11.689 7.205-6.123 19.355-15.437 20.27l-17.518 1.841zm6.821-19.365C62.738 71.163 58.508 65.407 52.7 62.95m13.164 16.275c-2.227-13.332-1.061-23.69 8.078-32.121"}),x.createElement("path",{d:"M74.758 66.434c.627 3.041.077 5.81-1.648 8.306-1.725 2.496-4.12 3.989-7.186 4.478-.626-3.04-.076-5.809 1.649-8.305 1.724-2.496 4.12-3.989 7.185-4.479zm-12.174-21.1c2.198 1 3.686 2.615 4.464 4.844.778 2.228.618 4.418-.48 6.57-2.198-1.001-3.686-2.616-4.464-4.844-.778-2.229-.618-4.419.48-6.57zm29.191.643c-2.312 2.604-5.205 4.01-8.68 4.217-3.477.207-6.517-.845-9.12-3.156-2.605-2.312-4.01-5.205-4.218-8.68-.207-3.476.845-6.516 3.156-9.121l6.576-7.409c.658-.741 1.244-.539 1.303.45l.424 7.103 7.1-.422c1.2-.072 1.834.492 1.906 1.69l.424 7.101 7.101-.422c.99-.059 1.26.5.602 1.24l-6.575 7.409zm-42.39 3.888c2.249 1.404 3.672 3.398 4.27 5.982.597 2.583.194 5-1.21 7.249-1.405 2.25-3.4 3.673-5.983 4.27-2.583.597-5 .194-7.249-1.21l-6.4-3.997c-.64-.4-.563-.865.173-1.035l5.28-1.22-1.22-5.28c-.206-.89.136-1.439 1.027-1.645l5.278-1.221-1.22-5.279c-.17-.735.215-1.01.855-.61l6.399 3.996z"})),x.createElement("path",{d:"m20.698 98.047 4.933-.519m4.924-.518 4.933-.518m4.925-.517 4.933-.519M89.7 90.794l4.934-.518m4.924-.518 4.933-.518m4.925-.518 4.933-.518M21.65 107.106l4.933-.518m4.925-.518 4.933-.518m4.924-.518 4.933-.518m4.925-.518 4.933-.518m4.924-.518 4.933-.518m4.925-.518 4.933-.518m4.924-.518 4.933-.519m4.925-.517 4.933-.519m4.924-.517 4.933-.519m4.925-.517 4.933-.519m-97.226 5.617 3.061-.322m4.924-.518 4.934-.518m4.924-.517 4.933-.519m4.925-.517 4.933-.519m34.497-3.626 4.933-.518m4.924-.518 4.933-.518m4.925-.518 4.933-.518m4.925-.518 2.748-.289m-53.023 34.156c19.467 1.362 53.066 4.343 62.482 5a6.215 6.215 0 0 0 6.634-5.766l7.503-107.307a6.215 6.215 0 0 0-5.766-6.634c-5.398-.377-18.289-1.224-18.289-1.224",opacity:.6})));var po=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Pn={exports:{}},Fn={};/**
|
|
1
|
+
(function(G,te){typeof exports=="object"&&typeof module<"u"?te(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],te):(G=typeof globalThis<"u"?globalThis:G||self,te(G["@tryghost/koenig-lexical"]={},G.React,G.ReactDOM))})(this,function(G,te,Ue){"use strict";var t1=Object.defineProperty;var n1=(G,te,Ue)=>te in G?t1(G,te,{enumerable:!0,configurable:!0,writable:!0,value:Ue}):G[te]=Ue;var Ke=(G,te,Ue)=>(n1(G,typeof te!="symbol"?te+"":te,Ue),Ue);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([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([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 h1 strong,.koenig-lexical .kg-prose h2 strong,.koenig-lexical .kg-prose h3 strong,.koenig-lexical .kg-prose h4 strong,.koenig-lexical .kg-prose h5 strong,.koenig-lexical .kg-prose h6 strong{font-weight:800}.koenig-lexical .kg-prose :where(h1):not(:where([class~="not-kg-prose"] *)){font-size:4.4rem;line-height:1.15em;letter-spacing:-.015em}.koenig-lexical .kg-prose :where(h2):not(:where([class~="not-kg-prose"] *)){font-size:3.2rem;line-height:1.2em;letter-spacing:-.014em}.koenig-lexical .kg-prose :where(h3):not(:where([class~="not-kg-prose"] *)){font-size:2.5rem;line-height:1.3em;letter-spacing:-.013em}.koenig-lexical .kg-prose :where(h4):not(:where([class~="not-kg-prose"] *)){font-size:2.2rem;line-height:1.35em;letter-spacing:-.011em}.koenig-lexical .kg-prose :where(h5):not(:where([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([class~="not-kg-prose"] *)){font-size:1.85rem;line-height:1.4em;font-weight:700;letter-spacing:-.008em}.koenig-lexical .kg-prose p+h1,.koenig-lexical .kg-prose p+h2,.koenig-lexical .kg-prose p+h3,.koenig-lexical .kg-prose p+h4,.koenig-lexical .kg-prose p+h5,.koenig-lexical .kg-prose p+h6,.koenig-lexical .kg-prose blockquote+h1,.koenig-lexical .kg-prose blockquote+h2,.koenig-lexical .kg-prose blockquote+h3,.koenig-lexical .kg-prose blockquote+h4,.koenig-lexical .kg-prose blockquote+h5,.koenig-lexical .kg-prose blockquote+h6,.koenig-lexical .kg-prose aside+h1,.koenig-lexical .kg-prose aside+h2,.koenig-lexical .kg-prose aside+h3,.koenig-lexical .kg-prose aside+h4,.koenig-lexical .kg-prose aside+h5,.koenig-lexical .kg-prose aside+h6,.koenig-lexical .kg-prose ul+h1,.koenig-lexical .kg-prose ul+h2,.koenig-lexical .kg-prose ul+h3,.koenig-lexical .kg-prose ul+h4,.koenig-lexical .kg-prose ul+h5,.koenig-lexical .kg-prose ul+h6,.koenig-lexical .kg-prose ol+h1,.koenig-lexical .kg-prose ol+h2,.koenig-lexical .kg-prose ol+h3,.koenig-lexical .kg-prose ol+h4,.koenig-lexical .kg-prose ol+h5,.koenig-lexical .kg-prose ol+h6{margin:4.8rem 0 0}.koenig-lexical .kg-prose h1+h1{margin:1.4rem 0 0}.koenig-lexical .kg-prose h2+h1,.koenig-lexical .kg-prose h3+h1{margin:1rem 0 0}.koenig-lexical .kg-prose h4+h1,.koenig-lexical .kg-prose h5+h1{margin:.8rem 0 0}.koenig-lexical .kg-prose h6+h1{margin:.6rem 0 0}.koenig-lexical .kg-prose div+h1{margin:4.8rem 0 0}.koenig-lexical .kg-prose h1+h2{margin:1.6rem 0 0}.koenig-lexical .kg-prose h2+h2,.koenig-lexical .kg-prose h3+h2,.koenig-lexical .kg-prose h4+h2,.koenig-lexical .kg-prose .koenig-react__editor h5+h2{margin:.8rem 0 0}.koenig-lexical .kg-prose h6+h2{margin:.4rem 0 0}.koenig-lexical .kg-prose div+h2{margin:4.8rem 0 0}.koenig-lexical .kg-prose h1+h3,.koenig-lexical .kg-prose h2+h3,.koenig-lexical .kg-prose h1+h4,.koenig-lexical .kg-prose h2+h4,.koenig-lexical .kg-prose h1+h5,.koenig-lexical .kg-prose h2+h5,.koenig-lexical .kg-prose h1+h6,.koenig-lexical .kg-prose h2+h6{margin:1.2rem 0 0}.koenig-lexical .kg-prose h3+h4{margin:.8rem 0 0}.koenig-lexical .kg-prose h3+h3,.koenig-lexical .kg-prose h4+h3,.koenig-lexical .kg-prose h5+h3,.koenig-lexical .kg-prose h4+h4,.koenig-lexical .kg-prose h5+h4,.koenig-lexical .kg-prose h3+h5,.koenig-lexical .kg-prose h4+h5,.koenig-lexical .kg-prose h5+h5,.koenig-lexical .kg-prose h3+h6,.koenig-lexical .kg-prose h4+h6{margin:.8rem 0 0}.koenig-lexical .kg-prose h5+h6{margin:.4rem 0 0}.koenig-lexical .kg-prose h6+h3,.koenig-lexical .kg-prose h6+h4,.koenig-lexical .kg-prose h6+h5,.koenig-lexical .kg-prose h6+h6{margin:.4rem 0 0}.koenig-lexical .kg-prose div+h3,.koenig-lexical .kg-prose div+h4,.koenig-lexical .kg-prose div+h5,.koenig-lexical .kg-prose div+h6{margin:4.8rem 0 0}.koenig-lexical .kg-prose h1:first-child,.koenig-lexical .kg-prose h2:first-child,.koenig-lexical .kg-prose h3:first-child,.koenig-lexical .kg-prose h4:first-child,.koenig-lexical .kg-prose .koenig-react__editor h5:first-child,.koenig-lexical .kg-prose h6:first-child{margin-top:0rem}@media (max-width: 500px){.koenig-lexical .kg-prose :where(h1):not(:where([class~="not-kg-prose"] *)){font-size:3.2rem}.koenig-lexical .kg-prose :where(h2):not(:where([class~="not-kg-prose"] *)){font-size:2.8rem}.koenig-lexical .kg-prose :where(h3):not(:where([class~="not-kg-prose"] *)){font-size:2.4rem}.koenig-lexical .kg-prose :where(h4):not(:where([class~="not-kg-prose"] *)){font-size:2.3rem}.koenig-lexical .kg-prose :where(h5):not(:where([class~="not-kg-prose"] *)){font-size:2rem}.koenig-lexical .kg-prose :where(h6):not(:where([class~="not-kg-prose"] *)){font-size:1.9rem}}.koenig-lexical .kg-prose :where(p,blockquote,aside,ul,ol):not(:where([class~="not-kg-prose"] *)){font-family:georgia,serif;font-weight:400;line-height:1.6em;font-size:2rem}.koenig-lexical .kg-prose p strong,.koenig-lexical .kg-prose blockquote strong,.koenig-lexical .kg-prose aside strong,.koenig-lexical .kg-prose ul strong,.koenig-lexical .kg-prose ol strong{font-weight:700}.koenig-lexical .kg-prose h1+p{margin:1rem 0 0}.koenig-lexical .kg-prose h2+p{margin:.8rem 0 0}.koenig-lexical .kg-prose h3+p,.koenig-lexical .kg-prose h4+p,.koenig-lexical .kg-prose h5+p,.koenig-lexical .kg-prose h6+p{margin:.8rem 0 0}.koenig-lexical .kg-prose p+p,.koenig-lexical .kg-prose blockquote+p,.koenig-lexical .kg-prose aside+p,.koenig-lexical .kg-prose ul+p,.koenig-lexical .kg-prose ol+p{margin:3.2rem 0 0}.koenig-lexical .kg-prose div+p{margin:2.8rem 0 0}.koenig-lexical .kg-prose div+figure{margin:2.8rem 0 0}.koenig-lexical .kg-prose p:first-child{margin-top:0rem}@media (max-width: 500px){.koenig-lexical .kg-prose :where(p,blockquote,aside,ul,ol):not(:where([class~="not-kg-prose"] *)){font-size:1.8rem}}.koenig-lexical .kg-prose ul,.koenig-lexical .kg-prose ol{margin:1.6rem 0 0;padding:0;min-width:100%;max-width:100%}.koenig-lexical .kg-prose ul li{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 ul li:first-child{margin:0 0 0 2.4rem}.koenig-lexical .kg-prose ol li{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 ol li:first-child{margin:0 0 0 2.2rem}.koenig-lexical .kg-prose p+ul,.koenig-lexical .kg-prose p+ol{margin:3rem 0 0}.koenig-lexical .kg-prose ul+ul,.koenig-lexical .kg-prose ul+ol,.koenig-lexical .kg-prose ol+ul,.koenig-lexical .kg-prose ol+ol,.koenig-lexical .kg-prose blockquote+ul,.koenig-lexical .kg-prose blockquote+ol,.koenig-lexical .kg-prose aside+ul,.koenig-lexical .kg-prose aside+ol{margin:3rem 0 0}.koenig-lexical .kg-prose h1+ul,.koenig-lexical .kg-prose h1+ol,.koenig-lexical .kg-prose h2+ul,.koenig-lexical .kg-prose h2+ol{margin:.8rem 0 0}.koenig-lexical .kg-prose h3+ul,.koenig-lexical .kg-prose h3+ol,.koenig-lexical .kg-prose h4+ul,.koenig-lexical .kg-prose h4+ol,.koenig-lexical .kg-prose h5+ul,.koenig-lexical .kg-prose h5+ol,.koenig-lexical .kg-prose h6+ul,.koenig-lexical .kg-prose h6+ol{margin:1.2rem 0 0}.koenig-lexical .kg-prose div+ul,.koenig-lexical .kg-prose div+ol{margin:2.8rem 0 0}.koenig-lexical .kg-prose ul ul,.koenig-lexical .kg-prose ul ol,.koenig-lexical .kg-prose ol ul,.koenig-lexical .kg-prose ol ol{margin:1rem 0 2rem}.koenig-lexical .kg-prose ul:first-child,.koenig-lexical .kg-prose ol:first-child{margin-top:0rem}.koenig-lexical .kg-prose a{color:var(--kg-accent-color, #ff0095);text-decoration:underline}.koenig-lexical .kg-prose blockquote p{margin:0}.koenig-lexical .kg-prose blockquote{border-left:.25rem solid var(--kg-accent-color, #ff0095);padding-left:2rem;font-style:italic}.koenig-lexical .kg-prose h1+blockquote,.koenig-lexical .kg-prose h2+blockquote{margin:.8rem 0 0}.koenig-lexical .kg-prose h3+blockquote,.koenig-lexical .kg-prose h4+blockquote,.koenig-lexical .kg-prose .koenig-react__editor h5+blockquote,.koenig-lexical .kg-prose h6+blockquote{margin:.4rem 0 0}.koenig-lexical .kg-prose p+blockquote,.koenig-lexical .kg-prose blockquote+blockquote{margin:3.2rem 0 0}.koenig-lexical .kg-prose div+blockquote{margin:2.8rem 0 0}.koenig-lexical .kg-prose aside p{margin:0}.koenig-lexical .kg-prose aside{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 h1+aside,.koenig-lexical .kg-prose h2+aside{margin:.8rem 0 0}.koenig-lexical .kg-prose h3+aside,.koenig-lexical .kg-prose h4+aside,.koenig-lexical .kg-prose h5+aside,.koenig-lexical .kg-prose h6+aside{margin:.4rem 0 0}.koenig-lexical .kg-prose p+aside,.koenig-lexical .kg-prose blockquote+aside{margin:3.2rem 0 0}@media (max-width: 800px){.koenig-lexical .kg-prose aside{padding-left:6rem;padding-right:6rem}}@media (max-width: 500px){.koenig-lexical .kg-prose aside{font-size:2.2rem}}.koenig-lexical .kg-prose div+aside{margin:2.8rem 0 0}.koenig-lexical .kg-prose div{line-height:0;min-width:100%}.koenig-lexical .kg-prose div+div{margin:3.2rem 0 0}.koenig-lexical .kg-prose p+div,.koenig-lexical .kg-prose blockquote+div,.koenig-lexical .kg-prose aside+div,.koenig-lexical .kg-prose ul+div,.koenig-lexical .kg-prose ol+div{margin:3.2rem 0 0}.koenig-lexical .kg-prose h1+div{margin:2.8rem 0 0}.koenig-lexical .kg-prose h2+div,.koenig-lexical .kg-prose h3+div,.koenig-lexical .kg-prose h4+div,.koenig-lexical .kg-prose h5+div,.koenig-lexical .kg-prose h6+div{margin:1.6rem 0 0}.koenig-lexical .kg-prose hr{margin:1.6rem 0}.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 .bottom-0{bottom:0px}.koenig-lexical .right-0{right:0px}.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 .bottom-4{bottom:1.6rem}.koenig-lexical .right-6{right:2.4rem}.koenig-lexical .right-\\[-100\\%\\]{right:-100%}.koenig-lexical .bottom-1{bottom:.4rem}.koenig-lexical .left-6{left:2.4rem}.koenig-lexical .z-\\[9999999\\]{z-index:9999999}.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-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-1{margin-top:.4rem}.koenig-lexical .mt-2{margin-top:.8rem}.koenig-lexical .mr-2{margin-right:.8rem}.koenig-lexical .ml-1{margin-left:.4rem}.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 .ml-2{margin-left:.8rem}.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-6{height:2.4rem}.koenig-lexical .h-16{height:6.4rem}.koenig-lexical .h-10{height:4rem}.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 .max-h-\\[376px\\]{max-height:376px}.koenig-lexical .min-h-\\[120px\\]{min-height:120px}.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-20{width:8rem}.koenig-lexical .w-6{width:2.4rem}.koenig-lexical .w-16{width:6.4rem}.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-\\[440px\\]{width:440px}.koenig-lexical .w-0{width:0px}.koenig-lexical .w-\\[400px\\]{width:400px}.koenig-lexical .min-w-full{min-width:100%}.koenig-lexical .min-w-\\[33\\%\\]{min-width:33%}.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 .shrink-0{flex-shrink:0}.koenig-lexical .flex-grow,.koenig-lexical .grow{flex-grow:1}.koenig-lexical .transform{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 .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-center{justify-content:center}.koenig-lexical .justify-between{justify-content:space-between}.koenig-lexical .justify-evenly{justify-content:space-evenly}.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-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\\/40{border-color:#abb4be66}.koenig-lexical .border-grey\\/60{border-color:#abb4be99}.koenig-lexical .border-grey\\/30{border-color:#abb4be4d}.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-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-transparent{background-color:transparent}.koenig-lexical .bg-grey-200{--tw-bg-opacity: 1;background-color:rgb(235 238 240 / var(--tw-bg-opacity))}.koenig-lexical .bg-clip-padding{background-clip:padding-box}.koenig-lexical .fill-white{fill:#fff}.koenig-lexical .fill-green{fill:#30cf43}.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 .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-4{padding-top:1.6rem;padding-bottom:1.6rem}.koenig-lexical .px-6{padding-left:2.4rem;padding-right:2.4rem}.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 .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-\\[1\\.5rem\\]{font-size:1.5rem}.koenig-lexical .text-lg{font-size:1.8rem}.koenig-lexical .text-\\[1\\.6rem\\]{font-size:1.6rem}.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 .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-relaxed{line-height:1.625}.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-0{opacity:0}.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-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-200: #EBEEF0;--grey-300: #DDE1E5;--grey-500: #AEB7C1;--grey-900: #394047;--black: #15171A}@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 .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\\: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 .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: 768px){.koenig-lexical .md\\:h-9{height:3.6rem}.koenig-lexical .md\\:w-9{width:3.6rem}}
|
|
2
|
+
`;document.head.appendChild(__vite_style__);const eo=t=>t&&typeof t=="object"&&"default"in t?t:{default:t};function cc(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=cc(te),S=eo(te),dc=eo(Ue),r1="",to=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...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",role:"img",...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"})),ro=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),io=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),Lr=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),oo=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),lo=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"}))),so=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"}))),ao=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"}))),co=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"}))),uo=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),In=t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),go=t=>x.createElement("svg",{width:24,height:24,viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",role:"img",...t},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("path",{d:"M12 1.5v21M1.5 12h21",strokeLinecap:"round",strokeLinejoin:"round"}))),fo=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"}))),uc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"}))),gc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"}))),fc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"}))),ho=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...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}))),hc=t=>x.createElement("svg",{width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),pc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"}))),mc=t=>x.createElement("svg",{width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"}))),xc=t=>x.createElement("svg",{width:32,height:32,fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),_c=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),vc=t=>x.createElement("svg",{width:28,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"}))),yc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),kc=t=>x.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),Cc=t=>x.createElement("svg",{width:28,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),wc=t=>x.createElement("svg",{width:28,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),Ec=t=>x.createElement("svg",{width:28,height:28,fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),Nc=t=>x.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),Tc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),Sc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"}))),bc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),Oc=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 122.43 122.41",role:"img",...t},x.createElement("path",{d:"M83.86 54.15v34.13H38.57V54.15H0v68.26h122.43V54.15H83.86zM38.57 0h45.3v34.13h-45.3z"})),Rc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"}))),Ac=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),Mc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),$c=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),Lc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),Dc=t=>x.createElement("svg",{width:32,height:32,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"}))),Ic=t=>x.createElement("svg",{width:24,height:24,fill:"none",xmlns:"http://www.w3.org/2000/svg",role:"img",...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"})),Dr=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",role:"img",...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"}))),Pc=t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48",role:"img",...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 po=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Pn={exports:{}},Fn={};/**
|
|
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 Fc=b.default,zc=Symbol.for("react.element"),Bc=Symbol.for("react.fragment"),Hc=Object.prototype.hasOwnProperty,Kc=Fc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Uc={key:!0,ref:!0,__self:!0,__source:!0};function mo(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)Hc.call(e,r)&&!Uc.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:zc,type:t,key:o,ref:l,props:i,_owner:Kc.current}}Fn.Fragment=Bc,Fn.jsx=mo,Fn.jsxs=mo,function(t){t.exports=Fn}(Pn);const Lr=Pn.exports.Fragment,h=Pn.exports.jsx,Y=Pn.exports.jsxs,Wc=()=>{return Y("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(d,{})}),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(p,{})}),h(t,{label:"Gallery card"}),h("div",{className:"relative max-w-[1172px]",children:h(k,{})})]});function t({label:T}){return h("h3",{className:"mb-4 mt-20 text-xl font-bold first-of-type:mt-8",children:T})}function e(){return h("div",{className:"max-w-fit",children:Y("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:to}),h(i,{label:"Format text as italics",Icon:no}),h(i,{label:"Toggle heading 1",Icon:ro}),h(i,{label:"Toggle heading 2",Icon:io}),h(o,{}),h(i,{label:"Toggle blockquote",Icon:oo}),h(i,{label:"Insert link",Icon:Ar}),h(o,{}),h(i,{label:"Save as snippet",Icon:In})]})})}function n(){return h("div",{className:"max-w-fit",children:Y("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:lo}),h(i,{label:"Set image to wide",Icon:so}),h(i,{label:"Set image to full",Icon:ao}),h(o,{}),h(i,{label:"Insert link",Icon:Ar}),h(i,{label:"Replace image",Icon:co}),h(o,{}),h(i,{label:"Save as snippet",Icon:In})]})})}function r(){return h("div",{className:"max-w-fit",children:Y("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:uo}),h(o,{}),h(i,{label:"Save as snippet",Icon:In})]})})}function i({label:T,Icon:_,...m}){return h("li",{className:"m-0 flex p-0 first:m-0",...m,children:h("div",{type:"button",className:"flex h-9 w-9 items-center justify-center",children:h(_,{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(go,{className:"h-4 w-4 stroke-grey-800 stroke-2 group-hover:stroke-grey-900"})})}function s(){return Y("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:ho}),h(c,{label:"Markdown",desc:"Insert a Markdown editor card",Icon:uc}),h(c,{label:"HTML",desc:"Insert a raw HTML card",Icon:gc}),h(c,{label:"Gallery",desc:"Create an image gallery",Icon:hc}),h(c,{label:"Divider",desc:"Insert a dividing line",Icon:fo}),h(c,{label:"Bookmark",desc:"Embed a link as a visual bookmark",Icon:fc}),h(c,{label:"Email content",desc:"Only visible when delivered by email",Icon:pc}),h(c,{label:"Email call to action",desc:"Target free or paid members with a CTA",Icon:mc}),h(c,{label:"Public preview",desc:"Attract signups with a public intro",Icon:xc}),h(c,{label:"Button",desc:"Add a button to your post",Icon:_c}),h(c,{label:"Callout",desc:"Info boxes that stand out",Icon:vc}),h(c,{label:"GIF",desc:"Search and embed gifs",Icon:yc}),h(c,{label:"Toggle",desc:"Add collapsible content",Icon:kc}),h(c,{label:"Video",desc:"Upload and play a video",Icon:Cc}),h(c,{label:"Audio",desc:"Upload and play an audio file",Icon:wc}),h(c,{label:"File",desc:"Upload a downloadable file",Icon:Ec}),h(c,{label:"Product",desc:"Add a product recommendation",Icon:Nc}),h(c,{label:"Header",desc:"Add a bold section header",Icon:Tc}),h(a,{label:"Embed"}),h(c,{label:"YouTube",desc:"/youtube [video url]",Icon:Sc}),h(c,{label:"Twitter",desc:"/twitter [tweet url]",Icon:bc}),h(c,{label:"Unsplash",desc:"/unsplash [search-term or url]",Icon:Mc}),h(c,{label:"Vimeo",desc:"/vimeo [video url]",Icon:Oc}),h(c,{label:"CodePen",desc:"/codepen [pen url]",Icon:Rc}),h(c,{label:"Spotify",desc:"/spotify [track or playlist url]",Icon:Ac}),h(c,{label:"SoundCloud",desc:"/soundcloud [track or playlist url]",Icon:$c}),h(c,{label:"NFT",desc:"/nft [opensea url]",Icon:Lc}),h(c,{label:"Other...",desc:"/embed [url]",Icon:Dc}),h(a,{label:"Snippets"}),h(u,{label:"A random snippet",Icon:Ic})]})}function a({label:T,..._}){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)"},..._,children:T})}function c({label:T,desc:_,Icon:m,...C}){return Y("div",{className:"flex cursor-pointer flex-row items-center border border-transparent px-4 py-2 text-grey-800 hover:bg-grey-100",...C,children:[h("div",{className:"flex items-center",children:h(m,{className:"h-7 w-7"})}),Y("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:T}),h("div",{className:"m-0 ml-4 truncate text-xs font-normal leading-[1.333em] tracking-[.02rem] text-grey",children:_})]})]})}function u({label:T,Icon:_,...m}){return Y("div",{className:"flex cursor-pointer flex-row items-center border border-transparent px-4 py-2 text-grey-800 hover:bg-grey-100",...m,children:[h("div",{className:"flex items-center",children:h(_,{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:T})})]})}function d(){return h("div",{children:h("hr",{className:"block h-[1px] border-0 border-t border-grey-300"})})}function g(){return Y("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(v,{placeholder:"Type caption for code block (optional)"})]})}function p(){const[T,_]=te.useState(!1),[m,C]=te.useState(!1),E=()=>{_(!T)},N=O=>{O.stopPropagation(),C(!m)};return T?Y("div",{className:`border border-transparent ${T?"shadow-[0_0_0_2px_#30cf43]":"hover:shadow-[0_0_0_1px_#30cf43]"}`,onClick:E,children:[h(f,{desc:"Click to select an image",Icon:$r}),h(v,{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 ${m?"border-green bg-green text-white":"border-grey text-grey"} `,onClick:O=>N(O),children:"Alt"})]}):h("div",{className:`border border-transparent ${T?"shadow-[0_0_0_2px_#30cf43]":"hover:shadow-[0_0_0_1px_#30cf43]"}`,onClick:E,children:h(f,{desc:"Click to select an image",Icon:$r})})}function f({desc:T,Icon:_,...m}){return Y("div",{className:"relative",children:[h("figure",{className:"cursor-pointer border border-transparent",...m,children:h("div",{className:"h-100 relative flex items-center justify-center border border-grey-100 bg-grey-50 before:pb-[62.5%]",children:Y("button",{className:"group flex flex-col items-center justify-center p-20",children:[h(_,{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:T})]})})}),h("form",{children:h("input",{type:"file",accept:"image/*",name:"image",hidden:!0})})]})}function v({placeholder:T}){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:T})}function k(){return Y("div",{className:"border-2 border-green",children:[h(f,{desc:"Click to select up to 9 images",Icon:Pc}),h(v,{placeholder:"Type caption for gallery (optional)"})]})}};var xo={},zn={},_o=b.default;let vo=_o.createContext(null);zn.LexicalComposerContext=vo,zn.createLexicalComposerContext=function(t,e){let n=null;return t!=null&&(n=t[1]),{getTheme:function(){return e!=null?e:n!=null?n.getTheme():null}}},zn.useLexicalComposerContext=function(){let t=_o.useContext(vo);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 ge=zn,S={};let yo={},ko={},Zt={},Jt={},Dr={},Tt={},Ir={},Pr={},Xt={},Qt={},Ze={},Fr={},zr={},Co={},wo={},Eo={},No={},To={},So={},Bn={},bo={},Mo={},Oo={},Ro={},Ao={},$o={},Lo={},Do={},Io={},Br={},Hr={},Po={},Fo={},zo={};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 St=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Vc=St&&"documentMode"in document?document.documentMode:null,Ne=St&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),dt=St&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Yc=St&&"InputEvent"in window&&!Vc?"getTargetRanges"in new window.InputEvent("input"):!1,Hn=St&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Kn=St&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Un=Hn||Kn?"\xA0":"\u200B",Gc=dt?"\xA0":Un,jc=/^[^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]/,Zc=/^[^\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]/,ut={bold:1,code:16,italic:2,strikethrough:4,subscript:32,superscript:64,underline:8},Jc={directionless:1,unmergeable:2},Bo={center:2,justify:4,left:1,right:3},Xc={2:"center",4:"justify",1:"left",3:"right"},Qc={normal:0,segmented:2,token:1},qc={0:"normal",2:"segmented",1:"token"},Kr=!1,Ur=0;function ed(t){Ur=t.timeStamp}function Wr(t,e,n){return e.__lexicalLineBreak===t||t[`__lexicalKey_${n._key}`]!==void 0}function td(t){return t.getEditorState().read(()=>{let e=Z();return e!==null?e.clone():null})}function Ho(t,e,n){Kr=!0;let r=100<performance.now()-Ur;try{Se(t,()=>{let i=Z()||td(t);var o=new Map,l=t.getRootElement(),s=t._editorState;let a=!1,c="";for(var u=0;u<e.length;u++){var d=e[u],g=d.type,p=d.target,f=qt(p,s);if(!ne(f)){if(g==="characterData"){if(d=r&&$(f))e:{d=i,g=p;var v=f;if(H(d)){var k=d.anchor.getNode();if(k.is(v)&&d.format!==k.getFormat()){d=!1;break e}}d=g.nodeType===3&&v.isAttached()}d&&(v=window.getSelection(),g=d=null,v!==null&&v.anchorNode===p&&(d=v.anchorOffset,g=v.focusOffset),p=p.nodeValue,p!==null&&Gr(f,p,d,g,!1))}else if(g==="childList"){for(a=!0,g=d.addedNodes,v=0;v<g.length;v++){k=g[v];var T=Go(k),_=k.parentNode;_==null||T!==null||k.nodeName==="BR"&&Wr(k,_,t)||(dt&&(T=k.innerText||k.nodeValue)&&(c+=T),_.removeChild(k))}if(d=d.removedNodes,g=d.length,0<g){for(v=0,k=0;k<g;k++)_=d[k],_.nodeName==="BR"&&Wr(_,p,t)&&(p.appendChild(_),v++);g!==v&&(p===l&&(f=s._nodeMap.get("root")),o.set(p,f))}}}}if(0<o.size)for(let[m,C]of o)if(M(C))for(o=C.__children,l=m.firstChild,s=0;s<o.length;s++)u=t.getElementByKey(o[s]),u!==null&&(l==null?(m.appendChild(u),l=u):l!==u&&m.replaceChild(u,l),l=l.nextSibling);else $(C)&&C.markDirty();if(o=n.takeRecords(),0<o.length){for(l=0;l<o.length;l++)for(u=o[l],s=u.addedNodes,u=u.target,f=0;f<s.length;f++)p=s[f],d=p.parentNode,d==null||p.nodeName!=="BR"||Wr(p,u,t)||d.removeChild(p);n.takeRecords()}i!==null&&(a&&(i.dirty=!0,Ot(i)),dt&&nl(t)&&i.insertRawText(c))})}finally{Kr=!1}}function Ko(t){let e=t._observer;if(e!==null){let n=e.takeRecords();Ho(t,n,e)}}function Uo(t){Ur===0&&Zn(t).addEventListener("textInput",ed,!0),t._observer=new MutationObserver((e,n)=>{Ho(t,e,n)})}let nd=1,rd=typeof queueMicrotask=="function"?queueMicrotask:t=>{Promise.resolve().then(t)};function Wn(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=!ne(qt(e))||l!=="INPUT"&&l!=="TEXTAREA"}return i&&Wo(e)===t}catch{return!1}}function Wo(t){for(;t!=null;){let e=t.__lexicalEditor;if(e!=null)return e;t=t.parentNode}return null}function Vr(t){return t.isToken()||t.isSegmented()}function Vn(t){for(;t!=null;){if(t.nodeType===3)return t;t=t.firstChild}return null}function Vo(t,e,n){return e=ut[e],t&e&&(n===null||(n&e)===0)?t^e:n===null||n&e?t|e:t}function Yo(t){return $(t)||pn(t)||ne(t)}function Yn(t){var e=t.getParent();if(e!==null){e=e.getWritable().__children;let n=e.indexOf(t.__key);n===-1&&A(31),Mt(t),e.splice(n,1)}}function bt(t){99<gn&&A(14);var e=t.getLatest(),n=e.__parent,r=ze();let i=ie(),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,M(t)?r.set(e,!0):i._dirtyLeaves.add(e)}function Mt(t){let e=t.getPreviousSibling();t=t.getNextSibling(),e!==null&&bt(e),t!==null&&bt(t)}function he(t){Te();var e=ie();let n=e._compositionKey;t!==n&&(e._compositionKey=t,n!==null&&(e=j(n),e!==null&&e.getWritable()),t!==null&&(t=j(t),t!==null&&t.getWritable()))}function Je(){return re?null:ie()._compositionKey}function j(t,e){return t=(e||ze())._nodeMap.get(t),t===void 0?null:t}function Go(t,e){let n=ie();return t=t[`__lexicalKey_${n._key}`],t!==void 0?j(t,e):null}function qt(t,e){for(;t!=null;){let n=Go(t,e);if(n!==null)return n;t=t.parentNode}return null}function jo(t){let e=Object.assign({},t._decorators);return t._pendingDecorators=e}function Zo(t){return t.read(()=>Xe().getTextContent())}function id(t,e){Se(t,()=>{var n=ze();if(!n.isEmpty())if(e==="root")Xe().markDirty();else{n=n._nodeMap;for(let[,r]of n)r.markDirty()}},t._pendingEditorState===null?{tag:"history-merge"}:void 0)}function Xe(){return ze()._nodeMap.get("root")}function Ot(t){let e=ze();t!==null&&(t.dirty=!0,t._cachedNodes=null),e._selection=t}function Rt(t){var e=ie(),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?j("root"):null):j(n)}function Jo(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function Yr(t){let e=[];for(;t!==null;)e.push(t),t=t._parentEditor;return e}function Xo(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function Qo(t,e){var n=window.getSelection();if(n!==null){var r=n.anchorNode,{anchorOffset:i,focusOffset:o}=n;if(r!==null&&r.nodeType===3&&(n=qt(r),$(n))){if(r=r.nodeValue,r===Un&&e){let l=e.length;r=e,o=i=l}r!==null&&Gr(n,r,i,o,t)}}}function Gr(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]===Un&&(t=e.slice(0,-1)),e=o.getTextContent(),i||t!==e)if(t==="")if(he(null),Hn||Kn)o.remove();else{let s=ie();setTimeout(()=>{s.update(()=>{o.isAttached()&&o.remove()})},20)}else i=o.getParent(),e=un(),o.isToken()||Je()!==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=we(n),o.replace(n),o=n)),o.setTextContent(t))}}function od(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=($(e)||M(e)&&e.isInline())&&!e.canInsertTextAfter()),t):t===e.getTextContentSize()?!e.canInsertTextAfter()||!n.canInsertTextAfter()||r:!1}function qo(t,e){let n=t.anchor,r=t.focus,i=n.getNode();var o=window.getSelection();o=o!==null?o.anchorNode:null;let l=n.key,s=ie().getElementByKey(l),a=e.length;return l!==r.key||!$(i)||(2>a||Jo(e))&&n.offset!==r.offset&&!i.isComposing()||Vr(i)||i.isDirty()&&1<a||s!==null&&!i.isComposing()&&o!==Vn(s)||i.getFormat()!==t.format||od(t,i)}function Gn(t,e){var n=t[e];return typeof n=="string"?(n=n.split(" "),t[e]=n):n}function jr(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 el(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 tl(t,e){var n=t.offset;return t.type==="element"?(t=t.getNode(),el(t,e,n)):(t=t.getNode(),e&&n===0||!e&&n===t.getTextContentSize()?(n=e?t.getPreviousSibling():t.getNextSibling(),n===null?el(t.getParentOrThrow(),e,t.getIndexWithinParent()+(e?0:1)):n):null)}function nl(t){return t=(t=Zn(t).event)&&t.inputType,t==="insertFromPaste"||t==="insertFromPasteAsQuotation"}function Zr(t){return!Be(t)&&!t.isLastChild()&&!t.isInline()}function jn(t,e){return t=t._keyToDOMMap.get(e),t===void 0&&A(75),t}function ld(t,e=0){if(e!==0&&A(1),e=Z(),!H(e)||!M(t))return e;let{anchor:n,focus:r}=e,i=n.getNode(),o=r.getNode();return Jr(i,t)&&n.set(t.__key,0,"element"),Jr(o,t)&&r.set(t.__key,0,"element"),e}function Jr(t,e){for(t=t.getParent();t!==null;){if(t.is(e))return!0;t=t.getParent()}return!1}function Zn(t){return t=t._window,t===null&&A(78),t}function Qe(t){return Be(t)||M(t)&&t.isShadowRoot()}function rl(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&&(M(a)&&rl(a,s,n,r,i),n.has(s)||i.delete(s),r.delete(s))}}function sd(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()||(M(n)&&rl(n,i,t,e,r),t.has(i)||r.delete(i),e.delete(i))}function il(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 ol(t,e){let n=t.mergeWithSibling(e),r=ie()._normalizedNodes;return r.add(t.__key),r.add(e.__key),n}function ll(t){if(t.__text===""&&t.isSimpleText()&&!t.isUnmergeable())t.remove();else{for(var e;(e=t.getPreviousSibling())!==null&&$(e)&&e.isSimpleText()&&!e.isUnmergeable();)if(e.__text==="")e.remove();else{il(e,t)&&(t=ol(e,t));break}for(var n;(n=t.getNextSibling())!==null&&$(n)&&n.isSimpleText()&&!n.isUnmergeable();)if(n.__text==="")n.remove();else{il(t,n)&&ol(t,n);break}}}function sl(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),$(e)){t.set(e.__key,n?e.getTextContentSize():0,"text");break}else if(!M(e))break;t.set(e.__key,n?e.getChildrenSize():0,"element")}}let ae="",ke="",Ue="",gt,Ce,en,al=!1,Xr=!1,Jn,Xn=null,Qr,qr,tn,At,ei,nn;function Qn(t,e){let n=tn.get(t);if(e!==null){let r=ri(t);e.removeChild(r)}At.has(t)||Ce._keyToDOMMap.delete(t),M(n)&&(t=n.__children,ti(t,0,t.length-1,null)),n!==void 0&&jr(nn,en,Jn,n,"destroyed")}function ti(t,e,n,r){for(;e<=n;++e){let i=t[e];i!==void 0&&Qn(i,r)}}function rn(t,e){t.setProperty("text-align",e)}function cl(t,e){t.style.setProperty("padding-inline-start",e===0?"":20*e+"px")}function dl(t,e){t=t.style,e===0?rn(t,""):e===1?rn(t,"left"):e===2?rn(t,"center"):e===3?rn(t,"right"):e===4&&rn(t,"justify")}function qn(t,e,n){let r=At.get(t);r===void 0&&A(60);let i=r.createDOM(gt,Ce);var o=Ce._keyToDOMMap;if(i["__lexicalKey_"+Ce._key]=t,o.set(t,i),$(r)?i.setAttribute("data-lexical-text","true"):ne(r)&&i.setAttribute("data-lexical-decorator","true"),M(r)){t=r.__indent,t!==0&&cl(i,t),t=r.__children;var l=t.length;if(l!==0){o=t,--l;let s=ke;ke="",ni(o,0,l,i,null),hl(r,i),ke=s}o=r.__format,o!==0&&dl(i,o),gl(null,t,i),Zr(r)&&(ae+=`
|
|
10
|
+
*/var Fc=S.default,zc=Symbol.for("react.element"),Bc=Symbol.for("react.fragment"),Hc=Object.prototype.hasOwnProperty,Kc=Fc.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Uc={key:!0,ref:!0,__self:!0,__source:!0};function mo(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)Hc.call(e,r)&&!Uc.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:zc,type:t,key:o,ref:l,props:i,_owner:Kc.current}}Fn.Fragment=Bc,Fn.jsx=mo,Fn.jsxs=mo,function(t){t.exports=Fn}(Pn);const Ir=Pn.exports.Fragment,f=Pn.exports.jsx,Y=Pn.exports.jsxs,Wc=()=>{return Y("div",{className:"koenig-lexical",children:[f(t,{label:"Text toolbar"}),f(e,{}),f(t,{label:"Image toolbar"}),f(n,{}),f(t,{label:"Gallery toolbar"}),f(r,{}),f(t,{label:"Plus menu"}),f(l,{}),f(t,{label:"Card menu"}),f(s,{}),f(t,{label:"Divider card"}),f("div",{className:"relative max-w-[740px]",children:f(d,{})}),f(t,{label:"Code block"}),f("div",{className:"relative max-w-[740px]",children:f(g,{})}),f(t,{label:"Image card"}),f("div",{className:"relative max-w-[740px]",children:f(m,{})}),f(t,{label:"Gallery card"}),f("div",{className:"relative max-w-[1172px]",children:f(C,{})})]});function t({label:T}){return f("h3",{className:"mb-4 mt-20 text-xl font-bold first-of-type:mt-8",children:T})}function e(){return f("div",{className:"max-w-fit",children:Y("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:[f(i,{label:"Format text as bold",Icon:to}),f(i,{label:"Format text as italics",Icon:no}),f(i,{label:"Toggle heading 1",Icon:ro}),f(i,{label:"Toggle heading 2",Icon:io}),f(o,{}),f(i,{label:"Toggle blockquote",Icon:oo}),f(i,{label:"Insert link",Icon:Lr}),f(o,{}),f(i,{label:"Save as snippet",Icon:In})]})})}function n(){return f("div",{className:"max-w-fit",children:Y("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:[f(i,{label:"Set image to regular",Icon:lo}),f(i,{label:"Set image to wide",Icon:so}),f(i,{label:"Set image to full",Icon:ao}),f(o,{}),f(i,{label:"Insert link",Icon:Lr}),f(i,{label:"Replace image",Icon:co}),f(o,{}),f(i,{label:"Save as snippet",Icon:In})]})})}function r(){return f("div",{className:"max-w-fit",children:Y("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:[f(i,{label:"Add image",Icon:uo}),f(o,{}),f(i,{label:"Save as snippet",Icon:In})]})})}function i({label:T,Icon:p,...v}){return f("li",{className:"m-0 flex p-0 first:m-0",...v,children:f("div",{type:"button",className:"flex h-9 w-9 items-center justify-center",children:f(p,{className:"fill-white"})})})}function o(){return f("li",{className:"m-0 mx-1 h-5 w-px bg-grey-900"})}function l(){return f("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:f(go,{className:"h-4 w-4 stroke-grey-800 stroke-2 group-hover:stroke-grey-900"})})}function s(){return Y("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:[f(a,{label:"Primary"}),f(c,{label:"Image",desc:"Upload, or embed with /image [url]",Icon:fo}),f(c,{label:"Markdown",desc:"Insert a Markdown editor card",Icon:uc}),f(c,{label:"HTML",desc:"Insert a raw HTML card",Icon:gc}),f(c,{label:"Gallery",desc:"Create an image gallery",Icon:fc}),f(c,{label:"Divider",desc:"Insert a dividing line",Icon:ho}),f(c,{label:"Bookmark",desc:"Embed a link as a visual bookmark",Icon:hc}),f(c,{label:"Email content",desc:"Only visible when delivered by email",Icon:pc}),f(c,{label:"Email call to action",desc:"Target free or paid members with a CTA",Icon:mc}),f(c,{label:"Public preview",desc:"Attract signups with a public intro",Icon:xc}),f(c,{label:"Button",desc:"Add a button to your post",Icon:_c}),f(c,{label:"Callout",desc:"Info boxes that stand out",Icon:vc}),f(c,{label:"GIF",desc:"Search and embed gifs",Icon:yc}),f(c,{label:"Toggle",desc:"Add collapsible content",Icon:kc}),f(c,{label:"Video",desc:"Upload and play a video",Icon:Cc}),f(c,{label:"Audio",desc:"Upload and play an audio file",Icon:wc}),f(c,{label:"File",desc:"Upload a downloadable file",Icon:Ec}),f(c,{label:"Product",desc:"Add a product recommendation",Icon:Nc}),f(c,{label:"Header",desc:"Add a bold section header",Icon:Tc}),f(a,{label:"Embed"}),f(c,{label:"YouTube",desc:"/youtube [video url]",Icon:Sc}),f(c,{label:"Twitter",desc:"/twitter [tweet url]",Icon:bc}),f(c,{label:"Unsplash",desc:"/unsplash [search-term or url]",Icon:Oc}),f(c,{label:"Vimeo",desc:"/vimeo [video url]",Icon:Rc}),f(c,{label:"CodePen",desc:"/codepen [pen url]",Icon:Ac}),f(c,{label:"Spotify",desc:"/spotify [track or playlist url]",Icon:Mc}),f(c,{label:"SoundCloud",desc:"/soundcloud [track or playlist url]",Icon:$c}),f(c,{label:"NFT",desc:"/nft [opensea url]",Icon:Lc}),f(c,{label:"Other...",desc:"/embed [url]",Icon:Dc}),f(a,{label:"Snippets"}),f(u,{label:"A random snippet",Icon:Ic})]})}function a({label:T,...p}){return f("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:T})}function c({label:T,desc:p,Icon:v,...N}){return Y("div",{className:"flex cursor-pointer flex-row items-center border border-transparent px-4 py-2 text-grey-800 hover:bg-grey-100",...N,children:[f("div",{className:"flex items-center",children:f(v,{className:"h-7 w-7"})}),Y("div",{className:"flex flex-col",children:[f("div",{className:"m-0 ml-4 truncate text-[1.3rem] font-normal leading-[1.333em] tracking-[.02rem] text-grey-900",children:T}),f("div",{className:"m-0 ml-4 truncate text-xs font-normal leading-[1.333em] tracking-[.02rem] text-grey",children:p})]})]})}function u({label:T,Icon:p,...v}){return Y("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:[f("div",{className:"flex items-center",children:f(p,{className:"h-7 w-7"})}),f("div",{className:"flex flex-col",children:f("div",{className:"m-0 ml-4 truncate text-[1.3rem] font-normal leading-[1.333em] tracking-[.02rem] text-grey-900",children:T})})]})}function d(){return f("div",{children:f("hr",{className:"block h-[1px] border-0 border-t border-grey-300"})})}function g(){return Y("div",{className:"border-2 border-green",children:[f("div",{className:"rounded bg-grey-50 px-3 py-2",children:f("textarea",{className:"w-full resize-none bg-grey-50 font-mono text-[1.7rem]"})}),f(_,{placeholder:"Type caption for code block (optional)"})]})}function m(){const[T,p]=te.useState(!1),[v,N]=te.useState(!1),k=()=>{p(!T)},E=O=>{O.stopPropagation(),N(!v)};return T?Y("div",{className:`border border-transparent ${T?"shadow-[0_0_0_2px_#30cf43]":"hover:shadow-[0_0_0_1px_#30cf43]"}`,onClick:k,children:[f(h,{desc:"Click to select an image",Icon:Dr}),f(_,{placeholder:"Type caption for image (optional)"}),f("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:O=>E(O),children:"Alt"})]}):f("div",{className:`border border-transparent ${T?"shadow-[0_0_0_2px_#30cf43]":"hover:shadow-[0_0_0_1px_#30cf43]"}`,onClick:k,children:f(h,{desc:"Click to select an image",Icon:Dr})})}function h({desc:T,Icon:p,...v}){return Y("div",{className:"relative",children:[f("figure",{className:"cursor-pointer border border-transparent",...v,children:f("div",{className:"h-100 relative flex items-center justify-center border border-grey-100 bg-grey-50 before:pb-[62.5%]",children:Y("button",{className:"group flex flex-col items-center justify-center p-20",children:[f(p,{className:"h-32 w-32 opacity-80 transition-all ease-linear group-hover:scale-105 group-hover:opacity-100"}),f("p",{className:"mt-4 text-sm font-normal text-grey-700 group-hover:text-grey-800",children:T})]})})}),f("form",{children:f("input",{type:"file",accept:"image/*",name:"image",hidden:!0})})]})}function _({placeholder:T}){return f("input",{className:"not-kg-prose w-full p-2 text-center font-sans text-sm font-normal tracking-wide text-grey-900",placeholder:T})}function C(){return Y("div",{className:"border-2 border-green",children:[f(h,{desc:"Click to select up to 9 images",Icon:Pc}),f(_,{placeholder:"Type caption for gallery (optional)"})]})}};var xo={},zn={},_o=S.default;let vo=_o.createContext(null);zn.LexicalComposerContext=vo,zn.createLexicalComposerContext=function(t,e){let n=null;return t!=null&&(n=t[1]),{getTheme:function(){return e!=null?e:n!=null?n.getTheme():null}}},zn.useLexicalComposerContext=function(){let t=_o.useContext(vo);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 he=zn,b={};let yo={},ko={},Zt={},Jt={},Pr={},Nt={},Fr={},zr={},Xt={},Qt={},Ze={},Br={},Hr={},Co={},wo={},Eo={},No={},To={},So={},Bn={},bo={},Oo={},Ro={},Ao={},Mo={},$o={},Lo={},Do={},Io={},Kr={},Ur={},Po={},Fo={},zo={};function $(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 Tt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Vc=Tt&&"documentMode"in document?document.documentMode:null,Te=Tt&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),ct=Tt&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Yc=Tt&&"InputEvent"in window&&!Vc?"getTargetRanges"in new window.InputEvent("input"):!1,Hn=Tt&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Kn=Tt&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,Un=Hn||Kn?"\xA0":"\u200B",Gc=ct?"\xA0":Un,jc=/^[^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]/,Zc=/^[^\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]/,dt={bold:1,code:16,italic:2,strikethrough:4,subscript:32,superscript:64,underline:8},Jc={directionless:1,unmergeable:2},Bo={center:2,justify:4,left:1,right:3},Xc={2:"center",4:"justify",1:"left",3:"right"},Qc={normal:0,segmented:2,token:1},qc={0:"normal",2:"segmented",1:"token"},Wr=!1,Vr=0;function ed(t){Vr=t.timeStamp}function Yr(t,e,n){return e.__lexicalLineBreak===t||t[`__lexicalKey_${n._key}`]!==void 0}function td(t){return t.getEditorState().read(()=>{let e=Z();return e!==null?e.clone():null})}function Ho(t,e,n){Wr=!0;let r=100<performance.now()-Vr;try{be(t,()=>{let i=Z()||td(t);var o=new Map,l=t.getRootElement(),s=t._editorState;let a=!1,c="";for(var u=0;u<e.length;u++){var d=e[u],g=d.type,m=d.target,h=qt(m,s);if(!ne(h)){if(g==="characterData"){if(d=r&&L(h))e:{d=i,g=m;var _=h;if(B(d)){var C=d.anchor.getNode();if(C.is(_)&&d.format!==C.getFormat()){d=!1;break e}}d=g.nodeType===3&&_.isAttached()}d&&(_=window.getSelection(),g=d=null,_!==null&&_.anchorNode===m&&(d=_.anchorOffset,g=_.focusOffset),m=m.nodeValue,m!==null&&Zr(h,m,d,g,!1))}else if(g==="childList"){for(a=!0,g=d.addedNodes,_=0;_<g.length;_++){C=g[_];var T=Go(C),p=C.parentNode;p==null||T!==null||C.nodeName==="BR"&&Yr(C,p,t)||(ct&&(T=C.innerText||C.nodeValue)&&(c+=T),p.removeChild(C))}if(d=d.removedNodes,g=d.length,0<g){for(_=0,C=0;C<g;C++)p=d[C],p.nodeName==="BR"&&Yr(p,m,t)&&(m.appendChild(p),_++);g!==_&&(m===l&&(h=s._nodeMap.get("root")),o.set(m,h))}}}}if(0<o.size)for(let[v,N]of o)if(R(N))for(o=N.__children,l=v.firstChild,s=0;s<o.length;s++)u=t.getElementByKey(o[s]),u!==null&&(l==null?(v.appendChild(u),l=u):l!==u&&v.replaceChild(u,l),l=l.nextSibling);else L(N)&&N.markDirty();if(o=n.takeRecords(),0<o.length){for(l=0;l<o.length;l++)for(u=o[l],s=u.addedNodes,u=u.target,h=0;h<s.length;h++)m=s[h],d=m.parentNode,d==null||m.nodeName!=="BR"||Yr(m,u,t)||d.removeChild(m);n.takeRecords()}i!==null&&(a&&(i.dirty=!0,Ot(i)),ct&&nl(t)&&i.insertRawText(c))})}finally{Wr=!1}}function Ko(t){let e=t._observer;if(e!==null){let n=e.takeRecords();Ho(t,n,e)}}function Uo(t){Vr===0&&Zn(t).addEventListener("textInput",ed,!0),t._observer=new MutationObserver((e,n)=>{Ho(t,e,n)})}let nd=1,rd=typeof queueMicrotask=="function"?queueMicrotask:t=>{Promise.resolve().then(t)};function Wn(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=!ne(qt(e))||l!=="INPUT"&&l!=="TEXTAREA"}return i&&Wo(e)===t}catch{return!1}}function Wo(t){for(;t!=null;){let e=t.__lexicalEditor;if(e!=null)return e;t=t.parentNode}return null}function Gr(t){return t.isToken()||t.isSegmented()}function Vn(t){for(;t!=null;){if(t.nodeType===3)return t;t=t.firstChild}return null}function Vo(t,e,n){return e=dt[e],t&e&&(n===null||(n&e)===0)?t^e:n===null||n&e?t|e:t}function Yo(t){return L(t)||pn(t)||ne(t)}function Yn(t){var e=t.getParent();if(e!==null){e=e.getWritable().__children;let n=e.indexOf(t.__key);n===-1&&$(31),bt(t),e.splice(n,1)}}function St(t){99<gn&&$(14);var e=t.getLatest(),n=e.__parent,r=ze();let i=le(),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,R(t)?r.set(e,!0):i._dirtyLeaves.add(e)}function bt(t){let e=t.getPreviousSibling();t=t.getNextSibling(),e!==null&&St(e),t!==null&&St(t)}function pe(t){Se();var e=le();let n=e._compositionKey;t!==n&&(e._compositionKey=t,n!==null&&(e=j(n),e!==null&&e.getWritable()),t!==null&&(t=j(t),t!==null&&t.getWritable()))}function Je(){return oe?null:le()._compositionKey}function j(t,e){return t=(e||ze())._nodeMap.get(t),t===void 0?null:t}function Go(t,e){let n=le();return t=t[`__lexicalKey_${n._key}`],t!==void 0?j(t,e):null}function qt(t,e){for(;t!=null;){let n=Go(t,e);if(n!==null)return n;t=t.parentNode}return null}function jo(t){let e=Object.assign({},t._decorators);return t._pendingDecorators=e}function Zo(t){return t.read(()=>Xe().getTextContent())}function id(t,e){be(t,()=>{var n=ze();if(!n.isEmpty())if(e==="root")Xe().markDirty();else{n=n._nodeMap;for(let[,r]of n)r.markDirty()}},t._pendingEditorState===null?{tag:"history-merge"}:void 0)}function Xe(){return ze()._nodeMap.get("root")}function Ot(t){let e=ze();t!==null&&(t.dirty=!0,t._cachedNodes=null),e._selection=t}function Rt(t){var e=le(),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?j("root"):null):j(n)}function Jo(t){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(t)}function jr(t){let e=[];for(;t!==null;)e.push(t),t=t._parentEditor;return e}function Xo(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function Qo(t,e){var n=window.getSelection();if(n!==null){var r=n.anchorNode,{anchorOffset:i,focusOffset:o}=n;if(r!==null&&r.nodeType===3&&(n=qt(r),L(n))){if(r=r.nodeValue,r===Un&&e){let l=e.length;r=e,o=i=l}r!==null&&Zr(n,r,i,o,t)}}}function Zr(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]===Un&&(t=e.slice(0,-1)),e=o.getTextContent(),i||t!==e)if(t==="")if(pe(null),Hn||Kn)o.remove();else{let s=le();setTimeout(()=>{s.update(()=>{o.isAttached()&&o.remove()})},20)}else i=o.getParent(),e=un(),o.isToken()||Je()!==null&&!l||i!==null&&B(e)&&!i.canInsertTextBefore()&&e.anchor.offset===0?o.markDirty():(l=Z(),B(l)&&n!==null&&r!==null&&(l.setTextNodeRange(o,n,o,r),o.isSegmented()&&(n=o.getTextContent(),n=Ne(n),o.replace(n),o=n)),o.setTextContent(t))}}function od(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)||R(e)&&e.isInline())&&!e.canInsertTextAfter()),t):t===e.getTextContentSize()?!e.canInsertTextAfter()||!n.canInsertTextAfter()||r:!1}function qo(t,e){let n=t.anchor,r=t.focus,i=n.getNode();var o=window.getSelection();o=o!==null?o.anchorNode:null;let l=n.key,s=le().getElementByKey(l),a=e.length;return l!==r.key||!L(i)||(2>a||Jo(e))&&n.offset!==r.offset&&!i.isComposing()||Gr(i)||i.isDirty()&&1<a||s!==null&&!i.isComposing()&&o!==Vn(s)||i.getFormat()!==t.format||od(t,i)}function Gn(t,e){var n=t[e];return typeof n=="string"?(n=n.split(" "),t[e]=n):n}function Jr(t,e,n,r,i){n.size!==0&&(n=r.__key,e=e.get(r.__type),e===void 0&&$(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 el(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 tl(t,e){var n=t.offset;return t.type==="element"?(t=t.getNode(),el(t,e,n)):(t=t.getNode(),e&&n===0||!e&&n===t.getTextContentSize()?(n=e?t.getPreviousSibling():t.getNextSibling(),n===null?el(t.getParentOrThrow(),e,t.getIndexWithinParent()+(e?0:1)):n):null)}function nl(t){return t=(t=Zn(t).event)&&t.inputType,t==="insertFromPaste"||t==="insertFromPasteAsQuotation"}function Xr(t){return!Be(t)&&!t.isLastChild()&&!t.isInline()}function jn(t,e){return t=t._keyToDOMMap.get(e),t===void 0&&$(75),t}function ld(t,e=0){if(e!==0&&$(1),e=Z(),!B(e)||!R(t))return e;let{anchor:n,focus:r}=e,i=n.getNode(),o=r.getNode();return Qr(i,t)&&n.set(t.__key,0,"element"),Qr(o,t)&&r.set(t.__key,0,"element"),e}function Qr(t,e){for(t=t.getParent();t!==null;){if(t.is(e))return!0;t=t.getParent()}return!1}function Zn(t){return t=t._window,t===null&&$(78),t}function Qe(t){return Be(t)||R(t)&&t.isShadowRoot()}function rl(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&&(R(a)&&rl(a,s,n,r,i),n.has(s)||i.delete(s),r.delete(s))}}function sd(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()||(R(n)&&rl(n,i,t,e,r),t.has(i)||r.delete(i),e.delete(i))}function il(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 ol(t,e){let n=t.mergeWithSibling(e),r=le()._normalizedNodes;return r.add(t.__key),r.add(e.__key),n}function ll(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{il(e,t)&&(t=ol(e,t));break}for(var n;(n=t.getNextSibling())!==null&&L(n)&&n.isSimpleText()&&!n.isUnmergeable();)if(n.__text==="")n.remove();else{il(t,n)&&ol(t,n);break}}}function sl(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(!R(e))break;t.set(e.__key,n?e.getChildrenSize():0,"element")}}let ge="",we="",We="",ut,Ee,en,al=!1,qr=!1,Jn,Xn=null,ei,ti,tn,At,ni,nn;function Qn(t,e){let n=tn.get(t);if(e!==null){let r=oi(t);e.removeChild(r)}At.has(t)||Ee._keyToDOMMap.delete(t),R(n)&&(t=n.__children,ri(t,0,t.length-1,null)),n!==void 0&&Jr(nn,en,Jn,n,"destroyed")}function ri(t,e,n,r){for(;e<=n;++e){let i=t[e];i!==void 0&&Qn(i,r)}}function rn(t,e){t.setProperty("text-align",e)}function cl(t,e){t.style.setProperty("padding-inline-start",e===0?"":20*e+"px")}function dl(t,e){t=t.style,e===0?rn(t,""):e===1?rn(t,"left"):e===2?rn(t,"center"):e===3?rn(t,"right"):e===4&&rn(t,"justify")}function qn(t,e,n){let r=At.get(t);r===void 0&&$(60);let i=r.createDOM(ut,Ee);var o=Ee._keyToDOMMap;if(i["__lexicalKey_"+Ee._key]=t,o.set(t,i),L(r)?i.setAttribute("data-lexical-text","true"):ne(r)&&i.setAttribute("data-lexical-decorator","true"),R(r)){t=r.__indent,t!==0&&cl(i,t),t=r.__children;var l=t.length;if(l!==0){o=t,--l;let s=we;we="",ii(o,0,l,i,null),fl(r,i),we=s}o=r.__format,o!==0&&dl(i,o),gl(null,t,i),Xr(r)&&(ge+=`
|
|
11
11
|
|
|
12
|
-
`,
|
|
12
|
+
`,We+=`
|
|
13
13
|
|
|
14
|
-
`)}else o=r.getTextContent(),ne(r)?(l=r.decorate(
|
|
14
|
+
`)}else o=r.getTextContent(),ne(r)?(l=r.decorate(Ee,ut),l!==null&&hl(t,l),i.contentEditable="false"):L(r)&&(r.isDirectionless()||(we+=o)),ge+=o,We+=o;return e!==null&&(n!=null?e.insertBefore(i,n):(n=e.__lexicalLineBreak,n!=null?e.insertBefore(i,n):e.appendChild(i))),Jr(nn,en,Jn,r,"created"),i}function ii(t,e,n,r,i){let o=ge;for(ge="";e<=n;++e)qn(t[e],r,i);r.__lexicalTextContent=ge,ge=o+ge}function ul(t,e){return t=e.get(t[t.length-1]),pn(t)||ne(t)}function gl(t,e,n){t=t!==null&&(t.length===0||ul(t,tn)),e=e!==null&&(e.length===0||ul(e,At)),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 fl(t,e){var n=e.__lexicalDir;if(e.__lexicalDirTextContent!==we||n!==Xn){let o=we==="";if(o)var r=Xn;else r=we,r=jc.test(r)?"rtl":Zc.test(r)?"ltr":null;if(r!==n){let l=e.classList,s=ut.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),qr||(t.getWritable().__dir=r)}Xn=r,e.__lexicalDirTextContent=we,e.__lexicalDir=r}}function on(t,e){var n=tn.get(t),r=At.get(t);n!==void 0&&r!==void 0||$(61);var i=al||ti.has(t)||ei.has(t);let o=jn(Ee,t);if(n===r&&!i)return R(n)?(r=o.__lexicalTextContent,r!==void 0&&(ge+=r,We+=r),r=o.__lexicalDirTextContent,r!==void 0&&(we+=r)):(r=n.getTextContent(),L(n)&&!n.isDirectionless()&&(we+=r),We+=r,ge+=r),o;if(n!==r&&i&&Jr(nn,en,Jn,r,"updated"),r.updateDOM(n,o,ut))return r=qn(t,null,null),e===null&&$(62),e.replaceChild(r,o),Qn(t,null),r;if(R(n)&&R(r)){if(t=r.__indent,t!==n.__indent&&cl(o,t),t=r.__format,t!==n.__format&&dl(o,t),t=n.__children,n=r.__children,t!==n||i){var l=t,s=n;i=r,e=we,we="";let m=ge;ge="";var a=l.length,c=s.length;if(a===1&&c===1){var u=l[0];if(s=s[0],u===s)on(u,o);else{var d=oi(u);s=qn(s,null,null),o.replaceChild(s,d),Qn(u,null)}}else if(a===0)c!==0&&ii(s,0,c-1,o,null);else if(c===0)a!==0&&(u=o.__lexicalLineBreak==null,ri(l,0,a-1,u?null:o),u&&(o.textContent=""));else{let h=a-1;a=c-1;let _=o.firstChild,C=0;for(c=0;C<=h&&c<=a;){var g=l[C];let T=s[c];if(g===T)_=on(T,o).nextSibling,C++,c++;else{u===void 0&&(u=new Set(l)),d===void 0&&(d=new Set(s));let p=d.has(g),v=u.has(T);p?(v?(g=jn(Ee,T),g===_?_=on(T,o).nextSibling:(_!=null?o.insertBefore(g,_):o.appendChild(g),on(T,o)),C++):qn(T,o,_),c++):(_=oi(g).nextSibling,Qn(g,o),C++)}}u=C>h,d=c>a,u&&!d?(u=s[a+1],u=u===void 0?null:Ee.getElementByKey(u),ii(s,c,a,o,u)):d&&!u&&ri(l,C,h,o)}Xr(i)&&(ge+=`
|
|
15
15
|
|
|
16
|
-
`),o.__lexicalTextContent=
|
|
16
|
+
`),o.__lexicalTextContent=ge,ge=m+ge,fl(i,o),we=e,Be(r)||gl(t,n,o)}Xr(r)&&(ge+=`
|
|
17
17
|
|
|
18
|
-
`,
|
|
18
|
+
`,We+=`
|
|
19
19
|
|
|
20
|
-
`)}else n=r.getTextContent(),ne(r)?(i=r.decorate(
|
|
21
|
-
`?(t.preventDefault(),
|
|
20
|
+
`)}else n=r.getTextContent(),ne(r)?(i=r.decorate(Ee,ut),i!==null&&hl(t,i)):L(r)&&!r.isDirectionless()&&(we+=n),ge+=n,We+=n;return!qr&&Be(r)&&r.__cachedText!==We&&(r=r.getWritable(),r.__cachedText=We),o}function hl(t,e){let n=Ee._pendingDecorators,r=Ee._decorators;if(n===null){if(r[t]===e)return;n=jo(Ee)}n[t]=e}function oi(t){return t=ni.get(t),t===void 0&&$(75),t}let Ve=Object.freeze({}),li=[["keydown",md],["mousedown",cd],["compositionstart",hd],["compositionend",pd],["input",fd],["click",ad],["cut",Ve],["copy",Ve],["dragstart",Ve],["dragover",Ve],["dragend",Ve],["paste",Ve],["focus",Ve],["blur",Ve],["drop",Ve]];Yc&&li.push(["beforeinput",(t,e)=>gd(t,e)]);let ln=0,pl=0,sn=0,si=!1,ai=!1,an=!1,cn=!1,ml=[0,0,"root",0];function xl(t,e){return t!==null&&t.nodeValue!==null&&t.nodeType===3&&e!==0&&e!==t.nodeValue.length}function _l(t,e,n){let{anchorNode:r,anchorOffset:i,focusNode:o,focusOffset:l}=t;si&&(si=!1,xl(r,i)&&xl(o,l))||be(e,()=>{if(!n)Ot(null);else if(Wn(e,r,o)){var s=Z();if(B(s)){var a=s.anchor,c=a.getNode();if(s.isCollapsed()){t.type==="Range"&&t.anchorNode===t.focusNode&&(s.dirty=!0);var u=Zn(e).event;u=u?u.timeStamp:performance.now();let[d,g,m,h]=ml;u<h+200&&a.offset===g&&a.key===m?s.format=d:a.type==="text"?s.format=c.getFormat():a.type==="element"&&(s.format=0)}else{a=127,c=!1,u=s.getNodes();let d=u.length;for(let g=0;g<d;g++){let m=u[g];if(L(m)&&(c=!0,a&=m.getFormat(),a===0))break}s.format=c?a:0}}M(e,yo,void 0)}})}function ad(t,e){be(e,()=>{let n=Z(),r=window.getSelection(),i=un();if(B(n)){let o=n.anchor,l=o.getNode();r&&o.type==="element"&&o.offset===0&&n.isCollapsed()&&!Be(l)&&Xe().getChildrenSize()===1&&l.getTopLevelElementOrThrow().isEmpty()&&i!==null&&n.is(i)&&(r.removeAllRanges(),n.dirty=!0)}M(e,ko,t)})}function cd(t,e){let n=t.target;n instanceof Node&&be(e,()=>{ne(qt(n))||(ai=!0)})}function dd(t,e){e.getTargetRanges&&(e=e.getTargetRanges()[0])&&t.applyDOMRange(e)}function ud(t,e){return t!==e||R(t)||R(e)||!t.isToken()||!e.isToken()}function gd(t,e){let n=t.inputType;n==="deleteCompositionText"||ct&&nl(e)||n!=="insertCompositionText"&&be(e,()=>{let r=Z();if(n==="deleteContentBackward"){if(r===null){var i=un();if(!B(i))return;Ot(i.clone())}if(B(r)){pl===229&&t.timeStamp<ln+30&&e.isComposing()&&r.anchor.key===r.focus.key?(pe(null),ln=0,setTimeout(()=>{be(e,()=>{pe(null)})},30),B(r)&&(i=r.anchor.getNode(),i.markDirty(),r.format=i.getFormat())):(t.preventDefault(),M(e,Zt,!0));return}}if(B(r)){i=t.data,r.dirty||!r.isCollapsed()||Be(r.anchor.getNode())||dd(r,t);var o=r.focus,l=r.anchor.getNode();if(o=o.getNode(),n==="insertText"||n==="insertTranspose")i===`
|
|
21
|
+
`?(t.preventDefault(),M(e,Jt,!1)):i===`
|
|
22
22
|
|
|
23
|
-
`?(t.preventDefault(),
|
|
24
|
-
`&&(n=Z(),
|
|
25
|
-
`),a=!u.isEmpty();else if(a=!1,$(u)){let d=u.getTextContent();u===n?d=u===r?o<l?d.slice(o,l):d.slice(l,o):i?d.slice(o):d.slice(l):u===r&&(d=i?d.slice(0,l):d.slice(0,o)),s+=d}else!ne(u)&&!pn(u)||u===r&&this.isCollapsed()||(s+=u.getTextContent())}return s}applyDOMRange(e){let n=ie(),r=n.getEditorState()._selection;if(e=bl(e.startContainer,e.startOffset,e.endContainer,e.endOffset,n,r),e!==null){var[i,o]=e;qe(this.anchor,i.key,i.offset,i.type),qe(this.focus,o.key,o.offset,o.type),this._cachedNodes=null}}clone(){let e=this.anchor,n=this.focus;return new Lt(new Fe(e.key,e.offset,e.type),new Fe(n.key,n.offset,n.type),this.format)}toggleFormat(e){this.format=Vo(this.format,e,null),this.dirty=!0}hasFormat(e){return(this.format&ut[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(we(o)),i!==r-1&&e.push(fn())}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"?Cl(n,r,o):i||r.type!=="element"||Cl(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],$(n)||A(26),i=n.getTextContent().length;var u=n.getParentOrThrow(),d=l[s-1];if(this.isCollapsed()&&r===i&&(n.isSegmented()||n.isToken()||!n.canInsertTextAfter()||!u.canInsertTextAfter()&&n.getNextSibling()===null)){var g=n.getNextSibling();if((!$(g)||Vr(g))&&(g=we(),g.setFormat(o),u.canInsertTextAfter()?n.insertAfter(g):u.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()||!u.canInsertTextBefore()&&n.getPreviousSibling()===null)){if(g=n.getPreviousSibling(),(!$(g)||Vr(g))&&(g=we(),g.setFormat(o),u.canInsertTextBefore()?n.insertBefore(g):u.insertBefore(g)),g.select(),n=g,e!==""){this.insertText(e);return}}else if(n.isSegmented()&&r!==i)u=we(n.getTextContent()),u.setFormat(o),n.replace(u),n=u;else if(!(this.isCollapsed()||e===""||(g=d.getParent(),u.canInsertTextBefore()&&u.canInsertTextAfter()&&(!M(g)||g.canInsertTextBefore()&&g.canInsertTextAfter())))){this.insertText(""),Sl(this.anchor,this.focus,null),this.insertText(e);return}if(s===1)if(n.isToken())e=we(e),e.select(),n.replace(e);else{if(l=n.getFormat(),r===c&&l!==o)if(n.getTextContent()==="")n.setFormat(o);else{l=we(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(),...d.getParentKeys()]);var p=M(n)?n:n.getParentOrThrow();if(u=M(d)?d:d.getParentOrThrow(),g=d,!p.is(u)&&u.isInline())do g=u,u=u.getParentOrThrow();while(u.isInline());a.type==="text"&&(c!==0||d.getTextContent()==="")||a.type==="element"&&d.getIndexWithinParent()<c?$(d)&&!d.isToken()&&c!==d.getTextContentSize()?(d.isSegmented()&&(a=we(d.getTextContent()),d.replace(a),d=a),d=d.spliceText(0,c,""),o.add(d.__key)):(a=d.getParentOrThrow(),a.canBeEmpty()||a.getChildrenSize()!==1?d.remove():a.remove()):o.add(d.__key),a=u.getChildren(),c=new Set(l),d=p.is(u),p=p.isInline()&&n.getNextSibling()===null?p:n;for(let f=a.length-1;0<=f;f--){let v=a[f];if(v.is(n)||M(v)&&v.isParentOf(n))break;v.isAttached()&&(!c.has(v)||v.is(g)?d||p.insertAfter(v):v.remove())}if(!d)for(a=u,c=null;a!==null;)d=a.getChildren(),u=d.length,(u===0||d[u-1].is(c))&&(o.delete(a.__key),c=a),a=a.getParent();for(n.isToken()?r===i?n.select():(e=we(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)$(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 u=o-1,d=r[u];if(o=i.type==="text"?i.offset:d.getTextContentSize(),c.is(d))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=d.getFormatFlags(e,s);for(0<o&&(o!==d.getTextContentSize()&&([d]=d.splitText(o)),d.setFormat(g)),a+=1;a<u;a++){let p=r[a];if(!p.isToken()){let f=p.getFormatFlags(e,g);p.setFormat(f)}}n.type==="text"&&n.set(c.__key,l,"text"),i.type==="text"&&i.set(d.__key,o,"text"),this.format=s|g}}}}}insertNodes(e,n){this.isCollapsed()||this.removeText();var r=this.anchor,i=r.offset,o=r.getNode(),l=o;r.type==="element"&&(l=r.getNode(),r=l.getChildAtIndex(i-1),l=r===null?l:r),r=[];var s=o.getNextSiblings(),a=Qe(o)?null:o.getTopLevelElementOrThrow();if($(o))if(l=o.getTextContent().length,i===0&&l!==0)l=o.getPreviousSibling(),l=l!==null?l:o.getParentOrThrow(),r.push(o);else if(i===l)l=o;else{if(o.isToken())return!1;[l,o]=o.splitText(i),r.push(o)}o=l,r.push(...s),s=e[0];var c=!1,u=null;for(let f=0;f<e.length;f++){var d=e[f];if(M(d)&&!d.isInline()){if(d.is(s)){if(M(l)&&l.isEmpty()&&l.canReplaceWith(d)){l.replace(d),l=d,c=!0;continue}var g=d.getFirstDescendant();if(Yo(g)){for(g=g.getParentOrThrow();g.isInline();)g=g.getParentOrThrow();if(u=g.getChildren(),c=u.length,M(l))for(var p=0;p<c;p++)l.append(u[p]);else{for(p=c-1;0<=p;p--)l.insertAfter(u[p]);l=l.getParentOrThrow()}if(u=u[c-1],g.remove(),c=!0,g.is(d))continue}}$(l)&&(a===null&&A(27),l=a)}else c&&!ne(d)&&Qe(l.getParent())&&A(28);c=!1,M(l)&&!l.isInline()?(u=d,ne(d)&&!d.isInline()?l=l.insertAfter(d):M(d)?(d.canBeEmpty()||!d.isEmpty())&&(Qe(l)?(g=l.getChildAtIndex(i),g!==null?g.insertBefore(d):l.append(d),l=d):l=l.insertAfter(d)):(g=l.getFirstChild(),g!==null?g.insertBefore(d):l.append(d),l=d)):!M(d)||M(d)&&d.isInline()||ne(l)&&!l.isInline()?(u=d,l=l.insertAfter(d)):(d=l.getParentOrThrow(),pn(l)&&l.remove(),l=d,f--)}if(n&&($(o)?o.select():(e=l.getPreviousSibling(),$(e)?e.select():(e=l.getIndexWithinParent(),l.getParentOrThrow().select(e,e)))),M(l)){if(e=$(u)?u:M(u)&&u.isInline()?u.getLastDescendant():l.getLastDescendant(),n||(e===null?l.select():$(e)?e.select():e.selectNext()),r.length!==0)for(n=l,e=r.length-1;0<=e;e--)i=r[e],a=i.getParentOrThrow(),!M(l)||Ml(i)||ne(i)&&!i.isInline()?M(l)||Ml(i)?M(i)&&!i.canInsertAfter(l)?(o=a.constructor.clone(a),M(o)||A(29),o.append(i),l.insertAfter(o)):l.insertAfter(i):(l.insertBefore(i),l=i):(n===l?l.append(i):l.insertBefore(i),l=i),a.isEmpty()&&!a.canBeEmpty()&&a.remove()}else n||($(l)?l.select():(r=l.getParentOrThrow(),l=l.getIndexWithinParent()+1,r.select(l,l)));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(),Qe(l)){o=zt(),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),M(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(M(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=fn();var r=this.anchor;r.type==="element"&&(r=r.getNode(),Be(r)&&this.insertParagraph()),e?this.insertNodes([n],!0):this.insertNodes([n])&&n.selectNext(0,0)}getCharacterOffsets(){return nr(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]=nr(this);return n===0?[]:n===1?$(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)&&(i=n?a:c,i===l.getTextContentSize()?e.shift():i!==0&&([,l]=l.splitText(i),e[0]=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=tl(i,n);ne(s)&&!s.isIsolated()?l?(l=Rl(),l.add(s.__key),Ot(l)):(e=n?s.getPreviousSibling():s.getNextSibling(),$(e)?(s=e.__key,n=n?e.getTextContent().length:0,i.set(s,n,"text"),l&&o.set(s,n,"text")):(r=s.getParentOrThrow(),M(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"))):(i=window.getSelection())&&(i.modify(e,n?"backward":"forward",r),0<i.rangeCount&&(n=i.getRangeAt(0),this.applyDOMRange(n),this.dirty=!0,l||i.anchorNode===n.startContainer&&i.anchorOffset===n.startOffset||(l=this.focus,n=this.anchor,i=n.key,o=n.offset,s=n.type,qe(n,l.key,l.offset,l.type),qe(l,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"&&M(i)&&n.offset===i.getChildrenSize()||n.type==="text"&&n.offset===i.getTextContentSize())&&(i=i.getNextSibling()||i.getParentOrThrow().getNextSibling(),M(i)&&!i.canExtractContents()))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{var o=r.type==="text"?r.getNode():null;if(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){El(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)){El(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),Jo(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 dn(t){return t instanceof er}function wl(t){let e=t.offset;return t.type==="text"?e:(t=t.getNode(),e===t.getChildrenSize()?t.getTextContent().length:0)}function nr(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]:[wl(e),wl(t)]}function El(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 Nl(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=Rt(i[r]),$(i))r=l?i.getTextContentSize():0;else{if(o=Rt(t),o===null)return null;if(M(o)?(t=o.getChildAtIndex(r),(e=M(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())),$(t)?(i=t,o=null,r=l?t.getTextContentSize():0):t!==o&&l&&r++):(r=o.getIndexWithinParent(),r=e===0&&ne(o)&&Rt(t)===o?r:r+1,o=o.getParentOrThrow()),M(o))return new Fe(o.__key,r,"element")}}else i=Rt(t);return $(i)?new Fe(i.__key,r,"text"):null}function Tl(t,e,n){var r=t.offset,i=t.getNode();r===0?(r=i.getPreviousSibling(),i=i.getParent(),e?(n||!e)&&r===null&&M(i)&&i.isInline()&&(e=i.getPreviousSibling(),$(e)&&(t.key=e.__key,t.offset=e.getTextContent().length)):M(r)&&!n&&r.isInline()?(t.key=r.__key,t.offset=r.getChildrenSize(),t.type="element"):$(r)&&(t.key=r.__key,t.offset=r.getTextContent().length)):r===i.getTextContent().length&&(r=i.getNextSibling(),i=i.getParent(),e&&M(r)&&r.isInline()?(t.key=r.__key,t.offset=0,t.type="element"):(n||e)&&r===null&&M(i)&&i.isInline()&&!i.canInsertTextAfter()&&(e=i.getNextSibling(),$(e)&&(t.key=e.__key,t.offset=0)))}function Sl(t,e,n){if(t.type==="text"&&e.type==="text"){var r=t.isBefore(e);let i=t.is(e);Tl(t,r,i),Tl(e,!r,i),i&&(e.key=t.key,e.offset=t.offset,e.type=t.type),r=ie(),r.isComposing()&&r._compositionKey!==t.key&&H(n)&&(r=n.anchor,n=n.focus,qe(t,r.key,r.offset,r.type),qe(e,n.key,n.offset,n.type))}}function bl(t,e,n,r,i,o){return t===null||n===null||!Wn(i,t,n)||(e=Nl(t,e,H(o)?o.anchor:null),e===null)||(r=Nl(n,r,H(o)?o.focus:null),r===null||e.type==="element"&&r.type==="element"&&(t=Rt(t),n=Rt(n),ne(t)&&ne(n)))?null:(Sl(e,r,o),[e,r])}function Ml(t){return M(t)&&!t.isInline()}function Ol(t,e,n,r,i,o){let l=ze();return t=new Lt(new Fe(t,e,i),new Fe(n,r,o),0),t.dirty=!0,l._selection=t}function Rl(){return new er(new Set)}function _d(t){let e=t.getEditorState()._selection,n=window.getSelection();return dn(e)||ci(e)?e.clone():Al(e,n,t)}function Al(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=!Kr&&(r||o==="beforeinput"||o==="compositionstart"||o==="compositionend"||o==="click"&&i&&i.detail===3||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)&&!Wn(n,i,o))return t.clone()}else return t.clone();if(n=bl(i,l,o,e,n,t),n===null)return null;let[s,a]=n;return new Lt(s,a,H(t)?t.format:0)}function Z(){return ze()._selection}function un(){return ie()._editorState._selection}function rr(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"),$l(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")),$l(t)}}function $l(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())M(o)&&(l=o.getChildrenSize(),l=(i=n>=l)?o.getChildAtIndex(l-1):o.getChildAtIndex(n),$(l)&&(n=0,i&&(n=l.getTextContentSize()),e.set(l.__key,n,"text"),r.set(l.__key,n,"text")));else{if(M(o)){let s=o.getChildrenSize();n=(t=n>=s)?o.getChildAtIndex(s-1):o.getChildAtIndex(n),$(n)&&(o=0,t&&(o=n.getTextContentSize()),e.set(n.__key,o,"text"))}M(l)&&(n=l.getChildrenSize(),i=(e=i>=n)?l.getChildAtIndex(n-1):l.getChildAtIndex(i),$(i)&&(l=0,e&&(l=i.getTextContentSize()),r.set(i.__key,l,"text")))}}function vd(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 ir(t,e,n,r,i){let o=null,l=0,s=null;r!==null?(o=r.__key,$(r)?(l=r.getTextContentSize(),s="text"):M(r)&&(l=r.getChildrenSize(),s="element")):i!==null&&(o=i.__key,$(i)?s="text":M(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 Ll(t,e,n,r,i){t.type==="text"?(t.key=n,e||(t.offset+=i)):t.offset>r.getIndexWithinParent()&&--t.offset}let xe=null,ce=null,re=!1,di=!1,gn=0;function Te(){re&&A(13)}function ze(){return xe===null&&A(15),xe}function ie(){return ce===null&&A(16),ce}function Dl(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 yd(t,e){e=e._dirtyLeaves,t=t._nodeMap;for(let n of e)e=t.get(n),$(e)&&e.isAttached()&&e.isSimpleText()&&!e.isUnmergeable()&&ll(e)}function kd(t,e){let n=e._dirtyLeaves,r=e._dirtyElements;t=t._nodeMap;let i=Je(),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 u of l)l=t.get(u),$(l)&&l.isAttached()&&l.isSimpleText()&&!l.isUnmergeable()&&ll(l),l!==void 0&&l!==void 0&&l.__key!==i&&l.isAttached()&&Dl(e,l,o),n.add(u);if(l=e._dirtyLeaves,s=l.size,0<s){gn++;continue}}e._dirtyLeaves=new Set,e._dirtyElements=new Map;for(let u of a)a=u[0],c=u[1],(a==="root"||c)&&(l=t.get(a),l!==void 0&&l!==void 0&&l.__key!==i&&l.isAttached()&&Dl(e,l,o),r.set(a,c));l=e._dirtyLeaves,s=l.size,a=e._dirtyElements,c=a.size,gn++}e._dirtyLeaves=n,e._dirtyElements=r}function ui(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,M(n)&&Array.isArray(t))for(let r=0;r<t.length;r++){let i=ui(t[r],e);n.append(i)}return n}function Il(t,e){let n=xe,r=re,i=ce;xe=t,re=!0,ce=null;try{return e()}finally{xe=n,re=r,ce=i}}function ht(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=xe,c=re,u=ce,d=t._updating,g=t._observer,p=null;if(t._pendingEditorState=null,t._editorState=e,!r&&s&&g!==null){ce=t,xe=e,re=!1,t._updating=!0;try{var f=t._dirtyType,v=t._dirtyElements,k=t._dirtyLeaves;g.disconnect(),ke=Ue=ae="",al=f===2,Xn=null,Ce=t,gt=t._config,en=t._nodes,Jn=Ce._listeners.mutation,Qr=v,qr=k,tn=i._nodeMap,At=e._nodeMap,Xr=e._readOnly,ei=new Map(t._keyToDOMMap);var T=new Map;nn=T,on("root",null),nn=ei=gt=At=tn=qr=Qr=en=Ce=void 0,p=T}catch(de){if(de instanceof Error&&t._onError(de),di)throw de;Kl(t,null,n,e),Uo(t),t._dirtyType=2,di=!0,ht(t),di=!1;return}finally{g.observe(n,{characterData:!0,childList:!0,subtree:!0}),t._updating=d,xe=a,re=c,ce=u}}e._readOnly||(e._readOnly=!0),d=t._dirtyLeaves,g=t._dirtyElements,T=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),k=t._decorators,v=t._pendingDecorators||k;var _=e._nodeMap;for(q in v)_.has(q)||(v===k&&(v=jo(t)),delete v[q]);if(r=r?null:window.getSelection(),t._editable&&r!==null&&(s||l===null||l.dirty)){ce=t,xe=e;try{e:{let de=r.anchorNode,ue=r.focusNode,at=r.anchorOffset,ee=r.focusOffset,Ee=document.activeElement;if(!f.has("collaboration")||Ee===n)if(H(l)){var m=l.anchor,C=l.focus,E=m.key,N=C.key,O=jn(t,E),F=jn(t,N),D=m.offset,W=C.offset,P=l.format,B=l.isCollapsed();s=O,N=F;var q=!1;if(m.type==="text"&&(s=Vn(O),q=m.getNode().getFormat()!==P),C.type==="text"&&(N=Vn(F)),s!==null&&N!==null){if(B&&(o===null||q||H(o)&&o.format!==P)){var ye=performance.now();ml=[P,D,E,ye]}if(at===D&&ee===W&&de===s&&ue===N&&(r.type!=="Range"||!B)&&(n===null||Ee!==null&&n.contains(Ee)||n.focus({preventScroll:!0}),!Kn&&!Hn||m.type!=="element"))break e;try{if(r.setBaseAndExtent(s,D,N,W),l.isCollapsed()&&n!==null&&n===Ee){let $e=m.getNode();if(M($e)){let se=$e.getDescendantByIndex(m.offset);se!==null&&($e=se)}let Pe=t.getElementByKey($e.__key);if(Pe!==null){let se=Pe.getBoundingClientRect();if(se.bottom>Zn(t).innerHeight)Pe.scrollIntoView(!1);else if(0>se.top)Pe.scrollIntoView();else{let br=n.getBoundingClientRect();Math.floor(se.bottom)>Math.floor(br.bottom)?Pe.scrollIntoView(!1):Math.floor(se.top)<Math.floor(br.top)&&Pe.scrollIntoView()}f.add("scroll-into-view")}}oi=!0}catch{}}}else o!==null&&Wn(t,de,ue)&&r.removeAllRanges()}}finally{ce=u,xe=a}}if(p!==null)for(n=p,o=Array.from(t._listeners.mutation),l=o.length,a=0;a<l;a++){let[de,ue]=o[a];u=n.get(ue),u!==void 0&&de(u,{dirtyLeaves:d,updateTags:f})}if(n=t._pendingDecorators,n!==null&&(t._decorators=n,t._pendingDecorators=null,hn("decorator",t,!0,n)),n=Zo(i),o=Zo(e),n!==o&&hn("textcontent",t,!0,o),hn("update",t,!0,{dirtyElements:g,dirtyLeaves:d,editorState:e,normalizedNodes:T,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[de,ue]=e;Fl(t,de,ue)}}}function hn(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 R(t,e,n){if(t._updating===!1||ce!==t){let o=!1;return t.update(()=>{o=R(t,e,n)}),o}let r=Yr(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 Pl(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 Fl(t,e,n){let r=t._updateTags;var i=!1;if(n!==void 0){var o=n.onUpdate;i=n.tag,i!=null&&r.add(i),i=n.skipTransforms||!1}o&&t._deferred.push(o),n=t._editorState,o=t._pendingEditorState;let l=!1;(o===null||o._readOnly)&&(o=t._pendingEditorState=new lr(new Map(n._nodeMap)),l=!0);let s=xe,a=re,c=ce,u=t._updating;xe=o,re=!1,t._updating=!0,ce=t;try{l&&!t._headless&&(o._selection=_d(t));let d=t._compositionKey;e(),i=Pl(t,i),vd(o,t),t._dirtyType!==0&&(i?yd(o,t):kd(o,t),Pl(t),sd(n,o,t._dirtyLeaves,t._dirtyElements)),d!==t._compositionKey&&(o._flushSync=!0);let g=o._selection;if(H(g)){let p=o._nodeMap,f=g.focus.key;p.get(g.anchor.key)!==void 0&&p.get(f)!==void 0||A(19)}else dn(g)&&g._nodes.size===0&&(o._selection=null)}catch(d){d instanceof Error&&t._onError(d),t._pendingEditorState=n,t._dirtyType=2,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),ht(t);return}finally{xe=s,re=a,ce=c,t._updating=u,gn=0}t._dirtyType!==0||Cd(o,t)?o._flushSync?(o._flushSync=!1,ht(t)):l&&rd(()=>{ht(t)}):(o._flushSync=!1,l&&(r.clear(),t._deferred=[],t._pendingEditorState=null))}function Se(t,e,n){t._updating?t._updates.push([e,n]):Fl(t,e,n)}function gi(t,e,n){Te();var r=t.__key;let i=t.getParent();if(i!==null){var o=ld(t),l=!1;if(H(o)&&e){var s=o.anchor;let a=o.focus;s.key===r&&(ir(s,t,i,t.getPreviousSibling(),t.getNextSibling()),l=!0),a.key===r&&(ir(a,t,i,t.getPreviousSibling(),t.getNextSibling()),l=!0)}s=i.getWritable().__children,r=s.indexOf(r),r===-1&&A(31),Mt(t),s.splice(r,1),t.getWritable().__parent=null,H(o)&&e&&!l&&rr(o,i,r,-1),n||Qe(i)||i.canBeEmpty()||!i.isEmpty()||gi(i,e),Be(i)&&i.isEmpty()&&i.selectEnd()}}function zl(t){return t=j(t),t===null&&A(63),t}class or{static getType(){A(64)}static clone(){A(65)}constructor(e){if(this.__type=this.constructor.getType(),this.__parent=null,e!=null)this.__key=e;else{Te(),99<gn&&A(14),e=ie();var n=ze(),r=""+nd++;n._nodeMap.set(r,this),M(this)?e._dirtyElements.set(r,!0):e._dirtyLeaves.add(r),e._cloneNotNeeded.add(r),e._dirtyType=1,this.__key=r}}getType(){return this.__type}isAttached(){for(var e=this.__key;e!==null;){if(e==="root")return!0;if(e=j(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 $(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:j(e)}getParentOrThrow(){let e=this.getParent();return e===null&&A(66),e}getTopLevelElement(){let e=this;for(;e!==null;){let n=e.getParent();if(Qe(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:j(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=>zl(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:j(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=>zl(r))}getCommonAncestor(e){let n=this.getParents();var r=e.getParents();M(this)&&n.unshift(this),M(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=M(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=ie()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){let e=j(this.__key);return e===null&&A(69),e}getWritable(){Te();var e=ze(),n=ie();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)?(bt(i),i):(l=i.constructor.clone(i),l.__parent=o,M(i)&&M(l)?(l.__children=Array.from(i.__children),l.__indent=i.__indent,l.__format=i.__format,l.__dir=i.__dir):$(i)&&$(l)&&(l.__format=i.__format,l.__style=i.__style,l.__mode=i.__mode,l.__detail=i.__detail),n.add(r),l.__key=r,bt(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){gi(this,!0,e)}replace(e){Te();let n=this.__key;e=e.getWritable(),Yn(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,gi(this,!1),Mt(e),i=Z(),H(i)&&(r=i.anchor,i=i.focus,r.key===n&&kl(r,e),i.key===n&&kl(i,e)),Je()===n&&he(l),e}insertAfter(e){Te();var n=this.getWritable(),r=e.getWritable(),i=r.getParent();let o=Z();var l=e.getIndexWithinParent(),s=!1,a=!1;i!==null&&(Yn(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),Mt(r),H(o)&&(rr(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){var n=this.getWritable(),r=e.getWritable();Yn(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),Mt(r),r=Z(),H(r)&&rr(r,i,n),e}selectPrevious(e,n){Te();let r=this.getPreviousSibling(),i=this.getParentOrThrow();return r===null?i.select(0,0):M(r)?r.select():$(r)?r.select(e,n):(e=r.getIndexWithinParent()+1,i.select(e,e))}selectNext(e,n){Te();let r=this.getNextSibling(),i=this.getParentOrThrow();return r===null?i.select():M(r)?r.select(0,0):$(r)?r.select(e,n):(e=r.getIndexWithinParent(),i.select(e,e))}markDirty(){this.getWritable()}}class Bl extends or{constructor(e){super(e)}decorate(){A(47)}isIsolated(){return!1}isInline(){return!0}}function ne(t){return t instanceof Bl}class ft extends or{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 Xc[e]||""}getIndent(){return this.getLatest().__indent}getChildren(){let e=this.getLatest().__children,n=[];for(let r=0;r<e.length;r++){let i=j(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=ie()._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=j(n[i]);$(r)?e.push(r):M(r)&&(r=r.getAllTextNodes(),e.push(...r))}return e}getFirstDescendant(){let e=this.getFirstChild();for(;e!==null;){if(M(e)){let n=e.getFirstChild();if(n!==null){e=n;continue}}break}return e}getLastDescendant(){let e=this.getLastChild();for(;e!==null;){if(M(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],M(e)&&e.getLastDescendant()||e||null):(e=n[e],M(e)&&e.getFirstDescendant()||e||null)}getFirstChild(){let e=this.getLatest().__children;return e.length===0?null:j(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:j(e[n-1])}getLastChildOrThrow(){let e=this.getLastChild();if(e===null)throw Error(`Expected node ${this.__key} to have a last child.`);return e}getChildAtIndex(e){return e=this.getLatest().__children[e],e===void 0?null:j(e)}getTextContent(){let e="",n=this.getChildren(),r=n.length;for(let i=0;i<r;i++){let o=n[i];e+=o.getTextContent(),M(o)&&i!==r-1&&!o.isInline()&&(e+=`
|
|
23
|
+
`?(t.preventDefault(),M(e,Pr,void 0)):i==null&&t.dataTransfer?(i=t.dataTransfer.getData("text/plain"),t.preventDefault(),r.insertRawText(i)):i!=null&&qo(r,i)&&(t.preventDefault(),M(e,Nt,i));else switch(t.preventDefault(),n){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":M(e,Nt,t);break;case"insertFromComposition":pe(null),M(e,Nt,t);break;case"insertLineBreak":pe(null),M(e,Jt,!1);break;case"insertParagraph":pe(null),an?(an=!1,M(e,Jt,!1)):M(e,Pr,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":M(e,Fr,t);break;case"deleteByComposition":ud(l,o)&&M(e,zr,void 0);break;case"deleteByDrag":case"deleteByCut":M(e,zr,void 0);break;case"deleteContent":M(e,Zt,!1);break;case"deleteWordBackward":M(e,Xt,!0);break;case"deleteWordForward":M(e,Xt,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":M(e,Qt,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":M(e,Qt,!1);break;case"formatStrikeThrough":M(e,Ze,"strikethrough");break;case"formatBold":M(e,Ze,"bold");break;case"formatItalic":M(e,Ze,"italic");break;case"formatUnderline":M(e,Ze,"underline");break;case"historyUndo":M(e,Br,void 0);break;case"historyRedo":M(e,Hr,void 0)}}})}function fd(t,e){t.stopPropagation(),be(e,()=>{var n=Z(),r=t.data;r!=null&&B(n)&&qo(n,r)?(cn&&(ci(e,r),cn=!1),M(e,Nt,r),r=r.length,ct&&1<r&&t.inputType==="insertCompositionText"&&!e.isComposing()&&(n.anchor.offset-=r),Hn||Kn||!e.isComposing()||(ln=0,pe(null))):(Qo(!1),cn&&(ci(e,r||void 0),cn=!1)),Se(),n=le(),Ko(n)})}function hd(t,e){be(e,()=>{let n=Z();if(B(n)&&!e.isComposing()){let r=n.anchor;pe(r.key),(t.timeStamp<ln+30||r.type==="element"||!n.isCollapsed()||n.anchor.getNode().getFormat()!==n.format)&&M(e,Nt,Gc)}})}function ci(t,e){var n=t._compositionKey;if(pe(null),n!==null&&e!=null){if(e===""){e=j(n),t=Vn(t.getElementByKey(n)),t!==null&&t.nodeValue!==null&&L(e)&&Zr(e,t.nodeValue,null,null,!0);return}if(e[e.length-1]===`
|
|
24
|
+
`&&(n=Z(),B(n))){e=n.focus,n.anchor.set(e.key,e.offset,e.type),M(t,Bn,null);return}}Qo(!0,e)}function pd(t,e){ct?cn=!0:be(e,()=>{ci(e,t.data)})}function md(t,e){if(t._lexicalHandled!==!0&&(t._lexicalHandled=!0,ln=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)an=!0,M(e,Bn,t);else if(n===32)M(e,bo,t);else if(Te&&i&&n===79)t.preventDefault(),an=!0,M(e,Jt,!0);else if(n!==13||r){var s=Te?l||o?!1:n===8||n===72&&i:i||l||o?!1:n===8;s?n===8?M(e,Oo,t):(t.preventDefault(),M(e,Zt,!0)):n===27?M(e,Ro,t):(s=Te?r||l||o?!1:n===46||n===68&&i:i||l||o?!1:n===46,s?n===46?M(e,Ao,t):(t.preventDefault(),M(e,Zt,!1)):n===8&&(Te?l:i)?(t.preventDefault(),M(e,Xt,!0)):n===46&&(Te?l:i)?(t.preventDefault(),M(e,Xt,!1)):Te&&o&&n===8?(t.preventDefault(),M(e,Qt,!0)):Te&&o&&n===46?(t.preventDefault(),M(e,Qt,!1)):n===66&&!l&&(Te?o:i)?(t.preventDefault(),M(e,Ze,"bold")):n===85&&!l&&(Te?o:i)?(t.preventDefault(),M(e,Ze,"underline")):n===73&&!l&&(Te?o:i)?(t.preventDefault(),M(e,Ze,"italic")):n!==9||l||i||o?n===90&&!r&&(Te?o:i)?(t.preventDefault(),M(e,Br,void 0)):(s=Te?n===90&&o&&r:n===89&&i||n===90&&i&&r,s?(t.preventDefault(),M(e,Hr,void 0)):dn(e._editorState._selection)&&(s=r?!1:n===67?Te?o:i:!1,s?(t.preventDefault(),M(e,Kr,t)):(s=r?!1:n===88?Te?o:i:!1,s&&(t.preventDefault(),M(e,Ur,t))))):M(e,Mo,t))}else an=!1,M(e,Bn,t);else M(e,So,t);else M(e,To,t);else M(e,No,t);else M(e,Eo,t);else M(e,wo,t);else M(e,Co,t);(i||r||l||o)&&M(e,zo,t)}}function vl(t){let e=t.__lexicalEventHandles;return e===void 0&&(e=[],t.__lexicalEventHandles=e),e}let Mt=new Map;function yl(){let t=window.getSelection();if(t!==null){var e=Wo(t.anchorNode);if(e!==null){ai&&(ai=!1,be(e,()=>{var l=un(),s=t.anchorNode;s!==null&&(s=s.nodeType,s===1||s===3)&&(l=Ml(l,t,e),Ot(l))}));var n=jr(e);n=n[n.length-1];var r=n._key,i=Mt.get(r),o=i||n;o!==e&&_l(t,o,!1),_l(t,e,!0),e!==n?Mt.set(r,e):i&&Mt.delete(r)}}}function xd(t,e){sn===0&&t.ownerDocument.addEventListener("selectionchange",yl),sn++,t.__lexicalEditor=e;let n=vl(t);for(let r=0;r<li.length;r++){let[i,o]=li[r],l=typeof o=="function"?s=>{e.isEditable()&&o(s,e)}:s=>{if(e.isEditable())switch(i){case"cut":return M(e,Ur,s);case"copy":return M(e,Kr,s);case"paste":return M(e,Fr,s);case"dragstart":return M(e,Lo,s);case"dragover":return M(e,Do,s);case"dragend":return M(e,Io,s);case"focus":return M(e,Po,s);case"blur":return M(e,Fo,s);case"drop":return M(e,$o,s)}};t.addEventListener(i,l),n.push(()=>{t.removeEventListener(i,l)})}}class Fe{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,R(n)){var o=n.getDescendantByIndex(i);n=o!=null?o:n}return R(r)&&(o=r.getDescendantByIndex(e),r=o!=null?o:r),n===r?i<e:n.isBefore(r)}getNode(){let e=j(this.key);return e===null&&$(20),e}set(e,n,r){let i=this._selection,o=this.key;this.key=e,this.offset=n,this.type=r,oe||(Je()===o&&pe(e),i!==null&&(i._cachedNodes=null,i.dirty=!0))}}function di(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(!R(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 kl(t,e){if(R(e)){let n=e.getLastDescendant();R(n)||L(n)?di(t,n):di(t,e)}else di(t,e)}function Cl(t,e,n){let r=t.getNode(),i=r.getChildAtIndex(t.offset),o=Ne(),l=Be(r)?Ft().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 qe(t,e,n,r){t.key=e,t.offset=n,t.type=r}class er{constructor(e){this.dirty=!1,this._nodes=e,this._cachedNodes=null}is(e){if(!dn(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 er(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=j(r),n!==null&&e.push(n);return oe||(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 B(t){return t instanceof $t}class tr{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 ui(e)?this.gridKey===e.gridKey&&this.anchor.is(this.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 tr(this.gridKey,this.anchor,this.focus)}isCollapsed(){return!1}isBackward(){return this.focus.isBefore(this.anchor)}getCharacterOffsets(){return nr(this)}extract(){return this.getNodes()}insertRawText(){}insertText(){}insertNodes(e,n){var r=this.focus.getNode();return r=r.select(0,r.getChildrenSize()),sl(r.anchor),sl(r.focus),r.insertNodes(e,n)}getShape(){var e=j(this.anchor.key);e===null&&$(21);var n=e.getIndexWithinParent();e=e.getParentOrThrow().getIndexWithinParent();var r=j(this.focus.key);r===null&&$(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=j(this.gridKey);Yl(l)||$(23),e.add(l),l=l.getChildren();for(let c=r;c<=o;c++){var s=l[c];e.add(s),jl(s)||$(24),s=s.getChildren();for(let u=n;u<=i;u++){var a=s[u];for(Wl(a)||$(25),e.add(a),a=a.getChildren();0<a.length;){let d=a.shift();e.add(d),R(d)&&a.unshift(...d.getChildren())}}}return e=Array.from(e),oe||(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 ui(t){return t instanceof tr}class $t{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 B(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 R(e)&&(n=e.getDescendantByIndex(n.offset),e=n!=null?n:e),R(i)&&(r=i.getDescendantByIndex(r.offset),i=r!=null?r:i),e=e.is(i)?R(e)&&(0<e.getChildrenSize()||e.excludeFromCopy())?[]:[e]:e.getNodesBetween(i),oe||(this._cachedNodes=e),e}setTextNodeRange(e,n,r,i){qe(this.anchor,e.__key,n,"text"),qe(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]=nr(this),s="",a=!0;for(let c=0;c<e.length;c++){let u=e[c];if(R(u)&&!u.isInline())a||(s+=`
|
|
25
|
+
`),a=!u.isEmpty();else if(a=!1,L(u)){let d=u.getTextContent();u===n?d=u===r?o<l?d.slice(o,l):d.slice(l,o):i?d.slice(o):d.slice(l):u===r&&(d=i?d.slice(0,l):d.slice(0,o)),s+=d}else!ne(u)&&!pn(u)||u===r&&this.isCollapsed()||(s+=u.getTextContent())}return s}applyDOMRange(e){let n=le(),r=n.getEditorState()._selection;if(e=bl(e.startContainer,e.startOffset,e.endContainer,e.endOffset,n,r),e!==null){var[i,o]=e;qe(this.anchor,i.key,i.offset,i.type),qe(this.focus,o.key,o.offset,o.type),this._cachedNodes=null}}clone(){let e=this.anchor,n=this.focus;return new $t(new Fe(e.key,e.offset,e.type),new Fe(n.key,n.offset,n.type),this.format)}toggleFormat(e){this.format=Vo(this.format,e,null),this.dirty=!0}hasFormat(e){return(this.format&dt[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(Ne(o)),i!==r-1&&e.push(hn())}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"?Cl(n,r,o):i||r.type!=="element"||Cl(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)||$(26),i=n.getTextContent().length;var u=n.getParentOrThrow(),d=l[s-1];if(this.isCollapsed()&&r===i&&(n.isSegmented()||n.isToken()||!n.canInsertTextAfter()||!u.canInsertTextAfter()&&n.getNextSibling()===null)){var g=n.getNextSibling();if((!L(g)||Gr(g))&&(g=Ne(),g.setFormat(o),u.canInsertTextAfter()?n.insertAfter(g):u.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()||!u.canInsertTextBefore()&&n.getPreviousSibling()===null)){if(g=n.getPreviousSibling(),(!L(g)||Gr(g))&&(g=Ne(),g.setFormat(o),u.canInsertTextBefore()?n.insertBefore(g):u.insertBefore(g)),g.select(),n=g,e!==""){this.insertText(e);return}}else if(n.isSegmented()&&r!==i)u=Ne(n.getTextContent()),u.setFormat(o),n.replace(u),n=u;else if(!(this.isCollapsed()||e===""||(g=d.getParent(),u.canInsertTextBefore()&&u.canInsertTextAfter()&&(!R(g)||g.canInsertTextBefore()&&g.canInsertTextAfter())))){this.insertText(""),Sl(this.anchor,this.focus,null),this.insertText(e);return}if(s===1)if(n.isToken())e=Ne(e),e.select(),n.replace(e);else{if(l=n.getFormat(),r===c&&l!==o)if(n.getTextContent()==="")n.setFormat(o);else{l=Ne(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(),...d.getParentKeys()]);var m=R(n)?n:n.getParentOrThrow();if(u=R(d)?d:d.getParentOrThrow(),g=d,!m.is(u)&&u.isInline())do g=u,u=u.getParentOrThrow();while(u.isInline());a.type==="text"&&(c!==0||d.getTextContent()==="")||a.type==="element"&&d.getIndexWithinParent()<c?L(d)&&!d.isToken()&&c!==d.getTextContentSize()?(d.isSegmented()&&(a=Ne(d.getTextContent()),d.replace(a),d=a),d=d.spliceText(0,c,""),o.add(d.__key)):(a=d.getParentOrThrow(),a.canBeEmpty()||a.getChildrenSize()!==1?d.remove():a.remove()):o.add(d.__key),a=u.getChildren(),c=new Set(l),d=m.is(u),m=m.isInline()&&n.getNextSibling()===null?m:n;for(let h=a.length-1;0<=h;h--){let _=a[h];if(_.is(n)||R(_)&&_.isParentOf(n))break;_.isAttached()&&(!c.has(_)||_.is(g)?d||m.insertAfter(_):_.remove())}if(!d)for(a=u,c=null;a!==null;)d=a.getChildren(),u=d.length,(u===0||d[u-1].is(c))&&(o.delete(a.__key),c=a),a=a.getParent();for(n.isToken()?r===i?n.select():(e=Ne(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),pe(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),pe(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 u=o-1,d=r[u];if(o=i.type==="text"?i.offset:d.getTextContentSize(),c.is(d))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=d.getFormatFlags(e,s);for(0<o&&(o!==d.getTextContentSize()&&([d]=d.splitText(o)),d.setFormat(g)),a+=1;a<u;a++){let m=r[a];if(!m.isToken()){let h=m.getFormatFlags(e,g);m.setFormat(h)}}n.type==="text"&&n.set(c.__key,l,"text"),i.type==="text"&&i.set(d.__key,o,"text"),this.format=s|g}}}}}insertNodes(e,n){this.isCollapsed()||this.removeText();var r=this.anchor,i=r.offset,o=r.getNode(),l=o;r.type==="element"&&(l=r.getNode(),r=l.getChildAtIndex(i-1),l=r===null?l:r),r=[];var s=o.getNextSiblings(),a=Qe(o)?null:o.getTopLevelElementOrThrow();if(L(o))if(l=o.getTextContent().length,i===0&&l!==0)l=o.getPreviousSibling(),l=l!==null?l:o.getParentOrThrow(),r.push(o);else if(i===l)l=o;else{if(o.isToken())return!1;[l,o]=o.splitText(i),r.push(o)}o=l,r.push(...s),s=e[0];var c=!1,u=null;for(let h=0;h<e.length;h++){var d=e[h];if(R(d)&&!d.isInline()){if(d.is(s)){if(R(l)&&l.isEmpty()&&l.canReplaceWith(d)){l.replace(d),l=d,c=!0;continue}var g=d.getFirstDescendant();if(Yo(g)){for(g=g.getParentOrThrow();g.isInline();)g=g.getParentOrThrow();if(u=g.getChildren(),c=u.length,R(l))for(var m=0;m<c;m++)l.append(u[m]);else{for(m=c-1;0<=m;m--)l.insertAfter(u[m]);l=l.getParentOrThrow()}if(u=u[c-1],g.remove(),c=!0,g.is(d))continue}}L(l)&&(a===null&&$(27),l=a)}else c&&!ne(d)&&Qe(l.getParent())&&$(28);c=!1,R(l)&&!l.isInline()?(u=d,ne(d)&&!d.isInline()?l=l.insertAfter(d):R(d)?(d.canBeEmpty()||!d.isEmpty())&&(Qe(l)?(g=l.getChildAtIndex(i),g!==null?g.insertBefore(d):l.append(d),l=d):l=l.insertAfter(d)):(g=l.getFirstChild(),g!==null?g.insertBefore(d):l.append(d),l=d)):!R(d)||R(d)&&d.isInline()||ne(l)&&!l.isInline()?(u=d,l=l.insertAfter(d)):(d=l.getParentOrThrow(),pn(l)&&l.remove(),l=d,h--)}if(n&&(L(o)?o.select():(e=l.getPreviousSibling(),L(e)?e.select():(e=l.getIndexWithinParent(),l.getParentOrThrow().select(e,e)))),R(l)){if(e=L(u)?u:R(u)&&u.isInline()?u.getLastDescendant():l.getLastDescendant(),n||(e===null?l.select():L(e)?e.select():e.selectNext()),r.length!==0)for(n=l,e=r.length-1;0<=e;e--)i=r[e],a=i.getParentOrThrow(),!R(l)||Ol(i)||ne(i)&&!i.isInline()?R(l)||Ol(i)?R(i)&&!i.canInsertAfter(l)?(o=a.constructor.clone(a),R(o)||$(29),o.append(i),l.insertAfter(o)):l.insertAfter(i):(l.insertBefore(i),l=i):(n===l?l.append(i):l.insertBefore(i),l=i),a.isEmpty()&&!a.canBeEmpty()&&a.remove()}else n||(L(l)?l.select():(r=l.getParentOrThrow(),l=l.getIndexWithinParent()+1,r.select(l,l)));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(),Qe(l)){o=Ft(),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),R(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(R(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=hn();var r=this.anchor;r.type==="element"&&(r=r.getNode(),Be(r)&&this.insertParagraph()),e?this.insertNodes([n],!0):this.insertNodes([n])&&n.selectNext(0,0)}getCharacterOffsets(){return nr(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]=nr(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=tl(i,n);ne(s)&&!s.isIsolated()?l?(l=Al(),l.add(s.__key),Ot(l)):(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(),R(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"))):(i=window.getSelection())&&(i.modify(e,n?"backward":"forward",r),0<i.rangeCount&&(n=i.getRangeAt(0),this.applyDOMRange(n),this.dirty=!0,l||i.anchorNode===n.startContainer&&i.anchorOffset===n.startOffset||(l=this.focus,n=this.anchor,i=n.key,o=n.offset,s=n.type,qe(n,l.key,l.offset,l.type),qe(l,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"&&R(i)&&n.offset===i.getChildrenSize()||n.type==="text"&&n.offset===i.getTextContentSize())&&(i=i.getNextSibling()||i.getParentOrThrow().getNextSibling(),R(i)&&!i.canExtractContents()))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{var o=r.type==="text"?r.getNode():null;if(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){El(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)){El(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),Jo(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 dn(t){return t instanceof er}function wl(t){let e=t.offset;return t.type==="text"?e:(t=t.getNode(),e===t.getChildrenSize()?t.getTextContent().length:0)}function nr(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]:[wl(e),wl(t)]}function El(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 Nl(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=Rt(i[r]),L(i))r=l?i.getTextContentSize():0;else{if(o=Rt(t),o===null)return null;if(R(o)?(t=o.getChildAtIndex(r),(e=R(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&&ne(o)&&Rt(t)===o?r:r+1,o=o.getParentOrThrow()),R(o))return new Fe(o.__key,r,"element")}}else i=Rt(t);return L(i)?new Fe(i.__key,r,"text"):null}function Tl(t,e,n){var r=t.offset,i=t.getNode();r===0?(r=i.getPreviousSibling(),i=i.getParent(),e?(n||!e)&&r===null&&R(i)&&i.isInline()&&(e=i.getPreviousSibling(),L(e)&&(t.key=e.__key,t.offset=e.getTextContent().length)):R(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&&R(r)&&r.isInline()?(t.key=r.__key,t.offset=0,t.type="element"):(n||e)&&r===null&&R(i)&&i.isInline()&&!i.canInsertTextAfter()&&(e=i.getNextSibling(),L(e)&&(t.key=e.__key,t.offset=0)))}function Sl(t,e,n){if(t.type==="text"&&e.type==="text"){var r=t.isBefore(e);let i=t.is(e);Tl(t,r,i),Tl(e,!r,i),i&&(e.key=t.key,e.offset=t.offset,e.type=t.type),r=le(),r.isComposing()&&r._compositionKey!==t.key&&B(n)&&(r=n.anchor,n=n.focus,qe(t,r.key,r.offset,r.type),qe(e,n.key,n.offset,n.type))}}function bl(t,e,n,r,i,o){return t===null||n===null||!Wn(i,t,n)||(e=Nl(t,e,B(o)?o.anchor:null),e===null)||(r=Nl(n,r,B(o)?o.focus:null),r===null||e.type==="element"&&r.type==="element"&&(t=Rt(t),n=Rt(n),ne(t)&&ne(n)))?null:(Sl(e,r,o),[e,r])}function Ol(t){return R(t)&&!t.isInline()}function Rl(t,e,n,r,i,o){let l=ze();return t=new $t(new Fe(t,e,i),new Fe(n,r,o),0),t.dirty=!0,l._selection=t}function Al(){return new er(new Set)}function _d(t){let e=t.getEditorState()._selection,n=window.getSelection();return dn(e)||ui(e)?e.clone():Ml(e,n,t)}function Ml(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=!Wr&&(r||o==="beforeinput"||o==="compositionstart"||o==="compositionend"||o==="click"&&i&&i.detail===3||o===void 0);let l;if(!B(t)||i){if(e===null)return null;if(i=e.anchorNode,o=e.focusNode,l=e.anchorOffset,e=e.focusOffset,r&&B(t)&&!Wn(n,i,o))return t.clone()}else return t.clone();if(n=bl(i,l,o,e,n,t),n===null)return null;let[s,a]=n;return new $t(s,a,B(t)?t.format:0)}function Z(){return ze()._selection}function un(){return le()._editorState._selection}function rr(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"),$l(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")),$l(t)}}function $l(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())R(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(R(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"))}R(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 vd(t,e){if(e=e.getEditorState()._selection,t=t._selection,B(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 ir(t,e,n,r,i){let o=null,l=0,s=null;r!==null?(o=r.__key,L(r)?(l=r.getTextContentSize(),s="text"):R(r)&&(l=r.getChildrenSize(),s="element")):i!==null&&(o=i.__key,L(i)?s="text":R(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 Ll(t,e,n,r,i){t.type==="text"?(t.key=n,e||(t.offset+=i)):t.offset>r.getIndexWithinParent()&&--t.offset}let ve=null,fe=null,oe=!1,gi=!1,gn=0;function Se(){oe&&$(13)}function ze(){return ve===null&&$(15),ve}function le(){return fe===null&&$(16),fe}function Dl(t,e,n){var r=e.__type;let i=t._nodes.get(r);for(i===void 0&&$(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 yd(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()&&ll(e)}function kd(t,e){let n=e._dirtyLeaves,r=e._dirtyElements;t=t._nodeMap;let i=Je(),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 u of l)l=t.get(u),L(l)&&l.isAttached()&&l.isSimpleText()&&!l.isUnmergeable()&&ll(l),l!==void 0&&l!==void 0&&l.__key!==i&&l.isAttached()&&Dl(e,l,o),n.add(u);if(l=e._dirtyLeaves,s=l.size,0<s){gn++;continue}}e._dirtyLeaves=new Set,e._dirtyElements=new Map;for(let u of a)a=u[0],c=u[1],(a==="root"||c)&&(l=t.get(a),l!==void 0&&l!==void 0&&l.__key!==i&&l.isAttached()&&Dl(e,l,o),r.set(a,c));l=e._dirtyLeaves,s=l.size,a=e._dirtyElements,c=a.size,gn++}e._dirtyLeaves=n,e._dirtyElements=r}function fi(t,e){var n=e.get(t.type);if(n===void 0&&$(17),n=n.klass,t.type!==n.getType()&&$(18),n=n.importJSON(t),t=t.children,R(n)&&Array.isArray(t))for(let r=0;r<t.length;r++){let i=fi(t[r],e);n.append(i)}return n}function Il(t,e){let n=ve,r=oe,i=fe;ve=t,oe=!0,fe=null;try{return e()}finally{ve=n,oe=r,fe=i}}function gt(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=ve,c=oe,u=fe,d=t._updating,g=t._observer,m=null;if(t._pendingEditorState=null,t._editorState=e,!r&&s&&g!==null){fe=t,ve=e,oe=!1,t._updating=!0;try{var h=t._dirtyType,_=t._dirtyElements,C=t._dirtyLeaves;g.disconnect(),we=We=ge="",al=h===2,Xn=null,Ee=t,ut=t._config,en=t._nodes,Jn=Ee._listeners.mutation,ei=_,ti=C,tn=i._nodeMap,At=e._nodeMap,qr=e._readOnly,ni=new Map(t._keyToDOMMap);var T=new Map;nn=T,on("root",null),nn=ni=ut=At=tn=ti=ei=en=Ee=void 0,m=T}catch(ee){if(ee instanceof Error&&t._onError(ee),gi)throw ee;Kl(t,null,n,e),Uo(t),t._dirtyType=2,gi=!0,gt(t),gi=!1;return}finally{g.observe(n,{characterData:!0,childList:!0,subtree:!0}),t._updating=d,ve=a,oe=c,fe=u}}e._readOnly||(e._readOnly=!0),d=t._dirtyLeaves,g=t._dirtyElements,T=t._normalizedNodes,h=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(re in _)p.has(re)||(_===C&&(_=jo(t)),delete _[re]);if(r=r?null:window.getSelection(),t._editable&&r!==null&&(s||l===null||l.dirty)){fe=t,ve=e;try{e:{let ee=r.anchorNode,ce=r.focusNode,jt=r.anchorOffset,ie=r.focusOffset,de=document.activeElement;if(!h.has("collaboration")||de===n)if(B(l)){var v=l.anchor,N=l.focus,k=v.key,E=N.key,O=jn(t,k),D=jn(t,E),A=v.offset,U=N.offset,P=l.format,H=l.isCollapsed();s=O,E=D;var re=!1;if(v.type==="text"&&(s=Vn(O),re=v.getNode().getFormat()!==P),N.type==="text"&&(E=Vn(D)),s!==null&&E!==null){if(H&&(o===null||re||B(o)&&o.format!==P)){var q=performance.now();ml=[P,A,k,q]}if(jt===A&&ie===U&&ee===s&&ce===E&&(r.type!=="Range"||!H)&&(n===null||de!==null&&n.contains(de)||n.focus({preventScroll:!0}),!Kn&&!Hn||v.type!=="element"))break e;try{if(r.setBaseAndExtent(s,A,E,U),l.isCollapsed()&&n!==null&&n===de){let Ce=v.getNode();if(R(Ce)){let ue=Ce.getDescendantByIndex(v.offset);ue!==null&&(Ce=ue)}let Pe=t.getElementByKey(Ce.__key);if(Pe!==null){let ue=Pe.getBoundingClientRect();if(ue.bottom>Zn(t).innerHeight)Pe.scrollIntoView(!1);else if(0>ue.top)Pe.scrollIntoView();else{let Rr=n.getBoundingClientRect();Math.floor(ue.bottom)>Math.floor(Rr.bottom)?Pe.scrollIntoView(!1):Math.floor(ue.top)<Math.floor(Rr.top)&&Pe.scrollIntoView()}h.add("scroll-into-view")}}si=!0}catch{}}}else o!==null&&Wn(t,ee,ce)&&r.removeAllRanges()}}finally{fe=u,ve=a}}if(m!==null)for(n=m,o=Array.from(t._listeners.mutation),l=o.length,a=0;a<l;a++){let[ee,ce]=o[a];u=n.get(ce),u!==void 0&&ee(u,{dirtyLeaves:d,updateTags:h})}if(n=t._pendingDecorators,n!==null&&(t._decorators=n,t._pendingDecorators=null,fn("decorator",t,!0,n)),n=Zo(i),o=Zo(e),n!==o&&fn("textcontent",t,!0,o),fn("update",t,!0,{dirtyElements:g,dirtyLeaves:d,editorState:e,normalizedNodes:T,prevEditorState:i,tags:h}),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[ee,ce]=e;Fl(t,ee,ce)}}}function fn(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||fe!==t){let o=!1;return t.update(()=>{o=M(t,e,n)}),o}let r=jr(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 Pl(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 Fl(t,e,n){let r=t._updateTags;var i=!1;if(n!==void 0){var o=n.onUpdate;i=n.tag,i!=null&&r.add(i),i=n.skipTransforms||!1}o&&t._deferred.push(o),n=t._editorState,o=t._pendingEditorState;let l=!1;(o===null||o._readOnly)&&(o=t._pendingEditorState=new lr(new Map(n._nodeMap)),l=!0);let s=ve,a=oe,c=fe,u=t._updating;ve=o,oe=!1,t._updating=!0,fe=t;try{l&&!t._headless&&(o._selection=_d(t));let d=t._compositionKey;e(),i=Pl(t,i),vd(o,t),t._dirtyType!==0&&(i?yd(o,t):kd(o,t),Pl(t),sd(n,o,t._dirtyLeaves,t._dirtyElements)),d!==t._compositionKey&&(o._flushSync=!0);let g=o._selection;if(B(g)){let m=o._nodeMap,h=g.focus.key;m.get(g.anchor.key)!==void 0&&m.get(h)!==void 0||$(19)}else dn(g)&&g._nodes.size===0&&(o._selection=null)}catch(d){d instanceof Error&&t._onError(d),t._pendingEditorState=n,t._dirtyType=2,t._cloneNotNeeded.clear(),t._dirtyLeaves=new Set,t._dirtyElements.clear(),gt(t);return}finally{ve=s,oe=a,fe=c,t._updating=u,gn=0}t._dirtyType!==0||Cd(o,t)?o._flushSync?(o._flushSync=!1,gt(t)):l&&rd(()=>{gt(t)}):(o._flushSync=!1,l&&(r.clear(),t._deferred=[],t._pendingEditorState=null))}function be(t,e,n){t._updating?t._updates.push([e,n]):Fl(t,e,n)}function hi(t,e,n){Se();var r=t.__key;let i=t.getParent();if(i!==null){var o=ld(t),l=!1;if(B(o)&&e){var s=o.anchor;let a=o.focus;s.key===r&&(ir(s,t,i,t.getPreviousSibling(),t.getNextSibling()),l=!0),a.key===r&&(ir(a,t,i,t.getPreviousSibling(),t.getNextSibling()),l=!0)}s=i.getWritable().__children,r=s.indexOf(r),r===-1&&$(31),bt(t),s.splice(r,1),t.getWritable().__parent=null,B(o)&&e&&!l&&rr(o,i,r,-1),n||Qe(i)||i.canBeEmpty()||!i.isEmpty()||hi(i,e),Be(i)&&i.isEmpty()&&i.selectEnd()}}function zl(t){return t=j(t),t===null&&$(63),t}class or{static getType(){$(64)}static clone(){$(65)}constructor(e){if(this.__type=this.constructor.getType(),this.__parent=null,e!=null)this.__key=e;else{Se(),99<gn&&$(14),e=le();var n=ze(),r=""+nd++;n._nodeMap.set(r,this),R(this)?e._dirtyElements.set(r,!0):e._dirtyLeaves.add(r),e._cloneNotNeeded.add(r),e._dirtyType=1,this.__key=r}}getType(){return this.__type}isAttached(){for(var e=this.__key;e!==null;){if(e==="root")return!0;if(e=j(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:B(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:j(e)}getParentOrThrow(){let e=this.getParent();return e===null&&$(66),e}getTopLevelElement(){let e=this;for(;e!==null;){let n=e.getParent();if(Qe(n))return e;e=n}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return e===null&&$(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:j(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=>zl(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:j(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=>zl(r))}getCommonAncestor(e){let n=this.getParents();var r=e.getParents();R(this)&&n.unshift(this),R(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=R(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&&$(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=le()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){let e=j(this.__key);return e===null&&$(69),e}getWritable(){Se();var e=ze(),n=le();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)?(St(i),i):(l=i.constructor.clone(i),l.__parent=o,R(i)&&R(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,St(l),e.set(r,l),l)}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(){$(70)}updateDOM(){$(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){$(72)}static importJSON(){$(18)}remove(e){hi(this,!0,e)}replace(e){Se();let n=this.__key;e=e.getWritable(),Yn(e);var r=this.getParentOrThrow(),i=r.getWritable().__children;let o=i.indexOf(this.__key),l=e.__key;return o===-1&&$(31),i.splice(o,0,l),e.__parent=r.__key,hi(this,!1),bt(e),i=Z(),B(i)&&(r=i.anchor,i=i.focus,r.key===n&&kl(r,e),i.key===n&&kl(i,e)),Je()===n&&pe(l),e}insertAfter(e){Se();var n=this.getWritable(),r=e.getWritable(),i=r.getParent();let o=Z();var l=e.getIndexWithinParent(),s=!1,a=!1;i!==null&&(Yn(r),B(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&&$(31),c.splice(n+1,0,i),bt(r),B(o)&&(rr(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){var n=this.getWritable(),r=e.getWritable();Yn(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&&$(31),l.splice(n,0,o),bt(r),r=Z(),B(r)&&rr(r,i,n),e}selectPrevious(e,n){Se();let r=this.getPreviousSibling(),i=this.getParentOrThrow();return r===null?i.select(0,0):R(r)?r.select():L(r)?r.select(e,n):(e=r.getIndexWithinParent()+1,i.select(e,e))}selectNext(e,n){Se();let r=this.getNextSibling(),i=this.getParentOrThrow();return r===null?i.select():R(r)?r.select(0,0):L(r)?r.select(e,n):(e=r.getIndexWithinParent(),i.select(e,e))}markDirty(){this.getWritable()}}class Bl extends or{constructor(e){super(e)}decorate(){$(47)}isIsolated(){return!1}isInline(){return!0}}function ne(t){return t instanceof Bl}class ft extends or{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 Xc[e]||""}getIndent(){return this.getLatest().__indent}getChildren(){let e=this.getLatest().__children,n=[];for(let r=0;r<e.length;r++){let i=j(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=le()._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=j(n[i]);L(r)?e.push(r):R(r)&&(r=r.getAllTextNodes(),e.push(...r))}return e}getFirstDescendant(){let e=this.getFirstChild();for(;e!==null;){if(R(e)){let n=e.getFirstChild();if(n!==null){e=n;continue}}break}return e}getLastDescendant(){let e=this.getLastChild();for(;e!==null;){if(R(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],R(e)&&e.getLastDescendant()||e||null):(e=n[e],R(e)&&e.getFirstDescendant()||e||null)}getFirstChild(){let e=this.getLatest().__children;return e.length===0?null:j(e[0])}getFirstChildOrThrow(){let e=this.getFirstChild();return e===null&&$(45),e}getLastChild(){let e=this.getLatest().__children,n=e.length;return n===0?null:j(e[n-1])}getLastChildOrThrow(){let e=this.getLastChild();if(e===null)throw Error(`Expected node ${this.__key} to have a last child.`);return e}getChildAtIndex(e){return e=this.getLatest().__children[e],e===void 0?null:j(e)}getTextContent(){let e="",n=this.getChildren(),r=n.length;for(let i=0;i<r;i++){let o=n[i];e+=o.getTextContent(),R(o)&&i!==r-1&&!o.isInline()&&(e+=`
|
|
26
26
|
|
|
27
|
-
`)}return e}getDirection(){return this.getLatest().__dir}hasFormat(e){return e!==""?(e=Bo[e],(this.getFormat()&e)!==0):!1}select(e,n){
|
|
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:wd,priority:0}}}}static importJSON(){return fn()}exportJSON(){return{type:"linebreak",version:1}}}function wd(){return{node:fn()}}function fn(){return new It}function pn(t){return t instanceof It}function fi(t,e){return e&16?"code":e&32?"sub":e&64?"sup":null}function pi(t,e){return e&1?"strong":e&2?"em":"span"}function mi(t,e,n,r,i){t=r.classList,r=Gn(i,"base"),r!==void 0&&t.add(...r),r=Gn(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 ut)s=ut[a],r=Gn(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 xi(t,e,n){let r=e.firstChild;if(n=n.isComposing(),t+=n?Un:"",r==null)e.textContent=t;else if(e=r.nodeValue,e!==t)if(n||dt){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 Pt extends or{static getType(){return"text"}static clone(e){return new Pt(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 qc[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===Je()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return(this.getLatest().__detail&1)!==0}isUnmergeable(){return(this.getLatest().__detail&2)!==0}hasFormat(e){return e=ut[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 Vo(r,e,n)}createDOM(e){var n=this.__format,r=fi(this,n);let i=pi(this,n),o=document.createElement(r===null?i:r),l=o;return r!==null&&(l=document.createElement(i),o.appendChild(l)),r=l,xi(this.__text,r,this),e=e.theme.text,e!==void 0&&mi(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=fi(this,o);let a=fi(this,l);var c=pi(this,o);let u=pi(this,l);return(s===null?c:s)!==(a===null?u:a)?!0:s===a&&c!==u?(o=n.firstChild,o==null&&A(48),e=s=document.createElement(u),xi(i,e,this),r=r.theme.text,r!==void 0&&mi(u,0,l,e,r),n.replaceChild(s,o),!1):(c=n,a!==null&&s!==null&&(c=n.firstChild,c==null&&A(49)),xi(i,c,this),r=r.theme.text,r!==void 0&&o!==l&&mi(u,o,l,c,r),l=this.__style,e.__style!==l&&(n.style.cssText=l),!1)}static importDOM(){return{"#text":()=>({conversion:Td,priority:0}),b:()=>({conversion:Nd,priority:0}),code:()=>({conversion:mn,priority:0}),em:()=>({conversion:mn,priority:0}),i:()=>({conversion:mn,priority:0}),span:()=>({conversion:Ed,priority:0}),strong:()=>({conversion:mn,priority:0}),u:()=>({conversion:mn,priority:0})}}static importJSON(e){let n=we(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"?ut[e]:e,n}setDetail(e){let n=this.getWritable();return n.__detail=typeof e=="string"?Jc[e]:e,n}setStyle(e){let n=this.getWritable();return n.__style=e,n}toggleFormat(e){return e=ut[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=Qc[e];let n=this.getWritable();return n.__mode=e,n}setTextContent(e){let n=this.getWritable();return n.__text=e,n}select(e,n){Te();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=Je(),i!==r.anchor.key&&i!==r.focus.key||he(o),r.setTextNodeRange(this,e,this,n);else return Ol(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){Te();var n=this.getLatest(),r=n.getTextContent(),i=n.__key,o=Je(),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 u=e[0];r=n.getParentOrThrow(),c=r.__key;let d=n.getFormat(),g=n.getStyle(),p=n.__detail;s=!1,n.isSegmented()?(a=we(u),a.__parent=c,a.__format=d,a.__style=g,a.__detail=p,s=!0):(a=n.getWritable(),a.__text=u),n=Z(),a=[a],u=u.length;for(let k=1;k<l;k++){var f=e[k],v=f.length;f=we(f).getWritable(),f.__format=d,f.__style=g,f.__detail=p;let T=f.__key;if(v=u+v,H(n)){let _=n.anchor,m=n.focus;_.key===i&&_.type==="text"&&_.offset>u&&_.offset<=v&&(_.key=T,_.offset-=u,n.dirty=!0),m.key===i&&m.type==="text"&&m.offset>u&&m.offset<=v&&(m.key=T,m.offset-=u,n.dirty=!0)}o===i&&he(T),u=v,f.__parent=c,a.push(f)}return Mt(this),o=r.getWritable().__children,i=o.indexOf(i),e=a.map(k=>k.__key),s?(o.splice(i,0,...e),this.remove()):o.splice(i,1,...e),H(n)&&rr(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;Je()===i&&he(r);let s=Z();if(H(s)){let a=s.anchor,c=s.focus;a!==null&&a.key===i&&(Ll(a,n,r,e,l),s.dirty=!0),c!==null&&c.key===i&&(Ll(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 Ed(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)&&(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 Nd(t){let e=t.style.fontWeight==="normal";return{forChild:n=>($(n)&&!e&&n.toggleFormat("bold"),n),node:null}}function Td(t,e,n){return t=t.textContent||"",!n&&/\n/.test(t)&&(t=t.replace(/\r?\n/gm," "),t.trim().length===0)?{node:null}:{node:we(t)}}let Sd={code:"code",em:"italic",i:"italic",strong:"bold",u:"underline"};function mn(t){let e=Sd[t.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:n=>($(n)&&n.toggleFormat(e),n),node:null}}function we(t=""){return new Pt(t)}function $(t){return t instanceof Pt}class Ft extends ft{static getType(){return"paragraph"}static clone(e){return new Ft(e.__key)}createDOM(e){let n=document.createElement("p");return e=Gn(e.theme,"paragraph"),e!==void 0&&n.classList.add(...e),n}updateDOM(){return!1}static importDOM(){return{p:()=>({conversion:bd,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=zt();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=zt(),n=this.getDirection();return e.setDirection(n),this.insertAfter(e),e}collapseAtStart(){let e=this.getChildren();if(e.length===0||$(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 bd(){return{node:zt()}}function zt(){return new Ft}function Kl(t,e,n,r){let i=t._keyToDOMMap;i.clear(),t._editorState=hi(),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 Md(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 Od{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=Xo(),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),id(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 R(this,e,n)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){let n=this._rootElement;if(e!==n){var r=this._pendingEditorState||this._editorState;if(this._rootElement=e,Kl(this,n,e,r),n!==null&&!this._config.disableEvents){if(sn!==0&&(sn--,sn===0&&n.ownerDocument.removeEventListener("selectionchange",yl)),r=n.__lexicalEditor,r!=null){if(r._parentEditor!==null){var i=Yr(r);i=i[i.length-1]._key,$t.get(i)===r&&$t.delete(i)}else $t.delete(r._key);n.__lexicalEditor=null}for(r=vl(n),i=0;i<r.length;i++)r[i]();n.__lexicalEventHandles=[]}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,Uo(this),this._updateTags.add("history-merge"),ht(this),this._config.disableEvents||xd(e,this)):this._window=null,hn("root",this,!1,e,n)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&A(38),Ko(this);let r=this._pendingEditorState,i=this._updateTags;n=n!==void 0?n.tag:null,r===null||r.isEmpty()||(n!=null&&i.add(n),ht(this)),this._pendingEditorState=e,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,n!=null&&i.add(n),ht(this)}parseEditorState(e,n){e=typeof e=="string"?JSON.parse(e):e;let r=hi(),i=xe,o=re,l=ce,s=this._dirtyElements,a=this._dirtyLeaves,c=this._cloneNotNeeded,u=this._dirtyType;this._dirtyElements=new Map,this._dirtyLeaves=new Set,this._cloneNotNeeded=new Set,this._dirtyType=0,xe=r,re=!1,ce=this;try{ui(e.root,this._nodes),n&&n(),r._readOnly=!0}finally{this._dirtyElements=s,this._dirtyLeaves=a,this._cloneNotNeeded=c,this._dirtyType=u,xe=i,re=o,ce=l}return r}update(e,n){Se(this,e,n)}focus(e,n={}){let r=this._rootElement;r!==null&&(r.setAttribute("autocapitalize","off"),Se(this,()=>{let i=Z(),o=Xe();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=window.getSelection(),e!==null&&e.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,hn("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}class Ul extends ft{constructor(e,n){super(n),this.__colSpan=e}exportJSON(){return{...super.exportJSON(),colSpan:this.__colSpan}}}function Wl(t){return t instanceof Ul}class Vl extends ft{}function Yl(t){return t instanceof Vl}class Gl extends ft{}function jl(t){return t instanceof Gl}S.$addUpdateTag=function(t){Te(),ie()._updateTags.add(t)},S.$createLineBreakNode=fn,S.$createNodeSelection=Rl,S.$createParagraphNode=zt,S.$createRangeSelection=function(){let t=new Fe("root",0,"element"),e=new Fe("root",0,"element");return new Lt(t,e,0)},S.$createTextNode=we,S.$getDecoratorNode=tl,S.$getNearestNodeFromDOMNode=qt,S.$getNodeByKey=j,S.$getPreviousSelection=un,S.$getRoot=Xe,S.$getSelection=Z,S.$hasAncestor=Jr,S.$insertNodes=function(t,e){let n=Z();return n===null&&(n=Xe().selectEnd()),n.insertNodes(t,e)},S.$isDecoratorNode=ne,S.$isElementNode=M,S.$isInlineElementOrDecoratorNode=function(t){return M(t)&&t.isInline()||ne(t)&&t.isInline()},S.$isLeafNode=Yo,S.$isLineBreakNode=pn,S.$isNodeSelection=dn,S.$isParagraphNode=function(t){return t instanceof Ft},S.$isRangeSelection=H,S.$isRootNode=Be,S.$isRootOrShadowRoot=Qe,S.$isTextNode=$,S.$nodesOfType=function(t){var e=ze();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},S.$parseSerializedNode=function(t){return ui(t,ie()._nodes)},S.$setCompositionKey=he,S.$setSelection=Ot,S.BLUR_COMMAND=Fo,S.CAN_REDO_COMMAND={},S.CAN_UNDO_COMMAND={},S.CLEAR_EDITOR_COMMAND={},S.CLEAR_HISTORY_COMMAND={},S.CLICK_COMMAND=ko,S.COMMAND_PRIORITY_CRITICAL=4,S.COMMAND_PRIORITY_EDITOR=0,S.COMMAND_PRIORITY_HIGH=3,S.COMMAND_PRIORITY_LOW=1,S.COMMAND_PRIORITY_NORMAL=2,S.CONTROLLED_TEXT_INSERTION_COMMAND=Tt,S.COPY_COMMAND=Br,S.CUT_COMMAND=Hr,S.DELETE_CHARACTER_COMMAND=Zt,S.DELETE_LINE_COMMAND=Qt,S.DELETE_WORD_COMMAND=Xt,S.DEPRECATED_$createGridSelection=function(){let t=new Fe("root",0,"element"),e=new Fe("root",0,"element");return new tr("root",t,e)},S.DEPRECATED_$isGridCellNode=Wl,S.DEPRECATED_$isGridNode=Yl,S.DEPRECATED_$isGridRowNode=jl,S.DEPRECATED_$isGridSelection=ci,S.DEPRECATED_GridCellNode=Ul,S.DEPRECATED_GridNode=Vl,S.DEPRECATED_GridRowNode=Gl,S.DRAGEND_COMMAND=Io,S.DRAGOVER_COMMAND=Do,S.DRAGSTART_COMMAND=Lo,S.DROP_COMMAND=$o,S.DecoratorNode=Bl,S.ElementNode=ft,S.FOCUS_COMMAND=Po,S.FORMAT_ELEMENT_COMMAND={},S.FORMAT_TEXT_COMMAND=Ze,S.INDENT_CONTENT_COMMAND={},S.INSERT_LINE_BREAK_COMMAND=Jt,S.INSERT_PARAGRAPH_COMMAND=Dr,S.KEY_ARROW_DOWN_COMMAND=So,S.KEY_ARROW_LEFT_COMMAND=Eo,S.KEY_ARROW_RIGHT_COMMAND=Co,S.KEY_ARROW_UP_COMMAND=To,S.KEY_BACKSPACE_COMMAND=Mo,S.KEY_DELETE_COMMAND=Ro,S.KEY_ENTER_COMMAND=Bn,S.KEY_ESCAPE_COMMAND=Oo,S.KEY_MODIFIER_COMMAND=zo,S.KEY_SPACE_COMMAND=bo,S.KEY_TAB_COMMAND=Ao,S.LineBreakNode=It,S.MOVE_TO_END=wo,S.MOVE_TO_START=No,S.OUTDENT_CONTENT_COMMAND={},S.PASTE_COMMAND=Ir,S.ParagraphNode=Ft,S.REDO_COMMAND=zr,S.REMOVE_TEXT_COMMAND=Pr,S.RootNode=Dt,S.SELECTION_CHANGE_COMMAND=yo,S.TextNode=Pt,S.UNDO_COMMAND=Fr,S.VERSION="0.4.1",S.createCommand=function(){return{}},S.createEditor=function(t){var e=t||{},n=ce,r=e.theme||{};let i=t===void 0?n:e.parentEditor||null,o=e.disableEvents||!1,l=hi(),s=e.namespace||(i!==null?i._config.namespace:Xo()),a=e.editorState,c=[Dt,Pt,It,Ft,...e.nodes||[]],u=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 d=c[n],g=d.getType();t.set(g,{klass:d,transforms:new Set})}return r=new Od(l,i,t,{disableEvents:o,namespace:s,theme:r},u||console.error,Md(t),e),a!==void 0&&(r._pendingEditorState=a,r._dirtyType=2),r};var w=S,Zl=ge,xn=w,sr=b.default,Rd=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?sr.useLayoutEffect:sr.useEffect;let ar={tag:"history-merge"};function Ad(t,e){if(e!==null){if(e===void 0)t.update(()=>{var n=xn.$getRoot();if(n.isEmpty()){let r=xn.$createParagraphNode();n.append(r),n=document.activeElement,(xn.$getSelection()!==null||n!==null&&n===t.getRootElement())&&r.select()}},ar);else if(e!==null)switch(typeof e){case"string":let n=t.parseEditorState(e);t.setEditorState(n,ar);break;case"object":t.setEditorState(e,ar);break;case"function":t.update(()=>{xn.$getRoot().isEmpty()&&e(t)},ar)}}}xo.LexicalComposer=function({initialConfig:t,children:e}){let n=sr.useMemo(()=>{const{theme:r,namespace:i,editor__DEPRECATED:o,nodes:l,onError:s,editorState:a}=t,c=Zl.createLexicalComposerContext(null,r);let u=o||null;if(u===null){const d=xn.createEditor({editable:!1,namespace:i,nodes:l,onError:g=>s(g,d),theme:r});Ad(d,a),u=d}return[u,c]},[]);return Rd(()=>{let r=t.editable,[i]=n;i.setEditable(r!==void 0?r:!0)},[]),sr.createElement(Zl.LexicalComposerContext.Provider,{value:n},e)};var $d=xo,fe={},be={},_e=w;function Jl(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 Xl(t,e){for(;t!==_e.$getRoot()&&t!=null;){if(e(t))return t;t=t.getParent()}return null}function Ql(t,e,n,r,i){var o=n._nodes.get(t.__type);o===void 0&&Jl(5);for(var l in t){var s=t[l];if(s!=null&&typeof s=="object"&&(s=s.editorState,s!=null)){var a=_e.createEditor({namespace:s.namespace});a._nodes=n._nodes,a._parentEditor=n._parentEditor,a._pendingEditorState=ql(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,_e.$isElementNode(o)){for(r=t.__children,s=0;s<r.length;s++)a=e.get(r[s]),a!==void 0&&(a=Ql(a,e,n,l,i).__key,o.__children.push(a));o.__indent=t.__indent,o.__format=t.__format,o.__dir=t.__dir}else _e.$isTextNode(o)&&(o.__format=t.__format,o.__style=t.__style,o.__mode=t.__mode,o.__detail=t.__detail);return o}function Ld(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{Ql(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 ql(t,e){return e=typeof e=="string"?JSON.parse(e):e,Ld(e,t)}be.$dfs=function(t,e){let n=[];t=(t||_e.$getRoot()).getLatest(),e=e||(_e.$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}),_e.$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},be.$findMatchingParent=Xl,be.$getNearestBlockElementAncestorOrThrow=function(t){return t=Xl(t,e=>_e.$isElementNode(e)&&!e.isInline()),_e.$isElementNode(t)||Jl(4),t},be.$getNearestNodeOfType=function(t,e){for(;t!=null;){if(t instanceof e)return t;t=t.getParent()}return null},be.$insertNodeToNearestRoot=function(t){var e=_e.$getSelection();return _e.$isRangeSelection(e)?e.focus.getNode().getTopLevelElementOrThrow().insertAfter(t):_e.$isNodeSelection(e)||_e.DEPRECATED_$isGridSelection(e)?(e=e.getNodes(),e[e.length-1].getTopLevelElementOrThrow().insertAfter(t)):_e.$getRoot().append(t),e=_e.$createParagraphNode(),t.insertAfter(e),e.select(),t.getLatest()},be.$restoreEditorState=function(t,e){let n=new Map(e._nodeMap),r=t._pendingEditorState;r&&(r._nodeMap=n),t._dirtyType=2,t=e._selection,_e.$setSelection(t===null?null:t.clone())},be.$wrapNodeInElement=function(t,e){return e=e(),t.replace(e),e.append(t),e},be.addClassNamesToElement=function(t,...e){e.forEach(n=>{typeof n=="string"&&t.classList.add(...n.split(" "))})},be.mergeRegister=function(...t){return()=>{t.forEach(e=>e())}},be.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()}}})},be.removeClassNamesFromElement=function(t,...e){e.forEach(n=>{typeof n=="string"&&t.classList.remove(...n.split(" "))})},be.unstable_convertLegacyJSONEditorState=ql;var ve=be,V=w,_n=ve;function vn(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 es(t){let e=1;for(t=t.getParent();t!=null;){if(J(t)){if(t=t.getParent(),K(t)){e++,t=t.getParent();continue}vn(40)}break}return e}function _i(t){t=t.getParent(),K(t)||vn(40);let e=t;for(;e!==null;)e=e.getParent(),K(e)&&(t=e);return t}function ts(t){let e=[];t=t.getChildren().filter(J);for(let n=0;n<t.length;n++){let r=t[n],i=r.getFirstChild();K(i)?e=e.concat(ts(i)):e.push(r)}return e}function Bt(t){return J(t)&&K(t.getFirstChild())}function Dd(t){for(;t.getNextSibling()==null&&t.getPreviousSibling()==null;){let e=t.getParent();if(e==null||!J(t)&&!K(t))break;t=e}t.remove()}function ns(t){return Ae().append(t)}function rs(t,e){return J(t)&&(e.length===0||e.length===1&&t.is(e[0])&&t.getChildrenSize()===0)}function pt(t,e){t.splice(t.getChildrenSize(),0,e)}function is(t,e){if(K(t))return t;let n=t.getPreviousSibling(),r=t.getNextSibling(),i=Ae();return i.setFormat(t.getFormatType()),i.setIndent(t.getIndent()),pt(i,t.getChildren()),K(n)&&e===n.getListType()?(n.append(i),t.remove(),K(r)&&e===r.getListType()&&(pt(n,r.getChildren()),r.remove()),n):K(r)&&e===r.getListType()?(r.getFirstChildOrThrow().insertBefore(i),t.remove(),r):(e=Oe(e),e.append(i),t.replace(e),Me(e),e)}function Me(t,e){(e||t.getChildren()).forEach(n=>{let r=n.getValue();var i=n.getParent(),o=1;i!=null&&(K(i)?o=i.getStart():vn(44)),i=n.getPreviousSiblings();for(let l=0;l<i.length;l++){let s=i[l];J(s)&&!K(s.getFirstChild())&&o++}r!==o&&n.setValue(o)})}function os(t){let e=new Set;t.forEach(n=>{if(!Bt(n)&&!e.has(n.getKey())){var r=n.getParent(),i=n.getNextSibling(),o=n.getPreviousSibling();if(Bt(i)&&Bt(o))o=o.getFirstChild(),K(o)&&(o.append(n),n=i.getFirstChild(),K(n)&&(n=n.getChildren(),pt(o,n),i.remove(),e.add(i.getKey())),Me(o));else if(Bt(i))i=i.getFirstChild(),K(i)&&(o=i.getFirstChild(),o!==null&&o.insertBefore(n),Me(i));else if(Bt(o))i=o.getFirstChild(),K(i)&&(i.append(n),Me(i));else if(K(r)){let l=Ae(),s=Oe(r.getListType());l.append(s),s.append(n),o?o.insertAfter(l):i?i.insertBefore(l):r.append(l)}K(r)&&Me(r)}})}function ls(t){t.forEach(e=>{if(!Bt(e)){var n=e.getParent(),r=n?n.getParent():void 0,i=r?r.getParent():void 0;if(K(i)&&J(r)&&K(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=Ae();let a=Oe(s);o.append(a),e.getPreviousSiblings().forEach(c=>a.append(c)),l=Ae(),s=Oe(s),l.append(s),pt(s,e.getNextSiblings()),r.insertBefore(o),r.insertAfter(l),r.replace(e)}Me(n),Me(i)}}})}function ss(t){var e=V.$getSelection();if(V.$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"?os(r):ls(r))}}class mt extends V.ElementNode{static getType(){return"listitem"}static clone(e){return new mt(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 K(r)&&(Me(r),cs(n,this,null,r)),n.value=this.__value,as(n,e.theme,this),n}updateDOM(e,n,r){let i=this.getParent();return K(i)&&(Me(i),cs(n,this,e,i)),n.value=this.__value,as(n,r.theme,this),!1}static importDOM(){return{li:()=>({conversion:Id,priority:0})}}static importJSON(e){let n=new mt(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(V.$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(K(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=Oe(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();K(n)||vn(39);var r=this.getNextSiblings();if(J(e))return n=super.insertAfter(e),e=e.getParentOrThrow(),K(e)&&Me(e),n;if(K(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=Oe(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(),K(e)&&Me(e))}insertNewAfter(){let e=Ae(this.__checked==null?void 0:!1);return this.insertAfter(e),e}collapseAtStart(e){let n=V.$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?(os([this]),n++):(ls([this]),n--);return this}canIndent(){return!1}insertBefore(e){if(J(e)){let n=this.getParentOrThrow();if(K(n)){let r=this.getNextSiblings();Me(n,r)}}return super.insertBefore(e)}canInsertAfter(e){return J(e)}canReplaceWith(e){return J(e)}canMergeWith(e){return V.$isParagraphNode(e)||J(e)}extractWithChild(e,n){if(!V.$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 as(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=K(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=>K(s))?r.push(...l):i.push(...l)),0<i.length&&_n.removeClassNamesFromElement(t,...i),0<r.length&&_n.addClassNamesToElement(t,...r)}function cs(t,e,n,r){r.getListType()==="check"?K(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 Id(){return{node:Ae()}}function Ae(t){return new mt(void 0,t)}function J(t){return t instanceof mt}class yn extends V.ElementNode{static getType(){return"list"}static clone(e){return new yn(e.__listType||gs[e.__tag],e.__start,e.__key)}constructor(e,n,r){super(r),this.__listType=e=gs[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:us,priority:0}),ul:()=>({conversion:us,priority:0})}}static importJSON(e){let n=Oe(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=Ae();K(n)||(n=V.$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=es(n)-1;let a=e%s.length;var l=s[a];let c=o[n.__tag],u;if(o=o.nested,o!==void 0&&o.list&&(u=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);u!==void 0&&(n=u.split(" "),1<e?r.push(...n):i.push(...n))}0<i.length&&_n.removeClassNamesFromElement(t,...i),0<r.length&&_n.addClassNamesToElement(t,...r)}function Pd(t){let e=[];for(let n=0;n<t.length;n++){let r=t[n];J(r)?(e.push(r),r.getChildren().forEach(i=>{K(i)&&e.push(ns(i))})):e.push(ns(r))}return e}function us(t){t=t.nodeName.toLowerCase();let e=null;return t==="ol"?e=Oe("number"):t==="ul"&&(e=Oe("bullet")),{after:Pd,node:e}}let gs={ol:"number",ul:"bullet"};function Oe(t,e=1){return new yn(t,e)}function K(t){return t instanceof yn}let Fd=V.createCommand(),zd=V.createCommand(),Bd=V.createCommand(),Hd=V.createCommand();fe.$createListItemNode=Ae,fe.$createListNode=Oe,fe.$getListDepth=es,fe.$handleListInsertParagraph=function(){var t=V.$getSelection();if(!V.$isRangeSelection(t)||!t.isCollapsed()||(t=t.anchor.getNode(),!J(t)||t.getTextContent()!==""))return!1;var e=_i(t),n=t.getParent();K(n)||vn(40);let r=n.getParent(),i;if(V.$isRootOrShadowRoot(r))i=V.$createParagraphNode(),e.insertAfter(i);else if(J(r))i=Ae(),r.insertAfter(i);else return!1;if(i.select(),e=t.getNextSiblings(),0<e.length){let o=Oe(n.getListType());V.$isParagraphNode(i)?i.insertAfter(o):(n=Ae(),n.append(o),i.insertAfter(n)),e.forEach(l=>{l.remove(),o.append(l)})}return Dd(t),!0},fe.$isListItemNode=J,fe.$isListNode=K,fe.INSERT_CHECK_LIST_COMMAND=Bd,fe.INSERT_ORDERED_LIST_COMMAND=zd,fe.INSERT_UNORDERED_LIST_COMMAND=Fd,fe.ListItemNode=mt,fe.ListNode=yn,fe.REMOVE_LIST_COMMAND=Hd,fe.indentList=function(){ss("indent")},fe.insertList=function(t,e){t.update(()=>{var n=V.$getSelection();if(V.$isRangeSelection(n)){var r=n.getNodes();n=n.anchor.getNode();var i=n.getParent();if(rs(n,r))r=Oe(e),V.$isRootOrShadowRoot(i)?(n.replace(r),i=Ae(),V.$isElementNode(n)&&(i.setFormat(n.getFormatType()),i.setIndent(n.getIndent())),r.append(i)):J(n)&&(n=n.getParentOrThrow(),pt(r,n.getChildren()),n.replace(r));else for(n=new Set,i=0;i<r.length;i++){var o=r[i];if(V.$isElementNode(o)&&o.isEmpty()&&!n.has(o.getKey()))is(o,e);else if(V.$isLeafNode(o))for(o=o.getParent();o!=null;){let s=o.getKey();if(K(o)){if(!n.has(s)){var l=Oe(e);pt(l,o.getChildren()),o.replace(l),Me(l),n.add(s)}break}else{if(l=o.getParent(),V.$isRootOrShadowRoot(l)&&!n.has(s)){n.add(s),is(o,e);break}o=l}}}}})},fe.outdentList=function(){ss("outdent")},fe.removeList=function(t){t.update(()=>{let e=V.$getSelection();if(V.$isRangeSelection(e)){var n=new Set,r=e.getNodes(),i=e.anchor.getNode();if(rs(i,r))n.add(_i(i));else for(i=0;i<r.length;i++){var o=r[i];V.$isLeafNode(o)&&(o=_n.$getNearestNodeOfType(o,mt),o!=null&&n.add(_i(o)))}for(let l of n){n=l,r=ts(l);for(let s of r)r=V.$createParagraphNode(),pt(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 xt=fe,et={},tt={},vi={},oe={},I=w;let cr=new Map;function dr(t){t=t.getLatest();let e=t.constructor.clone(t);return e.__parent=t.__parent,I.$isElementNode(t)&&I.$isElementNode(e)?(e.__children=Array.from(t.__children),e.__format=t.__format,e.__indent=t.__indent,e.__dir=t.__dir):I.$isTextNode(t)&&I.$isTextNode(e)&&(e.__format=t.__format,e.__style=t.__style,e.__mode=t.__mode,e.__detail=t.__detail),e}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(!I.$isElementNode(t)||!t.excludeFromCopy("clone")){let s=t.getKey(),a=o.get(s),c=a===void 0;if(c&&(a=dr(t),o.set(s,a)),!I.$isTextNode(a)||a.isSegmented()||a.isToken()?I.$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),I.$isRootNode(e)){c&&i.push(s);break}}l=o.get(e.getKey()),l=I.$isElementNode(l)?l.__children.indexOf(t.getKey()):t.getIndexWithinParent(),t=e}}function Kd(t){if(I.$isRangeSelection(t)){var e=t.anchor,n=t.focus;let[a,c]=t.getCharacterOffsets();if(t=t.getNodes(),t.length===0)return{nodeMap:[],range:[]};let u=t.length;var r=t[0],i=r.getParent();if(i!==null&&(!i.canBeEmpty()||I.$isRootNode(i))){var o=i.__children;if(o.length===u){for(var l=!0,s=0;s<o.length;s++)if(o[s]!==t[s].__key){l=!1;break}l&&(u++,t.push(i))}}for(i=t[u-1],e=e.isBefore(n),n=new Map,o=[],l=I.$isTextNode(r)&&u===1,hs(r,e?a:c,l?e?c:a:void 0,!0,o,n),r=0;r<u;r++){s=t[r];let d=s.getKey();if(!(n.has(d)||I.$isElementNode(s)&&s.excludeFromCopy("clone"))){let g=dr(s);I.$isRootNode(s.getParent())&&o.push(s.getKey()),d!=="root"&&n.set(d,g)}}return hs(i,l?void 0:e?c:a,void 0,!1,o,n),{nodeMap:Array.from(n.entries()),range:o}}if(I.DEPRECATED_$isGridSelection(t))return{nodeMap:t.getNodes().map(a=>{const c=a.getKey();return a=dr(a),[c,a]}),range:[t.gridKey]};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.")}function yi(t){let e=cr.get(t);return e===void 0&&(e=fs(t),cr.set(t,e)),e}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 kn(t,e){var n=yi(t.getStyle());e=n?{...n,...e}:e,n="";for(r in e)r&&(n+=`${r}: ${e[r]};`);var r=n;t.setStyle(r),cr.set(r,e)}function ps(t,e,n,r){t.modify(e?"extend":"move",n,r)}function ms(t){return t=t.anchor.getNode(),(I.$isRootNode(t)?t:t.getParentOrThrow()).getDirection()==="rtl"}function Ud(t){for(;t!==null&&!I.$isRootOrShadowRoot(t);){let e=t.getLatest(),n=t.getParent();e.__children.length===0&&t.remove(!0),t=n}}function ur(t,e,n,r,i=null){if(e.length!==0){var o=e[0],l=new Map,s=[];o=I.$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(),I.$isRootOrShadowRoot(o))break}c=new Set;for(var u=0;u<n;u++){var d=e[u];I.$isElementNode(d)&&d.getChildrenSize()===0&&c.add(d.getKey())}var g=new Set;for(u=0;u<n;u++){d=e[u];var p=d.getParent();if(p!==null&&p.isInline()&&(p=p.getParent()),p!==null&&I.$isLeafNode(d)&&!g.has(d.getKey())){if(d=p.getKey(),l.get(d)===void 0){let f=r();f.setFormat(p.getFormatType()),f.setIndent(p.getIndent()),s.push(f),l.set(d,f),p.getChildren().forEach(v=>{f.append(v),g.add(v.getKey())}),Ud(p)}}else c.has(d.getKey())&&(p=r(),p.setFormat(d.getFormatType()),p.setIndent(d.getIndent()),s.push(p),d.remove(!0))}if(i!==null)for(e=0;e<s.length;e++)i.append(s[e]);if(I.$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(e=o.getFirstChild(),I.$isElementNode(e)&&(o=e),e===null)if(i)o.append(i);else for(i=0;i<s.length;i++)o.append(s[i]);else if(i!==null)e.insertBefore(i);else for(o=0;o<s.length;o++)e.insertBefore(s[o]);else if(i)o.insertAfter(i);else for(i=s.length-1;0<=i;i--)o.insertAfter(s[i]);s=I.$getPreviousSelection(),I.$isRangeSelection(s)&&s.anchor.getNode().isAttached()&&s.focus.getNode().isAttached()?I.$setSelection(s.clone()):t.dirty=!0}}function xs(t){for(;t!=null;){if(t.nodeType===Node.TEXT_NODE)return t;t=t.firstChild}return null}function _s(t){let e=t.parentNode;if(e==null)throw Error("Should never happen");return[e,Array.from(e.childNodes).indexOf(t)]}oe.$addNodeStyle=function(t){t=t.getStyle();let e=fs(t);cr.set(t,e)},oe.$cloneContents=function(t){return Kd(t)},oe.$cloneWithProperties=dr,oe.$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))&&I.$isTextNode(a)){s=e;var c=n;if(a=a.getStyle(),a=yi(a),s=a!==null&&a[s]||c,r===null)r=s;else if(r!==s){r="";break}}}return r===null?n:r},oe.$isAtNodeEnd=function(t){return t.type==="text"?t.offset===t.getNode().getTextContentSize():t.offset===t.getNode().getChildrenSize()},oe.$isParentElementRTL=ms,oe.$moveCaretSelection=ps,oe.$moveCharacter=function(t,e,n){let r=ms(t);ps(t,e,n?!r:r,"character")},oe.$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;t=i.getTextContent().length;var a=s.offset,c=l.offset;if(l=(s=l.isBefore(s))?c:a,s=s?a:c,l===i.getTextContentSize()){let u=i.getNextSibling();I.$isTextNode(u)&&(l=c=0,i=u)}if(i.is(o))I.$isTextNode(i)&&(l=c>a?a:c,s=c>a?c:a,l!==s&&(l===0&&s===t?(kn(i,e),i.select(l,s)):(n=i.splitText(l,s),n=l===0?n[0]:n[1],kn(n,e),n.select(0,s-l))));else for(I.$isTextNode(i)&&(l!==0&&(i=i.splitText(l)[1]),kn(i,e)),I.$isTextNode(o)&&(t=o.getTextContent().length,s!==t&&([o]=o.splitText(s)),s!==0&&kn(o,e)),t=1;t<r;t++)a=n[t],c=a.getKey(),I.$isTextNode(a)&&c!==i.getKey()&&c!==o.getKey()&&!a.isToken()&&kn(a,e)}},oe.$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;I.$isTextNode(r)?i="text":I.$isElementNode(r)||r===null||(r=r.getParentOrThrow()),I.$isTextNode(n)?(o="text",l=n.getTextContentSize()):I.$isElementNode(n)||n===null||(n=n.getParentOrThrow()),r&&n&&(e.set(r.getKey(),0,i),t.set(n.getKey(),l,o))},oe.$shouldOverrideDefaultCharacterSelection=function(t,e){return t=I.$getDecoratorNode(t.focus,e),I.$isDecoratorNode(t)&&!t.isIsolated()},oe.$sliceSelectedTextNodeContent=function(t,e){if(e.isSelected()&&!e.isSegmented()&&!e.isToken()&&(I.$isRangeSelection(t)||I.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},oe.$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];I.$isRootOrShadowRoot(a)?(ur(t,l,l.length,e,n),l=[],o=a):o===null||o!==null&&I.$hasAncestor(a,o)?l.push(a):(ur(t,l,l.length,e,n),l=[a])}ur(t,l,l.length,e,n)}},oe.$wrapNodesImpl=ur,oe.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),I.$isTextNode(e)&&(a=xs(a)),I.$isTextNode(r)&&(t=xs(t)),e===void 0||r===void 0||a===null||t===null)return null;a.nodeName==="BR"&&([a,n]=_s(a)),t.nodeName==="BR"&&([t,i]=_s(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},oe.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},oe.getStyleObjectFromCSS=yi,oe.trimTextContentFromAnchor=function(t,e,n){let r=e.getNode();if(I.$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=I.$isElementNode(s)?s.getLastDescendant():s)}let a=r.getTextContent();a===""&&I.$isElementNode(r)&&!r.isInline()&&(a=`
|
|
27
|
+
`)}return e}getDirection(){return this.getLatest().__dir}hasFormat(e){return e!==""?(e=Bo[e],(this.getFormat()&e)!==0):!1}select(e,n){Se();let r=Z();var i=this.getChildrenSize();if(e===void 0&&(e=i),n===void 0&&(n=i),i=this.__key,B(r))r.anchor.set(i,e,"element"),r.focus.set(i,n,"element"),r.dirty=!0;else return Rl(i,e,i,n,"element","element");return r}selectStart(){let e=this.getFirstDescendant();return R(e)||L(e)?e.select(0,0):e!==null?e.selectPrevious():this.select(0,0)}selectEnd(){let e=this.getLastDescendant();return R(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!==""?Bo[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 u=r[c],d=u.getWritable();u.__key===o&&$(76),Yn(d),d.__parent=o,a.push(d.__key)}if((r=this.getChildAtIndex(e-1))&&St(r),(o=this.getChildAtIndex(e+n))&&St(o),e===l.length?(l.push(...a),e=[]):e=l.splice(e,n,...a),e.length&&(n=Z(),B(n))){let c=new Set(e),u=new Set(a);a=m=>{for(m=m.getNode();m;){const h=m.__key;if(c.has(h)&&!u.has(h))return!0;m=m.getParent()}return!1};let{anchor:d,focus:g}=n;for(a(d)&&ir(d,d.getNode(),this,r,o),a(g)&&ir(g,g.getNode(),this,r,o),a=e.length,n=0;n<a;n++)r=j(e[n]),r!=null&&(r.getWritable().__parent=null);l.length!==0||this.canBeEmpty()||Qe(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 R(t){return t instanceof ft}class Lt extends ft{static getType(){return"root"}static clone(){return new Lt}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){$(51)}getTextContent(){let e=this.__cachedText;return!oe&&le()._dirtyType!==0||e===null?super.getTextContent():e}remove(){$(52)}replace(){$(53)}insertBefore(){$(54)}insertAfter(){$(55)}updateDOM(){return!1}append(...e){for(let n=0;n<e.length;n++){let r=e[n];R(r)||ne(r)||$(56)}return super.append(...e)}static importJSON(e){let n=Xe();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}}}function Be(t){return t instanceof Lt}function Cd(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 pi(){return new lr(new Map([["root",new Lt]]))}function Hl(t){let e=t.exportJSON();e.type!==t.constructor.getType()&&$(58);let n=e.children;if(R(t)){Array.isArray(n)||$(59),t=t.getChildren();for(let r=0;r<t.length;r++){let i=Hl(t[r]);n.push(i)}}return e}class lr{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 Il(this,e)}clone(e){return e=new lr(this._nodeMap,e===void 0?this._selection:e),e._readOnly=!0,e}toJSON(){return Il(this,()=>({root:Hl(Xe())}))}}class Dt extends or{static getType(){return"linebreak"}static clone(e){return new Dt(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:wd,priority:0}}}}static importJSON(){return hn()}exportJSON(){return{type:"linebreak",version:1}}}function wd(){return{node:hn()}}function hn(){return new Dt}function pn(t){return t instanceof Dt}function mi(t,e){return e&16?"code":e&32?"sub":e&64?"sup":null}function xi(t,e){return e&1?"strong":e&2?"em":"span"}function _i(t,e,n,r,i){t=r.classList,r=Gn(i,"base"),r!==void 0&&t.add(...r),r=Gn(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 dt)s=dt[a],r=Gn(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 vi(t,e,n){let r=e.firstChild;if(n=n.isComposing(),t+=n?Un:"",r==null)e.textContent=t;else if(e=r.nodeValue,e!==t)if(n||ct){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 It extends or{static getType(){return"text"}static clone(e){return new It(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 qc[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===Je()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return(this.getLatest().__detail&1)!==0}isUnmergeable(){return(this.getLatest().__detail&2)!==0}hasFormat(e){return e=dt[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 Vo(r,e,n)}createDOM(e){var n=this.__format,r=mi(this,n);let i=xi(this,n),o=document.createElement(r===null?i:r),l=o;return r!==null&&(l=document.createElement(i),o.appendChild(l)),r=l,vi(this.__text,r,this),e=e.theme.text,e!==void 0&&_i(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=mi(this,o);let a=mi(this,l);var c=xi(this,o);let u=xi(this,l);return(s===null?c:s)!==(a===null?u:a)?!0:s===a&&c!==u?(o=n.firstChild,o==null&&$(48),e=s=document.createElement(u),vi(i,e,this),r=r.theme.text,r!==void 0&&_i(u,0,l,e,r),n.replaceChild(s,o),!1):(c=n,a!==null&&s!==null&&(c=n.firstChild,c==null&&$(49)),vi(i,c,this),r=r.theme.text,r!==void 0&&o!==l&&_i(u,o,l,c,r),l=this.__style,e.__style!==l&&(n.style.cssText=l),!1)}static importDOM(){return{"#text":()=>({conversion:Td,priority:0}),b:()=>({conversion:Nd,priority:0}),code:()=>({conversion:mn,priority:0}),em:()=>({conversion:mn,priority:0}),i:()=>({conversion:mn,priority:0}),span:()=>({conversion:Ed,priority:0}),strong:()=>({conversion:mn,priority:0}),u:()=>({conversion:mn,priority:0})}}static importJSON(e){let n=Ne(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"?dt[e]:e,n}setDetail(e){let n=this.getWritable();return n.__detail=typeof e=="string"?Jc[e]:e,n}setStyle(e){let n=this.getWritable();return n.__style=e,n}toggleFormat(e){return e=dt[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=Qc[e];let n=this.getWritable();return n.__mode=e,n}setTextContent(e){let n=this.getWritable();return n.__text=e,n}select(e,n){Se();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,B(r))i=Je(),i!==r.anchor.key&&i!==r.focus.key||pe(o),r.setTextNodeRange(this,e,this,n);else return Rl(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&&B(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){Se();var n=this.getLatest(),r=n.getTextContent(),i=n.__key,o=Je(),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 u=e[0];r=n.getParentOrThrow(),c=r.__key;let d=n.getFormat(),g=n.getStyle(),m=n.__detail;s=!1,n.isSegmented()?(a=Ne(u),a.__parent=c,a.__format=d,a.__style=g,a.__detail=m,s=!0):(a=n.getWritable(),a.__text=u),n=Z(),a=[a],u=u.length;for(let C=1;C<l;C++){var h=e[C],_=h.length;h=Ne(h).getWritable(),h.__format=d,h.__style=g,h.__detail=m;let T=h.__key;if(_=u+_,B(n)){let p=n.anchor,v=n.focus;p.key===i&&p.type==="text"&&p.offset>u&&p.offset<=_&&(p.key=T,p.offset-=u,n.dirty=!0),v.key===i&&v.type==="text"&&v.offset>u&&v.offset<=_&&(v.key=T,v.offset-=u,n.dirty=!0)}o===i&&pe(T),u=_,h.__parent=c,a.push(h)}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),B(n)&&rr(n,r,i,l-1),a}mergeWithSibling(e){var n=e===this.getPreviousSibling();n||e===this.getNextSibling()||$(50);var r=this.__key;let i=e.__key,o=this.__text,l=o.length;Je()===i&&pe(r);let s=Z();if(B(s)){let a=s.anchor,c=s.focus;a!==null&&a.key===i&&(Ll(a,n,r,e,l),s.dirty=!0),c!==null&&c.key===i&&(Ll(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 Ed(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 Nd(t){let e=t.style.fontWeight==="normal";return{forChild:n=>(L(n)&&!e&&n.toggleFormat("bold"),n),node:null}}function Td(t,e,n){return t=t.textContent||"",!n&&/\n/.test(t)&&(t=t.replace(/\r?\n/gm," "),t.trim().length===0)?{node:null}:{node:Ne(t)}}let Sd={code:"code",em:"italic",i:"italic",strong:"bold",u:"underline"};function mn(t){let e=Sd[t.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:n=>(L(n)&&n.toggleFormat(e),n),node:null}}function Ne(t=""){return new It(t)}function L(t){return t instanceof It}class Pt extends ft{static getType(){return"paragraph"}static clone(e){return new Pt(e.__key)}createDOM(e){let n=document.createElement("p");return e=Gn(e.theme,"paragraph"),e!==void 0&&n.classList.add(...e),n}updateDOM(){return!1}static importDOM(){return{p:()=>({conversion:bd,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=Ft();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=Ft(),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 bd(){return{node:Ft()}}function Ft(){return new Pt}function Kl(t,e,n,r){let i=t._keyToDOMMap;i.clear(),t._editorState=pi(),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 Od(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 Rd{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=Xo(),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&&$(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&&$(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&&$(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&&$(37);let i=r.transforms;return i.add(n),id(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){var r=this._pendingEditorState||this._editorState;if(this._rootElement=e,Kl(this,n,e,r),n!==null&&!this._config.disableEvents){if(sn!==0&&(sn--,sn===0&&n.ownerDocument.removeEventListener("selectionchange",yl)),r=n.__lexicalEditor,r!=null){if(r._parentEditor!==null){var i=jr(r);i=i[i.length-1]._key,Mt.get(i)===r&&Mt.delete(i)}else Mt.delete(r._key);n.__lexicalEditor=null}for(r=vl(n),i=0;i<r.length;i++)r[i]();n.__lexicalEventHandles=[]}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,Uo(this),this._updateTags.add("history-merge"),gt(this),this._config.disableEvents||xd(e,this)):this._window=null,fn("root",this,!1,e,n)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,n){e.isEmpty()&&$(38),Ko(this);let r=this._pendingEditorState,i=this._updateTags;n=n!==void 0?n.tag:null,r===null||r.isEmpty()||(n!=null&&i.add(n),gt(this)),this._pendingEditorState=e,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,n!=null&&i.add(n),gt(this)}parseEditorState(e,n){e=typeof e=="string"?JSON.parse(e):e;let r=pi(),i=ve,o=oe,l=fe,s=this._dirtyElements,a=this._dirtyLeaves,c=this._cloneNotNeeded,u=this._dirtyType;this._dirtyElements=new Map,this._dirtyLeaves=new Set,this._cloneNotNeeded=new Set,this._dirtyType=0,ve=r,oe=!1,fe=this;try{fi(e.root,this._nodes),n&&n(),r._readOnly=!0}finally{this._dirtyElements=s,this._dirtyLeaves=a,this._cloneNotNeeded=c,this._dirtyType=u,ve=i,oe=o,fe=l}return r}update(e,n){be(this,e,n)}focus(e,n={}){let r=this._rootElement;r!==null&&(r.setAttribute("autocapitalize","off"),be(this,()=>{let i=Z(),o=Xe();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=window.getSelection(),e!==null&&e.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,fn("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}class Ul extends ft{constructor(e,n){super(n),this.__colSpan=e}exportJSON(){return{...super.exportJSON(),colSpan:this.__colSpan}}}function Wl(t){return t instanceof Ul}class Vl extends ft{}function Yl(t){return t instanceof Vl}class Gl extends ft{}function jl(t){return t instanceof Gl}b.$addUpdateTag=function(t){Se(),le()._updateTags.add(t)},b.$createLineBreakNode=hn,b.$createNodeSelection=Al,b.$createParagraphNode=Ft,b.$createRangeSelection=function(){let t=new Fe("root",0,"element"),e=new Fe("root",0,"element");return new $t(t,e,0)},b.$createTextNode=Ne,b.$getDecoratorNode=tl,b.$getNearestNodeFromDOMNode=qt,b.$getNodeByKey=j,b.$getPreviousSelection=un,b.$getRoot=Xe,b.$getSelection=Z,b.$hasAncestor=Qr,b.$insertNodes=function(t,e){let n=Z();return n===null&&(n=Xe().selectEnd()),n.insertNodes(t,e)},b.$isDecoratorNode=ne,b.$isElementNode=R,b.$isInlineElementOrDecoratorNode=function(t){return R(t)&&t.isInline()||ne(t)&&t.isInline()},b.$isLeafNode=Yo,b.$isLineBreakNode=pn,b.$isNodeSelection=dn,b.$isParagraphNode=function(t){return t instanceof Pt},b.$isRangeSelection=B,b.$isRootNode=Be,b.$isRootOrShadowRoot=Qe,b.$isTextNode=L,b.$nodesOfType=function(t){var e=ze();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.$parseSerializedNode=function(t){return fi(t,le()._nodes)},b.$setCompositionKey=pe,b.$setSelection=Ot,b.BLUR_COMMAND=Fo,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=Nt,b.COPY_COMMAND=Kr,b.CUT_COMMAND=Ur,b.DELETE_CHARACTER_COMMAND=Zt,b.DELETE_LINE_COMMAND=Qt,b.DELETE_WORD_COMMAND=Xt,b.DEPRECATED_$createGridSelection=function(){let t=new Fe("root",0,"element"),e=new Fe("root",0,"element");return new tr("root",t,e)},b.DEPRECATED_$isGridCellNode=Wl,b.DEPRECATED_$isGridNode=Yl,b.DEPRECATED_$isGridRowNode=jl,b.DEPRECATED_$isGridSelection=ui,b.DEPRECATED_GridCellNode=Ul,b.DEPRECATED_GridNode=Vl,b.DEPRECATED_GridRowNode=Gl,b.DRAGEND_COMMAND=Io,b.DRAGOVER_COMMAND=Do,b.DRAGSTART_COMMAND=Lo,b.DROP_COMMAND=$o,b.DecoratorNode=Bl,b.ElementNode=ft,b.FOCUS_COMMAND=Po,b.FORMAT_ELEMENT_COMMAND={},b.FORMAT_TEXT_COMMAND=Ze,b.INDENT_CONTENT_COMMAND={},b.INSERT_LINE_BREAK_COMMAND=Jt,b.INSERT_PARAGRAPH_COMMAND=Pr,b.KEY_ARROW_DOWN_COMMAND=So,b.KEY_ARROW_LEFT_COMMAND=Eo,b.KEY_ARROW_RIGHT_COMMAND=Co,b.KEY_ARROW_UP_COMMAND=To,b.KEY_BACKSPACE_COMMAND=Oo,b.KEY_DELETE_COMMAND=Ao,b.KEY_ENTER_COMMAND=Bn,b.KEY_ESCAPE_COMMAND=Ro,b.KEY_MODIFIER_COMMAND=zo,b.KEY_SPACE_COMMAND=bo,b.KEY_TAB_COMMAND=Mo,b.LineBreakNode=Dt,b.MOVE_TO_END=wo,b.MOVE_TO_START=No,b.OUTDENT_CONTENT_COMMAND={},b.PASTE_COMMAND=Fr,b.ParagraphNode=Pt,b.REDO_COMMAND=Hr,b.REMOVE_TEXT_COMMAND=zr,b.RootNode=Lt,b.SELECTION_CHANGE_COMMAND=yo,b.TextNode=It,b.UNDO_COMMAND=Br,b.VERSION="0.4.1",b.createCommand=function(){return{}},b.createEditor=function(t){var e=t||{},n=fe,r=e.theme||{};let i=t===void 0?n:e.parentEditor||null,o=e.disableEvents||!1,l=pi(),s=e.namespace||(i!==null?i._config.namespace:Xo()),a=e.editorState,c=[Lt,It,Dt,Pt,...e.nodes||[]],u=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 d=c[n],g=d.getType();t.set(g,{klass:d,transforms:new Set})}return r=new Rd(l,i,t,{disableEvents:o,namespace:s,theme:r},u||console.error,Od(t),e),a!==void 0&&(r._pendingEditorState=a,r._dirtyType=2),r};var w=b,Zl=he,xn=w,sr=S.default,Ad=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?sr.useLayoutEffect:sr.useEffect;let ar={tag:"history-merge"};function Md(t,e){if(e!==null){if(e===void 0)t.update(()=>{var n=xn.$getRoot();if(n.isEmpty()){let r=xn.$createParagraphNode();n.append(r),n=document.activeElement,(xn.$getSelection()!==null||n!==null&&n===t.getRootElement())&&r.select()}},ar);else if(e!==null)switch(typeof e){case"string":let n=t.parseEditorState(e);t.setEditorState(n,ar);break;case"object":t.setEditorState(e,ar);break;case"function":t.update(()=>{xn.$getRoot().isEmpty()&&e(t)},ar)}}}xo.LexicalComposer=function({initialConfig:t,children:e}){let n=sr.useMemo(()=>{const{theme:r,namespace:i,editor__DEPRECATED:o,nodes:l,onError:s,editorState:a}=t,c=Zl.createLexicalComposerContext(null,r);let u=o||null;if(u===null){const d=xn.createEditor({editable:!1,namespace:i,nodes:l,onError:g=>s(g,d),theme:r});Md(d,a),u=d}return[u,c]},[]);return Ad(()=>{let r=t.editable,[i]=n;i.setEditable(r!==void 0?r:!0)},[]),sr.createElement(Zl.LexicalComposerContext.Provider,{value:n},e)};var $d=xo,me={},Oe={},ye=w;function Jl(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 Xl(t,e){for(;t!==ye.$getRoot()&&t!=null;){if(e(t))return t;t=t.getParent()}return null}function Ql(t,e,n,r,i){var o=n._nodes.get(t.__type);o===void 0&&Jl(5);for(var l in t){var s=t[l];if(s!=null&&typeof s=="object"&&(s=s.editorState,s!=null)){var a=ye.createEditor({namespace:s.namespace});a._nodes=n._nodes,a._parentEditor=n._parentEditor,a._pendingEditorState=ql(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,ye.$isElementNode(o)){for(r=t.__children,s=0;s<r.length;s++)a=e.get(r[s]),a!==void 0&&(a=Ql(a,e,n,l,i).__key,o.__children.push(a));o.__indent=t.__indent,o.__format=t.__format,o.__dir=t.__dir}else ye.$isTextNode(o)&&(o.__format=t.__format,o.__style=t.__style,o.__mode=t.__mode,o.__detail=t.__detail);return o}function Ld(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{Ql(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 ql(t,e){return e=typeof e=="string"?JSON.parse(e):e,Ld(e,t)}Oe.$dfs=function(t,e){let n=[];t=(t||ye.$getRoot()).getLatest(),e=e||(ye.$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}),ye.$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},Oe.$findMatchingParent=Xl,Oe.$getNearestBlockElementAncestorOrThrow=function(t){return t=Xl(t,e=>ye.$isElementNode(e)&&!e.isInline()),ye.$isElementNode(t)||Jl(4),t},Oe.$getNearestNodeOfType=function(t,e){for(;t!=null;){if(t instanceof e)return t;t=t.getParent()}return null},Oe.$insertNodeToNearestRoot=function(t){var e=ye.$getSelection();return ye.$isRangeSelection(e)?e.focus.getNode().getTopLevelElementOrThrow().insertAfter(t):ye.$isNodeSelection(e)||ye.DEPRECATED_$isGridSelection(e)?(e=e.getNodes(),e[e.length-1].getTopLevelElementOrThrow().insertAfter(t)):ye.$getRoot().append(t),e=ye.$createParagraphNode(),t.insertAfter(e),e.select(),t.getLatest()},Oe.$restoreEditorState=function(t,e){let n=new Map(e._nodeMap),r=t._pendingEditorState;r&&(r._nodeMap=n),t._dirtyType=2,t=e._selection,ye.$setSelection(t===null?null:t.clone())},Oe.$wrapNodeInElement=function(t,e){return e=e(),t.replace(e),e.append(t),e},Oe.addClassNamesToElement=function(t,...e){e.forEach(n=>{typeof n=="string"&&t.classList.add(...n.split(" "))})},Oe.mergeRegister=function(...t){return()=>{t.forEach(e=>e())}},Oe.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()}}})},Oe.removeClassNamesFromElement=function(t,...e){e.forEach(n=>{typeof n=="string"&&t.classList.remove(...n.split(" "))})},Oe.unstable_convertLegacyJSONEditorState=ql;var ke=Oe,V=w,_n=ke;function vn(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 es(t){let e=1;for(t=t.getParent();t!=null;){if(J(t)){if(t=t.getParent(),K(t)){e++,t=t.getParent();continue}vn(40)}break}return e}function yi(t){t=t.getParent(),K(t)||vn(40);let e=t;for(;e!==null;)e=e.getParent(),K(e)&&(t=e);return t}function ts(t){let e=[];t=t.getChildren().filter(J);for(let n=0;n<t.length;n++){let r=t[n],i=r.getFirstChild();K(i)?e=e.concat(ts(i)):e.push(r)}return e}function zt(t){return J(t)&&K(t.getFirstChild())}function Dd(t){for(;t.getNextSibling()==null&&t.getPreviousSibling()==null;){let e=t.getParent();if(e==null||!J(t)&&!K(t))break;t=e}t.remove()}function ns(t){return $e().append(t)}function rs(t,e){return J(t)&&(e.length===0||e.length===1&&t.is(e[0])&&t.getChildrenSize()===0)}function ht(t,e){t.splice(t.getChildrenSize(),0,e)}function is(t,e){if(K(t))return t;let n=t.getPreviousSibling(),r=t.getNextSibling(),i=$e();return i.setFormat(t.getFormatType()),i.setIndent(t.getIndent()),ht(i,t.getChildren()),K(n)&&e===n.getListType()?(n.append(i),t.remove(),K(r)&&e===r.getListType()&&(ht(n,r.getChildren()),r.remove()),n):K(r)&&e===r.getListType()?(r.getFirstChildOrThrow().insertBefore(i),t.remove(),r):(e=Ae(e),e.append(i),t.replace(e),Re(e),e)}function Re(t,e){(e||t.getChildren()).forEach(n=>{let r=n.getValue();var i=n.getParent(),o=1;i!=null&&(K(i)?o=i.getStart():vn(44)),i=n.getPreviousSiblings();for(let l=0;l<i.length;l++){let s=i[l];J(s)&&!K(s.getFirstChild())&&o++}r!==o&&n.setValue(o)})}function os(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(),K(o)&&(o.append(n),n=i.getFirstChild(),K(n)&&(n=n.getChildren(),ht(o,n),i.remove(),e.add(i.getKey())),Re(o));else if(zt(i))i=i.getFirstChild(),K(i)&&(o=i.getFirstChild(),o!==null&&o.insertBefore(n),Re(i));else if(zt(o))i=o.getFirstChild(),K(i)&&(i.append(n),Re(i));else if(K(r)){let l=$e(),s=Ae(r.getListType());l.append(s),s.append(n),o?o.insertAfter(l):i?i.insertBefore(l):r.append(l)}K(r)&&Re(r)}})}function ls(t){t.forEach(e=>{if(!zt(e)){var n=e.getParent(),r=n?n.getParent():void 0,i=r?r.getParent():void 0;if(K(i)&&J(r)&&K(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=$e();let a=Ae(s);o.append(a),e.getPreviousSiblings().forEach(c=>a.append(c)),l=$e(),s=Ae(s),l.append(s),ht(s,e.getNextSiblings()),r.insertBefore(o),r.insertAfter(l),r.replace(e)}Re(n),Re(i)}}})}function ss(t){var e=V.$getSelection();if(V.$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"?os(r):ls(r))}}class pt extends V.ElementNode{static getType(){return"listitem"}static clone(e){return new pt(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 K(r)&&(Re(r),cs(n,this,null,r)),n.value=this.__value,as(n,e.theme,this),n}updateDOM(e,n,r){let i=this.getParent();return K(i)&&(Re(i),cs(n,this,e,i)),n.value=this.__value,as(n,r.theme,this),!1}static importDOM(){return{li:()=>({conversion:Id,priority:0})}}static importJSON(e){let n=new pt(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(V.$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(K(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=Ae(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();K(n)||vn(39);var r=this.getNextSiblings();if(J(e))return n=super.insertAfter(e),e=e.getParentOrThrow(),K(e)&&Re(e),n;if(K(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=Ae(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(),K(e)&&Re(e))}insertNewAfter(){let e=$e(this.__checked==null?void 0:!1);return this.insertAfter(e),e}collapseAtStart(e){let n=V.$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?(os([this]),n++):(ls([this]),n--);return this}canIndent(){return!1}insertBefore(e){if(J(e)){let n=this.getParentOrThrow();if(K(n)){let r=this.getNextSiblings();Re(n,r)}}return super.insertBefore(e)}canInsertAfter(e){return J(e)}canReplaceWith(e){return J(e)}canMergeWith(e){return V.$isParagraphNode(e)||J(e)}extractWithChild(e,n){if(!V.$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 as(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=K(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=>K(s))?r.push(...l):i.push(...l)),0<i.length&&_n.removeClassNamesFromElement(t,...i),0<r.length&&_n.addClassNamesToElement(t,...r)}function cs(t,e,n,r){r.getListType()==="check"?K(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 Id(){return{node:$e()}}function $e(t){return new pt(void 0,t)}function J(t){return t instanceof pt}class yn extends V.ElementNode{static getType(){return"list"}static clone(e){return new yn(e.__listType||gs[e.__tag],e.__start,e.__key)}constructor(e,n,r){super(r),this.__listType=e=gs[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:us,priority:0}),ul:()=>({conversion:us,priority:0})}}static importJSON(e){let n=Ae(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=$e();K(n)||(n=V.$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=es(n)-1;let a=e%s.length;var l=s[a];let c=o[n.__tag],u;if(o=o.nested,o!==void 0&&o.list&&(u=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);u!==void 0&&(n=u.split(" "),1<e?r.push(...n):i.push(...n))}0<i.length&&_n.removeClassNamesFromElement(t,...i),0<r.length&&_n.addClassNamesToElement(t,...r)}function Pd(t){let e=[];for(let n=0;n<t.length;n++){let r=t[n];J(r)?(e.push(r),r.getChildren().forEach(i=>{K(i)&&e.push(ns(i))})):e.push(ns(r))}return e}function us(t){t=t.nodeName.toLowerCase();let e=null;return t==="ol"?e=Ae("number"):t==="ul"&&(e=Ae("bullet")),{after:Pd,node:e}}let gs={ol:"number",ul:"bullet"};function Ae(t,e=1){return new yn(t,e)}function K(t){return t instanceof yn}let Fd=V.createCommand(),zd=V.createCommand(),Bd=V.createCommand(),Hd=V.createCommand();me.$createListItemNode=$e,me.$createListNode=Ae,me.$getListDepth=es,me.$handleListInsertParagraph=function(){var t=V.$getSelection();if(!V.$isRangeSelection(t)||!t.isCollapsed()||(t=t.anchor.getNode(),!J(t)||t.getTextContent()!==""))return!1;var e=yi(t),n=t.getParent();K(n)||vn(40);let r=n.getParent(),i;if(V.$isRootOrShadowRoot(r))i=V.$createParagraphNode(),e.insertAfter(i);else if(J(r))i=$e(),r.insertAfter(i);else return!1;if(i.select(),e=t.getNextSiblings(),0<e.length){let o=Ae(n.getListType());V.$isParagraphNode(i)?i.insertAfter(o):(n=$e(),n.append(o),i.insertAfter(n)),e.forEach(l=>{l.remove(),o.append(l)})}return Dd(t),!0},me.$isListItemNode=J,me.$isListNode=K,me.INSERT_CHECK_LIST_COMMAND=Bd,me.INSERT_ORDERED_LIST_COMMAND=zd,me.INSERT_UNORDERED_LIST_COMMAND=Fd,me.ListItemNode=pt,me.ListNode=yn,me.REMOVE_LIST_COMMAND=Hd,me.indentList=function(){ss("indent")},me.insertList=function(t,e){t.update(()=>{var n=V.$getSelection();if(V.$isRangeSelection(n)){var r=n.getNodes();n=n.anchor.getNode();var i=n.getParent();if(rs(n,r))r=Ae(e),V.$isRootOrShadowRoot(i)?(n.replace(r),i=$e(),V.$isElementNode(n)&&(i.setFormat(n.getFormatType()),i.setIndent(n.getIndent())),r.append(i)):J(n)&&(n=n.getParentOrThrow(),ht(r,n.getChildren()),n.replace(r));else for(n=new Set,i=0;i<r.length;i++){var o=r[i];if(V.$isElementNode(o)&&o.isEmpty()&&!n.has(o.getKey()))is(o,e);else if(V.$isLeafNode(o))for(o=o.getParent();o!=null;){let s=o.getKey();if(K(o)){if(!n.has(s)){var l=Ae(e);ht(l,o.getChildren()),o.replace(l),Re(l),n.add(s)}break}else{if(l=o.getParent(),V.$isRootOrShadowRoot(l)&&!n.has(s)){n.add(s),is(o,e);break}o=l}}}}})},me.outdentList=function(){ss("outdent")},me.removeList=function(t){t.update(()=>{let e=V.$getSelection();if(V.$isRangeSelection(e)){var n=new Set,r=e.getNodes(),i=e.anchor.getNode();if(rs(i,r))n.add(yi(i));else for(i=0;i<r.length;i++){var o=r[i];V.$isLeafNode(o)&&(o=_n.$getNearestNodeOfType(o,pt),o!=null&&n.add(yi(o)))}for(let l of n){n=l,r=ts(l);for(let s of r)r=V.$createParagraphNode(),ht(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 mt=me,et={},tt={},ki={},se={},F=w;let cr=new Map;function dr(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):F.$isTextNode(t)&&F.$isTextNode(e)&&(e.__format=t.__format,e.__style=t.__style,e.__mode=t.__mode,e.__detail=t.__detail),e}function fs(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=dr(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 Kd(t){if(F.$isRangeSelection(t)){var e=t.anchor,n=t.focus;let[a,c]=t.getCharacterOffsets();if(t=t.getNodes(),t.length===0)return{nodeMap:[],range:[]};let u=t.length;var r=t[0],i=r.getParent();if(i!==null&&(!i.canBeEmpty()||F.$isRootNode(i))){var o=i.__children;if(o.length===u){for(var l=!0,s=0;s<o.length;s++)if(o[s]!==t[s].__key){l=!1;break}l&&(u++,t.push(i))}}for(i=t[u-1],e=e.isBefore(n),n=new Map,o=[],l=F.$isTextNode(r)&&u===1,fs(r,e?a:c,l?e?c:a:void 0,!0,o,n),r=0;r<u;r++){s=t[r];let d=s.getKey();if(!(n.has(d)||F.$isElementNode(s)&&s.excludeFromCopy("clone"))){let g=dr(s);F.$isRootNode(s.getParent())&&o.push(s.getKey()),d!=="root"&&n.set(d,g)}}return fs(i,l?void 0:e?c:a,void 0,!1,o,n),{nodeMap:Array.from(n.entries()),range:o}}if(F.DEPRECATED_$isGridSelection(t))return{nodeMap:t.getNodes().map(a=>{const c=a.getKey();return a=dr(a),[c,a]}),range:[t.gridKey]};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.")}function Ci(t){let e=cr.get(t);return e===void 0&&(e=hs(t),cr.set(t,e)),e}function hs(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 kn(t,e){var n=Ci(t.getStyle());e=n?{...n,...e}:e,n="";for(r in e)r&&(n+=`${r}: ${e[r]};`);var r=n;t.setStyle(r),cr.set(r,e)}function ps(t,e,n,r){t.modify(e?"extend":"move",n,r)}function ms(t){return t=t.anchor.getNode(),(F.$isRootNode(t)?t:t.getParentOrThrow()).getDirection()==="rtl"}function Ud(t){for(;t!==null&&!F.$isRootOrShadowRoot(t);){let e=t.getLatest(),n=t.getParent();e.__children.length===0&&t.remove(!0),t=n}}function ur(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 u=0;u<n;u++){var d=e[u];F.$isElementNode(d)&&d.getChildrenSize()===0&&c.add(d.getKey())}var g=new Set;for(u=0;u<n;u++){d=e[u];var m=d.getParent();if(m!==null&&m.isInline()&&(m=m.getParent()),m!==null&&F.$isLeafNode(d)&&!g.has(d.getKey())){if(d=m.getKey(),l.get(d)===void 0){let h=r();h.setFormat(m.getFormatType()),h.setIndent(m.getIndent()),s.push(h),l.set(d,h),m.getChildren().forEach(_=>{h.append(_),g.add(_.getKey())}),Ud(m)}}else c.has(d.getKey())&&(m=r(),m.setFormat(d.getFormatType()),m.setIndent(d.getIndent()),s.push(m),d.remove(!0))}if(i!==null)for(e=0;e<s.length;e++)i.append(s[e]);if(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(e=o.getFirstChild(),F.$isElementNode(e)&&(o=e),e===null)if(i)o.append(i);else for(i=0;i<s.length;i++)o.append(s[i]);else if(i!==null)e.insertBefore(i);else for(o=0;o<s.length;o++)e.insertBefore(s[o]);else if(i)o.insertAfter(i);else for(i=s.length-1;0<=i;i--)o.insertAfter(s[i]);s=F.$getPreviousSelection(),F.$isRangeSelection(s)&&s.anchor.getNode().isAttached()&&s.focus.getNode().isAttached()?F.$setSelection(s.clone()):t.dirty=!0}}function xs(t){for(;t!=null;){if(t.nodeType===Node.TEXT_NODE)return t;t=t.firstChild}return null}function _s(t){let e=t.parentNode;if(e==null)throw Error("Should never happen");return[e,Array.from(e.childNodes).indexOf(t)]}se.$addNodeStyle=function(t){t=t.getStyle();let e=hs(t);cr.set(t,e)},se.$cloneContents=function(t){return Kd(t)},se.$cloneWithProperties=dr,se.$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=Ci(a),s=a!==null&&a[s]||c,r===null)r=s;else if(r!==s){r="";break}}}return r===null?n:r},se.$isAtNodeEnd=function(t){return t.type==="text"?t.offset===t.getNode().getTextContentSize():t.offset===t.getNode().getChildrenSize()},se.$isParentElementRTL=ms,se.$moveCaretSelection=ps,se.$moveCharacter=function(t,e,n){let r=ms(t);ps(t,e,n?!r:r,"character")},se.$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;t=i.getTextContent().length;var a=s.offset,c=l.offset;if(l=(s=l.isBefore(s))?c:a,s=s?a:c,l===i.getTextContentSize()){let u=i.getNextSibling();F.$isTextNode(u)&&(l=c=0,i=u)}if(i.is(o))F.$isTextNode(i)&&(l=c>a?a:c,s=c>a?c:a,l!==s&&(l===0&&s===t?(kn(i,e),i.select(l,s)):(n=i.splitText(l,s),n=l===0?n[0]:n[1],kn(n,e),n.select(0,s-l))));else for(F.$isTextNode(i)&&(l!==0&&(i=i.splitText(l)[1]),kn(i,e)),F.$isTextNode(o)&&(t=o.getTextContent().length,s!==t&&([o]=o.splitText(s)),s!==0&&kn(o,e)),t=1;t<r;t++)a=n[t],c=a.getKey(),F.$isTextNode(a)&&c!==i.getKey()&&c!==o.getKey()&&!a.isToken()&&kn(a,e)}},se.$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))},se.$shouldOverrideDefaultCharacterSelection=function(t,e){return t=F.$getDecoratorNode(t.focus,e),F.$isDecoratorNode(t)&&!t.isIsolated()},se.$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},se.$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)?(ur(t,l,l.length,e,n),l=[],o=a):o===null||o!==null&&F.$hasAncestor(a,o)?l.push(a):(ur(t,l,l.length,e,n),l=[a])}ur(t,l,l.length,e,n)}},se.$wrapNodesImpl=ur,se.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=xs(a)),F.$isTextNode(r)&&(t=xs(t)),e===void 0||r===void 0||a===null||t===null)return null;a.nodeName==="BR"&&([a,n]=_s(a)),t.nodeName==="BR"&&([t,i]=_s(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},se.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},se.getStyleObjectFromCSS=Ci,se.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(!I.$isTextNode(r)||n>=i)s=r.getParent(),r.remove(),s!=null&&s.getChildrenSize()===0&&s.remove(),n-=i+l,r=o;else{let u=r.getKey();o=t.getEditorState().read(()=>{const d=I.$getNodeByKey(u);return I.$isTextNode(d)&&d.isSimpleText()?d.getTextContent():null}),o!==null&&o!==a?(n=I.$getPreviousSelection(),i=r,r.isSimpleText()?r.setTextContent(o):(i=I.$createTextNode(o),r.replace(i)),I.$isRangeSelection(n)&&n.isCollapsed()&&(n=n.anchor.offset,i.select(n,n))):r.isSimpleText()?(o=e.key===u,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=I.$createTextNode(c),r.replace(n)),n=0}}};var He=oe,vs=He,Ht=w;function ys(t,e,n,r=null){let i=r!=null?e.isSelected():!0,o=Ht.$isElementNode(e)&&e.excludeFromCopy("html");var l=e;r!==null&&(l=vs.$cloneWithProperties(e),l=Ht.$isTextNode(l)&&r!=null?vs.$sliceSelectedTextNodeContent(r,l):l);let s=Ht.$isElementNode(l)?l.getChildren():[],{element:a,after:c}=l.exportDOM(t);if(!a)return!1;let u=new DocumentFragment;for(let d=0;d<s.length;d++){let g=s[d],p=ys(t,g,u,r);!i&&Ht.$isElementNode(e)&&p&&e.extractWithChild(g,r,"html")&&(i=!0)}return i&&!o?(a.append(u),n.append(a),c&&(t=c.call(l,a))&&a.replaceWith(t)):n.append(u),i}let ks=new Set(["STYLE"]);function Cs(t,e,n=new Map,r,i=!1){let o=[];if(ks.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[,u]of n)if(l=u(l,r),!l)break;l&&o.push(l)}c.forChild!=null&&n.set(t.nodeName,c.forChild)}for(t=t.childNodes,r=[],u=0;u<t.length;u++)r.push(...Cs(t[u],e,new Map(n),l,i||(c&&c.preformatted)===!0));return s!=null&&(r=s(r)),l==null?o=o.concat(r):Ht.$isElementNode(l)&&l.append(...r),o}vi.$generateHtmlFromNodes=function(t,e){if(document==null||window==null)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=Ht.$getRoot().getChildren();for(let i=0;i<r.length;i++)ys(t,r[i],n,e);return n.innerHTML},vi.$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];ks.has(i.nodeName)||(i=Cs(i,t),i!==null&&(n=n.concat(i)))}return n};var Wd=vi,ws=Wd,Es=xt,ki=He,Cn=ve,z=w;function Ve(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 Ci(t,e,n){(z.DEPRECATED_$isGridSelection(n)||Cn.$findMatchingParent(n.anchor.getNode(),r=>z.DEPRECATED_$isGridCellNode(r))!==null&&Cn.$findMatchingParent(n.focus.getNode(),r=>z.DEPRECATED_$isGridCellNode(r))!==null)&&e.length===1&&z.DEPRECATED_$isGridNode(e[0])?Yd(e,n,!1,t):Vd(e,n)}function Vd(t,e){let n=[],r=null,i=null;for(let o=0;o<t.length;o++){let l=t[o];Es.$isListItemNode(l)?(i==null&&(i=Es.$createListNode("bullet"),n.push(i)),i.append(l)):(i!=null&&(i=null),z.$isDecoratorNode(l)&&l.isInline()||z.$isElementNode(l)&&l.isInline()||z.$isTextNode(l)||z.$isLineBreakNode(l)?(r===null&&(r=z.$createParagraphNode(),n.push(r)),r!==null&&r.append(l)):(n.push(l),r=null))}z.$isRangeSelection(e)?e.insertNodes(n):z.DEPRECATED_$isGridSelection(e)&&(t=e.anchor.getNode(),z.DEPRECATED_$isGridCellNode(t)||Ve(41),t.append(...n))}function Yd(t,e,n,r){t.length===1&&z.DEPRECATED_$isGridNode(t[0])||Ve(42);var i=t[0];t=i.getChildren(),n=i.getFirstChildOrThrow().getChildrenSize();var o=i.getChildrenSize(),l=Cn.$findMatchingParent(e.anchor.getNode(),p=>z.DEPRECATED_$isGridCellNode(p));e=(i=l&&Cn.$findMatchingParent(l,p=>z.DEPRECATED_$isGridRowNode(p)))&&Cn.$findMatchingParent(i,p=>z.DEPRECATED_$isGridNode(p)),z.DEPRECATED_$isGridCellNode(l)&&z.DEPRECATED_$isGridRowNode(i)&&z.DEPRECATED_$isGridNode(e)||Ve(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,u;for(let p=i;p<=s;p++){var d=a[p];z.DEPRECATED_$isGridRowNode(d)||Ve(24);var g=t[l];z.DEPRECATED_$isGridRowNode(g)||Ve(24),d=d.getChildren(),g=g.getChildren();let f=0;for(let v=n;v<=o;v++){let k=d[v];z.DEPRECATED_$isGridCellNode(k)||Ve(25);let T=g[f];z.DEPRECATED_$isGridCellNode(T)||Ve(25),p===i&&v===n?c=k.getKey():p===s&&v===o&&(u=k.getKey());let _=k.getChildren();T.getChildren().forEach(m=>{z.$isTextNode(m)&&z.$createParagraphNode().append(m),k.append(m)}),_.forEach(m=>m.remove()),f++}l++}c&&u&&(t=z.DEPRECATED_$createGridSelection(),t.set(e.getKey(),c,u),z.$setSelection(t),r.dispatchCommand(z.SELECTION_CHANGE_COMMAND,void 0))}function Ns(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=ki.$cloneWithProperties(n);l=s=z.$isTextNode(s)&&e!=null?ki.$sliceSelectedTextNodeContent(e,s):s}let a=z.$isElementNode(l)?l.getChildren():[];var c=l;s=c.exportJSON(),s.type!==c.constructor.getType()&&Ve(58);var u=s.children;for(z.$isElementNode(c)&&(Array.isArray(u)||Ve(59)),z.$isTextNode(l)&&(s.text=l.__text),l=0;l<a.length;l++)c=a[l],u=Ns(t,e,c,s.children),!i&&z.$isElementNode(n)&&u&&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 Ts(t,e){let n=[],r=z.$getRoot().getChildren();for(let i=0;i<r.length;i++)Ns(t,e,r[i],n);return{namespace:t._config.namespace,nodes:n}}function Ss(t){let e=[];for(let n=0;n<t.length;n++){let r=z.$parseSerializedNode(t[n]);z.$isTextNode(r)&&ki.$addNodeStyle(r),e.push(r)}return e}tt.$generateJSONFromSelectedNodes=Ts,tt.$generateNodesFromSerializedNodes=Ss,tt.$getHtmlContent=function(t){let e=z.$getSelection();if(e==null)throw Error("Expected valid LexicalSelection");return z.$isRangeSelection(e)&&e.isCollapsed()||e.getNodes().length===0?null:ws.$generateHtmlFromNodes(t,e)},tt.$getLexicalContent=function(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(Ts(t,e))},tt.$insertDataTransferForPlainText=function(t,e){t=t.getData("text/plain"),t!=null&&e.insertRawText(t)},tt.$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=Ss(o.nodes);return Ci(n,l,e)}}catch{}if(r=t.getData("text/html"))try{var i=new DOMParser().parseFromString(r,"text/html");let o=ws.$generateNodesFromDOM(n,i);return Ci(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)},tt.$insertGeneratedNodes=Ci;var Gd=tt,gr=Gd,hr=He,Kt=ve,y=w;let Ut=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",jd=Ut&&"documentMode"in document?document.documentMode:null;Ut&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Ut&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);let Zd=Ut&&"InputEvent"in window&&!jd?"getTargetRanges"in new window.InputEvent("input"):!1,Jd=Ut&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Xd=Ut&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream;class wn extends y.ElementNode{static getType(){return"quote"}static clone(e){return new wn(e.__key)}constructor(e){super(e)}createDOM(e){let n=document.createElement("blockquote");return Kt.addClassNamesToElement(n,e.theme.quote),n}updateDOM(){return!1}static importDOM(){return{blockquote:()=>({conversion:Qd,priority:0})}}static importJSON(e){let n=wi();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 wi(){return new wn}class En extends y.ElementNode{static getType(){return"heading"}static clone(e){return new En(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&&Kt.addClassNamesToElement(r,e[n]),r}updateDOM(){return!1}static importDOM(){return{h1:()=>({conversion:Wt,priority:0}),h2:()=>({conversion:Wt,priority:0}),h3:()=>({conversion:Wt,priority:0}),h4:()=>({conversion:Wt,priority:0}),h5:()=>({conversion:Wt,priority:0}),h6:()=>({conversion:Wt,priority:0}),p:e=>(e=e.firstChild,e!==null&&bs(e)?{conversion:()=>({node:null}),priority:3}:null),span:e=>bs(e)?{conversion:()=>({node:fr("h1")}),priority:3}:null}}static importJSON(e){let n=fr(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 bs(t){return t.nodeName.toLowerCase()==="span"?t.style.fontSize==="26pt":!1}function Wt(t){t=t.nodeName.toLowerCase();let e=null;return(t==="h1"||t==="h2"||t==="h3"||t==="h4"||t==="h5"||t==="h6")&&(e=fr(t)),{node:e}}function Qd(){return{node:wi()}}function fr(t){return new En(t)}function qd(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))&&gr.$insertDataTransferForRichText(r,n,e)},{tag:"paste"})}function Ms(t,e){var n=y.$getSelection();if(n!==null){t.preventDefault(),t=t instanceof KeyboardEvent?null:t.clipboardData;let r=gr.$getHtmlContent(e);e=gr.$getLexicalContent(e),t!=null?(r!==null&&t.setData("text/html",r),e!==null&&t.setData("application/x-lexical-editor",e),n=n.getTextContent(),t.setData("text/plain",n)):(n=navigator.clipboard,n!=null&&(t=[new ClipboardItem({"text/html":new Blob([r],{type:"text/html"})})],n.write(t)))}}function e1(t,e){Ms(t,e),t=y.$getSelection(),y.$isRangeSelection(t)?t.removeText():y.$isNodeSelection(t)&&t.getNodes().forEach(n=>n.remove())}function Os(t,e){var n=y.$getSelection();if(y.$isRangeSelection(n)){var r=new Set;n=n.getNodes();for(let o=0;o<n.length;o++){let l=n[o];var i=l.getKey();r.has(i)||(r.add(i),i=Kt.$getNearestBlockElementAncestorOrThrow(l),i.canInsertTab()?t(l):i.canIndent()&&e(i))}}}function pr(t){return t=y.$getNearestNodeFromDOMNode(t),y.$isDecoratorNode(t)}et.$createHeadingNode=fr,et.$createQuoteNode=wi,et.$isHeadingNode=function(t){return t instanceof En},et.$isQuoteNode=function(t){return t instanceof wn},et.HeadingNode=En,et.QuoteNode=wn,et.registerRichText=function(t){return Kt.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?gr.$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)Kt.$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,()=>(Os(()=>{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,()=>(Os(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)&&!pr(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)&&hr.$shouldOverrideDefaultCharacterSelection(n,!0)?(r=e.shiftKey,e.preventDefault(),hr.$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)&&!pr(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,hr.$shouldOverrideDefaultCharacterSelection(n,!1)?(e.preventDefault(),hr.$moveCharacter(n,r,!1),!0):!1):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_BACKSPACE_COMMAND,e=>{if(pr(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<Kt.$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(pr(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((Xd||Jd)&&Zd)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=y.$getSelection();return y.$isRangeSelection(n)?(e.preventDefault(),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.DRAGSTART_COMMAND,e=>{const n=y.$getSelection();return y.$isRangeSelection(n)?(e.preventDefault(),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.COPY_COMMAND,e=>(Ms(e,t),!0),y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.CUT_COMMAND,e=>(e1(e,t),!0),y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.PASTE_COMMAND,e=>{const n=y.$getSelection();return y.$isRangeSelection(n)||y.DEPRECATED_$isGridSelection(n)?(qd(e,t),!0):!1},y.COMMAND_PRIORITY_EDITOR))};var _t=et,Ye={},t1=ve,nt=w;class Vt extends nt.ElementNode{static getType(){return"link"}static clone(e){return new Vt(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),t1.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:n1,priority:1})}}static importJSON(e){let n=Nn(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),nt.$isElementNode(e)){let n=Nn(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(!nt.$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 n1(t){let e=null;return t instanceof HTMLAnchorElement&&(e=Nn(t.getAttribute("href")||"",{rel:t.getAttribute("rel"),target:t.getAttribute("target")})),{node:e}}function Nn(t,e){return new Vt(t,e)}function vt(t){return t instanceof Vt}class Tn extends Vt{static getType(){return"autolink"}static clone(e){return new Tn(e.__url,{rel:e.__rel,target:e.__target},e.__key)}static importJSON(e){let n=Ei(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),nt.$isElementNode(e)){let n=Ei(this.__url,{rel:this._rel,target:this.__target});return e.append(n),n}return null}}function Ei(t,e){return new Tn(t,e)}let r1=nt.createCommand();function i1(t){return o1(t,e=>vt(e))}function o1(t,e){for(;t!==null&&(t=t.getParent())!==null&&!e(t););return t}Ye.$createAutoLinkNode=Ei,Ye.$createLinkNode=Nn,Ye.$isAutoLinkNode=function(t){return t instanceof Tn},Ye.$isLinkNode=vt,Ye.AutoLinkNode=Tn,Ye.LinkNode=Vt,Ye.TOGGLE_LINK_COMMAND=r1,Ye.toggleLink=function(t,e={}){let{target:n,rel:r}=e;if(e=nt.$getSelection(),nt.$isRangeSelection(e))if(e=e.extract(),t===null)e.forEach(o=>{if(o=o.getParent(),vt(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=vt(i)?i:i1(i),i!==null){i.setURL(t),n!==void 0&&i.setTarget(n),r!==void 0&&i.setRel(r);return}}let o=null,l=null;e.forEach(s=>{var a=s.getParent();if(a!==l&&a!==null&&(!nt.$isElementNode(s)||s.isInline()))if(vt(a))l=a,a.setURL(t),n!==void 0&&a.setTarget(n),r!==void 0&&a.setRel(r);else if(a.is(o)||(o=a,l=Nn(t,{rel:r,target:n}),vt(a)?s.getPreviousSibling()===null?a.insertBefore(l):a.insertAfter(l):s.insertBefore(l)),vt(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 Rs=Ye;class mr extends w.ElementNode{static getType(){return"aside"}static clone(e){return new mr(e.__key)}createDOM(e){const n=document.createElement("aside");return ve.addClassNamesToElement(n,e.theme.aside),n}updateDOM(e,n){return!1}static importDOM(){return{aside:e=>({conversion:l1,priority:0})}}static importJSON(e){const n=Ni();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 l1(){return{node:Ni}}function Ni(){return new mr}var As={},s1=ge,yt=w,xr=b.default;function $s(t,e){return t.getEditorState().read(()=>{let n=yt.$getNodeByKey(e);return n===null?!1:n.isSelected()})}As.useLexicalNodeSelection=function(t){let[e]=s1.useLexicalComposerContext(),[n,r]=xr.useState(()=>$s(e,t));xr.useEffect(()=>e.registerUpdateListener(()=>{r($s(e,t))}),[e,t]);let i=xr.useCallback(l=>{e.update(()=>{let s=yt.$getSelection();yt.$isNodeSelection(s)||(s=yt.$createNodeSelection(),yt.$setSelection(s)),l?s.add(t):s.delete(t)})},[e,t]),o=xr.useCallback(()=>{e.update(()=>{const l=yt.$getSelection();yt.$isNodeSelection(l)&&l.clear()})},[e]);return[n,i,o]};var Ls=As;const Ds=b.default.createContext({});var kt={exports:{}},a1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",c1=a1,d1=c1;function Is(){}function Ps(){}Ps.resetWarningCache=Is;var u1=function(){function t(r,i,o,l,s,a){if(a!==d1){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:Ps,resetWarningCache:Is};return n.PropTypes=n,n};kt.exports=u1();const Fs=b.default.forwardRef(({isSelected:t,cardType:e,children:n,...r},i)=>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"}`,ref:i,"data-kg-card":e,"data-kg-card-selected":t,...r,children:n}));Fs.propTypes={isSelected:kt.exports.bool};const Ti=({nodeKey:t,children:e})=>{const[n]=ge.useLexicalComposerContext(),[r,i,o]=Ls.useLexicalNodeSelection(t),[l,s]=b.default.useState(null),[a,c]=b.default.useState(null),u=b.default.useRef(null);return b.default.useLayoutEffect(()=>{n.getEditorState().read(()=>{const d=w.$getNodeByKey(t);c(d.getType())})},[]),b.default.useEffect(()=>ve.mergeRegister(n.registerUpdateListener(({editorState:d})=>{s(d.read(()=>w.$getSelection()))}),n.registerCommand(w.CLICK_COMMAND,d=>(u.current.contains(d.target)?(o(),i(!0)):r&&i(!1),!1),w.COMMAND_PRIORITY_LOW),n.registerCommand(w.KEY_ENTER_COMMAND,d=>{const g=w.$getSelection();if(r&&w.$isNodeSelection(g)&&g.getNodes().length===1){d.preventDefault();const p=w.$getNodeByKey(t),f=w.$createParagraphNode();return p.getTopLevelElementOrThrow().insertAfter(f),f.select(),!0}return!1},w.COMMAND_PRIORITY_EDITOR),n.registerCommand(w.KEY_BACKSPACE_COMMAND,d=>{const g=w.$getSelection();if(r&&w.$isNodeSelection(g)&&g.getNodes().length===1){d.preventDefault();const p=w.$getNodeByKey(t);if(p.getType()==="image"&&d.target.matches("input"))return n.update(()=>{const k=p.getCaption();p.setCaption(k.slice(0,-1))}),!1;const f=p.getPreviousSibling(),v=p.getNextSibling();if(f)if(f.selectEnd)f.selectEnd();else if(w.$isDecoratorNode(f)){const k=w.$createNodeSelection();k.add(f.getKey()),w.$setSelection(k)}else p.selectPrevious();else if(v)if(v.selectStart)v.selectStart();else if(w.$isDecoratorNode(v)){const k=w.$createNodeSelection();k.add(v.getKey()),w.$setSelection(k)}else p.selectNext();return p.remove(),!0}return!1},w.COMMAND_PRIORITY_EDITOR),n.registerCommand(w.KEY_DELETE_COMMAND,d=>{const g=w.$getSelection();if(r&&w.$isNodeSelection(g)&&g.getNodes().length===1){d.preventDefault();const p=w.$getNodeByKey(t),f=p.getNextSibling();if(f)if(f.selectStart)f.selectStart();else if(w.$isDecoratorNode(f)){const v=w.$createNodeSelection();v.add(f.getKey()),w.$setSelection(v)}else p.selectNext();else{const v=w.$createParagraphNode();p.getTopLevelElementOrThrow().insertAfter(v),v.select()}return p.remove(),!0}return!1},w.COMMAND_PRIORITY_EDITOR)),[n,r,i,o,t]),h(Ds.Provider,{value:{isSelected:r,selection:l},children:h(Fs,{isSelected:r,cardType:a,ref:u,children:e})})};function g1(){return h("hr",{className:"block h-[1px] border-0 border-t border-grey-300"})}const zs=w.createCommand(),Zi=class extends w.DecoratorNode{static getType(){return"horizontalrule"}static clone(e){return new Zi(e.__key)}static importJSON(e){return Si()}exportJSON(){return{type:"horizontalrule",version:1}}createDOM(){return document.createElement("div")}getTextContent(){return`
|
|
31
|
-
`}isInline(){return!1}updateDOM(){return!1}decorate(){return h(Ti,{nodeKey:this.getKey(),className:"inline-block",children:h(g1,{})})}};let Ct=Zi;je(Ct,"kgMenu",{label:"Divider",desc:"Insert a dividing line",Icon:fo,insertCommand:zs,matches:["divider","horizontal-rule","hr"]});function Si(){return new Ct}function h1(t){return t instanceof Ct}const f1=({el:t,value:e})=>{te.useEffect(()=>{const n=t.current;if(n){n.style.height="0px";const r=n.scrollHeight;n.style.height=`${r}px`}},[t,e])};function Bs({code:t,language:e,updateCode:n,updateLanguage:r}){const i=b.default.useRef(null);return f1({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})})}Bs.propTypes={code:kt.exports.string},w.createCommand();function p1({code:t,language:e,nodeKey:n,editor:r}){return h(Bs,{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 Yt extends w.DecoratorNode{constructor(n,r,i){super(i);je(this,"__code","");je(this,"__language","");this.__language=n,this.__code=r}static getType(){return"codeblock"}static clone(n){return new Yt(n.__key,n.__code)}static importJSON(n){return Hs()}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(Ti,{nodeKey:this.getKey(),children:h(p1,{code:this.__code,language:this.__language,nodeKey:this.getKey(),editor:n})})}isInline(){return!1}}function Hs(t,e){return new Yt(t,e)}function m1(t){return t instanceof Yt}const bi=b.default.createContext({});function x1({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 _1({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 v1({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 y1({altText:t,altTextPlaceholder:e,setAltText:n,caption:r,captionPlaceholder:i,setCaption:o,isSelected:l}){const[s,a]=b.default.useState(!1),c=u=>{u.stopPropagation(),a(!s)};if(b.default.useEffect(()=>{l||a(!1)},[l,a]),l||r)return Y("figcaption",{className:"flex w-full p-2",children:[s?h(_1,{value:t,placeholder:e,onChange:n}):h(x1,{value:r,placeholder:i,onChange:o}),n&&h(v1,{isEditingAlt:s,onClick:c})]})}function k1({desc:t,Icon:e,filePicker:n,...r}){return h("div",{className:"border border-transparent",...r,children:h("div",{className:"h-100 relative flex items-center justify-center border border-grey-100 bg-grey-50 before:pb-[62.5%]",children:Y("button",{onClick:n,name:"placeholder-button",className:"group flex cursor-pointer flex-col items-center justify-center p-20",children:[h(e,{className:"h-32 w-32 opacity-80 transition-all ease-linear group-hover:scale-105 group-hover:opacity-100"}),h("p",{className:"mt-4 font-sans text-sm font-normal text-grey-700 group-hover:text-grey-800",children:t})]})})})}function Mi({fileInputRef:t}){t.current.click()}function Ks({onFileChange:t,fileInputRef:e}){return h("form",{onChange:t,children:h("input",{name:"image-input",type:"file",accept:"image/*",ref:e,hidden:!0})})}function C1({src:t,alt:e}){return h("img",{src:t,alt:e})}function w1({onFileChange:t}){const e=b.default.useRef(null);return Y(Lr,{children:[h(k1,{filePicker:()=>Mi({fileInputRef:e}),desc:"Click to select an image",Icon:$r}),h(Ks,{filePicker:()=>Mi({fileInputRef:e}),onFileChange:t,fileInputRef:e})]})}function Us({isSelected:t,src:e,onFileChange:n,caption:r,setCaption:i,altText:o,setAltText:l,setFigureRef:s}){const a=b.default.useRef(null);return b.default.useEffect(()=>{s&&s(a)},[a,s]),h(Lr,{children:Y("figure",{ref:a,children:[e?h(C1,{src:e,alt:o}):h(w1,{onFileChange:n}),h(y1,{altText:o||"",setAltText:l,altTextPlaceholder:"Type alt text for image (optional)",caption:r||"",setCaption:i,captionPlaceholder:"Type caption for image (optional)",isSelected:t})]})})}Us.propTypes={isSelected:kt.exports.bool,setAltText:kt.exports.func,caption:kt.exports.string,altText:kt.exports.string};const E1={bold:to,italic:no,headingOne:ro,headingTwo:io,quote:oo,quoteOne:t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...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",role:"img",...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:Ar,imageRegular:lo,imageWide:so,imageFull:ao,imageReplace:co,add:uo,edit:t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img",...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:In};function Ws({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 Le({label:t,isActive:e,onClick:n,icon:r,...i}){const o=E1[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 Oi(){return h("li",{className:"m-0 mx-1 h-5 w-px bg-grey-900"})}function N1({isSelected:t,fileInputRef:e,onFileChange:n,filePicker:r,figureRef:i,src:o}){const l=document.querySelector("#koenig")||document.body,s=b.default.useRef(null),[a,c]=b.default.useState({top:0,left:0,right:0});b.default.useEffect(()=>{if(i&&t){const d=i.current.getBoundingClientRect(),g=d.top-l.getBoundingClientRect().top;c({top:g,left:d.left,right:d.right})}},[t,i,l]);const u={position:"absolute",left:((a==null?void 0:a.right)-(a==null?void 0:a.left))/2,transform:"translate(-50%, 0)",top:(a==null?void 0:a.top)-44,zIndex:1e3};if(o&&t)return Ke.createPortal(Y("div",{ref:s,"data-kg-card-toolbar":"image",style:u,children:[h(Ks,{onFileChange:n,fileInputRef:e}),Y(Ws,{children:[h(Le,{label:"Regular",icon:"imageRegular",isActive:!0}),h(Le,{label:"Wide",icon:"imageWide",isActive:!1}),h(Le,{label:"Full",icon:"imageFull",isActive:!1}),h(Oi,{}),h(Le,{label:"Link",icon:"link",isActive:!1}),h(Le,{label:"Replace",icon:"imageReplace",isActive:!1,onClick:r}),h(Oi,{}),h(Le,{label:"Snippet",icon:"snippet",isActive:!1})]})]}),l)}function T1({nodeKey:t,src:e,altText:n,caption:r}){const[i]=ge.useLexicalComposerContext(),{isSelected:o}=b.default.useContext(Ds),{imageUploader:l}=b.default.useContext(bi),[s,a]=b.default.useState(null),c=b.default.useRef(null),u=async p=>{const f=p.target.files,v=await l.imageUploader(f);v&&i.update(()=>{w.$getNodeByKey(t).setSrc(v.src)})};return Y(Lr,{children:[h(Us,{setFigureRef:a,isSelected:o,onFileChange:u,src:e,altText:n,setAltText:p=>{i.update(()=>{w.$getNodeByKey(t).setAltText(p)})},caption:r,setCaption:p=>{i.update(()=>{w.$getNodeByKey(t).setCaption(p)})}}),h(N1,{figureRef:s,filePicker:()=>Mi({fileInputRef:c}),isSelected:o,fileInputRef:c,onFileChange:u,src:e})]})}const Ri=w.createCommand();function S1(t){if(t instanceof HTMLImageElement){const{alt:e,src:n}=t;return{node:_r({altText:e,src:n})}}return null}const Ji=class extends w.DecoratorNode{constructor(n,r,i,o){super(o);je(this,"__src");je(this,"__caption");je(this,"__altText");je(this,"__uploadProgress");this.__caption=r||"",this.__altText=i||"",this.__src=n||""}static getType(){return"image"}static clone(n){return new Ji(n.__src,n.__caption,n.__altText,n.__uploadProgress,n.__key)}static importJSON(n){const{caption:r,altText:i,src:o}=n;return _r({altText:i,caption:r,src:o})}exportDOM(){const n=document.createElement("figure"),r=document.createElement("img"),i=document.createElement("figcaption");return r.src=this.getSrc(),i.innerHTML=this.getCaption(),n.appendChild(r),n.appendChild(i),{element:n}}static importDom(){return{img:(n=Node)=>({conversion:S1,priority:1})}}exportJSON(){const r=this.getSrc().startsWith("data:");return{altText:this.getAltText(),caption:this.getCaption(),src:r?"<base64String>":this.getSrc(),type:"image"}}createDOM(){return document.createElement("div")}updateDOM(){return!1}getSrc(){return this.__src}setSrc(n){const r=this.getWritable();return r.__src=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}getUploadProgress(){return this.__uploadProgress}setUploadProgress(n){return this.getWritable().__uploadProgress}decorate(){return h(Ti,{nodeKey:this.getKey(),children:h(T1,{nodeKey:this.getKey(),src:this.__src,altText:this.__altText,caption:this.__caption,uploadProgress:this.__uploadProgress})})}};let rt=Ji;je(rt,"kgMenu",{label:"Image",desc:"Upload, or embed with /image [url]",Icon:ho,insertCommand:Ri,matches:["image","img"]});const _r=({src:t,caption:e,altText:n}={})=>new rt(t,e,n);function b1(t){return t instanceof rt}const Vs=[_t.HeadingNode,xt.ListNode,xt.ListItemNode,_t.QuoteNode,mr,Rs.LinkNode,Yt,Ct,rt],M1={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 O1(t){console.error(t)}const R1={namespace:"KoenigEditor",theme:M1},A1=({initialEditorState:t,nodes:e=[...Vs],onError:n=O1,imageUploadFunction:r,children:i})=>{const o=b.default.useMemo(()=>Object.assign({},R1,{nodes:e,editorState:t,onError:n}),[t,e,n]),l=r||function(){console.error("requires imageUploadFunction to be passed to KoenigComposer component, eg <KoenigComposer imageUploadFunction={function} />")};return h($d.LexicalComposer,{initialConfig:o,children:h(bi.Provider,{value:{imageUploader:l},children:i})})};var Ys={},it={},Re=w;function Ai(t,e=!0){return t?!1:(t=Gs(),e&&(t=t.trim()),t==="")}function Gs(){return Re.$getRoot().getTextContent()}function js(t,e){if(!e||!Ai(t,!1)||(t=Re.$getRoot().getChildren(),e=t.length,1<e))return!1;for(let r=0;r<e;r++){var n=t[r];if(Re.$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(!Re.$isTextNode(n[r]))return!1}}return!0}it.$canShowPlaceholder=js,it.$canShowPlaceholderCurry=function(t,e){return()=>js(t,e)},it.$findTextIntersectionFromCharacters=function(t,e){var n=t.getFirstChild();t=0;e:for(;n!==null;){if(Re.$isElementNode(n)){var r=n.getFirstChild();if(r!==null){n=r;continue}}else if(Re.$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},it.$isRootTextContentEmpty=Ai,it.$isRootTextContentEmptyCurry=function(t,e){return()=>Ai(t,e)},it.$rootTextContent=Gs,it.registerLexicalTextEntity=function(t,e,n,r){let i=l=>{const s=Re.$createTextNode(l.getTextContent());s.setFormat(l.getFormat()),l.replace(s)},o=t.registerNodeTransform(Re.TextNode,l=>{if(l.isSimpleText()){var s=l.getPreviousSibling(),a=l.getTextContent(),c=l;if(Re.$isTextNode(s)){var u=s.getTextContent(),d=e(u+a);if(s instanceof n){if(d===null||s.getLatest().__mode!==0){i(s);return}if(d=d.end-u.length,0<d){c=a.slice(0,d),c=u+c,s.select(),s.setTextContent(c),d===a.length?l.remove():(s=a.slice(d),l.setTextContent(s));return}}else if(d===null||d.start<u.length)return}for(;;){if(l=e(a),a=d=l===null?"":a.slice(l.end),d===""){if(u=c.getNextSibling(),Re.$isTextNode(u)){if(d=c.getTextContent()+u.getTextContent(),d=e(d),d===null){u instanceof n?i(u):u.markDirty();break}else if(d.start!==0)break}}else if(u=e(d),u!==null&&u.start===0)break;if(l===null)break;if(l.start===0&&Re.$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(),Re.$isTextNode(s)&&s.isTextEntity()&&(i(s),i(l)),s=l.getNextSibling(),Re.$isTextNode(s)&&s.isTextEntity()&&(i(s),l instanceof n&&i(l)))}),[o,t]};var $1=it,Zs={},vr=w;Zs.registerDragonSupport=function(t){let e=n=>{var r=t.getRootElement();if(document.activeElement===r&&(r=n.data,typeof r=="string")){try{var i=JSON.parse(r)}catch{return}if(i&&i.protocol==="nuanria_messaging"&&i.type==="request"&&(i=i.payload)&&i.functionId==="makeChanges"&&(i=i.args)){const[o,l,s,a,c]=i;t.update(()=>{const u=vr.$getSelection();if(vr.$isRangeSelection(u)){var d=u.anchor;let g=d.getNode(),p=0,f=0;vr.$isTextNode(g)&&0<=o&&0<=l&&(p=o,f=o+l,u.setTextNodeRange(g,p,g,f)),(p!==f||s!=="")&&(u.insertRawText(s),g=d.getNode()),vr.$isTextNode(g)&&(p=a,f=a+c,d=g.getTextContentSize(),p=p>d?d:p,f=f>d?d:f,u.setTextNodeRange(g,p,g,f)),n.stopImmediatePropagation()}})}}};return window.addEventListener("message",e,!0),()=>{window.removeEventListener("message",e,!0)}};var L1=Zs,D1=ge,ot=b.default,I1=$1,Js=ve,Xs=dc.default,P1=L1,F1=_t,$i=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?ot.useLayoutEffect:ot.useEffect;function Qs(t){return t.getEditorState().read(I1.$canShowPlaceholderCurry(t.isComposing(),t.isEditable()))}function z1(t){let[e,n]=ot.useState(()=>Qs(t));return $i(()=>{function r(){let i=Qs(t);n(i)}return r(),Js.mergeRegister(t.registerUpdateListener(()=>{r()}),t.registerEditableListener(()=>{r()}))},[t]),e}function B1(t){let[e,n]=ot.useState(()=>t.getDecorators());return $i(()=>t.registerDecoratorListener(r=>{Xs.flushSync(()=>{n(r)})}),[t]),ot.useEffect(()=>{n(t.getDecorators())},[t]),ot.useMemo(()=>{let r=[],i=Object.keys(e);for(let l=0;l<i.length;l++){var o=i[l];let s=e[o];o=t.getElementByKey(o),o!==null&&r.push(Xs.createPortal(s,o))}return r},[e,t])}function H1(t){$i(()=>Js.mergeRegister(F1.registerRichText(t),P1.registerDragonSupport(t)),[t])}Ys.RichTextPlugin=function({contentEditable:t,placeholder:e}){let[n]=D1.useLexicalComposerContext(),r=z1(n),i=B1(n);return H1(n),ot.createElement(ot.Fragment,null,t,r&&e,i)};var K1=Ys,qs={},U1=ge,Sn=b.default,W1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?Sn.useLayoutEffect:Sn.useEffect;qs.ContentEditable=function({ariaActiveDescendantID:t,ariaAutoComplete:e,ariaControls:n,ariaDescribedBy:r,ariaExpanded:i,ariaLabel:o,ariaLabelledBy:l,ariaMultiline:s,ariaOwneeID:a,ariaRequired:c,autoCapitalize:u,autoComplete:d,autoCorrect:g,className:p,id:f,role:v="textbox",spellCheck:k=!0,style:T,tabIndex:_,testid:m}){let[C]=U1.useLexicalComposerContext(),[E,N]=Sn.useState(!1),O=Sn.useCallback(F=>{C.setRootElement(F)},[C]);return W1(()=>(N(C.isEditable()),C.registerEditableListener(F=>{N(F)})),[C]),Sn.createElement("div",{"aria-activedescendant":E?t:null,"aria-autocomplete":E?e:null,"aria-controls":E?n:null,"aria-describedby":r,"aria-expanded":E&&v==="combobox"?!!i:null,"aria-label":o,"aria-labelledby":l,"aria-multiline":s,"aria-owns":E?a:null,"aria-required":c,autoCapitalize:u!==void 0?String(u):void 0,autoComplete:d,autoCorrect:g!==void 0?String(g):void 0,className:p,contentEditable:E,"data-testid":m,id:f,ref:O,role:E?v:void 0,spellCheck:k,style:T,tabIndex:_})};var V1=qs,Li={},Di={},Y1=ve,X=w;function G1(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(!(X.$isRangeSelection(o)&&X.$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||X.$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)&&X.$isTextNode(e)&&e.__text.length===1&&o.anchor.offset===1?2:0):(e=s[0],t=t._nodeMap.get(e.__key),!X.$isTextNode(t)||!X.$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 j1(t,e){let n=Date.now(),r=0;return(i,o,l,s,a,c)=>{let u=Date.now();if(c.has("historic"))return r=0,n=u,2;let d=G1(i,o,s,a,t.isComposing()),g=(()=>{var p=l===null||l.editor===t,f=c.has("history-push");if(!f&&p&&c.has("history-merge"))return 0;if(i===null)return 1;const v=o._selection,k=i._selection;return 0<s.size||0<a.size?f===!1&&d!==0&&d===r&&u<n+e&&p||s.size===1&&(f=Array.from(s)[0],p=i._nodeMap.get(f),f=o._nodeMap.get(f),p=X.$isTextNode(p)&&X.$isTextNode(f)?p.__type===f.__type&&p.__text===f.__text&&p.__mode===f.__mode&&p.__detail===f.__detail&&p.__style===f.__style&&p.__format===f.__format&&p.__parent===f.__parent:!1,p)?0:1:k===null&&v!==null?0:2})();return n=u,r=d,g}}Di.createEmptyHistoryState=function(){return{current:null,redoStack:[],undoStack:[]}},Di.registerHistory=function(t,e,n){let r=j1(t,n);n=({editorState:l,prevEditorState:s,dirtyLeaves:a,dirtyElements:c,tags:u})=>{const d=e.current,g=e.redoStack,p=e.undoStack,f=d===null?null:d.editorState;if(d===null||l!==f){if(a=r(s,l,d,a,c,u),a===1)g.length!==0&&(e.redoStack=[]),d!==null&&(p.push({...d,undoSelection:s.read(X.$getSelection)}),t.dispatchCommand(X.CAN_UNDO_COMMAND,!0));else if(a===2)return;e.current={editor:t,editorState:l}}};let i=Y1.mergeRegister(t.registerCommand(X.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(X.CAN_REDO_COMMAND,!0)),s.length===0&&t.dispatchCommand(X.CAN_UNDO_COMMAND,!1),e.current=c||null,c&&c.editor.setEditorState(c.editorState.clone(c.undoSelection),{tag:"historic"})}return!0},X.COMMAND_PRIORITY_EDITOR),t.registerCommand(X.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(X.CAN_UNDO_COMMAND,!0)),s=l.pop(),l.length===0&&t.dispatchCommand(X.CAN_REDO_COMMAND,!1),e.current=s||null,s&&s.editor.setEditorState(s.editorState,{tag:"historic"})}return!0},X.COMMAND_PRIORITY_EDITOR),t.registerCommand(X.CLEAR_EDITOR_COMMAND,()=>(e.undoStack=[],e.redoStack=[],e.current=null,!1),X.COMMAND_PRIORITY_EDITOR),t.registerCommand(X.CLEAR_HISTORY_COMMAND,()=>(e.undoStack=[],e.redoStack=[],e.current=null,t.dispatchCommand(X.CAN_REDO_COMMAND,!1),t.dispatchCommand(X.CAN_UNDO_COMMAND,!1),!0),X.COMMAND_PRIORITY_EDITOR),t.registerUpdateListener(n)),o=t.registerUpdateListener(n);return()=>{i(),o()}};var Z1=Di,J1=ge,Ii=Z1,ea=b.default;function X1(t,e,n=1e3){let r=ea.useMemo(()=>e||Ii.createEmptyHistoryState(),[e]);ea.useEffect(()=>Ii.registerHistory(t,r,n),[n,t,r])}Li.createEmptyHistoryState=Ii.createEmptyHistoryState,Li.HistoryPlugin=function({externalHistoryState:t}){let[e]=J1.useLexicalComposerContext();return X1(e,t),null};var Q1=Li,ta={},q1=ge,na=b.default,eu=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?na.useLayoutEffect:na.useEffect;ta.OnChangePlugin=function({ignoreHistoryMergeTagChange:t=!0,ignoreSelectionChange:e=!1,onChange:n}){let[r]=q1.useLexicalComposerContext();return eu(()=>{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 tu=ta,ra={},De=xt,nu=ge,ia=b.default,ru=ve,Ge=w;function iu(t){ia.useEffect(()=>ru.mergeRegister(t.registerCommand(Ge.INDENT_CONTENT_COMMAND,()=>(De.indentList(),!1),Ge.COMMAND_PRIORITY_LOW),t.registerCommand(Ge.OUTDENT_CONTENT_COMMAND,()=>(De.outdentList(),!1),Ge.COMMAND_PRIORITY_LOW),t.registerCommand(De.INSERT_ORDERED_LIST_COMMAND,()=>(De.insertList(t,"number"),!0),Ge.COMMAND_PRIORITY_LOW),t.registerCommand(De.INSERT_UNORDERED_LIST_COMMAND,()=>(De.insertList(t,"bullet"),!0),Ge.COMMAND_PRIORITY_LOW),t.registerCommand(De.REMOVE_LIST_COMMAND,()=>(De.removeList(t),!0),Ge.COMMAND_PRIORITY_LOW),t.registerCommand(Ge.INSERT_PARAGRAPH_COMMAND,()=>!!De.$handleListInsertParagraph(),Ge.COMMAND_PRIORITY_LOW)),[t])}ra.ListPlugin=function(){let[t]=nu.useLexicalComposerContext();return ia.useEffect(()=>{if(!t.hasNodes([De.ListNode,De.ListItemNode]))throw Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[t]),iu(t),null};var ou=ra;function lu({editor:t,containerElem:e}){return b.default.useEffect(()=>{const n=r=>{e.current.contains(r.target)||t.update(()=>{const i=w.$getSelection();w.$isNodeSelection(i)&&w.$setSelection(null)})};return window.addEventListener("mousedown",n),()=>{window.removeEventListener("mousedown",n)}},[t,e]),null}function oa({containerElem:t=document.querySelector(".koenig-editor")}){const[e]=ge.useLexicalComposerContext();return lu({editor:e,containerElem:t})}var Q={},le={},la={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 u=r.getKey();o=t.getEditorState().read(()=>{const d=F.$getNodeByKey(u);return F.$isTextNode(d)&&d.isSimpleText()?d.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===u,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 He=se,vs=He,Bt=w;function ys(t,e,n,r=null){let i=r!=null?e.isSelected():!0,o=Bt.$isElementNode(e)&&e.excludeFromCopy("html");var l=e;r!==null&&(l=vs.$cloneWithProperties(e),l=Bt.$isTextNode(l)&&r!=null?vs.$sliceSelectedTextNodeContent(r,l):l);let s=Bt.$isElementNode(l)?l.getChildren():[],{element:a,after:c}=l.exportDOM(t);if(!a)return!1;let u=new DocumentFragment;for(let d=0;d<s.length;d++){let g=s[d],m=ys(t,g,u,r);!i&&Bt.$isElementNode(e)&&m&&e.extractWithChild(g,r,"html")&&(i=!0)}return i&&!o?(a.append(u),n.append(a),c&&(t=c.call(l,a))&&a.replaceWith(t)):n.append(u),i}let ks=new Set(["STYLE"]);function Cs(t,e,n=new Map,r,i=!1){let o=[];if(ks.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[,u]of n)if(l=u(l,r),!l)break;l&&o.push(l)}c.forChild!=null&&n.set(t.nodeName,c.forChild)}for(t=t.childNodes,r=[],u=0;u<t.length;u++)r.push(...Cs(t[u],e,new Map(n),l,i||(c&&c.preformatted)===!0));return s!=null&&(r=s(r)),l==null?o=o.concat(r):Bt.$isElementNode(l)&&l.append(...r),o}ki.$generateHtmlFromNodes=function(t,e){if(document==null||window==null)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=Bt.$getRoot().getChildren();for(let i=0;i<r.length;i++)ys(t,r[i],n,e);return n.innerHTML},ki.$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];ks.has(i.nodeName)||(i=Cs(i,t),i!==null&&(n=n.concat(i)))}return n};var Wd=ki,ws=Wd,Es=mt,wi=He,Cn=ke,z=w;function Ye(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 Ei(t,e,n){(z.DEPRECATED_$isGridSelection(n)||Cn.$findMatchingParent(n.anchor.getNode(),r=>z.DEPRECATED_$isGridCellNode(r))!==null&&Cn.$findMatchingParent(n.focus.getNode(),r=>z.DEPRECATED_$isGridCellNode(r))!==null)&&e.length===1&&z.DEPRECATED_$isGridNode(e[0])?Yd(e,n,!1,t):Vd(e,n)}function Vd(t,e){let n=[],r=null,i=null;for(let o=0;o<t.length;o++){let l=t[o];Es.$isListItemNode(l)?(i==null&&(i=Es.$createListNode("bullet"),n.push(i)),i.append(l)):(i!=null&&(i=null),z.$isDecoratorNode(l)&&l.isInline()||z.$isElementNode(l)&&l.isInline()||z.$isTextNode(l)||z.$isLineBreakNode(l)?(r===null&&(r=z.$createParagraphNode(),n.push(r)),r!==null&&r.append(l)):(n.push(l),r=null))}z.$isRangeSelection(e)?e.insertNodes(n):z.DEPRECATED_$isGridSelection(e)&&(t=e.anchor.getNode(),z.DEPRECATED_$isGridCellNode(t)||Ye(41),t.append(...n))}function Yd(t,e,n,r){t.length===1&&z.DEPRECATED_$isGridNode(t[0])||Ye(42);var i=t[0];t=i.getChildren(),n=i.getFirstChildOrThrow().getChildrenSize();var o=i.getChildrenSize(),l=Cn.$findMatchingParent(e.anchor.getNode(),m=>z.DEPRECATED_$isGridCellNode(m));e=(i=l&&Cn.$findMatchingParent(l,m=>z.DEPRECATED_$isGridRowNode(m)))&&Cn.$findMatchingParent(i,m=>z.DEPRECATED_$isGridNode(m)),z.DEPRECATED_$isGridCellNode(l)&&z.DEPRECATED_$isGridRowNode(i)&&z.DEPRECATED_$isGridNode(e)||Ye(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,u;for(let m=i;m<=s;m++){var d=a[m];z.DEPRECATED_$isGridRowNode(d)||Ye(24);var g=t[l];z.DEPRECATED_$isGridRowNode(g)||Ye(24),d=d.getChildren(),g=g.getChildren();let h=0;for(let _=n;_<=o;_++){let C=d[_];z.DEPRECATED_$isGridCellNode(C)||Ye(25);let T=g[h];z.DEPRECATED_$isGridCellNode(T)||Ye(25),m===i&&_===n?c=C.getKey():m===s&&_===o&&(u=C.getKey());let p=C.getChildren();T.getChildren().forEach(v=>{z.$isTextNode(v)&&z.$createParagraphNode().append(v),C.append(v)}),p.forEach(v=>v.remove()),h++}l++}c&&u&&(t=z.DEPRECATED_$createGridSelection(),t.set(e.getKey(),c,u),z.$setSelection(t),r.dispatchCommand(z.SELECTION_CHANGE_COMMAND,void 0))}function Ns(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=wi.$cloneWithProperties(n);l=s=z.$isTextNode(s)&&e!=null?wi.$sliceSelectedTextNodeContent(e,s):s}let a=z.$isElementNode(l)?l.getChildren():[];var c=l;s=c.exportJSON(),s.type!==c.constructor.getType()&&Ye(58);var u=s.children;for(z.$isElementNode(c)&&(Array.isArray(u)||Ye(59)),z.$isTextNode(l)&&(s.text=l.__text),l=0;l<a.length;l++)c=a[l],u=Ns(t,e,c,s.children),!i&&z.$isElementNode(n)&&u&&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 Ts(t,e){let n=[],r=z.$getRoot().getChildren();for(let i=0;i<r.length;i++)Ns(t,e,r[i],n);return{namespace:t._config.namespace,nodes:n}}function Ss(t){let e=[];for(let n=0;n<t.length;n++){let r=z.$parseSerializedNode(t[n]);z.$isTextNode(r)&&wi.$addNodeStyle(r),e.push(r)}return e}tt.$generateJSONFromSelectedNodes=Ts,tt.$generateNodesFromSerializedNodes=Ss,tt.$getHtmlContent=function(t){let e=z.$getSelection();if(e==null)throw Error("Expected valid LexicalSelection");return z.$isRangeSelection(e)&&e.isCollapsed()||e.getNodes().length===0?null:ws.$generateHtmlFromNodes(t,e)},tt.$getLexicalContent=function(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(Ts(t,e))},tt.$insertDataTransferForPlainText=function(t,e){t=t.getData("text/plain"),t!=null&&e.insertRawText(t)},tt.$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=Ss(o.nodes);return Ei(n,l,e)}}catch{}if(r=t.getData("text/html"))try{var i=new DOMParser().parseFromString(r,"text/html");let o=ws.$generateNodesFromDOM(n,i);return Ei(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)},tt.$insertGeneratedNodes=Ei;var Gd=tt,gr=Gd,fr=He,Ht=ke,y=w;let Kt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",jd=Kt&&"documentMode"in document?document.documentMode:null;Kt&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Kt&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);let Zd=Kt&&"InputEvent"in window&&!jd?"getTargetRanges"in new window.InputEvent("input"):!1,Jd=Kt&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Xd=Kt&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream;class wn extends y.ElementNode{static getType(){return"quote"}static clone(e){return new wn(e.__key)}constructor(e){super(e)}createDOM(e){let n=document.createElement("blockquote");return Ht.addClassNamesToElement(n,e.theme.quote),n}updateDOM(){return!1}static importDOM(){return{blockquote:()=>({conversion:Qd,priority:0})}}static importJSON(e){let n=Ni();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 Ni(){return new wn}class En extends y.ElementNode{static getType(){return"heading"}static clone(e){return new En(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&&Ht.addClassNamesToElement(r,e[n]),r}updateDOM(){return!1}static importDOM(){return{h1:()=>({conversion:Ut,priority:0}),h2:()=>({conversion:Ut,priority:0}),h3:()=>({conversion:Ut,priority:0}),h4:()=>({conversion:Ut,priority:0}),h5:()=>({conversion:Ut,priority:0}),h6:()=>({conversion:Ut,priority:0}),p:e=>(e=e.firstChild,e!==null&&bs(e)?{conversion:()=>({node:null}),priority:3}:null),span:e=>bs(e)?{conversion:()=>({node:hr("h1")}),priority:3}:null}}static importJSON(e){let n=hr(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 bs(t){return t.nodeName.toLowerCase()==="span"?t.style.fontSize==="26pt":!1}function Ut(t){t=t.nodeName.toLowerCase();let e=null;return(t==="h1"||t==="h2"||t==="h3"||t==="h4"||t==="h5"||t==="h6")&&(e=hr(t)),{node:e}}function Qd(){return{node:Ni()}}function hr(t){return new En(t)}function qd(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))&&gr.$insertDataTransferForRichText(r,n,e)},{tag:"paste"})}function Os(t,e){var n=y.$getSelection();if(n!==null){t.preventDefault(),t=t instanceof KeyboardEvent?null:t.clipboardData;let r=gr.$getHtmlContent(e);e=gr.$getLexicalContent(e),t!=null?(r!==null&&t.setData("text/html",r),e!==null&&t.setData("application/x-lexical-editor",e),n=n.getTextContent(),t.setData("text/plain",n)):(n=navigator.clipboard,n!=null&&(t=[new ClipboardItem({"text/html":new Blob([r],{type:"text/html"})})],n.write(t)))}}function eu(t,e){Os(t,e),t=y.$getSelection(),y.$isRangeSelection(t)?t.removeText():y.$isNodeSelection(t)&&t.getNodes().forEach(n=>n.remove())}function Rs(t,e){var n=y.$getSelection();if(y.$isRangeSelection(n)){var r=new Set;n=n.getNodes();for(let o=0;o<n.length;o++){let l=n[o];var i=l.getKey();r.has(i)||(r.add(i),i=Ht.$getNearestBlockElementAncestorOrThrow(l),i.canInsertTab()?t(l):i.canIndent()&&e(i))}}}function pr(t){return t=y.$getNearestNodeFromDOMNode(t),y.$isDecoratorNode(t)}et.$createHeadingNode=hr,et.$createQuoteNode=Ni,et.$isHeadingNode=function(t){return t instanceof En},et.$isQuoteNode=function(t){return t instanceof wn},et.HeadingNode=En,et.QuoteNode=wn,et.registerRichText=function(t){return Ht.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?gr.$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)Ht.$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,()=>(Rs(()=>{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,()=>(Rs(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)&&!pr(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)&&fr.$shouldOverrideDefaultCharacterSelection(n,!0)?(r=e.shiftKey,e.preventDefault(),fr.$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)&&!pr(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,fr.$shouldOverrideDefaultCharacterSelection(n,!1)?(e.preventDefault(),fr.$moveCharacter(n,r,!1),!0):!1):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.KEY_BACKSPACE_COMMAND,e=>{if(pr(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<Ht.$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(pr(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((Xd||Jd)&&Zd)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=y.$getSelection();return y.$isRangeSelection(n)?(e.preventDefault(),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.DRAGSTART_COMMAND,e=>{const n=y.$getSelection();return y.$isRangeSelection(n)?(e.preventDefault(),!0):!1},y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.COPY_COMMAND,e=>(Os(e,t),!0),y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.CUT_COMMAND,e=>(eu(e,t),!0),y.COMMAND_PRIORITY_EDITOR),t.registerCommand(y.PASTE_COMMAND,e=>{const n=y.$getSelection();return y.$isRangeSelection(n)||y.DEPRECATED_$isGridSelection(n)?(qd(e,t),!0):!1},y.COMMAND_PRIORITY_EDITOR))};var xt=et,Ge={},tu=ke,nt=w;class Wt extends nt.ElementNode{static getType(){return"link"}static clone(e){return new Wt(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),tu.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:nu,priority:1})}}static importJSON(e){let n=Nn(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),nt.$isElementNode(e)){let n=Nn(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(!nt.$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 nu(t){let e=null;return t instanceof HTMLAnchorElement&&(e=Nn(t.getAttribute("href")||"",{rel:t.getAttribute("rel"),target:t.getAttribute("target")})),{node:e}}function Nn(t,e){return new Wt(t,e)}function _t(t){return t instanceof Wt}class Tn extends Wt{static getType(){return"autolink"}static clone(e){return new Tn(e.__url,{rel:e.__rel,target:e.__target},e.__key)}static importJSON(e){let n=Ti(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),nt.$isElementNode(e)){let n=Ti(this.__url,{rel:this._rel,target:this.__target});return e.append(n),n}return null}}function Ti(t,e){return new Tn(t,e)}let ru=nt.createCommand();function iu(t){return ou(t,e=>_t(e))}function ou(t,e){for(;t!==null&&(t=t.getParent())!==null&&!e(t););return t}Ge.$createAutoLinkNode=Ti,Ge.$createLinkNode=Nn,Ge.$isAutoLinkNode=function(t){return t instanceof Tn},Ge.$isLinkNode=_t,Ge.AutoLinkNode=Tn,Ge.LinkNode=Wt,Ge.TOGGLE_LINK_COMMAND=ru,Ge.toggleLink=function(t,e={}){let{target:n,rel:r}=e;if(e=nt.$getSelection(),nt.$isRangeSelection(e))if(e=e.extract(),t===null)e.forEach(o=>{if(o=o.getParent(),_t(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=_t(i)?i:iu(i),i!==null){i.setURL(t),n!==void 0&&i.setTarget(n),r!==void 0&&i.setRel(r);return}}let o=null,l=null;e.forEach(s=>{var a=s.getParent();if(a!==l&&a!==null&&(!nt.$isElementNode(s)||s.isInline()))if(_t(a))l=a,a.setURL(t),n!==void 0&&a.setTarget(n),r!==void 0&&a.setRel(r);else if(a.is(o)||(o=a,l=Nn(t,{rel:r,target:n}),_t(a)?s.getPreviousSibling()===null?a.insertBefore(l):a.insertAfter(l):s.insertBefore(l)),_t(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 As=Ge;class mr extends w.ElementNode{static getType(){return"aside"}static clone(e){return new mr(e.__key)}createDOM(e){const n=document.createElement("aside");return ke.addClassNamesToElement(n,e.theme.aside),n}updateDOM(e,n){return!1}static importDOM(){return{aside:e=>({conversion:lu,priority:0})}}static importJSON(e){const n=Si();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 lu(){return{node:Si}}function Si(){return new mr}var Ms={},su=he,vt=w,xr=S.default;function $s(t,e){return t.getEditorState().read(()=>{let n=vt.$getNodeByKey(e);return n===null?!1:n.isSelected()})}Ms.useLexicalNodeSelection=function(t){let[e]=su.useLexicalComposerContext(),[n,r]=xr.useState(()=>$s(e,t));xr.useEffect(()=>e.registerUpdateListener(()=>{r($s(e,t))}),[e,t]);let i=xr.useCallback(l=>{e.update(()=>{let s=vt.$getSelection();vt.$isNodeSelection(s)||(s=vt.$createNodeSelection(),vt.$setSelection(s)),l?s.add(t):s.delete(t)})},[e,t]),o=xr.useCallback(()=>{e.update(()=>{const l=vt.$getSelection();vt.$isNodeSelection(l)&&l.clear()})},[e]);return[n,i,o]};var Ls=Ms;const Ds=S.default.createContext({});var yt={exports:{}},au="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",cu=au,du=cu;function Is(){}function Ps(){}Ps.resetWarningCache=Is;var uu=function(){function t(r,i,o,l,s,a){if(a!==du){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:Ps,resetWarningCache:Is};return n.PropTypes=n,n};yt.exports=uu();const Fs=S.default.forwardRef(({isSelected:t,cardType:e,children:n,...r},i)=>f("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"}`,ref:i,"data-kg-card":e,"data-kg-card-selected":t,...r,children:n}));Fs.propTypes={isSelected:yt.exports.bool};const bi=({nodeKey:t,children:e})=>{const[n]=he.useLexicalComposerContext(),[r,i,o]=Ls.useLexicalNodeSelection(t),[l,s]=S.default.useState(null),[a,c]=S.default.useState(null),u=S.default.useRef(null);return S.default.useLayoutEffect(()=>{n.getEditorState().read(()=>{const d=w.$getNodeByKey(t);c(d.getType())})},[]),S.default.useEffect(()=>ke.mergeRegister(n.registerUpdateListener(({editorState:d})=>{s(d.read(()=>w.$getSelection()))}),n.registerCommand(w.CLICK_COMMAND,d=>(u.current.contains(d.target)?(o(),i(!0)):r&&i(!1),!1),w.COMMAND_PRIORITY_LOW),n.registerCommand(w.KEY_ENTER_COMMAND,d=>{const g=w.$getSelection();if(r&&w.$isNodeSelection(g)&&g.getNodes().length===1){d.preventDefault();const m=w.$getNodeByKey(t),h=w.$createParagraphNode();return m.getTopLevelElementOrThrow().insertAfter(h),h.select(),!0}return!1},w.COMMAND_PRIORITY_EDITOR),n.registerCommand(w.KEY_BACKSPACE_COMMAND,d=>{const g=w.$getSelection();if(r&&w.$isNodeSelection(g)&&g.getNodes().length===1){d.preventDefault();const m=w.$getNodeByKey(t);if(m.getType()==="image"&&d.target.matches("input"))return n.update(()=>{const C=m.getCaption();m.setCaption(C.slice(0,-1))}),!1;const h=m.getPreviousSibling(),_=m.getNextSibling();if(h)if(h.selectEnd)h.selectEnd();else if(w.$isDecoratorNode(h)){const C=w.$createNodeSelection();C.add(h.getKey()),w.$setSelection(C)}else m.selectPrevious();else if(_)if(_.selectStart)_.selectStart();else if(w.$isDecoratorNode(_)){const C=w.$createNodeSelection();C.add(_.getKey()),w.$setSelection(C)}else m.selectNext();return m.remove(),!0}return!1},w.COMMAND_PRIORITY_EDITOR),n.registerCommand(w.KEY_DELETE_COMMAND,d=>{const g=w.$getSelection();if(r&&w.$isNodeSelection(g)&&g.getNodes().length===1){d.preventDefault();const m=w.$getNodeByKey(t),h=m.getNextSibling();if(h)if(h.selectStart)h.selectStart();else if(w.$isDecoratorNode(h)){const _=w.$createNodeSelection();_.add(h.getKey()),w.$setSelection(_)}else m.selectNext();else{const _=w.$createParagraphNode();m.getTopLevelElementOrThrow().insertAfter(_),_.select()}return m.remove(),!0}return!1},w.COMMAND_PRIORITY_EDITOR)),[n,r,i,o,t]),f(Ds.Provider,{value:{isSelected:r,selection:l,cardContainerRef:u},children:f(Fs,{isSelected:r,cardType:a,ref:u,children:e})})};function gu(){return f("hr",{className:"block h-[1px] border-0 border-t border-grey-300"})}const zs=w.createCommand(),Zi=class extends w.DecoratorNode{static getType(){return"horizontalrule"}static clone(e){return new Zi(e.__key)}static importJSON(e){return Oi()}exportJSON(){return{type:"horizontalrule",version:1}}createDOM(){return document.createElement("div")}getTextContent(){return`
|
|
31
|
+
`}isInline(){return!1}updateDOM(){return!1}decorate(){return f(bi,{nodeKey:this.getKey(),className:"inline-block",children:f(gu,{})})}};let kt=Zi;Ke(kt,"kgMenu",{label:"Divider",desc:"Insert a dividing line",Icon:ho,insertCommand:zs,matches:["divider","horizontal-rule","hr"]});function Oi(){return new kt}function fu(t){return t instanceof kt}const hu=({el:t,value:e})=>{te.useEffect(()=>{const n=t.current;if(n){n.style.height="0px";const r=n.scrollHeight;n.style.height=`${r}px`}},[t,e])};function Bs({code:t,language:e,updateCode:n,updateLanguage:r}){const i=S.default.useRef(null);return hu({el:i,value:t}),f("code",{children:f("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})})}Bs.propTypes={code:yt.exports.string},w.createCommand();function pu({code:t,language:e,nodeKey:n,editor:r}){return f(Bs,{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 Vt extends w.DecoratorNode{constructor(n,r,i){super(i);Ke(this,"__code","");Ke(this,"__language","");this.__language=n,this.__code=r}static getType(){return"codeblock"}static clone(n){return new Vt(n.__key,n.__code)}static importJSON(n){return Hs()}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 f(bi,{nodeKey:this.getKey(),children:f(pu,{code:this.__code,language:this.__language,nodeKey:this.getKey(),editor:n})})}isInline(){return!1}}function Hs(t,e){return new Vt(t,e)}function mu(t){return t instanceof Vt}const _r=S.default.createContext({});function xu({value:t,placeholder:e,onChange:n}){return f("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 _u({value:t,placeholder:e,onChange:n}){return f("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 vu({isEditingAlt:t,onClick:e}){return f("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 yu({altText:t,altTextPlaceholder:e,setAltText:n,caption:r,captionPlaceholder:i,setCaption:o,isSelected:l}){const[s,a]=S.default.useState(!1),c=u=>{u.stopPropagation(),a(!s)};if(S.default.useEffect(()=>{l||a(!1)},[l,a]),l||r)return Y("figcaption",{className:"flex w-full p-2",children:[s?f(_u,{value:t,placeholder:e,onChange:n}):f(xu,{value:r,placeholder:i,onChange:o}),n&&f(vu,{isEditingAlt:s,onClick:c})]})}function ku({desc:t,Icon:e,filePicker:n,size:r,...i}){return f("div",{className:"border border-transparent",...i,children:f("div",{className:`h-100 relative flex items-center justify-center border border-grey/20 bg-grey-50 ${r==="small"?"before:pb-[12.5%]":"before:pb-[62.5%]"}`,children:Y("button",{onClick:n,name:"placeholder-button",className:`group flex cursor-pointer items-center justify-center ${r==="small"?"p-4":"p-20 flex-col"}`,children:[f(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"?"w-6 h-6 mr-3 text-grey-700":"h-16 w-16 text-grey"}`}),f("p",{className:`font-sans text-sm font-normal text-grey-700 transition-all group-hover:text-grey-800 ${r==="small"?"":"mt-4"}`,children:t})]})})})}function vr({fileInputRef:t}){t.current.click()}function Ks({onFileChange:t,fileInputRef:e}){return f("form",{onChange:t,children:f("input",{name:"image-input",type:"file",accept:"image/*",ref:e,hidden:!0})})}function Cu({src:t,alt:e}){return f("img",{src:t,alt:e})}function wu({onFileChange:t,setFileInputRef:e}){const n=S.default.useRef(null);return Y(Ir,{children:[f(ku,{filePicker:()=>vr({fileInputRef:n}),desc:"Click to select an image",Icon:Dr}),f(Ks,{filePicker:()=>vr({fileInputRef:n}),onFileChange:t,fileInputRef:i=>{n.current=i,e(n)}})]})}function Us({isSelected:t,src:e,onFileChange:n,caption:r,setCaption:i,altText:o,setAltText:l,setFigureRef:s,fileInputRef:a}){const c=S.default.useRef(null);return S.default.useEffect(()=>{s&&s(c)},[c,s]),f(Ir,{children:Y("figure",{ref:c,children:[e?f(Cu,{src:e,alt:o}):f(wu,{onFileChange:n,setFileInputRef:d=>{a&&(a.current=d.current)}}),f(yu,{altText:o||"",setAltText:l,altTextPlaceholder:"Type alt text for image (optional)",caption:r||"",setCaption:i,captionPlaceholder:"Type caption for image (optional)",isSelected:t})]})})}Us.propTypes={isSelected:yt.exports.bool,setAltText:yt.exports.func,caption:yt.exports.string,altText:yt.exports.string};const Eu={bold:to,italic:no,headingOne:ro,headingTwo:io,quote:oo,quoteOne:t=>x.createElement("svg",{width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",role:"img",...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",role:"img",...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:Lr,imageRegular:lo,imageWide:so,imageFull:ao,imageReplace:co,add:uo,edit:t=>x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img",...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:In};function Ws({children:t,...e}){return f("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 Le({label:t,isActive:e,onClick:n,icon:r,...i}){const o=Eu[r];return f("li",{className:"m-0 flex p-0 first:m-0",...i,children:f("button",{type:"button",className:"flex h-9 w-9 items-center justify-center",onClick:n,"aria-label":t,"data-kg-active":e,children:f(o,{className:e?"fill-green":"fill-white"})})})}function Ri(){return f("li",{className:"m-0 mx-1 h-5 w-px bg-grey-900"})}function Nu({containerRef:t,parentContainerRef:e,isVisible:n,children:r,...i}){const o=(e==null?void 0:e.current)||document.body,[l,s]=S.default.useState({top:0,left:0,right:0});S.default.useEffect(()=>{if(t&&n){const c=t.current.getBoundingClientRect(),u=c.top-o.getBoundingClientRect().top;s({top:u,left:c.left,right:c.right})}},[n,t,o]);const a={position:"absolute",left:((l==null?void 0:l.right)-(l==null?void 0:l.left))/2,transform:"translate(-50%, 0)",top:(l==null?void 0:l.top)-44,zIndex:1e3};if(n)return Ue.createPortal(f("div",{style:a,...i,children:r}),o)}function Tu({nodeKey:t,src:e,altText:n,caption:r,triggerFileDialog:i}){const[o]=he.useLexicalComposerContext(),{editorContainerRef:l,imageUploader:s}=S.default.useContext(_r),{cardContainerRef:a,isSelected:c}=S.default.useContext(Ds),u=S.default.useRef(),d=S.default.useRef(),g=async _=>{const C=_.target.files,T=await s.imageUploader(C);T&&o.update(()=>{w.$getNodeByKey(t).setSrc(T.src)})},m=_=>{o.update(()=>{w.$getNodeByKey(t).setCaption(_)})},h=_=>{o.update(()=>{w.$getNodeByKey(t).setAltText(_)})};return S.default.useEffect(()=>{if(!i)return;const _=setTimeout(()=>{vr({fileInputRef:u}),o.update(()=>{w.$getNodeByKey(t).setTriggerFileDialog(!1)})});return()=>{clearTimeout(_)}}),Y(Ir,{children:[f(Us,{isSelected:c,fileInputRef:u,onFileChange:g,src:e,altText:n,setAltText:h,caption:r,setCaption:m}),Y(Nu,{isVisible:e&&c,containerRef:a,parentContainerRef:l,"data-kg-card-toolbar":"image",children:[f(Ks,{onFileChange:g,fileInputRef:d}),Y(Ws,{children:[f(Le,{label:"Regular",icon:"imageRegular",isActive:!0}),f(Le,{label:"Wide",icon:"imageWide",isActive:!1}),f(Le,{label:"Full",icon:"imageFull",isActive:!1}),f(Ri,{}),f(Le,{label:"Link",icon:"link",isActive:!1}),f(Le,{label:"Replace",icon:"imageReplace",isActive:!1,onClick:()=>vr({fileInputRef:d})}),f(Ri,{}),f(Le,{label:"Snippet",icon:"snippet",isActive:!1})]})]})]})}const Ai=w.createCommand();function Su(t){if(t instanceof HTMLImageElement){const{alt:e,src:n}=t;return{node:yr({altText:e,src:n})}}return null}const Ji=class extends w.DecoratorNode{constructor({src:n,caption:r,altText:i,uploadProgress:o,triggerFileDialog:l}={},s){super(s);Ke(this,"__src");Ke(this,"__caption");Ke(this,"__altText");Ke(this,"__uploadProgress");Ke(this,"__triggerFileDialog",!1);this.__caption=r||"",this.__altText=i||"",this.__src=n||"",this.__uploadProgress=o,this.__triggerFileDialog=l||!1}static getType(){return"image"}static clone(n){return new Ji({src:n.__src,caption:n.__caption,altText:n.__altText,uploadProgress:n.__uploadProgress},n.__key)}static importJSON(n){const{caption:r,altText:i,src:o}=n;return yr({altText:i,caption:r,src:o})}exportDOM(){const n=document.createElement("figure"),r=document.createElement("img"),i=document.createElement("figcaption");return r.src=this.getSrc(),i.innerHTML=this.getCaption(),n.appendChild(r),n.appendChild(i),{element:n}}static importDom(){return{img:(n=Node)=>({conversion:Su,priority:1})}}exportJSON(){const r=this.getSrc().startsWith("data:");return{altText:this.getAltText(),caption:this.getCaption(),src:r?"<base64String>":this.getSrc(),type:"image"}}createDOM(){return document.createElement("div")}updateDOM(){return!1}getSrc(){return this.__src}setSrc(n){const r=this.getWritable();return r.__src=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}getUploadProgress(){return this.__uploadProgress}setUploadProgress(n){const r=this.getWritable();return r.__uploadProgress=n}setTriggerFileDialog(n){const r=this.getWritable();return r.__triggerFileDialog=n}decorate(){return f(bi,{nodeKey:this.getKey(),children:f(Tu,{nodeKey:this.getKey(),src:this.__src,altText:this.__altText,caption:this.__caption,uploadProgress:this.__uploadProgress,triggerFileDialog:this.__triggerFileDialog})})}};let rt=Ji;Ke(rt,"kgMenu",{label:"Image",desc:"Upload, or embed with /image [url]",Icon:fo,insertCommand:Ai,insertParams:{triggerFileDialog:!0},matches:["image","img"],queryParams:["src"]});const yr=t=>(t.src&&delete t.triggerFileDialog,new rt(t));function bu(t){return t instanceof rt}const Vs=[xt.HeadingNode,mt.ListNode,mt.ListItemNode,xt.QuoteNode,mr,As.LinkNode,Vt,kt,rt],Ou={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 Ru(t){console.error(t)}const Au={namespace:"KoenigEditor",theme:Ou},Mu=({initialEditorState:t,nodes:e=[...Vs],onError:n=Ru,imageUploadFunction:r,children:i})=>{const o=S.default.useMemo(()=>Object.assign({},Au,{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 f($d.LexicalComposer,{initialConfig:o,children:f(_r.Provider,{value:{imageUploader:s,editorContainerRef:l},children:i})})};var Ys={},it={},Me=w;function Mi(t,e=!0){return t?!1:(t=Gs(),e&&(t=t.trim()),t==="")}function Gs(){return Me.$getRoot().getTextContent()}function js(t,e){if(!e||!Mi(t,!1)||(t=Me.$getRoot().getChildren(),e=t.length,1<e))return!1;for(let r=0;r<e;r++){var n=t[r];if(Me.$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(!Me.$isTextNode(n[r]))return!1}}return!0}it.$canShowPlaceholder=js,it.$canShowPlaceholderCurry=function(t,e){return()=>js(t,e)},it.$findTextIntersectionFromCharacters=function(t,e){var n=t.getFirstChild();t=0;e:for(;n!==null;){if(Me.$isElementNode(n)){var r=n.getFirstChild();if(r!==null){n=r;continue}}else if(Me.$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},it.$isRootTextContentEmpty=Mi,it.$isRootTextContentEmptyCurry=function(t,e){return()=>Mi(t,e)},it.$rootTextContent=Gs,it.registerLexicalTextEntity=function(t,e,n,r){let i=l=>{const s=Me.$createTextNode(l.getTextContent());s.setFormat(l.getFormat()),l.replace(s)},o=t.registerNodeTransform(Me.TextNode,l=>{if(l.isSimpleText()){var s=l.getPreviousSibling(),a=l.getTextContent(),c=l;if(Me.$isTextNode(s)){var u=s.getTextContent(),d=e(u+a);if(s instanceof n){if(d===null||s.getLatest().__mode!==0){i(s);return}if(d=d.end-u.length,0<d){c=a.slice(0,d),c=u+c,s.select(),s.setTextContent(c),d===a.length?l.remove():(s=a.slice(d),l.setTextContent(s));return}}else if(d===null||d.start<u.length)return}for(;;){if(l=e(a),a=d=l===null?"":a.slice(l.end),d===""){if(u=c.getNextSibling(),Me.$isTextNode(u)){if(d=c.getTextContent()+u.getTextContent(),d=e(d),d===null){u instanceof n?i(u):u.markDirty();break}else if(d.start!==0)break}}else if(u=e(d),u!==null&&u.start===0)break;if(l===null)break;if(l.start===0&&Me.$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(),Me.$isTextNode(s)&&s.isTextEntity()&&(i(s),i(l)),s=l.getNextSibling(),Me.$isTextNode(s)&&s.isTextEntity()&&(i(s),l instanceof n&&i(l)))}),[o,t]};var $u=it,Zs={},kr=w;Zs.registerDragonSupport=function(t){let e=n=>{var r=t.getRootElement();if(document.activeElement===r&&(r=n.data,typeof r=="string")){try{var i=JSON.parse(r)}catch{return}if(i&&i.protocol==="nuanria_messaging"&&i.type==="request"&&(i=i.payload)&&i.functionId==="makeChanges"&&(i=i.args)){const[o,l,s,a,c]=i;t.update(()=>{const u=kr.$getSelection();if(kr.$isRangeSelection(u)){var d=u.anchor;let g=d.getNode(),m=0,h=0;kr.$isTextNode(g)&&0<=o&&0<=l&&(m=o,h=o+l,u.setTextNodeRange(g,m,g,h)),(m!==h||s!=="")&&(u.insertRawText(s),g=d.getNode()),kr.$isTextNode(g)&&(m=a,h=a+c,d=g.getTextContentSize(),m=m>d?d:m,h=h>d?d:h,u.setTextNodeRange(g,m,g,h)),n.stopImmediatePropagation()}})}}};return window.addEventListener("message",e,!0),()=>{window.removeEventListener("message",e,!0)}};var Lu=Zs,Du=he,ot=S.default,Iu=$u,Js=ke,Xs=dc.default,Pu=Lu,Fu=xt,$i=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?ot.useLayoutEffect:ot.useEffect;function Qs(t){return t.getEditorState().read(Iu.$canShowPlaceholderCurry(t.isComposing(),t.isEditable()))}function zu(t){let[e,n]=ot.useState(()=>Qs(t));return $i(()=>{function r(){let i=Qs(t);n(i)}return r(),Js.mergeRegister(t.registerUpdateListener(()=>{r()}),t.registerEditableListener(()=>{r()}))},[t]),e}function Bu(t){let[e,n]=ot.useState(()=>t.getDecorators());return $i(()=>t.registerDecoratorListener(r=>{Xs.flushSync(()=>{n(r)})}),[t]),ot.useEffect(()=>{n(t.getDecorators())},[t]),ot.useMemo(()=>{let r=[],i=Object.keys(e);for(let l=0;l<i.length;l++){var o=i[l];let s=e[o];o=t.getElementByKey(o),o!==null&&r.push(Xs.createPortal(s,o))}return r},[e,t])}function Hu(t){$i(()=>Js.mergeRegister(Fu.registerRichText(t),Pu.registerDragonSupport(t)),[t])}Ys.RichTextPlugin=function({contentEditable:t,placeholder:e}){let[n]=Du.useLexicalComposerContext(),r=zu(n),i=Bu(n);return Hu(n),ot.createElement(ot.Fragment,null,t,r&&e,i)};var Ku=Ys,qs={},Uu=he,Sn=S.default,Wu=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?Sn.useLayoutEffect:Sn.useEffect;qs.ContentEditable=function({ariaActiveDescendantID:t,ariaAutoComplete:e,ariaControls:n,ariaDescribedBy:r,ariaExpanded:i,ariaLabel:o,ariaLabelledBy:l,ariaMultiline:s,ariaOwneeID:a,ariaRequired:c,autoCapitalize:u,autoComplete:d,autoCorrect:g,className:m,id:h,role:_="textbox",spellCheck:C=!0,style:T,tabIndex:p,testid:v}){let[N]=Uu.useLexicalComposerContext(),[k,E]=Sn.useState(!1),O=Sn.useCallback(D=>{N.setRootElement(D)},[N]);return Wu(()=>(E(N.isEditable()),N.registerEditableListener(D=>{E(D)})),[N]),Sn.createElement("div",{"aria-activedescendant":k?t:null,"aria-autocomplete":k?e:null,"aria-controls":k?n:null,"aria-describedby":r,"aria-expanded":k&&_==="combobox"?!!i:null,"aria-label":o,"aria-labelledby":l,"aria-multiline":s,"aria-owns":k?a:null,"aria-required":c,autoCapitalize:u!==void 0?String(u):void 0,autoComplete:d,autoCorrect:g!==void 0?String(g):void 0,className:m,contentEditable:k,"data-testid":v,id:h,ref:O,role:k?_:void 0,spellCheck:C,style:T,tabIndex:p})};var Vu=qs,Li={},Di={},Yu=ke,X=w;function Gu(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(!(X.$isRangeSelection(o)&&X.$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||X.$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)&&X.$isTextNode(e)&&e.__text.length===1&&o.anchor.offset===1?2:0):(e=s[0],t=t._nodeMap.get(e.__key),!X.$isTextNode(t)||!X.$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 ju(t,e){let n=Date.now(),r=0;return(i,o,l,s,a,c)=>{let u=Date.now();if(c.has("historic"))return r=0,n=u,2;let d=Gu(i,o,s,a,t.isComposing()),g=(()=>{var m=l===null||l.editor===t,h=c.has("history-push");if(!h&&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?h===!1&&d!==0&&d===r&&u<n+e&&m||s.size===1&&(h=Array.from(s)[0],m=i._nodeMap.get(h),h=o._nodeMap.get(h),m=X.$isTextNode(m)&&X.$isTextNode(h)?m.__type===h.__type&&m.__text===h.__text&&m.__mode===h.__mode&&m.__detail===h.__detail&&m.__style===h.__style&&m.__format===h.__format&&m.__parent===h.__parent:!1,m)?0:1:C===null&&_!==null?0:2})();return n=u,r=d,g}}Di.createEmptyHistoryState=function(){return{current:null,redoStack:[],undoStack:[]}},Di.registerHistory=function(t,e,n){let r=ju(t,n);n=({editorState:l,prevEditorState:s,dirtyLeaves:a,dirtyElements:c,tags:u})=>{const d=e.current,g=e.redoStack,m=e.undoStack,h=d===null?null:d.editorState;if(d===null||l!==h){if(a=r(s,l,d,a,c,u),a===1)g.length!==0&&(e.redoStack=[]),d!==null&&(m.push({...d,undoSelection:s.read(X.$getSelection)}),t.dispatchCommand(X.CAN_UNDO_COMMAND,!0));else if(a===2)return;e.current={editor:t,editorState:l}}};let i=Yu.mergeRegister(t.registerCommand(X.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(X.CAN_REDO_COMMAND,!0)),s.length===0&&t.dispatchCommand(X.CAN_UNDO_COMMAND,!1),e.current=c||null,c&&c.editor.setEditorState(c.editorState.clone(c.undoSelection),{tag:"historic"})}return!0},X.COMMAND_PRIORITY_EDITOR),t.registerCommand(X.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(X.CAN_UNDO_COMMAND,!0)),s=l.pop(),l.length===0&&t.dispatchCommand(X.CAN_REDO_COMMAND,!1),e.current=s||null,s&&s.editor.setEditorState(s.editorState,{tag:"historic"})}return!0},X.COMMAND_PRIORITY_EDITOR),t.registerCommand(X.CLEAR_EDITOR_COMMAND,()=>(e.undoStack=[],e.redoStack=[],e.current=null,!1),X.COMMAND_PRIORITY_EDITOR),t.registerCommand(X.CLEAR_HISTORY_COMMAND,()=>(e.undoStack=[],e.redoStack=[],e.current=null,t.dispatchCommand(X.CAN_REDO_COMMAND,!1),t.dispatchCommand(X.CAN_UNDO_COMMAND,!1),!0),X.COMMAND_PRIORITY_EDITOR),t.registerUpdateListener(n)),o=t.registerUpdateListener(n);return()=>{i(),o()}};var Zu=Di,Ju=he,Ii=Zu,ea=S.default;function Xu(t,e,n=1e3){let r=ea.useMemo(()=>e||Ii.createEmptyHistoryState(),[e]);ea.useEffect(()=>Ii.registerHistory(t,r,n),[n,t,r])}Li.createEmptyHistoryState=Ii.createEmptyHistoryState,Li.HistoryPlugin=function({externalHistoryState:t}){let[e]=Ju.useLexicalComposerContext();return Xu(e,t),null};var Qu=Li,ta={},qu=he,na=S.default,eg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?na.useLayoutEffect:na.useEffect;ta.OnChangePlugin=function({ignoreHistoryMergeTagChange:t=!0,ignoreSelectionChange:e=!1,onChange:n}){let[r]=qu.useLexicalComposerContext();return eg(()=>{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 tg=ta,ra={},De=mt,ng=he,ia=S.default,rg=ke,je=w;function ig(t){ia.useEffect(()=>rg.mergeRegister(t.registerCommand(je.INDENT_CONTENT_COMMAND,()=>(De.indentList(),!1),je.COMMAND_PRIORITY_LOW),t.registerCommand(je.OUTDENT_CONTENT_COMMAND,()=>(De.outdentList(),!1),je.COMMAND_PRIORITY_LOW),t.registerCommand(De.INSERT_ORDERED_LIST_COMMAND,()=>(De.insertList(t,"number"),!0),je.COMMAND_PRIORITY_LOW),t.registerCommand(De.INSERT_UNORDERED_LIST_COMMAND,()=>(De.insertList(t,"bullet"),!0),je.COMMAND_PRIORITY_LOW),t.registerCommand(De.REMOVE_LIST_COMMAND,()=>(De.removeList(t),!0),je.COMMAND_PRIORITY_LOW),t.registerCommand(je.INSERT_PARAGRAPH_COMMAND,()=>!!De.$handleListInsertParagraph(),je.COMMAND_PRIORITY_LOW)),[t])}ra.ListPlugin=function(){let[t]=ng.useLexicalComposerContext();return ia.useEffect(()=>{if(!t.hasNodes([De.ListNode,De.ListItemNode]))throw Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[t]),ig(t),null};var og=ra;function lg({editor:t,containerElem:e}){return S.default.useEffect(()=>{const n=r=>{e.current.contains(r.target)||t.update(()=>{const i=w.$getSelection();w.$isNodeSelection(i)&&w.$setSelection(null)})};return window.addEventListener("mousedown",n),()=>{window.removeEventListener("mousedown",n)}},[t,e]),null}function oa({containerElem:t=document.querySelector(".koenig-editor")}){const[e]=he.useLexicalComposerContext();return lg({editor:e,containerElem:t})}var Q={},ae={},la={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 _(m){return m instanceof a?new a(m.type,_(m.content),m.alias):Array.isArray(m)?m.map(_):m.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(_){return Object.prototype.toString.call(_).slice(8,-1)},objId:function(_){return _.__id||Object.defineProperty(_,"__id",{value:++o}),_.__id},clone:function _(m,C){C=C||{};var E,N;switch(s.util.type(m)){case"Object":if(N=s.util.objId(m),C[N])return C[N];E={},C[N]=E;for(var O in m)m.hasOwnProperty(O)&&(E[O]=_(m[O],C));return E;case"Array":return N=s.util.objId(m),C[N]?C[N]:(E=[],C[N]=E,m.forEach(function(F,D){E[D]=_(F,C)}),E);default:return m}},getLanguage:function(_){for(;_;){var m=i.exec(_.className);if(m)return m[1].toLowerCase();_=_.parentElement}return"none"},setLanguage:function(_,m){_.className=_.className.replace(RegExp(i,"gi"),""),_.classList.add("language-"+m)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(E){var _=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(E.stack)||[])[1];if(_){var m=document.getElementsByTagName("script");for(var C in m)if(m[C].src==_)return m[C]}return null}},isActive:function(_,m,C){for(var E="no-"+m;_;){var N=_.classList;if(N.contains(m))return!0;if(N.contains(E))return!1;_=_.parentElement}return!!C}},languages:{plain:l,plaintext:l,text:l,txt:l,extend:function(_,m){var C=s.util.clone(s.languages[_]);for(var E in m)C[E]=m[E];return C},insertBefore:function(_,m,C,E){E=E||s.languages;var N=E[_],O={};for(var F in N)if(N.hasOwnProperty(F)){if(F==m)for(var D in C)C.hasOwnProperty(D)&&(O[D]=C[D]);C.hasOwnProperty(F)||(O[F]=N[F])}var W=E[_];return E[_]=O,s.languages.DFS(s.languages,function(P,B){B===W&&P!=_&&(this[P]=O)}),O},DFS:function _(m,C,E,N){N=N||{};var O=s.util.objId;for(var F in m)if(m.hasOwnProperty(F)){C.call(m,F,m[F],E||F);var D=m[F],W=s.util.type(D);W==="Object"&&!N[O(D)]?(N[O(D)]=!0,_(D,C,null,N)):W==="Array"&&!N[O(D)]&&(N[O(D)]=!0,_(D,C,F,N))}}},plugins:{},highlightAll:function(_,m){s.highlightAllUnder(document,_,m)},highlightAllUnder:function(_,m,C){var E={callback:C,container:_,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",E),E.elements=Array.prototype.slice.apply(E.container.querySelectorAll(E.selector)),s.hooks.run("before-all-elements-highlight",E);for(var N=0,O;O=E.elements[N++];)s.highlightElement(O,m===!0,E.callback)},highlightElement:function(_,m,C){var E=s.util.getLanguage(_),N=s.languages[E];s.util.setLanguage(_,E);var O=_.parentElement;O&&O.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(O,E);var F=_.textContent,D={element:_,language:E,grammar:N,code:F};function W(B){D.highlightedCode=B,s.hooks.run("before-insert",D),D.element.innerHTML=D.highlightedCode,s.hooks.run("after-highlight",D),s.hooks.run("complete",D),C&&C.call(D.element)}if(s.hooks.run("before-sanity-check",D),O=D.element.parentElement,O&&O.nodeName.toLowerCase()==="pre"&&!O.hasAttribute("tabindex")&&O.setAttribute("tabindex","0"),!D.code){s.hooks.run("complete",D),C&&C.call(D.element);return}if(s.hooks.run("before-highlight",D),!D.grammar){W(s.util.encode(D.code));return}if(m&&r.Worker){var P=new Worker(s.filename);P.onmessage=function(B){W(B.data)},P.postMessage(JSON.stringify({language:D.language,code:D.code,immediateClose:!0}))}else W(s.highlight(D.code,D.grammar,D.language))},highlight:function(_,m,C){var E={code:_,grammar:m,language:C};if(s.hooks.run("before-tokenize",E),!E.grammar)throw new Error('The language "'+E.language+'" has no grammar.');return E.tokens=s.tokenize(E.code,E.grammar),s.hooks.run("after-tokenize",E),a.stringify(s.util.encode(E.tokens),E.language)},tokenize:function(_,m){var C=m.rest;if(C){for(var E in C)m[E]=C[E];delete m.rest}var N=new d;return g(N,N.head,_),u(_,N,m,N.head,0),f(N)},hooks:{all:{},add:function(_,m){var C=s.hooks.all;C[_]=C[_]||[],C[_].push(m)},run:function(_,m){var C=s.hooks.all[_];if(!(!C||!C.length))for(var E=0,N;N=C[E++];)N(m)}},Token:a};r.Prism=s;function a(_,m,C,E){this.type=_,this.content=m,this.alias=C,this.length=(E||"").length|0}a.stringify=function _(m,C){if(typeof m=="string")return m;if(Array.isArray(m)){var E="";return m.forEach(function(W){E+=_(W,C)}),E}var N={type:m.type,content:_(m.content,C),tag:"span",classes:["token",m.type],attributes:{},language:C},O=m.alias;O&&(Array.isArray(O)?Array.prototype.push.apply(N.classes,O):N.classes.push(O)),s.hooks.run("wrap",N);var F="";for(var D in N.attributes)F+=" "+D+'="'+(N.attributes[D]||"").replace(/"/g,""")+'"';return"<"+N.tag+' class="'+N.classes.join(" ")+'"'+F+">"+N.content+"</"+N.tag+">"};function c(_,m,C,E){_.lastIndex=m;var N=_.exec(C);if(N&&E&&N[1]){var O=N[1].length;N.index+=O,N[0]=N[0].slice(O)}return N}function u(_,m,C,E,N,O){for(var F in C)if(!(!C.hasOwnProperty(F)||!C[F])){var D=C[F];D=Array.isArray(D)?D:[D];for(var W=0;W<D.length;++W){if(O&&O.cause==F+","+W)return;var P=D[W],B=P.inside,q=!!P.lookbehind,ye=!!P.greedy,de=P.alias;if(ye&&!P.pattern.global){var ue=P.pattern.toString().match(/[imsuy]*$/)[0];P.pattern=RegExp(P.pattern.source,ue+"g")}for(var at=P.pattern||P,ee=E.next,Ee=N;ee!==m.tail&&!(O&&Ee>=O.reach);Ee+=ee.value.length,ee=ee.next){var $e=ee.value;if(m.length>_.length)return;if(!($e instanceof a)){var Pe=1,se;if(ye){if(se=c(at,Ee,_,q),!se||se.index>=_.length)break;var Mr=se.index,br=se.index+se[0].length,ct=Ee;for(ct+=ee.value.length;Mr>=ct;)ee=ee.next,ct+=ee.value.length;if(ct-=ee.value.length,Ee=ct,ee.value instanceof a)continue;for(var Dn=ee;Dn!==m.tail&&(ct<br||typeof Dn.value=="string");Dn=Dn.next)Pe++,ct+=Dn.value.length;Pe--,$e=_.slice(Ee,ct),se.index-=Ee}else if(se=c(at,0,$e,q),!se)continue;var Mr=se.index,Or=se[0],Xi=$e.slice(0,Mr),ac=$e.slice(Mr+Or.length),Qi=Ee+$e.length;O&&Qi>O.reach&&(O.reach=Qi);var Rr=ee.prev;Xi&&(Rr=g(m,Rr,Xi),Ee+=Xi.length),p(m,Rr,Pe);var eg=new a(F,B?s.tokenize(Or,B):Or,de,Or);if(ee=g(m,Rr,eg),ac&&g(m,ee,ac),Pe>1){var qi={cause:F+","+W,reach:Qi};u(_,m,C,ee.prev,Ee,qi),O&&qi.reach>O.reach&&(O.reach=qi.reach)}}}}}}function d(){var _={value:null,prev:null,next:null},m={value:null,prev:_,next:null};_.next=m,this.head=_,this.tail=m,this.length=0}function g(_,m,C){var E=m.next,N={value:C,prev:m,next:E};return m.next=N,E.prev=N,_.length++,N}function p(_,m,C){for(var E=m.next,N=0;N<C&&E!==_.tail;N++)E=E.next;m.next=E,E.prev=m,_.length-=N}function f(_){for(var m=[],C=_.head.next;C!==_.tail;)m.push(C.value),C=C.next;return m}if(!r.document)return r.addEventListener&&(s.disableWorkerMessageHandler||r.addEventListener("message",function(_){var m=JSON.parse(_.data),C=m.language,E=m.code,N=m.immediateClose;r.postMessage(s.highlight(E,s.languages[C],C)),N&&r.close()},!1)),s;var v=s.util.currentScript();v&&(s.filename=v.src,v.hasAttribute("data-manual")&&(s.manual=!0));function k(){s.manual||s.highlightAll()}if(!s.manual){var T=document.readyState;T==="loading"||T==="interactive"&&v&&v.defer?document.addEventListener("DOMContentLoaded",k):window.requestAnimationFrame?window.requestAnimationFrame(k):window.setTimeout(k,16)}return s}(e);t.exports&&(t.exports=n),typeof po<"u"&&(po.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(/&/,"&"))}),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(v,k){return"\u2716 Error "+v+" while fetching file: "+k},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",u="failed",d="pre[data-src]:not(["+s+'="'+c+'"]):not(['+s+'="'+a+'"])';function g(v,k,T){var _=new XMLHttpRequest;_.open("GET",v,!0),_.onreadystatechange=function(){_.readyState==4&&(_.status<400&&_.responseText?k(_.responseText):_.status>=400?T(i(_.status,_.statusText)):T(o))},_.send(null)}function p(v){var k=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(v||"");if(k){var T=Number(k[1]),_=k[2],m=k[3];return _?m?[T,Number(m)]:[T,void 0]:[T,T]}}n.hooks.add("before-highlightall",function(v){v.selector+=", "+d}),n.hooks.add("before-sanity-check",function(v){var k=v.element;if(k.matches(d)){v.code="",k.setAttribute(s,a);var T=k.appendChild(document.createElement("CODE"));T.textContent=r;var _=k.getAttribute("data-src"),m=v.language;if(m==="none"){var C=(/\.(\w+)$/.exec(_)||[,"none"])[1];m=l[C]||C}n.util.setLanguage(T,m),n.util.setLanguage(k,m);var E=n.plugins.autoloader;E&&E.loadLanguages(m),g(_,function(N){k.setAttribute(s,c);var O=p(k.getAttribute("data-range"));if(O){var F=N.split(/\r\n?|\n/g),D=O[0],W=O[1]==null?F.length:O[1];D<0&&(D+=F.length),D=Math.max(0,Math.min(D-1,F.length)),W<0&&(W+=F.length),W=Math.max(0,Math.min(W,F.length)),N=F.slice(D,W).join(`
|
|
39
|
-
`),k.hasAttribute("data-start")||k.setAttribute("data-start",String(D+1))}T.textContent=N,n.highlightElement(T)},function(N){k.setAttribute(s,u),T.textContent=N})}}),n.plugins.fileHighlight={highlight:function(k){for(var T=(k||document).querySelectorAll(d),_=0,m;m=T[_++];)n.highlightElement(m)}};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)}}()})(la),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(/&/,"&"))}),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(u){return u=u.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+u+")")}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(u){["url","bold","italic","strike","code-snippet"].forEach(function(d){u!==d&&(t.languages.markdown[u].inside.content.inside[d]=t.languages.markdown[d])})}),t.hooks.add("after-tokenize",function(u){if(u.language!=="markdown"&&u.language!=="md")return;function d(g){if(!(!g||typeof g=="string"))for(var p=0,f=g.length;p<f;p++){var v=g[p];if(v.type!=="code"){d(v.content);continue}var k=v.content[1],T=v.content[3];if(k&&T&&k.type==="code-language"&&T.type==="code-block"&&typeof k.content=="string"){var _=k.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");_=(/[a-z][\w-]*/i.exec(_)||[""])[0].toLowerCase();var m="language-"+_;T.alias?typeof T.alias=="string"?T.alias=[T.alias,m]:T.alias.push(m):T.alias=[m]}}}d(u.tokens)}),t.hooks.add("wrap",function(u){if(u.type==="code-block"){for(var d="",g=0,p=u.classes.length;g<p;g++){var f=u.classes[g],v=/language-(.+)/.exec(f);if(v){d=v[1];break}}var k=t.languages[d];if(k)u.content=t.highlight(c(u.content),k,d);else if(d&&d!=="none"&&t.plugins.autoloader){var T="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);u.attributes.id=T,t.plugins.autoloader.loadLanguages(d,function(){var _=document.getElementById(T);_&&(_.innerHTML=t.highlight(_.textContent,t.languages[d],d))})}}});var l=RegExp(t.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},a=String.fromCodePoint||String.fromCharCode;function c(u){var d=u.replace(l,"");return d=d.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(g,p){if(p=p.toLowerCase(),p[0]==="#"){var f;return p[1]==="x"?f=parseInt(p.slice(2),16):f=Number(p.slice(1)),a(f)}else{var v=s[p];return v||g}}),d}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://,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 Gt=la.exports,bn=ve,L=w;let sa={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"},aa={javascript:"js",md:"markdown",plaintext:"plain",python:"py",text:"plain"};function ca(t){return aa[t]||t}class wt extends L.TextNode{constructor(e,n,r){super(e,r),this.__highlightType=n}static getType(){return"code-highlight"}static clone(e){return new wt(e.__text,e.__highlightType||void 0,e.__key)}getHighlightType(){return this.getLatest().__highlightType}createDOM(e){let n=super.createDOM(e);return e=Pi(e.theme,this.__highlightType),bn.addClassNamesToElement(n,e),n}updateDOM(e,n,r){let i=super.updateDOM(e,n,r);return e=Pi(r.theme,e.__highlightType),r=Pi(r.theme,this.__highlightType),e!==r&&(e&&bn.removeClassNamesFromElement(n,e),r&&bn.addClassNamesToElement(n,r)),i}static importJSON(e){let n=Et(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 Pi(t,e){return e&&t&&t.codeHighlight&&t.codeHighlight[e]}function Et(t,e){return new wt(t,e)}function pe(t){return t instanceof wt}function Mn(t){let e=null,n=t.getPreviousSiblings();for(n.push(t);0<n.length&&(t=n.pop(),pe(t)&&(e=t),!L.$isLineBreakNode(t)););return e}function Fi(t){let e=null,n=t.getNextSiblings();for(n.unshift(t);0<n.length&&(t=n.shift(),pe(t)&&(e=t),!L.$isLineBreakNode(t)););return e}let da=t=>t!=null&&Gt.languages.hasOwnProperty(t)?t:void 0;class lt extends L.ElementNode{static getType(){return"code"}static clone(e){return new lt(e.__language,e.__key)}constructor(e,n){super(n),this.__language=da(e)}createDOM(e){let n=document.createElement("code");return bn.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)?{conversion:ua,priority:1}:null,div:()=>({conversion:su,priority:1}),pre:()=>({conversion:ua,priority:0}),table:e=>zi(e)?{conversion:au,priority:4}:null,td:e=>{let n=e.closest("table");return e.classList.contains("js-file-line")?{conversion:cu,priority:4}:n&&zi(n)?{conversion:ga,priority:4}:null},tr:e=>(e=e.closest("table"))&&zi(e)?{conversion:ga,priority:4}:null}}static importJSON(e){let n=On(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(v){return v instanceof a?new a(v.type,p(v.content),v.alias):Array.isArray(v)?v.map(p):v.replace(/&/g,"&").replace(/</g,"<").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,N){N=N||{};var k,E;switch(s.util.type(v)){case"Object":if(E=s.util.objId(v),N[E])return N[E];k={},N[E]=k;for(var O in v)v.hasOwnProperty(O)&&(k[O]=p(v[O],N));return k;case"Array":return E=s.util.objId(v),N[E]?N[E]:(k=[],N[E]=k,v.forEach(function(D,A){k[A]=p(D,N)}),k);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(k){var p=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(k.stack)||[])[1];if(p){var v=document.getElementsByTagName("script");for(var N in v)if(v[N].src==p)return v[N]}return null}},isActive:function(p,v,N){for(var k="no-"+v;p;){var E=p.classList;if(E.contains(v))return!0;if(E.contains(k))return!1;p=p.parentElement}return!!N}},languages:{plain:l,plaintext:l,text:l,txt:l,extend:function(p,v){var N=s.util.clone(s.languages[p]);for(var k in v)N[k]=v[k];return N},insertBefore:function(p,v,N,k){k=k||s.languages;var E=k[p],O={};for(var D in E)if(E.hasOwnProperty(D)){if(D==v)for(var A in N)N.hasOwnProperty(A)&&(O[A]=N[A]);N.hasOwnProperty(D)||(O[D]=E[D])}var U=k[p];return k[p]=O,s.languages.DFS(s.languages,function(P,H){H===U&&P!=p&&(this[P]=O)}),O},DFS:function p(v,N,k,E){E=E||{};var O=s.util.objId;for(var D in v)if(v.hasOwnProperty(D)){N.call(v,D,v[D],k||D);var A=v[D],U=s.util.type(A);U==="Object"&&!E[O(A)]?(E[O(A)]=!0,p(A,N,null,E)):U==="Array"&&!E[O(A)]&&(E[O(A)]=!0,p(A,N,D,E))}}},plugins:{},highlightAll:function(p,v){s.highlightAllUnder(document,p,v)},highlightAllUnder:function(p,v,N){var k={callback:N,container:p,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",k),k.elements=Array.prototype.slice.apply(k.container.querySelectorAll(k.selector)),s.hooks.run("before-all-elements-highlight",k);for(var E=0,O;O=k.elements[E++];)s.highlightElement(O,v===!0,k.callback)},highlightElement:function(p,v,N){var k=s.util.getLanguage(p),E=s.languages[k];s.util.setLanguage(p,k);var O=p.parentElement;O&&O.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(O,k);var D=p.textContent,A={element:p,language:k,grammar:E,code:D};function U(H){A.highlightedCode=H,s.hooks.run("before-insert",A),A.element.innerHTML=A.highlightedCode,s.hooks.run("after-highlight",A),s.hooks.run("complete",A),N&&N.call(A.element)}if(s.hooks.run("before-sanity-check",A),O=A.element.parentElement,O&&O.nodeName.toLowerCase()==="pre"&&!O.hasAttribute("tabindex")&&O.setAttribute("tabindex","0"),!A.code){s.hooks.run("complete",A),N&&N.call(A.element);return}if(s.hooks.run("before-highlight",A),!A.grammar){U(s.util.encode(A.code));return}if(v&&r.Worker){var P=new Worker(s.filename);P.onmessage=function(H){U(H.data)},P.postMessage(JSON.stringify({language:A.language,code:A.code,immediateClose:!0}))}else U(s.highlight(A.code,A.grammar,A.language))},highlight:function(p,v,N){var k={code:p,grammar:v,language:N};if(s.hooks.run("before-tokenize",k),!k.grammar)throw new Error('The language "'+k.language+'" has no grammar.');return k.tokens=s.tokenize(k.code,k.grammar),s.hooks.run("after-tokenize",k),a.stringify(s.util.encode(k.tokens),k.language)},tokenize:function(p,v){var N=v.rest;if(N){for(var k in N)v[k]=N[k];delete v.rest}var E=new d;return g(E,E.head,p),u(p,E,v,E.head,0),h(E)},hooks:{all:{},add:function(p,v){var N=s.hooks.all;N[p]=N[p]||[],N[p].push(v)},run:function(p,v){var N=s.hooks.all[p];if(!(!N||!N.length))for(var k=0,E;E=N[k++];)E(v)}},Token:a};r.Prism=s;function a(p,v,N,k){this.type=p,this.content=v,this.alias=N,this.length=(k||"").length|0}a.stringify=function p(v,N){if(typeof v=="string")return v;if(Array.isArray(v)){var k="";return v.forEach(function(U){k+=p(U,N)}),k}var E={type:v.type,content:p(v.content,N),tag:"span",classes:["token",v.type],attributes:{},language:N},O=v.alias;O&&(Array.isArray(O)?Array.prototype.push.apply(E.classes,O):E.classes.push(O)),s.hooks.run("wrap",E);var D="";for(var A in E.attributes)D+=" "+A+'="'+(E.attributes[A]||"").replace(/"/g,""")+'"';return"<"+E.tag+' class="'+E.classes.join(" ")+'"'+D+">"+E.content+"</"+E.tag+">"};function c(p,v,N,k){p.lastIndex=v;var E=p.exec(N);if(E&&k&&E[1]){var O=E[1].length;E.index+=O,E[0]=E[0].slice(O)}return E}function u(p,v,N,k,E,O){for(var D in N)if(!(!N.hasOwnProperty(D)||!N[D])){var A=N[D];A=Array.isArray(A)?A:[A];for(var U=0;U<A.length;++U){if(O&&O.cause==D+","+U)return;var P=A[U],H=P.inside,re=!!P.lookbehind,q=!!P.greedy,ee=P.alias;if(q&&!P.pattern.global){var ce=P.pattern.toString().match(/[imsuy]*$/)[0];P.pattern=RegExp(P.pattern.source,ce+"g")}for(var jt=P.pattern||P,ie=k.next,de=E;ie!==v.tail&&!(O&&de>=O.reach);de+=ie.value.length,ie=ie.next){var Ce=ie.value;if(v.length>p.length)return;if(!(Ce instanceof a)){var Pe=1,ue;if(q){if(ue=c(jt,de,p,re),!ue||ue.index>=p.length)break;var Ar=ue.index,Rr=ue.index+ue[0].length,at=de;for(at+=ie.value.length;Ar>=at;)ie=ie.next,at+=ie.value.length;if(at-=ie.value.length,de=at,ie.value instanceof a)continue;for(var Dn=ie;Dn!==v.tail&&(at<Rr||typeof Dn.value=="string");Dn=Dn.next)Pe++,at+=Dn.value.length;Pe--,Ce=p.slice(de,at),ue.index-=de}else if(ue=c(jt,0,Ce,re),!ue)continue;var Ar=ue.index,Mr=ue[0],Xi=Ce.slice(0,Ar),ac=Ce.slice(Ar+Mr.length),Qi=de+Ce.length;O&&Qi>O.reach&&(O.reach=Qi);var $r=ie.prev;Xi&&($r=g(v,$r,Xi),de+=Xi.length),m(v,$r,Pe);var e1=new a(D,H?s.tokenize(Mr,H):Mr,ee,Mr);if(ie=g(v,$r,e1),ac&&g(v,ie,ac),Pe>1){var qi={cause:D+","+U,reach:Qi};u(p,v,N,ie.prev,de,qi),O&&qi.reach>O.reach&&(O.reach=qi.reach)}}}}}}function d(){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,N){var k=v.next,E={value:N,prev:v,next:k};return v.next=E,k.prev=E,p.length++,E}function m(p,v,N){for(var k=v.next,E=0;E<N&&k!==p.tail;E++)k=k.next;v.next=k,k.prev=v,p.length-=E}function h(p){for(var v=[],N=p.head.next;N!==p.tail;)v.push(N.value),N=N.next;return v}if(!r.document)return r.addEventListener&&(s.disableWorkerMessageHandler||r.addEventListener("message",function(p){var v=JSON.parse(p.data),N=v.language,k=v.code,E=v.immediateClose;r.postMessage(s.highlight(k,s.languages[N],N)),E&&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 T=document.readyState;T==="loading"||T==="interactive"&&_&&_.defer?document.addEventListener("DOMContentLoaded",C):window.requestAnimationFrame?window.requestAnimationFrame(C):window.setTimeout(C,16)}return s}(e);t.exports&&(t.exports=n),typeof po<"u"&&(po.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(/&/,"&"))}),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",u="failed",d="pre[data-src]:not(["+s+'="'+c+'"]):not(['+s+'="'+a+'"])';function g(_,C,T){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?T(i(p.status,p.statusText)):T(o))},p.send(null)}function m(_){var C=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(_||"");if(C){var T=Number(C[1]),p=C[2],v=C[3];return p?v?[T,Number(v)]:[T,void 0]:[T,T]}}n.hooks.add("before-highlightall",function(_){_.selector+=", "+d}),n.hooks.add("before-sanity-check",function(_){var C=_.element;if(C.matches(d)){_.code="",C.setAttribute(s,a);var T=C.appendChild(document.createElement("CODE"));T.textContent=r;var p=C.getAttribute("data-src"),v=_.language;if(v==="none"){var N=(/\.(\w+)$/.exec(p)||[,"none"])[1];v=l[N]||N}n.util.setLanguage(T,v),n.util.setLanguage(C,v);var k=n.plugins.autoloader;k&&k.loadLanguages(v),g(p,function(E){C.setAttribute(s,c);var O=m(C.getAttribute("data-range"));if(O){var D=E.split(/\r\n?|\n/g),A=O[0],U=O[1]==null?D.length:O[1];A<0&&(A+=D.length),A=Math.max(0,Math.min(A-1,D.length)),U<0&&(U+=D.length),U=Math.max(0,Math.min(U,D.length)),E=D.slice(A,U).join(`
|
|
39
|
+
`),C.hasAttribute("data-start")||C.setAttribute("data-start",String(A+1))}T.textContent=E,n.highlightElement(T)},function(E){C.setAttribute(s,u),T.textContent=E})}}),n.plugins.fileHighlight={highlight:function(C){for(var T=(C||document).querySelectorAll(d),p=0,v;v=T[p++];)n.highlightElement(v)}};var h=!1;n.fileHighlight=function(){h||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),h=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(la),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(/&/,"&"))}),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(u){return u=u.replace(/<inner>/g,function(){return e}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+u+")")}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(u){["url","bold","italic","strike","code-snippet"].forEach(function(d){u!==d&&(t.languages.markdown[u].inside.content.inside[d]=t.languages.markdown[d])})}),t.hooks.add("after-tokenize",function(u){if(u.language!=="markdown"&&u.language!=="md")return;function d(g){if(!(!g||typeof g=="string"))for(var m=0,h=g.length;m<h;m++){var _=g[m];if(_.type!=="code"){d(_.content);continue}var C=_.content[1],T=_.content[3];if(C&&T&&C.type==="code-language"&&T.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;T.alias?typeof T.alias=="string"?T.alias=[T.alias,v]:T.alias.push(v):T.alias=[v]}}}d(u.tokens)}),t.hooks.add("wrap",function(u){if(u.type==="code-block"){for(var d="",g=0,m=u.classes.length;g<m;g++){var h=u.classes[g],_=/language-(.+)/.exec(h);if(_){d=_[1];break}}var C=t.languages[d];if(C)u.content=t.highlight(c(u.content),C,d);else if(d&&d!=="none"&&t.plugins.autoloader){var T="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);u.attributes.id=T,t.plugins.autoloader.loadLanguages(d,function(){var p=document.getElementById(T);p&&(p.innerHTML=t.highlight(p.textContent,t.languages[d],d))})}}});var l=RegExp(t.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},a=String.fromCodePoint||String.fromCharCode;function c(u){var d=u.replace(l,"");return d=d.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(g,m){if(m=m.toLowerCase(),m[0]==="#"){var h;return m[1]==="x"?h=parseInt(m.slice(2),16):h=Number(m.slice(1)),a(h)}else{var _=s[m];return _||g}}),d}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://,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 Yt=la.exports,bn=ke,I=w;let sa={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"},aa={javascript:"js",md:"markdown",plaintext:"plain",python:"py",text:"plain"};function ca(t){return aa[t]||t}class Ct extends I.TextNode{constructor(e,n,r){super(e,r),this.__highlightType=n}static getType(){return"code-highlight"}static clone(e){return new Ct(e.__text,e.__highlightType||void 0,e.__key)}getHighlightType(){return this.getLatest().__highlightType}createDOM(e){let n=super.createDOM(e);return e=Pi(e.theme,this.__highlightType),bn.addClassNamesToElement(n,e),n}updateDOM(e,n,r){let i=super.updateDOM(e,n,r);return e=Pi(r.theme,e.__highlightType),r=Pi(r.theme,this.__highlightType),e!==r&&(e&&bn.removeClassNamesFromElement(n,e),r&&bn.addClassNamesToElement(n,r)),i}static importJSON(e){let n=wt(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 Pi(t,e){return e&&t&&t.codeHighlight&&t.codeHighlight[e]}function wt(t,e){return new Ct(t,e)}function xe(t){return t instanceof Ct}function On(t){let e=null,n=t.getPreviousSiblings();for(n.push(t);0<n.length&&(t=n.pop(),xe(t)&&(e=t),!I.$isLineBreakNode(t)););return e}function Fi(t){let e=null,n=t.getNextSiblings();for(n.unshift(t);0<n.length&&(t=n.shift(),xe(t)&&(e=t),!I.$isLineBreakNode(t)););return e}let da=t=>t!=null&&Yt.languages.hasOwnProperty(t)?t:void 0;class lt extends I.ElementNode{static getType(){return"code"}static clone(e){return new lt(e.__language,e.__key)}constructor(e,n){super(n),this.__language=da(e)}createDOM(e){let n=document.createElement("code");return bn.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)?{conversion:ua,priority:1}:null,div:()=>({conversion:sg,priority:1}),pre:()=>({conversion:ua,priority:0}),table:e=>zi(e)?{conversion:ag,priority:4}:null,td:e=>{let n=e.closest("table");return e.classList.contains("js-file-line")?{conversion:cg,priority:4}:n&&zi(n)?{conversion:ga,priority:4}:null},tr:e=>(e=e.closest("table"))&&zi(e)?{conversion:ga,priority:4}:null}}static importJSON(e){let n=Rn(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=
|
|
42
|
-
`);for(var r=0;r<n.length;r++){let i=n[r];i.length&&e.push(
|
|
43
|
-
`+ ++a);n.setAttribute("data-gutter",s)}}})}),t.registerNodeTransform(lt,e=>ma(e,t)),t.registerNodeTransform(
|
|
44
|
-
|
|
45
|
-
`)}}function
|
|
46
|
-
`):
|
|
47
|
-
`),o=i.length;r=
|
|
48
|
-
`)),u.append(s),c.append(u),c=[u,d];break e}}c=[null,a]}let[
|
|
49
|
-
`)},
|
|
41
|
+
`&&e.isCollapsed()&&e.anchor.key===this.__key&&e.anchor.offset===r)return n[r-1].remove(),n[r-2].remove(),e=I.$createParagraphNode(),this.insertAfter(e),e;n=e.anchor.getNode();var i=On(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=wt(r),n.insertAfter(r),e.insertNodes([I.$createLineBreakNode()]),r.select(),r}return null}canInsertTab(){let e=I.$getSelection();return!!(I.$isRangeSelection(e)&&e.isCollapsed())}canIndent(){return!1}collapseAtStart(){let e=I.$createParagraphNode();return this.getChildren().forEach(n=>e.append(n)),this.replace(e),!0}setLanguage(e){this.getWritable().__language=da(e)}getLanguage(){return this.getLatest().__language}}function Rn(t){return new lt(t)}function Cr(t){return t instanceof lt}function ua(){return{node:Rn(),preformatted:!0}}function sg(t){let e=t.style.fontFamily.match("monospace")!==null;return{after:n=>{let r=t.parentNode;return r!=null&&t!==r.lastChild&&n.push(I.$createLineBreakNode()),n},node:e?Rn():null,preformatted:e}}function ag(){return{node:Rn(),preformatted:!0}}function ga(){return{node:null}}function cg(t){return{after:e=>(t.parentNode&&t.parentNode.nextSibling&&e.push(I.$createLineBreakNode()),e),node:null}}function zi(t){return t.classList.contains("js-file-line-container")}function wr(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 fa(t){let e=null,n=-1;var r=t.getPreviousSiblings();for(r.push(t);0<r.length;){var i=r.pop();if(xe(i)){var o=i.getTextContent();o=wr(o,!0),o!==-1&&(e=i,n=o)}if(I.$isLineBreakNode(i))break}if(e===null)for(t=t.getNextSiblings();0<t.length;){if(r=t.shift(),xe(r)&&(i=r.getTextContent(),i=wr(i,!0),i!==-1)){e=r,n=i;break}if(I.$isLineBreakNode(r))break}return{node:e,offset:n}}function ha(t){let e=null,n=-1;var r=t.getNextSiblings();for(r.unshift(t);0<r.length;){var i=r.shift();if(xe(i)){var o=i.getTextContent();o=wr(o,!1),o!==-1&&(e=i,n=o+1)}if(I.$isLineBreakNode(i))break}if(e===null)for(t=t.getPreviousSiblings();0<t.length;){if(r=t.pop(),xe(r)&&(i=r.getTextContent(),i=wr(i,!1),i!==-1)){e=r,n=i+1;break}if(I.$isLineBreakNode(r))break}return{node:e,offset:n}}function pa(t,e){let n=t.getParent();Cr(n)?ma(n,e):xe(t)&&t.replace(I.$createTextNode(t.__text))}let Bi=!1;function ma(t,e){if(!Bi){Bi=!0,t.getLanguage()===void 0&&t.setLanguage("javascript");var n=t.getKey();e.update(()=>{dg(n,()=>{var r=I.$getNodeByKey(n);if(!Cr(r)||!r.isAttached())return!1;var i=r.getTextContent();i=Yt.tokenize(i,Yt.languages[r.getLanguage()||""]||Yt.languages.javascript),i=xa(i);var o=r.getChildren();for(r=0;r<o.length&&_a(o[r],i[r]);)r++;var l=o.length;let s=i.length,a=Math.min(l,s)-r,c=0;for(;c<a;)if(c++,!_a(o[l-c],i[s-c])){c--;break}o=r,l-=c,i=i.slice(r,s-c);let{from:u,to:d,nodesForReplacement:g}={from:o,nodesForReplacement:i,to:l};return u!==d||g.length?(t.splice(u,d-u,g),!0):!1})},{onUpdate:()=>{Bi=!1},skipTransforms:!0})}}function xa(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(wt(i)),r<n.length-1&&e.push(I.$createLineBreakNode())}}else({content:r}=n),typeof r=="string"?e.push(wt(r,n.type)):Array.isArray(r)&&r.length===1&&typeof r[0]=="string"?e.push(wt(r[0],n.type)):Array.isArray(r)&&e.push(...xa(r))}),e}function dg(t,e){if(t=I.$getNodeByKey(t),Cr(t)&&t.isAttached()){var n=I.$getSelection();if(I.$isRangeSelection(n)){n=n.anchor;var r=n.offset,i=n.type==="element"&&I.$isLineBreakNode(t.getChildAtIndex(n.offset-1)),o=0;if(!i){let l=n.getNode();o=r+l.getPreviousSiblings().reduce((s,a)=>s+(I.$isLineBreakNode(a)?0:a.getTextContentSize()),0)}e()&&(i?n.getNode().select(r,r):t.getChildren().some(l=>{if(I.$isTextNode(l)){let s=l.getTextContentSize();if(s>=o)return l.select(o,o),!0;o-=s}return!1}))}else e()}}function _a(t,e){return xe(t)&&xe(e)?t.__text===e.__text&&t.__highlightType===e.__highlightType:!!(I.$isLineBreakNode(t)&&I.$isLineBreakNode(e))}function va(t){var e=I.$getSelection();if(!I.$isRangeSelection(e)||e.isCollapsed())return!1;e=e.getNodes();for(var n=0;n<e.length;n++){var r=e[n];if(!xe(r)&&!I.$isLineBreakNode(r))return!1}for(n=On(e[0]),n!=null&&ya(n,t),n=1;n<e.length;n++)r=e[n],I.$isLineBreakNode(e[n-1])&&xe(r)&&ya(r,t);return!0}function ya(t,e){let n=t.getTextContent();e===I.INDENT_CONTENT_COMMAND?0<n.length&&/\s/.test(n[0])?t.setTextContent(" "+n):(e=wt(" "),t.insertBefore(e)):n.indexOf(" ")===0&&(n.length===1?t.remove():t.setTextContent(n.substring(1)))}function ka(t,e){let n=I.$getSelection();if(!I.$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===I.KEY_ARROW_UP_COMMAND;if(!xe(s)||!xe(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 u=On(s);let d=Fi(a);if(u==null||d==null)return!1;let g=u.getNodesBetween(d);for(let h=0;h<g.length;h++){let _=g[h];if(!xe(_)&&!I.$isLineBreakNode(_))return!1}if(e.preventDefault(),e.stopPropagation(),e=c?u.getPreviousSibling():d.getNextSibling(),!I.$isLineBreakNode(e)||(u=c?e.getPreviousSibling():e.getNextSibling(),u==null))return!0;c=c?On(u):Fi(u);let m=c!=null?c:u;return e.remove(),g.forEach(h=>h.remove()),t===I.KEY_ARROW_UP_COMMAND?(g.forEach(h=>m.insertBefore(h)),m.insertBefore(e)):(m.insertAfter(e),m=e,g.forEach(h=>{m.insertAfter(h),m=h})),n.setTextNodeRange(s,o,a,l),!0}function Ca(t,e){let n=I.$getSelection();if(!I.$isRangeSelection(n))return!1;let{anchor:r,focus:i}=n,o=r.getNode(),l=i.getNode();if(t=t===I.MOVE_TO_START,!xe(o)||!xe(l))return!1;let s,a;return t?{node:s,offset:a}=fa(l):{node:s,offset:a}=ha(l),s!==null&&a!==-1&&n.setTextNodeRange(s,a,s,a),e.preventDefault(),e.stopPropagation(),!0}ae.$createCodeHighlightNode=wt,ae.$createCodeNode=Rn,ae.$isCodeHighlightNode=xe,ae.$isCodeNode=Cr,ae.CODE_LANGUAGE_FRIENDLY_NAME_MAP=sa,ae.CODE_LANGUAGE_MAP=aa,ae.CodeHighlightNode=Ct,ae.CodeNode=lt,ae.DEFAULT_CODE_LANGUAGE="javascript",ae.getCodeLanguages=()=>Object.keys(Yt.languages).filter(t=>typeof Yt.languages[t]!="function").sort(),ae.getDefaultCodeLanguage=()=>"javascript",ae.getEndOfCodeInLine=ha,ae.getFirstCodeHighlightNodeOfLine=On,ae.getLanguageFriendlyName=function(t){return t=ca(t),sa[t]||t},ae.getLastCodeHighlightNodeOfLine=Fi,ae.getStartOfCodeInLine=fa,ae.normalizeCodeLang=ca,ae.registerCodeHighlighting=function(t){if(!t.hasNodes([lt,Ct]))throw Error("CodeHighlightPlugin: CodeNode or CodeHighlightNode not registered on editor");return bn.mergeRegister(t.registerMutationListener(lt,e=>{t.update(()=>{for(let[i,o]of e)if(o!=="destroyed"){var n=I.$getNodeByKey(i);if(n!==null)e:{var r=n;if(n=t.getElementByKey(r.getKey()),n===null)break e;r=r.getChildren();let l=r.length;if(l===n.__cachedChildrenLength)break e;n.__cachedChildrenLength=l;let s="1",a=1;for(let c=0;c<l;c++)I.$isLineBreakNode(r[c])&&(s+=`
|
|
43
|
+
`+ ++a);n.setAttribute("data-gutter",s)}}})}),t.registerNodeTransform(lt,e=>ma(e,t)),t.registerNodeTransform(I.TextNode,e=>pa(e,t)),t.registerNodeTransform(Ct,e=>pa(e,t)),t.registerCommand(I.INDENT_CONTENT_COMMAND,()=>va(I.INDENT_CONTENT_COMMAND),I.COMMAND_PRIORITY_LOW),t.registerCommand(I.OUTDENT_CONTENT_COMMAND,()=>va(I.OUTDENT_CONTENT_COMMAND),I.COMMAND_PRIORITY_LOW),t.registerCommand(I.KEY_ARROW_UP_COMMAND,e=>ka(I.KEY_ARROW_UP_COMMAND,e),I.COMMAND_PRIORITY_LOW),t.registerCommand(I.KEY_ARROW_DOWN_COMMAND,e=>ka(I.KEY_ARROW_DOWN_COMMAND,e),I.COMMAND_PRIORITY_LOW),t.registerCommand(I.MOVE_TO_END,e=>Ca(I.MOVE_TO_END,e),I.COMMAND_PRIORITY_LOW),t.registerCommand(I.MOVE_TO_START,e=>Ca(I.MOVE_TO_START,e),I.COMMAND_PRIORITY_LOW))};var ug=ae,W=w,An=ug,_e=mt,st=xt,gg=ke,Hi=As;function Ki(t,e){let n={};for(let r of t)t=e(r),n[t]?n[t].push(r):n[t]=[r];return n}function Ui(t){return t=Ki(t,e=>e.type),{element:t.element||[],textFormat:t["text-format"]||[],textMatch:t["text-match"]||[]}}let Er=/[!-/:-@[-`{-~\s]/;function fg(t){let e=Ui(t),n=e.textFormat.filter(r=>r.format.length===1);return()=>{let r=[];var i=W.$getRoot().getChildren();for(let o of i)i=hg(o,e.element,n,e.textMatch),i!=null&&r.push(i);return r.join(`
|
|
44
|
+
|
|
45
|
+
`)}}function hg(t,e,n,r){for(let i of e)if(e=i.export(t,o=>Nr(o,n,r)),e!=null)return e;return W.$isElementNode(t)?Nr(t,n,r):null}function Nr(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=>Nr(l,e,n),(l,s)=>wa(l,s,e)),t!=null){r.push(t);continue e}W.$isLineBreakNode(i)?r.push(`
|
|
46
|
+
`):W.$isTextNode(i)?r.push(wa(i,i.getTextContent(),e)):W.$isElementNode(i)&&r.push(Nr(i,e,n))}return r.join("")}function wa(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(Wi(t,n)&&!o.has(n)){o.add(n);var l=Ea(t,!0);Wi(l,n)||(i=a+i),l=Ea(t,!1),Wi(l,n)||(i+=a)}}return e.replace(r,i)}function Ea(t,e){let n=e?t.getPreviousSibling():t.getNextSibling();for(n||(t=t.getParentOrThrow(),t.isInline()&&(n=e?t.getPreviousSibling():t.getNextSibling()));n;){if(W.$isElementNode(n)){if(!n.isInline())break;if(t=e?n.getLastDescendant():n.getFirstDescendant(),W.$isTextNode(t))return t;n=e?n.getPreviousSibling():n.getNextSibling()}if(W.$isTextNode(n))return n;if(!W.$isElementNode(n))break}return null}function Wi(t,e){return W.$isTextNode(t)&&t.hasFormat(e)}let Gt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",pg=Gt&&"documentMode"in document?document.documentMode:null;Gt&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Gt&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Gt&&"InputEvent"in window&&!pg&&"getTargetRanges"in new window.InputEvent("input");let Na=Gt&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),Ta=Gt&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,mg=/^\s{0,3}$/,Sa=/^```(\w{1,10})?\s?$/;function xg(t){let e=Ui(t),n=vg(e.textFormat);return r=>{var i=r.split(`
|
|
47
|
+
`),o=i.length;r=W.$getRoot(),r.clear();for(let h=0;h<o;h++){var l=i[h];e:{var s=i,a=h,c=r,u=s[a].match(Sa);if(u){for(var d=a,g=s.length;++d<g;)if(s[d].match(Sa)){u=An.$createCodeNode(u[1]),s=W.$createTextNode(s.slice(a+1,d).join(`
|
|
48
|
+
`)),u.append(s),c.append(u),c=[u,d];break e}}c=[null,a]}let[_,C]=c;if(_!=null)h=C;else{c=l,g=r;var m=e.element;d=n,s=e.textMatch,a=c.trim(),u=W.$createTextNode(a),l=W.$createParagraphNode(),l.append(u),g.append(l);for(let{regExp:T,replace:p}of m)if(g=c.match(T)){u.setTextContent(c.slice(g[0].length)),p(l,[u],g,!0);break}Tr(u,d,s),l.isAttached()&&0<a.length&&(c=l.getPreviousSibling(),W.$isParagraphNode(c)||st.$isQuoteNode(c)||_e.$isListNode(c))&&(d=c,_e.$isListNode(c)&&(c=c.getLastDescendant(),d=c==null?null:gg.$findMatchingParent(c,_e.$isListItemNode)),d!=null&&0<d.getTextContentSize()&&(d.splice(d.getChildrenSize(),0,[W.$createLineBreakNode(),...l.getChildren()]),l.remove()))}}i=r.getChildren();for(let h of i)i=h,W.$isParagraphNode(i)?(o=i.getFirstChild(),i=o==null||i.getChildrenSize()===1&&W.$isTextNode(o)&&mg.test(o.getTextContent())):i=!1,i&&h.remove();r.selectEnd()}}function Tr(t,e,n){let r=t.getTextContent(),i=_g(r,e);if(i){if(i[0]===r)var o=t;else{var l=i.index||0,s=l+i[0].length;l===0?[o,a]=t.splitText(s):[c,o,a]=t.splitText(l,s)}if(o.setTextContent(i[2]),l=e.transformersByTag[i[1]])for(let u of l.format)o.hasFormat(u)||o.toggleFormat(u);o.hasFormat("code")||Tr(o,e,n),c&&Tr(c,e,n),a&&Tr(a,e,n)}else e:for(e=t;e;){for(l of n)if(o=e.getTextContent().match(l.importRegExp)){var a=o.index||0,c=a+o[0].length;a===0?[s,e]=e.splitText(c):[,s,e]=e.splitText(a,c),l.replace(s,o);continue e}break}}function _g(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&&!Er.test(r)||i&&!Er.test(i)))return n}}return null}function vg(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]=Na||Ta?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((Na||Ta?"":"(?<![\\\\])")+"("+r.join("|")+")","g"),transformersByTag:e}}function ba(t,e,n){let r=n.length;for(;e>=r;e--){let i=e-r;if(Oa(t,i,n,0,r)&&t[i+r]!==" ")return i}return-1}function Oa(t,e,n,r,i){for(let o=0;o<i;o++)if(t[e+o]!==n[r+o])return!1;return!0}let Ra=t=>(e,n,r)=>{r=t(r),r.append(...n),e.replace(r),r.select(0,0)},Vi=t=>(e,n,r)=>{var i=e.getPreviousSibling();const o=_e.$createListItemNode(t==="check"?r[3]==="x":void 0);_e.$isListNode(i)&&i.getListType()===t?(i.append(o),e.remove()):(i=_e.$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)},Sr=(t,e,n)=>{const r=[];var i=t.getChildren();let o=0;for(const s of i)if(_e.$isListItemNode(s)){if(s.getChildrenSize()===1&&(i=s.getFirstChild(),_e.$isListNode(i))){r.push(Sr(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
|
+
`)},Aa={dependencies:[st.HeadingNode],export:(t,e)=>{if(!st.$isHeadingNode(t))return null;const n=Number(t.getTag().slice(1));return"#".repeat(n)+" "+e(t)},regExp:/^(#{1,6})\s/,replace:Ra(t=>st.$createHeadingNode("h"+t[1].length)),type:"element"},Ma={dependencies:[st.QuoteNode],export:(t,e)=>{if(!st.$isQuoteNode(t))return null;t=e(t).split(`
|
|
50
50
|
`),e=[];for(const n of t)e.push("> "+n);return e.join(`
|
|
51
|
-
`)},regExp:/^>\s/,replace:(t,e,n,r)=>{if(r&&(n=t.getPreviousSibling(),st.$isQuoteNode(n))){n.splice(n.getChildrenSize(),0,[
|
|
52
|
-
`+e:"")+"\n```"},regExp:/^```(\w{1,10})?\s/,replace:
|
|
53
|
-
`}isInline(){return!1}updateDOM(){return!1}decorate(){return $n.createElement(
|
|
54
|
-
`+e:"")+"\n```"},regExp:/^```(\w{1,10})?\s/,replace:(t,e,n)=>{const r=n[1]||"",i=e[1],o=Hs(i,r);t.replace(o)},type:"element"},Ru={dependencies:[rt],export:t=>{if(b1(t)){const{src:e,alt:n}=t.dataset;return``}else return null},regExp:/^image! $/,replace:(t,e,n)=>{const o=_r({altText:"",src:""});t.replace(o)},type:"element"},qa=[Nt.HEADING,Nt.QUOTE,Nt.UNORDERED_LIST,Nt.ORDERED_LIST,Xa,Qa,Ru],ec=[...qa,...Nt.TEXT_FORMAT_TRANSFORMERS,...Nt.TEXT_MATCH_TRANSFORMERS];function tc({transformers:t=ec}={}){return Ou.MarkdownShortcutPlugin({transformers:t})}function Sr(t){const e=t.anchor,n=t.focus,r=t.anchor.getNode(),i=t.focus.getNode();return r===i?r:t.isBackward()?He.$isAtNodeEnd(n)?r:i:He.$isAtNodeEnd(e)?i:r}function Au({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 bg-white transition-all ease-linear hover:border-grey-900 md:h-9 md:w-9",onClick:t,children:h(go,{className:"h-4 w-4 stroke-grey-800 stroke-2 group-hover:stroke-grey-900"})})})}function $u({children:t}){return h("div",{className:"absolute left-[-16px]","data-kg-plus-menu":!0,children:t})}const Lu=({label:t,children:e,...n})=>Y("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})]}),Du=({label:t,desc:e,isSelected:n,onClick:r,Icon:i,...o})=>h("li",{role:"presentation",children:Y("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"})}),Y("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})]})]})}),Iu=({label:t,isSelected:e,Icon:n,...r})=>h("li",{role:"presentation",children:Y("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})})]})}),nc=({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,u=d=>{d.preventDefault(),e==null||e(a.insertCommand)};!a.type||a.type==="card"?s.push(h(Du,{label:a.label,desc:a.desc,Icon:a.Icon,isSelected:c,onClick:u,"data-kg-cardmenu-idx":i},i)):a.type==="snippet"&&s.push(h(Iu,{label:a.label,Icon:a.Icon,isSelected:c,onClick:u,"data-kg-cardmenu-idx":i},i)),i=i+1}),r.push(h(Lu,{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 rc(t){const e=t._nodes,n=[];for(const[r,{klass:i}]of e)!i.kgMenu||n.push([r,i]);return n}function ic(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 Pu(t){var W;const[e,n]=b.default.useState(!1),[r,i]=b.default.useState(!1),[o,l]=b.default.useState(0),[s,a]=b.default.useState(null),[c,u]=b.default.useState({}),d=b.default.useRef(null);function g(P){const B=P.getBoundingClientRect(),q=P.parentNode.getBoundingClientRect();return B.top-q.top}function p(P){const B=new Range;return B.setStart(P,0),B.setEnd(P,0),B}const f=b.default.useCallback(()=>{!s||(document.getSelection().removeAllRanges(),document.getSelection().addRange(s))},[s]),v=b.default.useCallback(P=>{const B=p(P);a(B),n(!0)},[n,a]),k=b.default.useCallback(()=>{n(!1),i(!1),a(null)},[n,i,a]),T=b.default.useCallback(P=>{P==null||P.preventDefault(),f(),i(!0)},[f,i]),_=b.default.useCallback(({resetCursor:P=!1}={})=>{P&&f(),i(!1)},[f,i]),m=b.default.useCallback(()=>{t.getEditorState().read(()=>{if(t.isComposing())return;const P=w.$getSelection();if(!w.$isRangeSelection(P)||!P.type==="text"||!P.isCollapsed()){k();return}const B=Sr(P);if(!w.$isParagraphNode(B)||B.getTextContent()!==""){k();return}const ye=window.getSelection().anchorNode,de=t.getRootElement();if((ye==null?void 0:ye.tagName)!=="P"||!de.contains(ye)){k();return}l(g(ye)),v(ye)})},[t,v,k]),C=b.default.useCallback(P=>{t.dispatchCommand(P),_()},[t,_]);b.default.useEffect(()=>t.registerUpdateListener(()=>{m()},[t,m]));const E=b.default.useCallback(()=>{var P;if(e){const B=window.getSelection();if(r&&((P=d.current)==null?void 0:P.contains(B.anchorNode)))return;t.getRootElement().contains(B.anchorNode)||k()}},[t,e,r,k]);b.default.useEffect(()=>(document.addEventListener("selectionchange",E),()=>{document.removeEventListener("selectionchange",E)}),[E]);const N=b.default.useCallback(P=>{if(r)return;const B=t.getRootElement();let{pageX:q,pageY:ye}=P,de=B.getBoundingClientRect();q<de.left&&(q=q+40);const ue=document.elementFromPoint(q,ye);B.contains(ue)&&((ue==null?void 0:ue.tagName)==="P"&&ue.textContent===""?(l(g(ue)),v(ue)):m())},[t,r,l,v,m]);b.default.useEffect(()=>(window.addEventListener("mousemove",N),()=>{window.removeEventListener("mousemove",N)}),[N]);const O=b.default.useCallback(P=>{var B;if(r&&!((B=d.current)!=null&&B.contains(P.target)))return _()},[r,_]);b.default.useEffect(()=>(window.addEventListener("mousedown",O),()=>{window.removeEventListener("mousedown",O)}),[O]);const F=b.default.useCallback(P=>{if(r){if(P.key==="Escape"){_({resetCursor:!0});return}["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(P.key)&&_()}},[r,_]);b.default.useEffect(()=>(window.addEventListener("keydown",F),()=>{window.removeEventListener("keydown",F)})),b.default.useEffect(()=>{const P=rc(t);u(ic(P,{insert:C}))},[t,C,u]);const D={top:`${o}px`};return((W=c.menu)==null?void 0:W.size)===0?null:e?Y("div",{className:"absolute",style:D,ref:d,"data-kg-plus-container":!0,children:[e&&h(Au,{onClick:T}),r&&h($u,{children:h(nc,{menu:c.menu,insert:C})})]}):null}function oc(){const[t]=ge.useLexicalComposerContext();return Pu(t)}function Fu({children:t}){return h("div",{"data-kg-slash-menu":!0,children:t})}function zu(t){var _;const[e,n]=b.default.useState(!1),[r,i]=b.default.useState(0),[o,l]=b.default.useState(""),[s,a]=b.default.useState({}),[c,u]=b.default.useState(0),d=b.default.useRef(null),g=b.default.useRef(null);function p(m){const C=m.getBoundingClientRect(),E=m.parentNode.getBoundingClientRect();return C.bottom-E.top}function f(){!d.current||(document.getSelection().removeAllRanges(),document.getSelection().addRange(d.current))}const v=b.default.useCallback(()=>{n(!0)},[n]),k=b.default.useCallback(({resetCursor:m=!1}={})=>{m&&f(),n(!1),l(""),d.current=null},[n]),T=b.default.useCallback(m=>{t.update(()=>{w.$getSelection().deleteLine(!0),t.dispatchCommand(m)}),k()},[t,k]);return b.default.useEffect(()=>t.registerUpdateListener(()=>{t.getEditorState().read(()=>{if(t.isComposing())return;const m=w.$getSelection();if(!w.$isRangeSelection(m)||!m.type==="text"||!m.isCollapsed()){k();return}const C=Sr(m).getTopLevelElement();if(!C||!w.$isParagraphNode(C)||!C.getTextContent().startsWith("/")){k();return}const E=window.getSelection(),N=E.anchorNode,O=t.getRootElement();if((N==null?void 0:N.nodeType)!==Node.TEXT_NODE||!O.contains(N)){k();return}d.current=E.getRangeAt(0),l(C.getTextContent().slice(1))})}),[t,k,l]),b.default.useEffect(()=>{if(e)return;const m=C=>{const{key:E,isComposing:N,shiftKey:O,ctrlKey:F,metaKey:D,altKey:W}=C;E!=="/"||N||O||F||D||W||!t.getRootElement().matches(":focus")||t.getEditorState().read(()=>{const B=w.$getSelection(),q=Sr(B).getTopLevelElement();if(!q||!w.$isParagraphNode(q))return;const ye=q.getTextContentSize(),de=B.isCollapsed()&&q.getTextContent()==="",ue=!B.isCollapsed()&&(B.anchor.offset===0&&B.focus.offset===ye||B.anchor.offset===ye&&B.focus.offset===0);if(de||ue){const at=window.getSelection();let ee;at.anchorNode.nodeType===Node.TEXT_NODE?ee=at.anchorNode.parentNode.closest("p"):ee=at.anchorNode,i(p(ee)),v()}})};return window.addEventListener("keypress",m),()=>{window.removeEventListener("keypress",m)}},[t,e,i,v]),b.default.useEffect(()=>{if(!e)return;const m=C=>{if(C.key==="Escape"){k({resetCursor:!0});return}};return window.addEventListener("keydown",m),()=>{window.removeEventListener("keydown",m)}},[e,k]),b.default.useEffect(()=>{if(!e)return;const m=C=>{var E;(E=g.current)!=null&&E.contains(C.target)||k()};return window.addEventListener("mousedown",m),()=>{window.removeEventListener("mousedown",m)}},[e,k]),b.default.useEffect(()=>{if(!e)return;const m=N=>(u(c===0?s.maxItemIndex:c-1),N.preventDefault(),!0),C=N=>(c===s.maxItemIndex?u(0):u(c+1),N.preventDefault(),!0),E=N=>{var O;return(O=document.querySelector(`[data-kg-slash-menu] [data-kg-cardmenu-idx="${c}"]`))==null||O.click(),N.preventDefault(),!0};return ve.mergeRegister(t.registerCommand(w.KEY_ARROW_DOWN_COMMAND,C,w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_ARROW_UP_COMMAND,m,w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_ARROW_RIGHT_COMMAND,C,w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_ARROW_LEFT_COMMAND,m,w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_ENTER_COMMAND,E,w.COMMAND_PRIORITY_HIGH))},[t,e,s,c]),b.default.useEffect(()=>{const m=rc(t);a(ic(m,{insert:T,query:o})),u(0)},[t,o,T,a,u]),((_=s.menu)==null?void 0:_.size)===0?null:e?h("div",{className:"absolute",style:{top:`${r}px`},ref:g,"data-kg-slash-container":!0,children:h(Fu,{children:h(nc,{menu:s.menu,selectedItemIndex:c,insert:T})})}):null}function Bu(){const[t]=ge.useLexicalComposerContext();return zu(t)}const Hu=10;function Ku(t,e,n,r={}){r=Object.assign({verticalGap:Hu,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 Uu(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 lc(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 lc(t.parentNode)||document.body}const Wu={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 Vu({isText:t,editor:e,anchorElem:n,blockType:r,isBold:i,isItalic:o}){const[l,s]=b.default.useState(!1),a=b.default.useRef(null),c=()=>{r!=="paragraph"&&e.update(()=>{const f=w.$getSelection();w.$isRangeSelection(f)&&He.$wrapNodes(f,()=>w.$createParagraphNode())})},u=f=>{r!==f&&e.update(()=>{const v=w.$getSelection();w.$isRangeSelection(v)&&He.$wrapNodes(v,()=>_t.$createHeadingNode(f))})},d=()=>{e.update(()=>{const f=w.$getSelection();w.$isRangeSelection(f)&&(r==="quote"?He.$wrapNodes(f,()=>Ni()):r==="aside"?He.$wrapNodes(f,()=>w.$createParagraphNode()):He.$wrapNodes(f,()=>_t.$createQuoteNode()))})},g=b.default.useCallback(()=>{const f=a.current;if(!f)return;const v=w.$getSelection(),k=window.getSelection(),T=e.getRootElement();if(v!==null&&k!==null&&!k.isCollapsed&&T!==null&&T.contains(k.anchorNode)){const _=Uu(k,T);l||Ku(_,f,n)}},[e,n,l]),p=b.default.useCallback(()=>{t!==!1&&(a.current.style.opacity="1")},[t]);return b.default.useEffect(()=>(e.getEditorState().read(()=>{g()}),document.addEventListener("mouseup",p),()=>{document.removeEventListener("mouseup",p)}),[p,e,g]),b.default.useEffect(()=>{e.getEditorState().read(()=>{g()});const f=v=>{v.key==="Shift"&&p()};return document.addEventListener("keyup",f),()=>{document.removeEventListener("keyup",f)}},[p,e,g]),b.default.useEffect(()=>{const f=lc(n),v=()=>{e.getEditorState().read(()=>{g()})};return window.addEventListener("resize",v),f&&f.addEventListener("scroll",v),()=>{window.removeEventListener("resize",v),f&&f.removeEventListener("scroll",v)}},[e,g,n]),b.default.useEffect(()=>(e.getEditorState().read(()=>{g()}),ve.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:Y(Ws,{children:[h(Le,{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(Le,{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(Le,{label:"Toggle heading 1",isActive:r==="h2",icon:"headingOne",onClick:()=>{r==="h2"?c():u("h2"),s(!0)},"data-kg-toolbar-button":"h2"}),h(Le,{label:"Toggle heading 2",isActive:r==="h3",icon:"headingTwo",onClick:()=>{r==="h3"?c():u("h3"),s(!0)},"data-kg-toolbar-button":"h3"}),h(Oi,{}),h(Le,{label:"Toggle blockquote",isActive:r==="quote"||r==="aside",icon:r==="aside"?"quoteOne":"quoteTwo",onClick:()=>{d(),s(!0)},"data-kg-toolbar-button":"quote"})]})})}function Yu(t,e){const[n,r]=b.default.useState(!1),[i,o]=b.default.useState(!1),[l,s]=b.default.useState(!1),[a,c]=b.default.useState("paragraph"),u=b.default.useCallback(()=>{t.getEditorState().read(()=>{if(t.isComposing())return;const d=w.$getSelection(),g=window.getSelection(),p=t.getRootElement();if(g!==null&&(!w.$isRangeSelection(d)||p===null||!p.contains(g.anchorNode))){r(!1);return}if(!w.$isRangeSelection(d))return;const f=Sr(d),v=f.getKey()==="root"?f:f.getTopLevelElementOrThrow(),k=v.getKey(),T=t.getElementByKey(k);if(o(d.hasFormat("bold")),s(d.hasFormat("italic")),T!==null)if(xt.$isListNode(v)){const _=ve.$getNearestNodeOfType(f,xt.ListNode),m=_?_.getListType():v.getListType();c(m)}else{const _=_t.$isHeadingNode(v)?v.getTag():v.getType();_ in Wu&&c(_)}d.getTextContent()!==""?r(w.$isTextNode(f)):r(!1)})},[t]);if(te.useEffect(()=>(document.addEventListener("selectionchange",u),()=>{document.removeEventListener("selectionchange",u)}),[u]),te.useEffect(()=>t.registerUpdateListener(()=>{u()}),[t,u]),!!n)return Ke.createPortal(h(Vu,{isText:n,editor:t,anchorElem:e,blockType:a,isBold:i,isItalic:l}),e)}function sc({anchorElem:t=document.body}){const[e]=ge.useLexicalComposerContext();return Yu(e,t)}const Gu=()=>{const[t]=ge.useLexicalComposerContext(),{imageUploader:e}=b.default.useContext(bi);return b.default.useEffect(()=>{if(!t.hasNodes([rt])){console.error("ImagePlugin: ImageNode not registered");return}return ve.mergeRegister(t.registerCommand(Ri,n=>{const r=w.$getSelection();if(!w.$isRangeSelection(r))return!1;if(r.focus.getNode()!==null){const o=_r(n),l=r.focus.getNode(),s=w.$isParagraphNode(l)&&l.getTextContent()==="",a=l.getTopLevelElementOrThrow().getNextSibling();!s&&!a&&r.insertParagraph(),r.focus.getNode().getTopLevelElementOrThrow().insertBefore(o);const c=w.$createNodeSelection();c.add(o.getKey()),w.$setSelection(c)}return!0},w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.DRAGSTART_COMMAND,n=>ju(),w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.DRAGOVER_COMMAND,n=>Zu(),w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.DROP_COMMAND,n=>Ju(n,t,e),w.COMMAND_PRIORITY_HIGH))},[t,e]),null},ju=t=>!0,Zu=t=>!0,Ju=async(t,e=w.LexicalEditor,n)=>{t.preventDefault();const r=t.dataTransfer.files,i=await n.imageUploader(r);i&&e.dispatchCommand(Ri,i)},Xu=()=>{const[t]=ge.useLexicalComposerContext();return te.useEffect(()=>{if(!t.hasNodes([])){console.error("HorizontalRulePlugin: HorizontalRuleNode not registered");return}return t.registerCommand(zs,()=>{const e=w.$getSelection();if(!w.$isRangeSelection(e))return!1;if(e.focus.getNode()!==null){const r=Si(),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 Qu(){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..."})}const qu=({onChange:t,markdownTransformers:e})=>{const n=b.default.useCallback(s=>{const a=s.toJSON();t==null||t(a)},[t]),r=b.default.useRef(null),[i,o]=b.default.useState(null),l=s=>{s!==null&&o(s)};return Y("div",{id:"koenig",className:"koenig-lexical",ref:r,children:[h(K1.RichTextPlugin,{contentEditable:h("div",{ref:l,children:h(V1.ContentEditable,{className:"kg-prose"})}),placeholder:h(Qu,{})}),h(tu.OnChangePlugin,{onChange:n}),h(Q1.HistoryPlugin,{})," ",h(ou.ListPlugin,{})," ",h(oa,{containerElem:r}),h(tc,{transformers:e}),h(oc,{}),h(Bu,{}),i&&h(sc,{anchorElem:i}),h(Gu,{}),h(Xu,{})]})};G.CODE_BLOCK_TRANSFORMER=Qa,G.DEFAULT_NODES=Vs,G.DEFAULT_TRANSFORMERS=ec,G.DesignSandbox=Wc,G.ELEMENT_TRANSFORMERS=qa,G.FloatingFormatToolbarPlugin=sc,G.HR_TRANSFORMER=Xa,G.KoenigBehaviourPlugin=oa,G.KoenigComposer=A1,G.KoenigEditor=qu,G.MarkdownShortcutPlugin=tc,G.PlusCardMenuPlugin=oc,Object.defineProperties(G,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
51
|
+
`)},regExp:/^>\s/,replace:(t,e,n,r)=>{if(r&&(n=t.getPreviousSibling(),st.$isQuoteNode(n))){n.splice(n.getChildrenSize(),0,[W.$createLineBreakNode(),...e]),n.select(0,0),t.remove();return}n=st.$createQuoteNode(),n.append(...e),t.replace(n),n.select(0,0)},type:"element"},$a={dependencies:[An.CodeNode],export:t=>{if(!An.$isCodeNode(t))return null;const e=t.getTextContent();return"```"+(t.getLanguage()||"")+(e?`
|
|
52
|
+
`+e:"")+"\n```"},regExp:/^```(\w{1,10})?\s/,replace:Ra(t=>An.$createCodeNode(t?t[1]:void 0)),type:"element"},La={dependencies:[_e.ListNode,_e.ListItemNode],export:(t,e)=>_e.$isListNode(t)?Sr(t,e,0):null,regExp:/^(\s*)[-*+]\s/,replace:Vi("bullet"),type:"element"},yg={dependencies:[_e.ListNode,_e.ListItemNode],export:(t,e)=>_e.$isListNode(t)?Sr(t,e,0):null,regExp:/^(\s*)(?:-\s)?\s?(\[(\s|x)?\])\s/i,replace:Vi("check"),type:"element"},Da={dependencies:[_e.ListNode,_e.ListItemNode],export:(t,e)=>_e.$isListNode(t)?Sr(t,e,0):null,regExp:/^(\s*)(\d{1,})\.\s/,replace:Vi("number"),type:"element"},Ia={format:["code"],tag:"`",type:"text-format"},Pa={format:["bold","italic"],tag:"***",type:"text-format"},Fa={format:["bold","italic"],intraword:!1,tag:"___",type:"text-format"},za={format:["bold"],tag:"**",type:"text-format"},Ba={format:["bold"],intraword:!1,tag:"__",type:"text-format"},Ha={format:["strikethrough"],tag:"~~",type:"text-format"},Ka={format:["italic"],tag:"*",type:"text-format"},Ua={format:["italic"],intraword:!1,tag:"_",type:"text-format"},Wa={dependencies:[Hi.LinkNode],export:(t,e,n)=>{if(!Hi.$isLinkNode(t))return null;e=`[${t.getTextContent()}](${t.getURL()})`;const r=t.getFirstChild();return t.getChildrenSize()===1&&W.$isTextNode(r)?n(r,e):e},importRegExp:/(?:\[([^[]+)\])(?:\(([^(]+)\))/,regExp:/(?:\[([^[]+)\])(?:\(([^(]+)\))$/,replace:(t,e)=>{const[,n,r]=e;e=Hi.$createLinkNode(r);const i=W.$createTextNode(n);i.setFormat(t.getFormat()),e.append(i),t.replace(e)},trigger:")",type:"text-match"},Va=[Aa,Ma,$a,La,Da],Ya=[Ia,Pa,Fa,za,Ba,Ka,Ua,Ha],Ga=[Wa],br=[...Va,...Ya,...Ga];Q.$convertFromMarkdownString=function(t,e=br){return xg(e)(t)},Q.$convertToMarkdownString=function(t=br){return fg(t)()},Q.BOLD_ITALIC_STAR=Pa,Q.BOLD_ITALIC_UNDERSCORE=Fa,Q.BOLD_STAR=za,Q.BOLD_UNDERSCORE=Ba,Q.CHECK_LIST=yg,Q.CODE=$a,Q.ELEMENT_TRANSFORMERS=Va,Q.HEADING=Aa,Q.INLINE_CODE=Ia,Q.ITALIC_STAR=Ka,Q.ITALIC_UNDERSCORE=Ua,Q.LINK=Wa,Q.ORDERED_LIST=Da,Q.QUOTE=Ma,Q.STRIKETHROUGH=Ha,Q.TEXT_FORMAT_TRANSFORMERS=Ya,Q.TEXT_MATCH_TRANSFORMERS=Ga,Q.TRANSFORMERS=br,Q.UNORDERED_LIST=La,Q.registerMarkdownShortcuts=function(t,e=br){let n=Ui(e),r=Ki(n.textFormat,({tag:o})=>o[o.length-1]),i=Ki(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(W.$getSelection);if(o=a.read(W.$getSelection),W.$isRangeSelection(o)&&W.$isRangeSelection(c)&&c.isCollapsed()){a=c.anchor.key;var u=c.anchor.offset,d=s._nodeMap.get(a);W.$isTextNode(d)&&l.has(a)&&(u===1||u===o.anchor.offset+1)&&t.update(()=>{if(!d.hasFormat("code")){var g=d.getParent();if(g!==null&&!An.$isCodeNode(g)){var m=c.anchor.offset;e:{var h=n.element,_=g.getParent();if(W.$isRootOrShadowRoot(_)&&g.getFirstChild()===d&&(_=d.getTextContent(),_[m-1]===" ")){for(let{regExp:k,replace:E}of h)if((h=_.match(k))&&h[0].length===m){_=d.getNextSiblings();let[O,D]=d.splitText(m);O.remove(),_=D?[D,..._]:_,E(g,_,h,!1),g=!0;break e}}g=!1}if(!g){e:{if(h=d.getTextContent(),g=i[h[m-1]],g!=null){m<h.length&&(h=h.slice(0,m));for(T of g)if(g=h.match(T.regExp),g!==null){h=g.index||0,_=h+g[0].length;var C=void 0;h===0?[C]=d.splitText(_):[,C]=d.splitText(h,_),C.selectNext(0,0),T.replace(C,g);var T=!0;break e}}T=!1}if(!T)e:{_=d.getTextContent(),--m;var p=_[m];if(T=r[p])for(let k of T){var{tag:v}=k;T=v.length;let E=m-T+1;if(!(1<T&&!Oa(_,E,v,0,T)||_[E-1]===" ")&&(C=_[m+1],k.intraword!==!1||!C||Er.test(C))){g=C=d,h=ba(_,E,v);for(var N=g;0>h&&(N=N.getPreviousSibling())&&!W.$isLineBreakNode(N);)W.$isTextNode(N)&&(h=N.getTextContent(),g=N,h=ba(h,h.length,v));if(!(0>h||g===C&&h+T===E||(v=g.getTextContent(),0<h&&v[h-1]===p||(N=v[h-1],k.intraword===!1&&N&&!Er.test(N))))){_=C.getTextContent(),_=_.slice(0,E)+_.slice(m+1),C.setTextContent(_),_=g===C?_:v,g.setTextContent(_.slice(0,h)+_.slice(h+T)),_=W.$getSelection(),p=W.$createRangeSelection(),W.$setSelection(p),m=m-T*(g===C?2:1)+1,p.anchor.set(g.__key,h,"text"),p.focus.set(C.__key,m,"text");for(let O of k.format)p.hasFormat(O)||p.formatText(O);p.anchor.set(p.focus.key,p.focus.offset,p.focus.type);for(let O of k.format)p.hasFormat(O)&&p.toggleFormat(O);W.$isRangeSelection(_)&&(p.format=_.format);break e}}}}}}}})}}})};var Et=Q,Yi={},Mn={},kg=he,Cg=Ls,wg=ke,Ie=w,$n=S.default;let Eg=Ie.createCommand();function Ng({nodeKey:t}){let[e]=kg.useLexicalComposerContext(),n=$n.useRef(null),[r,i,o]=Cg.useLexicalNodeSelection(t),l=$n.useCallback(s=>(r&&Ie.$isNodeSelection(Ie.$getSelection())&&(s.preventDefault(),s=Ie.$getNodeByKey(t),ja(s)&&s.remove(),i(!1)),!1),[r,t,i]);return $n.useEffect(()=>wg.mergeRegister(e.registerCommand(Ie.CLICK_COMMAND,s=>s.target===n.current?(s.shiftKey||o(),i(!r),!0):!1,Ie.COMMAND_PRIORITY_LOW),e.registerCommand(Ie.KEY_DELETE_COMMAND,l,Ie.COMMAND_PRIORITY_LOW),e.registerCommand(Ie.KEY_BACKSPACE_COMMAND,l,Ie.COMMAND_PRIORITY_LOW)),[o,e,r,l,i]),$n.createElement("hr",{ref:n,className:r?"selected":void 0})}class Ln extends Ie.DecoratorNode{static getType(){return"horizontalrule"}static clone(e){return new Ln(e.__key)}static importJSON(){return Gi()}static importDOM(){return{hr:()=>({conversion:Tg,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 $n.createElement(Ng,{nodeKey:this.__key})}}function Tg(){return{node:Gi()}}function Gi(){return new Ln}function ja(t){return t instanceof Ln}Mn.$createHorizontalRuleNode=Gi,Mn.$isHorizontalRuleNode=ja,Mn.HorizontalRuleNode=Ln,Mn.INSERT_HORIZONTAL_RULE_COMMAND=Eg;var Sg=Mn,Za=Et,bg=he,ji=Sg,Og=S.default;let Ja=[{dependencies:[ji.HorizontalRuleNode],export:t=>ji.$isHorizontalRuleNode(t)?"***":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(t,e,n,r)=>{e=ji.$createHorizontalRuleNode(),r||t.getNextSibling()!=null?t.replace(e):t.insertBefore(e),e.selectNext()},type:"element"},...Za.TRANSFORMERS];Yi.DEFAULT_TRANSFORMERS=Ja,Yi.MarkdownShortcutPlugin=function({transformers:t=Ja}){let[e]=bg.useLexicalComposerContext();return Og.useEffect(()=>Za.registerMarkdownShortcuts(e,t),[e,t]),null};var Rg=Yi;const Xa={dependencies:[kt],export:t=>fu(t)?"---":null,regExp:/^(---|\*\*\*|___)\s?$/,replace:(t,e,n,r)=>{const i=Oi();r||t.getNextSibling()!=null?t.replace(i):t.insertBefore(i),i.selectNext()},type:"element"},Qa={dependencies:[Vt],export:t=>{if(!mu(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=Hs(i,r);t.replace(o)},type:"element"},Ag={dependencies:[rt],export:t=>{if(bu(t)){const{src:e,alt:n}=t.dataset;return``}else return null},regExp:/^image! $/,replace:(t,e,n)=>{const o=yr({altText:"",src:""});t.replace(o)},type:"element"},qa=[Et.HEADING,Et.QUOTE,Et.UNORDERED_LIST,Et.ORDERED_LIST,Xa,Qa,Ag],ec=[...qa,...Et.TEXT_FORMAT_TRANSFORMERS,...Et.TEXT_MATCH_TRANSFORMERS];function tc({transformers:t=ec}={}){return Rg.MarkdownShortcutPlugin({transformers:t})}function Or(t){const e=t.anchor,n=t.focus,r=t.anchor.getNode(),i=t.focus.getNode();return r===i?r:t.isBackward()?He.$isAtNodeEnd(n)?r:i:He.$isAtNodeEnd(e)?i:r}function Mg({onClick:t}){return f("div",{className:"absolute top-[-2px] left-[-66px]","data-kg-plus-button":!0,children:f("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",onClick:t,children:f(go,{className:"h-4 w-4 stroke-grey-800 stroke-2 group-hover:stroke-grey-900"})})})}function $g({children:t}){return f("div",{className:"absolute left-[-16px]","data-kg-plus-menu":!0,children:t})}const Lg=({label:t,children:e,...n})=>Y("li",{role:"separator",className:"text-grey flex shrink-0 flex-col justify-center text-[1.1rem] font-semibold uppercase tracking-wide",...n,children:[f("span",{className:"mb-2 block px-4 pt-3",style:{minWidth:"calc(100% - 3.2rem)"},children:t}),f("ul",{role:"menu",children:e})]}),Dg=({label:t,desc:e,isSelected:n,onClick:r,Icon:i,...o})=>f("li",{role:"presentation",children:Y("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:[f("div",{className:"flex items-center",children:f(i,{className:"h-7 w-7"})}),Y("div",{className:"flex flex-col",children:[f("div",{className:"text-grey-900 m-0 ml-4 truncate text-[1.3rem] font-medium leading-[1.6rem] tracking-[.02rem]",children:t}),f("div",{className:"text-grey m-0 ml-4 truncate text-xs font-normal leading-[1.6rem] tracking-[.02rem]",children:e})]})]})}),Ig=({label:t,isSelected:e,Icon:n,...r})=>f("li",{role:"presentation",children:Y("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:[f("div",{className:"flex items-center",children:f(n,{className:"h-7 w-7"})}),f("div",{className:"flex flex-col",children:f("div",{className:"text-grey-900 m-0 ml-4 truncate text-[1.3rem] font-medium leading-[1.6rem] tracking-[.02rem]",children:t})})]})}),nc=({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,u=d=>{d.preventDefault(),e==null||e(a.insertCommand,{insertParams:a.insertParams,queryParams:a.queryParams})};!a.type||a.type==="card"?s.push(f(Dg,{label:a.label,desc:a.desc,Icon:a.Icon,isSelected:c,onClick:u,"data-kg-cardmenu-idx":i},i)):a.type==="snippet"&&s.push(f(Ig,{label:a.label,Icon:a.Icon,isSelected:c,onClick:u,"data-kg-cardmenu-idx":i},i)),i=i+1}),r.push(f(Lg,{label:o,children:s},o))}return f("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 rc(t){const e=t._nodes,n=[];for(const[r,{klass:i}]of e)!i.kgMenu||n.push([r,i]);return n}function ic(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 Pg(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,u]=S.default.useState({}),d=S.default.useRef(null);function g(P){const H=P.getBoundingClientRect(),re=P.parentNode.getBoundingClientRect();return H.top-re.top}function m(P){const H=new Range;return H.setStart(P,0),H.setEnd(P,0),H}const h=S.default.useCallback(()=>{!s||(document.getSelection().removeAllRanges(),document.getSelection().addRange(s))},[s]),_=S.default.useCallback(P=>{const H=m(P);a(H),n(!0)},[n,a]),C=S.default.useCallback(()=>{n(!1),i(!1),a(null)},[n,i,a]),T=S.default.useCallback(P=>{P==null||P.preventDefault(),h(),i(!0)},[h,i]),p=S.default.useCallback(({resetCursor:P=!1}={})=>{P&&h(),i(!1)},[h,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 H=Or(P);if(!w.$isParagraphNode(H)||H.getTextContent()!==""){C();return}const q=window.getSelection().anchorNode,ee=t.getRootElement();if((q==null?void 0:q.tagName)!=="P"||!ee.contains(q)){C();return}l(g(q)),_(q)})},[t,_,C]),N=S.default.useCallback((P,{insertParams:H={}}={})=>{const re={...H};t.dispatchCommand(P,re),p()},[t,p]);S.default.useEffect(()=>t.registerUpdateListener(()=>{v()},[t,v]));const k=S.default.useCallback(()=>{var P;if(e){const H=window.getSelection();if(r&&((P=d.current)==null?void 0:P.contains(H.anchorNode)))return;t.getRootElement().contains(H.anchorNode)||C()}},[t,e,r,C]);S.default.useEffect(()=>(document.addEventListener("selectionchange",k),()=>{document.removeEventListener("selectionchange",k)}),[k]);const E=S.default.useCallback(P=>{if(r)return;const H=t.getRootElement();let{pageX:re,pageY:q}=P,ee=H.getBoundingClientRect();re<ee.left&&(re=re+40);const ce=document.elementFromPoint(re,q);H.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",E),()=>{window.removeEventListener("mousemove",E)}),[E]);const O=S.default.useCallback(P=>{var H;if(r&&!((H=d.current)!=null&&H.contains(P.target)))return p()},[r,p]);S.default.useEffect(()=>(window.addEventListener("mousedown",O),()=>{window.removeEventListener("mousedown",O)}),[O]);const D=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",D),()=>{window.removeEventListener("keydown",D)})),S.default.useEffect(()=>{const P=rc(t);u(ic(P,{insert:N}))},[t,N,u]);const A={top:`${o}px`};return((U=c.menu)==null?void 0:U.size)===0?null:e?Y("div",{className:"absolute",style:A,ref:d,"data-kg-plus-container":!0,children:[e&&f(Mg,{onClick:T}),r&&f($g,{children:f(nc,{menu:c.menu,insert:N})})]}):null}function oc(){const[t]=he.useLexicalComposerContext();return Pg(t)}function Fg({children:t}){return f("div",{"data-kg-slash-menu":!0,children:t})}function zg(t){var N;const[e,n]=S.default.useState(!1),[r,i]=S.default.useState(0),[o,l]=S.default.useState(""),[s,a]=S.default.useState([]),[c,u]=S.default.useState({}),[d,g]=S.default.useState(0),m=S.default.useRef(null),h=S.default.useRef(null);function _(k){const E=k.getBoundingClientRect(),O=k.parentNode.getBoundingClientRect();return E.bottom-O.top}function C(){!m.current||(document.getSelection().removeAllRanges(),document.getSelection().addRange(m.current))}const T=S.default.useCallback(()=>{n(!0)},[n]),p=S.default.useCallback(({resetCursor:k=!1}={})=>{k&&C(),n(!1),l(""),a([]),m.current=null},[n]),v=S.default.useCallback((k,{insertParams:E={},queryParams:O={}}={})=>{const D={...E};for(let A=0;A<O.length;A++)if(s[A]){const U=O[A],P=s[A];D[U]=P}t.update(()=>{const A=w.$getSelection();A.modify("extend",!0,"lineboundary"),A.deleteCharacter(!0),t.dispatchCommand(k,D)}),p()},[t,s,p]);return S.default.useEffect(()=>t.registerUpdateListener(()=>{t.getEditorState().read(()=>{if(t.isComposing())return;const k=w.$getSelection();if(!w.$isRangeSelection(k)||!k.type==="text"||!k.isCollapsed()){p();return}const E=Or(k).getTopLevelElement();if(!E||!w.$isParagraphNode(E)||!E.getTextContent().startsWith("/")){p();return}const O=window.getSelection(),D=O.anchorNode,A=t.getRootElement();if((D==null?void 0:D.nodeType)!==Node.TEXT_NODE||!A.contains(D)){p();return}m.current=O.getRangeAt(0);const U=E.getTextContent().slice(1),[P,...H]=U.split(" ");l(P),a(H)})}),[t,p,l,a]),S.default.useEffect(()=>{if(e)return;const k=E=>{const{key:O,isComposing:D,shiftKey:A,ctrlKey:U,metaKey:P,altKey:H}=E;O!=="/"||D||A||U||P||H||!t.getRootElement().matches(":focus")||t.getEditorState().read(()=>{const q=w.$getSelection(),ee=Or(q).getTopLevelElement();if(!ee||!w.$isParagraphNode(ee))return;const ce=ee.getTextContentSize(),jt=q.isCollapsed()&&ee.getTextContent()==="",ie=!q.isCollapsed()&&(q.anchor.offset===0&&q.focus.offset===ce||q.anchor.offset===ce&&q.focus.offset===0);if(jt||ie){const de=window.getSelection();let Ce;de.anchorNode.nodeType===Node.TEXT_NODE?Ce=de.anchorNode.parentNode.closest("p"):Ce=de.anchorNode,i(_(Ce)),T()}})};return window.addEventListener("keypress",k),()=>{window.removeEventListener("keypress",k)}},[t,e,i,T]),S.default.useEffect(()=>{if(!e)return;const k=E=>{if(E.key==="Escape"){p({resetCursor:!0});return}};return window.addEventListener("keydown",k),()=>{window.removeEventListener("keydown",k)}},[e,p]),S.default.useEffect(()=>{if(!e)return;const k=E=>{var O;(O=h.current)!=null&&O.contains(E.target)||p()};return window.addEventListener("mousedown",k),()=>{window.removeEventListener("mousedown",k)}},[e,p]),S.default.useEffect(()=>{if(!e)return;const k=D=>(g(d===0?c.maxItemIndex:d-1),D.preventDefault(),!0),E=D=>(d===c.maxItemIndex?g(0):g(d+1),D.preventDefault(),!0),O=D=>{var A;return(A=document.querySelector(`[data-kg-slash-menu] [data-kg-cardmenu-idx="${d}"]`))==null||A.click(),D.preventDefault(),!0};return ke.mergeRegister(t.registerCommand(w.KEY_ARROW_DOWN_COMMAND,E,w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_ARROW_UP_COMMAND,k,w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_ARROW_RIGHT_COMMAND,E,w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_ARROW_LEFT_COMMAND,k,w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.KEY_ENTER_COMMAND,O,w.COMMAND_PRIORITY_HIGH))},[t,e,c,d]),S.default.useEffect(()=>{const k=rc(t);u(ic(k,{insert:v,query:o})),g(0)},[t,o,v,u,g]),((N=c.menu)==null?void 0:N.size)===0?null:e?f("div",{className:"absolute",style:{top:`${r}px`},ref:h,"data-kg-slash-container":!0,children:f(Fg,{children:f(nc,{menu:c.menu,selectedItemIndex:d,insert:v})})}):null}function Bg(){const[t]=he.useLexicalComposerContext();return zg(t)}const Hg=10;function Kg(t,e,n,r={}){r=Object.assign({verticalGap:Hg,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 Ug(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 lc(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 lc(t.parentNode)||document.body}const Wg={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 Vg({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 h=w.$getSelection();w.$isRangeSelection(h)&&He.$wrapNodes(h,()=>w.$createParagraphNode())})},u=h=>{r!==h&&e.update(()=>{const _=w.$getSelection();w.$isRangeSelection(_)&&He.$wrapNodes(_,()=>xt.$createHeadingNode(h))})},d=()=>{e.update(()=>{const h=w.$getSelection();w.$isRangeSelection(h)&&(r==="quote"?He.$wrapNodes(h,()=>Si()):r==="aside"?He.$wrapNodes(h,()=>w.$createParagraphNode()):He.$wrapNodes(h,()=>xt.$createQuoteNode()))})},g=S.default.useCallback(()=>{const h=a.current;if(!h)return;const _=w.$getSelection(),C=window.getSelection(),T=e.getRootElement();if(_!==null&&C!==null&&!C.isCollapsed&&T!==null&&T.contains(C.anchorNode)){const p=Ug(C,T);l||Kg(p,h,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 h=_=>{_.key==="Shift"&&m()};return document.addEventListener("keyup",h),()=>{document.removeEventListener("keyup",h)}},[m,e,g]),S.default.useEffect(()=>{const h=lc(n),_=()=>{e.getEditorState().read(()=>{g()})};return window.addEventListener("resize",_),h&&h.addEventListener("scroll",_),()=>{window.removeEventListener("resize",_),h&&h.removeEventListener("scroll",_)}},[e,g,n]),S.default.useEffect(()=>(e.getEditorState().read(()=>{g()}),ke.mergeRegister(e.registerUpdateListener(({editorState:h})=>{h.read(()=>{g()})}),e.registerCommand(w.SELECTION_CHANGE_COMMAND,()=>(g(),!1),w.COMMAND_PRIORITY_LOW))),[e,g]),f("div",{className:"absolute",ref:a,"data-kg-floating-toolbar":!0,style:{opacity:0},children:Y(Ws,{children:[f(Le,{label:"Format text as bold",isActive:i,icon:"bold",onClick:()=>{s(!0),e.dispatchCommand(w.FORMAT_TEXT_COMMAND,"bold")},"data-kg-toolbar-button":"bold"}),f(Le,{label:"Format text as italics",isActive:o,icon:"italic",onClick:()=>{s(!0),e.dispatchCommand(w.FORMAT_TEXT_COMMAND,"italic")},"data-kg-toolbar-button":"italic"}),f(Le,{label:"Toggle heading 1",isActive:r==="h2",icon:"headingOne",onClick:()=>{r==="h2"?c():u("h2"),s(!0)},"data-kg-toolbar-button":"h2"}),f(Le,{label:"Toggle heading 2",isActive:r==="h3",icon:"headingTwo",onClick:()=>{r==="h3"?c():u("h3"),s(!0)},"data-kg-toolbar-button":"h3"}),f(Ri,{}),f(Le,{label:"Toggle blockquote",isActive:r==="quote"||r==="aside",icon:r==="aside"?"quoteOne":"quoteTwo",onClick:()=>{d(),s(!0)},"data-kg-toolbar-button":"quote"})]})})}function Yg(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"),u=S.default.useCallback(()=>{t.getEditorState().read(()=>{if(t.isComposing())return;const d=w.$getSelection(),g=window.getSelection(),m=t.getRootElement();if(g!==null&&(!w.$isRangeSelection(d)||m===null||!m.contains(g.anchorNode))){r(!1);return}if(!w.$isRangeSelection(d))return;const h=Or(d),_=h.getKey()==="root"?h:h.getTopLevelElementOrThrow(),C=_.getKey(),T=t.getElementByKey(C);if(o(d.hasFormat("bold")),s(d.hasFormat("italic")),T!==null)if(mt.$isListNode(_)){const p=ke.$getNearestNodeOfType(h,mt.ListNode),v=p?p.getListType():_.getListType();c(v)}else{const p=xt.$isHeadingNode(_)?_.getTag():_.getType();p in Wg&&c(p)}d.getTextContent()!==""?r(w.$isTextNode(h)):r(!1)})},[t]);if(te.useEffect(()=>(document.addEventListener("selectionchange",u),()=>{document.removeEventListener("selectionchange",u)}),[u]),te.useEffect(()=>t.registerUpdateListener(()=>{u()}),[t,u]),!!n)return Ue.createPortal(f(Vg,{isText:n,editor:t,anchorElem:e,blockType:a,isBold:i,isItalic:l}),e)}function sc({anchorElem:t=document.body}){const[e]=he.useLexicalComposerContext();return Yg(e,t)}const Gg=()=>{const[t]=he.useLexicalComposerContext(),{imageUploader:e}=S.default.useContext(_r);return S.default.useEffect(()=>{if(!t.hasNodes([rt])){console.error("ImagePlugin: ImageNode not registered");return}return ke.mergeRegister(t.registerCommand(Ai,n=>{const r=w.$getSelection();if(!w.$isRangeSelection(r))return!1;if(r.focus.getNode()!==null){const o=yr(n),l=r.focus.getNode(),s=w.$isParagraphNode(l)&&l.getTextContent()==="",a=l.getTopLevelElementOrThrow().getNextSibling();!s&&!a&&r.insertParagraph(),r.focus.getNode().getTopLevelElementOrThrow().insertBefore(o);const c=w.$createNodeSelection();c.add(o.getKey()),w.$setSelection(c)}return!0},w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.DRAGSTART_COMMAND,n=>jg(),w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.DRAGOVER_COMMAND,n=>Zg(),w.COMMAND_PRIORITY_HIGH),t.registerCommand(w.DROP_COMMAND,n=>Jg(n,t,e),w.COMMAND_PRIORITY_HIGH))},[t,e]),null},jg=t=>!0,Zg=t=>!0,Jg=async(t,e=w.LexicalEditor,n)=>{t.preventDefault();const r=t.dataTransfer.files,i=await n.imageUploader(r);i&&e.dispatchCommand(Ai,i)},Xg=()=>{const[t]=he.useLexicalComposerContext();return te.useEffect(()=>{if(!t.hasNodes([])){console.error("HorizontalRulePlugin: HorizontalRuleNode not registered");return}return t.registerCommand(zs,()=>{const e=w.$getSelection();if(!w.$isRangeSelection(e))return!1;if(e.focus.getNode()!==null){const r=Oi(),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 Qg(){return f("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..."})}const qg=({onChange:t,markdownTransformers:e})=>{const n=S.default.useCallback(s=>{const a=s.toJSON();t==null||t(a)},[t]),{editorContainerRef:r}=S.default.useContext(_r),[i,o]=S.default.useState(null),l=s=>{s!==null&&o(s)};return Y("div",{className:"koenig-lexical",ref:r,children:[f(Ku.RichTextPlugin,{contentEditable:f("div",{ref:l,children:f(Vu.ContentEditable,{className:"kg-prose"})}),placeholder:f(Qg,{})}),f(tg.OnChangePlugin,{onChange:n}),f(Qu.HistoryPlugin,{})," ",f(og.ListPlugin,{})," ",f(oa,{containerElem:r}),f(tc,{transformers:e}),f(oc,{}),f(Bg,{}),i&&f(sc,{anchorElem:i}),f(Gg,{}),f(Xg,{})]})};G.CODE_BLOCK_TRANSFORMER=Qa,G.DEFAULT_NODES=Vs,G.DEFAULT_TRANSFORMERS=ec,G.DesignSandbox=Wc,G.ELEMENT_TRANSFORMERS=qa,G.FloatingFormatToolbarPlugin=sc,G.HR_TRANSFORMER=Xa,G.KoenigBehaviourPlugin=oa,G.KoenigComposer=Mu,G.KoenigEditor=qg,G.MarkdownShortcutPlugin=tc,G.PlusCardMenuPlugin=oc,Object.defineProperties(G,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
55
55
|
//# sourceMappingURL=koenig-lexical.umd.js.map
|